@tesouro/embedded-components-react 0.5.169 → 0.5.170

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 (129) hide show
  1. package/dist/index.css +39 -17
  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 +11 -11
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index17.js +95 -80
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index7.js +37 -11
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +13 -15
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +56 -67
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js +4 -43
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +6 -115
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +202 -63
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +2 -4
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +1 -1
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +84 -4
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +3 -84
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +5 -4
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +4 -5
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +32 -3
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +36 -30
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +167 -35
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +40 -164
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +1 -49
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +50 -1
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +11 -45
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index30.js +8 -13
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +14 -8
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +59 -7
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +8 -64
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +24 -8
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +150 -18
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +9 -152
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +25 -9
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +19 -21
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +32 -14
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +14 -39
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +8 -16
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +4 -8
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +98 -4
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +68 -83
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +3 -83
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +143 -3
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +44 -143
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +114 -45
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +189 -111
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +13 -0
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +72 -186
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +31 -76
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +89 -32
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +406 -83
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +12 -411
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +84 -12
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +67 -72
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +222 -73
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +37 -223
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +245 -37
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +5 -23
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +23 -252
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +626 -21
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +4 -586
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +45 -4
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +256 -41
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +3 -263
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +4 -3
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +44 -2
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +1 -46
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +8 -1
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +22 -57
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +11 -6
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +130 -11
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +3 -132
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +6 -3
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +129 -3
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +8 -124
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +7 -8
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +82 -8
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +19 -48
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +20 -21
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js +14 -6
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +28 -19
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +82 -27
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +47 -83
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +260 -47
  83. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +24 -251
  84. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +382 -25
  85. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index86.js +294 -144
  86. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js +4 -223
  87. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index88.js +7 -4
  88. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index89.js +112 -5
  89. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +37 -5
  90. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index90.js +1 -114
  91. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index91.js +26 -0
  92. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +18 -21
  93. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index100.js +126 -10
  94. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index101.js +1 -105
  95. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js +33 -2
  96. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index103.js +7 -28
  97. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index104.js +126 -73
  98. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index105.js +1 -1
  99. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index106.js +11 -30
  100. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index107.js +106 -8
  101. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index108.js +2 -181
  102. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index109.js +10 -2
  103. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index110.js +50 -12
  104. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index111.js +2 -108
  105. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +6 -0
  106. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +8 -4
  107. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +8 -1
  108. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +154 -23
  109. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +1 -0
  110. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +343 -250
  111. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +5 -123
  112. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +28 -26
  113. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +2 -94
  114. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +7 -2
  115. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +32 -5
  116. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +2 -30
  117. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +12 -2
  118. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index97.js +104 -5
  119. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +2 -34
  120. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index99.js +31 -2
  121. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  122. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
  123. package/dist/packages/shared-ui-shadcn/dist/index.js +2458 -2284
  124. package/package.json +2 -1
  125. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index92.js +0 -27
  126. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index112.js +0 -2
  127. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index113.js +0 -10
  128. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index114.js +0 -52
  129. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index115.js +0 -2
@@ -1,11 +1,10 @@
1
+ import "./index7.js";
2
+ import "./index14.js";
1
3
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.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
+ function e(e, t, n = !1) {
5
+ if (e.isError) return t.duplicateWarningUnavailable;
6
+ if (e.isCapped) return t.duplicateWarningManyCapped(100);
7
+ if (e.count !== 0) return e.count === 1 ? n ? t.duplicateReviewingOne : t.duplicateWarningOne : n ? t.duplicateReviewingMany(e.count, e.groupCount) : t.duplicateWarningMany(e.count, e.groupCount);
9
8
  }
10
9
  //#endregion
11
- export { e as copyTextToClipboard };
10
+ export { e as resolveDuplicateWarning };
@@ -1,10 +1,84 @@
1
- import "./index10.js";
2
- import "./index14.js";
1
+ import { BillQueue as e } from "./index74.js";
3
2
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.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);
8
- }
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 found",
32
+ duplicateWarningMany: (e, t) => `${e} possible duplicate bills found across ${t} original ${t === 1 ? "bill" : "bills"}`,
33
+ duplicateWarningManyCapped: (e) => `${e}+ possible duplicate bills found`,
34
+ duplicateWarningUnavailable: "Couldn't check for possible duplicates. Try again shortly.",
35
+ duplicateRowNote: "Possible duplicate",
36
+ duplicateReviewButton: "Review duplicates",
37
+ duplicateReviewClearButton: "Show all bills",
38
+ duplicateReviewingOne: "Reviewing 1 possible duplicate",
39
+ duplicateReviewingMany: (e, t) => `Reviewing ${e} possible duplicate bills across ${t} original ${t === 1 ? "bill" : "bills"}`,
40
+ duplicateFilterChip: "Possible duplicates",
41
+ duplicateMenuTrigger: ({ vendorLabel: e, invoiceNumberLabel: t }) => t ? `Open duplicate actions for ${e}, invoice ${t}` : `Open duplicate actions for ${e}`,
42
+ duplicateNotDuplicateAction: "Not a duplicate",
43
+ duplicateNotDuplicateConfirmTitle: "Mark as not a duplicate?",
44
+ duplicateNotDuplicateConfirmDescription: "You can't undo this action.",
45
+ duplicateNotDuplicateConfirmButton: "Not a duplicate",
46
+ duplicateNotDuplicateConfirmBackButton: "Back",
47
+ duplicateDeleteAction: "Remove bill",
48
+ duplicateDeleteConfirmTitle: "Remove duplicate bill?",
49
+ duplicateDeleteConfirmDescription: "You can't undo this action.",
50
+ duplicateDeleteConfirmButton: "Remove bill",
51
+ duplicateDeletedToast: "Duplicate removed",
52
+ duplicateConfirmAction: "Confirm duplicate",
53
+ duplicateConfirmDuplicateTitle: "Confirm duplicate?",
54
+ duplicateConfirmDuplicateDescription: "This bill is already cancelled. This records it as a duplicate.",
55
+ duplicateConfirmDuplicateButton: "Confirm duplicate",
56
+ duplicateConfirmedToast: "Duplicate confirmed",
57
+ duplicateCancelAction: "Cancel bill",
58
+ duplicateCancelConfirmTitle: "Cancel duplicate bill?",
59
+ duplicateCancelConfirmDescription: "You can't undo this action.",
60
+ duplicateCancelConfirmButton: "Cancel bill",
61
+ duplicateCancelConfirmBackButton: "Back",
62
+ duplicateDismissedToast: "Marked as not a duplicate.",
63
+ duplicateCancelledToast: "Duplicate cancelled",
64
+ duplicateActionFailedToast: "Couldn't update this duplicate. Try again.",
65
+ duplicateGroupHeader: ({ vendorLabel: e, invoiceNumberLabel: t }) => t ? `${e} - ${t}` : e,
66
+ duplicateOriginalBillLabel: "Original bill",
67
+ attachmentIndicator: "Has an attachment",
68
+ scheduledRelativeDay: {
69
+ today: "Today",
70
+ tomorrow: "Tomorrow"
71
+ },
72
+ emptyHeading: "Add your first bill",
73
+ nonEmptyHeading: "Add a bill",
74
+ createButton: "Add bill",
75
+ settingsButton: "Bill pay settings",
76
+ emailCopiedToast: "Email address copied to clipboard",
77
+ emailCopyFailedToast: "Could not copy the email address",
78
+ queues: t,
79
+ queueEmptyStates: n,
80
+ filters: {},
81
+ filterBar: {}
82
+ };
9
83
  //#endregion
10
- export { e as resolveDuplicateWarning };
84
+ export { r as BILLS_TAB_LABELS_EN, n as BILL_QUEUE_EMPTY_STATES_EN, t as BILL_QUEUE_LABELS_EN };
@@ -1,53 +1,24 @@
1
- import { BillQueue as e } from "./index75.js";
1
+ import { BillColumn as e } from "../../ui/dist/index83.js";
2
+ import "../../ui/dist/index.js";
2
3
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js
3
4
  var t = {
4
- [e.Drafts]: "Drafts",
5
- [e.Pending]: "Pending",
6
- [e.Scheduled]: "Scheduled",
7
- [e.Paid]: "Paid",
8
- [e.All]: "All bills"
5
+ root: "bill-pay-bills-tab",
6
+ uploadTray: "bill-pay-upload-tray",
7
+ detailsSheet: "bill-pay-details-sheet"
9
8
  }, 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
- scheduledRelativeDay: {
38
- today: "Today",
39
- tomorrow: "Tomorrow"
40
- },
41
- emptyHeading: "Add your first bill",
42
- nonEmptyHeading: "Add a bill",
43
- createButton: "Add bill",
44
- settingsButton: "Bill pay settings",
45
- emailCopiedToast: "Email address copied to clipboard",
46
- emailCopyFailedToast: "Could not copy the email address",
47
- queues: t,
48
- queueEmptyStates: n,
49
- filters: {},
50
- filterBar: {}
9
+ [e.Vendor]: "bill-pay-bills-cell-vendor",
10
+ [e.InvoiceNumber]: "bill-pay-bills-cell-invoice-number",
11
+ [e.Attachment]: "bill-pay-bills-cell-attachment",
12
+ [e.IssueDate]: "bill-pay-bills-cell-issue-date",
13
+ [e.DueDate]: "bill-pay-bills-cell-due-date",
14
+ [e.ScheduledDate]: "bill-pay-bills-cell-scheduled-date",
15
+ [e.PaidDate]: "bill-pay-bills-cell-paid-date",
16
+ [e.Status]: "bill-pay-bills-cell-status",
17
+ [e.AmountDue]: "bill-pay-bills-cell-amount-due",
18
+ [e.AmountScheduled]: "bill-pay-bills-cell-amount-scheduled",
19
+ [e.AmountPaid]: "bill-pay-bills-cell-amount-paid",
20
+ [e.TotalAmount]: "bill-pay-bills-cell-total-amount",
21
+ [e.AddedOn]: "bill-pay-bills-cell-added-on"
51
22
  };
52
23
  //#endregion
53
- export { r as BILLS_TAB_LABELS_EN, n as BILL_QUEUE_EMPTY_STATES_EN, t as BILL_QUEUE_LABELS_EN };
24
+ export { t as billsTabTestIds, n as billsTableCellTestIds };
@@ -1,23 +1,22 @@
1
- import { BillColumn as e } from "../../ui/dist/index83.js";
2
- import "../../ui/dist/index.js";
1
+ "use client";
2
+ "use client";
3
+ "use client";
4
+ "use client";
5
+ import { usePayablesCountQueries as e } from "../../data-access/dist/index17.js";
6
+ import "../../data-access/dist/index.js";
7
+ import { BILL_QUEUE_ORDER as t, billQueueHasScheduledPayment as n, billQueueStatuses as r } from "./index74.js";
8
+ import { useMemo as i } from "react";
3
9
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js
4
- var t = {
5
- root: "bill-pay-bills-tab",
6
- uploadTray: "bill-pay-upload-tray",
7
- detailsSheet: "bill-pay-details-sheet"
8
- }, n = {
9
- [e.Vendor]: "bill-pay-bills-cell-vendor",
10
- [e.Attachment]: "bill-pay-bills-cell-attachment",
11
- [e.IssueDate]: "bill-pay-bills-cell-issue-date",
12
- [e.DueDate]: "bill-pay-bills-cell-due-date",
13
- [e.ScheduledDate]: "bill-pay-bills-cell-scheduled-date",
14
- [e.PaidDate]: "bill-pay-bills-cell-paid-date",
15
- [e.Status]: "bill-pay-bills-cell-status",
16
- [e.AmountDue]: "bill-pay-bills-cell-amount-due",
17
- [e.AmountScheduled]: "bill-pay-bills-cell-amount-scheduled",
18
- [e.AmountPaid]: "bill-pay-bills-cell-amount-paid",
19
- [e.TotalAmount]: "bill-pay-bills-cell-total-amount",
20
- [e.AddedOn]: "bill-pay-bills-cell-added-on"
21
- };
10
+ var a = t.map((e) => ({
11
+ status__in: r(e),
12
+ has_scheduled_payment: n(e)
13
+ }));
14
+ function o({ enabled: n = !0 } = {}) {
15
+ let r = e({
16
+ filters: a,
17
+ enabled: n
18
+ });
19
+ return i(() => Object.fromEntries(t.map((e, t) => [e, r[t]?.count])), [r]);
20
+ }
22
21
  //#endregion
23
- export { t as billsTabTestIds, n as billsTableCellTestIds };
22
+ export { o as useBillQueueCounts };
@@ -1,9 +1,17 @@
1
+ import { BanIcon as e, Trash2Icon as t } from "lucide-react";
1
2
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js
2
- function e(e) {
3
- return e?.counterpart ?? e?.counterpart_raw_data ?? void 0;
4
- }
5
- function t(e) {
6
- return e?.counterpart?.name ?? e?.counterpart_raw_data?.name ?? "";
3
+ function n(n, r) {
4
+ return {
5
+ title: n.title,
6
+ description: n.description,
7
+ confirmButton: n.confirmButton,
8
+ presentation: {
9
+ alignment: "center",
10
+ icon: r === "delete" ? t : e,
11
+ tone: r === "confirm" ? "default" : "destructive",
12
+ actionWidth: "equal"
13
+ }
14
+ };
7
15
  }
8
16
  //#endregion
9
- export { e as resolveVendor, t as resolveVendorName };
17
+ export { n as duplicateRemovalPrompt };
@@ -1,22 +1,31 @@
1
- "use client";
2
- "use client";
3
- "use client";
4
- "use client";
5
- import { usePayablesCountQueries as e } from "../../data-access/dist/index17.js";
6
- import "../../data-access/dist/index.js";
7
- import { BILL_QUEUE_ORDER as t, billQueueHasScheduledPayment as n, billQueueStatuses as r } from "./index75.js";
8
- import { useMemo as i } from "react";
9
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js
10
- var a = t.map((e) => ({
11
- status__in: r(e),
12
- has_scheduled_payment: n(e)
13
- }));
14
- function o({ enabled: n = !0 } = {}) {
15
- let r = e({
16
- filters: a,
17
- enabled: n
18
- });
19
- return i(() => Object.fromEntries(t.map((e, t) => [e, r[t]?.count])), [r]);
2
+ var e = {
3
+ Draft: "draft",
4
+ ReadyToSubmit: "ready_to_submit",
5
+ PendingApproval: "pending_approval",
6
+ ReadyToPay: "ready_to_pay",
7
+ Paid: "paid",
8
+ Canceled: "canceled",
9
+ Rejected: "rejected"
10
+ }, t = [
11
+ e.Draft,
12
+ e.ReadyToSubmit,
13
+ e.PendingApproval,
14
+ e.ReadyToPay,
15
+ e.Paid,
16
+ e.Canceled,
17
+ e.Rejected
18
+ ], n = {
19
+ [e.Draft]: ["draft"],
20
+ [e.ReadyToSubmit]: ["new"],
21
+ [e.PendingApproval]: ["approve_in_progress"],
22
+ [e.ReadyToPay]: ["waiting_to_be_paid", "partially_paid"],
23
+ [e.Paid]: ["paid"],
24
+ [e.Canceled]: ["canceled"],
25
+ [e.Rejected]: ["rejected"]
26
+ };
27
+ function r(e) {
28
+ return e.flatMap((e) => n[e] ?? [e]);
20
29
  }
21
30
  //#endregion
22
- export { o as useBillQueueCounts };
31
+ export { t as BILL_STATUS_FILTER_ORDER, e as BillStatusFilter, r as billStatusFilterApiValues };
@@ -1,31 +1,86 @@
1
+ import { endOfDay as e, endOfMonth as t, endOfQuarter as n, endOfWeek as r, endOfYear as i, startOfDay as a, startOfMonth as o, startOfQuarter as s, startOfWeek as c, startOfYear as l, subDays as u, subMonths as d, subQuarters as f, subWeeks as p, subYears as m } from "date-fns";
1
2
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js
2
- var e = {
3
- Draft: "draft",
4
- ReadyToSubmit: "ready_to_submit",
5
- PendingApproval: "pending_approval",
6
- ReadyToPay: "ready_to_pay",
7
- Paid: "paid",
8
- Canceled: "canceled",
9
- Rejected: "rejected"
10
- }, t = [
11
- e.Draft,
12
- e.ReadyToSubmit,
13
- e.PendingApproval,
14
- e.ReadyToPay,
15
- e.Paid,
16
- e.Canceled,
17
- e.Rejected
18
- ], n = {
19
- [e.Draft]: ["draft"],
20
- [e.ReadyToSubmit]: ["new"],
21
- [e.PendingApproval]: ["approve_in_progress"],
22
- [e.ReadyToPay]: ["waiting_to_be_paid", "partially_paid"],
23
- [e.Paid]: ["paid"],
24
- [e.Canceled]: ["canceled"],
25
- [e.Rejected]: ["rejected"]
3
+ var h = {
4
+ Today: "today",
5
+ ThisWeek: "this_week",
6
+ ThisMonth: "this_month",
7
+ ThisQuarter: "this_quarter",
8
+ ThisYear: "this_year",
9
+ Yesterday: "yesterday",
10
+ LastWeek: "last_week",
11
+ LastMonth: "last_month",
12
+ Last30Days: "last_30_days",
13
+ Last90Days: "last_90_days",
14
+ LastQuarter: "last_quarter",
15
+ LastYear: "last_year"
26
16
  };
27
- function r(e) {
28
- return e.flatMap((e) => n[e] ?? [e]);
17
+ function g(g, _ = /* @__PURE__ */ new Date()) {
18
+ let v = a(_);
19
+ switch (g) {
20
+ case h.Today: return {
21
+ from: v,
22
+ to: e(v)
23
+ };
24
+ case h.ThisWeek: return {
25
+ from: c(v),
26
+ to: r(v)
27
+ };
28
+ case h.ThisMonth: return {
29
+ from: o(v),
30
+ to: t(v)
31
+ };
32
+ case h.ThisQuarter: return {
33
+ from: s(v),
34
+ to: n(v)
35
+ };
36
+ case h.ThisYear: return {
37
+ from: l(v),
38
+ to: i(v)
39
+ };
40
+ case h.Yesterday: {
41
+ let t = u(v, 1);
42
+ return {
43
+ from: t,
44
+ to: e(t)
45
+ };
46
+ }
47
+ case h.LastWeek: {
48
+ let e = c(p(v, 1));
49
+ return {
50
+ from: e,
51
+ to: r(e)
52
+ };
53
+ }
54
+ case h.LastMonth: {
55
+ let e = o(d(v, 1));
56
+ return {
57
+ from: e,
58
+ to: t(e)
59
+ };
60
+ }
61
+ case h.Last30Days: return {
62
+ from: u(v, 29),
63
+ to: e(v)
64
+ };
65
+ case h.Last90Days: return {
66
+ from: u(v, 89),
67
+ to: e(v)
68
+ };
69
+ case h.LastQuarter: {
70
+ let e = s(f(v, 1));
71
+ return {
72
+ from: e,
73
+ to: n(e)
74
+ };
75
+ }
76
+ case h.LastYear: {
77
+ let e = l(m(v, 1));
78
+ return {
79
+ from: e,
80
+ to: i(e)
81
+ };
82
+ }
83
+ }
29
84
  }
30
85
  //#endregion
31
- export { t as BILL_STATUS_FILTER_ORDER, e as BillStatusFilter, r as billStatusFilterApiValues };
86
+ export { h as BillsDatePreset, g as resolveDatePreset };
@@ -1,86 +1,50 @@
1
- import { endOfDay as e, endOfMonth as t, endOfQuarter as n, endOfWeek as r, endOfYear as i, startOfDay as a, startOfMonth as o, startOfQuarter as s, startOfWeek as c, startOfYear as l, subDays as u, subMonths as d, subQuarters as f, subWeeks as p, subYears as m } from "date-fns";
1
+ import { BillStatusFilter as e } from "./index80.js";
2
+ import { BillsDatePreset as t } from "./index81.js";
2
3
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js
3
- var h = {
4
- Today: "today",
5
- ThisWeek: "this_week",
6
- ThisMonth: "this_month",
7
- ThisQuarter: "this_quarter",
8
- ThisYear: "this_year",
9
- Yesterday: "yesterday",
10
- LastWeek: "last_week",
11
- LastMonth: "last_month",
12
- Last30Days: "last_30_days",
13
- Last90Days: "last_90_days",
14
- LastQuarter: "last_quarter",
15
- LastYear: "last_year"
4
+ var n = {
5
+ presets: {
6
+ [t.Today]: "Today",
7
+ [t.ThisWeek]: "This week",
8
+ [t.ThisMonth]: "This month",
9
+ [t.ThisQuarter]: "This quarter",
10
+ [t.ThisYear]: "This year",
11
+ [t.Yesterday]: "Yesterday",
12
+ [t.LastWeek]: "Last week",
13
+ [t.LastMonth]: "Last month",
14
+ [t.Last30Days]: "Last 30 days",
15
+ [t.Last90Days]: "Last 90 days",
16
+ [t.LastQuarter]: "Last quarter",
17
+ [t.LastYear]: "Last year"
18
+ },
19
+ presetGroupCurrent: "Current",
20
+ presetGroupPast: "Past",
21
+ statuses: {
22
+ [e.Draft]: "Draft",
23
+ [e.ReadyToSubmit]: "Ready to submit",
24
+ [e.PendingApproval]: "Pending review",
25
+ [e.ReadyToPay]: "Ready to pay",
26
+ [e.Paid]: "Paid",
27
+ [e.Canceled]: "Cancelled",
28
+ [e.Rejected]: "Rejected"
29
+ },
30
+ dateFieldNames: {
31
+ issueDate: "Issue date",
32
+ dueDate: "Due date",
33
+ addedOn: "Added on"
34
+ },
35
+ dateChip: (e, t) => `${e}: ${t}`,
36
+ statusChip: (e) => `Status: ${e}`,
37
+ vendorChip: (e) => `Vendor: ${e}`,
38
+ amountChip: (e) => `Total amount: ${e}`,
39
+ attachmentChipHas: "Has attachment",
40
+ attachmentChipNone: "No attachment",
41
+ moreSelected: (e, t) => `${e} + ${t} more`,
42
+ amountAtLeast: (e) => `${e} or more`,
43
+ amountAtMost: (e) => `${e} or less`,
44
+ amountBetween: (e, t) => `${e} - ${t}`,
45
+ dateRange: (e, t) => `${e} - ${t}`,
46
+ dateFrom: (e) => `From ${e}`,
47
+ dateTo: (e) => `Until ${e}`
16
48
  };
17
- function g(g, _ = /* @__PURE__ */ new Date()) {
18
- let v = a(_);
19
- switch (g) {
20
- case h.Today: return {
21
- from: v,
22
- to: e(v)
23
- };
24
- case h.ThisWeek: return {
25
- from: c(v),
26
- to: r(v)
27
- };
28
- case h.ThisMonth: return {
29
- from: o(v),
30
- to: t(v)
31
- };
32
- case h.ThisQuarter: return {
33
- from: s(v),
34
- to: n(v)
35
- };
36
- case h.ThisYear: return {
37
- from: l(v),
38
- to: i(v)
39
- };
40
- case h.Yesterday: {
41
- let t = u(v, 1);
42
- return {
43
- from: t,
44
- to: e(t)
45
- };
46
- }
47
- case h.LastWeek: {
48
- let e = c(p(v, 1));
49
- return {
50
- from: e,
51
- to: r(e)
52
- };
53
- }
54
- case h.LastMonth: {
55
- let e = o(d(v, 1));
56
- return {
57
- from: e,
58
- to: t(e)
59
- };
60
- }
61
- case h.Last30Days: return {
62
- from: u(v, 29),
63
- to: e(v)
64
- };
65
- case h.Last90Days: return {
66
- from: u(v, 89),
67
- to: e(v)
68
- };
69
- case h.LastQuarter: {
70
- let e = s(f(v, 1));
71
- return {
72
- from: e,
73
- to: n(e)
74
- };
75
- }
76
- case h.LastYear: {
77
- let e = l(m(v, 1));
78
- return {
79
- from: e,
80
- to: i(e)
81
- };
82
- }
83
- }
84
- }
85
49
  //#endregion
86
- export { h as BillsDatePreset, g as resolveDatePreset };
50
+ export { n as BILLS_FILTER_LABELS_EN };