@saasquatch/mint-components 1.14.3-6 → 1.14.3
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/{mockRewardData-272e22d6.js → mockRewardData-7815f10f.js} +1 -1
- package/dist/cjs/sqm-banking-info-form_17.cjs.entry.js +5 -158
- package/dist/cjs/{sqm-invoice-table-view-0f7fa309.js → sqm-invoice-table-view-16ac73d0.js} +0 -17
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +3 -3
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +2 -2
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +895 -511
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +1 -1
- package/dist/collection/components/sqm-referral-table/mockReferralData.js +1 -1
- package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +2 -2
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +1 -1
- package/dist/collection/components/sqm-rewards-table/mockRewardData.js +1 -1
- package/dist/collection/components/tax-and-cash/BankingForm.stories.js +0 -12
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +0 -16
- 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 +1 -36
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +3 -106
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +0 -7
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +0 -38
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +1 -79
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +0 -4
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +2 -205
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/{mockRewardData-8bd1b356.js → mockRewardData-a3cdb832.js} +1 -1
- package/dist/esm/sqm-banking-info-form_17.entry.js +5 -158
- package/dist/esm/{sqm-invoice-table-view-7f376a75.js → sqm-invoice-table-view-2c726568.js} +0 -17
- package/dist/esm/sqm-referral-table_11.entry.js +3 -3
- package/dist/esm/sqm-rewards-table_9.entry.js +2 -2
- package/dist/esm/sqm-stencilbook.entry.js +2880 -2496
- 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-2c726568.js +1 -0
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- 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-693942df.entry.js → p-08090b99.entry.js} +2 -2
- package/dist/mint-components/p-0d68b3b1.entry.js +205 -0
- package/dist/mint-components/{p-c82859b2.system.entry.js → p-207da855.system.entry.js} +1 -1
- package/dist/mint-components/p-37996351.system.js +1 -1
- package/dist/mint-components/p-3f067fd5.js +1 -0
- package/dist/mint-components/{p-fe2e2f4a.entry.js → p-89104bc4.entry.js} +1 -1
- package/dist/mint-components/p-a6178052.system.entry.js +1 -0
- package/dist/mint-components/p-a7746488.system.js +1 -0
- package/dist/mint-components/{p-805446b1.entry.js → p-b06add5c.entry.js} +2 -2
- package/dist/mint-components/{p-de8e9981.system.entry.js → p-cc833efb.system.entry.js} +1 -1
- package/dist/mint-components/{p-5d7e308c.system.entry.js → p-fc7a2647.system.entry.js} +1 -1
- package/dist/mint-components/sqm-stencilbook.entry.js +18989 -0
- package/dist/mint-components/sqm-stencilbook.system.entry.js +1 -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 +0 -1
- package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +0 -1
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +0 -6
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.d.ts +0 -16
- package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.d.ts +0 -6
- package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.d.ts +0 -12
- package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +0 -3
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +0 -35
- package/dist/types/components.d.ts +0 -126
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/shoelace/assets/icons/twitter-x.svg +4 -0
- package/dist/esm-es5/sqm-invoice-table-view-7f376a75.js +0 -1
- package/dist/mint-components/p-7e07418c.system.entry.js +0 -1
- package/dist/mint-components/p-9a1843cb.system.js +0 -1
- package/dist/mint-components/p-b03ef82f.entry.js +0 -205
- package/dist/mint-components/p-ccd60c4b.js +0 -1
- /package/dist/esm-es5/{mockRewardData-8bd1b356.js → mockRewardData-a3cdb832.js} +0 -0
- /package/dist/mint-components/{p-726a9924.js → p-938f64d9.js} +0 -0
- /package/dist/mint-components/{p-8413ade9.system.js → p-ae1ea5ac.system.js} +0 -0
|
@@ -18,7 +18,7 @@ const luxon = require('./luxon-2926d85f.js');
|
|
|
18
18
|
const useReferralTable = require('./useReferralTable-7c3f9600.js');
|
|
19
19
|
const sqmTextSpanView = require('./sqm-text-span-view-0aa82125.js');
|
|
20
20
|
const ErrorView = require('./ErrorView-b2fcf954.js');
|
|
21
|
-
const sqmInvoiceTableView = require('./sqm-invoice-table-view-
|
|
21
|
+
const sqmInvoiceTableView = require('./sqm-invoice-table-view-16ac73d0.js');
|
|
22
22
|
const extractProps = require('./extractProps-fd93ba62.js');
|
|
23
23
|
const keys = require('./keys-cff24974.js');
|
|
24
24
|
const usePayoutStatus = require('./usePayoutStatus-feeac99b.js');
|
|
@@ -147,7 +147,7 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
147
147
|
const { errors, ...formState } = props.states.formState;
|
|
148
148
|
return {
|
|
149
149
|
0: {
|
|
150
|
-
input: (index.h("sl-input", Object.assign({ required: true, label: props.text.beneficiaryAccountNameLabel, name: "/beneficiaryAccountName", id: "beneficiaryAccountName", key: "beneficiaryAccountName", type: "text"
|
|
150
|
+
input: (index.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) && {
|
|
151
151
|
class: "error-input",
|
|
152
152
|
helpText: getValidationErrorMessage({
|
|
153
153
|
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,
|
|
@@ -649,11 +649,6 @@ const mockPaymentOptions = {
|
|
|
649
649
|
};
|
|
650
650
|
|
|
651
651
|
const style = {
|
|
652
|
-
ModalTitleContainer: {
|
|
653
|
-
display: "flex",
|
|
654
|
-
gap: "var(--sl-spacing-small)",
|
|
655
|
-
alignItems: "center",
|
|
656
|
-
},
|
|
657
652
|
FormWrapper: {
|
|
658
653
|
display: "flex",
|
|
659
654
|
justifyContent: "flex-start",
|
|
@@ -793,28 +788,6 @@ const style = {
|
|
|
793
788
|
height: "26px",
|
|
794
789
|
width: "26px",
|
|
795
790
|
},
|
|
796
|
-
Dialog: {
|
|
797
|
-
"&::part(panel)": {
|
|
798
|
-
maxWidth: "420px",
|
|
799
|
-
},
|
|
800
|
-
"&::part(title)": {
|
|
801
|
-
fontSize: "var(--sl-font-size-large)",
|
|
802
|
-
fontWeight: "600",
|
|
803
|
-
},
|
|
804
|
-
"&::part(body)": {
|
|
805
|
-
padding: "0 var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",
|
|
806
|
-
fontSize: "var(--sl-font-size-small)",
|
|
807
|
-
},
|
|
808
|
-
"&::part(footer)": {
|
|
809
|
-
display: "flex",
|
|
810
|
-
flexDirection: "column",
|
|
811
|
-
gap: "var(--sl-spacing-small)",
|
|
812
|
-
marginBottom: "var(--sl-spacing-xx-small)",
|
|
813
|
-
alignItems: "center",
|
|
814
|
-
flex: "1",
|
|
815
|
-
},
|
|
816
|
-
},
|
|
817
|
-
DialogButton: { margin: "auto", width: "100%" },
|
|
818
791
|
};
|
|
819
792
|
const sheet = JSS.createStyleSheet(style);
|
|
820
793
|
const styleString = sheet.toString();
|
|
@@ -884,12 +857,6 @@ const BankingInfoFormView = (props) => {
|
|
|
884
857
|
index.h("style", { type: "text/css" },
|
|
885
858
|
styleString,
|
|
886
859
|
vanillaStyle),
|
|
887
|
-
index.h("sl-dialog", { class: sheet.classes.Dialog, open: states.showModal, "onSl-hide": callbacks.onModalClose },
|
|
888
|
-
index.h("div", { class: classes.ModalTitleContainer, slot: "label" },
|
|
889
|
-
index.h("sl-icon", { name: "info-circle", style: { color: "var(--sl-color-info-500)" } }),
|
|
890
|
-
index.h("h2", { style: { fontSize: "var(--sl-font-size-large)" } }, text.modalTitle)),
|
|
891
|
-
index.h("p", null, text.modalDescription),
|
|
892
|
-
index.h("sl-button", { slot: "footer", type: "primary", class: sheet.classes.DialogButton, submit: true, exportparts: "base: primarybutton-base" }, text.modalButtonText)),
|
|
893
860
|
index.h("div", { class: classes.TextContainer },
|
|
894
861
|
index.h("div", null,
|
|
895
862
|
!states.hideSteps && (index.h("p", null, global.intl.formatMessage({
|
|
@@ -949,9 +916,7 @@ const BankingInfoFormView = (props) => {
|
|
|
949
916
|
? getLoadingSkeleton("toPayPalAccount")
|
|
950
917
|
: slots.paymentFixedDaySelectSlot))))),
|
|
951
918
|
index.h("div", { class: classes.BtnContainer },
|
|
952
|
-
index.h("sl-button",
|
|
953
|
-
? { onClick: callbacks.onModalOpen }
|
|
954
|
-
: { submit: "submit" }), { exportparts: "base: primarybutton-base" }), text.continueButton),
|
|
919
|
+
index.h("sl-button", { type: "primary", disabled: states.disabled || states.saveDisabled, loading: states.saveLoading, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
|
|
955
920
|
!states.hideBackButton && (index.h("sl-button", { exportparts: "base: secondarybutton-base", class: classes.SecondaryBtn, type: "text", onClick: callbacks.onBack }, text.backButton))))));
|
|
956
921
|
};
|
|
957
922
|
|
|
@@ -1054,7 +1019,6 @@ function useBankingInfoForm(props) {
|
|
|
1054
1019
|
const [paymentScheduleChecked, setPaymentScheduleChecked] = stencilHooks_module.useState(undefined);
|
|
1055
1020
|
const [countrySearch, setCountrySearch] = stencilHooks_module.useState("");
|
|
1056
1021
|
const [filteredCountries, setFilteredCountries] = stencilHooks_module.useState(countries || []);
|
|
1057
|
-
const [showModal, setShowModal] = stencilHooks_module.useState(false);
|
|
1058
1022
|
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) || "";
|
|
1059
1023
|
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);
|
|
1060
1024
|
const feeCap = paypalFeeMap[currency] || "";
|
|
@@ -1226,12 +1190,10 @@ function useBankingInfoForm(props) {
|
|
|
1226
1190
|
});
|
|
1227
1191
|
setErrors({ inputErrors: validationErrors });
|
|
1228
1192
|
if (Object.keys(validationErrors).length) {
|
|
1229
|
-
setShowModal(false);
|
|
1230
1193
|
return;
|
|
1231
1194
|
}
|
|
1232
1195
|
let token = undefined;
|
|
1233
1196
|
if (isPartner) {
|
|
1234
|
-
setShowModal(false);
|
|
1235
1197
|
setShowVerification(true);
|
|
1236
1198
|
token = await new Promise((res) => {
|
|
1237
1199
|
const cb = (e) => {
|
|
@@ -1244,7 +1206,6 @@ function useBankingInfoForm(props) {
|
|
|
1244
1206
|
setShowVerification(false);
|
|
1245
1207
|
}
|
|
1246
1208
|
await runMutation(formData, token);
|
|
1247
|
-
setShowModal(false);
|
|
1248
1209
|
};
|
|
1249
1210
|
const onVerification = async (token) => {
|
|
1250
1211
|
host.dispatchEvent(new CustomEvent(keys.VERIFICATION_EVENT_KEY, {
|
|
@@ -1278,8 +1239,6 @@ function useBankingInfoForm(props) {
|
|
|
1278
1239
|
setCountrySearch,
|
|
1279
1240
|
onVerification,
|
|
1280
1241
|
onVerificationHide: () => onVerification(null),
|
|
1281
|
-
onModalClose: () => setShowModal(false),
|
|
1282
|
-
onModalOpen: () => setShowModal(true),
|
|
1283
1242
|
},
|
|
1284
1243
|
states: {
|
|
1285
1244
|
showVerification,
|
|
@@ -1313,7 +1272,6 @@ function useBankingInfoForm(props) {
|
|
|
1313
1272
|
bankCountry: formState.bankCountry,
|
|
1314
1273
|
countrySearch,
|
|
1315
1274
|
email: (_j = userData === null || userData === void 0 ? void 0 : userData.user) === null || _j === void 0 ? void 0 : _j.email,
|
|
1316
|
-
showModal,
|
|
1317
1275
|
},
|
|
1318
1276
|
refs: {
|
|
1319
1277
|
formRef,
|
|
@@ -1398,11 +1356,7 @@ const BankingInfoForm = class {
|
|
|
1398
1356
|
/**
|
|
1399
1357
|
* @uiName Beneficiary account field label
|
|
1400
1358
|
*/
|
|
1401
|
-
this.beneficiaryAccountNameLabel = "
|
|
1402
|
-
/**
|
|
1403
|
-
* @uiName Beneficiary account field description
|
|
1404
|
-
*/
|
|
1405
|
-
this.beneficiaryAccountNameDescription = "The beneficiary name of your bank account. Ensure this matches the name on your tax form.";
|
|
1359
|
+
this.beneficiaryAccountNameLabel = "Beneficiary account name";
|
|
1406
1360
|
/**
|
|
1407
1361
|
* @uiName Bank account type field label
|
|
1408
1362
|
*/
|
|
@@ -1581,18 +1535,6 @@ const BankingInfoForm = class {
|
|
|
1581
1535
|
* @uiWidget textArea
|
|
1582
1536
|
*/
|
|
1583
1537
|
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact Support.";
|
|
1584
|
-
/**
|
|
1585
|
-
* @uiName Information modal title
|
|
1586
|
-
*/
|
|
1587
|
-
this.modalTitle = "Important Note";
|
|
1588
|
-
/**
|
|
1589
|
-
* @uiName Information modal description text
|
|
1590
|
-
*/
|
|
1591
|
-
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.";
|
|
1592
|
-
/**
|
|
1593
|
-
* @uiName Information modal button text
|
|
1594
|
-
*/
|
|
1595
|
-
this.modalButtonText = "I understand, update my information";
|
|
1596
1538
|
stencilHooks_module.h$1(this);
|
|
1597
1539
|
}
|
|
1598
1540
|
disconnectedCallback() { }
|
|
@@ -1806,7 +1748,6 @@ function useDemoBankingInfoForm(props) {
|
|
|
1806
1748
|
currency,
|
|
1807
1749
|
setCurrency,
|
|
1808
1750
|
hasPayPal: true,
|
|
1809
|
-
showModal: false,
|
|
1810
1751
|
},
|
|
1811
1752
|
callbacks: {
|
|
1812
1753
|
onVerificationHide: () => { },
|
|
@@ -1819,8 +1760,6 @@ function useDemoBankingInfoForm(props) {
|
|
|
1819
1760
|
setCountrySearch: () => { },
|
|
1820
1761
|
onBack: async () => setStep("/dashboard"),
|
|
1821
1762
|
onVerification: () => { },
|
|
1822
|
-
onModalOpen: () => { },
|
|
1823
|
-
onModalClose: () => { },
|
|
1824
1763
|
},
|
|
1825
1764
|
text: props.getTextProps(),
|
|
1826
1765
|
refs: {
|
|
@@ -2193,7 +2132,6 @@ function useDocusignForm(props) {
|
|
|
2193
2132
|
const [errors, setErrors] = stencilHooks_module.useState({});
|
|
2194
2133
|
const [loading, setLoading] = stencilHooks_module.useState(false);
|
|
2195
2134
|
const [showExitButton, setShowExitButton] = stencilHooks_module.useState(false);
|
|
2196
|
-
const [showModal, setShowModal] = stencilHooks_module.useState(true);
|
|
2197
2135
|
// Only look at current document if it's valid (same as required type)
|
|
2198
2136
|
const existingDocumentType = sqmInvoiceTableView.validTaxDocument(publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType) && (publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument)
|
|
2199
2137
|
? publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType : undefined;
|
|
@@ -2289,7 +2227,6 @@ function useDocusignForm(props) {
|
|
|
2289
2227
|
documentType: actualDocumentType,
|
|
2290
2228
|
documentTypeString: sqmInvoiceTableView.taxTypeToName(actualDocumentType),
|
|
2291
2229
|
showExitButton,
|
|
2292
|
-
showModal,
|
|
2293
2230
|
},
|
|
2294
2231
|
data: {
|
|
2295
2232
|
taxForm: actualDocumentType,
|
|
@@ -2300,8 +2237,6 @@ function useDocusignForm(props) {
|
|
|
2300
2237
|
completeDocument,
|
|
2301
2238
|
onExit: progressStep,
|
|
2302
2239
|
setParticipantType,
|
|
2303
|
-
onModalClose: () => setShowModal(false),
|
|
2304
|
-
onModalOpen: () => setShowModal(true),
|
|
2305
2240
|
},
|
|
2306
2241
|
text: props.getTextProps(),
|
|
2307
2242
|
};
|
|
@@ -2421,11 +2356,6 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
|
2421
2356
|
};
|
|
2422
2357
|
|
|
2423
2358
|
const style$3 = {
|
|
2424
|
-
ModalTitleContainer: {
|
|
2425
|
-
display: "flex",
|
|
2426
|
-
gap: "var(--sl-spacing-small)",
|
|
2427
|
-
alignItems: "center",
|
|
2428
|
-
},
|
|
2429
2359
|
FormWrapper: {
|
|
2430
2360
|
display: "flex",
|
|
2431
2361
|
justifyContent: "flex-start",
|
|
@@ -2537,28 +2467,6 @@ const style$3 = {
|
|
|
2537
2467
|
color: "var(--sl-color-neutral-500)",
|
|
2538
2468
|
fontSize: "var(--sl-font-size-medium)",
|
|
2539
2469
|
},
|
|
2540
|
-
Dialog: {
|
|
2541
|
-
"&::part(panel)": {
|
|
2542
|
-
maxWidth: "420px",
|
|
2543
|
-
},
|
|
2544
|
-
"&::part(title)": {
|
|
2545
|
-
fontSize: "var(--sl-font-size-large)",
|
|
2546
|
-
fontWeight: "600",
|
|
2547
|
-
},
|
|
2548
|
-
"&::part(body)": {
|
|
2549
|
-
padding: "0 var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",
|
|
2550
|
-
fontSize: "var(--sl-font-size-small)",
|
|
2551
|
-
},
|
|
2552
|
-
"&::part(footer)": {
|
|
2553
|
-
display: "flex",
|
|
2554
|
-
flexDirection: "column",
|
|
2555
|
-
gap: "var(--sl-spacing-small)",
|
|
2556
|
-
marginBottom: "var(--sl-spacing-xx-small)",
|
|
2557
|
-
alignItems: "center",
|
|
2558
|
-
flex: "1",
|
|
2559
|
-
},
|
|
2560
|
-
},
|
|
2561
|
-
DialogButton: { margin: "auto", width: "100%" },
|
|
2562
2470
|
};
|
|
2563
2471
|
const sheet$3 = JSS.createStyleSheet(style$3);
|
|
2564
2472
|
const styleString$3 = sheet$3.toString();
|
|
@@ -2592,17 +2500,6 @@ const DocusignFormView = (props) => {
|
|
|
2592
2500
|
index.h("style", { type: "text/css" },
|
|
2593
2501
|
styleString$3,
|
|
2594
2502
|
vanillaStyle$2),
|
|
2595
|
-
index.h("sl-dialog", { class: sheet$3.classes.Dialog, open: states.showModal, "onSl-hide": callbacks.onModalClose },
|
|
2596
|
-
index.h("div", { class: classes.ModalTitleContainer, slot: "label" },
|
|
2597
|
-
index.h("sl-icon", { name: "info-circle", style: { color: "var(--sl-color-info-500)" } }),
|
|
2598
|
-
index.h("h2", { style: { fontSize: "var(--sl-font-size-large)" } }, text.modalTitle)),
|
|
2599
|
-
index.h("p", null, global.intl.formatMessage({
|
|
2600
|
-
id: "modalText",
|
|
2601
|
-
defaultMessage: text.modalDescription,
|
|
2602
|
-
}, {
|
|
2603
|
-
br: index.h("br", null),
|
|
2604
|
-
})),
|
|
2605
|
-
index.h("sl-button", { slot: "footer", type: "primary", class: sheet$3.classes.DialogButton, onClick: callbacks.onModalClose, exportparts: "base: primarybutton-base" }, text.modalButtonText)),
|
|
2606
2503
|
index.h("div", { class: classes.TextContainer },
|
|
2607
2504
|
index.h("div", null,
|
|
2608
2505
|
!states.hideSteps && (index.h("p", null, global.intl.formatMessage({
|
|
@@ -2756,18 +2653,6 @@ const DocusignForm = class {
|
|
|
2756
2653
|
* @uiName Exit button text
|
|
2757
2654
|
*/
|
|
2758
2655
|
this.exitButton = "Exit";
|
|
2759
|
-
/**
|
|
2760
|
-
* @uiName Information modal title
|
|
2761
|
-
*/
|
|
2762
|
-
this.modalTitle = "Important Note";
|
|
2763
|
-
/**
|
|
2764
|
-
* @uiName Information modal description text
|
|
2765
|
-
*/
|
|
2766
|
-
this.modalDescription = "Ensure the name you enter in your tax form matches the name on your bank account, also known as the beneficiary name.{br}{br}Otherwise you will have to resubmit your form again and there will be delays receiving your payout.";
|
|
2767
|
-
/**
|
|
2768
|
-
* @uiName Information modal button text
|
|
2769
|
-
*/
|
|
2770
|
-
this.modalButtonText = "I understand";
|
|
2771
2656
|
stencilHooks_module.h$1(this);
|
|
2772
2657
|
}
|
|
2773
2658
|
disconnectedCallback() { }
|
|
@@ -2822,7 +2707,6 @@ function useDocusignFormDemo(props) {
|
|
|
2822
2707
|
errors: {},
|
|
2823
2708
|
},
|
|
2824
2709
|
documentType: "W9",
|
|
2825
|
-
showModal: false,
|
|
2826
2710
|
},
|
|
2827
2711
|
data: {
|
|
2828
2712
|
taxForm: "W9",
|
|
@@ -2833,8 +2717,6 @@ function useDocusignFormDemo(props) {
|
|
|
2833
2717
|
demo: {
|
|
2834
2718
|
onSubmit: () => setStep("/4"),
|
|
2835
2719
|
onBack: () => setStep("/3"),
|
|
2836
|
-
onModalOpen: () => { },
|
|
2837
|
-
onModalClose: () => { },
|
|
2838
2720
|
},
|
|
2839
2721
|
setParticipantType: (p) => console.log({ p }),
|
|
2840
2722
|
setDocusignStatus: (status) => console.log(status),
|
|
@@ -4775,21 +4657,6 @@ const TaxAndCashMonolith = class {
|
|
|
4775
4657
|
* @uiGroup Step 3 Properties
|
|
4776
4658
|
*/
|
|
4777
4659
|
this.step3_exitButton = "Exit";
|
|
4778
|
-
/**
|
|
4779
|
-
* @uiName Information modal title
|
|
4780
|
-
* @uiGroup Step 3 Properties
|
|
4781
|
-
*/
|
|
4782
|
-
this.step3_modalTitle = "Important Note";
|
|
4783
|
-
/**
|
|
4784
|
-
* @uiName Information modal description text
|
|
4785
|
-
* @uiGroup Step 3 Properties
|
|
4786
|
-
*/
|
|
4787
|
-
this.step3_modalDescription = "Ensure the name you enter in your tax form matches the name on your bank account, also known as the beneficiary name.{br}{br}Otherwise you will have to resubmit your form again and there will be delays receiving your payout.";
|
|
4788
|
-
/**
|
|
4789
|
-
* @uiName Information modal button text
|
|
4790
|
-
* @uiGroup Step 3 Properties
|
|
4791
|
-
*/
|
|
4792
|
-
this.step3_modalButtonText = "I understand";
|
|
4793
4660
|
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4794
4661
|
STEP 4 PROPS:
|
|
4795
4662
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
@@ -4872,12 +4739,7 @@ const TaxAndCashMonolith = class {
|
|
|
4872
4739
|
* @uiName Beneficiary account field label
|
|
4873
4740
|
* @uiGroup Step 4 Properties
|
|
4874
4741
|
*/
|
|
4875
|
-
this.step4_beneficiaryAccountNameLabel = "
|
|
4876
|
-
/**
|
|
4877
|
-
* @uiName Beneficiary account field description
|
|
4878
|
-
* @uiGroup Step 4 Properties
|
|
4879
|
-
*/
|
|
4880
|
-
this.step4_beneficiaryAccountNameDescription = "The beneficiary name of your bank account. Ensure this matches the name on your tax form.";
|
|
4742
|
+
this.step4_beneficiaryAccountNameLabel = "Beneficiary account name";
|
|
4881
4743
|
/**
|
|
4882
4744
|
* @uiName Bank account type field label
|
|
4883
4745
|
* @uiGroup Step 4 Properties
|
|
@@ -5019,21 +4881,6 @@ const TaxAndCashMonolith = class {
|
|
|
5019
4881
|
* @uiGroup Step 4 Properties
|
|
5020
4882
|
*/
|
|
5021
4883
|
this.step4_verifyEmailDescriptionText = "Verify your email to update your payment settings. Enter the code sent to {email} from our referral provider, impact.com.";
|
|
5022
|
-
/**
|
|
5023
|
-
* @uiName Information modal title
|
|
5024
|
-
* @uiGroup Step 4 Properties
|
|
5025
|
-
*/
|
|
5026
|
-
this.step4_modalTitle = "Important Note";
|
|
5027
|
-
/**
|
|
5028
|
-
* @uiName Information modal description text
|
|
5029
|
-
* @uiGroup Step 4 Properties
|
|
5030
|
-
*/
|
|
5031
|
-
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.";
|
|
5032
|
-
/**
|
|
5033
|
-
* @uiName Information modal button text
|
|
5034
|
-
* @uiGroup Step 4 Properties
|
|
5035
|
-
*/
|
|
5036
|
-
this.step4_modalButtonText = "I understand, update my information";
|
|
5037
4884
|
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
5038
4885
|
DASHBOARD PROPS:
|
|
5039
4886
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
@@ -685,7 +685,6 @@ const stepFourProps = {
|
|
|
685
685
|
formState: {
|
|
686
686
|
paymentMethodChecked: "toBankAccount",
|
|
687
687
|
},
|
|
688
|
-
showModal: false,
|
|
689
688
|
},
|
|
690
689
|
callbacks: {
|
|
691
690
|
onVerificationHide: () => { },
|
|
@@ -695,8 +694,6 @@ const stepFourProps = {
|
|
|
695
694
|
setPaymentScheduleChecked: () => { },
|
|
696
695
|
onBack: async () => console.log("back"),
|
|
697
696
|
setCountrySearch: () => { },
|
|
698
|
-
onModalOpen: () => { },
|
|
699
|
-
onModalClose: () => { },
|
|
700
697
|
},
|
|
701
698
|
refs: { formRef: { current: null } },
|
|
702
699
|
};
|
|
@@ -718,15 +715,12 @@ const docusignFormProps = {
|
|
|
718
715
|
errors: {},
|
|
719
716
|
taxFormExpired: false,
|
|
720
717
|
},
|
|
721
|
-
showModal: false,
|
|
722
718
|
},
|
|
723
719
|
callbacks: {
|
|
724
720
|
onExit: () => { },
|
|
725
721
|
completeDocument: async () => { },
|
|
726
722
|
setParticipantType: (p) => console.log({ p }),
|
|
727
723
|
setDocusignStatus: (status) => console.log(status),
|
|
728
|
-
onModalOpen: () => { },
|
|
729
|
-
onModalClose: () => { },
|
|
730
724
|
},
|
|
731
725
|
};
|
|
732
726
|
const dashboardProps = {
|
|
@@ -1203,16 +1197,6 @@ const StepThreeDocusignDisabled = () => {
|
|
|
1203
1197
|
},
|
|
1204
1198
|
} }));
|
|
1205
1199
|
};
|
|
1206
|
-
const StepThreeWithDocusignModalOpen = () => {
|
|
1207
|
-
return (index.h("sqm-docusign-form", { demoData: {
|
|
1208
|
-
states: {
|
|
1209
|
-
documentType: "W9",
|
|
1210
|
-
documentTypeString: taxTypeToName("W9"),
|
|
1211
|
-
...docusignFormProps.states,
|
|
1212
|
-
showModal: true,
|
|
1213
|
-
},
|
|
1214
|
-
} }));
|
|
1215
|
-
};
|
|
1216
1200
|
// STEP 4
|
|
1217
1201
|
const StepFourDefault = () => {
|
|
1218
1202
|
return index.h("sqm-banking-info-form", null);
|
|
@@ -1755,7 +1739,6 @@ const TaxForm = /*#__PURE__*/Object.freeze({
|
|
|
1755
1739
|
StepThreeDocusignWithLoadingError: StepThreeDocusignWithLoadingError,
|
|
1756
1740
|
StepThreeDocusignLoading: StepThreeDocusignLoading,
|
|
1757
1741
|
StepThreeDocusignDisabled: StepThreeDocusignDisabled,
|
|
1758
|
-
StepThreeWithDocusignModalOpen: StepThreeWithDocusignModalOpen,
|
|
1759
1742
|
StepFourDefault: StepFourDefault,
|
|
1760
1743
|
StepFourIsPartner: StepFourIsPartner,
|
|
1761
1744
|
StepFourDirectToBankChecked: StepFourDirectToBankChecked,
|
|
@@ -14,7 +14,7 @@ const GenericTableView = require('./GenericTableView-a9f4ba75.js');
|
|
|
14
14
|
const reRender = require('./re-render-b324deab.js');
|
|
15
15
|
const useChildElements = require('./useChildElements-1b35d945.js');
|
|
16
16
|
const luxon = require('./luxon-2926d85f.js');
|
|
17
|
-
const mockRewardData = require('./mockRewardData-
|
|
17
|
+
const mockRewardData = require('./mockRewardData-7815f10f.js');
|
|
18
18
|
const useReferralTable = require('./useReferralTable-7c3f9600.js');
|
|
19
19
|
const sqmTextSpanView = require('./sqm-text-span-view-0aa82125.js');
|
|
20
20
|
|
|
@@ -114,7 +114,7 @@ const getMockData = () => {
|
|
|
114
114
|
prettyValue: "1 Point",
|
|
115
115
|
statuses: statuses[Math.floor(Math.random() * statuses.length)],
|
|
116
116
|
// statuses: ["PENDING"],
|
|
117
|
-
// pendingReasons: ["US_TAX", "
|
|
117
|
+
// pendingReasons: ["US_TAX", "MISSING_PAYOUT_CONFIGURATION"],
|
|
118
118
|
globalRewardKey: null,
|
|
119
119
|
programRewardKey: "partnerReward",
|
|
120
120
|
meta: {
|
|
@@ -544,7 +544,7 @@ const ReferralTableRewardsCell = class {
|
|
|
544
544
|
if (!((_l = taxConnection === null || taxConnection === void 0 ? void 0 : taxConnection.publisher) === null || _l === void 0 ? void 0 : _l.withdrawalSettings))
|
|
545
545
|
return "PENDING_PARTNER_CREATION";
|
|
546
546
|
}
|
|
547
|
-
if ((_m = reward === null || reward === void 0 ? void 0 : reward.pendingReasons) === null || _m === void 0 ? void 0 : _m.includes("
|
|
547
|
+
if ((_m = reward === null || reward === void 0 ? void 0 : reward.pendingReasons) === null || _m === void 0 ? void 0 : _m.includes("MISSING_PAYOUT_CONFIGURATION")) {
|
|
548
548
|
return "PENDING_PARTNER_CREATION";
|
|
549
549
|
}
|
|
550
550
|
if (reward.statuses.length === 1)
|
|
@@ -14,7 +14,7 @@ const GenericTableView = require('./GenericTableView-a9f4ba75.js');
|
|
|
14
14
|
const reRender = require('./re-render-b324deab.js');
|
|
15
15
|
const useChildElements = require('./useChildElements-1b35d945.js');
|
|
16
16
|
const luxon = require('./luxon-2926d85f.js');
|
|
17
|
-
const mockRewardData = require('./mockRewardData-
|
|
17
|
+
const mockRewardData = require('./mockRewardData-7815f10f.js');
|
|
18
18
|
const useReferralTable = require('./useReferralTable-7c3f9600.js');
|
|
19
19
|
|
|
20
20
|
const debug = stencilHooks_module.browser("sq:useRewardsTable");
|
|
@@ -886,7 +886,7 @@ const RewardTableStatusCell = class {
|
|
|
886
886
|
if (!((_d = taxConnection === null || taxConnection === void 0 ? void 0 : taxConnection.publisher) === null || _d === void 0 ? void 0 : _d.withdrawalSettings))
|
|
887
887
|
return this.pendingPartnerCreation;
|
|
888
888
|
}
|
|
889
|
-
if ((_e = reward === null || reward === void 0 ? void 0 : reward.pendingReasons) === null || _e === void 0 ? void 0 : _e.includes("
|
|
889
|
+
if ((_e = reward === null || reward === void 0 ? void 0 : reward.pendingReasons) === null || _e === void 0 ? void 0 : _e.includes("MISSING_PAYOUT_CONFIGURATION")) {
|
|
890
890
|
return this.pendingPartnerCreation;
|
|
891
891
|
}
|
|
892
892
|
return "";
|