@saasquatch/mint-components 2.3.0-9 → 2.3.0
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/{esm/usePortalRegistrationForm-3a1f36a2.js → cjs/AsYouType-d15caac8.js} +267 -222
- package/dist/cjs/{ShadowViewAddon-3b477e58.js → ShadowViewAddon-05c6968d.js} +4 -4
- package/dist/cjs/{global-b7b1b8fe.js → global-258c36b8.js} +7 -3
- 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 +49 -36
- package/dist/cjs/sqm-big-stat_47.cjs.entry.js +38 -25
- package/dist/cjs/sqm-code-verification.cjs.entry.js +1 -1
- package/dist/cjs/sqm-email-verification_2.cjs.entry.js +6 -9
- package/dist/cjs/sqm-empty_4.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-lead-checkbox-field-view-0af2a157.js → sqm-lead-checkbox-field-view-b3a85029.js} +1 -1
- package/dist/cjs/sqm-lead-checkbox-field.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-lead-input-field-view-0cd7ebdb.js → sqm-lead-input-field-view-88de1b78.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-partner-info-modal-view-2b6fee0f.js → sqm-partner-info-modal-view-243aad7b.js} +6 -7
- package/dist/cjs/{sqm-portal-email-verification-view-abb773a7.js → sqm-portal-email-verification-view-6cc7ef05.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
- package/dist/cjs/sqm-portal-forgot-password_6.cjs.entry.js +3 -2
- package/dist/cjs/{sqm-portal-profile-view-3515e1e5.js → sqm-portal-profile-view-a4ba4657.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 -2
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +69 -12
- package/dist/cjs/{sqm-user-info-form-view-374a3f01.js → sqm-user-info-form-view-c5f9b79b.js} +1007 -11
- package/dist/cjs/subregions-3d27e279.js +1068 -0
- package/dist/cjs/{useIndirectTaxForm-112914a0.js → useIndirectTaxForm-5211013b.js} +6 -2
- package/dist/cjs/{useLeadFormState-b4c2ab5b.js → useLeadFormState-bf49984b.js} +1 -1
- package/dist/cjs/usePortalRegistrationForm-8a3a14ac.js +215 -0
- package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field-view.js +1 -1
- package/dist/collection/components/sqm-lead-form/sqm-lead-dropdown-field-view.js +1 -1
- package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +1 -1
- package/dist/collection/components/sqm-partner-info-modal/PartnerInfoModal.stories.js +2 -2
- package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal-view.js +5 -6
- package/dist/collection/components/sqm-partner-info-modal/usePartnerInfoModal.js +3 -6
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +0 -1
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +1 -1
- package/dist/collection/components/sqm-widget-verification/useWidgetVerification.js +2 -0
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +3 -0
- package/dist/collection/components/tax-and-cash/phoneExtensions.js +12 -0
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +3 -3
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +3 -3
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +3 -2
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +5 -1
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +29 -19
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/UserInfoFormView.stories.js +52 -0
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +18 -5
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +3 -1
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +34 -28
- package/dist/collection/components/tax-and-cash/utils.js +30 -27
- package/dist/collection/global/styles.js +7 -3
- package/dist/collection/global/styles.ts +7 -3
- package/dist/{cjs/usePortalRegistrationForm-23ee2d62.js → esm/AsYouType-2d56519e.js} +248 -226
- package/dist/esm/{ShadowViewAddon-e115fa1c.js → ShadowViewAddon-543f0fef.js} +4 -4
- package/dist/esm/{global-75e96214.js → global-32d00a6e.js} +7 -3
- 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 +49 -36
- package/dist/esm/sqm-big-stat_47.entry.js +37 -24
- package/dist/esm/sqm-code-verification.entry.js +1 -1
- package/dist/esm/sqm-email-verification_2.entry.js +6 -9
- package/dist/esm/sqm-empty_4.entry.js +1 -1
- package/dist/esm/{sqm-lead-checkbox-field-view-bfafee56.js → sqm-lead-checkbox-field-view-aa977b97.js} +1 -1
- package/dist/esm/sqm-lead-checkbox-field.entry.js +3 -3
- package/dist/esm/{sqm-lead-input-field-view-b945edf4.js → sqm-lead-input-field-view-671ff96f.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-partner-info-modal-view-bc843d7d.js → sqm-partner-info-modal-view-8f141a4f.js} +6 -7
- package/dist/esm/{sqm-portal-email-verification-view-fde1eb35.js → sqm-portal-email-verification-view-29ca7a13.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +2 -2
- package/dist/esm/sqm-portal-forgot-password_6.entry.js +2 -1
- package/dist/esm/{sqm-portal-profile-view-2018590a.js → sqm-portal-profile-view-769aafeb.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 -2
- package/dist/esm/sqm-stencilbook.entry.js +69 -12
- package/dist/esm/{sqm-user-info-form-view-5322525c.js → sqm-user-info-form-view-ceb3917a.js} +1005 -9
- package/dist/esm/subregions-810a5c2d.js +1055 -0
- package/dist/esm/{useIndirectTaxForm-a6ac7e7e.js → useIndirectTaxForm-4dc576f0.js} +6 -2
- package/dist/esm/{useLeadFormState-332b2796.js → useLeadFormState-6214b2d9.js} +1 -1
- package/dist/esm/usePortalRegistrationForm-78fdfd93.js +213 -0
- package/dist/esm-es5/AsYouType-2d56519e.js +1 -0
- package/dist/esm-es5/{ShadowViewAddon-e115fa1c.js → ShadowViewAddon-543f0fef.js} +1 -1
- package/dist/esm-es5/{global-75e96214.js → global-32d00a6e.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_2.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/{sqm-lead-checkbox-field-view-bfafee56.js → sqm-lead-checkbox-field-view-aa977b97.js} +1 -1
- package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -1
- package/dist/esm-es5/{sqm-lead-input-field-view-b945edf4.js → sqm-lead-input-field-view-671ff96f.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-partner-info-modal-view-bc843d7d.js → sqm-partner-info-modal-view-8f141a4f.js} +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-fde1eb35.js → sqm-portal-email-verification-view-29ca7a13.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password_6.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-2018590a.js → sqm-portal-profile-view-769aafeb.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/sqm-user-info-form-view-ceb3917a.js +1 -0
- package/dist/esm-es5/subregions-810a5c2d.js +1 -0
- package/dist/esm-es5/{useIndirectTaxForm-a6ac7e7e.js → useIndirectTaxForm-4dc576f0.js} +2 -2
- package/dist/esm-es5/{useLeadFormState-332b2796.js → useLeadFormState-6214b2d9.js} +1 -1
- package/dist/esm-es5/usePortalRegistrationForm-78fdfd93.js +1 -0
- package/dist/mint-components/global/styles.ts +7 -3
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-ef32fa8f.entry.js → p-0436b138.entry.js} +1 -1
- package/dist/mint-components/{p-24f1d342.system.entry.js → p-058e5447.system.entry.js} +1 -1
- package/dist/mint-components/{p-8e148cb0.system.js → p-0607b068.system.js} +1 -1
- package/dist/mint-components/{p-2d4132fb.js → p-0ad64881.js} +7 -5
- package/dist/mint-components/{p-3354cc75.system.entry.js → p-141c5bdb.system.entry.js} +1 -1
- package/dist/mint-components/{p-37e24621.system.entry.js → p-241e7226.system.entry.js} +1 -1
- package/dist/mint-components/p-2a2332a6.entry.js +83 -0
- package/dist/mint-components/{p-3bbc0db2.entry.js → p-3ada35f5.entry.js} +1 -1
- package/dist/mint-components/{p-7d2d9ef9.system.js → p-3e7fb8a7.system.js} +1 -1
- package/dist/mint-components/{p-1d398dbc.entry.js → p-4f364438.entry.js} +1 -1
- package/dist/mint-components/p-55847fc2.system.entry.js +1 -0
- package/dist/mint-components/p-5c3bff99.entry.js +1 -0
- package/dist/mint-components/{p-7cbdf341.entry.js → p-5d3d0e0b.entry.js} +2 -2
- package/dist/mint-components/{p-b2ad3fca.system.js → p-5fa706cf.system.js} +1 -1
- package/dist/mint-components/{p-b3e1f2fa.entry.js → p-61f7bf8a.entry.js} +3 -3
- package/dist/mint-components/{p-b3309d9b.entry.js → p-62610658.entry.js} +2 -2
- package/dist/mint-components/{p-6ef373ed.system.js → p-6cd93ea3.system.js} +2 -2
- package/dist/mint-components/{p-c0f8f977.system.entry.js → p-6e92460d.system.entry.js} +1 -1
- package/dist/mint-components/{p-13d8ecad.js → p-6f8a3436.js} +1 -1
- package/dist/mint-components/{p-4d73a616.entry.js → p-714bf981.entry.js} +1 -1
- package/dist/mint-components/p-765e3379.js +1 -0
- package/dist/mint-components/p-76ad156b.entry.js +9 -0
- package/dist/mint-components/{p-51ae6716.system.entry.js → p-7727662f.system.entry.js} +1 -1
- package/dist/mint-components/{p-4eaa3eb7.js → p-7c0f5891.js} +1 -1
- package/dist/mint-components/{p-c0a85e22.js → p-7c482564.js} +1 -1
- package/dist/mint-components/{p-2ed13619.entry.js → p-7c657e1f.entry.js} +1 -1
- package/dist/mint-components/p-8dcd72fe.system.entry.js +1 -0
- package/dist/mint-components/{p-1efb42e2.js → p-92e81c72.js} +3 -3
- package/dist/mint-components/p-92f520c9.js +1 -0
- package/dist/mint-components/{p-99eecdcb.system.entry.js → p-933bae53.system.entry.js} +1 -1
- package/dist/mint-components/{p-c66e5217.system.js → p-989437c5.system.js} +1 -1
- package/dist/mint-components/p-990e73ba.system.js +1 -0
- package/dist/mint-components/{p-e8e7af06.js → p-9c982f7e.js} +1 -1
- package/dist/mint-components/p-a08157c4.js +1 -0
- package/dist/mint-components/{p-13e439bc.js → p-a094da68.js} +1 -1
- package/dist/mint-components/p-a779e577.js +13 -0
- package/dist/mint-components/p-aef2db59.system.js +1 -0
- package/dist/mint-components/p-b0d49a64.system.entry.js +1 -0
- package/dist/mint-components/{p-0815b973.system.js → p-b111d5d7.system.js} +1 -1
- package/dist/mint-components/{p-5bc707cf.entry.js → p-b1536972.entry.js} +23 -23
- package/dist/mint-components/{p-b871d158.js → p-b8e46769.js} +1 -1
- package/dist/mint-components/{p-1f387c7b.system.js → p-bfb00685.system.js} +1 -1
- package/dist/mint-components/{p-7628e56f.system.js → p-c05a4b0c.system.js} +1 -1
- package/dist/mint-components/{p-9a15cd5a.system.entry.js → p-c51ea96f.system.entry.js} +1 -1
- package/dist/mint-components/p-d463fa82.system.js +1 -0
- package/dist/mint-components/p-d47d0862.entry.js +1 -0
- package/dist/mint-components/{p-abd717d4.js → p-db45be67.js} +1 -1
- package/dist/mint-components/{p-86d20b47.system.entry.js → p-dc196a22.system.entry.js} +1 -1
- package/dist/mint-components/{p-432a44de.entry.js → p-e2fb11af.entry.js} +2 -2
- package/dist/mint-components/{p-24a867ab.system.js → p-e7f45f18.system.js} +1 -1
- package/dist/mint-components/{p-d08408b3.entry.js → p-e87d9982.entry.js} +1 -1
- package/dist/mint-components/{p-33ca28ba.system.entry.js → p-ee685659.system.entry.js} +1 -1
- package/dist/mint-components/p-ee91aeac.system.js +1 -0
- package/dist/mint-components/{p-025ddad2.system.entry.js → p-f194f4e5.system.entry.js} +1 -1
- package/dist/mint-components/p-f7218609.system.entry.js +1 -0
- package/dist/mint-components/p-fa477f5f.system.entry.js +1 -0
- package/dist/mint-components/p-fd231c49.system.js +1 -0
- package/dist/types/components/tax-and-cash/phoneExtensions.d.ts +12 -0
- package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-user-info-form/UserInfoFormView.stories.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.d.ts +2 -0
- package/dist/types/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.d.ts +2 -0
- package/dist/types/components/tax-and-cash/utils.d.ts +8 -2
- package/docs/docs.docx +0 -0
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +4 -2
- package/dist/cjs/subregions-984e30d7.js +0 -1505
- package/dist/esm/subregions-7c9778d0.js +0 -1492
- package/dist/esm-es5/sqm-user-info-form-view-5322525c.js +0 -1
- package/dist/esm-es5/subregions-7c9778d0.js +0 -1
- package/dist/esm-es5/usePortalRegistrationForm-3a1f36a2.js +0 -1
- package/dist/mint-components/p-335a5736.entry.js +0 -1
- package/dist/mint-components/p-3a41b39c.js +0 -13
- package/dist/mint-components/p-5623f1e0.js +0 -1
- package/dist/mint-components/p-5fdf0286.system.js +0 -1
- package/dist/mint-components/p-6eebbc59.entry.js +0 -83
- package/dist/mint-components/p-7f29622d.js +0 -1
- package/dist/mint-components/p-8a08cec6.system.entry.js +0 -1
- package/dist/mint-components/p-90200f08.system.entry.js +0 -1
- package/dist/mint-components/p-a8cfa8fd.entry.js +0 -9
- package/dist/mint-components/p-ae2f610e.system.js +0 -1
- package/dist/mint-components/p-b7188d47.system.entry.js +0 -1
- package/dist/mint-components/p-b9509a55.system.entry.js +0 -1
- package/dist/mint-components/p-bd03efe0.system.js +0 -1
- package/dist/mint-components/p-c13c20b2.system.js +0 -1
- package/dist/mint-components/p-c41d536d.entry.js +0 -1
- package/dist/mint-components/p-db6bf7cf.system.entry.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h, c as Host, d as getAssetPath, F as Fragment, g as getElement } from './index-38ad4957.js';
|
|
2
|
-
import { i as intl } from './global-
|
|
2
|
+
import { i as intl } from './global-32d00a6e.js';
|
|
3
3
|
import { b as browser, u as useMemo, k as useState, m as useRef } from './dom-context-hooks.module-50442785.js';
|
|
4
4
|
import { H, L, J, d as dist, w as wn, B, F as Fn, $ as $e, g as getEnvironmentSDK, X as Xe, Q as Qe } from './index.module-02cb914c.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
@@ -2367,7 +2367,7 @@ const vanillaStyle$2 = `
|
|
|
2367
2367
|
}
|
|
2368
2368
|
sl-select::part(label){
|
|
2369
2369
|
font-size: var(--sl-input-label-font-size-small);
|
|
2370
|
-
font-weight: var(--sl-font-weight-
|
|
2370
|
+
font-weight: var(--sl-font-weight-bold);
|
|
2371
2371
|
}
|
|
2372
2372
|
`;
|
|
2373
2373
|
jss.setup(create());
|
|
@@ -2772,7 +2772,7 @@ const vanillaStyle$4 = `
|
|
|
2772
2772
|
|
|
2773
2773
|
*::part(input-label), *::part(select-label), *::part(textarea-label){
|
|
2774
2774
|
font-size: var(--sqm-input-label-font-size, var(--sl-input-font-size-small));
|
|
2775
|
-
font-weight: var(--sl-font-weight-
|
|
2775
|
+
font-weight: var(--sl-font-weight-bold);
|
|
2776
2776
|
color: var(--sqm-input-label-color, var(--sqm-text), black);
|
|
2777
2777
|
}
|
|
2778
2778
|
|
|
@@ -4826,7 +4826,7 @@ const vanillaStyle$8 = `
|
|
|
4826
4826
|
}
|
|
4827
4827
|
sl-select::part(label){
|
|
4828
4828
|
font-size: var(--sl-input-label-font-size-small);
|
|
4829
|
-
font-weight: var(--sl-font-weight-
|
|
4829
|
+
font-weight: var(--sl-font-weight-bold);
|
|
4830
4830
|
}
|
|
4831
4831
|
sl-select::part(menu){
|
|
4832
4832
|
max-height: 300px;
|
|
@@ -26524,7 +26524,7 @@ html {
|
|
|
26524
26524
|
--sqm-input-border-color-focus: ${((_68 = config === null || config === void 0 ? void 0 : config.formFields) === null || _68 === void 0 ? void 0 : _68.selectedStateColor) || "hsl(0, 0%, 7%)"};
|
|
26525
26525
|
--sqm-input-border-color-hover: ${((_69 = config === null || config === void 0 ? void 0 : config.formFields) === null || _69 === void 0 ? void 0 : _69.hoverStateColor) || "hsl(0, 0%, 91%)"};
|
|
26526
26526
|
|
|
26527
|
-
--sqm-input-label-font-size:
|
|
26527
|
+
--sqm-input-label-font-size: var(--sl-input-label-font-size-small);
|
|
26528
26528
|
--sqm-input-disabled-color: var(--sqm-text-subdued);
|
|
26529
26529
|
--sqm-input-disabled-background: ${((_70 = config === null || config === void 0 ? void 0 : config.formFields) === null || _70 === void 0 ? void 0 : _70.disabledBackgroundColor) || "#F4F4F5"};
|
|
26530
26530
|
|
|
@@ -26720,7 +26720,6 @@ sl-button[type="primary"]::part(base):hover{
|
|
|
26720
26720
|
color: var(--sqm-primary-button-color-hover);
|
|
26721
26721
|
}
|
|
26722
26722
|
|
|
26723
|
-
|
|
26724
26723
|
*::part(primarybutton-base):focus,
|
|
26725
26724
|
sl-button[type="primary"]::part(base):focus {
|
|
26726
26725
|
box-shadow: none;
|
|
@@ -26745,10 +26744,15 @@ sl-button[type="secondary"]::part(base):hover {
|
|
|
26745
26744
|
*::part(input-label), *::part(select-label), *::part(textarea-label){
|
|
26746
26745
|
font-family: var(--sqm-primary-font);
|
|
26747
26746
|
font-size: var(--sqm-input-label-font-size, var(--sl-input-font-size-small));
|
|
26748
|
-
font-weight: var(--sl-font-weight-
|
|
26747
|
+
font-weight: var(--sl-font-weight-bold);
|
|
26749
26748
|
color: var(--sqm-input-label-color, var(--sqm-text), black);
|
|
26750
26749
|
}
|
|
26751
26750
|
|
|
26751
|
+
sl-input::part(label) {
|
|
26752
|
+
font-weight: var(--sl-font-weight-bold);
|
|
26753
|
+
font-size: var(--sl-input-font-size-small);
|
|
26754
|
+
}
|
|
26755
|
+
|
|
26752
26756
|
*::part(input-base), *::part(select-base), *::part(textarea-base){
|
|
26753
26757
|
font-family: var(--sqm-primary-font);
|
|
26754
26758
|
background-color: var(--sqm-input-background, #fff);
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as Host, g as getElement } from './index-38ad4957.js';
|
|
2
|
-
import { i as intl } from './global-
|
|
2
|
+
import { i as intl } from './global-32d00a6e.js';
|
|
3
3
|
import { m as useRef, k as useState, f as useEffect, n as h$1, b as browser, j as useReducer, u as useMemo } from './dom-context-hooks.module-50442785.js';
|
|
4
4
|
import { d as dist, _, L, J, q as Pn, F as Fn, r as $n, $ as $e, i as isDemo, p as En, b as useCallback, R as Rn, w as wn } from './index.module-02cb914c.js';
|
|
5
5
|
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
@@ -7,17 +7,18 @@ import { c as cjs } from './cjs-bdfb4486.js';
|
|
|
7
7
|
import { g as getProps } from './utils-334c1e34.js';
|
|
8
8
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
9
9
|
import './mixins-f750863a.js';
|
|
10
|
+
import './AsYouType-2d56519e.js';
|
|
11
|
+
import { t as taxTypeToName, b as validTaxDocument, I as INDIRECT_TAX_SPAIN_REGIONS, a as INDIRECT_TAX_PROVINCES, o as objectIsFull, c as toDomesticNumber, A as ADDRESS_REGIONS } from './subregions-810a5c2d.js';
|
|
10
12
|
import { G as GenericTableView } from './GenericTableView-8c72ac30.js';
|
|
11
13
|
import { u as useRerenderListener, a as useRequestRerender } from './re-render-bf46ba54.js';
|
|
12
14
|
import { u as useChildElements } from './useChildElements-06937df7.js';
|
|
13
15
|
import { l as luxon } from './luxon-1be92a8e.js';
|
|
14
16
|
import { g as generateUserError } from './useReferralTable-03d32c6f.js';
|
|
15
|
-
import { O as OtherRegionSlotView, I as InvoiceTableView, v as vatLabels, T as TaxAndCashDashboardView, U as UserInfoFormView } from './sqm-user-info-form-view-
|
|
16
|
-
import { t as taxTypeToName, b as validTaxDocument, I as INDIRECT_TAX_SPAIN_REGIONS, a as INDIRECT_TAX_PROVINCES, o as objectIsFull, A as ADDRESS_REGIONS } from './subregions-7c9778d0.js';
|
|
17
|
+
import { O as OtherRegionSlotView, I as InvoiceTableView, v as vatLabels, T as TaxAndCashDashboardView, U as UserInfoFormView } from './sqm-user-info-form-view-ceb3917a.js';
|
|
17
18
|
import { F as FORM_STEPS, a as TAX_FORM_CONTEXT_NAMESPACE, S as SORTED_COUNTRIES_NAMESPACE, f as FINANCE_NETWORK_SETTINGS_NAMESPACE, c as USER_QUERY_NAMESPACE, T as TAX_CONTEXT_NAMESPACE, C as CURRENCIES_NAMESPACE, U as USER_FORM_CONTEXT_NAMESPACE } from './data-8698cbc6.js';
|
|
18
19
|
import { c as VERIFICATION_EVENT_KEY } from './keys-1054056a.js';
|
|
19
20
|
import { T as TAX_FORM_UPDATED_EVENT_KEY } from './eventKeys-f76b6a03.js';
|
|
20
|
-
import { a as useIndirectTaxForm, b as useVeriffApp, g as getStatus, V as VERIFF_COMPLETE_EVENT_KEY, c as CONNECT_PARTNER, C as COMPLETE_PARTNER } from './useIndirectTaxForm-
|
|
21
|
+
import { a as useIndirectTaxForm, b as useVeriffApp, g as getStatus, V as VERIFF_COMPLETE_EVENT_KEY, c as CONNECT_PARTNER, C as COMPLETE_PARTNER } from './useIndirectTaxForm-4dc576f0.js';
|
|
21
22
|
|
|
22
23
|
function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
23
24
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51, _52, _53, _54, _55, _56, _57, _58, _59, _60, _61, _62, _63, _64, _65, _66, _67, _68, _69, _70, _71, _72, _73, _74, _75, _76;
|
|
@@ -865,10 +866,10 @@ const API_FIELD_TO_FORM_FIELD = {
|
|
|
865
866
|
bankProvinceState: "bankState",
|
|
866
867
|
};
|
|
867
868
|
/**
|
|
868
|
-
* Maps Impact API error
|
|
869
|
+
* Maps Impact API error codes (from validationErrors[].code) to short,
|
|
869
870
|
* readable frontend error codes used in the ICU select props.
|
|
870
871
|
*/
|
|
871
|
-
const
|
|
872
|
+
const API_ERROR_CODE_TO_FRONTEND = {
|
|
872
873
|
// Beneficiary account name
|
|
873
874
|
"withdrawal.settings.error.empty_beneficiaryname": "empty",
|
|
874
875
|
"withdrawal.settings.error.invalid_character_beneficiaryname": "invalidCharacters",
|
|
@@ -1159,7 +1160,7 @@ function useBankingInfoForm(props) {
|
|
|
1159
1160
|
console.error("Validation failed: ", validationErrors);
|
|
1160
1161
|
const mappedValidationErrors = validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.reduce((agg, error) => {
|
|
1161
1162
|
const formField = API_FIELD_TO_FORM_FIELD[error.field] || error.field;
|
|
1162
|
-
const errorCode =
|
|
1163
|
+
const errorCode = API_ERROR_CODE_TO_FRONTEND[error.code] || error.code;
|
|
1163
1164
|
return {
|
|
1164
1165
|
...agg,
|
|
1165
1166
|
[formField]: {
|
|
@@ -2835,7 +2836,7 @@ const IndirectTaxFormView = (props) => {
|
|
|
2835
2836
|
}, {
|
|
2836
2837
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2837
2838
|
}))),
|
|
2838
|
-
states.
|
|
2839
|
+
states.isPartnerLegacy && (h("sqm-form-message", { loading: states.loading, type: "info" },
|
|
2839
2840
|
h("p", { part: "alert-title" }, text.isPartnerAlertHeader),
|
|
2840
2841
|
intl.formatMessage({
|
|
2841
2842
|
id: "isPartnerAlertDescription",
|
|
@@ -2848,11 +2849,11 @@ const IndirectTaxFormView = (props) => {
|
|
|
2848
2849
|
states.loading ? (h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } })) : (h("div", null,
|
|
2849
2850
|
h("div", { class: classes.RadioContainer },
|
|
2850
2851
|
h("div", { class: classes.InnerRadioContainer },
|
|
2851
|
-
h("sl-radio", { exportparts: "base: radio-base", name: "/checked", value: "notRegistered", id: "notRegistered", checked: formState.checked === "notRegistered", onInput: () => callbacks.onChange("notRegistered"), disabled: states.disabled
|
|
2852
|
+
h("sl-radio", { exportparts: "base: radio-base", name: "/checked", value: "notRegistered", id: "notRegistered", checked: formState.checked === "notRegistered", onInput: () => callbacks.onChange("notRegistered"), disabled: states.disabled },
|
|
2852
2853
|
h("div", { class: classes.RadioContent },
|
|
2853
2854
|
text.notRegistered,
|
|
2854
2855
|
h("p", { class: classes.DescriptionText }, text.notRegisteredSubtext))),
|
|
2855
|
-
h("sl-radio", { exportparts: "base: radio-base", name: "/checked", value: "otherRegion", id: "otherRegion", checked: formState.checked === "otherRegion", onInput: () => callbacks.onChange("otherRegion"), disabled: states.disabled
|
|
2856
|
+
h("sl-radio", { exportparts: "base: radio-base", name: "/checked", value: "otherRegion", id: "otherRegion", checked: formState.checked === "otherRegion", onInput: () => callbacks.onChange("otherRegion"), disabled: states.disabled },
|
|
2856
2857
|
h("div", { class: classes.RadioContent },
|
|
2857
2858
|
text.otherRegion,
|
|
2858
2859
|
h("p", { class: classes.DescriptionText }, text.otherRegionSubtext))),
|
|
@@ -3057,7 +3058,7 @@ const IndirectTaxForm = class {
|
|
|
3057
3058
|
: useIndirectTaxForm(this);
|
|
3058
3059
|
const registeredInDifferentCountryDetailsSlot = (h(OtherRegionSlotView, { states: {
|
|
3059
3060
|
hide: props.states.formState.checked !== "otherRegion",
|
|
3060
|
-
disabled: props.states.disabled
|
|
3061
|
+
disabled: props.states.disabled,
|
|
3061
3062
|
formState: props.slotProps.formState,
|
|
3062
3063
|
loading: props.states.loading,
|
|
3063
3064
|
isPartner: props.states.isPartner,
|
|
@@ -3082,6 +3083,7 @@ function useDemoIndirectTaxForm(props) {
|
|
|
3082
3083
|
disabled: false,
|
|
3083
3084
|
loading: false,
|
|
3084
3085
|
isPartner: false,
|
|
3086
|
+
isPartnerLegacy: false,
|
|
3085
3087
|
loadingError: false,
|
|
3086
3088
|
errors: {},
|
|
3087
3089
|
formState: {
|
|
@@ -4439,7 +4441,7 @@ const GET_INDIRECT_TAX_COUNTRY_CODE = dist.gql `
|
|
|
4439
4441
|
}
|
|
4440
4442
|
`;
|
|
4441
4443
|
function useUserInfoForm(props) {
|
|
4442
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
4444
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
4443
4445
|
const currencyRef = useRef(undefined);
|
|
4444
4446
|
const phoneCountryRef = useRef(undefined);
|
|
4445
4447
|
const formRef = useRef(null);
|
|
@@ -4545,7 +4547,9 @@ function useUserInfoForm(props) {
|
|
|
4545
4547
|
setFilteredPhoneCountries(countries || []);
|
|
4546
4548
|
}
|
|
4547
4549
|
else {
|
|
4548
|
-
setFilteredPhoneCountries(countries.filter((c) => c.displayName
|
|
4550
|
+
setFilteredPhoneCountries(countries.filter((c) => c.displayName
|
|
4551
|
+
.toLowerCase()
|
|
4552
|
+
.includes(phoneCountrySearch.toLowerCase())) || []);
|
|
4549
4553
|
}
|
|
4550
4554
|
}, [phoneCountrySearch, countries]);
|
|
4551
4555
|
useEffect(() => {
|
|
@@ -4559,7 +4563,7 @@ function useUserInfoForm(props) {
|
|
|
4559
4563
|
}
|
|
4560
4564
|
}, [currencySearch, currencies]);
|
|
4561
4565
|
async function connectPartner(formData) {
|
|
4562
|
-
var _a, _b, _c, _d;
|
|
4566
|
+
var _a, _b, _c, _d, _e, _f;
|
|
4563
4567
|
const vars = {
|
|
4564
4568
|
user: {
|
|
4565
4569
|
id: user.id,
|
|
@@ -4573,36 +4577,34 @@ function useUserInfoForm(props) {
|
|
|
4573
4577
|
city: formData.city,
|
|
4574
4578
|
state: formData.state,
|
|
4575
4579
|
postalCode: formData.postalCode,
|
|
4576
|
-
phoneNumber: formData.phoneNumber,
|
|
4580
|
+
phoneNumber: toDomesticNumber(formData.phoneNumberCountryCode, formData.phoneNumber),
|
|
4577
4581
|
phoneNumberCountryCode: formData.phoneNumberCountryCode,
|
|
4578
4582
|
};
|
|
4583
|
+
// if user went through early partner creation, connectionStatus === "STARTED"
|
|
4584
|
+
// otherwise trigger legacy partner creation
|
|
4585
|
+
const userData = data === null || data === void 0 ? void 0 : data.user;
|
|
4579
4586
|
let result = null;
|
|
4580
4587
|
let connectionResult;
|
|
4581
|
-
|
|
4582
|
-
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
|
|
4588
|
-
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
// });
|
|
4595
|
-
// connectionResult = (result as ConnectPartnerResult)
|
|
4596
|
-
// ?.createImpactConnection;
|
|
4597
|
-
// }
|
|
4598
|
-
if (!result || ((_b = result) === null || _b === void 0 ? void 0 : _b.message))
|
|
4588
|
+
if (((_a = userData === null || userData === void 0 ? void 0 : userData.impactConnection) === null || _a === void 0 ? void 0 : _a.connectionStatus) === "STARTED") {
|
|
4589
|
+
result = await completeImpactPartner({
|
|
4590
|
+
vars,
|
|
4591
|
+
});
|
|
4592
|
+
connectionResult = (_b = result) === null || _b === void 0 ? void 0 : _b.completeImpactConnection;
|
|
4593
|
+
}
|
|
4594
|
+
else {
|
|
4595
|
+
result = await connectImpactPartner({
|
|
4596
|
+
vars,
|
|
4597
|
+
});
|
|
4598
|
+
connectionResult = (_c = result) === null || _c === void 0 ? void 0 : _c.createImpactConnection;
|
|
4599
|
+
}
|
|
4600
|
+
if (!result || ((_d = result) === null || _d === void 0 ? void 0 : _d.message))
|
|
4599
4601
|
throw new Error();
|
|
4600
4602
|
if (!(connectionResult === null || connectionResult === void 0 ? void 0 : connectionResult.success)) {
|
|
4601
4603
|
console.error("Failed to create Impact connection: ", connectionResult === null || connectionResult === void 0 ? void 0 : connectionResult.validationErrors);
|
|
4602
4604
|
throw new Error();
|
|
4603
4605
|
}
|
|
4604
4606
|
await refetch();
|
|
4605
|
-
const resultPublisher = (
|
|
4607
|
+
const resultPublisher = (_f = (_e = connectionResult === null || connectionResult === void 0 ? void 0 : connectionResult.user) === null || _e === void 0 ? void 0 : _e.impactConnection) === null || _f === void 0 ? void 0 : _f.publisher;
|
|
4606
4608
|
const hasValidCurrentDocument = validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
|
|
4607
4609
|
// Fire form change event
|
|
4608
4610
|
window.dispatchEvent(new Event(TAX_FORM_UPDATED_EVENT_KEY));
|
|
@@ -4640,12 +4642,13 @@ function useUserInfoForm(props) {
|
|
|
4640
4642
|
return;
|
|
4641
4643
|
}
|
|
4642
4644
|
const { allowBankingCollection, ...userData } = formData;
|
|
4645
|
+
const normalizedPhoneNumber = toDomesticNumber(userData.phoneNumberCountryCode, userData.phoneNumber);
|
|
4643
4646
|
setUserFormContext({
|
|
4644
4647
|
...userFormContext,
|
|
4645
4648
|
firstName: userData.firstName,
|
|
4646
4649
|
lastName: userData.lastName,
|
|
4647
4650
|
phoneNumberCountryCode: userData.phoneNumberCountryCode,
|
|
4648
|
-
phoneNumber:
|
|
4651
|
+
phoneNumber: normalizedPhoneNumber,
|
|
4649
4652
|
countryCode: userData.countryCode,
|
|
4650
4653
|
address: userData.address,
|
|
4651
4654
|
city: userData.city,
|
|
@@ -4656,7 +4659,10 @@ function useUserInfoForm(props) {
|
|
|
4656
4659
|
const skipNextStep = getSkipNextStep(userData);
|
|
4657
4660
|
if (skipNextStep) {
|
|
4658
4661
|
try {
|
|
4659
|
-
const { resultPublisher, hasValidCurrentDocument } = await connectPartner(
|
|
4662
|
+
const { resultPublisher, hasValidCurrentDocument } = await connectPartner({
|
|
4663
|
+
...formData,
|
|
4664
|
+
phoneNumber: normalizedPhoneNumber,
|
|
4665
|
+
});
|
|
4660
4666
|
if ((resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) &&
|
|
4661
4667
|
!hasValidCurrentDocument) {
|
|
4662
4668
|
// Go to docusign form
|
|
@@ -4732,6 +4738,11 @@ function useUserInfoForm(props) {
|
|
|
4732
4738
|
loading: loading || connectLoading || completeLoading,
|
|
4733
4739
|
isPartner: !!((_g = (_f = data === null || data === void 0 ? void 0 : data.user) === null || _f === void 0 ? void 0 : _f.impactConnection) === null || _g === void 0 ? void 0 : _g.publisher),
|
|
4734
4740
|
isUser: !!((_j = (_h = data === null || data === void 0 ? void 0 : data.user) === null || _h === void 0 ? void 0 : _h.impactConnection) === null || _j === void 0 ? void 0 : _j.user),
|
|
4741
|
+
// Show banner when pre-existing partner is created with legacy mutation createImpactConnection
|
|
4742
|
+
isUserLegacy: !!((_l = (_k = data === null || data === void 0 ? void 0 : data.user) === null || _k === void 0 ? void 0 : _k.impactConnection) === null || _l === void 0 ? void 0 : _l.user) &&
|
|
4743
|
+
((_o = (_m = data === null || data === void 0 ? void 0 : data.user) === null || _m === void 0 ? void 0 : _m.impactConnection) === null || _o === void 0 ? void 0 : _o.connectionStatus) !== "STARTED",
|
|
4744
|
+
isPartnerLegacy: !!((_q = (_p = data === null || data === void 0 ? void 0 : data.user) === null || _p === void 0 ? void 0 : _p.impactConnection) === null || _q === void 0 ? void 0 : _q.publisher) &&
|
|
4745
|
+
((_s = (_r = data === null || data === void 0 ? void 0 : data.user) === null || _r === void 0 ? void 0 : _r.impactConnection) === null || _s === void 0 ? void 0 : _s.connectionStatus) !== "STARTED",
|
|
4735
4746
|
formState: {
|
|
4736
4747
|
...userFormContext,
|
|
4737
4748
|
errors: formErrors,
|
|
@@ -4949,6 +4960,8 @@ function useDemoUserInfoForm(props) {
|
|
|
4949
4960
|
loading: false,
|
|
4950
4961
|
isPartner: false,
|
|
4951
4962
|
isUser: false,
|
|
4963
|
+
isPartnerLegacy: false,
|
|
4964
|
+
isUserLegacy: false,
|
|
4952
4965
|
loadingError: false,
|
|
4953
4966
|
formState: {
|
|
4954
4967
|
errors: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1, c as Host } from './index-38ad4957.js';
|
|
2
|
-
import { b as buildFontsCssUrl, i as intl } from './global-
|
|
2
|
+
import { b as buildFontsCssUrl, i as intl } from './global-32d00a6e.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-50442785.js';
|
|
4
4
|
import { i as isDemo, _ as _$1, d as dist, J, H, B, $ as $e, w as wn, b as useCallback, L, y as yn, j as jn, o as Ue, s as setUserIdentity, Q as Qe, k as kn, M as Mn, I as In, S as Sn, p as En, X as Xe } from './index.module-02cb914c.js';
|
|
5
5
|
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
@@ -10,9 +10,11 @@ import './useReferralCodes-25f8b792.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
|
-
import { A as AsYouType
|
|
13
|
+
import { A as AsYouType } from './AsYouType-2d56519e.js';
|
|
14
|
+
import { g as getCountryObj, i as isValidI18nPhoneNumber, L as LoadingView } from './subregions-810a5c2d.js';
|
|
14
15
|
import { R as REGISTRATION_FORM_STATE_CONTEXT, a as useRegistrationForm } from './useRegistrationFormState-aa44cfff.js';
|
|
15
16
|
import { P as PortalRegistrationFormView } from './sqm-portal-registration-form-view-79265df5.js';
|
|
17
|
+
import { u as usePortalRegistrationForm } from './usePortalRegistrationForm-78fdfd93.js';
|
|
16
18
|
import { a as useRequestRerender } from './re-render-bf46ba54.js';
|
|
17
19
|
import { u as useChildElements } from './useChildElements-06937df7.js';
|
|
18
20
|
import { l as luxon } from './luxon-1be92a8e.js';
|
|
@@ -20,16 +22,15 @@ import { p as pathToRegexp } from './index-ffa26b43.js';
|
|
|
20
22
|
import { o as optimizeCloudinaryUrl } from './imageUrl-4775f17b.js';
|
|
21
23
|
import { E as EmailRegistrationView } from './email-registration-view-4cdb4129.js';
|
|
22
24
|
import { u as useInstantAccessRegistration } from './useInstantAccessRegistration-69c9ffe0.js';
|
|
23
|
-
import { R as RequiredPropsError, L as LEAD_FORM_STATE_CONTEXT, u as useLeadFormState } from './useLeadFormState-
|
|
25
|
+
import { R as RequiredPropsError, L as LEAD_FORM_STATE_CONTEXT, u as useLeadFormState } from './useLeadFormState-6214b2d9.js';
|
|
24
26
|
import { i as isEmpty } from './utilities-cbd8f2eb.js';
|
|
25
27
|
import { E as ErrorView } from './ErrorView-74cb3af8.js';
|
|
26
|
-
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-543f0fef.js';
|
|
27
29
|
import './sqm-portal-container-view-200c9df8.js';
|
|
28
|
-
import { g as getCountryObj, L as LoadingView } from './subregions-7c9778d0.js';
|
|
29
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-8698cbc6.js';
|
|
30
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';
|
|
31
32
|
import './eventKeys-f76b6a03.js';
|
|
32
|
-
import { u as usePayoutStatus, C as COMPLETE_PARTNER } from './useIndirectTaxForm-
|
|
33
|
+
import { u as usePayoutStatus, C as COMPLETE_PARTNER } from './useIndirectTaxForm-4dc576f0.js';
|
|
33
34
|
import { p as parseStates } from './parseStates-ed75e224.js';
|
|
34
35
|
|
|
35
36
|
/**
|
|
@@ -6657,15 +6658,19 @@ function getCurrentStep(user) {
|
|
|
6657
6658
|
if (!((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.connected) || !((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher)) {
|
|
6658
6659
|
return "/1";
|
|
6659
6660
|
}
|
|
6660
|
-
const { requiredTaxDocumentType, currentTaxDocument, withdrawalSettings, brandedSignup, payoutsAccount, billingAddress, billingCity, billingCountryCode, billingPostalCode,
|
|
6661
|
-
const
|
|
6662
|
-
|
|
6663
|
-
|
|
6664
|
-
|
|
6665
|
-
|
|
6666
|
-
|
|
6667
|
-
|
|
6668
|
-
|
|
6661
|
+
const { requiredTaxDocumentType, currentTaxDocument, withdrawalSettings, brandedSignup, payoutsAccount, billingAddress, billingCity, billingCountryCode, billingPostalCode, phoneNumber, phoneNumberCountryCode, } = user.impactConnection.publisher;
|
|
6662
|
+
const isCompleted = user.impactConnection.connectionStatus === "COMPLETED";
|
|
6663
|
+
if (!isCompleted) {
|
|
6664
|
+
const hasBillingInfo = billingAddress &&
|
|
6665
|
+
billingCity &&
|
|
6666
|
+
billingCountryCode &&
|
|
6667
|
+
billingPostalCode &&
|
|
6668
|
+
phoneNumberCountryCode &&
|
|
6669
|
+
phoneNumber &&
|
|
6670
|
+
isValidI18nPhoneNumber(phoneNumberCountryCode, phoneNumber);
|
|
6671
|
+
if (!hasBillingInfo) {
|
|
6672
|
+
return "/1";
|
|
6673
|
+
}
|
|
6669
6674
|
}
|
|
6670
6675
|
// If they do have a required document, look at current document
|
|
6671
6676
|
if (requiredTaxDocumentType && !currentTaxDocument) {
|
|
@@ -6684,7 +6689,7 @@ function useTaxAndCash() {
|
|
|
6684
6689
|
const host = _$1();
|
|
6685
6690
|
const user = J();
|
|
6686
6691
|
const locale = L();
|
|
6687
|
-
const [completeImpactPartner
|
|
6692
|
+
const [completeImpactPartner] = $e(COMPLETE_PARTNER);
|
|
6688
6693
|
// State for current step of form
|
|
6689
6694
|
const [step, setStep] = In({
|
|
6690
6695
|
namespace: TAX_CONTEXT_NAMESPACE,
|
|
@@ -6792,7 +6797,6 @@ function useTaxAndCash() {
|
|
|
6792
6797
|
setCurrenciesContext(supportedCurrencies);
|
|
6793
6798
|
}, [supportedCurrencies]);
|
|
6794
6799
|
useEffect(() => {
|
|
6795
|
-
var _a;
|
|
6796
6800
|
if (errors) {
|
|
6797
6801
|
setStep("/error");
|
|
6798
6802
|
return;
|
|
@@ -6807,7 +6811,8 @@ function useTaxAndCash() {
|
|
|
6807
6811
|
publisher.billingCountryCode &&
|
|
6808
6812
|
publisher.billingPostalCode &&
|
|
6809
6813
|
publisher.phoneNumberCountryCode &&
|
|
6810
|
-
publisher.phoneNumber
|
|
6814
|
+
publisher.phoneNumber &&
|
|
6815
|
+
isValidI18nPhoneNumber(publisher.phoneNumberCountryCode, publisher.phoneNumber);
|
|
6811
6816
|
if (hasBillingInfo &&
|
|
6812
6817
|
((_b = user === null || user === void 0 ? void 0 : user.impactConnection) === null || _b === void 0 ? void 0 : _b.connectionStatus) === "STARTED") {
|
|
6813
6818
|
const vars = {
|
|
@@ -6835,13 +6840,19 @@ function useTaxAndCash() {
|
|
|
6835
6840
|
const user = data === null || data === void 0 ? void 0 : data.user;
|
|
6836
6841
|
if (!user || step !== "/loading")
|
|
6837
6842
|
return;
|
|
6838
|
-
|
|
6839
|
-
|
|
6840
|
-
|
|
6841
|
-
|
|
6843
|
+
async function routeAfterMaybeCompleting() {
|
|
6844
|
+
var _a;
|
|
6845
|
+
if (((_a = user === null || user === void 0 ? void 0 : user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) &&
|
|
6846
|
+
(user === null || user === void 0 ? void 0 : user.impactConnection.connectionStatus) === "STARTED") {
|
|
6847
|
+
// Finish the early-created connection before routing so the next
|
|
6848
|
+
// step sees the completed status
|
|
6849
|
+
await completeConnection(user);
|
|
6850
|
+
await refetch();
|
|
6851
|
+
}
|
|
6852
|
+
const currentStep = getCurrentStep(user);
|
|
6853
|
+
setStep(currentStep);
|
|
6842
6854
|
}
|
|
6843
|
-
|
|
6844
|
-
setStep(currentStep);
|
|
6855
|
+
routeAfterMaybeCompleting();
|
|
6845
6856
|
}
|
|
6846
6857
|
}, [host, user, (_e = data === null || data === void 0 ? void 0 : data.user) === null || _e === void 0 ? void 0 : _e.email, errors]);
|
|
6847
6858
|
function getFinanceNetworkFilter() {
|
|
@@ -8386,9 +8397,11 @@ function useWidgetVerification() {
|
|
|
8386
8397
|
};
|
|
8387
8398
|
const onPartnerModalComplete = () => {
|
|
8388
8399
|
setShowPartnerModal(false);
|
|
8400
|
+
// Reset the latch so a later partner creation can re-trigger this effect
|
|
8389
8401
|
setPartnerCreated(false);
|
|
8390
8402
|
setContext(true);
|
|
8391
8403
|
};
|
|
8404
|
+
// The modal signals completion by flipping partnerCreated; advance the flow here
|
|
8392
8405
|
useEffect(() => {
|
|
8393
8406
|
if (partnerCreated)
|
|
8394
8407
|
onPartnerModalComplete();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h, r as registerInstance } from './index-38ad4957.js';
|
|
2
|
-
import { i as intl } from './global-
|
|
2
|
+
import { i as intl } from './global-32d00a6e.js';
|
|
3
3
|
import { l, k as useState, f as useEffect, n as h$1 } from './dom-context-hooks.module-50442785.js';
|
|
4
4
|
import { d as dist, q as Pn, F as Fn, i as isDemo, p as En } from './index.module-02cb914c.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h, r as registerInstance } from './index-38ad4957.js';
|
|
2
|
-
import { i as intl } from './global-
|
|
2
|
+
import { i as intl } from './global-32d00a6e.js';
|
|
3
3
|
import { k as useState, f as useEffect, n as h$1, u as useMemo } from './dom-context-hooks.module-50442785.js';
|
|
4
4
|
import { d as dist, q as Pn, w as wn, J, $ as $e, i as isDemo, p as En, L } from './index.module-02cb914c.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
@@ -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-8698cbc6.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-8f141a4f.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';
|
|
@@ -239,7 +239,7 @@ sl-button[type="secondary"]::part(base):hover {
|
|
|
239
239
|
*::part(input-label), *::part(select-label), *::part(textarea-label){
|
|
240
240
|
font-family: var(--sqm-primary-font);
|
|
241
241
|
font-size: var(--sqm-input-label-font-size, var(--sl-input-font-size-small));
|
|
242
|
-
font-weight: var(--sl-font-weight-
|
|
242
|
+
font-weight: var(--sl-font-weight-bold);
|
|
243
243
|
color: var(--sqm-input-label-color, var(--sqm-text), black);
|
|
244
244
|
}
|
|
245
245
|
|
|
@@ -502,7 +502,8 @@ function usePartnerInfoModal(props) {
|
|
|
502
502
|
const { data: currenciesData, loading: currenciesLoading } = wn(GET_CURRENCIES, { variables: { locale } });
|
|
503
503
|
const { data: countriesData, loading: countriesLoading } = wn(GET_COUNTRIES, {});
|
|
504
504
|
// No pre-filled country, use locale to determine countryCode instead
|
|
505
|
-
const [countryCode, setCountryCode] = useState(((_b = (_a = user === null || user === void 0 ? void 0 : user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) === null || _b === void 0 ? void 0 : _b.countryCode) ||
|
|
505
|
+
const [countryCode, setCountryCode] = useState(((_b = (_a = user === null || user === void 0 ? void 0 : user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) === null || _b === void 0 ? void 0 : _b.countryCode) ||
|
|
506
|
+
locale.replace(/^.*_/, ""));
|
|
506
507
|
const [currency, setCurrency] = useState(((_d = (_c = user === null || user === void 0 ? void 0 : user.impactConnection) === null || _c === void 0 ? void 0 : _c.publisher) === null || _d === void 0 ? void 0 : _d.currency) || "");
|
|
507
508
|
const { data: financeNetworkData } = wn(GET_FINANCE_NETWORK_SETTINGS, {
|
|
508
509
|
variables: { filter: countryCode ? { countryCode_eq: countryCode } : {} },
|
|
@@ -601,11 +602,7 @@ function usePartnerInfoModal(props) {
|
|
|
601
602
|
}
|
|
602
603
|
async function onSubmit() {
|
|
603
604
|
var _a, _b;
|
|
604
|
-
if (!allowBankingCollection) {
|
|
605
|
-
setError(props.missingFieldsErrorText);
|
|
606
|
-
return;
|
|
607
|
-
}
|
|
608
|
-
if (!countryCode || !currency) {
|
|
605
|
+
if (!allowBankingCollection || !countryCode || !currency) {
|
|
609
606
|
setError(props.missingFieldsErrorText);
|
|
610
607
|
return;
|
|
611
608
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as Host } from './index-38ad4957.js';
|
|
2
|
-
import { i as intl } from './global-
|
|
2
|
+
import { i as intl } from './global-32d00a6e.js';
|
|
3
3
|
import { n as h$1 } from './dom-context-hooks.module-50442785.js';
|
|
4
4
|
import './index.module-02cb914c.js';
|
|
5
5
|
import { g as getProps } from './utils-334c1e34.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-38ad4957.js';
|
|
2
|
-
import './global-
|
|
2
|
+
import './global-32d00a6e.js';
|
|
3
3
|
import { i as d, n as h } from './dom-context-hooks.module-50442785.js';
|
|
4
4
|
import { i as isDemo } from './index.module-02cb914c.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-6214b2d9.js';
|
|
9
|
+
import { L as LeadCheckboxFieldView } from './sqm-lead-checkbox-field-view-aa977b97.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-38ad4957.js';
|
|
2
|
-
import './global-
|
|
2
|
+
import './global-32d00a6e.js';
|
|
3
3
|
import { i as d, n as h } from './dom-context-hooks.module-50442785.js';
|
|
4
4
|
import { i as isDemo } from './index.module-02cb914c.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-6214b2d9.js';
|
|
10
|
+
import { L as LeadInputFieldView } from './sqm-lead-input-field-view-671ff96f.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-38ad4957.js';
|
|
2
|
-
import { i as intl } from './global-
|
|
2
|
+
import { i as intl } from './global-32d00a6e.js';
|
|
3
3
|
import { n as h } from './dom-context-hooks.module-50442785.js';
|
|
4
4
|
import { d as dist, H, J, w as wn, i as isDemo } from './index.module-02cb914c.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-38ad4957.js';
|
|
2
|
-
import { i as intl } from './global-
|
|
2
|
+
import { i as intl } from './global-32d00a6e.js';
|
|
3
3
|
import { n as h$1, k as useState } from './dom-context-hooks.module-50442785.js';
|
|
4
4
|
import { F as Fn, i as isDemo, d as dist, H, J, B, w as wn, $ as $e } from './index.module-02cb914c.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
package/dist/esm/{sqm-partner-info-modal-view-bc843d7d.js → sqm-partner-info-modal-view-8f141a4f.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from './index-38ad4957.js';
|
|
2
|
-
import { i as intl } from './global-
|
|
2
|
+
import { i as intl } from './global-32d00a6e.js';
|
|
3
3
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
4
4
|
|
|
5
5
|
const style = {
|
|
@@ -129,13 +129,14 @@ function PartnerInfoModalView(props) {
|
|
|
129
129
|
const styleString = sheet.toString();
|
|
130
130
|
if (!states.open)
|
|
131
131
|
return h("div", null);
|
|
132
|
+
const modalHeader = states.isExistingPartner
|
|
133
|
+
? text.modalHeaderExistingPartner
|
|
134
|
+
: text.modalHeader;
|
|
132
135
|
return (h("div", null,
|
|
133
136
|
h("style", { type: "text/css" },
|
|
134
137
|
" ",
|
|
135
138
|
styleString),
|
|
136
|
-
h("sl-dialog", { class: sheet.classes.Dialog, open: states.open, noHeader: true, label:
|
|
137
|
-
? text.modalHeaderExistingPartner
|
|
138
|
-
: text.modalHeader, "onSl-request-close": (e) => {
|
|
139
|
+
h("sl-dialog", { class: sheet.classes.Dialog, open: states.open, noHeader: true, label: modalHeader, "onSl-request-close": (e) => {
|
|
139
140
|
e.preventDefault();
|
|
140
141
|
}, "onSl-hide": (e) => {
|
|
141
142
|
var _a;
|
|
@@ -143,9 +144,7 @@ function PartnerInfoModalView(props) {
|
|
|
143
144
|
e.preventDefault();
|
|
144
145
|
}
|
|
145
146
|
}, "onSl-initial-focus": callbacks.onInitialFocus },
|
|
146
|
-
h("h2", { class: sheet.classes.DialogTitle },
|
|
147
|
-
? text.modalHeaderExistingPartner
|
|
148
|
-
: text.modalHeader),
|
|
147
|
+
h("h2", { class: sheet.classes.DialogTitle }, modalHeader),
|
|
149
148
|
h(PartnerInfoModalContentView, Object.assign({}, props)))));
|
|
150
149
|
}
|
|
151
150
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from './index-38ad4957.js';
|
|
2
|
-
import { i as intl } from './global-
|
|
2
|
+
import { i as intl } from './global-32d00a6e.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-72f43dff.js';
|