@saasquatch/mint-components 2.0.2-2 → 2.0.2-21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +44 -23
  2. package/dist/cjs/sqm-big-stat_47.cjs.entry.js +12 -12
  3. package/dist/cjs/sqm-header-logo.cjs.entry.js +2 -2
  4. package/dist/cjs/{usePayoutStatus-67c78085.js → usePayoutStatus-9abe2de8.js} +16 -19
  5. package/dist/collection/components/sqm-header-logo/sqm-header-logo.js +5 -2
  6. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +5 -5
  7. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +1 -1
  8. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +10 -10
  9. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +16 -19
  10. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +10 -10
  11. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +1 -1
  12. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +12 -12
  13. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +7 -1
  14. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +4 -4
  15. package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +20 -11
  16. package/dist/esm/sqm-banking-info-form_10.entry.js +44 -23
  17. package/dist/esm/sqm-big-stat_47.entry.js +12 -12
  18. package/dist/esm/sqm-header-logo.entry.js +2 -2
  19. package/dist/esm/{usePayoutStatus-f064247b.js → usePayoutStatus-e0ef2374.js} +16 -19
  20. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
  21. package/dist/esm-es5/sqm-big-stat_47.entry.js +1 -1
  22. package/dist/esm-es5/sqm-header-logo.entry.js +1 -1
  23. package/dist/esm-es5/{usePayoutStatus-f064247b.js → usePayoutStatus-e0ef2374.js} +2 -2
  24. package/dist/mint-components/mint-components.esm.js +1 -1
  25. package/dist/mint-components/p-2a404185.system.entry.js +1 -0
  26. package/dist/mint-components/{p-40e0251f.system.js → p-59bb2d52.system.js} +2 -2
  27. package/dist/mint-components/p-7fb4470e.entry.js +1 -0
  28. package/dist/mint-components/{p-09ab53fb.system.entry.js → p-8fa77acf.system.entry.js} +1 -1
  29. package/dist/mint-components/p-967a9040.system.js +1 -1
  30. package/dist/mint-components/p-a3323ecb.system.entry.js +1 -0
  31. package/dist/mint-components/{p-838c6cf8.entry.js → p-bf2fc399.entry.js} +13 -6
  32. package/dist/mint-components/{p-f17b6de6.js → p-c41108ae.js} +7 -7
  33. package/dist/mint-components/{p-e728337d.entry.js → p-e4f6a6c8.entry.js} +9 -9
  34. package/dist/types/components/sqm-header-logo/sqm-header-logo.d.ts +1 -0
  35. package/dist/types/components.d.ts +2 -0
  36. package/dist/types/global/android.d.ts +7 -0
  37. package/dist/types/global/demo.d.ts +2 -0
  38. package/dist/types/stories/features.d.ts +4 -0
  39. package/dist/types/stories/templates.d.ts +4 -0
  40. package/docs/docs.docx +0 -0
  41. package/docs/raisins.json +1 -1
  42. package/package.json +1 -1
  43. package/dist/mint-components/p-2dc720db.system.entry.js +0 -1
  44. package/dist/mint-components/p-7e009640.system.entry.js +0 -1
  45. package/dist/mint-components/p-ab111e29.entry.js +0 -1
@@ -19,7 +19,7 @@ const useReferralTable = require('./useReferralTable-90d4d6e9.js');
19
19
  const IndirectTaxDetailsView = require('./IndirectTaxDetailsView-e5f70b8b.js');
20
20
  const utils$1 = require('./utils-83d125fa.js');
21
21
  const keys = require('./keys-cff24974.js');
22
- const usePayoutStatus = require('./usePayoutStatus-67c78085.js');
22
+ const usePayoutStatus = require('./usePayoutStatus-9abe2de8.js');
23
23
 
24
24
  function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
25
25
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32;
@@ -903,10 +903,6 @@ function useBankingInfoForm(props) {
903
903
  const paymentMethodChecked = !hasPayPal
904
904
  ? "toBankAccount"
905
905
  : _paymentMethodChecked;
906
- domContextHooks_module.useEffect(() => {
907
- // reset redirect hash
908
- window.location.hash = "";
909
- }, []);
910
906
  domContextHooks_module.useEffect(() => {
911
907
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
912
908
  if (!userData)
@@ -1078,6 +1074,7 @@ function useBankingInfoForm(props) {
1078
1074
  }
1079
1075
  await runMutation(formData, token);
1080
1076
  setShowModal(false);
1077
+ window.location.hash = "";
1081
1078
  };
1082
1079
  const onVerification = async (token) => {
1083
1080
  host.dispatchEvent(new CustomEvent(keys.VERIFICATION_EVENT_KEY, {
@@ -1107,7 +1104,10 @@ function useBankingInfoForm(props) {
1107
1104
  setBankCountry: updateBankCountry,
1108
1105
  setPaymentMethodChecked,
1109
1106
  setPaymentScheduleChecked,
1110
- onBack: () => setStep("/dashboard"),
1107
+ onBack: () => {
1108
+ setStep("/dashboard");
1109
+ window.location.hash = "";
1110
+ },
1111
1111
  setCountrySearch,
1112
1112
  onVerification,
1113
1113
  onVerificationHide: () => onVerification(null),
@@ -4134,7 +4134,7 @@ const TaxAndCashDashboardView = (props) => {
4134
4134
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
4135
4135
  }),
4136
4136
  button: (index.h("sl-button", { disabled: states.disabled || states.loading, type: "primary", class: sheet$4.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)),
4137
- alertType: "warning",
4137
+ alertType: "error",
4138
4138
  icon: "exclamation-triangle",
4139
4139
  class: sheet$4.classes.WarningHoldAlertContainer,
4140
4140
  };
@@ -4394,8 +4394,14 @@ const useTaxAndCashDashboard = (props) => {
4394
4394
  domContextHooks_module.useEffect(() => {
4395
4395
  // Clear override context once on submitted
4396
4396
  setContext({});
4397
- if (window.location.hash)
4397
+ if (window.location.hash) {
4398
+ setContext({
4399
+ overrideNextStep: "/dashboard",
4400
+ overrideBackStep: "/dashboard",
4401
+ hideSteps: true,
4402
+ });
4398
4403
  setStep(`/${window.location.hash.replace("#", "")}`);
4404
+ }
4399
4405
  }, []);
4400
4406
  const { data, loading, errors: userError, refetch, } = index_module.$n(usePayoutStatus.USER_QUERY_NAMESPACE);
4401
4407
  const publisher = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
@@ -4605,7 +4611,7 @@ const TaxAndCashDashboard = class {
4605
4611
  *
4606
4612
  * @uiName Edit payment info button label
4607
4613
  */
4608
- this.editPaymentInformationButton = "Edit Payout Information";
4614
+ this.editPaymentInformationButton = "Edit payout information";
4609
4615
  /**
4610
4616
  * @uiName Not registered for indirect tax text
4611
4617
  * @uiWidget textArea
@@ -4666,7 +4672,7 @@ const TaxAndCashDashboard = class {
4666
4672
  /**
4667
4673
  * @uiName Verification required internal alert header
4668
4674
  */
4669
- this.verificationRequiredInternalHeader = "Identity Verification in Progress";
4675
+ this.verificationRequiredInternalHeader = "Identity verification in progress";
4670
4676
  /**
4671
4677
  * @uiName Verification required internal alert description
4672
4678
  */
@@ -4674,7 +4680,7 @@ const TaxAndCashDashboard = class {
4674
4680
  /**
4675
4681
  * @uiName Verification review internal alert header
4676
4682
  */
4677
- this.verificationReviewInternalHeader = "Identity Verification Under Review";
4683
+ this.verificationReviewInternalHeader = "Identity verification under review";
4678
4684
  /**
4679
4685
  * @uiName Verification review internal alert description
4680
4686
  */
@@ -4682,7 +4688,7 @@ const TaxAndCashDashboard = class {
4682
4688
  /**
4683
4689
  * @uiName Verification failed internal alert header
4684
4690
  */
4685
- this.verificationFailedInternalHeader = "Identity Verification Unsuccessful";
4691
+ this.verificationFailedInternalHeader = "Identity verification unsuccessful";
4686
4692
  /**
4687
4693
  * @uiName Verification failed internal alert description
4688
4694
  */
@@ -4743,11 +4749,11 @@ const TaxAndCashDashboard = class {
4743
4749
  /**
4744
4750
  * @uiName Withdrawal settings invalid alert header
4745
4751
  */
4746
- this.withdrawalSettingsInvalidHeader = "Your payment information includes invalid characters";
4752
+ this.withdrawalSettingsInvalidHeader = "Your payment information is incomplete or includes invalid characters";
4747
4753
  /**
4748
4754
  * @uiName Withdrawal settings invalid alert description
4749
4755
  */
4750
- this.withdrawalSettingsInvalidDescription = "There are invalid characters in your payment information. Please review your information and make sure it is correct with no invalid characters. Your payouts are on hold until this is resolved.";
4756
+ this.withdrawalSettingsInvalidDescription = "There are missing fields or invalid characters in your payment information. Please review your information and make sure it is correct. Your payouts are on hold until this is resolved.";
4751
4757
  /**
4752
4758
  * @uiName Payment returned alert header
4753
4759
  */
@@ -6286,7 +6292,7 @@ const UserInfoFormView = (props) => {
6286
6292
  index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", label: text.address, id: "address", name: "/address", value: formState.address, validationError: ({ value }) =>
6287
6293
  // Checks for non-ASCII characters
6288
6294
  !utils$1.validateBillingField(/^[\x20-\xFF]+$/, value) &&
6289
- utils$1.formatErrorMessage(text.address, text.error.invalidCharacterError), disabled: states.disabled || isDisabledInput("address") }, (((_l = formState.errors) === null || _l === void 0 ? void 0 : _l.address) ? {
6295
+ utils$1.formatErrorMessage(text.address, text.error.invalidCharacterError), disabled: states.disabled || isDisabledInput("billingAddress") }, (((_l = formState.errors) === null || _l === void 0 ? void 0 : _l.address) ? {
6290
6296
  class: classes.ErrorInput,
6291
6297
  helpText: utils$1.formatErrorMessage(text.address, formState.errors.address),
6292
6298
  }
@@ -6294,17 +6300,17 @@ const UserInfoFormView = (props) => {
6294
6300
  index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", label: text.city, id: "city", name: "/city", value: formState.city, validationError: ({ value }) =>
6295
6301
  // Checks for non-ASCII characters
6296
6302
  !utils$1.validateBillingField(/^[\x20-\xFF]+$/, value) &&
6297
- utils$1.formatErrorMessage(text.city, text.error.invalidCharacterError), disabled: states.disabled || isDisabledInput("city") }, (((_m = formState.errors) === null || _m === void 0 ? void 0 : _m.city) ? {
6303
+ utils$1.formatErrorMessage(text.city, text.error.invalidCharacterError), disabled: states.disabled || isDisabledInput("billingCity") }, (((_m = formState.errors) === null || _m === void 0 ? void 0 : _m.city) ? {
6298
6304
  class: classes.ErrorInput,
6299
6305
  helpText: utils$1.formatErrorMessage(text.city, formState.errors.city),
6300
6306
  }
6301
6307
  : {}), { required: true })),
6302
- !states.hideState && (index.h("sl-select", Object.assign({ label: regionLabel, exportparts: "label: input-label, base: input-base", id: "state", name: "/state", value: formState.state, disabled: states.disabled || isDisabledInput("state") }, (((_o = formState.errors) === null || _o === void 0 ? void 0 : _o.state) ? {
6308
+ !states.hideState && (index.h("sl-select", Object.assign({ label: regionLabel, exportparts: "label: input-label, base: input-base", id: "state", name: "/state", value: formState.state, disabled: states.disabled || isDisabledInput("billingState") }, (((_o = formState.errors) === null || _o === void 0 ? void 0 : _o.state) ? {
6303
6309
  class: classes.ErrorInput,
6304
6310
  helpText: utils$1.formatErrorMessage(text.state, formState.errors.state),
6305
6311
  }
6306
6312
  : {}), { required: true }), (_p = data.regions) === null || _p === void 0 ? void 0 : _p.map((r) => (index.h("sl-menu-item", { value: r.value }, r.label))))),
6307
- index.h("sl-input", Object.assign({ label: text.postalCode, exportparts: "label: input-label, base: input-base", id: "postalCode", name: "/postalCode", value: formState.postalCode, disabled: states.disabled || isDisabledInput("postalCode") }, (((_q = formState.errors) === null || _q === void 0 ? void 0 : _q.postalCode) ? {
6313
+ index.h("sl-input", Object.assign({ label: text.postalCode, exportparts: "label: input-label, base: input-base", id: "postalCode", name: "/postalCode", value: formState.postalCode, disabled: states.disabled || isDisabledInput("billingPostalCode") }, (((_q = formState.errors) === null || _q === void 0 ? void 0 : _q.postalCode) ? {
6308
6314
  class: classes.ErrorInput,
6309
6315
  helpText: utils$1.formatErrorMessage(text.postalCode, formState.errors.postalCode),
6310
6316
  }
@@ -6336,8 +6342,16 @@ const UserInfoFormView = (props) => {
6336
6342
  index.h("sl-button", { type: "primary", disabled: states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton))))));
6337
6343
  };
6338
6344
 
6345
+ const GET_INDIRECT_TAX_COUNTRY_CODE = index_module.dist.gql `
6346
+ query getIndirectTaxCountryCode {
6347
+ tenantSettings {
6348
+ impactBrandCountryCode
6349
+ impactBrandIndirectTaxCountryCode
6350
+ }
6351
+ }
6352
+ `;
6339
6353
  function useUserInfoForm(props) {
6340
- var _a, _b, _c, _d, _e, _f;
6354
+ var _a, _b, _c, _d, _e, _f, _g;
6341
6355
  const currencyRef = domContextHooks_module.useRef(undefined);
6342
6356
  const phoneCountryRef = domContextHooks_module.useRef(undefined);
6343
6357
  const formRef = domContextHooks_module.useRef(null);
@@ -6347,6 +6361,7 @@ function useUserInfoForm(props) {
6347
6361
  const [userFormContext, setUserFormContext] = index_module.Pn(usePayoutStatus.USER_FORM_CONTEXT_NAMESPACE);
6348
6362
  const user = index_module.J();
6349
6363
  const [connectImpactPartner, { loading: connectLoading, errors: connectErrors },] = index_module.$e(CONNECT_PARTNER);
6364
+ const { data: tenantData } = index_module.wn(GET_INDIRECT_TAX_COUNTRY_CODE, {});
6350
6365
  const { data, loading, refetch, errors: userError, } = index_module.$n(usePayoutStatus.USER_QUERY_NAMESPACE);
6351
6366
  const _currencies = index_module.Fn(usePayoutStatus.CURRENCIES_NAMESPACE);
6352
6367
  const currencies = domContextHooks_module.useMemo(() => [...(_currencies || [])].sort((a, b) => a.displayName.localeCompare(b.displayName)), [_currencies]);
@@ -6560,10 +6575,16 @@ function useUserInfoForm(props) {
6560
6575
  const nextStep = context.overrideNextStep || skipNextStep ? "/3" : "/2";
6561
6576
  setStep(nextStep);
6562
6577
  }
6578
+ const indirectTaxCountry = (_a = tenantData === null || tenantData === void 0 ? void 0 : tenantData.tenantSettings) === null || _a === void 0 ? void 0 : _a.impactBrandIndirectTaxCountryCode;
6579
+ const hasIndirectTax = !!indirectTaxCountry;
6563
6580
  function getSkipNextStep(userData) {
6581
+ if (!hasIndirectTax)
6582
+ return true;
6564
6583
  if (userData.countryCode === "US")
6565
6584
  return true;
6566
- return true;
6585
+ if (hasIndirectTax && userData.countryCode !== indirectTaxCountry)
6586
+ return true;
6587
+ return false;
6567
6588
  }
6568
6589
  const hasStates = ["ES", "AU", "US", "CA"].includes(userFormContext.countryCode);
6569
6590
  const regionObj = hasStates
@@ -6592,7 +6613,7 @@ function useUserInfoForm(props) {
6592
6613
  allCountries: countries,
6593
6614
  regionLabelEnum: regionObj === null || regionObj === void 0 ? void 0 : regionObj.labelEnum,
6594
6615
  regions: (regionObj === null || regionObj === void 0 ? void 0 : regionObj.regions) || [],
6595
- partnerData: (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher,
6616
+ partnerData: (_c = (_b = data === null || data === void 0 ? void 0 : data.user) === null || _b === void 0 ? void 0 : _b.impactConnection) === null || _c === void 0 ? void 0 : _c.publisher,
6596
6617
  },
6597
6618
  states: {
6598
6619
  step: step === null || step === void 0 ? void 0 : step.replace("/", ""),
@@ -6601,8 +6622,8 @@ function useUserInfoForm(props) {
6601
6622
  disabled: loading || connectLoading,
6602
6623
  loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
6603
6624
  loading: loading || connectLoading,
6604
- isPartner: !!((_d = (_c = data === null || data === void 0 ? void 0 : data.user) === null || _c === void 0 ? void 0 : _c.impactConnection) === null || _d === void 0 ? void 0 : _d.publisher),
6605
- isUser: !!((_f = (_e = data === null || data === void 0 ? void 0 : data.user) === null || _e === void 0 ? void 0 : _e.impactConnection) === null || _f === void 0 ? void 0 : _f.user),
6625
+ isPartner: !!((_e = (_d = data === null || data === void 0 ? void 0 : data.user) === null || _d === void 0 ? void 0 : _d.impactConnection) === null || _e === void 0 ? void 0 : _e.publisher),
6626
+ isUser: !!((_g = (_f = data === null || data === void 0 ? void 0 : data.user) === null || _f === void 0 ? void 0 : _f.impactConnection) === null || _g === void 0 ? void 0 : _g.user),
6606
6627
  formState: {
6607
6628
  ...userFormContext,
6608
6629
  errors: formErrors,
@@ -31,7 +31,7 @@ const ShadowViewAddon = require('./ShadowViewAddon-925a8fa6.js');
31
31
  require('./sqm-portal-container-view-07e4343f.js');
32
32
  const utils$1 = require('./utils-83d125fa.js');
33
33
  const extractProps = require('./extractProps-e9c55ba8.js');
34
- const usePayoutStatus = require('./usePayoutStatus-67c78085.js');
34
+ const usePayoutStatus = require('./usePayoutStatus-9abe2de8.js');
35
35
 
36
36
  /**
37
37
  *
@@ -3123,7 +3123,7 @@ function PayoutStatusAlertView(props) {
3123
3123
  }),
3124
3124
  button: (index.h(index.Fragment, null,
3125
3125
  index.h("sl-button", { disabled: states.loading, type: "primary", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton))),
3126
- alertType: "warning",
3126
+ alertType: "error",
3127
3127
  icon: "exclamation-triangle",
3128
3128
  };
3129
3129
  case "HOLD":
@@ -3221,7 +3221,7 @@ const PayoutStatusAlert = class {
3221
3221
  /**
3222
3222
  * @uiName Verification required internal alert header
3223
3223
  */
3224
- this.verificationRequiredInternalHeader = "Identity Verification in Progress";
3224
+ this.verificationRequiredInternalHeader = "Identity Verification in progress";
3225
3225
  /**
3226
3226
  * @uiName Verification required internal alert description
3227
3227
  */
@@ -3229,7 +3229,7 @@ const PayoutStatusAlert = class {
3229
3229
  /**
3230
3230
  * @uiName Verification review internal alert header
3231
3231
  */
3232
- this.verificationReviewInternalHeader = "Identity Verification Under Review";
3232
+ this.verificationReviewInternalHeader = "Identity Verification under review";
3233
3233
  /**
3234
3234
  * @uiName Verification review internal alert description
3235
3235
  */
@@ -3237,7 +3237,7 @@ const PayoutStatusAlert = class {
3237
3237
  /**
3238
3238
  * @uiName Verification failed internal alert header
3239
3239
  */
3240
- this.verificationFailedInternalHeader = "Identity Verification Unsuccessful";
3240
+ this.verificationFailedInternalHeader = "Identity verification unsuccessful";
3241
3241
  /**
3242
3242
  * @uiName Verification failed internal alert description
3243
3243
  */
@@ -3285,11 +3285,11 @@ const PayoutStatusAlert = class {
3285
3285
  /**
3286
3286
  * @uiName Withdrawal settings invalid alert header
3287
3287
  */
3288
- this.withdrawalSettingsInvalidHeader = "Your payment information includes invalid characters";
3288
+ this.withdrawalSettingsInvalidHeader = "Your payment information is incomplete or includes invalid characters";
3289
3289
  /**
3290
3290
  * @uiName Withdrawal settings invalid alert description
3291
3291
  */
3292
- this.withdrawalSettingsInvalidDescription = "There are invalid characters in your payment information. Please review your information and make sure it is correct with no invalid characters. Your payouts are on hold until this is resolved.";
3292
+ this.withdrawalSettingsInvalidDescription = "There are missing fields or invalid characters in your payment information. Please review your information and make sure it is correct. Your payouts are on hold until this is resolved.";
3293
3293
  /**
3294
3294
  * @uiName Payment returned alert header
3295
3295
  */
@@ -7572,7 +7572,7 @@ const TaxAndCashMonolith = class {
7572
7572
  * @uiGroup Dashboard Properties
7573
7573
  * @uiWidget textArea
7574
7574
  */
7575
- this.dashboard_verificationRequiredInternalHeader = "Identity Verification in Progress";
7575
+ this.dashboard_verificationRequiredInternalHeader = "Identity verification in progress";
7576
7576
  /**
7577
7577
  * @uiName Verification required internal alert description
7578
7578
  * @uiGroup Dashboard Properties
@@ -7584,7 +7584,7 @@ const TaxAndCashMonolith = class {
7584
7584
  * @uiGroup Dashboard Properties
7585
7585
  * @uiWidget textArea
7586
7586
  */
7587
- this.dashboard_verificationReviewInternalHeader = "Identity Verification Under Review";
7587
+ this.dashboard_verificationReviewInternalHeader = "Identity verification under review";
7588
7588
  /**
7589
7589
  * @uiName Verification review internal alert description
7590
7590
  * @uiGroup Dashboard Properties
@@ -7596,7 +7596,7 @@ const TaxAndCashMonolith = class {
7596
7596
  * @uiGroup Dashboard Properties
7597
7597
  * @uiWidget textArea
7598
7598
  */
7599
- this.dashboard_verificationFailedInternalHeader = "Identity Verification Unsuccessful";
7599
+ this.dashboard_verificationFailedInternalHeader = "Identity verification usuccessful";
7600
7600
  /**
7601
7601
  * @uiName Verification failed internal alert description
7602
7602
  * @uiGroup Dashboard Properties
@@ -7665,11 +7665,11 @@ const TaxAndCashMonolith = class {
7665
7665
  /**
7666
7666
  * @uiName Withdrawal settings invalid alert header
7667
7667
  */
7668
- this.dashboard_withdrawalSettingsInvalidHeader = "Your payment information includes invalid characters";
7668
+ this.dashboard_withdrawalSettingsInvalidHeader = "Your payment information is incomplete or includes invalid characters";
7669
7669
  /**
7670
7670
  * @uiName Withdrawal settings invalid alert description
7671
7671
  */
7672
- this.dashboard_withdrawalSettingsInvalidDescription = "There are invalid characters in your payment information. Please review your information and make sure it is correct with no invalid characters. Your payouts are on hold until this is resolved.";
7672
+ this.dashboard_withdrawalSettingsInvalidDescription = "There are missing fields or invalid characters in your payment information. Please review your information and make sure it is correct. Your payouts are on hold until this is resolved.";
7673
7673
  /**
7674
7674
  * @uiName Payment returned alert header
7675
7675
  */
@@ -15,6 +15,7 @@ const HeroImage = class {
15
15
  /**
16
16
  * @uiWidget color
17
17
  * @uiName Logo text color
18
+ * @default #555555
18
19
  */
19
20
  this.logoTextColor = "#555555";
20
21
  /**
@@ -32,10 +33,9 @@ const HeroImage = class {
32
33
  }
33
34
  disconnectedCallback() { }
34
35
  render() {
35
- return (index.h(index.Host, null, index.h("a", { href: this.nextPage, part: "sqm-link" }, this.imageUrl ? (index.h("img", { style: { height: `${this === null || this === void 0 ? void 0 : this.height}px` }, src: this === null || this === void 0 ? void 0 : this.imageUrl })) : (index.h("h3", { style: {
36
+ return (index.h(index.Host, null, index.h("a", { href: this.nextPage, part: "sqm-link", style: { textDecoration: "none" } }, this.imageUrl ? (index.h("img", { style: { height: `${this === null || this === void 0 ? void 0 : this.height}px` }, src: this === null || this === void 0 ? void 0 : this.imageUrl })) : (index.h("h3", { style: {
36
37
  fontSize: `${this.logoTextSize}px`,
37
38
  color: this.logoTextColor || "#555555",
38
- textDecoration: "none",
39
39
  } }, this.logoText)))));
40
40
  }
41
41
  };
@@ -1129,7 +1129,7 @@ const GET_TAX_SETTING = index_module.dist.gql `
1129
1129
  }
1130
1130
  `;
1131
1131
  function getStatus(data) {
1132
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
1132
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
1133
1133
  const account = (_b = (_a = data.user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) === null || _b === void 0 ? void 0 : _b.payoutsAccount;
1134
1134
  const hasTransferredReward = (_e = (_d = (_c = data === null || data === void 0 ? void 0 : data.user) === null || _c === void 0 ? void 0 : _c.rewards) === null || _d === void 0 ? void 0 : _d.data) === null || _e === void 0 ? void 0 : _e.find((reward) => reward.statuses.includes("REDEEMED") &&
1135
1135
  reward.partnerFundsTransfer.status === "TRANSFERRED");
@@ -1146,19 +1146,22 @@ function getStatus(data) {
1146
1146
  return "VERIFICATION:REVIEW";
1147
1147
  if ((_p = account.holdReasons) === null || _p === void 0 ? void 0 : _p.includes("IDV_CHECK_FAILED_INTERNAL"))
1148
1148
  return "VERIFICATION:FAILED";
1149
+ // only show banner for NEW_PAYEE_REVIEW if a PFT was created
1149
1150
  if (((_q = account.holdReasons) === null || _q === void 0 ? void 0 : _q.includes("NEW_PAYEE_REVIEW")) && hasTransferredReward)
1150
1151
  return "NEW_PAYEE_REVIEW";
1151
- if ((_r = account.holdReasons) === null || _r === void 0 ? void 0 : _r.includes("PAYMENT_HOLD_ON_CHANGE"))
1152
+ if ((_r = account.holdReasons) === null || _r === void 0 ? void 0 : _r.includes("NEW_PAYEE_REVIEW"))
1153
+ return "DONE";
1154
+ if ((_s = account.holdReasons) === null || _s === void 0 ? void 0 : _s.includes("PAYMENT_HOLD_ON_CHANGE"))
1152
1155
  return "PAYMENT_HOLD_ON_CHANGE";
1153
- if ((_s = account.holdReasons) === null || _s === void 0 ? void 0 : _s.includes("BENEFICIARY_NAME_INVALID"))
1156
+ if ((_t = account.holdReasons) === null || _t === void 0 ? void 0 : _t.includes("BENEFICIARY_NAME_INVALID"))
1154
1157
  return "BENEFICIARY_NAME_INVALID";
1155
- if ((_t = account.holdReasons) === null || _t === void 0 ? void 0 : _t.includes("BENEFICIARY_NAME_MISMATCH"))
1158
+ if ((_u = account.holdReasons) === null || _u === void 0 ? void 0 : _u.includes("BENEFICIARY_NAME_MISMATCH"))
1156
1159
  return "BENEFICIARY_NAME_MISMATCH";
1157
- if ((_u = account.holdReasons) === null || _u === void 0 ? void 0 : _u.includes("BANK_TAX_NAME_MISMATCH"))
1160
+ if ((_v = account.holdReasons) === null || _v === void 0 ? void 0 : _v.includes("BANK_TAX_NAME_MISMATCH"))
1158
1161
  return "BANK_TAX_NAME_MISMATCH";
1159
- if ((_v = account.holdReasons) === null || _v === void 0 ? void 0 : _v.includes("WITHDRAWAL_SETTINGS_INVALID"))
1162
+ if ((_w = account.holdReasons) === null || _w === void 0 ? void 0 : _w.includes("WITHDRAWAL_SETTINGS_INVALID"))
1160
1163
  return "WITHDRAWAL_SETTINGS_INVALID";
1161
- if ((_w = account.holdReasons) === null || _w === void 0 ? void 0 : _w.includes("PAYMENT_RETURNED"))
1164
+ if ((_x = account.holdReasons) === null || _x === void 0 ? void 0 : _x.includes("PAYMENT_RETURNED"))
1162
1165
  return "PAYMENT_RETURNED";
1163
1166
  if (account.hold)
1164
1167
  return "HOLD";
@@ -1201,20 +1204,14 @@ function usePayoutStatus(props) {
1201
1204
  window.history.pushState(null, "", url);
1202
1205
  };
1203
1206
  const onPaymentInfoClick = () => {
1204
- setContext({
1205
- overrideNextStep: "/dashboard",
1206
- overrideBackStep: "/dashboard",
1207
- hideSteps: true,
1208
- });
1209
- setStep("/4");
1207
+ let url = props.cashPayoutsPageUrl;
1208
+ url += "#4";
1209
+ window.history.pushState(null, "", url);
1210
1210
  };
1211
1211
  const onNewFormClick = () => {
1212
- setContext({
1213
- overrideNextStep: "/dashboard",
1214
- overrideBackStep: "/dashboard",
1215
- hideSteps: true,
1216
- });
1217
- setStep("/3");
1212
+ let url = props.cashPayoutsPageUrl;
1213
+ url += "#3";
1214
+ window.history.pushState(null, "", url);
1218
1215
  };
1219
1216
  return {
1220
1217
  states: {
@@ -13,6 +13,7 @@ export class HeroImage {
13
13
  /**
14
14
  * @uiWidget color
15
15
  * @uiName Logo text color
16
+ * @default #555555
16
17
  */
17
18
  this.logoTextColor = "#555555";
18
19
  /**
@@ -31,10 +32,9 @@ export class HeroImage {
31
32
  disconnectedCallback() { }
32
33
  render() {
33
34
  return (h(Host, null,
34
- h("a", { href: this.nextPage, part: "sqm-link" }, this.imageUrl ? (h("img", { style: { height: `${this === null || this === void 0 ? void 0 : this.height}px` }, src: this === null || this === void 0 ? void 0 : this.imageUrl })) : (h("h3", { style: {
35
+ h("a", { href: this.nextPage, part: "sqm-link", style: { textDecoration: "none" } }, this.imageUrl ? (h("img", { style: { height: `${this === null || this === void 0 ? void 0 : this.height}px` }, src: this === null || this === void 0 ? void 0 : this.imageUrl })) : (h("h3", { style: {
35
36
  fontSize: `${this.logoTextSize}px`,
36
37
  color: this.logoTextColor || "#555555",
37
- textDecoration: "none",
38
38
  } }, this.logoText)))));
39
39
  }
40
40
  static get is() { return "sqm-header-logo"; }
@@ -124,6 +124,9 @@ export class HeroImage {
124
124
  }, {
125
125
  "text": "Logo text color",
126
126
  "name": "uiName"
127
+ }, {
128
+ "text": "#555555",
129
+ "name": "default"
127
130
  }],
128
131
  "text": ""
129
132
  },
@@ -125,10 +125,6 @@ export function useBankingInfoForm(props) {
125
125
  const paymentMethodChecked = !hasPayPal
126
126
  ? "toBankAccount"
127
127
  : _paymentMethodChecked;
128
- useEffect(() => {
129
- // reset redirect hash
130
- window.location.hash = "";
131
- }, []);
132
128
  useEffect(() => {
133
129
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
134
130
  if (!userData)
@@ -300,6 +296,7 @@ export function useBankingInfoForm(props) {
300
296
  }
301
297
  await runMutation(formData, token);
302
298
  setShowModal(false);
299
+ window.location.hash = "";
303
300
  };
304
301
  const onVerification = async (token) => {
305
302
  host.dispatchEvent(new CustomEvent(VERIFICATION_EVENT_KEY, {
@@ -329,7 +326,10 @@ export function useBankingInfoForm(props) {
329
326
  setBankCountry: updateBankCountry,
330
327
  setPaymentMethodChecked,
331
328
  setPaymentScheduleChecked,
332
- onBack: () => setStep("/dashboard"),
329
+ onBack: () => {
330
+ setStep("/dashboard");
331
+ window.location.hash = "";
332
+ },
333
333
  setCountrySearch,
334
334
  onVerification,
335
335
  onVerificationHide: () => onVerification(null),
@@ -222,7 +222,7 @@ export function PayoutStatusAlertView(props) {
222
222
  }),
223
223
  button: (h(Fragment, null,
224
224
  h("sl-button", { disabled: states.loading, type: "primary", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton))),
225
- alertType: "warning",
225
+ alertType: "error",
226
226
  icon: "exclamation-triangle",
227
227
  };
228
228
  case "HOLD":
@@ -50,7 +50,7 @@ export class PayoutStatusAlert {
50
50
  /**
51
51
  * @uiName Verification required internal alert header
52
52
  */
53
- this.verificationRequiredInternalHeader = "Identity Verification in Progress";
53
+ this.verificationRequiredInternalHeader = "Identity Verification in progress";
54
54
  /**
55
55
  * @uiName Verification required internal alert description
56
56
  */
@@ -58,7 +58,7 @@ export class PayoutStatusAlert {
58
58
  /**
59
59
  * @uiName Verification review internal alert header
60
60
  */
61
- this.verificationReviewInternalHeader = "Identity Verification Under Review";
61
+ this.verificationReviewInternalHeader = "Identity Verification under review";
62
62
  /**
63
63
  * @uiName Verification review internal alert description
64
64
  */
@@ -66,7 +66,7 @@ export class PayoutStatusAlert {
66
66
  /**
67
67
  * @uiName Verification failed internal alert header
68
68
  */
69
- this.verificationFailedInternalHeader = "Identity Verification Unsuccessful";
69
+ this.verificationFailedInternalHeader = "Identity verification unsuccessful";
70
70
  /**
71
71
  * @uiName Verification failed internal alert description
72
72
  */
@@ -114,11 +114,11 @@ export class PayoutStatusAlert {
114
114
  /**
115
115
  * @uiName Withdrawal settings invalid alert header
116
116
  */
117
- this.withdrawalSettingsInvalidHeader = "Your payment information includes invalid characters";
117
+ this.withdrawalSettingsInvalidHeader = "Your payment information is incomplete or includes invalid characters";
118
118
  /**
119
119
  * @uiName Withdrawal settings invalid alert description
120
120
  */
121
- this.withdrawalSettingsInvalidDescription = "There are invalid characters in your payment information. Please review your information and make sure it is correct with no invalid characters. Your payouts are on hold until this is resolved.";
121
+ this.withdrawalSettingsInvalidDescription = "There are missing fields or invalid characters in your payment information. Please review your information and make sure it is correct. Your payouts are on hold until this is resolved.";
122
122
  /**
123
123
  * @uiName Payment returned alert header
124
124
  */
@@ -377,7 +377,7 @@ export class PayoutStatusAlert {
377
377
  },
378
378
  "attribute": "verification-required-internal-header",
379
379
  "reflect": false,
380
- "defaultValue": "\"Identity Verification in Progress\""
380
+ "defaultValue": "\"Identity Verification in progress\""
381
381
  },
382
382
  "verificationRequiredInternalDescription": {
383
383
  "type": "string",
@@ -419,7 +419,7 @@ export class PayoutStatusAlert {
419
419
  },
420
420
  "attribute": "verification-review-internal-header",
421
421
  "reflect": false,
422
- "defaultValue": "\"Identity Verification Under Review\""
422
+ "defaultValue": "\"Identity Verification under review\""
423
423
  },
424
424
  "verificationReviewInternalDescription": {
425
425
  "type": "string",
@@ -461,7 +461,7 @@ export class PayoutStatusAlert {
461
461
  },
462
462
  "attribute": "verification-failed-internal-header",
463
463
  "reflect": false,
464
- "defaultValue": "\"Identity Verification Unsuccessful\""
464
+ "defaultValue": "\"Identity verification unsuccessful\""
465
465
  },
466
466
  "verificationFailedInternalDescription": {
467
467
  "type": "string",
@@ -713,7 +713,7 @@ export class PayoutStatusAlert {
713
713
  },
714
714
  "attribute": "withdrawal-settings-invalid-header",
715
715
  "reflect": false,
716
- "defaultValue": "\"Your payment information includes invalid characters\""
716
+ "defaultValue": "\"Your payment information is incomplete or includes invalid characters\""
717
717
  },
718
718
  "withdrawalSettingsInvalidDescription": {
719
719
  "type": "string",
@@ -734,7 +734,7 @@ export class PayoutStatusAlert {
734
734
  },
735
735
  "attribute": "withdrawal-settings-invalid-description",
736
736
  "reflect": false,
737
- "defaultValue": "\"There are invalid characters in your payment information. Please review your information and make sure it is correct with no invalid characters. Your payouts are on hold until this is resolved.\""
737
+ "defaultValue": "\"There are missing fields or invalid characters in your payment information. Please review your information and make sure it is correct. Your payouts are on hold until this is resolved.\""
738
738
  },
739
739
  "paymentReturnedHeader": {
740
740
  "type": "string",
@@ -40,7 +40,7 @@ const GET_TAX_SETTING = gql `
40
40
  }
41
41
  `;
42
42
  export function getStatus(data) {
43
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
43
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
44
44
  const account = (_b = (_a = data.user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) === null || _b === void 0 ? void 0 : _b.payoutsAccount;
45
45
  const hasTransferredReward = (_e = (_d = (_c = data === null || data === void 0 ? void 0 : data.user) === null || _c === void 0 ? void 0 : _c.rewards) === null || _d === void 0 ? void 0 : _d.data) === null || _e === void 0 ? void 0 : _e.find((reward) => reward.statuses.includes("REDEEMED") &&
46
46
  reward.partnerFundsTransfer.status === "TRANSFERRED");
@@ -57,19 +57,22 @@ export function getStatus(data) {
57
57
  return "VERIFICATION:REVIEW";
58
58
  if ((_p = account.holdReasons) === null || _p === void 0 ? void 0 : _p.includes("IDV_CHECK_FAILED_INTERNAL"))
59
59
  return "VERIFICATION:FAILED";
60
+ // only show banner for NEW_PAYEE_REVIEW if a PFT was created
60
61
  if (((_q = account.holdReasons) === null || _q === void 0 ? void 0 : _q.includes("NEW_PAYEE_REVIEW")) && hasTransferredReward)
61
62
  return "NEW_PAYEE_REVIEW";
62
- if ((_r = account.holdReasons) === null || _r === void 0 ? void 0 : _r.includes("PAYMENT_HOLD_ON_CHANGE"))
63
+ if ((_r = account.holdReasons) === null || _r === void 0 ? void 0 : _r.includes("NEW_PAYEE_REVIEW"))
64
+ return "DONE";
65
+ if ((_s = account.holdReasons) === null || _s === void 0 ? void 0 : _s.includes("PAYMENT_HOLD_ON_CHANGE"))
63
66
  return "PAYMENT_HOLD_ON_CHANGE";
64
- if ((_s = account.holdReasons) === null || _s === void 0 ? void 0 : _s.includes("BENEFICIARY_NAME_INVALID"))
67
+ if ((_t = account.holdReasons) === null || _t === void 0 ? void 0 : _t.includes("BENEFICIARY_NAME_INVALID"))
65
68
  return "BENEFICIARY_NAME_INVALID";
66
- if ((_t = account.holdReasons) === null || _t === void 0 ? void 0 : _t.includes("BENEFICIARY_NAME_MISMATCH"))
69
+ if ((_u = account.holdReasons) === null || _u === void 0 ? void 0 : _u.includes("BENEFICIARY_NAME_MISMATCH"))
67
70
  return "BENEFICIARY_NAME_MISMATCH";
68
- if ((_u = account.holdReasons) === null || _u === void 0 ? void 0 : _u.includes("BANK_TAX_NAME_MISMATCH"))
71
+ if ((_v = account.holdReasons) === null || _v === void 0 ? void 0 : _v.includes("BANK_TAX_NAME_MISMATCH"))
69
72
  return "BANK_TAX_NAME_MISMATCH";
70
- if ((_v = account.holdReasons) === null || _v === void 0 ? void 0 : _v.includes("WITHDRAWAL_SETTINGS_INVALID"))
73
+ if ((_w = account.holdReasons) === null || _w === void 0 ? void 0 : _w.includes("WITHDRAWAL_SETTINGS_INVALID"))
71
74
  return "WITHDRAWAL_SETTINGS_INVALID";
72
- if ((_w = account.holdReasons) === null || _w === void 0 ? void 0 : _w.includes("PAYMENT_RETURNED"))
75
+ if ((_x = account.holdReasons) === null || _x === void 0 ? void 0 : _x.includes("PAYMENT_RETURNED"))
73
76
  return "PAYMENT_RETURNED";
74
77
  if (account.hold)
75
78
  return "HOLD";
@@ -112,20 +115,14 @@ export function usePayoutStatus(props) {
112
115
  window.history.pushState(null, "", url);
113
116
  };
114
117
  const onPaymentInfoClick = () => {
115
- setContext({
116
- overrideNextStep: "/dashboard",
117
- overrideBackStep: "/dashboard",
118
- hideSteps: true,
119
- });
120
- setStep("/4");
118
+ let url = props.cashPayoutsPageUrl;
119
+ url += "#4";
120
+ window.history.pushState(null, "", url);
121
121
  };
122
122
  const onNewFormClick = () => {
123
- setContext({
124
- overrideNextStep: "/dashboard",
125
- overrideBackStep: "/dashboard",
126
- hideSteps: true,
127
- });
128
- setStep("/3");
123
+ let url = props.cashPayoutsPageUrl;
124
+ url += "#3";
125
+ window.history.pushState(null, "", url);
129
126
  };
130
127
  return {
131
128
  states: {