@saasquatch/mint-components 2.0.2-4 → 2.0.2-6
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/{IndirectTaxDetailsView-e5f70b8b.js → IndirectTaxDetailsView-dce2a79b.js} +2 -2
- package/dist/cjs/{ShadowViewAddon-925a8fa6.js → ShadowViewAddon-357bc625.js} +8 -8
- package/dist/cjs/{usePayoutStatus-95874989.js → data-16106637.js} +129 -155
- package/dist/cjs/{global-8bba5b3a.js → global-3d01d469.js} +5 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/mint-components.cjs.js +2 -2
- package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +114 -344
- package/dist/cjs/sqm-big-stat_47.cjs.entry.js +29 -224
- package/dist/cjs/sqm-code-verification.cjs.entry.js +1 -1
- package/dist/cjs/sqm-email-verification.cjs.entry.js +1 -1
- package/dist/cjs/sqm-empty_4.cjs.entry.js +1 -1
- package/dist/cjs/sqm-header-logo.cjs.entry.js +1 -14
- package/dist/cjs/{sqm-lead-checkbox-field-view-340acad0.js → sqm-lead-checkbox-field-view-ebb9ead9.js} +1 -1
- package/dist/cjs/sqm-lead-checkbox-field.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-lead-input-field-view-06ed3632.js → sqm-lead-input-field-view-62debb73.js} +1 -1
- package/dist/cjs/sqm-lead-input-field.cjs.entry.js +3 -3
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +1 -1
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-email-verification-view-5518eb0d.js → sqm-portal-email-verification-view-c280139a.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-profile-view-615e6975.js → sqm-portal-profile-view-7bca5749.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +1 -1
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +1 -1
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +8 -9
- package/dist/cjs/{useLeadFormState-fd0445f9.js → useLeadFormState-593f5d39.js} +1 -1
- package/dist/cjs/{utils-83d125fa.js → utils-5167439f.js} +1 -1
- package/dist/collection/components/sqm-header-logo/sqm-header-logo.js +3 -80
- package/dist/collection/components/sqm-portal-footer/sqm-portal-footer-view.js +3 -3
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +4 -4
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +0 -1
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +1 -2
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +40 -46
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +2 -90
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +0 -353
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +3 -30
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +1 -301
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +2 -92
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +0 -300
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +12 -23
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +9 -92
- package/dist/collection/global/styles.js +5 -1
- package/dist/collection/global/styles.ts +5 -1
- package/dist/esm/{IndirectTaxDetailsView-0a57b622.js → IndirectTaxDetailsView-b7fa596b.js} +2 -2
- package/dist/esm/{ShadowViewAddon-aae27c2e.js → ShadowViewAddon-32559cba.js} +8 -8
- package/dist/esm/{usePayoutStatus-c515b24b.js → data-acdb790f.js} +130 -156
- package/dist/esm/{global-1099f20d.js → global-55e73040.js} +5 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/mint-components.js +2 -2
- package/dist/esm/sqm-banking-info-form_10.entry.js +65 -295
- package/dist/esm/sqm-big-stat_47.entry.js +7 -202
- package/dist/esm/sqm-code-verification.entry.js +1 -1
- package/dist/esm/sqm-email-verification.entry.js +1 -1
- package/dist/esm/sqm-empty_4.entry.js +1 -1
- package/dist/esm/sqm-header-logo.entry.js +1 -14
- package/dist/esm/{sqm-lead-checkbox-field-view-cbafee07.js → sqm-lead-checkbox-field-view-c359cc95.js} +1 -1
- package/dist/esm/sqm-lead-checkbox-field.entry.js +3 -3
- package/dist/esm/{sqm-lead-input-field-view-f3775c28.js → sqm-lead-input-field-view-6fe71f32.js} +1 -1
- package/dist/esm/sqm-lead-input-field.entry.js +3 -3
- package/dist/esm/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm/sqm-pagination_3.entry.js +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-7d86299c.js → sqm-portal-email-verification-view-176ddb91.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +2 -2
- package/dist/esm/{sqm-portal-profile-view-3ed13e4d.js → sqm-portal-profile-view-6a53716b.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +2 -2
- package/dist/esm/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm/sqm-stencilbook.entry.js +8 -9
- package/dist/esm/{useLeadFormState-c379e5d7.js → useLeadFormState-d8667862.js} +1 -1
- package/dist/esm/{utils-6122971b.js → utils-27fdc7d7.js} +1 -1
- package/dist/esm-es5/{IndirectTaxDetailsView-0a57b622.js → IndirectTaxDetailsView-b7fa596b.js} +1 -1
- package/dist/esm-es5/{ShadowViewAddon-aae27c2e.js → ShadowViewAddon-32559cba.js} +1 -1
- package/dist/esm-es5/data-acdb790f.js +6 -0
- package/dist/esm-es5/{global-1099f20d.js → global-55e73040.js} +1 -1
- 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-code-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/sqm-header-logo.entry.js +1 -1
- package/dist/esm-es5/{sqm-lead-checkbox-field-view-cbafee07.js → sqm-lead-checkbox-field-view-c359cc95.js} +1 -1
- package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -1
- package/dist/esm-es5/{sqm-lead-input-field-view-f3775c28.js → sqm-lead-input-field-view-6fe71f32.js} +1 -1
- package/dist/esm-es5/sqm-lead-input-field.entry.js +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-7d86299c.js → sqm-portal-email-verification-view-176ddb91.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-3ed13e4d.js → sqm-portal-profile-view-6a53716b.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/{useLeadFormState-c379e5d7.js → useLeadFormState-d8667862.js} +1 -1
- package/dist/esm-es5/{utils-6122971b.js → utils-27fdc7d7.js} +1 -1
- package/dist/mint-components/global/styles.ts +5 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-f0eae4e6.system.js → p-0c6259b2.system.js} +1 -1
- package/dist/mint-components/{p-aefaec37.entry.js → p-130fd1d8.entry.js} +1 -1
- package/dist/mint-components/p-17e3f564.system.entry.js +1 -0
- package/dist/mint-components/{p-db1a0db1.js → p-1b7900ed.js} +1 -1
- package/dist/mint-components/{p-ed16b35a.js → p-23c21cf4.js} +1 -1
- package/dist/mint-components/{p-aa08457e.system.js → p-271c092c.system.js} +1 -1
- package/dist/mint-components/{p-5f3eafd4.entry.js → p-2e0a3d84.entry.js} +2 -2
- package/dist/mint-components/{p-0649123a.system.entry.js → p-3aba7c3a.system.entry.js} +1 -1
- package/dist/mint-components/{p-4c811d12.entry.js → p-449314ca.entry.js} +1 -1
- package/dist/mint-components/p-469a6450.system.js +6 -0
- package/dist/mint-components/{p-f401ef19.system.entry.js → p-46a22d08.system.entry.js} +1 -1
- package/dist/mint-components/{p-57ce33dd.js → p-47b73018.js} +2 -2
- package/dist/mint-components/{p-60465a2d.system.js → p-4cfa1432.system.js} +1 -1
- package/dist/mint-components/{p-c85f204b.system.js → p-52123353.system.js} +1 -1
- package/dist/mint-components/{p-bec87ac9.system.entry.js → p-54154ed4.system.entry.js} +1 -1
- package/dist/mint-components/{p-47c83656.entry.js → p-5a8911c7.entry.js} +1 -1
- package/dist/mint-components/{p-56009bf0.system.entry.js → p-5b088b96.system.entry.js} +1 -1
- package/dist/mint-components/{p-6d5bd95a.js → p-618d249d.js} +1 -1
- package/dist/mint-components/{p-22a9114f.system.entry.js → p-6ec7b746.system.entry.js} +1 -1
- package/dist/mint-components/{p-6445e926.system.entry.js → p-709cdbf7.system.entry.js} +1 -1
- package/dist/mint-components/{p-38f932ae.system.js → p-73fdd315.system.js} +1 -1
- package/dist/mint-components/{p-4ce51b1c.system.entry.js → p-745a27ee.system.entry.js} +1 -1
- package/dist/mint-components/{p-6d9ce4e5.entry.js → p-757820a4.entry.js} +1 -1
- package/dist/mint-components/{p-18720462.system.entry.js → p-7a2375c3.system.entry.js} +1 -1
- package/dist/mint-components/{p-d3120982.system.entry.js → p-84632241.system.entry.js} +1 -1
- package/dist/mint-components/{p-aa8c6332.js → p-887e3b03.js} +1 -1
- package/dist/mint-components/p-8a2ec966.entry.js +1 -0
- package/dist/mint-components/p-8a458176.entry.js +273 -0
- package/dist/mint-components/{p-60c14cec.entry.js → p-93f37676.entry.js} +1 -1
- package/dist/mint-components/{p-7a268047.js → p-9504b639.js} +1 -1
- package/dist/mint-components/{p-717b6730.system.entry.js → p-959925bf.system.entry.js} +1 -1
- package/dist/mint-components/p-9d4f1401.system.entry.js +1 -0
- package/dist/mint-components/{p-4fed8672.js → p-9db05d78.js} +1 -1
- package/dist/mint-components/p-9ff60e10.system.js +1 -0
- package/dist/mint-components/p-a7ee19dc.entry.js +1 -0
- package/dist/mint-components/{p-c994512c.system.js → p-aeea89b4.system.js} +1 -1
- package/dist/mint-components/{p-a5c63310.entry.js → p-b427cf9e.entry.js} +1 -1
- package/dist/mint-components/{p-511c87ce.system.entry.js → p-b5905137.system.entry.js} +1 -1
- package/dist/mint-components/{p-14e813a7.system.entry.js → p-b9d63ca9.system.entry.js} +1 -1
- package/dist/mint-components/{p-a217cc8d.entry.js → p-bcb8532f.entry.js} +1 -1
- package/dist/mint-components/{p-e0a724dd.system.js → p-bcc61fbe.system.js} +1 -1
- package/dist/mint-components/{p-00bc7211.js → p-c25e76f7.js} +1 -1
- package/dist/mint-components/{p-6c006998.entry.js → p-c803eaed.entry.js} +1 -1
- package/dist/mint-components/p-c8bbd212.entry.js +99 -0
- package/dist/mint-components/{p-5d059c95.entry.js → p-da0a7fa5.entry.js} +1 -1
- package/dist/mint-components/p-e1e7d01c.js +157 -0
- package/dist/mint-components/{p-ad4348c3.system.js → p-e8661eaa.system.js} +1 -1
- package/dist/mint-components/{p-79a3344f.js → p-ec0f9326.js} +1 -1
- package/dist/mint-components/p-eea87fdc.system.entry.js +1 -0
- package/dist/mint-components/{p-74f43a08.system.js → p-f9c3290d.system.js} +1 -1
- package/dist/mint-components/p-fac02d24.entry.js +1 -0
- package/dist/types/components/sqm-header-logo/sqm-header-logo.d.ts +1 -14
- package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.d.ts +0 -24
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +0 -16
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +0 -57
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +1 -3
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +0 -48
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +0 -12
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +0 -48
- package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.d.ts +0 -2
- package/dist/types/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.d.ts +0 -1
- package/dist/types/components.d.ts +41 -331
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/shoelace/assets/icons/twitter-x.svg +4 -0
- package/dist/esm-es5/usePayoutStatus-c515b24b.js +0 -6
- package/dist/mint-components/p-09ab53fb.system.entry.js +0 -1
- package/dist/mint-components/p-1c1ae908.system.js +0 -6
- package/dist/mint-components/p-296dea25.system.entry.js +0 -1
- package/dist/mint-components/p-69ed04cc.entry.js +0 -273
- package/dist/mint-components/p-6eb050f1.system.entry.js +0 -1
- package/dist/mint-components/p-8b5b2acc.entry.js +0 -1
- package/dist/mint-components/p-967a9040.system.js +0 -1
- package/dist/mint-components/p-9c3ad5dc.entry.js +0 -99
- package/dist/mint-components/p-ab111e29.entry.js +0 -1
- package/dist/mint-components/p-c9cceb05.js +0 -157
- package/dist/mint-components/p-ea0bc627.entry.js +0 -1
- package/dist/types/global/android.d.ts +0 -7
- package/dist/types/global/demo.d.ts +0 -2
- package/dist/types/stories/features.d.ts +0 -4
- package/dist/types/stories/templates.d.ts +0 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, h as h$1, c as Host
|
|
2
|
-
import { b as buildFontsCssUrl, i as intl } from './global-
|
|
1
|
+
import { r as registerInstance, h as h$1, c as Host } from './index-b3a06de8.js';
|
|
2
|
+
import { b as buildFontsCssUrl, i as intl } from './global-55e73040.js';
|
|
3
3
|
import { n as h, f as useEffect, i as d, k as useState, m as useRef, u as useMemo, b as browser, j as useReducer } from './dom-context-hooks.module-63370afd.js';
|
|
4
4
|
import { i as isDemo, _ as _$1, d as dist, J, H, B, $ as $e, w as wn, u as useCallback, L, y as yn, j as jn, q as Ue, r as un, V as Ve, b as setUserIdentity, Q as Qe, k as kn, M as Mn, I as In, S as Sn } from './index.module-c9811a48.js';
|
|
5
5
|
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
@@ -17,17 +17,17 @@ import { p as pathToRegexp } from './index-ffa26b43.js';
|
|
|
17
17
|
import { E as EmailRegistrationView } from './email-registration-view-1f587f8b.js';
|
|
18
18
|
import { R as REGISTRATION_FORM_STATE_CONTEXT, u as useRegistrationFormState } from './useRegistrationFormState-24d594ea.js';
|
|
19
19
|
import { u as useInstantAccessRegistration } from './useInstantAccessRegistration-dda1f52b.js';
|
|
20
|
-
import { R as RequiredPropsError, L as LEAD_FORM_STATE_CONTEXT, u as useLeadFormState } from './useLeadFormState-
|
|
20
|
+
import { R as RequiredPropsError, L as LEAD_FORM_STATE_CONTEXT, u as useLeadFormState } from './useLeadFormState-d8667862.js';
|
|
21
21
|
import { P as PortalLoginView } from './sqm-portal-login-view-7670cd86.js';
|
|
22
22
|
import { u as usePortalLogin } from './usePortalLogin-f95bbc67.js';
|
|
23
23
|
import { A as AsYouType } from './AsYouType-46f67d0d.js';
|
|
24
24
|
import { i as isEmpty } from './utilities-72c07b09.js';
|
|
25
25
|
import { E as ErrorView } from './ErrorView-bbf0a042.js';
|
|
26
|
-
import { u as useDemoBigStat, W as useBigStat, B as BigStatView, C as CardFeedView, c 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 PortalForgotPasswordView, i as PortalFrameView, d as PortalRegisterView, R as ReferralIframeView, j as RewardExchangeView, Y as demoRewardExchange, J as useShareButton, a as ShareButtonView, K as useShareLink, S as StatContainerView, T as TaskCardView } from './ShadowViewAddon-
|
|
26
|
+
import { u as useDemoBigStat, W as useBigStat, B as BigStatView, C as CardFeedView, c 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 PortalForgotPasswordView, i as PortalFrameView, d as PortalRegisterView, R as ReferralIframeView, j as RewardExchangeView, Y as demoRewardExchange, J as useShareButton, a as ShareButtonView, K as useShareLink, S as StatContainerView, T as TaskCardView } from './ShadowViewAddon-32559cba.js';
|
|
27
27
|
import './sqm-portal-container-view-176e92e3.js';
|
|
28
|
-
import { g as getCountryObj, L as LoadingView } from './utils-
|
|
28
|
+
import { g as getCountryObj, L as LoadingView } from './utils-27fdc7d7.js';
|
|
29
29
|
import { p as parseStates, e as extractProps } from './extractProps-54064fb0.js';
|
|
30
|
-
import { u as usePayoutStatus, 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, f as GET_FINANCE_NETWORK_SETTINGS, g as CURRENCIES_QUERY_NAMESPACE, h as GET_CURRENCIES } from './
|
|
30
|
+
import { u as usePayoutStatus, 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, f as GET_FINANCE_NETWORK_SETTINGS, g as CURRENCIES_QUERY_NAMESPACE, h as GET_CURRENCIES } from './data-acdb790f.js';
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
@@ -3023,7 +3023,7 @@ function PayoutStatusAlertView(props) {
|
|
|
3023
3023
|
icon: "exclamation-triangle",
|
|
3024
3024
|
};
|
|
3025
3025
|
}
|
|
3026
|
-
case "
|
|
3026
|
+
case "ACCOUNT_REVIEW":
|
|
3027
3027
|
return {
|
|
3028
3028
|
header: text.accountReviewHeader,
|
|
3029
3029
|
description: intl.formatMessage({
|
|
@@ -3036,92 +3036,6 @@ function PayoutStatusAlertView(props) {
|
|
|
3036
3036
|
alertType: "warning",
|
|
3037
3037
|
icon: "exclamation-triangle",
|
|
3038
3038
|
};
|
|
3039
|
-
case "PAYMENT_HOLD_ON_CHANGE":
|
|
3040
|
-
return {
|
|
3041
|
-
header: text.paymentHoldOnChangeHeader,
|
|
3042
|
-
description: intl.formatMessage({
|
|
3043
|
-
id: "accountReviewDescription",
|
|
3044
|
-
defaultMessage: text.paymentHoldOnChangeDescription,
|
|
3045
|
-
}, {
|
|
3046
|
-
supportLink: (h$1("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
3047
|
-
}),
|
|
3048
|
-
buttonText: null,
|
|
3049
|
-
alertType: "warning",
|
|
3050
|
-
icon: "exclamation-triangle",
|
|
3051
|
-
};
|
|
3052
|
-
case "BENEFICIARY_NAME_INVALID":
|
|
3053
|
-
return {
|
|
3054
|
-
header: text.beneficiaryNameInvalidHeader,
|
|
3055
|
-
description: intl.formatMessage({
|
|
3056
|
-
id: "accountReviewDescription",
|
|
3057
|
-
defaultMessage: text.beneficiaryNameInvalidDescription,
|
|
3058
|
-
}, {
|
|
3059
|
-
supportLink: (h$1("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
3060
|
-
}),
|
|
3061
|
-
button: (h$1(Fragment, null,
|
|
3062
|
-
h$1("sl-button", { disabled: states.loading, type: "primary", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton),
|
|
3063
|
-
h$1("sl-button", { disabled: states.loading, type: "default", onClick: callbacks.onNewFormClick }, text.newFormButton))),
|
|
3064
|
-
alertType: "warning",
|
|
3065
|
-
icon: "exclamation-triangle",
|
|
3066
|
-
};
|
|
3067
|
-
case "BENEFICIARY_NAME_MISMATCH":
|
|
3068
|
-
return {
|
|
3069
|
-
header: text.beneficiaryNameMismatchHeader,
|
|
3070
|
-
description: intl.formatMessage({
|
|
3071
|
-
id: "accountReviewDescription",
|
|
3072
|
-
defaultMessage: text.beneficiaryNameMismatchDescription,
|
|
3073
|
-
}, {
|
|
3074
|
-
supportLink: (h$1("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
3075
|
-
}),
|
|
3076
|
-
button: (h$1(Fragment, null,
|
|
3077
|
-
h$1("sl-button", { disabled: states.loading, type: "primary", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton),
|
|
3078
|
-
h$1("sl-button", { disabled: states.loading, type: "default", onClick: callbacks.onNewFormClick }, text.newFormButton))),
|
|
3079
|
-
alertType: "warning",
|
|
3080
|
-
icon: "exclamation-triangle",
|
|
3081
|
-
};
|
|
3082
|
-
case "BANK_TAX_NAME_MISMATCH":
|
|
3083
|
-
return {
|
|
3084
|
-
header: text.bankTaxNameMismatchHeader,
|
|
3085
|
-
description: intl.formatMessage({
|
|
3086
|
-
id: "accountReviewDescription",
|
|
3087
|
-
defaultMessage: text.bankTaxNameMismatchDescription,
|
|
3088
|
-
}, {
|
|
3089
|
-
supportLink: (h$1("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
3090
|
-
}),
|
|
3091
|
-
button: (h$1(Fragment, null,
|
|
3092
|
-
h$1("sl-button", { disabled: states.loading, type: "primary", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton),
|
|
3093
|
-
h$1("sl-button", { disabled: states.loading, type: "default", onClick: callbacks.onNewFormClick }, text.newFormButton))),
|
|
3094
|
-
alertType: "warning",
|
|
3095
|
-
icon: "exclamation-triangle",
|
|
3096
|
-
};
|
|
3097
|
-
case "WITHDRAWAL_SETTINGS_INVALID":
|
|
3098
|
-
return {
|
|
3099
|
-
header: text.withdrawalSettingsInvalidHeader,
|
|
3100
|
-
description: intl.formatMessage({
|
|
3101
|
-
id: "accountReviewDescription",
|
|
3102
|
-
defaultMessage: text.withdrawalSettingsInvalidDescription,
|
|
3103
|
-
}, {
|
|
3104
|
-
supportLink: (h$1("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
3105
|
-
}),
|
|
3106
|
-
button: (h$1(Fragment, null,
|
|
3107
|
-
h$1("sl-button", { disabled: states.loading, type: "primary", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton))),
|
|
3108
|
-
alertType: "warning",
|
|
3109
|
-
icon: "exclamation-triangle",
|
|
3110
|
-
};
|
|
3111
|
-
case "PAYMENT_RETURNED":
|
|
3112
|
-
return {
|
|
3113
|
-
header: text.paymentReturnedHeader,
|
|
3114
|
-
description: intl.formatMessage({
|
|
3115
|
-
id: "accountReviewDescription",
|
|
3116
|
-
defaultMessage: text.paymentReturnedDescription,
|
|
3117
|
-
}, {
|
|
3118
|
-
supportLink: (h$1("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
3119
|
-
}),
|
|
3120
|
-
button: (h$1(Fragment, null,
|
|
3121
|
-
h$1("sl-button", { disabled: states.loading, type: "primary", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton))),
|
|
3122
|
-
alertType: "warning",
|
|
3123
|
-
icon: "exclamation-triangle",
|
|
3124
|
-
};
|
|
3125
3039
|
case "HOLD":
|
|
3126
3040
|
return {
|
|
3127
3041
|
header: text.holdHeader,
|
|
@@ -3157,8 +3071,6 @@ function PayoutStatusAlertView(props) {
|
|
|
3157
3071
|
return (h$1("div", { style: { paddingTop: "10px" } },
|
|
3158
3072
|
h$1("sl-button", { type: "secondary", exportparts: "base: secondarybutton-base", loading: states.veriffLoading, onClick: callbacks.onClick }, text.verificationRequiredButtonText)));
|
|
3159
3073
|
default:
|
|
3160
|
-
if (alertDetails.button)
|
|
3161
|
-
return alertDetails.button;
|
|
3162
3074
|
return;
|
|
3163
3075
|
}
|
|
3164
3076
|
}
|
|
@@ -3185,15 +3097,6 @@ const PayoutStatusAlert = class {
|
|
|
3185
3097
|
* @uiName Info required alert header
|
|
3186
3098
|
*/
|
|
3187
3099
|
this.informationRequiredHeader = "Payout and tax information required";
|
|
3188
|
-
/**
|
|
3189
|
-
*
|
|
3190
|
-
* @uiName Edit payment info button label
|
|
3191
|
-
*/
|
|
3192
|
-
this.editPaymentInformationButton = "Edit Payout Information";
|
|
3193
|
-
/**
|
|
3194
|
-
* @uiName Submit new tax form button label
|
|
3195
|
-
*/
|
|
3196
|
-
this.newFormButton = "Submit new form";
|
|
3197
3100
|
/**
|
|
3198
3101
|
* @uiName Info required alert description
|
|
3199
3102
|
*/
|
|
@@ -3246,54 +3149,6 @@ const PayoutStatusAlert = class {
|
|
|
3246
3149
|
* @uiName Account review alert description
|
|
3247
3150
|
*/
|
|
3248
3151
|
this.accountReviewDescription = "This process takes 48 hours, payouts are on hold until it's completed. You will receive an email from our referral provider, Impact.com, if any issues arise. It contains details on how to resolve this issue. If you need further assistance, please reach out to our {supportLink}.";
|
|
3249
|
-
/**
|
|
3250
|
-
* @uiName Payment on hold alert header
|
|
3251
|
-
*/
|
|
3252
|
-
this.paymentHoldOnChangeHeader = "We are reviewing your new payout settings";
|
|
3253
|
-
/**
|
|
3254
|
-
* @uiName Payment on hold alert description
|
|
3255
|
-
*/
|
|
3256
|
-
this.paymentHoldOnChangeDescription = "Your payout is temporarily on hold while we review your new payment information, this process is usually resolved within 48 hours.";
|
|
3257
|
-
/**
|
|
3258
|
-
* @uiName Beneficiary name invalid alert header
|
|
3259
|
-
*/
|
|
3260
|
-
this.beneficiaryNameInvalidHeader = "Your payment information does not match your tax form";
|
|
3261
|
-
/**
|
|
3262
|
-
* @uiName Beneficiary name invalid description
|
|
3263
|
-
*/
|
|
3264
|
-
this.beneficiaryNameInvalidDescription = "The beneficiary name in your payment information does not match what was submitted in your tax form. Please review and update your payment information or tax form so that they match exactly and do not include any invalid characters. Your payouts are on hold until this is resolved.";
|
|
3265
|
-
/**
|
|
3266
|
-
* @uiName Beneficiary name mismatch alert header
|
|
3267
|
-
*/
|
|
3268
|
-
this.beneficiaryNameMismatchHeader = "Your payment information does not match your tax form";
|
|
3269
|
-
/**
|
|
3270
|
-
* @uiName Beneficiary name mismatch alert description
|
|
3271
|
-
*/
|
|
3272
|
-
this.beneficiaryNameMismatchDescription = "The beneficiary name in your payment information does not match what was submitted in your tax form. Please review and update your payment information or tax form so that they match exactly and do not include any invalid characters. Your payouts are on hold until this is resolved.";
|
|
3273
|
-
/**
|
|
3274
|
-
* @uiName Bank name mismatch alert header
|
|
3275
|
-
*/
|
|
3276
|
-
this.bankTaxNameMismatchHeader = "Your payment information does not match your tax form";
|
|
3277
|
-
/**
|
|
3278
|
-
* @uiName Bank name mismatch alert description
|
|
3279
|
-
*/
|
|
3280
|
-
this.bankTaxNameMismatchDescription = "The bank name in your payment information does not match what was submitted in your tax form. Please review and update your payment information or tax form so that they match exactly and do not include any invalid characters. Your payouts are on hold until this is resolved.";
|
|
3281
|
-
/**
|
|
3282
|
-
* @uiName Withdrawal settings invalid alert header
|
|
3283
|
-
*/
|
|
3284
|
-
this.withdrawalSettingsInvalidHeader = "Your payment information includes invalid characters";
|
|
3285
|
-
/**
|
|
3286
|
-
* @uiName Withdrawal settings invalid alert description
|
|
3287
|
-
*/
|
|
3288
|
-
this.withdrawalSettingsInvalidDescription = "There are invalid characters in your payment information. Please review your information and make sure it is correct with no invalid characters. Your payouts are on hold until this is resolved.";
|
|
3289
|
-
/**
|
|
3290
|
-
* @uiName Payment returned alert header
|
|
3291
|
-
*/
|
|
3292
|
-
this.paymentReturnedHeader = "Payout unsuccessful";
|
|
3293
|
-
/**
|
|
3294
|
-
* @uiName Payment returned alert description
|
|
3295
|
-
*/
|
|
3296
|
-
this.paymentReturnedDescription = "Our recent payment attempt for your earnings was unsuccessful. Please review your payment information and make sure it is correct.";
|
|
3297
3152
|
/**
|
|
3298
3153
|
* @uiName W-9 payment threshold alert header
|
|
3299
3154
|
*/
|
|
@@ -3372,8 +3227,6 @@ function useDemoPayoutStatusAlert(props) {
|
|
|
3372
3227
|
callbacks: {
|
|
3373
3228
|
onTermsClick: () => { },
|
|
3374
3229
|
onClick: () => console.log("show"),
|
|
3375
|
-
onPaymentInfoClick: () => { },
|
|
3376
|
-
onNewFormClick: () => { },
|
|
3377
3230
|
},
|
|
3378
3231
|
}, formatted || props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
3379
3232
|
}
|
|
@@ -7626,54 +7479,6 @@ const TaxAndCashMonolith = class {
|
|
|
7626
7479
|
* @uiName Account review alert description
|
|
7627
7480
|
*/
|
|
7628
7481
|
this.dashboard_accountReviewDescription = "This process takes 48 hours, payouts are on hold until it's completed. You will receive an email from our referral provider, Impact.com, if any issues arise. It contains details on how to resolve this issue. If you need further assistance, please reach out to our {supportLink}.";
|
|
7629
|
-
/**
|
|
7630
|
-
* @uiName Payment on hold alert header
|
|
7631
|
-
*/
|
|
7632
|
-
this.dashboard_paymentOnHoldHeader = "We are reviewing your new payout settings";
|
|
7633
|
-
/**
|
|
7634
|
-
* @uiName Payment on hold alert description
|
|
7635
|
-
*/
|
|
7636
|
-
this.dashboard_paymentOnHoldDescription = "Your payout is temporarily on hold while we review your new payment information, this process is usually resolved within 48 hours.";
|
|
7637
|
-
/**
|
|
7638
|
-
* @uiName Beneficiary name invalid alert header
|
|
7639
|
-
*/
|
|
7640
|
-
this.dashboard_beneficiaryNameInvalidHeader = "Your payment information does not match your tax form";
|
|
7641
|
-
/**
|
|
7642
|
-
* @uiName Beneficiary name invalid description
|
|
7643
|
-
*/
|
|
7644
|
-
this.dashboard_beneficiaryNameInvalidDescription = "The beneficiary name in your payment information does not match what was submitted in your tax form. Please review and update your payment information or tax form so that they match exactly and do not include any invalid characters. Your payouts are on hold until this is resolved.";
|
|
7645
|
-
/**
|
|
7646
|
-
* @uiName Beneficiary name mismatch alert header
|
|
7647
|
-
*/
|
|
7648
|
-
this.dashboard_beneficiaryNameMismatchHeader = "Your payment information does not match your tax form";
|
|
7649
|
-
/**
|
|
7650
|
-
* @uiName Beneficiary name mismatch alert description
|
|
7651
|
-
*/
|
|
7652
|
-
this.dashboard_beneficiaryNameMismatchDescription = "The beneficiary name in your payment information does not match what was submitted in your tax form. Please review and update your payment information or tax form so that they match exactly and do not include any invalid characters. Your payouts are on hold until this is resolved.";
|
|
7653
|
-
/**
|
|
7654
|
-
* @uiName Bank name mismatch alert header
|
|
7655
|
-
*/
|
|
7656
|
-
this.dashboard_bankNameMismatchHeader = "Your payment information does not match your tax form";
|
|
7657
|
-
/**
|
|
7658
|
-
* @uiName Bank name mismatch alert description
|
|
7659
|
-
*/
|
|
7660
|
-
this.dashboard_bankNameMismatchDescription = "The bank name in your payment information does not match what was submitted in your tax form. Please review and update your payment information or tax form so that they match exactly and do not include any invalid characters. Your payouts are on hold until this is resolved.";
|
|
7661
|
-
/**
|
|
7662
|
-
* @uiName Withdrawal settings invalid alert header
|
|
7663
|
-
*/
|
|
7664
|
-
this.dashboard_withdrawalSettingsInvalidHeader = "Your payment information includes invalid characters";
|
|
7665
|
-
/**
|
|
7666
|
-
* @uiName Withdrawal settings invalid alert description
|
|
7667
|
-
*/
|
|
7668
|
-
this.dashboard_withdrawalSettingsInvalidDescription = "There are invalid characters in your payment information. Please review your information and make sure it is correct with no invalid characters. Your payouts are on hold until this is resolved.";
|
|
7669
|
-
/**
|
|
7670
|
-
* @uiName Payment returned alert header
|
|
7671
|
-
*/
|
|
7672
|
-
this.dashboard_paymentReturnedHeader = "Payout unsuccessful";
|
|
7673
|
-
/**
|
|
7674
|
-
* @uiName Payment returned alert description
|
|
7675
|
-
*/
|
|
7676
|
-
this.dashboard_paymentReturnedDescription = "Our recent payment attempt for your earnings was unsuccessful. Please review your payment information and make sure it is correct.";
|
|
7677
7482
|
/**
|
|
7678
7483
|
* @uiName Terms and Conditions text
|
|
7679
7484
|
* @uiGroup Dashboard Properties
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h, r as registerInstance } from './index-b3a06de8.js';
|
|
2
|
-
import { i as intl } from './global-
|
|
2
|
+
import { i as intl } from './global-55e73040.js';
|
|
3
3
|
import { l, k as useState, f as useEffect, n as h$1 } from './dom-context-hooks.module-63370afd.js';
|
|
4
4
|
import { d as dist, t as Pn, F as Fn, i as isDemo, p as En } from './index.module-c9811a48.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h, r as registerInstance } from './index-b3a06de8.js';
|
|
2
|
-
import { i as intl } from './global-
|
|
2
|
+
import { i as intl } from './global-55e73040.js';
|
|
3
3
|
import { k as useState, f as useEffect, n as h$1 } from './dom-context-hooks.module-63370afd.js';
|
|
4
4
|
import { d as dist, t as Pn, w as wn, J, $ as $e, i as isDemo, p as En } from './index.module-c9811a48.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as Host } from './index-b3a06de8.js';
|
|
2
|
-
import { i as intl } from './global-
|
|
2
|
+
import { i as intl } from './global-55e73040.js';
|
|
3
3
|
import { n as h$1 } from './dom-context-hooks.module-63370afd.js';
|
|
4
4
|
import './index.module-c9811a48.js';
|
|
5
5
|
import { g as getProps } from './utils-334c1e34.js';
|
|
@@ -4,15 +4,6 @@ import { n as h } from './dom-context-hooks.module-63370afd.js';
|
|
|
4
4
|
const HeroImage = class {
|
|
5
5
|
constructor(hostRef) {
|
|
6
6
|
registerInstance(this, hostRef);
|
|
7
|
-
/**
|
|
8
|
-
* @uiName Logo text size
|
|
9
|
-
*/
|
|
10
|
-
this.logoTextSize = 32;
|
|
11
|
-
/**
|
|
12
|
-
* @uiWidget color
|
|
13
|
-
* @uiName Logo text color
|
|
14
|
-
*/
|
|
15
|
-
this.logoTextColor = "#555555";
|
|
16
7
|
/**
|
|
17
8
|
* Page participants are navigated to after clicking the header logo.
|
|
18
9
|
*
|
|
@@ -28,11 +19,7 @@ const HeroImage = class {
|
|
|
28
19
|
}
|
|
29
20
|
disconnectedCallback() { }
|
|
30
21
|
render() {
|
|
31
|
-
return (h$1(Host, null, h$1("a", { href: this.nextPage, part: "sqm-link" },
|
|
32
|
-
fontSize: `${this.logoTextSize}px`,
|
|
33
|
-
color: this.logoTextColor || "#555555",
|
|
34
|
-
textDecoration: "none",
|
|
35
|
-
} }, this.logoText)))));
|
|
22
|
+
return (h$1(Host, null, h$1("a", { href: this.nextPage, part: "sqm-link" }, h$1("img", { style: { height: `${this === null || this === void 0 ? void 0 : this.height}px` }, src: this === null || this === void 0 ? void 0 : this.imageUrl }))));
|
|
36
23
|
}
|
|
37
24
|
};
|
|
38
25
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-b3a06de8.js';
|
|
2
|
-
import './global-
|
|
2
|
+
import './global-55e73040.js';
|
|
3
3
|
import { i as d, n as h } from './dom-context-hooks.module-63370afd.js';
|
|
4
4
|
import { i as isDemo } from './index.module-c9811a48.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import { a as getMissingProps, g as getProps } from './utils-334c1e34.js';
|
|
7
7
|
import './JSS-67b5cff8.js';
|
|
8
|
-
import { L as LEAD_FORM_STATE_CONTEXT, R as RequiredPropsError } from './useLeadFormState-
|
|
9
|
-
import { L as LeadCheckboxFieldView } from './sqm-lead-checkbox-field-view-
|
|
8
|
+
import { L as LEAD_FORM_STATE_CONTEXT, R as RequiredPropsError } from './useLeadFormState-d8667862.js';
|
|
9
|
+
import { L as LeadCheckboxFieldView } from './sqm-lead-checkbox-field-view-c359cc95.js';
|
|
10
10
|
|
|
11
11
|
function useLeadCheckboxField() {
|
|
12
12
|
const leadFormState = d(LEAD_FORM_STATE_CONTEXT);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-b3a06de8.js';
|
|
2
|
-
import './global-
|
|
2
|
+
import './global-55e73040.js';
|
|
3
3
|
import { i as d, n as h } from './dom-context-hooks.module-63370afd.js';
|
|
4
4
|
import { i as isDemo } from './index.module-c9811a48.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import { g as getProps, a as getMissingProps } from './utils-334c1e34.js';
|
|
7
7
|
import './JSS-67b5cff8.js';
|
|
8
8
|
import './mixins-f750863a.js';
|
|
9
|
-
import { L as LEAD_FORM_STATE_CONTEXT, R as RequiredPropsError } from './useLeadFormState-
|
|
10
|
-
import { L as LeadInputFieldView } from './sqm-lead-input-field-view-
|
|
9
|
+
import { L as LEAD_FORM_STATE_CONTEXT, R as RequiredPropsError } from './useLeadFormState-d8667862.js';
|
|
10
|
+
import { L as LeadInputFieldView } from './sqm-lead-input-field-view-6fe71f32.js';
|
|
11
11
|
|
|
12
12
|
function useLeadInputField() {
|
|
13
13
|
const leadFormState = d(LEAD_FORM_STATE_CONTEXT);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-b3a06de8.js';
|
|
2
|
-
import { i as intl } from './global-
|
|
2
|
+
import { i as intl } from './global-55e73040.js';
|
|
3
3
|
import { n as h } from './dom-context-hooks.module-63370afd.js';
|
|
4
4
|
import { d as dist, H, J, w as wn, i as isDemo } from './index.module-c9811a48.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h, F as Fragment, r as registerInstance } from './index-b3a06de8.js';
|
|
2
|
-
import { i as intl } from './global-
|
|
2
|
+
import { i as intl } from './global-55e73040.js';
|
|
3
3
|
import { n as h$1, k as useState } from './dom-context-hooks.module-63370afd.js';
|
|
4
4
|
import { F as Fn, i as isDemo, d as dist, H, J, B, w as wn, $ as $e } from './index.module-c9811a48.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from './index-b3a06de8.js';
|
|
2
|
-
import { i as intl } from './global-
|
|
2
|
+
import { i as intl } from './global-55e73040.js';
|
|
3
3
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
4
4
|
import { A as AuthWrapper, a as AuthColumn } from './mixins-f750863a.js';
|
|
5
5
|
import { T as TextSpanView } from './sqm-text-span-view-4c17b8c9.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-b3a06de8.js';
|
|
2
|
-
import './global-
|
|
2
|
+
import './global-55e73040.js';
|
|
3
3
|
import { k as useState, m as useRef, f as useEffect, n as h } from './dom-context-hooks.module-63370afd.js';
|
|
4
4
|
import { l as ln, n as nn, J, j as jn, u as useCallback, i as isDemo } from './index.module-c9811a48.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import './JSS-67b5cff8.js';
|
|
7
7
|
import './mixins-f750863a.js';
|
|
8
8
|
import './sqm-text-span-view-4c17b8c9.js';
|
|
9
|
-
import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-
|
|
9
|
+
import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-176ddb91.js';
|
|
10
10
|
|
|
11
11
|
function usePortalEmailVerification(props) {
|
|
12
12
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
package/dist/esm/{sqm-portal-profile-view-3ed13e4d.js → sqm-portal-profile-view-6a53716b.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from './index-b3a06de8.js';
|
|
2
|
-
import { i as intl } from './global-
|
|
2
|
+
import { i as intl } from './global-55e73040.js';
|
|
3
3
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
4
4
|
import { T as TextSpanView } from './sqm-text-span-view-4c17b8c9.js';
|
|
5
5
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-b3a06de8.js';
|
|
2
|
-
import './global-
|
|
2
|
+
import './global-55e73040.js';
|
|
3
3
|
import { k as useState, f as useEffect, n as h } from './dom-context-hooks.module-63370afd.js';
|
|
4
4
|
import { d as dist, J, w as wn, $ as $e, i as isDemo } from './index.module-c9811a48.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import { g as getProps } from './utils-334c1e34.js';
|
|
7
7
|
import './JSS-67b5cff8.js';
|
|
8
8
|
import './sqm-text-span-view-4c17b8c9.js';
|
|
9
|
-
import { P as PortalProfileView } from './sqm-portal-profile-view-
|
|
9
|
+
import { P as PortalProfileView } from './sqm-portal-profile-view-6a53716b.js';
|
|
10
10
|
import { i as isEmpty } from './utilities-72c07b09.js';
|
|
11
11
|
|
|
12
12
|
const GET_USER = dist.gql `
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1, g as getElement, c as Host } from './index-b3a06de8.js';
|
|
2
|
-
import { i as intl } from './global-
|
|
2
|
+
import { i as intl } from './global-55e73040.js';
|
|
3
3
|
import { n as h, j as useReducer, u as useMemo, f as useEffect } from './dom-context-hooks.module-63370afd.js';
|
|
4
4
|
import { i as isDemo } from './index.module-c9811a48.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as Host } from './index-b3a06de8.js';
|
|
2
|
-
import { i as intl } from './global-
|
|
2
|
+
import { i as intl } from './global-55e73040.js';
|
|
3
3
|
import { b as browser, j as useReducer, f as useEffect, n as h$1, u as useMemo } from './dom-context-hooks.module-63370afd.js';
|
|
4
4
|
import { d as dist, J, H, L, w as wn, R as Rn, i as isDemo } from './index.module-c9811a48.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as Host } from './index-b3a06de8.js';
|
|
2
|
-
import './global-
|
|
2
|
+
import './global-55e73040.js';
|
|
3
3
|
import { a as commonjsGlobal, u as useMemo, k as useState, c as createCommonjsModule, f as useEffect, n as h$1 } from './dom-context-hooks.module-63370afd.js';
|
|
4
4
|
import { j as jn, b as setUserIdentity, o as setProgramId, k as kn, d as dist, X as Xe } from './index.module-c9811a48.js';
|
|
5
5
|
import './cjs-bdfb4486.js';
|
|
@@ -15,26 +15,26 @@ import './sqm-text-span-view-4c17b8c9.js';
|
|
|
15
15
|
import { C as CloseButtonView } from './sqm-close-button-view-2fa57229.js';
|
|
16
16
|
import './index-ffa26b43.js';
|
|
17
17
|
import { E as EmailRegistrationView } from './email-registration-view-1f587f8b.js';
|
|
18
|
-
import { L as LeadCheckboxFieldView } from './sqm-lead-checkbox-field-view-
|
|
18
|
+
import { L as LeadCheckboxFieldView } from './sqm-lead-checkbox-field-view-c359cc95.js';
|
|
19
19
|
import { L as LeaderboardRankView } from './sqm-leaderboard-rank-view-18baae5b.js';
|
|
20
20
|
import { L as LogoutCurrentUserView } from './sqm-logout-current-user-view-f21e54e3.js';
|
|
21
21
|
import { N as NavigationSidebarView } from './sqm-navigation-sidebar-view-0a2ec560.js';
|
|
22
22
|
import { N as NavigationSidebarItemView } from './sqm-navigation-sidebar-item-view-5a452423.js';
|
|
23
|
-
import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-
|
|
23
|
+
import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-176ddb91.js';
|
|
24
24
|
import { P as PortalLoginView } from './sqm-portal-login-view-7670cd86.js';
|
|
25
25
|
import { B as BaseRegistrationFormView } from './sqm-base-registration-form-view-9e97d8b4.js';
|
|
26
26
|
import { P as PortalRegistrationFormView } from './sqm-portal-registration-form-view-8bdc3804.js';
|
|
27
|
-
import { P as PortalProfileView } from './sqm-portal-profile-view-
|
|
27
|
+
import { P as PortalProfileView } from './sqm-portal-profile-view-6a53716b.js';
|
|
28
28
|
import './utilities-72c07b09.js';
|
|
29
29
|
import { P as PortalResetPasswordView } from './sqm-portal-reset-password-view-abef7286.js';
|
|
30
30
|
import { P as PortalVerifyEmailView } from './sqm-portal-verify-email-view-33805220.js';
|
|
31
31
|
import './ErrorView-bbf0a042.js';
|
|
32
32
|
import { Q as QrCodeView } from './sqm-qr-code-view-ea505213.js';
|
|
33
|
-
import { S as StatContainerView, B as BigStatView, a as ShareButtonView, P as PortalChangePasswordView, b as PoweredByImg$1, u as useDemoBigStat, T as TaskCardView, C as CardFeedView, c as CheckboxFieldView, d as PortalRegisterView, 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 PortalForgotPasswordView, i as PortalFrameView, R as ReferralIframeView, j as RewardExchangeView, r as rewardExchangeCustomErrorMsg, k as rewardExchangeLongText, l as rewardExchangeSelected, m as chooseAmountFixed, n as chooseAmountFixedNoDescription, o as chooseAmountVariable, p as chooseAmountVariableNoDescription, q as chooseAmountVariableDisabled, s as chooseAmountVariableUnavailable, t as confirmFixed, v as confirmVariable, w as redemptionError, x as queryError, y as success, z as successVariable, A as loading, F as empty$1, G as rewardExchange, J as useShareButton, K as useShareLink, M as ProgressBarView, O as ProgressBar$2, Q as LeadFormView, U as LeadDropdownFieldView, V as ShadowViewAddon } from './ShadowViewAddon-
|
|
33
|
+
import { S as StatContainerView, B as BigStatView, a as ShareButtonView, P as PortalChangePasswordView, b as PoweredByImg$1, u as useDemoBigStat, T as TaskCardView, C as CardFeedView, c as CheckboxFieldView, d as PortalRegisterView, 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 PortalForgotPasswordView, i as PortalFrameView, R as ReferralIframeView, j as RewardExchangeView, r as rewardExchangeCustomErrorMsg, k as rewardExchangeLongText, l as rewardExchangeSelected, m as chooseAmountFixed, n as chooseAmountFixedNoDescription, o as chooseAmountVariable, p as chooseAmountVariableNoDescription, q as chooseAmountVariableDisabled, s as chooseAmountVariableUnavailable, t as confirmFixed, v as confirmVariable, w as redemptionError, x as queryError, y as success, z as successVariable, A as loading, F as empty$1, G as rewardExchange, J as useShareButton, K as useShareLink, M as ProgressBarView, O as ProgressBar$2, Q as LeadFormView, U as LeadDropdownFieldView, V as ShadowViewAddon } from './ShadowViewAddon-32559cba.js';
|
|
34
34
|
import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-container-view-176e92e3.js';
|
|
35
|
-
import { I as InvoiceTableView, a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, O as OtherRegionSlotView } from './IndirectTaxDetailsView-
|
|
36
|
-
import { t as taxTypeToName, L as LoadingView } from './utils-
|
|
37
|
-
import { L as LeadInputFieldView } from './sqm-lead-input-field-view-
|
|
35
|
+
import { I as InvoiceTableView, a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, O as OtherRegionSlotView } from './IndirectTaxDetailsView-b7fa596b.js';
|
|
36
|
+
import { t as taxTypeToName, L as LoadingView } from './utils-27fdc7d7.js';
|
|
37
|
+
import { L as LeadInputFieldView } from './sqm-lead-input-field-view-6fe71f32.js';
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
40
|
* lodash (Custom Build) <https://lodash.com/>
|
|
@@ -15646,7 +15646,6 @@ const stepOneProps = {
|
|
|
15646
15646
|
},
|
|
15647
15647
|
},
|
|
15648
15648
|
data: {
|
|
15649
|
-
partnerData: {},
|
|
15650
15649
|
regionLabelEnum: "STATE",
|
|
15651
15650
|
regions: [],
|
|
15652
15651
|
phoneCountries: [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from './index-b3a06de8.js';
|
|
2
|
-
import { i as intl } from './global-
|
|
2
|
+
import { i as intl } from './global-55e73040.js';
|
|
3
3
|
import { k as useState, y } from './dom-context-hooks.module-63370afd.js';
|
|
4
4
|
import { _ } from './index.module-c9811a48.js';
|
|
5
5
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
package/dist/esm-es5/{IndirectTaxDetailsView-0a57b622.js → IndirectTaxDetailsView-b7fa596b.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h}from"./index-b3a06de8.js";import{i as intl}from"./global-1099f20d.js";import{c as createStyleSheet}from"./JSS-67b5cff8.js";import{f as formatErrorMessage}from"./utils-6122971b.js";var style={Description:{fontSize:"var(--sl-font-size-small)",marginTop:"var(--sl-spacing-small)",margin:"0 0 var(--sl-spacing-large)",color:"var(--sqm-text-subdued)"},Header:{fontSize:"var(--sl-font-size-large)",fontWeight:"var(-sl-font-weight-semibold)",margin:"0 0 var(--sl-spacing-xxx-small)"},Container:{},InvoiceTableContaier:{"& sl-details::part(base)":{border:"none"},"& sl-details::part(content)":{padding:0},"& sl-details::part(header)":{fontSize:"var(--sl-font-size-medium)",padding:"0px"},"& sl-details::part(summary)":{fontWeight:"var(-sl-font-weight-semibold)"},"& sl-details::part(summary-icon)":{marginRight:"100%",marginLeft:"var(--sl-spacing-x-small)",transform:"rotate(90deg)"},"& sl-details[open]::part(summary-icon)":{transform:"rotate(270deg)"}}};function InvoiceTableView(e,a){var l=createStyleSheet(style);var r=l.toString();var n="\n :host{\n display: block;\n }";return h("div",{class:l.classes.Container},h("style",{type:"text/css"},n,r),h("div",{class:l.classes.InvoiceTableContaier},h("sl-details",{summary:e.header},h("p",{class:l.classes.Description},e.description),a)))}var INDIRECT_TAX_PROVINCES=[{regionCode:"ALBERTA",taxType:"GST",displayName:"Alberta"},{regionCode:"BRITISHCOLUMBIA",taxType:"HST",displayName:"British Columbia"},{regionCode:"MANITOBA",taxType:"HST",displayName:"Manitoba"},{regionCode:"NEWBRUNSWICK",taxType:"HST",displayName:"New Brunswick"},{regionCode:"NEWFOUNDLANDLABRADOR",taxType:"HST",displayName:"Newfoundland"},{regionCode:"NORTHWESTTERRITORIES",taxType:"GST",displayName:"North West Territories"},{regionCode:"NOVASCOTIA",taxType:"HST",displayName:"Nova Scotia"},{regionCode:"NUNAVUT",taxType:"HST",displayName:"Nunavut"},{regionCode:"ONTARIO",taxType:"HST",displayName:"Ontario"},{regionCode:"PRINCEEDWARDISLAND",taxType:"HST",displayName:"Prince Edward Island"},{regionCode:"QUEBEC",taxType:"GST",displayName:"Quebec"},{regionCode:"SASKATCHEWAN",taxType:"HST",displayName:"Saskatchewan"},{regionCode:"YUKON",taxType:"GST",displayName:"Yukon"}];var INDIRECT_TAX_SPAIN_REGIONS=[{regionCode:"SPAINPROPER",taxType:"VAT",displayName:"Spain Proper"},{regionCode:"CANARYISLANDS",taxType:"VAT",displayName:"Canary Islands"}];var ADDRESS_REGIONS={CA:{labelEnum:"PROVINCE",regions:[{label:"Alberta",value:"ALBERTA"},{label:"British Columbia",value:"BRITISHCOLUMBIA"},{label:"Manitoba",value:"MANITOBA"},{label:"New Brunswick",value:"NEWBRUNSWICK"},{label:"Newfoundland & Labrador",value:"NEWFOUNDLANDANDLABRADOR"},{label:"Northwest Territories",value:"NORTHWESTTERRITORIES"},{label:"Nova Scotia",value:"NOVASCOTIA"},{label:"Nunavut",value:"NUNAVUT"},{label:"Ontario",value:"ONTARIO"},{label:"Prince Edward Island",value:"PRINCEEDWARDISLAND"},{label:"Quebec",value:"QUEBEC"},{label:"Saskatchewan",value:"SASKATCHEWAN"},{label:"Yukon",value:"YUKON"}]},ES:{labelEnum:"REGION",regions:[{label:"Canary Islands",value:"CANARYISLANDS"},{label:"Spain Proper",value:"SPAINPROPER"}]},AU:{labelEnum:"STATE",regions:[{label:"Australian Capital Territory",value:"CAPITALTERRITORY"},{label:"New South Wales",value:"NEWSOUTHWALES"},{label:"Northern Territory",value:"NORTHERNTERRITORY"},{label:"Queensland",value:"QUEENSLAND"},{label:"South Australia",value:"SOUTHAUSTRALIA"},{label:"Tasmania",value:"TASMANIA"},{label:"Victoria",value:"VICTORIA"},{label:"Western Australia",value:"WESTERNAUSTRALIA"}]},US:{labelEnum:"STATE",regions:[{label:"Alabama",value:"ALABAMA"},{label:"Alaska",value:"ALASKA"},{label:"Arizona",value:"ARIZONA"},{label:"Arkansas",value:"ARKANSAS"},{label:"California",value:"CALIFORNIA"},{label:"Colorado",value:"COLORADO"},{label:"Connecticut",value:"CONNECTICUT"},{label:"Delaware",value:"DELAWARE"},{label:"District of Columbia",value:"DISTRICTOFCOLUMBIA"},{label:"Florida",value:"FLORIDA"},{label:"Georgia",value:"GEORGIA"},{label:"Hawaii",value:"HAWAII"},{label:"Idaho",value:"IDAHO"},{label:"Illinois",value:"ILLINOIS"},{label:"Indiana",value:"INDIANA"},{label:"Iowa",value:"IOWA"},{label:"Kansas",value:"KANSAS"},{label:"Kentucky",value:"KENTUCKY"},{label:"Louisiana",value:"LOUISIANA"},{label:"Maine",value:"MAINE"},{label:"Maryland",value:"MARYLAND"},{label:"Massachusetts",value:"MASSACHUSETTS"},{label:"Michigan",value:"MICHIGAN"},{label:"Minnesota",value:"MINNESOTA"},{label:"Mississippi",value:"MISSISSIPPI"},{label:"Missouri",value:"MISSOURI"},{label:"Montana",value:"MONTANA"},{label:"Nebraska",value:"NEBRASKA"},{label:"Nevada",value:"NEVADA"},{label:"New Hampshire",value:"NEWHAMPSHIRE"},{label:"New Jersey",value:"NEWJERSEY"},{label:"New Mexico",value:"NEWMEXICO"},{label:"New York",value:"NEWYORK"},{label:"North Carolina",value:"NORTHCAROLINA"},{label:"North Dakota",value:"NORTHDAKOTA"},{label:"Ohio",value:"OHIO"},{label:"Oklahoma",value:"OKLAHOMA"},{label:"Oregon",value:"OREGON"},{label:"Pennsylvania",value:"PENNSYLVANIA"},{label:"Rhode Island",value:"RHODEISLAND"},{label:"South Carolina",value:"SOUTHCAROLINA"},{label:"South Dakota",value:"SOUTHDAKOTA"},{label:"Tennessee",value:"TENNESSEE"},{label:"Texas",value:"TEXAS"},{label:"Utah",value:"UTAH"},{label:"Vermont",value:"VERMONT"},{label:"Virgin Islands",value:"VIRGINISLANDS"},{label:"Virginia",value:"VIRGINIA"},{label:"Washington",value:"WASHINGTON"},{label:"West Virginia",value:"WESTVIRGINIA"},{label:"Wisconsin",value:"WISCONSIN"},{label:"Wyoming",value:"WYOMING"},{label:"Americas Forces",value:"AAMILITARY"},{label:"Europe, Middle East, Canada, Africa and Canada Forces",value:"AEMILITARY"},{label:"Pacific Forces",value:"APMILITARY"},{label:"Other",value:"OTHER"}]}};var vatLabels={GB:"VAT",AU:"GST",NZ:"GST",CA:"HST",AT:"VAT",BE:"VAT",BG:"VAT",HR:"VAT",CY:"VAT",CZ:"VAT",DK:"VAT",EE:"VAT",FI:"VAT",FR:"VAT",DE:"VAT",GR:"VAT",HU:"VAT",IE:"VAT",IT:"VAT",LV:"VAT",LT:"VAT",LU:"VAT",MT:"VAT",NL:"VAT",PL:"VAT",PT:"VAT",RO:"VAT",SK:"VAT",SI:"VAT",ES:"VAT",SE:"VAT",IS:"VAT",IN:"GST",IL:"VAT",JP:"CT",MX:"VAT",NO:"VAT",SG:"GST",ZA:"VAT",KR:"VAT",CH:"VAT",TW:"VAT",TH:"VAT",PH:"VAT",MY:"SST",AE:"VAT",TR:"VAT",RU:"VAT"};var style$1={Container:{width:"100%"},InputContainer:{width:"100%",display:"flex",justifyContent:"flex-start",flexDirection:"column",gap:"16px",padding:"16px",maxWidth:"450px"},ConditionalInputsContainer:{width:"100%",display:"flex",justifyContent:"flex-start",flexDirection:"column",gap:"16px"},HR:{border:"var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",margin:"10px 0"},Input:{maxWidth:"500px"},Checkbox:{"&::part(control)":{borderRadius:"0 !important"}},SearchInput:{padding:"var(--sl-spacing-x-small)"},ErrorInput:{maxWidth:"500px","&::part(base)":{border:"var(--sqm-border-thickness, 1px) solid var(--sqm-danger-color-border)",borderRadius:"var(--sl-input-border-radius-medium)"},"&::part(help-text)":{color:"var(--sqm-danger-color-text)"}}};var sheet=createStyleSheet(style$1);var styleString=sheet.toString();var vanillaStyle="\n :host{\n display: block; \n }\n * {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n }\n sl-menu-item::part(base) {\n color: var(--sqm-input-color);\n }\n\n sl-menu-item::part(base):hover {\n background-color: var(--sqm-input-border-color-hover);\n }\n sl-checkbox[checked]::part(control){\n background-color: var(--sqm-input-border-color-focus);\n }\n\n sl-checkbox[checked]::part(checked-icon){\n color: var(--sqm-input-background);\n }\n ";var OtherRegionSlotView=function(e){var a,l,r;var n=e.states,i=e.states.formState,s=e.callbacks,t=e.text;var o=sheet.classes;var u=function(e){return intl.formatMessage({id:"tax-field-label"+e,defaultMessage:t.indirectTaxNumber},{taxType:e})};var d=function(e){return intl.formatMessage({id:"tax-field-label"+e,defaultMessage:t.error.indirectTaxNumber},{taxType:e})};var b=function(e){var a=e.label,l=e.error,r=e.name;var s;return h("sl-input",Object.assign({required:true,exportparts:"label: input-label, base: input-base",class:o.Input,label:a,disabled:n.loading||n.disabled,value:i[r]},((s=i.errors)===null||s===void 0?void 0:s[r])&&{class:o.ErrorInput,helpText:l},{id:r,name:"/"+r}))};var T=function(){var a,l;return h("div",{class:o.ConditionalInputsContainer},h("sl-select",Object.assign({required:true,exportparts:"label: input-label, base: input-base",class:o.Input,value:i.subRegion,label:t.subRegion,disabled:n.loading||n.disabled},((a=i.errors)===null||a===void 0?void 0:a.indirectTaxNumber)&&{class:o.ErrorInput,helpText:formatErrorMessage(t.subRegion,t.error.fieldRequiredError)},{id:"subRegion",name:"/subRegion"}),e.data.esRegions.map((function(e){return h("sl-menu-item",{value:e.regionCode},e.displayName)}))),h(b,{name:"indirectTaxNumber",label:u("VAT"),error:d("VAT")}),h("sl-checkbox",{class:o.Checkbox,exportparts:"label: input-label, base: input-base",checked:i.hasSubRegionTaxNumber,"onSl-change":s.onSpainToggle,disabled:n.disabled||n.isPartner},t.isRegisteredSubRegionIncomeTax),i.hasSubRegionTaxNumber&&h("sl-input",Object.assign({required:true,exportparts:"label: input-label, base: input-base",class:o.Input,label:t.subRegionTaxNumberLabel,disabled:n.loading||n.disabled,value:i.subRegionTaxNumber},((l=i.errors)===null||l===void 0?void 0:l.subRegionTaxNumber)&&{class:o.ErrorInput,helpText:formatErrorMessage(t.subRegionTaxNumberLabel,t.error.fieldRequiredError)},{id:"subRegionTaxNumber",name:"/subRegionTaxNumber"})))};var A=function(){var a,l;var r=sheet.classes;var o=(a=INDIRECT_TAX_PROVINCES===null||INDIRECT_TAX_PROVINCES===void 0?void 0:INDIRECT_TAX_PROVINCES.find((function(e){return e.regionCode===i.province})))===null||a===void 0?void 0:a.taxType;return h("div",{class:r.ConditionalInputsContainer},h("sl-select",Object.assign({required:true,value:i.province,exportparts:"label: input-label, base: input-base",class:r.Input,label:t.province,disabled:n.loading||n.disabled,"onSl-select":function(e){return s.onFormChange("province",e)}},((l=i.errors)===null||l===void 0?void 0:l.province)&&{class:r.ErrorInput,helpText:formatErrorMessage(t.province,t.error.fieldRequiredError)},{id:"province",name:"/province"}),e.data.provinces.map((function(e){return h("sl-menu-item",{value:e.regionCode},e.displayName)}))),o==="GST"&&h(b,{label:u("GST"),error:d("GST"),name:"indirectTaxNumber"}),o==="HST"&&h(b,{label:u("HST"),error:d("HST"),name:"indirectTaxNumber"}),i.province==="QUEBEC"&&h("div",{class:r.ConditionalInputsContainer},h("sl-checkbox",{class:r.Checkbox,exportparts:"label: input-label, base: input-base","onSl-change":s.onQstToggle,checked:i.hasQst,disabled:n.isPartner||n.disabled},t.isRegisteredQST),i.hasQst&&h(b,{name:"qstNumber",label:t.qstNumber,error:formatErrorMessage(t.qstNumber,t.error.fieldRequiredError)})))};var c=function(e){var a;switch(e){case"CA":return h(A,null);case"ES":return h(T,null);default:return h("sl-input",Object.assign({required:true,exportparts:"label: input-label, base: input-base",class:o.Input,value:i.indirectTaxNumber,label:u(vatLabels[e]||"GENERAL"),disabled:n.loading||n.disabled},((a=i.errors)===null||a===void 0?void 0:a.indirectTaxNumber)&&{class:o.ErrorInput,helpText:d(vatLabels[e]||"GENERAL")},{id:"indirectTaxNumber",name:"/indirectTaxNumber"}))}};var v=c(i.selectedRegion);return h("div",{style:n.hide?{display:"none"}:{}},h("form",{class:o.Container},h("style",{type:"text/css"},styleString,vanillaStyle),h("hr",{class:o.HR}),h("div",{class:o.InputContainer},h("sl-select",Object.assign({required:true,class:o.Input,value:i.selectedRegion,exportparts:"label: input-label, base: input-base",label:t.selectedRegion,disabled:n.loading||n.disabled,"onSl-select":function(e){return s.onFormChange("selectedRegion",e)}},((a=i.errors)===null||a===void 0?void 0:a.selectedRegion)&&{class:o.ErrorInput,helpText:formatErrorMessage(t.selectedRegion,t.error.fieldRequiredError)},{id:"selectedRegion",name:"/selectedRegion"}),h("sl-input",{class:o.SearchInput,placeholder:t.searchForCountryText,onKeyDown:function(e){e.stopPropagation()},"onSl-input":function(e){s.setCountrySearch(e.target.value)}}),(l=e.data.countries)===null||l===void 0?void 0:l.map((function(e){return h("sl-menu-item",{value:e.countryCode},e.displayName)})),(r=e.data.allCountries)===null||r===void 0?void 0:r.map((function(e){return h("sl-menu-item",{value:e.countryCode,style:{display:"none"}},e.displayName)}))),v),h("hr",{class:o.HR})))};export{ADDRESS_REGIONS as A,InvoiceTableView as I,OtherRegionSlotView as O,INDIRECT_TAX_SPAIN_REGIONS as a,INDIRECT_TAX_PROVINCES as b,vatLabels as v};
|
|
1
|
+
import{h}from"./index-b3a06de8.js";import{i as intl}from"./global-55e73040.js";import{c as createStyleSheet}from"./JSS-67b5cff8.js";import{f as formatErrorMessage}from"./utils-27fdc7d7.js";var style={Description:{fontSize:"var(--sl-font-size-small)",marginTop:"var(--sl-spacing-small)",margin:"0 0 var(--sl-spacing-large)",color:"var(--sqm-text-subdued)"},Header:{fontSize:"var(--sl-font-size-large)",fontWeight:"var(-sl-font-weight-semibold)",margin:"0 0 var(--sl-spacing-xxx-small)"},Container:{},InvoiceTableContaier:{"& sl-details::part(base)":{border:"none"},"& sl-details::part(content)":{padding:0},"& sl-details::part(header)":{fontSize:"var(--sl-font-size-medium)",padding:"0px"},"& sl-details::part(summary)":{fontWeight:"var(-sl-font-weight-semibold)"},"& sl-details::part(summary-icon)":{marginRight:"100%",marginLeft:"var(--sl-spacing-x-small)",transform:"rotate(90deg)"},"& sl-details[open]::part(summary-icon)":{transform:"rotate(270deg)"}}};function InvoiceTableView(e,a){var l=createStyleSheet(style);var r=l.toString();var n="\n :host{\n display: block;\n }";return h("div",{class:l.classes.Container},h("style",{type:"text/css"},n,r),h("div",{class:l.classes.InvoiceTableContaier},h("sl-details",{summary:e.header},h("p",{class:l.classes.Description},e.description),a)))}var INDIRECT_TAX_PROVINCES=[{regionCode:"ALBERTA",taxType:"GST",displayName:"Alberta"},{regionCode:"BRITISHCOLUMBIA",taxType:"HST",displayName:"British Columbia"},{regionCode:"MANITOBA",taxType:"HST",displayName:"Manitoba"},{regionCode:"NEWBRUNSWICK",taxType:"HST",displayName:"New Brunswick"},{regionCode:"NEWFOUNDLANDLABRADOR",taxType:"HST",displayName:"Newfoundland"},{regionCode:"NORTHWESTTERRITORIES",taxType:"GST",displayName:"North West Territories"},{regionCode:"NOVASCOTIA",taxType:"HST",displayName:"Nova Scotia"},{regionCode:"NUNAVUT",taxType:"HST",displayName:"Nunavut"},{regionCode:"ONTARIO",taxType:"HST",displayName:"Ontario"},{regionCode:"PRINCEEDWARDISLAND",taxType:"HST",displayName:"Prince Edward Island"},{regionCode:"QUEBEC",taxType:"GST",displayName:"Quebec"},{regionCode:"SASKATCHEWAN",taxType:"HST",displayName:"Saskatchewan"},{regionCode:"YUKON",taxType:"GST",displayName:"Yukon"}];var INDIRECT_TAX_SPAIN_REGIONS=[{regionCode:"SPAINPROPER",taxType:"VAT",displayName:"Spain Proper"},{regionCode:"CANARYISLANDS",taxType:"VAT",displayName:"Canary Islands"}];var ADDRESS_REGIONS={CA:{labelEnum:"PROVINCE",regions:[{label:"Alberta",value:"ALBERTA"},{label:"British Columbia",value:"BRITISHCOLUMBIA"},{label:"Manitoba",value:"MANITOBA"},{label:"New Brunswick",value:"NEWBRUNSWICK"},{label:"Newfoundland & Labrador",value:"NEWFOUNDLANDANDLABRADOR"},{label:"Northwest Territories",value:"NORTHWESTTERRITORIES"},{label:"Nova Scotia",value:"NOVASCOTIA"},{label:"Nunavut",value:"NUNAVUT"},{label:"Ontario",value:"ONTARIO"},{label:"Prince Edward Island",value:"PRINCEEDWARDISLAND"},{label:"Quebec",value:"QUEBEC"},{label:"Saskatchewan",value:"SASKATCHEWAN"},{label:"Yukon",value:"YUKON"}]},ES:{labelEnum:"REGION",regions:[{label:"Canary Islands",value:"CANARYISLANDS"},{label:"Spain Proper",value:"SPAINPROPER"}]},AU:{labelEnum:"STATE",regions:[{label:"Australian Capital Territory",value:"CAPITALTERRITORY"},{label:"New South Wales",value:"NEWSOUTHWALES"},{label:"Northern Territory",value:"NORTHERNTERRITORY"},{label:"Queensland",value:"QUEENSLAND"},{label:"South Australia",value:"SOUTHAUSTRALIA"},{label:"Tasmania",value:"TASMANIA"},{label:"Victoria",value:"VICTORIA"},{label:"Western Australia",value:"WESTERNAUSTRALIA"}]},US:{labelEnum:"STATE",regions:[{label:"Alabama",value:"ALABAMA"},{label:"Alaska",value:"ALASKA"},{label:"Arizona",value:"ARIZONA"},{label:"Arkansas",value:"ARKANSAS"},{label:"California",value:"CALIFORNIA"},{label:"Colorado",value:"COLORADO"},{label:"Connecticut",value:"CONNECTICUT"},{label:"Delaware",value:"DELAWARE"},{label:"District of Columbia",value:"DISTRICTOFCOLUMBIA"},{label:"Florida",value:"FLORIDA"},{label:"Georgia",value:"GEORGIA"},{label:"Hawaii",value:"HAWAII"},{label:"Idaho",value:"IDAHO"},{label:"Illinois",value:"ILLINOIS"},{label:"Indiana",value:"INDIANA"},{label:"Iowa",value:"IOWA"},{label:"Kansas",value:"KANSAS"},{label:"Kentucky",value:"KENTUCKY"},{label:"Louisiana",value:"LOUISIANA"},{label:"Maine",value:"MAINE"},{label:"Maryland",value:"MARYLAND"},{label:"Massachusetts",value:"MASSACHUSETTS"},{label:"Michigan",value:"MICHIGAN"},{label:"Minnesota",value:"MINNESOTA"},{label:"Mississippi",value:"MISSISSIPPI"},{label:"Missouri",value:"MISSOURI"},{label:"Montana",value:"MONTANA"},{label:"Nebraska",value:"NEBRASKA"},{label:"Nevada",value:"NEVADA"},{label:"New Hampshire",value:"NEWHAMPSHIRE"},{label:"New Jersey",value:"NEWJERSEY"},{label:"New Mexico",value:"NEWMEXICO"},{label:"New York",value:"NEWYORK"},{label:"North Carolina",value:"NORTHCAROLINA"},{label:"North Dakota",value:"NORTHDAKOTA"},{label:"Ohio",value:"OHIO"},{label:"Oklahoma",value:"OKLAHOMA"},{label:"Oregon",value:"OREGON"},{label:"Pennsylvania",value:"PENNSYLVANIA"},{label:"Rhode Island",value:"RHODEISLAND"},{label:"South Carolina",value:"SOUTHCAROLINA"},{label:"South Dakota",value:"SOUTHDAKOTA"},{label:"Tennessee",value:"TENNESSEE"},{label:"Texas",value:"TEXAS"},{label:"Utah",value:"UTAH"},{label:"Vermont",value:"VERMONT"},{label:"Virgin Islands",value:"VIRGINISLANDS"},{label:"Virginia",value:"VIRGINIA"},{label:"Washington",value:"WASHINGTON"},{label:"West Virginia",value:"WESTVIRGINIA"},{label:"Wisconsin",value:"WISCONSIN"},{label:"Wyoming",value:"WYOMING"},{label:"Americas Forces",value:"AAMILITARY"},{label:"Europe, Middle East, Canada, Africa and Canada Forces",value:"AEMILITARY"},{label:"Pacific Forces",value:"APMILITARY"},{label:"Other",value:"OTHER"}]}};var vatLabels={GB:"VAT",AU:"GST",NZ:"GST",CA:"HST",AT:"VAT",BE:"VAT",BG:"VAT",HR:"VAT",CY:"VAT",CZ:"VAT",DK:"VAT",EE:"VAT",FI:"VAT",FR:"VAT",DE:"VAT",GR:"VAT",HU:"VAT",IE:"VAT",IT:"VAT",LV:"VAT",LT:"VAT",LU:"VAT",MT:"VAT",NL:"VAT",PL:"VAT",PT:"VAT",RO:"VAT",SK:"VAT",SI:"VAT",ES:"VAT",SE:"VAT",IS:"VAT",IN:"GST",IL:"VAT",JP:"CT",MX:"VAT",NO:"VAT",SG:"GST",ZA:"VAT",KR:"VAT",CH:"VAT",TW:"VAT",TH:"VAT",PH:"VAT",MY:"SST",AE:"VAT",TR:"VAT",RU:"VAT"};var style$1={Container:{width:"100%"},InputContainer:{width:"100%",display:"flex",justifyContent:"flex-start",flexDirection:"column",gap:"16px",padding:"16px",maxWidth:"450px"},ConditionalInputsContainer:{width:"100%",display:"flex",justifyContent:"flex-start",flexDirection:"column",gap:"16px"},HR:{border:"var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",margin:"10px 0"},Input:{maxWidth:"500px"},Checkbox:{"&::part(control)":{borderRadius:"0 !important"}},SearchInput:{padding:"var(--sl-spacing-x-small)"},ErrorInput:{maxWidth:"500px","&::part(base)":{border:"var(--sqm-border-thickness, 1px) solid var(--sqm-danger-color-border)",borderRadius:"var(--sl-input-border-radius-medium)"},"&::part(help-text)":{color:"var(--sqm-danger-color-text)"}}};var sheet=createStyleSheet(style$1);var styleString=sheet.toString();var vanillaStyle="\n :host{\n display: block; \n }\n * {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n }\n sl-menu-item::part(base) {\n color: var(--sqm-input-color);\n }\n\n sl-menu-item::part(base):hover {\n background-color: var(--sqm-input-border-color-hover);\n }\n sl-checkbox[checked]::part(control){\n background-color: var(--sqm-input-border-color-focus);\n }\n\n sl-checkbox[checked]::part(checked-icon){\n color: var(--sqm-input-background);\n }\n ";var OtherRegionSlotView=function(e){var a,l,r;var n=e.states,i=e.states.formState,s=e.callbacks,t=e.text;var o=sheet.classes;var u=function(e){return intl.formatMessage({id:"tax-field-label"+e,defaultMessage:t.indirectTaxNumber},{taxType:e})};var d=function(e){return intl.formatMessage({id:"tax-field-label"+e,defaultMessage:t.error.indirectTaxNumber},{taxType:e})};var b=function(e){var a=e.label,l=e.error,r=e.name;var s;return h("sl-input",Object.assign({required:true,exportparts:"label: input-label, base: input-base",class:o.Input,label:a,disabled:n.loading||n.disabled,value:i[r]},((s=i.errors)===null||s===void 0?void 0:s[r])&&{class:o.ErrorInput,helpText:l},{id:r,name:"/"+r}))};var T=function(){var a,l;return h("div",{class:o.ConditionalInputsContainer},h("sl-select",Object.assign({required:true,exportparts:"label: input-label, base: input-base",class:o.Input,value:i.subRegion,label:t.subRegion,disabled:n.loading||n.disabled},((a=i.errors)===null||a===void 0?void 0:a.indirectTaxNumber)&&{class:o.ErrorInput,helpText:formatErrorMessage(t.subRegion,t.error.fieldRequiredError)},{id:"subRegion",name:"/subRegion"}),e.data.esRegions.map((function(e){return h("sl-menu-item",{value:e.regionCode},e.displayName)}))),h(b,{name:"indirectTaxNumber",label:u("VAT"),error:d("VAT")}),h("sl-checkbox",{class:o.Checkbox,exportparts:"label: input-label, base: input-base",checked:i.hasSubRegionTaxNumber,"onSl-change":s.onSpainToggle,disabled:n.disabled||n.isPartner},t.isRegisteredSubRegionIncomeTax),i.hasSubRegionTaxNumber&&h("sl-input",Object.assign({required:true,exportparts:"label: input-label, base: input-base",class:o.Input,label:t.subRegionTaxNumberLabel,disabled:n.loading||n.disabled,value:i.subRegionTaxNumber},((l=i.errors)===null||l===void 0?void 0:l.subRegionTaxNumber)&&{class:o.ErrorInput,helpText:formatErrorMessage(t.subRegionTaxNumberLabel,t.error.fieldRequiredError)},{id:"subRegionTaxNumber",name:"/subRegionTaxNumber"})))};var A=function(){var a,l;var r=sheet.classes;var o=(a=INDIRECT_TAX_PROVINCES===null||INDIRECT_TAX_PROVINCES===void 0?void 0:INDIRECT_TAX_PROVINCES.find((function(e){return e.regionCode===i.province})))===null||a===void 0?void 0:a.taxType;return h("div",{class:r.ConditionalInputsContainer},h("sl-select",Object.assign({required:true,value:i.province,exportparts:"label: input-label, base: input-base",class:r.Input,label:t.province,disabled:n.loading||n.disabled,"onSl-select":function(e){return s.onFormChange("province",e)}},((l=i.errors)===null||l===void 0?void 0:l.province)&&{class:r.ErrorInput,helpText:formatErrorMessage(t.province,t.error.fieldRequiredError)},{id:"province",name:"/province"}),e.data.provinces.map((function(e){return h("sl-menu-item",{value:e.regionCode},e.displayName)}))),o==="GST"&&h(b,{label:u("GST"),error:d("GST"),name:"indirectTaxNumber"}),o==="HST"&&h(b,{label:u("HST"),error:d("HST"),name:"indirectTaxNumber"}),i.province==="QUEBEC"&&h("div",{class:r.ConditionalInputsContainer},h("sl-checkbox",{class:r.Checkbox,exportparts:"label: input-label, base: input-base","onSl-change":s.onQstToggle,checked:i.hasQst,disabled:n.isPartner||n.disabled},t.isRegisteredQST),i.hasQst&&h(b,{name:"qstNumber",label:t.qstNumber,error:formatErrorMessage(t.qstNumber,t.error.fieldRequiredError)})))};var c=function(e){var a;switch(e){case"CA":return h(A,null);case"ES":return h(T,null);default:return h("sl-input",Object.assign({required:true,exportparts:"label: input-label, base: input-base",class:o.Input,value:i.indirectTaxNumber,label:u(vatLabels[e]||"GENERAL"),disabled:n.loading||n.disabled},((a=i.errors)===null||a===void 0?void 0:a.indirectTaxNumber)&&{class:o.ErrorInput,helpText:d(vatLabels[e]||"GENERAL")},{id:"indirectTaxNumber",name:"/indirectTaxNumber"}))}};var v=c(i.selectedRegion);return h("div",{style:n.hide?{display:"none"}:{}},h("form",{class:o.Container},h("style",{type:"text/css"},styleString,vanillaStyle),h("hr",{class:o.HR}),h("div",{class:o.InputContainer},h("sl-select",Object.assign({required:true,class:o.Input,value:i.selectedRegion,exportparts:"label: input-label, base: input-base",label:t.selectedRegion,disabled:n.loading||n.disabled,"onSl-select":function(e){return s.onFormChange("selectedRegion",e)}},((a=i.errors)===null||a===void 0?void 0:a.selectedRegion)&&{class:o.ErrorInput,helpText:formatErrorMessage(t.selectedRegion,t.error.fieldRequiredError)},{id:"selectedRegion",name:"/selectedRegion"}),h("sl-input",{class:o.SearchInput,placeholder:t.searchForCountryText,onKeyDown:function(e){e.stopPropagation()},"onSl-input":function(e){s.setCountrySearch(e.target.value)}}),(l=e.data.countries)===null||l===void 0?void 0:l.map((function(e){return h("sl-menu-item",{value:e.countryCode},e.displayName)})),(r=e.data.allCountries)===null||r===void 0?void 0:r.map((function(e){return h("sl-menu-item",{value:e.countryCode,style:{display:"none"}},e.displayName)}))),v),h("hr",{class:o.HR})))};export{ADDRESS_REGIONS as A,InvoiceTableView as I,OtherRegionSlotView as O,INDIRECT_TAX_SPAIN_REGIONS as a,INDIRECT_TAX_PROVINCES as b,vatLabels as v};
|