@saasquatch/mint-components 1.12.0-11 → 1.12.0-13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/mint-components.cjs.js +1 -1
  3. package/dist/cjs/sqm-banking-info-form_16.cjs.entry.js +165 -61
  4. package/dist/cjs/sqm-big-stat_39.cjs.entry.js +55 -15
  5. package/dist/cjs/sqm-code-verification.cjs.entry.js +5 -5
  6. package/dist/cjs/sqm-email-verification.cjs.entry.js +1 -1
  7. package/dist/cjs/{sqm-invoice-table-view-c58966f8.js → sqm-invoice-table-view-e92c557a.js} +79 -23
  8. package/dist/cjs/sqm-stencilbook.cjs.entry.js +12 -21
  9. package/dist/cjs/sqm-widget-verification-internal.cjs.entry.js +7 -1
  10. package/dist/cjs/usePayoutStatus-5ac536a3.js +1045 -0
  11. package/dist/cjs/{useVerificationEmail-6aacdb71.js → useVerificationEmail-2eb28c2a.js} +5 -1
  12. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +1 -1
  13. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/useCodeVerification.js +3 -3
  14. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-internal.js +7 -1
  15. package/dist/collection/components/sqm-widget-verification/useVerificationEmail.js +5 -1
  16. package/dist/collection/components/tax-and-cash/BankingForm.stories.js +1 -0
  17. package/dist/collection/components/tax-and-cash/TaxForm.stories.js +76 -23
  18. package/dist/collection/components/tax-and-cash/eventKeys.js +1 -0
  19. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +32 -10
  20. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +6 -1
  21. package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +3 -0
  22. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +3 -0
  23. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/PayoutDetailsCard.stories.js +0 -7
  24. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.js +0 -5
  25. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +0 -56
  26. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.js +5 -9
  27. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +28 -11
  28. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +155 -6
  29. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +20 -9
  30. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +87 -23
  31. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +153 -2
  32. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +13 -5
  33. package/dist/collection/components/tax-and-cash/useVeriffApp.js +64 -0
  34. package/dist/esm/loader.js +1 -1
  35. package/dist/esm/mint-components.js +1 -1
  36. package/dist/esm/sqm-banking-info-form_16.entry.js +165 -61
  37. package/dist/esm/sqm-big-stat_39.entry.js +55 -15
  38. package/dist/esm/sqm-code-verification.entry.js +5 -5
  39. package/dist/esm/sqm-email-verification.entry.js +1 -1
  40. package/dist/esm/{sqm-invoice-table-view-d1cfdaf4.js → sqm-invoice-table-view-c184248a.js} +79 -23
  41. package/dist/esm/sqm-stencilbook.entry.js +12 -21
  42. package/dist/esm/sqm-widget-verification-internal.entry.js +7 -1
  43. package/dist/esm/usePayoutStatus-d613ff10.js +1039 -0
  44. package/dist/esm/{useVerificationEmail-c32696ba.js → useVerificationEmail-2a21d0e3.js} +5 -1
  45. package/dist/esm-es5/loader.js +1 -1
  46. package/dist/esm-es5/mint-components.js +1 -1
  47. package/dist/esm-es5/sqm-banking-info-form_16.entry.js +1 -1
  48. package/dist/esm-es5/sqm-big-stat_39.entry.js +1 -1
  49. package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
  50. package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
  51. package/dist/esm-es5/sqm-invoice-table-view-c184248a.js +1 -0
  52. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  53. package/dist/esm-es5/sqm-widget-verification-internal.entry.js +1 -1
  54. package/dist/esm-es5/usePayoutStatus-d613ff10.js +6 -0
  55. package/dist/esm-es5/useVerificationEmail-2a21d0e3.js +1 -0
  56. package/dist/mint-components/mint-components.esm.js +1 -1
  57. package/dist/mint-components/{p-1712a9fd.entry.js → p-02892b2a.entry.js} +2 -2
  58. package/dist/mint-components/p-03e1ac96.system.entry.js +1 -0
  59. package/dist/mint-components/p-13ce67a3.js +1 -0
  60. package/dist/mint-components/p-209eab38.system.js +6 -0
  61. package/dist/mint-components/p-2584baa5.entry.js +16 -0
  62. package/dist/mint-components/p-2c99add0.js +31 -0
  63. package/dist/mint-components/{p-24092973.entry.js → p-4e21de5f.entry.js} +2 -2
  64. package/dist/mint-components/p-8c26c4ce.entry.js +195 -0
  65. package/dist/mint-components/{p-e45a8501.system.entry.js → p-8fa2809f.system.entry.js} +1 -1
  66. package/dist/mint-components/{p-b62faaa5.system.entry.js → p-9266a8fc.system.entry.js} +1 -1
  67. package/dist/mint-components/p-9379ee08.js +48 -0
  68. package/dist/mint-components/p-a567ba84.system.entry.js +1 -0
  69. package/dist/mint-components/p-a8c28561.system.js +1 -0
  70. package/dist/mint-components/{p-5f766d09.entry.js → p-a9b7e11f.entry.js} +2 -2
  71. package/dist/mint-components/p-b7836281.system.js +1 -0
  72. package/dist/mint-components/{p-331d060e.entry.js → p-b9e863d0.entry.js} +14 -14
  73. package/dist/mint-components/p-c520d10d.system.entry.js +1 -0
  74. package/dist/mint-components/{p-aabab609.system.entry.js → p-c5d26757.system.entry.js} +1 -1
  75. package/dist/mint-components/p-ca809fdd.system.js +1 -1
  76. package/dist/types/components/sqm-widget-verification/useVerificationEmail.d.ts +1 -0
  77. package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +3 -0
  78. package/dist/types/components/tax-and-cash/eventKeys.d.ts +1 -0
  79. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +2 -0
  80. package/dist/types/components/tax-and-cash/sqm-payout-details-card/PayoutDetailsCard.stories.d.ts +0 -1
  81. package/dist/types/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.d.ts +0 -4
  82. package/dist/types/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.d.ts +1 -16
  83. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.d.ts +3 -1
  84. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +7 -2
  85. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +25 -0
  86. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +3 -4
  87. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +8 -4
  88. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +24 -0
  89. package/dist/types/components/tax-and-cash/useVeriffApp.d.ts +6 -0
  90. package/dist/types/components.d.ts +98 -22
  91. package/docs/docs.docx +0 -0
  92. package/docs/picklesdoc--2024-01-15--11-20-00.xlsx +0 -0
  93. package/docs/picklesdoc--2024-01-15--11-24-04.xlsx +0 -0
  94. package/docs/raisins.json +1 -1
  95. package/grapesjs/grapesjs.js +1 -1
  96. package/package.json +2 -1
  97. package/dist/cjs/usePayoutStatus-b9fb7399.js +0 -70
  98. package/dist/esm/usePayoutStatus-1a635054.js +0 -67
  99. package/dist/esm-es5/sqm-invoice-table-view-d1cfdaf4.js +0 -1
  100. package/dist/esm-es5/usePayoutStatus-1a635054.js +0 -1
  101. package/dist/esm-es5/useVerificationEmail-c32696ba.js +0 -1
  102. package/dist/mint-components/p-0e45bc0e.system.entry.js +0 -1
  103. package/dist/mint-components/p-1e616d45.system.js +0 -1
  104. package/dist/mint-components/p-282a7d85.entry.js +0 -195
  105. package/dist/mint-components/p-4364001c.entry.js +0 -12
  106. package/dist/mint-components/p-4bd7a472.js +0 -1
  107. package/dist/mint-components/p-517224ef.js +0 -19
  108. package/dist/mint-components/p-8300d8c8.system.js +0 -1
  109. package/dist/mint-components/p-8bddb468.system.entry.js +0 -1
  110. package/dist/mint-components/p-974070c4.system.entry.js +0 -1
  111. package/dist/mint-components/p-d7806f31.js +0 -48
  112. package/dist/mint-components/p-e990dc21.system.js +0 -1
@@ -12,9 +12,9 @@ import { u as useChildElements } from './useChildElements-fc84e640.js';
12
12
  import { l as luxon } from './luxon-7600be8d.js';
13
13
  import { g as generateUserError } from './useReferralTable-f6ffa103.js';
14
14
  import { g as getProps, l as luxonLocale } from './utils-334c1e34.js';
15
- import { t as taxTypeToName, v as validTaxDocument, a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, g as getCountryObj, O as OtherRegionSlotView, I as InvoiceTableView, E as ErrorView, L as LoadingView, c as vatLabels, G as GeneralLoadingView, f as formatErrorMessage, d as validateBillingField, o as objectIsFull, A as ADDRESS_REGIONS } from './sqm-invoice-table-view-d1cfdaf4.js';
15
+ import { t as taxTypeToName, v as validTaxDocument, a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, g as getCountryObj, O as OtherRegionSlotView, I as InvoiceTableView, E as ErrorView, L as LoadingView, c as vatLabels, G as GeneralLoadingView, f as formatErrorMessage, d as validateBillingField, o as objectIsFull, A as ADDRESS_REGIONS } from './sqm-invoice-table-view-c184248a.js';
16
16
  import { b as VERIFICATION_EVENT_KEY } from './keys-db1897ae.js';
17
- import { g as getStatus } from './usePayoutStatus-1a635054.js';
17
+ import { T as TAX_FORM_UPDATED_EVENT_KEY, a as useVeriffApp, g as getStatus, V as VERIFF_COMPLETE_EVENT_KEY } from './usePayoutStatus-d613ff10.js';
18
18
  import { e as extractProps } from './extractProps-ae1afbb3.js';
19
19
 
20
20
  const TAX_CONTEXT_NAMESPACE = "sq:tax-and-cash";
@@ -1142,6 +1142,8 @@ function useBankingInfoForm(props) {
1142
1142
  });
1143
1143
  return;
1144
1144
  }
1145
+ // Fire form change event
1146
+ window.dispatchEvent(new Event(TAX_FORM_UPDATED_EVENT_KEY));
1145
1147
  await refetch();
1146
1148
  setStep("/dashboard");
1147
1149
  }
@@ -1184,7 +1186,8 @@ function useBankingInfoForm(props) {
1184
1186
  });
1185
1187
  setShowVerification(false);
1186
1188
  }
1187
- await runMutation(formData, token);
1189
+ if (token)
1190
+ await runMutation(formData, token);
1188
1191
  };
1189
1192
  const onVerification = async (token) => {
1190
1193
  host.dispatchEvent(new CustomEvent(VERIFICATION_EVENT_KEY, {
@@ -1217,6 +1220,7 @@ function useBankingInfoForm(props) {
1217
1220
  onBack: () => setStep("/dashboard"),
1218
1221
  setCountrySearch,
1219
1222
  onVerification,
1223
+ onVerificationHide: () => onVerification(null),
1220
1224
  },
1221
1225
  states: {
1222
1226
  showVerification,
@@ -1550,23 +1554,41 @@ const BankingInfoForm = class {
1550
1554
  bitset: props.states.bitset,
1551
1555
  formMap,
1552
1556
  });
1553
- const searchStyle = {
1557
+ const style = {
1558
+ Dialog: {
1559
+ "&::part(panel)": {
1560
+ maxWidth: "420px",
1561
+ },
1562
+ "&::part(close-button)": {
1563
+ marginBottom: "var(--sl-spacing-xx-large)",
1564
+ },
1565
+ "&::part(body)": {
1566
+ padding: "0 var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",
1567
+ fontSize: "var(--sl-font-size-small)",
1568
+ },
1569
+ "&::part(footer)": {
1570
+ display: "flex",
1571
+ flexDirection: "column",
1572
+ gap: "var(--sl-spacing-small)",
1573
+ marginBottom: "var(--sl-spacing-xx-small)",
1574
+ alignItems: "center",
1575
+ flex: "1",
1576
+ },
1577
+ },
1554
1578
  SearchInput: {
1555
1579
  padding: "var(--sl-spacing-x-small)",
1556
1580
  },
1557
1581
  };
1558
- if (props.states.isPartner && props.states.showVerification) {
1559
- return (h("sqm-code-verification", { onVerification: props.callbacks.onVerification }));
1560
- }
1561
- return (h(Host, null, h(BankingInfoFormView, { callbacks: props.callbacks, text: props.text, states: props.states, refs: props.refs, slots: {
1582
+ const sheet = createStyleSheet(style);
1583
+ return (h(Host, null, props.states.isPartner && props.states.showVerification ? (h("sl-dialog", { class: sheet.classes.Dialog, open: true, "onSl-hide": props.callbacks.onVerificationHide }, h("sqm-code-verification", { onVerification: props.callbacks.onVerification }))) : null, h(BankingInfoFormView, { callbacks: props.callbacks, text: props.text, states: props.states, refs: props.refs, slots: {
1562
1584
  formInputsSlot: inputFields === null || inputFields === void 0 ? void 0 : inputFields.map(({ input }) => input),
1563
- countryInputSlot: (h("sl-select", Object.assign({ label: props.text.bankLocationLabel, required: true, name: "/bankCountry", id: "bankCountry", value: props.states.formState.bankCountry || "", "onSl-select": (e) => { var _a, _b; return props.callbacks.setBankCountry((_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.value); } }, (((_a = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _a === void 0 ? void 0 : _a.bankCountry) && {
1585
+ countryInputSlot: (h("sl-select", Object.assign({ label: props.text.bankLocationLabel, disabled: props.states.saveLoading, required: true, name: "/bankCountry", id: "bankCountry", value: props.states.formState.bankCountry || "", "onSl-select": (e) => { var _a, _b; return props.callbacks.setBankCountry((_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.value); } }, (((_a = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _a === void 0 ? void 0 : _a.bankCountry) && {
1564
1586
  class: "error-input",
1565
1587
  helpText: getValidationErrorMessage({
1566
1588
  type: (_c = (_b = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _b === void 0 ? void 0 : _b.bankCountry) === null || _c === void 0 ? void 0 : _c.type,
1567
1589
  label: props.text.bankLocationLabel,
1568
1590
  }),
1569
- })), h("sl-input", { class: searchStyle.SearchInput, placeholder: this.searchForCountryText, onKeyDown: (e) => {
1591
+ })), h("sl-input", { disabled: props.states.saveLoading, class: sheet.classes.SearchInput, placeholder: this.searchForCountryText, onKeyDown: (e) => {
1570
1592
  // Stop shoelace intercepting key presses
1571
1593
  e.stopPropagation();
1572
1594
  }, "onSl-input": (e) => {
@@ -1577,21 +1599,21 @@ const BankingInfoForm = class {
1577
1599
  }), (_f = (_e = props.states) === null || _e === void 0 ? void 0 : _e.allCountries) === null || _f === void 0 ? void 0 :
1578
1600
  _f.map((c) => (h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName))))),
1579
1601
  paymentMethodSlot: (h("sl-input", { key: "paymentMethod", label: props.text.paymentMethod, placeholder: props.states.paymentMethodFeeLabel, disabled: true })),
1580
- paymentThresholdSelectSlot: (h("sl-select", Object.assign({ required: true, label: props.text.paymentThresholdSelectLabel, name: "/paymentThreshold", id: "paymentThreshold", value: ((_h = (_g = props.states) === null || _g === void 0 ? void 0 : _g.formState) === null || _h === void 0 ? void 0 : _h.paymentThreshold) || "" }, (((_j = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _j === void 0 ? void 0 : _j.paymentThreshold) && {
1602
+ paymentThresholdSelectSlot: (h("sl-select", Object.assign({ required: true, disabled: props.states.saveLoading, label: props.text.paymentThresholdSelectLabel, name: "/paymentThreshold", id: "paymentThreshold", value: ((_h = (_g = props.states) === null || _g === void 0 ? void 0 : _g.formState) === null || _h === void 0 ? void 0 : _h.paymentThreshold) || "" }, (((_j = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _j === void 0 ? void 0 : _j.paymentThreshold) && {
1581
1603
  class: "error-input",
1582
1604
  helpText: getValidationErrorMessage({
1583
1605
  type: (_l = (_k = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _k === void 0 ? void 0 : _k.paymentThreshold) === null || _l === void 0 ? void 0 : _l.type,
1584
1606
  label: props.text.paymentThresholdSelectLabel,
1585
1607
  }),
1586
1608
  })), props.states.thresholds.map((t) => (h("sl-menu-item", { value: t }, `${props.states.currency}${t}`))))),
1587
- paymentFixedDaySelectSlot: (h("sl-select", Object.assign({ required: true, label: props.text.paymentDaySelectLabel, value: ((_o = (_m = props.states) === null || _m === void 0 ? void 0 : _m.formState) === null || _o === void 0 ? void 0 : _o.paymentDay) || "", name: "/paymentDay", id: "paymentDay" }, (((_p = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _p === void 0 ? void 0 : _p.paymentDay) && {
1609
+ paymentFixedDaySelectSlot: (h("sl-select", Object.assign({ required: true, disabled: props.states.saveLoading, label: props.text.paymentDaySelectLabel, value: ((_o = (_m = props.states) === null || _m === void 0 ? void 0 : _m.formState) === null || _o === void 0 ? void 0 : _o.paymentDay) || "", name: "/paymentDay", id: "paymentDay" }, (((_p = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _p === void 0 ? void 0 : _p.paymentDay) && {
1588
1610
  class: "error-input",
1589
1611
  helpText: getValidationErrorMessage({
1590
1612
  type: (_r = (_q = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _q === void 0 ? void 0 : _q.paymentDay) === null || _r === void 0 ? void 0 : _r.type,
1591
1613
  label: props.text.paymentDaySelectLabel,
1592
1614
  }),
1593
1615
  })), h("sl-menu-item", { value: "1" }, props.text.paymentDayFirstOfMonthLabelText), h("sl-menu-item", { value: "15" }, props.text.paymentDayFifteenthOfMonthLabelText))),
1594
- paypalInputSlot: (h("sl-input", Object.assign({ required: true, value: ((_t = (_s = props.states) === null || _s === void 0 ? void 0 : _s.formState) === null || _t === void 0 ? void 0 : _t.paypalEmailAddress) || "", label: props.text.payPalInputLabel, key: "paypalEmailAddress", name: "/paypalEmailAddress", id: "paypalEmailAddress", type: "text" }, (((_w = (_v = (_u = props.states.formState) === null || _u === void 0 ? void 0 : _u.errors) === null || _v === void 0 ? void 0 : _v.inputErrors) === null || _w === void 0 ? void 0 : _w.paypalEmailAddress) && {
1616
+ paypalInputSlot: (h("sl-input", Object.assign({ required: true, disabled: props.states.saveLoading, value: ((_t = (_s = props.states) === null || _s === void 0 ? void 0 : _s.formState) === null || _t === void 0 ? void 0 : _t.paypalEmailAddress) || "", label: props.text.payPalInputLabel, key: "paypalEmailAddress", name: "/paypalEmailAddress", id: "paypalEmailAddress", type: "text" }, (((_w = (_v = (_u = props.states.formState) === null || _u === void 0 ? void 0 : _u.errors) === null || _v === void 0 ? void 0 : _v.inputErrors) === null || _w === void 0 ? void 0 : _w.paypalEmailAddress) && {
1595
1617
  class: "error-input",
1596
1618
  helpText: getValidationErrorMessage({
1597
1619
  type: (_0 = (_z = (_y = (_x = props.states.formState) === null || _x === void 0 ? void 0 : _x.errors) === null || _y === void 0 ? void 0 : _y.inputErrors) === null || _z === void 0 ? void 0 : _z.paypalEmailAddress) === null || _0 === void 0 ? void 0 : _0.type,
@@ -1682,6 +1704,7 @@ function useDemoBankingInfoForm(props) {
1682
1704
  hasPayPal: true,
1683
1705
  },
1684
1706
  callbacks: {
1707
+ onVerificationHide: () => { },
1685
1708
  onSubmit: async () => {
1686
1709
  setStep("/dashboard");
1687
1710
  },
@@ -1796,6 +1819,8 @@ function useDocusignForm(props) {
1796
1819
  // @ts-expect-error: no data type for result
1797
1820
  if (!result.completeImpactPublisherTaxDocument.success)
1798
1821
  throw new Error();
1822
+ // Fire form change event
1823
+ window.dispatchEvent(new Event(TAX_FORM_UPDATED_EVENT_KEY));
1799
1824
  setShowExitButton(true);
1800
1825
  }
1801
1826
  catch (e) {
@@ -2676,6 +2701,8 @@ function useIndirectTaxForm(props) {
2676
2701
  const resultPublisher = (_e = (_d = (_c = result
2677
2702
  .createImpactConnection) === null || _c === void 0 ? void 0 : _c.user) === null || _d === void 0 ? void 0 : _d.impactConnection) === null || _e === void 0 ? void 0 : _e.publisher;
2678
2703
  const hasValidCurrentDocument = validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
2704
+ // Fire form change event
2705
+ window.dispatchEvent(new Event(TAX_FORM_UPDATED_EVENT_KEY));
2679
2706
  if ((resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) &&
2680
2707
  !hasValidCurrentDocument) {
2681
2708
  // Go to docusign form
@@ -3608,11 +3635,6 @@ function PayoutDetailsCardView(props) {
3608
3635
  });
3609
3636
  return (h("div", { class: classes.Container },
3610
3637
  h("style", { type: "text/css" }, styleString),
3611
- states.error && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", class: classes.Alert, type: "warning", open: true },
3612
- h("sl-icon", { slot: "icon", name: "exclamation-triangle" }),
3613
- h("div", { class: classes.AlertContent },
3614
- h("b", null, text.error.errorTitleText),
3615
- text.error.errorDescriptionText))),
3616
3638
  states.loading ? (renderLoadingSkeleton()) : (h("div", { class: classes.CardContainer },
3617
3639
  h("div", { class: classes.StatusContainer },
3618
3640
  h("p", { class: classes.SubduedRegularText }, states.badgeStatus === "thresholdPayout"
@@ -3708,16 +3730,6 @@ const PayoutDetailsCard = class {
3708
3730
  * @uiName Bank account field label
3709
3731
  */
3710
3732
  this.accountText = "Account";
3711
- /**
3712
- * Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
3713
- * @uiName Payout error message title
3714
- */
3715
- this.errorTitleText = "Your payout is on hold ";
3716
- /**
3717
- * Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
3718
- * @uiName Payout error message description
3719
- */
3720
- this.errorDescriptionText = "If you’ve recently added your payout information, please wait while we verify your information. If it’s still on hold after a few days, please contact Support or check your inbox for an email from our referral program provider, impact.com.";
3721
3733
  /**
3722
3734
  * Text displayed for existing publishers that do not have saved banking information.
3723
3735
  * @uiName Payout missing information subtext
@@ -3730,10 +3742,6 @@ const PayoutDetailsCard = class {
3730
3742
  const props = getProps(this);
3731
3743
  return {
3732
3744
  ...props,
3733
- error: {
3734
- errorTitleText: this.errorTitleText,
3735
- errorDescriptionText: this.errorDescriptionText,
3736
- },
3737
3745
  };
3738
3746
  }
3739
3747
  render() {
@@ -4902,17 +4910,43 @@ function useDemoTaxAndCash(props) {
4902
4910
  }
4903
4911
 
4904
4912
  const style$5 = {
4905
- WarningAlertContainer: {
4913
+ ErrorAlertContainer: {
4906
4914
  "&::part(base)": {
4907
4915
  backgroundColor: "var(--sl-color-red-100)",
4908
4916
  borderTop: "none",
4909
4917
  },
4918
+ "& sl-icon::part(base)": {
4919
+ color: "var(--sl-color-danger-500)",
4920
+ },
4921
+ },
4922
+ WarningAlertContainer: {
4923
+ "&::part(base)": {
4924
+ backgroundColor: "var(--sl-color-yellow-100)",
4925
+ borderTop: "none",
4926
+ },
4927
+ "& sl-icon::part(base)": {
4928
+ color: "var(--sl-color-warning-500)",
4929
+ },
4930
+ },
4931
+ WarningHoldAlertContainer: {
4932
+ marginLeft: "-20px",
4933
+ "&::part(base)": {
4934
+ border: "none",
4935
+ backgroundColor: "transparent",
4936
+ },
4937
+ "& sl-icon::part(base)": {
4938
+ color: "var(--sl-color-warning-500)",
4939
+ },
4910
4940
  },
4911
- HoldAlertContainer: {
4941
+ ErrorHoldAlertContainer: {
4942
+ marginLeft: "-20px",
4912
4943
  "&::part(base)": {
4913
4944
  border: "none",
4914
4945
  backgroundColor: "transparent",
4915
4946
  },
4947
+ "& sl-icon::part(base)": {
4948
+ color: "var(--sl-color-danger-500)",
4949
+ },
4916
4950
  },
4917
4951
  ExpiringSoonAlertContainer: {
4918
4952
  "&::part(base)": {
@@ -5033,6 +5067,7 @@ const style$5 = {
5033
5067
  PageDescriptionText: {
5034
5068
  color: "var(--sl-color-neutral-500)",
5035
5069
  fontSize: "var(--sl-font-size-medium)",
5070
+ marginTop: "0",
5036
5071
  },
5037
5072
  Dialog: {
5038
5073
  "&::part(panel)": {
@@ -5065,8 +5100,56 @@ const style$5 = {
5065
5100
  const sheet$4 = createStyleSheet(style$5);
5066
5101
  const styleString$4 = sheet$4.toString();
5067
5102
  const TaxAndCashDashboardView = (props) => {
5068
- var _a;
5103
+ var _a, _b, _c, _d;
5069
5104
  const { states, text, callbacks, slots } = props;
5105
+ function getAlert(status) {
5106
+ switch (status) {
5107
+ case "VERIFICATION:REQUIRED":
5108
+ return {
5109
+ header: text.verificationRequiredHeader,
5110
+ description: text.verificationRequiredDescription,
5111
+ buttonText: text.verificationRequiredButtonText,
5112
+ alertType: "warning",
5113
+ icon: "exclamation-triangle",
5114
+ class: sheet$4.classes.WarningHoldAlertContainer,
5115
+ };
5116
+ case "VERIFICATION:INTERNAL":
5117
+ return {
5118
+ header: text.verificationRequiredInternalHeader,
5119
+ description: text.verificationRequiredInternalDescription,
5120
+ alertType: "warning",
5121
+ icon: "exclamation-triangle",
5122
+ class: sheet$4.classes.WarningHoldAlertContainer,
5123
+ };
5124
+ case "VERIFICATION:REVIEW":
5125
+ return {
5126
+ header: text.verificationReviewInternalHeader,
5127
+ description: text.verificationReviewInternalDescription,
5128
+ alertType: "warning",
5129
+ icon: "exclamation-triangle",
5130
+ class: sheet$4.classes.WarningHoldAlertContainer,
5131
+ };
5132
+ case "VERIFICATION:FAILED":
5133
+ return {
5134
+ header: text.verificationFailedInternalHeader,
5135
+ description: text.verificationFailedInternalDescription,
5136
+ alertType: "critical",
5137
+ icon: "exclamation-octagon",
5138
+ class: sheet$4.classes.ErrorHoldAlertContainer,
5139
+ };
5140
+ case "HOLD":
5141
+ return {
5142
+ header: text.payoutHoldAlertHeader,
5143
+ description: text.payoutHoldAlertDescription,
5144
+ buttonText: null,
5145
+ alertType: "warning",
5146
+ icon: "exclamation-triangle",
5147
+ class: sheet$4.classes.WarningHoldAlertContainer,
5148
+ };
5149
+ default:
5150
+ return;
5151
+ }
5152
+ }
5070
5153
  const statusMap = {
5071
5154
  NOT_VERIFIED: (h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
5072
5155
  h("sl-badge", { type: "warning", pill: true }, text.statusTextNotVerified),
@@ -5091,7 +5174,7 @@ const TaxAndCashDashboardView = (props) => {
5091
5174
  h("p", null, text.invalidForm))),
5092
5175
  };
5093
5176
  const alertMap = {
5094
- INACTIVE: (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.WarningAlertContainer },
5177
+ INACTIVE: (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.ErrorAlertContainer },
5095
5178
  h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
5096
5179
  h("strong", null, intl.formatMessage({
5097
5180
  id: `taxAlertHeaderNotActive`,
@@ -5143,39 +5226,28 @@ const TaxAndCashDashboardView = (props) => {
5143
5226
  h("div", null,
5144
5227
  h("style", { type: "text/css" }, styleString$4),
5145
5228
  states.loadingError && (h("div", null,
5146
- h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.WarningAlertContainer },
5229
+ h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.ErrorAlertContainer },
5147
5230
  h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
5148
5231
  h("strong", null, text.error.loadingErrorAlertHeader),
5149
5232
  h("br", null),
5150
5233
  text.error.loadingErrorAlertDescription))),
5151
- ((_a = states.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.WarningAlertContainer },
5234
+ ((_a = states.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.ErrorAlertContainer },
5152
5235
  h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
5153
5236
  h("strong", null, text.error.generalTitle),
5154
5237
  h("br", null),
5155
5238
  text.error.generalDescription)),
5156
- states.hasHold && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$4.classes.HoldAlertContainer },
5157
- h("sl-icon", { slot: "icon", name: "exclamation-triangle" }),
5158
- h("strong", null, text.payoutHoldAlertHeader),
5159
- h("br", null),
5160
- text.payoutHoldAlertDescription)),
5161
- states.payoutStatus === "VERIFICATION_NEEDED" && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$4.classes.HoldAlertContainer },
5162
- h("sl-icon", { slot: "icon", name: "exclamation-triangle" }),
5163
- h("strong", null, text.verificationRequiredHeader),
5164
- h("p", { style: { margin: "0" } }, text.verificationRequiredDescription),
5165
- h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", loading: states.loading,
5166
- //AL: TODO hooks
5167
- onClick: () => callbacks.onClick }, text.verificationRequiredButtonText))),
5168
- h("sl-dialog", { noDismiss: true, class: sheet$4.classes.Dialog, open: states.showVerifyIdentity, "onSl-hide": callbacks.onVerifyIdentityCancel },
5169
- h("iframe", {
5170
- // AL: TODO replace iframe URL with verification url when available
5171
- scrolling: "yes", frameBorder: "0", width: "100%", height: "100%", src: "https://impacttech.complytaxforms.com/ServiceRedirect.aspx?Language=eng&Param1=UxBORV4bOIrqNb4gbpNmtvW3wjdZJyx4gPElIGMJNR8=&UUID=B576EA3E-80FD-4D85-AA59-653D23A7CCE8" })),
5239
+ getAlert(states.payoutStatus) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", name: (_b = getAlert(states.payoutStatus)) === null || _b === void 0 ? void 0 : _b.alertType, open: true, class: (_c = getAlert(states.payoutStatus)) === null || _c === void 0 ? void 0 : _c.class },
5240
+ h("sl-icon", { slot: "icon", name: (_d = getAlert(states.payoutStatus)) === null || _d === void 0 ? void 0 : _d.icon }),
5241
+ h("strong", null, getAlert(states.payoutStatus).header),
5242
+ h("p", { style: { margin: "0" } }, getAlert(states.payoutStatus).description),
5243
+ getAlert(states.payoutStatus).buttonText && (h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", loading: states.veriffLoading, onClick: () => callbacks.onVerifyClick() }, getAlert(states.payoutStatus).buttonText)))),
5172
5244
  h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$4.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
5173
5245
  h("p", null, text.replaceTaxFormModalBodyText),
5174
5246
  h("sl-button", { slot: "footer", type: "primary", class: sheet$4.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
5175
5247
  h("sl-button", { slot: "footer", type: "default", class: sheet$4.classes.DialogButton, onClick: callbacks.onNewFormCancel }, text.cancelButton)),
5176
5248
  states.status === "INACTIVE" && alertMap[states.status],
5177
5249
  h("div", null,
5178
- h("h3", null, text.bankingInformationSectionHeader),
5250
+ h("h3", { style: { marginBottom: "0" } }, text.bankingInformationSectionHeader),
5179
5251
  h("p", { class: sheet$4.classes.PageDescriptionText }, text.taxAndPayoutsDescription),
5180
5252
  h("div", { class: sheet$4.classes.BankingInformationContainer },
5181
5253
  slots.payoutDetailsCardSlot,
@@ -5278,13 +5350,13 @@ const useTaxAndCashDashboard = (props) => {
5278
5350
  const setStep = Sn(TAX_CONTEXT_NAMESPACE);
5279
5351
  const setContext = Sn(TAX_FORM_CONTEXT_NAMESPACE);
5280
5352
  const [showDialog, setShowDialog] = useState(false);
5281
- const [showVerification, setShowVerification] = useState(false);
5353
+ const { render, loading: veriffLoading, errors: veriffErrors, } = useVeriffApp();
5282
5354
  const locale = Q();
5283
5355
  useEffect(() => {
5284
5356
  // Clear override context once on submitted
5285
5357
  setContext({});
5286
5358
  }, []);
5287
- const { data, loading, errors: userError, } = qn(USER_QUERY_NAMESPACE);
5359
+ const { data, loading, errors: userError, refetch, } = qn(USER_QUERY_NAMESPACE);
5288
5360
  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;
5289
5361
  const documentType = publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType;
5290
5362
  const submissionDate = (_c = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _c === void 0 ? void 0 : _c.dateCreated;
@@ -5309,7 +5381,14 @@ const useTaxAndCashDashboard = (props) => {
5309
5381
  setStep("/3");
5310
5382
  };
5311
5383
  const provinceName = (_d = INDIRECT_TAX_PROVINCES.find((p) => { var _a; return p.regionCode === ((_a = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _a === void 0 ? void 0 : _a.indirectTaxRegion); })) === null || _d === void 0 ? void 0 : _d.displayName;
5312
- const payoutStatus = getStatus(data);
5384
+ const payoutStatus = data ? getStatus(data) : null;
5385
+ useEffect(() => {
5386
+ const cb = () => refetch();
5387
+ window.addEventListener(VERIFF_COMPLETE_EVENT_KEY, cb);
5388
+ return () => {
5389
+ window.removeEventListener(VERIFF_COMPLETE_EVENT_KEY, cb);
5390
+ };
5391
+ }, []);
5313
5392
  return {
5314
5393
  states: {
5315
5394
  dateSubmitted,
@@ -5333,14 +5412,14 @@ const useTaxAndCashDashboard = (props) => {
5333
5412
  showNewFormDialog: showDialog,
5334
5413
  hasHold: !!((_m = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _m === void 0 ? void 0 : _m.hold),
5335
5414
  payoutStatus,
5336
- showVerifyIdentity: showVerification,
5415
+ veriffLoading,
5337
5416
  },
5338
5417
  callbacks: {
5339
5418
  onClick: () => setShowDialog(true),
5419
+ onVerifyClick: () => render(),
5340
5420
  onEditPayoutInfo,
5341
5421
  onNewFormCancel: () => setShowDialog(false),
5342
5422
  onNewFormClick,
5343
- onVerifyIdentityCancel: () => setShowVerification(false),
5344
5423
  },
5345
5424
  text: props.getTextProps(),
5346
5425
  };
@@ -5536,6 +5615,30 @@ const TaxAndCashDashboard = class {
5536
5615
  * @uiWidget textArea
5537
5616
  */
5538
5617
  this.verificationRequiredDescription = "Complete your verification to start receiving your cash rewards. It should only take a few minutes verify.";
5618
+ /**
5619
+ * @uiName Verification required internal alert header
5620
+ */
5621
+ this.verificationRequiredInternalHeader = "Identity Verification in Progress";
5622
+ /**
5623
+ * @uiName Verification required internal alert description
5624
+ */
5625
+ this.verificationRequiredInternalDescription = "Identity verification submission has been received. Our system is currently performing additional checks and analyzing the results. You will be updated shortley.";
5626
+ /**
5627
+ * @uiName Verification review internal alert header
5628
+ */
5629
+ this.verificationReviewInternalHeader = "Identity Verification Under Review";
5630
+ /**
5631
+ * @uiName Verification review internal alert description
5632
+ */
5633
+ this.verificationReviewInternalDescription = "Identity verification requires further review due to a potential error. Our team is reviewing the information and will update you shortly.";
5634
+ /**
5635
+ * @uiName Verification failed internal alert header
5636
+ */
5637
+ this.verificationFailedInternalHeader = "Identity Verification Unsuccessful";
5638
+ /**
5639
+ * @uiName Verification failed internal alert description
5640
+ */
5641
+ this.verificationFailedInternalDescription = "Identity verification has failed. Our team is reviewing the report and will contact you with further information.";
5539
5642
  /**
5540
5643
  * Part of the alert displayed at the top of the page when the user needs to verify their identity.
5541
5644
  * @uiName Verification required alert button text
@@ -5666,13 +5769,14 @@ function useDemoTaxAndCashDashboard(props) {
5666
5769
  hasHold: false,
5667
5770
  showVerifyIdentity: false,
5668
5771
  payoutStatus: "DONE",
5772
+ veriffLoading: false,
5669
5773
  },
5670
5774
  callbacks: {
5671
5775
  onClick: () => console.debug("check step"),
5672
5776
  onEditPayoutInfo: () => console.debug("payout info"),
5673
5777
  onNewFormCancel: () => console.log("hide"),
5674
5778
  onNewFormClick: () => console.log("show"),
5675
- onVerifyIdentityCancel: () => console.log("hide"),
5779
+ onVerifyClick: () => console.log("verify"),
5676
5780
  },
5677
5781
  text: props.getTextProps(),
5678
5782
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
@@ -17,7 +17,7 @@ import { i as isEmpty } from './utilities-443732be.js';
17
17
  import { A as AsYouType } from './AsYouType-46f67d0d.js';
18
18
  import { b as useDemoBigStat, V as useBigStat, B as BigStatView, Q as autoColorScaleCss, K as CardFeedView, j as CheckboxFieldView, M as CouponCodeView, D as DropdownFieldView, E as EditProfileView, H as HeroView, I as InputFieldView, W as withShadowView, L as LeaderboardView, N as NameFieldsView, d as PortalChangePasswordView, i as PortalFooterView, P as PortalFrameView, e as PortalLoginView, f as PortalRegisterView, R as ReferralIframeView, X as demoRewardExchange, k as RewardExchangeView, a as useShareButton, S as ShareButtonView, C as CopyTextView, u as useShareLink, c as StatContainerView, T as TaskCardView } from './ShadowViewAddon-69b61037.js';
19
19
  import './sqm-portal-container-view-6c582684.js';
20
- import { u as usePayoutStatus } from './usePayoutStatus-1a635054.js';
20
+ import { u as usePayoutStatus } from './usePayoutStatus-d613ff10.js';
21
21
 
22
22
  const BigStat = class {
23
23
  constructor(hostRef) {
@@ -1854,7 +1854,7 @@ function PayoutStatusAlertView(props) {
1854
1854
  icon: "info-circle",
1855
1855
  class: sheet$3.classes.InfoAlertContainer,
1856
1856
  };
1857
- case "VERIFICATION_NEEDED":
1857
+ case "VERIFICATION:REQUIRED":
1858
1858
  return {
1859
1859
  header: text.verificationRequiredHeader,
1860
1860
  description: text.verificationRequiredDescription,
@@ -1863,6 +1863,30 @@ function PayoutStatusAlertView(props) {
1863
1863
  icon: "exclamation-triangle",
1864
1864
  class: sheet$3.classes.WarningAlertContainer,
1865
1865
  };
1866
+ case "VERIFICATION:INTERNAL":
1867
+ return {
1868
+ header: text.verificationRequiredInternalHeader,
1869
+ description: text.verificationRequiredInternalDescription,
1870
+ alertType: "warning",
1871
+ icon: "exclamation-triangle",
1872
+ class: sheet$3.classes.WarningAlertContainer,
1873
+ };
1874
+ case "VERIFICATION:REVIEW":
1875
+ return {
1876
+ header: text.verificationReviewInternalHeader,
1877
+ description: text.verificationReviewInternalDescription,
1878
+ alertType: "warning",
1879
+ icon: "exclamation-triangle",
1880
+ class: sheet$3.classes.WarningAlertContainer,
1881
+ };
1882
+ case "VERIFICATION:FAILED":
1883
+ return {
1884
+ header: text.verificationFailedInternalHeader,
1885
+ description: text.verificationFailedInternalDescription,
1886
+ alertType: "critical",
1887
+ icon: "exclamation-octagon",
1888
+ class: sheet$3.classes.ErrorAlertContainer,
1889
+ };
1866
1890
  case "HOLD":
1867
1891
  return {
1868
1892
  header: text.holdHeader,
@@ -1876,15 +1900,12 @@ function PayoutStatusAlertView(props) {
1876
1900
  return;
1877
1901
  }
1878
1902
  }
1879
- //AL: TODO hookup ID
1880
1903
  function getButton(status) {
1881
1904
  switch (status) {
1882
1905
  case "INFORMATION_REQUIRED":
1883
1906
  return data.type === "SquatchJS2" ? (h$1("sqm-scroll", { "scroll-tag-name": "sqm-tabs", "button-text": text.informationRequiredButtonText, "scroll-animation": "smooth" })) : data.type === "SquatchPortal" ? (h$1("sl-button", { type: "default", onClick: callbacks.onTermsClick }, text.informationRequiredButtonText)) : (h$1("sl-button", { type: "default" }, text.informationRequiredButtonText));
1884
- case "VERIFICATION_NEEDED":
1885
- return (h$1("sl-button", { type: "default", loading: states.loading,
1886
- //AL: TODO callback to open verification form
1887
- onClick: () => callbacks.onClick }, text.verificationRequiredButtonText));
1907
+ case "VERIFICATION:REQUIRED":
1908
+ return (h$1("sl-button", { type: "default", loading: states.veriffLoading, onClick: callbacks.onClick }, text.verificationRequiredButtonText));
1888
1909
  default:
1889
1910
  return;
1890
1911
  }
@@ -1895,11 +1916,7 @@ function PayoutStatusAlertView(props) {
1895
1916
  h$1("sl-icon", { slot: "icon", name: (_c = getAlert(states.status)) === null || _c === void 0 ? void 0 : _c.icon }),
1896
1917
  h$1("strong", null, (_d = getAlert(states.status)) === null || _d === void 0 ? void 0 : _d.header),
1897
1918
  h$1("p", { class: sheet$3.classes.AlertDescriptionText }, (_e = getAlert(states.status)) === null || _e === void 0 ? void 0 : _e.description),
1898
- getButton(states.status)),
1899
- h$1("sl-dialog", { noDismiss: true, class: sheet$3.classes.Dialog, open: states.showVerifyIdentity, "onSl-hide": callbacks.onCancel },
1900
- h$1("iframe", {
1901
- // AL: TODO replace iframe URL with verification url when available
1902
- scrolling: "yes", frameBorder: "0", width: "100%", height: "100%", src: "https://impacttech.complytaxforms.com/ServiceRedirect.aspx?Language=eng&Param1=UxBORV4bOIrqNb4gbpNmtvW3wjdZJyx4gPElIGMJNR8=&UUID=B576EA3E-80FD-4D85-AA59-653D23A7CCE8" }))));
1919
+ getButton(states.status))));
1903
1920
  }
1904
1921
 
1905
1922
  const PayoutStatusAlert = class {
@@ -1929,14 +1946,39 @@ const PayoutStatusAlert = class {
1929
1946
  * @uiName Verification required alert button text
1930
1947
  */
1931
1948
  this.verificationRequiredButtonText = "Start Verification";
1949
+ /**
1950
+ * @uiName Verification required internal alert header
1951
+ */
1952
+ this.verificationRequiredInternalHeader = "Identity Verification in Progress";
1953
+ /**
1954
+ * @uiName Verification required internal alert description
1955
+ */
1956
+ this.verificationRequiredInternalDescription = "Identity verification submission has been received. Our system is currently performing additional checks and analyzing the results. You will be updated shortley.";
1957
+ /**
1958
+ * @uiName Verification review internal alert header
1959
+ */
1960
+ this.verificationReviewInternalHeader = "Identity Verification Under Review";
1961
+ /**
1962
+ * @uiName Verification review internal alert description
1963
+ */
1964
+ this.verificationReviewInternalDescription = "Identity verification requires further review due to a potential error. Our team is reviewing the information and will update you shortly.";
1965
+ /**
1966
+ * @uiName Verification failed internal alert header
1967
+ */
1968
+ this.verificationFailedInternalHeader = "Identity Verification Unsuccessful";
1969
+ /**
1970
+ * @uiName Verification failed internal alert description
1971
+ */
1972
+ this.verificationFailedInternalDescription = "Identity verification has failed. Our team is reviewing the report and will contact you with further information.";
1932
1973
  /**
1933
1974
  * @uiName Payout on hold alert header
1934
1975
  */
1935
1976
  this.holdHeader = "Your payouts and account are on hold";
1936
1977
  /**
1937
1978
  * @uiName Payout on hold alert description
1979
+ * AL: TODO copy not finalized for support section
1938
1980
  */
1939
- this.holdDescription = "Please check your inbox for an email from our referral provider, impact.com. It contains details on how to resolve this issue. If you need further assistance, feel free to reach out to {support email}.";
1981
+ this.holdDescription = "Please check your inbox for an email from our referral provider, impact.com. It contains details on how to resolve this issue. If you need further assistance, feel free to reach out to our support team.";
1940
1982
  /**
1941
1983
  * @uiName Cash & Payouts Terms and Conditions url
1942
1984
  */
@@ -1959,7 +2001,6 @@ const PayoutStatusAlert = class {
1959
2001
  const props = isDemo()
1960
2002
  ? useDemoPayoutStatusAlert(this)
1961
2003
  : usePayoutStatus(this);
1962
- console.log({ props });
1963
2004
  return h$1(PayoutStatusAlertView, Object.assign({}, props));
1964
2005
  }
1965
2006
  };
@@ -1976,7 +2017,6 @@ function useDemoPayoutStatusAlert(props) {
1976
2017
  callbacks: {
1977
2018
  onTermsClick: () => { },
1978
2019
  onClick: () => console.log("show"),
1979
- onCancel: () => console.log("hide"),
1980
2020
  },
1981
2021
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
1982
2022
  }
@@ -8,14 +8,14 @@ import { c as createStyleSheet } from './JSS-67b5cff8.js';
8
8
  import { g as getProps } from './utils-334c1e34.js';
9
9
  import { T as TextSpanView } from './sqm-text-span-view-8d140661.js';
10
10
  import { a as VERIFICATION_EMAIL_NAMESPACE, S as SHOW_CODE_NAMESPACE, V as VERIFICATION_PARENT_NAMESPACE } from './keys-db1897ae.js';
11
- import { u as useVerificationEmail } from './useVerificationEmail-c32696ba.js';
11
+ import { u as useVerificationEmail } from './useVerificationEmail-2a21d0e3.js';
12
12
 
13
13
  const style = {
14
14
  Wrapper: {
15
15
  display: "flex",
16
16
  flexDirection: "column",
17
17
  gap: "var(--sl-spacing-medium)",
18
- maxWidth: "515px",
18
+ maxWidth: "550px",
19
19
  },
20
20
  HeaderContainer: {
21
21
  display: "flex",
@@ -154,7 +154,7 @@ function useWidgetCodeVerification(props) {
154
154
  const [codeRef, setCodeRef] = useState(null);
155
155
  const [validationError, setValidationError] = useState(false);
156
156
  const [emailError, setEmailError] = useState(false);
157
- const { initialized, send: [sendEmail, { loading: sendLoading, errors: sendErrors }], verify: [verifyEmail, { loading: verifyLoading, errors: verifyErrors }], } = useVerificationEmail();
157
+ const { initialized, verificationEmail, send: [sendEmail, { loading: sendLoading, errors: sendErrors }], verify: [verifyEmail, { loading: verifyLoading, errors: verifyErrors }], } = useVerificationEmail();
158
158
  useEffect(() => {
159
159
  if (!codeRef)
160
160
  return;
@@ -174,7 +174,7 @@ function useWidgetCodeVerification(props) {
174
174
  if (!input)
175
175
  return;
176
176
  if (idx === codeElements.length - 1) {
177
- e.target.value = input.slice(-1);
177
+ e.target.value = input.slice(0, 1);
178
178
  return;
179
179
  }
180
180
  if (input.length > 1) {
@@ -245,7 +245,7 @@ function useWidgetCodeVerification(props) {
245
245
  codeWrapperRef: setCodeRef,
246
246
  },
247
247
  states: {
248
- email,
248
+ email: verificationEmail,
249
249
  emailResent,
250
250
  resendError: sendErrors || verifyErrors,
251
251
  initialiseLoading: !initialized,
@@ -6,7 +6,7 @@ import { c as createStyleSheet } from './JSS-67b5cff8.js';
6
6
  import { g as getProps } from './utils-334c1e34.js';
7
7
  import { T as TextSpanView } from './sqm-text-span-view-8d140661.js';
8
8
  import { S as SHOW_CODE_NAMESPACE, a as VERIFICATION_EMAIL_NAMESPACE } from './keys-db1897ae.js';
9
- import { u as useVerificationEmail } from './useVerificationEmail-c32696ba.js';
9
+ import { u as useVerificationEmail } from './useVerificationEmail-2a21d0e3.js';
10
10
 
11
11
  const UpsertUserEmailMutation = dist.gql `
12
12
  mutation upsertUser($userInput: UserInput!) {