@saasquatch/mint-components 1.8.0-55 → 1.8.0-56

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.
Files changed (50) hide show
  1. package/dist/cjs/{PayoutDetailsCard.stories-6e425162.js → PayoutDetailsCard.stories-405de68f.js} +18 -17
  2. package/dist/cjs/sqm-banking-info-form_6.cjs.entry.js +55 -35
  3. package/dist/cjs/sqm-stencilbook.cjs.entry.js +1 -1
  4. package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +3 -2
  5. package/dist/collection/components/tax-and-cash/TaxForm.stories.js +2 -2
  6. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +2 -2
  7. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +1 -1
  8. package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +3 -3
  9. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +2 -2
  10. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +1 -1
  11. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +6 -6
  12. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +22 -21
  13. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +2 -2
  14. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +1 -1
  15. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +38 -17
  16. package/dist/collection/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.js +2 -2
  17. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +2 -2
  18. package/dist/collection/components/tax-and-cash/subregions.js +13 -13
  19. package/dist/esm/{PayoutDetailsCard.stories-2f0d2482.js → PayoutDetailsCard.stories-7ca9266c.js} +18 -18
  20. package/dist/esm/sqm-banking-info-form_6.entry.js +55 -35
  21. package/dist/esm/sqm-stencilbook.entry.js +1 -1
  22. package/dist/esm/sqm-tax-and-cash.entry.js +3 -2
  23. package/dist/esm-es5/PayoutDetailsCard.stories-7ca9266c.js +1 -0
  24. package/dist/esm-es5/sqm-banking-info-form_6.entry.js +1 -1
  25. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  26. package/dist/esm-es5/sqm-tax-and-cash.entry.js +1 -1
  27. package/dist/mint-components/mint-components.esm.js +1 -1
  28. package/dist/mint-components/{p-f0ea2b05.entry.js → p-07055a97.entry.js} +1 -1
  29. package/dist/mint-components/p-24ee831b.js +1 -0
  30. package/dist/mint-components/{p-89ff3b89.system.entry.js → p-3a59ae76.system.entry.js} +1 -1
  31. package/dist/mint-components/p-91db4e34.system.entry.js +1 -0
  32. package/dist/mint-components/{p-bfab7b24.entry.js → p-a0afe178.entry.js} +1 -1
  33. package/dist/mint-components/p-ab2b56ac.system.js +1 -0
  34. package/dist/mint-components/p-d5364cae.system.js +1 -1
  35. package/dist/mint-components/p-eb2af067.entry.js +38 -0
  36. package/dist/mint-components/p-ecf11a2f.system.entry.js +1 -0
  37. package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.d.ts +1 -1
  38. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/data.d.ts +2 -5
  39. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +2 -2
  40. package/dist/types/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.d.ts +1 -1
  41. package/dist/types/components/tax-and-cash/subregions.d.ts +1 -1
  42. package/docs/docs.docx +0 -0
  43. package/grapesjs/grapesjs.js +1 -1
  44. package/package.json +1 -1
  45. package/dist/esm-es5/PayoutDetailsCard.stories-2f0d2482.js +0 -1
  46. package/dist/mint-components/p-128137ec.system.entry.js +0 -1
  47. package/dist/mint-components/p-29e7eb70.js +0 -1
  48. package/dist/mint-components/p-30d7dae9.system.entry.js +0 -1
  49. package/dist/mint-components/p-31807b1e.entry.js +0 -38
  50. package/dist/mint-components/p-36ed9f2b.system.js +0 -1
@@ -6,39 +6,39 @@ const JSS = require('./JSS-8503a151.js');
6
6
  const LoadingView = require('./LoadingView-db1d003f.js');
7
7
 
8
8
  const INDIRECT_TAX_PROVINCES = [
9
- { provinceCode: "ALBERTA", taxType: "GST", displayName: "Alberta" },
9
+ { regionCode: "ALBERTA", taxType: "GST", displayName: "Alberta" },
10
10
  {
11
- provinceCode: "BRITISHCOLUMBIA",
11
+ regionCode: "BRITISHCOLUMBIA",
12
12
  taxType: "HST",
13
13
  displayName: "British Columbia",
14
14
  },
15
- { provinceCode: "MANITOBA", taxType: "HST", displayName: "Manitoba" },
15
+ { regionCode: "MANITOBA", taxType: "HST", displayName: "Manitoba" },
16
16
  {
17
- provinceCode: "NEWBRUNSWICK",
17
+ regionCode: "NEWBRUNSWICK",
18
18
  taxType: "HST",
19
19
  displayName: "New Brunswick",
20
20
  },
21
21
  {
22
- provinceCode: "NEWFOUNDLANDLABRADOR",
22
+ regionCode: "NEWFOUNDLANDLABRADOR",
23
23
  taxType: "HST",
24
24
  displayName: "Newfoundland",
25
25
  },
26
26
  {
27
- provinceCode: "NORTHWESTTERRITORIES",
27
+ regionCode: "NORTHWESTTERRITORIES",
28
28
  taxType: "GST",
29
29
  displayName: "North West Territories",
30
30
  },
31
- { provinceCode: "NOVASCOTIA", taxType: "HST", displayName: "Nova Scotia" },
32
- { provinceCode: "NUNAVUT", taxType: "HST", displayName: "Nunavut" },
33
- { provinceCode: "ONTARIO", taxType: "HST", displayName: "Ontario" },
31
+ { regionCode: "NOVASCOTIA", taxType: "HST", displayName: "Nova Scotia" },
32
+ { regionCode: "NUNAVUT", taxType: "HST", displayName: "Nunavut" },
33
+ { regionCode: "ONTARIO", taxType: "HST", displayName: "Ontario" },
34
34
  {
35
- provinceCode: "PRINCEEDWARDISLAND",
35
+ regionCode: "PRINCEEDWARDISLAND",
36
36
  taxType: "HST",
37
37
  displayName: "Prince Edward Island",
38
38
  },
39
- { provinceCode: "QUEBEC", taxType: "GST", displayName: "Quebec" },
40
- { provinceCode: "SASKATCHEWAN", taxType: "HST", displayName: "Saskatchewan" },
41
- { provinceCode: "YUKON", taxType: "GST", displayName: "Yukon" },
39
+ { regionCode: "QUEBEC", taxType: "GST", displayName: "Quebec" },
40
+ { regionCode: "SASKATCHEWAN", taxType: "HST", displayName: "Saskatchewan" },
41
+ { regionCode: "YUKON", taxType: "GST", displayName: "Yukon" },
42
42
  ];
43
43
  const INDIRECT_TAX_SPAIN_REGIONS = [
44
44
  { regionCode: "SPAINPROPER", taxType: "VAT", displayName: "Spain Proper" },
@@ -861,7 +861,7 @@ const TaxAndCashDashboardIndirectTaxCanadaQuebec = () => {
861
861
  isIndirectTaxCanada: true,
862
862
  indirectTaxType: "GST",
863
863
  indirectTaxNumber: "123456",
864
- qstNumber: 44212,
864
+ qstNumber: "44212",
865
865
  isBusinessEntity: true,
866
866
  },
867
867
  } }));
@@ -879,7 +879,7 @@ const TaxAndCashDashboardIndirectTaxSpain = () => {
879
879
  subRegion: "Madred",
880
880
  indirectTaxType: "VAT",
881
881
  indirectTaxNumber: "123456",
882
- subRegionTaxNumber: 44212,
882
+ subRegionTaxNumber: "44212",
883
883
  isBusinessEntity: true,
884
884
  },
885
885
  } }));
@@ -1150,12 +1150,12 @@ const OtherRegionSlotView = (props) => {
1150
1150
  const CanadaFields = () => {
1151
1151
  var _a, _b;
1152
1152
  const { classes } = sheet;
1153
- const currentTaxType = (_a = INDIRECT_TAX_PROVINCES === null || INDIRECT_TAX_PROVINCES === void 0 ? void 0 : INDIRECT_TAX_PROVINCES.find((p) => p.provinceCode === formState.province)) === null || _a === void 0 ? void 0 : _a.taxType;
1153
+ const currentTaxType = (_a = INDIRECT_TAX_PROVINCES === null || INDIRECT_TAX_PROVINCES === void 0 ? void 0 : INDIRECT_TAX_PROVINCES.find((p) => p.regionCode === formState.province)) === null || _a === void 0 ? void 0 : _a.taxType;
1154
1154
  return (index.h("div", { class: classes.ConditionalInputsContainer },
1155
1155
  index.h("sl-select", Object.assign({ required: true, value: formState.province, exportparts: "label: input-label", class: classes.Input, label: text.province, disabled: states.loading || states.disabled, "onSl-select": (e) => callbacks.onFormChange("province", e) }, (((_b = formState.errors) === null || _b === void 0 ? void 0 : _b.province) && {
1156
1156
  class: classes.ErrorInput,
1157
1157
  helpText: getIsRequiredErrorMessage(text.province, text.error.fieldRequiredError),
1158
- }), { id: "province", name: "/province" }), props.data.provinces.map((p) => (index.h("sl-menu-item", { value: p.provinceCode }, p.displayName)))),
1158
+ }), { id: "province", name: "/province" }), props.data.provinces.map((p) => (index.h("sl-menu-item", { value: p.regionCode }, p.displayName)))),
1159
1159
  currentTaxType === "GST" && (index.h(IndirectTaxNumberInput, { label: getTaxFieldLabel("GST"), error: getTaxFieldError("GST"), name: "indirectTaxNumber" })),
1160
1160
  currentTaxType === "HST" && (index.h(IndirectTaxNumberInput, { label: getTaxFieldLabel("HST"), error: getTaxFieldError("HST"), name: "indirectTaxNumber" })),
1161
1161
  formState.province === "QUEBEC" && (index.h("div", { class: classes.ConditionalInputsContainer },
@@ -1335,3 +1335,4 @@ exports.TaxForm = TaxForm;
1335
1335
  exports.getIsRequiredErrorMessage = getIsRequiredErrorMessage;
1336
1336
  exports.objectIsFull = objectIsFull;
1337
1337
  exports.taxTypeToName = taxTypeToName;
1338
+ exports.vatLabels = vatLabels;
@@ -12,7 +12,7 @@ const JSS = require('./JSS-8503a151.js');
12
12
  const luxon = require('./luxon-33ebaf57.js');
13
13
  const utils = require('./utils-6847bc06.js');
14
14
  const data = require('./data-61dcb5a4.js');
15
- const PayoutDetailsCard_stories = require('./PayoutDetailsCard.stories-6e425162.js');
15
+ const PayoutDetailsCard_stories = require('./PayoutDetailsCard.stories-405de68f.js');
16
16
  require('./LoadingView-db1d003f.js');
17
17
 
18
18
  const mockPaymentOptions = {
@@ -543,12 +543,12 @@ const BankingInfoFormView = (props) => {
543
543
  !states.hideSteps && index.h("p", null, text.formStep),
544
544
  index.h("h3", { style: { fontSize: "24px" } }, text.taxAndPayouts),
545
545
  index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription)),
546
- ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { type: "warning", open: true, class: sheet.classes.AlertContainer },
546
+ ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet.classes.AlertContainer },
547
547
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
548
548
  index.h("strong", null, text.error.generalTitle),
549
549
  index.h("br", null),
550
550
  text.error.generalDescription)),
551
- states.isPartner && (index.h("sl-alert", { type: "primary", open: true, class: sheet.classes.PartnerAlertContainer },
551
+ states.isPartner && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: sheet.classes.PartnerAlertContainer },
552
552
  index.h("sl-icon", { slot: "icon", name: "info-circle" }),
553
553
  index.h("strong", null, text.isPartnerAlertHeader),
554
554
  index.h("br", null),
@@ -1602,7 +1602,7 @@ const DocusignFormView = (props) => {
1602
1602
  index.h("div", null,
1603
1603
  !states.hideSteps && index.h("p", null, text.formStep),
1604
1604
  index.h("h3", null, text.taxForm))),
1605
- ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { type: "warning", open: true, class: sheet$1.classes.ErrorAlertContainer },
1605
+ ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$1.classes.ErrorAlertContainer },
1606
1606
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
1607
1607
  index.h("strong", null, text.error.generalTitle),
1608
1608
  index.h("br", null),
@@ -1667,9 +1667,9 @@ function useDocusignForm(props) {
1667
1667
  const [formSubmitted, setFormSubmitted] = stencilHooks_module.useState(false);
1668
1668
  const [errors, setErrors] = stencilHooks_module.useState({});
1669
1669
  const [loading, setLoading] = stencilHooks_module.useState(false);
1670
- const existingDocumentType = ((_c = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _c === void 0 ? void 0 : _c.type) || // Then current form (could be different than required)
1671
- (publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType); // Last, the required tax form
1672
- const actualDocumentType = existingDocumentType || getDocumentType(participantType);
1670
+ const existingDocumentType = (_c = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _c === void 0 ? void 0 : _c.type;
1671
+ const actualDocumentType = existingDocumentType ||
1672
+ getDocumentType(participantType) || (publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType);
1673
1673
  stencilHooks_module.useEffect(() => {
1674
1674
  var _a;
1675
1675
  if (!((_a = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _a === void 0 ? void 0 : _a.type))
@@ -2203,12 +2203,12 @@ const IndirectTaxFormView = (props) => {
2203
2203
  !states.hideSteps && index.h("p", null, text.formStep),
2204
2204
  index.h("h3", null, text.indirectTax),
2205
2205
  index.h("p", { class: classes.DescriptionText }, text.indirectTaxDetailsDescription)),
2206
- ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { type: "warning", open: true, class: sheet$3.classes.AlertContainer },
2206
+ ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$3.classes.AlertContainer },
2207
2207
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
2208
2208
  index.h("strong", null, text.error.generalTitle),
2209
2209
  index.h("br", null),
2210
2210
  text.error.generalDescription)),
2211
- states.isPartner && (index.h("sl-alert", { type: "primary", open: true, class: sheet$3.classes.PartnerAlertContainer },
2211
+ states.isPartner && (index.h("sl-alert", { type: "primary", open: true, class: sheet$3.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
2212
2212
  index.h("sl-icon", { slot: "icon", name: "info-circle" }),
2213
2213
  index.h("strong", null, text.isPartnerAlertHeader),
2214
2214
  index.h("br", null),
@@ -2261,7 +2261,7 @@ function getOption(countries, countryCode) {
2261
2261
  }
2262
2262
  }
2263
2263
  function useIndirectTaxForm(props) {
2264
- var _a, _b, _c, _d;
2264
+ var _a, _b, _c, _d, _e;
2265
2265
  const user = index_module.H();
2266
2266
  const formRef = stencilHooks_module.useRef(null);
2267
2267
  const context = data.useParentValue(data.TAX_FORM_CONTEXT_NAMESPACE);
@@ -2291,14 +2291,14 @@ function useIndirectTaxForm(props) {
2291
2291
  }
2292
2292
  }, [countrySearch, (_b = _countries === null || _countries === void 0 ? void 0 : _countries.impactPayoutCountries) === null || _b === void 0 ? void 0 : _b.data]);
2293
2293
  stencilHooks_module.useEffect(() => {
2294
- var _a;
2294
+ var _a, _b;
2295
2295
  const user = userData === null || userData === void 0 ? void 0 : userData.user;
2296
2296
  if (!user)
2297
2297
  return;
2298
- if ((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) {
2298
+ if ((_b = (_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) === null || _b === void 0 ? void 0 : _b.taxInformation) {
2299
2299
  setFormState({
2300
- province: user.impactConnection.publisher.indirectTaxSubdivision,
2301
- subRegion: user.impactConnection.publisher.indirectTaxSubdivision,
2300
+ province: user.impactConnection.publisher.taxInformation.indirectTaxRegion,
2301
+ subRegion: user.impactConnection.publisher.taxInformation.indirectTaxRegion,
2302
2302
  hasQst: !!user.impactConnection.publisher.taxInformation.additionalTaxId,
2303
2303
  qstNumber: user.impactConnection.publisher.taxInformation.additionalTaxId,
2304
2304
  hasSubRegionTaxNumber: !!user.impactConnection.publisher.taxInformation.withholdingTaxId,
@@ -2391,7 +2391,7 @@ function useIndirectTaxForm(props) {
2391
2391
  hideSteps: context.hideSteps,
2392
2392
  disabled: loading || countriesLoading || connectLoading,
2393
2393
  loading: loading || connectLoading || countriesLoading,
2394
- isPartner: !!((_d = (_c = userData === null || userData === void 0 ? void 0 : userData.user) === null || _c === void 0 ? void 0 : _c.impactConnection) === null || _d === void 0 ? void 0 : _d.publisher),
2394
+ isPartner: !!((_e = (_d = (_c = userData === null || userData === void 0 ? void 0 : userData.user) === null || _c === void 0 ? void 0 : _c.impactConnection) === null || _d === void 0 ? void 0 : _d.publisher) === null || _e === void 0 ? void 0 : _e.taxInformation),
2395
2395
  formState: {
2396
2396
  checked: option,
2397
2397
  errors,
@@ -3076,7 +3076,7 @@ const TaxAndCashDashboardView = (props) => {
3076
3076
  index.h("p", null, text.invalidForm))),
3077
3077
  };
3078
3078
  const alertMap = {
3079
- NOT_ACTIVE: (index.h("sl-alert", { type: "danger", open: true, class: sheet$4.classes.WarningAlertContainer },
3079
+ NOT_ACTIVE: (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.WarningAlertContainer },
3080
3080
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
3081
3081
  index.h("strong", null, global.intl.formatMessage({
3082
3082
  id: `taxAlertHeaderNotActive`,
@@ -3127,7 +3127,7 @@ const TaxAndCashDashboardView = (props) => {
3127
3127
  return (index.h("div", null,
3128
3128
  index.h("div", null,
3129
3129
  index.h("style", { type: "text/css" }, styleString$4),
3130
- ((_a = states.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { type: "danger", open: true, class: sheet$4.classes.WarningAlertContainer },
3130
+ ((_a = states.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.WarningAlertContainer },
3131
3131
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
3132
3132
  index.h("strong", null, text.error.generalTitle),
3133
3133
  index.h("br", null),
@@ -3194,8 +3194,34 @@ function getExpiresSoon(submissionDate, expiryDate) {
3194
3194
  return false;
3195
3195
  return (((_a = luxon.luxon.DateTime.fromMillis(expiryDate).diff(luxon.luxon.DateTime.fromMillis(submissionDate), "days")) === null || _a === void 0 ? void 0 : _a.days) <= 30);
3196
3196
  }
3197
+ function getCountryName(countryCode, locale) {
3198
+ if (!countryCode)
3199
+ return undefined;
3200
+ // @ts-ignore: DisplayNames exists on Intl
3201
+ return new Intl.DisplayNames([locale.replace("_", "-")], {
3202
+ type: "region",
3203
+ }).of([countryCode]);
3204
+ }
3205
+ function getSubRegionName(regionCode) {
3206
+ var _a;
3207
+ const regions = [...PayoutDetailsCard_stories.INDIRECT_TAX_PROVINCES, ...PayoutDetailsCard_stories.INDIRECT_TAX_SPAIN_REGIONS];
3208
+ return (_a = regions.find((r) => r.regionCode === regionCode)) === null || _a === void 0 ? void 0 : _a.displayName;
3209
+ }
3210
+ function getIndirectTaxType(taxInformation) {
3211
+ var _a;
3212
+ const regions = [...PayoutDetailsCard_stories.INDIRECT_TAX_PROVINCES, ...PayoutDetailsCard_stories.INDIRECT_TAX_SPAIN_REGIONS];
3213
+ if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.indirectTaxRegion) {
3214
+ return (_a = regions.find((r) => r.regionCode === (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.indirectTaxRegion))) === null || _a === void 0 ? void 0 : _a.taxType;
3215
+ }
3216
+ // Spain regions only have VAT type
3217
+ if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.withholdingTaxCountryCode)
3218
+ return "VAT";
3219
+ if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.indirectTaxCountryCode) {
3220
+ return PayoutDetailsCard_stories.vatLabels[taxInformation.indirectTaxCountryCode] || "Indirect Tax";
3221
+ }
3222
+ }
3197
3223
  const useTaxAndCashDashboard = (props) => {
3198
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
3224
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
3199
3225
  const setStep = data.useSetParent(data.TAX_CONTEXT_NAMESPACE);
3200
3226
  const setContext = data.useSetParent(data.TAX_FORM_CONTEXT_NAMESPACE);
3201
3227
  const locale = index_module.N();
@@ -3230,7 +3256,7 @@ const useTaxAndCashDashboard = (props) => {
3230
3256
  });
3231
3257
  setStep("/4");
3232
3258
  };
3233
- const provinceName = (_e = PayoutDetailsCard_stories.INDIRECT_TAX_PROVINCES.find((p) => p.provinceCode === (publisher === null || publisher === void 0 ? void 0 : publisher.indirectTaxSubdivision))) === null || _e === void 0 ? void 0 : _e.displayName;
3259
+ const provinceName = (_e = PayoutDetailsCard_stories.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 || _e === void 0 ? void 0 : _e.displayName;
3234
3260
  return {
3235
3261
  states: {
3236
3262
  dateSubmitted,
@@ -3238,22 +3264,16 @@ const useTaxAndCashDashboard = (props) => {
3238
3264
  documentType,
3239
3265
  documentTypeString: PayoutDetailsCard_stories.taxTypeToName(documentType),
3240
3266
  status: (_f = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _f === void 0 ? void 0 : _f.status,
3241
- //AL TODO ADD SUB-REGION
3242
- subRegion: "",
3243
- // AL TODO: subRegionTaxNumber
3244
- subRegionTaxNumber: 0,
3245
- // AL TODO: qstNumber
3246
- qstNumber: 0,
3247
- indirectTaxType: (_g = data$1 === null || data$1 === void 0 ? void 0 : data$1.user.customFields) === null || _g === void 0 ? void 0 : _g.__indirectTaxType,
3248
- indirectTaxNumber: (_h = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _h === void 0 ? void 0 : _h.indirectTaxId,
3267
+ subRegion: getSubRegionName((_g = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _g === void 0 ? void 0 : _g.indirectTaxRegion),
3268
+ subRegionTaxNumber: (_h = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _h === void 0 ? void 0 : _h.withholdingTaxId,
3269
+ qstNumber: (_j = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _j === void 0 ? void 0 : _j.additionalTaxId,
3270
+ indirectTaxType: getIndirectTaxType(publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation),
3271
+ indirectTaxNumber: (_k = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _k === void 0 ? void 0 : _k.indirectTaxId,
3249
3272
  isBusinessEntity: (publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType) === "W8BENE",
3250
3273
  province: provinceName,
3251
- country: ((_j = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _j === void 0 ? void 0 : _j.indirectTaxCountryCode) ? // @ts-ignore: DisplayNames does exist on Intl
3252
- new Intl.DisplayNames([locale.replaceAll("_", "-")], {
3253
- type: "language",
3254
- }).of([publisher.indirectTaxCountry])
3255
- : undefined,
3256
- notRegistered: (publisher === null || publisher === void 0 ? void 0 : publisher.indirectTaxOption) === "NO_TAX",
3274
+ country: getCountryName((_l = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _l === void 0 ? void 0 : _l.indirectTaxCountryCode, locale),
3275
+ // TODO: Remove these states since we aren't supporting autofill of saved values
3276
+ notRegistered: false,
3257
3277
  noFormNeeded: !documentType,
3258
3278
  expiresSoon,
3259
3279
  disabled: loading,
@@ -3614,13 +3634,13 @@ const UserInfoFormView = (props) => {
3614
3634
  index.h("div", null,
3615
3635
  !states.hideSteps && index.h("p", null, text.formStep),
3616
3636
  index.h("h3", null, text.personalInformation))),
3617
- ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { type: "warning", open: true, class: sheet$5.classes.AlertContainer },
3637
+ ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$5.classes.AlertContainer },
3618
3638
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
3619
3639
  index.h("strong", null, text.error.generalTitle),
3620
3640
  index.h("br", null),
3621
3641
  text.error.generalDescription)),
3622
3642
  states.isPartner ||
3623
- (states.isUser && (index.h("sl-alert", { type: "primary", open: true, class: sheet$5.classes.PartnerAlertContainer },
3643
+ (states.isUser && (index.h("sl-alert", { type: "primary", open: true, class: sheet$5.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
3624
3644
  index.h("sl-icon", { slot: "icon", name: "info-circle" }),
3625
3645
  index.h("strong", null, text.isPartnerAlertHeader),
3626
3646
  index.h("br", null),
@@ -30,7 +30,7 @@ const sqmPortalResetPasswordView = require('./sqm-portal-reset-password-view-d63
30
30
  const sqmPortalVerifyEmailView = require('./sqm-portal-verify-email-view-1e6255e9.js');
31
31
  const ShadowViewAddon = require('./ShadowViewAddon-119ea8d4.js');
32
32
  const sqmPortalContainerView = require('./sqm-portal-container-view-e565003b.js');
33
- const PayoutDetailsCard_stories = require('./PayoutDetailsCard.stories-6e425162.js');
33
+ const PayoutDetailsCard_stories = require('./PayoutDetailsCard.stories-405de68f.js');
34
34
  require('./LoadingView-db1d003f.js');
35
35
 
36
36
  /**
@@ -30,8 +30,9 @@ function extractProps(props, prefix) {
30
30
  }
31
31
 
32
32
  function getCurrentStep(user) {
33
- var _a, _b;
34
- if (!((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) || !((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.connected)) {
33
+ var _a, _b, _c;
34
+ if (!((_b = (_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) === null || _b === void 0 ? void 0 : _b.taxInformation) ||
35
+ !((_c = user.impactConnection) === null || _c === void 0 ? void 0 : _c.connected)) {
35
36
  return "/1";
36
37
  }
37
38
  const { requiredTaxDocumentType, currentTaxDocument, withdrawalSettings } = user.impactConnection.publisher;
@@ -808,7 +808,7 @@ export const TaxAndCashDashboardIndirectTaxCanadaQuebec = () => {
808
808
  isIndirectTaxCanada: true,
809
809
  indirectTaxType: "GST",
810
810
  indirectTaxNumber: "123456",
811
- qstNumber: 44212,
811
+ qstNumber: "44212",
812
812
  isBusinessEntity: true,
813
813
  },
814
814
  } }));
@@ -826,7 +826,7 @@ export const TaxAndCashDashboardIndirectTaxSpain = () => {
826
826
  subRegion: "Madred",
827
827
  indirectTaxType: "VAT",
828
828
  indirectTaxNumber: "123456",
829
- subRegionTaxNumber: 44212,
829
+ subRegionTaxNumber: "44212",
830
830
  isBusinessEntity: true,
831
831
  },
832
832
  } }));
@@ -222,12 +222,12 @@ export const BankingInfoFormView = (props) => {
222
222
  !states.hideSteps && h("p", null, text.formStep),
223
223
  h("h3", { style: { fontSize: "24px" } }, text.taxAndPayouts),
224
224
  h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription)),
225
- ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { type: "warning", open: true, class: sheet.classes.AlertContainer },
225
+ ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet.classes.AlertContainer },
226
226
  h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
227
227
  h("strong", null, text.error.generalTitle),
228
228
  h("br", null),
229
229
  text.error.generalDescription)),
230
- states.isPartner && (h("sl-alert", { type: "primary", open: true, class: sheet.classes.PartnerAlertContainer },
230
+ states.isPartner && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: sheet.classes.PartnerAlertContainer },
231
231
  h("sl-icon", { slot: "icon", name: "info-circle" }),
232
232
  h("strong", null, text.isPartnerAlertHeader),
233
233
  h("br", null),
@@ -143,7 +143,7 @@ export const DocusignFormView = (props) => {
143
143
  h("div", null,
144
144
  !states.hideSteps && h("p", null, text.formStep),
145
145
  h("h3", null, text.taxForm))),
146
- ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { type: "warning", open: true, class: sheet.classes.ErrorAlertContainer },
146
+ ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet.classes.ErrorAlertContainer },
147
147
  h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
148
148
  h("strong", null, text.error.generalTitle),
149
149
  h("br", null),
@@ -37,9 +37,9 @@ export function useDocusignForm(props) {
37
37
  const [formSubmitted, setFormSubmitted] = useState(false);
38
38
  const [errors, setErrors] = useState({});
39
39
  const [loading, setLoading] = useState(false);
40
- const existingDocumentType = ((_c = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _c === void 0 ? void 0 : _c.type) || // Then current form (could be different than required)
41
- (publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType); // Last, the required tax form
42
- const actualDocumentType = existingDocumentType || getDocumentType(participantType);
40
+ const existingDocumentType = (_c = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _c === void 0 ? void 0 : _c.type;
41
+ const actualDocumentType = existingDocumentType ||
42
+ getDocumentType(participantType) || (publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType);
43
43
  useEffect(() => {
44
44
  var _a;
45
45
  if (!((_a = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _a === void 0 ? void 0 : _a.type))
@@ -136,12 +136,12 @@ export const IndirectTaxFormView = (props) => {
136
136
  !states.hideSteps && h("p", null, text.formStep),
137
137
  h("h3", null, text.indirectTax),
138
138
  h("p", { class: classes.DescriptionText }, text.indirectTaxDetailsDescription)),
139
- ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { type: "warning", open: true, class: sheet.classes.AlertContainer },
139
+ ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet.classes.AlertContainer },
140
140
  h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
141
141
  h("strong", null, text.error.generalTitle),
142
142
  h("br", null),
143
143
  text.error.generalDescription)),
144
- states.isPartner && (h("sl-alert", { type: "primary", open: true, class: sheet.classes.PartnerAlertContainer },
144
+ states.isPartner && (h("sl-alert", { type: "primary", open: true, class: sheet.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
145
145
  h("sl-icon", { slot: "icon", name: "info-circle" }),
146
146
  h("strong", null, text.isPartnerAlertHeader),
147
147
  h("br", null),
@@ -745,7 +745,7 @@ export class IndirectTaxForm {
745
745
  "mutable": false,
746
746
  "complexType": {
747
747
  "original": "DemoData<UseIndirectTaxFormResult>",
748
- "resolved": "{ states?: { hideSteps: boolean; disabled: boolean; loading: boolean; isPartner: boolean; formState: { checked: \"hstCanada\" | \"otherRegion\" | \"notRegistered\"; errors: {}; }; }; data?: { esRegions: { regionCode: string; taxType: string; displayName: string; }[]; countries: TaxCountry[]; provinces: { provinceCode: string; taxType: string; displayName: string; }[]; }; refs?: { formRef: Ref<HTMLFormElement>; }; slotProps?: { formState: { selectedRegion?: string; subRegion?: string; subRegionTaxNumber?: string; qstNumber?: string; province?: string; indirectTaxNumber?: string; hasQst?: boolean; hasSubRegionTaxNumber?: boolean; errors?: any; error?: string; }; }; }",
748
+ "resolved": "{ states?: { hideSteps: boolean; disabled: boolean; loading: boolean; isPartner: boolean; formState: { checked: \"hstCanada\" | \"otherRegion\" | \"notRegistered\"; errors: {}; }; }; data?: { esRegions: { regionCode: string; taxType: string; displayName: string; }[]; countries: TaxCountry[]; provinces: { regionCode: string; taxType: string; displayName: string; }[]; }; refs?: { formRef: Ref<HTMLFormElement>; }; slotProps?: { formState: { selectedRegion?: string; subRegion?: string; subRegionTaxNumber?: string; qstNumber?: string; province?: string; indirectTaxNumber?: string; hasQst?: boolean; hasSubRegionTaxNumber?: boolean; errors?: any; error?: string; }; }; }",
749
749
  "references": {
750
750
  "DemoData": {
751
751
  "location": "import",
@@ -31,7 +31,7 @@ function getOption(countries, countryCode) {
31
31
  }
32
32
  }
33
33
  export function useIndirectTaxForm(props) {
34
- var _a, _b, _c, _d;
34
+ var _a, _b, _c, _d, _e;
35
35
  const user = useUserIdentity();
36
36
  const formRef = useRef(null);
37
37
  const context = useParentValue(TAX_FORM_CONTEXT_NAMESPACE);
@@ -61,14 +61,14 @@ export function useIndirectTaxForm(props) {
61
61
  }
62
62
  }, [countrySearch, (_b = _countries === null || _countries === void 0 ? void 0 : _countries.impactPayoutCountries) === null || _b === void 0 ? void 0 : _b.data]);
63
63
  useEffect(() => {
64
- var _a;
64
+ var _a, _b;
65
65
  const user = userData === null || userData === void 0 ? void 0 : userData.user;
66
66
  if (!user)
67
67
  return;
68
- if ((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) {
68
+ if ((_b = (_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) === null || _b === void 0 ? void 0 : _b.taxInformation) {
69
69
  setFormState({
70
- province: user.impactConnection.publisher.indirectTaxSubdivision,
71
- subRegion: user.impactConnection.publisher.indirectTaxSubdivision,
70
+ province: user.impactConnection.publisher.taxInformation.indirectTaxRegion,
71
+ subRegion: user.impactConnection.publisher.taxInformation.indirectTaxRegion,
72
72
  hasQst: !!user.impactConnection.publisher.taxInformation.additionalTaxId,
73
73
  qstNumber: user.impactConnection.publisher.taxInformation.additionalTaxId,
74
74
  hasSubRegionTaxNumber: !!user.impactConnection.publisher.taxInformation.withholdingTaxId,
@@ -161,7 +161,7 @@ export function useIndirectTaxForm(props) {
161
161
  hideSteps: context.hideSteps,
162
162
  disabled: loading || countriesLoading || connectLoading,
163
163
  loading: loading || connectLoading || countriesLoading,
164
- isPartner: !!((_d = (_c = userData === null || userData === void 0 ? void 0 : userData.user) === null || _c === void 0 ? void 0 : _c.impactConnection) === null || _d === void 0 ? void 0 : _d.publisher),
164
+ isPartner: !!((_e = (_d = (_c = userData === null || userData === void 0 ? void 0 : userData.user) === null || _c === void 0 ? void 0 : _c.impactConnection) === null || _d === void 0 ? void 0 : _d.publisher) === null || _e === void 0 ? void 0 : _e.taxInformation),
165
165
  formState: {
166
166
  checked: option,
167
167
  errors,
@@ -4,8 +4,9 @@ import { useParentQuery } from "../../../utils/useParentQuery";
4
4
  import { getContextValueName, useParentState, } from "../../../utils/useParentState";
5
5
  import { COUNTRIES_NAMESPACE, COUNTRIES_QUERY_NAMESPACE, CURRENCIES_NAMESPACE, CURRENCIES_QUERY_NAMESPACE, FINANCE_NETWORK_SETTINGS_NAMESPACE, GET_COUNTRIES, GET_CURRENCIES, GET_FINANCE_NETWORK_SETTINGS, GET_USER, TAX_CONTEXT_NAMESPACE, TAX_FORM_CONTEXT_NAMESPACE, USER_FORM_CONTEXT_NAMESPACE, USER_QUERY_NAMESPACE, } from "./data";
6
6
  function getCurrentStep(user) {
7
- var _a, _b;
8
- if (!((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) || !((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.connected)) {
7
+ var _a, _b, _c;
8
+ if (!((_b = (_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) === null || _b === void 0 ? void 0 : _b.taxInformation) ||
9
+ !((_c = user.impactConnection) === null || _c === void 0 ? void 0 : _c.connected)) {
9
10
  return "/1";
10
11
  }
11
12
  const { requiredTaxDocumentType, currentTaxDocument, withdrawalSettings } = user.impactConnection.publisher;
@@ -25,46 +26,46 @@ export function useTaxAndCash() {
25
26
  const host = useHost();
26
27
  function setupDemo() {
27
28
  // coleton
28
- // const id =
29
- // "0021abad9b19015c190479fdc4ac2491a30c5b744f9603003b07f122a80483df";
30
- // const accountId =
31
- // "0021abad9b19015c190479fdc4ac2491a30c5b744f9603003b07f122a80483df";
29
+ const id = "0a1e1fa178d52ded03e86b6bd01a8a02046d8bef3367634e192746e7119c41e3";
30
+ const accountId = "0a1e1fa178d52ded03e86b6bd01a8a02046d8bef3367634e192746e7119c41e3";
32
31
  // // andy
33
32
  // const id = "12345";
34
33
  // const accountId = "12345";
35
34
  // andy2
36
- const id = "8bf41db67abff15fb0f4de69325d6f1c1fb52cf0ea9100fd646101cd8c0b27b6";
37
- const accountId = "8bf41db67abff15fb0f4de69325d6f1c1fb52cf0ea9100fd646101cd8c0b27b6";
35
+ // const id =
36
+ // "8bf41db67abff15fb0f4de69325d6f1c1fb52cf0ea9100fd646101cd8c0b27b6";
37
+ // const accountId =
38
+ // "8bf41db67abff15fb0f4de69325d6f1c1fb52cf0ea9100fd646101cd8c0b27b6";
38
39
  // sam
39
40
  // const id =
40
41
  // "ea9c677dda4e031bcb559541007ff61179fbe8bf8f6c32e478d97f09d069fd5b";
41
42
  // const accountId =
42
43
  // "ea9c677dda4e031bcb559541007ff61179fbe8bf8f6c32e478d97f09d069fd5b";
43
- // const programId = "22514";
44
- const programId = "22999";
44
+ const programId = "22514";
45
+ // const programId = "22999";
45
46
  //@ts-ignore
46
47
  window.widgetIdent = {
47
- // tenantAlias: "aprh0cfq6y8tk",
48
- tenantAlias: "aswi7zpxl6rjp",
48
+ tenantAlias: "aprh0cfq6y8tk",
49
+ // tenantAlias: "aswi7zpxl6rjp",
49
50
  appDomain: "https://staging.referralsaasquatch.com",
50
51
  programId,
51
52
  };
52
53
  // coleton
53
- // useEffect(() => {
54
- // setUserIdentity({
55
- // accountId,
56
- // id,
57
- // jwt: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IklSTVhzWXk2WVlxcTQ2OTQzN21HOEVSUXQ4UW9LRkJhRzEifQ.eyJ1c2VyIjp7ImlkIjoiMDAyMWFiYWQ5YjE5MDE1YzE5MDQ3OWZkYzRhYzI0OTFhMzBjNWI3NDRmOTYwMzAwM2IwN2YxMjJhODA0ODNkZiIsImFjY291bnRJZCI6IjAwMjFhYmFkOWIxOTAxNWMxOTA0NzlmZGM0YWMyNDkxYTMwYzViNzQ0Zjk2MDMwMDNiMDdmMTIyYTgwNDgzZGYifX0.bPJJiqNQOtVpkyq3X02AgdIOU7We7IVeClu5MWhbJWE",
58
- // });
59
- // }, []);
60
- // andy
61
54
  useEffect(() => {
62
55
  setUserIdentity({
63
56
  accountId,
64
57
  id,
65
- jwt: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IklSZkFUVEdOZXRqUDUwNzYxMDNERjVub0d0TDRnQ0hjYjEifQ.eyJ1c2VyIjp7ImlkIjoiOGJmNDFkYjY3YWJmZjE1ZmIwZjRkZTY5MzI1ZDZmMWMxZmI1MmNmMGVhOTEwMGZkNjQ2MTAxY2Q4YzBiMjdiNiIsImFjY291bnRJZCI6IjhiZjQxZGI2N2FiZmYxNWZiMGY0ZGU2OTMyNWQ2ZjFjMWZiNTJjZjBlYTkxMDBmZDY0NjEwMWNkOGMwYjI3YjYifX0.zGP57YKLV0J5WmMpUD61KdGHK600kdO3wlhy_oOr0ts",
58
+ jwt: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IklSTVhzWXk2WVlxcTQ2OTQzN21HOEVSUXQ4UW9LRkJhRzEifQ.eyJ1c2VyIjp7ImlkIjoiMGExZTFmYTE3OGQ1MmRlZDAzZTg2YjZiZDAxYThhMDIwNDZkOGJlZjMzNjc2MzRlMTkyNzQ2ZTcxMTljNDFlMyIsImFjY291bnRJZCI6IjBhMWUxZmExNzhkNTJkZWQwM2U4NmI2YmQwMWE4YTAyMDQ2ZDhiZWYzMzY3NjM0ZTE5Mjc0NmU3MTE5YzQxZTMifX0.OO18YDc8LG3XeKJAug1oahqapmHY61RncrbRiK7Yer4",
66
59
  });
67
60
  }, []);
61
+ // andy
62
+ // useEffect(() => {
63
+ // setUserIdentity({
64
+ // accountId,
65
+ // id,
66
+ // jwt: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IklSZkFUVEdOZXRqUDUwNzYxMDNERjVub0d0TDRnQ0hjYjEifQ.eyJ1c2VyIjp7ImlkIjoiOGJmNDFkYjY3YWJmZjE1ZmIwZjRkZTY5MzI1ZDZmMWMxZmI1MmNmMGVhOTEwMGZkNjQ2MTAxY2Q4YzBiMjdiNiIsImFjY291bnRJZCI6IjhiZjQxZGI2N2FiZmYxNWZiMGY0ZGU2OTMyNWQ2ZjFjMWZiNTJjZjBlYTkxMDBmZDY0NjEwMWNkOGMwYjI3YjYifX0.zGP57YKLV0J5WmMpUD61KdGHK600kdO3wlhy_oOr0ts",
67
+ // });
68
+ // }, []);
68
69
  // sam
69
70
  // useEffect(() => {
70
71
  // setUserIdentity({
@@ -147,7 +147,7 @@ export const TaxAndCashDashboardView = (props) => {
147
147
  h("p", null, text.invalidForm))),
148
148
  };
149
149
  const alertMap = {
150
- NOT_ACTIVE: (h("sl-alert", { type: "danger", open: true, class: sheet.classes.WarningAlertContainer },
150
+ NOT_ACTIVE: (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet.classes.WarningAlertContainer },
151
151
  h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
152
152
  h("strong", null, intl.formatMessage({
153
153
  id: `taxAlertHeaderNotActive`,
@@ -198,7 +198,7 @@ export const TaxAndCashDashboardView = (props) => {
198
198
  return (h("div", null,
199
199
  h("div", null,
200
200
  h("style", { type: "text/css" }, styleString),
201
- ((_a = states.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { type: "danger", open: true, class: sheet.classes.WarningAlertContainer },
201
+ ((_a = states.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet.classes.WarningAlertContainer },
202
202
  h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
203
203
  h("strong", null, text.error.generalTitle),
204
204
  h("br", null),
@@ -848,7 +848,7 @@ export class TaxAndCashDashboard {
848
848
  "mutable": false,
849
849
  "complexType": {
850
850
  "original": "DemoData<UseTaxAndCashDashboardResult>",
851
- "resolved": "{ states?: { status?: string; documentType: TaxDocumentType; documentTypeString: string; disabled?: boolean; dateSubmitted?: string; dateExpired?: string; expiresSoon?: boolean; noFormNeeded?: boolean; indirectTaxType?: string; qstNumber?: number; subRegionTaxNumber?: number; subRegion?: string; indirectTaxNumber?: string; province?: string; country?: string; notRegistered?: boolean; isIndirectTaxCanada?: boolean; isBusinessEntity: boolean; loading?: boolean; errors?: { general?: boolean; }; }; slots?: { payoutDetailsCardSlot: VNode; }; }",
851
+ "resolved": "{ states?: { status?: string; documentType: TaxDocumentType; documentTypeString: string; disabled?: boolean; dateSubmitted?: string; dateExpired?: string; expiresSoon?: boolean; noFormNeeded?: boolean; indirectTaxType?: string; qstNumber?: string; subRegionTaxNumber?: string; subRegion?: string; indirectTaxNumber?: string; province?: string; country?: string; notRegistered?: boolean; isIndirectTaxCanada?: boolean; isBusinessEntity: boolean; loading?: boolean; errors?: { general?: boolean; }; }; slots?: { payoutDetailsCardSlot: VNode; }; }",
852
852
  "references": {
853
853
  "DemoData": {
854
854
  "location": "import",