@saasquatch/mint-components 1.12.0-11 → 1.12.0-12
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/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/sqm-banking-info-form_16.cjs.entry.js +137 -53
- package/dist/cjs/sqm-big-stat_39.cjs.entry.js +55 -15
- package/dist/cjs/sqm-code-verification.cjs.entry.js +4 -4
- package/dist/cjs/sqm-email-verification.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-invoice-table-view-c58966f8.js → sqm-invoice-table-view-301eed81.js} +78 -23
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +11 -21
- package/dist/cjs/sqm-widget-verification-internal.cjs.entry.js +7 -1
- package/dist/cjs/usePayoutStatus-5ac536a3.js +1045 -0
- package/dist/cjs/{useVerificationEmail-6aacdb71.js → useVerificationEmail-2eb28c2a.js} +5 -1
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/useCodeVerification.js +3 -3
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-internal.js +7 -1
- package/dist/collection/components/sqm-widget-verification/useVerificationEmail.js +5 -1
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +75 -23
- package/dist/collection/components/tax-and-cash/eventKeys.js +1 -0
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +5 -5
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +3 -0
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +3 -0
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +3 -0
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/PayoutDetailsCard.stories.js +0 -7
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.js +0 -5
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +0 -56
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.js +5 -9
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +28 -11
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +155 -6
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +20 -9
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +86 -21
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +153 -2
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +13 -5
- package/dist/collection/components/tax-and-cash/useVeriffApp.js +64 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/sqm-banking-info-form_16.entry.js +137 -53
- package/dist/esm/sqm-big-stat_39.entry.js +55 -15
- package/dist/esm/sqm-code-verification.entry.js +4 -4
- package/dist/esm/sqm-email-verification.entry.js +1 -1
- package/dist/esm/{sqm-invoice-table-view-d1cfdaf4.js → sqm-invoice-table-view-1f26f252.js} +78 -23
- package/dist/esm/sqm-stencilbook.entry.js +11 -21
- package/dist/esm/sqm-widget-verification-internal.entry.js +7 -1
- package/dist/esm/usePayoutStatus-d613ff10.js +1039 -0
- package/dist/esm/{useVerificationEmail-c32696ba.js → useVerificationEmail-2a21d0e3.js} +5 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-banking-info-form_16.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_39.entry.js +1 -1
- package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-invoice-table-view-1f26f252.js +1 -0
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-widget-verification-internal.entry.js +1 -1
- package/dist/esm-es5/usePayoutStatus-d613ff10.js +6 -0
- package/dist/esm-es5/useVerificationEmail-2a21d0e3.js +1 -0
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/p-03e1ac96.system.entry.js +1 -0
- package/dist/mint-components/p-209eab38.system.js +6 -0
- package/dist/mint-components/p-2584baa5.entry.js +16 -0
- package/dist/mint-components/p-2c99add0.js +31 -0
- package/dist/mint-components/p-635f1cf5.system.entry.js +1 -0
- package/dist/mint-components/p-78ec0d48.js +1 -0
- package/dist/mint-components/p-7d79f697.system.js +1 -0
- package/dist/mint-components/p-9379ee08.js +48 -0
- package/dist/mint-components/p-9ddcfcd7.entry.js +195 -0
- package/dist/mint-components/p-a567ba84.system.entry.js +1 -0
- package/dist/mint-components/p-a8c28561.system.js +1 -0
- package/dist/mint-components/{p-5f766d09.entry.js → p-a9b7e11f.entry.js} +2 -2
- package/dist/mint-components/{p-1712a9fd.entry.js → p-b24b4d75.entry.js} +2 -2
- package/dist/mint-components/{p-331d060e.entry.js → p-b9e863d0.entry.js} +14 -14
- package/dist/mint-components/{p-aabab609.system.entry.js → p-c5d26757.system.entry.js} +1 -1
- package/dist/mint-components/{p-b62faaa5.system.entry.js → p-c5f84a95.system.entry.js} +1 -1
- package/dist/mint-components/p-ca809fdd.system.js +1 -1
- package/dist/mint-components/{p-e45a8501.system.entry.js → p-f7493ca6.system.entry.js} +1 -1
- package/dist/mint-components/{p-24092973.entry.js → p-f7902f51.entry.js} +2 -2
- package/dist/types/components/sqm-widget-verification/useVerificationEmail.d.ts +1 -0
- package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +3 -0
- package/dist/types/components/tax-and-cash/eventKeys.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-payout-details-card/PayoutDetailsCard.stories.d.ts +0 -1
- package/dist/types/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.d.ts +0 -4
- package/dist/types/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.d.ts +1 -16
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.d.ts +3 -1
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +7 -2
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +25 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +3 -4
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +8 -4
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +24 -0
- package/dist/types/components/tax-and-cash/useVeriffApp.d.ts +6 -0
- package/dist/types/components.d.ts +98 -22
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +2 -1
- package/dist/cjs/usePayoutStatus-b9fb7399.js +0 -70
- package/dist/esm/usePayoutStatus-1a635054.js +0 -67
- package/dist/esm-es5/sqm-invoice-table-view-d1cfdaf4.js +0 -1
- package/dist/esm-es5/usePayoutStatus-1a635054.js +0 -1
- package/dist/esm-es5/useVerificationEmail-c32696ba.js +0 -1
- package/dist/mint-components/p-0e45bc0e.system.entry.js +0 -1
- package/dist/mint-components/p-1e616d45.system.js +0 -1
- package/dist/mint-components/p-282a7d85.entry.js +0 -195
- package/dist/mint-components/p-4364001c.entry.js +0 -12
- package/dist/mint-components/p-4bd7a472.js +0 -1
- package/dist/mint-components/p-517224ef.js +0 -19
- package/dist/mint-components/p-8300d8c8.system.js +0 -1
- package/dist/mint-components/p-8bddb468.system.entry.js +0 -1
- package/dist/mint-components/p-974070c4.system.entry.js +0 -1
- package/dist/mint-components/p-d7806f31.js +0 -48
- package/dist/mint-components/p-e990dc21.system.js +0 -1
|
@@ -16,9 +16,9 @@ const useChildElements = require('./useChildElements-410d2435.js');
|
|
|
16
16
|
const luxon = require('./luxon-05098e19.js');
|
|
17
17
|
const useReferralTable = require('./useReferralTable-824ac152.js');
|
|
18
18
|
const utils = require('./utils-6847bc06.js');
|
|
19
|
-
const sqmInvoiceTableView = require('./sqm-invoice-table-view-
|
|
19
|
+
const sqmInvoiceTableView = require('./sqm-invoice-table-view-301eed81.js');
|
|
20
20
|
const keys = require('./keys-cff24974.js');
|
|
21
|
-
const usePayoutStatus = require('./usePayoutStatus-
|
|
21
|
+
const usePayoutStatus = require('./usePayoutStatus-5ac536a3.js');
|
|
22
22
|
const extractProps = require('./extractProps-fd93ba62.js');
|
|
23
23
|
|
|
24
24
|
const TAX_CONTEXT_NAMESPACE = "sq:tax-and-cash";
|
|
@@ -1146,6 +1146,8 @@ function useBankingInfoForm(props) {
|
|
|
1146
1146
|
});
|
|
1147
1147
|
return;
|
|
1148
1148
|
}
|
|
1149
|
+
// Fire form change event
|
|
1150
|
+
window.dispatchEvent(new Event(usePayoutStatus.TAX_FORM_UPDATED_EVENT_KEY));
|
|
1149
1151
|
await refetch();
|
|
1150
1152
|
setStep("/dashboard");
|
|
1151
1153
|
}
|
|
@@ -1564,13 +1566,13 @@ const BankingInfoForm = class {
|
|
|
1564
1566
|
}
|
|
1565
1567
|
return (index.h(index.Host, null, index.h(BankingInfoFormView, { callbacks: props.callbacks, text: props.text, states: props.states, refs: props.refs, slots: {
|
|
1566
1568
|
formInputsSlot: inputFields === null || inputFields === void 0 ? void 0 : inputFields.map(({ input }) => input),
|
|
1567
|
-
countryInputSlot: (index.h("sl-select", Object.assign({ label: props.text.bankLocationLabel, required: true, name: "/bankCountry", id: "bankCountry", value: props.states.formState.bankCountry || "", "onSl-select": (e) => { var _a, _b; return props.callbacks.setBankCountry((_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.value); } }, (((_a = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _a === void 0 ? void 0 : _a.bankCountry) && {
|
|
1569
|
+
countryInputSlot: (index.h("sl-select", Object.assign({ label: props.text.bankLocationLabel, disabled: props.states.saveLoading, required: true, name: "/bankCountry", id: "bankCountry", value: props.states.formState.bankCountry || "", "onSl-select": (e) => { var _a, _b; return props.callbacks.setBankCountry((_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.value); } }, (((_a = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _a === void 0 ? void 0 : _a.bankCountry) && {
|
|
1568
1570
|
class: "error-input",
|
|
1569
1571
|
helpText: getValidationErrorMessage({
|
|
1570
1572
|
type: (_c = (_b = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _b === void 0 ? void 0 : _b.bankCountry) === null || _c === void 0 ? void 0 : _c.type,
|
|
1571
1573
|
label: props.text.bankLocationLabel,
|
|
1572
1574
|
}),
|
|
1573
|
-
})), index.h("sl-input", { class: searchStyle.SearchInput, placeholder: this.searchForCountryText, onKeyDown: (e) => {
|
|
1575
|
+
})), index.h("sl-input", { disabled: props.states.saveLoading, class: searchStyle.SearchInput, placeholder: this.searchForCountryText, onKeyDown: (e) => {
|
|
1574
1576
|
// Stop shoelace intercepting key presses
|
|
1575
1577
|
e.stopPropagation();
|
|
1576
1578
|
}, "onSl-input": (e) => {
|
|
@@ -1581,21 +1583,21 @@ const BankingInfoForm = class {
|
|
|
1581
1583
|
}), (_f = (_e = props.states) === null || _e === void 0 ? void 0 : _e.allCountries) === null || _f === void 0 ? void 0 :
|
|
1582
1584
|
_f.map((c) => (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName))))),
|
|
1583
1585
|
paymentMethodSlot: (index.h("sl-input", { key: "paymentMethod", label: props.text.paymentMethod, placeholder: props.states.paymentMethodFeeLabel, disabled: true })),
|
|
1584
|
-
paymentThresholdSelectSlot: (index.h("sl-select", Object.assign({ required: true, label: props.text.paymentThresholdSelectLabel, name: "/paymentThreshold", id: "paymentThreshold", value: ((_h = (_g = props.states) === null || _g === void 0 ? void 0 : _g.formState) === null || _h === void 0 ? void 0 : _h.paymentThreshold) || "" }, (((_j = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _j === void 0 ? void 0 : _j.paymentThreshold) && {
|
|
1586
|
+
paymentThresholdSelectSlot: (index.h("sl-select", Object.assign({ required: true, disabled: props.states.saveLoading, label: props.text.paymentThresholdSelectLabel, name: "/paymentThreshold", id: "paymentThreshold", value: ((_h = (_g = props.states) === null || _g === void 0 ? void 0 : _g.formState) === null || _h === void 0 ? void 0 : _h.paymentThreshold) || "" }, (((_j = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _j === void 0 ? void 0 : _j.paymentThreshold) && {
|
|
1585
1587
|
class: "error-input",
|
|
1586
1588
|
helpText: getValidationErrorMessage({
|
|
1587
1589
|
type: (_l = (_k = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _k === void 0 ? void 0 : _k.paymentThreshold) === null || _l === void 0 ? void 0 : _l.type,
|
|
1588
1590
|
label: props.text.paymentThresholdSelectLabel,
|
|
1589
1591
|
}),
|
|
1590
1592
|
})), props.states.thresholds.map((t) => (index.h("sl-menu-item", { value: t }, `${props.states.currency}${t}`))))),
|
|
1591
|
-
paymentFixedDaySelectSlot: (index.h("sl-select", Object.assign({ required: true, label: props.text.paymentDaySelectLabel, value: ((_o = (_m = props.states) === null || _m === void 0 ? void 0 : _m.formState) === null || _o === void 0 ? void 0 : _o.paymentDay) || "", name: "/paymentDay", id: "paymentDay" }, (((_p = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _p === void 0 ? void 0 : _p.paymentDay) && {
|
|
1593
|
+
paymentFixedDaySelectSlot: (index.h("sl-select", Object.assign({ required: true, disabled: props.states.saveLoading, label: props.text.paymentDaySelectLabel, value: ((_o = (_m = props.states) === null || _m === void 0 ? void 0 : _m.formState) === null || _o === void 0 ? void 0 : _o.paymentDay) || "", name: "/paymentDay", id: "paymentDay" }, (((_p = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _p === void 0 ? void 0 : _p.paymentDay) && {
|
|
1592
1594
|
class: "error-input",
|
|
1593
1595
|
helpText: getValidationErrorMessage({
|
|
1594
1596
|
type: (_r = (_q = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _q === void 0 ? void 0 : _q.paymentDay) === null || _r === void 0 ? void 0 : _r.type,
|
|
1595
1597
|
label: props.text.paymentDaySelectLabel,
|
|
1596
1598
|
}),
|
|
1597
1599
|
})), index.h("sl-menu-item", { value: "1" }, props.text.paymentDayFirstOfMonthLabelText), index.h("sl-menu-item", { value: "15" }, props.text.paymentDayFifteenthOfMonthLabelText))),
|
|
1598
|
-
paypalInputSlot: (index.h("sl-input", Object.assign({ required: true, value: ((_t = (_s = props.states) === null || _s === void 0 ? void 0 : _s.formState) === null || _t === void 0 ? void 0 : _t.paypalEmailAddress) || "", label: props.text.payPalInputLabel, key: "paypalEmailAddress", name: "/paypalEmailAddress", id: "paypalEmailAddress", type: "text" }, (((_w = (_v = (_u = props.states.formState) === null || _u === void 0 ? void 0 : _u.errors) === null || _v === void 0 ? void 0 : _v.inputErrors) === null || _w === void 0 ? void 0 : _w.paypalEmailAddress) && {
|
|
1600
|
+
paypalInputSlot: (index.h("sl-input", Object.assign({ required: true, disabled: props.states.saveLoading, value: ((_t = (_s = props.states) === null || _s === void 0 ? void 0 : _s.formState) === null || _t === void 0 ? void 0 : _t.paypalEmailAddress) || "", label: props.text.payPalInputLabel, key: "paypalEmailAddress", name: "/paypalEmailAddress", id: "paypalEmailAddress", type: "text" }, (((_w = (_v = (_u = props.states.formState) === null || _u === void 0 ? void 0 : _u.errors) === null || _v === void 0 ? void 0 : _v.inputErrors) === null || _w === void 0 ? void 0 : _w.paypalEmailAddress) && {
|
|
1599
1601
|
class: "error-input",
|
|
1600
1602
|
helpText: getValidationErrorMessage({
|
|
1601
1603
|
type: (_0 = (_z = (_y = (_x = props.states.formState) === null || _x === void 0 ? void 0 : _x.errors) === null || _y === void 0 ? void 0 : _y.inputErrors) === null || _z === void 0 ? void 0 : _z.paypalEmailAddress) === null || _0 === void 0 ? void 0 : _0.type,
|
|
@@ -1800,6 +1802,8 @@ function useDocusignForm(props) {
|
|
|
1800
1802
|
// @ts-expect-error: no data type for result
|
|
1801
1803
|
if (!result.completeImpactPublisherTaxDocument.success)
|
|
1802
1804
|
throw new Error();
|
|
1805
|
+
// Fire form change event
|
|
1806
|
+
window.dispatchEvent(new Event(usePayoutStatus.TAX_FORM_UPDATED_EVENT_KEY));
|
|
1803
1807
|
setShowExitButton(true);
|
|
1804
1808
|
}
|
|
1805
1809
|
catch (e) {
|
|
@@ -2680,6 +2684,8 @@ function useIndirectTaxForm(props) {
|
|
|
2680
2684
|
const resultPublisher = (_e = (_d = (_c = result
|
|
2681
2685
|
.createImpactConnection) === null || _c === void 0 ? void 0 : _c.user) === null || _d === void 0 ? void 0 : _d.impactConnection) === null || _e === void 0 ? void 0 : _e.publisher;
|
|
2682
2686
|
const hasValidCurrentDocument = sqmInvoiceTableView.validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
|
|
2687
|
+
// Fire form change event
|
|
2688
|
+
window.dispatchEvent(new Event(usePayoutStatus.TAX_FORM_UPDATED_EVENT_KEY));
|
|
2683
2689
|
if ((resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) &&
|
|
2684
2690
|
!hasValidCurrentDocument) {
|
|
2685
2691
|
// Go to docusign form
|
|
@@ -3612,11 +3618,6 @@ function PayoutDetailsCardView(props) {
|
|
|
3612
3618
|
});
|
|
3613
3619
|
return (index.h("div", { class: classes.Container },
|
|
3614
3620
|
index.h("style", { type: "text/css" }, styleString),
|
|
3615
|
-
states.error && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", class: classes.Alert, type: "warning", open: true },
|
|
3616
|
-
index.h("sl-icon", { slot: "icon", name: "exclamation-triangle" }),
|
|
3617
|
-
index.h("div", { class: classes.AlertContent },
|
|
3618
|
-
index.h("b", null, text.error.errorTitleText),
|
|
3619
|
-
text.error.errorDescriptionText))),
|
|
3620
3621
|
states.loading ? (renderLoadingSkeleton()) : (index.h("div", { class: classes.CardContainer },
|
|
3621
3622
|
index.h("div", { class: classes.StatusContainer },
|
|
3622
3623
|
index.h("p", { class: classes.SubduedRegularText }, states.badgeStatus === "thresholdPayout"
|
|
@@ -3712,16 +3713,6 @@ const PayoutDetailsCard = class {
|
|
|
3712
3713
|
* @uiName Bank account field label
|
|
3713
3714
|
*/
|
|
3714
3715
|
this.accountText = "Account";
|
|
3715
|
-
/**
|
|
3716
|
-
* Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
|
|
3717
|
-
* @uiName Payout error message title
|
|
3718
|
-
*/
|
|
3719
|
-
this.errorTitleText = "Your payout is on hold ";
|
|
3720
|
-
/**
|
|
3721
|
-
* Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
|
|
3722
|
-
* @uiName Payout error message description
|
|
3723
|
-
*/
|
|
3724
|
-
this.errorDescriptionText = "If you’ve recently added your payout information, please wait while we verify your information. If it’s still on hold after a few days, please contact Support or check your inbox for an email from our referral program provider, impact.com.";
|
|
3725
3716
|
/**
|
|
3726
3717
|
* Text displayed for existing publishers that do not have saved banking information.
|
|
3727
3718
|
* @uiName Payout missing information subtext
|
|
@@ -3734,10 +3725,6 @@ const PayoutDetailsCard = class {
|
|
|
3734
3725
|
const props = utils.getProps(this);
|
|
3735
3726
|
return {
|
|
3736
3727
|
...props,
|
|
3737
|
-
error: {
|
|
3738
|
-
errorTitleText: this.errorTitleText,
|
|
3739
|
-
errorDescriptionText: this.errorDescriptionText,
|
|
3740
|
-
},
|
|
3741
3728
|
};
|
|
3742
3729
|
}
|
|
3743
3730
|
render() {
|
|
@@ -4906,17 +4893,43 @@ function useDemoTaxAndCash(props) {
|
|
|
4906
4893
|
}
|
|
4907
4894
|
|
|
4908
4895
|
const style$5 = {
|
|
4909
|
-
|
|
4896
|
+
ErrorAlertContainer: {
|
|
4910
4897
|
"&::part(base)": {
|
|
4911
4898
|
backgroundColor: "var(--sl-color-red-100)",
|
|
4912
4899
|
borderTop: "none",
|
|
4913
4900
|
},
|
|
4901
|
+
"& sl-icon::part(base)": {
|
|
4902
|
+
color: "var(--sl-color-danger-500)",
|
|
4903
|
+
},
|
|
4904
|
+
},
|
|
4905
|
+
WarningAlertContainer: {
|
|
4906
|
+
"&::part(base)": {
|
|
4907
|
+
backgroundColor: "var(--sl-color-yellow-100)",
|
|
4908
|
+
borderTop: "none",
|
|
4909
|
+
},
|
|
4910
|
+
"& sl-icon::part(base)": {
|
|
4911
|
+
color: "var(--sl-color-warning-500)",
|
|
4912
|
+
},
|
|
4913
|
+
},
|
|
4914
|
+
WarningHoldAlertContainer: {
|
|
4915
|
+
marginLeft: "-20px",
|
|
4916
|
+
"&::part(base)": {
|
|
4917
|
+
border: "none",
|
|
4918
|
+
backgroundColor: "transparent",
|
|
4919
|
+
},
|
|
4920
|
+
"& sl-icon::part(base)": {
|
|
4921
|
+
color: "var(--sl-color-warning-500)",
|
|
4922
|
+
},
|
|
4914
4923
|
},
|
|
4915
|
-
|
|
4924
|
+
ErrorHoldAlertContainer: {
|
|
4925
|
+
marginLeft: "-20px",
|
|
4916
4926
|
"&::part(base)": {
|
|
4917
4927
|
border: "none",
|
|
4918
4928
|
backgroundColor: "transparent",
|
|
4919
4929
|
},
|
|
4930
|
+
"& sl-icon::part(base)": {
|
|
4931
|
+
color: "var(--sl-color-danger-500)",
|
|
4932
|
+
},
|
|
4920
4933
|
},
|
|
4921
4934
|
ExpiringSoonAlertContainer: {
|
|
4922
4935
|
"&::part(base)": {
|
|
@@ -5069,8 +5082,56 @@ const style$5 = {
|
|
|
5069
5082
|
const sheet$4 = JSS.createStyleSheet(style$5);
|
|
5070
5083
|
const styleString$4 = sheet$4.toString();
|
|
5071
5084
|
const TaxAndCashDashboardView = (props) => {
|
|
5072
|
-
var _a;
|
|
5085
|
+
var _a, _b, _c, _d;
|
|
5073
5086
|
const { states, text, callbacks, slots } = props;
|
|
5087
|
+
function getAlert(status) {
|
|
5088
|
+
switch (status) {
|
|
5089
|
+
case "VERIFICATION:REQUIRED":
|
|
5090
|
+
return {
|
|
5091
|
+
header: text.verificationRequiredHeader,
|
|
5092
|
+
description: text.verificationRequiredDescription,
|
|
5093
|
+
buttonText: text.verificationRequiredButtonText,
|
|
5094
|
+
alertType: "warning",
|
|
5095
|
+
icon: "exclamation-triangle",
|
|
5096
|
+
class: sheet$4.classes.WarningHoldAlertContainer,
|
|
5097
|
+
};
|
|
5098
|
+
case "VERIFICATION:INTERNAL":
|
|
5099
|
+
return {
|
|
5100
|
+
header: text.verificationRequiredInternalHeader,
|
|
5101
|
+
description: text.verificationRequiredInternalDescription,
|
|
5102
|
+
alertType: "warning",
|
|
5103
|
+
icon: "exclamation-triangle",
|
|
5104
|
+
class: sheet$4.classes.WarningHoldAlertContainer,
|
|
5105
|
+
};
|
|
5106
|
+
case "VERIFICATION:REVIEW":
|
|
5107
|
+
return {
|
|
5108
|
+
header: text.verificationReviewInternalHeader,
|
|
5109
|
+
description: text.verificationReviewInternalDescription,
|
|
5110
|
+
alertType: "warning",
|
|
5111
|
+
icon: "exclamation-triangle",
|
|
5112
|
+
class: sheet$4.classes.WarningHoldAlertContainer,
|
|
5113
|
+
};
|
|
5114
|
+
case "VERIFICATION:FAILED":
|
|
5115
|
+
return {
|
|
5116
|
+
header: text.verificationFailedInternalHeader,
|
|
5117
|
+
description: text.verificationFailedInternalDescription,
|
|
5118
|
+
alertType: "critical",
|
|
5119
|
+
icon: "exclamation-octagon",
|
|
5120
|
+
class: sheet$4.classes.ErrorHoldAlertContainer,
|
|
5121
|
+
};
|
|
5122
|
+
case "HOLD":
|
|
5123
|
+
return {
|
|
5124
|
+
header: text.payoutHoldAlertHeader,
|
|
5125
|
+
description: text.payoutHoldAlertDescription,
|
|
5126
|
+
buttonText: null,
|
|
5127
|
+
alertType: "warning",
|
|
5128
|
+
icon: "exclamation-triangle",
|
|
5129
|
+
class: sheet$4.classes.WarningHoldAlertContainer,
|
|
5130
|
+
};
|
|
5131
|
+
default:
|
|
5132
|
+
return;
|
|
5133
|
+
}
|
|
5134
|
+
}
|
|
5074
5135
|
const statusMap = {
|
|
5075
5136
|
NOT_VERIFIED: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
5076
5137
|
index.h("sl-badge", { type: "warning", pill: true }, text.statusTextNotVerified),
|
|
@@ -5095,7 +5156,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5095
5156
|
index.h("p", null, text.invalidForm))),
|
|
5096
5157
|
};
|
|
5097
5158
|
const alertMap = {
|
|
5098
|
-
INACTIVE: (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.
|
|
5159
|
+
INACTIVE: (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.ErrorAlertContainer },
|
|
5099
5160
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5100
5161
|
index.h("strong", null, global.intl.formatMessage({
|
|
5101
5162
|
id: `taxAlertHeaderNotActive`,
|
|
@@ -5147,32 +5208,23 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5147
5208
|
index.h("div", null,
|
|
5148
5209
|
index.h("style", { type: "text/css" }, styleString$4),
|
|
5149
5210
|
states.loadingError && (index.h("div", null,
|
|
5150
|
-
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.
|
|
5211
|
+
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.ErrorAlertContainer },
|
|
5151
5212
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5152
5213
|
index.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
5153
5214
|
index.h("br", null),
|
|
5154
5215
|
text.error.loadingErrorAlertDescription))),
|
|
5155
|
-
((_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$4.classes.
|
|
5216
|
+
((_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$4.classes.ErrorAlertContainer },
|
|
5156
5217
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5157
5218
|
index.h("strong", null, text.error.generalTitle),
|
|
5158
5219
|
index.h("br", null),
|
|
5159
5220
|
text.error.generalDescription)),
|
|
5160
|
-
states.
|
|
5161
|
-
index.h("sl-icon", { slot: "icon", name:
|
|
5162
|
-
index.h("strong", null,
|
|
5163
|
-
index.h("
|
|
5164
|
-
|
|
5165
|
-
states.payoutStatus === "VERIFICATION_NEEDED" && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$4.classes.HoldAlertContainer },
|
|
5166
|
-
index.h("sl-icon", { slot: "icon", name: "exclamation-triangle" }),
|
|
5167
|
-
index.h("strong", null, text.verificationRequiredHeader),
|
|
5168
|
-
index.h("p", { style: { margin: "0" } }, text.verificationRequiredDescription),
|
|
5169
|
-
index.h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", loading: states.loading,
|
|
5221
|
+
states.payoutStatus && states.payoutStatus !== "DONE" && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", name: (_b = getAlert(states.payoutStatus)) === null || _b === void 0 ? void 0 : _b.alertType, open: true, class: (_c = getAlert(states.payoutStatus)) === null || _c === void 0 ? void 0 : _c.class },
|
|
5222
|
+
index.h("sl-icon", { slot: "icon", name: (_d = getAlert(states.payoutStatus)) === null || _d === void 0 ? void 0 : _d.icon }),
|
|
5223
|
+
index.h("strong", null, getAlert(states.payoutStatus).header),
|
|
5224
|
+
index.h("p", { style: { margin: "0" } }, getAlert(states.payoutStatus).description),
|
|
5225
|
+
getAlert(states.payoutStatus).buttonText && (index.h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", loading: states.loading,
|
|
5170
5226
|
//AL: TODO hooks
|
|
5171
|
-
onClick: () => callbacks.onClick },
|
|
5172
|
-
index.h("sl-dialog", { noDismiss: true, class: sheet$4.classes.Dialog, open: states.showVerifyIdentity, "onSl-hide": callbacks.onVerifyIdentityCancel },
|
|
5173
|
-
index.h("iframe", {
|
|
5174
|
-
// AL: TODO replace iframe URL with verification url when available
|
|
5175
|
-
scrolling: "yes", frameBorder: "0", width: "100%", height: "100%", src: "https://impacttech.complytaxforms.com/ServiceRedirect.aspx?Language=eng&Param1=UxBORV4bOIrqNb4gbpNmtvW3wjdZJyx4gPElIGMJNR8=&UUID=B576EA3E-80FD-4D85-AA59-653D23A7CCE8" })),
|
|
5227
|
+
onClick: () => callbacks.onClick }, getAlert(states.payoutStatus).buttonText)))),
|
|
5176
5228
|
index.h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$4.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
|
|
5177
5229
|
index.h("p", null, text.replaceTaxFormModalBodyText),
|
|
5178
5230
|
index.h("sl-button", { slot: "footer", type: "primary", class: sheet$4.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
|
|
@@ -5282,13 +5334,13 @@ const useTaxAndCashDashboard = (props) => {
|
|
|
5282
5334
|
const setStep = index_module.Sn(TAX_CONTEXT_NAMESPACE);
|
|
5283
5335
|
const setContext = index_module.Sn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
5284
5336
|
const [showDialog, setShowDialog] = stencilHooks_module.useState(false);
|
|
5285
|
-
const
|
|
5337
|
+
const { render, loading: veriffLoading, errors: veriffErrors, } = usePayoutStatus.useVeriffApp();
|
|
5286
5338
|
const locale = index_module.Q();
|
|
5287
5339
|
stencilHooks_module.useEffect(() => {
|
|
5288
5340
|
// Clear override context once on submitted
|
|
5289
5341
|
setContext({});
|
|
5290
5342
|
}, []);
|
|
5291
|
-
const { data, loading, errors: userError, } = index_module.qn(USER_QUERY_NAMESPACE);
|
|
5343
|
+
const { data, loading, errors: userError, refetch, } = index_module.qn(USER_QUERY_NAMESPACE);
|
|
5292
5344
|
const publisher = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
|
|
5293
5345
|
const documentType = publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType;
|
|
5294
5346
|
const submissionDate = (_c = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _c === void 0 ? void 0 : _c.dateCreated;
|
|
@@ -5313,7 +5365,14 @@ const useTaxAndCashDashboard = (props) => {
|
|
|
5313
5365
|
setStep("/3");
|
|
5314
5366
|
};
|
|
5315
5367
|
const provinceName = (_d = sqmInvoiceTableView.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;
|
|
5316
|
-
const payoutStatus = usePayoutStatus.getStatus(data);
|
|
5368
|
+
const payoutStatus = data ? usePayoutStatus.getStatus(data) : null;
|
|
5369
|
+
stencilHooks_module.useEffect(() => {
|
|
5370
|
+
const cb = () => refetch();
|
|
5371
|
+
window.addEventListener(usePayoutStatus.VERIFF_COMPLETE_EVENT_KEY, cb);
|
|
5372
|
+
return () => {
|
|
5373
|
+
window.removeEventListener(usePayoutStatus.VERIFF_COMPLETE_EVENT_KEY, cb);
|
|
5374
|
+
};
|
|
5375
|
+
}, []);
|
|
5317
5376
|
return {
|
|
5318
5377
|
states: {
|
|
5319
5378
|
dateSubmitted,
|
|
@@ -5337,14 +5396,14 @@ const useTaxAndCashDashboard = (props) => {
|
|
|
5337
5396
|
showNewFormDialog: showDialog,
|
|
5338
5397
|
hasHold: !!((_m = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _m === void 0 ? void 0 : _m.hold),
|
|
5339
5398
|
payoutStatus,
|
|
5340
|
-
|
|
5399
|
+
veriffLoading,
|
|
5341
5400
|
},
|
|
5342
5401
|
callbacks: {
|
|
5343
5402
|
onClick: () => setShowDialog(true),
|
|
5403
|
+
onVerifyClick: () => render(),
|
|
5344
5404
|
onEditPayoutInfo,
|
|
5345
5405
|
onNewFormCancel: () => setShowDialog(false),
|
|
5346
5406
|
onNewFormClick,
|
|
5347
|
-
onVerifyIdentityCancel: () => setShowVerification(false),
|
|
5348
5407
|
},
|
|
5349
5408
|
text: props.getTextProps(),
|
|
5350
5409
|
};
|
|
@@ -5540,6 +5599,30 @@ const TaxAndCashDashboard = class {
|
|
|
5540
5599
|
* @uiWidget textArea
|
|
5541
5600
|
*/
|
|
5542
5601
|
this.verificationRequiredDescription = "Complete your verification to start receiving your cash rewards. It should only take a few minutes verify.";
|
|
5602
|
+
/**
|
|
5603
|
+
* @uiName Verification required internal alert header
|
|
5604
|
+
*/
|
|
5605
|
+
this.verificationRequiredInternalHeader = "Identity Verification in Progress";
|
|
5606
|
+
/**
|
|
5607
|
+
* @uiName Verification required internal alert description
|
|
5608
|
+
*/
|
|
5609
|
+
this.verificationRequiredInternalDescription = "Identity verification submission has been received. Our system is currently performing additional checks and analyzing the results. You will be updated shortley.";
|
|
5610
|
+
/**
|
|
5611
|
+
* @uiName Verification review internal alert header
|
|
5612
|
+
*/
|
|
5613
|
+
this.verificationReviewInternalHeader = "Identity Verification Under Review";
|
|
5614
|
+
/**
|
|
5615
|
+
* @uiName Verification review internal alert description
|
|
5616
|
+
*/
|
|
5617
|
+
this.verificationReviewInternalDescription = "Identity verification requires further review due to a potential error. Our team is reviewing the information and will update you shortly.";
|
|
5618
|
+
/**
|
|
5619
|
+
* @uiName Verification failed internal alert header
|
|
5620
|
+
*/
|
|
5621
|
+
this.verificationFailedInternalHeader = "Identity Verification Unsuccessful";
|
|
5622
|
+
/**
|
|
5623
|
+
* @uiName Verification failed internal alert description
|
|
5624
|
+
*/
|
|
5625
|
+
this.verificationFailedInternalDescription = "Identity verification has failed. Our team is reviewing the report and will contact you with further information.";
|
|
5543
5626
|
/**
|
|
5544
5627
|
* Part of the alert displayed at the top of the page when the user needs to verify their identity.
|
|
5545
5628
|
* @uiName Verification required alert button text
|
|
@@ -5670,13 +5753,14 @@ function useDemoTaxAndCashDashboard(props) {
|
|
|
5670
5753
|
hasHold: false,
|
|
5671
5754
|
showVerifyIdentity: false,
|
|
5672
5755
|
payoutStatus: "DONE",
|
|
5756
|
+
veriffLoading: false,
|
|
5673
5757
|
},
|
|
5674
5758
|
callbacks: {
|
|
5675
5759
|
onClick: () => console.debug("check step"),
|
|
5676
5760
|
onEditPayoutInfo: () => console.debug("payout info"),
|
|
5677
5761
|
onNewFormCancel: () => console.log("hide"),
|
|
5678
5762
|
onNewFormClick: () => console.log("show"),
|
|
5679
|
-
|
|
5763
|
+
onVerifyClick: () => console.log("verify"),
|
|
5680
5764
|
},
|
|
5681
5765
|
text: props.getTextProps(),
|
|
5682
5766
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
@@ -21,7 +21,7 @@ const utilities = require('./utilities-f7de6c04.js');
|
|
|
21
21
|
const AsYouType = require('./AsYouType-6788393a.js');
|
|
22
22
|
const ShadowViewAddon = require('./ShadowViewAddon-040cffad.js');
|
|
23
23
|
require('./sqm-portal-container-view-990a85a3.js');
|
|
24
|
-
const usePayoutStatus = require('./usePayoutStatus-
|
|
24
|
+
const usePayoutStatus = require('./usePayoutStatus-5ac536a3.js');
|
|
25
25
|
|
|
26
26
|
const BigStat = class {
|
|
27
27
|
constructor(hostRef) {
|
|
@@ -1858,7 +1858,7 @@ function PayoutStatusAlertView(props) {
|
|
|
1858
1858
|
icon: "info-circle",
|
|
1859
1859
|
class: sheet$3.classes.InfoAlertContainer,
|
|
1860
1860
|
};
|
|
1861
|
-
case "
|
|
1861
|
+
case "VERIFICATION:REQUIRED":
|
|
1862
1862
|
return {
|
|
1863
1863
|
header: text.verificationRequiredHeader,
|
|
1864
1864
|
description: text.verificationRequiredDescription,
|
|
@@ -1867,6 +1867,30 @@ function PayoutStatusAlertView(props) {
|
|
|
1867
1867
|
icon: "exclamation-triangle",
|
|
1868
1868
|
class: sheet$3.classes.WarningAlertContainer,
|
|
1869
1869
|
};
|
|
1870
|
+
case "VERIFICATION:INTERNAL":
|
|
1871
|
+
return {
|
|
1872
|
+
header: text.verificationRequiredInternalHeader,
|
|
1873
|
+
description: text.verificationRequiredInternalDescription,
|
|
1874
|
+
alertType: "warning",
|
|
1875
|
+
icon: "exclamation-triangle",
|
|
1876
|
+
class: sheet$3.classes.WarningAlertContainer,
|
|
1877
|
+
};
|
|
1878
|
+
case "VERIFICATION:REVIEW":
|
|
1879
|
+
return {
|
|
1880
|
+
header: text.verificationReviewInternalHeader,
|
|
1881
|
+
description: text.verificationReviewInternalDescription,
|
|
1882
|
+
alertType: "warning",
|
|
1883
|
+
icon: "exclamation-triangle",
|
|
1884
|
+
class: sheet$3.classes.WarningAlertContainer,
|
|
1885
|
+
};
|
|
1886
|
+
case "VERIFICATION:FAILED":
|
|
1887
|
+
return {
|
|
1888
|
+
header: text.verificationFailedInternalHeader,
|
|
1889
|
+
description: text.verificationFailedInternalDescription,
|
|
1890
|
+
alertType: "critical",
|
|
1891
|
+
icon: "exclamation-octagon",
|
|
1892
|
+
class: sheet$3.classes.ErrorAlertContainer,
|
|
1893
|
+
};
|
|
1870
1894
|
case "HOLD":
|
|
1871
1895
|
return {
|
|
1872
1896
|
header: text.holdHeader,
|
|
@@ -1880,15 +1904,12 @@ function PayoutStatusAlertView(props) {
|
|
|
1880
1904
|
return;
|
|
1881
1905
|
}
|
|
1882
1906
|
}
|
|
1883
|
-
//AL: TODO hookup ID
|
|
1884
1907
|
function getButton(status) {
|
|
1885
1908
|
switch (status) {
|
|
1886
1909
|
case "INFORMATION_REQUIRED":
|
|
1887
1910
|
return data.type === "SquatchJS2" ? (index.h("sqm-scroll", { "scroll-tag-name": "sqm-tabs", "button-text": text.informationRequiredButtonText, "scroll-animation": "smooth" })) : data.type === "SquatchPortal" ? (index.h("sl-button", { type: "default", onClick: callbacks.onTermsClick }, text.informationRequiredButtonText)) : (index.h("sl-button", { type: "default" }, text.informationRequiredButtonText));
|
|
1888
|
-
case "
|
|
1889
|
-
return (index.h("sl-button", { type: "default", loading: states.
|
|
1890
|
-
//AL: TODO callback to open verification form
|
|
1891
|
-
onClick: () => callbacks.onClick }, text.verificationRequiredButtonText));
|
|
1911
|
+
case "VERIFICATION:REQUIRED":
|
|
1912
|
+
return (index.h("sl-button", { type: "default", loading: states.veriffLoading, onClick: callbacks.onClick }, text.verificationRequiredButtonText));
|
|
1892
1913
|
default:
|
|
1893
1914
|
return;
|
|
1894
1915
|
}
|
|
@@ -1899,11 +1920,7 @@ function PayoutStatusAlertView(props) {
|
|
|
1899
1920
|
index.h("sl-icon", { slot: "icon", name: (_c = getAlert(states.status)) === null || _c === void 0 ? void 0 : _c.icon }),
|
|
1900
1921
|
index.h("strong", null, (_d = getAlert(states.status)) === null || _d === void 0 ? void 0 : _d.header),
|
|
1901
1922
|
index.h("p", { class: sheet$3.classes.AlertDescriptionText }, (_e = getAlert(states.status)) === null || _e === void 0 ? void 0 : _e.description),
|
|
1902
|
-
getButton(states.status))
|
|
1903
|
-
index.h("sl-dialog", { noDismiss: true, class: sheet$3.classes.Dialog, open: states.showVerifyIdentity, "onSl-hide": callbacks.onCancel },
|
|
1904
|
-
index.h("iframe", {
|
|
1905
|
-
// AL: TODO replace iframe URL with verification url when available
|
|
1906
|
-
scrolling: "yes", frameBorder: "0", width: "100%", height: "100%", src: "https://impacttech.complytaxforms.com/ServiceRedirect.aspx?Language=eng&Param1=UxBORV4bOIrqNb4gbpNmtvW3wjdZJyx4gPElIGMJNR8=&UUID=B576EA3E-80FD-4D85-AA59-653D23A7CCE8" }))));
|
|
1923
|
+
getButton(states.status))));
|
|
1907
1924
|
}
|
|
1908
1925
|
|
|
1909
1926
|
const PayoutStatusAlert = class {
|
|
@@ -1933,14 +1950,39 @@ const PayoutStatusAlert = class {
|
|
|
1933
1950
|
* @uiName Verification required alert button text
|
|
1934
1951
|
*/
|
|
1935
1952
|
this.verificationRequiredButtonText = "Start Verification";
|
|
1953
|
+
/**
|
|
1954
|
+
* @uiName Verification required internal alert header
|
|
1955
|
+
*/
|
|
1956
|
+
this.verificationRequiredInternalHeader = "Identity Verification in Progress";
|
|
1957
|
+
/**
|
|
1958
|
+
* @uiName Verification required internal alert description
|
|
1959
|
+
*/
|
|
1960
|
+
this.verificationRequiredInternalDescription = "Identity verification submission has been received. Our system is currently performing additional checks and analyzing the results. You will be updated shortley.";
|
|
1961
|
+
/**
|
|
1962
|
+
* @uiName Verification review internal alert header
|
|
1963
|
+
*/
|
|
1964
|
+
this.verificationReviewInternalHeader = "Identity Verification Under Review";
|
|
1965
|
+
/**
|
|
1966
|
+
* @uiName Verification review internal alert description
|
|
1967
|
+
*/
|
|
1968
|
+
this.verificationReviewInternalDescription = "Identity verification requires further review due to a potential error. Our team is reviewing the information and will update you shortly.";
|
|
1969
|
+
/**
|
|
1970
|
+
* @uiName Verification failed internal alert header
|
|
1971
|
+
*/
|
|
1972
|
+
this.verificationFailedInternalHeader = "Identity Verification Unsuccessful";
|
|
1973
|
+
/**
|
|
1974
|
+
* @uiName Verification failed internal alert description
|
|
1975
|
+
*/
|
|
1976
|
+
this.verificationFailedInternalDescription = "Identity verification has failed. Our team is reviewing the report and will contact you with further information.";
|
|
1936
1977
|
/**
|
|
1937
1978
|
* @uiName Payout on hold alert header
|
|
1938
1979
|
*/
|
|
1939
1980
|
this.holdHeader = "Your payouts and account are on hold";
|
|
1940
1981
|
/**
|
|
1941
1982
|
* @uiName Payout on hold alert description
|
|
1983
|
+
* AL: TODO copy not finalized for support section
|
|
1942
1984
|
*/
|
|
1943
|
-
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
|
|
1985
|
+
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.";
|
|
1944
1986
|
/**
|
|
1945
1987
|
* @uiName Cash & Payouts Terms and Conditions url
|
|
1946
1988
|
*/
|
|
@@ -1963,7 +2005,6 @@ const PayoutStatusAlert = class {
|
|
|
1963
2005
|
const props = index_module.isDemo()
|
|
1964
2006
|
? useDemoPayoutStatusAlert(this)
|
|
1965
2007
|
: usePayoutStatus.usePayoutStatus(this);
|
|
1966
|
-
console.log({ props });
|
|
1967
2008
|
return index.h(PayoutStatusAlertView, Object.assign({}, props));
|
|
1968
2009
|
}
|
|
1969
2010
|
};
|
|
@@ -1980,7 +2021,6 @@ function useDemoPayoutStatusAlert(props) {
|
|
|
1980
2021
|
callbacks: {
|
|
1981
2022
|
onTermsClick: () => { },
|
|
1982
2023
|
onClick: () => console.log("show"),
|
|
1983
|
-
onCancel: () => console.log("hide"),
|
|
1984
2024
|
},
|
|
1985
2025
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
1986
2026
|
}
|
|
@@ -12,7 +12,7 @@ const JSS = require('./JSS-8503a151.js');
|
|
|
12
12
|
const utils = require('./utils-6847bc06.js');
|
|
13
13
|
const sqmTextSpanView = require('./sqm-text-span-view-e1cd9bd3.js');
|
|
14
14
|
const keys = require('./keys-cff24974.js');
|
|
15
|
-
const useVerificationEmail = require('./useVerificationEmail-
|
|
15
|
+
const useVerificationEmail = require('./useVerificationEmail-2eb28c2a.js');
|
|
16
16
|
|
|
17
17
|
const style = {
|
|
18
18
|
Wrapper: {
|
|
@@ -158,7 +158,7 @@ function useWidgetCodeVerification(props) {
|
|
|
158
158
|
const [codeRef, setCodeRef] = stencilHooks_module.useState(null);
|
|
159
159
|
const [validationError, setValidationError] = stencilHooks_module.useState(false);
|
|
160
160
|
const [emailError, setEmailError] = stencilHooks_module.useState(false);
|
|
161
|
-
const { initialized, send: [sendEmail, { loading: sendLoading, errors: sendErrors }], verify: [verifyEmail, { loading: verifyLoading, errors: verifyErrors }], } = useVerificationEmail.useVerificationEmail();
|
|
161
|
+
const { initialized, verificationEmail, send: [sendEmail, { loading: sendLoading, errors: sendErrors }], verify: [verifyEmail, { loading: verifyLoading, errors: verifyErrors }], } = useVerificationEmail.useVerificationEmail();
|
|
162
162
|
stencilHooks_module.useEffect(() => {
|
|
163
163
|
if (!codeRef)
|
|
164
164
|
return;
|
|
@@ -178,7 +178,7 @@ function useWidgetCodeVerification(props) {
|
|
|
178
178
|
if (!input)
|
|
179
179
|
return;
|
|
180
180
|
if (idx === codeElements.length - 1) {
|
|
181
|
-
e.target.value = input.slice(
|
|
181
|
+
e.target.value = input.slice(0, 1);
|
|
182
182
|
return;
|
|
183
183
|
}
|
|
184
184
|
if (input.length > 1) {
|
|
@@ -249,7 +249,7 @@ function useWidgetCodeVerification(props) {
|
|
|
249
249
|
codeWrapperRef: setCodeRef,
|
|
250
250
|
},
|
|
251
251
|
states: {
|
|
252
|
-
email,
|
|
252
|
+
email: verificationEmail,
|
|
253
253
|
emailResent,
|
|
254
254
|
resendError: sendErrors || verifyErrors,
|
|
255
255
|
initialiseLoading: !initialized,
|
|
@@ -10,7 +10,7 @@ const JSS = require('./JSS-8503a151.js');
|
|
|
10
10
|
const utils = require('./utils-6847bc06.js');
|
|
11
11
|
const sqmTextSpanView = require('./sqm-text-span-view-e1cd9bd3.js');
|
|
12
12
|
const keys = require('./keys-cff24974.js');
|
|
13
|
-
const useVerificationEmail = require('./useVerificationEmail-
|
|
13
|
+
const useVerificationEmail = require('./useVerificationEmail-2eb28c2a.js');
|
|
14
14
|
|
|
15
15
|
const UpsertUserEmailMutation = index_module.dist.gql `
|
|
16
16
|
mutation upsertUser($userInput: UserInput!) {
|