@tempots/beatui 0.25.0 → 0.27.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-DrrKn54V.js → 2019-Cw6dbOsG.js} +2 -2
  2. package/dist/{2019-BGvIfJgi.cjs → 2019-DU48Szvf.cjs} +1 -1
  3. package/dist/{2020-CFnlLHs-.js → 2020-C4Shen9O.js} +2 -2
  4. package/dist/{2020-BK5C7IVQ.cjs → 2020-Cp1L6hfj.cjs} +1 -1
  5. package/dist/{ar-BgrUqaxG.js → ar-L29B4drg.js} +1 -1
  6. package/dist/ar-Xt0B1GBx.cjs +1 -0
  7. package/dist/auth/index.cjs.js +1 -1
  8. package/dist/auth/index.es.js +443 -425
  9. package/dist/de-BBH6Q1uM.cjs +1 -0
  10. package/dist/{de-D_sdCcAw.js → de-BL9YMCWJ.js} +1 -1
  11. package/dist/es-3mljmytv.cjs +1 -0
  12. package/dist/{es-DczvLqEV.js → es-CS4u7MZp.js} +1 -1
  13. package/dist/fa-C06uowfA.cjs +1 -0
  14. package/dist/{fa-DhPP5Tgo.js → fa-_5IxCXGI.js} +1 -1
  15. package/dist/{fr-D3WwoeQg.js → fr-B-ZWm43Y.js} +1 -1
  16. package/dist/fr-ZoJsA1s0.cjs +1 -0
  17. package/dist/he-D-_HCjOB.cjs +1 -0
  18. package/dist/{he-CFhi-6Rs.js → he-J-Bcrgy9.js} +1 -1
  19. package/dist/hi-B9yNE6-J.cjs +1 -0
  20. package/dist/{hi-Cqy8JcS7.js → hi-ClGaIH71.js} +1 -1
  21. package/dist/{index-CvvASOCn.cjs → index-CLfb1616.cjs} +4 -4
  22. package/dist/{index-DkuGi1I_.js → index-DxiM_mmQ.js} +15 -15
  23. package/dist/{index-CNVCqpBH.cjs → index-NUMH-iWq.cjs} +1 -1
  24. package/dist/{index-BMX9_XgV.js → index-Nv9nZIgS.js} +1 -1
  25. package/dist/index.cjs.js +2 -2
  26. package/dist/index.es.js +274 -276
  27. package/dist/it-D-bh7RoG.cjs +1 -0
  28. package/dist/{it-CtMArqSp.js → it-Dv8tmKm5.js} +1 -1
  29. package/dist/ja-B4rdImcD.cjs +1 -0
  30. package/dist/{ja-UFqZT78C.js → ja-BpqiZN5f.js} +1 -1
  31. package/dist/json-schema/index.cjs.js +1 -1
  32. package/dist/json-schema/index.es.js +1 -1
  33. package/dist/{ko-B5LB1_X_.js → ko-Bpa6y038.js} +1 -1
  34. package/dist/ko-C43-vhJF.cjs +1 -0
  35. package/dist/modal-DKWKUrDF.cjs +1 -0
  36. package/dist/{modal-C2Aa-aVN.js → modal-Fect9dc4.js} +1 -1
  37. package/dist/{nl-DCfHVqzQ.js → nl-B5HYWGRz.js} +1 -1
  38. package/dist/nl-DDjoZpiU.cjs +1 -0
  39. package/dist/{translations-GO9sIajX.js → notice-DKO4C8y2.js} +475 -376
  40. package/dist/{translations-DpZ-btu9.cjs → notice-DrmHRjLV.cjs} +2 -2
  41. package/dist/pl-CXYiY-nR.cjs +1 -0
  42. package/dist/{pl-UcTv39q1.js → pl-DksXqLHk.js} +1 -1
  43. package/dist/{pt-CXsgmVtb.js → pt-7-6UhRtW.js} +1 -1
  44. package/dist/pt-CnC1YN5K.cjs +1 -0
  45. package/dist/{ru-C0MvZW2g.js → ru-I676X0Bt.js} +1 -1
  46. package/dist/ru-_1DUTMUW.cjs +1 -0
  47. package/dist/{tr-CIIkc1uL.js → tr-CssmRZfH.js} +1 -1
  48. package/dist/tr-DA-8X7MK.cjs +1 -0
  49. package/dist/{translations-CB6iJ1Rn.js → translations-BBguPjg9.js} +1 -1
  50. package/dist/translations-CrqWcCGM.cjs +1 -0
  51. package/dist/ur-B1YkWWDx.cjs +1 -0
  52. package/dist/{ur-Cpx9oyTV.js → ur-BCWL2ev1.js} +1 -1
  53. package/dist/utils-ClYvMRfA.cjs +1 -0
  54. package/dist/{notice-wSAzLfbl.js → utils-DU4oGQiY.js} +647 -746
  55. package/dist/{vi-D24AUQ01.js → vi-D5K4x_hN.js} +1 -1
  56. package/dist/vi-DA-qqgHJ.cjs +1 -0
  57. package/dist/zh-B4HcAg-5.cjs +1 -0
  58. package/dist/{zh-25YFRjoV.js → zh-HUwi9F-w.js} +1 -1
  59. package/package.json +3 -3
  60. package/dist/ar-BAb4yHZS.cjs +0 -1
  61. package/dist/de-Dn2CdXgD.cjs +0 -1
  62. package/dist/es-CEPxKSog.cjs +0 -1
  63. package/dist/fa-NvkKjIQ6.cjs +0 -1
  64. package/dist/fr-cR59lx1A.cjs +0 -1
  65. package/dist/he-CxSHPJMg.cjs +0 -1
  66. package/dist/hi-DLnz3lCX.cjs +0 -1
  67. package/dist/it-C7Kv6j-_.cjs +0 -1
  68. package/dist/ja-BPL80aw5.cjs +0 -1
  69. package/dist/ko-Cmt_34Xp.cjs +0 -1
  70. package/dist/modal-UsqvSvHy.cjs +0 -1
  71. package/dist/nl-B-WL9SX2.cjs +0 -1
  72. package/dist/notice-DyoWY5tY.cjs +0 -1
  73. package/dist/pl-TGqkSi2w.cjs +0 -1
  74. package/dist/pt-Ua_e-1JE.cjs +0 -1
  75. package/dist/ru-9YWCN6fR.cjs +0 -1
  76. package/dist/tr-D70Oy8aN.cjs +0 -1
  77. package/dist/translations-NYxsXjMT.cjs +0 -1
  78. package/dist/ur-DmxXuJ9O.cjs +0 -1
  79. package/dist/vi-Cboo_ueb.cjs +0 -1
  80. package/dist/zh-BXivX7rD.cjs +0 -1
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./notice-DrmHRjLV.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,a,o)=>{let n=e==null||e>1?"Clicca per scegliere o trascina i file qui":"Clicca per scegliere o trascina un file qui";if(e||a){const i=[];if(e!=null&&e>1&&i.push(`fino a ${e} file`),a&&o){const l=t.formatFileSize(a,{units:o});i.push(`max ${l} ciascuno`)}i.length>0&&(n+=` (${i.join(", ")})`)}else if(a&&o){const i=t.formatFileSize(a,{units:o});n+=` (max ${i})`}return n}};exports.default=r;
@@ -1,4 +1,4 @@
1
- import { f as t } from "./translations-GO9sIajX.js";
1
+ import { f as t } from "./notice-DKO4C8y2.js";
2
2
  const c = {
3
3
  loadingExtended: "Caricamento, attendere prego...",
4
4
  loadingShort: "Caricamento...",
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./notice-DrmHRjLV.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,n)=>{let r=(e==null||e>1,"クリックして選択するか、ファイルをここにドラッグ");if(e||o){const t=[];if(e!=null&&e>1&&t.push(`最大${e}ファイル`),o&&n){const c=l.formatFileSize(o,{units:n});t.push(`各${c}以下`)}t.length>0&&(r+=` (${t.join("、")})`)}else if(o&&n){const t=l.formatFileSize(o,{units:n});r+=` (最大${t})`}return r}};exports.default=a;exports.ja=a;
@@ -1,4 +1,4 @@
1
- import { f as l } from "./translations-GO9sIajX.js";
1
+ import { f as l } from "./notice-DKO4C8y2.js";
2
2
  const s = {
3
3
  loadingExtended: "読み込み中です、お待ちください",
4
4
  loadingShort: "読み込み中...",
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-CvvASOCn.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-CLfb1616.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 { U as s, J as S, R as c, O as o, M as t, H as r, W as m, G as h, X as O, V as n, K as l, N, I as J, P as i, T as v, L as C, Q as u, S as A, v as f, u as g, t as d, s as j, w as E, x as b, z as p, D as y, Y as T, E as F, C as P, A as V, y as x, F as I, q as B, B as D } from "../index-DkuGi1I_.js";
1
+ import { U as s, J as S, R as c, O as o, M as t, H as r, W as m, G as h, X as O, V as n, K as l, N, I as J, P as i, T as v, L as C, Q as u, S as A, v as f, u as g, t as d, s as j, w as E, x as b, z as p, D as y, Y as T, E as F, C as P, A as V, y as x, F as I, q as B, B as D } from "../index-DxiM_mmQ.js";
2
2
  export {
3
3
  s as JSONSchemaAllOf,
4
4
  S as JSONSchemaAny,
@@ -1,4 +1,4 @@
1
- import { f as l } from "./translations-GO9sIajX.js";
1
+ import { f as l } from "./notice-DKO4C8y2.js";
2
2
  const s = {
3
3
  loadingExtended: "로딩 중입니다. 잠시만 기다려 주세요",
4
4
  loadingShort: "로딩 중...",
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./notice-DrmHRjLV.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,n)=>{let r=(e==null||e>1,"클릭하여 선택하거나 파일을 여기로 드래그하세요");if(e||o){const t=[];if(e!=null&&e>1&&t.push(`최대 ${e}개 파일`),o&&n){const c=l.formatFileSize(o,{units:n});t.push(`각각 최대 ${c}`)}t.length>0&&(r+=` (${t.join(", ")})`)}else if(o&&n){const t=l.formatFileSize(o,{units:n});r+=` (최대 ${t})`}return r}};exports.default=a;
@@ -0,0 +1 @@
1
+ "use strict";const o=require("@tempots/dom"),A=require("./timer-BdH4cK6a.cjs"),w=require("./notice-DrmHRjLV.cjs"),j=["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 W(r){return Array.from(r.querySelectorAll(j)).filter(t=>{const s=t;return s.offsetWidth>0&&s.offsetHeight>0&&!s.hasAttribute("inert")&&window.getComputedStyle(s).visibility!=="hidden"})}function B(r={}){const{active:t=!0,escapeDeactivates:s=!0,onEscape:e,initialFocus:a,returnFocus:i,clickOutsideDeactivates:c=!1,onClickOutside:d}=r;return o.WithElement(h=>{let f=t,m=null,u=[];typeof document<"u"&&(m=document.activeElement);const b=()=>{u=W(h)},g=n=>{if(f){if(s&&n.key==="Escape"){n.preventDefault(),e?.();return}if(n.key==="Tab"){if(b(),u.length===0){n.preventDefault();return}const v=u.indexOf(document.activeElement);n.shiftKey?v<=0&&(n.preventDefault(),u[u.length-1]?.focus()):v>=u.length-1&&(n.preventDefault(),u[0]?.focus())}}},p=n=>{if(!f||!c)return;const v=n.target;h.contains(v)||d?.()},y=()=>{if(!f)return;b();let n=null;typeof a=="function"?n=a():a?n=a:u.length>0&&(n=u[0]),n&&setTimeout(()=>{n?.focus()},50),document.addEventListener("keydown",g,!0),c&&document.addEventListener("click",p,!0)},T=()=>{f=!1,document.removeEventListener("keydown",g,!0),document.removeEventListener("click",p,!0);let n=null;typeof i=="function"?n=i():i?n=i:m&&(n=m),n&&document.body.contains(n)&&setTimeout(()=>{n?.focus()},0)};return setTimeout(()=>y(),0),o.OnDispose(()=>{T()})})}function _(r={}){return{activate:()=>B({...r,active:!0}),deactivate:()=>B({...r,active:!1})}}function F({initialStatus:r="closed",openedAfter:t,closedAfter:s}){const e=o.prop(r),a=()=>{e.set("start-opening")},i=()=>{e.set("start-closing")},c=e.map(n=>n!=="closed"&&n!=="start-closing"&&n!=="closing"),d=n=>{n?a():i()},h=()=>{d(!c.value)},f=n=>e.on(v=>{v==="closed"&&n()});let m=()=>{};e.on(n=>{switch(m(),n){case"start-opening":m=A.g(()=>e.set("opening"));break;case"opening":m=t(()=>e.set("opened"));break;case"start-closing":m=A.g(()=>e.set("closing"));break;case"closing":m=s(()=>e.set("closed"));break}}),e.onDispose(()=>m());const u=e.map(n=>n==="closed"),b=e.map(n=>n==="start-opening"),g=e.map(n=>n==="opening"),p=e.map(n=>n==="opened"),y=e.map(n=>n==="closing"),T=e.map(n=>n==="start-closing");return{status:e,open:a,close:i,toggle:h,setOpen:d,display:c,isClosed:u,isStartOpening:b,isOpening:g,isOpened:p,isClosing:y,isStartClosing:T,dispose:()=>e.dispose(),onClosed:f}}function P({initialStatus:r="closed",duration:t,openDuration:s=t??500,closeDuration:e=t??500}={}){return F({initialStatus:r,openedAfter:a=>A.T(a,s),closedAfter:a=>A.T(a,e)})}function $(r,t){let s=!1,e=null;function a(){s||(s=!0,e&&(clearTimeout(e),e=null),t())}function i(f){f.target===r&&a()}function c(f){f.target===r&&a()}const d=()=>{if(typeof r.getAnimations>"u"){e=setTimeout(a,16);return}r.getAnimations().length===0?(r.addEventListener("transitionend",i,{once:!0}),r.addEventListener("animationend",c,{once:!0}),e=setTimeout(a,1e3)):(r.addEventListener("transitionend",i,{once:!0}),r.addEventListener("animationend",c,{once:!0}))},h=A.g(d);return()=>{s=!0,h(),e&&(clearTimeout(e),e=null),r.removeEventListener("transitionend",i),r.removeEventListener("animationend",c)}}function M({initialStatus:r="closed",element:t}={}){let s=t;return{setElement:e=>{s=e},...F({initialStatus:r,openedAfter:e=>s==null?(e(),()=>{}):$(s,e),closedAfter:e=>s==null?(e(),()=>{}):$(s,e)})}}function U(r,t){return o.attr.class(o.computedOf(r,t)((s,e)=>`bc-toggle--animated bc-toggle--${s} bc-toggle--${e}`))}function q(r){return{"~standard":{version:1,vendor:"beatui-custom",validate:s=>{const e=r.validate(s);return e.success?{value:e.data}:{issues:e.errors.map(a=>({message:a.message,path:a.path}))}},types:void 0},safeParse:s=>{const e=r.validate(s);return e.success?{success:!0,data:e.data}:{success:!1,error:{errors:e.errors.map(a=>({message:a.message,path:a.path?.map(i=>typeof i=="object"&&"key"in i?i.key.toString():i.toString())||[]}))}}}}}class k{optional(){return new z(this)}default(t){return new R(this,t)}schema(){return q(this)}}class C 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 a=e(t);a&&s.push({message:a})}return s.length>0?{success:!1,errors:s}:{success:!0,data:t}}min(t,s){const e=new C;return e.minLength=t,e.maxLength=this.maxLength,e.pattern=this.pattern,e.customValidations=[...this.customValidations],s&&e.customValidations.push(a=>a.length<t?s:null),e}max(t,s){const e=new C;return e.minLength=this.minLength,e.maxLength=t,e.pattern=this.pattern,e.customValidations=[...this.customValidations],s&&e.customValidations.push(a=>a.length>t?s:null),e}regex(t,s){const e=new C;return e.minLength=this.minLength,e.maxLength=this.maxLength,e.pattern=t,e.customValidations=[...this.customValidations],s&&e.customValidations.push(a=>t.test(a)?null:s),e}email(t="Please enter a valid email address"){const s=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,e=new C;return e.minLength=this.minLength,e.maxLength=this.maxLength,e.pattern=this.pattern,e.customValidations=[...this.customValidations,a=>s.test(a)?null:t],e}refine(t){const s=new C;return s.minLength=this.minLength,s.maxLength=this.maxLength,s.pattern=this.pattern,s.customValidations=[...this.customValidations,t],s}}class x 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 x;e.mustBeTrue=this.mustBeTrue,e.trueMessage=this.trueMessage;const a=e.validate.bind(e);return e.validate=i=>{const c=a(i);return c.success?t(c.data)?c:{success:!1,errors:[{message:s}]}:c},e}literal(t,s){const e=new x;return e.mustBeTrue=!0,e.trueMessage=s,e}}class z 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 R 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 O 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={},a=[];for(const[i,c]of Object.entries(this.shape)){const d=c.validate(s[i]);if(d.success)e[i]=d.data;else for(const h of d.errors)a.push({message:h.message,path:[i,...h.path||[]]})}return a.length>0?{success:!1,errors:a}:{success:!0,data:e}}refine(t,s){const e=new O(this.shape),a=e.validate.bind(e);return e.validate=i=>{const c=a(i);if(!c.success)return c;const d=t(c.data);return d?{success:!1,errors:[{message:d,path:s?.path}]}:{success:!0,data:c.data}},e}}const H=()=>new C,K=()=>new x,N=r=>new O(r);function D(r){return o.WithBrowserCtx(t=>{const s=[],e=()=>s.forEach(i=>i());return r(({effect:i="opaque",mode:c="capturing",onClickOutside:d,onEscape:h,content:f,container:m="body"})=>{m==="body"&&(t=t.makePortal("body"));const u=M();u.onClosed(e);let b=()=>{},g=()=>{};const p=E=>{E.key==="Escape"&&(h?.(),u.close())},y=()=>{d?.(),u.close()},T=E=>{b(),g(),E==="capturing"?(document.addEventListener("keydown",p),b=()=>document.removeEventListener("keydown",p),t.element.addEventListener("mousedown",y),g=()=>t.element.removeEventListener("mousedown",y)):(b=()=>{},g=()=>{})},n=o.Value.on(c,T);s.push(n),s.push(()=>{b(),g()});const v=()=>{const E=new Set;for(const l of t.element.querySelectorAll(":scope > :not([data-overlay])"))l.hasAttribute("inert")?E.add(l):l.setAttribute("inert","");return s.push(()=>{for(const l of t.element.querySelectorAll(":scope > :not([data-overlay])"))E.has(l)||l.removeAttribute("inert");E.clear()}),document.activeElement?.blur?.(),o.html.div(o.WithElement(l=>u.setElement(l)),o.dataAttr.status(u.status.map(String)),o.dataAttr.overlay("true"),o.attr.class(o.computedOf(i??"opaque",c)((l,L)=>`bc-overlay bc-overlay--effect-${l} bc-overlay--mode-${L}`)),f)},V=o.render(v(),t.element,{disposeWithParent:!0,clear:!1,providers:t.providers});s.push(V),A.g(()=>u.open())},e)})}function I(r,t){const{size:s="md",dismissable:e=!0,showCloseButton:a=!0,onClose:i,overlayEffect:c="opaque",container:d="body",position:h="center"}=r;return D((f,m)=>{let u=()=>{};return t(p=>{u=m;const y=o.prop("capturing");o.Value.on(e,l=>{y.set(l?"capturing":"non-capturing")});const T=o.computedOf(p.header!=null,a)((l,L)=>l||L),n=w.sessionId("modal"),v=`${n}-header`,V=`${n}-body`,E=o.html.div(o.attr.class(o.computedOf(s,h)((l,L)=>`bc-modal bc-modal--size-${l} bc-modal--container-${d} bc-modal--position-${L}`)),o.attr.role("dialog"),o.aria.modal(!0),...p.header?[o.aria.labelledby(v)]:[],o.aria.describedby(V),o.attr.tabindex(-1),o.attr.id(n),o.dataAttr.focusTrap("true"),o.on.mousedown(l=>l.stopPropagation()),B({escapeDeactivates:!1,initialFocus:()=>{const l=document.getElementById(n);if(!l)return null;const L=l.querySelector('[aria-label="Close modal"]');if(L)return L;const S=l.querySelector('button, input, select, textarea, [tabindex]:not([tabindex="-1"])');return S||l}}),o.html.div(o.attr.class("bc-modal__content"),o.When(T,()=>o.html.div(o.attr.class("bc-modal__header"),o.html.div(o.attr.class("bc-modal__title"),...p.header?[o.attr.id(v)]:[],p.header),o.When(a,()=>o.Use(w.BeatUII18n,l=>w.CloseButton({size:"sm",label:l.$.closeModal,onClick:()=>{u(),m()}}))))),o.html.div(o.attr.class("bc-modal__body"),o.attr.id(V),p.body),p.footer&&o.html.div(o.attr.class("bc-modal__footer"),p.footer)));f({mode:y,effect:c??"opaque",container:d,content:E,onClickOutside:()=>{i?.(),m()},onEscape:()=>{i?.(),m()}})},()=>{u(),m()})})}function G(r,t){const{confirmText:s,cancelText:e,onConfirm:a,onCancel:i,...c}=r;return o.Use(w.BeatUII18n,d=>I({showCloseButton:!1,...c},(h,f)=>{const m=()=>{a?.(),f()},u=()=>{i?.(),f()};return t(g=>{h({body:g,footer:o.Fragment(o.attr.class("bc-modal__actions"),w.Button({variant:"outline",onClick:u},o.coalesce(e,d.$.cancel)),w.Button({color:"primary",variant:"filled",onClick:m},o.coalesce(s,d.$.confirm)))})},f)}))}exports.AnimatedToggleClass=U;exports.BooleanValidator=x;exports.ConfirmModal=G;exports.FocusTrap=B;exports.Modal=I;exports.ObjectValidator=O;exports.Overlay=D;exports.StringValidator=C;exports.boolean=K;exports.createStandardSchema=q;exports.object=N;exports.string=H;exports.useAnimatedElementToggle=M;exports.useAnimatedToggle=F;exports.useFocusTrap=_;exports.useTimedToggle=P;
@@ -1,6 +1,6 @@
1
1
  import { WithElement as P, OnDispose as K, prop as W, attr as h, computedOf as A, WithBrowserCtx as N, Value as z, render as G, html as k, dataAttr as O, aria as F, on as J, When as D, Use as R, Fragment as Q, coalesce as q } from "@tempots/dom";
2
2
  import { g as V, T as I } from "./timer-CQlK5LhW.js";
3
- import { s as X, B as U, C as Y, a as j } from "./translations-GO9sIajX.js";
3
+ import { s as X, B as U, C as Y, a as j } from "./notice-DKO4C8y2.js";
4
4
  const Z = [
5
5
  "a[href]",
6
6
  "button:not([disabled])",
@@ -1,4 +1,4 @@
1
- import { f as o } from "./translations-GO9sIajX.js";
1
+ import { f as o } from "./notice-DKO4C8y2.js";
2
2
  const l = {
3
3
  loadingExtended: "Laden, even geduld",
4
4
  loadingShort: "Laden...",
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./notice-DrmHRjLV.cjs"),s={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,a)=>{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&&a){const i=r.formatFileSize(t,{units:a});n.push(`max ${i} elk`)}n.length>0&&(o+=` (${n.join(", ")})`)}else if(t&&a){const n=r.formatFileSize(t,{units:a});o+=` (max ${n})`}return o}};exports.default=s;exports.nl=s;