import{hm as y,hk as d,fy as c,hl as a,fp as x,ht as b,fw as g,hu as v,hq as C,hh as w,hi as _,hj as $}from"./BC4hLSsA.js";import{c as m,r as R}from"./3Z1LeTmD.js";import"./CW2vKvSC.js";import{R as T}from"./Dmg8YACJ.js";const O=y``;var P=function(n,e,r,o){var i=arguments.length,t=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(n,e,r,o);else for(var l=n.length-1;l>=0;l--)(s=n[l])&&(t=(i<3?s(t):i>3?s(e,r,t):s(e,r))||t);return i>3&&t&&Object.defineProperty(e,r,t),t};let f=class extends d{render(){const{termsConditionsUrl:e,privacyPolicyUrl:r}=c.state;return!e&&!r?null:a`
We work with the best providers to give you the lowest fees and best support. More options
coming soon!
${this.howDoesItWorkTemplate()}
`}howDoesItWorkTemplate(){return a`
How does it work?
`}onWhatIsBuy(){x.sendEvent({type:"track",event:"SELECT_WHAT_IS_A_BUY",properties:{isSmartAccount:b(g.state.activeChain)===v.ACCOUNT_TYPES.SMART_ACCOUNT}}),C.push("WhatIsABuy")}};f.styles=[O];f=P([m("w3m-onramp-providers-footer")],f);const U=w`
.reown-logo {
height: 24px;
}
a {
text-decoration: none;
cursor: pointer;
color: ${({tokens:n})=>n.theme.textSecondary};
}
a:hover {
opacity: 0.9;
}
`;var W=function(n,e,r,o){var i=arguments.length,t=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(n,e,r,o);else for(var l=n.length-1;l>=0;l--)(s=n[l])&&(t=(i<3?s(t):i>3?s(e,r,t):s(e,r))||t);return i>3&&t&&Object.defineProperty(e,r,t),t};let p=class extends d{render(){return a`
UX by
`}};p.styles=[_,$,U];p=W([m("wui-ux-by-reown")],p);const j=w`
:host wui-ux-by-reown {
padding-top: 0;
}
:host wui-ux-by-reown.branding-only {
padding-top: ${({spacing:n})=>n[3]};
}
a {
text-decoration: none;
color: ${({tokens:n})=>n.core.textAccentPrimary};
font-weight: 500;
}
`;var h=function(n,e,r,o){var i=arguments.length,t=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(n,e,r,o);else for(var l=n.length-1;l>=0;l--)(s=n[l])&&(t=(i<3?s(t):i>3?s(e,r,t):s(e,r))||t);return i>3&&t&&Object.defineProperty(e,r,t),t};let u=class extends d{constructor(){super(),this.unsubscribe=[],this.remoteFeatures=c.state.remoteFeatures,this.unsubscribe.push(c.subscribeKey("remoteFeatures",e=>this.remoteFeatures=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){var t;const{termsConditionsUrl:e,privacyPolicyUrl:r}=c.state,o=(t=c.state.features)==null?void 0:t.legalCheckbox;return!e&&!r||o?a`
${this.reownBrandingTemplate(!0)}
`:a`
By connecting your wallet, you agree to our
${this.termsTemplate()} ${this.andTemplate()} ${this.privacyTemplate()}
${this.reownBrandingTemplate()}
`}andTemplate(){const{termsConditionsUrl:e,privacyPolicyUrl:r}=c.state;return e&&r?"and":""}termsTemplate(){const{termsConditionsUrl:e}=c.state;return e?a`Terms of Service`:null}privacyTemplate(){const{privacyPolicyUrl:e}=c.state;return e?a`Privacy Policy`:null}reownBrandingTemplate(e=!1){var r;return(r=this.remoteFeatures)!=null&&r.reownBranding?e?a``:a``:null}};u.styles=[j];h([R()],u.prototype,"remoteFeatures",void 0);u=h([m("w3m-legal-footer")],u);