1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3632],{84620:function(e,t,a){a.d(t,{K$:function(){return o},Kf:function(){return x},ZP:function(){return g}});var n=a(85893),r=a(68398),l=a(45551),s=a(1801),i=a(25675),d=a.n(i),c=a(67294);let o={teal:"from-[#1DE9CF] via-[#02A994] to-[#01594E]",navy:"from-[#4A6FC0] via-[#1F3A73] to-[#0B1733]",purple:"from-[#A780FF] via-[#6A3FD1] to-[#2E1470]",rose:"from-[#FF8FAB] via-[#E0456C] to-[#7E1535]",orange:"from-[#FFC06E] via-[#F57F17] to-[#8F3F00]",graphite:"from-[#6B7482] via-[#343B46] to-[#101318]",gold:"from-[#F0D58C] via-[#C49A3A] to-[#6B4D0E]"},x={teal:"ÙÛØ±ÙزÙâØ§Û",navy:"سرÙ
ÙâØ§Û",purple:"بÙÙØ´",rose:"ØµÙØ±ØªÛ",orange:"ÙØ§Ø±ÙجÛ",graphite:"Ø¯ÙØ¯Û",gold:"Ø·ÙØ§ÛÛ"};async function m(e){try{return await navigator.clipboard.writeText(e),!0}catch{try{let t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.select();let a=document.execCommand("copy");return document.body.removeChild(t),a}catch{return!1}}}function u(e){let{value:t,label:a,onDark:s=!1}=e,[i,d]=(0,c.useState)(!1);return(0,n.jsx)("button",{type:"button","aria-label":`Ú©Ù¾Û ${a}`,onClick:async e=>{e.stopPropagation(),await m(t)&&(d(!0),setTimeout(()=>d(!1),1600),l.Z.message([{type:r.L.SUCCESS,title:`${a} Ú©Ù¾Û Ø´Ø¯`}]))},className:`shrink-0 w-36 h-36 rounded-10 flex items-center justify-center transition ${s?"bg-white/15 hover:bg-white/25 text-white":i?"bg-[#03D6BB1F] text-primary-main":"bg-gray-F0F0F0 hover:bg-gray-E5E5E6 text-black"}`,children:(0,n.jsx)("i",{className:`${i?"icon-Tick":"icon-Copy"} text-20`})})}function p(e){let{label:t,display:a,value:r,ltr:l=!0}=e;return(0,n.jsxs)("div",{className:"flex items-center justify-between gap-x-12 px-14 py-10",children:[(0,n.jsxs)("div",{className:"min-w-0",children:[(0,n.jsx)("p",{className:"text-10 leading-17 text-gray-616E7C",children:t}),(0,n.jsx)("p",{dir:l?"ltr":void 0,className:`text-14 leading-24 text-black truncate text-right ${l?"font-m-en":"font-m"}`,children:a})]}),(0,n.jsx)(u,{value:r,label:t})]})}function g(e){var t;let{card:a,showDetails:r=!0}=e,l=o[a.theme]??o.teal,i=(null===(t=a.bank_name)||void 0===t?void 0:t.trim())||(0,s.w$)(a.card_number)||"کارت باÙÚ©Û",c=(a.card_number??"").replace(/\D/g,""),x=(a.shaba??"").replace(/\D/g,"");return(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{className:`relative overflow-hidden w-full aspect-[1.586/1] rounded-20 bg-gradient-to-br ${l} text-white p-20 flex flex-col shadow-[0_16px_32px_-14px_rgba(24,39,58,0.55)]`,children:[(0,n.jsx)("span",{"aria-hidden":!0,className:"absolute -top-[70px] -left-[50px] w-[190px] h-[190px] rounded-full bg-white/10"}),(0,n.jsx)("span",{"aria-hidden":!0,className:"absolute -bottom-[90px] -right-[40px] w-[220px] h-[220px] rounded-full bg-black/10"}),(0,n.jsx)("span",{"aria-hidden":!0,className:"absolute inset-0 bg-[url('/assets/Wallet-Effect.svg')] bg-cover bg-no-repeat opacity-30"}),(0,n.jsxs)("div",{className:"relative flex items-start justify-between gap-x-12",children:[(0,n.jsx)("p",{className:"text-16 leading-28 font-m drop-shadow-[0px_2px_4px_rgba(0,0,0,0.2)] truncate",children:i}),(0,n.jsx)(d(),{src:"/assets/logos/Logo-white-landscape.svg",width:80,height:19,alt:"",className:"opacity-90 shrink-0 mt-4",style:{height:"auto"}})]}),(0,n.jsxs)("div",{className:"relative mt-auto",children:[(0,n.jsx)("span",{"aria-hidden":!0,className:"block w-[38px] h-[28px] rounded-6 bg-gradient-to-br from-[#FBEFC4] via-[#E2C271] to-[#B08A35] mb-12 shadow-[inset_0_0_0_1px_rgba(0,0,0,0.12)]"}),c?(0,n.jsxs)("div",{className:"flex items-center justify-between gap-x-8",children:[(0,n.jsx)(u,{value:c,label:"Ø´Ù
ار٠کارت",onDark:!0}),(0,n.jsx)("span",{dir:"ltr",className:"font-b-en text-20 md:text-[22px] leading-32 tracking-[0.06em] whitespace-nowrap drop-shadow-[0px_2px_4px_rgba(0,0,0,0.25)]",children:(0,s.YC)(c)})]}):x?(0,n.jsx)("p",{dir:"ltr",className:"font-m-en text-14 leading-24 text-right drop-shadow-[0px_2px_4px_rgba(0,0,0,0.25)]",children:(0,s.Lm)(x)}):a.account_number?(0,n.jsx)("p",{dir:"ltr",className:"font-m-en text-16 leading-28 text-right",children:a.account_number}):null,(0,n.jsx)("div",{className:"flex items-end justify-between mt-8",children:(0,n.jsxs)("div",{className:"min-w-0",children:[(0,n.jsx)("p",{className:"text-10 leading-17 opacity-80",children:"Ø¨Ù ÙØ§Ù
"}),(0,n.jsx)("p",{className:"text-14 leading-24 font-m truncate drop-shadow-[0px_2px_4px_rgba(0,0,0,0.2)]",children:a.owner_name})]})})]})]}),r&&(0,n.jsxs)("div",{className:"mt-12 rounded-16 border-1 border-solid border-gray-E5E5E6 divide-y divide-gray-E5E5E6 bg-white",children:[!!c&&(0,n.jsx)(p,{label:"Ø´Ù
ار٠کارت",display:(0,s.YC)(c),value:c}),!!a.account_number&&(0,n.jsx)(p,{label:"Ø´Ù
Ø§Ø±Ù ØØ³Ø§Ø¨",display:a.account_number,value:a.account_number}),!!x&&(0,n.jsx)(p,{label:"Ø´Ù
ار٠شبا",display:(0,s.Lm)(x),value:`IR${x}`}),(0,n.jsx)(p,{label:"ØµØ§ØØ¨ ØØ³Ø§Ø¨",display:a.owner_name,value:a.owner_name,ltr:!1})]})]})}},43632:function(e,t,a){a.d(t,{HH:function(){return b},ZP:function(){return f},iG:function(){return h},ru:function(){return p}});var n=a(85893),r=a(56286),l=a(47300),s=a(68398),i=a(45551),d=a(1801),c=a(48228),o=a(36492),x=a(67294),m=a(84620);let u=(e,t)=>
1e.kind===t.kind&&("card"===e.kind||e.id===t.id),p=e=>`${Math.round(e).toLocaleString("en-US")} تÙÙ
اÙ`;function g(e){let{text:t,phone:a,amount:r,code:l}=e,s=t.split(/(\{phone\}|\{amount\}|\{code\})/g),i=null==a?void 0:a.replace(/[^\d+]/g,"");return(0,n.jsxs)("div",{className:"rounded-16 bg-[#FFF8EB] border-1 border-solid border-[#FFE2A8] p-14",children:[(0,n.jsxs)("div",{className:"flex gap-x-10",children:[(0,n.jsx)("i",{className:"icon-Information text-20 text-[#B26A00] shrink-0"}),(0,n.jsx)("p",{className:"text-12 leading-22 text-[#5C3B00]",children:s.map((e,t)=>"{phone}"===e?a?(0,n.jsx)("b",{dir:"ltr",className:"font-b inline-block",children:a},t):null:"{amount}"===e?r?(0,n.jsx)("b",{className:"font-b",children:p(r)},t):null:"{code}"===e?l?(0,n.jsx)("b",{dir:"ltr",className:"font-b inline-block",children:l},t):null:(0,n.jsx)(x.Fragment,{children:e},t))})]}),!!i&&(0,n.jsxs)("a",{href:`sms:${i}`,className:"mt-12 flex md:hidden items-center justify-center gap-x-8 rounded-10 bg-white border-1 border-solid border-[#FFE2A8] py-10 text-14 leading-24 font-m text-[#8A5A00]",children:[(0,n.jsx)("i",{className:"icon-SendMessage text-20"}),"Ø§Ø±Ø³Ø§Ù Ù¾ÛØ§Ù
Ú© ب٠",(0,n.jsx)("span",{dir:"ltr",children:a})]})]})}function h(e){let{methods:t,amount:a,code:r,onGateway:s,gatewayLoading:i,gatewayDisabled:c,payLabel:o,cardFooter:h}=e,{gateways:b,cards:f}=t,j=(0,x.useMemo)(()=>[...b.map(e=>({kind:"gateway",id:e.id})),...f.length?[{kind:"card"}]:[]],[b,f]),[y,v]=(0,x.useState)(j[0]??null),[N,w]=(0,x.useState)(0);if((0,x.useEffect)(()=>{v(e=>e&&j.some(t=>u(t,e))?e:j[0]??null)},[j]),(0,x.useEffect)(()=>{N>=f.length&&w(0)},[f.length,N]),!j.length)return(0,n.jsxs)("div",{className:"rounded-16 border-1 border-dashed border-gray-C4CAD3 p-20 text-center",children:[(0,n.jsx)("i",{className:"icon-Pay text-32 text-gray-9B9BAA"}),(0,n.jsx)("p",{className:"mt-8 text-14 leading-24 font-m text-black",children:"Ø±ÙØ´ Ù¾Ø±Ø¯Ø§Ø®ØªÛ ÙØ¹Ø§Ù ÙÛØ³Øª"}),(0,n.jsx)("p",{className:"mt-4 text-12 leading-21 text-gray-616E7C",children:"در ØØ§Ù ØØ§Ø¶Ø± اÙ
کا٠پرداخت ÙØ¹Ø§Ù ÙÛØ³Øª. ÙØ·Ùا٠با Ù¾Ø´ØªÛØ¨Ø§ÙÛ ØªÙ
اس Ø¨Ú¯ÛØ±Ûد."})]});let F=(null==y?void 0:y.kind)==="gateway"?b.find(e=>e.id===y.id):void 0,k=f[N]??f[0];return(0,n.jsxs)("div",{className:"flex flex-col gap-y-16",children:[j.length>1&&(0,n.jsxs)("div",{role:"radiogroup","aria-label":"Ø±ÙØ´ پرداخت",className:"flex flex-col gap-y-8",children:[(0,n.jsx)("p",{className:"text-14 leading-24 font-m text-zilgara mb-4",children:"Ø±ÙØ´ پرداخت را Ø§ÙØªØ®Ø§Ø¨ Ú©ÙÛØ¯"}),j.map(e=>{let t=!!y&&u(e,y),a="gateway"===e.kind?b.find(t=>t.id===e.id):void 0;return(0,n.jsxs)("button",{type:"button",role:"radio","aria-checked":t,onClick:()=>v(e),className:`flex items-center gap-x-12 rounded-12 border-1 border-solid px-14 py-12 text-right transition ${t?"border-primary-main bg-[#03D6BB0F] shadow-[0_0_0_1px_#03D6BB]":"border-gray-C4CAD3 bg-white"}`,children:[(0,n.jsx)("span",{className:`w-20 h-20 rounded-full border-2 border-solid flex items-center justify-center shrink-0 ${t?"border-primary-main":"border-gray-C4CAD3"}`,children:t&&(0,n.jsx)("span",{className:"w-10 h-10 rounded-full bg-primary-main"})}),(0,n.jsx)("span",{className:`w-40 h-40 rounded-10 flex items-center justify-center shrink-0 ${a?"bg-[#E8F1FF] text-[#1B4F9C]":"bg-[#FFF4E0] text-[#B26A00]"}`,children:(0,n.jsx)("i",{className:`${a?"icon-Pay":"icon-CardBank"} text-24`})}),(0,n.jsxs)("span",{className:"flex-1 min-w-0",children:[(0,n.jsx)("span",{className:"block text-14 leading-24 font-m text-black truncate",children:a?a.title:"کارت ب٠کارت"}),(0,n.jsx)("span",{className:"block text-12 leading-20 text-gray-616E7C",children:a?"پرداخت Ø¢ÙÙØ§Û٠با تÙ
اÙ
کارتâÙØ§Û عض٠شتاب":f.length>1?`ÙØ§Ø±Ûز ب٠ÛÚ©Û Ø§Ø² ${f.length.toLocaleString("fa-IR")} ØØ³Ø§Ø¨ Ù Ø§Ø±Ø³Ø§Ù Ø±Ø³ÛØ¯`:"ÙØ§Ø±Ûز Ø¨Ù ØØ³Ø§Ø¨ Ù Ø§Ø±Ø³Ø§Ù Ø±Ø³ÛØ¯"})]})]},"gateway"===e.kind?`g${e.id}`:"card")})]}),!!F&&(0,n.jsxs)("div",{children:[1===j.length&&(0,n.jsxs)("p",{className:"mb-12 flex items-center gap-x-8 text-12 leading-21 text-gray-616E7C",children:[(0,n.jsx)("i",{className:"icon-Pay text-20 text-primary-main"}),"پرداخت Ø¢ÙÙØ§Û٠از طرÛ٠درگا٠",F.title]}),(0,n.jsx)(l.z,{isFullWidth:!0,isLoading:i,loadingText:"در ØØ§Ù Ø§ÙØªÙا٠ب٠درگاÙâ¦",disabled:c,onClick:()=>s(F.id),children:o??(a?`پرداخت ${p(a)}`:"Ø§ÙØªÙا٠ب٠درگا٠پرداخت")})]}),(null==y?void 0:y.kind)==="card"&&!!k&&(0,n.jsxs)("div",{className:"flex flex-col gap-y-12",children:[f.length>1&&(0,n.jsx)("div",{className:"flex gap-x-8 overflow-x-auto pb-4",role:"tablist","aria-label":"ØØ³Ø§Ø¨ Ù
ÙØµØ¯",children:f.map((e,t)=>(0,n.jsx)("button",{type:"button",role:"tab","aria-selected":t===N,onClick:()=>w(t),className:`shrink-0 rounded-100 px-14 py-6 text-12 leading-20 border-1 border-solid transition ${t===N?"bg-black text-white border-black":"bg-white text-black border-gray-C4CAD3"}`,children:e.bank_name||(0,d.w$)(e.card_number)||`ØØ³Ø§Ø¨ ${(t+1).toLocaleStr
1ing("fa-IR")}`},e.id))}),!!a&&(0,n.jsxs)("div",{className:"flex items-center justify-between rounded-12 bg-gray-F0F0F0 px-14 py-10",children:[(0,n.jsx)("span",{className:"text-12 leading-21 text-gray-616E7C",children:"Ù
Ø¨ÙØº ÙØ§Ø¨Ù ÙØ§Ø±Ûز"}),(0,n.jsx)("span",{className:"text-16 leading-28 font-m text-black",children:p(a)})]}),(0,n.jsx)(m.ZP,{card:k}),!!t.card_text&&(0,n.jsx)(g,{text:t.card_text,phone:t.receipt_phone,amount:a,code:r}),null==h?void 0:h(k)]})]})}function b(){return(0,c.D)(r.Vv,{onSuccess:e=>window.location.assign(e),onError:e=>i.Z.message([{type:s.L.ERROR,title:e instanceof Error?e.message:s.i}])})}function f(e){let{context:t,...a}=e,{data:s,isLoading:i,isError:d,refetch:c,isFetching:x}=(0,o.a)({queryKey:["paymentMethods",t],queryFn:()=>(0,r.Q8)(t),staleTime:6e4});return i?(0,n.jsxs)("div",{className:"flex flex-col gap-y-8","aria-busy":"true",children:[(0,n.jsx)("div",{className:"h-[64px] rounded-12 bg-gray-F0F0F0 animate-pulse"}),(0,n.jsx)("div",{className:"h-[64px] rounded-12 bg-gray-F0F0F0 animate-pulse"})]}):d||!s?(0,n.jsxs)("div",{className:"rounded-16 border-1 border-solid border-gray-E5E5E6 p-20 text-center",children:[(0,n.jsx)("p",{className:"text-14 leading-24 text-black mb-12",children:"Ø±ÙØ´âÙØ§Û پرداخت Ø¨Ø§Ø±Ú¯Ø°Ø§Ø±Û ÙØ´Ø¯."}),(0,n.jsx)(l.z,{variant:"outlined",color:"black",onClick:()=>c(),isLoading:x,children:"ØªÙØ§Ø´ Ø¯ÙØ¨Ø§Ø±Ù"})]}):(0,n.jsx)(h,{methods:s,...a})}},1801:function(e,t,a){a.d(t,{Lm:function(){return s},YC:function(){return l},w$:function(){return r}});let n={603799:"باÙÚ© Ù
ÙÛ",589210:"باÙÚ© سپÙ",627961:"باÙÚ© ØµÙØ¹Øª Ù Ù
عدÙ",603770:"باÙÚ© Ú©Ø´Ø§ÙØ±Ø²Û",628023:"باÙÚ© Ù
سکÙ",627760:"پست باÙÚ©",502908:"باÙÚ© ØªÙØ³Ø¹Ù تعاÙÙ",627648:"باÙÚ© ØªÙØ³Ø¹Ù صادرات",207177:"باÙÚ© ØªÙØ³Ø¹Ù صادرات",627412:"باÙÚ© Ø§ÙØªØµØ§Ø¯ ÙÙÛÙ",622106:"باÙÚ© Ù¾Ø§Ø±Ø³ÛØ§Ù",639194:"باÙÚ© Ù¾Ø§Ø±Ø³ÛØ§Ù",627884:"باÙÚ© Ù¾Ø§Ø±Ø³ÛØ§Ù",502229:"باÙÚ© پاسارگاد",639347:"باÙÚ© پاسارگاد",627488:"باÙÚ© Ú©Ø§Ø±Ø¢ÙØ±ÛÙ",502910:"باÙÚ© Ú©Ø§Ø±Ø¢ÙØ±ÛÙ",621986:"باÙÚ© ساÙ
اÙ",639346:"باÙÚ© سÛÙØ§",639607:"باÙÚ© سرÙ
اÛÙ",636214:"باÙÚ© Ø¢ÛÙØ¯Ù",502806:"باÙÚ© Ø´ÙØ±",504706:"باÙÚ© Ø´ÙØ±",502938:"باÙÚ© دÛ",603769:"باÙÚ© صادرات",610433:"باÙÚ© Ù
ÙØª",991975:"باÙÚ© Ù
ÙØª",627353:"باÙÚ© تجارت",585983:"باÙÚ© تجارت",589463:"باÙÚ© Ø±ÙØ§Ù",505785:"باÙÚ© Ø§ÛØ±Ø§Ù زÙ
ÛÙ",636795:"باÙÚ© Ù
رکزÛ",606373:"باÙÚ© ÙØ±Ø¶âØ§ÙØØ³ÙÙ Ù
ÙØ± Ø§ÛØ±Ø§Ù",639370:"باÙÚ© Ù
ÙØ± Ø§ÙØªØµØ§Ø¯",505416:"باÙÚ© گردشگرÛ",505426:"باÙÚ© گردشگرÛ",585947:"باÙÚ© Ø®Ø§ÙØ±Ù
ÛØ§ÙÙ",628157:"Ù
Ø¤Ø³Ø³Ù Ø§Ø¹ØªØ¨Ø§Ø±Û ØªÙØ³Ø¹Ù",505801:"Ù
Ø¤Ø³Ø³Ù Ø§Ø¹ØªØ¨Ø§Ø±Û Ú©ÙØ«Ø±",507677:"Ù
Ø¤Ø³Ø³Ù Ø§Ø¹ØªØ¨Ø§Ø±Û ÙÙØ±",639599:"باÙÚ© ÙÙØ§Ù
ÛÙ",504172:"باÙÚ© ÙØ±Ø¶âØ§ÙØØ³ÙÙ Ø±Ø³Ø§ÙØª"};function r(e){let t=(e??"").replace(/\D/g,"");return t.length>=6?n[t.slice(0,6)]??null:null}function l(e){return(e??"").replace(/\D/g,"").replace(/(.{4})(?=.)/g,"$1 ")}function s(e){let t=(e??"").replace(/\D/g,"");return t?`IR${t}`.replace(/(.{4})(?=.)/g,"$1 "):""}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.