1import{j as s,s as t,r as p,aZ as B,d as F,t as f,cW as v,cX as w,cY as E}from"./BzwVwSBE.js";import{r as I,W as g,a7 as D,a8 as W}from"./DVH3kAwb.js";import"./D9Wk8YUy.js";import"./CQFAsBe2.js";import"./BLr9UT9i.js";import"./CgOVykMw.js";import"./DSDO4GPU.js";const y=t("span")({name:"Stack",class:"sm6kz4m",propsAsIs:!1}),o=t("span")({name:"IconCircle",class:"i1e7unv6",propsAsIs:!1}),r=(l,a)=>({"--wallet-icon-bg":l,"--wallet-icon-z":a}),c=t("span")({name:"InnerSvg",class:"ioqav8",propsAsIs:!1}),S=()=>s.jsxs("svg",{viewBox:"0 0 28.8 28.8",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,children:[s.jsx("path",{d:"M11.3878 13.1625L14.4 10.1503L17.4122 13.1653L19.1644 11.4131L14.4 6.64594L9.63563 11.4103L11.3878 13.1625Z",fill:"#F3BA2F"}),s.jsx("path",{d:"M6.64633 14.3986L8.39837 12.6465L10.1505 14.3985L8.39843 16.1507L6.64633 14.3986Z",fill:"#F3BA2F"}),s.jsx("path",{d:"M11.3878 15.6375L14.4 18.6497L17.4122 15.6347L19.1672 17.3869H19.1644L14.4 22.1541L9.63563 17.3897L9.63281 17.3869L11.3878 15.6375Z",fill:"#F3BA2F"}),s.jsx("path",{d:"M18.6489 14.4016L20.4009 12.6495L22.153 14.4015L20.401 16.1536L18.6489 14.4016Z",fill:"#F3BA2F"}),s.jsx("path",{d:"M16.1775 14.4L14.4 12.6197L13.0866 13.9359L12.9347 14.085L12.6225 14.3972L12.6197 14.4L12.6225 14.4028L14.4 16.1803L16.1775 14.4Z",fill:"#F3BA2F"})]}),b=()=>s.jsxs("svg",{viewBox:"0 0 16 14.4",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,children:[s.jsx("path",{d:"M15.042 0.173L8.94 4.566 10.066 1.975 15.042 0.173z",fill:"#E2761B"}),s.jsx("path",{d:"M0.951 0.173L7.006 4.607 5.934 1.975 0.951 0.173z",fill:"#E4761B"}),s.jsx("path",{d:"M12.847 10.358L11.221 12.772 14.699 13.697 15.7 10.409 12.847 10.358z",fill:"#E4761B"}),s.jsx("path",{d:"M0.307 10.409L1.301 13.697 4.779 12.772 3.153 10.358 0.307 10.409z",fill:"#E4761B"}),s.jsx("path",{d:"M4.583 6.277L3.614 7.7 7.067 7.85 6.945 4.25 4.583 6.277z",fill:"#E4761B"}),s.jsx("path",{d:"M11.41 6.277L9.019 4.209 8.94 7.85 12.386 7.7 11.41 6.277z",fill:"#E4761B"}),s.jsx("path",{d:"M4.779 12.772L6.853 11.788 5.062 10.434 4.779 12.772z",fill:"#E4761B"}),s.jsx("path",{d:"M9.14 11.788L11.221 12.772 10.931 10.434 9.14 11.788z",fill:"#E4761B"}),s.jsx("path",{d:"M11.221 12.772L9.14 11.788 9.308 13.104 9.287 13.655 11.221 12.772z",fill:"#D7C1B3"}),s.jsx("path",{d:"M4.779 12.772L6.713 13.655 6.699 13.104 6.853 11.788 4.779 12.772z",fill:"#D7C1B3"}),s.jsx("path",{d:"M6.742 9.568L5.012 9.072 6.234 8.532 6.742 9.568z",fill:"#233447"}),s.jsx("path",{d:"M9.251 9.568L9.762 8.532 10.988 9.072 9.251 9.568z",fill:"#233447"}),s.jsx("path",{d:"M4.779 12.772L5.072 10.358 3.153 10.409 4.779 12.772z",fill:"#CD6116"}),s.jsx("path",{d:"M10.928 10.358L11.221 12.772 12.847 10.409 10.928 10.358z",fill:"#CD6116"}),s.jsx("path",{d:"M12.386 7.7L8.94 7.85 9.258 9.568 9.766 8.532 10.995 9.072 12.386 7.7z",fill:"#CD6116"}),s.jsx("path",{d:"M5.012 9.072L6.241 8.532 6.742 9.568 7.067 7.85 3.614 7.7 5.012 9.072z",fill:"#CD6116"}),s.jsx("path",{d:"M3.614 7.7L5.062 10.434 5.012 9.072 3.614 7.7z",fill:"#E4751F"}),s.jsx("path",{d:"M10.995 9.072L10.931 10.434 12.386 7.7 10.995 9.072z",fill:"#E4751F"}),s.jsx("path",{d:"M7.067 7.85L6.742 9.568 7.149 11.594 7.239 8.923 7.067 7.85z",fill:"#E4751F"}),s.jsx("path",{d:"M8.94 7.85L8.772 8.916 8.847 11.594 9.258 9.568 8.94 7.85z",fill:"#E4751F"}),s.jsx("path",{d:"M9.258 9.568L8.847 11.594 9.14 11.788 10.931 10.434 10.995 9.072 9.258 9.568z",fill:"#F6851B"}),s.jsx("path",{d:"M5.012 9.072L5.062 10.434 6.853 11.788 7.149 11.594 6.742 9.568 5.012 9.072z",fill:"#F6851B"}),s.jsx("path",{d:"M9.287 13.655L9.308 13.104 9.155 12.973H6.842L6.699 13.104 6.713 13.655 4.779 12.772 5.455 13.305 6.824 14.227h2.349L10.545 13.305 11.221 12.772 9.287 13.655z",fill:"#C0AD9E"}),s.jsx("path",{d:"M9.14 11.788L8.847 11.594H7.149L6.853 11.788 6.699 13.104 6.842 12.973H9.155L9.308 13.104 9.14 11.788z",fill:"#161616"}),s.jsx("path",{d:"M15.299 4.853L15.821 2.425 15.042 0.173 9.14 4.417 11.41 6.277 14.62 7.188 15.331 6.384 15.024 6.173 15.514 5.736 15.135 5.452 15.625 5.089 15.299 4.853z",fill:"#763D16"}),s.jsx("path",{d:"M0.179 2.425L0.701 4.853 0.368 5.089 0.858 5.452 0.486 5.736 0.976 6.173 0.668
16.384 1.376 7.188 4.583 6.277 6.853 4.417 0.951 0.173 0.179 2.425z",fill:"#763D16"}),s.jsx("path",{d:"M14.62 7.188L11.41 6.277 12.386 7.7 10.931 10.434 12.847 10.409h2.853L14.62 7.188z",fill:"#F6851B"}),s.jsx("path",{d:"M4.583 6.277L1.376 7.188 0.307 10.409h2.846L5.062 10.434 3.614 7.7 4.583 6.277z",fill:"#F6851B"}),s.jsx("path",{d:"M8.94 7.85L9.14 4.417 10.073 1.975H5.934L6.853 4.417 7.067 7.85 7.142 8.93 7.149 11.594H8.847L8.858 8.93 8.94 7.85z",fill:"#F6851B"})]}),k=()=>s.jsxs("svg",{viewBox:"0 0 28.8 28.8",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,children:[s.jsx("path",{d:"M14.4 28.8C22.3529 28.8 28.8 22.3529 28.8 14.4C28.8 6.4471 22.3529 0 14.4 0C6.4471 0 0 6.4471 0 14.4C0 22.3529 6.4471 28.8 14.4 28.8Z",fill:"#0052FF"}),s.jsx("path",{d:"M14.5209 10.1765C16.2163 10.1765 17.5613 11.2222 18.072 12.7772H21.4875C20.8688 9.45253 18.1257 7.2 14.5482 7.2C10.4856 7.2 7.3125 10.2839 7.3125 14.4138C7.3125 18.5437 10.4063 21.6 14.5482 21.6C18.0456 21.6 20.8432 19.3475 21.4625 15.9953H18.0717C17.5874 17.5506 16.2436 18.6235 14.5471 18.6235C12.2063 18.6235 10.5657 16.8266 10.5657 14.4138C10.5668 11.9734 12.1809 10.1765 14.5209 10.1765Z",fill:"white"})]}),T=()=>s.jsxs(y,{children:[s.jsx(o,{style:r("#2D2936",3),children:s.jsx(c,{children:s.jsx(S,{})})}),s.jsx(o,{style:r("#FFFFFF",2),children:s.jsx(c,{children:s.jsx(b,{})})}),s.jsx(o,{style:r("#2D2936",1),children:s.jsx(c,{children:s.jsx(k,{})})})]}),_=t("button")({name:"Button",class:"b1eih0vj",propsAsIs:!1}),H=t("span")({name:"Label",class:"l18bznfn",propsAsIs:!1}),P=t("span")({name:"IconArea",class:"i5ycx3t",propsAsIs:!1}),Z=t("span")({name:"Avatar",class:"azw2fsy",propsAsIs:!1}),N=t("span")({name:"AvatarInitials",class:"a17zklon",propsAsIs:!1}),R=t("span")({name:"Chevron",class:"c4u880k",propsAsIs:!1}),Y={Trust:"Trust Wallet"},K=l=>l&&(Y[l]??l),O=({adapter:l,onPay:a,currency:n,network:i})=>{const L=B(),e=l.useIsConnected(),{connector:j}=D(),{walletInfo:M}=W(l.appKitNamespace),{formatMessage:z}=F(),h=p.useRef(!1);p.useEffect(()=>{h.current||(h.current=!0,f(v({isConnected:e,currency:n,network:i})))},[e,n,i]);const u=()=>{f(E({isConnected:e,currency:n,network:i})),a()},d=K(M?.name??j?.name),x=L?.WALLET_PAY_WALLET_FALLBACK??"wallet",A=e?d??x:x,C=z(L?.WALLET_PAY_BUTTON??"Deposit from {wallet}",{wallet:A}),m=d?.trim().charAt(0)??"";return s.jsxs(_,{type:"button",onClick:u,children:[s.jsx(H,{children:C}),s.jsx(P,{children:e?s.jsx(Z,{children:s.jsx(N,{"aria-hidden":!0,children:m||"â¢"})}):s.jsx(T,{})}),s.jsx(R,{children:s.jsx(w,{size:12})})]})},$=l=>{const a=I(l.network);return a?s.jsx(g,{children:s.jsx(p.Suspense,{fallback:null,children:s.jsx(O,{adapter:a,...l})})}):null};export{$ as DepositFromWalletButton}; 2//# sourceMappingURL=BRi-bD9K.js.map
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.