@tesouro/embedded-components-react 0.2.326 → 0.2.328

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 (134) hide show
  1. package/dist/index.css +3 -0
  2. package/dist/index.d.ts +59 -59
  3. package/dist/index.js +1 -1
  4. package/dist/lib/BillPayWidget.js +1 -1
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index.js +10 -10
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index10.js +119 -33
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index4.js +50 -21
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index5.js +39 -17
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index8.js +1 -1
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index9.js +17 -12
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +10 -10
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +2 -2
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +45 -17
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +4 -21
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +9 -24
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +42 -9
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index16.js +25 -50
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index17.js +49 -5
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +91 -63
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +20 -49
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +52 -7
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +5 -35
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +67 -113
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +46 -53
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +80 -205
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +32 -192
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +117 -62
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +54 -45
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +205 -31
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +184 -143
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index30.js +63 -33
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +46 -100
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +32 -7
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +146 -182
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +38 -4
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +102 -24
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +10 -80
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +200 -78
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +2 -1
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +27 -2
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +78 -41
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +132 -1
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +3 -53
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +2 -9
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +43 -16
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +1 -8
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +50 -77
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +8 -145
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +18 -5
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +6 -6
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +78 -7
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +138 -75
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +2 -0
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +6 -6
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +7 -113
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +85 -1
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +2 -24
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +8 -0
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +115 -0
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +1 -0
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +25 -0
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +2 -2
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +33 -25
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js +13 -12
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +58 -13
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index14.js +2 -24
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js +22 -2
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +23 -31
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +1 -262
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +15 -2
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +23 -6
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +2 -49
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +41 -1
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +271 -20
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +2 -286
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +9 -2
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +47 -14
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +2 -120
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +22 -2
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +284 -8
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index29.js +2 -96
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +16 -2
  83. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +118 -11
  84. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js +1 -57
  85. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +10 -2
  86. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +93 -51
  87. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +1 -138
  88. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +12 -1
  89. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +56 -5
  90. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +2 -44
  91. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +53 -1
  92. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +137 -2
  93. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +2 -16
  94. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js +7 -2
  95. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +42 -59
  96. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +2 -238
  97. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +2 -202
  98. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +61 -8
  99. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +2 -8
  100. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +2 -91
  101. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +16 -0
  102. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +1 -1
  103. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +67 -4
  104. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +248 -25
  105. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +204 -2
  106. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +6 -3
  107. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +6 -32
  108. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +93 -2
  109. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +1 -105
  110. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +7 -2
  111. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +28 -16
  112. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +2 -10
  113. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +4 -167
  114. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +34 -2
  115. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +2 -14
  116. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +10 -87
  117. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +105 -1
  118. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +2 -0
  119. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +18 -0
  120. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +10 -0
  121. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +170 -0
  122. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +2 -0
  123. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +14 -0
  124. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +89 -0
  125. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +2 -0
  126. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/approvalPoliciesApi.js +20 -20
  127. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/index.js +4 -4
  128. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +21 -21
  129. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +142 -102
  130. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +8 -3
  131. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  132. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index7.js +1 -1
  133. package/package.json +1 -1
  134. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +0 -12
@@ -0,0 +1,170 @@
1
+ import { Badge as e, Button as t, Calendar as n, Dialog as r, DialogContent as i, DialogDescription as a, DialogFooter as o, DialogHeader as ee, DialogTitle as s, Label as c, Popover as l, PopoverContent as u, PopoverTrigger as d, Select as f, SelectContent as p, SelectItem as m, SelectTrigger as h, SelectValue as g, cn as _ } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { SCHEDULE_PAYMENT_DIALOG_LABELS_EN as v } from "./index68.js";
3
+ import { TONE_TEXT_CLASS as y } from "./index69.js";
4
+ import { useId as b } from "react";
5
+ import { jsx as x, jsxs as S } from "react/jsx-runtime";
6
+ import { CalendarIcon as C } from "lucide-react";
7
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js
8
+ var w = {
9
+ sufficient: y.muted,
10
+ warning: y.warning,
11
+ error: y.error
12
+ };
13
+ function T({ open: y, onOpenChange: T, amountDueLabel: E, amountDue: D, dueDateSuffix: O, paymentAmountLabel: k, paymentAmount: A, selectedDate: j, selectedDateLabel: M, calendarDisabled: N, isToday: P, selectedAccountId: F, accounts: I, poweredByBankName: L, funds: R, isAccountsLoading: z, isAccountsError: B, isSubmitting: V, onDateChange: H, onAccountChange: U, onReview: W, onCancel: G, testId: K, labels: q }) {
14
+ let J = {
15
+ ...v,
16
+ ...q
17
+ }, Y = b(), X = b(), Z = b(), Q = z || B || I.length === 0, $ = I.find((e) => e.id === F);
18
+ return /* @__PURE__ */ x(r, {
19
+ open: y,
20
+ onOpenChange: (e) => e ? T(e) : G(),
21
+ children: /* @__PURE__ */ S(i, {
22
+ "data-testid": K,
23
+ className: "ttw:flex ttw:max-w-lg ttw:flex-col ttw:gap-3",
24
+ children: [
25
+ /* @__PURE__ */ S(ee, { children: [/* @__PURE__ */ x(s, { children: J.title }), /* @__PURE__ */ x(a, {
26
+ className: "ttw:sr-only",
27
+ children: J.hiddenDescription
28
+ })] }),
29
+ /* @__PURE__ */ S("div", {
30
+ className: "ttw:flex ttw:flex-col ttw:gap-3",
31
+ children: [
32
+ /* @__PURE__ */ S("div", {
33
+ className: "ttw:flex ttw:flex-col ttw:gap-1.5",
34
+ children: [/* @__PURE__ */ x("p", {
35
+ className: "ttw:text-base ttw:text-muted-foreground",
36
+ children: E
37
+ }), /* @__PURE__ */ S("div", {
38
+ className: "ttw:flex ttw:flex-wrap ttw:items-end ttw:gap-2",
39
+ children: [/* @__PURE__ */ x("p", {
40
+ className: "ttw:text-4xl ttw:font-semibold ttw:text-foreground",
41
+ children: D
42
+ }), O ? /* @__PURE__ */ x("p", {
43
+ className: "ttw:pb-1 ttw:text-xs ttw:text-muted-foreground",
44
+ children: O
45
+ }) : null]
46
+ })]
47
+ }),
48
+ /* @__PURE__ */ S("div", {
49
+ className: "ttw:grid ttw:grid-cols-2 ttw:gap-4",
50
+ children: [/* @__PURE__ */ S("div", {
51
+ className: "ttw:grid ttw:gap-2.5",
52
+ children: [/* @__PURE__ */ x(c, { children: k }), /* @__PURE__ */ x("div", {
53
+ "aria-disabled": !0,
54
+ className: "ttw:flex ttw:h-9 ttw:items-center ttw:rounded-md ttw:border ttw:border-border ttw:bg-muted ttw:px-3 ttw:text-sm ttw:font-medium ttw:text-muted-foreground",
55
+ children: A
56
+ })]
57
+ }), /* @__PURE__ */ S("div", {
58
+ className: "ttw:grid ttw:gap-2.5",
59
+ children: [/* @__PURE__ */ x(c, {
60
+ id: Y,
61
+ children: J.paymentDate
62
+ }), /* @__PURE__ */ S(l, { children: [/* @__PURE__ */ x(d, {
63
+ asChild: !0,
64
+ children: /* @__PURE__ */ S(t, {
65
+ type: "button",
66
+ variant: "outline",
67
+ className: "ttw:justify-start ttw:gap-2",
68
+ "aria-labelledby": `${Y} ${X}`,
69
+ children: [
70
+ /* @__PURE__ */ x(C, { className: "ttw:size-4" }),
71
+ /* @__PURE__ */ x("span", {
72
+ id: X,
73
+ children: M ?? J.paymentDatePlaceholder
74
+ }),
75
+ P ? /* @__PURE__ */ x(e, {
76
+ variant: "secondary",
77
+ children: J.today
78
+ }) : null
79
+ ]
80
+ })
81
+ }), /* @__PURE__ */ x(u, {
82
+ align: "start",
83
+ className: "ttw:w-auto ttw:p-0",
84
+ children: /* @__PURE__ */ x(n, {
85
+ mode: "single",
86
+ selected: j,
87
+ onSelect: H,
88
+ disabled: N
89
+ })
90
+ })] })]
91
+ })]
92
+ }),
93
+ /* @__PURE__ */ S("div", {
94
+ className: "ttw:grid ttw:gap-2.5",
95
+ children: [
96
+ /* @__PURE__ */ x(c, {
97
+ id: Z,
98
+ children: J.payFrom
99
+ }),
100
+ /* @__PURE__ */ S(f, {
101
+ value: F,
102
+ disabled: Q,
103
+ onValueChange: U,
104
+ children: [/* @__PURE__ */ x(h, {
105
+ className: "ttw:w-full ttw:data-[size=default]:h-14",
106
+ "aria-labelledby": Z,
107
+ children: $ ? /* @__PURE__ */ S("span", {
108
+ className: "ttw:flex ttw:w-full ttw:items-center ttw:gap-3",
109
+ children: [/* @__PURE__ */ S("span", {
110
+ className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:flex-col ttw:text-left",
111
+ children: [/* @__PURE__ */ x("span", {
112
+ className: "ttw:truncate",
113
+ children: $.primaryLabel
114
+ }), $.secondaryLabel ? /* @__PURE__ */ x("span", {
115
+ className: "ttw:truncate ttw:text-xs ttw:text-muted-foreground",
116
+ children: $.secondaryLabel
117
+ }) : null]
118
+ }), L ? /* @__PURE__ */ x(e, {
119
+ variant: "secondary",
120
+ className: "ttw:shrink-0",
121
+ children: J.poweredByBank(L)
122
+ }) : null]
123
+ }) : /* @__PURE__ */ x(g, { placeholder: J.payFromPlaceholder })
124
+ }), /* @__PURE__ */ x(p, { children: I.map((e) => /* @__PURE__ */ x(m, {
125
+ value: e.id,
126
+ children: /* @__PURE__ */ S("span", {
127
+ className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:flex-col",
128
+ children: [/* @__PURE__ */ x("span", {
129
+ className: "ttw:truncate",
130
+ children: e.primaryLabel
131
+ }), e.secondaryLabel ? /* @__PURE__ */ x("span", {
132
+ className: "ttw:truncate ttw:text-xs ttw:text-muted-foreground",
133
+ children: e.secondaryLabel
134
+ }) : null]
135
+ })
136
+ }, e.id)) })]
137
+ }),
138
+ Q ? /* @__PURE__ */ x("p", {
139
+ className: _("ttw:text-sm", B ? "ttw:text-destructive" : "ttw:text-muted-foreground"),
140
+ role: B ? "alert" : void 0,
141
+ children: z ? J.loadingAccounts : B ? J.accountsError : J.noAccounts
142
+ }) : null
143
+ ]
144
+ }),
145
+ R.message ? /* @__PURE__ */ x("p", {
146
+ className: _("ttw:text-sm", w[R.state]),
147
+ children: R.message
148
+ }) : null
149
+ ]
150
+ }),
151
+ /* @__PURE__ */ S(o, {
152
+ className: "ttw:pt-4 ttw:sm:gap-3",
153
+ children: [/* @__PURE__ */ x(t, {
154
+ type: "button",
155
+ variant: "outline",
156
+ onClick: G,
157
+ children: J.cancelButton
158
+ }), /* @__PURE__ */ x(t, {
159
+ type: "button",
160
+ loading: V,
161
+ onClick: W,
162
+ children: J.reviewButton
163
+ })]
164
+ })
165
+ ]
166
+ })
167
+ });
168
+ }
169
+ //#endregion
170
+ export { T as SchedulePaymentDialog, T as default };
@@ -0,0 +1,2 @@
1
+ import "./index68.js";
2
+ import "./index70.js";
@@ -0,0 +1,14 @@
1
+ import { BILL_UPLOAD_DROPZONE_LABELS_EN as e } from "./index2.js";
2
+ import "./index5.js";
3
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js
4
+ var t = {
5
+ uploadHeading: "Attach an invoice (optional)",
6
+ scannedAttachment: (e) => `Scanned attachment: ${e}`,
7
+ scanning: "Scanning attachment…",
8
+ scanningAttachment: (e) => `Scanning attachment: ${e}`,
9
+ download: "Download the scanned attachment",
10
+ delete: "Delete the scanned attachment",
11
+ dropzone: e
12
+ };
13
+ //#endregion
14
+ export { t as SOURCE_DOCUMENT_PANEL_LABELS_EN };
@@ -0,0 +1,89 @@
1
+ import { Button as e, Skeleton as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { BillUploadDropzone as n } from "./index3.js";
3
+ import "./index5.js";
4
+ import { SOURCE_DOCUMENT_PANEL_LABELS_EN as r } from "./index72.js";
5
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
6
+ import { Download as o, Trash2 as s } from "lucide-react";
7
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js
8
+ function c(c) {
9
+ let { mode: l, testId: u, labels: d } = c, f = {
10
+ ...r,
11
+ ...d,
12
+ dropzone: {
13
+ ...r.dropzone,
14
+ ...d?.dropzone
15
+ }
16
+ };
17
+ if (l === "loading") return /* @__PURE__ */ a("div", {
18
+ className: "ttw:flex ttw:flex-col ttw:gap-3",
19
+ "data-testid": u,
20
+ children: [/* @__PURE__ */ i("div", {
21
+ className: "ttw:flex ttw:items-center ttw:justify-end ttw:gap-1",
22
+ children: /* @__PURE__ */ i("span", {
23
+ "aria-live": "polite",
24
+ className: "ttw:text-sm ttw:text-muted-foreground",
25
+ children: c.fileName ? f.scanningAttachment(c.fileName) : f.scanning
26
+ })
27
+ }), /* @__PURE__ */ a("div", {
28
+ className: "ttw:flex ttw:h-[min(70vh,44rem)] ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card ttw:p-4",
29
+ children: [
30
+ /* @__PURE__ */ i(t, { className: "ttw:h-6 ttw:w-2/5" }),
31
+ /* @__PURE__ */ i(t, { className: "ttw:h-4 ttw:w-3/5" }),
32
+ /* @__PURE__ */ i(t, { className: "ttw:mt-4 ttw:h-4 ttw:w-full" }),
33
+ /* @__PURE__ */ i(t, { className: "ttw:h-4 ttw:w-full" }),
34
+ /* @__PURE__ */ i(t, { className: "ttw:h-4 ttw:w-4/5" }),
35
+ /* @__PURE__ */ i(t, { className: "ttw:mt-auto ttw:h-24 ttw:w-full" })
36
+ ]
37
+ })]
38
+ });
39
+ if (l === "document") {
40
+ let { fileName: t, preview: n, onDownload: r, onDelete: l } = c;
41
+ return /* @__PURE__ */ a("div", {
42
+ className: "ttw:flex ttw:flex-col ttw:gap-3",
43
+ "data-testid": u,
44
+ children: [/* @__PURE__ */ a("div", {
45
+ className: "ttw:flex ttw:items-center ttw:justify-end ttw:gap-1",
46
+ children: [
47
+ /* @__PURE__ */ i("span", {
48
+ className: "ttw:text-sm ttw:text-muted-foreground",
49
+ children: f.scannedAttachment(t ?? "")
50
+ }),
51
+ r ? /* @__PURE__ */ i(e, {
52
+ type: "button",
53
+ variant: "ghost",
54
+ size: "icon",
55
+ "aria-label": f.download,
56
+ onClick: r,
57
+ children: /* @__PURE__ */ i(o, { className: "ttw:size-4" })
58
+ }) : null,
59
+ l ? /* @__PURE__ */ i(e, {
60
+ type: "button",
61
+ variant: "ghost",
62
+ size: "icon",
63
+ "aria-label": f.delete,
64
+ onClick: l,
65
+ children: /* @__PURE__ */ i(s, { className: "ttw:size-4" })
66
+ }) : null
67
+ ]
68
+ }), /* @__PURE__ */ i("div", {
69
+ className: "ttw:flex ttw:h-[min(70vh,44rem)] ttw:items-start ttw:justify-center ttw:overflow-auto ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card ttw:p-4",
70
+ children: n
71
+ })]
72
+ });
73
+ }
74
+ return /* @__PURE__ */ a("div", {
75
+ className: "ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card ttw:p-4",
76
+ "data-testid": u,
77
+ children: [/* @__PURE__ */ i("p", {
78
+ className: "ttw:mb-3 ttw:text-sm ttw:font-medium ttw:text-foreground",
79
+ children: f.uploadHeading
80
+ }), /* @__PURE__ */ i(n, {
81
+ status: c.uploadStatus,
82
+ errorMessage: c.uploadErrorMessage,
83
+ onFilesSelected: c.onFilesSelected,
84
+ labels: f.dropzone
85
+ })]
86
+ });
87
+ }
88
+ //#endregion
89
+ export { c as SourceDocumentPanel, c as default };
@@ -0,0 +1,2 @@
1
+ import "./index72.js";
2
+ import "./index73.js";
@@ -27,36 +27,36 @@ function b(e, t) {
27
27
  }))
28
28
  };
29
29
  }
30
- function x({ objectType: e = f.Payable } = {}) {
31
- let { client: t, organizationId: i, widgetToken: o, authEpoch: s } = n(), p = i, g = !!(p && o), _ = { "x-organization-id": p ?? "" }, y = { object_type: e }, b = a({
32
- client: t,
33
- headers: _,
34
- query: y
35
- }), x = h({
36
- queryKey: [...c(b, s).queryKey, "all"],
37
- enabled: g,
30
+ function x({ objectType: e = f.Payable, enabled: t = !0 } = {}) {
31
+ let { client: i, organizationId: o, widgetToken: s, authEpoch: p } = n(), g = o, _ = !!(g && s) && t, y = { "x-organization-id": g ?? "" }, b = { object_type: e }, x = a({
32
+ client: i,
33
+ headers: y,
34
+ query: b
35
+ }), S = h({
36
+ queryKey: [...c(x, p).queryKey, "all"],
37
+ enabled: _,
38
38
  initialPageParam: void 0,
39
- queryFn: async ({ signal: e, pageParam: n }) => {
40
- let { data: i } = await r({
41
- client: t,
42
- headers: _,
43
- query: n ? { pagination_token: n } : {
44
- ...y,
39
+ queryFn: async ({ signal: e, pageParam: t }) => {
40
+ let { data: n } = await r({
41
+ client: i,
42
+ headers: y,
43
+ query: t ? { pagination_token: t } : {
44
+ ...b,
45
45
  limit: v
46
46
  },
47
47
  signal: e,
48
48
  throwOnError: !0
49
49
  });
50
- return i;
50
+ return n;
51
51
  },
52
52
  getNextPageParam: l
53
53
  });
54
- d(x, g);
55
- let S = m(() => x.data ? { data: x.data.pages.flatMap((e) => e.data ?? []) } : void 0, [x.data]);
54
+ d(S, _);
55
+ let C = m(() => S.data ? { data: S.data.pages.flatMap((e) => e.data ?? []) } : void 0, [S.data]);
56
56
  return {
57
- ...x,
58
- data: S,
59
- isResolving: u(x)
57
+ ...S,
58
+ data: C,
59
+ isResolving: u(S)
60
60
  };
61
61
  }
62
62
  function S({ objectType: t = f.Payable } = {}) {
@@ -1,6 +1,6 @@
1
- import "./lib/labels.js";
2
- import "./lib/policyViewModel.js";
1
+ import { ApprovalPoliciesSettingsDefaultLabels as e } from "./lib/labels.js";
2
+ import { buildPolicySentence as t, buildPolicyTitle as n } from "./lib/policyViewModel.js";
3
3
  import "./lib/useApproverOptions.js";
4
4
  import "./lib/useApprovalPolicyRules.js";
5
- import { ApprovalPoliciesSettings as e } from "./lib/ApprovalPoliciesSettings.js";
6
- export { e as ApprovalPoliciesSettings };
5
+ import { ApprovalPoliciesSettings as r } from "./lib/ApprovalPoliciesSettings.js";
6
+ export { r as ApprovalPoliciesSettings, e as ApprovalPoliciesSettingsDefaultLabels, t as buildPolicySentence, n as buildPolicyTitle };
@@ -5,27 +5,27 @@ import { isWidgetGatewayHost as o } from "./lib/widgetGatewayHosts.js";
5
5
  import "./lib/rest/client.gen.js";
6
6
  import { EmbedApiProvider as s, useEmbedApi as c } from "./lib/EmbedApiContext.js";
7
7
  import { optionalOrganizationHeaders as l, organizationHeaders as u } from "./lib/organizationHeaders.js";
8
- import { bulkUpdateDepartmentMembers as d, bulkUpdateLocationMembers as f, bulkUpdateRoleMembers as p, createDepartment as m, createLocation as h, createUser as g, deactivateDepartment as _, deactivateLocation as v, deleteCounterpartsId as y, deleteCounterpartsIdBankAccountsId as b, deleteFilesId as x, deleteMeasureUnitsId as S, deleteProductsId as C, deleteReceivablesId as w, deleteTagsId as T, downloadBankAccountTransactions as E, getApplicationStatus as D, getApprovalPolicies as O, getBankAccountAccess as k, getDepartment as A, getExternalBankAccountAccess as j, getLocation as M, getPayablesIdLineItems as N, getPaymentRecords as P, getUsers as F, listDepartments as I, listLocations as L, listRoles as R, manageBankAccountAccess as z, patchCounterpartsId as B, patchCounterpartsIdAddressesId as V, patchCounterpartsIdBankAccountsId as H, patchMeasureUnitsId as U, patchPayablesId as W, patchProductsId as G, patchReceivablesId as K, patchTagsId as q, postApprovalRequestsIdReject as J, postCounterparts as Y, postCounterpartsIdAddresses as X, postCounterpartsIdBankAccounts as Z, postCounterpartsIdBankAccountsIdMakeDefault as Q, postMeasureUnits as $, postPayables as ee, postPayablesIdAttachFile as te, postPayablesIdMarkAsPaid as ne, postPayablesIdSchedulePayment as re, postPayablesIdSubmitForApproval as ie, postPayablesIdValidate as ae, postPayablesUploadFromFile as oe, postProducts as se, postReceivables as ce, postReceivablesIdAccept as le, postReceivablesIdCancel as ue, postReceivablesIdClone as de, postReceivablesIdDecline as fe, postReceivablesIdIssue as pe, postReceivablesIdMarkAsPaid as me, postReceivablesIdMarkAsPartiallyPaid as he, postReceivablesIdMarkAsUncollectible as ge, postReceivablesIdSend as _e, postTags as ve, putPayablesIdLineItems as ye, putReceivablesIdLineItems as be, updateDepartment as xe, updateLocation as Se, updateUser as Ce } from "./lib/rest/sdk.gen.js";
9
- import { fetchWidgetInit as we } from "./lib/fetchWidgetInit.js";
10
- import { hasAnyScope as Te } from "./lib/hasAnyScope.js";
11
- import { connectExternalBankAccountMutation as Ee, createAchMoneyMovementMutation as De, createApplicationMutation as Oe, createBankAccountMutation as ke, createBookTransferMutation as Ae, createDebitCardMutation as je, deleteApprovalPoliciesIdMutation as Me, deleteLedgerAccountsIdMutation as Ne, deleteReceiptsIdMutation as Pe, disableUserMutation as Fe, getAnalyticsPayablesOptions as Ie, getAnalyticsReceivablesOptions as Le, getApplicationStatusOptions as Re, getApprovalPoliciesOptions as ze, getApprovalPoliciesQueryKey as Be, getApprovalRequestsOptions as Ve, getApprovalRequestsQueryKey as He, getBankAccountAccessQueryKey as Ue, getBankAccountOptions as We, getBankAccountQueryKey as Ge, getBankAccountTransactionsOptions as Ke, getBankAccountTransfersOptions as qe, getBankAccountTransfersQueryKey as Je, getBankAccountsQueryKey as Ye, getCounterpartsIdAddressesOptions as Xe, getCounterpartsIdAddressesQueryKey as Ze, getCounterpartsIdBankAccountsOptions as Qe, getCounterpartsIdBankAccountsQueryKey as $e, getCounterpartsIdOptions as et, getCounterpartsIdQueryKey as tt, getCounterpartsOptions as nt, getCounterpartsQueryKey as rt, getCreditCardByIdOptions as it, getCreditCardsOptions as at, getDebitCardByIdOptions as ot, getDebitCardsOptions as st, getDebitCardsQueryKey as ct, getDepartmentOptions as lt, getDepartmentQueryKey as ut, getEntitiesIdSettingsOptions as dt, getEntitiesIdSettingsQueryKey as ft, getEntitiesMeOptions as pt, getEntityUsersMyEntityOptions as mt, getEntityUsersOptions as ht, getExternalBankAccountAccessQueryKey as gt, getExternalBankAccountsOptions as _t, getExternalBankAccountsQueryKey as vt, getLedgerAccountsQueryKey as yt, getLocationOptions as bt, getLocationQueryKey as xt, getMeasureUnitsOptions as St, getMeasureUnitsQueryKey as Ct, getOrganizationOptions as wt, getPayablesAnalyticsOptions as Tt, getPayablesAnalyticsQueryKey as Et, getPayablesIdHistoryOptions as Dt, getPayablesIdHistoryQueryKey as Ot, getPayablesIdLineItemsOptions as kt, getPayablesIdLineItemsQueryKey as At, getPayablesIdOptions as jt, getPayablesIdQueryKey as Mt, getPayablesIdSuggestionsOptions as Nt, getPayablesOptions as Pt, getPayablesQueryKey as Ft, getPaymentRecordsOptions as It, getPaymentRecordsQueryKey as Lt, getProductsIdOptions as Rt, getProductsIdQueryKey as zt, getProductsOptions as Bt, getProductsQueryKey as Vt, getReceiptsIdQueryKey as Ht, getReceiptsOptions as Ut, getReceiptsQueryKey as Wt, getReceivablesIdHistoryOptions as Gt, getReceivablesIdHistoryQueryKey as Kt, getReceivablesIdMailsOptions as qt, getReceivablesIdMailsQueryKey as Jt, getReceivablesIdOptions as Yt, getReceivablesIdPdfLinkOptions as Xt, getReceivablesIdPdfLinkQueryKey as Zt, getReceivablesIdQueryKey as Qt, getReceivablesOptions as $t, getReceivablesQueryKey as en, getTagsOptions as tn, getTagsQueryKey as nn, getTransactionsIdQueryKey as rn, getTransactionsOptions as an, getTransactionsQueryKey as on, getTransactionsValidationsOptions as sn, getTransactionsValidationsQueryKey as cn, getUsersOptions as ln, getUsersQueryKey as un, grantBankAccountAccessMutation as dn, grantExternalBankAccountAccessMutation as fn, linkExternalBankAccountMutation as pn, listDepartmentsOptions as mn, listDepartmentsQueryKey as hn, listLocationsOptions as gn, listLocationsQueryKey as _n, listRolesQueryKey as vn, patchApprovalPoliciesIdMutation as yn, patchEntitiesIdSettingsMutation as bn, patchLedgerAccountsIdMutation as xn, patchReceiptsIdMutation as Sn, postApprovalPoliciesMutation as Cn, postLedgerAccountsMutation as wn, putTransactionsValidationsMutation as Tn, submitApplicationMutation as En, unlinkExternalBankAccountMutation as Dn, updateApplicationMutation as On, updateBankAccountMutation as kn, updateExternalBankAccountMutation as An, validateExternalBankAccountMutation as jn } from "./lib/rest/@tanstack/react-query.gen.js";
8
+ import { bulkUpdateDepartmentMembers as d, bulkUpdateLocationMembers as f, bulkUpdateRoleMembers as p, createDepartment as m, createLocation as h, createUser as g, deactivateDepartment as _, deactivateLocation as v, deleteCounterpartsId as y, deleteCounterpartsIdBankAccountsId as b, deleteFilesId as x, deleteMeasureUnitsId as S, deleteProductsId as C, deleteReceivablesId as w, deleteTagsId as T, downloadBankAccountTransactions as E, getApplicationStatus as D, getApprovalPolicies as O, getBankAccountAccess as k, getDepartment as A, getExternalBankAccountAccess as j, getLocation as M, getPayablesIdLineItems as N, getPaymentRecords as P, getUsers as F, listDepartments as I, listLocations as L, listRoles as R, manageBankAccountAccess as z, patchCounterpartsId as B, patchCounterpartsIdAddressesId as V, patchCounterpartsIdBankAccountsId as H, patchMeasureUnitsId as U, patchPayablesId as W, patchProductsId as G, patchReceivablesId as K, patchTagsId as q, postApprovalRequestsIdApprove as J, postApprovalRequestsIdReject as Y, postCounterparts as X, postCounterpartsIdAddresses as Z, postCounterpartsIdBankAccounts as Q, postCounterpartsIdBankAccountsIdMakeDefault as $, postMeasureUnits as ee, postPayables as te, postPayablesIdApprovePaymentOperation as ne, postPayablesIdAttachFile as re, postPayablesIdCancel as ie, postPayablesIdMarkAsPaid as ae, postPayablesIdReject as oe, postPayablesIdReopen as se, postPayablesIdSchedulePayment as ce, postPayablesIdSubmitForApproval as le, postPayablesIdValidate as ue, postPayablesUploadFromFile as de, postProducts as fe, postReceivables as pe, postReceivablesIdAccept as me, postReceivablesIdCancel as he, postReceivablesIdClone as ge, postReceivablesIdDecline as _e, postReceivablesIdIssue as ve, postReceivablesIdMarkAsPaid as ye, postReceivablesIdMarkAsPartiallyPaid as be, postReceivablesIdMarkAsUncollectible as xe, postReceivablesIdSend as Se, postTags as Ce, putPayablesIdLineItems as we, putReceivablesIdLineItems as Te, updateDepartment as Ee, updateLocation as De, updateUser as Oe } from "./lib/rest/sdk.gen.js";
9
+ import { fetchWidgetInit as ke } from "./lib/fetchWidgetInit.js";
10
+ import { hasAnyScope as Ae } from "./lib/hasAnyScope.js";
11
+ import { connectExternalBankAccountMutation as je, createAchMoneyMovementMutation as Me, createApplicationMutation as Ne, createBankAccountMutation as Pe, createBookTransferMutation as Fe, createDebitCardMutation as Ie, deleteApprovalPoliciesIdMutation as Le, deleteLedgerAccountsIdMutation as Re, deleteReceiptsIdMutation as ze, disableUserMutation as Be, getAnalyticsPayablesOptions as Ve, getAnalyticsReceivablesOptions as He, getApplicationStatusOptions as Ue, getApprovalPoliciesOptions as We, getApprovalPoliciesQueryKey as Ge, getApprovalRequestsOptions as Ke, getApprovalRequestsQueryKey as qe, getBankAccountAccessQueryKey as Je, getBankAccountOptions as Ye, getBankAccountQueryKey as Xe, getBankAccountTransactionsOptions as Ze, getBankAccountTransfersOptions as Qe, getBankAccountTransfersQueryKey as $e, getBankAccountsQueryKey as et, getCounterpartsIdAddressesOptions as tt, getCounterpartsIdAddressesQueryKey as nt, getCounterpartsIdBankAccountsOptions as rt, getCounterpartsIdBankAccountsQueryKey as it, getCounterpartsIdOptions as at, getCounterpartsIdQueryKey as ot, getCounterpartsOptions as st, getCounterpartsQueryKey as ct, getCreditCardByIdOptions as lt, getCreditCardsOptions as ut, getDebitCardByIdOptions as dt, getDebitCardsOptions as ft, getDebitCardsQueryKey as pt, getDepartmentOptions as mt, getDepartmentQueryKey as ht, getEntitiesIdSettingsOptions as gt, getEntitiesIdSettingsQueryKey as _t, getEntitiesMeOptions as vt, getEntityUsersMyEntityOptions as yt, getEntityUsersOptions as bt, getExternalBankAccountAccessQueryKey as xt, getExternalBankAccountsOptions as St, getExternalBankAccountsQueryKey as Ct, getLedgerAccountsQueryKey as wt, getLocationOptions as Tt, getLocationQueryKey as Et, getMeasureUnitsOptions as Dt, getMeasureUnitsQueryKey as Ot, getOrganizationOptions as kt, getPayablesAnalyticsOptions as At, getPayablesAnalyticsQueryKey as jt, getPayablesIdHistoryOptions as Mt, getPayablesIdHistoryQueryKey as Nt, getPayablesIdLineItemsOptions as Pt, getPayablesIdLineItemsQueryKey as Ft, getPayablesIdOptions as It, getPayablesIdQueryKey as Lt, getPayablesIdSuggestionsOptions as Rt, getPayablesOptions as zt, getPayablesQueryKey as Bt, getPaymentRecordsOptions as Vt, getPaymentRecordsQueryKey as Ht, getProductsIdOptions as Ut, getProductsIdQueryKey as Wt, getProductsOptions as Gt, getProductsQueryKey as Kt, getReceiptsIdQueryKey as qt, getReceiptsOptions as Jt, getReceiptsQueryKey as Yt, getReceivablesIdHistoryOptions as Xt, getReceivablesIdHistoryQueryKey as Zt, getReceivablesIdMailsOptions as Qt, getReceivablesIdMailsQueryKey as $t, getReceivablesIdOptions as en, getReceivablesIdPdfLinkOptions as tn, getReceivablesIdPdfLinkQueryKey as nn, getReceivablesIdQueryKey as rn, getReceivablesOptions as an, getReceivablesQueryKey as on, getTagsOptions as sn, getTagsQueryKey as cn, getTransactionsIdQueryKey as ln, getTransactionsOptions as un, getTransactionsQueryKey as dn, getTransactionsValidationsOptions as fn, getTransactionsValidationsQueryKey as pn, getUsersOptions as mn, getUsersQueryKey as hn, grantBankAccountAccessMutation as gn, grantExternalBankAccountAccessMutation as _n, linkExternalBankAccountMutation as vn, listDepartmentsOptions as yn, listDepartmentsQueryKey as bn, listLocationsOptions as xn, listLocationsQueryKey as Sn, listRolesQueryKey as Cn, patchApprovalPoliciesIdMutation as wn, patchEntitiesIdSettingsMutation as Tn, patchLedgerAccountsIdMutation as En, patchReceiptsIdMutation as Dn, postApprovalPoliciesMutation as On, postLedgerAccountsMutation as kn, putTransactionsValidationsMutation as An, submitApplicationMutation as jn, unlinkExternalBankAccountMutation as Mn, updateApplicationMutation as Nn, updateBankAccountMutation as Pn, updateExternalBankAccountMutation as Fn, validateExternalBankAccountMutation as In } from "./lib/rest/@tanstack/react-query.gen.js";
12
12
  import "./lib/queryKeys.js";
13
- import { withAuthEpoch as Mn } from "./lib/withAuthEpoch.js";
14
- import { useCurrentUserQuery as Nn } from "./lib/useCurrentUserQuery.js";
15
- import { isApiNotFoundError as Pn } from "./lib/isApiNotFoundError.js";
13
+ import { withAuthEpoch as Ln } from "./lib/withAuthEpoch.js";
14
+ import { useCurrentUserQuery as Rn } from "./lib/useCurrentUserQuery.js";
15
+ import { isApiNotFoundError as zn } from "./lib/isApiNotFoundError.js";
16
16
  import "./lib/isUserDataNotFoundError.js";
17
- import { useGetUserDataQuery as Fn } from "./lib/useGetUserDataQuery.js";
18
- import { useUpsertUserDataMutation as In } from "./lib/useUpsertUserDataMutation.js";
17
+ import { useGetUserDataQuery as Bn } from "./lib/useGetUserDataQuery.js";
18
+ import { useUpsertUserDataMutation as Vn } from "./lib/useUpsertUserDataMutation.js";
19
19
  import "./lib/rest/zod.gen.js";
20
- import { Scope as Ln } from "./lib/scopes.js";
21
- import { getAllPagesNextPageParam as Rn, getAllPagesNextPaginationTokenParam as zn, isAllPagesResolving as Bn, useAutoFetchNextPage as Vn } from "./lib/allPages.js";
22
- import { useAllBankAccountsQuery as Hn } from "./lib/bank-account/useAllBankAccountsQuery.js";
23
- import { useAllExternalBankAccountsQuery as Un } from "./lib/external-bank-account/useAllExternalBankAccountsQuery.js";
24
- import { useAllLedgerAccountsQuery as Wn, useLedgerAccountsQuery as Gn } from "./lib/reference-data/useLedgerAccountsQuery.js";
25
- import { usePaymentTermsQuery as Kn } from "./lib/reference-data/usePaymentTermsQuery.js";
26
- import { useAllOrganizationRolesQuery as qn } from "./lib/role/useAllOrganizationRolesQuery.js";
27
- import { useRolePermissionsQueries as Jn } from "./lib/role/useRolePermissionsQueries.js";
28
- import { useAllOrganizationUsersQuery as Yn } from "./lib/user/useAllOrganizationUsersQuery.js";
29
- import { useAcceptWidgetDisclosures as Xn } from "./lib/disclosures/useAcceptWidgetDisclosures.js";
30
- import { useDisclosuresQuery as Zn } from "./lib/disclosures/useDisclosuresQuery.js";
31
- export { s as EmbedApiProvider, Ln as Scope, d as bulkUpdateDepartmentMembers, f as bulkUpdateLocationMembers, p as bulkUpdateRoleMembers, i as cloneEmbeddedClient, Ee as connectExternalBankAccountMutation, De as createAchMoneyMovementMutation, Oe as createApplicationMutation, ke as createBankAccountMutation, Ae as createBookTransferMutation, je as createDebitCardMutation, m as createDepartment, a as createEmbeddedClient, h as createLocation, g as createUser, _ as deactivateDepartment, v as deactivateLocation, Me as deleteApprovalPoliciesIdMutation, y as deleteCounterpartsId, b as deleteCounterpartsIdBankAccountsId, x as deleteFilesId, Ne as deleteLedgerAccountsIdMutation, S as deleteMeasureUnitsId, C as deleteProductsId, Pe as deleteReceiptsIdMutation, w as deleteReceivablesId, T as deleteTagsId, Fe as disableUserMutation, E as downloadBankAccountTransactions, we as fetchWidgetInit, Rn as getAllPagesNextPageParam, zn as getAllPagesNextPaginationTokenParam, Ie as getAnalyticsPayablesOptions, Le as getAnalyticsReceivablesOptions, D as getApplicationStatus, Re as getApplicationStatusOptions, O as getApprovalPolicies, ze as getApprovalPoliciesOptions, Be as getApprovalPoliciesQueryKey, Ve as getApprovalRequestsOptions, He as getApprovalRequestsQueryKey, k as getBankAccountAccess, Ue as getBankAccountAccessQueryKey, We as getBankAccountOptions, Ge as getBankAccountQueryKey, Ke as getBankAccountTransactionsOptions, qe as getBankAccountTransfersOptions, Je as getBankAccountTransfersQueryKey, Ye as getBankAccountsQueryKey, Xe as getCounterpartsIdAddressesOptions, Ze as getCounterpartsIdAddressesQueryKey, Qe as getCounterpartsIdBankAccountsOptions, $e as getCounterpartsIdBankAccountsQueryKey, et as getCounterpartsIdOptions, tt as getCounterpartsIdQueryKey, nt as getCounterpartsOptions, rt as getCounterpartsQueryKey, it as getCreditCardByIdOptions, at as getCreditCardsOptions, ot as getDebitCardByIdOptions, st as getDebitCardsOptions, ct as getDebitCardsQueryKey, A as getDepartment, lt as getDepartmentOptions, ut as getDepartmentQueryKey, dt as getEntitiesIdSettingsOptions, ft as getEntitiesIdSettingsQueryKey, pt as getEntitiesMeOptions, mt as getEntityUsersMyEntityOptions, ht as getEntityUsersOptions, j as getExternalBankAccountAccess, gt as getExternalBankAccountAccessQueryKey, _t as getExternalBankAccountsOptions, vt as getExternalBankAccountsQueryKey, yt as getLedgerAccountsQueryKey, M as getLocation, bt as getLocationOptions, xt as getLocationQueryKey, St as getMeasureUnitsOptions, Ct as getMeasureUnitsQueryKey, wt as getOrganizationOptions, Tt as getPayablesAnalyticsOptions, Et as getPayablesAnalyticsQueryKey, Dt as getPayablesIdHistoryOptions, Ot as getPayablesIdHistoryQueryKey, N as getPayablesIdLineItems, kt as getPayablesIdLineItemsOptions, At as getPayablesIdLineItemsQueryKey, jt as getPayablesIdOptions, Mt as getPayablesIdQueryKey, Nt as getPayablesIdSuggestionsOptions, Pt as getPayablesOptions, Ft as getPayablesQueryKey, P as getPaymentRecords, It as getPaymentRecordsOptions, Lt as getPaymentRecordsQueryKey, Rt as getProductsIdOptions, zt as getProductsIdQueryKey, Bt as getProductsOptions, Vt as getProductsQueryKey, Ht as getReceiptsIdQueryKey, Ut as getReceiptsOptions, Wt as getReceiptsQueryKey, Gt as getReceivablesIdHistoryOptions, Kt as getReceivablesIdHistoryQueryKey, qt as getReceivablesIdMailsOptions, Jt as getReceivablesIdMailsQueryKey, Yt as getReceivablesIdOptions, Xt as getReceivablesIdPdfLinkOptions, Zt as getReceivablesIdPdfLinkQueryKey, Qt as getReceivablesIdQueryKey, $t as getReceivablesOptions, en as getReceivablesQueryKey, tn as getTagsOptions, nn as getTagsQueryKey, rn as getTransactionsIdQueryKey, an as getTransactionsOptions, on as getTransactionsQueryKey, sn as getTransactionsValidationsOptions, cn as getTransactionsValidationsQueryKey, F as getUsers, ln as getUsersOptions, un as getUsersQueryKey, dn as grantBankAccountAccessMutation, fn as grantExternalBankAccountAccessMutation, Te as hasAnyScope, e as invalidateAllClients, Bn as isAllPagesResolving, Pn as isApiNotFoundError, o as isWidgetGatewayHost, pn as linkExternalBankAccountMutation, I as listDepartments, mn as listDepartmentsOptions, hn as listDepartmentsQueryKey, L as listLocations, gn as listLocationsOptions, _n as listLocationsQueryKey, R as listRoles, vn as listRolesQueryKey, z as manageBankAccountAccess, l as optionalOrganizationHeaders, u as organizationHeaders, yn as patchApprovalPoliciesIdMutation, B as patchCounterpartsId, V as patchCounterpartsIdAddressesId, H as patchCounterpartsIdBankAccountsId, bn as patchEntitiesIdSettingsMutation, xn as patchLedgerAccountsIdMutation, U as patchMeasureUnitsId, W as patchPayablesId, G as patchProductsId, Sn as patchReceiptsIdMutation, K as patchReceivablesId, q as patchTagsId, Cn as postApprovalPoliciesMutation, J as postApprovalRequestsIdReject, Y as postCounterparts, X as postCounterpartsIdAddresses, Z as postCounterpartsIdBankAccounts, Q as postCounterpartsIdBankAccountsIdMakeDefault, wn as postLedgerAccountsMutation, $ as postMeasureUnits, ee as postPayables, te as postPayablesIdAttachFile, ne as postPayablesIdMarkAsPaid, re as postPayablesIdSchedulePayment, ie as postPayablesIdSubmitForApproval, ae as postPayablesIdValidate, oe as postPayablesUploadFromFile, se as postProducts, ce as postReceivables, le as postReceivablesIdAccept, ue as postReceivablesIdCancel, de as postReceivablesIdClone, fe as postReceivablesIdDecline, pe as postReceivablesIdIssue, me as postReceivablesIdMarkAsPaid, he as postReceivablesIdMarkAsPartiallyPaid, ge as postReceivablesIdMarkAsUncollectible, _e as postReceivablesIdSend, ve as postTags, ye as putPayablesIdLineItems, be as putReceivablesIdLineItems, Tn as putTransactionsValidationsMutation, t as registerQueryClient, n as setAllClientsQueriesData, En as submitApplicationMutation, Dn as unlinkExternalBankAccountMutation, r as unregisterQueryClient, On as updateApplicationMutation, kn as updateBankAccountMutation, xe as updateDepartment, An as updateExternalBankAccountMutation, Se as updateLocation, Ce as updateUser, Xn as useAcceptWidgetDisclosures, Hn as useAllBankAccountsQuery, Un as useAllExternalBankAccountsQuery, Wn as useAllLedgerAccountsQuery, qn as useAllOrganizationRolesQuery, Yn as useAllOrganizationUsersQuery, Vn as useAutoFetchNextPage, Nn as useCurrentUserQuery, Zn as useDisclosuresQuery, c as useEmbedApi, Fn as useGetUserDataQuery, Gn as useLedgerAccountsQuery, Kn as usePaymentTermsQuery, Jn as useRolePermissionsQueries, In as useUpsertUserDataMutation, jn as validateExternalBankAccountMutation, Mn as withAuthEpoch };
20
+ import { Scope as Hn } from "./lib/scopes.js";
21
+ import { getAllPagesNextPageParam as Un, getAllPagesNextPaginationTokenParam as Wn, isAllPagesResolving as Gn, useAutoFetchNextPage as Kn } from "./lib/allPages.js";
22
+ import { useAllBankAccountsQuery as qn } from "./lib/bank-account/useAllBankAccountsQuery.js";
23
+ import { useAllExternalBankAccountsQuery as Jn } from "./lib/external-bank-account/useAllExternalBankAccountsQuery.js";
24
+ import { useAllLedgerAccountsQuery as Yn, useLedgerAccountsQuery as Xn } from "./lib/reference-data/useLedgerAccountsQuery.js";
25
+ import { usePaymentTermsQuery as Zn } from "./lib/reference-data/usePaymentTermsQuery.js";
26
+ import { useAllOrganizationRolesQuery as Qn } from "./lib/role/useAllOrganizationRolesQuery.js";
27
+ import { useRolePermissionsQueries as $n } from "./lib/role/useRolePermissionsQueries.js";
28
+ import { useAllOrganizationUsersQuery as er } from "./lib/user/useAllOrganizationUsersQuery.js";
29
+ import { useAcceptWidgetDisclosures as tr } from "./lib/disclosures/useAcceptWidgetDisclosures.js";
30
+ import { useDisclosuresQuery as nr } from "./lib/disclosures/useDisclosuresQuery.js";
31
+ export { s as EmbedApiProvider, Hn as Scope, d as bulkUpdateDepartmentMembers, f as bulkUpdateLocationMembers, p as bulkUpdateRoleMembers, i as cloneEmbeddedClient, je as connectExternalBankAccountMutation, Me as createAchMoneyMovementMutation, Ne as createApplicationMutation, Pe as createBankAccountMutation, Fe as createBookTransferMutation, Ie as createDebitCardMutation, m as createDepartment, a as createEmbeddedClient, h as createLocation, g as createUser, _ as deactivateDepartment, v as deactivateLocation, Le as deleteApprovalPoliciesIdMutation, y as deleteCounterpartsId, b as deleteCounterpartsIdBankAccountsId, x as deleteFilesId, Re as deleteLedgerAccountsIdMutation, S as deleteMeasureUnitsId, C as deleteProductsId, ze as deleteReceiptsIdMutation, w as deleteReceivablesId, T as deleteTagsId, Be as disableUserMutation, E as downloadBankAccountTransactions, ke as fetchWidgetInit, Un as getAllPagesNextPageParam, Wn as getAllPagesNextPaginationTokenParam, Ve as getAnalyticsPayablesOptions, He as getAnalyticsReceivablesOptions, D as getApplicationStatus, Ue as getApplicationStatusOptions, O as getApprovalPolicies, We as getApprovalPoliciesOptions, Ge as getApprovalPoliciesQueryKey, Ke as getApprovalRequestsOptions, qe as getApprovalRequestsQueryKey, k as getBankAccountAccess, Je as getBankAccountAccessQueryKey, Ye as getBankAccountOptions, Xe as getBankAccountQueryKey, Ze as getBankAccountTransactionsOptions, Qe as getBankAccountTransfersOptions, $e as getBankAccountTransfersQueryKey, et as getBankAccountsQueryKey, tt as getCounterpartsIdAddressesOptions, nt as getCounterpartsIdAddressesQueryKey, rt as getCounterpartsIdBankAccountsOptions, it as getCounterpartsIdBankAccountsQueryKey, at as getCounterpartsIdOptions, ot as getCounterpartsIdQueryKey, st as getCounterpartsOptions, ct as getCounterpartsQueryKey, lt as getCreditCardByIdOptions, ut as getCreditCardsOptions, dt as getDebitCardByIdOptions, ft as getDebitCardsOptions, pt as getDebitCardsQueryKey, A as getDepartment, mt as getDepartmentOptions, ht as getDepartmentQueryKey, gt as getEntitiesIdSettingsOptions, _t as getEntitiesIdSettingsQueryKey, vt as getEntitiesMeOptions, yt as getEntityUsersMyEntityOptions, bt as getEntityUsersOptions, j as getExternalBankAccountAccess, xt as getExternalBankAccountAccessQueryKey, St as getExternalBankAccountsOptions, Ct as getExternalBankAccountsQueryKey, wt as getLedgerAccountsQueryKey, M as getLocation, Tt as getLocationOptions, Et as getLocationQueryKey, Dt as getMeasureUnitsOptions, Ot as getMeasureUnitsQueryKey, kt as getOrganizationOptions, At as getPayablesAnalyticsOptions, jt as getPayablesAnalyticsQueryKey, Mt as getPayablesIdHistoryOptions, Nt as getPayablesIdHistoryQueryKey, N as getPayablesIdLineItems, Pt as getPayablesIdLineItemsOptions, Ft as getPayablesIdLineItemsQueryKey, It as getPayablesIdOptions, Lt as getPayablesIdQueryKey, Rt as getPayablesIdSuggestionsOptions, zt as getPayablesOptions, Bt as getPayablesQueryKey, P as getPaymentRecords, Vt as getPaymentRecordsOptions, Ht as getPaymentRecordsQueryKey, Ut as getProductsIdOptions, Wt as getProductsIdQueryKey, Gt as getProductsOptions, Kt as getProductsQueryKey, qt as getReceiptsIdQueryKey, Jt as getReceiptsOptions, Yt as getReceiptsQueryKey, Xt as getReceivablesIdHistoryOptions, Zt as getReceivablesIdHistoryQueryKey, Qt as getReceivablesIdMailsOptions, $t as getReceivablesIdMailsQueryKey, en as getReceivablesIdOptions, tn as getReceivablesIdPdfLinkOptions, nn as getReceivablesIdPdfLinkQueryKey, rn as getReceivablesIdQueryKey, an as getReceivablesOptions, on as getReceivablesQueryKey, sn as getTagsOptions, cn as getTagsQueryKey, ln as getTransactionsIdQueryKey, un as getTransactionsOptions, dn as getTransactionsQueryKey, fn as getTransactionsValidationsOptions, pn as getTransactionsValidationsQueryKey, F as getUsers, mn as getUsersOptions, hn as getUsersQueryKey, gn as grantBankAccountAccessMutation, _n as grantExternalBankAccountAccessMutation, Ae as hasAnyScope, e as invalidateAllClients, Gn as isAllPagesResolving, zn as isApiNotFoundError, o as isWidgetGatewayHost, vn as linkExternalBankAccountMutation, I as listDepartments, yn as listDepartmentsOptions, bn as listDepartmentsQueryKey, L as listLocations, xn as listLocationsOptions, Sn as listLocationsQueryKey, R as listRoles, Cn as listRolesQueryKey, z as manageBankAccountAccess, l as optionalOrganizationHeaders, u as organizationHeaders, wn as patchApprovalPoliciesIdMutation, B as patchCounterpartsId, V as patchCounterpartsIdAddressesId, H as patchCounterpartsIdBankAccountsId, Tn as patchEntitiesIdSettingsMutation, En as patchLedgerAccountsIdMutation, U as patchMeasureUnitsId, W as patchPayablesId, G as patchProductsId, Dn as patchReceiptsIdMutation, K as patchReceivablesId, q as patchTagsId, On as postApprovalPoliciesMutation, J as postApprovalRequestsIdApprove, Y as postApprovalRequestsIdReject, X as postCounterparts, Z as postCounterpartsIdAddresses, Q as postCounterpartsIdBankAccounts, $ as postCounterpartsIdBankAccountsIdMakeDefault, kn as postLedgerAccountsMutation, ee as postMeasureUnits, te as postPayables, ne as postPayablesIdApprovePaymentOperation, re as postPayablesIdAttachFile, ie as postPayablesIdCancel, ae as postPayablesIdMarkAsPaid, oe as postPayablesIdReject, se as postPayablesIdReopen, ce as postPayablesIdSchedulePayment, le as postPayablesIdSubmitForApproval, ue as postPayablesIdValidate, de as postPayablesUploadFromFile, fe as postProducts, pe as postReceivables, me as postReceivablesIdAccept, he as postReceivablesIdCancel, ge as postReceivablesIdClone, _e as postReceivablesIdDecline, ve as postReceivablesIdIssue, ye as postReceivablesIdMarkAsPaid, be as postReceivablesIdMarkAsPartiallyPaid, xe as postReceivablesIdMarkAsUncollectible, Se as postReceivablesIdSend, Ce as postTags, we as putPayablesIdLineItems, Te as putReceivablesIdLineItems, An as putTransactionsValidationsMutation, t as registerQueryClient, n as setAllClientsQueriesData, jn as submitApplicationMutation, Mn as unlinkExternalBankAccountMutation, r as unregisterQueryClient, Nn as updateApplicationMutation, Pn as updateBankAccountMutation, Ee as updateDepartment, Fn as updateExternalBankAccountMutation, De as updateLocation, Oe as updateUser, tr as useAcceptWidgetDisclosures, qn as useAllBankAccountsQuery, Jn as useAllExternalBankAccountsQuery, Yn as useAllLedgerAccountsQuery, Qn as useAllOrganizationRolesQuery, er as useAllOrganizationUsersQuery, Kn as useAutoFetchNextPage, Rn as useCurrentUserQuery, nr as useDisclosuresQuery, c as useEmbedApi, Bn as useGetUserDataQuery, Xn as useLedgerAccountsQuery, Zn as usePaymentTermsQuery, $n as useRolePermissionsQueries, Vn as useUpsertUserDataMutation, In as validateExternalBankAccountMutation, Ln as withAuthEpoch };