PageSourceSearch

https://damsdelhi.com/assets/Eventbooking-C7MezRPl.js

js damsdelhi.com collected 2026-09-25 18:35:05 UTC 27,526 bytes, 3 lines download raw bytes

1import{s as De,D as et}from"./vendor-antd-CjcCcqh_.js";import{a as o,j as e}from"./vendor-react-CIe7BBPp.js";import{f as tt}from"./vendor-redux-LH1zpDpA.js";import{P as s}from"./vendor-prop-types-DNxwfY3H.js";import{z as _}from"./vendor-helpers-Bu0hh0lh.js";import{p as st}from"./vendor-dompurify-D6gMnemd.js";import{toast as g}from"./vendor-react-toastify-DyH3b-7G.js";import{J as V,g as nt,f as at,o as rt,K as it}from"./vendor-react-icons-BjOknaQJ.js";import{a as P,A as R,l as lt}from"./index-B3dWxf7F.js";import{I as O}from"./images-DsoEKV9h.js";import ot from"./Login-CwfFzfYl.js";import{b as ct,u as dt,d as xt}from"./vendor-router-MF_ECADz.js";import"./vendor-clsx-B-dksMZM.js";import"./vendor-react-dom-t5F7FhZR.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-use-sync-external-store-f1cvjnMh.js";import"./vendor-immer-Bp5DpiZ6.js";import"./vendor-redux-thunk-ClJT1hhx.js";import"./vendor-axios-D2K41pGA.js";import"./vendor-js-cookie-Cz0CWeBA.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-remix-run-router-D1FRce34.js";import"./vendor-react-international-phone-0WvDnNd3.js";import"./vendor-react-bootstrap-BWua6sV7.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";import"./vendor-libphonenumber-js-D3XxeqIS.js";const pt=t=>(t==null?void 0:t.category_name)||(t==null?void 0:t.category),le=t=>(t==null?void 0:t.mrp)||(t==null?void 0:t.before_discount_mrp)||"0",mt=t=>t.is_purchased==="1"?t.mrp:t.amount_description?t.amount_description.payment[0]:"";function oe({open:t,onToggle:d,onWhatsapp:l,onCopy:r}){return e.jsxs("div",{className:"relative! z-[50]! flex! flex-col! items-center! overflow-visible!",children:[e.jsx("button",{type:"button",className:"share-icon! circle-bg! bg-[#007aff]! w-[40px]! h-[40px]! rounded-full! text-white! text-[16px]! flex! items-center! justify-center! border-0! cursor-pointer! relative! z-[51]!",onClick:d,"aria-label":t?"Close share menu":"Open share menu",children:t?e.jsx("span",{className:"text-[20px]! font-bold! leading-none!",children:"×"}):e.jsx(at,{className:"text-[18px]!"})}),t&&e.jsxs("div",{className:"absolute! top-[48px]! right-0! z-[9999]! flex! flex-col! items-center! gap-[8px]!",children:[e.jsx("button",{type:"button",className:"w-[40px]! h-[40px]! flex! items-center! justify-center! bg-[#41c451]! text-white! text-[18px]! rounded-full! border-0! cursor-pointer! shadow-md!",onClick:l,"aria-label":"Share on WhatsApp",children:e.jsx(rt,{className:"text-[20px]!"})}),e.jsx("button",{type:"button",className:"w-[40px]! h-[40px]! flex! items-center! justify-center! bg-[#0077b5]! text-white! text-[16px]! rounded-full! border-0! cursor-pointer! shadow-md!",onClick:r,"aria-label":"Copy link",children:e.jsx(it,{className:"text-[17px]!"})})]})]})}oe.propTypes={open:s.bool,onToggle:s.func,onWhatsapp:s.func,onCopy:s.func};function ce({avgRating:t,show:d,onOpen:l,onClose:r,message:h,onChangeRating:x,onChangeMessage:c,onSubmit:n}){return e.jsxs("div",{className:"ratIng! hidden!",children:[e.jsxs("div",{className:"ratIngText",children:[e.jsx("em",{className:"fa fa-star"}),e.jsxs("h3",{children:[t||"0",e.jsx("span",{className:"text-gry",children:"( 4 Rating )"})]}),e.jsx("span",{className:"rate",children:e.jsx("div",{children:d&&e.jsx("div",{className:"fixed! inset-0! z-[1050]! flex! items-center! justify-center! bg-black/50! px-4! py-5!",children:e.jsxs("div",{className:"relative! w-full! max-w-[500px]! rounded-[18px]! bg-white! p-5! shadow-[0_5px_15px_rgba(0,0,0,0.3)]!",children:[e.jsx("button",{type:"button",onClick:r,className:"absolute! right-[26px]! top-[30px]! bg-transparent! border-0! text-2xl! curs
1or-pointer!",children:"×"}),e.jsxs("div",{className:"text-exp",children:[e.jsx("h3",{className:"text-[20px]! mb-[10px]!",children:"Give Your Experience"}),e.jsxs("fieldset",{className:"rate-star! inline-block! border-0! my-[0px]! mx-0! mb-[10px]!",children:[e.jsx("input",{type:"radio",required:!0,id:"rating10",name:"rating",value:"5",onChange:x,className:"hidden!"}),e.jsx("label",{htmlFor:"rating10",title:"5 stars","aria-label":"5 star",className:"float-right! text-[#ccc]! my-0! mx-0! text-[24px]! cursor-pointer!"}),e.jsx("input",{type:"radio",required:!0,id:"rating9",name:"rating",value:"5",onChange:x,className:"hidden!"}),e.jsx("input",{type:"radio",required:!0,id:"rating8",name:"rating",value:"4",onChange:x,className:"hidden!"}),e.jsx("input",{type:"radio",required:!0,id:"rating7",name:"rating",value:"4",onChange:x,className:"hidden!"}),e.jsx("label",{htmlFor:"rating7",className:"half! float-right! text-[#ccc]! my-0! mx-0! text-[24px]! cursor-pointer!",title:"3 1/2 stars","aria-label":"3 and a half stars"}),e.jsx("input",{type:"radio",required:!0,id:"rating6",name:"rating",value:"3",onChange:x,className:"hidden!"}),e.jsx("label",{htmlFor:"rating6",title:"3 stars","aria-label":"3 star",className:"float-right! text-[#ccc]! my-0! mx-0! text-[24px]! cursor-pointer!"}),e.jsx("input",{type:"radio",required:!0,id:"rating5",name:"rating",value:"3",onChange:x,className:"hidden!"}),e.jsx("label",{htmlFor:"rating9",title:"2 1/2 stars","aria-label":"2 and a half stars",className:"float-right! text-[#ccc]! my-0! mx-0! text-[24px]! cursor-pointer!"}),e.jsx("input",{type:"radio",required:!0,id:"rating4",name:"rating",value:"2",onChange:x,className:"hidden!"}),e.jsx("label",{htmlFor:"rating4",title:"2 stars","aria-label":"2 stars",className:"float-right! text-[#ccc]! my-0! mx-0! text-[24px]! cursor-pointer!"}),e.jsx("input",{type:"radio",required:!0,id:"rating3",name:"rating",value:"2",onChange:x,className:"hidden!"}),e.jsx("label",{htmlFor:"rating3",title:"2 1/2 stars",className:"half! float-right! text-[#ccc]! my-0! mx-0! text-[24px]! cursor-pointer!","aria-label":"2 stars"}),e.jsx("input",{type:"radio",required:!0,id:"rating2",name:"rating",value:"1",onChange:x,className:"hidden!"}),e.jsx("label",{htmlFor:"rating2",title:"1 stars","aria-label":"1 stars",className:"float-right! text-[#ccc]! my-0! mx-0! text-[24px]! cursor-pointer!"}),e.jsx("input",{type:"radio",required:!0,id:"rating1",name:"rating",value:"1",onChange:x,className:"hidden!"}),e.jsx("label",{htmlFor:"rating1",title:"1/2 stars",className:"half! float-right! text-[#ccc]! my-0! mx-0! text-[24px]! cursor-pointer!","aria-label":"2 stars"})]}),e.jsx("textarea",{rows:"2",cols:"50",name:"comment",onChange:c,value:h,form:"usrform",className:"w-full! border! border-[#ccc]! rounded-[10px]! p-[10px_15px]!"})]}),e.jsx("span",{className:"error",id:"username_err",children:" "}),e.jsx("div",{className:"mt-4! flex! justify-end!",children:e.jsx("button",{type:"button",className:"btn! sub! border! border-[#eee]! bg-[#ddd]! px-4! py-2! rounded! hover:text-black!",onClick:n,children:"Submit"})})]})})})})]}),e.jsx("div",{className:"rateNow",children:e.jsx("button",{className:"btn! bg-white! w-[125px]! py-[10px]! px-0! rounded-[12px]! text-[#08d002]! border! border-solid! border-[#08d002]! font-medium! text-[16px]! hover:bg-white! hover:text-[#08d002]!",onClick:l,children:"Rate Now"})})]})}ce.propTypes={avgRating:s.oneOfType([s.string,s.number]),show:s.bool,onOpen:s.func,onClose:s.func,message:s.string,onChangeRating:s.func,onChangeMessage:s.func,onSubmit:s.func};function de({participants:t,participantCount:d,eventVanue:l}){return e.jsxs("div",{className:"participant! my-[20px]! hidden!",children:[e.jsxs("ul",{children:[Array.isArray(t)&&t.map(r=>e.jsx("li",{className:"inline-block! -mr-[10px]!",children:e.jsx("img",{src:(r==null?void 0:r.profile_picture)||`${O}/dams-icon/logo.png`,alt:(r==null?void 0:r.name)||"Participant",title:(r==null?void 0:r.name)||"Participant",className:"w-[40px]! h-[40px]! rounded-[50px]! p-[3px]! border! border-[#ccc]! mr-[6px]! text-[10px]!"})},r.user_id)),e.jsx("li",{className:"twoK! inline-block! bg-[#9e9e9e]! w-[46px]! h-[46px]! py-[10
1px]! px-0! text-[#fff]! text-center! font-medium! rounded-[30px]! border-2! border-solid! border-white! -mr-[10px]!",children:d})]}),e.jsx("div",{className:"allOver",children:e.jsxs("h4",{className:"text-[16px]! font-medium! text-[#424242]! mb-0!",children:["Participant"," ",l&&e.jsx("span",{className:"block! text-[#757575]!",children:l})]})})]})}de.propTypes={participants:s.array,participantCount:s.number,eventVanue:s.string};function xe({show:t,sanitizedDescription:d,isFaceToFaceRenew:l,price:r,onBuyClick:h}){return t?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"aboutEvent! bg-gradient-to-b! from-[#eeeeee]! via-[#fafafa]! to-[#ffffff]! my-[30px]! mx-0! rounded-[20px]! p-[30px_25px]! inline-block! w-full! max-h-[500px]! overflow-y-auto! max-lg:p-[20px_15px]! max-sm:p-[10px]!",children:e.jsxs("div",{className:"setOfAboutPart! block!",children:[e.jsx("h2",{className:"text-[20px]! text-[#007aff]! mb-[10px]! leading-[20px]! max-lg:text-[18px]! max-sm:text-[12px]!",children:"About This Event:"}),e.jsx("p",{dangerouslySetInnerHTML:{__html:d||"No description available."},className:"text-[15px]! text-[#757575]! m-0! max-lg:text-[14px]! max-sm:text-[13px]! max-sm:leading-[21px]! max-sm:break-words!"})]})}),e.jsx("div",{className:"buyTicket! my-[1%]! mx-0! inline-block! w-full!",children:e.jsxs("button",{className:`btn! w-full! text-[14px]! font-medium! rounded-[10px]! flex! justify-between! bg-[#007aff]! 
2                                text-[#ffffff]! border-0! cursor-pointer! max-sm:text-[14px]! max-sm:py-[10px_15px]! !px-[10px] !py-[15px] 
3                                max-sm:rounded-[8px]! ${l?"btn-renew":""}`,onClick:h,children:["₹",r," ",e.jsx("span",{children:l?"Renew":"Buy Ticket"})]})})]}):null}xe.propTypes={show:s.bool,sanitizedDescription:s.string,isFaceToFaceRenew:s.bool,price:s.oneOfType([s.string,s.number]),onBuyClick:s.func};function pe({courseData:t,participantCount:d,sanitizedDescription:l,open:r,onToggleShare:h,onWhatsapp:x,onCopyLink:c,show:n,onOpenRating:w,onCloseRating:p,message:v,onChangeRating:N,onChangeMessage:j,onSubmitRating:F,isFaceToFaceRenew:G,onBuyTicketClick:A}){const M=Object.keys(t).length>0,E=pt(t);return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"desimgPart",children:e.jsx("img",{src:(t==null?void 0:t.desc_header_image)||`${O}/dams-icon/img1.svg`,loading:"lazy",alt:(t==null?void 0:t.title)||"Event",onError:B=>B.target.src=`${O}/dams-icon/img1.svg`,className:"w-full! h-[280px]! rounded-[32px]! object-contain! bg-white! max-lg:h-auto! max-lg:rounded-[16px]!"})}),e.jsxs("div",{className:"eventDescription! w-full! my-[40px]! mx-0! max-lg:my-[20px]! max-lg:mx-0!",children:[M?e.jsxs("div",{className:"tarGeting! relative! overflow-visible!",children:[e.jsxs("div",{className:"ShareBtn! flex! items-start! justify-between! relative! mt-[10px]! overflow-visible!",children:[e.jsxs("h1",{className:"text-[18px]! font-medium! text-[#212121]! mb-[20px]! max-lg:text-[16px]! max-sm:text-[14px]!",children:[(t==null?void 0:t.title)||"Event Title"," ",(t==null?void 0:t.vanue_address)&&e.jsxs("span",{className:"text-[#424242]! block! text-[14px]! font-normal! mt-[6px]! max-sm:text-[13px]!",children:["( ",t.vanue_address," )"]})]}),e.jsx(oe,{open:r,onToggle:h,onWhatsapp:x,onCopy:c})]}),E&&e.jsx("div",{className:"category-section",children:e.jsx("p",{className:"event-category",children:E})}),e.jsx(ce,{avgRating:t==null?void 0:t.avrage_rating,show:n,onOpen:w,onClose:p,message:v,onChangeRating:N,onChangeMessage:j,onSubmit:F}),e.jsxs("h2",{className:"text-[14px]! font-medium! text-[#007aff]! flex! max-sm:text-[12px]!",children:[e.jsx("span",{children:e.jsx(V,{className:"text-[18px]! mr-[10px]!"})}),(t==null?void 0:t.event_start_date)||"N/A"," -"," ",(t==null?void 0:t.event_end_date)||"N/A"," |"," ",(t==null?void 0:t.event_start_time)||"N/A"," -"," ",(t==null?void 0:t.event_end_time)||"N/A"]}),e.jsx(de,{participants:t==null?void 0:t.participant,participantCount:d,eventVanue:t==null?void 0:t.event_vanue})]}):e.jsx("div",{children:"No event data available"}),e.jsx(xe,{show:M,sanitizedDescription:l,isFaceToFaceRenew:G,price:le(t),onBuyClick:A})]})]})}
3pe.propTypes={courseData:s.object,participantCount:s.number,sanitizedDescription:s.string,open:s.bool,onToggleShare:s.func,onWhatsapp:s.func,onCopyLink:s.func,show:s.bool,onOpenRating:s.func,onCloseRating:s.func,message:s.string,onChangeRating:s.func,onChangeMessage:s.func,onSubmitRating:s.func,isFaceToFaceRenew:s.bool,onBuyTicketClick:s.func};function me({show:t,onClose:d,modalData:l,activeIndex:r,onPlanClick:h,onProceed:x,renewCheckSpin:c,firstInstallmentId:n,isLoading:w=!1}){return t?e.jsx("div",{className:"fixed! inset-0! z-[1050]! flex! items-center! justify-center! bg-black/50! px-4! py-5! !mt-[80px]",children:e.jsxs("div",{className:"relative! w-full! max-w-[768px]! rounded-[18px]! bg-white! shadow-[0_5px_15px_rgba(0,0,0,0.3)]! max-sm:max-w-full! max-sm:mx-4! max-sm:mt-[50px]!",children:[e.jsxs("div",{className:"flex! items-start! justify-between! p-[1rem]! border-b! border-[#e5e5e5]! relative!",children:[e.jsx("h4",{className:"text-[18px]! font-medium! mb-0!",children:"Select Subscription Plan"}),e.jsx("button",{type:"button",className:"bg-transparent! border-0! text-2xl! cursor-pointer! absolute! top-[8px]! right-[15px]! hover:text-[#000]! opacity-60! hover:opacity-100!",onClick:d,children:"×"})]}),e.jsx("div",{className:"p-4!",children:w?e.jsxs("div",{className:"w-full! min-h-[300px]! flex! flex-col! items-center! justify-center!",children:[e.jsx("div",{className:"w-10! h-10! rounded-full! border-4! border-[#e0e0e0]! border-t-[#007aff]! animate-spin!"}),e.jsx("p",{className:"mt-3! text-[14px]! text-[#757575]!",children:"Loading subscription plans..."})]}):e.jsx("section",{className:"subscription-data",children:e.jsxs("div",{className:"grid! grid-cols-12! gap-4!",children:[e.jsx("div",{className:"col-span-12! sm:col-span-12! md:col-span-6! lg:col-span-6! xl:col-span-6!",children:e.jsx("div",{className:"text-center! border! border-[#f5f5f5]! rounded-[8px]! shadow-[rgba(100,100,111,0.2)_0px_7px_29px_0px]! py-[20px]! px-[20px]!",children:e.jsx("img",{src:`${O}/dams-icon/new-images.png`,loading:"lazy",alt:"new-images",className:"max-w-full! w-[300px]! max-lg:w-[250px]!"})})}),e.jsx("div",{className:"col-span-12! sm:col-span-12! md:col-span-6! lg:col-span-6! xl:col-span-6!",children:e.jsx("div",{className:"tab-pane active",children:e.jsxs("div",{className:"show-center",children:[l==null?void 0:l.map((p,v)=>e.jsx("button",{type:"button",className:`w-full! text-left! border! border-[#e0e0e0]! rounded-[8px]! py-[15px]! px-[20px]! my-[0px_0px_15px_0]! bg-transparent! cursor-pointer! transition-colors! duration-200! ${v===r?"bg-[#e4ffdb]! border-[#08D002]!":"hover:bg-[#f5f5f5]!"}`,onClick:()=>h(v,p==null?void 0:p.id),"data-id":p==null?void 0:p.id,children:e.jsxs("div",{className:"flex! items-center! justify-between!",children:[e.jsx("div",{className:`w-[20px]! h-[20px]! rounded-full! border! border-[#757575]! flex-shrink-0! ${v===r?"hidden!":""}`}),e.jsx("div",{className:`flex-shrink-0! ${v===r?"block!":"hidden!"}`,children:e.jsx("img",{src:`${O}/Layer-44.png`,loading:"lazy",alt:"icon Layer-44",className:"w-[22px]! h-[22px]!"})}),e.jsx("div",{className:"month-text flex-1! ml-4!",children:e.jsx("h5",{className:"text-[16px]! text-[#212121]! font-medium! m-0! max-lg:text-[15px]! max-sm:text-[13px]!",children:p.name})}),e.jsxs("h3",{className:"text-[18px]! text-[#212121]! font-medium! leading-[10px]! m-0! flex-shrink-0!",children:[e.jsx("em",{className:"fa fa-rupee mr-1!"}),mt(p)]})]})},p==null?void 0:p.id)),e.jsx("div",{className:"w-full! mt-[5%]! mx-auto!",children:e.jsx("button",{type:"button",className:"w-full! text-[#fff]! text-[15px]! text-center! uppercase! py-[12px]! px-0! font-normal! rounded-[8px]! bg-[#007aff]! border-0! cursor-pointer! hover:bg-[#0069d9]! transition-colors! duration-200! disabled:opacity-50! disabled:cursor-not-allowed!",disabled:c,onClick:()=>x(n),children:c?"Please wait...":"Proceed to pay"})})]})})})]})})})]})}):null}me.propTypes={show:s.bool,onClose:s.func,modalData:s.array,activeIndex:s.number,onPlanClick:s.func,onProceed:s.func,renewCheckSpin:s.bool,firstInstallmentId:s.oneOfType([s.string,
3s.number]),isLoading:s.bool};function he({show:t,onClose:d,renewStartDate:l,renewEndDate:r,lastExpiryDate:h,minAllowedDate:x,showDatePicker:c,onDatePickerOpenChange:n,onDateChange:w,disabledDate:p,onProceed:v}){if(!t)return null;const N=j=>j?_(j).format("DD MMM YYYY"):"—";return e.jsx("div",{className:"fixed! inset-0! z-[9999]! flex! items-center! justify-center! bg-black/50! px-4! py-5!",children:e.jsxs("div",{className:"relative! w-full! max-w-[420px]! rounded-[16px]! bg-white! p-6! mx-4! shadow-[0_5px_15px_rgba(0,0,0,0.3)]!",children:[e.jsx("button",{onClick:d,className:"absolute! top-[12px]! right-[12px]! w-[28px]! h-[28px]! rounded-full! bg-[#1a73e8]! border-0! text-[#fff]! text-[16px]! cursor-pointer! flex! items-center! justify-center! hover:bg-[#1557b0]! transition-colors! duration-200!",children:"×"}),e.jsx("h5",{className:"font-semibold! mb-[20px]! text-[16px]!",children:"Choose your course start date"}),e.jsxs("div",{className:"relative! mb-[16px]!",children:[e.jsx(et,{open:c,value:l?_(l):null,disabledDate:p,onChange:w,onOpenChange:j=>n(j),className:"absolute! opacity-0! pointer-events-none! w-full! top-0! left-0!",getPopupContainer:j=>j.parentNode}),e.jsx("button",{onClick:()=>n(!0),className:"w-full! border! border-[#e0e0e0]! rounded-[8px]! py-[20px]! px-0! text-center! min-h-[80px]! flex! items-center! justify-center! cursor-pointer! transition-colors! duration-200! hover:border-[#1a73e8]!",children:l?e.jsxs("div",{className:"flex! items-center! gap-[8px]!",children:[e.jsx(V,{className:"text-[#1a73e8]! text-[18px]!"}),e.jsx("p",{className:"m-0! text-[15px]! font-medium!",children:_(l).format("DD MMM YYYY")})]}):e.jsxs("div",{className:"flex! items-center! gap-[8px]!",children:[e.jsx(V,{className:"text-[#aaa]! text-[18px]!"}),e.jsx("p",{className:"m-0! text-[#999]!",children:"Select Date"})]})})]}),e.jsxs("div",{className:"bg-[#e8f0fe]! rounded-[8px]! py-[14px]! px-[16px]! mb-[12px]!",children:[e.jsx("p",{className:"text-[#1a73e8]! font-semibold! mb-[8px]! text-[14px]!",children:"Validity:"}),e.jsxs("div",{className:"flex! flex-col! gap-[6px]! text-[13px]!",children:[h&&e.jsxs("span",{children:[e.jsx("strong",{children:"Last Expiry:"})," ",N(h)]}),e.jsxs("div",{className:"flex! justify-between!",children:[e.jsxs("span",{children:[e.jsx("strong",{children:"Start Date:"})," ",l?_(l).format("DD MMM YYYY"):"-"]}),e.jsxs("span",{children:[e.jsx("strong",{children:"Expired:"})," ",r?_(r).format("DD MMM YYYY"):"—"]})]})]})]}),e.jsx("p",{className:"text-[12px]! text-[#666]! text-center! mb-[20px]!",children:"Validity as per your chosen subscription and start date."}),e.jsx("button",{className:"w-full! bg-[#1a73e8]! text-[#fff]! border-0! rounded-[30px]! py-[14px]! px-0! text-[15px]! font-semibold! cursor-pointer! tracking-[0.5px]! hover:bg-[#1557b0]! transition-colors! duration-200!",onClick:v,children:"PROCEED"})]})})}he.propTypes={show:s.bool,onClose:s.func,renewStartDate:s.string,renewEndDate:s.string,lastExpiryDate:s.string,minAllowedDate:s.oneOfType([s.object,s.string]),showDatePicker:s.bool,onDatePickerOpenChange:s.func,onDateChange:s.func,disabledDate:s.func,onProceed:s.func};const ht=({setIsAuthenticated:t})=>{var ne,ae,re,ie;o.useEffect(()=>{window.scrollTo({top:0,behavior:"instant"})},[]);const d=ct(),l=tt(),r=dt(),h=r.state||{},x=h.isRenew||localStorage.getItem("is_renew")==="1",c=sessionStorage.getItem("id"),[n,w]=o.useState({}),p=((ne=n==null?void 0:n.participant)==null?void 0:ne.length)||0,v=st.sanitize(n.description||""),[N,j]=o.useState([]),[F,G]=o.useState(1),[A,M]=o.useState(""),[E,B]=o.useState(0),[ue,z]=o.useState(0),[fe,ge]=o.useState(null),[be,W]=o.useState(!1),[ve,H]=o.useState(!1),[je,C]=o.useState(!1),[ye,_e]=o.useState(!1),[Ne,q]=o.useState(!1),[K,J]=o.useState(""),[we,Q]=o.useState(""),[$,Ce]=o.useState(null),[X,ke]=o.useState({value:1,type:"month"}),[Ee,Se]=o.useState(h.lastExpiryDate||""),[Te,Pe]=o.useState(null),[Re,Z]=o.useState(!1),[Oe,D]=o.useState(!1),ee=()=>W(!1),Ae=()=>{if(!c){C(!0);return}W(!0)},I=((ae=r.state)==null?void 0:ae.eventId)||localStorage.getItem("eventId");o.useEffect(()=>{I&&localStorage.setItem("eventId",I)},[I]);const Me=a=>{G(a.target.value)},Ie=a=>{M(a.target.value)},Y=xt().slug,Ye=async()=>{var a,i,b,k,m,u,S;H(!0);try{const y=await P.post(R.EVENT.GET_EVENT_DETAIL,{user_id:c||"4",course_id:I,slug:Y}),f=((i=(a=y.data)==null?void 0:a.data)==null?void 0:i.event_detaile)||((k=(b=y.data)==null?void 0:b.data)==null?void 0:k.event_detail)||((m=y.data)==null?void 0:m.event_detaile)||((u=y.data)==null?void 0:u.event_detail)||null;f?(w(f),j(f.installment||[])):(globalThis.__APP_LOGGER__.log("Event detail not found in response structure"),g.error("Event details not found"))}catch(y){globalThis.__APP_LOGGER__.log("Error fetching event data:",y),globalThis.__APP_LOGGER__.log("Error details:",(S=y.response)==null?void 0:S.data),g.error("Failed to load event details. Please try again.")}finally{H(!1)}};o.useEffect(()=>{Y?Ye():(globalThis.__APP_LOGGER__.log("No slug found in URL parameters"),g.error("No event selected"),d(-1))},[Y]);const L=x&&(Number.parseInt(n==null?void 0:n.availability_course,10)===2||(n==null?void 0:n.availability_course)==="2"),Le=()=>{c?Fe():C(!0)},Fe=()=>{(n==null?void 0:n.installment)&&n.installment.length>0?N.length>0?z(1):g.error("No Subscription Available"):U(null)},te=(a,i,b)=>{switch(b){case"year":return a.add(i,"year");case"month":return a.add(i,"month");default:return a.add(i,"day")}},Ge=async a=>{var i,b,k;if(!L){U(a);return}Z(!0);try{const m=await P.post(R.My_ORDER.CHECK_COURSE_RENEW,{user_id:c,course_id:n==null?void 0:n.id}),u=N.find(Ze=>String(Ze.id)===String(a))||N[0],S=Number.parseInt((u==null?void 0:u.duration)||(u==null?void 0:u.validity_days)||1,10),y=((u==null?void 0:u.validity_type)||"month").toLowerCase();ke({value:S,type:y});const f=(i=m==null?void 0:m.data)==null?void 0:i.data;let T;(b=m==null?void 0:m.data)!=null&&b.status&&(f==null?void 0:f.is_renew)==="1"&&(f!=null&&f.last_expiry)?(Se(f.last_expiry),T=_(f.last_expiry).add(1,"day")):T=_();const Xe=te(T,S,y);Ce(T),J(T.format("YYYY-MM-DD")),Q(Xe.format("YYYY-MM-DD")),Pe(a),z(0),q(!0)}catch(m){globalThis.__APP_LOGGER__.log("Error checking renewal status:",m),globalThis.__APP_LOGGER__.log("API Error Response:",(k=m==null?void 0:m.response)==null?void 0:k.data),g.error("Failed to check renew
3al status.")}finally{Z(!1)}},Be=a=>{if(!a)return;const i=a.format("YYYY-MM-DD");J(i);const b=te(a,X.value,X.type);Q(b.format("YYYY-MM-DD")),D(!1)},ze=a=>{if(!a)return!1;const i=$?_($).startOf("day"):_().startOf("day");return a.isBefore(i)},qe=()=>{C(!1)},$e=()=>{C(!1)},U=a=>{var m;if(!c){C(!0);return}let i;E===0?i=a:i=fe;const b={user_id:c},k={user_id:c,course_id:n.id,subscription_id:i,course_start_date:L?K:"",facetofacecenter_id:n.subcenter_id,is_part_payment:0,course_registration_amount:"",pending_amount:"",payment_id:"",id_fr_learning_center_detail:"",booking_type:"",partner_member_id:"",is_cbt:"",is_combo_master:0,combo_course_id:"",is_renew:L?"1":"0",stages_type:1,stages_amount:Number(le(n)),slot_id:((m=h==null?void 0:h.slot)==null?void 0:m.id)||""};P.post(R.CBT.CLEAR_DATA,b).then(u=>{l(lt()),Ue(k)}).catch(u=>{globalThis.__APP_LOGGER__.log("Error clearing cart:",u),g.error("Failed to clear cart")})},Ue=a=>{P.post(R.CBT.ADD_COURSE_TO_CART,a).then(i=>{i.data.status===!0?(g.success("Event has been added to cart",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0}),d("/addToCart")):(g.error("Event already added in cart",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0}),d("/addToCart"))}).catch(i=>{globalThis.__APP_LOGGER__.log("Error adding to cart:",i),g.error("Failed to add event to cart")})},Ve=a=>{if(!c){C(!0);return}P.post(R.EVENT.ADD_REVIEW_TO_EVENT,{user_id:c||"4",rating:F,text:A,course_id:localStorage.getItem("eventId")}).then(i=>{i.data.message?(ee(),g.success(i.data.message,{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0})):g.error("No message received from server",{position:"top-right"})}).catch(i=>{globalThis.__APP_LOGGER__.log("Error submitting review:",i),g.error("Failed to submit review")})},We=(a,i)=>{B(a),ge(i)},He=()=>{_e(a=>!a)},se=globalThis.location.href,Ke=()=>{navigator.clipboard.writeText(se).then(()=>{De.open({message:e.jsxs("span",{children:[e.jsx(nt,{className:"mr-2"}),e.jsx("span",{children:"Link copied to clipboard!"})]}),duration:2,placement:"bottom"})}).catch(a=>{globalThis.__APP_LOGGER__.log("Failed to copy: ",a)})},Je=`https://wa.me/?text=${encodeURIComponent(se)}`,Qe=()=>{window.open(Je,"_blank")};return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"page-content position-relative",children:e.jsx("div",{className:"breadcrumb-row",children:e.jsx("div",{className:"container",children:e.jsxs("ul",{className:"list-inline",children:[e.jsx("li",{children:e.jsx("a",{href:"/",children:"Home"})}),e.jsx("li",{children:"Description"})]})})})}),e.jsx("div",{className:"evenTBookingBG! bg-[#fafafa]!",children:e.jsxs("div",{className:"container",children:[e.jsx("div",{className:"eventDes! mx-auto! 
3w-[1024px]! py-[40px]! px-0! max-lg:w-full! max-lg:py-[20px]! max-lg:px-0!",children:e.jsx("div",{className:"grid! grid-cols-12!",children:e.jsx("div",{className:"col-span-12!",children:ve?e.jsxs("div",{className:"w-full! min-h-[500px]! max-sm:min-h-[350px]! flex! flex-col! items-center! justify-center!",children:[e.jsx("div",{className:"w-12! h-12! rounded-full! border-4! border-[#e0e0e0]! border-t-[#007aff]! animate-spin!"}),e.jsx("p",{className:"mt-4! text-[14px]! text-[#757575]!",children:"Loading..."})]}):e.jsx(pe,{courseData:n,participantCount:p,sanitizedDescription:v,open:ye,onToggleShare:He,onWhatsapp:Qe,onCopyLink:Ke,show:be,onOpenRating:Ae,onCloseRating:ee,message:A,onChangeRating:Me,onChangeMessage:Ie,onSubmitRating:Ve,isFaceToFaceRenew:L,onBuyTicketClick:Le})})})}),e.jsx(me,{show:ue===1,onClose:()=>z(0),modalData:N,activeIndex:E,onPlanClick:We,onProceed:Ge,renewCheckSpin:Re,firstInstallmentId:(ie=(re=n==null?void 0:n.installment)==null?void 0:re[0])==null?void 0:ie.id}),e.jsx(he,{show:Ne,onClose:()=>q(!1),renewStartDate:K,renewEndDate:we,lastExpiryDate:Ee,minAllowedDate:$,showDatePicker:Oe,onDatePickerOpenChange:D,onDateChange:Be,disabledDate:ze,onProceed:()=>{q(!1),U(Te)}}),je&&e.jsx(ot,{targeturl:`/Eventbooking/${Y}`,handlerClose:$e,setIsAuthenticated:t,handleSignInSuccess:qe,setISSignInModalOpen:C})]})})]})};ht.propTypes={setIsAuthenticated:s.func};export{ht 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.