module.exports=[596221,a=>{"use strict";let b=(0,a.i(170106).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);a.s(["Loader2",0,b],596221)},669520,a=>{"use strict";let b=(0,a.i(170106).default)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);a.s(["RefreshCw",0,b],669520)},870729,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(973549),e=a.i(759726),f=a.i(104720),g=a.i(660246),h=a.i(790166),i=a.i(267900),j=a.i(533441),k=a.i(596221),l=a.i(669520),m=a.i(238246);let n={personal:(0,b.jsx)(f.FileText,{className:"h-6 w-6"}),family:(0,b.jsx)(g.Users,{className:"h-6 w-6"}),financial:(0,b.jsx)(h.DollarSign,{className:"h-6 w-6"}),trade:(0,b.jsx)(i.Building2,{className:"h-6 w-6"})},o={personal:"ব্যক্তিগত সনদ",family:"পারিবারিক সনদ",financial:"আয় সংক্রান্ত সনদ",trade:"বাণিজ্যিক"};a.s(["default",0,function(){let{data:a,isLoading:f,refetch:g}=(0,e.useGetSonodTypesQuery)(),[h,i]=(0,c.useState)(!1),p=async()=>{i(!0),await g(),setTimeout(()=>i(!1),500)},q=(a?.data?.sonodTypes||[]).reduce((a,b)=>(a[b.category]||(a[b.category]=[]),a[b.category].push(b),a),{});return f?(0,b.jsx)(d.default,{children:(0,b.jsx)("div",{className:"flex min-h-[50vh] items-center justify-center",children:(0,b.jsxs)("div",{className:"text-center",children:[(0,b.jsx)(k.Loader2,{className:"mx-auto mb-3 h-8 w-8 animate-spin text-primary"}),(0,b.jsx)("p",{className:"text-gray-500 font-bangla",children:"লোড হচ্ছে..."})]})})}):(0,b.jsx)(d.default,{children:(0,b.jsxs)("div",{className:"space-y-6 px-4 py-6",children:[(0,b.jsxs)("div",{className:"flex items-center justify-between",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("h1",{className:"text-xl font-bold text-gray-900 font-bangla",children:"সনদের আবেদন"}),(0,b.jsx)("p",{className:"mt-1 text-sm text-gray-500 font-bangla",children:"আপনার প্রয়োজনীয় সনদের ধরন নির্বাচন করুন"})]}),(0,b.jsx)("button",{onClick:p,disabled:h,className:"rounded-lg bg-white p-2 text-gray-500 shadow-sm hover:text-primary disabled:opacity-50",children:(0,b.jsx)(l.RefreshCw,{className:`h-5 w-5 ${h?"animate-spin":""}`})})]}),(0,b.jsx)("div",{className:"rounded-xl bg-primary/10 p-4",children:(0,b.jsxs)("div",{className:"flex items-center gap-3",children:[(0,b.jsx)("div",{className:"rounded-full bg-primary/20 p-2",children:(0,b.jsx)(j.Check,{className:"h-5 w-5 text-primary"})}),(0,b.jsxs)("div",{children:[(0,b.jsx)("p",{className:"text-sm font-medium text-gray-700 font-bangla",children:"ফি কাঠামো: প্ল্যাটফর্ম ফি + অফিস ফি"}),(0,b.jsx)("p",{className:"text-xs text-gray-500",children:"মোট ফি স্বয়ংক্রিয়ভাবে আপনার ব্যালেন্স থেকে কর্তন করা হবে"})]})]})}),Object.entries(q).map(([a,c])=>(0,b.jsxs)("div",{children:[(0,b.jsxs)("div",{className:"mb-3 flex items-center gap-2",children:[n[a],(0,b.jsx)("h2",{className:"text-lg font-semibold text-gray-900 font-bangla",children:o[a]||a})]}),(0,b.jsx)("div",{className:"grid gap-3 sm:grid-cols-2 lg:grid-cols-3",children:c.map(a=>(0,b.jsx)(m.default,{href:`/nagorik/apply/${a.slug}`,className:"group rounded-xl border border-gray-200 bg-white p-4 shadow-sm transition-all hover:border-primary hover:shadow-md",children:(0,b.jsxs)("div",{className:"flex items-start justify-between",children:[(0,b.jsxs)("div",{className:"flex-1",children:[(0,b.jsx)("h3",{className:"text-base font-semibold text-gray-900 font-bangla group-hover:text-primary",children:a.nameBn}),(0,b.jsx)("p",{className:"mt-1 text-xs text-gray-500",children:a.nameEn}),(0,b.jsxs)("div",{className:"mt-3 flex items-center gap-2 text-sm",children:[(0,b.jsx)("span",{className:"text-gray-500 font-bangla",children:"ফি:"}),(0,b.jsxs)("span",{className:"font-medium text-gray-700",children:[a.totalFee," টাকা"]}),(0,b.jsxs)("span",{className:"text-xs text-gray-400",children:["(প্ল্যাটফর্ম: ",a.platformFee," + অফিস: ",a.officeFee,")"]})]})]}),(0,b.jsx)("div",{className:"rounded-lg bg-primary/10 p-2 text-primary group-hover:bg-primary group-hover:text-white",children:(0,b.jsx)(j.Check,{className:"h-5 w-5"})})]})},a.slug))})]},a))]})})}])}];

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