@saasquatch/mint-components 2.3.0-12 → 2.3.0-13
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/sqm-banking-info-form_10.cjs.entry.js +37 -26
- package/dist/cjs/sqm-big-stat_47.cjs.entry.js +1 -1
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +56 -2
- package/dist/cjs/{sqm-user-info-form-view-c2cad72c.js → sqm-user-info-form-view-60e09262.js} +11 -1
- package/dist/cjs/{useIndirectTaxForm-64c0231c.js → useIndirectTaxForm-c439eb81.js} +3 -1
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +3 -0
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +8 -0
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +2 -1
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +3 -1
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/UserInfoFormView.stories.js +51 -1
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +11 -1
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +3 -1
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +24 -24
- package/dist/esm/sqm-banking-info-form_10.entry.js +37 -26
- package/dist/esm/sqm-big-stat_47.entry.js +1 -1
- package/dist/esm/sqm-stencilbook.entry.js +56 -2
- package/dist/esm/{sqm-user-info-form-view-5051c1d0.js → sqm-user-info-form-view-647a2bd5.js} +11 -1
- package/dist/esm/{useIndirectTaxForm-d7d6be39.js → useIndirectTaxForm-38cd984e.js} +3 -1
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_47.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/{sqm-user-info-form-view-5051c1d0.js → sqm-user-info-form-view-647a2bd5.js} +1 -1
- package/dist/esm-es5/{useIndirectTaxForm-d7d6be39.js → useIndirectTaxForm-38cd984e.js} +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/p-1f387c7b.system.js +1 -1
- package/dist/mint-components/{p-5959ebdb.system.js → p-34179541.system.js} +1 -1
- package/dist/mint-components/{p-1e699fb8.entry.js → p-4065ae93.entry.js} +2 -2
- package/dist/mint-components/{p-6c9f7515.system.entry.js → p-6fd8981d.system.entry.js} +1 -1
- package/dist/mint-components/{p-5f8fa87c.js → p-8d30945a.js} +1 -1
- package/dist/mint-components/{p-1e1b03fa.js → p-aa2c6585.js} +4 -4
- package/dist/mint-components/{p-d67f8e0f.system.js → p-aab8a207.system.js} +2 -2
- package/dist/mint-components/{p-0c6bd136.system.entry.js → p-af8b8c06.system.entry.js} +1 -1
- package/dist/mint-components/{p-d0ed1c1b.entry.js → p-b3f25c0e.entry.js} +6 -6
- package/dist/mint-components/{p-29b267a9.system.entry.js → p-c31966e3.system.entry.js} +1 -1
- package/dist/mint-components/{p-aed3c69d.entry.js → p-dd5c1db9.entry.js} +1 -1
- package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-user-info-form/UserInfoFormView.stories.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.d.ts +2 -0
- package/dist/types/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.d.ts +2 -0
- package/docs/docs.docx +0 -0
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
|
@@ -14,11 +14,11 @@ import { u as useRerenderListener, a as useRequestRerender } from './re-render-b
|
|
|
14
14
|
import { u as useChildElements } from './useChildElements-06937df7.js';
|
|
15
15
|
import { l as luxon } from './luxon-1be92a8e.js';
|
|
16
16
|
import { g as generateUserError } from './useReferralTable-03d32c6f.js';
|
|
17
|
-
import { O as OtherRegionSlotView, I as InvoiceTableView, v as vatLabels, T as TaxAndCashDashboardView, U as UserInfoFormView } from './sqm-user-info-form-view-
|
|
17
|
+
import { O as OtherRegionSlotView, I as InvoiceTableView, v as vatLabels, T as TaxAndCashDashboardView, U as UserInfoFormView } from './sqm-user-info-form-view-647a2bd5.js';
|
|
18
18
|
import { F as FORM_STEPS, a as TAX_FORM_CONTEXT_NAMESPACE, S as SORTED_COUNTRIES_NAMESPACE, f as FINANCE_NETWORK_SETTINGS_NAMESPACE, c as USER_QUERY_NAMESPACE, T as TAX_CONTEXT_NAMESPACE, C as CURRENCIES_NAMESPACE, U as USER_FORM_CONTEXT_NAMESPACE } from './data-8698cbc6.js';
|
|
19
19
|
import { c as VERIFICATION_EVENT_KEY } from './keys-1054056a.js';
|
|
20
20
|
import { T as TAX_FORM_UPDATED_EVENT_KEY } from './eventKeys-f76b6a03.js';
|
|
21
|
-
import { a as useIndirectTaxForm, b as useVeriffApp, g as getStatus, V as VERIFF_COMPLETE_EVENT_KEY, c as CONNECT_PARTNER, C as COMPLETE_PARTNER } from './useIndirectTaxForm-
|
|
21
|
+
import { a as useIndirectTaxForm, b as useVeriffApp, g as getStatus, V as VERIFF_COMPLETE_EVENT_KEY, c as CONNECT_PARTNER, C as COMPLETE_PARTNER } from './useIndirectTaxForm-38cd984e.js';
|
|
22
22
|
|
|
23
23
|
function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
24
24
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51, _52, _53, _54, _55, _56, _57, _58, _59, _60, _61, _62, _63, _64, _65, _66, _67, _68, _69, _70, _71, _72, _73, _74, _75, _76;
|
|
@@ -2836,6 +2836,14 @@ const IndirectTaxFormView = (props) => {
|
|
|
2836
2836
|
}, {
|
|
2837
2837
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2838
2838
|
}))),
|
|
2839
|
+
states.isPartnerLegacy && (h("sqm-form-message", { loading: states.loading, type: "info" },
|
|
2840
|
+
h("p", { part: "alert-title" }, text.isPartnerAlertHeader),
|
|
2841
|
+
intl.formatMessage({
|
|
2842
|
+
id: "isPartnerAlertDescription",
|
|
2843
|
+
defaultMessage: text.isPartnerAlertDescription,
|
|
2844
|
+
}, {
|
|
2845
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2846
|
+
}))),
|
|
2839
2847
|
h("div", null,
|
|
2840
2848
|
h("h4", null, text.indirectTaxDetails))),
|
|
2841
2849
|
states.loading ? (h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } })) : (h("div", null,
|
|
@@ -3075,6 +3083,7 @@ function useDemoIndirectTaxForm(props) {
|
|
|
3075
3083
|
disabled: false,
|
|
3076
3084
|
loading: false,
|
|
3077
3085
|
isPartner: false,
|
|
3086
|
+
isPartnerLegacy: false,
|
|
3078
3087
|
loadingError: false,
|
|
3079
3088
|
errors: {},
|
|
3080
3089
|
formState: {
|
|
@@ -4432,7 +4441,7 @@ const GET_INDIRECT_TAX_COUNTRY_CODE = dist.gql `
|
|
|
4432
4441
|
}
|
|
4433
4442
|
`;
|
|
4434
4443
|
function useUserInfoForm(props) {
|
|
4435
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
4444
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
4436
4445
|
const currencyRef = useRef(undefined);
|
|
4437
4446
|
const phoneCountryRef = useRef(undefined);
|
|
4438
4447
|
const formRef = useRef(null);
|
|
@@ -4552,7 +4561,7 @@ function useUserInfoForm(props) {
|
|
|
4552
4561
|
}
|
|
4553
4562
|
}, [currencySearch, currencies]);
|
|
4554
4563
|
async function connectPartner(formData) {
|
|
4555
|
-
var _a, _b, _c, _d;
|
|
4564
|
+
var _a, _b, _c, _d, _e, _f;
|
|
4556
4565
|
const vars = {
|
|
4557
4566
|
user: {
|
|
4558
4567
|
id: user.id,
|
|
@@ -4569,36 +4578,31 @@ function useUserInfoForm(props) {
|
|
|
4569
4578
|
phoneNumber: toDomesticNumber(formData.phoneNumberCountryCode, formData.phoneNumber),
|
|
4570
4579
|
phoneNumberCountryCode: formData.phoneNumberCountryCode,
|
|
4571
4580
|
};
|
|
4572
|
-
//
|
|
4573
|
-
//
|
|
4574
|
-
|
|
4581
|
+
// if user went through early partner creation, connectionStatus === "STARTED"
|
|
4582
|
+
// otherwise trigger legacy partner creation
|
|
4583
|
+
const userData = data === null || data === void 0 ? void 0 : data.user;
|
|
4575
4584
|
let result = null;
|
|
4576
4585
|
let connectionResult;
|
|
4577
|
-
|
|
4578
|
-
|
|
4579
|
-
|
|
4580
|
-
|
|
4581
|
-
|
|
4582
|
-
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
|
|
4588
|
-
|
|
4589
|
-
|
|
4590
|
-
// });
|
|
4591
|
-
// connectionResult = (result as ConnectPartnerResult)
|
|
4592
|
-
// ?.createImpactConnection;
|
|
4593
|
-
// }
|
|
4594
|
-
if (!result || ((_b = result) === null || _b === void 0 ? void 0 : _b.message))
|
|
4586
|
+
if (((_a = userData === null || userData === void 0 ? void 0 : userData.impactConnection) === null || _a === void 0 ? void 0 : _a.connectionStatus) === "STARTED") {
|
|
4587
|
+
result = await completeImpactPartner({
|
|
4588
|
+
vars,
|
|
4589
|
+
});
|
|
4590
|
+
connectionResult = (_b = result) === null || _b === void 0 ? void 0 : _b.completeImpactConnection;
|
|
4591
|
+
}
|
|
4592
|
+
else {
|
|
4593
|
+
result = await connectImpactPartner({
|
|
4594
|
+
vars,
|
|
4595
|
+
});
|
|
4596
|
+
connectionResult = (_c = result) === null || _c === void 0 ? void 0 : _c.createImpactConnection;
|
|
4597
|
+
}
|
|
4598
|
+
if (!result || ((_d = result) === null || _d === void 0 ? void 0 : _d.message))
|
|
4595
4599
|
throw new Error();
|
|
4596
4600
|
if (!(connectionResult === null || connectionResult === void 0 ? void 0 : connectionResult.success)) {
|
|
4597
4601
|
console.error("Failed to create Impact connection: ", connectionResult === null || connectionResult === void 0 ? void 0 : connectionResult.validationErrors);
|
|
4598
4602
|
throw new Error();
|
|
4599
4603
|
}
|
|
4600
4604
|
await refetch();
|
|
4601
|
-
const resultPublisher = (
|
|
4605
|
+
const resultPublisher = (_f = (_e = connectionResult === null || connectionResult === void 0 ? void 0 : connectionResult.user) === null || _e === void 0 ? void 0 : _e.impactConnection) === null || _f === void 0 ? void 0 : _f.publisher;
|
|
4602
4606
|
const hasValidCurrentDocument = validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
|
|
4603
4607
|
// Fire form change event
|
|
4604
4608
|
window.dispatchEvent(new Event(TAX_FORM_UPDATED_EVENT_KEY));
|
|
@@ -4732,6 +4736,11 @@ function useUserInfoForm(props) {
|
|
|
4732
4736
|
loading: loading || connectLoading || completeLoading,
|
|
4733
4737
|
isPartner: !!((_g = (_f = data === null || data === void 0 ? void 0 : data.user) === null || _f === void 0 ? void 0 : _f.impactConnection) === null || _g === void 0 ? void 0 : _g.publisher),
|
|
4734
4738
|
isUser: !!((_j = (_h = data === null || data === void 0 ? void 0 : data.user) === null || _h === void 0 ? void 0 : _h.impactConnection) === null || _j === void 0 ? void 0 : _j.user),
|
|
4739
|
+
// Show banner when pre-existing partner is created with legacy mutation createImpactConnection
|
|
4740
|
+
isUserLegacy: !!((_l = (_k = data === null || data === void 0 ? void 0 : data.user) === null || _k === void 0 ? void 0 : _k.impactConnection) === null || _l === void 0 ? void 0 : _l.user) &&
|
|
4741
|
+
((_o = (_m = data === null || data === void 0 ? void 0 : data.user) === null || _m === void 0 ? void 0 : _m.impactConnection) === null || _o === void 0 ? void 0 : _o.connectionStatus) !== "STARTED",
|
|
4742
|
+
isPartnerLegacy: !!((_q = (_p = data === null || data === void 0 ? void 0 : data.user) === null || _p === void 0 ? void 0 : _p.impactConnection) === null || _q === void 0 ? void 0 : _q.publisher) &&
|
|
4743
|
+
((_s = (_r = data === null || data === void 0 ? void 0 : data.user) === null || _r === void 0 ? void 0 : _r.impactConnection) === null || _s === void 0 ? void 0 : _s.connectionStatus) !== "STARTED",
|
|
4735
4744
|
formState: {
|
|
4736
4745
|
...userFormContext,
|
|
4737
4746
|
errors: formErrors,
|
|
@@ -4949,6 +4958,8 @@ function useDemoUserInfoForm(props) {
|
|
|
4949
4958
|
loading: false,
|
|
4950
4959
|
isPartner: false,
|
|
4951
4960
|
isUser: false,
|
|
4961
|
+
isPartnerLegacy: false,
|
|
4962
|
+
isUserLegacy: false,
|
|
4952
4963
|
loadingError: false,
|
|
4953
4964
|
formState: {
|
|
4954
4965
|
errors: {
|
|
@@ -30,7 +30,7 @@ import './sqm-portal-container-view-200c9df8.js';
|
|
|
30
30
|
import { T as TAX_CONTEXT_NAMESPACE, a as TAX_FORM_CONTEXT_NAMESPACE, U as USER_FORM_CONTEXT_NAMESPACE, C as CURRENCIES_NAMESPACE, b as COUNTRIES_NAMESPACE, S as SORTED_COUNTRIES_NAMESPACE, c as USER_QUERY_NAMESPACE, G as GET_USER$2, d as COUNTRIES_QUERY_NAMESPACE, e as GET_COUNTRIES, f as FINANCE_NETWORK_SETTINGS_NAMESPACE, g as GET_FINANCE_NETWORK_SETTINGS, h as CURRENCIES_QUERY_NAMESPACE, i as GET_CURRENCIES } from './data-8698cbc6.js';
|
|
31
31
|
import { S as SHOW_CODE_NAMESPACE, a as VERIFICATION_EMAIL_NAMESPACE, b as SHOW_PARTNER_MODAL_NAMESPACE, P as PARTNER_CREATED_NAMESPACE, V as VERIFICATION_PARENT_NAMESPACE } from './keys-1054056a.js';
|
|
32
32
|
import './eventKeys-f76b6a03.js';
|
|
33
|
-
import { u as usePayoutStatus, C as COMPLETE_PARTNER } from './useIndirectTaxForm-
|
|
33
|
+
import { u as usePayoutStatus, C as COMPLETE_PARTNER } from './useIndirectTaxForm-38cd984e.js';
|
|
34
34
|
import { p as parseStates } from './parseStates-ed75e224.js';
|
|
35
35
|
|
|
36
36
|
/**
|
|
@@ -33,7 +33,7 @@ import './ErrorView-74cb3af8.js';
|
|
|
33
33
|
import { Q as QrCodeView } from './sqm-qr-code-view-ce476721.js';
|
|
34
34
|
import { S as StatContainerView, B as BigStatView, a as ShareButtonView, P as PortalChangePasswordView, b as PoweredByImg$1, c as BaseRegistrationFormView, u as useDemoBigStat, T as TaskCardView, C as CardFeedView, d as CheckboxFieldView, e as CouponCodeView, D as DropdownFieldView, E as EditProfileView, L as LeaderboardView, H as HeroView, I as InputFieldView, N as NameFieldsView, f as ChangeMarktingView, g as PortalFooterView, h as PortalFrameView, R as ReferralIframeView, i as RewardExchangeView, r as rewardExchangeCustomErrorMsg, j as rewardExchangeLongText, k as rewardExchangeSelected, l as chooseAmountFixed, m as chooseAmountFixedNoDescription, n as chooseAmountVariable, o as chooseAmountVariableNoDescription, p as chooseAmountVariableDisabled, q as chooseAmountVariableUnavailable, s as confirmFixed, t as confirmVariable, v as redemptionError, w as queryError, x as success, y as successVariable, z as loading, A as empty$1, F as rewardExchange, G as useShareButton, J as ShareLinkView, K as useShareLink, M as ProgressBarView, O as ProgressBar$2, Q as LeadFormView, U as LeadDropdownFieldView, V as ShadowViewAddon } from './ShadowViewAddon-e115fa1c.js';
|
|
35
35
|
import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-container-view-200c9df8.js';
|
|
36
|
-
import { I as InvoiceTableView, T as TaxAndCashDashboardView$1, O as OtherRegionSlotView, U as UserInfoFormView$1 } from './sqm-user-info-form-view-
|
|
36
|
+
import { I as InvoiceTableView, T as TaxAndCashDashboardView$1, O as OtherRegionSlotView, U as UserInfoFormView$1 } from './sqm-user-info-form-view-647a2bd5.js';
|
|
37
37
|
import { L as LeadInputFieldView } from './sqm-lead-input-field-view-b945edf4.js';
|
|
38
38
|
import './data-8698cbc6.js';
|
|
39
39
|
import { P as PartnerInfoModalView } from './sqm-partner-info-modal-view-bc843d7d.js';
|
|
@@ -16699,6 +16699,8 @@ const stepOneProps = {
|
|
|
16699
16699
|
disabled: false,
|
|
16700
16700
|
isPartner: false,
|
|
16701
16701
|
isUser: false,
|
|
16702
|
+
isPartnerLegacy: false,
|
|
16703
|
+
isUserLegacy: false,
|
|
16702
16704
|
loadingError: false,
|
|
16703
16705
|
formState: {
|
|
16704
16706
|
firstName: "Bob",
|
|
@@ -16819,6 +16821,7 @@ const stepTwoProps = {
|
|
|
16819
16821
|
disabled: false,
|
|
16820
16822
|
loading: false,
|
|
16821
16823
|
isPartner: false,
|
|
16824
|
+
isPartnerLegacy: false,
|
|
16822
16825
|
loadingError: false,
|
|
16823
16826
|
formState: {
|
|
16824
16827
|
checked: undefined,
|
|
@@ -18881,7 +18884,10 @@ const mockCountries = [
|
|
|
18881
18884
|
{ countryCode: "FR", displayName: "France" },
|
|
18882
18885
|
{ countryCode: "ES", displayName: "Spain" },
|
|
18883
18886
|
// Show handling of long country names
|
|
18884
|
-
{
|
|
18887
|
+
{
|
|
18888
|
+
countryCode: "CD",
|
|
18889
|
+
displayName: "Congo, The Democratic Republic of the Congo",
|
|
18890
|
+
},
|
|
18885
18891
|
];
|
|
18886
18892
|
const mockCurrencies = [
|
|
18887
18893
|
{ currencyCode: "USD", displayName: "US Dollar" },
|
|
@@ -18972,6 +18978,8 @@ const baseProps = {
|
|
|
18972
18978
|
loading: false,
|
|
18973
18979
|
isPartner: false,
|
|
18974
18980
|
isUser: false,
|
|
18981
|
+
isPartnerLegacy: false,
|
|
18982
|
+
isUserLegacy: false,
|
|
18975
18983
|
formState: {
|
|
18976
18984
|
firstName: "",
|
|
18977
18985
|
lastName: "",
|
|
@@ -19084,6 +19092,7 @@ const PartnerAccount = () => {
|
|
|
19084
19092
|
return (h(UserInfoFormView$1, Object.assign({}, baseProps, { states: {
|
|
19085
19093
|
...baseProps.states,
|
|
19086
19094
|
isPartner: true,
|
|
19095
|
+
isPartnerLegacy: true,
|
|
19087
19096
|
formState: {
|
|
19088
19097
|
...baseProps.states.formState,
|
|
19089
19098
|
firstName: "Jane",
|
|
@@ -19103,10 +19112,53 @@ const PartnerAccount = () => {
|
|
|
19103
19112
|
partnerData: mockPartnerData,
|
|
19104
19113
|
} })));
|
|
19105
19114
|
};
|
|
19115
|
+
// Early partner created via <sqm-partner-info-modal>: connectionStatus is "STARTED",
|
|
19116
|
+
// publisher has only countryCode + currency populated. Banner must NOT show; only
|
|
19117
|
+
// country + currency disabled; firstName/lastName disabled via userData; everything
|
|
19118
|
+
// else (phone, address, city, state, postalCode) stays editable.
|
|
19119
|
+
const EarlyPartnerFromModal = () => {
|
|
19120
|
+
return (h(UserInfoFormView$1, Object.assign({}, baseProps, { states: {
|
|
19121
|
+
...baseProps.states,
|
|
19122
|
+
isPartner: true,
|
|
19123
|
+
isUser: true,
|
|
19124
|
+
isPartnerLegacy: false,
|
|
19125
|
+
isUserLegacy: false,
|
|
19126
|
+
formState: {
|
|
19127
|
+
...baseProps.states.formState,
|
|
19128
|
+
firstName: "Jane",
|
|
19129
|
+
lastName: "Smith",
|
|
19130
|
+
email: "jane.smith@example.com",
|
|
19131
|
+
countryCode: "US",
|
|
19132
|
+
currency: "USD",
|
|
19133
|
+
phoneNumberCountryCode: undefined,
|
|
19134
|
+
phoneNumber: undefined,
|
|
19135
|
+
address: undefined,
|
|
19136
|
+
city: undefined,
|
|
19137
|
+
state: undefined,
|
|
19138
|
+
postalCode: undefined,
|
|
19139
|
+
},
|
|
19140
|
+
}, data: {
|
|
19141
|
+
...baseProps.data,
|
|
19142
|
+
partnerData: {
|
|
19143
|
+
...mockPartnerData,
|
|
19144
|
+
billingAddress: undefined,
|
|
19145
|
+
billingCity: undefined,
|
|
19146
|
+
billingState: undefined,
|
|
19147
|
+
billingPostalCode: undefined,
|
|
19148
|
+
phoneNumber: undefined,
|
|
19149
|
+
phoneNumberCountryCode: undefined,
|
|
19150
|
+
},
|
|
19151
|
+
userData: {
|
|
19152
|
+
firstName: "Jane",
|
|
19153
|
+
lastName: "Smith",
|
|
19154
|
+
},
|
|
19155
|
+
} })));
|
|
19156
|
+
};
|
|
19106
19157
|
const UserAccount = () => {
|
|
19107
19158
|
return (h(UserInfoFormView$1, Object.assign({}, baseProps, { states: {
|
|
19108
19159
|
...baseProps.states,
|
|
19109
19160
|
isUser: true,
|
|
19161
|
+
isUserLegacy: true,
|
|
19110
19162
|
formState: {
|
|
19111
19163
|
...baseProps.states.formState,
|
|
19112
19164
|
firstName: "Bob",
|
|
@@ -19125,6 +19177,7 @@ const UserAccountMissingLastName = () => {
|
|
|
19125
19177
|
return (h(UserInfoFormView$1, Object.assign({}, baseProps, { states: {
|
|
19126
19178
|
...baseProps.states,
|
|
19127
19179
|
isUser: true,
|
|
19180
|
+
isUserLegacy: true,
|
|
19128
19181
|
formState: {
|
|
19129
19182
|
...baseProps.states.formState,
|
|
19130
19183
|
firstName: "Bob",
|
|
@@ -19204,6 +19257,7 @@ const UserInfoFormView = /*#__PURE__*/Object.freeze({
|
|
|
19204
19257
|
WithValidationErrors: WithValidationErrors,
|
|
19205
19258
|
WithGeneralError: WithGeneralError,
|
|
19206
19259
|
PartnerAccount: PartnerAccount,
|
|
19260
|
+
EarlyPartnerFromModal: EarlyPartnerFromModal,
|
|
19207
19261
|
UserAccount: UserAccount,
|
|
19208
19262
|
UserAccountMissingLastName: UserAccountMissingLastName,
|
|
19209
19263
|
CanadianAddress: CanadianAddress,
|
package/dist/esm/{sqm-user-info-form-view-5051c1d0.js → sqm-user-info-form-view-647a2bd5.js}
RENAMED
|
@@ -2285,6 +2285,14 @@ const UserInfoFormView = (props) => {
|
|
|
2285
2285
|
}, {
|
|
2286
2286
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2287
2287
|
})))),
|
|
2288
|
+
(states.isPartnerLegacy || states.isUserLegacy) && (h("sqm-form-message", { loading: states.loading, type: "info" },
|
|
2289
|
+
h("p", { part: "alert-title" }, text.isPartnerAlertHeader),
|
|
2290
|
+
h("p", { part: "alert-description" }, intl.formatMessage({
|
|
2291
|
+
id: "isPartnerAlertDescription",
|
|
2292
|
+
defaultMessage: text.isPartnerAlertDescription,
|
|
2293
|
+
}, {
|
|
2294
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2295
|
+
})))),
|
|
2288
2296
|
h("div", null,
|
|
2289
2297
|
h("div", { class: classes.InputContainer },
|
|
2290
2298
|
h("sl-input", Object.assign({ class: "ErrorInput", exportparts: "label: input-label, base: input-base", value: formState.firstName, label: text.firstName, disabled: states.disabled || isDisabledUserInput("firstName") }, (((_b = formState.errors) === null || _b === void 0 ? void 0 : _b.firstName) ? {
|
|
@@ -2337,7 +2345,9 @@ const UserInfoFormView = (props) => {
|
|
|
2337
2345
|
h("div", { slot: "prefix" }, `${(_a = PHONE_EXTENSIONS[c.countryCode]) === null || _a === void 0 ? void 0 : _a.name} `), (_b = PHONE_EXTENSIONS[c.countryCode]) === null || _b === void 0 ? void 0 :
|
|
2338
2346
|
_b.dial_code));
|
|
2339
2347
|
})),
|
|
2340
|
-
h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", id: "phoneNumber", name: "/phoneNumber", value: formState.phoneNumber
|
|
2348
|
+
h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", id: "phoneNumber", name: "/phoneNumber", value: formState.phoneNumber !== null
|
|
2349
|
+
? formState.phoneNumber
|
|
2350
|
+
: "", "onSl-input": (e) => {
|
|
2341
2351
|
var _a;
|
|
2342
2352
|
const target = e.target;
|
|
2343
2353
|
const country = (((_a = refs.phoneCountryRef.current) === null || _a === void 0 ? void 0 : _a.value) || "US");
|
|
@@ -1174,7 +1174,7 @@ function getOption(countries, countryCode) {
|
|
|
1174
1174
|
}
|
|
1175
1175
|
}
|
|
1176
1176
|
function useIndirectTaxForm(props) {
|
|
1177
|
-
var _a, _b, _c, _d, _e;
|
|
1177
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1178
1178
|
const user = J();
|
|
1179
1179
|
const locale = L();
|
|
1180
1180
|
const formRef = useRef(null);
|
|
@@ -1359,6 +1359,8 @@ function useIndirectTaxForm(props) {
|
|
|
1359
1359
|
disabled: loading || countriesLoading || connectLoading || completeLoading,
|
|
1360
1360
|
loading: loading || connectLoading || countriesLoading || completeLoading,
|
|
1361
1361
|
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),
|
|
1362
|
+
isPartnerLegacy: !!((_g = (_f = userData === null || userData === void 0 ? void 0 : userData.user) === null || _f === void 0 ? void 0 : _f.impactConnection) === null || _g === void 0 ? void 0 : _g.publisher) &&
|
|
1363
|
+
((_j = (_h = userData === null || userData === void 0 ? void 0 : userData.user) === null || _h === void 0 ? void 0 : _h.impactConnection) === null || _j === void 0 ? void 0 : _j.connectionStatus) !== "STARTED",
|
|
1362
1364
|
loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
|
|
1363
1365
|
formState: {
|
|
1364
1366
|
checked: option,
|