(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,33979,e=>{"use strict";e.s(["default",()=>l]);var t=e.i(43476);let l=e=>{let{text:l,onClick:s,className:i,type:a="button",disabled:n=!1}=e;return(0,t.jsx)("button",{type:a,onClick:s,disabled:n,className:"w-44 h-14 text-lg rounded-xl cursor-pointer transition-all duration-200 ".concat(i," ").concat(n?"opacity-50 cursor-not-allowed":""),children:l})}},82733,32180,e=>{"use strict";e.s(["default",()=>l],82733);var t=e.i(43476);let l=e=>{let{icon:l,text:s,color:i="text-red-600"}=e;return(0,t.jsxs)("div",{className:"flex items-center gap-2 text-xl ".concat(i),children:[l&&(0,t.jsx)(l,{size:25}),(0,t.jsx)("p",{children:s})]})};e.s(["default",()=>s],32180);let s=e=>{let{title:l,message:s}=e;return(0,t.jsxs)("div",{className:"w-full h-auto text-lg text-gray-700 py-5 rounded-xl bg-gray-50 flex justify-center items-center flex-col gap-5",children:[(0,t.jsx)("p",{className:"font-semibold",children:l}),(0,t.jsx)("p",{children:s})]})}},34262,e=>{"use strict";e.s(["default",()=>m],34262);var t=e.i(43476),l=e.i(71645),s=e.i(82733),i=e.i(32180),a=e.i(33979),n=e.i(53070),c=e.i(92199),o=e.i(46932),r=e.i(57688),d=e.i(67696),x=e.i(94245);let u=e=>{let{onCancel:l}=e,s=(0,x.useTranslations)("deleteAccount"),{mutate:i,isPending:a}=(0,d.useDeleteMyAccount)();return(0,t.jsx)("div",{className:"fixed inset-0 bg-black/30 z-50 flex items-center justify-center",children:(0,t.jsxs)(o.motion.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{duration:.3},className:"relative bg-white rounded-3xl w-[95%] max-w-xl shadow-lg p-10 text-center min-h-[380px]",children:[(0,t.jsx)("button",{onClick:l,className:"absolute top-4 left-4 text-gray-400 hover:text-gray-600",children:(0,t.jsx)(c.FiX,{size:22})}),(0,t.jsx)("div",{className:"flex justify-center mb-6 relative",children:(0,t.jsx)(r.default,{src:"/icons/profile-delete.png",alt:"delete-icon",width:90,height:90})}),(0,t.jsx)("h2",{className:"text-gray-700 text-lg font-semibold mb-2",children:s("popupTitle")}),(0,t.jsx)("p",{className:"text-gray-500 text-sm mb-10 leading-relaxed",children:s("popupMessage")}),(0,t.jsxs)("div",{className:"flex justify-between gap-3",children:[(0,t.jsx)("button",{onClick:l,className:"w-1/2 py-3 rounded-lg bg-[#E4EBF7] text-[#1F3C66] font-medium hover:bg-[#d6e3f8] transition",children:s("cancel")}),(0,t.jsx)("button",{onClick:()=>{i()},disabled:a,className:"w-1/2 py-3 rounded-lg text-white font-medium transition ".concat(a?"bg-gray-400 cursor-not-allowed":"bg-[#1F3C66] hover:bg-[#162b4c]"),children:s(a?"deleting":"confirm")})]})]})})},m=()=>{let e=(0,x.useTranslations)("deleteAccount"),[c,r]=(0,l.useState)(!1);return(0,t.jsxs)(o.motion.div,{initial:{opacity:0,y:15},animate:{opacity:1,y:0},transition:{duration:.5},children:[(0,t.jsx)(s.default,{icon:n.LuUserRoundCheck,text:e("title"),color:"text-red-600"}),(0,t.jsx)("br",{}),(0,t.jsx)(i.default,{title:e("title"),message:e("message")}),(0,t.jsxs)("div",{className:"w-full flex mt-5 justify-end gap-5",children:[(0,t.jsx)(a.default,{text:e("delete"),className:"bg-[#c71a1a] text-white hover:bg-[#643535]",onClick:()=>r(!0)}),(0,t.jsx)(a.default,{text:e("cancel"),className:"bg-[#F9EBEB] text-red-600 hover:bg-red-200",onClick:()=>console.log("Cancel clicked")})]}),c&&(0,t.jsx)(u,{onConfirm:()=>{r(!1),console.log("Account deleted")},onCancel:()=>r(!1)})]})}}]);