@tempots/beatui 0.95.0 → 1.0.1

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 (239) hide show
  1. package/dist/{ar-BVXPzVJB.cjs → ar-CuI1Jgt6.cjs} +1 -1
  2. package/dist/{ar-B4jDJwHQ.js → ar-DaKbK_t8.js} +87 -11
  3. package/dist/auth/index.cjs.js +1 -1
  4. package/dist/auth/index.es.js +1 -1
  5. package/dist/{auth-divider-BPwKk8MW.js → auth-divider-CbME_yVQ.js} +87 -86
  6. package/dist/auth-divider-MMhfmLBu.cjs +1 -0
  7. package/dist/beatui.css +1628 -545
  8. package/dist/beatui.tailwind.css +1628 -545
  9. package/dist/better-auth/index.cjs.js +1 -1
  10. package/dist/better-auth/index.es.js +6 -6
  11. package/dist/codehighlight/index.cjs.js +22 -0
  12. package/dist/codehighlight/index.es.js +76 -0
  13. package/dist/colors-B-p6IzX9.cjs +1 -0
  14. package/dist/{colors-BY0Ja_bf.js → colors-DwufPN8S.js} +18 -18
  15. package/dist/{de-Dd33yWzb.js → de-3MTPDS1i.js} +82 -6
  16. package/dist/{de-BdfPZskW.cjs → de-DthHehbh.cjs} +1 -1
  17. package/dist/{deep-merge-C8dSqIXI.js → deep-merge-BzIheQtH.js} +511 -517
  18. package/dist/deep-merge-EkjEgK0N.cjs +1 -0
  19. package/dist/{duration-input-IuFWywO5.cjs → duration-input-ClgYjeBa.cjs} +1 -1
  20. package/dist/{duration-input-DFZwkg6M.js → duration-input-DGzmIImj.js} +5 -5
  21. package/dist/{editor-toolbar-group-DiJFgGcI.js → editor-toolbar-group-Crlu1QJw.js} +3 -3
  22. package/dist/{editor-toolbar-group-BCBfu8pG.cjs → editor-toolbar-group-mkL4QozO.cjs} +1 -1
  23. package/dist/es-B6GJLk9h.cjs +1 -0
  24. package/dist/{es-jHMT3_7O.js → es-DwMUvBeU.js} +94 -18
  25. package/dist/{fa-eX3_BAZR.js → fa-0rvQiKrJ.js} +87 -11
  26. package/dist/{fa-BXnP4pbN.cjs → fa-BwgP93iV.cjs} +1 -1
  27. package/dist/{fr-Bj-GjMJm.js → fr-B4i6NzLl.js} +86 -10
  28. package/dist/{fr-HJDhGjI2.cjs → fr-CQzk5zqY.cjs} +1 -1
  29. package/dist/{he-DYgmPPkG.js → he-C71n-hsn.js} +87 -11
  30. package/dist/{he-C6nEVZhN.cjs → he-DcxxvRfs.cjs} +1 -1
  31. package/dist/{hi-DMVSXAJt.cjs → hi-D-KHVWg4.cjs} +1 -1
  32. package/dist/{hi-CgYLonE9.js → hi-xmrXpeVU.js} +87 -11
  33. package/dist/index-B5MAsOC-.cjs +1 -0
  34. package/dist/{index-B8cqD9ny.js → index-C3o9GSH6.js} +106 -105
  35. package/dist/index.cjs.js +4 -4
  36. package/dist/index.es.js +8055 -5285
  37. package/dist/input-container-BvEcp7FU.js +275 -0
  38. package/dist/input-container-Di1YvVB_.cjs +1 -0
  39. package/dist/{it-CO2BPqah.js → it-CDZTtOBC.js} +83 -7
  40. package/dist/{it-DhfVcjKb.cjs → it-D344Dutu.cjs} +1 -1
  41. package/dist/{ja-Bt6fGS_Q.cjs → ja-BNgnDZ27.cjs} +1 -1
  42. package/dist/{ja-BrzwjH8T.js → ja-Zz1LzidW.js} +91 -15
  43. package/dist/json-schema/index.cjs.js +1 -1
  44. package/dist/json-schema/index.es.js +261 -257
  45. package/dist/json-schema-display/index.cjs.js +1 -1
  46. package/dist/json-schema-display/index.es.js +2 -2
  47. package/dist/json-structure/index.cjs.js +1 -1
  48. package/dist/json-structure/index.es.js +132 -133
  49. package/dist/{ko-D-lJ4wYQ.js → ko-9laUsZDL.js} +90 -14
  50. package/dist/{ko-DfAaBGrz.cjs → ko-D-WJ9NK7.cjs} +1 -1
  51. package/dist/lexical/index.cjs.js +2 -39
  52. package/dist/lexical/index.es.js +2056 -20626
  53. package/dist/markdown/index.cjs.js +1 -1
  54. package/dist/markdown/index.es.js +41 -4
  55. package/dist/{menu-CV85y3Xf.js → menu-B8yoDMRS.js} +23 -23
  56. package/dist/menu-B92oSDct.cjs +1 -0
  57. package/dist/modal-BT0jjDqX.cjs +1 -0
  58. package/dist/{modal-CwZuWiSK.js → modal-DBguyX-b.js} +9 -9
  59. package/dist/monaco/index.cjs.js +2 -2
  60. package/dist/monaco/index.es.js +7 -7
  61. package/dist/{nl-CNWBQjK5.cjs → nl-CrqUlFie.cjs} +1 -1
  62. package/dist/{nl-ClsworIe.js → nl-Dcll9fVA.js} +86 -10
  63. package/dist/notice-B5wTXoTq.cjs +1 -0
  64. package/dist/{notice-D7hYFM5A.js → notice-BKcyJD5w.js} +37 -37
  65. package/dist/oneof-branch-detection-J_DYEEcD.js +1077 -0
  66. package/dist/oneof-branch-detection-ZUBZ6hqy.cjs +1 -0
  67. package/dist/{pl-CqHTeu3-.cjs → pl-9UksIrvX.cjs} +1 -1
  68. package/dist/{pl-WTwLAxnV.js → pl-Dm9N9Gbr.js} +83 -7
  69. package/dist/prosemirror/index.cjs.js +3 -1
  70. package/dist/prosemirror/index.es.js +636 -4
  71. package/dist/{pt-CgkjJnsG.js → pt-CFi5cn0k.js} +88 -12
  72. package/dist/{pt-BQmsiqbo.cjs → pt-_kfdzwqi.cjs} +1 -1
  73. package/dist/{ru-CtgH7OY9.js → ru-CEhZUw8R.js} +91 -15
  74. package/dist/{ru-CG56A2To.cjs → ru-CW1WNNlr.cjs} +1 -1
  75. package/dist/stack-BLMteGTn.js +15 -0
  76. package/dist/stack-dwLevGa2.cjs +1 -0
  77. package/dist/tailwind/preset.cjs.js +1 -1
  78. package/dist/tailwind/preset.es.js +2 -2
  79. package/dist/tailwind/vite-plugin.cjs.js +1 -1
  80. package/dist/tailwind/vite-plugin.es.js +1 -1
  81. package/dist/text-input-DfqXolVe.js +55 -0
  82. package/dist/text-input-X_q01NsY.cjs +1 -0
  83. package/dist/toolbar-DY0ax2Qd.js +130 -0
  84. package/dist/toolbar-DoKdYXIL.cjs +1 -0
  85. package/dist/{tr-DE7_VtKu.cjs → tr-B6GIRegf.cjs} +1 -1
  86. package/dist/{tr-D1O1vEmr.js → tr-ZmnVDhLP.js} +81 -5
  87. package/dist/{translations-yu4gNqlP.js → translations-A4kR7CW8.js} +1 -1
  88. package/dist/{translations-DyCmyLE_.js → translations-B1_yyDUK.js} +207 -129
  89. package/dist/{translations-DBxIjvWR.cjs → translations-C81buKAw.cjs} +1 -1
  90. package/dist/translations-Dbx7L7Q1.cjs +1 -0
  91. package/dist/types/beatui-i18n/default.d.ts +71 -0
  92. package/dist/types/beatui-i18n/locales/en.d.ts +71 -0
  93. package/dist/types/beatui-i18n/translations.d.ts +71 -0
  94. package/dist/types/codehighlight/code-highlight.d.ts +21 -0
  95. package/dist/types/codehighlight/index.d.ts +14 -0
  96. package/dist/types/components/button/toggle-button.d.ts +4 -4
  97. package/dist/types/components/data/avatar.d.ts +3 -1
  98. package/dist/types/components/data/badge.d.ts +10 -18
  99. package/dist/types/components/data/column-filter-panel.d.ts +31 -0
  100. package/dist/types/components/data/column-filter.d.ts +110 -0
  101. package/dist/types/components/data/column-header-menu.d.ts +42 -0
  102. package/dist/types/components/data/data-source.d.ts +190 -0
  103. package/dist/types/components/data/data-table-body.d.ts +12 -0
  104. package/dist/types/components/data/data-table-column-toggle.d.ts +4 -0
  105. package/dist/types/components/data/data-table-context.d.ts +53 -0
  106. package/dist/types/components/data/data-table-header.d.ts +6 -0
  107. package/dist/types/components/data/data-table-resolve.d.ts +26 -0
  108. package/dist/types/components/data/data-table-types.d.ts +201 -0
  109. package/dist/types/components/data/data-table.d.ts +38 -0
  110. package/dist/types/components/data/data-toolbar.d.ts +44 -0
  111. package/dist/types/components/data/date-picker-shared.d.ts +55 -0
  112. package/dist/types/components/data/date-picker.d.ts +58 -0
  113. package/dist/types/components/data/date-range-picker.d.ts +56 -0
  114. package/dist/types/components/data/filter.d.ts +268 -0
  115. package/dist/types/components/data/index.d.ts +13 -4
  116. package/dist/types/components/data/indicator.d.ts +41 -0
  117. package/dist/types/components/data/progress-bar.d.ts +2 -2
  118. package/dist/types/components/data/selection-checkbox.d.ts +63 -0
  119. package/dist/types/components/data/skeleton.d.ts +1 -1
  120. package/dist/types/components/data/sortable-header.d.ts +55 -0
  121. package/dist/types/components/data/unstyled-drop-zone.d.ts +2 -2
  122. package/dist/types/components/form/control/control.d.ts +9 -9
  123. package/dist/types/components/form/input/advanced-slider.d.ts +6 -6
  124. package/dist/types/components/form/input/appearance-selector.d.ts +9 -2
  125. package/dist/types/components/form/input/bigint-input.d.ts +3 -3
  126. package/dist/types/components/form/input/checkbox-input.d.ts +6 -7
  127. package/dist/types/components/form/input/color-input.d.ts +1 -1
  128. package/dist/types/components/form/input/color-swatch-input.d.ts +3 -3
  129. package/dist/types/components/form/input/combobox-input.d.ts +5 -5
  130. package/dist/types/components/form/input/combobox-tags-input.d.ts +5 -5
  131. package/dist/types/components/form/input/date-input.d.ts +4 -4
  132. package/dist/types/components/form/input/date-time-input.d.ts +4 -4
  133. package/dist/types/components/form/input/dropdown-input.d.ts +5 -5
  134. package/dist/types/components/form/input/editable-text.d.ts +2 -2
  135. package/dist/types/components/form/input/index.d.ts +1 -0
  136. package/dist/types/components/form/input/input-container.d.ts +1 -1
  137. package/dist/types/components/form/input/input-options.d.ts +28 -1
  138. package/dist/types/components/form/input/mask-input.d.ts +8 -2
  139. package/dist/types/components/form/input/native-select.d.ts +3 -3
  140. package/dist/types/components/form/input/nullable-bigint-input.d.ts +3 -3
  141. package/dist/types/components/form/input/nullable-date-input.d.ts +2 -2
  142. package/dist/types/components/form/input/nullable-date-time-input.d.ts +2 -2
  143. package/dist/types/components/form/input/nullable-rating-input.d.ts +8 -8
  144. package/dist/types/components/form/input/nullable-uuid-input.d.ts +4 -4
  145. package/dist/types/components/form/input/number-input.d.ts +3 -3
  146. package/dist/types/components/form/input/otp-input.d.ts +12 -12
  147. package/dist/types/components/form/input/rating-input.d.ts +7 -8
  148. package/dist/types/components/form/input/select-tags-input.d.ts +5 -5
  149. package/dist/types/components/form/input/switch.d.ts +2 -2
  150. package/dist/types/components/form/input/tri-state-checkbox-input.d.ts +82 -0
  151. package/dist/types/components/form/input/uuid-input.d.ts +2 -2
  152. package/dist/types/components/json-structure/controls/uuid-control.d.ts +1 -1
  153. package/dist/types/components/layout/card.d.ts +66 -0
  154. package/dist/types/components/layout/collapse.d.ts +2 -2
  155. package/dist/types/components/layout/flex.d.ts +26 -0
  156. package/dist/types/components/layout/index.d.ts +1 -0
  157. package/dist/types/components/lexical/floating/slash-command-palette.d.ts +2 -2
  158. package/dist/types/components/media/pdf-page-viewer.d.ts +8 -5
  159. package/dist/types/components/misc/index.d.ts +1 -0
  160. package/dist/types/components/misc/loading-overlay.d.ts +29 -0
  161. package/dist/types/components/misc/notice.d.ts +4 -4
  162. package/dist/types/components/misc/notification-provider.d.ts +9 -3
  163. package/dist/types/components/misc/notification.d.ts +9 -9
  164. package/dist/types/components/navigation/breadcrumbs.d.ts +1 -1
  165. package/dist/types/components/navigation/menu.d.ts +6 -6
  166. package/dist/types/components/navigation/pagination.d.ts +17 -4
  167. package/dist/types/components/navigation/sidebar/sidebar-link.d.ts +2 -2
  168. package/dist/types/components/navigation/tabs/tabs.d.ts +17 -8
  169. package/dist/types/components/navigation/toolbar/toolbar.d.ts +12 -6
  170. package/dist/types/components/overlay/announcement-bar.d.ts +12 -4
  171. package/dist/types/components/overlay/dialogs.d.ts +2 -2
  172. package/dist/types/components/overlay/modal.d.ts +9 -2
  173. package/dist/types/components/overlay/tooltip.d.ts +6 -6
  174. package/dist/types/components/theme/types.d.ts +15 -4
  175. package/dist/types/lexical/plugins/slash-commands.d.ts +1 -1
  176. package/dist/types/tokens/z-index.d.ts +18 -18
  177. package/dist/types/utils/use-animated-toggle.d.ts +12 -4
  178. package/dist/{ur-ZJgsSpG2.cjs → ur-CtFl_tz6.cjs} +1 -1
  179. package/dist/{ur-BcuB7IqE.js → ur-yYgj3NmT.js} +87 -11
  180. package/dist/use-animated-toggle-C3asw_Sg.js +207 -0
  181. package/dist/use-animated-toggle-cKcuItmz.cjs +1 -0
  182. package/dist/use-form-CaW192gw.cjs +2 -0
  183. package/dist/{use-form-CfxvyTfd.js → use-form-Dn6v2tEh.js} +153 -152
  184. package/dist/utils-DmEuG3Np.cjs +1 -0
  185. package/dist/utils-vUtP6iPG.js +165 -0
  186. package/dist/{vi-D0rQ3dIx.js → vi-D5u4CLQO.js} +88 -12
  187. package/dist/{vi-BOgLRkuK.cjs → vi-DyCZSpsk.cjs} +1 -1
  188. package/dist/widget-customization-B49MeU4E.cjs +1 -0
  189. package/dist/widget-customization-DEiQ_31d.js +1063 -0
  190. package/dist/{zh-DoYqiZO1.js → zh-B0kwMMer.js} +90 -14
  191. package/dist/{zh-BTZ8OZ4H.cjs → zh-C3ZxMQKb.cjs} +1 -1
  192. package/package.json +208 -37
  193. package/dist/_commonjsHelpers-DKOUU3wS.cjs +0 -1
  194. package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
  195. package/dist/auth-divider-BgaQ8ifw.cjs +0 -1
  196. package/dist/colors-BI0YhONJ.cjs +0 -1
  197. package/dist/deep-merge-ChJQbUKq.cjs +0 -1
  198. package/dist/es-C8TpneCm.cjs +0 -1
  199. package/dist/hls.light.min-C6xKDzRR.cjs +0 -27
  200. package/dist/hls.light.min-hEMf_E8u.js +0 -8311
  201. package/dist/index-1JaBwDB-.js +0 -921
  202. package/dist/index-CN10Cyqr.cjs +0 -1
  203. package/dist/index-CTcbhnPw.cjs +0 -4
  204. package/dist/index-DF7RFzD9.cjs +0 -1
  205. package/dist/index-D_zOXmU5.cjs +0 -36
  206. package/dist/index-DfPkCwdC.js +0 -2709
  207. package/dist/index-vowHNIPH.js +0 -14308
  208. package/dist/index-yOU4Ceaq.js +0 -68
  209. package/dist/index-zQ3IYJFH.cjs +0 -1
  210. package/dist/input-container-BWYHj0Iq.cjs +0 -1
  211. package/dist/input-container-DMoVdH6E.js +0 -263
  212. package/dist/menu-De_-sGeb.cjs +0 -1
  213. package/dist/modal-CiGmgsOI.cjs +0 -1
  214. package/dist/notice-CPZQuxcA.cjs +0 -1
  215. package/dist/oneof-branch-detection-BFxukD63.cjs +0 -8
  216. package/dist/oneof-branch-detection-izpPjBCR.js +0 -6290
  217. package/dist/stack-4VUGISn6.cjs +0 -1
  218. package/dist/stack-Bm-UZosx.js +0 -879
  219. package/dist/string-B9vVyfq3.cjs +0 -1
  220. package/dist/string-DYyMxBl-.js +0 -19
  221. package/dist/text-input-BLupB3cU.js +0 -45
  222. package/dist/text-input-M6WBhhVj.cjs +0 -1
  223. package/dist/timer-BJHOsuS6.cjs +0 -1
  224. package/dist/timer-Rd2sKnvH.js +0 -65
  225. package/dist/toolbar-Be1eU0qU.js +0 -118
  226. package/dist/toolbar-WWv5kcYG.cjs +0 -1
  227. package/dist/translations-OOsMRpX9.cjs +0 -1
  228. package/dist/types/components/data/calendar-shared.d.ts +0 -59
  229. package/dist/types/components/data/calendar.d.ts +0 -107
  230. package/dist/types/components/data/icon-badge.d.ts +0 -14
  231. package/dist/types/components/data/range-calendar.d.ts +0 -104
  232. package/dist/types/components/data/tag.d.ts +0 -51
  233. package/dist/use-animated-toggle-C7PTmnZi.js +0 -195
  234. package/dist/use-animated-toggle-DrqK7nUS.cjs +0 -1
  235. package/dist/use-form-ClA0ZRco.cjs +0 -2
  236. package/dist/utils-DEbsp9Q9.js +0 -129
  237. package/dist/utils-DIUEhA-Z.cjs +0 -1
  238. package/dist/widget-customization-CLZNGavL.js +0 -1042
  239. package/dist/widget-customization-DtEEo35Y.cjs +0 -1
@@ -1,24 +1,24 @@
1
- import { attr as j, Value as O, Fragment as ce, Empty as U, WithElement as Te, Use as K, html as I, When as oe, computedOf as M, prop as X, style as Me, Ensure as We, MapSignal as re, Async as mt, OnDispose as yt } from "@tempots/dom";
2
- import { m as ve, c as $e, g as Le, a as Be, r as De, e as gt, f as je, S as ht, b as bt, h as we, i as vt, A as wt } from "../oneof-branch-detection-izpPjBCR.js";
3
- import { j as Ir, k as Nr, l as Rr, n as Vr, o as Er, p as Fr, q as Tr } from "../oneof-branch-detection-izpPjBCR.js";
4
- import { B as q } from "../translations-DyCmyLE_.js";
5
- import { P as St, E as At, N as xe } from "../notice-D7hYFM5A.js";
6
- import { g as Oe, B as jt, N as H, a as fe, b as Ot, C as kt, c as Ct, d as Pt, e as It, f as Nt, h as Rt, i as Vt, S as Et, j as Ft, R as Tt, k as Mt, E as _e, W as Wt } from "../widget-customization-CLZNGavL.js";
7
- import { l as Wr, m as $r, n as Lr, o as Br } from "../widget-customization-CLZNGavL.js";
8
- import { S as _, L as ee, M as $t, i as $ } from "../stack-Bm-UZosx.js";
9
- import { I as ie, b as A, M as de, a as ke, C as Ue, f as Lt, A as Bt, g as Dt } from "../use-form-CfxvyTfd.js";
10
- import { _ as Ke } from "../string-DYyMxBl-.js";
11
- import { S as xt, b as _t, N as qe, W as Ut, c as Kt, t as te, e as Q, T as qt, U as Jt, f as pe, g as zt, M as ae, G as Ht, h as Gt, L as Xt, i as Yt, j as Zt } from "../deep-merge-C8dSqIXI.js";
12
- import { r as V } from "../utils-DEbsp9Q9.js";
13
- import { T as Qt } from "../text-input-BLupB3cU.js";
14
- import { l as Je } from "../colors-BY0Ja_bf.js";
15
- import { B as ze } from "../input-container-DMoVdH6E.js";
16
- function en(e) {
1
+ import { attr as O, Value as j, Fragment as ce, Empty as U, WithElement as Te, Use as K, html as I, When as oe, computedOf as M, prop as X, style as Me, Ensure as We, MapSignal as re, Async as mt, OnDispose as yt } from "@tempots/dom";
2
+ import { m as ve, c as $e, g as Le, a as Be, r as De, e as gt, f as Oe, S as ht, b as bt, h as we, i as vt } from "../oneof-branch-detection-J_DYEEcD.js";
3
+ import { j as Nr, k as Rr, l as Vr, n as Er, o as Fr, p as Tr, q as Mr } from "../oneof-branch-detection-J_DYEEcD.js";
4
+ import { B as q } from "../translations-B1_yyDUK.js";
5
+ import { P as wt, E as St, N as xe } from "../notice-BKcyJD5w.js";
6
+ import { g as je, B as At, N as H, a as fe, b as Ot, C as jt, c as kt, d as Ct, e as Pt, f as It, h as Nt, i as Rt, S as Vt, j as Et, R as Ft, k as Tt, E as _e, W as Mt } from "../widget-customization-DEiQ_31d.js";
7
+ import { l as $r, m as Lr, n as Br, o as Dr } from "../widget-customization-DEiQ_31d.js";
8
+ import { S as _, L as ee, M as Wt } from "../stack-BLMteGTn.js";
9
+ import { I as ie, b as A, M as de, a as ke, C as Ue, O as $t, A as Lt, f as Bt } from "../use-form-Dn6v2tEh.js";
10
+ import { objectEntries as Ke, upperCaseFirst as qe, Validation as $ } from "@tempots/std";
11
+ import { S as Dt, b as xt, N as Je, W as _t, c as Ut, t as te, e as Q, T as Kt, U as qt, f as pe, g as Jt, M as ae, G as zt, h as Ht, L as Gt, i as Xt, j as Yt } from "../deep-merge-BzIheQtH.js";
12
+ import { r as V } from "../utils-vUtP6iPG.js";
13
+ import { m as Zt, T as Qt } from "../text-input-DfqXolVe.js";
14
+ import { B as ze } from "../input-container-BvEcp7FU.js";
15
+ import en from "ajv";
16
+ function tn(e) {
17
17
  if (!e || typeof e != "object") return !1;
18
18
  const t = e;
19
19
  return !!(e.if || t.dependentRequired || t.dependentSchemas || e.dependencies);
20
20
  }
21
- function tn(e, t, n, r = []) {
21
+ function nn(e, t, n, r = []) {
22
22
  if (!n)
23
23
  return null;
24
24
  try {
@@ -35,7 +35,7 @@ function tn(e, t, n, r = []) {
35
35
  return null;
36
36
  }
37
37
  }
38
- function nn(e, t, n, r = []) {
38
+ function rn(e, t, n, r = []) {
39
39
  const i = [], s = [], a = He(e, t, n);
40
40
  a && i.push(a);
41
41
  const o = Array.isArray(e.required) ? [...e.required] : [];
@@ -190,7 +190,7 @@ function E({
190
190
  return a.factory(i);
191
191
  }
192
192
  if (r != null) {
193
- const a = Oe.get(r);
193
+ const a = je.get(r);
194
194
  if (a)
195
195
  return a.factory(i);
196
196
  }
@@ -199,7 +199,7 @@ function E({
199
199
  if (a)
200
200
  return a.registration.factory(i);
201
201
  }
202
- const s = Oe.findBestWidget(e);
202
+ const s = je.findBestWidget(e);
203
203
  return s ? s.registration.factory(i) : null;
204
204
  }
205
205
  function Xe(e) {
@@ -216,14 +216,14 @@ function Xe(e) {
216
216
  const m = Object.fromEntries(
217
217
  t.map((p) => [a(p.value), p.label])
218
218
  );
219
- return xt({
219
+ return Dt({
220
220
  options: m,
221
- value: O.map(n, (p) => a(p)),
221
+ value: j.map(n, (p) => a(p)),
222
222
  onChange: (p) => r(o(p)),
223
223
  size: s
224
224
  });
225
225
  }
226
- return _t({
226
+ return xt({
227
227
  options: t.map((m) => ({
228
228
  type: "value",
229
229
  value: m.value,
@@ -239,16 +239,16 @@ function Ye({
239
239
  selector: n,
240
240
  inner: r
241
241
  }) {
242
- return e.isRoot ? t ? _(j.class("bc-stack--gap-2"), n, r) : r : ie({
242
+ return e.isRoot ? t ? _(O.class("bc-stack--gap-2"), n, r) : r : ie({
243
243
  ...L({ ctx: e }),
244
244
  content: t ? _(
245
- j.class("bc-stack--gap-2 bc-stack--align-start"),
245
+ O.class("bc-stack--gap-2 bc-stack--align-start"),
246
246
  n,
247
247
  r
248
248
  ) : r
249
249
  });
250
250
  }
251
- function rn(e, t) {
251
+ function sn(e, t) {
252
252
  if (e === null) return t.includes("null") ? "null" : null;
253
253
  switch (typeof e) {
254
254
  case "string":
@@ -263,7 +263,7 @@ function rn(e, t) {
263
263
  return null;
264
264
  }
265
265
  }
266
- function sn(e, t) {
266
+ function an(e, t) {
267
267
  try {
268
268
  switch (t) {
269
269
  case "string":
@@ -297,7 +297,7 @@ function sn(e, t) {
297
297
  return { ok: !1 };
298
298
  }
299
299
  }
300
- function an(e) {
300
+ function on(e) {
301
301
  switch (e) {
302
302
  case "null":
303
303
  return null;
@@ -309,7 +309,7 @@ function an(e) {
309
309
  return;
310
310
  }
311
311
  }
312
- function on(e) {
312
+ function ln(e) {
313
313
  if (typeof e == "boolean") return {};
314
314
  const t = e["x:ui"];
315
315
  if (t != null && typeof t == "object" && !Array.isArray(t)) {
@@ -322,7 +322,7 @@ function on(e) {
322
322
  }
323
323
  return {};
324
324
  }
325
- function ln(e) {
325
+ function un(e) {
326
326
  const { definition: t } = e;
327
327
  if (typeof t == "boolean") return;
328
328
  const n = {
@@ -370,15 +370,19 @@ function ln(e) {
370
370
  return { ...n, format: "color" };
371
371
  }
372
372
  }
373
- const un = (e) => {
374
- const { value: t, onBlur: n, onChange: r, onInput: i, after: s, disabled: a, ...o } = e, l = qe(t, a, r ?? i);
375
- return jt({
376
- ...o,
377
- value: O.map(t, (u) => u ?? void 0),
378
- onChange: r != null ? (u) => r(u ?? null) : void 0,
379
- onInput: i != null ? (u) => i(u ?? null) : void 0,
380
- onBlur: n,
381
- after: s != null ? ce(l, s) : l
373
+ const cn = (e) => {
374
+ const { after: t, disabled: n } = e, r = Zt(
375
+ e,
376
+ (s) => s ?? void 0,
377
+ (s) => s ?? null
378
+ ), i = Je(
379
+ e.value,
380
+ n,
381
+ e.onChange ?? e.onInput
382
+ );
383
+ return At({
384
+ ...r,
385
+ after: t != null ? ce(i, t) : i
382
386
  });
383
387
  };
384
388
  function Ce({
@@ -386,22 +390,22 @@ function Ce({
386
390
  options: t,
387
391
  controller: n
388
392
  }) {
389
- const r = ln(e), i = !e.isNullable, s = () => i ? te(n) : n;
393
+ const r = un(e), i = !e.isNullable, s = () => i ? te(n) : n;
390
394
  switch (r?.format) {
391
395
  case "email":
392
- return A(Rt, {
396
+ return A(Nt, {
393
397
  ...t,
394
398
  controller: s()
395
399
  });
396
400
  case "date":
397
- return de(Nt, {
401
+ return de(It, {
398
402
  ...t,
399
403
  controller: s(),
400
404
  toInput: (a) => a == null ? null : new Date(a),
401
405
  fromInput: (a) => a?.toISOString().split("T")[0] ?? null
402
406
  });
403
407
  case "date-time":
404
- return de(It, {
408
+ return de(Pt, {
405
409
  ...t,
406
410
  controller: s(),
407
411
  toInput: (a) => a == null ? null : new Date(a),
@@ -414,13 +418,13 @@ function Ce({
414
418
  placeholder: "HH:MM:SS"
415
419
  });
416
420
  case "password":
417
- return A(Pt, {
421
+ return A(Ct, {
418
422
  ...t,
419
423
  controller: s()
420
424
  });
421
425
  case "binary": {
422
426
  const { definition: a } = e, o = typeof a == "object" ? a["x:ui"] : void 0;
423
- return r.mediaType && (r.mediaType.startsWith("image/") || r.mediaType.startsWith("video/") || r.mediaType.startsWith("audio/") || r.mediaType === "application/pdf" || o?.preferFileUpload === !0) ? A(un, {
427
+ return r.mediaType && (r.mediaType.startsWith("image/") || r.mediaType.startsWith("video/") || r.mediaType.startsWith("audio/") || r.mediaType === "application/pdf" || o?.preferFileUpload === !0) ? A(cn, {
424
428
  ...t,
425
429
  controller: s(),
426
430
  mode: "input",
@@ -436,7 +440,7 @@ function Ce({
436
440
  }
437
441
  case "uri":
438
442
  case "url":
439
- return A(Ct, {
443
+ return A(kt, {
440
444
  ...t,
441
445
  controller: s(),
442
446
  placeholder: "https://example.com"
@@ -473,8 +477,8 @@ function Ce({
473
477
  rows: 3
474
478
  });
475
479
  case "duration":
476
- return Ut(
477
- ({ Duration: a }) => de(Kt, {
480
+ return _t(
481
+ ({ Duration: a }) => de(Ut, {
478
482
  ...t,
479
483
  controller: s(),
480
484
  toInput: (o) => o == null ? null : a.from(o),
@@ -482,7 +486,7 @@ function Ce({
482
486
  })
483
487
  );
484
488
  case "color":
485
- return A(kt, {
489
+ return A(jt, {
486
490
  ...t,
487
491
  controller: n,
488
492
  displayValue: !0
@@ -541,22 +545,22 @@ function me({
541
545
  return Ce({ ctx: e, options: s, controller: t });
542
546
  switch (r) {
543
547
  case "email":
544
- return A(At, {
548
+ return A(St, {
545
549
  ...s,
546
550
  controller: Q(t)
547
551
  });
548
552
  case "password":
549
- return A(St, {
553
+ return A(wt, {
550
554
  ...s,
551
555
  controller: Q(t)
552
556
  });
553
557
  case "uuid":
554
- return A(Jt, {
558
+ return A(qt, {
555
559
  ...s,
556
560
  controller: Q(t)
557
561
  });
558
562
  case "textarea":
559
- return A(qt, {
563
+ return A(Kt, {
560
564
  ...s,
561
565
  controller: Q(t)
562
566
  });
@@ -567,7 +571,7 @@ function me({
567
571
  });
568
572
  }
569
573
  }
570
- function cn(e) {
574
+ function fn(e) {
571
575
  const t = V(e.definition, e.name);
572
576
  if (t?.widget === "slider")
573
577
  return { widget: "slider", options: t.options };
@@ -587,7 +591,7 @@ function le({
587
591
  }) {
588
592
  if (Se(e))
589
593
  return U;
590
- const n = e.definition, r = cn(e), i = V(e.definition, e.name), s = E({
594
+ const n = e.definition, r = fn(e), i = V(e.definition, e.name), s = E({
591
595
  ctx: e,
592
596
  controller: t,
593
597
  resolved: i
@@ -605,24 +609,24 @@ function le({
605
609
  switch (r.widget) {
606
610
  case "rating":
607
611
  const u = (typeof r.options?.max == "number" ? r.options.max : n.maximum) || 5;
608
- return o ? A(Ft, {
612
+ return o ? A(Et, {
609
613
  ...a,
610
614
  max: u,
611
615
  controller: l ? te(
612
616
  t
613
617
  ) : t
614
- }) : A(Tt, {
618
+ }) : A(Ft, {
615
619
  ...a,
616
620
  max: u,
617
621
  controller: t
618
622
  });
619
623
  case "slider":
620
- return o ? A(Vt, {
624
+ return o ? A(Rt, {
621
625
  ...a,
622
626
  controller: l ? te(
623
627
  t
624
628
  ) : t
625
- }) : A(Et, {
629
+ }) : A(Vt, {
626
630
  ...a,
627
631
  controller: t
628
632
  });
@@ -653,19 +657,19 @@ function le({
653
657
  controller: l ? te(
654
658
  t
655
659
  ) : t
656
- }) : A(zt, {
660
+ }) : A(Jt, {
657
661
  ...a,
658
662
  controller: t
659
663
  });
660
664
  }
661
665
  }
662
666
  function Pe(e) {
663
- return `${fn(e)} 000,000.00`;
667
+ return `${dn(e)} 000,000.00`;
664
668
  }
665
669
  function Ie() {
666
670
  return "000.00%";
667
671
  }
668
- function fn(e) {
672
+ function dn(e) {
669
673
  return {
670
674
  USD: "$",
671
675
  EUR: "€",
@@ -717,7 +721,7 @@ function ge({
717
721
  return A(ke, {
718
722
  ...i,
719
723
  controller: t,
720
- after: qe(
724
+ after: Je(
721
725
  t.signal,
722
726
  t.disabled,
723
727
  () => t.change(a ? void 0 : null)
@@ -737,7 +741,7 @@ function Ze({
737
741
  t.change(null);
738
742
  });
739
743
  }
740
- function dn({
744
+ function pn({
741
745
  conflicts: e
742
746
  }) {
743
747
  return e.length === 0 ? U : K(
@@ -750,13 +754,13 @@ function dn({
750
754
  class: "bc-schema-conflicts-banner"
751
755
  },
752
756
  I.ul(
753
- j.style("margin: 0; padding-left: 1.25rem; list-style-type: disc;"),
757
+ O.style("margin: 0; padding-left: 1.25rem; list-style-type: disc;"),
754
758
  ...e.map(
755
759
  (n) => I.li(
756
- j.style("margin-bottom: 0.25rem;"),
760
+ O.style("margin-bottom: 0.25rem;"),
757
761
  n.message,
758
762
  n.path.length > 0 ? I.code(
759
- j.style(
763
+ O.style(
760
764
  "margin-left: 0.5rem; font-size: 0.75rem; opacity: 0.7;"
761
765
  ),
762
766
  ` (${n.path.join(".")})`
@@ -767,7 +771,7 @@ function dn({
767
771
  )
768
772
  );
769
773
  }
770
- function pn({
774
+ function mn({
771
775
  violations: e
772
776
  }) {
773
777
  return e.length === 0 ? U : K(
@@ -780,13 +784,13 @@ function pn({
780
784
  class: "bc-not-violations-banner"
781
785
  },
782
786
  I.ul(
783
- j.style("margin: 0; padding-left: 1.25rem; list-style-type: disc;"),
787
+ O.style("margin: 0; padding-left: 1.25rem; list-style-type: disc;"),
784
788
  ...e.map(
785
789
  (n) => I.li(
786
- j.style("margin-bottom: 0.25rem;"),
790
+ O.style("margin-bottom: 0.25rem;"),
787
791
  n.message,
788
792
  n.path.length > 0 ? I.code(
789
- j.style(
793
+ O.style(
790
794
  "margin-left: 0.5rem; font-size: 0.75rem; opacity: 0.7;"
791
795
  ),
792
796
  ` (${n.path.join(".")})`
@@ -797,12 +801,12 @@ function pn({
797
801
  )
798
802
  );
799
803
  }
800
- function mn({
804
+ function yn({
801
805
  ctx: e,
802
806
  controller: t,
803
807
  content: n
804
808
  }) {
805
- const r = O.map(t.signal, (a) => a !== void 0), i = e.widgetLabel ?? "Property", s = (a) => {
809
+ const r = j.map(t.signal, (a) => a !== void 0), i = e.widgetLabel ?? "Property", s = (a) => {
806
810
  if (a) {
807
811
  const o = e.default;
808
812
  if (o !== void 0)
@@ -816,11 +820,11 @@ function mn({
816
820
  };
817
821
  return _(
818
822
  I.div(
819
- j.class("bc-presence-toggle"),
823
+ O.class("bc-presence-toggle"),
820
824
  ie({
821
825
  layout: "horizontal",
822
826
  label: `Include ${i}`,
823
- content: Mt({
827
+ content: Tt({
824
828
  value: r,
825
829
  onChange: s,
826
830
  size: "xs"
@@ -833,10 +837,10 @@ function mn({
833
837
  function N(e, t, n) {
834
838
  const r = e.schemaConflicts.length > 0, i = e.notViolations.length > 0, s = e.shouldShowPresenceToggle && n != null;
835
839
  let a = t;
836
- return s && n != null && (a = mn({ ctx: e, controller: n, content: t })), !r && !i ? a : _(
837
- j.class("bc-stack--gap-2"),
838
- i ? pn({ violations: e.notViolations }) : null,
839
- r ? dn({ conflicts: e.schemaConflicts }) : null,
840
+ return s && n != null && (a = yn({ ctx: e, controller: n, content: t })), !r && !i ? a : _(
841
+ O.class("bc-stack--gap-2"),
842
+ i ? mn({ violations: e.notViolations }) : null,
843
+ r ? pn({ conflicts: e.schemaConflicts }) : null,
840
844
  a
841
845
  );
842
846
  }
@@ -848,7 +852,7 @@ function Qe(e) {
848
852
  if (typeof n == "string" || typeof n == "object" && n !== null)
849
853
  return n;
850
854
  }
851
- function yn(e) {
855
+ function gn(e) {
852
856
  if (e.startsWith("!"))
853
857
  return {
854
858
  field: e.slice(1),
@@ -884,7 +888,7 @@ function Ne(e) {
884
888
  if (e !== "undefined")
885
889
  return /^-?\d+(\.\d+)?$/.test(e) ? parseFloat(e) : e;
886
890
  }
887
- function gn(e, t) {
891
+ function hn(e, t) {
888
892
  if (e == null || typeof e != "object")
889
893
  return;
890
894
  const n = t.split(".");
@@ -904,7 +908,7 @@ function gn(e, t) {
904
908
  return r;
905
909
  }
906
910
  function he(e, t) {
907
- const n = gn(t, e.field);
911
+ const n = hn(t, e.field);
908
912
  switch (e.operator) {
909
913
  case "equals":
910
914
  return n === e.value;
@@ -947,10 +951,10 @@ function et(e, t) {
947
951
  return !1;
948
952
  }
949
953
  }
950
- function hn(e, t) {
954
+ function bn(e, t) {
951
955
  try {
952
956
  if (typeof e == "string") {
953
- const n = yn(e);
957
+ const n = gn(e);
954
958
  return he(n, t);
955
959
  }
956
960
  return "operator" in e && ["and", "or", "not"].includes(e.operator) ? et(e, t) : he(e, t);
@@ -958,16 +962,16 @@ function hn(e, t) {
958
962
  return console.warn("Error evaluating visibility condition:", n), !0;
959
963
  }
960
964
  }
961
- function bn(e, t) {
965
+ function vn(e, t) {
962
966
  return M(t)(
963
- (n) => hn(e, n)
967
+ (n) => bn(e, n)
964
968
  );
965
969
  }
966
970
  const Re = {
967
971
  behavior: "hide",
968
972
  clearOnHide: !1
969
973
  };
970
- function vn({
974
+ function wn({
971
975
  ctx: e,
972
976
  controller: t,
973
977
  children: n,
@@ -976,15 +980,15 @@ function vn({
976
980
  const i = Qe(e.definition);
977
981
  if (!i)
978
982
  return n;
979
- const s = { ...Re, ...r }, a = wn(t), o = bn(i, a);
983
+ const s = { ...Re, ...r }, a = Sn(t), o = vn(i, a);
980
984
  return s.clearOnHide && o.on((l) => {
981
985
  !l && t.signal.value !== void 0 && t.change(void 0);
982
986
  }), s.behavior === "unmount" ? oe(o, () => n) : n;
983
987
  }
984
- function wn(e) {
988
+ function Sn(e) {
985
989
  return e.signal;
986
990
  }
987
- function Sn({
991
+ function An({
988
992
  ctx: e,
989
993
  controller: t
990
994
  }) {
@@ -1006,12 +1010,12 @@ function Sn({
1006
1010
  type: "value",
1007
1011
  value: null,
1008
1012
  // We use null as the sentinel value internally
1009
- label: O.get(l.$.selectNone)
1013
+ label: j.get(l.$.selectNone)
1010
1014
  });
1011
1015
  const m = a && o ? te(
1012
1016
  t
1013
1017
  ) : t;
1014
- return Gt({
1018
+ return Ht({
1015
1019
  ...L({ ctx: e }),
1016
1020
  options: u,
1017
1021
  controller: m,
@@ -1020,7 +1024,7 @@ function Sn({
1020
1024
  });
1021
1025
  });
1022
1026
  }
1023
- function An({
1027
+ function On({
1024
1028
  ctx: e,
1025
1029
  controller: t
1026
1030
  }) {
@@ -1034,9 +1038,9 @@ function An({
1034
1038
  const i = e.definition;
1035
1039
  return ce(
1036
1040
  Te(() => {
1037
- O.get(t.signal) !== i.const && t.change(i.const);
1041
+ j.get(t.signal) !== i.const && t.change(i.const);
1038
1042
  }),
1039
- Ht($t(e.widgetLabel, ": "), ee(String(i.const)))
1043
+ zt(Wt(e.widgetLabel, ": "), ee(String(i.const)))
1040
1044
  );
1041
1045
  }
1042
1046
  function tt(e, t, n) {
@@ -1066,7 +1070,7 @@ function tt(e, t, n) {
1066
1070
  const b = (v) => {
1067
1071
  const g = (v ?? "").trim();
1068
1072
  if (!g || g === e || Object.prototype.hasOwnProperty.call(
1069
- O.get(r.signal) ?? {},
1073
+ j.get(r.signal) ?? {},
1070
1074
  g
1071
1075
  ))
1072
1076
  return;
@@ -1076,7 +1080,7 @@ function tt(e, t, n) {
1076
1080
  return;
1077
1081
  }
1078
1082
  c.set(null);
1079
- const w = { ...O.get(r.signal) ?? {} }, S = w[e];
1083
+ const w = { ...j.get(r.signal) ?? {} }, S = w[e];
1080
1084
  delete w[e], w[g] = S, r.change(w);
1081
1085
  }, f = K(
1082
1086
  q,
@@ -1084,21 +1088,21 @@ function tt(e, t, n) {
1084
1088
  size: "xs",
1085
1089
  label: v.$.removeItem,
1086
1090
  disabled: !o(
1087
- Object.keys(O.get(r.signal) ?? {}).length
1091
+ Object.keys(j.get(r.signal) ?? {}).length
1088
1092
  ),
1089
1093
  onClick: () => {
1090
- const g = Object.keys(O.get(r.signal) ?? {}).length;
1094
+ const g = Object.keys(j.get(r.signal) ?? {}).length;
1091
1095
  if (!o(g)) return;
1092
- const y = { ...O.get(r.signal) ?? {} };
1096
+ const y = { ...j.get(r.signal) ?? {} };
1093
1097
  delete y[e], r.change(y);
1094
1098
  }
1095
1099
  })
1096
- ), d = O.map(
1100
+ ), d = j.map(
1097
1101
  m.signal,
1098
1102
  (v) => l && v != null
1099
1103
  );
1100
1104
  return I.div(
1101
- j.class("bc-object-helpers__row"),
1105
+ O.class("bc-object-helpers__row"),
1102
1106
  Me.gridTemplateColumns("2fr 3fr min-content"),
1103
1107
  ie({
1104
1108
  content: _e({
@@ -1111,10 +1115,10 @@ function tt(e, t, n) {
1111
1115
  }),
1112
1116
  error: We(
1113
1117
  c,
1114
- (v) => I.div(j.class("bc-object-helpers__error"), v)
1118
+ (v) => I.div(O.class("bc-object-helpers__error"), v)
1115
1119
  ),
1116
1120
  description: Object.keys(s).length > 0 ? I.div(
1117
- j.class("bc-object-helpers__description"),
1121
+ O.class("bc-object-helpers__description"),
1118
1122
  "Allowed patterns: ",
1119
1123
  Object.keys(s).join(", ")
1120
1124
  ) : null
@@ -1125,7 +1129,7 @@ function tt(e, t, n) {
1125
1129
  controller: m
1126
1130
  })
1127
1131
  ),
1128
- I.div(j.class("bc-object-helpers__remove"), f)
1132
+ I.div(O.class("bc-object-helpers__remove"), f)
1129
1133
  );
1130
1134
  }
1131
1135
  function nt(e, t, n) {
@@ -1160,7 +1164,7 @@ function nt(e, t, n) {
1160
1164
  const f = (g) => {
1161
1165
  const y = (g ?? "").trim();
1162
1166
  if (!y || y === e || Object.prototype.hasOwnProperty.call(
1163
- O.get(r.signal) ?? {},
1167
+ j.get(r.signal) ?? {},
1164
1168
  y
1165
1169
  ))
1166
1170
  return;
@@ -1170,7 +1174,7 @@ function nt(e, t, n) {
1170
1174
  return;
1171
1175
  }
1172
1176
  h.set(null);
1173
- const S = { ...O.get(r.signal) ?? {} }, C = S[e];
1177
+ const S = { ...j.get(r.signal) ?? {} }, C = S[e];
1174
1178
  delete S[e], S[y] = C, r.change(S);
1175
1179
  }, d = K(
1176
1180
  q,
@@ -1178,21 +1182,21 @@ function nt(e, t, n) {
1178
1182
  size: "xs",
1179
1183
  label: g.$.removeItem,
1180
1184
  disabled: !l(
1181
- Object.keys(O.get(r.signal) ?? {}).length
1185
+ Object.keys(j.get(r.signal) ?? {}).length
1182
1186
  ),
1183
1187
  onClick: () => {
1184
- const y = Object.keys(O.get(r.signal) ?? {}).length;
1188
+ const y = Object.keys(j.get(r.signal) ?? {}).length;
1185
1189
  if (!l(y)) return;
1186
- const w = { ...O.get(r.signal) ?? {} };
1190
+ const w = { ...j.get(r.signal) ?? {} };
1187
1191
  delete w[e], r.change(w);
1188
1192
  }
1189
1193
  })
1190
- ), v = O.map(
1194
+ ), v = j.map(
1191
1195
  p.signal,
1192
1196
  (g) => u && g != null
1193
1197
  );
1194
1198
  return I.div(
1195
- j.class("bc-object-helpers__row"),
1199
+ O.class("bc-object-helpers__row"),
1196
1200
  Me.gridTemplateColumns("2fr 3fr min-content"),
1197
1201
  ie({
1198
1202
  content: _e({
@@ -1205,10 +1209,10 @@ function nt(e, t, n) {
1205
1209
  }),
1206
1210
  error: We(
1207
1211
  h,
1208
- (g) => I.div(j.class("bc-object-helpers__error"), g)
1212
+ (g) => I.div(O.class("bc-object-helpers__error"), g)
1209
1213
  ),
1210
1214
  description: I.div(
1211
- j.class("bc-object-helpers__description"),
1215
+ O.class("bc-object-helpers__description"),
1212
1216
  o === !1 ? "Unevaluated property (not allowed by schema)" : "Unevaluated property",
1213
1217
  Object.keys(s).length > 0 ? I.span(
1214
1218
  " • Allowed patterns: ",
@@ -1222,7 +1226,7 @@ function nt(e, t, n) {
1222
1226
  controller: p
1223
1227
  })
1224
1228
  ),
1225
- I.div(j.class("bc-object-helpers__remove"), d)
1229
+ I.div(O.class("bc-object-helpers__remove"), d)
1226
1230
  );
1227
1231
  }
1228
1232
  function rt(e) {
@@ -1298,7 +1302,7 @@ function jn({
1298
1302
  config: n,
1299
1303
  effective: r
1300
1304
  }) {
1301
- const i = Je(n.knownProps).filter(
1305
+ const i = Ke(n.knownProps).filter(
1302
1306
  ([, o]) => o !== !1
1303
1307
  ), s = i.map(([o]) => o);
1304
1308
  return { children: i.map(([o, l]) => {
@@ -1313,7 +1317,7 @@ function jn({
1313
1317
  });
1314
1318
  }), names: s };
1315
1319
  }
1316
- function On({
1320
+ function kn({
1317
1321
  controller: e,
1318
1322
  config: t,
1319
1323
  validatePropertyName: n,
@@ -1332,12 +1336,12 @@ function On({
1332
1336
  (s) => ze(
1333
1337
  {
1334
1338
  variant: "outline",
1335
- disabled: O.map(
1339
+ disabled: j.map(
1336
1340
  e.signal,
1337
1341
  (a) => !t.canAddUnevaluated || Object.keys(a ?? {}).length >= t.maxProps
1338
1342
  ),
1339
1343
  onClick: () => {
1340
- const a = O.get(e.signal) ?? {}, o = Object.keys(a);
1344
+ const a = j.get(e.signal) ?? {}, o = Object.keys(a);
1341
1345
  if (!t.canAddUnevaluated || o.length >= t.maxProps)
1342
1346
  return;
1343
1347
  const l = new Set(o), u = i("property", l);
@@ -1346,7 +1350,7 @@ function On({
1346
1350
  e.change(h);
1347
1351
  }
1348
1352
  },
1349
- j.title(t.unevaluatedTooltip),
1353
+ O.title(t.unevaluatedTooltip),
1350
1354
  s.$.addLabel
1351
1355
  )
1352
1356
  );
@@ -1361,7 +1365,7 @@ function at({
1361
1365
  content: n
1362
1366
  }) : n;
1363
1367
  }
1364
- function kn({
1368
+ function Cn({
1365
1369
  ctx: e,
1366
1370
  controller: t,
1367
1371
  baseDef: n
@@ -1409,7 +1413,7 @@ function kn({
1409
1413
  });
1410
1414
  })
1411
1415
  );
1412
- }), u = On({
1416
+ }), u = kn({
1413
1417
  controller: t,
1414
1418
  config: r,
1415
1419
  validatePropertyName: i,
@@ -1424,13 +1428,13 @@ function kn({
1424
1428
  );
1425
1429
  return at({ ctx: e, containerLayout: m, content: c });
1426
1430
  }
1427
- function Cn({
1431
+ function Pn({
1428
1432
  ctx: e,
1429
1433
  controller: t,
1430
1434
  baseDef: n
1431
1435
  }) {
1432
1436
  return re(t.signal, (r) => {
1433
- const { effective: i, conflicts: s } = nn(
1437
+ const { effective: i, conflicts: s } = rn(
1434
1438
  n,
1435
1439
  r,
1436
1440
  e.ajv,
@@ -1459,20 +1463,20 @@ function Cn({
1459
1463
  onClick: () => {
1460
1464
  if (!f) return;
1461
1465
  const F = new Set(
1462
- Object.keys(O.get(t.signal) ?? {})
1466
+ Object.keys(j.get(t.signal) ?? {})
1463
1467
  ), P = d("property", F);
1464
1468
  if (!l(P).ok) return;
1465
1469
  const B = u.getValueSchemaForNew(), z = u.makeDefaultFor(B), se = {
1466
- ...O.get(t.signal) ?? {},
1470
+ ...j.get(t.signal) ?? {},
1467
1471
  [P]: z
1468
1472
  };
1469
1473
  t.change(se);
1470
1474
  }
1471
1475
  },
1472
- j.title(o.unevaluatedTooltip),
1476
+ O.title(o.unevaluatedTooltip),
1473
1477
  k.$.addLabel
1474
1478
  )
1475
- ), g = Le(a), y = Je(o.knownProps).filter(
1479
+ ), g = Le(a), y = Ke(o.knownProps).filter(
1476
1480
  ([, k]) => k !== !1
1477
1481
  ), S = [
1478
1482
  ...y.map(([k]) => k),
@@ -1541,9 +1545,9 @@ function ot({
1541
1545
  if (r)
1542
1546
  return r;
1543
1547
  const i = e.definition;
1544
- return en(i) ? Cn({ ctx: e, controller: t, baseDef: i }) : kn({ ctx: e, controller: t, baseDef: i });
1548
+ return tn(i) ? Pn({ ctx: e, controller: t, baseDef: i }) : Cn({ ctx: e, controller: t, baseDef: i });
1545
1549
  }
1546
- function Pn(e) {
1550
+ function In(e) {
1547
1551
  if (typeof e == "boolean")
1548
1552
  return { discriminator: null, type: null };
1549
1553
  if (e.discriminator && typeof e.discriminator == "object") {
@@ -1566,7 +1570,7 @@ function Pn(e) {
1566
1570
  type: "beatui"
1567
1571
  } : { discriminator: null, type: null };
1568
1572
  }
1569
- function In(e, t, n) {
1573
+ function Nn(e, t, n) {
1570
1574
  if (!t.discriminator || !n || typeof n != "object")
1571
1575
  return null;
1572
1576
  const { discriminator: r, type: i } = t;
@@ -1576,7 +1580,7 @@ function In(e, t, n) {
1576
1580
  return null;
1577
1581
  if (s.mapping && s.mapping[a]) {
1578
1582
  const o = s.mapping[a];
1579
- return Nn(e, o);
1583
+ return Rn(e, o);
1580
1584
  }
1581
1585
  return Ve(
1582
1586
  e,
@@ -1600,7 +1604,7 @@ function In(e, t, n) {
1600
1604
  }
1601
1605
  return null;
1602
1606
  }
1603
- function Nn(e, t) {
1607
+ function Rn(e, t) {
1604
1608
  for (let n = 0; n < e.length; n++) {
1605
1609
  const r = e[n];
1606
1610
  if (typeof r == "object" && r.$ref === t)
@@ -1623,7 +1627,7 @@ function Ve(e, t, n) {
1623
1627
  }
1624
1628
  return null;
1625
1629
  }
1626
- function Rn({
1630
+ function Vn({
1627
1631
  ctx: e,
1628
1632
  controller: t
1629
1633
  }) {
@@ -1637,7 +1641,7 @@ function Rn({
1637
1641
  const i = e.definition.anyOf;
1638
1642
  return lt({ ctx: e, controller: t, kind: "anyOf", variants: i });
1639
1643
  }
1640
- function Vn({
1644
+ function En({
1641
1645
  ctx: e,
1642
1646
  controller: t
1643
1647
  }) {
@@ -1677,13 +1681,13 @@ function lt({
1677
1681
  kind: n,
1678
1682
  variants: r
1679
1683
  }) {
1680
- const i = r.map((f, d) => gt(f, d, `${n} ${d + 1}`)), s = typeof e.definition == "boolean" ? { discriminator: null, type: null } : Pn(e.definition), a = M(
1684
+ const i = r.map((f, d) => gt(f, d, `${n} ${d + 1}`)), s = typeof e.definition == "boolean" ? { discriminator: null, type: null } : In(e.definition), a = M(
1681
1685
  t.signal,
1682
1686
  e.ajv
1683
1687
  )((f, d) => {
1684
1688
  if (n === "oneOf") {
1685
1689
  if (s.discriminator) {
1686
- const v = In(
1690
+ const v = Nn(
1687
1691
  r,
1688
1692
  s,
1689
1693
  f
@@ -1691,10 +1695,10 @@ function lt({
1691
1695
  if (v !== null)
1692
1696
  return v;
1693
1697
  }
1694
- return je(e, f, d);
1698
+ return Oe(e, f, d);
1695
1699
  }
1696
- return je(e, f, d);
1697
- }), o = O.get(a), l = X(o >= 0 ? o : 0);
1700
+ return Oe(e, f, d);
1701
+ }), o = j.get(a), l = X(o >= 0 ? o : 0);
1698
1702
  t.onDispose(() => l.dispose());
1699
1703
  let u = !1;
1700
1704
  const m = a.on((f) => {
@@ -1713,7 +1717,7 @@ function lt({
1713
1717
  // auto mode chooses segmented for <=3
1714
1718
  }) : "", b = re(l, (f) => D({
1715
1719
  ctx: e.with({
1716
- definition: r[O.get(f)],
1720
+ definition: r[j.get(f)],
1717
1721
  // Suppress inner labels only when combinator is nested (non-root)
1718
1722
  suppressLabel: !e.isRoot
1719
1723
  }),
@@ -1748,7 +1752,7 @@ function D({
1748
1752
  }
1749
1753
  let s = [...i.notViolations];
1750
1754
  if (r?.not != null && typeof r.not == "object") {
1751
- const a = O.get(t.signal), o = tn(
1755
+ const a = j.get(t.signal), o = nn(
1752
1756
  r.not,
1753
1757
  a,
1754
1758
  i.ajv,
@@ -1775,7 +1779,7 @@ function D({
1775
1779
  t,
1776
1780
  N(
1777
1781
  i,
1778
- Sn({
1782
+ An({
1779
1783
  ctx: i,
1780
1784
  controller: t
1781
1785
  }),
@@ -1788,7 +1792,7 @@ function D({
1788
1792
  t,
1789
1793
  N(
1790
1794
  i,
1791
- An({
1795
+ On({
1792
1796
  ctx: i,
1793
1797
  controller: t
1794
1798
  }),
@@ -1801,7 +1805,7 @@ function D({
1801
1805
  t,
1802
1806
  N(
1803
1807
  i,
1804
- Rn({
1808
+ Vn({
1805
1809
  ctx: i,
1806
1810
  controller: t
1807
1811
  }),
@@ -1814,7 +1818,7 @@ function D({
1814
1818
  t,
1815
1819
  N(
1816
1820
  i,
1817
- Vn({
1821
+ En({
1818
1822
  ctx: i,
1819
1823
  controller: t
1820
1824
  }),
@@ -1945,7 +1949,7 @@ function D({
1945
1949
  i,
1946
1950
  ut({
1947
1951
  ctx: i,
1948
- controller: t instanceof Bt ? t : t.array()
1952
+ controller: t instanceof Lt ? t : t.array()
1949
1953
  }),
1950
1954
  t
1951
1955
  )
@@ -1953,7 +1957,7 @@ function D({
1953
1957
  case "object": {
1954
1958
  const a = ot({
1955
1959
  ctx: i,
1956
- controller: t instanceof Lt ? t : t.object()
1960
+ controller: t instanceof $t ? t : t.object()
1957
1961
  });
1958
1962
  return i.isRoot ? R(
1959
1963
  i,
@@ -1964,7 +1968,7 @@ function D({
1964
1968
  t,
1965
1969
  N(
1966
1970
  i,
1967
- I.div(j.class("bc-json-schema-object"), a),
1971
+ I.div(O.class("bc-json-schema-object"), a),
1968
1972
  t
1969
1973
  )
1970
1974
  );
@@ -1988,13 +1992,13 @@ function D({
1988
1992
  t,
1989
1993
  N(
1990
1994
  i,
1991
- I.div(j.class("bc-json-schema-unknown"), "Unknown"),
1995
+ I.div(O.class("bc-json-schema-unknown"), "Unknown"),
1992
1996
  t
1993
1997
  )
1994
1998
  );
1995
1999
  }
1996
2000
  }
1997
- function En({
2001
+ function Fn({
1998
2002
  schema: e,
1999
2003
  controller: t,
2000
2004
  ajv: n,
@@ -2020,7 +2024,7 @@ function En({
2020
2024
  return e === !0 ? ue({ ctx: l, controller: t }) : e === !1 ? U : D({ ctx: l, controller: t });
2021
2025
  }
2022
2026
  function R(e, t, n) {
2023
- return Qe(e.definition) ? vn({
2027
+ return Qe(e.definition) ? wn({
2024
2028
  ctx: e,
2025
2029
  controller: t,
2026
2030
  children: n,
@@ -2032,7 +2036,7 @@ function R(e, t, n) {
2032
2036
  }
2033
2037
  }) : n;
2034
2038
  }
2035
- function Fn(e) {
2039
+ function Tn(e) {
2036
2040
  return e.prefixItems != null ? {
2037
2041
  isTuple: !0,
2038
2042
  prefixItems: e.prefixItems,
@@ -2065,7 +2069,7 @@ function ut({
2065
2069
  });
2066
2070
  if (r)
2067
2071
  return r;
2068
- const i = e.definition, s = Fn(i), a = M(t.signal)((c) => {
2072
+ const i = e.definition, s = Tn(i), a = M(t.signal)((c) => {
2069
2073
  const h = c?.length ?? 0;
2070
2074
  return !(i.maxItems != null && h >= i.maxItems || s.isTuple && h >= s.prefixItems.length && s.additionalItemsSchema === !1);
2071
2075
  }), o = M(t.signal)((c) => {
@@ -2124,7 +2128,7 @@ function ut({
2124
2128
  return `Must contain at most ${c.maxContains} item(s) matching ${h} (currently ${c.count})`;
2125
2129
  }
2126
2130
  return `Contains ${c.count} item(s) matching ${h}`;
2127
- }) : null, p = Xt({
2131
+ }) : null, p = Gt({
2128
2132
  ...L({ ctx: e }),
2129
2133
  createItem: () => {
2130
2134
  const c = t.signal.value?.length ?? 0;
@@ -2157,8 +2161,8 @@ function ut({
2157
2161
  );
2158
2162
  let w = v;
2159
2163
  d && s.isTuple && (w = _(
2160
- j.class("bc-stack--gap-1"),
2161
- ee(j.class("bc-array-control__item-label"), d),
2164
+ O.class("bc-stack--gap-1"),
2165
+ ee(O.class("bc-array-control__item-label"), d),
2162
2166
  w
2163
2167
  ));
2164
2168
  const S = [];
@@ -2166,7 +2170,7 @@ function ut({
2166
2170
  oe(
2167
2171
  g,
2168
2172
  () => ee(
2169
- j.class(
2173
+ O.class(
2170
2174
  "bc-array-control__indicator bc-array-control__indicator--error"
2171
2175
  ),
2172
2176
  "⚠️ Duplicate value"
@@ -2176,17 +2180,17 @@ function ut({
2176
2180
  oe(
2177
2181
  y,
2178
2182
  () => ee(
2179
- j.class(
2183
+ O.class(
2180
2184
  "bc-array-control__indicator bc-array-control__indicator--success"
2181
2185
  ),
2182
2186
  "✓ Matches required pattern"
2183
2187
  )
2184
2188
  )
2185
- ), S.length > 0 ? _(j.class("bc-stack--gap-1"), w, ...S) : w;
2189
+ ), S.length > 0 ? _(O.class("bc-stack--gap-1"), w, ...S) : w;
2186
2190
  }
2187
2191
  });
2188
2192
  return i.contains && m ? _(
2189
- j.class("bc-stack--gap-2"),
2193
+ O.class("bc-stack--gap-2"),
2190
2194
  p,
2191
2195
  re(
2192
2196
  M(
@@ -2197,7 +2201,7 @@ function ut({
2197
2201
  summary: h
2198
2202
  })),
2199
2203
  ({ info: c, summary: h }) => ee(
2200
- j.class(
2204
+ O.class(
2201
2205
  c.isValid ? "bc-array-control__summary bc-array-control__summary--success" : "bc-array-control__summary bc-array-control__summary--error"
2202
2206
  ),
2203
2207
  h
@@ -2205,13 +2209,13 @@ function ut({
2205
2209
  )
2206
2210
  ) : p;
2207
2211
  }
2208
- function Tn(e) {
2212
+ function Mn(e) {
2209
2213
  return e.map((t) => ({
2210
2214
  key: t,
2211
- label: Ke(t),
2212
- detect: (n) => rn(n, [t]) === t,
2213
- convert: (n) => sn(n, t),
2214
- defaultValue: () => an(t)
2215
+ label: qe(t),
2216
+ detect: (n) => sn(n, [t]) === t,
2217
+ convert: (n) => an(n, t),
2218
+ defaultValue: () => on(t)
2215
2219
  }));
2216
2220
  }
2217
2221
  function ct({
@@ -2227,11 +2231,11 @@ function ct({
2227
2231
  return r;
2228
2232
  const i = e.definition;
2229
2233
  let s = i.type ?? [];
2230
- const a = on(i), o = s.includes("null"), l = s.filter(
2234
+ const a = ln(i), o = s.includes("null"), l = s.filter(
2231
2235
  (f) => f !== "null" && (f === "string" || f === "number" || f === "integer" || f === "boolean")
2232
2236
  ), u = o && l.length === s.length - 1;
2233
2237
  u && (s = l);
2234
- const m = Tn(s), p = new Yt(
2238
+ const m = Mn(s), p = new Xt(
2235
2239
  t.path,
2236
2240
  t.change,
2237
2241
  t.signal,
@@ -2241,14 +2245,14 @@ function ct({
2241
2245
  );
2242
2246
  t.onDispose(() => p.dispose());
2243
2247
  const c = (f) => Xe({
2244
- options: s.map((d) => ({ value: d, label: Ke(d) })),
2248
+ options: s.map((d) => ({ value: d, label: qe(d) })),
2245
2249
  selected: p.activeBranch,
2246
2250
  onChange: f,
2247
2251
  mode: a.selector ?? "auto"
2248
2252
  }), h = (f) => {
2249
2253
  p.switchToBranch(f, a.confirmBranchChange);
2250
2254
  }, b = re(p.activeBranch, (f) => {
2251
- const d = O.get(f), v = p.getBranchController(d);
2255
+ const d = j.get(f), v = p.getBranchController(d);
2252
2256
  if (u && (d === "number" || d === "integer")) {
2253
2257
  const y = i;
2254
2258
  return A(pe, {
@@ -2347,14 +2351,14 @@ function ue({
2347
2351
  controller: t
2348
2352
  }));
2349
2353
  }
2350
- function Mn(e) {
2354
+ function Wn(e) {
2351
2355
  if (typeof e == "boolean") return [];
2352
2356
  const t = e["x:ui"];
2353
2357
  return !t || !Array.isArray(t.crossField) ? [] : t.crossField.filter(
2354
2358
  (n) => typeof n == "object" && n != null && typeof n.id == "string" && Array.isArray(n.fields) && typeof n.validate == "function"
2355
2359
  );
2356
2360
  }
2357
- function Wn(e, t, n = !1) {
2361
+ function $n(e, t, n = !1) {
2358
2362
  const r = [], i = [...t].sort(
2359
2363
  (s, a) => (a.priority || 0) - (s.priority || 0)
2360
2364
  );
@@ -2363,7 +2367,7 @@ function Wn(e, t, n = !1) {
2363
2367
  try {
2364
2368
  const a = {};
2365
2369
  for (const l of s.fields)
2366
- a[l] = $n(e, l);
2370
+ a[l] = Ln(e, l);
2367
2371
  const o = s.validate(a, e);
2368
2372
  if (!o.valid) {
2369
2373
  const l = s.targets || s.fields;
@@ -2409,7 +2413,7 @@ function Wn(e, t, n = !1) {
2409
2413
  }
2410
2414
  return r.length > 0 ? we(r) : $.valid;
2411
2415
  }
2412
- function $n(e, t) {
2416
+ function Ln(e, t) {
2413
2417
  if (e == null || typeof e != "object")
2414
2418
  return;
2415
2419
  const n = t.split(".");
@@ -2428,7 +2432,7 @@ function $n(e, t) {
2428
2432
  }
2429
2433
  return r;
2430
2434
  }
2431
- function Ln(e) {
2435
+ function Bn(e) {
2432
2436
  if (typeof e == "boolean") return;
2433
2437
  const t = e["x:ui"];
2434
2438
  if (!t) return;
@@ -2438,7 +2442,7 @@ function Ln(e) {
2438
2442
  )), Array.isArray(t.crossField) && (n.crossField = t.crossField.filter(
2439
2443
  (i) => typeof i == "object" && i != null && Array.isArray(i.fields) && typeof i.validate == "function"
2440
2444
  ));
2441
- const r = Mn(e);
2445
+ const r = Wn(e);
2442
2446
  return r.length > 0 && (n.crossFieldRules = r), Array.isArray(t.async) && (n.async = t.async.filter(
2443
2447
  (i) => typeof i == "object" && i != null && typeof i.validate == "function"
2444
2448
  )), Object.keys(n).length > 0 ? n : void 0;
@@ -2463,7 +2467,7 @@ function be(e, t) {
2463
2467
  }
2464
2468
  return r;
2465
2469
  }
2466
- function Bn(e, t) {
2470
+ function Dn(e, t) {
2467
2471
  try {
2468
2472
  if (typeof e.condition == "function") {
2469
2473
  const r = (Array.isArray(e.watch) ? e.watch : [e.watch]).map(
@@ -2479,11 +2483,11 @@ function Bn(e, t) {
2479
2483
  return console.warn("Error evaluating conditional validation:", n), !1;
2480
2484
  }
2481
2485
  }
2482
- function Dn(e, t, n, r) {
2486
+ function xn(e, t, n, r) {
2483
2487
  const i = [];
2484
2488
  if (r && !r(e) && r.errors && i.push(...r.errors), n.when) {
2485
2489
  for (const s of n.when)
2486
- if (Bn(s, t) ? s.then : s.else, s.validate)
2490
+ if (Dn(s, t) ? s.then : s.else, s.validate)
2487
2491
  try {
2488
2492
  const o = s.validate(e, t);
2489
2493
  o && i.push({
@@ -2518,18 +2522,18 @@ function Dn(e, t, n, r) {
2518
2522
  console.warn("Error in cross-field validation:", a);
2519
2523
  }
2520
2524
  if (n.crossFieldRules && n.crossFieldRules.length > 0) {
2521
- const s = Wn(
2525
+ const s = $n(
2522
2526
  t,
2523
2527
  n.crossFieldRules
2524
2528
  );
2525
2529
  if (s.type === "invalid") {
2526
- const a = xn(s);
2530
+ const a = _n(s);
2527
2531
  i.push(...a);
2528
2532
  }
2529
2533
  }
2530
2534
  return i.length > 0 ? we(i) : $.valid;
2531
2535
  }
2532
- function xn(e) {
2536
+ function _n(e) {
2533
2537
  if (e.type === "valid") return [];
2534
2538
  const t = [];
2535
2539
  function n(r, i = "") {
@@ -2547,7 +2551,7 @@ function xn(e) {
2547
2551
  }
2548
2552
  return n(e.error), t;
2549
2553
  }
2550
- function _n(e, t) {
2554
+ function Un(e, t) {
2551
2555
  const n = /* @__PURE__ */ new Set();
2552
2556
  if (e.when)
2553
2557
  for (const r of e.when)
@@ -2560,14 +2564,14 @@ function _n(e, t) {
2560
2564
  shouldRevalidate: (r) => Array.from(n).some((i) => r.startsWith(i) || i.startsWith(r))
2561
2565
  };
2562
2566
  }
2563
- function Un(e) {
2567
+ function Kn(e) {
2564
2568
  if (typeof e == "boolean") return [];
2565
2569
  const t = e["x:ui"];
2566
2570
  return !t || !Array.isArray(t.async) ? [] : t.async.filter(
2567
2571
  (n) => typeof n == "object" && n != null && typeof n.id == "string" && typeof n.field == "string" && typeof n.validate == "function"
2568
2572
  );
2569
2573
  }
2570
- class Kn {
2574
+ class qn {
2571
2575
  timeouts = /* @__PURE__ */ new Map();
2572
2576
  validationStates = /* @__PURE__ */ new Map();
2573
2577
  abortControllers = /* @__PURE__ */ new Map();
@@ -2685,9 +2689,9 @@ class Kn {
2685
2689
  }
2686
2690
  function Y(e) {
2687
2691
  if (typeof e != "boolean")
2688
- return qn(e);
2692
+ return Jn(e);
2689
2693
  }
2690
- function qn(e) {
2694
+ function Jn(e) {
2691
2695
  if (e.default !== void 0)
2692
2696
  return e.default;
2693
2697
  if (Array.isArray(e.examples) && e.examples.length > 0)
@@ -2696,10 +2700,10 @@ function qn(e) {
2696
2700
  return e.const;
2697
2701
  if (Array.isArray(e.enum) && e.enum.length > 0)
2698
2702
  return e.enum[0];
2699
- if (Zn(e))
2703
+ if (Qn(e))
2700
2704
  return null;
2701
2705
  if (e.allOf && Array.isArray(e.allOf))
2702
- return Jn(e.allOf);
2706
+ return zn(e.allOf);
2703
2707
  const t = e.oneOf ?? e.anyOf;
2704
2708
  if (t && Array.isArray(t))
2705
2709
  for (const n of t) {
@@ -2707,9 +2711,9 @@ function qn(e) {
2707
2711
  if (r !== void 0)
2708
2712
  return r;
2709
2713
  }
2710
- return zn(e);
2714
+ return Hn(e);
2711
2715
  }
2712
- function Jn(e) {
2716
+ function zn(e) {
2713
2717
  const t = {};
2714
2718
  let n = !1;
2715
2719
  for (const r of e) {
@@ -2718,17 +2722,17 @@ function Jn(e) {
2718
2722
  }
2719
2723
  return n ? t : void 0;
2720
2724
  }
2721
- function zn(e) {
2722
- switch (Qn(e)) {
2725
+ function Hn(e) {
2726
+ switch (er(e)) {
2723
2727
  case "object":
2724
- return Hn(e);
2725
- case "array":
2726
2728
  return Gn(e);
2727
- case "string":
2729
+ case "array":
2728
2730
  return Xn(e);
2731
+ case "string":
2732
+ return Yn(e);
2729
2733
  case "number":
2730
2734
  case "integer":
2731
- return Yn(e);
2735
+ return Zn(e);
2732
2736
  case "boolean":
2733
2737
  return !1;
2734
2738
  case "null":
@@ -2737,7 +2741,7 @@ function zn(e) {
2737
2741
  return;
2738
2742
  }
2739
2743
  }
2740
- function Hn(e) {
2744
+ function Gn(e) {
2741
2745
  if (!e.properties)
2742
2746
  return {};
2743
2747
  const t = new Set(e.required ?? []), n = {};
@@ -2750,7 +2754,7 @@ function Hn(e) {
2750
2754
  }
2751
2755
  return r ? n : {};
2752
2756
  }
2753
- function Gn(e) {
2757
+ function Xn(e) {
2754
2758
  const t = e.minItems ?? 0;
2755
2759
  if (t === 0)
2756
2760
  return [];
@@ -2762,19 +2766,19 @@ function Gn(e) {
2762
2766
  const r = Y(n);
2763
2767
  return Array(t).fill(r ?? null);
2764
2768
  }
2765
- function Xn(e) {
2769
+ function Yn(e) {
2766
2770
  switch (e.format) {
2767
2771
  case "date":
2768
- return er();
2769
- case "date-time":
2770
2772
  return tr();
2773
+ case "date-time":
2774
+ return nr();
2771
2775
  case "time":
2772
2776
  return "00:00:00";
2773
2777
  default:
2774
2778
  return "";
2775
2779
  }
2776
2780
  }
2777
- function Yn(e) {
2781
+ function Zn(e) {
2778
2782
  const t = e.type === "integer";
2779
2783
  let n = e.minimum, r = e.maximum;
2780
2784
  if (e.exclusiveMinimum !== void 0) {
@@ -2793,10 +2797,10 @@ function Yn(e) {
2793
2797
  function Fe(e) {
2794
2798
  return e.multipleOf !== void 0 ? e.multipleOf : 1e-3;
2795
2799
  }
2796
- function Zn(e) {
2800
+ function Qn(e) {
2797
2801
  return Array.isArray(e.type) ? e.type.includes("null") : !1;
2798
2802
  }
2799
- function Qn(e) {
2803
+ function er(e) {
2800
2804
  if (typeof e.type == "string")
2801
2805
  return e.type;
2802
2806
  if (Array.isArray(e.type))
@@ -2806,25 +2810,25 @@ function Qn(e) {
2806
2810
  if (e.items !== void 0)
2807
2811
  return "array";
2808
2812
  }
2809
- function er() {
2813
+ function tr() {
2810
2814
  return (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
2811
2815
  }
2812
- function tr() {
2816
+ function nr() {
2813
2817
  return (/* @__PURE__ */ new Date()).toISOString();
2814
2818
  }
2815
- function nr(e) {
2819
+ function rr(e) {
2816
2820
  const t = globalThis.structuredClone;
2817
2821
  return typeof t == "function" ? t(e) : JSON.parse(JSON.stringify(e));
2818
2822
  }
2819
- function rr(e, t) {
2823
+ function ir(e, t) {
2820
2824
  try {
2821
2825
  return JSON.stringify(e) === JSON.stringify(t);
2822
2826
  } catch {
2823
2827
  return e === t;
2824
2828
  }
2825
2829
  }
2826
- function ir(e) {
2827
- const t = new Wt();
2830
+ function sr(e) {
2831
+ const t = new Mt();
2828
2832
  for (let n = 0; n < e.length; n++) {
2829
2833
  const r = e[n], i = r.displayName ?? `custom-widget-${n}`;
2830
2834
  t.register(i, {
@@ -2839,7 +2843,7 @@ function ir(e) {
2839
2843
  }
2840
2844
  return t;
2841
2845
  }
2842
- function Or({
2846
+ function kr({
2843
2847
  schema: e,
2844
2848
  initialValue: t,
2845
2849
  externalSchemas: n,
@@ -2851,9 +2855,9 @@ function Or({
2851
2855
  applySchemaDefaults: l = !0,
2852
2856
  submitting: u
2853
2857
  }, m) {
2854
- const p = t !== void 0 ? O.get(t) : void 0, c = Y(e);
2858
+ const p = t !== void 0 ? j.get(t) : void 0, c = Y(e);
2855
2859
  let h;
2856
- return t === void 0 ? h = c ?? {} : l ? h = Zt(
2860
+ return t === void 0 ? h = c ?? {} : l ? h = Yt(
2857
2861
  c,
2858
2862
  p
2859
2863
  ) : h = p, mt(
@@ -2864,29 +2868,29 @@ function Or({
2864
2868
  }),
2865
2869
  (b) => {
2866
2870
  if (b.ok) {
2867
- const { ajv: f, validate: d } = b.value, v = Ln(e), g = Un(e), y = g.length > 0 ? new Kn() : null, w = s ?? "onTouched", S = (T) => {
2871
+ const { ajv: f, validate: d } = b.value, v = Bn(e), g = Kn(e), y = g.length > 0 ? new qn() : null, w = s ?? "onTouched", S = (T) => {
2868
2872
  const W = d(T);
2869
2873
  let Z;
2870
2874
  return W ? Z = $.valid : Z = we(
2871
2875
  d.errors ?? []
2872
- ), v ? Dn(
2876
+ ), v ? xn(
2873
2877
  T,
2874
2878
  T,
2875
2879
  // formData is the same as value for root-level validation
2876
2880
  v,
2877
2881
  d
2878
2882
  ) : Z;
2879
- }, { controller: C, setStatus: J } = Dt({
2883
+ }, { controller: C, setStatus: J } = Bt({
2880
2884
  initialValue: h,
2881
2885
  validationMode: w,
2882
2886
  validateDebounceMs: a,
2883
2887
  validate: w === "onSubmit" ? void 0 : S
2884
- }), k = v ? _n(v) : null, F = i !== !1;
2888
+ }), k = v ? Un(v) : null, F = i !== !1;
2885
2889
  let P = !1;
2886
2890
  const x = F ? C.signal.on((T) => {
2887
2891
  if (P) return;
2888
- const W = nr(T);
2889
- d(W) && !rr(W, T) && (P = !0, C.change(W), P = !1);
2892
+ const W = rr(T);
2893
+ d(W) && !ir(W, T) && (P = !0, C.change(W), P = !1);
2890
2894
  }) : () => {
2891
2895
  }, B = k ? C.signal.on((T, W) => {
2892
2896
  W != null && JSON.stringify(T) !== JSON.stringify(W) && setTimeout(() => {
@@ -2900,9 +2904,9 @@ function Or({
2900
2904
  }) : () => {
2901
2905
  }, se = () => {
2902
2906
  x(), B(), z(), y?.dispose(), C.dispose();
2903
- }, ft = o ? ir(o) : void 0, dt = ce(
2907
+ }, ft = o ? sr(o) : void 0, dt = ce(
2904
2908
  yt(se),
2905
- En({
2909
+ Fn({
2906
2910
  schema: e,
2907
2911
  controller: C,
2908
2912
  ajv: f,
@@ -2915,32 +2919,32 @@ function Or({
2915
2919
  );
2916
2920
  return m({ Form: dt, controller: C, setStatus: J });
2917
2921
  }
2918
- return I.div(j.class("bc-json-schema-form__error"), b.error);
2922
+ return I.div(O.class("bc-json-schema-form__error"), b.error);
2919
2923
  }
2920
2924
  );
2921
2925
  }
2922
- function kr(e, t) {
2923
- const r = (t?.ajv ?? new wt({ allErrors: !0 })).compile(e);
2926
+ function Cr(e, t) {
2927
+ const r = (t?.ajv ?? new en({ allErrors: !0 })).compile(e);
2924
2928
  return {
2925
2929
  "~standard": {
2926
2930
  version: 1,
2927
2931
  vendor: "ajv",
2928
- validate: (i) => r(i) ? { value: i } : { issues: sr(r.errors ?? []) },
2932
+ validate: (i) => r(i) ? { value: i } : { issues: ar(r.errors ?? []) },
2929
2933
  types: void 0
2930
2934
  }
2931
2935
  };
2932
2936
  }
2933
- function sr(e) {
2937
+ function ar(e) {
2934
2938
  return e.map((t) => ({
2935
- message: ar(t),
2936
- path: or(t)
2939
+ message: or(t),
2940
+ path: lr(t)
2937
2941
  }));
2938
2942
  }
2939
- function ar(e) {
2943
+ function or(e) {
2940
2944
  return e.message ?? `${e.keyword} validation failed`;
2941
2945
  }
2942
- function or(e) {
2943
- const t = lr(e.instancePath || "");
2946
+ function lr(e) {
2947
+ const t = ur(e.instancePath || "");
2944
2948
  if (e.keyword === "required") {
2945
2949
  const n = e.params.missingProperty;
2946
2950
  if (n != null) return [...t, n];
@@ -2955,51 +2959,51 @@ function or(e) {
2955
2959
  }
2956
2960
  return t.length > 0 ? t : void 0;
2957
2961
  }
2958
- function lr(e) {
2959
- return e ? e.split("/").slice(1).map((n) => n.replace(/~1/g, "/").replace(/~0/g, "~")).map((n) => ur(n) ? Number(n) : n) : [];
2960
- }
2961
2962
  function ur(e) {
2963
+ return e ? e.split("/").slice(1).map((n) => n.replace(/~1/g, "/").replace(/~0/g, "~")).map((n) => cr(n) ? Number(n) : n) : [];
2964
+ }
2965
+ function cr(e) {
2962
2966
  return /^\d+$/.test(e);
2963
2967
  }
2964
2968
  export {
2965
2969
  jr as JSONSchemaAllOf,
2966
2970
  ue as JSONSchemaAny,
2967
- Rn as JSONSchemaAnyOf,
2971
+ Vn as JSONSchemaAnyOf,
2968
2972
  ut as JSONSchemaArray,
2969
2973
  ge as JSONSchemaBoolean,
2970
- An as JSONSchemaConst,
2971
- En as JSONSchemaControl,
2972
- Sn as JSONSchemaEnum,
2973
- Or as JSONSchemaForm,
2974
+ On as JSONSchemaConst,
2975
+ Fn as JSONSchemaControl,
2976
+ An as JSONSchemaEnum,
2977
+ kr as JSONSchemaForm,
2974
2978
  D as JSONSchemaGenericControl,
2975
2979
  ye as JSONSchemaInteger,
2976
2980
  Ze as JSONSchemaNull,
2977
2981
  le as JSONSchemaNumber,
2978
2982
  ot as JSONSchemaObject,
2979
- Vn as JSONSchemaOneOf,
2983
+ En as JSONSchemaOneOf,
2980
2984
  me as JSONSchemaString,
2981
2985
  ct as JSONSchemaUnion,
2982
2986
  ht as SchemaContext,
2983
2987
  we as ajvErrorsToControllerValidation,
2984
- Ir as ajvErrorsToDependencies,
2985
- Nr as buildMessage,
2986
- Rr as buildPath,
2987
- Vr as clearCaches,
2988
- Er as clearCachesForAjv,
2988
+ Nr as ajvErrorsToDependencies,
2989
+ Rr as buildMessage,
2990
+ Vr as buildPath,
2991
+ Er as clearCaches,
2992
+ Fr as clearCachesForAjv,
2989
2993
  $e as compileWithCache,
2990
- nn as composeEffectiveObjectSchema,
2991
- kr as createAJVStandardSchema,
2992
- Wr as createDiagnosticWidget,
2994
+ rn as composeEffectiveObjectSchema,
2995
+ Cr as createAJVStandardSchema,
2996
+ $r as createDiagnosticWidget,
2993
2997
  He as evaluateIfThenElseOverlay,
2994
- tn as evaluateNotViolation,
2998
+ nn as evaluateNotViolation,
2995
2999
  Y as extractSchemaDefaults,
2996
- $r as forFormat,
2997
- Lr as forTypeAndFormat,
2998
- Br as forXUI,
3000
+ Lr as forFormat,
3001
+ Br as forTypeAndFormat,
3002
+ Dr as forXUI,
2999
3003
  vt as getAjvForSchema,
3000
- Fr as getCacheStats,
3004
+ Tr as getCacheStats,
3001
3005
  G as getEvaluatedProperties,
3002
- en as hasConditionalFeatures,
3003
- Tr as jsonPointerToSegments,
3006
+ tn as hasConditionalFeatures,
3007
+ Mr as jsonPointerToSegments,
3004
3008
  ve as mergeAllOf
3005
3009
  };