@tempots/beatui 1.4.0 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (216) hide show
  1. package/dist/ar-Wr6gMs-M.cjs +1 -0
  2. package/dist/{ar-C-kUt6f9.js → ar-fdUqbCvM.js} +154 -1
  3. package/dist/auth/index.cjs.js +1 -1
  4. package/dist/auth/index.es.js +1 -1
  5. package/dist/auth-divider-DewHpITQ.cjs +1 -0
  6. package/dist/{auth-divider-D_3gKZ6g.js → auth-divider-qnJuYK-x.js} +7 -7
  7. package/dist/beatui.css +2107 -171
  8. package/dist/beatui.tailwind.css +2107 -171
  9. package/dist/better-auth/index.cjs.js +1 -1
  10. package/dist/better-auth/index.es.js +5 -5
  11. package/dist/{modal-YKqlh4Dk.js → custom-validation-BetUqAEz.js} +186 -186
  12. package/dist/custom-validation-CLscGHY4.cjs +1 -0
  13. package/dist/{de-CP0kbElb.js → de-C5-k5Eov.js} +156 -3
  14. package/dist/de-DZqdSEta.cjs +1 -0
  15. package/dist/deep-merge-D90SW1Ci.cjs +1 -0
  16. package/dist/deep-merge-ZVigk5Qf.js +1765 -0
  17. package/dist/{duration-input-BrYLC1js.cjs → duration-input-4AQnQpyo.cjs} +1 -1
  18. package/dist/{duration-input-CFu6vq-y.js → duration-input-GMBmT1BE.js} +4 -4
  19. package/dist/{editor-toolbar-group-QVdBUbB8.cjs → editor-toolbar-group-C_ft_T8D.cjs} +1 -1
  20. package/dist/{editor-toolbar-group-DWUWUO-B.js → editor-toolbar-group-FpOHrmtx.js} +2 -2
  21. package/dist/es-CJgYfRap.cjs +1 -0
  22. package/dist/{es-BtIkcnsw.js → es-h6jmoF4X.js} +156 -3
  23. package/dist/fa-BQ5PzwNY.cjs +1 -0
  24. package/dist/{fa-11-rZmQ-.js → fa-BuxK837l.js} +154 -1
  25. package/dist/fr-Bv3TG44U.cjs +1 -0
  26. package/dist/{fr-C-L2F8w2.js → fr-BwILQ9G2.js} +165 -12
  27. package/dist/he-5LbvgMCC.cjs +1 -0
  28. package/dist/{he-Bu1xGoQ9.js → he-yC9Sc7JD.js} +154 -1
  29. package/dist/{hi-CewH-MAH.js → hi-Da7rcCpP.js} +154 -1
  30. package/dist/hi-YWhWcG_L.cjs +1 -0
  31. package/dist/{index-BGKz2Nol.js → index-DI8bf9oC.js} +175 -172
  32. package/dist/index-DeUj-5ph.cjs +1 -0
  33. package/dist/index.cjs.js +4 -4
  34. package/dist/index.es.js +11806 -8105
  35. package/dist/{input-container-CO3DNqpp.js → input-container-8JFB11xN.js} +1 -1
  36. package/dist/{input-container-BkPcNDaZ.cjs → input-container-CyOgiiQD.cjs} +1 -1
  37. package/dist/it-BxOIJE45.cjs +1 -0
  38. package/dist/{it-5hiKQO_p.js → it-Yeklau78.js} +156 -3
  39. package/dist/ja-CNhjK06P.cjs +1 -0
  40. package/dist/{ja-CGfEmZrm.js → ja-Dxj9Q5Yd.js} +155 -2
  41. package/dist/json-schema/index.cjs.js +1 -1
  42. package/dist/json-schema/index.es.js +110 -110
  43. package/dist/json-schema-display/index.cjs.js +1 -1
  44. package/dist/json-schema-display/index.es.js +1 -1
  45. package/dist/json-structure/index.cjs.js +1 -1
  46. package/dist/json-structure/index.es.js +5 -5
  47. package/dist/ko-DgkqcXTs.cjs +1 -0
  48. package/dist/{ko-DZthvREd.js → ko-gn_MsegK.js} +154 -1
  49. package/dist/lexical/index.cjs.js +1 -1
  50. package/dist/lexical/index.es.js +4 -4
  51. package/dist/nl-Dy9lmbBO.cjs +1 -0
  52. package/dist/{nl-CcKyHlQ7.js → nl-vHNFtXXb.js} +162 -9
  53. package/dist/{notice-Du3tWJTW.js → notice-B6ojfenv.js} +4 -4
  54. package/dist/{notice-Q0A1gIho.cjs → notice-p2IqXS5-.cjs} +1 -1
  55. package/dist/{oneof-branch-detection-DSzC0PkO.js → oneof-branch-detection-Q_jxvJIA.js} +1 -1
  56. package/dist/{oneof-branch-detection-BEkAezNi.cjs → oneof-branch-detection-xDDDdYRk.cjs} +1 -1
  57. package/dist/pl-BtYbtsmG.cjs +1 -0
  58. package/dist/{pl-Mwtjp4MV.js → pl-C0UdHla0.js} +184 -31
  59. package/dist/prosemirror/index.cjs.js +1 -1
  60. package/dist/prosemirror/index.es.js +4 -4
  61. package/dist/pt-CtNmqQ1X.cjs +1 -0
  62. package/dist/{pt-BaTsY-8f.js → pt-DGKtfN0d.js} +156 -3
  63. package/dist/ru-BaL_NPRU.cjs +1 -0
  64. package/dist/{ru-CvbGmz5s.js → ru-CpXYLt-v.js} +154 -1
  65. package/dist/tailwind/preset.cjs.js +1 -1
  66. package/dist/tailwind/preset.es.js +1 -1
  67. package/dist/tailwind/vite-plugin.cjs.js +1 -1
  68. package/dist/tailwind/vite-plugin.es.js +1 -1
  69. package/dist/{text-input-D_IxFd0M.cjs → text-input-DS5zlXb2.cjs} +1 -1
  70. package/dist/{text-input-BAn02BzO.js → text-input-NJypZSnE.js} +1 -1
  71. package/dist/{toolbar-CnecqhaU.cjs → toolbar-BBwfe8U9.cjs} +1 -1
  72. package/dist/{toolbar-BKan3NHw.js → toolbar-BF2L6WKC.js} +1 -1
  73. package/dist/{tr-YFqQdZjM.js → tr-DIFZDFW_.js} +156 -3
  74. package/dist/tr-DwOd87oB.cjs +1 -0
  75. package/dist/{translations-CxDUnbXn.js → translations-5cXBrENb.js} +1 -1
  76. package/dist/{translations-DT5QQ4WO.js → translations-BCMP-h52.js} +269 -115
  77. package/dist/{translations-C_-cObaF.cjs → translations-BqWc0ZHz.cjs} +1 -1
  78. package/dist/translations-EwEmHe3v.cjs +1 -0
  79. package/dist/types/beatui-i18n/default.d.ts +109 -0
  80. package/dist/types/beatui-i18n/locales/en.d.ts +109 -0
  81. package/dist/types/beatui-i18n/translations.d.ts +109 -0
  82. package/dist/types/components/button/copy-button.d.ts +42 -0
  83. package/dist/types/components/button/index.d.ts +1 -0
  84. package/dist/types/components/button/toggle-button-group.d.ts +2 -2
  85. package/dist/types/components/button/toggle-button.d.ts +2 -2
  86. package/dist/types/components/data/data-table-context.d.ts +9 -1
  87. package/dist/types/components/data/data-table-row-details.d.ts +21 -0
  88. package/dist/types/components/data/data-table-types.d.ts +23 -0
  89. package/dist/types/components/data/date-picker-shared.d.ts +2 -5
  90. package/dist/types/components/data/date-picker.d.ts +1 -1
  91. package/dist/types/components/data/date-range-picker.d.ts +1 -1
  92. package/dist/types/components/data/index.d.ts +4 -0
  93. package/dist/types/components/data/stat-card.d.ts +108 -0
  94. package/dist/types/components/data/time-picker.d.ts +54 -0
  95. package/dist/types/components/data/virtual-scrolling/index.d.ts +1 -0
  96. package/dist/types/components/data/virtual-scrolling/virtual-list.d.ts +91 -0
  97. package/dist/types/components/form/control/control.d.ts +5 -5
  98. package/dist/types/components/form/control/list-control.d.ts +11 -11
  99. package/dist/types/components/form/fieldset/fieldset.d.ts +60 -0
  100. package/dist/types/components/form/fieldset/index.d.ts +1 -0
  101. package/dist/types/components/form/index.d.ts +1 -0
  102. package/dist/types/components/form/input/checkbox-input.d.ts +1 -1
  103. package/dist/types/components/form/input/color-input.d.ts +1 -1
  104. package/dist/types/components/form/input/color-picker/canvas-draw.d.ts +12 -0
  105. package/dist/types/components/form/input/color-picker/channel-picker.d.ts +71 -0
  106. package/dist/types/components/form/input/color-picker/hex-color-picker.d.ts +20 -0
  107. package/dist/types/components/form/input/color-picker/hsl-color-picker.d.ts +14 -0
  108. package/dist/types/components/form/input/color-picker/hwb-color-picker.d.ts +15 -0
  109. package/dist/types/components/form/input/color-picker/index.d.ts +7 -0
  110. package/dist/types/components/form/input/color-picker/oklch-color-picker.d.ts +15 -0
  111. package/dist/types/components/form/input/color-picker/rgb-color-picker.d.ts +17 -0
  112. package/dist/types/components/form/input/color-swatch-input.d.ts +1 -1
  113. package/dist/types/components/form/input/combobox-input.d.ts +3 -3
  114. package/dist/types/components/form/input/combobox-tags-input.d.ts +1 -1
  115. package/dist/types/components/form/input/date-input.d.ts +1 -1
  116. package/dist/types/components/form/input/date-range-select-base.d.ts +23 -0
  117. package/dist/types/components/form/input/date-range-select.d.ts +64 -0
  118. package/dist/types/components/form/input/date-select.d.ts +52 -0
  119. package/dist/types/components/form/input/date-time-input.d.ts +2 -2
  120. package/dist/types/components/form/input/date-time-select-base.d.ts +23 -0
  121. package/dist/types/components/form/input/date-time-select.d.ts +66 -0
  122. package/dist/types/components/form/input/dropdown-input.d.ts +3 -3
  123. package/dist/types/components/form/input/email-input.d.ts +1 -1
  124. package/dist/types/components/form/input/field-layout.d.ts +64 -0
  125. package/dist/types/components/form/input/{input-wrapper.d.ts → field.d.ts} +23 -14
  126. package/dist/types/components/form/input/index.d.ts +19 -1
  127. package/dist/types/components/form/input/multi-select.d.ts +2 -2
  128. package/dist/types/components/form/input/native-select.d.ts +1 -1
  129. package/dist/types/components/form/input/nullable-date-select.d.ts +55 -0
  130. package/dist/types/components/form/input/nullable-date-time-select.d.ts +68 -0
  131. package/dist/types/components/form/input/nullable-time-select.d.ts +64 -0
  132. package/dist/types/components/form/input/number-input.d.ts +5 -40
  133. package/dist/types/components/form/input/number-stepper.d.ts +53 -0
  134. package/dist/types/components/form/input/open-date-range-select.d.ts +75 -0
  135. package/dist/types/components/form/input/otp-input.d.ts +2 -2
  136. package/dist/types/components/form/input/password-input.d.ts +1 -1
  137. package/dist/types/components/form/input/radio-group.d.ts +1 -1
  138. package/dist/types/components/form/input/range-slider.d.ts +23 -6
  139. package/dist/types/components/form/input/rating-input.d.ts +1 -1
  140. package/dist/types/components/form/input/segmented-input.d.ts +6 -2
  141. package/dist/types/components/form/input/segmented-select.d.ts +84 -0
  142. package/dist/types/components/form/input/select-tags-input.d.ts +1 -1
  143. package/dist/types/components/form/input/slider-input.d.ts +2 -2
  144. package/dist/types/components/form/input/sortable-list.d.ts +68 -0
  145. package/dist/types/components/form/input/switch.d.ts +1 -1
  146. package/dist/types/components/form/input/text-area.d.ts +1 -1
  147. package/dist/types/components/form/input/text-input.d.ts +1 -1
  148. package/dist/types/components/form/input/time-format.d.ts +31 -0
  149. package/dist/types/components/form/input/time-select-base.d.ts +23 -0
  150. package/dist/types/components/form/input/time-select.d.ts +61 -0
  151. package/dist/types/components/form/input/transfer-list.d.ts +56 -0
  152. package/dist/types/components/form/input/tri-state-checkbox-input.d.ts +1 -1
  153. package/dist/types/components/form/input/url-input.d.ts +1 -1
  154. package/dist/types/components/format/format-bigint.d.ts +64 -0
  155. package/dist/types/components/format/format-date-time.d.ts +54 -0
  156. package/dist/types/components/format/format-date.d.ts +82 -0
  157. package/dist/types/components/format/format-display-name.d.ts +70 -0
  158. package/dist/types/components/format/format-file-size.d.ts +30 -0
  159. package/dist/types/components/format/format-list.d.ts +61 -0
  160. package/dist/types/components/format/format-number.d.ts +88 -0
  161. package/dist/types/components/format/format-plural.d.ts +96 -0
  162. package/dist/types/components/format/format-relative-time.d.ts +62 -0
  163. package/dist/types/components/format/format-time.d.ts +66 -0
  164. package/dist/types/components/format/index.d.ts +11 -0
  165. package/dist/types/components/i18n/locale-selector.d.ts +1 -1
  166. package/dist/types/components/json-schema/controls/composition-shared.d.ts +1 -1
  167. package/dist/types/components/json-schema/controls/shared-utils.d.ts +3 -3
  168. package/dist/types/components/json-schema/widgets/string-controls.d.ts +2 -2
  169. package/dist/types/components/json-schema-display/display-wrapper.d.ts +1 -1
  170. package/dist/types/components/layout/nine-slice-scroll-view.d.ts +1 -1
  171. package/dist/types/components/navigation/index.d.ts +1 -0
  172. package/dist/types/components/navigation/stepper.d.ts +102 -0
  173. package/dist/types/components/overlay/index.d.ts +1 -1
  174. package/dist/types/components/overlay/spotlight.d.ts +62 -0
  175. package/dist/types/index.d.ts +1 -0
  176. package/dist/types/utils/index.d.ts +0 -1
  177. package/dist/ur-D9nLchps.cjs +1 -0
  178. package/dist/{ur-CdnwwnG_.js → ur-DBst-TXc.js} +154 -1
  179. package/dist/use-form-Dcra7GeE.cjs +2 -0
  180. package/dist/{use-form-D_TJyZhP.js → use-form-NfobsGNl.js} +474 -434
  181. package/dist/{vi-Bwvz1d_n.js → vi-DQOJp32U.js} +183 -30
  182. package/dist/vi-Dg1aiMr5.cjs +1 -0
  183. package/dist/widget-customization-BtkexHgm.js +1458 -0
  184. package/dist/widget-customization-pqmtsraC.cjs +1 -0
  185. package/dist/{zh-hy7Uw6c5.js → zh-DPK4HXl2.js} +154 -1
  186. package/dist/zh-tbwSTbmn.cjs +1 -0
  187. package/package.json +9 -9
  188. package/dist/ar-Dc56zcjW.cjs +0 -1
  189. package/dist/auth-divider-itm5-j5G.cjs +0 -1
  190. package/dist/de-DboQlEC4.cjs +0 -1
  191. package/dist/deep-merge-Bydz6jLt.cjs +0 -1
  192. package/dist/deep-merge-CzZVsVF-.js +0 -1704
  193. package/dist/es-CAmE_0Ph.cjs +0 -1
  194. package/dist/fa-D9LrFZdW.cjs +0 -1
  195. package/dist/fr-DKogQyss.cjs +0 -1
  196. package/dist/he-CVx91Jdr.cjs +0 -1
  197. package/dist/hi-BgrHV72l.cjs +0 -1
  198. package/dist/index-DFF7Uahh.cjs +0 -1
  199. package/dist/it-B1rA1F9l.cjs +0 -1
  200. package/dist/ja-DZnjjqoi.cjs +0 -1
  201. package/dist/ko-CDnYKYWU.cjs +0 -1
  202. package/dist/modal-DCxNGrzk.cjs +0 -1
  203. package/dist/nl-Bj8QnDEY.cjs +0 -1
  204. package/dist/pl-BmuuxxVd.cjs +0 -1
  205. package/dist/pt-RiC0yeVA.cjs +0 -1
  206. package/dist/ru-pRqtOQHF.cjs +0 -1
  207. package/dist/tr-B9JhBJeL.cjs +0 -1
  208. package/dist/translations-qefRsdGi.cjs +0 -1
  209. package/dist/types/components/overlay/command-palette.d.ts +0 -17
  210. package/dist/types/utils/color.d.ts +0 -346
  211. package/dist/ur-BZakU0iv.cjs +0 -1
  212. package/dist/use-form-BvBkVEKi.cjs +0 -2
  213. package/dist/vi-D1nly0nb.cjs +0 -1
  214. package/dist/widget-customization-BAchyOUo.js +0 -1066
  215. package/dist/widget-customization-DELy3SMQ.cjs +0 -1
  216. package/dist/zh-DBk7sSD9.cjs +0 -1
@@ -1,4 +1,4 @@
1
- import { f as i } from "./translations-DT5QQ4WO.js";
1
+ import { f as i } from "./translations-BCMP-h52.js";
2
2
  const s = {
3
3
  loadingExtended: "로딩 중입니다. 잠시만 기다려 주세요",
4
4
  loadingShort: "로딩 중...",
@@ -57,6 +57,11 @@ const s = {
57
57
  clearAllFiles: "모든 파일 지우기",
58
58
  // inputs reset
59
59
  clearValue: "값 지우기",
60
+ // Date range select
61
+ dateRangeStart: "Start",
62
+ dateRangeEnd: "End",
63
+ dateRangeNoLimit: "No limit",
64
+ dateRangeSelectDate: "Select date",
60
65
  unknownType: "알 수 없는 형식",
61
66
  filesInputInstructions: (e, t, l) => {
62
67
  let o = (e == null || e > 1, "클릭하여 선택하거나 파일을 여기로 드래그하세요");
@@ -247,6 +252,154 @@ const s = {
247
252
  horizontalRule: "Horizontal Rule",
248
253
  linkUrlPlaceholder: "https://example.com"
249
254
  },
255
+ // Carousel
256
+ carousel: {
257
+ label: "캐러셀",
258
+ previousSlide: "이전 슬라이드",
259
+ nextSlide: "다음 슬라이드",
260
+ slideNavigation: "슬라이드 탐색",
261
+ slideOfTotal: (e, t) => `슬라이드 ${e} / ${t}`,
262
+ goToSlide: (e) => `슬라이드 ${e}(으)로 이동`
263
+ },
264
+ // Date picker
265
+ datePicker: {
266
+ label: "날짜 선택기",
267
+ previousYear: "이전 연도",
268
+ previousMonth: "이전 월",
269
+ selectMonth: "월 선택",
270
+ selectYear: "연도 선택",
271
+ nextMonth: "다음 월",
272
+ nextYear: "다음 연도",
273
+ previousYears: (e) => `이전 ${e}년`,
274
+ nextYears: (e) => `다음 ${e}년`,
275
+ dateRangePickerLabel: "날짜 범위 선택기",
276
+ monthNames: [
277
+ "1월",
278
+ "2월",
279
+ "3월",
280
+ "4월",
281
+ "5월",
282
+ "6월",
283
+ "7월",
284
+ "8월",
285
+ "9월",
286
+ "10월",
287
+ "11월",
288
+ "12월"
289
+ ],
290
+ shortMonthNames: [
291
+ "1월",
292
+ "2월",
293
+ "3월",
294
+ "4월",
295
+ "5월",
296
+ "6월",
297
+ "7월",
298
+ "8월",
299
+ "9월",
300
+ "10월",
301
+ "11월",
302
+ "12월"
303
+ ],
304
+ dayNames: ["일", "월", "화", "수", "목", "금", "토"]
305
+ },
306
+ // Time picker
307
+ timePicker: {
308
+ label: "시간 선택기",
309
+ hoursLabel: "HH",
310
+ minutesLabel: "MM",
311
+ secondsLabel: "SS",
312
+ selectHours: "시간 선택",
313
+ selectMinutes: "분 선택",
314
+ selectSeconds: "초 선택",
315
+ selectPeriod: "오전/오후 선택",
316
+ nowLabel: "지금"
317
+ },
318
+ // Time select
319
+ timeSelectTime: "시간 선택",
320
+ dateTimeSelectDateTime: "날짜와 시간 선택",
321
+ // Color picker
322
+ colorPicker: {
323
+ hue: "색조",
324
+ saturation: "채도",
325
+ lightness: "밝기",
326
+ alpha: "알파",
327
+ red: "빨강",
328
+ green: "초록",
329
+ blue: "파랑",
330
+ hex: "Hex",
331
+ whiteness: "백색도",
332
+ blackness: "흑색도",
333
+ chroma: "채도(C)"
334
+ },
335
+ // Spotlight
336
+ spotlight: {
337
+ placeholder: "검색...",
338
+ noResults: "결과를 찾을 수 없습니다",
339
+ recentItems: "최근",
340
+ close: "닫기"
341
+ },
342
+ // Virtual list
343
+ virtualList: {
344
+ listLabel: "스크롤 가능한 목록"
345
+ },
346
+ // Stepper
347
+ stepper: {
348
+ step: "단계",
349
+ stepOfTotal: (e, t) => `${t}단계 중 ${e}단계`,
350
+ completed: "완료됨",
351
+ next: "다음",
352
+ previous: "이전",
353
+ complete: "완료"
354
+ },
355
+ // Sortable list
356
+ sortableList: {
357
+ dragHandle: "드래그하여 재정렬"
358
+ },
359
+ // Transfer list
360
+ transferList: {
361
+ available: "사용 가능",
362
+ selected: "선택됨",
363
+ moveRight: "선택됨으로 이동",
364
+ moveLeft: "사용 가능으로 이동",
365
+ moveAllRight: "모두 선택됨으로 이동",
366
+ moveAllLeft: "모두 사용 가능으로 이동",
367
+ searchAvailable: "사용 가능한 항목 검색…",
368
+ searchSelected: "선택된 항목 검색…"
369
+ },
370
+ // Copy button
371
+ copyButton: {
372
+ copied: "복사됨!",
373
+ copyToClipboard: "클립보드에 복사"
374
+ },
375
+ // Number stepper
376
+ numberStepper: {
377
+ increment: "증가",
378
+ decrement: "감소",
379
+ value: "값"
380
+ },
381
+ // Stat card
382
+ statCard: {
383
+ trendUp: "상승 추세",
384
+ trendDown: "하락 추세",
385
+ trendFlat: "변동 없음"
386
+ },
387
+ // OTP input
388
+ otpInputLabel: "일회용 비밀번호 입력",
389
+ otpDigitLabel: (e, t) => `${t}자리 중 ${e}번째`,
390
+ // Nine-slice scroll view
391
+ scrollableGridView: "스크롤 가능한 그리드 보기",
392
+ // Onboarding tour
393
+ onboardingTour: {
394
+ label: "가이드 투어",
395
+ stepIndicator: (e, t) => `단계 ${e} / ${t}`,
396
+ skip: "건너뛰기",
397
+ previous: "이전",
398
+ next: "다음",
399
+ finish: "완료"
400
+ },
401
+ // Combobox
402
+ searchPlaceholder: "검색",
250
403
  // PDF Page Viewer
251
404
  pdfPageViewer: {
252
405
  loading: "PDF 로딩 중...",
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const j=require("@lexical/rich-text"),F=require("@lexical/list"),G=require("@lexical/table"),ee=require("@lexical/link"),ie=require("@lexical/code"),Re=require("@lexical/hashtag"),ne=require("@lexical/mark"),dt=require("@lexical/overflow"),n=require("lexical"),ft=require("@lexical/plain-text"),Fe=require("@lexical/history");require("@lexical/clipboard");const Ae=require("@lexical/markdown"),Be=require("@lexical/html"),B=require("@lexical/selection"),gt=require("@lexical/text"),ge=require("@lexical/utils"),mt=require("@lexical/offset"),pt=require("@lexical/dragon");require("@lexical/file");const ht=require("@lexical/yjs");require("@lexical/headless");const e=require("@tempots/dom"),Le=require("../link-portal-_tiDFZqh.cjs"),Ie=require("../theme-DogY9oT1.cjs"),J=require("../menu-B60Q9j3-.cjs"),q=require("../translations-qefRsdGi.cjs"),ve=require("../editor-toolbar-group-QVdBUbB8.cjs"),bt=require("@tempots/std"),je=require("../toolbar-CnecqhaU.cjs"),Ct=require("../input-container-BkPcNDaZ.cjs");function ae(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const s=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(o,a,s.get?s:{enumerable:!0,get:()=>t[a]})}}return o.default=t,Object.freeze(o)}const fe=ae(G),re=ae(ie),yt=ae(n),Et=ae(mt),ke=ae(pt),Ot={separator:!0};class oe extends n.DecoratorNode{static getType(){return"horizontal-rule"}static clone(o){return new oe(o.__key)}static importJSON(o){return se()}static importDOM(){return{hr:()=>({conversion:Tt,priority:0})}}exportJSON(){return{...super.exportJSON(),type:"horizontal-rule",version:1}}exportDOM(){return{element:document.createElement("hr")}}createDOM(){return document.createElement("hr")}updateDOM(){return!1}getTextContent(){return`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const j=require("@lexical/rich-text"),F=require("@lexical/list"),G=require("@lexical/table"),ee=require("@lexical/link"),ie=require("@lexical/code"),Re=require("@lexical/hashtag"),ne=require("@lexical/mark"),dt=require("@lexical/overflow"),n=require("lexical"),ft=require("@lexical/plain-text"),Fe=require("@lexical/history");require("@lexical/clipboard");const Ae=require("@lexical/markdown"),Be=require("@lexical/html"),B=require("@lexical/selection"),gt=require("@lexical/text"),ge=require("@lexical/utils"),mt=require("@lexical/offset"),pt=require("@lexical/dragon");require("@lexical/file");const ht=require("@lexical/yjs");require("@lexical/headless");const e=require("@tempots/dom"),Le=require("../link-portal-_tiDFZqh.cjs"),Ie=require("../theme-DogY9oT1.cjs"),J=require("../menu-B60Q9j3-.cjs"),q=require("../translations-EwEmHe3v.cjs"),ve=require("../editor-toolbar-group-C_ft_T8D.cjs"),bt=require("@tempots/std"),je=require("../toolbar-BBwfe8U9.cjs"),Ct=require("../input-container-CyOgiiQD.cjs");function ae(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const s=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(o,a,s.get?s:{enumerable:!0,get:()=>t[a]})}}return o.default=t,Object.freeze(o)}const fe=ae(G),re=ae(ie),yt=ae(n),Et=ae(mt),ke=ae(pt),Ot={separator:!0};class oe extends n.DecoratorNode{static getType(){return"horizontal-rule"}static clone(o){return new oe(o.__key)}static importJSON(o){return se()}static importDOM(){return{hr:()=>({conversion:Tt,priority:0})}}exportJSON(){return{...super.exportJSON(),type:"horizontal-rule",version:1}}exportDOM(){return{element:document.createElement("hr")}}createDOM(){return document.createElement("hr")}updateDOM(){return!1}getTextContent(){return`
2
2
  `}isInline(){return!1}decorate(){return null}}function Tt(){return{node:se()}}function se(){return n.$applyNodeReplacement(new oe)}function Ue(t){return t instanceof oe}function me(t){const o=[j.HeadingNode,j.QuoteNode,F.ListNode,F.ListItemNode,ee.LinkNode,ie.CodeNode,ie.CodeHighlightNode,oe];return t.table&&o.push(G.TableNode,G.TableCellNode,G.TableRowNode),t.autoLink&&o.push(ee.AutoLinkNode),t.hashtag&&o.push(Re.HashtagNode),t.mark&&o.push(ne.MarkNode),t.overflow&&o.push(dt.OverflowNode),[...new Set(o)]}function pe(t){switch(t){case"bare":return{richText:!0,history:!0,clipboard:!0};case"docked":return{richText:!0,history:!0,clipboard:!0,list:!0,link:!0,autoLink:!0,code:!0,table:!0};case"contextual":return{richText:!0,history:!0,clipboard:!0,list:!0,link:!0,autoLink:!0,code:!0,table:!0}}}async function ze(){return yt}async function he(t){return j.registerRichText(t)}async function be(t){return ft.registerPlainText(t)}async function Ce(t,o){const a=Fe.createEmptyHistoryState(),s=o?.delay??300;return Fe.registerHistory(t,a,s)}async function ye(t){return()=>{}}async function Ee(t){return typeof F.registerList=="function"?typeof F.registerCheckList=="function"?ge.mergeRegister(F.registerList(t),F.registerCheckList(t)):F.registerList(t):ge.mergeRegister(t.registerCommand(F.INSERT_ORDERED_LIST_COMMAND,()=>(F.insertList(t,"number"),!0),n.COMMAND_PRIORITY_LOW),t.registerCommand(F.INSERT_UNORDERED_LIST_COMMAND,()=>(F.insertList(t,"bullet"),!0),n.COMMAND_PRIORITY_LOW),t.registerCommand(F.INSERT_CHECK_LIST_COMMAND,()=>(F.insertList(t,"check"),!0),n.COMMAND_PRIORITY_LOW),t.registerCommand(F.REMOVE_LIST_COMMAND,()=>(F.removeList(t),!0),n.COMMAND_PRIORITY_LOW))}async function Oe(t){return t.registerCommand(ee.TOGGLE_LINK_COMMAND,o=>(o===null||typeof o=="string"?ee.toggleLink(o):ee.toggleLink(o.url,o),!0),n.COMMAND_PRIORITY_LOW)}async function Nt(t,o,a){const s=o?.trigger||"/";let i=!1,u=null,h=0;const O=()=>t.getEditorState().read(()=>{const y=n.$getSelection();if(!n.$isRangeSelection(y)||!y.isCollapsed())return!1;const E=y.anchor,M=E.getNode();if(!n.$isTextNode(M))return!1;const _=M.getTextContent(),I=E.offset;if(I===0||_[I-1]!==s)return!1;if(I===1)return!0;const C=_[I-2];return!!/\s/.test(C)}),A=()=>u?t.getEditorState().read(()=>{if(!u)return"";const y=u.getTextContent(),E=y.indexOf(s,h);if(E===-1)return"";const M=n.$getSelection();if(!n.$isRangeSelection(M))return"";const _=M.anchor;if(_.getNode().getKey()!==u.getKey())return"";const N=_.offset;return N<=E?"":y.slice(E+1,N)}):"",R=()=>{t.getEditorState().read(()=>{const y=n.$getSelection();if(n.$isRangeSelection(y)){const E=y.anchor,M=E.getNode();if(n.$isTextNode(M)){u=M,h=E.offset-1,i=!0;const _={isActive:!0,filterText:"",anchorNode:u,anchorOffset:h};a?.onTrigger?.(_,k),a?.onUpdate?.(_,k)}}})},b=()=>{i&&(i=!1,u=null,h=0,a?.onClose?.())},k=()=>{u&&t.update(()=>{if(!u)return;const y=u.getTextContent(),E=y.indexOf(s,h);if(E===-1)return;const M=n.$getSelection();if(!n.$isRangeSelection(M))return;const _=M.anchor;if(_.getNode().getKey()!==u.getKey())return;const N=_.offset,C=y.slice(0,E),v=y.slice(N);u.setTextContent(C+v);const c=n.$getSelection();n.$isRangeSelection(c)&&(c.anchor.set(u.getKey(),E,"text"),c.focus.set(u.getKey(),E,"text"))})},S=()=>{if(!i)return;const E={isActive:!0,filterText:A(),anchorNode:u,anchorOffset:h};a?.onUpdate?.(E,k)},m=t.registerMutationListener(n.TextNode,y=>{if(!i&&O()){R();return}i&&(u&&!y.has(u.getKey())?S():b())}),T=ge.mergeRegister(t.registerUpdateListener(({editorState:y})=>{y.read(()=>{if(!i)return;const E=n.$getSelection();if(!n.$isRangeSelection(E)){b();return}const M=E.anchor,_=M.getNode();if(!u||_.getKey()!==u.getKey()){b();return}const N=u.getTextContent().indexOf(s,h);if(N===-1||M.offset<=N){b();return}})}),t.registerCommand(n.KEY_ARROW_DOWN_COMMAND,y=>i?(y.preventDefault(),!0):!1,n.COMMAND_PRIORITY_LOW),t.registerCommand(n.KEY_ARROW_UP_COMMAND,y=>i?(y.preventDefault(),!0):!1,n.COMMAND_PRIORITY_LOW),t.registerCommand(n.KEY_ENTER_COMMAND,y=>i?(y?.preventDefault(),!0):!1,n.COMMAND_PRIORITY_LOW),t.registerCommand(n.KEY_ESCAPE_COMMAND,y=>i?(y?.preventDefault(),b(),!0):!1,n.COMMAND_PRIORITY_LOW));return()=>{b(),m(),T()}}function St(t,o,a){a(),o.handler(t),t.focus()}const Mt=n.createCommand("TOGGLE_SLASH_COMMAND_PALETTE"),ce=n.createCommand("INSERT_HORIZONTAL_RULE_COMMAND"),xt=n.createCommand("INSERT_IMAGE_COMMAND");function Te(t){return t.registerCommand(ce,()=>{const o=n.$getSelection();if(!n.$isRangeSelection(o))return!1;if(o.focus.getNode()!==null){const s=se();o.insertNodes([s]);const i=n.$createParagraphNode();s.insertAfter(i),i.selectStart()}return!0},n.COMMAND_PRIORITY_LOW)}const Ge={dependencies:[oe],export:t=>Ue(t)?"---":null,regExp:/^(---|\*\*\*|___)\s?$/,replace:(t,o,a,s)=>{const i=se();if(s)t.replace(i);else{t.replace(i);const u=n.$createParagraphNode();i.insertAfter(u),u.selectStart()}},type:"element"},De=[...Ae.TRANSFORMERS,Ge];async function K(t){let o="";return t.getEditorState().read(()=>{o=Ae.$convertToMarkdownString(De)}),o}async function V(t,o){t.update(()=>{Ae.$convertFromMarkdownString(o,De)})}async function kt(){return De}async function Y(t){let o="";return t.getEditorState().read(()=>{o=Be.$generateHtmlFromNodes(t)}),o}async function X(t,o){t.update(()=>{const s=new DOMParser().parseFromString(o,"text/html"),i=Be.$generateNodesFromDOM(t,s);n.$getRoot().clear(),n.$insertNodes(i)})}async function _t(t,o,a){let s,i,u;switch(o){case"markdown":s=await K(t),i="text/markdown",u="md";break;case"html":s=await Y(t),i="text/html",u="html";break;case"json":s=JSON.stringify(t.getEditorState().toJSON(),null,2),i="application/json",u="json";break}const h=new Blob([s],{type:i}),O=URL.createObjectURL(h),A=document.createElement("a");A.href=O,A.download=a??`document.${u}`,A.click(),URL.revokeObjectURL(O)}async function vt(t,o,a){const s=await new Promise((u,h)=>{const O=new FileReader;O.onload=()=>u(O.result),O.onerror=()=>h(O.error),O.readAsText(o)});switch(a??Rt(o.name)){case"markdown":{await V(t,s);break}case"html":{await X(t,s);break}case"json":{const u=t.parseEditorState(s);t.setEditorState(u);break}}}function Rt(t){return t.endsWith(".md")||t.endsWith(".markdown")?"markdown":t.endsWith(".html")||t.endsWith(".htm")?"html":"json"}async function Ne(t,o){return"registerTablePlugin"in fe&&typeof fe.registerTablePlugin=="function"?fe.registerTablePlugin(t):()=>{}}async function At(t,o=3,a=3){t.dispatchCommand(fe.INSERT_TABLE_COMMAND,{rows:String(o),columns:String(a),includeHeaders:!0})}async function Lt(t,o){return"registerCodeHighlighting"in re&&typeof re.registerCodeHighlighting=="function"?re.registerCodeHighlighting(t):()=>{}}async function It(t,o){return"registerCodeHighlighting"in re&&typeof re.registerCodeHighlighting=="function"?re.registerCodeHighlighting(t):()=>{}}const Dt=/#[\w\u0590-\u05ff]+/;function wt(t){return new Re.HashtagNode(t)}async function $t(t,o){const a=[],s=gt.registerLexicalTextEntity(t,i=>{const u=Dt.exec(i);return u?{start:u.index,end:u.index+u[0].length}:null},Re.HashtagNode,wt);if(Array.isArray(s)?a.push(...s):typeof s=="function"&&a.push(s),o?.onHashtagClick){const i=t.registerCommand(n.CLICK_COMMAND,u=>{const h=u.target;if(h.classList.contains("bc-lexical-hashtag")){const O=h.textContent;if(O)return o.onHashtagClick(O.replace("#","")),!0}return!1},n.COMMAND_PRIORITY_LOW);a.push(i)}return()=>{a.forEach(i=>i())}}const Pt=/((https?:\/\/(www\.)?|www\.)[^\s<>]+)/g,Ht=/([a-zA-Z0-9._+-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9._-]+)/g,Ft=[{pattern:Pt,urlTransformer:t=>t.startsWith("http")?t:`https://${t}`},{pattern:Ht,urlTransformer:t=>`mailto:${t}`}];async function Bt(t,o){const a=o?.matchers??Ft;return t.registerMutationListener(n.TextNode,s=>{t.update(()=>{for(const[i,u]of s){if(u!=="created"&&u!=="updated")continue;const h=n.$getNodeByKey(i);if(!h||!n.$isTextNode(h))continue;const O=h.getTextContent();for(const A of a){const R=new RegExp(A.pattern.source,A.pattern.flags);let b;for(;(b=R.exec(O))!==null;)A.urlTransformer(b[0])}}})})}async function jt(t,o){const a=[];return o?.onMarkClick&&a.push(t.registerCommand(n.CLICK_COMMAND,s=>{const i=s.target;if(i.classList.contains("bc-lexical-mark")){const u=i.dataset.markId;if(u)return o.onMarkClick(u,{id:u,type:i.dataset.markType||"annotation",data:{}}),!0}return!1},n.COMMAND_PRIORITY_LOW)),()=>a.forEach(s=>s())}async function Ut(t,o,a){t.update(()=>{const s=n.$getSelection();n.$isRangeSelection(s)&&ne.$wrapSelectionInMarkNode(s,s.isBackward(),o)})}async function zt(t,o){t.update(()=>{const s=n.$getRoot().getAllTextNodes().filter(i=>{const u=i.getParent();return ne.$isMarkNode(u)?ne.$getMarkIDs(i,0)?.includes(o)??!1:!1});for(const i of s){const u=i.getParent();ne.$isMarkNode(u)&&ne.$unwrapMarkNode(u)}})}async function Gt(t,o){const{maxLength:a,onOverflow:s}=o;return t.registerUpdateListener(({editorState:i})=>{i.read(()=>{const O=n.$getRoot().getTextContent().length,A=O>a;s&&s(A,O)})})}async function Se(t){return"registerDragonSupport"in ke&&typeof ke.registerDragonSupport=="function"?ke.registerDragonSupport(t):()=>{}}async function Me(t,o){const a=o.docMap??new Map,s=o.id??"lexical",i=o.doc.getText(s),u=ht.createBinding(t,o.provider,i,o.doc,a),h=t.registerUpdateListener(()=>{});return()=>{h(),u&&typeof u.destroy=="function"&&u.destroy()}}function qt(t){let o={hasSelection:!1,selectedText:"",anchorOffset:0,focusOffset:0};return t.getEditorState().read(()=>{const a=n.$getSelection();n.$isRangeSelection(a)&&(o={hasSelection:!a.isCollapsed(),selectedText:a.getTextContent(),anchorOffset:a.anchor.offset,focusOffset:a.focus.offset})}),o}function we(t){let o="";return t.getEditorState().read(()=>{o=n.$getRoot().getTextContent()}),o}function Wt(t){return we(t).length}function Kt(t){const o=we(t).trim();return o?o.split(/\s+/).length:0}function Yt(t,o){t.update(()=>{const a=n.$getSelection();n.$isRangeSelection(a)&&a.insertText(o)}),t.focus()}async function Jt(){return Et}function le(t,o,a){const s=new Map;if(t)for(const i of t.split(";")){const u=i.trim();if(!u)continue;const h=u.indexOf(":");if(h===-1)continue;const O=u.slice(0,h).trim(),A=u.slice(h+1).trim();s.set(O,A)}return a?s.set(o,a):s.delete(o),s.size===0?"":Array.from(s.entries()).map(([i,u])=>`${i}: ${u}`).join("; ")}function te(t,o){if(!t)return"";const a=new RegExp(`(?:^|;)\\s*${o.replace(/-/g,"\\-")}:\\s*([^;]+)`),s=t.match(a);return s?s[1].trim():""}function Vt(t,o){const a=t.getElementByKey(o);a&&t.getEditorState().read(()=>{const s=n.$getNodeByKey(o);if(!n.$isElementNode(s)||n.$isRootNode(s))return;const i=s.getStyle(),u=te(i,"background-color");a.style.backgroundColor=u||"";const h=te(i,"line-height");a.style.lineHeight=h||""})}function $e(t){const o=t.registerUpdateListener(({dirtyElements:a})=>{if(a.size!==0)for(const[s]of a)Vt(t,s)});return t.getEditorState().read(()=>{const a=n.$getRoot();for(const s of a.getChildren())if(n.$isElementNode(s)){const i=s.getStyle();if(i){const u=t.getElementByKey(s.getKey());if(u){const h=te(i,"background-color");h&&(u.style.backgroundColor=h);const O=te(i,"line-height");O&&(u.style.lineHeight=O)}}}}),o}function _e(t,o){const a=o.exportDOM(t);if(a.element&&ge.isHTMLElement(a.element)&&n.$isElementNode(o)){const s=o.getStyle(),i=te(s,"background-color");i&&(a.element.style.backgroundColor=i);const u=te(s,"line-height");u&&(a.element.style.lineHeight=u)}return a}function xe(){const t=new Map;return t.set(n.ParagraphNode,_e),t.set(j.HeadingNode,_e),t.set(j.QuoteNode,_e),t}function Xt(){const t=o=>()=>({conversion:a=>{const s=o(a);if(s&&n.$isElementNode(s)){a.style?.textAlign&&s.setFormat(a.style.textAlign);let i="";a.style?.backgroundColor&&(i=le(i,"background-color",a.style.backgroundColor)),a.style?.lineHeight&&(i=le(i,"line-height",a.style.lineHeight)),i&&s.setStyle(i)}return{node:s}},priority:1});return{p:t(()=>n.$createParagraphNode()),h1:t(()=>j.$createHeadingNode("h1")),h2:t(()=>j.$createHeadingNode("h2")),h3:t(()=>j.$createHeadingNode("h3")),h4:t(()=>j.$createHeadingNode("h4")),h5:t(()=>j.$createHeadingNode("h5")),h6:t(()=>j.$createHeadingNode("h6"))}}const qe=["color","font-size","font-family","background-color","line-height"],Zt=new Set(["font-weight","font-style","text-decoration","text-decoration-line","vertical-align"]),Qt={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"},eo=["span","b","em","i","strong","u","s","sub","sup","code","mark"];function to(t,o,a){if(!n.$isTextNode(o))return;const s=t.fontWeight,i=t.textDecoration.split(" ");(s==="700"||s==="bold")&&!o.hasFormat("bold")&&o.toggleFormat("bold"),t.fontStyle==="italic"&&!o.hasFormat("italic")&&o.toggleFormat("italic"),i.includes("line-through")&&!o.hasFormat("strikethrough")&&o.toggleFormat("strikethrough"),i.includes("underline")&&!o.hasFormat("underline")&&o.toggleFormat("underline"),t.verticalAlign==="sub"&&!o.hasFormat("subscript")&&o.toggleFormat("subscript"),t.verticalAlign==="super"&&!o.hasFormat("superscript")&&o.toggleFormat("superscript"),a&&!o.hasFormat(a)&&o.toggleFormat(a)}function We(t=qe){const o={};for(const a of eo)o[a]=s=>{const i=s.style,u=Qt[a],h=a==="b"?i.fontWeight!=="normal"?"bold":void 0:u;return{conversion:()=>({node:null,forChild:O=>{if(!n.$isTextNode(O))return O;to(i,O,h);let A=O.getStyle();for(const R of t){if(Zt.has(R))continue;const b=i.getPropertyValue(R);b&&(A=le(A,R,b))}return A&&O.setStyle(A),O}}),priority:1}};return o}function ue(t){return{...Xt(),...We(t)}}async function de(t={}){const{nodes:o=[],plugins:a=[],onError:s}=t,u=(await ze()).createEditor({namespace:"BeatUIHeadless",nodes:o,onError:h=>{s?s(h,u):console.error("[BeatUI Headless]",h)},editable:!1,html:{export:xe(),import:ue()}});if(a.length>0)for(const h of a)h.register(u);return u}async function oo(t){const o=await de();return await V(o,t),o.getEditorState().toJSON()}async function no(t){const o=await de(),a=o.parseEditorState(JSON.stringify(t));return o.setEditorState(a),await K(o)}async function ro(t){const o=await de();return await X(o,t),o.getEditorState().toJSON()}async function io(t){const o=await de(),a=o.parseEditorState(JSON.stringify(t));return o.setEditorState(a),await Y(o)}const Ke=t=>{const{value:o,format:a,plugins:s,readOnly:i,placeholder:u,class:h,namespace:O="BeatUILexical",heightMode:A="auto",autoFocus:R=!1,onError:b,onInput:k,onChange:S,onBlur:m,onReady:T}=t;return e.Use(Ie.Theme,({appearance:y})=>e.html.div(e.Task(()=>Promise.resolve().then(()=>require("../styles-url-CkPTI32j.cjs")),({default:E})=>Le.LinkPortal({id:"beatui-lexical-css",href:E})),e.attr.class("bc-lexical-editor-container"),A==="fixed"?e.attr.class("bc-lexical-editor-container--fixed"):null,e.attr.class(h),e.html.div(e.attr.class("bc-lexical-editor"),e.attr.class(`bc-lexical-editor--${A}`),e.attr.contenteditable(i!=null?e.Value.map(i,E=>!E):!0),i!=null?e.attr.class(e.Value.map(i,E=>E?"bc-lexical-editor--readonly":"")):null,e.WithElement(E=>{let M=null;const _=[];return(async()=>{try{const N=s??pe("bare"),C=me(N),v=e.Value.get(a??"markdown"),c=n.createEditor({namespace:O,nodes:C,theme:{heading:{h1:"bc-lexical-h1",h2:"bc-lexical-h2",h3:"bc-lexical-h3",h4:"bc-lexical-h4",h5:"bc-lexical-h5",h6:"bc-lexical-h6"},text:{bold:"bc-lexical-bold",italic:"bc-lexical-italic",underline:"bc-lexical-underline",strikethrough:"bc-lexical-strikethrough",code:"bc-lexical-code"},list:{ul:"bc-lexical-ul",ol:"bc-lexical-ol",listitem:"bc-lexical-li",listitemChecked:"bc-lexical-li-checked",listitemUnchecked:"bc-lexical-li-unchecked"},link:"bc-lexical-link",quote:"bc-lexical-blockquote",code:"bc-lexical-code-block",codeHighlight:{},hashtag:"bc-lexical-hashtag",table:"bc-lexical-table",tableCell:"bc-lexical-table-cell",tableCellHeader:"bc-lexical-table-cell-header",tableRow:"bc-lexical-table-row",mark:"bc-lexical-mark",paragraph:"bc-lexical-paragraph"},onError:f=>{b?b(f,c):console.error("[BeatUI Lexical]",f)},editable:i?!e.Value.get(i):!0,html:{export:xe(),import:ue()}});M=c,c.setRootElement(E);const D=[];if(N.richText?D.push(he(c)):N.plainText&&D.push(be(c)),N.history){const f=typeof N.history=="object"?N.history:void 0;D.push(Ce(c,f))}if(N.clipboard&&D.push(ye(c)),N.list&&D.push(Ee(c)),N.link&&D.push(Oe(c)),N.yjs&&D.push(Me(c,N.yjs)),N.dragon&&D.push(Se(c)),N.table&&D.push(Ne(c)),(await Promise.all(D)).forEach(f=>{f&&_.push(f)}),_.push(Te(c)),_.push($e(c)),o!=null){const f=e.Value.get(o);if(f!=null&&(f!==""||v==="json"&&typeof f=="object")){if(v==="markdown"&&typeof f=="string")await V(c,f);else if(v==="html"&&typeof f=="string")await X(c,f);else if(v==="json"&&typeof f=="object")try{const l=JSON.stringify(f),L=c.parseEditorState(l);c.setEditorState(L)}catch(l){console.error("[BeatUI] Failed to parse JSON editor state:",l),b&&b(l instanceof Error?l:new Error(String(l)),c)}}}if(_.push(c.registerUpdateListener(({editorState:f,dirtyElements:d,dirtyLeaves:l})=>{d.size===0&&l.size===0||k&&f.read(async()=>{if(v==="markdown"){const L=await K(c);k(L,c)}else if(v==="html"){const L=await Y(c);k(L,c)}else v==="json"&&k(f.toJSON(),c)})})),o!=null&&_.push(e.Value.on(o,async f=>{if(f!=null){if(v==="markdown"&&typeof f=="string"){const d=await K(c);f!==d&&await V(c,f)}else if(v==="html"&&typeof f=="string"){const d=await Y(c);f!==d&&await X(c,f)}else if(v==="json"&&typeof f=="object"){const d=JSON.stringify(c.getEditorState().toJSON()),l=JSON.stringify(f);if(d!==l){const L=c.parseEditorState(l);c.setEditorState(L)}}}})),i!=null&&_.push(e.Value.on(i,f=>{c.setEditable(!f)})),_.push(c.registerCommand(n.BLUR_COMMAND,()=>(m&&m(c),S&&c.getEditorState().read(async()=>{if(v==="markdown"){const f=await K(c);S(f,c)}else if(v==="html"){const f=await Y(c);S(f,c)}else v==="json"&&S(c.getEditorState().toJSON(),c)}),!1),n.COMMAND_PRIORITY_LOW)),_.push(y.on(f=>{const d=c.getRootElement();d&&(d.dataset.theme=f)})),R)c.focus();else{const f=c.getRootElement();f&&f===document.activeElement&&f.blur()}T&&T(c)}catch(N){console.error("[BeatUI] Failed to initialize Lexical editor:",N);const C=E;C.textContent="Failed to load Lexical editor."}})(),e.OnDispose(()=>{try{_.forEach(N=>N())}catch{}try{M?.setRootElement(null)}catch{}})}))))};function Ye(t,o,a){const s=(m,T)=>o.map(()=>{const y=t.value;return y?y.getEditorState().read(()=>{const E=n.$getSelection();return n.$isRangeSelection(E)?m(E):T}):T}),i=m=>{const T=m.anchor.getNode();return T.getKey()==="root"?T:T.getTopLevelElementOrThrow()};return{withSelection:s,getAnchorElement:i,textFormatActive:m=>s(T=>T.hasFormat(m),!1),blockTypeActive:m=>s(T=>i(T).getType()===m,!1),listTypeActive:m=>s(T=>{const y=i(T).getParent();return F.$isListNode(y)&&y.getListType()===m},!1),headingActive:m=>o.map(()=>{const T=t.value;return T?T.getEditorState().read(()=>{const y=n.$getSelection();if(n.$isRangeSelection(y)){const E=i(y);if(E.getType()==="heading")return T.getElementByKey(E.getKey())?.tagName===`H${m}`}return!1}):!1}),linkActive:()=>s(m=>{const T=m.anchor.getNode();return T.getParent()?.getType()==="link"||T.getType()==="link"},!1),dispatch:(m,T)=>()=>{const y=t.value;y&&(y.dispatchCommand(m,T),y.focus())},toggleBlock:(m,T)=>()=>{const y=t.value;y&&(y.update(()=>{const E=n.$getSelection();if(n.$isRangeSelection(E)){const M=i(E);B.$setBlocksType(E,()=>M.getType()===m?n.$createParagraphNode():T())}}),y.focus())},toggleLink:()=>{const m=t.value;m&&(m.getEditorState().read(()=>{const T=n.$getSelection();if(n.$isRangeSelection(T)){const y=T.anchor.getNode();if(y.getParent()?.getType()==="link"||y.getType()==="link")m.dispatchCommand(ee.TOGGLE_LINK_COMMAND,null);else{const _=prompt(a?.enterUrlMessage?.()??"Enter URL:");_&&m.dispatchCommand(ee.TOGGLE_LINK_COMMAND,_)}}}),m.focus())}}}function Je(t,o){return a=>s=>ve.EditorToolbarButton({...s,display:a,disabled:t,size:o})}const lo={font:["font-family","font-size","line-height"],color:["font-color","highlight-color","background-color"],"text-formatting":["bold","italic","underline","strikethrough","code"],"clear-formatting":["clear-formatting"],headings:["paragraph","heading-1","heading-2","heading-3","heading-4","heading-5","heading-6"],lists:["bullet-list","ordered-list","check-list"],indent:["indent","outdent"],blocks:["blockquote","code-block","horizontal-rule"],tables:["insert-table"],links:["link"],history:["undo","redo"],clipboard:["cut","copy","paste"]},ao=["font","color","text-formatting","clear-formatting","headings","lists","indent","blocks","tables","links","history","clipboard"];function so(){return ao.map(t=>({group:t}))}function co(t){if(t.layout)return t.layout;const{visibleGroups:o,hiddenGroups:a,customGroups:s}=t;let i=so();if((o||a)&&(i=i.filter(u=>{if("separator"in u||"customGroup"in u)return!0;const h=u.group;return!(a?.includes(h)||o&&!o.includes(h))})),s&&s.length>0)for(const u of s)i.push({customGroup:u.id});return i}const uo=[{value:"Arial",label:"Arial"},{value:"Courier New",label:"Courier New"},{value:"Georgia",label:"Georgia"},{value:"Times New Roman",label:"Times New Roman"},{value:"Trebuchet MS",label:"Trebuchet MS"},{value:"Verdana",label:"Verdana"}],fo=[{value:"10px",label:"10"},{value:"12px",label:"12"},{value:"14px",label:"14"},{value:"16px",label:"16"},{value:"18px",label:"18"},{value:"20px",label:"20"},{value:"24px",label:"24"},{value:"30px",label:"30"},{value:"36px",label:"36"}],go=[{value:"1",label:"1"},{value:"1.15",label:"1.15"},{value:"1.5",label:"1.5"},{value:"2",label:"2"},{value:"2.5",label:"2.5"},{value:"3",label:"3"}];function Ve({editor:t,stateUpdate:o,toolbar:a={},readOnly:s=e.signal(!1),size:i="sm"}){const{maxHeadingLevel:u=3}=a,h=co(a);return e.Use(q.BeatUII18n,O=>e.Ensure(t,A=>{const R=A,b=O.$.lexical,{getAnchorElement:k,textFormatActive:S,blockTypeActive:m,listTypeActive:T,headingActive:y,linkActive:E,dispatch:M,toggleBlock:_,toggleLink:I}=Ye(R,o,{enterUrlMessage:()=>O.value.lexical.enterUrl}),C=Je(s,i)(e.signal(!0)),v=()=>{const r=R.value;r&&(r.update(()=>{const p=n.$getSelection();n.$isRangeSelection(p)&&B.$setBlocksType(p,()=>n.$createParagraphNode())}),r.focus())},c=r=>{const p=R.value;p&&(p.update(()=>{const w=n.$getSelection();if(n.$isRangeSelection(w)){const z=k(w),Z=`h${r}`,Q=p.getElementByKey(z.getKey());z.getType()==="heading"&&Q?.tagName===`H${r}`?B.$setBlocksType(w,()=>n.$createParagraphNode()):B.$setBlocksType(w,()=>j.$createHeadingNode(Z))}}),p.focus())},D=()=>{const r=R.value;if(!r)return;const p=r.getRootElement();p&&(p.focus(),document.execCommand("copy"))},x=()=>{const r=R.value;if(!r)return;const p=r.getRootElement();p&&(p.focus(),document.execCommand("cut"))},f=()=>{const r=R.value;r&&navigator.clipboard.readText().then(p=>{r.update(()=>{const w=n.$getSelection();n.$isRangeSelection(w)&&w.insertText(p)}),r.focus()}).catch(()=>{})},d=()=>{const r=R.value;r&&(r.update(()=>{const p=n.$getSelection();if(n.$isRangeSelection(p))for(const w of p.getNodes())n.$isTextNode(w)&&(w.setFormat(0),w.setStyle(""))}),r.focus())},l=()=>{const r=R.value;r&&(r.dispatchCommand(G.INSERT_TABLE_COMMAND,{rows:"3",columns:"3",includeHeaders:!0}),r.focus())},L={value:"",label:O.value.lexical.defaultOption},W=[L,...a.fontFamilies??uo],g=[L,...a.fontSizes??fo],P=[L,...a.lineHeights??go],H=o.map(()=>{const r=R.value;return r?r.getEditorState().read(()=>{const p=n.$getSelection();return n.$isRangeSelection(p)?B.$getSelectionStyleValueForProperty(p,"font-family",""):""}):""}),U=o.map(()=>{const r=R.value;return r?r.getEditorState().read(()=>{const p=n.$getSelection();return n.$isRangeSelection(p)?B.$getSelectionStyleValueForProperty(p,"font-size",""):""}):""}),tt=r=>{const p=R.value;p&&(p.update(()=>{const w=n.$getSelection();n.$isRangeSelection(w)&&B.$patchStyleText(w,{"font-family":r||null})}),p.focus())},ot=r=>{const p=R.value;p&&(p.update(()=>{const w=n.$getSelection();n.$isRangeSelection(w)&&B.$patchStyleText(w,{"font-size":r||null})}),p.focus())},nt=o.map(()=>{const r=R.value;return r?r.getEditorState().read(()=>{const p=n.$getSelection();return n.$isRangeSelection(p)&&B.$getSelectionStyleValueForProperty(p,"color","")||"#000000"}):"#000000"}),rt=o.map(()=>{const r=R.value;return r?r.getEditorState().read(()=>{const p=n.$getSelection();return n.$isRangeSelection(p)&&B.$getSelectionStyleValueForProperty(p,"background-color","")||"#ffffff"}):"#ffffff"}),it=o.map(()=>{const r=R.value;return r?r.getEditorState().read(()=>{const p=n.$getSelection();if(n.$isRangeSelection(p)){const z=k(p).getStyle();return te(z,"background-color")||"#ffffff"}return"#ffffff"}):"#ffffff"}),lt=o.map(()=>{const r=R.value;return r?r.getEditorState().read(()=>{const p=n.$getSelection();if(n.$isRangeSelection(p)){const z=k(p).getStyle();return te(z,"line-height")||""}return""}):""}),at=r=>{const p=R.value;p&&(p.update(()=>{const w=n.$getSelection();n.$isRangeSelection(w)&&B.$patchStyleText(w,{color:r})}),p.focus())},st=r=>{const p=R.value;p&&(p.update(()=>{const w=n.$getSelection();n.$isRangeSelection(w)&&B.$patchStyleText(w,{"background-color":r})}),p.focus())},ct=r=>{const p=R.value;p&&(p.update(()=>{const w=n.$getSelection();if(n.$isRangeSelection(w)){const z=k(w),Z=z.getStyle(),Q=le(Z,"background-color",r);z.setStyle(Q)}}),p.focus())},ut=r=>{const p=R.value;p&&(p.update(()=>{const w=n.$getSelection();if(n.$isRangeSelection(w)){const z=k(w),Z=z.getStyle(),Q=le(Z,"line-height",r);z.setStyle(Q)}}),p.focus())},$=new Map;$.set("bold",()=>C({active:S("bold"),onClick:M(n.FORMAT_TEXT_COMMAND,"bold"),label:b.map(r=>r.bold),icon:"mdi:format-bold"})),$.set("italic",()=>C({active:S("italic"),onClick:M(n.FORMAT_TEXT_COMMAND,"italic"),label:b.map(r=>r.italic),icon:"mdi:format-italic"})),$.set("underline",()=>C({active:S("underline"),onClick:M(n.FORMAT_TEXT_COMMAND,"underline"),label:b.map(r=>r.underline),icon:"mdi:format-underline"})),$.set("strikethrough",()=>C({active:S("strikethrough"),onClick:M(n.FORMAT_TEXT_COMMAND,"strikethrough"),label:b.map(r=>r.strikethrough),icon:"mdi:format-strikethrough"})),$.set("code",()=>C({active:S("code"),onClick:M(n.FORMAT_TEXT_COMMAND,"code"),label:b.map(r=>r.code),icon:"mdi:code-tags"})),$.set("clear-formatting",()=>C({active:e.signal(!1),onClick:d,label:b.map(r=>r.clearFormatting),icon:"mdi:format-clear"})),$.set("paragraph",()=>C({active:m("paragraph"),onClick:v,label:b.map(r=>r.normal),icon:"mdi:format-paragraph"}));for(let r=1;r<=u;r++)$.set(`heading-${r}`,()=>C({active:y(r),onClick:()=>c(r),label:b.map(p=>p.heading(r)),icon:`mdi:format-header-${r}`}));$.set("bullet-list",()=>C({active:T("bullet"),onClick:M(F.INSERT_UNORDERED_LIST_COMMAND,void 0),label:b.map(r=>r.bulletList),icon:"mdi:format-list-bulleted"})),$.set("ordered-list",()=>C({active:T("number"),onClick:M(F.INSERT_ORDERED_LIST_COMMAND,void 0),label:b.map(r=>r.orderedList),icon:"mdi:format-list-numbered"})),$.set("check-list",()=>C({active:T("check"),onClick:M(F.INSERT_CHECK_LIST_COMMAND,void 0),label:b.map(r=>r.checkList),icon:"mdi:format-list-checks"})),$.set("indent",()=>C({active:e.signal(!1),onClick:M(n.INDENT_CONTENT_COMMAND,void 0),label:b.map(r=>r.indent),icon:"mdi:format-indent-increase"})),$.set("outdent",()=>C({active:e.signal(!1),onClick:M(n.OUTDENT_CONTENT_COMMAND,void 0),label:b.map(r=>r.outdent),icon:"mdi:format-indent-decrease"})),$.set("blockquote",()=>C({active:m("quote"),onClick:_("quote",j.$createQuoteNode),label:b.map(r=>r.blockquote),icon:"mdi:format-quote-close"})),$.set("code-block",()=>C({active:m("code"),onClick:_("code",ie.$createCodeNode),label:b.map(r=>r.codeBlock),icon:"mdi:code-braces"})),$.set("horizontal-rule",()=>C({active:e.signal(!1),onClick:M(ce,void 0),label:b.map(r=>r.horizontalRule),icon:"mdi:minus"})),$.set("insert-table",()=>C({active:e.signal(!1),onClick:l,label:b.map(r=>r.insertTable),icon:"mdi:table-plus"})),$.set("link",()=>C({active:E(),onClick:I,label:b.map(r=>r.link),icon:"mdi:link"})),$.set("undo",()=>C({active:e.signal(!1),onClick:M(n.UNDO_COMMAND,void 0),label:b.map(r=>r.undo),icon:"mdi:undo"})),$.set("redo",()=>C({active:e.signal(!1),onClick:M(n.REDO_COMMAND,void 0),label:b.map(r=>r.redo),icon:"mdi:redo"})),$.set("cut",()=>C({active:e.signal(!1),onClick:x,label:b.map(r=>r.cut),icon:"mdi:content-cut"})),$.set("copy",()=>C({active:e.signal(!1),onClick:D,label:b.map(r=>r.copy),icon:"mdi:content-copy"})),$.set("paste",()=>C({active:e.signal(!1),onClick:f,label:b.map(r=>r.paste),icon:"mdi:content-paste"})),$.set("font-family",()=>e.html.select(e.attr.class("bc-lexical-toolbar-select"),e.attr.title(b.map(r=>r.fontFamily)),e.attr.disabled(s),e.on.change(r=>tt(r.target.value)),...W.map(r=>e.html.option(e.attr.value(r.value),e.attr.selected(H.map(p=>p===r.value)),r.label)))),$.set("font-size",()=>e.html.select(e.attr.class("bc-lexical-toolbar-select"),e.attr.title(b.map(r=>r.fontSize)),e.attr.disabled(s),e.on.change(r=>ot(r.target.value)),...g.map(r=>e.html.option(e.attr.value(r.value),e.attr.selected(U.map(p=>p===r.value)),r.label)))),$.set("line-height",()=>e.html.select(e.attr.class("bc-lexical-toolbar-select"),e.attr.title(b.map(r=>r.lineHeight)),e.attr.disabled(s),e.on.change(r=>ut(r.target.value)),...P.map(r=>e.html.option(e.attr.value(r.value),e.attr.selected(lt.map(p=>p===r.value)),r.label)))),$.set("font-color",()=>e.html.label(e.attr.class("bc-lexical-toolbar-color"),e.attr.title(b.map(r=>r.fontColor)),e.html.input(e.attr.type("color"),e.attr.value(nt),e.attr.disabled(s),e.on.input(r=>at(r.target.value))),e.html.span(e.attr.class("bc-lexical-toolbar-color-icon"),"A"))),$.set("highlight-color",()=>e.html.label(e.attr.class("bc-lexical-toolbar-color"),e.attr.title(b.map(r=>r.highlightColor)),e.html.input(e.attr.type("color"),e.attr.value(rt),e.attr.disabled(s),e.on.input(r=>st(r.target.value))),e.html.span(e.attr.class("bc-lexical-toolbar-color-icon bc-lexical-toolbar-color-icon--highlight"),"A"))),$.set("background-color",()=>e.html.label(e.attr.class("bc-lexical-toolbar-color"),e.attr.title(b.map(r=>r.backgroundColor)),e.html.input(e.attr.type("color"),e.attr.value(it),e.attr.disabled(s),e.on.input(r=>ct(r.target.value))),e.html.span(e.attr.class("bc-lexical-toolbar-color-icon bc-lexical-toolbar-color-icon--bg"),"■")));const Pe={editor:R,stateUpdate:o,readOnly:s,size:i,button:r=>C({active:r.active??e.signal(!1),onClick:r.onClick,label:r.label,icon:r.icon})},He=r=>{if(r.type==="button"){const p=r;$.set(r.id,()=>C({active:p.active?.(Pe)??e.signal(!1),onClick:()=>p.onClick(R.value),label:p.label,icon:p.icon}))}else if(r.type==="select"){const p=r,w=p.resetOnSelect!==!1;$.set(r.id,()=>e.html.select(e.attr.class("bc-lexical-toolbar-select"),e.attr.title(p.label),e.attr.disabled(s),e.on.change(z=>{const Z=z.target,Q=Z.value;Q!==""&&(p.onSelect(Q,R.value),w&&(Z.value=""))}),e.html.option(e.attr.value(""),e.attr.disabled(w),e.attr.selected(!0),p.label),...p.options.map(z=>e.html.option(e.attr.value(z.value),z.label))))}else if(r.type==="custom"){const p=r;$.set(r.id,()=>p.render(Pe))}};if(a.customItems)for(const r of a.customItems)He(r);if(a.customGroups)for(const r of a.customGroups)for(const p of r.items)He(p);return je.Toolbar({},e.attr.class("bc-lexical-toolbar"),...mo(h,$,u,a.customGroups))}))}function mo(t,o,a,s){const i=new Map;if(s)for(const h of s)i.set(h.id,h);const u=[];for(const h of t){if("separator"in h){u.push(je.ToolbarDivider());continue}if("customGroup"in h){const b=i.get(h.customGroup);if(!b)continue;const k=[];for(const m of b.items){const T=o.get(m.id);T&&k.push(T())}if(k.length===0)continue;const S=k.map(()=>e.signal(!0));u.push(ve.EditorToolbarGroup({display:S},...k));continue}let O=h.items??lo[h.group]??[];h.group==="headings"&&!h.items&&(O=O.filter(b=>b.startsWith("heading-")?parseInt(b.split("-")[1],10)<=a:!0));const A=[];for(const b of O){const k=o.get(b);k&&A.push(k())}if(A.length===0)continue;const R=A.map(()=>e.signal(!0));u.push(ve.EditorToolbarGroup({display:R},...A))}return u}function Xe({editor:t,stateUpdate:o,readOnly:a=e.signal(!1)}){const s=e.prop(!1),i=e.prop(0),u=e.prop(0);let h=null;const O=e.prop(!1),A=I=>{let N=null;return I.getEditorState().read(()=>{const C=n.$getSelection();if(!n.$isRangeSelection(C))return;let v=C.anchor.getNode();for(;v;){if(G.$isTableCellNode(v)){N=v;break}if(v=v.getParent(),!v||v.getKey()==="root")break}}),N},R=(I,N)=>{const C=I.getBoundingClientRect(),v=N.closest(".bc-lexical-editor-container"),c=v?v.getBoundingClientRect():N.getBoundingClientRect();return i.value=C.top-c.top+2,u.value=c.right-C.right+2,!0},b=()=>{const I=t.value;if(!I){s.value=!1;return}const N=A(I);if(!N){O.value||(s.value=!1);return}const C=I.getElementByKey(N.getKey()),v=I.getRootElement();C&&v?(R(C,v),s.value=!0):s.value=!1};o.onChange(b);const k=I=>()=>{const N=t.value;N&&(N.update(I),h?.set(!1),N.focus())},S=k(()=>G.$insertTableRowAtSelection(!1)),m=k(()=>G.$insertTableRowAtSelection(!0)),T=k(()=>G.$insertTableColumnAtSelection(!1)),y=k(()=>G.$insertTableColumnAtSelection(!0)),E=k(()=>G.$deleteTableRowAtSelection()),M=k(()=>G.$deleteTableColumnAtSelection()),_=k(()=>{const I=n.$getSelection();if(!n.$isRangeSelection(I))return;const N=I.anchor.getNode(),C=G.$getTableCellNodeFromLexicalNode(N);if(!C)return;G.$getTableNodeFromLexicalNodeOrThrow(C).remove()});return e.Use(q.BeatUII18n,I=>e.Ensure(t,N=>{const C=N,v=I.$.lexical,c=d=>{const l=C.value;if(!l||a.value)return;const L=l.getRootElement();if(!L)return;const g=d.target.closest("td, th");g&&L.contains(g)&&(d.preventDefault(),R(g,L)&&(s.value=!0),bt.delayedAnimationFrame(()=>{h?.set(!0)}))},D=C.value?.getRootElement(),f=D?.closest(".bc-lexical-editor-container")??D??document;return f.addEventListener("contextmenu",c),[e.OnDispose(()=>{f.removeEventListener("contextmenu",c)}),e.When(s,()=>e.html.div(e.attr.class("bc-table-cell-marker"),e.style.position("absolute"),e.style.top(i.map(d=>`${d}px`)),e.style.right(u.map(d=>`${d}px`)),e.style.zIndex("10"),e.WithElement(d=>{d.addEventListener("mousedown",l=>{l.preventDefault()})}),e.html.button(e.attr.class("bc-table-cell-marker__button"),e.attr.type("button"),e.attr.title(v.map(d=>d.tableActions)),e.attr.disabled(a),q.Icon({icon:"lucide:chevron-down",size:"xs"}),e.WithElement(d=>{const l=new MutationObserver(()=>{const L=d.getAttribute("aria-expanded")==="true";O.value=L});return l.observe(d,{attributes:!0,attributeFilter:["aria-expanded"]}),e.OnDispose(()=>l.disconnect())}),J.Menu({items:()=>[J.MenuItem({key:"insert-row-above",content:v.map(d=>d.insertRowAbove),before:q.Icon({icon:"lucide:arrow-up",size:"sm"}),onClick:S,disabled:a}),J.MenuItem({key:"insert-row-below",content:v.map(d=>d.insertRowBelow),before:q.Icon({icon:"lucide:arrow-down",size:"sm"}),onClick:m,disabled:a}),J.MenuItem({key:"insert-column-left",content:v.map(d=>d.insertColumnLeft),before:q.Icon({icon:"lucide:arrow-left",size:"sm"}),onClick:T,disabled:a}),J.MenuItem({key:"insert-column-right",content:v.map(d=>d.insertColumnRight),before:q.Icon({icon:"lucide:arrow-right",size:"sm"}),onClick:y,disabled:a}),J.MenuSeparator(),J.MenuItem({key:"delete-row",content:v.map(d=>d.deleteRow),before:q.Icon({icon:"lucide:trash-2",size:"sm"}),onClick:E,disabled:a}),J.MenuItem({key:"delete-column",content:v.map(d=>d.deleteColumn),before:q.Icon({icon:"lucide:trash-2",size:"sm"}),onClick:M,disabled:a}),J.MenuItem({key:"delete-table",content:v.map(d=>d.deleteTable),before:q.Icon({icon:"lucide:trash-2",size:"sm"}),onClick:_,disabled:a})],placement:"bottom-end",showOn:d=>(h=d,e.on.click(()=>{d.set(!d.value)})),showDelay:0,hideDelay:0,mainAxisOffset:4,onClose:()=>{const d=C.value;d&&d.focus()},ariaLabel:v.map(d=>d.tableActions)}))))]}))}const po=t=>{const{value:o,format:a,plugins:s,readOnly:i,placeholder:u,class:h,namespace:O="BeatUILexical",heightMode:A="fixed",toolbar:R,autoFocus:b=!1,onError:k,onInput:S,onChange:m,onBlur:T,onReady:y}=t,E=e.prop(null),M=e.prop(0),_=N=>typeof N=="object"&&N!==null&&"map"in N&&typeof N.map=="function",I=i!=null?_(i)?i:e.prop(e.Value.get(i)):e.prop(!1);return e.Use(Ie.Theme,({appearance:N})=>e.html.div(e.Task(()=>Promise.resolve().then(()=>require("../styles-url-CkPTI32j.cjs")),({default:C})=>Le.LinkPortal({id:"beatui-lexical-css",href:C})),e.attr.class("bc-lexical-editor-container"),A==="fixed"?e.attr.class("bc-lexical-editor-container--fixed"):null,e.attr.class(h),e.When(I.map(C=>!C),()=>Ve({editor:E,stateUpdate:M,toolbar:R,readOnly:I,size:"sm"})),Xe({editor:E,stateUpdate:M,readOnly:I}),e.html.div(e.attr.class("bc-lexical-editor"),e.attr.class(`bc-lexical-editor--${A}`),e.attr.contenteditable(i!=null?e.Value.map(i,C=>!C):!0),i!=null?e.attr.class(e.Value.map(i,C=>C?"bc-lexical-editor--readonly":"")):null,e.WithElement(C=>{let v=null;const c=[];return(async()=>{try{const x=s??pe("docked"),f=me(x),d=e.Value.get(a??"markdown"),l=n.createEditor({namespace:O,nodes:f,theme:{heading:{h1:"bc-lexical-h1",h2:"bc-lexical-h2",h3:"bc-lexical-h3",h4:"bc-lexical-h4",h5:"bc-lexical-h5",h6:"bc-lexical-h6"},text:{bold:"bc-lexical-bold",italic:"bc-lexical-italic",underline:"bc-lexical-underline",strikethrough:"bc-lexical-strikethrough",code:"bc-lexical-code"},list:{ul:"bc-lexical-ul",ol:"bc-lexical-ol",listitem:"bc-lexical-li",listitemChecked:"bc-lexical-li-checked",listitemUnchecked:"bc-lexical-li-unchecked"},link:"bc-lexical-link",quote:"bc-lexical-blockquote",code:"bc-lexical-code-block",codeHighlight:{},hashtag:"bc-lexical-hashtag",table:"bc-lexical-table",tableCell:"bc-lexical-table-cell",tableCellHeader:"bc-lexical-table-cell-header",tableRow:"bc-lexical-table-row",mark:"bc-lexical-mark",paragraph:"bc-lexical-paragraph"},onError:g=>{k?k(g,l):console.error("[BeatUI Lexical]",g)},editable:i?!e.Value.get(i):!0,html:{export:xe(),import:ue()}});v=l,E.set(l),l.setRootElement(C);const L=[];if(x.richText?L.push(he(l)):x.plainText&&L.push(be(l)),x.history){const g=typeof x.history=="object"?x.history:void 0;L.push(Ce(l,g))}if(x.clipboard&&L.push(ye(l)),x.list&&L.push(Ee(l)),x.link&&L.push(Oe(l)),x.yjs&&L.push(Me(l,x.yjs)),x.dragon&&L.push(Se(l)),x.table&&L.push(Ne(l)),(await Promise.all(L)).forEach(g=>{g&&c.push(g)}),c.push(Te(l)),c.push($e(l)),c.push(l.registerCommand(n.SELECTION_CHANGE_COMMAND,()=>(M.set(M.value+1),!1),n.COMMAND_PRIORITY_LOW)),c.push(l.registerUpdateListener(({editorState:g,dirtyElements:P,dirtyLeaves:H})=>{(P.size>0||H.size>0)&&M.set(M.value+1),S&&(P.size>0||H.size>0)&&g.read(async()=>{if(d==="markdown"){const U=await K(l);S(U,l)}else if(d==="html"){const U=await Y(l);S(U,l)}else d==="json"&&S(g.toJSON(),l)})})),o!=null){const g=e.Value.get(o);if(g!=null&&(g!==""||d==="json"&&typeof g=="object")){if(d==="markdown"&&typeof g=="string")await V(l,g);else if(d==="html"&&typeof g=="string")await X(l,g);else if(d==="json"&&typeof g=="object")try{const H=JSON.stringify(g),U=l.parseEditorState(H);l.setEditorState(U)}catch(H){console.error("[BeatUI] Failed to parse JSON editor state:",H),k&&k(H instanceof Error?H:new Error(String(H)),l)}}}if(o!=null&&c.push(e.Value.on(o,async g=>{if(g!=null){if(d==="markdown"&&typeof g=="string"){const P=await K(l);g!==P&&await V(l,g)}else if(d==="html"&&typeof g=="string"){const P=await Y(l);g!==P&&await X(l,g)}else if(d==="json"&&typeof g=="object"){const P=JSON.stringify(l.getEditorState().toJSON()),H=JSON.stringify(g);if(P!==H){const U=l.parseEditorState(H);l.setEditorState(U)}}}})),i!=null&&c.push(e.Value.on(i,g=>{l.setEditable(!g)})),c.push(l.registerCommand(n.BLUR_COMMAND,()=>(T&&T(l),m&&l.getEditorState().read(async()=>{if(d==="markdown"){const g=await K(l);m(g,l)}else if(d==="html"){const g=await Y(l);m(g,l)}else d==="json"&&m(l.getEditorState().toJSON(),l)}),!1),n.COMMAND_PRIORITY_LOW)),c.push(N.on(g=>{const P=l.getRootElement();P&&(P.dataset.theme=g)})),b)l.focus();else{const g=l.getRootElement();g&&g===document.activeElement&&g.blur()}y&&y(l)}catch(x){console.error("[BeatUI] Failed to initialize Lexical editor:",x);const f=C;f.textContent="Failed to load Lexical editor."}})(),e.OnDispose(()=>{try{c.forEach(x=>x())}catch{}try{v?.setRootElement(null)}catch{}E.set(null)})}))))};function Ze({editor:t,stateUpdate:o,groups:a=["text-formatting"],readOnly:s=e.signal(!1),size:i="sm"}){const u=e.prop(!1),h=e.prop(0),O=e.prop(0);return e.Use(q.BeatUII18n,A=>e.Ensure(t,R=>{const b=R,k=A.$.lexical,S=c=>a.includes(c),{textFormatActive:m,linkActive:T,dispatch:y,toggleLink:E}=Ye(b,o,{enterUrlMessage:()=>A.value.lexical.enterUrl}),_=Je(s,i)(e.signal(!0)),I=()=>{const c=b.value;if(!c){u.value=!1;return}const D=c.getRootElement();if(!D){u.value=!1;return}const x=window.getSelection();if(!x||x.rangeCount===0||x.isCollapsed){u.value=!1;return}const f=x.anchorNode;if(f&&!D.contains(f)){u.value=!1;return}const l=x.getRangeAt(0).getBoundingClientRect();if(l.width===0&&l.height===0){u.value=!1;return}const L=40,W=8;let g=l.top-L-W;const P=l.left+l.width/2;g<0&&(g=l.bottom+W),h.value=g,O.value=P,u.value=!0},N=o.onChange(I),C=()=>{I()};document.addEventListener("selectionchange",C);const v=e.html.div(e.attr.class("bc-floating-toolbar"),e.style.position("fixed"),e.style.top(h.map(c=>`${c}px`)),e.style.left(O.map(c=>`${c}px`)),e.style.transform("translateX(-50%)"),e.WithElement(c=>{const D=f=>{if(f.key==="Escape"&&u.value){u.value=!1;const d=b.value;d&&d.focus()}},x=f=>{if(u.value&&!c.contains(f.target)){const d=b.value;if(d){const l=d.getRootElement();if(l&&l.contains(f.target))return}u.value=!1}};return document.addEventListener("keydown",D),document.addEventListener("mousedown",x),e.OnDispose(()=>{N(),document.removeEventListener("keydown",D),document.removeEventListener("mousedown",x),document.removeEventListener("selectionchange",C)})}),...S("text-formatting")?[_({active:m("bold"),onClick:y(n.FORMAT_TEXT_COMMAND,"bold"),label:k.map(c=>c.bold),icon:"mdi:format-bold"}),_({active:m("italic"),onClick:y(n.FORMAT_TEXT_COMMAND,"italic"),label:k.map(c=>c.italic),icon:"mdi:format-italic"}),_({active:m("underline"),onClick:y(n.FORMAT_TEXT_COMMAND,"underline"),label:k.map(c=>c.underline),icon:"mdi:format-underline"}),_({active:m("strikethrough"),onClick:y(n.FORMAT_TEXT_COMMAND,"strikethrough"),label:k.map(c=>c.strikethrough),icon:"mdi:format-strikethrough"}),_({active:m("code"),onClick:y(n.FORMAT_TEXT_COMMAND,"code"),label:k.map(c=>c.code),icon:"mdi:code-tags"})]:[],...S("links")?[_({active:T(),onClick:E,label:k.map(c=>c.link),icon:"mdi:link"})]:[],...S("clipboard")?[_({active:e.signal(!1),onClick:()=>{const c=b.value;if(!c)return;const D=c.getRootElement();D&&(D.focus(),document.execCommand("cut"))},label:k.map(c=>c.cut),icon:"mdi:content-cut"}),_({active:e.signal(!1),onClick:()=>{const c=b.value;if(!c)return;const D=c.getRootElement();D&&(D.focus(),document.execCommand("copy"))},label:k.map(c=>c.copy),icon:"mdi:content-copy"}),_({active:e.signal(!1),onClick:()=>{const c=b.value;c&&navigator.clipboard.readText().then(D=>{c.update(()=>{const x=n.$getSelection();n.$isRangeSelection(x)&&x.insertText(D)}),c.focus()}).catch(()=>{})},label:k.map(c=>c.paste),icon:"mdi:content-paste"})]:[]);return e.When(u,()=>v)}))}const ho=[{id:"heading1",label:"Heading 1",description:"Large section heading",icon:"mdi:format-header-1",keywords:["h1","heading","title"],category:"Basic blocks",handler:t=>{t.update(()=>{const o=n.$getSelection();n.$isRangeSelection(o)&&B.$setBlocksType(o,()=>j.$createHeadingNode("h1"))})}},{id:"heading2",label:"Heading 2",description:"Medium section heading",icon:"mdi:format-header-2",keywords:["h2","heading"],category:"Basic blocks",handler:t=>{t.update(()=>{const o=n.$getSelection();n.$isRangeSelection(o)&&B.$setBlocksType(o,()=>j.$createHeadingNode("h2"))})}},{id:"heading3",label:"Heading 3",description:"Small section heading",icon:"mdi:format-header-3",keywords:["h3","heading"],category:"Basic blocks",handler:t=>{t.update(()=>{const o=n.$getSelection();n.$isRangeSelection(o)&&B.$setBlocksType(o,()=>j.$createHeadingNode("h3"))})}},{id:"bullet-list",label:"Bullet List",description:"Create a bulleted list",icon:"mdi:format-list-bulleted",keywords:["ul","unordered","bullets"],category:"Lists",handler:t=>{t.dispatchCommand(F.INSERT_UNORDERED_LIST_COMMAND,void 0)}},{id:"ordered-list",label:"Ordered List",description:"Create a numbered list",icon:"mdi:format-list-numbered",keywords:["ol","numbered","1","2","3"],category:"Lists",handler:t=>{t.dispatchCommand(F.INSERT_ORDERED_LIST_COMMAND,void 0)}},{id:"quote",label:"Quote",description:"Insert a blockquote",icon:"mdi:format-quote-close",keywords:["blockquote","citation"],category:"Basic blocks",handler:t=>{t.update(()=>{const o=n.$getSelection();n.$isRangeSelection(o)&&B.$setBlocksType(o,()=>j.$createQuoteNode())})}},{id:"code-block",label:"Code Block",description:"Insert a code block",icon:"mdi:code-braces",keywords:["code","pre","programming"],category:"Basic blocks",handler:t=>{t.update(()=>{const o=n.$getSelection();n.$isRangeSelection(o)&&B.$setBlocksType(o,()=>ie.$createCodeNode())})}},{id:"divider",label:"Divider",description:"Insert a horizontal rule",icon:"mdi:minus",keywords:["hr","horizontal","line","separator"],category:"Basic blocks",handler:t=>{t.dispatchCommand(ce,void 0)}},{id:"table",label:"Table",description:"Insert a table",icon:"mdi:table",keywords:["table","grid","cells","rows","columns"],category:"Advanced",handler:t=>{t.dispatchCommand(G.INSERT_TABLE_COMMAND,{rows:"3",columns:"3",includeHeaders:!0})}}];function bo({commands:t,isVisible:o,filterText:a,position:s,onSelect:i,onClose:u}){const h=e.prop(0),O=a.map(S=>{const m=S.toLowerCase().trim();return m?t.filter(T=>[T.label.toLowerCase(),T.description?.toLowerCase()||"",...T.keywords?.map(E=>E.toLowerCase())||[]].join(" ").includes(m)):t});O.onChange(()=>{h.value=0});const A=S=>{const m=O.value;if(S>=0&&S<m.length){const T=m[S];i(T)}},R=S=>{if(!o.value)return;const T=O.value.length-1;switch(S.key){case"ArrowDown":S.preventDefault(),h.value=Math.min(h.value+1,T);break;case"ArrowUp":S.preventDefault(),h.value=Math.max(h.value-1,0);break;case"Enter":S.preventDefault(),A(h.value);break;case"Escape":S.preventDefault(),u();break}},b=(S,m)=>{const T=h.map(E=>E===m),y=`slash-cmd-${S.id}`;return e.html.div(e.attr.class("bc-slash-command-palette__item"),e.attr.id(y),e.attr.role("option"),e.aria.selected(T),e.WithElement(E=>{const M=()=>{h.value=m},_=()=>{A(m)};return E.addEventListener("mouseenter",M),E.addEventListener("click",_),e.OnDispose(()=>{E.removeEventListener("mouseenter",M),E.removeEventListener("click",_)})}),typeof S.icon=="string"?e.html.div(e.attr.class("bc-slash-command-palette__icon"),q.Icon({icon:S.icon,size:"sm"})):S.icon,e.html.div(e.attr.class("bc-slash-command-palette__content"),e.html.div(e.attr.class("bc-slash-command-palette__label"),S.label),S.description?e.html.div(e.attr.class("bc-slash-command-palette__description"),S.description):void 0),S.category?e.html.div(e.attr.class("bc-slash-command-palette__category"),S.category):void 0)},k=e.Use(q.BeatUII18n,S=>e.html.div(e.attr.class("bc-slash-command-palette"),e.attr.role("listbox"),e.aria.label(S.$.lexical.map(m=>m.slashCommands)),e.style.position("absolute"),e.style.top(s.map(m=>`${m.top}px`)),e.style.left(s.map(m=>`${m.left}px`)),e.WithElement(()=>(document.addEventListener("keydown",R),e.OnDispose(()=>{document.removeEventListener("keydown",R)}))),e.When(O.map(m=>m.length===0),()=>e.html.div(e.attr.class("bc-slash-command-palette__empty"),S.$.lexical.map(m=>m.noCommandsFound))),e.ForEach(O,(m,T)=>{const y=m.value;return b(y,T.index)})));return e.When(o,()=>k)}const Qe=[{id:"paragraph",label:"Paragraph",icon:"mdi:format-paragraph",handler:t=>{t.update(()=>{const o=n.$getSelection();n.$isRangeSelection(o)&&B.$setBlocksType(o,()=>n.$createParagraphNode())})}},{id:"heading1",label:"Heading 1",icon:"mdi:format-header-1",handler:t=>{t.update(()=>{const o=n.$getSelection();n.$isRangeSelection(o)&&B.$setBlocksType(o,()=>j.$createHeadingNode("h1"))})}},{id:"heading2",label:"Heading 2",icon:"mdi:format-header-2",handler:t=>{t.update(()=>{const o=n.$getSelection();n.$isRangeSelection(o)&&B.$setBlocksType(o,()=>j.$createHeadingNode("h2"))})}},{id:"heading3",label:"Heading 3",icon:"mdi:format-header-3",handler:t=>{t.update(()=>{const o=n.$getSelection();n.$isRangeSelection(o)&&B.$setBlocksType(o,()=>j.$createHeadingNode("h3"))})}},{id:"bullet-list",label:"Bullet List",icon:"mdi:format-list-bulleted",handler:t=>{t.dispatchCommand(F.INSERT_UNORDERED_LIST_COMMAND,void 0)}},{id:"ordered-list",label:"Ordered List",icon:"mdi:format-list-numbered",handler:t=>{t.dispatchCommand(F.INSERT_ORDERED_LIST_COMMAND,void 0)}},{id:"quote",label:"Quote",icon:"mdi:format-quote-close",handler:t=>{t.update(()=>{const o=n.$getSelection();n.$isRangeSelection(o)&&B.$setBlocksType(o,()=>j.$createQuoteNode())})}},{id:"code-block",label:"Code Block",icon:"mdi:code-braces",handler:t=>{t.update(()=>{const o=n.$getSelection();n.$isRangeSelection(o)&&B.$setBlocksType(o,()=>ie.$createCodeNode())})}},{id:"divider",label:"Divider",icon:"mdi:minus",handler:t=>{t.dispatchCommand(ce,void 0)}},{id:"table",label:"Table",icon:"mdi:table",handler:t=>{t.dispatchCommand(G.INSERT_TABLE_COMMAND,{rows:"3",columns:"3",includeHeaders:!0})}}];function et({editor:t,stateUpdate:o,readOnly:a=e.signal(!1),commands:s=Qe}){const i=e.prop(!1),u=e.prop(!1),h=e.prop(0),O=e.prop(0);return e.Use(q.BeatUII18n,A=>e.Ensure(t,R=>{const b=R;let k=null,S=!1,m=null;const T=24,y=4,E=200,M=f=>{if(f===k&&i.value)return;k=f;const d=f.getBoundingClientRect();h.value=d.top,O.value=d.left-T-y,i.value=!0},_=()=>{m!=null&&(clearTimeout(m),m=null)},I=()=>{u.value||(_(),m=setTimeout(()=>{m=null,u.value||(i.value=!1,k=null)},E))},N=()=>{const f=b.value;if(!f)return;const d=f.getRootElement();d&&(c(d),f.getEditorState().read(()=>{const l=n.$getSelection();if(n.$isRangeSelection(l))try{const W=l.anchor.getNode().getTopLevelElementOrThrow(),g=f.getElementByKey(W.getKey());g&&M(g)}catch{}}))},C=f=>{if(u.value)return;const d=b.value;if(!d)return;const l=d.getRootElement();if(l)for(const L of Array.from(l.children)){const W=L.getBoundingClientRect();if(f.clientY>=W.top&&f.clientY<=W.bottom){_(),M(L);return}}},v=()=>{I()},c=f=>{S||(S=!0,f.addEventListener("mousemove",C),f.addEventListener("mouseleave",v))},D=o.onChange(N);return[e.OnDispose(()=>{D(),_();const f=b.value;if(f){const d=f.getRootElement();d&&S&&(d.removeEventListener("mousemove",C),d.removeEventListener("mouseleave",v))}}),e.When(i,()=>e.html.div(e.attr.class("bc-block-handle"),e.style.position("fixed"),e.style.top(h.map(f=>`${f}px`)),e.style.left(O.map(f=>`${f}px`)),e.on.mouseenter(_),e.on.mouseleave(()=>I()),e.WithElement(f=>{f.addEventListener("mousedown",d=>{d.preventDefault()})}),e.html.button(e.attr.class("bc-block-handle__button"),e.attr.type("button"),e.attr.title(A.$.lexical.map(f=>f.changeBlockType)),e.attr.disabled(a),q.Icon({icon:"mdi:drag-horizontal-variant",size:"sm"}),e.WithElement(f=>{const d=new MutationObserver(()=>{const l=f.getAttribute("aria-expanded")==="true";u.value=l});return d.observe(f,{attributes:!0,attributeFilter:["aria-expanded"]}),e.OnDispose(()=>d.disconnect())}),J.Menu({items:()=>s.map(f=>J.MenuItem({key:f.id,content:f.label,before:q.Icon({icon:f.icon,size:"sm"}),onClick:()=>{const d=b.value;d&&(f.handler(d),d.focus())}})),placement:"bottom-start",showOn:"click",showDelay:0,hideDelay:0,mainAxisOffset:4,onClose:()=>{const f=b.value;f&&f.focus()},ariaLabel:A.value.lexical.blockTypes}))))]}))}const Co=t=>{const{value:o,format:a,plugins:s,readOnly:i,placeholder:u,class:h,namespace:O="BeatUILexical",heightMode:A="auto",floatingToolbarGroups:R,autoFocus:b=!1,onError:k,onInput:S,onChange:m,onBlur:T,onReady:y}=t,E=e.prop(null),M=e.prop(0),_=N=>typeof N=="object"&&N!==null&&"map"in N&&typeof N.map=="function",I=i!=null?_(i)?i:e.prop(e.Value.get(i)):e.prop(!1);return e.Use(Ie.Theme,({appearance:N})=>e.html.div(e.Task(()=>Promise.resolve().then(()=>require("../styles-url-CkPTI32j.cjs")),({default:C})=>Le.LinkPortal({id:"beatui-lexical-css",href:C})),e.attr.class("bc-lexical-editor-container"),A==="fixed"?e.attr.class("bc-lexical-editor-container--fixed"):null,e.attr.class(h),Ze({editor:E,stateUpdate:M,groups:R??["text-formatting","links"],readOnly:I}),et({editor:E,stateUpdate:M,readOnly:I}),Xe({editor:E,stateUpdate:M,readOnly:I}),e.html.div(e.attr.class("bc-lexical-editor"),e.attr.class(`bc-lexical-editor--${A}`),e.attr.contenteditable(i!=null?e.Value.map(i,C=>!C):!0),i!=null?e.attr.class(e.Value.map(i,C=>C?"bc-lexical-editor--readonly":"")):null,e.WithElement(C=>{let v=null;const c=[];return(async()=>{try{const x=s??pe("contextual"),f=me(x),d=e.Value.get(a??"markdown"),l=n.createEditor({namespace:O,nodes:f,theme:{heading:{h1:"bc-lexical-h1",h2:"bc-lexical-h2",h3:"bc-lexical-h3",h4:"bc-lexical-h4",h5:"bc-lexical-h5",h6:"bc-lexical-h6"},text:{bold:"bc-lexical-bold",italic:"bc-lexical-italic",underline:"bc-lexical-underline",strikethrough:"bc-lexical-strikethrough",code:"bc-lexical-code"},list:{ul:"bc-lexical-ul",ol:"bc-lexical-ol",listitem:"bc-lexical-li",listitemChecked:"bc-lexical-li-checked",listitemUnchecked:"bc-lexical-li-unchecked"},link:"bc-lexical-link",quote:"bc-lexical-blockquote",code:"bc-lexical-code-block",codeHighlight:{},hashtag:"bc-lexical-hashtag",table:"bc-lexical-table",tableCell:"bc-lexical-table-cell",tableCellHeader:"bc-lexical-table-cell-header",tableRow:"bc-lexical-table-row",mark:"bc-lexical-mark",paragraph:"bc-lexical-paragraph"},onError:g=>{k?k(g,l):console.error("[BeatUI Lexical]",g)},editable:i?!e.Value.get(i):!0,html:{export:xe(),import:ue()}});v=l,E.set(l),l.setRootElement(C);const L=[];if(x.richText?L.push(he(l)):x.plainText&&L.push(be(l)),x.history){const g=typeof x.history=="object"?x.history:void 0;L.push(Ce(l,g))}if(x.clipboard&&L.push(ye(l)),x.list&&L.push(Ee(l)),x.link&&L.push(Oe(l)),x.yjs&&L.push(Me(l,x.yjs)),x.dragon&&L.push(Se(l)),x.table&&L.push(Ne(l)),(await Promise.all(L)).forEach(g=>{g&&c.push(g)}),c.push(Te(l)),c.push($e(l)),c.push(l.registerCommand(n.SELECTION_CHANGE_COMMAND,()=>(M.set(M.value+1),!1),n.COMMAND_PRIORITY_LOW)),c.push(l.registerUpdateListener(({editorState:g,dirtyElements:P,dirtyLeaves:H})=>{(P.size>0||H.size>0)&&M.set(M.value+1),S&&(P.size>0||H.size>0)&&g.read(async()=>{if(d==="markdown"){const U=await K(l);S(U,l)}else if(d==="html"){const U=await Y(l);S(U,l)}else d==="json"&&S(g.toJSON(),l)})})),o!=null){const g=e.Value.get(o);if(g!=null&&(g!==""||d==="json"&&typeof g=="object")){if(d==="markdown"&&typeof g=="string")await V(l,g);else if(d==="html"&&typeof g=="string")await X(l,g);else if(d==="json"&&typeof g=="object")try{const H=JSON.stringify(g),U=l.parseEditorState(H);l.setEditorState(U)}catch(H){console.error("[BeatUI] Failed to parse JSON editor state:",H),k&&k(H instanceof Error?H:new Error(String(H)),l)}}}if(o!=null&&c.push(e.Value.on(o,async g=>{if(g!=null){if(d==="markdown"&&typeof g=="string"){const P=await K(l);g!==P&&await V(l,g)}else if(d==="html"&&typeof g=="string"){const P=await Y(l);g!==P&&await X(l,g)}else if(d==="json"&&typeof g=="object"){const P=JSON.stringify(l.getEditorState().toJSON()),H=JSON.stringify(g);if(P!==H){const U=l.parseEditorState(H);l.setEditorState(U)}}}})),i!=null&&c.push(e.Value.on(i,g=>{l.setEditable(!g)})),c.push(l.registerCommand(n.BLUR_COMMAND,()=>(T&&T(l),m&&l.getEditorState().read(async()=>{if(d==="markdown"){const g=await K(l);m(g,l)}else if(d==="html"){const g=await Y(l);m(g,l)}else d==="json"&&m(l.getEditorState().toJSON(),l)}),!1),n.COMMAND_PRIORITY_LOW)),c.push(N.on(g=>{const P=l.getRootElement();P&&(P.dataset.theme=g)})),b)l.focus();else{const g=l.getRootElement();g&&g===document.activeElement&&g.blur()}y&&y(l)}catch(x){console.error("[BeatUI] Failed to initialize Lexical editor:",x);const f=C;f.textContent="Failed to load Lexical editor."}})(),e.OnDispose(()=>{try{c.forEach(x=>x())}catch{}try{v?.setRootElement(null)}catch{}E.set(null)})}))))},yo=t=>{const{value:o,before:a,after:s,onChange:i,onInput:u,onBlur:h,disabled:O,hasError:A,name:R,placeholder:b,id:k,required:S,tabIndex:m,size:T,class:y,namespace:E,format:M,plugins:_,readOnly:I,onError:N,onReady:C,marks:v,autoFocus:c}=t,D=O!=null&&I!=null?e.computedOf(O,I)((x,f)=>(x??!1)||(f??!1)):O??I;return Ct.InputContainer({disabled:O,hasError:A,size:T,baseContainer:!0,growInput:!0,focusableSelector:"[contenteditable]",before:a,after:s,input:e.html.div(e.attr.class("bc-lexical-editor-input"),e.attr.name(R),e.attr.id(k),S!=null?e.aria.required(S):null,m!=null?e.attr.tabindex(m):null,A!=null?e.attr.class(e.Value.map(A,x=>x?"bc-lexical-editor-input--error":"")):null,Ke({value:o,format:M??"markdown",plugins:_,readOnly:D,placeholder:b,namespace:E,class:y,autoFocus:c,onError:N,onReady:C,onInput:u?(x,f)=>{u(x)}:void 0,onChange:i?(x,f)=>{i(x)}:void 0,onBlur:h?x=>{h()}:void 0}))})};Object.defineProperty(exports,"INSERT_CHECK_LIST_COMMAND",{enumerable:!0,get:()=>F.INSERT_CHECK_LIST_COMMAND});Object.defineProperty(exports,"INSERT_ORDERED_LIST_COMMAND",{enumerable:!0,get:()=>F.INSERT_ORDERED_LIST_COMMAND});Object.defineProperty(exports,"INSERT_UNORDERED_LIST_COMMAND",{enumerable:!0,get:()=>F.INSERT_UNORDERED_LIST_COMMAND});Object.defineProperty(exports,"REMOVE_LIST_COMMAND",{enumerable:!0,get:()=>F.REMOVE_LIST_COMMAND});Object.defineProperty(exports,"BLUR_COMMAND",{enumerable:!0,get:()=>n.BLUR_COMMAND});Object.defineProperty(exports,"CLEAR_EDITOR_COMMAND",{enumerable:!0,get:()=>n.CLEAR_EDITOR_COMMAND});Object.defineProperty(exports,"CLICK_COMMAND",{enumerable:!0,get:()=>n.CLICK_COMMAND});Object.defineProperty(exports,"COMMAND_PRIORITY_CRITICAL",{enumerable:!0,get:()=>n.COMMAND_PRIORITY_CRITICAL});Object.defineProperty(exports,"COMMAND_PRIORITY_EDITOR",{enumerable:!0,get:()=>n.COMMAND_PRIORITY_EDITOR});Object.defineProperty(exports,"COMMAND_PRIORITY_HIGH",{enumerable:!0,get:()=>n.COMMAND_PRIORITY_HIGH});Object.defineProperty(exports,"COMMAND_PRIORITY_LOW",{enumerable:!0,get:()=>n.COMMAND_PRIORITY_LOW});Object.defineProperty(exports,"COMMAND_PRIORITY_NORMAL",{enumerable:!0,get:()=>n.COMMAND_PRIORITY_NORMAL});Object.defineProperty(exports,"COPY_COMMAND",{enumerable:!0,get:()=>n.COPY_COMMAND});Object.defineProperty(exports,"CUT_COMMAND",{enumerable:!0,get:()=>n.CUT_COMMAND});Object.defineProperty(exports,"DecoratorNode",{enumerable:!0,get:()=>n.DecoratorNode});Object.defineProperty(exports,"ElementNode",{enumerable:!0,get:()=>n.ElementNode});Object.defineProperty(exports,"FOCUS_COMMAND",{enumerable:!0,get:()=>n.FOCUS_COMMAND});Object.defineProperty(exports,"FORMAT_ELEMENT_COMMAND",{enumerable:!0,get:()=>n.FORMAT_ELEMENT_COMMAND});Object.defineProperty(exports,"FORMAT_TEXT_COMMAND",{enumerable:!0,get:()=>n.FORMAT_TEXT_COMMAND});Object.defineProperty(exports,"INDENT_CONTENT_COMMAND",{enumerable:!0,get:()=>n.INDENT_CONTENT_COMMAND});Object.defineProperty(exports,"INSERT_PARAGRAPH_COMMAND",{enumerable:!0,get:()=>n.INSERT_PARAGRAPH_COMMAND});Object.defineProperty(exports,"KEY_ENTER_COMMAND",{enumerable:!0,get:()=>n.KEY_ENTER_COMMAND});Object.defineProperty(exports,"KEY_ESCAPE_COMMAND",{enumerable:!0,get:()=>n.KEY_ESCAPE_COMMAND});Object.defineProperty(exports,"KEY_TAB_COMMAND",{enumerable:!0,get:()=>n.KEY_TAB_COMMAND});Object.defineProperty(exports,"OUTDENT_CONTENT_COMMAND",{enumerable:!0,get:()=>n.OUTDENT_CONTENT_COMMAND});Object.defineProperty(exports,"PASTE_COMMAND",{enumerable:!0,get:()=>n.PASTE_COMMAND});Object.defineProperty(exports,"REDO_COMMAND",{enumerable:!0,get:()=>n.REDO_COMMAND});Object.defineProperty(exports,"SELECTION_CHANGE_COMMAND",{enumerable:!0,get:()=>n.SELECTION_CHANGE_COMMAND});Object.defineProperty(exports,"TextNode",{enumerable:!0,get:()=>n.TextNode});Object.defineProperty(exports,"UNDO_COMMAND",{enumerable:!0,get:()=>n.UNDO_COMMAND});Object.defineProperty(exports,"createCommand",{enumerable:!0,get:()=>n.createCommand});exports.$createHorizontalRuleNode=se;exports.$isHorizontalRuleNode=Ue;exports.BareEditor=Ke;exports.BlockHandle=et;exports.ContextualEditor=Co;exports.DEFAULT_BLOCK_COMMANDS=Qe;exports.DEFAULT_INLINE_STYLE_PROPERTIES=qe;exports.DEFAULT_SLASH_COMMANDS=ho;exports.DockedEditor=po;exports.FloatingToolbar=Ze;exports.HR_TRANSFORMER=Ge;exports.HorizontalRuleNode=oe;exports.INSERT_HORIZONTAL_RULE_COMMAND=ce;exports.INSERT_IMAGE_COMMAND=xt;exports.LexicalEditorInput=yo;exports.LexicalToolbar=Ve;exports.SlashCommandPalette=bo;exports.TOGGLE_SLASH_COMMAND_PALETTE=Mt;exports.TOOLBAR_SEPARATOR=Ot;exports.applyMark=Ut;exports.buildInlineStyleImportMap=We;exports.buildStyleImportMap=ue;exports.createDefaultPluginConfig=pe;exports.createHeadlessEditor=de;exports.executeSlashCommand=St;exports.exportEditorToFile=_t;exports.exportToHtml=Y;exports.exportToMarkdown=K;exports.getCharacterCount=Wt;exports.getMarkdownTransformers=kt;exports.getNodesForPlugins=me;exports.getSelectionInfo=qt;exports.getTextContent=we;exports.getWordCount=Kt;exports.htmlToLexicalJson=ro;exports.importFileToEditor=vt;exports.importFromHtml=X;exports.importFromMarkdown=V;exports.insertTable=At;exports.insertTextAtCursor=Yt;exports.lexicalJsonToHtml=io;exports.lexicalJsonToMarkdown=no;exports.loadLexicalCore=ze;exports.loadOffsetUtils=Jt;exports.markdownToLexicalJson=oo;exports.registerAutoLinkPlugin=Bt;exports.registerClipboardPlugin=ye;exports.registerCodePlugin=Lt;exports.registerCodeShikiPlugin=It;exports.registerDragonPlugin=Se;exports.registerHashtagPlugin=$t;exports.registerHistoryPlugin=Ce;exports.registerHorizontalRulePlugin=Te;exports.registerLinkPlugin=Oe;exports.registerListPlugin=Ee;exports.registerMarkPlugin=jt;exports.registerOverflowPlugin=Gt;exports.registerPlainTextPlugin=be;exports.registerRichTextPlugin=he;exports.registerSlashCommandsPlugin=Nt;exports.registerTablePlugin=Ne;exports.registerYjsPlugin=Me;exports.removeMark=zt;
@@ -29,11 +29,11 @@ import { Use as ue, html as D, Task as Ke, attr as f, Value as U, WithElement as
29
29
  import { L as qe } from "../link-portal-Cr2l9f3k.js";
30
30
  import { T as Ye } from "../theme-kQZEeusG.js";
31
31
  import { M as Et, a as le, b as Fo } from "../menu-BkqFGcXg.js";
32
- import { B as ye, I as Z } from "../translations-DT5QQ4WO.js";
33
- import { E as Ho, a as gt } from "../editor-toolbar-group-DWUWUO-B.js";
32
+ import { B as ye, I as Z } from "../translations-BCMP-h52.js";
33
+ import { E as Ho, a as gt } from "../editor-toolbar-group-FpOHrmtx.js";
34
34
  import { delayedAnimationFrame as Po } from "@tempots/std";
35
- import { b as Bo, c as $o } from "../toolbar-BKan3NHw.js";
36
- import { I as Uo } from "../input-container-CO3DNqpp.js";
35
+ import { b as Bo, c as $o } from "../toolbar-BF2L6WKC.js";
36
+ import { I as Uo } from "../input-container-8JFB11xN.js";
37
37
  const Vn = { separator: !0 };
38
38
  class ge extends co {
39
39
  static getType() {
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./translations-EwEmHe3v.cjs"),r={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",dateRangeStart:"Start",dateRangeEnd:"End",dateRangeNoLimit:"No limit",dateRangeSelectDate:"Select date",unknownType:"Onbekend type",filesInputInstructions:(e,n,t)=>{let a=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 l=[];if(e!=null&&e>1&&l.push(`tot ${e} bestanden`),n&&t){const o=i.formatFileSize(n,{units:t});l.push(`max ${o} elk`)}l.length>0&&(a+=` (${l.join(", ")})`)}return a},paginationLabel:"Paginering",paginationRange:(e,n,t,a)=>a>t?`Rijen ${e} tot ${n} van ${t} van ${a}`:`Rijen ${e} tot ${n} van ${t}`,firstPage:"Eerste pagina",previousPage:"Vorige pagina",nextPage:"Volgende pagina",lastPage:"Laatste pagina",breadcrumbs:"Kruimelpad",commandPalette:"Opdrachtenpalet",typeACommand:"Typ een opdracht...",noResultsFound:"Geen resultaten gevonden",noMatchingCommands:"Geen overeenkomende opdrachten",appearanceSystem:"Systeem",appearanceLight:"Licht",appearanceDark:"Donker",ok:"OK",changeTypeConfirmation:"Het wijzigen van het type wist de huidige waarde. Doorgaan?",notifications:"Meldingen",markAllAsRead:"Alles als gelezen markeren",noNotifications:"Geen meldingen",schemaConflictsDetected:"Schemaconflicten gedetecteerd",schemaViolationsDetected:"Schemaschendingen gedetecteerd",properties:"Eigenschappen",uploading:"Uploaden...",dropFilesOrBrowse:"Sleep bestanden hierheen of klik om te bladeren",acceptedTypes:e=>`Toegestane typen: ${e}`,enterUrlPrompt:"Voer URL in:",exceeded:"(overschreden)",pdfPreview:"PDF-voorbeeld",lexical:{fontFamily:"Lettertype",fontSize:"Lettergrootte",lineHeight:"Regelhoogte",fontColor:"Letterkleur",highlightColor:"Markeringskleur",backgroundColor:"Achtergrondkleur",bold:"Vet",italic:"Cursief",underline:"Onderstrepen",strikethrough:"Doorhalen",code:"Code",clearFormatting:"Opmaak wissen",normal:"Normaal",heading:e=>`Kop ${e}`,bulletList:"Opsommingstekens",orderedList:"Genummerde lijst",checkList:"Controlelijst",indent:"Inspringen",outdent:"Uitspringen",blockquote:"Citaat",codeBlock:"Codeblok",horizontalRule:"Horizontale lijn",insertTable:"Tabel invoegen",link:"Link",undo:"Ongedaan maken",redo:"Opnieuw",cut:"Knippen",copy:"Kopiëren",paste:"Plakken",defaultOption:"Standaard",slashCommands:"Schuine-streepopdrachten",noCommandsFound:"Geen opdrachten gevonden",changeBlockType:"Bloktype wijzigen",blockTypes:"Bloktypen",enterUrl:"Voer URL in:",tableActions:"Table actions",insertRowAbove:"Insert row above",insertRowBelow:"Insert row below",insertColumnLeft:"Insert column left",insertColumnRight:"Insert column right",deleteRow:"Delete row",deleteColumn:"Delete column",deleteTable:"Delete table"},dataTable:{sortAscending:"Oplopend sorteren",sortDescending:"Aflopend sorteren",clearSort:"Sortering wissen",filterPlaceholder:"Filteren...",clearFilter:"Filter wissen",selectAll:"Alles selecteren",deselectAll:"Alles deselecteren",selectedCount:e=>`${e} geselecteerd`,resetAll:"Alles resetten",noResults:"Geen resultaten gevonden",loading:"Laden...",filterPanelAddCondition:"Voorwaarde toevoegen",filterPanelApply:"Toepassen",filterPanelClear:"Filters wissen",filterPanelAnd:"EN",filterPanelOr:"OF",filterPanelContains:"Bevat",filterPanelNotContains:"Bevat niet",filterPanelEquals:"Is gelijk aan",filterPanelNotEquals:"Is niet gelijk aan",filterPanelStartsWith:"Begint met",filterPanelEndsWith:"Eindigt met",filterPanelIsNull:"Is leeg",filterPanelIsNotNull:"Is niet leeg",filterPanelGt:"Groter dan",filterPanelGte:"Groter of gelijk",filterPanelLt:"Kleiner dan",filterPanelLte:"Kleiner of gelijk",filterPanelBetween:"Tussen",filterPanelValuePlaceholder:"Waarde...",sortMultiHint:"Houd Shift ingedrukt om meerdere kolommen te sorteren",columnVisibility:"Kolommen",showAllColumns:"Alles weergeven",menuSortAsc:"Oplopend sorteren",menuSortDesc:"Aflopend sorteren",menuClearSort:"Sortering wissen",menuHideColumn:"Kolom verbergen",menuChooseColumns:"Kolommen kiezen",menuResetColumns:"Kolommen herstellen",menuFilter:"Filteren",rowCount:(e,n)=>`Rijen: ${e} Totaal rijen: ${n}`,filterTagsPlaceholder:"Waarden selecteren...",groupCount:e=>`${e} items`,collapseGroup:"Groep inklappen",expandGroup:"Groep uitklappen",describeFilter:{textContains:(e,n)=>`${e} bevat "${n}"`,textNotContains:(e,n)=>`${e} bevat niet "${n}"`,textEquals:(e,n)=>`${e} is gelijk aan "${n}"`,textNotEquals:(e,n)=>`${e} is niet gelijk aan "${n}"`,textStartsWith:(e,n)=>`${e} begint met "${n}"`,textEndsWith:(e,n)=>`${e} eindigt met "${n}"`,compareEq:(e,n)=>`${e} = ${n}`,compareNeq:(e,n)=>`${e} ≠ ${n}`,compareGt:(e,n)=>`${e} > ${n}`,compareGte:(e,n)=>`${e} ≥ ${n}`,compareLt:(e,n)=>`${e} < ${n}`,compareLte:(e,n)=>`${e} ≤ ${n}`,rangeBetween:(e,n,t)=>`${e} tussen ${n} en ${t}`,rangeGte:(e,n)=>`${e} ≥ ${n}`,rangeLte:(e,n)=>`${e} ≤ ${n}`,setIn:(e,n)=>`${e} in [${n}]`,setNotIn:(e,n)=>`${e} niet in [${n}]`,booleanIs:(e,n)=>`${e} is ${n}`,isNull:e=>`${e} is leeg`,isNotNull:e=>`${e} is niet leeg`,compositeAnd:e=>e.join(" EN "),compositeOr:e=>e.join(" OF ")}},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"},carousel:{label:"Carrousel",previousSlide:"Vorige dia",nextSlide:"Volgende dia",slideNavigation:"Dia-navigatie",slideOfTotal:(e,n)=>`Dia ${e} van ${n}`,goToSlide:e=>`Ga naar dia ${e}`},datePicker:{label:"Datumkiezer",previousYear:"Vorig jaar",previousMonth:"Vorige maand",selectMonth:"Maand selecteren",selectYear:"Jaar selecteren",nextMonth:"Volgende maand",nextYear:"Volgend jaar",previousYears:e=>`Vorige ${e} jaar`,nextYears:e=>`Volgende ${e} jaar`,dateRangePickerLabel:"Datumbereikkiezer",monthNames:["Januari","Februari","Maart","April","Mei","Juni","Juli","Augustus","September","Oktober","November","December"],shortMonthNames:["Jan","Feb","Mrt","Apr","Mei","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],dayNames:["Zo","Ma","Di","Wo","Do","Vr","Za"]},timePicker:{label:"Tijdkiezer",hoursLabel:"HH",minutesLabel:"MM",secondsLabel:"SS",selectHours:"Uren selecteren",selectMinutes:"Minuten selecteren",selectSeconds:"Seconden selecteren",selectPeriod:"AM/PM selecteren",nowLabel:"Nu"},timeSelectTime:"Tijd selecteren",dateTimeSelectDateTime:"Datum en tijd selecteren",colorPicker:{hue:"Tint",saturation:"Verzadiging",lightness:"Helderheid",alpha:"Alpha",red:"Rood",green:"Groen",blue:"Blauw",hex:"Hex",whiteness:"Witheid",blackness:"Zwartheid",chroma:"Chroma"},spotlight:{placeholder:"Zoeken...",noResults:"Geen resultaten gevonden",recentItems:"Recent",close:"Sluiten"},virtualList:{listLabel:"Scrollbare lijst"},stepper:{step:"Stap",stepOfTotal:(e,n)=>`Stap ${e} van ${n}`,completed:"Voltooid",next:"Volgende",previous:"Vorige",complete:"Voltooien"},sortableList:{dragHandle:"Sleep om te herordenen"},transferList:{available:"Beschikbaar",selected:"Geselecteerd",moveRight:"Naar geselecteerd verplaatsen",moveLeft:"Naar beschikbaar verplaatsen",moveAllRight:"Alles naar geselecteerd",moveAllLeft:"Alles naar beschikbaar",searchAvailable:"Beschikbare items doorzoeken…",searchSelected:"Geselecteerde items doorzoeken…"},copyButton:{copied:"Gekopieerd!",copyToClipboard:"Kopiëren naar klembord"},numberStepper:{increment:"Verhogen",decrement:"Verlagen",value:"Waarde"},statCard:{trendUp:"Stijgend",trendDown:"Dalend",trendFlat:"Geen verandering"},otpInputLabel:"Eenmalig wachtwoord invoer",otpDigitLabel:(e,n)=>`Cijfer ${e} van ${n}`,scrollableGridView:"Scrollbaar rasteroverzicht",onboardingTour:{label:"Begeleide rondleiding",stepIndicator:(e,n)=>`Stap ${e} van ${n}`,skip:"Overslaan",previous:"Vorige",next:"Volgende",finish:"Voltooien"},searchPlaceholder:"Zoeken",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=r;exports.nl=r;
@@ -1,4 +1,4 @@
1
- import { f as i } from "./translations-DT5QQ4WO.js";
1
+ import { f as o } from "./translations-BCMP-h52.js";
2
2
  const s = {
3
3
  loadingExtended: "Laden, even geduld",
4
4
  loadingShort: "Laden...",
@@ -57,24 +57,29 @@ const s = {
57
57
  clearAllFiles: "Alle bestanden wissen",
58
58
  // inputs reset
59
59
  clearValue: "Waarde wissen",
60
+ // Date range select
61
+ dateRangeStart: "Start",
62
+ dateRangeEnd: "End",
63
+ dateRangeNoLimit: "No limit",
64
+ dateRangeSelectDate: "Select date",
60
65
  unknownType: "Onbekend type",
61
66
  filesInputInstructions: (e, n, t) => {
62
- let l = e == null || e > 1 ? "Klik om te kiezen of sleep bestanden hierheen" : "Klik om te kiezen of sleep een bestand hierheen";
67
+ let a = e == null || e > 1 ? "Klik om te kiezen of sleep bestanden hierheen" : "Klik om te kiezen of sleep een bestand hierheen";
63
68
  if (e || n) {
64
- const o = [];
65
- if (e != null && e > 1 && o.push(`tot ${e} bestanden`), n && t) {
66
- const a = i(n, {
69
+ const l = [];
70
+ if (e != null && e > 1 && l.push(`tot ${e} bestanden`), n && t) {
71
+ const r = o(n, {
67
72
  units: t
68
73
  });
69
- o.push(`max ${a} elk`);
74
+ l.push(`max ${r} elk`);
70
75
  }
71
- o.length > 0 && (l += ` (${o.join(", ")})`);
76
+ l.length > 0 && (a += ` (${l.join(", ")})`);
72
77
  }
73
- return l;
78
+ return a;
74
79
  },
75
80
  // Pagination
76
81
  paginationLabel: "Paginering",
77
- paginationRange: (e, n, t, l) => l > t ? `Rijen ${e} tot ${n} van ${t} van ${l}` : `Rijen ${e} tot ${n} van ${t}`,
82
+ paginationRange: (e, n, t, a) => a > t ? `Rijen ${e} tot ${n} van ${t} van ${a}` : `Rijen ${e} tot ${n} van ${t}`,
78
83
  firstPage: "Eerste pagina",
79
84
  previousPage: "Vorige pagina",
80
85
  nextPage: "Volgende pagina",
@@ -247,6 +252,154 @@ const s = {
247
252
  horizontalRule: "Horizontal Rule",
248
253
  linkUrlPlaceholder: "https://example.com"
249
254
  },
255
+ // Carousel
256
+ carousel: {
257
+ label: "Carrousel",
258
+ previousSlide: "Vorige dia",
259
+ nextSlide: "Volgende dia",
260
+ slideNavigation: "Dia-navigatie",
261
+ slideOfTotal: (e, n) => `Dia ${e} van ${n}`,
262
+ goToSlide: (e) => `Ga naar dia ${e}`
263
+ },
264
+ // Date picker
265
+ datePicker: {
266
+ label: "Datumkiezer",
267
+ previousYear: "Vorig jaar",
268
+ previousMonth: "Vorige maand",
269
+ selectMonth: "Maand selecteren",
270
+ selectYear: "Jaar selecteren",
271
+ nextMonth: "Volgende maand",
272
+ nextYear: "Volgend jaar",
273
+ previousYears: (e) => `Vorige ${e} jaar`,
274
+ nextYears: (e) => `Volgende ${e} jaar`,
275
+ dateRangePickerLabel: "Datumbereikkiezer",
276
+ monthNames: [
277
+ "Januari",
278
+ "Februari",
279
+ "Maart",
280
+ "April",
281
+ "Mei",
282
+ "Juni",
283
+ "Juli",
284
+ "Augustus",
285
+ "September",
286
+ "Oktober",
287
+ "November",
288
+ "December"
289
+ ],
290
+ shortMonthNames: [
291
+ "Jan",
292
+ "Feb",
293
+ "Mrt",
294
+ "Apr",
295
+ "Mei",
296
+ "Jun",
297
+ "Jul",
298
+ "Aug",
299
+ "Sep",
300
+ "Okt",
301
+ "Nov",
302
+ "Dec"
303
+ ],
304
+ dayNames: ["Zo", "Ma", "Di", "Wo", "Do", "Vr", "Za"]
305
+ },
306
+ // Time picker
307
+ timePicker: {
308
+ label: "Tijdkiezer",
309
+ hoursLabel: "HH",
310
+ minutesLabel: "MM",
311
+ secondsLabel: "SS",
312
+ selectHours: "Uren selecteren",
313
+ selectMinutes: "Minuten selecteren",
314
+ selectSeconds: "Seconden selecteren",
315
+ selectPeriod: "AM/PM selecteren",
316
+ nowLabel: "Nu"
317
+ },
318
+ // Time select
319
+ timeSelectTime: "Tijd selecteren",
320
+ dateTimeSelectDateTime: "Datum en tijd selecteren",
321
+ // Color picker
322
+ colorPicker: {
323
+ hue: "Tint",
324
+ saturation: "Verzadiging",
325
+ lightness: "Helderheid",
326
+ alpha: "Alpha",
327
+ red: "Rood",
328
+ green: "Groen",
329
+ blue: "Blauw",
330
+ hex: "Hex",
331
+ whiteness: "Witheid",
332
+ blackness: "Zwartheid",
333
+ chroma: "Chroma"
334
+ },
335
+ // Spotlight
336
+ spotlight: {
337
+ placeholder: "Zoeken...",
338
+ noResults: "Geen resultaten gevonden",
339
+ recentItems: "Recent",
340
+ close: "Sluiten"
341
+ },
342
+ // Virtual list
343
+ virtualList: {
344
+ listLabel: "Scrollbare lijst"
345
+ },
346
+ // Stepper
347
+ stepper: {
348
+ step: "Stap",
349
+ stepOfTotal: (e, n) => `Stap ${e} van ${n}`,
350
+ completed: "Voltooid",
351
+ next: "Volgende",
352
+ previous: "Vorige",
353
+ complete: "Voltooien"
354
+ },
355
+ // Sortable list
356
+ sortableList: {
357
+ dragHandle: "Sleep om te herordenen"
358
+ },
359
+ // Transfer list
360
+ transferList: {
361
+ available: "Beschikbaar",
362
+ selected: "Geselecteerd",
363
+ moveRight: "Naar geselecteerd verplaatsen",
364
+ moveLeft: "Naar beschikbaar verplaatsen",
365
+ moveAllRight: "Alles naar geselecteerd",
366
+ moveAllLeft: "Alles naar beschikbaar",
367
+ searchAvailable: "Beschikbare items doorzoeken…",
368
+ searchSelected: "Geselecteerde items doorzoeken…"
369
+ },
370
+ // Copy button
371
+ copyButton: {
372
+ copied: "Gekopieerd!",
373
+ copyToClipboard: "Kopiëren naar klembord"
374
+ },
375
+ // Number stepper
376
+ numberStepper: {
377
+ increment: "Verhogen",
378
+ decrement: "Verlagen",
379
+ value: "Waarde"
380
+ },
381
+ // Stat card
382
+ statCard: {
383
+ trendUp: "Stijgend",
384
+ trendDown: "Dalend",
385
+ trendFlat: "Geen verandering"
386
+ },
387
+ // OTP input
388
+ otpInputLabel: "Eenmalig wachtwoord invoer",
389
+ otpDigitLabel: (e, n) => `Cijfer ${e} van ${n}`,
390
+ // Nine-slice scroll view
391
+ scrollableGridView: "Scrollbaar rasteroverzicht",
392
+ // Onboarding tour
393
+ onboardingTour: {
394
+ label: "Begeleide rondleiding",
395
+ stepIndicator: (e, n) => `Stap ${e} van ${n}`,
396
+ skip: "Overslaan",
397
+ previous: "Vorige",
398
+ next: "Volgende",
399
+ finish: "Voltooien"
400
+ },
401
+ // Combobox
402
+ searchPlaceholder: "Zoeken",
250
403
  // PDF Page Viewer
251
404
  pdfPageViewer: {
252
405
  loading: "PDF laden...",
@@ -1,8 +1,8 @@
1
- import { C as x } from "./text-input-BAn02BzO.js";
1
+ import { C as x } from "./text-input-NJypZSnE.js";
2
2
  import { Use as E, input as j, attr as t, coalesce as A, Empty as g, on as p, emitValue as w, prop as O, computedOf as y, html as u, aria as D, When as B, Fragment as F, Value as h, Unless as M, Ensure as R } from "@tempots/dom";
3
- import { a as S, I as k } from "./input-container-CO3DNqpp.js";
4
- import { B as V, I as z } from "./translations-DT5QQ4WO.js";
5
- import { C as W } from "./use-form-D_TJyZhP.js";
3
+ import { a as S, I as k } from "./input-container-8JFB11xN.js";
4
+ import { B as V, I as z } from "./translations-BCMP-h52.js";
5
+ import { C as W } from "./use-form-NfobsGNl.js";
6
6
  const Y = (o) => {
7
7
  const l = {
8
8
  name: "email",
@@ -1 +1 @@
1
- "use strict";const C=require("./text-input-D_IxFd0M.cjs"),t=require("@tempots/dom"),v=require("./input-container-BkPcNDaZ.cjs"),b=require("./translations-qefRsdGi.cjs"),O=require("./use-form-BvBkVEKi.cjs"),B=o=>{const l={name:"email",autocomplete:"email",...o},{value:r,before:s,onBlur:a,onChange:u,onInput:c,placeholder:f}=l,p=s??v.InputIcon({icon:"line-md:email",size:o.size,color:"neutral"});return t.Use(b.BeatUII18n,m=>v.InputContainer({...o,before:p,input:t.input.email(C.CommonInputAttributes(l),t.attr.placeholder(t.coalesce(f,m.$.emailPlaceholderText)),t.attr.value(r),t.attr.class("bc-input"),a!=null?t.on.blur(t.emitValue(a)):t.Empty,u!=null?t.on.change(t.emitValue(u)):t.Empty,c!=null?t.on.input(t.emitValue(c)):t.Empty)}))},U=o=>{const{value:l,onBlur:r,onChange:s,onInput:a,before:u,after:c,hasError:f,disabled:p,autocomplete:m,placeholder:I,size:d,...w}=o,y={name:"password",disabled:p,...w},e=t.prop(!0),n=t.computedOf(e,m)((i,h)=>i?h??"current-password":"off");return t.Use(b.BeatUII18n,i=>{const h=t.computedOf(i.$.passwordPlaceholderText,e,I)((V,E,_)=>E?"•••••••••••••••":_??V),g=t.html.button(t.attr.type("button"),t.attr.class("bc-input-container__password-toggle"),t.aria.label(i.$.togglePasswordVisibility),t.on.click(()=>e.update(V=>!V)),t.When(e,()=>b.Icon({icon:"line-md:watch"}),()=>b.Icon({icon:"line-md:watch-off"})));return v.InputContainer({before:u,disabled:p,hasError:f,size:d,input:t.html.input(C.CommonInputAttributes({...y,autocomplete:n,placeholder:h}),t.When(e,()=>t.attr.type("password"),()=>t.attr.type("text")),t.attr.class("bc-input"),t.attr.value(l),r!=null?t.on.blur(t.emitValue(r)):t.Empty,s!=null?t.on.change(t.emitValue(s)):t.Empty,a!=null?t.on.input(t.emitValue(a)):t.Empty),after:c!=null?t.Fragment(g,c):g})})};function P(o){switch(o){case"success":return"material-symbols:check-circle-outline";case"warning":return"material-symbols:warning-outline";case"danger":return"material-symbols:error-outline";default:return"material-symbols:info-outline"}}function T(o){switch(o){case"success":return"success";case"warning":return"warning";case"danger":return"danger";default:return"info"}}function $(o,l,r,s){const a=["bc-notice",`bc-notice--${o}`,`bc-notice--tone-${l}`];return r&&a.push("bc-notice--dismissible"),s&&s.length>0&&a.push(s),a.join(" ")}function q({variant:o="info",tone:l="subtle",role:r,title:s,icon:a,closable:u=!1,onClose:c,class:f},...p){const m=t.prop(!0);return t.When(m,()=>{const I=t.Value.map(u,e=>!!e||c!=null),d=t.Value.map(o,e=>e??"info"),w=t.Value.map(l,e=>e??"subtle"),y=t.computedOf(r,d)((e,n)=>e??(n==="danger"?"alert":"status"));return t.Use(b.BeatUII18n,e=>t.html.div(t.attr.class(t.computedOf(d,w,I,f)((n,i,h,g)=>$(n,i,h,g))),t.attr.role(t.Value.map(y,n=>n)),t.Unless(t.Value.map(a,n=>n===!1),()=>t.html.div(t.attr.class("bc-notice__icon"),b.Icon({icon:t.computedOf(a,d)((n,i)=>n===void 0?P(i):String(n)),size:"md",color:t.Value.map(d,T)}))),t.html.div(t.attr.class("bc-notice__body"),t.Ensure(s,n=>t.html.div(t.attr.class("bc-notice__title"),n)),t.html.div(t.attr.class("bc-notice__content"),...p)),t.When(I,()=>O.CloseButton({size:"xs",label:e.$.closeModal,onClick:()=>{m.set(!1),c?.()}}))))})}exports.EmailInput=B;exports.Notice=q;exports.PasswordInput=U;
1
+ "use strict";const C=require("./text-input-DS5zlXb2.cjs"),t=require("@tempots/dom"),v=require("./input-container-CyOgiiQD.cjs"),b=require("./translations-EwEmHe3v.cjs"),O=require("./use-form-Dcra7GeE.cjs"),B=o=>{const l={name:"email",autocomplete:"email",...o},{value:r,before:s,onBlur:a,onChange:u,onInput:c,placeholder:f}=l,p=s??v.InputIcon({icon:"line-md:email",size:o.size,color:"neutral"});return t.Use(b.BeatUII18n,m=>v.InputContainer({...o,before:p,input:t.input.email(C.CommonInputAttributes(l),t.attr.placeholder(t.coalesce(f,m.$.emailPlaceholderText)),t.attr.value(r),t.attr.class("bc-input"),a!=null?t.on.blur(t.emitValue(a)):t.Empty,u!=null?t.on.change(t.emitValue(u)):t.Empty,c!=null?t.on.input(t.emitValue(c)):t.Empty)}))},U=o=>{const{value:l,onBlur:r,onChange:s,onInput:a,before:u,after:c,hasError:f,disabled:p,autocomplete:m,placeholder:I,size:d,...w}=o,y={name:"password",disabled:p,...w},e=t.prop(!0),n=t.computedOf(e,m)((i,h)=>i?h??"current-password":"off");return t.Use(b.BeatUII18n,i=>{const h=t.computedOf(i.$.passwordPlaceholderText,e,I)((V,E,_)=>E?"•••••••••••••••":_??V),g=t.html.button(t.attr.type("button"),t.attr.class("bc-input-container__password-toggle"),t.aria.label(i.$.togglePasswordVisibility),t.on.click(()=>e.update(V=>!V)),t.When(e,()=>b.Icon({icon:"line-md:watch"}),()=>b.Icon({icon:"line-md:watch-off"})));return v.InputContainer({before:u,disabled:p,hasError:f,size:d,input:t.html.input(C.CommonInputAttributes({...y,autocomplete:n,placeholder:h}),t.When(e,()=>t.attr.type("password"),()=>t.attr.type("text")),t.attr.class("bc-input"),t.attr.value(l),r!=null?t.on.blur(t.emitValue(r)):t.Empty,s!=null?t.on.change(t.emitValue(s)):t.Empty,a!=null?t.on.input(t.emitValue(a)):t.Empty),after:c!=null?t.Fragment(g,c):g})})};function P(o){switch(o){case"success":return"material-symbols:check-circle-outline";case"warning":return"material-symbols:warning-outline";case"danger":return"material-symbols:error-outline";default:return"material-symbols:info-outline"}}function T(o){switch(o){case"success":return"success";case"warning":return"warning";case"danger":return"danger";default:return"info"}}function $(o,l,r,s){const a=["bc-notice",`bc-notice--${o}`,`bc-notice--tone-${l}`];return r&&a.push("bc-notice--dismissible"),s&&s.length>0&&a.push(s),a.join(" ")}function q({variant:o="info",tone:l="subtle",role:r,title:s,icon:a,closable:u=!1,onClose:c,class:f},...p){const m=t.prop(!0);return t.When(m,()=>{const I=t.Value.map(u,e=>!!e||c!=null),d=t.Value.map(o,e=>e??"info"),w=t.Value.map(l,e=>e??"subtle"),y=t.computedOf(r,d)((e,n)=>e??(n==="danger"?"alert":"status"));return t.Use(b.BeatUII18n,e=>t.html.div(t.attr.class(t.computedOf(d,w,I,f)((n,i,h,g)=>$(n,i,h,g))),t.attr.role(t.Value.map(y,n=>n)),t.Unless(t.Value.map(a,n=>n===!1),()=>t.html.div(t.attr.class("bc-notice__icon"),b.Icon({icon:t.computedOf(a,d)((n,i)=>n===void 0?P(i):String(n)),size:"md",color:t.Value.map(d,T)}))),t.html.div(t.attr.class("bc-notice__body"),t.Ensure(s,n=>t.html.div(t.attr.class("bc-notice__title"),n)),t.html.div(t.attr.class("bc-notice__content"),...p)),t.When(I,()=>O.CloseButton({size:"xs",label:e.$.closeModal,onClick:()=>{m.set(!1),c?.()}}))))})}exports.EmailInput=B;exports.Notice=q;exports.PasswordInput=U;
@@ -2,7 +2,7 @@ import { Validation as z, upperCaseFirst as B, humanize as W } from "@tempots/st
2
2
  import { attr as c, prop as _, html as h, computedOf as g, aria as F, on as w } from "@tempots/dom";
3
3
  import { g as H, C as J } from "./utils-vUtP6iPG.js";
4
4
  import { S as y, L as K } from "./stack-BLMteGTn.js";
5
- import { d as V, I as x } from "./translations-DT5QQ4WO.js";
5
+ import { d as V, I as x } from "./translations-BCMP-h52.js";
6
6
  import U from "ajv";
7
7
  import G from "ajv/dist/2019";
8
8
  import X from "ajv/dist/2020";