1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Login-BNmJyLwm.js","assets/vendor-react-CIe7BBPp.js","assets/index-DuLZZD6P.js","assets/vendor-react-dom-t5F7FhZR.js","assets/vendor-prop-types-DNxwfY3H.js","assets/vendor-router-D97L2d81.js","assets/vendor-remix-run-router-D1FRce34.js","assets/vendor-js-cookie-Cz0CWeBA.js","assets/vendor-redux-LH1zpDpA.js","assets/vendor-use-sync-external-store-f1cvjnMh.js","assets/vendor-immer-Bp5DpiZ6.js","assets/vendor-redux-thunk-ClJT1hhx.js","assets/vendor-react-helmet-async-CO3viEpT.js","assets/vendor-react-fast-compare-Dxl0Zvcn.js","assets/vendor-invariant-CCbxWKZF.js","assets/vendor-shallowequal-Ck_j7EqP.js","assets/vendor-axios-D2K41pGA.js","assets/vendor-antd-DLTvu8QC.js","assets/vendor-clsx-B-dksMZM.js","assets/vendor-helpers-D6AZgMqr.js","assets/vendor-resize-observer-polyfill-pFR5zza0.js","assets/vendor-stylis-BmaM3nay.js","assets/vendor-scroll-into-view-if-needed-D5b_oRbX.js","assets/vendor-compute-scroll-into-view-Bl8rNFhg.js","assets/vendor-throttle-debounce-CUWDS_la.js","assets/vendor-json2mq-CN42t7xi.js","assets/vendor-string-convert-Bhuo--sE.js","assets/vendor-copy-to-clipboard-DxQUb0mb.js","assets/vendor-toggle-selection-DGa8lynz.js","assets/index-CtD6GMOb.css","assets/vendor-react-toastify-DyH3b-7G.js","assets/vendor-react-toastify-BEih8O7c.css","assets/vendor-react-icons-QnPKxA--.js","assets/vendor-react-international-phone-0WvDnNd3.js","assets/vendor-react-international-phone-fyQ5b64E.css","assets/registrationApi-B3YKNGXE.js","assets/vendor-react-bootstrap-4fqcuWvZ.js","assets/vendor-react-lifecycles-compat-BQyd-nVo.js","assets/vendor-restart-ui-CZ6pMDW7.js","assets/vendor-dom-helpers-DY4L_g-8.js","assets/vendor-warning-CQQPl30N.js","assets/vendor-react-aria-ssr-C_EJWdyo.js","assets/vendor-restart-hooks-C7rFwvJj.js","assets/vendor-uncontrollable-BpozDFHz.js","assets/vendor-prop-types-extra-BShinCMI.js","assets/vendor-react-transition-group-GGXzq96r.js","assets/vendor-libphonenumber-js-D3XxeqIS.js","assets/Login-C-IruH8O.css","assets/LeadershipSection-CCFYdTH7.js","assets/FacultiesSection-YICae_A7.js","assets/Faculties-Dts7tRIz.js","assets/CoursesSection-BjeVRrFa.js","assets/CentersSection-B9LdvQEa.js","assets/MultiFeaturedSection-BLBJhoEu.js","assets/CortexAISection-BEY5pruw.js","assets/RevisionCoursesSection-BkE89uWM.js","assets/MedimartHome-kKo36t9W.js","assets/MediMartSlide-3QyiEDmE.js","assets/MentorDesk-T06gcxx8.js","assets/MentorDesk-Bu5y3fFR.css","assets/CourseAcess-C3-c6yPa.js","assets/vendor-dompurify-D6gMnemd.js","assets/vendor-react-loading-skeleton-1NDRVpU3.js","assets/vendor-react-loading-skeleton-Dg2VPHGH.css","assets/encryptUrl-CWQFhC03.js","assets/vendor-crypto-js-B5jrpidJ.js","assets/cryptoConfig-DuU3nrp7.js","assets/lazyLoadHelper-BRY3fdbp.js","assets/EMedicozFeatured-BRSnqJB4.js","assets/CourseAcess-D2vnOSOI.css","assets/style-5fLjk0ea.css","assets/responsive-BdumFWzX.css","assets/style-CFKyVkqA.css","assets/Coursesclassroom-BSB-YlAI.js","assets/useLeadForm-Ba9-Lqhl.js","assets/Advertisment-hAmArUWs.js","assets/Advertisement-B_T32P2t.css","assets/responsive-BqsjW5RR.css","assets/Findcourses-CP-Doc27.js","assets/ToppersZone-BnY4xbp9.js","assets/GetTheApp-DCwzmC8H.js","assets/vendor-validator-B-84adLi.js","assets/Storiesinspire-DPrywr6D.js","assets/LatestNewsArticles-BvmGItP1.js","assets/DoctorLounge-XNtTCb_t.js","assets/SharedItem-BeZnx9rf.js"])))=>i.map(i=>d[i]); 2import{_ as m,a as w,A}from"./index-DuLZZD6P.js";import{a as s,j as e,b}from"./vendor-react-CIe7BBPp.js";import{toast as F}from"./vendor-react-toastify-DyH3b-7G.js";import{P as L}from"./vendor-prop-types-DNxwfY3H.js";/* empty css */import{c as z,u as O}from"./vendor-router-D97L2d81.js";import{u as H}from"./useLeadForm-Ba9-Lqhl.js";import G from"./Advertisment-hAmArUWs.js";import{u as R,L as v}from"./lazyLoadHelper-BRY3fdbp.js";import"./vendor-react-dom-t5F7FhZR.js";import"./vendor-js-cookie-Cz0CWeBA.js";import"./vendor-redux-LH1zpDpA.js";import"./vendor-use-sync-external-store-f1cvjnMh.js";import"./vendor-immer-Bp5DpiZ6.js";import"./vendor-redux-thunk-ClJT1hhx.js";import"./vendor-react-helmet-async-CO3viEpT.js";import"./vendor-react-fast-compare-Dxl0Zvcn.js";import"./vendor-invariant-CCbxWKZF.js";import"./vendor-shallowequal-Ck_j7EqP.js";import"./vendor-axios-D2K41pGA.js";import"./vendor-antd-DLTvu8QC.js";import"./vendor-clsx-B-dksMZM.js";import"./vendor-helpers-D6AZgMqr.js";import"./vendor-resize-observer-polyfill-pFR5zza0.js";import"./vendor-stylis-BmaM3nay.js";import"./vendor-scroll-into-view-if-needed-D5b_oRbX.js";import"./vendor-compute-scroll-into-view-Bl8rNFhg.js";import"./vendor-throttle-debounce-CUWDS_la.js";import"./vendor-json2mq-CN42t7xi.js";import"./vendor-string-convert-Bhuo--sE.js";
2import"./vendor-copy-to-clipboard-DxQUb0mb.js";import"./vendor-toggle-selection-DGa8lynz.js";import"./vendor-remix-run-router-D1FRce34.js";/* empty css */function B(){const t=z(),o=O(),l=s.useCallback(c=>{const r=document.getElementById(c);if(r){r.scrollIntoView({behavior:"smooth",block:"start"});return}const i=new MutationObserver(()=>{const f=document.getElementById(c);f&&(f.scrollIntoView({behavior:"smooth",block:"start"}),i.disconnect())});i.observe(document.body,{childList:!0,subtree:!0}),setTimeout(()=>i.disconnect(),2e4)},[]),E=s.useCallback(c=>{c.preventDefault(),o.pathname==="/"?l("courses-section"):(sessionStorage.setItem("scrollTarget","courses-section"),t("/"))},[o.pathname,t,l]);return e.jsx("div",{className:"w-[55%]! flex! flex-col! justify-center! py-4! md:py-8! max-[767px]:w-full!",children:e.jsxs("div",{className:"flex! flex-col! items-center! text-center!",children:[e.jsxs("h1",{className:"w-full! !text-2xl sm:!text-3xl md:!text-4xl lg:!text-5xl xl:!text-6xl !font-bold !text-[#212121] !leading-tight !m-0 text-center!",children:["Most",e.jsx("span",{className:"!text-[#757575]",children:" Experienced"})]}),e.jsxs("h2",{className:"w-full! !text-xl sm:!text-2xl md:!text-3xl lg:!text-4xl xl:!text-5xl !font-bold !text-[#212121] !leading-tight !mt-1 !mb-0 text-center!",children:["Medical",e.jsx("span",{className:"!text-[#757575]",children:" Education"})]}),e.jsxs("h2",{className:"w-full! !text-xl sm:!text-2xl md:!text-3xl lg:!text-4xl xl:!text-5xl !font-bold !text-[#212121] !leading-tight !mt-1 !mb-0 text-center!",children:["Platform",e.jsx("span",{className:"!text-[#757575]",children:" Since 1999"})]}),e.jsx("div",{className:"!w-24 sm:!w-32 md:!w-48 !h-0.5 !bg-[#757575] !rounded-full !my-3 sm:!my-4 md:!my-5"}),e.jsxs("h3",{className:"!text-xs sm:!text-sm md:!text-base lg:!text-[22px] !font-medium !text-[#212121] !leading-relaxed !m-0 !max-w-[540px]",children:["India's First AI Medical Education Platform Powered"," ",e.jsx("span",{className:"!font-semibold !text-[#212121] !block sm:!inline",children:"By Cortex AI"})]}),e.jsxs("a",{href:"#courses-section",onClick:E,className:`!inline-flex !items-center !justify-center !gap-2 !mt-4 sm:!mt-6 md:!mt-8 !px-5 sm:!px-6 !py-2.5 sm:!py-3 !bg-black 3 hover:!bg-[#3B82F6] !text-white !font-semibold !text-xs sm:!text-sm md:!text-base !rounded-xl !shadow-md 4 hover:!shadow-lg !transition-all !duration-300 !no-underline !cursor-pointer`,children:["Explore Courses"," ",e.jsx("span",{className:"!text-base sm:!text-lg !leading-none !transition-transform !duration-300 group-hover:!translate-x-1",children:"â"})]})]})})}const q=s.memo(B);function Y(){const{formValues:t,errors:o,course:l,setCourse:E,loading:c,handleChange:r,handleSubmit:i}=H();return e.jsx("div",{className:"!w-full md:!w-[45%] lg:!w-[42%] !max-w-none !mx-auto !py-4 md:!py-6",children:e.jsxs("div",{className:"!bg-white !rounded-2xl md:!rounded-xl !p-4 sm:!p-5 md:!p-5 lg:!p-6 !shadow-[0_8px_28px_rgba(0,0,0,0.25)] md:!shadow-[0_4px_16px_rgba(0,0,0,0.15)] !border !border-gray-100 md:!border-gray-200 ",children:[e.jsxs("div",{className:"!mb-4",children:[e.jsx("h2",{className:"!text-base sm:!text-lg md:!text-xl !font-bold !text-gray-900 !m-0 !leading-snug !tracking-tight max-[767px]:!text-[14px]!",children:"Need More information? Request A Call Back!"}),e.jsx("div",{className:"!w-10 !h-[3px] !bg-gray-500 !rounded-full !mt-2"})]}),e.jsxs("form",{onSubmit:i,className:"!flex !flex-col !gap-3",children:[e.jsxs("div",{className:"!grid !grid-cols-1 sm:!grid-cols-2 !gap-2.5 sm:!gap-3",children:[e.jsxs("div",{className:"!w-full",children:[e.jsx("label",{htmlFor:"lead-name",className:"!sr-only",children:"Name"}),e.jsx("input",{id:"lead-name",name:"name",type:"text",value:t.name,onChange:r,placeholder:"Name",className:`!w-full !bg-[#f4f4f5] !text-gray-800 !text-xs sm:!text-sm !font-medium !px-3 !py-2.5 !rounded-8 !border 5 !outline-none !transition-all ${o.name?"!border-red-500 focus:!border-red-500":"!border-gray-200 focus:!border-gray-400 focus:!bg-white"}`}),o.name&&e.jsx("span",{className:"!text-[11px] !text-red-500 !mt-0.5 !block",children:o.name})]}),e.jsxs("div",{className:"!w-full",children:[e.jsx("label",{htmlFor:"lead-email",className:"!sr-only",children:"Email ID"}),e.jsx("input",{id:"lead-email",name:"email",type:"email",value:t.email,onChange:r,placeholder:"Email ID",className:`!w-full !bg-[#f4f4f5] !text-gray-800 !text-xs sm:!text-sm !font-medium !px-3 !py-2.5 !rounded-8 !border 6 !outline-none !transition-all ${o.email?"!border-red-500 focus:!border-red-500":"!border-gray-200 focus:!border-gray-400 focus:!bg-white"}`}),o.email&&e.jsx("span",{className:"!text-[11px] !text-red-500 !mt-0.5 !block",children:o.email})]})]}),e.jsxs("div",{className:"!grid !grid-cols-1 sm:!grid-cols-2 !gap-2.5 sm:!gap-3",children:[e.jsxs("div",{className:"!w-full",children:[e.jsx("label",{htmlFor:"lead-phone",className:"!sr-only",children:"Mobile Number"}),e.jsx("input",{id:"lead-phone",name:"phone",type:"number",value:t.phone,onChange:r,placeholder:"Mobile Number",className:`!w-full !bg-[#f4f4f5] !text-gray-800 !text-xs sm:!text-sm !font-medium !px-3 !py-2.5 !rounded-8 !border 7 !outline-none !transition-all ${o.phone?"!border-red-500 focus:!border-red-500":"!border-gray-200 focus:!border-gray-400 focus:!bg-white"}`,onInput:f=>{const g=f.target.value;g<0?f.target.value="":g.length>10&&(f.target.value=g.slice(0,10))}}),o.phone&&e.jsx("span",{className:"!text-[11px] !text-red-500 !mt-0.5 !block",children:o.phone})]}),e.jsxs("div",{className:"!relative !w-full",children:[e.jsx("label",{htmlFor:"courseSelect",className:"!sr-only",children:"Select Course"}),e.jsxs("select",{id:"courseSelect",className:"!w-full !appearance-none !bg-[#f4f4f5] !text-[#757575] !text-xs sm:!text-sm !font-medium !px-3 !py-2.5 !pr-10 !rounded-8 !border !border-gray-200 !outline-none focus:!border-gray-400 focus:!bg-white !cursor-pointer",value:l,onCh
7ange:f=>E(f.target.value),children:[e.jsx("option",{value:"NEET/NEXT",children:"NEET PG/NEXT"}),e.jsx("option",{value:"INICET",children:"INICET"}),e.jsx("option",{value:"FMGE",children:"FMGE"}),e.jsx("option",{value:"NEET SS",children:"NEET SS"}),e.jsx("option",{value:"USMLE",children:"USMLE"}),e.jsx("option",{value:"PLAB",children:"PLAB"}),e.jsx("option",{value:"NEET MDS",children:"NEET MDS"}),e.jsx("option",{value:"NURSING",children:"NURSING"})]}),e.jsx("span",{className:"pointer-events-none! absolute! right-4! top-1/2! -translate-y-1/2! w-0! h-0! border-l-[5px]! border-r-[5px]! border-t-[6px]! border-l-transparent! border-r-transparent! border-t-[#757575]!"})]})]}),e.jsxs("div",{className:"!w-full",children:[e.jsx("label",{htmlFor:"lead-query",className:"!sr-only",children:"Query"}),e.jsx("textarea",{id:"lead-query",name:"query",value:t.query,onChange:r,rows:"2",placeholder:"Type your query",className:`!w-full !h-[110px] max-[767px]:h-[90px]! !bg-[#f4f4f5] !text-gray-800 !text-xs sm:!text-sm !font-medium !p-3 !rounded-8 !border !outline-none 8 !resize-none !transition-all ${o.query?"!border-red-500 focus:!border-red-500":"!border-gray-200 focus:!border-gray-400 focus:!bg-white"}`}),o.query&&e.jsx("span",{className:"!text-[11px] !text-red-500 !mt-0.5 !block",children:o.query})]}),e.jsxs("div",{className:"!flex !items-start !gap-2 !mt-1",children:[e.jsx("input",{type:"checkbox",id:"authoriseCheckbox",defaultChecked:!0,className:"!mt-0.5 !w-3.5 !h-3.5 !rounded !border-gray-300 !text-black focus:!ring-0 !cursor-pointer"}),e.jsx("label",{htmlFor:"authoriseCheckbox",className:"!text-[10px] sm:!text-[11px] !leading-snug !text-gray-500 !cursor-pointer !select-none",children:"I authorise Delhi Academy of Medical Science and its representatives to Call, SMS, Email or WhatsApp me."})]}),e.jsx("div",{className:"!mt-1",children:e.jsx("button",{type:"submit",disabled:c,className:`!w-full !bg-[#1c1c1c] hover:!bg-black !text-white !font-bold !py-2.5 sm:!py-3 !px-6 !rounded-xl !transition-all 9 !duration-200 !flex !items-center !justify-center !cursor-pointer disabled:!opacity-60 !text-xs sm:!text-sm`,children:c?e.jsx("div",{className:"!w-4 !h-4 !border-2 !border-white !border-t-transparent !rounded-full !animate-spin",children:e.jsx("span",{className:"!sr-only",children:"Loading..."})}):"Submit"})})]})]})})}const U=s.lazy(()=>m(()=>import("./Login-BNmJyLwm.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])));function M({setIsAuthenticated:t}){const[o,l]=s.useState(!1);s.useEffect(()=>{const r=()=>l(!0);return globalThis.addEventListener("open-login-modal",r),()=>globalThis.removeEventListener("open-login-modal",r)},[]);const E=()=>{l(!1)},c=()=>{l(!1)};return o?e.jsx(s.Suspense,{fallback:null,children:e.jsx(U,{handlerClose:E,setIsAuthenticated:t,handleSignInSuccess:c,setIsSignInModalOpen:l})}):null}M.propTypes={setIsAuthenticated:L.func.isRequired};const W=s.lazy(()=>m(()=>import("./LeadershipSection-CCFYdTH7.js"),__vite__mapDeps([48,1]))),X=s.lazy(()=>m(()=>import("./FacultiesSection-YICae_A7.js"),__vite__mapDeps([49,1,50,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]))),$=s.lazy(()=>m(()=>import("./CoursesSection-BjeVRrFa.js"),__vite__mapDeps([51,1,4,2,3,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29]))),K=s.lazy(()=>m(()=>import("./CentersSection-B9LdvQEa.js"),__vite__mapDeps([52,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29]))),Q=s.lazy(()=>m(()=>import("./MultiFeaturedSection-BLBJhoEu.js"),__vite__mapDeps([53,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29]))),Z=s.lazy(()=>m(()=>import("./CortexAISection-BEY5pruw.js"),__vite__mapDeps([54,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29]))),J=s.lazy(()=>m(()=>import("./RevisionCoursesSection-BkE89uWM.js"),__vite__mapDeps([55,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29]))),ee=["leadership","faculties","courses","centers","multifeatured","cortexai","revision"],te=768,se=()=>{if(typeof document>"u")return 80;const t=document.querySelector("header.headerdata");if(t){const o=t.getBoundingClientRect().height;if(o>0)return o+12}return 80},P=()=>typeof globalThis>"u"?!1:globalThis.innerWidth<=te;function k({setIsAuthenticated:t,dynamicData:o}){const[l,E]=s.useState(P);s.useEffect(()=>{const i=()=>{E(P())};return globalThis.addEventListener("resize",i),globalThis.addEventListener("orientationchange",i
9),()=>{globalThis.removeEventListener("resize",i),globalThis.removeEventListener("orientationchange",i)}},[]),s.useEffect(()=>{const i=sessionStorage.getItem("scrollTarget");if(!i)return;sessionStorage.removeItem("scrollTarget");const f=performance.now();let g=null;const j=x=>x.getBoundingClientRect().top+globalThis.scrollY-se(),C=x=>{const _=performance.now()+600;let I=j(x);const S=()=>{const y=j(x);Math.abs(y-I)>2&&(I=y,globalThis.scrollTo({top:y,behavior:"auto"})),performance.now()<_?g=requestAnimationFrame(S):g=null};g=requestAnimationFrame(S)},N=()=>{const x=document.getElementById(i);if(x){const _=j(x);globalThis.scrollTo({top:_,behavior:"auto"}),C(x);return}performance.now()-f<5e3?g=requestAnimationFrame(N):g=null};return g=requestAnimationFrame(N),()=>{g&&cancelAnimationFrame(g)}},[]);const c={leadership:l?"300px":"320px",faculties:l?"220px":"auto",courses:l?"auto":"300px",centers:l?"400px":"500px",multifeatured:l?"260px":"450px",cortexai:l?"225px":"400px",revision:l?"225px":"400px"},r=R(ee);return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"bg-[#f5f5f5]!",children:[e.jsx("div",{className:"tw-container",children:e.jsx("div",{className:"mt-17.5! mb-10! max-[767px]:mt-11.25! max-[767px]:mb-8.75!",children:e.jsxs("div",{className:"row",children:[e.jsx(q,{}),e.jsx(G,{type:1}),e.jsx(Y,{})]})})}),e.jsx(v,{ref:r.leadership.ref,visible:r.leadership.visible,minHeight:c.leadership,children:e.jsx(W,{dynamicData:o})}),e.jsx("div",{id:"faculty-section",children:e.jsx(v,{ref:r.faculties.ref,visible:r.faculties.visible,minHeight:c.faculties,children:e.jsx(X,{})})}),e.jsx("div",{id:"courses-section",children:e.jsx(v,{ref:r.courses.ref,visible:r.courses.visible,minHeight:c.courses,children:e.jsx($,{dynamicData:o})})}),e.jsx("div",{id:"centers-section",children:e.jsx(v,{ref:r.centers.ref,visible:r.centers.visible,minHeight:c.centers,children:e.jsx(K,{})})}),e.jsx(v,{ref:r.multifeatured.ref,visible:r.multifeatured.visible,minHeight:c.multifeatured,children:e.jsx(Q,{})}),e.jsx(v,{ref:r.cortexai.ref,visible:r.cortexai.visible,minHeight:c.cortexai,children:e.jsx(Z,{})}),e.jsx(v,{ref:r.revision.ref,visible:r.revision.visible,minHeight:c.revision,children:e.jsx(J,{})})]}),e.jsx(M,{setIsAuthenticated:t})]})}k.propTypes={setIsAuthenticated:L.func.isRequired,dynamicData:L.object};const re=b.lazy(()=>m(()=>import("./MedimartHome-kKo36t9W.js"),__vite__mapDeps([56,1,8,9,10,11,2,3,4,5,6,7,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,57,30,31]))),oe=b.lazy(()=>m(()=>import("./MentorDesk-T06gcxx8.js"),__vite__mapDeps([58,1,4,2,3,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,36,37,38,39,40,41,42,43,44,45,59]))),ne=()=>e.jsxs("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100vh",width:"100%",backgroundColor:"#fff",position:"fixed",top:0,left:0,zIndex:9999},children:[e.jsx("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"16px"}}),e.jsx("style",{children:"@keyframes spin { to { transform: rotate(360deg); } }"})]}),ie=b.lazy(()=>m(()=>import("./CourseAcess-C3-c6yPa.js"),__vite__mapDeps([60,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,61,30,31,32,62,63,64,65,66,67,68,69,70,71,72]))),ae=b.lazy(()=>m(()=>import("./Coursesclassroom-BSB-YlAI.js"),__vite__mapDeps([73,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,74,75,76,67,77])));b.lazy(()=>m(()=>import("./Findcourses-CP-Doc27.js"),__vite__mapDeps([78,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31])));const le=b.lazy(()=>m(()=>import("./ToppersZone-BnY4xbp9.js"),__vite__mapDeps([79,1,5,3,6,32,4,2,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29]))),ce=b.lazy(()=>m(()=>import("./GetTheApp-DCwzmC8H.js"),__vite__mapDeps([80,1,30,18,31,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,19,20,21,22,23,24,25,26,27,28,29,81,36,37,38,39,40,41,42,43,44,45,74,75,76,67,77]))),de=b.lazy(()=>m(()=>import("./Storiesinspire-DPrywr6D.js"),__vite__mapDeps([82,1,4,17,18,19,3,20,21,22,23,24,25,26,27,28]))),me=b.lazy(()=>m(()=>import("./LatestNewsArticles-BvmGItP1.js"),__vite__mapDeps([83,1,32,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29]))),ue=b.lazy(()=>m(()=>import("./EMedicozFeatured-BRSnqJB4.js"),__vite__mapDeps([68,1,5,3,6,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29]))),pe=b.lazy(()=>m(()=>import("./DoctorLounge-XNtTCb_t.js"),__vite__mapDeps([84,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,0,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47]))),xe=b.lazy(()=>m(()=>import("./SharedItem-BeZnx9rf.js"),__vite__mapDeps([85,1]))),he={classroom:"7px",findCourse:"200px",dailyQuiz:"200px",medimart:"947px",doctor:"350px",mentor:"955px",topper:"530px",app:"10px",impact:"10px",stories:"300px",featured:"300px",news:"200px"},fe=()=>new URLSearchParams(O().search),ge=["classroom","findCourse","medimart","doctor","mentor","topper","app","impact","stories","featured","news"],be=[{key:"classroom",Component:ae},{key:"medimart",Component:re,props:t=>({allData:t})},{key:"doctor",Component:pe,props:()=>({need:"need"})},{key:"mentor",Component:oe,props:(t,o)=>({homeData:t.homeData,setIsAuthenticated:o})},{key:"topper",Component:le,props:t=>({allData:t})},{key:"app",Component:ce},{key:"stories",Component:de,props:t=>({videoData:t==null?void 0:t.videoData}
9)},{key:"news",Component:me,props:t=>({newsArticle:t==null?void 0:t.newsArticle})},{key:"featured",Component:ue}],_e=({setIsAuthenticated:t})=>{const l=fe().get("book_id"),[E]=s.useState(()=>sessionStorage.getItem("id")),[c]=s.useState(()=>sessionStorage.getItem("is_course_register")||"0"),[r]=s.useState(()=>{const u=sessionStorage.getItem("userData");return u?JSON.parse(u):{}}),[i,f]=s.useState({videoData:null,homeData:null,mentorData:null,inspire:null,getCategoryData:[],newsArticle:null,leaderShip:[],multiFeatureApp:[],speacialCourse:[],premiumAppBase:[],omniChannel:[],bestRevistion:[],panIndiaFace:[],category:[]}),[g,j]=s.useState(!0),[C,N]=s.useState(!1),x=E??"4",_=R(ge);s.useEffect(()=>{(async()=>{var a,d,p;try{const[h,T]=await Promise.all([w.post(A.HOMEPAGE_INDEX.GET_DYNAMICWEBDATA),w.post(A.COURSEACESS_HOMEPAGE.GET_HOMESCREEN_CATEGORYDATA,{stream_id:1,user_id:x})]),n=(a=h==null?void 0:h.data)==null?void 0:a.data,D=(d=T==null?void 0:T.data)==null?void 0:d.data;f(V=>({...V,getCategoryData:D,bestRevistion:n==null?void 0:n.bestRevisionCourses,leaderShip:n==null?void 0:n.leader_ship,multiFeatureApp:n==null?void 0:n.multi_feature_app,speacialCourse:n==null?void 0:n.spacel_course_available,premiumAppBase:n==null?void 0:n.premium_app_based_learning,omniChannel:n==null?void 0:n.omniChannelPresence,panIndiaFace:n==null?void 0:n.panIndiafacetoFace,category:n==null?void 0:n.Categories})),(p=h==null?void 0:h.data)!=null&&p.status||F.error("Something went wrong")}catch(h){globalThis.__APP_LOGGER__.log("Error loading guest dynamic data:",h)}finally{j(!1)}})()},[x]);const I=_.medimart.visible||_.mentor.visible||_.topper.visible;s.useEffect(()=>{if(!I||i.homeData)return;(async()=>{var a;try{const d=await w.post(A.HOMEPAGE_INDEX.HOMESCREEN_MYPLANE_V2,{user_id:x}),p=(a=d==null?void 0:d.data)==null?void 0:a.data;f(h=>({...h,homeData:p,mentorData:p==null?void 0:p.event_cat_list}))}catch(d){globalThis.__APP_LOGGER__.log("Error fetching home plan data:",d)}})()},[I,x,i.homeData]);const S=_.stories.visible;s.useEffect(()=>{if(!S||i.videoData)return;(async()=>{try{const a=await w.post(A.HOMEPAGE_INDEX.WEB_VIDEO,{user_id:x});f(d=>{var p;return{...d,videoData:(p=a==null?void 0:a.data)==null?void 0:p.data}})}catch(a){globalThis.__APP_LOGGER__.log("Error fetching video data:",a)}})()},[S,x,i.videoData]);const y=_.news.visible;return s.useEffect(()=>{if(!y||i.newsArticle)return;(async()=>{try{const a=await w.post(A.HOMEPAGE_INDEX.GET_HOME_NEWS_AI_NEWSARTICLE_V2,{user_id:x});f(d=>{var p;return{...d,newsArticle:(p=a==null?void 0:a.data)==null?void 0:p.data}})}catch(a){globalThis.__APP_LOGGER__.log("Error fetching news article data:",a)}})()},[y,x,i.newsArticle]),s.useEffect(()=>{if(C){const u=setTimeout(()=>{N(!1)},2e3);return()=>clearTimeout(u)}},[C]),s.useEffect(()=>{sessionStorage.setItem("menuopen",1)},[]),s.useEffect(()=>{const u=sessionStorage.getItem("scrollTarget");if(!u)return;sessionStorage.removeItem("scrollTarget");const a=document.getElementById(u);if(a){a.scrollIntoView({behavior:"smooth",block:"start"});return}const d=new MutationObserver(()=>{const h=document.getElementById(u);h&&(h.scrollIntoView({behavior:"smooth",block:"start"}),d.disconnect())});d.observe(document.body,{childList:!0,subtree:!0});const p=setTimeout(()=>d.disconnect(),2e4);return()=>{d.disconnect(),clearTimeout(p)}},[]),e.jsx(e.Fragment,{children:l?e.jsx(s.Suspense,{fallback:e.jsx("p",{children:"Loading book..."}),children:e.jsx(xe,{setIsAuthenticated:t,bookid:l})}):e.jsx("div",{style:{minHeight:"100vh",overflowAnchor:"none"},children:Number(r==null?void 0:r.is_course_register)===1||Number(c)===1?e.jsx(s.Suspense,{fallback:e.jsx(ne,{}),children:e.jsx(ie,{mentorData:i.mentorData})}):e.jsxs(e.Fragment,{children:[e.jsx(k,{setIsModalOpen:N,setIsAuthenticated:t,dynamicData:i}),!g&&be.map(({key:u,Component:a,props:d,condition:p})=>{if(p&&!p(c))return null;const h=_[u],T=d?d(i,t):{},n=he[u]||"1px",D=e.jsx(v,{ref:h.ref,visible:h.visible,minHeight:n,children:e.jsx(a,{...T})},u);return u==="medimart"?e.jsx("div",{id:"medimart-section",children:D},u):D})]})})})};_e.propTypes={setIsAuthenticated:L.func.isRequired};export{_e as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.