@tempots/beatui 0.81.0 → 0.82.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_commonjsHelpers-DKOUU3wS.cjs +1 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/dist/{ar-DwHLVgKj.cjs → ar-D7CXDmVZ.cjs} +1 -1
- package/dist/{ar-Bo_FZZi7.js → ar-nOSKXpIW.js} +1 -1
- package/dist/auth/index.cjs.js +1 -1
- package/dist/auth/index.es.js +63 -1349
- package/dist/auth-divider-BqZPH1-z.cjs +1 -0
- package/dist/auth-divider-Wr-S16kF.js +1355 -0
- package/dist/beatui.css +2035 -295
- package/dist/beatui.tailwind.css +2036 -296
- package/dist/better-auth/index.cjs.js +1 -0
- package/dist/better-auth/index.es.js +754 -0
- package/dist/{de-zI5mdV4M.cjs → de-WzsOu9Gn.cjs} +1 -1
- package/dist/{de-CCqwOkqN.js → de-f2xcEb34.js} +1 -1
- package/dist/{deep-merge-1uN6CG6K.js → deep-merge-BYm0y62g.js} +271 -285
- package/dist/deep-merge-d7sf0xmN.cjs +1 -0
- package/dist/duration-input-B9UNmUCh.cjs +1 -0
- package/dist/{duration-input-C9kpsw-t.js → duration-input-DqcJbxKD.js} +31 -29
- package/dist/editor-toolbar-group--a-xgsJw.cjs +1 -0
- package/dist/editor-toolbar-group-CVpl5mxF.js +31 -0
- package/dist/{es-BF02UrPL.js → es-CDqqzpCw.js} +1 -1
- package/dist/{es-Cw90CAbu.cjs → es-Ds2Xf3wV.cjs} +1 -1
- package/dist/{fa-DPQV4YB8.js → fa-C7tE_hR3.js} +1 -1
- package/dist/{fa-B4lssnzR.cjs → fa-Ct1UtDB7.cjs} +1 -1
- package/dist/{fr-1Kd6z1F-.cjs → fr-CzAkRFed.cjs} +1 -1
- package/dist/{fr-dmxPhwkD.js → fr-yOW_68YY.js} +1 -1
- package/dist/{he-BtQbrVt3.js → he-D2oUloCJ.js} +1 -1
- package/dist/{he-CJ3XnuPm.cjs → he-DlXALrK7.cjs} +1 -1
- package/dist/{hi-BpfnFKHp.cjs → hi-3dBhLwDs.cjs} +1 -1
- package/dist/{hi-D_Le4Yka.js → hi-D5ZlZoQq.js} +1 -1
- package/dist/{hls.light.min-Bhrf47iR.cjs → hls.light.min-C6xKDzRR.cjs} +1 -1
- package/dist/{hls.light.min-C6VwviEa.js → hls.light.min-hEMf_E8u.js} +1 -1
- package/dist/{index-CfaWytS2.cjs → index-05UbKOYe.cjs} +1 -1
- package/dist/{index-K6u33-GC.cjs → index-Bt7FYl80.cjs} +19 -19
- package/dist/{index-YtW7SCWB.js → index-C2Lq1m45.js} +1434 -1463
- package/dist/{index-CGEzILlC.js → index-lYhXnu6I.js} +1 -1
- package/dist/index.cjs.js +4 -4
- package/dist/index.es.js +2389 -2738
- package/dist/input-container-C6qEIjcA.cjs +1 -0
- package/dist/input-container-DiCjOzR2.js +247 -0
- package/dist/{it-DyHjSuHN.js → it-6e6X-4BB.js} +1 -1
- package/dist/{it-COCZ9NyB.cjs → it-DohtcWi9.cjs} +1 -1
- package/dist/{ja-X43lABza.js → ja-BxNuNo2H.js} +1 -1
- package/dist/{ja--NdggLU9.cjs → ja-eyTArrgS.cjs} +1 -1
- package/dist/json-schema/index.cjs.js +1 -8
- package/dist/json-schema/index.es.js +1359 -7608
- package/dist/json-schema-display/index.cjs.js +1 -0
- package/dist/json-schema-display/index.es.js +846 -0
- package/dist/json-structure/index.cjs.js +1 -1
- package/dist/json-structure/index.es.js +542 -698
- package/dist/{ko-BUvb0ggK.cjs → ko-BFLCDMMs.cjs} +1 -1
- package/dist/{ko-B9g9iw99.js → ko-Ch0jFsBV.js} +1 -1
- package/dist/lexical/index.cjs.js +46 -0
- package/dist/lexical/index.es.js +21370 -0
- package/dist/lexical.css +1124 -0
- package/dist/menu-CZzRsQP_.js +372 -0
- package/dist/menu-ClrU72xH.cjs +1 -0
- package/dist/modal-I5srcntN.cjs +1 -0
- package/dist/modal-v3u2Fpnd.js +488 -0
- package/dist/{nl-0S25Gsld.cjs → nl-Bx2ACvr4.cjs} +1 -1
- package/dist/{nl-Ew5jnSsT.js → nl-NuTdZO1s.js} +1 -1
- package/dist/{notice-C-964yaY.js → notice-BuZvdvZh.js} +84 -82
- package/dist/notice-CLDdy1MW.cjs +1 -0
- package/dist/oneof-branch-detection-DsM1K5xc.cjs +8 -0
- package/dist/oneof-branch-detection-Dt8ss9lc.js +6281 -0
- package/dist/{pl-C9f6UBSe.js → pl-Bs4nLJ__.js} +1 -1
- package/dist/{pl-B3k-K3S4.cjs → pl-QHl6sl8f.cjs} +1 -1
- package/dist/prosemirror/index.cjs.js +1 -1
- package/dist/prosemirror/index.es.js +1 -1
- package/dist/{pt-DYtAvbrw.js → pt-BETjHZrL.js} +1 -1
- package/dist/{pt-CKoikRO5.cjs → pt-DZGw2Z-1.cjs} +1 -1
- package/dist/{ru-ZexN-b8V.js → ru-Bi1_DEKM.js} +1 -1
- package/dist/{ru-COb7RSDt.cjs → ru-D03IuLqh.cjs} +1 -1
- package/dist/session-id-3KiilioY.js +8 -0
- package/dist/session-id-B5lJMzbB.cjs +1 -0
- package/dist/stack-BJgsPJ9A.js +873 -0
- package/dist/stack-DcZ_u50f.cjs +1 -0
- package/dist/string-B9vVyfq3.cjs +1 -0
- package/dist/string-DYyMxBl-.js +19 -0
- package/dist/styles-url-B2dzXrYt.cjs +1 -0
- package/dist/styles-url-Cw_mxshe.js +4 -0
- package/dist/text-input-B3VBat1k.js +44 -0
- package/dist/text-input-Ds8e7Z1G.cjs +1 -0
- package/dist/{toolbar-DNpBIoJo.js → toolbar-D994_E_s.js} +4 -4
- package/dist/toolbar-x0_8lmKu.cjs +1 -0
- package/dist/{tr-tO_EH-Y2.cjs → tr-B_-_1wua.cjs} +1 -1
- package/dist/{tr-BDvn05-H.js → tr-DiYB-FwX.js} +1 -1
- package/dist/translations-B4-Zd2LM.cjs +1 -0
- package/dist/translations-Cq8bUKJP.js +584 -0
- package/dist/{translations-DwGC_94w.cjs → translations-D62qqNV9.cjs} +1 -1
- package/dist/{translations-CfWR4loD.js → translations-DPr6c05Z.js} +1 -1
- package/dist/types/better-auth/bridge.d.ts +2 -0
- package/dist/types/better-auth/callbacks.d.ts +6 -0
- package/dist/types/better-auth/components/authenticated.d.ts +4 -0
- package/dist/types/better-auth/components/better-auth-container.d.ts +4 -0
- package/dist/types/better-auth/components/better-auth-modal.d.ts +4 -0
- package/dist/types/better-auth/components/magic-link-form.d.ts +7 -0
- package/dist/types/better-auth/components/passkey-management.d.ts +6 -0
- package/dist/types/better-auth/components/passkey-signin.d.ts +12 -0
- package/dist/types/better-auth/components/two-factor-setup.d.ts +8 -0
- package/dist/types/better-auth/components/two-factor-verify.d.ts +10 -0
- package/dist/types/better-auth/i18n/default.d.ts +29 -0
- package/dist/types/better-auth/i18n/locales/en.d.ts +28 -0
- package/dist/types/better-auth/i18n/translations.d.ts +27 -0
- package/dist/types/better-auth/index.d.ts +22 -0
- package/dist/types/better-auth/provider.d.ts +6 -0
- package/dist/types/better-auth/session.d.ts +14 -0
- package/dist/types/better-auth/social-mapping.d.ts +2 -0
- package/dist/types/better-auth/types.d.ts +164 -0
- package/dist/types/components/auth/auth-container.d.ts +1 -1
- package/dist/types/components/auth/social-providers.d.ts +1 -1
- package/dist/types/components/auth/types.d.ts +2 -0
- package/dist/types/components/editor-toolbar/editor-toolbar-button.d.ts +16 -0
- package/dist/types/components/editor-toolbar/editor-toolbar-group.d.ts +9 -0
- package/dist/types/components/editor-toolbar/index.d.ts +2 -0
- package/dist/types/components/json-schema-display/display-widget-customization.d.ts +61 -0
- package/dist/types/components/json-schema-display/display-wrapper.d.ts +14 -0
- package/dist/types/components/json-schema-display/displays/any-display.d.ts +14 -0
- package/dist/types/components/json-schema-display/displays/array-display.d.ts +13 -0
- package/dist/types/components/json-schema-display/displays/boolean-display.d.ts +13 -0
- package/dist/types/components/json-schema-display/displays/composition-display.d.ts +14 -0
- package/dist/types/components/json-schema-display/displays/enum-const-display.d.ts +13 -0
- package/dist/types/components/json-schema-display/displays/generic-display.d.ts +18 -0
- package/dist/types/components/json-schema-display/displays/null-display.d.ts +13 -0
- package/dist/types/components/json-schema-display/displays/number-display.d.ts +13 -0
- package/dist/types/components/json-schema-display/displays/object-display.d.ts +13 -0
- package/dist/types/components/json-schema-display/displays/string-display.d.ts +14 -0
- package/dist/types/components/json-schema-display/index.d.ts +14 -0
- package/dist/types/components/json-schema-display/json-schema-display.d.ts +25 -0
- package/dist/types/components/json-schema-display/mismatch.d.ts +14 -0
- package/dist/types/components/json-structure/controls/control-utils.d.ts +19 -0
- package/dist/types/components/json-structure/controls/index.d.ts +1 -0
- package/dist/types/components/lexical/bare-editor.d.ts +29 -0
- package/dist/types/components/lexical/code/index.d.ts +1 -0
- package/dist/types/components/lexical/code/language-selector.d.ts +13 -0
- package/dist/types/components/lexical/contextual-editor.d.ts +22 -0
- package/dist/types/components/lexical/docked-editor.d.ts +23 -0
- package/dist/types/components/lexical/floating/block-handle.d.ts +16 -0
- package/dist/types/components/lexical/floating/floating-toolbar.d.ts +12 -0
- package/dist/types/components/lexical/floating/index.d.ts +6 -0
- package/dist/types/components/lexical/floating/slash-command-palette.d.ts +20 -0
- package/dist/types/components/lexical/index.d.ts +8 -0
- package/dist/types/components/lexical/lexical-editor-input.d.ts +30 -0
- package/dist/types/components/lexical/table/index.d.ts +1 -0
- package/dist/types/components/lexical/table/table-controls.d.ts +12 -0
- package/dist/types/components/lexical/toolbar/index.d.ts +6 -0
- package/dist/types/components/lexical/toolbar/lexical-toolbar.d.ts +12 -0
- package/dist/types/components/lexical/toolbar/toolbar-button.d.ts +1 -0
- package/dist/types/components/lexical/toolbar/toolbar-group.d.ts +1 -0
- package/dist/types/components/lexical/toolbar/toolbar-helpers.d.ts +30 -0
- package/dist/types/components/prosemirror/etoolbar-button.d.ts +1 -11
- package/dist/types/components/prosemirror/etoolbar-group.d.ts +1 -4
- package/dist/types/json-schema-display/index.d.ts +1 -0
- package/dist/types/lexical/commands/index.d.ts +17 -0
- package/dist/types/lexical/headless.d.ts +39 -0
- package/dist/types/lexical/horizontal-rule-node.d.ts +20 -0
- package/dist/types/lexical/index.d.ts +20 -0
- package/dist/types/lexical/lazy-loader.d.ts +35 -0
- package/dist/types/lexical/nodes.d.ts +29 -0
- package/dist/types/lexical/plugins/auto-link.d.ts +7 -0
- package/dist/types/lexical/plugins/clipboard.d.ts +11 -0
- package/dist/types/lexical/plugins/code-shiki.d.ts +11 -0
- package/dist/types/lexical/plugins/code.d.ts +7 -0
- package/dist/types/lexical/plugins/dragon.d.ts +6 -0
- package/dist/types/lexical/plugins/file-io.d.ts +10 -0
- package/dist/types/lexical/plugins/hashtag.d.ts +7 -0
- package/dist/types/lexical/plugins/history.d.ts +7 -0
- package/dist/types/lexical/plugins/horizontal-rule.d.ts +12 -0
- package/dist/types/lexical/plugins/html-io.d.ts +9 -0
- package/dist/types/lexical/plugins/index.d.ts +24 -0
- package/dist/types/lexical/plugins/link.d.ts +6 -0
- package/dist/types/lexical/plugins/list.d.ts +6 -0
- package/dist/types/lexical/plugins/mark.d.ts +15 -0
- package/dist/types/lexical/plugins/markdown-io.d.ts +13 -0
- package/dist/types/lexical/plugins/offset.d.ts +6 -0
- package/dist/types/lexical/plugins/overflow.d.ts +7 -0
- package/dist/types/lexical/plugins/plain-text.d.ts +6 -0
- package/dist/types/lexical/plugins/rich-text.d.ts +6 -0
- package/dist/types/lexical/plugins/selection.d.ts +6 -0
- package/dist/types/lexical/plugins/slash-commands.d.ts +26 -0
- package/dist/types/lexical/plugins/table.d.ts +11 -0
- package/dist/types/lexical/plugins/text.d.ts +13 -0
- package/dist/types/lexical/plugins/yjs.d.ts +9 -0
- package/dist/types/lexical/styles-url.d.ts +2 -0
- package/dist/types/lexical/styles.d.ts +2 -0
- package/dist/types/lexical/types.d.ts +634 -0
- package/dist/types/lexical-i18n/default.d.ts +92 -0
- package/dist/types/lexical-i18n/index.d.ts +21 -0
- package/dist/types/lexical-i18n/locales/ar.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/de.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/en.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/es.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/fa.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/fr.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/he.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/hi.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/it.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/ja.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/ko.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/nl.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/pl.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/pt.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/ru.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/tr.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/ur.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/vi.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/zh.d.ts +91 -0
- package/dist/types/lexical-i18n/translations.d.ts +21 -0
- package/dist/{ur-DbEqQgS6.js → ur-B69X-xNs.js} +1 -1
- package/dist/{ur-BbnYJ3HS.cjs → ur-DyUSmIbo.cjs} +1 -1
- package/dist/use-animated-toggle-ChycsEoj.js +175 -0
- package/dist/use-animated-toggle-DR6CyMac.cjs +1 -0
- package/dist/use-form-B56E_x5Y.js +859 -0
- package/dist/use-form-Cnp3XQ5X.cjs +2 -0
- package/dist/utils-DEbsp9Q9.js +129 -0
- package/dist/utils-DIUEhA-Z.cjs +1 -0
- package/dist/{vi-CpZUeuSj.js → vi-BdzxA60L.js} +1 -1
- package/dist/{vi-ByBwvGQY.cjs → vi-CBmPaHxg.cjs} +1 -1
- package/dist/widget-customization-Dk7XcVly.cjs +1 -0
- package/dist/widget-customization-Ds9sicAg.js +1073 -0
- package/dist/{zh-DnxK0ieB.cjs → zh-Cb1b8uik.cjs} +1 -1
- package/dist/{zh-DJyhKO0I.js → zh-Dn1UJiZa.js} +1 -1
- package/package.json +59 -8
- package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
- package/dist/_commonjsHelpers-DwGv2jUC.cjs +0 -1
- package/dist/deep-merge-CBIkQM4E.cjs +0 -1
- package/dist/duration-input-DHWhQJnn.cjs +0 -1
- package/dist/modal-CSHIhHvI.js +0 -654
- package/dist/modal-cc8Ehngz.cjs +0 -1
- package/dist/notice-C_BWqu2K.cjs +0 -1
- package/dist/toolbar-D5FcnRju.cjs +0 -1
- package/dist/translations-0tLX4x7M.js +0 -866
- package/dist/translations-WPN3ibDg.cjs +0 -1
- package/dist/use-form-D4JFOcjo.cjs +0 -2
- package/dist/use-form-D4rqJkvG.js +0 -1731
- package/dist/widget-customization-BSjJz3_Y.js +0 -1195
- package/dist/widget-customization-CrFVrt4V.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("@tempots/dom"),xt=require("./colors-B2yrgHSW.cjs"),yt=require("./timer-BJHOsuS6.cjs"),It=require("@tempots/ui"),S=require("./input-container-C6qEIjcA.cjs"),_=require("./translations-B4-Zd2LM.cjs"),$=require("./use-form-Cnp3XQ5X.cjs"),M=require("./text-input-Ds8e7Z1G.cjs"),P=require("./stack-DcZ_u50f.cjs");function Z({onChange:n,value:e,accept:l="*/*",enableClick:r=!0,content:a,disabled:h=!1,allowMultiple:o}){return t.Use(_.BeatUII18n,d=>{const p=t.Value.deriveProp(e??[]),m=t.prop(!1),u=i=>{i.preventDefault(),i.stopPropagation(),m.value=!0},b=i=>{i.preventDefault(),i.stopPropagation(),(!i.currentTarget||!i.currentTarget.contains(i.relatedTarget))&&(m.value=!1)},y=i=>{i.preventDefault(),i.stopPropagation(),m.value=!1;const f=Array.from(i.dataTransfer?.files||[]);f.length>0&&(p.value=f,n(f,"dragdrop"))},c=i=>{t.Value.get(r)&&i.currentTarget.querySelector('input[type="file"]')?.click()};let g=null;const v=()=>{if(g==null)return;const i=Array.from(g.files??[]);i.length>0&&(p.value=i,n(i,"click")),g.value=""},C=i=>{t.Value.get(r)&&(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),c(i))};return t.html.div(t.attr.role("button"),t.attr.tabindex(t.Value.map(r,i=>i?0:-1)),t.attr.style("position: relative;"),t.on.dragover(u),t.on.dragleave(b),t.on.drop(y),t.on.click(c),t.on.keydown(C),t.html.input(t.attr.type("file"),t.attr.disabled(h),t.attr.accept(l),t.attr.multiple(o),t.attr.style("position: absolute; left: -9999px; opacity: 0; pointer-events: none;"),t.on.change(v),t.WithElement(i=>(g=i,p.on(f=>{const w=globalThis.DataTransfer;if(w!=null){const k=new w;f.forEach(O=>k.items.add(O)),i.files=k.files}}),t.Empty))),t.aria.label(t.bind(d.$.dropZoneInstructions)(r)),a({files:p,clear:()=>p.value=[],change:p.set}))})}function Vt(n,e){return n.length===e.length&&n.every((l,r)=>l===e[r])}function Ct(n,e){const l=["bc-segmented-input",`bc-segmented-input--size-${n}`];return e&&l.push("bc-segmented-input--disabled"),l.join(" ")}function wt({options:n,value:e,onChange:l,size:r="md",disabled:a=!1},...h){const o=xt.l(n).map(([d,p])=>({key:d,label:p}));return t.WithElement(()=>{const d=Object.fromEntries(o.map((m,u)=>[m.key,u])),p=t.prop(o.map(()=>({left:0,width:0})),Vt);return t.html.div(t.attr.class(t.computedOf(r,a)((m,u)=>Ct(m??"md",u??!1))),t.html.div(t.attr.class("bc-segmented-input__container"),t.html.div(t.attr.class("bc-segmented-input__indicator"),t.style.width(t.computedOf(e,p)((m,u)=>{const{width:b}=u[d[m]??0];return`${b}px`})),t.style.left(t.computedOf(e,p)((m,u)=>{const{left:b}=u[d[m]??0];return`${b}px`}))),o.map(({label:m,key:u},b)=>t.html.button(t.attr.type("button"),t.on.click(y=>{y.preventDefault(),t.Value.get(a)||l?.(u)}),t.attr.disabled(a),t.attr.class("bc-segmented-input__segment"),t.attr.class(t.Value.map(e,y=>y===u?"bc-segmented-input__segment--active":"bc-segmented-input__segment--inactive")),It.ElementRect(y=>{function c(){p.update(v=>{const C=[...v];return C[b]={width:y.value.width,left:y.value.localLeft},C})}const g=yt.g(c);return t.OnDispose(g,y.on(c))}),m))),...h)})}function kt(n){const e=n.type.toLowerCase();return e.startsWith("image/")&&(e.includes("jpeg")||e.includes("jpg")||e.includes("png")||e.includes("gif")||e.includes("webp")||e.includes("svg"))}function _t(n){const e=n.type.toLowerCase();return e.startsWith("image/")?"vscode-icons:file-type-image":e.startsWith("video/")?"vscode-icons:file-type-video":e.startsWith("audio/")?"vscode-icons:file-type-audio":e.includes("pdf")?"vscode-icons:file-type-pdf2":e.includes("word")||e.includes("document")?"vscode-icons:file-type-word":e.includes("excel")||e.includes("spreadsheet")?"vscode-icons:file-type-excel":e.includes("powerpoint")||e.includes("presentation")?"vscode-icons:file-type-powerpoint":e.includes("zip")||e.includes("archive")?"vscode-icons:file-type-zip":e.includes("text")?"vscode-icons:file-type-text":e.includes("json")?"vscode-icons:file-type-json-official":e.includes("csv")?"vscode-icons:file-type-csv":e.includes("xml")?"vscode-icons:file-type-xml":e.includes("yaml")?"vscode-icons:file-type-yaml-official":"vscode-icons:file-type-binary"}function G(n){return t.When(n.map(kt),()=>{const e=t.prop(null);return n.on(l=>{e.value&&URL.revokeObjectURL(e.value);const r=URL.createObjectURL(l);e.value=r}),t.html.div(t.OnDispose(()=>{e.value&&URL.revokeObjectURL(e.value)}),t.attr.class("bc-file-input__thumbnail-container"),t.html.img(t.attr.src(e),t.attr.alt(n.map(l=>l.name)),t.attr.class("bc-file-input__thumbnail")))},()=>_.Icon({icon:n.map(_t)}))}const Et=(n,...e)=>{const{value:l=t.prop([]),accept:r="*/*",maxFiles:a,maxFileSize:h,onChange:o,onBlur:d,disabled:p,hasError:m,mode:u="default",showFileList:b=!0,...y}=n,c=l,g=t.Value.map(u,V=>V==="input"),v=t.Value.map(u,V=>V==="compact"),C=V=>{let s=V;if(a!=null){const x=t.Value.get(a);s=s.slice(0,x)}if(h){const x=t.Value.get(h);s=s.filter(E=>E.size<=x)}o?.(s)},i=V=>{const x=c.value.filter((E,D)=>D!==V);o?.(x)},f=()=>{o?.([])},w=({files:V,clear:s,change:x})=>t.Use(_.BeatUII18n,E=>t.html.div(t.attr.class("bc-file-input__drop-zone"),t.html.div(t.attr.class("bc-file-input__drop-zone-content bc-file-input__drop-zone-content--empty"),_.Icon({icon:"mdi:cloud-upload-outline",size:"xl"}),t.html.div(t.attr.class("bc-file-input__drop-zone-text"),t.bind(E.$.filesInputInstructions)(a,h,E.$.fileSizeUnits.value))))),k=({files:V})=>t.Use(_.BeatUII18n,s=>t.html.div(t.attr.class("bc-file-input__compact-drop-zone"),t.When(V.map(x=>x.length>0),()=>t.html.div(t.attr.class("bc-file-input__compact-file-list"),t.ForEach(V,(x,E)=>{const D=E.index;return t.html.div(t.attr.class("bc-file-input__compact-file-item"),t.html.div(t.attr.class("bc-file-input__compact-file-icon"),G(x)),t.html.div(t.attr.class("bc-file-input__compact-file-info"),t.html.div(t.attr.class("bc-file-input__compact-file-name"),t.attr.title(x.$.name),x.$.name),t.html.div(t.attr.class("bc-file-input__compact-file-meta"),t.computedOf(x.$.size,s.$.fileSizeUnits)((I,U)=>_.formatFileSize(I,{units:U}))," • ",t.computedOf(x.$.type,s.$.unknownType)((I,U)=>I||U))),$.CloseButton({size:"sm",label:s.$.removeFile,disabled:p,onClick:()=>i(D)},t.attr.class("bc-file-input__compact-remove-button")))})),()=>t.html.div(t.attr.class("bc-file-input__compact-placeholder"),_.Icon({icon:"mdi:cloud-upload-outline",size:"lg"}),t.html.div(t.attr.class("bc-file-input__compact-placeholder-text"),t.bind(s.$.filesInputInstructions)(a,h,s.$.fileSizeUnits.value)))))),O=({files:V})=>t.Use(_.BeatUII18n,s=>t.html.div(t.attr.class("bc-file-input__compact-input"),t.When(V.map(x=>x.length>0),()=>t.html.span(t.attr.class("bc-file-input__compact-value"),t.ForEach(V,x=>t.html.span(t.attr.class("bc-file-input__compact-value-item"),G(x),t.html.span(t.attr.class("bc-file-input__compact-value-item-name"),x.$.name)))),()=>t.html.span(t.attr.class("bc-file-input__compact-placeholder"),_.Icon({icon:"mdi:cloud-upload-outline",size:"md"})," ",t.bind(s.$.filesInputInstructions)(a,h,s.$.fileSizeUnits.value)))));return t.Use(_.BeatUII18n,V=>S.InputContainer({baseContainer:t.Value.map(g,s=>!s),disabled:p,hasError:m,after:t.When(g,()=>t.When(c.map(({length:s})=>s>0),()=>$.CloseButton({size:"sm",label:V.$.clearAllFiles,disabled:p,onClick:f},t.attr.class("bc-file-input__compact-clear")))),...y,input:t.When(g,()=>t.html.div(t.attr.class("bc-file-input bc-file-input--input"),Z({value:c,accept:r,enableClick:!0,allowMultiple:t.Value.map(a??1/0,s=>s>1),disabled:p,onChange:C,content:O})),()=>t.When(v,()=>t.html.div(t.attr.class("bc-file-input bc-file-input--compact"),Z({value:c,accept:r,enableClick:!0,allowMultiple:t.Value.map(a??1/0,s=>s>1),disabled:p,onChange:C,content:k})),()=>t.html.div(t.attr.class("bc-file-input"),Z({value:c,accept:r,enableClick:!0,allowMultiple:t.Value.map(a??1/0,s=>s>1),disabled:p,onChange:C,content:w}),t.When(b,()=>t.NotEmpty(c,()=>t.Fragment(t.html.div(t.attr.class("bc-file-input__file-list"),t.ForEach(c,(s,x)=>{const E=x.index;return t.html.div(t.attr.class("bc-file-input__file-item"),t.html.div(t.attr.class("bc-file-input__file-icon"),G(s)),t.html.div(t.attr.class("bc-file-input__file-info"),t.html.div(t.attr.class("bc-file-input__file-name"),t.attr.title(s.$.name),s.$.name),t.html.div(t.attr.class("bc-file-input__file-meta"),t.computedOf(s.$.size,V.$.fileSizeUnits)((D,I)=>_.formatFileSize(D,{units:I}))," • ",t.computedOf(s.$.type,V.$.unknownType)((D,I)=>D||I))),$.CloseButton({size:"sm",label:V.$.removeFile,disabled:p,onClick:()=>i(E)},t.attr.class("bc-file-input__remove-button")))})),t.When(c.map(({length:s})=>s>1),()=>t.html.div(t.attr.class("bc-file-input__clear-all-button-container"),t.html.button(t.attr.type("button"),t.attr.class("bc-file-input__clear-all-button"),t.attr.disabled(p),V.$.clearAllFiles,t.on.click(s=>{s.preventDefault(),s.stopPropagation(),f()}))))))))))},...e))},X="$$tts-exp-",st=(n,e)=>t.WithElement(l=>{const r=`${X}${n}`;return t.OnDispose(t.Value.on(e,a=>Reflect.set(l,r,a)))}),Dt=(n,e)=>{const l=`${X}${n}`;return r=>{e(Reflect.get(r.target,l))}},it=(n,e)=>{const l=`${X}${n}`;return r=>{const a=r.target,h=a.selectedIndex,o=a.options[h];e(Reflect.get(o,l))}};function R(...n){return t.html.div(t.attr.class("bc-group"),...n)}const ut=(n,e,l)=>t.Ensure(n,r=>t.OneOfType(r,{value:a=>{const h=t.computedOf(a,l)((o,d)=>e(o.value,d));return t.html.option(t.attr.selected(h),st("value",a.$.value),a.$.label)},group:a=>t.html.optgroup(t.attr.label(a.$.group),t.ForEach(a.$.options,h=>ut(h,e,l))),break:()=>t.html.hr()})),ct=n=>{const{value:e,onBlur:l,onChange:r,options:a,unselectedLabel:h,equality:o=(m,u)=>m===u,after:d}=n;let p;return S.InputContainer({...n,after:t.Fragment(S.InputIcon({icon:"ph:caret-down-bold",color:"neutral",size:"sm"}),d),input:t.html.select(t.WithElement(m=>{p=m;const u=new MutationObserver(b=>{const{removedNodes:y}=b[0];y.length>0&&(p.selectedIndex=0)});return u.observe(m,{childList:!0}),t.OnDispose(()=>u.disconnect())}),M.CommonInputAttributes(n),t.attr.class("bc-native-select bc-input"),t.Use(_.BeatUII18n,m=>t.html.option(t.attr.hidden("hidden"),t.coalesce(h,m.$.selectOne))),t.ForEach(a,m=>ut(m,o,e)),l!=null?t.on.blur(l):t.Empty,r!=null?t.on.change(it("value",m=>r(m))):t.Empty)},t.on.click(()=>{if(p?.focus(),typeof p?.showPicker=="function")try{p.showPicker()}catch{}}))};function pt(n){const{controller:e,onChange:l,onBlur:r,...a}=n;return ct({...a,value:e.signal,onChange:$.makeOnChangeHandler(e,l),onBlur:$.makeOnBlurHandler(e,r)})}function Ut(n){return $.InputWrapper({...n,content:pt(n)})}function ft(n,e,l){const r=n.length.map(a=>a);return t.Fragment(t.Repeat(r,a=>{const h=n.item(a.index),o=[];return t.Fragment(t.OnDispose(()=>{o.forEach(d=>d())}),e({list:n,item:h,position:a,remove:()=>n.removeAt(a.index),move:d=>{switch(d){case"up":if(a.index===0)return;n.move(a.index,a.index-1);break;case"down":if(a.index===n.length.value-1)return;n.move(a.index,a.index+1);break;case"first":n.move(a.index,0);break;case"last":n.move(a.index,n.length.value-1)}},canMove:d=>{const p=(()=>{switch(d){case"up":return t.signal(a.index>0);case"down":return n.length.map(m=>a.index<m-1)}})();return o.push(()=>p.dispose()),p},cannotMove:d=>{const p=(()=>{switch(d){case"up":return t.signal(a.index===0);case"down":return n.length.map(m=>a.index===m-1)}})();return o.push(()=>p.dispose()),p}}))},l))}const nt={9:{pattern:/^[0-9]$/},A:{pattern:/^[A-Za-z]$/,transform:n=>n.toUpperCase()},"*":{pattern:/^.$/}},Ot=n=>n instanceof RegExp;function dt(n,e,l){if(n==null)return[];const r=l?{...nt,...e}:e??nt,a=(o,d)=>{const p=r[d];p?o.push({type:"pattern",name:d,...p}):o.push({type:"literal",char:d})},h=[];if(typeof n=="string"){for(const o of n)a(h,o);return h}for(const o of n)if(typeof o=="string")if(o.length<=1)a(h,o);else for(const d of o)a(h,d);else Ot(o)?h.push({type:"pattern",pattern:o}):typeof o=="object"&&o&&h.push(o);return h}function $t(n,e){return l=>{switch(n){case"digits":return/[0-9]/.test(l);case"letters":return/[A-Za-z]/.test(l);case"alphanumeric":return/[A-Za-z0-9]/.test(l);case"custom":return e?.(l)??!0;default:return!0}}}function lt(n,e,l,r,a,h){const o={raw:n,previousConformed:e,cursor:a??n.length,completed:!1},d=r.definitions??{},p=typeof l=="function"?l(n,o):l,m=dt(p,d,r.useDefaultDefinitions??!0),u=$t(r.allowMode,r.allow),b=new Set;for(const I of m)I.type==="literal"&&b.add(I.char);if(r.prefix)for(const I of r.prefix)b.add(I);if(r.suffix)for(const I of r.suffix)b.add(I);const y=Array.from(n).filter(I=>u(I)&&!b.has(I));if(y.length===0)return{value:"",cursor:0,completed:!1};const c=[],g=[];let v=0,C=0,i=0,f=-1;for(const I of m){if(I.type==="literal"){c.push(I.char),g.push({kind:"literal",filled:!0});continue}C+=I.optional?0:1;const U=y[v];if(U==null)break;if(I.type==="any"){i++,c.push(I.transform?I.transform(U):U),g.push({kind:"slot",filled:!0}),f=g.length-1,v++;continue}if(I.type==="pattern")if(I.pattern.test(U)){i++;const T=I.transform?I.transform(U):U;c.push(T),g.push({kind:"slot",filled:!0}),f=g.length-1,v++}else{v++;continue}}const w=c.join(""),k=(r.prefix??"")+w+(r.suffix??"");let V=(r.prefix??"").length;if(f>=0){let I=f+1;if((h?.policy??"smart")!=="sticky")for(;I<g.length&&g[I].kind==="literal";)I++;V+=I}const s=r.completion?.mode==="min"?(r.completion.minChars??0)<=i:r.completion?.mode==="custom"?!!r.completion.isComplete?.(k):C>0&&i>=C,x=r.pipe?.(k,{...o,completed:s});let E,D=V;return x===!1?(E=e,D=e.length):typeof x=="string"?(E=x,D=x.length):typeof x=="object"&&x?(E=x.value,D=x.cursor??x.value.length):E=k,{value:E,cursor:D,completed:s}}function Bt(n,e){const l=e?.strategy??"none";return l==="custom"&&e?.unmask?e.unmask(n):l==="strip"?n.replace(/[^A-Za-z0-9]/g,""):n}const Q=n=>{const{value:e,onBlur:l,onChange:r,onInput:a,onAccept:h,onComplete:o,mask:d,definitions:p,useDefaultDefinitions:m,extraLiterals:u,prefix:b,suffix:y,autofix:c,pipe:g,completion:v,unmask:C,allowMode:i,allow:f,placeholder:w,placeholderOptions:k}=n,O=t.computedOf(e,d,p,m,u,b,y,c,v,C,i,w,k)((s,x,E,D,I,U,T,N,W,L,A,j,F)=>x?lt(s??"","",x,{definitions:E??{},useDefaultDefinitions:D??!0,extraLiterals:I??[],autofix:N??"none",completion:W??{mode:"mask"},pipe:g??(B=>B),unmask:L??{strategy:"none"},allowMode:A??"all",allow:f,prefix:U,suffix:T}).value:s??""),V=(s,x)=>{const E=s.value??"",D=t.Value.get(e)??"",I=d!=null?t.Value.get(d):null,U=p!=null?t.Value.get(p):void 0,T=m!=null?t.Value.get(m):void 0,N=u!=null?t.Value.get(u):void 0,W=c!=null?t.Value.get(c):void 0,L=v!=null?t.Value.get(v):void 0,A=C!=null?t.Value.get(C):void 0,j=i!=null?t.Value.get(i):void 0,F=b!=null?t.Value.get(b):void 0,B=y!=null?t.Value.get(y):void 0,{value:z,cursor:Y,completed:tt}=I?lt(E,D,I,{definitions:U??{},useDefaultDefinitions:T??!0,extraLiterals:N??[],autofix:W??"none",completion:L??{mode:"mask"},pipe:g??(vt=>vt),unmask:A??{strategy:"none"},allowMode:j??"all",allow:f,prefix:F,suffix:B},s.selectionStart??E.length,n.cursor?t.Value.get(n.cursor):void 0):{value:E,cursor:E.length,completed:!0};if(z!==E){s.value=z;try{s.setSelectionRange(Y,Y)}catch{}}const et=Bt(z,A);h?.({raw:et,conformed:z,completed:tt,cursor:Y}),x==="input"?a?.(z):(r?.(z),tt&&o?.({raw:et,conformed:z}))};return t.Fragment(S.InputContainer({...n,input:t.input.text(M.CommonInputAttributes(n),t.attr.value(O),t.attr.class("bc-input"),l!=null?t.on.blur(l):t.Empty,t.WithElement(s=>s instanceof HTMLInputElement?t.Fragment(t.on.input(()=>V(s,"input")),t.on.change(()=>V(s,"change")),t.on.keydown(x=>{if(x.key!=="Backspace"||!(n.cursor?t.Value.get(n.cursor)?.backspaceRubberBand??!0:!0))return;const D=s.selectionStart??0,I=s.selectionEnd??D;if(D!==I||D<=0)return;const U=s.value??"",T=d!=null?t.Value.get(d):null;if(!T)return;const N=p!=null?t.Value.get(p):void 0,W=m!=null?t.Value.get(m):!0,L=b!=null?t.Value.get(b):void 0,A=y!=null?t.Value.get(y):void 0,j=dt(typeof T=="function"?T(U,{raw:U,previousConformed:U,cursor:D,completed:!1}):T,N??{},W??!0),F=new Set;for(const B of j)B.type==="literal"&&F.add(B.char);if(L)for(const B of L)F.add(B);if(A)for(const B of A)F.add(B);if(F.has(U[D-1])){let B=D-1;for(;B>=0&&F.has(U[B]);)B--;B>=0&&(x.preventDefault(),x.stopPropagation(),s.value=U.slice(0,B)+U.slice(B+1),V(s,"input"))}})):t.Empty))}))};function K(n,e,l){const r=t.Value.map(n,o=>o!=null),a=t.computedOf(r,e??!1)((o,d)=>!o||d),h=_.defaultMessages.clearValue;return t.html.button(t.attr.type("button"),t.attr.class("bc-input-container__reset"),t.aria.label(h),t.attr.title(h),t.attr.disabled(a),_.Icon({icon:"mdi:close",size:"sm"}),t.on.click(o=>{o.stopPropagation(),l?.(null)}))}const St=n=>{const{value:e,onBlur:l,onChange:r,onInput:a,rows:h}=n;return S.InputContainer({baseContainer:!0,...n,input:t.html.textarea(t.attr.class(t.computedOf(n.size??"md")(o=>S.generateInputContainerInputClasses(!1,o??"md"))),M.CommonInputAttributes(n),t.attr.rows(h??3),t.attr.value(e),t.attr.class("bc-input"),l!=null?t.on.blur(t.emitValue(l)):t.Empty,r!=null?t.on.change(t.emitValue(r)):t.Empty,a!=null?t.on.input(t.emitValue(a)):t.Empty)})},Tt=n=>{const{value:e,step:l,min:r,max:a,onBlur:h,onChange:o,onInput:d,after:p}=n,m=y=>{const c=r!=null?t.Value.get(r):void 0,g=a!=null?t.Value.get(a):void 0;return c!=null&&y<c?c:g!=null&&y>g?g:y},u=l!=null?t.Use(_.BeatUII18n,y=>{const c=t.computedOf(e,r)((i,f)=>f==null?!0:(i??0)>f),g=t.computedOf(e,a)((i,f)=>f==null?!0:(i??0)<f),v=i=>{const f=t.Value.get(e)??0,w=t.Value.get(l),k=i?.shiftKey?10:1,O=f-w*k,V=r!=null?t.Value.get(r):void 0;if(V!=null&&O<V)return;const s=m(O);s!==f&&o&&o(s)},C=i=>{const f=t.Value.get(e)??0,w=t.Value.get(l),k=i?.shiftKey?10:1,O=f+w*k,V=a!=null?t.Value.get(a):void 0;if(V!=null&&O>V)return;const s=m(O);s!==f&&o&&o(s)};return P.Stack(t.attr.class("bc-number-input-steppers"),t.html.button(t.attr.type("button"),t.attr.class("bc-button bc-number-input-steppers-button bc-number-input-steppers-button--increment"),t.attr.disabled(t.computedOf(g,n.disabled??!1)((i,f)=>!i||f)),t.on.click(i=>C(i)),t.aria.label(y.$.incrementValue),_.Icon({icon:"line-md:plus",size:"xs"})),t.html.button(t.attr.type("button"),t.attr.class("bc-button bc-number-input-steppers-button bc-number-input-steppers-button--decrement"),t.attr.disabled(t.computedOf(c,n.disabled??!1)((i,f)=>!i||f)),t.on.click(i=>v(i)),t.aria.label(y.$.decrementValue),_.Icon({icon:"line-md:minus",size:"xs"})))}):null,b=p!=null&&u!=null?t.Fragment(u,p):p??u;return S.InputContainer({...n,input:t.input.number(r!=null?t.attr.min(r):t.Empty,a!=null?t.attr.max(a):t.Empty,M.CommonInputAttributes(n),t.attr.valueAsNumber(e),t.attr.step(l),t.attr.class("bc-input bc-number-input"),h!=null?t.on.blur(t.emitValue(h)):t.Empty,o!=null?t.on.change(t.emitValueAsNumber(o)):t.Empty,d!=null?t.on.input(t.emitValueAsNumber(d)):t.Empty,l!=null?t.on.wheel(y=>{y.preventDefault();const c=t.Value.get(e)??0,g=t.Value.get(l),v=y.shiftKey?10:1,C=y.deltaY<0?g*v:-g*v,i=m(c+C);i!==c&&o&&o(i)}):t.Empty),after:b})},rt=n=>{if(n==null||n==="")return null;const e=Number(n);return Number.isNaN(e)?null:e},Ft=n=>{const{value:e,step:l,min:r,max:a,onBlur:h,onChange:o,onInput:d,after:p}=n,m=c=>{const g=r!=null?t.Value.get(r):void 0,v=a!=null?t.Value.get(a):void 0;return g!=null&&c<g?g:v!=null&&c>v?v:c},u=(()=>{if(l==null)return null;const c=t.computedOf(e,r)((f,w)=>{const k=f??0;return w==null?!0:k>w}),g=t.computedOf(e,a)((f,w)=>{const k=f??0;return w==null?!0:k<w}),v=f=>{const w=t.Value.get(e)??0,k=t.Value.get(l),O=f?.shiftKey?10:1,V=w-k*O,s=r!=null?t.Value.get(r):void 0;if(s!=null&&V<s)return;const x=m(V);x!==w&&o&&o(x)},C=f=>{const w=t.Value.get(e)??0,k=t.Value.get(l),O=f?.shiftKey?10:1,V=w+k*O,s=a!=null?t.Value.get(a):void 0;if(s!=null&&V>s)return;const x=m(V);x!==w&&o&&o(x)};return((f,w)=>P.Stack(t.attr.class("bc-number-input-steppers"),t.html.button(t.attr.type("button"),t.attr.class("bc-button bc-number-input-steppers-button bc-number-input-steppers-button--increment"),t.attr.disabled(t.computedOf(g,n.disabled??!1)((k,O)=>!k||O)),t.on.click(k=>C(k)),t.aria.label(f),_.Icon({icon:"line-md:plus",size:"xs"})),t.html.button(t.attr.type("button"),t.attr.class("bc-button bc-number-input-steppers-button bc-number-input-steppers-button--decrement"),t.attr.disabled(t.computedOf(c,n.disabled??!1)((k,O)=>!k||O)),t.on.click(k=>v(k)),t.aria.label(w),_.Icon({icon:"line-md:minus",size:"xs"}))))(_.defaultMessages.incrementValue,_.defaultMessages.decrementValue)})(),b=K(e,n.disabled,o??d),y=p!=null&&u!=null?t.Fragment(u,b,p):p!=null?t.Fragment(b,p):u!=null?t.Fragment(u,b):b;return S.InputContainer({...n,input:t.input.number(r!=null?t.attr.min(r):t.Empty,a!=null?t.attr.max(a):t.Empty,M.CommonInputAttributes(n),t.attr.value(t.Value.map(e,c=>c==null?"":String(c))),t.attr.step(l),t.attr.class("bc-input bc-number-input"),h!=null?t.on.blur(t.emitValue(h)):t.Empty,o!=null?t.on.change(t.emitValue(c=>{const g=rt(c);o(g)})):t.Empty,d!=null?t.on.input(t.emitValue(c=>{const g=rt(c);d(g)})):t.Empty,l!=null?t.on.wheel(c=>{c.preventDefault();const g=t.Value.get(e)??0,v=t.Value.get(l),C=c.shiftKey?10:1,i=c.deltaY<0?v*C:-v*C,f=m(g+i);f!==g&&o&&o(f)}):t.Empty),after:y})},At=n=>{const e={type:"pattern",pattern:/[0-9A-Fa-f]/,transform:r=>r.toLowerCase()};return Q({...n,mask:[e,e,e,e,e,e,e,e,"-",e,e,e,e,"-",e,e,e,e,"-",e,e,e,e,"-",e,e,e,e,e,e,e,e,e,e,e,e],placeholder:n.placeholder??"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"})};let J=null;async function H(){const n=globalThis;return n.Temporal?n.Temporal:(J||(J=Promise.resolve().then(()=>require("./index.esm-C6lZ02yY.cjs")).then(e=>{const l=e.Temporal;return n.Temporal||(n.Temporal=l),l})),J)}const mt=(n,e)=>e?t.Task(H,{then:n,pending:e.pending,error:e.error}):t.Task(H,n),zt=/^P(\d+([YMWD]|$)){0,4}(T(\d+([HMS]|$)){0,3})?$/i,Mt=/^P(?:(\d+Y)?(\d+M)?(\d+W)?(\d+D)?)(T(\d+H)?(\d+M)?(\d+S)?)?$/i;function ht(n){return{mask:null,allowMode:"custom",allow:e=>/[0-9ptwdhms]/i.test(e),pipe:e=>{const l=e.toUpperCase();return l.length===0?l:!l.startsWith("P")||!zt.test(l)?!1:l},completion:{mode:"custom",isComplete:e=>{const l=e.toUpperCase();if(!Mt.test(l))return!1;try{return n(l),!0}catch{return!1}}}}}const at=(n,e)=>{if(n==null)return null;try{return n.Duration.from(e)}catch{return null}},Lt=n=>{const{value:e,onChange:l,onInput:r,after:a,disabled:h,onBlur:o}=n,d=()=>{const u=K(e,h,l??r);return a!=null?t.Fragment(u,a):u},p=n.placeholder!=null?t.Empty:t.attr.placeholder("P0DT0H0M0S");return mt(u=>Q({...n,value:t.Value.map(e,b=>b?.toString()??""),onChange:l?b=>l(b===""?null:u.Duration.from(b)):void 0,onInput:void 0,...ht(u.Duration.from),placeholder:"P0DT0H0M0S",after:d()}),{pending:()=>{const u=b=>y=>{const g=y.currentTarget?.value??"";if(g===""){b(null);return}const v=globalThis.Temporal,C=at(v,g);if(C!=null){b(C);return}H().then(i=>{const f=at(i,g);f!=null&&b(f)}).catch(()=>{})};return S.InputContainer({...n,input:t.input.text(M.CommonInputAttributes(n),t.attr.value(t.Value.map(e,b=>b?.toString()??"")),t.attr.class("bc-input"),p,o!=null?t.on.blur(()=>o()):t.Empty,l!=null?t.on.change(u(l)):t.Empty,r!=null?t.on.input(u(r)):t.Empty),after:d()})}})},Nt=n=>{const{value:e,onBlur:l,onChange:r,onInput:a}=n;return S.InputContainer({...n,input:t.input.url(M.CommonInputAttributes(n),t.attr.value(e),t.attr.class("bc-input"),l!=null?t.on.blur(t.emitValue(l)):t.Empty,r!=null?t.on.change(t.emitValue(r)):t.Empty,a!=null?t.on.input(t.emitValue(a)):t.Empty)})},bt=n=>{const{controller:e,element:l,separator:r,showMove:a=!0,showRemove:h=!0,showAdd:o=!0,createItem:d,addLabel:p,controlsLayout:m="aside",removeDisabled:u,addDisabled:b}=n,y=t.Value.toSignal(m).map(v=>v==="aside"),c=v=>{const C=t.When(a??!1,()=>t.html.div(t.attr.class("bc-group--align-center"),t.attr.class(y.map(f=>f?"bc-group--direction-column bc-group--gap-1":"bc-group--direction-row bc-group--gap-1")),S.Button({size:"xs",roundedness:"full",variant:"text",onClick:()=>v.move("up"),disabled:v.cannotMove("up")},t.Use(_.BeatUII18n,f=>_.Icon({size:"xs",icon:"line-md:arrow-up",title:f.$.incrementValue}))),S.Button({size:"xs",roundedness:"full",variant:"text",onClick:()=>v.move("down"),disabled:v.cannotMove("down")},t.Use(_.BeatUII18n,f=>_.Icon({size:"xs",icon:"line-md:arrow-down",title:f.$.decrementValue}))))),i=t.When(h,()=>t.Use(_.BeatUII18n,f=>$.CloseButton({size:"xs",label:t.Value.map(f.$.removeItem,w=>w.toLowerCase()),color:"danger",disabled:u,onClick:v.remove})));return f=>t.When(y,()=>R(t.attr.class("bc-group--gap-1 bc-group--align-center"),P.Stack(t.attr.class("bc-stack--grow"),f),P.Stack(t.attr.class("bc-stack--align-center"),t.When(e.signal.map(w=>w.length>1),()=>C),i)),()=>P.Stack(t.attr.class("bc-stack--gap-2"),f,R(t.attr.class("bc-group--gap-2 bc-group--justify-between"),t.When(e.signal.map(w=>w.length>1),()=>C,()=>t.html.div()),i)))},g=t.When(t.computedOf(o,d)((v,C)=>v&&C!=null),()=>R(t.attr.class("bc-group--gap-2 bc-group--align-center bc-group--justify-center"),S.Button({size:"sm",variant:"filled",onClick:()=>e.push(d()),disabled:t.computedOf(e.disabled,b??!1)((v,C)=>v||C)},t.Use(_.BeatUII18n,v=>R(t.attr.class("bc-group--gap-2"),_.Icon({icon:"line-md:plus"}),p??v.$.addLabel)))));return t.Fragment(ft(e,v=>c(v)(l(v)),r),g)},Wt=(n,...e)=>{const{controller:l,element:r,separator:a,showMove:h,showRemove:o,showAdd:d,createItem:p,addLabel:m,controlsLayout:u,removeDisabled:b,addDisabled:y,...c}=n;return $.InputWrapper({...c,content:bt({controller:l,element:r,separator:a,showMove:h,showRemove:o,showAdd:d,createItem:p,addLabel:m,controlsLayout:u,removeDisabled:b,addDisabled:y})},...e)};class Rt extends $.Controller{branches;activeBranch;#e;#t=new Map;constructor(e,l,r,a,h,o,d=$.O){super(e,l,r,a,h,d),this.branches=o;const p=u=>{for(const b of o)if(b.detect(u))return b.key;return o[0]?.key??"unknown"};this.activeBranch=r.map(p,$.O);const m=u=>{if(this.#t.has(u))return this.#t.get(u);const b=o.find(c=>c.key===u);if(!b)throw new Error(`Unknown branch: ${u}`);const y=new $.Controller([...e,u],c=>{this.change(c)},this.signal.map(c=>b.detect(c)?c:b.defaultValue(),d),a.map($.makeMapValidation([u])),{disabled:this.disabled,validationMode:this.parent.validationMode},d);return this.#t.set(u,y),y};this.#e=this.activeBranch.map(u=>m(u),$.O),this.onDispose(()=>{for(const u of this.#t.values())u.dispose();this.#t.clear(),this.activeBranch.dispose(),this.#e.dispose()})}get activeController(){return t.Value.get(this.#e)}getBranchController(e){const l=this.branches.find(a=>a.key===e);if(!l)throw new Error(`Unknown branch: ${e}`);if(this.#t.has(e))return this.#t.get(e);const r=new $.Controller([...this.path,e],a=>{this.change(a)},this.signal.map(a=>l.detect(a)?a:l.defaultValue(),$.O),this.status.map($.makeMapValidation([e])),{disabled:this.disabled,validationMode:this.parent.validationMode},$.O);return this.#t.set(e,r),r}switchToBranch(e,l=!1){const r=this.branches.find(o=>o.key===e);if(!r)throw new Error(`Unknown branch: ${e}`);const a=t.Value.get(this.signal);if(r.detect(a))return!0;if(r.convert){const o=r.convert(a);if(o.ok)return this.change(o.value),!0}if(l&&typeof window=="object"&&typeof window.confirm=="function"&&!window.confirm("Changing type will clear the current value. Continue?"))return!1;const h=r.defaultValue();return this.change(h),!0}get activeBranchDefinition(){const e=t.Value.get(this.activeBranch);return this.branches.find(l=>l.key===e)}}function Pt(n){return n.transform(e=>e??null,e=>e??void 0)}function jt(n){return n.transform(e=>e??"",e=>e===""?void 0:e)}function qt(n){return n.transform(e=>e??void 0,e=>e??null)}function q(n){return n!==null&&typeof n=="object"&&!Array.isArray(n)&&Object.prototype.toString.call(n)==="[object Object]"}function gt(n,e){if(e==null)return ot(n);if(n==null)return e;if(q(n)&&q(e)){const l={...e};for(const r of Object.keys(n))l[r]===void 0?l[r]=ot(n[r]):q(n[r])&&q(l[r])&&(l[r]=gt(n[r],l[r]));return l}return e}function ot(n){return typeof structuredClone=="function"?structuredClone(n):JSON.parse(JSON.stringify(n))}exports.BaseListControl=bt;exports.BaseNativeSelectControl=pt;exports.Expando=st;exports.FilesInput=Et;exports.Group=R;exports.ListControl=Wt;exports.ListInput=ft;exports.MaskInput=Q;exports.NativeSelect=ct;exports.NativeSelectControl=Ut;exports.NullableDurationInput=Lt;exports.NullableNumberInput=Ft;exports.NullableResetAfter=K;exports.NumberInput=Tt;exports.SegmentedInput=wt;exports.TextArea=St;exports.UUIDInput=At;exports.UnionController=Rt;exports.UnstyledDropZone=Z;exports.UrlInput=Nt;exports.WithTemporal=mt;exports.deepMergeDefaults=gt;exports.durationMaskConfig=ht;exports.emitExpando=Dt;exports.emitOptionExpando=it;exports.ensureTemporal=H;exports.transformEmptyStringToUndefined=jt;exports.transformNullToUndefined=Pt;exports.transformUndefinedToNull=qt;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("@tempots/dom"),V=require("./deep-merge-d7sf0xmN.cjs"),y=require("./translations-B4-Zd2LM.cjs"),q=require("./stack-DcZ_u50f.cjs"),A=require("./input-container-C6qEIjcA.cjs"),E=require("./text-input-Ds8e7Z1G.cjs"),w=n=>{const{value:e,onInput:c,onChange:i,...u}=n;return V.FilesInput({...u,maxFiles:1,value:t.Value.map(e,a=>a==null?[]:[a]),onChange:a=>{i?.(a[0])},onInput:a=>{c?.(a[0])}})},F=n=>{try{return BigInt(n)}catch{return null}},z=n=>{const{value:e,step:c,min:i,max:u,onChange:a,onInput:d,after:I}=n,f=m=>{const r=i!=null?t.Value.get(i):void 0,s=u!=null?t.Value.get(u):void 0;return r!=null&&m<r?r:s!=null&&m>s?s:m},g=c!=null?t.Use(y.BeatUII18n,m=>{const r=t.computedOf(e,i)((o,l)=>l==null?!0:(o??0n)>l),s=t.computedOf(e,u)((o,l)=>l==null?!0:(o??0n)<l),T=(o,l)=>{const b=t.Value.get(e)??0n,h=t.Value.get(c),O=l?.shiftKey?10n:1n,C=b+h*O*o,v=i!=null?t.Value.get(i):void 0,S=u!=null?t.Value.get(u):void 0;if(o<0n&&v!=null&&C<v||o>0n&&S!=null&&C>S)return;const D=f(C);D!==b&&a&&a(D)};return q.Stack(t.attr.class("bc-number-input-steppers"),t.html.button(t.attr.type("button"),t.attr.class("bc-button bc-number-input-steppers-button bc-number-input-steppers-button--increment"),t.attr.disabled(t.computedOf(s,n.disabled??!1)((o,l)=>!o||l)),t.on.click(o=>T(1n,o)),t.aria.label(m.$.incrementValue),y.Icon({icon:"line-md:plus",size:"xs"})),t.html.button(t.attr.type("button"),t.attr.class("bc-button bc-number-input-steppers-button bc-number-input-steppers-button--decrement"),t.attr.disabled(t.computedOf(r,n.disabled??!1)((o,l)=>!o||l)),t.on.click(o=>T(-1n,o)),t.aria.label(m.$.decrementValue),y.Icon({icon:"line-md:minus",size:"xs"})))}):null,p=I!=null&&g!=null?t.Fragment(g,I):I??g,B=a?m=>{const r=F(m);r!=null&&a(f(r))}:void 0,k=d?m=>{const r=F(m);r!=null&&d(f(r))}:void 0;return V.MaskInput({...n,value:t.Value.map(e,m=>m.toString()),onChange:B,onInput:k,after:p,mask:null,allowMode:"digits",class:"bc-number-input"})},M=n=>{if(n==null||n==="")return null;try{return BigInt(n)}catch{return null}},U=n=>{const{value:e,step:c,min:i,max:u,onChange:a,onInput:d,after:I}=n,f=r=>{const s=i!=null?t.Value.get(i):void 0,T=u!=null?t.Value.get(u):void 0;return s!=null&&r<s?s:T!=null&&r>T?T:r},g=c!=null?t.Use(y.BeatUII18n,r=>{const s=t.computedOf(e,i)((l,b)=>{const h=l??0n;return b==null?!0:h>b}),T=t.computedOf(e,u)((l,b)=>{const h=l??0n;return b==null?!0:h<b}),o=(l,b)=>{const h=t.Value.get(e)??0n,O=t.Value.get(c),C=b?.shiftKey?10n:1n,v=h+O*C*l,S=i!=null?t.Value.get(i):void 0,D=u!=null?t.Value.get(u):void 0;if(l<0n&&S!=null&&v<S||l>0n&&D!=null&&v>D)return;const x=f(v);x!==h&&a&&a(x)};return q.Stack(t.attr.class("bc-number-input-steppers"),t.attr.type("button"),t.html.button(t.attr.class("bc-button bc-number-input-steppers-button bc-number-input-steppers-button--increment"),t.attr.disabled(t.computedOf(T,n.disabled??!1)((l,b)=>!l||b)),t.on.click(l=>o(1n,l)),t.aria.label(r.$.incrementValue),y.Icon({icon:"line-md:plus",size:"xs"})),t.html.button(t.attr.type("button"),t.attr.class("bc-button bc-number-input-steppers-button bc-number-input-steppers-button--decrement"),t.attr.disabled(t.computedOf(s,n.disabled??!1)((l,b)=>!l||b)),t.on.click(l=>o(-1n,l)),t.aria.label(r.$.decrementValue),y.Icon({icon:"line-md:minus",size:"xs"})))}):null,p=V.NullableResetAfter(e,n.disabled,a??d),B=I!=null&&g!=null?t.Fragment(g,p,I):I!=null?t.Fragment(p,I):g!=null?t.Fragment(g,p):p,k=a?r=>{const s=M(r);a(s===null?null:f(s))}:void 0,m=d?r=>{const s=M(r);d(s===null?null:f(s))}:void 0;return V.MaskInput({...n,value:t.Value.map(e,r=>r==null?"":r.toString()),onChange:k,onInput:m,after:B,mask:null,allowMode:"digits",class:"bc-number-input"})};function P(n){return e=>{const{value:c,onBlur:i,onChange:u}=e;return V.WithTemporal(a=>A.InputContainer({...e,input:t.input[n.inputType](E.CommonInputAttributes(e),t.attr.value(t.Value.map(c,n.valueToString)),t.attr.class("bc-input"),i!=null?t.on.blur(t.emitValue(i)):t.Empty,u!=null?t.on.change(t.emitValue(d=>u(n.parseValue(a,d)))):t.Empty)}))}}function N(n){return e=>{const{value:c,onBlur:i,onChange:u,onInput:a,after:d,disabled:I}=e,f=V.NullableResetAfter(c,I,u??a);return V.WithTemporal(g=>A.InputContainer({...e,input:t.input[n.inputType](E.CommonInputAttributes(e),t.attr.value(t.Value.map(c,p=>p==null?"":n.valueToString(p))),t.attr.class("bc-input"),i!=null?t.on.blur(t.emitValue(i)):t.Empty,u!=null?t.on.change(t.emitValue(p=>u(p===""?null:n.parseValue(g,p)))):t.Empty,a!=null?t.on.input(t.emitValue(p=>a(p===""?null:n.parseValue(g,p)))):t.Empty),after:d!=null?t.Fragment(f,d):f}))}}const $=P({inputType:"date",valueToString:n=>n.toString(),parseValue:(n,e)=>n.PlainDate.from(e)}),W=N({inputType:"date",valueToString:n=>n.toString(),parseValue:(n,e)=>n.PlainDate.from(e)}),J=P({inputType:"time",valueToString:n=>n.toString(),parseValue:(n,e)=>n.PlainTime.from(e)}),K=N({inputType:"time",valueToString:n=>n.toString(),parseValue:(n,e)=>n.PlainTime.from(e)}),R=P({inputType:"datetime-local",valueToString:n=>n.toJSON(),parseValue:(n,e)=>n.PlainDateTime.from(e)}),H=N({inputType:"datetime-local",valueToString:n=>n.toJSON(),parseValue:(n,e)=>n.PlainDateTime.from(e)}),j=n=>{const{value:e,onChange:c}=n;return V.WithTemporal(i=>V.MaskInput({...n,value:t.Value.map(e,u=>u.toString()),onChange:c?u=>c(i.Duration.from(u)):void 0,onInput:void 0,...V.durationMaskConfig(i.Duration.from),placeholder:"P0DT0H0M0S"}))};exports.BigintInput=z;exports.DurationInput=j;exports.FileInput=w;exports.NullableBigintInput=U;exports.NullablePlainDateInput=W;exports.NullablePlainDateTimeInput=H;exports.NullablePlainTimeInput=K;exports.PlainDateInput=$;exports.PlainDateTimeInput=R;exports.PlainTimeInput=J;exports.createNullableTemporalInput=N;exports.createTemporalInput=P;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { Value as i, Use as H, computedOf as S, html as k, attr as o, on as T, aria as F, Fragment as B, input as R, Empty as N, emitValue as x } from "@tempots/dom";
|
|
2
|
-
import { F as X, M as A, N as j, W as $, d as Y } from "./deep-merge-
|
|
3
|
-
import {
|
|
4
|
-
import { S as
|
|
5
|
-
|
|
2
|
+
import { F as X, M as A, N as j, W as $, d as Y } from "./deep-merge-BYm0y62g.js";
|
|
3
|
+
import { B as q, I as M } from "./translations-Cq8bUKJP.js";
|
|
4
|
+
import { S as G } from "./stack-BJgsPJ9A.js";
|
|
5
|
+
import { I as L } from "./input-container-DiCjOzR2.js";
|
|
6
|
+
import { C as Q } from "./text-input-B3VBat1k.js";
|
|
7
|
+
const un = (n) => {
|
|
6
8
|
const {
|
|
7
9
|
value: t,
|
|
8
10
|
onInput: p,
|
|
@@ -26,7 +28,7 @@ const en = (n) => {
|
|
|
26
28
|
} catch {
|
|
27
29
|
return null;
|
|
28
30
|
}
|
|
29
|
-
},
|
|
31
|
+
}, an = (n) => {
|
|
30
32
|
const { value: t, step: p, min: r, max: l, onChange: u, onInput: f, after: I } = n, h = (b) => {
|
|
31
33
|
const a = r != null ? i.get(r) : void 0, c = l != null ? i.get(l) : void 0;
|
|
32
34
|
return a != null && b < a ? a : c != null && b > c ? c : b;
|
|
@@ -43,7 +45,7 @@ const en = (n) => {
|
|
|
43
45
|
const P = h(y);
|
|
44
46
|
P !== d && u && u(P);
|
|
45
47
|
};
|
|
46
|
-
return
|
|
48
|
+
return G(
|
|
47
49
|
o.class("bc-number-input-steppers"),
|
|
48
50
|
k.button(
|
|
49
51
|
o.type("button"),
|
|
@@ -100,7 +102,7 @@ const en = (n) => {
|
|
|
100
102
|
} catch {
|
|
101
103
|
return null;
|
|
102
104
|
}
|
|
103
|
-
},
|
|
105
|
+
}, rn = (n) => {
|
|
104
106
|
const { value: t, step: p, min: r, max: l, onChange: u, onInput: f, after: I } = n, h = (a) => {
|
|
105
107
|
const c = r != null ? i.get(r) : void 0, V = l != null ? i.get(l) : void 0;
|
|
106
108
|
return c != null && a < c ? c : V != null && a > V ? V : a;
|
|
@@ -123,7 +125,7 @@ const en = (n) => {
|
|
|
123
125
|
const U = h(C);
|
|
124
126
|
U !== v && u && u(U);
|
|
125
127
|
};
|
|
126
|
-
return
|
|
128
|
+
return G(
|
|
127
129
|
o.class("bc-number-input-steppers"),
|
|
128
130
|
o.type("button"),
|
|
129
131
|
k.button(
|
|
@@ -182,10 +184,10 @@ function J(n) {
|
|
|
182
184
|
return (t) => {
|
|
183
185
|
const { value: p, onBlur: r, onChange: l } = t;
|
|
184
186
|
return $(
|
|
185
|
-
(u) =>
|
|
187
|
+
(u) => L({
|
|
186
188
|
...t,
|
|
187
189
|
input: R[n.inputType](
|
|
188
|
-
|
|
190
|
+
Q(t),
|
|
189
191
|
o.value(i.map(p, n.valueToString)),
|
|
190
192
|
o.class("bc-input"),
|
|
191
193
|
r != null ? T.blur(x(r)) : N,
|
|
@@ -199,10 +201,10 @@ function K(n) {
|
|
|
199
201
|
return (t) => {
|
|
200
202
|
const { value: p, onBlur: r, onChange: l, onInput: u, after: f, disabled: I } = t, h = j(p, I, l ?? u);
|
|
201
203
|
return $(
|
|
202
|
-
(g) =>
|
|
204
|
+
(g) => L({
|
|
203
205
|
...t,
|
|
204
206
|
input: R[n.inputType](
|
|
205
|
-
|
|
207
|
+
Q(t),
|
|
206
208
|
o.value(
|
|
207
209
|
i.map(p, (m) => m == null ? "" : n.valueToString(m))
|
|
208
210
|
),
|
|
@@ -224,31 +226,31 @@ function K(n) {
|
|
|
224
226
|
);
|
|
225
227
|
};
|
|
226
228
|
}
|
|
227
|
-
const
|
|
229
|
+
const sn = J({
|
|
228
230
|
inputType: "date",
|
|
229
231
|
valueToString: (n) => n.toString(),
|
|
230
232
|
parseValue: (n, t) => n.PlainDate.from(t)
|
|
231
|
-
}),
|
|
233
|
+
}), on = K({
|
|
232
234
|
inputType: "date",
|
|
233
235
|
valueToString: (n) => n.toString(),
|
|
234
236
|
parseValue: (n, t) => n.PlainDate.from(t)
|
|
235
|
-
}),
|
|
237
|
+
}), cn = J({
|
|
236
238
|
inputType: "time",
|
|
237
239
|
valueToString: (n) => n.toString(),
|
|
238
240
|
parseValue: (n, t) => n.PlainTime.from(t)
|
|
239
|
-
}),
|
|
241
|
+
}), pn = K({
|
|
240
242
|
inputType: "time",
|
|
241
243
|
valueToString: (n) => n.toString(),
|
|
242
244
|
parseValue: (n, t) => n.PlainTime.from(t)
|
|
243
|
-
}),
|
|
245
|
+
}), mn = J({
|
|
244
246
|
inputType: "datetime-local",
|
|
245
247
|
valueToString: (n) => n.toJSON(),
|
|
246
248
|
parseValue: (n, t) => n.PlainDateTime.from(t)
|
|
247
|
-
}),
|
|
249
|
+
}), bn = K({
|
|
248
250
|
inputType: "datetime-local",
|
|
249
251
|
valueToString: (n) => n.toJSON(),
|
|
250
252
|
parseValue: (n, t) => n.PlainDateTime.from(t)
|
|
251
|
-
}),
|
|
253
|
+
}), dn = (n) => {
|
|
252
254
|
const { value: t, onChange: p } = n;
|
|
253
255
|
return $(
|
|
254
256
|
(r) => A({
|
|
@@ -262,16 +264,16 @@ const an = J({
|
|
|
262
264
|
);
|
|
263
265
|
};
|
|
264
266
|
export {
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
267
|
+
an as B,
|
|
268
|
+
dn as D,
|
|
269
|
+
un as F,
|
|
270
|
+
rn as N,
|
|
271
|
+
cn as P,
|
|
272
|
+
pn as a,
|
|
273
|
+
bn as b,
|
|
274
|
+
mn as c,
|
|
275
|
+
on as d,
|
|
276
|
+
sn as e,
|
|
275
277
|
J as f,
|
|
276
278
|
K as g
|
|
277
279
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const o=require("@tempots/dom"),e=require("./toolbar-x0_8lmKu.cjs"),d=require("./translations-B4-Zd2LM.cjs");function b(t){const{active:r,display:n,onClick:a,disabled:l,label:u,icon:c,size:i}=t;return o.When(n,()=>e.ToolbarButton({onClick:a,disabled:l,variant:r.map(s=>s?"filled":"light"),size:i},o.attr.title(u),d.Icon({icon:c,size:i})))}function p({display:t},...r){return o.When(o.computedOf(...t)((...n)=>n.some(Boolean)),()=>e.ToolbarGroup(...r))}exports.EditorToolbarButton=b;exports.EditorToolbarGroup=p;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { When as i, attr as p, computedOf as u } from "@tempots/dom";
|
|
2
|
+
import { T as c, a as d } from "./toolbar-D994_E_s.js";
|
|
3
|
+
import { I as f } from "./translations-Cq8bUKJP.js";
|
|
4
|
+
function E(o) {
|
|
5
|
+
const { active: t, display: r, onClick: n, disabled: l, label: e, icon: s, size: a } = o;
|
|
6
|
+
return i(
|
|
7
|
+
r,
|
|
8
|
+
() => c(
|
|
9
|
+
{
|
|
10
|
+
onClick: n,
|
|
11
|
+
disabled: l,
|
|
12
|
+
variant: t.map((m) => m ? "filled" : "light"),
|
|
13
|
+
size: a
|
|
14
|
+
},
|
|
15
|
+
p.title(e),
|
|
16
|
+
f({ icon: s, size: a })
|
|
17
|
+
)
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
function h({
|
|
21
|
+
display: o
|
|
22
|
+
}, ...t) {
|
|
23
|
+
return i(
|
|
24
|
+
u(...o)((...r) => r.some(Boolean)),
|
|
25
|
+
() => d(...t)
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
export {
|
|
29
|
+
E,
|
|
30
|
+
h as a
|
|
31
|
+
};
|
|
@@ -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-B4-Zd2LM.cjs"),t={loadingExtended:"Cargando, por favor espere",loadingShort:"Cargando...",locale:"Idioma",iconDescription:"Icono",loadingIcon:"Icono de carga",failedToLoadIcon:"Error al cargar el icono",editLabel:"Editar",selectOne:"Seleccionar uno",selectNone:"Ninguno",selectMany:"Seleccionar varios",noResults:"Sin resultados",passwordPlaceholderText:"Contraseña Secreta",togglePasswordVisibility:"Alternar visibilidad de contraseña",toggleMenu:"Alternar menú",toggleAside:"Alternar panel lateral",mainNavigation:"Navegación principal",sidebar:"Barra lateral",closeDrawer:"Cerrar cajón",closeModal:"Cerrar modal",confirm:"Confirmar",cancel:"Cancelar",addLabel:"Agregar",removeItem:"Eliminar elemento",currentLocale:"Español",ar:"Árabe",de:"Alemán",en:"Inglés",es:"Español",fr:"Francés",hi:"Hindi",it:"Italiano",ja:"Japonés",ko:"Coreano",nl:"Neerlandés",pl:"Polaco",pt:"Portugués",ru:"Ruso",tr:"Turco",vi:"Vietnamita",zh:"Chino",he:"Hebreo",fa:"Persa",ur:"Urdu",emailPlaceholderText:"Correo electrónico",incrementValue:"Incrementar valor",decrementValue:"Decrementar valor",dropZoneInstructions:a=>a?"Haz clic para elegir o arrastra archivos aquí, o presiona Enter o Espacio para abrir el selector de archivos":"Arrastra archivos aquí",fileSizeUnits:["Bytes","KB","MB","GB","TB"],removeFile:"Eliminar archivo",clearAllFiles:"Borrar todos los archivos",clearValue:"Borrar valor",unknownType:"Tipo desconocido",filesInputInstructions:(a,e,o)=>{let n=a==null||a>1?"Haz clic para elegir o arrastra archivos aquí":"Haz clic para elegir o arrastra un archivo aquí";if(a||e){const r=[];if(a!=null&&a>1&&r.push(`hasta ${a} archivos`),e&&o){const i=l.formatFileSize(e,{units:o});r.push(`máx ${i} cada uno`)}r.length>0&&(n+=` (${r.join(", ")})`)}return n},prosemirror:{bold:"Negrita",italic:"Cursiva",code:"Código en línea",link:"Insertar enlace",removeLink:"Eliminar enlace",heading:a=>`Encabezado ${a}`,bulletList:"Lista con viñetas",orderedList:"Lista numerada",blockquote:"Cita",codeBlock:"Bloque de código",horizontalRule:"Línea horizontal",linkUrlPlaceholder:"https://ejemplo.com"},pdfPageViewer:{loading:"Cargando PDF...",loadFailed:"Error al cargar el PDF",invalidPdf:"Archivo PDF inválido",pageOutOfRange:(a,e)=>`La página ${a} está fuera de rango (1-${e})`,renderFailed:"Error al renderizar la página del PDF"}};exports.default=t;
|
|
@@ -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-B4-Zd2LM.cjs"),a={loadingExtended:"در حال بارگذاری، لطفاً صبر کنید",loadingShort:"در حال بارگذاری...",locale:"زبان",iconDescription:"نماد",loadingIcon:"نماد بارگذاری",failedToLoadIcon:"بارگذاری نماد ناموفق بود",editLabel:"ویرایش",selectOne:"یکی را انتخاب کنید",selectNone:"هیچکدام",selectMany:"چند مورد را انتخاب کنید",noResults:"بدون نتیجه",passwordPlaceholderText:"رمز عبور محرمانه",togglePasswordVisibility:"نمایش/مخفی کردن رمز عبور",toggleMenu:"نمایش/مخفی کردن منو",toggleAside:"نمایش/مخفی کردن پانل کناری",mainNavigation:"ناوبری اصلی",sidebar:"نوار کناری",closeDrawer:"بستن کشو",closeModal:"بستن پنجره",confirm:"تأیید",cancel:"لغو",addLabel:"افزودن",removeItem:"حذف مورد",currentLocale:"فارسی",ar:"عربی",de:"آلمانی",en:"انگلیسی",es:"اسپانیایی",fr:"فرانسوی",he:"عبری",hi:"هندی",it:"ایتالیایی",ja:"ژاپنی",ko:"کرهای",nl:"هلندی",pl:"لهستانی",pt:"پرتغالی",ru:"روسی",tr:"ترکی",vi:"ویتنامی",zh:"چینی",fa:"فارسی",ur:"اردو",emailPlaceholderText:"ایمیل خود را وارد کنید",incrementValue:"افزایش مقدار",decrementValue:"کاهش مقدار",dropZoneInstructions:e=>e?"برای انتخاب کلیک کنید یا فایلها را بکشید، یا Enter یا Space را فشار دهید تا انتخابگر فایل باز شود":"فایلها را بکشید",fileSizeUnits:["بایت","کیلوبایت","مگابایت","گیگابایت","ترابایت"],removeFile:"حذف فایل",clearAllFiles:"حذف همه فایلها",clearValue:"حذف مقدار",unknownType:"نوع ناشناخته",filesInputInstructions:(e,o,t)=>{let n=e==null||e>1?"برای انتخاب کلیک کنید یا فایلها را بکشید":"برای انتخاب کلیک کنید یا فایل را بکشید";if(e||o){const l=[];if(e!=null&&e>1&&l.push(`تا ${e} فایل`),o&&t){const i=r.formatFileSize(o,{units:t});l.push(`حداکثر ${i} هر کدام`)}l.length>0&&(n+=` (${l.join("، ")})`)}return n},prosemirror:{bold:"Bold",italic:"Italic",code:"Code",link:"Link",removeLink:"Remove Link",heading:e=>`Heading ${e}`,bulletList:"Bullet List",orderedList:"Ordered List",blockquote:"Blockquote",codeBlock:"Code Block",horizontalRule:"Horizontal Rule",linkUrlPlaceholder:"https://example.com"},pdfPageViewer:{loading:"Loading PDF...",loadFailed:"Failed to load PDF",invalidPdf:"Invalid PDF file",pageOutOfRange:(e,o)=>`Page ${e} is out of range (1-${o})`,renderFailed:"Failed to render PDF page"}};exports.default=a;
|
|
@@ -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-B4-Zd2LM.cjs"),t={loadingExtended:"Chargement, veuillez patienter",loadingShort:"Chargement...",locale:"Langue",iconDescription:"Icône",loadingIcon:"Icône de chargement",failedToLoadIcon:"Échec du chargement de l'icône",editLabel:"Modifier",selectOne:"Sélectionner un",selectNone:"Aucun",selectMany:"Sélectionner plusieurs",noResults:"Aucun résultat",passwordPlaceholderText:"Mot de passe secret",togglePasswordVisibility:"Basculer la visibilité du mot de passe",toggleMenu:"Basculer le menu",toggleAside:"Basculer le panneau latéral",mainNavigation:"Navigation principale",sidebar:"Barre latérale",closeDrawer:"Fermer le tiroir",closeModal:"Fermer la modale",confirm:"Confirmer",cancel:"Annuler",addLabel:"Ajouter",removeItem:"Supprimer l’élément",currentLocale:"Français",ar:"Arabe",de:"Allemand",en:"Anglais",es:"Espagnol",fr:"Français",hi:"Hindi",it:"Italien",ja:"Japonais",ko:"Coréen",nl:"Néerlandais",pl:"Polonais",pt:"Portuguais",ru:"Russe",tr:"Turc",vi:"Vietnamien",zh:"Chinois",he:"Hébreu",fa:"Persan",ur:"Ourdou",emailPlaceholderText:"Entrez votre e-mail",incrementValue:"Incrémenter la valeur",decrementValue:"Décrémenter la valeur",dropZoneInstructions:e=>e?"Cliquez pour choisir ou glissez des fichiers ici, ou appuyez sur Entrée ou Espace pour ouvrir le sélecteur de fichiers":"Glissez des fichiers ici",fileSizeUnits:["Octets","Ko","Mo","Go","To"],removeFile:"Supprimer le fichier",clearAllFiles:"Effacer tous les fichiers",clearValue:"Réinitialiser",unknownType:"Type inconnu",filesInputInstructions:(e,i,n)=>{let l=e==null||e>1?"Cliquez pour choisir ou glissez des fichiers ici":"Cliquez pour choisir ou glissez un fichier ici";if(e||i){const r=[];if(e!=null&&e>1&&r.push(`jusqu'à ${e} fichiers`),i&&n){const o=a.formatFileSize(i,{units:n});r.push(`max ${o} chacun`)}r.length>0&&(l+=` (${r.join(", ")})`)}return l},prosemirror:{bold:"Gras",italic:"Italique",code:"Code en ligne",link:"Insérer un lien",removeLink:"Supprimer le lien",heading:e=>`Titre ${e}`,bulletList:"Liste à puces",orderedList:"Liste numérotée",blockquote:"Citation",codeBlock:"Bloc de code",horizontalRule:"Ligne horizontale",linkUrlPlaceholder:"https://exemple.com"},pdfPageViewer:{loading:"Chargement du PDF...",loadFailed:"Échec du chargement du PDF",invalidPdf:"Fichier PDF invalide",pageOutOfRange:(e,i)=>`La page ${e} est hors limites (1-${i})`,renderFailed:"Échec du rendu de la page PDF"}};exports.default=t;
|
|
@@ -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-B4-Zd2LM.cjs"),a={loadingExtended:"טוען, אנא המתן",loadingShort:"טוען...",locale:"שפה",iconDescription:"סמל",loadingIcon:"סמל טעינה",failedToLoadIcon:"נכשל בטעינת הסמל",editLabel:"עריכה",selectOne:"בחר אחד",selectNone:"ללא",selectMany:"בחר מספר",noResults:"אין תוצאות",passwordPlaceholderText:"סיסמה סודית",togglePasswordVisibility:"הצג/הסתר סיסמה",toggleMenu:"הצג/הסתר תפריט",toggleAside:"הצג/הסתר פאנל צדדי",mainNavigation:"ניווט ראשי",sidebar:"סרגל צדדי",closeDrawer:"סגור מגירה",closeModal:"סגור חלון קופץ",confirm:"אישור",cancel:"ביטול",addLabel:"הוסף",removeItem:"הסר פריט",currentLocale:"עברית",ar:"ערבית",de:"גרמנית",en:"אנגלית",es:"ספרדית",fr:"צרפתית",he:"עברית",hi:"הינדי",it:"איטלקית",ja:"יפנית",ko:"קוריאנית",nl:"הולנדית",pl:"פולנית",pt:"פורטוגזית",ru:"רוסית",tr:"טורקית",vi:"וייטנאמית",zh:"סינית",fa:"פרסית",ur:"אורדו",emailPlaceholderText:'הכנס את כתובת הדוא"ל',incrementValue:"הגדלת ערך",decrementValue:"הקטנת ערך",dropZoneInstructions:e=>e?"לחץ לבחירה או גרור קבצים כאן, או לחץ Enter או רווח לפתיחת בורר הקבצים":"גרור קבצים כאן",fileSizeUnits:["בתים","ק״ב","מ״ב","ג״ב","ט״ב"],removeFile:"הסר קובץ",clearAllFiles:"נקה את כל הקבצים",clearValue:"נקה ערך",unknownType:"סוג לא ידוע",filesInputInstructions:(e,o,t)=>{let n=e==null||e>1?"לחץ לבחירה או גרור קבצים כאן":"לחץ לבחירה או גרור קובץ כאן";if(e||o){const l=[];if(e!=null&&e>1&&l.push(`עד ${e} קבצים`),o&&t){const i=r.formatFileSize(o,{units:t});l.push(`מקסימום ${i} כל אחד`)}l.length>0&&(n+=` (${l.join(", ")})`)}return n},prosemirror:{bold:"Bold",italic:"Italic",code:"Code",link:"Link",removeLink:"Remove Link",heading:e=>`Heading ${e}`,bulletList:"Bullet List",orderedList:"Ordered List",blockquote:"Blockquote",codeBlock:"Code Block",horizontalRule:"Horizontal Rule",linkUrlPlaceholder:"https://example.com"},pdfPageViewer:{loading:"Loading PDF...",loadFailed:"Failed to load PDF",invalidPdf:"Invalid PDF file",pageOutOfRange:(e,o)=>`Page ${e} is out of range (1-${o})`,renderFailed:"Failed to render PDF page"}};exports.default=a;
|
|
@@ -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-B4-Zd2LM.cjs"),a={loadingExtended:"लोड हो रहा है, कृपया प्रतीक्षा करें",loadingShort:"लोड हो रहा है...",locale:"स्थानीय",iconDescription:"आइकन",loadingIcon:"लोडिंग आइकन",failedToLoadIcon:"आइकन लोड करने में विफल",editLabel:"संपादित करें",selectOne:"एक चुनें",selectNone:"कोई नहीं",selectMany:"बहुत चुनें",noResults:"कोई परिणाम नहीं",passwordPlaceholderText:"गुप्त पासवर्ड",togglePasswordVisibility:"पासवर्ड दृश्यता टॉगल करें",toggleMenu:"मेनू टॉगल करें",toggleAside:"साइड पैनल टॉगल करें",mainNavigation:"मुख्य नेवीगेशन",sidebar:"साइडबार",closeDrawer:"ड्रॉअर बंद करें",closeModal:"मॉडल बंद करें",confirm:"पुष्टि करें",cancel:"रद्द करें",addLabel:"जोड़ें",removeItem:"आइटम हटाएं",currentLocale:"हिंदी",ar:"अरबी",de:"जर्मन",en:"अंग्रेज़ी",es:"स्पेनिश",fr:"फ्रेंच",hi:"हिन्दी",it:"इतालवी",ja:"जापानी",ko:"कोरियाई",nl:"डच",pl:"पोलिश",pt:"पोर्तुगीज",ru:"रूसी",tr:"तुर्की",vi:"वियतनामी",zh:"चीनी",he:"हिब्रू",fa:"फारसी",ur:"उर्दू",emailPlaceholderText:"अपना ईमेल दर्ज करें",incrementValue:"वृद्धि मान",decrementValue:"घटाना मान",dropZoneInstructions:e=>e?"चुनने के लिए क्लिक करें या फ़ाइलें यहाँ खींचें, या फाइल चयनकर्ता खोलने के लिए Enter या Space दबाएं":"फ़ाइलें यहाँ खींचें",fileSizeUnits:["बाइट्स","KB","MB","GB","TB"],removeFile:"फ़ाइल हटाएं",clearAllFiles:"सभी फ़ाइलें हटाएं",clearValue:"वृद्धि मान",unknownType:"अज्ञात प्रकार",filesInputInstructions:(e,o,t)=>{let n=e==null||e>1?"चुनने के लिए क्लिक करें या फ़ाइलें यहाँ खींचें":"चुनने के लिए क्लिक करें या फ़ाइल यहाँ खींचें";if(e||o){const l=[];if(e!=null&&e>1&&l.push(`अधिकतम ${e} फ़ाइलें`),o&&t){const i=r.formatFileSize(o,{units:t});l.push(`प्रत्येक अधिकतम ${i}`)}l.length>0&&(n+=` (${l.join(", ")})`)}return n},prosemirror:{bold:"Bold",italic:"Italic",code:"Code",link:"Link",removeLink:"Remove Link",heading:e=>`Heading ${e}`,bulletList:"Bullet List",orderedList:"Ordered List",blockquote:"Blockquote",codeBlock:"Code Block",horizontalRule:"Horizontal Rule",linkUrlPlaceholder:"https://example.com"},pdfPageViewer:{loading:"Loading PDF...",loadFailed:"Failed to load PDF",invalidPdf:"Invalid PDF file",pageOutOfRange:(e,o)=>`Page ${e} is out of range (1-${o})`,renderFailed:"Failed to render PDF page"}};exports.default=a;
|