@hiai-gg/docsmint 0.4.9 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/backend/src/lib/api-key-facade.ts +1 -0
- package/dist/backend/index.js +38379 -18500
- package/dist/backend-api-key-facade.js +23 -0
- package/dist/client.js +2 -7
- package/dist/frontend/{CategoryDialog-CxVyaBV5.js → CategoryDialog-DmlX0Z97.js} +109 -108
- package/dist/frontend/ConfirmDialog-DgMTQBq4.js +134 -0
- package/dist/frontend/{CreateSnapshotDialog-BDgFTeFn.js → CreateSnapshotDialog-CXW4sCuf.js} +29 -29
- package/dist/frontend/DatePicker-D6E-EEtZ.js +340 -0
- package/dist/frontend/{DeleteDialog-CvAr2WPu.js → DeleteDialog-8k6JYWCx.js} +3 -3
- package/dist/frontend/{FolderNode--l1g8bcL.js → FolderNode-D3rN3yLV.js} +8 -8
- package/dist/frontend/{FolderTreeSelector-CyB8y2Sm.js → FolderTreeSelector-BMB1MS9N.js} +3 -3
- package/dist/frontend/{Icon-CooFj4Ee.js → Icon-Db-o32_E.js} +1 -1
- package/dist/frontend/{SettingsDialog-BB7h7GWw.js → SettingsDialog-DEx1eEZm.js} +290 -290
- package/dist/frontend/ShareDialog-uEf8Ks02.js +166 -0
- package/dist/frontend/Sidebar-BthP-jOS.js +2043 -0
- package/dist/frontend/TagCreateDialog-Bb0-Vtzh.js +261 -0
- package/dist/frontend/api/attachments.js +1 -1
- package/dist/frontend/api/categories.d.ts +3 -3
- package/dist/frontend/api/categories.js +1 -1
- package/dist/frontend/api/documents.js +1 -1
- package/dist/frontend/api/share.js +1 -1
- package/dist/frontend/api/tags.js +1 -1
- package/dist/frontend/{api-keys-CpkrA8rD.js → api-keys-DIwAdYkg.js} +10 -10
- package/dist/frontend/app-shell.d.ts +5 -1
- package/dist/frontend/app-shell.js +83 -72
- package/dist/frontend/{attachments-BuILSs56.js → attachments-C2DBzU-r.js} +13 -13
- package/dist/frontend/{camera-iKXDOOWT.js → camera-CzCxBOpc.js} +2 -2
- package/dist/frontend/{categories-Drnns7N6.js → categories-X7gK8azc.js} +0 -2
- package/dist/frontend/{check-D-UuvBuh.js → check-BIi-Ghti.js} +2 -2
- package/dist/frontend/{chevron-down-CiPtYyFh.js → chevron-down-C2ft7XUV.js} +2 -2
- package/dist/frontend/{circle-check-tSPE1V6t.js → circle-check-BrqfiQH1.js} +2 -2
- package/dist/frontend/{clock-DJHbHZb8.js → clock-Dz86E4Kz.js} +2 -2
- package/dist/frontend/collaboration.d.ts +4 -2
- package/dist/frontend/collaboration.js +114 -89
- package/dist/frontend/components/category-dialog.js +1 -1
- package/dist/frontend/components/create-snapshot-dialog.js +1 -1
- package/dist/frontend/components/delete-dialog.js +1 -1
- package/dist/frontend/components/editor/document-editor.js +1203 -1190
- package/dist/frontend/components/editor/document-title.js +2 -2
- package/dist/frontend/components/editor/markdown-toggle.js +4 -4
- package/dist/frontend/components/folder-node.js +1 -1
- package/dist/frontend/components/folder-tree-selector.js +1 -1
- package/dist/frontend/components/save-as-dialog.js +145 -144
- package/dist/frontend/components/settings.js +1 -1
- package/dist/frontend/components/share-dialog.js +1 -1
- package/dist/frontend/components/sidebar.js +1 -1
- package/dist/frontend/components/tag-create-dialog.js +1 -1
- package/dist/frontend/components/version-history.js +34 -34
- package/dist/frontend/{confirm-dialog-C4jTRbiS.js → confirm-dialog-CzmoZw3a.js} +20 -20
- package/dist/frontend/{copy-GppwRMjX.js → copy-CvCh4ZVt.js} +2 -2
- package/dist/frontend/dashboard.js +1133 -1087
- package/dist/frontend/{dialog-Bevp9mmM.js → dialog-Ce79C9fd.js} +1 -1
- package/dist/frontend/{dist-C3857Spp.js → dist-DQa_OHOa.js} +2 -2
- package/dist/frontend/{documents-Bc7b_MSZ.js → documents-CwCs1rA7.js} +52 -12
- package/dist/frontend/{dropdown-menu-CRSby3e9.js → dropdown-menu-CJ_7V3N0.js} +45 -45
- package/dist/frontend/{floating-layer-anchor-BDs7vO-M.js → floating-layer-anchor-S5RSefGN.js} +1 -1
- package/dist/frontend/{folder-DeWhnD7O.js → folder-Cx60MRpi.js} +3 -3
- package/dist/frontend/i18n.js +3 -3
- package/dist/frontend/{messages-C5Q890i2.js → messages-DIovIZrK.js} +46 -44
- package/dist/frontend/{rotate-ccw-B4Q7brmV.js → rotate-ccw-ta4NosZ0.js} +2 -2
- package/dist/frontend/{route-context-BqQQ5c4i.js → route-context-DYQlUfzL.js} +14 -11
- package/dist/frontend/search.js +431 -415
- package/dist/frontend/{select-value-GXwx90Pr.js → select-value-JCAp2PmU.js} +466 -466
- package/dist/frontend/{share-Cu7SSJuJ.js → share-D7JtkC85.js} +2 -2
- package/dist/frontend/{tag-HxRazVN_.js → tag-DhVFHMcV.js} +3 -3
- package/dist/frontend/{tag-store.svelte-CG7RrlDT.js → tag-store.svelte-ogVCMCbv.js} +1 -1
- package/dist/frontend/{tags-CtCV0Djo.js → tags-BdCaMGfj.js} +18 -18
- package/dist/frontend/{x-CzBsnJ2x.js → x-cfdlccjs.js} +2 -2
- package/dist/frontend-ssr/api/attachments.js +1 -1
- package/dist/frontend-ssr/api/categories.js +1 -1
- package/dist/frontend-ssr/api/documents.js +1 -1
- package/dist/frontend-ssr/api/share.js +1 -1
- package/dist/frontend-ssr/api/tags.js +1 -1
- package/dist/frontend-ssr/app-shell.js +30 -26
- package/dist/frontend-ssr/assets/{CategoryDialog-BcGW8-Kf.js → CategoryDialog-DDu37Oub.js} +13 -11
- package/dist/frontend-ssr/assets/ConfirmDialog-BhAelejz.js +131 -0
- package/dist/frontend-ssr/assets/{CreateSnapshotDialog-1bROJ-Rn.js → CreateSnapshotDialog-DNAjd4eD.js} +2 -2
- package/dist/frontend-ssr/assets/{DatePicker-B1ML8OVz.js → DatePicker-Cp6Qmgdb.js} +17 -29
- package/dist/frontend-ssr/assets/{DeleteDialog-tBYaP0L3.js → DeleteDialog-DG9Lm38J.js} +2 -2
- package/dist/frontend-ssr/assets/{FolderNode-CpHrpOED.js → FolderNode-CrLWqHJH.js} +5 -5
- package/dist/frontend-ssr/assets/{FolderTreeSelector-DZNZ2oI6.js → FolderTreeSelector-Bxi8EqMm.js} +8 -12
- package/dist/frontend-ssr/assets/{Icon-B0Zqppjo.js → Icon-QwirKi9Y.js} +16 -28
- package/dist/frontend-ssr/assets/{SettingsDialog-C2SMWJL8.js → SettingsDialog-BymUxBgg.js} +20 -27
- package/dist/frontend-ssr/assets/{ShareDialog-vMvJLRfn.js → ShareDialog-B82t8oJi.js} +4 -2
- package/dist/frontend-ssr/assets/{Sidebar-DKqmwreh.js → Sidebar-CI8YKbrY.js} +55 -57
- package/dist/frontend-ssr/assets/{TagCreateDialog-B0DPEfmQ.js → TagCreateDialog-B7wDbVqG.js} +7 -5
- package/dist/frontend-ssr/assets/{api-keys-DFqX39MT.js → api-keys-DIbclwj5.js} +10 -10
- package/dist/frontend-ssr/assets/{attachments-CWBxE3Vz.js → attachments-CXgatN0B.js} +9 -9
- package/dist/frontend-ssr/assets/{camera-CdxscTw-.js → camera-D6s20LDi.js} +6 -10
- package/dist/frontend-ssr/assets/{categories-CTCtdv7V.js → categories-av9xjeg5.js} +0 -2
- package/dist/frontend-ssr/assets/{chevron-down-CSSNGNh_.js → chevron-down-CvqKATjM.js} +6 -10
- package/dist/frontend-ssr/assets/{chevron-right-B4p7Sk6X.js → chevron-right-DKD7WXjz.js} +6 -10
- package/dist/frontend-ssr/assets/{circle-check-CI1v4vYh.js → circle-check-CPS9dKEo.js} +6 -10
- package/dist/frontend-ssr/assets/{clock-IL-eX2di.js → clock-CzsE58TH.js} +6 -10
- package/dist/frontend-ssr/assets/{confirm-dialog-BCthVwUY.js → confirm-dialog-B3C0WeMn.js} +20 -32
- package/dist/frontend-ssr/assets/{copy-CjV57nGQ.js → copy-DkkCPkBL.js} +6 -10
- package/dist/frontend-ssr/assets/{documents-PObdTOiT.js → documents-CZ-wQohy.js} +58 -12
- package/dist/frontend-ssr/assets/{dropdown-menu-Bj5rbqbB.js → dropdown-menu-Dn_vQq9b.js} +7 -11
- package/dist/frontend-ssr/assets/{floating-layer-anchor-CYIE8Oj6.js → floating-layer-anchor-BIAu-252.js} +1 -1
- package/dist/frontend-ssr/assets/{folder-DChhG7qN.js → folder-DYIE-XPP.js} +6 -10
- package/dist/frontend-ssr/assets/{loader-circle-DZsrZ-er.js → loader-circle-CIEWGyfP.js} +6 -10
- package/dist/frontend-ssr/assets/{messages-CvqpZNJe.js → messages-D-auzk9H.js} +23 -1
- package/dist/frontend-ssr/assets/{rotate-ccw-BlgWwaiq.js → rotate-ccw-dJSqPyTd.js} +6 -10
- package/dist/frontend-ssr/assets/{route-context-uca_b2Px.js → route-context-BPRerEtZ.js} +11 -8
- package/dist/frontend-ssr/assets/{select-value-6Lk0ToYd.js → select-value-DBhbkNcc.js} +1 -1
- package/dist/frontend-ssr/assets/{share-BTBJelxA.js → share-qTqvd6Lu.js} +2 -2
- package/dist/frontend-ssr/assets/{tag-GZEuGWk1.js → tag-BmiVU_Ej.js} +11 -19
- package/dist/frontend-ssr/assets/{tag-store.svelte-DvgUduhd.js → tag-store.svelte-BM1lUI_P.js} +1 -1
- package/dist/frontend-ssr/assets/{tags-BId2wdYd.js → tags-BQsI_6OW.js} +12 -12
- package/dist/frontend-ssr/collaboration.js +37 -12
- package/dist/frontend-ssr/components/category-dialog.js +1 -1
- package/dist/frontend-ssr/components/create-snapshot-dialog.js +1 -1
- package/dist/frontend-ssr/components/delete-dialog.js +1 -1
- package/dist/frontend-ssr/components/editor/document-editor.js +143 -207
- package/dist/frontend-ssr/components/editor/document-title.js +1 -1
- package/dist/frontend-ssr/components/editor/markdown-toggle.js +2 -2
- package/dist/frontend-ssr/components/folder-node.js +1 -1
- package/dist/frontend-ssr/components/folder-tree-selector.js +1 -1
- package/dist/frontend-ssr/components/save-as-dialog.js +8 -6
- package/dist/frontend-ssr/components/settings.js +1 -1
- package/dist/frontend-ssr/components/share-dialog.js +1 -1
- package/dist/frontend-ssr/components/sidebar.js +1 -1
- package/dist/frontend-ssr/components/tag-create-dialog.js +1 -1
- package/dist/frontend-ssr/components/version-history.js +19 -27
- package/dist/frontend-ssr/dashboard.js +344 -185
- package/dist/frontend-ssr/i18n.js +1 -1
- package/dist/frontend-ssr/search.js +16 -20
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/types.d.ts +1 -3
- package/dist/workspace.d.ts +0 -2
- package/dist/workspace.js +0 -2
- package/package.json +1 -1
- package/packages/cli/src/index.ts +1 -1
- package/packages/db/src/with-tenant.ts +2 -0
- package/packages/mcp-server/src/index.ts +1 -1
- package/dist/frontend/ConfirmDialog-NFGXRa3E.js +0 -214
- package/dist/frontend/DatePicker-BZRBluzF.js +0 -256
- package/dist/frontend/ShareDialog-BUOkYSlw.js +0 -165
- package/dist/frontend/Sidebar-fbtYC3qs.js +0 -2037
- package/dist/frontend/TagCreateDialog-B9YZBNHi.js +0 -260
- package/dist/frontend-ssr/assets/ConfirmDialog-DjMFKc0V.js +0 -420
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
import { Ar as e, Br as t, Dr as n, Er as r, Fr as i, Hr as a, Ir as o, Lr as s, Mr as c, Nr as l, Or as u, Pr as d, Qn as f, Rr as p, Vr as m, Xn as h, ar as g, jr as _, kr as v, zr as y } from "./messages-C5Q890i2.js";
|
|
2
|
-
import { n as b } from "./share-Cu7SSJuJ.js";
|
|
3
|
-
import { h as x, u as S } from "./keyboard.svelte-CApmX0vl.js";
|
|
4
|
-
import { t as C } from "./clipboard-Cgzxc0_R.js";
|
|
5
|
-
import "svelte/internal/disclose-version";
|
|
6
|
-
import * as w from "svelte/internal/client";
|
|
7
|
-
//#region src/lib/components/ShareDialog.svelte
|
|
8
|
-
var ee = w.from_html("<input type=\"password\" class=\"flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring\"/>"), te = w.from_html("<button> </button>"), T = w.from_html("<span class=\"inline-flex items-center gap-1 rounded-md bg-secondary px-2 py-0.5 text-xs\"> <button class=\"text-muted-foreground hover:text-foreground\">×</button></span>"), E = w.from_html("<div class=\"flex flex-wrap gap-1.5\"></div>"), D = w.from_html("<p class=\"text-xs text-destructive\"> </p>"), O = w.from_html("<div class=\"space-y-4\"><div class=\"flex items-center justify-between\"><span class=\"text-sm font-medium\"> </span> <button role=\"switch\"><span></span></button></div> <!> <div class=\"space-y-2\"><span class=\"text-sm font-medium\"> </span> <div class=\"flex gap-2\"></div></div> <div class=\"space-y-2\"><span class=\"text-sm font-medium\"> </span> <div class=\"flex gap-2\"><input type=\"email\" placeholder=\"guest@email.com\" class=\"flex h-9 flex-1 rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring\"/> <button class=\"rounded-md border border-border px-3 py-1.5 text-sm font-medium hover:bg-accent\"> </button></div> <!></div> <!> <button class=\"w-full rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground hover:bg-primary/90 disabled:opacity-50\"> </button></div>"), k = w.from_html("<div class=\"space-y-4\"><p class=\"text-sm text-muted-foreground\"> </p> <div class=\"flex items-center gap-2\"><code class=\"flex-1 truncate rounded-md bg-muted px-3 py-2 text-sm\"> </code> <button class=\"rounded-md bg-primary px-3 py-2 text-sm font-medium text-primary-foreground hover:bg-primary/90\"> </button></div> <button class=\"w-full rounded-md border border-border px-4 py-2 text-sm font-medium hover:bg-accent\"> </button></div>"), A = w.from_html("<div class=\"fixed inset-0 layer-modal flex items-center justify-center\"><button class=\"absolute inset-0 bg-black/50\"></button> <div class=\"relative z-10 w-full max-w-md rounded-lg border border-border bg-background p-6 shadow-lg\" role=\"dialog\" aria-modal=\"true\"><div class=\"mb-4 flex items-center justify-between\"><h2 class=\"text-lg font-semibold\"> </h2> <button class=\"rounded-md p-1 text-muted-foreground hover:bg-accent hover:text-foreground\">✕</button></div> <!></div></div>");
|
|
9
|
-
function j(j, M) {
|
|
10
|
-
w.push(M, !0);
|
|
11
|
-
let N = w.prop(M, "open", 15, !1), P = w.prop(M, "documentId", 3, ""), F = w.prop(M, "documentTitle", 3, ""), I = w.prop(M, "folderId", 3, ""), L = w.prop(M, "folderName", 3, ""), R = w.prop(M, "categoryId", 3, ""), z = w.prop(M, "categoryName", 3, ""), B = w.state(!1), V = w.state(""), H = w.state("7d"), U = w.state(""), W = w.state(w.proxy([])), G = w.state(""), K = w.state(!1), q = w.state(!1), J = w.state("");
|
|
12
|
-
w.user_effect(() => (S({
|
|
13
|
-
id: "share-dialog-escape",
|
|
14
|
-
keys: "escape",
|
|
15
|
-
description: "Close share dialog",
|
|
16
|
-
scope: "dialog",
|
|
17
|
-
enabled: N(),
|
|
18
|
-
overrideInput: !0,
|
|
19
|
-
handler: () => {
|
|
20
|
-
N() && Q();
|
|
21
|
-
}
|
|
22
|
-
}), () => {
|
|
23
|
-
x("share-dialog-escape");
|
|
24
|
-
}));
|
|
25
|
-
function Y() {
|
|
26
|
-
let e = w.get(U).trim();
|
|
27
|
-
e?.includes("@") && !w.get(W).includes(e) && (w.set(W, [...w.get(W), e], !0), w.set(U, ""));
|
|
28
|
-
}
|
|
29
|
-
function X(e) {
|
|
30
|
-
w.set(W, w.get(W).filter((t) => t !== e), !0);
|
|
31
|
-
}
|
|
32
|
-
async function ne() {
|
|
33
|
-
w.set(q, !0), w.set(J, "");
|
|
34
|
-
try {
|
|
35
|
-
let e = await b({
|
|
36
|
-
documentId: P() || void 0,
|
|
37
|
-
folderId: I() || void 0,
|
|
38
|
-
categoryId: R() || void 0,
|
|
39
|
-
password: w.get(B) ? w.get(V) : void 0,
|
|
40
|
-
expiresIn: w.get(H),
|
|
41
|
-
guestEmails: w.get(W).length > 0 ? w.get(W) : void 0
|
|
42
|
-
});
|
|
43
|
-
w.set(G, `${window.location.origin}/s/${e.token}`);
|
|
44
|
-
} catch (e) {
|
|
45
|
-
w.set(J, e instanceof Error ? e.message : g(), !0), console.error("ShareDialog: createShareLink failed", e);
|
|
46
|
-
} finally {
|
|
47
|
-
w.set(q, !1);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
async function Z() {
|
|
51
|
-
w.get(G) && (await C(w.get(G)), w.set(K, !0), setTimeout(() => {
|
|
52
|
-
w.set(K, !1);
|
|
53
|
-
}, 2e3));
|
|
54
|
-
}
|
|
55
|
-
function Q() {
|
|
56
|
-
N(!1), w.set(G, ""), w.set(B, !1), w.set(V, ""), w.set(H, "7d"), w.set(W, [], !0), w.set(J, "");
|
|
57
|
-
}
|
|
58
|
-
var $ = w.comment(), re = w.first_child($), ie = (g) => {
|
|
59
|
-
var b = A(), x = w.child(b), S = w.sibling(x, 2), C = w.child(S), j = w.child(C), M = w.child(j);
|
|
60
|
-
w.reset(j);
|
|
61
|
-
var N = w.sibling(j, 2);
|
|
62
|
-
w.reset(C);
|
|
63
|
-
var P = w.sibling(C, 2), I = (n) => {
|
|
64
|
-
var r = O(), a = w.child(r), u = w.child(a), f = w.child(u, !0);
|
|
65
|
-
w.reset(u);
|
|
66
|
-
var h = w.sibling(u, 2), g = w.child(h);
|
|
67
|
-
w.reset(h), w.reset(a);
|
|
68
|
-
var b = w.sibling(a, 2), x = (e) => {
|
|
69
|
-
var t = ee();
|
|
70
|
-
w.remove_input_defaults(t), w.template_effect((e) => w.set_attribute(t, "placeholder", e), [() => s()]), w.bind_value(t, () => w.get(V), (e) => w.set(V, e)), w.append(e, t);
|
|
71
|
-
};
|
|
72
|
-
w.if(b, (e) => {
|
|
73
|
-
w.get(B) && e(x);
|
|
74
|
-
});
|
|
75
|
-
var S = w.sibling(b, 2), C = w.child(S), k = w.child(C, !0);
|
|
76
|
-
w.reset(C);
|
|
77
|
-
var A = w.sibling(C, 2);
|
|
78
|
-
w.each(A, 21, () => [
|
|
79
|
-
["1h", d()],
|
|
80
|
-
["1d", l()],
|
|
81
|
-
["7d", c()],
|
|
82
|
-
["30d", _()],
|
|
83
|
-
["never", i()]
|
|
84
|
-
], w.index, (e, t) => {
|
|
85
|
-
var n = w.derived(() => w.to_array(w.get(t), 2));
|
|
86
|
-
let r = () => w.get(n)[0], i = () => w.get(n)[1];
|
|
87
|
-
var a = te(), o = w.child(a, !0);
|
|
88
|
-
w.reset(a), w.template_effect(() => {
|
|
89
|
-
w.set_class(a, 1, `rounded-md border px-2.5 py-1 text-xs font-medium transition-colors
|
|
90
|
-
${w.get(H) === r() ? "border-primary bg-primary text-primary-foreground" : "border-border text-muted-foreground hover:bg-accent"}`), w.set_text(o, i());
|
|
91
|
-
}), w.delegated("click", a, () => {
|
|
92
|
-
w.set(H, r(), !0);
|
|
93
|
-
}), w.append(e, a);
|
|
94
|
-
}), w.reset(A), w.reset(S);
|
|
95
|
-
var j = w.sibling(S, 2), M = w.child(j), N = w.child(M, !0);
|
|
96
|
-
w.reset(M);
|
|
97
|
-
var P = w.sibling(M, 2), F = w.child(P);
|
|
98
|
-
w.remove_input_defaults(F);
|
|
99
|
-
var I = w.sibling(F, 2), L = w.child(I, !0);
|
|
100
|
-
w.reset(I), w.reset(P);
|
|
101
|
-
var R = w.sibling(P, 2), z = (e) => {
|
|
102
|
-
var t = E();
|
|
103
|
-
w.each(t, 21, () => w.get(W), w.index, (e, t) => {
|
|
104
|
-
var n = T(), r = w.child(n), i = w.sibling(r);
|
|
105
|
-
w.reset(n), w.template_effect(() => w.set_text(r, `${w.get(t) ?? ""} `)), w.delegated("click", i, () => X(w.get(t))), w.append(e, n);
|
|
106
|
-
}), w.reset(t), w.append(e, t);
|
|
107
|
-
};
|
|
108
|
-
w.if(R, (e) => {
|
|
109
|
-
w.get(W).length > 0 && e(z);
|
|
110
|
-
}), w.reset(j);
|
|
111
|
-
var G = w.sibling(j, 2), K = (e) => {
|
|
112
|
-
var t = D(), n = w.child(t, !0);
|
|
113
|
-
w.reset(t), w.template_effect(() => w.set_text(n, w.get(J))), w.append(e, t);
|
|
114
|
-
};
|
|
115
|
-
w.if(G, (e) => {
|
|
116
|
-
w.get(J) && e(K);
|
|
117
|
-
});
|
|
118
|
-
var Z = w.sibling(G, 2), Q = w.child(Z, !0);
|
|
119
|
-
w.reset(Z), w.reset(r), w.template_effect((e, t, n, r, i, a) => {
|
|
120
|
-
w.set_text(f, e), w.set_class(h, 1, `relative inline-flex h-5 w-9 items-center rounded-full transition-colors ${w.get(B) ? "bg-primary" : "bg-input"}`), w.set_attribute(h, "aria-checked", w.get(B)), w.set_attribute(h, "aria-label", t), w.set_class(g, 1, `inline-block h-4 w-4 rounded-full bg-white shadow transition-transform ${w.get(B) ? "translate-x-4" : "translate-x-0.5"}`), w.set_text(k, n), w.set_text(N, r), w.set_text(L, i), Z.disabled = w.get(q), w.set_text(Q, a);
|
|
121
|
-
}, [
|
|
122
|
-
() => y(),
|
|
123
|
-
() => p(),
|
|
124
|
-
() => o(),
|
|
125
|
-
() => e(),
|
|
126
|
-
() => v(),
|
|
127
|
-
() => w.get(q) ? t() : m()
|
|
128
|
-
]), w.delegated("click", h, () => {
|
|
129
|
-
w.set(B, !w.get(B));
|
|
130
|
-
}), w.delegated("keydown", F, (e) => {
|
|
131
|
-
e.key === "Enter" && (e.preventDefault(), Y());
|
|
132
|
-
}), w.bind_value(F, () => w.get(U), (e) => w.set(U, e)), w.delegated("click", I, Y), w.delegated("click", Z, ne), w.append(n, r);
|
|
133
|
-
}, R = (e) => {
|
|
134
|
-
var t = k(), i = w.child(t), a = w.child(i, !0);
|
|
135
|
-
w.reset(i);
|
|
136
|
-
var o = w.sibling(i, 2), s = w.child(o), c = w.child(s, !0);
|
|
137
|
-
w.reset(s);
|
|
138
|
-
var l = w.sibling(s, 2), d = w.child(l, !0);
|
|
139
|
-
w.reset(l), w.reset(o);
|
|
140
|
-
var f = w.sibling(o, 2), p = w.child(f, !0);
|
|
141
|
-
w.reset(f), w.reset(t), w.template_effect((e, t, n) => {
|
|
142
|
-
w.set_text(a, e), w.set_text(c, w.get(G)), w.set_text(d, t), w.set_text(p, n);
|
|
143
|
-
}, [
|
|
144
|
-
() => r(),
|
|
145
|
-
() => w.get(K) ? n() : u(),
|
|
146
|
-
() => h()
|
|
147
|
-
]), w.delegated("click", l, Z), w.delegated("click", f, Q), w.append(e, t);
|
|
148
|
-
};
|
|
149
|
-
w.if(P, (e) => {
|
|
150
|
-
w.get(G) ? e(R, -1) : e(I);
|
|
151
|
-
}), w.reset(S), w.reset(b), w.template_effect((e, t, n) => {
|
|
152
|
-
w.set_attribute(x, "aria-label", e), w.set_text(M, `${t ?? ""} "${(z() || L() || F()) ?? ""}"`), w.set_attribute(N, "aria-label", n);
|
|
153
|
-
}, [
|
|
154
|
-
() => f(),
|
|
155
|
-
() => a(),
|
|
156
|
-
() => f()
|
|
157
|
-
]), w.delegated("click", x, Q), w.delegated("click", N, Q), w.append(g, b);
|
|
158
|
-
};
|
|
159
|
-
w.if(re, (e) => {
|
|
160
|
-
N() && e(ie);
|
|
161
|
-
}), w.append(j, $), w.pop();
|
|
162
|
-
}
|
|
163
|
-
w.delegate(["click", "keydown"]);
|
|
164
|
-
//#endregion
|
|
165
|
-
export { j as t };
|