1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1220],{1220:(e,t,a)=>{a.r(t),a.d(t,{BtnPay:()=>eT});var n,l,s,i,r,o=a(54568),c=a(7620),d=a(96693),m=a(86336),u=a(60128),x=a(25150),p=a.n(x),h=a(86453),b=a(26405),y=a(39237),f=a(18853);function g(e){let{label:t,value:a,copyValue:n}=e;return(0,o.jsxs)("div",{className:"bg-base-200 flex w-full flex-col px-4 py-2",children:[(0,o.jsx)("p",{className:"text-neutral m-0 text-xs",children:t}),(0,o.jsxs)("div",{className:"flex items-center gap-2",children:[(0,o.jsx)("p",{className:"m-0 flex-1 text-lg font-semibold",children:a}),!!n&&(0,o.jsx)("button",{type:"button",onClick:()=>{navigator.permissions.query({name:"clipboard-write"}).then(e=>{("granted"===e.state||"prompt"===e.state)&&navigator.clipboard.writeText(n).then(()=>b.toast.success(u.Ru._({id:"bljNOz"})),()=>b.toast.error(u.Ru._({id:"AEGM8s"})))}).catch(()=>(0,f.Dk)(n))},children:(0,o.jsx)(y.A,{className:"h-4 w-4"})})]})]})}var v=a(15146),j=a(36386),N=a(5530);function _(e){let{children:t,show:a,onClose:n,title:l,footer:s}=e;return(0,o.jsx)(v.e,{show:a,as:c.Fragment,children:(0,o.jsxs)(j.lG,{as:"div",className:"relative z-50",onClose:n,children:[(0,o.jsx)(v._,{as:c.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,o.jsx)("div",{className:" fixed inset-0 bg-gray-500/75 transition-opacity"})}),(0,o.jsx)("div",{className:"fixed inset-0 overflow-y-auto",children:(0,o.jsx)("div",{className:"flex min-h-full items-center justify-center p-4 text-center",children:(0,o.jsx)(v._,{as:c.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:(0,o.jsxs)(j.Lj,{className:"bg-base-100 w-full transform overflow-hidden rounded-2xl text-left align-middle shadow-xl transition-all md:w-[720px]",children:[(0,o.jsx)("div",{className:"bg-base-200 flex max-h-max flex-col py-6",children:(0,o.jsx)("div",{className:"container mt-0 max-w-4xl",children:(0,o.jsxs)("div",{className:"flex items-center justify-between",children:[(0,o.jsx)(j.L3,{className:"text-custom-tertiary-content m-0 flex items-center gap-3 leading-6",children:l}),(0,o.jsxs)("button",{type:"button",className:"bg-base-200 relative flex h-8 w-8 items-center justify-center rounded-md focus:outline-hidden",onClick:()=>n(!1),children:[(0,o.jsx)("span",{className:"absolute -inset-2.5"}),(0,o.jsx)("span",{className:"sr-only",children:u.Ru._({id:"yz7wBu"})}),(0,o.jsx)(N.A,{className:"h-6 w-6","aria-hidden":"true"})]})]})})}),(0,o.jsx)("div",{className:"mt-2 px-4 py-6",children:t}),!!s&&(0,o.jsx)("div",{className:"flex justify-between px-4 py-6",children:s})]})})})})]})})}var $=a(73023);let w=e=>{let{show:t,onClose:a,order:{number:n}}=e,{data:l}=(0,$.xL)(),s=(null==l?void 0:l.website.paymentAccountData.banks)||{},i=Object.keys(s).filter(e=>k[e]),[r,d]=(0,c.useState)(s[i[0]]);if(i&&r)return(0,o.jsx)(_,{show:t,onClose:a,footer:(0,o.jsx)("button",{type:"button",onClick:a,className:"btn btn-secondary",children:u.Ru._({id:"yz7wBu"})}),title:(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("div",{children:[(0,o.jsx)("p",{className:"text-custom-tertiary-content m-0 leading-6",children:u.Ru._({id:"LrLE2V"})}),(0,o.jsx)("p",{className:"text-custom-tertiary-content m-0 text-xs",children:u.Ru._({id:"T4FyIq"})})]})}),children:(0,o.jsxs)("div",{className:"space-y-4",children:[(0,o.jsx)("p",{className:"ml-2 h-4 font-bold",children:u.Ru._({id:"LrLE2V"})}),(0,o.jsxs)(h.TabGroup,{children:[(0,o.jsx)(h.TabList,{className:"bg-base-200 flex w-full space-x-1 rounded-lg px-2 py-2",children:i.map(e=>(0,o.jsx)(h.Tab,{as:c.Fragment,children:t=>{var a;let{selected:n}=t;return(0,o.jsx)("button",{onClick:()=>d(s[e]),className:p()(n?"bg-primary text-base-100":"text-base-content","btn btn-sm flex flex-1 items-center gap-2 rounded-lg text-sm leading-5 font-medium"),children:null==(a=k[e])?void 0:a.name})}},e))}),(0,o.jsx)(h.TabPanels,{children:i.map(e=>{var t,a;return(0,o.jsxs)(h.TabPanel,{className:"mt-2 flex flex-col gap-2 lg:flex-row",children:[(0,o.jsx)(g,{label:"IBAN",value:"MN".concat(s["".concat(e,"_iban")]),copyValue:"".concat(s["".concat(e,"_iban")])}),(0,o.jsx)(g,{label:u.Ru._({id:"EYONgp"}),value:(0,f.X9)(null==(t=s[e])?void 0:t.replace(/\s/g,""),null==(a=k[e])?void 0:a.format),copyValue:r}),(0,o.jsx)(g,{label:u.Ru._({id:"I3QpvQ"}),value:s["".concat(e,"_name")],copyValue:s["".concat(e,"_name")]})]},e)})})]}),(0,o.jsx)("div",{className:p()("bg-warning-content text-neutral rounded-lg px-4 py-3 text-center text-xs"," "),children:u.Ru._({id:"GjGHti",values:{number:n}})})]})})},k={tdbm_account:{name:"Ð¥Ñдалдаа Ñ
өгжил",format:"XXX XXX XXX"},khaan_account:{name:"Хаанбанк",format:"XXXX XXX XXX"},golomt_account:{name:"ÐÐ¾Ð»Ð¾Ð¼Ñ Ð±Ð°Ð½Ðº",format:"XXXX XXX XXX"}};var T=a(99074),R=a(57639),X=a(40762),C=a(77980);function P(){let e=(0,R._)(["\n mutation orderPay($input: orderPayInput!) {\n orderPay(input: $input)\n }\n"]);return P=function(){return e},e}let F={},S=(0,X.J1)(P());var D=a(70989);function A(){let e=(0,R._)(["\n mutation toggleAdjustmentPromise($input: toggleAdjustmentPromiseInput!) {\n toggleAdjustmentPromise(input: $input) {\n ...order\n }\n }\n ","\n"]);return A=function(){return e},e}let q={},z=(0,X.J1)(A(),D.f);var M=a(51338),V=a(68132),B=a(90914);function E(e){let{url:t,method:a="POST",...n}=e;return(0,o.jsx)("form",{ref:e=>{e&&e.submit()},method:a,action:t,children:Object.entries(n).map(e=>
1{let[t,a]=e;return(0,o.jsx)("input",{type:"hidden",name:t,value:a},t)})})}var I=a(24298);function L(e){var t,a,n,l,s,i;let{show:r,onClose:c,data:d,type:m}=e;return(0,o.jsx)(_,{show:r,onClose:c,footer:(0,o.jsx)("button",{type:"button",onClick:c,className:"btn btn-secondary",children:u.Ru._({id:"yz7wBu"})}),title:(0,o.jsxs)(o.Fragment,{children:[!!(null==(t=I.D3[null==d||null==(a=d.methodData)?void 0:a.methodType])?void 0:t.src)&&(0,o.jsx)("img",{src:null==(n=I.D3[null==d||null==(l=d.methodData)?void 0:l.methodType])?void 0:n.src,alt:null==d||null==(s=d.methodData)?void 0:s.name,className:"size-9 flex-[0_0_36px] rounded"})," ",null==d||null==(i=d.methodData)?void 0:i.name]}),children:(0,o.jsx)("div",{className:"rounded-lg ".concat({success:"bg-warning-content ",error:"bg-error-content"}[m]," text-base-100 site-apteka:text-base-content px-4 py-3 text-center text-xs"),children:(null==d?void 0:d.message)==="USER_NOT_FOUND"?u.Ru._({id:"bXk1Rz"}):null==d?void 0:d.message})})}let O={src:"/_next/static/media/storepay-step1.1868e897.svg"},G={src:"/_next/static/media/storepay-step2.25ae5e3e.svg"},U={src:"/_next/static/media/storepay-step3.9ca57587.svg"},Q={src:"/_next/static/media/storepay-step4.de4a707f.svg"};var H=a(81390),J=a(17752),K=a(18439),W=a(65940),Y=a(20551),Z=a(14817);function ee(e){var t;let{show:a,onClose:n,onFinish:l,mobile:s,loading:i,total:r}=e,[c]=(0,H.mN)();return(0,o.jsx)(_,{show:a,onClose:n,footer:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("button",{type:"button",onClick:n,className:"btn btn-secondary",children:u.Ru._({id:"yz7wBu"})}),r>1e5&&(0,o.jsx)("button",{type:"button",onClick:c.submit,className:"btn btn-primary",disabled:i,children:u.Ru._({id:"ayrhum"})})]}),title:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("img",{src:null==(t=I.D3.store_pay)?void 0:t.src,className:"h-9 w-9 rounded",alt:"Storepay"}),(0,o.jsxs)("div",{children:[(0,o.jsx)("p",{className:"text-custom-tertiary-content m-0 leading-6",children:"storepay"}),(0,o.jsx)("p",{className:"text-custom-tertiary-content m-0 text-xs",children:u.Ru._({id:"lxwKPV"})})]})]}),children:(0,o.jsx)(J.lV,{form:c,className:"flex flex-col items-center gap-6",onFinish:l,initialValues:{mobile:s},children:r>1e5?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"xs:flex-col w-full flex-wrap items-center gap-2 md:flex",children:[(0,o.jsx)(et,{icon:O.src,label:u.Ru._({id:"ecUA8p"}),value:(0,Y.up)(r/4)}),(0,o.jsx)(et,{icon:G.src,label:u.Ru._({id:"pUr6Yz"}),value:(0,Y.up)(r/4)}),(0,o.jsx)(et,{icon:U.src,label:u.Ru._({id:"cgRSy6"}),value:(0,Y.up)(r/4)}),(0,o.jsx)(et,{icon:Q.src,label:u.Ru._({id:"KUlVx2"}),value:(0,Y.up)(r/4)})]}),(0,o.jsx)("p",{className:"xs:max-w-full m-0 text-center text-lg font-semibold md:max-w-[70%]",children:u.Ru._({id:"wirBFy"})}),(0,o.jsx)(K.F,{name:"mobile",autoComplete:"tel-local",className:"h-8 w-8 rounded md:h-12 md:w-12",rules:[{required:!0},{validator:(e,t)=>(0,Z.B)("+976".concat(t))?Promise.resolve():Promise.reject(Error(u.Ru._({id:"fbTIe6"})))}],inputProps:{length:8},hideLabel:!0,inputRender:W.U}),(0,o.jsx)("div",{className:"bg-warning-content text-neutral rounded-lg px-4 py-3 text-center text-xs",children:u.Ru._({id:"H4G2u2"})})]}):(0,o.jsx)("div",{className:"bg-warning-content text-neutral my-10 rounded-lg px-4 py-3 text-center text-xs",children:u.Ru._({id:"h2QcaU"})})})})}function et(e){let{icon:t,label:a,value:n}=e;return(0,o.jsxs)("div",{className:"bg-base-200 flex min-w-fit flex-1 items-center gap-3 rounded p-2",children:[(0,o.jsx)("img",{src:t,alt:"",className:"h-8 w-8 flex-[0_0_32px]"}),(0,o.jsxs)("div",{className:"flex-1 flex-col gap-0.5",children:[(0,o.jsx)("p",{className:"text-neutral m-0 text-sm font-semibold",children:a}),(0,o.jsx)("p",{className:"m-0 font-semibold",children:n})]})]})}var ea=a(14094);function en(e){var t;let{show:a,onClose:n,onFinish:l,mobile:s,loading:i,data:r}=e,[d]=(0,H.mN)(),[m,x]=(0,c.useState)(null);return(0,c.useEffect)(()=>{(null==r?void 0:r.request_id)&&(0,ea.d)("/SPOS/".concat(null==r?void 0:r.request_id),{width:250}).then(x)},[r]),(0,o.jsx)(_,{show:a,onClose:n,footer:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("button",{type:"button",onClick:n,className:"btn btn-secondary",children:u.Ru._({id:"yz7wBu"})}),(0,o.jsx)("button",{type:"button",onClick:d.submit,className:"btn btn-primary",disabled:i,children:u.Ru._({id:"ayrhum"})})]}),title:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("img",{src:null==(t=I.D3.toki)?void 0:t.src,className:"h-9 w-9 rounded",alt:"Toki"})," Toki"]}),children:(0,o.jsxs)(J.lV,{form:d,className:"flex flex-col items-center gap-4",onFinish:l,initialValues:{mobile:s},children:[(0,o.jsx)("p",{className:"m-0 text-center text-lg font-semibold",children:u.Ru._({id:"XBcWup",values:{0:"Toki"}})}),(0,o.jsx)("img",{src:m,alt:"",className:"aspect-1 w-[250px] rounded bg-white p-2"}),(0,o.jsx)("p",{className:"m-0 text-center font-semibold",children:u.Ru._({id:"BzEFor"})}),(0,o.jsx)("p",{className:"xs:max-w-full m-0 text-center text-lg font-semibold md:max-w-[70%]",children:u.Ru._({id:"K5a8Z0"})}),(0,o.jsx)(K.F,{name:"mobile",autoComplete:"tel-local",className:"size-8 rounded md:size-12",rules:[{required:!0},{validator:(e,t)=>
1(0,Z.B)("+976".concat(t))?Promise.resolve():Promise.reject(Error(u.Ru._({id:"fbTIe6"})))}],inputProps:{length:8},hideLabel:!0,inputRender:W.U})]})})}function el(e){var t;let{show:a,onClose:n,onFinish:l,mobile:s,loading:i}=e,[r]=(0,H.mN)();return(0,o.jsx)(_,{show:a,onClose:n,footer:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("button",{type:"button",onClick:n,className:"btn btn-secondary",children:u.Ru._({id:"yz7wBu"})}),(0,o.jsx)("button",{type:"button",onClick:r.submit,className:"btn btn-primary",disabled:i,children:u.Ru._({id:"ayrhum"})})]}),title:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("img",{src:null==(t=I.D3.most_tan)?void 0:t.src,className:"h-9 w-9 rounded",alt:"Most money"})," Most Money"]}),children:(0,o.jsxs)(J.lV,{form:r,className:"flex flex-col items-center gap-4",onFinish:l,initialValues:{mobile:s},children:[(0,o.jsx)("p",{className:"m-0 text-center text-lg font-semibold",children:u.Ru._({id:"mhtXdm"})}),(0,o.jsx)(K.F,{name:"mobile",autoComplete:"tel-local",label:u.Ru._({id:"ZuLy43"}),labelClassName:"font-semibold flex-1 text-center",className:"h-8 w-8 rounded md:h-12 md:w-12",rules:[{required:!0},{validator:(e,t)=>(0,Z.B)("+976".concat(t))?Promise.resolve():Promise.reject(Error(u.Ru._({id:"fbTIe6"})))}],inputProps:{length:8},disabled:!0,inputRender:W.U}),(0,o.jsx)(K.F,{name:"tancode",autoComplete:"one-time-code",label:u.Ru._({id:"be7+Tb"}),labelClassName:"font-semibold flex-1 text-center",className:"h-8 w-8 rounded md:h-12 md:w-12",rules:[{required:!0},{validator:(e,t)=>t.length<6?Promise.reject(Error(u.Ru._({id:"MsMTee"}))):Promise.resolve()}],inputRender:W.U})]})})}function es(e){var t;let{show:a,onClose:n,data:l,total:s,number:i}=e,r=(0,f.R1)(null==l||null==(t=l.account_data)?void 0:t.banks),m=ei.filter(e=>r[e.code]),[x,b]=(0,c.useState)(null);return(0,c.useEffect)(()=>{(null==l?void 0:l.qpay)&&(0,ea.d)(null==l?void 0:l.qpay,{width:250}).then(b)},[l]),(0,o.jsx)(_,{show:a,onClose:n,footer:(0,o.jsx)("button",{type:"button",onClick:n,className:"btn btn-secondary",children:u.Ru._({id:"yz7wBu"})}),title:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(d.A,{className:"h-9 w-9 rounded"}),(0,o.jsx)("p",{className:"text-custom-tertiary-content m-0 leading-6",children:u.Ru._({id:"SfKarR"})}),(0,o.jsx)("p",{className:"text-custom-tertiary-content m-0 text-xs",children:u.Ru._({id:"T4FyIq"})})]}),children:(0,o.jsxs)("div",{className:"flex flex-col items-center gap-6",children:[(0,o.jsxs)("div",{className:"xs:flex-wrap flex w-full items-start justify-center gap-4 lg:flex-nowrap",children:[(0,o.jsxs)("div",{className:"flex flex-col items-center gap-4",children:[(0,o.jsx)("p",{className:"m-0 text-lg font-semibold",children:u.Ru._({id:"XDwkfO"})}),(0,o.jsx)("img",{src:x,alt:"",className:"aspect-1 w-[250px] rounded bg-white p-2"}),(0,o.jsxs)("div",{className:"text-center",children:[(0,o.jsx)("p",{className:"text-custom-tertiary-content m-0 text-sm",children:u.Ru._({id:"yzX9ZV"})}),(0,o.jsx)("p",{className:"m-0 text-xl font-semibold",children:(0,Y.up)(s||0,"MNT")})]})]}),m.length>0&&(0,o.jsxs)("div",{className:"flex flex-1 flex-col items-center gap-4",children:[(0,o.jsx)("p",{className:"m-0 text-lg font-semibold",children:u.Ru._({id:"LrLE2V"})}),(0,o.jsxs)(h.TabGroup,{className:"w-full",children:[m.length>1&&(0,o.jsx)(h.TabList,{className:"bg-base-200 mb-2 flex w-full space-x-1 rounded-lg px-4 py-2",children:m.map((e,t)=>(0,o.jsxs)(h.Tab,{className:e=>{let{selected:t}=e;return["btn btn-sm flex flex-1 items-center gap-2 rounded-lg text-sm leading-5 font-medium",t?"btn-primary ":""].join(" ")},children:[(0,o.jsx)("img",{src:e.logo,alt:"",className:"h-6 w-6 rounded"}),e.short_label]},t))}),(0,o.jsx)(h.TabPanels,{className:"w-full",children:m.map((e,t)=>{var a,n,l;return(0,o.jsxs)(h.TabPanel,{className:"flex w-full flex-col gap-2",children:[1===m.length&&(0,o.jsx)(g,{label:u.Ru._({id:"kjrXYb"}),value:e.label}),r[e.iban]&&(0,o.jsx)(g,{label:u.Ru._({id:"2TKl1z"}),value:(0,f.X9)(r[e.iban].replace(/\s/g,""),"XXXXX XXXX XXXXXXXXXXX"),copyValue:(null==(a=r[e.iban])?void 0:a.replace(/\s/g,""))||""}),(0,o.jsx)(g,{label:u.Ru._({id:"EYONgp"}),value:(0,f.X9)(null==(n=r[e.code])?void 0:n.replace(/\s/g,""),"tdbm_account"===e.code?"XXX XXX XXX":"XX XX XX XX XX"),copyValue:String(null==(l=r[e.code])?void 0:l.replace(/\s/g,""))}),(0,o.jsx)(g,{label:u.Ru._({id:"I3QpvQ"}),value:r[e.code_label]}),(0,o.jsx)(g,{label:u.Ru._({id:"yzX9ZV"}),value:(0,Y.up)(s),copyValue:String(s)}),(0,o.jsx)(g,{label:u.Ru._({id:"lTohzz"}),value:i,copyValue:i})]},t)})})]})]})]}),(0,o.jsx)("div",{className:p()("bg-warning-content text-neutral rounded-lg px-4 py-3 text-center text-xs"," "),children:u.Ru._({id:"GjGHti",values:{number:i}})})]})})}let ei=[{code:"tdbm_account",code_label:"tdbm_account_name",iban:"tdbm_account_iban",label:"Ð¥Ñдалдаа Ñ
өгжлийн банк",short_label:"ХХÐ",logo:null==(n=I.D3.tdbm)?void 0:n.src}
1,{code:"khaan_account",code_label:"khaan_account_name",iban:"khaan_account_iban",label:"Хаан банк",short_label:"Хаан",logo:null==(l=I.D3.khaan)?void 0:l.src},{code:"xac_account",code_label:"xac_account_name",iban:"xac_account_iban",label:"Ð¥Ð°Ñ Ð±Ð°Ð½Ðº",short_label:"Хаc",logo:null==(s=I.D3.xac)?void 0:s.src},{code:"golomt_account",code_label:"golomt_account_name",iban:"golomt_account_iban",label:"ÐÐ¾Ð»Ð¾Ð¼Ñ Ð±Ð°Ð½Ðº",short_label:"ÐоломÑ",logo:null==(i=I.D3.golomt)?void 0:i.src},{code:"mbank_account",code_label:"mbank_account_name",iban:"mbank_account_iban",label:"Рбанк",short_label:"Рбанк",logo:null==(r=I.D3.mbank)?void 0:r.src}];function er(e){let{show:t,onClose:a,data:n,total:l}=e,[s,i]=(0,c.useState)(null);return(0,c.useEffect)(()=>{var e,t;(null==n?void 0:n.qr)||(null==n?void 0:n.qr_link)?[T.c.Sono,T.c.HappyPay,T.c.TusPlus].includes(n.methodData.methodType)?i(n.qr):n.methodData.methodType===T.c.Omniway?(0,ea.d)((null==n?void 0:n.deeplink)||(null==n?void 0:n.qr_link)||"",{width:250}).then(i):(0,ea.d)((null==n?void 0:n.qr)||(null==n?void 0:n.qr_link)||"",{width:250}).then(i):(null==n||null==(e=n.methodData)?void 0:e.methodType)===T.c.SimpleV2&&(null==n?void 0:n.invoice_id)?(0,ea.d)(null==n?void 0:n.invoice_id,{width:250}).then(i):(null==n||null==(t=n.methodData)?void 0:t.methodType)===T.c.HappyPay&&(null==n?void 0:n.qr_image)&&i(n.qr_image)},[n]),(0,o.jsx)(_,{show:t,onClose:a,footer:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("button",{type:"button",onClick:a,className:"btn btn-secondary",children:u.Ru._({id:"yz7wBu"})}),!!(null==n?void 0:n.deeplink)&&(0,o.jsxs)("a",{href:n.deeplink,className:"hideDesktop btn btn-primary",children:[n.icon&&(0,o.jsx)("img",{src:n.icon,className:"size-5 rounded",alt:n.title}),u.Ru._({id:"755t2T",values:{0:n.title}})]})]}),title:(0,o.jsxs)(o.Fragment,{children:[(null==n?void 0:n.icon)&&(0,o.jsx)("img",{src:n.icon,className:"size-9 rounded",alt:n.name})," ",null==n?void 0:n.name]}),children:(0,o.jsxs)("div",{className:"flex flex-col items-center gap-4",children:[(0,o.jsx)("p",{className:"m-0",children:u.Ru._({id:"XBcWup",values:{0:null==n?void 0:n.title}})}),(0,o.jsx)("img",{src:s,alt:"",className:"aspect-1 w-[250px] rounded bg-white p-2"}),(0,o.jsxs)("div",{className:"text-center",children:[(0,o.jsx)("p",{className:"text-custom-tertiary-content m-0 text-sm",children:u.Ru._({id:"yzX9ZV"})}),(0,o.jsx)("p",{className:"m-0 text-xl font-semibold",children:(0,Y.up)(l||0,"MNT")})]})]})})}var eo=a(62343);function ec(e){let{children:t,show:a,onClose:n}=e;return(0,o.jsx)(v.e,{show:a,as:c.Fragment,children:(0,o.jsxs)(j.lG,{as:"div",className:"relative z-40",onClose:n,children:[(0,o.jsx)(v._,{as:c.Fragment,enter:"ease-in-out duration-200",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in-out duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,o.jsx)("div",{className:" fixed inset-0 bg-gray-500/75 transition-opacity"})}),(0,o.jsx)("div",{className:"fixed inset-0 overflow-hidden",children:(0,o.jsx)("div",{className:"absolute inset-0 overflow-hidden",children:(0,o.jsx)("div",{className:"pointer-events-none fixed inset-x-0 bottom-0 flex max-h-max pt-10",children:(0,o.jsx)(v._,{as:c.Fragment,enter:"transform transition ease-in-out duration-200 sm:duration-200",enterFrom:"translate-y-full",enterTo:"translate-y-0",leave:"transform transition ease-in-out duration-200 sm:duration-200",leaveFrom:"translate-y-0",leaveTo:"translate-y-full",children:(0,o.jsx)(j.Lj,{className:"pointer-events-auto w-screen",children:(0,o.jsxs)("div",{className:"bg-base-100 flex flex-col py-6 shadow-xl",children:[(0,o.jsx)("div",{className:"container max-w-4xl pb-4",children:(0,o.jsxs)("div",{className:"flex items-center justify-between",children:[(0,o.jsx)(j.L3,{className:"leading-6 font-semibold",children:(0,o.jsx)(eo.x6,{id:"wre7vJ"})}),(0,o.jsxs)("button",{type:"button",className:"bg-base-200 relative flex h-8 w-8 items-center justify-center rounded-md focus:outline-hidden",onClick:()=>n(!1),children:[(0,o.jsx)("span",{className:"absolute -inset-2.5"}),(0,o.jsx)("span",{className:"sr-only",children:u.Ru._({id:"yz7wBu"})}),(0,o.jsx)(N.A,{className:"h-6 w-6","aria-hidden":"true"})]})]})}),(0,o.jsx)("div",{className:"max-h-[85dvh] overflow-y-scroll",children:t})]})})})})})})]})})}var ed=a(99851);function em(e){let{onClick:t,name:a,description:n,icon:l,loading:s,hasPromo:i}=e;return(0,o.jsxs)("button",{onClick:t,className:"border-base-content/20 bg-base-200 hover:bg-base-300 flex h-full w-full items-center gap-4 roun
1ded-md border p-2",children:[l,(0,o.jsxs)("div",{className:"flex-1 space-y-0 text-left",children:[(0,o.jsx)("h4",{className:"text-sm font-semibold",children:a}),(0,o.jsx)("p",{className:"text-neutral-content line-clamp-2 text-sm",children:n||a}),i&&(0,o.jsx)("p",{className:"text-neutral-content text-sm",children:"Ð¥Ñдалдан авалÑад Ñ
өнгөлөлÑÑй"})]}),s?(0,o.jsx)("div",{className:"loading size-5"}):(0,o.jsx)(m.A,{className:"ml-auto size-5"})]})}function eu(e){let{methods:t,onClick:a,title:n,loading:l}=e;return t.length?(0,o.jsx)(ex,{title:n,children:t.map(e=>{var t,n,s;let i=(null==(t=I.D3[e.methodType])?void 0:t.src)?(0,o.jsx)("img",{src:null==(n=I.D3[e.methodType])?void 0:n.src,alt:e.name,className:"h-12 w-12 flex-[0_0_48px] rounded"}):(0,o.jsx)(ed.A,{className:"h-12 w-12 flex-[0_0_48px]"});return(0,o.jsx)("li",{className:"!m-0",children:(0,o.jsx)(em,{icon:i,name:e.name,description:e.description,loading:(s=e.methodType,"function"==typeof l?l(s):l),onClick:()=>a(e,e.methodType===T.c.Sono?{deeplink:!0}:void 0)})},e.id)})}):null}function ex(e){let{title:t,children:a}=e;return(0,o.jsxs)("div",{children:[!!t&&(0,o.jsx)("h3",{className:"text-custom-tertiary-content container mb-0 max-w-4xl text-lg font-semibold",children:t}),(0,o.jsx)("div",{className:"container max-w-4xl flex-1 py-4",children:(0,o.jsx)("ul",{role:"list",className:"grid grid-cols-1 gap-4 space-y-4 md:grid-cols-2",children:a})})]})}var ep=a(53937);function eh(){let e=(0,R._)(["\n query cards($qpay: Boolean!, $golomt: Boolean!) {\n me {\n id\n qPayCards @include(if: $qpay) {\n id\n bank: cardIssuer\n cardNumber\n cardType\n createdAt\n }\n golomtCards @include(if: $golomt) {\n id\n cardNumber\n cardHolder\n bank\n createdAt\n }\n }\n }\n"]);return eh=function(){return e},e}let eb={},ey=(0,X.J1)(eh());function ef(e){let{onClick:t,methods:a}=e,n=a.find(e=>e.methodType===T.c.QpayMerchant),l=a.find(e=>e.methodType===T.c.GolomtWallet),s=!n||!l,{data:i}=function(e){let t={...eb,...e};return ep.IT(ey,t)}({variables:{golomt:!!l,qpay:!!n},skip:s,fetchPolicy:"cache-first"}),{golomtCards:r=[],qPayCards:c=[]}=(null==i?void 0:i.me)||{};return(null==r?void 0:r.length)&&(null==c?void 0:c.length)&&!s?(0,o.jsx)(o.Fragment,{children:[...c,...r].map(e=>(0,o.jsx)("li",{children:(0,o.jsx)(em,{name:e.cardNumber,description:e.bank,icon:(0,o.jsx)(ed.A,{className:"size-9 flex-[0_0_48px] flex-none"}),onClick:()=>t(n,{card_id:e.id})})},e.id))}):null}var eg=a(78204);function ev(){let e=(0,R._)(["\n query paymentMethods {\n paymentMethods(active: true) {\n id\n active\n name\n position\n methodType\n description\n data\n }\n }\n"]);return ev=function(){return e},e}let ej={},eN=(0,X.J1)(ev());var e_=a(79586);function e$(){let e=(0,R._)(["\n subscription orderUpdated($id: ID!) {\n orderUpdated(id: $id) {\n ...order\n }\n }\n ","\n"]);return e$=function(){return e},e}let ew={},ek=(0,X.J1)(e$(),D.f);function eT(e){var t,a,n,l,s,i,r;let{order:x}=e,[h,b]=(0,c.useState)(null),[y,g]=(0,c.useState)(!1),[v,{loading:j}]=function(e){let t={...F,...void 0};return C.n(S,t)}(),[N,{loading:_}]=function(e){let t={...q,...void 0};return C.n(z,t)}(),[$,k]=(0,c.useState)(new Set),{byGroup:R,loading:X,getMethod:P}=function(){let{data:e,loading:t}=function(e){let t={...ej,...void 0};return ep.IT(eN,t)}();return{loading:t,byGroup:(0,c.useCallback)(function(t){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;if(!(null==e?void 0:e.paymentMethods))return[];if("all"===t)return e.paymentMethods;let n=e.paymentMethods.filter(e=>{var a,n,l;return!!("qpay"===t&&I.gz.includes(e.methodType)||"afterPay"===t&&I.nv.includes(e.methodType)||"leasing"===t&&I.wD.includes(e.methodType)||"wallet"===t&&(I.m$.includes(e.methodType)||(null==(a=e.data)?void 0:a.screen)==="socialpay")||"card"===t&&(null==(n=e.data)?void 0:n.screen)!=="socialpay"&&(I.p1.includes(e.methodType)||["shoppy","payment"].includes(null==(l=e.data)?void 0:l.screen))||"tokenized"===t&&I._5.includes(e.methodType))});return(0,eg.take)("afterPay"===t?(0,eg.uniqBy)(n,"methodType"):n,a)},[e]),getMethod:t=>{var a;return null==e||null==(a=e.paymentMethods)?void 0:a.find(e=>e.methodType===t)}}}(),{isGuest:D}=(0,V.U)(),A=D?(0,M.SY)(x.number):void 0,{startWs:O}=function(e){let{skip:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},[a,n]=(0,c.useState)(!1);return!function(e){let t={...ew,...e};e_.R(ek,t)}({variables:{id:e},skip:t||!e||!a,onData:e=>{var t;let a=null==(t=e.data.data)?void 0:t.orderUpdated;a&&"paid"===a.paymentState&&(0,B.Du)(a)}}),{startWs:()=>n(!0)}}(null==x?void 0:x.id,{skip:D}),G=x.promotionActionPromises.nodes.flatMap(e=>e).filter(e=>e.isEligible&&"rejected"!==e.status);(0,c.useEffect)(()=>{let e=G.find(e=>x.allAdjustments.some(t=>0!==t.amount&&t.sourceId===e.promotionAction.id));e&&g(e.id)},[]),(0,c.useEffect)(()=>{X||(O(),b({type:"select"}))},[X]);let U=async function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];try{var a;(null==(a=(await N({variables:{input:{orderId:x.id,promiseId:e}}}
1)).data)?void 0:a.toggleAdjustmentPromise)&&g(!!t&&e)}catch(e){}},Q=async(e,t)=>{(0,B.Wj)(e.name,x),k(t=>new Set(t).add(e.methodType));let a=G.find(t=>t.promotionAction.preferences.payment_method_ids.map(String).includes(e.id));if(y&&(!a||(null==a?void 0:a.id)!==y)&&await U(y,!1),a&&a.id!==y&&await U(a.id),[T.c.StorePay,T.c.MostTan,T.c.TdbmApplePay,T.c.BonumApplePay].includes(e.methodType))return b({type:e.methodType});v({variables:{input:{number:x.number,action:e.methodType,params:A?{...t,token:A}:t}}}).then(t=>{var a,n,l,s;let i=null==(a=t.data)?void 0:a.orderPay;if(!i)return;if(i.error&&i.message)return b({type:"error",params:{message:i.message,methodData:e}});let r=e.methodType===T.c.GolomtWallet,o=I.p1.concat([T.c.GolomtDigitalBank]),c=[T.c.AlifPay,T.c.MBankMerchant],d=[T.c.Pocket,T.c.Simple,T.c.Monpay,T.c.Pass,T.c.Omniway,T.c.LendPay,T.c.SocialPayQr,T.c.GolomtWallet,T.c.Sono,T.c.MostV2,T.c.SimpleV2,T.c.KhaanLeasing,T.c.HappyPay,T.c.HiPay];if(e.methodType===T.c.QpayMerchant&&i.redirect_url&&o.push(T.c.QpayMerchant),c.includes(e.methodType)){let t="";if(e.methodType===T.c.AlifPay&&(t="https://checkout-dev.alifpay.uz/?invoice=".concat(i.source.invoice_id)),e.methodType===T.c.MBankMerchant&&(t=null==(n=i.attributes)?void 0:n.url),t)return window.location.assign(t)}if(o.includes(e.methodType)){let t=(0,f.cc)({method:e,data:i});return(null==t?void 0:t.url)?b({type:"card",params:t}):b({type:"error",params:{message:u.Ru._({id:"VnxEm2"}),methodData:e}})}if(e.methodType===T.c.Toki)return b({type:T.c.Toki,params:null==i?void 0:i.source});if(I.$n.includes(e.methodType))return b({type:"qpay",params:i});if(e.methodType===T.c.CashOnDelivery)return b({type:"cash_on_delivery"});if(d.includes(e.methodType)){let t=(null==(l=e.data)?void 0:l.screen)==="socialpay"?{qpay:i.attributes.deeplink}:i;return b({type:"qr",params:(0,f.J2)({method:e,source:e.methodType===T.c.SocialPayQr||r?t:null!=(s=i.source)?s:i.attributes})})}}).catch(t=>b({type:"error",params:{message:t.message||t,methodData:e}})).finally(()=>{k(t=>{let a=new Set(t);return a.delete(e.methodType),a})})},H=e=>$.has(e),J=R("card"),K=R("tokenized"),W=R("afterPay"),Y=R("leasing"),Z=R("qpay"),et=R("wallet").filter(e=>e.methodType!==T.c.MonpayV2),ea=(0,f.lP)(null==x||null==(t=x.qPayInvoice)?void 0:t.deepLinks),ei=!x.leaseState&&!!(null==ea?void 0:ea.length);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("button",{className:p()("btn btn-lg btn-primary w-full"," "," "),onClick:()=>b({type:"select"}),children:u.Ru._({id:"OaEEAM"})}),(null==h?void 0:h.type)==="card"&&(0,o.jsx)(E,{...h.params}),(0,o.jsx)(L,{show:["error","success"].includes((null==h?void 0:h.type)||""),data:null==h?void 0:h.params,type:null==h?void 0:h.type,onClose:()=>b((null==h?void 0:h.type)==="error"?{type:"select"}:null)}),(0,o.jsx)(ee,{show:(null==h?void 0:h.type)===T.c.StorePay,total:x.outstandingBalance,onClose:()=>b({type:"select"}),mobile:null==(n=x.billAddress)||null==(a=n.phone)?void 0:a.replace(/\+976|\s/g,""),loading:j,onFinish:e=>v({variables:{input:{action:T.c.StorePay,number:x.number,params:e}}}).then(e=>{var t,a;(null==(a=e.data)||null==(t=a.orderPay)?void 0:t.invoice_id)&&b({type:"success",params:{message:u.Ru._({id:"RFFqLD"}),methodData:P(T.c.StorePay)}})})}),(0,o.jsx)(en,{show:(null==h?void 0:h.type)===T.c.Toki,data:null==h?void 0:h.params,onClose:()=>b({type:"select"}),mobile:null==(s=x.billAddress)||null==(l=s.phone)?void 0:l.replace(/\+976|\s/g,""),loading:j,onFinish:e=>v({variables:{input:{action:T.c.Toki,number:x.number,params:e}}}).then(e=>{var t,a,n;(null==(n=e.data)||null==(a=n.orderPay)||null==(t=a.source)?void 0:t.invoice_number)&&b({type:"success",params:{message:u.Ru._({id:"80dBRy"}),methodData:P(T.c.Toki)}})}).catch(e=>b({type:"error",params:{message:e.message||e,methodData:P(T.c.Toki)}}))}),(0,o.jsx)(el,{show:(null==h?void 0:h.type)===T.c.MostTan,onClose:()=>b({type:"select"}),mobile:null==(r=x.billAddress)||null==(i=r.phone)?void 0:i.replace(/\+976|\s/g,""),loading:j,onFinish:e=>v({variables:{input:{action:T.c.MostTan,number:x.number,params:e}}}).then(e=>{var t,a;if((null==(a=e.data)||null==(t=a.orderPay)?void 0:t.state)==="complete")return b({type:"success",params:{message:u.Ru._({id:"WN3H52"}),methodData:P(T.c.MostTan)}});b(null)}
1).catch(e=>b({type:"error",params:{message:e.message||e,methodData:P(T.c.MostTan)}}))}),(0,o.jsx)(w,{order:x,show:(null==h?void 0:h.type)==="cash_on_delivery",onClose:()=>b({type:"select"})}),(0,o.jsx)(es,{show:(null==h?void 0:h.type)==="qpay",data:null==h?void 0:h.params,number:x.number,onClose:()=>b({type:"select"}),total:x.totalAfterStoreCredit}),(0,o.jsx)(er,{show:(null==h?void 0:h.type)==="qr",onClose:()=>b({type:"select"}),data:null==h?void 0:h.params,total:x.totalAfterStoreCredit}),(0,o.jsx)(ec,{show:(null==h?void 0:h.type)==="select",onClose:()=>b(null),children:X?(0,o.jsx)(eR,{}):(0,o.jsxs)("div",{className:"flex flex-col gap-5",children:[(0,o.jsxs)(ex,{children:[Z.map((e,t)=>{var a,n,l;return(0,o.jsx)("li",{className:"m-0!",children:(0,o.jsx)(em,{icon:(null==(a=I.D3[e.methodType])?void 0:a.src)?(0,o.jsx)("img",{src:null==(n=I.D3[e.methodType])?void 0:n.src,alt:e.name,className:"size-12 flex-[0_0_48px] rounded object-scale-down"}):(0,o.jsx)(d.A,{className:"h-12 w-12 flex-[0_0_48px] rounded"}),name:e.methodType===T.c.QpayMerchant?u.Ru._({id:"SfKarR"}):e.name,description:e.methodType===T.c.QpayMerchant?u.Ru._({id:"T4FyIq"}):e.description,loading:H(e.methodType)||_,hasPromo:null==(l=G.find(t=>t.promotionAction.preferences.payment_method_ids.map(String).includes(e.id)))?void 0:l.promotionAction.preferences,onClick:()=>Q(e)})},t)}),(0,o.jsx)(ef,{methods:K,onClick:Q})]}),ei&&(0,o.jsx)("div",{className:"lg:hidden",children:(0,o.jsx)(ex,{title:u.Ru._({id:"ahkxsb"}),children:null==ea?void 0:ea.map((e,t)=>(0,o.jsx)("li",{className:"m-0!",children:(0,o.jsxs)("a",{href:e.link,className:p()("border-base-content/20 bg-base-200 hover:bg-base-300 flex w-full items-center gap-4 roun
1ded-md border p-2",""),children:[(0,o.jsx)("img",{src:e.logo,alt:"",className:"h-12 w-12 flex-[0_0_48px] rounded"}),(0,o.jsxs)("div",{className:"flex-1 space-y-0 text-left",children:[(0,o.jsx)("h4",{className:"text-sm font-semibold",children:e.name}),(0,o.jsx)("p",{className:"text-neutral-content text-sm",children:e.description})]}),(0,o.jsx)(m.A,{className:"ml-auto h-5 w-5"})]})},t))})}),(0,o.jsx)(eu,{title:u.Ru._({id:"H5R5bz"}),methods:J,onClick:Q,loading:H||_}),!x.leaseState&&(0,o.jsx)(eu,{title:u.Ru._({id:"R7ANTI"}),methods:W,onClick:Q,loading:H||_}),(0,o.jsx)(eu,{title:u.Ru._({id:"tZrVyK"}),methods:Y,onClick:Q,loading:H||_}),(0,o.jsx)(eu,{title:u.Ru._({id:"7Lrev9"}),methods:et,onClick:Q,loading:H||_})]})})]})}function eR(){return(0,o.jsx)("ul",{role:"list",className:"grid grid-cols-2 gap-4 space-y-4 md:grid-cols-1",children:[1,2,3,4].map(e=>(0,o.jsxs)("div",{className:"flex w-full items-center gap-4",children:[(0,o.jsx)("div",{className:"skeleton size-24"}),(0,o.jsxs)("div",{className:"flex-1 space-y-2",children:[(0,o.jsx)("div",{className:"skeleton h-4 w-28"}),(0,o.jsx)("div",{className:"skeleton h-4 w-1/2"}),(0,o.jsx)("div",{className:"skeleton h-4 w-1/3"})]})]},e))})}},2209:(e,t,a)=>{a.d(t,{Fr:()=>r,dB:()=>i,p5:()=>s});let n="guest.chosen",l=new Set;function s(){try{return"1"===window.sessionStorage.getItem(n)}catch(e){return!1}}function i(e){try{e?window.sessionStorage.setItem(n,"1"):window.sessionStorage.removeItem(n)}catch(e){}l.forEach(e=>e())}function r(e){return l.add(e),()=>{l.delete(e)}}},14094:(e,t,a)=>{a.d(t,{d:()=>l});var n=a(84532);function l(e,t){return(0,n.dY)(e,{margin:0,color:{dark:"#000000",light:"#00000000"},...t,width:(null==t?void 0:t.width)||130})}},14817:(e,t,a)=>{a.d(t,{B:()=>l});let n={code:"+976",operators:{gmobile:[/^(98|93|97|83)\d{6}/,/^921\d{5}/],unitel:/^(80|86|88|89|77)\d{6}/,mobicom:/^(99|95|94|85)\d{6}/,skytel:[/^(90|91|92|96|69)\d{6}/,/^920[0-1]\d{5}/],ondo:/^(60|66|65)\d{6}/,lime:/^72\d{6}/,toki:/^(50|55)\d{6}/}};function l(e){if(!e)return!1;let t=Object.values(n.operators),a=e.replace(n.code,"").replace(/[\s-]/g,"");return t.some(e=>Array.isArray(e)?e.some(e=>e.test(a)):e.test(a))}},17752:(e,t,a)=>{a.d(t,{lV:()=>p});var n=a(54568),l=a(81390),s=a(60128);let i="'${name}' is not a valid ${type}",r={default:"Validation error on field '${name}'",required:"'${name}' Ñ
ооÑон байна",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:i,method:i,array:i,object:i,number:i,date:i,boolean:i,integer:i,float:i,regexp:i,email:i,url:i,hex:i},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},o="${name} не ÑвлÑеÑÑÑ Ñипом ${type}",c={default:"ÐÑибка пÑовеÑки Ð¿Ð¾Ð»Ñ ${name}",required:"ÐожалÑйÑÑа, введиÑе ${name}",enum:"${name} должен бÑÑÑ Ð¾Ð´Ð½Ð¸Ð¼ из [${enum}]",whitespace:"${name} не Ð¼Ð¾Ð¶ÐµÑ Ð±ÑÑÑ Ð¿ÑÑÑÑм",date:{format:"${name} не пÑавилÑнÑй ÑоÑÐ¼Ð°Ñ Ð´Ð°ÑÑ",parse:"${name} не Ð¼Ð¾Ð¶ÐµÑ Ð±ÑÑÑ Ð¿ÑеобÑазовано в даÑÑ",invalid:"${name} не ÑвлÑеÑÑÑ ÐºÐ¾ÑÑекÑной даÑой"},types:{string:o,method:o,array:o,object:o,number:o,date:o,boolean:o,integer:o,float:o,regexp:o,email:o,url:o,hex:o},string:{len:"${name} должна бÑÑÑ ${len} Ñимволов",min:"${name} должна бÑÑÑ Ð±Ð¾Ð»ÑÑе или Ñавна ${min} Ñимволов",max:"${name} должна бÑÑÑ Ð¼ÐµÐ½ÑÑе или Ñавна ${max} Ñимволов",range:"Ðлина ${name} должна бÑÑÑ Ð¼ÐµÐ¶Ð´Ñ ${min}-${max} Ñимволами"},number:{len:"${name} должна бÑÑÑ Ñавна ${len}",min:"${name} должна бÑÑÑ Ð±Ð¾Ð»ÑÑе или Ñавна ${min}",max:"${name} должна бÑÑÑ Ð¼ÐµÐ½ÑÑе или Ñавна ${max}",range:"${name} должна бÑÑÑ Ð¼ÐµÐ¶Ð´Ñ ${min}-${max}"},array:{len:"ÐолиÑеÑÑво ÑлеменÑов ${name} должно бÑÑÑ Ñавно ${len}",min:"ÐолиÑеÑÑво ÑлеменÑов ${name} должно бÑÑÑ Ð±Ð¾Ð»ÑÑе или Ñавно ${min}",max:"ÐолиÑеÑÑво ÑлеменÑов ${name} должно бÑÑÑ Ð¼ÐµÐ½ÑÑе или Ñавно ${max}",range:"ÐолиÑеÑÑво ÑлеменÑов ${name} должно бÑÑÑ Ð¼ÐµÐ¶Ð´Ñ ${min} и ${max}"},pattern:{mismatch:"${name} не ÑооÑвеÑÑÑвÑÐµÑ ÑÐ°Ð±Ð»Ð¾Ð½Ñ ${pattern}"}},d="${name} ${type} turi emas",m={default:"${name} maydonini tekshirishda xatolik yuz berdi",required:"Iltimos, ${name} kiriting",enum:"${name} [${enum}] dan biri boÊ»lishi kerak",whitespace:"${name} bo'sh bo'lishi mumkin emas",date:{format:"${name} yaroqsiz sana formati",parse:"${name}
1 sanaga aylantirilmaydi",invalid:"${name} haqiqiy sana emas"},types:{string:d,method:d,array:d,object:d,number:d,date:d,boolean:d,integer:d,float:d,regexp:d,email:d,url:d,hex:d},string:{len:"${name} ${len} belgidan iborat boâlishi kerak",min:"${name} ${min} belgidan katta yoki teng boÊ»lishi kerak",max:"${name} ${max} ta belgidan kam yoki teng boÊ»lishi kerak",range:"${name} uzunligi ${min}-${max} belgilar orasida boÊ»lishi kerak"},number:{len:"${name} ${len} ga teng boÊ»lishi kerak",min:"${name} ${min} dan katta yoki teng bo'lishi kerak",max:"${name} ${max} dan kichik yoki teng bo'lishi kerak",range:"${name} ${min}-${max} oralig'ida bo'lishi kerak"},array:{len:"${name} elementi soni ${len} ga teng boÊ»lishi kerak",min:"${name} elementi soni ${min} dan katta yoki teng boÊ»lishi kerak",max:"${name} elementi soni ${max} dan kam yoki teng boÊ»lishi kerak",range:"${name} elementlar soni ${min} va ${max} oraligâida boâlishi kerak"},pattern:{mismatch:"${name} ${pattern}ga mos kelmaydi"}},u="${name}䏿¯ä¸ä¸ªææç${type}",x={default:"åæ®µéªè¯é误${name}",required:"请è¾å
¥${name}",enum:"${name}å¿
é¡»æ¯å
¶ä¸ä¸ä¸ª[${enum}]",whitespace:"${name}ä¸è½ä¸ºç©ºå符",date:{format:"${name}æ¥ææ ¼å¼æ æ",parse:"${name}ä¸è½è½¬æ¢ä¸ºæ¥æ",invalid:"${name}æ¯ä¸ä¸ªæ ææ¥æ"},types:{string:u,method:u,array:u,object:u,number:u,date:u,boolean:u,integer:u,float:u,regexp:u,email:u,url:u,hex:u},string:{len:"${name}须为${len}个å符",min:"${name}æå°${min}个å符",max:"${name}æå¤${max}个å符",range:"${name}é¡»å¨${min}-${max}å符ä¹é´"},number:{len:"${name}å¿
é¡»çäº${len}",min:"${name}æå°å¼ä¸º${min}",max:"${name}æå¤§å¼ä¸º${max}",range:"${name}é¡»å¨${min}-${max}ä¹é´"},array:{len:"须为${len}个${name}",min:"æå°${min}个${name}",max:"æå¤${max}个${name}",range:"${name}æ°éé¡»å¨${min}-${max}ä¹é´"},pattern:{mismatch:"${name}䏿¨¡å¼ä¸å¹é
${pattern}"}};function p(e){return(0,n.jsx)(l.Ay,{...e,validateMessages:"mn"===s.Ru.locale?r:"zh"===s.Ru.locale?x:"ru"===s.Ru.locale?c:"uz"===s.Ru.locale?m:void 0})}},18439:(e,t,a)=>{a.d(t,{F:()=>r});var n=a(54568);a(7620);var l=a(25150),s=a.n(l),i=a(81390);function r(e){let{name:t,rules:a,label:l,hideLabel:r,labelTextAlt:o,type:c,dependencies:d,initialValue:m,onMetaChange:u,valuePropName:x,validateTrigger:p,validateFirst:h,validateDebounce:b,trigger:y,normalize:f,disabled:g,getValueFromEvent:v,labelClassName:j,helperText:N,autoComplete:_,autoCapitalize:$="off",placeholder:w,className:k,after:T,"aria-label":R,controlClassName:X,inputRender:C="input",inputProps:P={}}=e;return(0,n.jsx)(i.D0,{dependencies:d,name:t,rules:a,messageVariables:{name:"string"==typeof l?l:R||t},initialValue:m,onMetaChange:u,valuePropName:x,validateTrigger:p,validateFirst:h,validateDebounce:b,trigger:y,normalize:f,getValueFromEvent:v,children:"hidden"===c?(0,n.jsx)("input",{type:"hidden"}):(e,a)=>(0,n.jsxs)("div",{className:s()("form-control",X),children:[!r&&(0,n.jsxs)("div",{className:s()("label flex items-center"," "),children:["string"==typeof l&&(0,n.jsx)("label",{htmlFor:t.toString(),className:s()("label-text block",j),children:l}),o&&(0,n.jsx)("span",{className:"label-text-alt",children:o}),"object"==typeof l&&l]}),"function"==typeof C?(0,n.jsx)(C,{id:t,autoComplete:_,invalid:a.errors.length>0,placeholder:w,type:c,after:T,className:k,disabled:g,...P,...e}):(0,n.jsxs)("div",{className:T?"join w-full":void 0,children:[(0,n.jsx)(C,{...P,...e,value:e.value||"",id:t,type:c,disabled:g,autoComplete:_,autoCapitalize:$,className:s()("form-input input join-item w-full","",k,{"input-error":a.errors.length>0}),placeholder:w}),T]}),"string"==typeof N?(0,n.jsx)("label",{className:"label",children:(0,n.jsx)("span",{className:"label-text-alt",children:N})}):N,a.errors.map(e=>(0,n.jsx)("label",{className:"label label-text-alt text-error text-sm",children:e},e))]})})}},26001:(e,t,a)=>{a.d(t,{A:()=>s});var n=a(7620),l=a(38798);let s=()=>(0,n.useContext)(l.c)},38798:(e,t,a)=>{a.d(t,{c:()=>n,r:()=>l});let n=(0,a(7620).createContext)({}),l=n.Consumer},51338:(e,t,a)=>{a.d(t,{Hi:()=>r,SY:()=>i,eA:()=>s});let n="guest.orders";function l(){try{let e=window.localStorage.getItem(n),t=e?JSON.parse(e):null;if(!t||"object"!=typeof t||Array.isArray(t))return{};return t}catch(e){return{}}}function s(e,t){if(!e||!t)return;let{[e]:a,...s}=l(),i=Object.entries({...s,[e]:t}).slice(-20);try{window.localStorage.setItem(n,JSON.stringify(Object.fromEntries(i)))}catch(e){}}function i(e){if(e)return l()[e]}function r(e){try{let t=new URL(e);return t.searchParams.delete("token"),"".concat(t.pathname).concat(t.search).concat(t.hash)}catch(t){return e}}},65940:(e,t,a)=>{a.d(t,{U:()=>i});var n=a(54568),l=a(7620),s=a(78303);
1function i(e){let{length:t=6,value:a="",onChange:i,className:r,disabled:o,...c}=e,d=(0,l.useRef)([]);(0,l.useEffect)(()=>{d.current=d.current.slice(0,t)},[t]);let m=e=>{i(e.clipboardData.getData("text").slice(0,t).split("").slice(0,t).join("")),setTimeout(()=>{var e;null==(e=d.current[t-1])||e.focus()},0),e.preventDefault()};return(0,n.jsx)("div",{className:"flex items-center gap-0.5 text-center",children:Array.from({length:t}).map((e,l)=>(0,n.jsx)("input",{className:"focus:outline-primary text-center shadow-none ".concat(r),disabled:o,type:"number",min:0,max:9,...(0,s.omit)(c,"submit"),ref:e=>{e&&(d.current[l]=e)},value:a[l]||"",maxLength:t,onChange:e=>((e,n)=>{var l,s;let r=e.target.value;if(r.length>1){let e=r.slice(0,t);return i(e),null==(l=d.current[e.length-1])?void 0:l.focus()}let o=a.split("");o[n]=r,i(o.join("")),1===r.length&&n<t-1&&(null==(s=d.current[n+1])||s.focus())})(e,l),onKeyDown:e=>((e,t)=>{if("Backspace"===e.key&&t>0){var n;let e=a.split("");e[t-1]="",i(e.join("")),null==(n=d.current[t-1])||n.focus()}})(e,l),onPaste:m},l))})}},68132:(e,t,a)=>{a.d(t,{U:()=>r});var n=a(7620),l=a(79504),s=a(26001),i=a(2209);function r(){let{isAuth:e}=(0,s.A)(),t=!!l.A.guestCheckout,a=t&&!e,r=(0,n.useSyncExternalStore)(i.Fr,i.p5,()=>!1);return{guestCheckoutEnabled:t,isGuest:a,choseGuest:a&&r,chooseGuest:(0,n.useCallback)(()=>(0,i.dB)(!0),[]),needsLogin:!t&&!e}}},78303:(e,t,a)=>{var n=a(78204);a.o(n,"omit")&&a.d(t,{omit:function(){return n.omit}})}}]);
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.