@saasquatch/mint-components 1.15.0-125 → 1.15.0-127

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. package/dist/cjs/{IndirectTaxDetailsView-436df538.js → IndirectTaxDetailsView-7e1bb557.js} +2 -2
  2. package/dist/cjs/{ShadowViewAddon-673d984d.js → ShadowViewAddon-802edf50.js} +1 -1
  3. package/dist/cjs/{global-85b9678e.js → global-0df1c47f.js} +48 -48
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/mint-components.cjs.js +1 -1
  6. package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +5 -5
  7. package/dist/cjs/sqm-big-stat_44.cjs.entry.js +2 -2
  8. package/dist/cjs/sqm-code-verification.cjs.entry.js +1 -1
  9. package/dist/cjs/sqm-email-verification.cjs.entry.js +1 -1
  10. package/dist/cjs/sqm-empty_4.cjs.entry.js +1 -1
  11. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +1 -1
  12. package/dist/cjs/sqm-pagination_3.cjs.entry.js +1 -1
  13. package/dist/cjs/{sqm-portal-email-verification-view-d1deac22.js → sqm-portal-email-verification-view-bd4ec210.js} +1 -1
  14. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
  15. package/dist/cjs/{sqm-portal-profile-view-e0e88ac1.js → sqm-portal-profile-view-9f6772c0.js} +1 -1
  16. package/dist/cjs/sqm-portal-profile.cjs.entry.js +2 -2
  17. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +1 -1
  18. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +1 -1
  19. package/dist/cjs/sqm-stencilbook.cjs.entry.js +6 -6
  20. package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +2 -2
  21. package/dist/cjs/{utils-42db2b14.js → utils-ba8fc342.js} +1 -1
  22. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +2 -2
  23. package/dist/collection/global/styles.js +48 -48
  24. package/dist/collection/global/styles.ts +56 -44
  25. package/dist/esm/{IndirectTaxDetailsView-ab51e871.js → IndirectTaxDetailsView-8e181f45.js} +2 -2
  26. package/dist/esm/{ShadowViewAddon-a3f174c4.js → ShadowViewAddon-cbc08775.js} +1 -1
  27. package/dist/esm/{global-6e857596.js → global-200e3d35.js} +48 -48
  28. package/dist/esm/loader.js +1 -1
  29. package/dist/esm/mint-components.js +1 -1
  30. package/dist/esm/sqm-banking-info-form_10.entry.js +5 -5
  31. package/dist/esm/sqm-big-stat_44.entry.js +2 -2
  32. package/dist/esm/sqm-code-verification.entry.js +1 -1
  33. package/dist/esm/sqm-email-verification.entry.js +1 -1
  34. package/dist/esm/sqm-empty_4.entry.js +1 -1
  35. package/dist/esm/sqm-leaderboard-rank.entry.js +1 -1
  36. package/dist/esm/sqm-pagination_3.entry.js +1 -1
  37. package/dist/esm/{sqm-portal-email-verification-view-0cefc0dc.js → sqm-portal-email-verification-view-6b046416.js} +1 -1
  38. package/dist/esm/sqm-portal-email-verification.entry.js +2 -2
  39. package/dist/esm/{sqm-portal-profile-view-c90d2ec4.js → sqm-portal-profile-view-322e6649.js} +1 -1
  40. package/dist/esm/sqm-portal-profile.entry.js +2 -2
  41. package/dist/esm/sqm-referral-table_11.entry.js +1 -1
  42. package/dist/esm/sqm-rewards-table_9.entry.js +1 -1
  43. package/dist/esm/sqm-stencilbook.entry.js +6 -6
  44. package/dist/esm/sqm-tax-and-cash.entry.js +2 -2
  45. package/dist/esm/{utils-0723c2f1.js → utils-325c4849.js} +1 -1
  46. package/dist/esm-es5/{IndirectTaxDetailsView-ab51e871.js → IndirectTaxDetailsView-8e181f45.js} +1 -1
  47. package/dist/esm-es5/{ShadowViewAddon-a3f174c4.js → ShadowViewAddon-cbc08775.js} +1 -1
  48. package/dist/esm-es5/{global-6e857596.js → global-200e3d35.js} +4 -4
  49. package/dist/esm-es5/loader.js +1 -1
  50. package/dist/esm-es5/mint-components.js +1 -1
  51. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
  52. package/dist/esm-es5/sqm-big-stat_44.entry.js +1 -1
  53. package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
  54. package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
  55. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  56. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  57. package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
  58. package/dist/esm-es5/{sqm-portal-email-verification-view-0cefc0dc.js → sqm-portal-email-verification-view-6b046416.js} +1 -1
  59. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  60. package/dist/esm-es5/{sqm-portal-profile-view-c90d2ec4.js → sqm-portal-profile-view-322e6649.js} +1 -1
  61. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  62. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  63. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  64. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  65. package/dist/esm-es5/sqm-tax-and-cash.entry.js +1 -1
  66. package/dist/esm-es5/{utils-0723c2f1.js → utils-325c4849.js} +1 -1
  67. package/dist/mint-components/global/styles.ts +56 -44
  68. package/dist/mint-components/mint-components.esm.js +1 -1
  69. package/dist/mint-components/mint-components.js +1 -1
  70. package/dist/mint-components/{p-a891c877.system.js → p-2756b971.system.js} +1 -1
  71. package/dist/mint-components/{p-85b147e6.system.entry.js → p-2830e2e4.system.entry.js} +1 -1
  72. package/dist/mint-components/{p-52b37f22.entry.js → p-2c6fd7ae.entry.js} +2 -2
  73. package/dist/mint-components/{p-d81b09de.system.entry.js → p-2fb29f43.system.entry.js} +1 -1
  74. package/dist/mint-components/{p-6a616d9f.js → p-40601ea1.js} +1 -1
  75. package/dist/mint-components/{p-7232addc.system.js → p-46336db6.system.js} +1 -1
  76. package/dist/mint-components/{p-c0e5cdf9.system.entry.js → p-4b8c6fd2.system.entry.js} +1 -1
  77. package/dist/mint-components/{p-0c274c2b.entry.js → p-4c3a9913.entry.js} +1 -1
  78. package/dist/mint-components/{p-f4ae6b52.entry.js → p-4ec37b67.entry.js} +1 -1
  79. package/dist/mint-components/{p-b5b82fc1.entry.js → p-55c47a8f.entry.js} +2 -2
  80. package/dist/mint-components/{p-e0166128.system.js → p-56e5d39c.system.js} +12 -12
  81. package/dist/mint-components/{p-951bc965.system.entry.js → p-582d1771.system.entry.js} +1 -1
  82. package/dist/mint-components/{p-d614cfea.entry.js → p-59d63018.entry.js} +1 -1
  83. package/dist/mint-components/{p-f81cb995.entry.js → p-5fdc28c3.entry.js} +1 -1
  84. package/dist/mint-components/{p-90062810.js → p-69782dfe.js} +33 -33
  85. package/dist/mint-components/{p-65e8d424.system.entry.js → p-6d6ec081.system.entry.js} +1 -1
  86. package/dist/mint-components/{p-5e48bd77.entry.js → p-6db40a60.entry.js} +1 -1
  87. package/dist/mint-components/{p-277792c5.system.entry.js → p-70874177.system.entry.js} +1 -1
  88. package/dist/mint-components/{p-9c921435.system.entry.js → p-7a0ed7a9.system.entry.js} +1 -1
  89. package/dist/mint-components/{p-00505c73.system.entry.js → p-7e51f5eb.system.entry.js} +1 -1
  90. package/dist/mint-components/{p-4d045da0.js → p-990ba8c3.js} +1 -1
  91. package/dist/mint-components/{p-06beaf34.js → p-9c7a614a.js} +1 -1
  92. package/dist/mint-components/{p-7333224d.entry.js → p-aa349f83.entry.js} +1 -1
  93. package/dist/mint-components/{p-f098fc94.system.js → p-b2c30584.system.js} +1 -1
  94. package/dist/mint-components/{p-f24410f9.entry.js → p-b39e5b44.entry.js} +1 -1
  95. package/dist/mint-components/{p-6e192b5a.system.entry.js → p-c020a549.system.entry.js} +1 -1
  96. package/dist/mint-components/{p-4dedcaf4.system.entry.js → p-c1d8b28d.system.entry.js} +1 -1
  97. package/dist/mint-components/{p-02c57d95.system.js → p-c98f526c.system.js} +1 -1
  98. package/dist/mint-components/{p-c14b7fae.system.js → p-cb39dc04.system.js} +1 -1
  99. package/dist/mint-components/{p-d5ae2b8e.system.entry.js → p-cd827626.system.entry.js} +1 -1
  100. package/dist/mint-components/{p-17947f5a.entry.js → p-d121d444.entry.js} +1 -1
  101. package/dist/mint-components/{p-ff636489.js → p-d8ae8320.js} +1 -1
  102. package/dist/mint-components/{p-ac5f35b1.system.entry.js → p-e0adce3f.system.entry.js} +1 -1
  103. package/dist/mint-components/{p-dc420cb4.system.entry.js → p-e4434681.system.entry.js} +1 -1
  104. package/dist/mint-components/{p-dbe4480e.entry.js → p-e6fa59bc.entry.js} +1 -1
  105. package/dist/mint-components/{p-737eea53.system.js → p-e90c16ea.system.js} +1 -1
  106. package/dist/mint-components/{p-dfc2ee26.entry.js → p-f1bd5e64.entry.js} +1 -1
  107. package/dist/mint-components/{p-a38f69f6.entry.js → p-f4721635.entry.js} +1 -1
  108. package/dist/mint-components/{p-01db2723.js → p-fe838d97.js} +1 -1
  109. package/docs/docs.docx +0 -0
  110. package/docs/raisins.json +1 -1
  111. package/package.json +1 -1
  112. package/shoelace/assets/icons/twitter-x.svg +0 -4
@@ -1 +1 @@
1
- var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return __assign.apply(this,arguments)};var __spreadArrays=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var i=Array(e),a=0,t=0;t<r;t++)for(var o=arguments[t],n=0,s=o.length;n<s;n++,a++)i[a]=o[n];return i};import{r as registerInstance,h as h$1}from"./index-b3a06de8.js";import"./global-6e857596.js";import{u as useMemo,f as useEffect,n as h}from"./dom-context-hooks.module-63370afd.js";import{M as Mn,_,J,L,I as In,S as Sn,i as isDemo}from"./index.module-c9811a48.js";import{c as cjs}from"./cjs-bdfb4486.js";import{g as getProps}from"./utils-03188de2.js";import"./JSS-67b5cff8.js";import{g as getCountryObj,L as LoadingView}from"./utils-0723c2f1.js";import{p as parseStates}from"./parseStates-ed75e224.js";import{T as TAX_CONTEXT_NAMESPACE,a as TAX_FORM_CONTEXT_NAMESPACE,U as USER_FORM_CONTEXT_NAMESPACE,C as CURRENCIES_NAMESPACE,b as COUNTRIES_NAMESPACE,S as SORTED_COUNTRIES_NAMESPACE,c as USER_QUERY_NAMESPACE,G as GET_USER,d as COUNTRIES_QUERY_NAMESPACE,e as GET_COUNTRIES,F as FINANCE_NETWORK_SETTINGS_NAMESPACE,f as GET_FINANCE_NETWORK_SETTINGS,g as CURRENCIES_QUERY_NAMESPACE,h as GET_CURRENCIES}from"./data-dea73d4d.js";import{e as extractProps}from"./extractProps-ae1afbb3.js";function getCurrentStep(e){var t,r;if(!((t=e.impactConnection)===null||t===void 0?void 0:t.connected)||!((r=e.impactConnection)===null||r===void 0?void 0:r.publisher)){return"/1"}var i=e.impactConnection.publisher,a=i.requiredTaxDocumentType,o=i.currentTaxDocument,n=i.withdrawalSettings,s=i.brandedSignup;if(a&&!o)return"/3";if(!n&&s)return"/4";return"/dashboard"}function useTaxAndCash(){var e,t,r,i,a;var o=_();var n=J();var s=L();var d=In({namespace:TAX_CONTEXT_NAMESPACE,initialValue:"/loading"}),u=d[0],c=d[1];var h=In({namespace:TAX_FORM_CONTEXT_NAMESPACE,initialValue:{}}),l=h[0],p=h[1];var m=In({namespace:USER_FORM_CONTEXT_NAMESPACE,initialValue:{firstName:undefined,lastName:undefined,email:undefined,countryCode:undefined,currency:undefined}}),f=m[0],y=m[1];var b=In({namespace:CURRENCIES_NAMESPACE,initialValue:[]}),v=b[0],g=b[1];var T=In({namespace:COUNTRIES_NAMESPACE,initialValue:[]}),x=T[0],S=T[1];var E=In({namespace:SORTED_COUNTRIES_NAMESPACE,initialValue:[]}),C=E[0],A=E[1];var I=Sn({namespace:USER_QUERY_NAMESPACE,query:GET_USER,skip:!n,options:{batch:false}}),N=I.data,P=I.errors;var R=((r=(t=(e=N===null||N===void 0?void 0:N.user)===null||e===void 0?void 0:e.impactConnection)===null||t===void 0?void 0:t.publisher)===null||r===void 0?void 0:r.countryCode)||f.countryCode;Sn({namespace:COUNTRIES_QUERY_NAMESPACE,query:GET_COUNTRIES,skip:!n});var k=Sn({namespace:FINANCE_NETWORK_SETTINGS_NAMESPACE,query:GET_FINANCE_NETWORK_SETTINGS,skip:!n,variables:{filter:j()}}),w=k.data,M=k.refetch;var D=Sn({namespace:CURRENCIES_QUERY_NAMESPACE,query:GET_CURRENCIES,skip:!n,variables:{locale:s}}).data;var F=useMemo((function(){var e,t;var r=(t=(e=w===null||w===void 0?void 0:w.impactFinanceNetworkSettings)===null||e===void 0?void 0:e.data)===null||t===void 0?void 0:t.reduce((function(e,t){var r,i;var a=(i=(r=D===null||D===void 0?void 0:D.currencies)===null||r===void 0?void 0:r.data)===null||i===void 0?void 0:i.find((function(e){return e.currencyCode===t.currency}));if(!a)return e;if(e.find((function(e){return e.currencyCode===t.currency})))return e;if(f.countryCode&&t.countryCode!==R)return e;return __spreadArrays(e,[a])}),[]);return r}),[w,R]);var O=(s===null||s===void 0?void 0:s.replace("_","-"))||"en";var B=function(e,t){return e.displayName<t.displayName?-1:1};var U=(i=w===null||w===void 0?void 0:w.impactFinanceNetworkSettings)===null||i===void 0?void 0:i.data;var q=useMemo((function(){return new Set(U===null||U===void 0?void 0:U.map((function(e){return e.countryCode})).filter((function(e){return e})))}),[U]);var H=["CA","GB","US"];var G=useMemo((function(){return Array.from(q).map((function(e){return getCountryObj({countryCode:e,locale:O})})).sort(B).reduce((function(e,t){if(H.includes(t.countryCode))return __spreadArrays([t],e);return __spreadArrays(e,[t])}),[])}),[q]);useEffect((function(){if(G)A(G)}),[G]);useEffect((function(){if(F)g(F)}),[F]);useEffect((function(){if(P){c("/error");return}if(!o||!n)return;if(N){var e=N===null||N===void 0?void 0:N.user;if(!e||u!=="/loading")return;var t=getCurrentStep(e);c(t)}}),[o,n,(a=N===null||N===void 0?void 0:N.user)===null||a===void 0?void 0:a.email,P]);function j(){var e,t,r;if(u==="/1")return{};if(u==="/4")return{currency_eq:(r=(t=(e=N===null||N===void 0?void 0:N.user)===null||e===void 0?void 0:e.impactConnection)===null||t===void 0?void 0:t.publisher)===null||r===void 0?void 0:r.currency};if(R)return{countryCode_eq:R};return{}}return{step:u,setStep:c,context:l,namespace:Mn(TAX_CONTEXT_NAMESPACE),loading:u==="/loading"}}var TaxAndCashMonolith=function(){function e(e){registerInstance(this,e);this.step1_firstName="First name";this.step1_lastName="Last name";this.step1_email="Email";this.step1_country="Country";this.step1_phoneNumber="Phone number";this.step1_address="Address";this.step1_city="City";this.step1_state="State";this.step1_province="Province";this.step1_region="Region";this.step1_postalCode="Postal code";this.step1_currency="Currency";this.step1_currencyHelpText="Choose your preferred payout currency";this.step1_allowBankingCollection="I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information";this.step1_personalInformation="Personal Information";this.step1_termsAndConditionsLabel="terms and conditions";this.step1_termsAndConditionsLink="https://terms.advocate.impact.com/PayoutTermsAndConditions.html";this.step1_searchForCurrencyText="Search for currency..";this.step2_indirectTax="Indirect Tax";this.step2_indirectTaxDescription="Indirect taxes (e.g. VAT, HST, GST) are transaction based taxes often applied to goods and services. Service providers are typically required to register with their tax authority and collect these taxes on behalf governments.";this.step2_indirectTaxDetails="Indirect tax details";this.step2_otherRegion="Registered for indirect tax";this.step2_otherRegionSubtext="If you’ve registered with your tax authority, add your information to stay tax compliant.";this.step2_notRegistered="Not registered for indirect tax";this.step2_notRegisteredSubtext="If you’ve never set up indirect tax with your tax authority, then you’re likely not considered registered.";this.step2_selectedRegion="Country / region of indirect tax";this.step2_indirectTaxNumber="{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}}";this.step2_province="Province";this.step2_indirectTaxNumberError="{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}} is required";this.step2_qstNumber="QST number";this.step2_isRegisteredQST="I am registered for QST Tax";this.step2_isRegisteredSubRegionIncomeTax="I am an individual registered for Income Tax purposes in Spain, and withholding tax will apply to any payments made to me.";this.step2_subRegion="Sub-region";this.step2_subRegionTaxNumberLabel="Income Tax Number";this.step2_cannotChangeInfoAlert="Changes to your personal and indirect tax information can only be made through our {supportLink} after you complete this step. Make sure these are correct before continuing.";this.step3_taxForm="Tax form";this.step3_taxFormLabel="{documentType} Tax Form";this.step3_participantType="Participant type";this.step3_businessEntity="I represent a business";this.step3_individualParticipant="I am an individual participant";this.step3_taxFormDescription="Participants based in the US need to submit a {documentType} form.";this.step3_taxFormDescriptionIndividualParticipant="Participants residing outside of the US, joining the referral program of a US-based company, need to submit a {documentType} form.";this.step3_taxFormDescriptionBusinessEntity="Participants residing outside of the US who represent a business entity need to submit a {documentType} form.";this.step3_docusignExpired="For your security and privacy, we automatically end your session after 20 minutes of inactivity. Please refresh and re-enter your tax information to continue.";this.step3_docusignSessionWarning="For your security, we automatically end your session when you have not interacted with the form after 20 minutes.";this.step3_docusignError="There was a problem displaying this form. Please refresh the page. If this problem continues, contact our {supportLink}.";this.step3_refreshButton="Refresh Page";this.step3_exitButton="Exit";this.step3_modalTitle="Important Note";this.step3_modalDescription="Remember the name you enter in your tax form. It must exactly match the bank account holder name configured in the next step. {br}{br}Otherwise you will have to resubmit your form again and there will be delays receiving your payout.";this.step3_modalButtonText="I understand";this.step4_taxAndPayouts="Payouts";this.step4_directlyToBankAccount="Directly to my bank account";this.step4_toPayPalAccount="PayPal (2% processing fee capped to {feeCap})";this.step4_paymentScheduleBalanceThreshold="Pay me when my balance reaches a threshold";this.step4_paymentScheduleFixedDay="Pay me on a fixed day of the month";this.step4_paymentDaySelectLabel="Payment Day";this.step4_paymentThresholdSelectLabel="Payment threshold";this.step4_paymentDayFirstOfMonthLabelText="1st of the month";this.step4_paymentDayFifteenthOfMonthLabelText="15th of the month";this.step4_paymentMethod="Payment method";this.step4_paymentSchedule="Payment schedule";this.step4_paymentMethodSubtext="Payouts will be sent from our referral program provider, impact.com.";this.step4_payPalInputLabel="PayPal email";this.step4_bankLocationLabel="Bank country location";this.step4_beneficiaryAccountNameLabel="Account holder name";this.step4_beneficiaryAccountNameDescription="The beneficiary name of your bank account. Ensure this matches the name on your tax form.";this.step4_bankAccountTypeLabel="Bank account type";this.step4_checkingSelectItemLabel="Checking";this.step4_savingsSelectItemLabel="Savings";this.step4_bankAccountNumberLabel="Bank account number";this.step4_ibanLabel="IBAN";this.step4_swiftCodeLabel="SWIFT code";this.step4_routingCodeLabel="{bankCountry, select, AU {BSB number} CA {Routing number} CZ {Bank code} HK {Clearing code} SG {Clearing code} US {ABA routing number} NZ {BSB number} ZA {Bank/Branch number} IN {IFSC} CNY {CNAPS} other {Routing code} }";this.step4_bankNameLabel="Bank name";this.step4_classificationEntityLabel="Classification entity";this.step4_businessSelectItemLabel="Business";this.step4_individualSelectItemLabel="Individual";this.step4_foreignSelectItemLabel="Foreign";this.step4_classificationCPFLabel="Classification CPF";this.step4_patronymicNameLabel="Patronymic name";this.step4_voCodeLabel="VO code";this.step4_agencyCodeLabel="Agency code";this.step4_branchCodeLabel="Branch code";this.step4_classificationLabel="Classification";this.step4_taxPayerIdLabel="Beneficiary INN";this.step4_bankAddressLabel="Bank address";this.step4_bankCityLabel="Bank city";this.step4_bankStateLabel="Bank Province / State";this.step4_bankPostalCodeLabel="Bank postal code";this.step4_eftWithdrawalLabel="EFT Withdrawal (free)";this.step4_fxWireProcessingFeeLabel="FX Wire (Processing Fee {currency}{defaultFxFee}.00)";this.step4_verifyEmailHeaderText="Verify your email";this.step4_verifyEmailDescriptionText="Verify your email to update your payment settings. Enter the code sent to {email} from our referral provider, impact.com.";this.step4_modalTitle="Important Note";this.step4_modalDescription="Updating payment information places your account and payouts on hold for up to 48 hours while we verify your change. Payments scheduled during the hold period are skipped.";this.step4_modalButtonText="I understand, update my information";this.dashboard_statusTextActive="Active";this.dashboard_statusTextNotActive="Invalid Tax Form";this.dashboard_statusTextNotVerified="Not Verified";this.dashboard_badgeTextSubmittedOn="Submitted on {dateSubmitted}.";this.dashboard_badgeTextSubmittedOnW8="Submitted on {dateSubmitted}. Valid for three years after submission.";this.dashboard_badgeTextAwaitingReview="Awaiting review. Submitted on {dateSubmitted}.";this.dashboard_taxAlertHeaderNotActiveW9="Your W9 tax form has personal information that doesn’t match your profile";this.dashboard_taxAlertHeaderNotActiveW8="{documentType} tax form is invalid";this.dashboard_taxAlertNotActiveMessageW9="Please resubmit a new {documentType} form.";this.dashboard_taxAlertNotActiveMessageW8="Your tax form may have expired or has personal information that doesn’t match your profile. Please submit a new {documentType} form.";this.dashboard_invalidForm="Make sure your information is correct and submit new form.";this.dashboard_bankingInformationSectionHeader="Payout Information";this.dashboard_taxDocumentSectionHeader="Tax documents";this.dashboard_taxDocumentSectionSubHeader="{documentType} tax form";this.dashboard_noFormNeededSubtext="Tax documents are only required if you are based in the US or joining the referral program of a US based brand.";this.dashboard_indirectTaxInfoSectionHeader="Indirect tax";this.dashboard_indirectTaxInfoCanada="Registered in {province}, {country}";this.dashboard_indirectTaxInfoOtherCountry="Registered in {country}";this.dashboard_indirectTaxInfoSpain="Registered in {country}, {subRegion}";this.dashboard_indirectTaxTooltipSupport="To make changes to your indirect tax information, please contact our {supportLink}.";this.dashboard_indirectTaxDetails="{indirectTaxType} number: {indirectTaxNumber}";this.dashboard_newFormButton="Submit new form";this.dashboard_editPaymentInformationButton="Edit Payout Information";this.dashboard_notRegisteredForTax="Not registered for indirect tax. If you’ve previously registered with your tax authority, contact our {supportLink} to add your information to stay tax compliant.";this.dashboard_qstNumber="QST number: {qstNumber}";this.dashboard_subRegionTaxNumber="Income tax number: {subRegionTaxNumber}";this.dashboard_statusBadgeText="{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";this.dashboard_thresholdPayoutText="Next payout occurs when balance is {thresholdBalance}";this.dashboard_accountText="Account";this.dashboard_invoiceColumnTitle="Invoice";this.dashboard_dateColumnTitle="Date";this.dashboard_earningsColumnTitle="Earnings";this.dashboard_indirectTaxColumnTitle="Indirect tax";this.dashboard_payoutFromImpact="Your balance may take up to 24 hours to update. Payouts will be sent from our referral program provider, impact.com.";this.dashboard_earningsAfterTaxColumnTitle="Earnings after tax";this.dashboard_payoutHoldAlertHeader="Your payout is on hold";this.dashboard_payoutHoldAlertDescription="Please contact our {supportLink} or check your inbox for an email from our referral program provider, impact.com.";this.dashboard_payoutMissingInformationText="Missing banking information, go to Impact.com to resolve.";this.dashboard_invoiceDescription="View and download your invoices to report your earnings and stay tax compliant.";this.dashboard_invoicePrevLabel="Prev";this.dashboard_invoiceMoreLabel="Next";this.dashboard_invoiceHeader="Invoices";this.dashboard_invoiceEmptyStateHeader="View your invoice details";this.dashboard_invoiceEmptyStateText="Refer a friend to view the status of your invoices and rewards earned";this.dashboard_replaceTaxFormModalHeader="Replace existing tax form";this.dashboard_replaceTaxFormModalBodyText="Submitting a new tax form will remove your existing form. Make sure to sign and complete your new tax form to prevent any issues with your next payout.";this.dashboard_verificationRequiredHeader="Verify your identity";this.dashboard_verificationRequiredDescription="Complete your verification to start receiving your cash rewards. It should only take a few minutes verify. If you run in to an issue verifying your identity contact our {supportLink}.";this.dashboard_verificationRequiredInternalHeader="Identity Verification in Progress";this.dashboard_verificationRequiredInternalDescription="Identity verification submission has been received. Our system is currently performing additional checks and analyzing the results. You will be updated shortly. If you don't hear from us contact our {supportLink}.";this.dashboard_verificationReviewInternalHeader="Identity Verification Under Review";this.dashboard_verificationReviewInternalDescription="Identity verification requires further review due to a potential error. Our team is reviewing the information and will update you shortly. If you don't hear from us contact our {supportLink}.";this.dashboard_verificationFailedInternalHeader="Identity Verification Unsuccessful";this.dashboard_verificationFailedInternalDescription="Identity verification has failed. Our team is reviewing the report and will contact you with further information. If you don't hear from us contact our {supportLink}.";this.dashboard_verificationRequiredButtonText="Start Verification";this.formStep="Step {step} of {count}";this.generalErrorTitle="There was a problem submitting your information";this.generalErrorDescription="Please review your information and try again. If this problem continues, contact our {supportLink}.";this.fieldRequiredError="{fieldName} is required";this.invalidCharacterError="{fieldName} includes characters that aren't supported.";this.fieldInvalidError="{fieldName} is invalid";this.continueButton="Continue";this.backButton="Back";this.cancelButton="Cancel";this.isPartnerAlertHeader="An account with this email already exists with our referral program provider, impact.com";this.isPartnerAlertDescription="If you don’t recognize this referral program provider or believe this is a mistake, please contact our {supportLink} or sign up for this referral program with a different email.";this.searchForCountryText="Search for country..";this.loadingErrorAlertHeader="There was a problem loading your form";this.loadingErrorAlertDescription="Please refresh the page and try again. If this problem continues, contact our {supportLink}.";this.taxAndPayoutsDescription="Submit your tax documents and add your banking information to receive your rewards.";this.supportLink="support team";this.stateController="{}";h(this)}e.prototype.disconnectedCallback=function(){};e.prototype.getGeneralStepTextProps=function(e){var t=getProps(this);return __assign(__assign({},extractProps(t,e)),{generalErrorTitle:t.generalErrorTitle,generalErrorDescription:t.generalErrorDescription,fieldRequiredError:t.fieldRequiredError,invalidCharacterError:t.invalidCharacterError,fieldInvalidError:t.fieldInvalidError,continueButton:t.continueButton,backButton:t.backButton,cancelButton:t.cancelButton,isPartnerAlertHeader:t.isPartnerAlertHeader,isPartnerAlertDescription:t.isPartnerAlertDescription,loadingErrorAlertHeader:t.loadingErrorAlertHeader,loadingErrorAlertDescription:t.loadingErrorAlertDescription,taxAndPayoutsDescription:t.taxAndPayoutsDescription,searchForCountryText:t.searchForCountryText,formStep:t.formStep,supportLink:t.supportLink})};e.prototype.render=function(){var e=this;var t,r;var i=isDemo()?useDemoTaxAndCash(this):useTaxAndCash();if((t=this.demoData)===null||t===void 0?void 0:t.showTextProps){var a=getProps(this);return h$1("div",null,(r=Object.keys(a))===null||r===void 0?void 0:r.map((function(t){if(t==="demoData")return;return h$1("div",null,h$1("b",null,t,":")," ",e[t],h$1("hr",null))})))}var o=function(){switch(i.step){case"/1":return h$1("sqm-user-info-form",Object.assign({},e.getGeneralStepTextProps("step1_"),extractProps(i,"sqm-user-info-form_")));case"/2":return h$1("sqm-indirect-tax-form",Object.assign({},e.getGeneralStepTextProps("step2_"),extractProps(i,"sqm-indirect-tax-form_")));case"/3":return h$1("sqm-docusign-form",Object.assign({},e.getGeneralStepTextProps("step3_"),extractProps(i,"sqm-docusign-form_")));case"/4":return h$1("sqm-banking-info-form",Object.assign({},e.getGeneralStepTextProps("step4_"),extractProps(i,"sqm-banking-info-form_")));case"/dashboard":return h$1("sqm-tax-and-cash-dashboard",Object.assign({},e.getGeneralStepTextProps("dashboard_"),extractProps(i,"sqm-tax-and-cash-dashboard_")));case"/error":return h$1("sqm-form-message",{type:"error"},h$1("p",{part:"alert-title"},e.loadingErrorAlertHeader),h$1("p",{part:"alert-description"},e.loadingErrorAlertDescription))}};return o()||h$1(LoadingView,null)};return e}();function useDemoTaxAndCash(e){var t=In({namespace:TAX_CONTEXT_NAMESPACE,initialValue:"/1"}),r=t[0],i=t[1];var a=parseStates(e.stateController);var o=Object.keys(a).reduce((function(e,t){var r;return t==="sqm-tax-and-cash"?__assign(__assign({},e),a[t]):__assign(__assign({},e),(r={},r[t+"_stateController"]=a[t],r))}),{});return cjs({step:r,setStep:i},e.demoData||o||{},{arrayMerge:function(e,t){return t}})}export{TaxAndCashMonolith as sqm_tax_and_cash};
1
+ var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return __assign.apply(this,arguments)};var __spreadArrays=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var i=Array(e),a=0,t=0;t<r;t++)for(var o=arguments[t],n=0,s=o.length;n<s;n++,a++)i[a]=o[n];return i};import{r as registerInstance,h as h$1}from"./index-b3a06de8.js";import"./global-200e3d35.js";import{u as useMemo,f as useEffect,n as h}from"./dom-context-hooks.module-63370afd.js";import{M as Mn,_,J,L,I as In,S as Sn,i as isDemo}from"./index.module-c9811a48.js";import{c as cjs}from"./cjs-bdfb4486.js";import{g as getProps}from"./utils-03188de2.js";import"./JSS-67b5cff8.js";import{g as getCountryObj,L as LoadingView}from"./utils-325c4849.js";import{p as parseStates}from"./parseStates-ed75e224.js";import{T as TAX_CONTEXT_NAMESPACE,a as TAX_FORM_CONTEXT_NAMESPACE,U as USER_FORM_CONTEXT_NAMESPACE,C as CURRENCIES_NAMESPACE,b as COUNTRIES_NAMESPACE,S as SORTED_COUNTRIES_NAMESPACE,c as USER_QUERY_NAMESPACE,G as GET_USER,d as COUNTRIES_QUERY_NAMESPACE,e as GET_COUNTRIES,F as FINANCE_NETWORK_SETTINGS_NAMESPACE,f as GET_FINANCE_NETWORK_SETTINGS,g as CURRENCIES_QUERY_NAMESPACE,h as GET_CURRENCIES}from"./data-dea73d4d.js";import{e as extractProps}from"./extractProps-ae1afbb3.js";function getCurrentStep(e){var t,r;if(!((t=e.impactConnection)===null||t===void 0?void 0:t.connected)||!((r=e.impactConnection)===null||r===void 0?void 0:r.publisher)){return"/1"}var i=e.impactConnection.publisher,a=i.requiredTaxDocumentType,o=i.currentTaxDocument,n=i.withdrawalSettings,s=i.brandedSignup;if(a&&!o)return"/3";if(!n&&s)return"/4";return"/dashboard"}function useTaxAndCash(){var e,t,r,i,a;var o=_();var n=J();var s=L();var d=In({namespace:TAX_CONTEXT_NAMESPACE,initialValue:"/loading"}),u=d[0],c=d[1];var h=In({namespace:TAX_FORM_CONTEXT_NAMESPACE,initialValue:{}}),l=h[0],p=h[1];var m=In({namespace:USER_FORM_CONTEXT_NAMESPACE,initialValue:{firstName:undefined,lastName:undefined,email:undefined,countryCode:undefined,currency:undefined}}),f=m[0],y=m[1];var b=In({namespace:CURRENCIES_NAMESPACE,initialValue:[]}),v=b[0],g=b[1];var T=In({namespace:COUNTRIES_NAMESPACE,initialValue:[]}),x=T[0],S=T[1];var E=In({namespace:SORTED_COUNTRIES_NAMESPACE,initialValue:[]}),C=E[0],A=E[1];var I=Sn({namespace:USER_QUERY_NAMESPACE,query:GET_USER,skip:!n,options:{batch:false}}),N=I.data,P=I.errors;var R=((r=(t=(e=N===null||N===void 0?void 0:N.user)===null||e===void 0?void 0:e.impactConnection)===null||t===void 0?void 0:t.publisher)===null||r===void 0?void 0:r.countryCode)||f.countryCode;Sn({namespace:COUNTRIES_QUERY_NAMESPACE,query:GET_COUNTRIES,skip:!n});var k=Sn({namespace:FINANCE_NETWORK_SETTINGS_NAMESPACE,query:GET_FINANCE_NETWORK_SETTINGS,skip:!n,variables:{filter:j()}}),w=k.data,M=k.refetch;var D=Sn({namespace:CURRENCIES_QUERY_NAMESPACE,query:GET_CURRENCIES,skip:!n,variables:{locale:s}}).data;var F=useMemo((function(){var e,t;var r=(t=(e=w===null||w===void 0?void 0:w.impactFinanceNetworkSettings)===null||e===void 0?void 0:e.data)===null||t===void 0?void 0:t.reduce((function(e,t){var r,i;var a=(i=(r=D===null||D===void 0?void 0:D.currencies)===null||r===void 0?void 0:r.data)===null||i===void 0?void 0:i.find((function(e){return e.currencyCode===t.currency}));if(!a)return e;if(e.find((function(e){return e.currencyCode===t.currency})))return e;if(f.countryCode&&t.countryCode!==R)return e;return __spreadArrays(e,[a])}),[]);return r}),[w,R]);var O=(s===null||s===void 0?void 0:s.replace("_","-"))||"en";var B=function(e,t){return e.displayName<t.displayName?-1:1};var U=(i=w===null||w===void 0?void 0:w.impactFinanceNetworkSettings)===null||i===void 0?void 0:i.data;var q=useMemo((function(){return new Set(U===null||U===void 0?void 0:U.map((function(e){return e.countryCode})).filter((function(e){return e})))}),[U]);var H=["CA","GB","US"];var G=useMemo((function(){return Array.from(q).map((function(e){return getCountryObj({countryCode:e,locale:O})})).sort(B).reduce((function(e,t){if(H.includes(t.countryCode))return __spreadArrays([t],e);return __spreadArrays(e,[t])}),[])}),[q]);useEffect((function(){if(G)A(G)}),[G]);useEffect((function(){if(F)g(F)}),[F]);useEffect((function(){if(P){c("/error");return}if(!o||!n)return;if(N){var e=N===null||N===void 0?void 0:N.user;if(!e||u!=="/loading")return;var t=getCurrentStep(e);c(t)}}),[o,n,(a=N===null||N===void 0?void 0:N.user)===null||a===void 0?void 0:a.email,P]);function j(){var e,t,r;if(u==="/1")return{};if(u==="/4")return{currency_eq:(r=(t=(e=N===null||N===void 0?void 0:N.user)===null||e===void 0?void 0:e.impactConnection)===null||t===void 0?void 0:t.publisher)===null||r===void 0?void 0:r.currency};if(R)return{countryCode_eq:R};return{}}return{step:u,setStep:c,context:l,namespace:Mn(TAX_CONTEXT_NAMESPACE),loading:u==="/loading"}}var TaxAndCashMonolith=function(){function e(e){registerInstance(this,e);this.step1_firstName="First name";this.step1_lastName="Last name";this.step1_email="Email";this.step1_country="Country";this.step1_phoneNumber="Phone number";this.step1_address="Address";this.step1_city="City";this.step1_state="State";this.step1_province="Province";this.step1_region="Region";this.step1_postalCode="Postal code";this.step1_currency="Currency";this.step1_currencyHelpText="Choose your preferred payout currency";this.step1_allowBankingCollection="I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information";this.step1_personalInformation="Personal Information";this.step1_termsAndConditionsLabel="terms and conditions";this.step1_termsAndConditionsLink="https://terms.advocate.impact.com/PayoutTermsAndConditions.html";this.step1_searchForCurrencyText="Search for currency..";this.step2_indirectTax="Indirect Tax";this.step2_indirectTaxDescription="Indirect taxes (e.g. VAT, HST, GST) are transaction based taxes often applied to goods and services. Service providers are typically required to register with their tax authority and collect these taxes on behalf governments.";this.step2_indirectTaxDetails="Indirect tax details";this.step2_otherRegion="Registered for indirect tax";this.step2_otherRegionSubtext="If you’ve registered with your tax authority, add your information to stay tax compliant.";this.step2_notRegistered="Not registered for indirect tax";this.step2_notRegisteredSubtext="If you’ve never set up indirect tax with your tax authority, then you’re likely not considered registered.";this.step2_selectedRegion="Country / region of indirect tax";this.step2_indirectTaxNumber="{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}}";this.step2_province="Province";this.step2_indirectTaxNumberError="{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}} is required";this.step2_qstNumber="QST number";this.step2_isRegisteredQST="I am registered for QST Tax";this.step2_isRegisteredSubRegionIncomeTax="I am an individual registered for Income Tax purposes in Spain, and withholding tax will apply to any payments made to me.";this.step2_subRegion="Sub-region";this.step2_subRegionTaxNumberLabel="Income Tax Number";this.step2_cannotChangeInfoAlert="Changes to your personal and indirect tax information can only be made through our {supportLink} after you complete this step. Make sure these are correct before continuing.";this.step3_taxForm="Tax form";this.step3_taxFormLabel="{documentType} Tax Form";this.step3_participantType="Participant type";this.step3_businessEntity="I represent a business";this.step3_individualParticipant="I am an individual participant";this.step3_taxFormDescription="Participants based in the US need to submit a {documentType} form.";this.step3_taxFormDescriptionIndividualParticipant="Participants residing outside of the US, joining the referral program of a US-based company, need to submit a {documentType} form.";this.step3_taxFormDescriptionBusinessEntity="Participants residing outside of the US who represent a business entity need to submit a {documentType} form.";this.step3_docusignExpired="For your security and privacy, we automatically end your session after 20 minutes of inactivity. Please refresh and re-enter your tax information to continue.";this.step3_docusignSessionWarning="For your security, we automatically end your session when you have not interacted with the form after 20 minutes.";this.step3_docusignError="There was a problem displaying this form. Please refresh the page. If this problem continues, contact our {supportLink}.";this.step3_refreshButton="Refresh Page";this.step3_exitButton="Exit";this.step3_modalTitle="Important Note";this.step3_modalDescription="Remember the name you enter in your tax form. It must exactly match the bank account holder name configured in the next step. {br}{br}Otherwise you will have to resubmit your form again and there will be delays receiving your payout.";this.step3_modalButtonText="I understand";this.step4_taxAndPayouts="Payouts";this.step4_directlyToBankAccount="Directly to my bank account";this.step4_toPayPalAccount="PayPal (2% processing fee capped to {feeCap})";this.step4_paymentScheduleBalanceThreshold="Pay me when my balance reaches a threshold";this.step4_paymentScheduleFixedDay="Pay me on a fixed day of the month";this.step4_paymentDaySelectLabel="Payment Day";this.step4_paymentThresholdSelectLabel="Payment threshold";this.step4_paymentDayFirstOfMonthLabelText="1st of the month";this.step4_paymentDayFifteenthOfMonthLabelText="15th of the month";this.step4_paymentMethod="Payment method";this.step4_paymentSchedule="Payment schedule";this.step4_paymentMethodSubtext="Payouts will be sent from our referral program provider, impact.com.";this.step4_payPalInputLabel="PayPal email";this.step4_bankLocationLabel="Bank country location";this.step4_beneficiaryAccountNameLabel="Account holder name";this.step4_beneficiaryAccountNameDescription="The beneficiary name of your bank account. Ensure this matches the name on your tax form.";this.step4_bankAccountTypeLabel="Bank account type";this.step4_checkingSelectItemLabel="Checking";this.step4_savingsSelectItemLabel="Savings";this.step4_bankAccountNumberLabel="Bank account number";this.step4_ibanLabel="IBAN";this.step4_swiftCodeLabel="SWIFT code";this.step4_routingCodeLabel="{bankCountry, select, AU {BSB number} CA {Routing number} CZ {Bank code} HK {Clearing code} SG {Clearing code} US {ABA routing number} NZ {BSB number} ZA {Bank/Branch number} IN {IFSC} CNY {CNAPS} other {Routing code} }";this.step4_bankNameLabel="Bank name";this.step4_classificationEntityLabel="Classification entity";this.step4_businessSelectItemLabel="Business";this.step4_individualSelectItemLabel="Individual";this.step4_foreignSelectItemLabel="Foreign";this.step4_classificationCPFLabel="Classification CPF";this.step4_patronymicNameLabel="Patronymic name";this.step4_voCodeLabel="VO code";this.step4_agencyCodeLabel="Agency code";this.step4_branchCodeLabel="Branch code";this.step4_classificationLabel="Classification";this.step4_taxPayerIdLabel="Beneficiary INN";this.step4_bankAddressLabel="Bank address";this.step4_bankCityLabel="Bank city";this.step4_bankStateLabel="Bank Province / State";this.step4_bankPostalCodeLabel="Bank postal code";this.step4_eftWithdrawalLabel="EFT Withdrawal (free)";this.step4_fxWireProcessingFeeLabel="FX Wire (Processing Fee {currency}{defaultFxFee}.00)";this.step4_verifyEmailHeaderText="Verify your email";this.step4_verifyEmailDescriptionText="Verify your email to update your payment settings. Enter the code sent to {email} from our referral provider, impact.com.";this.step4_modalTitle="Important Note";this.step4_modalDescription="Updating payment information places your account and payouts on hold for up to 48 hours while we verify your change. Payments scheduled during the hold period are skipped.";this.step4_modalButtonText="I understand, update my information";this.dashboard_statusTextActive="Active";this.dashboard_statusTextNotActive="Invalid Tax Form";this.dashboard_statusTextNotVerified="Not Verified";this.dashboard_badgeTextSubmittedOn="Submitted on {dateSubmitted}.";this.dashboard_badgeTextSubmittedOnW8="Submitted on {dateSubmitted}. Valid for three years after submission.";this.dashboard_badgeTextAwaitingReview="Awaiting review. Submitted on {dateSubmitted}.";this.dashboard_taxAlertHeaderNotActiveW9="Your W9 tax form has personal information that doesn’t match your profile";this.dashboard_taxAlertHeaderNotActiveW8="{documentType} tax form is invalid";this.dashboard_taxAlertNotActiveMessageW9="Please resubmit a new {documentType} form.";this.dashboard_taxAlertNotActiveMessageW8="Your tax form may have expired or has personal information that doesn’t match your profile. Please submit a new {documentType} form.";this.dashboard_invalidForm="Make sure your information is correct and submit new form.";this.dashboard_bankingInformationSectionHeader="Payout Information";this.dashboard_taxDocumentSectionHeader="Tax documents";this.dashboard_taxDocumentSectionSubHeader="{documentType} tax form";this.dashboard_noFormNeededSubtext="Tax documents are only required if you are based in the US or joining the referral program of a US based brand.";this.dashboard_indirectTaxInfoSectionHeader="Indirect tax";this.dashboard_indirectTaxInfoCanada="Registered in {province}, {country}";this.dashboard_indirectTaxInfoOtherCountry="Registered in {country}";this.dashboard_indirectTaxInfoSpain="Registered in {country}, {subRegion}";this.dashboard_indirectTaxTooltipSupport="To make changes to your indirect tax information, please contact our {supportLink}.";this.dashboard_indirectTaxDetails="{indirectTaxType} number: {indirectTaxNumber}";this.dashboard_newFormButton="Submit new form";this.dashboard_editPaymentInformationButton="Edit Payout Information";this.dashboard_notRegisteredForTax="Not registered for indirect tax. If you’ve previously registered with your tax authority, contact our {supportLink} to add your information to stay tax compliant.";this.dashboard_qstNumber="QST number: {qstNumber}";this.dashboard_subRegionTaxNumber="Income tax number: {subRegionTaxNumber}";this.dashboard_statusBadgeText="{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";this.dashboard_thresholdPayoutText="Next payout occurs when balance is {thresholdBalance}";this.dashboard_accountText="Account";this.dashboard_invoiceColumnTitle="Invoice";this.dashboard_dateColumnTitle="Date";this.dashboard_earningsColumnTitle="Earnings";this.dashboard_indirectTaxColumnTitle="Indirect tax";this.dashboard_payoutFromImpact="Your balance may take up to 24 hours to update. Payouts will be sent from our referral program provider, impact.com.";this.dashboard_earningsAfterTaxColumnTitle="Earnings after tax";this.dashboard_payoutHoldAlertHeader="Your payout is on hold";this.dashboard_payoutHoldAlertDescription="Please contact our {supportLink} or check your inbox for an email from our referral program provider, impact.com.";this.dashboard_payoutMissingInformationText="Missing banking information, go to Impact.com to resolve.";this.dashboard_invoiceDescription="View and download your invoices to report your earnings and stay tax compliant.";this.dashboard_invoicePrevLabel="Prev";this.dashboard_invoiceMoreLabel="Next";this.dashboard_invoiceHeader="Invoices";this.dashboard_invoiceEmptyStateHeader="View your invoice details";this.dashboard_invoiceEmptyStateText="Refer a friend to view the status of your invoices and rewards earned";this.dashboard_replaceTaxFormModalHeader="Replace existing tax form";this.dashboard_replaceTaxFormModalBodyText="Submitting a new tax form will remove your existing form. Make sure to sign and complete your new tax form to prevent any issues with your next payout.";this.dashboard_verificationRequiredHeader="Verify your identity";this.dashboard_verificationRequiredDescription="Complete your verification to start receiving your cash rewards. It should only take a few minutes verify. If you run in to an issue verifying your identity contact our {supportLink}.";this.dashboard_verificationRequiredInternalHeader="Identity Verification in Progress";this.dashboard_verificationRequiredInternalDescription="Identity verification submission has been received. Our system is currently performing additional checks and analyzing the results. You will be updated shortly. If you don't hear from us contact our {supportLink}.";this.dashboard_verificationReviewInternalHeader="Identity Verification Under Review";this.dashboard_verificationReviewInternalDescription="Identity verification requires further review due to a potential error. Our team is reviewing the information and will update you shortly. If you don't hear from us contact our {supportLink}.";this.dashboard_verificationFailedInternalHeader="Identity Verification Unsuccessful";this.dashboard_verificationFailedInternalDescription="Identity verification has failed. Our team is reviewing the report and will contact you with further information. If you don't hear from us contact our {supportLink}.";this.dashboard_verificationRequiredButtonText="Start Verification";this.formStep="Step {step} of {count}";this.generalErrorTitle="There was a problem submitting your information";this.generalErrorDescription="Please review your information and try again. If this problem continues, contact our {supportLink}.";this.fieldRequiredError="{fieldName} is required";this.invalidCharacterError="{fieldName} includes characters that aren't supported.";this.fieldInvalidError="{fieldName} is invalid";this.continueButton="Continue";this.backButton="Back";this.cancelButton="Cancel";this.isPartnerAlertHeader="An account with this email already exists with our referral program provider, impact.com";this.isPartnerAlertDescription="If you don’t recognize this referral program provider or believe this is a mistake, please contact our {supportLink} or sign up for this referral program with a different email.";this.searchForCountryText="Search for country..";this.loadingErrorAlertHeader="There was a problem loading your form";this.loadingErrorAlertDescription="Please refresh the page and try again. If this problem continues, contact our {supportLink}.";this.taxAndPayoutsDescription="Submit your tax documents and add your banking information to receive your rewards.";this.supportLink="support team";this.stateController="{}";h(this)}e.prototype.disconnectedCallback=function(){};e.prototype.getGeneralStepTextProps=function(e){var t=getProps(this);return __assign(__assign({},extractProps(t,e)),{generalErrorTitle:t.generalErrorTitle,generalErrorDescription:t.generalErrorDescription,fieldRequiredError:t.fieldRequiredError,invalidCharacterError:t.invalidCharacterError,fieldInvalidError:t.fieldInvalidError,continueButton:t.continueButton,backButton:t.backButton,cancelButton:t.cancelButton,isPartnerAlertHeader:t.isPartnerAlertHeader,isPartnerAlertDescription:t.isPartnerAlertDescription,loadingErrorAlertHeader:t.loadingErrorAlertHeader,loadingErrorAlertDescription:t.loadingErrorAlertDescription,taxAndPayoutsDescription:t.taxAndPayoutsDescription,searchForCountryText:t.searchForCountryText,formStep:t.formStep,supportLink:t.supportLink})};e.prototype.render=function(){var e=this;var t,r;var i=isDemo()?useDemoTaxAndCash(this):useTaxAndCash();if((t=this.demoData)===null||t===void 0?void 0:t.showTextProps){var a=getProps(this);return h$1("div",null,(r=Object.keys(a))===null||r===void 0?void 0:r.map((function(t){if(t==="demoData")return;return h$1("div",null,h$1("b",null,t,":")," ",e[t],h$1("hr",null))})))}var o=function(){switch(i.step){case"/1":return h$1("sqm-user-info-form",Object.assign({},e.getGeneralStepTextProps("step1_"),extractProps(i,"sqm-user-info-form_")));case"/2":return h$1("sqm-indirect-tax-form",Object.assign({},e.getGeneralStepTextProps("step2_"),extractProps(i,"sqm-indirect-tax-form_")));case"/3":return h$1("sqm-docusign-form",Object.assign({},e.getGeneralStepTextProps("step3_"),extractProps(i,"sqm-docusign-form_")));case"/4":return h$1("sqm-banking-info-form",Object.assign({},e.getGeneralStepTextProps("step4_"),extractProps(i,"sqm-banking-info-form_")));case"/dashboard":return h$1("sqm-tax-and-cash-dashboard",Object.assign({},e.getGeneralStepTextProps("dashboard_"),extractProps(i,"sqm-tax-and-cash-dashboard_")));case"/error":return h$1("sqm-form-message",{type:"error"},h$1("p",{part:"alert-title"},e.loadingErrorAlertHeader),h$1("p",{part:"alert-description"},e.loadingErrorAlertDescription))}};return o()||h$1(LoadingView,null)};return e}();function useDemoTaxAndCash(e){var t=In({namespace:TAX_CONTEXT_NAMESPACE,initialValue:"/1"}),r=t[0],i=t[1];var a=parseStates(e.stateController);var o=Object.keys(a).reduce((function(e,t){var r;return t==="sqm-tax-and-cash"?__assign(__assign({},e),a[t]):__assign(__assign({},e),(r={},r[t+"_stateController"]=a[t],r))}),{});return cjs({step:r,setStep:i},e.demoData||o||{},{arrayMerge:function(e,t){return t}})}export{TaxAndCashMonolith as sqm_tax_and_cash};
@@ -1 +1 @@
1
- import{h}from"./index-b3a06de8.js";import{i as intl}from"./global-6e857596.js";import{c as createStyleSheet}from"./JSS-67b5cff8.js";var style={Container:{display:"flex",flexDirection:"column",gap:"24px"},HeaderContainer:{display:"flex",flexDirection:"column",gap:"10px"},TitleSkeleton:{width:"45%",height:"40px !important"},StepSkeleton:{width:"15%"},HeaderSkeleton:{width:"25%",height:"30px !important"},InputSkeleton:{width:"75%"},ButtonSkeleton:{width:"80px",height:"30px !important"}};var sheet=createStyleSheet(style);var styleString=sheet.toString();var LoadingView=function(){return h("div",{class:sheet.classes.Container},h("style",{type:"text/css"},styleString),h("sl-skeleton",{class:sheet.classes.TitleSkeleton}),h("div",{class:sheet.classes.HeaderContainer},h("sl-skeleton",{class:sheet.classes.StepSkeleton}),h("sl-skeleton",{class:sheet.classes.HeaderSkeleton})),h("sl-skeleton",{class:sheet.classes.InputSkeleton}),h("sl-skeleton",{class:sheet.classes.InputSkeleton}),h("sl-skeleton",{class:sheet.classes.InputSkeleton}),h("sl-skeleton",{class:sheet.classes.InputSkeleton}),h("sl-skeleton",{class:sheet.classes.InputSkeleton}),h("sl-skeleton",{class:sheet.classes.StepSkeleton}),h("sl-skeleton",{class:sheet.classes.ButtonSkeleton}))};function validTaxDocument(e){var t=["W9","W8BENE","W8BEN"];if(t.includes(e))return true;return false}var objectIsFull=function(e){return!Object.keys(e).find((function(t){return e[t]==undefined}))};var taxTypeToName=function(e){switch(e){case"W9":return"W-9";case"W8BEN":case"W8BENE":return"W-8";default:return""}};function validateBillingField(e,t){var s=t.trim();var l=s.search(e);return l>-1}var formatErrorMessage=function(e,t){return intl.formatMessage({id:e,defaultMessage:t},{fieldName:e})};function getCountryObj(e){var t=e.countryCode,s=e.locale;var l=new Intl.DisplayNames([s],{type:"region"}).of(t);return{countryCode:t,displayName:l}}export{LoadingView as L,validateBillingField as a,formatErrorMessage as f,getCountryObj as g,objectIsFull as o,taxTypeToName as t,validTaxDocument as v};
1
+ import{h}from"./index-b3a06de8.js";import{i as intl}from"./global-200e3d35.js";import{c as createStyleSheet}from"./JSS-67b5cff8.js";var style={Container:{display:"flex",flexDirection:"column",gap:"24px"},HeaderContainer:{display:"flex",flexDirection:"column",gap:"10px"},TitleSkeleton:{width:"45%",height:"40px !important"},StepSkeleton:{width:"15%"},HeaderSkeleton:{width:"25%",height:"30px !important"},InputSkeleton:{width:"75%"},ButtonSkeleton:{width:"80px",height:"30px !important"}};var sheet=createStyleSheet(style);var styleString=sheet.toString();var LoadingView=function(){return h("div",{class:sheet.classes.Container},h("style",{type:"text/css"},styleString),h("sl-skeleton",{class:sheet.classes.TitleSkeleton}),h("div",{class:sheet.classes.HeaderContainer},h("sl-skeleton",{class:sheet.classes.StepSkeleton}),h("sl-skeleton",{class:sheet.classes.HeaderSkeleton})),h("sl-skeleton",{class:sheet.classes.InputSkeleton}),h("sl-skeleton",{class:sheet.classes.InputSkeleton}),h("sl-skeleton",{class:sheet.classes.InputSkeleton}),h("sl-skeleton",{class:sheet.classes.InputSkeleton}),h("sl-skeleton",{class:sheet.classes.InputSkeleton}),h("sl-skeleton",{class:sheet.classes.StepSkeleton}),h("sl-skeleton",{class:sheet.classes.ButtonSkeleton}))};function validTaxDocument(e){var t=["W9","W8BENE","W8BEN"];if(t.includes(e))return true;return false}var objectIsFull=function(e){return!Object.keys(e).find((function(t){return e[t]==undefined}))};var taxTypeToName=function(e){switch(e){case"W9":return"W-9";case"W8BEN":case"W8BENE":return"W-8";default:return""}};function validateBillingField(e,t){var s=t.trim();var l=s.search(e);return l>-1}var formatErrorMessage=function(e,t){return intl.formatMessage({id:e,defaultMessage:t},{fieldName:e})};function getCountryObj(e){var t=e.countryCode,s=e.locale;var l=new Intl.DisplayNames([s],{type:"region"}).of(t);return{countryCode:t,displayName:l}}export{LoadingView as L,validateBillingField as a,formatErrorMessage as f,getCountryObj as g,objectIsFull as o,taxTypeToName as t,validTaxDocument as v};
@@ -579,35 +579,39 @@ html {
579
579
  --sqm-color-text-error: #e63717;
580
580
  --sqm-content-max-width: 700px;
581
581
  --sqm-content-background: var(--sl-color-white);
582
- --sqm-portal-background: ${config?.color?.backgroundColor || "#fff"};
583
- --sqm-primary-font: ${config?.main?.brandFont || "var(--sl-font-sans)"};
582
+ --sqm-portal-background: ${
583
+ config?.color?.backgroundColor || "hsla(0, 0%, 100%, 1)"
584
+ };
585
+ --sqm-primary-font: ${config?.main?.brandFont || "Nunito Sans"};
584
586
  --widget-background-color: var(--sl-color-white);
585
587
  --sqm-portal-main-width: 900px;
586
588
  --sqm-max-width: 100%;
587
- --sqm-skeleton-background: #eee;
588
- --sqm-text: ${config?.color?.textColorShades?.mainText || "#27272A"};
589
+ --sqm-skeleton-background: hsl(240, 4%, 91%);
590
+ --sqm-text: ${
591
+ config?.color?.textColorShades?.mainText || "hsl(240, 4%, 16%)"
592
+ };
589
593
  --sqm-text-subdued: ${
590
- config?.color?.textColorShades?.subduedText || "#717179"
594
+ config?.color?.textColorShades?.subduedText || "hsl(240, 3%, 46%)"
591
595
  };
592
596
 
593
- --sqm-primary-color: ${config?.main?.brandColor || "#236AEB"};
597
+ --sqm-primary-color: ${config?.main?.brandColor || "hsl(0, 0%, 7%)"};
594
598
  --sqm-primary-button-background:${
595
- config?.primaryButton?.buttonColor?.background || "#236AEB"
599
+ config?.primaryButton?.buttonColor?.background || "hsl(0, 0%, 7%)"
596
600
  };
597
601
  --sqm-primary-button-background-hover: ${
598
- config?.primaryButton?.buttonHoverColor?.background || "#3698df"
602
+ config?.primaryButton?.buttonHoverColor?.background || "hsl(0, 0%, 25%)"
599
603
  };
600
604
  --sqm-primary-button-color-hover: ${
601
- config?.primaryButton?.buttonHoverColor?.label || "#FFFFFF"
605
+ config?.primaryButton?.buttonHoverColor?.label || "hsla(0, 0%, 100%, 1)"
602
606
  };
603
607
  --sqm-primary-button-border-color-hover: ${
604
- config?.primaryButton?.buttonHoverColor?.border || "transparent"
608
+ config?.primaryButton?.buttonHoverColor?.border || "hsl(0, 0%, 25%)"
605
609
  };
606
610
  --sqm-primary-button-color: ${
607
- config?.primaryButton?.buttonColor?.label || "#FFFFFF"
611
+ config?.primaryButton?.buttonColor?.label || "hsla(0, 0%, 100%, 1)"
608
612
  };
609
613
  --sqm-primary-button-color-border: ${
610
- config?.primaryButton?.buttonColor?.border || "transparent"
614
+ config?.primaryButton?.buttonColor?.border || "hsl(0, 0%, 7%)"
611
615
  };
612
616
  --sqm-primary-button-radius: ${
613
617
  config?.primaryButton?.borderRadius
@@ -615,22 +619,22 @@ html {
615
619
  : "4px"
616
620
  };
617
621
  --sqm-secondary-button-background: ${
618
- config?.secondaryButton?.buttonColor?.background || "transparent"
622
+ config?.secondaryButton?.buttonColor?.background || "hsl(0, 0%, 100%)"
619
623
  };
620
624
  --sqm-secondary-button-background-hover: ${
621
- config?.secondaryButton?.buttonHoverColor?.background || "#DEF0FC"
625
+ config?.secondaryButton?.buttonHoverColor?.background || "hsl(0, 0%, 7%)"
622
626
  };
623
627
  --sqm-secondary-button-color-hover: ${
624
- config?.secondaryButton?.buttonHoverColor?.label || "#3878DB"
628
+ config?.secondaryButton?.buttonHoverColor?.label || "hsl(0, 0%, 100%)"
625
629
  };
626
630
  --sqm-secondary-button-border-color-hover: ${
627
- config?.secondaryButton?.buttonHoverColor?.border || "#3798DF"
631
+ config?.secondaryButton?.buttonHoverColor?.border || "hsl(0, 0%, 7%)"
628
632
  };
629
633
  --sqm-secondary-button-color: ${
630
- config?.secondaryButton?.buttonColor?.label || "#27272A"
634
+ config?.secondaryButton?.buttonColor?.label || "hsl(0, 0%, 7%)"
631
635
  };
632
636
  --sqm-secondary-button-color-border: ${
633
- config?.secondaryButton?.buttonColor?.border || "#E4E4E7"
637
+ config?.secondaryButton?.buttonColor?.border || "hsl(0, 0%, 100%)"
634
638
  };
635
639
  --sqm-secondary-button-radius: ${
636
640
  config?.secondaryButton?.borderRadius
@@ -641,7 +645,7 @@ html {
641
645
  --sqm-border-radius-normal: ${
642
646
  config?.border?.borderRadius ? config?.border?.borderRadius + "px" : "4px"
643
647
  };
644
- --sqm-border-color: ${config?.border?.borderColor || "#E4E4E7"};
648
+ --sqm-border-color: ${config?.border?.borderColor || "hsl(240, 4%, 91%)"};
645
649
 
646
650
  --sqm-border-thickness: ${
647
651
  config?.border?.borderThickness
@@ -650,67 +654,75 @@ html {
650
654
  };
651
655
 
652
656
  --sqm-accent-color-icon: ${
653
- config?.color?.accentColorShades?.icon || "#7ECCF7"
657
+ config?.color?.accentColorShades?.icon || "hsl(0, 0%, 7%)"
654
658
  };
655
659
  --sqm-accent-color-text: ${
656
- config?.color?.accentColorShades?.text || "#3798DF"
660
+ config?.color?.accentColorShades?.text || "hsl(0, 0%, 7%)"
657
661
  };
658
662
  --sqm-accent-color-border: ${
659
- config?.color?.accentColorShades?.border || "#3798DF"
663
+ config?.color?.accentColorShades?.border || "hsl(240, 6%, 90%)"
660
664
  };
661
665
  --sqm-accent-color-background: ${
662
- config?.color?.accentColorShades?.background || "#EFF8FE"
666
+ config?.color?.accentColorShades?.background || "hsl(0, 0%, 93%)"
663
667
  };
664
668
 
665
669
  --sqm-success-color-icon: ${
666
- config?.color?.success?.iconAndBadge || "var(--sl-color-success-600)"
670
+ config?.color?.success?.iconAndBadge || "hsl(142, 71%, 45%)"
671
+ };
672
+ --sqm-success-color-text: ${
673
+ config?.color?.success?.text || "hsl(164, 74%, 15%)"
667
674
  };
668
- --sqm-success-color-text: ${config?.color?.success?.text || "#fff"};
669
675
  --sqm-success-color-border: ${
670
- config?.color?.success?.border || "var(--sl-color-success-400)"
676
+ config?.color?.success?.border || "hsl(141, 79%, 85%)"
671
677
  };
672
678
  --sqm-success-color-background: ${
673
- config?.color?.success?.background || "var(--sl-color-success-300)"
679
+ config?.color?.success?.background || "hsl(141, 84%, 93%)"
674
680
  };
675
681
 
676
682
  --sqm-warning-color-icon: ${
677
- config?.color?.warning?.iconAndBadge || "var(--sl-color-warning-600)"
683
+ config?.color?.warning?.iconAndBadge || "hsl(38, 92%, 50%)"
684
+ };
685
+ --sqm-warning-color-text: ${
686
+ config?.color?.warning?.text || "hsl(38, 70%, 24%)"
678
687
  };
679
- --sqm-warning-color-text: ${config?.color?.warning?.text || "#fff"};
680
688
  --sqm-warning-color-border: ${
681
- config?.color?.warning?.border || "var(--sl-color-warning-400)"
689
+ config?.color?.warning?.border || "hsl(48, 97%, 85%)"
682
690
  };
683
691
  --sqm-warning-color-background: ${
684
- config?.color?.warning?.background || "var(--sl-color-warning-300)"
692
+ config?.color?.warning?.background || "hsl(48, 97%, 85%)"
685
693
  };
686
694
 
687
695
  --sqm-danger-color-icon: ${
688
- config?.color?.critical?.iconAndBadge || "var(--sl-color-danger-600)"
696
+ config?.color?.critical?.iconAndBadge || "hsl(0, 84%, 60%)"
697
+ };
698
+ --sqm-danger-color-text: ${
699
+ config?.color?.critical?.text || "hsl(0, 57%, 26%)"
689
700
  };
690
- --sqm-danger-color-text: ${config?.color?.critical?.text || "#fff"};
691
701
  --sqm-danger-color-border: ${
692
- config?.color?.critical?.border || "var(--sl-color-danger-400)"
702
+ config?.color?.critical?.border || "hsl(0, 97%, 85%)"
693
703
  };
694
704
  --sqm-danger-color-background: ${
695
- config?.color?.critical?.background || "var(--sl-color-danger-300)"
705
+ config?.color?.critical?.background || "hsl(0, 93%, 94%)"
696
706
  };
697
707
 
698
708
  --sqm-informative-color-icon: ${
699
- config?.color?.informative?.iconAndBadge || "var(--sl-color-sky-600)"
709
+ config?.color?.informative?.iconAndBadge || "hsl(221, 83%, 53%)"
710
+ };
711
+ --sqm-informative-color-text: ${
712
+ config?.color?.informative?.text || "hsl(221, 75%, 20%)"
700
713
  };
701
- --sqm-informative-color-text: ${config?.color?.informative?.text || "#fff"};
702
714
  --sqm-informative-color-border: ${
703
- config?.color?.informative?.border || "var(--sl-color-sky-400)"
715
+ config?.color?.informative?.border || "hsl(213, 97%, 85%)"
704
716
  };
705
717
  --sqm-informative-color-background: ${
706
- config?.color?.informative?.background || "var(--sl-color-sky-300)"
718
+ config?.color?.informative?.background || "hsl(214, 95%, 93%)"
707
719
  };
708
720
 
709
721
  --sqm-input-background: ${
710
- config?.formFields?.formFieldColor?.background || "#fff"
722
+ config?.formFields?.formFieldColor?.background || "hsla(0, 0%, 100%, 1)"
711
723
  };
712
724
  --sqm-input-border-color: ${
713
- config?.formFields?.formFieldColor?.border || "#E4E4E7"
725
+ config?.formFields?.formFieldColor?.border || "hsl(240, 6%, 90%)"
714
726
  };
715
727
  --sqm-input-border-radius: ${
716
728
  config?.formFields?.borderRadius
@@ -718,14 +730,14 @@ html {
718
730
  : "4px"
719
731
  };
720
732
  --sqm-input-color: ${
721
- config?.formFields?.formFieldColor?.inputText || "#27272A"
733
+ config?.formFields?.formFieldColor?.inputText || "hsl(0, 0%, 7%)"
722
734
  };
723
735
  --sqm-input-label-color: var(--sqm-text);
724
736
  --sqm-input-border-color-focus: ${
725
- config?.formFields?.selectedStateColor || "#E4E4E7"
737
+ config?.formFields?.selectedStateColor || "hsl(0, 0%, 7%)"
726
738
  };
727
739
  --sqm-input-border-color-hover: ${
728
- config?.formFields?.hoverStateColor || "#E4E4E7"
740
+ config?.formFields?.hoverStateColor || "hsl(0, 0%, 91%)"
729
741
  };
730
742
  --sqm-input-label-font-size: inherit;
731
743
  --sqm-input-disabled-color: var(--sqm-text-subdued);