import{j as t,r as o,l as s,m as e,R as a,O as r,q as n}from"./p-BxEPsDRj.js";import{n as i,c}from"./p-CrMmJdZ6.js";import{C as d}from"./p-DtZPtFUa.js";var u=t`
  :host {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: ${({spacing:t})=>t[1]};
    text-transform: uppercase;
    white-space: nowrap;
  }

  :host([data-variant='accent']) {
    background-color: ${({tokens:t})=>t.core.foregroundAccent010};
    color: ${({tokens:t})=>t.core.textAccentPrimary};
  }

  :host([data-variant='info']) {
    background-color: ${({tokens:t})=>t.theme.foregroundSecondary};
    color: ${({tokens:t})=>t.theme.textSecondary};
  }

  :host([data-variant='success']) {
    background-color: ${({tokens:t})=>t.core.backgroundSuccess};
    color: ${({tokens:t})=>t.core.textSuccess};
  }

  :host([data-variant='warning']) {
    background-color: ${({tokens:t})=>t.core.backgroundWarning};
    color: ${({tokens:t})=>t.core.textWarning};
  }

  :host([data-variant='error']) {
    background-color: ${({tokens:t})=>t.core.backgroundError};
    color: ${({tokens:t})=>t.core.textError};
  }

  :host([data-variant='certified']) {
    background-color: ${({tokens:t})=>t.theme.foregroundSecondary};
    color: ${({tokens:t})=>t.theme.textSecondary};
  }

  :host([data-size='md']) {
    height: 30px;
    padding: 0 ${({spacing:t})=>t[2]};
    border-radius: ${({borderRadius:t})=>t[2]};
  }

  :host([data-size='sm']) {
    height: 20px;
    padding: 0 ${({spacing:t})=>t[1]};
    border-radius: ${({borderRadius:t})=>t[1]};
  }
`;var l=undefined&&undefined.__decorate||function(t,o,s,e){var a=arguments.length,r=a<3?o:e===null?e=Object.getOwnPropertyDescriptor(o,s):e,n;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")r=Reflect.decorate(t,o,s,e);else for(var i=t.length-1;i>=0;i--)if(n=t[i])r=(a<3?n(r):a>3?n(o,s,r):n(o,s))||r;return a>3&&r&&Object.defineProperty(o,s,r),r};let m=class t extends s{constructor(){super(...arguments);this.variant="accent";this.size="md";this.icon=undefined}render(){this.dataset["variant"]=this.variant;this.dataset["size"]=this.size;const t=this.size==="md"?"md-medium":"sm-medium";const o=this.size==="md"?"md":"sm";return e`
      ${this.icon?e`<wui-icon size=${o} name=${this.icon}></wui-icon>`:null}
      <wui-text
        display="inline"
        data-variant=${this.variant}
        variant=${t}
        color="inherit"
      >
        <slot></slot>
      </wui-text>
    `}};m.styles=[o,u];l([i()],m.prototype,"variant",void 0);l([i()],m.prototype,"size",void 0);l([i()],m.prototype,"icon",void 0);m=l([c("wui-tag")],m);const h={getTabsByNamespace(t){const o=Boolean(t)&&t===n.CHAIN.EVM;if(!o){return[]}if(r.state.remoteFeatures?.activity===false){return d.ACCOUNT_TABS.filter((t=>t.label!=="Activity"))}return d.ACCOUNT_TABS},isValidReownName(t){return/^[a-zA-Z0-9]+$/gu.test(t)},isValidEmail(t){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/gu.test(t)},validateReownName(t){const o=t.replace(/\^/gu,"").toLowerCase();return o.replace(/[^a-zA-Z0-9]/gu,"")},hasFooter(){const t=a.state.view;if(d.VIEWS_WITH_LEGAL_FOOTER.includes(t)){const{termsConditionsUrl:t,privacyPolicyUrl:o}=r.state;const s=r.state.features?.legalCheckbox;const e=!t&&!o||s;if(e){return false}return true}return d.VIEWS_WITH_DEFAULT_FOOTER.includes(t)}};export{h as H};
//# sourceMappingURL=p-DO7_rlGh.js.map