@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
|
@@ -12,9 +12,9 @@ import { u as useChildElements } from './useChildElements-fc84e640.js';
|
|
|
12
12
|
import { l as luxon } from './luxon-7600be8d.js';
|
|
13
13
|
import { g as generateUserError } from './useReferralTable-f6ffa103.js';
|
|
14
14
|
import { g as getProps, l as luxonLocale } from './utils-334c1e34.js';
|
|
15
|
-
import { t as taxTypeToName, v as validTaxDocument, a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, g as getCountryObj, O as OtherRegionSlotView, I as InvoiceTableView, E as ErrorView, L as LoadingView, c as vatLabels, G as GeneralLoadingView, f as formatErrorMessage, d as validateBillingField, o as objectIsFull, A as ADDRESS_REGIONS } from './sqm-invoice-table-view-
|
|
15
|
+
import { t as taxTypeToName, v as validTaxDocument, a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, g as getCountryObj, O as OtherRegionSlotView, I as InvoiceTableView, E as ErrorView, L as LoadingView, c as vatLabels, G as GeneralLoadingView, f as formatErrorMessage, d as validateBillingField, o as objectIsFull, A as ADDRESS_REGIONS } from './sqm-invoice-table-view-1f26f252.js';
|
|
16
16
|
import { b as VERIFICATION_EVENT_KEY } from './keys-db1897ae.js';
|
|
17
|
-
import { g as getStatus } from './usePayoutStatus-
|
|
17
|
+
import { T as TAX_FORM_UPDATED_EVENT_KEY, a as useVeriffApp, g as getStatus, V as VERIFF_COMPLETE_EVENT_KEY } from './usePayoutStatus-d613ff10.js';
|
|
18
18
|
import { e as extractProps } from './extractProps-ae1afbb3.js';
|
|
19
19
|
|
|
20
20
|
const TAX_CONTEXT_NAMESPACE = "sq:tax-and-cash";
|
|
@@ -1142,6 +1142,8 @@ function useBankingInfoForm(props) {
|
|
|
1142
1142
|
});
|
|
1143
1143
|
return;
|
|
1144
1144
|
}
|
|
1145
|
+
// Fire form change event
|
|
1146
|
+
window.dispatchEvent(new Event(TAX_FORM_UPDATED_EVENT_KEY));
|
|
1145
1147
|
await refetch();
|
|
1146
1148
|
setStep("/dashboard");
|
|
1147
1149
|
}
|
|
@@ -1560,13 +1562,13 @@ const BankingInfoForm = class {
|
|
|
1560
1562
|
}
|
|
1561
1563
|
return (h(Host, null, h(BankingInfoFormView, { callbacks: props.callbacks, text: props.text, states: props.states, refs: props.refs, slots: {
|
|
1562
1564
|
formInputsSlot: inputFields === null || inputFields === void 0 ? void 0 : inputFields.map(({ input }) => input),
|
|
1563
|
-
countryInputSlot: (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) && {
|
|
1565
|
+
countryInputSlot: (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) && {
|
|
1564
1566
|
class: "error-input",
|
|
1565
1567
|
helpText: getValidationErrorMessage({
|
|
1566
1568
|
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,
|
|
1567
1569
|
label: props.text.bankLocationLabel,
|
|
1568
1570
|
}),
|
|
1569
|
-
})), h("sl-input", { class: searchStyle.SearchInput, placeholder: this.searchForCountryText, onKeyDown: (e) => {
|
|
1571
|
+
})), h("sl-input", { disabled: props.states.saveLoading, class: searchStyle.SearchInput, placeholder: this.searchForCountryText, onKeyDown: (e) => {
|
|
1570
1572
|
// Stop shoelace intercepting key presses
|
|
1571
1573
|
e.stopPropagation();
|
|
1572
1574
|
}, "onSl-input": (e) => {
|
|
@@ -1577,21 +1579,21 @@ const BankingInfoForm = class {
|
|
|
1577
1579
|
}), (_f = (_e = props.states) === null || _e === void 0 ? void 0 : _e.allCountries) === null || _f === void 0 ? void 0 :
|
|
1578
1580
|
_f.map((c) => (h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName))))),
|
|
1579
1581
|
paymentMethodSlot: (h("sl-input", { key: "paymentMethod", label: props.text.paymentMethod, placeholder: props.states.paymentMethodFeeLabel, disabled: true })),
|
|
1580
|
-
paymentThresholdSelectSlot: (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) && {
|
|
1582
|
+
paymentThresholdSelectSlot: (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) && {
|
|
1581
1583
|
class: "error-input",
|
|
1582
1584
|
helpText: getValidationErrorMessage({
|
|
1583
1585
|
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,
|
|
1584
1586
|
label: props.text.paymentThresholdSelectLabel,
|
|
1585
1587
|
}),
|
|
1586
1588
|
})), props.states.thresholds.map((t) => (h("sl-menu-item", { value: t }, `${props.states.currency}${t}`))))),
|
|
1587
|
-
paymentFixedDaySelectSlot: (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) && {
|
|
1589
|
+
paymentFixedDaySelectSlot: (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) && {
|
|
1588
1590
|
class: "error-input",
|
|
1589
1591
|
helpText: getValidationErrorMessage({
|
|
1590
1592
|
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,
|
|
1591
1593
|
label: props.text.paymentDaySelectLabel,
|
|
1592
1594
|
}),
|
|
1593
1595
|
})), h("sl-menu-item", { value: "1" }, props.text.paymentDayFirstOfMonthLabelText), h("sl-menu-item", { value: "15" }, props.text.paymentDayFifteenthOfMonthLabelText))),
|
|
1594
|
-
paypalInputSlot: (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) && {
|
|
1596
|
+
paypalInputSlot: (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) && {
|
|
1595
1597
|
class: "error-input",
|
|
1596
1598
|
helpText: getValidationErrorMessage({
|
|
1597
1599
|
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,
|
|
@@ -1796,6 +1798,8 @@ function useDocusignForm(props) {
|
|
|
1796
1798
|
// @ts-expect-error: no data type for result
|
|
1797
1799
|
if (!result.completeImpactPublisherTaxDocument.success)
|
|
1798
1800
|
throw new Error();
|
|
1801
|
+
// Fire form change event
|
|
1802
|
+
window.dispatchEvent(new Event(TAX_FORM_UPDATED_EVENT_KEY));
|
|
1799
1803
|
setShowExitButton(true);
|
|
1800
1804
|
}
|
|
1801
1805
|
catch (e) {
|
|
@@ -2676,6 +2680,8 @@ function useIndirectTaxForm(props) {
|
|
|
2676
2680
|
const resultPublisher = (_e = (_d = (_c = result
|
|
2677
2681
|
.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;
|
|
2678
2682
|
const hasValidCurrentDocument = validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
|
|
2683
|
+
// Fire form change event
|
|
2684
|
+
window.dispatchEvent(new Event(TAX_FORM_UPDATED_EVENT_KEY));
|
|
2679
2685
|
if ((resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) &&
|
|
2680
2686
|
!hasValidCurrentDocument) {
|
|
2681
2687
|
// Go to docusign form
|
|
@@ -3608,11 +3614,6 @@ function PayoutDetailsCardView(props) {
|
|
|
3608
3614
|
});
|
|
3609
3615
|
return (h("div", { class: classes.Container },
|
|
3610
3616
|
h("style", { type: "text/css" }, styleString),
|
|
3611
|
-
states.error && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", class: classes.Alert, type: "warning", open: true },
|
|
3612
|
-
h("sl-icon", { slot: "icon", name: "exclamation-triangle" }),
|
|
3613
|
-
h("div", { class: classes.AlertContent },
|
|
3614
|
-
h("b", null, text.error.errorTitleText),
|
|
3615
|
-
text.error.errorDescriptionText))),
|
|
3616
3617
|
states.loading ? (renderLoadingSkeleton()) : (h("div", { class: classes.CardContainer },
|
|
3617
3618
|
h("div", { class: classes.StatusContainer },
|
|
3618
3619
|
h("p", { class: classes.SubduedRegularText }, states.badgeStatus === "thresholdPayout"
|
|
@@ -3708,16 +3709,6 @@ const PayoutDetailsCard = class {
|
|
|
3708
3709
|
* @uiName Bank account field label
|
|
3709
3710
|
*/
|
|
3710
3711
|
this.accountText = "Account";
|
|
3711
|
-
/**
|
|
3712
|
-
* Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
|
|
3713
|
-
* @uiName Payout error message title
|
|
3714
|
-
*/
|
|
3715
|
-
this.errorTitleText = "Your payout is on hold ";
|
|
3716
|
-
/**
|
|
3717
|
-
* Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
|
|
3718
|
-
* @uiName Payout error message description
|
|
3719
|
-
*/
|
|
3720
|
-
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.";
|
|
3721
3712
|
/**
|
|
3722
3713
|
* Text displayed for existing publishers that do not have saved banking information.
|
|
3723
3714
|
* @uiName Payout missing information subtext
|
|
@@ -3730,10 +3721,6 @@ const PayoutDetailsCard = class {
|
|
|
3730
3721
|
const props = getProps(this);
|
|
3731
3722
|
return {
|
|
3732
3723
|
...props,
|
|
3733
|
-
error: {
|
|
3734
|
-
errorTitleText: this.errorTitleText,
|
|
3735
|
-
errorDescriptionText: this.errorDescriptionText,
|
|
3736
|
-
},
|
|
3737
3724
|
};
|
|
3738
3725
|
}
|
|
3739
3726
|
render() {
|
|
@@ -4902,17 +4889,43 @@ function useDemoTaxAndCash(props) {
|
|
|
4902
4889
|
}
|
|
4903
4890
|
|
|
4904
4891
|
const style$5 = {
|
|
4905
|
-
|
|
4892
|
+
ErrorAlertContainer: {
|
|
4906
4893
|
"&::part(base)": {
|
|
4907
4894
|
backgroundColor: "var(--sl-color-red-100)",
|
|
4908
4895
|
borderTop: "none",
|
|
4909
4896
|
},
|
|
4897
|
+
"& sl-icon::part(base)": {
|
|
4898
|
+
color: "var(--sl-color-danger-500)",
|
|
4899
|
+
},
|
|
4900
|
+
},
|
|
4901
|
+
WarningAlertContainer: {
|
|
4902
|
+
"&::part(base)": {
|
|
4903
|
+
backgroundColor: "var(--sl-color-yellow-100)",
|
|
4904
|
+
borderTop: "none",
|
|
4905
|
+
},
|
|
4906
|
+
"& sl-icon::part(base)": {
|
|
4907
|
+
color: "var(--sl-color-warning-500)",
|
|
4908
|
+
},
|
|
4909
|
+
},
|
|
4910
|
+
WarningHoldAlertContainer: {
|
|
4911
|
+
marginLeft: "-20px",
|
|
4912
|
+
"&::part(base)": {
|
|
4913
|
+
border: "none",
|
|
4914
|
+
backgroundColor: "transparent",
|
|
4915
|
+
},
|
|
4916
|
+
"& sl-icon::part(base)": {
|
|
4917
|
+
color: "var(--sl-color-warning-500)",
|
|
4918
|
+
},
|
|
4910
4919
|
},
|
|
4911
|
-
|
|
4920
|
+
ErrorHoldAlertContainer: {
|
|
4921
|
+
marginLeft: "-20px",
|
|
4912
4922
|
"&::part(base)": {
|
|
4913
4923
|
border: "none",
|
|
4914
4924
|
backgroundColor: "transparent",
|
|
4915
4925
|
},
|
|
4926
|
+
"& sl-icon::part(base)": {
|
|
4927
|
+
color: "var(--sl-color-danger-500)",
|
|
4928
|
+
},
|
|
4916
4929
|
},
|
|
4917
4930
|
ExpiringSoonAlertContainer: {
|
|
4918
4931
|
"&::part(base)": {
|
|
@@ -5065,8 +5078,56 @@ const style$5 = {
|
|
|
5065
5078
|
const sheet$4 = createStyleSheet(style$5);
|
|
5066
5079
|
const styleString$4 = sheet$4.toString();
|
|
5067
5080
|
const TaxAndCashDashboardView = (props) => {
|
|
5068
|
-
var _a;
|
|
5081
|
+
var _a, _b, _c, _d;
|
|
5069
5082
|
const { states, text, callbacks, slots } = props;
|
|
5083
|
+
function getAlert(status) {
|
|
5084
|
+
switch (status) {
|
|
5085
|
+
case "VERIFICATION:REQUIRED":
|
|
5086
|
+
return {
|
|
5087
|
+
header: text.verificationRequiredHeader,
|
|
5088
|
+
description: text.verificationRequiredDescription,
|
|
5089
|
+
buttonText: text.verificationRequiredButtonText,
|
|
5090
|
+
alertType: "warning",
|
|
5091
|
+
icon: "exclamation-triangle",
|
|
5092
|
+
class: sheet$4.classes.WarningHoldAlertContainer,
|
|
5093
|
+
};
|
|
5094
|
+
case "VERIFICATION:INTERNAL":
|
|
5095
|
+
return {
|
|
5096
|
+
header: text.verificationRequiredInternalHeader,
|
|
5097
|
+
description: text.verificationRequiredInternalDescription,
|
|
5098
|
+
alertType: "warning",
|
|
5099
|
+
icon: "exclamation-triangle",
|
|
5100
|
+
class: sheet$4.classes.WarningHoldAlertContainer,
|
|
5101
|
+
};
|
|
5102
|
+
case "VERIFICATION:REVIEW":
|
|
5103
|
+
return {
|
|
5104
|
+
header: text.verificationReviewInternalHeader,
|
|
5105
|
+
description: text.verificationReviewInternalDescription,
|
|
5106
|
+
alertType: "warning",
|
|
5107
|
+
icon: "exclamation-triangle",
|
|
5108
|
+
class: sheet$4.classes.WarningHoldAlertContainer,
|
|
5109
|
+
};
|
|
5110
|
+
case "VERIFICATION:FAILED":
|
|
5111
|
+
return {
|
|
5112
|
+
header: text.verificationFailedInternalHeader,
|
|
5113
|
+
description: text.verificationFailedInternalDescription,
|
|
5114
|
+
alertType: "critical",
|
|
5115
|
+
icon: "exclamation-octagon",
|
|
5116
|
+
class: sheet$4.classes.ErrorHoldAlertContainer,
|
|
5117
|
+
};
|
|
5118
|
+
case "HOLD":
|
|
5119
|
+
return {
|
|
5120
|
+
header: text.payoutHoldAlertHeader,
|
|
5121
|
+
description: text.payoutHoldAlertDescription,
|
|
5122
|
+
buttonText: null,
|
|
5123
|
+
alertType: "warning",
|
|
5124
|
+
icon: "exclamation-triangle",
|
|
5125
|
+
class: sheet$4.classes.WarningHoldAlertContainer,
|
|
5126
|
+
};
|
|
5127
|
+
default:
|
|
5128
|
+
return;
|
|
5129
|
+
}
|
|
5130
|
+
}
|
|
5070
5131
|
const statusMap = {
|
|
5071
5132
|
NOT_VERIFIED: (h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
5072
5133
|
h("sl-badge", { type: "warning", pill: true }, text.statusTextNotVerified),
|
|
@@ -5091,7 +5152,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5091
5152
|
h("p", null, text.invalidForm))),
|
|
5092
5153
|
};
|
|
5093
5154
|
const alertMap = {
|
|
5094
|
-
INACTIVE: (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.
|
|
5155
|
+
INACTIVE: (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.ErrorAlertContainer },
|
|
5095
5156
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5096
5157
|
h("strong", null, intl.formatMessage({
|
|
5097
5158
|
id: `taxAlertHeaderNotActive`,
|
|
@@ -5143,32 +5204,23 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5143
5204
|
h("div", null,
|
|
5144
5205
|
h("style", { type: "text/css" }, styleString$4),
|
|
5145
5206
|
states.loadingError && (h("div", null,
|
|
5146
|
-
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.
|
|
5207
|
+
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.ErrorAlertContainer },
|
|
5147
5208
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5148
5209
|
h("strong", null, text.error.loadingErrorAlertHeader),
|
|
5149
5210
|
h("br", null),
|
|
5150
5211
|
text.error.loadingErrorAlertDescription))),
|
|
5151
|
-
((_a = states.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.
|
|
5212
|
+
((_a = states.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.ErrorAlertContainer },
|
|
5152
5213
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5153
5214
|
h("strong", null, text.error.generalTitle),
|
|
5154
5215
|
h("br", null),
|
|
5155
5216
|
text.error.generalDescription)),
|
|
5156
|
-
states.
|
|
5157
|
-
h("sl-icon", { slot: "icon", name:
|
|
5158
|
-
h("strong", null,
|
|
5159
|
-
h("
|
|
5160
|
-
|
|
5161
|
-
states.payoutStatus === "VERIFICATION_NEEDED" && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$4.classes.HoldAlertContainer },
|
|
5162
|
-
h("sl-icon", { slot: "icon", name: "exclamation-triangle" }),
|
|
5163
|
-
h("strong", null, text.verificationRequiredHeader),
|
|
5164
|
-
h("p", { style: { margin: "0" } }, text.verificationRequiredDescription),
|
|
5165
|
-
h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", loading: states.loading,
|
|
5217
|
+
states.payoutStatus && states.payoutStatus !== "DONE" && (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 },
|
|
5218
|
+
h("sl-icon", { slot: "icon", name: (_d = getAlert(states.payoutStatus)) === null || _d === void 0 ? void 0 : _d.icon }),
|
|
5219
|
+
h("strong", null, getAlert(states.payoutStatus).header),
|
|
5220
|
+
h("p", { style: { margin: "0" } }, getAlert(states.payoutStatus).description),
|
|
5221
|
+
getAlert(states.payoutStatus).buttonText && (h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", loading: states.loading,
|
|
5166
5222
|
//AL: TODO hooks
|
|
5167
|
-
onClick: () => callbacks.onClick },
|
|
5168
|
-
h("sl-dialog", { noDismiss: true, class: sheet$4.classes.Dialog, open: states.showVerifyIdentity, "onSl-hide": callbacks.onVerifyIdentityCancel },
|
|
5169
|
-
h("iframe", {
|
|
5170
|
-
// AL: TODO replace iframe URL with verification url when available
|
|
5171
|
-
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" })),
|
|
5223
|
+
onClick: () => callbacks.onClick }, getAlert(states.payoutStatus).buttonText)))),
|
|
5172
5224
|
h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$4.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
|
|
5173
5225
|
h("p", null, text.replaceTaxFormModalBodyText),
|
|
5174
5226
|
h("sl-button", { slot: "footer", type: "primary", class: sheet$4.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
|
|
@@ -5278,13 +5330,13 @@ const useTaxAndCashDashboard = (props) => {
|
|
|
5278
5330
|
const setStep = Sn(TAX_CONTEXT_NAMESPACE);
|
|
5279
5331
|
const setContext = Sn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
5280
5332
|
const [showDialog, setShowDialog] = useState(false);
|
|
5281
|
-
const
|
|
5333
|
+
const { render, loading: veriffLoading, errors: veriffErrors, } = useVeriffApp();
|
|
5282
5334
|
const locale = Q();
|
|
5283
5335
|
useEffect(() => {
|
|
5284
5336
|
// Clear override context once on submitted
|
|
5285
5337
|
setContext({});
|
|
5286
5338
|
}, []);
|
|
5287
|
-
const { data, loading, errors: userError, } = qn(USER_QUERY_NAMESPACE);
|
|
5339
|
+
const { data, loading, errors: userError, refetch, } = qn(USER_QUERY_NAMESPACE);
|
|
5288
5340
|
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;
|
|
5289
5341
|
const documentType = publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType;
|
|
5290
5342
|
const submissionDate = (_c = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _c === void 0 ? void 0 : _c.dateCreated;
|
|
@@ -5309,7 +5361,14 @@ const useTaxAndCashDashboard = (props) => {
|
|
|
5309
5361
|
setStep("/3");
|
|
5310
5362
|
};
|
|
5311
5363
|
const provinceName = (_d = 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;
|
|
5312
|
-
const payoutStatus = getStatus(data);
|
|
5364
|
+
const payoutStatus = data ? getStatus(data) : null;
|
|
5365
|
+
useEffect(() => {
|
|
5366
|
+
const cb = () => refetch();
|
|
5367
|
+
window.addEventListener(VERIFF_COMPLETE_EVENT_KEY, cb);
|
|
5368
|
+
return () => {
|
|
5369
|
+
window.removeEventListener(VERIFF_COMPLETE_EVENT_KEY, cb);
|
|
5370
|
+
};
|
|
5371
|
+
}, []);
|
|
5313
5372
|
return {
|
|
5314
5373
|
states: {
|
|
5315
5374
|
dateSubmitted,
|
|
@@ -5333,14 +5392,14 @@ const useTaxAndCashDashboard = (props) => {
|
|
|
5333
5392
|
showNewFormDialog: showDialog,
|
|
5334
5393
|
hasHold: !!((_m = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _m === void 0 ? void 0 : _m.hold),
|
|
5335
5394
|
payoutStatus,
|
|
5336
|
-
|
|
5395
|
+
veriffLoading,
|
|
5337
5396
|
},
|
|
5338
5397
|
callbacks: {
|
|
5339
5398
|
onClick: () => setShowDialog(true),
|
|
5399
|
+
onVerifyClick: () => render(),
|
|
5340
5400
|
onEditPayoutInfo,
|
|
5341
5401
|
onNewFormCancel: () => setShowDialog(false),
|
|
5342
5402
|
onNewFormClick,
|
|
5343
|
-
onVerifyIdentityCancel: () => setShowVerification(false),
|
|
5344
5403
|
},
|
|
5345
5404
|
text: props.getTextProps(),
|
|
5346
5405
|
};
|
|
@@ -5536,6 +5595,30 @@ const TaxAndCashDashboard = class {
|
|
|
5536
5595
|
* @uiWidget textArea
|
|
5537
5596
|
*/
|
|
5538
5597
|
this.verificationRequiredDescription = "Complete your verification to start receiving your cash rewards. It should only take a few minutes verify.";
|
|
5598
|
+
/**
|
|
5599
|
+
* @uiName Verification required internal alert header
|
|
5600
|
+
*/
|
|
5601
|
+
this.verificationRequiredInternalHeader = "Identity Verification in Progress";
|
|
5602
|
+
/**
|
|
5603
|
+
* @uiName Verification required internal alert description
|
|
5604
|
+
*/
|
|
5605
|
+
this.verificationRequiredInternalDescription = "Identity verification submission has been received. Our system is currently performing additional checks and analyzing the results. You will be updated shortley.";
|
|
5606
|
+
/**
|
|
5607
|
+
* @uiName Verification review internal alert header
|
|
5608
|
+
*/
|
|
5609
|
+
this.verificationReviewInternalHeader = "Identity Verification Under Review";
|
|
5610
|
+
/**
|
|
5611
|
+
* @uiName Verification review internal alert description
|
|
5612
|
+
*/
|
|
5613
|
+
this.verificationReviewInternalDescription = "Identity verification requires further review due to a potential error. Our team is reviewing the information and will update you shortly.";
|
|
5614
|
+
/**
|
|
5615
|
+
* @uiName Verification failed internal alert header
|
|
5616
|
+
*/
|
|
5617
|
+
this.verificationFailedInternalHeader = "Identity Verification Unsuccessful";
|
|
5618
|
+
/**
|
|
5619
|
+
* @uiName Verification failed internal alert description
|
|
5620
|
+
*/
|
|
5621
|
+
this.verificationFailedInternalDescription = "Identity verification has failed. Our team is reviewing the report and will contact you with further information.";
|
|
5539
5622
|
/**
|
|
5540
5623
|
* Part of the alert displayed at the top of the page when the user needs to verify their identity.
|
|
5541
5624
|
* @uiName Verification required alert button text
|
|
@@ -5666,13 +5749,14 @@ function useDemoTaxAndCashDashboard(props) {
|
|
|
5666
5749
|
hasHold: false,
|
|
5667
5750
|
showVerifyIdentity: false,
|
|
5668
5751
|
payoutStatus: "DONE",
|
|
5752
|
+
veriffLoading: false,
|
|
5669
5753
|
},
|
|
5670
5754
|
callbacks: {
|
|
5671
5755
|
onClick: () => console.debug("check step"),
|
|
5672
5756
|
onEditPayoutInfo: () => console.debug("payout info"),
|
|
5673
5757
|
onNewFormCancel: () => console.log("hide"),
|
|
5674
5758
|
onNewFormClick: () => console.log("show"),
|
|
5675
|
-
|
|
5759
|
+
onVerifyClick: () => console.log("verify"),
|
|
5676
5760
|
},
|
|
5677
5761
|
text: props.getTextProps(),
|
|
5678
5762
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
@@ -17,7 +17,7 @@ import { i as isEmpty } from './utilities-443732be.js';
|
|
|
17
17
|
import { A as AsYouType } from './AsYouType-46f67d0d.js';
|
|
18
18
|
import { b as useDemoBigStat, V as useBigStat, B as BigStatView, Q as autoColorScaleCss, K as CardFeedView, j as CheckboxFieldView, M as CouponCodeView, D as DropdownFieldView, E as EditProfileView, H as HeroView, I as InputFieldView, W as withShadowView, L as LeaderboardView, N as NameFieldsView, d as PortalChangePasswordView, i as PortalFooterView, P as PortalFrameView, e as PortalLoginView, f as PortalRegisterView, R as ReferralIframeView, X as demoRewardExchange, k as RewardExchangeView, a as useShareButton, S as ShareButtonView, C as CopyTextView, u as useShareLink, c as StatContainerView, T as TaskCardView } from './ShadowViewAddon-69b61037.js';
|
|
19
19
|
import './sqm-portal-container-view-6c582684.js';
|
|
20
|
-
import { u as usePayoutStatus } from './usePayoutStatus-
|
|
20
|
+
import { u as usePayoutStatus } from './usePayoutStatus-d613ff10.js';
|
|
21
21
|
|
|
22
22
|
const BigStat = class {
|
|
23
23
|
constructor(hostRef) {
|
|
@@ -1854,7 +1854,7 @@ function PayoutStatusAlertView(props) {
|
|
|
1854
1854
|
icon: "info-circle",
|
|
1855
1855
|
class: sheet$3.classes.InfoAlertContainer,
|
|
1856
1856
|
};
|
|
1857
|
-
case "
|
|
1857
|
+
case "VERIFICATION:REQUIRED":
|
|
1858
1858
|
return {
|
|
1859
1859
|
header: text.verificationRequiredHeader,
|
|
1860
1860
|
description: text.verificationRequiredDescription,
|
|
@@ -1863,6 +1863,30 @@ function PayoutStatusAlertView(props) {
|
|
|
1863
1863
|
icon: "exclamation-triangle",
|
|
1864
1864
|
class: sheet$3.classes.WarningAlertContainer,
|
|
1865
1865
|
};
|
|
1866
|
+
case "VERIFICATION:INTERNAL":
|
|
1867
|
+
return {
|
|
1868
|
+
header: text.verificationRequiredInternalHeader,
|
|
1869
|
+
description: text.verificationRequiredInternalDescription,
|
|
1870
|
+
alertType: "warning",
|
|
1871
|
+
icon: "exclamation-triangle",
|
|
1872
|
+
class: sheet$3.classes.WarningAlertContainer,
|
|
1873
|
+
};
|
|
1874
|
+
case "VERIFICATION:REVIEW":
|
|
1875
|
+
return {
|
|
1876
|
+
header: text.verificationReviewInternalHeader,
|
|
1877
|
+
description: text.verificationReviewInternalDescription,
|
|
1878
|
+
alertType: "warning",
|
|
1879
|
+
icon: "exclamation-triangle",
|
|
1880
|
+
class: sheet$3.classes.WarningAlertContainer,
|
|
1881
|
+
};
|
|
1882
|
+
case "VERIFICATION:FAILED":
|
|
1883
|
+
return {
|
|
1884
|
+
header: text.verificationFailedInternalHeader,
|
|
1885
|
+
description: text.verificationFailedInternalDescription,
|
|
1886
|
+
alertType: "critical",
|
|
1887
|
+
icon: "exclamation-octagon",
|
|
1888
|
+
class: sheet$3.classes.ErrorAlertContainer,
|
|
1889
|
+
};
|
|
1866
1890
|
case "HOLD":
|
|
1867
1891
|
return {
|
|
1868
1892
|
header: text.holdHeader,
|
|
@@ -1876,15 +1900,12 @@ function PayoutStatusAlertView(props) {
|
|
|
1876
1900
|
return;
|
|
1877
1901
|
}
|
|
1878
1902
|
}
|
|
1879
|
-
//AL: TODO hookup ID
|
|
1880
1903
|
function getButton(status) {
|
|
1881
1904
|
switch (status) {
|
|
1882
1905
|
case "INFORMATION_REQUIRED":
|
|
1883
1906
|
return data.type === "SquatchJS2" ? (h$1("sqm-scroll", { "scroll-tag-name": "sqm-tabs", "button-text": text.informationRequiredButtonText, "scroll-animation": "smooth" })) : data.type === "SquatchPortal" ? (h$1("sl-button", { type: "default", onClick: callbacks.onTermsClick }, text.informationRequiredButtonText)) : (h$1("sl-button", { type: "default" }, text.informationRequiredButtonText));
|
|
1884
|
-
case "
|
|
1885
|
-
return (h$1("sl-button", { type: "default", loading: states.
|
|
1886
|
-
//AL: TODO callback to open verification form
|
|
1887
|
-
onClick: () => callbacks.onClick }, text.verificationRequiredButtonText));
|
|
1907
|
+
case "VERIFICATION:REQUIRED":
|
|
1908
|
+
return (h$1("sl-button", { type: "default", loading: states.veriffLoading, onClick: callbacks.onClick }, text.verificationRequiredButtonText));
|
|
1888
1909
|
default:
|
|
1889
1910
|
return;
|
|
1890
1911
|
}
|
|
@@ -1895,11 +1916,7 @@ function PayoutStatusAlertView(props) {
|
|
|
1895
1916
|
h$1("sl-icon", { slot: "icon", name: (_c = getAlert(states.status)) === null || _c === void 0 ? void 0 : _c.icon }),
|
|
1896
1917
|
h$1("strong", null, (_d = getAlert(states.status)) === null || _d === void 0 ? void 0 : _d.header),
|
|
1897
1918
|
h$1("p", { class: sheet$3.classes.AlertDescriptionText }, (_e = getAlert(states.status)) === null || _e === void 0 ? void 0 : _e.description),
|
|
1898
|
-
getButton(states.status))
|
|
1899
|
-
h$1("sl-dialog", { noDismiss: true, class: sheet$3.classes.Dialog, open: states.showVerifyIdentity, "onSl-hide": callbacks.onCancel },
|
|
1900
|
-
h$1("iframe", {
|
|
1901
|
-
// AL: TODO replace iframe URL with verification url when available
|
|
1902
|
-
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" }))));
|
|
1919
|
+
getButton(states.status))));
|
|
1903
1920
|
}
|
|
1904
1921
|
|
|
1905
1922
|
const PayoutStatusAlert = class {
|
|
@@ -1929,14 +1946,39 @@ const PayoutStatusAlert = class {
|
|
|
1929
1946
|
* @uiName Verification required alert button text
|
|
1930
1947
|
*/
|
|
1931
1948
|
this.verificationRequiredButtonText = "Start Verification";
|
|
1949
|
+
/**
|
|
1950
|
+
* @uiName Verification required internal alert header
|
|
1951
|
+
*/
|
|
1952
|
+
this.verificationRequiredInternalHeader = "Identity Verification in Progress";
|
|
1953
|
+
/**
|
|
1954
|
+
* @uiName Verification required internal alert description
|
|
1955
|
+
*/
|
|
1956
|
+
this.verificationRequiredInternalDescription = "Identity verification submission has been received. Our system is currently performing additional checks and analyzing the results. You will be updated shortley.";
|
|
1957
|
+
/**
|
|
1958
|
+
* @uiName Verification review internal alert header
|
|
1959
|
+
*/
|
|
1960
|
+
this.verificationReviewInternalHeader = "Identity Verification Under Review";
|
|
1961
|
+
/**
|
|
1962
|
+
* @uiName Verification review internal alert description
|
|
1963
|
+
*/
|
|
1964
|
+
this.verificationReviewInternalDescription = "Identity verification requires further review due to a potential error. Our team is reviewing the information and will update you shortly.";
|
|
1965
|
+
/**
|
|
1966
|
+
* @uiName Verification failed internal alert header
|
|
1967
|
+
*/
|
|
1968
|
+
this.verificationFailedInternalHeader = "Identity Verification Unsuccessful";
|
|
1969
|
+
/**
|
|
1970
|
+
* @uiName Verification failed internal alert description
|
|
1971
|
+
*/
|
|
1972
|
+
this.verificationFailedInternalDescription = "Identity verification has failed. Our team is reviewing the report and will contact you with further information.";
|
|
1932
1973
|
/**
|
|
1933
1974
|
* @uiName Payout on hold alert header
|
|
1934
1975
|
*/
|
|
1935
1976
|
this.holdHeader = "Your payouts and account are on hold";
|
|
1936
1977
|
/**
|
|
1937
1978
|
* @uiName Payout on hold alert description
|
|
1979
|
+
* AL: TODO copy not finalized for support section
|
|
1938
1980
|
*/
|
|
1939
|
-
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
|
|
1981
|
+
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.";
|
|
1940
1982
|
/**
|
|
1941
1983
|
* @uiName Cash & Payouts Terms and Conditions url
|
|
1942
1984
|
*/
|
|
@@ -1959,7 +2001,6 @@ const PayoutStatusAlert = class {
|
|
|
1959
2001
|
const props = isDemo()
|
|
1960
2002
|
? useDemoPayoutStatusAlert(this)
|
|
1961
2003
|
: usePayoutStatus(this);
|
|
1962
|
-
console.log({ props });
|
|
1963
2004
|
return h$1(PayoutStatusAlertView, Object.assign({}, props));
|
|
1964
2005
|
}
|
|
1965
2006
|
};
|
|
@@ -1976,7 +2017,6 @@ function useDemoPayoutStatusAlert(props) {
|
|
|
1976
2017
|
callbacks: {
|
|
1977
2018
|
onTermsClick: () => { },
|
|
1978
2019
|
onClick: () => console.log("show"),
|
|
1979
|
-
onCancel: () => console.log("hide"),
|
|
1980
2020
|
},
|
|
1981
2021
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
1982
2022
|
}
|
|
@@ -8,7 +8,7 @@ import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
|
8
8
|
import { g as getProps } from './utils-334c1e34.js';
|
|
9
9
|
import { T as TextSpanView } from './sqm-text-span-view-8d140661.js';
|
|
10
10
|
import { a as VERIFICATION_EMAIL_NAMESPACE, S as SHOW_CODE_NAMESPACE, V as VERIFICATION_PARENT_NAMESPACE } from './keys-db1897ae.js';
|
|
11
|
-
import { u as useVerificationEmail } from './useVerificationEmail-
|
|
11
|
+
import { u as useVerificationEmail } from './useVerificationEmail-2a21d0e3.js';
|
|
12
12
|
|
|
13
13
|
const style = {
|
|
14
14
|
Wrapper: {
|
|
@@ -154,7 +154,7 @@ function useWidgetCodeVerification(props) {
|
|
|
154
154
|
const [codeRef, setCodeRef] = useState(null);
|
|
155
155
|
const [validationError, setValidationError] = useState(false);
|
|
156
156
|
const [emailError, setEmailError] = useState(false);
|
|
157
|
-
const { initialized, send: [sendEmail, { loading: sendLoading, errors: sendErrors }], verify: [verifyEmail, { loading: verifyLoading, errors: verifyErrors }], } = useVerificationEmail();
|
|
157
|
+
const { initialized, verificationEmail, send: [sendEmail, { loading: sendLoading, errors: sendErrors }], verify: [verifyEmail, { loading: verifyLoading, errors: verifyErrors }], } = useVerificationEmail();
|
|
158
158
|
useEffect(() => {
|
|
159
159
|
if (!codeRef)
|
|
160
160
|
return;
|
|
@@ -174,7 +174,7 @@ function useWidgetCodeVerification(props) {
|
|
|
174
174
|
if (!input)
|
|
175
175
|
return;
|
|
176
176
|
if (idx === codeElements.length - 1) {
|
|
177
|
-
e.target.value = input.slice(
|
|
177
|
+
e.target.value = input.slice(0, 1);
|
|
178
178
|
return;
|
|
179
179
|
}
|
|
180
180
|
if (input.length > 1) {
|
|
@@ -245,7 +245,7 @@ function useWidgetCodeVerification(props) {
|
|
|
245
245
|
codeWrapperRef: setCodeRef,
|
|
246
246
|
},
|
|
247
247
|
states: {
|
|
248
|
-
email,
|
|
248
|
+
email: verificationEmail,
|
|
249
249
|
emailResent,
|
|
250
250
|
resendError: sendErrors || verifyErrors,
|
|
251
251
|
initialiseLoading: !initialized,
|
|
@@ -6,7 +6,7 @@ import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
|
6
6
|
import { g as getProps } from './utils-334c1e34.js';
|
|
7
7
|
import { T as TextSpanView } from './sqm-text-span-view-8d140661.js';
|
|
8
8
|
import { S as SHOW_CODE_NAMESPACE, a as VERIFICATION_EMAIL_NAMESPACE } from './keys-db1897ae.js';
|
|
9
|
-
import { u as useVerificationEmail } from './useVerificationEmail-
|
|
9
|
+
import { u as useVerificationEmail } from './useVerificationEmail-2a21d0e3.js';
|
|
10
10
|
|
|
11
11
|
const UpsertUserEmailMutation = dist.gql `
|
|
12
12
|
mutation upsertUser($userInput: UserInput!) {
|