@saasquatch/mint-components 1.13.5-0 → 1.14.0-0

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 (147) hide show
  1. package/dist/cjs/{ShadowViewAddon-14a02da4.js → AutoColor-3b59126f.js} +1137 -1137
  2. package/dist/cjs/ErrorView-b2fcf954.js +35 -0
  3. package/dist/cjs/IndirectTaxDetailsView-409dae6f.js +646 -0
  4. package/dist/cjs/data-6d96b89c.js +137 -0
  5. package/dist/cjs/loader.cjs.js +1 -1
  6. package/dist/cjs/mint-components.cjs.js +1 -1
  7. package/dist/cjs/parseStates-d1effc19.js +16 -0
  8. package/dist/cjs/{sqm-banking-info-form_17.cjs.entry.js → sqm-banking-info-form_10.cjs.entry.js} +209 -1885
  9. package/dist/cjs/sqm-big-stat_41.cjs.entry.js +30 -30
  10. package/dist/cjs/sqm-code-verification.cjs.entry.js +349 -0
  11. package/dist/cjs/sqm-invoice-table-data-cell_5.cjs.entry.js +84 -0
  12. package/dist/cjs/sqm-stencilbook.cjs.entry.js +12390 -11094
  13. package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +1221 -0
  14. package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +11 -3
  15. package/dist/cjs/sqm-widget-verification.cjs.entry.js +17 -6
  16. package/dist/cjs/utils-8257e7ab.js +105 -0
  17. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +78 -78
  18. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +37 -3
  19. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-controller.js +39 -5
  20. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +41 -6
  21. package/dist/collection/components/tax-and-cash/TaxForm.stories.js +12 -8
  22. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +1 -1
  23. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +2 -2
  24. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +1 -1
  25. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +1 -1
  26. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +1 -1
  27. package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +2 -2
  28. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +2 -2
  29. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +1 -1
  30. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +2 -2
  31. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +26 -1
  32. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/usePayoutDetailsCard.js +2 -2
  33. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +75 -41
  34. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +1 -1
  35. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +62 -3
  36. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +3 -3
  37. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +5 -4
  38. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +49 -11
  39. package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +3 -3
  40. package/dist/collection/utils/parseStates.js +12 -0
  41. package/dist/esm/{ShadowViewAddon-23a6afab.js → AutoColor-d8d7f31d.js} +1141 -1141
  42. package/dist/esm/ErrorView-48e2b969.js +33 -0
  43. package/dist/esm/IndirectTaxDetailsView-c321099a.js +639 -0
  44. package/dist/esm/data-a05c78ae.js +121 -0
  45. package/dist/esm/loader.js +1 -1
  46. package/dist/esm/mint-components.js +1 -1
  47. package/dist/esm/parseStates-ed75e224.js +14 -0
  48. package/dist/esm/{sqm-banking-info-form_17.entry.js → sqm-banking-info-form_10.entry.js} +133 -1802
  49. package/dist/esm/sqm-big-stat_41.entry.js +1 -1
  50. package/dist/esm/sqm-code-verification.entry.js +345 -0
  51. package/dist/esm/sqm-invoice-table-data-cell_5.entry.js +76 -0
  52. package/dist/esm/sqm-stencilbook.entry.js +10501 -9205
  53. package/dist/esm/sqm-tax-and-cash.entry.js +1217 -0
  54. package/dist/esm/sqm-widget-verification-controller.entry.js +12 -4
  55. package/dist/esm/sqm-widget-verification.entry.js +17 -6
  56. package/dist/esm/utils-7c96856c.js +97 -0
  57. package/dist/esm-es5/AutoColor-d8d7f31d.js +1 -0
  58. package/dist/esm-es5/ErrorView-48e2b969.js +1 -0
  59. package/dist/esm-es5/IndirectTaxDetailsView-c321099a.js +1 -0
  60. package/dist/esm-es5/data-a05c78ae.js +1 -0
  61. package/dist/esm-es5/loader.js +1 -1
  62. package/dist/esm-es5/mint-components.js +1 -1
  63. package/dist/esm-es5/parseStates-ed75e224.js +1 -0
  64. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -0
  65. package/dist/esm-es5/sqm-big-stat_41.entry.js +1 -1
  66. package/dist/esm-es5/sqm-code-verification.entry.js +1 -0
  67. package/dist/esm-es5/sqm-invoice-table-data-cell_5.entry.js +1 -0
  68. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  69. package/dist/esm-es5/sqm-tax-and-cash.entry.js +1 -0
  70. package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
  71. package/dist/esm-es5/sqm-widget-verification.entry.js +1 -1
  72. package/dist/esm-es5/utils-7c96856c.js +1 -0
  73. package/dist/mint-components/mint-components.esm.js +1 -1
  74. package/dist/mint-components/p-0603a39f.js +1 -0
  75. package/dist/mint-components/p-0a37a288.system.entry.js +1 -0
  76. package/dist/mint-components/p-0b8f6a39.entry.js +11 -0
  77. package/dist/mint-components/p-115dfc03.system.js +1 -0
  78. package/dist/mint-components/p-13f3a647.js +1 -0
  79. package/dist/mint-components/p-1a7453c6.system.js +1 -0
  80. package/dist/mint-components/p-33d79be3.entry.js +93 -0
  81. package/dist/mint-components/p-37996351.system.js +1 -1
  82. package/dist/mint-components/p-3a62a7e2.system.js +1 -0
  83. package/dist/mint-components/p-4a46897f.system.js +1 -0
  84. package/dist/mint-components/p-4d11920f.entry.js +1 -0
  85. package/dist/mint-components/p-5510be1e.system.entry.js +1 -0
  86. package/dist/mint-components/p-6ef506ba.entry.js +16 -0
  87. package/dist/mint-components/{p-33ed6f1c.system.entry.js → p-70adcf4f.system.entry.js} +1 -1
  88. package/dist/mint-components/p-70d3d873.system.entry.js +1 -0
  89. package/dist/mint-components/p-7e0bf3de.system.entry.js +1 -0
  90. package/dist/mint-components/p-83acd617.js +1 -0
  91. package/dist/mint-components/p-84a78d09.entry.js +1 -0
  92. package/dist/mint-components/{p-01010af0.entry.js → p-84ed9923.entry.js} +5 -5
  93. package/dist/mint-components/p-889ec1df.system.entry.js +1 -0
  94. package/dist/mint-components/p-8a784f2a.system.entry.js +1 -0
  95. package/dist/mint-components/p-93e4a3c3.system.js +1 -0
  96. package/dist/mint-components/p-98a48fc4.system.entry.js +1 -0
  97. package/dist/mint-components/p-9acb5038.js +1 -0
  98. package/dist/mint-components/p-a38ca165.entry.js +9 -0
  99. package/dist/mint-components/p-c75a3b4a.js +103 -0
  100. package/dist/mint-components/p-d75c462c.entry.js +1 -0
  101. package/dist/mint-components/p-ea7f379d.js +394 -0
  102. package/dist/mint-components/p-f8175201.system.js +1 -0
  103. package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.d.ts +6 -0
  104. package/dist/types/components/sqm-widget-verification/sqm-widget-verification-controller.d.ts +5 -0
  105. package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +5 -0
  106. package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +0 -1
  107. package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.d.ts +1 -1
  108. package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +2 -2
  109. package/dist/types/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.d.ts +4 -0
  110. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +1 -1
  111. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +11 -10
  112. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.d.ts +1 -1
  113. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +1 -1
  114. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +10 -0
  115. package/dist/types/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.d.ts +1 -1
  116. package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.d.ts +7 -0
  117. package/dist/types/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.d.ts +1 -1
  118. package/dist/types/components/tax-and-cash/utils.d.ts +1 -1
  119. package/dist/types/components.d.ts +96 -89
  120. package/dist/types/global/android.d.ts +7 -0
  121. package/dist/types/global/demo.d.ts +2 -0
  122. package/dist/types/stories/features.d.ts +4 -0
  123. package/dist/types/stories/templates.d.ts +4 -0
  124. package/dist/types/utils/parseStates.d.ts +1 -0
  125. package/docs/docs.docx +0 -0
  126. package/docs/raisins.json +1 -1
  127. package/grapesjs/grapesjs.js +1 -1
  128. package/package.json +2 -1
  129. package/dist/cjs/sqm-invoice-table-view-baded4af.js +0 -2067
  130. package/dist/esm/sqm-invoice-table-view-af69cd33.js +0 -2050
  131. package/dist/esm-es5/ShadowViewAddon-23a6afab.js +0 -1
  132. package/dist/esm-es5/sqm-banking-info-form_17.entry.js +0 -1
  133. package/dist/esm-es5/sqm-invoice-table-view-af69cd33.js +0 -1
  134. package/dist/mint-components/p-33c96e14.entry.js +0 -16
  135. package/dist/mint-components/p-38b5f028.system.entry.js +0 -1
  136. package/dist/mint-components/p-6427e963.entry.js +0 -1
  137. package/dist/mint-components/p-7e7cbccf.system.js +0 -1
  138. package/dist/mint-components/p-9320582e.system.js +0 -1
  139. package/dist/mint-components/p-962f3200.js +0 -1
  140. package/dist/mint-components/p-9cf80e85.system.entry.js +0 -1
  141. package/dist/mint-components/p-b93fd99c.system.entry.js +0 -1
  142. package/dist/mint-components/p-c36506f6.system.entry.js +0 -1
  143. package/dist/mint-components/p-d3d74266.js +0 -394
  144. package/dist/mint-components/p-f29eda2f.entry.js +0 -205
  145. package/dist/mint-components/p-f2cc6a6f.entry.js +0 -9
  146. /package/dist/collection/components/tax-and-cash/{sqm-tax-and-cash/data.js → data.js} +0 -0
  147. /package/dist/types/components/tax-and-cash/{sqm-tax-and-cash/data.d.ts → data.d.ts} +0 -0
@@ -1,141 +1,23 @@
1
1
  import { h, r as registerInstance, c as Host, g as getElement } from './index-91e7729f.js';
2
- import { m as useRef, k as useState, f as useEffect, n as h$1, l, u as useMemo, b as browser, j as useReducer } from './stencil-hooks.module-4bc38af4.js';
2
+ import { m as useRef, k as useState, f as useEffect, n as h$1, u as useMemo, b as browser, j as useReducer } from './stencil-hooks.module-4bc38af4.js';
3
3
  import { i as intl } from './global-be1f9992.js';
4
- import { d as dist, _, L, J, t as Pn, F as Fn, x as $n, $ as $e, i as isDemo, q as En, u as useCallback, R as Rn, M as Mn, I as In, S as Sn } from './index.module-89a79f66.js';
4
+ import { d as dist, _, L, J, t as Pn, F as Fn, x as $n, $ as $e, i as isDemo, q as En, u as useCallback, R as Rn } from './index.module-89a79f66.js';
5
5
  import { j as jsonpointer } from './jsonpointer-388a7082.js';
6
6
  import { c as cjs } from './cjs-bdfb4486.js';
7
- import { g as getProps, l as luxonLocale } from './utils-334c1e34.js';
7
+ import { g as getProps } from './utils-334c1e34.js';
8
8
  import { c as createStyleSheet } from './JSS-67b5cff8.js';
9
- import { E as ErrorStyles } from './mixins-83f90fa1.js';
9
+ import './mixins-83f90fa1.js';
10
10
  import { G as GenericTableView } from './GenericTableView-7b9087af.js';
11
11
  import { u as useRerenderListener, a as useRequestRerender } from './re-render-cc945f38.js';
12
12
  import { u as useChildElements } from './useChildElements-7945ae56.js';
13
13
  import { l as luxon } from './luxon-8d51c92b.js';
14
14
  import { g as generateUserError } from './useReferralTable-b3876ed6.js';
15
- import { T as TextSpanView } from './sqm-text-span-view-ca32495e.js';
16
- 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-af69cd33.js';
17
- import { e as extractProps } from './extractProps-ae1afbb3.js';
18
- import { b as VERIFICATION_EVENT_KEY, V as VERIFICATION_EMAIL_NAMESPACE, S as SHOW_CODE_NAMESPACE, a as VERIFICATION_PARENT_NAMESPACE } from './keys-406491dc.js';
15
+ import { a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, O as OtherRegionSlotView, I as InvoiceTableView, v as vatLabels, A as ADDRESS_REGIONS } from './IndirectTaxDetailsView-c321099a.js';
16
+ import { t as taxTypeToName, v as validTaxDocument, g as getCountryObj, L as LoadingView, f as formatErrorMessage, a as validateBillingField, o as objectIsFull } from './utils-7c96856c.js';
17
+ import { p as parseStates } from './parseStates-ed75e224.js';
18
+ import { i as FORM_STEPS, a as TAX_FORM_CONTEXT_NAMESPACE, S as SORTED_COUNTRIES_NAMESPACE, c as USER_QUERY_NAMESPACE, T as TAX_CONTEXT_NAMESPACE, F as FINANCE_NETWORK_SETTINGS_NAMESPACE, U as USER_FORM_CONTEXT_NAMESPACE, d as COUNTRIES_QUERY_NAMESPACE, C as CURRENCIES_NAMESPACE } from './data-a05c78ae.js';
19
+ import { b as VERIFICATION_EVENT_KEY } from './keys-406491dc.js';
19
20
  import { T as TAX_FORM_UPDATED_EVENT_KEY, a as useVeriffApp, g as getStatus, V as VERIFF_COMPLETE_EVENT_KEY } from './usePayoutStatus-58aa56b4.js';
20
- import { u as useVerificationEmail } from './useVerificationEmail-edc318cb.js';
21
-
22
- const TAX_CONTEXT_NAMESPACE = "sq:tax-and-cash";
23
- const TAX_FORM_CONTEXT_NAMESPACE = "sq:tax-form-context";
24
- const USER_QUERY_NAMESPACE = "sq:user-info-query";
25
- const USER_FORM_CONTEXT_NAMESPACE = "sq:user-form-context";
26
- const FINANCE_NETWORK_SETTINGS_NAMESPACE = "sq:finance-network-settings";
27
- const COUNTRIES_NAMESPACE = "sq:countries:list";
28
- const SORTED_COUNTRIES_NAMESPACE = "sq:countries:sorted";
29
- const COUNTRIES_QUERY_NAMESPACE = "sq:countries:query";
30
- const CURRENCIES_NAMESPACE = "sq:currencies:list";
31
- const CURRENCIES_QUERY_NAMESPACE = "sq:currencies:query";
32
- const GET_USER = dist.gql `
33
- query getUserTaxInfo {
34
- user: viewer {
35
- ... on User {
36
- id
37
- firstName
38
- lastName
39
- email
40
- countryCode
41
- customFields
42
- managedIdentity {
43
- uid
44
- email
45
- emailVerified
46
- }
47
- impactConnection {
48
- connected
49
- user {
50
- firstName
51
- lastName
52
- }
53
- publisher {
54
- id
55
- brandedSignup
56
- countryCode
57
- currency
58
- billingAddress
59
- billingCity
60
- billingState
61
- billingCountryCode
62
- billingPostalCode
63
- phoneNumberCountryCode
64
- phoneNumber
65
- taxInformation {
66
- indirectTaxId
67
- indirectTaxCountryCode
68
- indirectTaxRegion
69
- additionalTaxId
70
- withholdingTaxId
71
- withholdingTaxCountryCode
72
- }
73
- requiredTaxDocumentType
74
- currentTaxDocument {
75
- status
76
- type
77
- dateCreated
78
- }
79
- withdrawalSettings {
80
- paymentMethod
81
- paypalEmailAddress
82
- bankCountry
83
- bankAccountNumber
84
- paymentSchedulingType
85
- paymentThreshold
86
- paymentDay
87
- }
88
- payoutsAccount {
89
- hold
90
- holdReasons
91
- balance
92
- }
93
- }
94
- }
95
- }
96
- }
97
- }
98
- `;
99
- const GET_COUNTRIES = dist.gql `
100
- query getCountries {
101
- impactPayoutCountries(limit: 1000) {
102
- data {
103
- countryCode
104
- displayName
105
- }
106
- }
107
- }
108
- `;
109
- const GET_CURRENCIES = dist.gql `
110
- query currencies($locale: RSLocale) {
111
- currencies(limit: 300) {
112
- data {
113
- displayName(locale: $locale)
114
- currencyCode
115
- }
116
- }
117
- }
118
- `;
119
- const GET_FINANCE_NETWORK_SETTINGS = dist.gql `
120
- query impactFinanceNetworkSettings(
121
- $filter: ImpactFinanceNetworkSettingsFilterInput
122
- ) {
123
- impactFinanceNetworkSettings(filter: $filter, limit: 1000) {
124
- data {
125
- countryCode
126
- currency
127
- defaultFinancePaymentMethodId
128
- thresholdOptions
129
- withdrawalSettingId
130
- internationalEftFee
131
- foreignFxFee
132
- defaultFxFee
133
- }
134
- totalCount
135
- }
136
- }
137
- `;
138
- const FORM_STEPS = 4;
139
21
 
140
22
  function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
141
23
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32;
@@ -1763,331 +1645,6 @@ function useDemoBankingInfoForm(props) {
1763
1645
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
1764
1646
  }
1765
1647
 
1766
- const style$1 = {
1767
- Wrapper: {
1768
- display: "flex",
1769
- flexDirection: "column",
1770
- gap: "var(--sl-spacing-medium)",
1771
- maxWidth: "550px",
1772
- },
1773
- HeaderContainer: {
1774
- display: "flex",
1775
- flexDirection: "column",
1776
- },
1777
- InputsContainer: {
1778
- display: "flex",
1779
- gap: "var(--sl-spacing-medium)",
1780
- position: "relative",
1781
- flexDirection: "column",
1782
- },
1783
- CodeInputContainer: {
1784
- display: "flex",
1785
- gap: "var(--sl-spacing-medium)",
1786
- },
1787
- CodeInput: {
1788
- maxWidth: "40px",
1789
- "&::part(input)": {
1790
- margin: "0",
1791
- padding: "0 var(--sl-input-spacing-small)",
1792
- fontSize: "var(--sl-font-size-large)",
1793
- },
1794
- },
1795
- CodeInputError: {
1796
- ...ErrorStyles,
1797
- maxWidth: "40px",
1798
- "&::part(input)": {
1799
- margin: "0",
1800
- padding: "0 var(--sl-input-spacing-small)",
1801
- fontSize: "var(--sl-font-size-large)",
1802
- },
1803
- },
1804
- ErrorText: {
1805
- color: "var(--sl-color-danger-500)",
1806
- fontSize: "var(--sl-font-size-small)",
1807
- margin: "0",
1808
- },
1809
- ContinueButton: {
1810
- width: "100%",
1811
- maxWidth: "100px",
1812
- },
1813
- FooterContainer: {
1814
- display: "flex",
1815
- flexDirection: "column",
1816
- },
1817
- SkeletonOne: {
1818
- width: "50%",
1819
- height: "16px",
1820
- },
1821
- SkeletonTwo: {
1822
- width: "30%",
1823
- height: "34px",
1824
- },
1825
- SkeletonThree: {
1826
- width: "15%",
1827
- height: "24px",
1828
- },
1829
- };
1830
- const vanillaStyle$1 = `
1831
- :host {
1832
- display: block;
1833
- }
1834
- :host([hidden]): {
1835
- display: none;
1836
- }
1837
-
1838
-
1839
- `;
1840
- const sheet$1 = createStyleSheet(style$1);
1841
- const styleString$1 = sheet$1.toString();
1842
- function WidgetCodeVerificationView(props) {
1843
- const { states, refs, callbacks, text } = props;
1844
- const resendCodeText = intl.formatMessage({
1845
- id: "resendCodeText",
1846
- defaultMessage: text.resendCodeText,
1847
- }, {
1848
- resendCodeLink: (h("a", { href: "", style: { textDecoration: "none" }, onClick: (e) => {
1849
- e.preventDefault();
1850
- callbacks.resendEmail();
1851
- } }, text.resendCodeLabel)),
1852
- });
1853
- const codeResentSuccessfully = intl.formatMessage({
1854
- id: "codeResentSuccessfully",
1855
- defaultMessage: text.codeResentSuccessfullyText,
1856
- }, {
1857
- email: states.email,
1858
- });
1859
- const inputClass = states.verifyFailed
1860
- ? sheet$1.classes.CodeInputError
1861
- : sheet$1.classes.CodeInput;
1862
- return (h("div", { part: "sqm-base" },
1863
- h("style", { type: "text/css" },
1864
- vanillaStyle$1,
1865
- styleString$1),
1866
- h("div", { class: sheet$1.classes.Wrapper },
1867
- h("div", { class: sheet$1.classes.HeaderContainer },
1868
- h(TextSpanView, { type: "p" }, intl.formatMessage({
1869
- id: `emailHeaderText`,
1870
- defaultMessage: states.verifyFailed
1871
- ? text.reverifyCodeHeaderText
1872
- : text.verifyCodeHeaderText,
1873
- }, { email: states.email }))),
1874
- states.emailResent && (h("sqm-form-message", { type: "success", exportparts: "successalert-icon" },
1875
- h("b", null, codeResentSuccessfully))),
1876
- h("div", { class: sheet$1.classes.InputsContainer },
1877
- h("div", { ref: refs.codeWrapperRef, class: sheet$1.classes.CodeInputContainer },
1878
- h("sl-input", { class: inputClass, name: "code" }),
1879
- h("sl-input", { class: inputClass, name: "code" }),
1880
- h("sl-input", { class: inputClass, name: "code" }),
1881
- h("sl-input", { class: inputClass, name: "code" }),
1882
- h("sl-input", { class: inputClass, name: "code" }),
1883
- h("sl-input", { class: inputClass, name: "code" })),
1884
- states.verifyFailed && (h("p", { class: sheet$1.classes.ErrorText }, text.invalidCodeText)),
1885
- h("sl-button", { class: sheet$1.classes.ContinueButton, onClick: callbacks.submitCode, disabled: states.loading || states.initialiseLoading, loading: states.loading || states.initialiseLoading, exportparts: "base: primarybutton-base", type: "primary" }, text.verifyText)),
1886
- h("div", { class: sheet$1.classes.FooterContainer },
1887
- h(TextSpanView, { type: "p" }, resendCodeText)))));
1888
- }
1889
-
1890
- const VerifyEmailWithCodeMutation = dist.gql `
1891
- mutation submitImpactPublisherEmail2FACode(
1892
- $user: UserIdInput!
1893
- $code: String!
1894
- ) {
1895
- submitImpactPublisherEmail2FACode(user: $user, code: $code) {
1896
- verifiedEmail
1897
- accessKey
1898
- }
1899
- }
1900
- `;
1901
- function useWidgetCodeVerification(props) {
1902
- const host = l();
1903
- const [_, setShowCode] = Pn(SHOW_CODE_NAMESPACE);
1904
- const email = Fn(VERIFICATION_EMAIL_NAMESPACE);
1905
- const [emailSent, setEmailSent] = useState(false);
1906
- const [emailResent, setEmailResent] = useState(false);
1907
- const [codeRef, setCodeRef] = useState(null);
1908
- const [validationError, setValidationError] = useState(false);
1909
- const [emailError, setEmailError] = useState(false);
1910
- const { initialized, verificationEmail, send: [sendEmail, { loading: sendLoading, errors: sendErrors }], verify: [verifyEmail, { loading: verifyLoading, errors: verifyErrors }], } = useVerificationEmail();
1911
- useEffect(() => {
1912
- if (!codeRef)
1913
- return;
1914
- const slInputs = codeRef.querySelectorAll("sl-input");
1915
- const codeElements = Array.from(slInputs).map((node) => node.shadowRoot.querySelector(`input[name="code"]`));
1916
- codeElements.forEach((element, idx) => {
1917
- element.addEventListener("focus", (e) => {
1918
- e.target.select();
1919
- });
1920
- element.addEventListener("keydown", (e) => {
1921
- if (e.key === "Backspace" && e.target.value === "") {
1922
- codeElements[Math.max(0, idx - 1)].focus();
1923
- }
1924
- });
1925
- element.addEventListener("input", (e) => {
1926
- const input = e.data;
1927
- if (!input)
1928
- return;
1929
- if (idx === codeElements.length - 1) {
1930
- e.target.value = input.slice(0, 1);
1931
- return;
1932
- }
1933
- if (input.length > 1) {
1934
- const rest = input.slice(1);
1935
- e.target.value = input.slice(0, 1);
1936
- codeElements[idx + 1].dispatchEvent(new InputEvent("input", {
1937
- inputType: "insertFromPaste",
1938
- data: rest,
1939
- }));
1940
- }
1941
- codeElements[idx + 1].focus();
1942
- });
1943
- });
1944
- }, [codeRef]);
1945
- const reset = () => {
1946
- setShowCode(false);
1947
- setValidationError(false);
1948
- };
1949
- const resendEmail = async () => {
1950
- // UI should only allow this to be called if initialized, but checking just in case
1951
- if (!initialized)
1952
- return;
1953
- const result = await sendEmail();
1954
- if (!result) {
1955
- setEmailError(true);
1956
- return;
1957
- }
1958
- if (emailSent)
1959
- setEmailResent(true);
1960
- setEmailSent(true);
1961
- };
1962
- const submitCode = async () => {
1963
- const slInputs = codeRef.querySelectorAll("sl-input");
1964
- const codeElements = Array.from(slInputs).map((node) => node.shadowRoot.querySelector(`input[name="code"]`));
1965
- if (codeElements.find((el) => !el.value)) {
1966
- setValidationError(true);
1967
- return;
1968
- }
1969
- let code = "";
1970
- codeElements.forEach((element) => {
1971
- code = `${code}${element.value}`;
1972
- });
1973
- // UI should only allow this to be called if initialized, but checking just in case
1974
- if (!initialized)
1975
- return;
1976
- setValidationError(false);
1977
- const res = await verifyEmail(code);
1978
- if (res === null || res === void 0 ? void 0 : res.success) {
1979
- props.onVerification(res.accessKey);
1980
- reset();
1981
- }
1982
- else {
1983
- setValidationError(true);
1984
- }
1985
- };
1986
- useEffect(() => {
1987
- // Wait for mutations to be determined from user lookup
1988
- if (!initialized)
1989
- return;
1990
- // email should already exist if user has completed email-verification
1991
- if (!email)
1992
- resendEmail();
1993
- else
1994
- setEmailSent(true);
1995
- }, [initialized]);
1996
- return {
1997
- refs: {
1998
- codeWrapperRef: setCodeRef,
1999
- },
2000
- states: {
2001
- email: verificationEmail,
2002
- emailResent,
2003
- resendError: sendErrors || verifyErrors,
2004
- initialiseLoading: !initialized,
2005
- loading: sendLoading || verifyLoading,
2006
- verifyFailed: !!validationError,
2007
- },
2008
- callbacks: {
2009
- resendEmail,
2010
- submitCode,
2011
- },
2012
- text: props.getTextProps(),
2013
- };
2014
- }
2015
-
2016
- const WidgetCodeVerification = class {
2017
- constructor(hostRef) {
2018
- registerInstance(this, hostRef);
2019
- /**
2020
- * @uiName Verify code widget header text
2021
- */
2022
- this.verifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
2023
- /**
2024
- * @uiName Reverify code widget header text
2025
- */
2026
- this.reverifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
2027
- /**
2028
- * Text displayed under verify button
2029
- * @uiName Resend code text
2030
- */
2031
- this.resendCodeText = "Didn't receive your code? {resendCodeLink}";
2032
- /**
2033
- * The link that appears in the resend code link
2034
- * @uiName Resend code label
2035
- */
2036
- this.resendCodeLabel = "Resend code";
2037
- /**
2038
- * Link text displayed under verify button
2039
- * @uiName Resend code text
2040
- */
2041
- this.codeResentSuccessfullyText = "Another code has been sent to {email}";
2042
- /**
2043
- * Error text displayed under verification input
2044
- * @uiName Invalid code text
2045
- */
2046
- this.invalidCodeText = "Please check your code and try again. If you’re still having trouble, try resending your code.";
2047
- /**
2048
- * @uiName Verify code button text
2049
- */
2050
- this.verifyText = "Verify";
2051
- /**
2052
- * Displayed when the email verification fails due to a network error. The participant can try refreshing the page.
2053
- * @uiName Network error message
2054
- */
2055
- this.networkErrorMessage = "An error occurred while verifying your email. Please refresh the page and try again.";
2056
- h$1(this);
2057
- }
2058
- disconnectedCallback() { }
2059
- getTextProps() {
2060
- return getProps(this);
2061
- }
2062
- render() {
2063
- const props = isDemo()
2064
- ? useDemoWidgetCodeVerification(this)
2065
- : useWidgetCodeVerification(this);
2066
- return h(WidgetCodeVerificationView, Object.assign({}, props));
2067
- }
2068
- };
2069
- function useDemoWidgetCodeVerification(props) {
2070
- const [emailResent, setEmailResent] = useState(false);
2071
- const setVerifiedContext = En(VERIFICATION_PARENT_NAMESPACE);
2072
- return cjs({
2073
- states: {
2074
- loading: false,
2075
- email: "test@example.com",
2076
- emailResent,
2077
- resendError: false,
2078
- verifyFailed: false,
2079
- },
2080
- refs: {
2081
- codeWrapperRef: () => { },
2082
- },
2083
- callbacks: {
2084
- resendEmail: async () => setEmailResent(true),
2085
- submitCode: async () => setVerifiedContext(true),
2086
- },
2087
- text: props.getTextProps(),
2088
- }, props.demoData || {}, { arrayMerge: (_, a) => a });
2089
- }
2090
-
2091
1648
  const GET_TAX_DOCUMENT = dist.gql `
2092
1649
  mutation createImpactPublisherTaxDocument(
2093
1650
  $vars: CreateImpactPublisherTaxDocumentInput!
@@ -2245,7 +1802,7 @@ function getDocumentType(p) {
2245
1802
  return undefined;
2246
1803
  }
2247
1804
 
2248
- const style$2 = {
1805
+ const style$1 = {
2249
1806
  DocusignStatusContainer: {
2250
1807
  width: "100%",
2251
1808
  minHeight: "600px",
@@ -2272,13 +1829,13 @@ const style$2 = {
2272
1829
  },
2273
1830
  },
2274
1831
  };
2275
- const sheet$2 = createStyleSheet(style$2);
2276
- const styleString$2 = sheet$2.toString();
1832
+ const sheet$1 = createStyleSheet(style$1);
1833
+ const styleString$1 = sheet$1.toString();
2277
1834
  const DocusignExpiredView = (props) => {
2278
- const { classes } = sheet$2;
1835
+ const { classes } = sheet$1;
2279
1836
  const { text } = props;
2280
1837
  return (h("div", null,
2281
- h("style", { type: "text/css" }, styleString$2),
1838
+ h("style", { type: "text/css" }, styleString$1),
2282
1839
  h("div", { class: classes.DocusignStatusContainer },
2283
1840
  h("sl-icon", { style: {
2284
1841
  width: "50px",
@@ -2290,10 +1847,10 @@ const DocusignExpiredView = (props) => {
2290
1847
  h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
2291
1848
  };
2292
1849
  const DocusignErrorView = (props) => {
2293
- const { classes } = sheet$2;
1850
+ const { classes } = sheet$1;
2294
1851
  const { text } = props;
2295
1852
  return (h("div", null,
2296
- h("style", { type: "text/css" }, styleString$2),
1853
+ h("style", { type: "text/css" }, styleString$1),
2297
1854
  h("div", { class: classes.DocusignStatusContainer },
2298
1855
  h("sl-icon", { style: {
2299
1856
  width: "50px",
@@ -2305,14 +1862,14 @@ const DocusignErrorView = (props) => {
2305
1862
  h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
2306
1863
  };
2307
1864
  const DocusignLoadingView = () => {
2308
- const { classes } = sheet$2;
1865
+ const { classes } = sheet$1;
2309
1866
  return (h("div", null,
2310
- h("style", { type: "text/css" }, styleString$2),
1867
+ h("style", { type: "text/css" }, styleString$1),
2311
1868
  h("div", { class: classes.DocusignStatusContainer },
2312
1869
  h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } }))));
2313
1870
  };
2314
1871
  const DocusignIframe = ({ states, data, callbacks, text, }) => {
2315
- const { classes } = sheet$2;
1872
+ const { classes } = sheet$1;
2316
1873
  const [iFrameHeight, setiFrameHeight] = useState("100%");
2317
1874
  const allowedDomains = [
2318
1875
  "referralsaasquatch.com",
@@ -2345,12 +1902,12 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
2345
1902
  return h(DocusignExpiredView, { text: text });
2346
1903
  // Wrap iFrame with container that shares the same height to push other elements down when absolute positioned
2347
1904
  return (h("div", { style: { height: iFrameHeight } },
2348
- h("style", { type: "text/css" }, styleString$2),
1905
+ h("style", { type: "text/css" }, styleString$1),
2349
1906
  h("div", { class: classes.IFrameContainer },
2350
1907
  h("iframe", { scrolling: "yes", frameBorder: "0", width: "100%", src: data.documentUrl, height: iFrameHeight }))));
2351
1908
  };
2352
1909
 
2353
- const style$3 = {
1910
+ const style$2 = {
2354
1911
  FormWrapper: {
2355
1912
  display: "flex",
2356
1913
  justifyContent: "flex-start",
@@ -2463,9 +2020,9 @@ const style$3 = {
2463
2020
  fontSize: "var(--sl-font-size-medium)",
2464
2021
  },
2465
2022
  };
2466
- const sheet$3 = createStyleSheet(style$3);
2467
- const styleString$3 = sheet$3.toString();
2468
- const vanillaStyle$2 = `
2023
+ const sheet$2 = createStyleSheet(style$2);
2024
+ const styleString$2 = sheet$2.toString();
2025
+ const vanillaStyle$1 = `
2469
2026
  :host{
2470
2027
  display: block;
2471
2028
  }
@@ -2490,11 +2047,11 @@ const vanillaStyle$2 = `
2490
2047
  const DocusignFormView = (props) => {
2491
2048
  var _a;
2492
2049
  const { states, states: { formState, documentTypeString }, callbacks, text, slots, } = props;
2493
- const { classes } = sheet$3;
2050
+ const { classes } = sheet$2;
2494
2051
  return (h("div", { class: classes.Container },
2495
2052
  h("style", { type: "text/css" },
2496
- styleString$3,
2497
- vanillaStyle$2),
2053
+ styleString$2,
2054
+ vanillaStyle$1),
2498
2055
  h("div", { class: classes.TextContainer },
2499
2056
  h("div", null,
2500
2057
  !states.hideSteps && (h("p", null, intl.formatMessage({
@@ -2504,7 +2061,7 @@ const DocusignFormView = (props) => {
2504
2061
  h("h3", null, text.taxForm),
2505
2062
  h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
2506
2063
  states.loadingError && (h("div", null,
2507
- h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$3.classes.ErrorAlertContainer },
2064
+ h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$2.classes.ErrorAlertContainer },
2508
2065
  h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
2509
2066
  h("strong", null, text.error.loadingErrorAlertHeader),
2510
2067
  h("br", null),
@@ -2514,7 +2071,7 @@ const DocusignFormView = (props) => {
2514
2071
  }, {
2515
2072
  supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
2516
2073
  })))),
2517
- ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$3.classes.ErrorAlertContainer },
2074
+ ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$2.classes.ErrorAlertContainer },
2518
2075
  h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
2519
2076
  h("strong", null, text.error.generalTitle),
2520
2077
  h("br", null),
@@ -2734,7 +2291,7 @@ const DemoDocusignIframe = ({ callbacks }) => {
2734
2291
  } }, h("span", null, "Placeholder for docusign iframe"), h("div", { style: { display: "flex", gap: "8px" } }, h("sl-button", { type: "primary", submit: true, exportparts: "base: primarybutton-base", onClick: callbacks.demo.onBack }, "Back to Step 2"), h("sl-button", { type: "primary", submit: true, exportparts: "base: primarybutton-base", onClick: callbacks.demo.onSubmit }, "Continue to Step 4")))));
2735
2292
  };
2736
2293
 
2737
- const style$4 = {
2294
+ const style$3 = {
2738
2295
  FormWrapper: {
2739
2296
  display: "flex",
2740
2297
  justifyContent: "flex-start",
@@ -2840,9 +2397,9 @@ const style$4 = {
2840
2397
  marginBottom: "var(--sl-spacing-small)",
2841
2398
  },
2842
2399
  };
2843
- const sheet$4 = createStyleSheet(style$4);
2844
- const styleString$4 = sheet$4.toString();
2845
- const vanillaStyle$3 = `
2400
+ const sheet$3 = createStyleSheet(style$3);
2401
+ const styleString$3 = sheet$3.toString();
2402
+ const vanillaStyle$2 = `
2846
2403
  :host{
2847
2404
  display: block;
2848
2405
  }
@@ -2861,11 +2418,11 @@ const vanillaStyle$3 = `
2861
2418
  const IndirectTaxFormView = (props) => {
2862
2419
  var _a;
2863
2420
  const { states, states: { formState }, callbacks, text, refs, slots, } = props;
2864
- const { classes } = sheet$4;
2421
+ const { classes } = sheet$3;
2865
2422
  return (h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
2866
2423
  h("style", { type: "text/css" },
2867
- styleString$4,
2868
- vanillaStyle$3),
2424
+ styleString$3,
2425
+ vanillaStyle$2),
2869
2426
  h("div", { class: classes.TextContainer },
2870
2427
  h("div", null,
2871
2428
  !states.hideSteps && (h("p", null,
@@ -2878,7 +2435,7 @@ const IndirectTaxFormView = (props) => {
2878
2435
  h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription),
2879
2436
  h("p", { class: classes.DescriptionText }, text.indirectTaxDescription)),
2880
2437
  states.loadingError && (h("div", null,
2881
- h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.AlertContainer },
2438
+ h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$3.classes.AlertContainer },
2882
2439
  h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
2883
2440
  h("strong", null, text.error.loadingErrorAlertHeader),
2884
2441
  h("br", null),
@@ -2888,7 +2445,7 @@ const IndirectTaxFormView = (props) => {
2888
2445
  }, {
2889
2446
  supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
2890
2447
  })))),
2891
- ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$4.classes.AlertContainer },
2448
+ ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$3.classes.AlertContainer },
2892
2449
  h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
2893
2450
  h("strong", null, text.error.generalTitle),
2894
2451
  h("br", null),
@@ -2898,7 +2455,7 @@ const IndirectTaxFormView = (props) => {
2898
2455
  }, {
2899
2456
  supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
2900
2457
  }))),
2901
- states.isPartner && (h("sl-alert", { type: "primary", open: true, class: sheet$4.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
2458
+ states.isPartner && (h("sl-alert", { type: "primary", open: true, class: sheet$3.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
2902
2459
  h("sl-icon", { slot: "icon", name: "info-circle" }),
2903
2460
  h("strong", null, text.isPartnerAlertHeader),
2904
2461
  h("br", null),
@@ -3771,18 +3328,6 @@ function useInvoiceTableDemo(props, emptyElement, loadingElement) {
3771
3328
  return demoProps;
3772
3329
  }
3773
3330
 
3774
- const InvoiceTableDataCell = class {
3775
- constructor(hostRef) {
3776
- registerInstance(this, hostRef);
3777
- this.ignored = true;
3778
- h$1(this);
3779
- }
3780
- disconnectedCallback() { }
3781
- render() {
3782
- return this.data;
3783
- }
3784
- };
3785
-
3786
3331
  const InvoiceTableDataColumn = class {
3787
3332
  constructor(hostRef) {
3788
3333
  registerInstance(this, hostRef);
@@ -3801,23 +3346,6 @@ const InvoiceTableDataColumn = class {
3801
3346
  }
3802
3347
  };
3803
3348
 
3804
- const RewardTableDateCell = class {
3805
- constructor(hostRef) {
3806
- registerInstance(this, hostRef);
3807
- this.ignored = true;
3808
- this.locale = "en";
3809
- h$1(this);
3810
- }
3811
- disconnectedCallback() { }
3812
- render() {
3813
- var _a, _b;
3814
- const date = !this.date
3815
- ? "-"
3816
- : (_b = (_a = luxon.DateTime.fromMillis(this.date)) === null || _a === void 0 ? void 0 : _a.setLocale(luxonLocale(this.locale))) === null || _b === void 0 ? void 0 : _b.toLocaleString(luxon.DateTime.DATE_MED);
3817
- return date;
3818
- }
3819
- };
3820
-
3821
3349
  const InvoiceTableDateColumn = class {
3822
3350
  constructor(hostRef) {
3823
3351
  registerInstance(this, hostRef);
@@ -3836,21 +3364,6 @@ const InvoiceTableDateColumn = class {
3836
3364
  }
3837
3365
  };
3838
3366
 
3839
- const InvoiceTableDownloadCell = class {
3840
- constructor(hostRef) {
3841
- registerInstance(this, hostRef);
3842
- this.ignored = true;
3843
- h$1(this);
3844
- }
3845
- disconnectedCallback() { }
3846
- render() {
3847
- const vanillaStyle = `svg:hover, svg:hover * {
3848
- cursor: pointer;
3849
- }`;
3850
- return (h(Host, null, h("style", null, vanillaStyle), !!this.downloadUrl && (h("a", { href: this.downloadUrl, target: "_blank" }, h("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M0.625 12.4375C0.79076 12.4375 0.949732 12.5033 1.06694 12.6206C1.18415 12.7378 1.25 12.8967 1.25 13.0625V16.1875C1.25 16.519 1.3817 16.837 1.61612 17.0714C1.85054 17.3058 2.16848 17.4375 2.5 17.4375H17.5C17.8315 17.4375 18.1495 17.3058 18.3839 17.0714C18.6183 16.837 18.75 16.519 18.75 16.1875V13.0625C18.75 12.8967 18.8158 12.7378 18.9331 12.6206C19.0503 12.5033 19.2092 12.4375 19.375 12.4375C19.5408 12.4375 19.6997 12.5033 19.8169 12.6206C19.9342 12.7378 20 12.8967 20 13.0625V16.1875C20 16.8505 19.7366 17.4864 19.2678 17.9553C18.7989 18.4241 18.163 18.6875 17.5 18.6875H2.5C1.83696 18.6875 1.20107 18.4241 0.732233 17.9553C0.263392 17.4864 0 16.8505 0 16.1875V13.0625C0 12.8967 0.065848 12.7378 0.183058 12.6206C0.300269 12.5033 0.45924 12.4375 0.625 12.4375Z", fill: "#717179" }), h("path", { d: "M9.5575 14.88C9.61556 14.9382 9.68453 14.9844 9.76046 15.0159C9.83639 15.0474 9.91779 15.0636 10 15.0636C10.0822 15.0636 10.1636 15.0474 10.2395 15.0159C10.3155 14.9844 10.3844 14.9382 10.4425 14.88L14.1925 11.13C14.3099 11.0126 14.3758 10.8535 14.3758 10.6875C14.3758 10.5215 14.3099 10.3624 14.1925 10.245C14.0751 10.1276 13.916 10.0617 13.75 10.0617C13.584 10.0617 13.4249 10.1276 13.3075 10.245L10.625 12.9288V1.9375C10.625 1.77174 10.5592 1.61277 10.4419 1.49556C10.3247 1.37835 10.1658 1.3125 10 1.3125C9.83424 1.3125 9.67527 1.37835 9.55806 1.49556C9.44085 1.61277 9.375 1.77174 9.375 1.9375V12.9288L6.6925 10.245C6.57514 10.1276 6.41597 10.0617 6.25 10.0617C6.08403 10.0617 5.92486 10.1276 5.8075 10.245C5.69014 10.3624 5.62421 10.5215 5.62421 10.6875C5.62421 10.8535 5.69014 11.0126 5.8075 11.13L9.5575 14.88Z", fill: "#717179" }))))));
3851
- }
3852
- };
3853
-
3854
3367
  const InvoiceTableGenericColumn = class {
3855
3368
  constructor(hostRef) {
3856
3369
  registerInstance(this, hostRef);
@@ -3873,7 +3386,7 @@ const PayPalIcon = () => (h("svg", { xmlns: "http://www.w3.org/2000/svg", width:
3873
3386
  h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M3.71826 -0.15332H9.30607C10.8808 -0.15332 12.7478 -0.099593 13.9903 1.00853C14.8208 1.754 15.2593 2.936 15.1597 4.21203C14.8142 8.52364 12.2694 10.9347 8.84762 10.9347H6.09026C5.61852 10.9347 5.31288 11.2503 5.18 12.0965L4.40926 17.0461C4.35611 17.3685 4.22323 17.5566 3.97739 17.5767H0.53567C0.156948 17.5767 0.0174187 17.2879 0.117082 16.6432L2.59539 0.786908C2.69505 0.148896 3.04055 -0.15332 3.71826 -0.15332Z", fill: "#113984" }),
3874
3387
  h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M5.25973 11.5995L6.23643 5.36045C6.32281 4.81646 6.61515 4.54782 7.20649 4.54782H12.7877C13.7112 4.54782 14.4554 4.69557 15.0401 4.96421C14.4819 8.799 12.0236 10.9347 8.80775 10.9347H6.06368C5.6916 10.9347 5.42583 11.1227 5.25973 11.5995Z", fill: "#172C70" })));
3875
3388
 
3876
- const style$5 = {
3389
+ const style$4 = {
3877
3390
  CardContainer: {
3878
3391
  display: "grid",
3879
3392
  gridTemplateColumns: "1fr",
@@ -4007,7 +3520,7 @@ const style$5 = {
4007
3520
  },
4008
3521
  };
4009
3522
  function PayoutDetailsCardView(props) {
4010
- const sheet = createStyleSheet(style$5);
3523
+ const sheet = createStyleSheet(style$4);
4011
3524
  const styleString = sheet.toString();
4012
3525
  const { classes } = sheet;
4013
3526
  const { states, text } = props;
@@ -4137,6 +3650,10 @@ const PayoutDetailsCard = class {
4137
3650
  * @uiName Payout missing information subtext
4138
3651
  */
4139
3652
  this.payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
3653
+ /**
3654
+ * @componentState { "title": "Loading", "props": { "states": { "loading": true } } }
3655
+ */
3656
+ this.stateController = "{}";
4140
3657
  h$1(this);
4141
3658
  }
4142
3659
  disconnectedCallback() { }
@@ -4174,1220 +3691,7 @@ function useDemoPayoutDetailsCard(props) {
4174
3691
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
4175
3692
  }
4176
3693
 
4177
- const TableCell = class {
4178
- constructor(hostRef) {
4179
- registerInstance(this, hostRef);
4180
- /** @uiName Column span */
4181
- this.colspan = 1;
4182
- /** @uiName Padding */
4183
- this.padding = "15px 10px";
4184
- }
4185
- render() {
4186
- return (h(Host, { style: { display: "contents" } }, h("td", { colSpan: this.colspan, style: { padding: this.padding } }, h("slot", null))));
4187
- }
4188
- };
4189
-
4190
- const TableRow = class {
4191
- constructor(hostRef) {
4192
- registerInstance(this, hostRef);
4193
- /**
4194
- * @uiName Border
4195
- */
4196
- this.border = "1px solid #EAEAEA";
4197
- }
4198
- render() {
4199
- return (h(Host, { style: { display: "contents" } }, h("tr", { style: { border: this.border } }, h("slot", null))));
4200
- }
4201
- };
4202
-
4203
- function getCurrentStep(user) {
4204
- var _a, _b;
4205
- if (!((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.connected) || !((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher)) {
4206
- return "/1";
4207
- }
4208
- const { requiredTaxDocumentType, currentTaxDocument, withdrawalSettings, brandedSignup, } = user.impactConnection.publisher;
4209
- // If they do have a required document, look at current document
4210
- if (requiredTaxDocumentType && !currentTaxDocument)
4211
- return "/3";
4212
- if (!withdrawalSettings && brandedSignup)
4213
- return "/4";
4214
- return "/dashboard";
4215
- }
4216
- function useTaxAndCash() {
4217
- var _a, _b, _c, _d, _e;
4218
- const host = _();
4219
- const user = J();
4220
- const locale = L();
4221
- // State for current step of form
4222
- const [step, setStep] = In({
4223
- namespace: TAX_CONTEXT_NAMESPACE,
4224
- initialValue: "/loading",
4225
- });
4226
- // State for when to hide steps, or override certain actions
4227
- const [context, _setContext] = In({
4228
- namespace: TAX_FORM_CONTEXT_NAMESPACE,
4229
- initialValue: {},
4230
- });
4231
- // State to carry user form information into step 2
4232
- const [userFormContext, _setUserFormContext] = In({
4233
- namespace: USER_FORM_CONTEXT_NAMESPACE,
4234
- initialValue: {
4235
- firstName: undefined,
4236
- lastName: undefined,
4237
- email: undefined,
4238
- countryCode: undefined,
4239
- currency: undefined,
4240
- },
4241
- });
4242
- const [_currenciesContext, setCurrenciesContext] = In({
4243
- namespace: CURRENCIES_NAMESPACE,
4244
- initialValue: [],
4245
- });
4246
- const [_countriesContext, _setCountriesContext] = In({
4247
- namespace: COUNTRIES_NAMESPACE,
4248
- initialValue: [],
4249
- });
4250
- const [_sortedCountriesContext, setSortedCountriesContext] = In({
4251
- namespace: SORTED_COUNTRIES_NAMESPACE,
4252
- initialValue: [],
4253
- });
4254
- const { data, errors } = Sn({
4255
- namespace: USER_QUERY_NAMESPACE,
4256
- query: GET_USER,
4257
- skip: !user,
4258
- options: {
4259
- batch: false,
4260
- },
4261
- });
4262
- const countryCode = ((_c = (_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) === null || _c === void 0 ? void 0 : _c.countryCode) ||
4263
- userFormContext.countryCode;
4264
- Sn({
4265
- namespace: COUNTRIES_QUERY_NAMESPACE,
4266
- query: GET_COUNTRIES,
4267
- skip: !user,
4268
- });
4269
- const { data: financeNetworkData, refetch } = Sn({
4270
- namespace: FINANCE_NETWORK_SETTINGS_NAMESPACE,
4271
- query: GET_FINANCE_NETWORK_SETTINGS,
4272
- skip: !user,
4273
- variables: {
4274
- filter: getFinanceNetworkFilter(),
4275
- },
4276
- });
4277
- const { data: currenciesData } = Sn({
4278
- namespace: CURRENCIES_QUERY_NAMESPACE,
4279
- query: GET_CURRENCIES,
4280
- skip: !user,
4281
- variables: {
4282
- locale,
4283
- },
4284
- });
4285
- const supportedCurrencies = useMemo(() => {
4286
- var _a, _b;
4287
- // Filter out any currencies not supported by finance network settings
4288
- const allValidCurrencies = (_b = (_a = financeNetworkData === null || financeNetworkData === void 0 ? void 0 : financeNetworkData.impactFinanceNetworkSettings) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.reduce((agg, settings) => {
4289
- var _a, _b;
4290
- const currency = (_b = (_a = currenciesData === null || currenciesData === void 0 ? void 0 : currenciesData.currencies) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.find((currency) => currency.currencyCode === settings.currency);
4291
- // Currency not in supported list
4292
- if (!currency)
4293
- return agg;
4294
- // Currency already added to list
4295
- if (agg.find((currency) => currency.currencyCode === settings.currency))
4296
- return agg;
4297
- // Currency not supported by selected country
4298
- if (userFormContext.countryCode &&
4299
- settings.countryCode !== countryCode)
4300
- return agg;
4301
- return [...agg, currency];
4302
- }, []);
4303
- return allValidCurrencies;
4304
- }, [financeNetworkData, countryCode]);
4305
- const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
4306
- const sortByName = (a, b) => a.displayName < b.displayName ? -1 : 1;
4307
- const paymentOptions = (_d = financeNetworkData === null || financeNetworkData === void 0 ? void 0 : financeNetworkData.impactFinanceNetworkSettings) === null || _d === void 0 ? void 0 : _d.data;
4308
- // filter out any duplicate countries and null countryCode
4309
- const availableCountries = useMemo(() => new Set(paymentOptions === null || paymentOptions === void 0 ? void 0 : paymentOptions.map((option) => option.countryCode).filter((value) => value)), [paymentOptions]);
4310
- const _topCountries = ["CA", "GB", "US"];
4311
- const sortedCountries = useMemo(() => Array.from(availableCountries)
4312
- .map((countryCode) => getCountryObj({ countryCode, locale: intlLocale }))
4313
- .sort(sortByName)
4314
- .reduce((prev, countryObj) => {
4315
- if (_topCountries.includes(countryObj.countryCode))
4316
- return [countryObj, ...prev];
4317
- return [...prev, countryObj];
4318
- }, []), [availableCountries]);
4319
- useEffect(() => {
4320
- if (sortedCountries)
4321
- setSortedCountriesContext(sortedCountries);
4322
- }, [sortedCountries]);
4323
- useEffect(() => {
4324
- if (supportedCurrencies)
4325
- setCurrenciesContext(supportedCurrencies);
4326
- }, [supportedCurrencies]);
4327
- useEffect(() => {
4328
- if (errors) {
4329
- setStep("/error");
4330
- return;
4331
- }
4332
- if (!host || !user)
4333
- return;
4334
- if (data) {
4335
- const user = data === null || data === void 0 ? void 0 : data.user;
4336
- if (!user || step !== "/loading")
4337
- return;
4338
- const currentStep = getCurrentStep(user);
4339
- setStep(currentStep);
4340
- }
4341
- }, [host, user, (_e = data === null || data === void 0 ? void 0 : data.user) === null || _e === void 0 ? void 0 : _e.email, errors]);
4342
- function getFinanceNetworkFilter() {
4343
- var _a, _b, _c;
4344
- if (step === "/1")
4345
- return {};
4346
- if (step === "/4")
4347
- return { currency_eq: (_c = (_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) === null || _c === void 0 ? void 0 : _c.currency };
4348
- if (countryCode)
4349
- return {
4350
- countryCode_eq: countryCode,
4351
- };
4352
- return {};
4353
- }
4354
- return {
4355
- step,
4356
- setStep,
4357
- context,
4358
- namespace: Mn(TAX_CONTEXT_NAMESPACE),
4359
- loading: step === "/loading",
4360
- };
4361
- }
4362
-
4363
- const TaxAndCashMonolith = class {
4364
- constructor(hostRef) {
4365
- registerInstance(this, hostRef);
4366
- /*---------------------------------------------------------------------------------
4367
- !IMPORTANT!: Make sure to also change the prop names in the respective component
4368
- -----------------------------------------------------------------------------------*/
4369
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4370
- STEP 1 PROPS:
4371
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
4372
- /**
4373
- * @uiName First name field label
4374
- * @uiGroup Step 1 Properties
4375
- */
4376
- this.step1_firstName = "First name";
4377
- /**
4378
- * @uiName Last name field label
4379
- * @uiGroup Step 1 Properties
4380
- */
4381
- this.step1_lastName = "Last name";
4382
- /**
4383
- * @uiName Email field label
4384
- * @uiGroup Step 1 Properties
4385
- */
4386
- this.step1_email = "Email";
4387
- /**
4388
- * @uiName Country field label
4389
- * @uiGroup Step 1 Properties
4390
- */
4391
- this.step1_country = "Country";
4392
- /**
4393
- * @uiName Phone number field label
4394
- * @uiGroup Step 1 Properties
4395
- */
4396
- this.step1_phoneNumber = "Phone number";
4397
- /**
4398
- * @uiName Address field label
4399
- * @uiGroup Step 1 Properties
4400
- */
4401
- this.step1_address = "Address";
4402
- /**
4403
- * @uiName City field label
4404
- * @uiGroup Step 1 Properties
4405
- */
4406
- this.step1_city = "City";
4407
- /**
4408
- * @uiName State field label for states
4409
- * @uiGroup Step 1 Properties
4410
- */
4411
- this.step1_state = "State";
4412
- /**
4413
- * @uiName State field label for provinces
4414
- * @uiGroup Step 1 Properties
4415
- */
4416
- this.step1_province = "Province";
4417
- /**
4418
- * @uiName State field label for regions
4419
- * @uiGroup Step 1 Properties
4420
- */
4421
- this.step1_region = "Region";
4422
- /**
4423
- * @uiName Postal code field label
4424
- * @uiGroup Step 1 Properties
4425
- */
4426
- this.step1_postalCode = "Postal code";
4427
- /**
4428
- * @uiName Currency field label
4429
- * @uiGroup Step 1 Properties
4430
- */
4431
- this.step1_currency = "Currency";
4432
- /**
4433
- * @uiName Currency field help text
4434
- * @uiGroup Step 1 Properties
4435
- */
4436
- this.step1_currencyHelpText = "Choose your preferred payout currency";
4437
- /**
4438
- * Edit the property called terms and conditions text to change what's displayed for {termsAndConditionsLink}.
4439
- * @uiName Terms and conditions checkbox
4440
- * @uiGroup Step 1 Properties
4441
- */
4442
- this.step1_allowBankingCollection = "I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information";
4443
- /**
4444
- * @uiName Step 1 title
4445
- * @uiGroup Step 1 Properties
4446
- */
4447
- this.step1_personalInformation = "Personal Information";
4448
- /**
4449
- * The link text that appears in the terms and conditions checkbox
4450
- * @uiName Terms and conditions text
4451
- * @uiGroup Step 1 Properties
4452
- * @uiWidget textArea
4453
- */
4454
- this.step1_termsAndConditionsLabel = "terms and conditions";
4455
- /**
4456
- * The link that appears in the terms and conditions checkbox
4457
- * @uiName Terms and conditions link
4458
- * @uiGroup Step 1 Properties
4459
- */
4460
- this.step1_termsAndConditionsLink = "https://terms.advocate.impact.com/PayoutTermsAndConditions.html";
4461
- /**
4462
- * Placeholder text displayed in the currency search dropdown
4463
- * @uiName Currency field placeholder text
4464
- * @uiGroup Step 1 Properties
4465
- */
4466
- this.step1_searchForCurrencyText = "Search for currency..";
4467
- /**
4468
-
4469
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4470
- STEP 2 PROPS:
4471
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
4472
- /**
4473
- * @uiName Step 2 title
4474
- * @uiGroup Step 2 Properties
4475
- */
4476
- this.step2_indirectTax = "Indirect Tax";
4477
- /**
4478
- * Displayed under the title of this step.
4479
- * @uiName Step 2 description
4480
- * @uiGroup Step 2 Properties
4481
- * @uiWidget textArea
4482
- */
4483
- this.step2_indirectTaxDescription = "Indirect taxes (e.g. VAT, HST, GST) are transaction based taxes often applied to goods and services. Service providers are typically required to register with their tax authority and collect these taxes on behalf governments.";
4484
- /**
4485
- * Displayed with indirect tax registration options.
4486
- * @uiName Indirect tax details section title
4487
- * @uiGroup Step 2 Properties
4488
- */
4489
- this.step2_indirectTaxDetails = "Indirect tax details";
4490
- /**
4491
- * @uiName Registered for indirect tax option
4492
- * @uiGroup Step 2 Properties
4493
- * @uiWidget textArea
4494
- *
4495
- */
4496
- this.step2_otherRegion = "Registered for indirect tax";
4497
- /**
4498
- * Selecting this option will display fields to enter indirect tax details.
4499
- * @uiName Registered for indirect tax option description
4500
- * @uiGroup Step 2 Properties
4501
- */
4502
- this.step2_otherRegionSubtext = "If you’ve registered with your tax authority, add your information to stay tax compliant.";
4503
- /**
4504
- * @uiName Not registered for indirect tax option
4505
- * @uiGroup Step 2 Properties
4506
- * @uiWidget textArea
4507
- */
4508
- this.step2_notRegistered = "Not registered for indirect tax";
4509
- /**
4510
- * Participants based in the US are considered not registered.
4511
- * @uiName Not registered for indirect tax option description
4512
- * @uiGroup Step 2 Properties
4513
- */
4514
- this.step2_notRegisteredSubtext = "If you’ve never set up indirect tax with your tax authority, then you’re likely not considered registered.";
4515
- /**
4516
- * @uiName Region of indirect tax field label
4517
- * @uiGroup Step 2 Properties
4518
- */
4519
- this.step2_selectedRegion = "Country / region of indirect tax";
4520
- /**
4521
- * @uiName Indirect tax number field label
4522
- * @uiGroup Step 2 Properties
4523
- */
4524
- this.step2_indirectTaxNumber = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}}";
4525
- /**
4526
- * @uiName Province field label
4527
- * @uiGroup Step 2 Properties
4528
- */
4529
- this.step2_province = "Province";
4530
- /**
4531
- * @uiName Missing indirect tax number error message
4532
- * @uiGroup Step 2 Properties
4533
- */
4534
- this.step2_indirectTaxNumberError = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}} is required";
4535
- /**
4536
- * Displayed to participants registered for QST.
4537
- * @uiName QST number field label
4538
- * @uiGroup Step 2 Properties
4539
- */
4540
- this.step2_qstNumber = "QST number";
4541
- /**
4542
- * Displayed to participants registered for indirect tax in Quebec, Canada.
4543
- * @uiName QST tax checkbox
4544
- * @uiGroup Step 2 Properties
4545
- */
4546
- this.step2_isRegisteredQST = "I am registered for QST Tax";
4547
- /**
4548
- * Displayed to participants registered for indirect tax in Spain.
4549
- * @uiName Spain income tax checkbox
4550
- * @uiGroup Step 2 Properties
4551
- * @uiWidget textArea
4552
- */
4553
- this.step2_isRegisteredSubRegionIncomeTax = "I am an individual registered for Income Tax purposes in Spain, and withholding tax will apply to any payments made to me.";
4554
- /**
4555
- * Displayed to participants registered in Spain.
4556
- * @uiName Sub-region of indirect tax field label
4557
- * @uiGroup Step 2 Properties
4558
- */
4559
- this.step2_subRegion = "Sub-region";
4560
- /**
4561
- * @uiName Income tax field label
4562
- * @uiGroup Step 2 Properties
4563
- */
4564
- this.step2_subRegionTaxNumberLabel = "Income Tax Number";
4565
- /**
4566
- * Communicate that after this step, only Support can change personal and indirect tax information.
4567
- * @uiName Submission confirmation alert
4568
- * @uiGroup Step 2 Properties
4569
- * @uiWidget textArea
4570
- */
4571
- this.step2_cannotChangeInfoAlert = "Changes to your personal and indirect tax information can only be made through our {supportLink} after you complete this step. Make sure these are correct before continuing.";
4572
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4573
- STEP 3 PROPS:
4574
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
4575
- /**
4576
- * @uiName Step 3 title
4577
- * @uiGroup Step 3 Properties
4578
- */
4579
- this.step3_taxForm = "Tax form";
4580
- /**
4581
- * Display the type of tax form that the participant must submit.
4582
- * @uiName Tax form name
4583
- * @uiGroup Step 3 Properties
4584
- */
4585
- this.step3_taxFormLabel = "{documentType} Tax Form";
4586
- /**
4587
- * @uiName Participant type field label
4588
- * @uiGroup Step 3 Properties
4589
- */
4590
- this.step3_participantType = "Participant type";
4591
- /**
4592
- * An option for the participant type field. Used to determine which W-8 form is required.
4593
- * @uiName Business representative participant type label
4594
- * @uiGroup Step 3 Properties
4595
- */
4596
- this.step3_businessEntity = "I represent a business";
4597
- /**
4598
- * An option for the participant type field. Used to determine which W-8 form is required.
4599
- * @uiName Individual participant type label
4600
- * @uiGroup Step 3 Properties
4601
- */
4602
- this.step3_individualParticipant = "I am an individual participant";
4603
- /**
4604
- * Displayed at the top of the page to participants based in the US.
4605
- * @uiName W-9 tax form description
4606
- * @uiGroup Step 3 Properties
4607
- * @uiWidget textArea
4608
- */
4609
- this.step3_taxFormDescription = "Participants based in the US need to submit a {documentType} form.";
4610
- /**
4611
- * Displayed at the top of the page to individuals joining a US program who reside outside the country.
4612
- * @uiName W-8 BEN tax form description
4613
- * @uiGroup Step 3 Properties
4614
- * @uiWidget textArea
4615
- */
4616
- this.step3_taxFormDescriptionIndividualParticipant = "Participants residing outside of the US, joining the referral program of a US-based company, need to submit a {documentType} form.";
4617
- /**
4618
- * Displayed at the top of the page to participants representing a business.
4619
- * @uiName W-8 BEN-E tax form description
4620
- * @uiGroup Step 3 Properties
4621
- * @uiWidget textArea
4622
- */
4623
- this.step3_taxFormDescriptionBusinessEntity = "Participants residing outside of the US who represent a business entity need to submit a {documentType} form.";
4624
- /**
4625
- * This appears inside the Docusign frame.
4626
- * @uiName Docusign session expired message
4627
- * @uiGroup Step 3 Properties
4628
- * @uiWidget textArea
4629
- */
4630
- this.step3_docusignExpired = "For your security and privacy, we automatically end your session after 20 minutes of inactivity. Please refresh and re-enter your tax information to continue.";
4631
- /**
4632
- * Remind participants their session will time out after 20 minutes of inactivity.
4633
- * @uiName Docusign timed session message
4634
- * @uiGroup Step 3 Properties
4635
- * @uiWidget textArea
4636
- */
4637
- this.step3_docusignSessionWarning = "For your security, we automatically end your session when you have not interacted with the form after 20 minutes.";
4638
- /**
4639
- * This appears inside the Docusign frame.
4640
- * @uiName Docusign form error message
4641
- * @uiGroup Step 3 Properties
4642
- * @uiWidget textArea
4643
- */
4644
- this.step3_docusignError = "There was a problem displaying this form. Please refresh the page. If this problem continues, contact our {supportLink}.";
4645
- /**
4646
- * @uiName Refresh page button label
4647
- * @uiGroup Step 3 Properties
4648
- */
4649
- this.step3_refreshButton = "Refresh Page";
4650
- /**
4651
- * @uiName Exit button text
4652
- * @uiGroup Step 3 Properties
4653
- */
4654
- this.step3_exitButton = "Exit";
4655
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4656
- STEP 4 PROPS:
4657
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
4658
- /**
4659
- * @uiName Step 4 title
4660
- * @uiGroup Step 4 Properties
4661
- */
4662
- this.step4_taxAndPayouts = "Payouts";
4663
- /**
4664
- * @uiName Direct to bank payout option
4665
- * @uiGroup Step 4 Properties
4666
- */
4667
- this.step4_directlyToBankAccount = "Directly to my bank account";
4668
- /**
4669
- * @uiName PayPal payout option
4670
- * @uiGroup Step 4 Properties
4671
- */
4672
- this.step4_toPayPalAccount = "PayPal (2% processing fee capped to {feeCap})";
4673
- /**
4674
- * @uiName Threshold balance payment schedule option
4675
- * @uiGroup Step 4 Properties
4676
- */
4677
- this.step4_paymentScheduleBalanceThreshold = "Pay me when my balance reaches a threshold";
4678
- /**
4679
- * @uiName Fixed day payment schedule option
4680
- * @uiGroup Step 4 Properties
4681
- */
4682
- this.step4_paymentScheduleFixedDay = "Pay me on a fixed day of the month";
4683
- /**
4684
- * Let the participant choose what day of the month they’ll get paid
4685
- * @uiName Payment day field label
4686
- * @uiGroup Step 4 Properties
4687
- */
4688
- this.step4_paymentDaySelectLabel = "Payment Day";
4689
- /**
4690
- * Participant use this field to select the balance at which they want to be paid
4691
- * @uiName Payment threshold field label
4692
- * @uiGroup Step 4 Properties
4693
- */
4694
- this.step4_paymentThresholdSelectLabel = "Payment threshold";
4695
- /**
4696
- * One of two payment day options
4697
- * @uiName First of month payday option
4698
- * @uiGroup Step 4 Properties
4699
- */
4700
- this.step4_paymentDayFirstOfMonthLabelText = "1st of the month";
4701
- /**
4702
- * One of two payment day options
4703
- * @uiName Fifteenth of month payday option
4704
- * @uiGroup Step 4 Properties
4705
- */
4706
- this.step4_paymentDayFifteenthOfMonthLabelText = "15th of the month";
4707
- /**
4708
- * @uiName Payment method section header
4709
- * @uiGroup Step 4 Properties
4710
- */
4711
- this.step4_paymentMethod = "Payment method";
4712
- /**
4713
- * @uiName Payment schedule section header
4714
- * @uiGroup Step 4 Properties
4715
- */
4716
- this.step4_paymentSchedule = "Payment schedule";
4717
- /**
4718
- * @uiName Payment method section description
4719
- * @uiGroup Step 4 Properties
4720
- */
4721
- this.step4_paymentMethodSubtext = "Payouts will be sent from our referral program provider, impact.com.";
4722
- /**
4723
- * Displayed to participants who choose PayPal as their payout method
4724
- * @uiName PayPal email field label
4725
- * @uiGroup Step 4 Properties
4726
- */
4727
- this.step4_payPalInputLabel = "PayPal email";
4728
- /**
4729
- * @uiName Bank country field label
4730
- * @uiGroup Step 4 Properties
4731
- */
4732
- this.step4_bankLocationLabel = "Bank country location";
4733
- /**
4734
- * @uiName Beneficiary account field label
4735
- * @uiGroup Step 4 Properties
4736
- */
4737
- this.step4_beneficiaryAccountNameLabel = "Beneficiary account name";
4738
- /**
4739
- * @uiName Bank account type field label
4740
- * @uiGroup Step 4 Properties
4741
- */
4742
- this.step4_bankAccountTypeLabel = "Bank account type";
4743
- /**
4744
- * @uiName Checking account option
4745
- * @uiGroup Step 4 Properties
4746
- */
4747
- this.step4_checkingSelectItemLabel = "Checking";
4748
- /**
4749
- * Label text for the savings account type select item
4750
- * @uiName Savings account options
4751
- * @uiGroup Step 4 Properties
4752
- */
4753
- this.step4_savingsSelectItemLabel = "Savings";
4754
- /**
4755
- * @uiName Bank account number field label
4756
- * @uiGroup Step 4 Properties
4757
- */
4758
- this.step4_bankAccountNumberLabel = "Bank account number";
4759
- /**
4760
- * @uiName IBAN field label
4761
- * @uiGroup Step 4 Properties
4762
- */
4763
- this.step4_ibanLabel = "IBAN";
4764
- /**
4765
- * @uiName SWIFT code field label
4766
- * @uiGroup Step 4 Properties
4767
- */
4768
- this.step4_swiftCodeLabel = "SWIFT code";
4769
- /**
4770
- * @uiName Routing code field label
4771
- * @uiGroup Step 4 Properties
4772
- */
4773
- this.step4_routingCodeLabel = "{bankCountry, select, AU {BSB number} CA {Routing number} CZ {Bank code} HK {Clearing code} SG {Clearing code} US {ABA routing number} NZ {BSB number} ZA {Bank/Branch number} IN {IFSC} CNY {CNAPS} other {Routing code} }";
4774
- /**
4775
- * @uiName Bank name field label
4776
- * @uiGroup Step 4 Properties
4777
- */
4778
- this.step4_bankNameLabel = "Bank name";
4779
- /**
4780
- * @uiName Classification entity field label
4781
- * @uiGroup Step 4 Properties
4782
- */
4783
- this.step4_classificationEntityLabel = "Classification entity";
4784
- /**
4785
- * One of three options listed for the classification field
4786
- * @uiName Business classification option
4787
- * @uiGroup Step 4 Properties
4788
- */
4789
- this.step4_businessSelectItemLabel = "Business";
4790
- /**
4791
- * One of three options listed for the classification field
4792
- * @uiName Individual classification option
4793
- * @uiGroup Step 4 Properties
4794
- */
4795
- this.step4_individualSelectItemLabel = "Individual";
4796
- /**
4797
- * One of three options listed for the classification field
4798
- * @uiName Foreign classification option
4799
- * @uiGroup Step 4 Properties
4800
- */
4801
- this.step4_foreignSelectItemLabel = "Foreign";
4802
- /**
4803
- * @uiName Classification CPF field label
4804
- * @uiGroup Step 4 Properties
4805
- */
4806
- this.step4_classificationCPFLabel = "Classification CPF";
4807
- /**
4808
- * @uiName Patronymic name field label
4809
- * @uiGroup Step 4 Properties
4810
- */
4811
- this.step4_patronymicNameLabel = "Patronymic name";
4812
- /**
4813
- * @uiName VO code field label
4814
- * @uiGroup Step 4 Properties
4815
- */
4816
- this.step4_voCodeLabel = "VO code";
4817
- /**
4818
- * @uiName Agency code field label
4819
- * @uiGroup Step 4 Properties
4820
- */
4821
- this.step4_agencyCodeLabel = "Agency code";
4822
- /**
4823
- * @uiName Branch code field label
4824
- * @uiGroup Step 4 Properties
4825
- */
4826
- this.step4_branchCodeLabel = "Branch code";
4827
- /**
4828
- * Label text for the classification input field
4829
- * @uiName Classification field label
4830
- * @uiGroup Step 4 Properties
4831
- */
4832
- this.step4_classificationLabel = "Classification";
4833
- /**
4834
- * @uiName Taxpayer ID field label
4835
- * @uiGroup Step 4 Properties
4836
- */
4837
- this.step4_taxPayerIdLabel = "Beneficiary INN";
4838
- /**
4839
- * @uiName Bank address field label
4840
- * @uiGroup Step 4 Properties
4841
- */
4842
- this.step4_bankAddressLabel = "Bank address";
4843
- /**
4844
- * @uiName Bank city field label
4845
- * @uiGroup Step 4 Properties
4846
- */
4847
- this.step4_bankCityLabel = "Bank city";
4848
- /**
4849
- * @uiName Bank province/state field label
4850
- * @uiGroup Step 4 Properties
4851
- */
4852
- this.step4_bankStateLabel = "Bank Province / State";
4853
- /**
4854
- * @uiName Bank postal code field label
4855
- * @uiGroup Step 4 Properties
4856
- */
4857
- this.step4_bankPostalCodeLabel = "Bank postal code";
4858
- /**
4859
- * Default payment method to the participants’ bank account.
4860
- * @uiName EFT withdrawal payment method
4861
- * @uiGroup Step 4 Properties
4862
- */
4863
- this.step4_eftWithdrawalLabel = "EFT Withdrawal (free)";
4864
- /**
4865
- * @uiName FX Wire Processing fee text
4866
- * @uiGroup Step 4 Properties
4867
- */
4868
- this.step4_fxWireProcessingFeeLabel = "FX Wire (Processing Fee {currency}{defaultFxFee}.00)";
4869
- /**
4870
- * @uiName Text for verify email dialog
4871
- * @uiGroup Step 4 Properties
4872
- */
4873
- this.step4_verifyEmailHeaderText = "Verify your email";
4874
- /**
4875
- * @uiName Verify code widget header text
4876
- * @uiGroup Step 4 Properties
4877
- */
4878
- this.step4_verifyEmailDescriptionText = "Verify your email to update your payment settings. Enter the code sent to {email} from our referral provider, impact.com.";
4879
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4880
- DASHBOARD PROPS:
4881
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
4882
- /**
4883
- * @uiName Active tax form badge label
4884
- * @uiGroup Dashboard Properties
4885
- */
4886
- this.dashboard_statusTextActive = "Active";
4887
- /**
4888
- * @uiName Invalid tax form badge label
4889
- * @uiGroup Dashboard Properties
4890
- */
4891
- this.dashboard_statusTextNotActive = "Invalid Tax Form";
4892
- /**
4893
- * Displayed when the participant submitted their form but it is awaiting review.
4894
- *
4895
- * @uiName Not verified tax form badge label
4896
- * @uiGroup Dashboard Properties
4897
- */
4898
- this.dashboard_statusTextNotVerified = "Not Verified";
4899
- /**
4900
- * Additional text displayed next to the tax form's status badge
4901
- *
4902
- * @uiName Active W-9 description
4903
- * @uiGroup Dashboard Properties
4904
- */
4905
- this.dashboard_badgeTextSubmittedOn = "Submitted on {dateSubmitted}.";
4906
- /**
4907
- * Additional text displayed next to the tax form's status badge.
4908
- *
4909
- * @uiName Active W-8 description
4910
- * @uiGroup Dashboard Properties
4911
- */
4912
- this.dashboard_badgeTextSubmittedOnW8 = "Submitted on {dateSubmitted}. Valid for three years after submission.";
4913
- /**
4914
- * Additional text displayed next to the tax form's status badge.
4915
- *
4916
- * @uiName Tax form in review description
4917
- * @uiGroup Dashboard Properties
4918
- */
4919
- this.dashboard_badgeTextAwaitingReview = "Awaiting review. Submitted on {dateSubmitted}.";
4920
- /**
4921
- * Part of the alert displayed at the top of the page.
4922
- *
4923
- * @uiName Inactive W-9 error message title
4924
- * @uiGroup Dashboard Properties
4925
- * @uiWidget textArea
4926
- */
4927
- this.dashboard_taxAlertHeaderNotActiveW9 = "Your W9 tax form has personal information that doesn’t match your profile";
4928
- /**
4929
- * Part of the alert displayed at the top of the page.
4930
- *
4931
- * @uiName Inactive W-8 error message title
4932
- * @uiGroup Dashboard Properties
4933
- * @uiWidget textArea
4934
- */
4935
- this.dashboard_taxAlertHeaderNotActiveW8 = "{documentType} tax form is invalid";
4936
- /**
4937
- * Part of the alert displayed at the top of the page.
4938
- *
4939
- * @uiName Inactive W-9 error message description
4940
- * @uiGroup Dashboard Properties
4941
- * @uiWidget textArea
4942
- */
4943
- this.dashboard_taxAlertNotActiveMessageW9 = "Please resubmit a new {documentType} form.";
4944
- /**
4945
- * Part of the alert displayed at the top of the page.
4946
- *
4947
- * @uiName Inactive W-8 error message description
4948
- * @uiGroup Dashboard Properties
4949
- */
4950
- this.dashboard_taxAlertNotActiveMessageW8 = "Your tax form may have expired or has personal information that doesn’t match your profile. Please submit a new {documentType} form.";
4951
- /**
4952
- * Additional text displayed next to the tax form's status badge.
4953
- *
4954
- * @uiName Invalid tax form description
4955
- * @uiGroup Dashboard Properties
4956
- * @uiWidget textArea
4957
- */
4958
- this.dashboard_invalidForm = "Make sure your information is correct and submit new form.";
4959
- /**
4960
- * @uiName Payout information section header
4961
- * @uiGroup Dashboard Properties
4962
- */
4963
- this.dashboard_bankingInformationSectionHeader = "Payout Information";
4964
- /**
4965
- * @uiName Tax document section header
4966
- * @uiGroup Dashboard Properties
4967
- */
4968
- this.dashboard_taxDocumentSectionHeader = "Tax documents";
4969
- /**
4970
- * Displayed under the tax document section header.
4971
- *
4972
- * @uiName Tax documents section description
4973
- * @uiGroup Dashboard Properties
4974
- */
4975
- this.dashboard_taxDocumentSectionSubHeader = "{documentType} tax form";
4976
- /**
4977
- * No other statuses or badges will be displayed in the tax form section in this case.
4978
- *
4979
- * @uiName Tax form not required text
4980
- * @uiGroup Dashboard Properties
4981
- * @uiWidget textArea
4982
- */
4983
- this.dashboard_noFormNeededSubtext = "Tax documents are only required if you are based in the US or joining the referral program of a US based brand.";
4984
- /**
4985
- *
4986
- * @uiName Indirect tax section header
4987
- * @uiGroup Dashboard Properties
4988
- */
4989
- this.dashboard_indirectTaxInfoSectionHeader = "Indirect tax";
4990
- /**
4991
- * If the participant is registered for indirect tax in Canada, display the province they’re registered in.
4992
- *
4993
- * @uiName Canadian province of indirect tax
4994
- * @uiGroup Dashboard Properties
4995
- */
4996
- this.dashboard_indirectTaxInfoCanada = "Registered in {province}, {country}";
4997
- /**
4998
- * If the participant is registered for indirect tax, display the country they’re registered in.
4999
- *
5000
- * @uiName Indirect tax country
5001
- * @uiGroup Dashboard Properties
5002
- */
5003
- this.dashboard_indirectTaxInfoOtherCountry = "Registered in {country}";
5004
- /**
5005
- * If the participant is registered for indirect tax in Spain, display the region they’re registered in.
5006
- *
5007
- * @uiName Spanish region of indirect tax
5008
- * @uiGroup Dashboard Properties
5009
- */
5010
- this.dashboard_indirectTaxInfoSpain = "Registered in {country}, {subRegion}";
5011
- /**
5012
- * @uiName Indirect tax tooltip
5013
- * @uiGroup Dashboard Properties
5014
- * @uiWidget textArea
5015
- */
5016
- this.dashboard_indirectTaxTooltipSupport = "To make changes to your indirect tax information, please contact our {supportLink}.";
5017
- /**
5018
- * Displayed to participants who have submitted their indirect tax information.
5019
- *
5020
- * @uiName Indirect tax details
5021
- * @uiGroup Dashboard Properties
5022
- */
5023
- this.dashboard_indirectTaxDetails = "{indirectTaxType} number: {indirectTaxNumber}";
5024
- /**
5025
- * @uiName Submit new tax form button label
5026
- * @uiGroup Dashboard Properties
5027
- */
5028
- this.dashboard_newFormButton = "Submit new form";
5029
- /**
5030
- * @uiName Edit payment info button label
5031
- * @uiGroup Dashboard Properties
5032
- */
5033
- this.dashboard_editPaymentInformationButton = "Edit Payout Information";
5034
- /**
5035
- * @uiName Not registered for indirect tax text
5036
- * @uiGroup Dashboard Properties
5037
- * @uiWidget textArea
5038
- */
5039
- this.dashboard_notRegisteredForTax = "Not registered for indirect tax. If you’ve previously registered with your tax authority, contact our {supportLink} to add your information to stay tax compliant.";
5040
- /**
5041
- * Displayed to participants registered in Quebec, Canada.
5042
- * @uiName QST indirect tax details
5043
- * @uiGroup Dashboard Properties
5044
- */
5045
- this.dashboard_qstNumber = "QST number: {qstNumber}";
5046
- /**
5047
- * @uiName Spain sub-region indirect tax number
5048
- * @uiGroup Dashboard Properties
5049
- */
5050
- this.dashboard_subRegionTaxNumber = "Income tax number: {subRegionTaxNumber}";
5051
- /**
5052
- * @uiName Payout status badge
5053
- * @uiGroup Dashboard Properties
5054
- */
5055
- this.dashboard_statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
5056
- /**
5057
- * Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
5058
- * @uiName Payout schedule by threshold text
5059
- * @uiGroup Dashboard Properties
5060
- */
5061
- this.dashboard_thresholdPayoutText = "Next payout occurs when balance is {thresholdBalance}";
5062
- /**
5063
- * Shown before the participant’s bank account information.
5064
- * @uiName Bank account field label
5065
- * @uiGroup Dashboard Properties
5066
- */
5067
- this.dashboard_accountText = "Account";
5068
- /**
5069
- * Part of the Invoice table displayed at the bottom of the page.
5070
- * @uiName Invoice number column title
5071
- * @uiGroup Dashboard Properties
5072
- */
5073
- this.dashboard_invoiceColumnTitle = "Invoice";
5074
- /**
5075
- * Part of the Invoice table displayed at the bottom of the page.
5076
- * @uiName Date column title
5077
- * @uiGroup Dashboard Properties
5078
- */
5079
- this.dashboard_dateColumnTitle = "Date";
5080
- /**
5081
- * Part of the Invoice table displayed at the bottom of the page.
5082
- * @uiName Earnings column title
5083
- * @uiGroup Dashboard Properties
5084
- */
5085
- this.dashboard_earningsColumnTitle = "Earnings";
5086
- /**
5087
- * Part of the Invoice table displayed at the bottom of the page.
5088
- * @uiName Indirect tax column title
5089
- * @uiGroup Dashboard Properties
5090
- */
5091
- this.dashboard_indirectTaxColumnTitle = "Indirect tax";
5092
- /**
5093
- * Displayed under the payout details card.
5094
- * @uiName Payout from impact text
5095
- * @uiGroup Dashboard Properties
5096
- * @uiWidget textArea
5097
- */
5098
- this.dashboard_payoutFromImpact = "Your balance may take up to 24 hours to update. Payouts will be sent from our referral program provider, impact.com.";
5099
- /**
5100
- * Part of the Invoice table displayed at the bottom of the page.
5101
- * @uiName Earnings after tax column title
5102
- * @uiGroup Dashboard Properties
5103
- */
5104
- this.dashboard_earningsAfterTaxColumnTitle = "Earnings after tax";
5105
- /**
5106
- * Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
5107
- * @uiName Payout error message title
5108
- * @uiGroup Dashboard Properties
5109
- * @uiWidget textArea
5110
- */
5111
- this.dashboard_payoutHoldAlertHeader = "Your payout is on hold";
5112
- /**
5113
- * Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
5114
- * @uiName Payout error message description
5115
- * @uiGroup Dashboard Properties
5116
- * @uiWidget textArea
5117
- */
5118
- this.dashboard_payoutHoldAlertDescription = "Please contact our {supportLink} or check your inbox for an email from our referral program provider, impact.com.";
5119
- /**
5120
- * Text displayed for existing publishers that do not have saved banking information.
5121
- * @uiName Payout missing information subtext
5122
- * @uiGroup Dashboard Properties
5123
- */
5124
- this.dashboard_payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
5125
- /**
5126
- * @uiName Invoice table description
5127
- * @uiGroup Dashboard Properties
5128
- */
5129
- this.dashboard_invoiceDescription = "View and download your invoices to report your earnings and stay tax compliant.";
5130
- /**
5131
- * @uiName Invoice table previous page button label
5132
- * @uiGroup Dashboard Properties
5133
- */
5134
- this.dashboard_invoicePrevLabel = "Prev";
5135
- /**
5136
- * @uiName Invoice table next page button label
5137
- * @uiGroup Dashboard Properties
5138
- */
5139
- this.dashboard_invoiceMoreLabel = "Next";
5140
- /**
5141
- * @uiName Invoice table title
5142
- * @uiGroup Dashboard Properties
5143
- */
5144
- this.dashboard_invoiceHeader = "Invoices";
5145
- /**
5146
- * @uiName Empty invoice table header
5147
- * @uiGroup Dashboard Properties
5148
- */
5149
- this.dashboard_invoiceEmptyStateHeader = "View your invoice details";
5150
- /**
5151
- * @uiName Empty invoice table description
5152
- * @uiGroup Dashboard Properties
5153
- */
5154
- this.dashboard_invoiceEmptyStateText = "Refer a friend to view the status of your invoices and rewards earned";
5155
- /**
5156
- * @uiName Replace tax form modal header
5157
- * @uiGroup Dashboard Properties
5158
- */
5159
- this.dashboard_replaceTaxFormModalHeader = "Replace existing tax form";
5160
- /**
5161
- * @uiName Replace tax form modal body text
5162
- * @uiGroup Dashboard Properties
5163
- * @uiWidget textArea
5164
- */
5165
- this.dashboard_replaceTaxFormModalBodyText = "Submitting a new tax form will remove your existing form. Make sure to sign and complete your new tax form to prevent any issues with your next payout.";
5166
- /**
5167
- * Part of the alert displayed at the top of the page when the user needs to verify their identity.
5168
- * @uiName Verification required alert message title
5169
- * @uiGroup Dashboard Properties
5170
- * @uiWidget textArea
5171
- */
5172
- this.dashboard_verificationRequiredHeader = "Verify your identity";
5173
- /**
5174
- * Part of the alert displayed at the top of the page when the user needs to verify their identity
5175
- * @uiName Verification required alert message description
5176
- * @uiGroup Dashboard Properties
5177
- * @uiWidget textArea
5178
- */
5179
- this.dashboard_verificationRequiredDescription = "Complete your verification to start receiving your cash rewards. It should only take a few minutes verify. If you run in to an issue verifying your identity contact our {supportLink}.";
5180
- /**
5181
- * @uiName Verification required internal alert header
5182
- * @uiGroup Dashboard Properties
5183
- * @uiWidget textArea
5184
- */
5185
- this.dashboard_verificationRequiredInternalHeader = "Identity Verification in Progress";
5186
- /**
5187
- * @uiName Verification required internal alert description
5188
- * @uiGroup Dashboard Properties
5189
- * @uiWidget textArea
5190
- */
5191
- this.dashboard_verificationRequiredInternalDescription = "Identity verification submission has been received. Our system is currently performing additional checks and analyzing the results. You will be updated shortly. If you don't hear from us contact our {supportLink}.";
5192
- /**
5193
- * @uiName Verification review internal alert header
5194
- * @uiGroup Dashboard Properties
5195
- * @uiWidget textArea
5196
- */
5197
- this.dashboard_verificationReviewInternalHeader = "Identity Verification Under Review";
5198
- /**
5199
- * @uiName Verification review internal alert description
5200
- * @uiGroup Dashboard Properties
5201
- * @uiWidget textArea
5202
- */
5203
- this.dashboard_verificationReviewInternalDescription = "Identity verification requires further review due to a potential error. Our team is reviewing the information and will update you shortly. If you don't hear from us contact our {supportLink}.";
5204
- /**
5205
- * @uiName Verification failed internal alert header
5206
- * @uiGroup Dashboard Properties
5207
- * @uiWidget textArea
5208
- */
5209
- this.dashboard_verificationFailedInternalHeader = "Identity Verification Unsuccessful";
5210
- /**
5211
- * @uiName Verification failed internal alert description
5212
- * @uiGroup Dashboard Properties
5213
- * @uiWidget textArea
5214
- */
5215
- this.dashboard_verificationFailedInternalDescription = "Identity verification has failed. Our team is reviewing the report and will contact you with further information. If you don't hear from us contact our {supportLink}.";
5216
- /**
5217
- * Part of the alert displayed at the top of the page when the user needs to verify their identity.
5218
- * @uiName Verification required alert button text
5219
- * @uiGroup Dashboard Properties
5220
- * @uiWidget textArea
5221
- */
5222
- this.dashboard_verificationRequiredButtonText = "Start Verification";
5223
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5224
- GENERAL PROPS:
5225
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
5226
- /**
5227
- * @uiName Setup progress
5228
- * @uiGroup General Form Properties
5229
- */
5230
- this.formStep = "Step {step} of {count}";
5231
- /**
5232
- * Part of the alert displayed at the top of the page.
5233
- * @uiName Form submission error message title
5234
- * @uiGroup General Form Properties
5235
- * @uiWidget textArea
5236
- */
5237
- this.generalErrorTitle = "There was a problem submitting your information";
5238
- /**
5239
- * Part of the alert displayed at the top of the page.
5240
- * @uiName Form submission error message description
5241
- * @uiGroup General Form Properties
5242
- * @uiWidget textArea
5243
- */
5244
- this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
5245
- /**
5246
- * Displayed under a field that is missing required information.
5247
- * @uiName Empty form field error message
5248
- * @uiGroup General Form Properties
5249
- */
5250
- this.fieldRequiredError = "{fieldName} is required";
5251
- /**
5252
- * Displayed under a field that includes invalid characters (non-ASCII).
5253
- * @uiName Invalid character error message
5254
- * @uiGroup General Form Properties
5255
- */
5256
- this.invalidCharacterError = "{fieldName} includes characters that aren't supported.";
5257
- /**
5258
- * Displayed under a field when it has an invalid entry.
5259
- * @uiName Form field error message
5260
- * @uiGroup General Form Properties
5261
- */
5262
- this.fieldInvalidError = "{fieldName} is invalid";
5263
- /**
5264
- * @uiName Continue button label
5265
- * @uiGroup General Form Properties
5266
- */
5267
- this.continueButton = "Continue";
5268
- /**
5269
- * @uiName Back button label
5270
- * @uiGroup General Form Properties
5271
- */
5272
- this.backButton = "Back";
5273
- /**
5274
- * @uiName Cancel button label
5275
- * @uiGroup General Form Properties
5276
- */
5277
- this.cancelButton = "Cancel";
5278
- /**
5279
- * Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
5280
- * @uiName Participant is a partner alert title
5281
- * @uiGroup General Form Properties
5282
- * @uiWidget textArea
5283
- */
5284
- this.isPartnerAlertHeader = "An account with this email already exists with our referral program provider, impact.com";
5285
- /**
5286
- * Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
5287
- * @uiName Participant is a partner alert description
5288
- * @uiGroup General Form Properties
5289
- * @uiWidget textArea
5290
- */
5291
- this.isPartnerAlertDescription = "If you don’t recognize this referral program provider or believe this is a mistake, please contact our {supportLink} or sign up for this referral program with a different email.";
5292
- /**
5293
- * Placeholder text displayed in the country search dropdown
5294
- * @uiName Country field placeholder text
5295
- * @uiGroup General Form Properties
5296
- */
5297
- this.searchForCountryText = "Search for country..";
5298
- /**
5299
- * Part of the alert displayed at the top of the page.
5300
- * @uiName Page load error message title
5301
- * @uiGroup General Form Properties
5302
- * @uiWidget textArea
5303
- */
5304
- this.loadingErrorAlertHeader = "There was a problem loading your form";
5305
- /**
5306
- * Part of the alert displayed at the top of the page.
5307
- * @uiName Page load error message description
5308
- * @uiGroup General Form Properties
5309
- * @uiWidget textArea
5310
- */
5311
- this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact our {supportLink}.";
5312
- /**
5313
- * Displayed at the top of the page on all set up steps.
5314
- * @uiName Page description
5315
- * @uiGroup General Form Properties
5316
- */
5317
- this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
5318
- /**
5319
- * Link text for contacting support team
5320
- * @uiName Suport link text
5321
- * @uiGroup General Form Properties
5322
- */
5323
- this.supportLink = "support team";
5324
- h$1(this);
5325
- }
5326
- disconnectedCallback() { }
5327
- // this field is required prop
5328
- getGeneralStepTextProps(prefix) {
5329
- const props = getProps(this);
5330
- return {
5331
- ...extractProps(props, prefix),
5332
- generalErrorTitle: props.generalErrorTitle,
5333
- generalErrorDescription: props.generalErrorDescription,
5334
- fieldRequiredError: props.fieldRequiredError,
5335
- invalidCharacterError: props.invalidCharacterError,
5336
- fieldInvalidError: props.fieldInvalidError,
5337
- continueButton: props.continueButton,
5338
- backButton: props.backButton,
5339
- cancelButton: props.cancelButton,
5340
- isPartnerAlertHeader: props.isPartnerAlertHeader,
5341
- isPartnerAlertDescription: props.isPartnerAlertDescription,
5342
- loadingErrorAlertHeader: props.loadingErrorAlertHeader,
5343
- loadingErrorAlertDescription: props.loadingErrorAlertDescription,
5344
- taxAndPayoutsDescription: props.taxAndPayoutsDescription,
5345
- searchForCountryText: props.searchForCountryText,
5346
- formStep: props.formStep,
5347
- supportLink: props.supportLink,
5348
- };
5349
- }
5350
- render() {
5351
- var _a, _b;
5352
- const props = isDemo() ? useDemoTaxAndCash(this) : useTaxAndCash();
5353
- // @ts-ignore
5354
- if ((_a = this.demoData) === null || _a === void 0 ? void 0 : _a.showTextProps) {
5355
- const textProps = getProps(this);
5356
- return (h("div", null, (_b = Object.keys(textProps)) === null || _b === void 0 ? void 0 : _b.map((prop) => {
5357
- if (prop === "demoData")
5358
- return;
5359
- return (h("div", null, h("b", null, prop, ":"), " ", this[prop], h("hr", null)));
5360
- })));
5361
- }
5362
- switch (props.step) {
5363
- case "/1":
5364
- return (h("sqm-user-info-form", Object.assign({}, this.getGeneralStepTextProps("step1_"))));
5365
- case "/2":
5366
- return (h("sqm-indirect-tax-form", Object.assign({}, this.getGeneralStepTextProps("step2_"))));
5367
- case "/3":
5368
- return (h("sqm-docusign-form", Object.assign({}, this.getGeneralStepTextProps("step3_"))));
5369
- case "/4":
5370
- return (h("sqm-banking-info-form", Object.assign({}, this.getGeneralStepTextProps("step4_"))));
5371
- case "/dashboard":
5372
- return (h("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"))));
5373
- case "/error":
5374
- return (h(ErrorView, { loadingErrorAlertHeader: this.loadingErrorAlertHeader, loadingErrorAlertDescription: this.loadingErrorAlertDescription }));
5375
- }
5376
- return h(LoadingView, null);
5377
- }
5378
- };
5379
- function useDemoTaxAndCash(props) {
5380
- const [step, setStep] = In({
5381
- namespace: TAX_CONTEXT_NAMESPACE,
5382
- initialValue: "/1",
5383
- });
5384
- return cjs({
5385
- step,
5386
- setStep,
5387
- }, props.demoData || {}, { arrayMerge: (_, a) => a });
5388
- }
5389
-
5390
- const style$6 = {
3694
+ const style$5 = {
5391
3695
  ErrorAlertContainer: {
5392
3696
  "&::part(base)": {
5393
3697
  backgroundColor: "var(--sl-color-red-100)",
@@ -5578,8 +3882,8 @@ const style$6 = {
5578
3882
  },
5579
3883
  DialogButton: { margin: "auto", width: "100%" },
5580
3884
  };
5581
- const sheet$5 = createStyleSheet(style$6);
5582
- const styleString$5 = sheet$5.toString();
3885
+ const sheet$4 = createStyleSheet(style$5);
3886
+ const styleString$4 = sheet$4.toString();
5583
3887
  const TaxAndCashDashboardView = (props) => {
5584
3888
  var _a, _b, _c, _d;
5585
3889
  const { states, text, callbacks, slots } = props;
@@ -5597,7 +3901,7 @@ const TaxAndCashDashboardView = (props) => {
5597
3901
  buttonText: text.verificationRequiredButtonText,
5598
3902
  alertType: "warning",
5599
3903
  icon: "exclamation-triangle",
5600
- class: sheet$5.classes.WarningHoldAlertContainer,
3904
+ class: sheet$4.classes.WarningHoldAlertContainer,
5601
3905
  };
5602
3906
  case "VERIFICATION:INTERNAL":
5603
3907
  return {
@@ -5610,7 +3914,7 @@ const TaxAndCashDashboardView = (props) => {
5610
3914
  }),
5611
3915
  alertType: "warning",
5612
3916
  icon: "exclamation-triangle",
5613
- class: sheet$5.classes.WarningHoldAlertContainer,
3917
+ class: sheet$4.classes.WarningHoldAlertContainer,
5614
3918
  };
5615
3919
  case "VERIFICATION:REVIEW":
5616
3920
  return {
@@ -5623,7 +3927,7 @@ const TaxAndCashDashboardView = (props) => {
5623
3927
  }),
5624
3928
  alertType: "warning",
5625
3929
  icon: "exclamation-triangle",
5626
- class: sheet$5.classes.WarningHoldAlertContainer,
3930
+ class: sheet$4.classes.WarningHoldAlertContainer,
5627
3931
  };
5628
3932
  case "VERIFICATION:FAILED":
5629
3933
  return {
@@ -5636,7 +3940,7 @@ const TaxAndCashDashboardView = (props) => {
5636
3940
  }),
5637
3941
  alertType: "critical",
5638
3942
  icon: "exclamation-octagon",
5639
- class: sheet$5.classes.ErrorHoldAlertContainer,
3943
+ class: sheet$4.classes.ErrorHoldAlertContainer,
5640
3944
  };
5641
3945
  case "HOLD":
5642
3946
  return {
@@ -5650,14 +3954,14 @@ const TaxAndCashDashboardView = (props) => {
5650
3954
  buttonText: null,
5651
3955
  alertType: "warning",
5652
3956
  icon: "exclamation-triangle",
5653
- class: sheet$5.classes.WarningHoldAlertContainer,
3957
+ class: sheet$4.classes.WarningHoldAlertContainer,
5654
3958
  };
5655
3959
  default:
5656
3960
  return;
5657
3961
  }
5658
3962
  }
5659
3963
  const statusMap = {
5660
- NOT_VERIFIED: (h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
3964
+ NOT_VERIFIED: (h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
5661
3965
  h("sl-badge", { type: "warning", pill: true }, text.statusTextNotVerified),
5662
3966
  h("p", null, intl.formatMessage({
5663
3967
  id: `badgeTextAwaitingReview`,
@@ -5665,7 +3969,7 @@ const TaxAndCashDashboardView = (props) => {
5665
3969
  }, {
5666
3970
  dateSubmitted: states.dateSubmitted,
5667
3971
  })))),
5668
- ACTIVE: (h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
3972
+ ACTIVE: (h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
5669
3973
  h("sl-badge", { type: "success", pill: true }, text.statusTextActive),
5670
3974
  h("p", null, intl.formatMessage({
5671
3975
  id: `badgeTextSubmittedOn`,
@@ -5675,12 +3979,12 @@ const TaxAndCashDashboardView = (props) => {
5675
3979
  }, {
5676
3980
  dateSubmitted: states.dateSubmitted,
5677
3981
  })))),
5678
- INACTIVE: (h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
3982
+ INACTIVE: (h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
5679
3983
  h("sl-badge", { type: "danger", pill: true }, text.statusTextNotActive),
5680
3984
  h("p", null, text.invalidForm))),
5681
3985
  };
5682
3986
  const alertMap = {
5683
- INACTIVE: (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.ErrorAlertContainer },
3987
+ INACTIVE: (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.ErrorAlertContainer },
5684
3988
  h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
5685
3989
  h("strong", null, intl.formatMessage({
5686
3990
  id: `taxAlertHeaderNotActive`,
@@ -5730,9 +4034,9 @@ const TaxAndCashDashboardView = (props) => {
5730
4034
  };
5731
4035
  return (h("div", null,
5732
4036
  h("div", null,
5733
- h("style", { type: "text/css" }, styleString$5),
4037
+ h("style", { type: "text/css" }, styleString$4),
5734
4038
  states.loadingError && (h("div", null,
5735
- h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.ErrorAlertContainer },
4039
+ h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.ErrorAlertContainer },
5736
4040
  h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
5737
4041
  h("strong", null, text.error.loadingErrorAlertHeader),
5738
4042
  h("br", null),
@@ -5742,7 +4046,7 @@ const TaxAndCashDashboardView = (props) => {
5742
4046
  }, {
5743
4047
  supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
5744
4048
  })))),
5745
- ((_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$5.classes.ErrorAlertContainer },
4049
+ ((_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 },
5746
4050
  h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
5747
4051
  h("strong", null, text.error.generalTitle),
5748
4052
  h("br", null),
@@ -5757,49 +4061,49 @@ const TaxAndCashDashboardView = (props) => {
5757
4061
  h("strong", null, getAlert(states.payoutStatus).header),
5758
4062
  h("p", { style: { margin: "0" } }, getAlert(states.payoutStatus).description),
5759
4063
  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)))),
5760
- h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$5.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
4064
+ h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$4.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
5761
4065
  h("p", null, text.replaceTaxFormModalBodyText),
5762
- h("sl-button", { slot: "footer", type: "primary", class: sheet$5.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
5763
- h("sl-button", { slot: "footer", type: "default", class: sheet$5.classes.DialogButton, onClick: callbacks.onNewFormCancel }, text.cancelButton)),
4066
+ h("sl-button", { slot: "footer", type: "primary", class: sheet$4.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
4067
+ h("sl-button", { slot: "footer", type: "default", class: sheet$4.classes.DialogButton, onClick: callbacks.onNewFormCancel }, text.cancelButton)),
5764
4068
  states.status === "INACTIVE" && alertMap[states.status],
5765
4069
  h("div", null,
5766
4070
  h("h3", { style: { marginBottom: "0" } }, text.bankingInformationSectionHeader),
5767
- h("p", { class: sheet$5.classes.PageDescriptionText }, text.taxAndPayoutsDescription),
5768
- h("div", { class: sheet$5.classes.BankingInformationContainer },
4071
+ h("p", { class: sheet$4.classes.PageDescriptionText }, text.taxAndPayoutsDescription),
4072
+ h("div", { class: sheet$4.classes.BankingInformationContainer },
5769
4073
  slots.payoutDetailsCardSlot,
5770
- !states.loading && (h("p", { class: sheet$5.classes.DescriptionText }, text.payoutFromImpact)),
5771
- states.canEditPayoutInfo && (h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$5.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
5772
- h("div", { class: sheet$5.classes.TaxDocumentsContainer },
5773
- h("div", null, states.loading ? (h("div", { class: sheet$5.classes.TaxSectionSkeletonContainer },
5774
- h("sl-skeleton", { class: sheet$5.classes.SkeletonOne }),
5775
- h("sl-skeleton", { class: sheet$5.classes.SkeletonTwo }))) : (h("div", null, states.noFormNeeded ? (h("div", null,
5776
- h("h3", { class: sheet$5.classes.TaxDocumentsSectionHeaderContainer }, text.taxDocumentSectionHeader),
5777
- h("p", { class: sheet$5.classes.TaxDocSubtext }, text.noFormNeededSubtext))) : (h("div", null,
5778
- h("span", { class: sheet$5.classes.TaxFormDetailsContainer },
5779
- h("div", { class: sheet$5.classes.StatusContainer },
4074
+ !states.loading && (h("p", { class: sheet$4.classes.DescriptionText }, text.payoutFromImpact)),
4075
+ states.canEditPayoutInfo && (h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$4.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
4076
+ h("div", { class: sheet$4.classes.TaxDocumentsContainer },
4077
+ h("div", null, states.loading ? (h("div", { class: sheet$4.classes.TaxSectionSkeletonContainer },
4078
+ h("sl-skeleton", { class: sheet$4.classes.SkeletonOne }),
4079
+ h("sl-skeleton", { class: sheet$4.classes.SkeletonTwo }))) : (h("div", null, states.noFormNeeded ? (h("div", null,
4080
+ h("h3", { class: sheet$4.classes.TaxDocumentsSectionHeaderContainer }, text.taxDocumentSectionHeader),
4081
+ h("p", { class: sheet$4.classes.TaxDocSubtext }, text.noFormNeededSubtext))) : (h("div", null,
4082
+ h("span", { class: sheet$4.classes.TaxFormDetailsContainer },
4083
+ h("div", { class: sheet$4.classes.StatusContainer },
5780
4084
  h("h3", null, intl.formatMessage({
5781
4085
  id: "section-subheader",
5782
4086
  defaultMessage: text.taxDocumentSectionSubHeader,
5783
4087
  }, {
5784
4088
  documentType: states.documentTypeString,
5785
4089
  })),
5786
- h("span", { class: sheet$5.classes.StatusAlert }, statusMap[states.status]))),
5787
- states.status !== "NOT_VERIFIED" && (h("sl-button", { disabled: states.disabled || states.loading, onClick: callbacks.onClick, type: "default", class: sheet$5.classes.NewFormButton, exportparts: "base: primarybutton-base" }, text.newFormButton)))))))),
5788
- h("div", { class: sheet$5.classes.IndirectTaxPreviewContainer }, states.loading ? (h("div", { class: sheet$5.classes.TaxSectionSkeletonContainer },
5789
- h("sl-skeleton", { class: sheet$5.classes.SkeletonOne }),
5790
- h("sl-skeleton", { class: sheet$5.classes.SkeletonTwo }))) : (h("div", null,
5791
- h("h3", { class: sheet$5.classes.IndirectTaxPreviewHeaderContainer },
4090
+ h("span", { class: sheet$4.classes.StatusAlert }, statusMap[states.status]))),
4091
+ states.status !== "NOT_VERIFIED" && (h("sl-button", { disabled: states.disabled || states.loading, onClick: callbacks.onClick, type: "default", class: sheet$4.classes.NewFormButton, exportparts: "base: primarybutton-base" }, text.newFormButton)))))))),
4092
+ h("div", { class: sheet$4.classes.IndirectTaxPreviewContainer }, states.loading ? (h("div", { class: sheet$4.classes.TaxSectionSkeletonContainer },
4093
+ h("sl-skeleton", { class: sheet$4.classes.SkeletonOne }),
4094
+ h("sl-skeleton", { class: sheet$4.classes.SkeletonTwo }))) : (h("div", null,
4095
+ h("h3", { class: sheet$4.classes.IndirectTaxPreviewHeaderContainer },
5792
4096
  text.indirectTaxInfoSectionHeader,
5793
- h("sl-tooltip", { trigger: "hover", placement: "top", content: text.indirectTaxTooltipSupport, class: sheet$5.classes.TooltipContainer },
5794
- h("sl-icon", { name: "info-circle", class: sheet$5.classes.ToolTip }))),
5795
- h("div", { class: sheet$5.classes.IndirectTaxPreviewDetails },
5796
- h("span", null, states.notRegistered ? (h("span", { class: sheet$5.classes.NotRegisteredIndirectTaxText }, intl.formatMessage({
4097
+ h("sl-tooltip", { trigger: "hover", placement: "top", content: text.indirectTaxTooltipSupport, class: sheet$4.classes.TooltipContainer },
4098
+ h("sl-icon", { name: "info-circle", class: sheet$4.classes.ToolTip }))),
4099
+ h("div", { class: sheet$4.classes.IndirectTaxPreviewDetails },
4100
+ h("span", null, states.notRegistered ? (h("span", { class: sheet$4.classes.NotRegisteredIndirectTaxText }, intl.formatMessage({
5797
4101
  id: "notRegisteredForTax",
5798
4102
  defaultMessage: text.notRegisteredForTax,
5799
4103
  }, {
5800
4104
  supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
5801
4105
  }))) : (getIndirectTaxRegisteredIn())),
5802
- !states.notRegistered && (h("div", { class: sheet$5.classes.TaxNumberContainer },
4106
+ !states.notRegistered && (h("div", { class: sheet$4.classes.TaxNumberContainer },
5803
4107
  h("span", null, intl.formatMessage({
5804
4108
  id: `indirectTaxDetails`,
5805
4109
  defaultMessage: text.indirectTaxDetails,
@@ -5822,7 +4126,7 @@ const TaxAndCashDashboardView = (props) => {
5822
4126
  }, {
5823
4127
  subRegionTaxNumber: states.subRegionTaxNumber,
5824
4128
  })))),
5825
- !states.notRegistered && (h("div", { class: sheet$5.classes.InvoiceTableContainer },
4129
+ !states.notRegistered && (h("div", { class: sheet$4.classes.InvoiceTableContainer },
5826
4130
  h("sqm-invoice-table", { description: text.invoiceDescription, "prev-label": text.invoicePrevLabel, "more-label": text.invoiceMoreLabel, header: text.invoiceHeader, "empty-state-header": text.invoiceEmptyStateHeader, "empty-state-text": text.invoiceEmptyStateText },
5827
4131
  h("sqm-invoice-table-download-column", null),
5828
4132
  h("sqm-invoice-table-date-column", { "column-title": text.dateColumnTitle }),
@@ -6253,6 +4557,16 @@ const TaxAndCashDashboard = class {
6253
4557
  * @uiName Cancel button label
6254
4558
  */
6255
4559
  this.cancelButton = "Cancel";
4560
+ /**
4561
+ * @parentState { "parent": "sqm-tax-and-cash", "title": "Dashboard" }
4562
+ * @componentState { "title": "Default", "props": { } }
4563
+ * @componentState { "title": "Verification Required", "props": { "states": { "payoutStatus": "VERIFICATION:REQUIRED" } } }
4564
+ * @componentState { "title": "Internal Verification Required", "props": { "states": { "payoutStatus": "VERIFICATION:INTERNAL" } } }
4565
+ * @componentState { "title": "Review in progress", "props": { "states": { "payoutStatus": "VERIFICATION:REVIEW" } } }
4566
+ * @componentState { "title": "Verification failed", "props": { "states": { "payoutStatus": "VERIFICATION:FAILED" } } }
4567
+ * @componentState { "title": "Payout hold", "props": { "states": { "payoutStatus": "HOLD" } } }
4568
+ */
4569
+ this.stateController = "{}";
6256
4570
  h$1(this);
6257
4571
  }
6258
4572
  disconnectedCallback() { }
@@ -6278,6 +4592,8 @@ const TaxAndCashDashboard = class {
6278
4592
  }
6279
4593
  };
6280
4594
  function useDemoTaxAndCashDashboard(props) {
4595
+ const states = parseStates(props.stateController);
4596
+ console.log({ states });
6281
4597
  return cjs({
6282
4598
  states: {
6283
4599
  dateSubmitted: "today",
@@ -6285,16 +4601,23 @@ function useDemoTaxAndCashDashboard(props) {
6285
4601
  documentTypeString: "W9",
6286
4602
  status: "ACTIVE",
6287
4603
  country: "United States",
6288
- indirectTaxNumber: 55555555,
4604
+ indirectTaxNumber: "55555555",
6289
4605
  indirectTaxType: "Indirect Tax",
6290
4606
  noFormNeeded: true,
6291
4607
  disabled: false,
6292
4608
  loading: false,
6293
4609
  showNewFormDialog: false,
6294
4610
  hasHold: false,
6295
- showVerifyIdentity: false,
6296
4611
  payoutStatus: "DONE",
6297
4612
  veriffLoading: false,
4613
+ canEditPayoutInfo: true,
4614
+ subRegion: "CA",
4615
+ subRegionTaxNumber: undefined,
4616
+ qstNumber: undefined,
4617
+ isBusinessEntity: false,
4618
+ province: undefined,
4619
+ notRegistered: false,
4620
+ loadingError: false,
6298
4621
  },
6299
4622
  callbacks: {
6300
4623
  onClick: () => console.debug("check step"),
@@ -6304,7 +4627,7 @@ function useDemoTaxAndCashDashboard(props) {
6304
4627
  onVerifyClick: () => console.log("verify"),
6305
4628
  },
6306
4629
  text: props.getTextProps(),
6307
- }, props.demoData || {}, { arrayMerge: (_, a) => a });
4630
+ }, props.demoData || states || {}, { arrayMerge: (_, a) => a });
6308
4631
  }
6309
4632
 
6310
4633
  const PHONE_EXTENSIONS = {
@@ -7278,7 +5601,7 @@ const PHONE_EXTENSIONS = {
7278
5601
  },
7279
5602
  };
7280
5603
 
7281
- const style$7 = {
5604
+ const style$6 = {
7282
5605
  FormWrapper: {},
7283
5606
  ErrorInput: {
7284
5607
  "&::part(base)": {
@@ -7376,9 +5699,9 @@ const style$7 = {
7376
5699
  },
7377
5700
  },
7378
5701
  };
7379
- const sheet$6 = createStyleSheet(style$7);
7380
- const styleString$6 = sheet$6.toString();
7381
- const vanillaStyle$4 = `
5702
+ const sheet$5 = createStyleSheet(style$6);
5703
+ const styleString$5 = sheet$5.toString();
5704
+ const vanillaStyle$3 = `
7382
5705
  :host{
7383
5706
  display: block;
7384
5707
  }
@@ -7406,7 +5729,7 @@ const vanillaStyle$4 = `
7406
5729
  const UserInfoFormView = (props) => {
7407
5730
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
7408
5731
  const { states, states: { formState }, callbacks, text, refs, data, } = props;
7409
- const { classes } = sheet$6;
5732
+ const { classes } = sheet$5;
7410
5733
  const bankingCollectionText = intl.formatMessage({
7411
5734
  id: "bankingCollectionText",
7412
5735
  defaultMessage: text.allowBankingCollection,
@@ -7429,10 +5752,10 @@ const UserInfoFormView = (props) => {
7429
5752
  }
7430
5753
  return (h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
7431
5754
  h("style", { type: "text/css" },
7432
- styleString$6,
7433
- vanillaStyle$4),
5755
+ styleString$5,
5756
+ vanillaStyle$3),
7434
5757
  states.loadingError && (h("div", null,
7435
- h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$6.classes.AlertContainer },
5758
+ h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.AlertContainer },
7436
5759
  h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
7437
5760
  h("strong", null, text.error.loadingErrorAlertHeader),
7438
5761
  h("br", null),
@@ -7443,7 +5766,7 @@ const UserInfoFormView = (props) => {
7443
5766
  supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
7444
5767
  })),
7445
5768
  h("br", null))),
7446
- states.loading ? (h(GeneralLoadingView, null)) : (h("div", null,
5769
+ states.loading ? (h(LoadingView, null)) : (h("div", null,
7447
5770
  h("div", { class: classes.TextContainer },
7448
5771
  h("div", null,
7449
5772
  !states.hideSteps && (h("p", null, intl.formatMessage({
@@ -7452,7 +5775,7 @@ const UserInfoFormView = (props) => {
7452
5775
  }, { step: states.step, count: FORM_STEPS }))),
7453
5776
  h("h3", null, text.personalInformation),
7454
5777
  h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
7455
- ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$6.classes.AlertContainer },
5778
+ ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$5.classes.AlertContainer },
7456
5779
  h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
7457
5780
  h("strong", null, text.error.generalTitle),
7458
5781
  h("br", null),
@@ -7462,7 +5785,7 @@ const UserInfoFormView = (props) => {
7462
5785
  }, {
7463
5786
  supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
7464
5787
  }))),
7465
- (states.isPartner || states.isUser) && (h("sl-alert", { type: "primary", open: true, class: sheet$6.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
5788
+ (states.isPartner || states.isUser) && (h("sl-alert", { type: "primary", open: true, class: sheet$5.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
7466
5789
  h("sl-icon", { slot: "icon", name: "info-circle" }),
7467
5790
  h("strong", null, text.isPartnerAlertHeader),
7468
5791
  h("br", null),
@@ -7936,6 +6259,13 @@ const TaxForm = class {
7936
6259
  * @uiName Support link text
7937
6260
  */
7938
6261
  this.supportLink = "support team";
6262
+ /**
6263
+ * @uiName States
6264
+ * @parentState { "parent": "sqm-tax-and-cash", "title": "Step 1" }
6265
+ * @componentState { "title": "Errors", "props": { "states": { "loadingError": true, "formState": { "errors": { "email": true, "firstName": true, "lastName": true, "countryCode": true, "currency": true } } } } }
6266
+ * @componentState { "title": "Loading", "props": { "states": { "loading": true } } }
6267
+ */
6268
+ this.stateController = "{}";
7939
6269
  h$1(this);
7940
6270
  }
7941
6271
  disconnectedCallback() { }
@@ -7956,19 +6286,20 @@ const TaxForm = class {
7956
6286
  }
7957
6287
  render() {
7958
6288
  const props = isDemo() ? useDemoUserInfoForm(this) : useUserInfoForm(this);
7959
- return (h(Host, null, h(UserInfoFormView, { data: props.data,
6289
+ return (h(UserInfoFormView, { data: props.data,
7960
6290
  // @ts-ignore
7961
6291
  states: props.states, callbacks: {
7962
6292
  ...props.callbacks,
7963
6293
  onSubmit: props.onSubmit,
7964
- }, text: props.text, refs: props.refs })));
6294
+ }, text: props.text, refs: props.refs }));
7965
6295
  }
7966
6296
  };
7967
6297
  function useDemoUserInfoForm(props) {
7968
6298
  const setStep = En(TAX_CONTEXT_NAMESPACE);
6299
+ // @ts-ignore
7969
6300
  return cjs({
7970
6301
  setStep,
7971
- onSubmit: () => {
6302
+ onSubmit: async () => {
7972
6303
  setStep("/2");
7973
6304
  },
7974
6305
  onRadioClick: () => { },
@@ -8008,7 +6339,7 @@ function useDemoUserInfoForm(props) {
8008
6339
  },
8009
6340
  },
8010
6341
  },
8011
- }, props.demoData || {}, { arrayMerge: (_, a) => a });
6342
+ }, props.demoData || parseStates(props.stateController) || {}, { arrayMerge: (_, a) => a });
8012
6343
  }
8013
6344
 
8014
- export { BankingInfoForm as sqm_banking_info_form, WidgetCodeVerification as sqm_code_verification, DocusignForm as sqm_docusign_form, IndirectTaxForm as sqm_indirect_tax_form, InvoiceTable as sqm_invoice_table, InvoiceTableDataCell as sqm_invoice_table_data_cell, InvoiceTableDataColumn as sqm_invoice_table_data_column, RewardTableDateCell as sqm_invoice_table_date_cell, InvoiceTableDateColumn as sqm_invoice_table_date_column, InvoiceTableDownloadCell as sqm_invoice_table_download_cell, InvoiceTableGenericColumn as sqm_invoice_table_download_column, PayoutDetailsCard as sqm_payout_details_card, TableCell as sqm_table_cell, TableRow as sqm_table_row, TaxAndCashMonolith as sqm_tax_and_cash, TaxAndCashDashboard as sqm_tax_and_cash_dashboard, TaxForm as sqm_user_info_form };
6345
+ export { BankingInfoForm as sqm_banking_info_form, DocusignForm as sqm_docusign_form, IndirectTaxForm as sqm_indirect_tax_form, InvoiceTable as sqm_invoice_table, InvoiceTableDataColumn as sqm_invoice_table_data_column, InvoiceTableDateColumn as sqm_invoice_table_date_column, InvoiceTableGenericColumn as sqm_invoice_table_download_column, PayoutDetailsCard as sqm_payout_details_card, TaxAndCashDashboard as sqm_tax_and_cash_dashboard, TaxForm as sqm_user_info_form };