@saasquatch/mint-components 1.14.3 → 1.14.4
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_17.cjs.entry.js +158 -5
- package/dist/cjs/{sqm-invoice-table-view-16ac73d0.js → sqm-invoice-table-view-0f7fa309.js} +17 -0
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +509 -893
- package/dist/collection/components/tax-and-cash/BankingForm.stories.js +12 -0
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +16 -0
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/formDefinitions.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +36 -1
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +106 -3
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +7 -0
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +38 -0
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +79 -1
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +4 -0
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +205 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/sqm-banking-info-form_17.entry.js +158 -5
- package/dist/esm/{sqm-invoice-table-view-2c726568.js → sqm-invoice-table-view-7f376a75.js} +17 -0
- package/dist/esm/sqm-stencilbook.entry.js +2494 -2878
- 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_17.entry.js +1 -1
- package/dist/esm-es5/sqm-invoice-table-view-7f376a75.js +1 -0
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/p-37996351.system.js +1 -1
- package/dist/mint-components/{p-b06add5c.entry.js → p-4d7108af.entry.js} +2 -2
- package/dist/mint-components/p-9a1843cb.system.js +1 -0
- package/dist/mint-components/{p-207da855.system.entry.js → p-caca540c.system.entry.js} +1 -1
- package/dist/mint-components/p-ccd60c4b.js +1 -0
- package/dist/mint-components/p-db7d2444.system.entry.js +1 -0
- package/dist/mint-components/p-ebb4922d.entry.js +205 -0
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.d.ts +1 -1
- package/dist/types/components/tax-and-cash/BankingForm.stories.d.ts +1 -0
- package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +6 -0
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.d.ts +16 -0
- package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.d.ts +6 -0
- package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.d.ts +12 -0
- package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +3 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +35 -0
- package/dist/types/components.d.ts +126 -0
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/sqm-invoice-table-view-2c726568.js +0 -1
- package/dist/mint-components/p-0d68b3b1.entry.js +0 -205
- package/dist/mint-components/p-3f067fd5.js +0 -1
- package/dist/mint-components/p-a6178052.system.entry.js +0 -1
- package/dist/mint-components/p-a7746488.system.js +0 -1
- package/dist/mint-components/sqm-stencilbook.entry.js +0 -18989
- package/dist/mint-components/sqm-stencilbook.system.entry.js +0 -1
- package/shoelace/assets/icons/twitter-x.svg +0 -4
|
@@ -14,7 +14,7 @@ import { l as luxon } from './luxon-8d51c92b.js';
|
|
|
14
14
|
import { g as generateUserError } from './useReferralTable-b3876ed6.js';
|
|
15
15
|
import { T as TextSpanView } from './sqm-text-span-view-ca32495e.js';
|
|
16
16
|
import { E as ErrorView } from './ErrorView-48e2b969.js';
|
|
17
|
-
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, 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-
|
|
17
|
+
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, 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-7f376a75.js';
|
|
18
18
|
import { e as extractProps } from './extractProps-ae1afbb3.js';
|
|
19
19
|
import { b as VERIFICATION_EVENT_KEY, V as VERIFICATION_EMAIL_NAMESPACE, S as SHOW_CODE_NAMESPACE, a as VERIFICATION_PARENT_NAMESPACE } from './keys-406491dc.js';
|
|
20
20
|
import { T as TAX_FORM_UPDATED_EVENT_KEY, a as useVeriffApp, g as getStatus, V as VERIFF_COMPLETE_EVENT_KEY } from './usePayoutStatus-fed17fc9.js';
|
|
@@ -143,7 +143,7 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
143
143
|
const { errors, ...formState } = props.states.formState;
|
|
144
144
|
return {
|
|
145
145
|
0: {
|
|
146
|
-
input: (h("sl-input", Object.assign({ required: true, label: props.text.beneficiaryAccountNameLabel, name: "/beneficiaryAccountName", id: "beneficiaryAccountName", key: "beneficiaryAccountName", type: "text" }, (((_a = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _a === void 0 ? void 0 : _a.beneficiaryAccountName) && {
|
|
146
|
+
input: (h("sl-input", Object.assign({ required: true, label: props.text.beneficiaryAccountNameLabel, name: "/beneficiaryAccountName", id: "beneficiaryAccountName", key: "beneficiaryAccountName", type: "text", "help-text": props.text.beneficiaryAccountNameDescription }, (((_a = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _a === void 0 ? void 0 : _a.beneficiaryAccountName) && {
|
|
147
147
|
class: "error-input",
|
|
148
148
|
helpText: getValidationErrorMessage({
|
|
149
149
|
type: (_c = (_b = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _b === void 0 ? void 0 : _b.beneficiaryAccountName) === null || _c === void 0 ? void 0 : _c.type,
|
|
@@ -645,6 +645,11 @@ const mockPaymentOptions = {
|
|
|
645
645
|
};
|
|
646
646
|
|
|
647
647
|
const style = {
|
|
648
|
+
ModalTitleContainer: {
|
|
649
|
+
display: "flex",
|
|
650
|
+
gap: "var(--sl-spacing-small)",
|
|
651
|
+
alignItems: "center",
|
|
652
|
+
},
|
|
648
653
|
FormWrapper: {
|
|
649
654
|
display: "flex",
|
|
650
655
|
justifyContent: "flex-start",
|
|
@@ -784,6 +789,28 @@ const style = {
|
|
|
784
789
|
height: "26px",
|
|
785
790
|
width: "26px",
|
|
786
791
|
},
|
|
792
|
+
Dialog: {
|
|
793
|
+
"&::part(panel)": {
|
|
794
|
+
maxWidth: "420px",
|
|
795
|
+
},
|
|
796
|
+
"&::part(title)": {
|
|
797
|
+
fontSize: "var(--sl-font-size-large)",
|
|
798
|
+
fontWeight: "600",
|
|
799
|
+
},
|
|
800
|
+
"&::part(body)": {
|
|
801
|
+
padding: "0 var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",
|
|
802
|
+
fontSize: "var(--sl-font-size-small)",
|
|
803
|
+
},
|
|
804
|
+
"&::part(footer)": {
|
|
805
|
+
display: "flex",
|
|
806
|
+
flexDirection: "column",
|
|
807
|
+
gap: "var(--sl-spacing-small)",
|
|
808
|
+
marginBottom: "var(--sl-spacing-xx-small)",
|
|
809
|
+
alignItems: "center",
|
|
810
|
+
flex: "1",
|
|
811
|
+
},
|
|
812
|
+
},
|
|
813
|
+
DialogButton: { margin: "auto", width: "100%" },
|
|
787
814
|
};
|
|
788
815
|
const sheet = createStyleSheet(style);
|
|
789
816
|
const styleString = sheet.toString();
|
|
@@ -853,6 +880,12 @@ const BankingInfoFormView = (props) => {
|
|
|
853
880
|
h("style", { type: "text/css" },
|
|
854
881
|
styleString,
|
|
855
882
|
vanillaStyle),
|
|
883
|
+
h("sl-dialog", { class: sheet.classes.Dialog, open: states.showModal, "onSl-hide": callbacks.onModalClose },
|
|
884
|
+
h("div", { class: classes.ModalTitleContainer, slot: "label" },
|
|
885
|
+
h("sl-icon", { name: "info-circle", style: { color: "var(--sl-color-info-500)" } }),
|
|
886
|
+
h("h2", { style: { fontSize: "var(--sl-font-size-large)" } }, text.modalTitle)),
|
|
887
|
+
h("p", null, text.modalDescription),
|
|
888
|
+
h("sl-button", { slot: "footer", type: "primary", class: sheet.classes.DialogButton, submit: true, exportparts: "base: primarybutton-base" }, text.modalButtonText)),
|
|
856
889
|
h("div", { class: classes.TextContainer },
|
|
857
890
|
h("div", null,
|
|
858
891
|
!states.hideSteps && (h("p", null, intl.formatMessage({
|
|
@@ -912,7 +945,9 @@ const BankingInfoFormView = (props) => {
|
|
|
912
945
|
? getLoadingSkeleton("toPayPalAccount")
|
|
913
946
|
: slots.paymentFixedDaySelectSlot))))),
|
|
914
947
|
h("div", { class: classes.BtnContainer },
|
|
915
|
-
h("sl-button", { type: "primary", disabled: states.disabled || states.saveDisabled, loading: states.saveLoading
|
|
948
|
+
h("sl-button", Object.assign({ type: "primary", disabled: states.disabled || states.saveDisabled, loading: states.saveLoading }, (states.hideSteps
|
|
949
|
+
? { onClick: callbacks.onModalOpen }
|
|
950
|
+
: { submit: "submit" }), { exportparts: "base: primarybutton-base" }), text.continueButton),
|
|
916
951
|
!states.hideBackButton && (h("sl-button", { exportparts: "base: secondarybutton-base", class: classes.SecondaryBtn, type: "text", onClick: callbacks.onBack }, text.backButton))))));
|
|
917
952
|
};
|
|
918
953
|
|
|
@@ -1015,6 +1050,7 @@ function useBankingInfoForm(props) {
|
|
|
1015
1050
|
const [paymentScheduleChecked, setPaymentScheduleChecked] = useState(undefined);
|
|
1016
1051
|
const [countrySearch, setCountrySearch] = useState("");
|
|
1017
1052
|
const [filteredCountries, setFilteredCountries] = useState(countries || []);
|
|
1053
|
+
const [showModal, setShowModal] = useState(false);
|
|
1018
1054
|
const currency = ((_c = (_b = (_a = userData === null || userData === void 0 ? void 0 : userData.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher) === null || _c === void 0 ? void 0 : _c.currency) || "";
|
|
1019
1055
|
const isPartner = !!((_f = (_e = (_d = userData === null || userData === void 0 ? void 0 : userData.user) === null || _d === void 0 ? void 0 : _d.impactConnection) === null || _e === void 0 ? void 0 : _e.publisher) === null || _f === void 0 ? void 0 : _f.withdrawalSettings);
|
|
1020
1056
|
const feeCap = paypalFeeMap[currency] || "";
|
|
@@ -1186,10 +1222,12 @@ function useBankingInfoForm(props) {
|
|
|
1186
1222
|
});
|
|
1187
1223
|
setErrors({ inputErrors: validationErrors });
|
|
1188
1224
|
if (Object.keys(validationErrors).length) {
|
|
1225
|
+
setShowModal(false);
|
|
1189
1226
|
return;
|
|
1190
1227
|
}
|
|
1191
1228
|
let token = undefined;
|
|
1192
1229
|
if (isPartner) {
|
|
1230
|
+
setShowModal(false);
|
|
1193
1231
|
setShowVerification(true);
|
|
1194
1232
|
token = await new Promise((res) => {
|
|
1195
1233
|
const cb = (e) => {
|
|
@@ -1202,6 +1240,7 @@ function useBankingInfoForm(props) {
|
|
|
1202
1240
|
setShowVerification(false);
|
|
1203
1241
|
}
|
|
1204
1242
|
await runMutation(formData, token);
|
|
1243
|
+
setShowModal(false);
|
|
1205
1244
|
};
|
|
1206
1245
|
const onVerification = async (token) => {
|
|
1207
1246
|
host.dispatchEvent(new CustomEvent(VERIFICATION_EVENT_KEY, {
|
|
@@ -1235,6 +1274,8 @@ function useBankingInfoForm(props) {
|
|
|
1235
1274
|
setCountrySearch,
|
|
1236
1275
|
onVerification,
|
|
1237
1276
|
onVerificationHide: () => onVerification(null),
|
|
1277
|
+
onModalClose: () => setShowModal(false),
|
|
1278
|
+
onModalOpen: () => setShowModal(true),
|
|
1238
1279
|
},
|
|
1239
1280
|
states: {
|
|
1240
1281
|
showVerification,
|
|
@@ -1268,6 +1309,7 @@ function useBankingInfoForm(props) {
|
|
|
1268
1309
|
bankCountry: formState.bankCountry,
|
|
1269
1310
|
countrySearch,
|
|
1270
1311
|
email: (_j = userData === null || userData === void 0 ? void 0 : userData.user) === null || _j === void 0 ? void 0 : _j.email,
|
|
1312
|
+
showModal,
|
|
1271
1313
|
},
|
|
1272
1314
|
refs: {
|
|
1273
1315
|
formRef,
|
|
@@ -1352,7 +1394,11 @@ const BankingInfoForm = class {
|
|
|
1352
1394
|
/**
|
|
1353
1395
|
* @uiName Beneficiary account field label
|
|
1354
1396
|
*/
|
|
1355
|
-
this.beneficiaryAccountNameLabel = "
|
|
1397
|
+
this.beneficiaryAccountNameLabel = "Account holder name";
|
|
1398
|
+
/**
|
|
1399
|
+
* @uiName Beneficiary account field description
|
|
1400
|
+
*/
|
|
1401
|
+
this.beneficiaryAccountNameDescription = "The beneficiary name of your bank account. Ensure this matches the name on your tax form.";
|
|
1356
1402
|
/**
|
|
1357
1403
|
* @uiName Bank account type field label
|
|
1358
1404
|
*/
|
|
@@ -1531,6 +1577,18 @@ const BankingInfoForm = class {
|
|
|
1531
1577
|
* @uiWidget textArea
|
|
1532
1578
|
*/
|
|
1533
1579
|
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact Support.";
|
|
1580
|
+
/**
|
|
1581
|
+
* @uiName Information modal title
|
|
1582
|
+
*/
|
|
1583
|
+
this.modalTitle = "Important Note";
|
|
1584
|
+
/**
|
|
1585
|
+
* @uiName Information modal description text
|
|
1586
|
+
*/
|
|
1587
|
+
this.modalDescription = "Updating payment information places your account and payouts on hold for up to 48 hours while we verify your change. Payments scheduled during the hold period are skipped.";
|
|
1588
|
+
/**
|
|
1589
|
+
* @uiName Information modal button text
|
|
1590
|
+
*/
|
|
1591
|
+
this.modalButtonText = "I understand, update my information";
|
|
1534
1592
|
h$1(this);
|
|
1535
1593
|
}
|
|
1536
1594
|
disconnectedCallback() { }
|
|
@@ -1744,6 +1802,7 @@ function useDemoBankingInfoForm(props) {
|
|
|
1744
1802
|
currency,
|
|
1745
1803
|
setCurrency,
|
|
1746
1804
|
hasPayPal: true,
|
|
1805
|
+
showModal: false,
|
|
1747
1806
|
},
|
|
1748
1807
|
callbacks: {
|
|
1749
1808
|
onVerificationHide: () => { },
|
|
@@ -1756,6 +1815,8 @@ function useDemoBankingInfoForm(props) {
|
|
|
1756
1815
|
setCountrySearch: () => { },
|
|
1757
1816
|
onBack: async () => setStep("/dashboard"),
|
|
1758
1817
|
onVerification: () => { },
|
|
1818
|
+
onModalOpen: () => { },
|
|
1819
|
+
onModalClose: () => { },
|
|
1759
1820
|
},
|
|
1760
1821
|
text: props.getTextProps(),
|
|
1761
1822
|
refs: {
|
|
@@ -2128,6 +2189,7 @@ function useDocusignForm(props) {
|
|
|
2128
2189
|
const [errors, setErrors] = useState({});
|
|
2129
2190
|
const [loading, setLoading] = useState(false);
|
|
2130
2191
|
const [showExitButton, setShowExitButton] = useState(false);
|
|
2192
|
+
const [showModal, setShowModal] = useState(true);
|
|
2131
2193
|
// Only look at current document if it's valid (same as required type)
|
|
2132
2194
|
const existingDocumentType = validTaxDocument(publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType) && (publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument)
|
|
2133
2195
|
? publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType : undefined;
|
|
@@ -2223,6 +2285,7 @@ function useDocusignForm(props) {
|
|
|
2223
2285
|
documentType: actualDocumentType,
|
|
2224
2286
|
documentTypeString: taxTypeToName(actualDocumentType),
|
|
2225
2287
|
showExitButton,
|
|
2288
|
+
showModal,
|
|
2226
2289
|
},
|
|
2227
2290
|
data: {
|
|
2228
2291
|
taxForm: actualDocumentType,
|
|
@@ -2233,6 +2296,8 @@ function useDocusignForm(props) {
|
|
|
2233
2296
|
completeDocument,
|
|
2234
2297
|
onExit: progressStep,
|
|
2235
2298
|
setParticipantType,
|
|
2299
|
+
onModalClose: () => setShowModal(false),
|
|
2300
|
+
onModalOpen: () => setShowModal(true),
|
|
2236
2301
|
},
|
|
2237
2302
|
text: props.getTextProps(),
|
|
2238
2303
|
};
|
|
@@ -2352,6 +2417,11 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
|
2352
2417
|
};
|
|
2353
2418
|
|
|
2354
2419
|
const style$3 = {
|
|
2420
|
+
ModalTitleContainer: {
|
|
2421
|
+
display: "flex",
|
|
2422
|
+
gap: "var(--sl-spacing-small)",
|
|
2423
|
+
alignItems: "center",
|
|
2424
|
+
},
|
|
2355
2425
|
FormWrapper: {
|
|
2356
2426
|
display: "flex",
|
|
2357
2427
|
justifyContent: "flex-start",
|
|
@@ -2463,6 +2533,28 @@ const style$3 = {
|
|
|
2463
2533
|
color: "var(--sl-color-neutral-500)",
|
|
2464
2534
|
fontSize: "var(--sl-font-size-medium)",
|
|
2465
2535
|
},
|
|
2536
|
+
Dialog: {
|
|
2537
|
+
"&::part(panel)": {
|
|
2538
|
+
maxWidth: "420px",
|
|
2539
|
+
},
|
|
2540
|
+
"&::part(title)": {
|
|
2541
|
+
fontSize: "var(--sl-font-size-large)",
|
|
2542
|
+
fontWeight: "600",
|
|
2543
|
+
},
|
|
2544
|
+
"&::part(body)": {
|
|
2545
|
+
padding: "0 var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",
|
|
2546
|
+
fontSize: "var(--sl-font-size-small)",
|
|
2547
|
+
},
|
|
2548
|
+
"&::part(footer)": {
|
|
2549
|
+
display: "flex",
|
|
2550
|
+
flexDirection: "column",
|
|
2551
|
+
gap: "var(--sl-spacing-small)",
|
|
2552
|
+
marginBottom: "var(--sl-spacing-xx-small)",
|
|
2553
|
+
alignItems: "center",
|
|
2554
|
+
flex: "1",
|
|
2555
|
+
},
|
|
2556
|
+
},
|
|
2557
|
+
DialogButton: { margin: "auto", width: "100%" },
|
|
2466
2558
|
};
|
|
2467
2559
|
const sheet$3 = createStyleSheet(style$3);
|
|
2468
2560
|
const styleString$3 = sheet$3.toString();
|
|
@@ -2496,6 +2588,17 @@ const DocusignFormView = (props) => {
|
|
|
2496
2588
|
h("style", { type: "text/css" },
|
|
2497
2589
|
styleString$3,
|
|
2498
2590
|
vanillaStyle$2),
|
|
2591
|
+
h("sl-dialog", { class: sheet$3.classes.Dialog, open: states.showModal, "onSl-hide": callbacks.onModalClose },
|
|
2592
|
+
h("div", { class: classes.ModalTitleContainer, slot: "label" },
|
|
2593
|
+
h("sl-icon", { name: "info-circle", style: { color: "var(--sl-color-info-500)" } }),
|
|
2594
|
+
h("h2", { style: { fontSize: "var(--sl-font-size-large)" } }, text.modalTitle)),
|
|
2595
|
+
h("p", null, intl.formatMessage({
|
|
2596
|
+
id: "modalText",
|
|
2597
|
+
defaultMessage: text.modalDescription,
|
|
2598
|
+
}, {
|
|
2599
|
+
br: h("br", null),
|
|
2600
|
+
})),
|
|
2601
|
+
h("sl-button", { slot: "footer", type: "primary", class: sheet$3.classes.DialogButton, onClick: callbacks.onModalClose, exportparts: "base: primarybutton-base" }, text.modalButtonText)),
|
|
2499
2602
|
h("div", { class: classes.TextContainer },
|
|
2500
2603
|
h("div", null,
|
|
2501
2604
|
!states.hideSteps && (h("p", null, intl.formatMessage({
|
|
@@ -2649,6 +2752,18 @@ const DocusignForm = class {
|
|
|
2649
2752
|
* @uiName Exit button text
|
|
2650
2753
|
*/
|
|
2651
2754
|
this.exitButton = "Exit";
|
|
2755
|
+
/**
|
|
2756
|
+
* @uiName Information modal title
|
|
2757
|
+
*/
|
|
2758
|
+
this.modalTitle = "Important Note";
|
|
2759
|
+
/**
|
|
2760
|
+
* @uiName Information modal description text
|
|
2761
|
+
*/
|
|
2762
|
+
this.modalDescription = "Remember the name you enter in your tax form. It must exactly match the bank account holder name configured in the next step. {br}{br}Otherwise you will have to resubmit your form again and there will be delays receiving your payout.";
|
|
2763
|
+
/**
|
|
2764
|
+
* @uiName Information modal button text
|
|
2765
|
+
*/
|
|
2766
|
+
this.modalButtonText = "I understand";
|
|
2652
2767
|
h$1(this);
|
|
2653
2768
|
}
|
|
2654
2769
|
disconnectedCallback() { }
|
|
@@ -2703,6 +2818,7 @@ function useDocusignFormDemo(props) {
|
|
|
2703
2818
|
errors: {},
|
|
2704
2819
|
},
|
|
2705
2820
|
documentType: "W9",
|
|
2821
|
+
showModal: false,
|
|
2706
2822
|
},
|
|
2707
2823
|
data: {
|
|
2708
2824
|
taxForm: "W9",
|
|
@@ -2713,6 +2829,8 @@ function useDocusignFormDemo(props) {
|
|
|
2713
2829
|
demo: {
|
|
2714
2830
|
onSubmit: () => setStep("/4"),
|
|
2715
2831
|
onBack: () => setStep("/3"),
|
|
2832
|
+
onModalOpen: () => { },
|
|
2833
|
+
onModalClose: () => { },
|
|
2716
2834
|
},
|
|
2717
2835
|
setParticipantType: (p) => console.log({ p }),
|
|
2718
2836
|
setDocusignStatus: (status) => console.log(status),
|
|
@@ -4653,6 +4771,21 @@ const TaxAndCashMonolith = class {
|
|
|
4653
4771
|
* @uiGroup Step 3 Properties
|
|
4654
4772
|
*/
|
|
4655
4773
|
this.step3_exitButton = "Exit";
|
|
4774
|
+
/**
|
|
4775
|
+
* @uiName Information modal title
|
|
4776
|
+
* @uiGroup Step 3 Properties
|
|
4777
|
+
*/
|
|
4778
|
+
this.step3_modalTitle = "Important Note";
|
|
4779
|
+
/**
|
|
4780
|
+
* @uiName Information modal description text
|
|
4781
|
+
* @uiGroup Step 3 Properties
|
|
4782
|
+
*/
|
|
4783
|
+
this.step3_modalDescription = "Remember the name you enter in your tax form. It must exactly match the bank account holder name configured in the next step. {br}{br}Otherwise you will have to resubmit your form again and there will be delays receiving your payout.";
|
|
4784
|
+
/**
|
|
4785
|
+
* @uiName Information modal button text
|
|
4786
|
+
* @uiGroup Step 3 Properties
|
|
4787
|
+
*/
|
|
4788
|
+
this.step3_modalButtonText = "I understand";
|
|
4656
4789
|
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4657
4790
|
STEP 4 PROPS:
|
|
4658
4791
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
@@ -4735,7 +4868,12 @@ const TaxAndCashMonolith = class {
|
|
|
4735
4868
|
* @uiName Beneficiary account field label
|
|
4736
4869
|
* @uiGroup Step 4 Properties
|
|
4737
4870
|
*/
|
|
4738
|
-
this.step4_beneficiaryAccountNameLabel = "
|
|
4871
|
+
this.step4_beneficiaryAccountNameLabel = "Account holder name";
|
|
4872
|
+
/**
|
|
4873
|
+
* @uiName Beneficiary account field description
|
|
4874
|
+
* @uiGroup Step 4 Properties
|
|
4875
|
+
*/
|
|
4876
|
+
this.step4_beneficiaryAccountNameDescription = "The beneficiary name of your bank account. Ensure this matches the name on your tax form.";
|
|
4739
4877
|
/**
|
|
4740
4878
|
* @uiName Bank account type field label
|
|
4741
4879
|
* @uiGroup Step 4 Properties
|
|
@@ -4877,6 +5015,21 @@ const TaxAndCashMonolith = class {
|
|
|
4877
5015
|
* @uiGroup Step 4 Properties
|
|
4878
5016
|
*/
|
|
4879
5017
|
this.step4_verifyEmailDescriptionText = "Verify your email to update your payment settings. Enter the code sent to {email} from our referral provider, impact.com.";
|
|
5018
|
+
/**
|
|
5019
|
+
* @uiName Information modal title
|
|
5020
|
+
* @uiGroup Step 4 Properties
|
|
5021
|
+
*/
|
|
5022
|
+
this.step4_modalTitle = "Important Note";
|
|
5023
|
+
/**
|
|
5024
|
+
* @uiName Information modal description text
|
|
5025
|
+
* @uiGroup Step 4 Properties
|
|
5026
|
+
*/
|
|
5027
|
+
this.step4_modalDescription = "Updating payment information places your account and payouts on hold for up to 48 hours while we verify your change. Payments scheduled during the hold period are skipped.";
|
|
5028
|
+
/**
|
|
5029
|
+
* @uiName Information modal button text
|
|
5030
|
+
* @uiGroup Step 4 Properties
|
|
5031
|
+
*/
|
|
5032
|
+
this.step4_modalButtonText = "I understand, update my information";
|
|
4880
5033
|
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4881
5034
|
DASHBOARD PROPS:
|
|
4882
5035
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
@@ -683,6 +683,7 @@ const stepFourProps = {
|
|
|
683
683
|
formState: {
|
|
684
684
|
paymentMethodChecked: "toBankAccount",
|
|
685
685
|
},
|
|
686
|
+
showModal: false,
|
|
686
687
|
},
|
|
687
688
|
callbacks: {
|
|
688
689
|
onVerificationHide: () => { },
|
|
@@ -692,6 +693,8 @@ const stepFourProps = {
|
|
|
692
693
|
setPaymentScheduleChecked: () => { },
|
|
693
694
|
onBack: async () => console.log("back"),
|
|
694
695
|
setCountrySearch: () => { },
|
|
696
|
+
onModalOpen: () => { },
|
|
697
|
+
onModalClose: () => { },
|
|
695
698
|
},
|
|
696
699
|
refs: { formRef: { current: null } },
|
|
697
700
|
};
|
|
@@ -713,12 +716,15 @@ const docusignFormProps = {
|
|
|
713
716
|
errors: {},
|
|
714
717
|
taxFormExpired: false,
|
|
715
718
|
},
|
|
719
|
+
showModal: false,
|
|
716
720
|
},
|
|
717
721
|
callbacks: {
|
|
718
722
|
onExit: () => { },
|
|
719
723
|
completeDocument: async () => { },
|
|
720
724
|
setParticipantType: (p) => console.log({ p }),
|
|
721
725
|
setDocusignStatus: (status) => console.log(status),
|
|
726
|
+
onModalOpen: () => { },
|
|
727
|
+
onModalClose: () => { },
|
|
722
728
|
},
|
|
723
729
|
};
|
|
724
730
|
const dashboardProps = {
|
|
@@ -1195,6 +1201,16 @@ const StepThreeDocusignDisabled = () => {
|
|
|
1195
1201
|
},
|
|
1196
1202
|
} }));
|
|
1197
1203
|
};
|
|
1204
|
+
const StepThreeWithDocusignModalOpen = () => {
|
|
1205
|
+
return (h("sqm-docusign-form", { demoData: {
|
|
1206
|
+
states: {
|
|
1207
|
+
documentType: "W9",
|
|
1208
|
+
documentTypeString: taxTypeToName("W9"),
|
|
1209
|
+
...docusignFormProps.states,
|
|
1210
|
+
showModal: true,
|
|
1211
|
+
},
|
|
1212
|
+
} }));
|
|
1213
|
+
};
|
|
1198
1214
|
// STEP 4
|
|
1199
1215
|
const StepFourDefault = () => {
|
|
1200
1216
|
return h("sqm-banking-info-form", null);
|
|
@@ -1737,6 +1753,7 @@ const TaxForm = /*#__PURE__*/Object.freeze({
|
|
|
1737
1753
|
StepThreeDocusignWithLoadingError: StepThreeDocusignWithLoadingError,
|
|
1738
1754
|
StepThreeDocusignLoading: StepThreeDocusignLoading,
|
|
1739
1755
|
StepThreeDocusignDisabled: StepThreeDocusignDisabled,
|
|
1756
|
+
StepThreeWithDocusignModalOpen: StepThreeWithDocusignModalOpen,
|
|
1740
1757
|
StepFourDefault: StepFourDefault,
|
|
1741
1758
|
StepFourIsPartner: StepFourIsPartner,
|
|
1742
1759
|
StepFourDirectToBankChecked: StepFourDirectToBankChecked,
|