@phtngyn/cms 0.2.0-beta.8 → 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 -404
  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 +1040 -152
  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 +8793 -39395
  354. package/studio/host.js.br +0 -0
  355. package/studio/host.js.gz +0 -0
  356. package/CHANGELOG.md +0 -14
  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-CMweD9bn.js +0 -1191
  361. package/src/Configuration-CMweD9bn.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-tYtwbBjr.js +0 -978
  372. package/src/DocumentEngine-tYtwbBjr.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-Be3vshPJ.js +0 -20
  383. package/src/HttpPaths-Be3vshPJ.js.map +0 -1
  384. package/src/I18n-wxswIRyY.d.ts +0 -30
  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-BXfjaZOu.js +0 -2756
  391. package/src/S3MediaObjects-BXfjaZOu.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-3I_pozUl.js +0 -535
  399. package/src/dev-lifecycle-3I_pozUl.js.map +0 -1
  400. package/src/installation-DxqSSVbH.js +0 -9105
  401. package/src/installation-DxqSSVbH.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 -104
  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 -58
  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-C4_JBo1w.js +0 -335
  521. package/studio/SelectMenu-wXqxymUw.js +0 -34045
  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,2145 @@
1
+ import { $ as e, A as t, C as n, Dt as r, E as i, F as a, G as o, H as s, Lt as c, N as l, O as u, Q as d, U as f, at as p, b as m, c as h, d as g, h as _, k as v, m as y, nn as b, o as x, p as ee, q as te, s as ne, u as re, wt as S, y as ie } from "./Button-BT3ztSPx.js";
2
+ import { I as C, J as ae, P as w, X as oe, Y as se, q as ce } from "./studioContext-I8HozGU1.js";
3
+ import { b as le } from "./useApi-CUWMwLLw-B3Q3g2nf.js";
4
+ import { $r as ue, $t as T, A as E, B as D, Ci as O, Cr as k, E as A, K as j, M, N, Nn as de, Or as P, Pn as F, V as I, _i as fe, aa as pe, en as L, fa as R, gi as z, gn as B, hr as me, ii as V, k as he, m as ge, mn as _e, mr as ve, o as H, oa as ye, pt as be, ra as U, un as W, wr as xe, zn as Se } from "./runtime-core.esm-bundler-DKFA9Rep.js";
5
+ import { C as Ce, E as we, I as Te, L as Ee, M as De, N as Oe, P as ke, R as Ae, _ as je, a as G, i as Me, j as Ne, k as Pe, o as K } from "./overlay-DnqFLZTc.js";
6
+ import { t as q } from "./useFormControl-CL7sSCUo.js";
7
+ //#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/clamp.js
8
+ function Fe(e, t = -Infinity, n = Infinity) {
9
+ return Math.min(n, Math.max(t, e));
10
+ }
11
+ function J(e, t) {
12
+ let n = e, r = t.toString(), i = r.indexOf("."), a = i >= 0 ? r.length - i : 0;
13
+ if (a > 0) {
14
+ let e = 10 ** a;
15
+ n = Math.round(n * e) / e;
16
+ }
17
+ return n;
18
+ }
19
+ function Ie(e, t, n, r) {
20
+ t = Number(t), n = Number(n);
21
+ let i = (e - (Number.isNaN(t) ? 0 : t)) % r, a = J(Math.abs(i) * 2 >= r ? e + Math.sign(i) * (r - Math.abs(i)) : e - i, r);
22
+ return Number.isNaN(t) ? !Number.isNaN(n) && a > n && (a = Math.floor(J(n / r, r)) * r) : a < t ? a = t : !Number.isNaN(n) && a > n && (a = t + Math.floor(J((n - t) / r, r)) * r), a = J(a, r), a;
23
+ }
24
+ //#endregion
25
+ //#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/useNonce.js
26
+ function Le(e) {
27
+ let t = l({ nonce: V() });
28
+ return A(() => e?.value || t.nonce?.value);
29
+ }
30
+ //#endregion
31
+ //#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/Select/utils.js
32
+ var Y = [
33
+ " ",
34
+ "Enter",
35
+ "ArrowUp",
36
+ "ArrowDown"
37
+ ], Re = [" ", "Enter"];
38
+ function X(e, t, n) {
39
+ return e === void 0 ? !1 : Array.isArray(e) ? e.some((e) => Z(e, t, n)) : Z(e, t, n);
40
+ }
41
+ function Z(e, t, n) {
42
+ return e === void 0 || t === void 0 ? !1 : typeof e == "string" ? e === t : typeof n == "function" ? n(e, t) : typeof n == "string" ? e?.[n] === t?.[n] : d(e, t);
43
+ }
44
+ function ze(e) {
45
+ return e == null || e === "" || Array.isArray(e) && e.length === 0;
46
+ }
47
+ //#endregion
48
+ //#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/Select/SelectRoot.js
49
+ var Be = ["value"], [Q, Ve] = /*#__PURE__*/ a("SelectRoot"), He = /* @__PURE__ */ j({
50
+ inheritAttrs: !1,
51
+ __name: "SelectRoot",
52
+ props: {
53
+ open: {
54
+ type: Boolean,
55
+ required: !1,
56
+ default: void 0
57
+ },
58
+ defaultOpen: {
59
+ type: Boolean,
60
+ required: !1
61
+ },
62
+ defaultValue: {
63
+ type: null,
64
+ required: !1
65
+ },
66
+ modelValue: {
67
+ type: null,
68
+ required: !1,
69
+ default: void 0
70
+ },
71
+ nullableValue: {
72
+ type: String,
73
+ required: !1,
74
+ default: ""
75
+ },
76
+ by: {
77
+ type: [String, Function],
78
+ required: !1
79
+ },
80
+ dir: {
81
+ type: String,
82
+ required: !1
83
+ },
84
+ multiple: {
85
+ type: Boolean,
86
+ required: !1
87
+ },
88
+ autocomplete: {
89
+ type: String,
90
+ required: !1
91
+ },
92
+ disabled: {
93
+ type: Boolean,
94
+ required: !1
95
+ },
96
+ name: {
97
+ type: String,
98
+ required: !1
99
+ },
100
+ required: {
101
+ type: Boolean,
102
+ required: !1
103
+ }
104
+ },
105
+ emits: ["update:modelValue", "update:open"],
106
+ setup(e, { emit: t }) {
107
+ let n = e, i = t, { required: a, disabled: o, multiple: s, dir: c } = fe(n), l = r(n, "modelValue", i, {
108
+ defaultValue: n.defaultValue ?? (s.value ? [] : void 0),
109
+ passive: n.modelValue === void 0,
110
+ deep: !0
111
+ }), u = r(n, "open", i, {
112
+ defaultValue: n.defaultOpen,
113
+ passive: n.open === void 0
114
+ }), d = V(), f = V(), p = V({
115
+ x: 0,
116
+ y: 0
117
+ }), m = A(() => s.value && Array.isArray(l.value) ? l.value?.length === 0 : Te(l.value));
118
+ K({ isProvider: !0 });
119
+ let h = Oe(c), g = q(d), _ = V(/* @__PURE__ */ new Set()), v = A(() => Array.from(_.value).map((e) => e.value).join(";"));
120
+ function y(e) {
121
+ if (s.value) {
122
+ let t = Array.isArray(l.value) ? [...l.value] : [], r = t.findIndex((t) => Z(t, e, n.by));
123
+ r === -1 ? t.push(e) : t.splice(r, 1), l.value = [...t];
124
+ } else l.value = e;
125
+ }
126
+ function b(e) {
127
+ return Array.from(_.value).find((t) => X(e, t.value, n.by));
128
+ }
129
+ return Ve({
130
+ triggerElement: d,
131
+ onTriggerChange: (e) => {
132
+ d.value = e;
133
+ },
134
+ valueElement: f,
135
+ onValueElementChange: (e) => {
136
+ f.value = e;
137
+ },
138
+ contentId: "",
139
+ modelValue: l,
140
+ onValueChange: y,
141
+ by: n.by,
142
+ open: u,
143
+ multiple: s,
144
+ required: a,
145
+ onOpenChange: (e) => {
146
+ u.value = e;
147
+ },
148
+ dir: h,
149
+ triggerPointerDownPosRef: p,
150
+ disabled: o,
151
+ isEmptyModelValue: m,
152
+ optionsSet: _,
153
+ onOptionAdd: (e) => {
154
+ let t = b(e.value);
155
+ t && _.value.delete(t), _.value.add(e);
156
+ },
157
+ onOptionRemove: (e) => {
158
+ let t = b(e.value);
159
+ t && _.value.delete(t);
160
+ }
161
+ }), (e, t) => (B(), E(O(ae), null, {
162
+ default: P(() => [F(e.$slots, "default", {
163
+ modelValue: O(l),
164
+ open: O(u)
165
+ }), O(g) && e.name ? (B(), E(Ue, {
166
+ key: v.value,
167
+ "aria-hidden": "true",
168
+ tabindex: "-1",
169
+ multiple: O(s),
170
+ required: O(a),
171
+ name: e.name,
172
+ autocomplete: e.autocomplete,
173
+ disabled: O(o),
174
+ value: O(l)
175
+ }, {
176
+ default: P(() => [O(Te)(O(l)) ? (B(), N("option", {
177
+ key: 0,
178
+ value: e.nullableValue
179
+ }, null, 8, Be)) : M("v-if", !0), (B(!0), N(H, null, de(Array.from(_.value), (e) => (B(), N("option", T({ key: e.value ?? "" }, { ref_for: !0 }, e), null, 16))), 128))]),
180
+ _: 1
181
+ }, 8, [
182
+ "multiple",
183
+ "required",
184
+ "name",
185
+ "autocomplete",
186
+ "disabled",
187
+ "value"
188
+ ])) : M("v-if", !0)]),
189
+ _: 3
190
+ }));
191
+ }
192
+ }), Ue = /* @__PURE__ */ j({
193
+ __name: "BubbleSelect",
194
+ props: {
195
+ autocomplete: {
196
+ type: String,
197
+ required: !1
198
+ },
199
+ autofocus: {
200
+ type: Boolean,
201
+ required: !1
202
+ },
203
+ disabled: {
204
+ type: Boolean,
205
+ required: !1
206
+ },
207
+ form: {
208
+ type: String,
209
+ required: !1
210
+ },
211
+ multiple: {
212
+ type: Boolean,
213
+ required: !1
214
+ },
215
+ name: {
216
+ type: String,
217
+ required: !1
218
+ },
219
+ required: {
220
+ type: Boolean,
221
+ required: !1
222
+ },
223
+ size: {
224
+ type: Number,
225
+ required: !1
226
+ },
227
+ value: {
228
+ type: null,
229
+ required: !1
230
+ }
231
+ },
232
+ setup(e) {
233
+ let t = e, n = V(), r = Q();
234
+ k(() => t.value, (e, t) => {
235
+ let r = window.HTMLSelectElement.prototype, i = Object.getOwnPropertyDescriptor(r, "value").set;
236
+ if (e !== t && i && n.value) {
237
+ let t = new Event("change", { bubbles: !0 });
238
+ i.call(n.value, e), n.value.dispatchEvent(t);
239
+ }
240
+ });
241
+ function i(e) {
242
+ r.onValueChange(e.target.value);
243
+ }
244
+ return (e, r) => (B(), E(O(G), { "as-child": "" }, {
245
+ default: P(() => [he("select", T({
246
+ ref_key: "selectElement",
247
+ ref: n
248
+ }, t, { onInput: i }), [F(e.$slots, "default")], 16)]),
249
+ _: 3
250
+ }));
251
+ }
252
+ }), We = /* @__PURE__ */ j({
253
+ __name: "SelectPopperPosition",
254
+ props: {
255
+ memoDependencies: {
256
+ type: Array,
257
+ required: !1
258
+ },
259
+ side: {
260
+ type: null,
261
+ required: !1
262
+ },
263
+ sideOffset: {
264
+ type: Number,
265
+ required: !1
266
+ },
267
+ sideFlip: {
268
+ type: Boolean,
269
+ required: !1
270
+ },
271
+ align: {
272
+ type: null,
273
+ required: !1,
274
+ default: "start"
275
+ },
276
+ alignOffset: {
277
+ type: Number,
278
+ required: !1
279
+ },
280
+ alignFlip: {
281
+ type: Boolean,
282
+ required: !1
283
+ },
284
+ avoidCollisions: {
285
+ type: Boolean,
286
+ required: !1
287
+ },
288
+ collisionBoundary: {
289
+ type: null,
290
+ required: !1
291
+ },
292
+ collisionPadding: {
293
+ type: [Number, Object],
294
+ required: !1,
295
+ default: 10
296
+ },
297
+ arrowPadding: {
298
+ type: Number,
299
+ required: !1
300
+ },
301
+ hideShiftedArrow: {
302
+ type: Boolean,
303
+ required: !1
304
+ },
305
+ sticky: {
306
+ type: String,
307
+ required: !1
308
+ },
309
+ hideWhenDetached: {
310
+ type: Boolean,
311
+ required: !1
312
+ },
313
+ positionStrategy: {
314
+ type: String,
315
+ required: !1
316
+ },
317
+ updatePositionStrategy: {
318
+ type: String,
319
+ required: !1
320
+ },
321
+ disableUpdateOnLayoutShift: {
322
+ type: Boolean,
323
+ required: !1
324
+ },
325
+ prioritizePosition: {
326
+ type: Boolean,
327
+ required: !1
328
+ },
329
+ reference: {
330
+ type: null,
331
+ required: !1
332
+ },
333
+ dir: {
334
+ type: String,
335
+ required: !1
336
+ },
337
+ asChild: {
338
+ type: Boolean,
339
+ required: !1
340
+ },
341
+ as: {
342
+ type: null,
343
+ required: !1
344
+ }
345
+ },
346
+ setup(e) {
347
+ let t = v(e);
348
+ return (e, n) => (B(), E(O(C), T(O(t), { style: {
349
+ boxSizing: "border-box",
350
+ "--reka-select-content-transform-origin": "var(--reka-popper-transform-origin)",
351
+ "--reka-select-content-available-width": "var(--reka-popper-available-width)",
352
+ "--reka-select-content-available-height": "var(--reka-popper-available-height)",
353
+ "--reka-select-trigger-width": "var(--reka-popper-anchor-width)",
354
+ "--reka-select-trigger-height": "var(--reka-popper-anchor-height)"
355
+ } }), {
356
+ default: P(() => [F(e.$slots, "default")]),
357
+ _: 3
358
+ }, 16));
359
+ }
360
+ }), Ge = {
361
+ onViewportChange: () => {},
362
+ itemTextRefCallback: () => {},
363
+ itemRefCallback: () => {}
364
+ }, [$, Ke] = /*#__PURE__*/ a("SelectContent"), qe = /* @__PURE__ */ j({
365
+ __name: "SelectContentImpl",
366
+ props: {
367
+ position: {
368
+ type: String,
369
+ required: !1,
370
+ default: "item-aligned"
371
+ },
372
+ bodyLock: {
373
+ type: Boolean,
374
+ required: !1,
375
+ default: !0
376
+ },
377
+ memoDependencies: {
378
+ type: Array,
379
+ required: !1
380
+ },
381
+ side: {
382
+ type: null,
383
+ required: !1
384
+ },
385
+ sideOffset: {
386
+ type: Number,
387
+ required: !1
388
+ },
389
+ sideFlip: {
390
+ type: Boolean,
391
+ required: !1
392
+ },
393
+ align: {
394
+ type: null,
395
+ required: !1,
396
+ default: "start"
397
+ },
398
+ alignOffset: {
399
+ type: Number,
400
+ required: !1
401
+ },
402
+ alignFlip: {
403
+ type: Boolean,
404
+ required: !1
405
+ },
406
+ avoidCollisions: {
407
+ type: Boolean,
408
+ required: !1
409
+ },
410
+ collisionBoundary: {
411
+ type: null,
412
+ required: !1
413
+ },
414
+ collisionPadding: {
415
+ type: [Number, Object],
416
+ required: !1
417
+ },
418
+ arrowPadding: {
419
+ type: Number,
420
+ required: !1
421
+ },
422
+ hideShiftedArrow: {
423
+ type: Boolean,
424
+ required: !1
425
+ },
426
+ sticky: {
427
+ type: String,
428
+ required: !1
429
+ },
430
+ hideWhenDetached: {
431
+ type: Boolean,
432
+ required: !1
433
+ },
434
+ positionStrategy: {
435
+ type: String,
436
+ required: !1
437
+ },
438
+ updatePositionStrategy: {
439
+ type: String,
440
+ required: !1
441
+ },
442
+ disableUpdateOnLayoutShift: {
443
+ type: Boolean,
444
+ required: !1
445
+ },
446
+ prioritizePosition: {
447
+ type: Boolean,
448
+ required: !1
449
+ },
450
+ reference: {
451
+ type: null,
452
+ required: !1
453
+ },
454
+ dir: {
455
+ type: String,
456
+ required: !1
457
+ },
458
+ asChild: {
459
+ type: Boolean,
460
+ required: !1
461
+ },
462
+ as: {
463
+ type: null,
464
+ required: !1
465
+ },
466
+ disableOutsidePointerEvents: {
467
+ type: Boolean,
468
+ required: !1,
469
+ default: !0
470
+ }
471
+ },
472
+ emits: [
473
+ "closeAutoFocus",
474
+ "escapeKeyDown",
475
+ "pointerDownOutside"
476
+ ],
477
+ setup(e, { emit: t }) {
478
+ let n = e, r = t, i = Q();
479
+ oe(), ke(n.bodyLock);
480
+ let { CollectionSlot: a, getItems: o } = K(), s = V();
481
+ De(s);
482
+ let { search: c, handleTypeaheadSearch: l } = Ne(), u = V(), d = V(), f = V(), m = V(!1), h = V(!1), g = V(!1);
483
+ function _() {
484
+ d.value && s.value && je([d.value, s.value]);
485
+ }
486
+ k(m, () => {
487
+ _();
488
+ });
489
+ let { onOpenChange: y, triggerPointerDownPosRef: x } = i;
490
+ xe((e) => {
491
+ if (!s.value) return;
492
+ let t = {
493
+ x: 0,
494
+ y: 0
495
+ }, n = (e) => {
496
+ t = {
497
+ x: Math.abs(Math.round(e.pageX) - (x.value?.x ?? 0)),
498
+ y: Math.abs(Math.round(e.pageY) - (x.value?.y ?? 0))
499
+ };
500
+ }, r = (e) => {
501
+ e.pointerType !== "touch" && (t.x <= 10 && t.y <= 10 ? e.preventDefault() : s.value?.contains(e.target) || y(!1), document.removeEventListener("pointermove", n), x.value = null);
502
+ };
503
+ x.value !== null && (document.addEventListener("pointermove", n), document.addEventListener("pointerup", r, {
504
+ capture: !0,
505
+ once: !0
506
+ })), e(() => {
507
+ document.removeEventListener("pointermove", n), document.removeEventListener("pointerup", r, { capture: !0 });
508
+ });
509
+ });
510
+ function ee(e) {
511
+ let t = e.ctrlKey || e.altKey || e.metaKey;
512
+ if (e.key === "Tab" && e.preventDefault(), e.code === "Space") {
513
+ if (c.value === "") return;
514
+ e.preventDefault();
515
+ }
516
+ if (!t && e.key.length === 1 && l(e.key, o()), [
517
+ "ArrowUp",
518
+ "ArrowDown",
519
+ "Home",
520
+ "End"
521
+ ].includes(e.key)) {
522
+ let t = [...o().map((e) => e.ref)];
523
+ if (["ArrowUp", "End"].includes(e.key) && (t = t.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(e.key)) {
524
+ let n = e.target, r = t.indexOf(n);
525
+ t = t.slice(r + 1);
526
+ }
527
+ setTimeout(() => je(t)), e.preventDefault();
528
+ }
529
+ }
530
+ let te = A(() => n.position === "popper" ? n : {}), ne = v(te.value);
531
+ return Ke({
532
+ content: s,
533
+ viewport: u,
534
+ onViewportChange: (e) => {
535
+ u.value = e;
536
+ },
537
+ itemRefCallback: (e, t, n) => {
538
+ let r = !h.value && !n, a = X(i.modelValue.value, t, i.by);
539
+ if (i.multiple.value) {
540
+ if (g.value) return;
541
+ (a || r) && (d.value = e, a && (g.value = !0));
542
+ } else (a || r) && (d.value = e);
543
+ r && (h.value = !0);
544
+ },
545
+ selectedItem: d,
546
+ selectedItemText: f,
547
+ onItemLeave: () => {
548
+ s.value?.focus();
549
+ },
550
+ itemTextRefCallback: (e, t, n) => {
551
+ let r = !h.value && !n;
552
+ (X(i.modelValue.value, t, i.by) || r) && (f.value = e);
553
+ },
554
+ focusSelectedItem: _,
555
+ position: n.position,
556
+ isPositioned: m,
557
+ searchRef: c
558
+ }), (e, t) => (B(), E(O(a), null, {
559
+ default: P(() => [I(O(Ce), {
560
+ "as-child": "",
561
+ onMountAutoFocus: t[6] ||= b(() => {}, ["prevent"]),
562
+ onUnmountAutoFocus: t[7] ||= (e) => {
563
+ r("closeAutoFocus", e), !e.defaultPrevented && (O(i).triggerElement.value?.focus({ preventScroll: !0 }), e.preventDefault());
564
+ }
565
+ }, {
566
+ default: P(() => [I(O(we), {
567
+ "as-child": "",
568
+ "disable-outside-pointer-events": e.disableOutsidePointerEvents,
569
+ onFocusOutside: t[2] ||= b(() => {}, ["prevent"]),
570
+ onDismiss: t[3] ||= (e) => O(i).onOpenChange(!1),
571
+ onEscapeKeyDown: t[4] ||= (e) => r("escapeKeyDown", e),
572
+ onPointerDownOutside: t[5] ||= (e) => r("pointerDownOutside", e)
573
+ }, {
574
+ default: P(() => [(B(), E(Se(e.position === "popper" ? We : Xe), T({
575
+ ...e.$attrs,
576
+ ...O(ne)
577
+ }, {
578
+ id: O(i).contentId,
579
+ ref: (e) => {
580
+ if (!e) return;
581
+ let t = O(p)(e);
582
+ t?.hasAttribute("data-reka-popper-content-wrapper") ? s.value = t.firstElementChild : s.value = t;
583
+ },
584
+ role: "listbox",
585
+ "data-state": O(i).open.value ? "open" : "closed",
586
+ dir: O(i).dir.value,
587
+ style: {
588
+ display: "flex",
589
+ flexDirection: "column",
590
+ outline: "none"
591
+ },
592
+ onContextmenu: t[0] ||= b(() => {}, ["prevent"]),
593
+ onPlaced: t[1] ||= (e) => m.value = !0,
594
+ onKeydown: ee
595
+ }), {
596
+ default: P(() => [F(e.$slots, "default")]),
597
+ _: 3
598
+ }, 16, [
599
+ "id",
600
+ "data-state",
601
+ "dir",
602
+ "onKeydown"
603
+ ]))]),
604
+ _: 3
605
+ }, 8, ["disable-outside-pointer-events"])]),
606
+ _: 3
607
+ })]),
608
+ _: 3
609
+ }));
610
+ }
611
+ }), [Je, Ye] = /*#__PURE__*/ a("SelectItemAlignedPosition"), Xe = /* @__PURE__ */ j({
612
+ inheritAttrs: !1,
613
+ __name: "SelectItemAlignedPosition",
614
+ props: {
615
+ asChild: {
616
+ type: Boolean,
617
+ required: !1
618
+ },
619
+ as: {
620
+ type: null,
621
+ required: !1
622
+ }
623
+ },
624
+ emits: ["placed"],
625
+ setup(e, { emit: n }) {
626
+ let r = e, a = n, { getItems: o } = K(), s = Q(), c = $(), l = V(!1), u = V(!0), d = V(), { forwardRef: f, currentElement: p } = t(), { viewport: m, selectedItem: h, selectedItemText: g, focusSelectedItem: _ } = c;
627
+ function v() {
628
+ if (s.triggerElement.value && s.valueElement.value && d.value && p.value && m?.value && h?.value && g?.value) {
629
+ let e = s.triggerElement.value.getBoundingClientRect(), t = p.value.getBoundingClientRect(), n = s.valueElement.value.getBoundingClientRect(), r = g.value.getBoundingClientRect();
630
+ if (s.dir.value !== "rtl") {
631
+ let i = r.left - t.left, a = n.left - i, o = e.left - a, s = e.width + o, c = Math.max(s, t.width), l = window.innerWidth - 10, u = Fe(a, 10, Math.max(10, l - c));
632
+ d.value.style.minWidth = `${s}px`, d.value.style.left = `${u}px`;
633
+ } else {
634
+ let i = t.right - r.right, a = window.innerWidth - n.right - i, o = window.innerWidth - e.right - a, s = e.width + o, c = Math.max(s, t.width), l = window.innerWidth - 10, u = Fe(a, 10, Math.max(10, l - c));
635
+ d.value.style.minWidth = `${s}px`, d.value.style.right = `${u}px`;
636
+ }
637
+ let i = o().map((e) => e.ref), c = window.innerHeight - 20, u = m.value.scrollHeight, f = window.getComputedStyle(p.value), _ = Number.parseInt(f.borderTopWidth, 10), v = Number.parseInt(f.paddingTop, 10), y = Number.parseInt(f.borderBottomWidth, 10), b = Number.parseInt(f.paddingBottom, 10), x = _ + v + u + b + y, ee = Math.min(h.value.offsetHeight * 5, x), te = window.getComputedStyle(m.value), ne = Number.parseInt(te.paddingTop, 10), re = Number.parseInt(te.paddingBottom, 10), S = e.top + e.height / 2 - 10, ie = c - S, C = h.value.offsetHeight / 2, ae = h.value.offsetTop + C, w = _ + v + ae, oe = x - w;
638
+ if (w <= S) {
639
+ let e = h.value === i.at(-1);
640
+ d.value.style.bottom = "0px";
641
+ let t = p.value.clientHeight - m.value.offsetTop - m.value.offsetHeight, n = w + Math.max(ie, C + (e ? re : 0) + t + y);
642
+ d.value.style.height = `${n}px`;
643
+ } else {
644
+ let e = h.value === i[0];
645
+ d.value.style.top = "0px";
646
+ let t = Math.max(S, _ + m.value.offsetTop + (e ? ne : 0) + C) + oe;
647
+ d.value.style.height = `${t}px`, m.value.scrollTop = w - S + m.value.offsetTop;
648
+ }
649
+ d.value.style.margin = "10px 0", d.value.style.minHeight = `${ee}px`, d.value.style.maxHeight = `${c}px`, a("placed"), requestAnimationFrame(() => l.value = !0);
650
+ }
651
+ }
652
+ let y = V("");
653
+ W(async () => {
654
+ await L(), v(), p.value && (y.value = window.getComputedStyle(p.value).zIndex);
655
+ });
656
+ function b(e) {
657
+ e && u.value === !0 && (v(), _?.(), u.value = !1);
658
+ }
659
+ return S(s.triggerElement, () => {
660
+ v();
661
+ }), Ye({
662
+ contentWrapper: d,
663
+ shouldExpandOnScrollRef: l,
664
+ onScrollButtonChange: b
665
+ }), (e, t) => (B(), N("div", {
666
+ ref_key: "contentWrapperElement",
667
+ ref: d,
668
+ style: ye({
669
+ display: "flex",
670
+ flexDirection: "column",
671
+ position: "fixed",
672
+ zIndex: y.value
673
+ })
674
+ }, [I(O(i), T({
675
+ ref: O(f),
676
+ style: {
677
+ boxSizing: "border-box",
678
+ maxHeight: "100%"
679
+ }
680
+ }, {
681
+ ...e.$attrs,
682
+ ...r
683
+ }), {
684
+ default: P(() => [F(e.$slots, "default")]),
685
+ _: 3
686
+ }, 16)], 4));
687
+ }
688
+ }), Ze = /* @__PURE__ */ j({
689
+ __name: "SelectArrow",
690
+ props: {
691
+ width: {
692
+ type: Number,
693
+ required: !1,
694
+ default: 10
695
+ },
696
+ height: {
697
+ type: Number,
698
+ required: !1,
699
+ default: 5
700
+ },
701
+ rounded: {
702
+ type: Boolean,
703
+ required: !1
704
+ },
705
+ asChild: {
706
+ type: Boolean,
707
+ required: !1
708
+ },
709
+ as: {
710
+ type: null,
711
+ required: !1,
712
+ default: "svg"
713
+ }
714
+ },
715
+ setup(e) {
716
+ let t = e, n = $(Ge);
717
+ return (e, r) => O(n).position === "popper" ? (B(), E(O(w), pe(T({ key: 0 }, t)), {
718
+ default: P(() => [F(e.$slots, "default")]),
719
+ _: 3
720
+ }, 16)) : M("v-if", !0);
721
+ }
722
+ }), Qe = /* @__PURE__ */ j({
723
+ inheritAttrs: !1,
724
+ __name: "SelectProvider",
725
+ props: { context: {
726
+ type: Object,
727
+ required: !0
728
+ } },
729
+ setup(e) {
730
+ return Ve(e.context), Ke(Ge), (e, t) => F(e.$slots, "default");
731
+ }
732
+ }), $e = { key: 1 }, et = /* @__PURE__ */ j({
733
+ inheritAttrs: !1,
734
+ __name: "SelectContent",
735
+ props: {
736
+ forceMount: {
737
+ type: Boolean,
738
+ required: !1
739
+ },
740
+ position: {
741
+ type: String,
742
+ required: !1
743
+ },
744
+ bodyLock: {
745
+ type: Boolean,
746
+ required: !1
747
+ },
748
+ memoDependencies: {
749
+ type: Array,
750
+ required: !1
751
+ },
752
+ side: {
753
+ type: null,
754
+ required: !1
755
+ },
756
+ sideOffset: {
757
+ type: Number,
758
+ required: !1
759
+ },
760
+ sideFlip: {
761
+ type: Boolean,
762
+ required: !1
763
+ },
764
+ align: {
765
+ type: null,
766
+ required: !1
767
+ },
768
+ alignOffset: {
769
+ type: Number,
770
+ required: !1
771
+ },
772
+ alignFlip: {
773
+ type: Boolean,
774
+ required: !1
775
+ },
776
+ avoidCollisions: {
777
+ type: Boolean,
778
+ required: !1
779
+ },
780
+ collisionBoundary: {
781
+ type: null,
782
+ required: !1
783
+ },
784
+ collisionPadding: {
785
+ type: [Number, Object],
786
+ required: !1
787
+ },
788
+ arrowPadding: {
789
+ type: Number,
790
+ required: !1
791
+ },
792
+ hideShiftedArrow: {
793
+ type: Boolean,
794
+ required: !1
795
+ },
796
+ sticky: {
797
+ type: String,
798
+ required: !1
799
+ },
800
+ hideWhenDetached: {
801
+ type: Boolean,
802
+ required: !1
803
+ },
804
+ positionStrategy: {
805
+ type: String,
806
+ required: !1
807
+ },
808
+ updatePositionStrategy: {
809
+ type: String,
810
+ required: !1
811
+ },
812
+ disableUpdateOnLayoutShift: {
813
+ type: Boolean,
814
+ required: !1
815
+ },
816
+ prioritizePosition: {
817
+ type: Boolean,
818
+ required: !1
819
+ },
820
+ reference: {
821
+ type: null,
822
+ required: !1
823
+ },
824
+ dir: {
825
+ type: String,
826
+ required: !1
827
+ },
828
+ asChild: {
829
+ type: Boolean,
830
+ required: !1
831
+ },
832
+ as: {
833
+ type: null,
834
+ required: !1
835
+ },
836
+ disableOutsidePointerEvents: {
837
+ type: Boolean,
838
+ required: !1
839
+ }
840
+ },
841
+ emits: [
842
+ "closeAutoFocus",
843
+ "escapeKeyDown",
844
+ "pointerDownOutside"
845
+ ],
846
+ setup(e, { emit: t }) {
847
+ let n = e, r = se(n, t), i = Q(), a = V();
848
+ W(() => {
849
+ a.value = new DocumentFragment();
850
+ });
851
+ let o = V(), s = A(() => n.forceMount || i.open.value), c = V(s.value), l;
852
+ function u() {
853
+ l &&= (clearTimeout(l), void 0);
854
+ }
855
+ return k(s, (e, t, n) => {
856
+ u(), l = setTimeout(() => {
857
+ c.value = s.value, l = void 0;
858
+ }), n(u);
859
+ }), _e(u), (e, t) => s.value || c.value || o.value?.present ? (B(), E(O(Pe), {
860
+ key: 0,
861
+ ref_key: "presenceRef",
862
+ ref: o,
863
+ present: s.value
864
+ }, {
865
+ default: P(() => [I(qe, pe(be({
866
+ ...O(r),
867
+ ...e.$attrs
868
+ })), {
869
+ default: P(() => [F(e.$slots, "default")]),
870
+ _: 3
871
+ }, 16)]),
872
+ _: 3
873
+ }, 8, ["present"])) : a.value ? (B(), N("div", $e, [(B(), E(ge, { to: a.value }, [I(Qe, { context: O(i) }, {
874
+ default: P(() => [F(e.$slots, "default")]),
875
+ _: 3
876
+ }, 8, ["context"])], 8, ["to"]))])) : M("v-if", !0);
877
+ }
878
+ }), [tt, nt] = /*#__PURE__*/ a("SelectGroup"), rt = /* @__PURE__ */ j({
879
+ __name: "SelectGroup",
880
+ props: {
881
+ asChild: {
882
+ type: Boolean,
883
+ required: !1
884
+ },
885
+ as: {
886
+ type: null,
887
+ required: !1
888
+ }
889
+ },
890
+ setup(e) {
891
+ let t = e, n = u(void 0, "reka-select-group");
892
+ return nt({ id: n }), (e, r) => (B(), E(O(i), T({ role: "group" }, t, { "aria-labelledby": O(n) }), {
893
+ default: P(() => [F(e.$slots, "default")]),
894
+ _: 3
895
+ }, 16, ["aria-labelledby"]));
896
+ }
897
+ }), [it, at] = /*#__PURE__*/ a("SelectItem"), ot = /* @__PURE__ */ j({
898
+ __name: "SelectItem",
899
+ props: {
900
+ value: {
901
+ type: null,
902
+ required: !0
903
+ },
904
+ disabled: {
905
+ type: Boolean,
906
+ required: !1
907
+ },
908
+ textValue: {
909
+ type: String,
910
+ required: !1
911
+ },
912
+ asChild: {
913
+ type: Boolean,
914
+ required: !1
915
+ },
916
+ as: {
917
+ type: null,
918
+ required: !1
919
+ }
920
+ },
921
+ emits: ["select"],
922
+ setup(e, { emit: n }) {
923
+ let r = e, a = n, { disabled: o } = fe(r), s = Q(), c = $(), { forwardRef: l, currentElement: d } = t(), { CollectionItem: f } = K(), p = A(() => X(s.modelValue?.value, r.value, s.by)), m = V(!1), h = V(r.textValue ?? ""), g = u(void 0, "reka-select-item-text");
924
+ async function _(e) {
925
+ if (e.defaultPrevented) return;
926
+ let t = {
927
+ originalEvent: e,
928
+ value: r.value
929
+ };
930
+ Ee("select.select", v, t);
931
+ }
932
+ async function v(e) {
933
+ await L(), a("select", e), !e.defaultPrevented && (o.value || (s.onValueChange(r.value), s.multiple.value || s.onOpenChange(!1)));
934
+ }
935
+ async function y(e) {
936
+ await L(), !e.defaultPrevented && (o.value ? c.onItemLeave?.() : e.currentTarget?.focus({ preventScroll: !0 }));
937
+ }
938
+ async function x(e) {
939
+ await L(), !e.defaultPrevented && e.currentTarget === Ae() && c.onItemLeave?.();
940
+ }
941
+ async function ee(e) {
942
+ await L(), !e.defaultPrevented && (c.searchRef?.value === "" || e.key !== " ") && (Re.includes(e.key) && _(e), e.key === " " && e.preventDefault());
943
+ }
944
+ if (r.value === "") throw Error("A <SelectItem /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");
945
+ return W(() => {
946
+ d.value && c.itemRefCallback(d.value, r.value, r.disabled);
947
+ }), at({
948
+ value: r.value,
949
+ disabled: o,
950
+ textId: g,
951
+ isSelected: p,
952
+ onItemTextChange: (e) => {
953
+ h.value = ((h.value || e?.textContent) ?? "").trim();
954
+ }
955
+ }), (e, t) => (B(), E(O(f), { value: { textValue: h.value } }, {
956
+ default: P(() => [I(O(i), {
957
+ ref: O(l),
958
+ role: "option",
959
+ "aria-labelledby": O(g),
960
+ "data-highlighted": m.value ? "" : void 0,
961
+ "aria-selected": p.value,
962
+ "data-state": p.value ? "checked" : "unchecked",
963
+ "aria-disabled": O(o) || void 0,
964
+ "data-disabled": O(o) ? "" : void 0,
965
+ tabindex: O(o) ? void 0 : -1,
966
+ as: e.as,
967
+ "as-child": e.asChild,
968
+ onFocus: t[0] ||= (e) => m.value = !0,
969
+ onBlur: t[1] ||= (e) => m.value = !1,
970
+ onPointerup: _,
971
+ onPointerdown: t[2] ||= (e) => {
972
+ e.currentTarget.focus({ preventScroll: !0 });
973
+ },
974
+ onTouchend: t[3] ||= b(() => {}, ["prevent", "stop"]),
975
+ onPointermove: y,
976
+ onPointerleave: x,
977
+ onKeydown: ee
978
+ }, {
979
+ default: P(() => [F(e.$slots, "default")]),
980
+ _: 3
981
+ }, 8, [
982
+ "aria-labelledby",
983
+ "data-highlighted",
984
+ "aria-selected",
985
+ "data-state",
986
+ "aria-disabled",
987
+ "data-disabled",
988
+ "tabindex",
989
+ "as",
990
+ "as-child"
991
+ ])]),
992
+ _: 3
993
+ }, 8, ["value"]));
994
+ }
995
+ }), st = /* @__PURE__ */ j({
996
+ __name: "SelectItemIndicator",
997
+ props: {
998
+ asChild: {
999
+ type: Boolean,
1000
+ required: !1
1001
+ },
1002
+ as: {
1003
+ type: null,
1004
+ required: !1,
1005
+ default: "span"
1006
+ }
1007
+ },
1008
+ setup(e) {
1009
+ let t = e, n = it();
1010
+ return (e, r) => O(n).isSelected.value ? (B(), E(O(i), T({
1011
+ key: 0,
1012
+ "aria-hidden": "true"
1013
+ }, t), {
1014
+ default: P(() => [F(e.$slots, "default")]),
1015
+ _: 3
1016
+ }, 16)) : M("v-if", !0);
1017
+ }
1018
+ }), ct = /* @__PURE__ */ j({
1019
+ inheritAttrs: !1,
1020
+ __name: "SelectItemText",
1021
+ props: {
1022
+ asChild: {
1023
+ type: Boolean,
1024
+ required: !1
1025
+ },
1026
+ as: {
1027
+ type: null,
1028
+ required: !1,
1029
+ default: "span"
1030
+ }
1031
+ },
1032
+ setup(e) {
1033
+ let n = e, r = Q(), a = $(), o = it(), { forwardRef: s, currentElement: c } = t(), l = A(() => ({
1034
+ value: o.value,
1035
+ disabled: o.disabled.value,
1036
+ textContent: c.value?.textContent ?? o.value?.toString() ?? ""
1037
+ }));
1038
+ return W(() => {
1039
+ c.value && (o.onItemTextChange(c.value), a.itemTextRefCallback(c.value, o.value, o.disabled.value), r.onOptionAdd(l.value));
1040
+ }), _e(() => {
1041
+ r.onOptionRemove(l.value);
1042
+ }), (e, t) => (B(), E(O(i), T({
1043
+ id: O(o).textId,
1044
+ ref: O(s)
1045
+ }, {
1046
+ ...n,
1047
+ ...e.$attrs
1048
+ }), {
1049
+ default: P(() => [F(e.$slots, "default")]),
1050
+ _: 3
1051
+ }, 16, ["id"]));
1052
+ }
1053
+ }), lt = /* @__PURE__ */ j({
1054
+ __name: "SelectLabel",
1055
+ props: {
1056
+ for: {
1057
+ type: String,
1058
+ required: !1
1059
+ },
1060
+ asChild: {
1061
+ type: Boolean,
1062
+ required: !1
1063
+ },
1064
+ as: {
1065
+ type: null,
1066
+ required: !1,
1067
+ default: "div"
1068
+ }
1069
+ },
1070
+ setup(e) {
1071
+ let t = e, n = tt({ id: "" });
1072
+ return (e, r) => (B(), E(O(i), T(t, { id: O(n).id }), {
1073
+ default: P(() => [F(e.$slots, "default")]),
1074
+ _: 3
1075
+ }, 16, ["id"]));
1076
+ }
1077
+ }), ut = /* @__PURE__ */ j({
1078
+ __name: "SelectPortal",
1079
+ props: {
1080
+ to: {
1081
+ type: null,
1082
+ required: !1
1083
+ },
1084
+ disabled: {
1085
+ type: Boolean,
1086
+ required: !1
1087
+ },
1088
+ defer: {
1089
+ type: Boolean,
1090
+ required: !1
1091
+ },
1092
+ forceMount: {
1093
+ type: Boolean,
1094
+ required: !1
1095
+ }
1096
+ },
1097
+ setup(e) {
1098
+ let t = e;
1099
+ return (e, r) => (B(), E(O(n), pe(be(t)), {
1100
+ default: P(() => [F(e.$slots, "default")]),
1101
+ _: 3
1102
+ }, 16));
1103
+ }
1104
+ }), dt = /* @__PURE__ */ j({
1105
+ __name: "SelectSeparator",
1106
+ props: {
1107
+ asChild: {
1108
+ type: Boolean,
1109
+ required: !1
1110
+ },
1111
+ as: {
1112
+ type: null,
1113
+ required: !1
1114
+ }
1115
+ },
1116
+ setup(e) {
1117
+ let t = e;
1118
+ return (e, n) => (B(), E(O(i), T({ "aria-hidden": "true" }, t), {
1119
+ default: P(() => [F(e.$slots, "default")]),
1120
+ _: 3
1121
+ }, 16));
1122
+ }
1123
+ }), ft = /* @__PURE__ */ j({
1124
+ __name: "SelectTrigger",
1125
+ props: {
1126
+ disabled: {
1127
+ type: Boolean,
1128
+ required: !1
1129
+ },
1130
+ reference: {
1131
+ type: null,
1132
+ required: !1
1133
+ },
1134
+ asChild: {
1135
+ type: Boolean,
1136
+ required: !1
1137
+ },
1138
+ as: {
1139
+ type: null,
1140
+ required: !1,
1141
+ default: "button"
1142
+ }
1143
+ },
1144
+ setup(e) {
1145
+ let n = e, r = Q(), { forwardRef: a, currentElement: o } = t(), s = A(() => r.disabled?.value || n.disabled);
1146
+ r.contentId ||= u(void 0, "reka-select-content"), W(() => {
1147
+ r.onTriggerChange(o.value);
1148
+ });
1149
+ let { getItems: c } = K(), { search: l, handleTypeaheadSearch: d, resetTypeahead: f } = Ne();
1150
+ function p() {
1151
+ s.value || (r.onOpenChange(!0), f());
1152
+ }
1153
+ function m(e) {
1154
+ p(), r.triggerPointerDownPosRef.value = {
1155
+ x: Math.round(e.pageX),
1156
+ y: Math.round(e.pageY)
1157
+ };
1158
+ }
1159
+ function h(e) {
1160
+ return e.button === 0 && e.ctrlKey === !1;
1161
+ }
1162
+ let g = !1;
1163
+ function _(e) {
1164
+ if (e.pointerType === "touch") return e.preventDefault();
1165
+ let t = e.target;
1166
+ t.hasPointerCapture(e.pointerId) && t.releasePointerCapture(e.pointerId), h(e) && (m(e), g = !0);
1167
+ }
1168
+ function v(e) {
1169
+ h(e) && e.preventDefault();
1170
+ }
1171
+ function y(e) {
1172
+ g || e.currentTarget?.focus(), g = !1;
1173
+ }
1174
+ return (e, t) => (B(), E(O(ce), {
1175
+ "as-child": "",
1176
+ reference: e.reference
1177
+ }, {
1178
+ default: P(() => [I(O(i), {
1179
+ ref: O(a),
1180
+ role: "combobox",
1181
+ type: e.as === "button" ? "button" : void 0,
1182
+ "aria-controls": O(r).open.value ? O(r).contentId : void 0,
1183
+ "aria-expanded": O(r).open.value || !1,
1184
+ "aria-required": O(r).required?.value,
1185
+ "aria-autocomplete": "none",
1186
+ disabled: s.value,
1187
+ dir: O(r)?.dir.value,
1188
+ "data-state": O(r)?.open.value ? "open" : "closed",
1189
+ "data-disabled": s.value ? "" : void 0,
1190
+ "data-placeholder": O(ze)(O(r).modelValue?.value) ? "" : void 0,
1191
+ "as-child": e.asChild,
1192
+ as: e.as,
1193
+ onClick: y,
1194
+ onPointerdown: _,
1195
+ onMousedown: v,
1196
+ onPointerup: t[0] ||= b((e) => {
1197
+ e.pointerType === "touch" && m(e);
1198
+ }, ["prevent"]),
1199
+ onKeydown: t[1] ||= (e) => {
1200
+ let t = O(l) !== "";
1201
+ (e.ctrlKey || e.altKey || e.metaKey || e.key.length !== 1 || !t || e.key !== " ") && (O(d)(e.key, O(c)()), O(Y).includes(e.key) && (p(), e.preventDefault()));
1202
+ }
1203
+ }, {
1204
+ default: P(() => [F(e.$slots, "default")]),
1205
+ _: 3
1206
+ }, 8, [
1207
+ "type",
1208
+ "aria-controls",
1209
+ "aria-expanded",
1210
+ "aria-required",
1211
+ "disabled",
1212
+ "dir",
1213
+ "data-state",
1214
+ "data-disabled",
1215
+ "data-placeholder",
1216
+ "as-child",
1217
+ "as"
1218
+ ])]),
1219
+ _: 3
1220
+ }, 8, ["reference"]));
1221
+ }
1222
+ }), pt = /* @__PURE__ */ j({
1223
+ __name: "SelectValue",
1224
+ props: {
1225
+ placeholder: {
1226
+ type: String,
1227
+ required: !1,
1228
+ default: ""
1229
+ },
1230
+ asChild: {
1231
+ type: Boolean,
1232
+ required: !1
1233
+ },
1234
+ as: {
1235
+ type: null,
1236
+ required: !1,
1237
+ default: "span"
1238
+ }
1239
+ },
1240
+ setup(e) {
1241
+ let n = e, { forwardRef: r, currentElement: a } = t(), o = Q();
1242
+ W(() => {
1243
+ o.valueElement = a;
1244
+ });
1245
+ let s = A(() => {
1246
+ let e = [], t = Array.from(o.optionsSet.value), n = (e) => t.find((t) => X(e, t.value, o.by));
1247
+ return e = Array.isArray(o.modelValue.value) ? o.modelValue.value.map((e) => n(e)?.textContent ?? "") : [n(o.modelValue.value)?.textContent ?? ""], e.filter(Boolean);
1248
+ }), c = A(() => s.value.length ? s.value.join(", ") : n.placeholder);
1249
+ return (e, t) => (B(), E(O(i), {
1250
+ ref: O(r),
1251
+ as: e.as,
1252
+ "as-child": e.asChild,
1253
+ style: { pointerEvents: "none" },
1254
+ "data-placeholder": s.value.length ? void 0 : n.placeholder
1255
+ }, {
1256
+ default: P(() => [F(e.$slots, "default", {
1257
+ selectedLabel: s.value,
1258
+ modelValue: O(o).modelValue.value
1259
+ }, () => [D(R(c.value), 1)])]),
1260
+ _: 3
1261
+ }, 8, [
1262
+ "as",
1263
+ "as-child",
1264
+ "data-placeholder"
1265
+ ]));
1266
+ }
1267
+ }), mt = /* @__PURE__ */ j({
1268
+ __name: "SelectViewport",
1269
+ props: {
1270
+ nonce: {
1271
+ type: String,
1272
+ required: !1
1273
+ },
1274
+ asChild: {
1275
+ type: Boolean,
1276
+ required: !1
1277
+ },
1278
+ as: {
1279
+ type: null,
1280
+ required: !1
1281
+ }
1282
+ },
1283
+ setup(e) {
1284
+ let n = e, { nonce: r } = fe(n), a = Le(r), o = $(), s = o.position === "item-aligned" ? Je() : void 0, { forwardRef: c, currentElement: l } = t();
1285
+ W(() => {
1286
+ o?.onViewportChange(l.value);
1287
+ });
1288
+ let u = V(0);
1289
+ function d(e) {
1290
+ let t = e.currentTarget, { shouldExpandOnScrollRef: n, contentWrapper: r } = s ?? {};
1291
+ if (n?.value && r?.value) {
1292
+ let e = Math.abs(u.value - t.scrollTop);
1293
+ if (e > 0) {
1294
+ let n = window.innerHeight - 20, i = Number.parseFloat(r.value.style.minHeight), a = Number.parseFloat(r.value.style.height), o = Math.max(i, a);
1295
+ if (o < n) {
1296
+ let i = o + e, a = Math.min(n, i), s = i - a;
1297
+ r.value.style.height = `${a}px`, r.value.style.bottom === "0px" && (t.scrollTop = s > 0 ? s : 0, r.value.style.justifyContent = "flex-end");
1298
+ }
1299
+ }
1300
+ }
1301
+ u.value = t.scrollTop;
1302
+ }
1303
+ return (e, t) => (B(), N(H, null, [I(O(i), T({
1304
+ ref: O(c),
1305
+ "data-reka-select-viewport": "",
1306
+ role: "presentation"
1307
+ }, {
1308
+ ...e.$attrs,
1309
+ ...n
1310
+ }, {
1311
+ style: {
1312
+ position: "relative",
1313
+ flex: 1,
1314
+ overflow: "hidden auto"
1315
+ },
1316
+ onScroll: d
1317
+ }), {
1318
+ default: P(() => [F(e.$slots, "default")]),
1319
+ _: 3
1320
+ }, 16), I(O(i), {
1321
+ as: "style",
1322
+ nonce: O(a)
1323
+ }, {
1324
+ default: P(() => t[0] ||= [D(" /* Hide scrollbars cross-browser and enable momentum scroll for touch devices */ [data-reka-select-viewport] { scrollbar-width:none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } [data-reka-select-viewport]::-webkit-scrollbar { display: none; } ")]),
1325
+ _: 1,
1326
+ __: [0]
1327
+ }, 8, ["nonce"])], 64));
1328
+ }
1329
+ }), ht = {
1330
+ slots: {
1331
+ base: ["relative group rounded-md inline-flex items-center disabled:cursor-not-allowed disabled:opacity-75", "transition-colors"],
1332
+ leading: "absolute inset-y-0 start-0 flex items-center",
1333
+ leadingIcon: "shrink-0 text-dimmed",
1334
+ leadingAvatar: "shrink-0",
1335
+ leadingAvatarSize: "",
1336
+ trailing: "absolute inset-y-0 end-0 flex items-center",
1337
+ trailingIcon: "shrink-0 text-dimmed",
1338
+ value: "truncate pointer-events-none",
1339
+ placeholder: "truncate text-dimmed",
1340
+ arrow: "fill-bg stroke-default",
1341
+ content: "max-h-[min(15rem,var(--reka-select-content-available-height,15rem))] w-(--reka-select-trigger-width) bg-default shadow-lg rounded-md ring ring-default overflow-hidden origin-(--reka-select-content-transform-origin) pointer-events-auto data-[state=closed]:pointer-events-none! flex flex-col",
1342
+ viewport: "relative divide-y divide-default scroll-py-1 overflow-y-auto flex-1",
1343
+ group: "p-1 isolate",
1344
+ empty: "text-center text-muted",
1345
+ label: "font-semibold text-highlighted",
1346
+ separator: "-mx-1 my-1 h-px bg-border",
1347
+ item: ["group relative w-full flex items-start select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50", "transition-colors before:transition-colors"],
1348
+ itemLeadingIcon: ["shrink-0 text-dimmed group-data-highlighted:not-group-data-disabled:text-default", "transition-colors"],
1349
+ itemLeadingAvatar: "shrink-0",
1350
+ itemLeadingAvatarSize: "",
1351
+ itemLeadingChip: "shrink-0",
1352
+ itemLeadingChipSize: "",
1353
+ itemTrailing: "ms-auto inline-flex gap-1.5 items-center",
1354
+ itemTrailingIcon: "shrink-0",
1355
+ itemWrapper: "flex-1 flex flex-col min-w-0",
1356
+ itemLabel: "truncate",
1357
+ itemDescription: "truncate text-muted"
1358
+ },
1359
+ variants: {
1360
+ fieldGroup: {
1361
+ horizontal: "not-only:first:rounded-e-none not-only:last:rounded-s-none not-last:not-first:rounded-none focus-visible:z-[1]",
1362
+ vertical: "not-only:first:rounded-b-none not-only:last:rounded-t-none not-last:not-first:rounded-none focus-visible:z-[1]"
1363
+ },
1364
+ size: {
1365
+ xs: {
1366
+ base: "px-2 py-1 text-sm/4 gap-1",
1367
+ leading: "ps-2",
1368
+ trailing: "pe-2",
1369
+ leadingIcon: "size-4",
1370
+ leadingAvatarSize: "3xs",
1371
+ trailingIcon: "size-4",
1372
+ label: "p-1 text-[10px]/3 gap-1",
1373
+ item: "p-1 text-xs gap-1",
1374
+ itemLeadingIcon: "size-4",
1375
+ itemLeadingAvatarSize: "3xs",
1376
+ itemLeadingChip: "size-4",
1377
+ itemLeadingChipSize: "sm",
1378
+ itemTrailingIcon: "size-4",
1379
+ empty: "p-2 text-xs"
1380
+ },
1381
+ sm: {
1382
+ base: "px-2.5 py-1.5 text-sm/4 gap-1.5",
1383
+ leading: "ps-2.5",
1384
+ trailing: "pe-2.5",
1385
+ leadingIcon: "size-4",
1386
+ leadingAvatarSize: "3xs",
1387
+ trailingIcon: "size-4",
1388
+ label: "p-1.5 text-[10px]/3 gap-1.5",
1389
+ item: "p-1.5 text-xs gap-1.5",
1390
+ itemLeadingIcon: "size-4",
1391
+ itemLeadingAvatarSize: "3xs",
1392
+ itemLeadingChip: "size-4",
1393
+ itemLeadingChipSize: "sm",
1394
+ itemTrailingIcon: "size-4",
1395
+ empty: "p-2.5 text-xs"
1396
+ },
1397
+ md: {
1398
+ base: "px-2.5 py-1.5 text-base/5 gap-1.5",
1399
+ leading: "ps-2.5",
1400
+ trailing: "pe-2.5",
1401
+ leadingIcon: "size-5",
1402
+ leadingAvatarSize: "2xs",
1403
+ trailingIcon: "size-5",
1404
+ label: "p-1.5 text-xs gap-1.5",
1405
+ item: "p-1.5 text-sm gap-1.5",
1406
+ itemLeadingIcon: "size-5",
1407
+ itemLeadingAvatarSize: "2xs",
1408
+ itemLeadingChip: "size-5",
1409
+ itemLeadingChipSize: "md",
1410
+ itemTrailingIcon: "size-5",
1411
+ empty: "p-2.5 text-sm"
1412
+ },
1413
+ lg: {
1414
+ base: "px-3 py-2 text-base/5 gap-2",
1415
+ leading: "ps-3",
1416
+ trailing: "pe-3",
1417
+ leadingIcon: "size-5",
1418
+ leadingAvatarSize: "2xs",
1419
+ trailingIcon: "size-5",
1420
+ label: "p-2 text-xs gap-2",
1421
+ item: "p-2 text-sm gap-2",
1422
+ itemLeadingIcon: "size-5",
1423
+ itemLeadingAvatarSize: "2xs",
1424
+ itemLeadingChip: "size-5",
1425
+ itemLeadingChipSize: "md",
1426
+ itemTrailingIcon: "size-5",
1427
+ empty: "p-3 text-sm"
1428
+ },
1429
+ xl: {
1430
+ base: "px-3 py-2 text-base gap-2",
1431
+ leading: "ps-3",
1432
+ trailing: "pe-3",
1433
+ leadingIcon: "size-6",
1434
+ leadingAvatarSize: "xs",
1435
+ trailingIcon: "size-6",
1436
+ label: "p-2 text-sm gap-2",
1437
+ item: "p-2 text-base gap-2",
1438
+ itemLeadingIcon: "size-6",
1439
+ itemLeadingAvatarSize: "xs",
1440
+ itemLeadingChip: "size-6",
1441
+ itemLeadingChipSize: "lg",
1442
+ itemTrailingIcon: "size-6",
1443
+ empty: "p-3 text-base"
1444
+ }
1445
+ },
1446
+ variant: {
1447
+ outline: "text-highlighted bg-default ring ring-inset ring-accented hover:bg-elevated disabled:bg-default",
1448
+ soft: "text-highlighted bg-elevated/50 hover:bg-elevated focus:bg-elevated disabled:bg-elevated/50",
1449
+ subtle: "text-highlighted bg-elevated ring ring-inset ring-accented hover:bg-accented/75 disabled:bg-elevated",
1450
+ ghost: "text-highlighted bg-transparent hover:bg-elevated focus:bg-elevated disabled:bg-transparent dark:disabled:bg-transparent",
1451
+ none: "text-highlighted bg-transparent focus:outline-none"
1452
+ },
1453
+ color: {
1454
+ primary: "",
1455
+ secondary: "",
1456
+ success: "",
1457
+ info: "",
1458
+ warning: "",
1459
+ error: "",
1460
+ neutral: ""
1461
+ },
1462
+ leading: { true: "" },
1463
+ trailing: { true: "" },
1464
+ loading: { true: "" },
1465
+ highlight: { true: "" },
1466
+ fixed: { false: "" },
1467
+ type: { file: "file:me-1.5 file:font-medium file:text-muted file:outline-none" },
1468
+ position: {
1469
+ popper: { content: "data-[state=open]:animate-[scale-in_100ms_var(--ease-out)] data-[state=closed]:animate-[scale-out_100ms_var(--ease-out)]" },
1470
+ "item-aligned": { content: "" }
1471
+ },
1472
+ multiple: { true: "" }
1473
+ },
1474
+ compoundVariants: [
1475
+ {
1476
+ color: "primary",
1477
+ variant: ["outline", "subtle"],
1478
+ class: "outline-primary/25 focus-visible:outline-3 focus-visible:ring-primary"
1479
+ },
1480
+ {
1481
+ color: "secondary",
1482
+ variant: ["outline", "subtle"],
1483
+ class: "outline-secondary/25 focus-visible:outline-3 focus-visible:ring-secondary"
1484
+ },
1485
+ {
1486
+ color: "success",
1487
+ variant: ["outline", "subtle"],
1488
+ class: "outline-success/25 focus-visible:outline-3 focus-visible:ring-success"
1489
+ },
1490
+ {
1491
+ color: "info",
1492
+ variant: ["outline", "subtle"],
1493
+ class: "outline-info/25 focus-visible:outline-3 focus-visible:ring-info"
1494
+ },
1495
+ {
1496
+ color: "warning",
1497
+ variant: ["outline", "subtle"],
1498
+ class: "outline-warning/25 focus-visible:outline-3 focus-visible:ring-warning"
1499
+ },
1500
+ {
1501
+ color: "error",
1502
+ variant: ["outline", "subtle"],
1503
+ class: "outline-error/25 focus-visible:outline-3 focus-visible:ring-error"
1504
+ },
1505
+ {
1506
+ color: "primary",
1507
+ variant: ["soft", "ghost"],
1508
+ class: "outline-primary/25 focus-visible:outline-3"
1509
+ },
1510
+ {
1511
+ color: "secondary",
1512
+ variant: ["soft", "ghost"],
1513
+ class: "outline-secondary/25 focus-visible:outline-3"
1514
+ },
1515
+ {
1516
+ color: "success",
1517
+ variant: ["soft", "ghost"],
1518
+ class: "outline-success/25 focus-visible:outline-3"
1519
+ },
1520
+ {
1521
+ color: "info",
1522
+ variant: ["soft", "ghost"],
1523
+ class: "outline-info/25 focus-visible:outline-3"
1524
+ },
1525
+ {
1526
+ color: "warning",
1527
+ variant: ["soft", "ghost"],
1528
+ class: "outline-warning/25 focus-visible:outline-3"
1529
+ },
1530
+ {
1531
+ color: "error",
1532
+ variant: ["soft", "ghost"],
1533
+ class: "outline-error/25 focus-visible:outline-3"
1534
+ },
1535
+ {
1536
+ color: "primary",
1537
+ highlight: !0,
1538
+ class: "ring ring-inset ring-primary"
1539
+ },
1540
+ {
1541
+ color: "secondary",
1542
+ highlight: !0,
1543
+ class: "ring ring-inset ring-secondary"
1544
+ },
1545
+ {
1546
+ color: "success",
1547
+ highlight: !0,
1548
+ class: "ring ring-inset ring-success"
1549
+ },
1550
+ {
1551
+ color: "info",
1552
+ highlight: !0,
1553
+ class: "ring ring-inset ring-info"
1554
+ },
1555
+ {
1556
+ color: "warning",
1557
+ highlight: !0,
1558
+ class: "ring ring-inset ring-warning"
1559
+ },
1560
+ {
1561
+ color: "error",
1562
+ highlight: !0,
1563
+ class: "ring ring-inset ring-error"
1564
+ },
1565
+ {
1566
+ color: "neutral",
1567
+ variant: ["outline", "subtle"],
1568
+ class: "outline-inverted/25 focus-visible:outline-3 focus-visible:ring-inverted"
1569
+ },
1570
+ {
1571
+ color: "neutral",
1572
+ variant: ["soft", "ghost"],
1573
+ class: "outline-inverted/25 focus-visible:outline-3"
1574
+ },
1575
+ {
1576
+ color: "neutral",
1577
+ highlight: !0,
1578
+ class: "ring ring-inset ring-inverted"
1579
+ },
1580
+ {
1581
+ leading: !0,
1582
+ size: "xs",
1583
+ class: "ps-7"
1584
+ },
1585
+ {
1586
+ leading: !0,
1587
+ size: "sm",
1588
+ class: "ps-8"
1589
+ },
1590
+ {
1591
+ leading: !0,
1592
+ size: "md",
1593
+ class: "ps-9"
1594
+ },
1595
+ {
1596
+ leading: !0,
1597
+ size: "lg",
1598
+ class: "ps-10"
1599
+ },
1600
+ {
1601
+ leading: !0,
1602
+ size: "xl",
1603
+ class: "ps-11"
1604
+ },
1605
+ {
1606
+ trailing: !0,
1607
+ size: "xs",
1608
+ class: "pe-7"
1609
+ },
1610
+ {
1611
+ trailing: !0,
1612
+ size: "sm",
1613
+ class: "pe-8"
1614
+ },
1615
+ {
1616
+ trailing: !0,
1617
+ size: "md",
1618
+ class: "pe-9"
1619
+ },
1620
+ {
1621
+ trailing: !0,
1622
+ size: "lg",
1623
+ class: "pe-10"
1624
+ },
1625
+ {
1626
+ trailing: !0,
1627
+ size: "xl",
1628
+ class: "pe-11"
1629
+ },
1630
+ {
1631
+ loading: !0,
1632
+ leading: !0,
1633
+ class: { leadingIcon: "animate-spin" }
1634
+ },
1635
+ {
1636
+ loading: !0,
1637
+ leading: !1,
1638
+ trailing: !0,
1639
+ class: { trailingIcon: "animate-spin" }
1640
+ },
1641
+ {
1642
+ fixed: !1,
1643
+ size: "xs",
1644
+ class: "md:text-xs"
1645
+ },
1646
+ {
1647
+ fixed: !1,
1648
+ size: "sm",
1649
+ class: "md:text-xs"
1650
+ },
1651
+ {
1652
+ fixed: !1,
1653
+ size: "md",
1654
+ class: "md:text-sm"
1655
+ },
1656
+ {
1657
+ fixed: !1,
1658
+ size: "lg",
1659
+ class: "md:text-sm"
1660
+ }
1661
+ ],
1662
+ defaultVariants: {
1663
+ size: "md",
1664
+ color: "primary",
1665
+ variant: "outline",
1666
+ position: "popper"
1667
+ }
1668
+ }, gt = /*@__PURE__*/ Object.assign({ inheritAttrs: !1 }, {
1669
+ __name: "Select",
1670
+ props: {
1671
+ id: {
1672
+ type: String,
1673
+ required: !1
1674
+ },
1675
+ placeholder: {
1676
+ type: String,
1677
+ required: !1
1678
+ },
1679
+ color: {
1680
+ type: null,
1681
+ required: !1
1682
+ },
1683
+ variant: {
1684
+ type: null,
1685
+ required: !1
1686
+ },
1687
+ size: {
1688
+ type: null,
1689
+ required: !1
1690
+ },
1691
+ trailingIcon: {
1692
+ type: null,
1693
+ required: !1
1694
+ },
1695
+ selectedIcon: {
1696
+ type: null,
1697
+ required: !1
1698
+ },
1699
+ content: {
1700
+ type: Object,
1701
+ required: !1
1702
+ },
1703
+ arrow: {
1704
+ type: [Boolean, Object],
1705
+ required: !1
1706
+ },
1707
+ portal: {
1708
+ type: [Boolean, String],
1709
+ required: !1,
1710
+ skipCheck: !0,
1711
+ default: !0
1712
+ },
1713
+ valueKey: {
1714
+ type: null,
1715
+ required: !1,
1716
+ default: "value"
1717
+ },
1718
+ labelKey: {
1719
+ type: null,
1720
+ required: !1,
1721
+ default: "label"
1722
+ },
1723
+ descriptionKey: {
1724
+ type: null,
1725
+ required: !1,
1726
+ default: "description"
1727
+ },
1728
+ items: {
1729
+ type: null,
1730
+ required: !1
1731
+ },
1732
+ defaultValue: {
1733
+ type: null,
1734
+ required: !1
1735
+ },
1736
+ modelValue: {
1737
+ type: null,
1738
+ required: !1
1739
+ },
1740
+ modelModifiers: {
1741
+ type: null,
1742
+ required: !1
1743
+ },
1744
+ multiple: {
1745
+ type: Boolean,
1746
+ required: !1
1747
+ },
1748
+ highlight: {
1749
+ type: Boolean,
1750
+ required: !1
1751
+ },
1752
+ fixed: {
1753
+ type: Boolean,
1754
+ required: !1
1755
+ },
1756
+ autofocus: {
1757
+ type: Boolean,
1758
+ required: !1
1759
+ },
1760
+ autofocusDelay: {
1761
+ type: Number,
1762
+ required: !1,
1763
+ default: 0
1764
+ },
1765
+ class: {
1766
+ type: null,
1767
+ required: !1
1768
+ },
1769
+ ui: {
1770
+ type: Object,
1771
+ required: !1
1772
+ },
1773
+ open: {
1774
+ type: Boolean,
1775
+ required: !1
1776
+ },
1777
+ defaultOpen: {
1778
+ type: Boolean,
1779
+ required: !1
1780
+ },
1781
+ nullableValue: {
1782
+ type: String,
1783
+ required: !1
1784
+ },
1785
+ autocomplete: {
1786
+ type: String,
1787
+ required: !1
1788
+ },
1789
+ disabled: {
1790
+ type: Boolean,
1791
+ required: !1
1792
+ },
1793
+ name: {
1794
+ type: String,
1795
+ required: !1
1796
+ },
1797
+ required: {
1798
+ type: Boolean,
1799
+ required: !1
1800
+ },
1801
+ icon: {
1802
+ type: null,
1803
+ required: !1
1804
+ },
1805
+ avatar: {
1806
+ type: Object,
1807
+ required: !1
1808
+ },
1809
+ leading: {
1810
+ type: Boolean,
1811
+ required: !1
1812
+ },
1813
+ leadingIcon: {
1814
+ type: null,
1815
+ required: !1
1816
+ },
1817
+ trailing: {
1818
+ type: Boolean,
1819
+ required: !1
1820
+ },
1821
+ loading: {
1822
+ type: Boolean,
1823
+ required: !1
1824
+ },
1825
+ loadingIcon: {
1826
+ type: null,
1827
+ required: !1
1828
+ }
1829
+ },
1830
+ emits: [
1831
+ "change",
1832
+ "blur",
1833
+ "focus",
1834
+ "update:modelValue",
1835
+ "update:open"
1836
+ ],
1837
+ setup(t, { expose: n, emit: r, attrs: i }) {
1838
+ let a = t, l = r, u = ve(), d = m("select", a), p = e(), v = _(c(d, "open", "defaultOpen", "disabled", "autocomplete", "required", "multiple", "nullableValue"), l), b = Me(z(() => d.portal)), S = A(() => d.content?.position ?? p.ui?.select?.defaultVariants?.position ?? ht.defaultVariants?.position), C = z(() => le(d.content, {
1839
+ side: "bottom",
1840
+ sideOffset: 8,
1841
+ collisionPadding: 8,
1842
+ position: S.value
1843
+ })), ae = z(() => le(d.arrow, { rounded: !0 })), { emitFormChange: w, emitFormInput: oe, emitFormBlur: se, emitFormFocus: ce, size: k, color: j, id: fe, name: L, highlight: V, disabled: ge, ariaAttrs: _e } = x(a), { orientation: ye, size: xe } = ee(a), { isLeading: Ce, isTrailing: we, leadingIconName: Te, trailingIconName: Ee } = re(A(() => ({
1844
+ icon: d.icon,
1845
+ leading: d.leading,
1846
+ leadingIcon: d.leadingIcon,
1847
+ trailing: d.trailing,
1848
+ trailingIcon: d.trailingIcon ?? p.ui.icons.chevronDown,
1849
+ loading: d.loading,
1850
+ loadingIcon: d.loadingIcon
1851
+ }))), De = A(() => j.value ?? d.color), Oe = A(() => V.value ?? d.highlight), ke = A(() => xe.value ?? k.value ?? d.size), Ae = A(() => ge.value ?? d.disabled), je = A(() => S.value === "item-aligned"), G = A(() => ie({
1852
+ extend: ht,
1853
+ ...p.ui?.select || {}
1854
+ })({
1855
+ color: De.value,
1856
+ variant: d.variant,
1857
+ size: ke.value,
1858
+ loading: d.loading,
1859
+ highlight: Oe.value,
1860
+ fixed: d.fixed,
1861
+ leading: Ce.value || !!d.avatar || !!u.leading,
1862
+ trailing: we.value || !!u.trailing,
1863
+ fieldGroup: ye.value,
1864
+ position: S.value,
1865
+ multiple: d.multiple
1866
+ })), Ne = A(() => d.items?.length ? o(d.items) ? d.items : [d.items] : []), Pe = A(() => Ne.value.flatMap((e) => e));
1867
+ function K(e) {
1868
+ if (d.multiple && Array.isArray(e)) {
1869
+ let t = e.map((e) => f(Pe.value, e, {
1870
+ labelKey: d.labelKey,
1871
+ valueKey: d.valueKey
1872
+ })).filter((e) => e != null && e !== "");
1873
+ return t.length > 0 ? t.join(", ") : void 0;
1874
+ }
1875
+ return f(Pe.value, e, {
1876
+ labelKey: d.labelKey,
1877
+ valueKey: d.valueKey
1878
+ });
1879
+ }
1880
+ let q = me("triggerRef");
1881
+ function Fe() {
1882
+ d.autofocus && q.value?.$el?.focus({ focusVisible: !0 });
1883
+ }
1884
+ let J;
1885
+ W(() => {
1886
+ J = setTimeout(() => {
1887
+ Fe();
1888
+ }, d.autofocusDelay);
1889
+ }), ue(() => clearTimeout(J));
1890
+ function Ie(e) {
1891
+ d.modelModifiers?.trim && (typeof e == "string" || e == null) && (e = e?.trim() ?? null), d.modelModifiers?.number && (e = te(e)), d.modelModifiers?.nullable && (e ??= null), d.modelModifiers?.optional && !d.modelModifiers?.nullable && e !== null && (e ??= void 0);
1892
+ let t = new Event("change", { target: { value: e } });
1893
+ l("change", t), w(), oe();
1894
+ }
1895
+ function Le(e) {
1896
+ if (e) {
1897
+ let e = new FocusEvent("focus");
1898
+ l("focus", e), ce();
1899
+ } else {
1900
+ let e = new FocusEvent("blur");
1901
+ l("blur", e), se();
1902
+ }
1903
+ }
1904
+ function Y(e) {
1905
+ return typeof e == "object" && !!e;
1906
+ }
1907
+ function Re(e) {
1908
+ e || q.value?.$el?.dispatchEvent(new PointerEvent("pointerdown", {
1909
+ bubbles: !0,
1910
+ button: 0
1911
+ }));
1912
+ }
1913
+ function X(e) {
1914
+ let t = document.activeElement;
1915
+ t && t !== document.body && !e.target.contains(t) && e.preventDefault();
1916
+ }
1917
+ let Z = me("viewportRef");
1918
+ return n({
1919
+ triggerRef: z(() => q.value?.$el),
1920
+ viewportRef: z(() => {
1921
+ let e = Z.value;
1922
+ return e && typeof e == "object" && "$el" in e ? e.$el : e;
1923
+ })
1924
+ }), (e, n) => (B(), E(O(He), T({ name: O(L) }, O(v), {
1925
+ autocomplete: O(d).autocomplete,
1926
+ disabled: Ae.value,
1927
+ "default-value": O(d).defaultValue,
1928
+ "model-value": t.modelValue,
1929
+ "onUpdate:modelValue": Ie,
1930
+ "onUpdate:open": Le
1931
+ }), {
1932
+ default: P(({ modelValue: t, open: n }) => [I(O(ft), T({
1933
+ id: O(fe),
1934
+ ref_key: "triggerRef",
1935
+ ref: q,
1936
+ "data-slot": "base",
1937
+ class: G.value.base({ class: [O(d).ui?.base, O(d).class] })
1938
+ }, {
1939
+ ...i,
1940
+ ...O(_e)
1941
+ }, { onClick: (e) => Re(n) }), {
1942
+ default: P(() => [
1943
+ O(Ce) || O(d).avatar || u.leading ? (B(), N("span", {
1944
+ key: 0,
1945
+ "data-slot": "leading",
1946
+ class: U(G.value.leading({ class: O(d).ui?.leading }))
1947
+ }, [F(e.$slots, "leading", {
1948
+ modelValue: t,
1949
+ open: n,
1950
+ ui: G.value
1951
+ }, () => [O(Ce) && O(Te) ? (B(), E(y, {
1952
+ key: 0,
1953
+ name: O(Te),
1954
+ "data-slot": "leadingIcon",
1955
+ class: U(G.value.leadingIcon({ class: O(d).ui?.leadingIcon }))
1956
+ }, null, 8, ["name", "class"])) : O(d).avatar ? (B(), E(ne, T({
1957
+ key: 1,
1958
+ size: O(d).ui?.itemLeadingAvatarSize || G.value.itemLeadingAvatarSize()
1959
+ }, O(d).avatar, {
1960
+ "data-slot": "itemLeadingAvatar",
1961
+ class: G.value.itemLeadingAvatar({ class: O(d).ui?.itemLeadingAvatar })
1962
+ }), null, 16, ["size", "class"])) : M("", !0)])], 2)) : M("", !0),
1963
+ (B(!0), N(H, null, de([K(t)], (r) => (B(), E(O(pt), {
1964
+ key: r,
1965
+ "data-slot": r == null ? "placeholder" : "value",
1966
+ class: U(r == null ? G.value.placeholder({ class: O(d).ui?.placeholder }) : G.value.value({ class: O(d).ui?.value }))
1967
+ }, {
1968
+ default: P(() => [F(e.$slots, "default", {
1969
+ modelValue: t,
1970
+ open: n,
1971
+ ui: G.value
1972
+ }, () => [D(R(r ?? O(d).placeholder ?? "\xA0"), 1)])]),
1973
+ _: 2
1974
+ }, 1032, ["data-slot", "class"]))), 128)),
1975
+ O(we) || u.trailing ? (B(), N("span", {
1976
+ key: 1,
1977
+ "data-slot": "trailing",
1978
+ class: U(G.value.trailing({ class: O(d).ui?.trailing }))
1979
+ }, [F(e.$slots, "trailing", {
1980
+ modelValue: t,
1981
+ open: n,
1982
+ ui: G.value
1983
+ }, () => [O(Ee) ? (B(), E(y, {
1984
+ key: 0,
1985
+ name: O(Ee),
1986
+ "data-slot": "trailingIcon",
1987
+ class: U(G.value.trailingIcon({ class: O(d).ui?.trailingIcon }))
1988
+ }, null, 8, ["name", "class"])) : M("", !0)])], 2)) : M("", !0)
1989
+ ]),
1990
+ _: 2
1991
+ }, 1040, [
1992
+ "id",
1993
+ "class",
1994
+ "onClick"
1995
+ ]), I(O(ut), pe(be(O(b))), {
1996
+ default: P(() => [I(O(g), null, {
1997
+ default: P(() => [I(O(et), T({
1998
+ "data-slot": "content",
1999
+ class: G.value.content({ class: O(d).ui?.content })
2000
+ }, C.value, { onCloseAutoFocus: X }), {
2001
+ default: P(() => [
2002
+ F(e.$slots, "content-top"),
2003
+ (B(), E(Se(je.value ? O(mt) : "div"), {
2004
+ ref_key: "viewportRef",
2005
+ ref: Z,
2006
+ role: "presentation",
2007
+ "data-slot": "viewport",
2008
+ class: U(G.value.viewport({ class: O(d).ui?.viewport }))
2009
+ }, {
2010
+ default: P(() => [(B(!0), N(H, null, de(Ne.value, (t, n) => (B(), E(O(rt), {
2011
+ key: `group-${n}`,
2012
+ "data-slot": "group",
2013
+ class: U(G.value.group({ class: O(d).ui?.group }))
2014
+ }, {
2015
+ default: P(() => [(B(!0), N(H, null, de(t, (t, r) => (B(), N(H, { key: `group-${n}-${r}` }, [Y(t) && t.type === "label" ? (B(), E(O(lt), {
2016
+ key: 0,
2017
+ "data-slot": "label",
2018
+ class: U(G.value.label({ class: [
2019
+ O(d).ui?.label,
2020
+ t.ui?.label,
2021
+ t.class
2022
+ ] }))
2023
+ }, {
2024
+ default: P(() => [D(R(O(s)(t, O(d).labelKey)), 1)]),
2025
+ _: 2
2026
+ }, 1032, ["class"])) : Y(t) && t.type === "separator" ? (B(), E(O(dt), {
2027
+ key: 1,
2028
+ "data-slot": "separator",
2029
+ class: U(G.value.separator({ class: [
2030
+ O(d).ui?.separator,
2031
+ t.ui?.separator,
2032
+ t.class
2033
+ ] }))
2034
+ }, null, 8, ["class"])) : (B(), E(O(ot), {
2035
+ key: 2,
2036
+ "data-slot": "item",
2037
+ class: U(G.value.item({ class: [
2038
+ O(d).ui?.item,
2039
+ Y(t) && t.ui?.item,
2040
+ Y(t) && t.class
2041
+ ] })),
2042
+ disabled: Y(t) && t.disabled,
2043
+ value: Y(t) ? O(s)(t, O(d).valueKey) : t,
2044
+ onSelect: (e) => Y(t) && t.onSelect?.(e)
2045
+ }, {
2046
+ default: P(() => [F(e.$slots, "item", {
2047
+ item: t,
2048
+ index: r,
2049
+ ui: G.value
2050
+ }, () => [
2051
+ F(e.$slots, "item-leading", {
2052
+ item: t,
2053
+ index: r,
2054
+ ui: G.value
2055
+ }, () => [Y(t) && t.icon ? (B(), E(y, {
2056
+ key: 0,
2057
+ name: t.icon,
2058
+ "data-slot": "itemLeadingIcon",
2059
+ class: U(G.value.itemLeadingIcon({ class: [O(d).ui?.itemLeadingIcon, t.ui?.itemLeadingIcon] }))
2060
+ }, null, 8, ["name", "class"])) : Y(t) && t.avatar ? (B(), E(ne, T({
2061
+ key: 1,
2062
+ size: t.ui?.itemLeadingAvatarSize || O(d).ui?.itemLeadingAvatarSize || G.value.itemLeadingAvatarSize()
2063
+ }, { ref_for: !0 }, t.avatar, {
2064
+ "data-slot": "itemLeadingAvatar",
2065
+ class: G.value.itemLeadingAvatar({ class: [O(d).ui?.itemLeadingAvatar, t.ui?.itemLeadingAvatar] })
2066
+ }), null, 16, ["size", "class"])) : Y(t) && t.chip ? (B(), E(h, T({
2067
+ key: 2,
2068
+ size: t.ui?.itemLeadingChipSize || O(d).ui?.itemLeadingChipSize || G.value.itemLeadingChipSize(),
2069
+ inset: "",
2070
+ standalone: ""
2071
+ }, { ref_for: !0 }, t.chip, {
2072
+ "data-slot": "itemLeadingChip",
2073
+ class: G.value.itemLeadingChip({ class: [O(d).ui?.itemLeadingChip, t.ui?.itemLeadingChip] })
2074
+ }), null, 16, ["size", "class"])) : M("", !0)]),
2075
+ he("span", {
2076
+ "data-slot": "itemWrapper",
2077
+ class: U(G.value.itemWrapper({ class: [O(d).ui?.itemWrapper, Y(t) && t.ui?.itemWrapper] }))
2078
+ }, [I(O(ct), {
2079
+ "data-slot": "itemLabel",
2080
+ class: U(G.value.itemLabel({ class: [O(d).ui?.itemLabel, Y(t) && t.ui?.itemLabel] }))
2081
+ }, {
2082
+ default: P(() => [F(e.$slots, "item-label", {
2083
+ item: t,
2084
+ index: r
2085
+ }, () => [D(R(Y(t) ? O(s)(t, O(d).labelKey) : t), 1)])]),
2086
+ _: 2
2087
+ }, 1032, ["class"]), Y(t) && (O(s)(t, O(d).descriptionKey) || u["item-description"]) ? (B(), N("span", {
2088
+ key: 0,
2089
+ "data-slot": "itemDescription",
2090
+ class: U(G.value.itemDescription({ class: [O(d).ui?.itemDescription, Y(t) && t.ui?.itemDescription] }))
2091
+ }, [F(e.$slots, "item-description", {
2092
+ item: t,
2093
+ index: r
2094
+ }, () => [D(R(O(s)(t, O(d).descriptionKey)), 1)])], 2)) : M("", !0)], 2),
2095
+ he("span", {
2096
+ "data-slot": "itemTrailing",
2097
+ class: U(G.value.itemTrailing({ class: [O(d).ui?.itemTrailing, Y(t) && t.ui?.itemTrailing] }))
2098
+ }, [F(e.$slots, "item-trailing", {
2099
+ item: t,
2100
+ index: r,
2101
+ ui: G.value
2102
+ }), I(O(st), { "as-child": "" }, {
2103
+ default: P(() => [I(y, {
2104
+ name: O(d).selectedIcon || O(p).ui.icons.check,
2105
+ "data-slot": "itemTrailingIcon",
2106
+ class: U(G.value.itemTrailingIcon({ class: [O(d).ui?.itemTrailingIcon, Y(t) && t.ui?.itemTrailingIcon] }))
2107
+ }, null, 8, ["name", "class"])]),
2108
+ _: 2
2109
+ }, 1024)], 2)
2110
+ ])]),
2111
+ _: 2
2112
+ }, 1032, [
2113
+ "class",
2114
+ "disabled",
2115
+ "value",
2116
+ "onSelect"
2117
+ ]))], 64))), 128))]),
2118
+ _: 2
2119
+ }, 1032, ["class"]))), 128))]),
2120
+ _: 3
2121
+ }, 8, ["class"])),
2122
+ F(e.$slots, "content-bottom"),
2123
+ O(d).arrow ? (B(), E(O(Ze), T({ key: 0 }, ae.value, {
2124
+ "data-slot": "arrow",
2125
+ class: G.value.arrow({ class: O(d).ui?.arrow })
2126
+ }), null, 16, ["class"])) : M("", !0)
2127
+ ]),
2128
+ _: 3
2129
+ }, 16, ["class"])]),
2130
+ _: 3
2131
+ })]),
2132
+ _: 3
2133
+ }, 16)]),
2134
+ _: 3
2135
+ }, 16, [
2136
+ "name",
2137
+ "autocomplete",
2138
+ "disabled",
2139
+ "default-value",
2140
+ "model-value"
2141
+ ]));
2142
+ }
2143
+ });
2144
+ //#endregion
2145
+ export { Fe as n, Ie as r, gt as t };