@saasquatch/mint-components 1.12.0-14 → 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 (94) 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 +46 -14
  5. package/dist/cjs/sqm-email-verification.cjs.entry.js +15 -7
  6. package/dist/cjs/{sqm-invoice-table-view-ed76d7bd.js → sqm-invoice-table-view-b0602970.js} +1 -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-referral-table/ReferralTable.stories.js +7 -1
  12. package/dist/collection/components/sqm-referral-table/ReferralTableRewardsCell.stories.js +16 -4
  13. package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +7 -12
  14. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +9 -5
  15. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.js +29 -4
  16. package/dist/collection/components/tax-and-cash/TaxForm.stories.js +1 -1
  17. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +12 -2
  18. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +29 -4
  19. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +3 -2
  20. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +12 -2
  21. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +31 -6
  22. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +26 -8
  23. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +33 -8
  24. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +34 -6
  25. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +41 -16
  26. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +1 -1
  27. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +49 -16
  28. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +51 -8
  29. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +43 -18
  30. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +18 -3
  31. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +31 -6
  32. package/dist/esm/loader.js +1 -1
  33. package/dist/esm/mint-components.js +1 -1
  34. package/dist/esm/sqm-banking-info-form_16.entry.js +182 -56
  35. package/dist/esm/sqm-big-stat_39.entry.js +46 -14
  36. package/dist/esm/sqm-email-verification.entry.js +15 -7
  37. package/dist/esm/{sqm-invoice-table-view-6601d8f2.js → sqm-invoice-table-view-b1ac1bfc.js} +1 -1
  38. package/dist/esm/sqm-stencilbook.entry.js +41 -18
  39. package/dist/esm/{usePayoutStatus-d613ff10.js → usePayoutStatus-0bc0380f.js} +1 -1
  40. package/dist/esm-es5/loader.js +1 -1
  41. package/dist/esm-es5/mint-components.js +1 -1
  42. package/dist/esm-es5/sqm-banking-info-form_16.entry.js +1 -1
  43. package/dist/esm-es5/sqm-big-stat_39.entry.js +1 -1
  44. package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
  45. package/dist/esm-es5/sqm-invoice-table-view-b1ac1bfc.js +1 -0
  46. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  47. package/dist/esm-es5/{usePayoutStatus-d613ff10.js → usePayoutStatus-0bc0380f.js} +2 -2
  48. package/dist/mint-components/mint-components.esm.js +1 -1
  49. package/dist/mint-components/p-158568e5.system.entry.js +1 -0
  50. package/dist/mint-components/{p-2c99add0.js → p-47b47e3b.js} +1 -1
  51. package/dist/mint-components/p-7789349d.system.js +1 -0
  52. package/dist/mint-components/p-9e788a1a.js +1 -0
  53. package/dist/mint-components/p-a5c96f2a.entry.js +195 -0
  54. package/dist/mint-components/p-a8e79cad.entry.js +9 -0
  55. package/dist/mint-components/p-b99108a6.system.entry.js +1 -0
  56. package/dist/mint-components/{p-209eab38.system.js → p-bd1372d2.system.js} +1 -1
  57. package/dist/mint-components/p-bfd92031.system.entry.js +1 -0
  58. package/dist/mint-components/p-c58250e6.system.entry.js +1 -0
  59. package/dist/mint-components/p-ca809fdd.system.js +1 -1
  60. package/dist/mint-components/p-e11b605d.entry.js +25 -0
  61. package/dist/mint-components/{p-30ac8e59.entry.js → p-fc17c2d2.entry.js} +11 -11
  62. package/dist/types/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.d.ts +1 -0
  63. package/dist/types/components/sqm-referral-table/ReferralTableRewardsCell.stories.d.ts +1 -0
  64. package/dist/types/components/sqm-rewards-table/RewardsTableCell.stories.d.ts +1 -0
  65. package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.d.ts +1 -0
  66. package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.d.ts +4 -0
  67. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +1 -0
  68. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.d.ts +4 -0
  69. package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.d.ts +1 -0
  70. package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.d.ts +4 -0
  71. package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.d.ts +1 -0
  72. package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.d.ts +4 -0
  73. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +1 -0
  74. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +6 -2
  75. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +12 -0
  76. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +1 -0
  77. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +4 -0
  78. package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.d.ts +1 -0
  79. package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.d.ts +4 -0
  80. package/dist/types/components.d.ts +72 -4
  81. package/docs/docs.docx +0 -0
  82. package/docs/raisins.json +1 -1
  83. package/grapesjs/grapesjs.js +1 -1
  84. package/package.json +1 -1
  85. package/dist/esm-es5/sqm-invoice-table-view-6601d8f2.js +0 -1
  86. package/dist/mint-components/p-21aa318a.entry.js +0 -195
  87. package/dist/mint-components/p-2d836e58.js +0 -1
  88. package/dist/mint-components/p-45a8d0fc.system.js +0 -1
  89. package/dist/mint-components/p-4adff550.system.entry.js +0 -1
  90. package/dist/mint-components/p-856c09f1.entry.js +0 -9
  91. package/dist/mint-components/p-9a21cc81.system.entry.js +0 -1
  92. package/dist/mint-components/p-a9b7e11f.entry.js +0 -25
  93. package/dist/mint-components/p-c5d26757.system.entry.js +0 -1
  94. package/dist/mint-components/p-e0c54a41.system.entry.js +0 -1
@@ -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:
@@ -31,7 +31,7 @@ export class PayoutStatusAlert {
31
31
  /**
32
32
  * @uiName Verification required alert description
33
33
  */
34
- this.verificationRequiredDescription = "Complete your verification to start receiving your cash rewards. It should only take a few minutes verify.";
34
+ this.verificationRequiredDescription = "It should only take a few minutes verify. If you run in to an issue verifying your identity contact our {supportLink}.";
35
35
  /**
36
36
  * @uiName Verification required alert button text
37
37
  */
@@ -43,7 +43,7 @@ export class PayoutStatusAlert {
43
43
  /**
44
44
  * @uiName Verification required internal alert description
45
45
  */
46
- this.verificationRequiredInternalDescription = "Identity verification submission has been received. Our system is currently performing additional checks and analyzing the results. You will be updated shortley.";
46
+ this.verificationRequiredInternalDescription = "Identity verification submission has been received. Our system is currently performing additional checks and analyzing the results. You will be updated shortley. If you don't hear from us contact our {supportLink}.";
47
47
  /**
48
48
  * @uiName Verification review internal alert header
49
49
  */
@@ -51,7 +51,7 @@ export class PayoutStatusAlert {
51
51
  /**
52
52
  * @uiName Verification review internal alert description
53
53
  */
54
- this.verificationReviewInternalDescription = "Identity verification requires further review due to a potential error. Our team is reviewing the information and will update you shortly.";
54
+ this.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}.";
55
55
  /**
56
56
  * @uiName Verification failed internal alert header
57
57
  */
@@ -59,7 +59,7 @@ export class PayoutStatusAlert {
59
59
  /**
60
60
  * @uiName Verification failed internal alert description
61
61
  */
62
- this.verificationFailedInternalDescription = "Identity verification has failed. Our team is reviewing the report and will contact you with further information.";
62
+ this.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}.";
63
63
  /**
64
64
  * @uiName Payout on hold alert header
65
65
  */
@@ -68,11 +68,15 @@ export class PayoutStatusAlert {
68
68
  * @uiName Payout on hold alert description
69
69
  * AL: TODO copy not finalized for support section
70
70
  */
71
- this.holdDescription = "Please check your inbox for an email from our referral provider, impact.com. It contains details on how to resolve this issue. If you need further assistance, feel free to reach out to our support team.";
71
+ this.holdDescription = "Please check your inbox for an email from our referral provider, impact.com. It contains details on how to resolve this issue. If you need further assistance, feel free to reach out to our {supportLink}.";
72
72
  /**
73
- * @uiName Cash & Payouts Terms and Conditions url
73
+ * @uiName Cash & Payouts Microsite Page (only set if alert is used in a microsite)
74
74
  */
75
- this.termsUrl = "https://terms.advocate.impact.com/PayoutTermsAndConditions.html";
75
+ this.cashPayoutsPageUrl = "/cash";
76
+ /**
77
+ * @uiName Support link text
78
+ */
79
+ this.supportLink = "support team";
76
80
  /**
77
81
  * @uiName Error header
78
82
  */
@@ -199,7 +203,7 @@ export class PayoutStatusAlert {
199
203
  },
200
204
  "attribute": "verification-required-description",
201
205
  "reflect": false,
202
- "defaultValue": "\"Complete your verification to start receiving your cash rewards. It should only take a few minutes verify.\""
206
+ "defaultValue": "\"It should only take a few minutes verify. If you run in to an issue verifying your identity contact our {supportLink}.\""
203
207
  },
204
208
  "verificationRequiredButtonText": {
205
209
  "type": "string",
@@ -262,7 +266,7 @@ export class PayoutStatusAlert {
262
266
  },
263
267
  "attribute": "verification-required-internal-description",
264
268
  "reflect": false,
265
- "defaultValue": "\"Identity verification submission has been received. Our system is currently performing additional checks and analyzing the results. You will be updated shortley.\""
269
+ "defaultValue": "\"Identity verification submission has been received. Our system is currently performing additional checks and analyzing the results. You will be updated shortley. If you don't hear from us contact our {supportLink}.\""
266
270
  },
267
271
  "verificationReviewInternalHeader": {
268
272
  "type": "string",
@@ -304,7 +308,7 @@ export class PayoutStatusAlert {
304
308
  },
305
309
  "attribute": "verification-review-internal-description",
306
310
  "reflect": false,
307
- "defaultValue": "\"Identity verification requires further review due to a potential error. Our team is reviewing the information and will update you shortly.\""
311
+ "defaultValue": "\"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}.\""
308
312
  },
309
313
  "verificationFailedInternalHeader": {
310
314
  "type": "string",
@@ -346,7 +350,7 @@ export class PayoutStatusAlert {
346
350
  },
347
351
  "attribute": "verification-failed-internal-description",
348
352
  "reflect": false,
349
- "defaultValue": "\"Identity verification has failed. Our team is reviewing the report and will contact you with further information.\""
353
+ "defaultValue": "\"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}.\""
350
354
  },
351
355
  "holdHeader": {
352
356
  "type": "string",
@@ -388,9 +392,30 @@ export class PayoutStatusAlert {
388
392
  },
389
393
  "attribute": "hold-description",
390
394
  "reflect": false,
391
- "defaultValue": "\"Please check your inbox for an email from our referral provider, impact.com. It contains details on how to resolve this issue. If you need further assistance, feel free to reach out to our support team.\""
395
+ "defaultValue": "\"Please check your inbox for an email from our referral provider, impact.com. It contains details on how to resolve this issue. If you need further assistance, feel free to reach out to our {supportLink}.\""
396
+ },
397
+ "cashPayoutsPageUrl": {
398
+ "type": "string",
399
+ "mutable": false,
400
+ "complexType": {
401
+ "original": "string",
402
+ "resolved": "string",
403
+ "references": {}
404
+ },
405
+ "required": false,
406
+ "optional": false,
407
+ "docs": {
408
+ "tags": [{
409
+ "text": "Cash & Payouts Microsite Page (only set if alert is used in a microsite)",
410
+ "name": "uiName"
411
+ }],
412
+ "text": ""
413
+ },
414
+ "attribute": "cash-payouts-page-url",
415
+ "reflect": false,
416
+ "defaultValue": "\"/cash\""
392
417
  },
393
- "termsUrl": {
418
+ "supportLink": {
394
419
  "type": "string",
395
420
  "mutable": false,
396
421
  "complexType": {
@@ -402,14 +427,14 @@ export class PayoutStatusAlert {
402
427
  "optional": false,
403
428
  "docs": {
404
429
  "tags": [{
405
- "text": "Cash & Payouts Terms and Conditions url",
430
+ "text": "Support link text",
406
431
  "name": "uiName"
407
432
  }],
408
433
  "text": ""
409
434
  },
410
- "attribute": "terms-url",
435
+ "attribute": "support-link",
411
436
  "reflect": false,
412
- "defaultValue": "\"https://terms.advocate.impact.com/PayoutTermsAndConditions.html\""
437
+ "defaultValue": "\"support team\""
413
438
  },
414
439
  "errorHeader": {
415
440
  "type": "string",
@@ -69,7 +69,7 @@ export function usePayoutStatus(props) {
69
69
  data: { type },
70
70
  text: props.getTextProps(),
71
71
  callbacks: {
72
- onTermsClick: () => window.open(props.termsUrl, "_blank").focus(),
72
+ onTermsClick: () => window.open(props.cashPayoutsPageUrl, "_blank").focus(),
73
73
  onClick: render,
74
74
  },
75
75
  };