@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.
@@ -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 _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
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 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;
6576
- const hasIndirectTax = !!((_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);
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 (hasIndirectTax && userData.countryCode !== brandCountry)
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 hasIndirectTax = !!((_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);
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 (hasIndirectTax && userData.countryCode !== brandCountry)
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 _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
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 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;
6572
- const hasIndirectTax = !!((_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);
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 (hasIndirectTax && userData.countryCode !== brandCountry)
6576
+ if (userData.countryCode === "US")
6577
+ return true;
6578
+ if (hasIndirectTax && userData.countryCode !== indirectTaxCountry)
6579
6579
  return true;
6580
6580
  return false;
6581
6581
  }