@saasquatch/mint-components 1.15.0-56 → 1.15.0-58
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.
- package/dist/cjs/{IndirectTaxDetailsView-327a5fbb.js → IndirectTaxDetailsView-efb91164.js} +2 -2
- package/dist/cjs/{ShadowViewAddon-ff75ab64.js → ShadowViewAddon-f1335e17.js} +1 -1
- package/dist/cjs/{global-5dd02132.js → global-5364773c.js} +61 -57
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +3 -3
- package/dist/cjs/sqm-big-stat_42.cjs.entry.js +2 -2
- package/dist/cjs/sqm-code-verification.cjs.entry.js +1 -1
- package/dist/cjs/sqm-email-verification.cjs.entry.js +1 -1
- package/dist/cjs/sqm-empty_4.cjs.entry.js +1 -1
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +1 -1
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-email-verification-view-93b8caa6.js → sqm-portal-email-verification-view-ba877a79.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-profile-view-63b34f11.js → sqm-portal-profile-view-4ecd7ae0.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +1 -1
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +1 -1
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +6 -6
- package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +2 -2
- package/dist/cjs/{utils-2a58ebaa.js → utils-88c75f64.js} +1 -1
- package/dist/collection/global/styles.js +61 -57
- package/dist/collection/global/styles.ts +60 -42
- package/dist/esm/{IndirectTaxDetailsView-83ba1411.js → IndirectTaxDetailsView-e21e45a9.js} +2 -2
- package/dist/esm/{ShadowViewAddon-e35b15a1.js → ShadowViewAddon-e9e83c68.js} +1 -1
- package/dist/esm/{global-314df4e4.js → global-65c71ba6.js} +61 -57
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/sqm-banking-info-form_10.entry.js +3 -3
- package/dist/esm/sqm-big-stat_42.entry.js +2 -2
- package/dist/esm/sqm-code-verification.entry.js +1 -1
- package/dist/esm/sqm-email-verification.entry.js +1 -1
- package/dist/esm/sqm-empty_4.entry.js +1 -1
- package/dist/esm/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm/sqm-pagination_3.entry.js +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-a9ea5c74.js → sqm-portal-email-verification-view-3cf8fa19.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +2 -2
- package/dist/esm/{sqm-portal-profile-view-b4f7337e.js → sqm-portal-profile-view-be9ce223.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +2 -2
- package/dist/esm/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm/sqm-stencilbook.entry.js +6 -6
- package/dist/esm/sqm-tax-and-cash.entry.js +2 -2
- package/dist/esm/{utils-b72a4473.js → utils-8ec55dc5.js} +1 -1
- package/dist/esm-es5/{IndirectTaxDetailsView-83ba1411.js → IndirectTaxDetailsView-e21e45a9.js} +1 -1
- package/dist/esm-es5/{ShadowViewAddon-e35b15a1.js → ShadowViewAddon-e9e83c68.js} +1 -1
- package/dist/esm-es5/{global-314df4e4.js → global-65c71ba6.js} +3 -3
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_42.entry.js +1 -1
- package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-a9ea5c74.js → sqm-portal-email-verification-view-3cf8fa19.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-b4f7337e.js → sqm-portal-profile-view-be9ce223.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-tax-and-cash.entry.js +1 -1
- package/dist/esm-es5/{utils-b72a4473.js → utils-8ec55dc5.js} +1 -1
- package/dist/mint-components/global/styles.ts +60 -42
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-90b5933e.system.entry.js → p-053e951b.system.entry.js} +1 -1
- package/dist/mint-components/{p-42da1370.system.entry.js → p-0da0f8f7.system.entry.js} +1 -1
- package/dist/mint-components/{p-409c29d3.js → p-116d2c05.js} +1 -1
- package/dist/mint-components/{p-8dfaddeb.system.entry.js → p-13eb9c48.system.entry.js} +1 -1
- package/dist/mint-components/{p-26a44864.entry.js → p-1a6cd743.entry.js} +1 -1
- package/dist/mint-components/{p-158c9b20.entry.js → p-1e8faf18.entry.js} +1 -1
- package/dist/mint-components/{p-9b103d72.system.entry.js → p-30f1aa2e.system.entry.js} +1 -1
- package/dist/mint-components/{p-df09b9fb.system.entry.js → p-38d55177.system.entry.js} +1 -1
- package/dist/mint-components/{p-8ab63320.entry.js → p-3a831f6d.entry.js} +1 -1
- package/dist/mint-components/{p-3f826de6.entry.js → p-3acc5981.entry.js} +1 -1
- package/dist/mint-components/{p-7539dad9.system.js → p-3dd3d099.system.js} +1 -1
- package/dist/mint-components/{p-c39d68e7.entry.js → p-3f7a762a.entry.js} +2 -2
- package/dist/mint-components/{p-540b5ec1.js → p-432b0cf7.js} +1 -1
- package/dist/mint-components/{p-9818a89d.entry.js → p-47ce7dd2.entry.js} +1 -1
- package/dist/mint-components/{p-4607075e.system.js → p-4b93abef.system.js} +1 -1
- package/dist/mint-components/{p-e925fac7.system.entry.js → p-515e865e.system.entry.js} +1 -1
- package/dist/mint-components/{p-86e5fabc.system.entry.js → p-5aaedfb3.system.entry.js} +1 -1
- package/dist/mint-components/{p-247594bb.entry.js → p-5f0a4066.entry.js} +1 -1
- package/dist/mint-components/{p-d89c9f4e.entry.js → p-5fe9d54c.entry.js} +1 -1
- package/dist/mint-components/{p-0a998561.system.js → p-60317645.system.js} +12 -12
- package/dist/mint-components/{p-b94d16d1.js → p-65c936fe.js} +1 -1
- package/dist/mint-components/{p-481503f0.system.entry.js → p-6b45f2ce.system.entry.js} +1 -1
- package/dist/mint-components/{p-9a396868.system.js → p-728a5cef.system.js} +1 -1
- package/dist/mint-components/{p-753da9ee.entry.js → p-854a32af.entry.js} +1 -1
- package/dist/mint-components/{p-fbb89cb5.system.js → p-895f4004.system.js} +1 -1
- package/dist/mint-components/{p-e735ba6c.entry.js → p-92d12e98.entry.js} +1 -1
- package/dist/mint-components/{p-f0429b47.entry.js → p-97920f95.entry.js} +1 -1
- package/dist/mint-components/{p-730b06ef.system.entry.js → p-9d301ee5.system.entry.js} +1 -1
- package/dist/mint-components/{p-ed6c1113.system.js → p-9db09e92.system.js} +1 -1
- package/dist/mint-components/{p-19fe9692.system.entry.js → p-9fd2b90a.system.entry.js} +1 -1
- package/dist/mint-components/{p-5c7cae43.js → p-a9c20a29.js} +1 -1
- package/dist/mint-components/{p-c2af93d1.entry.js → p-a9cf7156.entry.js} +1 -1
- package/dist/mint-components/{p-73084fdf.system.entry.js → p-b11ad24f.system.entry.js} +1 -1
- package/dist/mint-components/{p-51bb9860.js → p-bfbe7523.js} +9 -9
- package/dist/mint-components/{p-f00c2007.entry.js → p-d6a37722.entry.js} +2 -2
- package/dist/mint-components/{p-ac255bb1.js → p-d7cdb31f.js} +1 -1
- package/dist/mint-components/{p-8b2bdd34.system.entry.js → p-d961cfc2.system.entry.js} +1 -1
- package/dist/mint-components/{p-e831f72c.system.js → p-f2d8297f.system.js} +1 -1
- package/dist/mint-components/{p-2497956a.system.entry.js → p-f6a6a90e.system.entry.js} +1 -1
- package/docs/docs.docx +0 -0
- package/package.json +1 -1
|
@@ -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-314df4e4.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-38dad6c9.js";import{c as cjs}from"./cjs-bdfb4486.js";import{g as getProps}from"./utils-334c1e34.js";import"./JSS-67b5cff8.js";import{E as ErrorView}from"./ErrorView-eaafd6f5.js";import{g as getCountryObj,L as LoadingView}from"./utils-b72a4473.js";import{e as extractProps,p as parseStates}from"./extractProps-54064fb0.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-ee3ae298.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 w=Sn({namespace:FINANCE_NETWORK_SETTINGS_NAMESPACE,query:GET_FINANCE_NETWORK_SETTINGS,skip:!n,variables:{filter:G()}}),k=w.data,D=w.refetch;var M=Sn({namespace:CURRENCIES_QUERY_NAMESPACE,query:GET_CURRENCIES,skip:!n,variables:{locale:s}}).data;var O=useMemo((function(){var e,t;var r=(t=(e=k===null||k===void 0?void 0:k.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=M===null||M===void 0?void 0:M.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}),[k,R]);var F=(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=k===null||k===void 0?void 0:k.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 V=useMemo((function(){return Array.from(q).map((function(e){return getCountryObj({countryCode:e,locale:F})})).sort(B).reduce((function(e,t){if(H.includes(t.countryCode))return __spreadArrays([t],e);return __spreadArrays(e,[t])}),[])}),[q]);useEffect((function(){if(V)A(V)}),[V]);useEffect((function(){if(O)g(O)}),[O]);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 G(){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(ErrorView,{loadingErrorAlertHeader:e.loadingErrorAlertHeader,loadingErrorAlertDescription: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];console.log("PROPS",e);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-65c71ba6.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-38dad6c9.js";import{c as cjs}from"./cjs-bdfb4486.js";import{g as getProps}from"./utils-334c1e34.js";import"./JSS-67b5cff8.js";import{E as ErrorView}from"./ErrorView-eaafd6f5.js";import{g as getCountryObj,L as LoadingView}from"./utils-8ec55dc5.js";import{e as extractProps,p as parseStates}from"./extractProps-54064fb0.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-ee3ae298.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 w=Sn({namespace:FINANCE_NETWORK_SETTINGS_NAMESPACE,query:GET_FINANCE_NETWORK_SETTINGS,skip:!n,variables:{filter:G()}}),k=w.data,D=w.refetch;var M=Sn({namespace:CURRENCIES_QUERY_NAMESPACE,query:GET_CURRENCIES,skip:!n,variables:{locale:s}}).data;var O=useMemo((function(){var e,t;var r=(t=(e=k===null||k===void 0?void 0:k.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=M===null||M===void 0?void 0:M.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}),[k,R]);var F=(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=k===null||k===void 0?void 0:k.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 V=useMemo((function(){return Array.from(q).map((function(e){return getCountryObj({countryCode:e,locale:F})})).sort(B).reduce((function(e,t){if(H.includes(t.countryCode))return __spreadArrays([t],e);return __spreadArrays(e,[t])}),[])}),[q]);useEffect((function(){if(V)A(V)}),[V]);useEffect((function(){if(O)g(O)}),[O]);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 G(){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(ErrorView,{loadingErrorAlertHeader:e.loadingErrorAlertHeader,loadingErrorAlertDescription: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];console.log("PROPS",e);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-
|
|
1
|
+
import{h}from"./index-b3a06de8.js";import{i as intl}from"./global-65c71ba6.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};
|
|
@@ -578,26 +578,28 @@ html {
|
|
|
578
578
|
--sqm-color-text-error: #e63717;
|
|
579
579
|
--sqm-content-max-width: 700px;
|
|
580
580
|
--sqm-content-background: var(--sl-color-white);
|
|
581
|
-
--sqm-portal-background: ${config?.color?.backgroundColor};
|
|
581
|
+
--sqm-portal-background: ${config?.color?.backgroundColor || "#fff"};
|
|
582
582
|
--widget-background-color: var(--sl-color-white);
|
|
583
583
|
--sqm-portal-main-width: 900px;
|
|
584
584
|
--sqm-max-width: 100%;
|
|
585
585
|
--sqm-skeleton-background: #eee;
|
|
586
|
-
--sqm-text: ${config?.color?.textColorShades?.mainText || "
|
|
587
|
-
--sqm-text-subdued: ${
|
|
586
|
+
--sqm-text: ${config?.color?.textColorShades?.mainText || "#27272A"};
|
|
587
|
+
--sqm-text-subdued: ${
|
|
588
|
+
config?.color?.textColorShades?.subduedText || "#717179"
|
|
589
|
+
};
|
|
588
590
|
|
|
589
|
-
--sqm-primary-color: ${config?.main?.brandColor || "#
|
|
591
|
+
--sqm-primary-color: ${config?.main?.brandColor || "#236AEB"};
|
|
590
592
|
--sqm-primary-button-background:${
|
|
591
|
-
config?.primaryButton?.buttonColor?.background || "#
|
|
593
|
+
config?.primaryButton?.buttonColor?.background || "#236AEB"
|
|
592
594
|
};
|
|
593
595
|
--sqm-primary-button-background-hover: ${
|
|
594
|
-
config?.primaryButton?.buttonHoverColor?.background || "#
|
|
596
|
+
config?.primaryButton?.buttonHoverColor?.background || "#3698df"
|
|
595
597
|
};
|
|
596
598
|
--sqm-primary-button-color-hover: ${
|
|
597
|
-
config?.primaryButton?.buttonHoverColor?.label
|
|
599
|
+
config?.primaryButton?.buttonHoverColor?.label || "#FFFFFF"
|
|
598
600
|
};
|
|
599
601
|
--sqm-primary-button-border-color-hover: ${
|
|
600
|
-
config?.primaryButton?.buttonHoverColor?.border || "
|
|
602
|
+
config?.primaryButton?.buttonHoverColor?.border || "transparent"
|
|
601
603
|
};
|
|
602
604
|
--sqm-primary-button-color: ${
|
|
603
605
|
config?.primaryButton?.buttonColor?.label || "#FFFFFF"
|
|
@@ -605,47 +607,63 @@ html {
|
|
|
605
607
|
--sqm-primary-button-color-border: ${
|
|
606
608
|
config?.primaryButton?.buttonColor?.border || "transparent"
|
|
607
609
|
};
|
|
608
|
-
--sqm-primary-button-radius: ${
|
|
610
|
+
--sqm-primary-button-radius: ${
|
|
611
|
+
config?.primaryButton?.borderRadius
|
|
612
|
+
? config?.primaryButton?.borderRadius + "px"
|
|
613
|
+
: "4px"
|
|
614
|
+
};
|
|
609
615
|
--sqm-secondary-button-background: ${
|
|
610
|
-
config?.secondaryButton?.buttonColor || "
|
|
616
|
+
config?.secondaryButton?.buttonColor || "transparent"
|
|
611
617
|
};
|
|
612
618
|
--sqm-secondary-button-background-hover: ${
|
|
613
|
-
config?.secondaryButton?.buttonHoverColor?.background
|
|
619
|
+
config?.secondaryButton?.buttonHoverColor?.background || "#DEF0FC"
|
|
614
620
|
};
|
|
615
621
|
--sqm-secondary-button-color-hover: ${
|
|
616
|
-
config?.secondaryButton?.buttonHoverColor?.label
|
|
622
|
+
config?.secondaryButton?.buttonHoverColor?.label || "#3878DB"
|
|
617
623
|
};
|
|
618
624
|
--sqm-secondary-button-border-color-hover: ${
|
|
619
|
-
config?.secondaryButton?.buttonHoverColor?.border
|
|
625
|
+
config?.secondaryButton?.buttonHoverColor?.border || "#3798DF"
|
|
620
626
|
};
|
|
621
627
|
--sqm-secondary-button-color: ${
|
|
622
|
-
config?.secondaryButton?.buttonColor?.label || "#
|
|
628
|
+
config?.secondaryButton?.buttonColor?.label || "#27272A"
|
|
623
629
|
};
|
|
624
630
|
--sqm-secondary-button-color-border: ${
|
|
625
|
-
config?.secondaryButton?.buttonColor?.border || "#
|
|
631
|
+
config?.secondaryButton?.buttonColor?.border || "#E4E4E7"
|
|
626
632
|
};
|
|
627
633
|
--sqm-secondary-button-radius: ${
|
|
628
|
-
config?.secondaryButton?.borderRadius
|
|
634
|
+
config?.secondaryButton?.borderRadius
|
|
635
|
+
? config?.secondaryButton?.borderRadius + "px"
|
|
636
|
+
: "4px"
|
|
629
637
|
};
|
|
630
638
|
|
|
631
|
-
--sqm-border-radius-normal: ${
|
|
632
|
-
|
|
639
|
+
--sqm-border-radius-normal: ${
|
|
640
|
+
config?.border?.borderRadius ? config?.border?.borderRadius + "px" : "4px"
|
|
641
|
+
};
|
|
642
|
+
--sqm-border-color: ${config?.border?.borderColor || "#E4E4E7"};
|
|
633
643
|
|
|
634
|
-
--sqm-border-thickness: ${
|
|
644
|
+
--sqm-border-thickness: ${
|
|
645
|
+
config?.border?.borderThickness
|
|
646
|
+
? config?.border?.borderThickness + "px"
|
|
647
|
+
: "1px"
|
|
648
|
+
};
|
|
635
649
|
|
|
636
|
-
--sqm-accent-color-icon: ${
|
|
637
|
-
|
|
638
|
-
|
|
650
|
+
--sqm-accent-color-icon: ${
|
|
651
|
+
config?.color?.accentColorShades?.icon || "#7ECCF7"
|
|
652
|
+
};
|
|
653
|
+
--sqm-accent-color-text: ${
|
|
654
|
+
config?.color?.accentColorShades?.text || "#3798DF"
|
|
655
|
+
};
|
|
656
|
+
--sqm-accent-color-border: ${
|
|
657
|
+
config?.color?.accentColorShades?.border || "#3798DF"
|
|
658
|
+
};
|
|
639
659
|
--sqm-accent-color-background: ${
|
|
640
|
-
config?.color?.accentColorShades?.background
|
|
660
|
+
config?.color?.accentColorShades?.background || "#EFF8FE"
|
|
641
661
|
};
|
|
642
662
|
|
|
643
663
|
--sqm-success-color-icon: ${
|
|
644
664
|
config?.color?.success?.iconAndBadge || "var(--sl-color-success-600)"
|
|
645
665
|
};
|
|
646
|
-
--sqm-success-color-text: ${
|
|
647
|
-
config?.color?.success?.text || "var(--sl-color-success-950)"
|
|
648
|
-
};
|
|
666
|
+
--sqm-success-color-text: ${config?.color?.success?.text || "#fff"};
|
|
649
667
|
--sqm-success-color-border: ${
|
|
650
668
|
config?.color?.success?.border || "var(--sl-color-success-400)"
|
|
651
669
|
};
|
|
@@ -656,9 +674,7 @@ html {
|
|
|
656
674
|
--sqm-warning-color-icon: ${
|
|
657
675
|
config?.color?.warning?.iconAndBadge || "var(--sl-color-warning-600)"
|
|
658
676
|
};
|
|
659
|
-
--sqm-warning-color-text: ${
|
|
660
|
-
config?.color?.warning?.text || "var(--sl-color-warning-950)"
|
|
661
|
-
};
|
|
677
|
+
--sqm-warning-color-text: ${config?.color?.warning?.text || "#fff"};
|
|
662
678
|
--sqm-warning-color-border: ${
|
|
663
679
|
config?.color?.warning?.border || "var(--sl-color-warning-400)"
|
|
664
680
|
};
|
|
@@ -669,9 +685,7 @@ html {
|
|
|
669
685
|
--sqm-danger-color-icon: ${
|
|
670
686
|
config?.color?.critical?.iconAndBadge || "var(--sl-color-danger-600)"
|
|
671
687
|
};
|
|
672
|
-
--sqm-danger-color-text: ${
|
|
673
|
-
config?.color?.critical?.text || "var(--sl-color-danger-950)"
|
|
674
|
-
};
|
|
688
|
+
--sqm-danger-color-text: ${config?.color?.critical?.text || "#fff"};
|
|
675
689
|
--sqm-danger-color-border: ${
|
|
676
690
|
config?.color?.critical?.border || "var(--sl-color-danger-400)"
|
|
677
691
|
};
|
|
@@ -682,9 +696,7 @@ html {
|
|
|
682
696
|
--sqm-informative-color-icon: ${
|
|
683
697
|
config?.color?.informative?.iconAndBadge || "var(--sl-color-sky-600)"
|
|
684
698
|
};
|
|
685
|
-
--sqm-informative-color-text: ${
|
|
686
|
-
config?.color?.informative?.text || "var(--sl-color-sky-950)"
|
|
687
|
-
};
|
|
699
|
+
--sqm-informative-color-text: ${config?.color?.informative?.text || "#fff"};
|
|
688
700
|
--sqm-informative-color-border: ${
|
|
689
701
|
config?.color?.informative?.border || "var(--sl-color-sky-400)"
|
|
690
702
|
};
|
|
@@ -696,23 +708,29 @@ html {
|
|
|
696
708
|
config?.formFields?.formFieldColor?.background || "#fff"
|
|
697
709
|
};
|
|
698
710
|
--sqm-input-border-color: ${
|
|
699
|
-
config?.formFields?.formFieldColor?.border || "#
|
|
711
|
+
config?.formFields?.formFieldColor?.border || "#E4E4E7"
|
|
712
|
+
};
|
|
713
|
+
--sqm-input-border-radius: ${
|
|
714
|
+
config?.formFields?.borderRadius
|
|
715
|
+
? config?.formFields?.borderRadius + "px"
|
|
716
|
+
: "4px"
|
|
717
|
+
};
|
|
718
|
+
--sqm-input-color: ${
|
|
719
|
+
config?.formFields?.formFieldColor?.inputText || "#27272A"
|
|
700
720
|
};
|
|
701
|
-
--sqm-input-border-radius: ${config?.formFields?.borderRadius + "px"};
|
|
702
|
-
--sqm-input-color: ${config?.formFields?.formFieldColor?.inputText || "#000"};
|
|
703
721
|
--sqm-input-label-color: ${
|
|
704
|
-
config?.color?.textColorShades?.mainText || "#
|
|
722
|
+
config?.color?.textColorShades?.mainText || "#27272A"
|
|
705
723
|
};
|
|
706
724
|
--sqm-input-border-color-focus: ${
|
|
707
|
-
config?.formFields?.selectedStateColor || "#
|
|
725
|
+
config?.formFields?.selectedStateColor || "#E4E4E7"
|
|
708
726
|
};
|
|
709
727
|
--sqm-input-border-color-hover: ${
|
|
710
|
-
config?.formFields?.hoverStateColor || "#
|
|
728
|
+
config?.formFields?.hoverStateColor || "#E4E4E7"
|
|
711
729
|
};
|
|
712
730
|
--sqm-input-label-font-size: inherit;
|
|
713
731
|
--sqm-input-disabled-color: var(--sqm-text-subdued);
|
|
714
732
|
--sqm-input-disabled-background: ${
|
|
715
|
-
config?.formFields?.disabledBackgroundColor
|
|
733
|
+
config?.formFields?.disabledBackgroundColor || "#F4F4F5"
|
|
716
734
|
};
|
|
717
735
|
|
|
718
736
|
--sl-color-primary-100: var(--sqm-primary-color);
|