PageSourceSearch

https://damsdelhi.com/assets/MentorDesk-CwelDdQp.js

js damsdelhi.com collected 2026-09-25 18:35:28 UTC 26,650 bytes, 8 lines download raw bytes

1import{a,j as t}from"./vendor-react-CIe7BBPp.js";import{P as l}from"./vendor-prop-types-DNxwfY3H.js";import{a as L,A as C}from"./index-B3dWxf7F.js";import{b as P}from"./vendor-router-MF_ECADz.js";import{S as V}from"./vendor-react-bootstrap-BWua6sV7.js";import"./vendor-react-dom-t5F7FhZR.js";import"./vendor-react-toastify-DyH3b-7G.js";import"./vendor-clsx-B-dksMZM.js";import"./vendor-axios-D2K41pGA.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-antd-CjcCcqh_.js";import"./vendor-helpers-Bu0hh0lh.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";import"./vendor-copy-to-clipboard-DxQUb0mb.js";import"./vendor-toggle-selection-DGa8lynz.js";import"./vendor-remix-run-router-D1FRce34.js";import"./vendor-react-lifecycles-compat-BQyd-nVo.js";import"./vendor-restart-ui-CZ6pMDW7.js";import"./vendor-dom-helpers-DY4L_g-8.js";import"./vendor-warning-CQQPl30N.js";import"./vendor-react-aria-ssr-C_EJWdyo.js";import"./vendor-restart-hooks-C7rFwvJj.js";import"./vendor-uncontrollable-B5vvWZVv.js";import"./vendor-prop-types-extra-BShinCMI.js";import"./vendor-react-transition-group-BNHTQ0HL.js";const W=e=>{const[s,o]=a.useState(!1);return a.useEffect(()=>{const r=e.current;if(!r)return;const i=()=>{const u=r.scrollWidth>r.clientWidth+1;o(x=>x===u?x:u)};i();const d=new ResizeObserver(i);return d.observe(r),()=>d.disconnect()},[e]),s},D=e=>{a.useEffect(()=>{const s=e.current;if(!s)return;let o=!1,r,i,d;const u=p=>{o=!0,r=p.pageX-s.offsetLeft,i=s.scrollLeft},x=()=>{o=!1,s.style.cursor="grab"},m=()=>{o=!1,s.style.cursor="grab"},b=p=>{if(!o)return;s.style.cursor="grabbing",p.preventDefault();const g=(p.pageX-s.offsetLeft-r)*1.2;cancelAnimationFrame(d),d=requestAnimationFrame(()=>{s.scrollLeft=i-g})};return s.style.cursor="grab",s.addEventListener("mousedown",u),s.addEventListener("mouseleave",x),s.addEventListener("mouseup",m),s.addEventListener("mousemove",b),()=>{cancelAnimationFrame(d),s.removeEventListener("mousedown",u),s.removeEventListener("mouseleave",x),s.removeEventListener("mouseup",m),s.removeEventListener("mousemove",b)}},[e])},A=a.memo(({event:e,showImageTag:s,onBook:o})=>{const r=(e==null?void 0:e.avalable_sheat)==="0",i=(e==null?void 0:e.seat_type)==="1",d=a.useCallback(()=>{r||o(e.id,e)},[r,o,e]),u=a.useCallback(x=>{x.stopPropagation(),o(e.id,e)},[o,e]);return t.jsxs("button",{className:`!w-[285px] !min-w-[285px] !bg-white !rounded-2xl !p-3.5 !border !border-gray-100 !shadow-[0_4px_18px_rgba(0,0,0,0.08)]
2        !flex !flex-col !justify-between !transition-all !duration-300 hover:!-translate-y-1 hover:!shadow-xl !flex-shrink-0
3        !text-left ${r?"!opacity-60 !cursor-not-allowed":"!cursor-pointer"}`,onClick:d,children:[t.jsxs("div",{className:"!relative !w-full !h-[175px] !rounded-xl !overflow-hidden !bg-gray-100",children:[s&&t.jsxs("div",{className:"!absolute !top-2.5 !left-2.5 !z-10 !bg-white/95 !backdrop-blur-sm !px-2.5 !py-1 !rounded-md !flex !items-center !gap-1.5 !shadow-sm",children:[t.jsx("span",{className:`!w-2 !h-2 !rounded-full ${i?"!bg-amber-500":"!bg-red-600"}`}),t.jsx("span",{className:`!text-[11px] !font-bold !uppercase !tracking-wide ${i?"!text-amber-600":"!text-red-600"}`,children:i?"Face To Face":"ONLINE"})]}),t.jsx("img",{src:(e==null?void 0:e.cover_image)||(e==null?void 0:e.desc_header_image)||"/web/mentor-pic.webp",alt:(e==null?void 0:e.title)||"Event Image",draggable:!1,loading:"lazy",className:"!w-full !h-full !object-cover !rounded-xl"})]}),t.jsxs("div",{className:"!mt-1 !flex !flex-col !flex-grow !justify-between",children:[t.jsxs("div",{children:[t.jsx("h4",{className:"!text-[15px] !font-bold !text-gray-900 !line-clamp-1 !tracking-tight mb-0!",children:e==null?void 0:e.title}),!s&&!i&&t.jsx("p",{className:"!text-xs !font-bold !text-emerald-600 !mt-1 mb-0!",children:"Online"}),(e==null?void 0:e.stage_type)!=="1"&&t.jsxs("p",{className:"!text-[11px] !font-semibold !text-blue-500 !mt-1.5 !truncate !mb-0",children:[e==null?void 0:e.event_start_date," - ",e==null?void 0:e.event_end_date," |"," ",e==null?void 0:e.event_start_time," - ",e==null?void 0:e.event_end_time]})]}),t.jsxs("div",{className:"mt-3! max-[767px]:mt-1!",children:[t.jsxs("h5",{className:"text-[18px]! font-bold! text-gray-900! mb-2! max-[767px]:text-[15px]!",children:["₹",e==null?void 0:e.mrp]}),r?t.jsx("button",{disabled:!0,className:"!w-full !bg-gray-200 !text-gray-500 !py-2.5 !px-4 !rounded-xl !text-sm !font-bold !cursor-not-allowed !border-0",children:"Sold Out"}):t.jsxs("button",{className:`!w-full !bg-[#007bff] hover:!bg-blue-700 !text-white !py-2.5 !px-4 !rounded-xl !text-sm !font-bold !flex
4              !items-center !justify-center !gap-1.5 !transition-colors !duration-200 !cursor-pointer !border-0`,onClick:u,"aria-label":i?"Book face to face event":"Book online event",children:[t.jsx("span",{children:i?"Face to Face":"Book Online"}),t.jsx("span",{className:"!text-base !font-normal",children:"→"})]})]})]})]})});
4A.displayName="CardItem";A.propTypes={event:l.object.isRequired,showImageTag:l.bool,onBook:l.func.isRequired};const R=a.memo(({eventList:e,scrollRef:s,sectionId:o,canScroll:r,showImageTag:i,onBook:d,scroll:u})=>{const[x,m]=a.useState(null);if(!e.length)return t.jsx("p",{className:"noDataText !w-full !text-center !py-10 !text-gray-500 !text-sm !font-medium",children:"No items available"});const b=r&&x===o;return t.jsxs("section",{className:"scrollWrapper","aria-label":o,onMouseEnter:()=>m(o),onMouseLeave:()=>m(null),onFocus:()=>m(o),onBlur:()=>m(null),children:[t.jsx("button",{className:`scrollArrowBtn ${b?"arrowVisible":"arrowHidden"}`,onClick:()=>u(s,-1),"aria-label":"Scroll Left",children:"‹"}),t.jsx("div",{className:"flex! gap-5! overflow-x-auto! scroll-smooth! select-none! scrollbar-none [&::-webkit-scrollbar]:h-0 hover:scrollbar-thin hover:[&::-webkit-scrollbar]:h-1.5 hover:[&::-webkit-scrollbar-track]:bg-[#f4f9ff] hover:[&::-webkit-scrollbar-thumb]:rounded-full hover:[&::-webkit-scrollbar-thumb]:bg-gray-400",ref:s,style:{userSelect:"none"},children:e.map(p=>t.jsx(A,{event:p,showImageTag:i,onBook:d},p.id))}),t.jsx("button",{className:`scrollArrowBtn ${b?"arrowVisible":"arrowHidden"}`,onClick:()=>u(s,1),"aria-label":"Scroll Right",children:"›"})]})});R.displayName="CardsSection";R.propTypes={eventList:l.array.isRequired,scrollRef:l.object.isRequired,sectionId:l.string.isRequired,canScroll:l.bool,showImageTag:l.bool,onBook:l.func.isRequired,scroll:l.func.isRequired};const M=a.memo(({cat:e,isActive:s,onSelect:o})=>t.jsx("button",{type:"button",className:`!inline-flex !items-center !justify-center !gap-2 !px-5 !py-2.5 !text-sm !font-bold !rounded-xl !transition-all !duration-200 !cursor-pointer !border-0 !outline-none max-[767px]:px-3! max-[767px]:py-1.5! max-[767px]:text-[11px]! ${s?"!bg-white !text-blue-600 !shadow-md":"!bg-transparent !text-gray-600 hover:!text-gray-900"}`,onClick:()=>o(e.id),"aria-pressed":s,children:e==null?void 0:e.name}));M.displayName="TabButton";M.propTypes={cat:l.object.isRequired,isActive:l.bool,onSelect:l.func.isRequired};const v=a.memo(({categoryList:e,activeTab:s,onTabSelect:o})=>!e||e.length===0?null:t.jsx("div",{className:"flex! justify-center! items-center! w-full! my-4! max-[767px]:my-2!",children:t.jsx("div",{className:"inline-flex! items-center! gap-1.5! bg-[#e8f1fd]! rounded-2xl! px-2! max-[767px]:px-2!",children:e.map(r=>t.jsx(M,{cat:r,isActive:String(s)===String(r.id),onSelect:o},r==null?void 0:r.id))})}));v.displayName="TabsList";v.propTypes={categoryList:l.array.isRequired,activeTab:l.oneOfType([l.string,l.number]),onTabSelect:l.func.isRequired};const X=e=>String(e.stage_type)==="0",U=e=>Array.isArray(e)?e.map(s=>({...s,event_list:(s.event_list||[]).filter(X)})):[],G=async e=>{var r,i;const s=await L.post(C.EVENT.GET_ALL_EVENTS,{user_id:e,stage_type:1}),o=((i=(r=s==null?void 0:s.data)==null?void 0:r.data)==null?void 0:i.cat_wise_event_list)||[];return U(o)},K=async(e,s,o)=>{try{const r=await G(e);s&&o(r)}catch(r){globalThis.__APP_LOGGER__.log("Error during retrying EVENTS:",r)}},I=a.memo(({homeData:e})=>{const s=sessionStorage.getItem("id"),o=P(),[r,i]=a.useState([]),[d,u]=a.useState(!1),x=a.useMemo(()=>(e==null?void 0:e.event_category_list)||[],[e]),[m,b]=a.useState(()=>{var f,c;return((c=(f=e==null?void 0:e.event_category_list)==null?void 0:f[0])==null?void 0:c.id)||null});a.useEffect(()=>{x.length>0&&!x.some(f=>String(f.id)===String(m))&&b(x[0].id)},[x,m]);const p=a.useRef(null),h=W(p);D(p);const g=a.useCallback((f,c)=>{f.current&&f.current.scrollBy({left:c*300,behavior:"smooth"})},[]);a.useEffect(()=>{let f=!0,c=null;return(async()=>{var _,y;const j=s??"4";u(!0);try{const w=await G(j);if(!f)return;i(w),(!Array.isArray(w)||w.length===0||((y=(_=w.find(E=>String(E.id)==="0"))==null?void 0:_.event_list)==null?void 0:y.length)===0)&&(globalThis.__APP_LOGGER__.log("Retrying EVENTS..."),c=setTimeout(()=>K(j,f,i),800))}catch(w){globalThis.__APP_LOGGER__.log("Error fetching Events data:",w)}finally{f&&u(!1)}})(),()=>{f=!1,c&&clearTimeout(c)}},[s]);const N=a.useMemo(()=>{if(!m||!(r!=null&&r.length))return[];const f=r.find(n=>String(n.id)==="0"),c=(f==null?void 0:f.event_list)||[];return String(m)==="0"?c:c.filter(n=>String(n.event_cat)===String(m))},[m,r]),S=a.useCallback((f,c)=>{localStorage.setItem("eventId",f),(c==null?void 0:c.availability_course)==="1"?o(`/Eventbooking/${c==null?void 0:c.slug}`):o(`/eventcenter/${c==null?void 0:c.slug}`)},[o]);return!d&&x.length===0?null:t.jsx("div",{className:"!relative left-1/2 -translate-x-1/2 !w-screen",style:{minHeight:"450px"}
4,children:t.jsx("div",{className:"relative! left-1/2! -translate-x-1/2! w-screen! bg-white! py-10! px-5! float-left! min-h-[450px]! contain-[layout]! max-[767px]:mt-5! max-[767px]:rounded-[18px]! max-[767px]:p-0! max-[767px]:py-0! max-[767px]:px-0!",children:t.jsxs("div",{className:"tw-container",children:[t.jsxs("div",{className:"flex! flex-col! items-center! mb-6! max-[767px]:mb-2!",children:[t.jsx("button",{onClick:()=>o("/event"),className:"text-[22px]! sm:text-3xl! font-extrabold! text-gray-900! hover:text-blue-600! transition-colors! cursor-pointer! bg-transparent! border-0! p-0! max-[767px]:text-[18px]!","aria-label":"Events",children:"Events"}),t.jsx("div",{className:"w-12! h-[3px]! bg-[#3b82f6]! rounded-full! mt-2!"})]}),!d&&t.jsx(v,{categoryList:x,activeTab:m,onTabSelect:b}),t.jsx("div",{style:{minHeight:"330px"},children:d?t.jsx("div",{style:{textAlign:"center",margin:"50px"},children:t.jsx(V,{animation:"border",variant:"primary"})}):t.jsx(R,{eventList:N,scrollRef:p,sectionId:"events",canScroll:h,showImageTag:!0,onBook:S,scroll:g})}),t.jsx("div",{className:"flex! justify-center! items-center! w-full! !mt-6! mb-2! max-[767px]:mt-2! max-[767px]:mb-0!",children:t.jsxs("button",{onClick:()=>o("/event"),"aria-label":"View all events",className:"!inline-flex !items-center !justify-center !gap-2 !bg-[#e8f1fd] hover:!bg-[#dbe9fd] !text-[#007bff] !px-6 !py-2.5 !rounded-lg !text-sm !font-bold !transition-all !duration-200 !cursor-pointer !border-0 !outline-none max-[767px]:px-3! max-[767px]:py-1! max-[767px]:text-[12px]! max-[767px]:mt-0!",children:[t.jsx("span",{children:"View All"}),t.jsx("span",{className:"text-base! font-bold!",children:"→"})]})})]})})})});I.displayName="EventDesk";I.propTypes={homeData:l.object};const J=e=>{const[s,o]=a.useState(!1);return a.useEffect(()=>{const r=e.current;if(!r)return;const i=()=>{const u=r.scrollWidth>r.clientWidth+1;o(x=>x===u?x:u)};i();const d=new ResizeObserver(i);return d.observe(r),()=>d.disconnect()},[e]),s},Q=e=>{a.useEffect(()=>{const s=e.current;if(!s)return;let o=!1,r,i,d;const u=p=>{o=!0,r=p.pageX-s.offsetLeft,i=s.scrollLeft},x=()=>{o=!1,s.style.cursor="grab"},m=()=>{o=!1,s.style.cursor="grab"},b=p=>{if(!o)return;s.style.cursor="grabbing",p.preventDefault();const g=(p.pageX-s.offsetLeft-r)*1.2;cancelAnimationFrame(d),d=requestAnimationFrame(()=>{s.scrollLeft=i-g})};return s.style.cursor="grab",s.addEventListener("mousedown",u),s.addEventListener("mouseleave",x),s.addEventListener("mouseup",m),s.addEventListener("mousemove",b),()=>{cancelAnimationFrame(d),s.removeEventListener("mousedown",u),s.removeEventListener("mouseleave",x),s.removeEventListener("mouseup",m),s.removeEventListener("mousemove",b)}},[e])},q=a.memo(({event:e,showImageTag:s,isMentorship:o,onBook:r})=>{const i=(e==null?void 0:e.avalable_sheat)==="0",d=(e==null?void 0:e.seat_type)==="1",u=a.useCallback(()=>{i||r(e.id,e,o)},[i,r,e,o]),x=a.useCallback(m=>{m.stopPropagation(),r(e.id,e,o)},[r,e,o]);return t.jsxs("button",{tabIndex:i?-1:0,className:`!w-[285px] !min-w-[285px] !bg-white !rounded-2xl !p-3.5 !border !border-gray-100 !shadow-[0_4px_18px_rgba(0,0,0,0.08)] 
5        !flex !flex-col !justify-between !transition-all !duration-300 hover:!-translate-y-1 hover:!shadow-xl !flex-shrink-0 
6        !text-left ${i?"!opacity-60 !cursor-not-allowed":"!cursor-pointer"}`,onClick:u,onKeyDown:m=>{(m.key==="Enter"||m.key===" ")&&!i&&(m.preventDefault(),u(m))},children:[t.jsxs("div",{className:"!relative !w-full !h-[175px] !rounded-xl !overflow-hidden !bg-gray-100",children:[s&&t.jsxs("div",{className:"!absolute !top-2.5 !left-2.5 !z-10 !bg-white/95 !backdrop-blur-sm !px-2.5 !py-1 !rounded-md !flex !items-center !gap-1.5 !shadow-sm",children:[t.jsx("span",{className:`!w-2 !h-2 !rounded-full ${d?"!bg-amber-500":"!bg-red-600"}`}),t.jsx("span",{className:`!text-[11px] !font-bold !uppercase !tracking-wide ${d?"!text-amber-600":"!text-red-600"}`,children:d?"Face To Face":"ONLINE"})]}),t.jsx("img",{src:(e==null?void 0:e.cover_image)||(e==null?void 0:e.desc_header_image)||"/web/mentor-pic.webp",alt:(e==null?void 0:e.title)||"Event Image",draggable:!1,loading:"lazy",className:"!w-full !h-full !object-cover !rounded-xl"})]}),t.jsxs("div",{className:"!mt-3 !flex !flex-col !flex-grow !justify-between",children:[t.jsxs("div",{children:[t.jsx("h4",{className:"!text-[15px] !font-bold !text-gray-900 !line-clamp-1 !tracking-tight mb-2!",children:e==null?void 0:e.title}),!s&&!d&&t.jsx("p",{className:"!text-xs !font-bold !text-emerald-600 !mt-1 mb-0!",children:"Online"}),(e==null?void 0:e.stage_type)!=="1"&&t.jsxs("p",{className:"!text-[11px] !font-semibold !text-blue-500 !mt-1.5 !truncate",children:[e==null?void 0:e.event_start_date," - ",e==null?void 0:e.event_end_date," |"," ",e==null?void 0:e.event_start_time," - ",e==null?void 0:e.event_end_time]})]}),t.jsxs("div",{className:"!mt-3",children:[t.jsxs("h5",{className:"text-lg! font-bold! text-gray-900! mb-2!",children:["₹",e==null?void 0:e.mrp]}),i?t.jsx("button",{disabled:!0,className:"!w-full !bg-gray-200 !text-gray-500 !py-2.5 !px-4 !rounded-xl !text-sm !font-bold !cursor-not-allowed !border-0",children:"Sold Out"}):t.jsxs("button",{className:`!w-full !bg-[#007bff] hover:!bg-blue-700 !text-white !py-2.5 !px-4 !rounded-xl !text-sm !font-bold !flex !items-center 
7              !justify-center !gap-1.5 !transition-colors !duration-200 !cursor-pointer !border-0`,onClick:x,"aria-label":d?"Book face to face event":"Book online event",children:[t.jsx("span",{children:d?"Face to Face":"Book Online"}),t.jsx("span",{className:"!text-base !font-normal",children:"→"})]})]})]})]})});
7q.displayName="CardItem";q.propTypes={event:l.object.isRequired,showImageTag:l.bool,isMentorship:l.bool,onBook:l.func.isRequired};const F=a.memo(({eventList:e,scrollRef:s,sectionId:o,canScroll:r,showImageTag:i,isMentorship:d,onBook:u,scroll:x})=>{const[m,b]=a.useState(null);if(!e.length)return t.jsx("p",{className:"noDataText",children:"No items available"});const p=r&&m===o;return t.jsxs("section",{className:"scrollWrapper","aria-label":o,onMouseEnter:()=>b(o),onMouseLeave:()=>b(null),onFocus:()=>b(o),onBlur:()=>b(null),children:[t.jsx("button",{className:`scrollArrowBtn ${p?"arrowVisible":"arrowHidden"}`,onClick:()=>x(s,-1),"aria-label":"Scroll Left",children:"‹"}),t.jsx("div",{className:`flex! gap-5! overflow-x-auto! scroll-smooth! py-4! px-2! select-none! [&>div]:!border! [&>div]:border-gray-200!
8        [&>div]:rounded-xl! [&>div]:shadow-[0_2px_8px_rgba(0,0,0,0.18)]! scrollbar-none [&::-webkit-scrollbar]:h-0 hover:scrollbar-thin hover:[&::-webkit-scrollbar]:h-1.5 hover:[&::-webkit-scrollbar-track]:bg-gray-100 hover:[&::-webkit-scrollbar-thumb]:rounded-full hover:[&::-webkit-scrollbar-thumb]:bg-gray-400`,ref:s,style:{userSelect:"none"},children:e.map(h=>t.jsx(q,{event:h,showImageTag:i,isMentorship:d,onBook:u},h.id))}),t.jsx("button",{className:`scrollArrowBtn ${p?"arrowVisible":"arrowHidden"}`,onClick:()=>x(s,1),"aria-label":"Scroll Right",children:"›"})]})});F.displayName="CardsSection";F.propTypes={eventList:l.array.isRequired,scrollRef:l.object.isRequired,sectionId:l.string.isRequired,canScroll:l.bool,showImageTag:l.bool,isMentorship:l.bool,onBook:l.func.isRequired,scroll:l.func.isRequired};const B=a.memo(({categoryList:e,activeTab:s,onTabSelect:o})=>t.jsx("div",{className:"!flex !justify-center !items-center !w-full !my-4 !px-[30px] max-[767px]:px-[10px]!",children:t.jsx("div",{className:"!inline-flex !items-center !gap-1.5 !bg-[#e8f1fd] !p-1.5 !rounded-2xl",children:e.map(r=>{const i=String(s)===String(r.id);return t.jsx("button",{type:"button",className:`!inline-flex !items-center !justify-center !gap-2 !px-5 !py-2.5 !text-sm !font-bold !rounded-xl !transition-all !duration-200 !cursor-pointer !border-0 !outline-none max-[767px]:px-2! max-[767px]:py-1! max-[767px]:text-[11px]! ${i?"!bg-white !text-blue-600 !shadow-md":"!bg-transparent !text-gray-600 hover:!text-gray-900"}`,onClick:()=>o(r.id),"aria-pressed":i,children:r==null?void 0:r.name},r==null?void 0:r.id)})})}));B.displayName="TabsList";B.propTypes={categoryList:l.array.isRequired,activeTab:l.oneOfType([l.string,l.number]),onTabSelect:l.func.isRequired};const O=a.memo(({title:e,categoryList:s,activeTab:o,setActiveTab:r,viewAllPath:i,scrollRef:d,sectionId:u,canScroll:x,isMentorship:m,showImageTag:b,showViewAll:p,eventList:h,loading:g,onBook:N,scroll:S,navigate:f})=>!g&&s.length===0?null:t.jsx("div",{className:"relative! left-1/2! -translate-x-1/2! w-screen! bg-white! float-left! min-h-[450px]! contain-[layout]! max-[767px]:mt-2! max-[767px]:rounded-[18px]!",children:t.jsxs("div",{className:"tw-container",children:[t.jsxs("div",{className:"!flex !flex-col !items-center !mb-6",children:[!g&&t.jsx(B,{categoryList:s,activeTab:o,onTabSelect:r}),t.jsxs("div",{className:"!flex !flex-col !items-center !text-center",children:[t.jsxs("button",{onClick:()=>f(i),className:"!text-[18px] lg:!text-[30px] !font-extrabold !text-[#1e293b] hover:!opacity-90 !transition-opacity !cursor-pointer !bg-transparent !border-0 !p-0","aria-label":e,children:["Personalized ",t.jsx("span",{className:"!text-[#007bff]",children:e})]}),t.jsx("p",{className:"!text-[15px] max-[767px]:!text-[13px] !text-gray-600 !mt-2 !max-w-md !leading-relaxed mb-0!",children:"Book a 1:1 session with our expert faculty and get personalized guidance for your USMLE journey."})]})]}),t.jsx("div",{className:"tabData",style:{minHeight:"330px"},children:g?t.jsx("div",{style:{textAlign:"center",margin:"50px"},children:t.jsx(V,{animation:"border",variant:"primary"})}):t.jsx(F,{eventList:h,scrollRef:d,sectionId:u,canScroll:x,showImageTag:b,isMentorship:m,onBook:N,scroll:S})}),p&&t.jsx("div",{className:"flex! justify-center! items-center! w-full! mt-6! mb-2! max-[767px]:mt-2! max-[767px]:mb-0!",children:t.jsxs("button",{onClick:()=>f(i),"aria-label":`View all ${e.toLowerCase()}`,className:"!inline-flex !items-center !justify-center !gap-2 !bg-[#e8f1fd] hover:!bg-[#dbe9fd] !text-[#007bff] !px-6 !py-2.5 !rounded-lg !text-sm !font-bold !transition-all !duration-200 !cursor-pointer !border-0 !outline-none max-[767px]:px-3! max-[767px]:py-1! max-[767px]:text-[12px]! max-[767px]:mt-0!",children:[t.jsx("span",{children:"View All"}),t.jsx("span",{className:"text-base! font-bold!",children:"→"})]})}),t.jsxs("div",{className:"!w-full !max-w-[860px] !mx-auto !bg-white !rou
8nded-xl px-5! py-4! mb-5! !shadow-[0_3px_16px_rgba(0,0,0,0.07)] !border !border-gray-100 !flex !flex-col sm:!flex-row !items-center !justify-between !gap-5 max-[767px]:block! ",children:[t.jsxs("div",{className:"!flex !items-center !gap-3 !flex-1 !min-w-0 max-[767px]:mb-4!",children:[t.jsx("div",{className:"!w-8 !h-8 !rounded-lg !bg-[#eaf3ff] !flex !items-center !justify-center !text-[#007bff] !flex-shrink-0",children:t.jsx("svg",{className:"!w-4 !h-4",fill:"none",stroke:"currentColor",strokeWidth:"2",viewBox:"0 0 24 24",children:t.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"})})}),t.jsxs("div",{className:"!min-w-0",children:[t.jsx("h5",{className:"!text-[13px] !leading-[16px] !font-bold !text-gray-900 !m-0 !p-0",children:"Expert Faculty"}),t.jsx("p",{className:"!text-[11px] !leading-[13px] !text-gray-500 !m-0 !p-0 !mt-0.5 !whitespace-nowrap",children:"Learn from India's top medical experts"})]})]}
8),t.jsxs("div",{className:"!flex !items-center !gap-3 !flex-1 !min-w-0 max-[767px]:mb-2!",children:[t.jsx("div",{className:"!w-8 !h-8 !rounded-lg !bg-[#eaf3ff] !flex !items-center !justify-center !text-[#007bff] !flex-shrink-0",children:t.jsx("svg",{className:"!w-4 !h-4",fill:"none",stroke:"currentColor",strokeWidth:"2",viewBox:"0 0 24 24",children:t.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"})})}),t.jsxs("div",{className:"!min-w-0",children:[t.jsx("h5",{className:"!text-[13px] !leading-[16px] !font-bold !text-gray-900 !m-0 !p-0",children:"Flexible Scheduling"}),t.jsx("p",{className:"!text-[11px] !leading-[13px] !text-gray-500 !m-0 !p-0 !mt-0.5 !whitespace-nowrap",children:"Book at your convenience with flexible slots"})]})]}),t.jsxs("div",{className:"!flex !items-center !gap-3 !flex-1 !min-w-0 max-[767px]:mb-4!",children:[t.jsx("div",{className:"!w-8 !h-8 !rounded-lg !bg-[#eaf3ff] !flex !items-center !justify-center !text-[#007bff] !flex-shrink-0",children:t.jsx("svg",{className:"!w-4 !h-4",fill:"none",stroke:"currentColor",strokeWidth:"2",viewBox:"0 0 24 24",children:t.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"})})}),t.jsxs("div",{className:"!min-w-0",children:[t.jsx("h5",{className:"!text-[13px] !leading-[16px] !font-bold !text-gray-900 !m-0 !p-0",children:"Secure & Private"}),t.jsx("p",{className:"!text-[11px] !leading-[13px] !text-gray-500 !m-0 !p-0 !mt-0.5 !whitespace-nowrap",children:"100% confidential sessions with experts"})]})]})]})]})}));O.displayName="SectionContainer";O.propTypes={title:l.string.isRequired,categoryList:l.array.isRequired,activeTab:l.oneOfType([l.string,l.number]),setActiveTab:l.func.isRequired,viewAllPath:l.string.isRequired,scrollRef:l.object.isRequired,sectionId:l.string.isRequired,canScroll:l.bool,isMentorship:l.bool,showImageTag:l.bool,showViewAll:l.bool,eventList:l.array.isRequired,loading:l.bool,onBook:l.func.isRequired,scroll:l.func.isRequired,navigate:l.func.isRequired};const Y=e=>String(e.stage_type)==="1",z=e=>Array.isArray(e)?e.map(s=>({...s,event_list:(s.event_list||[]).filter(Y)})):[],Z=async(e,s,o)=>{var r,i;try{const d=await L.post(C.EVENT.GET_ALL_EVENTS,{user_id:e,stage_type:1});if(s){const u=((i=(r=d==null?void 0:d.data)==null?void 0:r.data)==null?void 0:i.cat_wise_event_list)||[];o(z(u))}}catch(d){globalThis.__APP_LOGGER__.log("Error during retrying MENTORSHIP:",d)}},$=a.memo(({homeData:e})=>{const s=sessionStorage.getItem("id"),o=P(),[r,i]=a.useState([]),[d,u]=a.useState(!1),x=a.useMemo(()=>(e==null?void 0:e.mentorship_category_list)||[],[e]),[m,b]=a.useState(()=>{var c,n;return((n=(c=e==null?void 0:e.mentorship_category_list)==null?void 0:c[0])==null?void 0:n.id)||null});a.useEffect(()=>{x.length>0&&!x.some(c=>String(c.id)===String(m))&&b(x[0].id)},[x,m]);const p=a.useRef(null),h=J(p);Q(p);const g=a.useCallback((c,n)=>{c.current&&c.current.scrollBy({left:n*300,behavior:"smooth"})},[]);a.useEffect(()=>{let c=!0,n=null;return(async()=>{var y,w;const _=s??"4";u(!0);try{const k=await L.post(C.EVENT.GET_ALL_EVENTS,{user_id:_,stage_type:1});if(!c)return;const E=((w=(y=k==null?void 0:k.data)==null?void 0:y.data)==null?void 0:w.cat_wise_event_list)||[],T=z(E);i(T),(!Array.isArray(T)||T.length===0)&&(globalThis.__APP_LOGGER__.log("Retrying MENTORSHIP..."),n=setTimeout(()=>Z(_,c,i),800))}catch(k){globalThis.__APP_LOGGER__.log("Error fetching Mentorship data:",k)}finally{c&&u(!1)}})(),()=>{c=!1,n&&clearTimeout(n)}},[s]);const N=a.useCallback((c,n)=>{if(!c||!(n!=null&&n.length))return[];const j=n.find(y=>String(y.id)==="0"),_=(j==null?void 0:j.event_list)||[];return String(c)==="0"?_:_.filter(y=>String(y.event_cat)===String(c))},[]),S=a.useMemo(()=>N(m,r),[m,r,N]),f=a.useCallback((c,n)=>{if(localStorage.setItem("eventId",c),!((n==null?void 0:n.seat_type)==="1")){o(`/instructor-slots/${n==null?void 0:n.slug}`,{state:{event_id:c,subject_id:(n==null?void 0:n.subject_id)??null,slug:n==null?void 0:n.slug,instructor_id:n==null?void 0:n.instructor_id}});return}(n==null?void 0:n.availability_course)==="1"?o(`/Eventbooking/${n==null?void 0:n.slug}`):o(`/eventcenter/${n==null?void 0:n.slug}`)},[o]);return t.jsx(O,{title:"Mentorship",categoryList:x,activeTab:m,setActiveTab:b,viewAllPath:"/mentorship",scrollRef:p,sectionId:"mentorship",canScroll:h,isMentorship:!0,showImageTag:!1,showViewAll:!1,eventList:S,loading:d,onBook:f,scroll:g,navigate:o})});$.displayName="MentorshipDesk";
8$.propTypes={homeData:l.object};const H=a.memo(({homeData:e})=>t.jsxs(t.Fragment,{children:[t.jsx(I,{homeData:e}),t.jsx($,{homeData:e})]}));H.displayName="MentorDesk";H.propTypes={homeData:l.object};export{H 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.