import{h as e}from"./p-083180bf.js";import{i as t}from"./p-f8a09b0f.js";import{d as i}from"./p-d0993bb9.js";import{c as s}from"./p-cef45012.js";const a=s({Container:{display:"flex",flexDirection:"column",gap:"35px"},HeaderContainer:{display:"flex",flexDirection:"column",gap:"10px"}}),n=a.toString(),r=()=>e("div",{class:a.classes.Container},e("style",{type:"text/css"},n),e("sqm-skeleton",{width:"45%",height:"40px !important"}),e("div",{class:a.classes.HeaderContainer},e("sqm-skeleton",{width:"15%"}),e("sqm-skeleton",{width:"25%",height:"30px !important"})),e("sqm-skeleton",{width:"75%",height:"35px"}),e("sqm-skeleton",{width:"75%",height:"35px"}),e("sqm-skeleton",{width:"75%",height:"35px"}),e("sqm-skeleton",{width:"75%",height:"35px"}),e("sqm-skeleton",{width:"75%",height:"35px"}),e("sqm-skeleton",{width:"75%",height:"35px"}),e("sqm-skeleton",{width:"75%",height:"35px"}),e("sqm-skeleton",{width:"75%",height:"35px"}),e("sqm-skeleton",{width:"75%",height:"35px"}),e("sqm-skeleton",{width:"75%",height:"35px"}),e("sqm-skeleton",{width:"75%",height:"35px"}),e("sqm-skeleton",{width:"15%"}),e("sqm-skeleton",{width:"80px",height:"30px !important"}));function o(e){return!!["W9","W8BENE","W8BEN"].includes(e)}const d=e=>!Object.keys(e).find((t=>null==e[t])),l=e=>{switch(e){case"W9":return"W-9";case"W8BEN":case"W8BENE":return"W-8";default:return""}};function c(e,t){return t.trim().search(e)>-1}const u=(e,i)=>t.formatMessage({id:e,defaultMessage:i},{fieldName:e});function h({countryCode:e,locale:t}){return{countryCode:e,displayName:new Intl.DisplayNames([t],{type:"region"}).of(e)}}const m="sq:tax-and-cash",p="sq:tax-form-context",y="sq:user-info-query",g="sq:user-form-context",x="sq:finance-network-settings",f="sq:countries:list",q="sq:countries:sorted",w="sq:countries:query",C="sq:currencies:list",k="sq:currencies:query",b=i.gql`
  query getUserTaxInfo {
    user: viewer {
      ... on User {
        id
        firstName
        lastName
        email
        countryCode
        customFields
        rewards(limit: 1000) {
          data {
            statuses
            partnerFundsTransfer {
              id
              status
              dateScheduled
              dateCreated
              dateTransferred
            }
          }
        }
        managedIdentity {
          uid
          email
          emailVerified
        }
        impactConnection {
          connected
          user {
            firstName
            lastName
          }
          publisher {
            id
            brandedSignup
            countryCode
            currency
            billingAddress
            billingCity
            billingState
            billingCountryCode
            billingPostalCode
            phoneNumberCountryCode
            phoneNumber
            taxInformation {
              indirectTaxId
              indirectTaxCountryCode
              indirectTaxRegion
              additionalTaxId
              withholdingTaxId
              withholdingTaxCountryCode
            }
            requiredTaxDocumentType
            currentTaxDocument {
              status
              type
              dateCreated
            }
            withdrawalSettings {
              paymentMethod
              paypalEmailAddress
              bankCountry
              bankAccountNumber
              paymentSchedulingType
              paymentThreshold
              paymentDay
            }
            payoutsAccount {
              hold
              holdReasons
              balance
            }
          }
        }
      }
    }
  }
`,N=i.gql`
  query getCountries {
    impactPayoutCountries(limit: 1000) {
      data {
        countryCode
        displayName
      }
    }
  }
`,T=i.gql`
  query currencies($locale: RSLocale) {
    currencies(limit: 300) {
      data {
        displayName(locale: $locale)
        currencyCode
      }
    }
  }
`,F=i.gql`
  query impactFinanceNetworkSettings(
    $filter: ImpactFinanceNetworkSettingsFilterInput
  ) {
    impactFinanceNetworkSettings(filter: $filter, limit: 1000) {
      data {
        countryCode
        currency
        defaultFinancePaymentMethodId
        thresholdOptions
        withdrawalSettingId
        internationalEftFee
        foreignFxFee
        defaultFxFee
      }
      totalCount
    }
  }
`,I=4;export{C,I as F,b as G,r as L,q as S,m as T,g as U,p as a,f as b,y as c,w as d,N as e,u as f,h as g,x as h,F as i,k as j,T as k,o as l,d as o,l as t,c as v}