@hiai-gg/docsmint 0.3.7 → 0.3.9

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 (210) hide show
  1. package/backend/src/lib/logger.ts +45 -15
  2. package/dist/backend/index.js +238 -150
  3. package/dist/client.d.ts +11 -0
  4. package/dist/client.js +9 -0
  5. package/dist/frontend/CategoryDialog-CxVyaBV5.js +611 -0
  6. package/dist/frontend/ConfirmDialog-NFGXRa3E.js +214 -0
  7. package/dist/frontend/CreateSnapshotDialog-BDgFTeFn.js +216 -0
  8. package/dist/frontend/DatePicker-BZRBluzF.js +256 -0
  9. package/dist/frontend/DeleteDialog-CvAr2WPu.js +174 -0
  10. package/dist/frontend/FolderNode-C6FJv99G.js +298 -0
  11. package/dist/frontend/FolderTreeSelector-CyB8y2Sm.js +103 -0
  12. package/dist/frontend/HiaiDocsExtensionProvider-DHWLzRUu.js +11 -0
  13. package/dist/frontend/Icon-CooFj4Ee.js +64 -0
  14. package/dist/frontend/SettingsDialog-BHh68rTB.js +1016 -0
  15. package/dist/frontend/ShareDialog-BUOkYSlw.js +165 -0
  16. package/dist/frontend/Sidebar-Cu3JrKDC.js +2021 -0
  17. package/dist/frontend/TagCreateDialog-B9YZBNHi.js +260 -0
  18. package/dist/frontend/api/settings.js +1 -1
  19. package/dist/frontend/app-shell.d.ts +8 -0
  20. package/dist/frontend/app-shell.js +291 -0
  21. package/dist/frontend/{bundle-mjs-CP6Owz-8.js → bundle-mjs-DllmqUxV.js} +583 -568
  22. package/dist/frontend/camera-iKXDOOWT.js +29 -0
  23. package/dist/frontend/check-D-UuvBuh.js +25 -0
  24. package/dist/frontend/chevron-down-CiPtYyFh.js +25 -0
  25. package/dist/frontend/circle-check-tSPE1V6t.js +29 -0
  26. package/dist/frontend/clock-DJHbHZb8.js +29 -0
  27. package/dist/frontend/components/category-dialog.js +1 -1
  28. package/dist/frontend/components/create-snapshot-dialog.js +1 -1
  29. package/dist/frontend/components/delete-dialog.js +1 -1
  30. package/dist/frontend/components/editor/document-editor.js +1367 -1356
  31. package/dist/frontend/components/editor/document-title.js +25 -25
  32. package/dist/frontend/components/editor/markdown-toggle.js +45 -45
  33. package/dist/frontend/components/folder-node.js +1 -1
  34. package/dist/frontend/components/folder-tree-selector.js +1 -1
  35. package/dist/frontend/components/save-as-dialog.js +169 -151
  36. package/dist/frontend/components/settings.js +1 -1
  37. package/dist/frontend/components/share-dialog.js +1 -1
  38. package/dist/frontend/components/sidebar.js +2 -2013
  39. package/dist/frontend/components/tag-create-dialog.js +1 -1
  40. package/dist/frontend/components/version-history.js +188 -187
  41. package/dist/frontend/confirm-dialog-C4jTRbiS.js +250 -0
  42. package/dist/frontend/copy-GppwRMjX.js +32 -0
  43. package/dist/frontend/dashboard.js +1187 -1155
  44. package/dist/frontend/dialog-Bevp9mmM.js +213 -0
  45. package/dist/frontend/{loader-circle-Bk-WFz9g.js → dist-C3857Spp.js} +93 -92
  46. package/dist/frontend/doc-tabs.js +2 -2
  47. package/dist/frontend/dropdown-menu-CRSby3e9.js +530 -0
  48. package/dist/frontend/extension.js +2 -11
  49. package/dist/frontend/{floating-layer-anchor-C51M4l6v.js → floating-layer-anchor-BDs7vO-M.js} +1414 -1412
  50. package/dist/frontend/folder-DeWhnD7O.js +45 -0
  51. package/dist/frontend/folder-refresh.js +1 -1
  52. package/dist/frontend/frontend.css +1 -1
  53. package/dist/frontend/i18n.js +2 -2
  54. package/dist/frontend/input-BWlOML_m.js +23 -0
  55. package/dist/frontend/keyboard.js +1 -1
  56. package/dist/frontend/{keyboard.svelte-D7H8DihC.js → keyboard.svelte-CApmX0vl.js} +53 -53
  57. package/dist/frontend/label-C2HfJNQ2.js +30 -0
  58. package/dist/frontend/{messages-BpYaLbzE.js → messages-C5Q890i2.js} +8 -8
  59. package/dist/frontend/rotate-ccw-B4Q7brmV.js +25 -0
  60. package/dist/frontend/search.js +673 -647
  61. package/dist/frontend/select-value-GXwx90Pr.js +1446 -0
  62. package/dist/frontend/{settings-blyobazp.js → settings-DSrUl4hW.js} +9 -9
  63. package/dist/frontend/shared-document.js +94 -94
  64. package/dist/frontend/subfolders-refresh-store.svelte-B2dKVmgz.js +65 -0
  65. package/dist/frontend/tag-HxRazVN_.js +54 -0
  66. package/dist/frontend/tag-store.svelte-CqrUXo0o.js +29 -0
  67. package/dist/frontend/textarea-DOAE-h42.js +23 -0
  68. package/dist/frontend/theme.js +1 -1
  69. package/dist/frontend/theme.svelte-DKfCy12k.js +49 -0
  70. package/dist/frontend/{utils-D8kmM3ub.js → utils-BPDRytUU.js} +2 -3
  71. package/dist/frontend/{utils-C0OW2678.js → utils-DrfHTcei.js} +2 -3
  72. package/dist/frontend/utils.js +1 -1
  73. package/dist/frontend/x-CzBsnJ2x.js +25 -0
  74. package/dist/frontend-ssr/api/attachments.js +2 -0
  75. package/dist/frontend-ssr/api/categories.js +2 -0
  76. package/dist/frontend-ssr/api/documents.js +2 -0
  77. package/dist/frontend-ssr/api/folders.js +2 -0
  78. package/dist/frontend-ssr/api/settings.js +2 -0
  79. package/dist/frontend-ssr/api/share.js +2 -0
  80. package/dist/frontend-ssr/api/tags.js +2 -0
  81. package/dist/frontend-ssr/app-shell.js +294 -0
  82. package/dist/frontend-ssr/assets/CategoryDialog-BcGW8-Kf.js +584 -0
  83. package/dist/frontend-ssr/assets/ConfirmDialog-DjMFKc0V.js +420 -0
  84. package/dist/frontend-ssr/assets/CreateSnapshotDialog-1bROJ-Rn.js +214 -0
  85. package/dist/frontend-ssr/assets/DatePicker-B1ML8OVz.js +312 -0
  86. package/dist/frontend-ssr/assets/DeleteDialog-tBYaP0L3.js +154 -0
  87. package/dist/frontend-ssr/assets/FolderNode-BZ0Q2QUS.js +171 -0
  88. package/dist/frontend-ssr/assets/FolderTreeSelector-DZNZ2oI6.js +147 -0
  89. package/dist/frontend-ssr/assets/HiaiDocsExtensionProvider-DAM-lX4R.js +13 -0
  90. package/dist/frontend-ssr/assets/Icon-B0Zqppjo.js +231 -0
  91. package/dist/frontend-ssr/assets/SettingsDialog-B8L_YqNA.js +1107 -0
  92. package/dist/frontend-ssr/assets/ShareDialog-vMvJLRfn.js +54 -0
  93. package/dist/frontend-ssr/assets/Sidebar-EHuUAx3W.js +2033 -0
  94. package/dist/frontend-ssr/assets/TagCreateDialog-B0DPEfmQ.js +264 -0
  95. package/dist/frontend-ssr/assets/api-keys-DFqX39MT.js +35 -0
  96. package/dist/frontend-ssr/assets/attachments-CWBxE3Vz.js +85 -0
  97. package/dist/frontend-ssr/assets/auth-client-x26kqY8Z.js +1286 -0
  98. package/dist/frontend-ssr/assets/camera-CdxscTw-.js +84 -0
  99. package/dist/frontend-ssr/assets/categories-AOqgcsn4.js +75 -0
  100. package/dist/frontend-ssr/assets/chevron-down-CSSNGNh_.js +80 -0
  101. package/dist/frontend-ssr/assets/chevron-right-B4p7Sk6X.js +80 -0
  102. package/dist/frontend-ssr/assets/circle-check-CI1v4vYh.js +84 -0
  103. package/dist/frontend-ssr/assets/client-DZMkDkDn.js +129 -0
  104. package/dist/frontend-ssr/assets/clipboard-CXOaoz2W.js +30 -0
  105. package/dist/frontend-ssr/assets/clock-IL-eX2di.js +84 -0
  106. package/dist/frontend-ssr/assets/confirm-dialog-BCthVwUY.js +429 -0
  107. package/dist/frontend-ssr/assets/context-jz1GGEUi.js +45 -0
  108. package/dist/frontend-ssr/assets/copy-CjV57nGQ.js +87 -0
  109. package/dist/frontend-ssr/assets/db-CnxeO66n.js +65 -0
  110. package/dist/frontend-ssr/assets/dialog-BOV1u6zP.js +157 -0
  111. package/dist/frontend-ssr/assets/dndzone-DMvTO_Jz.js +2114 -0
  112. package/dist/frontend-ssr/assets/document-drop-coordinator-CEaYACsC.js +109 -0
  113. package/dist/frontend-ssr/assets/documents-BnOTRdTY.js +108 -0
  114. package/dist/frontend-ssr/assets/dropdown-menu-Bj5rbqbB.js +555 -0
  115. package/dist/frontend-ssr/assets/editorExtensions-DUzwndMy.js +186 -0
  116. package/dist/frontend-ssr/assets/floating-layer-anchor-CYIE8Oj6.js +6114 -0
  117. package/dist/frontend-ssr/assets/folder-DChhG7qN.js +80 -0
  118. package/dist/frontend-ssr/assets/folders-CTfbS24J.js +127 -0
  119. package/dist/frontend-ssr/assets/identity-B3uHoDtf.js +99 -0
  120. package/dist/frontend-ssr/assets/input-DezGsU3y.js +19 -0
  121. package/dist/frontend-ssr/assets/keyboard.svelte-BgF47N3L.js +174 -0
  122. package/dist/frontend-ssr/assets/label-Bj8-TfFN.js +21 -0
  123. package/dist/frontend-ssr/assets/loader-circle-DZsrZ-er.js +80 -0
  124. package/dist/frontend-ssr/assets/markdown-CjqvGi5W.js +20 -0
  125. package/dist/frontend-ssr/assets/messages-CvqpZNJe.js +11125 -0
  126. package/dist/frontend-ssr/assets/resolve-BqHozBXl.js +32 -0
  127. package/dist/frontend-ssr/assets/rotate-ccw-BlgWwaiq.js +80 -0
  128. package/dist/frontend-ssr/assets/select-value-6Lk0ToYd.js +1526 -0
  129. package/dist/frontend-ssr/assets/settings-Bk5Hk9Vq.js +64 -0
  130. package/dist/frontend-ssr/assets/share-BTBJelxA.js +30 -0
  131. package/dist/frontend-ssr/assets/subfolders-refresh-store.svelte-DAh4gT16.js +77 -0
  132. package/dist/frontend-ssr/assets/tag-GZEuGWk1.js +166 -0
  133. package/dist/frontend-ssr/assets/tag-store.svelte-DPodKj6Z.js +21 -0
  134. package/dist/frontend-ssr/assets/tags-BId2wdYd.js +49 -0
  135. package/dist/frontend-ssr/assets/textarea-Dev-qSEc.js +21 -0
  136. package/dist/frontend-ssr/assets/theme.svelte-Co0-ssaD.js +67 -0
  137. package/dist/frontend-ssr/assets/utils-DtlPPXpJ.js +9 -0
  138. package/dist/frontend-ssr/assets/utils-DvZnctjz.js +23 -0
  139. package/dist/frontend-ssr/collaboration.js +39 -0
  140. package/dist/frontend-ssr/components/category-dialog.js +2 -0
  141. package/dist/frontend-ssr/components/create-snapshot-dialog.js +2 -0
  142. package/dist/frontend-ssr/components/delete-dialog.js +2 -0
  143. package/dist/frontend-ssr/components/editor/document-editor.js +2499 -0
  144. package/dist/frontend-ssr/components/editor/document-title.js +11 -0
  145. package/dist/frontend-ssr/components/editor/docx-serializer.js +186 -0
  146. package/dist/frontend-ssr/components/editor/extensions.js +2 -0
  147. package/dist/frontend-ssr/components/editor/markdown-toggle.js +20 -0
  148. package/dist/frontend-ssr/components/editor/markdown.js +2 -0
  149. package/dist/frontend-ssr/components/folder-node.js +2 -0
  150. package/dist/frontend-ssr/components/folder-tree-selector.js +2 -0
  151. package/dist/frontend-ssr/components/save-as-dialog.js +280 -0
  152. package/dist/frontend-ssr/components/settings.js +2 -0
  153. package/dist/frontend-ssr/components/share-dialog.js +2 -0
  154. package/dist/frontend-ssr/components/sidebar.js +2 -0
  155. package/dist/frontend-ssr/components/tag-create-dialog.js +2 -0
  156. package/dist/frontend-ssr/components/version-history.js +370 -0
  157. package/dist/frontend-ssr/dashboard.js +2542 -0
  158. package/dist/frontend-ssr/doc-tabs.js +23 -0
  159. package/dist/frontend-ssr/document-drop-coordinator.js +2 -0
  160. package/dist/frontend-ssr/extension.js +2 -0
  161. package/dist/frontend-ssr/folder-refresh.js +2 -0
  162. package/dist/frontend-ssr/i18n.js +10 -0
  163. package/dist/frontend-ssr/keyboard.js +2 -0
  164. package/dist/frontend-ssr/offline/identity.js +2 -0
  165. package/dist/frontend-ssr/search.js +332 -0
  166. package/dist/frontend-ssr/shared-document.js +273 -0
  167. package/dist/frontend-ssr/theme.js +9 -0
  168. package/dist/frontend-ssr/types.js +1 -0
  169. package/dist/frontend-ssr/utils/clipboard.js +2 -0
  170. package/dist/frontend-ssr/utils/dndzone.js +2 -0
  171. package/dist/frontend-ssr/utils.js +2 -0
  172. package/package.json +28 -1
  173. package/packages/cli/src/index.ts +1 -1
  174. package/packages/db/src/schema.ts +3 -0
  175. package/packages/mcp-server/src/index.ts +1 -1
  176. package/dist/frontend/CategoryDialog--rIE7FrH.js +0 -580
  177. package/dist/frontend/ConfirmDialog-Cpzyb55f.js +0 -212
  178. package/dist/frontend/CreateSnapshotDialog-CmkV-n2A.js +0 -216
  179. package/dist/frontend/DatePicker-Byynca7V.js +0 -257
  180. package/dist/frontend/DeleteDialog-ap6nOywZ.js +0 -174
  181. package/dist/frontend/FolderDialog-DmN_trV0.js +0 -247
  182. package/dist/frontend/FolderNode-C4B8a2fd.js +0 -317
  183. package/dist/frontend/FolderTreeSelector-D6ijiZTA.js +0 -100
  184. package/dist/frontend/Icon-DtNo0N1U.js +0 -64
  185. package/dist/frontend/SettingsDialog-2kTaTXAs.js +0 -992
  186. package/dist/frontend/ShareDialog-BBDGNF5n.js +0 -165
  187. package/dist/frontend/TagCreateDialog-DiLZnJo4.js +0 -258
  188. package/dist/frontend/camera-B7dAOd4s.js +0 -28
  189. package/dist/frontend/check-CDwRlG9T.js +0 -24
  190. package/dist/frontend/chevron-down-B7ZrjUmT.js +0 -24
  191. package/dist/frontend/circle-check-CDqeMB2d.js +0 -28
  192. package/dist/frontend/client-Bc5Fzx40.js +0 -2785
  193. package/dist/frontend/clock-Ck5Sn-Zl.js +0 -28
  194. package/dist/frontend/clsx-nmtDPO_P.js +0 -16
  195. package/dist/frontend/copy-CMAA6GP0.js +0 -31
  196. package/dist/frontend/dialog-BDkiG42a.js +0 -213
  197. package/dist/frontend/disclose-version-5I57E3LD.js +0 -3
  198. package/dist/frontend/ellipsis-vertical-BBuPldbW.js +0 -519
  199. package/dist/frontend/folder-TQjKY4yn.js +0 -44
  200. package/dist/frontend/index-client-jobkrWVL.js +0 -86
  201. package/dist/frontend/input-CBI6p4Xl.js +0 -23
  202. package/dist/frontend/label-C-GkhEp4.js +0 -30
  203. package/dist/frontend/rotate-ccw-CleZtJ5D.js +0 -24
  204. package/dist/frontend/select-value-CvrWRkXW.js +0 -1436
  205. package/dist/frontend/subfolders-refresh-store.svelte-BsheoQma.js +0 -65
  206. package/dist/frontend/tag-Dx3SmucJ.js +0 -53
  207. package/dist/frontend/tag-store.svelte-CIaF4sdZ.js +0 -29
  208. package/dist/frontend/textarea-Dfp78XlL.js +0 -23
  209. package/dist/frontend/theme.svelte-CROg1Hi5.js +0 -49
  210. package/dist/frontend/x-DaTdeDXv.js +0 -24
@@ -0,0 +1,420 @@
1
+ import { a as Dialog, i as Dialog_description, n as Dialog_header, o as Button, r as Dialog_footer, t as Dialog_title } from "./dialog-BOV1u6zP.js";
2
+ import { t as Textarea } from "./textarea-Dev-qSEc.js";
3
+ import * as $ from "svelte/internal/server";
4
+ //#region ../node_modules/.bun/lucide-svelte@0.577.0+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/defaultAttributes.js
5
+ /**
6
+ * @license lucide-svelte v0.577.0 - ISC
7
+ *
8
+ * ISC License
9
+ *
10
+ * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2026 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2026.
11
+ *
12
+ * Permission to use, copy, modify, and/or distribute this software for any
13
+ * purpose with or without fee is hereby granted, provided that the above
14
+ * copyright notice and this permission notice appear in all copies.
15
+ *
16
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
17
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
18
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
19
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
20
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
21
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
22
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
23
+ *
24
+ * ---
25
+ *
26
+ * The MIT License (MIT) (for portions derived from Feather)
27
+ *
28
+ * Copyright (c) 2013-2026 Cole Bemis
29
+ *
30
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
31
+ * of this software and associated documentation files (the "Software"), to deal
32
+ * in the Software without restriction, including without limitation the rights
33
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
34
+ * copies of the Software, and to permit persons to whom the Software is
35
+ * furnished to do so, subject to the following conditions:
36
+ *
37
+ * The above copyright notice and this permission notice shall be included in all
38
+ * copies or substantial portions of the Software.
39
+ *
40
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
41
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
42
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
43
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
44
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
45
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
46
+ * SOFTWARE.
47
+ *
48
+ */
49
+ var defaultAttributes = {
50
+ xmlns: "http://www.w3.org/2000/svg",
51
+ width: 24,
52
+ height: 24,
53
+ viewBox: "0 0 24 24",
54
+ fill: "none",
55
+ stroke: "currentColor",
56
+ "stroke-width": 2,
57
+ "stroke-linecap": "round",
58
+ "stroke-linejoin": "round"
59
+ };
60
+ //#endregion
61
+ //#region ../node_modules/.bun/lucide-svelte@0.577.0+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/utils/hasA11yProp.js
62
+ /**
63
+ * @license lucide-svelte v0.577.0 - ISC
64
+ *
65
+ * ISC License
66
+ *
67
+ * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2026 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2026.
68
+ *
69
+ * Permission to use, copy, modify, and/or distribute this software for any
70
+ * purpose with or without fee is hereby granted, provided that the above
71
+ * copyright notice and this permission notice appear in all copies.
72
+ *
73
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
74
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
75
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
76
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
77
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
78
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
79
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
80
+ *
81
+ * ---
82
+ *
83
+ * The MIT License (MIT) (for portions derived from Feather)
84
+ *
85
+ * Copyright (c) 2013-2026 Cole Bemis
86
+ *
87
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
88
+ * of this software and associated documentation files (the "Software"), to deal
89
+ * in the Software without restriction, including without limitation the rights
90
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
91
+ * copies of the Software, and to permit persons to whom the Software is
92
+ * furnished to do so, subject to the following conditions:
93
+ *
94
+ * The above copyright notice and this permission notice shall be included in all
95
+ * copies or substantial portions of the Software.
96
+ *
97
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
98
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
99
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
100
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
101
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
102
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
103
+ * SOFTWARE.
104
+ *
105
+ */
106
+ /**
107
+ * Check if a component has an accessibility prop
108
+ *
109
+ * @param {object} props
110
+ * @returns {boolean} Whether the component has an accessibility prop
111
+ */
112
+ var hasA11yProp = (props) => {
113
+ for (const prop in props) if (prop.startsWith("aria-") || prop === "role" || prop === "title") return true;
114
+ return false;
115
+ };
116
+ //#endregion
117
+ //#region ../node_modules/.bun/lucide-svelte@0.577.0+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/utils/mergeClasses.js
118
+ /**
119
+ * @license lucide-svelte v0.577.0 - ISC
120
+ *
121
+ * ISC License
122
+ *
123
+ * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2026 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2026.
124
+ *
125
+ * Permission to use, copy, modify, and/or distribute this software for any
126
+ * purpose with or without fee is hereby granted, provided that the above
127
+ * copyright notice and this permission notice appear in all copies.
128
+ *
129
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
130
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
131
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
132
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
133
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
134
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
135
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
136
+ *
137
+ * ---
138
+ *
139
+ * The MIT License (MIT) (for portions derived from Feather)
140
+ *
141
+ * Copyright (c) 2013-2026 Cole Bemis
142
+ *
143
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
144
+ * of this software and associated documentation files (the "Software"), to deal
145
+ * in the Software without restriction, including without limitation the rights
146
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
147
+ * copies of the Software, and to permit persons to whom the Software is
148
+ * furnished to do so, subject to the following conditions:
149
+ *
150
+ * The above copyright notice and this permission notice shall be included in all
151
+ * copies or substantial portions of the Software.
152
+ *
153
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
154
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
155
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
156
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
157
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
158
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
159
+ * SOFTWARE.
160
+ *
161
+ */
162
+ /**
163
+ * Merges classes into a single string
164
+ *
165
+ * @param {array} classes
166
+ * @returns {string} A string of classes
167
+ */
168
+ var mergeClasses = (...classes) => classes.filter((className, index, array) => {
169
+ return Boolean(className) && className.trim() !== "" && array.indexOf(className) === index;
170
+ }).join(" ").trim();
171
+ //#endregion
172
+ //#region ../node_modules/.bun/lucide-svelte@0.577.0+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/Icon.svelte
173
+ function Icon($$renderer, $$props) {
174
+ const $$sanitized_props = $.sanitize_props($$props);
175
+ const $$restProps = $.rest_props($$sanitized_props, [
176
+ "name",
177
+ "color",
178
+ "size",
179
+ "strokeWidth",
180
+ "absoluteStrokeWidth",
181
+ "iconNode"
182
+ ]);
183
+ $$renderer.component(($$renderer) => {
184
+ let name = $.fallback($$props["name"], void 0);
185
+ let color = $.fallback($$props["color"], "currentColor");
186
+ let size = $.fallback($$props["size"], 24);
187
+ let strokeWidth = $.fallback($$props["strokeWidth"], 2);
188
+ let absoluteStrokeWidth = $.fallback($$props["absoluteStrokeWidth"], false);
189
+ let iconNode = $.fallback($$props["iconNode"], () => [], true);
190
+ $$renderer.push(`<svg${$.attributes({
191
+ ...defaultAttributes,
192
+ ...!hasA11yProp($$restProps) ? { "aria-hidden": "true" } : void 0,
193
+ ...$$restProps,
194
+ width: size,
195
+ height: size,
196
+ stroke: color,
197
+ "stroke-width": absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,
198
+ class: $.clsx(mergeClasses("lucide-icon", "lucide", name ? `lucide-${name}` : "", $$sanitized_props.class))
199
+ }, void 0, void 0, void 0, 3)}><!--[-->`);
200
+ const each_array = $.ensure_array_like(iconNode);
201
+ for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
202
+ let [tag, attrs] = each_array[$$index];
203
+ $.element($$renderer, tag, () => {
204
+ $$renderer.push(`${$.attributes({ ...attrs }, void 0, void 0, void 0, 3)}`);
205
+ });
206
+ }
207
+ $$renderer.push(`<!--]--><!--[-->`);
208
+ $.slot($$renderer, $$props, "default", {}, null);
209
+ $$renderer.push(`<!--]--></svg>`);
210
+ $.bind_props($$props, {
211
+ name,
212
+ color,
213
+ size,
214
+ strokeWidth,
215
+ absoluteStrokeWidth,
216
+ iconNode
217
+ });
218
+ });
219
+ }
220
+ //#endregion
221
+ //#region ../node_modules/.bun/lucide-svelte@0.577.0+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/loader-circle.svelte
222
+ function Loader_circle($$renderer, $$props) {
223
+ const $$sanitized_props = $.sanitize_props($$props);
224
+ /**
225
+ * @license lucide-svelte v0.577.0 - ISC
226
+ *
227
+ * ISC License
228
+ *
229
+ * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2026 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2026.
230
+ *
231
+ * Permission to use, copy, modify, and/or distribute this software for any
232
+ * purpose with or without fee is hereby granted, provided that the above
233
+ * copyright notice and this permission notice appear in all copies.
234
+ *
235
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
236
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
237
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
238
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
239
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
240
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
241
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
242
+ *
243
+ * ---
244
+ *
245
+ * The MIT License (MIT) (for portions derived from Feather)
246
+ *
247
+ * Copyright (c) 2013-2026 Cole Bemis
248
+ *
249
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
250
+ * of this software and associated documentation files (the "Software"), to deal
251
+ * in the Software without restriction, including without limitation the rights
252
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
253
+ * copies of the Software, and to permit persons to whom the Software is
254
+ * furnished to do so, subject to the following conditions:
255
+ *
256
+ * The above copyright notice and this permission notice shall be included in all
257
+ * copies or substantial portions of the Software.
258
+ *
259
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
260
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
261
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
262
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
263
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
264
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
265
+ * SOFTWARE.
266
+ *
267
+ */
268
+ Icon($$renderer, $.spread_props([
269
+ { name: "loader-circle" },
270
+ $$sanitized_props,
271
+ {
272
+ /**
273
+ * @component @name LoaderCircle
274
+ * @description Lucide SVG icon component, renders SVG Element with children.
275
+ *
276
+ * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMjEgMTJhOSA5IDAgMSAxLTYuMjE5LTguNTYiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/loader-circle
277
+ * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation
278
+ *
279
+ * @param {Object} props - Lucide icons props and any valid SVG attribute
280
+ * @returns {FunctionalComponent} Svelte component
281
+ *
282
+ */
283
+ iconNode: [["path", { "d": "M21 12a9 9 0 1 1-6.219-8.56" }]],
284
+ children: ($$renderer) => {
285
+ $$renderer.push(`<!--[-->`);
286
+ $.slot($$renderer, $$props, "default", {}, null);
287
+ $$renderer.push(`<!--]-->`);
288
+ },
289
+ $$slots: { default: true }
290
+ }
291
+ ]));
292
+ }
293
+ //#endregion
294
+ //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.0.8+3149ccaa93f654b8/node_modules/@hiai-gg/hiai-ui/dist/components/ui/confirm-dialog/ConfirmDialog.svelte
295
+ function ConfirmDialog($$renderer, $$props) {
296
+ $$renderer.component(($$renderer) => {
297
+ let { open = false, title, description, confirmLabel = "Confirm", cancelLabel = "Cancel", variant = "default", busy = false, requireReason = false, reasonLabel = "Reason", reasonPlaceholder = "Provide a reason...", onConfirm, onCancel } = $$props;
298
+ let reason = "";
299
+ const reasonMissing = $.derived(() => requireReason && reason.trim().length === 0);
300
+ function reset() {
301
+ reason = "";
302
+ }
303
+ function handleConfirm() {
304
+ if (reasonMissing()) return;
305
+ onConfirm?.(requireReason ? reason : void 0);
306
+ reset();
307
+ }
308
+ function handleCancel() {
309
+ if (busy) return;
310
+ open = false;
311
+ onCancel?.();
312
+ reset();
313
+ }
314
+ let $$settled = true;
315
+ let $$inner_renderer;
316
+ function $$render_inner($$renderer) {
317
+ Dialog($$renderer, {
318
+ onOpenChange: (next) => {
319
+ if (!next) {
320
+ reset();
321
+ onCancel?.();
322
+ }
323
+ },
324
+ get open() {
325
+ return open;
326
+ },
327
+ set open($$value) {
328
+ open = $$value;
329
+ $$settled = false;
330
+ },
331
+ children: ($$renderer) => {
332
+ Dialog_header($$renderer, {
333
+ children: ($$renderer) => {
334
+ Dialog_title($$renderer, {
335
+ children: ($$renderer) => {
336
+ $$renderer.push(`<!---->${$.escape(title)}`);
337
+ },
338
+ $$slots: { default: true }
339
+ });
340
+ $$renderer.push(`<!----> `);
341
+ if (description) {
342
+ $$renderer.push("<!--[0-->");
343
+ Dialog_description($$renderer, {
344
+ children: ($$renderer) => {
345
+ $$renderer.push(`<!---->${$.escape(description)}`);
346
+ },
347
+ $$slots: { default: true }
348
+ });
349
+ } else $$renderer.push("<!--[-1-->");
350
+ $$renderer.push(`<!--]-->`);
351
+ },
352
+ $$slots: { default: true }
353
+ });
354
+ $$renderer.push(`<!----> `);
355
+ if (requireReason) {
356
+ $$renderer.push("<!--[0-->");
357
+ $$renderer.push(`<div class="grid gap-2 py-2"><label for="confirm-dialog-reason" class="text-sm font-medium">${$.escape(reasonLabel)}</label> `);
358
+ Textarea($$renderer, {
359
+ id: "confirm-dialog-reason",
360
+ rows: 3,
361
+ placeholder: reasonPlaceholder,
362
+ disabled: busy,
363
+ get value() {
364
+ return reason;
365
+ },
366
+ set value($$value) {
367
+ reason = $$value;
368
+ $$settled = false;
369
+ }
370
+ });
371
+ $$renderer.push(`<!----></div>`);
372
+ } else $$renderer.push("<!--[-1-->");
373
+ $$renderer.push(`<!--]--> `);
374
+ Dialog_footer($$renderer, {
375
+ children: ($$renderer) => {
376
+ Button($$renderer, {
377
+ variant: "outline",
378
+ type: "button",
379
+ onclick: handleCancel,
380
+ disabled: busy,
381
+ children: ($$renderer) => {
382
+ $$renderer.push(`<!---->${$.escape(cancelLabel)}`);
383
+ },
384
+ $$slots: { default: true }
385
+ });
386
+ $$renderer.push(`<!----> `);
387
+ Button($$renderer, {
388
+ type: "button",
389
+ variant: variant === "destructive" ? "destructive" : "default",
390
+ onclick: handleConfirm,
391
+ disabled: busy || reasonMissing(),
392
+ children: ($$renderer) => {
393
+ if (busy) {
394
+ $$renderer.push("<!--[0-->");
395
+ Loader_circle($$renderer, { class: "mr-1 size-4 animate-spin" });
396
+ } else $$renderer.push("<!--[-1-->");
397
+ $$renderer.push(`<!--]--> ${$.escape(confirmLabel)}`);
398
+ },
399
+ $$slots: { default: true }
400
+ });
401
+ $$renderer.push(`<!---->`);
402
+ },
403
+ $$slots: { default: true }
404
+ });
405
+ $$renderer.push(`<!---->`);
406
+ },
407
+ $$slots: { default: true }
408
+ });
409
+ }
410
+ do {
411
+ $$settled = true;
412
+ $$inner_renderer = $$renderer.copy();
413
+ $$render_inner($$inner_renderer);
414
+ } while (!$$settled);
415
+ $$renderer.subsume($$inner_renderer);
416
+ $.bind_props($$props, { open });
417
+ });
418
+ }
419
+ //#endregion
420
+ export { ConfirmDialog as t };
@@ -0,0 +1,214 @@
1
+ import { At as version_snapshot_label_placeholder, Dt as version_snapshot_creating, Et as version_snapshot_dialog_title, Mt as version_snapshot_label, Ot as version_snapshot_create, R as error_validation, Tt as version_snapshot_dialog_description, bt as version_restore_failed, gn as action_cancel, jt as version_snapshot_description, kt as version_snapshot_description_placeholder, vn as error_server } from "./messages-CvqpZNJe.js";
2
+ import { t as Loader_circle } from "./loader-circle-DZsrZ-er.js";
3
+ import { a as Dialog, i as Dialog_description, n as Dialog_header, o as Button, r as Dialog_footer, t as Dialog_title } from "./dialog-BOV1u6zP.js";
4
+ import { t as Input } from "./input-DezGsU3y.js";
5
+ import { n as apiFetch, t as ApiError } from "./client-DZMkDkDn.js";
6
+ import { t as Textarea } from "./textarea-Dev-qSEc.js";
7
+ import * as $ from "svelte/internal/server";
8
+ //#region src/lib/components/CreateSnapshotDialog.svelte
9
+ function CreateSnapshotDialog($$renderer, $$props) {
10
+ $$renderer.component(($$renderer) => {
11
+ const MAX_LABEL_LENGTH = 100;
12
+ const MAX_DESCRIPTION_LENGTH = 500;
13
+ let { open = false, documentId, onSuccess } = $$props;
14
+ let label = "";
15
+ let description = "";
16
+ let labelError = null;
17
+ let submitError = null;
18
+ let submitting = false;
19
+ function reset() {
20
+ label = "";
21
+ description = "";
22
+ labelError = null;
23
+ submitError = null;
24
+ submitting = false;
25
+ }
26
+ function close() {
27
+ if (submitting) return;
28
+ open = false;
29
+ reset();
30
+ }
31
+ function handleOpenChange(next) {
32
+ if (next) reset();
33
+ else if (!submitting) {
34
+ open = false;
35
+ reset();
36
+ }
37
+ }
38
+ function handleSubmit(e) {
39
+ e?.preventDefault();
40
+ if (submitting) return;
41
+ const trimmedLabel = label.trim();
42
+ if (trimmedLabel.length === 0) {
43
+ labelError = version_snapshot_label();
44
+ return;
45
+ }
46
+ if (trimmedLabel.length > MAX_LABEL_LENGTH) {
47
+ labelError = error_validation();
48
+ return;
49
+ }
50
+ const trimmedDescription = description.trim();
51
+ if (trimmedDescription.length > MAX_DESCRIPTION_LENGTH) {
52
+ submitError = error_validation();
53
+ return;
54
+ }
55
+ doCreate(trimmedLabel, trimmedDescription);
56
+ }
57
+ async function doCreate(trimmedLabel, trimmedDescription) {
58
+ submitting = true;
59
+ labelError = null;
60
+ submitError = null;
61
+ try {
62
+ const body = { label: trimmedLabel };
63
+ if (trimmedDescription.length > 0) body.description = trimmedDescription;
64
+ await apiFetch(`/api/documents/${documentId}/versions`, {
65
+ method: "POST",
66
+ body: JSON.stringify(body)
67
+ });
68
+ onSuccess?.();
69
+ open = false;
70
+ reset();
71
+ } catch (e) {
72
+ if (e instanceof ApiError) submitError = `${version_restore_failed()}: ${e.message}`;
73
+ else submitError = e instanceof Error ? e.message : error_server();
74
+ console.error("CreateSnapshotDialog: failed", e);
75
+ } finally {
76
+ submitting = false;
77
+ }
78
+ }
79
+ function handleLabelKeydown(e) {
80
+ if (e.key === "Enter" && !e.shiftKey) {
81
+ e.preventDefault();
82
+ handleSubmit();
83
+ }
84
+ }
85
+ let $$settled = true;
86
+ let $$inner_renderer;
87
+ function $$render_inner($$renderer) {
88
+ Dialog($$renderer, {
89
+ onOpenChange: handleOpenChange,
90
+ get open() {
91
+ return open;
92
+ },
93
+ set open($$value) {
94
+ open = $$value;
95
+ $$settled = false;
96
+ },
97
+ children: ($$renderer) => {
98
+ Dialog_header($$renderer, {
99
+ children: ($$renderer) => {
100
+ Dialog_title($$renderer, {
101
+ children: ($$renderer) => {
102
+ $$renderer.push(`<!---->${$.escape(version_snapshot_dialog_title())}`);
103
+ },
104
+ $$slots: { default: true }
105
+ });
106
+ $$renderer.push(`<!----> `);
107
+ Dialog_description($$renderer, {
108
+ children: ($$renderer) => {
109
+ $$renderer.push(`<!---->${$.escape(version_snapshot_dialog_description())}`);
110
+ },
111
+ $$slots: { default: true }
112
+ });
113
+ $$renderer.push(`<!---->`);
114
+ },
115
+ $$slots: { default: true }
116
+ });
117
+ $$renderer.push(`<!----> <form class="space-y-4"><div class="space-y-2"><label for="snapshot-label" class="text-sm font-medium">${$.escape(version_snapshot_label())}</label> `);
118
+ Input($$renderer, {
119
+ id: "snapshot-label",
120
+ name: "label",
121
+ type: "text",
122
+ placeholder: version_snapshot_label_placeholder(),
123
+ maxlength: MAX_LABEL_LENGTH,
124
+ required: true,
125
+ disabled: submitting,
126
+ "aria-invalid": labelError ? "true" : void 0,
127
+ "aria-describedby": labelError ? "snapshot-label-error" : void 0,
128
+ autocomplete: "off",
129
+ onkeydown: handleLabelKeydown,
130
+ get value() {
131
+ return label;
132
+ },
133
+ set value($$value) {
134
+ label = $$value;
135
+ $$settled = false;
136
+ }
137
+ });
138
+ $$renderer.push(`<!----> `);
139
+ if (labelError) {
140
+ $$renderer.push("<!--[0-->");
141
+ $$renderer.push(`<p id="snapshot-label-error" class="text-xs text-destructive">${$.escape(labelError)}</p>`);
142
+ } else $$renderer.push("<!--[-1-->");
143
+ $$renderer.push(`<!--]--></div> <div class="space-y-2"><label for="snapshot-description" class="text-sm font-medium">${$.escape(version_snapshot_description())}</label> `);
144
+ Textarea($$renderer, {
145
+ id: "snapshot-description",
146
+ name: "description",
147
+ placeholder: version_snapshot_description_placeholder(),
148
+ maxlength: MAX_DESCRIPTION_LENGTH,
149
+ rows: 3,
150
+ disabled: submitting,
151
+ get value() {
152
+ return description;
153
+ },
154
+ set value($$value) {
155
+ description = $$value;
156
+ $$settled = false;
157
+ }
158
+ });
159
+ $$renderer.push(`<!----></div> `);
160
+ if (submitError) {
161
+ $$renderer.push("<!--[0-->");
162
+ $$renderer.push(`<p class="text-xs text-destructive" role="alert">${$.escape(submitError)}</p>`);
163
+ } else $$renderer.push("<!--[-1-->");
164
+ $$renderer.push(`<!--]--></form> `);
165
+ Dialog_footer($$renderer, {
166
+ children: ($$renderer) => {
167
+ Button($$renderer, {
168
+ variant: "outline",
169
+ type: "button",
170
+ onclick: close,
171
+ disabled: submitting,
172
+ children: ($$renderer) => {
173
+ $$renderer.push(`<!---->${$.escape(action_cancel())}`);
174
+ },
175
+ $$slots: { default: true }
176
+ });
177
+ $$renderer.push(`<!----> `);
178
+ Button($$renderer, {
179
+ type: "button",
180
+ onclick: () => handleSubmit(),
181
+ disabled: submitting || label.trim().length === 0,
182
+ children: ($$renderer) => {
183
+ if (submitting) {
184
+ $$renderer.push("<!--[0-->");
185
+ Loader_circle($$renderer, { class: "mr-1 size-4 animate-spin" });
186
+ $$renderer.push(`<!----> ${$.escape(version_snapshot_creating())}`);
187
+ } else {
188
+ $$renderer.push("<!--[-1-->");
189
+ $$renderer.push(`${$.escape(version_snapshot_create())}`);
190
+ }
191
+ $$renderer.push(`<!--]-->`);
192
+ },
193
+ $$slots: { default: true }
194
+ });
195
+ $$renderer.push(`<!---->`);
196
+ },
197
+ $$slots: { default: true }
198
+ });
199
+ $$renderer.push(`<!---->`);
200
+ },
201
+ $$slots: { default: true }
202
+ });
203
+ }
204
+ do {
205
+ $$settled = true;
206
+ $$inner_renderer = $$renderer.copy();
207
+ $$render_inner($$inner_renderer);
208
+ } while (!$$settled);
209
+ $$renderer.subsume($$inner_renderer);
210
+ $.bind_props($$props, { open });
211
+ });
212
+ }
213
+ //#endregion
214
+ export { CreateSnapshotDialog as t };