1import{c as d,r as o,j as e,H as u,B as a,x as h,I as i,F as y}from"./index-a0rleMNu.js";import{C as l,a as t,b as r,d as n}from"./card-DQKVYAD_.js";import{T as N,a as v,b as x,c as m}from"./tabs-pUA_k-X4.js";import{P as f}from"./plus-Bo0GxB15.js";import{C as b}from"./credit-card-BiqSFVt2.js";/** 2 * @license lucide-react v0.462.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const w=d("ArrowUpDown",[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]]);/** 7 * @license lucide-react v0.462.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */const S=d("History",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);/** 12 * @license lucide-react v0.462.0 - ISC 13 * 14 * This source code is licensed under the ISC license. 15 * See the LICENSE file in the root directory of this source tree. 16 */const k=d("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/** 17 * @license lucide-react v0.462.0 - ISC 18 * 19 * This source code is licensed under the ISC license. 20 * See the LICENSE file in the root directory of this source tree. 21 */const M=d("Wallet",[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]]),P=()=>{const[c]=o.useState({usd:1250.75,kes:125e3,zar:18500,ngn:525e3}),[j]=o.useState([{id:1,type:"payment",description:"Safari Lodge Booking - Maasai Mara",amount:-320,currency:"USD",date:"2024-01-15",status:"completed"},{id:2,type:"transfer",description:"Money transfer from Sarah J.",amount:150,currency:"USD",date:"2024-01-14",status:"completed"},{id:3,type:"exchange",description:"Currency exchange USD to KES",amount:-100,currency:"USD",date:"2024-01-13",status:"completed"}]),p=[{name:"M-Pesa",logo:"ð±",supported:!0},{name:"Airtel Money",logo:"ð±",supported:!0},{name:"Visa",logo:"ð³",supported:!0},{name:"Mastercard",logo:"ð³",supported:!0},{name:"Bank Transfer",logo:"ð¦",supported:!0}];return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx(u,{}),e.jsxs("main",{className:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-8 py-8",children:[e.jsxs("div",{className:"text-center mb-8",children:[e.jsxs("div",{className:"flex items-center justify-center gap-2 mb-4",children:[e.jsx(M,{className:"h-8 w-8 text-orange-600"}),e.jsx("h1",{className:"text-3xl font-bold text-gray-900",children:"Digital Wallet"})]}),e.jsx("p",{className:"text-lg text-gray-600",children:"Manage your travel funds, split costs, and pay seamlessly across Africa"})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8",children:[e.jsxs("div",{className:"lg:col-span-2 space-y-6",children:[e.jsxs(l,{children:[e.jsx(t,{children:e.jsx(r,{children:"Account Balance"})}),e.jsx(n,{children:e.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[e.jsxs("div",{className:"text-center p-4 bg-gray-50 rounded-lg",children:[e.jsxs("div",{className:"text-2xl font-bold text-gray-900",children:["$",c.usd.toLocaleString()]}),e.jsx("div",{className:"text-sm text-gray-600",children:"USD"})]}),e.jsxs("div",{className:"text-center p-4 bg-gray-50 rounded-lg",children:[e.jsxs("div",{className:"text-2xl font-bold text-gray-900",children:["KSh ",c.kes.toLocaleString()]}),e.jsx("div",{className:"text-sm text-gray-600",children:"Kenyan Shilling"})]}),e.jsxs("div",{className:"text-center p-4 bg-gray-50 rounded-lg",children:[e.jsxs("div",{className:"text-2xl font-bold text-gray-900",children:["R ",c.zar.toLocaleString()]}),e.jsx("div",{className:"text-sm text-gray-600",children:"South African Rand"})]}),e.jsxs("div",{className:"text-center p-4 bg-gray-50 rounded-lg",children:[e.jsxs("div",{className:"text-2xl font-bold text-gray-900",children:["⦠",c.ngn.toLocaleStr
vendor: 6,154 bytes, line 21
21ing()]}),e.jsx("div",{className:"text-sm text-gray-600",children:"Nigerian Naira"})]})]})})]}),e.jsxs(l,{children:[e.jsx(t,{children:e.jsx(r,{children:"Quick Actions"})}),e.jsx(n,{children:e.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[e.jsxs(a,{className:"h-20 flex flex-col items-center justify-center gap-2 bg-orange-600 hover:bg-orange-700 text-white",children:[e.jsx(f,{className:"h-6 w-6"}),e.jsx("span",{className:"text-sm",children:"Add Money"})]}),e.jsxs(a,{variant:"outline",className:"h-20 flex flex-col items-center justify-center gap-2",children:[e.jsx(k,{className:"h-6 w-6"}),e.jsx("span",{className:"text-sm",children:"Send Money"})]}),e.jsxs(a,{variant:"outline",className:"h-20 flex flex-col items-center justify-center gap-2",children:[e.jsx(w,{className:"h-6 w-6"}),e.jsx("span",{className:"text-sm",children:"Exchange"})]}),e.jsxs(a,{variant:"outline",className:"h-20 flex flex-col items-center justify-center gap-2",children:[e.jsx(b,{className:"h-6 w-6"}),e.jsx("span",{className:"text-sm",children:"Pay Bills"})]})]})})]}),e.jsxs(N,{defaultValue:"transactions",className:"w-full",children:[e.jsxs(v,{className:"grid w-full grid-cols-3",children:[e.jsx(x,{value:"transactions",children:"Transactions"}),e.jsx(x,{value:"split",children:"Split Costs"}),e.jsx(x,{value:"bnpl",children:"Buy Now, Pay Later"})]}),e.jsx(m,{value:"transactions",className:"space-y-4",children:e.jsxs(l,{children:[e.jsx(t,{children:e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsxs(r,{className:"flex items-center gap-2",children:[e.jsx(S,{className:"h-5 w-5"}),"Recent Transactions"]}),e.jsx(a,{variant:"outline",size:"sm",children:"View All"})]})}),e.jsx(n,{children:e.jsx("div",{className:"space-y-4",children:j.map(s=>e.jsxs("div",{className:"flex items-center justify-between p-4 border rounded-lg",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx("h4",{className:"font-medium text-gray-900",children:s.description}),e.jsx("p",{className:"text-sm text-gray-600",children:s.date})]}),e.jsxs("div",{className:"text-right",children:[e.jsxs("div",{className:`font-bold ${s.amount>0?"text-green-600":"text-red-600"}`,children:[s.amount>0?"+":"",s.amount," ",s.currency]}),e.jsx(h,{variant:"outline",className:"text-xs",children:s.status})]})]},s.id))})})]})}),e.jsx(m,{value:"split",className:"space-y-4",children:e.jsxs(l,{children:[e.jsx(t,{children:e.jsx(r,{children:"Split Travel Costs"})}),e.jsxs(n,{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-700 mb-2 block",children:"Expense Description"}),e.jsx(i,{placeholder:"e.g., Safari tour group booking"})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-700 mb-2 block",children:"Total Amount"}),e.jsx(i,{placeholder:"1200",type:"number"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-700 mb-2 block",children:"Split Between"}),e.jsx(i,{placeholder:"4 people",type:"number"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-700 mb-2 block",children:"Add People"}),e.jsx(i,{placeholder:"Enter email or phone numbers"})]}),e.jsx(a,{className:"w-full bg-orange-600 hover:bg-orange-700 text-white",children:"Create Split"})]})]})}),e.jsx(m,{value:"bnpl",className:"space-y-4",children:e.jsxs(l,{children:[e.jsx(t,{children:e.jsx(r,{children:"Buy Now, Pay Later Options"})}),e.jsx(n,{children:e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"p-4 border rounded-lg",children:[e.jsx("h4",{className:"font-semibold text-gray-900 mb-2",children:"3-Month Plan"}),e.jsx("p",{className:"text-gray-600 mb-3",children:"Split your travel expenses into 3 equal payments"}),e.jsx("div",{className:"text-sm text-gray-500",children:"No interest ⢠Setup fee: $5"})]}),e.jsxs("div",{className:"p-4 border rounded-lg",children:[e.jsx("h4",{className:"font-semibold text-gray-900 mb-2",children:"6-Month Plan"}),e.jsx("p",{className:"text-gray-600 mb-3",children:"Extended payment plan for larger expenses"}),e.jsx("div",{className:"text-sm text-gray-500",children:"2.9% APR ⢠Setup fee: $10"})]})]})})]})})]})]}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs(l,{children:[e.jsx(t,{children:e.jsx(r,{children:"Payment Methods"})}),e.jsxs(n,{children:[e.jsx("div",{className:"space-y-3",children:p.map((s,g)=>e.jsxs("div",{className:"flex items-center justify-between p-3 border rounded-lg",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("span",{className:"text-2xl",children:s.logo}),e.jsx("span",{className:"font-medium text-gray-900",children:s.name})]}),e.jsx(h,{variant:s.supported?"default":"outline",children:s.supported?"Connected":"Available"})]},g))}),e.jsx(a,{variant:"outline",className:"w-full mt-4",children:"Add Payment Method"})]})]}),e.jsxs(l,{children:[e.jsx(t,{children:e.jsx(r,{children:"Currency Exchange"})}),e.jsxs(n,{className:"space-y-4",children:[e.jsxs("div",{className:"text-center p-4 bg-green-50 rounded-lg",children:[e.jsx("div",{className:"text-lg font-semibold text-green-800",children:"Real-time Rates"}),e.jsx("div",{className:"text-sm text-green-600",children:"Updated every minute"})]}),e.jsxs("div",{className:"space-y-2 text-sm",children:[e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{children:"1 USD"}),e.jsx("span",{children:"125.50 KES"})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{children:"1 USD"}),e.jsx("span",{children:"18.75 ZAR"})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{children:"1 USD"}),e.jsx("span",{children:"420.00 NGN"})]})]}),e.jsx(a,{variant:"outline",className:"w-full",children:"Exchange Currency"})]})]}),e.jsxs(l,{children:[e.jsx(t,{children:e.jsx(r,{children:"Travel Budget Tracker"})}),e.jsx(n,{children:e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex justify-between items-center mb-2",children:[e.jsx("span",{className:"text-sm font-medium",children:"Kenya Tr
21ip Budget"}),e.jsx("span",{className:"text-sm text-gray-600",children:"75%"})]}),e.jsx("div",{className:"w-full bg-gray-200 rounded-full h-2",children:e.jsx("div",{className:"bg-orange-600 h-2 rounded-full",style:{width:"75%"}})}),e.jsxs("div",{className:"flex justify-between text-xs text-gray-600 mt-1",children:[e.jsx("span",{children:"$1,500 spent"}),e.jsx("span",{children:"$2,000 budget"})]})]}),e.jsx(a,{variant:"outline",size:"sm",className:"w-full",children:"Manage Budgets"})]})})]})]})]})]}),e.jsx(y,{})]})};export{P 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.