@saasquatch/mint-components 2.2.0-6 → 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 +20 -13
- 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 +4 -4
- 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 +20 -13
- 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-0f042aa6.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-e516e8ca.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
|
@@ -9,10 +9,10 @@ import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
|
9
9
|
import './useReferralCodes-25f8b792.js';
|
|
10
10
|
import './mixins-f750863a.js';
|
|
11
11
|
import { C as CopyTextView } from './copy-text-view-87259b11.js';
|
|
12
|
-
import './sqm-text-span-view-
|
|
12
|
+
import './sqm-text-span-view-72f43dff.js';
|
|
13
13
|
import { A as AsYouType, u as usePortalRegistrationForm } from './usePortalRegistrationForm-3a1f36a2.js';
|
|
14
14
|
import { R as REGISTRATION_FORM_STATE_CONTEXT, a as useRegistrationForm } from './useRegistrationFormState-aa44cfff.js';
|
|
15
|
-
import { P as PortalRegistrationFormView } from './sqm-portal-registration-form-view-
|
|
15
|
+
import { P as PortalRegistrationFormView } from './sqm-portal-registration-form-view-79265df5.js';
|
|
16
16
|
import { a as useRequestRerender } from './re-render-bf46ba54.js';
|
|
17
17
|
import { u as useChildElements } from './useChildElements-06937df7.js';
|
|
18
18
|
import './luxon-1be92a8e.js';
|
|
@@ -23,13 +23,13 @@ import { u as useInstantAccessRegistration } from './useInstantAccessRegistratio
|
|
|
23
23
|
import { R as RequiredPropsError, L as LEAD_FORM_STATE_CONTEXT, u as useLeadFormState } from './useLeadFormState-332b2796.js';
|
|
24
24
|
import { i as isEmpty } from './utilities-cbd8f2eb.js';
|
|
25
25
|
import { E as ErrorView } from './ErrorView-74cb3af8.js';
|
|
26
|
-
import { u as useDemoBigStat,
|
|
27
|
-
import './sqm-portal-container-view-
|
|
28
|
-
import { g as getCountryObj, L as LoadingView } from './utils-
|
|
29
|
-
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-
|
|
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-e115fa1c.js';
|
|
27
|
+
import './sqm-portal-container-view-200c9df8.js';
|
|
28
|
+
import { g as getCountryObj, L as LoadingView } from './utils-4f5cd04c.js';
|
|
29
|
+
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
30
|
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
31
|
import './eventKeys-f76b6a03.js';
|
|
32
|
-
import { u as usePayoutStatus } from './
|
|
32
|
+
import { u as usePayoutStatus, C as COMPLETE_PARTNER } from './useIndirectTaxForm-b2888ea5.js';
|
|
33
33
|
import { p as parseStates } from './parseStates-ed75e224.js';
|
|
34
34
|
|
|
35
35
|
/**
|
|
@@ -787,7 +787,7 @@ const CheckboxField = class {
|
|
|
787
787
|
*/
|
|
788
788
|
this.checkboxLabelLink = "https://example.com";
|
|
789
789
|
/**
|
|
790
|
-
* @uiName Checkbox label link
|
|
790
|
+
* @uiName Checkbox label link text
|
|
791
791
|
*/
|
|
792
792
|
this.checkboxLabelLinkText = "Terms and Conditions";
|
|
793
793
|
/**
|
|
@@ -4619,6 +4619,11 @@ const SqmReferralIframe = class {
|
|
|
4619
4619
|
* @uiName IFrame width
|
|
4620
4620
|
*/
|
|
4621
4621
|
this.iframeWidth = "100%";
|
|
4622
|
+
/**
|
|
4623
|
+
* Override the default parameter name used in the iframe
|
|
4624
|
+
* @uiName Referral code parameter name
|
|
4625
|
+
*/
|
|
4626
|
+
this.codeParam = "rsCode";
|
|
4622
4627
|
h(this);
|
|
4623
4628
|
}
|
|
4624
4629
|
disconnectedCallback() { }
|
|
@@ -6053,7 +6058,6 @@ function useDemoShareCode(props) {
|
|
|
6053
6058
|
borderRadius: props.borderRadius,
|
|
6054
6059
|
borderColor: props.borderColor,
|
|
6055
6060
|
buttonType: props.buttonType,
|
|
6056
|
-
rewardStatus: "AVAILABLE",
|
|
6057
6061
|
open,
|
|
6058
6062
|
onClick: () => {
|
|
6059
6063
|
// Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
|
|
@@ -6113,6 +6117,199 @@ const ShareLink = class {
|
|
|
6113
6117
|
* @uiGroup Style
|
|
6114
6118
|
*/
|
|
6115
6119
|
this.buttonStyle = "icon";
|
|
6120
|
+
/**
|
|
6121
|
+
* Let advocates customize their share links up to 5 times.
|
|
6122
|
+
*
|
|
6123
|
+
* @uiName Allow customization
|
|
6124
|
+
* @uiType boolean
|
|
6125
|
+
* @uiGroup Customizable Vanity Link
|
|
6126
|
+
* @uiWidget CustomLinkSwitch
|
|
6127
|
+
* @requiredFlavor impact
|
|
6128
|
+
*/
|
|
6129
|
+
this.allowCustomization = false;
|
|
6130
|
+
/**
|
|
6131
|
+
* Text for the cancel button in editing mode
|
|
6132
|
+
*
|
|
6133
|
+
* @uiName Cancel button label
|
|
6134
|
+
* @uiType string
|
|
6135
|
+
* @uiGroup Customizable Vanity Link
|
|
6136
|
+
* @requiredFlavor impact
|
|
6137
|
+
*/
|
|
6138
|
+
this.cancelLabelText = "Cancel";
|
|
6139
|
+
/**
|
|
6140
|
+
* Tooltip text shown when link customization is disabled
|
|
6141
|
+
*
|
|
6142
|
+
* @uiName Customize disabled tooltip
|
|
6143
|
+
* @uiType string
|
|
6144
|
+
* @uiGroup Customizable Vanity Link
|
|
6145
|
+
* @requiredFlavor impact
|
|
6146
|
+
*/
|
|
6147
|
+
this.customizeDisabledTooltip = "Link customization is not available.";
|
|
6148
|
+
/**
|
|
6149
|
+
* Displayed below the share link.
|
|
6150
|
+
*
|
|
6151
|
+
* @uiName Customize link button label
|
|
6152
|
+
* @uiType string
|
|
6153
|
+
* @uiGroup Customizable Vanity Link
|
|
6154
|
+
* @requiredFlavor impact
|
|
6155
|
+
*/
|
|
6156
|
+
this.customizeLinkButtonLabel = "Customize Link";
|
|
6157
|
+
/**
|
|
6158
|
+
* Message shown when the URL has been edited 5 times. To display a clickable link, use {supportLink} as a placeholder.
|
|
6159
|
+
*
|
|
6160
|
+
* @uiName Edit limit reached text
|
|
6161
|
+
* @uiType string
|
|
6162
|
+
* @uiWidget textarea
|
|
6163
|
+
* @uiGroup Customizable Vanity Link
|
|
6164
|
+
* @requiredFlavor impact
|
|
6165
|
+
*/
|
|
6166
|
+
this.editLimitReachedText = "5 edit limit reached. To make more changes, please contact {supportLink}.";
|
|
6167
|
+
/**
|
|
6168
|
+
* Subtext shown while the user is customizing their URL.
|
|
6169
|
+
*
|
|
6170
|
+
* @uiName Edit limit text
|
|
6171
|
+
* @uiType string
|
|
6172
|
+
* @uiGroup Customizable Vanity Link
|
|
6173
|
+
* @requiredFlavor impact
|
|
6174
|
+
*/
|
|
6175
|
+
this.editLimitText = "You can edit your link up to {editsRemaining} more time(s).";
|
|
6176
|
+
/**
|
|
6177
|
+
* Description text shown when the link contains invalid special characters.
|
|
6178
|
+
*
|
|
6179
|
+
* @uiName Invalid characters error description
|
|
6180
|
+
* @uiType string
|
|
6181
|
+
* @uiWidget textarea
|
|
6182
|
+
* @uiGroup Customizable Vanity Link
|
|
6183
|
+
* @requiredFlavor impact
|
|
6184
|
+
*/
|
|
6185
|
+
this.invalidCharactersErrorDescription = "Special characters can break the link when sharing.";
|
|
6186
|
+
/**
|
|
6187
|
+
* Title of the error message shown when the link contains invalid special characters.
|
|
6188
|
+
*
|
|
6189
|
+
* @uiName Invalid characters error title
|
|
6190
|
+
* @uiType string
|
|
6191
|
+
* @uiGroup Customizable Vanity Link
|
|
6192
|
+
* @requiredFlavor impact
|
|
6193
|
+
*/
|
|
6194
|
+
this.invalidCharactersErrorTitle = "Please use only letters, numbers, dashes and underscores";
|
|
6195
|
+
/**
|
|
6196
|
+
* Description text shown when the link has already been taken
|
|
6197
|
+
*
|
|
6198
|
+
* @uiName Link taken error message
|
|
6199
|
+
* @uiType string
|
|
6200
|
+
* @uiWidget textarea
|
|
6201
|
+
* @uiGroup Customizable Vanity Link
|
|
6202
|
+
* @requiredFlavor impact
|
|
6203
|
+
*/
|
|
6204
|
+
this.linkTakenErrorDescription = "Try adding numbers, a dash or underscore to create a unique link.";
|
|
6205
|
+
/**
|
|
6206
|
+
* Title of the error message shown when the link has already been taken
|
|
6207
|
+
*
|
|
6208
|
+
* @uiName Link taken error title
|
|
6209
|
+
* @uiType string
|
|
6210
|
+
* @uiGroup Customizable Vanity Link
|
|
6211
|
+
* @requiredFlavor impact
|
|
6212
|
+
*/
|
|
6213
|
+
this.linkTakenErrorTitle = "This link is already taken";
|
|
6214
|
+
/**
|
|
6215
|
+
* Description text shown when the link contains profanity or brand names.
|
|
6216
|
+
*
|
|
6217
|
+
* @uiName Restricted words error description
|
|
6218
|
+
* @uiType string
|
|
6219
|
+
* @uiWidget textarea
|
|
6220
|
+
* @uiGroup Customizable Vanity Link
|
|
6221
|
+
* @requiredFlavor impact
|
|
6222
|
+
*/
|
|
6223
|
+
this.restrictedWordsErrorDescription = "This link contains a restricted word.";
|
|
6224
|
+
/**
|
|
6225
|
+
* Title of the error message shown when the link contains profanity or brand names.
|
|
6226
|
+
*
|
|
6227
|
+
* @uiName Restricted words error title
|
|
6228
|
+
* @uiType string
|
|
6229
|
+
* @uiGroup Customizable Vanity Link
|
|
6230
|
+
* @requiredFlavor impact
|
|
6231
|
+
*/
|
|
6232
|
+
this.restrictedWordsErrorTitle = "Please try a different link";
|
|
6233
|
+
/**
|
|
6234
|
+
* Text for the save button in editing mode
|
|
6235
|
+
*
|
|
6236
|
+
* @uiName Save button label
|
|
6237
|
+
* @uiType string
|
|
6238
|
+
* @uiGroup Customizable Vanity Link
|
|
6239
|
+
* @requiredFlavor impact
|
|
6240
|
+
*/
|
|
6241
|
+
this.saveLabelText = "Save";
|
|
6242
|
+
/**
|
|
6243
|
+
* Text for the save button while saving is in progress
|
|
6244
|
+
*
|
|
6245
|
+
* @uiName Saving button label
|
|
6246
|
+
* @uiType string
|
|
6247
|
+
* @uiGroup Customizable Vanity Link
|
|
6248
|
+
* @requiredFlavor impact
|
|
6249
|
+
*/
|
|
6250
|
+
this.savingLabelText = "Saving...";
|
|
6251
|
+
/**
|
|
6252
|
+
* Label shown above the link input while editing
|
|
6253
|
+
*
|
|
6254
|
+
* @uiName Edit input label
|
|
6255
|
+
* @uiType string
|
|
6256
|
+
* @uiGroup Customizable Vanity Link
|
|
6257
|
+
* @requiredFlavor impact
|
|
6258
|
+
*/
|
|
6259
|
+
this.editLabelText = "Enter your link";
|
|
6260
|
+
/**
|
|
6261
|
+
* Text shown when nearing the character limit. Use {charactersRemaining} as a placeholder for the count.
|
|
6262
|
+
*
|
|
6263
|
+
* @uiName Characters remaining text
|
|
6264
|
+
* @uiType string
|
|
6265
|
+
* @uiGroup Customizable Vanity Link
|
|
6266
|
+
* @requiredFlavor impact
|
|
6267
|
+
*/
|
|
6268
|
+
this.charactersRemainingText = "Characters remaining: {charactersRemaining}";
|
|
6269
|
+
/**
|
|
6270
|
+
* Text shown while the link is being validated
|
|
6271
|
+
*
|
|
6272
|
+
* @uiName Validating label
|
|
6273
|
+
* @uiType string
|
|
6274
|
+
* @uiGroup Customizable Vanity Link
|
|
6275
|
+
* @requiredFlavor impact
|
|
6276
|
+
*/
|
|
6277
|
+
this.validatingLabelText = "Validating...";
|
|
6278
|
+
/**
|
|
6279
|
+
* @uiName Min characters text
|
|
6280
|
+
* @uiType string
|
|
6281
|
+
* @uiGroup Customizable Vanity Link
|
|
6282
|
+
* @requiredFlavor impact
|
|
6283
|
+
*/
|
|
6284
|
+
this.minCharactersText = "Minimum 3 characters.";
|
|
6285
|
+
/**
|
|
6286
|
+
* Display text for the support link in the edit limit reached message
|
|
6287
|
+
*
|
|
6288
|
+
* @uiName Support link text
|
|
6289
|
+
* @uiType string
|
|
6290
|
+
* @uiGroup Customizable Vanity Link
|
|
6291
|
+
* @requiredFlavor impact
|
|
6292
|
+
*/
|
|
6293
|
+
this.supportLinkText = "Support";
|
|
6294
|
+
/**
|
|
6295
|
+
* Title shown when saving fails with an unknown error
|
|
6296
|
+
*
|
|
6297
|
+
* @uiName Save error title
|
|
6298
|
+
* @uiType string
|
|
6299
|
+
* @uiGroup Customizable Vanity Link
|
|
6300
|
+
* @requiredFlavor impact
|
|
6301
|
+
*/
|
|
6302
|
+
this.saveErrorTitle = "Error";
|
|
6303
|
+
/**
|
|
6304
|
+
* Description shown when saving fails with an unknown error
|
|
6305
|
+
*
|
|
6306
|
+
* @uiName Save error description
|
|
6307
|
+
* @uiType string
|
|
6308
|
+
* @uiWidget textarea
|
|
6309
|
+
* @uiGroup Customizable Vanity Link
|
|
6310
|
+
* @requiredFlavor impact
|
|
6311
|
+
*/
|
|
6312
|
+
this.saveErrorDescription = "Failed to save custom link. Please try again.";
|
|
6116
6313
|
h(this);
|
|
6117
6314
|
}
|
|
6118
6315
|
disconnectedCallback() { }
|
|
@@ -6121,33 +6318,79 @@ const ShareLink = class {
|
|
|
6121
6318
|
const props = isDemo()
|
|
6122
6319
|
? useDemoShareLink(thisProps)
|
|
6123
6320
|
: useShareLink(thisProps);
|
|
6124
|
-
return h$1(
|
|
6321
|
+
return h$1(ShareLinkView, Object.assign({}, props));
|
|
6125
6322
|
}
|
|
6126
6323
|
};
|
|
6127
6324
|
function useDemoShareLink(props) {
|
|
6325
|
+
var _a;
|
|
6128
6326
|
const [open, setOpen] = useState(false);
|
|
6327
|
+
const [isEditing, setIsEditing] = useState(false);
|
|
6328
|
+
const [editValue, setEditValue] = useState("");
|
|
6129
6329
|
const copyString = "https://www.example.com/sharelink/abc";
|
|
6130
|
-
|
|
6131
|
-
|
|
6132
|
-
|
|
6133
|
-
|
|
6134
|
-
|
|
6135
|
-
|
|
6136
|
-
|
|
6137
|
-
|
|
6138
|
-
|
|
6139
|
-
|
|
6140
|
-
|
|
6141
|
-
|
|
6142
|
-
|
|
6143
|
-
|
|
6144
|
-
|
|
6145
|
-
|
|
6146
|
-
|
|
6147
|
-
|
|
6148
|
-
|
|
6330
|
+
const domainPrefix = "https://www.example.com/";
|
|
6331
|
+
const baseProps = {
|
|
6332
|
+
copyTextViewProps: {
|
|
6333
|
+
copyString,
|
|
6334
|
+
tooltiptext: props.tooltiptext,
|
|
6335
|
+
textAlign: props.textAlign,
|
|
6336
|
+
buttonStyle: props.buttonStyle,
|
|
6337
|
+
backgroundColor: props.backgroundColor,
|
|
6338
|
+
textColor: props.textColor,
|
|
6339
|
+
borderRadius: props.borderRadius,
|
|
6340
|
+
buttonType: props.buttonType,
|
|
6341
|
+
copyButtonLabel: props.copyButtonLabel,
|
|
6342
|
+
borderColor: props.borderColor,
|
|
6343
|
+
open,
|
|
6344
|
+
onClick: () => {
|
|
6345
|
+
navigator.clipboard.writeText(copyString);
|
|
6346
|
+
setOpen(true);
|
|
6347
|
+
setTimeout(() => setOpen(false), props.tooltiplifespan);
|
|
6348
|
+
},
|
|
6149
6349
|
},
|
|
6150
|
-
|
|
6350
|
+
allowCustomization: props.allowCustomization,
|
|
6351
|
+
customizeLinkLabel: props.customizeLinkButtonLabel,
|
|
6352
|
+
saveLabelText: props.saveLabelText,
|
|
6353
|
+
savingLabelText: props.savingLabelText,
|
|
6354
|
+
cancelLabelText: props.cancelLabelText,
|
|
6355
|
+
editLabelText: props.editLabelText,
|
|
6356
|
+
charactersRemainingText: props.charactersRemainingText,
|
|
6357
|
+
validatingLabelText: props.validatingLabelText,
|
|
6358
|
+
isEditing,
|
|
6359
|
+
editValue,
|
|
6360
|
+
domainPrefix,
|
|
6361
|
+
editsRemaining: 5,
|
|
6362
|
+
maxEdits: 5,
|
|
6363
|
+
limitReached: false,
|
|
6364
|
+
validationError: null,
|
|
6365
|
+
isValidating: false,
|
|
6366
|
+
isSaving: false,
|
|
6367
|
+
characterLimit: 15,
|
|
6368
|
+
minCharacters: 3,
|
|
6369
|
+
charactersRemaining: 15 - editValue.length,
|
|
6370
|
+
editLimitText: props.editLimitText,
|
|
6371
|
+
editLimitReachedText: props.editLimitReachedText,
|
|
6372
|
+
supportLinkText: props.supportLinkText,
|
|
6373
|
+
minCharactersText: props.minCharactersText,
|
|
6374
|
+
customizeDisabled: false,
|
|
6375
|
+
customizeDisabledTooltip: (_a = props.customizeDisabledTooltip) !== null && _a !== void 0 ? _a : "Link customization is not available.",
|
|
6376
|
+
onCustomizeClick: () => {
|
|
6377
|
+
setIsEditing(true);
|
|
6378
|
+
setEditValue("");
|
|
6379
|
+
},
|
|
6380
|
+
onEditValueChange: (value) => {
|
|
6381
|
+
setEditValue(value);
|
|
6382
|
+
},
|
|
6383
|
+
onSave: () => {
|
|
6384
|
+
setIsEditing(false);
|
|
6385
|
+
},
|
|
6386
|
+
onCancel: () => {
|
|
6387
|
+
setIsEditing(false);
|
|
6388
|
+
setEditValue("");
|
|
6389
|
+
},
|
|
6390
|
+
};
|
|
6391
|
+
return cjs(baseProps, props.demoData || {}, {
|
|
6392
|
+
arrayMerge: (_, a) => a,
|
|
6393
|
+
});
|
|
6151
6394
|
}
|
|
6152
6395
|
|
|
6153
6396
|
const StatContainer = class {
|
|
@@ -6414,8 +6657,14 @@ function getCurrentStep(user) {
|
|
|
6414
6657
|
if (!((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.connected) || !((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher)) {
|
|
6415
6658
|
return "/1";
|
|
6416
6659
|
}
|
|
6417
|
-
const { requiredTaxDocumentType, currentTaxDocument, withdrawalSettings, brandedSignup, payoutsAccount, } = user.impactConnection.publisher;
|
|
6418
|
-
|
|
6660
|
+
const { requiredTaxDocumentType, currentTaxDocument, withdrawalSettings, brandedSignup, payoutsAccount, billingAddress, billingCity, billingCountryCode, billingPostalCode, billingState, phoneNumber, phoneNumberCountryCode, } = user.impactConnection.publisher;
|
|
6661
|
+
const hasBillingInfo = billingAddress &&
|
|
6662
|
+
billingCity &&
|
|
6663
|
+
billingCountryCode &&
|
|
6664
|
+
billingPostalCode &&
|
|
6665
|
+
phoneNumberCountryCode &&
|
|
6666
|
+
phoneNumber;
|
|
6667
|
+
if (!hasBillingInfo) {
|
|
6419
6668
|
return "/1";
|
|
6420
6669
|
}
|
|
6421
6670
|
// If they do have a required document, look at current document
|
|
@@ -6435,6 +6684,7 @@ function useTaxAndCash() {
|
|
|
6435
6684
|
const host = _$1();
|
|
6436
6685
|
const user = J();
|
|
6437
6686
|
const locale = L();
|
|
6687
|
+
const [completeImpactPartner, { loading: completeLoading }] = $e(COMPLETE_PARTNER);
|
|
6438
6688
|
// State for current step of form
|
|
6439
6689
|
const [step, setStep] = In({
|
|
6440
6690
|
namespace: TAX_CONTEXT_NAMESPACE,
|
|
@@ -6542,16 +6792,54 @@ function useTaxAndCash() {
|
|
|
6542
6792
|
setCurrenciesContext(supportedCurrencies);
|
|
6543
6793
|
}, [supportedCurrencies]);
|
|
6544
6794
|
useEffect(() => {
|
|
6795
|
+
var _a;
|
|
6545
6796
|
if (errors) {
|
|
6546
6797
|
setStep("/error");
|
|
6547
6798
|
return;
|
|
6548
6799
|
}
|
|
6549
6800
|
if (!host || !user)
|
|
6550
6801
|
return;
|
|
6802
|
+
async function completeConnection(user) {
|
|
6803
|
+
var _a, _b, _c, _d, _e, _f;
|
|
6804
|
+
const publisher = (_a = user === null || user === void 0 ? void 0 : user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher;
|
|
6805
|
+
const hasBillingInfo = publisher.billingAddress &&
|
|
6806
|
+
publisher.billingCity &&
|
|
6807
|
+
publisher.billingCountryCode &&
|
|
6808
|
+
publisher.billingPostalCode &&
|
|
6809
|
+
publisher.phoneNumberCountryCode &&
|
|
6810
|
+
publisher.phoneNumber;
|
|
6811
|
+
if (hasBillingInfo &&
|
|
6812
|
+
((_b = user === null || user === void 0 ? void 0 : user.impactConnection) === null || _b === void 0 ? void 0 : _b.connectionStatus) === "STARTED") {
|
|
6813
|
+
const vars = {
|
|
6814
|
+
user: {
|
|
6815
|
+
id: (_c = data === null || data === void 0 ? void 0 : data.user) === null || _c === void 0 ? void 0 : _c.id,
|
|
6816
|
+
accountId: (_d = data === null || data === void 0 ? void 0 : data.user) === null || _d === void 0 ? void 0 : _d.accountId,
|
|
6817
|
+
},
|
|
6818
|
+
firstName: (_e = data === null || data === void 0 ? void 0 : data.user) === null || _e === void 0 ? void 0 : _e.firstName,
|
|
6819
|
+
lastName: (_f = data === null || data === void 0 ? void 0 : data.user) === null || _f === void 0 ? void 0 : _f.lastName,
|
|
6820
|
+
countryCode: publisher.billingCountryCode,
|
|
6821
|
+
currency: publisher.currency,
|
|
6822
|
+
address: publisher.billingAddress,
|
|
6823
|
+
city: publisher.billingCity,
|
|
6824
|
+
state: publisher.billingState,
|
|
6825
|
+
postalCode: publisher.billingPostalCode,
|
|
6826
|
+
phoneNumber: publisher.phoneNumber,
|
|
6827
|
+
phoneNumberCountryCode: publisher.phoneNumberCountryCode,
|
|
6828
|
+
};
|
|
6829
|
+
await completeImpactPartner({
|
|
6830
|
+
vars,
|
|
6831
|
+
});
|
|
6832
|
+
}
|
|
6833
|
+
}
|
|
6551
6834
|
if (data) {
|
|
6552
6835
|
const user = data === null || data === void 0 ? void 0 : data.user;
|
|
6553
6836
|
if (!user || step !== "/loading")
|
|
6554
6837
|
return;
|
|
6838
|
+
if (((_a = user === null || user === void 0 ? void 0 : user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) &&
|
|
6839
|
+
(user === null || user === void 0 ? void 0 : user.impactConnection.connectionStatus) === "STARTED") {
|
|
6840
|
+
completeConnection(user);
|
|
6841
|
+
refetch();
|
|
6842
|
+
}
|
|
6555
6843
|
const currentStep = getCurrentStep(user);
|
|
6556
6844
|
setStep(currentStep);
|
|
6557
6845
|
}
|
|
@@ -6733,7 +7021,7 @@ const TaxAndCashMonolith = class {
|
|
|
6733
7021
|
* @uiName Indirect tax number field label
|
|
6734
7022
|
* @uiGroup Step 2 Properties
|
|
6735
7023
|
*/
|
|
6736
|
-
this.step2_indirectTaxNumber = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}}";
|
|
7024
|
+
this.step2_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}}";
|
|
6737
7025
|
/**
|
|
6738
7026
|
* @uiName Province field label
|
|
6739
7027
|
* @uiGroup Step 2 Properties
|
|
@@ -6743,7 +7031,7 @@ const TaxAndCashMonolith = class {
|
|
|
6743
7031
|
* @uiName Missing indirect tax number error message
|
|
6744
7032
|
* @uiGroup Step 2 Properties
|
|
6745
7033
|
*/
|
|
6746
|
-
this.step2_indirectTaxNumberError = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}} is required";
|
|
7034
|
+
this.step2_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";
|
|
6747
7035
|
/**
|
|
6748
7036
|
* Displayed to participants registered for QST.
|
|
6749
7037
|
* @uiName QST number field label
|
|
@@ -7056,12 +7344,22 @@ const TaxAndCashMonolith = class {
|
|
|
7056
7344
|
* @uiGroup Step 4 Properties
|
|
7057
7345
|
*/
|
|
7058
7346
|
this.step4_branchCodeLabel = "Branch code";
|
|
7347
|
+
/**
|
|
7348
|
+
* @uiName Branch name field label
|
|
7349
|
+
* @uiGroup Step 4 Properties
|
|
7350
|
+
*/
|
|
7351
|
+
this.step4_branchNameLabel = "Branch name";
|
|
7059
7352
|
/**
|
|
7060
7353
|
* Label text for the classification input field
|
|
7061
7354
|
* @uiName Classification field label
|
|
7062
7355
|
* @uiGroup Step 4 Properties
|
|
7063
7356
|
*/
|
|
7064
7357
|
this.step4_classificationLabel = "Classification";
|
|
7358
|
+
/**
|
|
7359
|
+
* @uiName Classification code field label
|
|
7360
|
+
* @uiGroup Step 4 Properties
|
|
7361
|
+
*/
|
|
7362
|
+
this.step4_classificationCodeLabel = "KBE code";
|
|
7065
7363
|
/**
|
|
7066
7364
|
* @uiName Taxpayer ID field label
|
|
7067
7365
|
* @uiGroup Step 4 Properties
|
|
@@ -7311,7 +7609,7 @@ const TaxAndCashMonolith = class {
|
|
|
7311
7609
|
* @uiName Payout status badge
|
|
7312
7610
|
* @uiGroup Dashboard Properties
|
|
7313
7611
|
*/
|
|
7314
|
-
this.dashboard_statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
|
|
7612
|
+
this.dashboard_statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} other {Failed} }";
|
|
7315
7613
|
/**
|
|
7316
7614
|
* Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
|
|
7317
7615
|
* @uiName Payout schedule by threshold text
|
|
@@ -6,7 +6,7 @@ import { c as cjs } from './cjs-bdfb4486.js';
|
|
|
6
6
|
import { g as getProps } from './utils-334c1e34.js';
|
|
7
7
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
8
8
|
import { E as ErrorStyles } from './mixins-f750863a.js';
|
|
9
|
-
import { T as TextSpanView } from './sqm-text-span-view-
|
|
9
|
+
import { T as TextSpanView } from './sqm-text-span-view-72f43dff.js';
|
|
10
10
|
import { a as VERIFICATION_EMAIL_NAMESPACE, S as SHOW_CODE_NAMESPACE, V as VERIFICATION_PARENT_NAMESPACE } from './keys-1054056a.js';
|
|
11
11
|
import { u as useVerificationEmail } from './useVerificationEmail-9f2c0bab.js';
|
|
12
12
|
|
|
@@ -5,9 +5,9 @@ import { d as dist, q as Pn, w as wn, J, $ as $e, i as isDemo, p as En, L } from
|
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import { g as getProps } from './utils-334c1e34.js';
|
|
7
7
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
8
|
-
import { T as TextSpanView } from './sqm-text-span-view-
|
|
9
|
-
import { g as GET_FINANCE_NETWORK_SETTINGS } from './data-
|
|
10
|
-
import { a as PartnerInfoModalContentView, P as PartnerInfoModalView } from './sqm-partner-info-modal-view-
|
|
8
|
+
import { T as TextSpanView } from './sqm-text-span-view-72f43dff.js';
|
|
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-d6f3a215.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';
|
|
@@ -520,7 +520,7 @@ const START_IMPACT_CONNECTION = dist.gql `
|
|
|
520
520
|
}
|
|
521
521
|
`;
|
|
522
522
|
function usePartnerInfoModal(props) {
|
|
523
|
-
var _a, _b, _c, _d, _e, _f;
|
|
523
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
524
524
|
const locale = L();
|
|
525
525
|
const setPartnerCreated = En(PARTNER_CREATED_NAMESPACE);
|
|
526
526
|
const { data: userData, loading: userLoading, refetch, } = wn(GET_USER_PARTNER_INFO, {});
|
|
@@ -528,8 +528,7 @@ function usePartnerInfoModal(props) {
|
|
|
528
528
|
const { data: currenciesData, loading: currenciesLoading } = wn(GET_CURRENCIES, { variables: { locale } });
|
|
529
529
|
const { data: countriesData, loading: countriesLoading } = wn(GET_COUNTRIES, {});
|
|
530
530
|
// No pre-filled country, use locale to determine countryCode instead
|
|
531
|
-
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) ||
|
|
532
|
-
locale.replace(/^.*_/, ""));
|
|
531
|
+
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) || locale.replace(/^.*_/, ""));
|
|
533
532
|
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) || "");
|
|
534
533
|
const { data: financeNetworkData } = wn(GET_FINANCE_NETWORK_SETTINGS, {
|
|
535
534
|
variables: { filter: countryCode ? { countryCode_eq: countryCode } : {} },
|
|
@@ -537,10 +536,17 @@ function usePartnerInfoModal(props) {
|
|
|
537
536
|
const [startImpactConnection, { loading: connectLoading }] = $e(START_IMPACT_CONNECTION);
|
|
538
537
|
const [allowBankingCollection, setAllowBankingCollection] = useState(false);
|
|
539
538
|
const countries = ((_e = countriesData === null || countriesData === void 0 ? void 0 : countriesData.impactPayoutCountries) === null || _e === void 0 ? void 0 : _e.data) || [];
|
|
539
|
+
const isExistingPartner = !!((_f = user === null || user === void 0 ? void 0 : user.impactConnection) === null || _f === void 0 ? void 0 : _f.publisher);
|
|
540
540
|
const _currencies = useMemo(() => {
|
|
541
|
-
var _a, _b;
|
|
542
|
-
|
|
541
|
+
var _a, _b, _c;
|
|
542
|
+
// if isExistingPartner, grab all currencies since select is disabled anyways
|
|
543
|
+
if (isExistingPartner) {
|
|
544
|
+
return ((_a = currenciesData === null || currenciesData === void 0 ? void 0 : currenciesData.currencies) === null || _a === void 0 ? void 0 : _a.data) || [];
|
|
545
|
+
}
|
|
546
|
+
const allValidCurrencies = (_c = (_b = financeNetworkData === null || financeNetworkData === void 0 ? void 0 : financeNetworkData.impactFinanceNetworkSettings) === null || _b === void 0 ? void 0 : _b.data) === null || _c === void 0 ? void 0 : _c.reduce((agg, settings) => {
|
|
543
547
|
var _a, _b;
|
|
548
|
+
if (countryCode && settings.countryCode !== countryCode)
|
|
549
|
+
return agg;
|
|
544
550
|
const c = (_b = (_a = currenciesData === null || currenciesData === void 0 ? void 0 : currenciesData.currencies) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.find((cur) => cur.currencyCode === settings.currency);
|
|
545
551
|
if (!c)
|
|
546
552
|
return agg;
|
|
@@ -549,11 +555,11 @@ function usePartnerInfoModal(props) {
|
|
|
549
555
|
return [...agg, c];
|
|
550
556
|
}, []);
|
|
551
557
|
return allValidCurrencies || [];
|
|
552
|
-
}, [financeNetworkData, currenciesData]);
|
|
558
|
+
}, [financeNetworkData, currenciesData, countryCode, isExistingPartner]);
|
|
553
559
|
const currencies = useMemo(() => [..._currencies].sort((a, b) => a.displayName.localeCompare(b.displayName)), [_currencies]);
|
|
554
560
|
const [countrySearch, setCountrySearch] = useState("");
|
|
555
561
|
const [currencySearch, setCurrencySearch] = useState("");
|
|
556
|
-
const [filteredCountries, setFilteredCountries] = useState(((
|
|
562
|
+
const [filteredCountries, setFilteredCountries] = useState(((_g = countriesData === null || countriesData === void 0 ? void 0 : countriesData.impactPayoutCountries) === null || _g === void 0 ? void 0 : _g.data) || []);
|
|
557
563
|
const [filteredCurrencies, setFilteredCurrencies] = useState(currencies || []);
|
|
558
564
|
const [error, setError] = useState("");
|
|
559
565
|
const [success, setSuccess] = useState(false);
|
|
@@ -656,6 +662,7 @@ function usePartnerInfoModal(props) {
|
|
|
656
662
|
setError(props.networkErrorText);
|
|
657
663
|
}
|
|
658
664
|
}
|
|
665
|
+
console.log(impactConnection, "impactConnection in partner modal");
|
|
659
666
|
const showModal = !success &&
|
|
660
667
|
!userLoading &&
|
|
661
668
|
(impactConnection === null || impactConnection === void 0 ? void 0 : impactConnection.connectionStatus) === "NOT_STARTED";
|
|
@@ -664,7 +671,7 @@ function usePartnerInfoModal(props) {
|
|
|
664
671
|
open: showModal,
|
|
665
672
|
loading: userLoading || countriesLoading || currenciesLoading,
|
|
666
673
|
submitting: connectLoading,
|
|
667
|
-
isExistingPartner
|
|
674
|
+
isExistingPartner,
|
|
668
675
|
countryCode,
|
|
669
676
|
currency,
|
|
670
677
|
error,
|
|
@@ -780,7 +787,7 @@ const PartnerInfoModal = class {
|
|
|
780
787
|
* @uiName Missing fields error text
|
|
781
788
|
* @uiWidget textArea
|
|
782
789
|
*/
|
|
783
|
-
this.missingFieldsErrorText = "Please
|
|
790
|
+
this.missingFieldsErrorText = "Please fill out all fields.";
|
|
784
791
|
/**
|
|
785
792
|
* Used to render in another modal.
|
|
786
793
|
* @undocumented
|
|
@@ -792,7 +799,7 @@ const PartnerInfoModal = class {
|
|
|
792
799
|
* @componentState { "title": "New partner", "props": { "states": { "open": true, "isExistingPartner": false } } }
|
|
793
800
|
* @componentState { "title": "Existing partner", "props": { "states": { "open": true, "isExistingPartner": true, "countryCode": "US", "currency": "USD" } } }
|
|
794
801
|
*/
|
|
795
|
-
this.stateController = "{}
|
|
802
|
+
this.stateController = '{"sqm-partner-info-modal":{"states":{"open":false}}}';
|
|
796
803
|
h$1(this);
|
|
797
804
|
}
|
|
798
805
|
disconnectedCallback() { }
|
|
@@ -5,7 +5,7 @@ import './index.module-02cb914c.js';
|
|
|
5
5
|
import { g as getProps } from './utils-334c1e34.js';
|
|
6
6
|
import './JSS-67b5cff8.js';
|
|
7
7
|
import { o as optimizeCloudinaryUrl } from './imageUrl-4775f17b.js';
|
|
8
|
-
import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-container-view-
|
|
8
|
+
import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-container-view-200c9df8.js';
|
|
9
9
|
|
|
10
10
|
function EmptyStateView(props) {
|
|
11
11
|
const { emptyStateHeader, emptyStateImage, emptyStateText, supportText, missingFeature = "", } = props;
|
package/dist/esm/{sqm-partner-info-modal-view-5709904e.js → sqm-partner-info-modal-view-d6f3a215.js}
RENAMED
|
@@ -101,7 +101,7 @@ function PartnerInfoModalContentView(props) {
|
|
|
101
101
|
callbacks.setCountrySearch((_a = e.target) === null || _a === void 0 ? void 0 : _a.value);
|
|
102
102
|
} }),
|
|
103
103
|
h("div", { class: sheet.classes.SelectMenu }, (_a = states.filteredCountries) === null || _a === void 0 ? void 0 : _a.map((c) => (h("sl-menu-item", { value: c.countryCode }, c.displayName))))),
|
|
104
|
-
h("sl-select", { exportparts: "label: input-label, base: input-base", label: text.currencyLabel, value: states.currency, disabled: states.submitting || !!states.currency, required: true, hoist: true, "onSl-select": callbacks.onCurrencyChange },
|
|
104
|
+
h("sl-select", { exportparts: "label: input-label, base: input-base", label: text.currencyLabel, value: states.currency, disabled: states.submitting || (!!states.currency && states.isExistingPartner), required: true, hoist: true, "onSl-select": callbacks.onCurrencyChange },
|
|
105
105
|
h("sl-input", { class: sheet.classes.SearchInput, placeholder: text.searchCurrencyPlaceholder, onKeyDown: (e) => e.stopPropagation(), "onSl-input": (e) => { var _a; return callbacks.setCurrencySearch((_a = e.target) === null || _a === void 0 ? void 0 : _a.value); } }),
|
|
106
106
|
h("div", { class: sheet.classes.SelectMenu }, (_b = states.filteredCurrencies) === null || _b === void 0 ? void 0 : _b.map((c) => (h("sl-menu-item", { value: c.currencyCode },
|
|
107
107
|
c.currencyCode,
|
package/dist/esm/{sqm-portal-container-view-a8c708cd.js → sqm-portal-container-view-200c9df8.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h
|
|
1
|
+
import { h } from './index-38ad4957.js';
|
|
2
2
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
3
3
|
|
|
4
4
|
function PortalSectionView(props) {
|
|
@@ -46,12 +46,11 @@ function PortalContainerView(props, children) {
|
|
|
46
46
|
}`;
|
|
47
47
|
const sheet = createStyleSheet(style);
|
|
48
48
|
const styleString = sheet.toString();
|
|
49
|
-
return (h(
|
|
50
|
-
h("
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
children)));
|
|
49
|
+
return (h("div", { class: sheet.classes.Container, part: "sqm-base" },
|
|
50
|
+
h("style", { type: "text/css" },
|
|
51
|
+
vanillaStyle,
|
|
52
|
+
styleString),
|
|
53
|
+
children));
|
|
55
54
|
}
|
|
56
55
|
|
|
57
56
|
export { PortalContainerView as P, PortalSectionView as a };
|
|
@@ -2,7 +2,7 @@ import { h } from './index-38ad4957.js';
|
|
|
2
2
|
import { i as intl } from './global-75e96214.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
|
-
import { T as TextSpanView } from './sqm-text-span-view-
|
|
5
|
+
import { T as TextSpanView } from './sqm-text-span-view-72f43dff.js';
|
|
6
6
|
|
|
7
7
|
const style = {
|
|
8
8
|
Wrapper: AuthWrapper,
|