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

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 (47) hide show
  1. package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +44 -18
  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 +1 -0
  7. package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +4 -0
  8. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +1 -1
  9. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +10 -10
  10. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +16 -19
  11. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +10 -10
  12. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +1 -1
  13. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +12 -12
  14. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +7 -1
  15. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +4 -4
  16. package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +20 -11
  17. package/dist/esm/sqm-banking-info-form_10.entry.js +44 -18
  18. package/dist/esm/sqm-big-stat_47.entry.js +12 -12
  19. package/dist/esm/sqm-header-logo.entry.js +2 -2
  20. package/dist/esm/{usePayoutStatus-f064247b.js → usePayoutStatus-e0ef2374.js} +16 -19
  21. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
  22. package/dist/esm-es5/sqm-big-stat_47.entry.js +1 -1
  23. package/dist/esm-es5/sqm-header-logo.entry.js +1 -1
  24. package/dist/esm-es5/{usePayoutStatus-f064247b.js → usePayoutStatus-e0ef2374.js} +2 -2
  25. package/dist/mint-components/mint-components.esm.js +1 -1
  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-b3783e7d.entry.js +106 -0
  32. package/dist/mint-components/{p-f17b6de6.js → p-c41108ae.js} +7 -7
  33. package/dist/mint-components/p-d078327c.system.entry.js +1 -0
  34. package/dist/mint-components/{p-e728337d.entry.js → p-e4f6a6c8.entry.js} +9 -9
  35. package/dist/types/components/sqm-header-logo/sqm-header-logo.d.ts +1 -0
  36. package/dist/types/components.d.ts +2 -0
  37. package/dist/types/global/android.d.ts +7 -0
  38. package/dist/types/global/demo.d.ts +2 -0
  39. package/dist/types/stories/features.d.ts +4 -0
  40. package/dist/types/stories/templates.d.ts +4 -0
  41. package/docs/docs.docx +0 -0
  42. package/docs/raisins.json +1 -1
  43. package/package.json +1 -1
  44. package/dist/mint-components/p-2dc720db.system.entry.js +0 -1
  45. package/dist/mint-components/p-7e009640.system.entry.js +0 -1
  46. package/dist/mint-components/p-838c6cf8.entry.js +0 -99
  47. 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,6 +903,7 @@ function useBankingInfoForm(props) {
903
903
  const paymentMethodChecked = !hasPayPal
904
904
  ? "toBankAccount"
905
905
  : _paymentMethodChecked;
906
+ console.log({ context });
906
907
  domContextHooks_module.useEffect(() => {
907
908
  // reset redirect hash
908
909
  window.location.hash = "";
@@ -1715,6 +1716,10 @@ function useDocusignForm(props) {
1715
1716
  ? publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType : undefined;
1716
1717
  const actualDocumentType = existingDocumentType ||
1717
1718
  getDocumentType(participantType) || (publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType);
1719
+ domContextHooks_module.useEffect(() => {
1720
+ // reset redirect hash
1721
+ window.location.hash = "";
1722
+ }, []);
1718
1723
  domContextHooks_module.useEffect(() => {
1719
1724
  if (!existingDocumentType)
1720
1725
  return;
@@ -4134,7 +4139,7 @@ const TaxAndCashDashboardView = (props) => {
4134
4139
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
4135
4140
  }),
4136
4141
  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",
4142
+ alertType: "error",
4138
4143
  icon: "exclamation-triangle",
4139
4144
  class: sheet$4.classes.WarningHoldAlertContainer,
4140
4145
  };
@@ -4394,8 +4399,14 @@ const useTaxAndCashDashboard = (props) => {
4394
4399
  domContextHooks_module.useEffect(() => {
4395
4400
  // Clear override context once on submitted
4396
4401
  setContext({});
4397
- if (window.location.hash)
4402
+ if (window.location.hash) {
4403
+ setContext({
4404
+ overrideNextStep: "/dashboard",
4405
+ overrideBackStep: "/dashboard",
4406
+ hideSteps: true,
4407
+ });
4398
4408
  setStep(`/${window.location.hash.replace("#", "")}`);
4409
+ }
4399
4410
  }, []);
4400
4411
  const { data, loading, errors: userError, refetch, } = index_module.$n(usePayoutStatus.USER_QUERY_NAMESPACE);
4401
4412
  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 +4616,7 @@ const TaxAndCashDashboard = class {
4605
4616
  *
4606
4617
  * @uiName Edit payment info button label
4607
4618
  */
4608
- this.editPaymentInformationButton = "Edit Payout Information";
4619
+ this.editPaymentInformationButton = "Edit payout information";
4609
4620
  /**
4610
4621
  * @uiName Not registered for indirect tax text
4611
4622
  * @uiWidget textArea
@@ -4666,7 +4677,7 @@ const TaxAndCashDashboard = class {
4666
4677
  /**
4667
4678
  * @uiName Verification required internal alert header
4668
4679
  */
4669
- this.verificationRequiredInternalHeader = "Identity Verification in Progress";
4680
+ this.verificationRequiredInternalHeader = "Identity verification in progress";
4670
4681
  /**
4671
4682
  * @uiName Verification required internal alert description
4672
4683
  */
@@ -4674,7 +4685,7 @@ const TaxAndCashDashboard = class {
4674
4685
  /**
4675
4686
  * @uiName Verification review internal alert header
4676
4687
  */
4677
- this.verificationReviewInternalHeader = "Identity Verification Under Review";
4688
+ this.verificationReviewInternalHeader = "Identity verification under review";
4678
4689
  /**
4679
4690
  * @uiName Verification review internal alert description
4680
4691
  */
@@ -4682,7 +4693,7 @@ const TaxAndCashDashboard = class {
4682
4693
  /**
4683
4694
  * @uiName Verification failed internal alert header
4684
4695
  */
4685
- this.verificationFailedInternalHeader = "Identity Verification Unsuccessful";
4696
+ this.verificationFailedInternalHeader = "Identity verification unsuccessful";
4686
4697
  /**
4687
4698
  * @uiName Verification failed internal alert description
4688
4699
  */
@@ -4743,11 +4754,11 @@ const TaxAndCashDashboard = class {
4743
4754
  /**
4744
4755
  * @uiName Withdrawal settings invalid alert header
4745
4756
  */
4746
- this.withdrawalSettingsInvalidHeader = "Your payment information includes invalid characters";
4757
+ this.withdrawalSettingsInvalidHeader = "Your payment information is incomplete or includes invalid characters";
4747
4758
  /**
4748
4759
  * @uiName Withdrawal settings invalid alert description
4749
4760
  */
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.";
4761
+ 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
4762
  /**
4752
4763
  * @uiName Payment returned alert header
4753
4764
  */
@@ -6286,7 +6297,7 @@ const UserInfoFormView = (props) => {
6286
6297
  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
6298
  // Checks for non-ASCII characters
6288
6299
  !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) ? {
6300
+ 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
6301
  class: classes.ErrorInput,
6291
6302
  helpText: utils$1.formatErrorMessage(text.address, formState.errors.address),
6292
6303
  }
@@ -6294,17 +6305,17 @@ const UserInfoFormView = (props) => {
6294
6305
  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
6306
  // Checks for non-ASCII characters
6296
6307
  !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) ? {
6308
+ 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
6309
  class: classes.ErrorInput,
6299
6310
  helpText: utils$1.formatErrorMessage(text.city, formState.errors.city),
6300
6311
  }
6301
6312
  : {}), { 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) ? {
6313
+ !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
6314
  class: classes.ErrorInput,
6304
6315
  helpText: utils$1.formatErrorMessage(text.state, formState.errors.state),
6305
6316
  }
6306
6317
  : {}), { 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) ? {
6318
+ 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
6319
  class: classes.ErrorInput,
6309
6320
  helpText: utils$1.formatErrorMessage(text.postalCode, formState.errors.postalCode),
6310
6321
  }
@@ -6336,8 +6347,16 @@ const UserInfoFormView = (props) => {
6336
6347
  index.h("sl-button", { type: "primary", disabled: states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton))))));
6337
6348
  };
6338
6349
 
6350
+ const GET_INDIRECT_TAX_COUNTRY_CODE = index_module.dist.gql `
6351
+ query getIndirectTaxCountryCode {
6352
+ tenantSettings {
6353
+ impactBrandCountryCode
6354
+ impactBrandIndirectTaxCountryCode
6355
+ }
6356
+ }
6357
+ `;
6339
6358
  function useUserInfoForm(props) {
6340
- var _a, _b, _c, _d, _e, _f;
6359
+ var _a, _b, _c, _d, _e, _f, _g;
6341
6360
  const currencyRef = domContextHooks_module.useRef(undefined);
6342
6361
  const phoneCountryRef = domContextHooks_module.useRef(undefined);
6343
6362
  const formRef = domContextHooks_module.useRef(null);
@@ -6347,6 +6366,7 @@ function useUserInfoForm(props) {
6347
6366
  const [userFormContext, setUserFormContext] = index_module.Pn(usePayoutStatus.USER_FORM_CONTEXT_NAMESPACE);
6348
6367
  const user = index_module.J();
6349
6368
  const [connectImpactPartner, { loading: connectLoading, errors: connectErrors },] = index_module.$e(CONNECT_PARTNER);
6369
+ const { data: tenantData } = index_module.wn(GET_INDIRECT_TAX_COUNTRY_CODE, {});
6350
6370
  const { data, loading, refetch, errors: userError, } = index_module.$n(usePayoutStatus.USER_QUERY_NAMESPACE);
6351
6371
  const _currencies = index_module.Fn(usePayoutStatus.CURRENCIES_NAMESPACE);
6352
6372
  const currencies = domContextHooks_module.useMemo(() => [...(_currencies || [])].sort((a, b) => a.displayName.localeCompare(b.displayName)), [_currencies]);
@@ -6560,10 +6580,16 @@ function useUserInfoForm(props) {
6560
6580
  const nextStep = context.overrideNextStep || skipNextStep ? "/3" : "/2";
6561
6581
  setStep(nextStep);
6562
6582
  }
6583
+ const indirectTaxCountry = (_a = tenantData === null || tenantData === void 0 ? void 0 : tenantData.tenantSettings) === null || _a === void 0 ? void 0 : _a.impactBrandIndirectTaxCountryCode;
6584
+ const hasIndirectTax = !!indirectTaxCountry;
6563
6585
  function getSkipNextStep(userData) {
6586
+ if (!hasIndirectTax)
6587
+ return true;
6564
6588
  if (userData.countryCode === "US")
6565
6589
  return true;
6566
- return true;
6590
+ if (hasIndirectTax && userData.countryCode !== indirectTaxCountry)
6591
+ return true;
6592
+ return false;
6567
6593
  }
6568
6594
  const hasStates = ["ES", "AU", "US", "CA"].includes(userFormContext.countryCode);
6569
6595
  const regionObj = hasStates
@@ -6592,7 +6618,7 @@ function useUserInfoForm(props) {
6592
6618
  allCountries: countries,
6593
6619
  regionLabelEnum: regionObj === null || regionObj === void 0 ? void 0 : regionObj.labelEnum,
6594
6620
  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,
6621
+ 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
6622
  },
6597
6623
  states: {
6598
6624
  step: step === null || step === void 0 ? void 0 : step.replace("/", ""),
@@ -6601,8 +6627,8 @@ function useUserInfoForm(props) {
6601
6627
  disabled: loading || connectLoading,
6602
6628
  loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
6603
6629
  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),
6630
+ 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),
6631
+ 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
6632
  formState: {
6607
6633
  ...userFormContext,
6608
6634
  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,6 +125,7 @@ export function useBankingInfoForm(props) {
125
125
  const paymentMethodChecked = !hasPayPal
126
126
  ? "toBankAccount"
127
127
  : _paymentMethodChecked;
128
+ console.log({ context });
128
129
  useEffect(() => {
129
130
  // reset redirect hash
130
131
  window.location.hash = "";
@@ -50,6 +50,10 @@ export function useDocusignForm(props) {
50
50
  ? publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType : undefined;
51
51
  const actualDocumentType = existingDocumentType ||
52
52
  getDocumentType(participantType) || (publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType);
53
+ useEffect(() => {
54
+ // reset redirect hash
55
+ window.location.hash = "";
56
+ }, []);
53
57
  useEffect(() => {
54
58
  if (!existingDocumentType)
55
59
  return;
@@ -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: {