(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5405],{75557:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return n(65855)}])},98759:function(e,t,n){"use strict";n.d(t,{R$:function(){return o},dH:function(){return s},ge:function(){return l},kn:function(){return a}});var r=n(9669),i=n.n(r),s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return i().get("/get/exampurspecialv2",{baseURL:e,params:{start:t}}).then((function(e){return e.data}))},a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;return i().get("/get/studymaterialbytype",{baseURL:e,params:{type:t,start:n}}).then((function(e){return e.data}))},o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"en";return i().get("/get/current_affairs_byte",{baseURL:e,params:{start:t,language:n}}).then((function(e){return e.data}))},l=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;return i().get("/get/currentaffairs",{baseURL:e,params:{start:n,type:t}}).then((function(e){return e.data.data}))}},92817:function(e,t,n){"use strict";n.d(t,{C7:function(){return s},FR:function(){return u},Vr:function(){return a},YR:function(){return p},Yt:function(){return o},jU:function(){return d},ks:function(){return l},q7:function(){return h},v:function(){return m},zU:function(){return c}});var r=n(9669),i=n.n(r),s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=arguments.length>3?arguments[3]:void 0;return r?i().get("/get/courselistnewv2",{baseURL:e,params:{start:n,exam_id:r}}).then((function(e){return e.data})):i().get("/get/folder_courses",{baseURL:e,params:{start:n,parent_id:t}}).then((function(e){return e.data}))},a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=arguments.length>2?arguments[2]:void 0;return i().get("/get/parent_folder_courses",{baseURL:n,params:{start:t,current_folder_id:e}}).then((function(e){return e.data}))},o=function(e,t){return i().get("/get/coursenew_by_idv2",{baseURL:e,params:{id:t}}).then((function(e){return e.data.data}))},l=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0,o={course_id:t,parent_id:n,windowsapp:a};return r&&(o.lc_app_api_url=new URL(s).host,o.linked_course_id=r),i().get("/get/folder_contentsv2",{baseURL:e,params:o}).then((function(e){return e.data.data}))},c=function(e,t,n){return i().get("/get/parent_folder_contents",{baseURL:e,params:{course_id:t,current_folder_id:n}}).then((function(e){return e.data.data}))},u=function(e){return i().get("/get/featuredcourselistnewv2",{baseURL:e}).then((function(e){return e.data.data}))},d=function(e,t,n,r){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"1,2",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:-1,o={course_id:t,start:a,live_status:s};return n&&(o.lc_app_api_url=new URL(r).host,o.linked_course_id=n),i().get("/get/course_contents_by_live_status",{baseURL:e,params:o}).then((function(e){return e.data.data}))},p=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1,s=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0,o=arguments.length>6?arguments[6]:void 0,l={course_id:t,start:s,folder_wise_course:n,userid:r};return a&&(l.lc_app_api_url=new URL(o).host,l.linked_course_id=a),i().get("/get/get_previous_live_videos",{baseURL:e,params:l}).then((function(e){return e.data}))},h=function(e,t,n,r){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"10",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:-1,o={course_id:t,item_type:s,userid:a};return n&&(o.lc_app_api_url=new URL(r).host,o.linked_course_id=n),i().get("/get/get_sub_folder_courses",{baseURL:e,params:o}).then((function(e){return e.data.data}))},m=function(e){return i().post("/post/update_video_rating",e).then((function(e){return e.data.data}))}},7386:function(e,t,n){"use strict";n.d(t,{CK:function(){return l},F2:function(){return S},FG:function(){return j},Kj:function(){return y},Ly:function(){return w},MM:function(){return c},OB:function(){return u},Zm:function(){return p},bJ:function(){return C},dE:function(){return T},gU:function(){return k},i0:function(){return h},j8:function(){return b},k3:function(){return _},lp:function(){return m},oU:function(){return f},q$:function(){return d},sQ:function(){return Z},tI:function(){return v},tq:function(){return x},uG:function(){return E},vl:function(){return g},w9:function(){return L},zB:function(){return N}});var r=n(9669),i=n.n(r),s=n(47041),a=n(96486),o=n(96076),l=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1;return i().get("/get/test_seriesbycourseid",{baseURL:e,params:{courseid:t,userid:n,folder_wise_course:r,start:s}}).then((function(e){return e.data.data}))},c=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1,s=arguments.length>4?arguments[4]:void 0;return(0,a.isEmpty)(s)||(e="https://thetestpassapi.akamai.net.in"),i().get("/get/test_titlev2",{baseURL:e,params:{testseriesid:t,subject_id:r,userid:n,client_api_url:s,start:-1}}).then((function(e){return e.data}))},u=function(e,t,n,r){return(0,a.isEmpty)(r)||(e="https://thetestpassapi.akamai.net.in"),i().get("/get/test_title_by_id",{baseURL:e,params:{id:t,userid:n,client_api_url:r}}).then((function(e){return e.data.data}))},d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"https://thetestpassapi.akamai.net.in";return i().get("/get/get_testseries_exams",{baseURL:e}).then((function(e){return e.data}))},p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"";return i().get("/get/test_series",{baseURL:e,params:{start:t,search:n,client_api_url:r,exam_id:s}}).then((function(e){return e.data}))},h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return i().get("/get/test_series_free",{baseURL:e,params:{start:t}}).then((function(e){return e.data}))},m=function(e,t,n){return(0,a.isEmpty)(n)||(e="https://thetestpassapi.akamai.net.in"),i().get("/Test_Series/test_series_by_id",{baseURL:e,params:{id:t,client_api_url:n}}).then((function(e){return e.data.data}))},f=function(e,t,n){return(0,a.isEmpty)(n)||(e="https://thetestpassapi.akamai.net.in"),i().get("/get/testseries_subjects",{baseURL:e,params:{testseries_id:t,client_api_url:n}}).then((function(e){return e.data.data}))},g=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",s=n?{Authorization:n}:{};return(0,a.isEmpty)(r)||(e="https://thetestpassapi.akamai.net.in"),i().get("/Test_Series/test_section",{baseURL:e,params:{test_title_id:t,client_api_url:r},headers:s}).then((function(e){return e.data.data})).catch((function(e){}))},v=function(e){return i().get(e,{transformRequest:function(e,t){return Object.keys(t).forEach((function(e){delete t[e]})),e}}).then((function(e){return e.data}))},_=function(e,t,n){(0,a.isEmpty)(n)||(e="https://thetestpassapi.akamai.net.in");var r=(0,s.getCookie)(o.JR);return i().get("/Test_Series/check_test_attempts",{baseURL:e,params:{test_id:t,user_id:r,client_api_url:n}}).then((function(e){return e.data}))},b=function(e,t,n,r,s,o,l){var c=o?{Authorization:o,"User-ID":s}:{};(0,a.isEmpty)(l)||(e="https://thetestpassapi.akamai.net.in");var u={client_api_url:l};return n&&(u.lc_app_api_url=new URL(r).host,u.linked_course_id=n),i().post("/Test_Series/end_test_attemptv4",t,{baseURL:e,params:u,headers:c}).then((function(e){var t;if(200===e.data.status)return null===(t=e.data)||void 0===t?void 0:t.data;throw new Error(e.data.message||"Failed to end test attempt")})).catch((function(e){throw e}))},x=function(e,t,n,r,s,o){return(0,a.isEmpty)(o)||(e="https://thetestpassapi.akamai.net.in"),i().get("/get/get_test_rankv2",{baseURL:e,params:{test_id:t,user_id:n,marks:r,test_series_id:s,client_api_url:o}}).then((function(e){return e.data.data}))},w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return i().get("/get/quiz_test_series",{baseURL:e,params:{start:t}}).then((function(e){return e.data}))},y=function(e,t,n){return i().get("/get/test_subjective_by_id",{baseURL:e,params:{id:t,userid:n}}).then((function(e){return e.data.data}))},j=function(e,t,n){return i().get("/get/getsubjectivetestattempt",{baseURL:e,params:{test_id:t,userid:n}}).then((function(e){return e.data.result}))},T=function(e){return i().post("/post/postsubjectivetest",e).then((function(e){return e.data}))},S=function(e){return i().post("/Test_Series/report_question",e).then((function(e){return e.data}))},E=function(e,t,n){(0,a.isEmpty)(n)||(e="https://thetestpassapi.akamai.net.in");var r=(0,s.getCookie)(o.JR);return i().get("/test_omr/check_test_attempts",{baseURL:e,params:{test_id:t,user_id:r,start:0,client_api_url:n}}).then((function(e){return e.data}))},N=function(e,t,n,r,s,a){var o=a?{Authorization:a,"User-ID":s}:{},l={};return n&&(l.lc_app_api_url=new URL(r).host,l.linked_course_id=n),i().post("/test_omr/end_test_attemptv4",t,{baseURL:e,params:l,headers:o}).then((function(e){return e.data.data}))},k=function(e,t,n,r,s){(0,a.isEmpty)(s)||(e="https://thetestpassapi.akamai.net.in");var o=r?{Authorization:r,"User-ID":n}:{};return i().get("/test_omr/test_attempt_with_urls",{baseURL:e,params:{test_id:t,user_id:n,client_api_url:s},headers:o}).then((function(e){return e.data.data})).then((function(e){return!(0,a.isEmpty)(null===e||void 0===e?void 0:e.test_attempt.answer_url)}))},Z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return i().get("/get/search_test_title",{params:{search:e,start:t}}).then((function(e){return e.data.data}))},L=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return i().get("/get/search_test_question",{params:{search:e,start:t}}).then((function(e){return e.data.data}))},C=function(e){return i().get("https://thetestpassapi.akamai.net.in/get/test_pass_subscription_list",{params:{client_api_url:e}}).then((function(e){return e.data}))}},9888:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(85893);function i(e){var t=e.price,n=e.mrp;t=parseInt(t);var i=((n=parseInt(n))-t)/n*100;return t<0?null:(0,r.jsxs)("div",{className:"d-flex",children:["\u20b9",t," ",n>t?(0,r.jsxs)("div",{className:"d-flex align-items-center justify-content-between flex-grow-1 ms-1",children:[(0,r.jsx)("div",{className:"font-sm text-gray font-regular text-decoration-line-through",children:n}),(0,r.jsxs)("div",{className:"text-success ms-2",children:[null===i||void 0===i?void 0:i.toFixed(2),"% off"]})]}):""]})}},42868:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(85893),i=n(67294),s=n(95719),a=n(83024),o=n(60766),l=n(89885),c=n(96486);function u(e){var t=e.isOpen,n=e.toggle,u=(0,i.useContext)(l.Z).appConfig;return(0,r.jsxs)(s.Z,{isOpen:t,toggle:n,children:[(0,r.jsx)(a.Z,{toggle:n,children:"Download App"}),(0,r.jsxs)(o.Z,{className:"d-flex flex-column align-items-center py-4",children:[!(0,c.isEmpty)(u.web_androidurl)&&(0,r.jsx)("a",{href:u.web_androidurl,target:"_blank",rel:"noopener noreferrer",children:(0,r.jsx)("img",{src:"/google-play.svg",className:"mb-3",width:150})}),!(0,c.isEmpty)(u.web_iosurl)&&(0,r.jsx)("a",{href:u.web_iosurl,target:"_blank",rel:"noopener noreferrer",children:(0,r.jsx)("img",{src:"https://appx-static.akamai.net.in/app-store.png",className:"mb-3 bg-white",width:150})}),!(0,c.isEmpty)(u.web_windowsurl)&&(0,r.jsx)("a",{href:u.web_windowsurl,target:"_blank",rel:"noopener noreferrer",children:(0,r.jsx)("img",{src:"https://appx-static.akamai.net.in/windows-button.png",width:150})})]})]})}},17666:function(e,t,n){"use strict";n.d(t,{Z:function(){return v}});var r=n(47568),i=n(97582),s=n(85893),a=n(58533),o=n(67294),l=n(23138),c=n(35773),u=n(95305),d=n(98759),p=n(45508),h=n(12956),m=n(11163),f=n(96076),g=n(47041);function v(e){var t=e.basePath,n=e.fetchMore,v=(0,m.useRouter)(),_=(0,o.useState)(e.videos.data),b=_[0],x=_[1],w=(0,o.useMemo)((function(){return Number(v.query.page||0)})),y=(0,o.useState)(w),j=y[0],T=y[1],S=(0,o.useState)(e.videos.total),E=S[0],N=S[1],k=(0,g.getCookie)(f.z1),Z=function(){var e=(0,r.Z)((function(){var e,t;return(0,i.__generator)(this,(function(r){switch(r.label){case 0:return T(j+=10),n?[4,n(j)]:[3,2];case 1:return t=r.sent(),[3,4];case 2:return[4,(0,d.dH)(k,j)];case 3:t=r.sent(),r.label=4;case 4:return e=t,x(b.concat(e.data)),N(e.total),[2]}}))}));return function(){return e.apply(this,arguments)}}();return(0,s.jsx)(a.Z,{dataLength:(null===b||void 0===b?void 0:b.length)||0,next:Z,hasMore:E>=10,loader:(0,s.jsx)("div",{className:"text-center text-gray font-bold",children:"Loading.."}),endMessage:0!=(null===b||void 0===b?void 0:b.length)?(0,s.jsx)("div",{className:"text-center text-gray font-bold"}):(0,s.jsx)(l.Z,{color:"primary",isOpen:!0,children:"No videos available"}),children:(0,s.jsx)(c.Z,{className:"m-0",children:null===b||void 0===b?void 0:b.map((function(e,n){return(0,s.jsx)(u.Z,{md:"4",className:"mb-4",children:(0,s.jsx)(h.Z,{title:e.title,image:"https://i.ytimg.com/vi/".concat((0,p.NA)(e.link).split("/").pop(),"/hqdefault.jpg"),link:"".concat(t,"/").concat(e.id,"?page=").concat(10*Math.floor((n+w)/10)),btnText:"Watch now",checkAuth:!0,imgHeight:"auto"})},e.id)}))})})}},90717:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var r=n(29815),i=n(85893),s=n(67294),a=n(84082),o=n(60994),l=n(87261),c=n(3126),u=n(89355),d=n(85313),p=n(24271),h=n(96486),m=n(55678),f=n(67814),g=n(59417),v=n(4913),_=n(89885),b=n(58907);function x(e){var t=(0,s.useState)([]),n=t[0],x=t[1],w=(0,s.useState)(""),y=w[0],j=w[1],T=(0,s.useState)(),S=(T[0],T[1],(0,s.useState)()),E=S[0],N=S[1],k=(0,s.useState)(!1),Z=k[0],L=k[1],C=(0,s.useRef)(null),R=(0,s.useContext)(_.Z),U=R.currentUser,A=R.appConfig,D=(0,p.G5)(A.web_firebaseconfig),I="/helpChats/"+U.userid,M={VIDEO:g.hvm,AUDIO:g.FMf,PDF:g.gSj};(0,s.useEffect)((function(){if(Z){var e=(0,u.N8)(D),t=(0,u.iH)(e,I+"/userDetails");(0,u.t8)(t,{name:U.name,phone:U.phone,email:U.email});var n=(0,u.iH)(e,I+"/chats");return(0,u.jM)((0,u.iH)(e,I+"/chats"),(function(e){if(!e.exists()){(0,u.VF)(n,{userName:"",userEmail:"",userComment:"Write to us and we'll get back to you",userFlag:"0",userTime:"",postedAt:"",userId:"-1",readStatus:"1",type:"",url:""})}}),{onlyOnce:!0}),(0,u.yv)(n,(function(e){var t=e.val();x((function(e){return(0,r.Z)(e).concat([t])}))})),function(){(0,u.S1)(t,"value"),(0,u.S1)(n,"child_added"),x([])}}}),[Z]),(0,s.useEffect)((function(){W()}),[n]);var F=function(e){var t=e.message;return(0,i.jsx)("div",{className:"chatmsg",children:(0,i.jsx)("div",{className:"col-md-12 col-xs-12 m-t-10",children:(0,i.jsxs)("div",{className:"messages msg_sent rounded-1",children:[(0,i.jsx)("div",{className:"font-semi-bold",children:(0,i.jsx)(v.Z,{options:{target:"_blank",rel:"noopener noreferrer"},children:(0,d.i5)(t.userComment)})}),!(0,h.isEmpty)(t.image)&&(0,i.jsx)("img",{src:t.image,style:{maxWidth:"100%"},className:"cursor-pointer my-1",onClick:function(){return window.open(t.image)}}),!(0,h.isEmpty)(t.type)&&!(0,h.isEmpty)(t.url)&&(0,i.jsx)("div",{children:(0,i.jsx)(f.G,{icon:M[t.type],size:"2x",onClick:function(){return window.open(t.url)},className:"text-primary p-2 border rounded-1 cursor-pointer"})}),(0,i.jsxs)("div",{className:"text-gray font-xs",children:[t.userName," ",t.userTime]})]})})})},W=function(){var e=document.getElementById("msgContainer");e&&(e.scrollTop=e.scrollHeight)},Y=function(){if(/(?:https?|ftp):\/\/[\S]+/.test(y)&&(y=y.replaceAll(/(?:https?|ftp):\/\/[\S]+/g,""),j(y),m.Am.warn("URLs are not allowed",{position:"bottom-right"})),!(0,h.isEmpty)(null===y||void 0===y?void 0:y.trim())){var e=(new Date).getTime(),t={userName:U.name,userEmail:U.email,userComment:y,userFlag:"0",userTime:(0,d.xv)(),postedAt:e,userId:U.userid,readStatus:"0",type:"",url:""};(0,h.isEmpty)(E)||(t.image=E,t.type="IMAGE");var n=(0,u.N8)(D),r=(0,u.iH)(n,I+"/chats");(0,u.VF)(r,{}).then((function(e){var r=e.key,i=(0,u.iH)(n,I+"/chats/"+r);(0,u.t8)(i,t),j(""),N()})),(0,u.Vx)((0,u.iH)(n,I+"/unread"),{lastMessage:y,lastMessageTime:e,admin:(0,u.nP)(1)})}};return(0,i.jsxs)("div",{children:[(0,i.jsx)(a.Z,{size:"lg",color:"primary",className:"btn-rounded position-fixed",onClick:function(){return L(!Z)},style:{bottom:"1rem",right:"1rem",zIndex:"100"},children:(0,i.jsx)(f.G,{icon:g.lXL})}),Z&&(0,i.jsxs)("div",{className:"panel panel-default position-fixed rounded overflow-hidden",style:{bottom:"5rem",right:"1rem",zIndex:"100",width:"350px"},children:[(0,i.jsxs)("div",{className:"panel-heading top-bar font-bold font-lg",children:["Chat with us",(0,i.jsx)(a.Z,{color:"link",className:"p-0 float-end",onClick:function(){return L(!1)},children:(0,i.jsx)(f.G,{icon:g.nYk})})]}),(0,i.jsxs)("div",{className:"panel-body msg_container_base",id:"msgContainer",children:[n.map((function(e,t){return(0,i.jsx)(F,{message:e},t)})),(0,i.jsx)("div",{style:{float:"lef",clear:"both"},ref:C})]}),(0,i.jsx)("div",{className:"panel-footer",children:(0,i.jsxs)(o.Z,{className:"position-relative",children:[(0,i.jsx)(l.Z,{type:"text",placeholder:"Write your message here ...",value:y,onChange:function(e){return j((0,d.i5)(e.target.value))},onKeyPress:function(e){return"Enter"==e.key&&Y()},name:"typedMessage",className:"mb-0"}),(0,i.jsxs)("div",{className:"position-absolute vertical-center",style:{right:"44px",zIndex:10},children:[(0,i.jsx)(l.Z,{accept:"image/jpeg, image/jpg, image/png",type:"file",className:"d-none",id:"asset",onChange:function(e){var t=e.target.files[0];if(t){var n=Date.now()+t.name;(0,b.c)(n,t,"/help-chat-images/",(function(e,t){e?m.Am.error("Something went wrong in uploading file"):(m.Am.success("File uploaded."),N(t.Location))}))}}}),(0,i.jsx)(c.Z,{className:"mb-0",htmlFor:"asset",children:(0,i.jsx)(f.G,{size:"lg",className:"".concat(E?"text-primary":"text-gray"," me-3"),icon:g.Alc})})]}),(0,i.jsx)(a.Z,{color:"primary",id:"btn-chat",className:"px-3",onClick:Y,children:(0,i.jsx)(f.G,{icon:g.XCy,transform:{rotate:"50",x:"-3"}})})]})})]})]})}},49475:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(85893),i=n(58094);function s(){var e=(0,i.Z)();return(0,r.jsx)("div",{className:"w-100 position-absolute top-0",style:{background:e,height:"5px",zIndex:1e3}})}},39154:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(85893),i=n(96486),s=n(67294),a=n(89885),o=n(85313);function l(e){var t=(0,s.useState)({display:"none"}),n=(t[0],t[1],(0,s.useState)(!1)),l=(n[0],n[1]),c=(0,s.useContext)(a.Z),u=c.currentUser,d=c.appConfig,p=(0,s.useState)(),h=p[0],m=p[1],f=function(t){var n,r;if(!(0,i.isEmpty)(e.message)||!(0,i.isEmpty)(u)){t||0!=function(){var t,n,r=document.getElementById("watermark");if(!r)return!1;if("block"!=r.style.display)return!1;if("visible"!=r.style.visibility)return!1;if(r.hidden)return!1;if(Number(r.style.opacity)<.1)return!1;if(r.style.webkitOpacity&&Number(r.style.webkitOpacity)<.1)return!1;if(Number(r.style.zIndex)<1e3)return!1;if("0.8rem"!=r.style.fontSize)return!1;if("red"!=r.style.color)return!1;if("rgb(246, 247, 249)"!=r.style.background)return!1;if("rgb(246, 247, 249)"!=r.style.backgroundColor)return!1;if("visible"!=r.style.overflow)return!1;if("absolute"!=r.style.position)return!1;if("2px 5px"!=r.style.padding)return!1;if("2px"!=r.style.paddingTop)return!1;if("2px"!=r.style.paddingBottom)return!1;if("5px"!=r.style.paddingLeft)return!1;if("5px"!=r.style.paddingRight)return!1;if(r.clientHeight<15)return!1;if(r.clientWidth<50)return!1;if(!r.style.top.endsWith("%")||!r.style.left.endsWith("%"))return!1;var s=Number(r.style.top.replace("%","")),a=Number(r.style.left.replace("%",""));if(s<0||s>100||a<0||a>100)return!1;var o=!1;return["right","bottom","maxHeight","maxWidth","margin","marginTop","marginBottom","marginLeft","marginRight","scale","transform","translate","contentVisibility","contain","clipPath","webkitTransform"].some((function(e){return!(!r.style[e]||(0,i.isEmpty)(r.style[e]))&&(o=!0,!0)})),!o&&(!e.message||r.innerText==e.message)&&!(!e.message&&r.innerText!="".concat(null===(t=u.email)||void 0===t?void 0:t.trim(),"\n").concat(null===(n=u.phone)||void 0===n?void 0:n.trim()))}()||(window.parent?window.parent.location.reload():window.location.reload());var s=document.getElementById("watermark");if(h){s||(s=document.createElement("div")),s.id="watermark";var a=(0,i.random)(0,75),o=(0,i.random)(10,85);s.innerText=e.message||"".concat(null===(n=u.email)||void 0===n?void 0:n.trim(),"\n").concat(null===(r=u.phone)||void 0===r?void 0:r.trim()),s.hidden=!1;var c={position:"absolute",color:"red",fontSize:"0.8rem",padding:"2px 5px",background:"#f6f7f9",borderRadius:"5px",left:"".concat(a,"%"),top:"".concat(o,"%"),opacity:"".concat(!(0,i.isEmpty)(d.web_videowatermarkopacity)&&d.web_videowatermarkopacity>0?d.web_videowatermarkopacity:50,"%"),zIndex:1e3,minWidth:"80px",textAlign:"center",display:"block",visibility:"visible",overflow:"visible",pointerEvents:"none"};Object.assign(s.style,c),h.appendChild(s),l((function(e){return!e}))}}};return(0,s.useEffect)((function(){if(!(0,i.isEmpty)(e.message)||!(0,i.isEmpty)(u)){var t=document.getElementById("watermark"),n=t.parentNode;m(n)}}),[e.message,u]),(0,s.useEffect)((function(){if(h){f(!0);var e=(0,o.XR)(f,5e3);return function(){e.cancel()}}}),[h]),(0,r.jsx)("div",{id:"watermark"})}},43759:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(85893),i=n(96486),s=n(67294),a=(n(49475),n(39154)),o=n(89885);function l(e){var t,n=(0,s.useContext)(o.Z).appConfig,l="";e.videoId?l=(null===(t=e.videoId)||void 0===t?void 0:t.startsWith("http"))&&e.videoId.includes("/live")?e.videoId.split("/").pop():e.videoId:l=function(e){var t=e.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/);return t&&11===t[2].length?t[2]:null}(e.src);return(0,r.jsx)("div",{children:(0,r.jsxs)("div",{className:"video",style:{position:"relative",paddingBottom:"56.25%",paddingTop:25,height:0},children:[((0,i.isEmpty)(n.web_enablewatermarkonvideos)||"0"!=n.web_enablewatermarkonvideos)&&(0,r.jsx)(a.Z,{}),(0,r.jsx)("iframe",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"},src:"https://www.youtube.com/embed/".concat(l),frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0})]})})}},58094:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(67294),i=n(89885);function s(){var e=(0,r.useContext)(i.Z).currentUser;if(!e||!e.phone)return null;var t=e.phone.slice(0,7),n=Number(t).toString(16);return"#".concat(n)}},65855:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return q}});var r=n(47568),i=n(97582),s=n(85893),a=n(47041),o=n(96486),l=n(67294),c=n(39886),u=n(54610),d=n(35773),p=n(95305),h=n(76022),m=n(99209),f=n(26042),g=n(69396),v=n(5798),_=n(84082),b=n(89885),x=n(9888),w=n(12956),y=n(41664),j=n.n(y),T=n(42868);function S(e){var t=e.courses,n=(0,l.useContext)(b.Z).appConfig,r=(0,l.useState)(),i=r[0],a=r[1],o=function(){return a(!i)},c={dots:!1,infinite:t.length>3,speed:500,slidesToShow:3,slidesToScroll:3,initialSlide:0,swipeToSlide:!0,autoplay:!0,arrows:!1,responsive:[{breakpoint:1100,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:580,settings:{slidesToShow:1,slidesToScroll:1}}]};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(v.default,(0,g.Z)((0,f.Z)({},c),{children:t.map((function(e){return(0,s.jsx)("div",{sm:"6",md:"4",className:"p-2 h-100",children:(0,s.jsx)(w.Z,{courseLikesCount:Number(e.likes_count),courseId:e.id,itemType:1,title:e.course_name,subText:(0,s.jsx)(x.Z,{price:e.price_without_gst>0?e.price_without_gst:e.price,mrp:e.mrp}),image:e.course_thumbnail,btnText:"1"==e.is_paid&&"1"!=n.isWindowsApp&&"0"==e.view_in_web?"View in App":"View Details",btnAction:"1"==e.is_paid&&"1"!=n.isWindowsApp&&"0"==e.view_in_web?o:null,link:"1"==e.is_paid?"1"!=n.isWindowsApp&&"0"==e.view_in_web?n.web_androidurl:"/courses/".concat(e.id,"/content"):"/courses/".concat(e.id,"-").concat(e.course_slug),children:"1"==e.showemipay&&"1"==e.is_paid&&(0,s.jsx)(j(),{href:"/courses/".concat(e.id,"/").concat(e.course_slug),children:(0,s.jsx)(_.Z,{color:"primary-light",className:"mt-2",children:"Pay with installment"})})})},e.id)}))})),(0,s.jsx)(T.Z,{isOpen:i,toggle:o})]})}function E(e){var t=e.sliderImages;return(0,s.jsx)(v.default,{autoplay:!0,swipeToSlide:!0,dots:!0,infinite:!0,arrows:!1,children:t.map((function(e){return(0,s.jsx)("a",{href:e.connected_link,rel:"noreferrer",children:(0,s.jsx)("img",{src:e.image_link,className:"rounded w-100 img-fluid"})},e.image_link)}))})}var N=n(96076),k=n(11163),Z=n(43759),L=n(14924),C=n(59417),R=n(67814),U=n(55678),A=n(89163),D=n(87261);function I(){var e=(0,l.useContext)(b.Z).appConfig,t=(0,l.useState)({}),n=t[0],r=t[1],i=function(e){var t=e.target,i=t.name,s=t.value;r((0,g.Z)((0,f.Z)({},n),(0,L.Z)({},i,s)))},a=function(e){var t=e.icon,n=e.text;return(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)(R.G,{icon:t,style:{fontSize:"30px"},className:"mb-2 text-primary"}),(0,s.jsx)("div",{children:n})]})};return(0,s.jsxs)("div",{className:"mt-5 pt-5",children:[(0,s.jsx)("h3",{className:"text-center mb-5",children:"Get In Touch"}),(0,s.jsxs)(d.Z,{className:"mb-4",children:[!(0,o.isEmpty)(e.web_clientaddress)&&(0,s.jsx)(p.Z,{children:(0,s.jsx)(a,{icon:C.opg,text:e.web_clientaddress})}),!(0,o.isEmpty)(e.web_clientphone)&&(0,s.jsx)(p.Z,{children:(0,s.jsx)("a",{href:"tel:".concat(e.web_clientphone),className:"text-decoration-none",children:(0,s.jsx)(a,{icon:C.j1w,text:e.web_clientphone})})}),!(0,o.isEmpty)(e.web_clientemail)&&(0,s.jsx)(p.Z,{children:(0,s.jsx)("a",{href:"mailto:".concat(e.web_clientemail),className:"text-decoration-none",children:(0,s.jsx)(a,{icon:C.FU$,text:e.web_clientemail})})})]}),(0,s.jsxs)(d.Z,{className:"pt-1",children:[(0,s.jsx)(p.Z,{children:(0,s.jsx)(A.Z,{children:(0,s.jsx)(D.Z,{type:"text",name:"name",value:n.name,placeholder:"Name*",onChange:i})})}),(0,s.jsx)(p.Z,{children:(0,s.jsx)(A.Z,{children:(0,s.jsx)(D.Z,{type:"text",name:"email",value:n.email,placeholder:"Email*",onChange:i})})}),(0,s.jsx)(p.Z,{children:(0,s.jsx)(A.Z,{children:(0,s.jsx)(D.Z,{type:"text",name:"contact",value:n.contact,placeholder:"Phone*",onChange:i})})})]}),(0,s.jsx)(A.Z,{children:(0,s.jsx)(D.Z,{type:"textarea",name:"message",rows:"5",value:n.message,placeholder:"Message*",onChange:i})}),(0,s.jsx)("div",{className:"text-center mt-5",children:(0,s.jsx)(_.Z,{onClick:function(){n.toemail=e.web_clientemail,["name","email","message","contact"].find((function(e){var t;return(0,o.isEmpty)(null===(t=n[e])||void 0===t?void 0:t.trim())}))?U.Am.error("Please fill all mandatory fields"):(0,h.fX)(n).then((function(e){r({name:"",email:"",message:"",contact:""}),U.Am.info("Your details have been submitted")})).catch((function(e){U.Am.error("Error occured please try again later")}))},color:"primary",children:"Submit"})})]})}var M=n(92817);function F(e){var t=e.courses,n=(0,l.useContext)(b.Z),r=n.appConfig,i=(n.currentUser,(0,l.useState)()),a=i[0],o=i[1],c=function(){return o(!a)},u={dots:!1,infinite:t.length>3,speed:500,slidesToShow:3,slidesToScroll:3,initialSlide:0,swipeToSlide:!0,autoplay:!0,arrows:!1,responsive:[{breakpoint:1100,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:580,settings:{slidesToShow:1,slidesToScroll:1}}]};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(v.default,(0,g.Z)((0,f.Z)({},u),{children:t.map((function(e){return(0,s.jsx)("div",{sm:"6",md:"4",className:"p-2 h-100",children:(0,s.jsx)(w.Z,{courseLikesCount:Number(e.likes_count),courseId:e.id,itemType:10,title:e.course_name,subText:(0,s.jsx)(x.Z,{price:e.price_without_gst>0?e.price_without_gst:e.price,mrp:e.mrp}),image:e.course_thumbnail,btnAction:"1"==e.is_paid&&"1"!=r.isWindowsApp&&"0"==e.view_in_web?c:null,link:"1"==e.is_paid?"1"!=r.isWindowsApp&&"0"==e.view_in_web?r.web_androidurl:"/new-courses/".concat(e.id,"/content"):"/new-courses/".concat(e.id,"-").concat(e.course_slug),children:"1"==e.showemipay&&"1"==e.is_paid&&(0,s.jsx)(j(),{href:"/new-courses/".concat(e.id,"-").concat(e.course_slug),children:(0,s.jsx)(_.Z,{color:"primary-light",className:"mt-2",children:"Pay with installment"})})})},e.id)}))})),(0,s.jsx)(T.Z,{isOpen:a,toggle:c})]})}var W=n(29815),Y=n(46066);function H(e){var t=e.testimonials,n={dots:!0,infinite:t.length>3,speed:500,slidesToShow:3,slidesToScroll:3,initialSlide:1,swipeToSlide:!0,autoplay:!0,autoplaySpeed:6e3,arrows:!1,responsive:[{breakpoint:1100,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:580,settings:{centerMode:!0,slidesToShow:1,slidesToScroll:1}}]};return(0,s.jsx)(Y.Z,(0,g.Z)((0,f.Z)({},n),{children:t.map((function(e){return(0,s.jsx)("div",{className:"p-2 h-100",children:(0,s.jsx)(c.Z,{className:"h-100",children:(0,s.jsxs)(u.Z,{className:"py-2 d-flex flex-column",children:[(0,s.jsxs)("div",{className:"d-flex align-items-center mb-2",children:[e.image?(0,s.jsx)("img",{src:e.image,height:40,width:40,className:"me-2 rounded-circle img-cover"}):(0,s.jsx)(R.G,{icon:C.m08,color:"darkgrey",style:{fontSize:"40px"},className:"me-2 "}),(0,s.jsx)("div",{className:"font-semi-bold",children:e.name}),(0,s.jsx)("div",{className:"ms-auto",children:(0,W.Z)(new Array(5)).map((function(t,n){return(0,s.jsx)(R.G,{color:n<e.rating?"gold":"darkgrey",icon:C.Tab},n)}))})]}),(0,s.jsx)("div",{children:(0,s.jsx)(R.G,{className:"text-primary",size:"lg",icon:C.y1i})}),(0,s.jsx)("div",{children:e.testimonial}),(0,s.jsx)("div",{className:"text-end mt-auto",children:(0,s.jsx)(R.G,{className:"text-primary",size:"lg",icon:C.Elr})})]})})},e.name)}))}))}var P=n(17666),O=n(90717),z=n(22490),B=n(63395),G=n(7386);function q(e){var t,n=e.sliderImages,r=e.courses,i=e.images,a=e.newCourses,h=e.testimonials,m=e.videos,f=(0,l.useContext)(b.Z),g=f.appConfig,v=f.hasSession,_=f.currentUser,x=(0,k.useRouter)(),w=(0,l.useState)(),y=w[0],j=w[1],T=(0,l.useMemo)((function(){return(0,z.h)(g.web_test_pass_on_landing_page)}),[g.web_test_pass_on_landing_page]);return(0,l.useEffect)((function(){"undefined"==typeof window.CreateWhatsappChatWidget&&g.web_whatsapp&&function(e,t){var n={enabled:!0,chatButtonSetting:{backgroundColor:"#4dc247",ctaText:"",borderRadius:"25",marginLeft:"0",marginBottom:"50",marginRight:"50",position:"right"},brandSetting:{brandName:"WATI",brandSubTitle:"Typically replies within a day",brandImg:"https://cdn.clare.ai/wati/images/WATI_logo_square_2.png",welcomeText:"Hi, there!\nHow can I help you?",messageText:"Hello, I have a question about ".concat(t),backgroundColor:"#0a5f54",ctaText:"Start Chat",borderRadius:"25",autoShow:!1,phoneNumber:e}},r=document.createElement("script");r.src="https://wati-integration-service.clare.ai/ShopifyWidget/shopifyWidget.js?73505",document.head.appendChild(r);var i=0;if("undefined"==typeof window.CreateWhatsappChatWidget)var s=setInterval((function(){"undefined"!=typeof window.CreateWhatsappChatWidget||5==i?(window.CreateWhatsappChatWidget(n),clearInterval(s)):i+=1}),500);else window.CreateWhatsappChatWidget(n)}(g.web_whatsapp,g.host)}),[]),(0,l.useEffect)((function(){T&&(0,G.bJ)(g.web_apiurl).then((function(e){var t;j(null===(t=e.data)||void 0===t?void 0:t[0])}))}),[T,g.web_apiurl]),(0,s.jsxs)("div",{children:[(0,s.jsx)(E,{sliderImages:n}),(null===r||void 0===r?void 0:r.length)>0&&(0,s.jsxs)("div",{className:"mt-5",children:[(0,s.jsx)("h3",{className:"text-center mb-4",children:g.web_featuredcoursesname||"Featured"}),(0,s.jsx)(S,{courses:r})]}),(null===a||void 0===a?void 0:a.length)>0&&(0,s.jsxs)("div",{className:"mt-5",children:[(0,s.jsx)("h3",{className:"text-center mb-4",children:g.web_featuredcoursesname||"Featured"}),(0,s.jsx)(F,{courses:a})]}),g.isTeachCode&&(null===m||void 0===m||null===(t=m.data)||void 0===t?void 0:t.length)>0&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("h3",{className:"text-center my-4",children:g.web_menufeaturedvideosname}),(0,s.jsx)(P.Z,{basePath:"/featured-videos",videos:m})]}),"1"==g.web_enabletestimonials&&(0,s.jsxs)("div",{className:"mt-5",children:[(0,s.jsx)("h3",{className:"text-center mb-4",children:g.web_menutestimonialsname}),(0,s.jsx)(H,{testimonials:h})]}),T&&(y?(0,s.jsx)(B.Z,{testPass:y}):(0,s.jsx)("div",{className:"position-absolute center",children:(0,s.jsx)("img",{src:"/loader.svg",width:"80px"})})),i.map((function(e){return(0,s.jsx)("img",{src:e.image_url,width:"100%",className:"mt-5",onClick:function(){var t;"0"!=(t=e).item_type&&("1"==t.item_type?x.push("/courses/".concat(t.item_id,"-").concat(t.slug)):"3"==t.item_type?x.push("/test-series/".concat(t.item_id,"-").concat(t.slug)):"5"==t.item_type&&window.open(t.url,"_blank"))}},e.id)})),!(0,o.isEmpty)(g.web_aboutus)&&(0,s.jsxs)("div",{className:"mt-5",children:[(0,s.jsxs)("h3",{className:"text-center mb-4",children:["About ",g.web_clientname]}),(0,s.jsx)(c.Z,{className:"border-0",style:{background:"linear-gradient(94.98deg, #E8DDFF 1.59%, #E1B991 94.61%)"},children:(0,s.jsx)(u.Z,{children:(0,s.jsxs)(d.Z,{children:[(0,s.jsx)(p.Z,{children:(0,s.jsx)("div",{dangerouslySetInnerHTML:{__html:g.web_aboutus}})}),!(0,o.isEmpty)(g.web_featuredvideo)&&(0,s.jsx)(p.Z,{lg:"5",children:(0,s.jsx)(Z.Z,{src:g.web_featuredvideo})})]})})})]}),"1"==g.web_enablegetintouchform&&(0,s.jsx)(I,{}),"1"==g.web_enablehelpchat&&v&&_&&(0,s.jsx)(O.Z,{})]})}q.getInitialProps=function(){var e=(0,r.Z)((function(e){var t,n,r,s,o,l,c;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:t=(0,a.getCookie)(N.z1,e),n=[],r=[],s=[],o=[],l=[],c={},i.label=1;case 1:return i.trys.push([1,7,,8]),[4,(0,h.Dd)(1,-1,t)];case 2:return n=i.sent(),[4,(0,m.pp)(t)];case 3:return s=i.sent(),[4,(0,m.xd)(t)];case 4:return r=i.sent(),[4,(0,M.FR)(t)];case 5:return o=i.sent(),[4,(0,h.BZ)(t,0)];case 6:return l=i.sent(),[3,8];case 7:return i.sent(),[3,8];case 8:return[2,{sliderImages:n,courses:s,images:r,newCourses:o,testimonials:l,videos:c}]}}))}));return function(t){return e.apply(this,arguments)}}()},58907:function(e,t,n){"use strict";n.d(t,{c:function(){return l},s:function(){return d}});var r=n(47568),i=n(97582),s=n(9669),a=n.n(s),o=n(27432),l=function(){var e=(0,r.Z)((function(e,t,n,r,s){var a,l,u,d;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:return e=e.replaceAll(" ","-").replaceAll("&","and").replaceAll("+","-"),a="website/".concat(n,"/").concat(e),l=o.Z.getType(e),[4,c(a,l)];case 1:return u=i.sent(),(d=new XMLHttpRequest).onreadystatechange=function(){4===d.readyState&&(200===d.status?r(null,{Location:u.actualUrl}):r(new Error("File upload failed"),null))},d.open("PUT",u.presignedUrl,!0),d.setRequestHeader("Content-Type",l),s&&(d.upload.onprogress=function(e){s(e)}),d.send(t),d.onerror=function(e){r(new Error("File upload failed"),null)},[2,d]}}))}));return function(t,n,r,i,s){return e.apply(this,arguments)}}();function c(e,t){return u.apply(this,arguments)}function u(){return(u=(0,r.Z)((function(e,t){return(0,i.__generator)(this,(function(n){switch(n.label){case 0:return[4,a().post("/post/generateTencentWebsitePresignedUrl",{filePath:e},{headers:{"Content-Type":t}})];case 1:return[2,n.sent().data.data]}}))}))).apply(this,arguments)}function d(e,t,n,r){return p.apply(this,arguments)}function p(){return(p=(0,r.Z)((function(e,t,n,r){return(0,i.__generator)(this,(function(i){return[2,new Promise((function(i,s){l(e,t,n,(function(e,t){e?s(e):i(t)}),r)}))]}))}))).apply(this,arguments)}},58533:function(e,t,n){"use strict";var r=n(67294),i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},i(e,t)};var s=function(){return s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},s.apply(this,arguments)};var a="Pixel",o="Percent",l={unit:o,value:.8};function c(e){return"number"===typeof e?{unit:o,value:100*e}:"string"===typeof e?e.match(/^(\d*(\.\d+)?)px$/)?{unit:a,value:parseFloat(e)}:e.match(/^(\d*(\.\d+)?)%$/)?{unit:o,value:parseFloat(e)}:(console.warn('scrollThreshold format is invalid. Valid formats: "120px", "50%"...'),l):(console.warn("scrollThreshold should be string or number"),l)}var u=function(e){function t(t){var n=e.call(this,t)||this;return n.lastScrollTop=0,n.actionTriggered=!1,n.startY=0,n.currentY=0,n.dragging=!1,n.maxPullDownDistance=0,n.getScrollableTarget=function(){return n.props.scrollableTarget instanceof HTMLElement?n.props.scrollableTarget:"string"===typeof n.props.scrollableTarget?document.getElementById(n.props.scrollableTarget):(null===n.props.scrollableTarget&&console.warn("You are trying to pass scrollableTarget but it is null. This might\n        happen because the element may not have been added to DOM yet.\n        See https://github.com/ankeetmaini/react-infinite-scroll-component/issues/59 for more info.\n      "),null)},n.onStart=function(e){n.lastScrollTop||(n.dragging=!0,e instanceof MouseEvent?n.startY=e.pageY:e instanceof TouchEvent&&(n.startY=e.touches[0].pageY),n.currentY=n.startY,n._infScroll&&(n._infScroll.style.willChange="transform",n._infScroll.style.transition="transform 0.2s cubic-bezier(0,0,0.31,1)"))},n.onMove=function(e){n.dragging&&(e instanceof MouseEvent?n.currentY=e.pageY:e instanceof TouchEvent&&(n.currentY=e.touches[0].pageY),n.currentY<n.startY||(n.currentY-n.startY>=Number(n.props.pullDownToRefreshThreshold)&&n.setState({pullToRefreshThresholdBreached:!0}),n.currentY-n.startY>1.5*n.maxPullDownDistance||n._infScroll&&(n._infScroll.style.overflow="visible",n._infScroll.style.transform="translate3d(0px, "+(n.currentY-n.startY)+"px, 0px)")))},n.onEnd=function(){n.startY=0,n.currentY=0,n.dragging=!1,n.state.pullToRefreshThresholdBreached&&(n.props.refreshFunction&&n.props.refreshFunction(),n.setState({pullToRefreshThresholdBreached:!1})),requestAnimationFrame((function(){n._infScroll&&(n._infScroll.style.overflow="auto",n._infScroll.style.transform="none",n._infScroll.style.willChange="unset")}))},n.onScrollListener=function(e){"function"===typeof n.props.onScroll&&setTimeout((function(){return n.props.onScroll&&n.props.onScroll(e)}),0);var t=n.props.height||n._scrollableNode?e.target:document.documentElement.scrollTop?document.documentElement:document.body;n.actionTriggered||((n.props.inverse?n.isElementAtTop(t,n.props.scrollThreshold):n.isElementAtBottom(t,n.props.scrollThreshold))&&n.props.hasMore&&(n.actionTriggered=!0,n.setState({showLoader:!0}),n.props.next&&n.props.next()),n.lastScrollTop=t.scrollTop)},n.state={showLoader:!1,pullToRefreshThresholdBreached:!1,prevDataLength:t.dataLength},n.throttledOnScrollListener=function(e,t,n,r){var i,s=!1,a=0;function o(){i&&clearTimeout(i)}function l(){var l=this,c=Date.now()-a,u=arguments;function d(){a=Date.now(),n.apply(l,u)}function p(){i=void 0}s||(r&&!i&&d(),o(),void 0===r&&c>e?d():!0!==t&&(i=setTimeout(r?p:d,void 0===r?e-c:e)))}return"boolean"!==typeof t&&(r=n,n=t,t=void 0),l.cancel=function(){o(),s=!0},l}(150,n.onScrollListener).bind(n),n.onStart=n.onStart.bind(n),n.onMove=n.onMove.bind(n),n.onEnd=n.onEnd.bind(n),n}return function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.componentDidMount=function(){if("undefined"===typeof this.props.dataLength)throw new Error('mandatory prop "dataLength" is missing. The prop is needed when loading more content. Check README.md for usage');if(this._scrollableNode=this.getScrollableTarget(),this.el=this.props.height?this._infScroll:this._scrollableNode||window,this.el&&this.el.addEventListener("scroll",this.throttledOnScrollListener),"number"===typeof this.props.initialScrollY&&this.el&&this.el instanceof HTMLElement&&this.el.scrollHeight>this.props.initialScrollY&&this.el.scrollTo(0,this.props.initialScrollY),this.props.pullDownToRefresh&&this.el&&(this.el.addEventListener("touchstart",this.onStart),this.el.addEventListener("touchmove",this.onMove),this.el.addEventListener("touchend",this.onEnd),this.el.addEventListener("mousedown",this.onStart),this.el.addEventListener("mousemove",this.onMove),this.el.addEventListener("mouseup",this.onEnd),this.maxPullDownDistance=this._pullDown&&this._pullDown.firstChild&&this._pullDown.firstChild.getBoundingClientRect().height||0,this.forceUpdate(),"function"!==typeof this.props.refreshFunction))throw new Error('Mandatory prop "refreshFunction" missing.\n          Pull Down To Refresh functionality will not work\n          as expected. Check README.md for usage\'')},t.prototype.componentWillUnmount=function(){this.el&&(this.el.removeEventListener("scroll",this.throttledOnScrollListener),this.props.pullDownToRefresh&&(this.el.removeEventListener("touchstart",this.onStart),this.el.removeEventListener("touchmove",this.onMove),this.el.removeEventListener("touchend",this.onEnd),this.el.removeEventListener("mousedown",this.onStart),this.el.removeEventListener("mousemove",this.onMove),this.el.removeEventListener("mouseup",this.onEnd)))},t.prototype.componentDidUpdate=function(e){this.props.dataLength!==e.dataLength&&(this.actionTriggered=!1,this.setState({showLoader:!1}))},t.getDerivedStateFromProps=function(e,t){return e.dataLength!==t.prevDataLength?s(s({},t),{prevDataLength:e.dataLength}):null},t.prototype.isElementAtTop=function(e,t){void 0===t&&(t=.8);var n=e===document.body||e===document.documentElement?window.screen.availHeight:e.clientHeight,r=c(t);return r.unit===a?e.scrollTop<=r.value+n-e.scrollHeight+1:e.scrollTop<=r.value/100+n-e.scrollHeight+1},t.prototype.isElementAtBottom=function(e,t){void 0===t&&(t=.8);var n=e===document.body||e===document.documentElement?window.screen.availHeight:e.clientHeight,r=c(t);return r.unit===a?e.scrollTop+n>=e.scrollHeight-r.value:e.scrollTop+n>=r.value/100*e.scrollHeight},t.prototype.render=function(){var e=this,t=s({height:this.props.height||"auto",overflow:"auto",WebkitOverflowScrolling:"touch"},this.props.style),n=this.props.hasChildren||!!(this.props.children&&this.props.children instanceof Array&&this.props.children.length),i=this.props.pullDownToRefresh&&this.props.height?{overflow:"auto"}:{};return r.createElement("div",{style:i,className:"infinite-scroll-component__outerdiv"},r.createElement("div",{className:"infinite-scroll-component "+(this.props.className||""),ref:function(t){return e._infScroll=t},style:t},this.props.pullDownToRefresh&&r.createElement("div",{style:{position:"relative"},ref:function(t){return e._pullDown=t}},r.createElement("div",{style:{position:"absolute",left:0,right:0,top:-1*this.maxPullDownDistance}},this.state.pullToRefreshThresholdBreached?this.props.releaseToRefreshContent:this.props.pullDownToRefreshContent)),this.props.children,!this.state.showLoader&&!n&&this.props.hasMore&&this.props.loader,this.state.showLoader&&this.props.hasMore&&this.props.loader,!this.props.hasMore&&this.props.endMessage))},t}(r.Component);t.Z=u},46066:function(e,t,n){"use strict";var r;t.Z=void 0;var i=((r=n(5798))&&r.__esModule?r:{default:r}).default;t.Z=i}},function(e){e.O(0,[8623,7432,3612,3395,9774,2888,179],(function(){return t=75557,e(e.s=t);var t}));var t=e.O();_N_E=t}]);