@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,1733 @@
1
+ import { $ as e, A as t, D as n, Dt as r, E as i, Ht as a, K as o, Mt as s, N as c, O as l, P as u, Pt as d, Rt as f, T as p, at as m, b as ee, en as h, it as te, j as g, jt as ne, kt as re, m as ie, nn as ae, nt as oe, o as se, p as ce, pt as le, q as ue, s as de, u as fe, y as pe } from "./Button-BT3ztSPx.js";
2
+ import { b as _ } from "./useApi-CUWMwLLw-B3Q3g2nf.js";
3
+ import { $r as me, $t as v, A as y, Ar as b, Ci as x, Cr as S, Ct as C, E as w, K as T, M as E, N as he, Or as D, Pn as O, V as k, Zr as A, _i as j, en as M, gn as N, hr as ge, ii as P, k as _e, lt as ve, mn as F, mr as ye, mt as I, ni as L, oa as be, ra as R, un as xe, vi as z, wn as Se, wr as B } from "./runtime-core.esm-bundler-DKFA9Rep.js";
4
+ //#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/shared/getActiveElement.js
5
+ function V() {
6
+ let e = document.activeElement;
7
+ if (e == null) return null;
8
+ for (; e != null && e.shadowRoot != null && e.shadowRoot.activeElement != null;) e = e.shadowRoot.activeElement;
9
+ return e;
10
+ }
11
+ //#endregion
12
+ //#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/shared/handleAndDispatchCustomEvent.js
13
+ function H(e, t, n) {
14
+ let r = n.originalEvent.target, i = new CustomEvent(e, {
15
+ bubbles: !1,
16
+ cancelable: !0,
17
+ detail: n
18
+ });
19
+ t && r.addEventListener(e, t, { once: !0 }), r.dispatchEvent(i);
20
+ }
21
+ //#endregion
22
+ //#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/shared/nullish.js
23
+ function Ce(e) {
24
+ return e == null;
25
+ }
26
+ //#endregion
27
+ //#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/DismissableLayer/context.js
28
+ var U = /*#__PURE__*/ L({
29
+ layersRoot: /* @__PURE__ */ new Set(),
30
+ layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
31
+ originalBodyPointerEvents: void 0,
32
+ branches: /* @__PURE__ */ new Set()
33
+ }), we = ne(() => {
34
+ let e = P(/* @__PURE__ */ new Map()), t = P(), n = w(() => {
35
+ for (let t of e.value.values()) if (t) return !0;
36
+ return !1;
37
+ }), r = c({ scrollBody: P(!0) }), i = null, a = () => {
38
+ document.body.style.paddingRight = "", document.body.style.marginRight = "", U.layersWithOutsidePointerEventsDisabled.size === 0 && (document.body.style.pointerEvents = ""), document.documentElement.style.removeProperty("--scrollbar-width"), document.body.style.overflow = t.value ?? "", d && i?.(), t.value = void 0;
39
+ };
40
+ return S(n, (e, o) => {
41
+ if (!s) return;
42
+ if (!e) {
43
+ o && a();
44
+ return;
45
+ }
46
+ t.value === void 0 && (t.value = document.body.style.overflow);
47
+ let c = window.innerWidth - document.documentElement.clientWidth, l = {
48
+ padding: c,
49
+ margin: 0
50
+ }, u = r.scrollBody?.value ? typeof r.scrollBody.value == "object" ? _({
51
+ padding: r.scrollBody.value.padding === !0 ? c : r.scrollBody.value.padding,
52
+ margin: r.scrollBody.value.margin === !0 ? c : r.scrollBody.value.margin
53
+ }, l) : l : {
54
+ padding: 0,
55
+ margin: 0
56
+ };
57
+ c > 0 && (document.body.style.paddingRight = typeof u.padding == "number" ? `${u.padding}px` : String(u.padding), document.body.style.marginRight = typeof u.margin == "number" ? `${u.margin}px` : String(u.margin), document.documentElement.style.setProperty("--scrollbar-width", `${c}px`), document.body.style.overflow = "hidden"), d && (i = le(document, "touchmove", (e) => De(e), { passive: !1 })), M(() => {
58
+ n.value && (document.body.style.pointerEvents = "none", document.body.style.overflow = "hidden");
59
+ });
60
+ }, {
61
+ immediate: !0,
62
+ flush: "sync"
63
+ }), e;
64
+ });
65
+ function Te(e) {
66
+ let t = Math.random().toString(36).substring(2, 7), n = we();
67
+ n.value.set(t, e ?? !1);
68
+ let r = w({
69
+ get: () => n.value.get(t) ?? !1,
70
+ set: (e) => n.value.set(t, e)
71
+ });
72
+ return a(() => {
73
+ n.value.delete(t);
74
+ }), r;
75
+ }
76
+ function Ee(e) {
77
+ let t = window.getComputedStyle(e);
78
+ if (t.overflowX === "scroll" || t.overflowY === "scroll" || t.overflowX === "auto" && e.clientWidth < e.scrollWidth || t.overflowY === "auto" && e.clientHeight < e.scrollHeight) return !0;
79
+ {
80
+ let t = e.parentNode;
81
+ return !(t instanceof Element) || t.tagName === "BODY" ? !1 : Ee(t);
82
+ }
83
+ }
84
+ function De(e) {
85
+ let t = e || window.event, n = t.target;
86
+ return n instanceof Element && Ee(n) ? !1 : t.touches.length > 1 || (t.preventDefault && t.cancelable && t.preventDefault(), !1);
87
+ }
88
+ //#endregion
89
+ //#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/shared/useDirection.js
90
+ function Oe(e) {
91
+ let t = c({ dir: P("ltr") });
92
+ return w(() => e?.value || t.dir?.value || "ltr");
93
+ }
94
+ //#endregion
95
+ //#region ../../node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js
96
+ var ke = function(e) {
97
+ return typeof document > "u" ? null : (Array.isArray(e) ? e[0] : e).ownerDocument.body;
98
+ }, W = /* @__PURE__ */ new WeakMap(), G = /* @__PURE__ */ new WeakMap(), K = {}, q = 0, Ae = function(e) {
99
+ return e && (e.host || Ae(e.parentNode));
100
+ }, je = function(e, t) {
101
+ return t.map(function(t) {
102
+ if (e.contains(t)) return t;
103
+ var n = Ae(t);
104
+ return n && e.contains(n) ? n : (console.error("aria-hidden", t, "in not contained inside", e, ". Doing nothing"), null);
105
+ }).filter(function(e) {
106
+ return !!e;
107
+ });
108
+ }, Me = function(e, t, n, r) {
109
+ var i = je(t, Array.isArray(e) ? e : [e]);
110
+ K[n] || (K[n] = /* @__PURE__ */ new WeakMap());
111
+ var a = K[n], o = [], s = /* @__PURE__ */ new Set(), c = new Set(i), l = function(e) {
112
+ e && !s.has(e) && (s.add(e), l(e.parentNode));
113
+ };
114
+ i.forEach(l);
115
+ var u = function(e) {
116
+ e && !c.has(e) && Array.prototype.forEach.call(e.children, function(e) {
117
+ if (s.has(e)) u(e);
118
+ else try {
119
+ var t = e.getAttribute(r), i = t !== null && t !== "false", c = (W.get(e) || 0) + 1, l = (a.get(e) || 0) + 1;
120
+ W.set(e, c), a.set(e, l), o.push(e), c === 1 && i && G.set(e, !0), l === 1 && e.setAttribute(n, "true"), i || e.setAttribute(r, "true");
121
+ } catch (t) {
122
+ console.error("aria-hidden: cannot operate on ", e, t);
123
+ }
124
+ });
125
+ };
126
+ return u(t), s.clear(), q++, function() {
127
+ o.forEach(function(e) {
128
+ var t = W.get(e) - 1, i = a.get(e) - 1;
129
+ W.set(e, t), a.set(e, i), t || (G.has(e) || e.removeAttribute(r), G.delete(e)), i || e.removeAttribute(n);
130
+ }), q--, q || (W = /* @__PURE__ */ new WeakMap(), W = /* @__PURE__ */ new WeakMap(), G = /* @__PURE__ */ new WeakMap(), K = {});
131
+ };
132
+ }, Ne = function(e, t, n) {
133
+ n === void 0 && (n = "data-aria-hidden");
134
+ var r = Array.from(Array.isArray(e) ? e : [e]), i = t || ke(e);
135
+ return i ? (r.push.apply(r, Array.from(i.querySelectorAll("[aria-live], script"))), Me(r, i, n, "aria-hidden")) : function() {
136
+ return null;
137
+ };
138
+ };
139
+ //#endregion
140
+ //#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/shared/useHideOthers.js
141
+ function Pe(e) {
142
+ let t;
143
+ S(() => m(e), (e) => {
144
+ let n = !1;
145
+ try {
146
+ n = !!e?.closest("[popover]:not(:popover-open)");
147
+ } catch {}
148
+ e && !n ? t = Ne(e) : t && t();
149
+ }), F(() => {
150
+ t && t();
151
+ });
152
+ }
153
+ //#endregion
154
+ //#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/shared/useStateMachine.js
155
+ function Fe(e, t) {
156
+ let n = P(e);
157
+ function r(e) {
158
+ return t[n.value][e] ?? n.value;
159
+ }
160
+ return {
161
+ state: n,
162
+ dispatch: (e) => {
163
+ n.value = r(e);
164
+ }
165
+ };
166
+ }
167
+ //#endregion
168
+ //#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/shared/useTypeahead.js
169
+ function Ie(e) {
170
+ let t = f("", 1e3);
171
+ return {
172
+ search: t,
173
+ handleTypeaheadSearch: (n, r) => {
174
+ if (t.value += n, e) e(n);
175
+ else {
176
+ let e = V(), n = r.map((e) => ({
177
+ ...e,
178
+ textValue: e.value?.textValue ?? e.ref.textContent?.trim() ?? ""
179
+ })), i = n.find((t) => t.ref === e), a = Re(n.map((e) => e.textValue), t.value, i?.textValue), o = n.find((e) => e.textValue === a);
180
+ return o && o.ref.focus(), o?.ref;
181
+ }
182
+ },
183
+ resetTypeahead: () => {
184
+ t.value = "";
185
+ }
186
+ };
187
+ }
188
+ function Le(e, t) {
189
+ return e.map((n, r) => e[(t + r) % e.length]);
190
+ }
191
+ function Re(e, t, n) {
192
+ let r = t.length > 1 && Array.from(t).every((e) => e === t[0]) ? t[0] : t, i = n ? e.indexOf(n) : -1, a = Le(e, Math.max(i, 0));
193
+ r.length === 1 && (a = a.filter((e) => e !== n));
194
+ let o = a.find((e) => e.toLowerCase().startsWith(r.toLowerCase()));
195
+ return o === n ? void 0 : o;
196
+ }
197
+ //#endregion
198
+ //#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/Presence/usePresence.js
199
+ function ze(e, t) {
200
+ let n = P({}), r = P("none"), i = P(e), a = e.value ? "mounted" : "unmounted", o, c = t.value?.ownerDocument.defaultView ?? oe, { state: l, dispatch: u } = Fe(a, {
201
+ mounted: {
202
+ UNMOUNT: "unmounted",
203
+ ANIMATION_OUT: "unmountSuspended"
204
+ },
205
+ unmountSuspended: {
206
+ MOUNT: "mounted",
207
+ ANIMATION_END: "unmounted"
208
+ },
209
+ unmounted: { MOUNT: "mounted" }
210
+ }), d = (e) => {
211
+ if (s) {
212
+ let n = new CustomEvent(e, {
213
+ bubbles: !1,
214
+ cancelable: !1
215
+ });
216
+ t.value?.dispatchEvent(n);
217
+ }
218
+ };
219
+ S(e, async (e, i) => {
220
+ let a = i !== e;
221
+ if (await M(), a) {
222
+ let a = r.value, o = J(t.value);
223
+ e ? (u("MOUNT"), d("enter"), o === "none" && d("after-enter")) : o === "none" || o === "undefined" || n.value?.display === "none" ? (u("UNMOUNT"), d("leave"), d("after-leave")) : i && a !== o ? (u("ANIMATION_OUT"), d("leave")) : (u("UNMOUNT"), d("after-leave"));
224
+ }
225
+ }, { immediate: !0 });
226
+ let f = (e) => {
227
+ if (e.target !== t.value) return;
228
+ let n = J(t.value), r = n.includes(CSS.escape(e.animationName)), a = l.value === "mounted" ? "enter" : "leave";
229
+ if (r && (d(`after-${a}`), u("ANIMATION_END"), !i.value)) {
230
+ let e = t.value.style.animationFillMode;
231
+ t.value.style.animationFillMode = "forwards", o = c?.setTimeout(() => {
232
+ t.value?.style.animationFillMode === "forwards" && (t.value.style.animationFillMode = e);
233
+ });
234
+ }
235
+ n === "none" && u("ANIMATION_END");
236
+ }, p = (e) => {
237
+ e.target === t.value && (r.value = J(t.value));
238
+ }, m = S(t, (e, t) => {
239
+ e ? (n.value = getComputedStyle(e), e.addEventListener("animationstart", p), e.addEventListener("animationcancel", f), e.addEventListener("animationend", f)) : (u("ANIMATION_END"), o !== void 0 && c?.clearTimeout(o), t?.removeEventListener("animationstart", p), t?.removeEventListener("animationcancel", f), t?.removeEventListener("animationend", f));
240
+ }, { immediate: !0 }), ee = S(l, () => {
241
+ let e = J(t.value);
242
+ r.value = l.value === "mounted" ? e : "none";
243
+ });
244
+ return F(() => {
245
+ m(), ee(), t.value && (t.value.removeEventListener("animationstart", p), t.value.removeEventListener("animationcancel", f), t.value.removeEventListener("animationend", f)), o !== void 0 && c?.clearTimeout(o);
246
+ }), { isPresent: w(() => ["mounted", "unmountSuspended"].includes(l.value)) };
247
+ }
248
+ function J(e) {
249
+ return e && getComputedStyle(e).animationName || "none";
250
+ }
251
+ //#endregion
252
+ //#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/Presence/Presence.js
253
+ var Y = /*#__PURE__*/ T({
254
+ name: "Presence",
255
+ props: {
256
+ present: {
257
+ type: Boolean,
258
+ required: !0
259
+ },
260
+ forceMount: { type: Boolean }
261
+ },
262
+ slots: {},
263
+ setup(e, { slots: t, expose: n }) {
264
+ let { present: r, forceMount: i } = j(e), a = P(), { isPresent: o } = ze(r, a);
265
+ n({ present: o });
266
+ let s = t.default({ present: o.value });
267
+ s = u(s || []);
268
+ let c = ve();
269
+ if (s && s?.length > 1) {
270
+ let e = c?.parent?.type.name ? `<${c.parent.type.name} />` : "component";
271
+ throw Error([
272
+ `Detected an invalid children for \`${e}\` for \`Presence\` component.`,
273
+ "",
274
+ "Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.",
275
+ "You can apply a few solutions:",
276
+ ["Provide a single child element so that `presence` directive attach correctly.", "Ensure the first child is an actual element instead of a raw text node or comment node."].map((e) => ` - ${e}`).join("\n")
277
+ ].join("\n"));
278
+ }
279
+ return () => i.value || r.value || o.value ? I(t.default({ present: o.value })[0], { ref: (e) => {
280
+ let t = m(e);
281
+ return t?.hasAttribute === void 0 || (t?.hasAttribute("data-reka-popper-content-wrapper") ? a.value = t.firstElementChild : a.value = t), t;
282
+ } }) : null;
283
+ }
284
+ });
285
+ //#endregion
286
+ //#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/Primitive/usePrimitiveElement.js
287
+ function X() {
288
+ let e = P();
289
+ return {
290
+ primitiveElement: e,
291
+ currentElement: w(() => ["#text", "#comment"].includes(e.value?.$el.nodeName) ? e.value?.$el.nextElementSibling : m(e))
292
+ };
293
+ }
294
+ //#endregion
295
+ //#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/Dialog/DialogClose.js
296
+ var Be = /* @__PURE__ */ T({
297
+ __name: "DialogClose",
298
+ props: {
299
+ asChild: {
300
+ type: Boolean,
301
+ required: !1
302
+ },
303
+ as: {
304
+ type: null,
305
+ required: !1,
306
+ default: "button"
307
+ }
308
+ },
309
+ setup(e) {
310
+ let n = e;
311
+ t();
312
+ let r = p();
313
+ return (e, t) => (N(), y(x(i), v(n, {
314
+ type: e.as === "button" ? "button" : void 0,
315
+ onClick: t[0] ||= (e) => x(r).onOpenChange(!1)
316
+ }), {
317
+ default: D(() => [O(e.$slots, "default")]),
318
+ _: 3
319
+ }, 16, ["type"]));
320
+ }
321
+ }), Ve = "dismissableLayer.pointerDownOutside", He = "dismissableLayer.focusOutside";
322
+ function Ue(e, t) {
323
+ if (!(t instanceof Element)) return !1;
324
+ if (e.contains(t)) return !0;
325
+ let n = t.closest("[data-dismissable-layer]"), r = e.dataset.dismissableLayer === "" ? e : e.querySelector("[data-dismissable-layer]"), i = Array.from(e.ownerDocument.querySelectorAll("[data-dismissable-layer]"));
326
+ return !!(n && (r === n || i.indexOf(r) < i.indexOf(n)));
327
+ }
328
+ function We(e, t, n = !0) {
329
+ let r = t?.value?.ownerDocument ?? globalThis?.document, i = P(!1), a = P(() => {});
330
+ return B((o) => {
331
+ if (!s || !z(n)) return;
332
+ let c = async (n) => {
333
+ let o = n.target;
334
+ if (t?.value && o) {
335
+ if (Ue(t.value, o)) {
336
+ r.removeEventListener("click", a.value), i.value = !1;
337
+ return;
338
+ }
339
+ if (n.target && !i.value) {
340
+ let t = { originalEvent: n };
341
+ function i() {
342
+ H(Ve, e, t);
343
+ }
344
+ n.pointerType === "touch" ? (r.removeEventListener("click", a.value), a.value = i, r.addEventListener("click", a.value, { once: !0 })) : i();
345
+ } else r.removeEventListener("click", a.value);
346
+ i.value = !1;
347
+ }
348
+ }, l = window.setTimeout(() => {
349
+ r.addEventListener("pointerdown", c);
350
+ }, 0);
351
+ o(() => {
352
+ window.clearTimeout(l), r.removeEventListener("pointerdown", c), r.removeEventListener("click", a.value);
353
+ });
354
+ }), { onPointerDownCapture: () => {
355
+ z(n) && (i.value = !0);
356
+ } };
357
+ }
358
+ function Ge(e, t, n = !0) {
359
+ let r = t?.value?.ownerDocument ?? globalThis?.document, i = P(!1);
360
+ return B((a) => {
361
+ if (!s || !z(n)) return;
362
+ let o = async (n) => {
363
+ if (!t?.value) return;
364
+ await M(), await M();
365
+ let r = n.target;
366
+ t.value && r && !Ue(t.value, r) && n.target && !i.value && H(He, e, { originalEvent: n });
367
+ };
368
+ r.addEventListener("focusin", o), a(() => r.removeEventListener("focusin", o));
369
+ }), {
370
+ onFocusCapture: () => {
371
+ z(n) && (i.value = !0);
372
+ },
373
+ onBlurCapture: () => {
374
+ z(n) && (i.value = !1);
375
+ }
376
+ };
377
+ }
378
+ //#endregion
379
+ //#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/DismissableLayer/DismissableLayer.js
380
+ var Ke = /* @__PURE__ */ T({
381
+ __name: "DismissableLayer",
382
+ props: {
383
+ disableOutsidePointerEvents: {
384
+ type: Boolean,
385
+ required: !1,
386
+ default: !1
387
+ },
388
+ asChild: {
389
+ type: Boolean,
390
+ required: !1
391
+ },
392
+ as: {
393
+ type: null,
394
+ required: !1
395
+ },
396
+ present: {
397
+ type: Boolean,
398
+ required: !1,
399
+ default: !0
400
+ }
401
+ },
402
+ emits: [
403
+ "escapeKeyDown",
404
+ "pointerDownOutside",
405
+ "focusOutside",
406
+ "interactOutside",
407
+ "dismiss"
408
+ ],
409
+ setup(e, { emit: n }) {
410
+ let r = e, a = n, { forwardRef: o, currentElement: s } = t(), c = w(() => s.value?.ownerDocument ?? globalThis.document), l = w(() => U.layersRoot), u = w(() => s.value ? Array.from(l.value).indexOf(s.value) : -1), d = w(() => U.layersWithOutsidePointerEventsDisabled.size > 0), f = w(() => {
411
+ let e = Array.from(l.value), [t] = [...U.layersWithOutsidePointerEventsDisabled].slice(-1), n = e.indexOf(t);
412
+ return u.value >= n;
413
+ }), p = We(async (e) => {
414
+ let t = [...U.branches].some((t) => t?.contains(e.target));
415
+ r.present && f.value && !t && (a("pointerDownOutside", e), a("interactOutside", e), await M(), e.defaultPrevented || a("dismiss"));
416
+ }, s, () => r.present), m = Ge((e) => {
417
+ let t = [...U.branches].some((t) => t?.contains(e.target));
418
+ r.present && !t && (a("focusOutside", e), a("interactOutside", e), e.defaultPrevented || a("dismiss"));
419
+ }, s);
420
+ return te("Escape", (e) => {
421
+ r.present && u.value === l.value.size - 1 && (a("escapeKeyDown", e), e.defaultPrevented || a("dismiss"));
422
+ }), S([
423
+ s,
424
+ () => r.disableOutsidePointerEvents,
425
+ () => r.present
426
+ ], ([e, t, n], r, i) => {
427
+ e && n && t && (U.layersWithOutsidePointerEventsDisabled.size === 0 && (U.originalBodyPointerEvents = c.value.body.style.pointerEvents, c.value.body.style.pointerEvents = "none"), U.layersWithOutsidePointerEventsDisabled.add(e), i(() => {
428
+ U.layersWithOutsidePointerEventsDisabled.delete(e), U.layersWithOutsidePointerEventsDisabled.size === 0 && !Ce(U.originalBodyPointerEvents) && (c.value.body.style.pointerEvents = U.originalBodyPointerEvents);
429
+ }));
430
+ }, { immediate: !0 }), S([s, () => r.present], ([e, t], n, r) => {
431
+ e && t && (l.value.add(e), r(() => {
432
+ l.value.delete(e);
433
+ }));
434
+ }, { immediate: !0 }), B((e) => {
435
+ e(() => {
436
+ s.value && (l.value.delete(s.value), U.layersWithOutsidePointerEventsDisabled.delete(s.value));
437
+ });
438
+ }), (e, t) => (N(), y(x(i), {
439
+ ref: x(o),
440
+ "as-child": e.asChild,
441
+ as: e.as,
442
+ "data-dismissable-layer": "",
443
+ style: be({ pointerEvents: d.value ? f.value ? "auto" : "none" : void 0 }),
444
+ onFocusCapture: x(m).onFocusCapture,
445
+ onBlurCapture: x(m).onBlurCapture,
446
+ onPointerdownCapture: x(p).onPointerDownCapture
447
+ }, {
448
+ default: D(() => [O(e.$slots, "default")]),
449
+ _: 3
450
+ }, 8, [
451
+ "as-child",
452
+ "as",
453
+ "style",
454
+ "onFocusCapture",
455
+ "onBlurCapture",
456
+ "onPointerdownCapture"
457
+ ]));
458
+ }
459
+ }), qe = re(() => P([]));
460
+ function Je() {
461
+ let e = qe();
462
+ return {
463
+ add(t) {
464
+ let n = e.value[0];
465
+ t !== n && n?.pause(), e.value = Ye(e.value, t), e.value.unshift(t);
466
+ },
467
+ remove(t) {
468
+ e.value = Ye(e.value, t), e.value[0]?.resume();
469
+ }
470
+ };
471
+ }
472
+ function Ye(e, t) {
473
+ let n = [...e], r = n.indexOf(t);
474
+ return r !== -1 && n.splice(r, 1), n;
475
+ }
476
+ //#endregion
477
+ //#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/FocusScope/utils.js
478
+ var Z = "focusScope.autoFocusOnMount", Q = "focusScope.autoFocusOnUnmount", Xe = {
479
+ bubbles: !1,
480
+ cancelable: !0
481
+ };
482
+ function Ze(e, { select: t = !1 } = {}) {
483
+ let n = V();
484
+ for (let r of e) if ($(r, { select: t }), V() !== n) return !0;
485
+ }
486
+ function Qe(e) {
487
+ let t = $e(e);
488
+ return [et(t, e), et(t.reverse(), e)];
489
+ }
490
+ function $e(e) {
491
+ let t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode: (e) => {
492
+ let t = e.tagName === "INPUT" && e.type === "hidden";
493
+ return e.disabled || e.hidden || t ? NodeFilter.FILTER_SKIP : e.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
494
+ } });
495
+ for (; n.nextNode();) t.push(n.currentNode);
496
+ return t;
497
+ }
498
+ function et(e, t) {
499
+ for (let n of e) if (!tt(n, { upTo: t })) return n;
500
+ }
501
+ function tt(e, { upTo: t }) {
502
+ if (getComputedStyle(e).visibility === "hidden") return !0;
503
+ for (; e;) {
504
+ if (t !== void 0 && e === t) return !1;
505
+ if (getComputedStyle(e).display === "none") return !0;
506
+ e = e.parentElement;
507
+ }
508
+ return !1;
509
+ }
510
+ function nt(e) {
511
+ return e instanceof HTMLInputElement && "select" in e;
512
+ }
513
+ function $(e, { select: t = !1 } = {}) {
514
+ if (e && e.focus) {
515
+ let n = V();
516
+ e.focus({ preventScroll: !0 }), e !== n && nt(e) && t && e.select();
517
+ }
518
+ }
519
+ //#endregion
520
+ //#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/FocusScope/FocusScope.js
521
+ var rt = /* @__PURE__ */ T({
522
+ __name: "FocusScope",
523
+ props: {
524
+ loop: {
525
+ type: Boolean,
526
+ required: !1,
527
+ default: !1
528
+ },
529
+ trapped: {
530
+ type: Boolean,
531
+ required: !1,
532
+ default: !1
533
+ },
534
+ present: {
535
+ type: Boolean,
536
+ required: !1,
537
+ default: !0
538
+ },
539
+ asChild: {
540
+ type: Boolean,
541
+ required: !1
542
+ },
543
+ as: {
544
+ type: null,
545
+ required: !1
546
+ }
547
+ },
548
+ emits: ["mountAutoFocus", "unmountAutoFocus"],
549
+ setup(e, { emit: n }) {
550
+ let r = e, a = n, { currentRef: o, currentElement: c } = t(), l = P(null), u = Je(), d = /*#__PURE__*/ L({
551
+ paused: !1,
552
+ pause() {
553
+ this.paused = !0;
554
+ },
555
+ resume() {
556
+ this.paused = !1;
557
+ }
558
+ });
559
+ B((e) => {
560
+ if (!s) return;
561
+ let t = c.value;
562
+ if (!r.trapped) return;
563
+ function n(e) {
564
+ if (d.paused || !t) return;
565
+ let n = e.target;
566
+ t.contains(n) ? l.value = n : $(l.value, { select: !0 });
567
+ }
568
+ function i(e) {
569
+ if (d.paused || !t) return;
570
+ let n = e.relatedTarget;
571
+ n !== null && (t.contains(n) || $(l.value, { select: !0 }));
572
+ }
573
+ function a(e) {
574
+ let n = l.value;
575
+ if (n === null || !e.some((e) => e.removedNodes.length > 0)) return;
576
+ let r = V();
577
+ r && t.contains(r) || t.contains(n) || $(t);
578
+ }
579
+ document.addEventListener("focusin", n), document.addEventListener("focusout", i);
580
+ let o = new MutationObserver(a);
581
+ t && o.observe(t, {
582
+ childList: !0,
583
+ subtree: !0
584
+ }), e(() => {
585
+ document.removeEventListener("focusin", n), document.removeEventListener("focusout", i), o.disconnect();
586
+ });
587
+ });
588
+ function f(e, t) {
589
+ let n = new CustomEvent(Z, Xe), r = (e) => a("mountAutoFocus", e);
590
+ e.addEventListener(Z, r), e.dispatchEvent(n), e.removeEventListener(Z, r), n.defaultPrevented || (Ze($e(e), { select: !0 }), V() === t && $(e));
591
+ }
592
+ B(async (e) => {
593
+ let t = c.value;
594
+ if (await M(), !t) return;
595
+ r.present !== !1 && u.add(d);
596
+ let n = V();
597
+ !t.contains(n) && r.present !== !1 && f(t, n), e(() => {
598
+ let e = new CustomEvent(Q, Xe), r = (e) => {
599
+ a("unmountAutoFocus", e);
600
+ };
601
+ t.addEventListener(Q, r), t.dispatchEvent(e), t.setAttribute("data-focus-scope-unmounting", ""), setTimeout(() => {
602
+ e.defaultPrevented || $(n ?? document.body, { select: !0 }), t.removeEventListener(Q, r), u.remove(d), t.removeAttribute("data-focus-scope-unmounting");
603
+ }, 0);
604
+ });
605
+ }), S(() => r.present, async (e, t) => {
606
+ if (!s) return;
607
+ if (e === !1 && t === !0) {
608
+ u.remove(d);
609
+ return;
610
+ }
611
+ if (e !== !0 || t !== !1) return;
612
+ u.add(d), await M();
613
+ let n = c.value;
614
+ if (!n) return;
615
+ let r = V();
616
+ n.contains(r) || f(n, r);
617
+ });
618
+ function p(e) {
619
+ if (!r.loop && !r.trapped || d.paused) return;
620
+ let t = e.key === "Tab" && !e.altKey && !e.ctrlKey && !e.metaKey, n = V();
621
+ if (t && n) {
622
+ let t = e.currentTarget, [i, a] = Qe(t);
623
+ i && a ? !e.shiftKey && n === a ? (e.preventDefault(), r.loop && $(i, { select: !0 })) : e.shiftKey && n === i && (e.preventDefault(), r.loop && $(a, { select: !0 })) : n === t && e.preventDefault();
624
+ }
625
+ }
626
+ return (e, t) => (N(), y(x(i), {
627
+ ref_key: "currentRef",
628
+ ref: o,
629
+ tabindex: "-1",
630
+ "as-child": e.asChild,
631
+ as: e.as,
632
+ onKeydown: p
633
+ }, {
634
+ default: D(() => [O(e.$slots, "default")]),
635
+ _: 3
636
+ }, 8, ["as-child", "as"]));
637
+ }
638
+ }), it = "menu.itemSelect", at = ["Enter", " "], ot = [
639
+ "ArrowDown",
640
+ "PageUp",
641
+ "Home"
642
+ ], st = [
643
+ "ArrowUp",
644
+ "PageDown",
645
+ "End"
646
+ ], ct = [...ot, ...st], lt = {
647
+ ltr: [...at, "ArrowRight"],
648
+ rtl: [...at, "ArrowLeft"]
649
+ }, ut = {
650
+ ltr: ["ArrowLeft"],
651
+ rtl: ["ArrowRight"]
652
+ };
653
+ function dt(e) {
654
+ return e ? "open" : "closed";
655
+ }
656
+ function ft(e) {
657
+ return e === "indeterminate";
658
+ }
659
+ function pt(e) {
660
+ return ft(e) ? "indeterminate" : e ? "checked" : "unchecked";
661
+ }
662
+ function mt(e) {
663
+ let t = V();
664
+ for (let n of e) if (n === t || (n.focus(), V() !== t)) return;
665
+ }
666
+ function ht(e, t) {
667
+ let { x: n, y: r } = e, i = !1;
668
+ for (let e = 0, a = t.length - 1; e < t.length; a = e++) {
669
+ let o = t[e].x, s = t[e].y, c = t[a].x, l = t[a].y;
670
+ s > r != l > r && n < (c - o) * (r - s) / (l - s) + o && (i = !i);
671
+ }
672
+ return i;
673
+ }
674
+ function gt(e, t) {
675
+ return t ? ht({
676
+ x: e.clientX,
677
+ y: e.clientY
678
+ }, t) : !1;
679
+ }
680
+ function _t(e) {
681
+ return e.pointerType === "mouse";
682
+ }
683
+ //#endregion
684
+ //#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/Dialog/DialogContentImpl.js
685
+ var vt = /* @__PURE__ */ T({
686
+ __name: "DialogContentImpl",
687
+ props: {
688
+ forceMount: {
689
+ type: Boolean,
690
+ required: !1
691
+ },
692
+ trapFocus: {
693
+ type: Boolean,
694
+ required: !1
695
+ },
696
+ disableOutsidePointerEvents: {
697
+ type: Boolean,
698
+ required: !1
699
+ },
700
+ asChild: {
701
+ type: Boolean,
702
+ required: !1
703
+ },
704
+ as: {
705
+ type: null,
706
+ required: !1
707
+ },
708
+ present: {
709
+ type: Boolean,
710
+ required: !1
711
+ }
712
+ },
713
+ emits: [
714
+ "escapeKeyDown",
715
+ "pointerDownOutside",
716
+ "focusOutside",
717
+ "interactOutside",
718
+ "openAutoFocus",
719
+ "closeAutoFocus"
720
+ ],
721
+ setup(e, { emit: n }) {
722
+ let r = e, i = n, a = p(), { forwardRef: o, currentElement: s } = t();
723
+ return a.titleId ||= l(void 0, "reka-dialog-title"), a.descriptionId ||= l(void 0, "reka-dialog-description"), xe(() => {
724
+ a.contentElement = s, V() !== document.body && (a.triggerElement.value = V());
725
+ }), (e, t) => (N(), y(x(rt), {
726
+ "as-child": "",
727
+ loop: "",
728
+ trapped: r.trapFocus,
729
+ present: r.present,
730
+ onMountAutoFocus: t[5] ||= (e) => i("openAutoFocus", e),
731
+ onUnmountAutoFocus: t[6] ||= (e) => i("closeAutoFocus", e)
732
+ }, {
733
+ default: D(() => [k(x(Ke), v({
734
+ id: x(a).contentId,
735
+ ref: x(o),
736
+ as: e.as,
737
+ "as-child": e.asChild,
738
+ present: r.present,
739
+ "disable-outside-pointer-events": e.disableOutsidePointerEvents,
740
+ role: "dialog",
741
+ "aria-describedby": x(a).descriptionId,
742
+ "aria-labelledby": x(a).titleId,
743
+ "data-state": x(dt)(x(a).open.value)
744
+ }, e.$attrs, {
745
+ onDismiss: t[0] ||= (e) => x(a).onOpenChange(!1),
746
+ onEscapeKeyDown: t[1] ||= (e) => i("escapeKeyDown", e),
747
+ onFocusOutside: t[2] ||= (e) => i("focusOutside", e),
748
+ onInteractOutside: t[3] ||= (e) => i("interactOutside", e),
749
+ onPointerDownOutside: t[4] ||= (e) => i("pointerDownOutside", e)
750
+ }), {
751
+ default: D(() => [O(e.$slots, "default")]),
752
+ _: 3
753
+ }, 16, [
754
+ "id",
755
+ "as",
756
+ "as-child",
757
+ "present",
758
+ "disable-outside-pointer-events",
759
+ "aria-describedby",
760
+ "aria-labelledby",
761
+ "data-state"
762
+ ])]),
763
+ _: 3
764
+ }, 8, ["trapped", "present"]));
765
+ }
766
+ }), yt = /* @__PURE__ */ T({
767
+ __name: "DialogContentModal",
768
+ props: {
769
+ forceMount: {
770
+ type: Boolean,
771
+ required: !1
772
+ },
773
+ trapFocus: {
774
+ type: Boolean,
775
+ required: !1
776
+ },
777
+ disableOutsidePointerEvents: {
778
+ type: Boolean,
779
+ required: !1,
780
+ default: !0
781
+ },
782
+ asChild: {
783
+ type: Boolean,
784
+ required: !1
785
+ },
786
+ as: {
787
+ type: null,
788
+ required: !1
789
+ },
790
+ present: {
791
+ type: Boolean,
792
+ required: !0
793
+ }
794
+ },
795
+ emits: [
796
+ "escapeKeyDown",
797
+ "pointerDownOutside",
798
+ "focusOutside",
799
+ "interactOutside",
800
+ "openAutoFocus",
801
+ "closeAutoFocus"
802
+ ],
803
+ setup(e, { emit: n }) {
804
+ let r = e, i = n, a = p(), o = g(i), { forwardRef: s, currentElement: c } = t();
805
+ Pe(w(() => r.present ? c.value : void 0));
806
+ let l = w(() => {
807
+ let { present: e, ...t } = r;
808
+ return t;
809
+ });
810
+ return S(() => r.present, (e, t) => {
811
+ !e && t && a.triggerElement.value?.focus();
812
+ }), (e, t) => (N(), y(vt, v({
813
+ ...l.value,
814
+ ...x(o)
815
+ }, {
816
+ ref: x(s),
817
+ present: e.present,
818
+ "trap-focus": x(a).open.value,
819
+ "disable-outside-pointer-events": r.disableOutsidePointerEvents,
820
+ onCloseAutoFocus: t[0] ||= (e) => {
821
+ e.defaultPrevented || (e.preventDefault(), x(a).triggerElement.value?.focus());
822
+ },
823
+ onPointerDownOutside: t[1] ||= (e) => {
824
+ let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0;
825
+ (t.button === 2 || n) && e.preventDefault();
826
+ },
827
+ onFocusOutside: t[2] ||= (e) => {
828
+ e.preventDefault();
829
+ }
830
+ }), {
831
+ default: D(() => [O(e.$slots, "default")]),
832
+ _: 3
833
+ }, 16, [
834
+ "present",
835
+ "trap-focus",
836
+ "disable-outside-pointer-events"
837
+ ]));
838
+ }
839
+ }), bt = /* @__PURE__ */ T({
840
+ __name: "DialogContentNonModal",
841
+ props: {
842
+ forceMount: {
843
+ type: Boolean,
844
+ required: !1
845
+ },
846
+ trapFocus: {
847
+ type: Boolean,
848
+ required: !1
849
+ },
850
+ disableOutsidePointerEvents: {
851
+ type: Boolean,
852
+ required: !1
853
+ },
854
+ asChild: {
855
+ type: Boolean,
856
+ required: !1
857
+ },
858
+ as: {
859
+ type: null,
860
+ required: !1
861
+ },
862
+ present: {
863
+ type: Boolean,
864
+ required: !0
865
+ }
866
+ },
867
+ emits: [
868
+ "escapeKeyDown",
869
+ "pointerDownOutside",
870
+ "focusOutside",
871
+ "interactOutside",
872
+ "openAutoFocus",
873
+ "closeAutoFocus"
874
+ ],
875
+ setup(e, { emit: n }) {
876
+ let r = e, i = g(n);
877
+ t();
878
+ let a = p(), o = P(!1), s = P(!1), c = w(() => {
879
+ let { present: e, ...t } = r;
880
+ return t;
881
+ });
882
+ return S(() => r.present, (e, t) => {
883
+ !e && t && (o.value || a.triggerElement.value?.focus(), o.value = !1, s.value = !1);
884
+ }), (e, t) => (N(), y(vt, v({
885
+ ...c.value,
886
+ ...x(i)
887
+ }, {
888
+ present: e.present,
889
+ "trap-focus": !1,
890
+ "disable-outside-pointer-events": !1,
891
+ onCloseAutoFocus: t[0] ||= (e) => {
892
+ e.defaultPrevented || (o.value || x(a).triggerElement.value?.focus(), e.preventDefault()), o.value = !1, s.value = !1;
893
+ },
894
+ onInteractOutside: t[1] ||= (e) => {
895
+ e.defaultPrevented || (o.value = !0, e.detail.originalEvent.type === "pointerdown" && (s.value = !0));
896
+ let t = e.target;
897
+ x(a).triggerElement.value?.contains(t) && e.preventDefault(), e.detail.originalEvent.type === "focusin" && s.value && e.preventDefault();
898
+ }
899
+ }), {
900
+ default: D(() => [O(e.$slots, "default")]),
901
+ _: 3
902
+ }, 16, ["present"]));
903
+ }
904
+ }), xt = /* @__PURE__ */ T({
905
+ __name: "DialogContent",
906
+ props: {
907
+ forceMount: {
908
+ type: Boolean,
909
+ required: !1
910
+ },
911
+ disableOutsidePointerEvents: {
912
+ type: Boolean,
913
+ required: !1,
914
+ default: void 0
915
+ },
916
+ asChild: {
917
+ type: Boolean,
918
+ required: !1
919
+ },
920
+ as: {
921
+ type: null,
922
+ required: !1
923
+ }
924
+ },
925
+ emits: [
926
+ "escapeKeyDown",
927
+ "pointerDownOutside",
928
+ "focusOutside",
929
+ "interactOutside",
930
+ "openAutoFocus",
931
+ "closeAutoFocus"
932
+ ],
933
+ setup(e, { emit: n }) {
934
+ let r = e, i = n, a = p(), o = g(i), { forwardRef: s } = t(), c = w(() => r.forceMount || !a.unmountOnHide.value);
935
+ return (e, t) => (N(), y(x(Y), {
936
+ present: x(a).open.value,
937
+ "force-mount": c.value
938
+ }, {
939
+ default: D(({ present: t }) => [x(a).modal.value ? b((N(), y(yt, v({
940
+ key: 0,
941
+ ref: x(s),
942
+ present: !c.value || t
943
+ }, {
944
+ ...r,
945
+ ...x(o),
946
+ ...e.$attrs
947
+ }), {
948
+ default: D(() => [O(e.$slots, "default")]),
949
+ _: 2
950
+ }, 1040, ["present"])), [[h, e.forceMount || x(a).unmountOnHide.value || t]]) : b((N(), y(bt, v({
951
+ key: 1,
952
+ ref: x(s),
953
+ present: !c.value || t
954
+ }, {
955
+ ...r,
956
+ ...x(o),
957
+ ...e.$attrs
958
+ }), {
959
+ default: D(() => [O(e.$slots, "default")]),
960
+ _: 2
961
+ }, 1040, ["present"])), [[h, e.forceMount || x(a).unmountOnHide.value || t]])]),
962
+ _: 3
963
+ }, 8, ["present", "force-mount"]));
964
+ }
965
+ }), St = /* @__PURE__ */ T({
966
+ __name: "DialogDescription",
967
+ props: {
968
+ asChild: {
969
+ type: Boolean,
970
+ required: !1
971
+ },
972
+ as: {
973
+ type: null,
974
+ required: !1,
975
+ default: "p"
976
+ }
977
+ },
978
+ setup(e) {
979
+ let n = e;
980
+ t();
981
+ let r = p();
982
+ return (e, t) => (N(), y(x(i), v(n, { id: x(r).descriptionId }), {
983
+ default: D(() => [O(e.$slots, "default")]),
984
+ _: 3
985
+ }, 16, ["id"]));
986
+ }
987
+ }), Ct = /* @__PURE__ */ T({
988
+ __name: "DialogOverlayImpl",
989
+ props: {
990
+ asChild: {
991
+ type: Boolean,
992
+ required: !1
993
+ },
994
+ as: {
995
+ type: null,
996
+ required: !1
997
+ },
998
+ present: {
999
+ type: Boolean,
1000
+ required: !1,
1001
+ default: !0
1002
+ }
1003
+ },
1004
+ setup(e) {
1005
+ let n = e, r = p(), a = Te(n.present);
1006
+ return S(() => n.present, (e) => a.value = e), t(), (e, t) => (N(), y(x(i), {
1007
+ as: e.as,
1008
+ "as-child": e.asChild,
1009
+ "data-state": x(r).open.value ? "open" : "closed",
1010
+ style: { "pointer-events": "auto" },
1011
+ onPointerdown: t[0] ||= ae(() => {}, [
1012
+ "left",
1013
+ "self",
1014
+ "prevent"
1015
+ ])
1016
+ }, {
1017
+ default: D(() => [O(e.$slots, "default")]),
1018
+ _: 3
1019
+ }, 8, [
1020
+ "as",
1021
+ "as-child",
1022
+ "data-state"
1023
+ ]));
1024
+ }
1025
+ }), wt = /* @__PURE__ */ T({
1026
+ __name: "DialogOverlay",
1027
+ props: {
1028
+ forceMount: {
1029
+ type: Boolean,
1030
+ required: !1
1031
+ },
1032
+ asChild: {
1033
+ type: Boolean,
1034
+ required: !1
1035
+ },
1036
+ as: {
1037
+ type: null,
1038
+ required: !1
1039
+ }
1040
+ },
1041
+ setup(e) {
1042
+ let n = e, r = p(), { forwardRef: i } = t(), a = w(() => n.forceMount || !r.unmountOnHide.value);
1043
+ return (e, t) => x(r)?.modal.value ? (N(), y(x(Y), {
1044
+ key: 0,
1045
+ present: x(r).open.value,
1046
+ "force-mount": a.value
1047
+ }, {
1048
+ default: D(({ present: t }) => [b(k(Ct, v(e.$attrs, {
1049
+ ref: x(i),
1050
+ as: e.as,
1051
+ "as-child": e.asChild,
1052
+ present: !a.value || t
1053
+ }), {
1054
+ default: D(() => [O(e.$slots, "default")]),
1055
+ _: 2
1056
+ }, 1040, [
1057
+ "as",
1058
+ "as-child",
1059
+ "present"
1060
+ ]), [[h, e.forceMount || x(r).unmountOnHide.value || t]])]),
1061
+ _: 3
1062
+ }, 8, ["present", "force-mount"])) : E("v-if", !0);
1063
+ }
1064
+ }), Tt = /* @__PURE__ */ T({
1065
+ __name: "DialogTitle",
1066
+ props: {
1067
+ asChild: {
1068
+ type: Boolean,
1069
+ required: !1
1070
+ },
1071
+ as: {
1072
+ type: null,
1073
+ required: !1,
1074
+ default: "h2"
1075
+ }
1076
+ },
1077
+ setup(e) {
1078
+ let n = e, r = p();
1079
+ return t(), (e, t) => (N(), y(x(i), v(n, { id: x(r).titleId }), {
1080
+ default: D(() => [O(e.$slots, "default")]),
1081
+ _: 3
1082
+ }, 16, ["id"]));
1083
+ }
1084
+ }), Et = "data-reka-collection-item";
1085
+ function Dt(e = {}) {
1086
+ let { key: t = "", isProvider: r = !1 } = e, i = `${t}CollectionProvider`, a;
1087
+ if (r) {
1088
+ let e = P(/* @__PURE__ */ new Map());
1089
+ a = {
1090
+ collectionRef: P(),
1091
+ itemMap: e
1092
+ }, Se(i, a);
1093
+ } else a = C(i);
1094
+ let o = (e, t = !1) => {
1095
+ if (!a.collectionRef.value) return;
1096
+ let n = a.itemMap.value.get(e);
1097
+ return n && (t || n.ref.dataset.disabled !== "") ? n : void 0;
1098
+ }, s = (e = !1) => {
1099
+ let t = a.collectionRef.value;
1100
+ if (!t) return [];
1101
+ let n = Array.from(t.querySelectorAll(`[${Et}]`)), r = new Map(n.map((e, t) => [e, t])), i = Array.from(a.itemMap.value.values()).sort((e, t) => (r.get(e.ref) ?? -1) - (r.get(t.ref) ?? -1));
1102
+ return e ? i : i.filter((e) => e.ref.dataset.disabled !== "");
1103
+ }, c = /*#__PURE__*/ T({
1104
+ name: "CollectionSlot",
1105
+ inheritAttrs: !1,
1106
+ setup(e, { slots: t, attrs: r }) {
1107
+ let { primitiveElement: i, currentElement: o } = X();
1108
+ return S(o, () => {
1109
+ a.collectionRef.value = o.value;
1110
+ }), () => I(n, {
1111
+ ref: i,
1112
+ ...r
1113
+ }, t);
1114
+ }
1115
+ }), l = /*#__PURE__*/ T({
1116
+ name: "CollectionItem",
1117
+ inheritAttrs: !1,
1118
+ props: { value: { validator: () => !0 } },
1119
+ setup(e, { slots: t, attrs: r }) {
1120
+ let { primitiveElement: i, currentElement: o } = X();
1121
+ return B((t) => {
1122
+ if (o.value) {
1123
+ let n = A(o.value);
1124
+ a.itemMap.value.set(n, {
1125
+ ref: o.value,
1126
+ value: e.value
1127
+ }), t(() => a.itemMap.value.delete(n));
1128
+ }
1129
+ }), () => I(n, {
1130
+ ...r,
1131
+ [Et]: "",
1132
+ ref: i
1133
+ }, t);
1134
+ }
1135
+ });
1136
+ return {
1137
+ getItems: s,
1138
+ getItem: o,
1139
+ reactiveItems: w(() => Array.from(a.itemMap.value.values())),
1140
+ itemMapSize: w(() => a.itemMap.value.size),
1141
+ CollectionSlot: c,
1142
+ CollectionItem: l
1143
+ };
1144
+ }
1145
+ //#endregion
1146
+ //#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/VisuallyHidden/VisuallyHidden.js
1147
+ var Ot = /* @__PURE__ */ T({
1148
+ __name: "VisuallyHidden",
1149
+ props: {
1150
+ feature: {
1151
+ type: String,
1152
+ required: !1,
1153
+ default: "focusable"
1154
+ },
1155
+ asChild: {
1156
+ type: Boolean,
1157
+ required: !1
1158
+ },
1159
+ as: {
1160
+ type: null,
1161
+ required: !1,
1162
+ default: "span"
1163
+ }
1164
+ },
1165
+ setup(e) {
1166
+ return (e, t) => (N(), y(x(i), {
1167
+ as: e.as,
1168
+ "as-child": e.asChild,
1169
+ "aria-hidden": e.feature === "focusable" || e.feature === "fully-hidden" ? "true" : void 0,
1170
+ "data-hidden": e.feature === "fully-hidden" ? "" : void 0,
1171
+ tabindex: e.feature === "fully-hidden" ? "-1" : void 0,
1172
+ style: {
1173
+ position: "absolute",
1174
+ border: 0,
1175
+ width: "1px",
1176
+ height: "1px",
1177
+ padding: 0,
1178
+ margin: "-1px",
1179
+ overflow: "hidden",
1180
+ clip: "rect(0, 0, 0, 0)",
1181
+ clipPath: "inset(50%)",
1182
+ whiteSpace: "nowrap",
1183
+ wordWrap: "normal",
1184
+ top: "-1px",
1185
+ left: "-1px"
1186
+ }
1187
+ }, {
1188
+ default: D(() => [O(e.$slots, "default")]),
1189
+ _: 3
1190
+ }, 8, [
1191
+ "as",
1192
+ "as-child",
1193
+ "aria-hidden",
1194
+ "data-hidden",
1195
+ "tabindex"
1196
+ ]));
1197
+ }
1198
+ }), kt = Symbol("nuxt-ui.portal-target");
1199
+ function At(e) {
1200
+ let t = C(kt, void 0), n = w(() => e.value === !0 ? t?.value : e.value), r = w(() => typeof n.value == "boolean" && !n.value), i = w(() => typeof n.value == "boolean" ? "body" : n.value);
1201
+ return w(() => ({
1202
+ to: i.value,
1203
+ disabled: r.value
1204
+ }));
1205
+ }
1206
+ //#endregion
1207
+ //#region virtual:nuxt-ui-templates/ui/input.ts
1208
+ var jt = {
1209
+ slots: {
1210
+ root: "relative inline-flex items-center",
1211
+ base: ["w-full rounded-md border-0 appearance-none placeholder:text-dimmed disabled:cursor-not-allowed disabled:opacity-75", "transition-colors"],
1212
+ leading: "absolute inset-y-0 start-0 flex items-center",
1213
+ leadingIcon: "shrink-0 text-dimmed",
1214
+ leadingAvatar: "shrink-0",
1215
+ leadingAvatarSize: "",
1216
+ trailing: "absolute inset-y-0 end-0 flex items-center",
1217
+ trailingIcon: "shrink-0 text-dimmed"
1218
+ },
1219
+ variants: {
1220
+ fieldGroup: {
1221
+ horizontal: {
1222
+ root: "group has-focus-visible:z-[1]",
1223
+ base: "group-not-only:group-first:rounded-e-none group-not-only:group-last:rounded-s-none group-not-last:group-not-first:rounded-none"
1224
+ },
1225
+ vertical: {
1226
+ root: "group has-focus-visible:z-[1]",
1227
+ base: "group-not-only:group-first:rounded-b-none group-not-only:group-last:rounded-t-none group-not-last:group-not-first:rounded-none"
1228
+ }
1229
+ },
1230
+ size: {
1231
+ xs: {
1232
+ base: "px-2 py-1 text-sm/4 gap-1",
1233
+ leading: "ps-2",
1234
+ trailing: "pe-2",
1235
+ leadingIcon: "size-4",
1236
+ leadingAvatarSize: "3xs",
1237
+ trailingIcon: "size-4"
1238
+ },
1239
+ sm: {
1240
+ base: "px-2.5 py-1.5 text-sm/4 gap-1.5",
1241
+ leading: "ps-2.5",
1242
+ trailing: "pe-2.5",
1243
+ leadingIcon: "size-4",
1244
+ leadingAvatarSize: "3xs",
1245
+ trailingIcon: "size-4"
1246
+ },
1247
+ md: {
1248
+ base: "px-2.5 py-1.5 text-base/5 gap-1.5",
1249
+ leading: "ps-2.5",
1250
+ trailing: "pe-2.5",
1251
+ leadingIcon: "size-5",
1252
+ leadingAvatarSize: "2xs",
1253
+ trailingIcon: "size-5"
1254
+ },
1255
+ lg: {
1256
+ base: "px-3 py-2 text-base/5 gap-2",
1257
+ leading: "ps-3",
1258
+ trailing: "pe-3",
1259
+ leadingIcon: "size-5",
1260
+ leadingAvatarSize: "2xs",
1261
+ trailingIcon: "size-5"
1262
+ },
1263
+ xl: {
1264
+ base: "px-3 py-2 text-base gap-2",
1265
+ leading: "ps-3",
1266
+ trailing: "pe-3",
1267
+ leadingIcon: "size-6",
1268
+ leadingAvatarSize: "xs",
1269
+ trailingIcon: "size-6"
1270
+ }
1271
+ },
1272
+ variant: {
1273
+ outline: "text-highlighted bg-default ring ring-inset ring-accented",
1274
+ soft: "text-highlighted bg-elevated/50 hover:bg-elevated focus:bg-elevated disabled:bg-elevated/50",
1275
+ subtle: "text-highlighted bg-elevated ring ring-inset ring-accented",
1276
+ ghost: "text-highlighted bg-transparent hover:bg-elevated focus:bg-elevated disabled:bg-transparent dark:disabled:bg-transparent",
1277
+ none: "text-highlighted bg-transparent focus:outline-none"
1278
+ },
1279
+ color: {
1280
+ primary: "",
1281
+ secondary: "",
1282
+ success: "",
1283
+ info: "",
1284
+ warning: "",
1285
+ error: "",
1286
+ neutral: ""
1287
+ },
1288
+ leading: { true: "" },
1289
+ trailing: { true: "" },
1290
+ loading: { true: "" },
1291
+ highlight: { true: "" },
1292
+ fixed: { false: "" },
1293
+ type: { file: "file:me-1.5 file:font-medium file:text-muted file:outline-none" }
1294
+ },
1295
+ compoundVariants: [
1296
+ {
1297
+ color: "primary",
1298
+ variant: ["outline", "subtle"],
1299
+ class: "outline-primary/25 focus-visible:outline-3 focus-visible:ring-primary"
1300
+ },
1301
+ {
1302
+ color: "secondary",
1303
+ variant: ["outline", "subtle"],
1304
+ class: "outline-secondary/25 focus-visible:outline-3 focus-visible:ring-secondary"
1305
+ },
1306
+ {
1307
+ color: "success",
1308
+ variant: ["outline", "subtle"],
1309
+ class: "outline-success/25 focus-visible:outline-3 focus-visible:ring-success"
1310
+ },
1311
+ {
1312
+ color: "info",
1313
+ variant: ["outline", "subtle"],
1314
+ class: "outline-info/25 focus-visible:outline-3 focus-visible:ring-info"
1315
+ },
1316
+ {
1317
+ color: "warning",
1318
+ variant: ["outline", "subtle"],
1319
+ class: "outline-warning/25 focus-visible:outline-3 focus-visible:ring-warning"
1320
+ },
1321
+ {
1322
+ color: "error",
1323
+ variant: ["outline", "subtle"],
1324
+ class: "outline-error/25 focus-visible:outline-3 focus-visible:ring-error"
1325
+ },
1326
+ {
1327
+ color: "primary",
1328
+ variant: ["soft", "ghost"],
1329
+ class: "outline-primary/25 focus-visible:outline-3"
1330
+ },
1331
+ {
1332
+ color: "secondary",
1333
+ variant: ["soft", "ghost"],
1334
+ class: "outline-secondary/25 focus-visible:outline-3"
1335
+ },
1336
+ {
1337
+ color: "success",
1338
+ variant: ["soft", "ghost"],
1339
+ class: "outline-success/25 focus-visible:outline-3"
1340
+ },
1341
+ {
1342
+ color: "info",
1343
+ variant: ["soft", "ghost"],
1344
+ class: "outline-info/25 focus-visible:outline-3"
1345
+ },
1346
+ {
1347
+ color: "warning",
1348
+ variant: ["soft", "ghost"],
1349
+ class: "outline-warning/25 focus-visible:outline-3"
1350
+ },
1351
+ {
1352
+ color: "error",
1353
+ variant: ["soft", "ghost"],
1354
+ class: "outline-error/25 focus-visible:outline-3"
1355
+ },
1356
+ {
1357
+ color: "primary",
1358
+ highlight: !0,
1359
+ class: "ring ring-inset ring-primary"
1360
+ },
1361
+ {
1362
+ color: "secondary",
1363
+ highlight: !0,
1364
+ class: "ring ring-inset ring-secondary"
1365
+ },
1366
+ {
1367
+ color: "success",
1368
+ highlight: !0,
1369
+ class: "ring ring-inset ring-success"
1370
+ },
1371
+ {
1372
+ color: "info",
1373
+ highlight: !0,
1374
+ class: "ring ring-inset ring-info"
1375
+ },
1376
+ {
1377
+ color: "warning",
1378
+ highlight: !0,
1379
+ class: "ring ring-inset ring-warning"
1380
+ },
1381
+ {
1382
+ color: "error",
1383
+ highlight: !0,
1384
+ class: "ring ring-inset ring-error"
1385
+ },
1386
+ {
1387
+ color: "neutral",
1388
+ variant: ["outline", "subtle"],
1389
+ class: "outline-inverted/25 focus-visible:outline-3 focus-visible:ring-inverted"
1390
+ },
1391
+ {
1392
+ color: "neutral",
1393
+ variant: ["soft", "ghost"],
1394
+ class: "outline-inverted/25 focus-visible:outline-3"
1395
+ },
1396
+ {
1397
+ color: "neutral",
1398
+ highlight: !0,
1399
+ class: "ring ring-inset ring-inverted"
1400
+ },
1401
+ {
1402
+ leading: !0,
1403
+ size: "xs",
1404
+ class: "ps-7"
1405
+ },
1406
+ {
1407
+ leading: !0,
1408
+ size: "sm",
1409
+ class: "ps-8"
1410
+ },
1411
+ {
1412
+ leading: !0,
1413
+ size: "md",
1414
+ class: "ps-9"
1415
+ },
1416
+ {
1417
+ leading: !0,
1418
+ size: "lg",
1419
+ class: "ps-10"
1420
+ },
1421
+ {
1422
+ leading: !0,
1423
+ size: "xl",
1424
+ class: "ps-11"
1425
+ },
1426
+ {
1427
+ trailing: !0,
1428
+ size: "xs",
1429
+ class: "pe-7"
1430
+ },
1431
+ {
1432
+ trailing: !0,
1433
+ size: "sm",
1434
+ class: "pe-8"
1435
+ },
1436
+ {
1437
+ trailing: !0,
1438
+ size: "md",
1439
+ class: "pe-9"
1440
+ },
1441
+ {
1442
+ trailing: !0,
1443
+ size: "lg",
1444
+ class: "pe-10"
1445
+ },
1446
+ {
1447
+ trailing: !0,
1448
+ size: "xl",
1449
+ class: "pe-11"
1450
+ },
1451
+ {
1452
+ loading: !0,
1453
+ leading: !0,
1454
+ class: { leadingIcon: "animate-spin" }
1455
+ },
1456
+ {
1457
+ loading: !0,
1458
+ leading: !1,
1459
+ trailing: !0,
1460
+ class: { trailingIcon: "animate-spin" }
1461
+ },
1462
+ {
1463
+ fixed: !1,
1464
+ size: "xs",
1465
+ class: "md:text-xs"
1466
+ },
1467
+ {
1468
+ fixed: !1,
1469
+ size: "sm",
1470
+ class: "md:text-xs"
1471
+ },
1472
+ {
1473
+ fixed: !1,
1474
+ size: "md",
1475
+ class: "md:text-sm"
1476
+ },
1477
+ {
1478
+ fixed: !1,
1479
+ size: "lg",
1480
+ class: "md:text-sm"
1481
+ }
1482
+ ],
1483
+ defaultVariants: {
1484
+ size: "md",
1485
+ color: "primary",
1486
+ variant: "outline"
1487
+ }
1488
+ }, Mt = [
1489
+ "id",
1490
+ "type",
1491
+ "value",
1492
+ "name",
1493
+ "placeholder",
1494
+ "disabled",
1495
+ "required",
1496
+ "autocomplete"
1497
+ ], Nt = /*@__PURE__*/ Object.assign({ inheritAttrs: !1 }, {
1498
+ __name: "Input",
1499
+ props: {
1500
+ as: {
1501
+ type: null,
1502
+ required: !1
1503
+ },
1504
+ id: {
1505
+ type: String,
1506
+ required: !1
1507
+ },
1508
+ name: {
1509
+ type: String,
1510
+ required: !1
1511
+ },
1512
+ type: {
1513
+ type: null,
1514
+ required: !1,
1515
+ default: "text"
1516
+ },
1517
+ placeholder: {
1518
+ type: String,
1519
+ required: !1
1520
+ },
1521
+ color: {
1522
+ type: null,
1523
+ required: !1
1524
+ },
1525
+ variant: {
1526
+ type: null,
1527
+ required: !1
1528
+ },
1529
+ size: {
1530
+ type: null,
1531
+ required: !1
1532
+ },
1533
+ required: {
1534
+ type: Boolean,
1535
+ required: !1
1536
+ },
1537
+ autocomplete: {
1538
+ type: [String, Object],
1539
+ required: !1,
1540
+ default: "off"
1541
+ },
1542
+ autofocus: {
1543
+ type: Boolean,
1544
+ required: !1
1545
+ },
1546
+ autofocusDelay: {
1547
+ type: Number,
1548
+ required: !1,
1549
+ default: 0
1550
+ },
1551
+ disabled: {
1552
+ type: Boolean,
1553
+ required: !1
1554
+ },
1555
+ highlight: {
1556
+ type: Boolean,
1557
+ required: !1
1558
+ },
1559
+ fixed: {
1560
+ type: Boolean,
1561
+ required: !1
1562
+ },
1563
+ modelValue: {
1564
+ type: null,
1565
+ required: !1
1566
+ },
1567
+ defaultValue: {
1568
+ type: null,
1569
+ required: !1
1570
+ },
1571
+ modelModifiers: {
1572
+ type: null,
1573
+ required: !1
1574
+ },
1575
+ class: {
1576
+ type: null,
1577
+ required: !1
1578
+ },
1579
+ ui: {
1580
+ type: Object,
1581
+ required: !1
1582
+ },
1583
+ icon: {
1584
+ type: null,
1585
+ required: !1
1586
+ },
1587
+ avatar: {
1588
+ type: Object,
1589
+ required: !1
1590
+ },
1591
+ leading: {
1592
+ type: Boolean,
1593
+ required: !1
1594
+ },
1595
+ leadingIcon: {
1596
+ type: null,
1597
+ required: !1
1598
+ },
1599
+ trailing: {
1600
+ type: Boolean,
1601
+ required: !1
1602
+ },
1603
+ trailingIcon: {
1604
+ type: null,
1605
+ required: !1
1606
+ },
1607
+ loading: {
1608
+ type: Boolean,
1609
+ required: !1
1610
+ },
1611
+ loadingIcon: {
1612
+ type: null,
1613
+ required: !1
1614
+ }
1615
+ },
1616
+ emits: [
1617
+ "update:modelValue",
1618
+ "blur",
1619
+ "change"
1620
+ ],
1621
+ setup(t, { expose: n, emit: a, attrs: s }) {
1622
+ let c = t, l = a, u = ye(), d = ee("input", c), f = r(d, "modelValue", l, { defaultValue: d.defaultValue }), p = e(), { emitFormBlur: m, emitFormInput: h, emitFormChange: te, size: g, color: ne, id: re, name: ae, highlight: oe, disabled: le, emitFormFocus: _, ariaAttrs: b } = se(c, { deferInputValidation: !0 }), { orientation: S, size: C } = ce(c), { isLeading: T, isTrailing: k, leadingIconName: A, trailingIconName: j } = fe(d), M = w(() => ne.value ?? d.color), P = w(() => oe.value ?? d.highlight), ve = w(() => C.value ?? g.value ?? d.size), F = w(() => le.value ?? d.disabled), I = w(() => pe({
1623
+ extend: jt,
1624
+ ...p.ui?.input || {}
1625
+ })({
1626
+ type: d.type,
1627
+ color: M.value,
1628
+ variant: d.variant,
1629
+ size: ve.value,
1630
+ loading: d.loading,
1631
+ highlight: P.value,
1632
+ fixed: d.fixed,
1633
+ leading: T.value || !!d.avatar || !!u.leading,
1634
+ trailing: k.value || !!u.trailing,
1635
+ fieldGroup: S.value
1636
+ })), L = ge("inputRef");
1637
+ function be(e) {
1638
+ d.modelModifiers?.trim && (typeof e == "string" || e == null) && (e = e?.trim() ?? null), (d.modelModifiers?.number || d.type === "number") && (e = ue(e)), d.modelModifiers?.nullable && o(e) && (e = null), d.modelModifiers?.optional && !d.modelModifiers?.nullable && e !== null && o(e) && (e = void 0), f.value = e, h();
1639
+ }
1640
+ function z(e) {
1641
+ d.modelModifiers?.lazy || be(e.target.value);
1642
+ }
1643
+ function Se(e) {
1644
+ let t = e.target.value;
1645
+ d.modelModifiers?.lazy && be(t), d.modelModifiers?.trim && (e.target.value = t.trim()), te(), l("change", e);
1646
+ }
1647
+ function B(e) {
1648
+ m(), l("blur", e);
1649
+ }
1650
+ function V() {
1651
+ d.autofocus && L.value?.focus();
1652
+ }
1653
+ let H;
1654
+ return xe(() => {
1655
+ H = setTimeout(() => {
1656
+ V();
1657
+ }, d.autofocusDelay);
1658
+ }), me(() => clearTimeout(H)), n({ inputRef: L }), (e, t) => (N(), y(x(i), {
1659
+ as: x(d).as,
1660
+ "data-slot": s["data-slot"] ?? "root",
1661
+ class: R(I.value.root({ class: [x(d).ui?.root, x(d).class] }))
1662
+ }, {
1663
+ default: D(() => [
1664
+ _e("input", v({
1665
+ id: x(re),
1666
+ ref_key: "inputRef",
1667
+ ref: L,
1668
+ type: x(d).type,
1669
+ value: x(f),
1670
+ name: x(ae),
1671
+ placeholder: x(d).placeholder,
1672
+ class: I.value.base({ class: x(d).ui?.base }),
1673
+ disabled: F.value,
1674
+ required: x(d).required,
1675
+ autocomplete: x(d).autocomplete
1676
+ }, {
1677
+ ...s,
1678
+ ...x(b)
1679
+ }, {
1680
+ "data-slot": "base",
1681
+ onInput: z,
1682
+ onBlur: B,
1683
+ onChange: Se,
1684
+ onFocus: t[0] ||= (...e) => x(_) && x(_)(...e)
1685
+ }), null, 16, Mt),
1686
+ O(e.$slots, "default", { ui: I.value }),
1687
+ x(T) || x(d).avatar || u.leading ? (N(), he("span", {
1688
+ key: 0,
1689
+ "data-slot": "leading",
1690
+ class: R(I.value.leading({ class: x(d).ui?.leading }))
1691
+ }, [O(e.$slots, "leading", { ui: I.value }, () => [x(T) && x(A) ? (N(), y(ie, {
1692
+ key: 0,
1693
+ name: x(A),
1694
+ "data-slot": "leadingIcon",
1695
+ class: R(I.value.leadingIcon({ class: x(d).ui?.leadingIcon }))
1696
+ }, null, 8, ["name", "class"])) : x(d).avatar ? (N(), y(de, v({
1697
+ key: 1,
1698
+ size: x(d).ui?.leadingAvatarSize || I.value.leadingAvatarSize()
1699
+ }, x(d).avatar, {
1700
+ "data-slot": "leadingAvatar",
1701
+ class: I.value.leadingAvatar({ class: x(d).ui?.leadingAvatar })
1702
+ }), null, 16, ["size", "class"])) : E("", !0)])], 2)) : E("", !0),
1703
+ x(k) || u.trailing ? (N(), he("span", {
1704
+ key: 1,
1705
+ "data-slot": "trailing",
1706
+ class: R(I.value.trailing({ class: x(d).ui?.trailing }))
1707
+ }, [O(e.$slots, "trailing", { ui: I.value }, () => [x(j) ? (N(), y(ie, {
1708
+ key: 0,
1709
+ name: x(j),
1710
+ "data-slot": "trailingIcon",
1711
+ class: R(I.value.trailingIcon({ class: x(d).ui?.trailingIcon }))
1712
+ }, null, 8, ["name", "class"])) : E("", !0)])], 2)) : E("", !0)
1713
+ ]),
1714
+ _: 3
1715
+ }, 8, [
1716
+ "as",
1717
+ "data-slot",
1718
+ "class"
1719
+ ]));
1720
+ }
1721
+ });
1722
+ //#endregion
1723
+ //#region ../../node_modules/.pnpm/@nuxt+ui@4.11.3_cb98d253b9bf6e94cc4ec1fe3cbbcc2e/node_modules/@nuxt/ui/dist/runtime/utils/overlay.js
1724
+ function Pt(e, t = {}) {
1725
+ let n = e.detail.originalEvent, r = n.target;
1726
+ if (!r?.isConnected) {
1727
+ e.preventDefault();
1728
+ return;
1729
+ }
1730
+ t.scrollable && (n.offsetX > r.clientWidth || n.offsetY > r.clientHeight) && e.preventDefault();
1731
+ }
1732
+ //#endregion
1733
+ export { Re as A, rt as C, Be as D, Ke as E, U as F, Ce as I, H as L, Pe as M, Oe as N, X as O, Te as P, V as R, gt as S, $e as T, mt as _, Ot as a, ft as b, wt as c, ct as d, it as f, lt as g, ut as h, At as i, Ie as j, Y as k, St as l, at as m, Nt as n, Dt as o, st as p, kt as r, Tt as s, Pt as t, xt as u, pt as v, Ze as w, _t as x, dt as y };