@tempots/beatui 0.81.0 → 0.82.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 (237) hide show
  1. package/dist/_commonjsHelpers-DKOUU3wS.cjs +1 -0
  2. package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
  3. package/dist/{ar-DwHLVgKj.cjs → ar-D7CXDmVZ.cjs} +1 -1
  4. package/dist/{ar-Bo_FZZi7.js → ar-nOSKXpIW.js} +1 -1
  5. package/dist/auth/index.cjs.js +1 -1
  6. package/dist/auth/index.es.js +63 -1349
  7. package/dist/auth-divider-BqZPH1-z.cjs +1 -0
  8. package/dist/auth-divider-Wr-S16kF.js +1355 -0
  9. package/dist/beatui.css +2035 -295
  10. package/dist/beatui.tailwind.css +2036 -296
  11. package/dist/better-auth/index.cjs.js +1 -0
  12. package/dist/better-auth/index.es.js +754 -0
  13. package/dist/{de-zI5mdV4M.cjs → de-WzsOu9Gn.cjs} +1 -1
  14. package/dist/{de-CCqwOkqN.js → de-f2xcEb34.js} +1 -1
  15. package/dist/{deep-merge-1uN6CG6K.js → deep-merge-BYm0y62g.js} +271 -285
  16. package/dist/deep-merge-d7sf0xmN.cjs +1 -0
  17. package/dist/duration-input-B9UNmUCh.cjs +1 -0
  18. package/dist/{duration-input-C9kpsw-t.js → duration-input-DqcJbxKD.js} +31 -29
  19. package/dist/editor-toolbar-group--a-xgsJw.cjs +1 -0
  20. package/dist/editor-toolbar-group-CVpl5mxF.js +31 -0
  21. package/dist/{es-BF02UrPL.js → es-CDqqzpCw.js} +1 -1
  22. package/dist/{es-Cw90CAbu.cjs → es-Ds2Xf3wV.cjs} +1 -1
  23. package/dist/{fa-DPQV4YB8.js → fa-C7tE_hR3.js} +1 -1
  24. package/dist/{fa-B4lssnzR.cjs → fa-Ct1UtDB7.cjs} +1 -1
  25. package/dist/{fr-1Kd6z1F-.cjs → fr-CzAkRFed.cjs} +1 -1
  26. package/dist/{fr-dmxPhwkD.js → fr-yOW_68YY.js} +1 -1
  27. package/dist/{he-BtQbrVt3.js → he-D2oUloCJ.js} +1 -1
  28. package/dist/{he-CJ3XnuPm.cjs → he-DlXALrK7.cjs} +1 -1
  29. package/dist/{hi-BpfnFKHp.cjs → hi-3dBhLwDs.cjs} +1 -1
  30. package/dist/{hi-D_Le4Yka.js → hi-D5ZlZoQq.js} +1 -1
  31. package/dist/{hls.light.min-Bhrf47iR.cjs → hls.light.min-C6xKDzRR.cjs} +1 -1
  32. package/dist/{hls.light.min-C6VwviEa.js → hls.light.min-hEMf_E8u.js} +1 -1
  33. package/dist/{index-CfaWytS2.cjs → index-05UbKOYe.cjs} +1 -1
  34. package/dist/{index-K6u33-GC.cjs → index-Bt7FYl80.cjs} +19 -19
  35. package/dist/{index-YtW7SCWB.js → index-C2Lq1m45.js} +1434 -1463
  36. package/dist/{index-CGEzILlC.js → index-lYhXnu6I.js} +1 -1
  37. package/dist/index.cjs.js +4 -4
  38. package/dist/index.es.js +2389 -2738
  39. package/dist/input-container-C6qEIjcA.cjs +1 -0
  40. package/dist/input-container-DiCjOzR2.js +247 -0
  41. package/dist/{it-DyHjSuHN.js → it-6e6X-4BB.js} +1 -1
  42. package/dist/{it-COCZ9NyB.cjs → it-DohtcWi9.cjs} +1 -1
  43. package/dist/{ja-X43lABza.js → ja-BxNuNo2H.js} +1 -1
  44. package/dist/{ja--NdggLU9.cjs → ja-eyTArrgS.cjs} +1 -1
  45. package/dist/json-schema/index.cjs.js +1 -8
  46. package/dist/json-schema/index.es.js +1359 -7608
  47. package/dist/json-schema-display/index.cjs.js +1 -0
  48. package/dist/json-schema-display/index.es.js +846 -0
  49. package/dist/json-structure/index.cjs.js +1 -1
  50. package/dist/json-structure/index.es.js +542 -698
  51. package/dist/{ko-BUvb0ggK.cjs → ko-BFLCDMMs.cjs} +1 -1
  52. package/dist/{ko-B9g9iw99.js → ko-Ch0jFsBV.js} +1 -1
  53. package/dist/lexical/index.cjs.js +46 -0
  54. package/dist/lexical/index.es.js +21370 -0
  55. package/dist/lexical.css +1124 -0
  56. package/dist/menu-CZzRsQP_.js +372 -0
  57. package/dist/menu-ClrU72xH.cjs +1 -0
  58. package/dist/modal-I5srcntN.cjs +1 -0
  59. package/dist/modal-v3u2Fpnd.js +488 -0
  60. package/dist/{nl-0S25Gsld.cjs → nl-Bx2ACvr4.cjs} +1 -1
  61. package/dist/{nl-Ew5jnSsT.js → nl-NuTdZO1s.js} +1 -1
  62. package/dist/{notice-C-964yaY.js → notice-BuZvdvZh.js} +84 -82
  63. package/dist/notice-CLDdy1MW.cjs +1 -0
  64. package/dist/oneof-branch-detection-DsM1K5xc.cjs +8 -0
  65. package/dist/oneof-branch-detection-Dt8ss9lc.js +6281 -0
  66. package/dist/{pl-C9f6UBSe.js → pl-Bs4nLJ__.js} +1 -1
  67. package/dist/{pl-B3k-K3S4.cjs → pl-QHl6sl8f.cjs} +1 -1
  68. package/dist/prosemirror/index.cjs.js +1 -1
  69. package/dist/prosemirror/index.es.js +1 -1
  70. package/dist/{pt-DYtAvbrw.js → pt-BETjHZrL.js} +1 -1
  71. package/dist/{pt-CKoikRO5.cjs → pt-DZGw2Z-1.cjs} +1 -1
  72. package/dist/{ru-ZexN-b8V.js → ru-Bi1_DEKM.js} +1 -1
  73. package/dist/{ru-COb7RSDt.cjs → ru-D03IuLqh.cjs} +1 -1
  74. package/dist/session-id-3KiilioY.js +8 -0
  75. package/dist/session-id-B5lJMzbB.cjs +1 -0
  76. package/dist/stack-BJgsPJ9A.js +873 -0
  77. package/dist/stack-DcZ_u50f.cjs +1 -0
  78. package/dist/string-B9vVyfq3.cjs +1 -0
  79. package/dist/string-DYyMxBl-.js +19 -0
  80. package/dist/styles-url-B2dzXrYt.cjs +1 -0
  81. package/dist/styles-url-Cw_mxshe.js +4 -0
  82. package/dist/text-input-B3VBat1k.js +44 -0
  83. package/dist/text-input-Ds8e7Z1G.cjs +1 -0
  84. package/dist/{toolbar-DNpBIoJo.js → toolbar-D994_E_s.js} +4 -4
  85. package/dist/toolbar-x0_8lmKu.cjs +1 -0
  86. package/dist/{tr-tO_EH-Y2.cjs → tr-B_-_1wua.cjs} +1 -1
  87. package/dist/{tr-BDvn05-H.js → tr-DiYB-FwX.js} +1 -1
  88. package/dist/translations-B4-Zd2LM.cjs +1 -0
  89. package/dist/translations-Cq8bUKJP.js +584 -0
  90. package/dist/{translations-DwGC_94w.cjs → translations-D62qqNV9.cjs} +1 -1
  91. package/dist/{translations-CfWR4loD.js → translations-DPr6c05Z.js} +1 -1
  92. package/dist/types/better-auth/bridge.d.ts +2 -0
  93. package/dist/types/better-auth/callbacks.d.ts +6 -0
  94. package/dist/types/better-auth/components/authenticated.d.ts +4 -0
  95. package/dist/types/better-auth/components/better-auth-container.d.ts +4 -0
  96. package/dist/types/better-auth/components/better-auth-modal.d.ts +4 -0
  97. package/dist/types/better-auth/components/magic-link-form.d.ts +7 -0
  98. package/dist/types/better-auth/components/passkey-management.d.ts +6 -0
  99. package/dist/types/better-auth/components/passkey-signin.d.ts +12 -0
  100. package/dist/types/better-auth/components/two-factor-setup.d.ts +8 -0
  101. package/dist/types/better-auth/components/two-factor-verify.d.ts +10 -0
  102. package/dist/types/better-auth/i18n/default.d.ts +29 -0
  103. package/dist/types/better-auth/i18n/locales/en.d.ts +28 -0
  104. package/dist/types/better-auth/i18n/translations.d.ts +27 -0
  105. package/dist/types/better-auth/index.d.ts +22 -0
  106. package/dist/types/better-auth/provider.d.ts +6 -0
  107. package/dist/types/better-auth/session.d.ts +14 -0
  108. package/dist/types/better-auth/social-mapping.d.ts +2 -0
  109. package/dist/types/better-auth/types.d.ts +164 -0
  110. package/dist/types/components/auth/auth-container.d.ts +1 -1
  111. package/dist/types/components/auth/social-providers.d.ts +1 -1
  112. package/dist/types/components/auth/types.d.ts +2 -0
  113. package/dist/types/components/editor-toolbar/editor-toolbar-button.d.ts +16 -0
  114. package/dist/types/components/editor-toolbar/editor-toolbar-group.d.ts +9 -0
  115. package/dist/types/components/editor-toolbar/index.d.ts +2 -0
  116. package/dist/types/components/json-schema-display/display-widget-customization.d.ts +61 -0
  117. package/dist/types/components/json-schema-display/display-wrapper.d.ts +14 -0
  118. package/dist/types/components/json-schema-display/displays/any-display.d.ts +14 -0
  119. package/dist/types/components/json-schema-display/displays/array-display.d.ts +13 -0
  120. package/dist/types/components/json-schema-display/displays/boolean-display.d.ts +13 -0
  121. package/dist/types/components/json-schema-display/displays/composition-display.d.ts +14 -0
  122. package/dist/types/components/json-schema-display/displays/enum-const-display.d.ts +13 -0
  123. package/dist/types/components/json-schema-display/displays/generic-display.d.ts +18 -0
  124. package/dist/types/components/json-schema-display/displays/null-display.d.ts +13 -0
  125. package/dist/types/components/json-schema-display/displays/number-display.d.ts +13 -0
  126. package/dist/types/components/json-schema-display/displays/object-display.d.ts +13 -0
  127. package/dist/types/components/json-schema-display/displays/string-display.d.ts +14 -0
  128. package/dist/types/components/json-schema-display/index.d.ts +14 -0
  129. package/dist/types/components/json-schema-display/json-schema-display.d.ts +25 -0
  130. package/dist/types/components/json-schema-display/mismatch.d.ts +14 -0
  131. package/dist/types/components/json-structure/controls/control-utils.d.ts +19 -0
  132. package/dist/types/components/json-structure/controls/index.d.ts +1 -0
  133. package/dist/types/components/lexical/bare-editor.d.ts +29 -0
  134. package/dist/types/components/lexical/code/index.d.ts +1 -0
  135. package/dist/types/components/lexical/code/language-selector.d.ts +13 -0
  136. package/dist/types/components/lexical/contextual-editor.d.ts +22 -0
  137. package/dist/types/components/lexical/docked-editor.d.ts +23 -0
  138. package/dist/types/components/lexical/floating/block-handle.d.ts +16 -0
  139. package/dist/types/components/lexical/floating/floating-toolbar.d.ts +12 -0
  140. package/dist/types/components/lexical/floating/index.d.ts +6 -0
  141. package/dist/types/components/lexical/floating/slash-command-palette.d.ts +20 -0
  142. package/dist/types/components/lexical/index.d.ts +8 -0
  143. package/dist/types/components/lexical/lexical-editor-input.d.ts +30 -0
  144. package/dist/types/components/lexical/table/index.d.ts +1 -0
  145. package/dist/types/components/lexical/table/table-controls.d.ts +12 -0
  146. package/dist/types/components/lexical/toolbar/index.d.ts +6 -0
  147. package/dist/types/components/lexical/toolbar/lexical-toolbar.d.ts +12 -0
  148. package/dist/types/components/lexical/toolbar/toolbar-button.d.ts +1 -0
  149. package/dist/types/components/lexical/toolbar/toolbar-group.d.ts +1 -0
  150. package/dist/types/components/lexical/toolbar/toolbar-helpers.d.ts +30 -0
  151. package/dist/types/components/prosemirror/etoolbar-button.d.ts +1 -11
  152. package/dist/types/components/prosemirror/etoolbar-group.d.ts +1 -4
  153. package/dist/types/json-schema-display/index.d.ts +1 -0
  154. package/dist/types/lexical/commands/index.d.ts +17 -0
  155. package/dist/types/lexical/headless.d.ts +39 -0
  156. package/dist/types/lexical/horizontal-rule-node.d.ts +20 -0
  157. package/dist/types/lexical/index.d.ts +20 -0
  158. package/dist/types/lexical/lazy-loader.d.ts +35 -0
  159. package/dist/types/lexical/nodes.d.ts +29 -0
  160. package/dist/types/lexical/plugins/auto-link.d.ts +7 -0
  161. package/dist/types/lexical/plugins/clipboard.d.ts +11 -0
  162. package/dist/types/lexical/plugins/code-shiki.d.ts +11 -0
  163. package/dist/types/lexical/plugins/code.d.ts +7 -0
  164. package/dist/types/lexical/plugins/dragon.d.ts +6 -0
  165. package/dist/types/lexical/plugins/file-io.d.ts +10 -0
  166. package/dist/types/lexical/plugins/hashtag.d.ts +7 -0
  167. package/dist/types/lexical/plugins/history.d.ts +7 -0
  168. package/dist/types/lexical/plugins/horizontal-rule.d.ts +12 -0
  169. package/dist/types/lexical/plugins/html-io.d.ts +9 -0
  170. package/dist/types/lexical/plugins/index.d.ts +24 -0
  171. package/dist/types/lexical/plugins/link.d.ts +6 -0
  172. package/dist/types/lexical/plugins/list.d.ts +6 -0
  173. package/dist/types/lexical/plugins/mark.d.ts +15 -0
  174. package/dist/types/lexical/plugins/markdown-io.d.ts +13 -0
  175. package/dist/types/lexical/plugins/offset.d.ts +6 -0
  176. package/dist/types/lexical/plugins/overflow.d.ts +7 -0
  177. package/dist/types/lexical/plugins/plain-text.d.ts +6 -0
  178. package/dist/types/lexical/plugins/rich-text.d.ts +6 -0
  179. package/dist/types/lexical/plugins/selection.d.ts +6 -0
  180. package/dist/types/lexical/plugins/slash-commands.d.ts +26 -0
  181. package/dist/types/lexical/plugins/table.d.ts +11 -0
  182. package/dist/types/lexical/plugins/text.d.ts +13 -0
  183. package/dist/types/lexical/plugins/yjs.d.ts +9 -0
  184. package/dist/types/lexical/styles-url.d.ts +2 -0
  185. package/dist/types/lexical/styles.d.ts +2 -0
  186. package/dist/types/lexical/types.d.ts +634 -0
  187. package/dist/types/lexical-i18n/default.d.ts +92 -0
  188. package/dist/types/lexical-i18n/index.d.ts +21 -0
  189. package/dist/types/lexical-i18n/locales/ar.d.ts +91 -0
  190. package/dist/types/lexical-i18n/locales/de.d.ts +91 -0
  191. package/dist/types/lexical-i18n/locales/en.d.ts +91 -0
  192. package/dist/types/lexical-i18n/locales/es.d.ts +91 -0
  193. package/dist/types/lexical-i18n/locales/fa.d.ts +91 -0
  194. package/dist/types/lexical-i18n/locales/fr.d.ts +91 -0
  195. package/dist/types/lexical-i18n/locales/he.d.ts +91 -0
  196. package/dist/types/lexical-i18n/locales/hi.d.ts +91 -0
  197. package/dist/types/lexical-i18n/locales/it.d.ts +91 -0
  198. package/dist/types/lexical-i18n/locales/ja.d.ts +91 -0
  199. package/dist/types/lexical-i18n/locales/ko.d.ts +91 -0
  200. package/dist/types/lexical-i18n/locales/nl.d.ts +91 -0
  201. package/dist/types/lexical-i18n/locales/pl.d.ts +91 -0
  202. package/dist/types/lexical-i18n/locales/pt.d.ts +91 -0
  203. package/dist/types/lexical-i18n/locales/ru.d.ts +91 -0
  204. package/dist/types/lexical-i18n/locales/tr.d.ts +91 -0
  205. package/dist/types/lexical-i18n/locales/ur.d.ts +91 -0
  206. package/dist/types/lexical-i18n/locales/vi.d.ts +91 -0
  207. package/dist/types/lexical-i18n/locales/zh.d.ts +91 -0
  208. package/dist/types/lexical-i18n/translations.d.ts +21 -0
  209. package/dist/{ur-DbEqQgS6.js → ur-B69X-xNs.js} +1 -1
  210. package/dist/{ur-BbnYJ3HS.cjs → ur-DyUSmIbo.cjs} +1 -1
  211. package/dist/use-animated-toggle-ChycsEoj.js +175 -0
  212. package/dist/use-animated-toggle-DR6CyMac.cjs +1 -0
  213. package/dist/use-form-B56E_x5Y.js +859 -0
  214. package/dist/use-form-Cnp3XQ5X.cjs +2 -0
  215. package/dist/utils-DEbsp9Q9.js +129 -0
  216. package/dist/utils-DIUEhA-Z.cjs +1 -0
  217. package/dist/{vi-CpZUeuSj.js → vi-BdzxA60L.js} +1 -1
  218. package/dist/{vi-ByBwvGQY.cjs → vi-CBmPaHxg.cjs} +1 -1
  219. package/dist/widget-customization-Dk7XcVly.cjs +1 -0
  220. package/dist/widget-customization-Ds9sicAg.js +1073 -0
  221. package/dist/{zh-DnxK0ieB.cjs → zh-Cb1b8uik.cjs} +1 -1
  222. package/dist/{zh-DJyhKO0I.js → zh-Dn1UJiZa.js} +1 -1
  223. package/package.json +59 -8
  224. package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
  225. package/dist/_commonjsHelpers-DwGv2jUC.cjs +0 -1
  226. package/dist/deep-merge-CBIkQM4E.cjs +0 -1
  227. package/dist/duration-input-DHWhQJnn.cjs +0 -1
  228. package/dist/modal-CSHIhHvI.js +0 -654
  229. package/dist/modal-cc8Ehngz.cjs +0 -1
  230. package/dist/notice-C_BWqu2K.cjs +0 -1
  231. package/dist/toolbar-D5FcnRju.cjs +0 -1
  232. package/dist/translations-0tLX4x7M.js +0 -866
  233. package/dist/translations-WPN3ibDg.cjs +0 -1
  234. package/dist/use-form-D4JFOcjo.cjs +0 -2
  235. package/dist/use-form-D4rqJkvG.js +0 -1731
  236. package/dist/widget-customization-BSjJz3_Y.js +0 -1195
  237. package/dist/widget-customization-CrFVrt4V.cjs +0 -1
@@ -0,0 +1,488 @@
1
+ import { WithElement as q, OnDispose as W, WithBrowserCtx as z, Value as j, render as R, html as E, dataAttr as F, attr as f, computedOf as A, prop as U, aria as B, on as H, When as O, Use as _, Fragment as K, coalesce as S } from "@tempots/dom";
2
+ import { u as G } from "./use-animated-toggle-ChycsEoj.js";
3
+ import { g as J } from "./timer-Rd2sKnvH.js";
4
+ import { s as N } from "./session-id-3KiilioY.js";
5
+ import { B as P } from "./translations-Cq8bUKJP.js";
6
+ import { C as Q } from "./use-form-B56E_x5Y.js";
7
+ import { B as D } from "./input-container-DiCjOzR2.js";
8
+ const X = [
9
+ "a[href]",
10
+ "button:not([disabled])",
11
+ "input:not([disabled])",
12
+ "select:not([disabled])",
13
+ "textarea:not([disabled])",
14
+ '[tabindex]:not([tabindex="-1"])',
15
+ '[contenteditable="true"]',
16
+ "audio[controls]",
17
+ "video[controls]",
18
+ "details > summary:first-of-type",
19
+ "details[open]"
20
+ ].join(", ");
21
+ function Y(c) {
22
+ return Array.from(c.querySelectorAll(X)).filter(
23
+ (e) => {
24
+ const s = e;
25
+ return s.offsetWidth > 0 && s.offsetHeight > 0 && !s.hasAttribute("inert") && window.getComputedStyle(s).visibility !== "hidden";
26
+ }
27
+ );
28
+ }
29
+ function $(c = {}) {
30
+ const {
31
+ active: e = !0,
32
+ escapeDeactivates: s = !0,
33
+ onEscape: t,
34
+ initialFocus: n,
35
+ returnFocus: r,
36
+ clickOutsideDeactivates: l = !1,
37
+ onClickOutside: u
38
+ } = c;
39
+ return q((g) => {
40
+ let h = e, m = null, i = [], b = null, p = null, d = null;
41
+ typeof document < "u" && (m = document.activeElement);
42
+ const y = () => {
43
+ i = Y(g);
44
+ }, x = (a) => {
45
+ if (h) {
46
+ if (s && a.key === "Escape") {
47
+ a.preventDefault(), t?.();
48
+ return;
49
+ }
50
+ if (a.key === "Tab") {
51
+ if (y(), i.length === 0) {
52
+ a.preventDefault();
53
+ return;
54
+ }
55
+ const o = i.indexOf(
56
+ document.activeElement
57
+ );
58
+ a.shiftKey ? o <= 0 && (a.preventDefault(), i[i.length - 1]?.focus()) : o >= i.length - 1 && (a.preventDefault(), i[0]?.focus());
59
+ }
60
+ }
61
+ }, v = (a) => {
62
+ if (!h || !l) return;
63
+ const o = a.target;
64
+ g.contains(o) || u?.();
65
+ }, k = () => {
66
+ if (!h) return;
67
+ y();
68
+ let a = null;
69
+ typeof n == "function" ? a = n() : n ? a = n : i.length > 0 && (a = i[0]), a && (p = setTimeout(() => {
70
+ p = null, a?.focus();
71
+ }, 50)), document.addEventListener("keydown", x, !0), l && document.addEventListener("click", v, !0);
72
+ }, w = () => {
73
+ h = !1, document.removeEventListener("keydown", x, !0), document.removeEventListener("click", v, !0);
74
+ let a = null;
75
+ typeof r == "function" ? a = r() : r ? a = r : m && (a = m), a && document.body.contains(a) && (d = setTimeout(() => {
76
+ d = null, a?.focus();
77
+ }, 0));
78
+ };
79
+ return b = setTimeout(() => {
80
+ b = null, k();
81
+ }, 0), W(() => {
82
+ b != null && clearTimeout(b), p != null && clearTimeout(p), d != null && clearTimeout(d), w();
83
+ });
84
+ });
85
+ }
86
+ function de(c = {}) {
87
+ return {
88
+ activate: () => $({ ...c, active: !0 }),
89
+ deactivate: () => $({ ...c, active: !1 })
90
+ };
91
+ }
92
+ function Z(c) {
93
+ return {
94
+ "~standard": {
95
+ version: 1,
96
+ vendor: "beatui-custom",
97
+ validate: (s) => {
98
+ const t = c.validate(s);
99
+ return t.success ? { value: t.data } : {
100
+ issues: t.errors.map((n) => ({
101
+ message: n.message,
102
+ path: n.path
103
+ }))
104
+ };
105
+ },
106
+ types: void 0
107
+ },
108
+ safeParse: (s) => {
109
+ const t = c.validate(s);
110
+ return t.success ? { success: !0, data: t.data } : {
111
+ success: !1,
112
+ error: {
113
+ errors: t.errors.map((n) => ({
114
+ message: n.message,
115
+ path: n.path?.map(
116
+ (r) => typeof r == "object" && "key" in r ? r.key.toString() : r.toString()
117
+ ) || []
118
+ }))
119
+ }
120
+ };
121
+ }
122
+ };
123
+ }
124
+ class T {
125
+ optional() {
126
+ return new ee(this);
127
+ }
128
+ default(e) {
129
+ return new te(this, e);
130
+ }
131
+ schema() {
132
+ return Z(this);
133
+ }
134
+ }
135
+ class C extends T {
136
+ minLength;
137
+ maxLength;
138
+ pattern;
139
+ customValidations = [];
140
+ validate(e) {
141
+ if (typeof e != "string")
142
+ return { success: !1, errors: [{ message: "Expected string" }] };
143
+ const s = [];
144
+ this.minLength !== void 0 && e.length < this.minLength && s.push({ message: `Must be at least ${this.minLength} characters` }), this.maxLength !== void 0 && e.length > this.maxLength && s.push({ message: `Must be at most ${this.maxLength} characters` }), this.pattern && !this.pattern.test(e) && s.push({ message: "Invalid format" });
145
+ for (const t of this.customValidations) {
146
+ const n = t(e);
147
+ n && s.push({ message: n });
148
+ }
149
+ return s.length > 0 ? { success: !1, errors: s } : { success: !0, data: e };
150
+ }
151
+ min(e, s) {
152
+ const t = new C();
153
+ return t.minLength = e, t.maxLength = this.maxLength, t.pattern = this.pattern, t.customValidations = [...this.customValidations], s && t.customValidations.push(
154
+ (n) => n.length < e ? s : null
155
+ ), t;
156
+ }
157
+ max(e, s) {
158
+ const t = new C();
159
+ return t.minLength = this.minLength, t.maxLength = e, t.pattern = this.pattern, t.customValidations = [...this.customValidations], s && t.customValidations.push(
160
+ (n) => n.length > e ? s : null
161
+ ), t;
162
+ }
163
+ regex(e, s) {
164
+ const t = new C();
165
+ return t.minLength = this.minLength, t.maxLength = this.maxLength, t.pattern = e, t.customValidations = [...this.customValidations], s && t.customValidations.push(
166
+ (n) => e.test(n) ? null : s
167
+ ), t;
168
+ }
169
+ email(e = "Please enter a valid email address") {
170
+ const s = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, t = new C();
171
+ return t.minLength = this.minLength, t.maxLength = this.maxLength, t.pattern = this.pattern, t.customValidations = [
172
+ ...this.customValidations,
173
+ (n) => s.test(n) ? null : e
174
+ ], t;
175
+ }
176
+ refine(e) {
177
+ const s = new C();
178
+ return s.minLength = this.minLength, s.maxLength = this.maxLength, s.pattern = this.pattern, s.customValidations = [...this.customValidations, e], s;
179
+ }
180
+ }
181
+ class V extends T {
182
+ mustBeTrue = !1;
183
+ trueMessage;
184
+ validate(e) {
185
+ return typeof e != "boolean" ? { success: !1, errors: [{ message: "Expected boolean" }] } : this.mustBeTrue && e !== !0 ? {
186
+ success: !1,
187
+ errors: [{ message: this.trueMessage || "Must be true" }]
188
+ } : { success: !0, data: e };
189
+ }
190
+ refine(e, s) {
191
+ const t = new V();
192
+ t.mustBeTrue = this.mustBeTrue, t.trueMessage = this.trueMessage;
193
+ const n = t.validate.bind(t);
194
+ return t.validate = (r) => {
195
+ const l = n(r);
196
+ return l.success ? e(l.data) ? l : { success: !1, errors: [{ message: s }] } : l;
197
+ }, t;
198
+ }
199
+ literal(e, s) {
200
+ const t = new V();
201
+ return t.mustBeTrue = !0, t.trueMessage = s, t;
202
+ }
203
+ }
204
+ class ee extends T {
205
+ constructor(e) {
206
+ super(), this.inner = e;
207
+ }
208
+ validate(e) {
209
+ if (e === void 0)
210
+ return { success: !0, data: void 0 };
211
+ const s = this.inner.validate(e);
212
+ return s.success ? { success: !0, data: s.data } : { success: !1, errors: s.errors };
213
+ }
214
+ }
215
+ class te extends T {
216
+ constructor(e, s) {
217
+ super(), this.inner = e, this.defaultValue = s;
218
+ }
219
+ validate(e) {
220
+ return e === void 0 ? { success: !0, data: this.defaultValue } : this.inner.validate(e);
221
+ }
222
+ }
223
+ class I extends T {
224
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
225
+ constructor(e) {
226
+ super(), this.shape = e;
227
+ }
228
+ validate(e) {
229
+ if (typeof e != "object" || e === null || Array.isArray(e))
230
+ return { success: !1, errors: [{ message: "Expected object" }] };
231
+ const s = e, t = {}, n = [];
232
+ for (const [r, l] of Object.entries(this.shape)) {
233
+ const u = l.validate(s[r]);
234
+ if (u.success)
235
+ t[r] = u.data;
236
+ else
237
+ for (const g of u.errors)
238
+ n.push({
239
+ message: g.message,
240
+ path: [r, ...g.path || []]
241
+ });
242
+ }
243
+ return n.length > 0 ? { success: !1, errors: n } : { success: !0, data: t };
244
+ }
245
+ refine(e, s) {
246
+ const t = new I(this.shape), n = t.validate.bind(t);
247
+ return t.validate = (r) => {
248
+ const l = n(r);
249
+ if (!l.success) return l;
250
+ const u = e(l.data);
251
+ return u ? {
252
+ success: !1,
253
+ errors: [
254
+ {
255
+ message: u,
256
+ path: s?.path
257
+ }
258
+ ]
259
+ } : { success: !0, data: l.data };
260
+ }, t;
261
+ }
262
+ }
263
+ const me = () => new C(), fe = () => new V(), he = (c) => new I(c);
264
+ function se(c) {
265
+ return z((e) => {
266
+ const s = [], t = () => s.forEach((r) => r());
267
+ return c(({
268
+ effect: r = "opaque",
269
+ mode: l = "capturing",
270
+ onClickOutside: u,
271
+ onEscape: g,
272
+ content: h,
273
+ container: m = "body"
274
+ }) => {
275
+ m === "body" && (e = e.makePortal("body"));
276
+ const i = G();
277
+ i.listenOnClosed(t);
278
+ let b = () => {
279
+ }, p = () => {
280
+ };
281
+ const d = (a) => {
282
+ a.key === "Escape" && (g?.(), i.close());
283
+ }, y = () => {
284
+ u?.(), i.close();
285
+ }, x = (a) => {
286
+ b(), p(), a === "capturing" ? (document.addEventListener("keydown", d), b = () => document.removeEventListener("keydown", d), e.element.addEventListener("mousedown", y), p = () => e.element.removeEventListener("mousedown", y)) : (b = () => {
287
+ }, p = () => {
288
+ });
289
+ }, v = j.on(l, x);
290
+ s.push(v), s.push(() => {
291
+ i.dispose(), b(), p();
292
+ });
293
+ const w = R((() => {
294
+ const a = /* @__PURE__ */ new Set();
295
+ for (const o of e.element.querySelectorAll(
296
+ ":scope > :not([data-overlay])"
297
+ ))
298
+ o.hasAttribute("inert") ? a.add(o) : o.setAttribute("inert", "");
299
+ return s.push(() => {
300
+ for (const o of e.element.querySelectorAll(
301
+ ":scope > :not([data-overlay])"
302
+ ))
303
+ a.has(o) || o.removeAttribute("inert");
304
+ a.clear();
305
+ }), document.activeElement?.blur?.(), E.div(
306
+ q((o) => i.setElement(o)),
307
+ F.status(i.status.map(String)),
308
+ F.overlay("true"),
309
+ f.class(
310
+ A(
311
+ r ?? "opaque",
312
+ l
313
+ )(
314
+ (o, L) => `bc-overlay bc-overlay--effect-${o} bc-overlay--mode-${L}`
315
+ )
316
+ ),
317
+ h
318
+ );
319
+ })(), e.element, {
320
+ disposeWithParent: !0,
321
+ clear: !1,
322
+ providers: e.providers
323
+ });
324
+ s.push(w), J(() => i.open());
325
+ }, t);
326
+ });
327
+ }
328
+ function ne(c, e) {
329
+ const {
330
+ size: s = "md",
331
+ dismissable: t = !0,
332
+ showCloseButton: n = !0,
333
+ onClose: r,
334
+ overlayEffect: l = "opaque",
335
+ container: u = "body",
336
+ position: g = "center"
337
+ } = c;
338
+ return se((h, m) => {
339
+ let i = () => {
340
+ };
341
+ return e((d) => {
342
+ i = m;
343
+ const y = U("capturing");
344
+ j.on(t, (o) => {
345
+ y.set(o ? "capturing" : "non-capturing");
346
+ });
347
+ const x = A(
348
+ d.header != null,
349
+ n
350
+ )((o, L) => o || L), v = N("modal"), k = `${v}-header`, w = `${v}-body`, a = E.div(
351
+ f.class(
352
+ A(
353
+ s,
354
+ g
355
+ )(
356
+ (o, L) => `bc-modal bc-modal--size-${o} bc-modal--container-${u} bc-modal--position-${L}`
357
+ )
358
+ ),
359
+ // Essential ARIA attributes for modal dialog
360
+ f.role("dialog"),
361
+ B.modal(!0),
362
+ ...d.header ? [B.labelledby(k)] : [],
363
+ B.describedby(w),
364
+ f.tabindex(-1),
365
+ // Make modal focusable for initial focus
366
+ f.id(v),
367
+ F.focusTrap("true"),
368
+ // Mark as focus trap container
369
+ H.mousedown((o) => o.stopPropagation()),
370
+ // Prevent overlay click-outside when clicking modal content
371
+ // Focus trap implementation
372
+ $({
373
+ escapeDeactivates: !1,
374
+ // Let Overlay handle escape key
375
+ initialFocus: () => {
376
+ const o = document.getElementById(v);
377
+ if (!o) return null;
378
+ const L = o.querySelector(
379
+ '[aria-label="Close modal"]'
380
+ );
381
+ if (L) return L;
382
+ const M = o.querySelector(
383
+ 'button, input, select, textarea, [tabindex]:not([tabindex="-1"])'
384
+ );
385
+ return M || o;
386
+ }
387
+ }),
388
+ // Modal content container
389
+ E.div(
390
+ f.class("bc-modal__content"),
391
+ // Header section
392
+ O(
393
+ x,
394
+ () => E.div(
395
+ f.class("bc-modal__header"),
396
+ E.div(
397
+ f.class("bc-modal__title"),
398
+ ...d.header ? [f.id(k)] : [],
399
+ d.header
400
+ ),
401
+ O(
402
+ n,
403
+ () => _(
404
+ P,
405
+ (o) => Q({
406
+ size: "sm",
407
+ label: o.$.closeModal,
408
+ onClick: () => {
409
+ i(), m();
410
+ }
411
+ })
412
+ )
413
+ )
414
+ )
415
+ ),
416
+ // Body section
417
+ E.div(f.class("bc-modal__body"), f.id(w), d.body),
418
+ // Footer section
419
+ d.footer && E.div(f.class("bc-modal__footer"), d.footer)
420
+ )
421
+ );
422
+ h({
423
+ mode: y,
424
+ effect: l ?? "opaque",
425
+ container: u,
426
+ content: a,
427
+ onClickOutside: () => {
428
+ r?.(), m();
429
+ },
430
+ onEscape: () => {
431
+ r?.(), m();
432
+ }
433
+ });
434
+ }, () => {
435
+ i(), m();
436
+ });
437
+ });
438
+ }
439
+ function pe(c, e) {
440
+ const { confirmText: s, cancelText: t, onConfirm: n, onCancel: r, ...l } = c;
441
+ return _(
442
+ P,
443
+ (u) => ne({ showCloseButton: !1, ...l }, (g, h) => {
444
+ const m = () => {
445
+ n?.(), h();
446
+ }, i = () => {
447
+ r?.(), h();
448
+ };
449
+ return e((p) => {
450
+ g({
451
+ body: p,
452
+ footer: K(
453
+ f.class("bc-modal__actions"),
454
+ D(
455
+ {
456
+ variant: "outline",
457
+ onClick: i
458
+ },
459
+ S(t, u.$.cancel)
460
+ ),
461
+ D(
462
+ {
463
+ color: "primary",
464
+ variant: "filled",
465
+ onClick: m
466
+ },
467
+ S(s, u.$.confirm)
468
+ )
469
+ )
470
+ });
471
+ }, h);
472
+ })
473
+ );
474
+ }
475
+ export {
476
+ V as B,
477
+ pe as C,
478
+ $ as F,
479
+ ne as M,
480
+ se as O,
481
+ C as S,
482
+ I as a,
483
+ fe as b,
484
+ Z as c,
485
+ he as o,
486
+ me as s,
487
+ de as u
488
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./translations-WPN3ibDg.cjs"),a={loadingExtended:"Laden, even geduld",loadingShort:"Laden...",locale:"Landinstelling",iconDescription:"Pictogram",loadingIcon:"Laadpictogram",failedToLoadIcon:"Pictogram laden mislukt",editLabel:"Bewerken",selectOne:"Selecteer een",selectNone:"Geen",selectMany:"Selecteer meerdere",noResults:"Geen resultaten",passwordPlaceholderText:"Geheim wachtwoord",togglePasswordVisibility:"Wachtwoord zichtbaarheid wisselen",toggleMenu:"Menu wisselen",toggleAside:"Zijpaneel wisselen",mainNavigation:"Hoofdnavigatie",sidebar:"Zijbalk",closeDrawer:"Lade sluiten",closeModal:"Modaal sluiten",confirm:"Bevestigen",cancel:"Annuleren",addLabel:"Toevoegen",removeItem:"Item verwijderen",currentLocale:"Nederlands",ar:"Arabisch",de:"Duits",en:"Engels",es:"Spaans",fr:"Frans",hi:"Hindi",it:"Italiaans",ja:"Japans",ko:"Koreaans",nl:"Nederlands",pl:"Pools",pt:"Portugees",ru:"Russisch",tr:"Turks",vi:"Vietnamees",zh:"Chinees",he:"Hebreeuws",fa:"Perzisch",ur:"Urdu",emailPlaceholderText:"Voer je e-mail in",incrementValue:"Waarde verhogen",decrementValue:"Waarde verlagen",dropZoneInstructions:e=>e?"Klik om te kiezen of sleep bestanden hierheen, of druk op Enter of Spatie om bestandskiezer te openen":"Sleep bestanden hierheen",fileSizeUnits:["Bytes","KB","MB","GB","TB"],removeFile:"Bestand verwijderen",clearAllFiles:"Alle bestanden wissen",clearValue:"Waarde wissen",unknownType:"Onbekend type",filesInputInstructions:(e,n,l)=>{let t=e==null||e>1?"Klik om te kiezen of sleep bestanden hierheen":"Klik om te kiezen of sleep een bestand hierheen";if(e||n){const i=[];if(e!=null&&e>1&&i.push(`tot ${e} bestanden`),n&&l){const o=r.formatFileSize(n,{units:l});i.push(`max ${o} elk`)}i.length>0&&(t+=` (${i.join(", ")})`)}return t},prosemirror:{bold:"Bold",italic:"Italic",code:"Code",link:"Link",removeLink:"Remove Link",heading:e=>`Heading ${e}`,bulletList:"Bullet List",orderedList:"Ordered List",blockquote:"Blockquote",codeBlock:"Code Block",horizontalRule:"Horizontal Rule",linkUrlPlaceholder:"https://example.com"},pdfPageViewer:{loading:"PDF laden...",loadFailed:"PDF laden mislukt",invalidPdf:"Ongeldig PDF-bestand",pageOutOfRange:(e,n)=>`Pagina ${e} valt buiten bereik (1-${n})`,renderFailed:"PDF-pagina weergeven mislukt"}};exports.default=a;exports.nl=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./translations-B4-Zd2LM.cjs"),a={loadingExtended:"Laden, even geduld",loadingShort:"Laden...",locale:"Landinstelling",iconDescription:"Pictogram",loadingIcon:"Laadpictogram",failedToLoadIcon:"Pictogram laden mislukt",editLabel:"Bewerken",selectOne:"Selecteer een",selectNone:"Geen",selectMany:"Selecteer meerdere",noResults:"Geen resultaten",passwordPlaceholderText:"Geheim wachtwoord",togglePasswordVisibility:"Wachtwoord zichtbaarheid wisselen",toggleMenu:"Menu wisselen",toggleAside:"Zijpaneel wisselen",mainNavigation:"Hoofdnavigatie",sidebar:"Zijbalk",closeDrawer:"Lade sluiten",closeModal:"Modaal sluiten",confirm:"Bevestigen",cancel:"Annuleren",addLabel:"Toevoegen",removeItem:"Item verwijderen",currentLocale:"Nederlands",ar:"Arabisch",de:"Duits",en:"Engels",es:"Spaans",fr:"Frans",hi:"Hindi",it:"Italiaans",ja:"Japans",ko:"Koreaans",nl:"Nederlands",pl:"Pools",pt:"Portugees",ru:"Russisch",tr:"Turks",vi:"Vietnamees",zh:"Chinees",he:"Hebreeuws",fa:"Perzisch",ur:"Urdu",emailPlaceholderText:"Voer je e-mail in",incrementValue:"Waarde verhogen",decrementValue:"Waarde verlagen",dropZoneInstructions:e=>e?"Klik om te kiezen of sleep bestanden hierheen, of druk op Enter of Spatie om bestandskiezer te openen":"Sleep bestanden hierheen",fileSizeUnits:["Bytes","KB","MB","GB","TB"],removeFile:"Bestand verwijderen",clearAllFiles:"Alle bestanden wissen",clearValue:"Waarde wissen",unknownType:"Onbekend type",filesInputInstructions:(e,n,l)=>{let t=e==null||e>1?"Klik om te kiezen of sleep bestanden hierheen":"Klik om te kiezen of sleep een bestand hierheen";if(e||n){const i=[];if(e!=null&&e>1&&i.push(`tot ${e} bestanden`),n&&l){const o=r.formatFileSize(n,{units:l});i.push(`max ${o} elk`)}i.length>0&&(t+=` (${i.join(", ")})`)}return t},prosemirror:{bold:"Bold",italic:"Italic",code:"Code",link:"Link",removeLink:"Remove Link",heading:e=>`Heading ${e}`,bulletList:"Bullet List",orderedList:"Ordered List",blockquote:"Blockquote",codeBlock:"Code Block",horizontalRule:"Horizontal Rule",linkUrlPlaceholder:"https://example.com"},pdfPageViewer:{loading:"PDF laden...",loadFailed:"PDF laden mislukt",invalidPdf:"Ongeldig PDF-bestand",pageOutOfRange:(e,n)=>`Pagina ${e} valt buiten bereik (1-${n})`,renderFailed:"PDF-pagina weergeven mislukt"}};exports.default=a;exports.nl=a;
@@ -1,4 +1,4 @@
1
- import { f as o } from "./translations-0tLX4x7M.js";
1
+ import { f as o } from "./translations-Cq8bUKJP.js";
2
2
  const s = {
3
3
  loadingExtended: "Laden, even geduld",
4
4
  loadingShort: "Laden...",