module.exports=[84583,a=>{"use strict";a.s(["default",()=>c]);var b=a.i(87924);let c=({text:a,onClick:c,className:d,type:e="button",disabled:f=!1})=>(0,b.jsx)("button",{type:e,onClick:c,disabled:f,className:`w-44 h-14 text-lg rounded-xl cursor-pointer transition-all duration-200 ${d} ${f?"opacity-50 cursor-not-allowed":""}`,children:a})},11240,88322,a=>{"use strict";a.s(["default",()=>c],11240);var b=a.i(87924);let c=({icon:a,text:c,color:d="text-red-600"})=>(0,b.jsxs)("div",{className:`flex items-center gap-2 text-xl ${d}`,children:[a&&(0,b.jsx)(a,{size:25}),(0,b.jsx)("p",{children:c})]});a.s(["default",()=>d],88322);let d=({title:a,message:c})=>(0,b.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,b.jsx)("p",{className:"font-semibold",children:a}),(0,b.jsx)("p",{children:c})]})},83364,a=>{"use strict";a.s(["default",()=>n],83364);var b=a.i(87924),c=a.i(72131),d=a.i(11240),e=a.i(88322),f=a.i(84583),g=a.i(39895),h=a.i(27348),i=a.i(46271),j=a.i(71987),k=a.i(46964),l=a.i(9610);let m=({onCancel:a})=>{let c=(0,l.useTranslations)("deleteAccount"),{mutate:d,isPending:e}=(0,k.useDeleteMyAccount)();return(0,b.jsx)("div",{className:"fixed inset-0 bg-black/30 z-50 flex items-center justify-center",children:(0,b.jsxs)(i.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,b.jsx)("button",{onClick:a,className:"absolute top-4 left-4 text-gray-400 hover:text-gray-600",children:(0,b.jsx)(h.FiX,{size:22})}),(0,b.jsx)("div",{className:"flex justify-center mb-6 relative",children:(0,b.jsx)(j.default,{src:"/icons/profile-delete.png",alt:"delete-icon",width:90,height:90})}),(0,b.jsx)("h2",{className:"text-gray-700 text-lg font-semibold mb-2",children:c("popupTitle")}),(0,b.jsx)("p",{className:"text-gray-500 text-sm mb-10 leading-relaxed",children:c("popupMessage")}),(0,b.jsxs)("div",{className:"flex justify-between gap-3",children:[(0,b.jsx)("button",{onClick:a,className:"w-1/2 py-3 rounded-lg bg-[#E4EBF7] text-[#1F3C66] font-medium hover:bg-[#d6e3f8] transition",children:c("cancel")}),(0,b.jsx)("button",{onClick:()=>{d()},disabled:e,className:`w-1/2 py-3 rounded-lg text-white font-medium transition ${e?"bg-gray-400 cursor-not-allowed":"bg-[#1F3C66] hover:bg-[#162b4c]"}`,children:c(e?"deleting":"confirm")})]})]})})},n=()=>{let a=(0,l.useTranslations)("deleteAccount"),[h,j]=(0,c.useState)(!1);return(0,b.jsxs)(i.motion.div,{initial:{opacity:0,y:15},animate:{opacity:1,y:0},transition:{duration:.5},children:[(0,b.jsx)(d.default,{icon:g.LuUserRoundCheck,text:a("title"),color:"text-red-600"}),(0,b.jsx)("br",{}),(0,b.jsx)(e.default,{title:a("title"),message:a("message")}),(0,b.jsxs)("div",{className:"w-full flex mt-5 justify-end gap-5",children:[(0,b.jsx)(f.default,{text:a("delete"),className:"bg-[#c71a1a] text-white hover:bg-[#643535]",onClick:()=>j(!0)}),(0,b.jsx)(f.default,{text:a("cancel"),className:"bg-[#F9EBEB] text-red-600 hover:bg-red-200",onClick:()=>console.log("Cancel clicked")})]}),h&&(0,b.jsx)(m,{onConfirm:()=>{j(!1),console.log("Account deleted")},onCancel:()=>j(!1)})]})}}];

//# sourceMappingURL=src_af9e9376._.js.map