"use strict";(self.webpackChunkfrog=self.webpackChunkfrog||[]).push([[4101],{3778:(e,t,i)=>{var o=i(12618),r=i(12525),n=i(66955);const a=o.AH`
:host {
display: flex;
justify-content: center;
gap: var(--wui-spacing-2xl);
}
wui-visual-thumbnail:nth-child(1) {
z-index: 1;
}
`;var s=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a};let l=class extends o.WF{constructor(){super(...arguments),this.dappImageUrl=r.Hd.state.metadata?.icons,this.walletImageUrl=r.Uj.state.connectedWalletInfo?.icon}firstUpdated(){const e=this.shadowRoot?.querySelectorAll("wui-visual-thumbnail");e?.[0]&&this.createAnimation(e[0],"translate(18px)"),e?.[1]&&this.createAnimation(e[1],"translate(-18px)")}render(){return o.qy`
`}createAnimation(e,t){e.animate([{transform:"translateX(0px)"},{transform:t}],{duration:1600,easing:"cubic-bezier(0.56, 0, 0.48, 1)",direction:"alternate",iterations:1/0})}};l.styles=a,l=s([(0,n.customElement)("w3m-siwx-sign-message-thumbnails")],l)},9403:(e,t,i)=>{var o=i(12618),r=i(25707),n=i(6229),a=i(12525),s=i(66955);const l=o.AH`
:host > wui-flex {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
border-radius: var(--wui-border-radius-s);
background-color: var(--wui-color-gray-glass-002);
padding: var(--wui-spacing-xl);
padding-right: var(--wui-spacing-s);
width: 100%;
height: 100px;
box-sizing: border-box;
box-shadow: inset 0px 0px 0px 1px var(--wui-color-gray-glass-002);
position: relative;
transition: box-shadow var(--wui-ease-out-power-1) var(--wui-duration-lg);
will-change: background-color;
}
:host wui-flex.focus {
box-shadow: inset 0px 0px 0px 1px var(--wui-color-gray-glass-005);
}
:host > wui-flex .swap-input,
:host > wui-flex .swap-token-button {
z-index: 10;
}
:host > wui-flex .swap-input {
-webkit-mask-image: linear-gradient(
270deg,
transparent 0px,
transparent 8px,
black 24px,
black 25px,
black 32px,
black 100%
);
mask-image: linear-gradient(
270deg,
transparent 0px,
transparent 8px,
black 24px,
black 25px,
black 32px,
black 100%
);
}
:host > wui-flex .swap-input input {
background: none;
border: none;
height: 42px;
width: 100%;
font-size: 32px;
font-style: normal;
font-weight: 400;
line-height: 130%;
letter-spacing: -1.28px;
outline: none;
caret-color: var(--wui-color-accent-100);
color: var(--wui-color-fg-100);
padding: 0px;
}
:host > wui-flex .swap-input input:focus-visible {
outline: none;
}
:host > wui-flex .swap-input input::-webkit-outer-spin-button,
:host > wui-flex .swap-input input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
.max-value-button {
background-color: transparent;
border: none;
cursor: pointer;
color: var(--wui-color-gray-glass-020);
padding-left: 0px;
}
.market-value {
min-height: 18px;
}
`;var c=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a};let u=class extends o.WF{constructor(){super(...arguments),this.focused=!1,this.price=0,this.target="sourceToken",this.onSetAmount=null,this.onSetMaxValue=null}render(){const e=this.marketValue||"0",t=n.Se.bigNumber(e).gt("0");return o.qy`
this.onFocusChange(!0)}
@focusout=${()=>this.onFocusChange(!1)}
?disabled=${this.disabled}
.value=${this.value}
@input=${this.dispatchInputChangeEvent}
@keydown=${this.handleKeydown}
placeholder="0"
type="text"
inputmode="decimal"
/>
${t?`$${s.UiHelperUtil.formatNumberToLocalString(this.marketValue,2)}`:null}
${this.templateTokenSelectButton()}
`}handleKeydown(e){return n.t$.numericInputKeyDown(e,this.value,(e=>this.onSetAmount?.(this.target,e)))}dispatchInputChangeEvent(e){if(!this.onSetAmount)return;const t=e.target.value.replace(/[^0-9.]/gu,"");","===t||"."===t?this.onSetAmount(this.target,"0."):t.endsWith(",")?this.onSetAmount(this.target,t.replace(",",".")):this.onSetAmount(this.target,t)}setMaxValueToInput(){this.onSetMaxValue?.(this.target,this.balance)}templateTokenSelectButton(){return this.token?o.qy`
${this.tokenBalanceTemplate()}
`:o.qy`
Select token
`}tokenBalanceTemplate(){const e=n.Se.multiply(this.balance,this.price),t=!!e&&e?.gt(5e-5);return o.qy`
${t?o.qy`
${s.UiHelperUtil.formatNumberToLocalString(this.balance,2)}
`:null}
${"sourceToken"===this.target?this.tokenActionButtonTemplate(t):null}
`}tokenActionButtonTemplate(e){return e?o.qy` `:o.qy` `}onFocusChange(e){this.focused=e}onSelectToken(){a.En.sendEvent({type:"track",event:"CLICK_SELECT_TOKEN_TO_SWAP"}),a.IN.push("SwapSelectToken",{target:this.target})}onBuyToken(){a.IN.push("OnRampProviders")}};u.styles=[l],c([(0,r.MZ)()],u.prototype,"focused",void 0),c([(0,r.MZ)()],u.prototype,"balance",void 0),c([(0,r.MZ)()],u.prototype,"value",void 0),c([(0,r.MZ)()],u.prototype,"price",void 0),c([(0,r.MZ)()],u.prototype,"marketValue",void 0),c([(0,r.MZ)()],u.prototype,"disabled",void 0),c([(0,r.MZ)()],u.prototype,"target",void 0),c([(0,r.MZ)()],u.prototype,"token",void 0),c([(0,r.MZ)()],u.prototype,"onSetAmount",void 0),c([(0,r.MZ)()],u.prototype,"onSetMaxValue",void 0),u=c([(0,s.customElement)("w3m-swap-input")],u)},17968:(e,t,i)=>{var o=i(12618),r=i(25707),n=i(60031),a=(i(6229),i(12525)),s=i(66955);const l=o.AH`
:host {
display: flex;
width: auto;
flex-direction: column;
gap: var(--wui-border-radius-1xs);
border-radius: var(--wui-border-radius-s);
background: var(--wui-color-gray-glass-002);
padding: var(--wui-spacing-s) var(--wui-spacing-1xs) var(--wui-spacing-1xs)
var(--wui-spacing-1xs);
}
wui-text {
padding: 0 var(--wui-spacing-1xs);
}
wui-flex {
margin-top: var(--wui-spacing-1xs);
}
.network {
cursor: pointer;
transition: background-color var(--wui-ease-out-power-1) var(--wui-duration-lg);
will-change: background-color;
}
.network:focus-visible {
border: 1px solid var(--wui-color-accent-100);
background-color: var(--wui-color-gray-glass-005);
-webkit-box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue);
-moz-box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue);
box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue);
}
.network:hover {
background-color: var(--wui-color-gray-glass-005);
}
.network:active {
background-color: var(--wui-color-gray-glass-010);
}
`;var c=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a};let u=class extends o.WF{render(){return o.qy` Details
${this.networkTemplate()}
`}networkTemplate(){return this.caipNetwork?.name?o.qy` this.onNetworkClick(this.caipNetwork)}
class="network"
textTitle="Network"
imageSrc=${(0,n.J)(a.$m.getNetworkImage(this.caipNetwork))}
>`:null}onNetworkClick(e){e&&a.IN.push("Networks",{network:e})}};u.styles=l,c([(0,r.MZ)()],u.prototype,"receiverAddress",void 0),c([(0,r.MZ)({type:Object})],u.prototype,"caipNetwork",void 0),c([(0,r.MZ)({type:Number})],u.prototype,"networkFee",void 0),u=c([(0,s.customElement)("w3m-wallet-send-details")],u)},46524:(e,t,i)=>{var o=i(12618),r=i(12525),n=i(66955);const a=o.AH`
wui-flex {
background-color: var(--wui-color-gray-glass-005);
}
a {
text-decoration: none;
color: var(--wui-color-fg-175);
font-weight: 500;
}
`;var s=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a};let l=class extends o.WF{render(){const{termsConditionsUrl:e,privacyPolicyUrl:t}=r.Hd.state,i=r.Hd.state.features?.legalCheckbox;return e||t?i?null:o.qy`
By connecting your wallet, you agree to our
${this.termsTemplate()} ${this.andTemplate()} ${this.privacyTemplate()}
`:null}andTemplate(){const{termsConditionsUrl:e,privacyPolicyUrl:t}=r.Hd.state;return e&&t?"and":""}termsTemplate(){const{termsConditionsUrl:e}=r.Hd.state;return e?o.qy`Terms of Service`:null}privacyTemplate(){const{privacyPolicyUrl:e}=r.Hd.state;return e?o.qy`Privacy Policy`:null}};l.styles=[a],l=s([(0,n.customElement)("w3m-legal-footer")],l)},53261:(e,t,i)=>{var o=i(12618),r=i(12525),n=i(66955),a=i(41457);const s=o.AH`
wui-flex {
border-top: 1px solid var(--wui-color-gray-glass-005);
}
a {
text-decoration: none;
color: var(--wui-color-fg-175);
font-weight: 500;
display: flex;
align-items: center;
justify-content: center;
gap: var(--wui-spacing-3xs);
}
`;var l=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a};let c=class extends o.WF{render(){const{termsConditionsUrl:e,privacyPolicyUrl:t}=r.Hd.state;return e||t?o.qy`
We work with the best providers to give you the lowest fees and best support. More options
coming soon!
${this.howDoesItWorkTemplate()}
`:null}howDoesItWorkTemplate(){return o.qy`
How does it work?
`}onWhatIsBuy(){r.En.sendEvent({type:"track",event:"SELECT_WHAT_IS_A_BUY",properties:{isSmartAccount:r.Uj.state.preferredAccountType===a.Vl.ACCOUNT_TYPES.SMART_ACCOUNT}}),r.IN.push("WhatIsABuy")}};c.styles=[s],c=l([(0,n.customElement)("w3m-onramp-providers-footer")],c)},54073:(e,t,i)=>{var o=i(12618),r=i(25707),n=i(66955),a=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a};let s=class extends o.WF{constructor(){super(...arguments),this.data=[]}render(){return o.qy`
${this.data.map((e=>o.qy`
${e.images.map((e=>o.qy``))}
${e.title}
${e.text}
`))}
`}};a([(0,r.MZ)({type:Array})],s.prototype,"data",void 0),s=a([(0,n.customElement)("w3m-help-widget")],s)},56090:(e,t,i)=>{var o=i(12618),r=i(25707),n=i(12525),a=i(66955);const s=o.AH`
:host {
pointer-events: none;
}
:host > wui-flex {
display: var(--w3m-tooltip-display);
opacity: var(--w3m-tooltip-opacity);
padding: 9px var(--wui-spacing-s) 10px var(--wui-spacing-s);
border-radius: var(--wui-border-radius-xxs);
color: var(--wui-color-bg-100);
position: fixed;
top: var(--w3m-tooltip-top);
left: var(--w3m-tooltip-left);
transform: translate(calc(-50% + var(--w3m-tooltip-parent-width)), calc(-100% - 8px));
max-width: calc(var(--w3m-modal-width) - var(--wui-spacing-xl));
transition: opacity 0.2s var(--wui-ease-out-power-2);
will-change: opacity;
}
:host([data-variant='shade']) > wui-flex {
background-color: var(--wui-color-bg-150);
border: 1px solid var(--wui-color-gray-glass-005);
}
:host([data-variant='shade']) > wui-flex > wui-text {
color: var(--wui-color-fg-150);
}
:host([data-variant='fill']) > wui-flex {
background-color: var(--wui-color-fg-100);
border: none;
}
wui-icon {
position: absolute;
width: 12px !important;
height: 4px !important;
color: var(--wui-color-bg-150);
}
wui-icon[data-placement='top'] {
bottom: 0px;
left: 50%;
transform: translate(-50%, 95%);
}
wui-icon[data-placement='bottom'] {
top: 0;
left: 50%;
transform: translate(-50%, -95%) rotate(180deg);
}
wui-icon[data-placement='right'] {
top: 50%;
left: 0;
transform: translate(-65%, -50%) rotate(90deg);
}
wui-icon[data-placement='left'] {
top: 50%;
right: 0%;
transform: translate(65%, -50%) rotate(270deg);
}
`;var l=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a};let c=class extends o.WF{constructor(){super(),this.unsubscribe=[],this.open=n.Ib.state.open,this.message=n.Ib.state.message,this.triggerRect=n.Ib.state.triggerRect,this.variant=n.Ib.state.variant,this.unsubscribe.push(n.Ib.subscribe((e=>{this.open=e.open,this.message=e.message,this.triggerRect=e.triggerRect,this.variant=e.variant})))}disconnectedCallback(){this.unsubscribe.forEach((e=>e()))}render(){this.dataset.variant=this.variant;const e=this.triggerRect.top,t=this.triggerRect.left;return this.style.cssText=`\n --w3m-tooltip-top: ${e}px;\n --w3m-tooltip-left: ${t}px;\n --w3m-tooltip-parent-width: ${this.triggerRect.width/2}px;\n --w3m-tooltip-display: ${this.open?"flex":"none"};\n --w3m-tooltip-opacity: ${this.open?1:0};\n `,o.qy`
${this.message}
`}};c.styles=[s],l([(0,r.wk)()],c.prototype,"open",void 0),l([(0,r.wk)()],c.prototype,"message",void 0),l([(0,r.wk)()],c.prototype,"triggerRect",void 0),l([(0,r.wk)()],c.prototype,"variant",void 0),c=l([(0,a.customElement)("w3m-tooltip")],c)},58861:(e,t,i)=>{var o=i(12618),r=i(25707),n=i(60031),a=i(12525),s=i(66955);const l=o.AH`
wui-flex {
width: 100%;
}
.wallet-guide {
width: 100%;
}
.chip-box {
width: fit-content;
background-color: var(--wui-color-gray-glass-005);
border-radius: var(--wui-border-radius-3xl);
}
`;var c=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a};let u=class extends o.WF{constructor(){super(...arguments),this.walletGuide="get-started"}render(){return"explore"===this.walletGuide?o.qy`
Looking for a self-custody wallet?
`:o.qy`
Haven't got a wallet?
Get started
`}onGetStarted(){a.IN.push("Create")}};u.styles=l,c([(0,r.MZ)()],u.prototype,"tabIdx",void 0),c([(0,r.MZ)()],u.prototype,"walletGuide",void 0),u=c([(0,s.customElement)("w3m-wallet-guide")],u)},59537:(e,t,i)=>{var o=i(12618),r=i(25707),n=i(60031),a=i(6229),s=i(12525),l=i(66955),c=i(86211);const u=o.AH`
wui-separator {
margin: var(--wui-spacing-m) calc(var(--wui-spacing-m) * -1) var(--wui-spacing-m)
calc(var(--wui-spacing-m) * -1);
width: calc(100% + var(--wui-spacing-s) * 2);
}
`;var p=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a};let d=class extends o.WF{constructor(){super(),this.unsubscribe=[],this.walletGuide="get-started",this.tabIdx=void 0,this.connectors=s.aK.state.connectors,this.features=s.Hd.state.features,this.authConnector=this.connectors.find((e=>"AUTH"===e.type)),this.unsubscribe.push(s.aK.subscribeKey("connectors",(e=>{this.connectors=e,this.authConnector=this.connectors.find((e=>"AUTH"===e.type))})),s.Hd.subscribeKey("features",(e=>this.features=e)))}disconnectedCallback(){this.unsubscribe.forEach((e=>e()))}render(){return o.qy`
${this.topViewTemplate()}${this.bottomViewTemplate()}
`}topViewTemplate(){const e="explore"===this.walletGuide;let t=this.features?.socials;return!t&&e?(t=s.oU.DEFAULT_FEATURES.socials,this.renderTopViewContent(t)):t?this.renderTopViewContent(t):null}renderTopViewContent(e){return 2===e.length?o.qy`
${e.slice(0,2).map((e=>o.qy`{this.onSocialClick(e)}}
logo=${e}
tabIdx=${(0,n.J)(this.tabIdx)}
>`))}
`:o.qy` {this.onSocialClick(e[0])}}
logo=${(0,n.J)(e[0])}
align="center"
name=${`Continue with ${e[0]}`}
tabIdx=${(0,n.J)(this.tabIdx)}
>`}bottomViewTemplate(){let e=this.features?.socials;const t="explore"===this.walletGuide;return(!this.authConnector||!e||!e?.length)&&t&&(e=s.oU.DEFAULT_FEATURES.socials),e?e.length<=2?null:e&&e.length>6?o.qy`
${e.slice(1,5).map((e=>o.qy`{this.onSocialClick(e)}}
logo=${e}
tabIdx=${(0,n.J)(this.tabIdx)}
>`))}
`:e?o.qy`
${e.slice(1,e.length).map((e=>o.qy`{this.onSocialClick(e)}}
logo=${e}
tabIdx=${(0,n.J)(this.tabIdx)}
>`))}
`:null:null}onMoreSocialsClick(){s.IN.push("ConnectSocials")}async onSocialClick(e){if(!a.oU.AUTH_CONNECTOR_SUPPORTED_CHAINS.find((e=>e===s.WB.state.activeChain))){const e=s.WB.getFirstCaipNetworkSupportsAuthConnector();if(e)return void s.IN.push("SwitchNetwork",{network:e})}if(e&&(s.Uj.setSocialProvider(e,s.WB.state.activeChain),s.En.sendEvent({type:"track",event:"SOCIAL_LOGIN_STARTED",properties:{provider:e}})),e===c.iV.Farcaster){s.IN.push("ConnectingFarcaster");const e=s.aK.getAuthConnector();if(e&&!s.Uj.state.farcasterUrl)try{const{url:t}=await e.provider.getFarcasterUri();s.Uj.setFarcasterUrl(t,s.WB.state.activeChain)}catch(e){s.IN.goBack(),s.Pt.showError(e)}}else{s.IN.push("ConnectingSocial");const t=s.aK.getAuthConnector();this.popupWindow=s.wE.returnOpenHref("","popupWindow","width=600,height=800,scrollbars=yes");try{if(t&&e){const{uri:i}=await t.provider.getSocialRedirectUri({provider:e});if(!this.popupWindow||!i)throw this.popupWindow?.close(),new Error("Something went wrong");s.Uj.setSocialWindow(this.popupWindow,s.WB.state.activeChain),this.popupWindow.location.href=i}}catch(e){this.popupWindow?.close(),s.Pt.showError("Something went wrong")}}}};d.styles=u,p([(0,r.MZ)()],d.prototype,"walletGuide",void 0),p([(0,r.MZ)()],d.prototype,"tabIdx",void 0),p([(0,r.wk)()],d.prototype,"connectors",void 0),p([(0,r.wk)()],d.prototype,"features",void 0),p([(0,r.wk)()],d.prototype,"authConnector",void 0),d=p([(0,l.customElement)("w3m-social-login-widget")],d)},61372:(e,t,i)=>{var o=i(12618),r=i(25707),n=i(12525),a=i(66955);const s=o.AH`
:host {
display: block;
padding: 0 var(--wui-spacing-xl) var(--wui-spacing-xl);
}
`;var l=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a};let c=class extends o.WF{constructor(){super(...arguments),this.wallet=void 0}render(){if(!this.wallet)return this.style.display="none",null;const{name:e,app_store:t,play_store:i,chrome_store:r,homepage:s}=this.wallet,l=n.wE.isMobile(),c=n.wE.isIos(),u=n.wE.isAndroid(),p=[t,i,s,r].filter(Boolean).length>1,d=a.UiHelperUtil.getTruncateString({string:e,charsStart:12,charsEnd:0,truncate:"end"});return p&&!l?o.qy`
n.IN.push("Downloads",{wallet:this.wallet})}
>
`:!p&&s?o.qy`
`:t&&c?o.qy`
`:i&&u?o.qy`
`:(this.style.display="none",null)}onAppStore(){this.wallet?.app_store&&n.wE.openHref(this.wallet.app_store,"_blank")}onPlayStore(){this.wallet?.play_store&&n.wE.openHref(this.wallet.play_store,"_blank")}onHomePage(){this.wallet?.homepage&&n.wE.openHref(this.wallet.homepage,"_blank")}};c.styles=[s],l([(0,r.MZ)({type:Object})],c.prototype,"wallet",void 0),c=l([(0,a.customElement)("w3m-mobile-download-links")],c)},62551:(e,t,i)=>{var o=i(12618),r=i(25707),n=i(60031),a=i(66955),s=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a};let l=class extends o.WF{constructor(){super(...arguments),this.tabIdx=void 0}render(){return o.qy`
`}};s([(0,r.MZ)()],l.prototype,"tabIdx",void 0),l=s([(0,a.customElement)("w3m-wallet-login-list")],l)},66741:(e,t,i)=>{var o=i(12618),r=i(25707),n=i(60031),a=i(12525),s=i(66955),l=i(86211);const c=o.AH`
:host {
margin-top: var(--wui-spacing-3xs);
}
wui-separator {
margin: var(--wui-spacing-m) calc(var(--wui-spacing-m) * -1) var(--wui-spacing-xs)
calc(var(--wui-spacing-m) * -1);
width: calc(100% + var(--wui-spacing-s) * 2);
}
`;var u=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a};let p=class extends o.WF{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=a.aK.state.connectors,this.authConnector=this.connectors.find((e=>"AUTH"===e.type)),this.features=a.Hd.state.features,this.unsubscribe.push(a.aK.subscribeKey("connectors",(e=>{this.connectors=e,this.authConnector=this.connectors.find((e=>"AUTH"===e.type))})),a.Hd.subscribeKey("features",(e=>this.features=e)))}disconnectedCallback(){this.unsubscribe.forEach((e=>e()))}render(){let e=this.features?.socials||[];const t=Boolean(this.authConnector),i=e?.length,r="ConnectSocials"===a.IN.state.view;return t&&i||r?(r&&!i&&(e=a.oU.DEFAULT_FEATURES.socials),o.qy`
${e.map((e=>o.qy`{this.onSocialClick(e)}}
name=${e}
logo=${e}
tabIdx=${(0,n.J)(this.tabIdx)}
>`))}
`):null}async onSocialClick(e){if(e&&(a.Uj.setSocialProvider(e,a.WB.state.activeChain),a.En.sendEvent({type:"track",event:"SOCIAL_LOGIN_STARTED",properties:{provider:e}})),e===l.iV.Farcaster){a.IN.push("ConnectingFarcaster");const e=a.aK.getAuthConnector();if(e&&!a.Uj.state.farcasterUrl)try{const{url:t}=await e.provider.getFarcasterUri();a.Uj.setFarcasterUrl(t,a.WB.state.activeChain)}catch(e){a.IN.goBack(),a.Pt.showError(e)}}else{a.IN.push("ConnectingSocial");const t=a.aK.getAuthConnector();this.popupWindow=a.wE.returnOpenHref("","popupWindow","width=600,height=800,scrollbars=yes");try{if(t&&e){const{uri:i}=await t.provider.getSocialRedirectUri({provider:e});if(!this.popupWindow||!i)throw this.popupWindow?.close(),new Error("Something went wrong");a.Uj.setSocialWindow(this.popupWindow,a.WB.state.activeChain),this.popupWindow.location.href=i}}catch(e){this.popupWindow?.close(),a.Pt.showError("Something went wrong")}}}};p.styles=c,u([(0,r.MZ)()],p.prototype,"tabIdx",void 0),u([(0,r.wk)()],p.prototype,"connectors",void 0),u([(0,r.wk)()],p.prototype,"authConnector",void 0),u([(0,r.wk)()],p.prototype,"features",void 0),p=u([(0,s.customElement)("w3m-social-login-list")],p)},68652:(e,t,i)=>{var o=i(12618),r=i(25707),n=i(12525),a=i(66955);const s=o.AH`
:host {
display: block;
position: absolute;
opacity: 0;
pointer-events: none;
top: 11px;
left: 50%;
width: max-content;
}
`;var l=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a};const c={loading:void 0,success:{backgroundColor:"success-100",iconColor:"success-100",icon:"checkmark"},error:{backgroundColor:"error-100",iconColor:"error-100",icon:"close"}};let u=class extends o.WF{constructor(){super(),this.unsubscribe=[],this.timeout=void 0,this.open=n.Pt.state.open,this.unsubscribe.push(n.Pt.subscribeKey("open",(e=>{this.open=e,this.onOpen()})))}disconnectedCallback(){clearTimeout(this.timeout),this.unsubscribe.forEach((e=>e()))}render(){const{message:e,variant:t,svg:i}=n.Pt.state,r=c[t],{icon:a,iconColor:s}=i??r??{};return o.qy`
`}onOpen(){clearTimeout(this.timeout),this.open?(this.animate([{opacity:0,transform:"translateX(-50%) scale(0.85)"},{opacity:1,transform:"translateX(-50%) scale(1)"}],{duration:150,fill:"forwards",easing:"ease"}),this.timeout&&clearTimeout(this.timeout),n.Pt.state.autoClose&&(this.timeout=setTimeout((()=>n.Pt.hide()),2500))):this.animate([{opacity:1,transform:"translateX(-50%) scale(1)"},{opacity:0,transform:"translateX(-50%) scale(0.85)"}],{duration:150,fill:"forwards",easing:"ease"})}};u.styles=s,l([(0,r.wk)()],u.prototype,"open",void 0),u=l([(0,a.customElement)("w3m-snackbar")],u)},70387:(e,t,i)=>{var o=i(12618),r=i(25707),n=i(6229),a=i(12525),s=i(66955);const l=o.AH`
:host {
width: 100%;
height: 100px;
border-radius: var(--wui-border-radius-s);
border: 1px solid var(--wui-color-gray-glass-002);
background-color: var(--wui-color-gray-glass-002);
transition: background-color var(--wui-ease-out-power-1) var(--wui-duration-lg);
will-change: background-color;
}
:host(:hover) {
background-color: var(--wui-color-gray-glass-005);
}
wui-flex {
width: 100%;
height: fit-content;
}
wui-button {
width: 100%;
display: flex;
justify-content: flex-end;
}
wui-input-amount {
mask-image: linear-gradient(
270deg,
transparent 0px,
transparent 8px,
black 24px,
black 25px,
black 32px,
black 100%
);
}
.totalValue {
width: 100%;
}
`;var c=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a};let u=class extends o.WF{render(){return o.qy`
${this.buttonTemplate()}
${this.sendValueTemplate()}
${this.maxAmountTemplate()} ${this.actionTemplate()}
`}buttonTemplate(){return this.token?o.qy`
`:o.qy`Select token`}handleSelectButtonClick(){a.IN.push("WalletSendSelectToken")}sendValueTemplate(){if(this.token&&this.sendTokenAmount){const e=this.token.price*this.sendTokenAmount;return o.qy`${e?`$${s.UiHelperUtil.formatNumberToLocalString(e,2)}`:"Incorrect value"}`}return null}maxAmountTemplate(){return this.token?this.sendTokenAmount&&this.sendTokenAmount>Number(this.token.quantity.numeric)?o.qy`
${s.UiHelperUtil.roundNumber(Number(this.token.quantity.numeric),6,5)}
`:o.qy`
${s.UiHelperUtil.roundNumber(Number(this.token.quantity.numeric),6,5)}
`:null}actionTemplate(){return this.token?this.sendTokenAmount&&this.sendTokenAmount>Number(this.token.quantity.numeric)?o.qy`Buy`:o.qy`Max`:null}onInputChange(e){a.Rv.setTokenAmount(e.detail)}onMaxClick(){if(this.token&&void 0!==this.gasPrice){const e=void 0===this.token.address||Object.values(a.oU.NATIVE_TOKEN_ADDRESS).some((e=>this.token?.address===e)),t=n.Se.bigNumber(this.gasPrice).div(n.Se.bigNumber(10).pow(Number(this.token.quantity.decimals))),i=e?n.Se.bigNumber(this.token.quantity.numeric).minus(t):n.Se.bigNumber(this.token.quantity.numeric);a.Rv.setTokenAmount(Number(i.toFixed(20)))}}onBuyClick(){a.IN.push("OnRampProviders")}};u.styles=l,c([(0,r.MZ)({type:Object})],u.prototype,"token",void 0),c([(0,r.MZ)({type:Number})],u.prototype,"sendTokenAmount",void 0),c([(0,r.MZ)({type:Number})],u.prototype,"gasPriceInUSD",void 0),c([(0,r.MZ)({type:Number})],u.prototype,"gasPrice",void 0),u=c([(0,s.customElement)("w3m-input-token")],u)},78509:(e,t,i)=>{var o=i(12618),r=i(25707),n=i(12525),a=i(66955);const s=o.AH`
:host {
width: 100%;
display: block;
}
`;var l=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a};let c=class extends o.WF{constructor(){super(),this.unsubscribe=[],this.text="",this.open=n.Ib.state.open,this.unsubscribe.push(n.IN.subscribeKey("view",(()=>{n.Ib.hide()})),n.W3.subscribeKey("open",(e=>{e||n.Ib.hide()})),n.Ib.subscribeKey("open",(e=>{this.open=e})))}disconnectedCallback(){this.unsubscribe.forEach((e=>e())),n.Ib.hide()}render(){return o.qy`
${this.renderChildren()}
`}renderChildren(){return o.qy` `}onMouseEnter(){const e=this.getBoundingClientRect();this.open||n.Ib.showTooltip({message:this.text,triggerRect:{width:e.width,height:e.height,left:e.left,top:e.top},variant:"shade"})}onMouseLeave(e){this.contains(e.relatedTarget)||n.Ib.hide()}};c.styles=[s],l([(0,r.MZ)()],c.prototype,"text",void 0),l([(0,r.wk)()],c.prototype,"open",void 0),c=l([(0,a.customElement)("w3m-tooltip-trigger")],c)},78796:(e,t,i)=>{var o=i(12618),r=i(25707),n=i(12525),a=i(66955);const s=o.AH`
:host {
width: 100%;
}
:host > wui-flex {
width: 100%;
padding: var(--wui-spacing-s);
border-radius: var(--wui-border-radius-xs);
width: 100%;
display: flex;
align-items: center;
justify-content: flex-start;
gap: var(--wui-spacing-s);
}
:host > wui-flex:hover {
background-color: var(--wui-color-gray-glass-002);
}
.purchase-image-container {
display: flex;
justify-content: center;
align-items: center;
position: relative;
width: var(--wui-icon-box-size-lg);
height: var(--wui-icon-box-size-lg);
}
.purchase-image-container wui-image {
width: 100%;
height: 100%;
position: relative;
border-radius: calc(var(--wui-icon-box-size-lg) / 2);
}
.purchase-image-container wui-image::after {
content: '';
display: block;
width: 100%;
height: 100%;
position: absolute;
inset: 0;
border-radius: calc(var(--wui-icon-box-size-lg) / 2);
box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005);
}
.purchase-image-container wui-icon-box {
position: absolute;
right: 0;
bottom: 0;
transform: translate(20%, 20%);
}
`;var l=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a};let c=class extends o.WF{constructor(){super(...arguments),this.disabled=!1,this.color="inherit",this.label="Bought",this.purchaseValue="",this.purchaseCurrency="",this.date="",this.completed=!1,this.inProgress=!1,this.failed=!1,this.onClick=null,this.symbol=""}firstUpdated(){this.icon||this.fetchTokenImage()}render(){return o.qy`
${this.imageTemplate()}
${this.statusIconTemplate()}
${this.label}
+ ${this.purchaseValue} ${this.purchaseCurrency}
${this.inProgress?o.qy``:o.qy`${this.date}`}
`}async fetchTokenImage(){await n.Np._fetchTokenImage(this.purchaseCurrency)}statusIconTemplate(){return this.inProgress?null:this.completed?this.boughtIconTemplate():this.errorIconTemplate()}errorIconTemplate(){return o.qy``}imageTemplate(){const e=this.icon||`https://avatar.vercel.sh/andrew.svg?size=50&text=${this.symbol}`;return o.qy`
`}boughtIconTemplate(){return o.qy``}};c.styles=[s],l([(0,r.MZ)({type:Boolean})],c.prototype,"disabled",void 0),l([(0,r.MZ)()],c.prototype,"color",void 0),l([(0,r.MZ)()],c.prototype,"label",void 0),l([(0,r.MZ)()],c.prototype,"purchaseValue",void 0),l([(0,r.MZ)()],c.prototype,"purchaseCurrency",void 0),l([(0,r.MZ)()],c.prototype,"date",void 0),l([(0,r.MZ)({type:Boolean})],c.prototype,"completed",void 0),l([(0,r.MZ)({type:Boolean})],c.prototype,"inProgress",void 0),l([(0,r.MZ)({type:Boolean})],c.prototype,"failed",void 0),l([(0,r.MZ)()],c.prototype,"onClick",void 0),l([(0,r.MZ)()],c.prototype,"symbol",void 0),l([(0,r.MZ)()],c.prototype,"icon",void 0),c=l([(0,a.customElement)("w3m-onramp-activity-item")],c)},87138:(e,t,i)=>{var o=i(12618),r=i(12525),n=i(66955);const a=o.AH`
:host {
display: flex;
align-items: center;
justify-content: center;
}
wui-checkbox {
padding: var(--wui-spacing-s);
}
a {
text-decoration: none;
color: var(--wui-color-fg-150);
font-weight: 500;
}
`;var s=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a};let l=class extends o.WF{render(){const{termsConditionsUrl:e,privacyPolicyUrl:t}=r.Hd.state,i=r.Hd.state.features?.legalCheckbox;return(e||t)&&i?o.qy`
I agree to our ${this.termsTemplate()} ${this.andTemplate()} ${this.privacyTemplate()}
`:null}andTemplate(){const{termsConditionsUrl:e,privacyPolicyUrl:t}=r.Hd.state;return e&&t?"and":""}termsTemplate(){const{termsConditionsUrl:e}=r.Hd.state;return e?o.qy`terms of service`:null}privacyTemplate(){const{privacyPolicyUrl:e}=r.Hd.state;return e?o.qy`privacy policy`:null}};l.styles=[a],l=s([(0,n.customElement)("w3m-legal-checkbox")],l)},87461:(e,t,i)=>{var o=i(12618),r=i(25707),n=i(6229),a=i(12525),s=i(66955);const l=o.AH`
:host {
width: 100%;
}
.details-container > wui-flex {
background: var(--wui-color-gray-glass-002);
border-radius: var(--wui-border-radius-xxs);
width: 100%;
}
.details-container > wui-flex > button {
border: none;
background: none;
padding: var(--wui-spacing-s);
border-radius: var(--wui-border-radius-xxs);
cursor: pointer;
}
.details-content-container {
padding: var(--wui-spacing-1xs);
padding-top: 0px;
display: flex;
align-items: center;
justify-content: center;
}
.details-content-container > wui-flex {
width: 100%;
}
.details-row {
width: 100%;
padding: var(--wui-spacing-s);
padding-left: var(--wui-spacing-s);
padding-right: var(--wui-spacing-1xs);
border-radius: calc(var(--wui-border-radius-5xs) + var(--wui-border-radius-4xs));
background: var(--wui-color-gray-glass-002);
}
.details-row-title {
white-space: nowrap;
}
.details-row.provider-free-row {
padding-right: var(--wui-spacing-xs);
}
`;var c=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a};const u=a.oU.CONVERT_SLIPPAGE_TOLERANCE;let p=class extends o.WF{constructor(){super(),this.unsubscribe=[],this.networkName=a.WB.state.activeCaipNetwork?.name,this.detailsOpen=!1,this.sourceToken=a.GN.state.sourceToken,this.toToken=a.GN.state.toToken,this.toTokenAmount=a.GN.state.toTokenAmount,this.sourceTokenPriceInUSD=a.GN.state.sourceTokenPriceInUSD,this.toTokenPriceInUSD=a.GN.state.toTokenPriceInUSD,this.gasPriceInUSD=a.GN.state.gasPriceInUSD,this.priceImpact=a.GN.state.priceImpact,this.maxSlippage=a.GN.state.maxSlippage,this.networkTokenSymbol=a.GN.state.networkTokenSymbol,this.inputError=a.GN.state.inputError,this.unsubscribe.push(a.GN.subscribe((e=>{this.sourceToken=e.sourceToken,this.toToken=e.toToken,this.toTokenAmount=e.toTokenAmount,this.gasPriceInUSD=e.gasPriceInUSD,this.priceImpact=e.priceImpact,this.maxSlippage=e.maxSlippage,this.sourceTokenPriceInUSD=e.sourceTokenPriceInUSD,this.toTokenPriceInUSD=e.toTokenPriceInUSD,this.inputError=e.inputError})))}render(){const e=this.toTokenAmount&&this.maxSlippage?n.Se.bigNumber(this.toTokenAmount).minus(this.maxSlippage).toString():null;if(!this.sourceToken||!this.toToken||this.inputError)return null;const t=this.sourceTokenPriceInUSD&&this.toTokenPriceInUSD?1/this.toTokenPriceInUSD*this.sourceTokenPriceInUSD:0;return o.qy`
${this.detailsOpen?o.qy`
Network cost
$${s.UiHelperUtil.formatNumberToLocalString(this.gasPriceInUSD,3)}
${this.priceImpact?o.qy`
Price impact
${s.UiHelperUtil.formatNumberToLocalString(this.priceImpact,3)}%
`:null}
${this.maxSlippage&&this.sourceToken.symbol?o.qy`
Max. slippage
${s.UiHelperUtil.formatNumberToLocalString(this.maxSlippage,6)}
${this.toToken.symbol} ${u}%
`:null}
Provider fee
0.85%
`:null}
`}toggleDetails(){this.detailsOpen=!this.detailsOpen}};p.styles=[l],c([(0,r.wk)()],p.prototype,"networkName",void 0),c([(0,r.MZ)()],p.prototype,"detailsOpen",void 0),c([(0,r.wk)()],p.prototype,"sourceToken",void 0),c([(0,r.wk)()],p.prototype,"toToken",void 0),c([(0,r.wk)()],p.prototype,"toTokenAmount",void 0),c([(0,r.wk)()],p.prototype,"sourceTokenPriceInUSD",void 0),c([(0,r.wk)()],p.prototype,"toTokenPriceInUSD",void 0),c([(0,r.wk)()],p.prototype,"gasPriceInUSD",void 0),c([(0,r.wk)()],p.prototype,"priceImpact",void 0),c([(0,r.wk)()],p.prototype,"maxSlippage",void 0),c([(0,r.wk)()],p.prototype,"networkTokenSymbol",void 0),c([(0,r.wk)()],p.prototype,"inputError",void 0),p=c([(0,s.customElement)("w3m-swap-details")],p)},89508:(e,t,i)=>{var o=i(12618),r=i(25707),n=i(68342),a=i(12525),s=i(66955);const l=o.AH`
:host {
width: 100%;
height: 100px;
border-radius: var(--wui-border-radius-s);
border: 1px solid var(--wui-color-gray-glass-002);
background-color: var(--wui-color-gray-glass-002);
transition: background-color var(--wui-ease-out-power-1) var(--wui-duration-lg);
will-change: background-color;
position: relative;
}
:host(:hover) {
background-color: var(--wui-color-gray-glass-005);
}
wui-flex {
width: 100%;
height: fit-content;
}
wui-button {
display: ruby;
color: var(--wui-color-fg-100);
margin: 0 var(--wui-spacing-xs);
}
.instruction {
position: absolute;
top: 50%;
transform: translateY(-50%);
z-index: 2;
}
.paste {
display: inline-flex;
}
textarea {
background: transparent;
width: 100%;
font-family: var(--w3m-font-family);
font-size: var(--wui-font-size-medium);
font-style: normal;
font-weight: var(--wui-font-weight-light);
line-height: 130%;
letter-spacing: var(--wui-letter-spacing-medium);
color: var(--wui-color-fg-100);
caret-color: var(--wui-color-accent-100);
box-sizing: border-box;
-webkit-appearance: none;
-moz-appearance: textfield;
padding: 0px;
border: none;
outline: none;
appearance: none;
resize: none;
overflow: hidden;
}
`;var c=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a};let u=class extends o.WF{constructor(){super(...arguments),this.inputElementRef=(0,n._)(),this.instructionElementRef=(0,n._)(),this.instructionHidden=Boolean(this.value),this.pasting=!1,this.onDebouncedSearch=a.wE.debounce((async e=>{const t=await a.x4.getEnsAddress(e);if(a.Rv.setLoading(!1),t){a.Rv.setReceiverProfileName(e),a.Rv.setReceiverAddress(t);const i=await a.x4.getEnsAvatar(e);a.Rv.setReceiverProfileImageUrl(i||void 0)}else a.Rv.setReceiverAddress(e),a.Rv.setReceiverProfileName(void 0),a.Rv.setReceiverProfileImageUrl(void 0)}))}firstUpdated(){this.value&&(this.instructionHidden=!0),this.checkHidden()}render(){return o.qy`
Type or
Paste
address
`}async focusInput(){this.instructionElementRef.value&&(this.instructionHidden=!0,await this.toggleInstructionFocus(!1),this.instructionElementRef.value.style.pointerEvents="none",this.inputElementRef.value?.focus(),this.inputElementRef.value&&(this.inputElementRef.value.selectionStart=this.inputElementRef.value.selectionEnd=this.inputElementRef.value.value.length))}async focusInstruction(){this.instructionElementRef.value&&(this.instructionHidden=!1,await this.toggleInstructionFocus(!0),this.instructionElementRef.value.style.pointerEvents="auto",this.inputElementRef.value?.blur())}async toggleInstructionFocus(e){this.instructionElementRef.value&&await this.instructionElementRef.value.animate([{opacity:e?0:1},{opacity:e?1:0}],{duration:100,easing:"ease",fill:"forwards"}).finished}onBoxClick(){this.value||this.instructionHidden||this.focusInput()}onBlur(){this.value||!this.instructionHidden||this.pasting||this.focusInstruction()}checkHidden(){this.instructionHidden&&this.focusInput()}async onPasteClick(){this.pasting=!0;const e=await navigator.clipboard.readText();a.Rv.setReceiverAddress(e),this.focusInput()}onInputChange(e){this.pasting=!1;const t=e.target;t.value&&!this.instructionHidden&&this.focusInput(),a.Rv.setLoading(!0),this.onDebouncedSearch(t.value)}};u.styles=l,c([(0,r.MZ)()],u.prototype,"value",void 0),c([(0,r.wk)()],u.prototype,"instructionHidden",void 0),c([(0,r.wk)()],u.prototype,"pasting",void 0),u=c([(0,s.customElement)("w3m-input-address")],u)},90444:(e,t,i)=>{var o=i(12618),r=i(25707),n=i(60031),a=i(12525),s=i(66955);const l=o.AH`
button {
padding: var(--wui-spacing-s);
border-radius: var(--wui-border-radius-xs);
border: none;
outline: none;
background-color: var(--wui-color-gray-glass-002);
width: 100%;
display: flex;
align-items: center;
justify-content: flex-start;
gap: var(--wui-spacing-s);
transition: background-color var(--wui-ease-out-power-1) var(--wui-duration-md);
will-change: background-color;
}
button:hover {
background-color: var(--wui-color-gray-glass-005);
}
.provider-image {
width: var(--wui-spacing-3xl);
min-width: var(--wui-spacing-3xl);
height: var(--wui-spacing-3xl);
border-radius: calc(var(--wui-border-radius-xs) - calc(var(--wui-spacing-s) / 2));
position: relative;
overflow: hidden;
}
.provider-image::after {
content: '';
display: block;
width: 100%;
height: 100%;
position: absolute;
inset: 0;
border-radius: calc(var(--wui-border-radius-xs) - calc(var(--wui-spacing-s) / 2));
box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005);
}
.network-icon {
width: var(--wui-spacing-m);
height: var(--wui-spacing-m);
border-radius: calc(var(--wui-spacing-m) / 2);
overflow: hidden;
box-shadow:
0 0 0 3px var(--wui-color-gray-glass-002),
0 0 0 3px var(--wui-color-modal-bg);
transition: box-shadow var(--wui-ease-out-power-1) var(--wui-duration-md);
will-change: box-shadow;
}
button:hover .network-icon {
box-shadow:
0 0 0 3px var(--wui-color-gray-glass-005),
0 0 0 3px var(--wui-color-modal-bg);
}
`;var c=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a};let u=class extends o.WF{constructor(){super(...arguments),this.disabled=!1,this.color="inherit",this.label="",this.feeRange="",this.loading=!1,this.onClick=null}render(){return o.qy`
`}networksTemplate(){const e=a.WB.getAllRequestedCaipNetworks(),t=e?.filter((e=>e?.assets?.imageId))?.slice(0,5);return o.qy`
${t?.map((e=>o.qy`
`))}
`}};u.styles=[l],c([(0,r.MZ)({type:Boolean})],u.prototype,"disabled",void 0),c([(0,r.MZ)()],u.prototype,"color",void 0),c([(0,r.MZ)()],u.prototype,"name",void 0),c([(0,r.MZ)()],u.prototype,"label",void 0),c([(0,r.MZ)()],u.prototype,"feeRange",void 0),c([(0,r.MZ)({type:Boolean})],u.prototype,"loading",void 0),c([(0,r.MZ)()],u.prototype,"onClick",void 0),u=c([(0,s.customElement)("w3m-onramp-provider-item")],u)},96417:(e,t,i)=>{var o=i(12618),r=i(25707),n=(i(12525),i(66955));const a=o.AH`
:host {
width: 100%;
}
:host > wui-flex {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
border-radius: var(--wui-border-radius-s);
padding: var(--wui-spacing-xl);
padding-right: var(--wui-spacing-s);
background-color: var(--wui-color-gray-glass-002);
box-shadow: inset 0px 0px 0px 1px var(--wui-color-gray-glass-002);
width: 100%;
height: 100px;
box-sizing: border-box;
position: relative;
}
wui-shimmer.market-value {
opacity: 0;
}
:host > wui-flex > svg.input_mask {
position: absolute;
inset: 0;
z-index: 5;
}
:host wui-flex .input_mask__border,
:host wui-flex .input_mask__background {
transition: fill var(--wui-duration-md) var(--wui-ease-out-power-1);
will-change: fill;
}
:host wui-flex .input_mask__border {
fill: var(--wui-color-gray-glass-020);
}
:host wui-flex .input_mask__background {
fill: var(--wui-color-gray-glass-002);
}
`;var s=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a};let l=class extends o.WF{constructor(){super(...arguments),this.target="sourceToken"}render(){return o.qy`
${this.templateTokenSelectButton()}
`}templateTokenSelectButton(){return o.qy`
`}};l.styles=[a],s([(0,r.MZ)()],l.prototype,"target",void 0),l=s([(0,n.customElement)("w3m-swap-input-skeleton")],l)},99545:(e,t,i)=>{var o=i(12618),r=i(25707),n=i(60031),a=i(12525),s=i(66955);const l=o.AH`
:host {
width: 100%;
}
wui-loading-spinner {
position: absolute;
top: 50%;
right: 20px;
transform: translateY(-50%);
}
.currency-container {
position: absolute;
top: 50%;
transform: translateY(-50%);
right: var(--wui-spacing-1xs);
height: 40px;
padding: var(--wui-spacing-xs) var(--wui-spacing-1xs) var(--wui-spacing-xs)
var(--wui-spacing-xs);
min-width: 95px;
border-radius: var(--FULL, 1000px);
border: 1px solid var(--wui-color-gray-glass-002);
background: var(--wui-color-gray-glass-002);
cursor: pointer;
}
.currency-container > wui-image {
height: 24px;
width: 24px;
border-radius: 50%;
}
`;var c=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a};let u=class extends o.WF{constructor(){super(),this.unsubscribe=[],this.type="Token",this.value=0,this.currencies=[],this.selectedCurrency=this.currencies?.[0],this.currencyImages=a.jQ.state.currencyImages,this.tokenImages=a.jQ.state.tokenImages,this.unsubscribe.push(a.aG.subscribeKey("purchaseCurrency",(e=>{e&&"Fiat"!==this.type&&(this.selectedCurrency=this.formatPurchaseCurrency(e))})),a.aG.subscribeKey("paymentCurrency",(e=>{e&&"Token"!==this.type&&(this.selectedCurrency=this.formatPaymentCurrency(e))})),a.aG.subscribe((e=>{"Fiat"===this.type?this.currencies=e.purchaseCurrencies.map(this.formatPurchaseCurrency):this.currencies=e.paymentCurrencies.map(this.formatPaymentCurrency)})),a.jQ.subscribe((e=>{this.currencyImages={...e.currencyImages},this.tokenImages={...e.tokenImages}})))}firstUpdated(){a.aG.getAvailableCurrencies()}disconnectedCallback(){this.unsubscribe.forEach((e=>e()))}render(){const e=this.selectedCurrency?.symbol||"",t=this.currencyImages[e]||this.tokenImages[e];return o.qy`
${this.selectedCurrency?o.qy` a.W3.open({view:`OnRamp${this.type}Select`})}
>
${this.selectedCurrency.symbol}
`:o.qy``}
`}formatPaymentCurrency(e){return{name:e.id,symbol:e.id}}formatPurchaseCurrency(e){return{name:e.name,symbol:e.symbol}}};u.styles=l,c([(0,r.MZ)({type:String})],u.prototype,"type",void 0),c([(0,r.MZ)({type:Number})],u.prototype,"value",void 0),c([(0,r.wk)()],u.prototype,"currencies",void 0),c([(0,r.wk)()],u.prototype,"selectedCurrency",void 0),c([(0,r.wk)()],u.prototype,"currencyImages",void 0),c([(0,r.wk)()],u.prototype,"tokenImages",void 0),u=c([(0,s.customElement)("w3m-onramp-input")],u)}}]);