@tempots/beatui 0.44.0 → 0.46.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.
- package/dist/{2019-BbqYDdRN.cjs → 2019-BQcD9URE.cjs} +1 -1
- package/dist/{2019-wmBa3AUH.js → 2019-UNku578Y.js} +2 -2
- package/dist/{2020--7erNwhp.cjs → 2020-Btv5q4dj.cjs} +1 -1
- package/dist/{2020-DYhs4sKc.js → 2020-D87xb4CE.js} +2 -2
- package/dist/{ar-DpQo8C31.js → ar-DAGDMYsi.js} +1 -1
- package/dist/{ar-BLgxAefV.cjs → ar-_jjzLBRv.cjs} +1 -1
- package/dist/auth/index.cjs.js +1 -1
- package/dist/auth/index.es.js +4 -4
- package/dist/beatui.css +5 -0
- package/dist/beatui.tailwind.css +5 -0
- package/dist/{colors-WfmhQ5e1.js → colors-BW19rWA1.js} +2 -2
- package/dist/{colors-Qc1mmmfr.cjs → colors-tmKn7dR5.cjs} +1 -1
- package/dist/{de-D1MQ4wen.js → de-DS5xkBOE.js} +1 -1
- package/dist/{de-Bv-qs--J.cjs → de-_2pLrwuX.cjs} +1 -1
- package/dist/{es-3r8Ko5Dn.cjs → es-DmmDzy9i.cjs} +1 -1
- package/dist/{es-DwPjonS7.js → es-zBeNuQ7P.js} +1 -1
- package/dist/{fa-fxf_lWjh.js → fa-B57RDheU.js} +1 -1
- package/dist/{fa-Qw6uVZeX.cjs → fa-D0N2XVAF.cjs} +1 -1
- package/dist/{fr-BDDsMHRZ.js → fr-7mBncT_E.js} +1 -1
- package/dist/{fr-pVhG9qik.cjs → fr-Cvk838Y0.cjs} +1 -1
- package/dist/{he-D-fvzfe1.cjs → he-BDL3nmBq.cjs} +1 -1
- package/dist/{he-B4deK_wE.js → he-DNStLLNe.js} +1 -1
- package/dist/{hi-CxQT8nRD.js → hi-BQ88kfgL.js} +1 -1
- package/dist/{hi-DKgxHzmH.cjs → hi-CkFz9jGl.cjs} +1 -1
- package/dist/{index-C6ABrzNb.cjs → index-8IRe4UrJ.cjs} +1 -1
- package/dist/{index-B-SyWyCc.cjs → index-BD2yYgsi.cjs} +1 -1
- package/dist/{index-BwEJlbG2.js → index-Bpj8_mas.js} +1 -1
- package/dist/{index-BtBnohrx.cjs → index-Bw768GSN.cjs} +2 -2
- package/dist/{index-Lj0QS2po.cjs → index-CMBub3gr.cjs} +1 -1
- package/dist/{index-Acyxme63.js → index-CNQHiywh.js} +3 -3
- package/dist/{index-B-pudlMv.js → index-C_a29dA7.js} +1 -1
- package/dist/{index-B41Wk-Md.js → index-CyvVZ2rs.js} +6 -6
- package/dist/{index-DDV9l84p.js → index-MhPczVFS.js} +1 -1
- package/dist/{index-nVVPqgLq.cjs → index-XcBgidt4.cjs} +1 -1
- package/dist/index.cjs.js +2 -2
- package/dist/index.es.js +15 -15
- package/dist/{it-6QS5PWzQ.js → it-CQvxjtzH.js} +1 -1
- package/dist/{it-Ck0r9TO3.cjs → it-xfHAbJDL.cjs} +1 -1
- package/dist/{ja-D6b9suYB.cjs → ja-dK2EaYnl.cjs} +1 -1
- package/dist/{ja-D2VvVGEN.js → ja-rPw4r19j.js} +1 -1
- package/dist/json-schema/index.cjs.js +1 -1
- package/dist/json-schema/index.es.js +1 -1
- package/dist/{ko-CzvM2Bjv.cjs → ko-B8bU3qEd.cjs} +1 -1
- package/dist/{ko-CP_WopWz.js → ko-Bsr9oDRH.js} +1 -1
- package/dist/{modal-DDikqd_d.cjs → modal-CwLXTMFb.cjs} +1 -1
- package/dist/{modal-Ca0R0SXH.js → modal-Dx7nHv_u.js} +2 -2
- package/dist/{nl-DZ4dFolZ.js → nl-OFrzDTyj.js} +1 -1
- package/dist/{nl-_9vJc8JD.cjs → nl-fbSaW0ms.cjs} +1 -1
- package/dist/{notice-BC7NWoXS.cjs → notice-CNrZMX-r.cjs} +1 -1
- package/dist/{notice-HsPYb-CP.js → notice-Dgv1Puqy.js} +1 -1
- package/dist/{pl-BE81iFSF.js → pl-BtomlJ-P.js} +1 -1
- package/dist/{pl-DKcVCojx.cjs → pl-Bv1VbtHi.cjs} +1 -1
- package/dist/prosemirror/index.cjs.js +1 -1
- package/dist/prosemirror/index.es.js +1 -1
- package/dist/{pt-BcCdXUA2.js → pt-CoPyxcp2.js} +1 -1
- package/dist/{pt-DNVS1_MF.cjs → pt-DVofofnR.cjs} +1 -1
- package/dist/{ru-Bo_jc3s1.js → ru-CRAfa4QI.js} +1 -1
- package/dist/{ru-DTn9Rssv.cjs → ru-YnWlhmAf.cjs} +1 -1
- package/dist/tailwind/index.cjs.js +1 -1
- package/dist/tailwind/index.es.js +1 -1
- package/dist/tailwind/preset.cjs.js +1 -1
- package/dist/tailwind/preset.es.js +2 -2
- package/dist/tailwind/vite-plugin.cjs.js +1 -1
- package/dist/tailwind/vite-plugin.es.js +1 -1
- package/dist/{toolbar-jPGzdJGi.cjs → toolbar-Df75r-Ze.cjs} +1 -1
- package/dist/{toolbar-DhD5GmMa.js → toolbar-QlXtHTq2.js} +1 -1
- package/dist/{tr-BhTJYHQ3.cjs → tr-B89mpvcb.cjs} +1 -1
- package/dist/{tr-CBw3FlOg.js → tr-BZ7okqf-.js} +1 -1
- package/dist/{translations-C21osktO.cjs → translations-0qZADR5l.cjs} +1 -1
- package/dist/{translations-B0HuWYIz.js → translations-BaKCl3Vc.js} +1 -1
- package/dist/{translations-B7_3phoA.cjs → translations-Cd5YXXFP.cjs} +1 -1
- package/dist/{translations-D-fMB_IO.js → translations-DoBmuZ5v.js} +3 -3
- package/dist/types/tokens/colors.d.ts +2 -2
- package/dist/{ur-BsXnPgxd.js → ur-CbkIhLJD.js} +1 -1
- package/dist/{ur-BjuXyU8Z.cjs → ur-DE8WBz8k.cjs} +1 -1
- package/dist/{utils-DszNI59p.js → utils-D2igg-30.js} +3 -3
- package/dist/{utils-Bxv-9oEL.cjs → utils-ifLLdUuV.cjs} +1 -1
- package/dist/{vi-CvsTHMkK.cjs → vi-CFBgyXOQ.cjs} +1 -1
- package/dist/{vi-D1rLo6MX.js → vi-DlZVO9A1.js} +1 -1
- package/dist/{zh-zh1FJ4Ud.cjs → zh-BYu5DfDF.cjs} +1 -1
- package/dist/{zh-BoLsjdfz.js → zh-BZVkFK1T.js} +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { prop as Q, html as d, attr as l, computedOf as C, OnDispose as Y, Use as ne, Empty as R, Value as m, input as le, on as $, emitValue as W, WithElement as ae, style as k, Fragment as N, aria as B, OneOfValue as ln, When as J, Unless as sn, coalesce as _e, ForEach as Te, Ensure as Ye, OneOfType as Pt, dataAttr as nt, NotEmpty as on, emitValueAsDate as cn, Portal as at, makeProviderMark as Dt, WithBrowserCtx as un, renderWithContext as dn, WithProvider as bn, Task as pn, Provide as Lt, MapSignal as At, svg as ut, svgAttr as dt } from "@tempots/dom";
|
|
2
2
|
import { Use as rl } from "@tempots/dom";
|
|
3
3
|
import { PopOver as fn, ElementRect as Ne, WindowSize as gn, Query as mn, Location as Ve, NavigationService as hn, Anchor as rt } from "@tempots/ui";
|
|
4
|
-
import { i as ce, t as we, h as bt, e as de, a as be, I as ee, b as te, C as se, B as pt, c as ze, L as lt, j as ft, k as gt } from "./translations-
|
|
5
|
-
import { x as sl, T as ol, l as il, d as cl, f as ul, g as dl, u as bl, q as pl, o as fl, w as gl, y as ml, n as hl, v as vl, m as yl, p as wl, r as xl, s as kl } from "./translations-
|
|
6
|
-
import { g as Bt } from "./colors-
|
|
7
|
-
import { b as Sl, e as Il, i as $l, a as _l, c as Tl, o as Pl, l as Dl, m as Ll, k as Al, j as Bl, n as Vl, r as Ml, s as Nl, d as Ol, h as El, t as Rl } from "./colors-
|
|
8
|
-
import { b as vn } from "./index-
|
|
9
|
-
import { t as Fl, am as jl, h as Hl, J as zl, c as Wl, N as Yl, I as ql, K as Zl, e as Gl, l as Kl, d as Ql, a as Xl, ab as Jl, o as es, a0 as ts, ae as ns, q as as, H as rs, A as ls, al as ss, g as os, E as is, x as cs, aj as us, $ as ds, a4 as bs, k as ps, j as fs, i as gs, Y as ms, X as hs, Q as vs, P as ys, S as ws, R as xs, W as ks, V as Cs, U as Ss, T as Is, a8 as $s, a7 as _s, aa as Ts, a9 as Ps, n as Ds, m as Ls, _ as As, Z as Bs, ad as Vs, p as Ms, G as Ns, z as Os, ak as Es, D as Rs, C as Us, w as Fs, v as js, ai as Hs, ah as zs, f as Ws, a3 as Ys, a2 as qs, M as Zs, L as Gs, a5 as Ks, a6 as Qs, r as Xs, O as Js, ac as eo, s as to, F as no, y as ao, ag as ro, B as lo, u as so, af as oo, a1 as io } from "./index-
|
|
10
|
-
import { C as qe, s as he, m as Vt, d as Mt, I as st, B as Nt, c as Ot, S as ot, e as yn } from "./notice-
|
|
11
|
-
import { A as uo, g as bo, b as po, D as fo, E as go, v as mo, L as ho, M as vo, x as yo, N as wo, i as xo, P as ko, R as Co, n as So, q as Io, o as $o, k as _o, j as To, f as Po, p as Do, h as Lo, r as Ao, t as Bo, l as Vo, u as Mo, w as No } from "./notice-
|
|
12
|
-
import { u as Me, A as tt, a as wn, O as Et, F as xn } from "./modal-
|
|
13
|
-
import { B as Eo, C as Ro, M as Uo, c as Fo, S as jo, b as Ho, d as zo, o as Wo, s as Yo, f as qo, e as Zo, g as Go } from "./modal-
|
|
4
|
+
import { i as ce, t as we, h as bt, e as de, a as be, I as ee, b as te, C as se, B as pt, c as ze, L as lt, j as ft, k as gt } from "./translations-DoBmuZ5v.js";
|
|
5
|
+
import { x as sl, T as ol, l as il, d as cl, f as ul, g as dl, u as bl, q as pl, o as fl, w as gl, y as ml, n as hl, v as vl, m as yl, p as wl, r as xl, s as kl } from "./translations-DoBmuZ5v.js";
|
|
6
|
+
import { g as Bt } from "./colors-BW19rWA1.js";
|
|
7
|
+
import { b as Sl, e as Il, i as $l, a as _l, c as Tl, o as Pl, l as Dl, m as Ll, k as Al, j as Bl, n as Vl, r as Ml, s as Nl, d as Ol, h as El, t as Rl } from "./colors-BW19rWA1.js";
|
|
8
|
+
import { b as vn } from "./index-C_a29dA7.js";
|
|
9
|
+
import { t as Fl, am as jl, h as Hl, J as zl, c as Wl, N as Yl, I as ql, K as Zl, e as Gl, l as Kl, d as Ql, a as Xl, ab as Jl, o as es, a0 as ts, ae as ns, q as as, H as rs, A as ls, al as ss, g as os, E as is, x as cs, aj as us, $ as ds, a4 as bs, k as ps, j as fs, i as gs, Y as ms, X as hs, Q as vs, P as ys, S as ws, R as xs, W as ks, V as Cs, U as Ss, T as Is, a8 as $s, a7 as _s, aa as Ts, a9 as Ps, n as Ds, m as Ls, _ as As, Z as Bs, ad as Vs, p as Ms, G as Ns, z as Os, ak as Es, D as Rs, C as Us, w as Fs, v as js, ai as Hs, ah as zs, f as Ws, a3 as Ys, a2 as qs, M as Zs, L as Gs, a5 as Ks, a6 as Qs, r as Xs, O as Js, ac as eo, s as to, F as no, y as ao, ag as ro, B as lo, u as so, af as oo, a1 as io } from "./index-C_a29dA7.js";
|
|
10
|
+
import { C as qe, s as he, m as Vt, d as Mt, I as st, B as Nt, c as Ot, S as ot, e as yn } from "./notice-Dgv1Puqy.js";
|
|
11
|
+
import { A as uo, g as bo, b as po, D as fo, E as go, v as mo, L as ho, M as vo, x as yo, N as wo, i as xo, P as ko, R as Co, n as So, q as Io, o as $o, k as _o, j as To, f as Po, p as Do, h as Lo, r as Ao, t as Bo, l as Vo, u as Mo, w as No } from "./notice-Dgv1Puqy.js";
|
|
12
|
+
import { u as Me, A as tt, a as wn, O as Et, F as xn } from "./modal-Dx7nHv_u.js";
|
|
13
|
+
import { B as Eo, C as Ro, M as Uo, c as Fo, S as jo, b as Ho, d as zo, o as Wo, s as Yo, f as qo, e as Zo, g as Go } from "./modal-Dx7nHv_u.js";
|
|
14
14
|
import { T as Rt, a as kn } from "./theme-B5pmbvQ_.js";
|
|
15
|
-
import { S as Cn, G as Ut, E as Sn, F as In, N as Ft, a as ve, M as Le, e as mt, n as $n, W as ie, d as _n, i as Tn, b as ht, c as De } from "./utils-
|
|
16
|
-
import { j as Qo, l as Xo, B as Jo, p as ei, V as ti, C as ni, m as ai, L as ri, o as li, q as si, r as oi, s as ii, O as ci, u as ui, z as di, v as bi, I as pi, K as fi, w as gi, x as mi, H as hi, Q as vi, y as yi, R as wi, J as xi, A as ki, T as Ci, D as Si, f as Ii, U as $i, P as _i, X as Ti, Y as Pi, ag as Di, k as Li, ae as Ai, a2 as Bi, a1 as Vi, a6 as Mi, a7 as Ni, $ as Oi, Z as Ei, _ as Ri, ab as Ui, a5 as Fi, ac as ji, a3 as Hi, af as zi, a0 as Wi, a8 as Yi, a9 as qi, ad as Zi, aa as Gi, a4 as Ki, g as Qi, t as Xi, h as Ji } from "./utils-
|
|
15
|
+
import { S as Cn, G as Ut, E as Sn, F as In, N as Ft, a as ve, M as Le, e as mt, n as $n, W as ie, d as _n, i as Tn, b as ht, c as De } from "./utils-D2igg-30.js";
|
|
16
|
+
import { j as Qo, l as Xo, B as Jo, p as ei, V as ti, C as ni, m as ai, L as ri, o as li, q as si, r as oi, s as ii, O as ci, u as ui, z as di, v as bi, I as pi, K as fi, w as gi, x as mi, H as hi, Q as vi, y as yi, R as wi, J as xi, A as ki, T as Ci, D as Si, f as Ii, U as $i, P as _i, X as Ti, Y as Pi, ag as Di, k as Li, ae as Ai, a2 as Bi, a1 as Vi, a6 as Mi, a7 as Ni, $ as Oi, Z as Ei, _ as Ri, ab as Ui, a5 as Fi, ac as ji, a3 as Hi, af as zi, a0 as Wi, a8 as Yi, a9 as qi, ad as Zi, aa as Gi, a4 as Ki, g as Qi, t as Xi, h as Ji } from "./utils-D2igg-30.js";
|
|
17
17
|
import { g as We, x as vt } from "./timer-DzWb416P.js";
|
|
18
18
|
import { L as tc } from "./link-portal-Cr2l9f3k.js";
|
|
19
|
-
import { T as ac, a as rc, c as lc, b as sc, d as oc } from "./toolbar-
|
|
19
|
+
import { T as ac, a as rc, c as lc, b as sc, d as oc } from "./toolbar-QlXtHTq2.js";
|
|
20
20
|
function Wa(e, t = 0, n = () => !0) {
|
|
21
21
|
let a = null, r;
|
|
22
22
|
const s = Q(e.value);
|
|
@@ -316,12 +316,12 @@ function Ka(e) {
|
|
|
316
316
|
input: le.text(
|
|
317
317
|
se(e),
|
|
318
318
|
l.value(t),
|
|
319
|
-
l.class("bc-input"),
|
|
320
319
|
n != null ? $.blur(W(n)) : R,
|
|
321
320
|
a != null ? $.change(W(a)) : R,
|
|
322
321
|
r != null ? $.input(W(r)) : R
|
|
323
322
|
)
|
|
324
323
|
},
|
|
324
|
+
l.class("bc-color-input"),
|
|
325
325
|
On({ value: t, onChange: e.onChange, onInput: e.onInput })
|
|
326
326
|
);
|
|
327
327
|
}
|
|
@@ -3467,7 +3467,7 @@ function Ur({
|
|
|
3467
3467
|
...i
|
|
3468
3468
|
);
|
|
3469
3469
|
return e ? pn(
|
|
3470
|
-
() => import("./translations-
|
|
3470
|
+
() => import("./translations-BaKCl3Vc.js"),
|
|
3471
3471
|
({ AuthI18n: b }) => Lt(b, {}, () => o)
|
|
3472
3472
|
) : o;
|
|
3473
3473
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./translations-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./translations-0qZADR5l.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 t=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 n=l.formatFileSize(o,{units:a});i.push(`max ${n} ciascuno`)}i.length>0&&(t+=` (${i.join(", ")})`)}else if(o&&a){const i=l.formatFileSize(o,{units:a});t+=` (max ${i})`}return t},prosemirror:{bold:"Bold",italic:"Italic",code:"Code",link:"Link",removeLink:"Remove Link",heading:e=>`Heading ${e}`,bulletList:"Bullet List",orderedList:"Ordered List",blockquote:"Blockquote",codeBlock:"Code Block",horizontalRule:"Horizontal Rule",linkUrlPlaceholder:"https://example.com"}};exports.default=r;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./translations-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./translations-0qZADR5l.cjs"),i={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,n)=>{let l=(e==null||e>1,"クリックして選択するか、ファイルをここにドラッグ");if(e||t){const o=[];if(e!=null&&e>1&&o.push(`最大${e}ファイル`),t&&n){const a=r.formatFileSize(t,{units:n});o.push(`各${a}以下`)}o.length>0&&(l+=` (${o.join("、")})`)}else if(t&&n){const o=r.formatFileSize(t,{units:n});l+=` (最大${o})`}return l},prosemirror:{bold:"太字",italic:"斜体",code:"インラインコード",link:"リンクを挿入",removeLink:"リンクを削除",heading:e=>`見出し ${e}`,bulletList:"箇条書き",orderedList:"番号付きリスト",blockquote:"引用",codeBlock:"コードブロック",horizontalRule:"水平線",linkUrlPlaceholder:"https://example.com"}};exports.default=i;exports.ja=i;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-Bw768GSN.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-
|
|
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-CyvVZ2rs.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-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./translations-0qZADR5l.cjs"),c={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(", ")})`)}else if(t&&l){const o=r.formatFileSize(t,{units:l});n+=` (최대 ${o})`}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=c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("@tempots/dom"),w=require("./timer-DK_yKNwE.cjs"),D=require("./notice-BC7NWoXS.cjs"),O=require("./translations-C21osktO.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)},L=()=>{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(()=>{L()})})}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"),L=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:L,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 q(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(),()=>{}):q(s,e),closedAfter:e=>s==null?(e(),()=>{}):q(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 M({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.OnDispose(s,e),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(M({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 A 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 A;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 A;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 A;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 A;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 A;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 A,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()},L=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,L);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,T)=>`bc-overlay bc-overlay--effect-${m} bc-overlay--mode-${T}`)),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 L=r.computedOf(g.header!=null,n)((m,T)=>m||T),u=D.sessionId("modal"),l=`${u}-header`,x=`${u}-body`,E=r.html.div(r.attr.class(r.computedOf(s,p)((m,T)=>`bc-modal bc-modal--size-${m} bc-modal--container-${d} bc-modal--position-${T}`)),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 T=m.querySelector('[aria-label="Close modal"]');if(T)return T;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(L,()=>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=>D.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:r.Fragment(r.OnDispose(y,L),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=M;exports.BooleanValidator=C;exports.ConfirmModal=Y;exports.FocusTrap=V;exports.Modal=W;exports.ObjectValidator=$;exports.Overlay=I;exports.StringValidator=A;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"),D=require("./notice-CNrZMX-r.cjs"),O=require("./translations-0qZADR5l.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)},L=()=>{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(()=>{L()})})}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"),L=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:L,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 q(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(),()=>{}):q(s,e),closedAfter:e=>s==null?(e(),()=>{}):q(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 M({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.OnDispose(s,e),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(M({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 A 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 A;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 A;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 A;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 A;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 A;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 A,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()},L=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,L);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,T)=>`bc-overlay bc-overlay--effect-${m} bc-overlay--mode-${T}`)),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 L=r.computedOf(g.header!=null,n)((m,T)=>m||T),u=D.sessionId("modal"),l=`${u}-header`,x=`${u}-body`,E=r.html.div(r.attr.class(r.computedOf(s,p)((m,T)=>`bc-modal bc-modal--size-${m} bc-modal--container-${d} bc-modal--position-${T}`)),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 T=m.querySelector('[aria-label="Close modal"]');if(T)return T;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(L,()=>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=>D.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:r.Fragment(r.OnDispose(y,L),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=M;exports.BooleanValidator=C;exports.ConfirmModal=Y;exports.FocusTrap=V;exports.Modal=W;exports.ObjectValidator=$;exports.Overlay=I;exports.StringValidator=A;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,7 +1,7 @@
|
|
|
1
1
|
import { WithElement as D, OnDispose as V, prop as R, computedOf as w, Fragment as B, attr as g, WithBrowserCtx as J, Value as U, render as Q, html as k, dataAttr as S, aria as F, on as X, When as I, Use as H, coalesce as _ } from "@tempots/dom";
|
|
2
2
|
import { g as $, T as P } from "./timer-DzWb416P.js";
|
|
3
|
-
import { s as Y, C as Z } from "./notice-
|
|
4
|
-
import { a as K, B as W } from "./translations-
|
|
3
|
+
import { s as Y, C as Z } from "./notice-Dgv1Puqy.js";
|
|
4
|
+
import { a as K, B as W } from "./translations-DoBmuZ5v.js";
|
|
5
5
|
const ee = [
|
|
6
6
|
"a[href]",
|
|
7
7
|
"button:not([disabled])",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./translations-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./translations-0qZADR5l.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,o)=>{let l=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&&o){const r=a.formatFileSize(t,{units:o});n.push(`max ${r} elk`)}n.length>0&&(l+=` (${n.join(", ")})`)}else if(t&&o){const n=a.formatFileSize(t,{units:o});l+=` (max ${n})`}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=i;exports.nl=i;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const s=require("@tempots/dom"),w=require("./translations-C21osktO.cjs"),L=new Map;function A(e){const t=L.get(e)??0;return L.set(e,t+1),`${e}-${t}`}const k={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 k.isSuccess(e)?e.value:t},getOrElseLazy(e,t){return k.isSuccess(e)?e.value:t()},getOrNull(e){return k.isSuccess(e)?e.value:null},getOrUndefined(e){return k.isSuccess(e)?e.value:void 0},getUnsafe:e=>{if(k.isSuccess(e))return e.value;throw k.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})=>k.isSuccess(e)?t(e.value):k.isFailure(e)?n(e.error):k.isNotAsked(e)?a():r(e.previousValue),whenSuccess:(e,t)=>(k.isSuccess(e)&&t(e.value),e),whenFailure:(e,t)=>(k.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(k.isSuccess(n))t.push(n.value);else return n;return k.success(t)},ofPromise:async e=>{try{const t=await e;return k.success(t)}catch(t){return k.failure(t instanceof Error?t:new Error(String(t)))}}},_=(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=>k.success(t),t=>k.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 m=s.coalesce(o,c.$.closeModal);return w.Button({variant:"text",size:e,roundedness:r,disabled:n,color:a,onClick:i},s.attr.title(m),s.aria.label(m),...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:m="lg"}=e,u=o??A("checkbox"),b=`${u}-label`,y=()=>{if(s.Value.get(i??!1))return;const h=s.Value.get(t);r?.(!h)},g=h=>{s.Value.get(i??!1)||(h.key===" "||h.key==="Enter")&&(h.preventDefault(),y())};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,h=>h?"bc-checkbox-input__checkbox--checked":"bc-checkbox-input__checkbox--unchecked")),s.attr.class(s.Value.map(i??!1,h=>h?"bc-checkbox-input__checkbox--disabled":"")),s.attr.id(u),s.attr.role("checkbox"),s.attr.tabindex(s.Value.map(i??!1,h=>h?-1:0)),s.aria.checked(t),s.aria.disabled(i),a!=null?s.aria.labelledby(b):s.Empty,s.on.keydown(g),n!=null?s.on.blur(n):s.Empty,w.Icon({icon:s.computedOf(t,l,c)((h,d,p)=>h?d??"akar-icons/check-box-fill":p??"akar-icons/box"),accessibility:"decorative",size:m})),a!=null?s.html.label(s.attr.class("bc-checkbox-input__label"),s.attr.id(b),s.attr.for(u),q(a)):s.Empty)},s.on.click(y))},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:m,disabled:u,layout:b,labelWidth:y},...g)=>{const h=m??l!=null,d=u??!1,p=b??"vertical",C=A("input-wrapper"),I=i?`${C}-description`:void 0,O=l!=null?`${C}-error`:void 0,D=s.computedOf(p)(v=>v!=="vertical");return s.html.div(s.OnDispose(D),s.attr.class(s.Value.map(p,v=>ne(v))),s.attr.class(s.Value.map(e,v=>v?"bc-input-wrapper--full-width":"")),s.When(s.computedOf(p,y??void 0)((v,V)=>x(v,V)!=null),()=>s.attr.style(s.Value.map(s.computedOf(p,y??void 0)((v,V)=>x(v,V)),v=>v))),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(h,d)((v,V)=>re(v??!1,V??!1))),n),n!=null&&t?U:s.Empty),s.When(s.computedOf(D,i)((v,V)=>v&&V!=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,O].filter(Boolean).length>0?s.dataAttr.describedby([I,O].filter(Boolean).join(" ")):s.Empty,t?s.dataAttr.required("true"):s.Empty,s.When(h,()=>s.dataAttr.invalid("true")),o),s.When(s.computedOf(D,i)((v,V)=>!v&&V!=null),()=>s.html.div(s.attr.class("bc-input-wrapper__description"),s.attr.id(I),i)),l!=null?s.When(h,()=>s.html.div(s.attr.class("bc-input-wrapper__error"),s.attr.id(O),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,m=>w.InputContainer({...e,before:c,input:s.input.email(w.CommonInputAttributes(t),s.attr.placeholder(s.coalesce(l,m.$.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:m,placeholder:u,...b}=e,y={name:"password",disabled:c,...b},g=s.prop(!0),h=s.computedOf(g,m)((d,p)=>d?p??"current-password":"off");return s.Use(w.BeatUII18n,d=>{const p=s.computedOf(d.$.passwordPlaceholderText,g,u)((I,O,D)=>O?"•••••••••••••••":D??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({...y,autocomplete:h,placeholder:p}),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??A("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??A("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 T(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 E{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=_){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,m)=>m==="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=_)=>new J(this.path,this.change,this.signal,this.status,this.parent,t);object=(t=_)=>new G(this.path,this.change,this.signal,this.status,this.parent,t);transform=(t,n,r=[],a=_)=>new E([...this.path,...r],i=>this.change(n(i)),this.signal.map(t,a),this.status.map(T(r)),this.parent,a);asyncTransform=(t,n,r,a=[],i=_)=>new E([...this.path,...a],o=>{n(o).then(l=>this.change(l))},this.signal.mapAsync(t,r,void 0,i),this.status.map(T(a)),this.parent,i)}class G extends E{#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 E([...this.path,t],n,this.signal.map(o=>o[t]),this.status.map(T([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 E{#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(u=>u??[],o);super(t,n,l,a,i,o);const c=l.on(u=>{const b=this.#e.length-u.length;b>0&&(this.#e.splice(u.length,b).forEach((y,g)=>{const h=u.length+g;y.dispose(),this.#t.get(h)?.(),this.#t.delete(h),this.#s.delete(h),this.#r.get(h)?.(),this.#r.delete(h),this.#a.delete(h)}),this.#o(),this.#i())});this.length=l.map(u=>u.length),this.#c=this.touched.on(()=>{this.#o()}),this.#u=this.dirty.on(()=>{this.#i()});const m=this.signal.on(()=>this.#i());this.onDispose(()=>{for(const u of this.#e)u.dispose();this.length.dispose(),this.#e.length=0,c(),l.dispose();for(const u of this.#t.values())u();this.#t.clear(),this.#s.clear(),this.#n.dispose();for(const u of this.#r.values())u();this.#r.clear(),this.#a.clear(),this.#l.dispose(),this.#c(),this.#u(),m()})}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 E([...this.path,t],n,this.signal.map(o=>o[t]),this.status.map(T([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 m of o)c.dependencies==null&&(c.dependencies={}),c.dependencies[m]==null&&(c.dependencies[m]={}),c=c.dependencies[m];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-0qZADR5l.cjs"),L=new Map;function A(e){const t=L.get(e)??0;return L.set(e,t+1),`${e}-${t}`}const k={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 k.isSuccess(e)?e.value:t},getOrElseLazy(e,t){return k.isSuccess(e)?e.value:t()},getOrNull(e){return k.isSuccess(e)?e.value:null},getOrUndefined(e){return k.isSuccess(e)?e.value:void 0},getUnsafe:e=>{if(k.isSuccess(e))return e.value;throw k.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})=>k.isSuccess(e)?t(e.value):k.isFailure(e)?n(e.error):k.isNotAsked(e)?a():r(e.previousValue),whenSuccess:(e,t)=>(k.isSuccess(e)&&t(e.value),e),whenFailure:(e,t)=>(k.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(k.isSuccess(n))t.push(n.value);else return n;return k.success(t)},ofPromise:async e=>{try{const t=await e;return k.success(t)}catch(t){return k.failure(t instanceof Error?t:new Error(String(t)))}}},_=(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=>k.success(t),t=>k.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 m=s.coalesce(o,c.$.closeModal);return w.Button({variant:"text",size:e,roundedness:r,disabled:n,color:a,onClick:i},s.attr.title(m),s.aria.label(m),...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:m="lg"}=e,u=o??A("checkbox"),b=`${u}-label`,y=()=>{if(s.Value.get(i??!1))return;const h=s.Value.get(t);r?.(!h)},g=h=>{s.Value.get(i??!1)||(h.key===" "||h.key==="Enter")&&(h.preventDefault(),y())};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,h=>h?"bc-checkbox-input__checkbox--checked":"bc-checkbox-input__checkbox--unchecked")),s.attr.class(s.Value.map(i??!1,h=>h?"bc-checkbox-input__checkbox--disabled":"")),s.attr.id(u),s.attr.role("checkbox"),s.attr.tabindex(s.Value.map(i??!1,h=>h?-1:0)),s.aria.checked(t),s.aria.disabled(i),a!=null?s.aria.labelledby(b):s.Empty,s.on.keydown(g),n!=null?s.on.blur(n):s.Empty,w.Icon({icon:s.computedOf(t,l,c)((h,d,p)=>h?d??"akar-icons/check-box-fill":p??"akar-icons/box"),accessibility:"decorative",size:m})),a!=null?s.html.label(s.attr.class("bc-checkbox-input__label"),s.attr.id(b),s.attr.for(u),q(a)):s.Empty)},s.on.click(y))},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:m,disabled:u,layout:b,labelWidth:y},...g)=>{const h=m??l!=null,d=u??!1,p=b??"vertical",C=A("input-wrapper"),I=i?`${C}-description`:void 0,O=l!=null?`${C}-error`:void 0,D=s.computedOf(p)(v=>v!=="vertical");return s.html.div(s.OnDispose(D),s.attr.class(s.Value.map(p,v=>ne(v))),s.attr.class(s.Value.map(e,v=>v?"bc-input-wrapper--full-width":"")),s.When(s.computedOf(p,y??void 0)((v,V)=>x(v,V)!=null),()=>s.attr.style(s.Value.map(s.computedOf(p,y??void 0)((v,V)=>x(v,V)),v=>v))),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(h,d)((v,V)=>re(v??!1,V??!1))),n),n!=null&&t?U:s.Empty),s.When(s.computedOf(D,i)((v,V)=>v&&V!=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,O].filter(Boolean).length>0?s.dataAttr.describedby([I,O].filter(Boolean).join(" ")):s.Empty,t?s.dataAttr.required("true"):s.Empty,s.When(h,()=>s.dataAttr.invalid("true")),o),s.When(s.computedOf(D,i)((v,V)=>!v&&V!=null),()=>s.html.div(s.attr.class("bc-input-wrapper__description"),s.attr.id(I),i)),l!=null?s.When(h,()=>s.html.div(s.attr.class("bc-input-wrapper__error"),s.attr.id(O),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,m=>w.InputContainer({...e,before:c,input:s.input.email(w.CommonInputAttributes(t),s.attr.placeholder(s.coalesce(l,m.$.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:m,placeholder:u,...b}=e,y={name:"password",disabled:c,...b},g=s.prop(!0),h=s.computedOf(g,m)((d,p)=>d?p??"current-password":"off");return s.Use(w.BeatUII18n,d=>{const p=s.computedOf(d.$.passwordPlaceholderText,g,u)((I,O,D)=>O?"•••••••••••••••":D??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({...y,autocomplete:h,placeholder:p}),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??A("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??A("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 T(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 E{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=_){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,m)=>m==="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=_)=>new J(this.path,this.change,this.signal,this.status,this.parent,t);object=(t=_)=>new G(this.path,this.change,this.signal,this.status,this.parent,t);transform=(t,n,r=[],a=_)=>new E([...this.path,...r],i=>this.change(n(i)),this.signal.map(t,a),this.status.map(T(r)),this.parent,a);asyncTransform=(t,n,r,a=[],i=_)=>new E([...this.path,...a],o=>{n(o).then(l=>this.change(l))},this.signal.mapAsync(t,r,void 0,i),this.status.map(T(a)),this.parent,i)}class G extends E{#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 E([...this.path,t],n,this.signal.map(o=>o[t]),this.status.map(T([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 E{#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(u=>u??[],o);super(t,n,l,a,i,o);const c=l.on(u=>{const b=this.#e.length-u.length;b>0&&(this.#e.splice(u.length,b).forEach((y,g)=>{const h=u.length+g;y.dispose(),this.#t.get(h)?.(),this.#t.delete(h),this.#s.delete(h),this.#r.get(h)?.(),this.#r.delete(h),this.#a.delete(h)}),this.#o(),this.#i())});this.length=l.map(u=>u.length),this.#c=this.touched.on(()=>{this.#o()}),this.#u=this.dirty.on(()=>{this.#i()});const m=this.signal.on(()=>this.#i());this.onDispose(()=>{for(const u of this.#e)u.dispose();this.length.dispose(),this.#e.length=0,c(),l.dispose();for(const u of this.#t.values())u();this.#t.clear(),this.#s.clear(),this.#n.dispose();for(const u of this.#r.values())u();this.#r.clear(),this.#a.clear(),this.#l.dispose(),this.#c(),this.#u(),m()})}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 E([...this.path,t],n,this.signal.map(o=>o[t]),this.status.map(T([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 m of o)c.dependencies==null&&(c.dependencies={}),c.dependencies[m]==null&&(c.dependencies[m]={}),c=c.dependencies[m];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),m=s.prop(a??"touchedOrSubmit"),u=d=>{l.set(d)};let b;const y=async d=>{if(n!=null){const p=await n(d);u(p)}},g=async d=>{o.set(d),t?.(d);const p=m.value;if(n!=null){if(p==="onSubmit")return;const C=i??0;C>0?(b&&clearTimeout(b),b=setTimeout(()=>{y(d)},C)):await y(d)}},h=new E([],g,o,l,{disabled:c,validationMode:m},r??_);return h.onDispose(()=>{c.dispose(),o.dispose(),l.dispose(),m.dispose(),b&&clearTimeout(b)}),{controller:h,setStatus:u}}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 u=>M(await t["~standard"].validate(u))}),l=s.prop(!1),c=i.object();return c.onDispose(l.dispose),{controller:c,setStatus:o,submit:async u=>{if(l.set(!0),u?.preventDefault(),c.markAllTouched(),(r??"touchedOrSubmit")==="onSubmit"){const y=c.signal.value,g=t?.["~standard"].validate;if(g==null){l.set(!1);return}const h=M(await g(y));if(o(h),h.type==="invalid"){l.set(!1);return}}const b=await n(c.signal.value);l.set(!1),b.type==="invalid"&&o(b)},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 m=s.Value.map(i,d=>!!d||o!=null),u=s.Value.map(e,d=>d??"info"),b=s.Value.map(t,d=>d??"subtle"),y=s.computedOf(n,u)((d,p)=>d??(p==="danger"?"alert":"status")),g=s.prop(!0),h=s.Use(w.BeatUII18n,d=>s.html.div(s.attr.class(s.computedOf(u,b,m,l)((p,C,I,O)=>ge(p,C,I,O))),s.attr.role(s.Value.map(y,p=>p)),s.Unless(s.Value.map(a,p=>p===!1),()=>s.html.div(s.attr.class("bc-notice__icon"),w.Icon({icon:s.computedOf(a,u)((p,C)=>p===void 0?fe(C):String(p)),size:"md",color:s.Value.map(u,be)}))),s.html.div(s.attr.class("bc-notice__body"),s.Ensure(r,p=>s.html.div(s.attr.class("bc-notice__title"),p)),s.html.div(s.attr.class("bc-notice__content"),...c)),s.When(m,()=>N({size:"xs",label:d.$.closeModal,onClick:()=>{g.set(!1),o?.()}}))));return s.Fragment(s.OnDispose(()=>{s.Value.dispose(m),s.Value.dispose(u),s.Value.dispose(b)},y,g),s.When(g,()=>h))}exports.ArrayController=J;exports.BaseControl=P;exports.BaseMappedControl=H;exports.CheckboxInput=se;exports.CloseButton=N;exports.Control=oe;exports.Controller=E;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=_;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=T;exports.makeOnBlurHandler=W;exports.makeOnChangeHandler=z;exports.parsePath=ue;exports.pathToString=K;exports.sessionId=A;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 B, attr as c, html as b, on as E, Value as y, Empty as _, computedOf as C, OnDispose as X, When as O, dataAttr as R, input as ne, emitValue as $, prop as I, Fragment as x, emitValueAsNumber as ie, Unless as re, Ensure as ae } from "@tempots/dom";
|
|
2
|
-
import { a as z, B as le, I as L, b as W, c as oe, C as Y } from "./translations-
|
|
2
|
+
import { a as z, B as le, I as L, b as W, c as oe, C as Y } from "./translations-DoBmuZ5v.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 l=require("./translations-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./translations-0qZADR5l.cjs"),t={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 r=l.formatFileSize(o,{units:a});i.push(`maks ${r} każdy`)}i.length>0&&(n+=` (${i.join(", ")})`)}else if(o&&a){const i=l.formatFileSize(o,{units:a});n+=` (maks ${i})`}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=t;exports.pl=t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../index-XcBgidt4.cjs");exports.DEFAULT_FEATURES=r.DEFAULT_FEATURES;exports.ProseMirrorMarkdownInput=r.ProseMirrorMarkdownInput;exports.ProseMirrorToolbar=r.ProseMirrorToolbar;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./translations-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./translations-0qZADR5l.cjs"),n={loadingExtended:"Carregando, por favor aguarde",loadingShort:"Carregando...",locale:"Idioma",iconDescription:"Ícone",loadingIcon:"Ícone de carregamento",failedToLoadIcon:"Falha ao carregar ícone",editLabel:"Editar",selectOne:"Selecionar um",selectMany:"Selecionar vários",noResults:"Sem resultados",passwordPlaceholderText:"Senha Secreta",togglePasswordVisibility:"Alternar visibilidade da senha",toggleMenu:"Alternar menu",toggleAside:"Alternar painel lateral",mainNavigation:"Navegação principal",sidebar:"Barra lateral",closeDrawer:"Fechar gaveta",closeModal:"Fechar modal",confirm:"Confirmar",cancel:"Cancelar",addLabel:"Adicionar",removeItem:"Remover item",currentLocale:"Português",ar:"Árabe",de:"Alemão",en:"Inglês",es:"Espanhol",fr:"Francês",hi:"Hindi",it:"Italiano",ja:"Japonês",ko:"Coreano",nl:"Holandês",pl:"Polonês",pt:"Português",ru:"Russo",tr:"Turco",vi:"Vietnamita",zh:"Chinês",he:"Hebraico",fa:"Persa",ur:"Urdu",emailPlaceholderText:"Digite seu e-mail",incrementValue:"Incrementar valor",decrementValue:"Decrementar valor",dropZoneInstructions:e=>e?"Clique para escolher ou arraste arquivos aqui, ou pressione Enter ou Espaço para abrir o seletor de arquivos":"Arraste arquivos aqui",fileSizeUnits:["Bytes","KB","MB","GB","TB"],removeFile:"Remover arquivo",clearAllFiles:"Limpar todos os arquivos",clearValue:"Limpar valor",unknownType:"Tipo desconhecido",filesInputInstructions:(e,r,o)=>{let t=e==null||e>1?"Clique para escolher ou arraste arquivos aqui":"Clique para escolher ou arraste um arquivo aqui";if(e||r){const a=[];if(e!=null&&e>1&&a.push(`até ${e} arquivos`),r&&o){const l=i.formatFileSize(r,{units:o});a.push(`máx ${l} cada`)}a.length>0&&(t+=` (${a.join(", ")})`)}else if(r&&o){const a=i.formatFileSize(r,{units:o});t+=` (máx ${a})`}return t},prosemirror:{bold:"Bold",italic:"Italic",code:"Code",link:"Link",removeLink:"Remove Link",heading:e=>`Heading ${e}`,bulletList:"Bullet List",orderedList:"Ordered List",blockquote:"Blockquote",codeBlock:"Code Block",horizontalRule:"Horizontal Rule",linkUrlPlaceholder:"https://example.com"}};exports.default=n;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./translations-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./translations-0qZADR5l.cjs"),c={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 или Пробел, чтобы открыть выбор файлов":"Перетащите файлы сюда",fileSizeUnits:["Байт","КБ","МБ","ГБ","ТБ"],removeFile:"Удалить файл",clearAllFiles:"Очистить все файлы",clearValue:"Очистить значение",unknownType:"Неизвестный тип",filesInputInstructions:(e,t,l)=>{let r=e==null||e>1?"Нажмите для выбора или перетащите файлы сюда":"Нажмите для выбора или перетащите файл сюда";if(e||t){const o=[];if(e!=null&&e>1){let n="файлов";e<=4&&(n="файла"),o.push(`до ${e} ${n}`)}if(t&&l){const n=i.formatFileSize(t,{units:l});o.push(`макс ${n} каждый`)}o.length>0&&(r+=` (${o.join(", ")})`)}else if(t&&l){const o=i.formatFileSize(t,{units:l});r+=` (макс ${o})`}return r},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=c;exports.ru=c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-BD2yYgsi.cjs");exports.beatuiPreset=e.beatuiPreset;exports.createBeatuiPreset=e.createBeatuiPreset;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-BD2yYgsi.cjs");require("../colors-tmKn7dR5.cjs");exports.beatuiPreset=e.beatuiPreset;exports.createBeatuiPreset=e.createBeatuiPreset;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const y=require("node:fs"),l=require("node:path"),te=require("node:module"),ne=require("node:url"),G=require("../index-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const y=require("node:fs"),l=require("node:path"),te=require("node:module"),ne=require("node:url"),G=require("../index-BD2yYgsi.cjs"),k=require("node:fs/promises"),se=require("node:crypto");var B=typeof document<"u"?document.currentScript:null;const ae="https://fonts.googleapis.com/css2",W="normal",re=400,Q="Mozilla/5.0 (compatible; BeatUI Tailwind Plugin; +https://tempots.com)";async function oe(e){const{projectRoot:t,requests:n,logger:s}=e;if(!n||n.length===0)return null;const r=e.cacheDir?l.resolve(e.cacheDir):l.join(t,"node_modules",".beatui","google-fonts"),a=[],u=new Map;await k.mkdir(r,{recursive:!0}).catch(h=>{s?.(`Unable to create BeatUI Google Fonts cache directory: ${h}`)});for(const h of n)try{const d=X(h),m=await ie({request:h,cssUrl:d,cacheRoot:r,logger:s});if(!m)continue;const T=await he({cssText:m,cacheRoot:r,assetMap:u,logger:s});a.push(T)}catch(d){s?.(`Unexpected error while downloading Google Font "${h.family}": ${String(d)}`)}return a.length===0||u.size===0?null:{cssText:a.join(`
|
|
2
2
|
`),assets:Array.from(u.values())}}async function ie({request:e,cssUrl:t,cacheRoot:n,logger:s}){const r=l.join(n,ce(e,t));try{const a=await fetch(t,{headers:{"User-Agent":Q}});if(!a.ok)throw new Error(`Failed to download Google Font CSS: ${a.status} ${a.statusText}`);const u=await a.text();return await k.writeFile(r,u),u}catch(a){if(y.existsSync(r))try{const u=await k.readFile(r,"utf8");return s?.(`Using cached Google Font CSS for ${e.family} because download failed.`),u}catch(u){s?.(`Failed to read cached Google Font CSS for ${e.family}: ${u}`)}return s?.(`Unable to download Google Font CSS for ${e.family}: ${a}`),null}}function ce(e,t){const n=se.createHash("sha1").update(t).digest("hex").slice(0,10);return`${e.family.trim().toLowerCase().replace(/[^a-z0-9]+/g,"-")||"font"}-${n}.css`}function X(e){const{family:t}=e,n=t.trim().replace(/\s+/g," "),s=le(e.weights),r=ue(e.styles),a=new URLSearchParams;return a.append("family",de(n,s,r)),e.display&&a.append("display",e.display),e.subsets&&e.subsets.length>0&&a.append("subset",e.subsets.join(",")),e.text&&a.append("text",e.text),`${ae}?${a.toString()}`}function le(e){return!e||e.length===0?[]:Array.from(new Set(e)).sort((t,n)=>t-n)}function ue(e){if(!e||e.length===0)return[W];const t=Array.from(new Set(e)),n=t.includes("italic"),s=t.includes("normal");return!n&&!s&&t.push(W),t.sort((r,a)=>r===a?0:r==="normal"?-1:1)}function de(e,t,n){if(t.length===0&&n.every(d=>d==="normal"))return e;const s=n.includes("italic"),r=n.includes("normal"),a=t.length>0?t:[re];if(!s)return`${e}:wght@${a.join(";")}`;const u=new Set;r&&a.forEach(d=>{u.add(`0,${d}`)}),a.forEach(d=>{u.add(`1,${d}`)});const h=Array.from(u).sort((d,m)=>{const[T,R]=d.split(",").map(Number),[E,U]=m.split(",").map(Number);return T-E||R-U});return`${e}:ital,wght@${h.join(";")}`}const fe=/url\(([^)]+)\)/g;async function he({cssText:e,cacheRoot:t,assetMap:n,logger:s}){let r=e;const a=new Set;let u;for(;(u=fe.exec(e))!==null;){const d=u[1].trim().replace(/^['"]|['"]$/g,"");d.startsWith("http")&&a.add(d)}for(const h of a){const d=await me(h,t,n,s);if(!d)continue;const m=h.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),T=new RegExp(`url\\((['"])${m}\\1\\)`,"g"),R=new RegExp(`url\\(${m}\\)`,"g");r=r.replace(T,`url(${d.placeholder})`),r=r.replace(R,`url(${d.placeholder})`)}return r}async function me(e,t,n,s){const r=n.get(e);if(r)return r;let a;try{const m=new URL(e);a=l.basename(m.pathname)}catch(m){return s?.(`Invalid Google Font URL skipped: ${e} (${m})`),null}if(!a)return s?.(`Unable to derive file name for Google Font URL: ${e}`),null;const u=l.join(t,a),h=`__BEATUI_GOOGLE_FONT_${n.size}__`;if(!y.existsSync(u))try{const m=await fetch(e,{headers:{"User-Agent":Q}});if(!m.ok)return s?.(`Failed to download Google Font asset ${a}: ${m.status} ${m.statusText}`),null;const T=Buffer.from(await m.arrayBuffer());await k.writeFile(u,T)}catch(m){return s?.(`Unexpected error while downloading Google Font asset ${a}: ${String(m)}`),null}const d={url:e,fileName:a,localPath:u,placeholder:h};return n.set(e,d),d}function K(e){const t=typeof e=="string"?new URL(e):e;if(t.protocol!=="file:")throw new TypeError(`Expected file URL, received: ${t.href}`);const n=t.hostname,s=n===""||n==="localhost",r=decodeURIComponent(t.pathname);if(process.platform==="win32"){let a=r.replace(/\//g,"\\");return!s&&n?`\\\\${n}${a}`:(a.startsWith("\\")&&(a=a.slice(1)),a)}return!s&&n?`//${n}${r}`:r}function ge(e){return typeof e=="object"&&e!==null}function pe(e){if(typeof e=="string")return e;if(typeof e=="function")return e.name;if(ge(e)){const t=e.name;if(typeof t=="string")return t;const n=e.postcssPlugin;if(typeof n=="string")return n}}const z="@tempots/beatui/tailwind.css",$="beatui.tailwind.css",b=l.dirname(K(typeof document>"u"?require("url").pathToFileURL(__filename).href:B&&B.tagName.toUpperCase()==="SCRIPT"&&B.src||new URL("tailwind/vite-plugin.cjs.js",document.baseURI).href)),L=we(b)??b;function H(e){if(Object.keys(e).length===0)return"";let t=`:root {
|
|
3
3
|
`;for(const[n,s]of Object.entries(e))t+=` ${n}: ${s};
|
|
4
4
|
`;return t+=`}
|
|
@@ -2,7 +2,7 @@ import y from "node:fs";
|
|
|
2
2
|
import c from "node:path";
|
|
3
3
|
import { createRequire as Z } from "node:module";
|
|
4
4
|
import { pathToFileURL as q } from "node:url";
|
|
5
|
-
import { g as ee, a as te, c as se } from "../index-
|
|
5
|
+
import { g as ee, a as te, c as se } from "../index-C_a29dA7.js";
|
|
6
6
|
import { mkdir as ne, writeFile as V, readFile as ae } from "node:fs/promises";
|
|
7
7
|
import { createHash as oe } from "node:crypto";
|
|
8
8
|
const re = "https://fonts.googleapis.com/css2", B = "normal", ie = 400, J = "Mozilla/5.0 (compatible; BeatUI Tailwind Plugin; +https://tempots.com)";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("@tempots/dom"),h=require("./translations-
|
|
1
|
+
"use strict";const e=require("@tempots/dom"),h=require("./translations-0qZADR5l.cjs"),l=["button:not([disabled])",'[role="button"]:not([aria-disabled="true"])',"a[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(", ");function m(...a){return e.html.div(e.attr.class("bc-toolbar"),e.attr.role("toolbar"),e.aria.orientation("horizontal"),e.WithElement(n=>{const f=()=>{const r=Array.from(n.querySelectorAll(l));r.length!==0&&r.forEach((t,o)=>t.setAttribute("tabindex",o===0?"0":"-1"))},c=r=>{const t=Array.from(n.querySelectorAll(l));if(t.length===0)return;const o=t.findIndex(u=>u===document.activeElement);let i=(o===-1?0:o)+r;i<0&&(i=t.length-1),i>=t.length&&(i=0),t.forEach(u=>u.setAttribute("tabindex","-1"));const d=t[i];d.setAttribute("tabindex","0"),d.focus()};setTimeout(f,0);const b=r=>{switch(r.key){case"ArrowRight":r.preventDefault(),c(1);break;case"ArrowLeft":r.preventDefault(),c(-1);break;case"Home":r.preventDefault(),c(-1);{const t=Array.from(n.querySelectorAll(l));if(t.length){t.forEach(s=>s.setAttribute("tabindex","-1"));const o=t[0];o.setAttribute("tabindex","0"),o.focus()}}break;case"End":r.preventDefault();{const t=Array.from(n.querySelectorAll(l));if(t.length){t.forEach(s=>s.setAttribute("tabindex","-1"));const o=t[t.length-1];o.setAttribute("tabindex","0"),o.focus()}}break}};return n.addEventListener("keydown",b),e.OnDispose(()=>{n.removeEventListener("keydown",b)})}),...a)}function v(a,...n){return h.Button({color:"neutral",roundedness:"md",variant:"light",...a},e.attr.class("bc-toolbar__button"),...n)}function A(...a){return e.html.div(e.attr.class("bc-toolbar__group"),e.attr.role("group"),...a)}function x(){return e.html.div(e.attr.class("bc-toolbar__divider"),e.attr.role("separator"),e.aria.orientation("vertical"))}function p(){return e.html.div(e.attr.class("bc-toolbar__spacer"))}exports.Toolbar=m;exports.ToolbarButton=v;exports.ToolbarDivider=x;exports.ToolbarGroup=A;exports.ToolbarSpacer=p;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { html as c, attr as n, aria as m, WithElement as v, OnDispose as A } from "@tempots/dom";
|
|
2
|
-
import { B as x } from "./translations-
|
|
2
|
+
import { B as x } from "./translations-DoBmuZ5v.js";
|
|
3
3
|
const l = [
|
|
4
4
|
"button:not([disabled])",
|
|
5
5
|
'[role="button"]:not([aria-disabled="true"])',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./translations-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./translations-0qZADR5l.cjs"),t={loadingExtended:"Yükleniyor, lütfen bekleyin",loadingShort:"Yükleniyor...",locale:"Yerel",iconDescription:"Simge",loadingIcon:"Yükleme simgesi",failedToLoadIcon:"Simge yüklenemedi",editLabel:"Düzenle",selectOne:"Birini seç",selectMany:"Birden fazlasını seç",noResults:"Sonuç yok",passwordPlaceholderText:"Gizli Şifre",togglePasswordVisibility:"Şifre görünürlüğünü değiştir",toggleMenu:"Menüyü değiştir",toggleAside:"Yan paneli değiştir",mainNavigation:"Ana navigasyon",sidebar:"Kenar çubuğu",closeDrawer:"Çekmeceyi kapat",closeModal:"Modalı kapat",confirm:"Onayla",cancel:"İptal",addLabel:"Ekle",removeItem:"Öğeyi kaldır",currentLocale:"Türkçe",ar:"Arapça",de:"Almanca",en:"İngilizce",es:"İspanyolca",fr:"Fransızca",hi:"Hintçe",it:"İtalyanca",ja:"Japonca",ko:"Korece",nl:"Flemenkçe",pl:"Lehçe",pt:"Portekizce",ru:"Rusça",tr:"Türkçe",vi:"Vietnamca",zh:"Çince",he:"İbranice",fa:"Farsça",ur:"Urduca",emailPlaceholderText:"E-postanızı girin",incrementValue:"Değer artır",decrementValue:"Değer azalt",dropZoneInstructions:e=>e?"Seçmek için tıklayın veya dosyaları buraya sürükleyin, veya dosya seçiciyi açmak için Enter veya Boşluk tuşuna basın":"Dosyaları buraya sürükleyin",fileSizeUnits:["Bayt","KB","MB","GB","TB"],removeFile:"Dosyayı kaldır",clearAllFiles:"Tüm dosyaları temizle",clearValue:"Değeri temizle",unknownType:"Bilinmeyen tür",filesInputInstructions:(e,n,i)=>{let l=e==null||e>1?"Seçmek için tıklayın veya dosyaları buraya sürükleyin":"Seçmek için tıklayın veya dosyayı buraya sürükleyin";if(e||n){const a=[];if(e!=null&&e>1&&a.push(`en fazla ${e} dosya`),n&&i){const o=r.formatFileSize(n,{units:i});a.push(`her biri en fazla ${o}`)}a.length>0&&(l+=` (${a.join(", ")})`)}else if(n&&i){const a=r.formatFileSize(n,{units:i});l+=` (en fazla ${a})`}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=t;
|