1/*! For license information please see 8757.7dc6a93177b8edf3a895.js.LICENSE.txt */ 2"use strict";(self.webpackChunkdigital_world_trader=self.webpackChunkdigital_world_trader||[]).push([[8757],{78757:function(e,t,n){n.r(t),n.d(t,{default:function(){return h}}),n(35890);var a=n(96540),i=n.n(a),l=n(5556),r=n.n(l),o=n(15286),s=n.n(o),d=n(44471),c=n(35404),p=n(50211),f=n(56570),m=n(11775),x=n(29189),u=n(70806),g=n(96908),y=n(40542);const b={Clear:"#6c2eb7",Hawaiian:"#c0392b",Digital:"#2980b9",Utah:"#DE4C2C",Mexican:"#18442c",Aotearoa:"#1a7a6e",NewZealand:"#2e8b57"};function h({d:e,mobileOpen:t,setMobileOpen:n}){const[l,r]=(0,a.useState)("purchase"),[o,g]=(0,a.useState)(!1),h=e.session.account?.accountId?.()||"",E=(e.session.lifeWallets||[]).find(e=>e.address===h),k=E?.name||"Your Wallet",v=b[k]||"#1a6fa8",A=e=>({flex:1,padding:"10px 0",fontSize:"13px",fontWeight:600,border:"none",borderRadius:"8px",cursor:"pointer",background:l===e?v:"transparent",color:l===e?"#fff":"#666",transition:"background 0.2s, color 0.2s"});return i().createElement("div",{className:"admin-content-wrapper"},e.session.state===y.$t.IN&&i().createElement(m.A,{d:e,mobileOpen:t,setMobileOpen:n}),i().createElement("div",{className:"main-content"},i().createElement("div",{style:{maxWidth:"640px",margin:"40px auto",padding:"0 20px 60px"}},i().createElement("div",{style:{marginBottom:"28px"}},i().createElement("div",{style:{display:"flex",alignItems:"center",gap:"12px",marginBottom:"10px"}},i().createElement("div",{style:{width:"40px",height:"40px",borderRadius:"50%",background:v,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}},i().createElement("span",{style:{fontSize:"16px",fontWeight:700,color:"#fff"}},k[0]||"?")),i().createElement("div",null,i().createElement("h2",{style:{margin:0,fontSize:"20px",fontWeight:700,color:"#111"}},"Fund Your ",k," Wallet"),i().createElement("div",{style:{fontSize:"12px",color:"#888",marginTop:"2px",fontFamily:"monospace"}},h.slice(0,8),"â¦",h.slice(-6)))),i().createElement("div",{style:{padding:"12px 16px",background:"#fff8e1",border:"1px solid #ffc107",borderRadius:"10px",fontSize:"13px",color:"#7a5200",lineHeight:1.5}},"This wallet has insufficient NATIVE to operate â a minimum of"," ",i().createElement("strong",null,"0.01 NATIVE")," is required. Add funds using one of the options below.")),i().createElement("div",{style:{display:"flex",gap:"4px",padding:"4px",background:"#f0f0f0",borderRadius:"10px",marginBottom:"24px"}},i().createElement("button",{style:A("purchase"),onClick:()=>r("purchase")},i().createElement(p.A,{size:14,style:{marginRight:"6px",verticalAlign:"middle"}}),"Buy with Card / Bank"),i().createElement("button",{style:A("qr"),onClick:()=>r("qr")},i().createElement(f.A,{size:14,style:{marginRight:"6px",verticalAlign:"middle"}}),"Receive NATIVE")),"purchase"===l?i().createElement(x.A,{d:e,initialDestination:u.s6}):i().createElement("div",{style:{padding:"28px 24px",background:"#fff",border:"1px solid #e3e3e3",borderRadius:"12px",boxShadow:"0 4px 16px rgba(0,0,0,0.06)",display:"flex",flexDirection:"column",alignItems:"center",gap:"20px",textAlign:"center"}},i().createElement("div",null,i().createElement("div",{style:{fontSize:"15px",fontWeight:600,color:"#111",marginBottom:"4px"}},"Send NATIVE to this address"),i().createElement("div",{style:{fontSize:"12px",color:"#888"}},"Scan the QR code or copy the address below from any Digital World wallet or exchange.")),i().createElement("div",{style:{background:"#f8f9fa",borderRadius:"14px",padding:"16px",display:"inline-flex",alignItems:"center",justifyContent:"center"}},h?i().createElement(s(),{value:h,size:200,level:"M",includeMargin:!0}):i().createElement("div",{style:{width:200,height:200,display:"flex",alignItems:"center",justifyContent:"center",color:"#aaa",fontSize:"13px"}},"Loadingâ¦")),i().createElement("div",{style:{width:"100%"}},i().createElement("div",{style:{display:"flex",alignItems:"center",gap:"8px",background:"#f5f5f5",borderRadius:"8px",padding:"10px 14px",border:"1px solid #e0e0e0"}},i().createElement("span",{style:{flex:1,fontFamily:"monospace",fontSize:"12px",color:"#333",wordBreak:"break-all",textAlign:"left"}},h),i().createElement("button",{type:"button",onClick:()=>{navigator.clipboard.writeText(h).then(()=>{g(!0),setTimeout(()=>g(!1),2e3)})},style:{flexShrink:0,padding:"4px 10px",fontSize:"12px",fontWeight:600,borderRadius:"6px",border:"none",background:o?"#27a06e":v,color:"#fff",cursor:"pointer",display:"flex",alignItems:"center",gap:"4px",transition:"background 0.2s"}},o?i().createElement(i().Fragment,null,i().createElement(d.A,{size:12})," Copied"):i().createElement(i().Fragment,null,i().createElement(c.A,{size:12})," Copy")))),i().createElement("div",{style:{fontSize:"11px",color:"#aaa",maxWidth:"340px"}},"Only send NATIVE to this address. Sending other assets before establishing trustlines may result in loss.")))))}h.propTypes={d:r().instanceOf(g.A).isRequired,mobileOpen:r().bool,setMobileOpen:r().func}},44471:function(e,t,n){const a=(0,n(9407).A)("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);
2n.d(t,["A",0,a])},35404:function(e,t,n){const a=(0,n(9407).A)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);n.d(t,["A",0,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.