@alfadocs/ui-kit-debug 1.118.0 → 1.119.0

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 (232) hide show
  1. package/dist/_chunks/bill-line-table-DUMEHnQ4.js +1754 -0
  2. package/dist/_chunks/bill-line-table-DUMEHnQ4.js.map +1 -0
  3. package/dist/_chunks/{calendar-appointment-editor-dialog-BEmBcb61.js → calendar-appointment-editor-dialog-rw02sXGw.js} +4 -4
  4. package/dist/_chunks/{calendar-appointment-editor-dialog-BEmBcb61.js.map → calendar-appointment-editor-dialog-rw02sXGw.js.map} +1 -1
  5. package/dist/_chunks/{compact-editor-fields-6sTWRLtf.js → compact-editor-fields-cP6yh7xv.js} +3 -3
  6. package/dist/_chunks/{compact-editor-fields-6sTWRLtf.js.map → compact-editor-fields-cP6yh7xv.js.map} +1 -1
  7. package/dist/_chunks/counts-BXtzNv_G.js +92 -0
  8. package/dist/_chunks/counts-BXtzNv_G.js.map +1 -0
  9. package/dist/_chunks/{data-grid-DiBSbN2Y.js → data-grid-Bbf8t4z3.js} +2 -2
  10. package/dist/_chunks/{data-grid-DiBSbN2Y.js.map → data-grid-Bbf8t4z3.js.map} +1 -1
  11. package/dist/_chunks/{default-tabs-CD285u0C.js → default-tabs-Cxkw1Ws0.js} +332 -368
  12. package/dist/_chunks/default-tabs-Cxkw1Ws0.js.map +1 -0
  13. package/dist/_chunks/{document-scanner-5p-Uu8dy.js → document-scanner-CETscDea.js} +2 -2
  14. package/dist/_chunks/{document-scanner-5p-Uu8dy.js.map → document-scanner-CETscDea.js.map} +1 -1
  15. package/dist/_chunks/file-code-Cf-_gSzd.js +23 -0
  16. package/dist/_chunks/file-code-Cf-_gSzd.js.map +1 -0
  17. package/dist/_chunks/{file-manager-CV1_GtjC.js → file-manager-DNq-sEsy.js} +2 -2
  18. package/dist/_chunks/{file-manager-CV1_GtjC.js.map → file-manager-DNq-sEsy.js.map} +1 -1
  19. package/dist/_chunks/{file-upload-CxjCs7TX.js → file-upload-DQc0LsBM.js} +385 -311
  20. package/dist/_chunks/file-upload-DQc0LsBM.js.map +1 -0
  21. package/dist/_chunks/invoice-upload-list-CsFsRgbt.js +952 -0
  22. package/dist/_chunks/invoice-upload-list-CsFsRgbt.js.map +1 -0
  23. package/dist/_chunks/maps-MpMxTBov.js +63 -0
  24. package/dist/_chunks/maps-MpMxTBov.js.map +1 -0
  25. package/dist/_chunks/{notes-panel-CHR-Jv6N.js → notes-panel-BOwlTz2-.js} +2 -2
  26. package/dist/_chunks/{notes-panel-CHR-Jv6N.js.map → notes-panel-BOwlTz2-.js.map} +1 -1
  27. package/dist/_chunks/package-plus-CTecQK3x.js +25 -0
  28. package/dist/_chunks/package-plus-CTecQK3x.js.map +1 -0
  29. package/dist/_chunks/{public-footer-CB7ruuLI.js → public-footer-C8UIzqLJ.js} +326 -243
  30. package/dist/_chunks/public-footer-C8UIzqLJ.js.map +1 -0
  31. package/dist/_chunks/{radiograph-panel.agent-9jwXlOXB.js → radiograph-panel.agent-Dcv16n7u.js} +2 -2
  32. package/dist/_chunks/{radiograph-panel.agent-9jwXlOXB.js.map → radiograph-panel.agent-Dcv16n7u.js.map} +1 -1
  33. package/dist/_chunks/{rich-text-editor-CMPA5Wgy.js → rich-text-editor-BLEdXJ0l.js} +2 -2
  34. package/dist/_chunks/{rich-text-editor-CMPA5Wgy.js.map → rich-text-editor-BLEdXJ0l.js.map} +1 -1
  35. package/dist/_chunks/{signed-out-frame-bh7fn_Px.js → signed-out-frame-fUf7tqs3.js} +2 -2
  36. package/dist/_chunks/{signed-out-frame-bh7fn_Px.js.map → signed-out-frame-fUf7tqs3.js.map} +1 -1
  37. package/dist/_chunks/{task-editor-WdDCqbIL.js → task-editor-Czcx9B-3.js} +2 -2
  38. package/dist/_chunks/{task-editor-WdDCqbIL.js.map → task-editor-Czcx9B-3.js.map} +1 -1
  39. package/dist/_chunks/{toolbar-z8vXnpXz.js → toolbar-DoKcoE2q.js} +2 -2
  40. package/dist/_chunks/{toolbar-z8vXnpXz.js.map → toolbar-DoKcoE2q.js.map} +1 -1
  41. package/dist/_chunks/types-BrJRsnSG.js +291 -0
  42. package/dist/_chunks/types-BrJRsnSG.js.map +1 -0
  43. package/dist/_chunks/warehouse-load-summary-D88M4Ii7.js +255 -0
  44. package/dist/_chunks/warehouse-load-summary-D88M4Ii7.js.map +1 -0
  45. package/dist/agent-catalog.json +360 -14
  46. package/dist/agent-i18n/en.json +31 -2
  47. package/dist/browser-support.js +1 -1
  48. package/dist/components/_shared/warehouse-load/counts.d.ts +82 -0
  49. package/dist/components/_shared/warehouse-load/counts.d.ts.map +1 -0
  50. package/dist/components/_shared/warehouse-load/index.d.ts +4 -0
  51. package/dist/components/_shared/warehouse-load/index.d.ts.map +1 -0
  52. package/dist/components/_shared/warehouse-load/maps.d.ts +67 -0
  53. package/dist/components/_shared/warehouse-load/maps.d.ts.map +1 -0
  54. package/dist/components/_shared/warehouse-load/types.d.ts +18 -0
  55. package/dist/components/_shared/warehouse-load/types.d.ts.map +1 -0
  56. package/dist/components/bill-line-table/bill-line-table.columns.d.ts +2 -0
  57. package/dist/components/bill-line-table/bill-line-table.columns.d.ts.map +1 -1
  58. package/dist/components/bill-line-table/bill-line-table.d.ts.map +1 -1
  59. package/dist/components/bill-line-table/bill-line-table.header.d.ts +7 -0
  60. package/dist/components/bill-line-table/bill-line-table.header.d.ts.map +1 -0
  61. package/dist/components/bill-line-table/bill-line-table.model.d.ts +10 -1
  62. package/dist/components/bill-line-table/bill-line-table.model.d.ts.map +1 -1
  63. package/dist/components/bill-line-table/bill-line-table.types.d.ts +66 -1
  64. package/dist/components/bill-line-table/bill-line-table.types.d.ts.map +1 -1
  65. package/dist/components/bill-line-table/bill-line-table.variants.d.ts +12 -0
  66. package/dist/components/bill-line-table/bill-line-table.variants.d.ts.map +1 -1
  67. package/dist/components/bill-line-table/index.d.ts +2 -2
  68. package/dist/components/bill-line-table/index.d.ts.map +1 -1
  69. package/dist/components/bill-line-table/index.js +10 -8
  70. package/dist/components/bill-table/index.js +1 -1
  71. package/dist/components/data-grid/data-grid.variants.d.ts +1 -1
  72. package/dist/components/data-grid/index.js +2 -2
  73. package/dist/components/document-scanner/index.js +1 -1
  74. package/dist/components/file-manager/index.js +1 -1
  75. package/dist/components/file-upload/file-upload.d.ts +30 -1
  76. package/dist/components/file-upload/file-upload.d.ts.map +1 -1
  77. package/dist/components/file-upload/index.js +1 -1
  78. package/dist/components/flag/flag-view.d.ts +1 -1
  79. package/dist/components/index.d.ts +3 -0
  80. package/dist/components/index.d.ts.map +1 -1
  81. package/dist/components/invoice-upload/index.d.ts +5 -0
  82. package/dist/components/invoice-upload/index.d.ts.map +1 -0
  83. package/dist/components/invoice-upload/index.js +7 -0
  84. package/dist/components/invoice-upload/index.js.map +1 -0
  85. package/dist/components/invoice-upload/invoice-upload.agent.d.ts +4 -0
  86. package/dist/components/invoice-upload/invoice-upload.agent.d.ts.map +1 -0
  87. package/dist/components/invoice-upload/invoice-upload.d.ts +3 -0
  88. package/dist/components/invoice-upload/invoice-upload.d.ts.map +1 -0
  89. package/dist/components/invoice-upload/types.d.ts +72 -0
  90. package/dist/components/invoice-upload/types.d.ts.map +1 -0
  91. package/dist/components/invoice-upload-list/cells.d.ts +36 -0
  92. package/dist/components/invoice-upload-list/cells.d.ts.map +1 -0
  93. package/dist/components/invoice-upload-list/columns.d.ts +14 -0
  94. package/dist/components/invoice-upload-list/columns.d.ts.map +1 -0
  95. package/dist/components/invoice-upload-list/handle.d.ts +18 -0
  96. package/dist/components/invoice-upload-list/handle.d.ts.map +1 -0
  97. package/dist/components/invoice-upload-list/index.d.ts +5 -0
  98. package/dist/components/invoice-upload-list/index.d.ts.map +1 -0
  99. package/dist/components/invoice-upload-list/index.js +10 -0
  100. package/dist/components/invoice-upload-list/index.js.map +1 -0
  101. package/dist/components/invoice-upload-list/invoice-upload-list.agent.d.ts +4 -0
  102. package/dist/components/invoice-upload-list/invoice-upload-list.agent.d.ts.map +1 -0
  103. package/dist/components/invoice-upload-list/invoice-upload-list.d.ts +10 -0
  104. package/dist/components/invoice-upload-list/invoice-upload-list.d.ts.map +1 -0
  105. package/dist/components/invoice-upload-list/invoice-upload-list.variants.d.ts +28 -0
  106. package/dist/components/invoice-upload-list/invoice-upload-list.variants.d.ts.map +1 -0
  107. package/dist/components/invoice-upload-list/model.d.ts +40 -0
  108. package/dist/components/invoice-upload-list/model.d.ts.map +1 -0
  109. package/dist/components/invoice-upload-list/types.d.ts +154 -0
  110. package/dist/components/invoice-upload-list/types.d.ts.map +1 -0
  111. package/dist/components/notes-panel/index.js +1 -1
  112. package/dist/components/public-footer/index.js +1 -1
  113. package/dist/components/public-footer/public-footer.d.ts +24 -0
  114. package/dist/components/public-footer/public-footer.d.ts.map +1 -1
  115. package/dist/components/public-header/public-header.d.ts +1 -1
  116. package/dist/components/radiograph-panel/index.js +1 -1
  117. package/dist/components/rich-text-editor/index.js +1 -1
  118. package/dist/components/task-editor/index.js +1 -1
  119. package/dist/components/warehouse-load-summary/index.d.ts +4 -0
  120. package/dist/components/warehouse-load-summary/index.d.ts.map +1 -0
  121. package/dist/components/warehouse-load-summary/index.js +6 -0
  122. package/dist/components/warehouse-load-summary/index.js.map +1 -0
  123. package/dist/components/warehouse-load-summary/model.d.ts +8 -0
  124. package/dist/components/warehouse-load-summary/model.d.ts.map +1 -0
  125. package/dist/components/warehouse-load-summary/types.d.ts +50 -0
  126. package/dist/components/warehouse-load-summary/types.d.ts.map +1 -0
  127. package/dist/components/warehouse-load-summary/warehouse-load-summary.agent.d.ts +4 -0
  128. package/dist/components/warehouse-load-summary/warehouse-load-summary.agent.d.ts.map +1 -0
  129. package/dist/components/warehouse-load-summary/warehouse-load-summary.d.ts +7 -0
  130. package/dist/components/warehouse-load-summary/warehouse-load-summary.d.ts.map +1 -0
  131. package/dist/core.css +1 -1
  132. package/dist/i18n/locales/ar.d.ts +203 -0
  133. package/dist/i18n/locales/ar.d.ts.map +1 -1
  134. package/dist/i18n/locales/ar.js +197 -4
  135. package/dist/i18n/locales/ar.js.map +1 -1
  136. package/dist/i18n/locales/de.d.ts +203 -0
  137. package/dist/i18n/locales/de.d.ts.map +1 -1
  138. package/dist/i18n/locales/de.js +201 -4
  139. package/dist/i18n/locales/de.js.map +1 -1
  140. package/dist/i18n/locales/el.d.ts +203 -0
  141. package/dist/i18n/locales/el.d.ts.map +1 -1
  142. package/dist/i18n/locales/el.js +201 -4
  143. package/dist/i18n/locales/el.js.map +1 -1
  144. package/dist/i18n/locales/en.d.ts +203 -0
  145. package/dist/i18n/locales/en.d.ts.map +1 -1
  146. package/dist/i18n/locales/en.js +203 -0
  147. package/dist/i18n/locales/en.js.map +1 -1
  148. package/dist/i18n/locales/es.d.ts +203 -0
  149. package/dist/i18n/locales/es.d.ts.map +1 -1
  150. package/dist/i18n/locales/es.js +199 -4
  151. package/dist/i18n/locales/es.js.map +1 -1
  152. package/dist/i18n/locales/fr.d.ts +203 -0
  153. package/dist/i18n/locales/fr.d.ts.map +1 -1
  154. package/dist/i18n/locales/fr.js +199 -4
  155. package/dist/i18n/locales/fr.js.map +1 -1
  156. package/dist/i18n/locales/hi.d.ts +203 -0
  157. package/dist/i18n/locales/hi.d.ts.map +1 -1
  158. package/dist/i18n/locales/hi.js +197 -4
  159. package/dist/i18n/locales/hi.js.map +1 -1
  160. package/dist/i18n/locales/it.d.ts +203 -0
  161. package/dist/i18n/locales/it.d.ts.map +1 -1
  162. package/dist/i18n/locales/it.js +197 -4
  163. package/dist/i18n/locales/it.js.map +1 -1
  164. package/dist/i18n/locales/ja.d.ts +203 -0
  165. package/dist/i18n/locales/ja.d.ts.map +1 -1
  166. package/dist/i18n/locales/ja.js +197 -4
  167. package/dist/i18n/locales/ja.js.map +1 -1
  168. package/dist/i18n/locales/nl.d.ts +203 -0
  169. package/dist/i18n/locales/nl.d.ts.map +1 -1
  170. package/dist/i18n/locales/nl.js +197 -4
  171. package/dist/i18n/locales/nl.js.map +1 -1
  172. package/dist/i18n/locales/pl.d.ts +203 -0
  173. package/dist/i18n/locales/pl.d.ts.map +1 -1
  174. package/dist/i18n/locales/pl.js +197 -4
  175. package/dist/i18n/locales/pl.js.map +1 -1
  176. package/dist/i18n/locales/pt.d.ts +203 -0
  177. package/dist/i18n/locales/pt.d.ts.map +1 -1
  178. package/dist/i18n/locales/pt.js +199 -4
  179. package/dist/i18n/locales/pt.js.map +1 -1
  180. package/dist/i18n/locales/ro.d.ts +203 -0
  181. package/dist/i18n/locales/ro.d.ts.map +1 -1
  182. package/dist/i18n/locales/ro.js +197 -4
  183. package/dist/i18n/locales/ro.js.map +1 -1
  184. package/dist/i18n/locales/ru.d.ts +203 -0
  185. package/dist/i18n/locales/ru.d.ts.map +1 -1
  186. package/dist/i18n/locales/ru.js +197 -4
  187. package/dist/i18n/locales/ru.js.map +1 -1
  188. package/dist/i18n/locales/sq.d.ts +203 -0
  189. package/dist/i18n/locales/sq.d.ts.map +1 -1
  190. package/dist/i18n/locales/sq.js +199 -4
  191. package/dist/i18n/locales/sq.js.map +1 -1
  192. package/dist/i18n/locales/sv.d.ts +203 -0
  193. package/dist/i18n/locales/sv.d.ts.map +1 -1
  194. package/dist/i18n/locales/sv.js +197 -4
  195. package/dist/i18n/locales/sv.js.map +1 -1
  196. package/dist/i18n/locales/tr.d.ts +203 -0
  197. package/dist/i18n/locales/tr.d.ts.map +1 -1
  198. package/dist/i18n/locales/tr.js +197 -4
  199. package/dist/i18n/locales/tr.js.map +1 -1
  200. package/dist/i18n/locales/zh.d.ts +203 -0
  201. package/dist/i18n/locales/zh.d.ts.map +1 -1
  202. package/dist/i18n/locales/zh.js +197 -4
  203. package/dist/i18n/locales/zh.js.map +1 -1
  204. package/dist/index.js +1189 -1173
  205. package/dist/index.js.map +1 -1
  206. package/dist/locales/ar.json +207 -4
  207. package/dist/locales/de.json +207 -4
  208. package/dist/locales/el.json +207 -4
  209. package/dist/locales/en.json +203 -0
  210. package/dist/locales/es.json +207 -4
  211. package/dist/locales/fr.json +207 -4
  212. package/dist/locales/hi.json +207 -4
  213. package/dist/locales/it.json +207 -4
  214. package/dist/locales/ja.json +207 -4
  215. package/dist/locales/nl.json +207 -4
  216. package/dist/locales/pl.json +207 -4
  217. package/dist/locales/pt.json +207 -4
  218. package/dist/locales/ro.json +207 -4
  219. package/dist/locales/ru.json +207 -4
  220. package/dist/locales/sq.json +207 -4
  221. package/dist/locales/sv.json +207 -4
  222. package/dist/locales/tr.json +207 -4
  223. package/dist/locales/zh.json +207 -4
  224. package/dist/patterns/calendar/index.js +1 -1
  225. package/dist/patterns/signed-out-frame/index.js +1 -1
  226. package/dist/tokens.css +1 -1
  227. package/package.json +13 -1
  228. package/dist/_chunks/bill-line-table-vCnVo7_a.js +0 -1565
  229. package/dist/_chunks/bill-line-table-vCnVo7_a.js.map +0 -1
  230. package/dist/_chunks/default-tabs-CD285u0C.js.map +0 -1
  231. package/dist/_chunks/file-upload-CxjCs7TX.js.map +0 -1
  232. package/dist/_chunks/public-footer-CB7ruuLI.js.map +0 -1
@@ -1,51 +1,35 @@
1
1
  import { jsxs as T, jsx as l, Fragment as ne } from "react/jsx-runtime";
2
- import { useId as Ee, useMemo as M, createElement as ft, forwardRef as yt, useRef as K, useState as ht, useImperativeHandle as gt, useCallback as Tt } from "react";
2
+ import { useId as Pe, useMemo as M, createElement as mt, forwardRef as ft, useRef as K, useState as yt, useImperativeHandle as ht, useCallback as gt } from "react";
3
3
  import { useTranslation as v } from "react-i18next";
4
- import { u as St } from "./registry-DvAUVLHh.js";
5
- import { D as vt, e as wt } from "./data-grid-DiBSbN2Y.js";
6
- import { D as N } from "./toolbar-z8vXnpXz.js";
7
- import { I as It } from "./icon-button-group-BKtkVZ1W.js";
4
+ import { u as Tt } from "./registry-DvAUVLHh.js";
5
+ import { D as St, e as vt } from "./data-grid-Bbf8t4z3.js";
6
+ import { D as N } from "./toolbar-DoKcoE2q.js";
7
+ import { I as wt } from "./icon-button-group-BKtkVZ1W.js";
8
8
  import { c as w } from "./index-D2ZczOXr.js";
9
- import { b as kt, a as Nt } from "./accessible-target-D3j6F-AG.js";
10
- import { R as Lt } from "./row-actions-Dpf9CrCP.js";
11
- import { V as Be } from "./visually-hidden-BHxEUGyT.js";
12
- import { B as At } from "./badge-BUk4RjTS.js";
9
+ import { b as It, a as kt } from "./accessible-target-D3j6F-AG.js";
10
+ import { R as Nt } from "./row-actions-Dpf9CrCP.js";
11
+ import { V as Ee } from "./visually-hidden-BHxEUGyT.js";
12
+ import { B as Lt } from "./badge-BUk4RjTS.js";
13
13
  import { B as Ot } from "./button-DohK_Ak_.js";
14
- import { I as _t } from "./icon-button-S8_weU3g.js";
15
- import { I as Dt } from "./info-tip-C-MPkShR.js";
14
+ import { I as At } from "./icon-button-S8_weU3g.js";
15
+ import { I as _t } from "./info-tip-C-MPkShR.js";
16
16
  import { M as oe } from "./money-OE6_oDPH.js";
17
17
  import { P as F } from "./popover-CN5IsOeS.js";
18
- import { a as Ct } from "./format-number-DdzqwMs1.js";
19
- import { decimalToNumber as Rt } from "../decimal/index.js";
20
- import { f as Pt } from "./intl-locale-FWh-Y5_3.js";
21
- import { I as Et } from "./info-CGn22peZ.js";
22
- import { A as Bt } from "./arrow-down-left-DECv-dJt.js";
23
- import { A as xt } from "./arrow-up-right-C2v_MKsK.js";
24
- import { i as Ft } from "./is-development-CLUAnsU7.js";
25
- import { F as xe } from "./file-text-5yv6r2ls.js";
26
- import { c as le } from "./createLucideIcon-DhHxpK9K.js";
18
+ import { a as Dt } from "./format-number-DdzqwMs1.js";
19
+ import { decimalToNumber as Ct } from "../decimal/index.js";
20
+ import { f as Rt } from "./intl-locale-FWh-Y5_3.js";
21
+ import { I as Pt } from "./info-CGn22peZ.js";
22
+ import { A as Et } from "./arrow-down-left-DECv-dJt.js";
23
+ import { A as Bt } from "./arrow-up-right-C2v_MKsK.js";
24
+ import { i as xt } from "./is-development-CLUAnsU7.js";
25
+ import { F as Be } from "./file-text-5yv6r2ls.js";
26
+ import { F as xe } from "./file-code-Cf-_gSzd.js";
27
+ import { P as Ft } from "./package-plus-CTecQK3x.js";
27
28
  import { P as Wt } from "./pencil-B1sKKyuT.js";
28
- import { C as Mt } from "./circle-off-DuT9pVy2.js";
29
- import { U as Ut } from "./undo-2-EBxWjj1W.js";
30
- import { T as Kt } from "./trash-2-uumy3fy1.js";
31
- /**
32
- * @license lucide-react v1.22.0 - ISC
33
- *
34
- * This source code is licensed under the ISC license.
35
- * See the LICENSE file in the root directory of this source tree.
36
- */
37
- const Vt = [
38
- [
39
- "path",
40
- {
41
- d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",
42
- key: "1oefj6"
43
- }
44
- ],
45
- ["path", { d: "M14 2v5a1 1 0 0 0 1 1h5", key: "wfsgrz" }],
46
- ["path", { d: "M10 12.5 8 15l2 2.5", key: "1tg20x" }],
47
- ["path", { d: "m14 12.5 2 2.5-2 2.5", key: "yinavb" }]
48
- ], Fe = le("file-code", Vt);
29
+ import { c as Mt } from "./createLucideIcon-DhHxpK9K.js";
30
+ import { C as Ut } from "./circle-off-DuT9pVy2.js";
31
+ import { U as Kt } from "./undo-2-EBxWjj1W.js";
32
+ import { T as Vt } from "./trash-2-uumy3fy1.js";
49
33
  /**
50
34
  * @license lucide-react v1.22.0 - ISC
51
35
  *
@@ -64,34 +48,14 @@ const zt = [
64
48
  ["path", { d: "m2 16 6 6", key: "1pfhp9" }],
65
49
  ["circle", { cx: "16", cy: "9", r: "2.9", key: "1n0dlu" }],
66
50
  ["circle", { cx: "6", cy: "5", r: "3", key: "151irh" }]
67
- ], jt = le("hand-coins", zt);
68
- /**
69
- * @license lucide-react v1.22.0 - ISC
70
- *
71
- * This source code is licensed under the ISC license.
72
- * See the LICENSE file in the root directory of this source tree.
73
- */
74
- const qt = [
75
- ["path", { d: "M12 22V12", key: "d0xqtd" }],
76
- ["path", { d: "M16 17h6", key: "1ook5g" }],
77
- ["path", { d: "M19 14v6", key: "1ckrd5" }],
78
- [
79
- "path",
80
- {
81
- d: "M21 10.535V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.729l7 4a2 2 0 0 0 2 .001l1.675-.955",
82
- key: "28k6lz"
83
- }
84
- ],
85
- ["path", { d: "M3.29 7 12 12l8.71-5", key: "19ckod" }],
86
- ["path", { d: "m7.5 4.27 8.997 5.148", key: "9yrvtv" }]
87
- ], $t = le("package-plus", qt), Ht = ["number", "date", "counterparty", "amount"], Yt = ["incoming", "outgoing"], Zt = [
51
+ ], jt = Mt("hand-coins", zt), qt = ["number", "date", "counterparty", "amount"], Ht = ["incoming", "outgoing"], $t = [
88
52
  "paid",
89
53
  "partiallyPaid",
90
54
  "unpaid",
91
55
  "overdue",
92
56
  "writtenOff",
93
57
  "noPaymentDue"
94
- ], Gt = [
58
+ ], Yt = [
95
59
  "notSent",
96
60
  "sending",
97
61
  "pending",
@@ -100,7 +64,7 @@ const qt = [
100
64
  "notDelivered",
101
65
  "rejected",
102
66
  "received"
103
- ], Xt = ["notLoaded", "toReview", "loaded"], Qt = ["full", "partial", "credit", "proforma", "other"], Jt = [25, 50, 100], ei = [
67
+ ], Zt = ["notLoaded", "toReview", "loaded"], Gt = ["full", "partial", "credit", "proforma", "other"], Xt = [25, 50, 100], Qt = [
104
68
  "date",
105
69
  "direction",
106
70
  "counterparty",
@@ -108,7 +72,7 @@ const qt = [
108
72
  "paymentStatus",
109
73
  "sdiStatus",
110
74
  "warehouseStatus"
111
- ], ti = /* @__PURE__ */ new Set([
75
+ ], Jt = /* @__PURE__ */ new Set([
112
76
  "date",
113
77
  "direction",
114
78
  "amount",
@@ -133,7 +97,7 @@ const qt = [
133
97
  "sdiEntryDate",
134
98
  "relationType",
135
99
  "insurance"
136
- ]), We = { masked: !0 };
100
+ ]), Fe = { masked: !0 };
137
101
  function C(e, t) {
138
102
  throw new Error(`${e}: ${t}`);
139
103
  }
@@ -157,15 +121,15 @@ const W = (e) => ({
157
121
  },
158
122
  required: ["type", "dateFrom", "dateTo"],
159
123
  additionalProperties: !1
160
- }, A = {
124
+ }, O = {
161
125
  type: "boolean",
162
126
  description: "true = yes, false = no; leave the key out for either."
163
- }, Me = {
127
+ }, We = {
164
128
  type: "object",
165
129
  additionalProperties: !1,
166
130
  properties: {
167
131
  date: ee,
168
- direction: W(Yt),
132
+ direction: W(Ht),
169
133
  amount: {
170
134
  type: "object",
171
135
  description: "Amount in major units (12.50), as on the platform form.",
@@ -179,38 +143,38 @@ const W = (e) => ({
179
143
  required: ["type"],
180
144
  additionalProperties: !1
181
145
  },
182
- paymentStatus: W(Zt),
183
- sdiStatus: W(Gt),
184
- warehouseStatus: W(Xt),
146
+ paymentStatus: W($t),
147
+ sdiStatus: W(Yt),
148
+ warehouseStatus: W(Zt),
185
149
  datePreset: { enum: ["today", "thisMonth", "thisYear"] },
186
- type: W(Qt),
150
+ type: W(Gt),
187
151
  number: { type: "string" },
188
152
  prefix: { type: "string" },
189
- withInsuranceNet: A,
190
- withVat: A,
191
- withTaxAtSource: A,
192
- withWelfareFundContribution: A,
193
- withUnpaidAmount: A,
194
- writtenOff: A,
195
- taxOfficeNotification: A,
196
- receivedFromSdi: A,
197
- sentToSdi: A,
198
- selfBill: A,
153
+ withInsuranceNet: O,
154
+ withVat: O,
155
+ withTaxAtSource: O,
156
+ withWelfareFundContribution: O,
157
+ withUnpaidAmount: O,
158
+ writtenOff: O,
159
+ taxOfficeNotification: O,
160
+ receivedFromSdi: O,
161
+ sentToSdi: O,
162
+ selfBill: O,
199
163
  liabilityDate: ee,
200
164
  sdiEntryDate: ee,
201
165
  relationType: { enum: ["patient", "company", "operator"] },
202
166
  insurance: { type: "string" }
203
167
  }
204
- }, ii = new Set(
205
- Object.keys(Me.properties)
168
+ }, ei = new Set(
169
+ Object.keys(We.properties)
206
170
  );
207
- function ai(e) {
171
+ function ti(e) {
208
172
  const t = { ...e.getFilter() };
209
173
  if (!e.getFeatures().privacyMode)
210
174
  return t;
211
175
  const a = {};
212
176
  for (const [s, c] of Object.entries(t))
213
- a[s] = ti.has(s) ? c : We;
177
+ a[s] = Jt.has(s) ? c : Fe;
214
178
  return a;
215
179
  }
216
180
  const V = {
@@ -218,7 +182,7 @@ const V = {
218
182
  properties: { id: { type: "string", description: "A bill id (rows)." } },
219
183
  required: ["id"],
220
184
  additionalProperties: !1
221
- }, ni = {
185
+ }, ii = {
222
186
  id: "bill-table",
223
187
  capabilities: [
224
188
  "select_multiple",
@@ -264,7 +228,7 @@ const V = {
264
228
  type: "object",
265
229
  descriptionKey: "ui.agent.billTable.state.filter",
266
230
  description: "The active filters. Under privacy mode, filters that can point at a person read { masked: true }.",
267
- read: (e) => ai(e)
231
+ read: (e) => ti(e)
268
232
  },
269
233
  quickFilter: {
270
234
  type: "'' | { masked: true }",
@@ -272,7 +236,7 @@ const V = {
272
236
  description: "Empty when no quick search is set; otherwise { masked: true }, since the text may be a name. Set it with set_quick_filter.",
273
237
  // Masked in both modes: a person's name typed here must not reach
274
238
  // agent state, privacy mode or not.
275
- read: (e) => e.getQuickFilter() === "" ? "" : We
239
+ read: (e) => e.getQuickFilter() === "" ? "" : Fe
276
240
  },
277
241
  currentPage: {
278
242
  type: "number",
@@ -356,7 +320,7 @@ const V = {
356
320
  argsSchema: {
357
321
  type: "object",
358
322
  properties: {
359
- colId: { enum: [...Ht] },
323
+ colId: { enum: [...qt] },
360
324
  sort: { enum: ["asc", "desc"] }
361
325
  },
362
326
  required: ["colId", "sort"],
@@ -382,7 +346,7 @@ const V = {
382
346
  argsType: "{ model: BillTableFilterModel }",
383
347
  argsSchema: {
384
348
  type: "object",
385
- properties: { model: Me },
349
+ properties: { model: We },
386
350
  required: ["model"],
387
351
  additionalProperties: !1
388
352
  },
@@ -406,7 +370,7 @@ const V = {
406
370
  description: "Replace the filters. The host fetches the first page again.",
407
371
  invoke: (e, t) => {
408
372
  for (const a of Object.keys(t.model))
409
- ii.has(a) || C("UNKNOWN_FILTER", `"${a}" is not a bill filter.`);
373
+ ei.has(a) || C("UNKNOWN_FILTER", `"${a}" is not a bill filter.`);
410
374
  e.setFilter(t.model);
411
375
  }
412
376
  },
@@ -455,7 +419,7 @@ const V = {
455
419
  argsType: "{ size: 25 | 50 | 100 }",
456
420
  argsSchema: {
457
421
  type: "object",
458
- properties: { size: { enum: [...Jt] } },
422
+ properties: { size: { enum: [...Xt] } },
459
423
  required: ["size"],
460
424
  additionalProperties: !1
461
425
  },
@@ -482,7 +446,7 @@ const V = {
482
446
  argsSchema: {
483
447
  type: "object",
484
448
  properties: {
485
- id: { enum: [...ei] },
449
+ id: { enum: [...Qt] },
486
450
  visible: { type: "boolean" }
487
451
  },
488
452
  required: ["id", "visible"],
@@ -600,7 +564,7 @@ const V = {
600
564
  description: "Opaque bill id on each row (DataGrid). Act through the handle, not the DOM."
601
565
  }
602
566
  }
603
- }, oi = w("ds:w-full ds:min-w-0", {
567
+ }, ai = w("ds:w-full ds:min-w-0", {
604
568
  variants: {
605
569
  height: {
606
570
  auto: "ds:block",
@@ -621,22 +585,22 @@ const V = {
621
585
  }
622
586
  ), j = w(
623
587
  "type-meta ds:text-[color:var(--muted-foreground)]"
624
- ), re = w(
588
+ ), le = w(
625
589
  "ds:inline-flex ds:min-w-0 ds:max-w-full ds:items-center ds:gap-[var(--spacing-xs)]"
626
- ), li = w(
590
+ ), ni = w(
627
591
  "ds:size-4 ds:shrink-0 ds:rtl:-scale-x-100"
628
- ), ri = w(
592
+ ), oi = w(
629
593
  "ds:block ds:min-w-0 ds:max-w-full ds:truncate"
630
- ), si = w([
594
+ ), li = w([
631
595
  "ds:max-w-full ds:[--primary:var(--primary-readable)] ds:[--primary-hover:var(--primary-readable-hover)]",
632
596
  "ds:[tr[data-selected]_&]:[--primary:var(--primary-readable-hover)]",
633
597
  "ds:data-[component=button]:sm:before:block",
634
- kt
635
- ]), di = w("ds:font-medium"), ci = w(
598
+ It
599
+ ]), ri = w("ds:font-medium"), si = w(
636
600
  "ds:mt-[var(--spacing-sm)] ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]"
637
- ), ui = w(
601
+ ), di = w(
638
602
  "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]"
639
- ), pi = w("ds:m-0", {
603
+ ), ci = w("ds:m-0", {
640
604
  variants: {
641
605
  tone: {
642
606
  muted: "ds:text-[color:var(--muted-foreground)]",
@@ -644,24 +608,24 @@ const V = {
644
608
  }
645
609
  },
646
610
  defaultVariants: { tone: "muted" }
647
- }), bi = w(
611
+ }), ui = w(
648
612
  "ds:m-0 ds:grid ds:grid-cols-[1fr_auto] ds:items-baseline ds:gap-x-[var(--spacing-md)] ds:gap-y-[var(--spacing-2xs)]"
649
- ), mi = w(
613
+ ), pi = w(
650
614
  "ds:m-0 ds:text-[color:var(--muted-foreground)]"
651
- ), fi = w("ds:m-0 ds:text-end"), $ = ["incoming", "outgoing"], xa = [
615
+ ), bi = w("ds:m-0 ds:text-end"), H = ["incoming", "outgoing"], xa = [
652
616
  "full",
653
617
  "partial",
654
618
  "credit",
655
619
  "proforma",
656
620
  "other"
657
- ], yi = [
621
+ ], mi = [
658
622
  "paid",
659
623
  "partiallyPaid",
660
624
  "unpaid",
661
625
  "overdue",
662
626
  "writtenOff",
663
627
  "noPaymentDue"
664
- ], hi = [
628
+ ], fi = [
665
629
  "notApplicable",
666
630
  "notSent",
667
631
  "sending",
@@ -671,7 +635,7 @@ const V = {
671
635
  "notDelivered",
672
636
  "rejected",
673
637
  "received"
674
- ], gi = [
638
+ ], yi = [
675
639
  "notLoaded",
676
640
  "toReview",
677
641
  "loaded"
@@ -679,7 +643,7 @@ const V = {
679
643
  "patient",
680
644
  "person",
681
645
  "company"
682
- ], Ue = [
646
+ ], Me = [
683
647
  "open",
684
648
  "downloadPdf",
685
649
  "downloadXml",
@@ -696,7 +660,7 @@ const V = {
696
660
  "paymentAutomation",
697
661
  "noPermission",
698
662
  "inProgress"
699
- ], Ti = [
663
+ ], hi = [
700
664
  "number",
701
665
  "date",
702
666
  "direction",
@@ -706,7 +670,7 @@ const V = {
706
670
  "sdiStatus",
707
671
  "warehouseStatus",
708
672
  "actions"
709
- ], Ke = [
673
+ ], Ue = [
710
674
  "number",
711
675
  "date",
712
676
  "counterparty",
@@ -726,47 +690,47 @@ const V = {
726
690
  "bills-to-pay",
727
691
  "bills-to-collect",
728
692
  "bills-to-load"
729
- ], Si = "accounting-bills", vi = [
693
+ ], gi = "accounting-bills", Ti = [
730
694
  { colId: "date", sort: "desc" }
731
- ], Ae = [25, 50, 100], H = 2, _ = { source: "user" }, te = { source: "api" };
732
- function wi(e) {
695
+ ], Le = [25, 50, 100], $ = 2, _ = { source: "user" }, te = { source: "api" };
696
+ function Si(e) {
733
697
  return e.counterparty !== null && e.counterparty.kind !== "company";
734
698
  }
735
- function Ii(e) {
736
- return Number.isSafeInteger(e) ? Rt({ units: e, scale: H }) : null;
699
+ function vi(e) {
700
+ return Number.isSafeInteger(e) ? Ct({ units: e, scale: $ }) : null;
737
701
  }
738
- const Oe = /* @__PURE__ */ new Map(), ki = /^(\d{4})-(\d{2})-(\d{2})$/;
739
- function Ve(e, t) {
740
- const a = ki.exec(e);
702
+ const Oe = /* @__PURE__ */ new Map(), wi = /^(\d{4})-(\d{2})-(\d{2})$/;
703
+ function Ke(e, t) {
704
+ const a = wi.exec(e);
741
705
  if (!a) return e;
742
706
  const [, s, c, b] = a, i = new Date(
743
707
  Date.UTC(Number(s), Number(c) - 1, Number(b))
744
708
  );
745
709
  if (Number.isNaN(i.getTime())) return e;
746
- const n = Pt(t);
710
+ const n = Rt(t);
747
711
  let o = Oe.get(n);
748
712
  return o || (o = new Intl.DateTimeFormat(n, {
749
713
  dateStyle: "medium",
750
714
  timeZone: "UTC"
751
715
  }), Oe.set(n, o)), o.format(i);
752
716
  }
753
- const Ni = new Set(Ke);
754
- function Li(e) {
755
- return Ni.has(e);
717
+ const Ii = new Set(Ue);
718
+ function ki(e) {
719
+ return Ii.has(e);
756
720
  }
757
721
  function ae(e) {
758
722
  const t = [];
759
723
  for (const a of e)
760
- Li(a.colId) && t.push({ colId: a.colId, sort: a.sort });
724
+ ki(a.colId) && t.push({ colId: a.colId, sort: a.sort });
761
725
  return t;
762
726
  }
763
- function ze(e) {
727
+ function Ve(e) {
764
728
  return e.map((t) => `${t.colId}:${t.sort}`).join("|");
765
729
  }
766
- function Ai(e, t) {
767
- return t && ze(e) === t.key ? t.raw : e;
730
+ function Ni(e, t) {
731
+ return t && Ve(e) === t.key ? t.raw : e;
768
732
  }
769
- const Oi = {
733
+ const Li = {
770
734
  open: "onOpen",
771
735
  downloadPdf: "onDownload",
772
736
  downloadXml: "onDownload",
@@ -777,29 +741,29 @@ const Oi = {
777
741
  undoWriteOff: "onWriteOff",
778
742
  delete: "onDelete"
779
743
  };
780
- function se(e, t) {
781
- return typeof e[Oi[t]] == "function";
744
+ function re(e, t) {
745
+ return typeof e[Li[t]] == "function";
782
746
  }
783
- function je(e) {
747
+ function ze(e) {
784
748
  return typeof e.disabled == "string" ? e.disabled : "host";
785
749
  }
786
- function _i(e, t, a, s) {
750
+ function Oi(e, t, a, s) {
787
751
  const c = {};
788
- for (const b of Ue) {
752
+ for (const b of Me) {
789
753
  const i = e.actions[b];
790
- i === void 0 || !se(t, b) || (c[b] = a && i !== "enabled" && typeof i.disabled != "string" ? { disabled: { text: s } } : i);
754
+ i === void 0 || !re(t, b) || (c[b] = a && i !== "enabled" && typeof i.disabled != "string" ? { disabled: { text: s } } : i);
791
755
  }
792
756
  return c;
793
757
  }
794
- function Di(e, t) {
758
+ function Ai(e, t) {
795
759
  const a = {};
796
- for (const s of Ue) {
760
+ for (const s of Me) {
797
761
  const c = e.actions[s];
798
- c === void 0 || !se(t, s) || (a[s] = c === "enabled" ? "enabled" : { disabled: je(c) });
762
+ c === void 0 || !re(t, s) || (a[s] = c === "enabled" ? "enabled" : { disabled: ze(c) });
799
763
  }
800
764
  return a;
801
765
  }
802
- function Ci(e, t) {
766
+ function _i(e, t) {
803
767
  var s, c;
804
768
  const a = {
805
769
  id: e.id,
@@ -812,11 +776,11 @@ function Ci(e, t) {
812
776
  paymentStatus: e.paymentStatus,
813
777
  sdiStatus: e.sdiStatus,
814
778
  warehouseStatus: e.warehouseStatus ?? null,
815
- actions: Di(e, t)
779
+ actions: Ai(e, t)
816
780
  };
817
781
  return ((c = e.counterparty) == null ? void 0 : c.kind) === "company" && (a.counterpartyName = e.counterparty.name), a;
818
782
  }
819
- const qe = {
783
+ const je = {
820
784
  paid: { key: "billTable.paymentStatus.paid", en: "Paid", variant: "success" },
821
785
  partiallyPaid: {
822
786
  key: "billTable.paymentStatus.partiallyPaid",
@@ -843,7 +807,7 @@ const qe = {
843
807
  en: "No payment due",
844
808
  variant: "neutral"
845
809
  }
846
- }, $e = {
810
+ }, qe = {
847
811
  notSent: {
848
812
  key: "billTable.sdiStatus.notSent",
849
813
  en: "Not sent",
@@ -903,12 +867,12 @@ const qe = {
903
867
  }, Y = {
904
868
  incoming: { key: "billTable.direction.incoming", en: "Incoming" },
905
869
  outgoing: { key: "billTable.direction.outgoing", en: "Outgoing" }
906
- }, Ri = {
870
+ }, Di = {
907
871
  partial: { key: "billTable.type.partial", en: "Deposit" },
908
872
  credit: { key: "billTable.type.credit", en: "Credit note" },
909
873
  proforma: { key: "billTable.type.proforma", en: "Pro forma" },
910
874
  other: { key: "billTable.type.other", en: "Other document" }
911
- }, Pi = {
875
+ }, Ci = {
912
876
  downloadPdf: { key: "billTable.action.downloadPdf", en: "Download PDF" },
913
877
  downloadXml: { key: "billTable.action.downloadXml", en: "Download XML" },
914
878
  loadIntoWarehouse: {
@@ -926,7 +890,7 @@ const qe = {
926
890
  },
927
891
  undoWriteOff: { key: "billTable.action.undoWriteOff", en: "Undo write-off" },
928
892
  delete: { key: "billTable.action.delete", en: "Delete" }
929
- }, Ye = {
893
+ }, $e = {
930
894
  alreadyLoaded: {
931
895
  key: "billTable.disabledReason.alreadyLoaded",
932
896
  en: "This bill is already in the warehouse."
@@ -951,7 +915,7 @@ const qe = {
951
915
  key: "billTable.disabledReason.inProgress",
952
916
  en: "Already in progress."
953
917
  }
954
- }, Ei = {
918
+ }, Ri = {
955
919
  csv: { key: "billTable.export.csv", en: "CSV" },
956
920
  csvDetailed: {
957
921
  key: "billTable.export.csvDetailed",
@@ -968,22 +932,22 @@ const qe = {
968
932
  en: "ZIP of electronic invoices received from SDI (XML)"
969
933
  }
970
934
  };
971
- function Bi({
935
+ function Pi({
972
936
  row: e,
973
937
  openHintId: t,
974
938
  onOpen: a,
975
939
  hideHostText: s
976
940
  }) {
977
- const { t: c } = v("ui"), b = Ee(), i = e.actions.open;
941
+ const { t: c } = v("ui"), b = Pe(), i = e.actions.open;
978
942
  let n = null;
979
943
  if (e.type !== "full") {
980
- const d = Ri[e.type];
944
+ const d = Di[e.type];
981
945
  n = c(d.key, d.en);
982
946
  }
983
947
  let o = null;
984
948
  if (i !== void 0 && i !== "enabled")
985
949
  if (typeof i.disabled == "string") {
986
- const d = Ye[i.disabled];
950
+ const d = $e[i.disabled];
987
951
  o = c(d.key, d.en);
988
952
  } else
989
953
  o = s ? c(
@@ -991,12 +955,12 @@ function Bi({
991
955
  "Not available (reason hidden in privacy mode)"
992
956
  ) : i.disabled.text;
993
957
  return /* @__PURE__ */ T("span", { className: q(), children: [
994
- i === void 0 ? /* @__PURE__ */ l("span", { className: di(), children: e.number }) : /* @__PURE__ */ l(
958
+ i === void 0 ? /* @__PURE__ */ l("span", { className: ri(), children: e.number }) : /* @__PURE__ */ l(
995
959
  Ot,
996
960
  {
997
961
  intent: "link",
998
962
  size: "sm",
999
- className: si(),
963
+ className: li(),
1000
964
  "aria-describedby": o ? `${t} ${b}` : t,
1001
965
  "aria-disabled": o ? !0 : void 0,
1002
966
  onClick: (d) => {
@@ -1013,30 +977,30 @@ function Bi({
1013
977
  n ? /* @__PURE__ */ l("span", { className: j(), children: n }) : null
1014
978
  ] });
1015
979
  }
1016
- function xi({ day: e }) {
980
+ function Ei({ day: e }) {
1017
981
  const { i18n: t } = v("ui");
1018
- return /* @__PURE__ */ l("span", { children: Ve(e, t.language) });
982
+ return /* @__PURE__ */ l("span", { children: Ke(e, t.language) });
1019
983
  }
1020
- function Ze({ direction: e }) {
1021
- return /* @__PURE__ */ l(e === "incoming" ? Bt : xt, { "aria-hidden": "true", className: li() });
984
+ function Ye({ direction: e }) {
985
+ return /* @__PURE__ */ l(e === "incoming" ? Et : Bt, { "aria-hidden": "true", className: ni() });
1022
986
  }
1023
- function Ge({ direction: e }) {
987
+ function Ze({ direction: e }) {
1024
988
  const { t } = v("ui"), a = Y[e];
1025
- return /* @__PURE__ */ T("span", { className: re(), children: [
1026
- /* @__PURE__ */ l(Ze, { direction: e }),
989
+ return /* @__PURE__ */ T("span", { className: le(), children: [
990
+ /* @__PURE__ */ l(Ye, { direction: e }),
1027
991
  /* @__PURE__ */ l("span", { children: t(a.key, a.en) })
1028
992
  ] });
1029
993
  }
1030
- function Fi({
994
+ function Bi({
1031
995
  counterparty: e
1032
996
  }) {
1033
997
  const { t } = v("ui");
1034
998
  return e === null ? /* @__PURE__ */ l("span", { className: j(), children: t("billTable.counterparty.none", "No counterparty") }) : /* @__PURE__ */ T("span", { className: q(), children: [
1035
- /* @__PURE__ */ l("span", { dir: "auto", className: ri(), children: e.name }),
999
+ /* @__PURE__ */ l("span", { dir: "auto", className: oi(), children: e.name }),
1036
1000
  e.deleted ? /* @__PURE__ */ l("span", { className: j(), children: t("billTable.counterparty.deleted", "Deleted") }) : null
1037
1001
  ] });
1038
1002
  }
1039
- function Wi({
1003
+ function xi({
1040
1004
  amountMinor: e,
1041
1005
  currency: t
1042
1006
  }) {
@@ -1046,51 +1010,51 @@ function Wi({
1046
1010
  size: "sm",
1047
1011
  value: e,
1048
1012
  currency: t,
1049
- scale: H
1013
+ scale: $
1050
1014
  }
1051
1015
  );
1052
1016
  }
1053
- function de({
1017
+ function se({
1054
1018
  label: e,
1055
1019
  variant: t
1056
1020
  }) {
1057
- return /* @__PURE__ */ l(At, { size: "sm", variant: t, withDot: !0, children: e });
1021
+ return /* @__PURE__ */ l(Lt, { size: "sm", variant: t, withDot: !0, children: e });
1058
1022
  }
1059
- const Mi = /* @__PURE__ */ new Set([
1023
+ const Fi = /* @__PURE__ */ new Set([
1060
1024
  "unpaid",
1061
1025
  "partiallyPaid",
1062
1026
  "overdue"
1063
1027
  ]);
1064
- function Ui({
1028
+ function Wi({
1065
1029
  status: e,
1066
1030
  nextDueDate: t
1067
1031
  }) {
1068
- const { t: a, i18n: s } = v("ui"), c = qe[e];
1032
+ const { t: a, i18n: s } = v("ui"), c = je[e];
1069
1033
  return /* @__PURE__ */ T("span", { className: q(), children: [
1070
- /* @__PURE__ */ l(de, { label: a(c.key, c.en), variant: c.variant }),
1071
- t && Mi.has(e) ? /* @__PURE__ */ l("span", { className: j(), children: a("billTable.paymentStatus.due", "Due {{date}}", {
1072
- date: Ve(t, s.language)
1034
+ /* @__PURE__ */ l(se, { label: a(c.key, c.en), variant: c.variant }),
1035
+ t && Fi.has(e) ? /* @__PURE__ */ l("span", { className: j(), children: a("billTable.paymentStatus.due", "Due {{date}}", {
1036
+ date: Ke(t, s.language)
1073
1037
  }) }) : null
1074
1038
  ] });
1075
1039
  }
1076
- function Ki({ status: e }) {
1040
+ function Mi({ status: e }) {
1077
1041
  const { t } = v("ui");
1078
1042
  if (e === "notApplicable") return null;
1079
- const a = $e[e];
1080
- return /* @__PURE__ */ l(de, { label: t(a.key, a.en), variant: a.variant });
1043
+ const a = qe[e];
1044
+ return /* @__PURE__ */ l(se, { label: t(a.key, a.en), variant: a.variant });
1081
1045
  }
1082
- function Vi({
1046
+ function Ui({
1083
1047
  status: e
1084
1048
  }) {
1085
1049
  const { t } = v("ui");
1086
1050
  if (e === null) return null;
1087
1051
  const a = He[e];
1088
- return /* @__PURE__ */ l(de, { label: t(a.key, a.en), variant: a.variant });
1052
+ return /* @__PURE__ */ l(se, { label: t(a.key, a.en), variant: a.variant });
1089
1053
  }
1090
- function zi() {
1054
+ function Ki() {
1091
1055
  const { t: e } = v("ui");
1092
1056
  return /* @__PURE__ */ l(
1093
- Dt,
1057
+ _t,
1094
1058
  {
1095
1059
  size: "sm",
1096
1060
  content: e(
@@ -1106,34 +1070,34 @@ function B({
1106
1070
  currency: a
1107
1071
  }) {
1108
1072
  return /* @__PURE__ */ T(ne, { children: [
1109
- /* @__PURE__ */ l("dt", { className: mi(), children: e }),
1110
- /* @__PURE__ */ l("dd", { className: fi(), children: /* @__PURE__ */ l(
1073
+ /* @__PURE__ */ l("dt", { className: pi(), children: e }),
1074
+ /* @__PURE__ */ l("dd", { className: bi(), children: /* @__PURE__ */ l(
1111
1075
  oe,
1112
1076
  {
1113
1077
  size: "sm",
1114
1078
  value: t,
1115
1079
  currency: a,
1116
- scale: H
1080
+ scale: $
1117
1081
  }
1118
1082
  ) })
1119
1083
  ] });
1120
1084
  }
1121
- function ji({
1085
+ function Vi({
1122
1086
  totals: e,
1123
1087
  currency: t
1124
1088
  }) {
1125
1089
  const { t: a, i18n: s } = v("ui");
1126
- return /* @__PURE__ */ l("div", { className: ci(), children: $.map((c) => {
1090
+ return /* @__PURE__ */ l("div", { className: si(), children: H.map((c) => {
1127
1091
  const b = e[c];
1128
- return b ? /* @__PURE__ */ T("div", { className: ui(), children: [
1129
- /* @__PURE__ */ T("p", { className: pi({ tone: "strong" }), children: [
1130
- /* @__PURE__ */ l(Ge, { direction: c }),
1092
+ return b ? /* @__PURE__ */ T("div", { className: di(), children: [
1093
+ /* @__PURE__ */ T("p", { className: ci({ tone: "strong" }), children: [
1094
+ /* @__PURE__ */ l(Ze, { direction: c }),
1131
1095
  /* @__PURE__ */ l("span", { children: a("billTable.totals.count", "{{formatted}} bills", {
1132
1096
  count: b.count,
1133
- formatted: Ct(b.count, s.language)
1097
+ formatted: Dt(b.count, s.language)
1134
1098
  }) })
1135
1099
  ] }),
1136
- /* @__PURE__ */ T("dl", { className: bi(), children: [
1100
+ /* @__PURE__ */ T("dl", { className: ui(), children: [
1137
1101
  /* @__PURE__ */ l(
1138
1102
  B,
1139
1103
  {
@@ -1186,22 +1150,22 @@ function ji({
1186
1150
  ] }, c) : null;
1187
1151
  }) });
1188
1152
  }
1189
- function qi({
1153
+ function zi({
1190
1154
  totals: e,
1191
1155
  currency: t
1192
1156
  }) {
1193
1157
  const { t: a } = v("ui"), s = a("billTable.totals.breakdown", "Totals breakdown");
1194
- return /* @__PURE__ */ T("span", { className: re(), children: [
1158
+ return /* @__PURE__ */ T("span", { className: le(), children: [
1195
1159
  /* @__PURE__ */ l("span", { children: a("dataTable.totalRow", "Total") }),
1196
1160
  /* @__PURE__ */ T(F, { children: [
1197
1161
  /* @__PURE__ */ l(F.Trigger, { asChild: !0, children: /* @__PURE__ */ l(
1198
- _t,
1162
+ At,
1199
1163
  {
1200
1164
  intent: "ghost",
1201
1165
  size: "sm",
1202
- icon: /* @__PURE__ */ l(Et, { "aria-hidden": "true" }),
1166
+ icon: /* @__PURE__ */ l(Pt, { "aria-hidden": "true" }),
1203
1167
  "aria-label": s,
1204
- className: Nt
1168
+ className: kt
1205
1169
  }
1206
1170
  ) }),
1207
1171
  /* @__PURE__ */ T(F.Content, { side: "top", align: "start", size: "md", children: [
@@ -1210,12 +1174,12 @@ function qi({
1210
1174
  "billTable.totals.scope",
1211
1175
  "Every bill that matches the filters, on all pages."
1212
1176
  ) }),
1213
- /* @__PURE__ */ l(ji, { totals: e, currency: t })
1177
+ /* @__PURE__ */ l(Vi, { totals: e, currency: t })
1214
1178
  ] })
1215
1179
  ] })
1216
1180
  ] });
1217
1181
  }
1218
- function _e({
1182
+ function Ae({
1219
1183
  totals: e,
1220
1184
  field: t,
1221
1185
  currency: a
@@ -1227,14 +1191,14 @@ function _e({
1227
1191
  className: q({
1228
1192
  align: t === "grossMinor" ? "end" : "start"
1229
1193
  }),
1230
- children: $.map((c) => {
1194
+ children: H.map((c) => {
1231
1195
  const b = e[c];
1232
1196
  if (!b) return null;
1233
1197
  const i = Y[c], n = s(i.key, i.en);
1234
- return /* @__PURE__ */ T("span", { className: re(), children: [
1235
- /* @__PURE__ */ l(Ze, { direction: c }),
1198
+ return /* @__PURE__ */ T("span", { className: le(), children: [
1199
+ /* @__PURE__ */ l(Ye, { direction: c }),
1236
1200
  t === "grossMinor" ? /* @__PURE__ */ l("span", { children: n }) : /* @__PURE__ */ T(ne, { children: [
1237
- /* @__PURE__ */ l(Be, { children: n }),
1201
+ /* @__PURE__ */ l(Ee, { children: n }),
1238
1202
  /* @__PURE__ */ l("span", { children: s("billTable.totals.unpaid", "Unpaid") })
1239
1203
  ] }),
1240
1204
  /* @__PURE__ */ l(
@@ -1243,7 +1207,7 @@ function _e({
1243
1207
  size: "sm",
1244
1208
  value: b[t],
1245
1209
  currency: a,
1246
- scale: H
1210
+ scale: $
1247
1211
  }
1248
1212
  )
1249
1213
  ] }, c);
@@ -1251,15 +1215,15 @@ function _e({
1251
1215
  }
1252
1216
  );
1253
1217
  }
1254
- const $i = [
1218
+ const ji = [
1255
1219
  "inRange",
1256
1220
  "greaterThanOrEqual",
1257
1221
  "lessThanOrEqual",
1258
1222
  "equals"
1259
- ], Hi = hi.filter(
1223
+ ], qi = fi.filter(
1260
1224
  (e) => e !== "notApplicable"
1261
1225
  );
1262
- function Yi({
1226
+ function Hi({
1263
1227
  currency: e,
1264
1228
  showWarehouseStatus: t,
1265
1229
  sortableColumns: a,
@@ -1275,10 +1239,10 @@ function Yi({
1275
1239
  const h = Y[r];
1276
1240
  return o(h.key, h.en);
1277
1241
  }, S = (r) => {
1278
- const h = qe[r];
1242
+ const h = je[r];
1279
1243
  return o(h.key, h.en);
1280
1244
  }, I = (r) => {
1281
- const h = $e[r];
1245
+ const h = qe[r];
1282
1246
  return o(h.key, h.en);
1283
1247
  }, k = (r) => {
1284
1248
  const h = He[r];
@@ -1300,7 +1264,7 @@ function Yi({
1300
1264
  exportValue: (r) => r.number,
1301
1265
  sort: y.has("number") ? "text" : void 0,
1302
1266
  cell: (r) => /* @__PURE__ */ l(
1303
- Bi,
1267
+ Pi,
1304
1268
  {
1305
1269
  row: r,
1306
1270
  openHintId: b,
@@ -1308,7 +1272,7 @@ function Yi({
1308
1272
  hideHostText: c
1309
1273
  }
1310
1274
  ),
1311
- footer: s ? /* @__PURE__ */ l(qi, { totals: s, currency: e }) : void 0
1275
+ footer: s ? /* @__PURE__ */ l(zi, { totals: s, currency: e }) : void 0
1312
1276
  },
1313
1277
  {
1314
1278
  id: "date",
@@ -1322,7 +1286,7 @@ function Yi({
1322
1286
  // One request per range: the server filters on Apply.
1323
1287
  filter: { kind: "dateRange", commitMode: "apply" },
1324
1288
  search: !1,
1325
- cell: (r) => /* @__PURE__ */ l(xi, { day: r.date })
1289
+ cell: (r) => /* @__PURE__ */ l(Ei, { day: r.date })
1326
1290
  },
1327
1291
  {
1328
1292
  id: "direction",
@@ -1333,10 +1297,10 @@ function Yi({
1333
1297
  exportValue: (r) => P(r.direction),
1334
1298
  filter: {
1335
1299
  kind: "select",
1336
- options: f($, P)
1300
+ options: f(H, P)
1337
1301
  },
1338
1302
  search: !1,
1339
- cell: (r) => /* @__PURE__ */ l(Ge, { direction: r.direction })
1303
+ cell: (r) => /* @__PURE__ */ l(Ze, { direction: r.direction })
1340
1304
  },
1341
1305
  {
1342
1306
  id: "counterparty",
@@ -1351,8 +1315,8 @@ function Yi({
1351
1315
  // the server query (DataGrid's whole-column privacy rule).
1352
1316
  sort: y.has("counterparty") ? "text" : void 0,
1353
1317
  // Patients and other people are masked; companies stay visible.
1354
- privacy: { mode: "mask", appliesTo: wi },
1355
- cell: (r) => /* @__PURE__ */ l(Fi, { counterparty: r.counterparty })
1318
+ privacy: { mode: "mask", appliesTo: Si },
1319
+ cell: (r) => /* @__PURE__ */ l(Bi, { counterparty: r.counterparty })
1356
1320
  },
1357
1321
  {
1358
1322
  id: "amount",
@@ -1360,7 +1324,7 @@ function Yi({
1360
1324
  align: "end",
1361
1325
  size: 136,
1362
1326
  value: (r) => r.amountMinor,
1363
- exportValue: (r) => Ii(r.amountMinor),
1327
+ exportValue: (r) => vi(r.amountMinor),
1364
1328
  sort: y.has("amount") ? "number" : void 0,
1365
1329
  sortDescFirst: !0,
1366
1330
  // A currency NumberInput in the table currency. Bounds are MAJOR
@@ -1370,13 +1334,13 @@ function Yi({
1370
1334
  kind: "number",
1371
1335
  mode: "currency",
1372
1336
  currency: e,
1373
- operators: $i,
1337
+ operators: ji,
1374
1338
  defaultOperator: "inRange"
1375
1339
  },
1376
1340
  search: !1,
1377
- cell: (r) => /* @__PURE__ */ l(Wi, { amountMinor: r.amountMinor, currency: e }),
1341
+ cell: (r) => /* @__PURE__ */ l(xi, { amountMinor: r.amountMinor, currency: e }),
1378
1342
  footer: s ? /* @__PURE__ */ l(
1379
- _e,
1343
+ Ae,
1380
1344
  {
1381
1345
  totals: s,
1382
1346
  field: "grossMinor",
@@ -1393,18 +1357,18 @@ function Yi({
1393
1357
  exportValue: (r) => S(r.paymentStatus),
1394
1358
  filter: {
1395
1359
  kind: "select",
1396
- options: f(yi, S)
1360
+ options: f(mi, S)
1397
1361
  },
1398
1362
  search: !1,
1399
1363
  cell: (r) => /* @__PURE__ */ l(
1400
- Ui,
1364
+ Wi,
1401
1365
  {
1402
1366
  status: r.paymentStatus,
1403
1367
  nextDueDate: r.nextDueDate ?? null
1404
1368
  }
1405
1369
  ),
1406
1370
  footer: s ? /* @__PURE__ */ l(
1407
- _e,
1371
+ Ae,
1408
1372
  {
1409
1373
  totals: s,
1410
1374
  field: "unpaidMinor",
@@ -1415,17 +1379,17 @@ function Yi({
1415
1379
  {
1416
1380
  id: "sdiStatus",
1417
1381
  header: o("billTable.column.sdiStatus", "SDI status"),
1418
- headerTip: /* @__PURE__ */ l(zi, {}),
1382
+ headerTip: /* @__PURE__ */ l(Ki, {}),
1419
1383
  size: 168,
1420
1384
  responsiveTier: 3,
1421
1385
  value: (r) => r.sdiStatus === "notApplicable" ? null : r.sdiStatus,
1422
1386
  exportValue: (r) => r.sdiStatus === "notApplicable" ? "" : I(r.sdiStatus),
1423
1387
  filter: {
1424
1388
  kind: "select",
1425
- options: f(Hi, I)
1389
+ options: f(qi, I)
1426
1390
  },
1427
1391
  search: !1,
1428
- cell: (r) => /* @__PURE__ */ l(Ki, { status: r.sdiStatus })
1392
+ cell: (r) => /* @__PURE__ */ l(Mi, { status: r.sdiStatus })
1429
1393
  }
1430
1394
  ];
1431
1395
  return t && u.push({
@@ -1437,13 +1401,13 @@ function Yi({
1437
1401
  exportValue: (r) => r.warehouseStatus ? k(r.warehouseStatus) : "",
1438
1402
  filter: {
1439
1403
  kind: "select",
1440
- options: f(gi, k)
1404
+ options: f(yi, k)
1441
1405
  },
1442
1406
  search: !1,
1443
- cell: (r) => /* @__PURE__ */ l(Vi, { status: r.warehouseStatus ?? null })
1407
+ cell: (r) => /* @__PURE__ */ l(Ui, { status: r.warehouseStatus ?? null })
1444
1408
  }), u.push({
1445
1409
  id: "actions",
1446
- header: /* @__PURE__ */ l(Be, { children: m }),
1410
+ header: /* @__PURE__ */ l(Ee, { children: m }),
1447
1411
  headerLabel: m,
1448
1412
  pin: "end",
1449
1413
  size: 64,
@@ -1458,7 +1422,7 @@ function Yi({
1458
1422
  // group named by reference ("Actions, A12"), never by row data in an
1459
1423
  // attribute. A row that offers no menu item renders no button.
1460
1424
  cell: (r, h) => /* @__PURE__ */ l(
1461
- Lt,
1425
+ Nt,
1462
1426
  {
1463
1427
  row: r,
1464
1428
  actions: n,
@@ -1483,25 +1447,25 @@ function z(e, t) {
1483
1447
  throw new Error(`${e}: ${t}`);
1484
1448
  }
1485
1449
  function ie(e) {
1486
- Ft() && console.warn(`[BillTable] ${e}`);
1450
+ xt() && console.warn(`[BillTable] ${e}`);
1487
1451
  }
1488
- const Zi = new Set(Ti);
1489
- function Gi(e) {
1490
- return Zi.has(e);
1452
+ const $i = new Set(hi);
1453
+ function Yi(e) {
1454
+ return $i.has(e);
1491
1455
  }
1492
- function De(e) {
1456
+ function _e(e) {
1493
1457
  return new Set(
1494
1458
  e.getColumns().filter((t) => t.masked === !0).map((t) => t.id)
1495
1459
  );
1496
1460
  }
1497
- function Xi(e, t) {
1461
+ function Zi(e, t) {
1498
1462
  const a = () => e.current, s = () => t.current;
1499
1463
  function c(i) {
1500
1464
  return s().rows.find((o) => o.id === i) ?? z("UNKNOWN_ROW", `no bill "${i}" on the current page.`);
1501
1465
  }
1502
1466
  function b(i, n) {
1503
1467
  const o = c(i), { callbacks: d } = s(), y = o.actions[n];
1504
- return (y === void 0 || !se(d, n)) && z("ACTION_UNAVAILABLE", `bill "${i}" does not offer ${n}.`), y !== "enabled" && z("ACTION_DISABLED", je(y)), { row: o, callbacks: d };
1468
+ return (y === void 0 || !re(d, n)) && z("ACTION_UNAVAILABLE", `bill "${i}" does not offer ${n}.`), y !== "enabled" && z("ACTION_DISABLED", ze(y)), { row: o, callbacks: d };
1505
1469
  }
1506
1470
  return {
1507
1471
  getFeatures() {
@@ -1516,10 +1480,10 @@ function Xi(e, t) {
1516
1480
  sorting: [],
1517
1481
  filters: {},
1518
1482
  quickFilter: "",
1519
- pagination: { pageIndex: 0, pageSize: vt },
1483
+ pagination: { pageIndex: 0, pageSize: St },
1520
1484
  privacyMode: n
1521
1485
  };
1522
- const o = De(i), d = { ...i.getFilter() };
1486
+ const o = _e(i), d = { ...i.getFilter() };
1523
1487
  for (const y of Object.keys(d))
1524
1488
  o.has(y) && delete d[y];
1525
1489
  return {
@@ -1538,7 +1502,7 @@ function Xi(e, t) {
1538
1502
  setSort(i) {
1539
1503
  const n = a();
1540
1504
  if (!n) return;
1541
- const { sortableColumns: o } = s().features, d = De(n);
1505
+ const { sortableColumns: o } = s().features, d = _e(n);
1542
1506
  for (const y of i) {
1543
1507
  if (!o.includes(y.colId)) {
1544
1508
  ie(`setSort: the server does not sort "${y.colId}".`);
@@ -1614,7 +1578,7 @@ function Xi(e, t) {
1614
1578
  if (!i) return [];
1615
1579
  const { privacyMode: n } = s().features, o = [];
1616
1580
  for (const d of i.getColumns())
1617
- Gi(d.id) && o.push({
1581
+ Yi(d.id) && o.push({
1618
1582
  id: d.id,
1619
1583
  label: d.label,
1620
1584
  visible: d.visible,
@@ -1646,12 +1610,12 @@ function Xi(e, t) {
1646
1610
  /* ---- rows (agent-safe projection) ---- */
1647
1611
  getRowSummaries() {
1648
1612
  const { rows: i, callbacks: n } = s();
1649
- return i.map((o) => Ci(o, n));
1613
+ return i.map((o) => _i(o, n));
1650
1614
  },
1651
1615
  /* ---- row actions ---- */
1652
1616
  getRowActions(i) {
1653
1617
  const n = c(i), { callbacks: o, features: d, hiddenReasonText: y } = s();
1654
- return _i(
1618
+ return Oi(
1655
1619
  n,
1656
1620
  o,
1657
1621
  d.privacyMode,
@@ -1687,7 +1651,7 @@ function Xi(e, t) {
1687
1651
  }
1688
1652
  };
1689
1653
  }
1690
- const Qi = {
1654
+ const Gi = {
1691
1655
  downloadPdf: "downloads",
1692
1656
  downloadXml: "downloads",
1693
1657
  loadIntoWarehouse: "warehouse",
@@ -1697,7 +1661,7 @@ const Qi = {
1697
1661
  undoWriteOff: "bill",
1698
1662
  delete: "delete"
1699
1663
  };
1700
- function Ji({
1664
+ function Xi({
1701
1665
  callbacksRef: e,
1702
1666
  available: t,
1703
1667
  privacyMode: a
@@ -1718,19 +1682,19 @@ function Ji({
1718
1682
  const u = f.actions[m];
1719
1683
  if (!(u === void 0 || u === "enabled")) {
1720
1684
  if (typeof u.disabled == "string") {
1721
- const r = Ye[u.disabled];
1685
+ const r = $e[u.disabled];
1722
1686
  return s(r.key, r.en);
1723
1687
  }
1724
1688
  return a ? y : u.disabled.text;
1725
1689
  }
1726
1690
  }, S = (f, m, u, r = "default") => {
1727
- const h = Pi[f];
1691
+ const h = Ci[f];
1728
1692
  return {
1729
1693
  // Developer constant: React key and `data-action-id`, never row data.
1730
1694
  id: f,
1731
1695
  // Design 3.6 menu group: the menu draws a separator between groups.
1732
- section: Qi[f],
1733
- icon: ft(m, { "aria-hidden": !0 }),
1696
+ section: Gi[f],
1697
+ icon: mt(m, { "aria-hidden": !0 }),
1734
1698
  label: s(h.key, h.en),
1735
1699
  onClick: u,
1736
1700
  variant: r,
@@ -1745,7 +1709,7 @@ function Ji({
1745
1709
  return c && k.push(
1746
1710
  S(
1747
1711
  "downloadPdf",
1748
- xe,
1712
+ Be,
1749
1713
  (f) => {
1750
1714
  var m, u;
1751
1715
  return (u = (m = I()).onDownload) == null ? void 0 : u.call(m, f, "pdf", _);
@@ -1753,7 +1717,7 @@ function Ji({
1753
1717
  ),
1754
1718
  S(
1755
1719
  "downloadXml",
1756
- Fe,
1720
+ xe,
1757
1721
  (f) => {
1758
1722
  var m, u;
1759
1723
  return (u = (m = I()).onDownload) == null ? void 0 : u.call(m, f, "xml", _);
@@ -1762,7 +1726,7 @@ function Ji({
1762
1726
  ), b && k.push(
1763
1727
  S(
1764
1728
  "loadIntoWarehouse",
1765
- $t,
1729
+ Ft,
1766
1730
  (f) => {
1767
1731
  var m, u;
1768
1732
  return (u = (m = I()).onLoadIntoWarehouse) == null ? void 0 : u.call(m, f, {
@@ -1790,7 +1754,7 @@ function Ji({
1790
1754
  ), o && k.push(
1791
1755
  S(
1792
1756
  "writeOff",
1793
- Mt,
1757
+ Ut,
1794
1758
  (f) => {
1795
1759
  var m, u;
1796
1760
  return (u = (m = I()).onWriteOff) == null ? void 0 : u.call(m, f, !1, _);
@@ -1798,7 +1762,7 @@ function Ji({
1798
1762
  ),
1799
1763
  S(
1800
1764
  "undoWriteOff",
1801
- Ut,
1765
+ Kt,
1802
1766
  (f) => {
1803
1767
  var m, u;
1804
1768
  return (u = (m = I()).onWriteOff) == null ? void 0 : u.call(m, f, !0, _);
@@ -1807,7 +1771,7 @@ function Ji({
1807
1771
  ), d && k.push(
1808
1772
  S(
1809
1773
  "delete",
1810
- Kt,
1774
+ Vt,
1811
1775
  (f) => {
1812
1776
  var m, u;
1813
1777
  return (u = (m = I()).onDelete) == null ? void 0 : u.call(m, f, _);
@@ -1827,7 +1791,7 @@ function Ji({
1827
1791
  a
1828
1792
  ]);
1829
1793
  }
1830
- const ea = [], ta = (e) => e.id, ia = (e) => e.number, aa = yt(
1794
+ const Qi = [], Ji = (e) => e.id, ea = (e) => e.number, ta = ft(
1831
1795
  function(t, a) {
1832
1796
  const {
1833
1797
  /* data */
@@ -1839,8 +1803,8 @@ const ea = [], ta = (e) => e.id, ia = (e) => e.number, aa = yt(
1839
1803
  query: n,
1840
1804
  defaultQuery: o,
1841
1805
  onQueryChange: d,
1842
- sortableColumns: y = Ke,
1843
- pageSizeOptions: P = Ae,
1806
+ sortableColumns: y = Ue,
1807
+ pageSizeOptions: P = Le,
1844
1808
  /* selection */
1845
1809
  selectable: S = !0,
1846
1810
  selection: I,
@@ -1848,54 +1812,54 @@ const ea = [], ta = (e) => e.id, ia = (e) => e.number, aa = yt(
1848
1812
  onSelectionChange: f,
1849
1813
  /* columns */
1850
1814
  showWarehouseStatus: m = !1,
1851
- gridId: u = Si,
1815
+ gridId: u = gi,
1852
1816
  persistColumnState: r = !0,
1853
1817
  /* row actions */
1854
1818
  onOpen: h,
1855
1819
  onDownload: L,
1856
1820
  onLoadIntoWarehouse: x,
1857
- onEdit: ce,
1858
- onRecordPayment: ue,
1859
- onWriteOff: pe,
1860
- onDelete: be,
1821
+ onEdit: de,
1822
+ onRecordPayment: ce,
1823
+ onWriteOff: ue,
1824
+ onDelete: pe,
1861
1825
  /* bulk and list actions */
1862
1826
  onBulkDownload: Z,
1863
- listDownloads: me = ea,
1864
- onListDownload: fe,
1865
- onRefresh: ye,
1827
+ listDownloads: be = Qi,
1828
+ onListDownload: me,
1829
+ onRefresh: fe,
1866
1830
  /* toolbar */
1867
- toolbarStart: Xe,
1868
- extraFilterLabels: he,
1831
+ toolbarStart: Ge,
1832
+ extraFilterLabels: ye,
1869
1833
  /* states */
1870
- status: ge = "ready",
1871
- error: O,
1872
- onCreateBill: Te,
1873
- headingLevel: Se,
1834
+ status: he = "ready",
1835
+ error: A,
1836
+ onCreateBill: ge,
1837
+ headingLevel: Te,
1874
1838
  /* privacy and layout */
1875
1839
  privacyMode: E = !1,
1876
- caption: Qe,
1877
- density: Je = "default",
1878
- height: ve = "auto",
1840
+ caption: Xe,
1841
+ density: Qe = "default",
1842
+ height: Se = "auto",
1879
1843
  /* DOM: naming goes to the grid's scroll region */
1880
- className: et,
1881
- "aria-label": tt,
1882
- "aria-labelledby": it,
1883
- "aria-describedby": at,
1884
- ...nt
1885
- } = t, { t: p } = v("ui"), we = Ee(), G = K(null), X = {
1844
+ className: Je,
1845
+ "aria-label": et,
1846
+ "aria-labelledby": tt,
1847
+ "aria-describedby": it,
1848
+ ...at
1849
+ } = t, { t: p } = v("ui"), ve = Pe(), G = K(null), X = {
1886
1850
  onOpen: h,
1887
1851
  onDownload: L,
1888
1852
  onLoadIntoWarehouse: x,
1889
- onEdit: ce,
1890
- onRecordPayment: ue,
1891
- onWriteOff: pe,
1892
- onDelete: be
1853
+ onEdit: de,
1854
+ onRecordPayment: ce,
1855
+ onWriteOff: ue,
1856
+ onDelete: pe
1893
1857
  }, Q = K(X);
1894
1858
  Q.current = X;
1895
- const ot = p(
1859
+ const nt = p(
1896
1860
  "billTable.disabledReason.privacyHidden",
1897
1861
  "Not available (reason hidden in privacy mode)"
1898
- ), Ie = {
1862
+ ), we = {
1899
1863
  rows: s,
1900
1864
  callbacks: X,
1901
1865
  features: {
@@ -1903,19 +1867,19 @@ const ea = [], ta = (e) => e.id, ia = (e) => e.number, aa = yt(
1903
1867
  privacyMode: E,
1904
1868
  showWarehouseStatus: m,
1905
1869
  sortableColumns: [...y],
1906
- status: ge
1870
+ status: he
1907
1871
  },
1908
- hiddenReasonText: ot
1909
- }, ke = K(Ie);
1910
- ke.current = Ie;
1911
- const [U] = ht(() => Xi(G, ke));
1912
- gt(a, () => U, [U]), St(ni, U, u);
1913
- const Ne = K(null), lt = (g) => {
1914
- var Le;
1872
+ hiddenReasonText: nt
1873
+ }, Ie = K(we);
1874
+ Ie.current = we;
1875
+ const [U] = yt(() => Zi(G, Ie));
1876
+ ht(a, () => U, [U]), Tt(ii, U, u);
1877
+ const ke = K(null), ot = (g) => {
1878
+ var Ne;
1915
1879
  const D = ae(g.sorting);
1916
- Ne.current = {
1917
- key: ze(D),
1918
- raw: ae(((Le = G.current) == null ? void 0 : Le.getSort()) ?? g.sorting)
1880
+ ke.current = {
1881
+ key: Ve(D),
1882
+ raw: ae(((Ne = G.current) == null ? void 0 : Ne.getSort()) ?? g.sorting)
1919
1883
  }, d == null || d({
1920
1884
  sorting: D,
1921
1885
  // Column models and host keys; DataGrid evaluates none of them in
@@ -1925,12 +1889,12 @@ const ea = [], ta = (e) => e.id, ia = (e) => e.number, aa = yt(
1925
1889
  pagination: { ...g.pagination },
1926
1890
  privacyMode: E
1927
1891
  });
1928
- }, rt = n ? Ai(n.sorting, Ne.current) : void 0, J = P.join(","), st = M(
1892
+ }, lt = n ? Ni(n.sorting, ke.current) : void 0, J = P.join(","), rt = M(
1929
1893
  () => ({
1930
- pageSizeOptions: J === "" ? Ae : J.split(",").map(Number)
1894
+ pageSizeOptions: J === "" ? Le : J.split(",").map(Number)
1931
1895
  }),
1932
1896
  [J]
1933
- ), dt = M(() => ({ ...{
1897
+ ), st = M(() => ({ ...{
1934
1898
  datePreset: p("billTable.filter.datePreset", "Period"),
1935
1899
  type: p("billTable.filter.type", "Type"),
1936
1900
  number: p("billTable.filter.number", "Number"),
@@ -1975,34 +1939,34 @@ const ea = [], ta = (e) => e.id, ia = (e) => e.number, aa = yt(
1975
1939
  "billTable.filter.personalAssistant",
1976
1940
  "Personal assistant"
1977
1941
  )
1978
- }, ...he }), [p, he]), ct = Ji({
1942
+ }, ...ye }), [p, ye]), dt = Xi({
1979
1943
  callbacksRef: Q,
1980
1944
  available: {
1981
1945
  download: !!L,
1982
1946
  loadIntoWarehouse: !!x,
1983
- edit: !!ce,
1984
- recordPayment: !!ue,
1985
- writeOff: !!pe,
1986
- delete: !!be
1947
+ edit: !!de,
1948
+ recordPayment: !!ce,
1949
+ writeOff: !!ue,
1950
+ delete: !!pe
1987
1951
  },
1988
1952
  privacyMode: E
1989
- }), ut = Tt((g) => {
1953
+ }), ct = gt((g) => {
1990
1954
  Q.current.onOpen(g, _);
1991
- }, []), pt = Yi({
1955
+ }, []), ut = Hi({
1992
1956
  currency: b,
1993
1957
  showWarehouseStatus: m,
1994
1958
  sortableColumns: y,
1995
1959
  totals: i,
1996
1960
  privacyMode: E,
1997
- openHintId: we,
1998
- onOpenRow: ut,
1999
- rowActions: ct
2000
- }), bt = $.map((g) => {
1961
+ openHintId: ve,
1962
+ onOpenRow: ct,
1963
+ rowActions: dt
1964
+ }), pt = H.map((g) => {
2001
1965
  const D = Y[g];
2002
1966
  return { value: g, label: p(D.key, D.en) };
2003
- }), mt = /* @__PURE__ */ T(N, { children: [
1967
+ }), bt = /* @__PURE__ */ T(N, { children: [
2004
1968
  /* @__PURE__ */ T(N.FilterBar, { children: [
2005
- Xe,
1969
+ Ge,
2006
1970
  /* @__PURE__ */ l(
2007
1971
  N.QuickSearch,
2008
1972
  {
@@ -2019,7 +1983,7 @@ const ea = [], ta = (e) => e.id, ia = (e) => e.number, aa = yt(
2019
1983
  label: p("billTable.column.direction", "Direction"),
2020
1984
  options: [
2021
1985
  { value: null, label: p("dataTable.selectFilter.all", "All") },
2022
- ...bt
1986
+ ...pt
2023
1987
  ]
2024
1988
  }
2025
1989
  ),
@@ -2031,7 +1995,7 @@ const ea = [], ta = (e) => e.id, ia = (e) => e.number, aa = yt(
2031
1995
  N.BulkAction,
2032
1996
  {
2033
1997
  label: p("billTable.bulk.downloadPdf", "Download PDFs"),
2034
- icon: /* @__PURE__ */ l(xe, { "aria-hidden": "true" }),
1998
+ icon: /* @__PURE__ */ l(Be, { "aria-hidden": "true" }),
2035
1999
  onAction: ({ selectedRowIds: g }) => Z([...g], "pdf")
2036
2000
  }
2037
2001
  ),
@@ -2039,17 +2003,17 @@ const ea = [], ta = (e) => e.id, ia = (e) => e.number, aa = yt(
2039
2003
  N.BulkAction,
2040
2004
  {
2041
2005
  label: p("billTable.bulk.downloadXml", "Download XML files"),
2042
- icon: /* @__PURE__ */ l(Fe, { "aria-hidden": "true" }),
2006
+ icon: /* @__PURE__ */ l(xe, { "aria-hidden": "true" }),
2043
2007
  onAction: ({ selectedRowIds: g }) => Z([...g], "xml")
2044
2008
  }
2045
2009
  )
2046
2010
  ] }) : null,
2047
2011
  /* @__PURE__ */ T(
2048
- It,
2012
+ wt,
2049
2013
  {
2050
2014
  "aria-label": p("dataTable.tableActions", "Table actions"),
2051
2015
  children: [
2052
- me.length > 0 && fe ? (
2016
+ be.length > 0 && me ? (
2053
2017
  // Today's list downloads apply the query to every matching
2054
2018
  // bill on the server; DataGrid's built-in CSV, Excel and PDF
2055
2019
  // would export one page, so only custom items are offered.
@@ -2057,14 +2021,14 @@ const ea = [], ta = (e) => e.id, ia = (e) => e.number, aa = yt(
2057
2021
  N.ExportMenu,
2058
2022
  {
2059
2023
  label: p("billTable.export.menu", "Download list"),
2060
- children: me.map((g) => {
2061
- const D = Ei[g];
2024
+ children: be.map((g) => {
2025
+ const D = Ri[g];
2062
2026
  return /* @__PURE__ */ l(
2063
2027
  N.ExportMenu.Item,
2064
2028
  {
2065
2029
  format: "custom",
2066
2030
  label: p(D.key, D.en),
2067
- onExport: () => fe(g, U.getQuery())
2031
+ onExport: () => me(g, U.getQuery())
2068
2032
  },
2069
2033
  g
2070
2034
  );
@@ -2072,7 +2036,7 @@ const ea = [], ta = (e) => e.id, ia = (e) => e.number, aa = yt(
2072
2036
  }
2073
2037
  )
2074
2038
  ) : null,
2075
- ye ? /* @__PURE__ */ l(N.Refresh, { onRefresh: ye }) : null,
2039
+ fe ? /* @__PURE__ */ l(N.Refresh, { onRefresh: fe }) : null,
2076
2040
  /* @__PURE__ */ l(N.ColumnToggle, {})
2077
2041
  ]
2078
2042
  }
@@ -2084,39 +2048,39 @@ const ea = [], ta = (e) => e.id, ia = (e) => e.number, aa = yt(
2084
2048
  {
2085
2049
  "data-component": "bill-table",
2086
2050
  "data-component-id": u,
2087
- className: oi({ height: ve, className: et }),
2088
- ...nt,
2051
+ className: ai({ height: Se, className: Je }),
2052
+ ...at,
2089
2053
  children: [
2090
- /* @__PURE__ */ l("span", { hidden: !0, id: we, children: p("billTable.open", "Open bill") }),
2054
+ /* @__PURE__ */ l("span", { hidden: !0, id: ve, children: p("billTable.open", "Open bill") }),
2091
2055
  /* @__PURE__ */ l(
2092
- wt,
2056
+ vt,
2093
2057
  {
2094
2058
  ref: G,
2095
- columns: pt,
2059
+ columns: ut,
2096
2060
  rows: s,
2097
- getRowId: ta,
2098
- caption: Qe ?? p("billTable.caption", "Bills"),
2099
- "aria-label": tt,
2100
- "aria-labelledby": it,
2101
- "aria-describedby": at,
2061
+ getRowId: Ji,
2062
+ caption: Xe ?? p("billTable.caption", "Bills"),
2063
+ "aria-label": et,
2064
+ "aria-labelledby": tt,
2065
+ "aria-describedby": it,
2102
2066
  gridId: u,
2103
2067
  registerAgent: !1,
2104
2068
  persistColumnState: r,
2105
2069
  dataMode: "server",
2106
2070
  rowCount: c,
2107
- sorting: rt,
2108
- defaultSorting: (o == null ? void 0 : o.sorting) ?? vi,
2071
+ sorting: lt,
2072
+ defaultSorting: (o == null ? void 0 : o.sorting) ?? Ti,
2109
2073
  filters: n == null ? void 0 : n.filters,
2110
2074
  defaultFilters: o == null ? void 0 : o.filters,
2111
2075
  quickFilter: n == null ? void 0 : n.quickFilter,
2112
2076
  defaultQuickFilter: o == null ? void 0 : o.quickFilter,
2113
2077
  page: n == null ? void 0 : n.pagination,
2114
2078
  defaultPage: o == null ? void 0 : o.pagination,
2115
- onQueryChange: lt,
2116
- filterLabels: dt,
2079
+ onQueryChange: ot,
2080
+ filterLabels: st,
2117
2081
  multiSort: !1,
2118
2082
  maxSortLevels: 1,
2119
- pagination: st,
2083
+ pagination: rt,
2120
2084
  selectionMode: S ? "multiple" : "none",
2121
2085
  rowSelection: I,
2122
2086
  defaultRowSelection: k,
@@ -2126,14 +2090,14 @@ const ea = [], ta = (e) => e.id, ia = (e) => e.number, aa = yt(
2126
2090
  clearSelectionOnFilterChange: !0,
2127
2091
  columnResizing: !0,
2128
2092
  responsiveColumns: !0,
2129
- getRowLabel: ia,
2093
+ getRowLabel: ea,
2130
2094
  rowLabelPrivacySafe: !0,
2131
- status: ge,
2095
+ status: he,
2132
2096
  error: {
2133
- title: (O == null ? void 0 : O.title) ?? p("billTable.error.title", "The bills could not be loaded"),
2134
- description: O == null ? void 0 : O.description,
2135
- onRetry: O == null ? void 0 : O.onRetry,
2136
- headingLevel: Se
2097
+ title: (A == null ? void 0 : A.title) ?? p("billTable.error.title", "The bills could not be loaded"),
2098
+ description: A == null ? void 0 : A.description,
2099
+ onRetry: A == null ? void 0 : A.onRetry,
2100
+ headingLevel: Te
2137
2101
  },
2138
2102
  empty: {
2139
2103
  title: p("billTable.empty.title", "No bills yet"),
@@ -2141,19 +2105,19 @@ const ea = [], ta = (e) => e.id, ia = (e) => e.number, aa = yt(
2141
2105
  "billTable.empty.description",
2142
2106
  "Bills you create, or receive from SDI, appear here."
2143
2107
  ),
2144
- action: Te ? {
2108
+ action: ge ? {
2145
2109
  label: p("billTable.empty.action", "Add bill"),
2146
- onClick: Te
2110
+ onClick: ge
2147
2111
  } : void 0,
2148
- headingLevel: Se,
2112
+ headingLevel: Te,
2149
2113
  noResultsTitle: p(
2150
2114
  "billTable.empty.noResultsTitle",
2151
2115
  "No bills match your filters"
2152
2116
  )
2153
2117
  },
2154
- toolbar: mt,
2155
- density: Je,
2156
- height: ve,
2118
+ toolbar: bt,
2119
+ density: Qe,
2120
+ height: Se,
2157
2121
  privacyMode: E
2158
2122
  }
2159
2123
  )
@@ -2162,12 +2126,12 @@ const ea = [], ta = (e) => e.id, ia = (e) => e.number, aa = yt(
2162
2126
  );
2163
2127
  }
2164
2128
  );
2165
- aa.displayName = "BillTable";
2166
- const Ce = ["incoming"], Re = ["outgoing"], Pe = [
2129
+ ta.displayName = "BillTable";
2130
+ const De = ["incoming"], Ce = ["outgoing"], Re = [
2167
2131
  "unpaid",
2168
2132
  "partiallyPaid",
2169
2133
  "overdue"
2170
- ], na = ["received"], oa = ["notLoaded", "toReview"];
2134
+ ], ia = ["received"], aa = ["notLoaded", "toReview"];
2171
2135
  function Ka({
2172
2136
  withWarehouse: e = !1
2173
2137
  } = {}) {
@@ -2191,21 +2155,21 @@ function Ka({
2191
2155
  {
2192
2156
  id: "bills-incoming",
2193
2157
  label: t("billTable.tabs.incoming", "Incoming"),
2194
- filterModel: { direction: { type: "set", values: [...Ce] } },
2158
+ filterModel: { direction: { type: "set", values: [...De] } },
2195
2159
  userNamed: !1
2196
2160
  },
2197
2161
  {
2198
2162
  id: "bills-outgoing",
2199
2163
  label: t("billTable.tabs.outgoing", "Outgoing"),
2200
- filterModel: { direction: { type: "set", values: [...Re] } },
2164
+ filterModel: { direction: { type: "set", values: [...Ce] } },
2201
2165
  userNamed: !1
2202
2166
  },
2203
2167
  {
2204
2168
  id: "bills-to-pay",
2205
2169
  label: t("billTable.tabs.toPay", "To pay"),
2206
2170
  filterModel: {
2207
- direction: { type: "set", values: [...Ce] },
2208
- paymentStatus: { type: "set", values: [...Pe] }
2171
+ direction: { type: "set", values: [...De] },
2172
+ paymentStatus: { type: "set", values: [...Re] }
2209
2173
  },
2210
2174
  userNamed: !1
2211
2175
  },
@@ -2213,8 +2177,8 @@ function Ka({
2213
2177
  id: "bills-to-collect",
2214
2178
  label: t("billTable.tabs.toCollect", "To collect"),
2215
2179
  filterModel: {
2216
- direction: { type: "set", values: [...Re] },
2217
- paymentStatus: { type: "set", values: [...Pe] }
2180
+ direction: { type: "set", values: [...Ce] },
2181
+ paymentStatus: { type: "set", values: [...Re] }
2218
2182
  },
2219
2183
  userNamed: !1
2220
2184
  }
@@ -2223,8 +2187,8 @@ function Ka({
2223
2187
  id: "bills-to-load",
2224
2188
  label: t("billTable.tabs.toLoad", "To load into warehouse"),
2225
2189
  filterModel: {
2226
- sdiStatus: { type: "set", values: [...na] },
2227
- warehouseStatus: { type: "set", values: [...oa] }
2190
+ sdiStatus: { type: "set", values: [...ia] },
2191
+ warehouseStatus: { type: "set", values: [...aa] }
2228
2192
  },
2229
2193
  userNamed: !1
2230
2194
  }), a;
@@ -2233,18 +2197,18 @@ function Ka({
2233
2197
  export {
2234
2198
  Wa as B,
2235
2199
  Fa as a,
2236
- $ as b,
2200
+ H as b,
2237
2201
  Ma as c,
2238
- yi as d,
2239
- Ue as e,
2240
- hi as f,
2241
- Ti as g,
2202
+ mi as d,
2203
+ Me as e,
2204
+ fi as f,
2205
+ hi as g,
2242
2206
  Ua as h,
2243
- Ke as i,
2207
+ Ue as i,
2244
2208
  xa as j,
2245
- gi as k,
2246
- aa as l,
2247
- ni as m,
2209
+ yi as k,
2210
+ ta as l,
2211
+ ii as m,
2248
2212
  Ka as u
2249
2213
  };
2250
- //# sourceMappingURL=default-tabs-CD285u0C.js.map
2214
+ //# sourceMappingURL=default-tabs-Cxkw1Ws0.js.map