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

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 (99) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/mint-components.cjs.js +1 -1
  3. package/dist/cjs/sqm-banking-info-form_16.cjs.entry.js +182 -56
  4. package/dist/cjs/sqm-big-stat_39.cjs.entry.js +84 -15
  5. package/dist/cjs/sqm-email-verification.cjs.entry.js +15 -7
  6. package/dist/cjs/{sqm-invoice-table-view-e92c557a.js → sqm-invoice-table-view-b0602970.js} +16 -1
  7. package/dist/cjs/sqm-stencilbook.cjs.entry.js +41 -18
  8. package/dist/cjs/{usePayoutStatus-5ac536a3.js → usePayoutStatus-8f924372.js} +1 -1
  9. package/dist/collection/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.js +7 -0
  10. package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.js +1 -0
  11. package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll.js +5 -1
  12. package/dist/collection/components/sqm-payout-button-scroll/usePayoutButton.js +3 -10
  13. package/dist/collection/components/sqm-referral-table/ReferralTable.stories.js +7 -1
  14. package/dist/collection/components/sqm-referral-table/ReferralTableRewardsCell.stories.js +16 -4
  15. package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +7 -12
  16. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +9 -5
  17. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.js +29 -4
  18. package/dist/collection/components/tax-and-cash/TaxForm.stories.js +15 -1
  19. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +12 -2
  20. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +29 -4
  21. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +3 -2
  22. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +12 -2
  23. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +31 -6
  24. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +26 -8
  25. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +33 -8
  26. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +34 -6
  27. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +41 -16
  28. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +1 -1
  29. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +49 -16
  30. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +51 -8
  31. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +43 -18
  32. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +18 -3
  33. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +31 -6
  34. package/dist/esm/loader.js +1 -1
  35. package/dist/esm/mint-components.js +1 -1
  36. package/dist/esm/sqm-banking-info-form_16.entry.js +182 -56
  37. package/dist/esm/sqm-big-stat_39.entry.js +84 -15
  38. package/dist/esm/sqm-email-verification.entry.js +15 -7
  39. package/dist/esm/{sqm-invoice-table-view-c184248a.js → sqm-invoice-table-view-b1ac1bfc.js} +16 -1
  40. package/dist/esm/sqm-stencilbook.entry.js +41 -18
  41. package/dist/esm/{usePayoutStatus-d613ff10.js → usePayoutStatus-0bc0380f.js} +1 -1
  42. package/dist/esm-es5/loader.js +1 -1
  43. package/dist/esm-es5/mint-components.js +1 -1
  44. package/dist/esm-es5/sqm-banking-info-form_16.entry.js +1 -1
  45. package/dist/esm-es5/sqm-big-stat_39.entry.js +1 -1
  46. package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
  47. package/dist/esm-es5/sqm-invoice-table-view-b1ac1bfc.js +1 -0
  48. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  49. package/dist/esm-es5/{usePayoutStatus-d613ff10.js → usePayoutStatus-0bc0380f.js} +2 -2
  50. package/dist/mint-components/mint-components.esm.js +1 -1
  51. package/dist/mint-components/p-158568e5.system.entry.js +1 -0
  52. package/dist/mint-components/{p-2c99add0.js → p-47b47e3b.js} +1 -1
  53. package/dist/mint-components/p-7789349d.system.js +1 -0
  54. package/dist/mint-components/p-9e788a1a.js +1 -0
  55. package/dist/mint-components/p-a5c96f2a.entry.js +195 -0
  56. package/dist/mint-components/p-a8e79cad.entry.js +9 -0
  57. package/dist/mint-components/p-b99108a6.system.entry.js +1 -0
  58. package/dist/mint-components/{p-209eab38.system.js → p-bd1372d2.system.js} +1 -1
  59. package/dist/mint-components/p-bfd92031.system.entry.js +1 -0
  60. package/dist/mint-components/p-c58250e6.system.entry.js +1 -0
  61. package/dist/mint-components/p-ca809fdd.system.js +1 -1
  62. package/dist/mint-components/p-e11b605d.entry.js +25 -0
  63. package/dist/mint-components/{p-b9e863d0.entry.js → p-fc17c2d2.entry.js} +30 -12
  64. package/dist/types/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.d.ts +1 -0
  65. package/dist/types/components/sqm-referral-table/ReferralTableRewardsCell.stories.d.ts +1 -0
  66. package/dist/types/components/sqm-rewards-table/RewardsTableCell.stories.d.ts +1 -0
  67. package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.d.ts +1 -0
  68. package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.d.ts +4 -0
  69. package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +1 -0
  70. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +1 -0
  71. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.d.ts +4 -0
  72. package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.d.ts +1 -0
  73. package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.d.ts +4 -0
  74. package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.d.ts +1 -0
  75. package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.d.ts +4 -0
  76. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +1 -0
  77. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +6 -2
  78. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +12 -0
  79. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +1 -0
  80. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +4 -0
  81. package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.d.ts +1 -0
  82. package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.d.ts +4 -0
  83. package/dist/types/components.d.ts +72 -4
  84. package/docs/docs.docx +0 -0
  85. package/docs/raisins.json +1 -1
  86. package/grapesjs/grapesjs.js +1 -1
  87. package/package.json +1 -1
  88. package/dist/esm-es5/sqm-invoice-table-view-c184248a.js +0 -1
  89. package/dist/mint-components/p-13ce67a3.js +0 -1
  90. package/dist/mint-components/p-4e21de5f.entry.js +0 -9
  91. package/dist/mint-components/p-8c26c4ce.entry.js +0 -195
  92. package/dist/mint-components/p-9266a8fc.system.entry.js +0 -1
  93. package/dist/mint-components/p-a567ba84.system.entry.js +0 -1
  94. package/dist/mint-components/p-a9b7e11f.entry.js +0 -25
  95. package/dist/mint-components/p-b7836281.system.js +0 -1
  96. package/dist/mint-components/p-c520d10d.system.entry.js +0 -1
  97. package/dist/mint-components/p-c5d26757.system.entry.js +0 -1
  98. package/docs/picklesdoc--2024-01-15--11-20-00.xlsx +0 -0
  99. package/docs/picklesdoc--2024-01-15--11-24-04.xlsx +0 -0
@@ -1,6 +1,7 @@
1
1
  import { h } from "@stencil/core";
2
2
  import { createStyleSheet } from "../../../styling/JSS";
3
3
  import { TextSpanView } from "../../sqm-text-span/sqm-text-span-view";
4
+ import { intl } from "../../../global/global";
4
5
  const style = {
5
6
  Wrapper: {
6
7
  display: "flex",
@@ -20,10 +21,7 @@ const style = {
20
21
  backgroundColor: "var(--sl-color-red-100)",
21
22
  borderTop: "none",
22
23
  },
23
- "&::part(message)": {
24
- display: "flex",
25
- flexDirection: "column",
26
- },
24
+ "&::part(message)": {},
27
25
  },
28
26
  ContinueButton: {
29
27
  width: "100%",
@@ -76,7 +74,13 @@ export function WidgetEmailVerificationView(props) {
76
74
  states.sendCodeError && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", class: sheet.classes.ErrorAlertContainer, open: true },
77
75
  h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
78
76
  h("b", null, text.sendCodeErrorHeader),
79
- text.sendCodeErrorDescription)),
77
+ h("br", null),
78
+ intl.formatMessage({
79
+ id: "sendCodeErrorDescription",
80
+ defaultMessage: text.sendCodeErrorDescription,
81
+ }, {
82
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
83
+ }))),
80
84
  states.initialLoading ? (renderLoadingSkeleton()) : (h("div", { class: sheet.classes.Wrapper },
81
85
  h(TextSpanView, { type: "p" }, text.verifyEmailHeaderText),
82
86
  h("sl-form", { "onSl-submit": callbacks.submitEmail },
@@ -18,11 +18,15 @@ export class WidgetEmailVerification {
18
18
  /**
19
19
  * @uiName Send code to email alert header
20
20
  */
21
- this.sendCodeErrorHeader = "There was an error sending your code.";
21
+ this.sendCodeErrorHeader = "There was an error sending your code";
22
+ /**
23
+ * @uiName Support link text
24
+ */
25
+ this.supportLink = "support team";
22
26
  /**
23
27
  * @uiName Send code to email alert description
24
28
  */
25
- this.sendCodeErrorDescription = "Please try again. If this problem continues, contact our program support team.";
29
+ this.sendCodeErrorDescription = "Please try again. If this problem continues, contact our program {supportLink}.";
26
30
  /**
27
31
  * @uiName Email input label
28
32
  */
@@ -90,7 +94,28 @@ export class WidgetEmailVerification {
90
94
  },
91
95
  "attribute": "send-code-error-header",
92
96
  "reflect": false,
93
- "defaultValue": "\"There was an error sending your code.\""
97
+ "defaultValue": "\"There was an error sending your code\""
98
+ },
99
+ "supportLink": {
100
+ "type": "string",
101
+ "mutable": false,
102
+ "complexType": {
103
+ "original": "string",
104
+ "resolved": "string",
105
+ "references": {}
106
+ },
107
+ "required": false,
108
+ "optional": false,
109
+ "docs": {
110
+ "tags": [{
111
+ "text": "Support link text",
112
+ "name": "uiName"
113
+ }],
114
+ "text": ""
115
+ },
116
+ "attribute": "support-link",
117
+ "reflect": false,
118
+ "defaultValue": "\"support team\""
94
119
  },
95
120
  "sendCodeErrorDescription": {
96
121
  "type": "string",
@@ -111,7 +136,7 @@ export class WidgetEmailVerification {
111
136
  },
112
137
  "attribute": "send-code-error-description",
113
138
  "reflect": false,
114
- "defaultValue": "\"Please try again. If this problem continues, contact our program support team.\""
139
+ "defaultValue": "\"Please try again. If this problem continues, contact our program {supportLink}.\""
115
140
  },
116
141
  "emailLabel": {
117
142
  "type": "string",
@@ -275,7 +275,7 @@ export const GeneralLoadingView = () => {
275
275
  return h(LoadingView, null);
276
276
  };
277
277
  export const GeneralErrorView = () => {
278
- return (h(ErrorView, { loadingErrorAlertHeader: "There was a problem loading your form", loadingErrorAlertDescription: "Please refresh the page and try again. If this problem continues, contact Support." }));
278
+ return (h(ErrorView, { loadingErrorAlertHeader: "There was a problem loading your form", loadingErrorAlertDescription: "Please refresh the page and try again. If this problem continues, contact our support team." }));
279
279
  };
280
280
  // STEP ONE
281
281
  export const StepOne = () => {
@@ -759,6 +759,20 @@ export const StepFourToPaypalChecked = () => {
759
759
  },
760
760
  } }));
761
761
  };
762
+ export const StepFourReVerifyEmail = () => {
763
+ return (h("sqm-banking-info-form", { demoData: {
764
+ ...stepFourProps,
765
+ states: {
766
+ ...stepFourProps.states,
767
+ showVerification: true,
768
+ isPartner: true,
769
+ formState: {
770
+ ...stepFourProps.states.formState,
771
+ paymentMethodChecked: "toPayPalAccount",
772
+ },
773
+ },
774
+ } }));
775
+ };
762
776
  export const TaxAndCashDashboardActiveW9Form = () => {
763
777
  return (h("sqm-tax-and-cash-dashboard", { demoData: {
764
778
  ...dashboardProps,
@@ -223,12 +223,22 @@ export const BankingInfoFormView = (props) => {
223
223
  h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
224
224
  h("strong", null, text.error.generalTitle),
225
225
  h("br", null),
226
- text.error.generalDescription)),
226
+ intl.formatMessage({
227
+ id: "generalDescription",
228
+ defaultMessage: text.error.generalDescription,
229
+ }, {
230
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
231
+ }))),
227
232
  states.isPartner && !states.hideSteps && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: sheet.classes.PartnerAlertContainer },
228
233
  h("sl-icon", { slot: "icon", name: "info-circle" }),
229
234
  h("strong", null, text.isPartnerAlertHeader),
230
235
  h("br", null),
231
- text.isPartnerAlertDescription)),
236
+ intl.formatMessage({
237
+ id: "isPartnerAlertDescription",
238
+ defaultMessage: text.isPartnerAlertDescription,
239
+ }, {
240
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
241
+ }))),
232
242
  h("div", null,
233
243
  h("h4", null, text.paymentMethod),
234
244
  h("p", { class: classes.DescriptionText }, text.paymentMethodSubtext))),
@@ -214,7 +214,7 @@ export class BankingInfoForm {
214
214
  * @uiName Participant is a partner alert description
215
215
  * @uiWidget textArea
216
216
  */
217
- this.isPartnerAlertDescription = "If you don’t recognize this referral program provider or believe this is a mistake, please contact our Support team or sign up for this referral program with a different email.";
217
+ 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.";
218
218
  /**
219
219
  * Part of the alert displayed at the top of the page.
220
220
  * @uiName Form submission error message title
@@ -226,7 +226,7 @@ export class BankingInfoForm {
226
226
  * @uiName Form submission error message description
227
227
  * @uiWidget textArea
228
228
  */
229
- this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact Support.";
229
+ this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
230
230
  /**
231
231
  * Displayed under a field that is missing required information.
232
232
  * @uiName Empty form field error message
@@ -237,6 +237,10 @@ export class BankingInfoForm {
237
237
  * @uiName Form field error message
238
238
  */
239
239
  this.fieldInvalidError = "{fieldName} is invalid";
240
+ /**
241
+ * @uiName Support link text
242
+ */
243
+ this.supportLink = "support team";
240
244
  /**
241
245
  * @uiName Continue button label
242
246
  */
@@ -1334,7 +1338,7 @@ export class BankingInfoForm {
1334
1338
  },
1335
1339
  "attribute": "is-partner-alert-description",
1336
1340
  "reflect": false,
1337
- "defaultValue": "\"If you don\u2019t recognize this referral program provider or believe this is a mistake, please contact our Support team or sign up for this referral program with a different email.\""
1341
+ "defaultValue": "\"If you don\u2019t 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.\""
1338
1342
  },
1339
1343
  "generalErrorTitle": {
1340
1344
  "type": "string",
@@ -1382,7 +1386,7 @@ export class BankingInfoForm {
1382
1386
  },
1383
1387
  "attribute": "general-error-description",
1384
1388
  "reflect": false,
1385
- "defaultValue": "\"Please review your information and try again. If this problem continues, contact Support.\""
1389
+ "defaultValue": "\"Please review your information and try again. If this problem continues, contact our {supportLink}.\""
1386
1390
  },
1387
1391
  "fieldRequiredError": {
1388
1392
  "type": "string",
@@ -1426,6 +1430,27 @@ export class BankingInfoForm {
1426
1430
  "reflect": false,
1427
1431
  "defaultValue": "\"{fieldName} is invalid\""
1428
1432
  },
1433
+ "supportLink": {
1434
+ "type": "string",
1435
+ "mutable": false,
1436
+ "complexType": {
1437
+ "original": "string",
1438
+ "resolved": "string",
1439
+ "references": {}
1440
+ },
1441
+ "required": false,
1442
+ "optional": false,
1443
+ "docs": {
1444
+ "tags": [{
1445
+ "text": "Support link text",
1446
+ "name": "uiName"
1447
+ }],
1448
+ "text": ""
1449
+ },
1450
+ "attribute": "support-link",
1451
+ "reflect": false,
1452
+ "defaultValue": "\"support team\""
1453
+ },
1429
1454
  "continueButton": {
1430
1455
  "type": "string",
1431
1456
  "mutable": false,
@@ -208,6 +208,8 @@ export function useBankingInfoForm(props) {
208
208
  // Call difference mutations based on whether the user is updating
209
209
  // the info for setting it for the first time
210
210
  if (isPartner) {
211
+ if (!token)
212
+ return; // Require token for this mutation
211
213
  response = await updateWithdrawalSettings({
212
214
  updateImpactPublisherWithdrawalSettingsInput: {
213
215
  ...body,
@@ -289,8 +291,7 @@ export function useBankingInfoForm(props) {
289
291
  });
290
292
  setShowVerification(false);
291
293
  }
292
- if (token)
293
- await runMutation(formData, token);
294
+ await runMutation(formData, token);
294
295
  };
295
296
  const onVerification = async (token) => {
296
297
  host.dispatchEvent(new CustomEvent(VERIFICATION_EVENT_KEY, {
@@ -160,12 +160,22 @@ export const DocusignFormView = (props) => {
160
160
  h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
161
161
  h("strong", null, text.error.loadingErrorAlertHeader),
162
162
  h("br", null),
163
- text.error.loadingErrorAlertDescription))),
163
+ intl.formatMessage({
164
+ id: "loadingErrorAlertDescription",
165
+ defaultMessage: text.error.loadingErrorAlertDescription,
166
+ }, {
167
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
168
+ })))),
164
169
  ((_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.classes.ErrorAlertContainer },
165
170
  h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
166
171
  h("strong", null, text.error.generalTitle),
167
172
  h("br", null),
168
- text.error.generalDescription)),
173
+ intl.formatMessage({
174
+ id: "generalDescription",
175
+ defaultMessage: text.error.generalDescription,
176
+ }, {
177
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
178
+ }))),
169
179
  h("div", null,
170
180
  h("div", null,
171
181
  h("h5", { class: classes.BoldText }, intl.formatMessage({ id: "tax-form-label", defaultMessage: text.taxFormLabel }, { documentType: documentTypeString })),
@@ -34,6 +34,10 @@ export class DocusignForm {
34
34
  * @uiWidget textArea
35
35
  */
36
36
  this.taxFormDescription = "Participants based in the US need to submit a {documentType} form.";
37
+ /**
38
+ * @uiName Support link text
39
+ */
40
+ this.supportLink = "support team";
37
41
  /**
38
42
  * Displayed at the top of the page to individuals joining a US program who reside outside the country.
39
43
  * @uiName W-8 BEN tax form description
@@ -77,7 +81,7 @@ export class DocusignForm {
77
81
  * @uiName Docusign form error message
78
82
  * @uiWidget textArea
79
83
  */
80
- this.docusignError = "There was a problem displaying this form. Please refresh the page. If this problem continues, contact Support.";
84
+ this.docusignError = "There was a problem displaying this form. Please refresh the page. If this problem continues, contact our {supportLink}.";
81
85
  /**
82
86
  * @uiName Refresh page button label
83
87
  */
@@ -93,7 +97,7 @@ export class DocusignForm {
93
97
  * @uiName Form submission error message description
94
98
  * @uiWidget textArea
95
99
  */
96
- this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact Support.";
100
+ this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
97
101
  /**
98
102
  * Part of the alert displayed at the top of the page.
99
103
  * @uiName Page load error message title
@@ -105,7 +109,7 @@ export class DocusignForm {
105
109
  * @uiName Page load error message description
106
110
  * @uiWidget textArea
107
111
  */
108
- this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact Support.";
112
+ this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact our {supportLink}.";
109
113
  /**
110
114
  * Displayed at the top of the page on all set up steps.
111
115
  * @uiName Page description
@@ -240,6 +244,27 @@ export class DocusignForm {
240
244
  "reflect": false,
241
245
  "defaultValue": "\"Participants based in the US need to submit a {documentType} form.\""
242
246
  },
247
+ "supportLink": {
248
+ "type": "string",
249
+ "mutable": false,
250
+ "complexType": {
251
+ "original": "string",
252
+ "resolved": "string",
253
+ "references": {}
254
+ },
255
+ "required": false,
256
+ "optional": false,
257
+ "docs": {
258
+ "tags": [{
259
+ "text": "Support link text",
260
+ "name": "uiName"
261
+ }],
262
+ "text": ""
263
+ },
264
+ "attribute": "support-link",
265
+ "reflect": false,
266
+ "defaultValue": "\"support team\""
267
+ },
243
268
  "taxFormDescriptionIndividualParticipant": {
244
269
  "type": "string",
245
270
  "mutable": false,
@@ -421,7 +446,7 @@ export class DocusignForm {
421
446
  },
422
447
  "attribute": "docusign-error",
423
448
  "reflect": false,
424
- "defaultValue": "\"There was a problem displaying this form. Please refresh the page. If this problem continues, contact Support.\""
449
+ "defaultValue": "\"There was a problem displaying this form. Please refresh the page. If this problem continues, contact our {supportLink}.\""
425
450
  },
426
451
  "refreshButton": {
427
452
  "type": "string",
@@ -490,7 +515,7 @@ export class DocusignForm {
490
515
  },
491
516
  "attribute": "general-error-description",
492
517
  "reflect": false,
493
- "defaultValue": "\"Please review your information and try again. If this problem continues, contact Support.\""
518
+ "defaultValue": "\"Please review your information and try again. If this problem continues, contact our {supportLink}.\""
494
519
  },
495
520
  "loadingErrorAlertHeader": {
496
521
  "type": "string",
@@ -538,7 +563,7 @@ export class DocusignForm {
538
563
  },
539
564
  "attribute": "loading-error-alert-description",
540
565
  "reflect": false,
541
- "defaultValue": "\"Please refresh the page and try again. If this problem continues, contact Support.\""
566
+ "defaultValue": "\"Please refresh the page and try again. If this problem continues, contact our {supportLink}.\""
542
567
  },
543
568
  "taxAndPayoutsDescription": {
544
569
  "type": "string",
@@ -90,11 +90,9 @@ const style = {
90
90
  border: "none",
91
91
  },
92
92
  "&::part(message)": {
93
- display: "flex",
94
93
  alignItems: "center",
95
- justifyContent: "flex-start",
96
- padding: "10px",
97
- height: "max-content",
94
+ padding: "var(--sl-spacing-small)",
95
+ whiteSpace: "nowrap",
98
96
  },
99
97
  "& sl-icon::part(base)": {
100
98
  color: "var(--sl-color-yellow-500)",
@@ -152,17 +150,32 @@ export const IndirectTaxFormView = (props) => {
152
150
  h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
153
151
  h("strong", null, text.error.loadingErrorAlertHeader),
154
152
  h("br", null),
155
- text.error.loadingErrorAlertDescription))),
153
+ intl.formatMessage({
154
+ id: "loadingErrorAlertDescription",
155
+ defaultMessage: text.error.loadingErrorAlertDescription,
156
+ }, {
157
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
158
+ })))),
156
159
  ((_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.classes.AlertContainer },
157
160
  h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
158
161
  h("strong", null, text.error.generalTitle),
159
162
  h("br", null),
160
- text.error.generalDescription)),
163
+ intl.formatMessage({
164
+ id: "generalDescription",
165
+ defaultMessage: text.error.generalDescription,
166
+ }, {
167
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
168
+ }))),
161
169
  states.isPartner && (h("sl-alert", { type: "primary", open: true, class: sheet.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
162
170
  h("sl-icon", { slot: "icon", name: "info-circle" }),
163
171
  h("strong", null, text.isPartnerAlertHeader),
164
172
  h("br", null),
165
- text.isPartnerAlertDescription)),
173
+ intl.formatMessage({
174
+ id: "isPartnerAlertDescription",
175
+ defaultMessage: text.isPartnerAlertDescription,
176
+ }, {
177
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
178
+ }))),
166
179
  h("div", null,
167
180
  h("h4", null, text.indirectTaxDetails))),
168
181
  states.loading ? (h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } })) : (h("div", null,
@@ -179,7 +192,12 @@ export const IndirectTaxFormView = (props) => {
179
192
  slots.registeredInDifferentCountryDetailsSlot)),
180
193
  h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: classes.InfoAlert },
181
194
  h("sl-icon", { class: classes.InfoWarningIcon, slot: "icon", name: "exclamation-triangle" }),
182
- text.cannotChangeInfoAlert),
195
+ intl.formatMessage({
196
+ id: "cannotChangeInfoAlert",
197
+ defaultMessage: text.cannotChangeInfoAlert,
198
+ }, {
199
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
200
+ })),
183
201
  h("div", { class: classes.BtnContainer },
184
202
  h("sl-button", { type: "primary", disabled: states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
185
203
  h("sl-button", { class: classes.SecondaryBtn, type: "text", disabled: states.disabled, onClick: callbacks.onBack, exportparts: "base: secondarybutton-base" }, text.backButton))))));
@@ -100,7 +100,7 @@ export class IndirectTaxForm {
100
100
  * @uiName Submission confirmation alert
101
101
  * @uiWidget textArea
102
102
  */
103
- this.cannotChangeInfoAlert = "Changes to your personal and indirect tax information can only be made through our Support team after you complete this step. Make sure these are correct before continuing.";
103
+ this.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.";
104
104
  /**
105
105
  * @uiName Missing indirect tax number error message
106
106
  */
@@ -126,11 +126,15 @@ export class IndirectTaxForm {
126
126
  * @uiName Participant is a partner alert description
127
127
  * @uiWidget textArea
128
128
  */
129
- this.isPartnerAlertDescription = "If you don’t recognize this referral program provider or believe this is a mistake, please contact Support or sign up for this referral program with a different email.";
129
+ 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.";
130
130
  /**
131
131
  * @uiName Continue button label
132
132
  */
133
133
  this.continueButton = "Continue";
134
+ /**
135
+ * @uiName Support link text
136
+ */
137
+ this.supportLink = "support team";
134
138
  /**
135
139
  * Part of the alert displayed at the top of the page.
136
140
  * @uiName Form submission error message title
@@ -142,7 +146,7 @@ export class IndirectTaxForm {
142
146
  * @uiName Form submission error message description
143
147
  * @uiWidget textArea
144
148
  */
145
- this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact Support.";
149
+ this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
146
150
  /**
147
151
  * Part of the alert displayed at the top of the page.
148
152
  * @uiName Page load error message title
@@ -154,7 +158,7 @@ export class IndirectTaxForm {
154
158
  * @uiName Page load error message description
155
159
  * @uiWidget textArea
156
160
  */
157
- this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact Support.";
161
+ this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact our {supportLink}.";
158
162
  /**
159
163
  * Displayed at the top of the page on all set up steps.
160
164
  * @uiName Page description
@@ -606,7 +610,7 @@ export class IndirectTaxForm {
606
610
  },
607
611
  "attribute": "cannot-change-info-alert",
608
612
  "reflect": false,
609
- "defaultValue": "\"Changes to your personal and indirect tax information can only be made through our Support team after you complete this step. Make sure these are correct before continuing.\""
613
+ "defaultValue": "\"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.\""
610
614
  },
611
615
  "indirectTaxNumberError": {
612
616
  "type": "string",
@@ -717,7 +721,7 @@ export class IndirectTaxForm {
717
721
  },
718
722
  "attribute": "is-partner-alert-description",
719
723
  "reflect": false,
720
- "defaultValue": "\"If you don\u2019t recognize this referral program provider or believe this is a mistake, please contact Support or sign up for this referral program with a different email.\""
724
+ "defaultValue": "\"If you don\u2019t 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.\""
721
725
  },
722
726
  "continueButton": {
723
727
  "type": "string",
@@ -740,6 +744,27 @@ export class IndirectTaxForm {
740
744
  "reflect": false,
741
745
  "defaultValue": "\"Continue\""
742
746
  },
747
+ "supportLink": {
748
+ "type": "string",
749
+ "mutable": false,
750
+ "complexType": {
751
+ "original": "string",
752
+ "resolved": "string",
753
+ "references": {}
754
+ },
755
+ "required": false,
756
+ "optional": false,
757
+ "docs": {
758
+ "tags": [{
759
+ "text": "Support link text",
760
+ "name": "uiName"
761
+ }],
762
+ "text": ""
763
+ },
764
+ "attribute": "support-link",
765
+ "reflect": false,
766
+ "defaultValue": "\"support team\""
767
+ },
743
768
  "generalErrorTitle": {
744
769
  "type": "string",
745
770
  "mutable": false,
@@ -786,7 +811,7 @@ export class IndirectTaxForm {
786
811
  },
787
812
  "attribute": "general-error-description",
788
813
  "reflect": false,
789
- "defaultValue": "\"Please review your information and try again. If this problem continues, contact Support.\""
814
+ "defaultValue": "\"Please review your information and try again. If this problem continues, contact our {supportLink}.\""
790
815
  },
791
816
  "loadingErrorAlertHeader": {
792
817
  "type": "string",
@@ -834,7 +859,7 @@ export class IndirectTaxForm {
834
859
  },
835
860
  "attribute": "loading-error-alert-description",
836
861
  "reflect": false,
837
- "defaultValue": "\"Please refresh the page and try again. If this problem continues, contact Support.\""
862
+ "defaultValue": "\"Please refresh the page and try again. If this problem continues, contact our {supportLink}.\""
838
863
  },
839
864
  "taxAndPayoutsDescription": {
840
865
  "type": "string",
@@ -1,5 +1,6 @@
1
1
  import { h } from "@stencil/core";
2
2
  import { createStyleSheet } from "../../../styling/JSS";
3
+ import { intl } from "../../../global/global";
3
4
  const style = {
4
5
  SkeletonOne: {
5
6
  width: "50%",
@@ -85,7 +86,12 @@ export function PayoutStatusAlertView(props) {
85
86
  case "VERIFICATION:REQUIRED":
86
87
  return {
87
88
  header: text.verificationRequiredHeader,
88
- description: text.verificationRequiredDescription,
89
+ description: intl.formatMessage({
90
+ id: "verificationRequiredDescription",
91
+ defaultMessage: text.verificationRequiredDescription,
92
+ }, {
93
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
94
+ }),
89
95
  buttonText: text.verificationRequiredButtonText,
90
96
  alertType: "warning",
91
97
  icon: "exclamation-triangle",
@@ -94,7 +100,12 @@ export function PayoutStatusAlertView(props) {
94
100
  case "VERIFICATION:INTERNAL":
95
101
  return {
96
102
  header: text.verificationRequiredInternalHeader,
97
- description: text.verificationRequiredInternalDescription,
103
+ description: intl.formatMessage({
104
+ id: "verificationRequiredInternalDescription",
105
+ defaultMessage: text.verificationRequiredInternalDescription,
106
+ }, {
107
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
108
+ }),
98
109
  alertType: "warning",
99
110
  icon: "exclamation-triangle",
100
111
  class: sheet.classes.WarningAlertContainer,
@@ -102,7 +113,12 @@ export function PayoutStatusAlertView(props) {
102
113
  case "VERIFICATION:REVIEW":
103
114
  return {
104
115
  header: text.verificationReviewInternalHeader,
105
- description: text.verificationReviewInternalDescription,
116
+ description: intl.formatMessage({
117
+ id: "verificationReviewInternalDescription",
118
+ defaultMessage: text.verificationReviewInternalDescription,
119
+ }, {
120
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
121
+ }),
106
122
  alertType: "warning",
107
123
  icon: "exclamation-triangle",
108
124
  class: sheet.classes.WarningAlertContainer,
@@ -110,7 +126,12 @@ export function PayoutStatusAlertView(props) {
110
126
  case "VERIFICATION:FAILED":
111
127
  return {
112
128
  header: text.verificationFailedInternalHeader,
113
- description: text.verificationFailedInternalDescription,
129
+ description: intl.formatMessage({
130
+ id: "verificationFailedInternalDescription",
131
+ defaultMessage: text.verificationFailedInternalDescription,
132
+ }, {
133
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
134
+ }),
114
135
  alertType: "critical",
115
136
  icon: "exclamation-octagon",
116
137
  class: sheet.classes.ErrorAlertContainer,
@@ -118,7 +139,12 @@ export function PayoutStatusAlertView(props) {
118
139
  case "HOLD":
119
140
  return {
120
141
  header: text.holdHeader,
121
- description: text.holdDescription,
142
+ description: intl.formatMessage({
143
+ id: "holdDescription",
144
+ defaultMessage: text.holdDescription,
145
+ }, {
146
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
147
+ }),
122
148
  buttonText: null,
123
149
  alertType: "warning",
124
150
  icon: "exclamation-triangle",
@@ -131,7 +157,9 @@ export function PayoutStatusAlertView(props) {
131
157
  function getButton(status) {
132
158
  switch (status) {
133
159
  case "INFORMATION_REQUIRED":
134
- return data.type === "SquatchJS2" ? (h("sqm-scroll", { "scroll-tag-name": "sqm-tabs", "button-text": text.informationRequiredButtonText, "scroll-animation": "smooth" })) : data.type === "SquatchPortal" ? (h("sl-button", { type: "default", onClick: callbacks.onTermsClick }, text.informationRequiredButtonText)) : (h("sl-button", { type: "default" }, text.informationRequiredButtonText));
160
+ return data.type === "SquatchJS2" ? (h("sqm-scroll", { "scroll-tag-name": "sqm-tabs", "button-text": text.informationRequiredButtonText, "scroll-animation": "smooth" })) : data.type === "SquatchPortal" ? (h("sl-button", { type: "default", onClick: callbacks.onTermsClick }, text.informationRequiredButtonText)) : (
161
+ // Demo case
162
+ h("sl-button", { type: "default" }, text.informationRequiredButtonText));
135
163
  case "VERIFICATION:REQUIRED":
136
164
  return (h("sl-button", { type: "default", loading: states.veriffLoading, onClick: callbacks.onClick }, text.verificationRequiredButtonText));
137
165
  default: