@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
@@ -16,9 +16,9 @@ const useChildElements = require('./useChildElements-410d2435.js');
16
16
  const luxon = require('./luxon-05098e19.js');
17
17
  const useReferralTable = require('./useReferralTable-824ac152.js');
18
18
  const utils = require('./utils-6847bc06.js');
19
- const sqmInvoiceTableView = require('./sqm-invoice-table-view-c58966f8.js');
19
+ const sqmInvoiceTableView = require('./sqm-invoice-table-view-e92c557a.js');
20
20
  const keys = require('./keys-cff24974.js');
21
- const usePayoutStatus = require('./usePayoutStatus-b9fb7399.js');
21
+ const usePayoutStatus = require('./usePayoutStatus-5ac536a3.js');
22
22
  const extractProps = require('./extractProps-fd93ba62.js');
23
23
 
24
24
  const TAX_CONTEXT_NAMESPACE = "sq:tax-and-cash";
@@ -1146,6 +1146,8 @@ function useBankingInfoForm(props) {
1146
1146
  });
1147
1147
  return;
1148
1148
  }
1149
+ // Fire form change event
1150
+ window.dispatchEvent(new Event(usePayoutStatus.TAX_FORM_UPDATED_EVENT_KEY));
1149
1151
  await refetch();
1150
1152
  setStep("/dashboard");
1151
1153
  }
@@ -1188,7 +1190,8 @@ function useBankingInfoForm(props) {
1188
1190
  });
1189
1191
  setShowVerification(false);
1190
1192
  }
1191
- await runMutation(formData, token);
1193
+ if (token)
1194
+ await runMutation(formData, token);
1192
1195
  };
1193
1196
  const onVerification = async (token) => {
1194
1197
  host.dispatchEvent(new CustomEvent(keys.VERIFICATION_EVENT_KEY, {
@@ -1221,6 +1224,7 @@ function useBankingInfoForm(props) {
1221
1224
  onBack: () => setStep("/dashboard"),
1222
1225
  setCountrySearch,
1223
1226
  onVerification,
1227
+ onVerificationHide: () => onVerification(null),
1224
1228
  },
1225
1229
  states: {
1226
1230
  showVerification,
@@ -1554,23 +1558,41 @@ const BankingInfoForm = class {
1554
1558
  bitset: props.states.bitset,
1555
1559
  formMap,
1556
1560
  });
1557
- const searchStyle = {
1561
+ const style = {
1562
+ Dialog: {
1563
+ "&::part(panel)": {
1564
+ maxWidth: "420px",
1565
+ },
1566
+ "&::part(close-button)": {
1567
+ marginBottom: "var(--sl-spacing-xx-large)",
1568
+ },
1569
+ "&::part(body)": {
1570
+ padding: "0 var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",
1571
+ fontSize: "var(--sl-font-size-small)",
1572
+ },
1573
+ "&::part(footer)": {
1574
+ display: "flex",
1575
+ flexDirection: "column",
1576
+ gap: "var(--sl-spacing-small)",
1577
+ marginBottom: "var(--sl-spacing-xx-small)",
1578
+ alignItems: "center",
1579
+ flex: "1",
1580
+ },
1581
+ },
1558
1582
  SearchInput: {
1559
1583
  padding: "var(--sl-spacing-x-small)",
1560
1584
  },
1561
1585
  };
1562
- if (props.states.isPartner && props.states.showVerification) {
1563
- return (index.h("sqm-code-verification", { onVerification: props.callbacks.onVerification }));
1564
- }
1565
- return (index.h(index.Host, null, index.h(BankingInfoFormView, { callbacks: props.callbacks, text: props.text, states: props.states, refs: props.refs, slots: {
1586
+ const sheet = JSS.createStyleSheet(style);
1587
+ return (index.h(index.Host, null, props.states.isPartner && props.states.showVerification ? (index.h("sl-dialog", { class: sheet.classes.Dialog, open: true, "onSl-hide": props.callbacks.onVerificationHide }, index.h("sqm-code-verification", { onVerification: props.callbacks.onVerification }))) : null, index.h(BankingInfoFormView, { callbacks: props.callbacks, text: props.text, states: props.states, refs: props.refs, slots: {
1566
1588
  formInputsSlot: inputFields === null || inputFields === void 0 ? void 0 : inputFields.map(({ input }) => input),
1567
- countryInputSlot: (index.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) && {
1589
+ countryInputSlot: (index.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) && {
1568
1590
  class: "error-input",
1569
1591
  helpText: getValidationErrorMessage({
1570
1592
  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,
1571
1593
  label: props.text.bankLocationLabel,
1572
1594
  }),
1573
- })), index.h("sl-input", { class: searchStyle.SearchInput, placeholder: this.searchForCountryText, onKeyDown: (e) => {
1595
+ })), index.h("sl-input", { disabled: props.states.saveLoading, class: sheet.classes.SearchInput, placeholder: this.searchForCountryText, onKeyDown: (e) => {
1574
1596
  // Stop shoelace intercepting key presses
1575
1597
  e.stopPropagation();
1576
1598
  }, "onSl-input": (e) => {
@@ -1581,21 +1603,21 @@ const BankingInfoForm = class {
1581
1603
  }), (_f = (_e = props.states) === null || _e === void 0 ? void 0 : _e.allCountries) === null || _f === void 0 ? void 0 :
1582
1604
  _f.map((c) => (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName))))),
1583
1605
  paymentMethodSlot: (index.h("sl-input", { key: "paymentMethod", label: props.text.paymentMethod, placeholder: props.states.paymentMethodFeeLabel, disabled: true })),
1584
- paymentThresholdSelectSlot: (index.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) && {
1606
+ paymentThresholdSelectSlot: (index.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) && {
1585
1607
  class: "error-input",
1586
1608
  helpText: getValidationErrorMessage({
1587
1609
  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,
1588
1610
  label: props.text.paymentThresholdSelectLabel,
1589
1611
  }),
1590
1612
  })), props.states.thresholds.map((t) => (index.h("sl-menu-item", { value: t }, `${props.states.currency}${t}`))))),
1591
- paymentFixedDaySelectSlot: (index.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) && {
1613
+ paymentFixedDaySelectSlot: (index.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) && {
1592
1614
  class: "error-input",
1593
1615
  helpText: getValidationErrorMessage({
1594
1616
  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,
1595
1617
  label: props.text.paymentDaySelectLabel,
1596
1618
  }),
1597
1619
  })), index.h("sl-menu-item", { value: "1" }, props.text.paymentDayFirstOfMonthLabelText), index.h("sl-menu-item", { value: "15" }, props.text.paymentDayFifteenthOfMonthLabelText))),
1598
- paypalInputSlot: (index.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) && {
1620
+ paypalInputSlot: (index.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) && {
1599
1621
  class: "error-input",
1600
1622
  helpText: getValidationErrorMessage({
1601
1623
  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,
@@ -1686,6 +1708,7 @@ function useDemoBankingInfoForm(props) {
1686
1708
  hasPayPal: true,
1687
1709
  },
1688
1710
  callbacks: {
1711
+ onVerificationHide: () => { },
1689
1712
  onSubmit: async () => {
1690
1713
  setStep("/dashboard");
1691
1714
  },
@@ -1800,6 +1823,8 @@ function useDocusignForm(props) {
1800
1823
  // @ts-expect-error: no data type for result
1801
1824
  if (!result.completeImpactPublisherTaxDocument.success)
1802
1825
  throw new Error();
1826
+ // Fire form change event
1827
+ window.dispatchEvent(new Event(usePayoutStatus.TAX_FORM_UPDATED_EVENT_KEY));
1803
1828
  setShowExitButton(true);
1804
1829
  }
1805
1830
  catch (e) {
@@ -2680,6 +2705,8 @@ function useIndirectTaxForm(props) {
2680
2705
  const resultPublisher = (_e = (_d = (_c = result
2681
2706
  .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;
2682
2707
  const hasValidCurrentDocument = sqmInvoiceTableView.validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
2708
+ // Fire form change event
2709
+ window.dispatchEvent(new Event(usePayoutStatus.TAX_FORM_UPDATED_EVENT_KEY));
2683
2710
  if ((resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) &&
2684
2711
  !hasValidCurrentDocument) {
2685
2712
  // Go to docusign form
@@ -3612,11 +3639,6 @@ function PayoutDetailsCardView(props) {
3612
3639
  });
3613
3640
  return (index.h("div", { class: classes.Container },
3614
3641
  index.h("style", { type: "text/css" }, styleString),
3615
- states.error && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", class: classes.Alert, type: "warning", open: true },
3616
- index.h("sl-icon", { slot: "icon", name: "exclamation-triangle" }),
3617
- index.h("div", { class: classes.AlertContent },
3618
- index.h("b", null, text.error.errorTitleText),
3619
- text.error.errorDescriptionText))),
3620
3642
  states.loading ? (renderLoadingSkeleton()) : (index.h("div", { class: classes.CardContainer },
3621
3643
  index.h("div", { class: classes.StatusContainer },
3622
3644
  index.h("p", { class: classes.SubduedRegularText }, states.badgeStatus === "thresholdPayout"
@@ -3712,16 +3734,6 @@ const PayoutDetailsCard = class {
3712
3734
  * @uiName Bank account field label
3713
3735
  */
3714
3736
  this.accountText = "Account";
3715
- /**
3716
- * Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
3717
- * @uiName Payout error message title
3718
- */
3719
- this.errorTitleText = "Your payout is on hold ";
3720
- /**
3721
- * Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
3722
- * @uiName Payout error message description
3723
- */
3724
- 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.";
3725
3737
  /**
3726
3738
  * Text displayed for existing publishers that do not have saved banking information.
3727
3739
  * @uiName Payout missing information subtext
@@ -3734,10 +3746,6 @@ const PayoutDetailsCard = class {
3734
3746
  const props = utils.getProps(this);
3735
3747
  return {
3736
3748
  ...props,
3737
- error: {
3738
- errorTitleText: this.errorTitleText,
3739
- errorDescriptionText: this.errorDescriptionText,
3740
- },
3741
3749
  };
3742
3750
  }
3743
3751
  render() {
@@ -4906,17 +4914,43 @@ function useDemoTaxAndCash(props) {
4906
4914
  }
4907
4915
 
4908
4916
  const style$5 = {
4909
- WarningAlertContainer: {
4917
+ ErrorAlertContainer: {
4910
4918
  "&::part(base)": {
4911
4919
  backgroundColor: "var(--sl-color-red-100)",
4912
4920
  borderTop: "none",
4913
4921
  },
4922
+ "& sl-icon::part(base)": {
4923
+ color: "var(--sl-color-danger-500)",
4924
+ },
4925
+ },
4926
+ WarningAlertContainer: {
4927
+ "&::part(base)": {
4928
+ backgroundColor: "var(--sl-color-yellow-100)",
4929
+ borderTop: "none",
4930
+ },
4931
+ "& sl-icon::part(base)": {
4932
+ color: "var(--sl-color-warning-500)",
4933
+ },
4934
+ },
4935
+ WarningHoldAlertContainer: {
4936
+ marginLeft: "-20px",
4937
+ "&::part(base)": {
4938
+ border: "none",
4939
+ backgroundColor: "transparent",
4940
+ },
4941
+ "& sl-icon::part(base)": {
4942
+ color: "var(--sl-color-warning-500)",
4943
+ },
4914
4944
  },
4915
- HoldAlertContainer: {
4945
+ ErrorHoldAlertContainer: {
4946
+ marginLeft: "-20px",
4916
4947
  "&::part(base)": {
4917
4948
  border: "none",
4918
4949
  backgroundColor: "transparent",
4919
4950
  },
4951
+ "& sl-icon::part(base)": {
4952
+ color: "var(--sl-color-danger-500)",
4953
+ },
4920
4954
  },
4921
4955
  ExpiringSoonAlertContainer: {
4922
4956
  "&::part(base)": {
@@ -5037,6 +5071,7 @@ const style$5 = {
5037
5071
  PageDescriptionText: {
5038
5072
  color: "var(--sl-color-neutral-500)",
5039
5073
  fontSize: "var(--sl-font-size-medium)",
5074
+ marginTop: "0",
5040
5075
  },
5041
5076
  Dialog: {
5042
5077
  "&::part(panel)": {
@@ -5069,8 +5104,56 @@ const style$5 = {
5069
5104
  const sheet$4 = JSS.createStyleSheet(style$5);
5070
5105
  const styleString$4 = sheet$4.toString();
5071
5106
  const TaxAndCashDashboardView = (props) => {
5072
- var _a;
5107
+ var _a, _b, _c, _d;
5073
5108
  const { states, text, callbacks, slots } = props;
5109
+ function getAlert(status) {
5110
+ switch (status) {
5111
+ case "VERIFICATION:REQUIRED":
5112
+ return {
5113
+ header: text.verificationRequiredHeader,
5114
+ description: text.verificationRequiredDescription,
5115
+ buttonText: text.verificationRequiredButtonText,
5116
+ alertType: "warning",
5117
+ icon: "exclamation-triangle",
5118
+ class: sheet$4.classes.WarningHoldAlertContainer,
5119
+ };
5120
+ case "VERIFICATION:INTERNAL":
5121
+ return {
5122
+ header: text.verificationRequiredInternalHeader,
5123
+ description: text.verificationRequiredInternalDescription,
5124
+ alertType: "warning",
5125
+ icon: "exclamation-triangle",
5126
+ class: sheet$4.classes.WarningHoldAlertContainer,
5127
+ };
5128
+ case "VERIFICATION:REVIEW":
5129
+ return {
5130
+ header: text.verificationReviewInternalHeader,
5131
+ description: text.verificationReviewInternalDescription,
5132
+ alertType: "warning",
5133
+ icon: "exclamation-triangle",
5134
+ class: sheet$4.classes.WarningHoldAlertContainer,
5135
+ };
5136
+ case "VERIFICATION:FAILED":
5137
+ return {
5138
+ header: text.verificationFailedInternalHeader,
5139
+ description: text.verificationFailedInternalDescription,
5140
+ alertType: "critical",
5141
+ icon: "exclamation-octagon",
5142
+ class: sheet$4.classes.ErrorHoldAlertContainer,
5143
+ };
5144
+ case "HOLD":
5145
+ return {
5146
+ header: text.payoutHoldAlertHeader,
5147
+ description: text.payoutHoldAlertDescription,
5148
+ buttonText: null,
5149
+ alertType: "warning",
5150
+ icon: "exclamation-triangle",
5151
+ class: sheet$4.classes.WarningHoldAlertContainer,
5152
+ };
5153
+ default:
5154
+ return;
5155
+ }
5156
+ }
5074
5157
  const statusMap = {
5075
5158
  NOT_VERIFIED: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
5076
5159
  index.h("sl-badge", { type: "warning", pill: true }, text.statusTextNotVerified),
@@ -5095,7 +5178,7 @@ const TaxAndCashDashboardView = (props) => {
5095
5178
  index.h("p", null, text.invalidForm))),
5096
5179
  };
5097
5180
  const alertMap = {
5098
- INACTIVE: (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.WarningAlertContainer },
5181
+ INACTIVE: (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.ErrorAlertContainer },
5099
5182
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
5100
5183
  index.h("strong", null, global.intl.formatMessage({
5101
5184
  id: `taxAlertHeaderNotActive`,
@@ -5147,39 +5230,28 @@ const TaxAndCashDashboardView = (props) => {
5147
5230
  index.h("div", null,
5148
5231
  index.h("style", { type: "text/css" }, styleString$4),
5149
5232
  states.loadingError && (index.h("div", null,
5150
- index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.WarningAlertContainer },
5233
+ index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.ErrorAlertContainer },
5151
5234
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
5152
5235
  index.h("strong", null, text.error.loadingErrorAlertHeader),
5153
5236
  index.h("br", null),
5154
5237
  text.error.loadingErrorAlertDescription))),
5155
- ((_a = states.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.WarningAlertContainer },
5238
+ ((_a = states.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.ErrorAlertContainer },
5156
5239
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
5157
5240
  index.h("strong", null, text.error.generalTitle),
5158
5241
  index.h("br", null),
5159
5242
  text.error.generalDescription)),
5160
- states.hasHold && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$4.classes.HoldAlertContainer },
5161
- index.h("sl-icon", { slot: "icon", name: "exclamation-triangle" }),
5162
- index.h("strong", null, text.payoutHoldAlertHeader),
5163
- index.h("br", null),
5164
- text.payoutHoldAlertDescription)),
5165
- states.payoutStatus === "VERIFICATION_NEEDED" && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$4.classes.HoldAlertContainer },
5166
- index.h("sl-icon", { slot: "icon", name: "exclamation-triangle" }),
5167
- index.h("strong", null, text.verificationRequiredHeader),
5168
- index.h("p", { style: { margin: "0" } }, text.verificationRequiredDescription),
5169
- index.h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", loading: states.loading,
5170
- //AL: TODO hooks
5171
- onClick: () => callbacks.onClick }, text.verificationRequiredButtonText))),
5172
- index.h("sl-dialog", { noDismiss: true, class: sheet$4.classes.Dialog, open: states.showVerifyIdentity, "onSl-hide": callbacks.onVerifyIdentityCancel },
5173
- index.h("iframe", {
5174
- // AL: TODO replace iframe URL with verification url when available
5175
- 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" })),
5243
+ getAlert(states.payoutStatus) && (index.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 },
5244
+ index.h("sl-icon", { slot: "icon", name: (_d = getAlert(states.payoutStatus)) === null || _d === void 0 ? void 0 : _d.icon }),
5245
+ index.h("strong", null, getAlert(states.payoutStatus).header),
5246
+ index.h("p", { style: { margin: "0" } }, getAlert(states.payoutStatus).description),
5247
+ getAlert(states.payoutStatus).buttonText && (index.h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", loading: states.veriffLoading, onClick: () => callbacks.onVerifyClick() }, getAlert(states.payoutStatus).buttonText)))),
5176
5248
  index.h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$4.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
5177
5249
  index.h("p", null, text.replaceTaxFormModalBodyText),
5178
5250
  index.h("sl-button", { slot: "footer", type: "primary", class: sheet$4.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
5179
5251
  index.h("sl-button", { slot: "footer", type: "default", class: sheet$4.classes.DialogButton, onClick: callbacks.onNewFormCancel }, text.cancelButton)),
5180
5252
  states.status === "INACTIVE" && alertMap[states.status],
5181
5253
  index.h("div", null,
5182
- index.h("h3", null, text.bankingInformationSectionHeader),
5254
+ index.h("h3", { style: { marginBottom: "0" } }, text.bankingInformationSectionHeader),
5183
5255
  index.h("p", { class: sheet$4.classes.PageDescriptionText }, text.taxAndPayoutsDescription),
5184
5256
  index.h("div", { class: sheet$4.classes.BankingInformationContainer },
5185
5257
  slots.payoutDetailsCardSlot,
@@ -5282,13 +5354,13 @@ const useTaxAndCashDashboard = (props) => {
5282
5354
  const setStep = index_module.Sn(TAX_CONTEXT_NAMESPACE);
5283
5355
  const setContext = index_module.Sn(TAX_FORM_CONTEXT_NAMESPACE);
5284
5356
  const [showDialog, setShowDialog] = stencilHooks_module.useState(false);
5285
- const [showVerification, setShowVerification] = stencilHooks_module.useState(false);
5357
+ const { render, loading: veriffLoading, errors: veriffErrors, } = usePayoutStatus.useVeriffApp();
5286
5358
  const locale = index_module.Q();
5287
5359
  stencilHooks_module.useEffect(() => {
5288
5360
  // Clear override context once on submitted
5289
5361
  setContext({});
5290
5362
  }, []);
5291
- const { data, loading, errors: userError, } = index_module.qn(USER_QUERY_NAMESPACE);
5363
+ const { data, loading, errors: userError, refetch, } = index_module.qn(USER_QUERY_NAMESPACE);
5292
5364
  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;
5293
5365
  const documentType = publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType;
5294
5366
  const submissionDate = (_c = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _c === void 0 ? void 0 : _c.dateCreated;
@@ -5313,7 +5385,14 @@ const useTaxAndCashDashboard = (props) => {
5313
5385
  setStep("/3");
5314
5386
  };
5315
5387
  const provinceName = (_d = sqmInvoiceTableView.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;
5316
- const payoutStatus = usePayoutStatus.getStatus(data);
5388
+ const payoutStatus = data ? usePayoutStatus.getStatus(data) : null;
5389
+ stencilHooks_module.useEffect(() => {
5390
+ const cb = () => refetch();
5391
+ window.addEventListener(usePayoutStatus.VERIFF_COMPLETE_EVENT_KEY, cb);
5392
+ return () => {
5393
+ window.removeEventListener(usePayoutStatus.VERIFF_COMPLETE_EVENT_KEY, cb);
5394
+ };
5395
+ }, []);
5317
5396
  return {
5318
5397
  states: {
5319
5398
  dateSubmitted,
@@ -5337,14 +5416,14 @@ const useTaxAndCashDashboard = (props) => {
5337
5416
  showNewFormDialog: showDialog,
5338
5417
  hasHold: !!((_m = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _m === void 0 ? void 0 : _m.hold),
5339
5418
  payoutStatus,
5340
- showVerifyIdentity: showVerification,
5419
+ veriffLoading,
5341
5420
  },
5342
5421
  callbacks: {
5343
5422
  onClick: () => setShowDialog(true),
5423
+ onVerifyClick: () => render(),
5344
5424
  onEditPayoutInfo,
5345
5425
  onNewFormCancel: () => setShowDialog(false),
5346
5426
  onNewFormClick,
5347
- onVerifyIdentityCancel: () => setShowVerification(false),
5348
5427
  },
5349
5428
  text: props.getTextProps(),
5350
5429
  };
@@ -5540,6 +5619,30 @@ const TaxAndCashDashboard = class {
5540
5619
  * @uiWidget textArea
5541
5620
  */
5542
5621
  this.verificationRequiredDescription = "Complete your verification to start receiving your cash rewards. It should only take a few minutes verify.";
5622
+ /**
5623
+ * @uiName Verification required internal alert header
5624
+ */
5625
+ this.verificationRequiredInternalHeader = "Identity Verification in Progress";
5626
+ /**
5627
+ * @uiName Verification required internal alert description
5628
+ */
5629
+ this.verificationRequiredInternalDescription = "Identity verification submission has been received. Our system is currently performing additional checks and analyzing the results. You will be updated shortley.";
5630
+ /**
5631
+ * @uiName Verification review internal alert header
5632
+ */
5633
+ this.verificationReviewInternalHeader = "Identity Verification Under Review";
5634
+ /**
5635
+ * @uiName Verification review internal alert description
5636
+ */
5637
+ this.verificationReviewInternalDescription = "Identity verification requires further review due to a potential error. Our team is reviewing the information and will update you shortly.";
5638
+ /**
5639
+ * @uiName Verification failed internal alert header
5640
+ */
5641
+ this.verificationFailedInternalHeader = "Identity Verification Unsuccessful";
5642
+ /**
5643
+ * @uiName Verification failed internal alert description
5644
+ */
5645
+ this.verificationFailedInternalDescription = "Identity verification has failed. Our team is reviewing the report and will contact you with further information.";
5543
5646
  /**
5544
5647
  * Part of the alert displayed at the top of the page when the user needs to verify their identity.
5545
5648
  * @uiName Verification required alert button text
@@ -5670,13 +5773,14 @@ function useDemoTaxAndCashDashboard(props) {
5670
5773
  hasHold: false,
5671
5774
  showVerifyIdentity: false,
5672
5775
  payoutStatus: "DONE",
5776
+ veriffLoading: false,
5673
5777
  },
5674
5778
  callbacks: {
5675
5779
  onClick: () => console.debug("check step"),
5676
5780
  onEditPayoutInfo: () => console.debug("payout info"),
5677
5781
  onNewFormCancel: () => console.log("hide"),
5678
5782
  onNewFormClick: () => console.log("show"),
5679
- onVerifyIdentityCancel: () => console.log("hide"),
5783
+ onVerifyClick: () => console.log("verify"),
5680
5784
  },
5681
5785
  text: props.getTextProps(),
5682
5786
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
@@ -21,7 +21,7 @@ const utilities = require('./utilities-f7de6c04.js');
21
21
  const AsYouType = require('./AsYouType-6788393a.js');
22
22
  const ShadowViewAddon = require('./ShadowViewAddon-040cffad.js');
23
23
  require('./sqm-portal-container-view-990a85a3.js');
24
- const usePayoutStatus = require('./usePayoutStatus-b9fb7399.js');
24
+ const usePayoutStatus = require('./usePayoutStatus-5ac536a3.js');
25
25
 
26
26
  const BigStat = class {
27
27
  constructor(hostRef) {
@@ -1858,7 +1858,7 @@ function PayoutStatusAlertView(props) {
1858
1858
  icon: "info-circle",
1859
1859
  class: sheet$3.classes.InfoAlertContainer,
1860
1860
  };
1861
- case "VERIFICATION_NEEDED":
1861
+ case "VERIFICATION:REQUIRED":
1862
1862
  return {
1863
1863
  header: text.verificationRequiredHeader,
1864
1864
  description: text.verificationRequiredDescription,
@@ -1867,6 +1867,30 @@ function PayoutStatusAlertView(props) {
1867
1867
  icon: "exclamation-triangle",
1868
1868
  class: sheet$3.classes.WarningAlertContainer,
1869
1869
  };
1870
+ case "VERIFICATION:INTERNAL":
1871
+ return {
1872
+ header: text.verificationRequiredInternalHeader,
1873
+ description: text.verificationRequiredInternalDescription,
1874
+ alertType: "warning",
1875
+ icon: "exclamation-triangle",
1876
+ class: sheet$3.classes.WarningAlertContainer,
1877
+ };
1878
+ case "VERIFICATION:REVIEW":
1879
+ return {
1880
+ header: text.verificationReviewInternalHeader,
1881
+ description: text.verificationReviewInternalDescription,
1882
+ alertType: "warning",
1883
+ icon: "exclamation-triangle",
1884
+ class: sheet$3.classes.WarningAlertContainer,
1885
+ };
1886
+ case "VERIFICATION:FAILED":
1887
+ return {
1888
+ header: text.verificationFailedInternalHeader,
1889
+ description: text.verificationFailedInternalDescription,
1890
+ alertType: "critical",
1891
+ icon: "exclamation-octagon",
1892
+ class: sheet$3.classes.ErrorAlertContainer,
1893
+ };
1870
1894
  case "HOLD":
1871
1895
  return {
1872
1896
  header: text.holdHeader,
@@ -1880,15 +1904,12 @@ function PayoutStatusAlertView(props) {
1880
1904
  return;
1881
1905
  }
1882
1906
  }
1883
- //AL: TODO hookup ID
1884
1907
  function getButton(status) {
1885
1908
  switch (status) {
1886
1909
  case "INFORMATION_REQUIRED":
1887
1910
  return data.type === "SquatchJS2" ? (index.h("sqm-scroll", { "scroll-tag-name": "sqm-tabs", "button-text": text.informationRequiredButtonText, "scroll-animation": "smooth" })) : data.type === "SquatchPortal" ? (index.h("sl-button", { type: "default", onClick: callbacks.onTermsClick }, text.informationRequiredButtonText)) : (index.h("sl-button", { type: "default" }, text.informationRequiredButtonText));
1888
- case "VERIFICATION_NEEDED":
1889
- return (index.h("sl-button", { type: "default", loading: states.loading,
1890
- //AL: TODO callback to open verification form
1891
- onClick: () => callbacks.onClick }, text.verificationRequiredButtonText));
1911
+ case "VERIFICATION:REQUIRED":
1912
+ return (index.h("sl-button", { type: "default", loading: states.veriffLoading, onClick: callbacks.onClick }, text.verificationRequiredButtonText));
1892
1913
  default:
1893
1914
  return;
1894
1915
  }
@@ -1899,11 +1920,7 @@ function PayoutStatusAlertView(props) {
1899
1920
  index.h("sl-icon", { slot: "icon", name: (_c = getAlert(states.status)) === null || _c === void 0 ? void 0 : _c.icon }),
1900
1921
  index.h("strong", null, (_d = getAlert(states.status)) === null || _d === void 0 ? void 0 : _d.header),
1901
1922
  index.h("p", { class: sheet$3.classes.AlertDescriptionText }, (_e = getAlert(states.status)) === null || _e === void 0 ? void 0 : _e.description),
1902
- getButton(states.status)),
1903
- index.h("sl-dialog", { noDismiss: true, class: sheet$3.classes.Dialog, open: states.showVerifyIdentity, "onSl-hide": callbacks.onCancel },
1904
- index.h("iframe", {
1905
- // AL: TODO replace iframe URL with verification url when available
1906
- 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" }))));
1923
+ getButton(states.status))));
1907
1924
  }
1908
1925
 
1909
1926
  const PayoutStatusAlert = class {
@@ -1933,14 +1950,39 @@ const PayoutStatusAlert = class {
1933
1950
  * @uiName Verification required alert button text
1934
1951
  */
1935
1952
  this.verificationRequiredButtonText = "Start Verification";
1953
+ /**
1954
+ * @uiName Verification required internal alert header
1955
+ */
1956
+ this.verificationRequiredInternalHeader = "Identity Verification in Progress";
1957
+ /**
1958
+ * @uiName Verification required internal alert description
1959
+ */
1960
+ this.verificationRequiredInternalDescription = "Identity verification submission has been received. Our system is currently performing additional checks and analyzing the results. You will be updated shortley.";
1961
+ /**
1962
+ * @uiName Verification review internal alert header
1963
+ */
1964
+ this.verificationReviewInternalHeader = "Identity Verification Under Review";
1965
+ /**
1966
+ * @uiName Verification review internal alert description
1967
+ */
1968
+ this.verificationReviewInternalDescription = "Identity verification requires further review due to a potential error. Our team is reviewing the information and will update you shortly.";
1969
+ /**
1970
+ * @uiName Verification failed internal alert header
1971
+ */
1972
+ this.verificationFailedInternalHeader = "Identity Verification Unsuccessful";
1973
+ /**
1974
+ * @uiName Verification failed internal alert description
1975
+ */
1976
+ this.verificationFailedInternalDescription = "Identity verification has failed. Our team is reviewing the report and will contact you with further information.";
1936
1977
  /**
1937
1978
  * @uiName Payout on hold alert header
1938
1979
  */
1939
1980
  this.holdHeader = "Your payouts and account are on hold";
1940
1981
  /**
1941
1982
  * @uiName Payout on hold alert description
1983
+ * AL: TODO copy not finalized for support section
1942
1984
  */
1943
- 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}.";
1985
+ 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.";
1944
1986
  /**
1945
1987
  * @uiName Cash & Payouts Terms and Conditions url
1946
1988
  */
@@ -1963,7 +2005,6 @@ const PayoutStatusAlert = class {
1963
2005
  const props = index_module.isDemo()
1964
2006
  ? useDemoPayoutStatusAlert(this)
1965
2007
  : usePayoutStatus.usePayoutStatus(this);
1966
- console.log({ props });
1967
2008
  return index.h(PayoutStatusAlertView, Object.assign({}, props));
1968
2009
  }
1969
2010
  };
@@ -1980,7 +2021,6 @@ function useDemoPayoutStatusAlert(props) {
1980
2021
  callbacks: {
1981
2022
  onTermsClick: () => { },
1982
2023
  onClick: () => console.log("show"),
1983
- onCancel: () => console.log("hide"),
1984
2024
  },
1985
2025
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
1986
2026
  }
@@ -12,14 +12,14 @@ const JSS = require('./JSS-8503a151.js');
12
12
  const utils = require('./utils-6847bc06.js');
13
13
  const sqmTextSpanView = require('./sqm-text-span-view-e1cd9bd3.js');
14
14
  const keys = require('./keys-cff24974.js');
15
- const useVerificationEmail = require('./useVerificationEmail-6aacdb71.js');
15
+ const useVerificationEmail = require('./useVerificationEmail-2eb28c2a.js');
16
16
 
17
17
  const style = {
18
18
  Wrapper: {
19
19
  display: "flex",
20
20
  flexDirection: "column",
21
21
  gap: "var(--sl-spacing-medium)",
22
- maxWidth: "515px",
22
+ maxWidth: "550px",
23
23
  },
24
24
  HeaderContainer: {
25
25
  display: "flex",
@@ -158,7 +158,7 @@ function useWidgetCodeVerification(props) {
158
158
  const [codeRef, setCodeRef] = stencilHooks_module.useState(null);
159
159
  const [validationError, setValidationError] = stencilHooks_module.useState(false);
160
160
  const [emailError, setEmailError] = stencilHooks_module.useState(false);
161
- const { initialized, send: [sendEmail, { loading: sendLoading, errors: sendErrors }], verify: [verifyEmail, { loading: verifyLoading, errors: verifyErrors }], } = useVerificationEmail.useVerificationEmail();
161
+ const { initialized, verificationEmail, send: [sendEmail, { loading: sendLoading, errors: sendErrors }], verify: [verifyEmail, { loading: verifyLoading, errors: verifyErrors }], } = useVerificationEmail.useVerificationEmail();
162
162
  stencilHooks_module.useEffect(() => {
163
163
  if (!codeRef)
164
164
  return;
@@ -178,7 +178,7 @@ function useWidgetCodeVerification(props) {
178
178
  if (!input)
179
179
  return;
180
180
  if (idx === codeElements.length - 1) {
181
- e.target.value = input.slice(-1);
181
+ e.target.value = input.slice(0, 1);
182
182
  return;
183
183
  }
184
184
  if (input.length > 1) {
@@ -249,7 +249,7 @@ function useWidgetCodeVerification(props) {
249
249
  codeWrapperRef: setCodeRef,
250
250
  },
251
251
  states: {
252
- email,
252
+ email: verificationEmail,
253
253
  emailResent,
254
254
  resendError: sendErrors || verifyErrors,
255
255
  initialiseLoading: !initialized,
@@ -10,7 +10,7 @@ const JSS = require('./JSS-8503a151.js');
10
10
  const utils = require('./utils-6847bc06.js');
11
11
  const sqmTextSpanView = require('./sqm-text-span-view-e1cd9bd3.js');
12
12
  const keys = require('./keys-cff24974.js');
13
- const useVerificationEmail = require('./useVerificationEmail-6aacdb71.js');
13
+ const useVerificationEmail = require('./useVerificationEmail-2eb28c2a.js');
14
14
 
15
15
  const UpsertUserEmailMutation = index_module.dist.gql `
16
16
  mutation upsertUser($userInput: UserInput!) {