1import{j as e,r as x}from"./react-Afnsq4RA.js";import{f as j,a2 as p,M as w,y as f,W as g,ae as t,G as o,aq as b,m as l,aA as y,aB as N,c as _,a8 as v}from"./index-DrLBkKzD.js";import{f as P}from"./react-router-B-sKoVYf.js";import"./lodash-Bgfj8OZ7.js";import"./moment-jalaali-DCz9tSil.js";import"./image-conversion-nlxg_I9_.js";import"./qr-scanner-OZedL0qH.js";import{u as k}from"./use-kiosks-BEIR8gIC.js";import"./yup-CuwAcXVK.js";import"./decimal.js-CNRKZ6of.js";import{H as V}from"./react-helmet-async-DbjnCQUt.js";import{u as n}from"./react-i18next-CYpCSCW9.js";import"./@neshan-maps-platform-BYsGTy0c.js";import"./react-router-dom-DEcOK0rH.js";import"./react-dom-BaUhTWGj.js";import"./scheduler-DYLXRpC5.js";import"./@remix-run-EmyHsWjj.js";import"./google-libphonenumber-B2ky9HhN.js";import"./uuid-DGxouSIY.js";import"./react-phone-number-input-BA-kbLvc.js";import"./libphonenumber-js-DEgC51tD.js";import"./prop-types-CnV25TV_.js";import"./classnames-CkYBQuMh.js";import"./input-format-Mk7CM1HL.js";import"./country-flag-icons-D4lwPBzr.js";import"./ibantools-C_jdXXNm.js";import"./nprogress-CAT4Hibd.js";import"./clsx-B-dksMZM.js";import"./tailwind-merge-CSqCgoPn.js";import"./@iconify-DH6hIvJ1.js";import"./@reduxjs-6V0vSTu9.js";import"./redux-BXkGT1VS.js";import"./immer-BDzVaAxM.js";import"./redux-thunk-ClJT1hhx.js";import"./redux-persist-DL4f1xSU.js";import"./i18next-B2185GOa.js";import"./@tanstack-DDQiljJ1.js";import"./cmdk-BbCmhCeE.js";import"./@babel-CF3RwP-h.js";import"./tslib-CDuPK5Eb.js";import"./react-remove-scroll-bar-CeaptO4_.js";import"./react-style-singleton-B8PdEypK.js";import"./get-nonce-C-Z93AgS.js";import"./use-sidecar-Bv4Sgxy4.js";import"./use-callback-ref-Cg0-oM1N.js";import"./aria-hidden-DvXkyWUv.js";import"./@radix-ui-BNJyxf1O.js";import"./react-remove-scroll-iIO6tWo0.js";import"./@floating-ui-Bf07CSbV.js";import"./use-sync-external-store-DUKzQvAz.js";import"./class-variance-authority-B8k91cqS.js";import"./vaul-C9uWkRmi.js";import"./axios-B9ygI19o.js";import"./react-redux-qRnMlsuI.js";import"./lucide-react-BjlUAu9O.js";import"./input-otp-642phU8v.js";import"./react-qr-code-Dx9hcpdD.js";import"./qr.js-BVLGcLt3.js";/* empty css */import"./@turf-B_NmyriV.js";import"./point-in-polygon-hao-C1aFqb-f.js";import"./html-to-image-CCayPtYg.js";import"./swiper-Cpgef9Vo.js";import"./react-hook-form-nlrTBVx0.js";import"./@hookform-DbGnOzTT.js";import"./@simplewebauthn-BnTzSMk_.js";import"./react-fast-compare-D2bUkuns.js";import"./invariant-BfFOI3MH.js";import"./shallowequal-B0EYcxqC.js";import"./moment-BOSXtSlL.js";import"./jalaali-js-D60YAWxD.js";import"./property-expr-DEi1ZLzV.js";import"./tiny-case-BJ7jYKNY.js";import"./toposort-BeARj8ER.js";function D(){const{t:r}=n(),{routers:s}=j(),a=()=>{s.goToDashboardPage()};return e.jsxs(p,{hasPadding:!0,children:[e.jsx(V,{children:e.jsx("title",{children:r("pages.withdraw.titles.withdraw_detail")})}),e.jsx(w,{title:r("pages.withdraw.titles.withdraw_detail"),leftElement:e.jsx(f,{onClick:a,icon:"solar:arrow-left-outline",className:"text-black-main",width:24,height:24})}),e.jsxs(g,{className:"flex flex-col gap-[1.5rem]",children:[e.jsx("div",{className:"mx-auto w-fit rounded-[1rem] bg-white-light p-[0.875rem]",children:e.jsx(t,{className:"h-[6.25rem] w-[6.25rem]"})}),e.jsxs("div",{className:`flex items-center gap-[0.75rem] rounded-[1.5rem] border border-primary-main 2 bg-white-light px-[1rem] py-[1.5rem] shadow-sm`,children:[e.jsx(t,{className:"h-[2.5rem] w-[2.5rem] shrink-0 rounded-full"}),e.jsxs("div",{className:"flex w-full flex-col gap-1",children:[e.jsx(t,{className:"h-[1.25rem] w-1/4"}),e.jsx(t,{className:"h-[1rem] w-2/5"})]}),e.jsx(t,{className:"h-[1.5rem] w-[80px]"})]}),e.jsx(o.Card,{children:e.jsxs(o.Content,{children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(o.Property,{label:r("common.status")}),e.jsx(t,{className:"h-[2.375rem] w-[5.125rem] rounded-full"})]}),e.jsx(o.Property,{label:r("common.name"),value:e.jsx(t,{className:"h-[1.325rem] w-2/5 "})}),e.jsx(o.Property,{label:r("common.last_name"),value:e.jsx(t,{className:"h-[1.325rem] w-3/5 "})}),e.jsx(o.Property,{label:r("common.mobile_number"),value:e.jsx("span",{dir:"ltr",children:e.jsx(t,{className:"h-[1.325rem] w-3/5 "})})}),e.jsx(o.Property,{label:r("common.national_code"),value:e.jsx(t,{className:"h-[1.325rem] w-2/5 "})}),e.jsx(o.Property,{label:r("common.date_and_time_of_request"),value:e.jsx(t,{className:"h-[1.325rem] w-4/5 "})}),e.jsx("div",{className:"flex items-center justify-between",children:e.jsx(o.Property,{value:e.jsx(t,{className:"h-[1.325rem] w-2/5 "}),label:r("common.fee")})}),e.jsx(o.Property,{label:r("common.payment_amount"),value:e.jsx(t,{className:"h-[1.325rem] w-3/5 "})})]})})]})]})}function Oe(){const{uid:r}=P(),{t:s}=n(),[a,c]=x.useState(),{data:i,isLoading:d}
2=b({queryKey:[...l.getVoucherDetail.key,r],queryFn:()=>l.getVoucherDetail.fn(r),select(h){return h.data},enabled:!!r}),{kiosks:m,isLoading:u}=k({uid:i?.kiosk_uid,enabled:!!i});return d||u?e.jsx(D,{}):i&&m?e.jsx(y,{kiosk:m[0],variant:N.FromTransactionList,onSuccessCancelVoucher:c,feeAmount:+_.sub(i.bill_value,i.delivery_value).toFixed(2),voucher:a||i}):e.jsx(p,{hasPadding:!0,children:e.jsx(v,{title:s("pages.withdraw.titles.withdraw_detail")})})}export{Oe as default};
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.