"use strict";(self.webpackChunkfrog=self.webpackChunkfrog||[]).push([[6353],{23832:(e,t,i)=>{var r=i(12618),n=i(12525),s=i(66955),o=function(e,t,i,r){var n,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,i,o):n(t,i))||o);return s>3&&o&&Object.defineProperty(t,i,o),o};const a=[{images:["login","profile","lock"],title:"One login for all of web3",text:"Log in to any app by connecting your wallet. Say goodbye to countless passwords!"},{images:["defi","nft","eth"],title:"A home for your digital assets",text:"A wallet lets you store, send and receive digital assets like cryptocurrencies and NFTs."},{images:["browser","noun","dao"],title:"Your gateway to a new web",text:"With your wallet, you can explore and interact with DeFi, NFTs, DAOs, and much more."}];let c=class extends r.WF{render(){return r.qy`
Get a wallet
`}onGetWallet(){n.En.sendEvent({type:"track",event:"CLICK_GET_WALLET"}),n.IN.push("GetWallet")}};c=o([(0,s.customElement)("w3m-what-is-a-wallet-view")],c)},24784:(e,t,i)=>{var r=i(12618),n=i(25707),s=i(12525),o=i(66955);const a=r.AH`
wui-avatar,
wui-image {
display: ruby;
width: 32px;
height: 32px;
border-radius: var(--wui-border-radius-3xl);
}
.sendButton {
width: 70%;
--local-width: 100% !important;
--local-border-radius: var(--wui-border-radius-xs) !important;
}
.cancelButton {
width: 30%;
--local-width: 100% !important;
--local-border-radius: var(--wui-border-radius-xs) !important;
}
`;var c=function(e,t,i,r){var n,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,i,o):n(t,i))||o);return s>3&&o&&Object.defineProperty(t,i,o),o};let l=class extends r.WF{constructor(){super(),this.unsubscribe=[],this.token=s.Rv.state.token,this.sendTokenAmount=s.Rv.state.sendTokenAmount,this.receiverAddress=s.Rv.state.receiverAddress,this.receiverProfileName=s.Rv.state.receiverProfileName,this.receiverProfileImageUrl=s.Rv.state.receiverProfileImageUrl,this.gasPriceInUSD=s.Rv.state.gasPriceInUSD,this.caipNetwork=s.WB.state.activeCaipNetwork,this.unsubscribe.push(s.Rv.subscribe((e=>{this.token=e.token,this.sendTokenAmount=e.sendTokenAmount,this.receiverAddress=e.receiverAddress,this.gasPriceInUSD=e.gasPriceInUSD,this.receiverProfileName=e.receiverProfileName,this.receiverProfileImageUrl=e.receiverProfileImageUrl})),s.WB.subscribeKey("activeCaipNetwork",(e=>this.caipNetwork=e)))}disconnectedCallback(){this.unsubscribe.forEach((e=>e()))}render(){return r.qy`
Send
${this.sendValueTemplate()}
To
Review transaction carefully
Cancel
Send
`}sendValueTemplate(){if(this.token&&this.sendTokenAmount){const e=this.token.price*this.sendTokenAmount;return r.qy`$${e.toFixed(2)}`}return null}onSendClick(){s.Rv.sendToken()}onCancelClick(){s.IN.goBack()}};l.styles=a,c([(0,n.wk)()],l.prototype,"token",void 0),c([(0,n.wk)()],l.prototype,"sendTokenAmount",void 0),c([(0,n.wk)()],l.prototype,"receiverAddress",void 0),c([(0,n.wk)()],l.prototype,"receiverProfileName",void 0),c([(0,n.wk)()],l.prototype,"receiverProfileImageUrl",void 0),c([(0,n.wk)()],l.prototype,"gasPriceInUSD",void 0),c([(0,n.wk)()],l.prototype,"caipNetwork",void 0),l=c([(0,o.customElement)("w3m-wallet-send-preview-view")],l)},40069:(e,t,i)=>{var r=i(12618),n=i(25707),s=i(12525),o=i(66955);const a=r.AH`
:host {
display: block;
}
wui-flex {
position: relative;
}
wui-icon-box {
width: 40px;
height: 40px;
border-radius: var(--wui-border-radius-xs) !important;
border: 5px solid var(--wui-color-bg-125);
background: var(--wui-color-bg-175);
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 3;
}
wui-button {
--local-border-radius: var(--wui-border-radius-xs) !important;
}
.inputContainer {
height: fit-content;
}
`;var c=function(e,t,i,r){var n,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,i,o):n(t,i))||o);return s>3&&o&&Object.defineProperty(t,i,o),o};let l=class extends r.WF{constructor(){super(),this.unsubscribe=[],this.token=s.Rv.state.token,this.sendTokenAmount=s.Rv.state.sendTokenAmount,this.receiverAddress=s.Rv.state.receiverAddress,this.receiverProfileName=s.Rv.state.receiverProfileName,this.loading=s.Rv.state.loading,this.gasPriceInUSD=s.Rv.state.gasPriceInUSD,this.gasPrice=s.Rv.state.gasPrice,this.message="Preview Send",this.fetchNetworkPrice(),this.fetchBalances(),this.unsubscribe.push(s.Rv.subscribe((e=>{this.token=e.token,this.sendTokenAmount=e.sendTokenAmount,this.receiverAddress=e.receiverAddress,this.gasPriceInUSD=e.gasPriceInUSD,this.receiverProfileName=e.receiverProfileName,this.loading=e.loading})))}disconnectedCallback(){this.unsubscribe.forEach((e=>e()))}render(){return this.getMessage(),r.qy`
${this.message}
`}async fetchBalances(){await s.Uj.fetchTokenBalance()}async fetchNetworkPrice(){await s.GN.getNetworkTokenPrice();const e=await s.GN.getInitialGasPrice();await s.Rv.fetchNetworkBalance(),e?.gasPrice&&e?.gasPriceInUSD&&(s.Rv.setGasPrice(e.gasPrice),s.Rv.setGasPriceInUsd(e.gasPriceInUSD))}onButtonClick(){s.IN.push("WalletSendPreview")}getMessage(){if(this.message="Preview Send",this.receiverAddress&&!s.wE.isAddress(this.receiverAddress,s.WB.state.activeChain)&&(this.message="Invalid Address"),this.receiverAddress||(this.message="Add Address"),s.Rv.hasInsufficientGasFunds()&&(this.message="Insufficient Gas Funds"),this.sendTokenAmount&&this.token&&this.sendTokenAmount>Number(this.token.quantity.numeric)&&(this.message="Insufficient Funds"),this.sendTokenAmount||(this.message="Add Amount"),this.sendTokenAmount&&this.token?.price){this.sendTokenAmount*this.token.price||(this.message="Incorrect Value")}this.token||(this.message="Select Token")}};l.styles=a,c([(0,n.wk)()],l.prototype,"token",void 0),c([(0,n.wk)()],l.prototype,"sendTokenAmount",void 0),c([(0,n.wk)()],l.prototype,"receiverAddress",void 0),c([(0,n.wk)()],l.prototype,"receiverProfileName",void 0),c([(0,n.wk)()],l.prototype,"loading",void 0),c([(0,n.wk)()],l.prototype,"gasPriceInUSD",void 0),c([(0,n.wk)()],l.prototype,"gasPrice",void 0),c([(0,n.wk)()],l.prototype,"message",void 0),l=c([(0,o.customElement)("w3m-wallet-send-view")],l)},43171:(e,t,i)=>{var r=i(12618),n=i(12525),s=i(66955),o=function(e,t,i,r){var n,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,i,o):n(t,i))||o);return s>3&&o&&Object.defineProperty(t,i,o),o};const a=[{images:["network","layers","system"],title:"The system’s nuts and bolts",text:"A network is what brings the blockchain to life, as this technical infrastructure allows apps to access the ledger and smart contract services."},{images:["noun","defiAlt","dao"],title:"Designed for different uses",text:"Each network is designed differently, and may therefore suit certain apps and experiences."}];let c=class extends r.WF{render(){return r.qy`
{n.wE.openHref("https://ethereum.org/en/developers/docs/networks/","_blank")}}
>
Learn more
`}};c=o([(0,s.customElement)("w3m-what-is-a-network-view")],c)},48649:(e,t,i)=>{var r=i(12618),n=i(12525),s=i(66955),o=function(e,t,i,r){var n,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,i,o):n(t,i))||o);return s>3&&o&&Object.defineProperty(t,i,o),o};let a=class extends r.WF{render(){return r.qy`
Quickly and easily buy digital assets!
Simply select your preferred onramp provider and add digital assets to your account
using your credit card or bank transfer
Buy
`}};a=o([(0,s.customElement)("w3m-what-is-a-buy-view")],a)},55172:(e,t,i)=>{var r=i(12618),n=i(25707),s=i(60031),o=i(12525),a=i(66955),c=i(41457);const l=r.AH`
wui-compatible-network {
margin-top: var(--wui-spacing-l);
}
`;var u=function(e,t,i,r){var n,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,i,o):n(t,i))||o);return s>3&&o&&Object.defineProperty(t,i,o),o};let d=class extends r.WF{constructor(){super(),this.unsubscribe=[],this.address=o.Uj.state.address,this.profileName=o.Uj.state.profileName,this.network=o.WB.state.activeCaipNetwork,this.preferredAccountType=o.Uj.state.preferredAccountType,this.unsubscribe.push(o.Uj.subscribe((e=>{e.address?(this.address=e.address,this.profileName=e.profileName,this.preferredAccountType=e.preferredAccountType):o.Pt.showError("Account not found")})),o.WB.subscribeKey("activeCaipNetwork",(e=>{e?.id&&(this.network=e)})))}disconnectedCallback(){this.unsubscribe.forEach((e=>e()))}render(){if(!this.address)throw new Error("w3m-wallet-receive-view: No account provided");const e=o.$m.getNetworkImage(this.network);return r.qy`
Copy your address or scan this QR code
${this.networkTemplate()}
`}networkTemplate(){const e=o.WB.getAllRequestedCaipNetworks(),t=o.WB.checkIfSmartAccountEnabled(),i=o.WB.state.activeCaipNetwork;if(this.preferredAccountType===c.Vl.ACCOUNT_TYPES.SMART_ACCOUNT&&t)return i?r.qy``:null;const n=e?.filter((e=>e?.assets?.imageId))?.slice(0,5),s=n.map(o.$m.getNetworkImage).filter(Boolean);return r.qy``}onReceiveClick(){o.IN.push("WalletCompatibleNetworks")}onCopyClick(){try{this.address&&(o.wE.copyToClopboard(this.address),o.Pt.showSuccess("Address copied"))}catch{o.Pt.showError("Failed to copy")}}};d.styles=l,u([(0,n.wk)()],d.prototype,"address",void 0),u([(0,n.wk)()],d.prototype,"profileName",void 0),u([(0,n.wk)()],d.prototype,"network",void 0),u([(0,n.wk)()],d.prototype,"preferredAccountType",void 0),d=u([(0,a.customElement)("w3m-wallet-receive-view")],d)},66283:(e,t,i)=>{var r=i(12618),n=i(25707),s=i(60031),o=i(12525),a=i(66955),c=i(41457);const l=r.AH`
:host > wui-flex {
max-height: clamp(360px, 540px, 80vh);
overflow: scroll;
scrollbar-width: none;
}
:host > wui-flex::-webkit-scrollbar {
display: none;
}
`;var u=function(e,t,i,r){var n,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,i,o):n(t,i))||o);return s>3&&o&&Object.defineProperty(t,i,o),o};let d=class extends r.WF{constructor(){super(),this.unsubscribe=[],this.preferredAccountType=o.Uj.state.preferredAccountType,this.unsubscribe.push(o.Uj.subscribeKey("preferredAccountType",(e=>{this.preferredAccountType=e})))}disconnectedCallback(){this.unsubscribe.forEach((e=>e()))}render(){return r.qy`
${this.networkTemplate()}
`}networkTemplate(){const e=o.WB.getAllRequestedCaipNetworks(),t=o.WB.getAllApprovedCaipNetworkIds(),i=o.WB.state.activeCaipNetwork,n=o.WB.checkIfSmartAccountEnabled();let a=o.wE.sortRequestedNetworks(t,e);if(n&&this.preferredAccountType===c.Vl.ACCOUNT_TYPES.SMART_ACCOUNT){if(!i)return null;a=[i]}return a.map((e=>r.qy`
`))}};d.styles=l,u([(0,n.wk)()],d.prototype,"preferredAccountType",void 0),d=u([(0,a.customElement)("w3m-wallet-compatible-networks-view")],d)},70800:(e,t,i)=>{var r=i(12618),n=i(25707),s=i(12525),o=i(66955);const a=r.AH`
.contentContainer {
height: 440px;
overflow: scroll;
scrollbar-width: none;
}
.contentContainer::-webkit-scrollbar {
display: none;
}
wui-icon-box {
width: 40px;
height: 40px;
border-radius: var(--wui-border-radius-xxs);
}
`;var c=function(e,t,i,r){var n,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,i,o):n(t,i))||o);return s>3&&o&&Object.defineProperty(t,i,o),o};let l=class extends r.WF{constructor(){super(),this.unsubscribe=[],this.tokenBalance=s.Uj.state.tokenBalance,this.search="",this.onDebouncedSearch=s.wE.debounce((e=>{this.search=e})),this.unsubscribe.push(s.Uj.subscribe((e=>{this.tokenBalance=e.tokenBalance})))}disconnectedCallback(){this.unsubscribe.forEach((e=>e()))}render(){return r.qy`
${this.templateSearchInput()} ${this.templateTokens()}
`}templateSearchInput(){return r.qy`
`}templateTokens(){return this.tokens=this.tokenBalance?.filter((e=>e.chainId===s.WB.state.activeCaipNetwork?.caipNetworkId)),this.search?this.filteredTokens=this.tokenBalance?.filter((e=>e.name.toLowerCase().includes(this.search.toLowerCase()))):this.filteredTokens=this.tokens,r.qy`
Your tokens
${this.filteredTokens&&this.filteredTokens.length>0?this.filteredTokens.map((e=>r.qy``)):r.qy`
No tokens found
Your tokens will appear here
Buy
`}
`}onBuyClick(){s.IN.push("OnRampProviders")}onInputChange(e){this.onDebouncedSearch(e.detail)}handleTokenClick(e){s.Rv.setToken(e),s.Rv.setTokenAmount(void 0),s.IN.goBack()}};l.styles=a,c([(0,n.wk)()],l.prototype,"tokenBalance",void 0),c([(0,n.wk)()],l.prototype,"tokens",void 0),c([(0,n.wk)()],l.prototype,"filteredTokens",void 0),c([(0,n.wk)()],l.prototype,"search",void 0),l=c([(0,o.customElement)("w3m-wallet-send-select-token-view")],l)}}]);