@tempots/beatui 0.78.2 → 0.80.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/{ar-D__6gR_P.js → ar-Bo_FZZi7.js} +2 -1
- package/dist/ar-DwHLVgKj.cjs +1 -0
- package/dist/auth/index.cjs.js +1 -1
- package/dist/auth/index.es.js +69 -69
- package/dist/beatui.css +127 -7
- package/dist/beatui.tailwind.css +127 -7
- package/dist/{de-DmKpCTuQ.js → de-CCqwOkqN.js} +3 -2
- package/dist/de-zI5mdV4M.cjs +1 -0
- package/dist/{deep-merge-Bsqkvp9-.js → deep-merge-1uN6CG6K.js} +2 -2
- package/dist/{deep-merge-cQgRrtGF.cjs → deep-merge-CBIkQM4E.cjs} +1 -1
- package/dist/{duration-input-DcZf0Dyd.js → duration-input-C9kpsw-t.js} +3 -3
- package/dist/{duration-input-Dt6riwzu.cjs → duration-input-DHWhQJnn.cjs} +1 -1
- package/dist/{es-BDZ5UJLS.js → es-BF02UrPL.js} +2 -1
- package/dist/es-Cw90CAbu.cjs +1 -0
- package/dist/fa-B4lssnzR.cjs +1 -0
- package/dist/{fa-CuPgy1cj.js → fa-DPQV4YB8.js} +2 -1
- package/dist/fr-1Kd6z1F-.cjs +1 -0
- package/dist/{fr-DmyMO3lB.js → fr-dmxPhwkD.js} +4 -3
- package/dist/{he-C3RHfs6R.js → he-BtQbrVt3.js} +2 -1
- package/dist/he-CJ3XnuPm.cjs +1 -0
- package/dist/hi-BpfnFKHp.cjs +1 -0
- package/dist/{hi-YnvrXBht.js → hi-D_Le4Yka.js} +10 -9
- package/dist/{index-mPVib4v9.js → index-CGEzILlC.js} +1 -1
- package/dist/{index-CdVc1Y2V.cjs → index-CfaWytS2.cjs} +1 -1
- package/dist/{index-BGwNJNop.cjs → index-K6u33-GC.cjs} +2 -2
- package/dist/{index-Dbu1ZPpw.js → index-YtW7SCWB.js} +3 -3
- package/dist/index.cjs.js +2 -2
- package/dist/index.es.js +15 -15
- package/dist/it-COCZ9NyB.cjs +1 -0
- package/dist/{it-CWLwlDXe.js → it-DyHjSuHN.js} +2 -1
- package/dist/ja--NdggLU9.cjs +1 -0
- package/dist/{ja-DthjgDtM.js → ja-X43lABza.js} +2 -1
- package/dist/json-schema/index.cjs.js +7 -7
- package/dist/json-schema/index.es.js +3403 -3380
- package/dist/json-structure/index.cjs.js +1 -1
- package/dist/json-structure/index.es.js +4 -4
- package/dist/{ko-joDK7ONT.js → ko-B9g9iw99.js} +2 -1
- package/dist/ko-BUvb0ggK.cjs +1 -0
- package/dist/{modal-oWbT46Rc.js → modal-CSHIhHvI.js} +2 -2
- package/dist/{modal-D3NQ6ZgO.cjs → modal-cc8Ehngz.cjs} +1 -1
- package/dist/monaco/index.cjs.js +2 -2
- package/dist/monaco/index.es.js +6 -8
- package/dist/nl-0S25Gsld.cjs +1 -0
- package/dist/{nl-DmoWeXUt.js → nl-Ew5jnSsT.js} +2 -1
- package/dist/{notice-C0Brmeyi.js → notice-C-964yaY.js} +2 -2
- package/dist/{notice-DYBLXglS.cjs → notice-C_BWqu2K.cjs} +1 -1
- package/dist/pl-B3k-K3S4.cjs +1 -0
- package/dist/{pl-8hl5VXnm.js → pl-C9f6UBSe.js} +2 -1
- package/dist/prosemirror/index.cjs.js +1 -1
- package/dist/prosemirror/index.es.js +1 -1
- package/dist/pt-CKoikRO5.cjs +1 -0
- package/dist/{pt-BfYK9Rl3.js → pt-DYtAvbrw.js} +2 -1
- package/dist/ru-COb7RSDt.cjs +1 -0
- package/dist/{ru-eA_dNkJz.js → ru-ZexN-b8V.js} +2 -1
- package/dist/{toolbar-DoRPrs-s.cjs → toolbar-D5FcnRju.cjs} +1 -1
- package/dist/{toolbar-CdY5huSG.js → toolbar-DNpBIoJo.js} +1 -1
- package/dist/{tr-CdqbnopM.js → tr-BDvn05-H.js} +4 -3
- package/dist/tr-tO_EH-Y2.cjs +1 -0
- package/dist/{translations-BEMKy6-W.js → translations-0tLX4x7M.js} +26 -25
- package/dist/{translations-CVfr2JXG.js → translations-CfWR4loD.js} +1 -1
- package/dist/{translations-D_Vu2mbd.cjs → translations-DwGC_94w.cjs} +1 -1
- package/dist/translations-WPN3ibDg.cjs +1 -0
- package/dist/types/beatui-i18n/default.d.ts +1 -0
- package/dist/types/beatui-i18n/locales/en.d.ts +1 -0
- package/dist/types/beatui-i18n/translations.d.ts +1 -0
- package/dist/ur-BbnYJ3HS.cjs +1 -0
- package/dist/{ur-D9sr_I1M.js → ur-DbEqQgS6.js} +2 -1
- package/dist/{use-form-pSErMD6z.cjs → use-form-D4JFOcjo.cjs} +1 -1
- package/dist/{use-form-DMiCxK26.js → use-form-D4rqJkvG.js} +1 -1
- package/dist/vi-ByBwvGQY.cjs +1 -0
- package/dist/{vi-0f97dtZb.js → vi-CpZUeuSj.js} +2 -1
- package/dist/{widget-customization-nxbAoCx5.js → widget-customization-BSjJz3_Y.js} +4 -4
- package/dist/{widget-customization-WNWmH_gX.cjs → widget-customization-CrFVrt4V.cjs} +1 -1
- package/dist/{zh-C7HcUKhE.js → zh-DJyhKO0I.js} +2 -1
- package/dist/zh-DnxK0ieB.cjs +1 -0
- package/package.json +6 -6
- package/dist/ar-DNoFBb9J.cjs +0 -1
- package/dist/de-AwUkK0rS.cjs +0 -1
- package/dist/es-D-d2AIlX.cjs +0 -1
- package/dist/fa-D7rRdG8c.cjs +0 -1
- package/dist/fr-0er_BWMt.cjs +0 -1
- package/dist/he-R2veUyP3.cjs +0 -1
- package/dist/hi-C9UP7NGG.cjs +0 -1
- package/dist/it-Cxt1_D4h.cjs +0 -1
- package/dist/ja-CpDovHPb.cjs +0 -1
- package/dist/ko-M_MCTNuN.cjs +0 -1
- package/dist/nl-DGhIOGxN.cjs +0 -1
- package/dist/pl-DocnXix_.cjs +0 -1
- package/dist/pt-DO2Zcuqv.cjs +0 -1
- package/dist/ru-D9KCOBqN.cjs +0 -1
- package/dist/tr-BBmQvRSa.cjs +0 -1
- package/dist/translations-eUtMHN9s.cjs +0 -1
- package/dist/ur-u5qjZsKM.cjs +0 -1
- package/dist/vi-_w5RE8el.cjs +0 -1
- package/dist/zh-6cQcHbf6.cjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as r } from "./translations-
|
|
1
|
+
import { f as r } from "./translations-0tLX4x7M.js";
|
|
2
2
|
const s = {
|
|
3
3
|
loadingExtended: "Ładowanie, proszę czekać",
|
|
4
4
|
loadingShort: "Ładowanie...",
|
|
@@ -8,6 +8,7 @@ const s = {
|
|
|
8
8
|
failedToLoadIcon: "Nie udało się załadować ikony",
|
|
9
9
|
editLabel: "Edytuj",
|
|
10
10
|
selectOne: "Wybierz jeden",
|
|
11
|
+
selectNone: "Brak",
|
|
11
12
|
selectMany: "Wybierz wiele",
|
|
12
13
|
noResults: "Brak wyników",
|
|
13
14
|
passwordPlaceholderText: "Tajne hasło",
|
|
@@ -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-K6u33-GC.cjs");exports.DEFAULT_FEATURES=r.DEFAULT_FEATURES;exports.ProseMirrorMarkdownInput=r.ProseMirrorMarkdownInput;exports.ProseMirrorToolbar=r.ProseMirrorToolbar;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./translations-WPN3ibDg.cjs"),t={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",selectNone:"Nenhum",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,a,o)=>{let i=e==null||e>1?"Clique para escolher ou arraste arquivos aqui":"Clique para escolher ou arraste um arquivo aqui";if(e||a){const r=[];if(e!=null&&e>1&&r.push(`até ${e} arquivos`),a&&o){const l=n.formatFileSize(a,{units:o});r.push(`máx ${l} cada`)}r.length>0&&(i+=` (${r.join(", ")})`)}return i},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:"Carregando PDF...",loadFailed:"Falha ao carregar PDF",invalidPdf:"Arquivo PDF inválido",pageOutOfRange:(e,a)=>`A página ${e} está fora do intervalo (1-${a})`,renderFailed:"Falha ao renderizar página do PDF"}};exports.default=t;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as n } from "./translations-
|
|
1
|
+
import { f as n } from "./translations-0tLX4x7M.js";
|
|
2
2
|
const s = {
|
|
3
3
|
loadingExtended: "Carregando, por favor aguarde",
|
|
4
4
|
loadingShort: "Carregando...",
|
|
@@ -8,6 +8,7 @@ const s = {
|
|
|
8
8
|
failedToLoadIcon: "Falha ao carregar ícone",
|
|
9
9
|
editLabel: "Editar",
|
|
10
10
|
selectOne: "Selecionar um",
|
|
11
|
+
selectNone: "Nenhum",
|
|
11
12
|
selectMany: "Selecionar vários",
|
|
12
13
|
noResults: "Sem resultados",
|
|
13
14
|
passwordPlaceholderText: "Senha Secreta",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./translations-WPN3ibDg.cjs"),r={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 или Пробел, чтобы открыть выбор файлов":"Перетащите файлы сюда",fileSizeUnits:["Байт","КБ","МБ","ГБ","ТБ"],removeFile:"Удалить файл",clearAllFiles:"Очистить все файлы",clearValue:"Очистить значение",unknownType:"Неизвестный тип",filesInputInstructions:(e,o,n)=>{let i=e==null||e>1?"Нажмите для выбора или перетащите файлы сюда":"Нажмите для выбора или перетащите файл сюда";if(e||o){const l=[];if(e!=null&&e>1){let t="файлов";e<=4&&(t="файла"),l.push(`до ${e} ${t}`)}if(o&&n){const t=a.formatFileSize(o,{units:n});l.push(`макс ${t} каждый`)}l.length>0&&(i+=` (${l.join(", ")})`)}return i},prosemirror:{bold:"Bold",italic:"Italic",code:"Code",link:"Link",removeLink:"Remove Link",heading:e=>`Heading ${e}`,bulletList:"Bullet List",orderedList:"Ordered List",blockquote:"Blockquote",codeBlock:"Code Block",horizontalRule:"Horizontal Rule",linkUrlPlaceholder:"https://example.com"},pdfPageViewer:{loading:"Загрузка PDF...",loadFailed:"Не удалось загрузить PDF",invalidPdf:"Недействительный файл PDF",pageOutOfRange:(e,o)=>`Страница ${e} вне диапазона (1-${o})`,renderFailed:"Не удалось отобразить страницу PDF"}};exports.default=r;exports.ru=r;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as r } from "./translations-
|
|
1
|
+
import { f as r } from "./translations-0tLX4x7M.js";
|
|
2
2
|
const d = {
|
|
3
3
|
loadingExtended: "Загрузка, пожалуйста подождите",
|
|
4
4
|
loadingShort: "Загрузка...",
|
|
@@ -8,6 +8,7 @@ const d = {
|
|
|
8
8
|
failedToLoadIcon: "Не удалось загрузить иконку",
|
|
9
9
|
editLabel: "Редактировать",
|
|
10
10
|
selectOne: "Выберите один",
|
|
11
|
+
selectNone: "Ничего",
|
|
11
12
|
selectMany: "Выберите несколько",
|
|
12
13
|
noResults: "Нет результатов",
|
|
13
14
|
passwordPlaceholderText: "Секретный пароль",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("@tempots/dom"),h=require("./translations-
|
|
1
|
+
"use strict";const e=require("@tempots/dom"),h=require("./translations-WPN3ibDg.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-0tLX4x7M.js";
|
|
3
3
|
const l = [
|
|
4
4
|
"button:not([disabled])",
|
|
5
5
|
'[role="button"]:not([aria-disabled="true"])',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as o } from "./translations-
|
|
2
|
-
const
|
|
1
|
+
import { f as o } from "./translations-0tLX4x7M.js";
|
|
2
|
+
const s = {
|
|
3
3
|
loadingExtended: "Yükleniyor, lütfen bekleyin",
|
|
4
4
|
loadingShort: "Yükleniyor...",
|
|
5
5
|
locale: "Yerel",
|
|
@@ -8,6 +8,7 @@ const d = {
|
|
|
8
8
|
failedToLoadIcon: "Simge yüklenemedi",
|
|
9
9
|
editLabel: "Düzenle",
|
|
10
10
|
selectOne: "Birini seç",
|
|
11
|
+
selectNone: "Hiçbiri",
|
|
11
12
|
selectMany: "Birden fazlasını seç",
|
|
12
13
|
noResults: "Sonuç yok",
|
|
13
14
|
passwordPlaceholderText: "Gizli Şifre",
|
|
@@ -96,5 +97,5 @@ const d = {
|
|
|
96
97
|
}
|
|
97
98
|
};
|
|
98
99
|
export {
|
|
99
|
-
|
|
100
|
+
s as default
|
|
100
101
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./translations-WPN3ibDg.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ç",selectNone:"Hiçbiri",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,a,n)=>{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||a){const i=[];if(e!=null&&e>1&&i.push(`en fazla ${e} dosya`),a&&n){const r=o.formatFileSize(a,{units:n});i.push(`her biri en fazla ${r}`)}i.length>0&&(l+=` (${i.join(", ")})`)}return l},prosemirror:{bold:"Bold",italic:"Italic",code:"Code",link:"Link",removeLink:"Remove Link",heading:e=>`Heading ${e}`,bulletList:"Bullet List",orderedList:"Ordered List",blockquote:"Blockquote",codeBlock:"Code Block",horizontalRule:"Horizontal Rule",linkUrlPlaceholder:"https://example.com"},pdfPageViewer:{loading:"PDF yükleniyor...",loadFailed:"PDF yüklenemedi",invalidPdf:"Geçersiz PDF dosyası",pageOutOfRange:(e,a)=>`Sayfa ${e} aralık dışında (1-${a})`,renderFailed:"PDF sayfası oluşturulamadı"}};exports.default=t;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { makeProviderMark as O, localStorageProp as E, computedOf as k, Use as
|
|
1
|
+
import { makeProviderMark as O, localStorageProp as E, computedOf as k, Use as N, html as g, attr as i, When as w, Fragment as y, aria as f, coalesce as z, style as D, prop as j, on as I, Value as V, Empty as L, WithElement as K, OnDispose as W, input as J, emitValue as S } from "@tempots/dom";
|
|
2
2
|
import { WhenInViewport as Q, Query as Y, ElementRect as Z } from "@tempots/ui";
|
|
3
3
|
import { b as X, g as tt } from "./colors-DPo9GEJR.js";
|
|
4
4
|
function et(t, {
|
|
@@ -38,6 +38,7 @@ const nt = {
|
|
|
38
38
|
failedToLoadIcon: "Failed to load icon",
|
|
39
39
|
editLabel: "Edit",
|
|
40
40
|
selectOne: "Select one",
|
|
41
|
+
selectNone: "None",
|
|
41
42
|
selectMany: "Select many",
|
|
42
43
|
noResults: "No results",
|
|
43
44
|
passwordPlaceholderText: "Secret Password",
|
|
@@ -150,19 +151,19 @@ const nt = {
|
|
|
150
151
|
"in"
|
|
151
152
|
// Indonesian (deprecated, but sometimes confused)
|
|
152
153
|
]);
|
|
153
|
-
function
|
|
154
|
+
function A(t) {
|
|
154
155
|
if (!t) return "ltr";
|
|
155
156
|
const e = t.split(/[-_]/)[0].toLowerCase();
|
|
156
157
|
return ot.has(e) ? "rtl" : "ltr";
|
|
157
158
|
}
|
|
158
159
|
function rt(t, e) {
|
|
159
|
-
return t === "auto" ?
|
|
160
|
+
return t === "auto" ? A(e) : t;
|
|
160
161
|
}
|
|
161
162
|
function Vt(t) {
|
|
162
163
|
return `b-${t}`;
|
|
163
164
|
}
|
|
164
165
|
function _t(t) {
|
|
165
|
-
return
|
|
166
|
+
return A(t) === "rtl";
|
|
166
167
|
}
|
|
167
168
|
function Et(t) {
|
|
168
169
|
return t === "ltr" ? "rtl" : "ltr";
|
|
@@ -399,7 +400,7 @@ function G({
|
|
|
399
400
|
a,
|
|
400
401
|
n
|
|
401
402
|
)((l, u) => l === "decorative" ? !1 : l === "informative" ? !0 : u != null && u !== "");
|
|
402
|
-
return
|
|
403
|
+
return N(
|
|
403
404
|
H,
|
|
404
405
|
(l) => g.span(
|
|
405
406
|
i.class(
|
|
@@ -562,7 +563,7 @@ function Ft({
|
|
|
562
563
|
stopPropagation: u = !0
|
|
563
564
|
}, ...b) {
|
|
564
565
|
const d = j(null);
|
|
565
|
-
return
|
|
566
|
+
return N(
|
|
566
567
|
H,
|
|
567
568
|
(p) => g.button(
|
|
568
569
|
i.type(t),
|
|
@@ -803,24 +804,24 @@ function Bt({
|
|
|
803
804
|
};
|
|
804
805
|
}
|
|
805
806
|
const $t = /* @__PURE__ */ Object.assign({
|
|
806
|
-
"./locales/ar.ts": () => import("./ar-
|
|
807
|
-
"./locales/de.ts": () => import("./de-
|
|
808
|
-
"./locales/es.ts": () => import("./es-
|
|
809
|
-
"./locales/fa.ts": () => import("./fa-
|
|
810
|
-
"./locales/fr.ts": () => import("./fr-
|
|
811
|
-
"./locales/he.ts": () => import("./he-
|
|
812
|
-
"./locales/hi.ts": () => import("./hi-
|
|
813
|
-
"./locales/it.ts": () => import("./it-
|
|
814
|
-
"./locales/ja.ts": () => import("./ja-
|
|
815
|
-
"./locales/ko.ts": () => import("./ko-
|
|
816
|
-
"./locales/nl.ts": () => import("./nl-
|
|
817
|
-
"./locales/pl.ts": () => import("./pl-
|
|
818
|
-
"./locales/pt.ts": () => import("./pt-
|
|
819
|
-
"./locales/ru.ts": () => import("./ru-
|
|
820
|
-
"./locales/tr.ts": () => import("./tr-
|
|
821
|
-
"./locales/ur.ts": () => import("./ur-
|
|
822
|
-
"./locales/vi.ts": () => import("./vi-
|
|
823
|
-
"./locales/zh.ts": () => import("./zh-
|
|
807
|
+
"./locales/ar.ts": () => import("./ar-Bo_FZZi7.js").then((t) => t.default),
|
|
808
|
+
"./locales/de.ts": () => import("./de-CCqwOkqN.js").then((t) => t.default),
|
|
809
|
+
"./locales/es.ts": () => import("./es-BF02UrPL.js").then((t) => t.default),
|
|
810
|
+
"./locales/fa.ts": () => import("./fa-DPQV4YB8.js").then((t) => t.default),
|
|
811
|
+
"./locales/fr.ts": () => import("./fr-dmxPhwkD.js").then((t) => t.default),
|
|
812
|
+
"./locales/he.ts": () => import("./he-BtQbrVt3.js").then((t) => t.default),
|
|
813
|
+
"./locales/hi.ts": () => import("./hi-D_Le4Yka.js").then((t) => t.default),
|
|
814
|
+
"./locales/it.ts": () => import("./it-DyHjSuHN.js").then((t) => t.default),
|
|
815
|
+
"./locales/ja.ts": () => import("./ja-X43lABza.js").then((t) => t.default),
|
|
816
|
+
"./locales/ko.ts": () => import("./ko-B9g9iw99.js").then((t) => t.default),
|
|
817
|
+
"./locales/nl.ts": () => import("./nl-Ew5jnSsT.js").then((t) => t.default),
|
|
818
|
+
"./locales/pl.ts": () => import("./pl-C9f6UBSe.js").then((t) => t.default),
|
|
819
|
+
"./locales/pt.ts": () => import("./pt-DYtAvbrw.js").then((t) => t.default),
|
|
820
|
+
"./locales/ru.ts": () => import("./ru-ZexN-b8V.js").then((t) => t.default),
|
|
821
|
+
"./locales/tr.ts": () => import("./tr-BDvn05-H.js").then((t) => t.default),
|
|
822
|
+
"./locales/ur.ts": () => import("./ur-DbEqQgS6.js").then((t) => t.default),
|
|
823
|
+
"./locales/vi.ts": () => import("./vi-CpZUeuSj.js").then((t) => t.default),
|
|
824
|
+
"./locales/zh.ts": () => import("./zh-DJyhKO0I.js").then((t) => t.default)
|
|
824
825
|
}), H = Bt({
|
|
825
826
|
defaultLocale: T,
|
|
826
827
|
defaultMessages: M,
|
|
@@ -853,7 +854,7 @@ export {
|
|
|
853
854
|
q as n,
|
|
854
855
|
bt as o,
|
|
855
856
|
Pt as p,
|
|
856
|
-
|
|
857
|
+
A as q,
|
|
857
858
|
rt as r,
|
|
858
859
|
gt as s,
|
|
859
860
|
C as t,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./translations-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./translations-WPN3ibDg.cjs"),n={signInTitle:"Sign In",signInButton:"Sign In",emailLabel:"Email",passwordLabel:"Password",rememberMeLabel:"Remember me",forgotPasswordLink:"Forgot password?",noAccountLink:"Don't have an account? Sign up",signUpTitle:"Sign Up",signUpButton:"Sign Up",nameLabel:"Name",confirmPasswordLabel:"Confirm Password",acceptTermsLabel:"I accept the terms and conditions",hasAccountLink:"Already have an account? Sign in",resetPasswordTitle:"Reset Password",resetPasswordButton:"Reset Password",resetPasswordDescription:"Enter your email to reset your password.",backToSignInLink:"Back to sign in",continueWithProvider:e=>`Continue with ${e}`,passwordStrengthWeak:"Weak",passwordStrengthFair:"Fair",passwordStrengthGood:"Good",passwordStrengthStrong:"Strong",orDivider:"or",error:"An error occurred",required:"Required",authenticationTitle:"Authentication"},r=n,s="en",a=Object.assign({"./locales/ar.ts":()=>Promise.resolve().then(()=>require("./ar-BsUm-TCn.cjs")).then(e=>e.default),"./locales/de.ts":()=>Promise.resolve().then(()=>require("./de-BUFLEyKr.cjs")).then(e=>e.default),"./locales/es.ts":()=>Promise.resolve().then(()=>require("./es-BxBeTRCv.cjs")).then(e=>e.default),"./locales/fa.ts":()=>Promise.resolve().then(()=>require("./fa-DxPseW3g.cjs")).then(e=>e.default),"./locales/fr.ts":()=>Promise.resolve().then(()=>require("./fr-Cdyopuz3.cjs")).then(e=>e.default),"./locales/he.ts":()=>Promise.resolve().then(()=>require("./he-DarDNPn0.cjs")).then(e=>e.default),"./locales/hi.ts":()=>Promise.resolve().then(()=>require("./hi-tATwsXJ6.cjs")).then(e=>e.default),"./locales/it.ts":()=>Promise.resolve().then(()=>require("./it-BmFag7j0.cjs")).then(e=>e.default),"./locales/ja.ts":()=>Promise.resolve().then(()=>require("./ja-Dj-bAKLf.cjs")).then(e=>e.default),"./locales/ko.ts":()=>Promise.resolve().then(()=>require("./ko-BomUE-yQ.cjs")).then(e=>e.default),"./locales/nl.ts":()=>Promise.resolve().then(()=>require("./nl-Dr-l6zUy.cjs")).then(e=>e.default),"./locales/pl.ts":()=>Promise.resolve().then(()=>require("./pl-BK0i_yvq.cjs")).then(e=>e.default),"./locales/pt.ts":()=>Promise.resolve().then(()=>require("./pt-oBMmVYcu.cjs")).then(e=>e.default),"./locales/ru.ts":()=>Promise.resolve().then(()=>require("./ru-CtxMmoa6.cjs")).then(e=>e.default),"./locales/tr.ts":()=>Promise.resolve().then(()=>require("./tr-CgJ8uhZu.cjs")).then(e=>e.default),"./locales/ur.ts":()=>Promise.resolve().then(()=>require("./ur-DvqAg9gW.cjs")).then(e=>e.default),"./locales/vi.ts":()=>Promise.resolve().then(()=>require("./vi-D5R3YcU0.cjs")).then(e=>e.default),"./locales/zh.ts":()=>Promise.resolve().then(()=>require("./zh-CCGXcj5r.cjs")).then(e=>e.default)}),l=o.makeI18nProvider({defaultLocale:s,defaultMessages:r,localeLoader:async e=>{if(e===s)return r;const t=a[`./locales/${e}.ts`];return t?await t():r},providerName:"AuthI18n"});exports.AuthI18n=l;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const r=require("@tempots/dom"),I=require("@tempots/ui"),V=require("./colors-B2yrgHSW.cjs");function M(t,{units:e=["B","KB","MB","GB","TB"],decimalPlaces:o=0,locale:n}={}){if(t===0||t===0n)return new Intl.NumberFormat(n,{style:"unit",unit:"byte",unitDisplay:"short",maximumFractionDigits:0}).format(0).replace("byte",e[0]);let s,a;if(typeof t=="bigint"){let i=t<0n?-t:t;for(s=0;i>=1024n&&s<e.length-1;)i=i/1024n,s++;a=Number(t)/Math.pow(1024,s)}else s=Math.floor(Math.log(Math.abs(t))/Math.log(1024)),s=Math.min(s,e.length-1),a=t/Math.pow(1024,s);return new Intl.NumberFormat(n,{style:"unit",unit:"byte",unitDisplay:"short",minimumFractionDigits:s===0?0:o,maximumFractionDigits:s===0?0:o}).format(a).replace("byte",e[s])}const H={loadingExtended:"Loading, please wait",loadingShort:"Loading...",locale:"Locale",iconDescription:"Icon",loadingIcon:"Loading icon",failedToLoadIcon:"Failed to load icon",editLabel:"Edit",selectOne:"Select one",selectNone:"None",selectMany:"Select many",noResults:"No results",passwordPlaceholderText:"Secret Password",togglePasswordVisibility:"Toggle password visibility",toggleMenu:"Toggle menu",toggleAside:"Toggle aside",mainNavigation:"Main navigation",sidebar:"Sidebar",closeDrawer:"Close drawer",closeModal:"Close modal",confirm:"Confirm",cancel:"Cancel",addLabel:"Add",removeItem:"Remove item",currentLocale:"English",ar:"Arabic",de:"German",en:"English",es:"Spanish",fr:"French",hi:"Hindi",it:"Italian",ja:"Japanese",ko:"Korean",nl:"Dutch",pl:"Polish",pt:"Portuguese",ru:"Russian",tr:"Turkish",vi:"Vietnamese",zh:"Chinese",he:"Hebrew",fa:"Persian",ur:"Urdu",emailPlaceholderText:"Enter your email",incrementValue:"Increment value",decrementValue:"Decrement value",dropZoneInstructions:t=>t?"Click to choose or drag files here, or press Enter or Space to open file selector":"Drag files here",fileSizeUnits:["Bytes","KB","MB","GB","TB"],removeFile:"Remove file",clearAllFiles:"Clear all files",clearValue:"Reset",unknownType:"Unknown type",filesInputInstructions:(t,e,o)=>{let n=t==null||t>1?"Click to choose or drag files here":"Click to choose or drag a file here";if(t||e){const s=[];if(t!=null&&t>1&&s.push(`up to ${t} files`),e&&o){const a=M(e,{units:o});s.push(`max ${a} each`)}s.length>0&&(n+=` (${s.join(", ")})`)}return n},prosemirror:{bold:"Bold",italic:"Italic",code:"Inline code",link:"Insert link",removeLink:"Remove link",heading:t=>`Heading ${t}`,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:(t,e)=>`Page ${t} is out of range (1-${e})`,renderFailed:"Failed to render PDF page"}},v=H,y="en",K=new Set(["ar","he","fa","ur","ps","sd","ku","dv","yi","ji","iw","in"]);function L(t){if(!t)return"ltr";const e=t.split(/[-_]/)[0].toLowerCase();return K.has(e)?"rtl":"ltr"}function O(t,e){return t==="auto"?L(e):t}function Y(t){return`b-${t}`}function J(t){return L(t)==="rtl"}function Q(t){return t==="ltr"?"rtl":"ltr"}const F={ltr:{"inline-start":"left","inline-end":"right","block-start":"top","block-end":"bottom"},rtl:{"inline-start":"right","inline-end":"left","block-start":"top","block-end":"bottom"}};function Z(t,e){return F[e][t]}const E={mark:r.makeProviderMark("Locale"),create:t=>{const e=r.localStorageProp({defaultValue:navigator.language??"en-US",key:"beatui-locale"}),o=r.localStorageProp({defaultValue:"auto",key:"beatui-direction-preference"}),n=r.computedOf(e,o)((a,l)=>O(l,a));return{value:{locale:e,setLocale:a=>e.set(a),direction:n,directionPreference:o,setDirectionPreference:a=>o.set(a)},dispose:()=>{e.dispose(),o.dispose(),n.dispose()}}}},{variants:X,special:tt,overrides:D}=V.backgroundConfig;function k(t,e){switch(t){case"white":return"var(--color-white)";case"black":return"var(--color-black)";case"transparent":return"transparent";default:return V.getColorVar(t,e)}}function _(t,e){const o=tt[t];if(!o)return;if(e==="light")return o;const n=D[t];return n?n[e]:o}function p(t,e,o){const n=D[t];if(n){const a=n[o];if(a)return{backgroundColor:a.backgroundColor,textColor:a.color}}if(e==="solid"){const a=_(t,o);if(a)return{backgroundColor:a.backgroundColor,textColor:a.color}}const s=X[e][o];return{backgroundColor:k(t,s.bgShade),textColor:s.textColor}}const et={light:{shade:600,textColor:"var(--color-white)"},dark:{shade:600,textColor:"var(--text-inverted-dark)"}},rt={light:{shade:300,textColor:"var(--text-normal-light)"},dark:{shade:700,textColor:"var(--text-normal-dark)"}},nt={light:{shade:400,textColor:"var(--text-normal-light)"},dark:{shade:600,textColor:"var(--text-normal-dark)"}};function b(t,e,o){const n=D[t];if(n){const a=n[o];if(a)return{backgroundColor:a.backgroundColor,textColor:a.color}}if(e==="solid"){const a=_(t,o);if(a)return{backgroundColor:a.backgroundColor,textColor:a.color};const l=et[o];return{backgroundColor:k(t,l.shade),textColor:l.textColor}}const s=e==="light"?rt[o]:nt[o];return{backgroundColor:k(t,s.shade),textColor:s.textColor}}function P(t,e){const o=e==="light"?500:600;switch(t){case"white":return e==="light"?"var(--text-inverse-light)":"var(--text-inverted-dark)";case"black":return"var(--color-black)";case"transparent":return"transparent";default:return k(t,o)}}function m(t,e){return t==="white"?"var(--color-white)":t==="black"?"var(--color-black)":t==="transparent"?"inherit":k(t,e==="light"?800:200)}function $(t,e,o){return e==="soft"?k(t,o==="light"?300:700):k(t,o==="light"?500:600)}const ot="bui-icons",x=new Map,B=(()=>{try{return typeof indexedDB<"u"&&indexedDB!==null}catch{return!1}})();function at(){return B?new Promise((t,e)=>{const o=indexedDB.open(ot,1);o.onupgradeneeded=function(n){const s=n.target.result;s.objectStoreNames.contains("icons")||s.createObjectStore("icons")},o.onsuccess=function(){t(o.result)},o.onerror=function(){e(o.error)}}):Promise.reject(new Error("IndexedDB not available"))}const C=B?at():null;async function T(t,e){try{if(C){const o=await C;return new Promise((n,s)=>{const a=o.transaction("icons","readwrite");a.objectStore("icons").put(e,t),a.oncomplete=()=>n(),a.onerror=s})}else x.set(t,e)}catch{x.set(t,e)}}async function j(t){try{if(C){const e=await C;return new Promise((o,n)=>{const l=e.transaction("icons","readonly").objectStore("icons").get(t);l.onsuccess=function(){o(l.result)},l.onerror=n})}else return x.get(t)||null}catch{return x.get(t)||null}}async function st(t){const e=`https://api.iconify.design/${t}.svg`;return fetch(e).then(o=>{if(o.status===200)return o.text();throw new Error(`Failed to load icon: ${t}`)})}async function lt(t){const e=t.replace(":","/"),o=await j(e);if(o)return o;const n=await st(e);return await T(e,n),n}function it(t){return["bc-icon",`bc-icon--${t}`].join(" ")}function ut(t,e="solid"){if(!t)return"";const o=$(t,e,"light"),n=$(t,e,"dark");return`--icon-color: ${o}; --icon-color-dark: ${n}`}function S({icon:t,size:e="md",color:o,title:n,accessibility:s="auto",tone:a="solid"},...l){const u=r.computedOf(s,n)((i,c)=>i==="decorative"?!1:i==="informative"?!0:c!=null&&c!=="");return r.Use(q,i=>r.html.span(r.attr.class(r.computedOf(e,o)(c=>it(c??"md"))),r.attr.style(r.computedOf(o,a)((c,g)=>ut(c??void 0,g??"solid"))),r.When(u,()=>r.Fragment(r.attr.role("img"),r.aria.label(r.coalesce(n,i.$.iconDescription))),()=>r.aria.hidden(!0)),I.WhenInViewport({once:!0},()=>I.Query({request:t,load:({request:c})=>lt(c),convertError:String,success:({value:c})=>r.html.span(r.style.width("100%"),r.style.height("100%"),r.attr.innerHTML(c)),pending:()=>r.html.span(r.attr.class("animate-spin"),r.When(u,()=>r.Fragment(r.attr.role("img"),r.aria.label(i.$.loadingIcon)),()=>r.aria.hidden(!0)),"↻"),failure:({error:c})=>r.html.span(r.attr.title(c),r.attr.class("text-red-500"),r.When(u,()=>r.Fragment(r.attr.role("img"),r.aria.label(i.$.failedToLoadIcon)),()=>r.aria.hidden(!0)),"🚫")})),...l))}function R(t,e,o,n){const s=["bc-button",`bc-button--size-${t}`,`bc-control--padding-${t}`,`bc-control--rounded-${e}`];return o&&s.push("bc-button--loading"),n&&s.push("bc-button--full-width"),s.join(" ")}function A(t,e,o){const n=new Map;n.set("--button-text-shadow","var(--text-shadow-none)"),n.set("--button-text-shadow-dark","var(--text-shadow-none)");const s=(a,l,u,i)=>{o||(n.set("--button-bg-hover",a),n.set("--button-text-hover",u),n.set("--button-bg-hover-dark",l),n.set("--button-text-hover-dark",i))};switch(t){case"filled":{const a=p(e,"solid","light"),l=p(e,"solid","dark");n.set("--button-bg",a.backgroundColor),n.set("--button-text",a.textColor),n.set("--button-bg-dark",l.backgroundColor),n.set("--button-text-dark",l.textColor),n.set("--button-text-shadow","var(--text-shadow-button-filled, var(--text-shadow-sm))"),n.set("--button-text-shadow-dark","var(--text-shadow-button-filled, var(--text-shadow-sm))");const u=b(e,"solid","light"),i=b(e,"solid","dark");s(u.backgroundColor,i.backgroundColor,u.textColor,i.textColor);break}case"light":{const a=p(e,"light","light"),l=p(e,"light","dark");n.set("--button-bg",a.backgroundColor),n.set("--button-text",a.textColor),n.set("--button-bg-dark",l.backgroundColor),n.set("--button-text-dark",l.textColor);const u=b(e,"light","light"),i=b(e,"light","dark");s(u.backgroundColor,i.backgroundColor,u.textColor,i.textColor);break}case"outline":{n.set("--button-bg","transparent"),n.set("--button-bg-dark","transparent"),n.set("--button-border",P(e,"light")),n.set("--button-border-dark",P(e,"dark")),n.set("--button-text",m(e,"light")),n.set("--button-text-dark",m(e,"dark")),n.set("--button-text-shadow","var(--text-shadow-button-light, var(--text-shadow-xs))"),n.set("--button-text-shadow-dark","var(--text-shadow-button-light, var(--text-shadow-xs))");const a=b(e,"light","light"),l=b(e,"light","dark");s(a.backgroundColor,l.backgroundColor,a.textColor,l.textColor);break}case"default":{const a=p("neutral","light","light"),l=p("neutral","light","dark");n.set("--button-bg",a.backgroundColor),n.set("--button-text",m(e,"light")),n.set("--button-bg-dark",l.backgroundColor),n.set("--button-text-dark",m(e,"dark")),n.set("--button-text-shadow","var(--text-shadow-button-default, var(--text-shadow-2xs))"),n.set("--button-text-shadow-dark","var(--text-shadow-button-default, var(--text-shadow-2xs))");const u=b("base","light","light"),i=b("base","light","dark");s(u.backgroundColor,i.backgroundColor,n.get("--button-text")??a.textColor,n.get("--button-text-dark")??l.textColor);break}case"text":{n.set("--button-bg","transparent"),n.set("--button-bg-dark","transparent"),n.set("--button-text",m(e,"light")),n.set("--button-text-dark",m(e,"dark")),o||n.set("--button-hover-decoration","underline");break}}return Array.from(n.entries()).map(([a,l])=>`${a}: ${l}`).join("; ")}function ct({type:t="button",disabled:e=!1,loading:o=!1,variant:n="filled",size:s="md",color:a="base",roundedness:l="sm",onClick:u=()=>{},fullWidth:i=!1,stopPropagation:c=!0},...g){const d=r.prop(null);return r.Use(q,f=>r.html.button(r.attr.type(t),r.attr.disabled(r.computedOf(e,o)((h,w)=>h||w)),r.aria.busy(o??!1),r.When(o??!1,()=>r.aria.label(f.$.loadingExtended)),r.attr.class(r.computedOf(s,l,o,i)(R)),r.attr.style(r.computedOf(n,a,e)(A)),r.When(o??!1,()=>r.Fragment(r.style.width(d.map(h=>h==null?"":`${h.width}px`)),r.style.height(d.map(h=>h==null?"":`${h.height}px`)),S({icon:"line-md:loading-twotone-loop",size:s??"md"}),r.html.span(r.attr.class("sr-only"),r.aria.live("polite"),f.$.loadingExtended)),()=>r.Fragment(r.on.click(h=>{t!=="submit"&&h.preventDefault(),c&&h.stopPropagation(),u()}),...g)),r.When(o!=null,()=>I.ElementRect(h=>(h.on(w=>{r.Value.get(o??!1)||d.set(w)}),r.Empty)))))}function dt(t,e,o){const n=[t?"bc-base-input-container":"bc-input-container"];return e?n.push(t?"bc-base-input-container--disabled":"bc-input-container--disabled"):n.push(t?"bc-base-input-container--default":"bc-input-container--default"),o&&n.push("bc-input-container--error"),n.join(" ")}function N(t,e){const o=["bc-input-container__input"];return t||(o.push(`bc-control--padding-${e}`),o.push(`bc-control--text-size-${e}`)),o.join(" ")}const U=({baseContainer:t,disabled:e,input:o,before:n,after:s,hasError:a,focusableSelector:l="input, select, textarea",growInput:u=!0,size:i},...c)=>{const g=r.Value.map(e??!1,d=>d);return r.html.div(r.WithElement(d=>{const f=()=>{d.querySelector(l)?.focus()};return d.addEventListener("click",f),r.OnDispose(()=>d.removeEventListener("click",f))}),r.attr.class(r.computedOf(t,g,a??!1)((d,f,h)=>dt(d??!1,f??!1,h??!1))),n!=null?r.html.span(r.attr.class("bc-input-container__before"),n):null,r.html.div(r.attr.class(r.computedOf(t,i??"md")((d,f)=>N(d??!1,f??"md"))),r.attr.class(r.Value.map(u,d=>d?"bc-input-container__input--grow":"")),o),s!=null?r.html.span(r.attr.class("bc-input-container__after"),s):null,...c)};function ht({icon:t,size:e="md",color:o="neutral"}){return r.html.span(r.attr.class("bc-input-container__icon"),S({icon:t,size:e,color:o}))}const W=({autocomplete:t,autofocus:e,class:o,disabled:n,name:s,placeholder:a,id:l,required:u,tabIndex:i,hasError:c})=>r.Fragment(r.attr.autocomplete(t),r.attr.autofocus(e),r.attr.class(o),r.attr.disabled(n),r.attr.name(s??l),r.attr.placeholder(a),r.attr.id(l),r.aria.required(u),r.attr.tabindex(i),c!=null?r.aria.invalid(c??!1):null),gt=t=>{const{value:e,onBlur:o,onChange:n,onInput:s}=t;return U({...t,input:r.input.text(W(t),r.attr.value(e),r.attr.class("bc-input"),o!=null?r.on.blur(r.emitValue(o)):r.Empty,n!=null?r.on.change(r.emitValue(n)):r.Empty,s!=null?r.on.input(r.emitValue(s)):r.Empty)})};function ft(t){const e=t.split("-"),o=[t];return e.length>1&&o.push(e[0]),o}function G({locale:t,defaultLocale:e="en-US",defaultMessages:o,localeLoader:n}){const s=r.prop(e),a=r.prop(o),l=t.on(async u=>{if(u===s.value)return;s.set(u);const i=ft(u);for(const c of i)try{const g=await n(c);if(typeof g.default=="object"&&Object.keys(g).length===1){console.error("It appears that you are trying to load a translation module without referencing the default export. Please use `(await import(...)).default` in your loader function.");return}if(u===s.value){a.set(g);return}}catch{continue}console.warn(`No locale found for "${t.value}", using fallback`),u===s.value&&a.set(o)});return{dispose:()=>{l(),s.dispose(),a.dispose()},t:a}}function z({defaultLocale:t,defaultMessages:e,localeLoader:o,providerName:n="I18nProvider"}){return{mark:r.makeProviderMark(n),create:(s,a)=>{const{value:{locale:l}}=a.getProvider(E.mark),{t:u,dispose:i}=G({locale:l,defaultMessages:e,defaultLocale:t,localeLoader:o});return{value:u,dispose:i}}}}const bt=Object.assign({"./locales/ar.ts":()=>Promise.resolve().then(()=>require("./ar-DwHLVgKj.cjs")).then(t=>t.default),"./locales/de.ts":()=>Promise.resolve().then(()=>require("./de-zI5mdV4M.cjs")).then(t=>t.default),"./locales/es.ts":()=>Promise.resolve().then(()=>require("./es-Cw90CAbu.cjs")).then(t=>t.default),"./locales/fa.ts":()=>Promise.resolve().then(()=>require("./fa-B4lssnzR.cjs")).then(t=>t.default),"./locales/fr.ts":()=>Promise.resolve().then(()=>require("./fr-1Kd6z1F-.cjs")).then(t=>t.default),"./locales/he.ts":()=>Promise.resolve().then(()=>require("./he-CJ3XnuPm.cjs")).then(t=>t.default),"./locales/hi.ts":()=>Promise.resolve().then(()=>require("./hi-BpfnFKHp.cjs")).then(t=>t.default),"./locales/it.ts":()=>Promise.resolve().then(()=>require("./it-COCZ9NyB.cjs")).then(t=>t.default),"./locales/ja.ts":()=>Promise.resolve().then(()=>require("./ja--NdggLU9.cjs")).then(t=>t.default),"./locales/ko.ts":()=>Promise.resolve().then(()=>require("./ko-BUvb0ggK.cjs")).then(t=>t.default),"./locales/nl.ts":()=>Promise.resolve().then(()=>require("./nl-0S25Gsld.cjs")).then(t=>t.default),"./locales/pl.ts":()=>Promise.resolve().then(()=>require("./pl-B3k-K3S4.cjs")).then(t=>t.default),"./locales/pt.ts":()=>Promise.resolve().then(()=>require("./pt-CKoikRO5.cjs")).then(t=>t.default),"./locales/ru.ts":()=>Promise.resolve().then(()=>require("./ru-COb7RSDt.cjs")).then(t=>t.default),"./locales/tr.ts":()=>Promise.resolve().then(()=>require("./tr-tO_EH-Y2.cjs")).then(t=>t.default),"./locales/ur.ts":()=>Promise.resolve().then(()=>require("./ur-BbnYJ3HS.cjs")).then(t=>t.default),"./locales/vi.ts":()=>Promise.resolve().then(()=>require("./vi-ByBwvGQY.cjs")).then(t=>t.default),"./locales/zh.ts":()=>Promise.resolve().then(()=>require("./zh-DnxK0ieB.cjs")).then(t=>t.default)}),q=z({defaultLocale:y,defaultMessages:v,localeLoader:async t=>{if(t===y)return v;const e=bt[`./locales/${t}.ts`];return e?await e():v},providerName:"BeatUII18n"});exports.BeatUII18n=q;exports.Button=ct;exports.CommonInputAttributes=W;exports.Icon=S;exports.InputContainer=U;exports.InputIcon=ht;exports.LOGICAL_PROPERTY_MAP=F;exports.Locale=E;exports.TextInput=gt;exports.backgroundValue=p;exports.borderColorValue=P;exports.defaultLocale=y;exports.defaultMessages=v;exports.formatFileSize=M;exports.generateButtonClasses=R;exports.generateButtonStyles=A;exports.generateInputContainerInputClasses=N;exports.getDirectionClassName=Y;exports.getDirectionFromLocale=L;exports.getIconLocally=j;exports.getOppositeDirection=Q;exports.getPhysicalProperty=Z;exports.hoverBackgroundValue=b;exports.isIndexedDBAvailable=B;exports.isRTLLocale=J;exports.makeI18nProvider=z;exports.makeMessages=G;exports.resolveDirection=O;exports.storeIconLocally=T;exports.textColorValue=m;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./translations-WPN3ibDg.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:["بائٹس","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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as r } from "./translations-
|
|
1
|
+
import { f as r } from "./translations-0tLX4x7M.js";
|
|
2
2
|
const d = {
|
|
3
3
|
loadingExtended: "لوڈ ہو رہا ہے، براہ کرم انتظار کریں",
|
|
4
4
|
loadingShort: "لوڈ ہو رہا ہے...",
|
|
@@ -8,6 +8,7 @@ const d = {
|
|
|
8
8
|
failedToLoadIcon: "آئیکن لوڈ کرنے میں ناکام",
|
|
9
9
|
editLabel: "ترمیم",
|
|
10
10
|
selectOne: "ایک منتخب کریں",
|
|
11
|
+
selectNone: "کوئی نہیں",
|
|
11
12
|
selectMany: "متعدد منتخب کریں",
|
|
12
13
|
noResults: "کوئی نتیجہ نہیں",
|
|
13
14
|
passwordPlaceholderText: "خفیہ پاس ورڈ",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const r=require("@tempots/dom"),F=require("./translations-eUtMHN9s.cjs"),P=new Map;function I(e){const s=P.get(e)??0;return P.set(e,s+1),`${e}-${s}`}const n={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,s){return n.isSuccess(e)?e.value:s},getOrElseLazy(e,s){return n.isSuccess(e)?e.value:s()},getOrNull(e){return n.isSuccess(e)?e.value:null},getOrUndefined(e){return n.isSuccess(e)?e.value:void 0},getUnsafe:e=>{if(n.isSuccess(e))return e.value;throw n.isFailure(e)?e.error:new Error("Cannot get value from a not-asked or loading result")},match:(e,{success:s,failure:t,loading:a,notAsked:i=a})=>n.isSuccess(e)?s(e.value):n.isFailure(e)?t(e.error):n.isNotAsked(e)?i():a(e.previousValue),effect:(e,s)=>{switch(e.type){case"AsyncSuccess":s.success?s.success(e.value):s.else?.();break;case"AsyncFailure":s.failure?s.failure(e.error):s.else?.();break;case"Loading":s.loading?s.loading(e.previousValue):s.else?.();break;case"NotAsked":s.notAsked?s.notAsked():s.else?.();break}return e},whenSuccess:(e,s)=>(n.isSuccess(e)&&s(e.value),e),whenFailure:(e,s)=>(n.isFailure(e)&&s(e.error),e),equals:(e,s,t={valueEquals:(a,i)=>a===i,errorEquals:(a,i)=>a===i})=>e.type==="AsyncSuccess"&&s.type==="AsyncSuccess"?t.valueEquals(e.value,s.value):e.type==="AsyncFailure"&&s.type==="AsyncFailure"?t.errorEquals(e.error,s.error):e.type==="Loading"&&s.type==="Loading"?t.valueEquals(e.previousValue,s.previousValue):e.type==="NotAsked"&&s.type==="NotAsked",all:e=>{const s=[];for(const t of e)if(n.isSuccess(t))s.push(t.value);else return t;return n.success(s)},ofPromise:async e=>{try{const s=await e;return n.success(s)}catch(s){return n.failure(s instanceof Error?s:new Error(String(s)))}},map:(e,s)=>{switch(e.type){case"AsyncSuccess":return n.success(s(e.value));case"NotAsked":return n.notAsked;case"AsyncFailure":return n.failure(e.error);case"Loading":return n.loading(e.previousValue!=null?s(e.previousValue):void 0)}},flatMap:(e,s)=>{switch(e.type){case"AsyncSuccess":return s(e.value);case"NotAsked":return n.notAsked;case"AsyncFailure":return n.failure(e.error);case"Loading":return n.loading()}},mapError:(e,s)=>{switch(e.type){case"AsyncSuccess":return n.success(e.value);case"NotAsked":return n.notAsked;case"AsyncFailure":return n.failure(s(e.error));case"Loading":return n.loading(e.previousValue)}},flatMapError:(e,s)=>{switch(e.type){case"AsyncSuccess":return n.success(e.value);case"NotAsked":return n.notAsked;case"AsyncFailure":return s(e.error);case"Loading":return n.loading(e.previousValue)}},toResult:e=>{switch(e.type){case"AsyncSuccess":return{type:"Success",value:e.value};case"AsyncFailure":return{type:"Failure",error:e.error};case"NotAsked":case"Loading":return}},isSettled(e){return e.type==="AsyncSuccess"||e.type==="AsyncFailure"},recover:(e,s)=>{switch(e.type){case"AsyncSuccess":return n.success(e.value);case"NotAsked":return n.notAsked;case"AsyncFailure":return n.success(s(e.error));case"Loading":return n.loading(e.previousValue)}},ap:(e,s)=>n.isSuccess(e)&&n.isSuccess(s)?n.success(e.value(s.value)):n.isFailure(e)?n.failure(e.error):n.isFailure(s)?n.failure(s.error):n.isLoading(e)||n.isLoading(s)?n.loading():n.notAsked,map2:(e,s,t)=>n.isSuccess(e)&&n.isSuccess(s)?n.success(t(e.value,s.value)):n.isFailure(e)?n.failure(e.error):n.isFailure(s)?n.failure(s.error):n.isLoading(e)||n.isLoading(s)?n.loading():n.notAsked,map3:(e,s,t,a)=>n.isSuccess(e)&&n.isSuccess(s)&&n.isSuccess(t)?n.success(a(e.value,s.value,t.value)):n.isFailure(e)?n.failure(e.error):n.isFailure(s)?n.failure(s.error):n.isFailure(t)?n.failure(t.error):n.isLoading(e)||n.isLoading(s)||n.isLoading(t)?n.loading():n.notAsked},E=(e,s)=>e===s||e!==e&&s!==s,h={valid:{type:"valid"},invalid(e){return{type:"invalid",error:e}},isValid(e){return e.type==="valid"},isInvalid(e){return e.type==="invalid"},match:(e,s,t)=>h.isValid(e)?s():t(e.error),toResult:(e,s)=>h.match(e,()=>o.success(s),t=>o.failure(t)),effect:(e,s)=>(e.type==="valid"?s.valid?s.valid():s.else?.():s.invalid?s.invalid(e.error):s.else?.(),e),whenValid:(e,s)=>(h.isValid(e)&&s(),e),whenInvalid:(e,s)=>(h.isInvalid(e)&&s(e.error),e),mapError:(e,s)=>e.type==="invalid"?h.invalid(s(e.error)):e,flatMapError:(e,s)=>e.type==="invalid"?s(e.error):e,combine:(e,s,t)=>h.isValid(e)&&h.isValid(s)?h.valid:h.isInvalid(e)&&h.isInvalid(s)?h.invalid(t(e.error,s.error)):h.isInvalid(e)?e:s,all:e=>{for(const s of e)if(h.isInvalid(s))return s;return h.valid},allErrors:e=>{const s=[];for(const t of e)h.isInvalid(t)&&s.push(t.error);return s.length>0?h.invalid(s):h.valid},equals:(e,s,t=(a,i)=>a===i)=>e.type==="valid"&&s.type==="valid"?!0:e.type==="invalid"&&s.type==="invalid"?t(e.error,s.error):!1,recover:e=>h.valid,getError:e=>{if(h.isInvalid(e))return e.error},getErrorOrElse:(e,s)=>h.isInvalid(e)?e.error:s},o={success(e){return{type:"Success",value:e}},failure(e){return{type:"Failure",error:e}},map:(e,s)=>e.type==="Success"?o.success(s(e.value)):e,flatMap:(e,s)=>e.type==="Success"?s(e.value):e,toAsync(e){return o.match(e,s=>n.success(s),s=>n.failure(s))},toValidation(e){return o.match(e,()=>h.valid,s=>h.invalid(s))},isSuccess(e){return e.type==="Success"},isFailure(e){return e.type==="Failure"},getOrElse(e,s){return o.isSuccess(e)?e.value:s},getOrElseLazy(e,s){return o.isSuccess(e)?e.value:s()},getOrNull(e){return o.isSuccess(e)?e.value:null},getOrUndefined(e){return o.isSuccess(e)?e.value:void 0},getUnsafe:e=>{if(o.isSuccess(e))return e.value;throw e.error},match:(e,s,t)=>o.isSuccess(e)?s(e.value):t(e.error),effect:(e,s)=>(e.type==="Success"?s.success?s.success(e.value):s.else?.():s.failure?s.failure(e.error):s.else?.(),e),whenSuccess:(e,s)=>(o.isSuccess(e)&&s(e.value),e),whenFailure:(e,s)=>(o.isFailure(e)&&s(e.error),e),combine:(e,s,t,a)=>o.match(e,i=>o.match(s,l=>o.success(t(i,l)),l=>o.failure(l)),i=>o.match(s,l=>o.failure(i),l=>o.failure(a(i,l)))),equals:(e,s,t={valueEquals:(a,i)=>a===i,errorEquals:(a,i)=>a===i})=>e.type==="Success"&&s.type==="Success"?t.valueEquals(e.value,s.value):e.type==="Failure"&&s.type==="Failure"?t.errorEquals(e.error,s.error):!1,all:e=>{const s=[];for(const t of e)if(o.isSuccess(t))s.push(t.value);else return t;return o.success(s)},mapError:(e,s)=>e.type==="Failure"?o.failure(s(e.error)):e,flatMapError:(e,s)=>e.type==="Failure"?s(e.error):e,recover:(e,s)=>e.type==="Failure"?{type:"Success",value:s(e.error)}:e,ap:(e,s)=>o.isSuccess(e)&&o.isSuccess(s)?o.success(e.value(s.value)):o.isFailure(e)?o.failure(e.error):o.failure(s.error),map2:(e,s,t)=>o.isSuccess(e)&&o.isSuccess(s)?o.success(t(e.value,s.value)):o.isFailure(e)?o.failure(e.error):o.failure(s.error),map3:(e,s,t,a)=>o.isSuccess(e)&&o.isSuccess(s)&&o.isSuccess(t)?o.success(a(e.value,s.value,t.value)):o.isFailure(e)?o.failure(e.error):o.isFailure(s)?o.failure(s.error):o.failure(t.error),ofPromise:async e=>{try{const s=await e;return o.success(s)}catch(s){return o.failure(s instanceof Error?s:new Error(String(s)))}},swap:e=>o.isSuccess(e)?o.failure(e.value):o.success(e.error),fromNullable:(e,s)=>e==null?o.failure(s):o.success(e),fromNullableLazy:(e,s)=>e==null?o.failure(s()):o.success(e),tryCatch:e=>{try{return o.success(e())}catch(s){return o.failure(s instanceof Error?s:new Error(String(s)))}}};function Z({size:e="sm",icon:s="line-md:close",disabled:t,roundedness:a="full",color:i="base",onClick:l,label:u},...c){return r.Use(F.BeatUII18n,d=>{const m=r.coalesce(u,d.$.closeModal);return F.Button({variant:"text",size:e,roundedness:a,disabled:t,color:i,onClick:l},r.attr.title(m),r.aria.label(m),...c,F.Icon({icon:s,size:e??"sm"}))})}function T(e){return`bc-label bc-label--${e}`}const ee=(...e)=>r.html.span(r.attr.class(T("emphasis")),...e),q=(...e)=>r.html.span(r.attr.class(T("default")),...e),$=(...e)=>r.html.span(r.attr.class(T("muted")),...e),se=(...e)=>r.html.span(r.attr.class(T("danger")),...e),te=e=>{const{value:s,onBlur:t,onChange:a,placeholder:i,disabled:l,id:u,checkedIcon:c,uncheckedIcon:d,iconSize:m="lg"}=e,p=u??I("checkbox"),v=`${p}-label`,b=()=>{if(r.Value.get(l??!1))return;const f=r.Value.get(s);a?.(!f)},k=f=>{r.Value.get(l??!1)||(f.key===" "||f.key==="Enter")&&(f.preventDefault(),b())};return F.InputContainer({baseContainer:!0,growInput:!1,...e,input:r.html.span(r.attr.class("bc-checkbox-input"),r.html.span(r.attr.class("bc-checkbox-input__checkbox"),r.attr.class(r.Value.map(s,f=>f?"bc-checkbox-input__checkbox--checked":"bc-checkbox-input__checkbox--unchecked")),r.attr.class(r.Value.map(l??!1,f=>f?"bc-checkbox-input__checkbox--disabled":"")),r.attr.id(p),r.attr.role("checkbox"),r.attr.tabindex(r.Value.map(l??!1,f=>f?-1:0)),r.aria.checked(s),r.aria.disabled(l),i!=null?r.aria.labelledby(v):r.Empty,r.on.keydown(k),t!=null?r.on.blur(t):r.Empty,F.Icon({icon:r.computedOf(s,c,d)((f,y,S)=>f?y??"akar-icons/check-box-fill":S??"akar-icons/box"),accessibility:"decorative",size:m})),i!=null?r.html.label(r.attr.class("bc-checkbox-input__label"),r.attr.id(v),r.attr.for(p),$(i)):r.Empty)},r.on.click(b))},j=r.html.span(r.attr.class("bc-input-wrapper__required")," *");function re(e){const s=["bc-input-wrapper"];return e!=="vertical"&&s.push(`bc-input-wrapper--${e}`),s.join(" ")}function ae(e,s){const t=["bc-input-wrapper__label-text"];return e?t.push("bc-input-wrapper__label-text--error"):s?t.push("bc-input-wrapper__label-text--disabled"):t.push("bc-input-wrapper__label-text--default"),t.join(" ")}function ie(e,s){if(e==="horizontal-fixed"&&s!=null)return`--input-wrapper-label-width: ${s}`}const M=({fullWidth:e=!1,required:s,label:t,labelChildren:a,context:i,description:l,content:u,error:c,labelFor:d,hasError:m,disabled:p,layout:v,labelWidth:b},...k)=>{const f=m??c!=null,y=p??!1,S=v??"vertical",C=I("input-wrapper"),D=l?`${C}-description`:void 0,O=c!=null?`${C}-error`:void 0,B=r.computedOf(S)(g=>g!=="vertical"),Y=r.computedOf(S,b??void 0)((g,A)=>ie(g,A));return r.html.div(r.attr.class(r.Value.map(S,g=>re(g))),r.attr.class(r.Value.map(e,g=>g?"bc-input-wrapper--full-width":"")),r.attr.style(Y),t!=null||i!=null?r.html.div(r.attr.class("bc-input-wrapper__header"),r.html.div(r.attr.class("bc-input-wrapper__label-section"),r.html.label(r.attr.class("bc-input-wrapper__label"),d!=null?r.attr.for(d):r.Empty,r.html.span(r.attr.class(r.computedOf(f,y)((g,A)=>ae(g??!1,A??!1))),t),t!=null&&s?j:r.Empty),r.When(r.computedOf(B,l)((g,A)=>g&&A!=null),()=>r.html.div(r.attr.class("bc-input-wrapper__description bc-input-wrapper__description--under-label"),r.attr.id(D),l))),i!=null?q(i):r.Empty,a):r.Empty,r.html.div(r.attr.class("bc-input-wrapper__content"),[D,O].filter(Boolean).length>0?r.dataAttr.describedby([D,O].filter(Boolean).join(" ")):r.Empty,s?r.dataAttr.required("true"):r.Empty,r.When(f,()=>r.dataAttr.invalid("true")),u),r.When(r.computedOf(B,l)((g,A)=>!g&&A!=null),()=>r.html.div(r.attr.class("bc-input-wrapper__description"),r.attr.id(D),l)),r.When(f,()=>r.html.div(r.attr.class("bc-input-wrapper__error"),r.attr.id(O),r.aria.live("polite"),r.attr.role("alert"),c)),...k)};function ne(...e){return r.html.div(r.attr.class("bc-stack"),...e)}const H=((e,s)=>()=>{e.markTouched(),s?.()}),_=(e,s)=>t=>{e.change(t),s?.(t)};function N(e,s){const{controller:t,onBlur:a,onChange:i,id:l,triggerOn:u,...c}=s;return e({id:l??t.name,disabled:t.disabled,value:t.signal,hasError:t.errorVisible,name:t.name,...c,onInput:u==="input"?_(t,i):void 0,onChange:u!=="input"?_(t,i):void 0,onBlur:H(t,a)})}function le(e,{id:s,labelFor:t,...a},...i){const l=s??a.controller.name??I("control"),u=t??l;return M({...a,hasError:a.controller.errorVisible,error:r.TextNode(a.controller.error.map(c=>c??"")),labelFor:u,content:N(c=>e({...c,id:l}),a)},...i)}function z(e,s){const{toInput:t,fromInput:a,controller:i,...l}=s,u=i.transform(t,a);return N(e,{...l,controller:u})}function ce(e,{id:s,labelFor:t,...a},...i){const l=s??a.controller.name??I("control");return M({...a,labelFor:t??l,content:z(e,{...a,id:l})},...i)}function oe(e){return e.split(".").map(t=>{const a=t.match(/^\[(\d+)\]$/);return a?Number(a[1]):t})}function W(e){return typeof e=="number"?`[${e}]`:`.${e}`}function R(e){if(e.length===0)return"";const[s,...t]=e;return[typeof s=="number"?`[${s}]`:s,...t.map(W)].join("")}const ue={valid:h.valid,invalid(e){return h.invalid({message:e})},invalidFields(e){const s={};for(const[t,a]of Object.entries(e))s[t]=typeof a=="string"?{message:a}:a;return h.invalid({dependencies:s})},fromError(e){return h.invalid(e)}};function V(e){return function(t){if(t.type==="valid")return t;let a=t.error;for(const i of e)if(a=a?.dependencies?.[i],a==null)return h.valid;return h.invalid(a)}}class w{path;change;signal;status;error;hasError;touched;errorVisible;dirty;dependencyErrors;#e={disabled:r.prop(!1),touched:r.prop(!1)};#t;#s=r.prop(void 0);parent;disabled;#r=[];disabledOrHasErrors;constructor(s,t,a,i,l,u=E){this.path=s,this.change=t,this.signal=a,this.status=i,this.#t=u,this.#s.set(a.value),this.error=i.map(c=>c?.type==="invalid"?c.error?.message:void 0),this.hasError=this.error.map(c=>c!=null),this.touched=this.#e.touched,l.validationMode?this.errorVisible=r.computedOf(this.hasError,this.touched,l.validationMode)((c,d,m)=>m==="eager"?!!c:!!c&&!!d):this.errorVisible=r.computedOf(this.hasError,this.touched)((c,d)=>!!c&&!!d),this.dirty=r.computedOf(this.signal,this.#s)((c,d)=>!this.#t(c,d)),this.dependencyErrors=i.map(c=>c?.type==="invalid"?c.error?.dependencies:void 0),this.parent=l,this.disabled=r.computedOf(this.#e.disabled,l.disabled)((c,d)=>c||d),this.disabledOrHasErrors=r.computedOf(this.disabled,this.hasError)((c,d)=>c||d),this.onDispose(()=>{this.#e.disabled.dispose(),this.#e.touched.dispose(),this.disabled.dispose(),this.error.dispose(),this.errorVisible.dispose(),this.dirty.dispose(),this.#s.dispose(),this.dependencyErrors.dispose(),this.disabledOrHasErrors.dispose()})}get name(){return R(this.path)}onDispose=s=>{this.#r.push(s)};dispose=()=>{for(const s of this.#r)try{s()}catch(t){console.error("Error in dispose callback:",t)}this.#r.length=0};setDisabled=s=>{this.#e.disabled.set(s)};disable=()=>this.setDisabled(!0);enable=()=>this.setDisabled(!1);markTouched=()=>{this.#e.touched.set(!0)};resetTouched=()=>{this.#e.touched.set(!1)};markPristine=()=>{this.#s.set(this.signal.value)};reset=()=>{this.change(this.#s.value)};array=(s=E)=>new K(this.path,this.change,this.signal,this.status,this.parent,s);object=(s=E)=>new U(this.path,this.change,this.signal,this.status,this.parent,s);transform=(s,t,a=[],i=E)=>new w([...this.path,...a],l=>this.change(t(l)),this.signal.map(s,i),this.status.map(V(a)),this.parent,i);asyncTransform=(s,t,a,i=[],l=E)=>new w([...this.path,...i],u=>{t(u).then(c=>this.change(c))},this.signal.mapAsync(s,a,void 0,l),this.status.map(V(i)),this.parent,l)}class U extends w{#e=new Map;#t=new Map;#s=new Map;#r=r.prop(!1);touchedDeep=this.#r;#i=new Map;#a=new Map;#l=r.prop(!1);dirtyDeep=this.#l;#o;#u;#c=()=>{let s=!1;for(const t of this.#t.values())if(t){s=!0;break}this.#r.set(this.touched.value||s)};constructor(s,t,a,i,l,u){super(s,t,a.map(d=>d??{},u),i,l,u),this.#o=this.touched.on(()=>{this.#c()}),this.#u=this.dirty.on(()=>{this.#n()});const c=this.signal.on(()=>this.#n());this.onDispose(()=>{for(const d of this.#e.values())d.dispose();this.#e.clear();for(const d of this.#s.values())d();this.#s.clear(),this.#t.clear(),this.#r.dispose();for(const d of this.#a.values())d();this.#a.clear(),this.#i.clear(),this.#l.dispose(),this.#o(),this.#u(),c()})}field=s=>{if(this.#e.has(s))return this.#e.get(s);const t=async u=>{this.change({...this.signal.value,[s]:u})},a=new w([...this.path,s],t,this.signal.map(u=>u[s]),this.status.map(V([s])),{disabled:this.disabled,validationMode:this.parent.validationMode});this.#e.set(s,a);const i=a.touched.on(u=>{this.#t.set(s,u),this.#c()});this.#s.set(s,i);const l=a.dirty.on(u=>{this.#i.set(s,u),this.#n()});return this.#a.set(s,l),a};markAllTouched=()=>{this.markTouched();const s=this.signal.value;for(const t of Object.keys(s))this.field(t).markTouched();for(const t of this.#e.values())t.markTouched()};markAllPristine=()=>{this.markPristine();const s=this.signal.value;for(const t of Object.keys(s))this.field(t).markPristine?.();for(const t of this.#e.values())t.markPristine?.()};#n=()=>{let s=!1;for(const t of this.#i.values())if(t){s=!0;break}this.#l.set(this.dirty.value||s)}}class K extends w{#e=new Array;length;#t=new Map;#s=new Map;#r=r.prop(!1);touchedDeep=this.#r;#i=new Map;#a=new Map;#l=r.prop(!1);dirtyDeep=this.#l;#o;#u;#c=()=>{let s=!1;for(const t of this.#t.values())if(t){s=!0;break}this.#r.set(this.touched.value||s)};constructor(s,t,a,i,l,u){const c=a.map(p=>p??[],u);super(s,t,c,i,l,u);const d=c.on(p=>{const v=this.#e.length-p.length;v>0&&(this.#e.splice(p.length,v).forEach((b,k)=>{const f=p.length+k;b.dispose(),this.#s.get(f)?.(),this.#s.delete(f),this.#t.delete(f),this.#a.get(f)?.(),this.#a.delete(f),this.#i.delete(f)}),this.#c(),this.#n())});this.length=c.map(p=>p.length),this.#o=this.touched.on(()=>{this.#c()}),this.#u=this.dirty.on(()=>{this.#n()});const m=this.signal.on(()=>this.#n());this.onDispose(()=>{for(const p of this.#e)p.dispose();this.length.dispose(),this.#e.length=0,d(),c.dispose();for(const p of this.#s.values())p();this.#s.clear(),this.#t.clear(),this.#r.dispose();for(const p of this.#a.values())p();this.#a.clear(),this.#i.clear(),this.#l.dispose(),this.#o(),this.#u(),m()})}item=s=>{if(this.#e[s])return this.#e[s];const t=async u=>{const c=this.signal.value.slice();c[s]=u,this.change(c)},a=new w([...this.path,s],t,this.signal.map(u=>u[s]),this.status.map(V([s])),{disabled:this.disabled,validationMode:this.parent.validationMode});this.#e[s]=a;const i=a.touched.on(u=>{this.#t.set(s,u),this.#c()});this.#s.set(s,i);const l=a.dirty.on(u=>{this.#i.set(s,u),this.#n()});return this.#a.set(s,l),a};push=(...s)=>{this.change([...this.signal.value,...s])};pop=()=>{this.splice(this.signal.value.length-1,1)};shift=()=>{this.splice(0,1)};unshift=(...s)=>{this.change([...s,...this.signal.value])};removeAt=s=>{this.splice(s,1)};splice=(s,t)=>{const a=this.signal.value.slice();a.splice(s,t),this.change(a)};move=(s,t,a=1)=>{if(a<1||s===t)return;const i=this.signal.value.slice(),l=i.splice(s,a);i.splice(t,0,...l),this.change(i)};markAllTouched=()=>{this.markTouched();const s=this.signal.value.length;for(let t=0;t<s;t++)this.item(t).markTouched()};markAllPristine=()=>{this.markPristine();const s=this.signal.value.length;for(let t=0;t<s;t++)this.item(t).markPristine?.()};#n=()=>{let s=!1;for(const t of this.#i.values())if(t){s=!0;break}this.#l.set(this.dirty.value||s)}}function G(e){function s(t){return typeof t=="number"?t:t.toString()}return e.map(t=>typeof t=="object"&&t.key!=null?s(t.key):s(t))}function J(e){const s=e.filter(i=>i.path==null||i.path.length===0).map(i=>i.message),t=e.filter(i=>i.path!=null&&i.path.length>0).reduce((i,l)=>{const u=G(l.path),c=u.pop();let d=i;for(const m of u)d.dependencies==null&&(d.dependencies={}),d.dependencies[m]==null&&(d.dependencies[m]={}),d=d.dependencies[m];return d.dependencies==null&&(d.dependencies={}),d.dependencies[c]={message:l.message},i},{}),a=s.join(`
|
|
1
|
+
"use strict";const r=require("@tempots/dom"),F=require("./translations-WPN3ibDg.cjs"),P=new Map;function I(e){const s=P.get(e)??0;return P.set(e,s+1),`${e}-${s}`}const n={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,s){return n.isSuccess(e)?e.value:s},getOrElseLazy(e,s){return n.isSuccess(e)?e.value:s()},getOrNull(e){return n.isSuccess(e)?e.value:null},getOrUndefined(e){return n.isSuccess(e)?e.value:void 0},getUnsafe:e=>{if(n.isSuccess(e))return e.value;throw n.isFailure(e)?e.error:new Error("Cannot get value from a not-asked or loading result")},match:(e,{success:s,failure:t,loading:a,notAsked:i=a})=>n.isSuccess(e)?s(e.value):n.isFailure(e)?t(e.error):n.isNotAsked(e)?i():a(e.previousValue),effect:(e,s)=>{switch(e.type){case"AsyncSuccess":s.success?s.success(e.value):s.else?.();break;case"AsyncFailure":s.failure?s.failure(e.error):s.else?.();break;case"Loading":s.loading?s.loading(e.previousValue):s.else?.();break;case"NotAsked":s.notAsked?s.notAsked():s.else?.();break}return e},whenSuccess:(e,s)=>(n.isSuccess(e)&&s(e.value),e),whenFailure:(e,s)=>(n.isFailure(e)&&s(e.error),e),equals:(e,s,t={valueEquals:(a,i)=>a===i,errorEquals:(a,i)=>a===i})=>e.type==="AsyncSuccess"&&s.type==="AsyncSuccess"?t.valueEquals(e.value,s.value):e.type==="AsyncFailure"&&s.type==="AsyncFailure"?t.errorEquals(e.error,s.error):e.type==="Loading"&&s.type==="Loading"?t.valueEquals(e.previousValue,s.previousValue):e.type==="NotAsked"&&s.type==="NotAsked",all:e=>{const s=[];for(const t of e)if(n.isSuccess(t))s.push(t.value);else return t;return n.success(s)},ofPromise:async e=>{try{const s=await e;return n.success(s)}catch(s){return n.failure(s instanceof Error?s:new Error(String(s)))}},map:(e,s)=>{switch(e.type){case"AsyncSuccess":return n.success(s(e.value));case"NotAsked":return n.notAsked;case"AsyncFailure":return n.failure(e.error);case"Loading":return n.loading(e.previousValue!=null?s(e.previousValue):void 0)}},flatMap:(e,s)=>{switch(e.type){case"AsyncSuccess":return s(e.value);case"NotAsked":return n.notAsked;case"AsyncFailure":return n.failure(e.error);case"Loading":return n.loading()}},mapError:(e,s)=>{switch(e.type){case"AsyncSuccess":return n.success(e.value);case"NotAsked":return n.notAsked;case"AsyncFailure":return n.failure(s(e.error));case"Loading":return n.loading(e.previousValue)}},flatMapError:(e,s)=>{switch(e.type){case"AsyncSuccess":return n.success(e.value);case"NotAsked":return n.notAsked;case"AsyncFailure":return s(e.error);case"Loading":return n.loading(e.previousValue)}},toResult:e=>{switch(e.type){case"AsyncSuccess":return{type:"Success",value:e.value};case"AsyncFailure":return{type:"Failure",error:e.error};case"NotAsked":case"Loading":return}},isSettled(e){return e.type==="AsyncSuccess"||e.type==="AsyncFailure"},recover:(e,s)=>{switch(e.type){case"AsyncSuccess":return n.success(e.value);case"NotAsked":return n.notAsked;case"AsyncFailure":return n.success(s(e.error));case"Loading":return n.loading(e.previousValue)}},ap:(e,s)=>n.isSuccess(e)&&n.isSuccess(s)?n.success(e.value(s.value)):n.isFailure(e)?n.failure(e.error):n.isFailure(s)?n.failure(s.error):n.isLoading(e)||n.isLoading(s)?n.loading():n.notAsked,map2:(e,s,t)=>n.isSuccess(e)&&n.isSuccess(s)?n.success(t(e.value,s.value)):n.isFailure(e)?n.failure(e.error):n.isFailure(s)?n.failure(s.error):n.isLoading(e)||n.isLoading(s)?n.loading():n.notAsked,map3:(e,s,t,a)=>n.isSuccess(e)&&n.isSuccess(s)&&n.isSuccess(t)?n.success(a(e.value,s.value,t.value)):n.isFailure(e)?n.failure(e.error):n.isFailure(s)?n.failure(s.error):n.isFailure(t)?n.failure(t.error):n.isLoading(e)||n.isLoading(s)||n.isLoading(t)?n.loading():n.notAsked},E=(e,s)=>e===s||e!==e&&s!==s,h={valid:{type:"valid"},invalid(e){return{type:"invalid",error:e}},isValid(e){return e.type==="valid"},isInvalid(e){return e.type==="invalid"},match:(e,s,t)=>h.isValid(e)?s():t(e.error),toResult:(e,s)=>h.match(e,()=>o.success(s),t=>o.failure(t)),effect:(e,s)=>(e.type==="valid"?s.valid?s.valid():s.else?.():s.invalid?s.invalid(e.error):s.else?.(),e),whenValid:(e,s)=>(h.isValid(e)&&s(),e),whenInvalid:(e,s)=>(h.isInvalid(e)&&s(e.error),e),mapError:(e,s)=>e.type==="invalid"?h.invalid(s(e.error)):e,flatMapError:(e,s)=>e.type==="invalid"?s(e.error):e,combine:(e,s,t)=>h.isValid(e)&&h.isValid(s)?h.valid:h.isInvalid(e)&&h.isInvalid(s)?h.invalid(t(e.error,s.error)):h.isInvalid(e)?e:s,all:e=>{for(const s of e)if(h.isInvalid(s))return s;return h.valid},allErrors:e=>{const s=[];for(const t of e)h.isInvalid(t)&&s.push(t.error);return s.length>0?h.invalid(s):h.valid},equals:(e,s,t=(a,i)=>a===i)=>e.type==="valid"&&s.type==="valid"?!0:e.type==="invalid"&&s.type==="invalid"?t(e.error,s.error):!1,recover:e=>h.valid,getError:e=>{if(h.isInvalid(e))return e.error},getErrorOrElse:(e,s)=>h.isInvalid(e)?e.error:s},o={success(e){return{type:"Success",value:e}},failure(e){return{type:"Failure",error:e}},map:(e,s)=>e.type==="Success"?o.success(s(e.value)):e,flatMap:(e,s)=>e.type==="Success"?s(e.value):e,toAsync(e){return o.match(e,s=>n.success(s),s=>n.failure(s))},toValidation(e){return o.match(e,()=>h.valid,s=>h.invalid(s))},isSuccess(e){return e.type==="Success"},isFailure(e){return e.type==="Failure"},getOrElse(e,s){return o.isSuccess(e)?e.value:s},getOrElseLazy(e,s){return o.isSuccess(e)?e.value:s()},getOrNull(e){return o.isSuccess(e)?e.value:null},getOrUndefined(e){return o.isSuccess(e)?e.value:void 0},getUnsafe:e=>{if(o.isSuccess(e))return e.value;throw e.error},match:(e,s,t)=>o.isSuccess(e)?s(e.value):t(e.error),effect:(e,s)=>(e.type==="Success"?s.success?s.success(e.value):s.else?.():s.failure?s.failure(e.error):s.else?.(),e),whenSuccess:(e,s)=>(o.isSuccess(e)&&s(e.value),e),whenFailure:(e,s)=>(o.isFailure(e)&&s(e.error),e),combine:(e,s,t,a)=>o.match(e,i=>o.match(s,l=>o.success(t(i,l)),l=>o.failure(l)),i=>o.match(s,l=>o.failure(i),l=>o.failure(a(i,l)))),equals:(e,s,t={valueEquals:(a,i)=>a===i,errorEquals:(a,i)=>a===i})=>e.type==="Success"&&s.type==="Success"?t.valueEquals(e.value,s.value):e.type==="Failure"&&s.type==="Failure"?t.errorEquals(e.error,s.error):!1,all:e=>{const s=[];for(const t of e)if(o.isSuccess(t))s.push(t.value);else return t;return o.success(s)},mapError:(e,s)=>e.type==="Failure"?o.failure(s(e.error)):e,flatMapError:(e,s)=>e.type==="Failure"?s(e.error):e,recover:(e,s)=>e.type==="Failure"?{type:"Success",value:s(e.error)}:e,ap:(e,s)=>o.isSuccess(e)&&o.isSuccess(s)?o.success(e.value(s.value)):o.isFailure(e)?o.failure(e.error):o.failure(s.error),map2:(e,s,t)=>o.isSuccess(e)&&o.isSuccess(s)?o.success(t(e.value,s.value)):o.isFailure(e)?o.failure(e.error):o.failure(s.error),map3:(e,s,t,a)=>o.isSuccess(e)&&o.isSuccess(s)&&o.isSuccess(t)?o.success(a(e.value,s.value,t.value)):o.isFailure(e)?o.failure(e.error):o.isFailure(s)?o.failure(s.error):o.failure(t.error),ofPromise:async e=>{try{const s=await e;return o.success(s)}catch(s){return o.failure(s instanceof Error?s:new Error(String(s)))}},swap:e=>o.isSuccess(e)?o.failure(e.value):o.success(e.error),fromNullable:(e,s)=>e==null?o.failure(s):o.success(e),fromNullableLazy:(e,s)=>e==null?o.failure(s()):o.success(e),tryCatch:e=>{try{return o.success(e())}catch(s){return o.failure(s instanceof Error?s:new Error(String(s)))}}};function Z({size:e="sm",icon:s="line-md:close",disabled:t,roundedness:a="full",color:i="base",onClick:l,label:u},...c){return r.Use(F.BeatUII18n,d=>{const m=r.coalesce(u,d.$.closeModal);return F.Button({variant:"text",size:e,roundedness:a,disabled:t,color:i,onClick:l},r.attr.title(m),r.aria.label(m),...c,F.Icon({icon:s,size:e??"sm"}))})}function T(e){return`bc-label bc-label--${e}`}const ee=(...e)=>r.html.span(r.attr.class(T("emphasis")),...e),q=(...e)=>r.html.span(r.attr.class(T("default")),...e),$=(...e)=>r.html.span(r.attr.class(T("muted")),...e),se=(...e)=>r.html.span(r.attr.class(T("danger")),...e),te=e=>{const{value:s,onBlur:t,onChange:a,placeholder:i,disabled:l,id:u,checkedIcon:c,uncheckedIcon:d,iconSize:m="lg"}=e,p=u??I("checkbox"),v=`${p}-label`,b=()=>{if(r.Value.get(l??!1))return;const f=r.Value.get(s);a?.(!f)},k=f=>{r.Value.get(l??!1)||(f.key===" "||f.key==="Enter")&&(f.preventDefault(),b())};return F.InputContainer({baseContainer:!0,growInput:!1,...e,input:r.html.span(r.attr.class("bc-checkbox-input"),r.html.span(r.attr.class("bc-checkbox-input__checkbox"),r.attr.class(r.Value.map(s,f=>f?"bc-checkbox-input__checkbox--checked":"bc-checkbox-input__checkbox--unchecked")),r.attr.class(r.Value.map(l??!1,f=>f?"bc-checkbox-input__checkbox--disabled":"")),r.attr.id(p),r.attr.role("checkbox"),r.attr.tabindex(r.Value.map(l??!1,f=>f?-1:0)),r.aria.checked(s),r.aria.disabled(l),i!=null?r.aria.labelledby(v):r.Empty,r.on.keydown(k),t!=null?r.on.blur(t):r.Empty,F.Icon({icon:r.computedOf(s,c,d)((f,y,S)=>f?y??"akar-icons/check-box-fill":S??"akar-icons/box"),accessibility:"decorative",size:m})),i!=null?r.html.label(r.attr.class("bc-checkbox-input__label"),r.attr.id(v),r.attr.for(p),$(i)):r.Empty)},r.on.click(b))},j=r.html.span(r.attr.class("bc-input-wrapper__required")," *");function re(e){const s=["bc-input-wrapper"];return e!=="vertical"&&s.push(`bc-input-wrapper--${e}`),s.join(" ")}function ae(e,s){const t=["bc-input-wrapper__label-text"];return e?t.push("bc-input-wrapper__label-text--error"):s?t.push("bc-input-wrapper__label-text--disabled"):t.push("bc-input-wrapper__label-text--default"),t.join(" ")}function ie(e,s){if(e==="horizontal-fixed"&&s!=null)return`--input-wrapper-label-width: ${s}`}const M=({fullWidth:e=!1,required:s,label:t,labelChildren:a,context:i,description:l,content:u,error:c,labelFor:d,hasError:m,disabled:p,layout:v,labelWidth:b},...k)=>{const f=m??c!=null,y=p??!1,S=v??"vertical",C=I("input-wrapper"),D=l?`${C}-description`:void 0,O=c!=null?`${C}-error`:void 0,B=r.computedOf(S)(g=>g!=="vertical"),Y=r.computedOf(S,b??void 0)((g,A)=>ie(g,A));return r.html.div(r.attr.class(r.Value.map(S,g=>re(g))),r.attr.class(r.Value.map(e,g=>g?"bc-input-wrapper--full-width":"")),r.attr.style(Y),t!=null||i!=null?r.html.div(r.attr.class("bc-input-wrapper__header"),r.html.div(r.attr.class("bc-input-wrapper__label-section"),r.html.label(r.attr.class("bc-input-wrapper__label"),d!=null?r.attr.for(d):r.Empty,r.html.span(r.attr.class(r.computedOf(f,y)((g,A)=>ae(g??!1,A??!1))),t),t!=null&&s?j:r.Empty),r.When(r.computedOf(B,l)((g,A)=>g&&A!=null),()=>r.html.div(r.attr.class("bc-input-wrapper__description bc-input-wrapper__description--under-label"),r.attr.id(D),l))),i!=null?q(i):r.Empty,a):r.Empty,r.html.div(r.attr.class("bc-input-wrapper__content"),[D,O].filter(Boolean).length>0?r.dataAttr.describedby([D,O].filter(Boolean).join(" ")):r.Empty,s?r.dataAttr.required("true"):r.Empty,r.When(f,()=>r.dataAttr.invalid("true")),u),r.When(r.computedOf(B,l)((g,A)=>!g&&A!=null),()=>r.html.div(r.attr.class("bc-input-wrapper__description"),r.attr.id(D),l)),r.When(f,()=>r.html.div(r.attr.class("bc-input-wrapper__error"),r.attr.id(O),r.aria.live("polite"),r.attr.role("alert"),c)),...k)};function ne(...e){return r.html.div(r.attr.class("bc-stack"),...e)}const H=((e,s)=>()=>{e.markTouched(),s?.()}),_=(e,s)=>t=>{e.change(t),s?.(t)};function N(e,s){const{controller:t,onBlur:a,onChange:i,id:l,triggerOn:u,...c}=s;return e({id:l??t.name,disabled:t.disabled,value:t.signal,hasError:t.errorVisible,name:t.name,...c,onInput:u==="input"?_(t,i):void 0,onChange:u!=="input"?_(t,i):void 0,onBlur:H(t,a)})}function le(e,{id:s,labelFor:t,...a},...i){const l=s??a.controller.name??I("control"),u=t??l;return M({...a,hasError:a.controller.errorVisible,error:r.TextNode(a.controller.error.map(c=>c??"")),labelFor:u,content:N(c=>e({...c,id:l}),a)},...i)}function z(e,s){const{toInput:t,fromInput:a,controller:i,...l}=s,u=i.transform(t,a);return N(e,{...l,controller:u})}function ce(e,{id:s,labelFor:t,...a},...i){const l=s??a.controller.name??I("control");return M({...a,labelFor:t??l,content:z(e,{...a,id:l})},...i)}function oe(e){return e.split(".").map(t=>{const a=t.match(/^\[(\d+)\]$/);return a?Number(a[1]):t})}function W(e){return typeof e=="number"?`[${e}]`:`.${e}`}function R(e){if(e.length===0)return"";const[s,...t]=e;return[typeof s=="number"?`[${s}]`:s,...t.map(W)].join("")}const ue={valid:h.valid,invalid(e){return h.invalid({message:e})},invalidFields(e){const s={};for(const[t,a]of Object.entries(e))s[t]=typeof a=="string"?{message:a}:a;return h.invalid({dependencies:s})},fromError(e){return h.invalid(e)}};function V(e){return function(t){if(t.type==="valid")return t;let a=t.error;for(const i of e)if(a=a?.dependencies?.[i],a==null)return h.valid;return h.invalid(a)}}class w{path;change;signal;status;error;hasError;touched;errorVisible;dirty;dependencyErrors;#e={disabled:r.prop(!1),touched:r.prop(!1)};#t;#s=r.prop(void 0);parent;disabled;#r=[];disabledOrHasErrors;constructor(s,t,a,i,l,u=E){this.path=s,this.change=t,this.signal=a,this.status=i,this.#t=u,this.#s.set(a.value),this.error=i.map(c=>c?.type==="invalid"?c.error?.message:void 0),this.hasError=this.error.map(c=>c!=null),this.touched=this.#e.touched,l.validationMode?this.errorVisible=r.computedOf(this.hasError,this.touched,l.validationMode)((c,d,m)=>m==="eager"?!!c:!!c&&!!d):this.errorVisible=r.computedOf(this.hasError,this.touched)((c,d)=>!!c&&!!d),this.dirty=r.computedOf(this.signal,this.#s)((c,d)=>!this.#t(c,d)),this.dependencyErrors=i.map(c=>c?.type==="invalid"?c.error?.dependencies:void 0),this.parent=l,this.disabled=r.computedOf(this.#e.disabled,l.disabled)((c,d)=>c||d),this.disabledOrHasErrors=r.computedOf(this.disabled,this.hasError)((c,d)=>c||d),this.onDispose(()=>{this.#e.disabled.dispose(),this.#e.touched.dispose(),this.disabled.dispose(),this.error.dispose(),this.errorVisible.dispose(),this.dirty.dispose(),this.#s.dispose(),this.dependencyErrors.dispose(),this.disabledOrHasErrors.dispose()})}get name(){return R(this.path)}onDispose=s=>{this.#r.push(s)};dispose=()=>{for(const s of this.#r)try{s()}catch(t){console.error("Error in dispose callback:",t)}this.#r.length=0};setDisabled=s=>{this.#e.disabled.set(s)};disable=()=>this.setDisabled(!0);enable=()=>this.setDisabled(!1);markTouched=()=>{this.#e.touched.set(!0)};resetTouched=()=>{this.#e.touched.set(!1)};markPristine=()=>{this.#s.set(this.signal.value)};reset=()=>{this.change(this.#s.value)};array=(s=E)=>new K(this.path,this.change,this.signal,this.status,this.parent,s);object=(s=E)=>new U(this.path,this.change,this.signal,this.status,this.parent,s);transform=(s,t,a=[],i=E)=>new w([...this.path,...a],l=>this.change(t(l)),this.signal.map(s,i),this.status.map(V(a)),this.parent,i);asyncTransform=(s,t,a,i=[],l=E)=>new w([...this.path,...i],u=>{t(u).then(c=>this.change(c))},this.signal.mapAsync(s,a,void 0,l),this.status.map(V(i)),this.parent,l)}class U extends w{#e=new Map;#t=new Map;#s=new Map;#r=r.prop(!1);touchedDeep=this.#r;#i=new Map;#a=new Map;#l=r.prop(!1);dirtyDeep=this.#l;#o;#u;#c=()=>{let s=!1;for(const t of this.#t.values())if(t){s=!0;break}this.#r.set(this.touched.value||s)};constructor(s,t,a,i,l,u){super(s,t,a.map(d=>d??{},u),i,l,u),this.#o=this.touched.on(()=>{this.#c()}),this.#u=this.dirty.on(()=>{this.#n()});const c=this.signal.on(()=>this.#n());this.onDispose(()=>{for(const d of this.#e.values())d.dispose();this.#e.clear();for(const d of this.#s.values())d();this.#s.clear(),this.#t.clear(),this.#r.dispose();for(const d of this.#a.values())d();this.#a.clear(),this.#i.clear(),this.#l.dispose(),this.#o(),this.#u(),c()})}field=s=>{if(this.#e.has(s))return this.#e.get(s);const t=async u=>{this.change({...this.signal.value,[s]:u})},a=new w([...this.path,s],t,this.signal.map(u=>u[s]),this.status.map(V([s])),{disabled:this.disabled,validationMode:this.parent.validationMode});this.#e.set(s,a);const i=a.touched.on(u=>{this.#t.set(s,u),this.#c()});this.#s.set(s,i);const l=a.dirty.on(u=>{this.#i.set(s,u),this.#n()});return this.#a.set(s,l),a};markAllTouched=()=>{this.markTouched();const s=this.signal.value;for(const t of Object.keys(s))this.field(t).markTouched();for(const t of this.#e.values())t.markTouched()};markAllPristine=()=>{this.markPristine();const s=this.signal.value;for(const t of Object.keys(s))this.field(t).markPristine?.();for(const t of this.#e.values())t.markPristine?.()};#n=()=>{let s=!1;for(const t of this.#i.values())if(t){s=!0;break}this.#l.set(this.dirty.value||s)}}class K extends w{#e=new Array;length;#t=new Map;#s=new Map;#r=r.prop(!1);touchedDeep=this.#r;#i=new Map;#a=new Map;#l=r.prop(!1);dirtyDeep=this.#l;#o;#u;#c=()=>{let s=!1;for(const t of this.#t.values())if(t){s=!0;break}this.#r.set(this.touched.value||s)};constructor(s,t,a,i,l,u){const c=a.map(p=>p??[],u);super(s,t,c,i,l,u);const d=c.on(p=>{const v=this.#e.length-p.length;v>0&&(this.#e.splice(p.length,v).forEach((b,k)=>{const f=p.length+k;b.dispose(),this.#s.get(f)?.(),this.#s.delete(f),this.#t.delete(f),this.#a.get(f)?.(),this.#a.delete(f),this.#i.delete(f)}),this.#c(),this.#n())});this.length=c.map(p=>p.length),this.#o=this.touched.on(()=>{this.#c()}),this.#u=this.dirty.on(()=>{this.#n()});const m=this.signal.on(()=>this.#n());this.onDispose(()=>{for(const p of this.#e)p.dispose();this.length.dispose(),this.#e.length=0,d(),c.dispose();for(const p of this.#s.values())p();this.#s.clear(),this.#t.clear(),this.#r.dispose();for(const p of this.#a.values())p();this.#a.clear(),this.#i.clear(),this.#l.dispose(),this.#o(),this.#u(),m()})}item=s=>{if(this.#e[s])return this.#e[s];const t=async u=>{const c=this.signal.value.slice();c[s]=u,this.change(c)},a=new w([...this.path,s],t,this.signal.map(u=>u[s]),this.status.map(V([s])),{disabled:this.disabled,validationMode:this.parent.validationMode});this.#e[s]=a;const i=a.touched.on(u=>{this.#t.set(s,u),this.#c()});this.#s.set(s,i);const l=a.dirty.on(u=>{this.#i.set(s,u),this.#n()});return this.#a.set(s,l),a};push=(...s)=>{this.change([...this.signal.value,...s])};pop=()=>{this.splice(this.signal.value.length-1,1)};shift=()=>{this.splice(0,1)};unshift=(...s)=>{this.change([...s,...this.signal.value])};removeAt=s=>{this.splice(s,1)};splice=(s,t)=>{const a=this.signal.value.slice();a.splice(s,t),this.change(a)};move=(s,t,a=1)=>{if(a<1||s===t)return;const i=this.signal.value.slice(),l=i.splice(s,a);i.splice(t,0,...l),this.change(i)};markAllTouched=()=>{this.markTouched();const s=this.signal.value.length;for(let t=0;t<s;t++)this.item(t).markTouched()};markAllPristine=()=>{this.markPristine();const s=this.signal.value.length;for(let t=0;t<s;t++)this.item(t).markPristine?.()};#n=()=>{let s=!1;for(const t of this.#i.values())if(t){s=!0;break}this.#l.set(this.dirty.value||s)}}function G(e){function s(t){return typeof t=="number"?t:t.toString()}return e.map(t=>typeof t=="object"&&t.key!=null?s(t.key):s(t))}function J(e){const s=e.filter(i=>i.path==null||i.path.length===0).map(i=>i.message),t=e.filter(i=>i.path!=null&&i.path.length>0).reduce((i,l)=>{const u=G(l.path),c=u.pop();let d=i;for(const m of u)d.dependencies==null&&(d.dependencies={}),d.dependencies[m]==null&&(d.dependencies[m]={}),d=d.dependencies[m];return d.dependencies==null&&(d.dependencies={}),d.dependencies[c]={message:l.message},i},{}),a=s.join(`
|
|
2
2
|
`);return{...t,message:a!=""?a:void 0}}function Q({initialValue:e,onChange:s,validate:t,equals:a,validationMode:i,validateDebounceMs:l}){const u=r.Value.deriveProp(e),c=r.prop(h.valid),d=r.prop(!1),m=r.prop(i??"onTouched"),p=y=>{c.set(y)};let v;const b=async y=>{if(t!=null){const S=await t(y);p(S)}},k=async y=>{u.set(y),s?.(y);const S=m.value;if(t!=null){if(S==="onSubmit")return;const C=l??0;C>0?(v&&clearTimeout(v),v=setTimeout(()=>{b(y)},C)):await b(y)}},f=new w([],k,u,c,{disabled:d,validationMode:m},a??E);return f.onDispose(()=>{d.dispose(),u.dispose(),c.dispose(),m.dispose(),v&&clearTimeout(v)}),{controller:f,setStatus:p}}function x(e){return r.Fragment(r.attr.disabled(e.disabled),r.attr.name(e.name))}function de(e,{triggerOn:s="change"}={}){return r.Fragment(x(e),r.attr.value(e.signal),(s==="input"?r.on.input:r.on.change)(r.emitValue(e.change)))}function he(e,{triggerOn:s="change"}={}){return r.Fragment(x(e),r.attr.valueAsNumber(e.signal),(s==="input"?r.on.input:r.on.change)(r.emitValueAsNumber(e.change)))}function L(e){return e.issues!=null?h.invalid(J(e.issues)):h.valid}async function pe({task:e,errorMessage:s,errorPath:t=["root"],validation:a}){try{const i=await e();return a!=null?a(i):h.valid}catch(i){const l=s??(i instanceof Error?i.message:"Operation failed");return t.length===1&&t[0]==="root"?h.invalid({message:l}):h.invalid({dependencies:X(t,l)})}}function X(e,s){if(e.length===1)return{[e[0]]:{message:s}};const[t,...a]=e;return{[t]:{dependencies:X(a,s)}}}function fe({initialValue:e={},schema:s,onSubmit:t=async()=>h.valid,validationMode:a,validateDebounceMs:i}){const{controller:l,setStatus:u}=Q({initialValue:e,validationMode:a??"onTouched",validateDebounceMs:i,validate:(a??"onTouched")==="onSubmit"||s==null?void 0:async p=>L(await s["~standard"].validate(p))}),c=r.prop(!1),d=l.object();return d.onDispose(c.dispose),{controller:d,setStatus:u,submit:async p=>{if(c.set(!0),p?.preventDefault(),d.markAllTouched(),s!=null){const b=d.signal.value,k=L(await s["~standard"].validate(b));if(u(k),k.type==="invalid"){c.set(!1);return}}const v=await t(d.signal.value);c.set(!1),v.type==="invalid"&&u(v)},submitting:c}}exports.ArrayController=K;exports.BaseControl=N;exports.BaseMappedControl=z;exports.CheckboxInput=te;exports.CloseButton=Z;exports.Control=le;exports.Controller=w;exports.ControllerValidation=ue;exports.DangerLabel=se;exports.EmphasisLabel=ee;exports.InputWrapper=M;exports.Label=q;exports.MappedControl=ce;exports.MutedLabel=$;exports.O=E;exports.ObjectController=U;exports.RequiredSymbol=j;exports.Stack=ne;exports.connectCommonAttributes=x;exports.connectNumberInput=he;exports.connectStringInput=de;exports.convertStandardSchemaIssues=J;exports.convertStandardSchemaPathToPath=G;exports.i=h;exports.makeMapValidation=V;exports.makeOnBlurHandler=H;exports.makeOnChangeHandler=_;exports.parsePath=oe;exports.pathToString=R;exports.sessionId=I;exports.standardSchemaResultToValidation=L;exports.taskToValidation=pe;exports.useController=Q;exports.useForm=fe;exports.wrapSegment=W;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Use as X, coalesce as Y, aria as L, attr as d, html as y, on as V, Value as F, Empty as D, computedOf as S, When as N, dataAttr as B, TextNode as Z, prop as w, Fragment as q, emitValue as ee, emitValueAsNumber as se } from "@tempots/dom";
|
|
2
|
-
import { a as te, B as re, c as R, b as ie } from "./translations-
|
|
2
|
+
import { a as te, B as re, c as R, b as ie } from "./translations-0tLX4x7M.js";
|
|
3
3
|
const H = /* @__PURE__ */ new Map();
|
|
4
4
|
function x(e) {
|
|
5
5
|
const s = H.get(e) ?? 0;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./translations-WPN3ibDg.cjs"),h={loadingExtended:"Đang tải, vui lòng đợi",loadingShort:"Đang tải...",locale:"Ngôn ngữ",iconDescription:"Biểu tượng",loadingIcon:"Biểu tượng tải",failedToLoadIcon:"Không thể tải biểu tượng",editLabel:"Chỉnh sửa",selectOne:"Chọn một",selectNone:"Không có",selectMany:"Chọn nhiều",noResults:"Không có kết quả",passwordPlaceholderText:"Mật khẩu bí mật",togglePasswordVisibility:"Chuyển đổi hiển thị mật khẩu",toggleMenu:"Chuyển đổi menu",toggleAside:"Chuyển đổi bảng bên",mainNavigation:"Điều hướng chính",sidebar:"Thanh bên",closeDrawer:"Đóng ngăn kéo",closeModal:"Đóng modal",confirm:"Xác nhận",cancel:"Hủy",addLabel:"Thêm",removeItem:"Xóa mục",currentLocale:"Tiếng Việt",ar:"Tiếng Ả Rập",de:"Tiếng Đức",en:"Tiếng Anh",es:"Tiếng Tây Ban Nha",fr:"Tiếng Pháp",hi:"Tiếng Hindi",it:"Tiếng Ý",ja:"Tiếng Nhật",ko:"Tiếng Hàn",nl:"Tiếng Hà Lan",pl:"Tiếng Ba Lan",pt:"Tiếng Bồ Đào Nha",ru:"Tiếng Nga",tr:"Tiếng Thổ Nhĩ Kỳ",vi:"Tiếng Việt",zh:"Tiếng Trung",he:"Tiếng Do Thái",fa:"Tiếng Ba Tư",ur:"Tiếng Urdu",emailPlaceholderText:"Nhập email của bạn",incrementValue:"Tăng giá trị",decrementValue:"Giảm giá trị",dropZoneInstructions:n=>n?"Nhấp để chọn hoặc kéo tệp vào đây, hoặc nhấn Enter hoặc Space để mở trình chọn tệp":"Kéo tệp vào đây",fileSizeUnits:["Byte","KB","MB","GB","TB"],removeFile:"Xóa tệp",clearAllFiles:"Xóa tất cả tệp",clearValue:"Xóa giá trị",unknownType:"Loại không xác định",filesInputInstructions:(n,i,e)=>{let o=n==null||n>1?"Nhấp để chọn hoặc kéo tệp vào đây":"Nhấp để chọn hoặc kéo một tệp vào đây";if(n||i){const t=[];if(n!=null&&n>1&&t.push(`tối đa ${n} tệp`),i&&e){const l=a.formatFileSize(i,{units:e});t.push(`mỗi tệp tối đa ${l}`)}t.length>0&&(o+=` (${t.join(", ")})`)}return o},prosemirror:{bold:"Bold",italic:"Italic",code:"Code",link:"Link",removeLink:"Remove Link",heading:n=>`Heading ${n}`,bulletList:"Bullet List",orderedList:"Ordered List",blockquote:"Blockquote",codeBlock:"Code Block",horizontalRule:"Horizontal Rule",linkUrlPlaceholder:"https://example.com"},pdfPageViewer:{loading:"Đang tải PDF...",loadFailed:"Không thể tải PDF",invalidPdf:"Tệp PDF không hợp lệ",pageOutOfRange:(n,i)=>`Trang ${n} nằm ngoài phạm vi (1-${i})`,renderFailed:"Không thể hiển thị trang PDF"}};exports.default=h;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as h } from "./translations-
|
|
1
|
+
import { f as h } from "./translations-0tLX4x7M.js";
|
|
2
2
|
const g = {
|
|
3
3
|
loadingExtended: "Đang tải, vui lòng đợi",
|
|
4
4
|
loadingShort: "Đang tải...",
|
|
@@ -8,6 +8,7 @@ const g = {
|
|
|
8
8
|
failedToLoadIcon: "Không thể tải biểu tượng",
|
|
9
9
|
editLabel: "Chỉnh sửa",
|
|
10
10
|
selectOne: "Chọn một",
|
|
11
|
+
selectNone: "Không có",
|
|
11
12
|
selectMany: "Chọn nhiều",
|
|
12
13
|
noResults: "Không có kết quả",
|
|
13
14
|
passwordPlaceholderText: "Mật khẩu bí mật",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Value as p, prop as ot, computedOf as D, html as _, attr as u, svg as et, svgAttr as Y, on as $, Empty as A, When as W, Fragment as E, aria as N, emitValue as tt, Use as ct, input as it, emitValueAsNullableDate as nt, emitValueAsNullableDateTime as st, style as lt, Repeat as gt, emit as dt, emitValueAsNumber as B } from "@tempots/dom";
|
|
2
|
-
import { F as ht, $ as mt, N as X, T as ft, U as bt, a as yt } from "./deep-merge-
|
|
3
|
-
import { C as V, b as U, a as wt, c as Q, T as xt, L as $t, d as rt, e as Mt } from "./translations-
|
|
2
|
+
import { F as ht, $ as mt, N as X, T as ft, U as bt, a as yt } from "./deep-merge-1uN6CG6K.js";
|
|
3
|
+
import { C as V, b as U, a as wt, c as Q, T as xt, L as $t, d as rt, e as Mt } from "./translations-0tLX4x7M.js";
|
|
4
4
|
import { AutoSelect as It, ElementRect as _t } from "@tempots/ui";
|
|
5
|
-
import { E as kt, P as Tt } from "./notice-
|
|
6
|
-
import { s as Ct } from "./use-form-
|
|
5
|
+
import { E as kt, P as Tt } from "./notice-C-964yaY.js";
|
|
6
|
+
import { s as Ct } from "./use-form-D4rqJkvG.js";
|
|
7
7
|
function ut(t) {
|
|
8
8
|
if (typeof t != "string") return !1;
|
|
9
9
|
const e = t.startsWith("#") ? t.slice(1) : t;
|