@alfadocs/ui-kit 1.114.0 → 1.116.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 (416) hide show
  1. package/dist/_chunks/accessible-target-Bs9ELM3l.js +6 -0
  2. package/dist/_chunks/{actions-cell-renderer-BVn3vDTg.js → actions-cell-renderer-DzHxDyI7.js} +3 -3
  3. package/dist/_chunks/{address-fields-D5Ije0S2.js → address-fields-BFVCtfP2.js} +3 -3
  4. package/dist/_chunks/{ai-permission-notice-BkgcGmu8.js → ai-permission-notice-C-xR2_iS.js} +2 -2
  5. package/dist/_chunks/{alia-sidebar-CKkg3gc8.js → alia-sidebar-BBxbMRmX.js} +2 -2
  6. package/dist/_chunks/{anamnesis-summary-rows-DaS-j8Jd.js → anamnesis-summary-rows-gEXqU5i5.js} +8 -8
  7. package/dist/_chunks/{antenatal-schedule-timeline-DmlXxevC.js → antenatal-schedule-timeline-va9zx7tJ.js} +11 -11
  8. package/dist/_chunks/{appointment-card-FKOnH1uJ.js → appointment-card-BMZoXaGx.js} +4 -4
  9. package/dist/_chunks/{appointment-peek-DWfcpoGy.js → appointment-peek-B1CCv-7J.js} +2 -2
  10. package/dist/_chunks/{appointment-timeline-eOi-y8m3.js → appointment-timeline-0k4LxODn.js} +4 -4
  11. package/dist/_chunks/{appointment-tray-C6oBvsG5.js → appointment-tray-DIxpgIXM.js} +2 -2
  12. package/dist/_chunks/{ar-C4YQVTH6.js → ar-BFvUBJ_g.js} +10 -10
  13. package/dist/_chunks/arrow-down-left-DECv-dJt.js +15 -0
  14. package/dist/_chunks/{balance-badge-cell-BAZynD--.js → balance-badge-cell-L7bD0Nsh.js} +28 -27
  15. package/dist/_chunks/bill-line-table-WEIRDcv6.js +1563 -0
  16. package/dist/_chunks/{bmi-calculator-Ba4yoR31.js → bmi-calculator-BjUfXqcY.js} +2 -2
  17. package/dist/_chunks/buildMatchPatternFn-jbaE1-W0.js +68 -0
  18. package/dist/_chunks/{button-group-CUnNnt8a.js → button-group-BvU9vRnX.js} +2 -2
  19. package/dist/_chunks/{calculator-dialog-D4TyJwqy.js → calculator-dialog-BGX5XQCM.js} +2 -2
  20. package/dist/_chunks/{calendar-appointment-editor-dialog-iyh9QqNw.js → calendar-appointment-editor-dialog-DqZMb4yd.js} +527 -539
  21. package/dist/_chunks/{care-plan-card-DMjlYlFc.js → care-plan-card-CfV8jiF0.js} +3 -3
  22. package/dist/_chunks/{care-plan-entry-card-3hguBW45.js → care-plan-entry-card-Bt01kyTl.js} +4 -4
  23. package/dist/_chunks/{chart-bddVIElM.js → chart-BSx8cfMm.js} +2 -2
  24. package/dist/_chunks/{chat-container-baxzy8k8.js → chat-container-B83b4hut.js} +2 -2
  25. package/dist/_chunks/checkbox-DV4sNDeB.js +282 -0
  26. package/dist/_chunks/{checkbox-group-eGdv9fZc.js → checkbox-group-EfinQS1h.js} +2 -2
  27. package/dist/_chunks/chevrons-up-down-CgiVAHb7.js +15 -0
  28. package/dist/_chunks/circle-off-DuT9pVy2.js +16 -0
  29. package/dist/_chunks/combobox-BBCVQS-S.js +935 -0
  30. package/dist/_chunks/compact-editor-fields-6sTWRLtf.js +21 -0
  31. package/dist/_chunks/{contact-profile-card-DMXWBBkU.js → contact-profile-card-BRCHbQ3-.js} +2 -2
  32. package/dist/_chunks/{country-select-CUuGOAoZ.js → country-select-C2GdvRtS.js} +2 -2
  33. package/dist/_chunks/{cycle-calculator-Dd-XbKmZ.js → cycle-calculator-Brd0PP4U.js} +6 -6
  34. package/dist/_chunks/{dashboard-grid-DrOkTtya.js → dashboard-grid-3aidD-IQ.js} +2 -2
  35. package/dist/_chunks/data-grid-ByhrYGVw.js +9814 -0
  36. package/dist/_chunks/data-grid-tabs-D9Y4DeeH.js +365 -0
  37. package/dist/_chunks/data-table-B47iw2CO.js +1694 -0
  38. package/dist/_chunks/data-table-tabs-NYLhD8_Z.js +242 -0
  39. package/dist/_chunks/date-locale-OG-MupVD.js +83 -0
  40. package/dist/_chunks/{date-picker-CdhXlgVI.js → date-picker-DBVTj6lO.js} +21 -20
  41. package/dist/_chunks/{date-picker-variants-Dt6UbonG.js → date-picker-variants-J1EeAhIH.js} +601 -678
  42. package/dist/_chunks/date-range-panel-B-DUtfw3.js +62 -0
  43. package/dist/_chunks/{date-range-picker-DCADIR8o.js → date-range-picker-PTRpDkXT.js} +72 -70
  44. package/dist/_chunks/{date-time-picker-CT2bC7-A.js → date-time-picker-CJnqiQoT.js} +22 -21
  45. package/dist/_chunks/{de-B1B3PIgY.js → de-i9wbjGPc.js} +2 -2
  46. package/dist/_chunks/default-tabs-BQcSqcNG.js +2250 -0
  47. package/dist/_chunks/dialog-CIUn5oLb.js +348 -0
  48. package/dist/_chunks/{document-preview-WvJKHJOP.js → document-preview-B_JGHsEW.js} +2 -2
  49. package/dist/_chunks/{dropdown-menu-CqxBthww.js → dropdown-menu-Dmbak7q6.js} +320 -248
  50. package/dist/_chunks/{due-date-calculator-Dl6SyMHO.js → due-date-calculator-DzIQXEX5.js} +7 -7
  51. package/dist/_chunks/{editable-currency-cell-renderer-BUdFMh67.js → editable-currency-cell-renderer-p-Q1UkZS.js} +3 -3
  52. package/dist/_chunks/{el-iLqGpapg.js → el-Cm-rWthb.js} +20 -20
  53. package/dist/_chunks/{en-GB-CxPRQbD6.js → en-GB-BHn82gW8.js} +11 -10
  54. package/dist/_chunks/en-US-C4QKhzhA.js +46 -0
  55. package/dist/_chunks/{es-Bg1oqwDs.js → es-B_6Z19UA.js} +4 -4
  56. package/dist/_chunks/export-files-BByoK9Cg.js +248 -0
  57. package/dist/_chunks/{face-scheme-DlcQaQVR.js → face-scheme-CEjJUnNe.js} +19 -18
  58. package/dist/_chunks/{fetal-weight-DmZzMRzB.js → fetal-weight-CJTlfh_k.js} +2 -2
  59. package/dist/_chunks/{file-manager-LG7B_UHB.js → file-manager-DEe51ZDe.js} +5 -5
  60. package/dist/_chunks/format-price-CIX0YJZn.js +179 -0
  61. package/dist/_chunks/format-ql5WTsYT.js +846 -0
  62. package/dist/_chunks/{fr-DpGxyOGI.js → fr-gTba51QO.js} +7 -7
  63. package/dist/_chunks/funnel-DpPV3Qkd.js +20 -0
  64. package/dist/_chunks/{gestational-age-calculator-DmzYdW5e.js → gestational-age-calculator-60y1RyQL.js} +7 -7
  65. package/dist/_chunks/grid-context-jn9y8tNE.js +46 -0
  66. package/dist/_chunks/{hcg-doubling-Tr72PetS.js → hcg-doubling-BUZQkSYC.js} +7 -6
  67. package/dist/_chunks/{header-settings-Df9q1uHt.js → header-settings-DNgvO8fS.js} +2 -2
  68. package/dist/_chunks/{heatmap-CNxCDl0D.js → heatmap-tn1WxoMT.js} +4 -4
  69. package/dist/_chunks/{help-me-write-templates-CWxgjDZl.js → help-me-write-templates-C28E_rOt.js} +2 -2
  70. package/dist/_chunks/{hi-3Dtsksrw.js → hi-BIHq9ncx.js} +10 -10
  71. package/dist/_chunks/highlighter-DSkckT2Q.js +15 -0
  72. package/dist/_chunks/icon-button-group-Ca2VkXy5.js +442 -0
  73. package/dist/_chunks/{index-CJE9uQmb.js → index-Bze5jCG_.js} +2 -1
  74. package/dist/_chunks/{isSameWeek-DyVftHWi.js → isSameWeek-CZOtDcsd.js} +2 -2
  75. package/dist/_chunks/{it-Cp0CA13d.js → it-DaCPWJ9Y.js} +11 -11
  76. package/dist/_chunks/{ja-9FOyR1lb.js → ja-BRCpkD95.js} +26 -26
  77. package/dist/_chunks/{kit-extensions-DZJRmDI6.js → kit-extensions-BFfLg7c-.js} +7 -7
  78. package/dist/_chunks/link-cell-renderer-D-Io828l.js +800 -0
  79. package/dist/_chunks/{login-dev-card-D7orCfJT.js → login-dev-card-CPndtWdz.js} +2 -2
  80. package/dist/_chunks/{marketplace-app-shell-CPNVBVLH.js → marketplace-app-shell-CBHNg8x-.js} +5 -5
  81. package/dist/_chunks/match-BATShpSX.js +336 -0
  82. package/dist/_chunks/money-OE6_oDPH.js +138 -0
  83. package/dist/_chunks/{muscle-scheme-BkmDUTmk.js → muscle-scheme-7UsRsCHP.js} +2 -2
  84. package/dist/_chunks/{nl-sfx-zJgR.js → nl-5tAwYo00.js} +6 -6
  85. package/dist/_chunks/normalizeDates-BBNNIR-v.js +36 -0
  86. package/dist/_chunks/{notes-panel-DXMTObBv.js → notes-panel-DexbfrFo.js} +3 -3
  87. package/dist/_chunks/number-input-DUSvP7Dq.js +625 -0
  88. package/dist/_chunks/{optical-prescription-CvbN8yD2.js → optical-prescription-Da_r8pMr.js} +2 -2
  89. package/dist/_chunks/{parse-B0s7bY4d.js → parse-BLBWPIgE.js} +63 -61
  90. package/dist/_chunks/{parseISO-DZZ5a-zK.js → parseISO-Dl4T9peU.js} +2 -2
  91. package/dist/_chunks/parts-CtcTW1PN.js +869 -0
  92. package/dist/_chunks/{patient-details-DdtXBNjt.js → patient-details-PJ0Y__7t.js} +2 -2
  93. package/dist/_chunks/{patient-field-row-D9rb-QJH.js → patient-field-row-0QP8KCVp.js} +7 -7
  94. package/dist/_chunks/{patient-search-DDRDCjZi.js → patient-search-Bdx_Ob3y.js} +2 -2
  95. package/dist/_chunks/{patient-summary-card-CGHz-Bvm.js → patient-summary-card-BOfXDP8a.js} +4 -4
  96. package/dist/_chunks/{payment-request-card-BmV2pLoM.js → payment-request-card-_04afZEx.js} +14 -13
  97. package/dist/_chunks/{periodontal-diagnosis-xheWfi4g.js → periodontal-diagnosis-DnZuZD14.js} +2 -2
  98. package/dist/_chunks/{permission-matrix-BJ6sg3Zp.js → permission-matrix-BXmhICzN.js} +3 -3
  99. package/dist/_chunks/{pl-BLh7KO-s.js → pl-mLYbfByR.js} +7 -7
  100. package/dist/_chunks/{practice-results-BlxfBx-D.js → practice-results-CrBjScXX.js} +3 -3
  101. package/dist/_chunks/{pregnancy-dating-BvorzHrd.js → pregnancy-dating-Bg_VUPwl.js} +8 -8
  102. package/dist/_chunks/{pregnancy-weight-gain-DQoOM8QV.js → pregnancy-weight-gain-B-eXFdmq.js} +2 -2
  103. package/dist/_chunks/privacy-mask-BlJK51MD.js +78 -0
  104. package/dist/_chunks/privacy-mask-text-B8YfzB7L.js +7 -0
  105. package/dist/_chunks/{province-select-cVOlwEc5.js → province-select-CTM8A9SM.js} +2 -2
  106. package/dist/_chunks/{pt-CPKOrOLj.js → pt-CgaqtlD9.js} +6 -6
  107. package/dist/_chunks/{radiograph-panel.agent-CXah49KM.js → radiograph-panel.agent-9jwXlOXB.js} +4 -4
  108. package/dist/_chunks/{registration-form-Lw9T7IXr.js → registration-form-DW-0X7S4.js} +2 -2
  109. package/dist/_chunks/{reserved.agent-D2jwJPac.js → reserved.agent-C1zRHaya.js} +12 -12
  110. package/dist/_chunks/{rich-text-editor-BLS2cK-u.js → rich-text-editor-r80Zw8ll.js} +14 -13
  111. package/dist/_chunks/{ro-Dc-oNqbF.js → ro-CpDg1-8v.js} +2 -2
  112. package/dist/_chunks/row-actions-Df7TJbNR.js +213 -0
  113. package/dist/_chunks/{ru-BtNpDZRR.js → ru-B7VMyjud.js} +9 -9
  114. package/dist/_chunks/saved-view-tabs-DLWm88Eq.js +932 -0
  115. package/dist/_chunks/{send-registration-link-form-DfbTjrEK.js → send-registration-link-form-DWxWa_cJ.js} +5 -5
  116. package/dist/_chunks/{sidebar-2VsPlNkZ.js → sidebar-D5DFYN5K.js} +326 -335
  117. package/dist/_chunks/{signature-request-BnTihryS.js → signature-request-CgvjLic3.js} +3 -3
  118. package/dist/_chunks/{slot-grid-BhjaLJ0o.js → slot-grid-b4eZXokb.js} +3 -3
  119. package/dist/_chunks/{sq-D4c7olaV.js → sq-B0Ree_9P.js} +2 -2
  120. package/dist/_chunks/subDays-Bsoy023P.js +8 -0
  121. package/dist/_chunks/{sv-Bf_dHPvh.js → sv-D9fP66O7.js} +4 -4
  122. package/dist/_chunks/{tab-bar-C_pggqVr.js → tab-bar-DTn8pHqH.js} +2 -2
  123. package/dist/_chunks/{tabs-CXYjr_8O.js → tabs-CsmgkiG6.js} +2 -2
  124. package/dist/_chunks/{tag-DOZGz0fT.js → tag-BNlcEJfE.js} +70 -67
  125. package/dist/_chunks/{task-card-DqVoitRk.js → task-card-BNbkwIYM.js} +2 -2
  126. package/dist/_chunks/{task-editor-D--LwVrg.js → task-editor-DgUjtqpX.js} +386 -410
  127. package/dist/_chunks/{task-tray-C6j8HVMv.js → task-tray-Bmi9wCHq.js} +2 -2
  128. package/dist/_chunks/{tasks-panel-D6PuF4MQ.js → tasks-panel-B5Nsf10r.js} +3 -3
  129. package/dist/_chunks/{theme-toggle-Czq3K9jB.js → theme-toggle-DfvdEg_V.js} +3 -3
  130. package/dist/_chunks/{token-insert-menu-Dl3x2ekR.js → token-insert-menu-BdcmK5Um.js} +2 -2
  131. package/dist/_chunks/toolbar-DbUQBrq4.js +159 -0
  132. package/dist/_chunks/{tooth-scheme-C-ALCHaV.js → tooth-scheme-LTkT4EXd.js} +2 -2
  133. package/dist/_chunks/{tr-xqQ6cbGY.js → tr-Bcz5LCHZ.js} +2 -2
  134. package/dist/_chunks/{transaction-chip-CohY6sTA.js → transaction-chip-CkYd-3ky.js} +47 -57
  135. package/dist/_chunks/{transcript-panel-A781Pkzr.js → transcript-panel-Wr8e4Zgi.js} +2 -2
  136. package/dist/_chunks/{treatment-receipt-pFqWFyD_.js → treatment-receipt-1VnuinhY.js} +3 -3
  137. package/dist/_chunks/undo-2-EBxWjj1W.js +15 -0
  138. package/dist/_chunks/{unit-converter-D77vmlzN.js → unit-converter-YKlHyUC2.js} +2 -2
  139. package/dist/_chunks/{use-appointment-details-read-BK_Gw1GG.js → use-appointment-details-read-_r7cjTtm.js} +8 -8
  140. package/dist/_chunks/{verify-identity-types-C85EXNzy.js → verify-identity-types-D_LdByCp.js} +2 -2
  141. package/dist/_chunks/{voice-control-panel-BGiX4sqB.js → voice-control-panel-Be_c0CQ0.js} +2 -2
  142. package/dist/_chunks/{widget-picker-U4JsEhQE.js → widget-picker-DrxJjEkv.js} +2 -2
  143. package/dist/_chunks/{workflow-map-B4XkcET0.js → workflow-map-D-u8_YSr.js} +2 -2
  144. package/dist/_chunks/{workflow-status-9wb7iWUd.js → workflow-status-fykpTxfb.js} +2 -2
  145. package/dist/_chunks/{workflow-webhook-action-CtBn5JvO.js → workflow-webhook-action-DM3W8XZE.js} +3 -3
  146. package/dist/_chunks/{zh-CN-C657DBCO.js → zh-CN-B7Ek17US.js} +11 -11
  147. package/dist/agent-catalog.json +3359 -1569
  148. package/dist/agent-i18n/en.json +100 -2
  149. package/dist/components/_shared/accessible-target.d.ts +12 -0
  150. package/dist/components/_shared/decimal.d.ts +171 -0
  151. package/dist/components/_shared/format-price.d.ts +54 -2
  152. package/dist/components/_shared/privacy-mask-text.d.ts +4 -0
  153. package/dist/components/_shared/privacy-mask.d.ts +2 -4
  154. package/dist/components/_shared/saved-view-tabs/saved-tab.d.ts +54 -0
  155. package/dist/components/_shared/saved-view-tabs/saved-view-tabs.d.ts +93 -0
  156. package/dist/components/_shared/saved-view-tabs/use-saved-view-tabs.d.ts +59 -0
  157. package/dist/components/_shared/saved-view-tabs/view-adapter.d.ts +69 -0
  158. package/dist/components/_shared/table-filters/calendar-day.d.ts +27 -0
  159. package/dist/components/_shared/table-filters/predicates.d.ts +56 -0
  160. package/dist/components/_shared/table-toolbar/context.d.ts +28 -0
  161. package/dist/components/_shared/table-toolbar/describe-filter.d.ts +42 -0
  162. package/dist/components/_shared/table-toolbar/export-files.d.ts +47 -0
  163. package/dist/components/{data-table/xlsx-export.d.ts → _shared/table-toolbar/export-xlsx.d.ts} +2 -2
  164. package/dist/components/_shared/table-toolbar/parts.d.ts +125 -0
  165. package/dist/components/_shared/table-toolbar/seam.d.ts +261 -0
  166. package/dist/components/address-fields/index.js +1 -1
  167. package/dist/components/ai-permission-notice/index.js +1 -1
  168. package/dist/components/appointment-card/index.js +2 -2
  169. package/dist/components/appointment-details-panel/index.js +1 -1
  170. package/dist/components/appointment-peek/index.js +1 -1
  171. package/dist/components/appointment-timeline/index.js +1 -1
  172. package/dist/components/bill-line-table/bill-line-table.agent.d.ts +4 -0
  173. package/dist/components/bill-line-table/bill-line-table.columns.d.ts +47 -0
  174. package/dist/components/bill-line-table/bill-line-table.d.ts +4 -0
  175. package/dist/components/bill-line-table/bill-line-table.model.d.ts +173 -0
  176. package/dist/components/bill-line-table/bill-line-table.types.d.ts +443 -0
  177. package/dist/components/bill-line-table/bill-line-table.variants.d.ts +34 -0
  178. package/dist/components/bill-line-table/index.d.ts +6 -0
  179. package/dist/components/bill-line-table/index.js +23 -0
  180. package/dist/components/bill-table/bill-table.agent.d.ts +4 -0
  181. package/dist/components/bill-table/bill-table.d.ts +13 -0
  182. package/dist/components/bill-table/bill-table.variants.d.ts +55 -0
  183. package/dist/components/bill-table/cells.d.ts +89 -0
  184. package/dist/components/bill-table/columns.d.ts +21 -0
  185. package/dist/components/bill-table/default-tabs.d.ts +21 -0
  186. package/dist/components/bill-table/handle.d.ts +19 -0
  187. package/dist/components/bill-table/index.d.ts +7 -0
  188. package/dist/components/bill-table/index.js +19 -0
  189. package/dist/components/bill-table/model.d.ts +103 -0
  190. package/dist/components/bill-table/row-actions.d.ts +27 -0
  191. package/dist/components/bill-table/status-maps.d.ts +225 -0
  192. package/dist/components/bill-table/types.d.ts +542 -0
  193. package/dist/components/bmi-calculator/index.js +1 -1
  194. package/dist/components/booking/index.js +1 -1
  195. package/dist/components/button-group/index.js +1 -1
  196. package/dist/components/calculator-dialog/index.js +1 -1
  197. package/dist/components/care-plan-card/index.js +1 -1
  198. package/dist/components/care-plan-entry-card/index.js +1 -1
  199. package/dist/components/chart/index.js +1 -1
  200. package/dist/components/chat-container/index.js +1 -1
  201. package/dist/components/checkbox/checkbox.d.ts +66 -6
  202. package/dist/components/checkbox/index.js +1 -1
  203. package/dist/components/checkbox-group/index.js +1 -1
  204. package/dist/components/combobox/combobox.d.ts +59 -1
  205. package/dist/components/combobox/index.d.ts +1 -1
  206. package/dist/components/combobox/index.js +1 -1
  207. package/dist/components/contact-profile-card/index.js +1 -1
  208. package/dist/components/country-select/index.js +1 -1
  209. package/dist/components/cycle-calculator/index.js +1 -1
  210. package/dist/components/dashboard-grid/index.js +1 -1
  211. package/dist/components/data-grid/announcer.d.ts +27 -0
  212. package/dist/components/data-grid/body.d.ts +101 -0
  213. package/dist/components/data-grid/columns.d.ts +96 -0
  214. package/dist/components/data-grid/data-grid.agent.d.ts +2 -1
  215. package/dist/components/data-grid/data-grid.d.ts +11 -27
  216. package/dist/components/data-grid/data-grid.variants.d.ts +110 -0
  217. package/dist/components/data-grid/editors.d.ts +14 -0
  218. package/dist/components/data-grid/export-snapshot.d.ts +3 -0
  219. package/dist/components/data-grid/features.d.ts +56 -0
  220. package/dist/components/data-grid/filter-fns.d.ts +23 -0
  221. package/dist/components/data-grid/filters/date-range-panel.d.ts +8 -0
  222. package/dist/components/data-grid/filters/filter-panels.d.ts +27 -0
  223. package/dist/components/data-grid/filters/filter-trigger.d.ts +7 -0
  224. package/dist/components/data-grid/footer.d.ts +10 -0
  225. package/dist/components/data-grid/grid-context.d.ts +18 -0
  226. package/dist/components/data-grid/handle.d.ts +60 -0
  227. package/dist/components/data-grid/header.d.ts +12 -0
  228. package/dist/components/data-grid/index.d.ts +3 -0
  229. package/dist/components/data-grid/index.js +11 -3
  230. package/dist/components/data-grid/keyboard.d.ts +76 -0
  231. package/dist/components/data-grid/pager.d.ts +18 -0
  232. package/dist/components/data-grid/persistence.d.ts +60 -0
  233. package/dist/components/data-grid/print.d.ts +10 -0
  234. package/dist/components/data-grid/responsive.d.ts +36 -0
  235. package/dist/components/data-grid/selection.d.ts +68 -0
  236. package/dist/components/data-grid/state.d.ts +119 -0
  237. package/dist/components/data-grid/states.d.ts +34 -0
  238. package/dist/components/data-grid/toolbar-seam.d.ts +7 -0
  239. package/dist/components/data-grid/toolbar.d.ts +41 -0
  240. package/dist/components/data-grid/types.d.ts +1396 -0
  241. package/dist/components/data-grid/use-data-grid-engine.d.ts +9 -0
  242. package/dist/components/data-grid/virtual-rows.d.ts +43 -0
  243. package/dist/components/data-grid-tabs/data-grid-tabs.agent.d.ts +9 -0
  244. package/dist/components/data-grid-tabs/data-grid-tabs.d.ts +4 -0
  245. package/dist/components/data-grid-tabs/grid-view-adapter.d.ts +15 -0
  246. package/dist/components/data-grid-tabs/index.d.ts +5 -0
  247. package/dist/components/data-grid-tabs/index.js +8 -0
  248. package/dist/components/data-grid-tabs/types.d.ts +220 -0
  249. package/dist/components/data-table/ag-toolbar-seam.d.ts +35 -0
  250. package/dist/components/data-table/calendar-day.d.ts +4 -21
  251. package/dist/components/data-table/data-table.d.ts +10 -6
  252. package/dist/components/data-table/filters/date-range-filter.d.ts +5 -9
  253. package/dist/components/data-table/filters/filter-kind.d.ts +6 -0
  254. package/dist/components/data-table/filters/number-filter.d.ts +6 -10
  255. package/dist/components/data-table/filters/select-filter.d.ts +2 -4
  256. package/dist/components/data-table/filters/text-filter.d.ts +2 -5
  257. package/dist/components/data-table/index.js +4 -4
  258. package/dist/components/data-table/toolbar.d.ts +25 -21
  259. package/dist/components/data-table-tabs/ag-view-adapter.d.ts +17 -0
  260. package/dist/components/data-table-tabs/data-table-tabs.d.ts +34 -33
  261. package/dist/components/data-table-tabs/index.js +1 -1
  262. package/dist/components/data-table-tabs/use-data-table-filter-tabs.d.ts +11 -66
  263. package/dist/components/date-picker/index.js +1 -1
  264. package/dist/components/date-range-picker/index.js +1 -1
  265. package/dist/components/date-time-picker/index.js +1 -1
  266. package/dist/components/dialog/focus-return.d.ts +12 -0
  267. package/dist/components/dialog/index.js +1 -1
  268. package/dist/components/document-preview/index.js +1 -1
  269. package/dist/components/dropdown-menu/dropdown-menu.d.ts +11 -0
  270. package/dist/components/dropdown-menu/index.js +1 -1
  271. package/dist/components/due-date-calculator/index.js +2 -2
  272. package/dist/components/face-scheme/index.js +1 -1
  273. package/dist/components/fetal-weight/index.js +1 -1
  274. package/dist/components/file-manager/index.js +1 -1
  275. package/dist/components/gestational-age-calculator/index.js +1 -1
  276. package/dist/components/hcg-doubling/index.js +1 -1
  277. package/dist/components/header-settings/index.js +1 -1
  278. package/dist/components/heatmap/index.js +1 -1
  279. package/dist/components/icon-button-group/icon-button-group.d.ts +19 -1
  280. package/dist/components/icon-button-group/index.d.ts +1 -1
  281. package/dist/components/icon-button-group/index.js +1 -1
  282. package/dist/components/index.d.ts +7 -0
  283. package/dist/components/money/index.js +1 -1
  284. package/dist/components/money/money.d.ts +39 -6
  285. package/dist/components/muscle-scheme/index.js +1 -1
  286. package/dist/components/notes-panel/index.js +1 -1
  287. package/dist/components/number-input/index.d.ts +2 -2
  288. package/dist/components/number-input/index.js +1 -1
  289. package/dist/components/number-input/number-input.d.ts +43 -2
  290. package/dist/components/number-input/use-locale-number.d.ts +67 -3
  291. package/dist/components/optical-prescription/index.js +1 -1
  292. package/dist/components/patient-details/index.js +1 -1
  293. package/dist/components/patient-search/index.js +1 -1
  294. package/dist/components/patient-summary-card/index.js +1 -1
  295. package/dist/components/patient-table/index.js +1 -1
  296. package/dist/components/payment-card/index.js +1 -1
  297. package/dist/components/periodontal-diagnosis/index.js +1 -1
  298. package/dist/components/permission-matrix/index.js +1 -1
  299. package/dist/components/practice-results/index.js +1 -1
  300. package/dist/components/pregnancy-dating/index.js +1 -1
  301. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  302. package/dist/components/province-select/index.js +1 -1
  303. package/dist/components/radiograph-panel/index.js +1 -1
  304. package/dist/components/rich-text-editor/index.js +2 -2
  305. package/dist/components/row-actions/index.d.ts +3 -0
  306. package/dist/components/row-actions/index.js +5 -0
  307. package/dist/components/row-actions/row-actions.d.ts +63 -0
  308. package/dist/components/sidebar/index.js +1 -1
  309. package/dist/components/skeleton-scheme/index.js +1 -1
  310. package/dist/components/slot-grid/index.js +1 -1
  311. package/dist/components/smart-date/smart-date.d.ts +1 -1
  312. package/dist/components/tab-bar/index.js +1 -1
  313. package/dist/components/tabs/index.js +1 -1
  314. package/dist/components/tag/index.js +1 -1
  315. package/dist/components/task-card/index.js +1 -1
  316. package/dist/components/task-editor/index.js +1 -1
  317. package/dist/components/task-tray/index.js +1 -1
  318. package/dist/components/tasks-panel/index.js +1 -1
  319. package/dist/components/theme-toggle/index.js +1 -1
  320. package/dist/components/token-insert-menu/index.js +1 -1
  321. package/dist/components/tooth-scheme/index.js +1 -1
  322. package/dist/components/transaction-chip/index.js +1 -1
  323. package/dist/components/transaction-chip/transaction-chip.d.ts +1 -1
  324. package/dist/components/transcript-panel/index.js +1 -1
  325. package/dist/components/treatment-receipt/index.js +1 -1
  326. package/dist/components/unit-converter/index.js +1 -1
  327. package/dist/components/voice-control-panel/index.js +1 -1
  328. package/dist/components/widget-picker/index.js +1 -1
  329. package/dist/components/workflow/index.js +1 -1
  330. package/dist/components/workflow-status/index.js +1 -1
  331. package/dist/core.css +1 -1
  332. package/dist/decimal/index.js +149 -0
  333. package/dist/host-compat.css +36 -2
  334. package/dist/i18n/locales/ar.d.ts +342 -0
  335. package/dist/i18n/locales/ar.js +344 -2
  336. package/dist/i18n/locales/de.d.ts +342 -0
  337. package/dist/i18n/locales/de.js +344 -2
  338. package/dist/i18n/locales/el.d.ts +342 -0
  339. package/dist/i18n/locales/el.js +344 -2
  340. package/dist/i18n/locales/en.d.ts +342 -0
  341. package/dist/i18n/locales/en.js +345 -2
  342. package/dist/i18n/locales/es.d.ts +342 -0
  343. package/dist/i18n/locales/es.js +344 -2
  344. package/dist/i18n/locales/fr.d.ts +342 -0
  345. package/dist/i18n/locales/fr.js +344 -2
  346. package/dist/i18n/locales/hi.d.ts +342 -0
  347. package/dist/i18n/locales/hi.js +344 -2
  348. package/dist/i18n/locales/it.d.ts +342 -0
  349. package/dist/i18n/locales/it.js +344 -2
  350. package/dist/i18n/locales/ja.d.ts +342 -0
  351. package/dist/i18n/locales/ja.js +344 -2
  352. package/dist/i18n/locales/nl.d.ts +342 -0
  353. package/dist/i18n/locales/nl.js +344 -2
  354. package/dist/i18n/locales/pl.d.ts +342 -0
  355. package/dist/i18n/locales/pl.js +344 -2
  356. package/dist/i18n/locales/pt.d.ts +342 -0
  357. package/dist/i18n/locales/pt.js +344 -2
  358. package/dist/i18n/locales/ro.d.ts +342 -0
  359. package/dist/i18n/locales/ro.js +344 -2
  360. package/dist/i18n/locales/ru.d.ts +342 -0
  361. package/dist/i18n/locales/ru.js +344 -2
  362. package/dist/i18n/locales/sq.d.ts +342 -0
  363. package/dist/i18n/locales/sq.js +344 -2
  364. package/dist/i18n/locales/sv.d.ts +342 -0
  365. package/dist/i18n/locales/sv.js +344 -2
  366. package/dist/i18n/locales/tr.d.ts +342 -0
  367. package/dist/i18n/locales/tr.js +344 -2
  368. package/dist/i18n/locales/zh.d.ts +342 -0
  369. package/dist/i18n/locales/zh.js +344 -2
  370. package/dist/index.js +1305 -1241
  371. package/dist/locales/ar.json +344 -2
  372. package/dist/locales/de.json +344 -2
  373. package/dist/locales/el.json +344 -2
  374. package/dist/locales/en.json +344 -2
  375. package/dist/locales/es.json +344 -2
  376. package/dist/locales/fr.json +344 -2
  377. package/dist/locales/hi.json +344 -2
  378. package/dist/locales/it.json +344 -2
  379. package/dist/locales/ja.json +344 -2
  380. package/dist/locales/nl.json +344 -2
  381. package/dist/locales/pl.json +344 -2
  382. package/dist/locales/pt.json +344 -2
  383. package/dist/locales/ro.json +344 -2
  384. package/dist/locales/ru.json +344 -2
  385. package/dist/locales/sq.json +344 -2
  386. package/dist/locales/sv.json +344 -2
  387. package/dist/locales/tr.json +344 -2
  388. package/dist/locales/zh.json +344 -2
  389. package/dist/patterns/alia-assistant/index.js +1 -1
  390. package/dist/patterns/anamnesis/index.js +1 -1
  391. package/dist/patterns/calendar/index.js +1 -1
  392. package/dist/patterns/help-me-write-templates/index.js +1 -1
  393. package/dist/patterns/login-form/index.js +1 -1
  394. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  395. package/dist/patterns/registration-form/index.js +1 -1
  396. package/dist/patterns/send-registration-link-form/index.js +1 -1
  397. package/dist/patterns/signature-request/index.js +1 -1
  398. package/dist/patterns/verify-identity/index.js +1 -1
  399. package/dist/patterns/workflow-webhook-action/index.js +1 -1
  400. package/dist/tokens.css +1 -1
  401. package/package.json +21 -1
  402. package/dist/_chunks/checkbox-a7Sh-dXb.js +0 -227
  403. package/dist/_chunks/combobox-duuDRI1t.js +0 -688
  404. package/dist/_chunks/data-grid.agent-CASyEAnb.js +0 -1773
  405. package/dist/_chunks/data-table-C9idMvs0.js +0 -2042
  406. package/dist/_chunks/data-table-tabs-Db7zToFD.js +0 -728
  407. package/dist/_chunks/dialog-BTjSQjdY.js +0 -274
  408. package/dist/_chunks/format--x5jypvH.js +0 -1319
  409. package/dist/_chunks/format-price-BcFBa-WP.js +0 -52
  410. package/dist/_chunks/icon-button-group-mXvYDaba.js +0 -427
  411. package/dist/_chunks/link-cell-renderer-_Fv3WEmb.js +0 -867
  412. package/dist/_chunks/money-Tsczpjfz.js +0 -102
  413. package/dist/_chunks/number-input-CVwI1ltI.js +0 -423
  414. package/dist/_chunks/privacy-mask-Dc3kdkCR.js +0 -81
  415. package/dist/_chunks/subDays-DKISP2nE.js +0 -8
  416. package/dist/_chunks/undo-2-CYNAzclj.js +0 -26
@@ -1,1319 +0,0 @@
1
- const $e = 6e4, ze = 36e5, Ue = 1e3, N = Symbol.for("constructDateFrom");
2
- function y(n, e) {
3
- return typeof n == "function" ? n(e) : n && typeof n == "object" && N in n ? n[N](e) : n instanceof Date ? new n.constructor(e) : new Date(e);
4
- }
5
- function m(n, e) {
6
- return y(e || n, n);
7
- }
8
- let R = {};
9
- function S() {
10
- return R;
11
- }
12
- function W(n, e) {
13
- var c, o, d, h;
14
- const t = S(), r = (e == null ? void 0 : e.weekStartsOn) ?? ((o = (c = e == null ? void 0 : e.locale) == null ? void 0 : c.options) == null ? void 0 : o.weekStartsOn) ?? t.weekStartsOn ?? ((h = (d = t.locale) == null ? void 0 : d.options) == null ? void 0 : h.weekStartsOn) ?? 0, a = m(n, e == null ? void 0 : e.in), i = a.getDay(), s = (i < r ? 7 : 0) + i - r;
15
- return a.setDate(a.getDate() - s), a.setHours(0, 0, 0, 0), a;
16
- }
17
- function D(n, e) {
18
- return W(n, { ...e, weekStartsOn: 1 });
19
- }
20
- function L(n, e) {
21
- const t = m(n, e == null ? void 0 : e.in), r = t.getFullYear(), a = y(t, 0);
22
- a.setFullYear(r + 1, 0, 4), a.setHours(0, 0, 0, 0);
23
- const i = D(a), s = y(t, 0);
24
- s.setFullYear(r, 0, 4), s.setHours(0, 0, 0, 0);
25
- const c = D(s);
26
- return t.getTime() >= i.getTime() ? r + 1 : t.getTime() >= c.getTime() ? r : r - 1;
27
- }
28
- function _(n) {
29
- const e = m(n), t = new Date(
30
- Date.UTC(
31
- e.getFullYear(),
32
- e.getMonth(),
33
- e.getDate(),
34
- e.getHours(),
35
- e.getMinutes(),
36
- e.getSeconds(),
37
- e.getMilliseconds()
38
- )
39
- );
40
- return t.setUTCFullYear(e.getFullYear()), +n - +t;
41
- }
42
- function G(n, ...e) {
43
- const t = y.bind(
44
- null,
45
- n || e.find((r) => typeof r == "object")
46
- );
47
- return e.map(t);
48
- }
49
- function v(n, e) {
50
- const t = m(n, e == null ? void 0 : e.in);
51
- return t.setHours(0, 0, 0, 0), t;
52
- }
53
- function V(n, e, t) {
54
- const [r, a] = G(
55
- t == null ? void 0 : t.in,
56
- n,
57
- e
58
- ), i = v(r), s = v(a), c = +i - _(i), o = +s - _(s);
59
- return Math.round((c - o) / 864e5);
60
- }
61
- function J(n, e) {
62
- const t = L(n, e), r = y(n, 0);
63
- return r.setFullYear(t, 0, 4), r.setHours(0, 0, 0, 0), D(r);
64
- }
65
- function Ke(n, e, t) {
66
- const [r, a] = G(
67
- t == null ? void 0 : t.in,
68
- n,
69
- e
70
- );
71
- return +v(r) == +v(a);
72
- }
73
- function $(n) {
74
- return n instanceof Date || typeof n == "object" && Object.prototype.toString.call(n) === "[object Date]";
75
- }
76
- function z(n) {
77
- return !(!$(n) && typeof n != "number" || isNaN(+m(n)));
78
- }
79
- function U(n, e) {
80
- const t = m(n, e == null ? void 0 : e.in);
81
- return t.setFullYear(t.getFullYear(), 0, 1), t.setHours(0, 0, 0, 0), t;
82
- }
83
- const K = {
84
- lessThanXSeconds: {
85
- one: "less than a second",
86
- other: "less than {{count}} seconds"
87
- },
88
- xSeconds: {
89
- one: "1 second",
90
- other: "{{count}} seconds"
91
- },
92
- halfAMinute: "half a minute",
93
- lessThanXMinutes: {
94
- one: "less than a minute",
95
- other: "less than {{count}} minutes"
96
- },
97
- xMinutes: {
98
- one: "1 minute",
99
- other: "{{count}} minutes"
100
- },
101
- aboutXHours: {
102
- one: "about 1 hour",
103
- other: "about {{count}} hours"
104
- },
105
- xHours: {
106
- one: "1 hour",
107
- other: "{{count}} hours"
108
- },
109
- xDays: {
110
- one: "1 day",
111
- other: "{{count}} days"
112
- },
113
- aboutXWeeks: {
114
- one: "about 1 week",
115
- other: "about {{count}} weeks"
116
- },
117
- xWeeks: {
118
- one: "1 week",
119
- other: "{{count}} weeks"
120
- },
121
- aboutXMonths: {
122
- one: "about 1 month",
123
- other: "about {{count}} months"
124
- },
125
- xMonths: {
126
- one: "1 month",
127
- other: "{{count}} months"
128
- },
129
- aboutXYears: {
130
- one: "about 1 year",
131
- other: "about {{count}} years"
132
- },
133
- xYears: {
134
- one: "1 year",
135
- other: "{{count}} years"
136
- },
137
- overXYears: {
138
- one: "over 1 year",
139
- other: "over {{count}} years"
140
- },
141
- almostXYears: {
142
- one: "almost 1 year",
143
- other: "almost {{count}} years"
144
- }
145
- }, Z = (n, e, t) => {
146
- let r;
147
- const a = K[n];
148
- return typeof a == "string" ? r = a : e === 1 ? r = a.one : r = a.other.replace("{{count}}", e.toString()), t != null && t.addSuffix ? t.comparison && t.comparison > 0 ? "in " + r : r + " ago" : r;
149
- };
150
- function T(n) {
151
- return (e = {}) => {
152
- const t = e.width ? String(e.width) : n.defaultWidth;
153
- return n.formats[t] || n.formats[n.defaultWidth];
154
- };
155
- }
156
- const p = {
157
- full: "EEEE, MMMM do, y",
158
- long: "MMMM do, y",
159
- medium: "MMM d, y",
160
- short: "MM/dd/yyyy"
161
- }, ee = {
162
- full: "h:mm:ss a zzzz",
163
- long: "h:mm:ss a z",
164
- medium: "h:mm:ss a",
165
- short: "h:mm a"
166
- }, te = {
167
- full: "{{date}} 'at' {{time}}",
168
- long: "{{date}} 'at' {{time}}",
169
- medium: "{{date}}, {{time}}",
170
- short: "{{date}}, {{time}}"
171
- }, ne = {
172
- date: T({
173
- formats: p,
174
- defaultWidth: "full"
175
- }),
176
- time: T({
177
- formats: ee,
178
- defaultWidth: "full"
179
- }),
180
- dateTime: T({
181
- formats: te,
182
- defaultWidth: "full"
183
- })
184
- }, re = {
185
- lastWeek: "'last' eeee 'at' p",
186
- yesterday: "'yesterday at' p",
187
- today: "'today at' p",
188
- tomorrow: "'tomorrow at' p",
189
- nextWeek: "eeee 'at' p",
190
- other: "P"
191
- }, ae = (n, e, t, r) => re[n];
192
- function k(n) {
193
- return (e, t) => {
194
- const r = t != null && t.context ? String(t.context) : "standalone";
195
- let a;
196
- if (r === "formatting" && n.formattingValues) {
197
- const s = n.defaultFormattingWidth || n.defaultWidth, c = t != null && t.width ? String(t.width) : s;
198
- a = n.formattingValues[c] || n.formattingValues[s];
199
- } else {
200
- const s = n.defaultWidth, c = t != null && t.width ? String(t.width) : n.defaultWidth;
201
- a = n.values[c] || n.values[s];
202
- }
203
- const i = n.argumentCallback ? n.argumentCallback(e) : e;
204
- return a[i];
205
- };
206
- }
207
- const ie = {
208
- narrow: ["B", "A"],
209
- abbreviated: ["BC", "AD"],
210
- wide: ["Before Christ", "Anno Domini"]
211
- }, se = {
212
- narrow: ["1", "2", "3", "4"],
213
- abbreviated: ["Q1", "Q2", "Q3", "Q4"],
214
- wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
215
- }, ue = {
216
- narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
217
- abbreviated: [
218
- "Jan",
219
- "Feb",
220
- "Mar",
221
- "Apr",
222
- "May",
223
- "Jun",
224
- "Jul",
225
- "Aug",
226
- "Sep",
227
- "Oct",
228
- "Nov",
229
- "Dec"
230
- ],
231
- wide: [
232
- "January",
233
- "February",
234
- "March",
235
- "April",
236
- "May",
237
- "June",
238
- "July",
239
- "August",
240
- "September",
241
- "October",
242
- "November",
243
- "December"
244
- ]
245
- }, ce = {
246
- narrow: ["S", "M", "T", "W", "T", "F", "S"],
247
- short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
248
- abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
249
- wide: [
250
- "Sunday",
251
- "Monday",
252
- "Tuesday",
253
- "Wednesday",
254
- "Thursday",
255
- "Friday",
256
- "Saturday"
257
- ]
258
- }, oe = {
259
- narrow: {
260
- am: "a",
261
- pm: "p",
262
- midnight: "mi",
263
- noon: "n",
264
- morning: "morning",
265
- afternoon: "afternoon",
266
- evening: "evening",
267
- night: "night"
268
- },
269
- abbreviated: {
270
- am: "AM",
271
- pm: "PM",
272
- midnight: "midnight",
273
- noon: "noon",
274
- morning: "morning",
275
- afternoon: "afternoon",
276
- evening: "evening",
277
- night: "night"
278
- },
279
- wide: {
280
- am: "a.m.",
281
- pm: "p.m.",
282
- midnight: "midnight",
283
- noon: "noon",
284
- morning: "morning",
285
- afternoon: "afternoon",
286
- evening: "evening",
287
- night: "night"
288
- }
289
- }, de = {
290
- narrow: {
291
- am: "a",
292
- pm: "p",
293
- midnight: "mi",
294
- noon: "n",
295
- morning: "in the morning",
296
- afternoon: "in the afternoon",
297
- evening: "in the evening",
298
- night: "at night"
299
- },
300
- abbreviated: {
301
- am: "AM",
302
- pm: "PM",
303
- midnight: "midnight",
304
- noon: "noon",
305
- morning: "in the morning",
306
- afternoon: "in the afternoon",
307
- evening: "in the evening",
308
- night: "at night"
309
- },
310
- wide: {
311
- am: "a.m.",
312
- pm: "p.m.",
313
- midnight: "midnight",
314
- noon: "noon",
315
- morning: "in the morning",
316
- afternoon: "in the afternoon",
317
- evening: "in the evening",
318
- night: "at night"
319
- }
320
- }, fe = (n, e) => {
321
- const t = Number(n), r = t % 100;
322
- if (r > 20 || r < 10)
323
- switch (r % 10) {
324
- case 1:
325
- return t + "st";
326
- case 2:
327
- return t + "nd";
328
- case 3:
329
- return t + "rd";
330
- }
331
- return t + "th";
332
- }, he = {
333
- ordinalNumber: fe,
334
- era: k({
335
- values: ie,
336
- defaultWidth: "wide"
337
- }),
338
- quarter: k({
339
- values: se,
340
- defaultWidth: "wide",
341
- argumentCallback: (n) => n - 1
342
- }),
343
- month: k({
344
- values: ue,
345
- defaultWidth: "wide"
346
- }),
347
- day: k({
348
- values: ce,
349
- defaultWidth: "wide"
350
- }),
351
- dayPeriod: k({
352
- values: oe,
353
- defaultWidth: "wide",
354
- formattingValues: de,
355
- defaultFormattingWidth: "wide"
356
- })
357
- };
358
- function x(n) {
359
- return (e, t = {}) => {
360
- const r = t.width, a = r && n.matchPatterns[r] || n.matchPatterns[n.defaultMatchWidth], i = e.match(a);
361
- if (!i)
362
- return null;
363
- const s = i[0], c = r && n.parsePatterns[r] || n.parsePatterns[n.defaultParseWidth], o = Array.isArray(c) ? me(c, (g) => g.test(s)) : (
364
- // [TODO] -- I challenge you to fix the type
365
- le(c, (g) => g.test(s))
366
- );
367
- let d;
368
- d = n.valueCallback ? n.valueCallback(o) : o, d = t.valueCallback ? (
369
- // [TODO] -- I challenge you to fix the type
370
- t.valueCallback(d)
371
- ) : d;
372
- const h = e.slice(s.length);
373
- return { value: d, rest: h };
374
- };
375
- }
376
- function le(n, e) {
377
- for (const t in n)
378
- if (Object.prototype.hasOwnProperty.call(n, t) && e(n[t]))
379
- return t;
380
- }
381
- function me(n, e) {
382
- for (let t = 0; t < n.length; t++)
383
- if (e(n[t]))
384
- return t;
385
- }
386
- function ge(n) {
387
- return (e, t = {}) => {
388
- const r = e.match(n.matchPattern);
389
- if (!r) return null;
390
- const a = r[0], i = e.match(n.parsePattern);
391
- if (!i) return null;
392
- let s = n.valueCallback ? n.valueCallback(i[0]) : i[0];
393
- s = t.valueCallback ? t.valueCallback(s) : s;
394
- const c = e.slice(a.length);
395
- return { value: s, rest: c };
396
- };
397
- }
398
- const we = /^(\d+)(th|st|nd|rd)?/i, ye = /\d+/i, be = {
399
- narrow: /^(b|a)/i,
400
- abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
401
- wide: /^(before christ|before common era|anno domini|common era)/i
402
- }, Me = {
403
- any: [/^b/i, /^(a|c)/i]
404
- }, Pe = {
405
- narrow: /^[1234]/i,
406
- abbreviated: /^q[1234]/i,
407
- wide: /^[1234](th|st|nd|rd)? quarter/i
408
- }, Oe = {
409
- any: [/1/i, /2/i, /3/i, /4/i]
410
- }, ke = {
411
- narrow: /^[jfmasond]/i,
412
- abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
413
- wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
414
- }, xe = {
415
- narrow: [
416
- /^j/i,
417
- /^f/i,
418
- /^m/i,
419
- /^a/i,
420
- /^m/i,
421
- /^j/i,
422
- /^j/i,
423
- /^a/i,
424
- /^s/i,
425
- /^o/i,
426
- /^n/i,
427
- /^d/i
428
- ],
429
- any: [
430
- /^ja/i,
431
- /^f/i,
432
- /^mar/i,
433
- /^ap/i,
434
- /^may/i,
435
- /^jun/i,
436
- /^jul/i,
437
- /^au/i,
438
- /^s/i,
439
- /^o/i,
440
- /^n/i,
441
- /^d/i
442
- ]
443
- }, We = {
444
- narrow: /^[smtwf]/i,
445
- short: /^(su|mo|tu|we|th|fr|sa)/i,
446
- abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
447
- wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
448
- }, De = {
449
- narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
450
- any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
451
- }, ve = {
452
- narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
453
- any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
454
- }, Se = {
455
- any: {
456
- am: /^a/i,
457
- pm: /^p/i,
458
- midnight: /^mi/i,
459
- noon: /^no/i,
460
- morning: /morning/i,
461
- afternoon: /afternoon/i,
462
- evening: /evening/i,
463
- night: /night/i
464
- }
465
- }, Ye = {
466
- ordinalNumber: ge({
467
- matchPattern: we,
468
- parsePattern: ye,
469
- valueCallback: (n) => parseInt(n, 10)
470
- }),
471
- era: x({
472
- matchPatterns: be,
473
- defaultMatchWidth: "wide",
474
- parsePatterns: Me,
475
- defaultParseWidth: "any"
476
- }),
477
- quarter: x({
478
- matchPatterns: Pe,
479
- defaultMatchWidth: "wide",
480
- parsePatterns: Oe,
481
- defaultParseWidth: "any",
482
- valueCallback: (n) => n + 1
483
- }),
484
- month: x({
485
- matchPatterns: ke,
486
- defaultMatchWidth: "wide",
487
- parsePatterns: xe,
488
- defaultParseWidth: "any"
489
- }),
490
- day: x({
491
- matchPatterns: We,
492
- defaultMatchWidth: "wide",
493
- parsePatterns: De,
494
- defaultParseWidth: "any"
495
- }),
496
- dayPeriod: x({
497
- matchPatterns: ve,
498
- defaultMatchWidth: "any",
499
- parsePatterns: Se,
500
- defaultParseWidth: "any"
501
- })
502
- }, I = {
503
- code: "en-US",
504
- formatDistance: Z,
505
- formatLong: ne,
506
- formatRelative: ae,
507
- localize: he,
508
- match: Ye,
509
- options: {
510
- weekStartsOn: 0,
511
- firstWeekContainsDate: 1
512
- }
513
- }, Ze = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
514
- __proto__: null,
515
- enUS: I
516
- }, Symbol.toStringTag, { value: "Module" }));
517
- function Te(n, e) {
518
- const t = m(n, e == null ? void 0 : e.in);
519
- return V(t, U(t)) + 1;
520
- }
521
- function Fe(n, e) {
522
- const t = m(n, e == null ? void 0 : e.in), r = +D(t) - +J(t);
523
- return Math.round(r / 6048e5) + 1;
524
- }
525
- function B(n, e) {
526
- var h, g, P, O;
527
- const t = m(n, e == null ? void 0 : e.in), r = t.getFullYear(), a = S(), i = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((g = (h = e == null ? void 0 : e.locale) == null ? void 0 : h.options) == null ? void 0 : g.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((O = (P = a.locale) == null ? void 0 : P.options) == null ? void 0 : O.firstWeekContainsDate) ?? 1, s = y((e == null ? void 0 : e.in) || n, 0);
528
- s.setFullYear(r + 1, 0, i), s.setHours(0, 0, 0, 0);
529
- const c = W(s, e), o = y((e == null ? void 0 : e.in) || n, 0);
530
- o.setFullYear(r, 0, i), o.setHours(0, 0, 0, 0);
531
- const d = W(o, e);
532
- return +t >= +c ? r + 1 : +t >= +d ? r : r - 1;
533
- }
534
- function Ee(n, e) {
535
- var c, o, d, h;
536
- const t = S(), r = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((o = (c = e == null ? void 0 : e.locale) == null ? void 0 : c.options) == null ? void 0 : o.firstWeekContainsDate) ?? t.firstWeekContainsDate ?? ((h = (d = t.locale) == null ? void 0 : d.options) == null ? void 0 : h.firstWeekContainsDate) ?? 1, a = B(n, e), i = y((e == null ? void 0 : e.in) || n, 0);
537
- return i.setFullYear(a, 0, r), i.setHours(0, 0, 0, 0), W(i, e);
538
- }
539
- function Ce(n, e) {
540
- const t = m(n, e == null ? void 0 : e.in), r = +W(t, e) - +Ee(t, e);
541
- return Math.round(r / 6048e5) + 1;
542
- }
543
- function u(n, e) {
544
- const t = n < 0 ? "-" : "", r = Math.abs(n).toString().padStart(e, "0");
545
- return t + r;
546
- }
547
- const w = {
548
- // Year
549
- y(n, e) {
550
- const t = n.getFullYear(), r = t > 0 ? t : 1 - t;
551
- return u(e === "yy" ? r % 100 : r, e.length);
552
- },
553
- // Month
554
- M(n, e) {
555
- const t = n.getMonth();
556
- return e === "M" ? String(t + 1) : u(t + 1, 2);
557
- },
558
- // Day of the month
559
- d(n, e) {
560
- return u(n.getDate(), e.length);
561
- },
562
- // AM or PM
563
- a(n, e) {
564
- const t = n.getHours() / 12 >= 1 ? "pm" : "am";
565
- switch (e) {
566
- case "a":
567
- case "aa":
568
- return t.toUpperCase();
569
- case "aaa":
570
- return t;
571
- case "aaaaa":
572
- return t[0];
573
- case "aaaa":
574
- default:
575
- return t === "am" ? "a.m." : "p.m.";
576
- }
577
- },
578
- // Hour [1-12]
579
- h(n, e) {
580
- return u(n.getHours() % 12 || 12, e.length);
581
- },
582
- // Hour [0-23]
583
- H(n, e) {
584
- return u(n.getHours(), e.length);
585
- },
586
- // Minute
587
- m(n, e) {
588
- return u(n.getMinutes(), e.length);
589
- },
590
- // Second
591
- s(n, e) {
592
- return u(n.getSeconds(), e.length);
593
- },
594
- // Fraction of second
595
- S(n, e) {
596
- const t = e.length, r = n.getMilliseconds(), a = Math.trunc(
597
- r * Math.pow(10, t - 3)
598
- );
599
- return u(a, e.length);
600
- }
601
- }, M = {
602
- midnight: "midnight",
603
- noon: "noon",
604
- morning: "morning",
605
- afternoon: "afternoon",
606
- evening: "evening",
607
- night: "night"
608
- }, H = {
609
- // Era
610
- G: function(n, e, t) {
611
- const r = n.getFullYear() > 0 ? 1 : 0;
612
- switch (e) {
613
- // AD, BC
614
- case "G":
615
- case "GG":
616
- case "GGG":
617
- return t.era(r, { width: "abbreviated" });
618
- // A, B
619
- case "GGGGG":
620
- return t.era(r, { width: "narrow" });
621
- // Anno Domini, Before Christ
622
- case "GGGG":
623
- default:
624
- return t.era(r, { width: "wide" });
625
- }
626
- },
627
- // Year
628
- y: function(n, e, t) {
629
- if (e === "yo") {
630
- const r = n.getFullYear(), a = r > 0 ? r : 1 - r;
631
- return t.ordinalNumber(a, { unit: "year" });
632
- }
633
- return w.y(n, e);
634
- },
635
- // Local week-numbering year
636
- Y: function(n, e, t, r) {
637
- const a = B(n, r), i = a > 0 ? a : 1 - a;
638
- if (e === "YY") {
639
- const s = i % 100;
640
- return u(s, 2);
641
- }
642
- return e === "Yo" ? t.ordinalNumber(i, { unit: "year" }) : u(i, e.length);
643
- },
644
- // ISO week-numbering year
645
- R: function(n, e) {
646
- const t = L(n);
647
- return u(t, e.length);
648
- },
649
- // Extended year. This is a single number designating the year of this calendar system.
650
- // The main difference between `y` and `u` localizers are B.C. years:
651
- // | Year | `y` | `u` |
652
- // |------|-----|-----|
653
- // | AC 1 | 1 | 1 |
654
- // | BC 1 | 1 | 0 |
655
- // | BC 2 | 2 | -1 |
656
- // Also `yy` always returns the last two digits of a year,
657
- // while `uu` pads single digit years to 2 characters and returns other years unchanged.
658
- u: function(n, e) {
659
- const t = n.getFullYear();
660
- return u(t, e.length);
661
- },
662
- // Quarter
663
- Q: function(n, e, t) {
664
- const r = Math.ceil((n.getMonth() + 1) / 3);
665
- switch (e) {
666
- // 1, 2, 3, 4
667
- case "Q":
668
- return String(r);
669
- // 01, 02, 03, 04
670
- case "QQ":
671
- return u(r, 2);
672
- // 1st, 2nd, 3rd, 4th
673
- case "Qo":
674
- return t.ordinalNumber(r, { unit: "quarter" });
675
- // Q1, Q2, Q3, Q4
676
- case "QQQ":
677
- return t.quarter(r, {
678
- width: "abbreviated",
679
- context: "formatting"
680
- });
681
- // 1, 2, 3, 4 (narrow quarter; could be not numerical)
682
- case "QQQQQ":
683
- return t.quarter(r, {
684
- width: "narrow",
685
- context: "formatting"
686
- });
687
- // 1st quarter, 2nd quarter, ...
688
- case "QQQQ":
689
- default:
690
- return t.quarter(r, {
691
- width: "wide",
692
- context: "formatting"
693
- });
694
- }
695
- },
696
- // Stand-alone quarter
697
- q: function(n, e, t) {
698
- const r = Math.ceil((n.getMonth() + 1) / 3);
699
- switch (e) {
700
- // 1, 2, 3, 4
701
- case "q":
702
- return String(r);
703
- // 01, 02, 03, 04
704
- case "qq":
705
- return u(r, 2);
706
- // 1st, 2nd, 3rd, 4th
707
- case "qo":
708
- return t.ordinalNumber(r, { unit: "quarter" });
709
- // Q1, Q2, Q3, Q4
710
- case "qqq":
711
- return t.quarter(r, {
712
- width: "abbreviated",
713
- context: "standalone"
714
- });
715
- // 1, 2, 3, 4 (narrow quarter; could be not numerical)
716
- case "qqqqq":
717
- return t.quarter(r, {
718
- width: "narrow",
719
- context: "standalone"
720
- });
721
- // 1st quarter, 2nd quarter, ...
722
- case "qqqq":
723
- default:
724
- return t.quarter(r, {
725
- width: "wide",
726
- context: "standalone"
727
- });
728
- }
729
- },
730
- // Month
731
- M: function(n, e, t) {
732
- const r = n.getMonth();
733
- switch (e) {
734
- case "M":
735
- case "MM":
736
- return w.M(n, e);
737
- // 1st, 2nd, ..., 12th
738
- case "Mo":
739
- return t.ordinalNumber(r + 1, { unit: "month" });
740
- // Jan, Feb, ..., Dec
741
- case "MMM":
742
- return t.month(r, {
743
- width: "abbreviated",
744
- context: "formatting"
745
- });
746
- // J, F, ..., D
747
- case "MMMMM":
748
- return t.month(r, {
749
- width: "narrow",
750
- context: "formatting"
751
- });
752
- // January, February, ..., December
753
- case "MMMM":
754
- default:
755
- return t.month(r, { width: "wide", context: "formatting" });
756
- }
757
- },
758
- // Stand-alone month
759
- L: function(n, e, t) {
760
- const r = n.getMonth();
761
- switch (e) {
762
- // 1, 2, ..., 12
763
- case "L":
764
- return String(r + 1);
765
- // 01, 02, ..., 12
766
- case "LL":
767
- return u(r + 1, 2);
768
- // 1st, 2nd, ..., 12th
769
- case "Lo":
770
- return t.ordinalNumber(r + 1, { unit: "month" });
771
- // Jan, Feb, ..., Dec
772
- case "LLL":
773
- return t.month(r, {
774
- width: "abbreviated",
775
- context: "standalone"
776
- });
777
- // J, F, ..., D
778
- case "LLLLL":
779
- return t.month(r, {
780
- width: "narrow",
781
- context: "standalone"
782
- });
783
- // January, February, ..., December
784
- case "LLLL":
785
- default:
786
- return t.month(r, { width: "wide", context: "standalone" });
787
- }
788
- },
789
- // Local week of year
790
- w: function(n, e, t, r) {
791
- const a = Ce(n, r);
792
- return e === "wo" ? t.ordinalNumber(a, { unit: "week" }) : u(a, e.length);
793
- },
794
- // ISO week of year
795
- I: function(n, e, t) {
796
- const r = Fe(n);
797
- return e === "Io" ? t.ordinalNumber(r, { unit: "week" }) : u(r, e.length);
798
- },
799
- // Day of the month
800
- d: function(n, e, t) {
801
- return e === "do" ? t.ordinalNumber(n.getDate(), { unit: "date" }) : w.d(n, e);
802
- },
803
- // Day of year
804
- D: function(n, e, t) {
805
- const r = Te(n);
806
- return e === "Do" ? t.ordinalNumber(r, { unit: "dayOfYear" }) : u(r, e.length);
807
- },
808
- // Day of week
809
- E: function(n, e, t) {
810
- const r = n.getDay();
811
- switch (e) {
812
- // Tue
813
- case "E":
814
- case "EE":
815
- case "EEE":
816
- return t.day(r, {
817
- width: "abbreviated",
818
- context: "formatting"
819
- });
820
- // T
821
- case "EEEEE":
822
- return t.day(r, {
823
- width: "narrow",
824
- context: "formatting"
825
- });
826
- // Tu
827
- case "EEEEEE":
828
- return t.day(r, {
829
- width: "short",
830
- context: "formatting"
831
- });
832
- // Tuesday
833
- case "EEEE":
834
- default:
835
- return t.day(r, {
836
- width: "wide",
837
- context: "formatting"
838
- });
839
- }
840
- },
841
- // Local day of week
842
- e: function(n, e, t, r) {
843
- const a = n.getDay(), i = (a - r.weekStartsOn + 8) % 7 || 7;
844
- switch (e) {
845
- // Numerical value (Nth day of week with current locale or weekStartsOn)
846
- case "e":
847
- return String(i);
848
- // Padded numerical value
849
- case "ee":
850
- return u(i, 2);
851
- // 1st, 2nd, ..., 7th
852
- case "eo":
853
- return t.ordinalNumber(i, { unit: "day" });
854
- case "eee":
855
- return t.day(a, {
856
- width: "abbreviated",
857
- context: "formatting"
858
- });
859
- // T
860
- case "eeeee":
861
- return t.day(a, {
862
- width: "narrow",
863
- context: "formatting"
864
- });
865
- // Tu
866
- case "eeeeee":
867
- return t.day(a, {
868
- width: "short",
869
- context: "formatting"
870
- });
871
- // Tuesday
872
- case "eeee":
873
- default:
874
- return t.day(a, {
875
- width: "wide",
876
- context: "formatting"
877
- });
878
- }
879
- },
880
- // Stand-alone local day of week
881
- c: function(n, e, t, r) {
882
- const a = n.getDay(), i = (a - r.weekStartsOn + 8) % 7 || 7;
883
- switch (e) {
884
- // Numerical value (same as in `e`)
885
- case "c":
886
- return String(i);
887
- // Padded numerical value
888
- case "cc":
889
- return u(i, e.length);
890
- // 1st, 2nd, ..., 7th
891
- case "co":
892
- return t.ordinalNumber(i, { unit: "day" });
893
- case "ccc":
894
- return t.day(a, {
895
- width: "abbreviated",
896
- context: "standalone"
897
- });
898
- // T
899
- case "ccccc":
900
- return t.day(a, {
901
- width: "narrow",
902
- context: "standalone"
903
- });
904
- // Tu
905
- case "cccccc":
906
- return t.day(a, {
907
- width: "short",
908
- context: "standalone"
909
- });
910
- // Tuesday
911
- case "cccc":
912
- default:
913
- return t.day(a, {
914
- width: "wide",
915
- context: "standalone"
916
- });
917
- }
918
- },
919
- // ISO day of week
920
- i: function(n, e, t) {
921
- const r = n.getDay(), a = r === 0 ? 7 : r;
922
- switch (e) {
923
- // 2
924
- case "i":
925
- return String(a);
926
- // 02
927
- case "ii":
928
- return u(a, e.length);
929
- // 2nd
930
- case "io":
931
- return t.ordinalNumber(a, { unit: "day" });
932
- // Tue
933
- case "iii":
934
- return t.day(r, {
935
- width: "abbreviated",
936
- context: "formatting"
937
- });
938
- // T
939
- case "iiiii":
940
- return t.day(r, {
941
- width: "narrow",
942
- context: "formatting"
943
- });
944
- // Tu
945
- case "iiiiii":
946
- return t.day(r, {
947
- width: "short",
948
- context: "formatting"
949
- });
950
- // Tuesday
951
- case "iiii":
952
- default:
953
- return t.day(r, {
954
- width: "wide",
955
- context: "formatting"
956
- });
957
- }
958
- },
959
- // AM or PM
960
- a: function(n, e, t) {
961
- const a = n.getHours() / 12 >= 1 ? "pm" : "am";
962
- switch (e) {
963
- case "a":
964
- case "aa":
965
- return t.dayPeriod(a, {
966
- width: "abbreviated",
967
- context: "formatting"
968
- });
969
- case "aaa":
970
- return t.dayPeriod(a, {
971
- width: "abbreviated",
972
- context: "formatting"
973
- }).toLowerCase();
974
- case "aaaaa":
975
- return t.dayPeriod(a, {
976
- width: "narrow",
977
- context: "formatting"
978
- });
979
- case "aaaa":
980
- default:
981
- return t.dayPeriod(a, {
982
- width: "wide",
983
- context: "formatting"
984
- });
985
- }
986
- },
987
- // AM, PM, midnight, noon
988
- b: function(n, e, t) {
989
- const r = n.getHours();
990
- let a;
991
- switch (r === 12 ? a = M.noon : r === 0 ? a = M.midnight : a = r / 12 >= 1 ? "pm" : "am", e) {
992
- case "b":
993
- case "bb":
994
- return t.dayPeriod(a, {
995
- width: "abbreviated",
996
- context: "formatting"
997
- });
998
- case "bbb":
999
- return t.dayPeriod(a, {
1000
- width: "abbreviated",
1001
- context: "formatting"
1002
- }).toLowerCase();
1003
- case "bbbbb":
1004
- return t.dayPeriod(a, {
1005
- width: "narrow",
1006
- context: "formatting"
1007
- });
1008
- case "bbbb":
1009
- default:
1010
- return t.dayPeriod(a, {
1011
- width: "wide",
1012
- context: "formatting"
1013
- });
1014
- }
1015
- },
1016
- // in the morning, in the afternoon, in the evening, at night
1017
- B: function(n, e, t) {
1018
- const r = n.getHours();
1019
- let a;
1020
- switch (r >= 17 ? a = M.evening : r >= 12 ? a = M.afternoon : r >= 4 ? a = M.morning : a = M.night, e) {
1021
- case "B":
1022
- case "BB":
1023
- case "BBB":
1024
- return t.dayPeriod(a, {
1025
- width: "abbreviated",
1026
- context: "formatting"
1027
- });
1028
- case "BBBBB":
1029
- return t.dayPeriod(a, {
1030
- width: "narrow",
1031
- context: "formatting"
1032
- });
1033
- case "BBBB":
1034
- default:
1035
- return t.dayPeriod(a, {
1036
- width: "wide",
1037
- context: "formatting"
1038
- });
1039
- }
1040
- },
1041
- // Hour [1-12]
1042
- h: function(n, e, t) {
1043
- if (e === "ho") {
1044
- let r = n.getHours() % 12;
1045
- return r === 0 && (r = 12), t.ordinalNumber(r, { unit: "hour" });
1046
- }
1047
- return w.h(n, e);
1048
- },
1049
- // Hour [0-23]
1050
- H: function(n, e, t) {
1051
- return e === "Ho" ? t.ordinalNumber(n.getHours(), { unit: "hour" }) : w.H(n, e);
1052
- },
1053
- // Hour [0-11]
1054
- K: function(n, e, t) {
1055
- const r = n.getHours() % 12;
1056
- return e === "Ko" ? t.ordinalNumber(r, { unit: "hour" }) : u(r, e.length);
1057
- },
1058
- // Hour [1-24]
1059
- k: function(n, e, t) {
1060
- let r = n.getHours();
1061
- return r === 0 && (r = 24), e === "ko" ? t.ordinalNumber(r, { unit: "hour" }) : u(r, e.length);
1062
- },
1063
- // Minute
1064
- m: function(n, e, t) {
1065
- return e === "mo" ? t.ordinalNumber(n.getMinutes(), { unit: "minute" }) : w.m(n, e);
1066
- },
1067
- // Second
1068
- s: function(n, e, t) {
1069
- return e === "so" ? t.ordinalNumber(n.getSeconds(), { unit: "second" }) : w.s(n, e);
1070
- },
1071
- // Fraction of second
1072
- S: function(n, e) {
1073
- return w.S(n, e);
1074
- },
1075
- // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
1076
- X: function(n, e, t) {
1077
- const r = n.getTimezoneOffset();
1078
- if (r === 0)
1079
- return "Z";
1080
- switch (e) {
1081
- // Hours and optional minutes
1082
- case "X":
1083
- return X(r);
1084
- // Hours, minutes and optional seconds without `:` delimiter
1085
- // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1086
- // so this token always has the same output as `XX`
1087
- case "XXXX":
1088
- case "XX":
1089
- return b(r);
1090
- // Hours, minutes and optional seconds with `:` delimiter
1091
- // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1092
- // so this token always has the same output as `XXX`
1093
- case "XXXXX":
1094
- case "XXX":
1095
- // Hours and minutes with `:` delimiter
1096
- default:
1097
- return b(r, ":");
1098
- }
1099
- },
1100
- // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
1101
- x: function(n, e, t) {
1102
- const r = n.getTimezoneOffset();
1103
- switch (e) {
1104
- // Hours and optional minutes
1105
- case "x":
1106
- return X(r);
1107
- // Hours, minutes and optional seconds without `:` delimiter
1108
- // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1109
- // so this token always has the same output as `xx`
1110
- case "xxxx":
1111
- case "xx":
1112
- return b(r);
1113
- // Hours, minutes and optional seconds with `:` delimiter
1114
- // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1115
- // so this token always has the same output as `xxx`
1116
- case "xxxxx":
1117
- case "xxx":
1118
- // Hours and minutes with `:` delimiter
1119
- default:
1120
- return b(r, ":");
1121
- }
1122
- },
1123
- // Timezone (GMT)
1124
- O: function(n, e, t) {
1125
- const r = n.getTimezoneOffset();
1126
- switch (e) {
1127
- // Short
1128
- case "O":
1129
- case "OO":
1130
- case "OOO":
1131
- return "GMT" + Q(r, ":");
1132
- // Long
1133
- case "OOOO":
1134
- default:
1135
- return "GMT" + b(r, ":");
1136
- }
1137
- },
1138
- // Timezone (specific non-location)
1139
- z: function(n, e, t) {
1140
- const r = n.getTimezoneOffset();
1141
- switch (e) {
1142
- // Short
1143
- case "z":
1144
- case "zz":
1145
- case "zzz":
1146
- return "GMT" + Q(r, ":");
1147
- // Long
1148
- case "zzzz":
1149
- default:
1150
- return "GMT" + b(r, ":");
1151
- }
1152
- },
1153
- // Seconds timestamp
1154
- t: function(n, e, t) {
1155
- const r = Math.trunc(+n / 1e3);
1156
- return u(r, e.length);
1157
- },
1158
- // Milliseconds timestamp
1159
- T: function(n, e, t) {
1160
- return u(+n, e.length);
1161
- }
1162
- };
1163
- function Q(n, e = "") {
1164
- const t = n > 0 ? "-" : "+", r = Math.abs(n), a = Math.trunc(r / 60), i = r % 60;
1165
- return i === 0 ? t + String(a) : t + String(a) + e + u(i, 2);
1166
- }
1167
- function X(n, e) {
1168
- return n % 60 === 0 ? (n > 0 ? "-" : "+") + u(Math.abs(n) / 60, 2) : b(n, e);
1169
- }
1170
- function b(n, e = "") {
1171
- const t = n > 0 ? "-" : "+", r = Math.abs(n), a = u(Math.trunc(r / 60), 2), i = u(r % 60, 2);
1172
- return t + a + e + i;
1173
- }
1174
- const j = (n, e) => {
1175
- switch (n) {
1176
- case "P":
1177
- return e.date({ width: "short" });
1178
- case "PP":
1179
- return e.date({ width: "medium" });
1180
- case "PPP":
1181
- return e.date({ width: "long" });
1182
- case "PPPP":
1183
- default:
1184
- return e.date({ width: "full" });
1185
- }
1186
- }, A = (n, e) => {
1187
- switch (n) {
1188
- case "p":
1189
- return e.time({ width: "short" });
1190
- case "pp":
1191
- return e.time({ width: "medium" });
1192
- case "ppp":
1193
- return e.time({ width: "long" });
1194
- case "pppp":
1195
- default:
1196
- return e.time({ width: "full" });
1197
- }
1198
- }, qe = (n, e) => {
1199
- const t = n.match(/(P+)(p+)?/) || [], r = t[1], a = t[2];
1200
- if (!a)
1201
- return j(n, e);
1202
- let i;
1203
- switch (r) {
1204
- case "P":
1205
- i = e.dateTime({ width: "short" });
1206
- break;
1207
- case "PP":
1208
- i = e.dateTime({ width: "medium" });
1209
- break;
1210
- case "PPP":
1211
- i = e.dateTime({ width: "long" });
1212
- break;
1213
- case "PPPP":
1214
- default:
1215
- i = e.dateTime({ width: "full" });
1216
- break;
1217
- }
1218
- return i.replace("{{date}}", j(r, e)).replace("{{time}}", A(a, e));
1219
- }, Ne = {
1220
- p: A,
1221
- P: qe
1222
- }, _e = /^D+$/, He = /^Y+$/, Qe = ["D", "DD", "YY", "YYYY"];
1223
- function Xe(n) {
1224
- return _e.test(n);
1225
- }
1226
- function je(n) {
1227
- return He.test(n);
1228
- }
1229
- function Le(n, e, t) {
1230
- const r = Ge(n, e, t);
1231
- if (console.warn(r), Qe.includes(n)) throw new RangeError(r);
1232
- }
1233
- function Ge(n, e, t) {
1234
- const r = n[0] === "Y" ? "years" : "days of the month";
1235
- return `Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${e}\`) for formatting ${r} to the input \`${t}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
1236
- }
1237
- const Ie = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Be = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Ae = /^'([^]*?)'?$/, Re = /''/g, Ve = /[a-zA-Z]/;
1238
- function pe(n, e, t) {
1239
- var h, g, P, O, F, E, C, q;
1240
- const r = S(), a = (t == null ? void 0 : t.locale) ?? r.locale ?? I, i = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((g = (h = t == null ? void 0 : t.locale) == null ? void 0 : h.options) == null ? void 0 : g.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((O = (P = r.locale) == null ? void 0 : P.options) == null ? void 0 : O.firstWeekContainsDate) ?? 1, s = (t == null ? void 0 : t.weekStartsOn) ?? ((E = (F = t == null ? void 0 : t.locale) == null ? void 0 : F.options) == null ? void 0 : E.weekStartsOn) ?? r.weekStartsOn ?? ((q = (C = r.locale) == null ? void 0 : C.options) == null ? void 0 : q.weekStartsOn) ?? 0, c = m(n, t == null ? void 0 : t.in);
1241
- if (!z(c))
1242
- throw new RangeError("Invalid time value");
1243
- let o = e.match(Be).map((l) => {
1244
- const f = l[0];
1245
- if (f === "p" || f === "P") {
1246
- const Y = Ne[f];
1247
- return Y(l, a.formatLong);
1248
- }
1249
- return l;
1250
- }).join("").match(Ie).map((l) => {
1251
- if (l === "''")
1252
- return { isToken: !1, value: "'" };
1253
- const f = l[0];
1254
- if (f === "'")
1255
- return { isToken: !1, value: Je(l) };
1256
- if (H[f])
1257
- return { isToken: !0, value: l };
1258
- if (f.match(Ve))
1259
- throw new RangeError(
1260
- "Format string contains an unescaped latin alphabet character `" + f + "`"
1261
- );
1262
- return { isToken: !1, value: l };
1263
- });
1264
- a.localize.preprocessor && (o = a.localize.preprocessor(c, o));
1265
- const d = {
1266
- firstWeekContainsDate: i,
1267
- weekStartsOn: s,
1268
- locale: a
1269
- };
1270
- return o.map((l) => {
1271
- if (!l.isToken) return l.value;
1272
- const f = l.value;
1273
- (!(t != null && t.useAdditionalWeekYearTokens) && je(f) || !(t != null && t.useAdditionalDayOfYearTokens) && Xe(f)) && Le(f, e, String(n));
1274
- const Y = H[f[0]];
1275
- return Y(c, f, a.localize, d);
1276
- }).join("");
1277
- }
1278
- function Je(n) {
1279
- const e = n.match(Ae);
1280
- return e ? e[1].replace(Re, "'") : n;
1281
- }
1282
- export {
1283
- _ as A,
1284
- I as B,
1285
- Ne as C,
1286
- je as D,
1287
- Le as E,
1288
- Xe as F,
1289
- $ as G,
1290
- U as H,
1291
- Ze as I,
1292
- $e as a,
1293
- W as b,
1294
- y as c,
1295
- Ke as d,
1296
- T as e,
1297
- pe as f,
1298
- Ye as g,
1299
- ae as h,
1300
- z as i,
1301
- Z as j,
1302
- V as k,
1303
- he as l,
1304
- ze as m,
1305
- G as n,
1306
- u as o,
1307
- k as p,
1308
- x as q,
1309
- ge as r,
1310
- v as s,
1311
- m as t,
1312
- S as u,
1313
- Ue as v,
1314
- B as w,
1315
- D as x,
1316
- Ce as y,
1317
- Fe as z
1318
- };
1319
- //# sourceMappingURL=format--x5jypvH.js.map