@saasquatch/mint-components 2.0.0-6 → 2.0.0-61
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/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 +69 -29
- package/dist/cjs/{sqm-base-registration-form-view-8847804c.js → sqm-base-registration-form-view-7b95ae7a.js} +1 -0
- package/dist/cjs/sqm-big-stat_46.cjs.entry.js +5 -13
- package/dist/cjs/sqm-form-message.cjs.entry.js +6 -5
- package/dist/cjs/sqm-portal-google-registration-form.cjs.entry.js +7 -6
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +20 -2
- package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +1 -1
- package/dist/collection/components/sqm-base-registration/sqm-base-registration-form-view.js +1 -0
- package/dist/collection/components/sqm-form-message/FormMessage.stories.js +14 -0
- package/dist/collection/components/sqm-form-message/sqm-form-message.css +7 -0
- package/dist/collection/components/sqm-form-message/sqm-form-message.js +23 -4
- package/dist/collection/components/sqm-hero/sqm-hero.js +4 -4
- package/dist/collection/components/sqm-hero-image/sqm-hero-image.js +2 -2
- package/dist/collection/components/sqm-portal-footer/sqm-portal-footer.js +1 -1
- package/dist/collection/components/sqm-portal-google-registration-form/sqm-portal-google-registration-form.js +7 -4
- package/dist/collection/components/sqm-portal-google-registration-form/usePortalGoogleRegistrationForm.js +4 -1
- package/dist/collection/components/sqm-titled-section/sqm-titled-section.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +9 -41
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +67 -26
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +0 -1
- 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 +69 -29
- package/dist/esm/{sqm-base-registration-form-view-193f1721.js → sqm-base-registration-form-view-1a6bb4b4.js} +1 -0
- package/dist/esm/sqm-big-stat_46.entry.js +5 -13
- package/dist/esm/sqm-form-message.entry.js +6 -5
- package/dist/esm/sqm-portal-google-registration-form.entry.js +7 -6
- package/dist/esm/sqm-stencilbook.entry.js +20 -2
- package/dist/esm/sqm-tax-and-cash.entry.js +1 -1
- 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-base-registration-form-view-193f1721.js → sqm-base-registration-form-view-1a6bb4b4.js} +1 -1
- package/dist/esm-es5/sqm-big-stat_46.entry.js +1 -1
- package/dist/esm-es5/sqm-form-message.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-google-registration-form.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/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/{p-ddf3c05e.js → p-1522a7d1.js} +1 -1
- package/dist/mint-components/{p-38b92bc5.entry.js → p-38263521.entry.js} +1 -1
- package/dist/mint-components/{p-402984b3.system.entry.js → p-43a9fb8e.system.entry.js} +1 -1
- package/dist/mint-components/{p-13e66b37.system.entry.js → p-454a6d05.system.entry.js} +1 -1
- package/dist/mint-components/p-478ad7c8.system.entry.js +1 -0
- package/dist/mint-components/{p-ec25aaa7.system.entry.js → p-69d8b4f2.system.entry.js} +1 -1
- package/dist/mint-components/{p-a0730259.entry.js → p-6b247deb.entry.js} +6 -6
- package/dist/mint-components/p-71a6e549.system.entry.js +1 -0
- package/dist/mint-components/{p-a44a912b.entry.js → p-75c569f7.entry.js} +1 -1
- package/dist/mint-components/{p-e110688b.entry.js → p-78daa639.entry.js} +1 -1
- package/dist/mint-components/p-8801b7f1.system.entry.js +1 -0
- package/dist/mint-components/p-967a9040.system.js +1 -1
- package/dist/mint-components/p-ac9138fd.entry.js +1 -0
- package/dist/mint-components/{p-be88596c.system.js → p-b21c5311.system.js} +1 -1
- package/dist/mint-components/p-c2ac14b7.entry.js +1 -0
- package/dist/types/components/sqm-base-registration/sqm-base-registration-form-view.d.ts +1 -0
- package/dist/types/components/sqm-form-message/FormMessage.stories.d.ts +4 -0
- package/dist/types/components/sqm-form-message/sqm-form-message.d.ts +1 -0
- package/dist/types/components/sqm-hero/sqm-hero.d.ts +4 -4
- package/dist/types/components/sqm-hero-image/sqm-hero-image.d.ts +2 -2
- package/dist/types/components/sqm-portal-footer/sqm-portal-footer.d.ts +1 -1
- package/dist/types/components/sqm-portal-google-registration-form/sqm-portal-google-registration-form.d.ts +5 -0
- package/dist/types/components/sqm-titled-section/sqm-titled-section.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +4 -12
- package/dist/types/components.d.ts +18 -32
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/mint-components/p-3ea29bac.system.entry.js +0 -1
- package/dist/mint-components/p-43d9c1c5.system.entry.js +0 -1
- package/dist/mint-components/p-916a2045.system.entry.js +0 -1
- package/dist/mint-components/p-a597b136.entry.js +0 -1
- package/dist/mint-components/p-ea063d99.entry.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __extends=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;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 __awaiter=this&&this.__awaiter||function(e,t,r,n){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function s(e){try{l(n.next(e))}catch(e){i(e)}}function o(e){try{l(n["throw"](e))}catch(e){i(e)}}function l(e){e.done?r(e.value):a(e.value).then(s,o)}l((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(e){return function(t){return l([e,t])}}function l(s){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,a&&(i=s[0]&2?a["return"]:s[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,s[1])).done)return i;if(a=0,i)s=[s[0]&2,i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;a=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){r.label=s[1];break}if(s[0]===6&&r.label<i[1]){r.label=i[1];i=s;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(s);break}if(i[2])r.ops.pop();r.trys.pop();continue}s=t.call(e,r)}catch(e){s=[6,e];a=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-59b028db.system.js","./p-4f5329a2.system.js","./p-171310d9.system.js","./p-b2295bc5.system.js","./p-4bd679a7.system.js","./p-1a673057.system.js","./p-8a6494c7.system.js","./p-67ad2252.system.js","./p-6c82d60c.system.js","./p-b21c5311.system.js","./p-b6911812.system.js","./p-9d362d44.system.js","./p-537a3894.system.js"],(function(e){"use strict";var t,r,n,a,i,s,o,l,u,c,f,d,h;return{setters:[function(e){t=e.r;r=e.h},function(e){n=e.k;a=e.n},function(e){i=e.i;s=e.j},function(e){o=e.j},function(e){l=e.c},function(e){u=e.c},function(){},function(){},function(e){c=e.a},function(e){f=e.B},function(e){d=e.P},function(){},function(e){h=e.u}],execute:function(){var m=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Error);m.prototype.name="InvalidTokenError";function g(e){return decodeURIComponent(atob(e).replace(/(.)/g,(function(e,t){var r=t.charCodeAt(0).toString(16).toUpperCase();if(r.length<2){r="0"+r}return"%"+r})))}function p(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return g(t)}catch(e){return atob(t)}}function b(e,t){if(typeof e!=="string"){throw new m("Invalid token specified: must be a string")}t||(t={});var r=t.header===true?0:1;var n=e.split(".")[r];if(typeof n!=="string"){throw new m("Invalid token specified: missing part #"+(r+1))}var a;try{a=p(n)}catch(e){throw new m("Invalid token specified: invalid base64 for part #"+(r+1)+" ("+e.message+")")}try{return JSON.parse(a)}catch(e){throw new m("Invalid token specified: invalid json for part #"+(r+1)+" ("+e.message+")")}}function v(e){var t=this;var r=n(null),a=r[0],i=r[1];var s=c(),l=s[0],u=s[1];var f=n({mode:"base"}),d=f[0],h=f[1];var m=function(r){return __awaiter(t,void 0,void 0,(function(){var t,n,a;return __generator(this,(function(s){t=r.target.getFormControls();n={};a=null;t.forEach((function(t){if(!t.name)return;o.set(n,t.name,t.value);if(t.name!=="/email")return;if(t.required&&!t.value)a=e.requiredFieldErrorMessage;if(typeof t.validationError==="function"){var r=t.validationError;var i=r({control:t,key:"email",value:t.value});if(i)a=i}}));if(a){i(a);return[2]}u(__assign(__assign({},l),{initialData:__assign(__assign({},l===null||l===void 0?void 0:l.initialData),n)}));h({mode:"manual"});return[2]}))}))};var g=function(e){var t;if(!((t=e.detail)===null||t===void 0?void 0:t.credential))return;try{var r=b(e.detail.credential);u(__assign(__assign({},l),{_googleOAuthIdToken:e.detail.credential,initialData:{email:r.email,firstName:r.given_name,lastName:r.family_name}}));h({mode:"google"})}catch(e){console.error("Failed to decode Google Sign In credential JWT:",e)}};return{showRegistrationForm:d,emailValidationError:a,handleGoogleInit:g,handleEmailSubmit:m}}var w=e("sqm_portal_google_registration_form",function(){function e(e){t(this,e);this.ignored=true;this.nextPage="/";this.redirectPath="/verifyEmail";this.emailLabel="Email";this.passwordLabel="Password";this.submitLabel="Register";this.loginLabel="Sign in";this.confirmPasswordLabel="Confirm Password";this.confirmPassword=false;this.disablePasswordValidation=false;this.hideInputs=false;this.pageLabel="Register";this.loginPath="/login";this.loginCTA="Already have an account?";this.requiredFieldErrorMessage="Cannot be empty";this.networkErrorMessage="Network request failed.";this.passwordMismatchErrorMessage="Passwords do not match.";this.invalidEmailErrorMessage="Must be a valid email address";this.formDisabledErrorMessage="The registration form is currently disabled.";this.meetsRequirementsText="Password has met all requirements";this.doesNotMeetRequirementsText="Password must meet the following requirements:";this.minErrorText="be a minimum of 8 characters";this.uppercaseErrorText="contain at least 1 uppercase character";this.lowercaseErrorText="contain at least 1 lowercase character";this.hasErrorText="contain at least 1 number or symbol";this.googleButtonText="signup_with";a(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=i()?_(this):h(this),t=e.states,n=e.callbacks,a=e.refs;var o={LoginButton:{"&::part(label)":{padding:"0"}}};var l=u(o);var c=l.toString();var m=i()?y(this):v(this),g=m.handleGoogleInit,p=m.handleEmailSubmit,b=m.showRegistrationForm,w=m.emailValidationError;var E={formData:r("slot",{name:"formData"}),googleButton:r("sqm-google-sign-in",{text:this.googleButtonText,onInitComplete:g}),secondaryButton:r("slot",{name:"secondaryButton"},r("style",null,c),r("span",null,this.loginCTA," ",r("sl-button",{size:"large",type:"text",disabled:t.loading,onClick:function(){return s.push(t.loginPath)},className:l.classes.LoginButton},this.loginLabel)," ")),terms:r("slot",{name:"terms"}),emailLabel:this.emailLabel,passwordLabel:this.passwordLabel,submitLabel:this.submitLabel,pageLabel:this.pageLabel,confirmPasswordLabel:this.confirmPasswordLabel,networkErrorMessage:this.networkErrorMessage,passwordMismatchErrorMessage:this.passwordMismatchErrorMessage,invalidEmailErrorMessage:this.invalidEmailErrorMessage,formDisabledErrorMessage:this.formDisabledErrorMessage,requiredFieldErrorMessage:this.requiredFieldErrorMessage,meetsRequirementsText:this.meetsRequirementsText,doesNotMeetRequirementsText:this.doesNotMeetRequirementsText,minErrorText:this.minErrorText,uppercaseErrorText:this.uppercaseErrorText,lowercaseErrorText:this.lowercaseErrorText,hasErrorText:this.hasErrorText};if(b.mode==="base"){return r(f,{states:{error:w},callbacks:{handleEmailSubmit:p},content:E})}return r(d,{states:__assign(__assign({},t),{emailDisabled:true,hidePasswords:b.mode==="google"}),callbacks:n,content:E,refs:a})};return e}());function _(e){var t=this;return l({states:{error:"",loading:false,confirmPassword:e.confirmPassword,hideInputs:e.hideInputs||false,customPasswordField:false,loginPath:"/login"},callbacks:{handleGoogleInit:function(){},setShowRegistrationForm:function(){},submit:function(e){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(e){console.log("submit");return[2]}))}))},inputFunction:function(){}},content:{pageLabel:"Register",formData:null,passwordField:null},refs:{formRef:{}}},e.demoData||{},{arrayMerge:function(e,t){return t}})}function y(e){var t=n({mode:"base"}),r=t[0],a=t[1];return l({emailValidationError:false,handleEmailSubmit:function(){return a({mode:"manual"})},showRegistrationForm:r,handleGoogleInit:function(){return a({mode:"google"})}},e.demoGoogleData||{},{arrayMerge:function(e,t){return t}})}}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as e}from"./p-c7c11325.js";import{i}from"./p-db1a0db1.js";import{u as r,f as o,n as a}from"./p-63e29387.js";import{M as s,_ as n,J as u,L as h,I as d,S as c,i as m}from"./p-0ec54f97.js";import{c as l}from"./p-c1086930.js";import{g as p}from"./p-6dc742bc.js";import"./p-cef45012.js";import{E as y}from"./p-a513c1a6.js";import{g as f,L as v}from"./p-7a268047.js";import{p as b}from"./p-13f3a647.js";import{T as g,a as x,U as T,C as S,b as w,S as k,c as I,G as P,d as C,e as A,F as N,f as B,g as E,h as V}from"./p-8c3c4e92.js";import{e as q}from"./p-26468242.js";const j=class{constructor(e){t(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 working with a US Brand 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_statusTextRequired="Required",this.dashboard_requiredTaxForm="Your payouts are on hold until you submit a {taxFormType} tax form.",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 W-9 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.dashboard_w9RequiredHeader="Your next payout is on hold",this.dashboard_w9RequiredDescription="You have surpassed the $600 threshold requiring a W-9 form or have multiple accounts with impact.com. To remove the hold, please submit your W-9 form.",this.dashboard_accountReviewHeader="Your account is under review",this.dashboard_accountReviewDescription="This process takes 48 hours, payouts are on hold until it's completed. You will receive an email from our referral provider, Impact.com, if any issues arise. It contains details on how to resolve this issue. If you need further assistance, please reach out to our {supportLink}.",this.dashboard_termsAndConditions="Terms and Conditions",this.dashboard_w9RequiredButtonText="Submit W-9",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.termsAndConditions="Terms and Conditions",this.stateController="{}",a(this)}disconnectedCallback(){}getGeneralStepTextProps(t){const e=p(this);return{...q(e,t),generalErrorTitle:e.generalErrorTitle,generalErrorDescription:e.generalErrorDescription,fieldRequiredError:e.fieldRequiredError,invalidCharacterError:e.invalidCharacterError,fieldInvalidError:e.fieldInvalidError,continueButton:e.continueButton,backButton:e.backButton,cancelButton:e.cancelButton,isPartnerAlertHeader:e.isPartnerAlertHeader,isPartnerAlertDescription:e.isPartnerAlertDescription,loadingErrorAlertHeader:e.loadingErrorAlertHeader,loadingErrorAlertDescription:e.loadingErrorAlertDescription,taxAndPayoutsDescription:e.taxAndPayoutsDescription,searchForCountryText:e.searchForCountryText,formStep:e.formStep,supportLink:e.supportLink}}render(){var t,a;const q=m()?function(t){const[e,i]=d({namespace:g,initialValue:"/1"}),r=b(t.stateController),o=Object.keys(r).reduce(((t,e)=>"sqm-tax-and-cash"===e?{...t,...r[e]}:{...t,[`${e}_stateController`]:r[e]}),{});return l({step:e,setStep:i},t.demoData||o||{},{arrayMerge:(t,e)=>e})}(this):function(){var t,e,i,a,m;const l=n(),p=u(),y=h(),[v,b]=d({namespace:g,initialValue:"/loading"}),[q,j]=d({namespace:x,initialValue:{}}),[L,R]=d({namespace:T,initialValue:{firstName:void 0,lastName:void 0,email:void 0,countryCode:void 0,currency:void 0}}),[F,U]=d({namespace:S,initialValue:[]}),[_,O]=d({namespace:w,initialValue:[]}),[D,G]=d({namespace:k,initialValue:[]}),{data:Y,errors:H}=c({namespace:I,query:P,skip:!p,options:{batch:!1}}),M=(null===(i=null===(e=null===(t=null==Y?void 0:Y.user)||void 0===t?void 0:t.impactConnection)||void 0===e?void 0:e.publisher)||void 0===i?void 0:i.countryCode)||L.countryCode;c({namespace:C,query:A,skip:!p});const{data:W}=c({namespace:N,query:B,skip:!p,variables:{filter:function(){var t,e,i;return"/1"===v?{}:"/4"===v?{currency_eq:null===(i=null===(e=null===(t=null==Y?void 0:Y.user)||void 0===t?void 0:t.impactConnection)||void 0===e?void 0:e.publisher)||void 0===i?void 0:i.currency}:M?{countryCode_eq:M}:{}}()}}),{data:Q}=c({namespace:E,query:V,skip:!p,variables:{locale:y}}),Z=r((()=>{var t,e;return null===(e=null===(t=null==W?void 0:W.impactFinanceNetworkSettings)||void 0===t?void 0:t.data)||void 0===e?void 0:e.reduce(((t,e)=>{var i,r;const o=null===(r=null===(i=null==Q?void 0:Q.currencies)||void 0===i?void 0:i.data)||void 0===r?void 0:r.find((t=>t.currencyCode===e.currency));return o?t.find((t=>t.currencyCode===e.currency))||L.countryCode&&e.countryCode!==M?t:[...t,o]:t}),[])}),[W,M]),z=(null==y?void 0:y.replace("_","-"))||"en",$=(t,e)=>t.displayName<e.displayName?-1:1,K=null===(a=null==W?void 0:W.impactFinanceNetworkSettings)||void 0===a?void 0:a.data,X=r((()=>new Set(null==K?void 0:K.map((t=>t.countryCode)).filter((t=>t)))),[K]),J=["CA","GB","US"],tt=r((()=>Array.from(X).map((t=>f({countryCode:t,locale:z}))).sort($).reduce(((t,e)=>J.includes(e.countryCode)?[e,...t]:[...t,e]),[])),[X]);return o((()=>{tt&&G(tt)}),[tt]),o((()=>{Z&&U(Z)}),[Z]),o((()=>{if(H)b("/error");else if(l&&p&&Y){const t=null==Y?void 0:Y.user;if(!t||"/loading"!==v)return;const e=function(t){var e,i;if(!(null===(e=t.impactConnection)||void 0===e?void 0:e.connected)||!(null===(i=t.impactConnection)||void 0===i?void 0:i.publisher))return"/1";const{requiredTaxDocumentType:r,currentTaxDocument:o,withdrawalSettings:a,brandedSignup:s,payoutsAccount:n}=t.impactConnection.publisher;return r&&!o?n.hold&&n.holdReasons.includes("NO_W9_DOCUMENT")?"/dashboard":"/3":!a&&s?"/4":"/dashboard"}(t);b(e)}}),[l,p,null===(m=null==Y?void 0:Y.user)||void 0===m?void 0:m.email,H]),{step:v,setStep:b,context:q,namespace:s(g),loading:"/loading"===v}}();if(null===(t=this.demoData)||void 0===t?void 0:t.showTextProps){const t=p(this);return e("div",null,null===(a=Object.keys(t))||void 0===a?void 0:a.map((t=>{if("demoData"!==t)return e("div",null,e("b",null,t,":")," ",this[t],e("hr",null))})))}switch(q.step){case"/1":return e("sqm-user-info-form",Object.assign({},this.getGeneralStepTextProps("step1_")));case"/2":return e("sqm-indirect-tax-form",Object.assign({},this.getGeneralStepTextProps("step2_")));case"/3":return e("sqm-docusign-form",Object.assign({},this.getGeneralStepTextProps("step3_")));case"/4":return e("sqm-banking-info-form",Object.assign({},this.getGeneralStepTextProps("step4_")));case"/dashboard":return e("sqm-tax-and-cash-dashboard",Object.assign({},this.getGeneralStepTextProps("dashboard_")));case"/error":return e(y,{loadingErrorAlertHeader:this.loadingErrorAlertHeader,loadingErrorAlertDescription:i.formatMessage({id:"loadingErrorAlertDescription",defaultMessage:this.loadingErrorAlertDescription},{supportLink:e("a",{target:"_blank",href:"mailto:advocate-support@impact.com"},this.supportLink)})})}return e(v,null)}};export{j as sqm_tax_and_cash}
|
|
1
|
+
import{r as t,h as e}from"./p-c7c11325.js";import{i}from"./p-db1a0db1.js";import{u as r,f as o,n as a}from"./p-63e29387.js";import{M as s,_ as n,J as u,L as h,I as d,S as c,i as m}from"./p-0ec54f97.js";import{c as l}from"./p-c1086930.js";import{g as p}from"./p-6dc742bc.js";import"./p-cef45012.js";import{E as y}from"./p-a513c1a6.js";import{g as f,L as v}from"./p-7a268047.js";import{p as b}from"./p-13f3a647.js";import{T as g,a as x,U as T,C as S,b as w,S as k,c as I,G as P,d as C,e as A,F as N,f as B,g as E,h as V}from"./p-8c3c4e92.js";import{e as q}from"./p-26468242.js";const j=class{constructor(e){t(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 working with a US Brand 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_statusTextRequired="Required",this.dashboard_requiredTaxForm="Your payouts are on hold until you submit a {taxFormType} tax form.",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 W-9 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.dashboard_w9RequiredHeader="Your next payout is on hold",this.dashboard_w9RequiredDescription="You have surpassed the $600 threshold requiring a W-9 form or have multiple accounts with impact.com. To remove the hold, please submit your W-9 form.",this.dashboard_accountReviewHeader="Your account is under review",this.dashboard_accountReviewDescription="This process takes 48 hours, payouts are on hold until it's completed. You will receive an email from our referral provider, Impact.com, if any issues arise. It contains details on how to resolve this issue. If you need further assistance, please reach out to our {supportLink}.",this.dashboard_termsAndConditions="Terms and Conditions",this.dashboard_w9RequiredButtonText="Submit W-9",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.termsAndConditions="Terms and Conditions",this.stateController="{}",a(this)}disconnectedCallback(){}getGeneralStepTextProps(t){const e=p(this);return{...q(e,t),generalErrorTitle:e.generalErrorTitle,generalErrorDescription:e.generalErrorDescription,fieldRequiredError:e.fieldRequiredError,invalidCharacterError:e.invalidCharacterError,fieldInvalidError:e.fieldInvalidError,continueButton:e.continueButton,backButton:e.backButton,cancelButton:e.cancelButton,isPartnerAlertHeader:e.isPartnerAlertHeader,isPartnerAlertDescription:e.isPartnerAlertDescription,loadingErrorAlertHeader:e.loadingErrorAlertHeader,loadingErrorAlertDescription:e.loadingErrorAlertDescription,taxAndPayoutsDescription:e.taxAndPayoutsDescription,searchForCountryText:e.searchForCountryText,formStep:e.formStep,supportLink:e.supportLink}}render(){var t,a;const q=m()?function(t){const[e,i]=d({namespace:g,initialValue:"/1"}),r=b(t.stateController),o=Object.keys(r).reduce(((t,e)=>"sqm-tax-and-cash"===e?{...t,...r[e]}:{...t,[`${e}_stateController`]:r[e]}),{});return l({step:e,setStep:i},t.demoData||o||{},{arrayMerge:(t,e)=>e})}(this):function(){var t,e,i,a,m;const l=n(),p=u(),y=h(),[v,b]=d({namespace:g,initialValue:"/loading"}),[q,j]=d({namespace:x,initialValue:{}}),[L,R]=d({namespace:T,initialValue:{firstName:void 0,lastName:void 0,email:void 0,countryCode:void 0,currency:void 0}}),[F,U]=d({namespace:S,initialValue:[]}),[_,O]=d({namespace:w,initialValue:[]}),[D,G]=d({namespace:k,initialValue:[]}),{data:Y,errors:H}=c({namespace:I,query:P,skip:!p,options:{batch:!1}}),M=(null===(i=null===(e=null===(t=null==Y?void 0:Y.user)||void 0===t?void 0:t.impactConnection)||void 0===e?void 0:e.publisher)||void 0===i?void 0:i.countryCode)||L.countryCode;c({namespace:C,query:A,skip:!p});const{data:W}=c({namespace:N,query:B,skip:!p,variables:{filter:function(){var t,e,i;return"/1"===v?{}:"/4"===v?{currency_eq:null===(i=null===(e=null===(t=null==Y?void 0:Y.user)||void 0===t?void 0:t.impactConnection)||void 0===e?void 0:e.publisher)||void 0===i?void 0:i.currency}:M?{countryCode_eq:M}:{}}()}}),{data:Q}=c({namespace:E,query:V,skip:!p,variables:{locale:y}}),Z=r((()=>{var t,e;return null===(e=null===(t=null==W?void 0:W.impactFinanceNetworkSettings)||void 0===t?void 0:t.data)||void 0===e?void 0:e.reduce(((t,e)=>{var i,r;const o=null===(r=null===(i=null==Q?void 0:Q.currencies)||void 0===i?void 0:i.data)||void 0===r?void 0:r.find((t=>t.currencyCode===e.currency));return o?t.find((t=>t.currencyCode===e.currency))||L.countryCode&&e.countryCode!==M?t:[...t,o]:t}),[])}),[W,M]),z=(null==y?void 0:y.replace("_","-"))||"en",$=(t,e)=>t.displayName<e.displayName?-1:1,K=null===(a=null==W?void 0:W.impactFinanceNetworkSettings)||void 0===a?void 0:a.data,X=r((()=>new Set(null==K?void 0:K.map((t=>t.countryCode)).filter((t=>t)))),[K]),J=["CA","GB","US"],tt=r((()=>Array.from(X).map((t=>f({countryCode:t,locale:z}))).sort($).reduce(((t,e)=>J.includes(e.countryCode)?[e,...t]:[...t,e]),[])),[X]);return o((()=>{tt&&G(tt)}),[tt]),o((()=>{Z&&U(Z)}),[Z]),o((()=>{if(H)b("/error");else if(l&&p&&Y){const t=null==Y?void 0:Y.user;if(!t||"/loading"!==v)return;const e=function(t){var e,i;if(!(null===(e=t.impactConnection)||void 0===e?void 0:e.connected)||!(null===(i=t.impactConnection)||void 0===i?void 0:i.publisher))return"/1";const{requiredTaxDocumentType:r,currentTaxDocument:o,withdrawalSettings:a,brandedSignup:s,payoutsAccount:n}=t.impactConnection.publisher;return r&&!o?n.hold&&n.holdReasons.includes("NO_W9_DOCUMENT")?"/dashboard":"/3":!a&&s?"/4":"/dashboard"}(t);b(e)}}),[l,p,null===(m=null==Y?void 0:Y.user)||void 0===m?void 0:m.email,H]),{step:v,setStep:b,context:q,namespace:s(g),loading:"/loading"===v}}();if(null===(t=this.demoData)||void 0===t?void 0:t.showTextProps){const t=p(this);return e("div",null,null===(a=Object.keys(t))||void 0===a?void 0:a.map((t=>{if("demoData"!==t)return e("div",null,e("b",null,t,":")," ",this[t],e("hr",null))})))}switch(q.step){case"/1":return e("sqm-user-info-form",Object.assign({},this.getGeneralStepTextProps("step1_")));case"/2":return e("sqm-indirect-tax-form",Object.assign({},this.getGeneralStepTextProps("step2_")));case"/3":return e("sqm-docusign-form",Object.assign({},this.getGeneralStepTextProps("step3_")));case"/4":return e("sqm-banking-info-form",Object.assign({},this.getGeneralStepTextProps("step4_")));case"/dashboard":return e("sqm-tax-and-cash-dashboard",Object.assign({},this.getGeneralStepTextProps("dashboard_"),{stateController:q["sqm-tax-and-cash-dashboard_stateController"]||"{}"}));case"/error":return e(y,{loadingErrorAlertHeader:this.loadingErrorAlertHeader,loadingErrorAlertDescription:i.formatMessage({id:"loadingErrorAlertDescription",defaultMessage:this.loadingErrorAlertDescription},{supportLink:e("a",{target:"_blank",href:"mailto:advocate-support@impact.com"},this.supportLink)})})}return e(v,null)}};export{j as sqm_tax_and_cash}
|