@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
|
@@ -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-2c726568.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"
|
|
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) && {
|
|
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,11 +645,6 @@ 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
|
-
},
|
|
653
648
|
FormWrapper: {
|
|
654
649
|
display: "flex",
|
|
655
650
|
justifyContent: "flex-start",
|
|
@@ -789,28 +784,6 @@ const style = {
|
|
|
789
784
|
height: "26px",
|
|
790
785
|
width: "26px",
|
|
791
786
|
},
|
|
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%" },
|
|
814
787
|
};
|
|
815
788
|
const sheet = createStyleSheet(style);
|
|
816
789
|
const styleString = sheet.toString();
|
|
@@ -880,12 +853,6 @@ const BankingInfoFormView = (props) => {
|
|
|
880
853
|
h("style", { type: "text/css" },
|
|
881
854
|
styleString,
|
|
882
855
|
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)),
|
|
889
856
|
h("div", { class: classes.TextContainer },
|
|
890
857
|
h("div", null,
|
|
891
858
|
!states.hideSteps && (h("p", null, intl.formatMessage({
|
|
@@ -945,9 +912,7 @@ const BankingInfoFormView = (props) => {
|
|
|
945
912
|
? getLoadingSkeleton("toPayPalAccount")
|
|
946
913
|
: slots.paymentFixedDaySelectSlot))))),
|
|
947
914
|
h("div", { class: classes.BtnContainer },
|
|
948
|
-
h("sl-button",
|
|
949
|
-
? { onClick: callbacks.onModalOpen }
|
|
950
|
-
: { submit: "submit" }), { exportparts: "base: primarybutton-base" }), text.continueButton),
|
|
915
|
+
h("sl-button", { type: "primary", disabled: states.disabled || states.saveDisabled, loading: states.saveLoading, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
|
|
951
916
|
!states.hideBackButton && (h("sl-button", { exportparts: "base: secondarybutton-base", class: classes.SecondaryBtn, type: "text", onClick: callbacks.onBack }, text.backButton))))));
|
|
952
917
|
};
|
|
953
918
|
|
|
@@ -1050,7 +1015,6 @@ function useBankingInfoForm(props) {
|
|
|
1050
1015
|
const [paymentScheduleChecked, setPaymentScheduleChecked] = useState(undefined);
|
|
1051
1016
|
const [countrySearch, setCountrySearch] = useState("");
|
|
1052
1017
|
const [filteredCountries, setFilteredCountries] = useState(countries || []);
|
|
1053
|
-
const [showModal, setShowModal] = useState(false);
|
|
1054
1018
|
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) || "";
|
|
1055
1019
|
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);
|
|
1056
1020
|
const feeCap = paypalFeeMap[currency] || "";
|
|
@@ -1222,12 +1186,10 @@ function useBankingInfoForm(props) {
|
|
|
1222
1186
|
});
|
|
1223
1187
|
setErrors({ inputErrors: validationErrors });
|
|
1224
1188
|
if (Object.keys(validationErrors).length) {
|
|
1225
|
-
setShowModal(false);
|
|
1226
1189
|
return;
|
|
1227
1190
|
}
|
|
1228
1191
|
let token = undefined;
|
|
1229
1192
|
if (isPartner) {
|
|
1230
|
-
setShowModal(false);
|
|
1231
1193
|
setShowVerification(true);
|
|
1232
1194
|
token = await new Promise((res) => {
|
|
1233
1195
|
const cb = (e) => {
|
|
@@ -1240,7 +1202,6 @@ function useBankingInfoForm(props) {
|
|
|
1240
1202
|
setShowVerification(false);
|
|
1241
1203
|
}
|
|
1242
1204
|
await runMutation(formData, token);
|
|
1243
|
-
setShowModal(false);
|
|
1244
1205
|
};
|
|
1245
1206
|
const onVerification = async (token) => {
|
|
1246
1207
|
host.dispatchEvent(new CustomEvent(VERIFICATION_EVENT_KEY, {
|
|
@@ -1274,8 +1235,6 @@ function useBankingInfoForm(props) {
|
|
|
1274
1235
|
setCountrySearch,
|
|
1275
1236
|
onVerification,
|
|
1276
1237
|
onVerificationHide: () => onVerification(null),
|
|
1277
|
-
onModalClose: () => setShowModal(false),
|
|
1278
|
-
onModalOpen: () => setShowModal(true),
|
|
1279
1238
|
},
|
|
1280
1239
|
states: {
|
|
1281
1240
|
showVerification,
|
|
@@ -1309,7 +1268,6 @@ function useBankingInfoForm(props) {
|
|
|
1309
1268
|
bankCountry: formState.bankCountry,
|
|
1310
1269
|
countrySearch,
|
|
1311
1270
|
email: (_j = userData === null || userData === void 0 ? void 0 : userData.user) === null || _j === void 0 ? void 0 : _j.email,
|
|
1312
|
-
showModal,
|
|
1313
1271
|
},
|
|
1314
1272
|
refs: {
|
|
1315
1273
|
formRef,
|
|
@@ -1394,11 +1352,7 @@ const BankingInfoForm = class {
|
|
|
1394
1352
|
/**
|
|
1395
1353
|
* @uiName Beneficiary account field label
|
|
1396
1354
|
*/
|
|
1397
|
-
this.beneficiaryAccountNameLabel = "
|
|
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.";
|
|
1355
|
+
this.beneficiaryAccountNameLabel = "Beneficiary account name";
|
|
1402
1356
|
/**
|
|
1403
1357
|
* @uiName Bank account type field label
|
|
1404
1358
|
*/
|
|
@@ -1577,18 +1531,6 @@ const BankingInfoForm = class {
|
|
|
1577
1531
|
* @uiWidget textArea
|
|
1578
1532
|
*/
|
|
1579
1533
|
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";
|
|
1592
1534
|
h$1(this);
|
|
1593
1535
|
}
|
|
1594
1536
|
disconnectedCallback() { }
|
|
@@ -1802,7 +1744,6 @@ function useDemoBankingInfoForm(props) {
|
|
|
1802
1744
|
currency,
|
|
1803
1745
|
setCurrency,
|
|
1804
1746
|
hasPayPal: true,
|
|
1805
|
-
showModal: false,
|
|
1806
1747
|
},
|
|
1807
1748
|
callbacks: {
|
|
1808
1749
|
onVerificationHide: () => { },
|
|
@@ -1815,8 +1756,6 @@ function useDemoBankingInfoForm(props) {
|
|
|
1815
1756
|
setCountrySearch: () => { },
|
|
1816
1757
|
onBack: async () => setStep("/dashboard"),
|
|
1817
1758
|
onVerification: () => { },
|
|
1818
|
-
onModalOpen: () => { },
|
|
1819
|
-
onModalClose: () => { },
|
|
1820
1759
|
},
|
|
1821
1760
|
text: props.getTextProps(),
|
|
1822
1761
|
refs: {
|
|
@@ -2189,7 +2128,6 @@ function useDocusignForm(props) {
|
|
|
2189
2128
|
const [errors, setErrors] = useState({});
|
|
2190
2129
|
const [loading, setLoading] = useState(false);
|
|
2191
2130
|
const [showExitButton, setShowExitButton] = useState(false);
|
|
2192
|
-
const [showModal, setShowModal] = useState(true);
|
|
2193
2131
|
// Only look at current document if it's valid (same as required type)
|
|
2194
2132
|
const existingDocumentType = validTaxDocument(publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType) && (publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument)
|
|
2195
2133
|
? publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType : undefined;
|
|
@@ -2285,7 +2223,6 @@ function useDocusignForm(props) {
|
|
|
2285
2223
|
documentType: actualDocumentType,
|
|
2286
2224
|
documentTypeString: taxTypeToName(actualDocumentType),
|
|
2287
2225
|
showExitButton,
|
|
2288
|
-
showModal,
|
|
2289
2226
|
},
|
|
2290
2227
|
data: {
|
|
2291
2228
|
taxForm: actualDocumentType,
|
|
@@ -2296,8 +2233,6 @@ function useDocusignForm(props) {
|
|
|
2296
2233
|
completeDocument,
|
|
2297
2234
|
onExit: progressStep,
|
|
2298
2235
|
setParticipantType,
|
|
2299
|
-
onModalClose: () => setShowModal(false),
|
|
2300
|
-
onModalOpen: () => setShowModal(true),
|
|
2301
2236
|
},
|
|
2302
2237
|
text: props.getTextProps(),
|
|
2303
2238
|
};
|
|
@@ -2417,11 +2352,6 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
|
2417
2352
|
};
|
|
2418
2353
|
|
|
2419
2354
|
const style$3 = {
|
|
2420
|
-
ModalTitleContainer: {
|
|
2421
|
-
display: "flex",
|
|
2422
|
-
gap: "var(--sl-spacing-small)",
|
|
2423
|
-
alignItems: "center",
|
|
2424
|
-
},
|
|
2425
2355
|
FormWrapper: {
|
|
2426
2356
|
display: "flex",
|
|
2427
2357
|
justifyContent: "flex-start",
|
|
@@ -2533,28 +2463,6 @@ const style$3 = {
|
|
|
2533
2463
|
color: "var(--sl-color-neutral-500)",
|
|
2534
2464
|
fontSize: "var(--sl-font-size-medium)",
|
|
2535
2465
|
},
|
|
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%" },
|
|
2558
2466
|
};
|
|
2559
2467
|
const sheet$3 = createStyleSheet(style$3);
|
|
2560
2468
|
const styleString$3 = sheet$3.toString();
|
|
@@ -2588,17 +2496,6 @@ const DocusignFormView = (props) => {
|
|
|
2588
2496
|
h("style", { type: "text/css" },
|
|
2589
2497
|
styleString$3,
|
|
2590
2498
|
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)),
|
|
2602
2499
|
h("div", { class: classes.TextContainer },
|
|
2603
2500
|
h("div", null,
|
|
2604
2501
|
!states.hideSteps && (h("p", null, intl.formatMessage({
|
|
@@ -2752,18 +2649,6 @@ const DocusignForm = class {
|
|
|
2752
2649
|
* @uiName Exit button text
|
|
2753
2650
|
*/
|
|
2754
2651
|
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 = "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.";
|
|
2763
|
-
/**
|
|
2764
|
-
* @uiName Information modal button text
|
|
2765
|
-
*/
|
|
2766
|
-
this.modalButtonText = "I understand";
|
|
2767
2652
|
h$1(this);
|
|
2768
2653
|
}
|
|
2769
2654
|
disconnectedCallback() { }
|
|
@@ -2818,7 +2703,6 @@ function useDocusignFormDemo(props) {
|
|
|
2818
2703
|
errors: {},
|
|
2819
2704
|
},
|
|
2820
2705
|
documentType: "W9",
|
|
2821
|
-
showModal: false,
|
|
2822
2706
|
},
|
|
2823
2707
|
data: {
|
|
2824
2708
|
taxForm: "W9",
|
|
@@ -2829,8 +2713,6 @@ function useDocusignFormDemo(props) {
|
|
|
2829
2713
|
demo: {
|
|
2830
2714
|
onSubmit: () => setStep("/4"),
|
|
2831
2715
|
onBack: () => setStep("/3"),
|
|
2832
|
-
onModalOpen: () => { },
|
|
2833
|
-
onModalClose: () => { },
|
|
2834
2716
|
},
|
|
2835
2717
|
setParticipantType: (p) => console.log({ p }),
|
|
2836
2718
|
setDocusignStatus: (status) => console.log(status),
|
|
@@ -4771,21 +4653,6 @@ const TaxAndCashMonolith = class {
|
|
|
4771
4653
|
* @uiGroup Step 3 Properties
|
|
4772
4654
|
*/
|
|
4773
4655
|
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 = "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.";
|
|
4784
|
-
/**
|
|
4785
|
-
* @uiName Information modal button text
|
|
4786
|
-
* @uiGroup Step 3 Properties
|
|
4787
|
-
*/
|
|
4788
|
-
this.step3_modalButtonText = "I understand";
|
|
4789
4656
|
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4790
4657
|
STEP 4 PROPS:
|
|
4791
4658
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
@@ -4868,12 +4735,7 @@ const TaxAndCashMonolith = class {
|
|
|
4868
4735
|
* @uiName Beneficiary account field label
|
|
4869
4736
|
* @uiGroup Step 4 Properties
|
|
4870
4737
|
*/
|
|
4871
|
-
this.step4_beneficiaryAccountNameLabel = "
|
|
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.";
|
|
4738
|
+
this.step4_beneficiaryAccountNameLabel = "Beneficiary account name";
|
|
4877
4739
|
/**
|
|
4878
4740
|
* @uiName Bank account type field label
|
|
4879
4741
|
* @uiGroup Step 4 Properties
|
|
@@ -5015,21 +4877,6 @@ const TaxAndCashMonolith = class {
|
|
|
5015
4877
|
* @uiGroup Step 4 Properties
|
|
5016
4878
|
*/
|
|
5017
4879
|
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";
|
|
5033
4880
|
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
5034
4881
|
DASHBOARD PROPS:
|
|
5035
4882
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
@@ -683,7 +683,6 @@ const stepFourProps = {
|
|
|
683
683
|
formState: {
|
|
684
684
|
paymentMethodChecked: "toBankAccount",
|
|
685
685
|
},
|
|
686
|
-
showModal: false,
|
|
687
686
|
},
|
|
688
687
|
callbacks: {
|
|
689
688
|
onVerificationHide: () => { },
|
|
@@ -693,8 +692,6 @@ const stepFourProps = {
|
|
|
693
692
|
setPaymentScheduleChecked: () => { },
|
|
694
693
|
onBack: async () => console.log("back"),
|
|
695
694
|
setCountrySearch: () => { },
|
|
696
|
-
onModalOpen: () => { },
|
|
697
|
-
onModalClose: () => { },
|
|
698
695
|
},
|
|
699
696
|
refs: { formRef: { current: null } },
|
|
700
697
|
};
|
|
@@ -716,15 +713,12 @@ const docusignFormProps = {
|
|
|
716
713
|
errors: {},
|
|
717
714
|
taxFormExpired: false,
|
|
718
715
|
},
|
|
719
|
-
showModal: false,
|
|
720
716
|
},
|
|
721
717
|
callbacks: {
|
|
722
718
|
onExit: () => { },
|
|
723
719
|
completeDocument: async () => { },
|
|
724
720
|
setParticipantType: (p) => console.log({ p }),
|
|
725
721
|
setDocusignStatus: (status) => console.log(status),
|
|
726
|
-
onModalOpen: () => { },
|
|
727
|
-
onModalClose: () => { },
|
|
728
722
|
},
|
|
729
723
|
};
|
|
730
724
|
const dashboardProps = {
|
|
@@ -1201,16 +1195,6 @@ const StepThreeDocusignDisabled = () => {
|
|
|
1201
1195
|
},
|
|
1202
1196
|
} }));
|
|
1203
1197
|
};
|
|
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
|
-
};
|
|
1214
1198
|
// STEP 4
|
|
1215
1199
|
const StepFourDefault = () => {
|
|
1216
1200
|
return h("sqm-banking-info-form", null);
|
|
@@ -1753,7 +1737,6 @@ const TaxForm = /*#__PURE__*/Object.freeze({
|
|
|
1753
1737
|
StepThreeDocusignWithLoadingError: StepThreeDocusignWithLoadingError,
|
|
1754
1738
|
StepThreeDocusignLoading: StepThreeDocusignLoading,
|
|
1755
1739
|
StepThreeDocusignDisabled: StepThreeDocusignDisabled,
|
|
1756
|
-
StepThreeWithDocusignModalOpen: StepThreeWithDocusignModalOpen,
|
|
1757
1740
|
StepFourDefault: StepFourDefault,
|
|
1758
1741
|
StepFourIsPartner: StepFourIsPartner,
|
|
1759
1742
|
StepFourDirectToBankChecked: StepFourDirectToBankChecked,
|
|
@@ -10,7 +10,7 @@ import { G as GenericTableView } from './GenericTableView-7b9087af.js';
|
|
|
10
10
|
import { a as useRequestRerender, u as useRerenderListener } from './re-render-cc945f38.js';
|
|
11
11
|
import { u as useChildElements } from './useChildElements-7945ae56.js';
|
|
12
12
|
import { l as luxon } from './luxon-8d51c92b.js';
|
|
13
|
-
import { g as getPaypalMeta } from './mockRewardData-
|
|
13
|
+
import { g as getPaypalMeta } from './mockRewardData-a3cdb832.js';
|
|
14
14
|
import { u as useReferralTable, t as tryMethod } from './useReferralTable-b3876ed6.js';
|
|
15
15
|
import { T as TextSpanView } from './sqm-text-span-view-ca32495e.js';
|
|
16
16
|
|
|
@@ -110,7 +110,7 @@ const getMockData = () => {
|
|
|
110
110
|
prettyValue: "1 Point",
|
|
111
111
|
statuses: statuses[Math.floor(Math.random() * statuses.length)],
|
|
112
112
|
// statuses: ["PENDING"],
|
|
113
|
-
// pendingReasons: ["US_TAX", "
|
|
113
|
+
// pendingReasons: ["US_TAX", "MISSING_PAYOUT_CONFIGURATION"],
|
|
114
114
|
globalRewardKey: null,
|
|
115
115
|
programRewardKey: "partnerReward",
|
|
116
116
|
meta: {
|
|
@@ -540,7 +540,7 @@ const ReferralTableRewardsCell = class {
|
|
|
540
540
|
if (!((_l = taxConnection === null || taxConnection === void 0 ? void 0 : taxConnection.publisher) === null || _l === void 0 ? void 0 : _l.withdrawalSettings))
|
|
541
541
|
return "PENDING_PARTNER_CREATION";
|
|
542
542
|
}
|
|
543
|
-
if ((_m = reward === null || reward === void 0 ? void 0 : reward.pendingReasons) === null || _m === void 0 ? void 0 : _m.includes("
|
|
543
|
+
if ((_m = reward === null || reward === void 0 ? void 0 : reward.pendingReasons) === null || _m === void 0 ? void 0 : _m.includes("MISSING_PAYOUT_CONFIGURATION")) {
|
|
544
544
|
return "PENDING_PARTNER_CREATION";
|
|
545
545
|
}
|
|
546
546
|
if (reward.statuses.length === 1)
|
|
@@ -10,7 +10,7 @@ import { G as GenericTableView } from './GenericTableView-7b9087af.js';
|
|
|
10
10
|
import { u as useRerenderListener, a as useRequestRerender } from './re-render-cc945f38.js';
|
|
11
11
|
import { u as useChildElements } from './useChildElements-7945ae56.js';
|
|
12
12
|
import { l as luxon } from './luxon-8d51c92b.js';
|
|
13
|
-
import { m as mockRewardData } from './mockRewardData-
|
|
13
|
+
import { m as mockRewardData } from './mockRewardData-a3cdb832.js';
|
|
14
14
|
import { g as generateUserError } from './useReferralTable-b3876ed6.js';
|
|
15
15
|
|
|
16
16
|
const debug = browser("sq:useRewardsTable");
|
|
@@ -882,7 +882,7 @@ const RewardTableStatusCell = class {
|
|
|
882
882
|
if (!((_d = taxConnection === null || taxConnection === void 0 ? void 0 : taxConnection.publisher) === null || _d === void 0 ? void 0 : _d.withdrawalSettings))
|
|
883
883
|
return this.pendingPartnerCreation;
|
|
884
884
|
}
|
|
885
|
-
if ((_e = reward === null || reward === void 0 ? void 0 : reward.pendingReasons) === null || _e === void 0 ? void 0 : _e.includes("
|
|
885
|
+
if ((_e = reward === null || reward === void 0 ? void 0 : reward.pendingReasons) === null || _e === void 0 ? void 0 : _e.includes("MISSING_PAYOUT_CONFIGURATION")) {
|
|
886
886
|
return this.pendingPartnerCreation;
|
|
887
887
|
}
|
|
888
888
|
return "";
|