@tempots/beatui 0.54.2 → 0.55.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 (80) hide show
  1. package/dist/{2019-DzVg1z5j.cjs → 2019-B4jrQ2Q8.cjs} +1 -1
  2. package/dist/{2019-ByDeUdzE.js → 2019-DH5GYJC9.js} +2 -2
  3. package/dist/{2020-C2cAo3Kx.cjs → 2020-BVrVGeh-.cjs} +1 -1
  4. package/dist/{2020-P72Z0RIB.js → 2020-C3vh26yT.js} +2 -2
  5. package/dist/{ar-jKiWO1bA.js → ar-CKheF7Rb.js} +21 -13
  6. package/dist/{ar-128v2WAg.cjs → ar-x9O6JsRN.cjs} +1 -1
  7. package/dist/auth/index.cjs.js +1 -1
  8. package/dist/auth/index.es.js +4 -4
  9. package/dist/beatui.css +425 -2
  10. package/dist/beatui.tailwind.css +425 -2
  11. package/dist/{de-Doo_UynL.cjs → de-C0nhZh4a.cjs} +1 -1
  12. package/dist/{de-CsZH8Z4V.js → de-CqFnIl0Y.js} +16 -8
  13. package/dist/{es-C6ksQm_M.cjs → es-C3c1-2iA.cjs} +1 -1
  14. package/dist/{es-DHzABlc2.js → es-Cv9ZSjqz.js} +16 -8
  15. package/dist/{fa-C0ZVnkuX.cjs → fa-BbV4_mYi.cjs} +1 -1
  16. package/dist/{fa-Rlsar6Fo.js → fa-CG8B9M9O.js} +21 -13
  17. package/dist/{fr-DzrAiW9Q.js → fr-B2f1Pmal.js} +16 -8
  18. package/dist/{fr-eyQiRZu8.cjs → fr-DlFsnCqK.cjs} +1 -1
  19. package/dist/{he-B3ehch8T.js → he-BmHa696l.js} +21 -13
  20. package/dist/{he-fifXa9Ks.cjs → he-DwQ2QMJE.cjs} +1 -1
  21. package/dist/{hi-B90ZON10.js → hi-DNII_Adz.js} +19 -11
  22. package/dist/{hi-BBbV2iwE.cjs → hi-DaHMe_1C.cjs} +1 -1
  23. package/dist/{hls-C6lKM-CG.cjs → hls-B5PliUq8.cjs} +4 -4
  24. package/dist/{hls-B7ZdiUxL.js → hls-DLd3ClAs.js} +28 -21
  25. package/dist/{index-BQear_Jy.js → index-BYflP18C.js} +172 -164
  26. package/dist/{index-BwkYjXhr.cjs → index-COM8WyaG.cjs} +1 -1
  27. package/dist/{index-BWMybo2K.js → index-DCOaDJ8f.js} +1 -1
  28. package/dist/{index-CSv_TMiz.js → index-Dd3PocYl.js} +1 -1
  29. package/dist/{index-Be-6-fQW.cjs → index-Dhaodhgr.cjs} +2 -2
  30. package/dist/{index-aFA1CLKZ.cjs → index-DjLKVVL-.cjs} +1 -1
  31. package/dist/{index-Cj2zgGLp.cjs → index-ZRQP8j2O.cjs} +4 -4
  32. package/dist/{index-Kox58YHG.js → index-gZaps7_A.js} +5 -5
  33. package/dist/index.cjs.js +4 -4
  34. package/dist/index.es.js +2283 -2034
  35. package/dist/{it-WOitrlIv.js → it-894w7K0i.js} +16 -8
  36. package/dist/{it-CEM-R_5J.cjs → it-Cli1u40l.cjs} +1 -1
  37. package/dist/{ja-CWzwG1fp.cjs → ja-DY7Zij7O.cjs} +1 -1
  38. package/dist/{ja-jVLb-kyU.js → ja-j4AV8eVy.js} +22 -14
  39. package/dist/json-schema/index.cjs.js +1 -1
  40. package/dist/json-schema/index.es.js +1 -1
  41. package/dist/{ko-DV2NgunR.cjs → ko-CHlprpVP.cjs} +1 -1
  42. package/dist/{ko-CUpM9wfr.js → ko-CNZqypvW.js} +18 -10
  43. package/dist/{modal-C4x5C70f.js → modal-1Y-q1wDn.js} +2 -2
  44. package/dist/{modal-C5xWtKaZ.cjs → modal-D765-SiT.cjs} +1 -1
  45. package/dist/{nl-C_MHm9AB.cjs → nl-CgMv4O0P.cjs} +1 -1
  46. package/dist/{nl-BFLwQeEn.js → nl-CzTp9ds0.js} +19 -11
  47. package/dist/{notice-BhxWf3Dh.cjs → notice-D8w_39td.cjs} +1 -1
  48. package/dist/{notice-DdYpd69I.js → notice-DJ-olOQx.js} +1 -1
  49. package/dist/{pl-Dcgxv0xK.cjs → pl-Cm8Lerxg.cjs} +1 -1
  50. package/dist/{pl-dlo59Xei.js → pl-DQid7ctL.js} +17 -9
  51. package/dist/prosemirror/index.cjs.js +1 -1
  52. package/dist/prosemirror/index.es.js +1 -1
  53. package/dist/{pt-CqkhyKon.js → pt-BAU0nrtN.js} +16 -8
  54. package/dist/{pt-As8BblbM.cjs → pt-k6sIkC0v.cjs} +1 -1
  55. package/dist/{ru-DOl7nkP-.js → ru-CtYj3NlJ.js} +21 -13
  56. package/dist/{ru-Du4sI8M1.cjs → ru-Dioznrt_.cjs} +1 -1
  57. package/dist/{toolbar-BnaquvB9.cjs → toolbar-BMzapKW0.cjs} +1 -1
  58. package/dist/{toolbar-Czc8cSjl.js → toolbar-Bo4GA6tM.js} +1 -1
  59. package/dist/{tr-DTLlM4Pf.cjs → tr-CwCsfbe5.cjs} +1 -1
  60. package/dist/{tr-3O7PDT8q.js → tr-wS-zWzvh.js} +21 -13
  61. package/dist/{translations-BH2Dg5AP.cjs → translations-CD_Qi9EQ.cjs} +1 -1
  62. package/dist/{translations-CsO0g7yz.js → translations-Dm7vjy7D.js} +1 -1
  63. package/dist/{translations-B3P1v3E6.js → translations-Do71ycSR.js} +53 -45
  64. package/dist/translations-t-neYabN.cjs +1 -0
  65. package/dist/types/beatui-i18n/default.d.ts +7 -0
  66. package/dist/types/beatui-i18n/locales/en.d.ts +7 -0
  67. package/dist/types/beatui-i18n/translations.d.ts +7 -0
  68. package/dist/types/components/media/index.d.ts +1 -0
  69. package/dist/types/components/media/pdf-page-viewer.d.ts +64 -0
  70. package/dist/types/pdfjs/lazy-loader.d.ts +2 -0
  71. package/dist/{ur-DB8mA3fq.js → ur-8NSFWrMo.js} +21 -13
  72. package/dist/{ur-DRhqXQpq.cjs → ur-D3nkqfyQ.cjs} +1 -1
  73. package/dist/{utils-CPZHwfiH.js → utils-DzKhEJ__.js} +2 -2
  74. package/dist/{utils-DCa_lhhW.cjs → utils-dY__yBXk.cjs} +1 -1
  75. package/dist/{vi-D_MzLijT.cjs → vi-BAAJHs3a.cjs} +1 -1
  76. package/dist/{vi-vGJhQVsV.js → vi-CngHpCNM.js} +18 -10
  77. package/dist/{zh-C_OkXlxM.js → zh-Bkxc6ZmR.js} +21 -13
  78. package/dist/{zh-CFMBeH1A.cjs → zh-CRWrZhUp.cjs} +1 -1
  79. package/package.json +7 -6
  80. package/dist/translations-DZWe3znu.cjs +0 -1
@@ -1,4 +1,4 @@
1
- import { f as t } from "./translations-B3P1v3E6.js";
1
+ import { f as t } from "./translations-Do71ycSR.js";
2
2
  const c = {
3
3
  loadingExtended: "Caricamento, attendere prego...",
4
4
  loadingShort: "Caricamento...",
@@ -57,17 +57,17 @@ const c = {
57
57
  // inputs reset
58
58
  clearValue: "Cancella valore",
59
59
  unknownType: "Tipo sconosciuto",
60
- filesInputInstructions: (e, a, o) => {
60
+ filesInputInstructions: (e, i, o) => {
61
61
  let l = e == null || e > 1 ? "Clicca per scegliere o trascina i file qui" : "Clicca per scegliere o trascina un file qui";
62
- if (e || a) {
63
- const i = [];
64
- if (e != null && e > 1 && i.push(`fino a ${e} file`), a && o) {
65
- const n = t(a, {
62
+ if (e || i) {
63
+ const a = [];
64
+ if (e != null && e > 1 && a.push(`fino a ${e} file`), i && o) {
65
+ const n = t(i, {
66
66
  units: o
67
67
  });
68
- i.push(`max ${n} ciascuno`);
68
+ a.push(`max ${n} ciascuno`);
69
69
  }
70
- i.length > 0 && (l += ` (${i.join(", ")})`);
70
+ a.length > 0 && (l += ` (${a.join(", ")})`);
71
71
  }
72
72
  return l;
73
73
  },
@@ -85,6 +85,14 @@ const c = {
85
85
  codeBlock: "Code Block",
86
86
  horizontalRule: "Horizontal Rule",
87
87
  linkUrlPlaceholder: "https://example.com"
88
+ },
89
+ // PDF Page Viewer
90
+ pdfPageViewer: {
91
+ loading: "Caricamento PDF...",
92
+ loadFailed: "Impossibile caricare il PDF",
93
+ invalidPdf: "File PDF non valido",
94
+ pageOutOfRange: (e, i) => `La pagina ${e} è fuori intervallo (1-${i})`,
95
+ renderFailed: "Impossibile renderizzare la pagina PDF"
88
96
  }
89
97
  };
90
98
  export {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./translations-DZWe3znu.cjs"),r={loadingExtended:"Caricamento, attendere prego...",loadingShort:"Caricamento...",locale:"Lingua",iconDescription:"Icona",loadingIcon:"Icona di caricamento",failedToLoadIcon:"Impossibile caricare l'icona",editLabel:"Modifica",selectOne:"Seleziona uno",selectMany:"Seleziona più elementi",noResults:"Nessun risultato",passwordPlaceholderText:"Password Segreta",togglePasswordVisibility:"Attiva/disattiva visibilità password",toggleMenu:"Attiva/disattiva menu",toggleAside:"Attiva/disattiva pannello laterale",mainNavigation:"Navigazione principale",sidebar:"Barra laterale",closeDrawer:"Chiudi cassetto",closeModal:"Chiudi modale",confirm:"Conferma",cancel:"Annulla",addLabel:"Aggiungi",removeItem:"Rimuovi elemento",currentLocale:"Italiano",ar:"Arabo",de:"Tedesco",en:"Inglese",es:"Spagnolo",fr:"Francese",hi:"Hindi",it:"Italiano",ja:"Giapponese",ko:"Coreano",nl:"Olandese",pl:"Polacco",pt:"Portoghese",ru:"Russo",tr:"Turco",vi:"Vietnamita",zh:"Cinese",he:"Ebraico",fa:"Persiano",ur:"Urdu",emailPlaceholderText:"Inserisci la tua email",incrementValue:"Incrementa valore",decrementValue:"Decrementa valore",dropZoneInstructions:e=>e?"Clicca per scegliere o trascina i file qui, o premi Invio o Spazio per aprire il selettore file":"Trascina i file qui",fileSizeUnits:["Byte","KB","MB","GB","TB"],removeFile:"Rimuovi file",clearAllFiles:"Cancella tutti i file",clearValue:"Cancella valore",unknownType:"Tipo sconosciuto",filesInputInstructions:(e,o,a)=>{let l=e==null||e>1?"Clicca per scegliere o trascina i file qui":"Clicca per scegliere o trascina un file qui";if(e||o){const i=[];if(e!=null&&e>1&&i.push(`fino a ${e} file`),o&&a){const t=n.formatFileSize(o,{units:a});i.push(`max ${t} ciascuno`)}i.length>0&&(l+=` (${i.join(", ")})`)}return l},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"}};exports.default=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./translations-t-neYabN.cjs"),r={loadingExtended:"Caricamento, attendere prego...",loadingShort:"Caricamento...",locale:"Lingua",iconDescription:"Icona",loadingIcon:"Icona di caricamento",failedToLoadIcon:"Impossibile caricare l'icona",editLabel:"Modifica",selectOne:"Seleziona uno",selectMany:"Seleziona più elementi",noResults:"Nessun risultato",passwordPlaceholderText:"Password Segreta",togglePasswordVisibility:"Attiva/disattiva visibilità password",toggleMenu:"Attiva/disattiva menu",toggleAside:"Attiva/disattiva pannello laterale",mainNavigation:"Navigazione principale",sidebar:"Barra laterale",closeDrawer:"Chiudi cassetto",closeModal:"Chiudi modale",confirm:"Conferma",cancel:"Annulla",addLabel:"Aggiungi",removeItem:"Rimuovi elemento",currentLocale:"Italiano",ar:"Arabo",de:"Tedesco",en:"Inglese",es:"Spagnolo",fr:"Francese",hi:"Hindi",it:"Italiano",ja:"Giapponese",ko:"Coreano",nl:"Olandese",pl:"Polacco",pt:"Portoghese",ru:"Russo",tr:"Turco",vi:"Vietnamita",zh:"Cinese",he:"Ebraico",fa:"Persiano",ur:"Urdu",emailPlaceholderText:"Inserisci la tua email",incrementValue:"Incrementa valore",decrementValue:"Decrementa valore",dropZoneInstructions:e=>e?"Clicca per scegliere o trascina i file qui, o premi Invio o Spazio per aprire il selettore file":"Trascina i file qui",fileSizeUnits:["Byte","KB","MB","GB","TB"],removeFile:"Rimuovi file",clearAllFiles:"Cancella tutti i file",clearValue:"Cancella valore",unknownType:"Tipo sconosciuto",filesInputInstructions:(e,i,o)=>{let l=e==null||e>1?"Clicca per scegliere o trascina i file qui":"Clicca per scegliere o trascina un file qui";if(e||i){const a=[];if(e!=null&&e>1&&a.push(`fino a ${e} file`),i&&o){const n=t.formatFileSize(i,{units:o});a.push(`max ${n} ciascuno`)}a.length>0&&(l+=` (${a.join(", ")})`)}return l},prosemirror:{bold:"Bold",italic:"Italic",code:"Code",link:"Link",removeLink:"Remove Link",heading:e=>`Heading ${e}`,bulletList:"Bullet List",orderedList:"Ordered List",blockquote:"Blockquote",codeBlock:"Code Block",horizontalRule:"Horizontal Rule",linkUrlPlaceholder:"https://example.com"},pdfPageViewer:{loading:"Caricamento PDF...",loadFailed:"Impossibile caricare il PDF",invalidPdf:"File PDF non valido",pageOutOfRange:(e,i)=>`La pagina ${e} è fuori intervallo (1-${i})`,renderFailed:"Impossibile renderizzare la pagina PDF"}};exports.default=r;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./translations-DZWe3znu.cjs"),r={loadingExtended:"読み込み中です、お待ちください",loadingShort:"読み込み中...",locale:"ロケール",iconDescription:"アイコン",loadingIcon:"読み込みアイコン",failedToLoadIcon:"アイコンの読み込みに失敗しました",editLabel:"編集",selectOne:"一つ選択",selectMany:"複数選択",noResults:"結果なし",passwordPlaceholderText:"パスワード",togglePasswordVisibility:"パスワードの表示を切り替え",toggleMenu:"メニューを切り替え",toggleAside:"サイドパネルを切り替え",mainNavigation:"メインナビゲーション",sidebar:"サイドバー",closeDrawer:"ドロワーを閉じる",closeModal:"モーダルを閉じる",confirm:"確認",cancel:"キャンセル",addLabel:"追加",removeItem:"項目を削除",currentLocale:"日本語",ar:"アラビア語",de:"ドイツ語",en:"英語",es:"スペイン語",fr:"フランス語",hi:"ヒンディー語",it:"イタリア語",ja:"日本語",ko:"韓国語",nl:"オランダ語",pl:"ポーランド語",pt:"ポルトガル語",ru:"ロシア語",tr:"トルコ語",vi:"ベトナム語",zh:"中国語",he:"ヘブライ語",fa:"ペルシア語",ur:"ウルドゥー語",emailPlaceholderText:"メールアドレスを入力",incrementValue:"値を増加",decrementValue:"値を減少",dropZoneInstructions:e=>e?"クリックして選択するか、ファイルをここにドラッグ、またはEnterキーまたはSpaceキーを押してファイル選択を開く":"ファイルをここにドラッグ",fileSizeUnits:["バイト","KB","MB","GB","TB"],removeFile:"ファイルを削除",clearAllFiles:"すべてのファイルを削除",clearValue:"リセット",unknownType:"不明なタイプ",filesInputInstructions:(e,t,l)=>{let n=(e==null||e>1,"クリックして選択するか、ファイルをここにドラッグ");if(e||t){const o=[];if(e!=null&&e>1&&o.push(`最大${e}ファイル`),t&&l){const i=a.formatFileSize(t,{units:l});o.push(`各${i}以下`)}o.length>0&&(n+=` (${o.join("、")})`)}return n},prosemirror:{bold:"太字",italic:"斜体",code:"インラインコード",link:"リンクを挿入",removeLink:"リンクを削除",heading:e=>`見出し ${e}`,bulletList:"箇条書き",orderedList:"番号付きリスト",blockquote:"引用",codeBlock:"コードブロック",horizontalRule:"水平線",linkUrlPlaceholder:"https://example.com"}};exports.default=r;exports.ja=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./translations-t-neYabN.cjs"),r={loadingExtended:"読み込み中です、お待ちください",loadingShort:"読み込み中...",locale:"ロケール",iconDescription:"アイコン",loadingIcon:"読み込みアイコン",failedToLoadIcon:"アイコンの読み込みに失敗しました",editLabel:"編集",selectOne:"一つ選択",selectMany:"複数選択",noResults:"結果なし",passwordPlaceholderText:"パスワード",togglePasswordVisibility:"パスワードの表示を切り替え",toggleMenu:"メニューを切り替え",toggleAside:"サイドパネルを切り替え",mainNavigation:"メインナビゲーション",sidebar:"サイドバー",closeDrawer:"ドロワーを閉じる",closeModal:"モーダルを閉じる",confirm:"確認",cancel:"キャンセル",addLabel:"追加",removeItem:"項目を削除",currentLocale:"日本語",ar:"アラビア語",de:"ドイツ語",en:"英語",es:"スペイン語",fr:"フランス語",hi:"ヒンディー語",it:"イタリア語",ja:"日本語",ko:"韓国語",nl:"オランダ語",pl:"ポーランド語",pt:"ポルトガル語",ru:"ロシア語",tr:"トルコ語",vi:"ベトナム語",zh:"中国語",he:"ヘブライ語",fa:"ペルシア語",ur:"ウルドゥー語",emailPlaceholderText:"メールアドレスを入力",incrementValue:"値を増加",decrementValue:"値を減少",dropZoneInstructions:e=>e?"クリックして選択するか、ファイルをここにドラッグ、またはEnterキーまたはSpaceキーを押してファイル選択を開く":"ファイルをここにドラッグ",fileSizeUnits:["バイト","KB","MB","GB","TB"],removeFile:"ファイルを削除",clearAllFiles:"すべてのファイルを削除",clearValue:"リセット",unknownType:"不明なタイプ",filesInputInstructions:(e,o,t)=>{let n=(e==null||e>1,"クリックして選択するか、ファイルをここにドラッグ");if(e||o){const l=[];if(e!=null&&e>1&&l.push(`最大${e}ファイル`),o&&t){const i=a.formatFileSize(o,{units:t});l.push(`各${i}以下`)}l.length>0&&(n+=` (${l.join("、")})`)}return n},prosemirror:{bold:"太字",italic:"斜体",code:"インラインコード",link:"リンクを挿入",removeLink:"リンクを削除",heading:e=>`見出し ${e}`,bulletList:"箇条書き",orderedList:"番号付きリスト",blockquote:"引用",codeBlock:"コードブロック",horizontalRule:"水平線",linkUrlPlaceholder:"https://example.com"},pdfPageViewer:{loading:"PDFを読み込み中...",loadFailed:"PDFの読み込みに失敗しました",invalidPdf:"無効なPDFファイル",pageOutOfRange:(e,o)=>`ページ ${e} は範囲外です (1-${o})`,renderFailed:"PDFページのレンダリングに失敗しました"}};exports.default=r;exports.ja=r;
@@ -1,5 +1,5 @@
1
- import { f as i } from "./translations-B3P1v3E6.js";
2
- const c = {
1
+ import { f as i } from "./translations-Do71ycSR.js";
2
+ const d = {
3
3
  loadingExtended: "読み込み中です、お待ちください",
4
4
  loadingShort: "読み込み中...",
5
5
  locale: "ロケール",
@@ -57,19 +57,19 @@ const c = {
57
57
  // inputs reset
58
58
  clearValue: "リセット",
59
59
  unknownType: "不明なタイプ",
60
- filesInputInstructions: (e, l, t) => {
61
- let n = (e == null || e > 1, "クリックして選択するか、ファイルをここにドラッグ");
62
- if (e || l) {
63
- const o = [];
64
- if (e != null && e > 1 && o.push(`最大${e}ファイル`), l && t) {
65
- const r = i(l, {
66
- units: t
60
+ filesInputInstructions: (e, o, n) => {
61
+ let t = (e == null || e > 1, "クリックして選択するか、ファイルをここにドラッグ");
62
+ if (e || o) {
63
+ const l = [];
64
+ if (e != null && e > 1 && l.push(`最大${e}ファイル`), o && n) {
65
+ const r = i(o, {
66
+ units: n
67
67
  });
68
- o.push(`各${r}以下`);
68
+ l.push(`各${r}以下`);
69
69
  }
70
- o.length > 0 && (n += ` (${o.join("、")})`);
70
+ l.length > 0 && (t += ` (${l.join("、")})`);
71
71
  }
72
- return n;
72
+ return t;
73
73
  },
74
74
  // prosemirror
75
75
  prosemirror: {
@@ -85,9 +85,17 @@ const c = {
85
85
  codeBlock: "コードブロック",
86
86
  horizontalRule: "水平線",
87
87
  linkUrlPlaceholder: "https://example.com"
88
+ },
89
+ // PDF Page Viewer
90
+ pdfPageViewer: {
91
+ loading: "PDFを読み込み中...",
92
+ loadFailed: "PDFの読み込みに失敗しました",
93
+ invalidPdf: "無効なPDFファイル",
94
+ pageOutOfRange: (e, o) => `ページ ${e} は範囲外です (1-${o})`,
95
+ renderFailed: "PDFページのレンダリングに失敗しました"
88
96
  }
89
97
  };
90
98
  export {
91
- c as default,
92
- c as ja
99
+ d as default,
100
+ d as ja
93
101
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-Be-6-fQW.cjs");exports.JSONSchemaAllOf=e.JSONSchemaAllOf;exports.JSONSchemaAny=e.JSONSchemaAny;exports.JSONSchemaAnyOf=e.JSONSchemaAnyOf;exports.JSONSchemaArray=e.JSONSchemaArray;exports.JSONSchemaBoolean=e.JSONSchemaBoolean;exports.JSONSchemaConst=e.JSONSchemaConst;exports.JSONSchemaControl=e.JSONSchemaControl;exports.JSONSchemaEnum=e.JSONSchemaEnum;exports.JSONSchemaForm=e.JSONSchemaForm;exports.JSONSchemaGenericControl=e.JSONSchemaGenericControl;exports.JSONSchemaInteger=e.JSONSchemaInteger;exports.JSONSchemaNull=e.JSONSchemaNull;exports.JSONSchemaNumber=e.JSONSchemaNumber;exports.JSONSchemaObject=e.JSONSchemaObject;exports.JSONSchemaOneOf=e.JSONSchemaOneOf;exports.JSONSchemaString=e.JSONSchemaString;exports.JSONSchemaUnion=e.JSONSchemaUnion;exports.SchemaContext=e.SchemaContext;exports.ajvErrorsToControllerValidation=e.ajvErrorsToControllerValidation;exports.ajvErrorsToDependencies=e.ajvErrorsToDependencies;exports.buildMessage=e.buildMessage;exports.buildPath=e.buildPath;exports.clearCaches=e.clearCaches;exports.clearCachesForAjv=e.clearCachesForAjv;exports.compileWithCache=e.compileWithCache;exports.composeEffectiveObjectSchema=e.composeEffectiveObjectSchema;exports.createAJVStandardSchema=e.createAJVStandardSchema;exports.evaluateIfThenElseOverlay=e.evaluateIfThenElseOverlay;exports.evaluateNotViolation=e.evaluateNotViolation;exports.getAjvForSchema=e.getAjvForSchema;exports.getCacheStats=e.getCacheStats;exports.getEvaluatedProperties=e.getEvaluatedProperties;exports.jsonPointerToSegments=e.jsonPointerToSegments;exports.mergeAllOf=e.mergeAllOf;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-Dhaodhgr.cjs");exports.JSONSchemaAllOf=e.JSONSchemaAllOf;exports.JSONSchemaAny=e.JSONSchemaAny;exports.JSONSchemaAnyOf=e.JSONSchemaAnyOf;exports.JSONSchemaArray=e.JSONSchemaArray;exports.JSONSchemaBoolean=e.JSONSchemaBoolean;exports.JSONSchemaConst=e.JSONSchemaConst;exports.JSONSchemaControl=e.JSONSchemaControl;exports.JSONSchemaEnum=e.JSONSchemaEnum;exports.JSONSchemaForm=e.JSONSchemaForm;exports.JSONSchemaGenericControl=e.JSONSchemaGenericControl;exports.JSONSchemaInteger=e.JSONSchemaInteger;exports.JSONSchemaNull=e.JSONSchemaNull;exports.JSONSchemaNumber=e.JSONSchemaNumber;exports.JSONSchemaObject=e.JSONSchemaObject;exports.JSONSchemaOneOf=e.JSONSchemaOneOf;exports.JSONSchemaString=e.JSONSchemaString;exports.JSONSchemaUnion=e.JSONSchemaUnion;exports.SchemaContext=e.SchemaContext;exports.ajvErrorsToControllerValidation=e.ajvErrorsToControllerValidation;exports.ajvErrorsToDependencies=e.ajvErrorsToDependencies;exports.buildMessage=e.buildMessage;exports.buildPath=e.buildPath;exports.clearCaches=e.clearCaches;exports.clearCachesForAjv=e.clearCachesForAjv;exports.compileWithCache=e.compileWithCache;exports.composeEffectiveObjectSchema=e.composeEffectiveObjectSchema;exports.createAJVStandardSchema=e.createAJVStandardSchema;exports.evaluateIfThenElseOverlay=e.evaluateIfThenElseOverlay;exports.evaluateNotViolation=e.evaluateNotViolation;exports.getAjvForSchema=e.getAjvForSchema;exports.getCacheStats=e.getCacheStats;exports.getEvaluatedProperties=e.getEvaluatedProperties;exports.jsonPointerToSegments=e.jsonPointerToSegments;exports.mergeAllOf=e.mergeAllOf;
@@ -1,4 +1,4 @@
1
- import { V as s, J as S, T as c, P as o, N as t, I as r, X as m, H as h, Y as O, W as n, L as l, O as N, K as J, Q as i, U as v, M as C, R as u, S as A, w as f, v as g, u as d, t as j, x as E, y as b, A as p, E as y, Z as T, F, D as P, B as V, z as x, G as I, s as B, C as D } from "../index-Kox58YHG.js";
1
+ import { V as s, J as S, T as c, P as o, N as t, I as r, X as m, H as h, Y as O, W as n, L as l, O as N, K as J, Q as i, U as v, M as C, R as u, S as A, w as f, v as g, u as d, t as j, x as E, y as b, A as p, E as y, Z as T, F, D as P, B as V, z as x, G as I, s as B, C as D } from "../index-gZaps7_A.js";
2
2
  export {
3
3
  s as JSONSchemaAllOf,
4
4
  S as JSONSchemaAny,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./translations-DZWe3znu.cjs"),a={loadingExtended:"로딩 중입니다. 잠시만 기다려 주세요",loadingShort:"로딩 중...",locale:"지역",iconDescription:"아이콘",loadingIcon:"로딩 아이콘",failedToLoadIcon:"아이콘 로드 실패",editLabel:"편집",selectOne:"하나 선택",selectMany:"여러 개 선택",noResults:"결과 없음",passwordPlaceholderText:"비밀번호",togglePasswordVisibility:"비밀번호 표시 전환",toggleMenu:"메뉴 전환",toggleAside:"사이드 패널 전환",mainNavigation:"메인 네비게이션",sidebar:"사이드바",closeDrawer:"드로어 닫기",closeModal:"모달 닫기",confirm:"확인",cancel:"취소",addLabel:"추가",removeItem:"항목 제거",currentLocale:"한국어",ar:"아랍어",de:"독일어",en:"영어",es:"스페인어",fr:"프랑스어",hi:"힌디어",it:"이탈리아어",ja:"일본어",ko:"한국어",nl:"네덜란드어",pl:"폴란드어",pt:"포르투갈어",ru:"러시아어",tr:"터키어",vi:"베트남어",zh:"중국어",he:"히브리어",fa:"페르시아어",ur:"우르두어",emailPlaceholderText:"이메일을 입력하세요",incrementValue:"값 증가",decrementValue:"값 감소",dropZoneInstructions:e=>e?"클릭하여 선택하거나 파일을 여기로 드래그하세요, 또는 Enter 또는 Space 키를 눌러 파일 선택기를 여세요":"파일을 여기로 드래그하세요",fileSizeUnits:["바이트","KB","MB","GB","TB"],removeFile:"파일 제거",clearAllFiles:"모든 파일 지우기",clearValue:"값 지우기",unknownType:"알 수 없는 형식",filesInputInstructions:(e,t,l)=>{let n=(e==null||e>1,"클릭하여 선택하거나 파일을 여기로 드래그하세요");if(e||t){const o=[];if(e!=null&&e>1&&o.push(`최대 ${e}개 파일`),t&&l){const i=r.formatFileSize(t,{units:l});o.push(`각각 최대 ${i}`)}o.length>0&&(n+=` (${o.join(", ")})`)}return n},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"}};exports.default=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./translations-t-neYabN.cjs"),a={loadingExtended:"로딩 중입니다. 잠시만 기다려 주세요",loadingShort:"로딩 중...",locale:"지역",iconDescription:"아이콘",loadingIcon:"로딩 아이콘",failedToLoadIcon:"아이콘 로드 실패",editLabel:"편집",selectOne:"하나 선택",selectMany:"여러 개 선택",noResults:"결과 없음",passwordPlaceholderText:"비밀번호",togglePasswordVisibility:"비밀번호 표시 전환",toggleMenu:"메뉴 전환",toggleAside:"사이드 패널 전환",mainNavigation:"메인 네비게이션",sidebar:"사이드바",closeDrawer:"드로어 닫기",closeModal:"모달 닫기",confirm:"확인",cancel:"취소",addLabel:"추가",removeItem:"항목 제거",currentLocale:"한국어",ar:"아랍어",de:"독일어",en:"영어",es:"스페인어",fr:"프랑스어",hi:"힌디어",it:"이탈리아어",ja:"일본어",ko:"한국어",nl:"네덜란드어",pl:"폴란드어",pt:"포르투갈어",ru:"러시아어",tr:"터키어",vi:"베트남어",zh:"중국어",he:"히브리어",fa:"페르시아어",ur:"우르두어",emailPlaceholderText:"이메일을 입력하세요",incrementValue:"값 증가",decrementValue:"값 감소",dropZoneInstructions:e=>e?"클릭하여 선택하거나 파일을 여기로 드래그하세요, 또는 Enter 또는 Space 키를 눌러 파일 선택기를 여세요":"파일을 여기로 드래그하세요",fileSizeUnits:["바이트","KB","MB","GB","TB"],removeFile:"파일 제거",clearAllFiles:"모든 파일 지우기",clearValue:"값 지우기",unknownType:"알 수 없는 형식",filesInputInstructions:(e,o,t)=>{let n=(e==null||e>1,"클릭하여 선택하거나 파일을 여기로 드래그하세요");if(e||o){const l=[];if(e!=null&&e>1&&l.push(`최대 ${e}개 파일`),o&&t){const i=r.formatFileSize(o,{units:t});l.push(`각각 최대 ${i}`)}l.length>0&&(n+=` (${l.join(", ")})`)}return n},prosemirror:{bold:"Bold",italic:"Italic",code:"Code",link:"Link",removeLink:"Remove Link",heading:e=>`Heading ${e}`,bulletList:"Bullet List",orderedList:"Ordered List",blockquote:"Blockquote",codeBlock:"Code Block",horizontalRule:"Horizontal Rule",linkUrlPlaceholder:"https://example.com"},pdfPageViewer:{loading:"PDF 로딩 중...",loadFailed:"PDF 로드 실패",invalidPdf:"유효하지 않은 PDF 파일",pageOutOfRange:(e,o)=>`페이지 ${e}이(가) 범위를 벗어났습니다 (1-${o})`,renderFailed:"PDF 페이지 렌더링 실패"}};exports.default=a;
@@ -1,5 +1,5 @@
1
- import { f as r } from "./translations-B3P1v3E6.js";
2
- const c = {
1
+ import { f as r } from "./translations-Do71ycSR.js";
2
+ const d = {
3
3
  loadingExtended: "로딩 중입니다. 잠시만 기다려 주세요",
4
4
  loadingShort: "로딩 중...",
5
5
  locale: "지역",
@@ -57,17 +57,17 @@ const c = {
57
57
  // inputs reset
58
58
  clearValue: "값 지우기",
59
59
  unknownType: "알 수 없는 형식",
60
- filesInputInstructions: (e, l, t) => {
60
+ filesInputInstructions: (e, o, t) => {
61
61
  let n = (e == null || e > 1, "클릭하여 선택하거나 파일을 여기로 드래그하세요");
62
- if (e || l) {
63
- const o = [];
64
- if (e != null && e > 1 && o.push(`최대 ${e}개 파일`), l && t) {
65
- const i = r(l, {
62
+ if (e || o) {
63
+ const l = [];
64
+ if (e != null && e > 1 && l.push(`최대 ${e}개 파일`), o && t) {
65
+ const i = r(o, {
66
66
  units: t
67
67
  });
68
- o.push(`각각 최대 ${i}`);
68
+ l.push(`각각 최대 ${i}`);
69
69
  }
70
- o.length > 0 && (n += ` (${o.join(", ")})`);
70
+ l.length > 0 && (n += ` (${l.join(", ")})`);
71
71
  }
72
72
  return n;
73
73
  },
@@ -85,8 +85,16 @@ const c = {
85
85
  codeBlock: "Code Block",
86
86
  horizontalRule: "Horizontal Rule",
87
87
  linkUrlPlaceholder: "https://example.com"
88
+ },
89
+ // PDF Page Viewer
90
+ pdfPageViewer: {
91
+ loading: "PDF 로딩 중...",
92
+ loadFailed: "PDF 로드 실패",
93
+ invalidPdf: "유효하지 않은 PDF 파일",
94
+ pageOutOfRange: (e, o) => `페이지 ${e}이(가) 범위를 벗어났습니다 (1-${o})`,
95
+ renderFailed: "PDF 페이지 렌더링 실패"
88
96
  }
89
97
  };
90
98
  export {
91
- c as default
99
+ d as default
92
100
  };
@@ -1,7 +1,7 @@
1
1
  import { WithElement as S, OnDispose as z, prop as R, computedOf as w, Fragment as M, attr as g, WithBrowserCtx as J, Value as U, render as Q, html as k, dataAttr as B, aria as V, on as X, When as q, Use as H, coalesce as I } from "@tempots/dom";
2
2
  import { g as $, T as _ } from "./timer-DzWb416P.js";
3
- import { s as Y, C as Z } from "./notice-DdYpd69I.js";
4
- import { a as K, B as P } from "./translations-B3P1v3E6.js";
3
+ import { s as Y, C as Z } from "./notice-DJ-olOQx.js";
4
+ import { a as K, B as P } from "./translations-Do71ycSR.js";
5
5
  const ee = [
6
6
  "a[href]",
7
7
  "button:not([disabled])",
@@ -1 +1 @@
1
- "use strict";const r=require("@tempots/dom"),w=require("./timer-DK_yKNwE.cjs"),q=require("./notice-BhxWf3Dh.cjs"),O=require("./translations-DZWe3znu.cjs"),_=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])','[contenteditable="true"]',"audio[controls]","video[controls]","details > summary:first-of-type","details[open]"].join(", ");function P(o){return Array.from(o.querySelectorAll(_)).filter(t=>{const s=t;return s.offsetWidth>0&&s.offsetHeight>0&&!s.hasAttribute("inert")&&window.getComputedStyle(s).visibility!=="hidden"})}function V(o={}){const{active:t=!0,escapeDeactivates:s=!0,onEscape:e,initialFocus:n,returnFocus:a,clickOutsideDeactivates:i=!1,onClickOutside:d}=o;return r.WithElement(p=>{let f=t,h=null,c=[];typeof document<"u"&&(h=document.activeElement);const v=()=>{c=P(p)},b=u=>{if(f){if(s&&u.key==="Escape"){u.preventDefault(),e?.();return}if(u.key==="Tab"){if(v(),c.length===0){u.preventDefault();return}const l=c.indexOf(document.activeElement);u.shiftKey?l<=0&&(u.preventDefault(),c[c.length-1]?.focus()):l>=c.length-1&&(u.preventDefault(),c[0]?.focus())}}},g=u=>{if(!f||!i)return;const l=u.target;p.contains(l)||d?.()},y=()=>{if(!f)return;v();let u=null;typeof n=="function"?u=n():n?u=n:c.length>0&&(u=c[0]),u&&setTimeout(()=>{u?.focus()},50),document.addEventListener("keydown",b,!0),i&&document.addEventListener("click",g,!0)},A=()=>{f=!1,document.removeEventListener("keydown",b,!0),document.removeEventListener("click",g,!0);let u=null;typeof a=="function"?u=a():a?u=a:h&&(u=h),u&&document.body.contains(u)&&setTimeout(()=>{u?.focus()},0)};return setTimeout(()=>y(),0),r.OnDispose(()=>{A()})})}function U(o={}){return{activate:()=>V({...o,active:!0}),deactivate:()=>V({...o,active:!1})}}function B({initialStatus:o="closed",openedAfter:t,closedAfter:s}){const e=r.prop(o),n=()=>{e.set("start-opening")},a=()=>{e.set("start-closing")},i=e.map(l=>l!=="closed"&&l!=="start-closing"&&l!=="closing"),d=l=>{l?n():a()},p=()=>{d(!i.value)},f=[],h=l=>{f.push(e.on(x=>{x==="closed"&&l()}))};let c=()=>{};e.on(l=>{switch(c(),l){case"start-opening":c=w.g(()=>e.set("opening"));break;case"opening":c=t(()=>e.set("opened"));break;case"start-closing":c=w.g(()=>e.set("closing"));break;case"closing":c=s(()=>e.set("closed"));break;case"closed":c=()=>{};break}}),e.onDispose(()=>{f.forEach(l=>l()),c()});const v=e.map(l=>l==="closed"),b=e.map(l=>l==="start-opening"),g=e.map(l=>l==="opening"),y=e.map(l=>l==="opened"),A=e.map(l=>l==="closing"),u=e.map(l=>l==="start-closing");return{status:e,open:n,close:a,toggle:p,setOpen:d,display:i,isClosed:v,isStartOpening:b,isOpening:g,isOpened:y,isClosing:A,isStartClosing:u,dispose:()=>e.dispose(),listenOnClosed:h}}function z({initialStatus:o="closed",duration:t,openDuration:s=t??500,closeDuration:e=t??500}={}){return B({initialStatus:o,openedAfter:n=>w.T(n,s),closedAfter:n=>w.T(n,e)})}function M(o,t){let s=!1,e=null;function n(){s||(s=!0,o.removeEventListener("transitionend",a),o.removeEventListener("animationend",i),e&&(clearTimeout(e),e=null),t())}function a(f){f.target===o&&n()}function i(f){f.target===o&&n()}const d=()=>{if(typeof o.getAnimations>"u"){e=setTimeout(n,16);return}o.addEventListener("transitionend",a),o.addEventListener("animationend",i),o.getAnimations().length===0&&(e=setTimeout(n,1e3))},p=w.g(d);return()=>{s=!0,p(),e&&(clearTimeout(e),e=null),o.removeEventListener("transitionend",a),o.removeEventListener("animationend",i)}}function F({initialStatus:o="closed",element:t}={}){let s=t;return{setElement:e=>{s=e},...B({initialStatus:o,openedAfter:e=>s==null?(e(),()=>{}):M(s,e),closedAfter:e=>s==null?(e(),()=>{}):M(s,e)})}}function R(o){if(o==null)return"";const t=[];return o.fade&&t.push("fade"),o.slide&&t.push(`slide-${o.slide}`),o.scale!=null&&t.push("scale"),t.length>0?t.join(" "):"none"}function H(o){if(o==null)return"";const t=[];return o.scale!=null&&typeof o.scale=="number"&&t.push(`--scale-factor: ${o.scale}`),o.transformOrigin!=null&&t.push(`--transform-origin: ${o.transformOrigin}`),o.duration!=null&&t.push(`--animation-duration: ${o.duration}ms`),o.easing!=null&&t.push(`--animation-easing: ${o.easing}`),t.join("; ")}function D({animation:o,status:t}){const s=r.computedOf(o,t)((n,a)=>{if(n==null)return`bc-animated-toggle bc-animated-toggle--${a}`;const i=a==="start-opening"||a==="opening"||a==="opened";let d;return"enter"in n||"exit"in n?d=i?n.enter:n.exit:d=n,`bc-animated-toggle bc-animated-toggle--${R(d)} bc-animated-toggle--${a}`}),e=r.computedOf(o,t)((n,a)=>{if(n==null)return"";const i=a==="start-opening"||a==="opening"||a==="opened";let d;return"enter"in n||"exit"in n?d=i?n.enter:n.exit:d=n,H(d)});return r.Fragment(r.attr.class(s),r.attr.style(e))}function K({initialStatus:o="closed",animation:t},s){return r.WithElement(e=>{const{setElement:n,dispose:a,...i}=F({initialStatus:o,element:e});return n(e),r.Fragment(D({status:i.status,animation:t}),r.OnDispose(a),s(i))})}function j(o){return{"~standard":{version:1,vendor:"beatui-custom",validate:s=>{const e=o.validate(s);return e.success?{value:e.data}:{issues:e.errors.map(n=>({message:n.message,path:n.path}))}},types:void 0},safeParse:s=>{const e=o.validate(s);return e.success?{success:!0,data:e.data}:{success:!1,error:{errors:e.errors.map(n=>({message:n.message,path:n.path?.map(a=>typeof a=="object"&&"key"in a?a.key.toString():a.toString())||[]}))}}}}}class k{optional(){return new N(this)}default(t){return new G(this,t)}schema(){return j(this)}}class T extends k{minLength;maxLength;pattern;customValidations=[];validate(t){if(typeof t!="string")return{success:!1,errors:[{message:"Expected string"}]};const s=[];this.minLength!==void 0&&t.length<this.minLength&&s.push({message:`Must be at least ${this.minLength} characters`}),this.maxLength!==void 0&&t.length>this.maxLength&&s.push({message:`Must be at most ${this.maxLength} characters`}),this.pattern&&!this.pattern.test(t)&&s.push({message:"Invalid format"});for(const e of this.customValidations){const n=e(t);n&&s.push({message:n})}return s.length>0?{success:!1,errors:s}:{success:!0,data:t}}min(t,s){const e=new T;return e.minLength=t,e.maxLength=this.maxLength,e.pattern=this.pattern,e.customValidations=[...this.customValidations],s&&e.customValidations.push(n=>n.length<t?s:null),e}max(t,s){const e=new T;return e.minLength=this.minLength,e.maxLength=t,e.pattern=this.pattern,e.customValidations=[...this.customValidations],s&&e.customValidations.push(n=>n.length>t?s:null),e}regex(t,s){const e=new T;return e.minLength=this.minLength,e.maxLength=this.maxLength,e.pattern=t,e.customValidations=[...this.customValidations],s&&e.customValidations.push(n=>t.test(n)?null:s),e}email(t="Please enter a valid email address"){const s=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,e=new T;return e.minLength=this.minLength,e.maxLength=this.maxLength,e.pattern=this.pattern,e.customValidations=[...this.customValidations,n=>s.test(n)?null:t],e}refine(t){const s=new T;return s.minLength=this.minLength,s.maxLength=this.maxLength,s.pattern=this.pattern,s.customValidations=[...this.customValidations,t],s}}class C extends k{mustBeTrue=!1;trueMessage;validate(t){return typeof t!="boolean"?{success:!1,errors:[{message:"Expected boolean"}]}:this.mustBeTrue&&t!==!0?{success:!1,errors:[{message:this.trueMessage||"Must be true"}]}:{success:!0,data:t}}refine(t,s){const e=new C;e.mustBeTrue=this.mustBeTrue,e.trueMessage=this.trueMessage;const n=e.validate.bind(e);return e.validate=a=>{const i=n(a);return i.success?t(i.data)?i:{success:!1,errors:[{message:s}]}:i},e}literal(t,s){const e=new C;return e.mustBeTrue=!0,e.trueMessage=s,e}}class N extends k{constructor(t){super(),this.inner=t}validate(t){if(t===void 0)return{success:!0,data:void 0};const s=this.inner.validate(t);return s.success?{success:!0,data:s.data}:{success:!1,errors:s.errors}}}class G extends k{constructor(t,s){super(),this.inner=t,this.defaultValue=s}validate(t){return t===void 0?{success:!0,data:this.defaultValue}:this.inner.validate(t)}}class $ extends k{constructor(t){super(),this.shape=t}validate(t){if(typeof t!="object"||t===null||Array.isArray(t))return{success:!1,errors:[{message:"Expected object"}]};const s=t,e={},n=[];for(const[a,i]of Object.entries(this.shape)){const d=i.validate(s[a]);if(d.success)e[a]=d.data;else for(const p of d.errors)n.push({message:p.message,path:[a,...p.path||[]]})}return n.length>0?{success:!1,errors:n}:{success:!0,data:e}}refine(t,s){const e=new $(this.shape),n=e.validate.bind(e);return e.validate=a=>{const i=n(a);if(!i.success)return i;const d=t(i.data);return d?{success:!1,errors:[{message:d,path:s?.path}]}:{success:!0,data:i.data}},e}}const J=()=>new T,Q=()=>new C,X=o=>new $(o);function I(o){return r.WithBrowserCtx(t=>{const s=[],e=()=>s.forEach(a=>a());return o(({effect:a="opaque",mode:i="capturing",onClickOutside:d,onEscape:p,content:f,container:h="body"})=>{h==="body"&&(t=t.makePortal("body"));const c=F();c.listenOnClosed(e);let v=()=>{},b=()=>{};const g=E=>{E.key==="Escape"&&(p?.(),c.close())},y=()=>{d?.(),c.close()},A=E=>{v(),b(),E==="capturing"?(document.addEventListener("keydown",g),v=()=>document.removeEventListener("keydown",g),t.element.addEventListener("mousedown",y),b=()=>t.element.removeEventListener("mousedown",y)):(v=()=>{},b=()=>{})},u=r.Value.on(i,A);s.push(u),s.push(()=>{c.dispose(),v(),b()});const l=()=>{const E=new Set;for(const m of t.element.querySelectorAll(":scope > :not([data-overlay])"))m.hasAttribute("inert")?E.add(m):m.setAttribute("inert","");return s.push(()=>{for(const m of t.element.querySelectorAll(":scope > :not([data-overlay])"))E.has(m)||m.removeAttribute("inert");E.clear()}),document.activeElement?.blur?.(),r.html.div(r.WithElement(m=>c.setElement(m)),r.dataAttr.status(c.status.map(String)),r.dataAttr.overlay("true"),r.attr.class(r.computedOf(a??"opaque",i)((m,L)=>`bc-overlay bc-overlay--effect-${m} bc-overlay--mode-${L}`)),f)},x=r.render(l(),t.element,{disposeWithParent:!0,clear:!1,providers:t.providers});s.push(x),w.g(()=>c.open())},e)})}function W(o,t){const{size:s="md",dismissable:e=!0,showCloseButton:n=!0,onClose:a,overlayEffect:i="opaque",container:d="body",position:p="center"}=o;return I((f,h)=>{let c=()=>{};return t(g=>{c=h;const y=r.prop("capturing");r.Value.on(e,m=>{y.set(m?"capturing":"non-capturing")});const A=r.computedOf(g.header!=null,n)((m,L)=>m||L),u=q.sessionId("modal"),l=`${u}-header`,x=`${u}-body`,E=r.html.div(r.attr.class(r.computedOf(s,p)((m,L)=>`bc-modal bc-modal--size-${m} bc-modal--container-${d} bc-modal--position-${L}`)),r.attr.role("dialog"),r.aria.modal(!0),...g.header?[r.aria.labelledby(l)]:[],r.aria.describedby(x),r.attr.tabindex(-1),r.attr.id(u),r.dataAttr.focusTrap("true"),r.on.mousedown(m=>m.stopPropagation()),V({escapeDeactivates:!1,initialFocus:()=>{const m=document.getElementById(u);if(!m)return null;const L=m.querySelector('[aria-label="Close modal"]');if(L)return L;const S=m.querySelector('button, input, select, textarea, [tabindex]:not([tabindex="-1"])');return S||m}}),r.html.div(r.attr.class("bc-modal__content"),r.When(A,()=>r.html.div(r.attr.class("bc-modal__header"),r.html.div(r.attr.class("bc-modal__title"),...g.header?[r.attr.id(l)]:[],g.header),r.When(n,()=>r.Use(O.BeatUII18n,m=>q.CloseButton({size:"sm",label:m.$.closeModal,onClick:()=>{c(),h()}}))))),r.html.div(r.attr.class("bc-modal__body"),r.attr.id(x),g.body),g.footer&&r.html.div(r.attr.class("bc-modal__footer"),g.footer)));f({mode:y,effect:i??"opaque",container:d,content:E,onClickOutside:()=>{a?.(),h()},onEscape:()=>{a?.(),h()}})},()=>{c(),h()})})}function Y(o,t){const{confirmText:s,cancelText:e,onConfirm:n,onCancel:a,...i}=o;return r.Use(O.BeatUII18n,d=>W({showCloseButton:!1,...i},(p,f)=>{const h=()=>{n?.(),f()},c=()=>{a?.(),f()};return t(b=>{p({body:b,footer:r.Fragment(r.attr.class("bc-modal__actions"),O.Button({variant:"outline",onClick:c},r.coalesce(e,d.$.cancel)),O.Button({color:"primary",variant:"filled",onClick:h},r.coalesce(s,d.$.confirm)))})},f)}))}exports.AnimatedToggle=K;exports.AnimatedToggleClass=D;exports.BooleanValidator=C;exports.ConfirmModal=Y;exports.FocusTrap=V;exports.Modal=W;exports.ObjectValidator=$;exports.Overlay=I;exports.StringValidator=T;exports.boolean=Q;exports.createStandardSchema=j;exports.object=X;exports.string=J;exports.useAnimatedElementToggle=F;exports.useAnimatedToggle=B;exports.useFocusTrap=U;exports.useTimedToggle=z;
1
+ "use strict";const r=require("@tempots/dom"),w=require("./timer-DK_yKNwE.cjs"),q=require("./notice-D8w_39td.cjs"),O=require("./translations-t-neYabN.cjs"),_=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])','[contenteditable="true"]',"audio[controls]","video[controls]","details > summary:first-of-type","details[open]"].join(", ");function P(o){return Array.from(o.querySelectorAll(_)).filter(t=>{const s=t;return s.offsetWidth>0&&s.offsetHeight>0&&!s.hasAttribute("inert")&&window.getComputedStyle(s).visibility!=="hidden"})}function V(o={}){const{active:t=!0,escapeDeactivates:s=!0,onEscape:e,initialFocus:n,returnFocus:a,clickOutsideDeactivates:i=!1,onClickOutside:d}=o;return r.WithElement(p=>{let f=t,h=null,c=[];typeof document<"u"&&(h=document.activeElement);const v=()=>{c=P(p)},b=u=>{if(f){if(s&&u.key==="Escape"){u.preventDefault(),e?.();return}if(u.key==="Tab"){if(v(),c.length===0){u.preventDefault();return}const l=c.indexOf(document.activeElement);u.shiftKey?l<=0&&(u.preventDefault(),c[c.length-1]?.focus()):l>=c.length-1&&(u.preventDefault(),c[0]?.focus())}}},g=u=>{if(!f||!i)return;const l=u.target;p.contains(l)||d?.()},y=()=>{if(!f)return;v();let u=null;typeof n=="function"?u=n():n?u=n:c.length>0&&(u=c[0]),u&&setTimeout(()=>{u?.focus()},50),document.addEventListener("keydown",b,!0),i&&document.addEventListener("click",g,!0)},A=()=>{f=!1,document.removeEventListener("keydown",b,!0),document.removeEventListener("click",g,!0);let u=null;typeof a=="function"?u=a():a?u=a:h&&(u=h),u&&document.body.contains(u)&&setTimeout(()=>{u?.focus()},0)};return setTimeout(()=>y(),0),r.OnDispose(()=>{A()})})}function U(o={}){return{activate:()=>V({...o,active:!0}),deactivate:()=>V({...o,active:!1})}}function B({initialStatus:o="closed",openedAfter:t,closedAfter:s}){const e=r.prop(o),n=()=>{e.set("start-opening")},a=()=>{e.set("start-closing")},i=e.map(l=>l!=="closed"&&l!=="start-closing"&&l!=="closing"),d=l=>{l?n():a()},p=()=>{d(!i.value)},f=[],h=l=>{f.push(e.on(x=>{x==="closed"&&l()}))};let c=()=>{};e.on(l=>{switch(c(),l){case"start-opening":c=w.g(()=>e.set("opening"));break;case"opening":c=t(()=>e.set("opened"));break;case"start-closing":c=w.g(()=>e.set("closing"));break;case"closing":c=s(()=>e.set("closed"));break;case"closed":c=()=>{};break}}),e.onDispose(()=>{f.forEach(l=>l()),c()});const v=e.map(l=>l==="closed"),b=e.map(l=>l==="start-opening"),g=e.map(l=>l==="opening"),y=e.map(l=>l==="opened"),A=e.map(l=>l==="closing"),u=e.map(l=>l==="start-closing");return{status:e,open:n,close:a,toggle:p,setOpen:d,display:i,isClosed:v,isStartOpening:b,isOpening:g,isOpened:y,isClosing:A,isStartClosing:u,dispose:()=>e.dispose(),listenOnClosed:h}}function z({initialStatus:o="closed",duration:t,openDuration:s=t??500,closeDuration:e=t??500}={}){return B({initialStatus:o,openedAfter:n=>w.T(n,s),closedAfter:n=>w.T(n,e)})}function M(o,t){let s=!1,e=null;function n(){s||(s=!0,o.removeEventListener("transitionend",a),o.removeEventListener("animationend",i),e&&(clearTimeout(e),e=null),t())}function a(f){f.target===o&&n()}function i(f){f.target===o&&n()}const d=()=>{if(typeof o.getAnimations>"u"){e=setTimeout(n,16);return}o.addEventListener("transitionend",a),o.addEventListener("animationend",i),o.getAnimations().length===0&&(e=setTimeout(n,1e3))},p=w.g(d);return()=>{s=!0,p(),e&&(clearTimeout(e),e=null),o.removeEventListener("transitionend",a),o.removeEventListener("animationend",i)}}function F({initialStatus:o="closed",element:t}={}){let s=t;return{setElement:e=>{s=e},...B({initialStatus:o,openedAfter:e=>s==null?(e(),()=>{}):M(s,e),closedAfter:e=>s==null?(e(),()=>{}):M(s,e)})}}function R(o){if(o==null)return"";const t=[];return o.fade&&t.push("fade"),o.slide&&t.push(`slide-${o.slide}`),o.scale!=null&&t.push("scale"),t.length>0?t.join(" "):"none"}function H(o){if(o==null)return"";const t=[];return o.scale!=null&&typeof o.scale=="number"&&t.push(`--scale-factor: ${o.scale}`),o.transformOrigin!=null&&t.push(`--transform-origin: ${o.transformOrigin}`),o.duration!=null&&t.push(`--animation-duration: ${o.duration}ms`),o.easing!=null&&t.push(`--animation-easing: ${o.easing}`),t.join("; ")}function D({animation:o,status:t}){const s=r.computedOf(o,t)((n,a)=>{if(n==null)return`bc-animated-toggle bc-animated-toggle--${a}`;const i=a==="start-opening"||a==="opening"||a==="opened";let d;return"enter"in n||"exit"in n?d=i?n.enter:n.exit:d=n,`bc-animated-toggle bc-animated-toggle--${R(d)} bc-animated-toggle--${a}`}),e=r.computedOf(o,t)((n,a)=>{if(n==null)return"";const i=a==="start-opening"||a==="opening"||a==="opened";let d;return"enter"in n||"exit"in n?d=i?n.enter:n.exit:d=n,H(d)});return r.Fragment(r.attr.class(s),r.attr.style(e))}function K({initialStatus:o="closed",animation:t},s){return r.WithElement(e=>{const{setElement:n,dispose:a,...i}=F({initialStatus:o,element:e});return n(e),r.Fragment(D({status:i.status,animation:t}),r.OnDispose(a),s(i))})}function j(o){return{"~standard":{version:1,vendor:"beatui-custom",validate:s=>{const e=o.validate(s);return e.success?{value:e.data}:{issues:e.errors.map(n=>({message:n.message,path:n.path}))}},types:void 0},safeParse:s=>{const e=o.validate(s);return e.success?{success:!0,data:e.data}:{success:!1,error:{errors:e.errors.map(n=>({message:n.message,path:n.path?.map(a=>typeof a=="object"&&"key"in a?a.key.toString():a.toString())||[]}))}}}}}class k{optional(){return new N(this)}default(t){return new G(this,t)}schema(){return j(this)}}class T extends k{minLength;maxLength;pattern;customValidations=[];validate(t){if(typeof t!="string")return{success:!1,errors:[{message:"Expected string"}]};const s=[];this.minLength!==void 0&&t.length<this.minLength&&s.push({message:`Must be at least ${this.minLength} characters`}),this.maxLength!==void 0&&t.length>this.maxLength&&s.push({message:`Must be at most ${this.maxLength} characters`}),this.pattern&&!this.pattern.test(t)&&s.push({message:"Invalid format"});for(const e of this.customValidations){const n=e(t);n&&s.push({message:n})}return s.length>0?{success:!1,errors:s}:{success:!0,data:t}}min(t,s){const e=new T;return e.minLength=t,e.maxLength=this.maxLength,e.pattern=this.pattern,e.customValidations=[...this.customValidations],s&&e.customValidations.push(n=>n.length<t?s:null),e}max(t,s){const e=new T;return e.minLength=this.minLength,e.maxLength=t,e.pattern=this.pattern,e.customValidations=[...this.customValidations],s&&e.customValidations.push(n=>n.length>t?s:null),e}regex(t,s){const e=new T;return e.minLength=this.minLength,e.maxLength=this.maxLength,e.pattern=t,e.customValidations=[...this.customValidations],s&&e.customValidations.push(n=>t.test(n)?null:s),e}email(t="Please enter a valid email address"){const s=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,e=new T;return e.minLength=this.minLength,e.maxLength=this.maxLength,e.pattern=this.pattern,e.customValidations=[...this.customValidations,n=>s.test(n)?null:t],e}refine(t){const s=new T;return s.minLength=this.minLength,s.maxLength=this.maxLength,s.pattern=this.pattern,s.customValidations=[...this.customValidations,t],s}}class C extends k{mustBeTrue=!1;trueMessage;validate(t){return typeof t!="boolean"?{success:!1,errors:[{message:"Expected boolean"}]}:this.mustBeTrue&&t!==!0?{success:!1,errors:[{message:this.trueMessage||"Must be true"}]}:{success:!0,data:t}}refine(t,s){const e=new C;e.mustBeTrue=this.mustBeTrue,e.trueMessage=this.trueMessage;const n=e.validate.bind(e);return e.validate=a=>{const i=n(a);return i.success?t(i.data)?i:{success:!1,errors:[{message:s}]}:i},e}literal(t,s){const e=new C;return e.mustBeTrue=!0,e.trueMessage=s,e}}class N extends k{constructor(t){super(),this.inner=t}validate(t){if(t===void 0)return{success:!0,data:void 0};const s=this.inner.validate(t);return s.success?{success:!0,data:s.data}:{success:!1,errors:s.errors}}}class G extends k{constructor(t,s){super(),this.inner=t,this.defaultValue=s}validate(t){return t===void 0?{success:!0,data:this.defaultValue}:this.inner.validate(t)}}class $ extends k{constructor(t){super(),this.shape=t}validate(t){if(typeof t!="object"||t===null||Array.isArray(t))return{success:!1,errors:[{message:"Expected object"}]};const s=t,e={},n=[];for(const[a,i]of Object.entries(this.shape)){const d=i.validate(s[a]);if(d.success)e[a]=d.data;else for(const p of d.errors)n.push({message:p.message,path:[a,...p.path||[]]})}return n.length>0?{success:!1,errors:n}:{success:!0,data:e}}refine(t,s){const e=new $(this.shape),n=e.validate.bind(e);return e.validate=a=>{const i=n(a);if(!i.success)return i;const d=t(i.data);return d?{success:!1,errors:[{message:d,path:s?.path}]}:{success:!0,data:i.data}},e}}const J=()=>new T,Q=()=>new C,X=o=>new $(o);function I(o){return r.WithBrowserCtx(t=>{const s=[],e=()=>s.forEach(a=>a());return o(({effect:a="opaque",mode:i="capturing",onClickOutside:d,onEscape:p,content:f,container:h="body"})=>{h==="body"&&(t=t.makePortal("body"));const c=F();c.listenOnClosed(e);let v=()=>{},b=()=>{};const g=E=>{E.key==="Escape"&&(p?.(),c.close())},y=()=>{d?.(),c.close()},A=E=>{v(),b(),E==="capturing"?(document.addEventListener("keydown",g),v=()=>document.removeEventListener("keydown",g),t.element.addEventListener("mousedown",y),b=()=>t.element.removeEventListener("mousedown",y)):(v=()=>{},b=()=>{})},u=r.Value.on(i,A);s.push(u),s.push(()=>{c.dispose(),v(),b()});const l=()=>{const E=new Set;for(const m of t.element.querySelectorAll(":scope > :not([data-overlay])"))m.hasAttribute("inert")?E.add(m):m.setAttribute("inert","");return s.push(()=>{for(const m of t.element.querySelectorAll(":scope > :not([data-overlay])"))E.has(m)||m.removeAttribute("inert");E.clear()}),document.activeElement?.blur?.(),r.html.div(r.WithElement(m=>c.setElement(m)),r.dataAttr.status(c.status.map(String)),r.dataAttr.overlay("true"),r.attr.class(r.computedOf(a??"opaque",i)((m,L)=>`bc-overlay bc-overlay--effect-${m} bc-overlay--mode-${L}`)),f)},x=r.render(l(),t.element,{disposeWithParent:!0,clear:!1,providers:t.providers});s.push(x),w.g(()=>c.open())},e)})}function W(o,t){const{size:s="md",dismissable:e=!0,showCloseButton:n=!0,onClose:a,overlayEffect:i="opaque",container:d="body",position:p="center"}=o;return I((f,h)=>{let c=()=>{};return t(g=>{c=h;const y=r.prop("capturing");r.Value.on(e,m=>{y.set(m?"capturing":"non-capturing")});const A=r.computedOf(g.header!=null,n)((m,L)=>m||L),u=q.sessionId("modal"),l=`${u}-header`,x=`${u}-body`,E=r.html.div(r.attr.class(r.computedOf(s,p)((m,L)=>`bc-modal bc-modal--size-${m} bc-modal--container-${d} bc-modal--position-${L}`)),r.attr.role("dialog"),r.aria.modal(!0),...g.header?[r.aria.labelledby(l)]:[],r.aria.describedby(x),r.attr.tabindex(-1),r.attr.id(u),r.dataAttr.focusTrap("true"),r.on.mousedown(m=>m.stopPropagation()),V({escapeDeactivates:!1,initialFocus:()=>{const m=document.getElementById(u);if(!m)return null;const L=m.querySelector('[aria-label="Close modal"]');if(L)return L;const S=m.querySelector('button, input, select, textarea, [tabindex]:not([tabindex="-1"])');return S||m}}),r.html.div(r.attr.class("bc-modal__content"),r.When(A,()=>r.html.div(r.attr.class("bc-modal__header"),r.html.div(r.attr.class("bc-modal__title"),...g.header?[r.attr.id(l)]:[],g.header),r.When(n,()=>r.Use(O.BeatUII18n,m=>q.CloseButton({size:"sm",label:m.$.closeModal,onClick:()=>{c(),h()}}))))),r.html.div(r.attr.class("bc-modal__body"),r.attr.id(x),g.body),g.footer&&r.html.div(r.attr.class("bc-modal__footer"),g.footer)));f({mode:y,effect:i??"opaque",container:d,content:E,onClickOutside:()=>{a?.(),h()},onEscape:()=>{a?.(),h()}})},()=>{c(),h()})})}function Y(o,t){const{confirmText:s,cancelText:e,onConfirm:n,onCancel:a,...i}=o;return r.Use(O.BeatUII18n,d=>W({showCloseButton:!1,...i},(p,f)=>{const h=()=>{n?.(),f()},c=()=>{a?.(),f()};return t(b=>{p({body:b,footer:r.Fragment(r.attr.class("bc-modal__actions"),O.Button({variant:"outline",onClick:c},r.coalesce(e,d.$.cancel)),O.Button({color:"primary",variant:"filled",onClick:h},r.coalesce(s,d.$.confirm)))})},f)}))}exports.AnimatedToggle=K;exports.AnimatedToggleClass=D;exports.BooleanValidator=C;exports.ConfirmModal=Y;exports.FocusTrap=V;exports.Modal=W;exports.ObjectValidator=$;exports.Overlay=I;exports.StringValidator=T;exports.boolean=Q;exports.createStandardSchema=j;exports.object=X;exports.string=J;exports.useAnimatedElementToggle=F;exports.useAnimatedToggle=B;exports.useFocusTrap=U;exports.useTimedToggle=z;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./translations-DZWe3znu.cjs"),i={loadingExtended:"Laden, even geduld",loadingShort:"Laden...",locale:"Landinstelling",iconDescription:"Pictogram",loadingIcon:"Laadpictogram",failedToLoadIcon:"Pictogram laden mislukt",editLabel:"Bewerken",selectOne:"Selecteer een",selectMany:"Selecteer meerdere",noResults:"Geen resultaten",passwordPlaceholderText:"Geheim wachtwoord",togglePasswordVisibility:"Wachtwoord zichtbaarheid wisselen",toggleMenu:"Menu wisselen",toggleAside:"Zijpaneel wisselen",mainNavigation:"Hoofdnavigatie",sidebar:"Zijbalk",closeDrawer:"Lade sluiten",closeModal:"Modaal sluiten",confirm:"Bevestigen",cancel:"Annuleren",addLabel:"Toevoegen",removeItem:"Item verwijderen",currentLocale:"Nederlands",ar:"Arabisch",de:"Duits",en:"Engels",es:"Spaans",fr:"Frans",hi:"Hindi",it:"Italiaans",ja:"Japans",ko:"Koreaans",nl:"Nederlands",pl:"Pools",pt:"Portugees",ru:"Russisch",tr:"Turks",vi:"Vietnamees",zh:"Chinees",he:"Hebreeuws",fa:"Perzisch",ur:"Urdu",emailPlaceholderText:"Voer je e-mail in",incrementValue:"Waarde verhogen",decrementValue:"Waarde verlagen",dropZoneInstructions:e=>e?"Klik om te kiezen of sleep bestanden hierheen, of druk op Enter of Spatie om bestandskiezer te openen":"Sleep bestanden hierheen",fileSizeUnits:["Bytes","KB","MB","GB","TB"],removeFile:"Bestand verwijderen",clearAllFiles:"Alle bestanden wissen",clearValue:"Waarde wissen",unknownType:"Onbekend type",filesInputInstructions:(e,t,l)=>{let o=e==null||e>1?"Klik om te kiezen of sleep bestanden hierheen":"Klik om te kiezen of sleep een bestand hierheen";if(e||t){const n=[];if(e!=null&&e>1&&n.push(`tot ${e} bestanden`),t&&l){const a=r.formatFileSize(t,{units:l});n.push(`max ${a} elk`)}n.length>0&&(o+=` (${n.join(", ")})`)}return o},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"}};exports.default=i;exports.nl=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./translations-t-neYabN.cjs"),t={loadingExtended:"Laden, even geduld",loadingShort:"Laden...",locale:"Landinstelling",iconDescription:"Pictogram",loadingIcon:"Laadpictogram",failedToLoadIcon:"Pictogram laden mislukt",editLabel:"Bewerken",selectOne:"Selecteer een",selectMany:"Selecteer meerdere",noResults:"Geen resultaten",passwordPlaceholderText:"Geheim wachtwoord",togglePasswordVisibility:"Wachtwoord zichtbaarheid wisselen",toggleMenu:"Menu wisselen",toggleAside:"Zijpaneel wisselen",mainNavigation:"Hoofdnavigatie",sidebar:"Zijbalk",closeDrawer:"Lade sluiten",closeModal:"Modaal sluiten",confirm:"Bevestigen",cancel:"Annuleren",addLabel:"Toevoegen",removeItem:"Item verwijderen",currentLocale:"Nederlands",ar:"Arabisch",de:"Duits",en:"Engels",es:"Spaans",fr:"Frans",hi:"Hindi",it:"Italiaans",ja:"Japans",ko:"Koreaans",nl:"Nederlands",pl:"Pools",pt:"Portugees",ru:"Russisch",tr:"Turks",vi:"Vietnamees",zh:"Chinees",he:"Hebreeuws",fa:"Perzisch",ur:"Urdu",emailPlaceholderText:"Voer je e-mail in",incrementValue:"Waarde verhogen",decrementValue:"Waarde verlagen",dropZoneInstructions:e=>e?"Klik om te kiezen of sleep bestanden hierheen, of druk op Enter of Spatie om bestandskiezer te openen":"Sleep bestanden hierheen",fileSizeUnits:["Bytes","KB","MB","GB","TB"],removeFile:"Bestand verwijderen",clearAllFiles:"Alle bestanden wissen",clearValue:"Waarde wissen",unknownType:"Onbekend type",filesInputInstructions:(e,n,l)=>{let 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 i=[];if(e!=null&&e>1&&i.push(`tot ${e} bestanden`),n&&l){const o=r.formatFileSize(n,{units:l});i.push(`max ${o} elk`)}i.length>0&&(a+=` (${i.join(", ")})`)}return a},prosemirror:{bold:"Bold",italic:"Italic",code:"Code",link:"Link",removeLink:"Remove Link",heading:e=>`Heading ${e}`,bulletList:"Bullet List",orderedList:"Ordered List",blockquote:"Blockquote",codeBlock:"Code Block",horizontalRule:"Horizontal Rule",linkUrlPlaceholder:"https://example.com"},pdfPageViewer:{loading:"PDF laden...",loadFailed:"PDF laden mislukt",invalidPdf:"Ongeldig PDF-bestand",pageOutOfRange:(e,n)=>`Pagina ${e} valt buiten bereik (1-${n})`,renderFailed:"PDF-pagina weergeven mislukt"}};exports.default=t;exports.nl=t;
@@ -1,4 +1,4 @@
1
- import { f as a } from "./translations-B3P1v3E6.js";
1
+ import { f as o } from "./translations-Do71ycSR.js";
2
2
  const s = {
3
3
  loadingExtended: "Laden, even geduld",
4
4
  loadingShort: "Laden...",
@@ -57,19 +57,19 @@ const s = {
57
57
  // inputs reset
58
58
  clearValue: "Waarde wissen",
59
59
  unknownType: "Onbekend type",
60
- filesInputInstructions: (e, o, t) => {
61
- let i = e == null || e > 1 ? "Klik om te kiezen of sleep bestanden hierheen" : "Klik om te kiezen of sleep een bestand hierheen";
62
- if (e || o) {
63
- const n = [];
64
- if (e != null && e > 1 && n.push(`tot ${e} bestanden`), o && t) {
65
- const l = a(o, {
66
- units: t
60
+ filesInputInstructions: (e, n, a) => {
61
+ let l = e == null || e > 1 ? "Klik om te kiezen of sleep bestanden hierheen" : "Klik om te kiezen of sleep een bestand hierheen";
62
+ if (e || n) {
63
+ const i = [];
64
+ if (e != null && e > 1 && i.push(`tot ${e} bestanden`), n && a) {
65
+ const t = o(n, {
66
+ units: a
67
67
  });
68
- n.push(`max ${l} elk`);
68
+ i.push(`max ${t} elk`);
69
69
  }
70
- n.length > 0 && (i += ` (${n.join(", ")})`);
70
+ i.length > 0 && (l += ` (${i.join(", ")})`);
71
71
  }
72
- return i;
72
+ return l;
73
73
  },
74
74
  // prosemirror
75
75
  prosemirror: {
@@ -85,6 +85,14 @@ const s = {
85
85
  codeBlock: "Code Block",
86
86
  horizontalRule: "Horizontal Rule",
87
87
  linkUrlPlaceholder: "https://example.com"
88
+ },
89
+ // PDF Page Viewer
90
+ pdfPageViewer: {
91
+ loading: "PDF laden...",
92
+ loadFailed: "PDF laden mislukt",
93
+ invalidPdf: "Ongeldig PDF-bestand",
94
+ pageOutOfRange: (e, n) => `Pagina ${e} valt buiten bereik (1-${n})`,
95
+ renderFailed: "PDF-pagina weergeven mislukt"
88
96
  }
89
97
  };
90
98
  export {
@@ -1,2 +1,2 @@
1
- "use strict";const s=require("@tempots/dom"),w=require("./translations-DZWe3znu.cjs"),L=new Map;function T(e){const t=L.get(e)??0;return L.set(e,t+1),`${e}-${t}`}const v={notAsked:{type:"NotAsked"},loading(e=void 0){return{type:"Loading",previousValue:e}},success(e){return{type:"AsyncSuccess",value:e}},failure(e){return{type:"AsyncFailure",error:e}},isSuccess(e){return e.type==="AsyncSuccess"},isFailure(e){return e.type==="AsyncFailure"},isNotAsked(e){return e.type==="NotAsked"},isLoading(e){return e.type==="Loading"},getOrElse(e,t){return v.isSuccess(e)?e.value:t},getOrElseLazy(e,t){return v.isSuccess(e)?e.value:t()},getOrNull(e){return v.isSuccess(e)?e.value:null},getOrUndefined(e){return v.isSuccess(e)?e.value:void 0},getUnsafe:e=>{if(v.isSuccess(e))return e.value;throw v.isFailure(e)?e.error:new Error("Cannot get value from a not-asked or loading result")},match:(e,{success:t,failure:n,loading:r,notAsked:a=r})=>v.isSuccess(e)?t(e.value):v.isFailure(e)?n(e.error):v.isNotAsked(e)?a():r(e.previousValue),whenSuccess:(e,t)=>(v.isSuccess(e)&&t(e.value),e),whenFailure:(e,t)=>(v.isFailure(e)&&t(e.error),e),equals:(e,t,n={valueEquals:(r,a)=>r===a,errorEquals:(r,a)=>r===a})=>e.type==="AsyncSuccess"&&t.type==="AsyncSuccess"?n.valueEquals(e.value,t.value):e.type==="AsyncFailure"&&t.type==="AsyncFailure"?n.errorEquals(e.error,t.error):e.type==="Loading"&&t.type==="Loading"?n.valueEquals(e.previousValue,t.previousValue):e.type==="NotAsked"&&t.type==="NotAsked",all:e=>{const t=[];for(const n of e)if(v.isSuccess(n))t.push(n.value);else return n;return v.success(t)},ofPromise:async e=>{try{const t=await e;return v.success(t)}catch(t){return v.failure(t instanceof Error?t:new Error(String(t)))}}},O=(e,t)=>e===t||e!==e&&t!==t,S={valid:{type:"valid"},invalid(e){return{type:"invalid",error:e}},isValid(e){return e.type==="valid"},isInvalid(e){return e.type==="invalid"},match:(e,t,n)=>S.isValid(e)?t():n(e.error),toResult:(e,t)=>S.match(e,()=>f.success(t),n=>f.failure(n)),whenValid:(e,t)=>(S.isValid(e)&&t(),e),whenInvalid:(e,t)=>(S.isInvalid(e)&&t(e.error),e)},f={success(e){return{type:"Success",value:e}},failure(e){return{type:"Failure",error:e}},map:(e,t)=>e.type==="Success"?f.success(t(e.value)):e,flatMap:(e,t)=>e.type==="Success"?t(e.value):e,toAsync(e){return f.match(e,t=>v.success(t),t=>v.failure(t))},toValidation(e){return f.match(e,()=>S.valid,t=>S.invalid(t))},isSuccess(e){return e.type==="Success"},isFailure(e){return e.type==="Failure"},getOrElse(e,t){return f.isSuccess(e)?e.value:t},getOrElseLazy(e,t){return f.isSuccess(e)?e.value:t()},getOrNull(e){return f.isSuccess(e)?e.value:null},getOrUndefined(e){return f.isSuccess(e)?e.value:void 0},getUnsafe:e=>{if(f.isSuccess(e))return e.value;throw e.error},match:(e,t,n)=>f.isSuccess(e)?t(e.value):n(e.error),whenSuccess:(e,t)=>(f.isSuccess(e)&&t(e.value),e),whenFailure:(e,t)=>(f.isFailure(e)&&t(e.error),e),combine:(e,t,n,r)=>f.match(e,a=>f.match(t,i=>f.success(n(a,i)),i=>f.failure(i)),a=>f.match(t,i=>f.failure(a),i=>f.failure(r(a,i)))),equals:(e,t,n={valueEquals:(r,a)=>r===a,errorEquals:(r,a)=>r===a})=>e.type==="Success"&&t.type==="Success"?n.valueEquals(e.value,t.value):e.type==="Failure"&&t.type==="Failure"?n.errorEquals(e.error,t.error):!1,all:e=>{const t=[];for(const n of e)if(f.isSuccess(n))t.push(n.value);else return n;return f.success(t)}};function N({size:e="sm",icon:t="line-md:close",disabled:n,roundedness:r="full",color:a="base",onClick:i,label:o},...l){return s.Use(w.BeatUII18n,c=>{const p=s.coalesce(o,c.$.closeModal);return w.Button({variant:"text",size:e,roundedness:r,disabled:n,color:a,onClick:i},s.attr.title(p),s.aria.label(p),...l,w.Icon({icon:t,size:e??"sm"}))})}function F(e){return`bc-label bc-label--${e}`}const ee=(...e)=>s.html.span(s.attr.class(F("emphasis")),...e),j=(...e)=>s.html.span(s.attr.class(F("default")),...e),q=(...e)=>s.html.span(s.attr.class(F("muted")),...e),te=(...e)=>s.html.span(s.attr.class(F("danger")),...e),se=e=>{const{value:t,onBlur:n,onChange:r,placeholder:a,disabled:i,id:o,checkedIcon:l,uncheckedIcon:c,iconSize:p="lg"}=e,h=o??T("checkbox"),m=`${h}-label`,k=()=>{if(s.Value.get(i??!1))return;const u=s.Value.get(t);r?.(!u)},g=u=>{s.Value.get(i??!1)||(u.key===" "||u.key==="Enter")&&(u.preventDefault(),k())};return w.InputContainer({baseContainer:!0,growInput:!1,...e,input:s.html.span(s.attr.class("bc-checkbox-input"),s.html.span(s.attr.class("bc-checkbox-input__checkbox"),s.attr.class(s.Value.map(t,u=>u?"bc-checkbox-input__checkbox--checked":"bc-checkbox-input__checkbox--unchecked")),s.attr.class(s.Value.map(i??!1,u=>u?"bc-checkbox-input__checkbox--disabled":"")),s.attr.id(h),s.attr.role("checkbox"),s.attr.tabindex(s.Value.map(i??!1,u=>u?-1:0)),s.aria.checked(t),s.aria.disabled(i),a!=null?s.aria.labelledby(m):s.Empty,s.on.keydown(g),n!=null?s.on.blur(n):s.Empty,w.Icon({icon:s.computedOf(t,l,c)((u,d,b)=>u?d??"akar-icons/check-box-fill":b??"akar-icons/box"),accessibility:"decorative",size:p})),a!=null?s.html.label(s.attr.class("bc-checkbox-input__label"),s.attr.id(m),s.attr.for(h),q(a)):s.Empty)},s.on.click(k))},U=s.html.span(s.attr.class("bc-input-wrapper__required")," *");function ne(e){const t=["bc-input-wrapper"];return e!=="vertical"&&t.push(`bc-input-wrapper--${e}`),t.join(" ")}function re(e,t){const n=["bc-input-wrapper__label-text"];return e?n.push("bc-input-wrapper__label-text--error"):t?n.push("bc-input-wrapper__label-text--disabled"):n.push("bc-input-wrapper__label-text--default"),n.join(" ")}function x(e,t){if(e==="horizontal-fixed"&&t!=null)return`--input-wrapper-label-width: ${t}`}const B=({fullWidth:e=!1,required:t,label:n,labelChildren:r,context:a,description:i,content:o,error:l,labelFor:c,hasError:p,disabled:h,layout:m,labelWidth:k},...g)=>{const u=p??l!=null,d=h??!1,b=m??"vertical",C=T("input-wrapper"),I=i?`${C}-description`:void 0,_=l!=null?`${C}-error`:void 0,A=s.computedOf(b)(y=>y!=="vertical");return s.html.div(s.attr.class(s.Value.map(b,y=>ne(y))),s.attr.class(s.Value.map(e,y=>y?"bc-input-wrapper--full-width":"")),s.When(s.computedOf(b,k??void 0)((y,E)=>x(y,E)!=null),()=>s.attr.style(s.Value.map(s.computedOf(b,k??void 0)((y,E)=>x(y,E)),y=>y))),n!=null||a!=null?s.html.div(s.attr.class("bc-input-wrapper__header"),s.html.div(s.attr.class("bc-input-wrapper__label-section"),s.html.label(s.attr.class("bc-input-wrapper__label"),c!=null?s.attr.for(c):s.Empty,s.html.span(s.attr.class(s.computedOf(u,d)((y,E)=>re(y??!1,E??!1))),n),n!=null&&t?U:s.Empty),s.When(s.computedOf(A,i)((y,E)=>y&&E!=null),()=>s.html.div(s.attr.class("bc-input-wrapper__description bc-input-wrapper__description--under-label"),s.attr.id(I),i))),a!=null?j(a):s.Empty,r):s.Empty,s.html.div(s.attr.class("bc-input-wrapper__content"),[I,_].filter(Boolean).length>0?s.dataAttr.describedby([I,_].filter(Boolean).join(" ")):s.Empty,t?s.dataAttr.required("true"):s.Empty,s.When(u,()=>s.dataAttr.invalid("true")),o),s.When(s.computedOf(A,i)((y,E)=>!y&&E!=null),()=>s.html.div(s.attr.class("bc-input-wrapper__description"),s.attr.id(I),i)),l!=null?s.When(u,()=>s.html.div(s.attr.class("bc-input-wrapper__error"),s.attr.id(_),s.aria.live("polite"),s.attr.role("alert"),l)):null,...g)};function ae(...e){return s.html.div(s.attr.class("bc-stack"),...e)}const ie=e=>{const t={name:"email",autocomplete:"email",...e},{value:n,before:r,onBlur:a,onChange:i,onInput:o,placeholder:l}=t,c=r??w.InputIcon({icon:"line-md:email",size:e.size,color:"neutral"});return s.Use(w.BeatUII18n,p=>w.InputContainer({...e,before:c,input:s.input.email(w.CommonInputAttributes(t),s.attr.placeholder(s.coalesce(l,p.$.emailPlaceholderText)),s.attr.value(n),s.attr.class("bc-input"),a!=null?s.on.blur(s.emitValue(a)):s.Empty,i!=null?s.on.change(s.emitValue(i)):s.Empty,o!=null?s.on.input(s.emitValue(o)):s.Empty)}))},le=e=>{const{value:t,onBlur:n,onChange:r,onInput:a,before:i,after:o,hasError:l,disabled:c,autocomplete:p,placeholder:h,...m}=e,k={name:"password",disabled:c,...m},g=s.prop(!0),u=s.computedOf(g,p)((d,b)=>d?b??"current-password":"off");return s.Use(w.BeatUII18n,d=>{const b=s.computedOf(d.$.passwordPlaceholderText,g,h)((I,_,A)=>_?"•••••••••••••••":A??I),C=s.html.button(s.attr.type("button"),s.attr.class("bc-input-container__password-toggle"),s.aria.label(d.$.togglePasswordVisibility),s.on.click(()=>g.update(I=>!I)),s.When(g,()=>w.Icon({icon:"line-md:watch"}),()=>w.Icon({icon:"line-md:watch-off"})));return w.InputContainer({before:i,disabled:c,hasError:l,input:s.html.input(w.CommonInputAttributes({...k,autocomplete:u,placeholder:b}),s.When(g,()=>s.Fragment(s.attr.type("password")),()=>s.Fragment(s.attr.type("text"))),s.attr.class("bc-input"),s.attr.value(t),n!=null?s.on.blur(s.emitValue(n)):s.Empty,r!=null?s.on.change(s.emitValue(r)):s.Empty,a!=null?s.on.input(s.emitValue(a)):s.Empty),after:o!=null?s.Fragment(C,o):C})})},W=(e,t)=>()=>{e.markTouched(),t?.()},z=(e,t)=>n=>{e.change(n),t?.(n)};function P(e,t){const{controller:n,onBlur:r,onChange:a,id:i,...o}=t;return e({id:i??n.name,disabled:n.disabled,value:n.signal,hasError:n.errorVisible,name:n.name,...o,onChange:z(n,a),onBlur:W(n,r)})}function oe(e,{id:t,labelFor:n,...r},...a){const i=t??r.controller.name??T("control");return B({...r,labelFor:n??i,content:P(l=>e({...l,id:i}),r)},...a)}function H(e,t){const{toInput:n,fromInput:r,controller:a,...i}=t,o=a.transform(n,r);return P(e,{...i,controller:o})}function ce(e,{id:t,labelFor:n,...r},...a){const i=t??r.controller.name??T("control");return B({...r,labelFor:n??i,content:H(e,{...r,id:i})},...a)}function ue(e){return e.split(".").map(n=>{const r=n.match(/^\[(\d+)\]$/);return r?Number(r[1]):n})}function R(e){return typeof e=="number"?`[${e}]`:`.${e}`}function K(e){if(e.length===0)return"";const[t,...n]=e;return[typeof t=="number"?`[${t}]`:t,...n.map(R)].join("")}function D(e){return function(n){if(n.type==="valid")return n;let r=n.error;for(const a of e)if(r=r?.dependencies?.[a],r==null)return S.valid;return S.invalid(r)}}class V{path;change;signal;status;error;hasError;touched;errorVisible;dirty;dependencyErrors;#e={disabled:s.prop(!1),touched:s.prop(!1)};#s;#t=s.prop(void 0);parent;disabled;#n=[];disabledOrHasErrors;constructor(t,n,r,a,i,o=O){this.path=t,this.change=n,this.signal=r,this.status=a,this.#s=o,this.#t.set(r.value),this.error=a.map(l=>l?.type==="invalid"?l.error?.message:void 0),this.hasError=this.error.map(l=>l!=null),this.touched=this.#e.touched,i.validationMode?this.errorVisible=s.computedOf(this.hasError,this.touched,i.validationMode)((l,c,p)=>p==="continuous"?!!l:!!l&&!!c):this.errorVisible=s.computedOf(this.hasError,this.touched)((l,c)=>!!l&&!!c),this.dirty=s.computedOf(this.signal,this.#t)((l,c)=>!this.#s(l,c)),this.dependencyErrors=a.map(l=>l?.type==="invalid"?l.error?.dependencies:void 0),this.parent=i,this.disabled=s.computedOf(this.#e.disabled,i.disabled)((l,c)=>l||c),this.disabledOrHasErrors=s.computedOf(this.disabled,this.hasError)((l,c)=>l||c),this.onDispose(()=>{this.#e.disabled.dispose(),this.#e.touched.dispose(),this.disabled.dispose(),this.error.dispose(),this.errorVisible.dispose(),this.dirty.dispose(),this.#t.dispose(),this.dependencyErrors.dispose(),this.disabledOrHasErrors.dispose()})}get name(){return K(this.path)}onDispose=t=>{this.#n.push(t)};dispose=()=>{for(const t of this.#n)try{t()}catch(n){console.error("Error in dispose callback:",n)}this.#n.length=0};setDisabled=t=>{this.#e.disabled.set(t)};disable=()=>this.setDisabled(!0);enable=()=>this.setDisabled(!1);markTouched=()=>{this.#e.touched.set(!0)};resetTouched=()=>{this.#e.touched.set(!1)};markPristine=()=>{this.#t.set(this.signal.value)};reset=()=>{this.change(this.#t.value)};array=(t=O)=>new J(this.path,this.change,this.signal,this.status,this.parent,t);object=(t=O)=>new G(this.path,this.change,this.signal,this.status,this.parent,t);transform=(t,n,r=[],a=O)=>new V([...this.path,...r],i=>this.change(n(i)),this.signal.map(t,a),this.status.map(D(r)),this.parent,a);asyncTransform=(t,n,r,a=[],i=O)=>new V([...this.path,...a],o=>{n(o).then(l=>this.change(l))},this.signal.mapAsync(t,r,void 0,i),this.status.map(D(a)),this.parent,i)}class G extends V{#e=new Map;#s=new Map;#t=new Map;#n=s.prop(!1);touchedDeep=this.#n;#a=new Map;#r=new Map;#l=s.prop(!1);dirtyDeep=this.#l;#c;#u;#o=()=>{let t=!1;for(const n of this.#s.values())if(n){t=!0;break}this.#n.set(this.touched.value||t)};constructor(t,n,r,a,i,o){super(t,n,r.map(c=>c??{},o),a,i,o),this.#c=this.touched.on(()=>{this.#o()}),this.#u=this.dirty.on(()=>{this.#i()});const l=this.signal.on(()=>this.#i());this.onDispose(()=>{for(const c of this.#e.values())c.dispose();this.#e.clear();for(const c of this.#t.values())c();this.#t.clear(),this.#s.clear(),this.#n.dispose();for(const c of this.#r.values())c();this.#r.clear(),this.#a.clear(),this.#l.dispose(),this.#c(),this.#u(),l()})}field=t=>{if(this.#e.has(t))return this.#e.get(t);const n=async o=>{this.change({...this.signal.value,[t]:o})},r=new V([...this.path,t],n,this.signal.map(o=>o[t]),this.status.map(D([t])),{disabled:this.disabled,validationMode:this.parent.validationMode});this.#e.set(t,r);const a=r.touched.on(o=>{this.#s.set(t,o),this.#o()});this.#t.set(t,a);const i=r.dirty.on(o=>{this.#a.set(t,o),this.#i()});return this.#r.set(t,i),r};markAllTouched=()=>{this.markTouched();const t=this.signal.value;for(const n of Object.keys(t))this.field(n).markTouched();for(const n of this.#e.values())n.markTouched()};markAllPristine=()=>{this.markPristine();const t=this.signal.value;for(const n of Object.keys(t))this.field(n).markPristine?.();for(const n of this.#e.values())n.markPristine?.()};#i=()=>{let t=!1;for(const n of this.#a.values())if(n){t=!0;break}this.#l.set(this.dirty.value||t)}}class J extends V{#e=new Array;length;#s=new Map;#t=new Map;#n=s.prop(!1);touchedDeep=this.#n;#a=new Map;#r=new Map;#l=s.prop(!1);dirtyDeep=this.#l;#c;#u;#o=()=>{let t=!1;for(const n of this.#s.values())if(n){t=!0;break}this.#n.set(this.touched.value||t)};constructor(t,n,r,a,i,o){const l=r.map(h=>h??[],o);super(t,n,l,a,i,o);const c=l.on(h=>{const m=this.#e.length-h.length;m>0&&(this.#e.splice(h.length,m).forEach((k,g)=>{const u=h.length+g;k.dispose(),this.#t.get(u)?.(),this.#t.delete(u),this.#s.delete(u),this.#r.get(u)?.(),this.#r.delete(u),this.#a.delete(u)}),this.#o(),this.#i())});this.length=l.map(h=>h.length),this.#c=this.touched.on(()=>{this.#o()}),this.#u=this.dirty.on(()=>{this.#i()});const p=this.signal.on(()=>this.#i());this.onDispose(()=>{for(const h of this.#e)h.dispose();this.length.dispose(),this.#e.length=0,c(),l.dispose();for(const h of this.#t.values())h();this.#t.clear(),this.#s.clear(),this.#n.dispose();for(const h of this.#r.values())h();this.#r.clear(),this.#a.clear(),this.#l.dispose(),this.#c(),this.#u(),p()})}item=t=>{if(this.#e[t])return this.#e[t];const n=async o=>{const l=this.signal.value.slice();l[t]=o,this.change(l)},r=new V([...this.path,t],n,this.signal.map(o=>o[t]),this.status.map(D([t])),{disabled:this.disabled,validationMode:this.parent.validationMode});this.#e[t]=r;const a=r.touched.on(o=>{this.#s.set(t,o),this.#o()});this.#t.set(t,a);const i=r.dirty.on(o=>{this.#a.set(t,o),this.#i()});return this.#r.set(t,i),r};push=(...t)=>{this.change([...this.signal.value,...t])};pop=()=>{this.splice(this.signal.value.length-1,1)};shift=()=>{this.splice(0,1)};unshift=(...t)=>{this.change([...t,...this.signal.value])};removeAt=t=>{this.splice(t,1)};splice=(t,n)=>{const r=this.signal.value.slice();r.splice(t,n),this.change(r)};move=(t,n,r=1)=>{if(r<1||t===n)return;const a=this.signal.value.slice(),i=a.splice(t,r);a.splice(n,0,...i),this.change(a)};markAllTouched=()=>{this.markTouched();const t=this.signal.value.length;for(let n=0;n<t;n++)this.item(n).markTouched()};markAllPristine=()=>{this.markPristine();const t=this.signal.value.length;for(let n=0;n<t;n++)this.item(n).markPristine?.()};#i=()=>{let t=!1;for(const n of this.#a.values())if(n){t=!0;break}this.#l.set(this.dirty.value||t)}}function Q(e){function t(n){return typeof n=="number"?n:n.toString()}return e.map(n=>typeof n=="object"&&n.key!=null?t(n.key):t(n))}function X(e){const t=e.filter(a=>a.path==null||a.path.length===0).map(a=>a.message),n=e.filter(a=>a.path!=null&&a.path.length>0).reduce((a,i)=>{const o=Q(i.path),l=o.pop();let c=a;for(const p of o)c.dependencies==null&&(c.dependencies={}),c.dependencies[p]==null&&(c.dependencies[p]={}),c=c.dependencies[p];return c.dependencies==null&&(c.dependencies={}),c.dependencies[l]={message:i.message},a},{}),r=t.join(`
1
+ "use strict";const s=require("@tempots/dom"),w=require("./translations-t-neYabN.cjs"),L=new Map;function T(e){const t=L.get(e)??0;return L.set(e,t+1),`${e}-${t}`}const v={notAsked:{type:"NotAsked"},loading(e=void 0){return{type:"Loading",previousValue:e}},success(e){return{type:"AsyncSuccess",value:e}},failure(e){return{type:"AsyncFailure",error:e}},isSuccess(e){return e.type==="AsyncSuccess"},isFailure(e){return e.type==="AsyncFailure"},isNotAsked(e){return e.type==="NotAsked"},isLoading(e){return e.type==="Loading"},getOrElse(e,t){return v.isSuccess(e)?e.value:t},getOrElseLazy(e,t){return v.isSuccess(e)?e.value:t()},getOrNull(e){return v.isSuccess(e)?e.value:null},getOrUndefined(e){return v.isSuccess(e)?e.value:void 0},getUnsafe:e=>{if(v.isSuccess(e))return e.value;throw v.isFailure(e)?e.error:new Error("Cannot get value from a not-asked or loading result")},match:(e,{success:t,failure:n,loading:r,notAsked:a=r})=>v.isSuccess(e)?t(e.value):v.isFailure(e)?n(e.error):v.isNotAsked(e)?a():r(e.previousValue),whenSuccess:(e,t)=>(v.isSuccess(e)&&t(e.value),e),whenFailure:(e,t)=>(v.isFailure(e)&&t(e.error),e),equals:(e,t,n={valueEquals:(r,a)=>r===a,errorEquals:(r,a)=>r===a})=>e.type==="AsyncSuccess"&&t.type==="AsyncSuccess"?n.valueEquals(e.value,t.value):e.type==="AsyncFailure"&&t.type==="AsyncFailure"?n.errorEquals(e.error,t.error):e.type==="Loading"&&t.type==="Loading"?n.valueEquals(e.previousValue,t.previousValue):e.type==="NotAsked"&&t.type==="NotAsked",all:e=>{const t=[];for(const n of e)if(v.isSuccess(n))t.push(n.value);else return n;return v.success(t)},ofPromise:async e=>{try{const t=await e;return v.success(t)}catch(t){return v.failure(t instanceof Error?t:new Error(String(t)))}}},O=(e,t)=>e===t||e!==e&&t!==t,S={valid:{type:"valid"},invalid(e){return{type:"invalid",error:e}},isValid(e){return e.type==="valid"},isInvalid(e){return e.type==="invalid"},match:(e,t,n)=>S.isValid(e)?t():n(e.error),toResult:(e,t)=>S.match(e,()=>f.success(t),n=>f.failure(n)),whenValid:(e,t)=>(S.isValid(e)&&t(),e),whenInvalid:(e,t)=>(S.isInvalid(e)&&t(e.error),e)},f={success(e){return{type:"Success",value:e}},failure(e){return{type:"Failure",error:e}},map:(e,t)=>e.type==="Success"?f.success(t(e.value)):e,flatMap:(e,t)=>e.type==="Success"?t(e.value):e,toAsync(e){return f.match(e,t=>v.success(t),t=>v.failure(t))},toValidation(e){return f.match(e,()=>S.valid,t=>S.invalid(t))},isSuccess(e){return e.type==="Success"},isFailure(e){return e.type==="Failure"},getOrElse(e,t){return f.isSuccess(e)?e.value:t},getOrElseLazy(e,t){return f.isSuccess(e)?e.value:t()},getOrNull(e){return f.isSuccess(e)?e.value:null},getOrUndefined(e){return f.isSuccess(e)?e.value:void 0},getUnsafe:e=>{if(f.isSuccess(e))return e.value;throw e.error},match:(e,t,n)=>f.isSuccess(e)?t(e.value):n(e.error),whenSuccess:(e,t)=>(f.isSuccess(e)&&t(e.value),e),whenFailure:(e,t)=>(f.isFailure(e)&&t(e.error),e),combine:(e,t,n,r)=>f.match(e,a=>f.match(t,i=>f.success(n(a,i)),i=>f.failure(i)),a=>f.match(t,i=>f.failure(a),i=>f.failure(r(a,i)))),equals:(e,t,n={valueEquals:(r,a)=>r===a,errorEquals:(r,a)=>r===a})=>e.type==="Success"&&t.type==="Success"?n.valueEquals(e.value,t.value):e.type==="Failure"&&t.type==="Failure"?n.errorEquals(e.error,t.error):!1,all:e=>{const t=[];for(const n of e)if(f.isSuccess(n))t.push(n.value);else return n;return f.success(t)}};function N({size:e="sm",icon:t="line-md:close",disabled:n,roundedness:r="full",color:a="base",onClick:i,label:o},...l){return s.Use(w.BeatUII18n,c=>{const p=s.coalesce(o,c.$.closeModal);return w.Button({variant:"text",size:e,roundedness:r,disabled:n,color:a,onClick:i},s.attr.title(p),s.aria.label(p),...l,w.Icon({icon:t,size:e??"sm"}))})}function F(e){return`bc-label bc-label--${e}`}const ee=(...e)=>s.html.span(s.attr.class(F("emphasis")),...e),j=(...e)=>s.html.span(s.attr.class(F("default")),...e),q=(...e)=>s.html.span(s.attr.class(F("muted")),...e),te=(...e)=>s.html.span(s.attr.class(F("danger")),...e),se=e=>{const{value:t,onBlur:n,onChange:r,placeholder:a,disabled:i,id:o,checkedIcon:l,uncheckedIcon:c,iconSize:p="lg"}=e,h=o??T("checkbox"),m=`${h}-label`,k=()=>{if(s.Value.get(i??!1))return;const u=s.Value.get(t);r?.(!u)},g=u=>{s.Value.get(i??!1)||(u.key===" "||u.key==="Enter")&&(u.preventDefault(),k())};return w.InputContainer({baseContainer:!0,growInput:!1,...e,input:s.html.span(s.attr.class("bc-checkbox-input"),s.html.span(s.attr.class("bc-checkbox-input__checkbox"),s.attr.class(s.Value.map(t,u=>u?"bc-checkbox-input__checkbox--checked":"bc-checkbox-input__checkbox--unchecked")),s.attr.class(s.Value.map(i??!1,u=>u?"bc-checkbox-input__checkbox--disabled":"")),s.attr.id(h),s.attr.role("checkbox"),s.attr.tabindex(s.Value.map(i??!1,u=>u?-1:0)),s.aria.checked(t),s.aria.disabled(i),a!=null?s.aria.labelledby(m):s.Empty,s.on.keydown(g),n!=null?s.on.blur(n):s.Empty,w.Icon({icon:s.computedOf(t,l,c)((u,d,b)=>u?d??"akar-icons/check-box-fill":b??"akar-icons/box"),accessibility:"decorative",size:p})),a!=null?s.html.label(s.attr.class("bc-checkbox-input__label"),s.attr.id(m),s.attr.for(h),q(a)):s.Empty)},s.on.click(k))},U=s.html.span(s.attr.class("bc-input-wrapper__required")," *");function ne(e){const t=["bc-input-wrapper"];return e!=="vertical"&&t.push(`bc-input-wrapper--${e}`),t.join(" ")}function re(e,t){const n=["bc-input-wrapper__label-text"];return e?n.push("bc-input-wrapper__label-text--error"):t?n.push("bc-input-wrapper__label-text--disabled"):n.push("bc-input-wrapper__label-text--default"),n.join(" ")}function x(e,t){if(e==="horizontal-fixed"&&t!=null)return`--input-wrapper-label-width: ${t}`}const B=({fullWidth:e=!1,required:t,label:n,labelChildren:r,context:a,description:i,content:o,error:l,labelFor:c,hasError:p,disabled:h,layout:m,labelWidth:k},...g)=>{const u=p??l!=null,d=h??!1,b=m??"vertical",C=T("input-wrapper"),I=i?`${C}-description`:void 0,_=l!=null?`${C}-error`:void 0,A=s.computedOf(b)(y=>y!=="vertical");return s.html.div(s.attr.class(s.Value.map(b,y=>ne(y))),s.attr.class(s.Value.map(e,y=>y?"bc-input-wrapper--full-width":"")),s.When(s.computedOf(b,k??void 0)((y,E)=>x(y,E)!=null),()=>s.attr.style(s.Value.map(s.computedOf(b,k??void 0)((y,E)=>x(y,E)),y=>y))),n!=null||a!=null?s.html.div(s.attr.class("bc-input-wrapper__header"),s.html.div(s.attr.class("bc-input-wrapper__label-section"),s.html.label(s.attr.class("bc-input-wrapper__label"),c!=null?s.attr.for(c):s.Empty,s.html.span(s.attr.class(s.computedOf(u,d)((y,E)=>re(y??!1,E??!1))),n),n!=null&&t?U:s.Empty),s.When(s.computedOf(A,i)((y,E)=>y&&E!=null),()=>s.html.div(s.attr.class("bc-input-wrapper__description bc-input-wrapper__description--under-label"),s.attr.id(I),i))),a!=null?j(a):s.Empty,r):s.Empty,s.html.div(s.attr.class("bc-input-wrapper__content"),[I,_].filter(Boolean).length>0?s.dataAttr.describedby([I,_].filter(Boolean).join(" ")):s.Empty,t?s.dataAttr.required("true"):s.Empty,s.When(u,()=>s.dataAttr.invalid("true")),o),s.When(s.computedOf(A,i)((y,E)=>!y&&E!=null),()=>s.html.div(s.attr.class("bc-input-wrapper__description"),s.attr.id(I),i)),l!=null?s.When(u,()=>s.html.div(s.attr.class("bc-input-wrapper__error"),s.attr.id(_),s.aria.live("polite"),s.attr.role("alert"),l)):null,...g)};function ae(...e){return s.html.div(s.attr.class("bc-stack"),...e)}const ie=e=>{const t={name:"email",autocomplete:"email",...e},{value:n,before:r,onBlur:a,onChange:i,onInput:o,placeholder:l}=t,c=r??w.InputIcon({icon:"line-md:email",size:e.size,color:"neutral"});return s.Use(w.BeatUII18n,p=>w.InputContainer({...e,before:c,input:s.input.email(w.CommonInputAttributes(t),s.attr.placeholder(s.coalesce(l,p.$.emailPlaceholderText)),s.attr.value(n),s.attr.class("bc-input"),a!=null?s.on.blur(s.emitValue(a)):s.Empty,i!=null?s.on.change(s.emitValue(i)):s.Empty,o!=null?s.on.input(s.emitValue(o)):s.Empty)}))},le=e=>{const{value:t,onBlur:n,onChange:r,onInput:a,before:i,after:o,hasError:l,disabled:c,autocomplete:p,placeholder:h,...m}=e,k={name:"password",disabled:c,...m},g=s.prop(!0),u=s.computedOf(g,p)((d,b)=>d?b??"current-password":"off");return s.Use(w.BeatUII18n,d=>{const b=s.computedOf(d.$.passwordPlaceholderText,g,h)((I,_,A)=>_?"•••••••••••••••":A??I),C=s.html.button(s.attr.type("button"),s.attr.class("bc-input-container__password-toggle"),s.aria.label(d.$.togglePasswordVisibility),s.on.click(()=>g.update(I=>!I)),s.When(g,()=>w.Icon({icon:"line-md:watch"}),()=>w.Icon({icon:"line-md:watch-off"})));return w.InputContainer({before:i,disabled:c,hasError:l,input:s.html.input(w.CommonInputAttributes({...k,autocomplete:u,placeholder:b}),s.When(g,()=>s.Fragment(s.attr.type("password")),()=>s.Fragment(s.attr.type("text"))),s.attr.class("bc-input"),s.attr.value(t),n!=null?s.on.blur(s.emitValue(n)):s.Empty,r!=null?s.on.change(s.emitValue(r)):s.Empty,a!=null?s.on.input(s.emitValue(a)):s.Empty),after:o!=null?s.Fragment(C,o):C})})},W=(e,t)=>()=>{e.markTouched(),t?.()},z=(e,t)=>n=>{e.change(n),t?.(n)};function P(e,t){const{controller:n,onBlur:r,onChange:a,id:i,...o}=t;return e({id:i??n.name,disabled:n.disabled,value:n.signal,hasError:n.errorVisible,name:n.name,...o,onChange:z(n,a),onBlur:W(n,r)})}function oe(e,{id:t,labelFor:n,...r},...a){const i=t??r.controller.name??T("control");return B({...r,labelFor:n??i,content:P(l=>e({...l,id:i}),r)},...a)}function H(e,t){const{toInput:n,fromInput:r,controller:a,...i}=t,o=a.transform(n,r);return P(e,{...i,controller:o})}function ce(e,{id:t,labelFor:n,...r},...a){const i=t??r.controller.name??T("control");return B({...r,labelFor:n??i,content:H(e,{...r,id:i})},...a)}function ue(e){return e.split(".").map(n=>{const r=n.match(/^\[(\d+)\]$/);return r?Number(r[1]):n})}function R(e){return typeof e=="number"?`[${e}]`:`.${e}`}function K(e){if(e.length===0)return"";const[t,...n]=e;return[typeof t=="number"?`[${t}]`:t,...n.map(R)].join("")}function D(e){return function(n){if(n.type==="valid")return n;let r=n.error;for(const a of e)if(r=r?.dependencies?.[a],r==null)return S.valid;return S.invalid(r)}}class V{path;change;signal;status;error;hasError;touched;errorVisible;dirty;dependencyErrors;#e={disabled:s.prop(!1),touched:s.prop(!1)};#s;#t=s.prop(void 0);parent;disabled;#n=[];disabledOrHasErrors;constructor(t,n,r,a,i,o=O){this.path=t,this.change=n,this.signal=r,this.status=a,this.#s=o,this.#t.set(r.value),this.error=a.map(l=>l?.type==="invalid"?l.error?.message:void 0),this.hasError=this.error.map(l=>l!=null),this.touched=this.#e.touched,i.validationMode?this.errorVisible=s.computedOf(this.hasError,this.touched,i.validationMode)((l,c,p)=>p==="continuous"?!!l:!!l&&!!c):this.errorVisible=s.computedOf(this.hasError,this.touched)((l,c)=>!!l&&!!c),this.dirty=s.computedOf(this.signal,this.#t)((l,c)=>!this.#s(l,c)),this.dependencyErrors=a.map(l=>l?.type==="invalid"?l.error?.dependencies:void 0),this.parent=i,this.disabled=s.computedOf(this.#e.disabled,i.disabled)((l,c)=>l||c),this.disabledOrHasErrors=s.computedOf(this.disabled,this.hasError)((l,c)=>l||c),this.onDispose(()=>{this.#e.disabled.dispose(),this.#e.touched.dispose(),this.disabled.dispose(),this.error.dispose(),this.errorVisible.dispose(),this.dirty.dispose(),this.#t.dispose(),this.dependencyErrors.dispose(),this.disabledOrHasErrors.dispose()})}get name(){return K(this.path)}onDispose=t=>{this.#n.push(t)};dispose=()=>{for(const t of this.#n)try{t()}catch(n){console.error("Error in dispose callback:",n)}this.#n.length=0};setDisabled=t=>{this.#e.disabled.set(t)};disable=()=>this.setDisabled(!0);enable=()=>this.setDisabled(!1);markTouched=()=>{this.#e.touched.set(!0)};resetTouched=()=>{this.#e.touched.set(!1)};markPristine=()=>{this.#t.set(this.signal.value)};reset=()=>{this.change(this.#t.value)};array=(t=O)=>new J(this.path,this.change,this.signal,this.status,this.parent,t);object=(t=O)=>new G(this.path,this.change,this.signal,this.status,this.parent,t);transform=(t,n,r=[],a=O)=>new V([...this.path,...r],i=>this.change(n(i)),this.signal.map(t,a),this.status.map(D(r)),this.parent,a);asyncTransform=(t,n,r,a=[],i=O)=>new V([...this.path,...a],o=>{n(o).then(l=>this.change(l))},this.signal.mapAsync(t,r,void 0,i),this.status.map(D(a)),this.parent,i)}class G extends V{#e=new Map;#s=new Map;#t=new Map;#n=s.prop(!1);touchedDeep=this.#n;#a=new Map;#r=new Map;#l=s.prop(!1);dirtyDeep=this.#l;#c;#u;#o=()=>{let t=!1;for(const n of this.#s.values())if(n){t=!0;break}this.#n.set(this.touched.value||t)};constructor(t,n,r,a,i,o){super(t,n,r.map(c=>c??{},o),a,i,o),this.#c=this.touched.on(()=>{this.#o()}),this.#u=this.dirty.on(()=>{this.#i()});const l=this.signal.on(()=>this.#i());this.onDispose(()=>{for(const c of this.#e.values())c.dispose();this.#e.clear();for(const c of this.#t.values())c();this.#t.clear(),this.#s.clear(),this.#n.dispose();for(const c of this.#r.values())c();this.#r.clear(),this.#a.clear(),this.#l.dispose(),this.#c(),this.#u(),l()})}field=t=>{if(this.#e.has(t))return this.#e.get(t);const n=async o=>{this.change({...this.signal.value,[t]:o})},r=new V([...this.path,t],n,this.signal.map(o=>o[t]),this.status.map(D([t])),{disabled:this.disabled,validationMode:this.parent.validationMode});this.#e.set(t,r);const a=r.touched.on(o=>{this.#s.set(t,o),this.#o()});this.#t.set(t,a);const i=r.dirty.on(o=>{this.#a.set(t,o),this.#i()});return this.#r.set(t,i),r};markAllTouched=()=>{this.markTouched();const t=this.signal.value;for(const n of Object.keys(t))this.field(n).markTouched();for(const n of this.#e.values())n.markTouched()};markAllPristine=()=>{this.markPristine();const t=this.signal.value;for(const n of Object.keys(t))this.field(n).markPristine?.();for(const n of this.#e.values())n.markPristine?.()};#i=()=>{let t=!1;for(const n of this.#a.values())if(n){t=!0;break}this.#l.set(this.dirty.value||t)}}class J extends V{#e=new Array;length;#s=new Map;#t=new Map;#n=s.prop(!1);touchedDeep=this.#n;#a=new Map;#r=new Map;#l=s.prop(!1);dirtyDeep=this.#l;#c;#u;#o=()=>{let t=!1;for(const n of this.#s.values())if(n){t=!0;break}this.#n.set(this.touched.value||t)};constructor(t,n,r,a,i,o){const l=r.map(h=>h??[],o);super(t,n,l,a,i,o);const c=l.on(h=>{const m=this.#e.length-h.length;m>0&&(this.#e.splice(h.length,m).forEach((k,g)=>{const u=h.length+g;k.dispose(),this.#t.get(u)?.(),this.#t.delete(u),this.#s.delete(u),this.#r.get(u)?.(),this.#r.delete(u),this.#a.delete(u)}),this.#o(),this.#i())});this.length=l.map(h=>h.length),this.#c=this.touched.on(()=>{this.#o()}),this.#u=this.dirty.on(()=>{this.#i()});const p=this.signal.on(()=>this.#i());this.onDispose(()=>{for(const h of this.#e)h.dispose();this.length.dispose(),this.#e.length=0,c(),l.dispose();for(const h of this.#t.values())h();this.#t.clear(),this.#s.clear(),this.#n.dispose();for(const h of this.#r.values())h();this.#r.clear(),this.#a.clear(),this.#l.dispose(),this.#c(),this.#u(),p()})}item=t=>{if(this.#e[t])return this.#e[t];const n=async o=>{const l=this.signal.value.slice();l[t]=o,this.change(l)},r=new V([...this.path,t],n,this.signal.map(o=>o[t]),this.status.map(D([t])),{disabled:this.disabled,validationMode:this.parent.validationMode});this.#e[t]=r;const a=r.touched.on(o=>{this.#s.set(t,o),this.#o()});this.#t.set(t,a);const i=r.dirty.on(o=>{this.#a.set(t,o),this.#i()});return this.#r.set(t,i),r};push=(...t)=>{this.change([...this.signal.value,...t])};pop=()=>{this.splice(this.signal.value.length-1,1)};shift=()=>{this.splice(0,1)};unshift=(...t)=>{this.change([...t,...this.signal.value])};removeAt=t=>{this.splice(t,1)};splice=(t,n)=>{const r=this.signal.value.slice();r.splice(t,n),this.change(r)};move=(t,n,r=1)=>{if(r<1||t===n)return;const a=this.signal.value.slice(),i=a.splice(t,r);a.splice(n,0,...i),this.change(a)};markAllTouched=()=>{this.markTouched();const t=this.signal.value.length;for(let n=0;n<t;n++)this.item(n).markTouched()};markAllPristine=()=>{this.markPristine();const t=this.signal.value.length;for(let n=0;n<t;n++)this.item(n).markPristine?.()};#i=()=>{let t=!1;for(const n of this.#a.values())if(n){t=!0;break}this.#l.set(this.dirty.value||t)}}function Q(e){function t(n){return typeof n=="number"?n:n.toString()}return e.map(n=>typeof n=="object"&&n.key!=null?t(n.key):t(n))}function X(e){const t=e.filter(a=>a.path==null||a.path.length===0).map(a=>a.message),n=e.filter(a=>a.path!=null&&a.path.length>0).reduce((a,i)=>{const o=Q(i.path),l=o.pop();let c=a;for(const p of o)c.dependencies==null&&(c.dependencies={}),c.dependencies[p]==null&&(c.dependencies[p]={}),c=c.dependencies[p];return c.dependencies==null&&(c.dependencies={}),c.dependencies[l]={message:i.message},a},{}),r=t.join(`
2
2
  `);return{...n,message:r!=""?r:void 0}}function Y({initialValue:e,onChange:t,validate:n,equals:r,validationMode:a,validateDebounceMs:i}){const o=s.Value.deriveProp(e),l=s.prop(S.valid),c=s.prop(!1),p=s.prop(a??"touchedOrSubmit"),h=d=>{l.set(d)};let m;const k=async d=>{if(n!=null){const b=await n(d);h(b)}},g=async d=>{o.set(d),t?.(d);const b=p.value;if(n!=null){if(b==="onSubmit")return;const C=i??0;C>0?(m&&clearTimeout(m),m=setTimeout(()=>{k(d)},C)):await k(d)}},u=new V([],g,o,l,{disabled:c,validationMode:p},r??O);return u.onDispose(()=>{c.dispose(),o.dispose(),l.dispose(),p.dispose(),m&&clearTimeout(m)}),{controller:u,setStatus:h}}function $(e){return s.Fragment(s.attr.disabled(e.disabled),s.attr.name(e.name))}function he(e,{triggerOn:t="change"}={}){return s.Fragment($(e),s.attr.value(e.signal),(t==="input"?s.on.input:s.on.change)(s.emitValue(e.change)))}function de(e,{triggerOn:t="change"}={}){return s.Fragment($(e),s.attr.valueAsNumber(e.signal),(t==="input"?s.on.input:s.on.change)(s.emitValueAsNumber(e.change)))}function M(e){return e.issues!=null?S.invalid(X(e.issues)):S.valid}async function pe({task:e,errorMessage:t,errorPath:n=["root"],validation:r}){try{const a=await e();return r!=null?r(a):S.valid}catch(a){const i=t??(a instanceof Error?a.message:"Operation failed");return n.length===1&&n[0]==="root"?S.invalid({message:i}):S.invalid({dependencies:Z(n,i)})}}function Z(e,t){if(e.length===1)return{[e[0]]:{message:t}};const[n,...r]=e;return{[n]:{dependencies:Z(r,t)}}}function me({initialValue:e={},schema:t,onSubmit:n=async()=>S.valid,validationMode:r,validateDebounceMs:a}){const{controller:i,setStatus:o}=Y({initialValue:e,validationMode:r??"touchedOrSubmit",validateDebounceMs:a,validate:(r??"touchedOrSubmit")==="onSubmit"||t==null?void 0:async h=>M(await t["~standard"].validate(h))}),l=s.prop(!1),c=i.object();return c.onDispose(l.dispose),{controller:c,setStatus:o,submit:async h=>{if(l.set(!0),h?.preventDefault(),c.markAllTouched(),(r??"touchedOrSubmit")==="onSubmit"){const k=c.signal.value,g=t?.["~standard"].validate;if(g==null){l.set(!1);return}const u=M(await g(k));if(o(u),u.type==="invalid"){l.set(!1);return}}const m=await n(c.signal.value);l.set(!1),m.type==="invalid"&&o(m)},submitting:l}}function fe(e){switch(e){case"success":return"material-symbols:check-circle-outline";case"warning":return"material-symbols:warning-outline";case"danger":return"material-symbols:error-outline";case"info":default:return"material-symbols:info-outline"}}function be(e){switch(e){case"success":return"success";case"warning":return"warning";case"danger":return"danger";case"info":default:return"info"}}function ge(e,t,n,r){const a=["bc-notice",`bc-notice--${e}`,`bc-notice--tone-${t}`];return n&&a.push("bc-notice--dismissible"),r&&r.length>0&&a.push(r),a.join(" ")}function ye({variant:e="info",tone:t="subtle",role:n,title:r,icon:a,closable:i=!1,onDismiss:o,class:l},...c){const p=s.prop(!0);return s.When(p,()=>{const h=s.Value.map(i,u=>!!u||o!=null),m=s.Value.map(e,u=>u??"info"),k=s.Value.map(t,u=>u??"subtle"),g=s.computedOf(n,m)((u,d)=>u??(d==="danger"?"alert":"status"));return s.Use(w.BeatUII18n,u=>s.html.div(s.attr.class(s.computedOf(m,k,h,l)((d,b,C,I)=>ge(d,b,C,I))),s.attr.role(s.Value.map(g,d=>d)),s.Unless(s.Value.map(a,d=>d===!1),()=>s.html.div(s.attr.class("bc-notice__icon"),w.Icon({icon:s.computedOf(a,m)((d,b)=>d===void 0?fe(b):String(d)),size:"md",color:s.Value.map(m,be)}))),s.html.div(s.attr.class("bc-notice__body"),s.Ensure(r,d=>s.html.div(s.attr.class("bc-notice__title"),d)),s.html.div(s.attr.class("bc-notice__content"),...c)),s.When(h,()=>N({size:"xs",label:u.$.closeModal,onClick:()=>{p.set(!1),o?.()}}))))})}exports.ArrayController=J;exports.BaseControl=P;exports.BaseMappedControl=H;exports.CheckboxInput=se;exports.CloseButton=N;exports.Control=oe;exports.Controller=V;exports.DangerLabel=te;exports.EmailInput=ie;exports.EmphasisLabel=ee;exports.InputWrapper=B;exports.Label=j;exports.MappedControl=ce;exports.MutedLabel=q;exports.Notice=ye;exports.O=O;exports.ObjectController=G;exports.PasswordInput=le;exports.RequiredSymbol=U;exports.Stack=ae;exports.a=S;exports.connectCommonAttributes=$;exports.connectNumberInput=de;exports.connectStringInput=he;exports.convertStandardSchemaIssues=X;exports.convertStandardSchemaPathToPath=Q;exports.makeMapValidation=D;exports.makeOnBlurHandler=W;exports.makeOnChangeHandler=z;exports.parsePath=ue;exports.pathToString=K;exports.sessionId=T;exports.standardSchemaResultToValidation=M;exports.taskToValidation=pe;exports.useController=Y;exports.useForm=me;exports.wrapSegment=R;
@@ -1,5 +1,5 @@
1
1
  import { Use as q, coalesce as Q, aria as x, attr as o, html as f, on as E, Value as C, Empty as _, computedOf as k, When as O, dataAttr as R, input as te, emitValue as F, prop as I, Fragment as P, emitValueAsNumber as ne, Unless as ie, Ensure as re } from "@tempots/dom";
2
- import { a as z, B as ae, I as N, b as W, c as le, C as X } from "./translations-B3P1v3E6.js";
2
+ import { a as z, B as ae, I as N, b as W, c as le, C as X } from "./translations-Do71ycSR.js";
3
3
  const K = /* @__PURE__ */ new Map();
4
4
  function H(e) {
5
5
  const s = K.get(e) ?? 0;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./translations-DZWe3znu.cjs"),l={loadingExtended:"Ładowanie, proszę czekać",loadingShort:"Ładowanie...",locale:"Język",iconDescription:"Ikona",loadingIcon:"Ikona ładowania",failedToLoadIcon:"Nie udało się załadować ikony",editLabel:"Edytuj",selectOne:"Wybierz jeden",selectMany:"Wybierz wiele",noResults:"Brak wyników",passwordPlaceholderText:"Tajne hasło",togglePasswordVisibility:"Przełącz widoczność hasła",toggleMenu:"Przełącz menu",toggleAside:"Przełącz panel boczny",mainNavigation:"Główna nawigacja",sidebar:"Pasek boczny",closeDrawer:"Zamknij szufladę",closeModal:"Zamknij modal",confirm:"Potwierdź",cancel:"Anuluj",addLabel:"Dodaj",removeItem:"Usuń element",currentLocale:"Polski",ar:"Arabski",de:"Niemiecki",en:"Angielski",es:"Hiszpański",fr:"Francuski",hi:"Hindi",it:"Włoski",ja:"Japoński",ko:"Koreański",nl:"Holenderski",pl:"Polski",pt:"Portugalski",ru:"Rosyjski",tr:"Turecki",vi:"Wietnamski",zh:"Chiński",he:"Hebrajski",fa:"Perski",ur:"Urdu",emailPlaceholderText:"Wprowadź adres e-mail",incrementValue:"Zwiększ wartość",decrementValue:"Zmniejsz wartość",dropZoneInstructions:e=>e?"Kliknij aby wybrać lub przeciągnij pliki tutaj, lub naciśnij Enter lub Spację, aby otworzyć selektor plików":"Przeciągnij pliki tutaj",fileSizeUnits:["Bajty","KB","MB","GB","TB"],removeFile:"Usuń plik",clearAllFiles:"Usuń wszystkie pliki",clearValue:"Wyczyść wartość",unknownType:"Nieznany typ",filesInputInstructions:(e,o,a)=>{let n=e==null||e>1?"Kliknij aby wybrać lub przeciągnij pliki tutaj":"Kliknij aby wybrać lub przeciągnij plik tutaj";if(e||o){const i=[];if(e!=null&&e>1&&i.push(`do ${e} plików`),o&&a){const t=r.formatFileSize(o,{units:a});i.push(`maks ${t} każdy`)}i.length>0&&(n+=` (${i.join(", ")})`)}return n},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"}};exports.default=l;exports.pl=l;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./translations-t-neYabN.cjs"),l={loadingExtended:"Ładowanie, proszę czekać",loadingShort:"Ładowanie...",locale:"Język",iconDescription:"Ikona",loadingIcon:"Ikona ładowania",failedToLoadIcon:"Nie udało się załadować ikony",editLabel:"Edytuj",selectOne:"Wybierz jeden",selectMany:"Wybierz wiele",noResults:"Brak wyników",passwordPlaceholderText:"Tajne hasło",togglePasswordVisibility:"Przełącz widoczność hasła",toggleMenu:"Przełącz menu",toggleAside:"Przełącz panel boczny",mainNavigation:"Główna nawigacja",sidebar:"Pasek boczny",closeDrawer:"Zamknij szufladę",closeModal:"Zamknij modal",confirm:"Potwierdź",cancel:"Anuluj",addLabel:"Dodaj",removeItem:"Usuń element",currentLocale:"Polski",ar:"Arabski",de:"Niemiecki",en:"Angielski",es:"Hiszpański",fr:"Francuski",hi:"Hindi",it:"Włoski",ja:"Japoński",ko:"Koreański",nl:"Holenderski",pl:"Polski",pt:"Portugalski",ru:"Rosyjski",tr:"Turecki",vi:"Wietnamski",zh:"Chiński",he:"Hebrajski",fa:"Perski",ur:"Urdu",emailPlaceholderText:"Wprowadź adres e-mail",incrementValue:"Zwiększ wartość",decrementValue:"Zmniejsz wartość",dropZoneInstructions:e=>e?"Kliknij aby wybrać lub przeciągnij pliki tutaj, lub naciśnij Enter lub Spację, aby otworzyć selektor plików":"Przeciągnij pliki tutaj",fileSizeUnits:["Bajty","KB","MB","GB","TB"],removeFile:"Usuń plik",clearAllFiles:"Usuń wszystkie pliki",clearValue:"Wyczyść wartość",unknownType:"Nieznany typ",filesInputInstructions:(e,i,o)=>{let n=e==null||e>1?"Kliknij aby wybrać lub przeciągnij pliki tutaj":"Kliknij aby wybrać lub przeciągnij plik tutaj";if(e||i){const a=[];if(e!=null&&e>1&&a.push(`do ${e} plików`),i&&o){const r=t.formatFileSize(i,{units:o});a.push(`maks ${r} każdy`)}a.length>0&&(n+=` (${a.join(", ")})`)}return n},prosemirror:{bold:"Bold",italic:"Italic",code:"Code",link:"Link",removeLink:"Remove Link",heading:e=>`Heading ${e}`,bulletList:"Bullet List",orderedList:"Ordered List",blockquote:"Blockquote",codeBlock:"Code Block",horizontalRule:"Horizontal Rule",linkUrlPlaceholder:"https://example.com"},pdfPageViewer:{loading:"Ładowanie PDF...",loadFailed:"Nie udało się załadować PDF",invalidPdf:"Nieprawidłowy plik PDF",pageOutOfRange:(e,i)=>`Strona ${e} jest poza zakresem (1-${i})`,renderFailed:"Nie udało się wyrenderować strony PDF"}};exports.default=l;exports.pl=l;
@@ -1,4 +1,4 @@
1
- import { f as r } from "./translations-B3P1v3E6.js";
1
+ import { f as r } from "./translations-Do71ycSR.js";
2
2
  const s = {
3
3
  loadingExtended: "Ładowanie, proszę czekać",
4
4
  loadingShort: "Ładowanie...",
@@ -57,17 +57,17 @@ const s = {
57
57
  // inputs reset
58
58
  clearValue: "Wyczyść wartość",
59
59
  unknownType: "Nieznany typ",
60
- filesInputInstructions: (e, o, a) => {
60
+ filesInputInstructions: (e, i, o) => {
61
61
  let n = e == null || e > 1 ? "Kliknij aby wybrać lub przeciągnij pliki tutaj" : "Kliknij aby wybrać lub przeciągnij plik tutaj";
62
- if (e || o) {
63
- const i = [];
64
- if (e != null && e > 1 && i.push(`do ${e} plików`), o && a) {
65
- const l = r(o, {
66
- units: a
62
+ if (e || i) {
63
+ const a = [];
64
+ if (e != null && e > 1 && a.push(`do ${e} plików`), i && o) {
65
+ const l = r(i, {
66
+ units: o
67
67
  });
68
- i.push(`maks ${l} każdy`);
68
+ a.push(`maks ${l} każdy`);
69
69
  }
70
- i.length > 0 && (n += ` (${i.join(", ")})`);
70
+ a.length > 0 && (n += ` (${a.join(", ")})`);
71
71
  }
72
72
  return n;
73
73
  },
@@ -85,6 +85,14 @@ const s = {
85
85
  codeBlock: "Code Block",
86
86
  horizontalRule: "Horizontal Rule",
87
87
  linkUrlPlaceholder: "https://example.com"
88
+ },
89
+ // PDF Page Viewer
90
+ pdfPageViewer: {
91
+ loading: "Ładowanie PDF...",
92
+ loadFailed: "Nie udało się załadować PDF",
93
+ invalidPdf: "Nieprawidłowy plik PDF",
94
+ pageOutOfRange: (e, i) => `Strona ${e} jest poza zakresem (1-${i})`,
95
+ renderFailed: "Nie udało się wyrenderować strony PDF"
88
96
  }
89
97
  };
90
98
  export {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../index-Cj2zgGLp.cjs");exports.DEFAULT_FEATURES=r.DEFAULT_FEATURES;exports.ProseMirrorMarkdownInput=r.ProseMirrorMarkdownInput;exports.ProseMirrorToolbar=r.ProseMirrorToolbar;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../index-ZRQP8j2O.cjs");exports.DEFAULT_FEATURES=r.DEFAULT_FEATURES;exports.ProseMirrorMarkdownInput=r.ProseMirrorMarkdownInput;exports.ProseMirrorToolbar=r.ProseMirrorToolbar;
@@ -1,4 +1,4 @@
1
- import { D as a, P as s, b as e } from "../index-BQear_Jy.js";
1
+ import { D as a, P as s, b as e } from "../index-BYflP18C.js";
2
2
  export {
3
3
  a as DEFAULT_FEATURES,
4
4
  s as ProseMirrorMarkdownInput,
@@ -1,4 +1,4 @@
1
- import { f as n } from "./translations-B3P1v3E6.js";
1
+ import { f as n } from "./translations-Do71ycSR.js";
2
2
  const s = {
3
3
  loadingExtended: "Carregando, por favor aguarde",
4
4
  loadingShort: "Carregando...",
@@ -57,17 +57,17 @@ const s = {
57
57
  // inputs reset
58
58
  clearValue: "Limpar valor",
59
59
  unknownType: "Tipo desconhecido",
60
- filesInputInstructions: (e, r, o) => {
60
+ filesInputInstructions: (e, a, o) => {
61
61
  let i = e == null || e > 1 ? "Clique para escolher ou arraste arquivos aqui" : "Clique para escolher ou arraste um arquivo aqui";
62
- if (e || r) {
63
- const a = [];
64
- if (e != null && e > 1 && a.push(`até ${e} arquivos`), r && o) {
65
- const l = n(r, {
62
+ if (e || a) {
63
+ const r = [];
64
+ if (e != null && e > 1 && r.push(`até ${e} arquivos`), a && o) {
65
+ const l = n(a, {
66
66
  units: o
67
67
  });
68
- a.push(`máx ${l} cada`);
68
+ r.push(`máx ${l} cada`);
69
69
  }
70
- a.length > 0 && (i += ` (${a.join(", ")})`);
70
+ r.length > 0 && (i += ` (${r.join(", ")})`);
71
71
  }
72
72
  return i;
73
73
  },
@@ -85,6 +85,14 @@ const s = {
85
85
  codeBlock: "Code Block",
86
86
  horizontalRule: "Horizontal Rule",
87
87
  linkUrlPlaceholder: "https://example.com"
88
+ },
89
+ // PDF Page Viewer
90
+ pdfPageViewer: {
91
+ loading: "Carregando PDF...",
92
+ loadFailed: "Falha ao carregar PDF",
93
+ invalidPdf: "Arquivo PDF inválido",
94
+ pageOutOfRange: (e, a) => `A página ${e} está fora do intervalo (1-${a})`,
95
+ renderFailed: "Falha ao renderizar página do PDF"
88
96
  }
89
97
  };
90
98
  export {