"use strict";exports.id=9366,exports.ids=[9366],exports.modules={59366:(e,t,l)=>{l.a(e,async(e,s)=>{try{l.r(t),l.d(t,{default:()=>CardDeleteView});var a=l(20997),n=l(53168),i=l(45009),r=l(65700),d=e([r]);function CardDeleteView(){let{data:{card_id:e}}=(0,i.X9)(),{closeModal:t}=(0,i.SO)(),{deleteCard:l,isLoading:s}=(0,r.Li)();return a.jsx(n.Z,{onCancel:t,onDelete:function(){e&&l({id:e})},deleteBtnLoading:s})}r=(d.then?(await d)():d)[0],s()}catch(e){s(e)}})},53168:(e,t,l)=>{l.d(t,{Z:()=>confirmation});var s=l(20997);let TrashIcon=e=>s.jsx("svg",{fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",...e,children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.4,d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})});var a=l(60802),n=l(11377),i=l(59003),r=l.n(i);let confirmation=({onCancel:e,onDelete:t,icon:l,title:i="text-delete",description:d="text-card-delete-confirm",cancelBtnText:c="text-cancel",deleteBtnText:o="text-delete",cancelBtnClassName:x,deleteBtnClassName:m,cancelBtnLoading:h,deleteBtnLoading:u})=>{let{t:f}=(0,n.useTranslation)("common");return s.jsx("div",{className:"flex h-full min-h-screen w-screen flex-col justify-center bg-light p-7 text-left dark:bg-dark-250 xs:h-auto xs:min-h-0 sm:w-96 md:rounded-xl",children:s.jsx("div",{className:"h-full w-full text-center",children:(0,s.jsxs)("div",{className:"flex h-full flex-col justify-between",children:[s.jsx("span",{className:"m-auto mt-4 text-brand",children:l||s.jsx(TrashIcon,{className:"h-14 w-14"})}),s.jsx("p",{className:"mt-4 mb-1 text-xl font-bold text-black dark:text-light",children:f(i)}),s.jsx("p",{className:"mb-1 px-6 py-2 leading-relaxed",children:f(d)}),(0,s.jsxs)("div",{className:"mt-7 flex w-full items-center justify-between space-x-4 rtl:space-x-reverse",children:[s.jsx("div",{className:"w-1/2",children:s.jsx(a.Z,{onClick:e,isLoading:h,disabled:h,className:r()("w-full",x),children:f(c)})}),s.jsx("div",{className:"w-1/2",children:s.jsx(a.Z,{onClick:t,isLoading:u,disabled:u,className:r()("w-full rounded bg-red-600 py-2 px-4 text-center text-base font-semibold text-light shadow-md transition duration-200 ease-in hover:bg-red-700 focus:bg-red-700 focus:outline-none",m),children:f(o)})})]})]})})})}}};