@saasquatch/mint-components 1.8.0-126 → 1.8.0-127

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 (35) hide show
  1. package/dist/cjs/sqm-banking-info-form_16.cjs.entry.js +30 -35
  2. package/dist/collection/components/sqm-invoice-table/cells/sqm-invoice-table-data-cell.js +0 -1
  3. package/dist/collection/components/sqm-invoice-table/sqm-invoice-table.js +0 -1
  4. package/dist/collection/components/sqm-invoice-table/useInvoiceTable.js +0 -1
  5. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +12 -12
  6. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +3 -3
  7. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +2 -2
  8. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.js +0 -1
  9. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/usePayoutDetailsCard.js +8 -10
  10. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +18 -17
  11. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +3 -4
  12. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +1 -1
  13. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +4 -3
  14. package/dist/esm/sqm-banking-info-form_16.entry.js +30 -35
  15. package/dist/esm-es5/sqm-banking-info-form_16.entry.js +1 -1
  16. package/dist/mint-components/mint-components.esm.js +1 -1
  17. package/dist/mint-components/p-121809a2.system.js +1 -1
  18. package/dist/mint-components/p-3c4a698c.entry.js +148 -0
  19. package/dist/mint-components/p-d676b828.system.entry.js +1 -0
  20. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.d.ts +6 -6
  21. package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.d.ts +1 -1
  22. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +9 -8
  23. package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.d.ts +2 -1
  24. package/dist/types/components.d.ts +36 -32
  25. package/dist/types/global/android.d.ts +7 -0
  26. package/dist/types/global/demo.d.ts +2 -0
  27. package/dist/types/stories/features.d.ts +4 -0
  28. package/dist/types/stories/templates.d.ts +4 -0
  29. package/docs/TaxAndCash--2024-03-14--14-20-26.xlsx +0 -0
  30. package/docs/docs.docx +0 -0
  31. package/docs/raisins.json +1 -1
  32. package/grapesjs/grapesjs.js +1 -1
  33. package/package.json +1 -1
  34. package/dist/mint-components/p-17499dde.system.entry.js +0 -1
  35. package/dist/mint-components/p-c83aeea2.entry.js +0 -148
@@ -1526,10 +1526,10 @@ function useBankingInfoForm(props) {
1526
1526
  };
1527
1527
  }
1528
1528
  const currentPaymentOption = paymentOptions === null || paymentOptions === void 0 ? void 0 : paymentOptions.find((paymentOption) => {
1529
- if (paymentOption.countryCode !== initialData.bankCountry)
1530
- return false;
1531
1529
  if (initialData.paymentMethod === "PAYPAL" &&
1532
- paymentOption.defaultFinancePaymentMethodId !== 7)
1530
+ paymentOption.defaultFinancePaymentMethodId === 7)
1531
+ return true;
1532
+ if (paymentOption.countryCode !== initialData.bankCountry)
1533
1533
  return false;
1534
1534
  return true;
1535
1535
  });
@@ -1805,18 +1805,18 @@ const BankingInfoForm = class {
1805
1805
  */
1806
1806
  this.classificationEntityLabel = "Classification Entity";
1807
1807
  /**
1808
- * Label text for the business select item
1809
- * @uiName Business select item label
1808
+ * One of three options listed for the classification field
1809
+ * @uiName Business classification option
1810
1810
  */
1811
1811
  this.businessSelectItemLabel = "Business";
1812
1812
  /**
1813
- * Label text for the individual select item
1814
- * @uiName Individual select item label
1813
+ * One of three options listed for the classification field
1814
+ * @uiName Individual classification option
1815
1815
  */
1816
1816
  this.individualSelectItemLabel = "Individual";
1817
1817
  /**
1818
- * Label text for the foreign select item
1819
- * @uiName Foreign select item label
1818
+ * One of three options listed for the classification field
1819
+ * @uiName Foreign classification option
1820
1820
  */
1821
1821
  this.foreignSelectItemLabel = "Foreign";
1822
1822
  /**
@@ -3209,7 +3209,7 @@ const IndirectTaxForm = class {
3209
3209
  this.isRegisteredSubRegionIncomeTax = "I am an individual registered for Income Tax purposes in Spain, and withholding tax will apply to any payments made to me.";
3210
3210
  /**
3211
3211
  * Displayed to participants registered in Spain.
3212
- * @uiName Sub-region input label
3212
+ * @uiName Sub-region of indirect tax field label
3213
3213
  */
3214
3214
  this.subRegion = "Sub-region";
3215
3215
  /**
@@ -3462,7 +3462,6 @@ function useInvoiceTable(props, emptyElement, loadingElement) {
3462
3462
  limit: props.perPage,
3463
3463
  offset: 0,
3464
3464
  }, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
3465
- console.log({ invoicesData });
3466
3465
  const tick = reRender.useRerenderListener();
3467
3466
  const components = useChildElements.useChildElements();
3468
3467
  const data = invoicesData === null || invoicesData === void 0 ? void 0 : invoicesData.data;
@@ -3664,7 +3663,6 @@ function useInvoiceTableDemo(props, emptyElement, loadingElement) {
3664
3663
  ((_a = component === null || component === void 0 ? void 0 : component.firstElementChild) === null || _a === void 0 ? void 0 : _a.getAttribute("slot")) !== "loading" &&
3665
3664
  ((_b = component === null || component === void 0 ? void 0 : component.firstElementChild) === null || _b === void 0 ? void 0 : _b.getAttribute("slot")) !== "empty";
3666
3665
  });
3667
- console.log({ componentData, columnComponents });
3668
3666
  // get the column titles (renderLabel is asynchronous)
3669
3667
  const columnsPromise = columnComponents === null || columnComponents === void 0 ? void 0 : columnComponents.map(async (c, idx) => {
3670
3668
  var _a;
@@ -3740,7 +3738,6 @@ const InvoiceTableDataCell = class {
3740
3738
  }
3741
3739
  disconnectedCallback() { }
3742
3740
  render() {
3743
- console.log(this.data);
3744
3741
  return this.data;
3745
3742
  }
3746
3743
  };
@@ -3982,7 +3979,6 @@ function PayoutDetailsCardView(props) {
3982
3979
  index.h("sl-skeleton", { class: classes.SkeletonOne })));
3983
3980
  };
3984
3981
  const renderStatusBadge = (status, statusBadgeText) => {
3985
- console.log(status, statusBadgeText, "debug status text");
3986
3982
  const badgeType = status === "nextPayout" ? "success" : "primary";
3987
3983
  const statusText = global.intl.formatMessage({
3988
3984
  id: "badgeText",
@@ -4024,7 +4020,7 @@ function PayoutDetailsCardView(props) {
4024
4020
  }
4025
4021
 
4026
4022
  function usePayoutDetailsCard(props) {
4027
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
4023
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
4028
4024
  const { data, loading } = useParentQueryValue(USER_QUERY_NAMESPACE);
4029
4025
  const publisher = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
4030
4026
  function getPayoutDetailedStatusText(paymentDay) {
@@ -4058,24 +4054,22 @@ function usePayoutDetailsCard(props) {
4058
4054
  });
4059
4055
  }
4060
4056
  }
4061
- // TODO: need to which timezone payouts are processed in
4062
4057
  const paymentDay = getPayoutDetailedStatusText((_c = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _c === void 0 ? void 0 : _c.paymentDay);
4063
4058
  const isPayoutToday = luxon.luxon.DateTime.now().toFormat("LLL dd, yyyy") === paymentDay;
4064
- console.log({ threshold: (_d = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _d === void 0 ? void 0 : _d.paymentThreshold });
4065
4059
  return {
4066
4060
  states: {
4067
4061
  loading,
4068
- thresholdBalance: `${publisher === null || publisher === void 0 ? void 0 : publisher.currency}${(_e = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _e === void 0 ? void 0 : _e.paymentThreshold}`,
4069
- balance: (_f = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _f === void 0 ? void 0 : _f.balance,
4070
- badgeStatus: ((_g = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _g === void 0 ? void 0 : _g.paymentSchedulingType) !== "FIXED_DAY"
4062
+ thresholdBalance: `${publisher === null || publisher === void 0 ? void 0 : publisher.currency}${(_d = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _d === void 0 ? void 0 : _d.paymentThreshold}`,
4063
+ balance: (_e = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _e === void 0 ? void 0 : _e.balance,
4064
+ badgeStatus: ((_f = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _f === void 0 ? void 0 : _f.paymentSchedulingType) !== "FIXED_DAY"
4071
4065
  ? "thresholdPayout"
4072
4066
  : isPayoutToday
4073
4067
  ? "payoutToday"
4074
4068
  : "nextPayout",
4075
- payoutType: (_h = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _h === void 0 ? void 0 : _h.paymentMethod,
4076
- error: (_j = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _j === void 0 ? void 0 : _j.hold,
4077
- paypalEmailAddress: (_k = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _k === void 0 ? void 0 : _k.paypalEmailAddress,
4078
- cardNumberPreview: (_l = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _l === void 0 ? void 0 : _l.bankAccountNumber,
4069
+ payoutType: (_g = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _g === void 0 ? void 0 : _g.paymentMethod,
4070
+ error: (_h = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _h === void 0 ? void 0 : _h.hold,
4071
+ paypalEmailAddress: (_j = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _j === void 0 ? void 0 : _j.paypalEmailAddress,
4072
+ cardNumberPreview: (_k = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _k === void 0 ? void 0 : _k.bankAccountNumber,
4079
4073
  nextPayoutDate: paymentDay,
4080
4074
  },
4081
4075
  text: props.getTextProps(),
@@ -4297,7 +4291,6 @@ function useTaxAndCash() {
4297
4291
  if (supportedCurrencies)
4298
4292
  setCurrenciesContext(supportedCurrencies);
4299
4293
  }, [supportedCurrencies]);
4300
- // console.log({ errors });
4301
4294
  stencilHooks_module.useEffect(() => {
4302
4295
  if (errors) {
4303
4296
  setStep("/error");
@@ -4377,12 +4370,13 @@ const TaxAndCashMonolith = class {
4377
4370
  */
4378
4371
  this.step1_personalInformation = "Personal Information";
4379
4372
  /**
4380
- * Label text for tax and banking collection checkbox
4373
+ Edit the property called terms and conditions text to change what's displayed for {termsAndConditionsLink}.
4381
4374
  * @uiName Terms and conditions checkbox
4382
4375
  * @uiGroup Step 1 Properties
4383
4376
  */
4384
4377
  this.step1_allowBankingCollection = "I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information";
4385
4378
  /**
4379
+ * The text link that appears in the terms and conditions checkbox
4386
4380
  * @uiName Terms and conditions text
4387
4381
  * @uiGroup Step 1 Properties
4388
4382
  * @uiWidget textArea
@@ -4483,7 +4477,7 @@ const TaxAndCashMonolith = class {
4483
4477
  this.step2_isRegisteredSubRegionIncomeTax = "I am an individual registered for Income Tax purposes in Spain, and withholding tax will apply to any payments made to me.";
4484
4478
  /**
4485
4479
  * Displayed to participants registered in Spain.
4486
- * @uiName Sub-region input label
4480
+ * @uiName Sub-region of indirect tax field label
4487
4481
  * @uiGroup Step 2 Properties
4488
4482
  */
4489
4483
  this.step2_subRegion = "Sub-region";
@@ -4712,20 +4706,20 @@ const TaxAndCashMonolith = class {
4712
4706
  */
4713
4707
  this.step4_classificationEntityLabel = "Classification entity";
4714
4708
  /**
4715
- * Label text for the business select item
4716
- * @uiName Business select item label
4709
+ * One of three options listed for the classification field
4710
+ * @uiName Business classification option
4717
4711
  * @uiGroup Step 4 Properties
4718
4712
  */
4719
4713
  this.step4_businessSelectItemLabel = "Business";
4720
4714
  /**
4721
- * Label text for the individual select item
4722
- * @uiName Individual select item label
4715
+ * One of three options listed for the classification field
4716
+ * @uiName Individual classification option
4723
4717
  * @uiGroup Step 4 Properties
4724
4718
  */
4725
4719
  this.step4_individualSelectItemLabel = "Individual";
4726
4720
  /**
4727
- * Label text for the foreign select item
4728
- * @uiName Foreign select item label
4721
+ * One of three options listed for the classification field
4722
+ * @uiName Foreign classification option
4729
4723
  * @uiGroup Step 4 Properties
4730
4724
  */
4731
4725
  this.step4_foreignSelectItemLabel = "Foreign";
@@ -5558,7 +5552,7 @@ function getCountryName(countryCode, locale) {
5558
5552
  if (!countryCode)
5559
5553
  return undefined;
5560
5554
  // @ts-ignore: DisplayNames exists on Intl
5561
- return new Intl.DisplayNames([locale.replace("_", "-")], {
5555
+ return new Intl.DisplayNames([(locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en-US"], {
5562
5556
  type: "region",
5563
5557
  }).of([countryCode]);
5564
5558
  }
@@ -6395,11 +6389,12 @@ const TaxForm = class {
6395
6389
  */
6396
6390
  this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact Support.";
6397
6391
  /**
6398
- * Label text for tax and banking collection checkbox
6392
+ * Edit the property called terms and conditions text to change what's displayed for {termsAndConditionsLink}.
6399
6393
  * @uiName Terms and conditions checkbox
6400
6394
  */
6401
6395
  this.allowBankingCollection = "I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information";
6402
6396
  /**
6397
+ * The text link that appears in the terms and conditions checkbox
6403
6398
  * @uiName Terms and conditions text
6404
6399
  * @uiWidget textArea
6405
6400
  */
@@ -7,7 +7,6 @@ export class InvoiceTableDataCell {
7
7
  }
8
8
  disconnectedCallback() { }
9
9
  render() {
10
- console.log(this.data);
11
10
  return this.data;
12
11
  }
13
12
  static get is() { return "sqm-invoice-table-data-cell"; }
@@ -390,7 +390,6 @@ function useInvoiceTableDemo(props, emptyElement, loadingElement) {
390
390
  ((_a = component === null || component === void 0 ? void 0 : component.firstElementChild) === null || _a === void 0 ? void 0 : _a.getAttribute("slot")) !== "loading" &&
391
391
  ((_b = component === null || component === void 0 ? void 0 : component.firstElementChild) === null || _b === void 0 ? void 0 : _b.getAttribute("slot")) !== "empty";
392
392
  });
393
- console.log({ componentData, columnComponents });
394
393
  // get the column titles (renderLabel is asynchronous)
395
394
  const columnsPromise = columnComponents === null || columnComponents === void 0 ? void 0 : columnComponents.map(async (c, idx) => {
396
395
  var _a;
@@ -49,7 +49,6 @@ export function useInvoiceTable(props, emptyElement, loadingElement) {
49
49
  limit: props.perPage,
50
50
  offset: 0,
51
51
  }, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
52
- console.log({ invoicesData });
53
52
  const tick = useRerenderListener();
54
53
  const components = useChildElements();
55
54
  const data = invoicesData === null || invoicesData === void 0 ? void 0 : invoicesData.data;
@@ -129,18 +129,18 @@ export class BankingInfoForm {
129
129
  */
130
130
  this.classificationEntityLabel = "Classification Entity";
131
131
  /**
132
- * Label text for the business select item
133
- * @uiName Business select item label
132
+ * One of three options listed for the classification field
133
+ * @uiName Business classification option
134
134
  */
135
135
  this.businessSelectItemLabel = "Business";
136
136
  /**
137
- * Label text for the individual select item
138
- * @uiName Individual select item label
137
+ * One of three options listed for the classification field
138
+ * @uiName Individual classification option
139
139
  */
140
140
  this.individualSelectItemLabel = "Individual";
141
141
  /**
142
- * Label text for the foreign select item
143
- * @uiName Foreign select item label
142
+ * One of three options listed for the classification field
143
+ * @uiName Foreign classification option
144
144
  */
145
145
  this.foreignSelectItemLabel = "Foreign";
146
146
  /**
@@ -919,10 +919,10 @@ export class BankingInfoForm {
919
919
  "optional": false,
920
920
  "docs": {
921
921
  "tags": [{
922
- "text": "Business select item label",
922
+ "text": "Business classification option",
923
923
  "name": "uiName"
924
924
  }],
925
- "text": "Label text for the business select item"
925
+ "text": "One of three options listed for the classification field"
926
926
  },
927
927
  "attribute": "business-select-item-label",
928
928
  "reflect": false,
@@ -940,10 +940,10 @@ export class BankingInfoForm {
940
940
  "optional": false,
941
941
  "docs": {
942
942
  "tags": [{
943
- "text": "Individual select item label",
943
+ "text": "Individual classification option",
944
944
  "name": "uiName"
945
945
  }],
946
- "text": "Label text for the individual select item"
946
+ "text": "One of three options listed for the classification field"
947
947
  },
948
948
  "attribute": "individual-select-item-label",
949
949
  "reflect": false,
@@ -961,10 +961,10 @@ export class BankingInfoForm {
961
961
  "optional": false,
962
962
  "docs": {
963
963
  "tags": [{
964
- "text": "Foreign select item label",
964
+ "text": "Foreign classification option",
965
965
  "name": "uiName"
966
966
  }],
967
- "text": "Label text for the foreign select item"
967
+ "text": "One of three options listed for the classification field"
968
968
  },
969
969
  "attribute": "foreign-select-item-label",
970
970
  "reflect": false,
@@ -349,10 +349,10 @@ export function useBankingInfoForm(props) {
349
349
  };
350
350
  }
351
351
  const currentPaymentOption = paymentOptions === null || paymentOptions === void 0 ? void 0 : paymentOptions.find((paymentOption) => {
352
- if (paymentOption.countryCode !== initialData.bankCountry)
353
- return false;
354
352
  if (initialData.paymentMethod === "PAYPAL" &&
355
- paymentOption.defaultFinancePaymentMethodId !== 7)
353
+ paymentOption.defaultFinancePaymentMethodId === 7)
354
+ return true;
355
+ if (paymentOption.countryCode !== initialData.bankCountry)
356
356
  return false;
357
357
  return true;
358
358
  });
@@ -91,7 +91,7 @@ export class IndirectTaxForm {
91
91
  this.isRegisteredSubRegionIncomeTax = "I am an individual registered for Income Tax purposes in Spain, and withholding tax will apply to any payments made to me.";
92
92
  /**
93
93
  * Displayed to participants registered in Spain.
94
- * @uiName Sub-region input label
94
+ * @uiName Sub-region of indirect tax field label
95
95
  */
96
96
  this.subRegion = "Sub-region";
97
97
  /**
@@ -563,7 +563,7 @@ export class IndirectTaxForm {
563
563
  "optional": false,
564
564
  "docs": {
565
565
  "tags": [{
566
- "text": "Sub-region input label",
566
+ "text": "Sub-region of indirect tax field label",
567
567
  "name": "uiName"
568
568
  }],
569
569
  "text": "Displayed to participants registered in Spain."
@@ -149,7 +149,6 @@ export function PayoutDetailsCardView(props) {
149
149
  h("sl-skeleton", { class: classes.SkeletonOne })));
150
150
  };
151
151
  const renderStatusBadge = (status, statusBadgeText) => {
152
- console.log(status, statusBadgeText, "debug status text");
153
152
  const badgeType = status === "nextPayout" ? "success" : "primary";
154
153
  const statusText = intl.formatMessage({
155
154
  id: "badgeText",
@@ -3,7 +3,7 @@ import { intl } from "../../../global/global";
3
3
  import { useParentQueryValue } from "../../../utils/useParentQuery";
4
4
  import { USER_QUERY_NAMESPACE } from "../sqm-tax-and-cash/data";
5
5
  export function usePayoutDetailsCard(props) {
6
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
6
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
7
7
  const { data, loading } = useParentQueryValue(USER_QUERY_NAMESPACE);
8
8
  const publisher = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
9
9
  function getPayoutDetailedStatusText(paymentDay) {
@@ -37,24 +37,22 @@ export function usePayoutDetailsCard(props) {
37
37
  });
38
38
  }
39
39
  }
40
- // TODO: need to which timezone payouts are processed in
41
40
  const paymentDay = getPayoutDetailedStatusText((_c = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _c === void 0 ? void 0 : _c.paymentDay);
42
41
  const isPayoutToday = DateTime.now().toFormat("LLL dd, yyyy") === paymentDay;
43
- console.log({ threshold: (_d = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _d === void 0 ? void 0 : _d.paymentThreshold });
44
42
  return {
45
43
  states: {
46
44
  loading,
47
- thresholdBalance: `${publisher === null || publisher === void 0 ? void 0 : publisher.currency}${(_e = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _e === void 0 ? void 0 : _e.paymentThreshold}`,
48
- balance: (_f = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _f === void 0 ? void 0 : _f.balance,
49
- badgeStatus: ((_g = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _g === void 0 ? void 0 : _g.paymentSchedulingType) !== "FIXED_DAY"
45
+ thresholdBalance: `${publisher === null || publisher === void 0 ? void 0 : publisher.currency}${(_d = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _d === void 0 ? void 0 : _d.paymentThreshold}`,
46
+ balance: (_e = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _e === void 0 ? void 0 : _e.balance,
47
+ badgeStatus: ((_f = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _f === void 0 ? void 0 : _f.paymentSchedulingType) !== "FIXED_DAY"
50
48
  ? "thresholdPayout"
51
49
  : isPayoutToday
52
50
  ? "payoutToday"
53
51
  : "nextPayout",
54
- payoutType: (_h = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _h === void 0 ? void 0 : _h.paymentMethod,
55
- error: (_j = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _j === void 0 ? void 0 : _j.hold,
56
- paypalEmailAddress: (_k = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _k === void 0 ? void 0 : _k.paypalEmailAddress,
57
- cardNumberPreview: (_l = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _l === void 0 ? void 0 : _l.bankAccountNumber,
52
+ payoutType: (_g = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _g === void 0 ? void 0 : _g.paymentMethod,
53
+ error: (_h = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _h === void 0 ? void 0 : _h.hold,
54
+ paypalEmailAddress: (_j = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _j === void 0 ? void 0 : _j.paypalEmailAddress,
55
+ cardNumberPreview: (_k = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _k === void 0 ? void 0 : _k.bankAccountNumber,
58
56
  nextPayoutDate: paymentDay,
59
57
  },
60
58
  text: props.getTextProps(),
@@ -58,12 +58,13 @@ export class TaxAndCashMonolith {
58
58
  */
59
59
  this.step1_personalInformation = "Personal Information";
60
60
  /**
61
- * Label text for tax and banking collection checkbox
61
+ Edit the property called terms and conditions text to change what's displayed for {termsAndConditionsLink}.
62
62
  * @uiName Terms and conditions checkbox
63
63
  * @uiGroup Step 1 Properties
64
64
  */
65
65
  this.step1_allowBankingCollection = "I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information";
66
66
  /**
67
+ * The text link that appears in the terms and conditions checkbox
67
68
  * @uiName Terms and conditions text
68
69
  * @uiGroup Step 1 Properties
69
70
  * @uiWidget textArea
@@ -164,7 +165,7 @@ export class TaxAndCashMonolith {
164
165
  this.step2_isRegisteredSubRegionIncomeTax = "I am an individual registered for Income Tax purposes in Spain, and withholding tax will apply to any payments made to me.";
165
166
  /**
166
167
  * Displayed to participants registered in Spain.
167
- * @uiName Sub-region input label
168
+ * @uiName Sub-region of indirect tax field label
168
169
  * @uiGroup Step 2 Properties
169
170
  */
170
171
  this.step2_subRegion = "Sub-region";
@@ -393,20 +394,20 @@ export class TaxAndCashMonolith {
393
394
  */
394
395
  this.step4_classificationEntityLabel = "Classification entity";
395
396
  /**
396
- * Label text for the business select item
397
- * @uiName Business select item label
397
+ * One of three options listed for the classification field
398
+ * @uiName Business classification option
398
399
  * @uiGroup Step 4 Properties
399
400
  */
400
401
  this.step4_businessSelectItemLabel = "Business";
401
402
  /**
402
- * Label text for the individual select item
403
- * @uiName Individual select item label
403
+ * One of three options listed for the classification field
404
+ * @uiName Individual classification option
404
405
  * @uiGroup Step 4 Properties
405
406
  */
406
407
  this.step4_individualSelectItemLabel = "Individual";
407
408
  /**
408
- * Label text for the foreign select item
409
- * @uiName Foreign select item label
409
+ * One of three options listed for the classification field
410
+ * @uiName Foreign classification option
410
411
  * @uiGroup Step 4 Properties
411
412
  */
412
413
  this.step4_foreignSelectItemLabel = "Foreign";
@@ -1100,7 +1101,7 @@ export class TaxAndCashMonolith {
1100
1101
  "text": "Step 1 Properties",
1101
1102
  "name": "uiGroup"
1102
1103
  }],
1103
- "text": "Label text for tax and banking collection checkbox"
1104
+ "text": "Edit the property called terms and conditions text to change what's displayed for {termsAndConditionsLink}."
1104
1105
  },
1105
1106
  "attribute": "step-1_allow-banking-collection",
1106
1107
  "reflect": false,
@@ -1127,7 +1128,7 @@ export class TaxAndCashMonolith {
1127
1128
  "text": "textArea",
1128
1129
  "name": "uiWidget"
1129
1130
  }],
1130
- "text": ""
1131
+ "text": "The text link that appears in the terms and conditions checkbox"
1131
1132
  },
1132
1133
  "attribute": "step-1_terms-and-conditions-label",
1133
1134
  "reflect": false,
@@ -1520,7 +1521,7 @@ export class TaxAndCashMonolith {
1520
1521
  "optional": false,
1521
1522
  "docs": {
1522
1523
  "tags": [{
1523
- "text": "Sub-region input label",
1524
+ "text": "Sub-region of indirect tax field label",
1524
1525
  "name": "uiName"
1525
1526
  }, {
1526
1527
  "text": "Step 2 Properties",
@@ -2501,13 +2502,13 @@ export class TaxAndCashMonolith {
2501
2502
  "optional": false,
2502
2503
  "docs": {
2503
2504
  "tags": [{
2504
- "text": "Business select item label",
2505
+ "text": "Business classification option",
2505
2506
  "name": "uiName"
2506
2507
  }, {
2507
2508
  "text": "Step 4 Properties",
2508
2509
  "name": "uiGroup"
2509
2510
  }],
2510
- "text": "Label text for the business select item"
2511
+ "text": "One of three options listed for the classification field"
2511
2512
  },
2512
2513
  "attribute": "step-4_business-select-item-label",
2513
2514
  "reflect": false,
@@ -2525,13 +2526,13 @@ export class TaxAndCashMonolith {
2525
2526
  "optional": false,
2526
2527
  "docs": {
2527
2528
  "tags": [{
2528
- "text": "Individual select item label",
2529
+ "text": "Individual classification option",
2529
2530
  "name": "uiName"
2530
2531
  }, {
2531
2532
  "text": "Step 4 Properties",
2532
2533
  "name": "uiGroup"
2533
2534
  }],
2534
- "text": "Label text for the individual select item"
2535
+ "text": "One of three options listed for the classification field"
2535
2536
  },
2536
2537
  "attribute": "step-4_individual-select-item-label",
2537
2538
  "reflect": false,
@@ -2549,13 +2550,13 @@ export class TaxAndCashMonolith {
2549
2550
  "optional": false,
2550
2551
  "docs": {
2551
2552
  "tags": [{
2552
- "text": "Foreign select item label",
2553
+ "text": "Foreign classification option",
2553
2554
  "name": "uiName"
2554
2555
  }, {
2555
2556
  "text": "Step 4 Properties",
2556
2557
  "name": "uiGroup"
2557
2558
  }],
2558
- "text": "Label text for the foreign select item"
2559
+ "text": "One of three options listed for the classification field"
2559
2560
  },
2560
2561
  "attribute": "step-4_foreign-select-item-label",
2561
2562
  "reflect": false,
@@ -22,8 +22,8 @@ export function useTaxAndCash() {
22
22
  const host = useHost();
23
23
  function setupDemo() {
24
24
  // coleton
25
- const id = "7fb4efdc1d86f2c0d5d9c82fb4c70cee46a3dfaa29618e32b35ad4a1263d6f97";
26
- const accountId = "7fb4efdc1d86f2c0d5d9c82fb4c70cee46a3dfaa29618e32b35ad4a1263d6f97";
25
+ const id = "5bd061e1c73e02a1e726ab7db2b4b4648e83eff10e66bccc8d1937c40c1b49a1";
26
+ const accountId = "5bd061e1c73e02a1e726ab7db2b4b4648e83eff10e66bccc8d1937c40c1b49a1";
27
27
  // andy3
28
28
  // const id =
29
29
  // "e061ee21b45eff8ada22845d441c6a2cd7190af1718a55452ad2d44b020915a7";
@@ -56,7 +56,7 @@ export function useTaxAndCash() {
56
56
  setUserIdentity({
57
57
  accountId,
58
58
  id,
59
- jwt: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IklSTVhzWXk2WVlxcTQ2OTQzN21HOEVSUXQ4UW9LRkJhRzEifQ.eyJ1c2VyIjp7ImlkIjoiN2ZiNGVmZGMxZDg2ZjJjMGQ1ZDljODJmYjRjNzBjZWU0NmEzZGZhYTI5NjE4ZTMyYjM1YWQ0YTEyNjNkNmY5NyIsImFjY291bnRJZCI6IjdmYjRlZmRjMWQ4NmYyYzBkNWQ5YzgyZmI0YzcwY2VlNDZhM2RmYWEyOTYxOGUzMmIzNWFkNGExMjYzZDZmOTciLCJlbWFpbCI6ImNvbGV0b24uYW5uZXR0K25ldzNAaW1wYWN0LmNvbSJ9fQ.zt5nCgZ84asLm-xZImOwmJ00vBfvce8aOvsx9J_bp-A",
59
+ jwt: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IklSTVhzWXk2WVlxcTQ2OTQzN21HOEVSUXQ4UW9LRkJhRzEifQ.eyJ1c2VyIjp7ImlkIjoiNWJkMDYxZTFjNzNlMDJhMWU3MjZhYjdkYjJiNGI0NjQ4ZTgzZWZmMTBlNjZiY2NjOGQxOTM3YzQwYzFiNDlhMSIsImFjY291bnRJZCI6IjViZDA2MWUxYzczZTAyYTFlNzI2YWI3ZGIyYjRiNDY0OGU4M2VmZjEwZTY2YmNjYzhkMTkzN2M0MGMxYjQ5YTEiLCJlbWFpbCI6ImFuZHkubHVvK3RocmVzaG9sZEBpbXBhY3QuY29tIn19.NTdsIu4p8qNJGuOTCvGwNPZI_4V7HwNNhQLavO1jPds",
60
60
  });
61
61
  }, []);
62
62
  // andy3
@@ -177,7 +177,6 @@ export function useTaxAndCash() {
177
177
  if (supportedCurrencies)
178
178
  setCurrenciesContext(supportedCurrencies);
179
179
  }, [supportedCurrencies]);
180
- // console.log({ errors });
181
180
  useEffect(() => {
182
181
  if (errors) {
183
182
  setStep("/error");
@@ -17,7 +17,7 @@ function getCountryName(countryCode, locale) {
17
17
  if (!countryCode)
18
18
  return undefined;
19
19
  // @ts-ignore: DisplayNames exists on Intl
20
- return new Intl.DisplayNames([locale.replace("_", "-")], {
20
+ return new Intl.DisplayNames([(locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en-US"], {
21
21
  type: "region",
22
22
  }).of([countryCode]);
23
23
  }
@@ -75,11 +75,12 @@ export class TaxForm {
75
75
  */
76
76
  this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact Support.";
77
77
  /**
78
- * Label text for tax and banking collection checkbox
78
+ * Edit the property called terms and conditions text to change what's displayed for {termsAndConditionsLink}.
79
79
  * @uiName Terms and conditions checkbox
80
80
  */
81
81
  this.allowBankingCollection = "I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information";
82
82
  /**
83
+ * The text link that appears in the terms and conditions checkbox
83
84
  * @uiName Terms and conditions text
84
85
  * @uiWidget textArea
85
86
  */
@@ -446,7 +447,7 @@ export class TaxForm {
446
447
  "text": "Terms and conditions checkbox",
447
448
  "name": "uiName"
448
449
  }],
449
- "text": "Label text for tax and banking collection checkbox"
450
+ "text": "Edit the property called terms and conditions text to change what's displayed for {termsAndConditionsLink}."
450
451
  },
451
452
  "attribute": "allow-banking-collection",
452
453
  "reflect": false,
@@ -470,7 +471,7 @@ export class TaxForm {
470
471
  "text": "textArea",
471
472
  "name": "uiWidget"
472
473
  }],
473
- "text": ""
474
+ "text": "The text link that appears in the terms and conditions checkbox"
474
475
  },
475
476
  "attribute": "terms-and-conditions-label",
476
477
  "reflect": false,