@saasquatch/mint-components 2.0.0-6 → 2.0.0-60
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.
- package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +69 -28
- package/dist/cjs/{sqm-base-registration-form-view-8847804c.js → sqm-base-registration-form-view-7b95ae7a.js} +1 -0
- package/dist/cjs/sqm-big-stat_46.cjs.entry.js +5 -13
- package/dist/cjs/sqm-portal-google-registration-form.cjs.entry.js +7 -6
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +1 -1
- package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +1 -1
- package/dist/collection/components/sqm-base-registration/sqm-base-registration-form-view.js +1 -0
- package/dist/collection/components/sqm-hero/sqm-hero.js +4 -4
- package/dist/collection/components/sqm-hero-image/sqm-hero-image.js +2 -2
- package/dist/collection/components/sqm-portal-footer/sqm-portal-footer.js +1 -1
- package/dist/collection/components/sqm-portal-google-registration-form/sqm-portal-google-registration-form.js +7 -4
- package/dist/collection/components/sqm-portal-google-registration-form/usePortalGoogleRegistrationForm.js +4 -1
- package/dist/collection/components/sqm-titled-section/sqm-titled-section.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +9 -41
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +67 -25
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +0 -1
- package/dist/esm/sqm-banking-info-form_10.entry.js +69 -28
- package/dist/esm/{sqm-base-registration-form-view-193f1721.js → sqm-base-registration-form-view-1a6bb4b4.js} +1 -0
- package/dist/esm/sqm-big-stat_46.entry.js +5 -13
- package/dist/esm/sqm-portal-google-registration-form.entry.js +7 -6
- package/dist/esm/sqm-stencilbook.entry.js +1 -1
- package/dist/esm/sqm-tax-and-cash.entry.js +1 -1
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
- package/dist/esm-es5/{sqm-base-registration-form-view-193f1721.js → sqm-base-registration-form-view-1a6bb4b4.js} +1 -1
- package/dist/esm-es5/sqm-big-stat_46.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-google-registration-form.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-tax-and-cash.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/{p-ddf3c05e.js → p-1522a7d1.js} +1 -1
- package/dist/mint-components/{p-3ea29bac.system.entry.js → p-1ba34945.system.entry.js} +1 -1
- package/dist/mint-components/{p-a0730259.entry.js → p-1ce5a30d.entry.js} +6 -6
- package/dist/mint-components/{p-38b92bc5.entry.js → p-38263521.entry.js} +1 -1
- package/dist/mint-components/{p-402984b3.system.entry.js → p-43a9fb8e.system.entry.js} +1 -1
- package/dist/mint-components/{p-13e66b37.system.entry.js → p-5c97c43e.system.entry.js} +1 -1
- package/dist/mint-components/{p-ec25aaa7.system.entry.js → p-69d8b4f2.system.entry.js} +1 -1
- package/dist/mint-components/p-71a6e549.system.entry.js +1 -0
- package/dist/mint-components/{p-a44a912b.entry.js → p-75c569f7.entry.js} +1 -1
- package/dist/mint-components/p-967a9040.system.js +1 -1
- package/dist/mint-components/{p-e110688b.entry.js → p-9df7c27f.entry.js} +1 -1
- package/dist/mint-components/{p-be88596c.system.js → p-b21c5311.system.js} +1 -1
- package/dist/mint-components/p-c2ac14b7.entry.js +1 -0
- package/dist/types/components/sqm-base-registration/sqm-base-registration-form-view.d.ts +1 -0
- package/dist/types/components/sqm-hero/sqm-hero.d.ts +4 -4
- package/dist/types/components/sqm-hero-image/sqm-hero-image.d.ts +2 -2
- package/dist/types/components/sqm-portal-footer/sqm-portal-footer.d.ts +1 -1
- package/dist/types/components/sqm-portal-google-registration-form/sqm-portal-google-registration-form.d.ts +5 -0
- package/dist/types/components/sqm-titled-section/sqm-titled-section.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +4 -12
- package/dist/types/components.d.ts +16 -32
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/mint-components/p-43d9c1c5.system.entry.js +0 -1
- package/dist/mint-components/p-ea063d99.entry.js +0 -1
|
@@ -7,9 +7,6 @@ const style = {
|
|
|
7
7
|
backgroundColor: "var(--sl-color-red-100)",
|
|
8
8
|
borderTop: "none",
|
|
9
9
|
},
|
|
10
|
-
"& sl-icon::part(base)": {
|
|
11
|
-
color: "var(--sl-color-danger-500)",
|
|
12
|
-
},
|
|
13
10
|
},
|
|
14
11
|
WarningAlertContainer: {
|
|
15
12
|
"&::part(base)": {
|
|
@@ -17,9 +14,6 @@ const style = {
|
|
|
17
14
|
borderTop: "none",
|
|
18
15
|
maxWidth: "600px",
|
|
19
16
|
},
|
|
20
|
-
"& sl-icon::part(base)": {
|
|
21
|
-
color: "var(--sl-color-warning-500)",
|
|
22
|
-
},
|
|
23
17
|
},
|
|
24
18
|
WarningHoldAlertContainer: {
|
|
25
19
|
marginLeft: "-20px",
|
|
@@ -27,9 +21,10 @@ const style = {
|
|
|
27
21
|
maxWidth: "850px",
|
|
28
22
|
border: "none",
|
|
29
23
|
backgroundColor: "transparent",
|
|
24
|
+
color: "var(--sqm-text)",
|
|
30
25
|
},
|
|
31
26
|
"& sl-icon::part(base)": {
|
|
32
|
-
color: "var(--
|
|
27
|
+
color: "var(--sqm-warning-color-icon)",
|
|
33
28
|
},
|
|
34
29
|
},
|
|
35
30
|
ErrorHoldAlertContainer: {
|
|
@@ -38,9 +33,10 @@ const style = {
|
|
|
38
33
|
maxWidth: "850px",
|
|
39
34
|
border: "none",
|
|
40
35
|
backgroundColor: "transparent",
|
|
36
|
+
color: "var(--sqm-text)",
|
|
41
37
|
},
|
|
42
38
|
"& sl-icon::part(base)": {
|
|
43
|
-
color: "var(--
|
|
39
|
+
color: "var(--sqm-danger-color-icon)",
|
|
44
40
|
},
|
|
45
41
|
},
|
|
46
42
|
ExpiringSoonAlertContainer: {
|
|
@@ -63,7 +59,7 @@ const style = {
|
|
|
63
59
|
display: "flex",
|
|
64
60
|
gap: "var(--sl-spacing-x-small)",
|
|
65
61
|
"&::part(base)": {
|
|
66
|
-
color: "var(--
|
|
62
|
+
color: "var(--sqm-text)",
|
|
67
63
|
},
|
|
68
64
|
},
|
|
69
65
|
IndirectTaxPreviewDetails: {
|
|
@@ -72,12 +68,13 @@ const style = {
|
|
|
72
68
|
flexDirection: "column",
|
|
73
69
|
lineHeight: "var(--sl-spacing-medium)",
|
|
74
70
|
fontSize: "var(--sl-font-size-small)",
|
|
71
|
+
color: "var(--sqm-text-subdued)",
|
|
75
72
|
},
|
|
76
73
|
InvoiceTableContainer: {
|
|
77
74
|
marginTop: "var(--sl-spacing-medium)",
|
|
78
75
|
},
|
|
79
76
|
NotRegisteredIndirectTaxText: {
|
|
80
|
-
color: "var(--
|
|
77
|
+
color: "var(--sqm-text-subdued)",
|
|
81
78
|
},
|
|
82
79
|
TaxDocumentsContainer: {
|
|
83
80
|
marginTop: "var(--sl-spacing-xx-large)",
|
|
@@ -98,7 +95,6 @@ const style = {
|
|
|
98
95
|
"& p": {
|
|
99
96
|
margin: "0",
|
|
100
97
|
paddingTop: "2px",
|
|
101
|
-
color: "var(--sl-color-gray-500)",
|
|
102
98
|
},
|
|
103
99
|
},
|
|
104
100
|
StatusAlert: {
|
|
@@ -133,7 +129,7 @@ const style = {
|
|
|
133
129
|
},
|
|
134
130
|
TaxDocSubtext: {
|
|
135
131
|
margin: "0",
|
|
136
|
-
color: "var(--
|
|
132
|
+
color: "var(--sqm-text-subdued)",
|
|
137
133
|
lineHeight: "var(--sl-spacing-medium)",
|
|
138
134
|
fontSize: "var(--sl-font-size-small)",
|
|
139
135
|
marginLeft: "1px",
|
|
@@ -154,13 +150,13 @@ const style = {
|
|
|
154
150
|
gap: "6px",
|
|
155
151
|
},
|
|
156
152
|
DescriptionText: {
|
|
157
|
-
color: "var(--
|
|
153
|
+
color: "var(--sqm-text-subdued)",
|
|
158
154
|
fontSize: "var(--sl-font-size-x-small)",
|
|
159
155
|
marginBottom: "none",
|
|
160
156
|
maxWidth: "492px",
|
|
161
157
|
},
|
|
162
158
|
PageDescriptionText: {
|
|
163
|
-
color: "var(--
|
|
159
|
+
color: "var(--sqm-text-subdued)",
|
|
164
160
|
fontSize: "var(--sl-font-size-medium)",
|
|
165
161
|
marginTop: "0",
|
|
166
162
|
},
|
|
@@ -191,9 +187,53 @@ const style = {
|
|
|
191
187
|
},
|
|
192
188
|
},
|
|
193
189
|
DialogButton: { margin: "auto", width: "100%" },
|
|
190
|
+
SuccessBadge: {
|
|
191
|
+
"&::part(base)": {
|
|
192
|
+
textAlign: "center",
|
|
193
|
+
whiteSpace: "pre-line",
|
|
194
|
+
background: "var(--sqm-success-color-icon)",
|
|
195
|
+
},
|
|
196
|
+
},
|
|
197
|
+
WarningBadge: {
|
|
198
|
+
"&::part(base)": {
|
|
199
|
+
textAlign: "center",
|
|
200
|
+
whiteSpace: "pre-line",
|
|
201
|
+
background: "var(--sqm-warning-color-icon)",
|
|
202
|
+
},
|
|
203
|
+
},
|
|
204
|
+
ErrorBadge: {
|
|
205
|
+
"&::part(base)": {
|
|
206
|
+
textAlign: "center",
|
|
207
|
+
whiteSpace: "pre-line",
|
|
208
|
+
background: "var(--sqm-danger-color-icon)",
|
|
209
|
+
},
|
|
210
|
+
},
|
|
211
|
+
SubduedText: {
|
|
212
|
+
color: "var(--sqm-text-subdued)",
|
|
213
|
+
},
|
|
194
214
|
};
|
|
195
215
|
const sheet = createStyleSheet(style);
|
|
196
216
|
const styleString = sheet.toString();
|
|
217
|
+
const vanillaStyle = `
|
|
218
|
+
:host{
|
|
219
|
+
display: block;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
sl-button[type="secondary"]::part(base) {
|
|
223
|
+
font-family: var(--sqm-primary-font);
|
|
224
|
+
background-color: var(--sqm-secondary-button-background);
|
|
225
|
+
color: var(--sqm-secondary-button-color);
|
|
226
|
+
border-color: var(--sqm-secondary-button-color-border);
|
|
227
|
+
border-radius: var(--sqm-secondary-button-radius);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
sl-button[type="secondary"]::part(base):hover {
|
|
231
|
+
background-color: var(--sqm-secondary-button-background-hover);
|
|
232
|
+
color: var(--sqm-secondary-button-color-hover);
|
|
233
|
+
border-color: var(--sqm-secondary-button-border-color-hover);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
`;
|
|
197
237
|
export const TaxAndCashDashboardView = (props) => {
|
|
198
238
|
var _a;
|
|
199
239
|
const { states, text, callbacks, slots } = props;
|
|
@@ -279,7 +319,7 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
279
319
|
}, {
|
|
280
320
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
281
321
|
}),
|
|
282
|
-
alertType: "
|
|
322
|
+
alertType: "danger",
|
|
283
323
|
icon: "exclamation-octagon",
|
|
284
324
|
class: sheet.classes.ErrorHoldAlertContainer,
|
|
285
325
|
};
|
|
@@ -317,16 +357,16 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
317
357
|
}
|
|
318
358
|
const statusMap = {
|
|
319
359
|
NOT_VERIFIED: (h("div", { class: sheet.classes.TaxFormDetailsContainer },
|
|
320
|
-
h("sl-badge", { type: "warning", pill: true }, text.statusTextNotVerified),
|
|
321
|
-
h("p",
|
|
360
|
+
h("sl-badge", { class: sheet.classes.WarningBadge, type: "warning", pill: true }, text.statusTextNotVerified),
|
|
361
|
+
h("p", { class: sheet.classes.SubduedText }, intl.formatMessage({
|
|
322
362
|
id: `badgeTextAwaitingReview`,
|
|
323
363
|
defaultMessage: text.badgeTextAwaitingReview,
|
|
324
364
|
}, {
|
|
325
365
|
dateSubmitted: states.dateSubmitted,
|
|
326
366
|
})))),
|
|
327
367
|
ACTIVE: (h("div", { class: sheet.classes.TaxFormDetailsContainer },
|
|
328
|
-
h("sl-badge", { type: "success", pill: true }, text.statusTextActive),
|
|
329
|
-
h("p",
|
|
368
|
+
h("sl-badge", { class: sheet.classes.SuccessBadge, type: "success", pill: true }, text.statusTextActive),
|
|
369
|
+
h("p", { class: sheet.classes.SubduedText }, intl.formatMessage({
|
|
330
370
|
id: `badgeTextSubmittedOn`,
|
|
331
371
|
defaultMessage: states.documentType === "W9"
|
|
332
372
|
? text.badgeTextSubmittedOn
|
|
@@ -335,8 +375,8 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
335
375
|
dateSubmitted: states.dateSubmitted,
|
|
336
376
|
})))),
|
|
337
377
|
INACTIVE: (h("div", { class: sheet.classes.TaxFormDetailsContainer },
|
|
338
|
-
h("sl-badge", { type: "danger", pill: true }, text.statusTextNotActive),
|
|
339
|
-
h("p",
|
|
378
|
+
h("sl-badge", { class: sheet.classes.ErrorBadge, type: "danger", pill: true }, text.statusTextNotActive),
|
|
379
|
+
h("p", { class: sheet.classes.SubduedText }, text.invalidForm))),
|
|
340
380
|
undefined: (h("div", { class: sheet.classes.TaxFormDetailsContainer },
|
|
341
381
|
h("sl-badge", { type: "danger", pill: true }, text.statusTextRequired),
|
|
342
382
|
h("p", null, intl.formatMessage({
|
|
@@ -398,9 +438,11 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
398
438
|
const alertInfo = getAlert(states.payoutStatus);
|
|
399
439
|
return (h("div", null,
|
|
400
440
|
h("div", null,
|
|
401
|
-
h("style", { type: "text/css" },
|
|
441
|
+
h("style", { type: "text/css" },
|
|
442
|
+
styleString,
|
|
443
|
+
vanillaStyle),
|
|
402
444
|
states.loadingError && (h("div", null,
|
|
403
|
-
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true },
|
|
445
|
+
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet.classes.ErrorAlertContainer },
|
|
404
446
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
405
447
|
h("strong", null, text.error.loadingErrorAlertHeader),
|
|
406
448
|
h("br", null),
|
|
@@ -420,7 +462,7 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
420
462
|
}, {
|
|
421
463
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
422
464
|
}))),
|
|
423
|
-
alertInfo && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", name: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.alertType, open: true, class: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.class },
|
|
465
|
+
alertInfo && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.alertType, name: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.alertType, open: true, class: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.class },
|
|
424
466
|
h("sl-icon", { slot: "icon", name: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.icon }),
|
|
425
467
|
h("strong", null, alertInfo.header),
|
|
426
468
|
h("p", { style: { margin: "0" } }, alertInfo.description),
|
|
@@ -436,7 +478,7 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
436
478
|
h("div", { class: sheet.classes.BankingInformationContainer },
|
|
437
479
|
slots.payoutDetailsCardSlot,
|
|
438
480
|
!states.loading && (h("p", { class: sheet.classes.DescriptionText }, text.payoutFromImpact)),
|
|
439
|
-
states.canEditPayoutInfo && (h("sl-button", { disabled: states.disabled || states.loading, type: "
|
|
481
|
+
states.canEditPayoutInfo && (h("sl-button", { disabled: states.disabled || states.loading, exportparts: "base: secondarybutton-base", type: "secondary", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
|
|
440
482
|
(!states.noFormNeeded || states.status === "NOT_VERIFIED") && (h("div", { class: sheet.classes.TaxDocumentsContainer },
|
|
441
483
|
h("div", null, states.loading ? (h("div", { class: sheet.classes.TaxSectionSkeletonContainer },
|
|
442
484
|
h("sl-skeleton", { class: sheet.classes.SkeletonOne }),
|
|
@@ -3709,9 +3709,6 @@ const style$5 = {
|
|
|
3709
3709
|
backgroundColor: "var(--sl-color-red-100)",
|
|
3710
3710
|
borderTop: "none",
|
|
3711
3711
|
},
|
|
3712
|
-
"& sl-icon::part(base)": {
|
|
3713
|
-
color: "var(--sl-color-danger-500)",
|
|
3714
|
-
},
|
|
3715
3712
|
},
|
|
3716
3713
|
WarningAlertContainer: {
|
|
3717
3714
|
"&::part(base)": {
|
|
@@ -3719,9 +3716,6 @@ const style$5 = {
|
|
|
3719
3716
|
borderTop: "none",
|
|
3720
3717
|
maxWidth: "600px",
|
|
3721
3718
|
},
|
|
3722
|
-
"& sl-icon::part(base)": {
|
|
3723
|
-
color: "var(--sl-color-warning-500)",
|
|
3724
|
-
},
|
|
3725
3719
|
},
|
|
3726
3720
|
WarningHoldAlertContainer: {
|
|
3727
3721
|
marginLeft: "-20px",
|
|
@@ -3729,9 +3723,10 @@ const style$5 = {
|
|
|
3729
3723
|
maxWidth: "850px",
|
|
3730
3724
|
border: "none",
|
|
3731
3725
|
backgroundColor: "transparent",
|
|
3726
|
+
color: "var(--sqm-text)",
|
|
3732
3727
|
},
|
|
3733
3728
|
"& sl-icon::part(base)": {
|
|
3734
|
-
color: "var(--
|
|
3729
|
+
color: "var(--sqm-warning-color-icon)",
|
|
3735
3730
|
},
|
|
3736
3731
|
},
|
|
3737
3732
|
ErrorHoldAlertContainer: {
|
|
@@ -3740,9 +3735,10 @@ const style$5 = {
|
|
|
3740
3735
|
maxWidth: "850px",
|
|
3741
3736
|
border: "none",
|
|
3742
3737
|
backgroundColor: "transparent",
|
|
3738
|
+
color: "var(--sqm-text)",
|
|
3743
3739
|
},
|
|
3744
3740
|
"& sl-icon::part(base)": {
|
|
3745
|
-
color: "var(--
|
|
3741
|
+
color: "var(--sqm-danger-color-icon)",
|
|
3746
3742
|
},
|
|
3747
3743
|
},
|
|
3748
3744
|
ExpiringSoonAlertContainer: {
|
|
@@ -3765,7 +3761,7 @@ const style$5 = {
|
|
|
3765
3761
|
display: "flex",
|
|
3766
3762
|
gap: "var(--sl-spacing-x-small)",
|
|
3767
3763
|
"&::part(base)": {
|
|
3768
|
-
color: "var(--
|
|
3764
|
+
color: "var(--sqm-text)",
|
|
3769
3765
|
},
|
|
3770
3766
|
},
|
|
3771
3767
|
IndirectTaxPreviewDetails: {
|
|
@@ -3774,12 +3770,13 @@ const style$5 = {
|
|
|
3774
3770
|
flexDirection: "column",
|
|
3775
3771
|
lineHeight: "var(--sl-spacing-medium)",
|
|
3776
3772
|
fontSize: "var(--sl-font-size-small)",
|
|
3773
|
+
color: "var(--sqm-text-subdued)",
|
|
3777
3774
|
},
|
|
3778
3775
|
InvoiceTableContainer: {
|
|
3779
3776
|
marginTop: "var(--sl-spacing-medium)",
|
|
3780
3777
|
},
|
|
3781
3778
|
NotRegisteredIndirectTaxText: {
|
|
3782
|
-
color: "var(--
|
|
3779
|
+
color: "var(--sqm-text-subdued)",
|
|
3783
3780
|
},
|
|
3784
3781
|
TaxDocumentsContainer: {
|
|
3785
3782
|
marginTop: "var(--sl-spacing-xx-large)",
|
|
@@ -3800,7 +3797,6 @@ const style$5 = {
|
|
|
3800
3797
|
"& p": {
|
|
3801
3798
|
margin: "0",
|
|
3802
3799
|
paddingTop: "2px",
|
|
3803
|
-
color: "var(--sl-color-gray-500)",
|
|
3804
3800
|
},
|
|
3805
3801
|
},
|
|
3806
3802
|
StatusAlert: {
|
|
@@ -3835,7 +3831,7 @@ const style$5 = {
|
|
|
3835
3831
|
},
|
|
3836
3832
|
TaxDocSubtext: {
|
|
3837
3833
|
margin: "0",
|
|
3838
|
-
color: "var(--
|
|
3834
|
+
color: "var(--sqm-text-subdued)",
|
|
3839
3835
|
lineHeight: "var(--sl-spacing-medium)",
|
|
3840
3836
|
fontSize: "var(--sl-font-size-small)",
|
|
3841
3837
|
marginLeft: "1px",
|
|
@@ -3856,13 +3852,13 @@ const style$5 = {
|
|
|
3856
3852
|
gap: "6px",
|
|
3857
3853
|
},
|
|
3858
3854
|
DescriptionText: {
|
|
3859
|
-
color: "var(--
|
|
3855
|
+
color: "var(--sqm-text-subdued)",
|
|
3860
3856
|
fontSize: "var(--sl-font-size-x-small)",
|
|
3861
3857
|
marginBottom: "none",
|
|
3862
3858
|
maxWidth: "492px",
|
|
3863
3859
|
},
|
|
3864
3860
|
PageDescriptionText: {
|
|
3865
|
-
color: "var(--
|
|
3861
|
+
color: "var(--sqm-text-subdued)",
|
|
3866
3862
|
fontSize: "var(--sl-font-size-medium)",
|
|
3867
3863
|
marginTop: "0",
|
|
3868
3864
|
},
|
|
@@ -3893,9 +3889,53 @@ const style$5 = {
|
|
|
3893
3889
|
},
|
|
3894
3890
|
},
|
|
3895
3891
|
DialogButton: { margin: "auto", width: "100%" },
|
|
3892
|
+
SuccessBadge: {
|
|
3893
|
+
"&::part(base)": {
|
|
3894
|
+
textAlign: "center",
|
|
3895
|
+
whiteSpace: "pre-line",
|
|
3896
|
+
background: "var(--sqm-success-color-icon)",
|
|
3897
|
+
},
|
|
3898
|
+
},
|
|
3899
|
+
WarningBadge: {
|
|
3900
|
+
"&::part(base)": {
|
|
3901
|
+
textAlign: "center",
|
|
3902
|
+
whiteSpace: "pre-line",
|
|
3903
|
+
background: "var(--sqm-warning-color-icon)",
|
|
3904
|
+
},
|
|
3905
|
+
},
|
|
3906
|
+
ErrorBadge: {
|
|
3907
|
+
"&::part(base)": {
|
|
3908
|
+
textAlign: "center",
|
|
3909
|
+
whiteSpace: "pre-line",
|
|
3910
|
+
background: "var(--sqm-danger-color-icon)",
|
|
3911
|
+
},
|
|
3912
|
+
},
|
|
3913
|
+
SubduedText: {
|
|
3914
|
+
color: "var(--sqm-text-subdued)",
|
|
3915
|
+
},
|
|
3896
3916
|
};
|
|
3897
3917
|
const sheet$4 = createStyleSheet(style$5);
|
|
3898
3918
|
const styleString$4 = sheet$4.toString();
|
|
3919
|
+
const vanillaStyle$3 = `
|
|
3920
|
+
:host{
|
|
3921
|
+
display: block;
|
|
3922
|
+
}
|
|
3923
|
+
|
|
3924
|
+
sl-button[type="secondary"]::part(base) {
|
|
3925
|
+
font-family: var(--sqm-primary-font);
|
|
3926
|
+
background-color: var(--sqm-secondary-button-background);
|
|
3927
|
+
color: var(--sqm-secondary-button-color);
|
|
3928
|
+
border-color: var(--sqm-secondary-button-color-border);
|
|
3929
|
+
border-radius: var(--sqm-secondary-button-radius);
|
|
3930
|
+
}
|
|
3931
|
+
|
|
3932
|
+
sl-button[type="secondary"]::part(base):hover {
|
|
3933
|
+
background-color: var(--sqm-secondary-button-background-hover);
|
|
3934
|
+
color: var(--sqm-secondary-button-color-hover);
|
|
3935
|
+
border-color: var(--sqm-secondary-button-border-color-hover);
|
|
3936
|
+
}
|
|
3937
|
+
|
|
3938
|
+
`;
|
|
3899
3939
|
const TaxAndCashDashboardView = (props) => {
|
|
3900
3940
|
var _a;
|
|
3901
3941
|
const { states, text, callbacks, slots } = props;
|
|
@@ -3981,7 +4021,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
3981
4021
|
}, {
|
|
3982
4022
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
3983
4023
|
}),
|
|
3984
|
-
alertType: "
|
|
4024
|
+
alertType: "danger",
|
|
3985
4025
|
icon: "exclamation-octagon",
|
|
3986
4026
|
class: sheet$4.classes.ErrorHoldAlertContainer,
|
|
3987
4027
|
};
|
|
@@ -4019,16 +4059,16 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4019
4059
|
}
|
|
4020
4060
|
const statusMap = {
|
|
4021
4061
|
NOT_VERIFIED: (h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
4022
|
-
h("sl-badge", { type: "warning", pill: true }, text.statusTextNotVerified),
|
|
4023
|
-
h("p",
|
|
4062
|
+
h("sl-badge", { class: sheet$4.classes.WarningBadge, type: "warning", pill: true }, text.statusTextNotVerified),
|
|
4063
|
+
h("p", { class: sheet$4.classes.SubduedText }, intl.formatMessage({
|
|
4024
4064
|
id: `badgeTextAwaitingReview`,
|
|
4025
4065
|
defaultMessage: text.badgeTextAwaitingReview,
|
|
4026
4066
|
}, {
|
|
4027
4067
|
dateSubmitted: states.dateSubmitted,
|
|
4028
4068
|
})))),
|
|
4029
4069
|
ACTIVE: (h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
4030
|
-
h("sl-badge", { type: "success", pill: true }, text.statusTextActive),
|
|
4031
|
-
h("p",
|
|
4070
|
+
h("sl-badge", { class: sheet$4.classes.SuccessBadge, type: "success", pill: true }, text.statusTextActive),
|
|
4071
|
+
h("p", { class: sheet$4.classes.SubduedText }, intl.formatMessage({
|
|
4032
4072
|
id: `badgeTextSubmittedOn`,
|
|
4033
4073
|
defaultMessage: states.documentType === "W9"
|
|
4034
4074
|
? text.badgeTextSubmittedOn
|
|
@@ -4037,8 +4077,8 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4037
4077
|
dateSubmitted: states.dateSubmitted,
|
|
4038
4078
|
})))),
|
|
4039
4079
|
INACTIVE: (h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
4040
|
-
h("sl-badge", { type: "danger", pill: true }, text.statusTextNotActive),
|
|
4041
|
-
h("p",
|
|
4080
|
+
h("sl-badge", { class: sheet$4.classes.ErrorBadge, type: "danger", pill: true }, text.statusTextNotActive),
|
|
4081
|
+
h("p", { class: sheet$4.classes.SubduedText }, text.invalidForm))),
|
|
4042
4082
|
undefined: (h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
4043
4083
|
h("sl-badge", { type: "danger", pill: true }, text.statusTextRequired),
|
|
4044
4084
|
h("p", null, intl.formatMessage({
|
|
@@ -4100,9 +4140,11 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4100
4140
|
const alertInfo = getAlert(states.payoutStatus);
|
|
4101
4141
|
return (h("div", null,
|
|
4102
4142
|
h("div", null,
|
|
4103
|
-
h("style", { type: "text/css" },
|
|
4143
|
+
h("style", { type: "text/css" },
|
|
4144
|
+
styleString$4,
|
|
4145
|
+
vanillaStyle$3),
|
|
4104
4146
|
states.loadingError && (h("div", null,
|
|
4105
|
-
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true },
|
|
4147
|
+
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.ErrorAlertContainer },
|
|
4106
4148
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
4107
4149
|
h("strong", null, text.error.loadingErrorAlertHeader),
|
|
4108
4150
|
h("br", null),
|
|
@@ -4122,7 +4164,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4122
4164
|
}, {
|
|
4123
4165
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
4124
4166
|
}))),
|
|
4125
|
-
alertInfo && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", name: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.alertType, open: true, class: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.class },
|
|
4167
|
+
alertInfo && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.alertType, name: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.alertType, open: true, class: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.class },
|
|
4126
4168
|
h("sl-icon", { slot: "icon", name: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.icon }),
|
|
4127
4169
|
h("strong", null, alertInfo.header),
|
|
4128
4170
|
h("p", { style: { margin: "0" } }, alertInfo.description),
|
|
@@ -4138,7 +4180,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4138
4180
|
h("div", { class: sheet$4.classes.BankingInformationContainer },
|
|
4139
4181
|
slots.payoutDetailsCardSlot,
|
|
4140
4182
|
!states.loading && (h("p", { class: sheet$4.classes.DescriptionText }, text.payoutFromImpact)),
|
|
4141
|
-
states.canEditPayoutInfo && (h("sl-button", { disabled: states.disabled || states.loading, type: "
|
|
4183
|
+
states.canEditPayoutInfo && (h("sl-button", { disabled: states.disabled || states.loading, exportparts: "base: secondarybutton-base", type: "secondary", class: sheet$4.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
|
|
4142
4184
|
(!states.noFormNeeded || states.status === "NOT_VERIFIED") && (h("div", { class: sheet$4.classes.TaxDocumentsContainer },
|
|
4143
4185
|
h("div", null, states.loading ? (h("div", { class: sheet$4.classes.TaxSectionSkeletonContainer },
|
|
4144
4186
|
h("sl-skeleton", { class: sheet$4.classes.SkeletonOne }),
|
|
@@ -4689,7 +4731,6 @@ const TaxAndCashDashboard = class {
|
|
|
4689
4731
|
}
|
|
4690
4732
|
};
|
|
4691
4733
|
function useDemoTaxAndCashDashboard(props) {
|
|
4692
|
-
console.log("dashboard", { props });
|
|
4693
4734
|
// @ts-ignore
|
|
4694
4735
|
return cjs({
|
|
4695
4736
|
states: {
|
|
@@ -5782,7 +5823,7 @@ const style$6 = {
|
|
|
5782
5823
|
};
|
|
5783
5824
|
const sheet$5 = createStyleSheet(style$6);
|
|
5784
5825
|
const styleString$5 = sheet$5.toString();
|
|
5785
|
-
const vanillaStyle$
|
|
5826
|
+
const vanillaStyle$4 = `
|
|
5786
5827
|
:host{
|
|
5787
5828
|
display: block;
|
|
5788
5829
|
}
|
|
@@ -5990,7 +6031,7 @@ const UserInfoFormView = (props) => {
|
|
|
5990
6031
|
return (h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
5991
6032
|
h("style", { type: "text/css" },
|
|
5992
6033
|
styleString$5,
|
|
5993
|
-
vanillaStyle$
|
|
6034
|
+
vanillaStyle$4),
|
|
5994
6035
|
states.loadingError && (h("div", null,
|
|
5995
6036
|
h("sqm-form-message", { type: "error" },
|
|
5996
6037
|
h("p", { part: "alert-title" }, text.error.loadingErrorAlertHeader),
|
|
@@ -47,6 +47,7 @@ function BaseRegistrationFormView(props) {
|
|
|
47
47
|
h("sl-form", { class: sheet.classes.Column, "onSl-submit": callbacks.handleEmailSubmit, novalidate: true },
|
|
48
48
|
states.error && (h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
|
|
49
49
|
h("div", { part: "erroralert-text" }, props.states.error))),
|
|
50
|
+
content.formData,
|
|
50
51
|
h("sl-input", { exportparts: "label: input-label, base: input-base", type: "email", name: "/email", label: content.emailLabel || "Email", required: true, validationError: ({ value }) => {
|
|
51
52
|
if (!value) {
|
|
52
53
|
return content.requiredFieldErrorMessage;
|
|
@@ -3182,18 +3182,10 @@ const PayoutStatusAlert = class {
|
|
|
3182
3182
|
this.errorDescription = "There was an error with determining your payout status.";
|
|
3183
3183
|
/**
|
|
3184
3184
|
* @undocumented
|
|
3185
|
-
* @componentState { "title": "
|
|
3186
|
-
* @componentState { "title": "
|
|
3187
|
-
* @componentState { "title": "
|
|
3188
|
-
* @componentState { "title": "
|
|
3189
|
-
* @componentState { "title": "Verification Internal", "props": { "demoData": { "states": { "status": "VERIFICATION:INTERNAL" } } }, "uiGroup": "Alert States" }
|
|
3190
|
-
* @componentState { "title": "Verification Review", "props": { "demoData": { "states": { "status": "VERIFICATION:REVIEW" } } }, "uiGroup": "Alert States" }
|
|
3191
|
-
* @componentState { "title": "Verification Failed", "props": { "demoData": { "states": { "status": "VERIFICATION:FAILED" } } }, "uiGroup": "Alert States" }
|
|
3192
|
-
* @componentState { "title": "Account Review", "props": { "demoData": { "states": { "status": "ACCOUNT_REVIEW" } } }, "uiGroup": "Alert States" }
|
|
3193
|
-
* @componentState { "title": "Hold", "props": { "demoData": { "states": { "status": "HOLD" } } }, "uiGroup": "Alert States" }
|
|
3194
|
-
* @componentState { "title": "Done - No Alert", "props": { "demoData": { "states": { "status": "DONE" } } }, "uiGroup": "Alert States" }
|
|
3195
|
-
* @componentState { "title": "Error State", "props": { "demoData": { "states": { "error": true } } }, "uiGroup": "Alert States" }
|
|
3196
|
-
* @componentState { "title": "Loading State", "props": { "demoData": { "states": { "loading": true } } }, "uiGroup": "Alert States" }
|
|
3185
|
+
* @componentState { "title": "Payout Info Required", "props": { "states": { "status": "INFORMATION_REQUIRED" } }, "dependencies": ["sqm-payout-status-alert"] }
|
|
3186
|
+
* @componentState { "title": "Verification Required", "props": { "states": { "status": "VERIFICATION:REQUIRED" } }, "dependencies": ["sqm-payout-status-alert"] }
|
|
3187
|
+
* @componentState { "title": "Identity Verification", "props": { "states": { "status": "VERIFICATION:REVIEW" } }, "dependencies": ["sqm-payout-status-alert"] }
|
|
3188
|
+
* @componentState { "title": "Account Hold", "props": { "states": { "status": "HOLD" } }, "dependencies": ["sqm-payout-status-alert"] }
|
|
3197
3189
|
*/
|
|
3198
3190
|
this.stateController = "{}";
|
|
3199
3191
|
h(this);
|
|
@@ -3227,7 +3219,7 @@ function useDemoPayoutStatusAlert(props) {
|
|
|
3227
3219
|
onTermsClick: () => { },
|
|
3228
3220
|
onClick: () => console.log("show"),
|
|
3229
3221
|
},
|
|
3230
|
-
}, props.demoData ||
|
|
3222
|
+
}, formatted || props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
3231
3223
|
}
|
|
3232
3224
|
|
|
3233
3225
|
const GET_USER$1 = dist.gql `
|
|
@@ -7,7 +7,7 @@ import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
|
7
7
|
import './mixins-f750863a.js';
|
|
8
8
|
import './sqm-text-span-view-4c17b8c9.js';
|
|
9
9
|
import { a as useRegistrationForm } from './useRegistrationFormState-24d594ea.js';
|
|
10
|
-
import { B as BaseRegistrationFormView } from './sqm-base-registration-form-view-
|
|
10
|
+
import { B as BaseRegistrationFormView } from './sqm-base-registration-form-view-1a6bb4b4.js';
|
|
11
11
|
import { P as PortalRegistrationFormView } from './sqm-portal-registration-form-view-8bdc3804.js';
|
|
12
12
|
import './AsYouType-46f67d0d.js';
|
|
13
13
|
import { u as usePortalRegistrationForm } from './usePortalRegistrationForm-1eb3cd72.js';
|
|
@@ -81,9 +81,12 @@ function usePortalGoogleRegistrationForm(props) {
|
|
|
81
81
|
let formData = {};
|
|
82
82
|
let errorMessage = null;
|
|
83
83
|
formControls.forEach((control) => {
|
|
84
|
-
if (!control.name
|
|
84
|
+
if (!control.name)
|
|
85
85
|
return;
|
|
86
86
|
jsonpointer.set(formData, control.name, control.value);
|
|
87
|
+
// only validate email field
|
|
88
|
+
if (control.name !== "/email")
|
|
89
|
+
return;
|
|
87
90
|
if (control.required && !control.value)
|
|
88
91
|
errorMessage = props.requiredFieldErrorMessage;
|
|
89
92
|
if (typeof control.validationError === "function") {
|
|
@@ -321,9 +324,7 @@ const PortalGoogleRegistrationForm = class {
|
|
|
321
324
|
...states,
|
|
322
325
|
emailDisabled: true,
|
|
323
326
|
hidePasswords: showRegistrationForm.mode === "google",
|
|
324
|
-
}, callbacks: callbacks, content:
|
|
325
|
-
...content,
|
|
326
|
-
}, refs: refs }));
|
|
327
|
+
}, callbacks: callbacks, content: content, refs: refs }));
|
|
327
328
|
}
|
|
328
329
|
};
|
|
329
330
|
function useRegisterDemo(props) {
|
|
@@ -359,7 +360,7 @@ function useGoogleDemo(props) {
|
|
|
359
360
|
mode: "base",
|
|
360
361
|
});
|
|
361
362
|
return cjs({
|
|
362
|
-
emailValidationError:
|
|
363
|
+
emailValidationError: false,
|
|
363
364
|
handleEmailSubmit: () => setShowRegistrationForm({ mode: "manual" }),
|
|
364
365
|
showRegistrationForm,
|
|
365
366
|
handleGoogleInit: () => setShowRegistrationForm({ mode: "google" }),
|
|
@@ -22,7 +22,7 @@ import { N as NavigationSidebarView } from './sqm-navigation-sidebar-view-0a2ec5
|
|
|
22
22
|
import { N as NavigationSidebarItemView } from './sqm-navigation-sidebar-item-view-5a452423.js';
|
|
23
23
|
import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-7d86299c.js';
|
|
24
24
|
import { P as PortalLoginView } from './sqm-portal-login-view-7670cd86.js';
|
|
25
|
-
import { B as BaseRegistrationFormView } from './sqm-base-registration-form-view-
|
|
25
|
+
import { B as BaseRegistrationFormView } from './sqm-base-registration-form-view-1a6bb4b4.js';
|
|
26
26
|
import { P as PortalRegistrationFormView } from './sqm-portal-registration-form-view-8bdc3804.js';
|
|
27
27
|
import { P as PortalProfileView } from './sqm-portal-profile-view-3ed13e4d.js';
|
|
28
28
|
import './utilities-72c07b09.js';
|
|
@@ -1279,7 +1279,7 @@ const TaxAndCashMonolith = class {
|
|
|
1279
1279
|
case "/4":
|
|
1280
1280
|
return (h$1("sqm-banking-info-form", Object.assign({}, this.getGeneralStepTextProps("step4_"))));
|
|
1281
1281
|
case "/dashboard":
|
|
1282
|
-
return (h$1("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"))));
|
|
1282
|
+
return (h$1("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"), { stateController: props["sqm-tax-and-cash-dashboard_stateController"] || "{}" })));
|
|
1283
1283
|
case "/error":
|
|
1284
1284
|
return (h$1(ErrorView, { loadingErrorAlertHeader: this.loadingErrorAlertHeader, loadingErrorAlertDescription: intl.formatMessage({
|
|
1285
1285
|
id: "loadingErrorAlertDescription",
|