1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/PhonePeV2Wrapper-CVMT6h2f.js","assets/index-DLsZ3GMo.js","assets/posthog-Awc6wRBS.js","assets/antd-DsHVv5LK.js","assets/react-vendor-C-YOEkO4.js","assets/index-kZDhNgOj.css","assets/PayPalWrapper-B1p7ZcKo.js","assets/RazorPayWrapper-B1pLEEU6.js","assets/ExpiringEventsBanner-DVFKgYNQ.js","assets/useDismissibleBanner-C9Age2X-.js","assets/RenewalLinkModal-CcKx0Sbp.js","assets/WalletService-DJvZaFnW.js","assets/PaymentService-CbTLfF1P.js","assets/whatsapp-CPJ4HpFi.js","assets/info-DBAsV6mK.js","assets/copy-BvJ7CQGl.js","assets/chevron-right-CKU6-DVm.js","assets/ExpiringFaceEventsBanner-Cvlf2mkW.js","assets/PackInfoBanner-CSSOSS85.js","assets/ProfileCompletionCard-B3_L8dUI.js","assets/ProfileService-CMlEDQzZ.js","assets/socialPlatforms-V7X-pZ3J.js","assets/sparkles-CUGXkso1.js","assets/trending-up-DfhZSqHk.js","assets/phone-D86h75DB.js","assets/monitor-BOFr3GZO.js","assets/file-text-DUvFtSnF.js","assets/ProductService-BUqQYcca.js","assets/imageUrlBuilder-Cb1WEe4h.js","assets/cn-D-4naEt7.js","assets/clsx-B-dksMZM.js","assets/CountryCodeSelect-B8nSnDVa.js","assets/phoneData-DTm26tUi.js","assets/countryStore-CdGpd_7D.js","assets/search-i_d0cdIK.js","assets/message-circle-CnTTCibv.js","assets/store-DdyCeG49.js","assets/building-2-DqIQZ614.js","assets/calendar-DRHGzfSh.js","assets/UserMetadataService-Br2eqXhx.js","assets/UserService-CksYVYqh.js","assets/SliderComparison-Bhtuh49y.js","assets/wand-sparkles-D7MqNapa.js","assets/inbox-Bb0lObLH.js","assets/OrderService-Bo5fQrwn.js","assets/PurchaseService-DowZUY1U.js","assets/TutorialVideoFooter-4MldR7Kj.js","assets/SubscriptionCard-DC9BJUU3.js","assets/EventsCodeCard-Bep8giIn.js","assets/QRStyleSelector-BlOWViqM.js","assets/buffer-polyfill-B5Mit3fI.js","assets/link-BplKd2Ae.js","assets/BuyProductsComp-C_c0MYur.js","assets/ResponsiveTable-lP83dzeE.js","assets/AddBillingDetails-A86CHulb.js","assets/pincode-B9YnLcIO.js","assets/index-B9Yf3CvV.js","assets/minus-BkW1Guzm.js","assets/plus-C6O1Q6yQ.js"])))=>i.map(i=>d[i]); 2import{c as le,j as e,C as it,a as lt,P as n,G as Kt,A as Ht,b as ct,M as Gt,U as Yt,u as dt,F as Ne,_ as H,L as ut,Z as mt,R as Qt,d as Jt,e as pt,f as Zt,g as Xt,h as es}from"./index-DLsZ3GMo.js";import{i as ts,r as s,F as K,f as ss,B as Oe,s as L,I as Ce,n as Me,k as rs,T as ns}from"./antd-DsHVv5LK.js";import{g as Re,Y as os,P as Ie,p as as}from"./ProductService-BUqQYcca.js";import{P as is,c as ls}from"./cn-D-4naEt7.js";import{C as cs}from"./CountryCodeSelect-B8nSnDVa.js";import{S as Be}from"./sparkles-CUGXkso1.js";import{g as Ye,c as ds}from"./phoneData-DTm26tUi.js";import{u as Ve}from"./countryStore-CdGpd_7D.js";import{S as us}from"./search-i_d0cdIK.js";import{M as ht}from"./message-circle-CnTTCibv.js";import{S as ms}from"./store-DdyCeG49.js";import{B as ps}from"./building-2-DqIQZ614.js";import{C as hs}from"./calendar-DRHGzfSh.js";import Qe,{PAYMENT_PROVIDERS as Je}from"./PaymentService-CbTLfF1P.js";import{I as xs}from"./info-DBAsV6mK.js";import{markAiEnhancementTutorialCompleted as fs,markDesktopAppPromoDismissed as gs,markStudioSitePromoDismissed as bs}from"./UserMetadataService-Br2eqXhx.js";import{S as ys}from"./SliderComparison-Bhtuh49y.js";import{W as ws}from"./wand-sparkles-D7MqNapa.js";import{u as js}from"./react-vendor-C-YOEkO4.js";import{I as vs}from"./inbox-Bb0lObLH.js";import{o as Ze}from"./OrderService-Bo5fQrwn.js";import{p as ks}from"./PurchaseService-DowZUY1U.js";import{w as Xe}from"./WalletService-DJvZaFnW.js";/** 3 * @license lucide-react v0.562.0 - ISC 4 * 5 * This source code is licensed under the ISC license. 6 * See the LICENSE file in the root directory of this source tree. 7 */const Ns=[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Ss=le("circle-play",Ns);/** 8 * @license lucide-react v0.562.0 - ISC 9 * 10 * This source code is licensed under the ISC license. 11 * See the LICENSE file in the root directory of this source tree. 12 */const _s=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],Cs=le("ellipsis",_s);/** 13 * @license lucide-react v0.562.0 - ISC 14 * 15 * This source code is licensed under the ISC license. 16 * See the LICENSE file in the root directory of this source tree. 17 */const Ps=[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]],Rs=le("facebook",Ps);/** 18 * @license lucide-react v0.562.0 - ISC 19 * 20 * This source code is licensed under the ISC license. 21 * See the LICENSE file in the root directory of this source tree. 22 */const Es=[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]],As=le("graduation-cap",Es);/** 23 * @license lucide-react v0.562.0 - ISC 24 * 25 * This source code is licensed under the ISC license. 26 * See the LICENSE file in the root directory of this source tree. 27 */const Fs=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],Ds=le("instagram",Fs);/** 28 * @license lucide-react v0.562.0 - ISC 29 * 30 * This source code is licensed under the ISC license. 31 * See the LICENSE file in the root directory of this source tree. 32 */const Ts=[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]],Us=le("linkedin",Ts);/** 33 * @license lucide-react v0.562.0 - ISC 34 * 35 * This source code is licensed under the ISC license. 36 * See the LICENSE file in the root directory of this source tree. 37 */const Ls=[["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}],["circle",{cx:"18.5",cy:"15.5",r:"2.5",key:"b5zd12"}],["path",{d:"M20.27 17.27 22 19",key:"1l4muz"}]],zs=le("package-search",Ls);/** 38 * @license lucide-react v0.562.0 - ISC 39 * 40 * This source code is licensed under the ISC license. 41 * See the LICENSE file in the root directory of this source tree. 42 */const Os=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}
42]],Ms=le("sun",Os),Is=(t={})=>{const o={};return t.userType&&(o.userType=t.userType),t.country&&(o.country=t.country),t.city&&(o.city=t.city),t.formattedPhone&&(o.phone=t.formattedPhone),t.heardAboutUs&&!t.heardAboutUsSkipped&&(o.heardAboutUs=t.heardAboutUs,t.heardAboutUs==="other"&&t.heardAboutUsDetail&&(o.heardAboutUsDetail=t.heardAboutUsDetail)),o},et=t=>!!t&&Object.keys(t).length>0,Vs=()=>e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"24px",padding:"16px 24px",backgroundColor:"white",borderRadius:"8px",boxShadow:"0 1px 2px 0 rgba(0, 0, 0, 0.03)",border:"1px solid #f0f0f0",margin:"16px 0"},children:[e.jsx(zs,{size:32,color:"#6F4898",strokeWidth:1.5}),e.jsxs("div",{children:[e.jsx("h3",{style:{fontSize:"16px",fontWeight:"600",color:"#27272A",margin:"0 0 4px"},children:"No Event Packs Available"}),e.jsx("p",{style:{fontSize:"14px",color:"#71717A",margin:0,lineHeight:"1.4"},children:"Purchase event pack to create events"})]})]}),xt=({name:t,notableDetail:o,detail1:c,serverId:a})=>{const i=((a==null?void 0:a.currency)||"INR")==="USD",_=(a==null?void 0:a.photos)||0,E=(a==null?void 0:a.unusedQuantity)===9999,k=_-((a==null?void 0:a.unusedQuantity)||0),C=_>0&&!E?Math.min(k/_*100,100):0,b=()=>{if(E)return{fill:"#6F4898",ink:"#6F4898"};const D=(a==null?void 0:a.unusedQuantity)||0;return D===0?{fill:"#ef4444",ink:"#b91c1c"}:D<=_*.2?{fill:"#f59e0b",ink:"#b45309"}:{fill:"#22c55e",ink:"#15803d"}},{fill:j,ink:y}=b();return e.jsxs("div",{className:"group relative bg-white rounded-xl border border-gray-200 hover:border-purple-300 hover:shadow-md transition-all duration-200 mb-3 overflow-hidden",children:[e.jsx("div",{className:"absolute top-3 right-3 z-10",children:e.jsx(ts,{color:i?"#0958d9":"#b45309",style:{margin:0,fontSize:"11px",fontWeight:600,lineHeight:"20px",borderRadius:"6px",border:"none",letterSpacing:"0.5px"},children:i?"$ USD":"â¹ INR"})}),e.jsxs("div",{className:"p-4",children:[e.jsxs("div",{className:"flex items-start gap-3 mb-3 pr-16",children:[e.jsx("div",{className:"flex-shrink-0 w-9 h-9 rounded-lg flex items-center justify-center",style:{backgroundColor:`${j}15`},children:e.jsx(is,{size:18,color:j,strokeWidth:2})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("h3",{className:"text-sm font-semibold text-gray-900 truncate m-0 leading-tight",children:t}),e.jsxs("p",{className:"text-xs text-gray-500 m-0 mt-0.5",children:[_.toLocaleString()," photos pack"]})]})]}),!E&&e.jsx("div",{className:"mb-3",children:e.jsx("div",{className:"w-full h-1.5 bg-gray-100 rounded-full overflow-hidden",children:e.jsx("div",{className:"h-full rounded-full transition-all duration-500",style:{width:`${C}%`,backgroundColor:j}})})}),e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx(it,{size:14,className:"text-gray-400"}),e.jsx("span",{className:"text-xs font-semibold",style:{color:y},children:o})]}),e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx(lt,{size:14,className:"text-gray-400"}),e.jsx("span",{className:"text-xs text-gray-500",children:c})]})]})]})]})};xt.propTypes={name:n.string.isRequired,notableDetail:n.string.isRequired,detail1:n.string.isRequired,serverId:n.object.isRequired,detail2:n.string,detail3:n.string,detail4:n.string,buttonText:n.string,buttonTapped:n.func,buttonClass:n.string};const ft=({value:t={},onChange:o})=>{s.useEffect(()=>{t.countryCode||o==null||o({...t,countryCode:"+91"})},[]);const c=a=>{o==null||o({...t,...a})};return e.jsxs("div",{className:"flex gap-0 rounded-lg border border-[#d9d9d9] hover:border-[#b89dd4] focus-within:border-[#6F4898] focus-within:shadow-[0_0_0_2px_rgba(111,72,152,0.1)] transition-all overflow-hidden",children:[e.jsx(cs,{value:t.countryCode||"+91",onChange:a=>c({countryCode:a}),collapsedLabel:"code",className:" flex-shrink-0 [&_.ant-select-selector]:!border-0 [&_.ant-select-selector]:!shadow-none [&_.ant-select-selector]:!rounded-none [&_.ant-select-selector]:!bg-[#fafafa] [&_.ant-select-selector]:!h-11 [&_.ant-select-selector]:!px-3 [&_.ant-select-selection-item]:!text-[14px] [&_.ant-select-selection-item]:!font-semibold [&_.ant-select-selection-item]:!text-[#333] ",style:{width:90}}),e.jsx("div",{className:"w-px bg-[#e5e7eb] self-stretch my-2"}),e.jsx("input",{type:"tel",inputMode:"numeric",value:t.phoneNumber||"",onChange:a=>c({phoneNumber:a.target.value.replace(/\D/g,"")}),placeholder:"Phone number",maxLength:15,className:"flex-1 h-11 px-3 border-none outline-none text-[15px] bg-white placeholder:text-[#bbb]"})]})},Bs=({visible:t,onSubmit:o})=>{const[c]=K.useForm();s.useEffect(()=>{t&&c.setFieldsValue({phone:{countryCode:"+91"}})},[t,c]);const a=()=>
42{c.validateFields().then(m=>{const{phone:i}=m;i&&i.countryCode&&i.phoneNumber&&i.phoneNumber.length===10?o(`${i.countryCode}${i.phoneNumber}`):L.error("Please enter a valid 10-digit mobile number with country code")}).catch(m=>{})};return e.jsxs(ss,{open:t,title:"Phone Number Update Required",closable:!1,maskClosable:!1,footer:[e.jsx(Oe,{type:"primary",onClick:a,children:"Submit"},"submit")],children:[e.jsx("p",{children:"To better serve you and provide important updates, please enter your phone number:"}),e.jsx(K,{form:c,initialValues:{phone:{countryCode:"+91"}},children:e.jsx(K.Item,{name:"phone",rules:[{validator:(m,i)=>!i||!i.countryCode?Promise.reject("Please select a country code"):!i.phoneNumber||i.phoneNumber.length!==10?Promise.reject("Please enter a valid 10-digit mobile number"):Promise.resolve()}],children:e.jsx(ft,{})})})]})},we=({title:t,className:o})=>e.jsx("div",{className:ls("text-head-line-holder",o),style:{position:"relative",paddingBottom:"8px"},children:e.jsxs("h4",{style:{fontSize:"14px",fontWeight:"600",color:"#18181B",padding:"8px 0",margin:0,letterSpacing:"0.05em",textTransform:"uppercase",position:"relative",display:"inline-block"},children:[t,e.jsx("span",{style:{content:'""',position:"absolute",bottom:0,left:0,width:"100%",height:"2px",background:"linear-gradient(to right, #6F4898 70%, transparent)",borderRadius:"2px"}})]})});we.propTypes={title:n.string.isRequired,className:n.string};const Pe={english:{videoId:"h_ugPRqNw9Q",title:"English Tutorial",description:"Learn how to use Kamero platform in English",time:"4:41 min"},hindi:{videoId:"Liq3tChnK84",title:"हिà¤à¤¦à¥ à¤à¥à¤¯à¥à¤à¥à¤°à¤¿à¤¯à¤²",description:"Kamero पà¥à¤²à¥à¤à¤«à¥à¤°à¥à¤® à¤à¤¾ à¤à¤ªà¤¯à¥à¤ हिà¤à¤¦à¥ मà¥à¤ सà¥à¤à¥à¤",time:"5:21 min"}},$s=(t="english",o=!0)=>{var m;const c=(m=Pe[t])==null?void 0:m.videoId;if(!c)return null;const a=new URLSearchParams({autoplay:o?"1":"0",rel:"0",modestbranding:"1",showinfo:"0"});return`https://www.youtube.com/embed/${c}?${a.toString()}`},tt=(t="english")=>Pe[t]||Pe.english,qs=Object.keys(Pe),gt=({visible:t,onClose:o,onComplete:c})=>{const[a,m]=s.useState("english"),[i,_]=s.useState(!1),E=s.useRef(null),k=s.useRef(null),C=s.useRef(null),b=s.useRef(t),j=P=>{m(P),_(!0)},y=s.useCallback(()=>{E.current&&(E.current.src=""),c(),o()},[c,o]);if(s.useEffect(()=>{var x,p;const P=b.current;b.current=t,t?(C.current=document.activeElement,(x=k.current)==null||x.focus()):P&&((p=C.current)!=null&&p.isConnected&&C.current.focus(),C.current=null)},[t]),s.useEffect(()=>{if(!t)return;const P=x=>{var M;if(x.key==="Escape"){x.preventDefault(),y();return}if(x.key!=="Tab")return;const p=Re(k.current);if(p.length===0){(M=k.current)!=null&&M.contains(document.activeElement)&&x.preventDefault();return}const I=p[0],z=p[p.length-1],O=document.activeElement,$=O===I||O===k.current;x.shiftKey&&$?(x.preventDefault(),z.focus()):!x.shiftKey&&O===z&&(x.preventDefault(),I.focus())};return document.addEventListener("keydown",P),()=>document.removeEventListener("keydown",P)},[t,y]),!t)return null;const D=i?tt(a):null;return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"fixed inset-0 bg-black/60 z-[1000] backdrop-blur-sm"}),e.jsx("div",{className:"fixed inset-0 z-[1001] flex items-center justify-center p-0 md:p-4",children:e.jsxs("div",{ref:k,role:"dialog","aria-modal":"true","aria-labelledby":"tutorial-video-title",tabIndex:-1,className:"bg-white w-full h-full md:h-auto md:max-h-[92vh] md:w-[820px] md:rounded-3xl md:shadow-[0_25px_60px_rgba(0,0,0,0.25)] overflow-hidden flex flex-col",children:[e.jsxs("div",{className:"flex-shrink-0 bg-gradient-to-br from-[#6F4898] via-[#5a3a82] to-[#3d2658] px-6 pt-7 pb-6 md:px-9 md:pt-8 md:pb-7 relative overflow-hidden md:rounded-t-3xl",children:[e.jsx("div",{className:"absolute -top-16 -right-12 w-44 h-44 rounded-full bg-yellow-400/15 blur-3xl pointer-events-none"}),e.jsx("div",{className:"absolute -bottom-20 -left-16 w-52 h-52 rounded-full bg-white/5 blur-3xl pointer-events-none"}),e.jsx("button",{type:"button",onClick:y,"aria-label":"Close",className:"absolute top-3 right-3 md:top-4 md:right-4 w-8 h-8 rounded-full bg-white/15 hover:bg-white/25 flex items-center justify-center border-none cursor-pointer transition-colors z-10",children:e.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none","aria-hidden":"true",children:e.jsx("path",{d:"M1 1l12 12M13 1L1 13",stroke:"white",strokeWidth:"2",strokeLinecap:"round"})})}),e.jsxs("div",{className:"relative z-[1]",children:[e.jsxs("span",{className:"inline-flex items-center gap-1.5 text-[10px] font-bold uppercase tracking-[0.15em] text-yellow-300 bg-yellow-400/10 border border-yellow-300/30 rounded-full px-3 py-1 mb-3",children:[e.jsx(Be,{size:11,className:"fill-yellow-300"})," Quick start"]}),e.jsxs("h2",{id:"tutorial-video-title",className:"m-0 text-white text-[24px] md:text-[30px] font-extrabold leading-[1.15] tracking-tight",children:["Create your first event in ",e.jsx("span",{className:"text-yellow-300",children:"under 5 minutes"})]}),e.jsx("p",{className:"m-0 mt-2 text-white/80 text-[14px] md:text-[15px] leading-relaxed max-w-[560px]",children:"A short walkthrough of the core flow â upload, share, and let guests find themselves with face recognition."})]})]}),e.jsx("div",{className:"flex-1 overflow-y-auto",children:i?e.jsxs("div",{className:"p-4 md:p-6 flex flex-col",children:[e.jsx("div",{className:"relative w-full aspect-video rounded-2xl overflow-hidden shadow-[0_12px_32px_rgba(0,0,0,0.15)] bg-black",children:e.jsx("iframe",{ref:E,src:$s(a,!0),title:"Kamero Tutorial",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,className:"absolute inset-0 w-full h-full"})}),D&&e.jsxs("div",{className:"mt-4 flex items-center justify-between gap-3 px-1",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"m-0 text-[14px] font-semibold text-[#1a1a1a] truncate",children:D.title}),e.jsx("p",{className:"m-0 mt-0.5 text-[12px] text-[#777] truncate",children:D.description})]}),e.jsx("button",{type:"button",onClick:()=>_(!1),className:"flex-shrink-0 text-[12px] font-medium text-[#6F4898] hover:text-[#5c3a80] bg-transparent border-none cursor-pointer underline-offset-2 hover:underline",children:"Switch language"})]})]}):e.jsxs("div",{className:"px-6 py-6 md:px-9 md:py-7",children:[e.jsx("p",{className:"m-0 mb-4 text-[14px] font-semibold text-[#1a1a1a] tracking-tight",children:"Pick your language"}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:qs.map(P=>{const x=tt(P);return e.jsxs("button",{type:"button",className:"text-left cursor-pointer rounded-2xl overflow-hidden border-2 border-[#eee] bg-white hover:border-[#6F4898] hover:shadow-[0_12px_32px_rgba(111,72,152,0.18)] transition-all duration-200 group p-0",onClick:()=>j(P),children:[e.jsxs("div",{className:"relative aspect-video overflow-hidden bg-[#f5f5f5]",children:[e.jsx("img",{src:`https://img.youtube.com/vi/${x.videoId}/maxresdefault.jpg`,alt:x.title,onError:p=>{p.target.src=`https://img.youtube.com/vi/${x.videoId}/hqdefault.jpg`},className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/50 via-trans
42parent to-transparent"}),x.time&&e.jsxs("span",{className:"absolute top-3 right-3 inline-flex items-center gap-1 text-[10px] font-bold text-white bg-black/60 backdrop-blur-sm rounded-full px-2 py-1",children:[e.jsx(lt,{size:10})," ",x.time]}),e.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:e.jsx("div",{className:"w-14 h-14 rounded-full bg-white/95 group-hover:bg-[#6F4898] flex items-center justify-center shadow-lg transition-all duration-200 group-hover:scale-110",children:e.jsx(Ss,{size:28,className:"text-[#6F4898] group-hover:text-white transition-colors"})})})]}),e.jsxs("div",{className:"p-4",children:[e.jsx("p",{className:"m-0 text-[15px] font-bold text-[#1a1a1a] leading-tight",children:x.title}),e.jsx("p",{className:"m-0 mt-1 text-[12px] text-[#777] leading-snug",children:x.description})]})]},P)})}),e.jsx("p",{className:"m-0 mt-5 text-[12px] text-[#999] text-center",children:"You can rewatch this anytime from your dashboard."})]})})]})})]})};gt.propTypes={visible:n.bool.isRequired,onClose:n.func.isRequired,onComplete:n.func.isRequired};const Ue=new Map,bt=async(t,o)=>{const c=`${Kt}${t}?${o.toString()}`,a=await fetch(c,{credentials:"omit"});if(!a.ok)throw new Error(`GeoNames proxy error: ${a.status}`);const m=await a.json();return Array.isArray(m==null?void 0:m.cities)?m.cities:[]},Ws=async t=>{if(!t||t==="OTHER")return[];if(Ue.has(t))return Ue.get(t);try{const o=await bt("/cities/top",new URLSearchParams({country:t}));return Ue.set(t,o),o}catch{return[]}},Ks=async(t,o)=>{if(!t||t==="OTHER"||!o||o.length<2)return[];try{return await bt("/cities/search",new URLSearchParams({country:t,q:o}))}catch{return[]}},Hs=ds.map(t=>({code:t.code,name:t.label})).sort((t,o)=>t.name.localeCompare(o.name)).concat([{code:"OTHER",name:"Other (not listed)"}]),{Option:st}=Me,Gs=[{id:"photographer",label:"Photographer",icon:it,description:"Professional or hobby photographer"},{id:"corporate",label:"Corporate",icon:ps,description:"Business or enterprise user"},{id:"event-planner",label:"Event Planner",icon:hs,description:"Event planning professional"},{id:"school-university",label:"School/University",icon:As,description:"Educational institution"},{id:"other",label:"Other",icon:ht,description:"Other type of user"}],Ys=[{id:"google",label:"Google",icon:us},{id:"instagram",label:"Instagram",icon:Ds},{id:"facebook",label:"Facebook",icon:Rs},{id:"youtube",label:"YouTube",icon:os},{id:"linkedin",label:"LinkedIn",icon:Us},{id:"whatsapp",label:"WhatsApp",icon:ht},{id:"email",label:"Email",icon:Gt},{id:"friend_or_colleague",label:"Someone told me",icon:Yt},{id:"event_or_tradeshow",label:"Event / Expo",icon:ms},{id:"other",label:"Other",icon:Cs}],rt={userType:{title:"What best describes you?",subtitle:"This helps us customize your experience"},location:{title:"Where are you based?",subtitle:"Help us provide location-specific features"},phone:{title:"How can we reach you?",subtitle:"We'll only use this for important updates"},heardAboutUs:{title:"How did you hear about us?",subtitle:"Last one â it helps us reach more people like you"}},yt=({visible:t,onComplete:o,missingFields:c={},userInfo:a={}})=>{var f;const[m]=K.useForm(),[i,_]=s.useState(0),[E,k]=s.useState(!1),[C,b]=s.useState([]),[j,y]=s.useState([]),[D,P]=s.useState(!1),[x,p]=s.useState(null),[I,z]=s.useState({}),[O,$]=s.useState(null),[M,G]=s.useState(null),[Y,h]=s.useState(!1),[T,A]=s.useState(!1),[B,N]=s.useState(!1),[re,X]=s.useState(!1),V=s.useRef(null),S=s.useRef(null),q=s.useRef(null),ce=s.useRef(t);s.useEffect(()=>()=>{V.current&&clearTimeout(V.current)},[]),s.useEffect(()=>{var r,v;const l=ce.current;ce.current=t,t?(q.current=document.activeElement,(r=S.current)==null||r.focus()):l&&((v=q.current)!=null&&v.isConnected&&q.current.focus(),q.current=null)},[t]),s.useEffect(()=>{if(!t)return;const l=r=>{var xe;if(r.key!=="Tab")return;const v=Re(S.current);if(v.length===0){(xe=S.current)!=null&&xe.contains(document.activeElement)&&r.preventDefault();return}const R=v[0],d=v[v.length-1],te=document.activeElement,ie=te===R||te===S.current;r.shiftKey&&ie?(r.preventDefault(),d.focus()):!r.shiftKey&&te===d&&(r.preventDefault(),R.focus())};return document.addEventListener("keydown",l),()=>document.removeEventListener("keydown",l)},[t]);const F=[];c.userType&&F.push({key:"userType",title:"User Type",description:"Tell us who you are"}),(c.country||c.city)&&F.push({key:"location",title:"Location",description:"Your location details"}),c.phone&&F.push({key:"phone",title:"Phone",description:"Contact information"}),c.heardAboutUs&&F.push({key:"heardAboutUs",title:"Discovery",description:"How you found us"}),s.useEffect(()=>{t&&fe()},[t,c,a]);const fe=async()=>{var l,r,v,R;try{await Q();let d=a.country;if(c.country&&!a.country)try{const ge=await Ve.getState().fetchUserCountry();p(ge),d=ge}catch{p("IN"),d="IN"}d&&await J(d);const te=d?Ye(d):"+91",ie={country:d,city:a.city,userType:a.userType,phone:a.phone?{countryCode:((r=a.phone)==null?void 0:r.slice(0,(l=a.phone)==null?void 0:l.indexOf(" ")))||te,phoneNumber:((R=a.phone)==null?void 0:R.slice(((v=a.phone)==null?void 0:v.indexOf(" "))+1))||""}:{countryCode:te}};m.setFieldsValue(ie);const xe=Object.fromEntries(Object.entries(ie).filter(([,ge])=>ge!=null));setTimeout(()=>m.setFieldsValue(xe),100)}catch{}},Q=async()=>{try{const l=localStorage.getItem("kamero_countries_cache");if(l){const d=JSON.parse(l);d.length>0&&b(d)}const r=await fetch("https://restcountries.com/v3.1/all?fields=name,cca2");
42if(!r.ok)throw new Error(`HTTP ${r.status}`);const R=(await r.json()).map(d=>({code:d.cca2,name:d.name.common})).sort((d,te)=>d.name.localeCompare(te.name));R.push({code:"OTHER",name:"Other (not listed)"}),b(R),localStorage.setItem("kamero_countries_cache",JSON.stringify(R))}catch{b(Hs)}},J=async l=>{if(!(!l||l==="OTHER")){P(!0),N(!1);try{const r=await Ws(l);y(r),r.length===0&&N(!0)}catch{N(!0)}finally{P(!1)}}},de=s.useCallback(l=>{V.current&&clearTimeout(V.current);const r=m.getFieldValue("country");!l||l.length<2||!r||r==="OTHER"||(V.current=setTimeout(async()=>{P(!0);const v=await Ks(r,l);X(!0),y(v),P(!1)},300))},[m]),ee=async l=>{if(m.setFieldsValue({city:void 0,customCountry:void 0,customCity:void 0}),y([]),X(!1),l==="OTHER")A(!0),N(!0);else{A(!1),N(!1);const r=m.getFieldValue("phone")||{};m.setFieldsValue({phone:{...r,countryCode:Ye(l)}}),await J(l)}},ue=async()=>{try{const l=F[i].key,r=se(l),v=await m.validateFields(r);z(R=>({...R,...v})),i<F.length-1?_(i+1):await me()}catch{}},je=()=>_(i-1),se=l=>{switch(l){case"userType":return["userType"];case"location":if(T)return["country","customCountry","customCity"];const r=[];return c.country&&r.push("country"),c.city&&r.push(B?"customCity":"city"),r;case"phone":return["phone"];case"heardAboutUs":return M==="other"?["heardAboutUs","heardAboutUsDetail"]:["heardAboutUs"];default:return[]}},ne=async()=>{h(!0),G(null),m.setFieldsValue({heardAboutUs:void 0,heardAboutUsDetail:void 0}),z(l=>{const r={...l};return delete r.heardAboutUs,delete r.heardAboutUsDetail,r}),i<F.length-1?_(i+1):await me({skipDiscovery:!0})},me=async({skipDiscovery:l=!1}={})=>{var r,v;try{k(!0);const R=await m.validateFields(),d={...I,...R};d.heardAboutUsSkipped=l||Y,d.heardAboutUsSkipped&&(delete d.heardAboutUs,delete d.heardAboutUsDetail),d.country==="OTHER"?(d.country=(d.customCountry||"").trim(),c.city&&(d.city=(d.customCity||"").trim())):d.customCity&&(d.city=d.customCity.trim()),delete d.customCountry,delete d.customCity,d.heardAboutUs!=="other"&&delete d.heardAboutUsDetail,(r=d.phone)!=null&&r.countryCode&&((v=d.phone)!=null&&v.phoneNumber)&&(d.formattedPhone=`${d.phone.countryCode}${d.phone.phoneNumber}`),await o(d)}catch{L.error("Failed to update profile. Please try again.")}finally{k(!1)}},oe=()=>{const l=r=>{$(r),m.setFieldsValue({userType:r})};return e.jsx(K.Item,{name:"userType",rules:[{required:!0,message:"Please select your user type"}],className:"!mb-0",children:e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:Gs.map(r=>{const v=r.icon,R=O===r.id;return e.jsxs("div",{role:"button",tabIndex:0,"aria-pressed":R,"aria-label":`${r.label}: ${r.description}`,className:` 43 relative flex items-center gap-3 p-4 rounded-xl cursor-pointer 44 transition-all duration-200 ease-out select-none 45 ${R?"border-2 border-[#6F4898] bg-[#f8f4fc] shadow-[0_2px_12px_rgba(111,72,152,0.15)]":"border-2 border-[#eee] bg-white hover:border-[#d4c0e8] hover:bg-[#fdfbff] active:scale-[0.98]"} 46 `,onClick:()=>l(r.id),onKeyDown:d=>{(d.key==="Enter"||d.key===" ")&&(d.preventDefault(),l(r.id))},children:[e.jsx("div",{className:` 47 flex-shrink-0 w-11 h-11 rounded-xl flex items-center justify-center 48 transition-colors duration-200 49 ${R?"bg-[#6F4898] text-white":"bg-[#f3edf9] text-[#6F4898]"} 50 `,children:e.jsx(v,{size:20})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("h4",{className:`m-0 text-[14px] font-semibold leading-tight ${R?"text-[#6F4898]":"text-[#1a1a2e]"}`,children:r.label}),e.jsx("p",{className:"m-0 mt-0.5 text-[12px] text-[#888] leading-snug",children:r.description})]}),R&&e.jsx("div",{className:"flex-shrink-0 w-5 h-5 rounded-full bg-[#6F4898] flex items-center justify-center",children:e.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:e.jsx("path",{d:"M2.5 6L5 8.5L9.5 3.5",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]},r.id)})})})},ve=()=>{var l;return e.jsxs("div",{className:"space-y-4",children:[x&&c.country&&e.jsxs("div",{className:"px-3 py-2 rounded-lg bg-[#f3edf9] text-[#6F4898] text-[13px] flex items-center gap-2",children:[e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:e.jsx("path",{d:"M8 1a7 7 0 100 14A7 7 0 008 1zm-.75 10.25V10h1.5v1.25h-1.5zm0-8.5h1.5v6h-1.5v-6z",fill:"#6F4898"})}),"Auto-detected: ",e.jsx("span",{className:"font-semibold",children:((l=C.find(r=>r.code===x))==null?void 0:l.name)||x})]}),c.country&&e.jsx(K.Item,{name:"country",label:e.jsxs("span",{className:"text-[13px] font-medium text-[#333]",children:["Country ",e.jsx("span",{className:"text-red-400",children:"*"})]}),rules:[{required:!0,message:"Please select your country"}],className:"!mb-0",children:e.jsx(Me,{showSearch:!0,placeholder:"Search or select your country",optionFilterProp:"children",onChange:ee,size:"large",filterOption:(r,v)=>v.children.toLowerCase().indexOf(r.toLowerCase())>=0,children:C.map(r=>e.jsx(st,{value:r.code,children:r.name},r.code))})}),T&&e.jsx(K.Item,{name:"customCountry",label:e.jsxs("span",{className:"text-[13px] font-medium text-[#333]",children:["Country Name ",e.jsx("span",{className:"text-red-400",children:"*"})]}),rules:[{required:!0,min:2,message:"Please enter your country name (min 2 characters)"}],className:"!mb-0",children:e.jsx(Ce,{placeholder:"e.g. Hong Kong SAR",size:"large"})}),c.city&&!T&&!B&&e.jsxs("div",{children:[e.jsx(K.Item,{name:"city",label:e.jsxs("span",{className:"text-[13px] font-medium text-[#333]",children:["City ",e.jsx("span",{className:"text-red-400",children:"*"})]}),rules:[{required:!0,message:"Please select or type your city"}],className:"!mb-1",children:e.jsx(Me,{showSearch:!0,placeholder:"Search your city",loading:D,onSearch:de,filterOption:!1,size:"large",notFoundContent:D?"Searching...":re?"No cities found":"Type at least 2 characters to search",children:j.map(r=>e.jsx(st,{value:r.name,children:r.name},r.id))})}),e.jsx("button",{type:"button",className:"text-[#6F4898] text-[12px] underline cursor-pointer bg-transparent border-none p-0 hover:text-[#5c3a80]",onClick:()=>{N(!0),m.setFieldsValue({city:void 0})},children:"Can't find your city? Enter manually"})]}),c.city&&(T||B)&&e.jsxs("div",{children:[e.jsx(K.Item,{name:"customCity",label:e.jsxs("span",{className:"text-[13px] font-medium text-[#333]",children:["City ",e.jsx("span",{className:"text-red-400",children:"*"})]}),rules:[{required:!0,min:2,message:"Please enter your city name (min 2 characters)"}],className:"!mb-1",children:e.jsx(Ce,{placeholder:"Type your city",size:"large"})}),B&&!T&&j.length>0&&e.jsx("button",{type:"button",className:"text-[#6F4898] text-[12px] underline cursor-pointer bg-transparent border-none p-0 hover:text-[#5c3a80]",onClick:()=>{N(!1),m.setFieldsValue({customCity:void 0})},children:"Back to city list"})]})]})},ke=()=>e.jsx(K.Item,{name:"phone",label:e.jsxs("span",{className:"text-[13px] font-medium text-[#333]",children:["Phone Number ",e.jsx("span",{className:"text-red-400",children:"*"})]}),rules:[{validator:(l,r)=>!r||!r.countryCode?Promise.reject("Please select a country code"):!r.phoneNumber||r.ph
50oneNumber.trim()===""?Promise.reject("Please enter a valid phone number"):Promise.resolve()}],children:e.jsx(ft,{})}),Z=()=>{const l=r=>{G(r),m.setFieldsValue({heardAboutUs:r}),r!=="other"&&m.setFieldsValue({heardAboutUsDetail:void 0})};return e.jsxs("div",{className:"space-y-4",children:[e.jsx(K.Item,{name:"heardAboutUs",rules:Y?[]:[{required:!0,message:"Please pick one option"}],className:"!mb-0",children:e.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-2.5",children:Ys.map(r=>{const v=r.icon,R=M===r.id;return e.jsxs("div",{role:"button",tabIndex:0,"aria-pressed":R,"aria-label":r.label,className:` 51 flex flex-col items-center justify-center gap-2 px-2 py-3.5 rounded-xl 52 cursor-pointer transition-all duration-200 ease-out select-none text-center 53 ${R?"border-2 border-[#6F4898] bg-[#f8f4fc] shadow-[0_2px_12px_rgba(111,72,152,0.15)]":"border-2 border-[#eee] bg-white hover:border-[#d4c0e8] hover:bg-[#fdfbff] active:scale-[0.98]"} 54 `,onClick:()=>l(r.id),onKeyDown:d=>{(d.key==="Enter"||d.key===" ")&&(d.preventDefault(),l(r.id))},children:[e.jsx("div",{className:` 55 flex-shrink-0 w-10 h-10 rounded-xl flex items-center justify-center 56 transition-colors duration-200 57 ${R?"bg-[#6F4898] text-white":"bg-[#f3edf9] text-[#6F4898]"} 58 `,children:e.jsx(v,{size:18})}),e.jsx("span",{className:`text-[12.5px] font-semibold leading-tight ${R?"text-[#6F4898]":"text-[#1a1a2e]"}`,children:r.label})]},r.id)})})}),M==="other"&&e.jsx(K.Item,{name:"heardAboutUsDetail",label:e.jsxs("span",{className:"text-[13px] font-medium text-[#333]",children:["Where did you hear about us? ",e.jsx("span",{className:"text-red-400",children:"*"})]}),rules:Y?[]:[{required:!0,min:2,max:200,message:"Please tell us in a few words (2-200 characters)"}],className:"!mb-0",children:e.jsx(Ce,{placeholder:"e.g. A photographer friend at a wedding",size:"large",maxLength:200})})]})},ae=()=>{if(F.length===0)return null;switch(F[i].key){case"userType":return oe();case"location":return ve();case"phone":return ke();case"heardAboutUs":return Z();default:return null}};if(F.length===0)return null;const pe=Math.round((i+1)/F.length*100),he=F.length-i-1,w=F[i]?rt[F[i].key]:rt.userType;return e.jsxs(e.Fragment,{children:[t&&e.jsx("div",{className:"fixed inset-0 bg-black/50 z-[1000] backdrop-blur-sm"}),t&&e.jsx("div",{className:"fixed inset-0 z-[1001] flex items-center justify-center p-0 md:p-6",children:e.jsxs("div",{ref:S,role:"dialog","aria-modal":"true","aria-labelledby":"user-onboarding-title",tabIndex:-1,className:" bg-white w-full h-full md:h-auto md:max-h-[90vh] md:w-[580px] md:rounded-2xl md:shadow-[0_25px_60px_rgba(0,0,0,0.2)] overflow-hidden flex flex-col ",children:[e.jsx("div",{className:"h-1 bg-[#f0eaf5] flex-shrink-0",children:e.jsx("div",{className:"h-full bg-[#6F4898] transition-all duration-500 ease-out",style:{width:`${pe}%`}})}),e.jsxs("div",{className:"flex-1 overflow-y-auto px-5 pt-6 pb-4 md:px-10 md:pt-8 md:pb-6",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsxs("p",{className:"m-0 text-[12px] font-semibold tracking-wide text-[#999] uppercase",children:["Step ",e.jsx("span",{className:"text-[#6F4898]",children:String(i+1).padStart(2,"0")})," of ",String(F.length).padStart(2,"0")]}),F.length>1&&e.jsx("div",{className:"flex gap-1.5",children:F.map((l,r)=>e.jsx("div",{className:`h-1.5 rounded-full transition-all duration-300 ${r<=i?"w-6 bg-[#6F4898]":"w-1.5 bg-[#e0d6ec]"}`},r))})]}),e.jsx("h2",{id:"user-onboarding-title",className:"m-0 text-[22px] md:text-[28px] font-bold text-[#1a1a2e] leading-tight",children:w.title}),e.jsx("p",{className:"m-0 mt-1 mb-6 md:mb-8 text-[14px] text-[#777]",children:w.subtitle}),e.jsx(K,{form:m,layout:"vertical",className:"[&_.ant-form-item-explain-error]:text-xs [&_.ant-form-item-explain-error]:mt-1",children:ae()})]}),e.jsx("div",{className:"flex-shrink-0 border-t border-[#f0f0f0] px-5 py-4 md:px-10 md:py-5 bg-white",children:e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsxs("p",{className:"m-0 text-[12px] text-[#999] hidden sm:block",children:[pe,"% complete",he>0&&e.jsxs(e.Fragment,{children:[" · ",he," step",he>1?"s":""," left"]})]}),i===0&&e.jsx("div",{className:"sm:hidden"}),e.jsxs("div",{className:"flex gap-3 flex-1 sm:flex-none items-center",children:[((f=F[i])==null?void 0:f.key)==="heardAboutUs"&&e.jsx("button",{type:"button",onClick:ne,disabled:E,className:"h-12 px-2 bg-transparent border-none text-[13px] text-[#888] underline cursor-pointer hover:text-[#6F4898] transition-colors disabled:opacity-60 disabled:cursor-not-allowed",children:"Skip"}),i>0&&e.jsxs("button",{type:"button",onClick:je,className:"h-12 px-5 rounded-xl border-2 border-[#e5e7eb] bg-white text-[#555] font-medium text-[14px] curs
58or-pointer flex items-center gap-1.5 hover:border-[#b89dd4] hover:text-[#6F4898] transition-colors active:scale-[0.97]",children:[e.jsx(Ht,{size:16})," Back"]}),e.jsx("button",{type:"button",onClick:ue,disabled:E,className:` 59 h-12 rounded-xl font-semibold text-[15px] text-white cursor-pointer 60 flex items-center justify-center gap-2 61 bg-[#6F4898] hover:bg-[#5c3a80] active:scale-[0.97] 62 shadow-[0_4px_14px_rgba(111,72,152,0.3)] hover:shadow-[0_6px_20px_rgba(111,72,152,0.4)] 63 transition-all duration-200 border-none 64 disabled:opacity-60 disabled:cursor-not-allowed 65 ${i>0?"flex-1 sm:flex-none sm:px-8":"w-full sm:w-auto sm:px-8"} 66 `,children:E?e.jsx("span",{className:"inline-block w-5 h-5 border-2 border-white/30 border-t-white rounded-full animate-spin"}):e.jsxs(e.Fragment,{children:[i===F.length-1?"Complete Profile":"Continue"," ",e.jsx(ct,{size:16})]})})]})]})})]})})]})};yt.propTypes={visible:n.bool.isRequired,onComplete:n.func.isRequired,missingFields:n.object,userInfo:n.object};const Qs=s.lazy(()=>H(()=>import("./PhonePeV2Wrapper-CVMT6h2f.js"),__vite__mapDeps([0,1,2,3,4,5]))),Js=s.lazy(()=>H(()=>import("./PayPalWrapper-B1p7ZcKo.js"),__vite__mapDeps([6,1,2,3,4,5]))),{Search:nt}=Ce,Le=10,ze=100,wt=s.forwardRef(({balance:t,balanceUSD:o,recharge:c,redeem:a,userId:m,email:i,mobile:_,refreshBalance:E,onWalletUpdate:k},C)=>{const[b,j]=s.useState(!1),[y,D]=s.useState(void 0),[P,x]=s.useState(!0),[p,I]=s.useState(!1),[z,O]=s.useState(void 0),[$,M]=s.useState(!0),[G,Y]=s.useState(!1),[h,T]=s.useState(void 0),[A,B]=s.useState(!1),[N,re]=s.useState("INR"),[X,V]=s.useState(null),[S,q]=s.useState(!1);dt(576);const ce=s.useRef(N);ce.current=N,s.useImperativeHandle(C,()=>({resetProcessing:()=>q(!1),setState:w=>{w.isProcessing!==void 0&&q(w.isProcessing)}}),[]),s.useEffect(()=>{(async()=>{try{const w=await Ve.getState().fetchUserCountry(),f=Ve.getState().getCurrency();re(f)}catch{re("INR")}})()},[]);const F=s.useCallback(w=>{const f=typeof w=="number"?w:parseFloat(w);if(isNaN(f)||f<=0)return{amount:0,gst:0,total:0};const l=parseFloat(f.toFixed(2));if(N==="INR"){const r=(l*.18).toFixed(2),v=(parseFloat(l)+parseFloat(r)).toFixed(2);return{amount:l,gst:parseFloat(r),total:parseFloat(v)}}else return{amount:l,gst:0,total:l}},[N]),fe=s.useCallback(w=>{const f=typeof w=="number"?w:parseFloat(w);return isNaN(f)||f<=0?0:f},[]),Q=s.useCallback(w=>{const f=parseFloat(w);if(isNaN(f)||f<=0)return"Please enter a valid amount";if(N==="USD"){if(f<Le)return`Minimum amount is $${Le}`}else if(f<ze)return`Minimum amount is â¹${ze}`;return null},[N]),J=s.useCallback((w="",f="info")=>{w&&(f==="error"?L.error(w):f==="success"?L.success(w):L.info(w)),Y(!1),T(void 0),B(!1),D(void 0),x(!0),q(!1),V(null)},[]),de=s.useCallback(async w=>{if(b||A||S)return;const f=Q(w);if(f){V(f);return}try{B(!0),q(!0),V(null);const l=window.location.origin+"/payment/callback",r=ce.current;Qe.setProvider(r==="USD"?Je.PAYPAL:Je.PHONEPE);const v=await Qe.placeOrder({userId:m,orderItems:[{productId:"product-wallet-recharge",quantity:1}],useWallet:!1,redirectUrl:l,rechargeAmount:parseFloat(w),email:i,mobile:_,currency:r});if(r==="USD"&&v.paypalRedirectUrl||r==="INR"&&(v.phonePeV2IframeUrl||v.phonePeRedirectUrl))Y(!0),T(v);else throw new Error(`Order placed, but no valid redirect URL received for ${r} payment.`)}catch(l){L.error(l.message||"Failed to process payment. Please try again."),D(void 0),x(!0),B(!1),q(!1),Y(!1),T(void 0)}},[b,A,S,Q,m,i,_]),ee=s.useCallback(async w=>{if(p||A)return;const f=w?w.trim():"";if(f.length>0)try{I(!0),await a(f)}catch{}finally{O(void 0),I(!1),M(!0)}},[p,A,a]),ue=s.useCallback(w=>{const f=w.target.value;if(f===""){D(void 0),x(!0),V(null);return}if(!/^\d*\.?\d*$/.test(f))return;const l=Q(f);D(f),x(!f||parseFloat(f)<=0||!!l),V(l)},[Q]),je=()=>h?N==="USD"&&h.paypalRedirectUrl?e.jsx(s.Suspense,{fallback:e.jsx(Ne,{}),children:e.jsx(Js,{order:h,onCancel:()=>J("Payment process was cancelled","error"),onSuccess:()=>{J("Payment successful! Credits should reflect shortly.","success"),setTimeout(()=>{window.location.reload()},1e3)},onError:w=>{J("Payment failed via PayPal.","error")}})}):N==="INR"&&(h.phonePeV2IframeUrl||h.phonePeRedirectUrl)?e.jsx(s.Suspense,{fallback:e.jsx(Ne,{}),children:e.jsx(Qs,{order:h,onSuccess:()=>
66{J("Payment completed successfully!","success"),k&&k(),setTimeout(()=>{window.location.reload()},1e3)},onCancel:()=>J("Payment process was cancelled","error")})}):(J("Internal error: Could not initiate payment UI.","error"),null):null,se=N==="USD"?o:t,{gst:ne,total:me}=y?F(y):{gst:0,total:0},oe=y?fe(y):0,ve=P||A||S,ke=se!=null?(se/100).toLocaleString(N==="USD"?"en-US":"en-IN",{minimumFractionDigits:0,maximumFractionDigits:0}):"--",Z=N==="USD"?"$":"â¹",ae=N==="USD"?Le:ze,pe=`Amount in ${N}`,he=N==="USD"?`1 USD = 1 Credit. GST is not applicable. Minimum purchase: ${Z}${ae}.`:`1 Credit = 1 INR. GST (18%) is charged upon purchase and will not be applied when using credits later. Minimum purchase: ${Z}${ae}.`;return e.jsxs(rs,{className:"card-common",styles:{body:{padding:"16px",height:"100%",flex:"1 1 auto",display:"flex",flexDirection:"column"}},children:[e.jsxs("div",{className:"flex-1 flex flex-col gap-1.5",children:[e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsx("h3",{className:"card-header-common m-0",children:"Available Credits"}),e.jsx(ns,{title:he,children:e.jsx(xs,{size:"1em",style:{color:"#6F4898",fontSize:"16px"}})})]}),e.jsxs("div",{style:{backgroundColor:"#F9F5FF",padding:"8px",borderRadius:"12px",marginBottom:"8px",textAlign:"center"},children:[e.jsxs("h2",{style:{fontSize:"28px",margin:"0",color:"#6F4898",fontWeight:"700"},children:[ke," Credits"]}),e.jsxs("span",{style:{fontSize:"12px",color:"#52525b"},children:["(",N==="USD"?"1 USD = 1 Credit":"1 Credit = 1 INR",")"]})]}),e.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:"6px"},children:[e.jsx("div",{style:{display:"flex",justifyContent:"center"},children:e.jsx(nt,{type:"number",min:ae.toString(),"aria-label":`Top-up amount in ${N}`,placeholder:pe,enterButton:e.jsx(Oe,{type:"primary",disabled:ve,loading:S,style:{paddingLeft:"16px",paddingRight:"16px"},children:S?"Processing...":"Buy Credits"}),value:y===void 0?"":y,onChange:ue,onSearch:de,style:{width:"250px",marginBottom:"8px"},disabled:A})}),X&&e.jsx("div",{style:{color:"#ff4d4f",fontSize:"14px",textAlign:"center",marginBottom:"8px"},children:X}),y&&!X&&e.jsxs("div",{style:{fontSize:"14px",color:"#52525b",backgroundColor:"#F4F4F5",padding:"8px 12px",borderRadius:"8px",textAlign:"center"},children:[N==="INR"&&e.jsxs("p",{style:{margin:"0 0 2px"},children:["GST (18%): ",Z,ne.toLocaleString("en-IN",{minimumFractionDigits:2,maximumFractionDigits:2})]}),e.jsxs("p",{style:{margin:"0 0 2px",fontWeight:"500",color:"#27272A"},children:["Total Payable: ",Z,me.toLocaleString(N==="USD"?"en-US":"en-IN",{minimumFractionDigits:2,maximumFractionDigits:2})]}),e.jsxs("p",{style:{margin:"0",fontWeight:"500",color:"#6F4898"},children:["Credits you'll receive: ",oe.toLocaleString()]})]})]})]}),e.jsxs("div",{className:"card-footer-section",children:[e.jsx("p",{style:{margin:"0 0 8px",color:"#71717A",fontSize:"14px",textAlign:"center"},children:"Got coupon code? Redeem below"}),e.jsx("div",{style:{display:"flex",justifyContent:"center"},children:e.jsx(nt,{type:"string","aria-label":"Coupon code",placeholder:"Coupon Code",enterButton:e.jsx(Oe,{type:"primary",disabled:$||A,style:{paddingLeft:"16px",paddingRight:"16px"},children:"Redeem"}),loading:p,value:z===void 0?"":z,onChange:w=>{const f=w.target.value;O(f),M(!f||f.trim().length===0)},onSearch:ee,style:{width:"250px",marginBottom:"10px"},disabled:A})})]}),(A||G)&&e.jsx(Ne,{}),G&&h&&je()]})});wt.propTypes={balance:n.number,balanceUSD:n.number,recharge:n.func.isRequired,redeem:n.func.isRequired,userId:n.string.isRequired,email:n.string.isRequired,mobile:n.string,refreshBalance:n.func,onWalletUpdate:n.func};const Zs=[{icon:Ms,title:"Fix bad lighting",text:"Recover blown-out skies and shadowy faces in seconds."},{icon:ut,title:"Replace dull backgrounds",text:"Swap distractions for clean, hero-grade scenes."},{icon:ws,title:"Custom AI prompts",text:"Tell it what you want â it does the retouch."}],jt=({visible:t,userId:o,onClose:c,onComplete:a,onShowTutorial:m})=>{const i=s.useRef(null),_=s.useRef(null),E=s.useRef(t),k=s.useCallback(async()=>
66{if(!o){a(),c();return}localStorage.setItem(`ai_enhancement_tutorial_completed_${o}`,"true");try{await fs(o)}catch{}a(),c()},[o,a,c]);return s.useEffect(()=>{var b,j;const C=E.current;E.current=t,t?(_.current=document.activeElement,(b=i.current)==null||b.focus()):C&&((j=_.current)!=null&&j.isConnected&&_.current.focus(),_.current=null)},[t]),s.useEffect(()=>{if(!t)return;const C=b=>{var p;if(b.key==="Escape"){b.preventDefault(),k();return}if(b.key!=="Tab")return;const j=Re(i.current);if(j.length===0){(p=i.current)!=null&&p.contains(document.activeElement)&&b.preventDefault();return}const y=j[0],D=j[j.length-1],P=document.activeElement,x=P===y||P===i.current;b.shiftKey&&x?(b.preventDefault(),D.focus()):!b.shiftKey&&P===D&&(b.preventDefault(),y.focus())};return document.addEventListener("keydown",C),()=>document.removeEventListener("keydown",C)},[t,k]),t?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"fixed inset-0 bg-black/60 z-[1000] backdrop-blur-sm"}),e.jsx("div",{className:"fixed inset-0 z-[1001] flex items-center justify-center p-0 md:p-4",children:e.jsxs("div",{ref:i,role:"dialog","aria-modal":"true","aria-labelledby":"ai-enhancement-promo-title",tabIndex:-1,className:"bg-white w-full h-full md:h-auto md:max-h-[92vh] md:w-[760px] md:rounded-3xl md:shadow-[0_25px_60px_rgba(0,0,0,0.25)] overflow-hidden flex flex-col",children:[e.jsxs("div",{className:"flex-shrink-0 bg-gradient-to-br from-[#6F4898] via-[#5a3a82] to-[#3d2658] px-6 pt-7 pb-6 md:px-9 md:pt-8 md:pb-7 relative overflow-hidden md:rounded-t-3xl",children:[e.jsx("div",{className:"absolute -top-16 -right-12 w-44 h-44 rounded-full bg-yellow-400/15 blur-3xl pointer-events-none"}),e.jsx("div",{className:"absolute -bottom-20 -left-16 w-52 h-52 rounded-full bg-white/5 blur-3xl pointer-events-none"}),e.jsx("button",{type:"button",onClick:k,"aria-label":"Close",className:"absolute top-3 right-3 md:top-4 md:right-4 w-8 h-8 rounded-full bg-white/15 hover:bg-white/25 flex items-center justify-center border-none cursor-pointer transition-colors z-10",children:e.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none","aria-hidden":"true",children:e.jsx("path",{d:"M1 1l12 12M13 1L1 13",stroke:"white",strokeWidth:"2",strokeLinecap:"round"})})}),e.jsxs("div",{className:"relative z-[1]",children:[e.jsxs("span",{className:"inline-flex items-center gap-1.5 text-[10px] font-bold uppercase tracking-[0.15em] text-yellow-300 bg-yellow-400/10 border border-yellow-300/30 rounded-full px-3 py-1 mb-3",children:[e.jsx(Be,{size:11,className:"fill-yellow-300"})," New · Beta"]}),e.jsxs("h2",{id:"ai-enhancement-promo-title",className:"m-0 text-white text-[24px] md:text-[30px] font-extrabold leading-[1.15] tracking-tight",children:["Turn rough shots into ",e.jsx("span",{className:"text-yellow-300",children:"hero-grade photos"})]}),e.jsx("p",{className:"m-0 mt-2 text-white/80 text-[14px] md:text-[15px] leading-relaxed max-w-[560px]",children:"Fix lighting, swap backgrounds and retouch with a single prompt. No Photoshop, no waiting."})]})]}),e.jsxs("div",{className:"flex-1 overflow-y-auto",children:[e.jsxs("div",{className:"px-4 pt-4 md:px-6 md:pt-6",children:[e.jsx("div",{className:"rounded-2xl overflow-hidden border border-[#eee] shadow-[0_8px_24px_rgba(0,0,0,0.08)]",children:e.jsx("div",{className:"w-full h-[260px] md:h-[340px] bg-[#f5f5f5]",children:e.jsx(ys,{originalImageUrl:"https://public-assets.kamero.ai/ai_enhance/modal_before.jpeg",enhancedImageUrl:"https://public-assets.kamero.ai/ai_enhance/modal_after.jpg",sliderPosition:.5,handleSize:32,showLabels:!0,style:{width:"100%",height:"100%"}})})}),e.jsx("p",{className:"m-0 mt-2.5 text-[11px] text-[#999] text-center",children:"Drag the slider â left is the original, right is enhanced."})]}),e.jsx("div",{className:"px-6 pt-5 pb-2 md:px-9 grid grid-cols-1 sm:grid-cols-3 gap-3",children:Zs.map(({icon:C,title:b,text:j})=>e.jsxs("div",{className:"flex sm:flex-col items-start gap-3 sm:gap-2 p-3 rounded-xl bg-[#faf8fc] border border-[#f0ebf5]",children:[e.jsx("div",{className:"flex-shrink-0 w-8 h-8 rounded-lg bg-gradient-to-br from-[#6F4898]/12 to-[#6F4898]/5 flex items-center justify-center",children:e.jsx(C,{size:15,className:"text-[#6F4898]"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"m-0 text-[13px] font-bold text-[#1a1a1a] leading-tight",children:b}),e.jsx("p",{className:"m-0 mt-0.5 text-[12px] text-[#666] leading-snug",children:j})]})]},b))})]}),e.jsxs("div",{className:"flex-shrink-0 px-6 pt-4 pb-6 md:px-9 md:pb-7",children:[e.jsxs("button",{type:"button",onClick:m,className:"w-full h-12 rounded-xl bg-[#6F4898] text-white font-bold text-[15px] border-none cursor-pointer hover:bg-[#5c3a80] shadow-[0_6px_20px_rgba(111,72,152,0.35)] transition-all flex items-center justify-center gap-2",children:["See how it works ",e.jsx(ct,{size:16})]}),e.jsx("p",{className:"m-0 mt-3 text-[12px] text-[#888] text-center",children:"Your first 10 enhancements are on us."})]})]})})]}):null};jt.propTypes={visible:n.bool.isRequired,userId:n.string.isRequired,onClose:n.func.isRequired,onComplete:n.func.isRequired,onShowTutorial:n.func.isRequired};const Xs="https://github.com/kamero-ai/kamero-admin-macos/releases/latest/download/kamero_admin-macos.dmg",er="https://github.com/kamero-ai/kamero-admin-windows/releases/latest/download/Kamero_Admin.exe",tr=({title:t,titleId:o,...c},a)=>s.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 814 1000",ref:a,"aria-labelledby":o,...c},t?s.createElement("title",{id:o}
66,t):null,s.createElement("path",{d:"M788.1 340.9c-5.8 4.5-108.2 62.2-108.2 190.5 0 148.4 130.3 200.9 134.2 202.2-.6 3.2-20.7 71.9-68.7 141.9-42.8 61.6-87.5 123.1-155.5 123.1s-85.5-39.5-164-39.5c-76.5 0-103.7 40.8-165.9 40.8s-105.6-57.8-155.5-127.4c-58.3-81.3-105.9-207.6-105.9-328.3 0-193 125.5-295.6 249.1-295.6 65.6 0 120.3 43.1 161.4 43.1 39.1 0 100.2-45.7 174.5-45.7 28.2 0 129.6 2.6 196.5 99.9zM554.1 159.4c31.1-36.9 53.1-88.1 53.1-139.3 0-7.1-.6-14.3-1.9-20.1-50.6 1.9-110.8 33.7-147.1 75.8-28.2 32.4-55.1 83.6-55.1 135.5 0 7.8.7 15.6 1.3 18.1 2.6.5 6.4.6 10.2.6 45.9.1 101.5-30.4 139.5-70.6z"})),sr=s.forwardRef(tr),rr=({title:t,titleId:o,...c},a)=>s.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 88 88",ref:a,"aria-labelledby":o,...c},t?s.createElement("title",{id:o},t):null,s.createElement("path",{d:"M0 12.402l35.687-4.86.016 34.423-35.67.203zm35.67 33.529l.028 34.453L.028 71.48l-.026-25.55zm4.326-39.025L87.314 0v41.527l-47.318.376zm47.329 39.349l-.011 41.34-47.318-6.678-.066-34.739z",fill:"#00adef"})),nr=s.forwardRef(rr),or=()=>{var o;if(typeof navigator>"u")return null;const t=(((o=navigator.userAgentData)==null?void 0:o.platform)||navigator.platform||"").toLowerCase();return t.includes("mac")?"mac":t.includes("win")?"windows":null},ar=[{icon:ut,title:"Drag-and-drop entire shoots",text:"Upload thousands of photos in one go â folders, subfolders, the lot."},{icon:Qt,title:"Auto-resume on flaky Wi-Fi",text:"Connection drops? It picks up exactly where it left off. No restarts."},{icon:mt,title:"Runs quietly in the background",text:"Keep editing, browsing or messaging clients while uploads churn through."}],vt=({visible:t,userId:o,onClose:c,onComplete:a})=>{const m=s.useMemo(or,[]),i=s.useRef(null),_=s.useRef(null),E=s.useRef(t),k=s.useCallback(async()=>{if(!o){a(),c();return}localStorage.setItem(`desktop_app_promo_dismissed_${o}`,"true");try{await gs(o)}catch{}a(),c()},[o,a,c]),C=b=>{window.open(b,"_blank"),k()};return s.useEffect(()=>{var j,y;const b=E.current;E.current=t,t?(_.current=document.activeElement,(j=i.current)==null||j.focus()):b&&((y=_.current)!=null&&y.isConnected&&_.current.focus(),_.current=null)},[t]),s.useEffect(()=>{if(!t)return;const b=j=>{var I;if(j.key==="Escape"){j.preventDefault(),k();return}if(j.key!=="Tab")return;const y=Re(i.current);if(y.length===0){(I=i.current)!=null&&I.contains(document.activeElement)&&j.preventDefault();return}const D=y[0],P=y[y.length-1],x=document.activeElement,p=x===D||x===i.current;j.shiftKey&&p?(j.preventDefault(),P.focus()):!j.shiftKey&&x===P&&(j.preventDefault(),D.focus())};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[t,k]),t?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"fixed inset-0 bg-black/60 z-[1000] backdrop-blur-sm"}),e.jsx("div",{className:"fixed inset-0 z-[1001] flex items-center justify-center p-0 md:p-4",children:e.jsxs("div",{ref:i,role:"dialog","aria-modal":"true","aria-labelledby":"desktop-app-promo-title",tabIndex:-1,className:"bg-white w-full h-full md:h-auto md:max-h-[92vh] md:w-[520px] md:rounded-3xl md:shadow-[0_25px_60px_rgba(0,0,0,0.25)] overflow-y-auto flex flex-col",children:[e.jsxs("div",{className:"flex-shrink-0 bg-gradient-to-br from-[#6F4898] via-[#5a3a82] to-[#3d2658] px-6 pt-9 pb-7 md:px-8 md:pt-10 md:pb-8 text-center relative overflow-hidden md:rounded-t-3xl",children:[e.jsx("div",{className:"absolute -top-16 -right-16 w-48 h-48 rounded-full bg-yellow-400/15 blur-3xl pointer-events-none"}),e.jsx("div",{className:"absolute -bottom-20 -left-20 w-56 h-56 rounded-full bg-white/5 blur-3xl pointer-events-none"}),e.jsx("button",{type:"button",onClick:k,"aria-label":"Close",className:"absolute top-3 right-3 md:top-4 md:right-4 w-8 h-8 rounded-full bg-white/15 hover:bg-white/25 flex items-center justify-center border-none cursor-pointer transition-colors z-10",children:e.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none","aria-hidden":"true",children:e.jsx("path",{d:"M1 1l12 12M13 1L1 13",stroke:"white",strokeWidth:"2",strokeLinecap:"round"})})}),e.jsxs("div",{className:"relative z-[1]",children:[e.jsxs("span",{className:"inline-flex items-center gap-1.5 text-[10px] font-bold uppercase tracking-[0.15em] text-yellow-300 bg-yellow-400/10 border border-yellow-300/30 rounded-full px-3 py-1 mb-4",children:[e.jsx(mt,{size:11,className:"fill-yellow-300"})," Built for Pros"]}),e.jsxs("h2",{id:"desktop-app-promo-title",className:"m-0 text-white text-[26px] md:text-[32px] font-extrabold leading-[1.15] tracking-tight",children:["Upload up to ",e.jsx("span",{className:"text-yellow-300",children:"9à faster"}),e.jsx("br",{className:"hidden sm:block"})," with the Desktop App"]}),e.jsx("p",{className:"m-0 mt-3 text-white/80 text-[14px] md:text-[15px] leading-relaxed",children:"Stop watching the browser tab. Get hours back on every event."}),e.jsxs("div",{className:"mt-6 mx-auto max-w-[360px] space-y-3 text-left",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("span",{className:"text-[11px] text-white/55 font-medium w-[68px] flex-shrink-0",children:"Browser"}),e.jsx("div",{className:"flex-1 h-2.5 rounded-full bg-white/10 overflow-hidden",children:e.jsx("div",{className:"h-full w-[11%] bg-white/35 rounded-full"})}),e.jsx("span",{className:"text-[11px] text-white/45 w-8 text-right",children:"1Ã"})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("span",{className:"text-[11px] text-yellow-300 font-bold w-[68px] flex-shrink-0",children:"Desktop"}),e.jsx("div",{className:"flex-1 h-2.5 rounded-full bg-white/10 overflow-hidden",children:e.jsx("div",{className:"h-full w-full bg-gradient-to-r from-yellow-300 via-yellow-400 to-yellow-300 rounded-full shadow-[0_0_14px_rgba(253,224,71,0.55)]"})}),e.jsx("span",{className:"text-[11px] text-yellow-300 font-bold w-12 text-right whitespace-nowrap",children:"up to 9Ã"})]})]})]})]}),e.jsx("div",{className:"px-6 py-5 md:px-8 md:py-6 space-y-4",children:ar.map(({icon:b,title:j,text:y})=>e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"flex-shrink-0 w-9 h-9 rounded-xl bg-gradient-to-br from-[#6F4898]/12 to-[#6F4898]/5 flex items-center justify-center mt-0.5",children:e.jsx(b,{size:16,className:"text-[#6F4898]"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"m-0 text-[14px] font-semibold text-[#1a1a1a] leading-snug",children:j}),e.jsx("p",{className:"m-0 mt-0.5 text-[13px] text-[#666] leading-relaxed",children:y})]})]},j))}),e.jsxs("div",{className:"flex-shrink-0 px-6 pb-6 md:px-8 md:pb-7",children:[e.jsxs("div",{className:"space-y-3",children:[e.jsxs("button",{type:"button",onClick:()=>C(Xs),className:"relative w-full h-12 rounded-xl bg-black text-white font-semibold text-[14px] border-none cursor-pointer flex items-center justify-center gap-2 hover:bg-[#1a1a1a] shadow-[0_4px_14px_rgba(0,0,0,0.15)] hover:shadow-[0_6px_20px_rgba(0,0,0,0.25)] transition-all",children:[e.jsx(sr,{style:{width:16,height:16,fill:"white"}}),"Download for Mac",m==="mac"&&e.jsx("span",{className:"absolute -top-2 right-3 text-[9px] font-bold uppercase tracking-wider bg-yellow-400 text-[#3d2658] px-2 py-0.5 rounded-full shadow-md",children:"For your Mac"})]}),e.jsxs("button",{type:"button",onClick:()=>C(er),className:"relative w-full h-12 rounded-xl bg-white text-[#333] font-semibold text-[14px] border-2 border-[#e5e7eb] cursor-pointer flex items-center justify-center gap-2 hover:border-[#6F4898] hover:text-[#6F4898] transition-colors",children:[e.jsx(nr,{style:{width:16,height:16}}),"Download for Windows",m==="windows"&&e.jsx("span",{className:"absolute -top-2 right-3 text-[9px] font-bold uppercase tracking-wider bg-yellow-400 text-[#3d2658] px-2 py-0.5 rounded-full shadow-md",children:"For your PC"})]})]}),e.jsx("p",{className:"m-0 mt-4 text-[12px] text-[#888] text-center",children:"Free · Signs in with your existing Kamero account"})]})]})})]}):null};
66vt.propTypes={visible:n.bool.isRequired,userId:n.string.isRequired,onClose:n.func.isRequired,onComplete:n.func.isRequired};const ir=[{icon:Jt,title:"Pick a template, you are live",text:"Ready-made photographer layouts. Drop in your logo, cover photo and services â no design work."},{icon:pt,title:"Your own web address",text:"Share yourname.kamero.ai with clients, or point your own domain at it later."},{icon:vs,title:"Enquiries land in your dashboard",text:"The built-in contact form sends every lead straight to Kamero. Nothing gets lost in DMs."}],lr=()=>e.jsxs("svg",{viewBox:"0 0 340 190",className:"w-full max-w-[340px] mx-auto block","aria-hidden":"true",focusable:"false",children:[e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:"ksp-cover",x1:"0",y1:"0",x2:"1",y2:"1",children:[e.jsx("stop",{offset:"0%",stopColor:"#fde047"}),e.jsx("stop",{offset:"100%",stopColor:"#f59e0b"})]}),e.jsxs("linearGradient",{id:"ksp-cover2",x1:"0",y1:"0",x2:"1",y2:"1",children:[e.jsx("stop",{offset:"0%",stopColor:"#a78bfa"}),e.jsx("stop",{offset:"100%",stopColor:"#6F4898"})]}),e.jsx("filter",{id:"ksp-shadow",x:"-30%",y:"-30%",width:"160%",height:"170%",children:e.jsx("feDropShadow",{dx:"0",dy:"6",stdDeviation:"7",floodColor:"#1e1033",floodOpacity:"0.35"})})]}),e.jsxs("g",{opacity:"0.5",transform:"translate(4 34) rotate(-7 60 60)",children:[e.jsx("rect",{width:"104",height:"120",rx:"9",fill:"#ffffff"}),e.jsx("rect",{x:"8",y:"9",width:"88",height:"34",rx:"5",fill:"url(#ksp-cover2)"}),e.jsx("rect",{x:"8",y:"49",width:"52",height:"5",rx:"2.5",fill:"#cbb8e0"}),e.jsx("rect",{x:"8",y:"60",width:"72",height:"4",rx:"2",fill:"#e3d8ee"}),e.jsx("rect",{x:"8",y:"72",width:"26",height:"26",rx:"4",fill:"#ede5f5"}),e.jsx("rect",{x:"39",y:"72",width:"26",height:"26",rx:"4",fill:"#ede5f5"}),e.jsx("rect",{x:"70",y:"72",width:"26",height:"26",rx:"4",fill:"#ede5f5"})]}),e.jsxs("g",{opacity:"0.5",transform:"translate(232 34) rotate(7 60 60)",children:[e.jsx("rect",{width:"104",height:"120",rx:"9",fill:"#ffffff"}),e.jsx("rect",{x:"8",y:"9",width:"88",height:"34",rx:"5",fill:"url(#ksp-cover)"}),e.jsx("rect",{x:"8",y:"49",width:"46",height:"5",rx:"2.5",fill:"#cbb8e0"}),e.jsx("rect",{x:"8",y:"60",width:"66",height:"4",rx:"2",fill:"#e3d8ee"}),e.jsx("rect",{x:"8",y:"72",width:"40",height:"26",rx:"4",fill:"#ede5f5"}),e.jsx("rect",{x:"53",y:"72",width:"43",height:"26",rx:"4",fill:"#ede5f5"})]}),e.jsxs("g",{transform:"translate(66 8)",filter:"url(#ksp-shadow)",children:[e.jsx("rect",{width:"208",height:"174",rx:"12",fill:"#ffffff"}),e.jsxs("g",{children:[e.jsx("circle",{cx:"15",cy:"14",r:"2.6",fill:"#ff5f57"}),e.jsx("circle",{cx:"24",cy:"14",r:"2.6",fill:"#febc2e"}),e.jsx("circle",{cx:"33",cy:"14",r:"2.6",fill:"#28c840"}),e.jsx("rect",{x:"43",y:"8",width:"153",height:"13",rx:"6.5",fill:"#f1eef6"}),e.jsx("text",{x:"52",y:"17.5",fontFamily:"ui-sans-serif, system-ui, sans-serif",fontSize:"8",fontWeight:"600",fill:"#6F4898",children:"yourname.kamero.ai"})]}),e.jsx("rect",{x:"10",y:"28",width:"188",height:"58",rx:"7",fill:"url(#ksp-cover2)"}),e.jsx("circle",{cx:"34",cy:"52",r:"9",fill:"#ffffff",opacity:"0.92"}),e.jsx("text",{x:"34",y:"55.5",textAnchor:"middle",fontFamily:"ui-sans-serif, system-ui, sans-serif",fontSize:"9",fontWeight:"800",fill:"#6F4898",children:"K"}),e.jsx("rect",{x:"49",y:"46",width:"74",height:"7",rx:"3.5",fill:"#ffffff",opacity:"0.95"}),e.jsx("rect",{x:"49",y:"58",width:"50",height:"5",rx:"2.5",fill:"#ffffff",opacity:"0.6"}),e.jsx("rect",{x:"132",y:"66",width:"56",height:"14",rx:"7",fill:"#fde047"}),e.jsx("text",{x:"160",y:"75.5",textAnchor:"middle",fontFamily:"ui-sans-serif, system-ui, sans-serif",fontSize:"7.5",fontWeight:"700",fill:"#3d2658",children:"Book a date"}),e.jsx("rect",{x:"10",y:"94",width:"58",height:"42",rx:"6",fill:"#ede5f5"}),e.jsx("rect",{x:"72",y:"94",width:"58",height:"42",rx:"6",fill:"#f4eefb"}),e.jsx("rect",{x:"134",y:"94",width:"64",height:"42",rx:"6",fill:"#ede5f5"}),e.jsx("path",{d:"M22 126l9-11 8 10 5-5 8 6H22z",fill:"#c9b3e0"}),e.jsx("circle",{cx:"27",cy:"107",r:"3.5",fill:"#d9c8ea"}),e.jsx("path",{d:"M84 126l9-11 8 10 5-5 8 6H84z",fill:"#dccdec"}
66),e.jsx("circle",{cx:"89",cy:"107",r:"3.5",fill:"#e6dbf3"}),e.jsx("path",{d:"M146 126l10-11 8 10 5-5 9 6h-32z",fill:"#c9b3e0"}),e.jsx("circle",{cx:"151",cy:"107",r:"3.5",fill:"#d9c8ea"}),e.jsx("rect",{x:"10",y:"146",width:"96",height:"6",rx:"3",fill:"#e8e2f0"}),e.jsx("rect",{x:"10",y:"157",width:"140",height:"5",rx:"2.5",fill:"#f0ecf5"})]})]}),kt=({visible:t,userId:o,onClose:c,onComplete:a})=>{const m=js(),i=s.useCallback(()=>{o&&(localStorage.setItem(`studio_site_promo_dismissed_${o}`,"true"),bs(o).catch(()=>{})),a(),c()},[o,a,c]),_=()=>{i(),m("/website")};return s.useEffect(()=>{if(!t)return;const E=C=>{C.key==="Escape"&&i()};document.addEventListener("keydown",E);const k=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",E),document.body.style.overflow=k}},[t,i]),t?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"fixed inset-0 bg-black/60 z-[1000] backdrop-blur-sm","aria-hidden":"true"}),e.jsx("div",{className:"fixed inset-0 z-[1001] flex items-center justify-center p-0 md:p-4",children:e.jsxs("div",{role:"dialog","aria-modal":"true","aria-labelledby":"studio-site-promo-title",className:"bg-white w-full h-full md:h-auto md:max-h-[92vh] md:w-[520px] md:rounded-3xl md:shadow-[0_25px_60px_rgba(0,0,0,0.25)] overflow-y-auto flex flex-col",children:[e.jsxs("div",{className:"flex-shrink-0 bg-gradient-to-br from-[#6F4898] via-[#5a3a82] to-[#3d2658] px-6 pt-9 pb-7 md:px-8 md:pt-10 md:pb-8 text-center relative overflow-hidden md:rounded-t-3xl",children:[e.jsx("div",{className:"absolute -top-16 -right-16 w-48 h-48 rounded-full bg-yellow-400/15 blur-3xl pointer-events-none"}),e.jsx("div",{className:"absolute -bottom-20 -left-20 w-56 h-56 rounded-full bg-white/5 blur-3xl pointer-events-none"}),e.jsx("button",{type:"button",onClick:i,"aria-label":"Close",className:"absolute top-3 right-3 md:top-4 md:right-4 w-8 h-8 rounded-full bg-white/15 hover:bg-white/25 flex items-center justify-center border-none cursor-pointer transition-colors z-10",children:e.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none","aria-hidden":"true",children:e.jsx("path",{d:"M1 1l12 12M13 1L1 13",stroke:"white",strokeWidth:"2",strokeLinecap:"round"})})}),e.jsxs("div",{className:"relative z-[1]",children:[e.jsxs("span",{className:"inline-flex items-center gap-1.5 text-[10px] font-bold uppercase tracking-[0.15em] text-yellow-300 bg-yellow-400/10 border border-yellow-300/30 rounded-full px-3 py-1 mb-4",children:[e.jsx(Be,{size:11,className:"fill-yellow-300"})," New · Free forever"]}),e.jsxs("h2",{id:"studio-site-promo-title",className:"m-0 text-white text-[24px] md:text-[30px] font-extrabold leading-[1.15] tracking-tight",children:["Create your personal branded website ",e.jsx("span",{className:"text-yellow-300",children:"free"})," on Kamero"]}),e.jsx("p",{className:"m-0 mt-3 text-white/80 text-[14px] md:text-[15px] leading-relaxed",children:"A proper website for your studio â portfolio, services, testimonials and an enquiry form. Live in minutes."}),e.jsx("div",{className:"mt-6",children:e.jsx(lr,{})})]})]}),e.jsx("div",{className:"px-6 py-5 md:px-8 md:py-6 space-y-4",children:ir.map(({icon:E,title:k,text:C})=>e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"flex-shrink-0 w-9 h-9 rounded-xl bg-gradient-to-br from-[#6F4898]/12 to-[#6F4898]/5 flex items-center justify-center mt-0.5",children:e.jsx(E,{size:16,className:"text-[#6F4898]"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"m-0 text-[14px] font-semibold text-[#1a1a1a] leading-snug",children:k}),e.jsx("p",{className:"m-0 mt-0.5 text-[13px] text-[#666] leading-relaxed",children:C})]})]},k))}),e.jsxs("div",{className:"flex-shrink-0 px-6 pb-6 md:px-8 md:pb-7",children:[e.jsxs("div",{className:"space-y-3",children:[e.jsxs("button",{type:"button",onClick:_,className:"w-full h-12 rounded-xl bg-[#6F4898] text-white font-semibold text-[15px] border-none cursor-pointer flex items-center justify-center gap-2 hover:bg-[#5a3a82] shadow-[0_4px_14px_rgba(111,72,152,0.3)] hover:shadow-[0_6px_20px_rgba(111,72,152,0.4)] transition-all",children:[e.jsx(pt,{size:17}),"Build my website"]}),e.jsx("button",{type:"button",onClick:i,className:"w-full h-11 rounded-xl bg-transparent text-[#666] font-medium text-[14px] border-none cursor-pointer hover:text-[#6F4898] transition-colors",children:"Maybe later"})]}),e.jsx("p",{className:"m-0 mt-2 text-[12px] text-[#888] text-center",children:"Free · No extra plan needed · Change it any time"})]})]})})]}):null};kt.propTypes={visible:n.bool.isRequired,userId:n.string.isRequired,onClose:n.func.isRequired,onComplete:n.func.isRequired};const cr=s.lazy(()=>H(()=>import("./RazorPayWrapper-B1pLEEU6.js"),__vite__mapDeps([7,3,1,2,4,5]))),dr=s.lazy(()=>H(()=>import("./ExpiringEventsBanner-DVFKgYNQ.js"),__vite__mapDeps([8,3,1,2,4,5,9,10,11,12,13,14,15,16]))),ur=s.lazy(()=>H(()=>import("./ExpiringFaceEventsBanner-Cvlf2mkW.js"),__vite__mapDeps([17,3,1,2,4,5,9,11,12,13,14,15,16]))),mr=s.lazy(()=>H(()=>import("./PackInfoBanner-CSSOSS85.js"),__vite__mapDeps([18,1,2,3,4,5,19,20,21,22,23,24,25,26,14,27,28,29,30,31,32,33,34,35,36,37,38,12,39,40,41,42,43,44,45,11]))),pr=s.lazy(()=>H(()=>import("./TutorialVideoFooter-4MldR7Kj.js"),__vite__mapDeps([46,1,2,3,4,5,27,28,22,29,30,31,32,33,34,35,36,37,38,12,14,39,40,41,42,43,44,45,11]))),hr=s.lazy(()=>H(()=>import("./SubscriptionCard-DC9BJUU3.js"),__vite__mapDeps([47,1,2,3,4,5]))),ot=s.lazy(()=>H(()=>import("./EventsCodeCard-Bep8giIn.js"),__vite__mapDeps([48,1,2,3,4,5,49,50,15,51]))),at=s.lazy(()=>H(()=>import("./BuyProductsComp-C_c0MYur.js"),__vite__mapDeps([52,1,2,3,4,5,44,27,28,12,53,54,55,56,57,58]))),Nt=({userId:t,email:o,mobile:c,whitelabelId:a,fetchPurchasedPacks:m,createEvent:i,eventCreated:_,fetchBalance:E,fetchWalletProduct:k,placeRechargeOrder:C,confirmOrder:b,redeem:j,phone:y,updatePhoneNumber:D,subscription:P,detectedCountry:x,metadata:p,updateUserProfile:I,userType:z,country:O,city:$,heardAboutUs:M,hasMarketingAttribution:G})=>{const[Y,h]=s.useState([]),[T,A]=s.useState(!1),[B]=s.useState(!1),[N,re]=s.useState(!0),[X,V]=s.useState(!0),[S,q]=s.useState(void 0),[ce,F]=s.useState(!1),[fe,Q]=s.useState(void 0),[J,de]=s.useState(!1),[ee,ue]=s.useState(!1),[je,se]=s.useState({}),[ne,me]=s.useState(!1),[oe,ve]=s.useState(!1),[ke,Z]=s.useState(!1),[ae,pe]=s.useState(!1),[he,w]=s.useState(!1),[f,l]=s.useState(!1),[r,v]=s.useState(!1),[R,d]=s.useState(!1),[te,ie]=s.useState(!1),[xe,ge]=s.useState(!1),[St,$e]=s.useState(x||"IN"),_t=dt(576),Ee=s.useRef(null),Ct=s.useRef(S);Ct.current=S;const Ae=s.useCallback(async u=>{re(!0);try{let g=await m(t,a,u);h(g),re(!1)}catch(g){L.error(g.message),re(!1)}},[t,a,m]),be=s.useCallback(async()=>{V(!0);try{let u=await E(t);q(u),V(!1)}catch(u){L.error(u.message),V(!1)}},[t,E]),qe=s.useCallback(()=>{!y&&!ee&&!ne&&de(!0)},[y,ee,ne]),We=s.useCallback(()=>{const u={};z||(u.userType=!0),O||(u.country=!0),$||(u.city=!0),y||(u.phone=!0);const g=p&&p.heard_about_us_skipped===!0||oe;!M&&!G&&!g&&(u.heardAboutUs=!0);const U=Object.keys(u).length>0;U&&!ee?(se(u),ue(!0)):!U&&ee?(ue(!1),se({}),me(!0)):U||qe()},[y,z,O,$,M,G,p,oe,ee,qe]),Fe=s.useCallback(()=>{const u=`desktop_app_promo_dismissed_${t}`,g=t&&localStorage.getItem(u)==="true";
66!(p&&p.desktop_app_promo_dismissed===!0||g)&&!R&&v(!0)},[p,t,R]),De=s.useCallback(()=>{const u=`ai_enhancement_tutorial_completed_${t}`,g=t&&localStorage.getItem(u)==="true";!(p&&p.ai_enhancement_tutorial_completed===!0||g)&&!f&&w(!0)},[p,t,f]),Ke=s.useCallback(()=>{const u=`tutorial_completed_${t}`,g=`ai_enhancement_tutorial_completed_${t}`,U=`desktop_app_promo_dismissed_${t}`,W=`studio_site_promo_dismissed_${t}`,Se=t&&localStorage.getItem(u)==="true",Bt=t&&localStorage.getItem(g)==="true",$t=t&&localStorage.getItem(U)==="true",qt=t&&localStorage.getItem(W)==="true",_e=p&&p.tutorial_completed===!0||Se,Te=p&&p.ai_enhancement_tutorial_completed===!0||Bt,Ge=p&&p.desktop_app_promo_dismissed===!0||$t,Wt=p&&p.studio_site_promo_dismissed===!0||qt;!_e&&!ae?Z(!0):_e&&!Te&&!f?w(!0):_e&&Te&&!Ge&&!R?v(!0):_e&&Te&&Ge&&!Wt&&!xe&&ie(!0)},[p,t,ae,f,R,xe]);s.useEffect(()=>{Ae(!1),be(),x&&$e(x)},[]),s.useEffect(()=>{ne||We();const u=p&&p.heard_about_us_skipped===!0||oe;!z||!O||!$||!y||!M&&!G&&!u||Ke()},[y,z,O,$,M,G,p,oe,ne,We,Ke]),s.useEffect(()=>{x&&$e(x)},[x]);const Pt=s.useCallback(async u=>{try{const g=Is(u);if(et(g)&&await I(t,g),u.heardAboutUsSkipped){ve(!0);try{const{markHeardAboutUsSkipped:U}=await H(async()=>{const{markHeardAboutUsSkipped:W}=await import("./UserMetadataService-Br2eqXhx.js");return{markHeardAboutUsSkipped:W}},__vite__mapDeps([39,40,1,2,3,4,5]));await U(t)}catch{}}ue(!1),me(!0),se({}),et(g)&&L.success("Profile setup completed successfully!",2)}catch{L.error("Failed to update profile. Please try again.")}},[t,I]),Rt=s.useCallback(async()=>{const u=`tutorial_completed_${t}`;t&&localStorage.setItem(u,"true");try{const{markTutorialCompleted:g}=await H(async()=>{const{markTutorialCompleted:U}=await import("./UserMetadataService-Br2eqXhx.js");return{markTutorialCompleted:U}},__vite__mapDeps([39,40,1,2,3,4,5]));await g(t),Z(!1),pe(!0),L.success("Welcome to Kamero! You're all set to start using our platform."),setTimeout(()=>De(),1e3)}catch{L.error("Failed to save tutorial completion status. Please try again."),Z(!1),pe(!0),setTimeout(()=>De(),1e3)}},[t,De]),Et=s.useCallback(async()=>{const u=`ai_enhancement_tutorial_completed_${t}`;t&&localStorage.setItem(u,"true");try{const{markAiEnhancementTutorialCompleted:g}=await H(async()=>{const{markAiEnhancementTutorialCompleted:U}=await import("./UserMetadataService-Br2eqXhx.js");return{markAiEnhancementTutorialCompleted:U}},__vite__mapDeps([39,40,1,2,3,4,5]));await g(t),w(!1),l(!0),L.success("Great! You're now ready to enhance your photos with AI."),setTimeout(()=>Fe(),1e3)}catch{L.error("Failed to save tutorial completion status. Please try again."),w(!1),l(!0),setTimeout(()=>Fe(),1e3)}},[t,Fe]),At=s.useCallback(()=>{w(!1),window.open("/ai-enhancement-tutorial","_blank")},[]),Ft=s.useCallback(()=>{ie(!1),ge(!0)},[]),Dt=s.useCallback(()=>{v(!1),d(!0)},[]),Tt=s.useCallback(async u=>{try{await D(t,u),L.success("Phone number updated successfully",1),de(!1)}catch{L.error("Failed to update phone number. Please try again.")}},[t,D]),Ut=s.useCallback(async u=>{try{const g=await k(t);g.length!==1&&L.error("Wallet product not found. please contact administrator.");const U=await C(t,[{quantity:1,productId:g[0].id}],u);F(!0),Q(U)}catch(g){L.error(g.message)}return Promise.resolve()},[t,k,C]),Lt=s.useCallback(async u=>{try{let g=await j(t,u);q(g),L.success("Code redeemed!")}catch(g){L.error(g.message)}},[t,j]),zt=s.useCallback(async(u,g,U)=>{try{A(!0),await b(t,u,g,U),await be(),A(!1),F(!1),Q(void 0)}catch(W){L.error(W.message,15),F(!1),Q(void 0),A(!1)}},[t,b,be]),He=s.useCallback(async()=>{try{A(!0),await Ae(!0),await be(),A(!1),L.success("Payment success! Your packs are now loaded.")}catch(u){A(!1),L.error(u.message)}},[Ae,be]),Ot=u=>{let g={email:o,mobile:c,amount:u.amount,orderId:u.razorPayOrderId,paymentAuthorized:U=>{zt(u.id,U.razorpay_payment_id,U.razorpay_signature)}};return e.jsx(s.Suspense,{fallback:e.jsx(Ne,{}),children:e.jsx(cr,{asyncScriptOnLoad:()=>{Ee.current&&Ee.current.setState({isProcessing:!1}),F(!1),Q(void 0)},...g})})},ye=()=>e.jsxs("div",{style:{minHeight:"150px",background:"#f5f5f5",borderRadius:"8px",padding:"20px"},children:[e.jsx("div",{style:{height:"20px",background:"#e0e0e0",borderRadius:"4px",marginBottom:"15px",width:"60%"}}),e.jsx("div",{style:{height:"40px",background:"#e0e0e0",borderRadius:"4px",marginBottom:"10px"}}),e.jsx("div",{style:{height:"30px",background:"#e0e0e0",borderRadius:"4px",width:"80%"}}
66)]}),Mt=()=>{const u=P&&P.id;return e.jsx("div",{style:{maxWidth:"1200px",margin:"0 auto",padding:"0 24px",width:"100%",marginBottom:"12px",marginTop:"12px"},children:e.jsxs("div",{style:{display:"flex",flexDirection:"row",gap:"24px",flexWrap:"wrap"},children:[e.jsx("div",{style:{flex:u?"1 1 calc(33.333% - 16px)":"1 1 calc(50% - 12px)",minWidth:"300px"},children:X?e.jsx(ye,{}):e.jsx(wt,{ref:Ee,balance:S?S.balance??0:void 0,balanceUSD:S?S.balanceUSD??0:void 0,recharge:Ut,redeem:Lt,userId:t,email:o,mobile:c,onWalletUpdate:be})}),u?e.jsxs(e.Fragment,{children:[e.jsx("div",{style:{flex:"1 1 calc(33.333% - 16px)",minWidth:"300px"},children:e.jsx(s.Suspense,{fallback:e.jsx(ye,{}),children:e.jsx(hr,{subscription:P})})}),e.jsx("div",{style:{flex:"1 1 calc(33.333% - 16px)",minWidth:"300px"},children:X?e.jsx(ye,{}):e.jsx(s.Suspense,{fallback:e.jsx(ye,{}),children:e.jsx(ot,{code:S&&S.Code?S.Code:"",whitelabelId:a})})})]}):e.jsx("div",{style:{flex:"1 1 calc(50% - 12px)",minWidth:"300px"},children:X?e.jsx(ye,{}):e.jsx(s.Suspense,{fallback:e.jsx(ye,{}),children:e.jsx(ot,{code:S&&S.Code?S.Code:"",whitelabelId:a})})})]})})},It=()=>{const u=St!=="IN",g=(Y||[]).filter(W=>{const Se=W.currency||"INR";return u?Se==="USD":Se==="INR"}),U=()=>e.jsxs("div",{className:"bg-gray-50 rounded-xl p-5 mb-3 animate-pulse",children:[e.jsxs("div",{className:"flex items-start gap-3 mb-3",children:[e.jsx("div",{className:"w-9 h-9 bg-gray-200 rounded-lg"}),e.jsxs("div",{className:"flex-1",children:[e.jsx("div",{className:"h-4 bg-gray-200 rounded w-3/5 mb-2"}),e.jsx("div",{className:"h-3 bg-gray-200 rounded w-2/5"})]}),e.jsx("div",{className:"h-5 bg-gray-200 rounded-md w-12"})]}),e.jsx("div",{className:"h-1.5 bg-gray-200 rounded-full mb-3"}),e.jsxs("div",{className:"flex gap-4",children:[e.jsx("div",{className:"h-3 bg-gray-200 rounded w-20"}),e.jsx("div",{className:"h-3 bg-gray-200 rounded w-28"})]})]});return N?e.jsxs("div",{className:"my-packs",children:[e.jsx(we,{className:"pack-title",title:"MY EVENT PACKS"}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-4 gap-3",children:[e.jsx(U,{}),e.jsx(U,{})]})]}):!g||g.length===0?e.jsxs("div",{className:"my-packs",children:[e.jsx(we,{className:"pack-title",title:"MY EVENT PACKS"}),e.jsx(Vs,{})]}):e.jsxs("div",{className:"my-packs",children:[e.jsx(we,{className:"pack-title",title:"MY EVENT PACKS"}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-4 gap-3",children:g.map(W=>e.jsx(xt,{name:W.title,notableDetail:W.unusedQuantity===9999?"UNLIMITED":W.unusedQuantity+" Unused",detail1:"Valid for 12 months",serverId:W},W.id))})]})},Vt=()=>{const u=()=>e.jsxs("div",{style:{minHeight:"200px",background:"#f5f5f5",borderRadius:"8px",padding:"20px"},children:[e.jsx("div",{style:{height:"30px",background:"#e0e0e0",borderRadius:"4px",marginBottom:"20px",width:"40%"}}),e.jsxs("div",{style:{display:"flex",gap:"16px",flexWrap:"wrap"},children:[e.jsx("div",{style:{flex:"1 1 200px",minHeight:"150px",background:"#e0e0e0",borderRadius:"8px"}}),e.jsx("div",{style:{flex:"1 1 200px",minHeight:"150px",background:"#e0e0e0",borderRadius:"8px"}}),e.jsx("div",{style:{flex:"1 1 200px",minHeight:"150px",background:"#e0e0e0",borderRadius:"8px"}})]})]});return _t?e.jsxs("div",{style:{textAlign:"left",width:"100%",margin:"10px 0px"},children:[e.jsx(we,{className:"pack-title",title:"Purchase Event Packs"}),e.jsx("div",{children:e.jsx(s.Suspense,{fallback:e.jsx(u,{}),children:e.jsx(at,{productType:Ie.photos_pack,purchaseNeedsUpdate:He,walletBalance:S?S.balance:void 0,walletBalanceUSD:S?S.balanceUSD:void 0})})})]}):e.jsxs("div",{className:"buy-packs",children:[e.jsx(we,{className:"pack-title",title:"Purchase Event Pack"}),e.jsx(s.Suspense,{fallback:e.jsx(u,{}),children:e.jsx(at,{productType:Ie.photos_pack,purchaseNeedsUpdate:He,walletBalance:S?S.balance:void 0,walletBalanceUSD:S?S.balanceUSD:void 0})})]})};return e.jsxs("div",{className:"dashboard-container",children:[e.jsx("h1",{className:"sr-only",children:"Home"}),e.jsx("div",{className:"banner-container",children:e.jsxs(s.Suspense,{fallback:null,children:[e.jsx(dr,{onRenewed:()=>{}}),e.jsx(ur,{onRenewed:()=>{}})]})}),e.jsxs("div",{className:"packs",children:[a&&Mt(),e.jsx(s.Suspense,{fallback:e.jsxs("div",{style:{minHeight:"80px",background:"#f5f5f5",borderRadius:"8px",margin:"12px 0",padding:"20px"},children:[e.jsx("div",{style:{height:"20px",background:"#e0e0e0",borderRadius:"4px",marginBottom:"10px",width:"70%"}}),e.jsx("div",{style:{height:"16px",background:"#e0e0e0",borderRadius:"4px",width:"50%"}})]}),children:e.jsx(mr,{whitelabelId:a,email:o,userId:t})}),It(),Vt(),e.jsx(s.Suspense,{fallback:e.jsx("div",{style:{minHeight:"50px"}}),children:e.jsx(pr,{defaultLanguage:"english"})})]}),(T||B)&&e.jsx(Ne,{text:"Loading Dashboard..."}),ce&&fe&&Ot(fe),e.jsx(gt,{visible:ke,onClose:()=>Z(!1),onComplete:Rt}),e.jsx(jt,{visible:he,userId:t,onClose:()=>w(!1),onComplete:Et,onShowTutorial:At}),e.jsx(vt,{visible:r,userId:t,onClose:()=>v(!1),onComplete:Dt}),e.jsx(kt,{visible:te,userId:t,onClose:()=>ie(!1),onComplete:Ft}),e.jsx(yt,{visible:ee,missingFields:je,userInfo:{phone:y,userType:z,country:O,city:$},onComplete:Pt}),e.jsx(Bs,{visible:J,onSubmit:Tt,onCancel:()=>de(!1)})]})};Nt.propTypes={userId:n.string.isRequired,email:n.string.isRequired,mobile:n.string,whitelabelId:n.string.isRequired,fetchPurchasedPacks:n.func.isRequired,createEvent:n.func.isRequired,eventCreated:n.func.isRequired,fetchBalance:n.func.isRequired,fetchWalletProduct:n.func.isRequired,placeRechargeOrder:n.func.isRequired,confirmOrder:n.func.isRequired,redeem:n.func.isRequired,phone:n.string,updatePhoneNumber:n.func.isRequired,subscription:n.shape({id:n.string,createdAt:n.string,currentPhotosCount:n.number,deletedPhotosCount:n.number,expiresAt:n.string,isFaceRecognition:n.bool,isGuestUpload:n.bool,isRegistration:n.bool,maxPhotosLimit:n.number,name:n.string,packageId:n.string,
66startDate:n.string,status:n.string,tier:n.string,type:n.string,uploadLimit:n.number,uploadedPhotosCount:n.number,userId:n.string,whitelabelId:n.string}),wallet:n.shape({balance:n.number,Code:n.string})};const xr=()=>{const{userId:t,email:o,phone:c,whitelabelId:a,subscription:m,userType:i,country:_,city:E,heardAboutUs:k,hasMarketingAttribution:C,metadata:b,detectedCountry:j,updatePhoneNumberAsync:y,updateUserProfileAsync:D}=Zt(Xt(h=>({userId:h.userId,email:h.email,phone:h.phone,whitelabelId:h.whitelabelId,subscription:h.subscription,userType:h.userType,country:h.country,city:h.city,heardAboutUs:h.heardAboutUs,hasMarketingAttribution:h.hasMarketingAttribution,metadata:h.metadata,detectedCountry:h.detectedCountry,updatePhoneNumberAsync:h.updatePhoneNumberAsync,updateUserProfileAsync:h.updateUserProfileAsync}))),P=async(h,T,A)=>await ks.getPurchaseList(h,T,A),x=async(h,T,A,B)=>{const N={name:T,purchaseId:B};return await es.createEvent(h,N)},p=async h=>{},I=async h=>await Xe.getWallet(h),z=async h=>await as.getProductList(h,Ie.wallet),O=async(h,T,A)=>await Ze.placeOrder(h,T,!1,null,A),$=async(h,T,A,B,N)=>await Ze.confirmOrder(h,T,"razorpay",N,A,B),M=async(h,T)=>await Xe.redeem(h,T),G=(h,T)=>y(h,T),Y=(h,T)=>D(h,T);return e.jsx(Nt,{userId:t,email:o,phone:c,whitelabelId:a,subscription:m,userType:i,country:_,city:E,heardAboutUs:k,hasMarketingAttribution:C,metadata:b,detectedCountry:j,fetchPurchasedPacks:P,createEvent:x,eventCreated:p,fetchBalance:I,fetchWalletProduct:z,placeRechargeOrder:O,confirmOrder:$,redeem:M,updatePhoneNumber:G,updateUserProfile:Y})},Mr=Object.freeze(Object.defineProperty({__proto__:null,default:xr},Symbol.toStringTag,{value:"Module"}));export{qs as A,Ss as C,Mr as D,Xs as M,er as W,tt as a,$s as g};
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.