@tesouro/embedded-components-react 0.11.215 → 0.11.217

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 (30) hide show
  1. package/dist/fixtures/index.d.ts +154 -1
  2. package/dist/index.css +0 -3
  3. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index5.js +2 -2
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index14.js +2 -2
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index15.js +49 -49
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index17.js +287 -298
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index18.js +62 -63
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index5.js +12 -54
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index7.js +4 -5
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index8.js +1 -7
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index.js +2 -8
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index11.js +2 -2
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index15.js +45 -2
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index16.js +10 -14
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index17.js +390 -2
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index18.js +3 -3
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillPayWidget.js +9 -9
  18. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  19. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/index.js +12 -9
  20. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/DueDateText/DueDateText.js +2 -2
  21. package/dist/libs/tesouro-embedded-components-react/{bill-pay-widget/bills-list/ui/dist/index19.js → shared/ui/dist/lib/EmptyValue/EmptyValue.js} +6 -6
  22. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/EmptyValue/labels.js +3 -0
  23. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/{DateDisclosure/DateDisclosure.js → HintDisclosure/HintDisclosure.js} +9 -8
  24. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/RowStatusIcon/RowStatusIcon.js +19 -0
  25. package/package.json +1 -1
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index20.js +0 -2
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index21.js +0 -55
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index22.js +0 -17
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index23.js +0 -468
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index24.js +0 -3
@@ -532,6 +532,10 @@ type BusinessDetailsOutput = {
532
532
  * Doing Business As (DBA) name.
533
533
  */
534
534
  dbaName?: null | string;
535
+ /**
536
+ * Two-letter code of the US state the business was formed in, for example "DE".
537
+ */
538
+ formationState?: null | string;
535
539
  /**
536
540
  * Legal business name.
537
541
  */
@@ -1183,7 +1187,9 @@ type EmbeddedBankingBankRequirementsOutput = ({
1183
1187
  requirementsVersion: 'test-mt-bank@2026-04-01';
1184
1188
  } & EmbeddedBankingBankRequirementsTestMtBank20260401Output) | ({
1185
1189
  requirementsVersion: 'test-mt-bank@2099-01-01';
1186
- } & EmbeddedBankingBankRequirementsTestMtBank20990101Output);
1190
+ } & EmbeddedBankingBankRequirementsTestMtBank20990101Output) | ({
1191
+ requirementsVersion: 'test-mt-bank@2100-01-01';
1192
+ } & EmbeddedBankingBankRequirementsTestMtBank21000101Output);
1187
1193
  type EmbeddedBankingBankRequirementsTestMtBank20260101AnnualRevenue = 'UP_TO_100K' | 'UP_TO_250K' | 'UP_TO_500K' | 'UP_TO_750K' | 'UP_TO_1M' | 'UP_TO_2_5M' | 'UP_TO_5M' | 'OVER_5M';
1188
1194
  /**
1189
1195
  * Application requirements of Test M&T Bank, version 2026-01-01.
@@ -1457,6 +1463,153 @@ type EmbeddedBankingBankRequirementsTestMtBank20990101ProductsItemOutput = {
1457
1463
  };
1458
1464
  type EmbeddedBankingBankRequirementsTestMtBank20990101ProductsItemProduct = 'CHECKING' | 'SAVINGS';
1459
1465
  type EmbeddedBankingBankRequirementsTestMtBank20990101ProductsItemStatementDelivery = 'EMAIL' | 'MAIL' | 'EMAIL_AND_MAIL';
1466
+ type EmbeddedBankingBankRequirementsTestMtBank21000101AnnualRevenue = 'UP_TO_100K' | 'UP_TO_250K' | 'UP_TO_500K' | 'UP_TO_750K' | 'UP_TO_1M' | 'UP_TO_2_5M' | 'UP_TO_5M' | 'OVER_5M';
1467
+ type EmbeddedBankingBankRequirementsTestMtBank21000101KycCashDeposits = 'YES' | 'NO';
1468
+ type EmbeddedBankingBankRequirementsTestMtBank21000101KycInternationalMonthlyVolume = 'UP_TO_10K' | 'UP_TO_100K' | 'OVER_100K';
1469
+ type EmbeddedBankingBankRequirementsTestMtBank21000101KycInternationalPayments = 'YES' | 'NO';
1470
+ /**
1471
+ * One entry in the answer to: Which regions will the business send or receive payments from?
1472
+ */
1473
+ type EmbeddedBankingBankRequirementsTestMtBank21000101KycInternationalRegionsItem = 'CANADA' | 'MEXICO' | 'EUROPE' | 'ASIA_PACIFIC' | 'OTHER';
1474
+ /**
1475
+ * Application requirements of Test M&T Bank, version 2100-01-01. Changes from test-mt-bank@2099-01-01: adds `business.kycInternationalPayments`, `business.kycCashDeposits`, `business.kycInternationalRegions`, `business.kycInternationalPurpose` and `business.kycInternationalMonthlyVolume`; `business.stockTickerSymbol` becomes required and changes `askWhen`; `applicant.passportNumber` becomes required and changes `askWhen`; `applicant.passportCountry` becomes required and changes `askWhen`; `applicant.passportExpiryDate` becomes required and changes `askWhen`; `owner.title` changes `requiredWhen`; `owner.passportNumber` becomes required and changes `askWhen`; `owner.passportCountry` becomes required and changes `askWhen`; `owner.passportExpiryDate` becomes required and changes `askWhen`; `business.wireTransactionLimit` becomes required and changes `askWhen`; `business.wireDailyLimit` becomes required and changes `askWhen`.
1476
+ */
1477
+ type EmbeddedBankingBankRequirementsTestMtBank21000101Output = {
1478
+ /**
1479
+ * Most you expect to send by ACH in one day, in US dollars.
1480
+ */
1481
+ achDailyLimit?: null | number | string;
1482
+ /**
1483
+ * Largest single ACH payment you expect to send, in US dollars.
1484
+ */
1485
+ achTransactionLimit?: null | number | string;
1486
+ annualRevenue?: null | EmbeddedBankingBankRequirementsTestMtBank21000101AnnualRevenue;
1487
+ citizenshipCountry?: null | CountryCode;
1488
+ countryOfBusinessOperation?: null | CountryCode;
1489
+ countryOfFormation?: null | CountryCode;
1490
+ countryOfHeadquarterOperation?: null | CountryCode;
1491
+ /**
1492
+ * Are you a control person? Someone with significant responsibility for managing the business, such as its chief executive or managing member.
1493
+ */
1494
+ isControlPerson?: null | boolean;
1495
+ /**
1496
+ * Is the business publicly traded?
1497
+ */
1498
+ isPublicCompany?: null | boolean;
1499
+ kycCashDeposits?: null | EmbeddedBankingBankRequirementsTestMtBank21000101KycCashDeposits;
1500
+ kycInternationalMonthlyVolume?: null | EmbeddedBankingBankRequirementsTestMtBank21000101KycInternationalMonthlyVolume;
1501
+ kycInternationalPayments?: null | EmbeddedBankingBankRequirementsTestMtBank21000101KycInternationalPayments;
1502
+ /**
1503
+ * What are the international payments for?
1504
+ */
1505
+ kycInternationalPurpose?: null | string;
1506
+ /**
1507
+ * Which regions will the business send or receive payments from?
1508
+ */
1509
+ kycInternationalRegions?: null | Array<EmbeddedBankingBankRequirementsTestMtBank21000101KycInternationalRegionsItem>;
1510
+ /**
1511
+ * Number of employees.
1512
+ */
1513
+ numberOfEmployees?: null | number | string;
1514
+ /**
1515
+ * Your occupation.
1516
+ */
1517
+ occupation?: null | string;
1518
+ /**
1519
+ * Answers to the questions asked of each owner, in one entry per owner.
1520
+ */
1521
+ owners?: null | Array<EmbeddedBankingBankRequirementsTestMtBank21000101OwnerOutput>;
1522
+ passportCountry?: null | CountryCode;
1523
+ /**
1524
+ * When your passport expires.
1525
+ */
1526
+ passportExpiryDate?: null | string;
1527
+ /**
1528
+ * Passport number. Returned as its last four characters, or null when it has fewer than eight.
1529
+ */
1530
+ passportNumberLast4?: null | string;
1531
+ /**
1532
+ * Accounts to open.
1533
+ */
1534
+ products?: null | Array<EmbeddedBankingBankRequirementsTestMtBank21000101ProductsItemOutput>;
1535
+ requirementsVersion: 'test-mt-bank@2100-01-01';
1536
+ /**
1537
+ * Do you want to send same-day ACH payments?
1538
+ */
1539
+ sameDayAchEnabled?: null | boolean;
1540
+ /**
1541
+ * State of formation. The two-letter postal abbreviation of the state the business was formed in, such as DE.
1542
+ */
1543
+ stateOfFormation?: null | string;
1544
+ /**
1545
+ * Stock ticker symbol.
1546
+ */
1547
+ stockTickerSymbol?: null | string;
1548
+ /**
1549
+ * Your title at the business.
1550
+ */
1551
+ title?: null | string;
1552
+ /**
1553
+ * How much of the business's voting rights do you hold?
1554
+ */
1555
+ votingRightsPercentage?: null | number | string;
1556
+ /**
1557
+ * Most you expect to send by wire in one day, in US dollars.
1558
+ */
1559
+ wireDailyLimit?: null | number | string;
1560
+ /**
1561
+ * Do you want to send wire transfers?
1562
+ */
1563
+ wireEnabled?: null | boolean;
1564
+ /**
1565
+ * Largest single wire you expect to send, in US dollars.
1566
+ */
1567
+ wireTransactionLimit?: null | number | string;
1568
+ };
1569
+ /**
1570
+ * One owner's answers to the questions Test M&amp;T Bank asks of each owner.
1571
+ */
1572
+ type EmbeddedBankingBankRequirementsTestMtBank21000101OwnerOutput = {
1573
+ citizenshipCountry?: null | CountryCode;
1574
+ /**
1575
+ * Is this owner a control person? Someone with significant responsibility for managing the business, such as its chief executive or managing member.
1576
+ */
1577
+ isControlPerson?: null | boolean;
1578
+ /**
1579
+ * Their occupation.
1580
+ */
1581
+ occupation?: null | string;
1582
+ /**
1583
+ * The id of the owner these answers are for, as the application's owners carry it.
1584
+ */
1585
+ ownerId: string;
1586
+ passportCountry?: null | CountryCode;
1587
+ /**
1588
+ * When their passport expires.
1589
+ */
1590
+ passportExpiryDate?: null | string;
1591
+ /**
1592
+ * Their passport number. Returned as its last four characters, or null when it has fewer than eight.
1593
+ */
1594
+ passportNumberLast4?: null | string;
1595
+ /**
1596
+ * Their title at the business.
1597
+ */
1598
+ title?: null | string;
1599
+ /**
1600
+ * How much of the business's voting rights do they hold?
1601
+ */
1602
+ votingRightsPercentage?: null | number | string;
1603
+ };
1604
+ /**
1605
+ * One entry in the answer to: Accounts to open.
1606
+ */
1607
+ type EmbeddedBankingBankRequirementsTestMtBank21000101ProductsItemOutput = {
1608
+ product?: null | EmbeddedBankingBankRequirementsTestMtBank21000101ProductsItemProduct;
1609
+ statementDelivery?: null | EmbeddedBankingBankRequirementsTestMtBank21000101ProductsItemStatementDelivery;
1610
+ };
1611
+ type EmbeddedBankingBankRequirementsTestMtBank21000101ProductsItemProduct = 'CHECKING' | 'SAVINGS';
1612
+ type EmbeddedBankingBankRequirementsTestMtBank21000101ProductsItemStatementDelivery = 'EMAIL' | 'MAIL' | 'EMAIL_AND_MAIL';
1460
1613
  /**
1461
1614
  * Business entity details of an organization.
1462
1615
  */
package/dist/index.css CHANGED
@@ -364,9 +364,6 @@
364
364
  .ttw\:right-9 {
365
365
  right: calc(var(--ttw-spacing) * 9);
366
366
  }
367
- .ttw\:right-full {
368
- right: 100%;
369
- }
370
367
  .ttw\:bottom-0 {
371
368
  bottom: 0px;
372
369
  }
@@ -1,5 +1,5 @@
1
1
  import { Badge as e } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { DateDisclosure as t } from "../../../../shared/ui/dist/lib/DateDisclosure/DateDisclosure.js";
2
+ import { HintDisclosure as t } from "../../../../shared/ui/dist/lib/HintDisclosure/HintDisclosure.js";
3
3
  import "../../../../shared/ui/dist/index.js";
4
4
  import { BILL_STATUS_TONE_CLASS_NAME as n } from "../../../../shared/document-status/ui/dist/index3.js";
5
5
  import "../../../../shared/document-status/ui/dist/index.js";
@@ -12,7 +12,7 @@ function i({ summary: i, date: a }) {
12
12
  children: i
13
13
  });
14
14
  return a ? /* @__PURE__ */ r(t, {
15
- date: a,
15
+ hint: a,
16
16
  children: o
17
17
  }) : o;
18
18
  }
@@ -30,12 +30,12 @@ var n = {
30
30
  dateFieldNames: {
31
31
  issueDate: "Issue date",
32
32
  dueDate: "Due date",
33
- addedOn: "Added on"
33
+ addedOn: "Created"
34
34
  },
35
35
  dateChip: (e, t) => `${e}: ${t}`,
36
36
  statusChip: (e) => `Status: ${e}`,
37
37
  vendorChip: (e) => `Vendor: ${e}`,
38
- amountChip: (e) => `Total amount: ${e}`,
38
+ amountChip: (e) => `Amount: ${e}`,
39
39
  attachmentChipHas: "Has attachment",
40
40
  attachmentChipNone: "No attachment",
41
41
  pastDue: "Past due",
@@ -6,11 +6,11 @@ import { formatMoneyExact as e } from "../../../../shared/util/dist/lib/formatMo
6
6
  import "../../../../shared/util/dist/index.js";
7
7
  import "../../../util/dist/index.js";
8
8
  import { billStatusFilterApiValues as t } from "./index4.js";
9
- import { BillsFilterField as n } from "../../ui/dist/index12.js";
9
+ import { BillSummaryCard as n, billSummaryCardFilter as r } from "./index10.js";
10
+ import { BillsDatePreset as i, resolveDatePreset as a } from "./index13.js";
11
+ import { BILLS_FILTER_LABELS_EN as o } from "./index14.js";
12
+ import { BillsFilterField as s } from "../../ui/dist/index12.js";
10
13
  import "../../ui/dist/index.js";
11
- import { BillSummaryCard as r, billSummaryCardFilter as i } from "./index10.js";
12
- import { BillsDatePreset as a, resolveDatePreset as o } from "./index13.js";
13
- import { BILLS_FILTER_LABELS_EN as s } from "./index14.js";
14
14
  import { getCounterpartName as c } from "../../../../shared/counterpart-management/feature/dist/lib/helpers.js";
15
15
  import { useCounterpartsQuery as l } from "../../../../shared/counterpart-management/data-access/dist/index3.js";
16
16
  import "../../../../shared/counterpart-management/feature/dist/index.js";
@@ -25,27 +25,27 @@ var _ = {
25
25
  Vendor: "vendor",
26
26
  Attachment: "attachment"
27
27
  }, v = [], y = 50, b = 300, x = "MMM d, yyyy", S = 2, C = 864e5, ee = {
28
- [n.IssueDate]: "issued_at",
29
- [n.DueDate]: "due_date",
30
- [n.AddedOn]: "created_at"
28
+ [s.IssueDate]: "issued_at",
29
+ [s.DueDate]: "due_date",
30
+ [s.AddedOn]: "created_at"
31
31
  }, te = {
32
- [a.Today]: "current",
33
- [a.ThisWeek]: "current",
34
- [a.ThisMonth]: "current",
35
- [a.ThisQuarter]: "current",
36
- [a.ThisYear]: "current",
37
- [a.Yesterday]: "past",
38
- [a.LastWeek]: "past",
39
- [a.LastMonth]: "past",
40
- [a.Last30Days]: "past",
41
- [a.Last90Days]: "past",
42
- [a.LastQuarter]: "past",
43
- [a.LastYear]: "past"
32
+ [i.Today]: "current",
33
+ [i.ThisWeek]: "current",
34
+ [i.ThisMonth]: "current",
35
+ [i.ThisQuarter]: "current",
36
+ [i.ThisYear]: "current",
37
+ [i.Yesterday]: "past",
38
+ [i.LastWeek]: "past",
39
+ [i.LastMonth]: "past",
40
+ [i.Last30Days]: "past",
41
+ [i.Last90Days]: "past",
42
+ [i.LastQuarter]: "past",
43
+ [i.LastYear]: "past"
44
44
  };
45
45
  function w(e = null) {
46
46
  return {
47
47
  summaryCard: e,
48
- dateField: n.DueDate,
48
+ dateField: s.DueDate,
49
49
  statuses: [],
50
50
  amountMode: "any",
51
51
  amountMin: "",
@@ -57,23 +57,23 @@ function T(e) {
57
57
  let t = Number.parseFloat(e);
58
58
  return Number.isFinite(t) ? Math.round(t * 100) : void 0;
59
59
  }
60
- function E({ statusOptions: a = v, offersVendorFilter: E = !0, isVendorFilterPaused: D = !1, onFiltersChange: O, initialSummaryCard: ne = null, onSummaryCardChange: k, today: A, labels: j } = {}) {
60
+ function E({ statusOptions: i = v, offersVendorFilter: E = !0, isVendorFilterPaused: D = !1, onFiltersChange: O, initialSummaryCard: ne = null, onSummaryCardChange: k, today: A, labels: j } = {}) {
61
61
  let M = f(() => ({
62
- ...s,
62
+ ...o,
63
63
  ...j,
64
64
  presets: {
65
- ...s.presets,
65
+ ...o.presets,
66
66
  ...j?.presets
67
67
  },
68
68
  statuses: {
69
- ...s.statuses,
69
+ ...o.statuses,
70
70
  ...j?.statuses
71
71
  },
72
72
  dateFieldNames: {
73
- ...s.dateFieldNames,
73
+ ...o.dateFieldNames,
74
74
  ...j?.dateFieldNames
75
75
  }
76
- }), [j]), [N, P] = m(() => w(ne)), F = a.length > 0 && !N.summaryCard, I = F ? a : v, L = u((e) => {
76
+ }), [j]), [N, P] = m(() => w(ne)), F = i.length > 0 && !N.summaryCard, I = F ? i : v, L = u((e) => {
77
77
  e !== N.summaryCard && k?.(e);
78
78
  }, [k, N.summaryCard]), [R, z] = m({}), [B, V] = m(""), [H, U] = m(""), W = u((e) => {
79
79
  P((t) => ({
@@ -95,7 +95,7 @@ function E({ statusOptions: a = v, offersVendorFilter: E = !0, isVendorFilterPau
95
95
  });
96
96
  });
97
97
  }, [I, O]);
98
- let G = f(() => N.statuses.filter((e) => I.includes(e)), [N.statuses, I]), K = N.summaryCard === r.Overdue ? A : void 0, q = p(K);
98
+ let G = f(() => N.statuses.filter((e) => I.includes(e)), [N.statuses, I]), K = N.summaryCard === n.Overdue ? A : void 0, q = p(K);
99
99
  d(() => {
100
100
  let e = q.current;
101
101
  q.current = K, e && K && e !== K && O?.();
@@ -113,10 +113,10 @@ function E({ statusOptions: a = v, offersVendorFilter: E = !0, isVendorFilterPau
113
113
  }), Y = f(() => (J.data?.data ?? []).map((e) => ({
114
114
  value: e.id,
115
115
  label: c(e)
116
- })), [J.data?.data]), X = f(() => a.map((e) => ({
116
+ })), [J.data?.data]), X = f(() => i.map((e) => ({
117
117
  value: e,
118
118
  label: M.statuses[e]
119
- })), [a, M.statuses]), re = f(() => Object.entries(te).map(([e, t]) => ({
119
+ })), [i, M.statuses]), re = f(() => Object.entries(te).map(([e, t]) => ({
120
120
  value: e,
121
121
  label: M.presets[e],
122
122
  group: t === "current" ? M.presetGroupCurrent : M.presetGroupPast
@@ -125,18 +125,18 @@ function E({ statusOptions: a = v, offersVendorFilter: E = !0, isVendorFilterPau
125
125
  M.presetGroupPast,
126
126
  M.presets
127
127
  ]), ie = f(() => {
128
- let e = {}, n = ee[N.dateField], r = (e) => Date.UTC(e.getFullYear(), e.getMonth(), e.getDate());
129
- if (N.dateFrom && (e[`${n}__gte`] = n === "created_at" ? new Date(r(N.dateFrom)).toISOString() : g(N.dateFrom, { representation: "date" })), N.dateTo && (n === "created_at" ? e.created_at__lt = new Date(r(N.dateTo) + C).toISOString() : e[`${n}__lte`] = g(N.dateTo, { representation: "date" })), G.length > 0 && (e.status__in = t(G)), N.amountMode !== "any") {
128
+ let e = {}, n = ee[N.dateField], i = (e) => Date.UTC(e.getFullYear(), e.getMonth(), e.getDate());
129
+ if (N.dateFrom && (e[`${n}__gte`] = n === "created_at" ? new Date(i(N.dateFrom)).toISOString() : g(N.dateFrom, { representation: "date" })), N.dateTo && (n === "created_at" ? e.created_at__lt = new Date(i(N.dateTo) + C).toISOString() : e[`${n}__lte`] = g(N.dateTo, { representation: "date" })), G.length > 0 && (e.status__in = t(G)), N.amountMode !== "any") {
130
130
  let t = "total_amount__gte", n = "total_amount__lte", r = T(N.amountMin), i = T(N.amountMax);
131
131
  N.amountMode === "exact" ? r !== void 0 && (e[t] = r, e[n] = r) : (r !== void 0 && (e[t] = r), i !== void 0 && (e[n] = i));
132
132
  }
133
- return N.vendorIds.length > 0 && (e.counterpart_id__in = [...N.vendorIds]), N.hasFile !== void 0 && (e.has_file = N.hasFile), N.summaryCard && Object.assign(e, i(N.summaryCard, A).query), e;
133
+ return N.vendorIds.length > 0 && (e.counterpart_id__in = [...N.vendorIds]), N.hasFile !== void 0 && (e.has_file = N.hasFile), N.summaryCard && Object.assign(e, r(N.summaryCard, A).query), e;
134
134
  }, [
135
135
  N,
136
136
  G,
137
137
  A
138
138
  ]), Z = f(() => {
139
- let t = [], a = (e) => h(e, x), o = (e, t, n) => {
139
+ let t = [], i = (e) => h(e, x), a = (e, t, n) => {
140
140
  let r = t(M.valueList(n));
141
141
  return n.length <= S ? {
142
142
  key: e,
@@ -148,20 +148,20 @@ function E({ statusOptions: a = v, offersVendorFilter: E = !0, isVendorFilterPau
148
148
  };
149
149
  };
150
150
  if (N.summaryCard) {
151
- let { statuses: e } = i(N.summaryCard, A);
152
- t.push(N.summaryCard === r.Overdue ? {
151
+ let { statuses: e } = r(N.summaryCard, A);
152
+ t.push(N.summaryCard === n.Overdue ? {
153
153
  key: _.SummaryCard,
154
- label: M.dateChip(M.dateFieldNames[n.DueDate], M.pastDue)
155
- } : o(_.SummaryCard, M.statusChip, e ? e.map((e) => M.statuses[e]) : [M.scheduledStatus]));
154
+ label: M.dateChip(M.dateFieldNames[s.DueDate], M.pastDue)
155
+ } : a(_.SummaryCard, M.statusChip, e ? e.map((e) => M.statuses[e]) : [M.scheduledStatus]));
156
156
  }
157
157
  if (N.dateFrom || N.dateTo) {
158
- let e = (N.datePreset ? M.presets[N.datePreset] : void 0) ?? (N.dateFrom && N.dateTo ? M.dateRange(a(N.dateFrom), a(N.dateTo)) : N.dateFrom ? M.dateFrom(a(N.dateFrom)) : M.dateTo(a(N.dateTo)));
158
+ let e = (N.datePreset ? M.presets[N.datePreset] : void 0) ?? (N.dateFrom && N.dateTo ? M.dateRange(i(N.dateFrom), i(N.dateTo)) : N.dateFrom ? M.dateFrom(i(N.dateFrom)) : M.dateTo(i(N.dateTo)));
159
159
  t.push({
160
160
  key: _.Date,
161
161
  label: M.dateChip(M.dateFieldNames[N.dateField], e)
162
162
  });
163
163
  }
164
- if (G.length > 0 && t.push(o(_.Status, M.statusChip, G.map((e) => M.statuses[e] ?? e))), N.vendorIds.length > 0 && t.push(o(_.Vendor, M.vendorChip, N.vendorIds.map((e) => R[e] ?? e))), N.amountMode !== "any") {
164
+ if (G.length > 0 && t.push(a(_.Status, M.statusChip, G.map((e) => M.statuses[e] ?? e))), N.vendorIds.length > 0 && t.push(a(_.Vendor, M.vendorChip, N.vendorIds.map((e) => R[e] ?? e))), N.amountMode !== "any") {
165
165
  let n = (t) => {
166
166
  let n = Number.parseFloat(t);
167
167
  return Number.isFinite(n) ? e(n, { currencyCode: "USD" }) : "";
@@ -235,13 +235,13 @@ function E({ statusOptions: a = v, offersVendorFilter: E = !0, isVendorFilterPau
235
235
  return {
236
236
  filterBarProps: {
237
237
  fields: [...f(() => [
238
- ...E ? [n.Vendor] : [],
239
- n.IssueDate,
240
- n.DueDate,
241
- ...F ? [n.Status] : [],
242
- n.TotalAmount,
243
- n.AddedOn,
244
- n.Attachment
238
+ ...E ? [s.Vendor] : [],
239
+ s.IssueDate,
240
+ s.DueDate,
241
+ ...F ? [s.Status] : [],
242
+ s.TotalAmount,
243
+ s.AddedOn,
244
+ s.Attachment
245
245
  ], [F, E])],
246
246
  activeFilterCount: Z.length,
247
247
  chips: Z,
@@ -265,11 +265,11 @@ function E({ statusOptions: a = v, offersVendorFilter: E = !0, isVendorFilterPau
265
265
  dateTo: t
266
266
  }),
267
267
  onDatePresetChange: (e) => {
268
- let t = /* @__PURE__ */ new Date(), r = N.dateField === n.AddedOn ? new Date(t.getUTCFullYear(), t.getUTCMonth(), t.getUTCDate()) : t, { from: i, to: a } = o(e, r);
268
+ let t = /* @__PURE__ */ new Date(), n = N.dateField === s.AddedOn ? new Date(t.getUTCFullYear(), t.getUTCMonth(), t.getUTCDate()) : t, { from: r, to: i } = a(e, n);
269
269
  W({
270
270
  datePreset: e,
271
- dateFrom: i,
272
- dateTo: a
271
+ dateFrom: r,
272
+ dateTo: i
273
273
  });
274
274
  },
275
275
  statusOptions: X,