1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2432],{38688:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/profile/User",function(){return s(61017)}])},8946:function(e,t){"use strict";t.Z={src:"/_next/static/media/profile.3f0160b4.jpeg",height:600,width:600,blurDataURL:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAoKCgoKCgsMDAsPEA4QDxYUExMUFiIYGhgaGCIzICUgICUgMy03LCksNy1RQDg4QFFeT0pPXnFlZXGPiI+7u/sBCgoKCgoKCwwMCw8QDhAPFhQTExQWIhgaGBoYIjMgJSAgJSAzLTcsKSw3LVFAODhAUV5PSk9ecWVlcY+Ij7u7+//CABEIAAgACAMBIgACEQEDEQH/xAAoAAEBAAAAAAAAAAAAAAAAAAAABwEBAQAAAAAAAAAAAAAAAAAAAQL/2gAMAwEAAhADEAAAAKUJf//EAB4QAAAEBwAAAAAAAAAAAAAAAAACEhMEERUkMjOx/9oACAEBAAE/AFx1RS1Zs5TLs6P/xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oACAECAQE/AH//xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oACAEDAQE/AH//2Q==",blurWidth:8,blurHeight:8}},73658:function(e,t,s){"use strict";var a=s(85893),r=s(67294),l=s(733),n=s.n(l),o=s(37351),i=s(25675),c=s.n(i);let d=()=>{let e=(0,r.useContext)(o.ThemeContext),[t,s]=(0,r.useState)("");return((0,r.useEffect)(()=>{e.splashLogo&&""!==e.splashLogo&&s(e.splashLogo)},[e]),t)?(0,a.jsx)("div",{className:"flex justify-center items-center py-40",children:(0,a.jsx)(c(),{width:144,height:144,src:t,alt:"Loading",className:"w-36 h-36 object-contain"})}):(0,a.jsx)("div",{className:"w-full h-full flex justify-center items-center py-40",children:(0,a.jsx)(n(),{type:"spinningBubbles",color:"#000000",height:"10%",width:"10%"})})};t.Z=d},66506:function(e,t,s){"use strict";var a=s(85893),r=s(67294),l=s(8193),n=s(51526),o=s(43495);let i=e=>{let{isOpen:t,onClose:s,onConfirm:i}=e,c=(0,r.useRef)();return(0,r.useEffect)(()=>{let e=e=>{c.current&&!c.current.contains(e.target)&&s()};return t?document.addEventListener("mousedown",e):document.removeEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[t,s]),(0,a.jsx)(n.M,{children:t&&(0,a.jsx)(o.E.div,{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50",initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},children:(0,a.jsx)(o.E.div,{className:"bg-white rounded-lg shadow-lg p-8 w-full max-w-lg border-t-4 border-primary md:max-w-md",initial:{y:50,opacity:0},animate:{y:0,opacity:1},exit:{y:50,opacity:0},transition:{type:"tween",ease:"easeInOut",duration:.4},ref:c,children:(0,a.jsxs)("div",{className:"flex flex-col items-center",children:[(0,a.jsx)(l.sQg,{className:"text-red-500 text-6xl mb-4"}),(0,a.jsx)("h2",{className:"text-2xl font-semibold mb-4",children:"Are you sure?"}),(0,a.jsx)("p",{className:"text-gray-600 mb-6 text-center",children:"Do you want to logout?"}),(0,a.jsxs)("div",{className:"flex flex-wrap justify-center space-x-4 space-y-2 md:space-y-0",children:[(0,a.jsx)("button",{onClick:i,className:"bg-blue-500 text-white px-6 py-2 rounded-full shadow-md hover:bg-blue-600 transition-all duration-300 transform hover:scale-105",children:"Yes, logout!"}),(0,a.jsx)("button",{onClick:s,className:"bg-red-500 text-white px-6 py-2 rounded-full shadow-md hover:bg-red-600 transition-all duration-300 transform hover:scale-105",children:"Cancel"})]})]})})})})};t.Z=i},15643:function(e,t,s){"use strict";var a=s(85893),r=s(67294),l=s(89583);let n=e=>{let{isOpen:t,onClose:s,onSubmit:n,isSubmitting:o=!1}=e,[i,c]=(0,r.useState)(""),[d,m]=(0,r.useState)(""),u=e=>{let t=e.target.value;""===t||/^[6-9]\d{0,9}$/.test(t)?(c(t),m("")):11!=t.length&&m("Invalid phone number. It must start with 6-9 and be 10 digits long.")},h=()=>{if(!o){if(10!==i.length){m("Phone number must be exactly 10 digits.");return}n(i)}};return t?(0,a.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-60 backdrop-blur-sm",children:(0,a.jsxs)("div",{className:"relative bg-white rounded-lg p-8 w-11/12 max-w-md
1shadow-lg transform transition-all",children:[(0,a.jsx)("button",{onClick:s,className:"absolute top-3 right-3 text-gray-600 hover:text-gray-800",children:(0,a.jsx)(l.aHS,{size:20})}),(0,a.jsx)("h2",{className:"text-2xl font-semibold text-gray-800 mb-4",children:"Enter Your Phone Number"}),(0,a.jsx)("input",{type:"text",placeholder:"Phone Number",value:i,onChange:u,className:"w-full px-4 py-2 border-2 border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary focus:border-primary",style:{outline:"none",boxShadow:"none"}}),d&&(0,a.jsx)("p",{className:"mt-2 text-sm text-red-500",children:d}),(0,a.jsxs)("div",{className:"mt-6 flex justify-end space-x-4",children:[(0,a.jsx)("button",{onClick:s,className:"px-4 py-2 text-gray-700 bg-gray-200 rounded-lg hover:bg-gray-300 transition",children:"Cancel"}),(0,a.jsx)("button",{onClick:h,disabled:o,className:"px-4 py-2 text-white bg-primary rounded-lg transition ".concat(o?"opacity-50 cursor-not-allowed":"hover:opacity-90"),children:o?"Please wait...":"Submit"})]})]})}):null};t.Z=n},88776:function(e,t,s){"use strict";var a=s(85893);s(67294);var r=s(50657),l=s(33090),n=s(6514),o=s(93946),i=s(50594);let c=e=>{let{open:t,handleClose:s,title:c,content:d,actions:m,fullWidth:u=!0,maxWidth:h="sm"}=e;return(0,a.jsxs)(r.Z,{open:t,maxWidth:h,fullWidth:u,onClose:(e,t)=>{"backdropClick"!==t&&s()},children:[(0,a.jsx)(l.Z,{children:(0,a.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,a.jsxs)("b",{className:"text-primary",children:[" ",c]}),(0,a.jsx)(o.Z,{onClick:s,color:"error","aria-label":"Close",size:"small",children:(0,a.jsx)(i.Z,{})})]})}),(0,a.jsx)(n.Z,{children:(0,a.jsx)("div",{children:d})})]})};t.Z=c},4422:function(e,t,s){"use strict";var a=s(67294),r=s(82940),l=s(87066),n=s(37351);let o=()=>{let e="#";for(let t=0;t<6;t++)e+="0123456789ABCDEF"[Math.floor(16*Math.random())];return e},i=()=>{let e=new Date,t="".concat(e.getFullYear()).concat((e.getMonth()+1).toString().padStart(2,"0")).concat(e.getDate().toString().padStart(2,"0")).concat(e.getHours().toString().padStart(2,"0")).concat(e.getMinutes().toString().padStart(2,"0")).concat(e.getSeconds().toString().padStart(2,"0"));return t+o()},c=e=>{let t=(0,r.b)(),s=(0,a.useContext)(n.ThemeContext),o=async()=>{if(1===s.siteStatus){let a={};try{let r=await l.Z.get("https://api.ipify.org?format=json"),n=await l.Z.get("https://ipapi.co/".concat(r.data.ip,"/json/"));a=n.data}catch(d){console.warn("Failed to fetch IP details from ipapi.co. Trying fallback...");try{let o=await l.Z.get("https://ipwhois.app/json/");a=o.data}catch(c){console.warn("Failed to fetch IP details from fallback service. Proceeding without IP data.")}}let m={ipDetails:JSON.stringify(a),reference:window.location.hostname,track:"track",page:window.location.href,method:"open",page_type:e,UID:"",scode:i()};try{await t.post("user/tracking",m)}catch(u){console.error("Error sending tracking data:",u)}}else console.error("Tracking not enabled due to site status.")};return o};t.Z=c},15788:function(e,t,s){"use strict";var a=s(85893),r=s(41664),l=s.n(r);let n=e=>{let{label:t}=e;return(0,a.jsx)("div",{className:"xl:container px-4 py-4 flex justify-between",children:(0,a.jsxs)("div",{className:"flex gap-3 items-center",children:[(0,a.jsx)(l(),{href:"/",className:"text-primary text-base",children:(0,a.jsx)("i",{className:"fas fa-home"})}),(0,a.jsxs)("div",{className:"flex gap-3 items-center mt-1",children:[(0,a.jsx)("span",{className:"text-sm text-gray-500",children:(0,a.jsx)("i",{className:"fas fa-chevron-right"})}),(0,a.jsx)("p",{className:"text-gray-500 font-medium uppercase",children:t})]})]})})};t.Z=n},71846:function(e,t,s){"use strict";var a=s(85893),r=s(41664),l=s.n(r),n=s(25675),o=s.n(n),i=s(68015),c=s(85574),d=s(67294);let m=e=>{let{user:t,userDetails:s,goldPlanEnable:r,buySellEnable:n,websiteStatus:m,theme:u,handleLogout:h,applySiteStatus:x,selectedPage:f}=e,{jboId:p}=(0,i.useJobId)(),{menuJsonApp:g}=(0,d.useContext)(c.UserContext);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"lg:hidden",children:[(0,a.jsx)("div",{className:"bg-gray-50 p-4 flex items-center justify-center shadow rounded-t-lg",children:(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)(o(),{src:t,alt:"User",className:"rounded-full w-14 h-14 border border-gray-300"}),(0,a.jsxs)("div",{className:"ml-3",children:[(0,a.jsx)("p",{className:"text-gray-600",children:"Hello.."}),(0,a.jsxs)("h4",{className:"text-gray-800 font-semibold capitalize",children:[null==s?void 0:s.name,".."]})]})]})}),(0,a.jsx)("div",{className:"flex flex-wrap justify-between p-4 bg-gray-50 shadow rounded-b-lg",children:[{href:"/profile/User",label:"Manage Account"},{href:"/profile/Address",label:"Manage Address"},{href:"/profile/ChangePassword",label:"Change Password"},{href:"/profile/orders",label:"My Order History"},1==g.customized_status&&{href:"/profile/customizedEnquiry",label:"Customized Order"},r&&{href:"/profile/GoldPlans",label:"Gold Plans"},n&&{href:"/profile/Wallet",label:"Wallet"},((null==s?void 0:s.user_type)>=2||3==m)&&{href:"/profile/BidAsk",label:"Bid & Ask",className:"border-2 border-primary"},{href:"/profile/Wishlist",label:"My Wishlist"},233==p&&{href:"/profile/TryEarRing",label:"Try Ear Ring"},,{href:"#",label:"Logout",onClick:h}
1].filter(Boolean).map((e,t)=>(0,a.jsx)("div",{className:"w-1/2 p-2",children:(0,a.jsx)("a",{href:e.href,onClick:e.onClick,className:"flex flex-col items-center bg-white rounded-lg shadow py-3 hover:text-primary ".concat(e.href===f?"text-primary text-base font-semibold":""," ").concat(e.className||""),children:(0,a.jsx)("span",{className:"text-xs text-center",children:e.label})})},t))})]}),(!x||0!==u.siteStatus)&&(0,a.jsxs)("div",{className:"col-span-3 hidden lg:block",children:[(0,a.jsxs)("div",{className:"px-4 py-3 shadow flex bg-gray-100 items-center gap-4",children:[(0,a.jsx)("div",{className:"flex-shrink-0",children:(0,a.jsx)(o(),{src:t,className:"rounded-full w-14 h-14 p-1 border border-gray-200 object-cover"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-gray-600",children:"Hello.."}),(0,a.jsxs)("h4",{className:"text-gray-800 capitalize font-semibold",children:[null==s?void 0:s.name,".."]})]})]}),(0,a.jsx)("div",{className:"mt-6 bg-gray-100 shadow rounded p-4 divide-y divide-gray-200 space-y-4 text-gray-600",children:[{href:"/profile/User",label:"Manage Account",icon:"fas fa-address-card"},{href:"/profile/Address",label:"Manage Address",icon:"fas fa-map-marker-alt"},{href:"/profile/ChangePassword",label:"Change Password",icon:"fas fa-key"},{href:"/profile/orders",label:"My Order History",icon:"fas fa-gift"},1==g.customized_status&&{href:"/profile/customizedEnquiry",label:"Customized Order",icon:"fas fa-pen-ruler"},r&&{href:"/profile/GoldPlans",label:"Gold Plans",icon:"fas fa-crown"},n&&{href:"/profile/Wallet",label:"Wallet",icon:"fas fa-wallet"},(null==s?void 0:s.user_type)>=2&&{href:"/profile/BidAsk",label:"Bid & Ask",icon:"fas fa-gavel",className:"text-primary"},{href:"/profile/Wishlist",label:"My Wishlist",icon:"fas fa-heart"},233==p&&{href:"/profile/TryEarRing",label:"Try Ear Ring",icon:"fas fa-ring",iconClass:"transform rotate-90"},{href:"#",label:"Logout",icon:"fas fa-sign-out-alt",onClick:h}].filter(Boolean).map((e,t)=>(0,a.jsx)("div",{className:"space-y-1 pl-8 pt-4",children:(0,a.jsxs)(l(),{href:e.href,onClick:e.onClick,className:"relative text-base font-medium capitalize hover:text-primary transition block ".concat(e.href===f?"text-primary text-base font-semibold":""," ").concat(e.className||""),children:[e.label,e.icon&&(0,a.jsx)("span",{className:"absolute -left-8 top-0 text-base ".concat(e.iconClass||""),children:(0,a.jsx)("i",{className:e.icon})})]})},t))})]})]})};t.Z=m},61017:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSP:function(){return N}});var a=s(85893),r=s(67294);s(25675),s(41664);var l=s(11163),n=s(85574),o=s(35271),i=s(82940);s(733);var c=s(8946),d=s(8193),m=s(5434),u=s(89583);s(43812);var h=s(73658),x=s(68015),f=s(15268),p=s(66506),g=s(4422),b=s(15643),y=s(14762),A=s(6490),w=s(15788),j=s(71846),C=s(88776);let v=()=>{let e=(0,l.useRouter)(),{mob:t}=e.query,[s,v]=(0,r.useState)(!1),{clearUser:N,token:E,userDetails:k,goldPlanEnable:P,privilegeValue:S,buySellEnable:T,websiteStatus:B,isMobEnb:I}=(0,r.useContext)(n.UserContext),{isOtpEnb:D}=(0,r.useContext)(A.m),[M,L]=(0,r.useState)(!1),[O,_]=(0,r.useState)(!1),[R,z]=(0,r.useState)(""),Z=(0,g.Z)("User Profile Page"),[U,F]=(0,r.useState)(!1),[Q,W]=(0,r.useState)(!1),[H,V]=(0,r.useState)(!1),[Y,G]=(0,r.useState)(Array(6).fill("")),[$,J]=(0,r.useState)(null),[K,q]=(0,r.useState)(!1),[X,ee]=(0,r.useState)({}),et=()=>{navigator.clipboard.writeText(S),F(!0),setTimeout(()=>F(!1),2e3)},es=e=>{ee(e),q(!0)},ea=()=>{q(!1)},er=async e=>{J(e);try{let t=await ep.post("login/phoneNumberVerify",{phone_no:e});1==t.data.status?(es({type:"success",title:"Success",subText:t.data.msg||"OTP Send Successfully!",showCloseIcon:!1,showCancelButton:!1,showConfirmButton:!1,autoClose:3,onClose:ea}),setTimeout(()=>{V(!0),G(Array(6).fill(""))},3500)):es({type:"error",title:"Error!",subText:t.data.msg,onConfirm:ea,onClose:ea,autoClose:2,confirmLabel:"Try again..",showConfirmButton:!1,showCancelButton:!1}),W(!1)}catch(s){console.log(s),W(!1),es({type:"error",title:"Error!",subText:null==s?void 0:s.message,onConfirm:ea,onClose:ea,autoClose:2,confirmLabel:"Try again..",showConfirmButton:!1,showCancelButton:!1})}},el=(e,t)=>
1{"Backspace"===e.key&&t>0&&!Y[t]&&document.getElementById("otp-input-".concat(t-1)).focus()},en=e=>{let t=e.clipboardData.getData("text").slice(0,6);/^\d{6}$/.test(t)&&G(t.split(""))},eo=async()=>{try{let e=await ep.post("/login/resendMobileOtp",{phone_no:$});1===e.data.status?(G(Array(6).fill("")),es({type:"success",title:"Resent",subText:e.data.msg||"OTP Resent Successfully!",showCloseIcon:!1,showCancelButton:!1,showConfirmButton:!1,autoClose:3,onClose:ea})):es({type:"error",title:"Error",subText:e.data.msg||"Unable to resend OTP. Please try again.",showCloseIcon:!1,showCancelButton:!1,showConfirmButton:!1,autoClose:3,onClose:ea})}catch(t){es({type:"error",title:"API Error",subText:"Unable to resend OTP. Please try again later.",showCloseIcon:!1,showCancelButton:!1,showConfirmButton:!1,autoClose:3,onClose:ea})}},ei=(e,t)=>{let{value:s}=e.target;if(/^\d?$/.test(s)){let a=[...Y];a[t]=s,G(a),s&&t<Y.length-1&&document.getElementById("otp-input-".concat(t+1)).focus()}},ec=async()=>{let e=Y.join("");try{let t=await ep.post("/login/verifyMobileOtp",{otp:e,phone_no:$});1===t.data.status?(V(!1),G(Array(6).fill("")),es({type:"success",title:"Success",subText:t.data.msg||"OTP Verified Successfully!",showCloseIcon:!1,showCancelButton:!1,showConfirmButton:!1,autoClose:3,onClose:ea}),eN()):es({type:"error",title:"Error",subText:t.data.msg||"Invalid OTP. Please try again.",showCloseIcon:!1,showCancelButton:!1,showConfirmButton:!1,autoClose:3,onClose:ea})}catch(s){es({type:"error",title:"API Error",subText:"Unable to verify OTP. Please try again later.",showCloseIcon:!1,showCancelButton:!1,showConfirmButton:!1,autoClose:3,onClose:ea})}},ed=()=>{L(!0)},em=()=>{z(""),_(!0)},eu=e=>{let t=e.target.value.trim();z(t)},eh=()=>{"DELETE"===R&&(_(!1),z(""),setTimeout(()=>{es({type:"success",title:"Success",subText:"Your account deletion request has been submitted. Your account will be permanently deleted within 24 hours. If you have any questions, please contact our support team.",showCloseIcon:!1,showCancelButton:!1,showConfirmButton:!1,autoClose:8,onClose:()=>{q(!1),N(),window.location.href="/"}})},300))},{fetchCartCount:ex}=(0,r.useContext)(o.CartContext),ef=()=>{N(),L(!1),window.location.href="/"},ep=(0,i.b)(),[eg,eb]=(0,r.useState)([]),[ey,eA]=(0,r.useState)(!0),[ew,ej]=(0,r.useState)(null),{jboId:eC}=(0,x.useJobId)(),ev=async()=>{let e={user_id:null==k?void 0:k.user_id};try{let t=await ep.post("user/getUserAddress",e);t.data&&t.data.address&&(eb(t.data.address),eA(!1))}catch(r){var s;let a=(null==r?void 0:null===(s=r.response)||void 0===s?void 0:s.data)?r.response.data:"";(0,f.Z)({job_id:eC,endpoint:"user/getUserAddress",payload:e,responseData:a,errorMsg:r}),eA(!1)}},eN=async()=>{let e={user_id:null==k?void 0:k.user_id};try{let t=await ep.post("login/getProfile",e);1==t.data.status&&(ej(t.data.user_details),eA(!1))}catch(s){console.Error(s),eA(!1)}};return((0,r.useEffect)(()=>{Z(),ev(),eN()},[]),ey)?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(h.Z,{})}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(w.Z,{label:"My Account"}),(0,a.jsxs)("div",{className:"w-full px-3 sm:px-4 lg:container mx-auto lg:grid lg:grid-cols-12 lg:items-start lg:gap-6 pt-4 pb-16",children:[(0,a.jsx)(j.Z,{user:c.Z,userDetails:k,goldPlanEnable:P,buySellEnable:T,websiteStatus:B,handleLogout:ed,applySiteStatus:!1,selectedPage:"/profile/User"}),(0,a.jsxs)("div",{className:"w-full lg:col-span-9 grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3 sm:gap-4 mt-6 lg:mt-0",children:[(0,a.jsx)("h1",{className:"sr-only",children:"My Profile"}),k&&(0,a.jsxs)("div",{className:"rounded-lg bg-gradient-to-r from-gray-50 to-gray-100 shadow-md p-4 sm:p-6 mb-4 sm:mb-6 transition duration-500 ease-in-out transform hover:shadow-lg",children:[(0,a.jsx)("div",{className:"mb-4 sm:mb-6",children:(0,a.jsx)("h3",{className:"font-semibold text-gray-800 text-lg sm:text-xl",children:"Personal Profile"})}),(0,a.jsxs)("div",{className:"space-y-4 sm:space-y-6",children:[(0,a.jsxs)("div",{className:"flex items-center text-gray-700 gap-2 sm:gap-4",children:[(0,a.jsx)("div",{className:"bg-gradient-to-br from-indigo-500 to-purple-600 rounded-full p-2 shadow-md flex-shrink-0",children:(0,a.jsx)(d.nf1,{className:"text-white",size:24})}),(0,a.jsx)("h3",{className:"text-base sm:text-lg font-semibold capitalize break-words",children:null==ew?void 0:e
1w.name})]}),(0,a.jsxs)("div",{className:"flex items-center text-gray-700 gap-2 sm:gap-4",children:[(0,a.jsx)("div",{className:"bg-gradient-to-br from-green-500 to-blue-600 rounded-full p-2 shadow-md flex-shrink-0",children:(0,a.jsx)(d.Dme,{className:"text-white",size:24})}),(0,a.jsx)("p",{className:"text-sm sm:text-lg break-all",children:null==ew?void 0:ew.email})]}),D&&(0,a.jsx)("div",{className:"flex items-center text-gray-700",children:(0,a.jsx)("div",{className:"w-full",children:(0,a.jsxs)("button",{onClick:W,className:"flex items-center justify-center w-full px-4 sm:px-6 py-2 sm:py-3 border-2 border-primary rounded-full shadow-md hover:shadow-lg transition-shadow duration-200 bg-white text-sm sm:text-base",children:[(0,a.jsx)(u.XEH,{className:"h-4 w-4 sm:h-5 sm:w-5 mr-2 sm:mr-3 flex-shrink-0"}),(0,a.jsx)("span",{className:"text-primary font-semibold",children:(null==ew?void 0:ew.mobile_no_verified)!=1?"Verify Mobile":"Change Mobile"})]})})}),(0,a.jsxs)("div",{className:"flex items-center text-gray-700 gap-2 sm:gap-4",children:[(0,a.jsx)("div",{className:"bg-gradient-to-br from-yellow-500 to-red-600 rounded-full p-2 shadow-md flex-shrink-0",children:(0,a.jsx)(d.Nhm,{className:"text-white",size:24})}),(0,a.jsx)("p",{className:"text-sm sm:text-lg break-all",children:null==ew?void 0:ew.phone_no})]}),S&&"null"!==S&&void 0!==S&&"undefined"!==S&&""!=S&&233==eC&&(0,a.jsxs)("div",{className:"relative flex items-center gap-2 sm:gap-4 flex-wrap",children:[(0,a.jsx)("div",{className:"bg-gradient-to-br from-[#FFD700] to-[#FF8C00] rounded-full p-2 shadow-md flex-shrink-0",children:(0,a.jsx)(m.kdR,{className:"text-white",size:24})}),(0,a.jsx)("p",{className:"text-base sm:text-lg font-semibold break-all",children:S}),(0,a.jsxs)("div",{className:"relative group ml-auto",children:[(0,a.jsx)("button",{className:"bg-gradient-to-br from-green-500 to-blue-500 hover:from-blue-500 hover:to-green-500 text-white p-2 rounded-md shadow-md flex items-center flex-shrink-0",onClick:et,children:(0,a.jsx)(d.AOF,{size:18})}),!U&&(0,a.jsx)("div",{className:"absolute bottom-full mb-2 left-1/2 transform -translate-x-1/2 bg-black text-white text-xs px-2 py-1 rounded-md shadow-md opacity-0 group-hover:opacity-100 transition-opacity duration-300 whitespace-nowrap z-10",children:"Copy Privilege ID"}),U&&(0,a.jsx)("div",{className:"absolute bottom-full mb-2 left-1/2 transform -translate-x-1/2 bg-green-600 text-white text-xs px-2 py-1 rounded-md shadow-md whitespace-nowrap z-10",children:"Copied!"})]})]})]})]}),"1"==t&&(0,a.jsxs)("div",{className:"rounded-lg bg-gradient-to-r from-red-50 to-orange-100 shadow-md p-4 sm:p-6 mb-4 sm:mb-6 transition duration-500 ease-in-out transform hover:shadow-lg border-2 border-red-200",children:[(0,a.jsx)("div",{className:"mb-4 sm:mb-6",children:(0,a.jsx)("h3",{className:"font-semibold text-red-800 text-lg sm:text-xl",children:"Delete Account"})}),(0,a.jsxs)("div",{className:"space-y-3 sm:space-y-4",children:[(0,a.jsx)("p",{className:"text-red-700 text-xs sm:text-sm",children:"Once you delete your account, there is no going back. Please be certain."}),(0,a.jsxs)("div",{className:"flex items-start text-red-700 gap-2 sm:gap-4",children:[(0,a.jsx)("div",{className:"bg-gradient-to-br from-red-500 to-orange-600 rounded-full p-2 shadow-md flex-shrink-0",children:(0,a.jsx)(m.FH3,{className:"text-white",size:24})}),(0,a.jsx)("p",{className:"text-sm sm:text-base font-semibold pt-1",children:"Permanently delete your account and all data"})]}),(0,a.jsx)("button",{onClick:em,className:"w-full mt-3 sm:mt-4 bg-red-600 hover:bg-red-700 text-white font-semibold py-2 sm:py-2 px-3 sm:px-4 roun
1ded-lg transition duration-200 ease-in-out transform hover:scale-105 text-sm sm:text-base",children:"Delete My Account"})]})]})]})]}),(0,a.jsx)(p.Z,{isOpen:M,onClose:()=>L(!1),onConfirm:ef}),(0,a.jsx)(C.Z,{open:O,handleClose:()=>{_(!1),z("")},title:"Delete Account - Warning",content:(0,a.jsxs)("div",{className:"px-2 sm:px-4",children:[(0,a.jsx)("p",{className:"text-red-600 font-semibold mb-4 text-sm sm:text-base",children:"â ï¸ This action cannot be undone!"}),(0,a.jsx)("p",{className:"text-gray-700 mb-4 text-sm sm:text-base",children:"Are you sure you want to permanently delete your account? This will:"}),(0,a.jsxs)("ul",{className:"list-disc list-inside text-gray-700 space-y-2 mb-4 text-sm sm:text-base",children:[(0,a.jsx)("li",{children:"Remove all your personal information"}),(0,a.jsx)("li",{children:"Delete your order history"}),(0,a.jsx)("li",{children:"Remove saved addresses and payment methods"}),(0,a.jsx)("li",{children:"Cancel any active subscriptions or plans"})]}),(0,a.jsxs)("p",{className:"text-gray-700 mb-4 text-sm sm:text-base",children:["To confirm, please type ",(0,a.jsx)("span",{className:"font-bold text-red-600",children:"DELETE"})," in the field below:"]}),(0,a.jsx)("input",{type:"text",placeholder:"Type DELETE",value:R,onChange:e=>eu(e),className:"w-full px-4 py-2 border-2 border-gray-300 rounded-lg focus:outline-none focus:border-red-600 transition text-sm sm:text-base"}),(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row justify-end gap-2 sm:gap-4 mt-2",children:[(0,a.jsx)("button",{onClick:()=>{_(!1),z("")},className:"px-4 py-2 bg-gray-300 text-gray-800 rounded-lg hover:bg-gray-400 transition text-sm sm:text-base order-2 sm:order-1",children:"Cancel"}),(0,a.jsx)("button",{onClick:eh,disabled:"DELETE"!==R,className:"DELETE"===R?"px-4 py-2 bg-red-600 text-white rounded-lg hover:bg-red-700 transition cursor-pointer text-sm sm:text-base order-1 sm:order-2":"px-4 py-2 bg-gray-300 text-gray-500 rounded-lg cursor-not-allowed text-sm sm:text-base order-1 sm:order-2",children:"Delete Account"})]})]})}),Q&&(0,a.jsx)(b.Z,{isOpen:Q,onClose:()=>W(!1),onSubmit:er}),H&&(0,a.jsx)("div",{onPaste:en,className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 px-4 py-4 sm:px-0",children:(0,a.jsxs)("div",{className:"bg-white rounded-lg shadow-lg w-full max-w-md p-4 sm:p-6 relative",children:[(0,a.jsx)("button",{onClick:()=>{V(!1),G(Array(6).fill(""))},className:"absolute top-3 right-3 text-red-500 focus:outline-none",children:(0,a.jsx)(u.aHS,{className:"text-lg"})}),(0,a.jsx)("h2",{className:"text-base sm:text-lg font-bold text-center",children:"Verify OTP"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-gray-600 text-center mt-1",children:"Enter the OTP sent to your mobile number."}),(0,a.jsx)("div",{className:"flex justify-center gap-1 sm:gap-2 mt-3 sm:mt-4 flex-wrap",children:Array.from({length:6}).map((e,t)=>(0,a.jsx)("input",{id:"otp-input-".concat(t),type:"text",maxLength:"1",className:"w-8 h-8 sm:w-10 sm:h-10 border border-gray-300 rounded-md text-center text-base sm:text-lg font-semibold focus:ring-2 focus:ring-primary flex-shrink-0",value:Y[t],onChange:e=>ei(e,t),onKeyDown:e=>el(e,t)},t))}),(0,a.jsx)("button",{onClick:ec,className:"w-full mt-3 sm:mt-4 bg-primary text-white p-2 rounded-md hover:bg-primary-dark transition text-sm sm:text-base",children:"Verify OTP"}),(0,a.jsxs)("div",{className:"text-center mt-3",children:[(0,a.jsx)("p",{className:"text-xs text-gray-500",children:"Didn't receive the OTP?"}),(0,a.jsx)("button",{onClick:eo,className:"mt-2 text-primary font-semibold hover:underline text-xs sm:text-sm",children:"Resend OTP"})]})]})}),(0,a.jsx)(y.Z,{isOpen:K,type:X.type,title:X.title,subText:X.subText,onConfirm:X.onConfirm,onClose:X.onClose,autoClose:X.autoClose,confirmLabel:X.confirmLabel,cancelLabel:X.cancelLabel,showConfirmButton:X.showConfirmButton,showCancelButton:X.showCancelButton,showCloseIcon:X.showCloseIcon})]})};var N=!0;t.default=v},51526:function(e,t,s){"use strict";s.d(t,{M:function(){return p}});var a=s(67294),r=s(58868);function l(){let e=(0,a.useRef)(!1);return(0,r.L)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var n=s(2074),o=s(240),i=s(96681);class c extends a.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let s=this.props.sizeRef.current;s.height=t.offsetHeight||0,s.width=t.offsetWidth||0,s.top=t.offsetTop,s.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function d({children:e,isPresent:t}){let s=(0,a.useId)(),r=(0,a.useRef)(null),l=(0,a.useRef)({width:0,height:0,top:0,left:0});return(0,a.useInsertionEffect)(()=>{let{width:e,height:a,top:n,left:o}=l.current;if(t||!r.current||!e||!a)return;r.current.dataset.motionPopId=s;let i=document.createElement("style");return document.head.appendChild(i),i.sheet&&i.sheet.insertRule(` 2 [data-motion-pop-id="${s}"] { 3 position: absolute !important; 4 width: ${e}px !important; 5 height: ${a}px !important; 6 top: ${n}px !important; 7 left: ${o}px !important; 8 } 9 `),()=>{document.head.removeChild(i)}},[t]),a.createElement(c,{isPresent:t,childRef:r,sizeRef:l},a.cloneElement(e,{ref:r}))}let m=({children:e,initial:t,isPresent:s,onExitComplete:r,custom:l,presenceAffectsLayout:n,mode:c})=>{let m=(0,i.h)(u),h=(0,a.useId)(),x=(0,a.useMemo)(()=>({id:h,initial:t,isPresent:s,custom:l,onExitComplete:e=>
9{for(let t of(m.set(e,!0),m.values()))if(!t)return;r&&r()},register:e=>(m.set(e,!1),()=>m.delete(e))}),n?void 0:[s]);return(0,a.useMemo)(()=>{m.forEach((e,t)=>m.set(t,!1))},[s]),a.useEffect(()=>{s||m.size||!r||r()},[s]),"popLayout"===c&&(e=a.createElement(d,{isPresent:s},e)),a.createElement(o.O.Provider,{value:x},e)};function u(){return new Map}var h=s(25364),x=s(45487);let f=e=>e.key||"",p=({children:e,custom:t,initial:s=!0,onExitComplete:o,exitBeforeEnter:i,presenceAffectsLayout:c=!0,mode:d="sync"})=>{var u;(0,x.k)(!i,"Replace exitBeforeEnter with mode='wait'");let p=(0,a.useContext)(h.p).forceRender||function(){let e=l(),[t,s]=(0,a.useState)(0),r=(0,a.useCallback)(()=>{e.current&&s(t+1)},[t]),o=(0,a.useCallback)(()=>n.Wi.postRender(r),[r]);return[o,t]}()[0],g=l(),b=function(e){let t=[];return a.Children.forEach(e,e=>{(0,a.isValidElement)(e)&&t.push(e)}),t}(e),y=b,A=(0,a.useRef)(new Map).current,w=(0,a.useRef)(y),j=(0,a.useRef)(new Map).current,C=(0,a.useRef)(!0);if((0,r.L)(()=>{C.current=!1,function(e,t){e.forEach(e=>{let s=f(e);t.set(s,e)})}(b,j),w.current=y}),u=()=>{C.current=!0,j.clear(),A.clear()},(0,a.useEffect)(()=>()=>u(),[]),C.current)return a.createElement(a.Fragment,null,y.map(e=>a.createElement(m,{key:f(e),isPresent:!0,initial:!!s&&void 0,presenceAffectsLayout:c,mode:d},e)));y=[...y];let v=w.current.map(f),N=b.map(f),E=v.length;for(let k=0;k<E;k++){let P=v[k];-1!==N.indexOf(P)||A.has(P)||A.set(P,void 0)}return"wait"===d&&A.size&&(y=[]),A.forEach((e,s)=>{if(-1!==N.indexOf(s))return;let r=j.get(s);if(!r)return;let l=v.indexOf(s),n=e;if(!n){let i=()=>{A.delete(s);let e=Array.from(j.keys()).filter(e=>!N.includes(e));if(e.forEach(e=>j.delete(e)),w.current=b.filter(t=>{let a=f(t);return a===s||e.includes(a)}),!A.size){if(!1===g.current)return;p(),o&&o()}};n=a.createElement(m,{key:f(r),isPresent:!1,onExitComplete:i,custom:t,presenceAffectsLayout:c,mode:d},r),A.set(s,n)}y.splice(l,0,n)}),y=y.map(e=>{let t=e.key;return A.has(t)?e:a.createElement(m,{key:f(e),isPresent:!0,presenceAffectsLayout:c,mode:d},e)}),a.createElement(a.Fragment,null,A.size?y:y.map(e=>(0,a.cloneElement)(e)))}}},function(e){e.O(0,[4617,5445,1228,7066,3495,5675,1664,733,9395,7681,6664,4300,5685,17,2940,5271,9774,2888,179],function(){return e(e.s=38688)}),_N_E=e.O()}]);
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.