@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
|
@@ -6,12 +6,12 @@ import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
|
6
6
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
7
7
|
import { g as getProps, a as getMissingProps } from './utils-334c1e34.js';
|
|
8
8
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
9
|
-
import './useReferralCodes-
|
|
9
|
+
import './useReferralCodes-acbe7b0a.js';
|
|
10
10
|
import './mixins-f750863a.js';
|
|
11
11
|
import { C as CopyTextView } from './copy-text-view-87259b11.js';
|
|
12
12
|
import './sqm-text-span-view-72f43dff.js';
|
|
13
13
|
import { A as AsYouType } from './AsYouType-2d56519e.js';
|
|
14
|
-
import { g as getCountryObj, i as isValidI18nPhoneNumber, L as LoadingView } from './subregions-
|
|
14
|
+
import { g as getCountryObj, i as isValidI18nPhoneNumber, L as LoadingView } from './subregions-8e84e5fa.js';
|
|
15
15
|
import { R as REGISTRATION_FORM_STATE_CONTEXT, a as useRegistrationForm } from './useRegistrationFormState-aa44cfff.js';
|
|
16
16
|
import { P as PortalRegistrationFormView } from './sqm-portal-registration-form-view-79265df5.js';
|
|
17
17
|
import { u as usePortalRegistrationForm } from './usePortalRegistrationForm-78fdfd93.js';
|
|
@@ -25,12 +25,12 @@ import { u as useInstantAccessRegistration } from './useInstantAccessRegistratio
|
|
|
25
25
|
import { R as RequiredPropsError, L as LEAD_FORM_STATE_CONTEXT, u as useLeadFormState } from './useLeadFormState-6214b2d9.js';
|
|
26
26
|
import { i as isEmpty } from './utilities-cbd8f2eb.js';
|
|
27
27
|
import { E as ErrorView } from './ErrorView-c6fc1d9b.js';
|
|
28
|
-
import { u as useDemoBigStat, W as useBigStat, B as BigStatView, C as CardFeedView, d as CheckboxFieldView, e as CouponCodeView, D as DropdownFieldView, E as EditProfileView, H as HeroView, I as InputFieldView, U as LeadDropdownFieldView, Q as LeadFormView, X as withShadowView, L as LeaderboardView, N as NameFieldsView, f as ChangeMarktingView, P as PortalChangePasswordView, g as PortalFooterView, h as PortalFrameView, c as BaseRegistrationFormView, R as ReferralIframeView, i as RewardExchangeView, Y as demoRewardExchange, G as useShareButton, a as ShareButtonView, K as useShareLink, J as ShareLinkView, S as StatContainerView, T as TaskCardView } from './ShadowViewAddon-
|
|
28
|
+
import { u as useDemoBigStat, W as useBigStat, B as BigStatView, C as CardFeedView, d as CheckboxFieldView, e as CouponCodeView, D as DropdownFieldView, E as EditProfileView, H as HeroView, I as InputFieldView, U as LeadDropdownFieldView, Q as LeadFormView, X as withShadowView, L as LeaderboardView, N as NameFieldsView, f as ChangeMarktingView, P as PortalChangePasswordView, g as PortalFooterView, h as PortalFrameView, c as BaseRegistrationFormView, R as ReferralIframeView, i as RewardExchangeView, Y as demoRewardExchange, G as useShareButton, a as ShareButtonView, K as useShareLink, J as ShareLinkView, S as StatContainerView, T as TaskCardView } from './ShadowViewAddon-450b0a7a.js';
|
|
29
29
|
import './sqm-portal-container-view-200c9df8.js';
|
|
30
30
|
import { T as TAX_CONTEXT_NAMESPACE, a as TAX_FORM_CONTEXT_NAMESPACE, U as USER_FORM_CONTEXT_NAMESPACE, C as CURRENCIES_NAMESPACE, b as COUNTRIES_NAMESPACE, S as SORTED_COUNTRIES_NAMESPACE, c as USER_QUERY_NAMESPACE, G as GET_USER$2, d as COUNTRIES_QUERY_NAMESPACE, e as GET_COUNTRIES, f as FINANCE_NETWORK_SETTINGS_NAMESPACE, g as GET_FINANCE_NETWORK_SETTINGS, h as CURRENCIES_QUERY_NAMESPACE, i as GET_CURRENCIES } from './data-0be04430.js';
|
|
31
31
|
import { S as SHOW_CODE_NAMESPACE, a as VERIFICATION_EMAIL_NAMESPACE, b as SHOW_PARTNER_MODAL_NAMESPACE, P as PARTNER_CREATED_NAMESPACE, V as VERIFICATION_PARENT_NAMESPACE } from './keys-1054056a.js';
|
|
32
32
|
import './eventKeys-f76b6a03.js';
|
|
33
|
-
import { u as usePayoutStatus, C as COMPLETE_PARTNER } from './useIndirectTaxForm-
|
|
33
|
+
import { u as usePayoutStatus, C as COMPLETE_PARTNER } from './useIndirectTaxForm-f622ba23.js';
|
|
34
34
|
import { p as parseStates } from './parseStates-ed75e224.js';
|
|
35
35
|
|
|
36
36
|
/**
|
|
@@ -3078,17 +3078,6 @@ function PayoutStatusAlertView(props) {
|
|
|
3078
3078
|
alertType: "warning",
|
|
3079
3079
|
icon: "exclamation-triangle",
|
|
3080
3080
|
};
|
|
3081
|
-
case "BALANCE_UNDER_THRESHOLD":
|
|
3082
|
-
return {
|
|
3083
|
-
header: text.balanceUnderThresholdHeader,
|
|
3084
|
-
description: intl.formatMessage({
|
|
3085
|
-
id: "balanceUnderThresholdDescription",
|
|
3086
|
-
defaultMessage: text.balanceUnderThresholdDescription,
|
|
3087
|
-
}, { minPayoutAmount: states.minPayoutAmount }),
|
|
3088
|
-
buttonText: null,
|
|
3089
|
-
alertType: "info",
|
|
3090
|
-
icon: "info-circle",
|
|
3091
|
-
};
|
|
3092
3081
|
case "PAYMENT_HOLD_ON_CHANGE":
|
|
3093
3082
|
return {
|
|
3094
3083
|
header: text.paymentHoldOnChangeHeader,
|
|
@@ -3216,16 +3205,23 @@ function PayoutStatusAlertView(props) {
|
|
|
3216
3205
|
}
|
|
3217
3206
|
}
|
|
3218
3207
|
const alertDetails = getAlert(states.status);
|
|
3219
|
-
|
|
3208
|
+
const showHoldAlert = states.status !== "DONE" && !!alertDetails;
|
|
3209
|
+
if (!showHoldAlert && !states.belowPayoutThreshold) {
|
|
3220
3210
|
return h$1("div", null);
|
|
3221
3211
|
}
|
|
3222
3212
|
return (h$1("div", { part: "sqm-base" },
|
|
3223
3213
|
h$1("style", { type: "text/css" }, styleString$2),
|
|
3224
3214
|
h$1("style", { type: "text/css" }, vanillaStyle$1),
|
|
3225
|
-
h$1("sqm-form-message", { loading: states.loading, type:
|
|
3215
|
+
states.belowPayoutThreshold && (h$1("sqm-form-message", { loading: states.loading, type: "info" },
|
|
3216
|
+
h$1("p", { part: "alert-title" }, text.balanceUnderThresholdHeader),
|
|
3217
|
+
h$1("p", { part: "alert-description" }, intl.formatMessage({
|
|
3218
|
+
id: "balanceUnderThresholdDescription",
|
|
3219
|
+
defaultMessage: text.balanceUnderThresholdDescription,
|
|
3220
|
+
}, { minPayoutAmount: states.minPayoutAmount })))),
|
|
3221
|
+
showHoldAlert && (h$1("sqm-form-message", { loading: states.loading, type: alertDetails.alertType },
|
|
3226
3222
|
h$1("p", { part: "alert-title" }, alertDetails.header),
|
|
3227
3223
|
h$1("p", { part: "alert-description" }, alertDetails.description),
|
|
3228
|
-
getButton(states.status))));
|
|
3224
|
+
getButton(states.status)))));
|
|
3229
3225
|
}
|
|
3230
3226
|
|
|
3231
3227
|
const PayoutStatusAlert = class {
|
|
@@ -8639,6 +8635,12 @@ const WidgetVerification = class {
|
|
|
8639
8635
|
* @uiWidget textArea
|
|
8640
8636
|
*/
|
|
8641
8637
|
this.createPartnerStep_networkErrorText = "An error occurred. Please try again.";
|
|
8638
|
+
/**
|
|
8639
|
+
* @uiName Email verification error text
|
|
8640
|
+
* @uiGroup Partner Creation Step
|
|
8641
|
+
* @uiWidget textArea
|
|
8642
|
+
*/
|
|
8643
|
+
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.";
|
|
8642
8644
|
/**
|
|
8643
8645
|
* @uiName Missing fields error text
|
|
8644
8646
|
* @uiGroup Partner Creation Step
|
|
@@ -8677,12 +8679,12 @@ const WidgetVerification = class {
|
|
|
8677
8679
|
const dialogLabel = this.general_widgetHeaderWithPartnerCreation;
|
|
8678
8680
|
const renderStepContent = () => {
|
|
8679
8681
|
if (props.showPartnerModal) {
|
|
8680
|
-
return (h$1("sqm-partner-info-modal", Object.assign({ inModal: true }, partnerText, { stateController: props["sqm-partner-info-modal_stateController"] || "{}" })));
|
|
8682
|
+
return (h$1("sqm-partner-info-modal", Object.assign({ inModal: true }, partnerText, { stateController: props["sqm-partner-info-modal_stateController"] || "{}", exportparts: "sqm-base: step-base, primarybutton-base" })));
|
|
8681
8683
|
}
|
|
8682
8684
|
if (props.showCode) {
|
|
8683
|
-
return (h$1("sqm-code-verification", Object.assign({ onVerification: props.onVerification }, this.getStepTextProps("codeStep_"), extractProps(props, "sqm-code-verification_"))));
|
|
8685
|
+
return (h$1("sqm-code-verification", Object.assign({ onVerification: props.onVerification }, this.getStepTextProps("codeStep_"), extractProps(props, "sqm-code-verification_"), { exportparts: "sqm-base: step-base, primarybutton-base" })));
|
|
8684
8686
|
}
|
|
8685
|
-
return (h$1("sqm-email-verification", Object.assign({}, this.getStepTextProps("emailStep_"), extractProps(props, "sqm-email-verification_"))));
|
|
8687
|
+
return (h$1("sqm-email-verification", Object.assign({}, this.getStepTextProps("emailStep_"), extractProps(props, "sqm-email-verification_"), { exportparts: "sqm-base: step-base, primarybutton-base" })));
|
|
8686
8688
|
};
|
|
8687
8689
|
return (h$1("div", null, h$1("style", { type: "text/css" }, styleString$3), h$1("sl-dialog", { class: sheet$3.classes.Dialog, noHeader: true, open: true, label: dialogLabel, "onSl-request-close": (e) => {
|
|
8688
8690
|
e.preventDefault();
|
|
@@ -7,7 +7,7 @@ import { g as getProps } from './utils-334c1e34.js';
|
|
|
7
7
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
8
8
|
import { T as TextSpanView } from './sqm-text-span-view-72f43dff.js';
|
|
9
9
|
import { g as GET_FINANCE_NETWORK_SETTINGS } from './data-0be04430.js';
|
|
10
|
-
import { a as PartnerInfoModalContentView, P as PartnerInfoModalView } from './sqm-partner-info-modal-view-
|
|
10
|
+
import { a as PartnerInfoModalContentView, P as PartnerInfoModalView } from './sqm-partner-info-modal-view-9c7a2c8c.js';
|
|
11
11
|
import { S as SHOW_CODE_NAMESPACE, a as VERIFICATION_EMAIL_NAMESPACE, P as PARTNER_CREATED_NAMESPACE } from './keys-1054056a.js';
|
|
12
12
|
import { T as TAX_FORM_UPDATED_EVENT_KEY } from './eventKeys-f76b6a03.js';
|
|
13
13
|
import { p as parseStates } from './parseStates-ed75e224.js';
|
|
@@ -437,6 +437,7 @@ const GET_USER_PARTNER_INFO = dist.gql `
|
|
|
437
437
|
impactConnection {
|
|
438
438
|
connected
|
|
439
439
|
connectionStatus
|
|
440
|
+
emailCanBeUsed
|
|
440
441
|
publisher {
|
|
441
442
|
id
|
|
442
443
|
countryCode
|
|
@@ -603,7 +604,6 @@ function usePartnerInfoModal(props) {
|
|
|
603
604
|
return;
|
|
604
605
|
setCountryCode(value);
|
|
605
606
|
setCurrency("");
|
|
606
|
-
setError("");
|
|
607
607
|
}
|
|
608
608
|
function onCurrencyChange(e) {
|
|
609
609
|
var _a, _b;
|
|
@@ -611,7 +611,6 @@ function usePartnerInfoModal(props) {
|
|
|
611
611
|
if (!value)
|
|
612
612
|
return;
|
|
613
613
|
setCurrency(value);
|
|
614
|
-
setError("");
|
|
615
614
|
}
|
|
616
615
|
function onCheckboxChange(e) {
|
|
617
616
|
const checked = e.target.checked;
|
|
@@ -668,6 +667,7 @@ function usePartnerInfoModal(props) {
|
|
|
668
667
|
const showModal = !success &&
|
|
669
668
|
!userLoading &&
|
|
670
669
|
(impactConnection === null || impactConnection === void 0 ? void 0 : impactConnection.connectionStatus) === "NOT_STARTED";
|
|
670
|
+
const emailCanBeUsed = (impactConnection === null || impactConnection === void 0 ? void 0 : impactConnection.emailCanBeUsed) !== false;
|
|
671
671
|
return {
|
|
672
672
|
states: {
|
|
673
673
|
open: showModal,
|
|
@@ -680,11 +680,12 @@ function usePartnerInfoModal(props) {
|
|
|
680
680
|
countryCode,
|
|
681
681
|
currency,
|
|
682
682
|
error,
|
|
683
|
+
emailCanBeUsed,
|
|
683
684
|
success,
|
|
684
685
|
filteredCountries: filteredCountries || [],
|
|
685
686
|
filteredCurrencies: filteredCurrencies || [],
|
|
686
687
|
allowBankingCollection,
|
|
687
|
-
disabled: userLoading || connectLoading,
|
|
688
|
+
disabled: userLoading || connectLoading || !emailCanBeUsed,
|
|
688
689
|
},
|
|
689
690
|
callbacks: {
|
|
690
691
|
onFirstNameChange,
|
|
@@ -790,6 +791,15 @@ const PartnerInfoModal = class {
|
|
|
790
791
|
* @uiWidget textArea
|
|
791
792
|
*/
|
|
792
793
|
this.networkErrorText = "An error occurred. Please try again.";
|
|
794
|
+
/**
|
|
795
|
+
* @uiName Email verification error text
|
|
796
|
+
* @uiWidget textArea
|
|
797
|
+
*/
|
|
798
|
+
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.";
|
|
799
|
+
/**
|
|
800
|
+
* @uiName login link text
|
|
801
|
+
*/
|
|
802
|
+
this.loginLinkText = "impact.com";
|
|
793
803
|
/**
|
|
794
804
|
* @uiName Missing fields error text
|
|
795
805
|
* @uiWidget textArea
|
|
@@ -844,6 +854,7 @@ function useDemoPartnerInfoModal(props) {
|
|
|
844
854
|
filteredCountries: [],
|
|
845
855
|
filteredCurrencies: [],
|
|
846
856
|
allowBankingCollection,
|
|
857
|
+
emailCanBeUsed: true,
|
|
847
858
|
disabled: false,
|
|
848
859
|
},
|
|
849
860
|
callbacks: {
|
|
@@ -889,6 +900,8 @@ function useDemoPartnerInfoModal(props) {
|
|
|
889
900
|
supportDescriptionExistingPartner: props.supportDescriptionExistingPartner,
|
|
890
901
|
supportLink: props.supportLink,
|
|
891
902
|
modalHeaderExistingPartner: props.modalHeaderExistingPartner,
|
|
903
|
+
emailVerificationErrorText: props.emailVerificationErrorText,
|
|
904
|
+
loginLinkText: props.loginLinkText,
|
|
892
905
|
},
|
|
893
906
|
}, props.demoData || stateOverride, { arrayMerge: (_, a) => a });
|
|
894
907
|
}
|
|
@@ -25,16 +25,16 @@ const FormMessage = class {
|
|
|
25
25
|
return h$1("sqm-skeleton", { height: "90px", width: "100%" });
|
|
26
26
|
}
|
|
27
27
|
if (this.type === "error") {
|
|
28
|
-
return (h$1("sl-alert", { exportparts: "base: erroralert-base, icon:erroralert-icon", class: `Error ${this.transparent ? "Transparent" : ""}`, type: "danger", open: true }, h$1("sl-icon", { id: "icon", slot: "icon", name: `${this.icon ? this.icon : "exclamation-octagon"}` }), h$1("slot", null)));
|
|
28
|
+
return (h$1("sl-alert", { exportparts: "base: erroralert-base, icon:erroralert-icon, base: alert-base, icon: alert-icon", class: `Error ${this.transparent ? "Transparent" : ""}`, type: "danger", open: true }, h$1("sl-icon", { id: "icon", slot: "icon", name: `${this.icon ? this.icon : "exclamation-octagon"}` }), h$1("slot", null)));
|
|
29
29
|
}
|
|
30
30
|
else if (this.type === "info") {
|
|
31
|
-
return (h$1("sl-alert", { id: "icon", exportparts: "base: infoalert-base, icon:infoalert-icon", class: `Info ${this.transparent ? "Transparent" : ""}`, type: "info", open: true }, h$1("sl-icon", { id: "icon", slot: "icon", name: `${this.icon ? this.icon : "info-circle"}` }), h$1("slot", null)));
|
|
31
|
+
return (h$1("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 }, h$1("sl-icon", { id: "icon", slot: "icon", name: `${this.icon ? this.icon : "info-circle"}` }), h$1("slot", null)));
|
|
32
32
|
}
|
|
33
33
|
else if (this.type === "warning") {
|
|
34
|
-
return (h$1("sl-alert", { exportparts: "base: warningalert-base, icon:warningalert-icon", class: `Warning ${this.transparent ? "Transparent" : ""}`, type: "warning", open: true }, h$1("sl-icon", { id: "icon", slot: "icon", name: `${this.icon ? this.icon : "exclamation-triangle"}` }), h$1("slot", null)));
|
|
34
|
+
return (h$1("sl-alert", { exportparts: "base: warningalert-base, icon:warningalert-icon, base: alert-base, icon: alert-icon", class: `Warning ${this.transparent ? "Transparent" : ""}`, type: "warning", open: true }, h$1("sl-icon", { id: "icon", slot: "icon", name: `${this.icon ? this.icon : "exclamation-triangle"}` }), h$1("slot", null)));
|
|
35
35
|
}
|
|
36
36
|
else {
|
|
37
|
-
return (h$1("sl-alert", { exportparts: "base: successalert-base, icon:successalert-icon", class: `Success ${this.transparent ? "Transparent" : ""}`, type: "success", open: true }, h$1("sl-icon", { id: "icon", slot: "icon", name: `${this.icon ? this.icon : "check2-circle"}` }), h$1("slot", null)));
|
|
37
|
+
return (h$1("sl-alert", { exportparts: "base: successalert-base, icon:successalert-icon, base: alert-base, icon: alert-icon", class: `Success ${this.transparent ? "Transparent" : ""}`, type: "success", open: true }, h$1("sl-icon", { id: "icon", slot: "icon", name: `${this.icon ? this.icon : "check2-circle"}` }), h$1("slot", null)));
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
};
|
|
@@ -5,7 +5,7 @@ import { F as Fn, i as isDemo, d as dist, H, J, B, w as wn, $ as $e } from './in
|
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import { g as getProps } from './utils-334c1e34.js';
|
|
7
7
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
8
|
-
import { R as REFERRAL_CODES_PAGINATION_CONTEXT, a as REFERRAL_CODES_NAMESPACE, S as SET_CODE_COPIED, u as useReferralCodes } from './useReferralCodes-
|
|
8
|
+
import { R as REFERRAL_CODES_PAGINATION_CONTEXT, a as REFERRAL_CODES_NAMESPACE, S as SET_CODE_COPIED, u as useReferralCodes } from './useReferralCodes-acbe7b0a.js';
|
|
9
9
|
import './mixins-f750863a.js';
|
|
10
10
|
import { C as CopyTextView } from './copy-text-view-87259b11.js';
|
|
11
11
|
|
package/dist/esm/{sqm-partner-info-modal-view-b921fed1.js → sqm-partner-info-modal-view-9c7a2c8c.js}
RENAMED
|
@@ -82,16 +82,22 @@ function PartnerInfoModalContentView(props) {
|
|
|
82
82
|
const { states, callbacks, text } = props;
|
|
83
83
|
const sheet = createStyleSheet(style);
|
|
84
84
|
const styleString = sheet.toString();
|
|
85
|
+
const emailVerificationMessage = intl.formatMessage({
|
|
86
|
+
id: "emailVerificationErrorText",
|
|
87
|
+
defaultMessage: text.emailVerificationErrorText,
|
|
88
|
+
}, {
|
|
89
|
+
loginLinkText: (h("a", { target: "_blank", href: `https://app.impact.com/login.user` }, text.loginLinkText)),
|
|
90
|
+
});
|
|
85
91
|
const supportMessage = intl.formatMessage({
|
|
86
92
|
id: "supportDescriptionExistingPartner",
|
|
87
93
|
defaultMessage: text.supportDescriptionExistingPartner,
|
|
88
94
|
}, {
|
|
89
95
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
90
96
|
});
|
|
91
|
-
const description = states.isExistingPartner ? (h("span", { class: sheet.classes.DescriptionContainer },
|
|
97
|
+
const description = states.isExistingPartner || !states.emailCanBeUsed ? (h("span", { class: sheet.classes.DescriptionContainer },
|
|
92
98
|
h("p", null, text.descriptionExistingPartner),
|
|
93
99
|
h("p", null, supportMessage))) : (h("p", { class: sheet.classes.DescriptionContainer }, text.descriptionNewPartner));
|
|
94
|
-
const buttonLabel = states.isExistingPartner
|
|
100
|
+
const buttonLabel = states.isExistingPartner || !states.emailCanBeUsed
|
|
95
101
|
? text.confirmButtonLabel
|
|
96
102
|
: text.submitButtonLabel;
|
|
97
103
|
const bankingCollectionText = intl.formatMessage({
|
|
@@ -100,32 +106,39 @@ function PartnerInfoModalContentView(props) {
|
|
|
100
106
|
}, {
|
|
101
107
|
termsAndConditionsLink: (h("a", { href: text.termsAndConditionsLink, target: "_blank" }, text.termsAndConditionsLabel)),
|
|
102
108
|
});
|
|
103
|
-
return (h("div",
|
|
109
|
+
return (h("div", { part: "sqm-base" },
|
|
104
110
|
h("style", { type: "text/css" }, styleString),
|
|
105
111
|
h("div", { class: sheet.classes.FormFields },
|
|
106
112
|
description,
|
|
107
113
|
states.shouldDisplayNameFields && (h(Fragment, null,
|
|
108
|
-
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 }),
|
|
109
|
-
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 }))),
|
|
114
|
+
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 }),
|
|
115
|
+
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 }))),
|
|
110
116
|
h("sl-select", { exportparts: "label: input-label, base: input-base, menu: select-menu", label: text.countryLabel, value: states.countryCode, disabled: states.submitting ||
|
|
117
|
+
!states.emailCanBeUsed ||
|
|
111
118
|
(!!states.countryCode && states.isExistingPartner), required: true, hoist: true, "onSl-select": callbacks.onCountryChange },
|
|
112
119
|
h("sl-input", { class: sheet.classes.SearchInput, placeholder: text.searchCountryPlaceholder, onKeyDown: (e) => e.stopPropagation(), "onSl-input": (e) => {
|
|
113
120
|
var _a;
|
|
114
121
|
callbacks.setCountrySearch((_a = e.target) === null || _a === void 0 ? void 0 : _a.value);
|
|
115
122
|
} }),
|
|
116
123
|
h("div", { class: sheet.classes.SelectMenu }, (_a = states.filteredCountries) === null || _a === void 0 ? void 0 : _a.map((c) => (h("sl-menu-item", { value: c.countryCode }, c.displayName))))),
|
|
117
|
-
h("sl-select", { exportparts: "label: input-label, base: input-base", label: text.currencyLabel, value: states.currency, disabled: states.submitting ||
|
|
124
|
+
h("sl-select", { exportparts: "label: input-label, base: input-base", label: text.currencyLabel, value: states.currency, disabled: states.submitting ||
|
|
125
|
+
!states.emailCanBeUsed ||
|
|
126
|
+
(!!states.currency && states.isExistingPartner), required: true, hoist: true, "onSl-select": callbacks.onCurrencyChange },
|
|
118
127
|
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); } }),
|
|
119
128
|
h("div", { class: sheet.classes.SelectMenu }, (_b = states.filteredCurrencies) === null || _b === void 0 ? void 0 : _b.map((c) => (h("sl-menu-item", { value: c.currencyCode },
|
|
120
129
|
c.currencyCode,
|
|
121
130
|
" - ",
|
|
122
131
|
c.displayName))))),
|
|
123
132
|
h("div", { class: sheet.classes.CheckboxWrapper },
|
|
124
|
-
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))),
|
|
133
|
+
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))),
|
|
125
134
|
states.error && (h("div", { class: sheet.classes.ErrorMessage },
|
|
126
135
|
h("sqm-form-message", { class: sheet.classes.ErrorMessage, type: "error" },
|
|
127
136
|
h("p", { part: "alert-description" }, states.error)))),
|
|
137
|
+
!states.emailCanBeUsed && (h("div", { class: sheet.classes.ErrorMessage },
|
|
138
|
+
h("sqm-form-message", { type: "error" },
|
|
139
|
+
h("p", { part: "alert-description" }, emailVerificationMessage)))),
|
|
128
140
|
h("sl-button", { slot: "footer", type: "primary", loading: states.submitting, disabled: states.submitting ||
|
|
141
|
+
!states.emailCanBeUsed ||
|
|
129
142
|
!states.countryCode ||
|
|
130
143
|
!states.currency ||
|
|
131
144
|
!states.allowBankingCollection ||
|
|
@@ -138,7 +151,7 @@ function PartnerInfoModalView(props) {
|
|
|
138
151
|
const styleString = sheet.toString();
|
|
139
152
|
if (!states.open)
|
|
140
153
|
return h("div", null);
|
|
141
|
-
const modalHeader = states.isExistingPartner
|
|
154
|
+
const modalHeader = states.isExistingPartner || !states.emailCanBeUsed
|
|
142
155
|
? text.modalHeaderExistingPartner
|
|
143
156
|
: text.modalHeader;
|
|
144
157
|
return (h("div", null,
|
|
@@ -4,7 +4,7 @@ import { d as dist, H, J, B, F as Fn, w as wn, $ as $e, i as isDemo } from './in
|
|
|
4
4
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
5
5
|
import { g as getProps } from './utils-334c1e34.js';
|
|
6
6
|
import './JSS-67b5cff8.js';
|
|
7
|
-
import { a as REFERRAL_CODES_NAMESPACE } from './useReferralCodes-
|
|
7
|
+
import { a as REFERRAL_CODES_NAMESPACE } from './useReferralCodes-acbe7b0a.js';
|
|
8
8
|
import './ErrorView-c6fc1d9b.js';
|
|
9
9
|
import { Q as QrCodeView } from './sqm-qr-code-view-dd46daa3.js';
|
|
10
10
|
|
|
@@ -5,13 +5,13 @@ import { j as jn, s as setUserIdentity, m as setProgramId, k as kn, d as dist, X
|
|
|
5
5
|
import './cjs-bdfb4486.js';
|
|
6
6
|
import './utils-334c1e34.js';
|
|
7
7
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
8
|
-
import './useReferralCodes-
|
|
8
|
+
import './useReferralCodes-acbe7b0a.js';
|
|
9
9
|
import './mixins-f750863a.js';
|
|
10
10
|
import { C as CopyTextView } from './copy-text-view-87259b11.js';
|
|
11
11
|
import './sqm-text-span-view-72f43dff.js';
|
|
12
12
|
import { b as PortalRegisterView, P as PortalForgotPasswordView, a as PortalLoginView, c as PortalVerifyEmailView } from './sqm-portal-verify-email-view-76185bef.js';
|
|
13
13
|
import './AsYouType-2d56519e.js';
|
|
14
|
-
import { t as taxTypeToName, L as LoadingView, I as INDIRECT_TAX_SPAIN_REGIONS, a as INDIRECT_TAX_PROVINCES } from './subregions-
|
|
14
|
+
import { t as taxTypeToName, L as LoadingView, I as INDIRECT_TAX_SPAIN_REGIONS, a as INDIRECT_TAX_PROVINCES } from './subregions-8e84e5fa.js';
|
|
15
15
|
import { P as PortalRegistrationFormView } from './sqm-portal-registration-form-view-79265df5.js';
|
|
16
16
|
import { G as GenericTableView } from './GenericTableView-471a9386.js';
|
|
17
17
|
import './useChildElements-06937df7.js';
|
|
@@ -31,12 +31,12 @@ import './utilities-cbd8f2eb.js';
|
|
|
31
31
|
import { P as PortalResetPasswordView } from './sqm-portal-reset-password-view-c7dd1c01.js';
|
|
32
32
|
import './ErrorView-c6fc1d9b.js';
|
|
33
33
|
import { Q as QrCodeView } from './sqm-qr-code-view-dd46daa3.js';
|
|
34
|
-
import { S as StatContainerView, B as BigStatView, a as ShareButtonView, P as PortalChangePasswordView, b as PoweredByImg$1, c as BaseRegistrationFormView, u as useDemoBigStat, T as TaskCardView, C as CardFeedView, d as CheckboxFieldView, e as CouponCodeView, D as DropdownFieldView, E as EditProfileView, L as LeaderboardView, H as HeroView, I as InputFieldView, N as NameFieldsView, f as ChangeMarktingView, g as PortalFooterView, h as PortalFrameView, R as ReferralIframeView, i as RewardExchangeView, r as rewardExchangeCustomErrorMsg, j as rewardExchangeLongText, k as rewardExchangeSelected, l as chooseAmountFixed, m as chooseAmountFixedNoDescription, n as chooseAmountVariable, o as chooseAmountVariableNoDescription, p as chooseAmountVariableDisabled, q as chooseAmountVariableUnavailable, s as confirmFixed, t as confirmVariable, v as redemptionError, w as queryError, x as success, y as successVariable, z as loading, A as empty$1, F as rewardExchange, G as useShareButton, J as ShareLinkView, K as useShareLink, M as ProgressBarView, O as ProgressBar$2, Q as LeadFormView, U as LeadDropdownFieldView, V as ShadowViewAddon } from './ShadowViewAddon-
|
|
34
|
+
import { S as StatContainerView, B as BigStatView, a as ShareButtonView, P as PortalChangePasswordView, b as PoweredByImg$1, c as BaseRegistrationFormView, u as useDemoBigStat, T as TaskCardView, C as CardFeedView, d as CheckboxFieldView, e as CouponCodeView, D as DropdownFieldView, E as EditProfileView, L as LeaderboardView, H as HeroView, I as InputFieldView, N as NameFieldsView, f as ChangeMarktingView, g as PortalFooterView, h as PortalFrameView, R as ReferralIframeView, i as RewardExchangeView, r as rewardExchangeCustomErrorMsg, j as rewardExchangeLongText, k as rewardExchangeSelected, l as chooseAmountFixed, m as chooseAmountFixedNoDescription, n as chooseAmountVariable, o as chooseAmountVariableNoDescription, p as chooseAmountVariableDisabled, q as chooseAmountVariableUnavailable, s as confirmFixed, t as confirmVariable, v as redemptionError, w as queryError, x as success, y as successVariable, z as loading, A as empty$1, F as rewardExchange, G as useShareButton, J as ShareLinkView, K as useShareLink, M as ProgressBarView, O as ProgressBar$2, Q as LeadFormView, U as LeadDropdownFieldView, V as ShadowViewAddon } from './ShadowViewAddon-450b0a7a.js';
|
|
35
35
|
import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-container-view-200c9df8.js';
|
|
36
|
-
import { I as InvoiceTableView, T as TaxAndCashDashboardView$1, O as OtherRegionSlotView, U as UserInfoFormView$1 } from './sqm-user-info-form-view-
|
|
36
|
+
import { I as InvoiceTableView, T as TaxAndCashDashboardView$1, O as OtherRegionSlotView, U as UserInfoFormView$1 } from './sqm-user-info-form-view-008f8969.js';
|
|
37
37
|
import { L as LeadInputFieldView } from './sqm-lead-input-field-view-671ff96f.js';
|
|
38
38
|
import './data-0be04430.js';
|
|
39
|
-
import { P as PartnerInfoModalView } from './sqm-partner-info-modal-view-
|
|
39
|
+
import { P as PartnerInfoModalView } from './sqm-partner-info-modal-view-9c7a2c8c.js';
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
42
|
* lodash (Custom Build) <https://lodash.com/>
|
|
@@ -16657,7 +16657,14 @@ const AccountUnderReview = () => (h(TaxAndCashDashboardView$1, { states: { ...ba
|
|
|
16657
16657
|
const PaymentHoldOnChange = () => (h(TaxAndCashDashboardView$1, { states: { ...baseStates, payoutStatus: "PAYMENT_HOLD_ON_CHANGE" }, text: defaultText, callbacks: defaultCallbacks$1, slots: defaultSlots }));
|
|
16658
16658
|
const BalanceUnderThreshold = () => (h(TaxAndCashDashboardView$1, { states: {
|
|
16659
16659
|
...baseStates,
|
|
16660
|
-
payoutStatus: "
|
|
16660
|
+
payoutStatus: "DONE",
|
|
16661
|
+
belowPayoutThreshold: true,
|
|
16662
|
+
minPayoutAmount: "USD50.00",
|
|
16663
|
+
}, text: defaultText, callbacks: defaultCallbacks$1, slots: buildSlots({ belowPayoutThreshold: true }) }));
|
|
16664
|
+
const BalanceUnderThresholdWithHold = () => (h(TaxAndCashDashboardView$1, { states: {
|
|
16665
|
+
...baseStates,
|
|
16666
|
+
payoutStatus: "NEW_PAYEE_REVIEW",
|
|
16667
|
+
belowPayoutThreshold: true,
|
|
16661
16668
|
minPayoutAmount: "USD50.00",
|
|
16662
16669
|
}, text: defaultText, callbacks: defaultCallbacks$1, slots: buildSlots({ belowPayoutThreshold: true }) }));
|
|
16663
16670
|
const BeneficiaryNameInvalid = () => (h(TaxAndCashDashboardView$1, { states: { ...baseStates, payoutStatus: "BENEFICIARY_NAME_INVALID" }, text: defaultText, callbacks: defaultCallbacks$1, slots: defaultSlots }));
|
|
@@ -16692,6 +16699,7 @@ const TaxAndCashDashboardView = /*#__PURE__*/Object.freeze({
|
|
|
16692
16699
|
AccountUnderReview: AccountUnderReview,
|
|
16693
16700
|
PaymentHoldOnChange: PaymentHoldOnChange,
|
|
16694
16701
|
BalanceUnderThreshold: BalanceUnderThreshold,
|
|
16702
|
+
BalanceUnderThresholdWithHold: BalanceUnderThresholdWithHold,
|
|
16695
16703
|
BeneficiaryNameInvalid: BeneficiaryNameInvalid,
|
|
16696
16704
|
BeneficiaryNameMismatch: BeneficiaryNameMismatch,
|
|
16697
16705
|
BankTaxNameMismatch: BankTaxNameMismatch,
|
|
@@ -17923,7 +17931,8 @@ const TaxAndCashDashboardBalanceUnderThreshold = () => {
|
|
|
17923
17931
|
return (h("sqm-tax-and-cash-dashboard", { demoData: {
|
|
17924
17932
|
...dashboardProps,
|
|
17925
17933
|
states: {
|
|
17926
|
-
payoutStatus: "
|
|
17934
|
+
payoutStatus: "DONE",
|
|
17935
|
+
belowPayoutThreshold: true,
|
|
17927
17936
|
minPayoutAmount: "USD50.00",
|
|
17928
17937
|
veriffLoading: false,
|
|
17929
17938
|
canEditPayoutInfo: true,
|
|
@@ -18373,7 +18382,16 @@ const PaymentHoldOnChange$1 = () => (h("sqm-payout-status-alert", { demoData: {
|
|
|
18373
18382
|
const BalanceUnderThreshold$1 = () => (h("sqm-payout-status-alert", { demoData: {
|
|
18374
18383
|
states: {
|
|
18375
18384
|
...defaultProps$s,
|
|
18376
|
-
status: "
|
|
18385
|
+
status: "DONE",
|
|
18386
|
+
belowPayoutThreshold: true,
|
|
18387
|
+
minPayoutAmount: "USD50.00",
|
|
18388
|
+
},
|
|
18389
|
+
} }));
|
|
18390
|
+
const BalanceUnderThresholdWithHold$1 = () => (h("sqm-payout-status-alert", { demoData: {
|
|
18391
|
+
states: {
|
|
18392
|
+
...defaultProps$s,
|
|
18393
|
+
status: "NEW_PAYEE_REVIEW",
|
|
18394
|
+
belowPayoutThreshold: true,
|
|
18377
18395
|
minPayoutAmount: "USD50.00",
|
|
18378
18396
|
},
|
|
18379
18397
|
} }));
|
|
@@ -18404,6 +18422,7 @@ const PayoutStatusAlert = /*#__PURE__*/Object.freeze({
|
|
|
18404
18422
|
NewPayeeReview: NewPayeeReview,
|
|
18405
18423
|
PaymentHoldOnChange: PaymentHoldOnChange$1,
|
|
18406
18424
|
BalanceUnderThreshold: BalanceUnderThreshold$1,
|
|
18425
|
+
BalanceUnderThresholdWithHold: BalanceUnderThresholdWithHold$1,
|
|
18407
18426
|
BeneficiaryNameInvalid: BeneficiaryNameInvalid$1,
|
|
18408
18427
|
BeneficiaryNameMismatch: BeneficiaryNameMismatch$1,
|
|
18409
18428
|
BankTaxNameMismatch: BankTaxNameMismatch$1,
|
|
@@ -19376,7 +19395,7 @@ const defaultText$2 = {
|
|
|
19376
19395
|
modalHeader: "Let's get you ready for rewards",
|
|
19377
19396
|
modalHeaderExistingPartner: "We found an existing account",
|
|
19378
19397
|
descriptionNewPartner: "Confirm your country and currency now to get your future rewards faster.",
|
|
19379
|
-
descriptionExistingPartner: "We
|
|
19398
|
+
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.",
|
|
19380
19399
|
supportDescriptionExistingPartner: "If this is a mistake, please contact Support or sign up for this referral program with a different email.",
|
|
19381
19400
|
supportLink: "Support",
|
|
19382
19401
|
countryLabel: "Country",
|
|
@@ -19389,6 +19408,8 @@ const defaultText$2 = {
|
|
|
19389
19408
|
allowBankingCollection: "I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information",
|
|
19390
19409
|
termsAndConditionsLabel: "terms and conditions",
|
|
19391
19410
|
termsAndConditionsLink: "https://terms.advocate.impact.com/PayoutTermsAndConditions.html",
|
|
19411
|
+
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.",
|
|
19412
|
+
loginLinkText: "impact.com",
|
|
19392
19413
|
};
|
|
19393
19414
|
const defaultProps$y = {
|
|
19394
19415
|
states: {
|
|
@@ -19402,6 +19423,7 @@ const defaultProps$y = {
|
|
|
19402
19423
|
countryCode: "",
|
|
19403
19424
|
currency: "",
|
|
19404
19425
|
error: "",
|
|
19426
|
+
emailCanBeUsed: true,
|
|
19405
19427
|
success: false,
|
|
19406
19428
|
filteredCountries: demoCountries,
|
|
19407
19429
|
filteredCurrencies: demoCurrencies,
|
|
@@ -19496,6 +19518,18 @@ const ValidationError$1 = () => {
|
|
|
19496
19518
|
};
|
|
19497
19519
|
return h(PartnerInfoModalView, Object.assign({}, props));
|
|
19498
19520
|
};
|
|
19521
|
+
const EmailVerificationRequired = () => {
|
|
19522
|
+
const props = {
|
|
19523
|
+
...defaultProps$y,
|
|
19524
|
+
states: {
|
|
19525
|
+
...defaultProps$y.states,
|
|
19526
|
+
countryCode: "US",
|
|
19527
|
+
currency: "USD",
|
|
19528
|
+
emailCanBeUsed: false,
|
|
19529
|
+
},
|
|
19530
|
+
};
|
|
19531
|
+
return h(PartnerInfoModalView, Object.assign({}, props));
|
|
19532
|
+
};
|
|
19499
19533
|
const Closed = () => {
|
|
19500
19534
|
const props = {
|
|
19501
19535
|
...defaultProps$y,
|
|
@@ -19561,6 +19595,7 @@ const PartnerInfoModal = /*#__PURE__*/Object.freeze({
|
|
|
19561
19595
|
Submitting: Submitting,
|
|
19562
19596
|
WithError: WithError$3,
|
|
19563
19597
|
ValidationError: ValidationError$1,
|
|
19598
|
+
EmailVerificationRequired: EmailVerificationRequired,
|
|
19564
19599
|
Closed: Closed,
|
|
19565
19600
|
SQMComponentExistingPartner: SQMComponentExistingPartner,
|
|
19566
19601
|
SQMComponentNewPartner: SQMComponentNewPartner,
|
package/dist/esm/{sqm-user-info-form-view-72afa9af.js → sqm-user-info-form-view-008f8969.js}
RENAMED
|
@@ -2,7 +2,7 @@ import { h } from './index-38ad4957.js';
|
|
|
2
2
|
import { i as intl } from './global-32d00a6e.js';
|
|
3
3
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
4
4
|
import { A as AsYouType } from './AsYouType-2d56519e.js';
|
|
5
|
-
import { f as formatErrorMessage, a as INDIRECT_TAX_PROVINCES, L as LoadingView, i as isValidI18nPhoneNumber, v as validateBillingField } from './subregions-
|
|
5
|
+
import { f as formatErrorMessage, a as INDIRECT_TAX_PROVINCES, L as LoadingView, i as isValidI18nPhoneNumber, v as validateBillingField } from './subregions-8e84e5fa.js';
|
|
6
6
|
import { F as FORM_STEPS } from './data-0be04430.js';
|
|
7
7
|
|
|
8
8
|
const style = {
|
|
@@ -334,7 +334,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
334
334
|
}, {
|
|
335
335
|
termsAndConditions: (h("a", { target: "_blank", href: `https://terms.advocate.impact.com/PayoutTermsAndConditions.html` }, text.termsAndConditions)),
|
|
336
336
|
}),
|
|
337
|
-
button: (h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", onClick: callbacks.onNewFormClick }, text.w9RequiredButtonText)),
|
|
337
|
+
button: (h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", exportparts: "base: primarybutton-base", onClick: callbacks.onNewFormClick }, text.w9RequiredButtonText)),
|
|
338
338
|
alertType: "warning",
|
|
339
339
|
icon: "info-circle",
|
|
340
340
|
class: sheet.classes.WarningHoldAlertContainer,
|
|
@@ -422,18 +422,6 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
422
422
|
icon: "exclamation-triangle",
|
|
423
423
|
class: sheet.classes.WarningHoldAlertContainer,
|
|
424
424
|
};
|
|
425
|
-
case "BALANCE_UNDER_THRESHOLD":
|
|
426
|
-
return {
|
|
427
|
-
header: text.balanceUnderThresholdHeader,
|
|
428
|
-
description: intl.formatMessage({
|
|
429
|
-
id: "balanceUnderThresholdDescription",
|
|
430
|
-
defaultMessage: text.balanceUnderThresholdDescription,
|
|
431
|
-
}, { minPayoutAmount: states.minPayoutAmount }),
|
|
432
|
-
buttonText: null,
|
|
433
|
-
alertType: "info",
|
|
434
|
-
icon: "info-circle",
|
|
435
|
-
class: sheet.classes.InfoHoldAlertContainer,
|
|
436
|
-
};
|
|
437
425
|
case "PAYMENT_HOLD_ON_CHANGE":
|
|
438
426
|
return {
|
|
439
427
|
header: text.paymentHoldOnChangeHeader,
|
|
@@ -458,8 +446,8 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
458
446
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
459
447
|
}),
|
|
460
448
|
button: (h("div", { class: sheet.classes.ButtonContainer },
|
|
461
|
-
h("sl-button", { disabled: states.disabled || states.loading, type: "primary", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton),
|
|
462
|
-
h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onNewFormClick }, text.newFormButton))),
|
|
449
|
+
h("sl-button", { disabled: states.disabled || states.loading, type: "primary", exportparts: "base: primarybutton-base", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton),
|
|
450
|
+
h("sl-button", { disabled: states.disabled || states.loading, type: "default", exportparts: "base: secondarybutton-base", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onNewFormClick }, text.newFormButton))),
|
|
463
451
|
alertType: "warning",
|
|
464
452
|
icon: "exclamation-triangle",
|
|
465
453
|
class: sheet.classes.WarningHoldAlertContainer,
|
|
@@ -474,8 +462,8 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
474
462
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
475
463
|
}),
|
|
476
464
|
button: (h("div", { class: sheet.classes.ButtonContainer },
|
|
477
|
-
h("sl-button", { disabled: states.disabled || states.loading, type: "primary", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton),
|
|
478
|
-
h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onNewFormClick }, text.newFormButton))),
|
|
465
|
+
h("sl-button", { disabled: states.disabled || states.loading, type: "primary", exportparts: "base: primarybutton-base", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton),
|
|
466
|
+
h("sl-button", { disabled: states.disabled || states.loading, type: "default", exportparts: "base: secondarybutton-base", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onNewFormClick }, text.newFormButton))),
|
|
479
467
|
alertType: "warning",
|
|
480
468
|
icon: "exclamation-triangle",
|
|
481
469
|
class: sheet.classes.WarningHoldAlertContainer,
|
|
@@ -490,8 +478,8 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
490
478
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
491
479
|
}),
|
|
492
480
|
button: (h("div", { class: sheet.classes.ButtonContainer },
|
|
493
|
-
h("sl-button", { disabled: states.disabled || states.loading, type: "primary", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton),
|
|
494
|
-
h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onNewFormClick }, text.newFormButton))),
|
|
481
|
+
h("sl-button", { disabled: states.disabled || states.loading, type: "primary", exportparts: "base: primarybutton-base", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton),
|
|
482
|
+
h("sl-button", { disabled: states.disabled || states.loading, type: "default", exportparts: "base: secondarybutton-base", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onNewFormClick }, text.newFormButton))),
|
|
495
483
|
alertType: "warning",
|
|
496
484
|
icon: "exclamation-triangle",
|
|
497
485
|
class: sheet.classes.WarningHoldAlertContainer,
|
|
@@ -505,7 +493,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
505
493
|
}, {
|
|
506
494
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
507
495
|
}),
|
|
508
|
-
button: (h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)),
|
|
496
|
+
button: (h("sl-button", { disabled: states.disabled || states.loading, type: "default", exportparts: "base: primarybutton-base", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)),
|
|
509
497
|
alertType: "warning",
|
|
510
498
|
icon: "exclamation-triangle",
|
|
511
499
|
class: sheet.classes.WarningHoldAlertContainer,
|
|
@@ -519,7 +507,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
519
507
|
}, {
|
|
520
508
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
521
509
|
}),
|
|
522
|
-
button: (h("sl-button", { disabled: states.disabled || states.loading, type: "primary", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)),
|
|
510
|
+
button: (h("sl-button", { disabled: states.disabled || states.loading, type: "primary", exportparts: "base: primarybutton-base", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)),
|
|
523
511
|
alertType: "error",
|
|
524
512
|
icon: "exclamation-triangle",
|
|
525
513
|
class: sheet.classes.WarningHoldAlertContainer,
|
|
@@ -677,15 +665,21 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
677
665
|
}, {
|
|
678
666
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
679
667
|
}))),
|
|
680
|
-
|
|
668
|
+
states.belowPayoutThreshold && (h("sqm-form-message", { loading: states.loading, exportparts: "alert-base, alert-icon", type: "info", class: sheet.classes.InfoHoldAlertContainer, icon: "info-circle", transparent: true },
|
|
669
|
+
h("strong", null, text.balanceUnderThresholdHeader),
|
|
670
|
+
h("p", { style: { margin: "0" } }, intl.formatMessage({
|
|
671
|
+
id: "balanceUnderThresholdDescription",
|
|
672
|
+
defaultMessage: text.balanceUnderThresholdDescription,
|
|
673
|
+
}, { minPayoutAmount: states.minPayoutAmount })))),
|
|
674
|
+
alertInfo && (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 },
|
|
681
675
|
h("strong", null, alertInfo.header),
|
|
682
676
|
h("p", { style: { margin: "0" } }, alertInfo.description),
|
|
683
|
-
alertInfo.buttonText && (h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", loading: states.veriffLoading, onClick: () => callbacks.onVerifyClick() }, alertInfo.buttonText)),
|
|
677
|
+
alertInfo.buttonText && (h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", exportparts: "base: primarybutton-base", loading: states.veriffLoading, onClick: () => callbacks.onVerifyClick() }, alertInfo.buttonText)),
|
|
684
678
|
alertInfo.button ? (alertInfo.button) : (h("div", { style: { display: "none" } })))),
|
|
685
679
|
h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
|
|
686
680
|
h("p", null, text.replaceTaxFormModalBodyText),
|
|
687
|
-
h("sl-button", { slot: "footer", type: "primary", class: sheet.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
|
|
688
|
-
h("sl-button", { slot: "footer", type: "default", class: sheet.classes.DialogButton, onClick: callbacks.onNewFormCancel }, text.cancelButton)),
|
|
681
|
+
h("sl-button", { slot: "footer", type: "primary", exportparts: "base: primarybutton-base", class: sheet.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
|
|
682
|
+
h("sl-button", { slot: "footer", type: "default", exportparts: "base: secondarybutton-base", class: sheet.classes.DialogButton, onClick: callbacks.onNewFormCancel }, text.cancelButton)),
|
|
689
683
|
states.status === "INACTIVE" && alertMap[states.status],
|
|
690
684
|
h("div", null,
|
|
691
685
|
h("h3", { style: { marginBottom: "0" } }, text.bankingInformationSectionHeader),
|
|
@@ -641,9 +641,12 @@ function formatPayoutThreshold(publisher) {
|
|
|
641
641
|
return undefined;
|
|
642
642
|
return `${(_b = publisher === null || publisher === void 0 ? void 0 : publisher.currency) !== null && _b !== void 0 ? _b : ""}${threshold}`;
|
|
643
643
|
}
|
|
644
|
-
/**
|
|
644
|
+
/**
|
|
645
|
+
* `payoutsAccount.balance` is a formatted string; only `balanceAmount` (minor units) is comparable.
|
|
646
|
+
* A zero balance gets no notice — there is nothing waiting to pay out.
|
|
647
|
+
*/
|
|
645
648
|
function isBalanceUnderPayoutThreshold(publisher) {
|
|
646
|
-
var _a;
|
|
649
|
+
var _a, _b;
|
|
647
650
|
const rawThreshold = (_a = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _a === void 0 ? void 0 : _a.paymentThreshold;
|
|
648
651
|
const account = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount;
|
|
649
652
|
if (!rawThreshold || !account)
|
|
@@ -651,12 +654,14 @@ function isBalanceUnderPayoutThreshold(publisher) {
|
|
|
651
654
|
const threshold = Number(rawThreshold);
|
|
652
655
|
if (!Number.isFinite(threshold) || !Number.isFinite(account.balanceAmount))
|
|
653
656
|
return false;
|
|
657
|
+
if (account.balanceAmount <= 0)
|
|
658
|
+
return false;
|
|
654
659
|
const currency = account.currencyCode || (publisher === null || publisher === void 0 ? void 0 : publisher.currency);
|
|
655
660
|
if (!currency)
|
|
656
661
|
return false;
|
|
657
662
|
const scale = 10 **
|
|
658
|
-
new Intl.NumberFormat("en-US", { style: "currency", currency })
|
|
659
|
-
.resolvedOptions().maximumFractionDigits;
|
|
663
|
+
((_b = new Intl.NumberFormat("en-US", { style: "currency", currency })
|
|
664
|
+
.resolvedOptions().maximumFractionDigits) !== null && _b !== void 0 ? _b : 2);
|
|
660
665
|
return account.balanceAmount < Math.round(threshold * scale);
|
|
661
666
|
}
|
|
662
667
|
|
|
@@ -1078,4 +1083,4 @@ const ADDRESS_REGIONS = {
|
|
|
1078
1083
|
},
|
|
1079
1084
|
};
|
|
1080
1085
|
|
|
1081
|
-
export { ADDRESS_REGIONS as A, INDIRECT_TAX_SPAIN_REGIONS as I, LoadingView as L, INDIRECT_TAX_PROVINCES as a,
|
|
1086
|
+
export { ADDRESS_REGIONS as A, INDIRECT_TAX_SPAIN_REGIONS as I, LoadingView as L, INDIRECT_TAX_PROVINCES as a, isBalanceUnderPayoutThreshold as b, formatPayoutThreshold as c, validTaxDocument as d, toDomesticNumber as e, formatErrorMessage as f, getCountryObj as g, isValidI18nPhoneNumber as i, objectIsFull as o, taxTypeToName as t, validateBillingField as v };
|