@hiai-gg/docsmint 0.3.6 → 0.3.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. package/dist/backend/index.js +1 -1
  2. package/dist/frontend/CategoryDialog--rIE7FrH.js +580 -0
  3. package/dist/frontend/ConfirmDialog-Cpzyb55f.js +212 -0
  4. package/dist/frontend/CreateSnapshotDialog-CmkV-n2A.js +216 -0
  5. package/dist/frontend/DatePicker-Byynca7V.js +257 -0
  6. package/dist/frontend/DeleteDialog-ap6nOywZ.js +174 -0
  7. package/dist/frontend/FolderDialog-DmN_trV0.js +247 -0
  8. package/dist/frontend/FolderNode-C4B8a2fd.js +317 -0
  9. package/dist/frontend/FolderTreeSelector-D6ijiZTA.js +100 -0
  10. package/dist/frontend/Icon-DtNo0N1U.js +64 -0
  11. package/dist/frontend/SettingsDialog-2kTaTXAs.js +992 -0
  12. package/dist/frontend/ShareDialog-BBDGNF5n.js +165 -0
  13. package/dist/frontend/TagCreateDialog-DiLZnJo4.js +258 -0
  14. package/dist/frontend/api/attachments.d.ts +6 -0
  15. package/dist/frontend/api/attachments.js +2 -0
  16. package/dist/frontend/api/categories.js +1 -1
  17. package/dist/frontend/api/documents.js +1 -1
  18. package/dist/frontend/api/folders.js +1 -1
  19. package/dist/frontend/api/settings.js +1 -1
  20. package/dist/frontend/api/share.d.ts +5 -0
  21. package/dist/frontend/api/share.js +2 -0
  22. package/dist/frontend/api/tags.js +1 -1
  23. package/dist/frontend/api-keys-CpkrA8rD.js +35 -0
  24. package/dist/frontend/attachments-BuILSs56.js +50 -0
  25. package/dist/frontend/{settings-PCrOtied.js → auth-client-Cygmp1I2.js} +205 -265
  26. package/dist/frontend/awareness-snQ3RD9f.js +3714 -0
  27. package/dist/frontend/bundle-mjs-CP6Owz-8.js +1723 -0
  28. package/dist/frontend/camera-B7dAOd4s.js +28 -0
  29. package/dist/frontend/{categories-BE6ZpZl8.js → categories-izQovv2w.js} +1 -1
  30. package/dist/frontend/check-CDwRlG9T.js +24 -0
  31. package/dist/frontend/chevron-down-B7ZrjUmT.js +24 -0
  32. package/dist/frontend/circle-check-CDqeMB2d.js +28 -0
  33. package/dist/frontend/{client-C6QQGb0e.js → client-Bc5Fzx40.js} +833 -814
  34. package/dist/frontend/{client-B9hzI0W8.js → client-GbtOH90i.js} +1 -1
  35. package/dist/frontend/clipboard-Cgzxc0_R.js +16 -0
  36. package/dist/frontend/clock-Ck5Sn-Zl.js +28 -0
  37. package/dist/frontend/clsx-nmtDPO_P.js +16 -0
  38. package/dist/frontend/collaboration.d.ts +6 -0
  39. package/dist/frontend/collaboration.js +182 -0
  40. package/dist/frontend/components/category-dialog.d.ts +2 -0
  41. package/dist/frontend/components/category-dialog.js +2 -0
  42. package/dist/frontend/components/create-snapshot-dialog.d.ts +2 -0
  43. package/dist/frontend/components/create-snapshot-dialog.js +2 -0
  44. package/dist/frontend/components/delete-dialog.d.ts +2 -0
  45. package/dist/frontend/components/delete-dialog.js +2 -0
  46. package/dist/frontend/components/editor/document-editor.d.ts +3 -0
  47. package/dist/frontend/components/editor/document-editor.js +3021 -0
  48. package/dist/frontend/components/editor/document-title.d.ts +2 -0
  49. package/dist/frontend/components/editor/document-title.js +31 -0
  50. package/dist/frontend/components/editor/docx-serializer.d.ts +2 -0
  51. package/dist/frontend/components/editor/docx-serializer.js +14600 -0
  52. package/dist/frontend/components/editor/extensions.d.ts +2 -0
  53. package/dist/frontend/components/editor/extensions.js +2 -0
  54. package/dist/frontend/components/editor/markdown-toggle.d.ts +2 -0
  55. package/dist/frontend/components/editor/markdown-toggle.js +72 -0
  56. package/dist/frontend/components/editor/markdown.d.ts +1 -0
  57. package/dist/frontend/components/editor/markdown.js +2 -0
  58. package/dist/frontend/components/folder-node.d.ts +3 -0
  59. package/dist/frontend/components/folder-node.js +2 -0
  60. package/dist/frontend/components/folder-tree-selector.d.ts +2 -0
  61. package/dist/frontend/components/folder-tree-selector.js +2 -0
  62. package/dist/frontend/components/save-as-dialog.d.ts +2 -0
  63. package/dist/frontend/components/save-as-dialog.js +254 -0
  64. package/dist/frontend/components/settings.js +1 -1
  65. package/dist/frontend/components/share-dialog.d.ts +2 -0
  66. package/dist/frontend/components/share-dialog.js +2 -0
  67. package/dist/frontend/components/sidebar.js +1206 -3762
  68. package/dist/frontend/components/tag-create-dialog.d.ts +2 -0
  69. package/dist/frontend/components/tag-create-dialog.js +2 -0
  70. package/dist/frontend/components/version-history.d.ts +2 -0
  71. package/dist/frontend/components/version-history.js +293 -0
  72. package/dist/frontend/{context-DbnW5yib.js → context-BMD6XTPe.js} +0 -3
  73. package/dist/frontend/copy-CMAA6GP0.js +31 -0
  74. package/dist/frontend/dashboard.js +1148 -1224
  75. package/dist/frontend/{SettingsDialog-D4pgFD0D.js → db-ByrlYfaI.js} +923 -2002
  76. package/dist/frontend/dialog-BDkiG42a.js +213 -0
  77. package/dist/frontend/disclose-version-5I57E3LD.js +3 -0
  78. package/dist/frontend/dndzone-BzsOINtP.js +1199 -0
  79. package/dist/frontend/doc-tabs.d.ts +7 -0
  80. package/dist/frontend/doc-tabs.js +14 -0
  81. package/dist/frontend/document-drop-coordinator-C4xHMjwC.js +68 -0
  82. package/dist/frontend/document-drop-coordinator.d.ts +2 -0
  83. package/dist/frontend/document-drop-coordinator.js +2 -0
  84. package/dist/frontend/{documents-DFVS9SsL.js → documents-BsDkvzCm.js} +1 -1
  85. package/dist/frontend/editorExtensions-BMHvUbdk.js +27021 -0
  86. package/dist/frontend/ellipsis-vertical-BBuPldbW.js +519 -0
  87. package/dist/frontend/extension.js +6 -5
  88. package/dist/frontend/floating-layer-anchor-C51M4l6v.js +4513 -0
  89. package/dist/frontend/folder-TQjKY4yn.js +44 -0
  90. package/dist/frontend/folder-refresh.d.ts +8 -0
  91. package/dist/frontend/folder-refresh.js +2 -0
  92. package/dist/frontend/{folders-CGe9diAG.js → folders-CTuV_JtU.js} +1 -1
  93. package/dist/frontend/frontend.css +1 -1
  94. package/dist/frontend/i18n.js +1 -1
  95. package/dist/frontend/identity-DyWeNzu_.js +69 -0
  96. package/dist/frontend/index-client-jobkrWVL.js +86 -0
  97. package/dist/frontend/input-CBI6p4Xl.js +23 -0
  98. package/dist/frontend/keyboard.d.ts +14 -0
  99. package/dist/frontend/keyboard.js +2 -0
  100. package/dist/frontend/keyboard.svelte-D7H8DihC.js +133 -0
  101. package/dist/frontend/label-C-GkhEp4.js +30 -0
  102. package/dist/frontend/loader-circle-Bk-WFz9g.js +267 -0
  103. package/dist/frontend/markdown-BwnyjITU.js +11 -0
  104. package/dist/frontend/messages-BpYaLbzE.js +1091 -0
  105. package/dist/frontend/offline/identity.d.ts +6 -0
  106. package/dist/frontend/offline/identity.js +2 -0
  107. package/dist/frontend/resolve-BG4HgzpN.js +19 -0
  108. package/dist/frontend/rolldown-runtime-CWhphoD1.js +23 -0
  109. package/dist/frontend/rotate-ccw-CleZtJ5D.js +24 -0
  110. package/dist/frontend/search.js +637 -628
  111. package/dist/frontend/select-value-CvrWRkXW.js +1436 -0
  112. package/dist/frontend/settings-blyobazp.js +62 -0
  113. package/dist/frontend/share-Cu7SSJuJ.js +28 -0
  114. package/dist/frontend/shared-document.js +41 -40
  115. package/dist/frontend/subfolders-refresh-store.svelte-BsheoQma.js +65 -0
  116. package/dist/frontend/{tag-C5xrg-bb.js → tag-Dx3SmucJ.js} +7 -7
  117. package/dist/frontend/tag-store.svelte-CIaF4sdZ.js +29 -0
  118. package/dist/frontend/{tags-DVXTut0p.js → tags-CtCV0Djo.js} +1 -1
  119. package/dist/frontend/textarea-Dfp78XlL.js +23 -0
  120. package/dist/frontend/theme.js +1 -1
  121. package/dist/frontend/{theme.svelte-ei0QxXa8.js → theme.svelte-CROg1Hi5.js} +7 -7
  122. package/dist/frontend/types.d.ts +6 -0
  123. package/dist/frontend/types.js +0 -0
  124. package/dist/frontend/utils/clipboard.d.ts +1 -0
  125. package/dist/frontend/utils/clipboard.js +2 -0
  126. package/dist/frontend/utils/dndzone.d.ts +4 -0
  127. package/dist/frontend/utils/dndzone.js +2 -0
  128. package/dist/frontend/utils-C0OW2678.js +20 -0
  129. package/dist/frontend/utils-D8kmM3ub.js +8 -0
  130. package/dist/frontend/utils.d.ts +4 -0
  131. package/dist/frontend/utils.js +2 -0
  132. package/dist/frontend/x-DaTdeDXv.js +24 -0
  133. package/package.json +109 -1
  134. package/packages/cli/src/index.ts +1 -1
  135. package/packages/mcp-server/src/index.ts +1 -1
  136. package/dist/frontend/DatePicker-BcMD49PV.js +0 -275
  137. package/dist/frontend/ShareDialog-Dzh7rV7J.js +0 -1317
  138. package/dist/frontend/input-ieWIt8I7.js +0 -257
  139. package/dist/frontend/messages-CTGAsqFu.js +0 -1106
  140. package/dist/frontend/resolve-Bl6xmJl_.js +0 -2068
  141. package/dist/frontend/tag-store.svelte-B3839FYq.js +0 -6152
@@ -0,0 +1,2 @@
1
+ import type { Extensions } from "@tiptap/core";
2
+ export declare const editorExtensions: Extensions;
@@ -0,0 +1,2 @@
1
+ import { n as e, r as t, t as n } from "../../editorExtensions-BMHvUbdk.js";
2
+ export { n as TextAlignHeading, e as TextAlignParagraph, t as editorExtensions };
@@ -0,0 +1,2 @@
1
+ import type { Component } from "svelte";
2
+ export declare const MarkdownToggle: Component;
@@ -0,0 +1,72 @@
1
+ import "../../disclose-version-5I57E3LD.js";
2
+ import { $ as e, A as t, E as n, I as r, K as i, L as a, M as o, Q as s, V as c, Y as l, _t as u, at as d, d as f, dt as p, et as m, f as h, ft as g, gt as _, n as v, o as y, q as b, rt as x } from "../../client-Bc5Fzx40.js";
3
+ import { t as S } from "../../check-CDwRlG9T.js";
4
+ import { t as C } from "../../copy-CMAA6GP0.js";
5
+ import { dn as w, fn as T } from "../../messages-BpYaLbzE.js";
6
+ import { t as E } from "../../markdown-BwnyjITU.js";
7
+ //#region src/lib/components/editor/MarkdownToggle.svelte
8
+ var D = o("<!> <span>Copied!</span>", 1), O = o("<!> <span>Copy Raw</span>", 1), k = o("<div class=\"markdown-toggle svelte-1k98zvf\"><button type=\"button\" class=\"copy-btn svelte-1k98zvf\" aria-label=\"Copy markdown\" title=\"Copy markdown content\"><!></button> <textarea class=\"markdown-textarea svelte-1k98zvf\" spellcheck=\"false\"></textarea></div>");
9
+ function A(r, o) {
10
+ g(o, !0);
11
+ let A = v(o, "content", 3, ""), j = v(o, "onUpdate", 3, (e) => {}), M = d(!1), N = d(null), P = d(null), F = 0;
12
+ function I() {
13
+ if (c(P)) {
14
+ if (F === 0) {
15
+ let e = c(P).closest(".editor-container")?.clientHeight ?? 0;
16
+ F = Math.max(c(N)?.clientHeight ?? 0, e);
17
+ }
18
+ c(P).style.minHeight = `${F}px`, c(P).style.height = "auto", c(P).style.height = `${Math.max(F, c(P).scrollHeight)}px`;
19
+ }
20
+ }
21
+ b(() => {
22
+ A(), typeof window < "u" && queueMicrotask(I);
23
+ });
24
+ function L(e) {
25
+ let t = E(e);
26
+ j()({
27
+ markdown: e,
28
+ json: t
29
+ });
30
+ }
31
+ function R(e) {
32
+ let t = e.target;
33
+ I(), L(t.value);
34
+ }
35
+ function z() {
36
+ A() && navigator.clipboard.writeText(A()).then(() => {
37
+ x(M, !0), setTimeout(() => {
38
+ x(M, !1);
39
+ }, 2e3);
40
+ });
41
+ }
42
+ var B = k(), V = s(B), H = s(V), U = (n) => {
43
+ var r = D();
44
+ S(e(r), {
45
+ size: 14,
46
+ class: "text-emerald-500"
47
+ }), _(2), t(n, r);
48
+ }, W = (n) => {
49
+ var r = O();
50
+ C(e(r), { size: 14 }), _(2), t(n, r);
51
+ };
52
+ n(H, (e) => {
53
+ c(M) ? e(U) : e(W, -1);
54
+ }), u(V);
55
+ var G = m(V, 2);
56
+ l(G), y(G, (e) => x(P, e), () => c(P)), u(B), y(B, (e) => x(N, e), () => c(N)), i((e, t) => {
57
+ h(G, A()), f(G, "placeholder", e), f(G, "aria-label", t);
58
+ }, [() => T(), () => w()]), a("click", V, z), a("input", G, R), a("keydown", G, (e) => {
59
+ if (e.key === "Tab") {
60
+ e.preventDefault();
61
+ let t = e.target, n = t.selectionStart, r = t.selectionEnd;
62
+ t.value = `${t.value.substring(0, n)}\t${t.value.substring(r)}`, t.selectionStart = t.selectionEnd = n + 1, L(t.value);
63
+ }
64
+ }), t(r, B), p();
65
+ }
66
+ r([
67
+ "click",
68
+ "input",
69
+ "keydown"
70
+ ]);
71
+ //#endregion
72
+ export { A as MarkdownToggle };
@@ -0,0 +1 @@
1
+ export declare function markdownToJson(markdown: string): Promise<object>;
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../../markdown-BwnyjITU.js";
2
+ export { e as markdownToJson };
@@ -0,0 +1,3 @@
1
+ import type { Component } from "svelte";
2
+ export interface FolderNodeItem { id: string; name: string; categoryId?: string | null; parentId?: string | null; order?: number; }
3
+ export declare const FolderNode: Component;
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../FolderNode-C4B8a2fd.js";
2
+ export { e as FolderNode };
@@ -0,0 +1,2 @@
1
+ import type { Component } from "svelte";
2
+ export declare const FolderTreeSelector: Component;
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../FolderTreeSelector-D6ijiZTA.js";
2
+ export { e as FolderTreeSelector };
@@ -0,0 +1,2 @@
1
+ import type { Component } from "svelte";
2
+ export declare const SaveAsDialog: Component;
@@ -0,0 +1,254 @@
1
+ import "../disclose-version-5I57E3LD.js";
2
+ import { $ as e, A as t, E as n, F as r, K as i, M as a, Q as o, R as s, V as c, _t as l, at as u, c as ee, ct as d, dt as f, et as p, ft as m, gt as h, j as te, k as g, n as _, q as v, rt as y, tt as b, u as ne, w as re, x } from "../client-Bc5Fzx40.js";
3
+ import { t as S } from "../loader-circle-Bk-WFz9g.js";
4
+ import { a as C, i as w, n as T, o as E, r as ie, t as D } from "../dialog-BDkiG42a.js";
5
+ import { a as O, i as k, n as ae, r as oe, t as se } from "../select-value-CvrWRkXW.js";
6
+ import { t as A } from "../label-C-GkhEp4.js";
7
+ import { t as ce } from "../chevron-down-B7ZrjUmT.js";
8
+ import { t as le } from "../FolderTreeSelector-D6ijiZTA.js";
9
+ import { s as ue } from "../folders-CTuV_JtU.js";
10
+ import { nr as de, tr as j } from "../messages-BpYaLbzE.js";
11
+ import { i as M } from "../categories-izQovv2w.js";
12
+ import { d as N } from "../subfolders-refresh-store.svelte-BsheoQma.js";
13
+ //#region src/lib/components/SaveAsDialog.svelte
14
+ var P = a("<!> <!>", 1), F = a("<div class=\"flex items-center justify-center py-6\"><!></div>"), I = a("<p class=\"text-sm text-destructive\" role=\"alert\"> </p>"), L = a("<form class=\"space-y-4 py-2\"><!> <div class=\"space-y-2\"><!> <input id=\"save-as-title\" type=\"text\" placeholder=\"Enter new document title\" required=\"\" class=\"flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50\"/></div> <div class=\"space-y-2\"><!> <!></div> <div class=\"space-y-2\"><!> <!></div></form>"), R = a("<!> ", 1), z = a("<!> <!> <!>", 1);
15
+ function B(a, B) {
16
+ m(B, !0);
17
+ let V = {
18
+ Root: O,
19
+ Content: k,
20
+ Item: oe,
21
+ Trigger: ae,
22
+ Value: se
23
+ }, H = _(B, "open", 15, !1), U = _(B, "initialTitle", 3, ""), fe = _(B, "initialParentId", 3, null), pe = _(B, "initialCategoryId", 3, null), W = u(b([])), G = u(b([])), K = u(!1), q = u(!1), J = u(null), Y = u(""), X = u(null), Z = u(void 0);
24
+ v(() => {
25
+ H() && (y(Y, U() ? `${U()} (Copy)` : "Untitled (Copy)", !0), y(X, fe()), y(Z, pe() || "null", !0), y(J, null), me());
26
+ });
27
+ async function me() {
28
+ y(K, !0);
29
+ try {
30
+ let [e, t] = await Promise.all([M(), ue(null, !0)]);
31
+ y(G, e, !0), y(W, t, !0);
32
+ } catch (e) {
33
+ console.error("Failed to load SaveAsDialog options", e), y(J, "Failed to load folders or categories");
34
+ } finally {
35
+ y(K, !1);
36
+ }
37
+ }
38
+ async function Q(e) {
39
+ if (e?.preventDefault(), !c(Y).trim()) {
40
+ y(J, "Title cannot be empty");
41
+ return;
42
+ }
43
+ if (!c(q)) {
44
+ y(q, !0);
45
+ try {
46
+ if (B.onSave) {
47
+ let e = c(X) === "" || c(X) === "null" ? null : c(X), t = c(Z) === "" || c(Z) === "null" || c(Z) === void 0 ? null : c(Z);
48
+ await B.onSave(c(Y).trim(), e, t);
49
+ }
50
+ N(), H(!1);
51
+ } catch (e) {
52
+ console.error("Failed to duplicate item", e), y(J, e instanceof Error ? e.message : "Failed to duplicate item", !0);
53
+ } finally {
54
+ y(q, !1);
55
+ }
56
+ }
57
+ }
58
+ function $() {
59
+ c(q) || (H(!1), B.onClose?.());
60
+ }
61
+ C(a, {
62
+ onOpenChange: (e) => {
63
+ e || $();
64
+ },
65
+ get open() {
66
+ return H();
67
+ },
68
+ set open(e) {
69
+ H(e);
70
+ },
71
+ children: (a, u) => {
72
+ var f = z(), m = e(f);
73
+ T(m, {
74
+ children: (n, i) => {
75
+ var a = P(), o = e(a);
76
+ D(o, {
77
+ children: (e, n) => {
78
+ h(), t(e, r("Save as Copy"));
79
+ },
80
+ $$slots: { default: !0 }
81
+ }), w(p(o, 2), {
82
+ children: (e, n) => {
83
+ h(), t(e, r("Create a copy of this document with a new title, folder, and category."));
84
+ },
85
+ $$slots: { default: !0 }
86
+ }), t(n, a);
87
+ },
88
+ $$slots: { default: !0 }
89
+ });
90
+ var _ = p(m, 2), v = (e) => {
91
+ var n = F();
92
+ S(o(n), { class: "size-6 animate-spin text-muted-foreground" }), l(n), t(e, n);
93
+ }, b = (a) => {
94
+ var u = L(), d = o(u), f = (e) => {
95
+ var n = I(), r = o(n, !0);
96
+ l(n), i(() => g(r, c(J))), t(e, n);
97
+ };
98
+ n(d, (e) => {
99
+ c(J) && e(f);
100
+ });
101
+ var m = p(d, 2), _ = o(m);
102
+ A(_, {
103
+ for: "save-as-title",
104
+ children: (e, n) => {
105
+ h(), t(e, r("New Title"));
106
+ },
107
+ $$slots: { default: !0 }
108
+ });
109
+ var v = p(_, 2);
110
+ ne(v), l(m);
111
+ var b = p(m, 2), S = o(b);
112
+ A(S, {
113
+ children: (e, n) => {
114
+ h(), t(e, r("Parent Folder"));
115
+ },
116
+ $$slots: { default: !0 }
117
+ }), le(p(S, 2), {
118
+ get folders() {
119
+ return c(W);
120
+ },
121
+ get selectedId() {
122
+ return c(X);
123
+ },
124
+ set selectedId(e) {
125
+ y(X, e, !0);
126
+ }
127
+ }), l(b);
128
+ var C = p(b, 2), w = o(C);
129
+ A(w, {
130
+ for: "save-as-category",
131
+ children: (e, n) => {
132
+ h(), t(e, r("Category"));
133
+ },
134
+ $$slots: { default: !0 }
135
+ }), x(p(w, 2), () => V.Root, (n, a) => {
136
+ a(n, {
137
+ type: "single",
138
+ get value() {
139
+ return c(Z);
140
+ },
141
+ set value(e) {
142
+ y(Z, e, !0);
143
+ },
144
+ children: (n, a) => {
145
+ var o = P(), s = e(o);
146
+ x(s, () => V.Trigger, (n, a) => {
147
+ a(n, {
148
+ class: "w-full text-foreground flex items-center justify-between bg-background border border-input px-3 py-2 text-sm rounded-md shadow-sm",
149
+ children: (n, a) => {
150
+ var o = P(), s = e(o);
151
+ x(s, () => V.Value, (e, n) => {
152
+ n(e, {
153
+ placeholder: "Select a category...",
154
+ children: (e, n) => {
155
+ h();
156
+ var a = r();
157
+ i((e) => g(a, e), [() => c(Z) && c(Z) !== "null" ? c(G).find((e) => e.id === c(Z))?.name ?? "Uncategorized" : "Uncategorized"]), t(e, a);
158
+ },
159
+ $$slots: { default: !0 }
160
+ });
161
+ }), ce(p(s, 2), { class: "size-4 opacity-50" }), t(n, o);
162
+ },
163
+ $$slots: { default: !0 }
164
+ });
165
+ }), x(p(s, 2), () => V.Content, (n, a) => {
166
+ a(n, {
167
+ class: "w-[var(--bits-select-trigger-width)]",
168
+ children: (n, a) => {
169
+ var o = P(), s = e(o);
170
+ x(s, () => V.Item, (e, n) => {
171
+ n(e, {
172
+ value: "null",
173
+ children: (e, n) => {
174
+ h(), t(e, r("Uncategorized"));
175
+ },
176
+ $$slots: { default: !0 }
177
+ });
178
+ }), re(p(s, 2), 17, () => c(G), (e) => e.id, (n, a) => {
179
+ var o = te();
180
+ x(e(o), () => V.Item, (e, n) => {
181
+ n(e, {
182
+ get value() {
183
+ return c(a).id;
184
+ },
185
+ children: (e, n) => {
186
+ h();
187
+ var o = r();
188
+ i(() => g(o, c(a).name)), t(e, o);
189
+ },
190
+ $$slots: { default: !0 }
191
+ });
192
+ }), t(n, o);
193
+ }), t(n, o);
194
+ },
195
+ $$slots: { default: !0 }
196
+ });
197
+ }), t(n, o);
198
+ },
199
+ $$slots: { default: !0 }
200
+ });
201
+ }), l(C), l(u), s("submit", u, Q), ee(v, () => c(Y), (e) => y(Y, e)), t(a, u);
202
+ };
203
+ n(_, (e) => {
204
+ c(K) ? e(v) : e(b, -1);
205
+ }), ie(p(_, 2), {
206
+ class: "mt-4",
207
+ children: (a, o) => {
208
+ var s = P(), l = e(s);
209
+ E(l, {
210
+ variant: "outline",
211
+ type: "button",
212
+ onclick: $,
213
+ get disabled() {
214
+ return c(q);
215
+ },
216
+ children: (e, n) => {
217
+ h();
218
+ var a = r();
219
+ i((e) => g(a, e), [() => j()]), t(e, a);
220
+ },
221
+ $$slots: { default: !0 }
222
+ });
223
+ var u = p(l, 2);
224
+ {
225
+ let r = d(() => c(q) || c(K));
226
+ E(u, {
227
+ type: "button",
228
+ onclick: Q,
229
+ get disabled() {
230
+ return c(r);
231
+ },
232
+ children: (r, a) => {
233
+ var o = R(), s = e(o), l = (e) => {
234
+ S(e, { class: "mr-1 size-4 animate-spin" });
235
+ };
236
+ n(s, (e) => {
237
+ c(q) && e(l);
238
+ });
239
+ var u = p(s);
240
+ i((e) => g(u, ` ${e ?? ""}`), [() => de()]), t(r, o);
241
+ },
242
+ $$slots: { default: !0 }
243
+ });
244
+ }
245
+ t(a, s);
246
+ },
247
+ $$slots: { default: !0 }
248
+ }), t(a, f);
249
+ },
250
+ $$slots: { default: !0 }
251
+ }), f();
252
+ }
253
+ //#endregion
254
+ export { B as SaveAsDialog };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../SettingsDialog-D4pgFD0D.js";
1
+ import { t as e } from "../SettingsDialog-2kTaTXAs.js";
2
2
  export { e as SettingsDialog };
@@ -0,0 +1,2 @@
1
+ import type { Component } from "svelte";
2
+ export declare const ShareDialog: Component;
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../ShareDialog-BBDGNF5n.js";
2
+ export { e as ShareDialog };