@saasquatch/mint-components 1.12.0-9 → 1.12.1-1

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 (187) hide show
  1. package/dist/cjs/{ShadowViewAddon-040cffad.js → ShadowViewAddon-88821c64.js} +3 -6
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/mint-components.cjs.js +1 -1
  4. package/dist/cjs/sqm-banking-info-form_16.cjs.entry.js +79 -202
  5. package/dist/cjs/sqm-big-stat_39.cjs.entry.js +160 -281
  6. package/dist/cjs/{sqm-invoice-table-view-c58966f8.js → sqm-invoice-table-view-a9133a11.js} +0 -98
  7. package/dist/cjs/sqm-portal-registration-form-view-621348a6.js +85 -0
  8. package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +12 -81
  9. package/dist/cjs/sqm-stencilbook.cjs.entry.js +323 -334
  10. package/dist/collection/collection-manifest.json +1 -6
  11. package/dist/collection/components/sqm-big-stat/useBigStat.js +3 -6
  12. package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +5 -5
  13. package/dist/collection/components/sqm-marketing-emails-checkbox/MarketingEmailsCheckbox.stories.js +11 -0
  14. package/dist/collection/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.js +160 -0
  15. package/dist/collection/components/sqm-portal-registration-form/PortalRegistrationForm.stories.js +5 -1
  16. package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form-view.js +1 -1
  17. package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form.js +3 -2
  18. package/dist/collection/components/sqm-portal-registration-form/usePortalRegistrationForm.js +6 -0
  19. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +4 -8
  20. package/dist/collection/components/tax-and-cash/BankingForm.stories.js +0 -2
  21. package/dist/collection/components/tax-and-cash/TaxForm.stories.js +0 -96
  22. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +1 -5
  23. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +38 -101
  24. package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js +2 -15
  25. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/data.js +0 -7
  26. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +8 -8
  27. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +2 -2
  28. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +0 -22
  29. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +9 -99
  30. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +1 -8
  31. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +2 -2
  32. package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +11 -14
  33. package/dist/esm/{ShadowViewAddon-69b61037.js → ShadowViewAddon-65c8679e.js} +3 -6
  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 +79 -202
  37. package/dist/esm/sqm-big-stat_39.entry.js +159 -280
  38. package/dist/esm/{sqm-invoice-table-view-d1cfdaf4.js → sqm-invoice-table-view-71915a5e.js} +0 -98
  39. package/dist/esm/sqm-portal-registration-form-view-1d3066e1.js +83 -0
  40. package/dist/esm/sqm-portal-registration-form.entry.js +18 -87
  41. package/dist/esm/sqm-stencilbook.entry.js +323 -334
  42. package/dist/esm/stencil-hooks.module-ac12ca1c.js +1 -1
  43. package/dist/esm-es5/ShadowViewAddon-65c8679e.js +1 -0
  44. package/dist/esm-es5/loader.js +1 -1
  45. package/dist/esm-es5/mint-components.js +1 -1
  46. package/dist/esm-es5/sqm-banking-info-form_16.entry.js +1 -1
  47. package/dist/esm-es5/sqm-big-stat_39.entry.js +1 -1
  48. package/dist/esm-es5/sqm-invoice-table-view-71915a5e.js +1 -0
  49. package/dist/esm-es5/sqm-portal-registration-form-view-1d3066e1.js +1 -0
  50. package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
  51. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  52. package/dist/esm-es5/stencil-hooks.module-ac12ca1c.js +1 -1
  53. package/dist/mint-components/mint-components.esm.js +1 -1
  54. package/dist/mint-components/p-1279f7a3.system.entry.js +1 -0
  55. package/dist/mint-components/p-15a64357.entry.js +13 -0
  56. package/dist/mint-components/p-17f56865.entry.js +9 -0
  57. package/dist/mint-components/p-2a414b2e.system.js +2 -2
  58. package/dist/mint-components/p-3cb18382.system.js +1 -0
  59. package/dist/mint-components/p-40b1de58.js +1 -0
  60. package/dist/mint-components/p-4112e198.system.js +1 -0
  61. package/dist/mint-components/p-5cd917db.js +1 -0
  62. package/dist/mint-components/p-6792c8d8.system.entry.js +1 -0
  63. package/dist/mint-components/p-a02afa72.system.js +1 -0
  64. package/dist/mint-components/p-acd77a6e.entry.js +223 -0
  65. package/dist/mint-components/p-b3e97f8a.system.entry.js +1 -0
  66. package/dist/mint-components/{p-9eae245f.js → p-b651706a.js} +3 -6
  67. package/dist/mint-components/p-b8233366.entry.js +174 -0
  68. package/dist/mint-components/p-ca809fdd.system.js +1 -1
  69. package/dist/mint-components/p-cb38b9b0.system.entry.js +1 -0
  70. package/dist/mint-components/p-fd2c5407.js +2 -2
  71. package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field-view.d.ts +1 -1
  72. package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field.d.ts +4 -4
  73. package/dist/types/components/sqm-marketing-emails-checkbox/MarketingEmailsCheckbox.stories.d.ts +8 -0
  74. package/dist/types/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.d.ts +34 -0
  75. package/dist/types/components/sqm-portal-registration-form/PortalRegistrationForm.stories.d.ts +1 -0
  76. package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form-view.d.ts +1 -0
  77. package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form.d.ts +1 -1
  78. package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +0 -2
  79. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +0 -2
  80. package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +1 -1
  81. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/data.d.ts +0 -6
  82. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +2 -2
  83. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +0 -12
  84. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +2 -19
  85. package/dist/types/components.d.ts +108 -625
  86. package/docs/docs.docx +0 -0
  87. package/docs/raisins.json +1 -1
  88. package/grapesjs/grapesjs.js +1 -1
  89. package/package.json +2 -2
  90. package/dist/cjs/extractProps-fd93ba62.js +0 -21
  91. package/dist/cjs/keys-cff24974.js +0 -11
  92. package/dist/cjs/sqm-code-verification.cjs.entry.js +0 -342
  93. package/dist/cjs/sqm-email-verification.cjs.entry.js +0 -283
  94. package/dist/cjs/sqm-scroll.cjs.entry.js +0 -109
  95. package/dist/cjs/sqm-widget-verification-internal.cjs.entry.js +0 -103
  96. package/dist/cjs/sqm-widget-verification.cjs.entry.js +0 -210
  97. package/dist/cjs/usePayoutStatus-b9fb7399.js +0 -70
  98. package/dist/cjs/useVerificationEmail-6aacdb71.js +0 -169
  99. package/dist/collection/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.js +0 -8
  100. package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.js +0 -23
  101. package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll.js +0 -118
  102. package/dist/collection/components/sqm-payout-button-scroll/usePayoutButton.js +0 -44
  103. package/dist/collection/components/sqm-widget-verification/keys.js +0 -4
  104. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/WidgetCodeVerification.stories.js +0 -36
  105. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +0 -128
  106. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +0 -301
  107. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/useCodeVerification.js +0 -153
  108. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.js +0 -42
  109. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +0 -91
  110. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.js +0 -226
  111. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.js +0 -126
  112. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-internal.js +0 -339
  113. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +0 -557
  114. package/dist/collection/components/sqm-widget-verification/useVerificationEmail.js +0 -165
  115. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.js +0 -22
  116. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +0 -131
  117. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +0 -354
  118. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +0 -65
  119. package/dist/esm/extractProps-ae1afbb3.js +0 -19
  120. package/dist/esm/keys-db1897ae.js +0 -6
  121. package/dist/esm/sqm-code-verification.entry.js +0 -338
  122. package/dist/esm/sqm-email-verification.entry.js +0 -279
  123. package/dist/esm/sqm-scroll.entry.js +0 -105
  124. package/dist/esm/sqm-widget-verification-internal.entry.js +0 -99
  125. package/dist/esm/sqm-widget-verification.entry.js +0 -206
  126. package/dist/esm/usePayoutStatus-1a635054.js +0 -67
  127. package/dist/esm/useVerificationEmail-c32696ba.js +0 -167
  128. package/dist/esm-es5/ShadowViewAddon-69b61037.js +0 -1
  129. package/dist/esm-es5/extractProps-ae1afbb3.js +0 -1
  130. package/dist/esm-es5/keys-db1897ae.js +0 -1
  131. package/dist/esm-es5/sqm-code-verification.entry.js +0 -1
  132. package/dist/esm-es5/sqm-email-verification.entry.js +0 -1
  133. package/dist/esm-es5/sqm-invoice-table-view-d1cfdaf4.js +0 -1
  134. package/dist/esm-es5/sqm-scroll.entry.js +0 -1
  135. package/dist/esm-es5/sqm-widget-verification-internal.entry.js +0 -1
  136. package/dist/esm-es5/sqm-widget-verification.entry.js +0 -1
  137. package/dist/esm-es5/usePayoutStatus-1a635054.js +0 -1
  138. package/dist/esm-es5/useVerificationEmail-c32696ba.js +0 -1
  139. package/dist/mint-components/p-1712a9fd.entry.js +0 -11
  140. package/dist/mint-components/p-1e616d45.system.js +0 -1
  141. package/dist/mint-components/p-24092973.entry.js +0 -9
  142. package/dist/mint-components/p-26468242.js +0 -1
  143. package/dist/mint-components/p-331d060e.entry.js +0 -223
  144. package/dist/mint-components/p-3925bcd6.entry.js +0 -13
  145. package/dist/mint-components/p-39840341.js +0 -1
  146. package/dist/mint-components/p-4364001c.entry.js +0 -12
  147. package/dist/mint-components/p-4bd7a472.js +0 -1
  148. package/dist/mint-components/p-517224ef.js +0 -19
  149. package/dist/mint-components/p-5a23b560.system.entry.js +0 -1
  150. package/dist/mint-components/p-64491210.system.entry.js +0 -1
  151. package/dist/mint-components/p-8300d8c8.system.js +0 -1
  152. package/dist/mint-components/p-8bddb468.system.entry.js +0 -1
  153. package/dist/mint-components/p-9596e97c.system.entry.js +0 -1
  154. package/dist/mint-components/p-974070c4.system.entry.js +0 -1
  155. package/dist/mint-components/p-a85f57bb.entry.js +0 -1
  156. package/dist/mint-components/p-a8645c1b.system.js +0 -1
  157. package/dist/mint-components/p-b2a99637.system.js +0 -1
  158. package/dist/mint-components/p-b62faaa5.system.entry.js +0 -1
  159. package/dist/mint-components/p-c05e7b9f.entry.js +0 -195
  160. package/dist/mint-components/p-c510fb88.entry.js +0 -1
  161. package/dist/mint-components/p-c7057066.system.entry.js +0 -1
  162. package/dist/mint-components/p-d7806f31.js +0 -48
  163. package/dist/mint-components/p-e01ac27c.system.js +0 -1
  164. package/dist/mint-components/p-e45a8501.system.entry.js +0 -1
  165. package/dist/mint-components/p-e990dc21.system.js +0 -1
  166. package/dist/mint-components/p-ead27698.system.entry.js +0 -1
  167. package/dist/mint-components/p-f340214f.entry.js +0 -25
  168. package/dist/types/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.d.ts +0 -5
  169. package/dist/types/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.d.ts +0 -10
  170. package/dist/types/components/sqm-payout-button-scroll/sqm-payout-button-scroll.d.ts +0 -26
  171. package/dist/types/components/sqm-payout-button-scroll/usePayoutButton.d.ts +0 -7
  172. package/dist/types/components/sqm-widget-verification/keys.d.ts +0 -4
  173. package/dist/types/components/sqm-widget-verification/sqm-code-verification/WidgetCodeVerification.stories.d.ts +0 -9
  174. package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.d.ts +0 -26
  175. package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.d.ts +0 -54
  176. package/dist/types/components/sqm-widget-verification/sqm-code-verification/useCodeVerification.d.ts +0 -25
  177. package/dist/types/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.d.ts +0 -10
  178. package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.d.ts +0 -21
  179. package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.d.ts +0 -40
  180. package/dist/types/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.d.ts +0 -10
  181. package/dist/types/components/sqm-widget-verification/sqm-widget-verification-internal.d.ts +0 -20
  182. package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +0 -87
  183. package/dist/types/components/sqm-widget-verification/useVerificationEmail.d.ts +0 -14
  184. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.d.ts +0 -10
  185. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +0 -30
  186. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +0 -62
  187. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +0 -21
@@ -748,14 +748,14 @@ export class TaxAndCashMonolith {
748
748
  * @uiGroup Dashboard Properties
749
749
  * @uiWidget textArea
750
750
  */
751
- this.payoutHoldAlertHeader = "Your payout is on hold";
751
+ this.dashboard_errorTitleText = "Your payout is on hold ";
752
752
  /**
753
753
  * Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
754
754
  * @uiName Payout error message description
755
755
  * @uiGroup Dashboard Properties
756
756
  * @uiWidget textArea
757
757
  */
758
- this.payoutHoldAlertDescription = "Please contact Support or check your inbox for an email from our referral program provider, impact.com.";
758
+ this.dashboard_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.";
759
759
  /**
760
760
  * Text displayed for existing publishers that do not have saved banking information.
761
761
  * @uiName Payout missing information subtext
@@ -3972,7 +3972,7 @@ export class TaxAndCashMonolith {
3972
3972
  "reflect": false,
3973
3973
  "defaultValue": "\"Earnings after tax\""
3974
3974
  },
3975
- "payoutHoldAlertHeader": {
3975
+ "dashboard_errorTitleText": {
3976
3976
  "type": "string",
3977
3977
  "mutable": false,
3978
3978
  "complexType": {
@@ -3995,11 +3995,11 @@ export class TaxAndCashMonolith {
3995
3995
  }],
3996
3996
  "text": "Part of the alert displayed at the top of the page when there\u2019s been an issue preventing payouts."
3997
3997
  },
3998
- "attribute": "payout-hold-alert-header",
3998
+ "attribute": "dashboard_error-title-text",
3999
3999
  "reflect": false,
4000
- "defaultValue": "\"Your payout is on hold\""
4000
+ "defaultValue": "\"Your payout is on hold \""
4001
4001
  },
4002
- "payoutHoldAlertDescription": {
4002
+ "dashboard_errorDescriptionText": {
4003
4003
  "type": "string",
4004
4004
  "mutable": false,
4005
4005
  "complexType": {
@@ -4022,9 +4022,9 @@ export class TaxAndCashMonolith {
4022
4022
  }],
4023
4023
  "text": "Part of the alert displayed at the top of the page when there\u2019s been an issue preventing payouts."
4024
4024
  },
4025
- "attribute": "payout-hold-alert-description",
4025
+ "attribute": "dashboard_error-description-text",
4026
4026
  "reflect": false,
4027
- "defaultValue": "\"Please contact Support or check your inbox for an email from our referral program provider, impact.com.\""
4027
+ "defaultValue": "\"If you\u2019ve recently added your payout information, please wait while we verify your information. If it\u2019s still on hold after a few days, please contact Support or check your inbox for an email from our referral program provider, impact.com.\""
4028
4028
  },
4029
4029
  "dashboard_payoutMissingInformationText": {
4030
4030
  "type": "string",
@@ -3,8 +3,8 @@ import { useEffect, useMemo } from "@saasquatch/universal-hooks";
3
3
  import { getCountryObj } from "../utils";
4
4
  import { COUNTRIES_NAMESPACE, COUNTRIES_QUERY_NAMESPACE, CURRENCIES_NAMESPACE, CURRENCIES_QUERY_NAMESPACE, FINANCE_NETWORK_SETTINGS_NAMESPACE, GET_COUNTRIES, GET_CURRENCIES, GET_FINANCE_NETWORK_SETTINGS, GET_USER, SORTED_COUNTRIES_NAMESPACE, TAX_CONTEXT_NAMESPACE, TAX_FORM_CONTEXT_NAMESPACE, USER_FORM_CONTEXT_NAMESPACE, USER_QUERY_NAMESPACE, } from "./data";
5
5
  function getCurrentStep(user) {
6
- var _a, _b;
7
- if (!((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.connected) || !((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher)) {
6
+ var _a;
7
+ if (!((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.connected)) {
8
8
  return "/1";
9
9
  }
10
10
  const { requiredTaxDocumentType, currentTaxDocument, withdrawalSettings, brandedSignup, } = user.impactConnection.publisher;
@@ -8,12 +8,6 @@ const style = {
8
8
  borderTop: "none",
9
9
  },
10
10
  },
11
- HoldAlertContainer: {
12
- "&::part(base)": {
13
- border: "none",
14
- backgroundColor: "transparent",
15
- },
16
- },
17
11
  ExpiringSoonAlertContainer: {
18
12
  "&::part(base)": {
19
13
  backgroundColor: "var(--sl-color-yellow-100)",
@@ -253,22 +247,6 @@ export const TaxAndCashDashboardView = (props) => {
253
247
  h("strong", null, text.error.generalTitle),
254
248
  h("br", null),
255
249
  text.error.generalDescription)),
256
- states.hasHold && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet.classes.HoldAlertContainer },
257
- h("sl-icon", { slot: "icon", name: "exclamation-triangle" }),
258
- h("strong", null, text.payoutHoldAlertHeader),
259
- h("br", null),
260
- text.payoutHoldAlertDescription)),
261
- states.payoutStatus === "VERIFICATION_NEEDED" && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet.classes.HoldAlertContainer },
262
- h("sl-icon", { slot: "icon", name: "exclamation-triangle" }),
263
- h("strong", null, text.verificationRequiredHeader),
264
- h("p", { style: { margin: "0" } }, text.verificationRequiredDescription),
265
- h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", loading: states.loading,
266
- //AL: TODO hooks
267
- onClick: () => callbacks.onClick }, text.verificationRequiredButtonText))),
268
- h("sl-dialog", { noDismiss: true, class: sheet.classes.Dialog, open: states.showVerifyIdentity, "onSl-hide": callbacks.onVerifyIdentityCancel },
269
- h("iframe", {
270
- // AL: TODO replace iframe URL with verification url when available
271
- 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" })),
272
250
  h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
273
251
  h("p", null, text.replaceTaxFormModalBodyText),
274
252
  h("sl-button", { slot: "footer", type: "primary", class: sheet.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
@@ -173,35 +173,18 @@ export class TaxAndCashDashboard {
173
173
  * @uiName Payout error message title
174
174
  * @uiWidget textArea
175
175
  */
176
- this.payoutHoldAlertHeader = "Your payout is on hold";
176
+ this.errorTitleText = "Your payout is on hold ";
177
177
  /**
178
178
  * Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
179
179
  * @uiName Payout error message description
180
180
  * @uiWidget textArea
181
181
  */
182
- this.payoutHoldAlertDescription = "Please contact Support or check your inbox for an email from our referral program provider, impact.com.";
182
+ 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.";
183
183
  /**
184
184
  * Text displayed for existing publishers that do not have saved banking information.
185
185
  * @uiName Payout missing information subtext
186
186
  */
187
187
  this.payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
188
- /**
189
- * Part of the alert displayed at the top of the page when the user needs to verify their identity.
190
- * @uiName Verification required alert message title
191
- * @uiWidget textArea
192
- */
193
- this.verificationRequiredHeader = "Verify your identity";
194
- /**
195
- * Part of the alert displayed at the top of the page when the user needs to verify their identity
196
- * @uiName Verification required alert message description
197
- * @uiWidget textArea
198
- */
199
- this.verificationRequiredDescription = "Complete your verification to start receiving your cash rewards. It should only take a few minutes verify.";
200
- /**
201
- * Part of the alert displayed at the top of the page when the user needs to verify their identity.
202
- * @uiName Verification required alert button text
203
- */
204
- this.verificationRequiredButtonText = "Start Verification";
205
188
  /**
206
189
  * Part of the alert displayed at the top of the page.
207
190
  * @uiName Form submission error message title
@@ -943,7 +926,7 @@ export class TaxAndCashDashboard {
943
926
  "reflect": false,
944
927
  "defaultValue": "\"Account\""
945
928
  },
946
- "payoutHoldAlertHeader": {
929
+ "errorTitleText": {
947
930
  "type": "string",
948
931
  "mutable": false,
949
932
  "complexType": {
@@ -963,11 +946,11 @@ export class TaxAndCashDashboard {
963
946
  }],
964
947
  "text": "Part of the alert displayed at the top of the page when there\u2019s been an issue preventing payouts."
965
948
  },
966
- "attribute": "payout-hold-alert-header",
949
+ "attribute": "error-title-text",
967
950
  "reflect": false,
968
- "defaultValue": "\"Your payout is on hold\""
951
+ "defaultValue": "\"Your payout is on hold \""
969
952
  },
970
- "payoutHoldAlertDescription": {
953
+ "errorDescriptionText": {
971
954
  "type": "string",
972
955
  "mutable": false,
973
956
  "complexType": {
@@ -987,9 +970,9 @@ export class TaxAndCashDashboard {
987
970
  }],
988
971
  "text": "Part of the alert displayed at the top of the page when there\u2019s been an issue preventing payouts."
989
972
  },
990
- "attribute": "payout-hold-alert-description",
973
+ "attribute": "error-description-text",
991
974
  "reflect": false,
992
- "defaultValue": "\"Please contact Support or check your inbox for an email from our referral program provider, impact.com.\""
975
+ "defaultValue": "\"If you\u2019ve recently added your payout information, please wait while we verify your information. If it\u2019s still on hold after a few days, please contact Support or check your inbox for an email from our referral program provider, impact.com.\""
993
976
  },
994
977
  "payoutMissingInformationText": {
995
978
  "type": "string",
@@ -1012,75 +995,6 @@ export class TaxAndCashDashboard {
1012
995
  "reflect": false,
1013
996
  "defaultValue": "\"Missing banking information, go to Impact.com to resolve.\""
1014
997
  },
1015
- "verificationRequiredHeader": {
1016
- "type": "string",
1017
- "mutable": false,
1018
- "complexType": {
1019
- "original": "string",
1020
- "resolved": "string",
1021
- "references": {}
1022
- },
1023
- "required": false,
1024
- "optional": false,
1025
- "docs": {
1026
- "tags": [{
1027
- "text": "Verification required alert message title",
1028
- "name": "uiName"
1029
- }, {
1030
- "text": "textArea",
1031
- "name": "uiWidget"
1032
- }],
1033
- "text": "Part of the alert displayed at the top of the page when the user needs to verify their identity."
1034
- },
1035
- "attribute": "verification-required-header",
1036
- "reflect": false,
1037
- "defaultValue": "\"Verify your identity\""
1038
- },
1039
- "verificationRequiredDescription": {
1040
- "type": "string",
1041
- "mutable": false,
1042
- "complexType": {
1043
- "original": "string",
1044
- "resolved": "string",
1045
- "references": {}
1046
- },
1047
- "required": false,
1048
- "optional": false,
1049
- "docs": {
1050
- "tags": [{
1051
- "text": "Verification required alert message description",
1052
- "name": "uiName"
1053
- }, {
1054
- "text": "textArea",
1055
- "name": "uiWidget"
1056
- }],
1057
- "text": "Part of the alert displayed at the top of the page when the user needs to verify their identity"
1058
- },
1059
- "attribute": "verification-required-description",
1060
- "reflect": false,
1061
- "defaultValue": "\"Complete your verification to start receiving your cash rewards. It should only take a few minutes verify.\""
1062
- },
1063
- "verificationRequiredButtonText": {
1064
- "type": "string",
1065
- "mutable": false,
1066
- "complexType": {
1067
- "original": "string",
1068
- "resolved": "string",
1069
- "references": {}
1070
- },
1071
- "required": false,
1072
- "optional": false,
1073
- "docs": {
1074
- "tags": [{
1075
- "text": "Verification required alert button text",
1076
- "name": "uiName"
1077
- }],
1078
- "text": "Part of the alert displayed at the top of the page when the user needs to verify their identity."
1079
- },
1080
- "attribute": "verification-required-button-text",
1081
- "reflect": false,
1082
- "defaultValue": "\"Start Verification\""
1083
- },
1084
998
  "generalErrorTitle": {
1085
999
  "type": "string",
1086
1000
  "mutable": false,
@@ -1521,7 +1435,7 @@ export class TaxAndCashDashboard {
1521
1435
  "mutable": false,
1522
1436
  "complexType": {
1523
1437
  "original": "DemoData<UseTaxAndCashDashboardResult>",
1524
- "resolved": "{ states?: { status?: string; documentType: TaxDocumentType; documentTypeString: string; canEditPayoutInfo: boolean; disabled?: boolean; dateSubmitted?: string; noFormNeeded?: boolean; indirectTaxType?: string; qstNumber?: string; subRegionTaxNumber?: string; subRegion?: string; indirectTaxNumber?: string; province?: string; country?: string; notRegistered?: boolean; isBusinessEntity?: boolean; loading?: boolean; loadingError?: boolean; showNewFormDialog: boolean; showIdentityVerificationDialog?: boolean; identiyRequired?: boolean; hasHold: boolean; payoutStatus: PayoutStatus; showVerifyIdentity: boolean; errors?: { general?: boolean; }; }; }",
1438
+ "resolved": "{ states?: { status?: string; documentType: TaxDocumentType; documentTypeString: string; canEditPayoutInfo: boolean; disabled?: boolean; dateSubmitted?: string; noFormNeeded?: boolean; indirectTaxType?: string; qstNumber?: string; subRegionTaxNumber?: string; subRegion?: string; indirectTaxNumber?: string; province?: string; country?: string; notRegistered?: boolean; isBusinessEntity?: boolean; loading?: boolean; loadingError?: boolean; showNewFormDialog: boolean; errors?: { general?: boolean; }; }; }",
1525
1439
  "references": {
1526
1440
  "DemoData": {
1527
1441
  "location": "import",
@@ -1562,16 +1476,12 @@ function useDemoTaxAndCashDashboard(props) {
1562
1476
  disabled: false,
1563
1477
  loading: false,
1564
1478
  showNewFormDialog: false,
1565
- hasHold: false,
1566
- showVerifyIdentity: false,
1567
- payoutStatus: "DONE",
1568
1479
  },
1569
1480
  callbacks: {
1570
1481
  onClick: () => console.debug("check step"),
1571
1482
  onEditPayoutInfo: () => console.debug("payout info"),
1572
1483
  onNewFormCancel: () => console.log("hide"),
1573
1484
  onNewFormClick: () => console.log("show"),
1574
- onVerifyIdentityCancel: () => console.log("hide"),
1575
1485
  },
1576
1486
  text: props.getTextProps(),
1577
1487
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
@@ -5,7 +5,6 @@ import { vatLabels } from "../countries";
5
5
  import { TAX_CONTEXT_NAMESPACE, TAX_FORM_CONTEXT_NAMESPACE, USER_QUERY_NAMESPACE, } from "../sqm-tax-and-cash/data";
6
6
  import { INDIRECT_TAX_PROVINCES, INDIRECT_TAX_SPAIN_REGIONS, } from "../subregions";
7
7
  import { taxTypeToName } from "../utils";
8
- import { getStatus } from "../sqm-payout-status-alert/usePayoutStatus";
9
8
  function getCountryName(countryCode, locale) {
10
9
  if (!countryCode)
11
10
  return undefined;
@@ -41,11 +40,10 @@ function getIndirectTaxType(taxInformation) {
41
40
  return "Indirect Tax";
42
41
  }
43
42
  export const useTaxAndCashDashboard = (props) => {
44
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
43
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
45
44
  const setStep = useSetParent(TAX_CONTEXT_NAMESPACE);
46
45
  const setContext = useSetParent(TAX_FORM_CONTEXT_NAMESPACE);
47
46
  const [showDialog, setShowDialog] = useState(false);
48
- const [showVerification, setShowVerification] = useState(false);
49
47
  const locale = useLocale();
50
48
  useEffect(() => {
51
49
  // Clear override context once on submitted
@@ -76,7 +74,6 @@ export const useTaxAndCashDashboard = (props) => {
76
74
  setStep("/3");
77
75
  };
78
76
  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;
79
- const payoutStatus = getStatus(data);
80
77
  return {
81
78
  states: {
82
79
  dateSubmitted,
@@ -98,16 +95,12 @@ export const useTaxAndCashDashboard = (props) => {
98
95
  loading,
99
96
  loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
100
97
  showNewFormDialog: showDialog,
101
- hasHold: !!((_m = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _m === void 0 ? void 0 : _m.hold),
102
- payoutStatus,
103
- showVerifyIdentity: showVerification,
104
98
  },
105
99
  callbacks: {
106
100
  onClick: () => setShowDialog(true),
107
101
  onEditPayoutInfo,
108
102
  onNewFormCancel: () => setShowDialog(false),
109
103
  onNewFormClick,
110
- onVerifyIdentityCancel: () => setShowVerification(false),
111
104
  },
112
105
  text: props.getTextProps(),
113
106
  };
@@ -85,7 +85,7 @@ const style = {
85
85
  },
86
86
  PhoneInputsSection: {
87
87
  display: "flex",
88
- alignItems: "flex-end",
88
+ alignItems: "flex-start",
89
89
  flexDirection: "column",
90
90
  gap: "4px",
91
91
  "& p": {
@@ -96,7 +96,7 @@ const style = {
96
96
  },
97
97
  PhoneInputsContainer: {
98
98
  display: "flex",
99
- alignItems: "flex-end",
99
+ alignItems: "flex-start",
100
100
  gap: "4px",
101
101
  width: "100%",
102
102
  "& #phoneNumber": {
@@ -24,20 +24,17 @@ export function useUserInfoForm(props) {
24
24
  const [filteredCurrencies, setFilteredCurrencies] = useState(currencies || []);
25
25
  const [formErrors, setErrors] = useState({});
26
26
  useEffect(() => {
27
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
27
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
28
28
  const user = data === null || data === void 0 ? void 0 : data.user;
29
29
  if (!user || step !== "/1")
30
30
  return;
31
31
  // If form already filled out, skip initialising it
32
32
  if (objectIsFull(userFormContext))
33
33
  return;
34
- // Prefer MI email if it was verified before this
35
- const email = ((_a = user.managedIdentity) === null || _a === void 0 ? void 0 : _a.emailVerified) ? user.managedIdentity.email
36
- : user.email;
37
- if (((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher) && ((_c = user.impactConnection) === null || _c === void 0 ? void 0 : _c.user)) {
34
+ if (((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) && ((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.user)) {
38
35
  // Initialise with partner information
39
36
  setUserFormContext({
40
- email,
37
+ email: user.email,
41
38
  firstName: user.impactConnection.user.firstName,
42
39
  lastName: user.impactConnection.user.lastName,
43
40
  countryCode: user.impactConnection.publisher.countryCode,
@@ -53,17 +50,17 @@ export function useUserInfoForm(props) {
53
50
  else if (!(userFormContext === null || userFormContext === void 0 ? void 0 : userFormContext.email)) {
54
51
  // Initialise with user information
55
52
  setUserFormContext({
56
- email,
53
+ email: user.email,
57
54
  firstName: user.firstName,
58
55
  lastName: user.lastName,
59
56
  countryCode: user.countryCode || "US",
60
- currency: (_d = user.customFields) === null || _d === void 0 ? void 0 : _d.currency,
61
- phoneNumberCountryCode: ((_e = user.customFields) === null || _e === void 0 ? void 0 : _e.phoneNumberCountryCode) || "US",
62
- phoneNumber: (_f = user.customFields) === null || _f === void 0 ? void 0 : _f.phoneNumber,
63
- address: (_g = user.customFields) === null || _g === void 0 ? void 0 : _g.address,
64
- city: (_h = user.customFields) === null || _h === void 0 ? void 0 : _h.city,
65
- state: (_j = user.customFields) === null || _j === void 0 ? void 0 : _j.state,
66
- postalCode: (_k = user.customFields) === null || _k === void 0 ? void 0 : _k.postalCode,
57
+ currency: (_c = user.customFields) === null || _c === void 0 ? void 0 : _c.currency,
58
+ phoneNumberCountryCode: ((_d = user.customFields) === null || _d === void 0 ? void 0 : _d.phoneNumberCountryCode) || "US",
59
+ phoneNumber: (_e = user.customFields) === null || _e === void 0 ? void 0 : _e.phoneNumber,
60
+ address: (_f = user.customFields) === null || _f === void 0 ? void 0 : _f.address,
61
+ city: (_g = user.customFields) === null || _g === void 0 ? void 0 : _g.city,
62
+ state: (_h = user.customFields) === null || _h === void 0 ? void 0 : _h.state,
63
+ postalCode: (_j = user.customFields) === null || _j === void 0 ? void 0 : _j.postalCode,
67
64
  });
68
65
  }
69
66
  }, [data, step, userFormContext]);
@@ -1269,12 +1269,9 @@ const payoutBalanceQuery = () => {
1269
1269
  query payoutBalance {
1270
1270
  viewer: viewer {
1271
1271
  ... on User {
1272
- id
1273
- impactConnection {
1274
- publisher {
1275
- payoutsAccount {
1276
- balance
1277
- }
1272
+ publisher {
1273
+ payoutsAccount {
1274
+ balance
1278
1275
  }
1279
1276
  }
1280
1277
  }