@saasquatch/mint-components 2.0.0-31 → 2.0.0-33

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.
@@ -1,1059 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-ad175903.js');
6
- const global = require('./global-d06f12bf.js');
7
- const domContextHooks_module = require('./dom-context-hooks.module-baf97805.js');
8
- const index_module = require('./index.module-0ec494e5.js');
9
- require('./GoogleFonts-039d880f.js');
10
- require('./jss-preset-default.esm-b48f0c33.js');
11
- const JSS = require('./JSS-518e9b4d.js');
12
- const utils$1 = require('./utils-f858339f.js');
13
- const cjs = require('./cjs-2bf512b9.js');
14
- const luxon = require('./luxon-900d2422.js');
15
- const subregions = require('./subregions-d43680d2.js');
16
- const utils = require('./utils-6f52e49c.js');
17
- const countries = require('./countries-473a6e62.js');
18
- const parseStates = require('./parseStates-d1effc19.js');
19
- const data = require('./data-d9bd0fa8.js');
20
- require('./eventKeys-7af4df4d.js');
21
- const usePayoutStatus = require('./usePayoutStatus-ecb5f860.js');
22
-
23
- const style = {
24
- ErrorAlertContainer: {
25
- "&::part(base)": {
26
- backgroundColor: "var(--sl-color-red-100)",
27
- borderTop: "none",
28
- },
29
- "& sl-icon::part(base)": {
30
- color: "var(--sl-color-danger-500)",
31
- },
32
- },
33
- WarningAlertContainer: {
34
- "&::part(base)": {
35
- backgroundColor: "var(--sl-color-yellow-100)",
36
- borderTop: "none",
37
- maxWidth: "600px",
38
- },
39
- "& sl-icon::part(base)": {
40
- color: "var(--sl-color-warning-500)",
41
- },
42
- },
43
- WarningHoldAlertContainer: {
44
- marginLeft: "-20px",
45
- "&::part(base)": {
46
- maxWidth: "850px",
47
- border: "none",
48
- backgroundColor: "transparent",
49
- },
50
- "& sl-icon::part(base)": {
51
- color: "var(--sl-color-warning-500)",
52
- },
53
- },
54
- ErrorHoldAlertContainer: {
55
- marginLeft: "-20px",
56
- "&::part(base)": {
57
- maxWidth: "850px",
58
- border: "none",
59
- backgroundColor: "transparent",
60
- },
61
- "& sl-icon::part(base)": {
62
- color: "var(--sl-color-danger-500)",
63
- },
64
- },
65
- ExpiringSoonAlertContainer: {
66
- "&::part(base)": {
67
- backgroundColor: "var(--sl-color-yellow-100)",
68
- borderTop: "none",
69
- },
70
- },
71
- BankingInformationContainer: {
72
- maxWidth: "700px",
73
- },
74
- IndirectTaxPreviewContainer: {
75
- marginTop: "var(--sl-spacing-x-large)",
76
- borderTop: "1px solid var(--sl-color-neutral-200)",
77
- },
78
- IndirectTaxPreviewHeaderContainer: {
79
- marginTop: "var(--sl-spacing-large)",
80
- marginBottom: "var(--sl-spacing-xx-small)",
81
- margin: "0",
82
- display: "flex",
83
- gap: "var(--sl-spacing-x-small)",
84
- "&::part(base)": {
85
- color: "var(--sl-color-green-500)",
86
- },
87
- },
88
- IndirectTaxPreviewDetails: {
89
- gap: "var(--sl-spacing-x-small)",
90
- display: "flex",
91
- flexDirection: "column",
92
- lineHeight: "var(--sl-spacing-medium)",
93
- fontSize: "var(--sl-font-size-small)",
94
- },
95
- InvoiceTableContainer: {
96
- marginTop: "var(--sl-spacing-medium)",
97
- },
98
- NotRegisteredIndirectTaxText: {
99
- color: "var(--sl-color-gray-500)",
100
- },
101
- TaxDocumentsContainer: {
102
- marginTop: "var(--sl-spacing-xx-large)",
103
- borderTop: "1px solid var(--sl-color-neutral-200)",
104
- },
105
- TaxDocumentsSectionHeaderContainer: {
106
- marginTop: "var(--sl-spacing-x-large)",
107
- marginBottom: "var(--sl-spacing-xx-small)",
108
- },
109
- StatusContainer: {
110
- marginTop: "var(--sl-spacing-x-large)",
111
- display: "flex",
112
- flexDirection: "column",
113
- gap: "var(--sl-spacing-x-small)",
114
- "& h3": {
115
- margin: "0",
116
- },
117
- "& p": {
118
- margin: "0",
119
- paddingTop: "2px",
120
- color: "var(--sl-color-gray-500)",
121
- },
122
- },
123
- StatusAlert: {
124
- fontSize: "var(--sl-font-size-small)",
125
- },
126
- TaxFormDetailsContainer: {
127
- display: "flex",
128
- gap: "var(--sl-spacing-small)",
129
- alignItems: "center",
130
- },
131
- NewFormButton: {
132
- marginTop: "var(--sl-spacing-large)",
133
- maxWidth: "300px",
134
- },
135
- EditBankDetailsButton: {
136
- marginTop: "var(--sl-spacing-large)",
137
- },
138
- SkeletonOne: {
139
- width: "15%",
140
- height: "10px",
141
- },
142
- SkeletonTwo: {
143
- width: "25%",
144
- height: "24px",
145
- top: "var(--sl-spacing-small)",
146
- marginBottom: "var(--sl-spacing-x-small)",
147
- },
148
- TaxSectionSkeletonContainer: {
149
- display: "flex",
150
- flexDirection: "column",
151
- marginTop: "var(--sl-spacing-x-large)",
152
- },
153
- TaxDocSubtext: {
154
- margin: "0",
155
- color: "var(--sl-color-neutral-500)",
156
- lineHeight: "var(--sl-spacing-medium)",
157
- fontSize: "var(--sl-font-size-small)",
158
- marginLeft: "1px",
159
- },
160
- TooltipContainer: {
161
- display: "flex",
162
- textAlign: "center",
163
- width: "250px",
164
- },
165
- ToolTip: {
166
- top: "6px",
167
- width: "16px",
168
- height: "16px",
169
- },
170
- TaxNumberContainer: {
171
- display: "flex",
172
- flexDirection: "column",
173
- gap: "6px",
174
- },
175
- DescriptionText: {
176
- color: "var(--sl-color-gray-500)",
177
- fontSize: "var(--sl-font-size-x-small)",
178
- marginBottom: "none",
179
- maxWidth: "492px",
180
- },
181
- PageDescriptionText: {
182
- color: "var(--sl-color-neutral-500)",
183
- fontSize: "var(--sl-font-size-medium)",
184
- marginTop: "0",
185
- },
186
- Dialog: {
187
- "&::part(panel)": {
188
- maxWidth: "420px",
189
- },
190
- "&::part(close-button)": {
191
- marginBottom: "var(--sl-spacing-xx-large)",
192
- },
193
- "&::part(title)": {
194
- fontSize: "var(--sl-font-size-x-large)",
195
- fontWeight: "600",
196
- marginTop: "var(--sl-spacing-xxx-large)",
197
- padding: "var(--sl-spacing-x-large) var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",
198
- },
199
- "&::part(body)": {
200
- padding: "0 var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",
201
- fontSize: "var(--sl-font-size-small)",
202
- },
203
- "&::part(footer)": {
204
- display: "flex",
205
- flexDirection: "column",
206
- gap: "var(--sl-spacing-small)",
207
- marginBottom: "var(--sl-spacing-xx-small)",
208
- alignItems: "center",
209
- flex: "1",
210
- },
211
- },
212
- DialogButton: { margin: "auto", width: "100%" },
213
- };
214
- const sheet = JSS.createStyleSheet(style);
215
- const styleString = sheet.toString();
216
- const TaxAndCashDashboardView = (props) => {
217
- var _a;
218
- const { states, text, callbacks, slots } = props;
219
- function getAlert(status) {
220
- switch (status) {
221
- case "OVER_W9_THRESHOLD":
222
- if (states.enforceUsTaxComplianceOption === "CASH_ONLY_DEFER_W9") {
223
- return {
224
- header: text.w9RequiredHeader,
225
- description: global.intl.formatMessage({
226
- id: "w9RequiredDescription",
227
- defaultMessage: text.w9RequiredDescription,
228
- }, {
229
- termsAndConditions: (index.h("a", { target: "_blank", href: `https://terms.advocate.impact.com/PayoutTermsAndConditions.html` }, text.termsAndConditions)),
230
- }),
231
- button: (index.h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", onClick: callbacks.onNewFormClick }, text.w9RequiredButtonText)),
232
- alertType: "info",
233
- icon: "info-circle",
234
- class: sheet.classes.WarningHoldAlertContainer,
235
- };
236
- }
237
- else {
238
- return {
239
- header: text.payoutHoldAlertHeader,
240
- description: global.intl.formatMessage({
241
- id: "payoutHoldAlertDescription",
242
- defaultMessage: text.payoutHoldAlertDescription,
243
- }, {
244
- supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
245
- }),
246
- buttonText: null,
247
- alertType: "warning",
248
- icon: "exclamation-triangle",
249
- class: sheet.classes.WarningHoldAlertContainer,
250
- };
251
- }
252
- case "VERIFICATION:REQUIRED":
253
- return {
254
- header: text.verificationRequiredHeader,
255
- description: global.intl.formatMessage({
256
- id: "verificationRequiredDescription",
257
- defaultMessage: text.verificationRequiredDescription,
258
- }, {
259
- supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
260
- }),
261
- buttonText: text.verificationRequiredButtonText,
262
- alertType: "warning",
263
- icon: "exclamation-triangle",
264
- class: sheet.classes.WarningHoldAlertContainer,
265
- };
266
- case "VERIFICATION:INTERNAL":
267
- return {
268
- header: text.verificationRequiredInternalHeader,
269
- description: global.intl.formatMessage({
270
- id: "verificationRequiredInternalDescription",
271
- defaultMessage: text.verificationRequiredInternalDescription,
272
- }, {
273
- supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
274
- }),
275
- alertType: "warning",
276
- icon: "exclamation-triangle",
277
- class: sheet.classes.WarningHoldAlertContainer,
278
- };
279
- case "VERIFICATION:REVIEW":
280
- return {
281
- header: text.verificationReviewInternalHeader,
282
- description: global.intl.formatMessage({
283
- id: "verificationReviewInternalDescription",
284
- defaultMessage: text.verificationReviewInternalDescription,
285
- }, {
286
- supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
287
- }),
288
- alertType: "warning",
289
- icon: "exclamation-triangle",
290
- class: sheet.classes.WarningHoldAlertContainer,
291
- };
292
- case "VERIFICATION:FAILED":
293
- return {
294
- header: text.verificationFailedInternalHeader,
295
- description: global.intl.formatMessage({
296
- id: "verificationFailedInternalDescription",
297
- defaultMessage: text.verificationFailedInternalDescription,
298
- }, {
299
- supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
300
- }),
301
- alertType: "error",
302
- icon: "exclamation-octagon",
303
- class: sheet.classes.ErrorHoldAlertContainer,
304
- };
305
- case "ACCOUNT_REVIEW":
306
- return {
307
- header: text.accountReviewHeader,
308
- description: global.intl.formatMessage({
309
- id: "accountReviewDescription",
310
- defaultMessage: text.accountReviewDescription,
311
- }, {
312
- supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
313
- }),
314
- buttonText: null,
315
- alertType: "warning",
316
- icon: "exclamation-triangle",
317
- class: sheet.classes.WarningHoldAlertContainer,
318
- };
319
- case "HOLD":
320
- return {
321
- header: text.payoutHoldAlertHeader,
322
- description: global.intl.formatMessage({
323
- id: "payoutHoldAlertDescription",
324
- defaultMessage: text.payoutHoldAlertDescription,
325
- }, {
326
- supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
327
- }),
328
- buttonText: null,
329
- alertType: "warning",
330
- icon: "exclamation-triangle",
331
- class: sheet.classes.WarningHoldAlertContainer,
332
- };
333
- default:
334
- return;
335
- }
336
- }
337
- const statusMap = {
338
- NOT_VERIFIED: (index.h("div", { class: sheet.classes.TaxFormDetailsContainer },
339
- index.h("sl-badge", { type: "warning", pill: true }, text.statusTextNotVerified),
340
- index.h("p", null, global.intl.formatMessage({
341
- id: `badgeTextAwaitingReview`,
342
- defaultMessage: text.badgeTextAwaitingReview,
343
- }, {
344
- dateSubmitted: states.dateSubmitted,
345
- })))),
346
- ACTIVE: (index.h("div", { class: sheet.classes.TaxFormDetailsContainer },
347
- index.h("sl-badge", { type: "success", pill: true }, text.statusTextActive),
348
- index.h("p", null, global.intl.formatMessage({
349
- id: `badgeTextSubmittedOn`,
350
- defaultMessage: states.documentType === "W9"
351
- ? text.badgeTextSubmittedOn
352
- : text.badgeTextSubmittedOnW8,
353
- }, {
354
- dateSubmitted: states.dateSubmitted,
355
- })))),
356
- INACTIVE: (index.h("div", { class: sheet.classes.TaxFormDetailsContainer },
357
- index.h("sl-badge", { type: "danger", pill: true }, text.statusTextNotActive),
358
- index.h("p", null, text.invalidForm))),
359
- undefined: (index.h("div", { class: sheet.classes.TaxFormDetailsContainer },
360
- index.h("sl-badge", { type: "danger", pill: true }, text.statusTextRequired),
361
- index.h("p", null, global.intl.formatMessage({
362
- id: `requiredTaxForm`,
363
- defaultMessage: text.requiredTaxForm,
364
- }, {
365
- taxFormType: states.documentType,
366
- })))),
367
- };
368
- const alertMap = {
369
- INACTIVE: (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true },
370
- index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
371
- index.h("strong", null, global.intl.formatMessage({
372
- id: `taxAlertHeaderNotActive`,
373
- defaultMessage: states.documentType === "W9"
374
- ? text.taxAlertHeaderNotActiveW9
375
- : text.taxAlertHeaderNotActiveW8,
376
- }, {
377
- documentType: states.documentTypeString,
378
- })),
379
- index.h("br", null),
380
- global.intl.formatMessage({
381
- id: `taxAlertMessage`,
382
- defaultMessage: states.documentType === "W9"
383
- ? text.taxAlertNotActiveMessageW9
384
- : text.taxAlertNotActiveMessageW8,
385
- }, {
386
- documentType: states.documentTypeString,
387
- }))),
388
- };
389
- const getIndirectTaxRegisteredIn = () => {
390
- if (states.province) {
391
- return global.intl.formatMessage({
392
- id: `indirectTaxInfoCanada`,
393
- defaultMessage: text.indirectTaxInfoCanada,
394
- }, {
395
- country: "Canada",
396
- province: states.province,
397
- });
398
- }
399
- else if (states.subRegion) {
400
- return global.intl.formatMessage({
401
- id: `indirectTaxInfoSpain`,
402
- defaultMessage: text.indirectTaxInfoSpain,
403
- }, {
404
- country: states.country,
405
- subRegion: states.subRegion,
406
- });
407
- }
408
- else {
409
- return global.intl.formatMessage({
410
- id: `indirectTaxInfoOtherCountry`,
411
- defaultMessage: text.indirectTaxInfoOtherCountry,
412
- }, {
413
- country: states.country,
414
- });
415
- }
416
- };
417
- const alertInfo = getAlert(states.payoutStatus);
418
- return (index.h("div", null,
419
- index.h("div", null,
420
- index.h("style", { type: "text/css" }, styleString),
421
- states.loadingError && (index.h("div", null,
422
- index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true },
423
- index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
424
- index.h("strong", null, text.error.loadingErrorAlertHeader),
425
- index.h("br", null),
426
- global.intl.formatMessage({
427
- id: "loadingErrorAlertDescription",
428
- defaultMessage: text.error.loadingErrorAlertDescription,
429
- }, {
430
- supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
431
- })))),
432
- ((_a = states.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet.classes.ErrorAlertContainer },
433
- index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
434
- index.h("strong", null, text.error.generalTitle),
435
- index.h("br", null),
436
- global.intl.formatMessage({
437
- id: "generalDescription",
438
- defaultMessage: text.error.generalDescription,
439
- }, {
440
- supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
441
- }))),
442
- alertInfo && (index.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 },
443
- index.h("sl-icon", { slot: "icon", name: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.icon }),
444
- index.h("strong", null, alertInfo.header),
445
- index.h("p", { style: { margin: "0" } }, alertInfo.description),
446
- alertInfo.buttonText && (index.h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", loading: states.veriffLoading, onClick: () => callbacks.onVerifyClick() }, alertInfo.buttonText)),
447
- alertInfo.button ? (alertInfo.button) : (index.h("div", { style: { display: "none" } })))),
448
- index.h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
449
- index.h("p", null, text.replaceTaxFormModalBodyText),
450
- index.h("sl-button", { slot: "footer", type: "primary", class: sheet.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
451
- index.h("sl-button", { slot: "footer", type: "default", class: sheet.classes.DialogButton, onClick: callbacks.onNewFormCancel }, text.cancelButton)),
452
- states.status === "INACTIVE" && alertMap[states.status],
453
- index.h("div", null,
454
- index.h("h3", { style: { marginBottom: "0" } }, text.bankingInformationSectionHeader),
455
- index.h("div", { class: sheet.classes.BankingInformationContainer },
456
- slots.payoutDetailsCardSlot,
457
- !states.loading && (index.h("p", { class: sheet.classes.DescriptionText }, text.payoutFromImpact)),
458
- states.canEditPayoutInfo && (index.h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
459
- (!states.noFormNeeded || states.status === "NOT_VERIFIED") && (index.h("div", { class: sheet.classes.TaxDocumentsContainer },
460
- index.h("div", null, states.loading ? (index.h("div", { class: sheet.classes.TaxSectionSkeletonContainer },
461
- index.h("sl-skeleton", { class: sheet.classes.SkeletonOne }),
462
- index.h("sl-skeleton", { class: sheet.classes.SkeletonTwo }))) : (index.h("div", null,
463
- index.h("div", null,
464
- index.h("span", { class: sheet.classes.TaxFormDetailsContainer },
465
- index.h("div", { class: sheet.classes.StatusContainer },
466
- index.h("h3", null, global.intl.formatMessage({
467
- id: "section-subheader",
468
- defaultMessage: text.taxDocumentSectionSubHeader,
469
- }, {
470
- documentType: states.documentTypeString || "W-9",
471
- })),
472
- index.h("span", { class: sheet.classes.StatusAlert }, statusMap[states.status]))),
473
- states.noFormNeeded &&
474
- states.status !== "NOT_VERIFIED" && (index.h("sl-button", { disabled: states.disabled || states.loading, onClick: callbacks.onClick, type: "default", class: sheet.classes.NewFormButton, exportparts: "base: primarybutton-base" }, text.newFormButton)))))))),
475
- index.h("div", { class: sheet.classes.IndirectTaxPreviewContainer }, states.loading ? (index.h("div", { class: sheet.classes.TaxSectionSkeletonContainer },
476
- index.h("sl-skeleton", { class: sheet.classes.SkeletonOne }),
477
- index.h("sl-skeleton", { class: sheet.classes.SkeletonTwo }))) : (index.h("div", null,
478
- index.h("h3", { class: sheet.classes.IndirectTaxPreviewHeaderContainer },
479
- text.indirectTaxInfoSectionHeader,
480
- index.h("sl-tooltip", { trigger: "hover", placement: "right", content: text.indirectTaxTooltipSupport, class: sheet.classes.TooltipContainer },
481
- index.h("sl-icon", { name: "info-circle", class: sheet.classes.ToolTip }))),
482
- index.h("div", { class: sheet.classes.IndirectTaxPreviewDetails },
483
- index.h("span", null, states.notRegistered ? (index.h("span", { class: sheet.classes.NotRegisteredIndirectTaxText }, global.intl.formatMessage({
484
- id: "notRegisteredForTax",
485
- defaultMessage: text.notRegisteredForTax,
486
- }, {
487
- supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
488
- }))) : (getIndirectTaxRegisteredIn())),
489
- !states.notRegistered && (index.h("div", { class: sheet.classes.TaxNumberContainer },
490
- index.h("span", null, global.intl.formatMessage({
491
- id: `indirectTaxDetails`,
492
- defaultMessage: text.indirectTaxDetails,
493
- }, {
494
- indirectTaxType: states.indirectTaxType,
495
- indirectTaxNumber: states.indirectTaxNumber,
496
- })),
497
- index.h("span", null,
498
- states.qstNumber &&
499
- global.intl.formatMessage({
500
- id: `qstNumber`,
501
- defaultMessage: text.qstNumber,
502
- }, {
503
- qstNumber: states.qstNumber,
504
- }),
505
- states.subRegionTaxNumber &&
506
- global.intl.formatMessage({
507
- id: `subRegionTaxNumber`,
508
- defaultMessage: text.subRegionTaxNumber,
509
- }, {
510
- subRegionTaxNumber: states.subRegionTaxNumber,
511
- })))),
512
- !states.notRegistered && (index.h("div", { class: sheet.classes.InvoiceTableContainer },
513
- index.h("sqm-invoice-table", { description: text.invoiceDescription, "prev-label": text.invoicePrevLabel, "more-label": text.invoiceMoreLabel, header: text.invoiceHeader, "empty-state-header": text.invoiceEmptyStateHeader, "empty-state-text": text.invoiceEmptyStateText },
514
- index.h("sqm-invoice-table-download-column", null),
515
- index.h("sqm-invoice-table-date-column", { "column-title": text.dateColumnTitle }),
516
- index.h("sqm-invoice-table-data-column", { "column-title": text.invoiceColumnTitle, property: "invoiceId" }),
517
- index.h("sqm-invoice-table-data-column", { "column-title": text.earningsColumnTitle, property: "earnings" }),
518
- index.h("sqm-invoice-table-data-column", { "column-title": text.indirectTaxColumnTitle, property: "indirectTax" }),
519
- index.h("sqm-invoice-table-data-column", { "column-title": text.earningsAfterTaxColumnTitle, property: "netEarnings" })))))))))));
520
- };
521
-
522
- const GET_TAX_SETTING = index_module.dist.gql `
523
- query getTenantSettings {
524
- tenantSettings {
525
- enforceUsTaxCompliance
526
- }
527
- }
528
- `;
529
- function getCountryName(countryCode, locale) {
530
- if (!countryCode)
531
- return undefined;
532
- // @ts-ignore: DisplayNames exists on Intl
533
- return new Intl.DisplayNames([(locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en-US"], {
534
- type: "region",
535
- }).of([countryCode]);
536
- }
537
- function getSubRegionName(regionCode) {
538
- var _a;
539
- if (!regionCode)
540
- return "";
541
- // Impact adds an underscore to some regions
542
- const standardCode = regionCode.replace("_", "");
543
- const regions = [...subregions.INDIRECT_TAX_PROVINCES, ...subregions.INDIRECT_TAX_SPAIN_REGIONS];
544
- return (_a = regions.find((r) => r.regionCode === standardCode)) === null || _a === void 0 ? void 0 : _a.displayName;
545
- }
546
- function getIndirectTaxType(taxInformation) {
547
- var _a;
548
- const regions = [...subregions.INDIRECT_TAX_PROVINCES, ...subregions.INDIRECT_TAX_SPAIN_REGIONS];
549
- if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.indirectTaxRegion) {
550
- const standardRegion = taxInformation.indirectTaxRegion.replace("_", "");
551
- const taxType = (_a = regions.find((r) => r.regionCode === standardRegion)) === null || _a === void 0 ? void 0 : _a.taxType;
552
- if (taxType)
553
- return taxType;
554
- }
555
- // Spain regions only have VAT type
556
- if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.withholdingTaxCountryCode)
557
- return "VAT";
558
- if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.indirectTaxCountryCode) {
559
- return countries.vatLabels[taxInformation.indirectTaxCountryCode] || "Indirect Tax";
560
- }
561
- return "Indirect Tax";
562
- }
563
- const useTaxAndCashDashboard = (props) => {
564
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
565
- const setStep = index_module.En(data.TAX_CONTEXT_NAMESPACE);
566
- const setContext = index_module.En(data.TAX_FORM_CONTEXT_NAMESPACE);
567
- const [showDialog, setShowDialog] = domContextHooks_module.useState(false);
568
- const { render, loading: veriffLoading, errors: veriffErrors, } = usePayoutStatus.useVeriffApp();
569
- const { data: taxSettingRes } = index_module.wn(GET_TAX_SETTING, {});
570
- const locale = index_module.L();
571
- domContextHooks_module.useEffect(() => {
572
- // Clear override context once on submitted
573
- setContext({});
574
- if (window.location.hash)
575
- setStep(`/${window.location.hash.replace("#", "")}`);
576
- }, []);
577
- const { data: data$1, loading, errors: userError, refetch, } = index_module.$n(data.USER_QUERY_NAMESPACE);
578
- const publisher = (_b = (_a = data$1 === null || data$1 === void 0 ? void 0 : data$1.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
579
- const documentType = publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType;
580
- const submissionDate = (_c = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _c === void 0 ? void 0 : _c.dateCreated;
581
- const dateSubmitted = submissionDate
582
- ? luxon.luxon.DateTime.fromMillis(submissionDate).toFormat("LLL dd, yyyy")
583
- : undefined;
584
- const onEditPayoutInfo = () => {
585
- setContext({
586
- overrideNextStep: "/dashboard",
587
- overrideBackStep: "/dashboard",
588
- hideSteps: true,
589
- });
590
- setStep("/4");
591
- };
592
- const onNewFormClick = () => {
593
- setShowDialog(false);
594
- setContext({
595
- overrideNextStep: "/dashboard",
596
- overrideBackStep: "/dashboard",
597
- hideSteps: true,
598
- });
599
- setStep("/3");
600
- };
601
- const provinceName = (_d = subregions.INDIRECT_TAX_PROVINCES.find((p) => { var _a; return p.regionCode === ((_a = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _a === void 0 ? void 0 : _a.indirectTaxRegion); })) === null || _d === void 0 ? void 0 : _d.displayName;
602
- const payoutStatus = data$1 ? usePayoutStatus.getStatus(data$1) : null;
603
- domContextHooks_module.useEffect(() => {
604
- const cb = () => refetch();
605
- window.addEventListener(usePayoutStatus.VERIFF_COMPLETE_EVENT_KEY, cb);
606
- return () => {
607
- window.removeEventListener(usePayoutStatus.VERIFF_COMPLETE_EVENT_KEY, cb);
608
- };
609
- }, []);
610
- const enforceUsTaxComplianceOption = (_e = taxSettingRes === null || taxSettingRes === void 0 ? void 0 : taxSettingRes.tenantSettings) === null || _e === void 0 ? void 0 : _e.enforceUsTaxCompliance;
611
- return {
612
- states: {
613
- dateSubmitted,
614
- documentType,
615
- canEditPayoutInfo: publisher === null || publisher === void 0 ? void 0 : publisher.brandedSignup,
616
- documentTypeString: utils.taxTypeToName(documentType),
617
- status: (_f = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _f === void 0 ? void 0 : _f.status,
618
- subRegion: getSubRegionName((_g = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _g === void 0 ? void 0 : _g.indirectTaxRegion),
619
- subRegionTaxNumber: (_h = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _h === void 0 ? void 0 : _h.withholdingTaxId,
620
- qstNumber: (_j = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _j === void 0 ? void 0 : _j.additionalTaxId,
621
- indirectTaxType: getIndirectTaxType(publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation),
622
- indirectTaxNumber: (_k = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _k === void 0 ? void 0 : _k.indirectTaxId,
623
- isBusinessEntity: (publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType) === "W8BENE",
624
- province: provinceName,
625
- country: getCountryName((_l = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _l === void 0 ? void 0 : _l.indirectTaxCountryCode, locale),
626
- notRegistered: !((_m = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _m === void 0 ? void 0 : _m.indirectTaxId),
627
- noFormNeeded: !documentType,
628
- disabled: loading,
629
- loading,
630
- loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
631
- showNewFormDialog: showDialog,
632
- hasHold: !!((_o = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _o === void 0 ? void 0 : _o.hold),
633
- payoutStatus,
634
- veriffLoading,
635
- enforceUsTaxComplianceOption,
636
- },
637
- callbacks: {
638
- onClick: () => setShowDialog(true),
639
- onVerifyClick: () => render(),
640
- onEditPayoutInfo,
641
- onNewFormCancel: () => setShowDialog(false),
642
- onNewFormClick,
643
- },
644
- text: props.getTextProps(),
645
- };
646
- };
647
-
648
- const TaxAndCashDashboard = class {
649
- constructor(hostRef) {
650
- index.registerInstance(this, hostRef);
651
- /**
652
- * @uiName Active tax form badge label
653
- */
654
- this.statusTextActive = "Active";
655
- /**
656
- * @uiName Invalid tax form badge label
657
- */
658
- this.statusTextNotActive = "Invalid Tax Form";
659
- /**
660
- * Displayed when the participant submitted their form but it is awaiting review.
661
- *
662
- * @uiName Not verified tax form badge label
663
- */
664
- this.statusTextNotVerified = "Not Verified";
665
- /**
666
- * Displayed when the participant has not submitted their required tax form.
667
- *
668
- * @uiName Required tax form badge label
669
- */
670
- this.statusTextRequired = "Required";
671
- /**
672
- * Additional text displayed next to the tax form's status badge
673
- *
674
- * @uiName Required tax form description
675
- */
676
- this.requiredTaxForm = "Your payouts are on hold until you submit a {taxFormType} tax form.";
677
- /**
678
- * Additional text displayed next to the tax form's status badge
679
- *
680
- * @uiName Active W-9 description
681
- */
682
- this.badgeTextSubmittedOn = "Submitted on {dateSubmitted}.";
683
- /**
684
- * Additional text displayed next to the tax form's status badge.
685
- *
686
- * @uiName Active W-8 description
687
- */
688
- this.badgeTextSubmittedOnW8 = "Submitted on {dateSubmitted}. Valid for three years after submission.";
689
- /**
690
- * Additional text displayed next to the tax form's status badge.
691
- *
692
- * @uiName Tax form in review description
693
- */
694
- this.badgeTextAwaitingReview = "Awaiting review. Submitted on {dateSubmitted}.";
695
- /**
696
- * Part of the alert displayed at the top of the page.
697
- *
698
- * @uiName Inactive W-9 error message title
699
- * @uiWidget textArea
700
- */
701
- this.taxAlertHeaderNotActiveW9 = "Your W-9 tax form has personal information that doesn’t match your profile";
702
- /**
703
- * Part of the alert displayed at the top of the page.
704
- *
705
- * @uiName Inactive W-8 error message title
706
- * @uiWidget textArea
707
- */
708
- this.taxAlertHeaderNotActiveW8 = "{documentType} tax form is invalid";
709
- /**
710
- * Part of the alert displayed at the top of the page.
711
- *
712
- * @uiName Inactive W-9 error message description
713
- * @uiWidget textArea
714
- */
715
- this.taxAlertNotActiveMessageW9 = "Please resubmit a new {documentType} form.";
716
- /**
717
- * Part of the alert displayed at the top of the page.
718
- *
719
- * @uiName Inactive W-8 error message description
720
- */
721
- this.taxAlertNotActiveMessageW8 = "Your tax form may have expired or has personal information that doesn’t match your profile. Please submit a new {documentType} form.";
722
- /**
723
- * Additional text displayed next to the tax form's status badge.
724
- *
725
- * @uiName Invalid tax form description
726
- * @uiWidget textArea
727
- */
728
- this.invalidForm = "Make sure your information is correct and submit new form.";
729
- /**
730
- * @uiName Payout information section header
731
- */
732
- this.bankingInformationSectionHeader = "Payout information";
733
- /**
734
- * @uiName Tax document section header
735
- */
736
- this.taxDocumentSectionHeader = "Tax documents";
737
- /**
738
- * Displayed under the tax document section header.
739
- *
740
- * @uiName Tax documents section description
741
- */
742
- this.taxDocumentSectionSubHeader = "{documentType} tax form";
743
- /**
744
- *
745
- * @uiName Indirect tax section header
746
- */
747
- this.indirectTaxInfoSectionHeader = "Indirect tax";
748
- /**
749
- * If the participant is registered for indirect tax in Canada, display the province they’re registered in.
750
- *
751
- * @uiName Canadian province of indirect tax
752
- */
753
- this.indirectTaxInfoCanada = "Registered in {province}, {country}";
754
- /**
755
- * If the participant is registered for indirect tax, display the country they’re registered in.
756
- *
757
- * @uiName Indirect tax country
758
- */
759
- this.indirectTaxInfoOtherCountry = "Registered in {country}";
760
- /**
761
- * If the participant is registered for indirect tax in Spain, display the region they’re registered in.
762
- *
763
- * @uiName Spanish region of indirect tax
764
- */
765
- this.indirectTaxInfoSpain = "Registered in {country}, {subRegion}";
766
- /**
767
- * @uiName Indirect tax tooltip
768
- * @uiWidget textArea
769
- */
770
- this.indirectTaxTooltipSupport = "To make changes to your indirect tax information, please contact our Support team.";
771
- /**
772
- * Displayed to participants who have submitted their indirect tax information.
773
- *
774
- * @uiName Indirect tax details
775
- */
776
- this.indirectTaxDetails = "{indirectTaxType} number: {indirectTaxNumber}";
777
- /**
778
- * @uiName Submit new tax form button label
779
- */
780
- this.newFormButton = "Submit new form";
781
- /**
782
- *
783
- * @uiName Edit payment info button label
784
- */
785
- this.editPaymentInformationButton = "Edit Payout Information";
786
- /**
787
- * @uiName Not registered for indirect tax text
788
- * @uiWidget textArea
789
- */
790
- this.notRegisteredForTax = "Not registered for indirect tax. If you’ve previously registered with your tax authority, contact our {supportLink} to add your information to stay tax compliant.";
791
- /**
792
- * Displayed to participants registered in Quebec, Canada.
793
- * @uiName QST indirect tax details
794
- */
795
- this.qstNumber = "QST number: {qstNumber}";
796
- /**
797
- * @uiName Spain sub-region indirect tax number
798
- */
799
- this.subRegionTaxNumber = "Income tax number: {subRegionTaxNumber}";
800
- /**
801
- * @uiName Payout status badge
802
- */
803
- this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
804
- /**
805
- * Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
806
- * @uiName Payout schedule by threshold text
807
- */
808
- this.thresholdPayoutText = "Next payout occurs when balance is {thresholdBalance}";
809
- /**
810
- * Shown before the participant’s bank account information.
811
- * @uiName Bank account field label
812
- */
813
- this.accountText = "Account";
814
- /**
815
- * Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
816
- * @uiName Payout error message title
817
- * @uiWidget textArea
818
- */
819
- this.payoutHoldAlertHeader = "Your payout is on hold";
820
- /**
821
- * Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
822
- * @uiName Payout error message description
823
- * @uiWidget textArea
824
- */
825
- this.payoutHoldAlertDescription = "Please contact our {supportLink} or check your inbox for an email from our referral program provider, impact.com.";
826
- /**
827
- * Text displayed for existing publishers that do not have saved banking information.
828
- * @uiName Payout missing information subtext
829
- */
830
- this.payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
831
- /**
832
- * Part of the alert displayed at the top of the page when the user needs to verify their identity.
833
- * @uiName Verification required alert message title
834
- * @uiWidget textArea
835
- */
836
- this.verificationRequiredHeader = "Verify your identity";
837
- /**
838
- * Part of the alert displayed at the top of the page when the user needs to verify their identity
839
- * @uiName Verification required alert message description
840
- * @uiWidget textArea
841
- */
842
- this.verificationRequiredDescription = "Complete your verification to start receiving your cash rewards. It should only take a few minutes verify. If you run in to an issue verifying your identity contact our {supportLink}.";
843
- /**
844
- * @uiName Verification required internal alert header
845
- */
846
- this.verificationRequiredInternalHeader = "Identity Verification in Progress";
847
- /**
848
- * @uiName Verification required internal alert description
849
- */
850
- this.verificationRequiredInternalDescription = "Identity verification submission has been received. Our system is currently performing additional checks and analyzing the results. You will be updated shortly. If you don't hear from us contact our {supportLink}.";
851
- /**
852
- * @uiName Verification review internal alert header
853
- */
854
- this.verificationReviewInternalHeader = "Identity Verification Under Review";
855
- /**
856
- * @uiName Verification review internal alert description
857
- */
858
- 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}.";
859
- /**
860
- * @uiName Verification failed internal alert header
861
- */
862
- this.verificationFailedInternalHeader = "Identity Verification Unsuccessful";
863
- /**
864
- * @uiName Verification failed internal alert description
865
- */
866
- 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}.";
867
- /**
868
- * Part of the alert displayed at the top of the page when the user needs to verify their identity.
869
- * @uiName Verification required alert button text
870
- */
871
- this.verificationRequiredButtonText = "Start Verification";
872
- /**
873
- * @uiName W-9 payment threshold alert header
874
- */
875
- this.w9RequiredHeader = "Your next payout is on hold";
876
- /**
877
- * @uiName W-9 payment threshold alert description
878
- */
879
- this.w9RequiredDescription = "You have surpassed the $600 threshold requiring a W-9 form or have multiple accounts with impact.com. To remove the hold, please submit your W-9 form.";
880
- /**
881
- * @uiName Account review alert header
882
- */
883
- this.accountReviewHeader = "Your account is under review";
884
- /**
885
- * @uiName Account review alert description
886
- */
887
- this.accountReviewDescription = "This process takes 48 hours, payouts are on hold until it's completed. You will receive an email from our referral provider, Impact.com, if any issues arise. It contains details on how to resolve this issue. If you need further assistance, please reach out to our {supportLink}.";
888
- /**
889
- * @uiName Terms and Conditions text
890
- */
891
- this.termsAndConditions = "Terms and Conditions";
892
- /**
893
- * @uiName W-9 payment threshold alert button text
894
- */
895
- this.w9RequiredButtonText = "Submit W-9";
896
- /**
897
- * Part of the alert displayed at the top of the page.
898
- * @uiName Form submission error message title
899
- * @uiWidget textArea
900
- */
901
- this.generalErrorTitle = "There was a problem submitting your information";
902
- /**
903
- * Part of the alert displayed at the top of the page.
904
- * @uiName Form submission error message description
905
- * @uiWidget textArea
906
- */
907
- this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
908
- /**
909
- * Displayed under the payout details card.
910
- * @uiName Payout from impact text
911
- * @uiWidget textArea
912
- */
913
- this.payoutFromImpact = "Your balance may take up to 24 hours to update. Payouts will be sent from our referral program provider, impact.com.";
914
- /**
915
- * Part of the alert displayed at the top of the page.
916
- * @uiName Page load error message title
917
- * @uiWidget textArea
918
- */
919
- this.loadingErrorAlertHeader = "There was a problem loading your form";
920
- /**
921
- * Part of the alert displayed at the top of the page.
922
- * @uiName Page load error message description
923
- * @uiWidget textArea
924
- */
925
- this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact our {supportLink}.";
926
- /**
927
- * Part of the Invoice table displayed at the bottom of the page.
928
- * @uiName Invoice number column title
929
- */
930
- this.invoiceColumnTitle = "Invoice";
931
- /**
932
- * Part of the Invoice table displayed at the bottom of the page.
933
- * @uiName Date column title
934
- */
935
- this.dateColumnTitle = "Date";
936
- /**
937
- * Part of the Invoice table displayed at the bottom of the page.
938
- * @uiName Earnings column title
939
- */
940
- this.earningsColumnTitle = "Earnings";
941
- /**
942
- * Part of the Invoice table displayed at the bottom of the page.
943
- * @uiName Indirect tax column title
944
- */
945
- this.indirectTaxColumnTitle = "Indirect tax";
946
- /**
947
- * Part of the Invoice table displayed at the bottom of the page.
948
- * @uiName Earnings after tax column title
949
- */
950
- this.earningsAfterTaxColumnTitle = "Earnings after tax";
951
- /** @uiName Invoice table description */
952
- this.invoiceDescription = "View and download your invoices to report your earnings and stay tax compliant.";
953
- /** @uiName Invoice table previous page button label */
954
- this.invoicePrevLabel = "Prev";
955
- /** @uiName Invoice table next page button label */
956
- this.invoiceMoreLabel = "Next";
957
- /** @uiName Invoice table title */
958
- this.invoiceHeader = "Invoices";
959
- /** @uiName Empty invoice table header */
960
- this.invoiceEmptyStateHeader = "View your invoice details";
961
- /** @uiName Empty invoice table description */
962
- this.invoiceEmptyStateText = "Refer a friend to view the status of your invoices and rewards earned";
963
- /**
964
- * @uiName Replace tax form modal header
965
- */
966
- this.replaceTaxFormModalHeader = "Replace existing tax form";
967
- /**
968
- * @uiName Replace tax form modal body text
969
- */
970
- this.replaceTaxFormModalBodyText = "Submitting a new tax form will remove your existing form. Make sure to sign and complete your new tax form to prevent any issues with your next payout.";
971
- /**
972
- * @uiName Support link text
973
- */
974
- this.supportLink = "support team";
975
- /**
976
- * @uiName Cancel button label
977
- */
978
- this.cancelButton = "Cancel";
979
- /**
980
- * @undocumented
981
- * @componentState { "title": "Payouts on hold", "props": { "states": { "payoutStatus": "HOLD" } }, "dependencies": ["sqm-payout-status-alert"] "uiGroup": "Dashboard Properties" }
982
- */
983
- this.stateController = "{}";
984
- domContextHooks_module.h$1(this);
985
- }
986
- disconnectedCallback() { }
987
- getTextProps() {
988
- const props = utils$1.getProps(this);
989
- return {
990
- ...props,
991
- error: {
992
- generalDescription: props.generalErrorDescription,
993
- generalTitle: props.generalErrorTitle,
994
- loadingErrorAlertHeader: props.loadingErrorAlertHeader,
995
- loadingErrorAlertDescription: props.loadingErrorAlertDescription,
996
- },
997
- };
998
- }
999
- render() {
1000
- const props = index_module.isDemo()
1001
- ? useDemoTaxAndCashDashboard(this)
1002
- : useTaxAndCashDashboard(this);
1003
- return (index.h(index.Host, null, index.h(TaxAndCashDashboardView, { callbacks: props.callbacks, states: props.states, text: props.text, slots: {
1004
- payoutDetailsCardSlot: (index.h("sqm-payout-details-card", Object.assign({}, this.getTextProps()))),
1005
- } })));
1006
- }
1007
- };
1008
- function useDemoTaxAndCashDashboard(props) {
1009
- var _a, _b, _c, _d;
1010
- const parsed = parseStates.parseStates(props.stateController);
1011
- const formatted = parsed["sqm-tax-and-cash-dashboard"] !== undefined
1012
- ? parsed["sqm-tax-and-cash-dashboard"]
1013
- : {};
1014
- const parsedPayoutStatus = (_b = (_a = formatted === null || formatted === void 0 ? void 0 : formatted.states) === null || _a === void 0 ? void 0 : _a.payoutStatus) !== null && _b !== void 0 ? _b : (_d = (_c = props.demoData) === null || _c === void 0 ? void 0 : _c.states) === null || _d === void 0 ? void 0 : _d.payoutStatus;
1015
- // @ts-ignore
1016
- return cjs.cjs({
1017
- states: {
1018
- dateSubmitted: "today",
1019
- documentType: "W9",
1020
- documentTypeString: "W-9",
1021
- status: "ACTIVE",
1022
- country: "United States",
1023
- indirectTaxNumber: "55555555",
1024
- indirectTaxType: "Indirect Tax",
1025
- noFormNeeded: false,
1026
- disabled: false,
1027
- loading: false,
1028
- showNewFormDialog: false,
1029
- hasHold: false,
1030
- subRegion: "CA",
1031
- subRegionTaxNumber: undefined,
1032
- qstNumber: undefined,
1033
- isBusinessEntity: false,
1034
- province: undefined,
1035
- notRegistered: true,
1036
- loadingError: false,
1037
- payoutStatus: parsedPayoutStatus || "DONE",
1038
- veriffLoading: false,
1039
- canEditPayoutInfo: true,
1040
- },
1041
- callbacks: {
1042
- onClick: () => console.debug("check step"),
1043
- onEditPayoutInfo: () => console.debug("payout info"),
1044
- onNewFormCancel: () => console.log("hide"),
1045
- onNewFormClick: () => console.log("show"),
1046
- onVerifyClick: () => console.log("verify"),
1047
- },
1048
- text: props.getTextProps(),
1049
- slots: {
1050
- payoutDetailsCardSlot: (index.h("sqm-payout-details-card", { demoData: {
1051
- states: {
1052
- badgeStatus: "nextPayout",
1053
- },
1054
- } })),
1055
- },
1056
- }, props.demoData || formatted || {}, { arrayMerge: (_, a) => a });
1057
- }
1058
-
1059
- exports.sqm_tax_and_cash_dashboard = TaxAndCashDashboard;