PageSourceSearch

https://vonzuu.com/assets/PymentMethods-BDGBcIzH.js

js vonzuu.com collected 2026-09-24 14:57:26 UTC 5,462 bytes, 1 lines download raw bytes

1import{r as e}from"./vendor-router-DA6yNf3X.js";import{j as t}from"./vendor-maps-C15praqj.js";import{V as a,F as l}from"./VonzuuWallet-D1p4H0TX.js";import{n as r,q as s}from"./index-CjCZp4kG.js";function n({title:t,titleId:a,...l},r){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":a},l),t?e.createElement("title",{id:a},t):null,e.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 18.75a60.07 60.07 0 0 1 15.797 2.101c.727.198 1.453-.342 1.453-1.096V18.75M3.75 4.5v.75A.75.75 0 0 1 3 6h-.75m0 0v-.375c0-.621.504-1.125 1.125-1.125H20.25M2.25 6v9m18-10.5v.75c0 .414.336.75.75.75h.75m-1.5-1.5h.375c.621 0 1.125.504 1.125 1.125v9.75c0 .621-.504 1.125-1.125 1.125h-.375m1.5-1.5H21a.75.75 0 0 0-.75.75v.75m0 0H3.75m0 0h-.375a1.125 1.125 0 0 1-1.125-1.125V15m1.5 1.5v-.75A.75.75 0 0 0 3 15h-.75M15 10.5a3 3 0 1 1-6 0 3 3 0 0 1 6 0Zm3 0h.008v.008H18V10.5Zm-12 0h.008v.008H6V10.5Z"}))}const d=e.forwardRef(n);function i({title:t,titleId:a,...l},r){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":a},l),t?e.createElement("title",{id:a},t):null,e.createElement("path",{fillRule:"evenodd",d:"M19.916 4.626a.75.75 0 0 1 .208 1.04l-9 13.5a.75.75 0 0 1-1.154.114l-6-6a.75.75 0 0 1 1.06-1.06l5.353 5.353 8.493-12.74a.75.75 0 0 1 1.04-.207Z",clipRule:"evenodd"}))}const o=e.forwardRef(i);function c({title:t,titleId:a,...l},r){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":a},l),t?e.createElement("title",{id:a},t):null,e.createElement("path",{d:"M4.5 3.75a3 3 0 0 0-3 3v.75h21v-.75a3 3 0 0 0-3-3h-15Z"}),e.createElement("path",{fillRule:"evenodd",d:"M22.5 9.75h-21v7.5a3 3 0 0 0 3 3h15a3 3 0 0 0 3-3v-7.5Zm-18 3.75a.75.75 0 0 1 .75-.75h6a.75.75 0 0 1 0 1.5h-6a.75.75 0 0 1-.75-.75Zm.75 2.25a.75.75 0 0 0 0 1.5h3a.75.75 0 0 0 0-1.5h-3Z",clipRule:"evenodd"}))}const m=e.forwardRef(c);function x({title:t,titleId:a,...l},r){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":a},l),t?e.createElement("title",{id:a},t):null,e.createElement("path",{fillRule:"evenodd",d:"M14 8a.75.75 0 0 1-.75.75H4.56l3.22 3.22a.75.75 0 1 1-1.06 1.06l-4.5-4.5a.75.75 0 0 1 0-1.06l4.5-4.5a.75.75 0 0 1 1.06 1.06L4.56 7.25h8.69A.75.75 0 0 1 14 8Z",clipRule:"evenodd"}))}const u=e.forwardRef(x),h=({payType:n,setPayType:i,paymentOptions:c=[],paymentLoading:x=!1})=>{var u;const[h,v]=e.useState({transactions:[]});e.useEffect(()=>{(async()=>{const e=JSON.parse(localStorage.getItem("authToken")),t=await s({token:e});v(t)})()},[]);const f=x?[]:c.map(e=>{return{id:e.id,label:"cod"===e.code?"Pay On Delivery":"stripe"===e.code?"Credit / Debit Card":e.title_lng||e.title,subtitle:"cod"===e.code?"Pay when your order arrives":"wallet"===e.code?"Pay instantly from balance":"Visa, Mastercard & more",icon:(a=e.code,"wallet"===a?t.jsx("div",{className:"w-10 h-10 rounded-xl flex items-center justify-center",style:{background:"rgba(155,86,255,0.12)"},children:t.jsx(r,{className:"w-5 h-5 text-[#9B56FF]"})}):"cod"===a?t.jsx("div",{className:"w-10 h-10 rounded-xl flex items-center justify-center",style:{background:"rgba(51,255,194,0.08)"},children:t.jsx(d,{className:"w-5 h-5 text-green-500"})}):t.jsx("div",{className:"w-10 h-10 rounded-xl flex items-center justify-center",style:{background:"rgba(59,130,246,0.10)"},children:t.jsx(m,{className:"w-5 h-5 text-blue-500"})}))};var a});return t.jsxs("div",{className:"flex flex-col gap-3 w-full",children:[f.map(e=>t.jsxs("div",{onClick:()=>i(e.id),className:"flex items-center gap-4 p-4 rounded-xl border-2 cursor-pointer transition-all "+(n===e.id?"border-[#9B56FF]":"border-[var(--border-card-solid)] bg-[var(--bg-input)] hover:border-[var(--border-card)]"),style:n===e.id?{background:"rgba(155,86,255,0.12)"}:{},children:[e.icon,t.jsxs("div",{className:"flex-1",children:[t.jsx("p",{className:"font-semibold text-sm text-[var(--text-heading)]",children:e.label}),t.jsx("p",{className:"text-xs text-[var(--text-muted)] mt-0.5",children:e.subt
1itle})]}),t.jsx("div",{className:"w-5 h-5 rounded-full border-2 flex items-center justify-center flex-shrink-0 transition-colors "+(n===e.id?"border-[#9B56FF] bg-[#9B56FF]":"border-[var(--border-card-solid)]"),children:n===e.id&&t.jsx(o,{className:"w-3 h-3 text-white"})})]},e.id)),"wallet"===(null==(u=c.find(e=>e.id===n))?void 0:u.code)&&t.jsxs("div",{style:{backgroundImage:`url(${a})`},className:"bg-cover rounded-xl p-4 mt-1 flex flex-col gap-2",children:[t.jsx(r,{className:"w-8 h-8 text-[#9B56FF]"}),t.jsxs("div",{children:[t.jsx("p",{className:"text-[var(--text-body)] font-medium text-sm",children:"Vonzuu Wallet"}),t.jsxs("p",{className:"text-2xl font-bold text-[var(--text-heading)]",children:["$",h.wallet_amount]}),t.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[t.jsx(l,{className:"h-4 w-4 text-[#9B56FF] flex-shrink-0"}),t.jsx("p",{className:"text-xs text-[var(--text-body)]",children:"Wallet money cannot be transferred to your bank account"})]})]})]})]})};export{u as F,h as P,d as a};

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.