@saasquatch/mint-components 2.5.0-6 → 2.5.1-1
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/{ShadowViewAddon-6d88b845.js → ShadowViewAddon-795963e8.js} +7 -7
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +4 -3
- package/dist/cjs/sqm-big-stat_47.cjs.entry.js +23 -21
- package/dist/cjs/sqm-email-verification_2.cjs.entry.js +17 -4
- package/dist/cjs/sqm-form-message_2.cjs.entry.js +4 -4
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-partner-info-modal-view-d9b61d54.js → sqm-partner-info-modal-view-e97ce8ef.js} +21 -8
- package/dist/cjs/sqm-qr-code.cjs.entry.js +1 -1
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +44 -9
- package/dist/cjs/{sqm-user-info-form-view-6a65f1fb.js → sqm-user-info-form-view-e725523f.js} +20 -26
- package/dist/cjs/{subregions-d12829d6.js → subregions-cd5c7ad6.js} +9 -4
- package/dist/cjs/{useIndirectTaxForm-0969e194.js → useIndirectTaxForm-ed4df485.js} +23 -35
- package/dist/cjs/{useReferralCodes-0f7948af.js → useReferralCodes-1bfc02eb.js} +2 -0
- package/dist/collection/components/sqm-base-registration/sqm-base-registration-form-view.js +1 -1
- package/dist/collection/components/sqm-coupon-code/sqm-coupon-code-view.js +1 -1
- package/dist/collection/components/sqm-coupon-code/sqm-coupon-code.js +1 -1
- package/dist/collection/components/sqm-empty/sqm-empty.js +1 -1
- package/dist/collection/components/sqm-form-message/sqm-form-message.js +6 -4
- package/dist/collection/components/sqm-instant-access-registration/sqm-instant-access-registration.js +1 -0
- package/dist/collection/components/sqm-lead-form/sqm-lead-checkbox-field.js +2 -0
- package/dist/collection/components/sqm-lead-form/sqm-lead-dropdown-field.js +2 -0
- package/dist/collection/components/sqm-lead-form/sqm-lead-input-field.js +2 -0
- package/dist/collection/components/sqm-partner-info-modal/PartnerInfoModal.stories.js +16 -1
- package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal-view.js +21 -8
- package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal.js +59 -1
- package/dist/collection/components/sqm-partner-info-modal/usePartnerInfoModal.js +4 -3
- package/dist/collection/components/sqm-portal-google-login/sqm-portal-google-login.js +6 -0
- package/dist/collection/components/sqm-portal-google-registration-form/sqm-portal-google-registration-form.js +3 -0
- package/dist/collection/components/sqm-referral-codes/useReferralCodes.js +2 -0
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js +0 -1
- package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +1 -0
- package/dist/collection/components/sqm-referred-registration/sqm-referred-registration.js +1 -0
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +3 -3
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.js +0 -3
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +3 -0
- package/dist/collection/components/sqm-share-button/sqm-share-button-view.js +1 -1
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +1 -2
- package/dist/collection/components/sqm-titled-section/sqm-titled-section.js +1 -0
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +38 -3
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +2 -1
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.js +10 -1
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +10 -14
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +22 -34
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +2 -0
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/TaxAndCashDashboardView.stories.js +8 -1
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +19 -25
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +2 -1
- package/dist/collection/components/tax-and-cash/utils.js +9 -4
- package/dist/esm/{ShadowViewAddon-86b5e986.js → ShadowViewAddon-450b0a7a.js} +7 -7
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/sqm-banking-info-form_10.entry.js +4 -3
- package/dist/esm/sqm-big-stat_47.entry.js +23 -21
- package/dist/esm/sqm-email-verification_2.entry.js +17 -4
- package/dist/esm/sqm-form-message_2.entry.js +4 -4
- package/dist/esm/sqm-pagination_3.entry.js +1 -1
- package/dist/esm/{sqm-partner-info-modal-view-b921fed1.js → sqm-partner-info-modal-view-9c7a2c8c.js} +21 -8
- package/dist/esm/sqm-qr-code.entry.js +1 -1
- package/dist/esm/sqm-stencilbook.entry.js +44 -9
- package/dist/esm/{sqm-user-info-form-view-72afa9af.js → sqm-user-info-form-view-008f8969.js} +20 -26
- package/dist/esm/{subregions-98789b46.js → subregions-8e84e5fa.js} +10 -5
- package/dist/esm/{useIndirectTaxForm-bbe8779d.js → useIndirectTaxForm-f622ba23.js} +23 -35
- package/dist/esm/{useReferralCodes-25f8b792.js → useReferralCodes-acbe7b0a.js} +2 -0
- package/dist/esm-es5/ShadowViewAddon-450b0a7a.js +1 -0
- 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_10.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_47.entry.js +1 -1
- package/dist/esm-es5/sqm-email-verification_2.entry.js +1 -1
- package/dist/esm-es5/sqm-form-message_2.entry.js +1 -1
- package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
- package/dist/esm-es5/sqm-partner-info-modal-view-9c7a2c8c.js +1 -0
- package/dist/esm-es5/sqm-qr-code.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-user-info-form-view-008f8969.js +1 -0
- package/dist/esm-es5/{subregions-98789b46.js → subregions-8e84e5fa.js} +1 -1
- package/dist/esm-es5/{useIndirectTaxForm-bbe8779d.js → useIndirectTaxForm-f622ba23.js} +2 -2
- package/dist/esm-es5/{useReferralCodes-25f8b792.js → useReferralCodes-acbe7b0a.js} +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/{p-e651593c.system.js → p-01fcd601.system.js} +1 -1
- package/dist/mint-components/p-062fcc1d.system.entry.js +1 -0
- package/dist/mint-components/p-1c574ecb.system.js +1 -0
- package/dist/mint-components/{p-cee4caa8.entry.js → p-1fa0187d.entry.js} +11 -11
- package/dist/mint-components/p-2392aabe.entry.js +1 -0
- package/dist/mint-components/{p-3c9d8bf4.system.entry.js → p-2a4b742a.system.entry.js} +1 -1
- package/dist/mint-components/{p-53575d04.js → p-2ec539fc.js} +1 -1
- package/dist/mint-components/{p-91d2e886.entry.js → p-30eab7b9.entry.js} +2 -2
- package/dist/mint-components/p-349d8437.system.js +1 -0
- package/dist/mint-components/{p-654cdee8.entry.js → p-3bf958d5.entry.js} +6 -5
- package/dist/mint-components/{p-3ada35f5.entry.js → p-4d3846cc.entry.js} +1 -1
- package/dist/mint-components/{p-294cdfbb.entry.js → p-64802b9e.entry.js} +2 -2
- package/dist/mint-components/{p-c51ea96f.system.entry.js → p-6b8236b3.system.entry.js} +1 -1
- package/dist/mint-components/p-815765ec.system.js +1 -0
- package/dist/mint-components/p-81e7d1b8.system.entry.js +1 -0
- package/dist/mint-components/p-9d05ad74.js +1 -0
- package/dist/mint-components/p-a6920cc9.system.entry.js +1 -0
- package/dist/mint-components/p-a7678b0f.js +499 -0
- package/dist/mint-components/{p-45230a44.js → p-aa69a316.js} +2 -2
- package/dist/mint-components/{p-cc3a9940.system.entry.js → p-aad907a4.system.entry.js} +1 -1
- package/dist/mint-components/p-b27f98f1.js +108 -0
- package/dist/mint-components/p-bfb00685.system.js +1 -1
- package/dist/mint-components/{p-826e3db0.system.js → p-c5efdac3.system.js} +1 -1
- package/dist/mint-components/{p-0fac00b8.system.entry.js → p-cb4acd7f.system.entry.js} +1 -1
- package/dist/mint-components/p-ea7218d3.system.js +6 -0
- package/dist/mint-components/{p-ab796390.entry.js → p-f8a006f8.entry.js} +2 -2
- package/dist/mint-components/p-ff8b3b02.js +1 -0
- package/dist/types/components/sqm-coupon-code/sqm-coupon-code.d.ts +1 -1
- package/dist/types/components/sqm-empty/sqm-empty.d.ts +1 -1
- package/dist/types/components/sqm-form-message/sqm-form-message.d.ts +2 -0
- package/dist/types/components/sqm-instant-access-registration/sqm-instant-access-registration.d.ts +1 -0
- package/dist/types/components/sqm-lead-form/sqm-lead-checkbox-field.d.ts +2 -0
- package/dist/types/components/sqm-lead-form/sqm-lead-dropdown-field.d.ts +2 -0
- package/dist/types/components/sqm-lead-form/sqm-lead-input-field.d.ts +2 -0
- package/dist/types/components/sqm-partner-info-modal/PartnerInfoModal.stories.d.ts +1 -0
- package/dist/types/components/sqm-partner-info-modal/sqm-partner-info-modal-view.d.ts +3 -0
- package/dist/types/components/sqm-partner-info-modal/sqm-partner-info-modal.d.ts +10 -0
- package/dist/types/components/sqm-portal-google-login/sqm-portal-google-login.d.ts +6 -0
- package/dist/types/components/sqm-portal-google-registration-form/sqm-portal-google-registration-form.d.ts +3 -0
- package/dist/types/components/sqm-referral-codes/useReferralCodes.d.ts +2 -0
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.d.ts +0 -1
- package/dist/types/components/sqm-referral-table/sqm-referral-table.d.ts +1 -0
- package/dist/types/components/sqm-referred-registration/sqm-referred-registration.d.ts +1 -0
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.d.ts +0 -3
- package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +3 -0
- package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +1 -2
- package/dist/types/components/sqm-titled-section/sqm-titled-section.d.ts +1 -0
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +8 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +2 -1
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +2 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/TaxAndCashDashboardView.stories.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +1 -0
- package/dist/types/components/tax-and-cash/utils.d.ts +4 -1
- package/dist/types/components.d.ts +30 -0
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +2 -2
- package/dist/esm-es5/ShadowViewAddon-86b5e986.js +0 -1
- package/dist/esm-es5/sqm-partner-info-modal-view-b921fed1.js +0 -1
- package/dist/esm-es5/sqm-user-info-form-view-72afa9af.js +0 -1
- package/dist/mint-components/p-07b989a3.system.js +0 -6
- package/dist/mint-components/p-0ae26286.system.entry.js +0 -1
- package/dist/mint-components/p-288249ae.system.entry.js +0 -1
- package/dist/mint-components/p-714c5ef8.js +0 -1
- package/dist/mint-components/p-b1feb0f1.js +0 -108
- package/dist/mint-components/p-bdfdee11.entry.js +0 -1
- package/dist/mint-components/p-bfb9b01a.system.entry.js +0 -1
- package/dist/mint-components/p-d10ac7eb.system.js +0 -1
- package/dist/mint-components/p-d570bdde.system.js +0 -1
- package/dist/mint-components/p-db73312a.system.js +0 -1
- package/dist/mint-components/p-f75ead20.js +0 -1
- package/dist/mint-components/p-ffcbe239.js +0 -499
|
@@ -10,12 +10,12 @@ const jsonpointer = require('./jsonpointer-11327262.js');
|
|
|
10
10
|
const cjs = require('./cjs-1066ec21.js');
|
|
11
11
|
const utils = require('./utils-6847bc06.js');
|
|
12
12
|
const JSS = require('./JSS-8503a151.js');
|
|
13
|
-
require('./useReferralCodes-
|
|
13
|
+
require('./useReferralCodes-1bfc02eb.js');
|
|
14
14
|
require('./mixins-4761d472.js');
|
|
15
15
|
const copyTextView = require('./copy-text-view-bb2c0ea7.js');
|
|
16
16
|
require('./sqm-text-span-view-b9e10f5d.js');
|
|
17
17
|
const AsYouType = require('./AsYouType-d15caac8.js');
|
|
18
|
-
const subregions = require('./subregions-
|
|
18
|
+
const subregions = require('./subregions-cd5c7ad6.js');
|
|
19
19
|
const useRegistrationFormState = require('./useRegistrationFormState-4fe5b770.js');
|
|
20
20
|
const sqmPortalRegistrationFormView = require('./sqm-portal-registration-form-view-a45f7a52.js');
|
|
21
21
|
const usePortalRegistrationForm = require('./usePortalRegistrationForm-8a3a14ac.js');
|
|
@@ -29,12 +29,12 @@ const useInstantAccessRegistration = require('./useInstantAccessRegistration-239
|
|
|
29
29
|
const useLeadFormState = require('./useLeadFormState-bf49984b.js');
|
|
30
30
|
const utilities = require('./utilities-fcdb9504.js');
|
|
31
31
|
const ErrorView = require('./ErrorView-17578c10.js');
|
|
32
|
-
const ShadowViewAddon = require('./ShadowViewAddon-
|
|
32
|
+
const ShadowViewAddon = require('./ShadowViewAddon-795963e8.js');
|
|
33
33
|
require('./sqm-portal-container-view-757f921b.js');
|
|
34
34
|
const data = require('./data-04ef5511.js');
|
|
35
35
|
const keys = require('./keys-5a2c9ed2.js');
|
|
36
36
|
require('./eventKeys-7af4df4d.js');
|
|
37
|
-
const useIndirectTaxForm = require('./useIndirectTaxForm-
|
|
37
|
+
const useIndirectTaxForm = require('./useIndirectTaxForm-ed4df485.js');
|
|
38
38
|
const parseStates = require('./parseStates-d1effc19.js');
|
|
39
39
|
|
|
40
40
|
/**
|
|
@@ -3082,17 +3082,6 @@ function PayoutStatusAlertView(props) {
|
|
|
3082
3082
|
alertType: "warning",
|
|
3083
3083
|
icon: "exclamation-triangle",
|
|
3084
3084
|
};
|
|
3085
|
-
case "BALANCE_UNDER_THRESHOLD":
|
|
3086
|
-
return {
|
|
3087
|
-
header: text.balanceUnderThresholdHeader,
|
|
3088
|
-
description: global.intl.formatMessage({
|
|
3089
|
-
id: "balanceUnderThresholdDescription",
|
|
3090
|
-
defaultMessage: text.balanceUnderThresholdDescription,
|
|
3091
|
-
}, { minPayoutAmount: states.minPayoutAmount }),
|
|
3092
|
-
buttonText: null,
|
|
3093
|
-
alertType: "info",
|
|
3094
|
-
icon: "info-circle",
|
|
3095
|
-
};
|
|
3096
3085
|
case "PAYMENT_HOLD_ON_CHANGE":
|
|
3097
3086
|
return {
|
|
3098
3087
|
header: text.paymentHoldOnChangeHeader,
|
|
@@ -3220,16 +3209,23 @@ function PayoutStatusAlertView(props) {
|
|
|
3220
3209
|
}
|
|
3221
3210
|
}
|
|
3222
3211
|
const alertDetails = getAlert(states.status);
|
|
3223
|
-
|
|
3212
|
+
const showHoldAlert = states.status !== "DONE" && !!alertDetails;
|
|
3213
|
+
if (!showHoldAlert && !states.belowPayoutThreshold) {
|
|
3224
3214
|
return index.h("div", null);
|
|
3225
3215
|
}
|
|
3226
3216
|
return (index.h("div", { part: "sqm-base" },
|
|
3227
3217
|
index.h("style", { type: "text/css" }, styleString$2),
|
|
3228
3218
|
index.h("style", { type: "text/css" }, vanillaStyle$1),
|
|
3229
|
-
index.h("sqm-form-message", { loading: states.loading, type:
|
|
3219
|
+
states.belowPayoutThreshold && (index.h("sqm-form-message", { loading: states.loading, type: "info" },
|
|
3220
|
+
index.h("p", { part: "alert-title" }, text.balanceUnderThresholdHeader),
|
|
3221
|
+
index.h("p", { part: "alert-description" }, global.intl.formatMessage({
|
|
3222
|
+
id: "balanceUnderThresholdDescription",
|
|
3223
|
+
defaultMessage: text.balanceUnderThresholdDescription,
|
|
3224
|
+
}, { minPayoutAmount: states.minPayoutAmount })))),
|
|
3225
|
+
showHoldAlert && (index.h("sqm-form-message", { loading: states.loading, type: alertDetails.alertType },
|
|
3230
3226
|
index.h("p", { part: "alert-title" }, alertDetails.header),
|
|
3231
3227
|
index.h("p", { part: "alert-description" }, alertDetails.description),
|
|
3232
|
-
getButton(states.status))));
|
|
3228
|
+
getButton(states.status)))));
|
|
3233
3229
|
}
|
|
3234
3230
|
|
|
3235
3231
|
const PayoutStatusAlert = class {
|
|
@@ -8643,6 +8639,12 @@ const WidgetVerification = class {
|
|
|
8643
8639
|
* @uiWidget textArea
|
|
8644
8640
|
*/
|
|
8645
8641
|
this.createPartnerStep_networkErrorText = "An error occurred. Please try again.";
|
|
8642
|
+
/**
|
|
8643
|
+
* @uiName Email verification error text
|
|
8644
|
+
* @uiGroup Partner Creation Step
|
|
8645
|
+
* @uiWidget textArea
|
|
8646
|
+
*/
|
|
8647
|
+
this.createPartnerStep_emailVerificationErrorText = "Please log in to {loginLinkText} to review your account status. You may need to complete email verification or other pending steps. Once resolved, refresh this page to proceed.";
|
|
8646
8648
|
/**
|
|
8647
8649
|
* @uiName Missing fields error text
|
|
8648
8650
|
* @uiGroup Partner Creation Step
|
|
@@ -8681,12 +8683,12 @@ const WidgetVerification = class {
|
|
|
8681
8683
|
const dialogLabel = this.general_widgetHeaderWithPartnerCreation;
|
|
8682
8684
|
const renderStepContent = () => {
|
|
8683
8685
|
if (props.showPartnerModal) {
|
|
8684
|
-
return (index.h("sqm-partner-info-modal", Object.assign({ inModal: true }, partnerText, { stateController: props["sqm-partner-info-modal_stateController"] || "{}" })));
|
|
8686
|
+
return (index.h("sqm-partner-info-modal", Object.assign({ inModal: true }, partnerText, { stateController: props["sqm-partner-info-modal_stateController"] || "{}", exportparts: "sqm-base: step-base, primarybutton-base" })));
|
|
8685
8687
|
}
|
|
8686
8688
|
if (props.showCode) {
|
|
8687
|
-
return (index.h("sqm-code-verification", Object.assign({ onVerification: props.onVerification }, this.getStepTextProps("codeStep_"), extractProps(props, "sqm-code-verification_"))));
|
|
8689
|
+
return (index.h("sqm-code-verification", Object.assign({ onVerification: props.onVerification }, this.getStepTextProps("codeStep_"), extractProps(props, "sqm-code-verification_"), { exportparts: "sqm-base: step-base, primarybutton-base" })));
|
|
8688
8690
|
}
|
|
8689
|
-
return (index.h("sqm-email-verification", Object.assign({}, this.getStepTextProps("emailStep_"), extractProps(props, "sqm-email-verification_"))));
|
|
8691
|
+
return (index.h("sqm-email-verification", Object.assign({}, this.getStepTextProps("emailStep_"), extractProps(props, "sqm-email-verification_"), { exportparts: "sqm-base: step-base, primarybutton-base" })));
|
|
8690
8692
|
};
|
|
8691
8693
|
return (index.h("div", null, index.h("style", { type: "text/css" }, styleString$3), index.h("sl-dialog", { class: sheet$3.classes.Dialog, noHeader: true, open: true, label: dialogLabel, "onSl-request-close": (e) => {
|
|
8692
8694
|
e.preventDefault();
|
|
@@ -11,7 +11,7 @@ const utils = require('./utils-6847bc06.js');
|
|
|
11
11
|
const JSS = require('./JSS-8503a151.js');
|
|
12
12
|
const sqmTextSpanView = require('./sqm-text-span-view-b9e10f5d.js');
|
|
13
13
|
const data = require('./data-04ef5511.js');
|
|
14
|
-
const sqmPartnerInfoModalView = require('./sqm-partner-info-modal-view-
|
|
14
|
+
const sqmPartnerInfoModalView = require('./sqm-partner-info-modal-view-e97ce8ef.js');
|
|
15
15
|
const keys = require('./keys-5a2c9ed2.js');
|
|
16
16
|
const eventKeys = require('./eventKeys-7af4df4d.js');
|
|
17
17
|
const parseStates = require('./parseStates-d1effc19.js');
|
|
@@ -441,6 +441,7 @@ const GET_USER_PARTNER_INFO = index_module.dist.gql `
|
|
|
441
441
|
impactConnection {
|
|
442
442
|
connected
|
|
443
443
|
connectionStatus
|
|
444
|
+
emailCanBeUsed
|
|
444
445
|
publisher {
|
|
445
446
|
id
|
|
446
447
|
countryCode
|
|
@@ -607,7 +608,6 @@ function usePartnerInfoModal(props) {
|
|
|
607
608
|
return;
|
|
608
609
|
setCountryCode(value);
|
|
609
610
|
setCurrency("");
|
|
610
|
-
setError("");
|
|
611
611
|
}
|
|
612
612
|
function onCurrencyChange(e) {
|
|
613
613
|
var _a, _b;
|
|
@@ -615,7 +615,6 @@ function usePartnerInfoModal(props) {
|
|
|
615
615
|
if (!value)
|
|
616
616
|
return;
|
|
617
617
|
setCurrency(value);
|
|
618
|
-
setError("");
|
|
619
618
|
}
|
|
620
619
|
function onCheckboxChange(e) {
|
|
621
620
|
const checked = e.target.checked;
|
|
@@ -672,6 +671,7 @@ function usePartnerInfoModal(props) {
|
|
|
672
671
|
const showModal = !success &&
|
|
673
672
|
!userLoading &&
|
|
674
673
|
(impactConnection === null || impactConnection === void 0 ? void 0 : impactConnection.connectionStatus) === "NOT_STARTED";
|
|
674
|
+
const emailCanBeUsed = (impactConnection === null || impactConnection === void 0 ? void 0 : impactConnection.emailCanBeUsed) !== false;
|
|
675
675
|
return {
|
|
676
676
|
states: {
|
|
677
677
|
open: showModal,
|
|
@@ -684,11 +684,12 @@ function usePartnerInfoModal(props) {
|
|
|
684
684
|
countryCode,
|
|
685
685
|
currency,
|
|
686
686
|
error,
|
|
687
|
+
emailCanBeUsed,
|
|
687
688
|
success,
|
|
688
689
|
filteredCountries: filteredCountries || [],
|
|
689
690
|
filteredCurrencies: filteredCurrencies || [],
|
|
690
691
|
allowBankingCollection,
|
|
691
|
-
disabled: userLoading || connectLoading,
|
|
692
|
+
disabled: userLoading || connectLoading || !emailCanBeUsed,
|
|
692
693
|
},
|
|
693
694
|
callbacks: {
|
|
694
695
|
onFirstNameChange,
|
|
@@ -794,6 +795,15 @@ const PartnerInfoModal = class {
|
|
|
794
795
|
* @uiWidget textArea
|
|
795
796
|
*/
|
|
796
797
|
this.networkErrorText = "An error occurred. Please try again.";
|
|
798
|
+
/**
|
|
799
|
+
* @uiName Email verification error text
|
|
800
|
+
* @uiWidget textArea
|
|
801
|
+
*/
|
|
802
|
+
this.emailVerificationErrorText = "Please log in to {loginLinkText} to review your account status. You may need to complete email verification or other pending steps. Once resolved, refresh this page to proceed.";
|
|
803
|
+
/**
|
|
804
|
+
* @uiName login link text
|
|
805
|
+
*/
|
|
806
|
+
this.loginLinkText = "impact.com";
|
|
797
807
|
/**
|
|
798
808
|
* @uiName Missing fields error text
|
|
799
809
|
* @uiWidget textArea
|
|
@@ -848,6 +858,7 @@ function useDemoPartnerInfoModal(props) {
|
|
|
848
858
|
filteredCountries: [],
|
|
849
859
|
filteredCurrencies: [],
|
|
850
860
|
allowBankingCollection,
|
|
861
|
+
emailCanBeUsed: true,
|
|
851
862
|
disabled: false,
|
|
852
863
|
},
|
|
853
864
|
callbacks: {
|
|
@@ -893,6 +904,8 @@ function useDemoPartnerInfoModal(props) {
|
|
|
893
904
|
supportDescriptionExistingPartner: props.supportDescriptionExistingPartner,
|
|
894
905
|
supportLink: props.supportLink,
|
|
895
906
|
modalHeaderExistingPartner: props.modalHeaderExistingPartner,
|
|
907
|
+
emailVerificationErrorText: props.emailVerificationErrorText,
|
|
908
|
+
loginLinkText: props.loginLinkText,
|
|
896
909
|
},
|
|
897
910
|
}, props.demoData || stateOverride, { arrayMerge: (_, a) => a });
|
|
898
911
|
}
|
|
@@ -29,16 +29,16 @@ const FormMessage = class {
|
|
|
29
29
|
return index.h("sqm-skeleton", { height: "90px", width: "100%" });
|
|
30
30
|
}
|
|
31
31
|
if (this.type === "error") {
|
|
32
|
-
return (index.h("sl-alert", { exportparts: "base: erroralert-base, icon:erroralert-icon", class: `Error ${this.transparent ? "Transparent" : ""}`, type: "danger", open: true }, index.h("sl-icon", { id: "icon", slot: "icon", name: `${this.icon ? this.icon : "exclamation-octagon"}` }), index.h("slot", null)));
|
|
32
|
+
return (index.h("sl-alert", { exportparts: "base: erroralert-base, icon:erroralert-icon, base: alert-base, icon: alert-icon", class: `Error ${this.transparent ? "Transparent" : ""}`, type: "danger", open: true }, index.h("sl-icon", { id: "icon", slot: "icon", name: `${this.icon ? this.icon : "exclamation-octagon"}` }), index.h("slot", null)));
|
|
33
33
|
}
|
|
34
34
|
else if (this.type === "info") {
|
|
35
|
-
return (index.h("sl-alert", { id: "icon", exportparts: "base: infoalert-base, icon:infoalert-icon", class: `Info ${this.transparent ? "Transparent" : ""}`, type: "info", open: true }, index.h("sl-icon", { id: "icon", slot: "icon", name: `${this.icon ? this.icon : "info-circle"}` }), index.h("slot", null)));
|
|
35
|
+
return (index.h("sl-alert", { id: "icon", exportparts: "base: infoalert-base, icon:infoalert-icon, base: alert-base, icon: alert-icon", class: `Info ${this.transparent ? "Transparent" : ""}`, type: "info", open: true }, index.h("sl-icon", { id: "icon", slot: "icon", name: `${this.icon ? this.icon : "info-circle"}` }), index.h("slot", null)));
|
|
36
36
|
}
|
|
37
37
|
else if (this.type === "warning") {
|
|
38
|
-
return (index.h("sl-alert", { exportparts: "base: warningalert-base, icon:warningalert-icon", class: `Warning ${this.transparent ? "Transparent" : ""}`, type: "warning", open: true }, index.h("sl-icon", { id: "icon", slot: "icon", name: `${this.icon ? this.icon : "exclamation-triangle"}` }), index.h("slot", null)));
|
|
38
|
+
return (index.h("sl-alert", { exportparts: "base: warningalert-base, icon:warningalert-icon, base: alert-base, icon: alert-icon", class: `Warning ${this.transparent ? "Transparent" : ""}`, type: "warning", open: true }, index.h("sl-icon", { id: "icon", slot: "icon", name: `${this.icon ? this.icon : "exclamation-triangle"}` }), index.h("slot", null)));
|
|
39
39
|
}
|
|
40
40
|
else {
|
|
41
|
-
return (index.h("sl-alert", { exportparts: "base: successalert-base, icon:successalert-icon", class: `Success ${this.transparent ? "Transparent" : ""}`, type: "success", open: true }, index.h("sl-icon", { id: "icon", slot: "icon", name: `${this.icon ? this.icon : "check2-circle"}` }), index.h("slot", null)));
|
|
41
|
+
return (index.h("sl-alert", { exportparts: "base: successalert-base, icon:successalert-icon, base: alert-base, icon: alert-icon", class: `Success ${this.transparent ? "Transparent" : ""}`, type: "success", open: true }, index.h("sl-icon", { id: "icon", slot: "icon", name: `${this.icon ? this.icon : "check2-circle"}` }), index.h("slot", null)));
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
};
|
|
@@ -9,7 +9,7 @@ const index_module = require('./index.module-f8c8495f.js');
|
|
|
9
9
|
const cjs = require('./cjs-1066ec21.js');
|
|
10
10
|
const utils = require('./utils-6847bc06.js');
|
|
11
11
|
const JSS = require('./JSS-8503a151.js');
|
|
12
|
-
const useReferralCodes = require('./useReferralCodes-
|
|
12
|
+
const useReferralCodes = require('./useReferralCodes-1bfc02eb.js');
|
|
13
13
|
require('./mixins-4761d472.js');
|
|
14
14
|
const copyTextView = require('./copy-text-view-bb2c0ea7.js');
|
|
15
15
|
|
package/dist/cjs/{sqm-partner-info-modal-view-d9b61d54.js → sqm-partner-info-modal-view-e97ce8ef.js}
RENAMED
|
@@ -84,16 +84,22 @@ function PartnerInfoModalContentView(props) {
|
|
|
84
84
|
const { states, callbacks, text } = props;
|
|
85
85
|
const sheet = JSS.createStyleSheet(style);
|
|
86
86
|
const styleString = sheet.toString();
|
|
87
|
+
const emailVerificationMessage = global.intl.formatMessage({
|
|
88
|
+
id: "emailVerificationErrorText",
|
|
89
|
+
defaultMessage: text.emailVerificationErrorText,
|
|
90
|
+
}, {
|
|
91
|
+
loginLinkText: (index.h("a", { target: "_blank", href: `https://app.impact.com/login.user` }, text.loginLinkText)),
|
|
92
|
+
});
|
|
87
93
|
const supportMessage = global.intl.formatMessage({
|
|
88
94
|
id: "supportDescriptionExistingPartner",
|
|
89
95
|
defaultMessage: text.supportDescriptionExistingPartner,
|
|
90
96
|
}, {
|
|
91
97
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
92
98
|
});
|
|
93
|
-
const description = states.isExistingPartner ? (index.h("span", { class: sheet.classes.DescriptionContainer },
|
|
99
|
+
const description = states.isExistingPartner || !states.emailCanBeUsed ? (index.h("span", { class: sheet.classes.DescriptionContainer },
|
|
94
100
|
index.h("p", null, text.descriptionExistingPartner),
|
|
95
101
|
index.h("p", null, supportMessage))) : (index.h("p", { class: sheet.classes.DescriptionContainer }, text.descriptionNewPartner));
|
|
96
|
-
const buttonLabel = states.isExistingPartner
|
|
102
|
+
const buttonLabel = states.isExistingPartner || !states.emailCanBeUsed
|
|
97
103
|
? text.confirmButtonLabel
|
|
98
104
|
: text.submitButtonLabel;
|
|
99
105
|
const bankingCollectionText = global.intl.formatMessage({
|
|
@@ -102,32 +108,39 @@ function PartnerInfoModalContentView(props) {
|
|
|
102
108
|
}, {
|
|
103
109
|
termsAndConditionsLink: (index.h("a", { href: text.termsAndConditionsLink, target: "_blank" }, text.termsAndConditionsLabel)),
|
|
104
110
|
});
|
|
105
|
-
return (index.h("div",
|
|
111
|
+
return (index.h("div", { part: "sqm-base" },
|
|
106
112
|
index.h("style", { type: "text/css" }, styleString),
|
|
107
113
|
index.h("div", { class: sheet.classes.FormFields },
|
|
108
114
|
description,
|
|
109
115
|
states.shouldDisplayNameFields && (index.h(index.Fragment, null,
|
|
110
|
-
index.h("sl-input", { exportparts: "label: input-label, base: input-base", class: sheet.classes.NameInput, label: "First Name", value: states.firstName, "onSl-input": callbacks.onFirstNameChange, disabled: states.submitting, required: true }),
|
|
111
|
-
index.h("sl-input", { exportparts: "label: input-label, base: input-base", class: sheet.classes.NameInput, label: "Last Name", value: states.lastName, "onSl-input": callbacks.onLastNameChange, disabled: states.submitting, required: true }))),
|
|
116
|
+
index.h("sl-input", { exportparts: "label: input-label, base: input-base", class: sheet.classes.NameInput, label: "First Name", value: states.firstName, "onSl-input": callbacks.onFirstNameChange, disabled: states.submitting || !states.emailCanBeUsed, required: true }),
|
|
117
|
+
index.h("sl-input", { exportparts: "label: input-label, base: input-base", class: sheet.classes.NameInput, label: "Last Name", value: states.lastName, "onSl-input": callbacks.onLastNameChange, disabled: states.submitting || !states.emailCanBeUsed, required: true }))),
|
|
112
118
|
index.h("sl-select", { exportparts: "label: input-label, base: input-base, menu: select-menu", label: text.countryLabel, value: states.countryCode, disabled: states.submitting ||
|
|
119
|
+
!states.emailCanBeUsed ||
|
|
113
120
|
(!!states.countryCode && states.isExistingPartner), required: true, hoist: true, "onSl-select": callbacks.onCountryChange },
|
|
114
121
|
index.h("sl-input", { class: sheet.classes.SearchInput, placeholder: text.searchCountryPlaceholder, onKeyDown: (e) => e.stopPropagation(), "onSl-input": (e) => {
|
|
115
122
|
var _a;
|
|
116
123
|
callbacks.setCountrySearch((_a = e.target) === null || _a === void 0 ? void 0 : _a.value);
|
|
117
124
|
} }),
|
|
118
125
|
index.h("div", { class: sheet.classes.SelectMenu }, (_a = states.filteredCountries) === null || _a === void 0 ? void 0 : _a.map((c) => (index.h("sl-menu-item", { value: c.countryCode }, c.displayName))))),
|
|
119
|
-
index.h("sl-select", { exportparts: "label: input-label, base: input-base", label: text.currencyLabel, value: states.currency, disabled: states.submitting ||
|
|
126
|
+
index.h("sl-select", { exportparts: "label: input-label, base: input-base", label: text.currencyLabel, value: states.currency, disabled: states.submitting ||
|
|
127
|
+
!states.emailCanBeUsed ||
|
|
128
|
+
(!!states.currency && states.isExistingPartner), required: true, hoist: true, "onSl-select": callbacks.onCurrencyChange },
|
|
120
129
|
index.h("sl-input", { class: sheet.classes.SearchInput, placeholder: text.searchCurrencyPlaceholder, onKeyDown: (e) => e.stopPropagation(), "onSl-input": (e) => { var _a; return callbacks.setCurrencySearch((_a = e.target) === null || _a === void 0 ? void 0 : _a.value); } }),
|
|
121
130
|
index.h("div", { class: sheet.classes.SelectMenu }, (_b = states.filteredCurrencies) === null || _b === void 0 ? void 0 : _b.map((c) => (index.h("sl-menu-item", { value: c.currencyCode },
|
|
122
131
|
c.currencyCode,
|
|
123
132
|
" - ",
|
|
124
133
|
c.displayName))))),
|
|
125
134
|
index.h("div", { class: sheet.classes.CheckboxWrapper },
|
|
126
|
-
index.h("sl-checkbox", { class: sheet.classes.Checkbox, checked: states.allowBankingCollection === true, "onSl-change": callbacks.onCheckboxChange, disabled: states.submitting, required: true, value: states.allowBankingCollection, id: "allowBankingCollection", name: "/allowBankingCollection" }, bankingCollectionText))),
|
|
135
|
+
index.h("sl-checkbox", { class: sheet.classes.Checkbox, checked: states.allowBankingCollection === true, "onSl-change": callbacks.onCheckboxChange, disabled: states.submitting || !states.emailCanBeUsed, required: true, value: states.allowBankingCollection, id: "allowBankingCollection", name: "/allowBankingCollection" }, bankingCollectionText))),
|
|
127
136
|
states.error && (index.h("div", { class: sheet.classes.ErrorMessage },
|
|
128
137
|
index.h("sqm-form-message", { class: sheet.classes.ErrorMessage, type: "error" },
|
|
129
138
|
index.h("p", { part: "alert-description" }, states.error)))),
|
|
139
|
+
!states.emailCanBeUsed && (index.h("div", { class: sheet.classes.ErrorMessage },
|
|
140
|
+
index.h("sqm-form-message", { type: "error" },
|
|
141
|
+
index.h("p", { part: "alert-description" }, emailVerificationMessage)))),
|
|
130
142
|
index.h("sl-button", { slot: "footer", type: "primary", loading: states.submitting, disabled: states.submitting ||
|
|
143
|
+
!states.emailCanBeUsed ||
|
|
131
144
|
!states.countryCode ||
|
|
132
145
|
!states.currency ||
|
|
133
146
|
!states.allowBankingCollection ||
|
|
@@ -140,7 +153,7 @@ function PartnerInfoModalView(props) {
|
|
|
140
153
|
const styleString = sheet.toString();
|
|
141
154
|
if (!states.open)
|
|
142
155
|
return index.h("div", null);
|
|
143
|
-
const modalHeader = states.isExistingPartner
|
|
156
|
+
const modalHeader = states.isExistingPartner || !states.emailCanBeUsed
|
|
144
157
|
? text.modalHeaderExistingPartner
|
|
145
158
|
: text.modalHeader;
|
|
146
159
|
return (index.h("div", null,
|
|
@@ -8,7 +8,7 @@ const index_module = require('./index.module-f8c8495f.js');
|
|
|
8
8
|
const cjs = require('./cjs-1066ec21.js');
|
|
9
9
|
const utils = require('./utils-6847bc06.js');
|
|
10
10
|
require('./JSS-8503a151.js');
|
|
11
|
-
const useReferralCodes = require('./useReferralCodes-
|
|
11
|
+
const useReferralCodes = require('./useReferralCodes-1bfc02eb.js');
|
|
12
12
|
require('./ErrorView-17578c10.js');
|
|
13
13
|
const sqmQrCodeView = require('./sqm-qr-code-view-0d43424e.js');
|
|
14
14
|
|
|
@@ -9,13 +9,13 @@ const index_module = require('./index.module-f8c8495f.js');
|
|
|
9
9
|
require('./cjs-1066ec21.js');
|
|
10
10
|
require('./utils-6847bc06.js');
|
|
11
11
|
const JSS = require('./JSS-8503a151.js');
|
|
12
|
-
require('./useReferralCodes-
|
|
12
|
+
require('./useReferralCodes-1bfc02eb.js');
|
|
13
13
|
require('./mixins-4761d472.js');
|
|
14
14
|
const copyTextView = require('./copy-text-view-bb2c0ea7.js');
|
|
15
15
|
require('./sqm-text-span-view-b9e10f5d.js');
|
|
16
16
|
const sqmPortalVerifyEmailView = require('./sqm-portal-verify-email-view-a679a0a7.js');
|
|
17
17
|
require('./AsYouType-d15caac8.js');
|
|
18
|
-
const subregions = require('./subregions-
|
|
18
|
+
const subregions = require('./subregions-cd5c7ad6.js');
|
|
19
19
|
const sqmPortalRegistrationFormView = require('./sqm-portal-registration-form-view-a45f7a52.js');
|
|
20
20
|
const GenericTableView = require('./GenericTableView-4c48c630.js');
|
|
21
21
|
require('./useChildElements-041127d7.js');
|
|
@@ -35,12 +35,12 @@ require('./utilities-fcdb9504.js');
|
|
|
35
35
|
const sqmPortalResetPasswordView = require('./sqm-portal-reset-password-view-b2c546bd.js');
|
|
36
36
|
require('./ErrorView-17578c10.js');
|
|
37
37
|
const sqmQrCodeView = require('./sqm-qr-code-view-0d43424e.js');
|
|
38
|
-
const ShadowViewAddon = require('./ShadowViewAddon-
|
|
38
|
+
const ShadowViewAddon = require('./ShadowViewAddon-795963e8.js');
|
|
39
39
|
const sqmPortalContainerView = require('./sqm-portal-container-view-757f921b.js');
|
|
40
|
-
const sqmUserInfoFormView = require('./sqm-user-info-form-view-
|
|
40
|
+
const sqmUserInfoFormView = require('./sqm-user-info-form-view-e725523f.js');
|
|
41
41
|
const sqmLeadInputFieldView = require('./sqm-lead-input-field-view-88de1b78.js');
|
|
42
42
|
require('./data-04ef5511.js');
|
|
43
|
-
const sqmPartnerInfoModalView = require('./sqm-partner-info-modal-view-
|
|
43
|
+
const sqmPartnerInfoModalView = require('./sqm-partner-info-modal-view-e97ce8ef.js');
|
|
44
44
|
|
|
45
45
|
/**
|
|
46
46
|
* lodash (Custom Build) <https://lodash.com/>
|
|
@@ -16661,7 +16661,14 @@ const AccountUnderReview = () => (index.h(sqmUserInfoFormView.TaxAndCashDashboar
|
|
|
16661
16661
|
const PaymentHoldOnChange = () => (index.h(sqmUserInfoFormView.TaxAndCashDashboardView, { states: { ...baseStates, payoutStatus: "PAYMENT_HOLD_ON_CHANGE" }, text: defaultText, callbacks: defaultCallbacks$1, slots: defaultSlots }));
|
|
16662
16662
|
const BalanceUnderThreshold = () => (index.h(sqmUserInfoFormView.TaxAndCashDashboardView, { states: {
|
|
16663
16663
|
...baseStates,
|
|
16664
|
-
payoutStatus: "
|
|
16664
|
+
payoutStatus: "DONE",
|
|
16665
|
+
belowPayoutThreshold: true,
|
|
16666
|
+
minPayoutAmount: "USD50.00",
|
|
16667
|
+
}, text: defaultText, callbacks: defaultCallbacks$1, slots: buildSlots({ belowPayoutThreshold: true }) }));
|
|
16668
|
+
const BalanceUnderThresholdWithHold = () => (index.h(sqmUserInfoFormView.TaxAndCashDashboardView, { states: {
|
|
16669
|
+
...baseStates,
|
|
16670
|
+
payoutStatus: "NEW_PAYEE_REVIEW",
|
|
16671
|
+
belowPayoutThreshold: true,
|
|
16665
16672
|
minPayoutAmount: "USD50.00",
|
|
16666
16673
|
}, text: defaultText, callbacks: defaultCallbacks$1, slots: buildSlots({ belowPayoutThreshold: true }) }));
|
|
16667
16674
|
const BeneficiaryNameInvalid = () => (index.h(sqmUserInfoFormView.TaxAndCashDashboardView, { states: { ...baseStates, payoutStatus: "BENEFICIARY_NAME_INVALID" }, text: defaultText, callbacks: defaultCallbacks$1, slots: defaultSlots }));
|
|
@@ -16696,6 +16703,7 @@ const TaxAndCashDashboardView = /*#__PURE__*/Object.freeze({
|
|
|
16696
16703
|
AccountUnderReview: AccountUnderReview,
|
|
16697
16704
|
PaymentHoldOnChange: PaymentHoldOnChange,
|
|
16698
16705
|
BalanceUnderThreshold: BalanceUnderThreshold,
|
|
16706
|
+
BalanceUnderThresholdWithHold: BalanceUnderThresholdWithHold,
|
|
16699
16707
|
BeneficiaryNameInvalid: BeneficiaryNameInvalid,
|
|
16700
16708
|
BeneficiaryNameMismatch: BeneficiaryNameMismatch,
|
|
16701
16709
|
BankTaxNameMismatch: BankTaxNameMismatch,
|
|
@@ -17927,7 +17935,8 @@ const TaxAndCashDashboardBalanceUnderThreshold = () => {
|
|
|
17927
17935
|
return (index.h("sqm-tax-and-cash-dashboard", { demoData: {
|
|
17928
17936
|
...dashboardProps,
|
|
17929
17937
|
states: {
|
|
17930
|
-
payoutStatus: "
|
|
17938
|
+
payoutStatus: "DONE",
|
|
17939
|
+
belowPayoutThreshold: true,
|
|
17931
17940
|
minPayoutAmount: "USD50.00",
|
|
17932
17941
|
veriffLoading: false,
|
|
17933
17942
|
canEditPayoutInfo: true,
|
|
@@ -18377,7 +18386,16 @@ const PaymentHoldOnChange$1 = () => (index.h("sqm-payout-status-alert", { demoDa
|
|
|
18377
18386
|
const BalanceUnderThreshold$1 = () => (index.h("sqm-payout-status-alert", { demoData: {
|
|
18378
18387
|
states: {
|
|
18379
18388
|
...defaultProps$s,
|
|
18380
|
-
status: "
|
|
18389
|
+
status: "DONE",
|
|
18390
|
+
belowPayoutThreshold: true,
|
|
18391
|
+
minPayoutAmount: "USD50.00",
|
|
18392
|
+
},
|
|
18393
|
+
} }));
|
|
18394
|
+
const BalanceUnderThresholdWithHold$1 = () => (index.h("sqm-payout-status-alert", { demoData: {
|
|
18395
|
+
states: {
|
|
18396
|
+
...defaultProps$s,
|
|
18397
|
+
status: "NEW_PAYEE_REVIEW",
|
|
18398
|
+
belowPayoutThreshold: true,
|
|
18381
18399
|
minPayoutAmount: "USD50.00",
|
|
18382
18400
|
},
|
|
18383
18401
|
} }));
|
|
@@ -18408,6 +18426,7 @@ const PayoutStatusAlert = /*#__PURE__*/Object.freeze({
|
|
|
18408
18426
|
NewPayeeReview: NewPayeeReview,
|
|
18409
18427
|
PaymentHoldOnChange: PaymentHoldOnChange$1,
|
|
18410
18428
|
BalanceUnderThreshold: BalanceUnderThreshold$1,
|
|
18429
|
+
BalanceUnderThresholdWithHold: BalanceUnderThresholdWithHold$1,
|
|
18411
18430
|
BeneficiaryNameInvalid: BeneficiaryNameInvalid$1,
|
|
18412
18431
|
BeneficiaryNameMismatch: BeneficiaryNameMismatch$1,
|
|
18413
18432
|
BankTaxNameMismatch: BankTaxNameMismatch$1,
|
|
@@ -19380,7 +19399,7 @@ const defaultText$2 = {
|
|
|
19380
19399
|
modalHeader: "Let's get you ready for rewards",
|
|
19381
19400
|
modalHeaderExistingPartner: "We found an existing account",
|
|
19382
19401
|
descriptionNewPartner: "Confirm your country and currency now to get your future rewards faster.",
|
|
19383
|
-
descriptionExistingPartner: "We
|
|
19402
|
+
descriptionExistingPartner: "We found an account with this email on our referral program provider, impact.com. Please confirm your country and currency now to get your future rewards faster.",
|
|
19384
19403
|
supportDescriptionExistingPartner: "If this is a mistake, please contact Support or sign up for this referral program with a different email.",
|
|
19385
19404
|
supportLink: "Support",
|
|
19386
19405
|
countryLabel: "Country",
|
|
@@ -19393,6 +19412,8 @@ const defaultText$2 = {
|
|
|
19393
19412
|
allowBankingCollection: "I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information",
|
|
19394
19413
|
termsAndConditionsLabel: "terms and conditions",
|
|
19395
19414
|
termsAndConditionsLink: "https://terms.advocate.impact.com/PayoutTermsAndConditions.html",
|
|
19415
|
+
emailVerificationErrorText: "Please log in to {loginLinkText} to review your account status. You may need to complete email verification or other pending steps. Once resolved, refresh this page to proceed.",
|
|
19416
|
+
loginLinkText: "impact.com",
|
|
19396
19417
|
};
|
|
19397
19418
|
const defaultProps$y = {
|
|
19398
19419
|
states: {
|
|
@@ -19406,6 +19427,7 @@ const defaultProps$y = {
|
|
|
19406
19427
|
countryCode: "",
|
|
19407
19428
|
currency: "",
|
|
19408
19429
|
error: "",
|
|
19430
|
+
emailCanBeUsed: true,
|
|
19409
19431
|
success: false,
|
|
19410
19432
|
filteredCountries: demoCountries,
|
|
19411
19433
|
filteredCurrencies: demoCurrencies,
|
|
@@ -19500,6 +19522,18 @@ const ValidationError$1 = () => {
|
|
|
19500
19522
|
};
|
|
19501
19523
|
return index.h(sqmPartnerInfoModalView.PartnerInfoModalView, Object.assign({}, props));
|
|
19502
19524
|
};
|
|
19525
|
+
const EmailVerificationRequired = () => {
|
|
19526
|
+
const props = {
|
|
19527
|
+
...defaultProps$y,
|
|
19528
|
+
states: {
|
|
19529
|
+
...defaultProps$y.states,
|
|
19530
|
+
countryCode: "US",
|
|
19531
|
+
currency: "USD",
|
|
19532
|
+
emailCanBeUsed: false,
|
|
19533
|
+
},
|
|
19534
|
+
};
|
|
19535
|
+
return index.h(sqmPartnerInfoModalView.PartnerInfoModalView, Object.assign({}, props));
|
|
19536
|
+
};
|
|
19503
19537
|
const Closed = () => {
|
|
19504
19538
|
const props = {
|
|
19505
19539
|
...defaultProps$y,
|
|
@@ -19565,6 +19599,7 @@ const PartnerInfoModal = /*#__PURE__*/Object.freeze({
|
|
|
19565
19599
|
Submitting: Submitting,
|
|
19566
19600
|
WithError: WithError$3,
|
|
19567
19601
|
ValidationError: ValidationError$1,
|
|
19602
|
+
EmailVerificationRequired: EmailVerificationRequired,
|
|
19568
19603
|
Closed: Closed,
|
|
19569
19604
|
SQMComponentExistingPartner: SQMComponentExistingPartner,
|
|
19570
19605
|
SQMComponentNewPartner: SQMComponentNewPartner,
|
package/dist/cjs/{sqm-user-info-form-view-6a65f1fb.js → sqm-user-info-form-view-e725523f.js}
RENAMED
|
@@ -4,7 +4,7 @@ const index = require('./index-8277cbb3.js');
|
|
|
4
4
|
const global = require('./global-258c36b8.js');
|
|
5
5
|
const JSS = require('./JSS-8503a151.js');
|
|
6
6
|
const AsYouType = require('./AsYouType-d15caac8.js');
|
|
7
|
-
const subregions = require('./subregions-
|
|
7
|
+
const subregions = require('./subregions-cd5c7ad6.js');
|
|
8
8
|
const data = require('./data-04ef5511.js');
|
|
9
9
|
|
|
10
10
|
const style = {
|
|
@@ -336,7 +336,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
336
336
|
}, {
|
|
337
337
|
termsAndConditions: (index.h("a", { target: "_blank", href: `https://terms.advocate.impact.com/PayoutTermsAndConditions.html` }, text.termsAndConditions)),
|
|
338
338
|
}),
|
|
339
|
-
button: (index.h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", onClick: callbacks.onNewFormClick }, text.w9RequiredButtonText)),
|
|
339
|
+
button: (index.h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", exportparts: "base: primarybutton-base", onClick: callbacks.onNewFormClick }, text.w9RequiredButtonText)),
|
|
340
340
|
alertType: "warning",
|
|
341
341
|
icon: "info-circle",
|
|
342
342
|
class: sheet.classes.WarningHoldAlertContainer,
|
|
@@ -424,18 +424,6 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
424
424
|
icon: "exclamation-triangle",
|
|
425
425
|
class: sheet.classes.WarningHoldAlertContainer,
|
|
426
426
|
};
|
|
427
|
-
case "BALANCE_UNDER_THRESHOLD":
|
|
428
|
-
return {
|
|
429
|
-
header: text.balanceUnderThresholdHeader,
|
|
430
|
-
description: global.intl.formatMessage({
|
|
431
|
-
id: "balanceUnderThresholdDescription",
|
|
432
|
-
defaultMessage: text.balanceUnderThresholdDescription,
|
|
433
|
-
}, { minPayoutAmount: states.minPayoutAmount }),
|
|
434
|
-
buttonText: null,
|
|
435
|
-
alertType: "info",
|
|
436
|
-
icon: "info-circle",
|
|
437
|
-
class: sheet.classes.InfoHoldAlertContainer,
|
|
438
|
-
};
|
|
439
427
|
case "PAYMENT_HOLD_ON_CHANGE":
|
|
440
428
|
return {
|
|
441
429
|
header: text.paymentHoldOnChangeHeader,
|
|
@@ -460,8 +448,8 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
460
448
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
461
449
|
}),
|
|
462
450
|
button: (index.h("div", { class: sheet.classes.ButtonContainer },
|
|
463
|
-
index.h("sl-button", { disabled: states.disabled || states.loading, type: "primary", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton),
|
|
464
|
-
index.h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onNewFormClick }, text.newFormButton))),
|
|
451
|
+
index.h("sl-button", { disabled: states.disabled || states.loading, type: "primary", exportparts: "base: primarybutton-base", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton),
|
|
452
|
+
index.h("sl-button", { disabled: states.disabled || states.loading, type: "default", exportparts: "base: secondarybutton-base", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onNewFormClick }, text.newFormButton))),
|
|
465
453
|
alertType: "warning",
|
|
466
454
|
icon: "exclamation-triangle",
|
|
467
455
|
class: sheet.classes.WarningHoldAlertContainer,
|
|
@@ -476,8 +464,8 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
476
464
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
477
465
|
}),
|
|
478
466
|
button: (index.h("div", { class: sheet.classes.ButtonContainer },
|
|
479
|
-
index.h("sl-button", { disabled: states.disabled || states.loading, type: "primary", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton),
|
|
480
|
-
index.h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onNewFormClick }, text.newFormButton))),
|
|
467
|
+
index.h("sl-button", { disabled: states.disabled || states.loading, type: "primary", exportparts: "base: primarybutton-base", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton),
|
|
468
|
+
index.h("sl-button", { disabled: states.disabled || states.loading, type: "default", exportparts: "base: secondarybutton-base", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onNewFormClick }, text.newFormButton))),
|
|
481
469
|
alertType: "warning",
|
|
482
470
|
icon: "exclamation-triangle",
|
|
483
471
|
class: sheet.classes.WarningHoldAlertContainer,
|
|
@@ -492,8 +480,8 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
492
480
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
493
481
|
}),
|
|
494
482
|
button: (index.h("div", { class: sheet.classes.ButtonContainer },
|
|
495
|
-
index.h("sl-button", { disabled: states.disabled || states.loading, type: "primary", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton),
|
|
496
|
-
index.h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onNewFormClick }, text.newFormButton))),
|
|
483
|
+
index.h("sl-button", { disabled: states.disabled || states.loading, type: "primary", exportparts: "base: primarybutton-base", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton),
|
|
484
|
+
index.h("sl-button", { disabled: states.disabled || states.loading, type: "default", exportparts: "base: secondarybutton-base", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onNewFormClick }, text.newFormButton))),
|
|
497
485
|
alertType: "warning",
|
|
498
486
|
icon: "exclamation-triangle",
|
|
499
487
|
class: sheet.classes.WarningHoldAlertContainer,
|
|
@@ -507,7 +495,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
507
495
|
}, {
|
|
508
496
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
509
497
|
}),
|
|
510
|
-
button: (index.h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)),
|
|
498
|
+
button: (index.h("sl-button", { disabled: states.disabled || states.loading, type: "default", exportparts: "base: primarybutton-base", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)),
|
|
511
499
|
alertType: "warning",
|
|
512
500
|
icon: "exclamation-triangle",
|
|
513
501
|
class: sheet.classes.WarningHoldAlertContainer,
|
|
@@ -521,7 +509,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
521
509
|
}, {
|
|
522
510
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
523
511
|
}),
|
|
524
|
-
button: (index.h("sl-button", { disabled: states.disabled || states.loading, type: "primary", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)),
|
|
512
|
+
button: (index.h("sl-button", { disabled: states.disabled || states.loading, type: "primary", exportparts: "base: primarybutton-base", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)),
|
|
525
513
|
alertType: "error",
|
|
526
514
|
icon: "exclamation-triangle",
|
|
527
515
|
class: sheet.classes.WarningHoldAlertContainer,
|
|
@@ -679,15 +667,21 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
679
667
|
}, {
|
|
680
668
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
681
669
|
}))),
|
|
682
|
-
|
|
670
|
+
states.belowPayoutThreshold && (index.h("sqm-form-message", { loading: states.loading, exportparts: "alert-base, alert-icon", type: "info", class: sheet.classes.InfoHoldAlertContainer, icon: "info-circle", transparent: true },
|
|
671
|
+
index.h("strong", null, text.balanceUnderThresholdHeader),
|
|
672
|
+
index.h("p", { style: { margin: "0" } }, global.intl.formatMessage({
|
|
673
|
+
id: "balanceUnderThresholdDescription",
|
|
674
|
+
defaultMessage: text.balanceUnderThresholdDescription,
|
|
675
|
+
}, { minPayoutAmount: states.minPayoutAmount })))),
|
|
676
|
+
alertInfo && (index.h("sqm-form-message", { loading: states.loading, exportparts: "alert-base, alert-icon", type: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.alertType, class: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.class, icon: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.icon, transparent: true },
|
|
683
677
|
index.h("strong", null, alertInfo.header),
|
|
684
678
|
index.h("p", { style: { margin: "0" } }, alertInfo.description),
|
|
685
|
-
alertInfo.buttonText && (index.h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", loading: states.veriffLoading, onClick: () => callbacks.onVerifyClick() }, alertInfo.buttonText)),
|
|
679
|
+
alertInfo.buttonText && (index.h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", exportparts: "base: primarybutton-base", loading: states.veriffLoading, onClick: () => callbacks.onVerifyClick() }, alertInfo.buttonText)),
|
|
686
680
|
alertInfo.button ? (alertInfo.button) : (index.h("div", { style: { display: "none" } })))),
|
|
687
681
|
index.h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
|
|
688
682
|
index.h("p", null, text.replaceTaxFormModalBodyText),
|
|
689
|
-
index.h("sl-button", { slot: "footer", type: "primary", class: sheet.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
|
|
690
|
-
index.h("sl-button", { slot: "footer", type: "default", class: sheet.classes.DialogButton, onClick: callbacks.onNewFormCancel }, text.cancelButton)),
|
|
683
|
+
index.h("sl-button", { slot: "footer", type: "primary", exportparts: "base: primarybutton-base", class: sheet.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
|
|
684
|
+
index.h("sl-button", { slot: "footer", type: "default", exportparts: "base: secondarybutton-base", class: sheet.classes.DialogButton, onClick: callbacks.onNewFormCancel }, text.cancelButton)),
|
|
691
685
|
states.status === "INACTIVE" && alertMap[states.status],
|
|
692
686
|
index.h("div", null,
|
|
693
687
|
index.h("h3", { style: { marginBottom: "0" } }, text.bankingInformationSectionHeader),
|
|
@@ -643,9 +643,12 @@ function formatPayoutThreshold(publisher) {
|
|
|
643
643
|
return undefined;
|
|
644
644
|
return `${(_b = publisher === null || publisher === void 0 ? void 0 : publisher.currency) !== null && _b !== void 0 ? _b : ""}${threshold}`;
|
|
645
645
|
}
|
|
646
|
-
/**
|
|
646
|
+
/**
|
|
647
|
+
* `payoutsAccount.balance` is a formatted string; only `balanceAmount` (minor units) is comparable.
|
|
648
|
+
* A zero balance gets no notice — there is nothing waiting to pay out.
|
|
649
|
+
*/
|
|
647
650
|
function isBalanceUnderPayoutThreshold(publisher) {
|
|
648
|
-
var _a;
|
|
651
|
+
var _a, _b;
|
|
649
652
|
const rawThreshold = (_a = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _a === void 0 ? void 0 : _a.paymentThreshold;
|
|
650
653
|
const account = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount;
|
|
651
654
|
if (!rawThreshold || !account)
|
|
@@ -653,12 +656,14 @@ function isBalanceUnderPayoutThreshold(publisher) {
|
|
|
653
656
|
const threshold = Number(rawThreshold);
|
|
654
657
|
if (!Number.isFinite(threshold) || !Number.isFinite(account.balanceAmount))
|
|
655
658
|
return false;
|
|
659
|
+
if (account.balanceAmount <= 0)
|
|
660
|
+
return false;
|
|
656
661
|
const currency = account.currencyCode || (publisher === null || publisher === void 0 ? void 0 : publisher.currency);
|
|
657
662
|
if (!currency)
|
|
658
663
|
return false;
|
|
659
664
|
const scale = 10 **
|
|
660
|
-
new Intl.NumberFormat("en-US", { style: "currency", currency })
|
|
661
|
-
.resolvedOptions().maximumFractionDigits;
|
|
665
|
+
((_b = new Intl.NumberFormat("en-US", { style: "currency", currency })
|
|
666
|
+
.resolvedOptions().maximumFractionDigits) !== null && _b !== void 0 ? _b : 2);
|
|
662
667
|
return account.balanceAmount < Math.round(threshold * scale);
|
|
663
668
|
}
|
|
664
669
|
|