@alfadocs/ui-kit-debug 1.0.0 → 1.2.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 (231) hide show
  1. package/dist/_chunks/{actions-cell-renderer-DaL80uqL.js → actions-cell-renderer-ClGCSQnA.js} +600 -565
  2. package/dist/_chunks/actions-cell-renderer-ClGCSQnA.js.map +1 -0
  3. package/dist/_chunks/{ai-consent-banner-BXD7W6FI.js → ai-consent-banner-DKgFfSzc.js} +2 -2
  4. package/dist/_chunks/{ai-consent-banner-BXD7W6FI.js.map → ai-consent-banner-DKgFfSzc.js.map} +1 -1
  5. package/dist/_chunks/{alert-Cxaqd-QO.js → alert-DS22ha1n.js} +103 -98
  6. package/dist/_chunks/alert-DS22ha1n.js.map +1 -0
  7. package/dist/_chunks/{annotation-marker-qt5R9WZX.js → annotation-marker-CsUJGZjQ.js} +7 -5
  8. package/dist/_chunks/annotation-marker-CsUJGZjQ.js.map +1 -0
  9. package/dist/_chunks/{audio-recorder-BjnB7V8n.js → audio-recorder-sRsGS-0V.js} +2 -2
  10. package/dist/_chunks/{audio-recorder-BjnB7V8n.js.map → audio-recorder-sRsGS-0V.js.map} +1 -1
  11. package/dist/_chunks/{booking-DSOK-bnR.js → booking-D8fCzcUd.js} +2 -2
  12. package/dist/_chunks/{booking-DSOK-bnR.js.map → booking-D8fCzcUd.js.map} +1 -1
  13. package/dist/_chunks/{care-plan-card-BrwhyIJI.js → care-plan-card-DjjVnBYz.js} +2 -2
  14. package/dist/_chunks/{care-plan-card-BrwhyIJI.js.map → care-plan-card-DjjVnBYz.js.map} +1 -1
  15. package/dist/_chunks/{care-plan-entry-card-DWEdCQM3.js → care-plan-entry-card-BVhpvd-P.js} +2 -2
  16. package/dist/_chunks/{care-plan-entry-card-DWEdCQM3.js.map → care-plan-entry-card-BVhpvd-P.js.map} +1 -1
  17. package/dist/_chunks/{collapsible-BrnRiCC6.js → collapsible-CGL9ontS.js} +65 -61
  18. package/dist/_chunks/collapsible-CGL9ontS.js.map +1 -0
  19. package/dist/_chunks/{document-preview-DXsCEj4U.js → document-preview-DAczwybt.js} +2 -2
  20. package/dist/_chunks/{document-preview-DXsCEj4U.js.map → document-preview-DAczwybt.js.map} +1 -1
  21. package/dist/_chunks/{document-scanner-cS_ispQs.js → document-scanner-BRYIc3A-.js} +2 -2
  22. package/dist/_chunks/{document-scanner-cS_ispQs.js.map → document-scanner-BRYIc3A-.js.map} +1 -1
  23. package/dist/_chunks/{entity-summary-BILN4wEG.js → entity-summary-BS6n7Iah.js} +2 -2
  24. package/dist/_chunks/{entity-summary-BILN4wEG.js.map → entity-summary-BS6n7Iah.js.map} +1 -1
  25. package/dist/_chunks/{face-scheme-CjQAHvSP.js → face-scheme-Cou2efl7.js} +2 -2
  26. package/dist/_chunks/{face-scheme-CjQAHvSP.js.map → face-scheme-Cou2efl7.js.map} +1 -1
  27. package/dist/_chunks/{file-manager-B9LZzT5E.js → file-manager-CNSLiuLo.js} +2 -2
  28. package/dist/_chunks/{file-manager-B9LZzT5E.js.map → file-manager-CNSLiuLo.js.map} +1 -1
  29. package/dist/_chunks/{freemium-paywall-Dr2342_S.js → freemium-paywall-DsT7MaLd.js} +2 -2
  30. package/dist/_chunks/{freemium-paywall-Dr2342_S.js.map → freemium-paywall-DsT7MaLd.js.map} +1 -1
  31. package/dist/_chunks/link-cell-renderer-_DlEZHLI.js +772 -0
  32. package/dist/_chunks/link-cell-renderer-_DlEZHLI.js.map +1 -0
  33. package/dist/_chunks/{marketplace-app-shell-pCHBp8bo.js → marketplace-app-shell-DQC9Gpm0.js} +2 -2
  34. package/dist/_chunks/{marketplace-app-shell-pCHBp8bo.js.map → marketplace-app-shell-DQC9Gpm0.js.map} +1 -1
  35. package/dist/_chunks/{muscle-scheme-kgCX5qfO.js → muscle-scheme-yfzP_xoJ.js} +2 -2
  36. package/dist/_chunks/{muscle-scheme-kgCX5qfO.js.map → muscle-scheme-yfzP_xoJ.js.map} +1 -1
  37. package/dist/_chunks/notes-panel-CCz0J140.js +370 -0
  38. package/dist/_chunks/notes-panel-CCz0J140.js.map +1 -0
  39. package/dist/_chunks/{patient-details-UmNcxL0c.js → patient-details-l7pnsUq9.js} +2 -2
  40. package/dist/_chunks/{patient-details-UmNcxL0c.js.map → patient-details-l7pnsUq9.js.map} +1 -1
  41. package/dist/_chunks/{patient-search-vtRTSdf6.js → patient-search-H54Utav2.js} +2 -2
  42. package/dist/_chunks/{patient-search-vtRTSdf6.js.map → patient-search-H54Utav2.js.map} +1 -1
  43. package/dist/_chunks/{patient-table-QEVsFvwq.js → patient-table-DXk0wW8Q.js} +243 -239
  44. package/dist/_chunks/patient-table-DXk0wW8Q.js.map +1 -0
  45. package/dist/_chunks/payment-automation-upsell-C4LIw1iQ.js +305 -0
  46. package/dist/_chunks/payment-automation-upsell-C4LIw1iQ.js.map +1 -0
  47. package/dist/_chunks/{payment-form-BoGxEmGn.js → payment-form-CyKT20xZ.js} +2 -2
  48. package/dist/_chunks/{payment-form-BoGxEmGn.js.map → payment-form-CyKT20xZ.js.map} +1 -1
  49. package/dist/_chunks/{payment-request-card-CygO1anM.js → payment-request-card-CN30J6yM.js} +107 -138
  50. package/dist/_chunks/payment-request-card-CN30J6yM.js.map +1 -0
  51. package/dist/_chunks/{pdf-viewer-CcOuR2wj.js → pdf-viewer-DHg8SfUI.js} +2 -2
  52. package/dist/_chunks/{pdf-viewer-CcOuR2wj.js.map → pdf-viewer-DHg8SfUI.js.map} +1 -1
  53. package/dist/_chunks/{practice-results-yKbwIxqa.js → practice-results-qvJRkvLn.js} +2 -2
  54. package/dist/_chunks/{practice-results-yKbwIxqa.js.map → practice-results-qvJRkvLn.js.map} +1 -1
  55. package/dist/_chunks/receipt-euro-C6k4Gzhr.js +36 -0
  56. package/dist/_chunks/receipt-euro-C6k4Gzhr.js.map +1 -0
  57. package/dist/_chunks/{reviews-panel-DmOjvmyH.js → reviews-panel-BfUJhx3m.js} +2 -2
  58. package/dist/_chunks/{reviews-panel-DmOjvmyH.js.map → reviews-panel-BfUJhx3m.js.map} +1 -1
  59. package/dist/_chunks/{sign-document-cH9CboWB.js → sign-document-D70TEUw9.js} +2 -2
  60. package/dist/_chunks/{sign-document-cH9CboWB.js.map → sign-document-D70TEUw9.js.map} +1 -1
  61. package/dist/_chunks/{signature-request-BzXTV_RH.js → signature-request-BlNCXpRN.js} +2 -2
  62. package/dist/_chunks/{signature-request-BzXTV_RH.js.map → signature-request-BlNCXpRN.js.map} +1 -1
  63. package/dist/_chunks/sparkline-DJtZBe7O.js +501 -0
  64. package/dist/_chunks/sparkline-DJtZBe7O.js.map +1 -0
  65. package/dist/_chunks/{warning-stack-DKeAfj5M.js → warning-stack-IVf0oxh2.js} +2 -2
  66. package/dist/_chunks/{warning-stack-DKeAfj5M.js.map → warning-stack-IVf0oxh2.js.map} +1 -1
  67. package/dist/_chunks/{workflow-map-SIfAhmWz.js → workflow-map-ByyBYj6Y.js} +2 -2
  68. package/dist/_chunks/{workflow-map-SIfAhmWz.js.map → workflow-map-ByyBYj6Y.js.map} +1 -1
  69. package/dist/agent-catalog.json +237 -7
  70. package/dist/agent-i18n/en.json +17 -5
  71. package/dist/components/ai-consent-banner/index.js +1 -1
  72. package/dist/components/alert/alert.d.ts +20 -0
  73. package/dist/components/alert/alert.d.ts.map +1 -1
  74. package/dist/components/alert/index.d.ts +1 -1
  75. package/dist/components/alert/index.d.ts.map +1 -1
  76. package/dist/components/alert/index.js +1 -1
  77. package/dist/components/annotation-marker/annotation-marker.d.ts.map +1 -1
  78. package/dist/components/annotation-marker/index.js +1 -1
  79. package/dist/components/audio-recorder/index.js +1 -1
  80. package/dist/components/booking/index.js +1 -1
  81. package/dist/components/care-plan-card/index.js +1 -1
  82. package/dist/components/care-plan-entry-card/index.js +1 -1
  83. package/dist/components/collapsible/collapsible.d.ts.map +1 -1
  84. package/dist/components/collapsible/index.js +1 -1
  85. package/dist/components/data-table/data-table.d.ts.map +1 -1
  86. package/dist/components/data-table/filters/select-filter.d.ts +6 -0
  87. package/dist/components/data-table/filters/select-filter.d.ts.map +1 -1
  88. package/dist/components/data-table/hooks/use-presentational-aria-fix.d.ts +19 -0
  89. package/dist/components/data-table/hooks/use-presentational-aria-fix.d.ts.map +1 -0
  90. package/dist/components/data-table/index.js +2 -2
  91. package/dist/components/document-preview/index.js +1 -1
  92. package/dist/components/document-scanner/index.js +1 -1
  93. package/dist/components/entity-summary/index.js +1 -1
  94. package/dist/components/face-scheme/index.js +1 -1
  95. package/dist/components/file-manager/index.js +1 -1
  96. package/dist/components/freemium-paywall/index.js +1 -1
  97. package/dist/components/muscle-scheme/index.js +1 -1
  98. package/dist/components/notes-panel/index.js +1 -1
  99. package/dist/components/notes-panel/notes-panel.agent.d.ts.map +1 -1
  100. package/dist/components/notes-panel/notes-panel.d.ts +45 -2
  101. package/dist/components/notes-panel/notes-panel.d.ts.map +1 -1
  102. package/dist/components/patient-details/index.js +1 -1
  103. package/dist/components/patient-search/index.js +1 -1
  104. package/dist/components/patient-table/columns.d.ts.map +1 -1
  105. package/dist/components/patient-table/index.js +1 -1
  106. package/dist/components/payment-card/index.js +1 -1
  107. package/dist/components/payment-form/index.js +1 -1
  108. package/dist/components/pdf-viewer/index.js +1 -1
  109. package/dist/components/practice-results/index.js +1 -1
  110. package/dist/components/reviews-panel/index.js +1 -1
  111. package/dist/components/sign-document/index.js +1 -1
  112. package/dist/components/skeleton-scheme/index.js +1 -1
  113. package/dist/components/sparkline/index.d.ts +1 -1
  114. package/dist/components/sparkline/index.d.ts.map +1 -1
  115. package/dist/components/sparkline/index.js +1 -1
  116. package/dist/components/sparkline/sparkline.agent.d.ts.map +1 -1
  117. package/dist/components/sparkline/sparkline.d.ts +60 -3
  118. package/dist/components/sparkline/sparkline.d.ts.map +1 -1
  119. package/dist/components/warning-stack/index.js +1 -1
  120. package/dist/components/workflow/index.js +1 -1
  121. package/dist/host-compat.css +13 -1
  122. package/dist/i18n/locales/ar.d.ts +3 -0
  123. package/dist/i18n/locales/ar.d.ts.map +1 -1
  124. package/dist/i18n/locales/ar.js +3 -0
  125. package/dist/i18n/locales/ar.js.map +1 -1
  126. package/dist/i18n/locales/de.d.ts +3 -0
  127. package/dist/i18n/locales/de.d.ts.map +1 -1
  128. package/dist/i18n/locales/de.js +3 -0
  129. package/dist/i18n/locales/de.js.map +1 -1
  130. package/dist/i18n/locales/el.d.ts +3 -0
  131. package/dist/i18n/locales/el.d.ts.map +1 -1
  132. package/dist/i18n/locales/el.js +3 -0
  133. package/dist/i18n/locales/el.js.map +1 -1
  134. package/dist/i18n/locales/en.d.ts +3 -0
  135. package/dist/i18n/locales/en.d.ts.map +1 -1
  136. package/dist/i18n/locales/en.js +3 -0
  137. package/dist/i18n/locales/en.js.map +1 -1
  138. package/dist/i18n/locales/es.d.ts +3 -0
  139. package/dist/i18n/locales/es.d.ts.map +1 -1
  140. package/dist/i18n/locales/es.js +3 -0
  141. package/dist/i18n/locales/es.js.map +1 -1
  142. package/dist/i18n/locales/fr.d.ts +3 -0
  143. package/dist/i18n/locales/fr.d.ts.map +1 -1
  144. package/dist/i18n/locales/fr.js +3 -0
  145. package/dist/i18n/locales/fr.js.map +1 -1
  146. package/dist/i18n/locales/hi.d.ts +3 -0
  147. package/dist/i18n/locales/hi.d.ts.map +1 -1
  148. package/dist/i18n/locales/hi.js +3 -0
  149. package/dist/i18n/locales/hi.js.map +1 -1
  150. package/dist/i18n/locales/it.d.ts +3 -0
  151. package/dist/i18n/locales/it.d.ts.map +1 -1
  152. package/dist/i18n/locales/it.js +3 -0
  153. package/dist/i18n/locales/it.js.map +1 -1
  154. package/dist/i18n/locales/ja.d.ts +3 -0
  155. package/dist/i18n/locales/ja.d.ts.map +1 -1
  156. package/dist/i18n/locales/ja.js +3 -0
  157. package/dist/i18n/locales/ja.js.map +1 -1
  158. package/dist/i18n/locales/nl.d.ts +3 -0
  159. package/dist/i18n/locales/nl.d.ts.map +1 -1
  160. package/dist/i18n/locales/nl.js +3 -0
  161. package/dist/i18n/locales/nl.js.map +1 -1
  162. package/dist/i18n/locales/pl.d.ts +3 -0
  163. package/dist/i18n/locales/pl.d.ts.map +1 -1
  164. package/dist/i18n/locales/pl.js +3 -0
  165. package/dist/i18n/locales/pl.js.map +1 -1
  166. package/dist/i18n/locales/pt.d.ts +3 -0
  167. package/dist/i18n/locales/pt.d.ts.map +1 -1
  168. package/dist/i18n/locales/pt.js +3 -0
  169. package/dist/i18n/locales/pt.js.map +1 -1
  170. package/dist/i18n/locales/ro.d.ts +3 -0
  171. package/dist/i18n/locales/ro.d.ts.map +1 -1
  172. package/dist/i18n/locales/ro.js +3 -0
  173. package/dist/i18n/locales/ro.js.map +1 -1
  174. package/dist/i18n/locales/ru.d.ts +3 -0
  175. package/dist/i18n/locales/ru.d.ts.map +1 -1
  176. package/dist/i18n/locales/ru.js +3 -0
  177. package/dist/i18n/locales/ru.js.map +1 -1
  178. package/dist/i18n/locales/sq.d.ts +3 -0
  179. package/dist/i18n/locales/sq.d.ts.map +1 -1
  180. package/dist/i18n/locales/sq.js +3 -0
  181. package/dist/i18n/locales/sq.js.map +1 -1
  182. package/dist/i18n/locales/sv.d.ts +3 -0
  183. package/dist/i18n/locales/sv.d.ts.map +1 -1
  184. package/dist/i18n/locales/sv.js +3 -0
  185. package/dist/i18n/locales/sv.js.map +1 -1
  186. package/dist/i18n/locales/tr.d.ts +3 -0
  187. package/dist/i18n/locales/tr.d.ts.map +1 -1
  188. package/dist/i18n/locales/tr.js +3 -0
  189. package/dist/i18n/locales/tr.js.map +1 -1
  190. package/dist/i18n/locales/zh.d.ts +3 -0
  191. package/dist/i18n/locales/zh.d.ts.map +1 -1
  192. package/dist/i18n/locales/zh.js +3 -0
  193. package/dist/i18n/locales/zh.js.map +1 -1
  194. package/dist/index.js +974 -1268
  195. package/dist/index.js.map +1 -1
  196. package/dist/locales/ar.json +3 -0
  197. package/dist/locales/de.json +3 -0
  198. package/dist/locales/el.json +3 -0
  199. package/dist/locales/en.json +3 -0
  200. package/dist/locales/es.json +3 -0
  201. package/dist/locales/fr.json +3 -0
  202. package/dist/locales/hi.json +3 -0
  203. package/dist/locales/it.json +3 -0
  204. package/dist/locales/ja.json +3 -0
  205. package/dist/locales/nl.json +3 -0
  206. package/dist/locales/pl.json +3 -0
  207. package/dist/locales/pt.json +3 -0
  208. package/dist/locales/ro.json +3 -0
  209. package/dist/locales/ru.json +3 -0
  210. package/dist/locales/sq.json +3 -0
  211. package/dist/locales/sv.json +3 -0
  212. package/dist/locales/tr.json +3 -0
  213. package/dist/locales/zh.json +3 -0
  214. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  215. package/dist/patterns/payment-automation-upsell/index.js +5 -0
  216. package/dist/patterns/payment-automation-upsell/index.js.map +1 -0
  217. package/dist/patterns/signature-request/index.js +1 -1
  218. package/dist/tokens.css +1 -1
  219. package/package.json +5 -1
  220. package/dist/_chunks/actions-cell-renderer-DaL80uqL.js.map +0 -1
  221. package/dist/_chunks/alert-Cxaqd-QO.js.map +0 -1
  222. package/dist/_chunks/annotation-marker-qt5R9WZX.js.map +0 -1
  223. package/dist/_chunks/collapsible-BrnRiCC6.js.map +0 -1
  224. package/dist/_chunks/link-cell-renderer-Bt-mXeQY.js +0 -728
  225. package/dist/_chunks/link-cell-renderer-Bt-mXeQY.js.map +0 -1
  226. package/dist/_chunks/notes-panel-CTcOLLVo.js +0 -324
  227. package/dist/_chunks/notes-panel-CTcOLLVo.js.map +0 -1
  228. package/dist/_chunks/patient-table-QEVsFvwq.js.map +0 -1
  229. package/dist/_chunks/payment-request-card-CygO1anM.js.map +0 -1
  230. package/dist/_chunks/sparkline-DcXqRZoq.js +0 -283
  231. package/dist/_chunks/sparkline-DcXqRZoq.js.map +0 -1
@@ -1,54 +1,25 @@
1
1
  import { jsx as e, jsxs as c } from "react/jsx-runtime";
2
- import { forwardRef as M, useId as B, useMemo as I } from "react";
3
- import { c as G } from "./index-D2ZczOXr.js";
4
- import { useTranslation as K } from "react-i18next";
2
+ import { forwardRef as B, useId as G, useMemo as z } from "react";
3
+ import { c as K } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as M } from "react-i18next";
5
5
  import { B as O } from "./badge-DCOqV9mI.js";
6
- import { C as k } from "./card-DPmk26CL.js";
6
+ import { C as D } from "./card-DPmk26CL.js";
7
7
  import { D as d } from "./description-list-ClNLdRMy.js";
8
8
  import { K as Y, a as H } from "./key-value-pair-LHKfDT_9.js";
9
- import { T as j, A as te } from "./transaction-chip-DJCstquX.js";
9
+ import { T as j, A as ae } from "./transaction-chip-DJCstquX.js";
10
10
  import { u as W } from "./registry-DvAUVLHh.js";
11
- import { H as re } from "./hash-CSQ9SChR.js";
12
- import { C as ne } from "./calendar-days-BGWklvE-.js";
13
- import { c as J } from "./createLucideIcon-DhHxpK9K.js";
14
- import { F as Q } from "./file-text-5yv6r2ls.js";
11
+ import { H as te } from "./hash-CSQ9SChR.js";
12
+ import { C as re } from "./calendar-days-BGWklvE-.js";
13
+ import { R as ne, C as $ } from "./receipt-euro-C6k4Gzhr.js";
14
+ import { F as J } from "./file-text-5yv6r2ls.js";
15
15
  import { U as ie } from "./user-B12p7bVF.js";
16
16
  import { U as le } from "./user-cog-BTn98Arm.js";
17
- import { e as X } from "./entity-card-9_62gY7l.js";
17
+ import { e as Q } from "./entity-card-9_62gY7l.js";
18
18
  import { A as de } from "./arrow-up-right-C2v_MKsK.js";
19
19
  import { L as oe } from "./link-CPb_pZPr.js";
20
20
  import { C as se } from "./calendar-clock-hbObjfGY.js";
21
21
  import { i as ce } from "./is-safe-url-DkETxeHz.js";
22
- /**
23
- * @license lucide-react v1.22.0 - ISC
24
- *
25
- * This source code is licensed under the ISC license.
26
- * See the LICENSE file in the root directory of this source tree.
27
- */
28
- const me = [
29
- ["rect", { width: "20", height: "14", x: "2", y: "5", rx: "2", key: "ynyp8z" }],
30
- ["line", { x1: "2", x2: "22", y1: "10", y2: "10", key: "1b3vmo" }]
31
- ], $ = J("credit-card", me);
32
- /**
33
- * @license lucide-react v1.22.0 - ISC
34
- *
35
- * This source code is licensed under the ISC license.
36
- * See the LICENSE file in the root directory of this source tree.
37
- */
38
- const ue = [
39
- [
40
- "path",
41
- { d: "M15.828 14.829a4 4 0 0 1-5.656 0 4 4 0 0 1 0-5.657 4 4 0 0 1 5.656 0", key: "16zdw4" }
42
- ],
43
- [
44
- "path",
45
- {
46
- d: "M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z",
47
- key: "ycz6yz"
48
- }
49
- ],
50
- ["path", { d: "M8 12h5", key: "1g6qi8" }]
51
- ], pe = J("receipt-euro", ue), he = {
22
+ const me = {
52
23
  id: "payment-card",
53
24
  capabilities: [],
54
25
  state: {
@@ -78,22 +49,22 @@ const ue = [
78
49
  description: "Sourced from the id prop. Addresses a specific card."
79
50
  }
80
51
  }
81
- }, fe = {
52
+ }, ue = {
82
53
  full: "success",
83
54
  partial: "warning",
84
55
  credit: "info",
85
56
  proforma: "neutral",
86
57
  other: "neutral"
87
- }, ye = "EUR", ve = {
58
+ }, pe = "EUR", fe = {
88
59
  full: "Full payment",
89
60
  partial: "Partial payment",
90
61
  credit: "Credit note",
91
62
  proforma: "Proforma",
92
63
  other: "Other"
93
- }, be = {
64
+ }, he = {
94
65
  incoming: "Incoming",
95
66
  outgoing: "Outgoing"
96
- }, ge = G("ds:w-full ds:text-[color:var(--foreground)]", {
67
+ }, ye = K("ds:w-full ds:text-[color:var(--foreground)]", {
97
68
  variants: {
98
69
  surface: {
99
70
  flat: "",
@@ -102,7 +73,7 @@ const ue = [
102
73
  },
103
74
  defaultVariants: { surface: "elevated" }
104
75
  });
105
- function T(a, i, r) {
76
+ function w(a, i, r) {
106
77
  try {
107
78
  return new Intl.NumberFormat(r, {
108
79
  style: "currency",
@@ -112,7 +83,7 @@ function T(a, i, r) {
112
83
  return (a / 100).toFixed(2);
113
84
  }
114
85
  }
115
- function Ce(a, i) {
86
+ function ve(a, i) {
116
87
  const r = new Date(a);
117
88
  if (Number.isNaN(r.getTime())) return a;
118
89
  try {
@@ -125,10 +96,10 @@ function Ce(a, i) {
125
96
  return a;
126
97
  }
127
98
  }
128
- function Ne(a, i, r, p) {
99
+ function be(a, i, r, p) {
129
100
  return p ? "settled" : r != null && r > 0 ? "debt" : a === "proforma" && (i == null || i === 0) ? "to-invoice" : "settled";
130
101
  }
131
- const xe = M(
102
+ const ge = B(
132
103
  ({
133
104
  id: a,
134
105
  number: i,
@@ -136,24 +107,24 @@ const xe = M(
136
107
  type: p,
137
108
  direction: v,
138
109
  grossCents: n,
139
- paidCents: h,
110
+ paidCents: f,
140
111
  unpaidCents: m,
141
- writtenOff: D = !1,
112
+ writtenOff: q = !1,
142
113
  relations: l,
143
114
  lineItems: b,
144
- locale: q,
145
- currency: u = ye,
146
- surface: x = "elevated",
147
- "aria-label": L,
148
- className: f,
115
+ locale: L,
116
+ currency: u = pe,
117
+ surface: P = "elevated",
118
+ "aria-label": k,
119
+ className: h,
149
120
  ...S
150
- }, P) => {
151
- const { t, i18n: w } = K(), A = B(), o = q ?? w.language ?? "en", z = L ?? t("paymentCard.regionLabel", {
121
+ }, x) => {
122
+ const { t, i18n: A } = M(), R = G(), o = L ?? A.language ?? "en", E = k ?? t("paymentCard.regionLabel", {
152
123
  number: i,
153
124
  defaultValue: "Payment {{number}}"
154
- }), N = Ne(p, h, m, D), E = N === "debt" && m != null ? m : n ?? h ?? m ?? 0;
125
+ }), N = be(p, f, m, q), U = N === "debt" && m != null ? m : n ?? f ?? m ?? 0;
155
126
  W(
156
- he,
127
+ me,
157
128
  {
158
129
  getNumber: () => i,
159
130
  getState: () => N
@@ -161,33 +132,33 @@ const xe = M(
161
132
  a
162
133
  );
163
134
  const g = t(`paymentCard.type.${p}`, {
164
- defaultValue: ve[p]
165
- }), R = v === "incoming" ? /* @__PURE__ */ e(te, { "aria-hidden": "true" }) : /* @__PURE__ */ e(de, { "aria-hidden": "true" }), C = t(`paymentCard.direction.${v}`, {
166
- defaultValue: be[v]
135
+ defaultValue: fe[p]
136
+ }), T = v === "incoming" ? /* @__PURE__ */ e(ae, { "aria-hidden": "true" }) : /* @__PURE__ */ e(de, { "aria-hidden": "true" }), C = t(`paymentCard.direction.${v}`, {
137
+ defaultValue: he[v]
167
138
  }), y = [];
168
139
  y.push({
169
140
  key: "number",
170
- icon: /* @__PURE__ */ e(re, { "aria-hidden": "true" }),
141
+ icon: /* @__PURE__ */ e(te, { "aria-hidden": "true" }),
171
142
  label: t("paymentCard.label.number", "Number"),
172
143
  value: i
173
144
  }), r && y.push({
174
145
  key: "date",
175
- icon: /* @__PURE__ */ e(ne, { "aria-hidden": "true" }),
146
+ icon: /* @__PURE__ */ e(re, { "aria-hidden": "true" }),
176
147
  label: t("paymentCard.label.date", "Date"),
177
- value: Ce(r, o)
148
+ value: ve(r, o)
178
149
  }), y.push({
179
150
  key: "type",
180
- icon: /* @__PURE__ */ e(pe, { "aria-hidden": "true" }),
151
+ icon: /* @__PURE__ */ e(ne, { "aria-hidden": "true" }),
181
152
  label: t("paymentCard.label.type", "Type"),
182
- value: /* @__PURE__ */ e(O, { variant: fe[p], children: g })
153
+ value: /* @__PURE__ */ e(O, { variant: ue[p], children: g })
183
154
  }), y.push({
184
155
  key: "direction",
185
- icon: R,
156
+ icon: T,
186
157
  label: t("paymentCard.label.direction", "Direction"),
187
158
  value: C
188
159
  }), l != null && l.carePlanNumber && y.push({
189
160
  key: "carePlan",
190
- icon: /* @__PURE__ */ e(Q, { "aria-hidden": "true" }),
161
+ icon: /* @__PURE__ */ e(J, { "aria-hidden": "true" }),
191
162
  label: t("paymentCard.label.carePlan", "Care plan"),
192
163
  value: l.carePlanNumber
193
164
  }), l != null && l.patientName && y.push({
@@ -201,21 +172,21 @@ const xe = M(
201
172
  label: t("paymentCard.label.operator", "Operator"),
202
173
  value: l.operatorName
203
174
  });
204
- const U = I(
205
- () => n != null ? T(n, u, o) : void 0,
175
+ const V = z(
176
+ () => n != null ? w(n, u, o) : void 0,
206
177
  [n, u, o]
207
- ), _ = I(
208
- () => h != null ? T(h, u, o) : void 0,
209
- [h, u, o]
210
- ), V = I(
211
- () => m != null ? T(m, u, o) : void 0,
178
+ ), F = z(
179
+ () => f != null ? w(f, u, o) : void 0,
180
+ [f, u, o]
181
+ ), I = z(
182
+ () => m != null ? w(m, u, o) : void 0,
212
183
  [m, u, o]
213
- ), Z = U != null || _ != null || V != null, ee = !!b && b.length > 0, F = /* @__PURE__ */ c("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
184
+ ), X = V != null || F != null || I != null, Z = !!b && b.length > 0, _ = /* @__PURE__ */ c("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
214
185
  /* @__PURE__ */ c("div", { className: "ds:flex ds:items-start ds:gap-[var(--spacing-md)] ds:flex-wrap", children: [
215
186
  /* @__PURE__ */ e(
216
187
  "h3",
217
188
  {
218
- id: A,
189
+ id: R,
219
190
  className: "type-title-card ds:m-0 ds:text-[color:var(--foreground)]",
220
191
  children: t("paymentCard.heading", {
221
192
  number: i,
@@ -227,7 +198,7 @@ const xe = M(
227
198
  j,
228
199
  {
229
200
  state: N,
230
- amount: E / 100,
201
+ amount: U / 100,
231
202
  currency: u,
232
203
  locale: o,
233
204
  size: "lg"
@@ -243,21 +214,21 @@ const xe = M(
243
214
  },
244
215
  s.key
245
216
  )) }),
246
- Z ? /* @__PURE__ */ c(d, { layout: "inline", density: "compact", labelWidth: "fixed", children: [
247
- U != null ? /* @__PURE__ */ c(d.Row, { children: [
217
+ X ? /* @__PURE__ */ c(d, { layout: "inline", density: "compact", labelWidth: "fixed", children: [
218
+ V != null ? /* @__PURE__ */ c(d.Row, { children: [
248
219
  /* @__PURE__ */ e(d.Term, { children: t("paymentCard.label.gross", "Gross total") }),
249
- /* @__PURE__ */ e(d.Detail, { numeric: !0, children: U })
220
+ /* @__PURE__ */ e(d.Detail, { numeric: !0, children: V })
250
221
  ] }) : null,
251
- _ != null ? /* @__PURE__ */ c(d.Row, { children: [
222
+ F != null ? /* @__PURE__ */ c(d.Row, { children: [
252
223
  /* @__PURE__ */ e(d.Term, { children: t("paymentCard.label.paid", "Paid") }),
253
- /* @__PURE__ */ e(d.Detail, { numeric: !0, children: _ })
224
+ /* @__PURE__ */ e(d.Detail, { numeric: !0, children: F })
254
225
  ] }) : null,
255
- V != null ? /* @__PURE__ */ c(d.Row, { children: [
226
+ I != null ? /* @__PURE__ */ c(d.Row, { children: [
256
227
  /* @__PURE__ */ e(d.Term, { children: t("paymentCard.label.unpaid", "Outstanding") }),
257
- /* @__PURE__ */ e(d.Detail, { numeric: !0, children: V })
228
+ /* @__PURE__ */ e(d.Detail, { numeric: !0, children: I })
258
229
  ] }) : null
259
230
  ] }) : null,
260
- ee ? /* @__PURE__ */ c(
231
+ Z ? /* @__PURE__ */ c(
261
232
  "section",
262
233
  {
263
234
  "aria-label": t("paymentCard.lineItems.heading", "Line items"),
@@ -270,14 +241,14 @@ const xe = M(
270
241
  layout: "inline",
271
242
  density: "compact",
272
243
  labelWidth: "auto",
273
- children: b.map((s, ae) => /* @__PURE__ */ c(d.Row, { children: [
244
+ children: b.map((s, ee) => /* @__PURE__ */ c(d.Row, { children: [
274
245
  /* @__PURE__ */ e(d.Term, { children: s.vatPercentage != null ? t("paymentCard.lineItems.withVat", {
275
246
  description: s.description,
276
247
  vat: s.vatPercentage,
277
248
  defaultValue: "{{description}} (VAT {{vat}}%)"
278
249
  }) : s.description }),
279
- /* @__PURE__ */ e(d.Detail, { numeric: !0, children: T(s.amountCents, u, o) })
280
- ] }, `${s.description}-${ae}`))
250
+ /* @__PURE__ */ e(d.Detail, { numeric: !0, children: w(s.amountCents, u, o) })
251
+ ] }, `${s.description}-${ee}`))
281
252
  }
282
253
  )
283
254
  ]
@@ -287,25 +258,25 @@ const xe = M(
287
258
  return /* @__PURE__ */ e(
288
259
  "div",
289
260
  {
290
- ref: P,
261
+ ref: x,
291
262
  role: "region",
292
- "aria-label": z,
293
- "aria-labelledby": A,
263
+ "aria-label": E,
264
+ "aria-labelledby": R,
294
265
  "data-component": "payment-card",
295
266
  "data-component-id": a,
296
267
  "data-state": N,
297
268
  "data-type": p,
298
269
  "data-direction": v,
299
270
  id: a,
300
- className: ge({ surface: x, className: f }),
271
+ className: ye({ surface: P, className: h }),
301
272
  ...S,
302
- children: x === "elevated" ? /* @__PURE__ */ e(k, { variant: "elevated", children: /* @__PURE__ */ e(k.Body, { children: F }) }) : /* @__PURE__ */ e("div", { className: X({ surface: "flat" }), children: F })
273
+ children: P === "elevated" ? /* @__PURE__ */ e(D, { variant: "elevated", children: /* @__PURE__ */ e(D.Body, { children: _ }) }) : /* @__PURE__ */ e("div", { className: Q({ surface: "flat" }), children: _ })
303
274
  }
304
275
  );
305
276
  }
306
277
  );
307
- xe.displayName = "PaymentCard";
308
- const Pe = {
278
+ ge.displayName = "PaymentCard";
279
+ const Ce = {
309
280
  id: "payment-request-card",
310
281
  capabilities: [],
311
282
  state: {
@@ -329,21 +300,21 @@ const Pe = {
329
300
  description: "Sourced from the id prop. Addresses a specific request card."
330
301
  }
331
302
  }
332
- }, we = {
303
+ }, Ne = {
333
304
  new: "info",
334
305
  authorization_requested: "warning",
335
306
  authorized: "info",
336
307
  paid: "success",
337
308
  failed: "error",
338
309
  cancelled: "neutral"
339
- }, Ae = "EUR", Re = {
310
+ }, Pe = "EUR", xe = {
340
311
  new: "New",
341
312
  authorization_requested: "Authorization requested",
342
313
  authorized: "Authorized",
343
314
  paid: "Paid",
344
315
  failed: "Failed",
345
316
  cancelled: "Cancelled"
346
- }, Te = G("ds:w-full ds:text-[color:var(--foreground)]", {
317
+ }, Ae = K("ds:w-full ds:text-[color:var(--foreground)]", {
347
318
  variants: {
348
319
  surface: {
349
320
  flat: "",
@@ -352,7 +323,7 @@ const Pe = {
352
323
  },
353
324
  defaultVariants: { surface: "elevated" }
354
325
  });
355
- function ke(a, i) {
326
+ function Re(a, i) {
356
327
  const r = new Date(a);
357
328
  if (Number.isNaN(r.getTime())) return a;
358
329
  try {
@@ -365,7 +336,7 @@ function ke(a, i) {
365
336
  return a;
366
337
  }
367
338
  }
368
- const De = M(
339
+ const Te = B(
369
340
  ({
370
341
  id: a,
371
342
  title: i,
@@ -373,49 +344,49 @@ const De = M(
373
344
  amountCents: p,
374
345
  dueDateIso: v,
375
346
  status: n,
376
- paymentUrl: h,
347
+ paymentUrl: f,
377
348
  carePlanNumber: m,
378
- locale: D,
379
- currency: l = Ae,
349
+ locale: q,
350
+ currency: l = Pe,
380
351
  surface: b = "elevated",
381
- "aria-label": q,
352
+ "aria-label": L,
382
353
  className: u,
383
- ...x
384
- }, L) => {
385
- const { t: f, i18n: S } = K(), P = B(), t = D ?? S.language ?? "en", w = i ?? f("paymentRequestCard.heading", "Payment request"), A = q ?? w;
354
+ ...P
355
+ }, k) => {
356
+ const { t: h, i18n: S } = M(), x = G(), t = q ?? S.language ?? "en", A = i ?? h("paymentRequestCard.heading", "Payment request"), R = L ?? A;
386
357
  W(
387
- Pe,
358
+ Ce,
388
359
  { getStatus: () => n },
389
360
  a
390
361
  );
391
- const o = f(`paymentRequestCard.status.${n}`, {
392
- defaultValue: Re[n]
393
- }), z = n === "paid" ? "settled" : n === "failed" || n === "cancelled" ? "debt" : "to-invoice", E = (n === "new" || n === "authorization_requested" || n === "authorized") && !!h && ce(h), g = [];
362
+ const o = h(`paymentRequestCard.status.${n}`, {
363
+ defaultValue: xe[n]
364
+ }), E = n === "paid" ? "settled" : n === "failed" || n === "cancelled" ? "debt" : "to-invoice", U = (n === "new" || n === "authorization_requested" || n === "authorized") && !!f && ce(f), g = [];
394
365
  g.push({
395
366
  key: "status",
396
367
  icon: /* @__PURE__ */ e($, { "aria-hidden": "true" }),
397
- label: f("paymentRequestCard.label.status", "Status"),
398
- value: /* @__PURE__ */ e(O, { variant: we[n], children: o })
368
+ label: h("paymentRequestCard.label.status", "Status"),
369
+ value: /* @__PURE__ */ e(O, { variant: Ne[n], children: o })
399
370
  }), v && g.push({
400
371
  key: "dueDate",
401
372
  icon: /* @__PURE__ */ e(se, { "aria-hidden": "true" }),
402
- label: f("paymentRequestCard.label.dueDate", "Due date"),
403
- value: ke(v, t)
373
+ label: h("paymentRequestCard.label.dueDate", "Due date"),
374
+ value: Re(v, t)
404
375
  }), m && g.push({
405
376
  key: "carePlan",
406
- icon: /* @__PURE__ */ e(Q, { "aria-hidden": "true" }),
407
- label: f("paymentRequestCard.label.carePlan", "Care plan"),
377
+ icon: /* @__PURE__ */ e(J, { "aria-hidden": "true" }),
378
+ label: h("paymentRequestCard.label.carePlan", "Care plan"),
408
379
  value: m
409
380
  });
410
- const R = /* @__PURE__ */ c("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
381
+ const T = /* @__PURE__ */ c("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
411
382
  /* @__PURE__ */ c("div", { className: "ds:flex ds:items-start ds:gap-[var(--spacing-md)] ds:flex-wrap", children: [
412
383
  /* @__PURE__ */ c("div", { className: "ds:flex ds:min-w-0 ds:flex-col ds:gap-[var(--spacing-2xs)]", children: [
413
384
  /* @__PURE__ */ e(
414
385
  "h3",
415
386
  {
416
- id: P,
387
+ id: x,
417
388
  className: "type-title-card ds:m-0 ds:text-[color:var(--foreground)]",
418
- children: w
389
+ children: A
419
390
  }
420
391
  ),
421
392
  r ? /* @__PURE__ */ e("p", { className: "type-body-sm ds:m-0 ds:text-[color:var(--muted-foreground)]", children: r }) : null
@@ -423,7 +394,7 @@ const De = M(
423
394
  /* @__PURE__ */ e("span", { className: "ds:ms-auto ds:shrink-0", children: /* @__PURE__ */ e(
424
395
  j,
425
396
  {
426
- state: z,
397
+ state: E,
427
398
  amount: p / 100,
428
399
  currency: l,
429
400
  locale: t,
@@ -440,33 +411,31 @@ const De = M(
440
411
  },
441
412
  C.key
442
413
  )) }),
443
- E ? /* @__PURE__ */ e("div", { className: "ds:flex", children: /* @__PURE__ */ e(oe, { href: h, external: !0, startIcon: /* @__PURE__ */ e($, {}), children: f("paymentRequestCard.pay", "Pay now") }) }) : null
414
+ U ? /* @__PURE__ */ e("div", { className: "ds:flex", children: /* @__PURE__ */ e(oe, { href: f, external: !0, startIcon: /* @__PURE__ */ e($, {}), children: h("paymentRequestCard.pay", "Pay now") }) }) : null
444
415
  ] });
445
416
  return /* @__PURE__ */ e(
446
417
  "div",
447
418
  {
448
- ref: L,
419
+ ref: k,
449
420
  role: "region",
450
- "aria-label": A,
451
- "aria-labelledby": P,
421
+ "aria-label": R,
422
+ "aria-labelledby": x,
452
423
  "data-component": "payment-request-card",
453
424
  "data-component-id": a,
454
425
  "data-status": n,
455
426
  id: a,
456
- className: Te({ surface: b, className: u }),
457
- ...x,
458
- children: b === "elevated" ? /* @__PURE__ */ e(k, { variant: "elevated", children: /* @__PURE__ */ e(k.Body, { children: R }) }) : /* @__PURE__ */ e("div", { className: X({ surface: "flat" }), children: R })
427
+ className: Ae({ surface: b, className: u }),
428
+ ...P,
429
+ children: b === "elevated" ? /* @__PURE__ */ e(D, { variant: "elevated", children: /* @__PURE__ */ e(D.Body, { children: T }) }) : /* @__PURE__ */ e("div", { className: Q({ surface: "flat" }), children: T })
459
430
  }
460
431
  );
461
432
  }
462
433
  );
463
- De.displayName = "PaymentRequestCard";
434
+ Te.displayName = "PaymentRequestCard";
464
435
  export {
465
- $ as C,
466
- xe as P,
467
- pe as R,
468
- De as a,
469
- Pe as b,
470
- he as p
436
+ ge as P,
437
+ Te as a,
438
+ Ce as b,
439
+ me as p
471
440
  };
472
- //# sourceMappingURL=payment-request-card-CygO1anM.js.map
441
+ //# sourceMappingURL=payment-request-card-CN30J6yM.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payment-request-card-CN30J6yM.js","sources":["../../src/components/payment-card/payment-card.agent.ts","../../src/components/payment-card/payment-card.tsx","../../src/components/payment-card/payment-request-card.agent.ts","../../src/components/payment-card/payment-request-card.tsx"],"sourcesContent":["/* -------------------------------------------------------------------- */\n/* Agent adapter — PaymentCard. */\n/* */\n/* Read-only financial-record surface. Exposes the payment number */\n/* (identifier) and the resolved headline state (structural) — never */\n/* patient / operator names or any other PHI. No actions: the card is a */\n/* passive presentation surface. */\n/* -------------------------------------------------------------------- */\n\nimport type { AgentAdapter } from '../../agent/types';\nimport type { PaymentCardHandle } from './payment-card';\n\nexport const paymentCardAgent: AgentAdapter<PaymentCardHandle> = {\n id: 'payment-card',\n capabilities: [],\n state: {\n number: {\n type: 'string',\n descriptionKey: 'ui.agent.paymentCard.state.number',\n description: 'Payment number / reference currently rendered.',\n read: (handle) => handle.getNumber(),\n },\n state: {\n type: \"'debt' | 'to-invoice' | 'settled'\",\n descriptionKey: 'ui.agent.paymentCard.state.state',\n description:\n 'Resolved headline financial state. Structural state only — never patient identity.',\n read: (handle) => handle.getState(),\n },\n },\n actions: {},\n domHooks: {\n root: {\n attr: 'data-component',\n value: 'payment-card',\n description: 'Marks the PaymentCard root region.',\n },\n instanceId: {\n attr: 'data-component-id',\n sourceProp: 'id',\n description: 'Sourced from the id prop. Addresses a specific card.',\n },\n },\n};\n","import {\n forwardRef,\n useId,\n useMemo,\n type ComponentPropsWithoutRef,\n type ReactNode,\n} from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { useTranslation } from 'react-i18next';\nimport {\n ArrowDownLeft,\n ArrowUpRight,\n CalendarDays,\n FileText,\n Hash,\n ReceiptEuro,\n User,\n UserCog,\n} from 'lucide-react';\nimport { Badge } from '../badge/badge';\nimport { Card } from '../card/card';\nimport { DescriptionList } from '../description-list/description-list';\nimport { KeyValueList, KeyValuePair } from '../key-value-pair/key-value-pair';\nimport { TransactionChip } from '../transaction-chip/transaction-chip';\nimport { entitySurfaceVariants } from '../_shared/entity-card';\nimport { useAgentRegistration } from '../../agent/registry';\nimport { paymentCardAgent } from './payment-card.agent';\n\n/* -------------------------------------------------------------------- */\n/* PaymentCard */\n/* */\n/* Financial-record card for a single payment / receipt. Replaces the */\n/* hand-rolled \"Pagamento\" / payment-row cards that the platform's */\n/* care-plan and patient-ledger surfaces compose today. Composes */\n/* TransactionChip (the settled/debt/to-invoice headline) + KeyValueList */\n/* (number, date, type, direction, relations) + DescriptionList (line */\n/* items) + Badge (the payment type). */\n/* */\n/* The component owns the ORDER, ICONS, and LABELS; the consumer passes */\n/* the data. Every visible string flows through `useTranslation('ui')` */\n/* against the `paymentCard.*` namespace. The agent state slot exposes */\n/* identifiers + structural state only — never patient names. */\n/* -------------------------------------------------------------------- */\n\n/* -------------------------------------------------------------------- */\n/* Vocabulary */\n/* -------------------------------------------------------------------- */\n\n/** Payment type → translation-key segment + Badge variant. */\nexport type PaymentType = 'full' | 'partial' | 'credit' | 'proforma' | 'other';\n\nexport type PaymentDirection = 'incoming' | 'outgoing';\n\ntype BadgeVariant = NonNullable<\n ComponentPropsWithoutRef<typeof Badge>['variant']\n>;\n\nconst PAYMENT_TYPE_BADGE = {\n full: 'success',\n partial: 'warning',\n credit: 'info',\n proforma: 'neutral',\n other: 'neutral',\n} as const satisfies Record<PaymentType, BadgeVariant>;\n\nconst DEFAULT_CURRENCY = 'EUR';\n\n// Inline English fallbacks — belt-and-braces only. The canonical keys\n// live in the locale bundle (`ui.paymentCard.*`); these guard against a\n// stale / not-yet-wired bundle so the card never renders a raw key.\nconst TYPE_DEFAULTS: Record<PaymentType, string> = {\n full: 'Full payment',\n partial: 'Partial payment',\n credit: 'Credit note',\n proforma: 'Proforma',\n other: 'Other',\n};\n\nconst DIRECTION_DEFAULTS: Record<PaymentDirection, string> = {\n incoming: 'Incoming',\n outgoing: 'Outgoing',\n};\n\n/* -------------------------------------------------------------------- */\n/* CVA — root */\n/* -------------------------------------------------------------------- */\n\nconst rootVariants = cva('ds:w-full ds:text-[color:var(--foreground)]', {\n variants: {\n surface: {\n flat: '',\n elevated: '',\n },\n },\n defaultVariants: { surface: 'elevated' },\n});\n\n/* -------------------------------------------------------------------- */\n/* Public types */\n/* -------------------------------------------------------------------- */\n\nexport interface PaymentLineItem {\n /** Human-readable description of the line. */\n description: string;\n /** Amount in the smallest currency unit (cents / centesimi). */\n amountCents: number;\n /** Optional VAT percentage (e.g. `22` for 22%). */\n vatPercentage?: number;\n}\n\nexport interface PaymentCardRelations {\n /** Care-plan / treatment-plan number this payment belongs to. */\n carePlanNumber?: string;\n /** Patient display name — rendered, but never exposed to the agent. */\n patientName?: string;\n /** Operator display name — rendered, but never exposed to the agent. */\n operatorName?: string;\n}\n\nexport interface PaymentCardHandle {\n /** Stable payment number currently rendered. Identifier only — no PHI. */\n getNumber: () => string;\n /** Resolved headline financial state. Structural state only. */\n getState: () => TransactionStateValue;\n}\n\n/** The TransactionChip state this card resolves the payment to. */\ntype TransactionStateValue = 'debt' | 'to-invoice' | 'settled';\n\nexport interface PaymentCardProps extends Omit<\n ComponentPropsWithoutRef<'div'>,\n 'aria-label' | 'children'\n> {\n /** Agent-readiness consumer id, surfaced as `data-component-id`. */\n id?: string;\n /** Human-readable payment number / reference. Rendered as the heading. */\n number: string;\n /** ISO-8601 date string for the payment date. */\n dateIso?: string;\n /** Payment type — drives the type Badge + label. */\n type: PaymentType;\n /** Money flow direction — incoming (patient → practice) or outgoing. */\n direction: PaymentDirection;\n /** Gross total in the smallest currency unit (cents). */\n grossCents?: number;\n /** Amount already paid, in cents. */\n paidCents?: number;\n /** Amount still outstanding, in cents. */\n unpaidCents?: number;\n /** Marks the record as written-off — renders a neutral chip. */\n writtenOff?: boolean;\n /** Linked entities (care plan / patient / operator). */\n relations?: PaymentCardRelations;\n /** Itemised breakdown rendered as a DescriptionList. */\n lineItems?: PaymentLineItem[];\n /** BCP-47 locale override. Falls back to the active i18next language. */\n locale?: string;\n /** ISO-4217 currency code. Defaults to `EUR`. */\n currency?: string;\n\n /* ----- Styling ----- */\n\n /**\n * `'elevated'` (default) wraps in `<Card variant=\"elevated\">`. `'flat'`\n * drops the Card — use inside an existing card / sheet.\n */\n surface?: 'flat' | 'elevated';\n\n /* ----- a11y ----- */\n\n /** Override the default region aria-label. */\n 'aria-label'?: string;\n}\n\n/* -------------------------------------------------------------------- */\n/* Helpers */\n/* -------------------------------------------------------------------- */\n\n/** Format cents → currency string for the consumer's locale. */\nfunction formatMoney(cents: number, currency: string, locale: string): string {\n try {\n return new Intl.NumberFormat(locale, {\n style: 'currency',\n currency,\n }).format(cents / 100);\n } catch {\n return (cents / 100).toFixed(2);\n }\n}\n\n/** Format an ISO date for the consumer's locale, gracefully degrading. */\nfunction formatDate(iso: string, locale: string): string {\n const date = new Date(iso);\n if (Number.isNaN(date.getTime())) return iso;\n try {\n return new Intl.DateTimeFormat(locale, {\n year: 'numeric',\n month: 'short',\n day: 'numeric',\n }).format(date);\n } catch {\n return iso;\n }\n}\n\n/**\n * Resolve the headline TransactionChip state from the paid / unpaid /\n * written-off inputs. Written-off → settled chip; an outstanding balance\n * → debt; a proforma with nothing paid → to-invoice; otherwise settled.\n */\nfunction resolveState(\n type: PaymentType,\n paidCents: number | undefined,\n unpaidCents: number | undefined,\n writtenOff: boolean | undefined,\n): TransactionStateValue {\n if (writtenOff) return 'settled';\n if (unpaidCents != null && unpaidCents > 0) return 'debt';\n if (type === 'proforma' && (paidCents == null || paidCents === 0)) {\n return 'to-invoice';\n }\n return 'settled';\n}\n\n/* -------------------------------------------------------------------- */\n/* Component */\n/* -------------------------------------------------------------------- */\n\nexport const PaymentCard = forwardRef<HTMLDivElement, PaymentCardProps>(\n (\n {\n id,\n number,\n dateIso,\n type,\n direction,\n grossCents,\n paidCents,\n unpaidCents,\n writtenOff = false,\n relations,\n lineItems,\n locale,\n currency = DEFAULT_CURRENCY,\n surface = 'elevated',\n 'aria-label': ariaLabel,\n className,\n ...rest\n },\n ref,\n ) => {\n const { t, i18n } = useTranslation();\n const headingId = useId();\n const activeLocale = locale ?? i18n.language ?? 'en';\n\n const resolvedAriaLabel =\n ariaLabel ??\n t('paymentCard.regionLabel', {\n number,\n defaultValue: 'Payment {{number}}',\n });\n\n const state = resolveState(type, paidCents, unpaidCents, writtenOff);\n\n // The chip headline reflects the most informative figure: the\n // outstanding balance when there's a debt, otherwise the gross total.\n const chipAmountCents =\n state === 'debt' && unpaidCents != null\n ? unpaidCents\n : (grossCents ?? paidCents ?? unpaidCents ?? 0);\n\n useAgentRegistration(\n paymentCardAgent,\n {\n getNumber: () => number,\n getState: () => state,\n },\n id,\n );\n\n const typeLabel = t(`paymentCard.type.${type}`, {\n defaultValue: TYPE_DEFAULTS[type],\n });\n const directionIcon =\n direction === 'incoming' ? (\n <ArrowDownLeft aria-hidden=\"true\" />\n ) : (\n <ArrowUpRight aria-hidden=\"true\" />\n );\n const directionLabel = t(`paymentCard.direction.${direction}`, {\n defaultValue: DIRECTION_DEFAULTS[direction],\n });\n\n // Compose the metadata rows in display order. Omitting a field omits\n // the row — KeyValueList collapses the subgrid cleanly.\n const rows: Array<{\n key: string;\n icon: ReactNode;\n label: string;\n value: ReactNode;\n }> = [];\n\n rows.push({\n key: 'number',\n icon: <Hash aria-hidden=\"true\" />,\n label: t('paymentCard.label.number', 'Number'),\n value: number,\n });\n\n if (dateIso) {\n rows.push({\n key: 'date',\n icon: <CalendarDays aria-hidden=\"true\" />,\n label: t('paymentCard.label.date', 'Date'),\n value: formatDate(dateIso, activeLocale),\n });\n }\n\n rows.push({\n key: 'type',\n icon: <ReceiptEuro aria-hidden=\"true\" />,\n label: t('paymentCard.label.type', 'Type'),\n value: <Badge variant={PAYMENT_TYPE_BADGE[type]}>{typeLabel}</Badge>,\n });\n\n rows.push({\n key: 'direction',\n icon: directionIcon,\n label: t('paymentCard.label.direction', 'Direction'),\n value: directionLabel,\n });\n\n if (relations?.carePlanNumber) {\n rows.push({\n key: 'carePlan',\n icon: <FileText aria-hidden=\"true\" />,\n label: t('paymentCard.label.carePlan', 'Care plan'),\n value: relations.carePlanNumber,\n });\n }\n\n if (relations?.patientName) {\n rows.push({\n key: 'patient',\n icon: <User aria-hidden=\"true\" />,\n label: t('paymentCard.label.patient', 'Patient'),\n value: relations.patientName,\n });\n }\n\n if (relations?.operatorName) {\n rows.push({\n key: 'operator',\n icon: <UserCog aria-hidden=\"true\" />,\n label: t('paymentCard.label.operator', 'Operator'),\n value: relations.operatorName,\n });\n }\n\n const formattedGross = useMemo(\n () =>\n grossCents != null\n ? formatMoney(grossCents, currency, activeLocale)\n : undefined,\n [grossCents, currency, activeLocale],\n );\n const formattedPaid = useMemo(\n () =>\n paidCents != null\n ? formatMoney(paidCents, currency, activeLocale)\n : undefined,\n [paidCents, currency, activeLocale],\n );\n const formattedUnpaid = useMemo(\n () =>\n unpaidCents != null\n ? formatMoney(unpaidCents, currency, activeLocale)\n : undefined,\n [unpaidCents, currency, activeLocale],\n );\n\n const hasAmounts =\n formattedGross != null ||\n formattedPaid != null ||\n formattedUnpaid != null;\n\n const hasLineItems = !!lineItems && lineItems.length > 0;\n\n const inner = (\n <div className=\"ds:flex ds:flex-col ds:gap-[var(--spacing-md)]\">\n {/* Heading row — payment number + headline TransactionChip. */}\n <div className=\"ds:flex ds:items-start ds:gap-[var(--spacing-md)] ds:flex-wrap\">\n <h3\n id={headingId}\n className=\"type-title-card ds:m-0 ds:text-[color:var(--foreground)]\"\n >\n {t('paymentCard.heading', {\n number,\n defaultValue: 'Payment {{number}}',\n })}\n </h3>\n <span className=\"ds:ms-auto ds:shrink-0\">\n <TransactionChip\n state={state}\n amount={chipAmountCents / 100}\n currency={currency}\n locale={activeLocale}\n size=\"lg\"\n />\n </span>\n </div>\n\n {/* Metadata rows. */}\n <KeyValueList rowGap=\"sm\">\n {rows.map((row) => (\n <KeyValuePair\n key={row.key}\n icon={row.icon as React.ReactElement}\n label={row.label}\n value={row.value}\n />\n ))}\n </KeyValueList>\n\n {/* Amount summary — gross / paid / outstanding. */}\n {hasAmounts ? (\n <DescriptionList layout=\"inline\" density=\"compact\" labelWidth=\"fixed\">\n {formattedGross != null ? (\n <DescriptionList.Row>\n <DescriptionList.Term>\n {t('paymentCard.label.gross', 'Gross total')}\n </DescriptionList.Term>\n <DescriptionList.Detail numeric>\n {formattedGross}\n </DescriptionList.Detail>\n </DescriptionList.Row>\n ) : null}\n {formattedPaid != null ? (\n <DescriptionList.Row>\n <DescriptionList.Term>\n {t('paymentCard.label.paid', 'Paid')}\n </DescriptionList.Term>\n <DescriptionList.Detail numeric>\n {formattedPaid}\n </DescriptionList.Detail>\n </DescriptionList.Row>\n ) : null}\n {formattedUnpaid != null ? (\n <DescriptionList.Row>\n <DescriptionList.Term>\n {t('paymentCard.label.unpaid', 'Outstanding')}\n </DescriptionList.Term>\n <DescriptionList.Detail numeric>\n {formattedUnpaid}\n </DescriptionList.Detail>\n </DescriptionList.Row>\n ) : null}\n </DescriptionList>\n ) : null}\n\n {/* Line items. */}\n {hasLineItems ? (\n <section\n aria-label={t('paymentCard.lineItems.heading', 'Line items')}\n className=\"ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]\"\n >\n <h4 className=\"type-eyebrow ds:m-0 ds:text-[color:var(--muted-foreground)]\">\n {t('paymentCard.lineItems.heading', 'Line items')}\n </h4>\n <DescriptionList\n layout=\"inline\"\n density=\"compact\"\n labelWidth=\"auto\"\n >\n {lineItems!.map((item, index) => (\n <DescriptionList.Row key={`${item.description}-${index}`}>\n <DescriptionList.Term>\n {item.vatPercentage != null\n ? t('paymentCard.lineItems.withVat', {\n description: item.description,\n vat: item.vatPercentage,\n defaultValue: '{{description}} (VAT {{vat}}%)',\n })\n : item.description}\n </DescriptionList.Term>\n <DescriptionList.Detail numeric>\n {formatMoney(item.amountCents, currency, activeLocale)}\n </DescriptionList.Detail>\n </DescriptionList.Row>\n ))}\n </DescriptionList>\n </section>\n ) : null}\n </div>\n );\n\n return (\n <div\n ref={ref}\n role=\"region\"\n aria-label={resolvedAriaLabel}\n aria-labelledby={headingId}\n data-component=\"payment-card\"\n data-component-id={id}\n data-state={state}\n data-type={type}\n data-direction={direction}\n id={id}\n className={rootVariants({ surface, className })}\n {...rest}\n >\n {surface === 'elevated' ? (\n <Card variant=\"elevated\">\n <Card.Body>{inner}</Card.Body>\n </Card>\n ) : (\n <div className={entitySurfaceVariants({ surface: 'flat' })}>\n {inner}\n </div>\n )}\n </div>\n );\n },\n);\n\nPaymentCard.displayName = 'PaymentCard';\n\nexport type PaymentCardSurface = NonNullable<\n VariantProps<typeof rootVariants>['surface']\n>;\n","/* -------------------------------------------------------------------- */\n/* Agent adapter — PaymentRequestCard. */\n/* */\n/* Read-only payment-request surface. Exposes the lifecycle status */\n/* (structural state) only — never any patient identity or the hosted */\n/* payment URL. No actions: navigation to the pay link is a user-driven */\n/* affordance, not an agent operation. */\n/* -------------------------------------------------------------------- */\n\nimport type { AgentAdapter } from '../../agent/types';\nimport type { PaymentRequestCardHandle } from './payment-request-card';\n\nexport const paymentRequestCardAgent: AgentAdapter<PaymentRequestCardHandle> = {\n id: 'payment-request-card',\n capabilities: [],\n state: {\n status: {\n type: \"'new' | 'authorization_requested' | 'authorized' | 'paid' | 'failed' | 'cancelled'\",\n descriptionKey: 'ui.agent.paymentRequestCard.state.status',\n description:\n 'Current lifecycle status of the payment request. Structural state only.',\n read: (handle) => handle.getStatus(),\n },\n },\n actions: {},\n domHooks: {\n root: {\n attr: 'data-component',\n value: 'payment-request-card',\n description: 'Marks the PaymentRequestCard root region.',\n },\n instanceId: {\n attr: 'data-component-id',\n sourceProp: 'id',\n description:\n 'Sourced from the id prop. Addresses a specific request card.',\n },\n },\n};\n","import {\n forwardRef,\n useId,\n type ComponentPropsWithoutRef,\n type ReactNode,\n} from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { useTranslation } from 'react-i18next';\nimport { CalendarClock, CreditCard, FileText } from 'lucide-react';\nimport { Badge } from '../badge/badge';\nimport { Card } from '../card/card';\nimport { KeyValueList, KeyValuePair } from '../key-value-pair/key-value-pair';\nimport { Link } from '../link/link';\nimport { TransactionChip } from '../transaction-chip/transaction-chip';\nimport { entitySurfaceVariants, isSafeEntityUrl } from '../_shared/entity-card';\nimport { useAgentRegistration } from '../../agent/registry';\nimport { paymentRequestCardAgent } from './payment-request-card.agent';\n\n/* -------------------------------------------------------------------- */\n/* PaymentRequestCard */\n/* */\n/* Companion to PaymentCard: a card for an *outstanding* payment request */\n/* (a Stripe / online-payment ask) rather than a recorded payment. Shows */\n/* the amount as a TransactionChip, the lifecycle status as a Badge, and */\n/* — when a safe `paymentUrl` is supplied — a \"Pay now\" Link. */\n/* */\n/* Every visible string flows through `useTranslation('ui')` against the */\n/* `paymentRequestCard.*` namespace. The agent state exposes the request */\n/* status (structural state) and never any patient identity. */\n/* -------------------------------------------------------------------- */\n\n/* -------------------------------------------------------------------- */\n/* Vocabulary */\n/* -------------------------------------------------------------------- */\n\nexport type PaymentRequestStatus =\n | 'new'\n | 'authorization_requested'\n | 'authorized'\n | 'paid'\n | 'failed'\n | 'cancelled';\n\ntype BadgeVariant = NonNullable<\n ComponentPropsWithoutRef<typeof Badge>['variant']\n>;\n\nconst STATUS_BADGE = {\n new: 'info',\n authorization_requested: 'warning',\n authorized: 'info',\n paid: 'success',\n failed: 'error',\n cancelled: 'neutral',\n} as const satisfies Record<PaymentRequestStatus, BadgeVariant>;\n\nconst DEFAULT_CURRENCY = 'EUR';\n\n// Inline English fallbacks — belt-and-braces only. The canonical keys\n// live in the locale bundle (`ui.paymentRequestCard.*`); these guard\n// against a stale / not-yet-wired bundle so the card never shows a key.\nconst STATUS_DEFAULTS: Record<PaymentRequestStatus, string> = {\n new: 'New',\n authorization_requested: 'Authorization requested',\n authorized: 'Authorized',\n paid: 'Paid',\n failed: 'Failed',\n cancelled: 'Cancelled',\n};\n\n/* -------------------------------------------------------------------- */\n/* CVA — root */\n/* -------------------------------------------------------------------- */\n\nconst rootVariants = cva('ds:w-full ds:text-[color:var(--foreground)]', {\n variants: {\n surface: {\n flat: '',\n elevated: '',\n },\n },\n defaultVariants: { surface: 'elevated' },\n});\n\n/* -------------------------------------------------------------------- */\n/* Public types */\n/* -------------------------------------------------------------------- */\n\nexport interface PaymentRequestCardHandle {\n /** Current lifecycle status. Structural state only — no PHI. */\n getStatus: () => PaymentRequestStatus;\n}\n\nexport interface PaymentRequestCardProps extends Omit<\n ComponentPropsWithoutRef<'div'>,\n 'aria-label' | 'children' | 'title'\n> {\n /** Agent-readiness consumer id, surfaced as `data-component-id`. */\n id?: string;\n /** Heading for the request. Falls back to a localised default. */\n title?: string;\n /** Optional supporting copy rendered beneath the heading. */\n description?: string;\n /** Requested amount in the smallest currency unit (cents). */\n amountCents: number;\n /** ISO-8601 due date. */\n dueDateIso?: string;\n /** Lifecycle status — drives the status Badge and pay-link gating. */\n status: PaymentRequestStatus;\n /** Hosted payment URL. Only rendered when it passes the URL allow-list. */\n paymentUrl?: string;\n /** Care-plan / treatment-plan number this request relates to. */\n carePlanNumber?: string;\n /** BCP-47 locale override. Falls back to the active i18next language. */\n locale?: string;\n /** ISO-4217 currency code. Defaults to `EUR`. */\n currency?: string;\n\n /* ----- Styling ----- */\n\n /**\n * `'elevated'` (default) wraps in `<Card variant=\"elevated\">`. `'flat'`\n * drops the Card — use inside an existing card / sheet.\n */\n surface?: 'flat' | 'elevated';\n\n /* ----- a11y ----- */\n\n /** Override the default region aria-label. */\n 'aria-label'?: string;\n}\n\n/* -------------------------------------------------------------------- */\n/* Helpers */\n/* -------------------------------------------------------------------- */\n\nfunction formatDate(iso: string, locale: string): string {\n const date = new Date(iso);\n if (Number.isNaN(date.getTime())) return iso;\n try {\n return new Intl.DateTimeFormat(locale, {\n year: 'numeric',\n month: 'short',\n day: 'numeric',\n }).format(date);\n } catch {\n return iso;\n }\n}\n\n/* -------------------------------------------------------------------- */\n/* Component */\n/* -------------------------------------------------------------------- */\n\nexport const PaymentRequestCard = forwardRef<\n HTMLDivElement,\n PaymentRequestCardProps\n>(\n (\n {\n id,\n title,\n description,\n amountCents,\n dueDateIso,\n status,\n paymentUrl,\n carePlanNumber,\n locale,\n currency = DEFAULT_CURRENCY,\n surface = 'elevated',\n 'aria-label': ariaLabel,\n className,\n ...rest\n },\n ref,\n ) => {\n const { t, i18n } = useTranslation();\n const headingId = useId();\n const activeLocale = locale ?? i18n.language ?? 'en';\n\n const resolvedTitle =\n title ?? t('paymentRequestCard.heading', 'Payment request');\n const resolvedAriaLabel = ariaLabel ?? resolvedTitle;\n\n useAgentRegistration(\n paymentRequestCardAgent,\n { getStatus: () => status },\n id,\n );\n\n const statusLabel = t(`paymentRequestCard.status.${status}`, {\n defaultValue: STATUS_DEFAULTS[status],\n });\n\n // A paid request settles; an open one is \"to-invoice\" (awaiting money);\n // anything terminal-but-unpaid renders as a debt.\n const chipState: 'to-invoice' | 'settled' | 'debt' =\n status === 'paid'\n ? 'settled'\n : status === 'failed' || status === 'cancelled'\n ? 'debt'\n : 'to-invoice';\n\n // The pay link only renders when the request is still actionable AND\n // the URL passes the shared card-family allow-list (no javascript:,\n // data:, protocol-relative). Otherwise the affordance is suppressed.\n const isActionable =\n status === 'new' ||\n status === 'authorization_requested' ||\n status === 'authorized';\n const showPayLink =\n isActionable && !!paymentUrl && isSafeEntityUrl(paymentUrl);\n\n const rows: Array<{\n key: string;\n icon: ReactNode;\n label: string;\n value: ReactNode;\n }> = [];\n\n rows.push({\n key: 'status',\n icon: <CreditCard aria-hidden=\"true\" />,\n label: t('paymentRequestCard.label.status', 'Status'),\n value: <Badge variant={STATUS_BADGE[status]}>{statusLabel}</Badge>,\n });\n\n if (dueDateIso) {\n rows.push({\n key: 'dueDate',\n icon: <CalendarClock aria-hidden=\"true\" />,\n label: t('paymentRequestCard.label.dueDate', 'Due date'),\n value: formatDate(dueDateIso, activeLocale),\n });\n }\n\n if (carePlanNumber) {\n rows.push({\n key: 'carePlan',\n icon: <FileText aria-hidden=\"true\" />,\n label: t('paymentRequestCard.label.carePlan', 'Care plan'),\n value: carePlanNumber,\n });\n }\n\n const inner = (\n <div className=\"ds:flex ds:flex-col ds:gap-[var(--spacing-md)]\">\n {/* Heading row — title + amount TransactionChip. */}\n <div className=\"ds:flex ds:items-start ds:gap-[var(--spacing-md)] ds:flex-wrap\">\n <div className=\"ds:flex ds:min-w-0 ds:flex-col ds:gap-[var(--spacing-2xs)]\">\n <h3\n id={headingId}\n className=\"type-title-card ds:m-0 ds:text-[color:var(--foreground)]\"\n >\n {resolvedTitle}\n </h3>\n {description ? (\n <p className=\"type-body-sm ds:m-0 ds:text-[color:var(--muted-foreground)]\">\n {description}\n </p>\n ) : null}\n </div>\n <span className=\"ds:ms-auto ds:shrink-0\">\n <TransactionChip\n state={chipState}\n amount={amountCents / 100}\n currency={currency}\n locale={activeLocale}\n size=\"lg\"\n />\n </span>\n </div>\n\n {/* Metadata rows. */}\n <KeyValueList rowGap=\"sm\">\n {rows.map((row) => (\n <KeyValuePair\n key={row.key}\n icon={row.icon as React.ReactElement}\n label={row.label}\n value={row.value}\n />\n ))}\n </KeyValueList>\n\n {/* Pay affordance — only when actionable + the URL is safe. */}\n {showPayLink ? (\n <div className=\"ds:flex\">\n <Link href={paymentUrl!} external startIcon={<CreditCard />}>\n {t('paymentRequestCard.pay', 'Pay now')}\n </Link>\n </div>\n ) : null}\n </div>\n );\n\n return (\n <div\n ref={ref}\n role=\"region\"\n aria-label={resolvedAriaLabel}\n aria-labelledby={headingId}\n data-component=\"payment-request-card\"\n data-component-id={id}\n data-status={status}\n id={id}\n className={rootVariants({ surface, className })}\n {...rest}\n >\n {surface === 'elevated' ? (\n <Card variant=\"elevated\">\n <Card.Body>{inner}</Card.Body>\n </Card>\n ) : (\n <div className={entitySurfaceVariants({ surface: 'flat' })}>\n {inner}\n </div>\n )}\n </div>\n );\n },\n);\n\nPaymentRequestCard.displayName = 'PaymentRequestCard';\n\nexport type PaymentRequestCardSurface = NonNullable<\n VariantProps<typeof rootVariants>['surface']\n>;\n"],"names":["paymentCardAgent","handle","PAYMENT_TYPE_BADGE","DEFAULT_CURRENCY","TYPE_DEFAULTS","DIRECTION_DEFAULTS","rootVariants","cva","formatMoney","cents","currency","locale","formatDate","iso","date","resolveState","type","paidCents","unpaidCents","writtenOff","PaymentCard","forwardRef","id","number","dateIso","direction","grossCents","relations","lineItems","surface","ariaLabel","className","rest","ref","i18n","useTranslation","headingId","useId","activeLocale","resolvedAriaLabel","state","chipAmountCents","useAgentRegistration","typeLabel","directionIcon","jsx","ArrowDownLeft","ArrowUpRight","directionLabel","rows","Hash","CalendarDays","ReceiptEuro","Badge","FileText","User","UserCog","formattedGross","useMemo","formattedPaid","formattedUnpaid","hasAmounts","hasLineItems","inner","jsxs","TransactionChip","KeyValueList","row","KeyValuePair","DescriptionList","item","index","Card","entitySurfaceVariants","paymentRequestCardAgent","STATUS_BADGE","STATUS_DEFAULTS","PaymentRequestCard","title","description","amountCents","dueDateIso","status","paymentUrl","carePlanNumber","t","resolvedTitle","statusLabel","chipState","showPayLink","isSafeEntityUrl","CreditCard","CalendarClock","Link"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAYO,MAAMA,KAAoD;AAAA,EAC/D,IAAI;AAAA,EACJ,cAAc,CAAA;AAAA,EACd,OAAO;AAAA,IACL,QAAQ;AAAA,MACN,MAAM;AAAA,MACN,gBAAgB;AAAA,MAChB,aAAa;AAAA,MACb,MAAM,CAACC,MAAWA,EAAO,UAAA;AAAA,IAAU;AAAA,IAErC,OAAO;AAAA,MACL,MAAM;AAAA,MACN,gBAAgB;AAAA,MAChB,aACE;AAAA,MACF,MAAM,CAACA,MAAWA,EAAO,SAAA;AAAA,IAAS;AAAA,EACpC;AAAA,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A,EAAI;AAAA,UACX,OAAOA,EAAI;AAAA,QAAA;AAAA,QAHNA,EAAI;AAAA,MAAA,CAKZ,GACH;AAAA,MAGCsB,sBACE,OAAA,EAAI,WAAU,WACb,UAAA,gBAAA5C,EAACgD,IAAA,EAAK,MAAMV,GAAa,UAAQ,IAAC,WAAW,gBAAAtC,EAAC8C,KAAW,GACtD,UAAAN,EAAE,0BAA0B,SAAS,EAAA,CACxC,GACF,IACE;AAAA,IAAA,GACN;AAGF,WACE,gBAAAxC;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,KAAAZ;AAAA,QACA,MAAK;AAAA,QACL,cAAYM;AAAA,QACZ,mBAAiBH;AAAA,QACjB,kBAAe;AAAA,QACf,qBAAmBd;AAAA,QACnB,eAAa4D;AAAA,QACb,IAAA5D;AAAA,QACA,WAAWhB,GAAa,EAAE,SAAAuB,GAAS,WAAAE,GAAW;AAAA,QAC7C,GAAGC;AAAA,QAEH,UAAAH,MAAY,aACX,gBAAAgB,EAAC2B,GAAA,EAAK,SAAQ,YACZ,UAAA,gBAAA3B,EAAC2B,EAAK,MAAL,EAAW,UAAAT,EAAA,CAAM,GACpB,IAEA,gBAAAlB,EAAC,SAAI,WAAW4B,EAAsB,EAAE,SAAS,OAAA,CAAQ,GACtD,UAAAV,EAAA,CACH;AAAA,MAAA;AAAA,IAAA;AAAA,EAIR;AACF;AAEAc,GAAmB,cAAc;"}
@@ -6,7 +6,7 @@ import { useTranslation as me } from "react-i18next";
6
6
  import * as re from "@radix-ui/react-popover";
7
7
  import De from "pdfjs-dist/legacy/build/pdf.worker.min.mjs?url";
8
8
  import { S as _e } from "./spinner-hbwuKwMf.js";
9
- import { A as ke } from "./alert-Cxaqd-QO.js";
9
+ import { A as ke } from "./alert-DS22ha1n.js";
10
10
  import { u as qe } from "./registry-DvAUVLHh.js";
11
11
  import { X as Be } from "./x-B5YnXwCz.js";
12
12
  import { C as He } from "./chevron-left-B8cOyH-V.js";
@@ -1002,4 +1002,4 @@ export {
1002
1002
  nt as P,
1003
1003
  $e as p
1004
1004
  };
1005
- //# sourceMappingURL=pdf-viewer-CcOuR2wj.js.map
1005
+ //# sourceMappingURL=pdf-viewer-DHg8SfUI.js.map