@alfadocs/ui-kit-debug 1.103.1 → 1.105.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 (332) hide show
  1. package/dist/_chunks/{ai-credits-exhausted-notice-CwZnSACy.js → ai-credits-exhausted-notice-Lws3113e.js} +2 -2
  2. package/dist/_chunks/{ai-credits-exhausted-notice-CwZnSACy.js.map → ai-credits-exhausted-notice-Lws3113e.js.map} +1 -1
  3. package/dist/_chunks/{ai-permission-notice-VNh3W57L.js → ai-permission-notice-BkgcGmu8.js} +2 -2
  4. package/dist/_chunks/{ai-permission-notice-VNh3W57L.js.map → ai-permission-notice-BkgcGmu8.js.map} +1 -1
  5. package/dist/_chunks/{alert-9kEwDza3.js → alert-C4WKViaS.js} +59 -50
  6. package/dist/_chunks/alert-C4WKViaS.js.map +1 -0
  7. package/dist/_chunks/{anamnesis-summary-rows-B9HqOGd7.js → anamnesis-summary-rows-QhbDdY7b.js} +4 -4
  8. package/dist/_chunks/{anamnesis-summary-rows-B9HqOGd7.js.map → anamnesis-summary-rows-QhbDdY7b.js.map} +1 -1
  9. package/dist/_chunks/{audio-recorder-BOm2FgEu.js → audio-recorder-BlDozxdU.js} +2 -2
  10. package/dist/_chunks/{audio-recorder-BOm2FgEu.js.map → audio-recorder-BlDozxdU.js.map} +1 -1
  11. package/dist/_chunks/{auth-form-parts-B3GWChvG.js → auth-form-parts-DVHfqnp6.js} +2 -2
  12. package/dist/_chunks/{auth-form-parts-B3GWChvG.js.map → auth-form-parts-DVHfqnp6.js.map} +1 -1
  13. package/dist/_chunks/{balance-badge-cell-DGFm2jfP.js → balance-badge-cell-wJ6cTD_h.js} +3 -3
  14. package/dist/_chunks/{balance-badge-cell-DGFm2jfP.js.map → balance-badge-cell-wJ6cTD_h.js.map} +1 -1
  15. package/dist/_chunks/{calendar-appointment-editor-dialog-DqyATSh3.js → calendar-appointment-editor-dialog-D8DblVjW.js} +8 -8
  16. package/dist/_chunks/{calendar-appointment-editor-dialog-DqyATSh3.js.map → calendar-appointment-editor-dialog-D8DblVjW.js.map} +1 -1
  17. package/dist/_chunks/{care-plan-card-YWKV8Kjq.js → care-plan-card-DMjlYlFc.js} +2 -2
  18. package/dist/_chunks/{care-plan-card-YWKV8Kjq.js.map → care-plan-card-DMjlYlFc.js.map} +1 -1
  19. package/dist/_chunks/{care-plan-entry-card-CApivtMW.js → care-plan-entry-card-3hguBW45.js} +2 -2
  20. package/dist/_chunks/{care-plan-entry-card-CApivtMW.js.map → care-plan-entry-card-3hguBW45.js.map} +1 -1
  21. package/dist/_chunks/{contact-profile-card-uExd3pKC.js → contact-profile-card-CAL66GaH.js} +120 -111
  22. package/dist/_chunks/contact-profile-card-CAL66GaH.js.map +1 -0
  23. package/dist/_chunks/{data-table-C5uN4ato.js → data-table-zXBxFYpJ.js} +761 -715
  24. package/dist/_chunks/data-table-zXBxFYpJ.js.map +1 -0
  25. package/dist/_chunks/{date-range-picker-B_j4VQlV.js → date-range-picker-DCADIR8o.js} +2 -2
  26. package/dist/_chunks/{date-range-picker-B_j4VQlV.js.map → date-range-picker-DCADIR8o.js.map} +1 -1
  27. package/dist/_chunks/{date-time-picker-cwsWiB4q.js → date-time-picker-CT2bC7-A.js} +2 -2
  28. package/dist/_chunks/{date-time-picker-cwsWiB4q.js.map → date-time-picker-CT2bC7-A.js.map} +1 -1
  29. package/dist/_chunks/{document-preview-U8H6tnDJ.js → document-preview-BalyZqnn.js} +2 -2
  30. package/dist/_chunks/{document-preview-U8H6tnDJ.js.map → document-preview-BalyZqnn.js.map} +1 -1
  31. package/dist/_chunks/{document-scanner-Bf3VUp00.js → document-scanner-5p-Uu8dy.js} +2 -2
  32. package/dist/_chunks/{document-scanner-Bf3VUp00.js.map → document-scanner-5p-Uu8dy.js.map} +1 -1
  33. package/dist/_chunks/{entity-summary-BKfR4Vws.js → entity-summary-BbqqYqF1.js} +2 -2
  34. package/dist/_chunks/{entity-summary-BKfR4Vws.js.map → entity-summary-BbqqYqF1.js.map} +1 -1
  35. package/dist/_chunks/{error-summary-mGxIyDAY.js → error-summary-DxNhwf_G.js} +2 -2
  36. package/dist/_chunks/{error-summary-mGxIyDAY.js.map → error-summary-DxNhwf_G.js.map} +1 -1
  37. package/dist/_chunks/{face-scheme-DdVLQ5dP.js → face-scheme-e2M2HJGz.js} +2 -2
  38. package/dist/_chunks/{face-scheme-DdVLQ5dP.js.map → face-scheme-e2M2HJGz.js.map} +1 -1
  39. package/dist/_chunks/{file-manager-CnGBVX_q.js → file-manager-BDKe59sg.js} +2 -2
  40. package/dist/_chunks/{file-manager-CnGBVX_q.js.map → file-manager-BDKe59sg.js.map} +1 -1
  41. package/dist/_chunks/{forgot-password-form-CeTb5p-x.js → forgot-password-form-vfCO2-Tt.js} +4 -4
  42. package/dist/_chunks/{forgot-password-form-CeTb5p-x.js.map → forgot-password-form-vfCO2-Tt.js.map} +1 -1
  43. package/dist/_chunks/{freemium-paywall-CM0zQSDE.js → freemium-paywall-BDeq9QWR.js} +2 -2
  44. package/dist/_chunks/{freemium-paywall-CM0zQSDE.js.map → freemium-paywall-BDeq9QWR.js.map} +1 -1
  45. package/dist/_chunks/{gestational-age-calculator-CXcDKQqC.js → gestational-age-calculator-AnaH00nk.js} +2 -2
  46. package/dist/_chunks/{gestational-age-calculator-CXcDKQqC.js.map → gestational-age-calculator-AnaH00nk.js.map} +1 -1
  47. package/dist/_chunks/{hcg-doubling-BJFR3onB.js → hcg-doubling-DdyUt4gz.js} +2 -2
  48. package/dist/_chunks/{hcg-doubling-BJFR3onB.js.map → hcg-doubling-DdyUt4gz.js.map} +1 -1
  49. package/dist/_chunks/{heatmap-Cz0Krieg.js → heatmap-D4qqpCEj.js} +1550 -1547
  50. package/dist/_chunks/{heatmap-Cz0Krieg.js.map → heatmap-D4qqpCEj.js.map} +1 -1
  51. package/dist/_chunks/{help-me-write-templates-ra5a__Yy.js → help-me-write-templates-YmceSxf5.js} +3 -3
  52. package/dist/_chunks/{help-me-write-templates-ra5a__Yy.js.map → help-me-write-templates-YmceSxf5.js.map} +1 -1
  53. package/dist/_chunks/info-tip-C-MPkShR.js +266 -0
  54. package/dist/_chunks/info-tip-C-MPkShR.js.map +1 -0
  55. package/dist/_chunks/{kit-extensions-C4o_tFN4.js → kit-extensions-BOnTM4Yf.js} +3 -3
  56. package/dist/_chunks/{kit-extensions-C4o_tFN4.js.map → kit-extensions-BOnTM4Yf.js.map} +1 -1
  57. package/dist/_chunks/{link-cell-renderer-BRek9kz7.js → link-cell-renderer-C8vfCOEp.js} +2 -2
  58. package/dist/_chunks/{link-cell-renderer-BRek9kz7.js.map → link-cell-renderer-C8vfCOEp.js.map} +1 -1
  59. package/dist/_chunks/{login-dev-card-D5BV5j1i.js → login-dev-card-Cz1Clugq.js} +3 -3
  60. package/dist/_chunks/{login-dev-card-D5BV5j1i.js.map → login-dev-card-Cz1Clugq.js.map} +1 -1
  61. package/dist/_chunks/{marketplace-app-shell-BsctSegT.js → marketplace-app-shell-C-4QF6mp.js} +2 -2
  62. package/dist/_chunks/{marketplace-app-shell-BsctSegT.js.map → marketplace-app-shell-C-4QF6mp.js.map} +1 -1
  63. package/dist/_chunks/{notes-panel-BjTpaz8d.js → notes-panel-SlzUL8in.js} +4 -4
  64. package/dist/_chunks/{notes-panel-BjTpaz8d.js.map → notes-panel-SlzUL8in.js.map} +1 -1
  65. package/dist/_chunks/{notice-group-DkYzKyAZ.js → notice-group-B-trhof8.js} +3 -3
  66. package/dist/_chunks/{notice-group-DkYzKyAZ.js.map → notice-group-B-trhof8.js.map} +1 -1
  67. package/dist/_chunks/{patient-details-BXM3dRKb.js → patient-details-wMgTFtpp.js} +2 -2
  68. package/dist/_chunks/{patient-details-BXM3dRKb.js.map → patient-details-wMgTFtpp.js.map} +1 -1
  69. package/dist/_chunks/{patient-field-row--dCDO5oB.js → patient-field-row-Bhm2Ig1P.js} +2 -2
  70. package/dist/_chunks/{patient-field-row--dCDO5oB.js.map → patient-field-row-Bhm2Ig1P.js.map} +1 -1
  71. package/dist/_chunks/{patient-summary-card-DB7fv-Tr.js → patient-summary-card-DMdPPG3n.js} +2 -2
  72. package/dist/_chunks/{patient-summary-card-DB7fv-Tr.js.map → patient-summary-card-DMdPPG3n.js.map} +1 -1
  73. package/dist/_chunks/{payment-automation-upsell-BPF0c-5D.js → payment-automation-upsell-u5EuFyCY.js} +2 -2
  74. package/dist/_chunks/{payment-automation-upsell-BPF0c-5D.js.map → payment-automation-upsell-u5EuFyCY.js.map} +1 -1
  75. package/dist/_chunks/{payment-form-PBuh8PIa.js → payment-form-C-s1x-bU.js} +2 -2
  76. package/dist/_chunks/{payment-form-PBuh8PIa.js.map → payment-form-C-s1x-bU.js.map} +1 -1
  77. package/dist/_chunks/{pdf-viewer-DlceXkfW.js → pdf-viewer-BnBKdx0y.js} +2 -2
  78. package/dist/_chunks/{pdf-viewer-DlceXkfW.js.map → pdf-viewer-BnBKdx0y.js.map} +1 -1
  79. package/dist/_chunks/{practice-profile-hero-BAvGdQmt.js → practice-profile-hero-Bb4YyxHA.js} +31 -29
  80. package/dist/_chunks/practice-profile-hero-Bb4YyxHA.js.map +1 -0
  81. package/dist/_chunks/{practice-results-ChBP9x2r.js → practice-results-BXz01sti.js} +485 -445
  82. package/dist/_chunks/practice-results-BXz01sti.js.map +1 -0
  83. package/dist/_chunks/{pregnancy-dating-D0Kf9s7s.js → pregnancy-dating-D6dLkMpl.js} +2 -2
  84. package/dist/_chunks/{pregnancy-dating-D0Kf9s7s.js.map → pregnancy-dating-D6dLkMpl.js.map} +1 -1
  85. package/dist/_chunks/{progress-notice-DiHWZ8Ms.js → progress-notice-F7ao70ZP.js} +2 -2
  86. package/dist/_chunks/{progress-notice-DiHWZ8Ms.js.map → progress-notice-F7ao70ZP.js.map} +1 -1
  87. package/dist/_chunks/{radiograph-panel.agent-BQ95uFCd.js → radiograph-panel.agent-0ngF2sGS.js} +2 -2
  88. package/dist/_chunks/{radiograph-panel.agent-BQ95uFCd.js.map → radiograph-panel.agent-0ngF2sGS.js.map} +1 -1
  89. package/dist/_chunks/{registration-form-JzzTomhd.js → registration-form-CEJRUS9G.js} +3 -3
  90. package/dist/_chunks/{registration-form-JzzTomhd.js.map → registration-form-CEJRUS9G.js.map} +1 -1
  91. package/dist/_chunks/{reserved.agent-BxD0gnbt.js → reserved.agent-C-C9cvO5.js} +2 -2
  92. package/dist/_chunks/{reserved.agent-BxD0gnbt.js.map → reserved.agent-C-C9cvO5.js.map} +1 -1
  93. package/dist/_chunks/{reset-password-form-DDdGEoIL.js → reset-password-form-B0acanDD.js} +4 -4
  94. package/dist/_chunks/{reset-password-form-DDdGEoIL.js.map → reset-password-form-B0acanDD.js.map} +1 -1
  95. package/dist/_chunks/{rich-text-editor-F04przIt.js → rich-text-editor-C3nANKZt.js} +2 -2
  96. package/dist/_chunks/{rich-text-editor-F04przIt.js.map → rich-text-editor-C3nANKZt.js.map} +1 -1
  97. package/dist/_chunks/{send-registration-link-form-DHCQpA4C.js → send-registration-link-form-Nn0jf65G.js} +3 -3
  98. package/dist/_chunks/{send-registration-link-form-DHCQpA4C.js.map → send-registration-link-form-Nn0jf65G.js.map} +1 -1
  99. package/dist/_chunks/{sign-document-B5qZhthO.js → sign-document-CQZVzfpk.js} +2 -2
  100. package/dist/_chunks/{sign-document-B5qZhthO.js.map → sign-document-CQZVzfpk.js.map} +1 -1
  101. package/dist/_chunks/{signature-request-DB6kePIm.js → signature-request-DtLph5Z4.js} +3 -3
  102. package/dist/_chunks/{signature-request-DB6kePIm.js.map → signature-request-DtLph5Z4.js.map} +1 -1
  103. package/dist/_chunks/stat-group-DSNnzkbW.js +107 -0
  104. package/dist/_chunks/stat-group-DSNnzkbW.js.map +1 -0
  105. package/dist/_chunks/{switch-D--x7n6h.js → switch-DO6uC4HJ.js} +40 -36
  106. package/dist/_chunks/switch-DO6uC4HJ.js.map +1 -0
  107. package/dist/_chunks/{task-editor-BiPGFXtB.js → task-editor-CmXcj6cC.js} +4 -4
  108. package/dist/_chunks/{task-editor-BiPGFXtB.js.map → task-editor-CmXcj6cC.js.map} +1 -1
  109. package/dist/_chunks/{tasks-panel-iVeuu9a8.js → tasks-panel-CFo5uIHx.js} +3 -3
  110. package/dist/_chunks/{tasks-panel-iVeuu9a8.js.map → tasks-panel-CFo5uIHx.js.map} +1 -1
  111. package/dist/_chunks/{theme-toggle-jZRbAidE.js → theme-toggle-Czq3K9jB.js} +2 -2
  112. package/dist/_chunks/{theme-toggle-jZRbAidE.js.map → theme-toggle-Czq3K9jB.js.map} +1 -1
  113. package/dist/_chunks/{time-picker-DSt-ns5F.js → time-picker-DDr5vhwQ.js} +344 -332
  114. package/dist/_chunks/time-picker-DDr5vhwQ.js.map +1 -0
  115. package/dist/_chunks/{tooth-scheme-Bd7xECuj.js → tooth-scheme-C-ALCHaV.js} +2 -2
  116. package/dist/_chunks/{tooth-scheme-Bd7xECuj.js.map → tooth-scheme-C-ALCHaV.js.map} +1 -1
  117. package/dist/_chunks/{use-appointment-details-read-CmqGGYCy.js → use-appointment-details-read-VI26Z-pc.js} +3 -3
  118. package/dist/_chunks/{use-appointment-details-read-CmqGGYCy.js.map → use-appointment-details-read-VI26Z-pc.js.map} +1 -1
  119. package/dist/_chunks/{voice-control-panel-BGJjUwnY.js → voice-control-panel-B0TUZAiP.js} +3 -3
  120. package/dist/_chunks/{voice-control-panel-BGJjUwnY.js.map → voice-control-panel-B0TUZAiP.js.map} +1 -1
  121. package/dist/_chunks/{warning-stack-3S7e2q07.js → warning-stack-Dx7cpj10.js} +2 -2
  122. package/dist/_chunks/{warning-stack-3S7e2q07.js.map → warning-stack-Dx7cpj10.js.map} +1 -1
  123. package/dist/_chunks/week-availability-CsTiwtYj.js +318 -0
  124. package/dist/_chunks/week-availability-CsTiwtYj.js.map +1 -0
  125. package/dist/_chunks/weekly-hours-editor-BsVsgeOc.js +252 -0
  126. package/dist/_chunks/weekly-hours-editor-BsVsgeOc.js.map +1 -0
  127. package/dist/_chunks/{workflow-map-B1jf6QaB.js → workflow-map-DWk-rZse.js} +2 -2
  128. package/dist/_chunks/{workflow-map-B1jf6QaB.js.map → workflow-map-DWk-rZse.js.map} +1 -1
  129. package/dist/_chunks/{workflow-webhook-action-B_52rH7O.js → workflow-webhook-action-DILFqAVd.js} +2 -2
  130. package/dist/_chunks/{workflow-webhook-action-B_52rH7O.js.map → workflow-webhook-action-DILFqAVd.js.map} +1 -1
  131. package/dist/ag-grid.css +5 -1
  132. package/dist/agent-catalog.json +1 -1
  133. package/dist/components/ai-credits-notice/index.js +1 -1
  134. package/dist/components/ai-permission-notice/index.js +1 -1
  135. package/dist/components/alert/alert.d.ts.map +1 -1
  136. package/dist/components/alert/index.js +1 -1
  137. package/dist/components/appointment-details-panel/index.js +1 -1
  138. package/dist/components/audio-recorder/index.js +1 -1
  139. package/dist/components/booking/index.js +1 -1
  140. package/dist/components/care-plan-card/index.js +1 -1
  141. package/dist/components/care-plan-entry-card/index.js +1 -1
  142. package/dist/components/contact-profile-card/contact-profile-card.d.ts +8 -0
  143. package/dist/components/contact-profile-card/contact-profile-card.d.ts.map +1 -1
  144. package/dist/components/contact-profile-card/index.js +1 -1
  145. package/dist/components/data-table/data-table.d.ts +6 -0
  146. package/dist/components/data-table/data-table.d.ts.map +1 -1
  147. package/dist/components/data-table/header-min-width.d.ts +21 -0
  148. package/dist/components/data-table/header-min-width.d.ts.map +1 -0
  149. package/dist/components/data-table/index.js +2 -2
  150. package/dist/components/date-range-picker/index.js +1 -1
  151. package/dist/components/date-time-picker/index.js +1 -1
  152. package/dist/components/document-preview/index.js +1 -1
  153. package/dist/components/document-scanner/index.js +1 -1
  154. package/dist/components/entity-summary/index.js +1 -1
  155. package/dist/components/error-summary/index.js +1 -1
  156. package/dist/components/face-scheme/index.js +1 -1
  157. package/dist/components/file-manager/index.js +1 -1
  158. package/dist/components/freemium-paywall/index.js +1 -1
  159. package/dist/components/gestational-age-calculator/index.js +1 -1
  160. package/dist/components/hcg-doubling/index.js +1 -1
  161. package/dist/components/heatmap/heatmap.d.ts +5 -0
  162. package/dist/components/heatmap/heatmap.d.ts.map +1 -1
  163. package/dist/components/heatmap/index.js +1 -1
  164. package/dist/components/index.d.ts +3 -0
  165. package/dist/components/index.d.ts.map +1 -1
  166. package/dist/components/info-tip/index.js +1 -1
  167. package/dist/components/info-tip/info-tip.d.ts +10 -0
  168. package/dist/components/info-tip/info-tip.d.ts.map +1 -1
  169. package/dist/components/notes-panel/index.js +1 -1
  170. package/dist/components/notice-group/index.js +1 -1
  171. package/dist/components/patient-details/index.js +1 -1
  172. package/dist/components/patient-summary-card/index.js +1 -1
  173. package/dist/components/patient-table/index.js +1 -1
  174. package/dist/components/payment-form/index.js +1 -1
  175. package/dist/components/pdf-viewer/index.js +1 -1
  176. package/dist/components/practice-profile-hero/index.js +1 -1
  177. package/dist/components/practice-profile-hero/practice-profile-hero.d.ts +7 -0
  178. package/dist/components/practice-profile-hero/practice-profile-hero.d.ts.map +1 -1
  179. package/dist/components/practice-results/index.js +1 -1
  180. package/dist/components/practice-results/practice-results.d.ts +13 -0
  181. package/dist/components/practice-results/practice-results.d.ts.map +1 -1
  182. package/dist/components/pregnancy-dating/index.js +1 -1
  183. package/dist/components/progress-notice/index.js +1 -1
  184. package/dist/components/radiograph-panel/index.js +1 -1
  185. package/dist/components/rich-text-editor/index.js +2 -2
  186. package/dist/components/sign-document/index.js +1 -1
  187. package/dist/components/stat-group/index.d.ts +3 -0
  188. package/dist/components/stat-group/index.d.ts.map +1 -0
  189. package/dist/components/stat-group/index.js +8 -0
  190. package/dist/components/stat-group/index.js.map +1 -0
  191. package/dist/components/stat-group/stat-group.d.ts +23 -0
  192. package/dist/components/stat-group/stat-group.d.ts.map +1 -0
  193. package/dist/components/switch/index.js +1 -1
  194. package/dist/components/switch/switch.d.ts +2 -0
  195. package/dist/components/switch/switch.d.ts.map +1 -1
  196. package/dist/components/task-editor/index.js +1 -1
  197. package/dist/components/tasks-panel/index.js +1 -1
  198. package/dist/components/theme-toggle/index.js +1 -1
  199. package/dist/components/time-picker/index.js +1 -1
  200. package/dist/components/time-picker/time-picker.d.ts.map +1 -1
  201. package/dist/components/tooth-scheme/index.js +1 -1
  202. package/dist/components/voice-control-panel/index.js +1 -1
  203. package/dist/components/warning-stack/index.js +1 -1
  204. package/dist/components/week-availability/index.d.ts +3 -0
  205. package/dist/components/week-availability/index.d.ts.map +1 -0
  206. package/dist/components/week-availability/index.js +10 -0
  207. package/dist/components/week-availability/index.js.map +1 -0
  208. package/dist/components/week-availability/week-availability.d.ts +68 -0
  209. package/dist/components/week-availability/week-availability.d.ts.map +1 -0
  210. package/dist/components/weekly-hours-editor/index.d.ts +3 -0
  211. package/dist/components/weekly-hours-editor/index.d.ts.map +1 -0
  212. package/dist/components/weekly-hours-editor/index.js +9 -0
  213. package/dist/components/weekly-hours-editor/index.js.map +1 -0
  214. package/dist/components/weekly-hours-editor/weekly-hours-editor.d.ts +42 -0
  215. package/dist/components/weekly-hours-editor/weekly-hours-editor.d.ts.map +1 -0
  216. package/dist/components/workflow/index.js +1 -1
  217. package/dist/core.css +1 -1
  218. package/dist/i18n/locales/ar.d.ts +34 -0
  219. package/dist/i18n/locales/ar.d.ts.map +1 -1
  220. package/dist/i18n/locales/ar.js +34 -0
  221. package/dist/i18n/locales/ar.js.map +1 -1
  222. package/dist/i18n/locales/de.d.ts +34 -0
  223. package/dist/i18n/locales/de.d.ts.map +1 -1
  224. package/dist/i18n/locales/de.js +34 -0
  225. package/dist/i18n/locales/de.js.map +1 -1
  226. package/dist/i18n/locales/el.d.ts +34 -0
  227. package/dist/i18n/locales/el.d.ts.map +1 -1
  228. package/dist/i18n/locales/el.js +34 -0
  229. package/dist/i18n/locales/el.js.map +1 -1
  230. package/dist/i18n/locales/en.d.ts +34 -0
  231. package/dist/i18n/locales/en.d.ts.map +1 -1
  232. package/dist/i18n/locales/en.js +34 -0
  233. package/dist/i18n/locales/en.js.map +1 -1
  234. package/dist/i18n/locales/es.d.ts +34 -0
  235. package/dist/i18n/locales/es.d.ts.map +1 -1
  236. package/dist/i18n/locales/es.js +34 -0
  237. package/dist/i18n/locales/es.js.map +1 -1
  238. package/dist/i18n/locales/fr.d.ts +34 -0
  239. package/dist/i18n/locales/fr.d.ts.map +1 -1
  240. package/dist/i18n/locales/fr.js +34 -0
  241. package/dist/i18n/locales/fr.js.map +1 -1
  242. package/dist/i18n/locales/hi.d.ts +34 -0
  243. package/dist/i18n/locales/hi.d.ts.map +1 -1
  244. package/dist/i18n/locales/hi.js +34 -0
  245. package/dist/i18n/locales/hi.js.map +1 -1
  246. package/dist/i18n/locales/it.d.ts +34 -0
  247. package/dist/i18n/locales/it.d.ts.map +1 -1
  248. package/dist/i18n/locales/it.js +34 -0
  249. package/dist/i18n/locales/it.js.map +1 -1
  250. package/dist/i18n/locales/ja.d.ts +34 -0
  251. package/dist/i18n/locales/ja.d.ts.map +1 -1
  252. package/dist/i18n/locales/ja.js +34 -0
  253. package/dist/i18n/locales/ja.js.map +1 -1
  254. package/dist/i18n/locales/nl.d.ts +34 -0
  255. package/dist/i18n/locales/nl.d.ts.map +1 -1
  256. package/dist/i18n/locales/nl.js +34 -0
  257. package/dist/i18n/locales/nl.js.map +1 -1
  258. package/dist/i18n/locales/pl.d.ts +34 -0
  259. package/dist/i18n/locales/pl.d.ts.map +1 -1
  260. package/dist/i18n/locales/pl.js +34 -0
  261. package/dist/i18n/locales/pl.js.map +1 -1
  262. package/dist/i18n/locales/pt.d.ts +34 -0
  263. package/dist/i18n/locales/pt.d.ts.map +1 -1
  264. package/dist/i18n/locales/pt.js +34 -0
  265. package/dist/i18n/locales/pt.js.map +1 -1
  266. package/dist/i18n/locales/ro.d.ts +34 -0
  267. package/dist/i18n/locales/ro.d.ts.map +1 -1
  268. package/dist/i18n/locales/ro.js +34 -0
  269. package/dist/i18n/locales/ro.js.map +1 -1
  270. package/dist/i18n/locales/ru.d.ts +34 -0
  271. package/dist/i18n/locales/ru.d.ts.map +1 -1
  272. package/dist/i18n/locales/ru.js +34 -0
  273. package/dist/i18n/locales/ru.js.map +1 -1
  274. package/dist/i18n/locales/sq.d.ts +34 -0
  275. package/dist/i18n/locales/sq.d.ts.map +1 -1
  276. package/dist/i18n/locales/sq.js +34 -0
  277. package/dist/i18n/locales/sq.js.map +1 -1
  278. package/dist/i18n/locales/sv.d.ts +34 -0
  279. package/dist/i18n/locales/sv.d.ts.map +1 -1
  280. package/dist/i18n/locales/sv.js +34 -0
  281. package/dist/i18n/locales/sv.js.map +1 -1
  282. package/dist/i18n/locales/tr.d.ts +34 -0
  283. package/dist/i18n/locales/tr.d.ts.map +1 -1
  284. package/dist/i18n/locales/tr.js +34 -0
  285. package/dist/i18n/locales/tr.js.map +1 -1
  286. package/dist/i18n/locales/zh.d.ts +34 -0
  287. package/dist/i18n/locales/zh.d.ts.map +1 -1
  288. package/dist/i18n/locales/zh.js +34 -0
  289. package/dist/i18n/locales/zh.js.map +1 -1
  290. package/dist/index.js +885 -867
  291. package/dist/index.js.map +1 -1
  292. package/dist/locales/ar.json +34 -0
  293. package/dist/locales/de.json +34 -0
  294. package/dist/locales/el.json +34 -0
  295. package/dist/locales/en.json +34 -0
  296. package/dist/locales/es.json +34 -0
  297. package/dist/locales/fr.json +34 -0
  298. package/dist/locales/hi.json +34 -0
  299. package/dist/locales/it.json +34 -0
  300. package/dist/locales/ja.json +34 -0
  301. package/dist/locales/nl.json +34 -0
  302. package/dist/locales/pl.json +34 -0
  303. package/dist/locales/pt.json +34 -0
  304. package/dist/locales/ro.json +34 -0
  305. package/dist/locales/ru.json +34 -0
  306. package/dist/locales/sq.json +34 -0
  307. package/dist/locales/sv.json +34 -0
  308. package/dist/locales/tr.json +34 -0
  309. package/dist/locales/zh.json +34 -0
  310. package/dist/patterns/anamnesis/index.js +1 -1
  311. package/dist/patterns/calendar/index.js +1 -1
  312. package/dist/patterns/forgot-password-form/index.js +1 -1
  313. package/dist/patterns/help-me-write-templates/index.js +2 -2
  314. package/dist/patterns/login-form/index.js +1 -1
  315. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  316. package/dist/patterns/payment-automation-upsell/index.js +1 -1
  317. package/dist/patterns/registration-form/index.js +1 -1
  318. package/dist/patterns/reset-password-form/index.js +1 -1
  319. package/dist/patterns/send-registration-link-form/index.js +1 -1
  320. package/dist/patterns/signature-request/index.js +1 -1
  321. package/dist/patterns/workflow-webhook-action/index.js +1 -1
  322. package/dist/tokens.css +3 -1
  323. package/package.json +13 -1
  324. package/dist/_chunks/alert-9kEwDza3.js.map +0 -1
  325. package/dist/_chunks/contact-profile-card-uExd3pKC.js.map +0 -1
  326. package/dist/_chunks/data-table-C5uN4ato.js.map +0 -1
  327. package/dist/_chunks/info-tip-1Xsq9GLi.js +0 -230
  328. package/dist/_chunks/info-tip-1Xsq9GLi.js.map +0 -1
  329. package/dist/_chunks/practice-profile-hero-BAvGdQmt.js.map +0 -1
  330. package/dist/_chunks/practice-results-ChBP9x2r.js.map +0 -1
  331. package/dist/_chunks/switch-D--x7n6h.js.map +0 -1
  332. package/dist/_chunks/time-picker-DSt-ns5F.js.map +0 -1
@@ -1,14 +1,14 @@
1
- import { jsxs as $e, jsx as v, Fragment as Lt } from "react/jsx-runtime";
2
- import { forwardRef as Ht, useContext as Ft, useState as le, useMemo as ce, useRef as d, useCallback as U, useEffect as Ce, useImperativeHandle as It } from "react";
1
+ import { jsxs as Je, jsx as v, Fragment as Ot } from "react/jsx-runtime";
2
+ import { forwardRef as Rt, useContext as It, useState as Z, useMemo as de, useRef as d, useCallback as W, useEffect as Ce, useImperativeHandle as St } from "react";
3
3
  import { c as L } from "./index-D2ZczOXr.js";
4
- import { useTranslation as Ot } from "react-i18next";
5
- import * as Z from "@radix-ui/react-popover";
6
- import { u as Rt, F as St, a as Kt } from "./form-field-context-DtiROUJV.js";
7
- import { u as Je } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
8
- import { u as Nt } from "./registry-DvAUVLHh.js";
9
- import { X as Et } from "./x-B5YnXwCz.js";
10
- import { C as jt } from "./clock-Drd4Wtis.js";
11
- const Vt = {
4
+ import { useTranslation as Kt } from "react-i18next";
5
+ import * as ee from "@radix-ui/react-popover";
6
+ import { u as Nt, F as Et, a as jt } from "./form-field-context-DtiROUJV.js";
7
+ import { u as Ae } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
8
+ import { u as Vt } from "./registry-DvAUVLHh.js";
9
+ import { X as Bt } from "./x-B5YnXwCz.js";
10
+ import { C as Ut } from "./clock-Drd4Wtis.js";
11
+ const Wt = {
12
12
  id: "time-picker",
13
13
  capabilities: ["select_single", "set_value", "open", "close"],
14
14
  state: {
@@ -16,18 +16,18 @@ const Vt = {
16
16
  type: "HH:MM | null",
17
17
  descriptionKey: "ui.agent.timePicker.state.value",
18
18
  description: "Currently selected time as 24h HH:MM. Null when unset with allowEmpty; otherwise defaults to 00:00.",
19
- read: (r) => {
20
- const o = r.getValue();
19
+ read: (n) => {
20
+ const o = n.getValue();
21
21
  if (!o) return null;
22
- const l = String(o.hours).padStart(2, "0"), f = String(o.minutes).padStart(2, "0");
23
- return `${l}:${f}`;
22
+ const u = String(o.hours).padStart(2, "0"), f = String(o.minutes).padStart(2, "0");
23
+ return `${u}:${f}`;
24
24
  }
25
25
  },
26
26
  isOpen: {
27
27
  type: "boolean",
28
28
  descriptionKey: "ui.agent.timePicker.state.isOpen",
29
29
  description: "Whether the time dropdown is open. Always false unless the picker has the dropdown prop.",
30
- read: (r) => r.isOpen()
30
+ read: (n) => n.isOpen()
31
31
  }
32
32
  },
33
33
  actions: {
@@ -45,10 +45,10 @@ const Vt = {
45
45
  descriptionKey: "ui.agent.timePicker.actions.setTime",
46
46
  description: "Set the time using a 24h HH:MM string.",
47
47
  examples: [{ args: { time: "14:30" }, note: "2:30 PM in 24h form." }],
48
- invoke: (r, o) => {
49
- const [l, f] = o.time.split(":");
50
- r.setValue({
51
- hours: Number.parseInt(l ?? "0", 10),
48
+ invoke: (n, o) => {
49
+ const [u, f] = o.time.split(":");
50
+ n.setValue({
51
+ hours: Number.parseInt(u ?? "0", 10),
52
52
  minutes: Number.parseInt(f ?? "0", 10)
53
53
  });
54
54
  }
@@ -58,24 +58,24 @@ const Vt = {
58
58
  idempotent: !0,
59
59
  descriptionKey: "ui.agent.timePicker.actions.clear",
60
60
  description: "Clear to null with allowEmpty; otherwise reset to 00:00.",
61
- invoke: (r) => {
62
- r.clear();
61
+ invoke: (n) => {
62
+ n.clear();
63
63
  }
64
64
  },
65
65
  open: {
66
66
  safety: "read",
67
67
  descriptionKey: "ui.agent.timePicker.actions.open",
68
68
  description: "Open the time dropdown without moving focus. A no-op unless the picker has the dropdown prop and is enabled.",
69
- invoke: (r) => {
70
- r.open();
69
+ invoke: (n) => {
70
+ n.open();
71
71
  }
72
72
  },
73
73
  close: {
74
74
  safety: "read",
75
75
  descriptionKey: "ui.agent.timePicker.actions.close",
76
76
  description: "Close the time dropdown. A no-op unless the picker has the dropdown prop.",
77
- invoke: (r) => {
78
- r.close();
77
+ invoke: (n) => {
78
+ n.close();
79
79
  }
80
80
  }
81
81
  },
@@ -92,9 +92,9 @@ const Vt = {
92
92
  }
93
93
  }
94
94
  };
95
- function Bt(r) {
95
+ function _t(n) {
96
96
  try {
97
- const o = new Intl.DateTimeFormat(r, {
97
+ const o = new Intl.DateTimeFormat(n, {
98
98
  hour: "numeric"
99
99
  }).resolvedOptions();
100
100
  return o.hourCycle === "h12" || o.hourCycle === "h11";
@@ -102,60 +102,61 @@ function Bt(r) {
102
102
  return !1;
103
103
  }
104
104
  }
105
- function Ut(r) {
106
- var o, l;
105
+ function qt(n) {
106
+ var o, u;
107
107
  try {
108
- const f = ((o = new Intl.DateTimeFormat(r, {
108
+ const f = ((o = new Intl.DateTimeFormat(n, {
109
109
  hour: "numeric",
110
110
  hour12: !0
111
- }).formatToParts(new Date(2e3, 0, 1, 9)).find((b) => b.type === "dayPeriod")) == null ? void 0 : o.value) ?? "AM", C = ((l = new Intl.DateTimeFormat(r, {
111
+ }).formatToParts(new Date(2e3, 0, 1, 9)).find((b) => b.type === "dayPeriod")) == null ? void 0 : o.value) ?? "AM", z = ((u = new Intl.DateTimeFormat(n, {
112
112
  hour: "numeric",
113
113
  hour12: !0
114
- }).formatToParts(new Date(2e3, 0, 1, 15)).find((b) => b.type === "dayPeriod")) == null ? void 0 : l.value) ?? "PM";
115
- return { am: f, pm: C };
114
+ }).formatToParts(new Date(2e3, 0, 1, 15)).find((b) => b.type === "dayPeriod")) == null ? void 0 : u.value) ?? "PM";
115
+ return { am: f, pm: z };
116
116
  } catch {
117
117
  return { am: "AM", pm: "PM" };
118
118
  }
119
119
  }
120
- function O(r, o, l) {
121
- return Math.min(l, Math.max(o, r));
120
+ function R(n, o, u) {
121
+ return Math.min(u, Math.max(o, n));
122
122
  }
123
- function Qe(r) {
124
- return Math.floor(59 / r) * r;
123
+ function et(n) {
124
+ return Math.floor(59 / n) * n;
125
125
  }
126
- function _t(r, o) {
127
- const l = Math.round(O(r, 0, 59) / o) * o;
128
- return O(l, 0, Qe(o));
126
+ function $t(n, o) {
127
+ const u = Math.round(R(n, 0, 59) / o) * o;
128
+ return R(u, 0, et(o));
129
129
  }
130
- function qt(r, o, l) {
131
- const f = Qe(o);
132
- if (l === 1) {
133
- const b = Math.floor(r / o) * o + o;
130
+ function Gt(n, o, u) {
131
+ const f = et(o);
132
+ if (u === 1) {
133
+ const b = Math.floor(n / o) * o + o;
134
134
  return b > f ? 0 : b;
135
135
  }
136
- const C = Math.ceil(r / o) * o - o;
137
- return C < 0 ? f : C;
136
+ const z = Math.ceil(n / o) * o - o;
137
+ return z < 0 ? f : z;
138
138
  }
139
- function $t(r) {
140
- const o = (l) => Number.isFinite(l) ? Math.trunc(l) : 0;
139
+ function Xt(n) {
140
+ const o = (u) => Number.isFinite(u) ? Math.trunc(u) : 0;
141
141
  return {
142
- hours: O(o(r.hours), 0, 23),
143
- minutes: O(o(r.minutes), 0, 59)
142
+ hours: R(o(n.hours), 0, 23),
143
+ minutes: R(o(n.minutes), 0, 59)
144
144
  };
145
145
  }
146
- function ze(r) {
147
- return r === 0 ? 12 : r > 12 ? r - 12 : r;
146
+ function Me(n) {
147
+ return n === 0 ? 12 : n > 12 ? n - 12 : n;
148
148
  }
149
- function We(r, o) {
150
- return o ? r === 12 ? 12 : r + 12 : r === 12 ? 0 : r;
149
+ function Qe(n, o) {
150
+ return o ? n === 12 ? 12 : n + 12 : n === 12 ? 0 : n;
151
151
  }
152
- const ee = (r) => String(r).padStart(2, "0");
153
- function Wt(r) {
154
- r.stopPropagation();
152
+ const te = (n) => String(n).padStart(2, "0");
153
+ function Jt(n) {
154
+ n.stopPropagation();
155
155
  }
156
- const Gt = L(
156
+ const Qt = L(
157
157
  [
158
- "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]",
158
+ "ds:inline-flex ds:max-w-full ds:min-w-0 ds:items-center ds:gap-[var(--spacing-xs)]",
159
+ "ds:[&>*]:shrink-0",
159
160
  "ds:rounded-[var(--radius-sm)] ds:border ds:border-[color:var(--control-border)] ds:bg-background",
160
161
  "ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
161
162
  "ds:focus-within:outline-[length:var(--focus-ring-width)] ds:focus-within:outline-solid",
@@ -190,7 +191,7 @@ const Gt = L(
190
191
  opensOnClick: !1
191
192
  }
192
193
  }
193
- ), Ge = L(
194
+ ), Ye = L(
194
195
  [
195
196
  "ds:inline-flex ds:items-center ds:justify-center",
196
197
  "ds:rounded-[var(--radius-sm)] ds:text-center ds:tabular-nums",
@@ -209,7 +210,7 @@ const Gt = L(
209
210
  },
210
211
  defaultVariants: { size: "md" }
211
212
  }
212
- ), Xt = L(
213
+ ), Yt = L(
213
214
  [
214
215
  "ds:inline-flex ds:items-center ds:justify-center",
215
216
  "ds:rounded-[var(--radius-sm)] ds:text-center",
@@ -230,7 +231,7 @@ const Gt = L(
230
231
  },
231
232
  defaultVariants: { size: "md" }
232
233
  }
233
- ), Jt = L("ds:text-muted-foreground ds:select-none", {
234
+ ), Zt = L("ds:text-muted-foreground ds:select-none", {
234
235
  variants: {
235
236
  size: {
236
237
  sm: "ds:text-[length:var(--font-size-sm)]",
@@ -239,7 +240,7 @@ const Gt = L(
239
240
  }
240
241
  },
241
242
  defaultVariants: { size: "md" }
242
- }), Xe = L(
243
+ }), Ze = L(
243
244
  [
244
245
  "ds:relative ds:inline-flex ds:shrink-0 ds:self-stretch ds:items-center ds:justify-center",
245
246
  "ds:before:absolute ds:before:inset-x-0 ds:before:-inset-y-px",
@@ -271,7 +272,7 @@ const Gt = L(
271
272
  }
272
273
  ]
273
274
  }
274
- ), Qt = L(
275
+ ), er = L(
275
276
  [
276
277
  "ds:z-[var(--z-popover)] ds:flex ds:rounded-[var(--radius-md)]",
277
278
  "ds:border ds:border-border ds:bg-background ds:text-foreground ds:shadow-[var(--shadow-lg)]",
@@ -287,7 +288,7 @@ const Gt = L(
287
288
  },
288
289
  defaultVariants: { size: "md" }
289
290
  }
290
- ), Yt = L(
291
+ ), tr = L(
291
292
  [
292
293
  "ds:relative ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)]",
293
294
  "ds:max-h-[calc(var(--time-picker-option-size)*6.5)] ds:overflow-y-auto ds:overscroll-contain",
@@ -302,7 +303,7 @@ const Gt = L(
302
303
  },
303
304
  defaultVariants: { separated: !1 }
304
305
  }
305
- ), Zt = L(
306
+ ), rr = L(
306
307
  [
307
308
  "ds:flex ds:shrink-0 ds:items-center ds:justify-center",
308
309
  "ds:h-[var(--time-picker-option-size)] ds:min-w-[var(--time-picker-option-size)]",
@@ -335,24 +336,24 @@ const Gt = L(
335
336
  defaultVariants: { selected: !1 }
336
337
  }
337
338
  );
338
- function er({
339
- columns: r,
339
+ function nr({
340
+ columns: n,
340
341
  columnRefs: o,
341
- onPick: l,
342
+ onPick: u,
342
343
  onOptionKeyDown: f
343
344
  }) {
344
- const C = r.map((g) => g.selectedIndex).join(":"), b = d(!1);
345
- return Je(() => {
345
+ const z = n.map((g) => g.selectedIndex).join(":"), b = d(!1);
346
+ return Ae(() => {
346
347
  const g = !b.current;
347
348
  b.current = !0;
348
349
  for (const m of Object.values(o.current)) {
349
350
  if (!m) continue;
350
351
  const k = m.querySelector('[aria-selected="true"]') ?? m.querySelector('[role="option"][tabindex="0"]');
351
352
  if (!k) continue;
352
- const z = k.offsetTop, x = z + k.offsetHeight, c = z >= m.scrollTop && x <= m.scrollTop + m.clientHeight;
353
- (g || !c) && (m.scrollTop = z - (m.clientHeight - k.offsetHeight) / 2);
353
+ const C = k.offsetTop, x = C + k.offsetHeight, c = C >= m.scrollTop && x <= m.scrollTop + m.clientHeight;
354
+ (g || !c) && (m.scrollTop = C - (m.clientHeight - k.offsetHeight) / 2);
354
355
  }
355
- }, [C, o]), /* @__PURE__ */ v(Lt, { children: r.map((g, m) => /* @__PURE__ */ v(
356
+ }, [z, o]), /* @__PURE__ */ v(Ot, { children: n.map((g, m) => /* @__PURE__ */ v(
356
357
  "div",
357
358
  {
358
359
  ref: (k) => {
@@ -361,19 +362,19 @@ function er({
361
362
  role: "listbox",
362
363
  "aria-label": g.label,
363
364
  "data-column": g.key,
364
- className: Yt({ separated: m > 0 }),
365
- children: g.options.map((k, z) => {
366
- const x = z === g.selectedIndex;
365
+ className: tr({ separated: m > 0 }),
366
+ children: g.options.map((k, C) => {
367
+ const x = C === g.selectedIndex;
367
368
  return /* @__PURE__ */ v(
368
369
  "div",
369
370
  {
370
371
  role: "option",
371
372
  "aria-selected": x,
372
- tabIndex: z === g.anchorIndex ? 0 : -1,
373
+ tabIndex: C === g.anchorIndex ? 0 : -1,
373
374
  "data-value": k.value,
374
- className: Zt({ selected: x }),
375
- onClick: () => l(g.key, k.value),
376
- onKeyDown: (c) => f(c, m, z),
375
+ className: rr({ selected: x }),
376
+ onClick: () => u(g.key, k.value),
377
+ onKeyDown: (c) => f(c, m, C),
377
378
  children: k.label
378
379
  },
379
380
  k.value
@@ -383,139 +384,150 @@ function er({
383
384
  g.key
384
385
  )) });
385
386
  }
386
- const tr = Ht(
387
- (r, o) => {
387
+ const sr = Rt(
388
+ (n, o) => {
388
389
  const {
389
- value: l,
390
+ value: u,
390
391
  allowEmpty: f = !1,
391
- defaultValue: C,
392
+ defaultValue: z,
392
393
  onChange: b,
393
394
  hour12: g,
394
395
  minuteStep: m = 1,
395
396
  fullWidthSeparator: k = !1,
396
- periodLabels: z,
397
+ periodLabels: C,
397
398
  size: x = "md",
398
399
  dropdown: c = !1,
399
- disabled: Ye,
400
- className: Ze,
401
- id: et,
402
- "aria-label": de,
403
- "aria-labelledby": tt
404
- } = r, te = r.allowEmpty ? r.onChange : void 0, { t: M, i18n: Me } = Ot("ui"), A = Rt(), rt = Ft(St) !== null, R = Kt(A, et), u = !!(A.disabled || Ye), nt = A.invalid ? "error" : "default", h = g !== void 0 ? g : Bt(Me.language), st = Ut(Me.language), S = z ?? st, fe = l !== void 0, [ot, it] = le(
405
- l !== void 0 ? l : C !== void 0 ? C : f ? null : { hours: 0, minutes: 0 }
406
- ), pe = fe ? l : ot, i = ce(
407
- () => f ? pe : pe ?? { hours: 0, minutes: 0 },
408
- [f, pe]
400
+ disabled: tt,
401
+ className: rt,
402
+ id: nt,
403
+ "aria-label": fe,
404
+ "aria-labelledby": st
405
+ } = n, re = n.allowEmpty ? n.onChange : void 0, { t: M, i18n: Le } = Kt("ui"), A = Nt(), ot = It(Et) !== null, I = jt(A, nt), l = !!(A.disabled || tt), it = A.invalid ? "error" : "default", h = g !== void 0 ? g : _t(Le.language), at = qt(Le.language), S = C ?? at, pe = u !== void 0, [lt, ut] = Z(
406
+ u !== void 0 ? u : z !== void 0 ? z : f ? null : { hours: 0, minutes: 0 }
407
+ ), me = pe ? u : lt, i = de(
408
+ () => f ? me : me ?? { hours: 0, minutes: 0 },
409
+ [f, me]
409
410
  ), K = () => H.current ?? { hours: 0, minutes: 0 }, H = d(i);
410
411
  H.current = i;
411
- const y = U(
412
+ const y = W(
412
413
  (e) => {
413
- H.current = e, fe || it(e), e === null ? te == null || te(null) : b == null || b(e);
414
+ H.current = e, pe || ut(e), e === null ? re == null || re(null) : b == null || b(e);
414
415
  },
415
- [fe, b, te]
416
- ), _ = d(null), F = d(null), N = d(null), re = d(null), q = d(""), $ = d(""), D = d(null), P = d(null), E = () => {
417
- q.current = "", D.current && (clearTimeout(D.current), D.current = null);
418
- }, j = () => {
419
- $.current = "", P.current && (clearTimeout(P.current), P.current = null);
416
+ [pe, b, re]
417
+ ), N = d(null), F = d(null), E = d(null), ne = d(null), _ = d(""), q = d(""), D = d(null), P = d(null), j = () => {
418
+ _.current = "", D.current && (clearTimeout(D.current), D.current = null);
419
+ }, V = () => {
420
+ q.current = "", P.current && (clearTimeout(P.current), P.current = null);
420
421
  };
421
- Je(() => {
422
- (l === null || u) && (E(), j());
423
- }, [l, u]);
424
- const ne = U(() => {
425
- q.current = "", $.current = "", D.current && clearTimeout(D.current), P.current && clearTimeout(P.current), D.current = null, P.current = null, y(f ? null : { hours: 0, minutes: 0 });
426
- }, [f, y]), me = (e) => !f || e.key !== "Backspace" && e.key !== "Delete" ? !1 : (e.preventDefault(), ne(), !0), Ae = (e) => {
427
- const t = K(), n = O(
422
+ Ae(() => {
423
+ (u === null || l) && (j(), V());
424
+ }, [u, l]);
425
+ const se = W(() => {
426
+ _.current = "", q.current = "", D.current && clearTimeout(D.current), P.current && clearTimeout(P.current), D.current = null, P.current = null, y(f ? null : { hours: 0, minutes: 0 });
427
+ }, [f, y]), he = (e) => !f || e.key !== "Backspace" && e.key !== "Delete" ? !1 : (e.preventDefault(), se(), !0), He = (e) => {
428
+ const t = K(), r = R(
428
429
  parseInt(e, 10),
429
430
  h ? 1 : 0,
430
431
  h ? 12 : 23
431
432
  );
432
433
  y({
433
434
  ...t,
434
- hours: h ? We(n, t.hours >= 12) : n
435
+ hours: h ? Qe(r, t.hours >= 12) : r
435
436
  });
436
- }, Le = (e) => {
437
+ }, Fe = (e) => {
437
438
  y({
438
439
  ...K(),
439
- minutes: _t(parseInt(e, 10), m)
440
+ minutes: $t(parseInt(e, 10), m)
440
441
  });
441
- }, se = () => {
442
- const e = q.current;
443
- E(), e && Ae(e);
444
442
  }, oe = () => {
445
- const e = $.current;
446
- j(), e && Le(e);
447
- }, he = d({
448
- hour: se,
449
- minute: oe
443
+ const e = _.current;
444
+ j(), e && He(e);
445
+ }, ie = () => {
446
+ const e = q.current;
447
+ V(), e && Fe(e);
448
+ }, ve = d({
449
+ hour: oe,
450
+ minute: ie
450
451
  });
451
- he.current = { hour: se, minute: oe }, Ce(() => () => {
452
+ ve.current = { hour: oe, minute: ie }, Ce(() => () => {
452
453
  D.current && clearTimeout(D.current), P.current && clearTimeout(P.current);
453
454
  }, []);
454
- const at = k ? ":" : ":", ve = M("inputs.timePicker.unset", "No time set"), He = i === null ? "--" : ee(h ? ze(i.hours) : i.hours), Fe = i === null ? "--" : ee(i.minutes), W = ((i == null ? void 0 : i.hours) ?? 0) >= 12, [I, ut] = le(!1), lt = c && I, ge = d(I);
455
- ge.current = I;
456
- const T = U((e) => {
457
- ge.current = e, ut(e);
458
- }, []), [Ie, ct] = le("ltr"), ie = d("pointer"), be = d("hour"), G = d(null), X = d(!1), J = d(null), ye = d(null), we = d(
455
+ const ct = k ? ":" : ":", ge = M("inputs.timePicker.unset", "No time set"), Oe = i === null ? "--" : te(h ? Me(i.hours) : i.hours), Re = i === null ? "--" : te(i.minutes), $ = ((i == null ? void 0 : i.hours) ?? 0) >= 12, [O, dt] = Z(!1), ft = c && O, be = d(O);
456
+ be.current = O;
457
+ const T = W((e) => {
458
+ be.current = e, dt(e);
459
+ }, []), [Ie, pt] = Z("ltr"), ae = d("pointer"), ye = d("hour"), G = d(null), X = d(!1), J = d(null), we = d(null), [le, Se] = Z(!1), Ke = d(0);
460
+ Ae(() => {
461
+ const e = N.current;
462
+ if (!e || typeof ResizeObserver > "u") return;
463
+ const t = () => {
464
+ le ? e.clientWidth >= Ke.current && Se(!1) : e.scrollWidth > e.clientWidth + 1 && (Ke.current = e.scrollWidth, Se(!0));
465
+ };
466
+ t();
467
+ const r = new ResizeObserver(t);
468
+ return r.observe(e), () => r.disconnect();
469
+ }, [le]);
470
+ const ke = d(
459
471
  {}
460
- ), ke = U((e) => {
461
- var t, n;
462
- (n = (t = we.current[e]) == null ? void 0 : t.querySelector('[role="option"][tabindex="0"]')) == null || n.focus({ preventScroll: !0 });
463
- }, []), ae = U(
472
+ ), xe = W((e) => {
473
+ var t, r;
474
+ (r = (t = ke.current[e]) == null ? void 0 : t.querySelector('[role="option"][tabindex="0"]')) == null || r.focus({ preventScroll: !0 });
475
+ }, []), ue = W(
464
476
  (e) => {
465
477
  if (e) {
466
- if (u) return;
467
- const t = _.current;
468
- ct(
478
+ if (l) return;
479
+ const t = N.current;
480
+ pt(
469
481
  t && window.getComputedStyle(t).direction === "rtl" ? "rtl" : "ltr"
470
482
  ), X.current = !1;
471
483
  }
472
484
  T(e);
473
485
  },
474
- [u, T]
475
- ), Oe = (e, t, n) => {
476
- if (!(!c || u)) {
477
- if (ie.current = e, be.current = t, G.current = n, I) {
478
- e === "keyboard" && ke(t);
486
+ [l, T]
487
+ ), Ne = (e, t, r) => {
488
+ if (!(!c || l)) {
489
+ if (ae.current = e, ye.current = t, G.current = r, O) {
490
+ e === "keyboard" && xe(t);
479
491
  return;
480
492
  }
481
- ae(!0);
493
+ ue(!0);
482
494
  }
483
495
  };
484
496
  Ce(() => {
485
- I && (!c || u) && T(!1);
486
- }, [I, c, u, T]);
487
- const xe = (e, t) => !c || !e.altKey ? !1 : e.key === "ArrowUp" && I ? (e.preventDefault(), T(!1), !0) : e.key !== "ArrowDown" ? !1 : (e.preventDefault(), se(), oe(), Oe("keyboard", t, e.currentTarget), !0), dt = (e) => {
488
- var t, n;
489
- if (!u && !me(e) && !xe(e, "hour")) {
497
+ O && (!c || l) && T(!1);
498
+ }, [O, c, l, T]);
499
+ const De = (e, t) => !c || !e.altKey ? !1 : e.key === "ArrowUp" && O ? (e.preventDefault(), T(!1), !0) : e.key !== "ArrowDown" ? !1 : (e.preventDefault(), oe(), ie(), Ne("keyboard", t, e.currentTarget), !0), mt = (e) => {
500
+ var t, r;
501
+ if (!l && !he(e) && !De(e, "hour")) {
490
502
  if (e.key === "ArrowUp" || e.key === "ArrowDown") {
491
- e.preventDefault(), E();
503
+ e.preventDefault(), j();
492
504
  const s = K(), a = e.key === "ArrowUp" ? 1 : -1, w = 23;
493
505
  let p = s.hours + a;
494
506
  p < 0 && (p = w), p > w && (p = 0), y({ ...s, hours: p });
495
507
  return;
496
508
  }
497
509
  if (e.key === "Tab" && !e.shiftKey) {
498
- e.preventDefault(), (t = N.current) == null || t.focus();
510
+ e.preventDefault(), (t = E.current) == null || t.focus();
499
511
  return;
500
512
  }
501
513
  if (e.key.length === 1 && e.key >= "0" && e.key <= "9") {
502
514
  e.preventDefault(), D.current && clearTimeout(D.current);
503
- const s = q.current + e.key;
504
- s.length >= 2 || parseInt(s, 10) > (h ? 1 : 2) ? (E(), Ae(s), (n = N.current) == null || n.focus()) : (q.current = s, D.current = setTimeout(
505
- () => he.current.hour(),
515
+ const s = _.current + e.key;
516
+ s.length >= 2 || parseInt(s, 10) > (h ? 1 : 2) ? (j(), He(s), (r = E.current) == null || r.focus()) : (_.current = s, D.current = setTimeout(
517
+ () => ve.current.hour(),
506
518
  1e3
507
519
  ));
508
520
  }
509
521
  }
510
- }, ft = (e) => {
511
- var t, n, s;
512
- if (!u && !me(e) && !xe(e, "minute")) {
522
+ }, ht = (e) => {
523
+ var t, r, s;
524
+ if (!l && !he(e) && !De(e, "minute")) {
513
525
  if (e.key === "ArrowUp" || e.key === "ArrowDown") {
514
- e.preventDefault(), j();
526
+ e.preventDefault(), V();
515
527
  const a = K();
516
528
  y({
517
529
  ...a,
518
- minutes: qt(
530
+ minutes: Gt(
519
531
  a.minutes,
520
532
  m,
521
533
  e.key === "ArrowUp" ? 1 : -1
@@ -524,134 +536,134 @@ const tr = Ht(
524
536
  return;
525
537
  }
526
538
  if (e.key === "Tab" && !e.shiftKey && h) {
527
- e.preventDefault(), (t = re.current) == null || t.focus();
539
+ e.preventDefault(), (t = ne.current) == null || t.focus();
528
540
  return;
529
541
  }
530
542
  if (e.key === "Tab" && e.shiftKey) {
531
- e.preventDefault(), (n = F.current) == null || n.focus();
543
+ e.preventDefault(), (r = F.current) == null || r.focus();
532
544
  return;
533
545
  }
534
546
  if (e.key.length === 1 && e.key >= "0" && e.key <= "9") {
535
547
  e.preventDefault(), P.current && clearTimeout(P.current);
536
- const a = $.current + e.key;
537
- a.length >= 2 || parseInt(a, 10) > 5 ? (j(), Le(a), h && ((s = re.current) == null || s.focus())) : ($.current = a, P.current = setTimeout(
538
- () => he.current.minute(),
548
+ const a = q.current + e.key;
549
+ a.length >= 2 || parseInt(a, 10) > 5 ? (V(), Fe(a), h && ((s = ne.current) == null || s.focus())) : (q.current = a, P.current = setTimeout(
550
+ () => ve.current.minute(),
539
551
  1e3
540
552
  ));
541
553
  }
542
554
  }
543
- }, pt = (e) => {
555
+ }, vt = (e) => {
544
556
  var s;
545
- if (u || me(e) || xe(e, "period")) return;
546
- const t = K(), n = t.hours >= 12;
557
+ if (l || he(e) || De(e, "period")) return;
558
+ const t = K(), r = t.hours >= 12;
547
559
  if (e.key === "ArrowUp" || e.key === "ArrowDown") {
548
560
  e.preventDefault();
549
- const a = n ? t.hours - 12 : t.hours + 12;
550
- y({ ...t, hours: O(a, 0, 23) });
561
+ const a = r ? t.hours - 12 : t.hours + 12;
562
+ y({ ...t, hours: R(a, 0, 23) });
551
563
  return;
552
564
  }
553
565
  if (e.key === "Tab" && e.shiftKey) {
554
- e.preventDefault(), (s = N.current) == null || s.focus();
566
+ e.preventDefault(), (s = E.current) == null || s.focus();
555
567
  return;
556
568
  }
557
- (e.key === "a" || e.key === "A") && (e.preventDefault(), (H.current === null || n) && y({ ...t, hours: n ? t.hours - 12 : t.hours })), (e.key === "p" || e.key === "P") && (e.preventDefault(), n || y({ ...t, hours: t.hours + 12 }));
558
- }, mt = () => {
559
- se();
560
- }, ht = () => {
569
+ (e.key === "a" || e.key === "A") && (e.preventDefault(), (H.current === null || r) && y({ ...t, hours: r ? t.hours - 12 : t.hours })), (e.key === "p" || e.key === "P") && (e.preventDefault(), r || y({ ...t, hours: t.hours + 12 }));
570
+ }, gt = () => {
561
571
  oe();
562
- }, Re = M("inputs.timePicker.hour", "Hour"), Se = M("inputs.timePicker.minute", "Minute"), Ke = M("inputs.timePicker.period", "Period"), vt = M("inputs.timePicker.groupLabel", "Time"), gt = M(
572
+ }, bt = () => {
573
+ ie();
574
+ }, Ee = M("inputs.timePicker.hour", "Hour"), je = M("inputs.timePicker.minute", "Minute"), Ve = M("inputs.timePicker.period", "Period"), yt = M("inputs.timePicker.groupLabel", "Time"), wt = M(
563
575
  "inputs.timePicker.openDropdown",
564
576
  "Choose time"
565
- ), De = `${A.id}-label`, ue = rt && !!A.label, [bt, Ne] = le(!0), Pe = tt ?? (!de && ue && bt ? De : void 0), Ee = Pe ? void 0 : de ?? vt, je = de ?? (ue ? A.label : void 0), yt = je ? M("inputs.timePicker.clearNamed", { label: je }) : M("inputs.text.clear");
577
+ ), Pe = `${A.id}-label`, ce = ot && !!A.label, [kt, Be] = Z(!0), Te = st ?? (!fe && ce && kt ? Pe : void 0), Ue = Te ? void 0 : fe ?? yt, We = fe ?? (ce ? A.label : void 0), xt = We ? M("inputs.timePicker.clearNamed", { label: We }) : M("inputs.text.clear");
566
578
  Ce(() => {
567
579
  var w;
568
- if (!ue) return;
569
- const e = (w = _.current) == null ? void 0 : w.getRootNode(), t = e instanceof Document || e instanceof ShadowRoot ? e.getElementById(De) : null;
580
+ if (!ce) return;
581
+ const e = (w = N.current) == null ? void 0 : w.getRootNode(), t = e instanceof Document || e instanceof ShadowRoot ? e.getElementById(Pe) : null;
570
582
  if (!(t instanceof HTMLLabelElement)) {
571
- Ne(!1);
583
+ Be(!1);
572
584
  return;
573
585
  }
574
- const n = () => Ne(t.htmlFor === R);
575
- n();
576
- const s = new MutationObserver(n);
586
+ const r = () => Be(t.htmlFor === I);
587
+ r();
588
+ const s = new MutationObserver(r);
577
589
  s.observe(t, { attributes: !0, attributeFilter: ["for"] });
578
590
  const a = () => {
579
591
  var p;
580
- t.htmlFor !== R || u || (p = F.current) == null || p.focus();
592
+ t.htmlFor !== I || l || (p = F.current) == null || p.focus();
581
593
  };
582
594
  return t.addEventListener("click", a), () => {
583
595
  s.disconnect(), t.removeEventListener("click", a);
584
596
  };
585
- }, [ue, De, R, u]);
586
- const Ve = ce(
597
+ }, [ce, Pe, I, l]);
598
+ const _e = de(
587
599
  () => Array.from(
588
600
  { length: h ? 12 : 24 },
589
601
  (e, t) => h ? t + 1 : t
590
- ).map((e) => ({ value: e, label: ee(e) })),
602
+ ).map((e) => ({ value: e, label: te(e) })),
591
603
  [h]
592
- ), Te = ce(() => {
604
+ ), ze = de(() => {
593
605
  const e = [];
594
606
  for (let t = 0; t <= 59; t += m)
595
- e.push({ value: t, label: ee(t) });
607
+ e.push({ value: t, label: te(t) });
596
608
  return e;
597
- }, [m]), V = [];
609
+ }, [m]), B = [];
598
610
  if (c) {
599
- const e = Ve.findIndex(
600
- (n) => n.value === (i === null ? void 0 : h ? ze(i.hours) : i.hours)
611
+ const e = _e.findIndex(
612
+ (r) => r.value === (i === null ? void 0 : h ? Me(i.hours) : i.hours)
601
613
  );
602
- V.push({
614
+ B.push({
603
615
  key: "hour",
604
- label: Re,
605
- options: Ve,
616
+ label: Ee,
617
+ options: _e,
606
618
  selectedIndex: e,
607
619
  anchorIndex: Math.max(e, 0)
608
620
  });
609
- const t = Te.findIndex(
610
- (n) => n.value === (i == null ? void 0 : i.minutes)
621
+ const t = ze.findIndex(
622
+ (r) => r.value === (i == null ? void 0 : i.minutes)
611
623
  );
612
- V.push({
624
+ B.push({
613
625
  key: "minute",
614
- label: Se,
615
- options: Te,
626
+ label: je,
627
+ options: ze,
616
628
  selectedIndex: t,
617
- anchorIndex: t >= 0 ? t : O(
629
+ anchorIndex: t >= 0 ? t : R(
618
630
  Math.floor(((i == null ? void 0 : i.minutes) ?? 0) / m),
619
631
  0,
620
- Te.length - 1
632
+ ze.length - 1
621
633
  )
622
- }), h && V.push({
634
+ }), h && B.push({
623
635
  key: "period",
624
- label: Ke,
636
+ label: Ve,
625
637
  options: [
626
638
  { value: 0, label: S.am },
627
639
  { value: 1, label: S.pm }
628
640
  ],
629
- selectedIndex: i === null ? -1 : W ? 1 : 0,
630
- anchorIndex: W ? 1 : 0
641
+ selectedIndex: i === null ? -1 : $ ? 1 : 0,
642
+ anchorIndex: $ ? 1 : 0
631
643
  });
632
644
  }
633
- const Be = (e, t) => {
645
+ const qe = (e, t) => {
634
646
  var s;
635
- E(), j();
636
- const n = K();
647
+ j(), V();
648
+ const r = K();
637
649
  if (e === "hour") {
638
- const a = h ? We(t, n.hours >= 12) : t;
639
- (H.current === null || a !== n.hours) && y({ ...n, hours: a });
650
+ const a = h ? Qe(t, r.hours >= 12) : t;
651
+ (H.current === null || a !== r.hours) && y({ ...r, hours: a });
640
652
  return;
641
653
  }
642
654
  if (e === "period") {
643
655
  const a = t === 1;
644
- (H.current === null || a !== n.hours >= 12) && y({ ...n, hours: n.hours % 12 + (a ? 12 : 0) });
656
+ (H.current === null || a !== r.hours >= 12) && y({ ...r, hours: r.hours % 12 + (a ? 12 : 0) });
645
657
  return;
646
658
  }
647
- (H.current === null || t !== n.minutes) && y({ ...n, minutes: t }), (s = N.current) == null || s.focus(), T(!1);
648
- }, wt = (e, t, n) => {
649
- var p, Q, _e;
650
- const s = V[t];
659
+ (H.current === null || t !== r.minutes) && y({ ...r, minutes: t }), (s = E.current) == null || s.focus(), T(!1);
660
+ }, Dt = (e, t, r) => {
661
+ var p, Q, Ge;
662
+ const s = B[t];
651
663
  if (!s) return;
652
- const a = s.options.length - 1, w = (B) => {
653
- var Y, qe;
654
- (qe = (Y = we.current[s.key]) == null ? void 0 : Y.querySelectorAll('[role="option"]')[B]) == null || qe.focus();
664
+ const a = s.options.length - 1, w = (U) => {
665
+ var Y, Xe;
666
+ (Xe = (Y = ke.current[s.key]) == null ? void 0 : Y.querySelectorAll('[role="option"]')[U]) == null || Xe.focus();
655
667
  };
656
668
  if (e.altKey && e.key === "ArrowUp") {
657
669
  e.preventDefault(), (p = G.current) == null || p.focus(), T(!1);
@@ -659,10 +671,10 @@ const tr = Ht(
659
671
  }
660
672
  switch (e.key) {
661
673
  case "ArrowDown":
662
- e.preventDefault(), w(Math.min(n + 1, a));
674
+ e.preventDefault(), w(Math.min(r + 1, a));
663
675
  break;
664
676
  case "ArrowUp":
665
- e.preventDefault(), w(Math.max(n - 1, 0));
677
+ e.preventDefault(), w(Math.max(r - 1, 0));
666
678
  break;
667
679
  case "Home":
668
680
  e.preventDefault(), w(0);
@@ -673,70 +685,70 @@ const tr = Ht(
673
685
  case "ArrowLeft":
674
686
  case "ArrowRight": {
675
687
  e.preventDefault();
676
- const B = e.key === "ArrowRight" == (Ie === "ltr"), Y = V[t + (B ? 1 : -1)];
677
- Y && ke(Y.key);
688
+ const U = e.key === "ArrowRight" == (Ie === "ltr"), Y = B[t + (U ? 1 : -1)];
689
+ Y && xe(Y.key);
678
690
  break;
679
691
  }
680
692
  case "Enter":
681
693
  case " ": {
682
694
  e.preventDefault();
683
- const B = s.options[n];
684
- B && Be(s.key, B.value);
695
+ const U = s.options[r];
696
+ U && qe(s.key, U.value);
685
697
  break;
686
698
  }
687
699
  case "Tab":
688
- X.current = !0, e.shiftKey ? (Q = F.current) == null || Q.focus() : (_e = ye.current) == null || _e.focus(), T(!1);
700
+ X.current = !0, e.shiftKey ? (Q = F.current) == null || Q.focus() : (Ge = we.current) == null || Ge.focus(), T(!1);
689
701
  break;
690
702
  }
691
- }, kt = (e) => {
703
+ }, Pt = (e) => {
692
704
  var a, w;
693
- if (!c || u) return;
705
+ if (!c || l) return;
694
706
  const t = e.target;
695
- if (!(t instanceof Node) || (a = ye.current) != null && a.contains(t)) return;
696
- const n = [F.current, N.current, re.current];
697
- let s = n.find((p) => p == null ? void 0 : p.contains(t)) ?? null;
707
+ if (!(t instanceof Node) || (a = we.current) != null && a.contains(t)) return;
708
+ const r = [F.current, E.current, ne.current];
709
+ let s = r.find((p) => p == null ? void 0 : p.contains(t)) ?? null;
698
710
  if (!s) {
699
711
  const p = (w = t.ownerDocument) == null ? void 0 : w.activeElement;
700
- s = n.find((Q) => Q && Q === p) ?? F.current, s && s !== p && s.focus();
712
+ s = r.find((Q) => Q && Q === p) ?? F.current, s && s !== p && s.focus();
701
713
  }
702
- Oe("pointer", "hour", s);
703
- }, xt = (e) => {
704
- ie.current = e.detail === 0 ? "keyboard" : "pointer", be.current = "hour", G.current = e.currentTarget;
705
- }, Dt = (e) => {
706
- e.preventDefault(), ie.current === "keyboard" && ke(be.current);
707
- }, Pt = (e) => {
714
+ Ne("pointer", "hour", s);
715
+ }, Tt = (e) => {
716
+ ae.current = e.detail === 0 ? "keyboard" : "pointer", ye.current = "hour", G.current = e.currentTarget;
717
+ }, zt = (e) => {
718
+ e.preventDefault(), ae.current === "keyboard" && xe(ye.current);
719
+ }, Ct = (e) => {
708
720
  var s;
709
721
  e.preventDefault();
710
722
  const t = X.current;
711
723
  if (X.current = !1, t) return;
712
- const n = document.activeElement;
713
- (!n || n === document.body) && ((s = G.current) == null || s.focus());
714
- }, Tt = (e) => {
715
- var n;
724
+ const r = document.activeElement;
725
+ (!r || r === document.body) && ((s = G.current) == null || s.focus());
726
+ }, Mt = (e) => {
727
+ var r;
716
728
  const t = e.target;
717
- if (t instanceof Node && ((n = _.current) != null && n.contains(t))) {
729
+ if (t instanceof Node && ((r = N.current) != null && r.contains(t))) {
718
730
  e.preventDefault();
719
731
  return;
720
732
  }
721
733
  X.current = !0;
722
- }, Ct = () => {
734
+ }, At = () => {
723
735
  var e, t;
724
736
  (e = J.current) != null && e.contains(document.activeElement) && ((t = G.current) == null || t.focus());
725
- }, zt = U((e) => {
726
- var n, s;
727
- const t = Wt;
728
- (n = J.current) == null || n.removeEventListener("wheel", t), (s = J.current) == null || s.removeEventListener("touchmove", t), J.current = e, e == null || e.addEventListener("wheel", t, { passive: !0 }), e == null || e.addEventListener("touchmove", t, { passive: !0 });
729
- }, []), Mt = (e) => {
737
+ }, Lt = W((e) => {
738
+ var r, s;
739
+ const t = Jt;
740
+ (r = J.current) == null || r.removeEventListener("wheel", t), (s = J.current) == null || s.removeEventListener("touchmove", t), J.current = e, e == null || e.addEventListener("wheel", t, { passive: !0 }), e == null || e.addEventListener("touchmove", t, { passive: !0 });
741
+ }, []), Ht = (e) => {
730
742
  var t;
731
743
  (t = J.current) != null && t.contains(document.activeElement) || e.preventDefault();
732
- }, At = ce(
744
+ }, Ft = de(
733
745
  () => ({
734
746
  getValue: () => i,
735
- setValue: (e) => y($t(e)),
736
- clear: ne,
737
- isOpen: () => c && ge.current,
747
+ setValue: (e) => y(Xt(e)),
748
+ clear: se,
749
+ isOpen: () => c && be.current,
738
750
  open: () => {
739
- !c || u || (ie.current = "pointer", ae(!0));
751
+ !c || l || (ae.current = "pointer", ue(!0));
740
752
  },
741
753
  close: () => {
742
754
  c && T(!1);
@@ -745,170 +757,170 @@ const tr = Ht(
745
757
  [
746
758
  i,
747
759
  y,
748
- ne,
760
+ se,
749
761
  c,
750
- u,
751
- ae,
762
+ l,
763
+ ue,
752
764
  T
753
765
  ]
754
766
  );
755
- It(o, () => _.current, []), Nt(Vt, At, R);
756
- const Ue = (
767
+ St(o, () => N.current, []), Vt(Wt, Ft, I);
768
+ const $e = (
757
769
  // eslint-disable-next-line jsx-a11y/role-supports-aria-props, jsx-a11y/click-events-have-key-events, jsx-a11y/no-noninteractive-element-interactions -- aria-invalid is a global ARIA state conveying group-level validation; the click is a pointer shortcut to the list, which the keyboard opens with Alt+ArrowDown or the clock button
758
- /* @__PURE__ */ $e(
770
+ /* @__PURE__ */ Je(
759
771
  "div",
760
772
  {
761
- ref: _,
762
- id: R,
773
+ ref: N,
774
+ id: I,
763
775
  role: "group",
764
- "aria-label": Ee,
765
- "aria-labelledby": Pe,
776
+ "aria-label": Ue,
777
+ "aria-labelledby": Te,
766
778
  "aria-describedby": A.describedBy || void 0,
767
779
  "aria-invalid": A.invalid || void 0,
768
- "aria-disabled": u || void 0,
780
+ "aria-disabled": l || void 0,
769
781
  "data-component": "time-picker",
770
- "data-component-id": R,
771
- className: Gt({
782
+ "data-component-id": I,
783
+ className: Qt({
772
784
  size: x,
773
- tone: nt,
774
- isDisabled: u,
775
- opensOnClick: c && !u,
776
- className: Ze
785
+ tone: it,
786
+ isDisabled: l,
787
+ opensOnClick: c && !l,
788
+ className: rt
777
789
  }),
778
- onClick: c ? kt : void 0,
790
+ onClick: c ? Pt : void 0,
779
791
  children: [
780
792
  /* @__PURE__ */ v(
781
793
  "span",
782
794
  {
783
795
  ref: F,
784
796
  role: "spinbutton",
785
- "aria-disabled": u || void 0,
786
- "aria-label": Re,
797
+ "aria-disabled": l || void 0,
798
+ "aria-label": Ee,
787
799
  "aria-valuemin": h ? 1 : 0,
788
800
  "aria-valuemax": h ? 12 : 23,
789
- "aria-valuenow": i === null ? void 0 : h ? ze(i.hours) : i.hours,
790
- "aria-valuetext": i === null ? ve : He,
801
+ "aria-valuenow": i === null ? void 0 : h ? Me(i.hours) : i.hours,
802
+ "aria-valuetext": i === null ? ge : Oe,
791
803
  "aria-keyshortcuts": c ? "Alt+ArrowDown" : void 0,
792
- tabIndex: u ? -1 : 0,
804
+ tabIndex: l ? -1 : 0,
793
805
  inputMode: "numeric",
794
- onKeyDown: dt,
795
- onBlur: mt,
796
- className: Ge({ size: x }),
797
- children: He
806
+ onKeyDown: mt,
807
+ onBlur: gt,
808
+ className: Ye({ size: x }),
809
+ children: Oe
798
810
  }
799
811
  ),
800
- /* @__PURE__ */ v("span", { "aria-hidden": "true", className: Jt({ size: x }), children: at }),
812
+ /* @__PURE__ */ v("span", { "aria-hidden": "true", className: Zt({ size: x }), children: ct }),
801
813
  /* @__PURE__ */ v(
802
814
  "span",
803
815
  {
804
- ref: N,
816
+ ref: E,
805
817
  role: "spinbutton",
806
- "aria-disabled": u || void 0,
807
- "aria-label": Se,
818
+ "aria-disabled": l || void 0,
819
+ "aria-label": je,
808
820
  "aria-valuemin": 0,
809
821
  "aria-valuemax": 59,
810
822
  "aria-valuenow": i == null ? void 0 : i.minutes,
811
- "aria-valuetext": i === null ? ve : Fe,
823
+ "aria-valuetext": i === null ? ge : Re,
812
824
  "aria-keyshortcuts": c ? "Alt+ArrowDown" : void 0,
813
- tabIndex: u ? -1 : 0,
825
+ tabIndex: l ? -1 : 0,
814
826
  inputMode: "numeric",
815
- onKeyDown: ft,
816
- onBlur: ht,
817
- className: Ge({ size: x }),
818
- children: Fe
827
+ onKeyDown: ht,
828
+ onBlur: bt,
829
+ className: Ye({ size: x }),
830
+ children: Re
819
831
  }
820
832
  ),
821
833
  h ? /* @__PURE__ */ v(
822
834
  "span",
823
835
  {
824
- ref: re,
836
+ ref: ne,
825
837
  role: "spinbutton",
826
- "aria-disabled": u || void 0,
827
- "aria-label": Ke,
838
+ "aria-disabled": l || void 0,
839
+ "aria-label": Ve,
828
840
  "aria-valuemin": 0,
829
841
  "aria-valuemax": 1,
830
- "aria-valuenow": i === null ? void 0 : W ? 1 : 0,
831
- "aria-valuetext": i === null ? ve : W ? S.pm : S.am,
842
+ "aria-valuenow": i === null ? void 0 : $ ? 1 : 0,
843
+ "aria-valuetext": i === null ? ge : $ ? S.pm : S.am,
832
844
  "aria-keyshortcuts": c ? "Alt+ArrowDown" : void 0,
833
- tabIndex: u ? -1 : 0,
834
- onKeyDown: pt,
835
- className: Xt({ size: x }),
836
- children: i === null ? "--" : W ? S.pm : S.am
845
+ tabIndex: l ? -1 : 0,
846
+ onKeyDown: vt,
847
+ className: Yt({ size: x }),
848
+ children: i === null ? "--" : $ ? S.pm : S.am
837
849
  }
838
850
  ) : null,
839
- f ? /* @__PURE__ */ v(
851
+ f && !le ? /* @__PURE__ */ v(
840
852
  "button",
841
853
  {
842
854
  type: "button",
843
- "aria-label": yt,
844
- disabled: u || i === null,
855
+ "aria-label": xt,
856
+ disabled: l || i === null,
845
857
  onPointerDown: (e) => {
846
- e.preventDefault(), E(), j();
858
+ e.preventDefault(), j(), V();
847
859
  },
848
860
  onClick: (e) => {
849
861
  var t;
850
- e.stopPropagation(), ne(), (t = F.current) == null || t.focus();
862
+ e.stopPropagation(), se(), (t = F.current) == null || t.focus();
851
863
  },
852
- className: Xe({
864
+ className: Ze({
853
865
  size: x,
854
866
  trailing: !c,
855
867
  className: i === null ? "ds:invisible" : void 0
856
868
  }),
857
- children: /* @__PURE__ */ v(Et, { "aria-hidden": "true" })
869
+ children: /* @__PURE__ */ v(Bt, { "aria-hidden": "true" })
858
870
  }
859
871
  ) : null,
860
- c ? /* @__PURE__ */ v(Z.Trigger, { asChild: !0, children: /* @__PURE__ */ v(
872
+ c && !le ? /* @__PURE__ */ v(ee.Trigger, { asChild: !0, children: /* @__PURE__ */ v(
861
873
  "button",
862
874
  {
863
- ref: ye,
875
+ ref: we,
864
876
  type: "button",
865
- "aria-label": gt,
866
- disabled: u,
867
- onClick: xt,
868
- className: Xe({ size: x }),
869
- children: /* @__PURE__ */ v(jt, { "aria-hidden": "true" })
877
+ "aria-label": wt,
878
+ disabled: l,
879
+ onClick: Tt,
880
+ className: Ze({ size: x }),
881
+ children: /* @__PURE__ */ v(Ut, { "aria-hidden": "true" })
870
882
  }
871
883
  ) }) : null
872
884
  ]
873
885
  }
874
886
  )
875
887
  );
876
- return c ? /* @__PURE__ */ $e(Z.Root, { open: lt, onOpenChange: ae, children: [
877
- /* @__PURE__ */ v(Z.Anchor, { asChild: !0, children: Ue }),
878
- /* @__PURE__ */ v(Z.Portal, { children: /* @__PURE__ */ v(
879
- Z.Content,
888
+ return c ? /* @__PURE__ */ Je(ee.Root, { open: ft, onOpenChange: ue, children: [
889
+ /* @__PURE__ */ v(ee.Anchor, { asChild: !0, children: $e }),
890
+ /* @__PURE__ */ v(ee.Portal, { children: /* @__PURE__ */ v(
891
+ ee.Content,
880
892
  {
881
- ref: zt,
893
+ ref: Lt,
882
894
  side: "bottom",
883
895
  align: "start",
884
896
  sideOffset: 4,
885
897
  dir: Ie,
886
898
  "data-component": "time-picker-dropdown",
887
- "aria-label": Ee,
888
- "aria-labelledby": Pe,
889
- className: Qt({ size: x }),
890
- onOpenAutoFocus: Dt,
891
- onCloseAutoFocus: Pt,
892
- onInteractOutside: Tt,
893
- onEscapeKeyDown: Ct,
894
- onMouseDown: Mt,
899
+ "aria-label": Ue,
900
+ "aria-labelledby": Te,
901
+ className: er({ size: x }),
902
+ onOpenAutoFocus: zt,
903
+ onCloseAutoFocus: Ct,
904
+ onInteractOutside: Mt,
905
+ onEscapeKeyDown: At,
906
+ onMouseDown: Ht,
895
907
  children: /* @__PURE__ */ v(
896
- er,
908
+ nr,
897
909
  {
898
- columns: V,
899
- columnRefs: we,
900
- onPick: Be,
901
- onOptionKeyDown: wt
910
+ columns: B,
911
+ columnRefs: ke,
912
+ onPick: qe,
913
+ onOptionKeyDown: Dt
902
914
  }
903
915
  )
904
916
  }
905
917
  ) })
906
- ] }) : Ue;
918
+ ] }) : $e;
907
919
  }
908
920
  );
909
- tr.displayName = "TimePicker";
921
+ sr.displayName = "TimePicker";
910
922
  export {
911
- tr as T,
912
- Vt as t
923
+ sr as T,
924
+ Wt as t
913
925
  };
914
- //# sourceMappingURL=time-picker-DSt-ns5F.js.map
926
+ //# sourceMappingURL=time-picker-DDr5vhwQ.js.map