(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,60920,t=>{"use strict";t.s(["default",()=>n],60920);var i=t.i(43476),e=t.i(46932),a=t.i(40141);function o(t){return(0,a.GenIcon)({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M464 720a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"},child:[]}]})(t)}let n=t=>{let{Arabic:a,message:n,onConfirm:l,onCancel:s,children:c}=t;return(0,i.jsx)(e.motion.div,{className:"fixed inset-0 flex items-center justify-center bg-black/40 z-50 backdrop-blur-sm",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},onClick:s,children:(0,i.jsxs)(e.motion.div,{className:"bg-white rounded-2xl shadow-2xl p-8 w-[90%] max-w-md text-center relative overflow-hidden",initial:{scale:.8,opacity:0,y:30},animate:{scale:1,opacity:1,y:0},exit:{scale:.8,opacity:0,y:30},transition:{duration:.4,type:"spring",stiffness:120,damping:15},onClick:t=>t.stopPropagation(),children:[(0,i.jsx)(e.motion.div,{className:"flex items-center justify-center mb-6",initial:{scale:0},animate:{scale:[0,1.2,1],rotate:[0,10,0]},transition:{duration:.6},children:(0,i.jsx)(o,{className:"text-yellow-500 drop-shadow-md",size:80})}),(0,i.jsx)(e.motion.p,{className:"text-xl font-medium text-gray-800 mb-6",initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.2,duration:.4},children:n}),c||(0,i.jsxs)("div",{className:"flex justify-center gap-4",children:[l&&(0,i.jsx)(e.motion.button,{onClick:l,className:"px-6 py-3 rounded-lg bg-red-600 text-white font-medium shadow-md hover:bg-red-700 transition-all",whileHover:{scale:1.05},whileTap:{scale:.95},children:a?"تأكيد":"Confirm"}),s&&(0,i.jsx)(e.motion.button,{onClick:s,className:"px-6 py-3 rounded-lg bg-gray-200 text-gray-700 font-medium shadow-md hover:bg-gray-300 transition-all",whileHover:{scale:1.05},whileTap:{scale:.95},children:a?"إلغاء":"Cancel"})]}),(0,i.jsx)(e.motion.div,{className:"absolute -bottom-10 -right-10 w-40 h-40 bg-yellow-100 rounded-full opacity-30 blur-2xl",animate:{scale:[1,1.2,1],opacity:[.2,.4,.2]},transition:{repeat:1/0,duration:3}})]})})}}]);