@saasquatch/mint-components 2.0.2-14 → 2.0.2-15
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 +6 -6
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +5 -4
- package/dist/esm/sqm-banking-info-form_10.entry.js +6 -6
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/{p-9dc5dd82.entry.js → p-54d07b05.entry.js} +1 -1
- package/dist/mint-components/p-967a9040.system.js +1 -1
- package/dist/mint-components/{p-8a681478.system.entry.js → p-99e1c8c7.system.entry.js} +1 -1
- package/docs/docs.docx +0 -0
- package/package.json +1 -1
|
@@ -6348,7 +6348,7 @@ const GET_INDIRECT_TAX_COUNTRY_CODE = index_module.dist.gql `
|
|
|
6348
6348
|
}
|
|
6349
6349
|
`;
|
|
6350
6350
|
function useUserInfoForm(props) {
|
|
6351
|
-
var
|
|
6351
|
+
var _c, _d, _e, _f, _g, _h, _j, _k;
|
|
6352
6352
|
const currencyRef = domContextHooks_module.useRef(undefined);
|
|
6353
6353
|
const phoneCountryRef = domContextHooks_module.useRef(undefined);
|
|
6354
6354
|
const formRef = domContextHooks_module.useRef(null);
|
|
@@ -6572,14 +6572,14 @@ function useUserInfoForm(props) {
|
|
|
6572
6572
|
const nextStep = context.overrideNextStep || skipNextStep ? "/3" : "/2";
|
|
6573
6573
|
setStep(nextStep);
|
|
6574
6574
|
}
|
|
6575
|
-
const
|
|
6576
|
-
const hasIndirectTax = !!
|
|
6575
|
+
const indirectTaxCountry = (_d = (_c = tenantData === null || tenantData === void 0 ? void 0 : tenantData.tenant) === null || _c === void 0 ? void 0 : _c.settings) === null || _d === void 0 ? void 0 : _d.impactBrandIndirectTaxCountryCode;
|
|
6576
|
+
const hasIndirectTax = !!indirectTaxCountry;
|
|
6577
6577
|
function getSkipNextStep(userData) {
|
|
6578
|
-
if (userData.countryCode === "US")
|
|
6579
|
-
return true;
|
|
6580
6578
|
if (!hasIndirectTax)
|
|
6581
6579
|
return true;
|
|
6582
|
-
if (
|
|
6580
|
+
if (userData.countryCode === "US")
|
|
6581
|
+
return true;
|
|
6582
|
+
if (hasIndirectTax && userData.countryCode !== indirectTaxCountry)
|
|
6583
6583
|
return true;
|
|
6584
6584
|
return false;
|
|
6585
6585
|
}
|
|
@@ -243,13 +243,14 @@ export function useUserInfoForm(props) {
|
|
|
243
243
|
setStep(nextStep);
|
|
244
244
|
}
|
|
245
245
|
const brandCountry = (_b = (_a = tenantData === null || tenantData === void 0 ? void 0 : tenantData.tenant) === null || _a === void 0 ? void 0 : _a.settings) === null || _b === void 0 ? void 0 : _b.impactBrandCountryCode;
|
|
246
|
-
const
|
|
246
|
+
const indirectTaxCountry = (_d = (_c = tenantData === null || tenantData === void 0 ? void 0 : tenantData.tenant) === null || _c === void 0 ? void 0 : _c.settings) === null || _d === void 0 ? void 0 : _d.impactBrandIndirectTaxCountryCode;
|
|
247
|
+
const hasIndirectTax = !!indirectTaxCountry;
|
|
247
248
|
function getSkipNextStep(userData) {
|
|
248
|
-
if (userData.countryCode === "US")
|
|
249
|
-
return true;
|
|
250
249
|
if (!hasIndirectTax)
|
|
251
250
|
return true;
|
|
252
|
-
if (
|
|
251
|
+
if (userData.countryCode === "US")
|
|
252
|
+
return true;
|
|
253
|
+
if (hasIndirectTax && userData.countryCode !== indirectTaxCountry)
|
|
253
254
|
return true;
|
|
254
255
|
return false;
|
|
255
256
|
}
|
|
@@ -6344,7 +6344,7 @@ const GET_INDIRECT_TAX_COUNTRY_CODE = dist.gql `
|
|
|
6344
6344
|
}
|
|
6345
6345
|
`;
|
|
6346
6346
|
function useUserInfoForm(props) {
|
|
6347
|
-
var
|
|
6347
|
+
var _c, _d, _e, _f, _g, _h, _j, _k;
|
|
6348
6348
|
const currencyRef = useRef(undefined);
|
|
6349
6349
|
const phoneCountryRef = useRef(undefined);
|
|
6350
6350
|
const formRef = useRef(null);
|
|
@@ -6568,14 +6568,14 @@ function useUserInfoForm(props) {
|
|
|
6568
6568
|
const nextStep = context.overrideNextStep || skipNextStep ? "/3" : "/2";
|
|
6569
6569
|
setStep(nextStep);
|
|
6570
6570
|
}
|
|
6571
|
-
const
|
|
6572
|
-
const hasIndirectTax = !!
|
|
6571
|
+
const indirectTaxCountry = (_d = (_c = tenantData === null || tenantData === void 0 ? void 0 : tenantData.tenant) === null || _c === void 0 ? void 0 : _c.settings) === null || _d === void 0 ? void 0 : _d.impactBrandIndirectTaxCountryCode;
|
|
6572
|
+
const hasIndirectTax = !!indirectTaxCountry;
|
|
6573
6573
|
function getSkipNextStep(userData) {
|
|
6574
|
-
if (userData.countryCode === "US")
|
|
6575
|
-
return true;
|
|
6576
6574
|
if (!hasIndirectTax)
|
|
6577
6575
|
return true;
|
|
6578
|
-
if (
|
|
6576
|
+
if (userData.countryCode === "US")
|
|
6577
|
+
return true;
|
|
6578
|
+
if (hasIndirectTax && userData.countryCode !== indirectTaxCountry)
|
|
6579
6579
|
return true;
|
|
6580
6580
|
return false;
|
|
6581
6581
|
}
|