@alfadocs/ui-kit 1.114.0 → 1.115.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 (290) hide show
  1. package/dist/_chunks/{actions-cell-renderer-BVn3vDTg.js → actions-cell-renderer-bI27uXXC.js} +2 -2
  2. package/dist/_chunks/{ai-permission-notice-BkgcGmu8.js → ai-permission-notice-C-xR2_iS.js} +2 -2
  3. package/dist/_chunks/{alia-sidebar-CKkg3gc8.js → alia-sidebar-BBxbMRmX.js} +2 -2
  4. package/dist/_chunks/{anamnesis-summary-rows-DaS-j8Jd.js → anamnesis-summary-rows-BZ36ULQk.js} +4 -4
  5. package/dist/_chunks/{antenatal-schedule-timeline-DmlXxevC.js → antenatal-schedule-timeline-va9zx7tJ.js} +11 -11
  6. package/dist/_chunks/{appointment-card-FKOnH1uJ.js → appointment-card-D_-aBrx5.js} +2 -2
  7. package/dist/_chunks/{appointment-timeline-eOi-y8m3.js → appointment-timeline-DxLu3afn.js} +3 -3
  8. package/dist/_chunks/{appointment-tray-C6oBvsG5.js → appointment-tray-BhXOJpIJ.js} +2 -2
  9. package/dist/_chunks/{ar-C4YQVTH6.js → ar-BFvUBJ_g.js} +10 -10
  10. package/dist/_chunks/{balance-badge-cell-BAZynD--.js → balance-badge-cell-CXHihM22.js} +28 -27
  11. package/dist/_chunks/buildMatchPatternFn-jbaE1-W0.js +68 -0
  12. package/dist/_chunks/{calendar-appointment-editor-dialog-iyh9QqNw.js → calendar-appointment-editor-dialog-BVzFi4hH.js} +519 -531
  13. package/dist/_chunks/{care-plan-card-DMjlYlFc.js → care-plan-card-BA3MfdfZ.js} +2 -2
  14. package/dist/_chunks/{care-plan-entry-card-3hguBW45.js → care-plan-entry-card-CUtFZ813.js} +2 -2
  15. package/dist/_chunks/{chart-bddVIElM.js → chart-DebrFZ6L.js} +2 -2
  16. package/dist/_chunks/{chat-container-baxzy8k8.js → chat-container-B83b4hut.js} +2 -2
  17. package/dist/_chunks/checkbox-DV4sNDeB.js +282 -0
  18. package/dist/_chunks/{checkbox-group-eGdv9fZc.js → checkbox-group-EfinQS1h.js} +2 -2
  19. package/dist/_chunks/chevrons-up-down-CgiVAHb7.js +15 -0
  20. package/dist/_chunks/compact-editor-fields-cP6yh7xv.js +21 -0
  21. package/dist/_chunks/{cycle-calculator-Dd-XbKmZ.js → cycle-calculator-C68V9rdH.js} +5 -5
  22. package/dist/_chunks/data-grid-tabs-CsLbIv0h.js +365 -0
  23. package/dist/_chunks/data-table-DXaE2Ret.js +1693 -0
  24. package/dist/_chunks/data-table-tabs-NYLhD8_Z.js +242 -0
  25. package/dist/_chunks/date-locale-OG-MupVD.js +83 -0
  26. package/dist/_chunks/{date-picker-CdhXlgVI.js → date-picker-DBVTj6lO.js} +21 -20
  27. package/dist/_chunks/{date-picker-variants-Dt6UbonG.js → date-picker-variants-J1EeAhIH.js} +601 -678
  28. package/dist/_chunks/date-range-panel-CBFfkgmz.js +62 -0
  29. package/dist/_chunks/{date-range-picker-DCADIR8o.js → date-range-picker-PTRpDkXT.js} +72 -70
  30. package/dist/_chunks/{date-time-picker-CT2bC7-A.js → date-time-picker-CJnqiQoT.js} +22 -21
  31. package/dist/_chunks/{de-B1B3PIgY.js → de-i9wbjGPc.js} +2 -2
  32. package/dist/_chunks/{due-date-calculator-Dl6SyMHO.js → due-date-calculator-C1UA5jpS.js} +6 -6
  33. package/dist/_chunks/{editable-currency-cell-renderer-BUdFMh67.js → editable-currency-cell-renderer-CtlMhLai.js} +3 -3
  34. package/dist/_chunks/{el-iLqGpapg.js → el-Cm-rWthb.js} +20 -20
  35. package/dist/_chunks/{en-GB-CxPRQbD6.js → en-GB-BHn82gW8.js} +11 -10
  36. package/dist/_chunks/en-US-C4QKhzhA.js +46 -0
  37. package/dist/_chunks/{es-Bg1oqwDs.js → es-B_6Z19UA.js} +4 -4
  38. package/dist/_chunks/{face-scheme-DlcQaQVR.js → face-scheme-DkoxiDCh.js} +2 -2
  39. package/dist/_chunks/{file-manager-LG7B_UHB.js → file-manager-DFFExyym.js} +4 -4
  40. package/dist/_chunks/format-ql5WTsYT.js +846 -0
  41. package/dist/_chunks/{fr-DpGxyOGI.js → fr-gTba51QO.js} +7 -7
  42. package/dist/_chunks/funnel-DpPV3Qkd.js +20 -0
  43. package/dist/_chunks/{gestational-age-calculator-DmzYdW5e.js → gestational-age-calculator-60y1RyQL.js} +7 -7
  44. package/dist/_chunks/grid-context-AwsLJRhH.js +46 -0
  45. package/dist/_chunks/{hcg-doubling-Tr72PetS.js → hcg-doubling-CC-dbKE8.js} +6 -5
  46. package/dist/_chunks/{heatmap-CNxCDl0D.js → heatmap-eXdtmEoU.js} +4 -4
  47. package/dist/_chunks/{hi-3Dtsksrw.js → hi-BIHq9ncx.js} +10 -10
  48. package/dist/_chunks/icon-button-group-C9mPK-bX.js +442 -0
  49. package/dist/_chunks/{index-CJE9uQmb.js → index-Bze5jCG_.js} +2 -1
  50. package/dist/_chunks/{isSameWeek-DyVftHWi.js → isSameWeek-CZOtDcsd.js} +2 -2
  51. package/dist/_chunks/{it-Cp0CA13d.js → it-DaCPWJ9Y.js} +11 -11
  52. package/dist/_chunks/{ja-9FOyR1lb.js → ja-BRCpkD95.js} +26 -26
  53. package/dist/_chunks/{kit-extensions-DZJRmDI6.js → kit-extensions-CzG0RmhQ.js} +4 -4
  54. package/dist/_chunks/link-cell-renderer-Ditt5mvT.js +800 -0
  55. package/dist/_chunks/{login-dev-card-D7orCfJT.js → login-dev-card-CPndtWdz.js} +2 -2
  56. package/dist/_chunks/{marketplace-app-shell-CPNVBVLH.js → marketplace-app-shell-CcEHJgDd.js} +2 -2
  57. package/dist/_chunks/match-BATShpSX.js +336 -0
  58. package/dist/_chunks/{nl-sfx-zJgR.js → nl-5tAwYo00.js} +6 -6
  59. package/dist/_chunks/normalizeDates-BBNNIR-v.js +36 -0
  60. package/dist/_chunks/{notes-panel-DXMTObBv.js → notes-panel-BVYG_MJE.js} +2 -2
  61. package/dist/_chunks/{parse-B0s7bY4d.js → parse-BLBWPIgE.js} +63 -61
  62. package/dist/_chunks/{parseISO-DZZ5a-zK.js → parseISO-Dl4T9peU.js} +2 -2
  63. package/dist/_chunks/parts-Wz2LeGnH.js +1113 -0
  64. package/dist/_chunks/{patient-details-DdtXBNjt.js → patient-details-DlT-vpSe.js} +2 -2
  65. package/dist/_chunks/{patient-field-row-D9rb-QJH.js → patient-field-row-B54uzvu-.js} +3 -3
  66. package/dist/_chunks/{patient-summary-card-CGHz-Bvm.js → patient-summary-card-Dy9-CzON.js} +3 -3
  67. package/dist/_chunks/{periodontal-diagnosis-xheWfi4g.js → periodontal-diagnosis-DnZuZD14.js} +2 -2
  68. package/dist/_chunks/{permission-matrix-BJ6sg3Zp.js → permission-matrix-BXmhICzN.js} +3 -3
  69. package/dist/_chunks/{pl-BLh7KO-s.js → pl-mLYbfByR.js} +7 -7
  70. package/dist/_chunks/{pregnancy-dating-BvorzHrd.js → pregnancy-dating-qZpw3zj8.js} +7 -7
  71. package/dist/_chunks/privacy-mask-BlJK51MD.js +78 -0
  72. package/dist/_chunks/privacy-mask-text-B8YfzB7L.js +7 -0
  73. package/dist/_chunks/{pt-CPKOrOLj.js → pt-CgaqtlD9.js} +6 -6
  74. package/dist/_chunks/{radiograph-panel.agent-CXah49KM.js → radiograph-panel.agent-C1LGeX-G.js} +3 -3
  75. package/dist/_chunks/{registration-form-Lw9T7IXr.js → registration-form-DW-0X7S4.js} +2 -2
  76. package/dist/_chunks/{reserved.agent-D2jwJPac.js → reserved.agent-6p3Hm4oH.js} +9 -9
  77. package/dist/_chunks/{rich-text-editor-BLS2cK-u.js → rich-text-editor-efaMWbYz.js} +3 -3
  78. package/dist/_chunks/{ro-Dc-oNqbF.js → ro-CpDg1-8v.js} +2 -2
  79. package/dist/_chunks/{ru-BtNpDZRR.js → ru-B7VMyjud.js} +9 -9
  80. package/dist/_chunks/saved-view-tabs-DLWm88Eq.js +932 -0
  81. package/dist/_chunks/{send-registration-link-form-DfbTjrEK.js → send-registration-link-form-DWxWa_cJ.js} +5 -5
  82. package/dist/_chunks/{sidebar-2VsPlNkZ.js → sidebar-D5DFYN5K.js} +326 -335
  83. package/dist/_chunks/{slot-grid-BhjaLJ0o.js → slot-grid-b4eZXokb.js} +3 -3
  84. package/dist/_chunks/{sq-D4c7olaV.js → sq-B0Ree_9P.js} +2 -2
  85. package/dist/_chunks/subDays-Bsoy023P.js +8 -0
  86. package/dist/_chunks/{sv-Bf_dHPvh.js → sv-D9fP66O7.js} +4 -4
  87. package/dist/_chunks/{tag-DOZGz0fT.js → tag-BNlcEJfE.js} +70 -67
  88. package/dist/_chunks/{task-card-DqVoitRk.js → task-card-BNbkwIYM.js} +2 -2
  89. package/dist/_chunks/{task-editor-D--LwVrg.js → task-editor-CSa6vQ9r.js} +377 -391
  90. package/dist/_chunks/{task-tray-C6j8HVMv.js → task-tray-Bmi9wCHq.js} +2 -2
  91. package/dist/_chunks/{tasks-panel-D6PuF4MQ.js → tasks-panel-CVjY1d7Q.js} +2 -2
  92. package/dist/_chunks/{theme-toggle-Czq3K9jB.js → theme-toggle-CObX2Ffa.js} +2 -2
  93. package/dist/_chunks/toolbar-Bc3pjfG5.js +9907 -0
  94. package/dist/_chunks/{tr-xqQ6cbGY.js → tr-Bcz5LCHZ.js} +2 -2
  95. package/dist/_chunks/{transcript-panel-A781Pkzr.js → transcript-panel-Wr8e4Zgi.js} +2 -2
  96. package/dist/_chunks/{treatment-receipt-pFqWFyD_.js → treatment-receipt-BydbojdD.js} +2 -2
  97. package/dist/_chunks/{use-appointment-details-read-BK_Gw1GG.js → use-appointment-details-read-BMAiQYo6.js} +4 -4
  98. package/dist/_chunks/{voice-control-panel-BGiX4sqB.js → voice-control-panel-Be_c0CQ0.js} +2 -2
  99. package/dist/_chunks/{workflow-webhook-action-CtBn5JvO.js → workflow-webhook-action-DNSe65yd.js} +2 -2
  100. package/dist/_chunks/{zh-CN-C657DBCO.js → zh-CN-B7Ek17US.js} +11 -11
  101. package/dist/agent-catalog.json +717 -6
  102. package/dist/agent-i18n/en.json +50 -2
  103. package/dist/components/_shared/privacy-mask-text.d.ts +4 -0
  104. package/dist/components/_shared/privacy-mask.d.ts +2 -4
  105. package/dist/components/_shared/saved-view-tabs/saved-tab.d.ts +54 -0
  106. package/dist/components/_shared/saved-view-tabs/saved-view-tabs.d.ts +93 -0
  107. package/dist/components/_shared/saved-view-tabs/use-saved-view-tabs.d.ts +59 -0
  108. package/dist/components/_shared/saved-view-tabs/view-adapter.d.ts +69 -0
  109. package/dist/components/_shared/table-filters/calendar-day.d.ts +27 -0
  110. package/dist/components/_shared/table-filters/predicates.d.ts +56 -0
  111. package/dist/components/_shared/table-toolbar/context.d.ts +28 -0
  112. package/dist/components/_shared/table-toolbar/describe-filter.d.ts +42 -0
  113. package/dist/components/_shared/table-toolbar/export-files.d.ts +47 -0
  114. package/dist/components/{data-table/xlsx-export.d.ts → _shared/table-toolbar/export-xlsx.d.ts} +2 -2
  115. package/dist/components/_shared/table-toolbar/parts.d.ts +125 -0
  116. package/dist/components/_shared/table-toolbar/seam.d.ts +261 -0
  117. package/dist/components/ai-permission-notice/index.js +1 -1
  118. package/dist/components/appointment-card/index.js +2 -2
  119. package/dist/components/appointment-details-panel/index.js +1 -1
  120. package/dist/components/appointment-timeline/index.js +1 -1
  121. package/dist/components/booking/index.js +1 -1
  122. package/dist/components/care-plan-card/index.js +1 -1
  123. package/dist/components/care-plan-entry-card/index.js +1 -1
  124. package/dist/components/chart/index.js +1 -1
  125. package/dist/components/chat-container/index.js +1 -1
  126. package/dist/components/checkbox/checkbox.d.ts +66 -6
  127. package/dist/components/checkbox/index.js +1 -1
  128. package/dist/components/checkbox-group/index.js +1 -1
  129. package/dist/components/cycle-calculator/index.js +1 -1
  130. package/dist/components/data-grid/announcer.d.ts +27 -0
  131. package/dist/components/data-grid/body.d.ts +95 -0
  132. package/dist/components/data-grid/columns.d.ts +96 -0
  133. package/dist/components/data-grid/data-grid.agent.d.ts +2 -1
  134. package/dist/components/data-grid/data-grid.d.ts +11 -27
  135. package/dist/components/data-grid/data-grid.variants.d.ts +118 -0
  136. package/dist/components/data-grid/editors.d.ts +8 -0
  137. package/dist/components/data-grid/export-snapshot.d.ts +3 -0
  138. package/dist/components/data-grid/features.d.ts +56 -0
  139. package/dist/components/data-grid/filter-fns.d.ts +23 -0
  140. package/dist/components/data-grid/filters/date-range-panel.d.ts +8 -0
  141. package/dist/components/data-grid/filters/filter-panels.d.ts +27 -0
  142. package/dist/components/data-grid/filters/filter-trigger.d.ts +7 -0
  143. package/dist/components/data-grid/footer.d.ts +10 -0
  144. package/dist/components/data-grid/grid-context.d.ts +18 -0
  145. package/dist/components/data-grid/handle.d.ts +60 -0
  146. package/dist/components/data-grid/header.d.ts +12 -0
  147. package/dist/components/data-grid/index.d.ts +3 -0
  148. package/dist/components/data-grid/index.js +10 -3
  149. package/dist/components/data-grid/keyboard.d.ts +76 -0
  150. package/dist/components/data-grid/pager.d.ts +18 -0
  151. package/dist/components/data-grid/persistence.d.ts +60 -0
  152. package/dist/components/data-grid/print.d.ts +10 -0
  153. package/dist/components/data-grid/responsive.d.ts +36 -0
  154. package/dist/components/data-grid/selection.d.ts +58 -0
  155. package/dist/components/data-grid/state.d.ts +119 -0
  156. package/dist/components/data-grid/states.d.ts +34 -0
  157. package/dist/components/data-grid/toolbar-seam.d.ts +7 -0
  158. package/dist/components/data-grid/toolbar.d.ts +41 -0
  159. package/dist/components/data-grid/types.d.ts +1346 -0
  160. package/dist/components/data-grid/use-data-grid-engine.d.ts +9 -0
  161. package/dist/components/data-grid/virtual-rows.d.ts +43 -0
  162. package/dist/components/data-grid-tabs/data-grid-tabs.agent.d.ts +9 -0
  163. package/dist/components/data-grid-tabs/data-grid-tabs.d.ts +4 -0
  164. package/dist/components/data-grid-tabs/grid-view-adapter.d.ts +15 -0
  165. package/dist/components/data-grid-tabs/index.d.ts +5 -0
  166. package/dist/components/data-grid-tabs/index.js +8 -0
  167. package/dist/components/data-grid-tabs/types.d.ts +220 -0
  168. package/dist/components/data-table/ag-toolbar-seam.d.ts +35 -0
  169. package/dist/components/data-table/calendar-day.d.ts +4 -21
  170. package/dist/components/data-table/data-table.d.ts +10 -6
  171. package/dist/components/data-table/filters/date-range-filter.d.ts +5 -9
  172. package/dist/components/data-table/filters/filter-kind.d.ts +6 -0
  173. package/dist/components/data-table/filters/number-filter.d.ts +6 -10
  174. package/dist/components/data-table/filters/select-filter.d.ts +2 -4
  175. package/dist/components/data-table/filters/text-filter.d.ts +2 -5
  176. package/dist/components/data-table/index.js +4 -4
  177. package/dist/components/data-table/toolbar.d.ts +25 -21
  178. package/dist/components/data-table-tabs/ag-view-adapter.d.ts +17 -0
  179. package/dist/components/data-table-tabs/data-table-tabs.d.ts +34 -33
  180. package/dist/components/data-table-tabs/index.js +1 -1
  181. package/dist/components/data-table-tabs/use-data-table-filter-tabs.d.ts +11 -66
  182. package/dist/components/date-picker/index.js +1 -1
  183. package/dist/components/date-range-picker/index.js +1 -1
  184. package/dist/components/date-time-picker/index.js +1 -1
  185. package/dist/components/due-date-calculator/index.js +2 -2
  186. package/dist/components/face-scheme/index.js +1 -1
  187. package/dist/components/file-manager/index.js +1 -1
  188. package/dist/components/gestational-age-calculator/index.js +1 -1
  189. package/dist/components/hcg-doubling/index.js +1 -1
  190. package/dist/components/heatmap/index.js +1 -1
  191. package/dist/components/icon-button-group/icon-button-group.d.ts +19 -1
  192. package/dist/components/icon-button-group/index.d.ts +1 -1
  193. package/dist/components/icon-button-group/index.js +1 -1
  194. package/dist/components/index.d.ts +1 -0
  195. package/dist/components/notes-panel/index.js +1 -1
  196. package/dist/components/patient-details/index.js +1 -1
  197. package/dist/components/patient-summary-card/index.js +1 -1
  198. package/dist/components/patient-table/index.js +1 -1
  199. package/dist/components/periodontal-diagnosis/index.js +1 -1
  200. package/dist/components/permission-matrix/index.js +1 -1
  201. package/dist/components/pregnancy-dating/index.js +1 -1
  202. package/dist/components/radiograph-panel/index.js +1 -1
  203. package/dist/components/rich-text-editor/index.js +2 -2
  204. package/dist/components/sidebar/index.js +1 -1
  205. package/dist/components/slot-grid/index.js +1 -1
  206. package/dist/components/tag/index.js +1 -1
  207. package/dist/components/task-card/index.js +1 -1
  208. package/dist/components/task-editor/index.js +1 -1
  209. package/dist/components/task-tray/index.js +1 -1
  210. package/dist/components/tasks-panel/index.js +1 -1
  211. package/dist/components/theme-toggle/index.js +1 -1
  212. package/dist/components/transcript-panel/index.js +1 -1
  213. package/dist/components/treatment-receipt/index.js +1 -1
  214. package/dist/components/voice-control-panel/index.js +1 -1
  215. package/dist/core.css +1 -1
  216. package/dist/host-compat.css +33 -2
  217. package/dist/i18n/locales/ar.d.ts +94 -0
  218. package/dist/i18n/locales/ar.js +96 -2
  219. package/dist/i18n/locales/de.d.ts +94 -0
  220. package/dist/i18n/locales/de.js +96 -2
  221. package/dist/i18n/locales/el.d.ts +94 -0
  222. package/dist/i18n/locales/el.js +96 -2
  223. package/dist/i18n/locales/en.d.ts +94 -0
  224. package/dist/i18n/locales/en.js +97 -2
  225. package/dist/i18n/locales/es.d.ts +94 -0
  226. package/dist/i18n/locales/es.js +96 -2
  227. package/dist/i18n/locales/fr.d.ts +94 -0
  228. package/dist/i18n/locales/fr.js +96 -2
  229. package/dist/i18n/locales/hi.d.ts +94 -0
  230. package/dist/i18n/locales/hi.js +96 -2
  231. package/dist/i18n/locales/it.d.ts +94 -0
  232. package/dist/i18n/locales/it.js +96 -2
  233. package/dist/i18n/locales/ja.d.ts +94 -0
  234. package/dist/i18n/locales/ja.js +96 -2
  235. package/dist/i18n/locales/nl.d.ts +94 -0
  236. package/dist/i18n/locales/nl.js +96 -2
  237. package/dist/i18n/locales/pl.d.ts +94 -0
  238. package/dist/i18n/locales/pl.js +96 -2
  239. package/dist/i18n/locales/pt.d.ts +94 -0
  240. package/dist/i18n/locales/pt.js +96 -2
  241. package/dist/i18n/locales/ro.d.ts +94 -0
  242. package/dist/i18n/locales/ro.js +96 -2
  243. package/dist/i18n/locales/ru.d.ts +94 -0
  244. package/dist/i18n/locales/ru.js +96 -2
  245. package/dist/i18n/locales/sq.d.ts +94 -0
  246. package/dist/i18n/locales/sq.js +96 -2
  247. package/dist/i18n/locales/sv.d.ts +94 -0
  248. package/dist/i18n/locales/sv.js +96 -2
  249. package/dist/i18n/locales/tr.d.ts +94 -0
  250. package/dist/i18n/locales/tr.js +96 -2
  251. package/dist/i18n/locales/zh.d.ts +94 -0
  252. package/dist/i18n/locales/zh.js +96 -2
  253. package/dist/index.js +1044 -1032
  254. package/dist/locales/ar.json +96 -2
  255. package/dist/locales/de.json +96 -2
  256. package/dist/locales/el.json +96 -2
  257. package/dist/locales/en.json +96 -2
  258. package/dist/locales/es.json +96 -2
  259. package/dist/locales/fr.json +96 -2
  260. package/dist/locales/hi.json +96 -2
  261. package/dist/locales/it.json +96 -2
  262. package/dist/locales/ja.json +96 -2
  263. package/dist/locales/nl.json +96 -2
  264. package/dist/locales/pl.json +96 -2
  265. package/dist/locales/pt.json +96 -2
  266. package/dist/locales/ro.json +96 -2
  267. package/dist/locales/ru.json +96 -2
  268. package/dist/locales/sq.json +96 -2
  269. package/dist/locales/sv.json +96 -2
  270. package/dist/locales/tr.json +96 -2
  271. package/dist/locales/zh.json +96 -2
  272. package/dist/patterns/alia-assistant/index.js +1 -1
  273. package/dist/patterns/anamnesis/index.js +1 -1
  274. package/dist/patterns/calendar/index.js +1 -1
  275. package/dist/patterns/login-form/index.js +1 -1
  276. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  277. package/dist/patterns/registration-form/index.js +1 -1
  278. package/dist/patterns/send-registration-link-form/index.js +1 -1
  279. package/dist/patterns/workflow-webhook-action/index.js +1 -1
  280. package/dist/tokens.css +1 -1
  281. package/package.json +5 -1
  282. package/dist/_chunks/checkbox-a7Sh-dXb.js +0 -227
  283. package/dist/_chunks/data-grid.agent-CASyEAnb.js +0 -1773
  284. package/dist/_chunks/data-table-C9idMvs0.js +0 -2042
  285. package/dist/_chunks/data-table-tabs-Db7zToFD.js +0 -728
  286. package/dist/_chunks/format--x5jypvH.js +0 -1319
  287. package/dist/_chunks/icon-button-group-mXvYDaba.js +0 -427
  288. package/dist/_chunks/link-cell-renderer-_Fv3WEmb.js +0 -867
  289. package/dist/_chunks/privacy-mask-Dc3kdkCR.js +0 -81
  290. package/dist/_chunks/subDays-DKISP2nE.js +0 -8
@@ -2,7 +2,7 @@ import { jsxs as m, jsx as o } from "react/jsx-runtime";
2
2
  import { isValidElement as w, cloneElement as A, forwardRef as B } from "react";
3
3
  import { useTranslation as R } from "react-i18next";
4
4
  import { I as f } from "./icon-button-S8_weU3g.js";
5
- import { I as S } from "./icon-button-group-mXvYDaba.js";
5
+ import { I as S } from "./icon-button-group-C9mPK-bX.js";
6
6
  import { D as l } from "./dropdown-menu-CqxBthww.js";
7
7
  import { E as T } from "./ellipsis-dRo9ouSU.js";
8
8
  function h(s) {
@@ -134,4 +134,4 @@ export {
134
134
  V as A,
135
135
  G as a
136
136
  };
137
- //# sourceMappingURL=actions-cell-renderer-BVn3vDTg.js.map
137
+ //# sourceMappingURL=actions-cell-renderer-bI27uXXC.js.map
@@ -5,7 +5,7 @@ import { useTranslation as P } from "react-i18next";
5
5
  import { A as g } from "./alert-C4WKViaS.js";
6
6
  import { B as D } from "./badge-BUk4RjTS.js";
7
7
  import { B as H } from "./button-DohK_Ak_.js";
8
- import { C as J } from "./checkbox-a7Sh-dXb.js";
8
+ import { C as J } from "./checkbox-DV4sNDeB.js";
9
9
  import { S as U } from "./spinner-CoflYlEx.js";
10
10
  import { T as W } from "./timestamp-DPLDWdxA.js";
11
11
  import { u as _ } from "./registry-DvAUVLHh.js";
@@ -203,4 +203,4 @@ export {
203
203
  Q as A,
204
204
  $ as a
205
205
  };
206
- //# sourceMappingURL=ai-permission-notice-BkgcGmu8.js.map
206
+ //# sourceMappingURL=ai-permission-notice-C-xR2_iS.js.map
@@ -10,7 +10,7 @@ import { A as ls } from "./astroid-BN4f5VXU.js";
10
10
  import { AliaAsteroidIcon as he } from "../alia-asteroid-icon/index.js";
11
11
  import { A as te } from "./avatar-Dp5apm1d.js";
12
12
  import { B as H } from "./button-DohK_Ak_.js";
13
- import { C as os } from "./chat-container-baxzy8k8.js";
13
+ import { C as os } from "./chat-container-B83b4hut.js";
14
14
  import { C as cs } from "./chat-message-CfIyXrxA.js";
15
15
  import { C as Se, P as ms } from "./chat-input-DwQ4_WXK.js";
16
16
  import { S as us } from "./streaming-text-Nb3Q7L94.js";
@@ -1320,4 +1320,4 @@ export {
1320
1320
  Ks as b,
1321
1321
  Gs as c
1322
1322
  };
1323
- //# sourceMappingURL=alia-sidebar-CKkg3gc8.js.map
1323
+ //# sourceMappingURL=alia-sidebar-BBxbMRmX.js.map
@@ -16,7 +16,7 @@ import { T as Q } from "./tabs-CXYjr_8O.js";
16
16
  import { T as na } from "./text-area-COMVJ1yE.js";
17
17
  import { S as te } from "./state-backed-text-input-DVETOhSS.js";
18
18
  import { T as Ze } from "./timestamp-DPLDWdxA.js";
19
- import { D as sn } from "./date-picker-CdhXlgVI.js";
19
+ import { D as sn } from "./date-picker-DBVTj6lO.js";
20
20
  import { A as Ue } from "./alert-C4WKViaS.js";
21
21
  import { D as L } from "./description-list-BxzDN9o2.js";
22
22
  import { c as Xt } from "./index-D2ZczOXr.js";
@@ -34,7 +34,7 @@ import { F as bn } from "./file-text-5yv6r2ls.js";
34
34
  import { P as fn } from "./printer-rkK0T1gi.js";
35
35
  import { F as yn } from "./file-spreadsheet-DmwyfV4O.js";
36
36
  import { D as vn } from "./download-CfYKJO_j.js";
37
- import { C as kn } from "./checkbox-a7Sh-dXb.js";
37
+ import { C as kn } from "./checkbox-DV4sNDeB.js";
38
38
  import { T as wn } from "./text-input-B6iAgCr3.js";
39
39
  import { T as zn } from "./time-picker-DDr5vhwQ.js";
40
40
  import { H as xn } from "./heart-pulse-BCppJyN2.js";
@@ -47,7 +47,7 @@ import { T as Cn } from "./trash-2-uumy3fy1.js";
47
47
  import { A as Sn, b as _n, c as Dn, a as jn } from "./accordion-Ch3xp0mX.js";
48
48
  import { P as Pn } from "./progress-D_g_Sl2g.js";
49
49
  import { c as ot } from "./createLucideIcon-DhHxpK9K.js";
50
- import { I as xa } from "./icon-button-group-mXvYDaba.js";
50
+ import { I as xa } from "./icon-button-group-C9mPK-bX.js";
51
51
  import { L as aa } from "./list-CNnn7DOD.js";
52
52
  import { S as rt } from "./switch-DO6uC4HJ.js";
53
53
  import { G as En } from "./grip-vertical-onSb1JXO.js";
@@ -20936,4 +20936,4 @@ export {
20936
20936
  Vi as t,
20937
20937
  od as u
20938
20938
  };
20939
- //# sourceMappingURL=anamnesis-summary-rows-DaS-j8Jd.js.map
20939
+ //# sourceMappingURL=anamnesis-summary-rows-BZ36ULQk.js.map
@@ -1,12 +1,12 @@
1
- import { b as y } from "./date-picker-variants-Dt6UbonG.js";
2
- import { s as p } from "./subDays-DKISP2nE.js";
3
- import { k as N } from "./format--x5jypvH.js";
1
+ import { b as y } from "./date-picker-variants-J1EeAhIH.js";
2
+ import { s as p } from "./subDays-Bsoy023P.js";
3
+ import { d as N } from "./format-ql5WTsYT.js";
4
4
  import { jsx as u, jsxs as f } from "react/jsx-runtime";
5
5
  import { useMemo as M } from "react";
6
6
  import { useTranslation as T } from "react-i18next";
7
7
  import { C as I } from "./card-DVO3x8E-.js";
8
8
  import { B as x } from "./badge-BUk4RjTS.js";
9
- const _ = 280, S = 14, b = 266, k = 28;
9
+ const _ = 280, S = 14, b = 266, C = 28;
10
10
  function w(t) {
11
11
  if (t < 0) return "preconception";
12
12
  const a = Math.floor(t / 7);
@@ -16,8 +16,8 @@ function gt(t, a) {
16
16
  const { method: s, date: r } = t;
17
17
  let o, c;
18
18
  if (s === "lmp") {
19
- const m = t.cycleLength ?? k;
20
- o = r, c = y(r, _ + (m - k));
19
+ const m = t.cycleLength ?? C;
20
+ o = r, c = y(r, _ + (m - C));
21
21
  } else if (s === "conception")
22
22
  o = p(r, S), c = y(r, b);
23
23
  else {
@@ -327,7 +327,7 @@ function Nt(t, a = {}) {
327
327
  function rt(t, a) {
328
328
  return t === "past" ? "neutral" : t === "current" || a ? "warning" : "info";
329
329
  }
330
- function C(t) {
330
+ function k(t) {
331
331
  return `${Math.floor(t / 7)}+${t % 7}`;
332
332
  }
333
333
  const st = {
@@ -371,8 +371,8 @@ function St({
371
371
  a(`antenatalSchedule.category.${e.category}`),
372
372
  " ·",
373
373
  " ",
374
- C(e.startDay),
375
- e.single ? "" : ` – ${C(e.endDay)}`,
374
+ k(e.startDay),
375
+ e.single ? "" : ` – ${k(e.endDay)}`,
376
376
  " ·",
377
377
  " ",
378
378
  a(`antenatalSchedule.source.${e.source}`),
@@ -393,7 +393,7 @@ function St({
393
393
  export {
394
394
  St as A,
395
395
  B as C,
396
- k as D,
396
+ C as D,
397
397
  _ as G,
398
398
  R as M,
399
399
  b as T,
@@ -411,4 +411,4 @@ export {
411
411
  pt as r,
412
412
  w as t
413
413
  };
414
- //# sourceMappingURL=antenatal-schedule-timeline-DmlXxevC.js.map
414
+ //# sourceMappingURL=antenatal-schedule-timeline-va9zx7tJ.js.map
@@ -4,7 +4,7 @@ import { c as ca } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as pa } from "react-i18next";
5
5
  import { A as K } from "./avatar-Dp5apm1d.js";
6
6
  import { B as t } from "./badge-BUk4RjTS.js";
7
- import { T as ua } from "./tag-DOZGz0fT.js";
7
+ import { T as ua } from "./tag-BNlcEJfE.js";
8
8
  import { T as ma } from "./timestamp-DPLDWdxA.js";
9
9
  import { T as Y } from "./transaction-chip-CohY6sTA.js";
10
10
  import { a as fa } from "./workflow-status-9wb7iWUd.js";
@@ -454,4 +454,4 @@ Pa.displayName = "AppointmentCard";
454
454
  export {
455
455
  Pa as A
456
456
  };
457
- //# sourceMappingURL=appointment-card-FKOnH1uJ.js.map
457
+ //# sourceMappingURL=appointment-card-D_-aBrx5.js.map
@@ -2,10 +2,10 @@ import { jsxs as x, jsx as o, Fragment as He } from "react/jsx-runtime";
2
2
  import { forwardRef as Me, useId as Ne, useMemo as j, useRef as y, useState as $, useEffect as Fe, useCallback as b, useImperativeHandle as _e } from "react";
3
3
  import { c as ze } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as Ae } from "react-i18next";
5
- import { A as ne } from "./appointment-card-FKOnH1uJ.js";
5
+ import { A as ne } from "./appointment-card-D_-aBrx5.js";
6
6
  import { B as P } from "./button-DohK_Ak_.js";
7
7
  import { B as Be } from "./button-group-CUnNnt8a.js";
8
- import { D as Ke } from "./date-picker-CdhXlgVI.js";
8
+ import { D as Ke } from "./date-picker-DBVTj6lO.js";
9
9
  import { P as Ee } from "./panel-header-CbtlTe85.js";
10
10
  import { S as Ye } from "./skeleton-tTWJpvAq.js";
11
11
  import { E as $e } from "./empty-state-DwJ5YNzz.js";
@@ -449,4 +449,4 @@ export {
449
449
  Ze as A,
450
450
  Oe as a
451
451
  };
452
- //# sourceMappingURL=appointment-timeline-eOi-y8m3.js.map
452
+ //# sourceMappingURL=appointment-timeline-DxLu3afn.js.map
@@ -5,7 +5,7 @@ import { useTranslation as H } from "react-i18next";
5
5
  import { I as M } from "./icon-button-S8_weU3g.js";
6
6
  import { S as q } from "./skeleton-tTWJpvAq.js";
7
7
  import { E as K } from "./empty-state-DwJ5YNzz.js";
8
- import { A as V } from "./appointment-card-FKOnH1uJ.js";
8
+ import { A as V } from "./appointment-card-D_-aBrx5.js";
9
9
  import { u as B } from "./registry-DvAUVLHh.js";
10
10
  import { C as D } from "./calendar-days-BGWklvE-.js";
11
11
  import { P as L } from "./plus-DzMQ_c6b.js";
@@ -190,4 +190,4 @@ export {
190
190
  ae as a,
191
191
  _ as b
192
192
  };
193
- //# sourceMappingURL=appointment-tray-C6oBvsG5.js.map
193
+ //# sourceMappingURL=appointment-tray-BhXOJpIJ.js.map
@@ -1,4 +1,4 @@
1
- import { e as s, p as r, q as i, r as d } from "./format--x5jypvH.js";
1
+ import { b as s, a as r, c as i, d } from "./buildMatchPatternFn-jbaE1-W0.js";
2
2
  const h = {
3
3
  lessThanXSeconds: {
4
4
  one: "أقل من ثانية",
@@ -130,11 +130,11 @@ const h = {
130
130
  tomorrow: "'غدا عند الساعة' p",
131
131
  nextWeek: "eeee 'القادم عند الساعة' p",
132
132
  other: "P"
133
- }, g = (t) => w[t], P = {
133
+ }, g = (t) => w[t], b = {
134
134
  narrow: ["ق", "ب"],
135
135
  abbreviated: ["ق.م.", "ب.م."],
136
136
  wide: ["قبل الميلاد", "بعد الميلاد"]
137
- }, b = {
137
+ }, P = {
138
138
  narrow: ["1", "2", "3", "4"],
139
139
  abbreviated: ["ر1", "ر2", "ر3", "ر4"],
140
140
  wide: ["الربع الأول", "الربع الثاني", "الربع الثالث", "الربع الرابع"]
@@ -246,11 +246,11 @@ const h = {
246
246
  }, M = (t) => String(t), W = {
247
247
  ordinalNumber: M,
248
248
  era: r({
249
- values: P,
249
+ values: b,
250
250
  defaultWidth: "wide"
251
251
  }),
252
252
  quarter: r({
253
- values: b,
253
+ values: P,
254
254
  defaultWidth: "wide",
255
255
  argumentCallback: (t) => t - 1
256
256
  }),
@@ -333,7 +333,7 @@ const h = {
333
333
  }, N = {
334
334
  narrow: /^(ص|م|منتصف الليل|الظهر|بعد الظهر|في الصباح|في المساء|في الليل)/,
335
335
  any: /^(ص|م|منتصف الليل|الظهر|بعد الظهر|في الصباح|في المساء|في الليل)/
336
- }, q = {
336
+ }, C = {
337
337
  any: {
338
338
  am: /^ص/,
339
339
  pm: /^م/,
@@ -344,7 +344,7 @@ const h = {
344
344
  evening: /في المساء/,
345
345
  night: /في الليل/
346
346
  }
347
- }, C = {
347
+ }, Y = {
348
348
  ordinalNumber: d({
349
349
  matchPattern: x,
350
350
  parsePattern: D,
@@ -378,7 +378,7 @@ const h = {
378
378
  dayPeriod: i({
379
379
  matchPatterns: N,
380
380
  defaultMatchWidth: "any",
381
- parsePatterns: q,
381
+ parsePatterns: C,
382
382
  defaultParseWidth: "any"
383
383
  })
384
384
  }, z = {
@@ -387,7 +387,7 @@ const h = {
387
387
  formatLong: f,
388
388
  formatRelative: g,
389
389
  localize: W,
390
- match: C,
390
+ match: Y,
391
391
  options: {
392
392
  weekStartsOn: 6,
393
393
  firstWeekContainsDate: 1
@@ -396,4 +396,4 @@ const h = {
396
396
  export {
397
397
  z as ar
398
398
  };
399
- //# sourceMappingURL=ar-C4YQVTH6.js.map
399
+ //# sourceMappingURL=ar-BFvUBJ_g.js.map
@@ -1,28 +1,29 @@
1
1
  import { jsx as C, jsxs as M } from "react/jsx-runtime";
2
2
  import { createElement as G, useRef as k, useEffect as ae, useCallback as K, forwardRef as be, useState as ie, useImperativeHandle as ge, useMemo as X } from "react";
3
3
  import { useTranslation as Y } from "react-i18next";
4
- import { a as b, T as g, D as S, d as Ce } from "./data-table-C9idMvs0.js";
5
- import { A as ve, a as re } from "./actions-cell-renderer-BVn3vDTg.js";
4
+ import { a as b, T as g, D as S, d as Ce } from "./data-table-DXaE2Ret.js";
5
+ import { A as ve, a as re } from "./actions-cell-renderer-bI27uXXC.js";
6
6
  import { S as Te } from "./select-uESzXTX6.js";
7
7
  import { u as we } from "./registry-DvAUVLHh.js";
8
- import { I as Ne, L as Fe, b as z, a as H, c as $, N as j, d as w, S as N, T as le, D as Q, g as Re, f as Ie, U as ye, e as Pe, h as Se } from "./link-cell-renderer-_Fv3WEmb.js";
9
- import { T as We } from "./transaction-chip-CohY6sTA.js";
8
+ import { I as Ne, L as Fe, b as z, a as H, c as $, N as j, d as w, S as N, T as le, D as Q, g as Re, f as Ie, U as ye, e as Pe } from "./link-cell-renderer-Ditt5mvT.js";
9
+ import { T as Se } from "./transaction-chip-CohY6sTA.js";
10
10
  import { B as oe } from "./badge-BUk4RjTS.js";
11
- import { c as Ae } from "./index-D2ZczOXr.js";
12
- import { T as xe } from "./timestamp-DPLDWdxA.js";
13
- import { C as De } from "./calendar-clock-hbObjfGY.js";
14
- import { E as Be } from "./eye-BjhN2nYf.js";
15
- import { P as Ve } from "./pencil-B1sKKyuT.js";
16
- import { M as Ee } from "./mail-BqXVF2zH.js";
17
- import { M as Oe } from "./message-square-Bye4ATvx.js";
18
- import { U as Ge } from "./users-BjS_Gg1E.js";
19
- import { T as Me } from "./trash-2-uumy3fy1.js";
11
+ import { c as We } from "./index-D2ZczOXr.js";
12
+ import { T as Ae } from "./timestamp-DPLDWdxA.js";
13
+ import { C as xe } from "./calendar-clock-hbObjfGY.js";
14
+ import { E as De } from "./eye-BjhN2nYf.js";
15
+ import { P as Be } from "./pencil-B1sKKyuT.js";
16
+ import { M as Ve } from "./mail-BqXVF2zH.js";
17
+ import { M as Ee } from "./message-square-Bye4ATvx.js";
18
+ import { U as Oe } from "./users-BjS_Gg1E.js";
19
+ import { T as Ge } from "./trash-2-uumy3fy1.js";
20
+ import { f as Me } from "./parts-Wz2LeGnH.js";
20
21
  function ee(e) {
21
22
  const { value: a, positiveState: l, showLabel: s = !0, currency: o } = e, r = typeof a == "number" && Number.isFinite(a) ? a : null;
22
23
  if (r === null) return null;
23
24
  const d = r > 0 ? l : "settled";
24
25
  return /* @__PURE__ */ C(
25
- We,
26
+ Se,
26
27
  {
27
28
  state: d,
28
29
  amount: r / 100,
@@ -45,7 +46,7 @@ function Le(e) {
45
46
  const d = ke[r];
46
47
  return /* @__PURE__ */ C(oe, { variant: d, withDot: !0, size: o, children: a(`patientTable.carePlanStatus.${r}`) });
47
48
  }
48
- const te = Ae(
49
+ const te = We(
49
50
  "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)] ds:whitespace-nowrap",
50
51
  {
51
52
  variants: {
@@ -77,8 +78,8 @@ function je(e) {
77
78
  return /* @__PURE__ */ C("span", { className: te({ tone: "empty" }), children: a("patientTable.nextAppointment.none") });
78
79
  const d = $e(r, o);
79
80
  return /* @__PURE__ */ M("span", { className: te({ tone: d }), children: [
80
- d === "soon" ? /* @__PURE__ */ C(De, { "aria-hidden": "true", className: "ds:size-3.5 ds:shrink-0" }) : null,
81
- /* @__PURE__ */ C(xe, { value: r, format: "relative", shape: "bare" })
81
+ d === "soon" ? /* @__PURE__ */ C(xe, { "aria-hidden": "true", className: "ds:size-3.5 ds:shrink-0" }) : null,
82
+ /* @__PURE__ */ C(Ae, { value: r, format: "relative", shape: "bare" })
82
83
  ] });
83
84
  }
84
85
  function se(e) {
@@ -101,7 +102,7 @@ function Ye(e, a) {
101
102
  {
102
103
  id: "show",
103
104
  label: e("patientTable.actions.show"),
104
- icon: G(Be, { "aria-hidden": "true" })
105
+ icon: G(De, { "aria-hidden": "true" })
105
106
  },
106
107
  {}
107
108
  ),
@@ -109,7 +110,7 @@ function Ye(e, a) {
109
110
  {
110
111
  id: "edit",
111
112
  label: e("patientTable.actions.edit"),
112
- icon: G(Ve, { "aria-hidden": "true" })
113
+ icon: G(Be, { "aria-hidden": "true" })
113
114
  },
114
115
  {}
115
116
  ),
@@ -117,7 +118,7 @@ function Ye(e, a) {
117
118
  {
118
119
  id: "sendEmailReminder",
119
120
  label: e("patientTable.actions.sendEmailReminder"),
120
- icon: G(Ee, { "aria-hidden": "true" })
121
+ icon: G(Ve, { "aria-hidden": "true" })
121
122
  },
122
123
  // Hidden when the patient has email contact disabled (spec).
123
124
  { hidden: (o) => !o.emailEnabled }
@@ -126,7 +127,7 @@ function Ye(e, a) {
126
127
  {
127
128
  id: "sendSmsReminder",
128
129
  label: e("patientTable.actions.sendSmsReminder"),
129
- icon: G(Oe, { "aria-hidden": "true" })
130
+ icon: G(Ee, { "aria-hidden": "true" })
130
131
  },
131
132
  // Hidden when no phone number is SMS-enabled (spec).
132
133
  {
@@ -137,7 +138,7 @@ function Ye(e, a) {
137
138
  {
138
139
  id: "reassign",
139
140
  label: e("patientTable.actions.reassign"),
140
- icon: G(Ge, { "aria-hidden": "true" })
141
+ icon: G(Oe, { "aria-hidden": "true" })
141
142
  },
142
143
  {}
143
144
  ),
@@ -145,7 +146,7 @@ function Ye(e, a) {
145
146
  {
146
147
  id: "delete",
147
148
  label: e("patientTable.actions.delete"),
148
- icon: G(Me, { "aria-hidden": "true" }),
149
+ icon: G(Ge, { "aria-hidden": "true" }),
149
150
  variant: "destructive"
150
151
  },
151
152
  // Disabled (with a reason) for archived patients — the row model's
@@ -170,7 +171,7 @@ function ne(e) {
170
171
  }
171
172
  function Qe(e) {
172
173
  if (!e) return null;
173
- const a = Se(e);
174
+ const a = Me(e);
174
175
  if (!a) return null;
175
176
  const l = /* @__PURE__ */ new Date();
176
177
  let s = l.getFullYear() - a.getFullYear();
@@ -1155,7 +1156,7 @@ function dt(e) {
1155
1156
  const a = typeof e == "number" ? e : Number(e);
1156
1157
  return Number.isFinite(a) ? a : null;
1157
1158
  }
1158
- function Wt(e) {
1159
+ function At(e) {
1159
1160
  const { value: a, currency: l = "EUR", options: s } = e, { t: o, i18n: r } = Y("ui"), d = dt(a);
1160
1161
  if (d === null) return null;
1161
1162
  const h = r.language || "en", m = new Intl.NumberFormat(h, {
@@ -1169,7 +1170,7 @@ function Wt(e) {
1169
1170
  ] });
1170
1171
  }
1171
1172
  export {
1172
- Wt as B,
1173
+ At as B,
1173
1174
  Le as C,
1174
1175
  je as N,
1175
1176
  Ke as P,
@@ -1179,4 +1180,4 @@ export {
1179
1180
  se as g,
1180
1181
  nt as u
1181
1182
  };
1182
- //# sourceMappingURL=balance-badge-cell-BAZynD--.js.map
1183
+ //# sourceMappingURL=balance-badge-cell-CXHihM22.js.map
@@ -0,0 +1,68 @@
1
+ function k(t) {
2
+ return (a = {}) => {
3
+ const e = a.width ? String(a.width) : t.defaultWidth;
4
+ return t.formats[e] || t.formats[t.defaultWidth];
5
+ };
6
+ }
7
+ function v(t) {
8
+ return (a, e) => {
9
+ const n = e != null && e.context ? String(e.context) : "standalone";
10
+ let r;
11
+ if (n === "formatting" && t.formattingValues) {
12
+ const l = t.defaultFormattingWidth || t.defaultWidth, u = e != null && e.width ? String(e.width) : l;
13
+ r = t.formattingValues[u] || t.formattingValues[l];
14
+ } else {
15
+ const l = t.defaultWidth, u = e != null && e.width ? String(e.width) : t.defaultWidth;
16
+ r = t.values[u] || t.values[l];
17
+ }
18
+ const c = t.argumentCallback ? t.argumentCallback(a) : a;
19
+ return r[c];
20
+ };
21
+ }
22
+ function w(t) {
23
+ return (a, e = {}) => {
24
+ const n = e.width, r = n && t.matchPatterns[n] || t.matchPatterns[t.defaultMatchWidth], c = a.match(r);
25
+ if (!c)
26
+ return null;
27
+ const l = c[0], u = n && t.parsePatterns[n] || t.parsePatterns[t.defaultParseWidth], f = Array.isArray(u) ? b(u, (h) => h.test(l)) : (
28
+ // [TODO] -- I challenge you to fix the type
29
+ m(u, (h) => h.test(l))
30
+ );
31
+ let d;
32
+ d = t.valueCallback ? t.valueCallback(f) : f, d = e.valueCallback ? (
33
+ // [TODO] -- I challenge you to fix the type
34
+ e.valueCallback(d)
35
+ ) : d;
36
+ const i = a.slice(l.length);
37
+ return { value: d, rest: i };
38
+ };
39
+ }
40
+ function m(t, a) {
41
+ for (const e in t)
42
+ if (Object.prototype.hasOwnProperty.call(t, e) && a(t[e]))
43
+ return e;
44
+ }
45
+ function b(t, a) {
46
+ for (let e = 0; e < t.length; e++)
47
+ if (a(t[e]))
48
+ return e;
49
+ }
50
+ function P(t) {
51
+ return (a, e = {}) => {
52
+ const n = a.match(t.matchPattern);
53
+ if (!n) return null;
54
+ const r = n[0], c = a.match(t.parsePattern);
55
+ if (!c) return null;
56
+ let l = t.valueCallback ? t.valueCallback(c[0]) : c[0];
57
+ l = e.valueCallback ? e.valueCallback(l) : l;
58
+ const u = a.slice(r.length);
59
+ return { value: l, rest: u };
60
+ };
61
+ }
62
+ export {
63
+ v as a,
64
+ k as b,
65
+ w as c,
66
+ P as d
67
+ };
68
+ //# sourceMappingURL=buildMatchPatternFn-jbaE1-W0.js.map