@tesouro/embedded-components-react 0.5.113 → 0.5.114

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 (33) hide show
  1. package/dist/index.css +3 -0
  2. package/dist/index.js +1 -1
  3. package/dist/lib/BillPayWidget.js +1 -1
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index.js +3 -3
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index17.js +57 -36
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index5.js +15 -11
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index6.js +10 -10
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +5 -5
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +3 -124
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +124 -8
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +8 -7
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +8 -47
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +44 -18
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +20 -28
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +19 -83
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +28 -47
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +76 -252
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +48 -136
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +246 -218
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +138 -4
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +212 -5
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +3 -112
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index86.js +7 -1
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js +104 -18
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index88.js +1 -0
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index89.js +27 -0
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +231 -228
  28. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +24 -24
  29. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +143 -154
  30. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +79 -87
  31. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  32. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
  33. package/package.json +1 -1
package/dist/index.css CHANGED
@@ -4134,6 +4134,9 @@
4134
4134
  width: calc(var(--ttw-spacing) * 3);
4135
4135
  height: calc(var(--ttw-spacing) * 3);
4136
4136
  }
4137
+ .ttw\:group-data-\[state\=active\]\/tab\:bg-muted:is(:where(.ttw\:group\/tab)[data-state="active"] *) {
4138
+ background-color: var(--ttw-muted);
4139
+ }
4137
4140
  .ttw\:group-data-\[state\=closed\]\:-rotate-90:is(:where(.ttw\:group)[data-state="closed"] *) {
4138
4141
  rotate: calc(90deg * -1);
4139
4142
  }
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ import { RefreshingRootWidgetProvider as _ } from "./libs/tesouro-embedded-compo
14
14
  import { useDisclosuresAcceptanceSurface as v, useOwnWidgetConfig as y, useRefetchWidget as b, useWidgetConfig as x, useWidgetError as S, useWidgetInitStaleForToken as C, useWidgetLoading as w } from "./libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/hooks.js";
15
15
  import { BankAccountsWidget as T } from "./libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index8.js";
16
16
  import { CounterpartsWidget as E } from "./libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index8.js";
17
- import { BillPayWidget as D } from "./libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js";
17
+ import { BillPayWidget as D } from "./libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index89.js";
18
18
  import { CardDetailsWidget as O } from "./libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index13.js";
19
19
  import { CreditCardsWidget as k } from "./libs/tesouro-embedded-components-react/cards-widget/feature/dist/index10.js";
20
20
  import { DebitCardsWidget as A } from "./libs/tesouro-embedded-components-react/cards-widget/feature/dist/index11.js";
@@ -1,3 +1,3 @@
1
- import { BillPayWidget as e } from "../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js";
1
+ import { BillPayWidget as e } from "../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index89.js";
2
2
  import "../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js";
3
3
  export { e as BillPayWidget };
@@ -11,6 +11,6 @@ import { useSchedulePaymentMutation as p } from "./index12.js";
11
11
  import { useAttachPayableFileMutation as m, useCancelPayableMutation as h, useCancelScheduledPaymentMutation as g, useCreatePayableMutation as _, useDeletePayableFileMutation as v, useDeletePayableMutation as y, useForceApprovePayableMutation as b, useForceRejectPayableMutation as x, useMarkPayableAsPaidMutation as S, useReopenPayableMutation as C, useSubmitPayableForApprovalMutation as w, useUpdatePayableMutation as T, useUploadPayableFromFileMutation as E, useValidatePayableMutation as D } from "./index13.js";
12
12
  import "./index14.js";
13
13
  import { usePayableOcrQueries as O } from "./index15.js";
14
- import { useAllSuspectedDuplicatePayablesQuery as k, usePayableQuery as A, usePayablesQuery as j, usePayablesTotalCountQuery as M } from "./index17.js";
15
- import { usePayableSuggestionsQuery as N } from "./index18.js";
16
- export { n as DuplicateVerdict, r as hasSuspectedPayableDuplicate, t as isLiveScheduledPaymentRecord, i as suspectedPayableDuplicates, u as useAllPayableLineItemsQuery, k as useAllSuspectedDuplicatePayablesQuery, a as useApplyDuplicateVerdictsMutation, o as useApprovePayableApprovalRequestMutation, m as useAttachPayableFileMutation, h as useCancelPayableMutation, g as useCancelScheduledPaymentMutation, _ as useCreatePayableMutation, v as useDeletePayableFileMutation, y as useDeletePayableMutation, e as useEmbedApi, b as useForceApprovePayableMutation, x as useForceRejectPayableMutation, S as useMarkPayableAsPaidMutation, s as usePayableApprovalRequestsQuery, l as usePayableHistoryQuery, O as usePayableOcrQueries, f as usePayablePaymentRecordsQuery, A as usePayableQuery, N as usePayableSuggestionsQuery, j as usePayablesQuery, M as usePayablesTotalCountQuery, c as useRejectPayableApprovalRequestMutation, C as useReopenPayableMutation, d as useReplacePayableLineItemsMutation, p as useSchedulePaymentMutation, w as useSubmitPayableForApprovalMutation, T as useUpdatePayableMutation, E as useUploadPayableFromFileMutation, D as useValidatePayableMutation };
14
+ import { useAllSuspectedDuplicatePayablesQuery as k, usePayableQuery as A, usePayablesCountQueries as j, usePayablesQuery as M, usePayablesTotalCountQuery as N } from "./index17.js";
15
+ import { usePayableSuggestionsQuery as P } from "./index18.js";
16
+ export { n as DuplicateVerdict, r as hasSuspectedPayableDuplicate, t as isLiveScheduledPaymentRecord, i as suspectedPayableDuplicates, u as useAllPayableLineItemsQuery, k as useAllSuspectedDuplicatePayablesQuery, a as useApplyDuplicateVerdictsMutation, o as useApprovePayableApprovalRequestMutation, m as useAttachPayableFileMutation, h as useCancelPayableMutation, g as useCancelScheduledPaymentMutation, _ as useCreatePayableMutation, v as useDeletePayableFileMutation, y as useDeletePayableMutation, e as useEmbedApi, b as useForceApprovePayableMutation, x as useForceRejectPayableMutation, S as useMarkPayableAsPaidMutation, s as usePayableApprovalRequestsQuery, l as usePayableHistoryQuery, O as usePayableOcrQueries, f as usePayablePaymentRecordsQuery, A as usePayableQuery, P as usePayableSuggestionsQuery, j as usePayablesCountQueries, M as usePayablesQuery, N as usePayablesTotalCountQuery, c as useRejectPayableApprovalRequestMutation, C as useReopenPayableMutation, d as useReplacePayableLineItemsMutation, p as useSchedulePaymentMutation, w as useSubmitPayableForApprovalMutation, T as useUpdatePayableMutation, E as useUploadPayableFromFileMutation, D as useValidatePayableMutation };
@@ -5,35 +5,37 @@
5
5
  import { useEmbedApi as e } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
6
6
  import { organizationHeaders as t } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
7
7
  import { getPayables as n } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
8
- import { getPayablesAnalyticsOptions as r, getPayablesIdOptions as i, getPayablesOptions as a, getPayablesQueryKey as o } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
8
+ import { getAnalyticsPayablesOptions as r, getPayablesIdOptions as i, getPayablesOptions as a, getPayablesQueryKey as o } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
9
9
  import { withAuthEpoch as s } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
10
10
  import "../../../shared/data-access/dist/index.js";
11
- import { OCR_POLL_INTERVAL_MS as c, payableOcrQueryOptions as l } from "./index4.js";
12
- import { payablePolicyAssignmentQueryOptions as u } from "./index16.js";
13
- import { queryOptions as d, useQuery as f } from "@tanstack/react-query";
11
+ import { PAYABLE_COUNT_ANALYTICS as c } from "./index5.js";
12
+ import { OCR_POLL_INTERVAL_MS as l, payableOcrQueryOptions as u } from "./index4.js";
13
+ import { payablePolicyAssignmentQueryOptions as d } from "./index16.js";
14
+ import { useMemo as f } from "react";
15
+ import { queryOptions as p, useQueries as m, useQuery as h } from "@tanstack/react-query";
14
16
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index17.js
15
- function p({ enabled: n, pollWhileOcrProcessing: r = !1, ...i } = {}) {
16
- let { client: o, organizationId: l, widgetToken: u, authEpoch: d } = e(), p = !!(l && u) && (n === !0 || n === void 0), m = a({
17
+ function g({ enabled: n, pollWhileOcrProcessing: r = !1, ...i } = {}) {
18
+ let { client: o, organizationId: c, widgetToken: u, authEpoch: d } = e(), f = !!(c && u) && (n === !0 || n === void 0), p = a({
17
19
  client: o,
18
- headers: t(l),
20
+ headers: t(c),
19
21
  query: i
20
22
  });
21
- return f({
22
- ...s(m, d),
23
- enabled: p,
24
- ...r ? { refetchInterval: (e) => (e.state.data?.data ?? []).some((e) => e.ocr_status === "processing") ? c : !1 } : {}
23
+ return h({
24
+ ...s(p, d),
25
+ enabled: f,
26
+ ...r ? { refetchInterval: (e) => (e.state.data?.data ?? []).some((e) => e.ocr_status === "processing") ? l : !1 } : {}
25
27
  });
26
28
  }
27
- var m = 100;
28
- function h({ enabled: r } = {}) {
29
- let { client: i, organizationId: a, widgetToken: c, authEpoch: l } = e(), u = t(a), p = {
29
+ var _ = 100;
30
+ function v({ enabled: r } = {}) {
31
+ let { client: i, organizationId: a, widgetToken: c, authEpoch: l } = e(), u = t(a), d = {
30
32
  duplicate_match_status: "suspected",
31
- limit: m
32
- }, h = d({
33
+ limit: _
34
+ }, f = p({
33
35
  queryKey: [...o({
34
36
  client: i,
35
37
  headers: u,
36
- query: p
38
+ query: d
37
39
  }), "all"],
38
40
  queryFn: async ({ signal: e }) => {
39
41
  let t = [], r = /* @__PURE__ */ new Set(), a;
@@ -42,7 +44,7 @@ function h({ enabled: r } = {}) {
42
44
  client: i,
43
45
  headers: u,
44
46
  query: {
45
- ...p,
47
+ ...d,
46
48
  pagination_token: a
47
49
  },
48
50
  signal: e,
@@ -55,33 +57,52 @@ function h({ enabled: r } = {}) {
55
57
  return { data: t };
56
58
  }
57
59
  });
58
- return f({
59
- ...s(h, l),
60
+ return h({
61
+ ...s(f, l),
60
62
  enabled: !!(a && c) && r !== !1
61
63
  });
62
64
  }
63
- function g({ enabled: n } = {}) {
64
- let { client: i, organizationId: a, widgetToken: o, authEpoch: c } = e(), l = !!(a && o) && (n === !0 || n === void 0), u = r({
65
+ function y({ enabled: n } = {}) {
66
+ let { client: i, organizationId: a, widgetToken: o, authEpoch: l } = e(), u = !!(a && o) && (n === !0 || n === void 0), d = r({
65
67
  client: i,
66
- headers: t(a)
68
+ headers: t(a),
69
+ query: c
67
70
  });
68
- return f({
69
- ...s(u, c),
70
- enabled: l
71
+ return h({
72
+ ...s(d, l),
73
+ enabled: u,
74
+ select: (e) => ({ count: e.data[0]?.metric_value ?? 0 })
71
75
  });
72
76
  }
73
- function _(n, { enabled: r = !0, pollWhileOcrProcessing: a = !1, pollWhilePolicyAssignmentUnsettled: o = !1 } = {}) {
74
- let { client: c, organizationId: d, widgetToken: p, authEpoch: m } = e(), h = !!(d && p && n) && r, g = a ? l({
77
+ function b({ filters: n, enabled: i }) {
78
+ let { client: a, organizationId: o, widgetToken: l, authEpoch: u } = e(), d = t(o), p = !!(o && l) && (i === !0 || i === void 0), h = m({ queries: n.map((e) => ({
79
+ ...s(r({
80
+ client: a,
81
+ headers: d,
82
+ query: {
83
+ ...e,
84
+ ...c
85
+ }
86
+ }), u),
87
+ enabled: p
88
+ })) });
89
+ return f(() => h.map((e) => ({
90
+ count: e.data ? e.data.data[0]?.metric_value ?? 0 : void 0,
91
+ isError: e.isError
92
+ })), [h]);
93
+ }
94
+ function x(n, { enabled: r = !0, pollWhileOcrProcessing: a = !1, pollWhilePolicyAssignmentUnsettled: o = !1 } = {}) {
95
+ let { client: c, organizationId: l, widgetToken: f, authEpoch: p } = e(), m = !!(l && f && n) && r, g = a ? u({
75
96
  client: c,
76
- organizationId: d,
97
+ organizationId: l,
77
98
  payableId: n ?? ""
78
- }) : void 0, _ = o ? u({
99
+ }) : void 0, _ = o ? d({
79
100
  client: c,
80
- organizationId: d,
101
+ organizationId: l,
81
102
  payableId: n ?? ""
82
103
  }) : void 0, v = g ?? _ ?? i({
83
104
  client: c,
84
- headers: t(d),
105
+ headers: t(l),
85
106
  path: { payable_id: n ?? "" }
86
107
  }), y = g && _ ? {
87
108
  ...v,
@@ -90,10 +111,10 @@ function _(n, { enabled: r = !0, pollWhileOcrProcessing: a = !1, pollWhilePolicy
90
111
  return t.length ? Math.min(...t) : !1;
91
112
  }
92
113
  } : v;
93
- return f({
94
- ...s(y, m),
95
- enabled: h
114
+ return h({
115
+ ...s(y, p),
116
+ enabled: m
96
117
  });
97
118
  }
98
119
  //#endregion
99
- export { h as useAllSuspectedDuplicatePayablesQuery, _ as usePayableQuery, p as usePayablesQuery, g as usePayablesTotalCountQuery };
120
+ export { v as useAllSuspectedDuplicatePayablesQuery, x as usePayableQuery, b as usePayablesCountQueries, g as usePayablesQuery, y as usePayablesTotalCountQuery };
@@ -1,31 +1,35 @@
1
1
  import { organizationHeaders as e } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
2
- import { getApprovalRequestsQueryKey as t, getPayablesAnalyticsQueryKey as n, getPayablesIdHistoryQueryKey as r, getPayablesIdLineItemsQueryKey as i, getPayablesIdQueryKey as a, getPayablesQueryKey as o, getPaymentRecordsQueryKey as s } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
2
+ import { getAnalyticsPayablesQueryKey as t, getApprovalRequestsQueryKey as n, getPayablesIdHistoryQueryKey as r, getPayablesIdLineItemsQueryKey as i, getPayablesIdQueryKey as a, getPayablesQueryKey as o, getPaymentRecordsQueryKey as s } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
3
3
  import "../../../shared/data-access/dist/index.js";
4
4
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index5.js
5
- var c = ({ client: t, organizationId: n }) => o({
5
+ var c = {
6
+ metric: "id",
7
+ aggregation_function: "count"
8
+ }, l = ({ client: t, organizationId: n }) => o({
6
9
  client: t,
7
10
  headers: e(n)
8
- }), l = ({ client: n, organizationId: r }) => t({
9
- client: n,
10
- headers: e(r)
11
11
  }), u = ({ client: t, organizationId: r }) => n({
12
12
  client: t,
13
13
  headers: e(r)
14
- }), d = ({ client: t, organizationId: n, payableId: r }) => a({
14
+ }), d = ({ client: n, organizationId: r }) => t({
15
+ client: n,
16
+ headers: e(r),
17
+ query: c
18
+ }), f = ({ client: t, organizationId: n, payableId: r }) => a({
15
19
  client: t,
16
20
  headers: e(n),
17
21
  path: { payable_id: r }
18
- }), f = ({ client: t, organizationId: n, payableId: i }) => r({
22
+ }), p = ({ client: t, organizationId: n, payableId: i }) => r({
19
23
  client: t,
20
24
  headers: e(n),
21
25
  path: { payable_id: i }
22
- }), p = ({ client: t, organizationId: n, payableId: r }) => i({
26
+ }), m = ({ client: t, organizationId: n, payableId: r }) => i({
23
27
  client: t,
24
28
  headers: e(n),
25
29
  path: { payable_id: r }
26
- }), m = ({ client: t, organizationId: n }) => s({
30
+ }), h = ({ client: t, organizationId: n }) => s({
27
31
  client: t,
28
32
  headers: e(n)
29
- }), h = "payable", g = "desc";
33
+ }), g = "payable", _ = "desc";
30
34
  //#endregion
31
- export { g as NEWEST_REQUEST_FIRST, h as PAYABLE_OBJECT_TYPE, l as approvalRequestsInvalidationKey, f as payableHistoryInvalidationKey, d as payableInvalidationKey, p as payableLineItemsInvalidationKey, m as payablePaymentRecordsInvalidationKey, u as payablesAnalyticsInvalidationKey, c as payablesInvalidationKey };
35
+ export { _ as NEWEST_REQUEST_FIRST, c as PAYABLE_COUNT_ANALYTICS, g as PAYABLE_OBJECT_TYPE, d as analyticsPayablesInvalidationKey, u as approvalRequestsInvalidationKey, p as payableHistoryInvalidationKey, f as payableInvalidationKey, m as payableLineItemsInvalidationKey, h as payablePaymentRecordsInvalidationKey, l as payablesInvalidationKey };
@@ -3,7 +3,7 @@ import { organizationHeaders as r } from "../../../shared/data-access/dist/lib/o
3
3
  import { getApprovalRequests as i, getPayablesId as a, getPayablesIdHistory as o, getPaymentRecords as s } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
4
4
  import "../../../shared/data-access/dist/index.js";
5
5
  import { isLiveScheduledPaymentRecord as c } from "./index3.js";
6
- import { NEWEST_REQUEST_FIRST as l, PAYABLE_OBJECT_TYPE as u, approvalRequestsInvalidationKey as d, payableHistoryInvalidationKey as f, payableInvalidationKey as p, payableLineItemsInvalidationKey as m, payablePaymentRecordsInvalidationKey as h, payablesAnalyticsInvalidationKey as g, payablesInvalidationKey as _ } from "./index5.js";
6
+ import { NEWEST_REQUEST_FIRST as l, PAYABLE_OBJECT_TYPE as u, analyticsPayablesInvalidationKey as d, approvalRequestsInvalidationKey as f, payableHistoryInvalidationKey as p, payableInvalidationKey as m, payableLineItemsInvalidationKey as h, payablePaymentRecordsInvalidationKey as g, payablesInvalidationKey as _ } from "./index5.js";
7
7
  import { OCR_POLL_INTERVAL_MS as v } from "./index4.js";
8
8
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index6.js
9
9
  async function y({ client: e, organizationId: n, payableId: r, payableIds: i, deletedPayableIds: a, includeLineItems: o, includeApprovalRequests: s }) {
@@ -15,13 +15,13 @@ async function y({ client: e, organizationId: n, payableId: r, payableIds: i, de
15
15
  payableId: e
16
16
  })), v = [
17
17
  _(c),
18
- g(c),
19
- ...s ? [d(c)] : [],
18
+ d(c),
19
+ ...s ? [f(c)] : [],
20
20
  ...u.flatMap((e) => [
21
+ m(e),
21
22
  p(e),
22
- f(e),
23
- h(e),
24
- ...o ? [m(e)] : []
23
+ g(e),
24
+ ...o ? [h(e)] : []
25
25
  ])
26
26
  ];
27
27
  await Promise.all(v.map((e) => t(e))), await Promise.all([...l].map((t) => b({
@@ -37,9 +37,9 @@ async function b({ client: t, organizationId: r, payableId: i }) {
37
37
  organizationId: r,
38
38
  payableId: i
39
39
  }, o = [
40
+ m(a),
40
41
  p(a),
41
- f(a),
42
- m(a)
42
+ h(a)
43
43
  ];
44
44
  await Promise.all(o.map((t) => e(t))), o.forEach((e) => n(e));
45
45
  }
@@ -48,7 +48,7 @@ async function x({ client: e, organizationId: n, payableId: r }) {
48
48
  client: e,
49
49
  organizationId: n
50
50
  };
51
- await Promise.all([t(_(i)), t(g(i))]), await b({
51
+ await Promise.all([t(_(i)), t(d(i))]), await b({
52
52
  client: e,
53
53
  organizationId: n,
54
54
  payableId: r
@@ -56,7 +56,7 @@ async function x({ client: e, organizationId: n, payableId: r }) {
56
56
  }
57
57
  var S = 2e4, C = 1e3, w = 1.5, T = 5e3, E = (e) => Math.min(e * w, T), D = /* @__PURE__ */ new Set(["new", "approve_in_progress"]), O = 6e4;
58
58
  async function k({ client: e, organizationId: n, payableId: r }) {
59
- await t(d({
59
+ await t(f({
60
60
  client: e,
61
61
  organizationId: n
62
62
  })), await y({
@@ -23,10 +23,10 @@ import "./index68.js";
23
23
  import "./index69.js";
24
24
  import "./index70.js";
25
25
  import "./index71.js";
26
- import "./index72.js";
27
- import "./index75.js";
28
- import "./index81.js";
29
- import "./index82.js";
26
+ import "./index73.js";
27
+ import "./index76.js";
30
28
  import "./index83.js";
31
- import { BillPayWidget as e } from "./index87.js";
29
+ import "./index84.js";
30
+ import "./index85.js";
31
+ import { BillPayWidget as e } from "./index89.js";
32
32
  export { e as BillPayWidget };
@@ -1,127 +1,6 @@
1
- import { BillColumn as e } from "../../ui/dist/index81.js";
2
- import "../../ui/dist/index.js";
3
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js
4
- var t = {
5
- Drafts: "drafts",
6
- Pending: "pending",
7
- Scheduled: "scheduled",
8
- Paid: "paid",
9
- All: "all"
10
- }, n = {
11
- [t.Drafts]: ["draft", "new"],
12
- [t.Pending]: [
13
- "approve_in_progress",
14
- "waiting_to_be_paid",
15
- "partially_paid"
16
- ],
17
- [t.Scheduled]: [
18
- "new",
19
- "approve_in_progress",
20
- "waiting_to_be_paid",
21
- "partially_paid"
22
- ],
23
- [t.Paid]: ["paid"],
24
- [t.All]: void 0
25
- }, r = {
26
- [t.Drafts]: void 0,
27
- [t.Pending]: !1,
28
- [t.Scheduled]: !0,
29
- [t.Paid]: void 0,
30
- [t.All]: void 0
31
- };
32
- function i(e) {
33
- return e === t.Pending || e === t.Drafts;
34
- }
35
- var a = t.Drafts, o = [
36
- t.Drafts,
37
- t.Pending,
38
- t.Scheduled,
39
- t.Paid,
40
- t.All
41
- ], s = {
42
- [t.Drafts]: [
43
- e.Vendor,
44
- e.Attachment,
45
- e.IssueDate,
46
- e.DueDate,
47
- e.Status,
48
- e.AmountDue,
49
- e.TotalAmount,
50
- e.AddedOn
51
- ],
52
- [t.Pending]: [
53
- e.Vendor,
54
- e.Attachment,
55
- e.IssueDate,
56
- e.DueDate,
57
- e.Status,
58
- e.AmountDue,
59
- e.TotalAmount,
60
- e.AddedOn
61
- ],
62
- [t.Scheduled]: [
63
- e.Vendor,
64
- e.Attachment,
65
- e.IssueDate,
66
- e.DueDate,
67
- e.ScheduledDate,
68
- e.Status,
69
- e.AmountScheduled,
70
- e.TotalAmount,
71
- e.AddedOn
72
- ],
73
- [t.Paid]: [
74
- e.Vendor,
75
- e.Attachment,
76
- e.IssueDate,
77
- e.DueDate,
78
- e.PaidDate,
79
- e.Status,
80
- e.AmountPaid,
81
- e.TotalAmount,
82
- e.AddedOn
83
- ],
84
- [t.All]: [
85
- e.Vendor,
86
- e.Attachment,
87
- e.IssueDate,
88
- e.DueDate,
89
- e.ScheduledDate,
90
- e.Status,
91
- e.AmountDue,
92
- e.AmountPaid,
93
- e.TotalAmount,
94
- e.AddedOn
95
- ]
96
- };
97
- function c(e) {
98
- return s[e];
99
- }
100
- function l(e) {
101
- let t = n[e];
102
- return t ? [...t] : void 0;
103
- }
104
- function u(e) {
105
- return r[e];
106
- }
107
- var d = {
108
- vendorLabel: "counterpart_name",
109
- issueDateLabel: "issued_at",
110
- dueDateLabel: "due_date",
111
- scheduledDateLabel: "scheduled_payment_date",
112
- addedOnLabel: "created_at"
113
- }, f = {
114
- [e.Vendor]: "vendorLabel",
115
- [e.IssueDate]: "issueDateLabel",
116
- [e.DueDate]: "dueDateLabel",
117
- [e.ScheduledDate]: "scheduledDateLabel",
118
- [e.AddedOn]: "addedOnLabel"
119
- };
120
- function p(e) {
121
- return f[e];
122
- }
123
- function m(e) {
124
- if (e) return d[e];
2
+ function e(e) {
3
+ return e === void 0 ? "0" : e > 99 ? "99+" : String(e);
125
4
  }
126
5
  //#endregion
127
- export { s as BILL_QUEUE_COLUMNS, r as BILL_QUEUE_HAS_SCHEDULED_PAYMENT, o as BILL_QUEUE_ORDER, n as BILL_QUEUE_STATUSES, d as BILL_SORT_FIELDS, t as BillQueue, a as DEFAULT_BILL_QUEUE, c as billQueueColumns, u as billQueueHasScheduledPayment, i as billQueueOffersAddPanel, l as billQueueStatuses, p as billSortColumnId, m as billSortField };
6
+ export { e as formatBillQueueBadge };
@@ -1,11 +1,127 @@
1
+ import { BillColumn as e } from "../../ui/dist/index81.js";
2
+ import "../../ui/dist/index.js";
1
3
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js
2
- async function e(e) {
3
- if (!e.trim()) return !1;
4
- try {
5
- return await navigator.clipboard.writeText(e), !0;
6
- } catch {
7
- return !1;
8
- }
4
+ var t = {
5
+ Drafts: "drafts",
6
+ Pending: "pending",
7
+ Scheduled: "scheduled",
8
+ Paid: "paid",
9
+ All: "all"
10
+ }, n = {
11
+ [t.Drafts]: ["draft", "new"],
12
+ [t.Pending]: [
13
+ "approve_in_progress",
14
+ "waiting_to_be_paid",
15
+ "partially_paid"
16
+ ],
17
+ [t.Scheduled]: [
18
+ "new",
19
+ "approve_in_progress",
20
+ "waiting_to_be_paid",
21
+ "partially_paid"
22
+ ],
23
+ [t.Paid]: ["paid"],
24
+ [t.All]: void 0
25
+ }, r = {
26
+ [t.Drafts]: void 0,
27
+ [t.Pending]: !1,
28
+ [t.Scheduled]: !0,
29
+ [t.Paid]: void 0,
30
+ [t.All]: void 0
31
+ };
32
+ function i(e) {
33
+ return e === t.Pending || e === t.Drafts;
34
+ }
35
+ var a = t.Drafts, o = [
36
+ t.Drafts,
37
+ t.Pending,
38
+ t.Scheduled,
39
+ t.Paid,
40
+ t.All
41
+ ], s = {
42
+ [t.Drafts]: [
43
+ e.Vendor,
44
+ e.Attachment,
45
+ e.IssueDate,
46
+ e.DueDate,
47
+ e.Status,
48
+ e.AmountDue,
49
+ e.TotalAmount,
50
+ e.AddedOn
51
+ ],
52
+ [t.Pending]: [
53
+ e.Vendor,
54
+ e.Attachment,
55
+ e.IssueDate,
56
+ e.DueDate,
57
+ e.Status,
58
+ e.AmountDue,
59
+ e.TotalAmount,
60
+ e.AddedOn
61
+ ],
62
+ [t.Scheduled]: [
63
+ e.Vendor,
64
+ e.Attachment,
65
+ e.IssueDate,
66
+ e.DueDate,
67
+ e.ScheduledDate,
68
+ e.Status,
69
+ e.AmountScheduled,
70
+ e.TotalAmount,
71
+ e.AddedOn
72
+ ],
73
+ [t.Paid]: [
74
+ e.Vendor,
75
+ e.Attachment,
76
+ e.IssueDate,
77
+ e.DueDate,
78
+ e.PaidDate,
79
+ e.Status,
80
+ e.AmountPaid,
81
+ e.TotalAmount,
82
+ e.AddedOn
83
+ ],
84
+ [t.All]: [
85
+ e.Vendor,
86
+ e.Attachment,
87
+ e.IssueDate,
88
+ e.DueDate,
89
+ e.ScheduledDate,
90
+ e.Status,
91
+ e.AmountDue,
92
+ e.AmountPaid,
93
+ e.TotalAmount,
94
+ e.AddedOn
95
+ ]
96
+ };
97
+ function c(e) {
98
+ return s[e];
99
+ }
100
+ function l(e) {
101
+ let t = n[e];
102
+ return t ? [...t] : void 0;
103
+ }
104
+ function u(e) {
105
+ return r[e];
106
+ }
107
+ var d = {
108
+ vendorLabel: "counterpart_name",
109
+ issueDateLabel: "issued_at",
110
+ dueDateLabel: "due_date",
111
+ scheduledDateLabel: "scheduled_payment_date",
112
+ addedOnLabel: "created_at"
113
+ }, f = {
114
+ [e.Vendor]: "vendorLabel",
115
+ [e.IssueDate]: "issueDateLabel",
116
+ [e.DueDate]: "dueDateLabel",
117
+ [e.ScheduledDate]: "scheduledDateLabel",
118
+ [e.AddedOn]: "addedOnLabel"
119
+ };
120
+ function p(e) {
121
+ return f[e];
122
+ }
123
+ function m(e) {
124
+ if (e) return d[e];
9
125
  }
10
126
  //#endregion
11
- export { e as copyTextToClipboard };
127
+ export { s as BILL_QUEUE_COLUMNS, r as BILL_QUEUE_HAS_SCHEDULED_PAYMENT, o as BILL_QUEUE_ORDER, n as BILL_QUEUE_STATUSES, d as BILL_SORT_FIELDS, t as BillQueue, a as DEFAULT_BILL_QUEUE, c as billQueueColumns, u as billQueueHasScheduledPayment, i as billQueueOffersAddPanel, l as billQueueStatuses, p as billSortColumnId, m as billSortField };
@@ -1,10 +1,11 @@
1
- import "./index10.js";
2
- import "./index14.js";
3
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js
4
- function e(e, t) {
5
- if (e.isError) return t.duplicateWarningUnavailable;
6
- if (e.isCapped) return t.duplicateWarningManyCapped(100);
7
- if (e.count !== 0) return e.count === 1 ? t.duplicateWarningOne : t.duplicateWarningMany(e.count);
2
+ async function e(e) {
3
+ if (!e.trim()) return !1;
4
+ try {
5
+ return await navigator.clipboard.writeText(e), !0;
6
+ } catch {
7
+ return !1;
8
+ }
8
9
  }
9
10
  //#endregion
10
- export { e as resolveDuplicateWarning };
11
+ export { e as copyTextToClipboard };
@@ -1,49 +1,10 @@
1
- import { BillQueue as e } from "./index72.js";
1
+ import "./index10.js";
2
+ import "./index14.js";
2
3
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js
3
- var t = {
4
- [e.Drafts]: "Drafts",
5
- [e.Pending]: "Pending",
6
- [e.Scheduled]: "Scheduled",
7
- [e.Paid]: "Paid",
8
- [e.All]: "All bills"
9
- }, n = {
10
- [e.Drafts]: {
11
- title: "No drafts",
12
- description: "Bills wait here until someone submits them for approval."
13
- },
14
- [e.Pending]: {
15
- title: "Nothing to act on",
16
- description: "Every bill has been paid, scheduled, or is still a draft."
17
- },
18
- [e.Scheduled]: {
19
- title: "No scheduled bills",
20
- description: "Bills appear here once a payment date is set for them."
21
- },
22
- [e.Paid]: {
23
- title: "No paid bills",
24
- description: "Bills appear here once their payment has gone out."
25
- },
26
- [e.All]: {
27
- title: "No bills",
28
- description: "Bills appear here as soon as they are added."
29
- }
30
- }, r = {
31
- duplicateWarningOne: "1 possible duplicate bill found",
32
- duplicateWarningMany: (e) => `${e} possible duplicate bills found`,
33
- duplicateWarningManyCapped: (e) => `${e}+ possible duplicate bills found`,
34
- duplicateWarningUnavailable: "Couldn't check for possible duplicates. Try again shortly.",
35
- duplicateRowNote: "Possible duplicate",
36
- attachmentIndicator: "Has an attachment",
37
- emptyHeading: "Add your first bill",
38
- nonEmptyHeading: "Add a bill",
39
- createButton: "Add bill",
40
- settingsButton: "Bill pay settings",
41
- emailCopiedToast: "Email address copied to clipboard",
42
- emailCopyFailedToast: "Could not copy the email address",
43
- queues: t,
44
- queueEmptyStates: n,
45
- filters: {},
46
- filterBar: {}
47
- };
4
+ function e(e, t) {
5
+ if (e.isError) return t.duplicateWarningUnavailable;
6
+ if (e.isCapped) return t.duplicateWarningManyCapped(100);
7
+ if (e.count !== 0) return e.count === 1 ? t.duplicateWarningOne : t.duplicateWarningMany(e.count);
8
+ }
48
9
  //#endregion
49
- export { r as BILLS_TAB_LABELS_EN, n as BILL_QUEUE_EMPTY_STATES_EN, t as BILL_QUEUE_LABELS_EN };
10
+ export { e as resolveDuplicateWarning };