@phtngyn/cms 0.2.0-beta.7 → 0.3.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.
Files changed (524) hide show
  1. package/LICENSE +18 -10
  2. package/README.md +59 -401
  3. package/drizzle/20261003215543_initial/migration.sql +251 -0
  4. package/drizzle/20261003215543_initial/snapshot.json +1941 -0
  5. package/package.json +75 -71
  6. package/src/Authoring.d.ts +41 -49
  7. package/src/Authoring.js +1 -1
  8. package/src/Blocks-BrxSemnd.js +40 -0
  9. package/src/Client.d.ts +8186 -0
  10. package/src/Client.js +41 -0
  11. package/src/Collections.d.ts +142 -0
  12. package/src/Collections.js +142 -0
  13. package/src/Config-CMiwciub.js +130 -0
  14. package/src/Config.d.ts +172 -0
  15. package/src/Config.js +2 -0
  16. package/src/Configuration-Dk2k3OIc.js +73 -0
  17. package/src/DataTransfer-BmECvPHB.js +488 -0
  18. package/src/Database-DSsNCGft.d.ts +3 -0
  19. package/src/Delivery.d.ts +28 -0
  20. package/src/Delivery.js +7 -0
  21. package/src/Document-CKXMSEf1.js +293 -0
  22. package/src/Document-TgwYKJZM.d.ts +220 -0
  23. package/src/DocumentRenderer-Wz2xaNyf.js +394 -0
  24. package/src/EditorSchema-wrDv-id6.js +296 -0
  25. package/src/Fields-BegSgYhj.d.ts +166 -0
  26. package/src/Fields-ioGaMEh9.js +130 -0
  27. package/src/Forms-BuKAXQxr.d.ts +203 -0
  28. package/src/Forms.d.ts +48 -11
  29. package/src/Forms.js +342 -7
  30. package/src/I18n-Ckf9h0rC.js +154 -0
  31. package/src/I18n.d.ts +45 -2
  32. package/src/I18n.js +2 -1
  33. package/src/Image-CJWPLnhP.js +110 -0
  34. package/src/Links-CJYyy7rC.js +28 -0
  35. package/src/Links-Dx1yOni8.d.ts +28 -0
  36. package/src/Locales-Ch7a5xuA.js +67 -0
  37. package/src/Locales-jwbmJaOp.d.ts +43 -0
  38. package/src/Locales.d.ts +3 -0
  39. package/src/Locales.js +3 -0
  40. package/src/Media-BQ0uL4w7.d.ts +15 -0
  41. package/src/Media-DSyvd14o.js +87 -0
  42. package/src/Module.d.ts +2 -10
  43. package/src/Module.js +1039 -162
  44. package/src/Operations.d.ts +57 -0
  45. package/src/Operations.js +263 -0
  46. package/src/People-DvNZauWw.js +69 -0
  47. package/src/PreviewFocus-C_EelZO5.js +104 -0
  48. package/src/Query-C0kGJF5_.d.ts +261 -0
  49. package/src/RevisionPreview-IVwbJ9Wy.js +133 -0
  50. package/src/Routes-BaZvm2LE.js +126 -0
  51. package/src/Routes-DM1rRp3r.d.ts +15 -0
  52. package/src/S3MediaObjects-y-WacEi9.js +193 -0
  53. package/src/Seo-BcpqxoAs.d.ts +57 -0
  54. package/src/Seo-CjNUtUkj.js +254 -0
  55. package/src/StudioApi-CXLwwocX.js +833 -0
  56. package/src/StudioErrors-T5zLGQ1M.js +117 -0
  57. package/src/StudioErrors-kq-E44lQ.d.ts +104 -0
  58. package/src/StudioServer.d.ts +20 -0
  59. package/src/StudioServer.js +34 -0
  60. package/src/answers-DcTg0Xv2.js +41 -0
  61. package/src/cli.js +681 -187
  62. package/src/contracts-rprW3ZOB.js +130 -0
  63. package/src/forms-3xuf0Ym7.d.ts +206 -0
  64. package/src/localeConfiguration-BPbkLi7-.js +32 -0
  65. package/src/localeContext-DhF3SPvM.js +59 -0
  66. package/src/locales-6OD4XGIZ.js +12 -0
  67. package/src/nuxtDelivery-BYX_Cddb.js +466 -0
  68. package/src/plugin-DTYuDaQu.js +7171 -0
  69. package/src/previewContext-dt3ZUh-w.js +4 -0
  70. package/src/previewRegions-CXjk5cbP.js +145 -0
  71. package/src/previewSource-fb-q3ESM.js +144 -0
  72. package/src/rendering-D9LVeEKX.js +47 -0
  73. package/src/rolldown-runtime-8H4AJuhK.js +14 -0
  74. package/src/runtime/CmsImage.js +38 -0
  75. package/src/runtime/DocumentPage.vue +10 -0
  76. package/src/runtime/DocumentPageContent.js +48 -0
  77. package/src/runtime/DocumentRenderer.d.ts +129 -0
  78. package/src/runtime/DocumentRenderer.js +2 -0
  79. package/src/runtime/api.js +48 -6
  80. package/src/runtime/delivery/useCmsDocument.js +2 -0
  81. package/src/runtime/delivery/useCmsDocumentQuery.js +2 -0
  82. package/src/runtime/delivery/useCmsDocumentSeo.js +2 -114
  83. package/src/runtime/delivery/useCmsLocale.js +10 -0
  84. package/src/runtime/plugin.js +2 -40
  85. package/src/runtime/preview.css +85 -0
  86. package/src/runtime/preview.js +277 -0
  87. package/src/runtime/previewSource.js +82 -0
  88. package/src/runtime/revisionPrivacy.js +13 -0
  89. package/src/runtime/studio.js +10 -0
  90. package/src/runtime/studioIcons.js +36 -0
  91. package/src/validation-3pggwcnm.js +396 -0
  92. package/src/validation-DpUwPC8Y.js +224 -0
  93. package/studio/THIRD-PARTY-LICENSES.md +2406 -0
  94. package/studio/chunks/AccountPage-DL3DitDM.js +288 -0
  95. package/studio/chunks/AccountPage-DL3DitDM.js.br +0 -0
  96. package/studio/chunks/AccountPage-DL3DitDM.js.gz +0 -0
  97. package/studio/chunks/ActivityPage-CLqVUqTh.js +584 -0
  98. package/studio/chunks/ActivityPage-CLqVUqTh.js.br +0 -0
  99. package/studio/chunks/ActivityPage-CLqVUqTh.js.gz +0 -0
  100. package/studio/chunks/Alert-D0D24z_a.js +335 -0
  101. package/studio/chunks/Alert-D0D24z_a.js.br +0 -0
  102. package/studio/chunks/Alert-D0D24z_a.js.gz +0 -0
  103. package/studio/chunks/Badge-BBFs88TI.js +346 -0
  104. package/studio/chunks/Badge-BBFs88TI.js.br +0 -0
  105. package/studio/chunks/Badge-BBFs88TI.js.gz +0 -0
  106. package/studio/chunks/Button-BT3ztSPx.js +14319 -0
  107. package/studio/chunks/Button-BT3ztSPx.js.br +0 -0
  108. package/studio/chunks/Button-BT3ztSPx.js.gz +0 -0
  109. package/studio/chunks/Collapsible-CKnEYIlp.js +246 -0
  110. package/studio/chunks/Collapsible-CKnEYIlp.js.br +0 -0
  111. package/studio/chunks/Collapsible-CKnEYIlp.js.gz +0 -0
  112. package/studio/chunks/ContentInventory-D7nsFA6U.js +1745 -0
  113. package/studio/chunks/ContentInventory-D7nsFA6U.js.br +0 -0
  114. package/studio/chunks/ContentInventory-D7nsFA6U.js.gz +0 -0
  115. package/studio/chunks/ContentPage-DCxt6BeD.js +18 -0
  116. package/studio/chunks/ContentPage-DCxt6BeD.js.br +0 -0
  117. package/studio/chunks/ContentPage-DCxt6BeD.js.gz +0 -0
  118. package/studio/chunks/DashboardSearch-DjyMjJwF.js +2413 -0
  119. package/studio/chunks/DashboardSearch-DjyMjJwF.js.br +0 -0
  120. package/studio/chunks/DashboardSearch-DjyMjJwF.js.gz +0 -0
  121. package/studio/chunks/DocumentLocaleMenu-0EkkOr6_.js +26063 -0
  122. package/studio/chunks/DocumentLocaleMenu-0EkkOr6_.js.br +0 -0
  123. package/studio/chunks/DocumentLocaleMenu-0EkkOr6_.js.gz +0 -0
  124. package/studio/chunks/DropdownMenu-CA9fB0uZ.js +4400 -0
  125. package/studio/chunks/DropdownMenu-CA9fB0uZ.js.br +0 -0
  126. package/studio/chunks/DropdownMenu-CA9fB0uZ.js.gz +0 -0
  127. package/studio/chunks/EditorPage-D_PAYEE4.js +7799 -0
  128. package/studio/chunks/EditorPage-D_PAYEE4.js.br +0 -0
  129. package/studio/chunks/EditorPage-D_PAYEE4.js.gz +0 -0
  130. package/studio/chunks/FormField-CgM6l2Yn.js +198 -0
  131. package/studio/chunks/FormField-CgM6l2Yn.js.br +0 -0
  132. package/studio/chunks/FormField-CgM6l2Yn.js.gz +0 -0
  133. package/studio/chunks/HelpPage-C-vrFcT_.js +552 -0
  134. package/studio/chunks/HelpPage-C-vrFcT_.js.br +0 -0
  135. package/studio/chunks/HelpPage-C-vrFcT_.js.gz +0 -0
  136. package/studio/chunks/Kbd-Ot7TIhVZ.js +271 -0
  137. package/studio/chunks/Kbd-Ot7TIhVZ.js.br +0 -0
  138. package/studio/chunks/Kbd-Ot7TIhVZ.js.gz +0 -0
  139. package/studio/chunks/MediaFolderDialog-DYu-eu-q.js +101 -0
  140. package/studio/chunks/MediaFolderDialog-DYu-eu-q.js.br +0 -0
  141. package/studio/chunks/MediaFolderDialog-DYu-eu-q.js.gz +0 -0
  142. package/studio/chunks/MediaPage-D-jaWtdl.js +923 -0
  143. package/studio/chunks/MediaPage-D-jaWtdl.js.br +0 -0
  144. package/studio/chunks/MediaPage-D-jaWtdl.js.gz +0 -0
  145. package/studio/chunks/MediaPicker-BZs2wUFz.js +837 -0
  146. package/studio/chunks/MediaPicker-BZs2wUFz.js.br +0 -0
  147. package/studio/chunks/MediaPicker-BZs2wUFz.js.gz +0 -0
  148. package/studio/chunks/MediaUploadPanel-C7Kyg6aR.js +1173 -0
  149. package/studio/chunks/MediaUploadPanel-C7Kyg6aR.js.br +0 -0
  150. package/studio/chunks/MediaUploadPanel-C7Kyg6aR.js.gz +0 -0
  151. package/studio/chunks/Modal-D6hSvxHd.js +265 -0
  152. package/studio/chunks/Modal-D6hSvxHd.js.br +0 -0
  153. package/studio/chunks/Modal-D6hSvxHd.js.gz +0 -0
  154. package/studio/chunks/NewDocumentDialog-C8B6_r3J.js +277 -0
  155. package/studio/chunks/NewDocumentDialog-C8B6_r3J.js.br +0 -0
  156. package/studio/chunks/NewDocumentDialog-C8B6_r3J.js.gz +0 -0
  157. package/studio/chunks/Pagination-D9BSo5H2.js +573 -0
  158. package/studio/chunks/Pagination-D9BSo5H2.js.br +0 -0
  159. package/studio/chunks/Pagination-D9BSo5H2.js.gz +0 -0
  160. package/studio/chunks/PeoplePage-CWIXitBD.js +783 -0
  161. package/studio/chunks/PeoplePage-CWIXitBD.js.br +0 -0
  162. package/studio/chunks/PeoplePage-CWIXitBD.js.gz +0 -0
  163. package/studio/chunks/Popover-B63bkTMS.js +128 -0
  164. package/studio/chunks/Popover-B63bkTMS.js.br +0 -0
  165. package/studio/chunks/Popover-B63bkTMS.js.gz +0 -0
  166. package/studio/chunks/PublicationActionDialog-Cm_P0C3I.js +255 -0
  167. package/studio/chunks/PublicationActionDialog-Cm_P0C3I.js.br +0 -0
  168. package/studio/chunks/PublicationActionDialog-Cm_P0C3I.js.gz +0 -0
  169. package/studio/chunks/Routes-DLYHmulE.js +102 -0
  170. package/studio/chunks/Routes-DLYHmulE.js.br +0 -0
  171. package/studio/chunks/Routes-DLYHmulE.js.gz +0 -0
  172. package/studio/chunks/RovingFocusItem-QZNg-wWF.js +95 -0
  173. package/studio/chunks/RovingFocusItem-QZNg-wWF.js.br +0 -0
  174. package/studio/chunks/RovingFocusItem-QZNg-wWF.js.gz +0 -0
  175. package/studio/chunks/ScheduledPage-C0hqrkr5.js +332 -0
  176. package/studio/chunks/ScheduledPage-C0hqrkr5.js.br +0 -0
  177. package/studio/chunks/ScheduledPage-C0hqrkr5.js.gz +0 -0
  178. package/studio/chunks/Search-BEgCe9Aj.js +14646 -0
  179. package/studio/chunks/Search-BEgCe9Aj.js.br +0 -0
  180. package/studio/chunks/Search-BEgCe9Aj.js.gz +0 -0
  181. package/studio/chunks/Select-B50WZMW-.js +2145 -0
  182. package/studio/chunks/Select-B50WZMW-.js.br +0 -0
  183. package/studio/chunks/Select-B50WZMW-.js.gz +0 -0
  184. package/studio/chunks/SelectMenu-DSweWGMz.js +2109 -0
  185. package/studio/chunks/SelectMenu-DSweWGMz.js.br +0 -0
  186. package/studio/chunks/SelectMenu-DSweWGMz.js.gz +0 -0
  187. package/studio/chunks/SeoPage-CNNxGe4h.js +846 -0
  188. package/studio/chunks/SeoPage-CNNxGe4h.js.br +0 -0
  189. package/studio/chunks/SeoPage-CNNxGe4h.js.gz +0 -0
  190. package/studio/chunks/Skeleton-COz8dcrw.js +39 -0
  191. package/studio/chunks/Skeleton-COz8dcrw.js.br +2 -0
  192. package/studio/chunks/Skeleton-COz8dcrw.js.gz +0 -0
  193. package/studio/chunks/Slideover-QMMHAAys.js +289 -0
  194. package/studio/chunks/Slideover-QMMHAAys.js.br +0 -0
  195. package/studio/chunks/Slideover-QMMHAAys.js.gz +0 -0
  196. package/studio/chunks/StudioPage-ngEIDr5d.js +80 -0
  197. package/studio/chunks/StudioPage-ngEIDr5d.js.br +0 -0
  198. package/studio/chunks/StudioPage-ngEIDr5d.js.gz +0 -0
  199. package/studio/chunks/StudioPageToolbar-BwHnqyr6.js +2524 -0
  200. package/studio/chunks/StudioPageToolbar-BwHnqyr6.js.br +0 -0
  201. package/studio/chunks/StudioPageToolbar-BwHnqyr6.js.gz +0 -0
  202. package/studio/chunks/Switch-qKl1aDn7.js +484 -0
  203. package/studio/chunks/Switch-qKl1aDn7.js.br +0 -0
  204. package/studio/chunks/Switch-qKl1aDn7.js.gz +0 -0
  205. package/studio/chunks/ToolPage-DxoVAJVk.js +29 -0
  206. package/studio/chunks/ToolPage-DxoVAJVk.js.br +0 -0
  207. package/studio/chunks/ToolPage-DxoVAJVk.js.gz +0 -0
  208. package/studio/chunks/Tooltip-Bu15m_DB.js +693 -0
  209. package/studio/chunks/Tooltip-Bu15m_DB.js.br +0 -0
  210. package/studio/chunks/Tooltip-Bu15m_DB.js.gz +0 -0
  211. package/studio/chunks/TrashPage-lhqLLdoG.js +12 -0
  212. package/studio/chunks/TrashPage-lhqLLdoG.js.br +0 -0
  213. package/studio/chunks/TrashPage-lhqLLdoG.js.gz +0 -0
  214. package/studio/chunks/VersionsPage-Cqy6UAp9.js +2349 -0
  215. package/studio/chunks/VersionsPage-Cqy6UAp9.js.br +0 -0
  216. package/studio/chunks/VersionsPage-Cqy6UAp9.js.gz +0 -0
  217. package/studio/chunks/VisuallyHiddenInput-Cu8hQLRf.js +113 -0
  218. package/studio/chunks/VisuallyHiddenInput-Cu8hQLRf.js.br +0 -0
  219. package/studio/chunks/VisuallyHiddenInput-Cu8hQLRf.js.gz +0 -0
  220. package/studio/chunks/arrays-CUJkmV4I.js +10 -0
  221. package/studio/chunks/arrays-CUJkmV4I.js.br +0 -0
  222. package/studio/chunks/arrays-CUJkmV4I.js.gz +0 -0
  223. package/studio/chunks/base-DkTekJe8.js +213 -0
  224. package/studio/chunks/base-DkTekJe8.js.br +0 -0
  225. package/studio/chunks/base-DkTekJe8.js.gz +0 -0
  226. package/studio/chunks/content-DUGl3N4d.js +6012 -0
  227. package/studio/chunks/content-DUGl3N4d.js.br +0 -0
  228. package/studio/chunks/content-DUGl3N4d.js.gz +0 -0
  229. package/studio/chunks/destinations-DPIQVQa6.js +227 -0
  230. package/studio/chunks/destinations-DPIQVQa6.js.br +0 -0
  231. package/studio/chunks/destinations-DPIQVQa6.js.gz +0 -0
  232. package/studio/chunks/en-073cjKW4.js +152 -0
  233. package/studio/chunks/en-073cjKW4.js.br +0 -0
  234. package/studio/chunks/en-073cjKW4.js.gz +0 -0
  235. package/studio/chunks/en-Bn8mxPuf.js +134 -0
  236. package/studio/chunks/en-Bn8mxPuf.js.br +0 -0
  237. package/studio/chunks/en-Bn8mxPuf.js.gz +0 -0
  238. package/studio/chunks/en-C9OiaUDZ.js +251 -0
  239. package/studio/chunks/en-C9OiaUDZ.js.br +0 -0
  240. package/studio/chunks/en-C9OiaUDZ.js.gz +0 -0
  241. package/studio/chunks/en-CHAR6jzx.js +147 -0
  242. package/studio/chunks/en-CHAR6jzx.js.br +0 -0
  243. package/studio/chunks/en-CHAR6jzx.js.gz +0 -0
  244. package/studio/chunks/en-Cq4N1vEF.js +93 -0
  245. package/studio/chunks/en-Cq4N1vEF.js.br +2 -0
  246. package/studio/chunks/en-Cq4N1vEF.js.gz +0 -0
  247. package/studio/chunks/en-D2hRqlse.js +140 -0
  248. package/studio/chunks/en-D2hRqlse.js.br +0 -0
  249. package/studio/chunks/en-D2hRqlse.js.gz +0 -0
  250. package/studio/chunks/en-DiUC3-j6.js +144 -0
  251. package/studio/chunks/en-DiUC3-j6.js.br +0 -0
  252. package/studio/chunks/en-DiUC3-j6.js.gz +0 -0
  253. package/studio/chunks/english-Cs_Adu-u.js +8 -0
  254. package/studio/chunks/english-Cs_Adu-u.js.br +0 -0
  255. package/studio/chunks/english-Cs_Adu-u.js.gz +0 -0
  256. package/studio/chunks/esm-D6DqSiL1.js +752 -0
  257. package/studio/chunks/esm-D6DqSiL1.js.br +0 -0
  258. package/studio/chunks/esm-D6DqSiL1.js.gz +0 -0
  259. package/studio/chunks/externalRequest-CTzr2nDq.js +23 -0
  260. package/studio/chunks/externalRequest-CTzr2nDq.js.br +0 -0
  261. package/studio/chunks/externalRequest-CTzr2nDq.js.gz +0 -0
  262. package/studio/chunks/iconify-DR9ryCPv.js +1007 -0
  263. package/studio/chunks/iconify-DR9ryCPv.js.br +0 -0
  264. package/studio/chunks/iconify-DR9ryCPv.js.gz +0 -0
  265. package/studio/chunks/icons-D2MsAaXq.js +183 -0
  266. package/studio/chunks/icons-D2MsAaXq.js.br +0 -0
  267. package/studio/chunks/icons-D2MsAaXq.js.gz +0 -0
  268. package/studio/chunks/leaveGuards-D22fTGgr.js +26 -0
  269. package/studio/chunks/leaveGuards-D22fTGgr.js.br +0 -0
  270. package/studio/chunks/leaveGuards-D22fTGgr.js.gz +0 -0
  271. package/studio/chunks/lucideIcons-EyqyPBsX.js +238 -0
  272. package/studio/chunks/lucideIcons-EyqyPBsX.js.br +0 -0
  273. package/studio/chunks/lucideIcons-EyqyPBsX.js.gz +0 -0
  274. package/studio/chunks/mediaRoute--8cY8rUe.js +17 -0
  275. package/studio/chunks/mediaRoute--8cY8rUe.js.br +0 -0
  276. package/studio/chunks/mediaRoute--8cY8rUe.js.gz +0 -0
  277. package/studio/chunks/newDocumentPlanning-C26DHpvh.js +77 -0
  278. package/studio/chunks/newDocumentPlanning-C26DHpvh.js.br +0 -0
  279. package/studio/chunks/newDocumentPlanning-C26DHpvh.js.gz +0 -0
  280. package/studio/chunks/notifications-OKOLc40v.js +110 -0
  281. package/studio/chunks/notifications-OKOLc40v.js.br +0 -0
  282. package/studio/chunks/notifications-OKOLc40v.js.gz +0 -0
  283. package/studio/chunks/operations-CjNHyrEX.js +57 -0
  284. package/studio/chunks/operations-CjNHyrEX.js.br +0 -0
  285. package/studio/chunks/operations-CjNHyrEX.js.gz +0 -0
  286. package/studio/chunks/overlay-DnqFLZTc.js +1733 -0
  287. package/studio/chunks/overlay-DnqFLZTc.js.br +0 -0
  288. package/studio/chunks/overlay-DnqFLZTc.js.gz +0 -0
  289. package/studio/chunks/presentation-DF83w0hE.js +57 -0
  290. package/studio/chunks/presentation-DF83w0hE.js.br +0 -0
  291. package/studio/chunks/presentation-DF83w0hE.js.gz +0 -0
  292. package/studio/chunks/runtime-core.esm-bundler-DKFA9Rep.js +4557 -0
  293. package/studio/chunks/runtime-core.esm-bundler-DKFA9Rep.js.br +0 -0
  294. package/studio/chunks/runtime-core.esm-bundler-DKFA9Rep.js.gz +0 -0
  295. package/studio/chunks/searchPresentation-DFwxQkt3.js +76 -0
  296. package/studio/chunks/searchPresentation-DFwxQkt3.js.br +0 -0
  297. package/studio/chunks/searchPresentation-DFwxQkt3.js.gz +0 -0
  298. package/studio/chunks/status-DQv6ihkU.js +38 -0
  299. package/studio/chunks/status-DQv6ihkU.js.br +0 -0
  300. package/studio/chunks/status-DQv6ihkU.js.gz +0 -0
  301. package/studio/chunks/studioContext-I8HozGU1.js +4953 -0
  302. package/studio/chunks/studioContext-I8HozGU1.js.br +0 -0
  303. package/studio/chunks/studioContext-I8HozGU1.js.gz +0 -0
  304. package/studio/chunks/studioQueries-BR-9NT5F.js +73 -0
  305. package/studio/chunks/studioQueries-BR-9NT5F.js.br +0 -0
  306. package/studio/chunks/studioQueries-BR-9NT5F.js.gz +0 -0
  307. package/studio/chunks/studioSearch-ByaL-QpM.js +1095 -0
  308. package/studio/chunks/studioSearch-ByaL-QpM.js.br +0 -0
  309. package/studio/chunks/studioSearch-ByaL-QpM.js.gz +0 -0
  310. package/studio/chunks/useAcknowledgedDraft-0_c9sWI6.js +62 -0
  311. package/studio/chunks/useAcknowledgedDraft-0_c9sWI6.js.br +0 -0
  312. package/studio/chunks/useAcknowledgedDraft-0_c9sWI6.js.gz +0 -0
  313. package/studio/chunks/useApi-CUWMwLLw-B3Q3g2nf.js +189 -0
  314. package/studio/chunks/useApi-CUWMwLLw-B3Q3g2nf.js.br +0 -0
  315. package/studio/chunks/useApi-CUWMwLLw-B3Q3g2nf.js.gz +0 -0
  316. package/studio/chunks/useDocumentMessage-BAWvc38w.js +16 -0
  317. package/studio/chunks/useDocumentMessage-BAWvc38w.js.br +3 -0
  318. package/studio/chunks/useDocumentMessage-BAWvc38w.js.gz +0 -0
  319. package/studio/chunks/useFilter-DzyiTR7f.js +87 -0
  320. package/studio/chunks/useFilter-DzyiTR7f.js.br +0 -0
  321. package/studio/chunks/useFilter-DzyiTR7f.js.gz +0 -0
  322. package/studio/chunks/useFormControl-CL7sSCUo.js +8 -0
  323. package/studio/chunks/useFormControl-CL7sSCUo.js.br +0 -0
  324. package/studio/chunks/useFormControl-CL7sSCUo.js.gz +0 -0
  325. package/studio/chunks/useGraceArea-Chcy25IQ.js +154 -0
  326. package/studio/chunks/useGraceArea-Chcy25IQ.js.br +0 -0
  327. package/studio/chunks/useGraceArea-Chcy25IQ.js.gz +0 -0
  328. package/studio/chunks/useLeaveConfirmation-_iCSnKEp.js +44 -0
  329. package/studio/chunks/useLeaveConfirmation-_iCSnKEp.js.br +8 -0
  330. package/studio/chunks/useLeaveConfirmation-_iCSnKEp.js.gz +0 -0
  331. package/studio/chunks/useLinkCopy-CMjQteCy.js +35 -0
  332. package/studio/chunks/useLinkCopy-CMjQteCy.js.br +0 -0
  333. package/studio/chunks/useLinkCopy-CMjQteCy.js.gz +0 -0
  334. package/studio/chunks/usePointerMotion-DwRcwBNQ.js +16 -0
  335. package/studio/chunks/usePointerMotion-DwRcwBNQ.js.br +0 -0
  336. package/studio/chunks/usePointerMotion-DwRcwBNQ.js.gz +0 -0
  337. package/studio/chunks/useStudioNavigation-CLwtSYpb.js +298 -0
  338. package/studio/chunks/useStudioNavigation-CLwtSYpb.js.br +0 -0
  339. package/studio/chunks/useStudioNavigation-CLwtSYpb.js.gz +0 -0
  340. package/studio/chunks/useStudioPages-DR9qmYLg.js +79 -0
  341. package/studio/chunks/useStudioPages-DR9qmYLg.js.br +0 -0
  342. package/studio/chunks/useStudioPages-DR9qmYLg.js.gz +0 -0
  343. package/studio/chunks/utils-mdScC0v0.js +59 -0
  344. package/studio/chunks/utils-mdScC0v0.js.br +0 -0
  345. package/studio/chunks/utils-mdScC0v0.js.gz +0 -0
  346. package/studio/chunks/virtualizer-D1S0bZ4t.js +781 -0
  347. package/studio/chunks/virtualizer-D1S0bZ4t.js.br +0 -0
  348. package/studio/chunks/virtualizer-D1S0bZ4t.js.gz +0 -0
  349. package/studio/help/64f767fe29c2-save-and-publish.svg +7 -0
  350. package/studio/host.css +1 -1
  351. package/studio/host.css.br +0 -0
  352. package/studio/host.css.gz +0 -0
  353. package/studio/host.js +8757 -39178
  354. package/studio/host.js.br +0 -0
  355. package/studio/host.js.gz +0 -0
  356. package/CHANGELOG.md +0 -13
  357. package/bin/cms.mjs +0 -2
  358. package/src/ApplicationTypes.d.ts +0 -84
  359. package/src/ApplicationTypes.js +0 -1
  360. package/src/Configuration-Da5B2PVH.js +0 -1191
  361. package/src/Configuration-Da5B2PVH.js.map +0 -1
  362. package/src/Configuration.d.ts +0 -82
  363. package/src/Configuration.js +0 -8
  364. package/src/Configuration.js.map +0 -1
  365. package/src/Content.d.ts +0 -68
  366. package/src/Content.js +0 -373
  367. package/src/Content.js.map +0 -1
  368. package/src/ContentTransfer-BxwswWn3.js +0 -86
  369. package/src/ContentTransfer-BxwswWn3.js.map +0 -1
  370. package/src/ContentTransfer-Z9FHyLez.d.ts +0 -72
  371. package/src/DocumentEngine-hh_IGPXO.js +0 -978
  372. package/src/DocumentEngine-hh_IGPXO.js.map +0 -1
  373. package/src/DocumentModel.d.ts +0 -52
  374. package/src/DocumentModel.js +0 -66
  375. package/src/DocumentModel.js.map +0 -1
  376. package/src/Forms-CX-hwmJF.js +0 -391
  377. package/src/Forms-CX-hwmJF.js.map +0 -1
  378. package/src/Forms-CfNPTiCr.js +0 -110
  379. package/src/Forms-CfNPTiCr.js.map +0 -1
  380. package/src/Forms-R0HoTR-o.d.ts +0 -92
  381. package/src/Forms.js.map +0 -1
  382. package/src/HttpPaths-c9nLZ9H2.js +0 -21
  383. package/src/HttpPaths-c9nLZ9H2.js.map +0 -1
  384. package/src/I18n-zbqpWxki.d.ts +0 -29
  385. package/src/Media-j1bTritO.js +0 -112
  386. package/src/Media-j1bTritO.js.map +0 -1
  387. package/src/Module.js.map +0 -1
  388. package/src/References-CCPDAPve.js +0 -45
  389. package/src/References-CCPDAPve.js.map +0 -1
  390. package/src/S3MediaObjects-Dwhl2deX.js +0 -2742
  391. package/src/S3MediaObjects-Dwhl2deX.js.map +0 -1
  392. package/src/Seo-402YumpT.d.ts +0 -198
  393. package/src/cli/content.js +0 -101
  394. package/src/cli/content.js.map +0 -1
  395. package/src/cli.js.map +0 -1
  396. package/src/connection-BP80q4d-.js +0 -92
  397. package/src/connection-BP80q4d-.js.map +0 -1
  398. package/src/dev-lifecycle-CjDq63Ft.js +0 -535
  399. package/src/dev-lifecycle-CjDq63Ft.js.map +0 -1
  400. package/src/installation-DYNQQBD3.js +0 -9114
  401. package/src/installation-DYNQQBD3.js.map +0 -1
  402. package/src/internal/application-types.js +0 -43
  403. package/src/internal/application-types.js.map +0 -1
  404. package/src/internal/authoring-catalog.js +0 -158
  405. package/src/internal/authoring-catalog.js.map +0 -1
  406. package/src/internal/authoring-compiler.js +0 -146
  407. package/src/internal/authoring-compiler.js.map +0 -1
  408. package/src/internal/authoring-metadata.js +0 -191
  409. package/src/internal/authoring-metadata.js.map +0 -1
  410. package/src/internal/cms-config.js +0 -45
  411. package/src/internal/cms-config.js.map +0 -1
  412. package/src/internal/configuration.js +0 -228
  413. package/src/internal/configuration.js.map +0 -1
  414. package/src/internal/dev-lifecycle.js +0 -3
  415. package/src/internal/diagnostics.js +0 -47
  416. package/src/internal/diagnostics.js.map +0 -1
  417. package/src/internal/document-model.js +0 -376
  418. package/src/internal/document-model.js.map +0 -1
  419. package/src/internal/field-metadata.js +0 -7
  420. package/src/internal/field-metadata.js.map +0 -1
  421. package/src/internal/form-capabilities.js +0 -12
  422. package/src/internal/form-capabilities.js.map +0 -1
  423. package/src/internal/i18n.js +0 -73
  424. package/src/internal/i18n.js.map +0 -1
  425. package/src/internal/studio-app.js +0 -68
  426. package/src/internal/studio-app.js.map +0 -1
  427. package/src/location-CMNGO3lU.js +0 -35
  428. package/src/location-CMNGO3lU.js.map +0 -1
  429. package/src/metadata-DN9_K6Yl.js +0 -201
  430. package/src/metadata-DN9_K6Yl.js.map +0 -1
  431. package/src/models-5j67LMqW.js +0 -131
  432. package/src/models-5j67LMqW.js.map +0 -1
  433. package/src/models-VmGmG19-.js +0 -628
  434. package/src/models-VmGmG19-.js.map +0 -1
  435. package/src/runtime/api.js.map +0 -1
  436. package/src/runtime/blocks.js +0 -30
  437. package/src/runtime/blocks.js.map +0 -1
  438. package/src/runtime/collaboration.js +0 -45
  439. package/src/runtime/collaboration.js.map +0 -1
  440. package/src/runtime/delivery/DocumentField.js +0 -23
  441. package/src/runtime/delivery/DocumentField.js.map +0 -1
  442. package/src/runtime/delivery/DocumentRenderer.js +0 -61
  443. package/src/runtime/delivery/DocumentRenderer.js.map +0 -1
  444. package/src/runtime/delivery/DocumentScope.js +0 -41
  445. package/src/runtime/delivery/DocumentScope.js.map +0 -1
  446. package/src/runtime/delivery/blocks.js +0 -8
  447. package/src/runtime/delivery/blocks.js.map +0 -1
  448. package/src/runtime/delivery/context.js +0 -12
  449. package/src/runtime/delivery/context.js.map +0 -1
  450. package/src/runtime/delivery/document-page.js +0 -21
  451. package/src/runtime/delivery/document-page.js.map +0 -1
  452. package/src/runtime/delivery/document.js +0 -43
  453. package/src/runtime/delivery/document.js.map +0 -1
  454. package/src/runtime/delivery/error.js +0 -11
  455. package/src/runtime/delivery/error.js.map +0 -1
  456. package/src/runtime/delivery/plugin.js +0 -99
  457. package/src/runtime/delivery/plugin.js.map +0 -1
  458. package/src/runtime/delivery/preview.d.ts +0 -11
  459. package/src/runtime/delivery/preview.js +0 -6
  460. package/src/runtime/delivery/preview.js.map +0 -1
  461. package/src/runtime/delivery/types.d.ts +0 -2
  462. package/src/runtime/delivery/types.js +0 -1
  463. package/src/runtime/delivery/useCmsDocumentSeo.d.ts +0 -67
  464. package/src/runtime/delivery/useCmsDocumentSeo.js.map +0 -1
  465. package/src/runtime/delivery/useDocument.d.ts +0 -6
  466. package/src/runtime/delivery/useDocument.js +0 -23
  467. package/src/runtime/delivery/useDocument.js.map +0 -1
  468. package/src/runtime/delivery/useDocumentQuery.d.ts +0 -7
  469. package/src/runtime/delivery/useDocumentQuery.js +0 -29
  470. package/src/runtime/delivery/useDocumentQuery.js.map +0 -1
  471. package/src/runtime/forms/document.js +0 -38
  472. package/src/runtime/forms/document.js.map +0 -1
  473. package/src/runtime/forms/useCmsForm.js +0 -257
  474. package/src/runtime/forms/useCmsForm.js.map +0 -1
  475. package/src/runtime/i18n/translator.js +0 -51
  476. package/src/runtime/i18n/translator.js.map +0 -1
  477. package/src/runtime/i18n/useCmsI18n.d.ts +0 -13
  478. package/src/runtime/i18n/useCmsI18n.js +0 -38
  479. package/src/runtime/i18n/useCmsI18n.js.map +0 -1
  480. package/src/runtime/installation.js +0 -3
  481. package/src/runtime/plugin.js.map +0 -1
  482. package/src/runtime/preview/CmsStudioPreviewMarker.js +0 -29
  483. package/src/runtime/preview/CmsStudioPreviewMarker.js.map +0 -1
  484. package/src/runtime/preview/comark-document.js +0 -37
  485. package/src/runtime/preview/comark-document.js.map +0 -1
  486. package/src/runtime/preview/connection.js +0 -3
  487. package/src/runtime/preview/controller.js +0 -265
  488. package/src/runtime/preview/controller.js.map +0 -1
  489. package/src/runtime/preview/crypto.js +0 -16
  490. package/src/runtime/preview/crypto.js.map +0 -1
  491. package/src/runtime/preview/overlay.js +0 -122
  492. package/src/runtime/preview/overlay.js.map +0 -1
  493. package/src/runtime/preview/plugin.client.js +0 -68
  494. package/src/runtime/preview/plugin.client.js.map +0 -1
  495. package/src/runtime/preview/preview.css +0 -91
  496. package/src/runtime/preview/protocol.d.ts +0 -16
  497. package/src/runtime/preview/protocol.js +0 -23
  498. package/src/runtime/preview/protocol.js.map +0 -1
  499. package/src/runtime/preview/regions.js +0 -142
  500. package/src/runtime/preview/regions.js.map +0 -1
  501. package/src/runtime/preview/store.js +0 -4
  502. package/src/runtime/sitemap-entries.js +0 -17
  503. package/src/runtime/sitemap-entries.js.map +0 -1
  504. package/src/runtime/sitemap.js +0 -23
  505. package/src/runtime/sitemap.js.map +0 -1
  506. package/src/runtime/studio-app.js +0 -17
  507. package/src/runtime/studio-app.js.map +0 -1
  508. package/src/runtime/studio-document.js +0 -46
  509. package/src/runtime/studio-document.js.map +0 -1
  510. package/src/runtime/studio-entry.js +0 -19
  511. package/src/runtime/studio-entry.js.map +0 -1
  512. package/src/runtime/studio-navigation.js +0 -11
  513. package/src/runtime/studio-navigation.js.map +0 -1
  514. package/src/scalars-CA6kyipS.d.ts +0 -7
  515. package/src/scalars-CVZqT3L0.js +0 -22
  516. package/src/scalars-CVZqT3L0.js.map +0 -1
  517. package/src/store-X1e1o_MF.js +0 -209
  518. package/src/store-X1e1o_MF.js.map +0 -1
  519. package/src/types-DZ0IV-Ow.d.ts +0 -101
  520. package/studio/CreateDocumentDialog-BpjBYGfI.js +0 -335
  521. package/studio/SelectMenu-KiXwx4Y_.js +0 -34032
  522. package/studio/collaboration-DcK2F6v9.js +0 -4566
  523. package/studio/editor-P2rB7Csp.js +0 -30128
  524. package/studio/rolldown-runtime-Dy4uBu1J.js +0 -11
@@ -0,0 +1,1095 @@
1
+ import { $ as e, A as t, B as n, Dt as r, E as i, F as a, H as o, Lt as s, O as c, Tt as l, b as u, h as d, m as f, nn as p, s as m, tn as h, vt as g, wt as _, y as v } from "./Button-BT3ztSPx.js";
2
+ import { $t as y, A as b, B as x, Ci as S, Cr as C, E as w, K as T, M as E, N as D, Nn as O, Or as k, Pn as A, Tr as ee, V as j, Yr as M, _i as N, aa as te, fa as P, gi as ne, gn as F, ii as I, k as L, mr as re, o as R, oa as ie, on as ae, pt as oe, ra as z, ui as se, un as ce, ur as le } from "./runtime-core.esm-bundler-DKFA9Rep.js";
3
+ import { i as ue, r as B } from "./base-DkTekJe8.js";
4
+ import { N as V, k as H } from "./overlay-DnqFLZTc.js";
5
+ import { i as de } from "./DropdownMenu-CA9fB0uZ.js";
6
+ import { t as fe } from "./RovingFocusItem-QZNg-wWF.js";
7
+ import { t as pe } from "./Badge-BBFs88TI.js";
8
+ import { a as me, o as he } from "./icons-D2MsAaXq.js";
9
+ //#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.6.0-rc.10_typescript-native-bridge@6.0.3-bridge.18.tsgo.7.0.2_/node_modules/reka-ui/dist/component/BaseSeparator.js
10
+ var ge = /* @__PURE__ */ T({
11
+ __name: "BaseSeparator",
12
+ props: {
13
+ orientation: {
14
+ type: String,
15
+ required: !1,
16
+ default: "horizontal"
17
+ },
18
+ decorative: {
19
+ type: Boolean,
20
+ required: !1
21
+ },
22
+ asChild: {
23
+ type: Boolean,
24
+ required: !1
25
+ },
26
+ as: {
27
+ type: null,
28
+ required: !1
29
+ }
30
+ },
31
+ setup(e) {
32
+ let t = e, n = ["horizontal", "vertical"];
33
+ function r(e) {
34
+ return n.includes(e);
35
+ }
36
+ let a = w(() => r(t.orientation) ? t.orientation : "horizontal"), o = w(() => a.value === "vertical" ? t.orientation : void 0), s = w(() => t.decorative ? { role: "none" } : {
37
+ "aria-orientation": o.value,
38
+ role: "separator"
39
+ });
40
+ return (e, t) => (F(), b(S(i), y({
41
+ as: e.as,
42
+ "as-child": e.asChild,
43
+ "data-orientation": a.value
44
+ }, s.value), {
45
+ default: k(() => [A(e.$slots, "default")]),
46
+ _: 3
47
+ }, 16, [
48
+ "as",
49
+ "as-child",
50
+ "data-orientation"
51
+ ]));
52
+ }
53
+ }), _e = /* @__PURE__ */ T({
54
+ __name: "Separator",
55
+ props: {
56
+ orientation: {
57
+ type: String,
58
+ required: !1,
59
+ default: "horizontal"
60
+ },
61
+ decorative: {
62
+ type: Boolean,
63
+ required: !1
64
+ },
65
+ asChild: {
66
+ type: Boolean,
67
+ required: !1
68
+ },
69
+ as: {
70
+ type: null,
71
+ required: !1
72
+ }
73
+ },
74
+ setup(e) {
75
+ let t = e;
76
+ return (e, n) => (F(), b(ge, te(oe(t)), {
77
+ default: k(() => [A(e.$slots, "default")]),
78
+ _: 3
79
+ }, 16));
80
+ }
81
+ }), [U, ve] = /*#__PURE__*/ a("TabsRoot"), W = /* @__PURE__ */ T({
82
+ __name: "TabsRoot",
83
+ props: {
84
+ defaultValue: {
85
+ type: null,
86
+ required: !1
87
+ },
88
+ orientation: {
89
+ type: String,
90
+ required: !1,
91
+ default: "horizontal"
92
+ },
93
+ dir: {
94
+ type: String,
95
+ required: !1
96
+ },
97
+ activationMode: {
98
+ type: String,
99
+ required: !1,
100
+ default: "automatic"
101
+ },
102
+ modelValue: {
103
+ type: null,
104
+ required: !1
105
+ },
106
+ unmountOnHide: {
107
+ type: Boolean,
108
+ required: !1,
109
+ default: !0
110
+ },
111
+ asChild: {
112
+ type: Boolean,
113
+ required: !1
114
+ },
115
+ as: {
116
+ type: null,
117
+ required: !1
118
+ }
119
+ },
120
+ emits: ["update:modelValue"],
121
+ setup(e, { emit: n }) {
122
+ let a = e, o = n, { orientation: s, unmountOnHide: l, dir: u } = N(a), d = V(u);
123
+ t();
124
+ let f = r(a, "modelValue", o, {
125
+ defaultValue: a.defaultValue,
126
+ passive: a.modelValue === void 0
127
+ }), p = I(), m = se(/* @__PURE__ */ new Set());
128
+ return ve({
129
+ modelValue: f,
130
+ changeModelValue: (e) => {
131
+ f.value = e;
132
+ },
133
+ orientation: s,
134
+ dir: d,
135
+ unmountOnHide: l,
136
+ activationMode: a.activationMode,
137
+ baseId: c(void 0, "reka-tabs"),
138
+ tabsList: p,
139
+ contentIds: m,
140
+ registerContent: (e) => {
141
+ m.value = /* @__PURE__ */ new Set([...m.value, e]);
142
+ },
143
+ unregisterContent: (e) => {
144
+ let t = new Set(m.value);
145
+ t.delete(e), m.value = t;
146
+ }
147
+ }), (e, t) => (F(), b(S(i), {
148
+ dir: S(d),
149
+ "data-orientation": S(s),
150
+ "as-child": e.asChild,
151
+ as: e.as
152
+ }, {
153
+ default: k(() => [A(e.$slots, "default", { modelValue: S(f) })]),
154
+ _: 3
155
+ }, 8, [
156
+ "dir",
157
+ "data-orientation",
158
+ "as-child",
159
+ "as"
160
+ ]));
161
+ }
162
+ });
163
+ //#endregion
164
+ //#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.6.0-rc.10_typescript-native-bridge@6.0.3-bridge.18.tsgo.7.0.2_/node_modules/reka-ui/dist/Tabs/utils.js
165
+ function G(e, t) {
166
+ return `${e}-trigger-${t}`;
167
+ }
168
+ function K(e, t) {
169
+ return `${e}-content-${t}`;
170
+ }
171
+ //#endregion
172
+ //#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.6.0-rc.10_typescript-native-bridge@6.0.3-bridge.18.tsgo.7.0.2_/node_modules/reka-ui/dist/Tabs/TabsContent.js
173
+ var q = /* @__PURE__ */ T({
174
+ __name: "TabsContent",
175
+ props: {
176
+ value: {
177
+ type: [String, Number],
178
+ required: !0
179
+ },
180
+ forceMount: {
181
+ type: Boolean,
182
+ required: !1
183
+ },
184
+ asChild: {
185
+ type: Boolean,
186
+ required: !1
187
+ },
188
+ as: {
189
+ type: null,
190
+ required: !1
191
+ }
192
+ },
193
+ setup(e) {
194
+ let n = e, { forwardRef: r } = t(), a = U(), o = w(() => G(a.baseId, n.value)), s = w(() => K(a.baseId, n.value)), c = w(() => n.value === a.modelValue.value), l = I(c.value);
195
+ return ce(() => {
196
+ a.registerContent(n.value), requestAnimationFrame(() => {
197
+ l.value = !1;
198
+ });
199
+ }), ae(() => {
200
+ a.unregisterContent(n.value);
201
+ }), (e, t) => (F(), b(S(H), {
202
+ present: e.forceMount || c.value,
203
+ "force-mount": ""
204
+ }, {
205
+ default: k(({ present: t }) => [j(S(i), {
206
+ id: s.value,
207
+ ref: S(r),
208
+ "as-child": e.asChild,
209
+ as: e.as,
210
+ role: "tabpanel",
211
+ "data-state": c.value ? "active" : "inactive",
212
+ "data-orientation": S(a).orientation.value,
213
+ "aria-labelledby": o.value,
214
+ hidden: !t,
215
+ tabindex: "0",
216
+ style: ie({ animationDuration: l.value ? "0s" : void 0 })
217
+ }, {
218
+ default: k(() => [!S(a).unmountOnHide.value || t ? A(e.$slots, "default", { key: 0 }) : E("v-if", !0)]),
219
+ _: 2
220
+ }, 1032, [
221
+ "id",
222
+ "as-child",
223
+ "as",
224
+ "data-state",
225
+ "data-orientation",
226
+ "aria-labelledby",
227
+ "hidden",
228
+ "style"
229
+ ])]),
230
+ _: 3
231
+ }, 8, ["present"]));
232
+ }
233
+ }), J = /* @__PURE__ */ T({
234
+ __name: "TabsIndicator",
235
+ props: {
236
+ asChild: {
237
+ type: Boolean,
238
+ required: !1
239
+ },
240
+ as: {
241
+ type: null,
242
+ required: !1
243
+ }
244
+ },
245
+ setup(e, { expose: n }) {
246
+ let r = e, a = U();
247
+ n({ updateIndicatorStyle: l }), t();
248
+ let o = g(), s = I({
249
+ size: null,
250
+ thickness: null,
251
+ position: null
252
+ }), c = I([]);
253
+ C(() => [a.modelValue.value, a?.dir.value], () => {
254
+ l();
255
+ }, {
256
+ immediate: !0,
257
+ flush: "post"
258
+ }), ee(() => {
259
+ c.value = Array.from(a.tabsList.value?.querySelectorAll("[role=\"tab\"]") || []);
260
+ }), _(w(() => [a.tabsList.value, ...c.value]), l);
261
+ function l() {
262
+ let e = a.tabsList.value?.querySelector("[role=\"tab\"][data-state=\"active\"]");
263
+ e && (a.orientation.value === "horizontal" ? s.value = {
264
+ size: e.offsetWidth,
265
+ thickness: e.offsetHeight,
266
+ position: e.offsetLeft
267
+ } : s.value = {
268
+ size: e.offsetHeight,
269
+ thickness: e.offsetWidth,
270
+ position: e.offsetTop
271
+ });
272
+ }
273
+ return (e, t) => S(o) && typeof s.value.size == "number" ? (F(), b(S(i), y({ key: 0 }, r, { style: {
274
+ "--reka-tabs-indicator-size": `${s.value.size}px`,
275
+ "--reka-tabs-indicator-thickness": `${s.value.thickness}px`,
276
+ "--reka-tabs-indicator-position": `${s.value.position}px`
277
+ } }), {
278
+ default: k(() => [A(e.$slots, "default")]),
279
+ _: 3
280
+ }, 16, ["style"])) : E("v-if", !0);
281
+ }
282
+ }), Y = /* @__PURE__ */ T({
283
+ __name: "TabsList",
284
+ props: {
285
+ loop: {
286
+ type: Boolean,
287
+ required: !1,
288
+ default: !0
289
+ },
290
+ asChild: {
291
+ type: Boolean,
292
+ required: !1
293
+ },
294
+ as: {
295
+ type: null,
296
+ required: !1
297
+ }
298
+ },
299
+ setup(e) {
300
+ let { loop: n } = N(e), { forwardRef: r, currentElement: a } = t(), o = U();
301
+ return o.tabsList = a, (e, t) => (F(), b(S(de), {
302
+ "as-child": "",
303
+ orientation: S(o).orientation.value,
304
+ dir: S(o).dir.value,
305
+ loop: S(n)
306
+ }, {
307
+ default: k(() => [j(S(i), {
308
+ ref: S(r),
309
+ role: "tablist",
310
+ "as-child": e.asChild,
311
+ as: e.as,
312
+ "aria-orientation": S(o).orientation.value
313
+ }, {
314
+ default: k(() => [A(e.$slots, "default")]),
315
+ _: 3
316
+ }, 8, [
317
+ "as-child",
318
+ "as",
319
+ "aria-orientation"
320
+ ])]),
321
+ _: 3
322
+ }, 8, [
323
+ "orientation",
324
+ "dir",
325
+ "loop"
326
+ ]));
327
+ }
328
+ }), X = /* @__PURE__ */ T({
329
+ __name: "TabsTrigger",
330
+ props: {
331
+ value: {
332
+ type: [String, Number],
333
+ required: !0
334
+ },
335
+ disabled: {
336
+ type: Boolean,
337
+ required: !1,
338
+ default: !1
339
+ },
340
+ asChild: {
341
+ type: Boolean,
342
+ required: !1
343
+ },
344
+ as: {
345
+ type: null,
346
+ required: !1,
347
+ default: "button"
348
+ }
349
+ },
350
+ setup(e) {
351
+ let n = e, { forwardRef: r } = t(), a = U(), o = w(() => G(a.baseId, n.value)), s = w(() => a.contentIds.value.has(n.value) ? K(a.baseId, n.value) : void 0), c = w(() => n.value === a.modelValue.value);
352
+ return (e, t) => (F(), b(S(fe), {
353
+ "as-child": "",
354
+ focusable: !e.disabled,
355
+ active: c.value
356
+ }, {
357
+ default: k(() => [j(S(i), {
358
+ id: o.value,
359
+ ref: S(r),
360
+ role: "tab",
361
+ type: e.as === "button" ? "button" : void 0,
362
+ as: e.as,
363
+ "as-child": e.asChild,
364
+ "aria-selected": c.value ? "true" : "false",
365
+ "aria-controls": s.value,
366
+ "data-state": c.value ? "active" : "inactive",
367
+ disabled: e.disabled,
368
+ "data-disabled": e.disabled ? "" : void 0,
369
+ "data-orientation": S(a).orientation.value,
370
+ onMousedown: t[0] ||= p((t) => {
371
+ !e.disabled && t.ctrlKey === !1 ? S(a).changeModelValue(e.value) : t.preventDefault();
372
+ }, ["left"]),
373
+ onKeydown: t[1] ||= h((t) => S(a).changeModelValue(e.value), ["enter", "space"]),
374
+ onFocus: t[2] ||= () => {
375
+ let t = S(a).activationMode !== "manual";
376
+ !c.value && !e.disabled && t && S(a).changeModelValue(e.value);
377
+ }
378
+ }, {
379
+ default: k(() => [A(e.$slots, "default")]),
380
+ _: 3
381
+ }, 8, [
382
+ "id",
383
+ "type",
384
+ "as",
385
+ "as-child",
386
+ "aria-selected",
387
+ "aria-controls",
388
+ "data-state",
389
+ "disabled",
390
+ "data-disabled",
391
+ "data-orientation"
392
+ ])]),
393
+ _: 3
394
+ }, 8, ["focusable", "active"]));
395
+ }
396
+ }), ye = {
397
+ slots: {
398
+ root: "flex items-center gap-2",
399
+ list: "relative flex p-1 group",
400
+ indicator: "absolute transition-[translate,width] duration-200 ease-out motion-reduce:transition-none",
401
+ trigger: ["group relative inline-flex items-center min-w-0 data-[state=inactive]:text-muted hover:data-[state=inactive]:not-disabled:text-default font-medium rounded-md disabled:cursor-not-allowed disabled:opacity-75", "transition-colors"],
402
+ leadingIcon: "shrink-0",
403
+ leadingAvatar: "shrink-0",
404
+ leadingAvatarSize: "",
405
+ label: "truncate",
406
+ trailingBadge: "shrink-0",
407
+ trailingBadgeSize: "sm",
408
+ content: "w-full rounded-md focus-visible:outline-3"
409
+ },
410
+ variants: {
411
+ color: {
412
+ primary: { content: "outline-primary/25" },
413
+ secondary: { content: "outline-secondary/25" },
414
+ success: { content: "outline-success/25" },
415
+ info: { content: "outline-info/25" },
416
+ warning: { content: "outline-warning/25" },
417
+ error: { content: "outline-error/25" },
418
+ neutral: { content: "outline-inverted/25" }
419
+ },
420
+ variant: {
421
+ pill: {
422
+ list: "bg-elevated rounded-lg",
423
+ trigger: ["grow", "in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:before:content-[''] in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:before:absolute in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:before:inset-0 in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:before:rounded-md in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:before:shadow-xs in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:before:-z-10 in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:isolate"],
424
+ indicator: "rounded-md shadow-xs"
425
+ },
426
+ link: {
427
+ list: "border-default",
428
+ indicator: "rounded-full",
429
+ trigger: "in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:content-[''] in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:absolute in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:rounded-full"
430
+ }
431
+ },
432
+ orientation: {
433
+ horizontal: {
434
+ root: "flex-col",
435
+ list: "w-full",
436
+ indicator: "left-0 w-(--reka-tabs-indicator-size) translate-x-(--reka-tabs-indicator-position)",
437
+ trigger: "justify-center"
438
+ },
439
+ vertical: {
440
+ list: "flex-col",
441
+ indicator: "top-0 h-(--reka-tabs-indicator-size) translate-y-(--reka-tabs-indicator-position)"
442
+ }
443
+ },
444
+ size: {
445
+ xs: {
446
+ trigger: "px-2 py-1 text-xs gap-1",
447
+ leadingIcon: "size-4",
448
+ leadingAvatarSize: "3xs"
449
+ },
450
+ sm: {
451
+ trigger: "px-2.5 py-1.5 text-xs gap-1.5",
452
+ leadingIcon: "size-4",
453
+ leadingAvatarSize: "3xs"
454
+ },
455
+ md: {
456
+ trigger: "px-3 py-1.5 text-sm gap-1.5",
457
+ leadingIcon: "size-5",
458
+ leadingAvatarSize: "2xs"
459
+ },
460
+ lg: {
461
+ trigger: "px-3 py-2 text-sm gap-2",
462
+ leadingIcon: "size-5",
463
+ leadingAvatarSize: "2xs"
464
+ },
465
+ xl: {
466
+ trigger: "px-3 py-2 text-base gap-2",
467
+ leadingIcon: "size-6",
468
+ leadingAvatarSize: "xs"
469
+ }
470
+ }
471
+ },
472
+ compoundVariants: [
473
+ {
474
+ orientation: "horizontal",
475
+ variant: "pill",
476
+ class: { indicator: "inset-y-1" }
477
+ },
478
+ {
479
+ orientation: "horizontal",
480
+ variant: "link",
481
+ class: {
482
+ list: "border-b -mb-px",
483
+ indicator: "-bottom-px h-px",
484
+ trigger: "in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:inset-x-0 in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:-bottom-[calc(var(--spacing)+1px)] in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:h-px"
485
+ }
486
+ },
487
+ {
488
+ orientation: "vertical",
489
+ variant: "pill",
490
+ class: {
491
+ indicator: "inset-x-1",
492
+ list: "items-center",
493
+ trigger: "w-full justify-center"
494
+ }
495
+ },
496
+ {
497
+ orientation: "vertical",
498
+ variant: "link",
499
+ class: {
500
+ list: "border-s -ms-px",
501
+ indicator: "-start-px w-px",
502
+ trigger: "in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:inset-y-0 in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:-start-[calc(var(--spacing)+1px)] in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:w-px"
503
+ }
504
+ },
505
+ {
506
+ color: "primary",
507
+ variant: "pill",
508
+ class: {
509
+ indicator: "bg-primary",
510
+ trigger: ["data-[state=active]:text-inverted outline-primary/25 focus-visible:outline-3", "in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:before:bg-primary"]
511
+ }
512
+ },
513
+ {
514
+ color: "secondary",
515
+ variant: "pill",
516
+ class: {
517
+ indicator: "bg-secondary",
518
+ trigger: ["data-[state=active]:text-inverted outline-secondary/25 focus-visible:outline-3", "in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:before:bg-secondary"]
519
+ }
520
+ },
521
+ {
522
+ color: "success",
523
+ variant: "pill",
524
+ class: {
525
+ indicator: "bg-success",
526
+ trigger: ["data-[state=active]:text-inverted outline-success/25 focus-visible:outline-3", "in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:before:bg-success"]
527
+ }
528
+ },
529
+ {
530
+ color: "info",
531
+ variant: "pill",
532
+ class: {
533
+ indicator: "bg-info",
534
+ trigger: ["data-[state=active]:text-inverted outline-info/25 focus-visible:outline-3", "in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:before:bg-info"]
535
+ }
536
+ },
537
+ {
538
+ color: "warning",
539
+ variant: "pill",
540
+ class: {
541
+ indicator: "bg-warning",
542
+ trigger: ["data-[state=active]:text-inverted outline-warning/25 focus-visible:outline-3", "in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:before:bg-warning"]
543
+ }
544
+ },
545
+ {
546
+ color: "error",
547
+ variant: "pill",
548
+ class: {
549
+ indicator: "bg-error",
550
+ trigger: ["data-[state=active]:text-inverted outline-error/25 focus-visible:outline-3", "in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:before:bg-error"]
551
+ }
552
+ },
553
+ {
554
+ color: "neutral",
555
+ variant: "pill",
556
+ class: {
557
+ indicator: "bg-inverted",
558
+ trigger: ["data-[state=active]:text-inverted outline-inverted/25 focus-visible:outline-3", "in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:before:bg-inverted"]
559
+ }
560
+ },
561
+ {
562
+ color: "primary",
563
+ variant: "link",
564
+ class: {
565
+ indicator: "bg-primary",
566
+ trigger: ["data-[state=active]:text-primary outline-primary/25 focus-visible:outline-3", "in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:bg-primary"]
567
+ }
568
+ },
569
+ {
570
+ color: "secondary",
571
+ variant: "link",
572
+ class: {
573
+ indicator: "bg-secondary",
574
+ trigger: ["data-[state=active]:text-secondary outline-secondary/25 focus-visible:outline-3", "in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:bg-secondary"]
575
+ }
576
+ },
577
+ {
578
+ color: "success",
579
+ variant: "link",
580
+ class: {
581
+ indicator: "bg-success",
582
+ trigger: ["data-[state=active]:text-success outline-success/25 focus-visible:outline-3", "in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:bg-success"]
583
+ }
584
+ },
585
+ {
586
+ color: "info",
587
+ variant: "link",
588
+ class: {
589
+ indicator: "bg-info",
590
+ trigger: ["data-[state=active]:text-info outline-info/25 focus-visible:outline-3", "in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:bg-info"]
591
+ }
592
+ },
593
+ {
594
+ color: "warning",
595
+ variant: "link",
596
+ class: {
597
+ indicator: "bg-warning",
598
+ trigger: ["data-[state=active]:text-warning outline-warning/25 focus-visible:outline-3", "in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:bg-warning"]
599
+ }
600
+ },
601
+ {
602
+ color: "error",
603
+ variant: "link",
604
+ class: {
605
+ indicator: "bg-error",
606
+ trigger: ["data-[state=active]:text-error outline-error/25 focus-visible:outline-3", "in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:bg-error"]
607
+ }
608
+ },
609
+ {
610
+ color: "neutral",
611
+ variant: "link",
612
+ class: {
613
+ indicator: "bg-inverted",
614
+ trigger: ["data-[state=active]:text-highlighted outline-inverted/25 focus-visible:outline-3", "in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:bg-inverted"]
615
+ }
616
+ }
617
+ ],
618
+ defaultVariants: {
619
+ color: "primary",
620
+ variant: "pill",
621
+ size: "md"
622
+ }
623
+ }, be = {
624
+ __name: "Tabs",
625
+ props: {
626
+ as: {
627
+ type: null,
628
+ required: !1
629
+ },
630
+ items: {
631
+ type: Array,
632
+ required: !1
633
+ },
634
+ color: {
635
+ type: null,
636
+ required: !1
637
+ },
638
+ variant: {
639
+ type: null,
640
+ required: !1
641
+ },
642
+ size: {
643
+ type: null,
644
+ required: !1
645
+ },
646
+ orientation: {
647
+ type: null,
648
+ required: !1,
649
+ default: "horizontal"
650
+ },
651
+ content: {
652
+ type: Boolean,
653
+ required: !1,
654
+ default: !0
655
+ },
656
+ valueKey: {
657
+ type: null,
658
+ required: !1,
659
+ default: "value"
660
+ },
661
+ labelKey: {
662
+ type: null,
663
+ required: !1,
664
+ default: "label"
665
+ },
666
+ class: {
667
+ type: null,
668
+ required: !1
669
+ },
670
+ ui: {
671
+ type: Object,
672
+ required: !1
673
+ },
674
+ defaultValue: {
675
+ type: [String, Number],
676
+ required: !1,
677
+ default: "0"
678
+ },
679
+ modelValue: {
680
+ type: [String, Number],
681
+ required: !1
682
+ },
683
+ activationMode: {
684
+ type: String,
685
+ required: !1
686
+ },
687
+ unmountOnHide: {
688
+ type: Boolean,
689
+ required: !1,
690
+ default: !0
691
+ }
692
+ },
693
+ emits: ["update:modelValue"],
694
+ setup(t, { expose: n, emit: r }) {
695
+ let i = t, a = r, c = re(), l = u("tabs", i), p = e(), h = d(s(l, "as", "unmountOnHide"), a), g = w(() => v({
696
+ extend: ye,
697
+ ...p.ui?.tabs || {}
698
+ })({
699
+ color: l.color,
700
+ variant: l.variant,
701
+ size: l.size,
702
+ orientation: l.orientation
703
+ })), _ = I([]);
704
+ function C(e, t) {
705
+ _.value[e] = t;
706
+ }
707
+ return n({ triggersRef: _ }), (e, t) => (F(), b(S(W), y(S(h), {
708
+ "model-value": S(l).modelValue,
709
+ "default-value": S(l).defaultValue,
710
+ orientation: S(l).orientation,
711
+ "activation-mode": S(l).activationMode,
712
+ "data-slot": "root",
713
+ class: g.value.root({ class: [S(l).ui?.root, S(l).class] })
714
+ }), {
715
+ default: k(() => [j(S(Y), {
716
+ "data-slot": "list",
717
+ class: z(g.value.list({ class: S(l).ui?.list }))
718
+ }, {
719
+ default: k(() => [
720
+ j(S(J), {
721
+ "data-slot": "indicator",
722
+ class: z(g.value.indicator({ class: S(l).ui?.indicator }))
723
+ }, null, 8, ["class"]),
724
+ A(e.$slots, "list-leading"),
725
+ (F(!0), D(R, null, O(S(l).items, (t, n) => (F(), b(S(X), {
726
+ key: S(o)(t, S(l).valueKey) ?? n,
727
+ ref_for: !0,
728
+ ref: (e) => C(n, e),
729
+ value: S(o)(t, S(l).valueKey) ?? String(n),
730
+ disabled: t.disabled,
731
+ "data-slot": "trigger",
732
+ class: z(g.value.trigger({ class: [S(l).ui?.trigger, t.ui?.trigger] }))
733
+ }, {
734
+ default: k(() => [
735
+ A(e.$slots, "leading", {
736
+ item: t,
737
+ index: n,
738
+ ui: g.value
739
+ }, () => [t.icon ? (F(), b(f, {
740
+ key: 0,
741
+ name: t.icon,
742
+ "data-slot": "leadingIcon",
743
+ class: z(g.value.leadingIcon({ class: [S(l).ui?.leadingIcon, t.ui?.leadingIcon] }))
744
+ }, null, 8, ["name", "class"])) : t.avatar ? (F(), b(m, y({
745
+ key: 1,
746
+ size: t.ui?.leadingAvatarSize || S(l).ui?.leadingAvatarSize || g.value.leadingAvatarSize()
747
+ }, { ref_for: !0 }, t.avatar, {
748
+ "data-slot": "leadingAvatar",
749
+ class: g.value.leadingAvatar({ class: [S(l).ui?.leadingAvatar, t.ui?.leadingAvatar] })
750
+ }), null, 16, ["size", "class"])) : E("", !0)]),
751
+ S(o)(t, S(l).labelKey) || c.default ? (F(), D("span", {
752
+ key: 0,
753
+ "data-slot": "label",
754
+ class: z(g.value.label({ class: [S(l).ui?.label, t.ui?.label] }))
755
+ }, [A(e.$slots, "default", {
756
+ item: t,
757
+ index: n
758
+ }, () => [x(P(S(o)(t, S(l).labelKey)), 1)])], 2)) : E("", !0),
759
+ A(e.$slots, "trailing", {
760
+ item: t,
761
+ index: n,
762
+ ui: g.value
763
+ }, () => [t.badge || t.badge === 0 ? (F(), b(pe, y({
764
+ key: 0,
765
+ color: "neutral",
766
+ variant: "outline",
767
+ size: t.ui?.trailingBadgeSize || S(l).ui?.trailingBadgeSize || g.value.trailingBadgeSize()
768
+ }, { ref_for: !0 }, typeof t.badge == "string" || typeof t.badge == "number" ? { label: t.badge } : t.badge, {
769
+ "data-slot": "trailingBadge",
770
+ class: g.value.trailingBadge({ class: [S(l).ui?.trailingBadge, t.ui?.trailingBadge] })
771
+ }), null, 16, ["size", "class"])) : E("", !0)])
772
+ ]),
773
+ _: 2
774
+ }, 1032, [
775
+ "value",
776
+ "disabled",
777
+ "class"
778
+ ]))), 128)),
779
+ A(e.$slots, "list-trailing")
780
+ ]),
781
+ _: 3
782
+ }, 8, ["class"]), S(l).content ? (F(!0), D(R, { key: 0 }, O(S(l).items, (t, n) => (F(), b(S(q), {
783
+ key: S(o)(t, S(l).valueKey) ?? n,
784
+ value: S(o)(t, S(l).valueKey) ?? String(n),
785
+ "data-slot": "content",
786
+ class: z(g.value.content({ class: [
787
+ S(l).ui?.content,
788
+ t.ui?.content,
789
+ t.class
790
+ ] }))
791
+ }, {
792
+ default: k(() => [A(e.$slots, t.slot || "content", {
793
+ item: t,
794
+ index: n,
795
+ ui: g.value
796
+ }, () => [x(P(t.content), 1)])]),
797
+ _: 2
798
+ }, 1032, ["value", "class"]))), 128)) : E("", !0)]),
799
+ _: 3
800
+ }, 16, [
801
+ "model-value",
802
+ "default-value",
803
+ "orientation",
804
+ "activation-mode",
805
+ "class"
806
+ ]));
807
+ }
808
+ };
809
+ //#endregion
810
+ //#region ../../node_modules/.pnpm/@nuxt+ui@4.11.3_cb98d253b9bf6e94cc4ec1fe3cbbcc2e/node_modules/@nuxt/ui/dist/runtime/composables/useResizable.js
811
+ function Z(e, t = {}, { collapsed: r = I(!1) } = {}) {
812
+ let i = I(null), a = w(() => ({
813
+ side: "left",
814
+ minSize: 0,
815
+ maxSize: 100,
816
+ defaultSize: 0,
817
+ storage: "cookie",
818
+ persistent: !0,
819
+ collapsible: !1,
820
+ collapsedSize: 0,
821
+ resizable: !0,
822
+ unit: "%",
823
+ ...S(t)
824
+ })), { dir: o } = n(), s = {
825
+ size: a.value.defaultSize,
826
+ collapsed: S(r) ?? !1
827
+ }, c = a.value.persistent && (a.value.resizable || a.value.collapsible) ? a.value.storage === "cookie" ? B(e, {
828
+ ...a.value.storageOptions,
829
+ default: () => s
830
+ }) : l(e, s, void 0, a.value.storageOptions) : I(s), u = (e) => {
831
+ c.value ? Object.assign(c.value, e) : c.value = {
832
+ ...s,
833
+ ...e
834
+ };
835
+ }, d = w({
836
+ get: () => c.value?.collapsed ?? s.collapsed,
837
+ set: (e) => {
838
+ a.value.collapsible && (M(r) && (r.value = e), u({ collapsed: e }));
839
+ }
840
+ }), f = I(a.value.defaultSize), p = w({
841
+ get: () => c.value?.size ?? a.value.defaultSize,
842
+ set: (e) => {
843
+ u({ size: e });
844
+ }
845
+ }), m = w(() => d.value ? a.value.collapsedSize : p.value), h = I(!1), g = () => a.value.unit === "rem" ? Number.parseFloat(getComputedStyle(document.documentElement).fontSize) : 1, _ = (e, t, n, r) => {
846
+ if (!i.value || !a.value.resizable) return;
847
+ let s = i.value.parentElement?.offsetWidth || 1, c = o.value === "rtl", l;
848
+ l = c ? a.value.side === "left" ? t - e : e - t : a.value.side === "left" ? e - t : t - e;
849
+ let u = n + l, f;
850
+ if (f = a.value.unit === "rem" ? u / r : a.value.unit === "px" ? u : u / s * 100, a.value.collapsible && f < a.value.collapsedSize + 4) {
851
+ x(!0);
852
+ return;
853
+ }
854
+ d.value && x(!1), p.value = Math.min(a.value.maxSize, Math.max(a.value.minSize, f));
855
+ }, v = (e) => {
856
+ if (!i.value || !a.value.resizable) return;
857
+ e.preventDefault(), e.stopPropagation();
858
+ let t = i.value.getBoundingClientRect().width;
859
+ if (!t) return;
860
+ let n = e.clientX, r = t, o = g();
861
+ h.value = !0;
862
+ let s = (e) => {
863
+ _(e.clientX, n, r, o);
864
+ }, c = () => {
865
+ h.value = !1, document.removeEventListener("mousemove", s), document.removeEventListener("mouseup", c);
866
+ };
867
+ document.addEventListener("mousemove", s), document.addEventListener("mouseup", c);
868
+ }, y = (e) => {
869
+ if (!i.value || !a.value.resizable || !e.touches[0]) return;
870
+ e.preventDefault(), e.stopPropagation();
871
+ let t = i.value.getBoundingClientRect().width;
872
+ if (!t) return;
873
+ let n = e.touches[0].clientX, r = t, o = g();
874
+ h.value = !0;
875
+ let s = (e) => {
876
+ e.touches[0] && _(e.touches[0].clientX, n, r, o);
877
+ }, c = () => {
878
+ h.value = !1, document.removeEventListener("touchmove", s), document.removeEventListener("touchend", c), document.removeEventListener("touchcancel", c);
879
+ };
880
+ document.addEventListener("touchmove", s, { passive: !1 }), document.addEventListener("touchend", c), document.addEventListener("touchcancel", c);
881
+ }, b = (e) => {
882
+ i.value && a.value.resizable && (e.preventDefault(), e.stopPropagation(), d.value && x(!1), p.value = a.value.defaultSize);
883
+ }, x = (e) => {
884
+ if (!a.value.collapsible) return;
885
+ let t = e ?? !d.value;
886
+ t && !d.value ? f.value = p.value : !t && d.value && (p.value = f.value), d.value = t;
887
+ };
888
+ return M(r) && c.value?.collapsed && (r.value = c.value.collapsed), M(r) && C(r, (e) => {
889
+ a.value.collapsible && c.value?.collapsed !== e && (d.value = e);
890
+ }), {
891
+ el: i,
892
+ size: m,
893
+ isDragging: h,
894
+ isCollapsed: d,
895
+ onMouseDown: v,
896
+ onTouchStart: y,
897
+ onDoubleClick: b,
898
+ collapse: x
899
+ };
900
+ }
901
+ //#endregion
902
+ //#region virtual:nuxt-ui-templates/ui/dashboard-group.ts
903
+ var xe = { base: "fixed inset-0 flex overflow-hidden" }, Q = {
904
+ __name: "DashboardGroup",
905
+ props: {
906
+ as: {
907
+ type: null,
908
+ required: !1
909
+ },
910
+ class: {
911
+ type: null,
912
+ required: !1
913
+ },
914
+ ui: {
915
+ type: Object,
916
+ required: !1
917
+ },
918
+ storage: {
919
+ type: String,
920
+ required: !1,
921
+ default: "cookie"
922
+ },
923
+ storageKey: {
924
+ type: String,
925
+ required: !1,
926
+ default: "dashboard"
927
+ },
928
+ storageOptions: {
929
+ type: Object,
930
+ required: !1
931
+ },
932
+ persistent: {
933
+ type: Boolean,
934
+ required: !1,
935
+ default: !0
936
+ },
937
+ unit: {
938
+ type: String,
939
+ required: !1,
940
+ default: "%"
941
+ }
942
+ },
943
+ setup(t) {
944
+ let n = u("dashboardGroup", t), r = ue(), a = e(), o = w(() => v({
945
+ extend: xe,
946
+ ...a.ui?.dashboardGroup || {}
947
+ })), s = I(!1), c = I(!1);
948
+ return me({
949
+ storage: n.storage,
950
+ storageKey: n.storageKey,
951
+ storageOptions: n.storageOptions,
952
+ persistent: n.persistent,
953
+ unit: n.unit,
954
+ sidebarOpen: s,
955
+ toggleSidebar: () => {
956
+ r.hooks.callHook("dashboard:sidebar:toggle");
957
+ },
958
+ sidebarCollapsed: c,
959
+ collapseSidebar: (e) => {
960
+ r.hooks.callHook("dashboard:sidebar:collapse", e);
961
+ },
962
+ toggleSearch: () => {
963
+ r.hooks.callHook("dashboard:search:toggle");
964
+ }
965
+ }), (e, t) => (F(), b(S(i), {
966
+ as: S(n).as,
967
+ class: z(o.value({ class: [S(n).ui?.base, S(n).class] }))
968
+ }, {
969
+ default: k(() => [A(e.$slots, "default")]),
970
+ _: 3
971
+ }, 8, ["as", "class"]));
972
+ }
973
+ }, Se = { base: "hidden lg:block touch-none select-none cursor-ew-resize relative before:absolute before:inset-y-0 before:-left-1.5 before:-right-1.5 before:z-1" }, $ = {
974
+ __name: "DashboardResizeHandle",
975
+ props: {
976
+ as: {
977
+ type: null,
978
+ required: !1
979
+ },
980
+ class: {
981
+ type: null,
982
+ required: !1
983
+ },
984
+ ui: {
985
+ type: Object,
986
+ required: !1
987
+ }
988
+ },
989
+ setup(t) {
990
+ let n = u("dashboardResizeHandle", t), r = e(), a = w(() => v({
991
+ extend: Se,
992
+ ...r.ui?.dashboardResizeHandle || {}
993
+ }));
994
+ return (e, t) => (F(), b(S(i), {
995
+ as: S(n).as,
996
+ role: "separator",
997
+ class: z(a.value({ class: [S(n).ui?.base, S(n).class] }))
998
+ }, {
999
+ default: k(() => [A(e.$slots, "default")]),
1000
+ _: 3
1001
+ }, 8, ["as", "class"]));
1002
+ }
1003
+ }, Ce = {
1004
+ slots: {
1005
+ root: "relative flex flex-col min-w-0 min-h-svh lg:not-last:border-e lg:not-last:border-default shrink-0",
1006
+ body: "flex flex-col gap-4 sm:gap-6 flex-1 overflow-y-auto p-4 sm:p-6",
1007
+ handle: ""
1008
+ },
1009
+ variants: { size: {
1010
+ true: { root: "w-full lg:w-(--width)" },
1011
+ false: { root: "flex-1" }
1012
+ } }
1013
+ }, we = ["data-dragging"], Te = /*@__PURE__*/ Object.assign({ inheritAttrs: !1 }, {
1014
+ __name: "DashboardPanel",
1015
+ props: {
1016
+ class: {
1017
+ type: null,
1018
+ required: !1
1019
+ },
1020
+ ui: {
1021
+ type: Object,
1022
+ required: !1
1023
+ },
1024
+ id: {
1025
+ type: String,
1026
+ required: !1
1027
+ },
1028
+ minSize: {
1029
+ type: Number,
1030
+ required: !1,
1031
+ default: 15
1032
+ },
1033
+ maxSize: {
1034
+ type: Number,
1035
+ required: !1
1036
+ },
1037
+ defaultSize: {
1038
+ type: Number,
1039
+ required: !1
1040
+ },
1041
+ resizable: {
1042
+ type: Boolean,
1043
+ required: !1,
1044
+ default: !1
1045
+ }
1046
+ },
1047
+ setup(t, { attrs: n }) {
1048
+ let r = u("dashboardPanel", t), i = e(), a = he({
1049
+ storageKey: "dashboard",
1050
+ unit: "%"
1051
+ }), o = `${a.storageKey}-panel-${r.id || le()}`, { el: s, size: c, isDragging: l, onMouseDown: d, onTouchStart: f, onDoubleClick: p } = Z(o, ne(() => ({
1052
+ ...a,
1053
+ ...r
1054
+ }))), m = w(() => v({
1055
+ extend: Ce,
1056
+ ...i.ui?.dashboardPanel || {}
1057
+ })({ size: !!c.value }));
1058
+ return (e, t) => (F(), D(R, null, [L("div", y({
1059
+ id: o,
1060
+ ref_key: "el",
1061
+ ref: s,
1062
+ "data-slot": "root"
1063
+ }, n, {
1064
+ "data-dragging": S(l),
1065
+ class: m.value.root({ class: [S(r).ui?.root, S(r).class] }),
1066
+ style: [S(c) ? { "--width": `${S(c)}${S(a).unit}` } : void 0]
1067
+ }), [A(e.$slots, "default", {}, () => [
1068
+ A(e.$slots, "header"),
1069
+ L("div", {
1070
+ "data-slot": "body",
1071
+ class: z(m.value.body({ class: S(r).ui?.body }))
1072
+ }, [A(e.$slots, "body")], 2),
1073
+ A(e.$slots, "footer")
1074
+ ])], 16, we), A(e.$slots, "resize-handle", {
1075
+ onMouseDown: S(d),
1076
+ onTouchStart: S(f),
1077
+ onDoubleClick: S(p)
1078
+ }, () => [S(r).resizable ? (F(), b($, {
1079
+ key: 0,
1080
+ "aria-controls": o,
1081
+ "data-slot": "handle",
1082
+ class: z(m.value.handle({ class: S(r).ui?.handle })),
1083
+ onMousedown: S(d),
1084
+ onTouchstart: S(f),
1085
+ onDblclick: S(p)
1086
+ }, null, 8, [
1087
+ "class",
1088
+ "onMousedown",
1089
+ "onTouchstart",
1090
+ "onDblclick"
1091
+ ])) : E("", !0)])], 64));
1092
+ }
1093
+ }), Ee = Symbol("Studio search");
1094
+ //#endregion
1095
+ export { Z as a, Y as c, W as d, _e as f, Q as i, J as l, Te as n, be as o, $ as r, X as s, Ee as t, q as u };