@saasquatch/mint-components 2.2.0-7 → 2.2.0-8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{ShadowViewAddon-1c054d52.js → ShadowViewAddon-3b477e58.js} +429 -27
- package/dist/cjs/{data-c03e282a.js → data-89ac73dd.js} +1 -0
- 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 +48 -307
- package/dist/cjs/sqm-big-stat_46.cjs.entry.js +334 -36
- package/dist/cjs/sqm-code-verification.cjs.entry.js +1 -1
- package/dist/cjs/sqm-email-verification_2.cjs.entry.js +19 -12
- package/dist/cjs/sqm-empty_4.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-partner-info-modal-view-97770d03.js → sqm-partner-info-modal-view-f6faecf5.js} +1 -1
- package/dist/cjs/{sqm-portal-container-view-70a47420.js → sqm-portal-container-view-757f921b.js} +5 -6
- package/dist/cjs/{sqm-portal-email-verification-view-d51c2a06.js → sqm-portal-email-verification-view-abb773a7.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 +5 -5
- package/dist/cjs/{sqm-portal-profile-view-e6927959.js → sqm-portal-profile-view-3515e1e5.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-registration-form-view-fd48f1d3.js → sqm-portal-registration-form-view-a45f7a52.js} +1 -1
- package/dist/cjs/{sqm-portal-reset-password-view-d90d77f9.js → sqm-portal-reset-password-view-a767b044.js} +1 -1
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-verify-email-view-6258dcae.js → sqm-portal-verify-email-view-717d0633.js} +1 -1
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +1 -1
- package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +1 -1
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +176 -32
- package/dist/cjs/{sqm-text-span-view-8a32dd8c.js → sqm-text-span-view-b9e10f5d.js} +1 -1
- package/dist/cjs/sqm-text-span.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-user-info-form-view-4d56b339.js → sqm-user-info-form-view-0e1ddbe4.js} +3 -388
- package/dist/cjs/{usePayoutStatus-0a98ee05.js → useIndirectTaxForm-c3c1ec56.js} +291 -0
- package/dist/cjs/utils-a3b3d05b.js +478 -0
- package/dist/collection/components/sqm-big-stat/useBigStat.js +5 -6
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field-view.js +1 -1
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +2 -3
- package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal-view.js +1 -1
- package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal.js +2 -2
- package/dist/collection/components/sqm-partner-info-modal/usePartnerInfoModal.js +15 -8
- package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +6 -7
- package/dist/collection/components/sqm-portal-google-login/sqm-portal-google-login.js +1 -1
- package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +1 -1
- package/dist/collection/components/sqm-referral-iframe/ReferralIframe.stories.js +1 -0
- package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe-view.js +1 -1
- package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe.js +27 -1
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +0 -1
- package/dist/collection/components/sqm-share-link/ShareLink.stories.js +136 -11
- package/dist/collection/components/sqm-share-link/UseShareLink.stories.js +14 -5
- package/dist/collection/components/sqm-share-link/sqm-share-link-view.js +192 -0
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +935 -48
- package/dist/collection/components/sqm-share-link/useShareLink.js +227 -14
- package/dist/collection/components/sqm-text-span/sqm-text-span-view.js +1 -1
- package/dist/collection/components/tax-and-cash/data.js +1 -0
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/formDefinitions.js +19 -1
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +50 -0
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +4 -4
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +65 -7
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +49 -3
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +2 -2
- package/dist/esm/{ShadowViewAddon-4d554869.js → ShadowViewAddon-e115fa1c.js} +431 -30
- package/dist/esm/{data-017e5ef2.js → data-8698cbc6.js} +1 -0
- 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 +36 -295
- package/dist/esm/sqm-big-stat_46.entry.js +333 -35
- package/dist/esm/sqm-code-verification.entry.js +1 -1
- package/dist/esm/sqm-email-verification_2.entry.js +19 -12
- package/dist/esm/sqm-empty_4.entry.js +1 -1
- package/dist/esm/{sqm-partner-info-modal-view-5709904e.js → sqm-partner-info-modal-view-d6f3a215.js} +1 -1
- package/dist/esm/{sqm-portal-container-view-a8c708cd.js → sqm-portal-container-view-200c9df8.js} +6 -7
- package/dist/esm/{sqm-portal-email-verification-view-58bad294.js → sqm-portal-email-verification-view-fde1eb35.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +2 -2
- package/dist/esm/sqm-portal-forgot-password_6.entry.js +5 -5
- package/dist/esm/{sqm-portal-profile-view-115bad4a.js → sqm-portal-profile-view-2018590a.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +2 -2
- package/dist/esm/{sqm-portal-registration-form-view-9bf30b56.js → sqm-portal-registration-form-view-79265df5.js} +1 -1
- package/dist/esm/{sqm-portal-reset-password-view-f8d1689c.js → sqm-portal-reset-password-view-f84c04cf.js} +1 -1
- package/dist/esm/sqm-portal-reset-password.entry.js +2 -2
- package/dist/esm/{sqm-portal-verify-email-view-c053ead1.js → sqm-portal-verify-email-view-590f964b.js} +1 -1
- package/dist/esm/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm/sqm-stencilbook.entry.js +174 -30
- package/dist/esm/{sqm-text-span-view-4db9e33f.js → sqm-text-span-view-72f43dff.js} +1 -1
- package/dist/esm/sqm-text-span.entry.js +1 -1
- package/dist/esm/{sqm-user-info-form-view-d13f9d3e.js → sqm-user-info-form-view-e1ba6009.js} +3 -385
- package/dist/esm/{usePayoutStatus-227ae365.js → useIndirectTaxForm-b2888ea5.js} +291 -3
- package/dist/esm/utils-4f5cd04c.js +467 -0
- package/dist/esm-es5/ShadowViewAddon-e115fa1c.js +1 -0
- package/dist/esm-es5/data-8698cbc6.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_46.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-partner-info-modal-view-5709904e.js → sqm-partner-info-modal-view-d6f3a215.js} +1 -1
- package/dist/esm-es5/sqm-portal-container-view-200c9df8.js +1 -0
- package/dist/esm-es5/{sqm-portal-email-verification-view-58bad294.js → sqm-portal-email-verification-view-fde1eb35.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-115bad4a.js → sqm-portal-profile-view-2018590a.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-registration-form-view-9bf30b56.js → sqm-portal-registration-form-view-79265df5.js} +1 -1
- package/dist/esm-es5/{sqm-portal-reset-password-view-f8d1689c.js → sqm-portal-reset-password-view-f84c04cf.js} +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-verify-email-view-c053ead1.js → sqm-portal-verify-email-view-590f964b.js} +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/{sqm-text-span-view-4db9e33f.js → sqm-text-span-view-72f43dff.js} +1 -1
- package/dist/esm-es5/sqm-text-span.entry.js +1 -1
- package/dist/esm-es5/sqm-user-info-form-view-e1ba6009.js +1 -0
- package/dist/esm-es5/useIndirectTaxForm-b2888ea5.js +6 -0
- package/dist/esm-es5/utils-4f5cd04c.js +1 -0
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/{p-4034f157.js → p-0afa6148.js} +1 -1
- package/dist/mint-components/p-0b1e90fe.system.js +1 -0
- package/dist/mint-components/{p-731c4d33.entry.js → p-13d1b10d.entry.js} +1 -1
- package/dist/mint-components/{p-b1b20d42.entry.js → p-1d398dbc.entry.js} +1 -1
- package/dist/mint-components/p-1e6a2945.js +1 -0
- package/dist/mint-components/p-1efb42e2.js +499 -0
- package/dist/mint-components/p-1f387c7b.system.js +1 -1
- package/dist/mint-components/{p-d6ccb6fc.entry.js → p-2ed13619.entry.js} +1 -1
- package/dist/mint-components/{p-b1765c78.system.js → p-31815fb6.system.js} +1 -1
- package/dist/mint-components/p-335a5736.entry.js +1 -0
- package/dist/mint-components/{p-dbc8afaa.system.entry.js → p-33ca28ba.system.entry.js} +1 -1
- package/dist/mint-components/{p-d1c1c2c9.entry.js → p-3596e241.entry.js} +2 -2
- package/dist/mint-components/{p-1faa6ddf.system.entry.js → p-37e24621.system.entry.js} +1 -1
- package/dist/mint-components/{p-dafe30c3.entry.js → p-4d73a616.entry.js} +1 -1
- package/dist/mint-components/{p-9ba8b28b.system.entry.js → p-51ae6716.system.entry.js} +1 -1
- package/dist/mint-components/p-58c24352.system.js +6 -0
- package/dist/mint-components/{p-00046ec1.js → p-5c52100b.js} +1 -0
- package/dist/mint-components/{p-f368f04a.system.js → p-686dd5eb.system.js} +1 -1
- package/dist/mint-components/{p-379cb9f1.system.js → p-7562cd98.system.js} +1 -1
- package/dist/mint-components/{p-bd972473.system.js → p-7628e56f.system.js} +1 -1
- package/dist/mint-components/{p-d71a8b38.entry.js → p-7cbdf341.entry.js} +2 -2
- package/dist/mint-components/p-7d2d9ef9.system.js +1 -0
- package/dist/mint-components/{p-8d073bdf.entry.js → p-84495fb8.entry.js} +1 -1
- package/dist/mint-components/{p-cfba6b4e.system.entry.js → p-86d20b47.system.entry.js} +1 -1
- package/dist/mint-components/{p-71561bb2.system.entry.js → p-8899ff38.system.entry.js} +1 -1
- package/dist/mint-components/p-9674856e.entry.js +9 -0
- package/dist/mint-components/p-9c1f5317.system.js +1 -0
- package/dist/mint-components/p-9f48640d.js +1 -0
- package/dist/mint-components/{p-df88dcaa.system.js → p-a4825ec2.system.js} +1 -1
- package/dist/mint-components/p-a88b8165.system.entry.js +1 -0
- package/dist/mint-components/p-abe9f5b1.js +99 -0
- package/dist/mint-components/{p-31edeff4.system.js → p-ae2f610e.system.js} +1 -1
- package/dist/mint-components/p-b222bace.system.entry.js +1 -0
- package/dist/mint-components/{p-45e2a83a.js → p-b3ad957c.js} +1 -1
- package/dist/mint-components/{p-2ab31786.js → p-b871d158.js} +1 -1
- package/dist/mint-components/p-b96ed8eb.js +1 -0
- package/dist/mint-components/p-bbd41807.entry.js +291 -0
- package/dist/mint-components/{p-9b15ee47.system.js → p-be6a0dee.system.js} +1 -1
- package/dist/mint-components/{p-a7f72a66.js → p-bee4af5d.js} +1 -1
- package/dist/mint-components/{p-0102ad17.system.entry.js → p-c0f8f977.system.entry.js} +1 -1
- package/dist/mint-components/{p-50d959bd.js → p-c813ec64.js} +1 -1
- package/dist/mint-components/p-cdabd9de.system.js +1 -0
- package/dist/mint-components/{p-7699d40a.system.entry.js → p-cfc35705.system.entry.js} +1 -1
- package/dist/mint-components/p-d2ede7cd.system.entry.js +1 -0
- package/dist/mint-components/{p-e1292288.system.entry.js → p-d3b1ab20.system.entry.js} +1 -1
- package/dist/mint-components/p-db6bf7cf.system.entry.js +1 -0
- package/dist/mint-components/p-e30abc44.js +1 -0
- package/dist/mint-components/{p-3218bb1d.entry.js → p-e506bf7f.entry.js} +1 -1
- package/dist/mint-components/{p-ae4994e1.js → p-e8e7af06.js} +1 -1
- package/dist/mint-components/p-ebc519bc.system.js +1 -0
- package/dist/mint-components/{p-eee0bcf4.entry.js → p-ef32fa8f.entry.js} +1 -1
- package/dist/mint-components/{p-ca5b9f4d.system.entry.js → p-fa85ea51.system.entry.js} +1 -1
- package/dist/mint-components/p-ffcebe78.entry.js +83 -0
- package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field.d.ts +1 -1
- package/dist/types/components/sqm-referral-iframe/sqm-referral-iframe-view.d.ts +1 -0
- package/dist/types/components/sqm-referral-iframe/sqm-referral-iframe.d.ts +5 -0
- package/dist/types/components/sqm-share-link/ShareLink.stories.d.ts +9 -0
- package/dist/types/components/sqm-share-link/UseShareLink.stories.d.ts +6 -0
- package/dist/types/components/sqm-share-link/sqm-share-link-view.d.ts +41 -0
- package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +195 -2
- package/dist/types/components/sqm-share-link/useShareLink.d.ts +33 -4
- package/dist/types/components/tax-and-cash/data.d.ts +2 -0
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/formDefinitions.d.ts +6 -0
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.d.ts +8 -0
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.d.ts +2 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +10 -0
- package/dist/types/components.d.ts +397 -4
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/readme.md +60 -1
- package/shoelace/assets/icons/twitter-x.svg +4 -0
- package/dist/cjs/utils-15ce04e3.js +0 -93
- package/dist/esm/utils-17daa419.js +0 -85
- package/dist/esm-es5/ShadowViewAddon-4d554869.js +0 -1
- package/dist/esm-es5/data-017e5ef2.js +0 -1
- package/dist/esm-es5/sqm-portal-container-view-a8c708cd.js +0 -1
- package/dist/esm-es5/sqm-user-info-form-view-d13f9d3e.js +0 -1
- package/dist/esm-es5/usePayoutStatus-227ae365.js +0 -6
- package/dist/esm-es5/utils-17daa419.js +0 -1
- package/dist/mint-components/p-00dd7f08.js +0 -1
- package/dist/mint-components/p-3254fbb4.entry.js +0 -291
- package/dist/mint-components/p-4a8ffa03.system.js +0 -1
- package/dist/mint-components/p-4e34bcb1.system.js +0 -1
- package/dist/mint-components/p-53d90eb5.js +0 -463
- package/dist/mint-components/p-5e300ec1.system.js +0 -6
- package/dist/mint-components/p-614723aa.js +0 -1
- package/dist/mint-components/p-6af71f23.entry.js +0 -9
- package/dist/mint-components/p-6c23abd8.entry.js +0 -1
- package/dist/mint-components/p-753d06ef.entry.js +0 -133
- package/dist/mint-components/p-7aace2b3.system.js +0 -1
- package/dist/mint-components/p-b0ab1065.system.entry.js +0 -1
- package/dist/mint-components/p-b52a7da9.system.entry.js +0 -1
- package/dist/mint-components/p-b699f76e.system.js +0 -1
- package/dist/mint-components/p-b6a1e2ac.js +0 -1
- package/dist/mint-components/p-b7370480.js +0 -1
- package/dist/mint-components/p-ce7d824b.js +0 -49
- package/dist/mint-components/p-e93cdcbd.system.js +0 -1
- package/dist/mint-components/p-eb285d38.system.entry.js +0 -1
- package/dist/mint-components/p-f782ff10.system.entry.js +0 -1
- package/docs/stats.json +0 -122783
|
@@ -16,15 +16,15 @@ const reRender = require('./re-render-72a0ef45.js');
|
|
|
16
16
|
const useChildElements = require('./useChildElements-041127d7.js');
|
|
17
17
|
const luxon = require('./luxon-c1ad356a.js');
|
|
18
18
|
const useReferralTable = require('./useReferralTable-6e9de0d5.js');
|
|
19
|
-
const sqmUserInfoFormView = require('./sqm-user-info-form-view-
|
|
20
|
-
const utils$1 = require('./utils-
|
|
21
|
-
const data = require('./data-
|
|
19
|
+
const sqmUserInfoFormView = require('./sqm-user-info-form-view-0e1ddbe4.js');
|
|
20
|
+
const utils$1 = require('./utils-a3b3d05b.js');
|
|
21
|
+
const data = require('./data-89ac73dd.js');
|
|
22
22
|
const keys = require('./keys-5a2c9ed2.js');
|
|
23
23
|
const eventKeys = require('./eventKeys-7af4df4d.js');
|
|
24
|
-
const
|
|
24
|
+
const useIndirectTaxForm = require('./useIndirectTaxForm-c3c1ec56.js');
|
|
25
25
|
|
|
26
26
|
function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
27
|
-
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;
|
|
27
|
+
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;
|
|
28
28
|
const { errors, ...formState } = props.states.formState;
|
|
29
29
|
return {
|
|
30
30
|
0: {
|
|
@@ -257,6 +257,24 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
257
257
|
index.h("sl-menu-item", { value: "INDIVIDUAL" }, props.text.individualSelectItemLabel),
|
|
258
258
|
index.h("sl-menu-item", { value: "FOREIGN" }, props.text.foreignSelectItemLabel))),
|
|
259
259
|
},
|
|
260
|
+
15: {
|
|
261
|
+
input: (index.h("sl-input", Object.assign({ required: true, label: props.text.branchNameLabel, name: "/branchName", id: "branchName", key: "branchName", type: "text" }, (((_71 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _71 === void 0 ? void 0 : _71.branchName) && {
|
|
262
|
+
class: "error-input",
|
|
263
|
+
helpText: getValidationErrorMessage({
|
|
264
|
+
type: (_73 = (_72 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _72 === void 0 ? void 0 : _72.branchName) === null || _73 === void 0 ? void 0 : _73.type,
|
|
265
|
+
label: props.text.branchNameLabel,
|
|
266
|
+
}),
|
|
267
|
+
})))),
|
|
268
|
+
},
|
|
269
|
+
16: {
|
|
270
|
+
input: (index.h("sl-input", Object.assign({ required: true, label: props.text.classificationCodeLabel, name: "/classificationCode", id: "classificationCode", key: "classificationCode", type: "text" }, (((_74 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _74 === void 0 ? void 0 : _74.classificationCode) && {
|
|
271
|
+
class: "error-input",
|
|
272
|
+
helpText: getValidationErrorMessage({
|
|
273
|
+
type: (_76 = (_75 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _75 === void 0 ? void 0 : _75.classificationCode) === null || _76 === void 0 ? void 0 : _76.type,
|
|
274
|
+
label: props.text.classificationCodeLabel,
|
|
275
|
+
}),
|
|
276
|
+
})))),
|
|
277
|
+
},
|
|
260
278
|
};
|
|
261
279
|
}
|
|
262
280
|
|
|
@@ -1446,11 +1464,19 @@ const BankingInfoForm = class {
|
|
|
1446
1464
|
* @uiName Branch code field label
|
|
1447
1465
|
*/
|
|
1448
1466
|
this.branchCodeLabel = "Branch code";
|
|
1467
|
+
/**
|
|
1468
|
+
* @uiName Branch name field label
|
|
1469
|
+
*/
|
|
1470
|
+
this.branchNameLabel = "Branch name";
|
|
1449
1471
|
/**
|
|
1450
1472
|
* Label text for the classification input field
|
|
1451
1473
|
* @uiName Classification field label
|
|
1452
1474
|
*/
|
|
1453
1475
|
this.classificationLabel = "Classification";
|
|
1476
|
+
/**
|
|
1477
|
+
* @uiName Classification code field label
|
|
1478
|
+
*/
|
|
1479
|
+
this.classificationCodeLabel = "KBE code";
|
|
1454
1480
|
/**
|
|
1455
1481
|
* @uiName Taxpayer ID field label
|
|
1456
1482
|
*/
|
|
@@ -2846,291 +2872,6 @@ const IndirectTaxFormView = (props) => {
|
|
|
2846
2872
|
index.h("sl-button", { class: classes.SecondaryButton, type: "text", disabled: states.disabled, onClick: callbacks.onBack, exportparts: "base: secondarybutton-base" }, text.backButton))))));
|
|
2847
2873
|
};
|
|
2848
2874
|
|
|
2849
|
-
const CONNECT_PARTNER = index_module.dist.gql `
|
|
2850
|
-
mutation createImpactConnection($vars: ImpactConnectionInput!) {
|
|
2851
|
-
createImpactConnection(impactConnectionInput: $vars) {
|
|
2852
|
-
success
|
|
2853
|
-
validationErrors {
|
|
2854
|
-
field
|
|
2855
|
-
message
|
|
2856
|
-
}
|
|
2857
|
-
user {
|
|
2858
|
-
id
|
|
2859
|
-
accountId
|
|
2860
|
-
impactConnection {
|
|
2861
|
-
connected
|
|
2862
|
-
publisher {
|
|
2863
|
-
brandedSignup
|
|
2864
|
-
requiredTaxDocumentType
|
|
2865
|
-
currentTaxDocument {
|
|
2866
|
-
type
|
|
2867
|
-
status
|
|
2868
|
-
}
|
|
2869
|
-
}
|
|
2870
|
-
}
|
|
2871
|
-
}
|
|
2872
|
-
}
|
|
2873
|
-
}
|
|
2874
|
-
`;
|
|
2875
|
-
const COMPLETE_PARTNER = index_module.dist.gql `
|
|
2876
|
-
mutation completeImpactConnection($vars: ImpactConnectionInput!) {
|
|
2877
|
-
completeImpactConnection(impactConnectionInput: $vars) {
|
|
2878
|
-
success
|
|
2879
|
-
validationErrors {
|
|
2880
|
-
field
|
|
2881
|
-
message
|
|
2882
|
-
}
|
|
2883
|
-
user {
|
|
2884
|
-
id
|
|
2885
|
-
accountId
|
|
2886
|
-
impactConnection {
|
|
2887
|
-
connected
|
|
2888
|
-
publisher {
|
|
2889
|
-
brandedSignup
|
|
2890
|
-
requiredTaxDocumentType
|
|
2891
|
-
currentTaxDocument {
|
|
2892
|
-
type
|
|
2893
|
-
status
|
|
2894
|
-
}
|
|
2895
|
-
}
|
|
2896
|
-
}
|
|
2897
|
-
}
|
|
2898
|
-
}
|
|
2899
|
-
}
|
|
2900
|
-
`;
|
|
2901
|
-
function getOption(countries, countryCode) {
|
|
2902
|
-
if (!countries)
|
|
2903
|
-
return;
|
|
2904
|
-
if (countries.find((c) => c.countryCode === countryCode)) {
|
|
2905
|
-
return "otherRegion";
|
|
2906
|
-
}
|
|
2907
|
-
else {
|
|
2908
|
-
return "notRegistered";
|
|
2909
|
-
}
|
|
2910
|
-
}
|
|
2911
|
-
function useIndirectTaxForm(props) {
|
|
2912
|
-
var _a, _b, _c, _d, _e;
|
|
2913
|
-
const user = index_module.J();
|
|
2914
|
-
const locale = index_module.L();
|
|
2915
|
-
const formRef = domContextHooks_module.useRef(null);
|
|
2916
|
-
const context = index_module.Fn(data.TAX_FORM_CONTEXT_NAMESPACE);
|
|
2917
|
-
const [step, setStep] = index_module.Pn(data.TAX_CONTEXT_NAMESPACE);
|
|
2918
|
-
const [connectImpactPartner, { loading: connectLoading }] = index_module.$e(CONNECT_PARTNER);
|
|
2919
|
-
const [completeImpactPartner, { loading: completeLoading }] = index_module.$e(COMPLETE_PARTNER);
|
|
2920
|
-
const userForm = index_module.Fn(data.USER_FORM_CONTEXT_NAMESPACE);
|
|
2921
|
-
const { data: userData, refetch, errors: userError, } = index_module.$n(data.USER_QUERY_NAMESPACE);
|
|
2922
|
-
const { data: _countriesRes, loading: countriesLoading } = index_module.$n(data.COUNTRIES_QUERY_NAMESPACE);
|
|
2923
|
-
const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
|
|
2924
|
-
const _countries = domContextHooks_module.useMemo(() => { var _a, _b; return (_b = (_a = _countriesRes === null || _countriesRes === void 0 ? void 0 : _countriesRes.impactPayoutCountries) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.map((country) => utils$1.getCountryObj({ countryCode: country.countryCode, locale: intlLocale })); }, [(_a = _countriesRes === null || _countriesRes === void 0 ? void 0 : _countriesRes.impactPayoutCountries) === null || _a === void 0 ? void 0 : _a.data]);
|
|
2925
|
-
const [loading, setLoading] = domContextHooks_module.useState(false);
|
|
2926
|
-
const [formState, setFormState] = domContextHooks_module.useState({});
|
|
2927
|
-
const [errors, setErrors] = domContextHooks_module.useState({});
|
|
2928
|
-
const [countrySearch, setCountrySearch] = domContextHooks_module.useState("");
|
|
2929
|
-
const [filteredCountries, setFilteredCountries] = domContextHooks_module.useState(_countries || []);
|
|
2930
|
-
const [option, setOption] = domContextHooks_module.useState("notRegistered");
|
|
2931
|
-
const publisher = (_c = (_b = userData === null || userData === void 0 ? void 0 : userData.user) === null || _b === void 0 ? void 0 : _b.impactConnection) === null || _c === void 0 ? void 0 : _c.publisher;
|
|
2932
|
-
domContextHooks_module.useEffect(() => {
|
|
2933
|
-
// reset redirect hash
|
|
2934
|
-
window.location.hash = "";
|
|
2935
|
-
}, []);
|
|
2936
|
-
domContextHooks_module.useEffect(() => {
|
|
2937
|
-
var _a;
|
|
2938
|
-
if (!((_a = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _a === void 0 ? void 0 : _a.indirectTaxCountryCode))
|
|
2939
|
-
return;
|
|
2940
|
-
const _option = getOption(_countries, publisher.taxInformation.indirectTaxCountryCode);
|
|
2941
|
-
setOption(_option);
|
|
2942
|
-
}, [publisher, _countries]);
|
|
2943
|
-
domContextHooks_module.useEffect(() => {
|
|
2944
|
-
if (countrySearch.trim() === "") {
|
|
2945
|
-
setFilteredCountries(_countries || []);
|
|
2946
|
-
}
|
|
2947
|
-
else {
|
|
2948
|
-
setFilteredCountries((_countries === null || _countries === void 0 ? void 0 : _countries.filter((c) => c.displayName.toLowerCase().includes(countrySearch.toLowerCase()))) || []);
|
|
2949
|
-
}
|
|
2950
|
-
}, [countrySearch, _countries]);
|
|
2951
|
-
domContextHooks_module.useEffect(() => {
|
|
2952
|
-
var _a, _b;
|
|
2953
|
-
const user = userData === null || userData === void 0 ? void 0 : userData.user;
|
|
2954
|
-
if (!user)
|
|
2955
|
-
return;
|
|
2956
|
-
if ((_b = (_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) === null || _b === void 0 ? void 0 : _b.taxInformation) {
|
|
2957
|
-
setFormState({
|
|
2958
|
-
province: user.impactConnection.publisher.taxInformation.indirectTaxRegion,
|
|
2959
|
-
subRegion: user.impactConnection.publisher.taxInformation.indirectTaxRegion,
|
|
2960
|
-
hasQst: !!user.impactConnection.publisher.taxInformation.additionalTaxId,
|
|
2961
|
-
qstNumber: user.impactConnection.publisher.taxInformation.additionalTaxId,
|
|
2962
|
-
hasSubRegionTaxNumber: !!user.impactConnection.publisher.taxInformation.withholdingTaxId,
|
|
2963
|
-
subRegionTaxNumber: user.impactConnection.publisher.taxInformation.withholdingTaxId,
|
|
2964
|
-
selectedRegion: user.impactConnection.publisher.taxInformation.indirectTaxCountryCode,
|
|
2965
|
-
indirectTaxNumber: user.impactConnection.publisher.taxInformation.indirectTaxId,
|
|
2966
|
-
});
|
|
2967
|
-
}
|
|
2968
|
-
else {
|
|
2969
|
-
setFormState({
|
|
2970
|
-
selectedRegion: (user === null || user === void 0 ? void 0 : user.countryCode) || (userForm === null || userForm === void 0 ? void 0 : userForm.countryCode),
|
|
2971
|
-
});
|
|
2972
|
-
}
|
|
2973
|
-
}, [userData, userForm]);
|
|
2974
|
-
const onFormChange = (field, e) => {
|
|
2975
|
-
var _a, _b;
|
|
2976
|
-
const value = (_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.__value;
|
|
2977
|
-
if (!value)
|
|
2978
|
-
console.error("Could not detect select change");
|
|
2979
|
-
setFormState((p) => ({ ...p, [field]: value }));
|
|
2980
|
-
};
|
|
2981
|
-
async function connectPartner(formData) {
|
|
2982
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
2983
|
-
const vars = {
|
|
2984
|
-
user: {
|
|
2985
|
-
id: user.id,
|
|
2986
|
-
accountId: user.accountId,
|
|
2987
|
-
},
|
|
2988
|
-
firstName: userForm.firstName,
|
|
2989
|
-
lastName: userForm.lastName,
|
|
2990
|
-
countryCode: userForm.countryCode,
|
|
2991
|
-
currency: userForm.currency,
|
|
2992
|
-
address: userForm.address,
|
|
2993
|
-
city: userForm.city,
|
|
2994
|
-
state: userForm.state,
|
|
2995
|
-
postalCode: userForm.postalCode,
|
|
2996
|
-
phoneNumber: userForm.phoneNumber,
|
|
2997
|
-
phoneNumberCountryCode: userForm.phoneNumberCountryCode,
|
|
2998
|
-
indirectTaxCountryCode: formData.selectedRegion,
|
|
2999
|
-
indirectTaxRegion: formData.province || formData.subRegion,
|
|
3000
|
-
indirectTaxId: formData.indirectTaxNumber,
|
|
3001
|
-
additionalTaxId: formData.qstNumber,
|
|
3002
|
-
withholdingTaxId: formData.subRegionTaxNumber,
|
|
3003
|
-
};
|
|
3004
|
-
// If the partner has already been started call completeImpactConnection
|
|
3005
|
-
// to fill in the remaining details. Otherwise create from scratch.
|
|
3006
|
-
let result = null;
|
|
3007
|
-
let connectionResult;
|
|
3008
|
-
if (((_b = (_a = userData === null || userData === void 0 ? void 0 : userData.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.connectionStatus) === "STARTED") {
|
|
3009
|
-
result = await completeImpactPartner({
|
|
3010
|
-
vars,
|
|
3011
|
-
});
|
|
3012
|
-
connectionResult = (_c = result) === null || _c === void 0 ? void 0 : _c.completeImpactConnection;
|
|
3013
|
-
}
|
|
3014
|
-
else {
|
|
3015
|
-
result = await connectImpactPartner({
|
|
3016
|
-
vars,
|
|
3017
|
-
});
|
|
3018
|
-
connectionResult = (_d = result) === null || _d === void 0 ? void 0 : _d.createImpactConnection;
|
|
3019
|
-
}
|
|
3020
|
-
if (!result || ((_e = result) === null || _e === void 0 ? void 0 : _e.message))
|
|
3021
|
-
throw new Error();
|
|
3022
|
-
if (!(connectionResult === null || connectionResult === void 0 ? void 0 : connectionResult.success)) {
|
|
3023
|
-
// Output backend errors to console for now
|
|
3024
|
-
console.error("Failed to create Impact connection: ", connectionResult === null || connectionResult === void 0 ? void 0 : connectionResult.validationErrors);
|
|
3025
|
-
throw new Error();
|
|
3026
|
-
}
|
|
3027
|
-
await refetch();
|
|
3028
|
-
const resultPublisher = (_g = (_f = connectionResult === null || connectionResult === void 0 ? void 0 : connectionResult.user) === null || _f === void 0 ? void 0 : _f.impactConnection) === null || _g === void 0 ? void 0 : _g.publisher;
|
|
3029
|
-
const hasValidCurrentDocument = utils$1.validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
|
|
3030
|
-
// Fire form change event
|
|
3031
|
-
window.dispatchEvent(new Event(eventKeys.TAX_FORM_UPDATED_EVENT_KEY));
|
|
3032
|
-
return {
|
|
3033
|
-
resultPublisher,
|
|
3034
|
-
hasValidCurrentDocument,
|
|
3035
|
-
};
|
|
3036
|
-
}
|
|
3037
|
-
const onSubmit = async (event) => {
|
|
3038
|
-
if (!option) {
|
|
3039
|
-
setErrors({ taxDetails: true });
|
|
3040
|
-
return;
|
|
3041
|
-
}
|
|
3042
|
-
let formData = { taxOption: option };
|
|
3043
|
-
let validationErrors = {};
|
|
3044
|
-
const controls = event.target.getFormControls();
|
|
3045
|
-
controls.forEach((control) => {
|
|
3046
|
-
if (!control.name || !control.id)
|
|
3047
|
-
return;
|
|
3048
|
-
if (option === "notRegistered")
|
|
3049
|
-
return; // Don't include fields for notRegistered option
|
|
3050
|
-
const key = control.name;
|
|
3051
|
-
const value = control.value;
|
|
3052
|
-
jsonpointer.jsonpointer.set(formData, key, value);
|
|
3053
|
-
if (control.required && !value) {
|
|
3054
|
-
jsonpointer.jsonpointer.set(validationErrors, key, true);
|
|
3055
|
-
}
|
|
3056
|
-
});
|
|
3057
|
-
setErrors(validationErrors);
|
|
3058
|
-
if (Object.keys(validationErrors).length) {
|
|
3059
|
-
return;
|
|
3060
|
-
}
|
|
3061
|
-
setLoading(true);
|
|
3062
|
-
try {
|
|
3063
|
-
const { resultPublisher, hasValidCurrentDocument } = await connectPartner(formData);
|
|
3064
|
-
if ((resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) &&
|
|
3065
|
-
!hasValidCurrentDocument) {
|
|
3066
|
-
// Go to docusign form
|
|
3067
|
-
setStep("/3");
|
|
3068
|
-
}
|
|
3069
|
-
else {
|
|
3070
|
-
if (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.brandedSignup) {
|
|
3071
|
-
// Go to banking information form
|
|
3072
|
-
setStep("/4");
|
|
3073
|
-
}
|
|
3074
|
-
else {
|
|
3075
|
-
// Go right to the dashboard
|
|
3076
|
-
setStep("/dashboard");
|
|
3077
|
-
}
|
|
3078
|
-
}
|
|
3079
|
-
}
|
|
3080
|
-
catch (e) {
|
|
3081
|
-
setErrors({ general: true });
|
|
3082
|
-
}
|
|
3083
|
-
finally {
|
|
3084
|
-
setLoading(false);
|
|
3085
|
-
}
|
|
3086
|
-
};
|
|
3087
|
-
const onBack = () => {
|
|
3088
|
-
setStep(context.overrideBackStep || "/1");
|
|
3089
|
-
};
|
|
3090
|
-
return {
|
|
3091
|
-
states: {
|
|
3092
|
-
step: step === null || step === void 0 ? void 0 : step.replace("/", ""),
|
|
3093
|
-
hideSteps: context.hideSteps,
|
|
3094
|
-
disabled: loading || countriesLoading || connectLoading || completeLoading,
|
|
3095
|
-
loading: loading || connectLoading || countriesLoading || completeLoading,
|
|
3096
|
-
isPartner: !!((_e = (_d = userData === null || userData === void 0 ? void 0 : userData.user) === null || _d === void 0 ? void 0 : _d.impactConnection) === null || _e === void 0 ? void 0 : _e.publisher),
|
|
3097
|
-
loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
|
|
3098
|
-
formState: {
|
|
3099
|
-
checked: option,
|
|
3100
|
-
errors,
|
|
3101
|
-
},
|
|
3102
|
-
},
|
|
3103
|
-
callbacks: {
|
|
3104
|
-
onBack,
|
|
3105
|
-
onSubmit,
|
|
3106
|
-
onFormChange,
|
|
3107
|
-
onChange: setOption,
|
|
3108
|
-
setCountrySearch,
|
|
3109
|
-
onQstToggle: () => setFormState((p) => ({ ...p, hasQst: !p.hasQst })),
|
|
3110
|
-
onSpainToggle: () => setFormState((p) => ({
|
|
3111
|
-
...p,
|
|
3112
|
-
hasSubRegionTaxNumber: !p.hasSubRegionTaxNumber,
|
|
3113
|
-
})),
|
|
3114
|
-
},
|
|
3115
|
-
data: {
|
|
3116
|
-
esRegions: sqmUserInfoFormView.INDIRECT_TAX_SPAIN_REGIONS,
|
|
3117
|
-
countries: filteredCountries,
|
|
3118
|
-
allCountries: _countries,
|
|
3119
|
-
provinces: sqmUserInfoFormView.INDIRECT_TAX_PROVINCES,
|
|
3120
|
-
},
|
|
3121
|
-
text: props.getTextProps(),
|
|
3122
|
-
refs: {
|
|
3123
|
-
formRef,
|
|
3124
|
-
},
|
|
3125
|
-
slotProps: {
|
|
3126
|
-
formState: {
|
|
3127
|
-
...formState,
|
|
3128
|
-
errors,
|
|
3129
|
-
},
|
|
3130
|
-
},
|
|
3131
|
-
};
|
|
3132
|
-
}
|
|
3133
|
-
|
|
3134
2875
|
const IndirectTaxForm = class {
|
|
3135
2876
|
constructor(hostRef) {
|
|
3136
2877
|
index.registerInstance(this, hostRef);
|
|
@@ -3184,7 +2925,7 @@ const IndirectTaxForm = class {
|
|
|
3184
2925
|
/**
|
|
3185
2926
|
* @uiName Indirect tax number field label
|
|
3186
2927
|
*/
|
|
3187
|
-
this.indirectTaxNumber = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}}";
|
|
2928
|
+
this.indirectTaxNumber = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number} other {Tax number}}";
|
|
3188
2929
|
/**
|
|
3189
2930
|
* Displayed to participants registered for QST.
|
|
3190
2931
|
* @uiName QST number field label
|
|
@@ -3223,7 +2964,7 @@ const IndirectTaxForm = class {
|
|
|
3223
2964
|
/**
|
|
3224
2965
|
* @uiName Missing indirect tax number error message
|
|
3225
2966
|
*/
|
|
3226
|
-
this.indirectTaxNumberError = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}} is required";
|
|
2967
|
+
this.indirectTaxNumberError = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number} other {Tax number}} is required";
|
|
3227
2968
|
/**
|
|
3228
2969
|
* Placeholder text displayed in the country search dropdown
|
|
3229
2970
|
* @uiName Country field placeholder text
|
|
@@ -3317,7 +3058,7 @@ const IndirectTaxForm = class {
|
|
|
3317
3058
|
render() {
|
|
3318
3059
|
const props = index_module.isDemo()
|
|
3319
3060
|
? useDemoIndirectTaxForm(this)
|
|
3320
|
-
: useIndirectTaxForm(this);
|
|
3061
|
+
: useIndirectTaxForm.useIndirectTaxForm(this);
|
|
3321
3062
|
const registeredInDifferentCountryDetailsSlot = (index.h(sqmUserInfoFormView.OtherRegionSlotView, { states: {
|
|
3322
3063
|
hide: props.states.formState.checked !== "otherRegion",
|
|
3323
3064
|
disabled: props.states.disabled || props.states.isPartner,
|
|
@@ -3377,7 +3118,7 @@ function useDemoIndirectTaxForm(props) {
|
|
|
3377
3118
|
setCountrySearch: (c) => console.log(c),
|
|
3378
3119
|
},
|
|
3379
3120
|
data: {
|
|
3380
|
-
esRegions:
|
|
3121
|
+
esRegions: utils$1.INDIRECT_TAX_SPAIN_REGIONS,
|
|
3381
3122
|
countries: [
|
|
3382
3123
|
{
|
|
3383
3124
|
countryCode: "CA",
|
|
@@ -3396,7 +3137,7 @@ function useDemoIndirectTaxForm(props) {
|
|
|
3396
3137
|
displayName: "United States",
|
|
3397
3138
|
},
|
|
3398
3139
|
],
|
|
3399
|
-
provinces:
|
|
3140
|
+
provinces: utils$1.INDIRECT_TAX_PROVINCES,
|
|
3400
3141
|
},
|
|
3401
3142
|
text: props.getTextProps(),
|
|
3402
3143
|
refs: {
|
|
@@ -4034,7 +3775,7 @@ const PayoutDetailsCard = class {
|
|
|
4034
3775
|
* Badge text indicating payout status
|
|
4035
3776
|
* @uiName Payout badge status text
|
|
4036
3777
|
*/
|
|
4037
|
-
this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
|
|
3778
|
+
this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} other {Failed}}";
|
|
4038
3779
|
/**
|
|
4039
3780
|
* Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
|
|
4040
3781
|
* @uiName Payout schedule by threshold text
|
|
@@ -4816,12 +4557,12 @@ function getSubRegionName(regionCode) {
|
|
|
4816
4557
|
return "";
|
|
4817
4558
|
// Impact adds an underscore to some regions
|
|
4818
4559
|
const standardCode = regionCode.replace("_", "");
|
|
4819
|
-
const regions = [...
|
|
4560
|
+
const regions = [...utils$1.INDIRECT_TAX_PROVINCES, ...utils$1.INDIRECT_TAX_SPAIN_REGIONS];
|
|
4820
4561
|
return (_a = regions.find((r) => r.regionCode === standardCode)) === null || _a === void 0 ? void 0 : _a.displayName;
|
|
4821
4562
|
}
|
|
4822
4563
|
function getIndirectTaxType(taxInformation) {
|
|
4823
4564
|
var _a;
|
|
4824
|
-
const regions = [...
|
|
4565
|
+
const regions = [...utils$1.INDIRECT_TAX_PROVINCES, ...utils$1.INDIRECT_TAX_SPAIN_REGIONS];
|
|
4825
4566
|
if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.indirectTaxRegion) {
|
|
4826
4567
|
const standardRegion = taxInformation.indirectTaxRegion.replace("_", "");
|
|
4827
4568
|
const taxType = (_a = regions.find((r) => r.regionCode === standardRegion)) === null || _a === void 0 ? void 0 : _a.taxType;
|
|
@@ -4841,7 +4582,7 @@ const useTaxAndCashDashboard = (props) => {
|
|
|
4841
4582
|
const setStep = index_module.En(data.TAX_CONTEXT_NAMESPACE);
|
|
4842
4583
|
const setContext = index_module.En(data.TAX_FORM_CONTEXT_NAMESPACE);
|
|
4843
4584
|
const [showDialog, setShowDialog] = domContextHooks_module.useState(false);
|
|
4844
|
-
const { render, loading: veriffLoading, errors: veriffErrors, } =
|
|
4585
|
+
const { render, loading: veriffLoading, errors: veriffErrors, } = useIndirectTaxForm.useVeriffApp();
|
|
4845
4586
|
const { data: taxSettingRes } = index_module.wn(GET_TAX_SETTING, {});
|
|
4846
4587
|
const locale = index_module.L();
|
|
4847
4588
|
domContextHooks_module.useEffect(() => {
|
|
@@ -4880,13 +4621,13 @@ const useTaxAndCashDashboard = (props) => {
|
|
|
4880
4621
|
});
|
|
4881
4622
|
setStep("/3");
|
|
4882
4623
|
};
|
|
4883
|
-
const provinceName = (_d =
|
|
4884
|
-
const payoutStatus = data$1 ?
|
|
4624
|
+
const provinceName = (_d = utils$1.INDIRECT_TAX_PROVINCES.find((p) => { var _a; return p.regionCode === ((_a = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _a === void 0 ? void 0 : _a.indirectTaxRegion); })) === null || _d === void 0 ? void 0 : _d.displayName;
|
|
4625
|
+
const payoutStatus = data$1 ? useIndirectTaxForm.getStatus(data$1) : null;
|
|
4885
4626
|
domContextHooks_module.useEffect(() => {
|
|
4886
4627
|
const cb = () => refetch();
|
|
4887
|
-
window.addEventListener(
|
|
4628
|
+
window.addEventListener(useIndirectTaxForm.VERIFF_COMPLETE_EVENT_KEY, cb);
|
|
4888
4629
|
return () => {
|
|
4889
|
-
window.removeEventListener(
|
|
4630
|
+
window.removeEventListener(useIndirectTaxForm.VERIFF_COMPLETE_EVENT_KEY, cb);
|
|
4890
4631
|
};
|
|
4891
4632
|
}, []);
|
|
4892
4633
|
const enforceUsTaxComplianceOption = (_e = taxSettingRes === null || taxSettingRes === void 0 ? void 0 : taxSettingRes.tenantSettings) === null || _e === void 0 ? void 0 : _e.enforceUsTaxCompliance;
|
|
@@ -5088,7 +4829,7 @@ const TaxAndCashDashboard = class {
|
|
|
5088
4829
|
/**
|
|
5089
4830
|
* @uiName Payout status badge
|
|
5090
4831
|
*/
|
|
5091
|
-
this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
|
|
4832
|
+
this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} other {Failed} }";
|
|
5092
4833
|
/**
|
|
5093
4834
|
* Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
|
|
5094
4835
|
* @uiName Payout schedule by threshold text
|
|
@@ -5404,8 +5145,8 @@ function useUserInfoForm(props) {
|
|
|
5404
5145
|
const [step, setStep] = index_module.Pn(data.TAX_CONTEXT_NAMESPACE);
|
|
5405
5146
|
const [userFormContext, setUserFormContext] = index_module.Pn(data.USER_FORM_CONTEXT_NAMESPACE);
|
|
5406
5147
|
const user = index_module.J();
|
|
5407
|
-
const [connectImpactPartner, { loading: connectLoading }] = index_module.$e(CONNECT_PARTNER);
|
|
5408
|
-
const [completeImpactPartner, { loading: completeLoading }] = index_module.$e(COMPLETE_PARTNER);
|
|
5148
|
+
const [connectImpactPartner, { loading: connectLoading }] = index_module.$e(useIndirectTaxForm.CONNECT_PARTNER);
|
|
5149
|
+
const [completeImpactPartner, { loading: completeLoading }] = index_module.$e(useIndirectTaxForm.COMPLETE_PARTNER);
|
|
5409
5150
|
const { data: tenantData } = index_module.wn(GET_INDIRECT_TAX_COUNTRY_CODE, {});
|
|
5410
5151
|
const { data: data$1, loading, refetch, errors: userError, } = index_module.$n(data.USER_QUERY_NAMESPACE);
|
|
5411
5152
|
const _currencies = index_module.Fn(data.CURRENCIES_NAMESPACE);
|
|
@@ -5651,7 +5392,7 @@ function useUserInfoForm(props) {
|
|
|
5651
5392
|
}
|
|
5652
5393
|
const hasStates = ["ES", "AU", "US", "CA"].includes(userFormContext.countryCode);
|
|
5653
5394
|
const regionObj = hasStates
|
|
5654
|
-
?
|
|
5395
|
+
? utils$1.ADDRESS_REGIONS[userFormContext === null || userFormContext === void 0 ? void 0 : userFormContext.countryCode]
|
|
5655
5396
|
: {};
|
|
5656
5397
|
return {
|
|
5657
5398
|
setStep: setStep,
|