cognova 0.2.19 → 0.2.21

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 (395) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/_nuxt/{D9xw8uE_.js → -O86rjFZ.js} +1 -1
  3. package/.output/public/_nuxt/{DOHxCkGP.js → -Q9J9PRu.js} +1 -1
  4. package/.output/public/_nuxt/{D7Wh0rDY.js → 0DkCurh5.js} +1 -1
  5. package/.output/public/_nuxt/{pBQdXg6-.js → 49whOfsW.js} +1 -1
  6. package/.output/public/_nuxt/{Ctk8prsJ.js → 4Vi9hKJC.js} +1 -1
  7. package/.output/public/_nuxt/{Ck27MWrT.js → 66GNa6MU.js} +1 -1
  8. package/.output/public/_nuxt/9dGxQN-2.js +1 -0
  9. package/.output/public/_nuxt/{D8mRVRI0.js → 9wWq016N.js} +1 -1
  10. package/.output/public/_nuxt/{GVe-4Ph3.js → B04GYyxD.js} +1 -1
  11. package/.output/public/_nuxt/{CZc2yEa4.js → B0KPvVav.js} +1 -1
  12. package/.output/public/_nuxt/{BU3iKy5X.js → B1meh0Ci.js} +1 -1
  13. package/.output/public/_nuxt/{BpyLpp2u.js → B53zbEPa.js} +1 -1
  14. package/.output/public/_nuxt/{lA4dCLQU.js → B6-aFDg7.js} +1 -1
  15. package/.output/public/_nuxt/{DkfpcEOx.js → B6lgiDn1.js} +1 -1
  16. package/.output/public/_nuxt/{BAHFbKQX.js → B7uuK82m.js} +1 -1
  17. package/.output/public/_nuxt/{CGU5SCtz.js → B9OPrqTh.js} +1 -1
  18. package/.output/public/_nuxt/{Jnpoujml.js → BA646MN4.js} +1 -1
  19. package/.output/public/_nuxt/{T9GHjrNI.js → BDhTzPPo.js} +1 -1
  20. package/.output/public/_nuxt/{C1adFeD7.js → BDzVzzBM.js} +1 -1
  21. package/.output/public/_nuxt/{DlI0WiRW.js → BEkFNtxw.js} +3 -3
  22. package/.output/public/_nuxt/{2esUefJW.js → BI7-RNYV.js} +1 -1
  23. package/.output/public/_nuxt/{CLemJ5rV.js → BN8XazaH.js} +3 -3
  24. package/.output/public/_nuxt/{CxeiZXxL.js → BNP0kT7B.js} +1 -1
  25. package/.output/public/_nuxt/{DaiuS8Oa.js → BPfVf7kt.js} +1 -1
  26. package/.output/public/_nuxt/{C83foXIS.js → BQGDi8tM.js} +1 -1
  27. package/.output/public/_nuxt/{BqcLcVqS.js → BUXewbUG.js} +1 -1
  28. package/.output/public/_nuxt/{DGW-6lPv.js → BW0FZi7D.js} +1 -1
  29. package/.output/public/_nuxt/{CANguo9i.js → BXmijQzM.js} +1 -1
  30. package/.output/public/_nuxt/{D5eZOtxz.js → BZFf3mr_.js} +1 -1
  31. package/.output/public/_nuxt/{L-wDsWD2.js → BZx0xqxG.js} +1 -1
  32. package/.output/public/_nuxt/{DaHtDNa_.js → BbElT9yG.js} +1 -1
  33. package/.output/public/_nuxt/{Cd_NSs1m.js → BjyHtuwq.js} +1 -1
  34. package/.output/public/_nuxt/{BgWDR6Lw.js → BnfOmQBX.js} +1 -1
  35. package/.output/public/_nuxt/BoqEl-F1.js +1 -0
  36. package/.output/public/_nuxt/{BdcvMuE5.js → Bq2pktu_.js} +2 -2
  37. package/.output/public/_nuxt/{Cmgjw0Gq.js → Br712gOY.js} +1 -1
  38. package/.output/public/_nuxt/{5wtsMO-L.js → Bs4sk8vv.js} +1 -1
  39. package/.output/public/_nuxt/{BU2cb1WW.js → Bt87rSlM.js} +1 -1
  40. package/.output/public/_nuxt/{CYTJ1RUE.js → BtOA13zl.js} +1 -1
  41. package/.output/public/_nuxt/{Da7TeqHg.js → Bti4Nb4c.js} +1 -1
  42. package/.output/public/_nuxt/{CinAAQCA.js → Bu0HhyZq.js} +1 -1
  43. package/.output/public/_nuxt/{B3GkYra-.js → Bv25Wgb9.js} +1 -1
  44. package/.output/public/_nuxt/{DzCd4XVJ.js → BwMPB_Mu.js} +1 -1
  45. package/.output/public/_nuxt/{CRDPv2IF.js → BzkqPhn-.js} +1 -1
  46. package/.output/public/_nuxt/{DHw1eO-H.js → C35LJkds.js} +1 -1
  47. package/.output/public/_nuxt/{0I_ByKAf.js → C4VW2EjN.js} +1 -1
  48. package/.output/public/_nuxt/{CB1bsj7q.js → C6FzuEFH.js} +1 -1
  49. package/.output/public/_nuxt/C866FgGj.js +1 -0
  50. package/.output/public/_nuxt/{BC8KsQEf.js → CBqC92gC.js} +7 -7
  51. package/.output/public/_nuxt/{BsjzqOSI.js → CD2Wt775.js} +1 -1
  52. package/.output/public/_nuxt/{CJFWEUF1.js → CE491BHV.js} +1 -1
  53. package/.output/public/_nuxt/{C2L_Po9T.js → CF8ziKf1.js} +1 -1
  54. package/.output/public/_nuxt/{uRnVeYSZ.js → CFE6wnRK.js} +1 -1
  55. package/.output/public/_nuxt/{Bt7k30rZ.js → CFjVdIUR.js} +1 -1
  56. package/.output/public/_nuxt/{BdwdSTTv.js → CGPn0bIO.js} +1 -1
  57. package/.output/public/_nuxt/{Dc7JcEzN.js → CKSWEIag.js} +1 -1
  58. package/.output/public/_nuxt/{DS0R5f-u.js → CL9cB3YW.js} +1 -1
  59. package/.output/public/_nuxt/{DBNKZ2lD.js → CLUsxCN7.js} +1 -1
  60. package/.output/public/_nuxt/{CRwLFCah.js → CM5aLXsq.js} +1 -1
  61. package/.output/public/_nuxt/{DLCiFGhh.js → CN_jZBEh.js} +1 -1
  62. package/.output/public/_nuxt/{CrvCHahl.js → CNgf0D2d.js} +1 -1
  63. package/.output/public/_nuxt/{Brn3KJ4F.js → CPYFvNZ2.js} +1 -1
  64. package/.output/public/_nuxt/{CGYcIC6i.js → CQTD64un.js} +1 -1
  65. package/.output/public/_nuxt/{Ce8HCJf2.js → CRLO8tx3.js} +1 -1
  66. package/.output/public/_nuxt/{BTXVr2qS.js → CTIUqf4N.js} +1 -1
  67. package/.output/public/_nuxt/{CqkDUH4g.js → CUDpi0L3.js} +1 -1
  68. package/.output/public/_nuxt/{eaWTN9Xx.js → CY4SEsrB.js} +1 -1
  69. package/.output/public/_nuxt/{DP_btl92.js → CYAPNNGW.js} +1 -1
  70. package/.output/public/_nuxt/{Bn6U1R03.js → CZV2u8Xx.js} +1 -1
  71. package/.output/public/_nuxt/{D-iqXq71.js → C_TYqFbT.js} +1 -1
  72. package/.output/public/_nuxt/{DcSBMY1N.js → CdIGoC9r.js} +1 -1
  73. package/.output/public/_nuxt/{Bub0AycX.js → CiPQXVBy.js} +1 -1
  74. package/.output/public/_nuxt/{B6b5WBUt.js → Cif20myG.js} +1 -1
  75. package/.output/public/_nuxt/{dh14EFai.js → Ck1KJ2HV.js} +1 -1
  76. package/.output/public/_nuxt/{DeGeWkgm.js → CkSyHzm-.js} +1 -1
  77. package/.output/public/_nuxt/{BFvHK_cM.js → ClKTC8bU.js} +1 -1
  78. package/.output/public/_nuxt/CltqyXO5.js +1 -0
  79. package/.output/public/_nuxt/{C4GJPeiI.js → CmuSeGko.js} +1 -1
  80. package/.output/public/_nuxt/{DWOW-Cdy.js → Cn_NBSuo.js} +1 -1
  81. package/.output/public/_nuxt/{ZaPXfv7F.js → CvUov1Ey.js} +1 -1
  82. package/.output/public/_nuxt/{BlZVX3pn.js → CwY5tLRb.js} +1 -1
  83. package/.output/public/_nuxt/{QYD2FF-Y.js → CwoQ23uO.js} +1 -1
  84. package/.output/public/_nuxt/{xD0dE8wS.js → Cwoe6TAi.js} +1 -1
  85. package/.output/public/_nuxt/{CRCPfQS-.js → CxTuME0Z.js} +2 -2
  86. package/.output/public/_nuxt/{CDFqHGd6.js → Cyjm1APH.js} +1 -1
  87. package/.output/public/_nuxt/{Q0XJORJf.js → Cyo4VJ6S.js} +1 -1
  88. package/.output/public/_nuxt/{BevO_JgG.js → D-WxGaym.js} +1 -1
  89. package/.output/public/_nuxt/{Bn-WtsyL.js → D0SYimTY.js} +1 -1
  90. package/.output/public/_nuxt/{C2VzD5v7.js → D82AhPdI.js} +1 -1
  91. package/.output/public/_nuxt/{Cd6yPoTw.js → D9dLxr1_.js} +1 -1
  92. package/.output/public/_nuxt/{CSzgREhd.js → D9jU4ocP.js} +1 -1
  93. package/.output/public/_nuxt/{BSZs06C7.js → DAQeLqQw.js} +1 -1
  94. package/.output/public/_nuxt/{k4gD2Q1e.js → DDg2H-HK.js} +1 -1
  95. package/.output/public/_nuxt/{C3LqKYMv.js → DESvLlSI.js} +1 -1
  96. package/.output/public/_nuxt/{CTpEHLzQ.js → DFSB3QxC.js} +1 -1
  97. package/.output/public/_nuxt/{BoRhj5eh.js → DFqzAgzP.js} +1 -1
  98. package/.output/public/_nuxt/{1xdJYr3g.js → DJuYHeIc.js} +1 -1
  99. package/.output/public/_nuxt/{BhICtOVw.js → DK0AJoGL.js} +1 -1
  100. package/.output/public/_nuxt/{DbdpgOQc.js → DQdWxVax.js} +1 -1
  101. package/.output/public/_nuxt/{U6oBvom5.js → DRF-DnQg.js} +1 -1
  102. package/.output/public/_nuxt/{BoyaE2WK.js → DUf0f355.js} +1 -1
  103. package/.output/public/_nuxt/{C2iUvu7Y.js → DWnLv2oh.js} +1 -1
  104. package/.output/public/_nuxt/{Dj92zOuJ.js → DXkvGTEB.js} +1 -1
  105. package/.output/public/_nuxt/{DJXhwj4b.js → DZncVjYt.js} +1 -1
  106. package/.output/public/_nuxt/{CRam5D7c.js → DaAG12aj.js} +1 -1
  107. package/.output/public/_nuxt/{D4s3pp8O.js → Db66Rsfj.js} +1 -1
  108. package/.output/public/_nuxt/{CmZjhT0Y.js → DbLjznUU.js} +1 -1
  109. package/.output/public/_nuxt/{BN8oBViB.js → Dfzca1IN.js} +1 -1
  110. package/.output/public/_nuxt/{DBLItvFs.js → DhvuBruY.js} +1 -1
  111. package/.output/public/_nuxt/{BOb2nBTe.js → Dj9yr6QC.js} +1 -1
  112. package/.output/public/_nuxt/{DiNFXBiC.js → DjJn4g73.js} +1 -1
  113. package/.output/public/_nuxt/{CPv7vm5a.js → DkAUrkyD.js} +1 -1
  114. package/.output/public/_nuxt/{BvaI39gO.js → DkybthvX.js} +1 -1
  115. package/.output/public/_nuxt/{BPuUmv9c.js → DlNwSYeM.js} +1 -1
  116. package/.output/public/_nuxt/{DFELG0yq.js → Dm5HyQgM.js} +1 -1
  117. package/.output/public/_nuxt/{Dvz3E9oI.js → Dn7zgQZh.js} +1 -1
  118. package/.output/public/_nuxt/{2GiGgeXh.js → DoIqoxBH.js} +1 -1
  119. package/.output/public/_nuxt/{Dn78Aa2V.js → Dqx39Omg.js} +1 -1
  120. package/.output/public/_nuxt/{DvClFXmZ.js → DrQVjmDX.js} +1 -1
  121. package/.output/public/_nuxt/{CwNlDU9U.js → DuYzdzqK.js} +1 -1
  122. package/.output/public/_nuxt/{SY-uB-M7.js → DvZW6QuM.js} +1 -1
  123. package/.output/public/_nuxt/{DKiTNmSv.js → DxztGg8Y.js} +1 -1
  124. package/.output/public/_nuxt/{DUws3F7Z.js → EPFrlLUV.js} +1 -1
  125. package/.output/public/_nuxt/{DJcB285V.js → JsQhjNzl.js} +1 -1
  126. package/.output/public/_nuxt/{CiB_saWz.js → NApXVVQD.js} +1 -1
  127. package/.output/public/_nuxt/{QLVAu0lw.js → OwiFxd0L.js} +1 -1
  128. package/.output/public/_nuxt/{CLz02Wwh.js → QAfF68DH.js} +1 -1
  129. package/.output/public/_nuxt/{BFdl5SgW.js → QDt0Bhze.js} +1 -1
  130. package/.output/public/_nuxt/{BRW_vpqh.js → RF9kzKHY.js} +1 -1
  131. package/.output/public/_nuxt/{Cudrwb04.js → RzJhlhBq.js} +1 -1
  132. package/.output/public/_nuxt/{DiMhvSOf.js → SHHFgixe.js} +1 -1
  133. package/.output/public/_nuxt/V5ro_Ide.js +1 -0
  134. package/.output/public/_nuxt/{Bu2PklVX.js → Zge3ScOQ.js} +1 -1
  135. package/.output/public/_nuxt/{CZ3rgvtp.js → Zj8SE5Ja.js} +1 -1
  136. package/.output/public/_nuxt/{edY2TeMa.js → ZjXNlFkb.js} +1 -1
  137. package/.output/public/_nuxt/{DS-fOYWT.js → _5GQc09B.js} +1 -1
  138. package/.output/public/_nuxt/{u3fzHugO.js → aK4BeJQk.js} +1 -1
  139. package/.output/public/_nuxt/builds/latest.json +1 -1
  140. package/.output/public/_nuxt/builds/meta/36770554-14f7-4f3a-add8-2f51436e3d25.json +1 -0
  141. package/.output/public/_nuxt/{CuhzX4Km.js → cQU5gXxh.js} +1 -1
  142. package/.output/public/_nuxt/{B8GQk9Pq.js → cq8AG_FV.js} +1 -1
  143. package/.output/public/_nuxt/{BrAACupN.js → d2FXPfMj.js} +1 -1
  144. package/.output/public/_nuxt/{r-hA7E7a.js → dD3g22lS.js} +1 -1
  145. package/.output/public/_nuxt/{rdjgsK-s.js → f35n4CdE.js} +1 -1
  146. package/.output/public/_nuxt/{5bb2zRmX.js → gWMUdeHB.js} +1 -1
  147. package/.output/public/_nuxt/{B6oh5cW5.js → i2HesToX.js} +1 -1
  148. package/.output/public/_nuxt/{Bw60ICyV.js → iIxC-lNx.js} +1 -1
  149. package/.output/public/_nuxt/{Dw6GDP1h.js → nRp8uM7H.js} +1 -1
  150. package/.output/public/_nuxt/{DNqEe3aR.js → oBlsjU0k.js} +1 -1
  151. package/.output/public/_nuxt/{oD8wGmeX.js → rH7JJqZQ.js} +1 -1
  152. package/.output/public/_nuxt/{DX7Ul07b.js → tak9pMy9.js} +1 -1
  153. package/.output/public/_nuxt/{FTxQ_eC3.js → vebhRA6y.js} +1 -1
  154. package/.output/server/chunks/build/A-BWukSPjS.mjs +1 -4
  155. package/.output/server/chunks/build/A-BWukSPjS.mjs.map +1 -1
  156. package/.output/server/chunks/build/Accordion-BaJYea6e.mjs +239 -307
  157. package/.output/server/chunks/build/Accordion-BaJYea6e.mjs.map +1 -1
  158. package/.output/server/chunks/build/AccordionItem-DdG2zgcN.mjs +1 -4
  159. package/.output/server/chunks/build/AccordionItem-DdG2zgcN.mjs.map +1 -1
  160. package/.output/server/chunks/build/AgentForm-styles.DCUnzu4-.mjs.map +1 -1
  161. package/.output/server/chunks/build/Badge-BrU9UkCv.mjs +1 -4
  162. package/.output/server/chunks/build/Badge-BrU9UkCv.mjs.map +1 -1
  163. package/.output/server/chunks/build/Badge-C1RKkIgG.mjs +42 -58
  164. package/.output/server/chunks/build/Badge-C1RKkIgG.mjs.map +1 -1
  165. package/.output/server/chunks/build/Blockquote-DND8wTkU.mjs +1 -4
  166. package/.output/server/chunks/build/Blockquote-DND8wTkU.mjs.map +1 -1
  167. package/.output/server/chunks/build/Callout-1halpaEg.mjs +6 -10
  168. package/.output/server/chunks/build/Callout-1halpaEg.mjs.map +1 -1
  169. package/.output/server/chunks/build/Card-BHCSDKDt.mjs +9 -13
  170. package/.output/server/chunks/build/Card-BHCSDKDt.mjs.map +1 -1
  171. package/.output/server/chunks/build/Card-G40WAFiH.mjs +10 -15
  172. package/.output/server/chunks/build/Card-G40WAFiH.mjs.map +1 -1
  173. package/.output/server/chunks/build/CardGroup-BOuJcNGp.mjs +1 -4
  174. package/.output/server/chunks/build/CardGroup-BOuJcNGp.mjs.map +1 -1
  175. package/.output/server/chunks/build/Code-B1xkAS5a.mjs +1 -4
  176. package/.output/server/chunks/build/Code-B1xkAS5a.mjs.map +1 -1
  177. package/.output/server/chunks/build/CodeCollapse-BIhaNa22.mjs +7 -11
  178. package/.output/server/chunks/build/CodeCollapse-BIhaNa22.mjs.map +1 -1
  179. package/.output/server/chunks/build/CodeGroup-BviYyCuo.mjs +50 -71
  180. package/.output/server/chunks/build/CodeGroup-BviYyCuo.mjs.map +1 -1
  181. package/.output/server/chunks/build/CodeIcon-CWD5HcV7.mjs +2 -6
  182. package/.output/server/chunks/build/CodeIcon-CWD5HcV7.mjs.map +1 -1
  183. package/.output/server/chunks/build/CodePreview-D8PsCQ6m.mjs +4 -8
  184. package/.output/server/chunks/build/CodePreview-D8PsCQ6m.mjs.map +1 -1
  185. package/.output/server/chunks/build/CodeTree-BUTLupmL.mjs +74 -89
  186. package/.output/server/chunks/build/CodeTree-BUTLupmL.mjs.map +1 -1
  187. package/.output/server/chunks/build/Collapsible-BIvXNaSq.mjs +11 -20
  188. package/.output/server/chunks/build/Collapsible-BIvXNaSq.mjs.map +1 -1
  189. package/.output/server/chunks/build/ColorModeButton-CiS8E1tc.mjs +4 -5
  190. package/.output/server/chunks/build/ConfirmModal-DuQXeyic.mjs.map +1 -1
  191. package/.output/server/chunks/build/Container-DYkNsgEA.mjs +1 -4
  192. package/.output/server/chunks/build/Container-DYkNsgEA.mjs.map +1 -1
  193. package/.output/server/chunks/build/DashboardNavbar-Cpq8yKA0.mjs +43 -66
  194. package/.output/server/chunks/build/DashboardNavbar-Cpq8yKA0.mjs.map +1 -1
  195. package/.output/server/chunks/build/DashboardSidebarToggle-Chnqv04k.mjs +6 -15
  196. package/.output/server/chunks/build/DashboardSidebarToggle-Chnqv04k.mjs.map +1 -1
  197. package/.output/server/chunks/build/DashboardToolbar-66a616OO.mjs +18 -26
  198. package/.output/server/chunks/build/DashboardToolbar-66a616OO.mjs.map +1 -1
  199. package/.output/server/chunks/build/DocumentEditor-styles.CHRLgdKS.mjs.map +1 -1
  200. package/.output/server/chunks/build/Drawer-zOHju6ul.mjs +229 -263
  201. package/.output/server/chunks/build/Drawer-zOHju6ul.mjs.map +1 -1
  202. package/.output/server/chunks/build/DropdownMenu-BBrV9nXz.mjs +419 -483
  203. package/.output/server/chunks/build/DropdownMenu-BBrV9nXz.mjs.map +1 -1
  204. package/.output/server/chunks/build/EditorToolbar-B9OwSI5e.mjs +148 -179
  205. package/.output/server/chunks/build/EditorToolbar-B9OwSI5e.mjs.map +1 -1
  206. package/.output/server/chunks/build/Em-DsIz_BnD.mjs +1 -4
  207. package/.output/server/chunks/build/Em-DsIz_BnD.mjs.map +1 -1
  208. package/.output/server/chunks/build/Field-cwwmSQDT.mjs +14 -19
  209. package/.output/server/chunks/build/Field-cwwmSQDT.mjs.map +1 -1
  210. package/.output/server/chunks/build/FieldGroup-CAIpQv8s.mjs +1 -4
  211. package/.output/server/chunks/build/FieldGroup-CAIpQv8s.mjs.map +1 -1
  212. package/.output/server/chunks/build/FieldGroup-KzsWn_XG.mjs +1 -4
  213. package/.output/server/chunks/build/FieldGroup-KzsWn_XG.mjs.map +1 -1
  214. package/.output/server/chunks/build/Form-X6hlUv6q.mjs +20 -44
  215. package/.output/server/chunks/build/Form-X6hlUv6q.mjs.map +1 -1
  216. package/.output/server/chunks/build/FormField-Caux_FCv.mjs +23 -34
  217. package/.output/server/chunks/build/FormField-Caux_FCv.mjs.map +1 -1
  218. package/.output/server/chunks/build/H1-BbFNsPyP.mjs +4 -9
  219. package/.output/server/chunks/build/H1-BbFNsPyP.mjs.map +1 -1
  220. package/.output/server/chunks/build/H2-vHTl_pWr.mjs +5 -10
  221. package/.output/server/chunks/build/H2-vHTl_pWr.mjs.map +1 -1
  222. package/.output/server/chunks/build/H3-7eTcfO3s.mjs +5 -10
  223. package/.output/server/chunks/build/H3-7eTcfO3s.mjs.map +1 -1
  224. package/.output/server/chunks/build/H4-C89p_PKO.mjs +4 -9
  225. package/.output/server/chunks/build/H4-C89p_PKO.mjs.map +1 -1
  226. package/.output/server/chunks/build/Hr-Bm8RlL3O.mjs +1 -4
  227. package/.output/server/chunks/build/Hr-Bm8RlL3O.mjs.map +1 -1
  228. package/.output/server/chunks/build/Icon-Dp9iy0BI.mjs +1 -4
  229. package/.output/server/chunks/build/Icon-Dp9iy0BI.mjs.map +1 -1
  230. package/.output/server/chunks/build/Img-CWLmvN1t.mjs +63 -76
  231. package/.output/server/chunks/build/Img-CWLmvN1t.mjs.map +1 -1
  232. package/.output/server/chunks/build/Input-CV2hlBHo.mjs +54 -70
  233. package/.output/server/chunks/build/Input-CV2hlBHo.mjs.map +1 -1
  234. package/.output/server/chunks/build/InputTags-VS4G6txn.mjs +101 -133
  235. package/.output/server/chunks/build/InputTags-VS4G6txn.mjs.map +1 -1
  236. package/.output/server/chunks/build/Kbd-CQG6I_Ch.mjs +1 -4
  237. package/.output/server/chunks/build/Kbd-CQG6I_Ch.mjs.map +1 -1
  238. package/.output/server/chunks/build/Kbd-Daq7k0fm.mjs +19 -22
  239. package/.output/server/chunks/build/Kbd-Daq7k0fm.mjs.map +1 -1
  240. package/.output/server/chunks/build/Li-Bw1QUaGv.mjs +1 -4
  241. package/.output/server/chunks/build/Li-Bw1QUaGv.mjs.map +1 -1
  242. package/.output/server/chunks/build/{MDC-CBPIDFRQ.mjs → MDC-Dx0YPDhe.mjs} +38 -58
  243. package/.output/server/chunks/build/{MDC-CBPIDFRQ.mjs.map → MDC-Dx0YPDhe.mjs.map} +1 -1
  244. package/.output/server/chunks/build/Modal-Z_SoWhh-.mjs +299 -343
  245. package/.output/server/chunks/build/Modal-Z_SoWhh-.mjs.map +1 -1
  246. package/.output/server/chunks/build/Ol-D-fPnfFM.mjs +1 -4
  247. package/.output/server/chunks/build/Ol-D-fPnfFM.mjs.map +1 -1
  248. package/.output/server/chunks/build/P-B5YI1V9y.mjs +1 -4
  249. package/.output/server/chunks/build/P-B5YI1V9y.mjs.map +1 -1
  250. package/.output/server/chunks/build/Pre-ChiJcf3C.mjs +7 -11
  251. package/.output/server/chunks/build/Pre-ChiJcf3C.mjs.map +1 -1
  252. package/.output/server/chunks/build/Pre-styles.Ddy5_gRD.mjs.map +1 -1
  253. package/.output/server/chunks/build/ProseH5-DahJyv8h.mjs +1 -4
  254. package/.output/server/chunks/build/ProseH6-C4Is5h6c.mjs +1 -4
  255. package/.output/server/chunks/build/Select-BB1oLrCD.mjs +643 -758
  256. package/.output/server/chunks/build/Select-BB1oLrCD.mjs.map +1 -1
  257. package/.output/server/chunks/build/SelectMenu-DPssg6zD.mjs +702 -814
  258. package/.output/server/chunks/build/SelectMenu-DPssg6zD.mjs.map +1 -1
  259. package/.output/server/chunks/build/Separator-CYbxFNTe.mjs +35 -44
  260. package/.output/server/chunks/build/Separator-CYbxFNTe.mjs.map +1 -1
  261. package/.output/server/chunks/build/Skeleton-DZqsQzFi.mjs +1 -4
  262. package/.output/server/chunks/build/Skeleton-DZqsQzFi.mjs.map +1 -1
  263. package/.output/server/chunks/build/Slideover-DJNgcnZ2.mjs +282 -322
  264. package/.output/server/chunks/build/Slideover-DJNgcnZ2.mjs.map +1 -1
  265. package/.output/server/chunks/build/Steps-BZpvXfzb.mjs +1 -4
  266. package/.output/server/chunks/build/Steps-BZpvXfzb.mjs.map +1 -1
  267. package/.output/server/chunks/build/Strong-DXJqOWL3.mjs +1 -4
  268. package/.output/server/chunks/build/Strong-DXJqOWL3.mjs.map +1 -1
  269. package/.output/server/chunks/build/Switch-GWdksmY6.mjs +75 -92
  270. package/.output/server/chunks/build/Switch-GWdksmY6.mjs.map +1 -1
  271. package/.output/server/chunks/build/Table-BSrLZ7dt.mjs +3 -7
  272. package/.output/server/chunks/build/Table-BSrLZ7dt.mjs.map +1 -1
  273. package/.output/server/chunks/build/Table-DCwTlhCj.mjs +67 -95
  274. package/.output/server/chunks/build/Table-DCwTlhCj.mjs.map +1 -1
  275. package/.output/server/chunks/build/Tabs-B6vgKDY9.mjs +164 -205
  276. package/.output/server/chunks/build/Tabs-B6vgKDY9.mjs.map +1 -1
  277. package/.output/server/chunks/build/Tabs-Dk3nvOFF.mjs +7 -13
  278. package/.output/server/chunks/build/Tabs-Dk3nvOFF.mjs.map +1 -1
  279. package/.output/server/chunks/build/TabsItem-CDhyuBtJ.mjs +1 -4
  280. package/.output/server/chunks/build/TabsItem-CDhyuBtJ.mjs.map +1 -1
  281. package/.output/server/chunks/build/TaskForm-styles.DRSLq_mo.mjs.map +1 -1
  282. package/.output/server/chunks/build/Tbody-CjMT5oH-.mjs +1 -4
  283. package/.output/server/chunks/build/Tbody-CjMT5oH-.mjs.map +1 -1
  284. package/.output/server/chunks/build/Td-ZBVaEjFN.mjs +1 -4
  285. package/.output/server/chunks/build/Td-ZBVaEjFN.mjs.map +1 -1
  286. package/.output/server/chunks/build/Th-D317icbd.mjs +1 -4
  287. package/.output/server/chunks/build/Th-D317icbd.mjs.map +1 -1
  288. package/.output/server/chunks/build/Thead-Ca_ZESTK.mjs +1 -4
  289. package/.output/server/chunks/build/Thead-Ca_ZESTK.mjs.map +1 -1
  290. package/.output/server/chunks/build/Tooltip-TRyl6dje.mjs +90 -119
  291. package/.output/server/chunks/build/Tooltip-TRyl6dje.mjs.map +1 -1
  292. package/.output/server/chunks/build/Tr-6jI8j9gD.mjs +1 -4
  293. package/.output/server/chunks/build/Tr-6jI8j9gD.mjs.map +1 -1
  294. package/.output/server/chunks/build/Tree-DUhXKd8y.mjs +600 -724
  295. package/.output/server/chunks/build/Tree-DUhXKd8y.mjs.map +1 -1
  296. package/.output/server/chunks/build/Ul-BUGj_CPb.mjs +1 -4
  297. package/.output/server/chunks/build/Ul-BUGj_CPb.mjs.map +1 -1
  298. package/.output/server/chunks/build/_id_-CwBeklIM.mjs +6 -11
  299. package/.output/server/chunks/build/_id_-CwBeklIM.mjs.map +1 -1
  300. package/.output/server/chunks/build/_name_-D7MtW4Vu.mjs +80 -95
  301. package/.output/server/chunks/build/_name_-D7MtW4Vu.mjs.map +1 -1
  302. package/.output/server/chunks/build/{_uuid_-22DWyyT2.mjs → _uuid_-lvG92ein.mjs} +47 -90
  303. package/.output/server/chunks/build/_uuid_-lvG92ein.mjs.map +1 -0
  304. package/.output/server/chunks/build/account-LDZ4TL6x.mjs.map +1 -1
  305. package/.output/server/chunks/build/app-CGhRZPNT.mjs +4 -6
  306. package/.output/server/chunks/build/app-CGhRZPNT.mjs.map +1 -1
  307. package/.output/server/chunks/build/auth-BGPNH2QJ.mjs.map +1 -1
  308. package/.output/server/chunks/build/{chat-marxFgC2.mjs → chat-BphuYhvA.mjs} +15 -24
  309. package/.output/server/chunks/build/chat-BphuYhvA.mjs.map +1 -0
  310. package/.output/server/chunks/build/client.precomputed.mjs +1 -1
  311. package/.output/server/chunks/build/client.precomputed.mjs.map +1 -1
  312. package/.output/server/chunks/build/cookie-C_iulBi6.mjs +3 -4
  313. package/.output/server/chunks/build/dashboard-CLk1NlbR.mjs +10 -11
  314. package/.output/server/chunks/build/dashboard-CLk1NlbR.mjs.map +1 -1
  315. package/.output/server/chunks/build/dashboard-nDujDyOg.mjs +2196 -2613
  316. package/.output/server/chunks/build/dashboard-nDujDyOg.mjs.map +1 -1
  317. package/.output/server/chunks/build/docs-Bwucwp0r.mjs +57 -79
  318. package/.output/server/chunks/build/docs-Bwucwp0r.mjs.map +1 -1
  319. package/.output/server/chunks/build/error-404-styles.AYNYglVn.mjs.map +1 -1
  320. package/.output/server/chunks/build/error-500-styles.CQugGB96.mjs.map +1 -1
  321. package/.output/server/chunks/build/fetch-BB7Qzkwe.mjs +1 -2
  322. package/.output/server/chunks/build/hooks-D6PmTth8.mjs +4 -5
  323. package/.output/server/chunks/build/hooks-D6PmTth8.mjs.map +1 -1
  324. package/.output/server/chunks/build/{index-B3B162Ta.mjs → index-Byt-3Yq6.mjs} +607 -742
  325. package/.output/server/chunks/build/index-Byt-3Yq6.mjs.map +1 -0
  326. package/.output/server/chunks/build/index-CJkn2jiM.mjs +58 -84
  327. package/.output/server/chunks/build/index-CJkn2jiM.mjs.map +1 -1
  328. package/.output/server/chunks/build/{index-jLKAA7pL.mjs → index-CxDxc9fm.mjs} +39 -53
  329. package/.output/server/chunks/build/{index-jLKAA7pL.mjs.map → index-CxDxc9fm.mjs.map} +1 -1
  330. package/.output/server/chunks/build/index-Cz9Y6NwN.mjs +1 -2
  331. package/.output/server/chunks/build/index-Cz9Y6NwN.mjs.map +1 -1
  332. package/.output/server/chunks/build/{index-Cl87bx3X.mjs → index-DzdvIi8V.mjs} +6 -8
  333. package/.output/server/chunks/build/{index-Cl87bx3X.mjs.map → index-DzdvIi8V.mjs.map} +1 -1
  334. package/.output/server/chunks/build/{integrations-D5JWURiJ.mjs → integrations-Hf4O1jkW.mjs} +46 -111
  335. package/.output/server/chunks/build/integrations-Hf4O1jkW.mjs.map +1 -0
  336. package/.output/server/chunks/build/library-DxRdgP6X.mjs.map +1 -1
  337. package/.output/server/chunks/build/login-BmER_VoU.mjs +293 -349
  338. package/.output/server/chunks/build/login-BmER_VoU.mjs.map +1 -1
  339. package/.output/server/chunks/build/manage-secrets-BWzqc_-f.mjs +9 -11
  340. package/.output/server/chunks/build/manage-secrets-BWzqc_-f.mjs.map +1 -1
  341. package/.output/server/chunks/build/mdc-highlighter.mjs.map +1 -1
  342. package/.output/server/chunks/build/memories-BqA719O1.mjs.map +1 -1
  343. package/.output/server/chunks/build/node-D32ZN4X1.mjs +1 -2
  344. package/.output/server/chunks/build/server.mjs +7 -7
  345. package/.output/server/chunks/build/server.mjs.map +1 -1
  346. package/.output/server/chunks/build/settings-neokAVE5.mjs.map +1 -1
  347. package/.output/server/chunks/build/slot-BA0jpvfd.mjs +1 -1
  348. package/.output/server/chunks/build/ssr-Bqnw2a-w.mjs +3 -5
  349. package/.output/server/chunks/build/ssrSlot-FUxZcI57.mjs +1 -1
  350. package/.output/server/chunks/build/styles.mjs +2 -2
  351. package/.output/server/chunks/build/styles.mjs.map +1 -1
  352. package/.output/server/chunks/build/{tasks-DLUNgLwE.mjs → tasks-CnpIQNpS.mjs} +7 -18
  353. package/.output/server/chunks/build/tasks-CnpIQNpS.mjs.map +1 -0
  354. package/.output/server/chunks/build/usage-BHdQZbfI.mjs +231 -293
  355. package/.output/server/chunks/build/usage-BHdQZbfI.mjs.map +1 -1
  356. package/.output/server/chunks/build/useAgents-nmbkB9-_.mjs +2 -3
  357. package/.output/server/chunks/build/useAgents-nmbkB9-_.mjs.map +1 -1
  358. package/.output/server/chunks/build/useAuth-rW9toE_m.mjs +4 -14
  359. package/.output/server/chunks/build/useAuth-rW9toE_m.mjs.map +1 -1
  360. package/.output/server/chunks/build/useCopyToClipboard-vi6FYyyZ.mjs +1 -2
  361. package/.output/server/chunks/build/useCopyToClipboard-vi6FYyyZ.mjs.map +1 -1
  362. package/.output/server/chunks/build/useNotificationBus-BG5JNQf1.mjs.map +1 -1
  363. package/.output/server/chunks/build/usePreferences-DH1QjxOj.mjs +1 -2
  364. package/.output/server/chunks/build/usePreferences-DH1QjxOj.mjs.map +1 -1
  365. package/.output/server/chunks/build/view-mb0ISqfM.mjs +105 -140
  366. package/.output/server/chunks/build/view-mb0ISqfM.mjs.map +1 -1
  367. package/.output/server/chunks/build/{virtual_nuxt__Users_tony_Documents_GitHub_second-brain_.nuxt_mdc-configs-D-mPnyQ5.mjs → virtual_nuxt__Users_tony_Documents_GitHub_second-brain_node_modules_.cache_nuxt_.nuxt_mdc-configs-D-mPnyQ5.mjs} +1 -1
  368. package/.output/server/chunks/build/virtual_nuxt__Users_tony_Documents_GitHub_second-brain_node_modules_.cache_nuxt_.nuxt_mdc-configs-D-mPnyQ5.mjs.map +1 -0
  369. package/.output/server/chunks/build/{virtual_nuxt__Users_tony_Documents_GitHub_second-brain_.nuxt_mdc-imports-PtwWlZ2H.mjs → virtual_nuxt__Users_tony_Documents_GitHub_second-brain_node_modules_.cache_nuxt_.nuxt_mdc-imports-PtwWlZ2H.mjs} +4 -4
  370. package/.output/server/chunks/build/virtual_nuxt__Users_tony_Documents_GitHub_second-brain_node_modules_.cache_nuxt_.nuxt_mdc-imports-PtwWlZ2H.mjs.map +1 -0
  371. package/.output/server/chunks/nitro/nitro.mjs +905 -996
  372. package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
  373. package/.output/server/package.json +1 -1
  374. package/Claude/skills/_lib/api.py +4 -4
  375. package/Claude/skills/project/project.py +2 -1
  376. package/Claude/skills/skill-creator/SKILL.md +7 -0
  377. package/Claude/skills/task/task.py +4 -3
  378. package/app/pages/settings/integrations.vue +2 -23
  379. package/dist/cli/index.js +372 -170
  380. package/package.json +1 -1
  381. package/server/bridge/adapters/imessage.ts +12 -136
  382. package/shared/types/index.ts +0 -2
  383. package/.output/public/_nuxt/BV9LrrQq.js +0 -1
  384. package/.output/public/_nuxt/CdcXA9zv.js +0 -1
  385. package/.output/public/_nuxt/Cv2DAUoN.js +0 -1
  386. package/.output/public/_nuxt/DEgm6J7X.js +0 -1
  387. package/.output/public/_nuxt/DL1RFS0w.js +0 -1
  388. package/.output/public/_nuxt/builds/meta/cb5185ae-c87f-4b13-8998-00a627da9237.json +0 -1
  389. package/.output/server/chunks/build/_uuid_-22DWyyT2.mjs.map +0 -1
  390. package/.output/server/chunks/build/chat-marxFgC2.mjs.map +0 -1
  391. package/.output/server/chunks/build/index-B3B162Ta.mjs.map +0 -1
  392. package/.output/server/chunks/build/integrations-D5JWURiJ.mjs.map +0 -1
  393. package/.output/server/chunks/build/tasks-DLUNgLwE.mjs.map +0 -1
  394. package/.output/server/chunks/build/virtual_nuxt__Users_tony_Documents_GitHub_second-brain_.nuxt_mdc-configs-D-mPnyQ5.mjs.map +0 -1
  395. package/.output/server/chunks/build/virtual_nuxt__Users_tony_Documents_GitHub_second-brain_.nuxt_mdc-imports-PtwWlZ2H.mjs.map +0 -1
@@ -50,10 +50,7 @@ const _sfc_main$2 = {
50
50
  const [DefineItemTemplate, ReuseItemTemplate] = createReusableTemplate();
51
51
  const childrenIcon = computed(() => dir.value === "rtl" ? appConfig.ui.icons.chevronLeft : appConfig.ui.icons.chevronRight);
52
52
  const groups = computed(
53
- () => {
54
- var _a;
55
- return ((_a = props.items) == null ? void 0 : _a.length) ? isArrayOfArray(props.items) ? props.items : [props.items] : [];
56
- }
53
+ () => props.items?.length ? isArrayOfArray(props.items) ? props.items : [props.items] : []
57
54
  );
58
55
  return (_ctx, _push, _parent, _attrs) => {
59
56
  _push(`<!--[-->`);
@@ -65,39 +62,37 @@ const _sfc_main$2 = {
65
62
  index,
66
63
  ui: __props.ui
67
64
  }, () => {
68
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
69
65
  ssrRenderSlot(_ctx.$slots, item.slot ? `${item.slot}-leading` : "item-leading", {
70
66
  item,
71
67
  active,
72
68
  index,
73
69
  ui: __props.ui
74
70
  }, () => {
75
- var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2;
76
71
  if (item.loading) {
77
72
  _push2(ssrRenderComponent(_sfc_main$d, {
78
73
  name: __props.loadingIcon || unref(appConfig).ui.icons.loading,
79
74
  "data-slot": "itemLeadingIcon",
80
- class: __props.ui.itemLeadingIcon({ class: [(_a2 = __props.uiOverride) == null ? void 0 : _a2.itemLeadingIcon, (_b2 = item.ui) == null ? void 0 : _b2.itemLeadingIcon], color: item == null ? void 0 : item.color, loading: true })
75
+ class: __props.ui.itemLeadingIcon({ class: [__props.uiOverride?.itemLeadingIcon, item.ui?.itemLeadingIcon], color: item?.color, loading: true })
81
76
  }, null, _parent2, _scopeId));
82
77
  } else if (item.icon) {
83
78
  _push2(ssrRenderComponent(_sfc_main$d, {
84
79
  name: item.icon,
85
80
  "data-slot": "itemLeadingIcon",
86
- class: __props.ui.itemLeadingIcon({ class: [(_c2 = __props.uiOverride) == null ? void 0 : _c2.itemLeadingIcon, (_d2 = item.ui) == null ? void 0 : _d2.itemLeadingIcon], color: item == null ? void 0 : item.color, active })
81
+ class: __props.ui.itemLeadingIcon({ class: [__props.uiOverride?.itemLeadingIcon, item.ui?.itemLeadingIcon], color: item?.color, active })
87
82
  }, null, _parent2, _scopeId));
88
83
  } else if (item.avatar) {
89
84
  _push2(ssrRenderComponent(_sfc_main$b, mergeProps({
90
- size: ((_e2 = item.ui) == null ? void 0 : _e2.itemLeadingAvatarSize) || ((_f2 = __props.uiOverride) == null ? void 0 : _f2.itemLeadingAvatarSize) || __props.ui.itemLeadingAvatarSize()
85
+ size: item.ui?.itemLeadingAvatarSize || __props.uiOverride?.itemLeadingAvatarSize || __props.ui.itemLeadingAvatarSize()
91
86
  }, item.avatar, {
92
87
  "data-slot": "itemLeadingAvatar",
93
- class: __props.ui.itemLeadingAvatar({ class: [(_g2 = __props.uiOverride) == null ? void 0 : _g2.itemLeadingAvatar, (_h2 = item.ui) == null ? void 0 : _h2.itemLeadingAvatar], active })
88
+ class: __props.ui.itemLeadingAvatar({ class: [__props.uiOverride?.itemLeadingAvatar, item.ui?.itemLeadingAvatar], active })
94
89
  }), null, _parent2, _scopeId));
95
90
  } else {
96
91
  _push2(`<!---->`);
97
92
  }
98
93
  }, _push2, _parent2, _scopeId);
99
94
  if (unref(get)(item, props.labelKey) || !!slots[item.slot ? `${item.slot}-label` : "item-label"] || (unref(get)(item, props.descriptionKey) || !!slots[item.slot ? `${item.slot}-description` : "item-description"])) {
100
- _push2(`<span data-slot="itemWrapper" class="${ssrRenderClass(__props.ui.itemWrapper({ class: [(_a = __props.uiOverride) == null ? void 0 : _a.itemWrapper, (_b = item.ui) == null ? void 0 : _b.itemWrapper] }))}"${_scopeId}><span data-slot="itemLabel" class="${ssrRenderClass(__props.ui.itemLabel({ class: [(_c = __props.uiOverride) == null ? void 0 : _c.itemLabel, (_d = item.ui) == null ? void 0 : _d.itemLabel], active }))}"${_scopeId}>`);
95
+ _push2(`<span data-slot="itemWrapper" class="${ssrRenderClass(__props.ui.itemWrapper({ class: [__props.uiOverride?.itemWrapper, item.ui?.itemWrapper] }))}"${_scopeId}><span data-slot="itemLabel" class="${ssrRenderClass(__props.ui.itemLabel({ class: [__props.uiOverride?.itemLabel, item.ui?.itemLabel], active }))}"${_scopeId}>`);
101
96
  ssrRenderSlot(_ctx.$slots, item.slot ? `${item.slot}-label` : "item-label", {
102
97
  item,
103
98
  active,
@@ -109,14 +104,14 @@ const _sfc_main$2 = {
109
104
  _push2(ssrRenderComponent(_sfc_main$d, {
110
105
  name: typeof __props.externalIcon === "string" ? __props.externalIcon : unref(appConfig).ui.icons.external,
111
106
  "data-slot": "itemLabelExternalIcon",
112
- class: __props.ui.itemLabelExternalIcon({ class: [(_e = __props.uiOverride) == null ? void 0 : _e.itemLabelExternalIcon, (_f = item.ui) == null ? void 0 : _f.itemLabelExternalIcon], color: item == null ? void 0 : item.color, active })
107
+ class: __props.ui.itemLabelExternalIcon({ class: [__props.uiOverride?.itemLabelExternalIcon, item.ui?.itemLabelExternalIcon], color: item?.color, active })
113
108
  }, null, _parent2, _scopeId));
114
109
  } else {
115
110
  _push2(`<!---->`);
116
111
  }
117
112
  _push2(`</span>`);
118
113
  if (unref(get)(item, props.descriptionKey)) {
119
- _push2(`<span data-slot="itemDescription" class="${ssrRenderClass(__props.ui.itemDescription({ class: [(_g = __props.uiOverride) == null ? void 0 : _g.itemDescription, (_h = item.ui) == null ? void 0 : _h.itemDescription] }))}"${_scopeId}>`);
114
+ _push2(`<span data-slot="itemDescription" class="${ssrRenderClass(__props.ui.itemDescription({ class: [__props.uiOverride?.itemDescription, item.ui?.itemDescription] }))}"${_scopeId}>`);
120
115
  ssrRenderSlot(_ctx.$slots, item.slot ? `${item.slot}-description` : "item-description", {
121
116
  item,
122
117
  active,
@@ -132,27 +127,25 @@ const _sfc_main$2 = {
132
127
  } else {
133
128
  _push2(`<!---->`);
134
129
  }
135
- _push2(`<span data-slot="itemTrailing" class="${ssrRenderClass(__props.ui.itemTrailing({ class: [(_i = __props.uiOverride) == null ? void 0 : _i.itemTrailing, (_j = item.ui) == null ? void 0 : _j.itemTrailing] }))}"${_scopeId}>`);
130
+ _push2(`<span data-slot="itemTrailing" class="${ssrRenderClass(__props.ui.itemTrailing({ class: [__props.uiOverride?.itemTrailing, item.ui?.itemTrailing] }))}"${_scopeId}>`);
136
131
  ssrRenderSlot(_ctx.$slots, item.slot ? `${item.slot}-trailing` : "item-trailing", {
137
132
  item,
138
133
  active,
139
134
  index,
140
135
  ui: __props.ui
141
136
  }, () => {
142
- var _a2, _b2, _c2, _d2, _e2, _f2;
143
- if ((_a2 = item.children) == null ? void 0 : _a2.length) {
137
+ if (item.children?.length) {
144
138
  _push2(ssrRenderComponent(_sfc_main$d, {
145
139
  name: childrenIcon.value,
146
140
  "data-slot": "itemTrailingIcon",
147
- class: __props.ui.itemTrailingIcon({ class: [(_b2 = __props.uiOverride) == null ? void 0 : _b2.itemTrailingIcon, (_c2 = item.ui) == null ? void 0 : _c2.itemTrailingIcon], color: item == null ? void 0 : item.color, active })
141
+ class: __props.ui.itemTrailingIcon({ class: [__props.uiOverride?.itemTrailingIcon, item.ui?.itemTrailingIcon], color: item?.color, active })
148
142
  }, null, _parent2, _scopeId));
149
- } else if ((_d2 = item.kbds) == null ? void 0 : _d2.length) {
150
- _push2(`<span data-slot="itemTrailingKbds" class="${ssrRenderClass(__props.ui.itemTrailingKbds({ class: [(_e2 = __props.uiOverride) == null ? void 0 : _e2.itemTrailingKbds, (_f2 = item.ui) == null ? void 0 : _f2.itemTrailingKbds] }))}"${_scopeId}><!--[-->`);
143
+ } else if (item.kbds?.length) {
144
+ _push2(`<span data-slot="itemTrailingKbds" class="${ssrRenderClass(__props.ui.itemTrailingKbds({ class: [__props.uiOverride?.itemTrailingKbds, item.ui?.itemTrailingKbds] }))}"${_scopeId}><!--[-->`);
151
145
  ssrRenderList(item.kbds, (kbd, kbdIndex) => {
152
- var _a3, _b3;
153
146
  _push2(ssrRenderComponent(_sfc_main$3, mergeProps({
154
147
  key: kbdIndex,
155
- size: ((_a3 = item.ui) == null ? void 0 : _a3.itemTrailingKbdsSize) || ((_b3 = __props.uiOverride) == null ? void 0 : _b3.itemTrailingKbdsSize) || __props.ui.itemTrailingKbdsSize()
148
+ size: item.ui?.itemTrailingKbdsSize || __props.uiOverride?.itemTrailingKbdsSize || __props.ui.itemTrailingKbdsSize()
156
149
  }, { ref_for: true }, typeof kbd === "string" ? { value: kbd } : kbd), null, _parent2, _scopeId));
157
150
  });
158
151
  _push2(`<!--]--></span>`);
@@ -162,19 +155,18 @@ const _sfc_main$2 = {
162
155
  }, _push2, _parent2, _scopeId);
163
156
  _push2(ssrRenderComponent(unref(ContextMenu).ItemIndicator, { "as-child": "" }, {
164
157
  default: withCtx((_, _push3, _parent3, _scopeId2) => {
165
- var _a2, _b2, _c2, _d2;
166
158
  if (_push3) {
167
159
  _push3(ssrRenderComponent(_sfc_main$d, {
168
160
  name: __props.checkedIcon || unref(appConfig).ui.icons.check,
169
161
  "data-slot": "itemTrailingIcon",
170
- class: __props.ui.itemTrailingIcon({ class: [(_a2 = __props.uiOverride) == null ? void 0 : _a2.itemTrailingIcon, (_b2 = item.ui) == null ? void 0 : _b2.itemTrailingIcon], color: item == null ? void 0 : item.color })
162
+ class: __props.ui.itemTrailingIcon({ class: [__props.uiOverride?.itemTrailingIcon, item.ui?.itemTrailingIcon], color: item?.color })
171
163
  }, null, _parent3, _scopeId2));
172
164
  } else {
173
165
  return [
174
166
  createVNode(_sfc_main$d, {
175
167
  name: __props.checkedIcon || unref(appConfig).ui.icons.check,
176
168
  "data-slot": "itemTrailingIcon",
177
- class: __props.ui.itemTrailingIcon({ class: [(_c2 = __props.uiOverride) == null ? void 0 : _c2.itemTrailingIcon, (_d2 = item.ui) == null ? void 0 : _d2.itemTrailingIcon], color: item == null ? void 0 : item.color })
169
+ class: __props.ui.itemTrailingIcon({ class: [__props.uiOverride?.itemTrailingIcon, item.ui?.itemTrailingIcon], color: item?.color })
178
170
  }, null, 8, ["name", "class"])
179
171
  ];
180
172
  }
@@ -189,121 +181,108 @@ const _sfc_main$2 = {
189
181
  item,
190
182
  index,
191
183
  ui: __props.ui
192
- }, () => {
193
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
194
- return [
195
- renderSlot(_ctx.$slots, item.slot ? `${item.slot}-leading` : "item-leading", {
184
+ }, () => [
185
+ renderSlot(_ctx.$slots, item.slot ? `${item.slot}-leading` : "item-leading", {
186
+ item,
187
+ active,
188
+ index,
189
+ ui: __props.ui
190
+ }, () => [
191
+ item.loading ? (openBlock(), createBlock(_sfc_main$d, {
192
+ key: 0,
193
+ name: __props.loadingIcon || unref(appConfig).ui.icons.loading,
194
+ "data-slot": "itemLeadingIcon",
195
+ class: __props.ui.itemLeadingIcon({ class: [__props.uiOverride?.itemLeadingIcon, item.ui?.itemLeadingIcon], color: item?.color, loading: true })
196
+ }, null, 8, ["name", "class"])) : item.icon ? (openBlock(), createBlock(_sfc_main$d, {
197
+ key: 1,
198
+ name: item.icon,
199
+ "data-slot": "itemLeadingIcon",
200
+ class: __props.ui.itemLeadingIcon({ class: [__props.uiOverride?.itemLeadingIcon, item.ui?.itemLeadingIcon], color: item?.color, active })
201
+ }, null, 8, ["name", "class"])) : item.avatar ? (openBlock(), createBlock(_sfc_main$b, mergeProps({
202
+ key: 2,
203
+ size: item.ui?.itemLeadingAvatarSize || __props.uiOverride?.itemLeadingAvatarSize || __props.ui.itemLeadingAvatarSize()
204
+ }, item.avatar, {
205
+ "data-slot": "itemLeadingAvatar",
206
+ class: __props.ui.itemLeadingAvatar({ class: [__props.uiOverride?.itemLeadingAvatar, item.ui?.itemLeadingAvatar], active })
207
+ }), null, 16, ["size", "class"])) : createCommentVNode("", true)
208
+ ]),
209
+ unref(get)(item, props.labelKey) || !!slots[item.slot ? `${item.slot}-label` : "item-label"] || (unref(get)(item, props.descriptionKey) || !!slots[item.slot ? `${item.slot}-description` : "item-description"]) ? (openBlock(), createBlock("span", {
210
+ key: 0,
211
+ "data-slot": "itemWrapper",
212
+ class: __props.ui.itemWrapper({ class: [__props.uiOverride?.itemWrapper, item.ui?.itemWrapper] })
213
+ }, [
214
+ createVNode("span", {
215
+ "data-slot": "itemLabel",
216
+ class: __props.ui.itemLabel({ class: [__props.uiOverride?.itemLabel, item.ui?.itemLabel], active })
217
+ }, [
218
+ renderSlot(_ctx.$slots, item.slot ? `${item.slot}-label` : "item-label", {
219
+ item,
220
+ active,
221
+ index
222
+ }, () => [
223
+ createTextVNode(toDisplayString(unref(get)(item, props.labelKey)), 1)
224
+ ]),
225
+ item.target === "_blank" && __props.externalIcon !== false ? (openBlock(), createBlock(_sfc_main$d, {
226
+ key: 0,
227
+ name: typeof __props.externalIcon === "string" ? __props.externalIcon : unref(appConfig).ui.icons.external,
228
+ "data-slot": "itemLabelExternalIcon",
229
+ class: __props.ui.itemLabelExternalIcon({ class: [__props.uiOverride?.itemLabelExternalIcon, item.ui?.itemLabelExternalIcon], color: item?.color, active })
230
+ }, null, 8, ["name", "class"])) : createCommentVNode("", true)
231
+ ], 2),
232
+ unref(get)(item, props.descriptionKey) ? (openBlock(), createBlock("span", {
233
+ key: 0,
234
+ "data-slot": "itemDescription",
235
+ class: __props.ui.itemDescription({ class: [__props.uiOverride?.itemDescription, item.ui?.itemDescription] })
236
+ }, [
237
+ renderSlot(_ctx.$slots, item.slot ? `${item.slot}-description` : "item-description", {
238
+ item,
239
+ active,
240
+ index
241
+ }, () => [
242
+ createTextVNode(toDisplayString(unref(get)(item, props.descriptionKey)), 1)
243
+ ])
244
+ ], 2)) : createCommentVNode("", true)
245
+ ], 2)) : createCommentVNode("", true),
246
+ createVNode("span", {
247
+ "data-slot": "itemTrailing",
248
+ class: __props.ui.itemTrailing({ class: [__props.uiOverride?.itemTrailing, item.ui?.itemTrailing] })
249
+ }, [
250
+ renderSlot(_ctx.$slots, item.slot ? `${item.slot}-trailing` : "item-trailing", {
196
251
  item,
197
252
  active,
198
253
  index,
199
254
  ui: __props.ui
200
- }, () => {
201
- var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2;
202
- return [
203
- item.loading ? (openBlock(), createBlock(_sfc_main$d, {
204
- key: 0,
205
- name: __props.loadingIcon || unref(appConfig).ui.icons.loading,
206
- "data-slot": "itemLeadingIcon",
207
- class: __props.ui.itemLeadingIcon({ class: [(_a2 = __props.uiOverride) == null ? void 0 : _a2.itemLeadingIcon, (_b2 = item.ui) == null ? void 0 : _b2.itemLeadingIcon], color: item == null ? void 0 : item.color, loading: true })
208
- }, null, 8, ["name", "class"])) : item.icon ? (openBlock(), createBlock(_sfc_main$d, {
209
- key: 1,
210
- name: item.icon,
211
- "data-slot": "itemLeadingIcon",
212
- class: __props.ui.itemLeadingIcon({ class: [(_c2 = __props.uiOverride) == null ? void 0 : _c2.itemLeadingIcon, (_d2 = item.ui) == null ? void 0 : _d2.itemLeadingIcon], color: item == null ? void 0 : item.color, active })
213
- }, null, 8, ["name", "class"])) : item.avatar ? (openBlock(), createBlock(_sfc_main$b, mergeProps({
214
- key: 2,
215
- size: ((_e2 = item.ui) == null ? void 0 : _e2.itemLeadingAvatarSize) || ((_f2 = __props.uiOverride) == null ? void 0 : _f2.itemLeadingAvatarSize) || __props.ui.itemLeadingAvatarSize()
216
- }, item.avatar, {
217
- "data-slot": "itemLeadingAvatar",
218
- class: __props.ui.itemLeadingAvatar({ class: [(_g2 = __props.uiOverride) == null ? void 0 : _g2.itemLeadingAvatar, (_h2 = item.ui) == null ? void 0 : _h2.itemLeadingAvatar], active })
219
- }), null, 16, ["size", "class"])) : createCommentVNode("", true)
220
- ];
221
- }),
222
- unref(get)(item, props.labelKey) || !!slots[item.slot ? `${item.slot}-label` : "item-label"] || (unref(get)(item, props.descriptionKey) || !!slots[item.slot ? `${item.slot}-description` : "item-description"]) ? (openBlock(), createBlock("span", {
223
- key: 0,
224
- "data-slot": "itemWrapper",
225
- class: __props.ui.itemWrapper({ class: [(_a = __props.uiOverride) == null ? void 0 : _a.itemWrapper, (_b = item.ui) == null ? void 0 : _b.itemWrapper] })
226
- }, [
227
- createVNode("span", {
228
- "data-slot": "itemLabel",
229
- class: __props.ui.itemLabel({ class: [(_c = __props.uiOverride) == null ? void 0 : _c.itemLabel, (_d = item.ui) == null ? void 0 : _d.itemLabel], active })
230
- }, [
231
- renderSlot(_ctx.$slots, item.slot ? `${item.slot}-label` : "item-label", {
232
- item,
233
- active,
234
- index
235
- }, () => [
236
- createTextVNode(toDisplayString(unref(get)(item, props.labelKey)), 1)
237
- ]),
238
- item.target === "_blank" && __props.externalIcon !== false ? (openBlock(), createBlock(_sfc_main$d, {
239
- key: 0,
240
- name: typeof __props.externalIcon === "string" ? __props.externalIcon : unref(appConfig).ui.icons.external,
241
- "data-slot": "itemLabelExternalIcon",
242
- class: __props.ui.itemLabelExternalIcon({ class: [(_e = __props.uiOverride) == null ? void 0 : _e.itemLabelExternalIcon, (_f = item.ui) == null ? void 0 : _f.itemLabelExternalIcon], color: item == null ? void 0 : item.color, active })
243
- }, null, 8, ["name", "class"])) : createCommentVNode("", true)
244
- ], 2),
245
- unref(get)(item, props.descriptionKey) ? (openBlock(), createBlock("span", {
255
+ }, () => [
256
+ item.children?.length ? (openBlock(), createBlock(_sfc_main$d, {
246
257
  key: 0,
247
- "data-slot": "itemDescription",
248
- class: __props.ui.itemDescription({ class: [(_g = __props.uiOverride) == null ? void 0 : _g.itemDescription, (_h = item.ui) == null ? void 0 : _h.itemDescription] })
258
+ name: childrenIcon.value,
259
+ "data-slot": "itemTrailingIcon",
260
+ class: __props.ui.itemTrailingIcon({ class: [__props.uiOverride?.itemTrailingIcon, item.ui?.itemTrailingIcon], color: item?.color, active })
261
+ }, null, 8, ["name", "class"])) : item.kbds?.length ? (openBlock(), createBlock("span", {
262
+ key: 1,
263
+ "data-slot": "itemTrailingKbds",
264
+ class: __props.ui.itemTrailingKbds({ class: [__props.uiOverride?.itemTrailingKbds, item.ui?.itemTrailingKbds] })
249
265
  }, [
250
- renderSlot(_ctx.$slots, item.slot ? `${item.slot}-description` : "item-description", {
251
- item,
252
- active,
253
- index
254
- }, () => [
255
- createTextVNode(toDisplayString(unref(get)(item, props.descriptionKey)), 1)
256
- ])
266
+ (openBlock(true), createBlock(Fragment, null, renderList(item.kbds, (kbd, kbdIndex) => {
267
+ return openBlock(), createBlock(_sfc_main$3, mergeProps({
268
+ key: kbdIndex,
269
+ size: item.ui?.itemTrailingKbdsSize || __props.uiOverride?.itemTrailingKbdsSize || __props.ui.itemTrailingKbdsSize()
270
+ }, { ref_for: true }, typeof kbd === "string" ? { value: kbd } : kbd), null, 16, ["size"]);
271
+ }), 128))
257
272
  ], 2)) : createCommentVNode("", true)
258
- ], 2)) : createCommentVNode("", true),
259
- createVNode("span", {
260
- "data-slot": "itemTrailing",
261
- class: __props.ui.itemTrailing({ class: [(_i = __props.uiOverride) == null ? void 0 : _i.itemTrailing, (_j = item.ui) == null ? void 0 : _j.itemTrailing] })
262
- }, [
263
- renderSlot(_ctx.$slots, item.slot ? `${item.slot}-trailing` : "item-trailing", {
264
- item,
265
- active,
266
- index,
267
- ui: __props.ui
268
- }, () => {
269
- var _a2, _b2, _c2, _d2, _e2, _f2;
270
- return [
271
- ((_a2 = item.children) == null ? void 0 : _a2.length) ? (openBlock(), createBlock(_sfc_main$d, {
272
- key: 0,
273
- name: childrenIcon.value,
274
- "data-slot": "itemTrailingIcon",
275
- class: __props.ui.itemTrailingIcon({ class: [(_b2 = __props.uiOverride) == null ? void 0 : _b2.itemTrailingIcon, (_c2 = item.ui) == null ? void 0 : _c2.itemTrailingIcon], color: item == null ? void 0 : item.color, active })
276
- }, null, 8, ["name", "class"])) : ((_d2 = item.kbds) == null ? void 0 : _d2.length) ? (openBlock(), createBlock("span", {
277
- key: 1,
278
- "data-slot": "itemTrailingKbds",
279
- class: __props.ui.itemTrailingKbds({ class: [(_e2 = __props.uiOverride) == null ? void 0 : _e2.itemTrailingKbds, (_f2 = item.ui) == null ? void 0 : _f2.itemTrailingKbds] })
280
- }, [
281
- (openBlock(true), createBlock(Fragment, null, renderList(item.kbds, (kbd, kbdIndex) => {
282
- var _a3, _b3;
283
- return openBlock(), createBlock(_sfc_main$3, mergeProps({
284
- key: kbdIndex,
285
- size: ((_a3 = item.ui) == null ? void 0 : _a3.itemTrailingKbdsSize) || ((_b3 = __props.uiOverride) == null ? void 0 : _b3.itemTrailingKbdsSize) || __props.ui.itemTrailingKbdsSize()
286
- }, { ref_for: true }, typeof kbd === "string" ? { value: kbd } : kbd), null, 16, ["size"]);
287
- }), 128))
288
- ], 2)) : createCommentVNode("", true)
289
- ];
290
- }),
291
- createVNode(unref(ContextMenu).ItemIndicator, { "as-child": "" }, {
292
- default: withCtx(() => {
293
- var _a2, _b2;
294
- return [
295
- createVNode(_sfc_main$d, {
296
- name: __props.checkedIcon || unref(appConfig).ui.icons.check,
297
- "data-slot": "itemTrailingIcon",
298
- class: __props.ui.itemTrailingIcon({ class: [(_a2 = __props.uiOverride) == null ? void 0 : _a2.itemTrailingIcon, (_b2 = item.ui) == null ? void 0 : _b2.itemTrailingIcon], color: item == null ? void 0 : item.color })
299
- }, null, 8, ["name", "class"])
300
- ];
301
- }),
302
- _: 2
303
- }, 1024)
304
- ], 2)
305
- ];
306
- })
273
+ ]),
274
+ createVNode(unref(ContextMenu).ItemIndicator, { "as-child": "" }, {
275
+ default: withCtx(() => [
276
+ createVNode(_sfc_main$d, {
277
+ name: __props.checkedIcon || unref(appConfig).ui.icons.check,
278
+ "data-slot": "itemTrailingIcon",
279
+ class: __props.ui.itemTrailingIcon({ class: [__props.uiOverride?.itemTrailingIcon, item.ui?.itemTrailingIcon], color: item?.color })
280
+ }, null, 8, ["name", "class"])
281
+ ]),
282
+ _: 2
283
+ }, 1024)
284
+ ], 2)
285
+ ])
307
286
  ];
308
287
  }
309
288
  }),
@@ -311,36 +290,32 @@ const _sfc_main$2 = {
311
290
  }, _parent));
312
291
  _push(ssrRenderComponent(unref(ContextMenu).Portal, unref(portalProps), {
313
292
  default: withCtx((_, _push2, _parent2, _scopeId) => {
314
- var _a, _b;
315
293
  if (_push2) {
316
294
  ssrRenderVNode(_push2, createVNode(resolveDynamicComponent(__props.sub ? unref(ContextMenu).SubContent : unref(ContextMenu).Content), mergeProps({
317
295
  "data-slot": "content",
318
- class: __props.ui.content({ class: [(_a = __props.uiOverride) == null ? void 0 : _a.content, props.class] })
296
+ class: __props.ui.content({ class: [__props.uiOverride?.content, props.class] })
319
297
  }, unref(contentProps)), {
320
298
  default: withCtx((_2, _push3, _parent3, _scopeId2) => {
321
- var _a2, _b2, _c, _d, _e, _f;
322
299
  if (_push3) {
323
300
  ssrRenderSlot(_ctx.$slots, "content-top", {
324
- sub: (_a2 = __props.sub) != null ? _a2 : false
301
+ sub: __props.sub ?? false
325
302
  }, null, _push3, _parent3, _scopeId2);
326
- _push3(`<div role="presentation" data-slot="viewport" class="${ssrRenderClass(__props.ui.viewport({ class: (_b2 = __props.uiOverride) == null ? void 0 : _b2.viewport }))}"${_scopeId2}><!--[-->`);
303
+ _push3(`<div role="presentation" data-slot="viewport" class="${ssrRenderClass(__props.ui.viewport({ class: __props.uiOverride?.viewport }))}"${_scopeId2}><!--[-->`);
327
304
  ssrRenderList(groups.value, (group, groupIndex) => {
328
- var _a3;
329
305
  _push3(ssrRenderComponent(unref(ContextMenu).Group, {
330
306
  key: `group-${groupIndex}`,
331
307
  "data-slot": "group",
332
- class: __props.ui.group({ class: (_a3 = __props.uiOverride) == null ? void 0 : _a3.group })
308
+ class: __props.ui.group({ class: __props.uiOverride?.group })
333
309
  }, {
334
310
  default: withCtx((_3, _push4, _parent4, _scopeId3) => {
335
311
  if (_push4) {
336
312
  _push4(`<!--[-->`);
337
313
  ssrRenderList(group, (item, index) => {
338
- var _a4, _b3, _c2, _d2, _e2, _f2, _g;
339
314
  _push4(`<!--[-->`);
340
315
  if (item.type === "label") {
341
316
  _push4(ssrRenderComponent(unref(ContextMenu).Label, {
342
317
  "data-slot": "label",
343
- class: __props.ui.label({ class: [(_a4 = __props.uiOverride) == null ? void 0 : _a4.label, (_b3 = item.ui) == null ? void 0 : _b3.label, item.class] })
318
+ class: __props.ui.label({ class: [__props.uiOverride?.label, item.ui?.label, item.class] })
344
319
  }, {
345
320
  default: withCtx((_4, _push5, _parent5, _scopeId4) => {
346
321
  if (_push5) {
@@ -362,15 +337,14 @@ const _sfc_main$2 = {
362
337
  } else if (item.type === "separator") {
363
338
  _push4(ssrRenderComponent(unref(ContextMenu).Separator, {
364
339
  "data-slot": "separator",
365
- class: __props.ui.separator({ class: [(_c2 = __props.uiOverride) == null ? void 0 : _c2.separator, (_d2 = item.ui) == null ? void 0 : _d2.separator, item.class] })
340
+ class: __props.ui.separator({ class: [__props.uiOverride?.separator, item.ui?.separator, item.class] })
366
341
  }, null, _parent4, _scopeId3));
367
- } else if ((_e2 = item == null ? void 0 : item.children) == null ? void 0 : _e2.length) {
342
+ } else if (item?.children?.length) {
368
343
  _push4(ssrRenderComponent(unref(ContextMenu).Sub, {
369
344
  open: item.open,
370
345
  "default-open": item.defaultOpen
371
346
  }, {
372
347
  default: withCtx((_4, _push5, _parent5, _scopeId4) => {
373
- var _a5, _b4, _c3, _d3, _e3, _f3;
374
348
  if (_push5) {
375
349
  _push5(ssrRenderComponent(unref(ContextMenu).SubTrigger, {
376
350
  as: "button",
@@ -378,7 +352,7 @@ const _sfc_main$2 = {
378
352
  disabled: item.disabled,
379
353
  "text-value": unref(get)(item, props.labelKey),
380
354
  "data-slot": "item",
381
- class: __props.ui.item({ class: [(_a5 = __props.uiOverride) == null ? void 0 : _a5.item, (_b4 = item.ui) == null ? void 0 : _b4.item, item.class], color: item == null ? void 0 : item.color })
355
+ class: __props.ui.item({ class: [__props.uiOverride?.item, item.ui?.item, item.class], color: item?.color })
382
356
  }, {
383
357
  default: withCtx((_5, _push6, _parent6, _scopeId5) => {
384
358
  if (_push6) {
@@ -399,7 +373,7 @@ const _sfc_main$2 = {
399
373
  }, _parent5, _scopeId4));
400
374
  _push5(ssrRenderComponent(_sfc_main$2, mergeProps({
401
375
  sub: "",
402
- class: (_c3 = item.ui) == null ? void 0 : _c3.content,
376
+ class: item.ui?.content,
403
377
  ui: __props.ui,
404
378
  "ui-override": __props.uiOverride,
405
379
  portal: __props.portal,
@@ -434,7 +408,7 @@ const _sfc_main$2 = {
434
408
  disabled: item.disabled,
435
409
  "text-value": unref(get)(item, props.labelKey),
436
410
  "data-slot": "item",
437
- class: __props.ui.item({ class: [(_d3 = __props.uiOverride) == null ? void 0 : _d3.item, (_e3 = item.ui) == null ? void 0 : _e3.item, item.class], color: item == null ? void 0 : item.color })
411
+ class: __props.ui.item({ class: [__props.uiOverride?.item, item.ui?.item, item.class], color: item?.color })
438
412
  }, {
439
413
  default: withCtx(() => [
440
414
  createVNode(unref(ReuseItemTemplate), {
@@ -446,7 +420,7 @@ const _sfc_main$2 = {
446
420
  }, 1032, ["disabled", "text-value", "class"]),
447
421
  createVNode(_sfc_main$2, mergeProps({
448
422
  sub: "",
449
- class: (_f3 = item.ui) == null ? void 0 : _f3.content,
423
+ class: item.ui?.content,
450
424
  ui: __props.ui,
451
425
  "ui-override": __props.uiOverride,
452
426
  portal: __props.portal,
@@ -478,7 +452,7 @@ const _sfc_main$2 = {
478
452
  disabled: item.disabled,
479
453
  "text-value": unref(get)(item, props.labelKey),
480
454
  "data-slot": "item",
481
- class: __props.ui.item({ class: [(_f2 = __props.uiOverride) == null ? void 0 : _f2.item, (_g = item.ui) == null ? void 0 : _g.item, item.class], color: item == null ? void 0 : item.color }),
455
+ class: __props.ui.item({ class: [__props.uiOverride?.item, item.ui?.item, item.class], color: item?.color }),
482
456
  "onUpdate:modelValue": item.onUpdateChecked,
483
457
  onSelect: item.onSelect
484
458
  }, {
@@ -510,11 +484,10 @@ const _sfc_main$2 = {
510
484
  if (_push5) {
511
485
  _push5(ssrRenderComponent(_sfc_main$9, mergeProps({ ref_for: true }, unref(pickLinkProps)(item), { custom: "" }), {
512
486
  default: withCtx(({ active, ...slotProps }, _push6, _parent6, _scopeId5) => {
513
- var _a5, _b4, _c3, _d3;
514
487
  if (_push6) {
515
488
  _push6(ssrRenderComponent(_sfc_main$a, mergeProps({ ref_for: true }, slotProps, {
516
489
  "data-slot": "item",
517
- class: __props.ui.item({ class: [(_a5 = __props.uiOverride) == null ? void 0 : _a5.item, (_b4 = item.ui) == null ? void 0 : _b4.item, item.class], active, color: item == null ? void 0 : item.color })
490
+ class: __props.ui.item({ class: [__props.uiOverride?.item, item.ui?.item, item.class], active, color: item?.color })
518
491
  }), {
519
492
  default: withCtx((_5, _push7, _parent7, _scopeId6) => {
520
493
  if (_push7) {
@@ -539,7 +512,7 @@ const _sfc_main$2 = {
539
512
  return [
540
513
  createVNode(_sfc_main$a, mergeProps({ ref_for: true }, slotProps, {
541
514
  "data-slot": "item",
542
- class: __props.ui.item({ class: [(_c3 = __props.uiOverride) == null ? void 0 : _c3.item, (_d3 = item.ui) == null ? void 0 : _d3.item, item.class], active, color: item == null ? void 0 : item.color })
515
+ class: __props.ui.item({ class: [__props.uiOverride?.item, item.ui?.item, item.class], active, color: item?.color })
543
516
  }), {
544
517
  default: withCtx(() => [
545
518
  createVNode(unref(ReuseItemTemplate), {
@@ -558,24 +531,21 @@ const _sfc_main$2 = {
558
531
  } else {
559
532
  return [
560
533
  createVNode(_sfc_main$9, mergeProps({ ref_for: true }, unref(pickLinkProps)(item), { custom: "" }), {
561
- default: withCtx(({ active, ...slotProps }) => {
562
- var _a5, _b4;
563
- return [
564
- createVNode(_sfc_main$a, mergeProps({ ref_for: true }, slotProps, {
565
- "data-slot": "item",
566
- class: __props.ui.item({ class: [(_a5 = __props.uiOverride) == null ? void 0 : _a5.item, (_b4 = item.ui) == null ? void 0 : _b4.item, item.class], active, color: item == null ? void 0 : item.color })
567
- }), {
568
- default: withCtx(() => [
569
- createVNode(unref(ReuseItemTemplate), {
570
- item,
571
- active,
572
- index
573
- }, null, 8, ["item", "active", "index"])
574
- ]),
575
- _: 2
576
- }, 1040, ["class"])
577
- ];
578
- }),
534
+ default: withCtx(({ active, ...slotProps }) => [
535
+ createVNode(_sfc_main$a, mergeProps({ ref_for: true }, slotProps, {
536
+ "data-slot": "item",
537
+ class: __props.ui.item({ class: [__props.uiOverride?.item, item.ui?.item, item.class], active, color: item?.color })
538
+ }), {
539
+ default: withCtx(() => [
540
+ createVNode(unref(ReuseItemTemplate), {
541
+ item,
542
+ active,
543
+ index
544
+ }, null, 8, ["item", "active", "index"])
545
+ ]),
546
+ _: 2
547
+ }, 1040, ["class"])
548
+ ]),
579
549
  _: 2
580
550
  }, 1040)
581
551
  ];
@@ -590,14 +560,13 @@ const _sfc_main$2 = {
590
560
  } else {
591
561
  return [
592
562
  (openBlock(true), createBlock(Fragment, null, renderList(group, (item, index) => {
593
- var _a4, _b3, _c2, _d2, _e2, _f2, _g;
594
563
  return openBlock(), createBlock(Fragment, {
595
564
  key: `group-${groupIndex}-${index}`
596
565
  }, [
597
566
  item.type === "label" ? (openBlock(), createBlock(unref(ContextMenu).Label, {
598
567
  key: 0,
599
568
  "data-slot": "label",
600
- class: __props.ui.label({ class: [(_a4 = __props.uiOverride) == null ? void 0 : _a4.label, (_b3 = item.ui) == null ? void 0 : _b3.label, item.class] })
569
+ class: __props.ui.label({ class: [__props.uiOverride?.label, item.ui?.label, item.class] })
601
570
  }, {
602
571
  default: withCtx(() => [
603
572
  createVNode(unref(ReuseItemTemplate), {
@@ -609,56 +578,53 @@ const _sfc_main$2 = {
609
578
  }, 1032, ["class"])) : item.type === "separator" ? (openBlock(), createBlock(unref(ContextMenu).Separator, {
610
579
  key: 1,
611
580
  "data-slot": "separator",
612
- class: __props.ui.separator({ class: [(_c2 = __props.uiOverride) == null ? void 0 : _c2.separator, (_d2 = item.ui) == null ? void 0 : _d2.separator, item.class] })
613
- }, null, 8, ["class"])) : ((_e2 = item == null ? void 0 : item.children) == null ? void 0 : _e2.length) ? (openBlock(), createBlock(unref(ContextMenu).Sub, {
581
+ class: __props.ui.separator({ class: [__props.uiOverride?.separator, item.ui?.separator, item.class] })
582
+ }, null, 8, ["class"])) : item?.children?.length ? (openBlock(), createBlock(unref(ContextMenu).Sub, {
614
583
  key: 2,
615
584
  open: item.open,
616
585
  "default-open": item.defaultOpen
617
586
  }, {
618
- default: withCtx(() => {
619
- var _a5, _b4, _c3;
620
- return [
621
- createVNode(unref(ContextMenu).SubTrigger, {
622
- as: "button",
623
- type: "button",
624
- disabled: item.disabled,
625
- "text-value": unref(get)(item, props.labelKey),
626
- "data-slot": "item",
627
- class: __props.ui.item({ class: [(_a5 = __props.uiOverride) == null ? void 0 : _a5.item, (_b4 = item.ui) == null ? void 0 : _b4.item, item.class], color: item == null ? void 0 : item.color })
628
- }, {
629
- default: withCtx(() => [
630
- createVNode(unref(ReuseItemTemplate), {
631
- item,
632
- index
633
- }, null, 8, ["item", "index"])
634
- ]),
635
- _: 2
636
- }, 1032, ["disabled", "text-value", "class"]),
637
- createVNode(_sfc_main$2, mergeProps({
638
- sub: "",
639
- class: (_c3 = item.ui) == null ? void 0 : _c3.content,
640
- ui: __props.ui,
641
- "ui-override": __props.uiOverride,
642
- portal: __props.portal,
643
- items: item.children,
644
- "align-offset": -4,
645
- "label-key": __props.labelKey,
646
- "description-key": __props.descriptionKey,
647
- "checked-icon": __props.checkedIcon,
648
- "loading-icon": __props.loadingIcon,
649
- "external-icon": __props.externalIcon
650
- }, { ref_for: true }, item.content), createSlots({ _: 2 }, [
651
- renderList(getProxySlots(), (_4, name) => {
652
- return {
653
- name,
654
- fn: withCtx((slotData) => [
655
- renderSlot(_ctx.$slots, name, mergeProps({ ref_for: true }, slotData))
656
- ])
657
- };
658
- })
659
- ]), 1040, ["class", "ui", "ui-override", "portal", "items", "label-key", "description-key", "checked-icon", "loading-icon", "external-icon"])
660
- ];
661
- }),
587
+ default: withCtx(() => [
588
+ createVNode(unref(ContextMenu).SubTrigger, {
589
+ as: "button",
590
+ type: "button",
591
+ disabled: item.disabled,
592
+ "text-value": unref(get)(item, props.labelKey),
593
+ "data-slot": "item",
594
+ class: __props.ui.item({ class: [__props.uiOverride?.item, item.ui?.item, item.class], color: item?.color })
595
+ }, {
596
+ default: withCtx(() => [
597
+ createVNode(unref(ReuseItemTemplate), {
598
+ item,
599
+ index
600
+ }, null, 8, ["item", "index"])
601
+ ]),
602
+ _: 2
603
+ }, 1032, ["disabled", "text-value", "class"]),
604
+ createVNode(_sfc_main$2, mergeProps({
605
+ sub: "",
606
+ class: item.ui?.content,
607
+ ui: __props.ui,
608
+ "ui-override": __props.uiOverride,
609
+ portal: __props.portal,
610
+ items: item.children,
611
+ "align-offset": -4,
612
+ "label-key": __props.labelKey,
613
+ "description-key": __props.descriptionKey,
614
+ "checked-icon": __props.checkedIcon,
615
+ "loading-icon": __props.loadingIcon,
616
+ "external-icon": __props.externalIcon
617
+ }, { ref_for: true }, item.content), createSlots({ _: 2 }, [
618
+ renderList(getProxySlots(), (_4, name) => {
619
+ return {
620
+ name,
621
+ fn: withCtx((slotData) => [
622
+ renderSlot(_ctx.$slots, name, mergeProps({ ref_for: true }, slotData))
623
+ ])
624
+ };
625
+ })
626
+ ]), 1040, ["class", "ui", "ui-override", "portal", "items", "label-key", "description-key", "checked-icon", "loading-icon", "external-icon"])
627
+ ]),
662
628
  _: 2
663
629
  }, 1032, ["open", "default-open"])) : item.type === "checkbox" ? (openBlock(), createBlock(unref(ContextMenu).CheckboxItem, {
664
630
  key: 3,
@@ -666,7 +632,7 @@ const _sfc_main$2 = {
666
632
  disabled: item.disabled,
667
633
  "text-value": unref(get)(item, props.labelKey),
668
634
  "data-slot": "item",
669
- class: __props.ui.item({ class: [(_f2 = __props.uiOverride) == null ? void 0 : _f2.item, (_g = item.ui) == null ? void 0 : _g.item, item.class], color: item == null ? void 0 : item.color }),
635
+ class: __props.ui.item({ class: [__props.uiOverride?.item, item.ui?.item, item.class], color: item?.color }),
670
636
  "onUpdate:modelValue": item.onUpdateChecked,
671
637
  onSelect: item.onSelect
672
638
  }, {
@@ -686,24 +652,21 @@ const _sfc_main$2 = {
686
652
  }, {
687
653
  default: withCtx(() => [
688
654
  createVNode(_sfc_main$9, mergeProps({ ref_for: true }, unref(pickLinkProps)(item), { custom: "" }), {
689
- default: withCtx(({ active, ...slotProps }) => {
690
- var _a5, _b4;
691
- return [
692
- createVNode(_sfc_main$a, mergeProps({ ref_for: true }, slotProps, {
693
- "data-slot": "item",
694
- class: __props.ui.item({ class: [(_a5 = __props.uiOverride) == null ? void 0 : _a5.item, (_b4 = item.ui) == null ? void 0 : _b4.item, item.class], active, color: item == null ? void 0 : item.color })
695
- }), {
696
- default: withCtx(() => [
697
- createVNode(unref(ReuseItemTemplate), {
698
- item,
699
- active,
700
- index
701
- }, null, 8, ["item", "active", "index"])
702
- ]),
703
- _: 2
704
- }, 1040, ["class"])
705
- ];
706
- }),
655
+ default: withCtx(({ active, ...slotProps }) => [
656
+ createVNode(_sfc_main$a, mergeProps({ ref_for: true }, slotProps, {
657
+ "data-slot": "item",
658
+ class: __props.ui.item({ class: [__props.uiOverride?.item, item.ui?.item, item.class], active, color: item?.color })
659
+ }), {
660
+ default: withCtx(() => [
661
+ createVNode(unref(ReuseItemTemplate), {
662
+ item,
663
+ active,
664
+ index
665
+ }, null, 8, ["item", "active", "index"])
666
+ ]),
667
+ _: 2
668
+ }, 1040, ["class"])
669
+ ]),
707
670
  _: 2
708
671
  }, 1040)
709
672
  ]),
@@ -720,35 +683,33 @@ const _sfc_main$2 = {
720
683
  _push3(`<!--]--></div>`);
721
684
  ssrRenderSlot(_ctx.$slots, "default", {}, null, _push3, _parent3, _scopeId2);
722
685
  ssrRenderSlot(_ctx.$slots, "content-bottom", {
723
- sub: (_c = __props.sub) != null ? _c : false
686
+ sub: __props.sub ?? false
724
687
  }, null, _push3, _parent3, _scopeId2);
725
688
  } else {
726
689
  return [
727
690
  renderSlot(_ctx.$slots, "content-top", {
728
- sub: (_d = __props.sub) != null ? _d : false
691
+ sub: __props.sub ?? false
729
692
  }),
730
693
  createVNode("div", {
731
694
  role: "presentation",
732
695
  "data-slot": "viewport",
733
- class: __props.ui.viewport({ class: (_e = __props.uiOverride) == null ? void 0 : _e.viewport })
696
+ class: __props.ui.viewport({ class: __props.uiOverride?.viewport })
734
697
  }, [
735
698
  (openBlock(true), createBlock(Fragment, null, renderList(groups.value, (group, groupIndex) => {
736
- var _a3;
737
699
  return openBlock(), createBlock(unref(ContextMenu).Group, {
738
700
  key: `group-${groupIndex}`,
739
701
  "data-slot": "group",
740
- class: __props.ui.group({ class: (_a3 = __props.uiOverride) == null ? void 0 : _a3.group })
702
+ class: __props.ui.group({ class: __props.uiOverride?.group })
741
703
  }, {
742
704
  default: withCtx(() => [
743
705
  (openBlock(true), createBlock(Fragment, null, renderList(group, (item, index) => {
744
- var _a4, _b3, _c2, _d2, _e2, _f2, _g;
745
706
  return openBlock(), createBlock(Fragment, {
746
707
  key: `group-${groupIndex}-${index}`
747
708
  }, [
748
709
  item.type === "label" ? (openBlock(), createBlock(unref(ContextMenu).Label, {
749
710
  key: 0,
750
711
  "data-slot": "label",
751
- class: __props.ui.label({ class: [(_a4 = __props.uiOverride) == null ? void 0 : _a4.label, (_b3 = item.ui) == null ? void 0 : _b3.label, item.class] })
712
+ class: __props.ui.label({ class: [__props.uiOverride?.label, item.ui?.label, item.class] })
752
713
  }, {
753
714
  default: withCtx(() => [
754
715
  createVNode(unref(ReuseItemTemplate), {
@@ -760,56 +721,53 @@ const _sfc_main$2 = {
760
721
  }, 1032, ["class"])) : item.type === "separator" ? (openBlock(), createBlock(unref(ContextMenu).Separator, {
761
722
  key: 1,
762
723
  "data-slot": "separator",
763
- class: __props.ui.separator({ class: [(_c2 = __props.uiOverride) == null ? void 0 : _c2.separator, (_d2 = item.ui) == null ? void 0 : _d2.separator, item.class] })
764
- }, null, 8, ["class"])) : ((_e2 = item == null ? void 0 : item.children) == null ? void 0 : _e2.length) ? (openBlock(), createBlock(unref(ContextMenu).Sub, {
724
+ class: __props.ui.separator({ class: [__props.uiOverride?.separator, item.ui?.separator, item.class] })
725
+ }, null, 8, ["class"])) : item?.children?.length ? (openBlock(), createBlock(unref(ContextMenu).Sub, {
765
726
  key: 2,
766
727
  open: item.open,
767
728
  "default-open": item.defaultOpen
768
729
  }, {
769
- default: withCtx(() => {
770
- var _a5, _b4, _c3;
771
- return [
772
- createVNode(unref(ContextMenu).SubTrigger, {
773
- as: "button",
774
- type: "button",
775
- disabled: item.disabled,
776
- "text-value": unref(get)(item, props.labelKey),
777
- "data-slot": "item",
778
- class: __props.ui.item({ class: [(_a5 = __props.uiOverride) == null ? void 0 : _a5.item, (_b4 = item.ui) == null ? void 0 : _b4.item, item.class], color: item == null ? void 0 : item.color })
779
- }, {
780
- default: withCtx(() => [
781
- createVNode(unref(ReuseItemTemplate), {
782
- item,
783
- index
784
- }, null, 8, ["item", "index"])
785
- ]),
786
- _: 2
787
- }, 1032, ["disabled", "text-value", "class"]),
788
- createVNode(_sfc_main$2, mergeProps({
789
- sub: "",
790
- class: (_c3 = item.ui) == null ? void 0 : _c3.content,
791
- ui: __props.ui,
792
- "ui-override": __props.uiOverride,
793
- portal: __props.portal,
794
- items: item.children,
795
- "align-offset": -4,
796
- "label-key": __props.labelKey,
797
- "description-key": __props.descriptionKey,
798
- "checked-icon": __props.checkedIcon,
799
- "loading-icon": __props.loadingIcon,
800
- "external-icon": __props.externalIcon
801
- }, { ref_for: true }, item.content), createSlots({ _: 2 }, [
802
- renderList(getProxySlots(), (_3, name) => {
803
- return {
804
- name,
805
- fn: withCtx((slotData) => [
806
- renderSlot(_ctx.$slots, name, mergeProps({ ref_for: true }, slotData))
807
- ])
808
- };
809
- })
810
- ]), 1040, ["class", "ui", "ui-override", "portal", "items", "label-key", "description-key", "checked-icon", "loading-icon", "external-icon"])
811
- ];
812
- }),
730
+ default: withCtx(() => [
731
+ createVNode(unref(ContextMenu).SubTrigger, {
732
+ as: "button",
733
+ type: "button",
734
+ disabled: item.disabled,
735
+ "text-value": unref(get)(item, props.labelKey),
736
+ "data-slot": "item",
737
+ class: __props.ui.item({ class: [__props.uiOverride?.item, item.ui?.item, item.class], color: item?.color })
738
+ }, {
739
+ default: withCtx(() => [
740
+ createVNode(unref(ReuseItemTemplate), {
741
+ item,
742
+ index
743
+ }, null, 8, ["item", "index"])
744
+ ]),
745
+ _: 2
746
+ }, 1032, ["disabled", "text-value", "class"]),
747
+ createVNode(_sfc_main$2, mergeProps({
748
+ sub: "",
749
+ class: item.ui?.content,
750
+ ui: __props.ui,
751
+ "ui-override": __props.uiOverride,
752
+ portal: __props.portal,
753
+ items: item.children,
754
+ "align-offset": -4,
755
+ "label-key": __props.labelKey,
756
+ "description-key": __props.descriptionKey,
757
+ "checked-icon": __props.checkedIcon,
758
+ "loading-icon": __props.loadingIcon,
759
+ "external-icon": __props.externalIcon
760
+ }, { ref_for: true }, item.content), createSlots({ _: 2 }, [
761
+ renderList(getProxySlots(), (_3, name) => {
762
+ return {
763
+ name,
764
+ fn: withCtx((slotData) => [
765
+ renderSlot(_ctx.$slots, name, mergeProps({ ref_for: true }, slotData))
766
+ ])
767
+ };
768
+ })
769
+ ]), 1040, ["class", "ui", "ui-override", "portal", "items", "label-key", "description-key", "checked-icon", "loading-icon", "external-icon"])
770
+ ]),
813
771
  _: 2
814
772
  }, 1032, ["open", "default-open"])) : item.type === "checkbox" ? (openBlock(), createBlock(unref(ContextMenu).CheckboxItem, {
815
773
  key: 3,
@@ -817,7 +775,7 @@ const _sfc_main$2 = {
817
775
  disabled: item.disabled,
818
776
  "text-value": unref(get)(item, props.labelKey),
819
777
  "data-slot": "item",
820
- class: __props.ui.item({ class: [(_f2 = __props.uiOverride) == null ? void 0 : _f2.item, (_g = item.ui) == null ? void 0 : _g.item, item.class], color: item == null ? void 0 : item.color }),
778
+ class: __props.ui.item({ class: [__props.uiOverride?.item, item.ui?.item, item.class], color: item?.color }),
821
779
  "onUpdate:modelValue": item.onUpdateChecked,
822
780
  onSelect: item.onSelect
823
781
  }, {
@@ -837,24 +795,21 @@ const _sfc_main$2 = {
837
795
  }, {
838
796
  default: withCtx(() => [
839
797
  createVNode(_sfc_main$9, mergeProps({ ref_for: true }, unref(pickLinkProps)(item), { custom: "" }), {
840
- default: withCtx(({ active, ...slotProps }) => {
841
- var _a5, _b4;
842
- return [
843
- createVNode(_sfc_main$a, mergeProps({ ref_for: true }, slotProps, {
844
- "data-slot": "item",
845
- class: __props.ui.item({ class: [(_a5 = __props.uiOverride) == null ? void 0 : _a5.item, (_b4 = item.ui) == null ? void 0 : _b4.item, item.class], active, color: item == null ? void 0 : item.color })
846
- }), {
847
- default: withCtx(() => [
848
- createVNode(unref(ReuseItemTemplate), {
849
- item,
850
- active,
851
- index
852
- }, null, 8, ["item", "active", "index"])
853
- ]),
854
- _: 2
855
- }, 1040, ["class"])
856
- ];
857
- }),
798
+ default: withCtx(({ active, ...slotProps }) => [
799
+ createVNode(_sfc_main$a, mergeProps({ ref_for: true }, slotProps, {
800
+ "data-slot": "item",
801
+ class: __props.ui.item({ class: [__props.uiOverride?.item, item.ui?.item, item.class], active, color: item?.color })
802
+ }), {
803
+ default: withCtx(() => [
804
+ createVNode(unref(ReuseItemTemplate), {
805
+ item,
806
+ active,
807
+ index
808
+ }, null, 8, ["item", "active", "index"])
809
+ ]),
810
+ _: 2
811
+ }, 1040, ["class"])
812
+ ]),
858
813
  _: 2
859
814
  }, 1040)
860
815
  ]),
@@ -869,7 +824,7 @@ const _sfc_main$2 = {
869
824
  ], 2),
870
825
  renderSlot(_ctx.$slots, "default"),
871
826
  renderSlot(_ctx.$slots, "content-bottom", {
872
- sub: (_f = __props.sub) != null ? _f : false
827
+ sub: __props.sub ?? false
873
828
  })
874
829
  ];
875
830
  }
@@ -880,160 +835,149 @@ const _sfc_main$2 = {
880
835
  return [
881
836
  (openBlock(), createBlock(resolveDynamicComponent(__props.sub ? unref(ContextMenu).SubContent : unref(ContextMenu).Content), mergeProps({
882
837
  "data-slot": "content",
883
- class: __props.ui.content({ class: [(_b = __props.uiOverride) == null ? void 0 : _b.content, props.class] })
838
+ class: __props.ui.content({ class: [__props.uiOverride?.content, props.class] })
884
839
  }, unref(contentProps)), {
885
- default: withCtx(() => {
886
- var _a2, _b2, _c;
887
- return [
888
- renderSlot(_ctx.$slots, "content-top", {
889
- sub: (_a2 = __props.sub) != null ? _a2 : false
890
- }),
891
- createVNode("div", {
892
- role: "presentation",
893
- "data-slot": "viewport",
894
- class: __props.ui.viewport({ class: (_b2 = __props.uiOverride) == null ? void 0 : _b2.viewport })
895
- }, [
896
- (openBlock(true), createBlock(Fragment, null, renderList(groups.value, (group, groupIndex) => {
897
- var _a3;
898
- return openBlock(), createBlock(unref(ContextMenu).Group, {
899
- key: `group-${groupIndex}`,
900
- "data-slot": "group",
901
- class: __props.ui.group({ class: (_a3 = __props.uiOverride) == null ? void 0 : _a3.group })
902
- }, {
903
- default: withCtx(() => [
904
- (openBlock(true), createBlock(Fragment, null, renderList(group, (item, index) => {
905
- var _a4, _b3, _c2, _d, _e, _f, _g;
906
- return openBlock(), createBlock(Fragment, {
907
- key: `group-${groupIndex}-${index}`
908
- }, [
909
- item.type === "label" ? (openBlock(), createBlock(unref(ContextMenu).Label, {
910
- key: 0,
911
- "data-slot": "label",
912
- class: __props.ui.label({ class: [(_a4 = __props.uiOverride) == null ? void 0 : _a4.label, (_b3 = item.ui) == null ? void 0 : _b3.label, item.class] })
913
- }, {
914
- default: withCtx(() => [
915
- createVNode(unref(ReuseItemTemplate), {
916
- item,
917
- index
918
- }, null, 8, ["item", "index"])
919
- ]),
920
- _: 2
921
- }, 1032, ["class"])) : item.type === "separator" ? (openBlock(), createBlock(unref(ContextMenu).Separator, {
922
- key: 1,
923
- "data-slot": "separator",
924
- class: __props.ui.separator({ class: [(_c2 = __props.uiOverride) == null ? void 0 : _c2.separator, (_d = item.ui) == null ? void 0 : _d.separator, item.class] })
925
- }, null, 8, ["class"])) : ((_e = item == null ? void 0 : item.children) == null ? void 0 : _e.length) ? (openBlock(), createBlock(unref(ContextMenu).Sub, {
926
- key: 2,
927
- open: item.open,
928
- "default-open": item.defaultOpen
929
- }, {
930
- default: withCtx(() => {
931
- var _a5, _b4, _c3;
932
- return [
933
- createVNode(unref(ContextMenu).SubTrigger, {
934
- as: "button",
935
- type: "button",
936
- disabled: item.disabled,
937
- "text-value": unref(get)(item, props.labelKey),
840
+ default: withCtx(() => [
841
+ renderSlot(_ctx.$slots, "content-top", {
842
+ sub: __props.sub ?? false
843
+ }),
844
+ createVNode("div", {
845
+ role: "presentation",
846
+ "data-slot": "viewport",
847
+ class: __props.ui.viewport({ class: __props.uiOverride?.viewport })
848
+ }, [
849
+ (openBlock(true), createBlock(Fragment, null, renderList(groups.value, (group, groupIndex) => {
850
+ return openBlock(), createBlock(unref(ContextMenu).Group, {
851
+ key: `group-${groupIndex}`,
852
+ "data-slot": "group",
853
+ class: __props.ui.group({ class: __props.uiOverride?.group })
854
+ }, {
855
+ default: withCtx(() => [
856
+ (openBlock(true), createBlock(Fragment, null, renderList(group, (item, index) => {
857
+ return openBlock(), createBlock(Fragment, {
858
+ key: `group-${groupIndex}-${index}`
859
+ }, [
860
+ item.type === "label" ? (openBlock(), createBlock(unref(ContextMenu).Label, {
861
+ key: 0,
862
+ "data-slot": "label",
863
+ class: __props.ui.label({ class: [__props.uiOverride?.label, item.ui?.label, item.class] })
864
+ }, {
865
+ default: withCtx(() => [
866
+ createVNode(unref(ReuseItemTemplate), {
867
+ item,
868
+ index
869
+ }, null, 8, ["item", "index"])
870
+ ]),
871
+ _: 2
872
+ }, 1032, ["class"])) : item.type === "separator" ? (openBlock(), createBlock(unref(ContextMenu).Separator, {
873
+ key: 1,
874
+ "data-slot": "separator",
875
+ class: __props.ui.separator({ class: [__props.uiOverride?.separator, item.ui?.separator, item.class] })
876
+ }, null, 8, ["class"])) : item?.children?.length ? (openBlock(), createBlock(unref(ContextMenu).Sub, {
877
+ key: 2,
878
+ open: item.open,
879
+ "default-open": item.defaultOpen
880
+ }, {
881
+ default: withCtx(() => [
882
+ createVNode(unref(ContextMenu).SubTrigger, {
883
+ as: "button",
884
+ type: "button",
885
+ disabled: item.disabled,
886
+ "text-value": unref(get)(item, props.labelKey),
887
+ "data-slot": "item",
888
+ class: __props.ui.item({ class: [__props.uiOverride?.item, item.ui?.item, item.class], color: item?.color })
889
+ }, {
890
+ default: withCtx(() => [
891
+ createVNode(unref(ReuseItemTemplate), {
892
+ item,
893
+ index
894
+ }, null, 8, ["item", "index"])
895
+ ]),
896
+ _: 2
897
+ }, 1032, ["disabled", "text-value", "class"]),
898
+ createVNode(_sfc_main$2, mergeProps({
899
+ sub: "",
900
+ class: item.ui?.content,
901
+ ui: __props.ui,
902
+ "ui-override": __props.uiOverride,
903
+ portal: __props.portal,
904
+ items: item.children,
905
+ "align-offset": -4,
906
+ "label-key": __props.labelKey,
907
+ "description-key": __props.descriptionKey,
908
+ "checked-icon": __props.checkedIcon,
909
+ "loading-icon": __props.loadingIcon,
910
+ "external-icon": __props.externalIcon
911
+ }, { ref_for: true }, item.content), createSlots({ _: 2 }, [
912
+ renderList(getProxySlots(), (_2, name) => {
913
+ return {
914
+ name,
915
+ fn: withCtx((slotData) => [
916
+ renderSlot(_ctx.$slots, name, mergeProps({ ref_for: true }, slotData))
917
+ ])
918
+ };
919
+ })
920
+ ]), 1040, ["class", "ui", "ui-override", "portal", "items", "label-key", "description-key", "checked-icon", "loading-icon", "external-icon"])
921
+ ]),
922
+ _: 2
923
+ }, 1032, ["open", "default-open"])) : item.type === "checkbox" ? (openBlock(), createBlock(unref(ContextMenu).CheckboxItem, {
924
+ key: 3,
925
+ "model-value": item.checked,
926
+ disabled: item.disabled,
927
+ "text-value": unref(get)(item, props.labelKey),
928
+ "data-slot": "item",
929
+ class: __props.ui.item({ class: [__props.uiOverride?.item, item.ui?.item, item.class], color: item?.color }),
930
+ "onUpdate:modelValue": item.onUpdateChecked,
931
+ onSelect: item.onSelect
932
+ }, {
933
+ default: withCtx(() => [
934
+ createVNode(unref(ReuseItemTemplate), {
935
+ item,
936
+ index
937
+ }, null, 8, ["item", "index"])
938
+ ]),
939
+ _: 2
940
+ }, 1032, ["model-value", "disabled", "text-value", "class", "onUpdate:modelValue", "onSelect"])) : (openBlock(), createBlock(unref(ContextMenu).Item, {
941
+ key: 4,
942
+ "as-child": "",
943
+ disabled: item.disabled,
944
+ "text-value": unref(get)(item, props.labelKey),
945
+ onSelect: item.onSelect
946
+ }, {
947
+ default: withCtx(() => [
948
+ createVNode(_sfc_main$9, mergeProps({ ref_for: true }, unref(pickLinkProps)(item), { custom: "" }), {
949
+ default: withCtx(({ active, ...slotProps }) => [
950
+ createVNode(_sfc_main$a, mergeProps({ ref_for: true }, slotProps, {
938
951
  "data-slot": "item",
939
- class: __props.ui.item({ class: [(_a5 = __props.uiOverride) == null ? void 0 : _a5.item, (_b4 = item.ui) == null ? void 0 : _b4.item, item.class], color: item == null ? void 0 : item.color })
940
- }, {
952
+ class: __props.ui.item({ class: [__props.uiOverride?.item, item.ui?.item, item.class], active, color: item?.color })
953
+ }), {
941
954
  default: withCtx(() => [
942
955
  createVNode(unref(ReuseItemTemplate), {
943
956
  item,
957
+ active,
944
958
  index
945
- }, null, 8, ["item", "index"])
959
+ }, null, 8, ["item", "active", "index"])
946
960
  ]),
947
961
  _: 2
948
- }, 1032, ["disabled", "text-value", "class"]),
949
- createVNode(_sfc_main$2, mergeProps({
950
- sub: "",
951
- class: (_c3 = item.ui) == null ? void 0 : _c3.content,
952
- ui: __props.ui,
953
- "ui-override": __props.uiOverride,
954
- portal: __props.portal,
955
- items: item.children,
956
- "align-offset": -4,
957
- "label-key": __props.labelKey,
958
- "description-key": __props.descriptionKey,
959
- "checked-icon": __props.checkedIcon,
960
- "loading-icon": __props.loadingIcon,
961
- "external-icon": __props.externalIcon
962
- }, { ref_for: true }, item.content), createSlots({ _: 2 }, [
963
- renderList(getProxySlots(), (_2, name) => {
964
- return {
965
- name,
966
- fn: withCtx((slotData) => [
967
- renderSlot(_ctx.$slots, name, mergeProps({ ref_for: true }, slotData))
968
- ])
969
- };
970
- })
971
- ]), 1040, ["class", "ui", "ui-override", "portal", "items", "label-key", "description-key", "checked-icon", "loading-icon", "external-icon"])
972
- ];
973
- }),
974
- _: 2
975
- }, 1032, ["open", "default-open"])) : item.type === "checkbox" ? (openBlock(), createBlock(unref(ContextMenu).CheckboxItem, {
976
- key: 3,
977
- "model-value": item.checked,
978
- disabled: item.disabled,
979
- "text-value": unref(get)(item, props.labelKey),
980
- "data-slot": "item",
981
- class: __props.ui.item({ class: [(_f = __props.uiOverride) == null ? void 0 : _f.item, (_g = item.ui) == null ? void 0 : _g.item, item.class], color: item == null ? void 0 : item.color }),
982
- "onUpdate:modelValue": item.onUpdateChecked,
983
- onSelect: item.onSelect
984
- }, {
985
- default: withCtx(() => [
986
- createVNode(unref(ReuseItemTemplate), {
987
- item,
988
- index
989
- }, null, 8, ["item", "index"])
990
- ]),
991
- _: 2
992
- }, 1032, ["model-value", "disabled", "text-value", "class", "onUpdate:modelValue", "onSelect"])) : (openBlock(), createBlock(unref(ContextMenu).Item, {
993
- key: 4,
994
- "as-child": "",
995
- disabled: item.disabled,
996
- "text-value": unref(get)(item, props.labelKey),
997
- onSelect: item.onSelect
998
- }, {
999
- default: withCtx(() => [
1000
- createVNode(_sfc_main$9, mergeProps({ ref_for: true }, unref(pickLinkProps)(item), { custom: "" }), {
1001
- default: withCtx(({ active, ...slotProps }) => {
1002
- var _a5, _b4;
1003
- return [
1004
- createVNode(_sfc_main$a, mergeProps({ ref_for: true }, slotProps, {
1005
- "data-slot": "item",
1006
- class: __props.ui.item({ class: [(_a5 = __props.uiOverride) == null ? void 0 : _a5.item, (_b4 = item.ui) == null ? void 0 : _b4.item, item.class], active, color: item == null ? void 0 : item.color })
1007
- }), {
1008
- default: withCtx(() => [
1009
- createVNode(unref(ReuseItemTemplate), {
1010
- item,
1011
- active,
1012
- index
1013
- }, null, 8, ["item", "active", "index"])
1014
- ]),
1015
- _: 2
1016
- }, 1040, ["class"])
1017
- ];
1018
- }),
1019
- _: 2
1020
- }, 1040)
1021
- ]),
1022
- _: 2
1023
- }, 1032, ["disabled", "text-value", "onSelect"]))
1024
- ], 64);
1025
- }), 128))
1026
- ]),
1027
- _: 2
1028
- }, 1032, ["class"]);
1029
- }), 128))
1030
- ], 2),
1031
- renderSlot(_ctx.$slots, "default"),
1032
- renderSlot(_ctx.$slots, "content-bottom", {
1033
- sub: (_c = __props.sub) != null ? _c : false
1034
- })
1035
- ];
1036
- }),
962
+ }, 1040, ["class"])
963
+ ]),
964
+ _: 2
965
+ }, 1040)
966
+ ]),
967
+ _: 2
968
+ }, 1032, ["disabled", "text-value", "onSelect"]))
969
+ ], 64);
970
+ }), 128))
971
+ ]),
972
+ _: 2
973
+ }, 1032, ["class"]);
974
+ }), 128))
975
+ ], 2),
976
+ renderSlot(_ctx.$slots, "default"),
977
+ renderSlot(_ctx.$slots, "content-bottom", {
978
+ sub: __props.sub ?? false
979
+ })
980
+ ]),
1037
981
  _: 3
1038
982
  }, 16, ["class"]))
1039
983
  ];
@@ -1280,16 +1224,12 @@ const _sfc_main$1 = {
1280
1224
  const rootProps = useForwardPropsEmits(reactivePick(props, "modal"), emits);
1281
1225
  const contentProps = toRef(() => props.content);
1282
1226
  const getProxySlots = () => omit(slots, ["default"]);
1283
- const ui = computed(() => {
1284
- var _a;
1285
- return tv({ extend: tv(theme$1), ...((_a = appConfig.ui) == null ? void 0 : _a.contextMenu) || {} })({
1286
- size: props.size
1287
- });
1288
- });
1227
+ const ui = computed(() => tv({ extend: tv(theme$1), ...appConfig.ui?.contextMenu || {} })({
1228
+ size: props.size
1229
+ }));
1289
1230
  return (_ctx, _push, _parent, _attrs) => {
1290
1231
  _push(ssrRenderComponent(unref(ContextMenuRoot), mergeProps(unref(rootProps), _attrs), {
1291
1232
  default: withCtx((_, _push2, _parent2, _scopeId) => {
1292
- var _a, _b;
1293
1233
  if (_push2) {
1294
1234
  if (!!slots.default) {
1295
1235
  _push2(ssrRenderComponent(unref(ContextMenuTrigger), {
@@ -1312,7 +1252,7 @@ const _sfc_main$1 = {
1312
1252
  _push2(`<!---->`);
1313
1253
  }
1314
1254
  _push2(ssrRenderComponent(_sfc_main$2, mergeProps({
1315
- class: ui.value.content({ class: [!slots.default && props.class, (_a = props.ui) == null ? void 0 : _a.content] }),
1255
+ class: ui.value.content({ class: [!slots.default && props.class, props.ui?.content] }),
1316
1256
  ui: ui.value,
1317
1257
  "ui-override": props.ui
1318
1258
  }, contentProps.value, {
@@ -1353,7 +1293,7 @@ const _sfc_main$1 = {
1353
1293
  _: 3
1354
1294
  }, 8, ["disabled", "class"])) : createCommentVNode("", true),
1355
1295
  createVNode(_sfc_main$2, mergeProps({
1356
- class: ui.value.content({ class: [!slots.default && props.class, (_b = props.ui) == null ? void 0 : _b.content] }),
1296
+ class: ui.value.content({ class: [!slots.default && props.class, props.ui?.content] }),
1357
1297
  ui: ui.value,
1358
1298
  "ui-override": props.ui
1359
1299
  }, contentProps.value, {
@@ -1575,8 +1515,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
1575
1515
  const appConfig = useAppConfig();
1576
1516
  const rootProps = useForwardPropsEmits(reactivePick(props, "items", "multiple", "expanded", "disabled", "propagateSelect", "bubbleSelect"), emits);
1577
1517
  const as = computed(() => {
1578
- var _a;
1579
- if (typeof props.as === "string" || typeof ((_a = props.as) == null ? void 0 : _a.render) === "function") {
1518
+ if (typeof props.as === "string" || typeof props.as?.render === "function") {
1580
1519
  return { root: props.as, link: "button" };
1581
1520
  }
1582
1521
  return defu(props.as, { root: "ul", link: "button" });
@@ -1621,14 +1560,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
1621
1560
  }
1622
1561
  }
1623
1562
  });
1624
- const ui = computed(() => {
1625
- var _a;
1626
- return tv({ extend: tv(theme), ...((_a = appConfig.ui) == null ? void 0 : _a.tree) || {} })({
1627
- color: props.color,
1628
- size: props.size,
1629
- virtualize: !!props.virtualize
1630
- });
1631
- });
1563
+ const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.tree || {} })({
1564
+ color: props.color,
1565
+ size: props.size,
1566
+ virtualize: !!props.virtualize
1567
+ }));
1632
1568
  const rootRef = useTemplateRef("rootRef");
1633
1569
  function getItemLabel(item) {
1634
1570
  return get(item, props.labelKey);
@@ -1637,78 +1573,61 @@ const _sfc_main = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
1637
1573
  return props.getKey ? props.getKey(item) || getItemLabel(item) : getItemLabel(item);
1638
1574
  }
1639
1575
  function getDefaultOpenedItems(item) {
1640
- var _a, _b;
1641
1576
  const currentItem = item.defaultExpanded ? getItemKey(item) : null;
1642
- const childItems = (_b = (_a = item.children) == null ? void 0 : _a.flatMap((child) => getDefaultOpenedItems(child))) != null ? _b : [];
1577
+ const childItems = item.children?.flatMap((child) => getDefaultOpenedItems(child)) ?? [];
1643
1578
  return [currentItem, ...childItems].filter(Boolean);
1644
1579
  }
1645
- const defaultExpanded = computed(() => {
1646
- var _a, _b;
1647
- return (_b = props.defaultExpanded) != null ? _b : (_a = props.items) == null ? void 0 : _a.flatMap((item) => getDefaultOpenedItems(item));
1648
- });
1580
+ const defaultExpanded = computed(() => props.defaultExpanded ?? props.items?.flatMap((item) => getDefaultOpenedItems(item)));
1649
1581
  __expose({
1650
1582
  get $el() {
1651
- var _a;
1652
- return (_a = rootRef.value) == null ? void 0 : _a.$el;
1583
+ return rootRef.value?.$el;
1653
1584
  }
1654
1585
  });
1655
1586
  return (_ctx, _push, _parent, _attrs) => {
1656
- var _a;
1657
1587
  _push(`<!--[-->`);
1658
1588
  _push(ssrRenderComponent(unref(DefineItemTemplate), null, {
1659
1589
  default: withCtx(({ item, index, level }, _push2, _parent2, _scopeId) => {
1660
- var _a2, _b, _c, _d, _e, _f, _g, _h;
1661
1590
  if (_push2) {
1662
- _push2(`<li role="presentation" class="${ssrRenderClass(!!nested.value && level > 1 ? ui.value.itemWithChildren({ class: [(_a2 = props.ui) == null ? void 0 : _a2.itemWithChildren, (_b = item.ui) == null ? void 0 : _b.itemWithChildren] }) : ui.value.item({ class: [(_c = props.ui) == null ? void 0 : _c.item, (_d = item.ui) == null ? void 0 : _d.item] }))}"${_scopeId}>`);
1591
+ _push2(`<li role="presentation" class="${ssrRenderClass(!!nested.value && level > 1 ? ui.value.itemWithChildren({ class: [props.ui?.itemWithChildren, item.ui?.itemWithChildren] }) : ui.value.item({ class: [props.ui?.item, item.ui?.item] }))}"${_scopeId}>`);
1663
1592
  _push2(ssrRenderComponent(unref(TreeItem), {
1664
1593
  level,
1665
1594
  value: item,
1666
1595
  "as-child": "",
1667
- onToggle: ($event) => {
1668
- var _a3, _b2;
1669
- return (_b2 = (_a3 = item.onToggle) != null ? _a3 : props.onToggle) == null ? void 0 : _b2($event, item);
1670
- },
1671
- onSelect: ($event) => {
1672
- var _a3, _b2;
1673
- return (_b2 = (_a3 = item.onSelect) != null ? _a3 : props.onSelect) == null ? void 0 : _b2($event, item);
1674
- }
1596
+ onToggle: ($event) => (item.onToggle ?? props.onToggle)?.($event, item),
1597
+ onSelect: ($event) => (item.onSelect ?? props.onSelect)?.($event, item)
1675
1598
  }, {
1676
1599
  default: withCtx(({ isExpanded, isSelected, isIndeterminate, handleSelect, handleToggle }, _push3, _parent3, _scopeId2) => {
1677
- var _a3, _b2, _c2, _d2, _e2, _f2;
1678
1600
  if (_push3) {
1679
1601
  ssrRenderSlot(_ctx.$slots, item.slot ? `${item.slot}-wrapper` : "item-wrapper", mergeProps({ index, level, expanded: isExpanded, selected: isSelected, indeterminate: isIndeterminate, handleSelect, handleToggle, ui: ui.value }, { item }), () => {
1680
- var _a4, _b3;
1681
1602
  ssrRenderVNode(_push3, createVNode(resolveDynamicComponent(as.value.link), {
1682
1603
  type: as.value.link === "button" ? "button" : void 0,
1683
1604
  disabled: item.disabled || __props.disabled,
1684
1605
  "data-slot": "link",
1685
- class: ui.value.link({ class: [(_a4 = props.ui) == null ? void 0 : _a4.link, (_b3 = item.ui) == null ? void 0 : _b3.link, item.class], selected: isSelected, disabled: item.disabled || __props.disabled }),
1606
+ class: ui.value.link({ class: [props.ui?.link, item.ui?.link, item.class], selected: isSelected, disabled: item.disabled || __props.disabled }),
1686
1607
  style: !nested.value && level > 1 ? { paddingLeft: flattenedPaddingFormula.value(level) } : void 0
1687
1608
  }, {
1688
1609
  default: withCtx((_, _push4, _parent4, _scopeId3) => {
1689
1610
  if (_push4) {
1690
1611
  ssrRenderSlot(_ctx.$slots, item.slot || "item", mergeProps({ index, level, expanded: isExpanded, selected: isSelected, indeterminate: isIndeterminate, handleSelect, handleToggle, ui: ui.value }, { item }), () => {
1691
- var _a5, _b4, _c3, _d3, _e3;
1692
1612
  ssrRenderSlot(_ctx.$slots, item.slot ? `${item.slot}-leading` : "item-leading", mergeProps({ index, level, expanded: isExpanded, selected: isSelected, indeterminate: isIndeterminate, handleSelect, handleToggle, ui: ui.value }, { item }), () => {
1693
- var _a6, _b5, _c4, _d4, _e4, _f3, _g2;
1694
1613
  if (item.icon) {
1695
1614
  _push4(ssrRenderComponent(_sfc_main$d, {
1696
1615
  name: item.icon,
1697
1616
  "data-slot": "linkLeadingIcon",
1698
- class: ui.value.linkLeadingIcon({ class: [(_a6 = props.ui) == null ? void 0 : _a6.linkLeadingIcon, (_b5 = item.ui) == null ? void 0 : _b5.linkLeadingIcon] })
1617
+ class: ui.value.linkLeadingIcon({ class: [props.ui?.linkLeadingIcon, item.ui?.linkLeadingIcon] })
1699
1618
  }, null, _parent4, _scopeId3));
1700
- } else if ((_c4 = item.children) == null ? void 0 : _c4.length) {
1619
+ } else if (item.children?.length) {
1701
1620
  _push4(ssrRenderComponent(_sfc_main$d, {
1702
- name: isExpanded ? (_d4 = __props.expandedIcon) != null ? _d4 : unref(appConfig).ui.icons.folderOpen : (_e4 = __props.collapsedIcon) != null ? _e4 : unref(appConfig).ui.icons.folder,
1621
+ name: isExpanded ? __props.expandedIcon ?? unref(appConfig).ui.icons.folderOpen : __props.collapsedIcon ?? unref(appConfig).ui.icons.folder,
1703
1622
  "data-slot": "linkLeadingIcon",
1704
- class: ui.value.linkLeadingIcon({ class: [(_f3 = props.ui) == null ? void 0 : _f3.linkLeadingIcon, (_g2 = item.ui) == null ? void 0 : _g2.linkLeadingIcon] })
1623
+ class: ui.value.linkLeadingIcon({ class: [props.ui?.linkLeadingIcon, item.ui?.linkLeadingIcon] })
1705
1624
  }, null, _parent4, _scopeId3));
1706
1625
  } else {
1707
1626
  _push4(`<!---->`);
1708
1627
  }
1709
1628
  }, _push4, _parent4, _scopeId3);
1710
1629
  if (getItemLabel(item) || !!slots[item.slot ? `${item.slot}-label` : "item-label"]) {
1711
- _push4(`<span data-slot="linkLabel" class="${ssrRenderClass(ui.value.linkLabel({ class: [(_a5 = props.ui) == null ? void 0 : _a5.linkLabel, (_b4 = item.ui) == null ? void 0 : _b4.linkLabel] }))}"${_scopeId3}>`);
1630
+ _push4(`<span data-slot="linkLabel" class="${ssrRenderClass(ui.value.linkLabel({ class: [props.ui?.linkLabel, item.ui?.linkLabel] }))}"${_scopeId3}>`);
1712
1631
  ssrRenderSlot(_ctx.$slots, item.slot ? `${item.slot}-label` : "item-label", mergeProps({ index, level, expanded: isExpanded, selected: isSelected, indeterminate: isIndeterminate, handleSelect, handleToggle, ui: ui.value }, { item }), () => {
1713
1632
  _push4(`${ssrInterpolate(getItemLabel(item))}`);
1714
1633
  }, _push4, _parent4, _scopeId3);
@@ -1716,21 +1635,20 @@ const _sfc_main = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
1716
1635
  } else {
1717
1636
  _push4(`<!---->`);
1718
1637
  }
1719
- if (item.trailingIcon || ((_c3 = item.children) == null ? void 0 : _c3.length) || !!slots[item.slot ? `${item.slot}-trailing` : "item-trailing"]) {
1720
- _push4(`<span data-slot="linkTrailing" class="${ssrRenderClass(ui.value.linkTrailing({ class: [(_d3 = props.ui) == null ? void 0 : _d3.linkTrailing, (_e3 = item.ui) == null ? void 0 : _e3.linkTrailing] }))}"${_scopeId3}>`);
1638
+ if (item.trailingIcon || item.children?.length || !!slots[item.slot ? `${item.slot}-trailing` : "item-trailing"]) {
1639
+ _push4(`<span data-slot="linkTrailing" class="${ssrRenderClass(ui.value.linkTrailing({ class: [props.ui?.linkTrailing, item.ui?.linkTrailing] }))}"${_scopeId3}>`);
1721
1640
  ssrRenderSlot(_ctx.$slots, item.slot ? `${item.slot}-trailing` : "item-trailing", mergeProps({ index, level, expanded: isExpanded, selected: isSelected, indeterminate: isIndeterminate, handleSelect, handleToggle, ui: ui.value }, { item }), () => {
1722
- var _a6, _b5, _c4, _d4, _e4, _f3;
1723
1641
  if (item.trailingIcon) {
1724
1642
  _push4(ssrRenderComponent(_sfc_main$d, {
1725
1643
  name: item.trailingIcon,
1726
1644
  "data-slot": "linkTrailingIcon",
1727
- class: ui.value.linkTrailingIcon({ class: [(_a6 = props.ui) == null ? void 0 : _a6.linkTrailingIcon, (_b5 = item.ui) == null ? void 0 : _b5.linkTrailingIcon] })
1645
+ class: ui.value.linkTrailingIcon({ class: [props.ui?.linkTrailingIcon, item.ui?.linkTrailingIcon] })
1728
1646
  }, null, _parent4, _scopeId3));
1729
- } else if ((_c4 = item.children) == null ? void 0 : _c4.length) {
1647
+ } else if (item.children?.length) {
1730
1648
  _push4(ssrRenderComponent(_sfc_main$d, {
1731
- name: (_d4 = __props.trailingIcon) != null ? _d4 : unref(appConfig).ui.icons.chevronDown,
1649
+ name: __props.trailingIcon ?? unref(appConfig).ui.icons.chevronDown,
1732
1650
  "data-slot": "linkTrailingIcon",
1733
- class: ui.value.linkTrailingIcon({ class: [(_e4 = props.ui) == null ? void 0 : _e4.linkTrailingIcon, (_f3 = item.ui) == null ? void 0 : _f3.linkTrailingIcon] })
1651
+ class: ui.value.linkTrailingIcon({ class: [props.ui?.linkTrailingIcon, item.ui?.linkTrailingIcon] })
1734
1652
  }, null, _parent4, _scopeId3));
1735
1653
  } else {
1736
1654
  _push4(`<!---->`);
@@ -1743,66 +1661,57 @@ const _sfc_main = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
1743
1661
  }, _push4, _parent4, _scopeId3);
1744
1662
  } else {
1745
1663
  return [
1746
- renderSlot(_ctx.$slots, item.slot || "item", mergeProps({ index, level, expanded: isExpanded, selected: isSelected, indeterminate: isIndeterminate, handleSelect, handleToggle, ui: ui.value }, { item }), () => {
1747
- var _a5, _b4, _c3, _d3, _e3;
1748
- return [
1749
- renderSlot(_ctx.$slots, item.slot ? `${item.slot}-leading` : "item-leading", mergeProps({ index, level, expanded: isExpanded, selected: isSelected, indeterminate: isIndeterminate, handleSelect, handleToggle, ui: ui.value }, { item }), () => {
1750
- var _a6, _b5, _c4, _d4, _e4, _f3, _g2;
1751
- return [
1752
- item.icon ? (openBlock(), createBlock(_sfc_main$d, {
1753
- key: 0,
1754
- name: item.icon,
1755
- "data-slot": "linkLeadingIcon",
1756
- class: ui.value.linkLeadingIcon({ class: [(_a6 = props.ui) == null ? void 0 : _a6.linkLeadingIcon, (_b5 = item.ui) == null ? void 0 : _b5.linkLeadingIcon] })
1757
- }, null, 8, ["name", "class"])) : ((_c4 = item.children) == null ? void 0 : _c4.length) ? (openBlock(), createBlock(_sfc_main$d, {
1758
- key: 1,
1759
- name: isExpanded ? (_d4 = __props.expandedIcon) != null ? _d4 : unref(appConfig).ui.icons.folderOpen : (_e4 = __props.collapsedIcon) != null ? _e4 : unref(appConfig).ui.icons.folder,
1760
- "data-slot": "linkLeadingIcon",
1761
- class: ui.value.linkLeadingIcon({ class: [(_f3 = props.ui) == null ? void 0 : _f3.linkLeadingIcon, (_g2 = item.ui) == null ? void 0 : _g2.linkLeadingIcon] })
1762
- }, null, 8, ["name", "class"])) : createCommentVNode("", true)
1763
- ];
1764
- }),
1765
- getItemLabel(item) || !!slots[item.slot ? `${item.slot}-label` : "item-label"] ? (openBlock(), createBlock("span", {
1664
+ renderSlot(_ctx.$slots, item.slot || "item", mergeProps({ index, level, expanded: isExpanded, selected: isSelected, indeterminate: isIndeterminate, handleSelect, handleToggle, ui: ui.value }, { item }), () => [
1665
+ renderSlot(_ctx.$slots, item.slot ? `${item.slot}-leading` : "item-leading", mergeProps({ index, level, expanded: isExpanded, selected: isSelected, indeterminate: isIndeterminate, handleSelect, handleToggle, ui: ui.value }, { item }), () => [
1666
+ item.icon ? (openBlock(), createBlock(_sfc_main$d, {
1766
1667
  key: 0,
1767
- "data-slot": "linkLabel",
1768
- class: ui.value.linkLabel({ class: [(_a5 = props.ui) == null ? void 0 : _a5.linkLabel, (_b4 = item.ui) == null ? void 0 : _b4.linkLabel] })
1769
- }, [
1770
- renderSlot(_ctx.$slots, item.slot ? `${item.slot}-label` : "item-label", mergeProps({ index, level, expanded: isExpanded, selected: isSelected, indeterminate: isIndeterminate, handleSelect, handleToggle, ui: ui.value }, { item }), () => [
1771
- createTextVNode(toDisplayString(getItemLabel(item)), 1)
1772
- ])
1773
- ], 2)) : createCommentVNode("", true),
1774
- item.trailingIcon || ((_c3 = item.children) == null ? void 0 : _c3.length) || !!slots[item.slot ? `${item.slot}-trailing` : "item-trailing"] ? (openBlock(), createBlock("span", {
1668
+ name: item.icon,
1669
+ "data-slot": "linkLeadingIcon",
1670
+ class: ui.value.linkLeadingIcon({ class: [props.ui?.linkLeadingIcon, item.ui?.linkLeadingIcon] })
1671
+ }, null, 8, ["name", "class"])) : item.children?.length ? (openBlock(), createBlock(_sfc_main$d, {
1775
1672
  key: 1,
1776
- "data-slot": "linkTrailing",
1777
- class: ui.value.linkTrailing({ class: [(_d3 = props.ui) == null ? void 0 : _d3.linkTrailing, (_e3 = item.ui) == null ? void 0 : _e3.linkTrailing] })
1778
- }, [
1779
- renderSlot(_ctx.$slots, item.slot ? `${item.slot}-trailing` : "item-trailing", mergeProps({ index, level, expanded: isExpanded, selected: isSelected, indeterminate: isIndeterminate, handleSelect, handleToggle, ui: ui.value }, { item }), () => {
1780
- var _a6, _b5, _c4, _d4, _e4, _f3;
1781
- return [
1782
- item.trailingIcon ? (openBlock(), createBlock(_sfc_main$d, {
1783
- key: 0,
1784
- name: item.trailingIcon,
1785
- "data-slot": "linkTrailingIcon",
1786
- class: ui.value.linkTrailingIcon({ class: [(_a6 = props.ui) == null ? void 0 : _a6.linkTrailingIcon, (_b5 = item.ui) == null ? void 0 : _b5.linkTrailingIcon] })
1787
- }, null, 8, ["name", "class"])) : ((_c4 = item.children) == null ? void 0 : _c4.length) ? (openBlock(), createBlock(_sfc_main$d, {
1788
- key: 1,
1789
- name: (_d4 = __props.trailingIcon) != null ? _d4 : unref(appConfig).ui.icons.chevronDown,
1790
- "data-slot": "linkTrailingIcon",
1791
- class: ui.value.linkTrailingIcon({ class: [(_e4 = props.ui) == null ? void 0 : _e4.linkTrailingIcon, (_f3 = item.ui) == null ? void 0 : _f3.linkTrailingIcon] })
1792
- }, null, 8, ["name", "class"])) : createCommentVNode("", true)
1793
- ];
1794
- })
1795
- ], 2)) : createCommentVNode("", true)
1796
- ];
1797
- })
1673
+ name: isExpanded ? __props.expandedIcon ?? unref(appConfig).ui.icons.folderOpen : __props.collapsedIcon ?? unref(appConfig).ui.icons.folder,
1674
+ "data-slot": "linkLeadingIcon",
1675
+ class: ui.value.linkLeadingIcon({ class: [props.ui?.linkLeadingIcon, item.ui?.linkLeadingIcon] })
1676
+ }, null, 8, ["name", "class"])) : createCommentVNode("", true)
1677
+ ]),
1678
+ getItemLabel(item) || !!slots[item.slot ? `${item.slot}-label` : "item-label"] ? (openBlock(), createBlock("span", {
1679
+ key: 0,
1680
+ "data-slot": "linkLabel",
1681
+ class: ui.value.linkLabel({ class: [props.ui?.linkLabel, item.ui?.linkLabel] })
1682
+ }, [
1683
+ renderSlot(_ctx.$slots, item.slot ? `${item.slot}-label` : "item-label", mergeProps({ index, level, expanded: isExpanded, selected: isSelected, indeterminate: isIndeterminate, handleSelect, handleToggle, ui: ui.value }, { item }), () => [
1684
+ createTextVNode(toDisplayString(getItemLabel(item)), 1)
1685
+ ])
1686
+ ], 2)) : createCommentVNode("", true),
1687
+ item.trailingIcon || item.children?.length || !!slots[item.slot ? `${item.slot}-trailing` : "item-trailing"] ? (openBlock(), createBlock("span", {
1688
+ key: 1,
1689
+ "data-slot": "linkTrailing",
1690
+ class: ui.value.linkTrailing({ class: [props.ui?.linkTrailing, item.ui?.linkTrailing] })
1691
+ }, [
1692
+ renderSlot(_ctx.$slots, item.slot ? `${item.slot}-trailing` : "item-trailing", mergeProps({ index, level, expanded: isExpanded, selected: isSelected, indeterminate: isIndeterminate, handleSelect, handleToggle, ui: ui.value }, { item }), () => [
1693
+ item.trailingIcon ? (openBlock(), createBlock(_sfc_main$d, {
1694
+ key: 0,
1695
+ name: item.trailingIcon,
1696
+ "data-slot": "linkTrailingIcon",
1697
+ class: ui.value.linkTrailingIcon({ class: [props.ui?.linkTrailingIcon, item.ui?.linkTrailingIcon] })
1698
+ }, null, 8, ["name", "class"])) : item.children?.length ? (openBlock(), createBlock(_sfc_main$d, {
1699
+ key: 1,
1700
+ name: __props.trailingIcon ?? unref(appConfig).ui.icons.chevronDown,
1701
+ "data-slot": "linkTrailingIcon",
1702
+ class: ui.value.linkTrailingIcon({ class: [props.ui?.linkTrailingIcon, item.ui?.linkTrailingIcon] })
1703
+ }, null, 8, ["name", "class"])) : createCommentVNode("", true)
1704
+ ])
1705
+ ], 2)) : createCommentVNode("", true)
1706
+ ])
1798
1707
  ];
1799
1708
  }
1800
1709
  }),
1801
1710
  _: 2
1802
1711
  }), _parent3, _scopeId2);
1803
1712
  }, _push3, _parent3, _scopeId2);
1804
- if (nested.value && ((_a3 = item.children) == null ? void 0 : _a3.length) && isExpanded) {
1805
- _push3(`<ul role="group" data-slot="listWithChildren" class="${ssrRenderClass(ui.value.listWithChildren({ class: [(_b2 = props.ui) == null ? void 0 : _b2.listWithChildren, (_c2 = item.ui) == null ? void 0 : _c2.listWithChildren] }))}"${_scopeId2}>`);
1713
+ if (nested.value && item.children?.length && isExpanded) {
1714
+ _push3(`<ul role="group" data-slot="listWithChildren" class="${ssrRenderClass(ui.value.listWithChildren({ class: [props.ui?.listWithChildren, item.ui?.listWithChildren] }))}"${_scopeId2}>`);
1806
1715
  _push3(ssrRenderComponent(unref(ReuseTreeTemplate), {
1807
1716
  items: item.children,
1808
1717
  level: level + 1
@@ -1813,79 +1722,67 @@ const _sfc_main = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
1813
1722
  }
1814
1723
  } else {
1815
1724
  return [
1816
- renderSlot(_ctx.$slots, item.slot ? `${item.slot}-wrapper` : "item-wrapper", mergeProps({ index, level, expanded: isExpanded, selected: isSelected, indeterminate: isIndeterminate, handleSelect, handleToggle, ui: ui.value }, { item }), () => {
1817
- var _a4, _b3;
1818
- return [
1819
- (openBlock(), createBlock(resolveDynamicComponent(as.value.link), {
1820
- type: as.value.link === "button" ? "button" : void 0,
1821
- disabled: item.disabled || __props.disabled,
1822
- "data-slot": "link",
1823
- class: ui.value.link({ class: [(_a4 = props.ui) == null ? void 0 : _a4.link, (_b3 = item.ui) == null ? void 0 : _b3.link, item.class], selected: isSelected, disabled: item.disabled || __props.disabled }),
1824
- style: !nested.value && level > 1 ? { paddingLeft: flattenedPaddingFormula.value(level) } : void 0
1825
- }, {
1826
- default: withCtx(() => [
1827
- renderSlot(_ctx.$slots, item.slot || "item", mergeProps({ index, level, expanded: isExpanded, selected: isSelected, indeterminate: isIndeterminate, handleSelect, handleToggle, ui: ui.value }, { item }), () => {
1828
- var _a5, _b4, _c3, _d3, _e3;
1829
- return [
1830
- renderSlot(_ctx.$slots, item.slot ? `${item.slot}-leading` : "item-leading", mergeProps({ index, level, expanded: isExpanded, selected: isSelected, indeterminate: isIndeterminate, handleSelect, handleToggle, ui: ui.value }, { item }), () => {
1831
- var _a6, _b5, _c4, _d4, _e4, _f3, _g2;
1832
- return [
1833
- item.icon ? (openBlock(), createBlock(_sfc_main$d, {
1834
- key: 0,
1835
- name: item.icon,
1836
- "data-slot": "linkLeadingIcon",
1837
- class: ui.value.linkLeadingIcon({ class: [(_a6 = props.ui) == null ? void 0 : _a6.linkLeadingIcon, (_b5 = item.ui) == null ? void 0 : _b5.linkLeadingIcon] })
1838
- }, null, 8, ["name", "class"])) : ((_c4 = item.children) == null ? void 0 : _c4.length) ? (openBlock(), createBlock(_sfc_main$d, {
1839
- key: 1,
1840
- name: isExpanded ? (_d4 = __props.expandedIcon) != null ? _d4 : unref(appConfig).ui.icons.folderOpen : (_e4 = __props.collapsedIcon) != null ? _e4 : unref(appConfig).ui.icons.folder,
1841
- "data-slot": "linkLeadingIcon",
1842
- class: ui.value.linkLeadingIcon({ class: [(_f3 = props.ui) == null ? void 0 : _f3.linkLeadingIcon, (_g2 = item.ui) == null ? void 0 : _g2.linkLeadingIcon] })
1843
- }, null, 8, ["name", "class"])) : createCommentVNode("", true)
1844
- ];
1845
- }),
1846
- getItemLabel(item) || !!slots[item.slot ? `${item.slot}-label` : "item-label"] ? (openBlock(), createBlock("span", {
1725
+ renderSlot(_ctx.$slots, item.slot ? `${item.slot}-wrapper` : "item-wrapper", mergeProps({ index, level, expanded: isExpanded, selected: isSelected, indeterminate: isIndeterminate, handleSelect, handleToggle, ui: ui.value }, { item }), () => [
1726
+ (openBlock(), createBlock(resolveDynamicComponent(as.value.link), {
1727
+ type: as.value.link === "button" ? "button" : void 0,
1728
+ disabled: item.disabled || __props.disabled,
1729
+ "data-slot": "link",
1730
+ class: ui.value.link({ class: [props.ui?.link, item.ui?.link, item.class], selected: isSelected, disabled: item.disabled || __props.disabled }),
1731
+ style: !nested.value && level > 1 ? { paddingLeft: flattenedPaddingFormula.value(level) } : void 0
1732
+ }, {
1733
+ default: withCtx(() => [
1734
+ renderSlot(_ctx.$slots, item.slot || "item", mergeProps({ index, level, expanded: isExpanded, selected: isSelected, indeterminate: isIndeterminate, handleSelect, handleToggle, ui: ui.value }, { item }), () => [
1735
+ renderSlot(_ctx.$slots, item.slot ? `${item.slot}-leading` : "item-leading", mergeProps({ index, level, expanded: isExpanded, selected: isSelected, indeterminate: isIndeterminate, handleSelect, handleToggle, ui: ui.value }, { item }), () => [
1736
+ item.icon ? (openBlock(), createBlock(_sfc_main$d, {
1737
+ key: 0,
1738
+ name: item.icon,
1739
+ "data-slot": "linkLeadingIcon",
1740
+ class: ui.value.linkLeadingIcon({ class: [props.ui?.linkLeadingIcon, item.ui?.linkLeadingIcon] })
1741
+ }, null, 8, ["name", "class"])) : item.children?.length ? (openBlock(), createBlock(_sfc_main$d, {
1742
+ key: 1,
1743
+ name: isExpanded ? __props.expandedIcon ?? unref(appConfig).ui.icons.folderOpen : __props.collapsedIcon ?? unref(appConfig).ui.icons.folder,
1744
+ "data-slot": "linkLeadingIcon",
1745
+ class: ui.value.linkLeadingIcon({ class: [props.ui?.linkLeadingIcon, item.ui?.linkLeadingIcon] })
1746
+ }, null, 8, ["name", "class"])) : createCommentVNode("", true)
1747
+ ]),
1748
+ getItemLabel(item) || !!slots[item.slot ? `${item.slot}-label` : "item-label"] ? (openBlock(), createBlock("span", {
1749
+ key: 0,
1750
+ "data-slot": "linkLabel",
1751
+ class: ui.value.linkLabel({ class: [props.ui?.linkLabel, item.ui?.linkLabel] })
1752
+ }, [
1753
+ renderSlot(_ctx.$slots, item.slot ? `${item.slot}-label` : "item-label", mergeProps({ index, level, expanded: isExpanded, selected: isSelected, indeterminate: isIndeterminate, handleSelect, handleToggle, ui: ui.value }, { item }), () => [
1754
+ createTextVNode(toDisplayString(getItemLabel(item)), 1)
1755
+ ])
1756
+ ], 2)) : createCommentVNode("", true),
1757
+ item.trailingIcon || item.children?.length || !!slots[item.slot ? `${item.slot}-trailing` : "item-trailing"] ? (openBlock(), createBlock("span", {
1758
+ key: 1,
1759
+ "data-slot": "linkTrailing",
1760
+ class: ui.value.linkTrailing({ class: [props.ui?.linkTrailing, item.ui?.linkTrailing] })
1761
+ }, [
1762
+ renderSlot(_ctx.$slots, item.slot ? `${item.slot}-trailing` : "item-trailing", mergeProps({ index, level, expanded: isExpanded, selected: isSelected, indeterminate: isIndeterminate, handleSelect, handleToggle, ui: ui.value }, { item }), () => [
1763
+ item.trailingIcon ? (openBlock(), createBlock(_sfc_main$d, {
1847
1764
  key: 0,
1848
- "data-slot": "linkLabel",
1849
- class: ui.value.linkLabel({ class: [(_a5 = props.ui) == null ? void 0 : _a5.linkLabel, (_b4 = item.ui) == null ? void 0 : _b4.linkLabel] })
1850
- }, [
1851
- renderSlot(_ctx.$slots, item.slot ? `${item.slot}-label` : "item-label", mergeProps({ index, level, expanded: isExpanded, selected: isSelected, indeterminate: isIndeterminate, handleSelect, handleToggle, ui: ui.value }, { item }), () => [
1852
- createTextVNode(toDisplayString(getItemLabel(item)), 1)
1853
- ])
1854
- ], 2)) : createCommentVNode("", true),
1855
- item.trailingIcon || ((_c3 = item.children) == null ? void 0 : _c3.length) || !!slots[item.slot ? `${item.slot}-trailing` : "item-trailing"] ? (openBlock(), createBlock("span", {
1765
+ name: item.trailingIcon,
1766
+ "data-slot": "linkTrailingIcon",
1767
+ class: ui.value.linkTrailingIcon({ class: [props.ui?.linkTrailingIcon, item.ui?.linkTrailingIcon] })
1768
+ }, null, 8, ["name", "class"])) : item.children?.length ? (openBlock(), createBlock(_sfc_main$d, {
1856
1769
  key: 1,
1857
- "data-slot": "linkTrailing",
1858
- class: ui.value.linkTrailing({ class: [(_d3 = props.ui) == null ? void 0 : _d3.linkTrailing, (_e3 = item.ui) == null ? void 0 : _e3.linkTrailing] })
1859
- }, [
1860
- renderSlot(_ctx.$slots, item.slot ? `${item.slot}-trailing` : "item-trailing", mergeProps({ index, level, expanded: isExpanded, selected: isSelected, indeterminate: isIndeterminate, handleSelect, handleToggle, ui: ui.value }, { item }), () => {
1861
- var _a6, _b5, _c4, _d4, _e4, _f3;
1862
- return [
1863
- item.trailingIcon ? (openBlock(), createBlock(_sfc_main$d, {
1864
- key: 0,
1865
- name: item.trailingIcon,
1866
- "data-slot": "linkTrailingIcon",
1867
- class: ui.value.linkTrailingIcon({ class: [(_a6 = props.ui) == null ? void 0 : _a6.linkTrailingIcon, (_b5 = item.ui) == null ? void 0 : _b5.linkTrailingIcon] })
1868
- }, null, 8, ["name", "class"])) : ((_c4 = item.children) == null ? void 0 : _c4.length) ? (openBlock(), createBlock(_sfc_main$d, {
1869
- key: 1,
1870
- name: (_d4 = __props.trailingIcon) != null ? _d4 : unref(appConfig).ui.icons.chevronDown,
1871
- "data-slot": "linkTrailingIcon",
1872
- class: ui.value.linkTrailingIcon({ class: [(_e4 = props.ui) == null ? void 0 : _e4.linkTrailingIcon, (_f3 = item.ui) == null ? void 0 : _f3.linkTrailingIcon] })
1873
- }, null, 8, ["name", "class"])) : createCommentVNode("", true)
1874
- ];
1875
- })
1876
- ], 2)) : createCommentVNode("", true)
1877
- ];
1878
- })
1879
- ]),
1880
- _: 2
1881
- }, 1032, ["type", "disabled", "class", "style"]))
1882
- ];
1883
- }),
1884
- nested.value && ((_d2 = item.children) == null ? void 0 : _d2.length) && isExpanded ? (openBlock(), createBlock("ul", {
1770
+ name: __props.trailingIcon ?? unref(appConfig).ui.icons.chevronDown,
1771
+ "data-slot": "linkTrailingIcon",
1772
+ class: ui.value.linkTrailingIcon({ class: [props.ui?.linkTrailingIcon, item.ui?.linkTrailingIcon] })
1773
+ }, null, 8, ["name", "class"])) : createCommentVNode("", true)
1774
+ ])
1775
+ ], 2)) : createCommentVNode("", true)
1776
+ ])
1777
+ ]),
1778
+ _: 2
1779
+ }, 1032, ["type", "disabled", "class", "style"]))
1780
+ ]),
1781
+ nested.value && item.children?.length && isExpanded ? (openBlock(), createBlock("ul", {
1885
1782
  key: 0,
1886
1783
  role: "group",
1887
1784
  "data-slot": "listWithChildren",
1888
- class: ui.value.listWithChildren({ class: [(_e2 = props.ui) == null ? void 0 : _e2.listWithChildren, (_f2 = item.ui) == null ? void 0 : _f2.listWithChildren] })
1785
+ class: ui.value.listWithChildren({ class: [props.ui?.listWithChildren, item.ui?.listWithChildren] })
1889
1786
  }, [
1890
1787
  createVNode(unref(ReuseTreeTemplate), {
1891
1788
  items: item.children,
@@ -1902,105 +1799,84 @@ const _sfc_main = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
1902
1799
  return [
1903
1800
  createVNode("li", {
1904
1801
  role: "presentation",
1905
- class: !!nested.value && level > 1 ? ui.value.itemWithChildren({ class: [(_e = props.ui) == null ? void 0 : _e.itemWithChildren, (_f = item.ui) == null ? void 0 : _f.itemWithChildren] }) : ui.value.item({ class: [(_g = props.ui) == null ? void 0 : _g.item, (_h = item.ui) == null ? void 0 : _h.item] })
1802
+ class: !!nested.value && level > 1 ? ui.value.itemWithChildren({ class: [props.ui?.itemWithChildren, item.ui?.itemWithChildren] }) : ui.value.item({ class: [props.ui?.item, item.ui?.item] })
1906
1803
  }, [
1907
1804
  createVNode(unref(TreeItem), {
1908
1805
  level,
1909
1806
  value: item,
1910
1807
  "as-child": "",
1911
- onToggle: ($event) => {
1912
- var _a3, _b2;
1913
- return (_b2 = (_a3 = item.onToggle) != null ? _a3 : props.onToggle) == null ? void 0 : _b2($event, item);
1914
- },
1915
- onSelect: ($event) => {
1916
- var _a3, _b2;
1917
- return (_b2 = (_a3 = item.onSelect) != null ? _a3 : props.onSelect) == null ? void 0 : _b2($event, item);
1918
- }
1808
+ onToggle: ($event) => (item.onToggle ?? props.onToggle)?.($event, item),
1809
+ onSelect: ($event) => (item.onSelect ?? props.onSelect)?.($event, item)
1919
1810
  }, {
1920
- default: withCtx(({ isExpanded, isSelected, isIndeterminate, handleSelect, handleToggle }) => {
1921
- var _a3, _b2, _c2;
1922
- return [
1923
- renderSlot(_ctx.$slots, item.slot ? `${item.slot}-wrapper` : "item-wrapper", mergeProps({ index, level, expanded: isExpanded, selected: isSelected, indeterminate: isIndeterminate, handleSelect, handleToggle, ui: ui.value }, { item }), () => {
1924
- var _a4, _b3;
1925
- return [
1926
- (openBlock(), createBlock(resolveDynamicComponent(as.value.link), {
1927
- type: as.value.link === "button" ? "button" : void 0,
1928
- disabled: item.disabled || __props.disabled,
1929
- "data-slot": "link",
1930
- class: ui.value.link({ class: [(_a4 = props.ui) == null ? void 0 : _a4.link, (_b3 = item.ui) == null ? void 0 : _b3.link, item.class], selected: isSelected, disabled: item.disabled || __props.disabled }),
1931
- style: !nested.value && level > 1 ? { paddingLeft: flattenedPaddingFormula.value(level) } : void 0
1932
- }, {
1933
- default: withCtx(() => [
1934
- renderSlot(_ctx.$slots, item.slot || "item", mergeProps({ index, level, expanded: isExpanded, selected: isSelected, indeterminate: isIndeterminate, handleSelect, handleToggle, ui: ui.value }, { item }), () => {
1935
- var _a5, _b4, _c3, _d2, _e2;
1936
- return [
1937
- renderSlot(_ctx.$slots, item.slot ? `${item.slot}-leading` : "item-leading", mergeProps({ index, level, expanded: isExpanded, selected: isSelected, indeterminate: isIndeterminate, handleSelect, handleToggle, ui: ui.value }, { item }), () => {
1938
- var _a6, _b5, _c4, _d3, _e3, _f2, _g2;
1939
- return [
1940
- item.icon ? (openBlock(), createBlock(_sfc_main$d, {
1941
- key: 0,
1942
- name: item.icon,
1943
- "data-slot": "linkLeadingIcon",
1944
- class: ui.value.linkLeadingIcon({ class: [(_a6 = props.ui) == null ? void 0 : _a6.linkLeadingIcon, (_b5 = item.ui) == null ? void 0 : _b5.linkLeadingIcon] })
1945
- }, null, 8, ["name", "class"])) : ((_c4 = item.children) == null ? void 0 : _c4.length) ? (openBlock(), createBlock(_sfc_main$d, {
1946
- key: 1,
1947
- name: isExpanded ? (_d3 = __props.expandedIcon) != null ? _d3 : unref(appConfig).ui.icons.folderOpen : (_e3 = __props.collapsedIcon) != null ? _e3 : unref(appConfig).ui.icons.folder,
1948
- "data-slot": "linkLeadingIcon",
1949
- class: ui.value.linkLeadingIcon({ class: [(_f2 = props.ui) == null ? void 0 : _f2.linkLeadingIcon, (_g2 = item.ui) == null ? void 0 : _g2.linkLeadingIcon] })
1950
- }, null, 8, ["name", "class"])) : createCommentVNode("", true)
1951
- ];
1952
- }),
1953
- getItemLabel(item) || !!slots[item.slot ? `${item.slot}-label` : "item-label"] ? (openBlock(), createBlock("span", {
1954
- key: 0,
1955
- "data-slot": "linkLabel",
1956
- class: ui.value.linkLabel({ class: [(_a5 = props.ui) == null ? void 0 : _a5.linkLabel, (_b4 = item.ui) == null ? void 0 : _b4.linkLabel] })
1957
- }, [
1958
- renderSlot(_ctx.$slots, item.slot ? `${item.slot}-label` : "item-label", mergeProps({ index, level, expanded: isExpanded, selected: isSelected, indeterminate: isIndeterminate, handleSelect, handleToggle, ui: ui.value }, { item }), () => [
1959
- createTextVNode(toDisplayString(getItemLabel(item)), 1)
1960
- ])
1961
- ], 2)) : createCommentVNode("", true),
1962
- item.trailingIcon || ((_c3 = item.children) == null ? void 0 : _c3.length) || !!slots[item.slot ? `${item.slot}-trailing` : "item-trailing"] ? (openBlock(), createBlock("span", {
1963
- key: 1,
1964
- "data-slot": "linkTrailing",
1965
- class: ui.value.linkTrailing({ class: [(_d2 = props.ui) == null ? void 0 : _d2.linkTrailing, (_e2 = item.ui) == null ? void 0 : _e2.linkTrailing] })
1966
- }, [
1967
- renderSlot(_ctx.$slots, item.slot ? `${item.slot}-trailing` : "item-trailing", mergeProps({ index, level, expanded: isExpanded, selected: isSelected, indeterminate: isIndeterminate, handleSelect, handleToggle, ui: ui.value }, { item }), () => {
1968
- var _a6, _b5, _c4, _d3, _e3, _f2;
1969
- return [
1970
- item.trailingIcon ? (openBlock(), createBlock(_sfc_main$d, {
1971
- key: 0,
1972
- name: item.trailingIcon,
1973
- "data-slot": "linkTrailingIcon",
1974
- class: ui.value.linkTrailingIcon({ class: [(_a6 = props.ui) == null ? void 0 : _a6.linkTrailingIcon, (_b5 = item.ui) == null ? void 0 : _b5.linkTrailingIcon] })
1975
- }, null, 8, ["name", "class"])) : ((_c4 = item.children) == null ? void 0 : _c4.length) ? (openBlock(), createBlock(_sfc_main$d, {
1976
- key: 1,
1977
- name: (_d3 = __props.trailingIcon) != null ? _d3 : unref(appConfig).ui.icons.chevronDown,
1978
- "data-slot": "linkTrailingIcon",
1979
- class: ui.value.linkTrailingIcon({ class: [(_e3 = props.ui) == null ? void 0 : _e3.linkTrailingIcon, (_f2 = item.ui) == null ? void 0 : _f2.linkTrailingIcon] })
1980
- }, null, 8, ["name", "class"])) : createCommentVNode("", true)
1981
- ];
1982
- })
1983
- ], 2)) : createCommentVNode("", true)
1984
- ];
1985
- })
1811
+ default: withCtx(({ isExpanded, isSelected, isIndeterminate, handleSelect, handleToggle }) => [
1812
+ renderSlot(_ctx.$slots, item.slot ? `${item.slot}-wrapper` : "item-wrapper", mergeProps({ index, level, expanded: isExpanded, selected: isSelected, indeterminate: isIndeterminate, handleSelect, handleToggle, ui: ui.value }, { item }), () => [
1813
+ (openBlock(), createBlock(resolveDynamicComponent(as.value.link), {
1814
+ type: as.value.link === "button" ? "button" : void 0,
1815
+ disabled: item.disabled || __props.disabled,
1816
+ "data-slot": "link",
1817
+ class: ui.value.link({ class: [props.ui?.link, item.ui?.link, item.class], selected: isSelected, disabled: item.disabled || __props.disabled }),
1818
+ style: !nested.value && level > 1 ? { paddingLeft: flattenedPaddingFormula.value(level) } : void 0
1819
+ }, {
1820
+ default: withCtx(() => [
1821
+ renderSlot(_ctx.$slots, item.slot || "item", mergeProps({ index, level, expanded: isExpanded, selected: isSelected, indeterminate: isIndeterminate, handleSelect, handleToggle, ui: ui.value }, { item }), () => [
1822
+ renderSlot(_ctx.$slots, item.slot ? `${item.slot}-leading` : "item-leading", mergeProps({ index, level, expanded: isExpanded, selected: isSelected, indeterminate: isIndeterminate, handleSelect, handleToggle, ui: ui.value }, { item }), () => [
1823
+ item.icon ? (openBlock(), createBlock(_sfc_main$d, {
1824
+ key: 0,
1825
+ name: item.icon,
1826
+ "data-slot": "linkLeadingIcon",
1827
+ class: ui.value.linkLeadingIcon({ class: [props.ui?.linkLeadingIcon, item.ui?.linkLeadingIcon] })
1828
+ }, null, 8, ["name", "class"])) : item.children?.length ? (openBlock(), createBlock(_sfc_main$d, {
1829
+ key: 1,
1830
+ name: isExpanded ? __props.expandedIcon ?? unref(appConfig).ui.icons.folderOpen : __props.collapsedIcon ?? unref(appConfig).ui.icons.folder,
1831
+ "data-slot": "linkLeadingIcon",
1832
+ class: ui.value.linkLeadingIcon({ class: [props.ui?.linkLeadingIcon, item.ui?.linkLeadingIcon] })
1833
+ }, null, 8, ["name", "class"])) : createCommentVNode("", true)
1986
1834
  ]),
1987
- _: 2
1988
- }, 1032, ["type", "disabled", "class", "style"]))
1989
- ];
1990
- }),
1991
- nested.value && ((_a3 = item.children) == null ? void 0 : _a3.length) && isExpanded ? (openBlock(), createBlock("ul", {
1992
- key: 0,
1993
- role: "group",
1994
- "data-slot": "listWithChildren",
1995
- class: ui.value.listWithChildren({ class: [(_b2 = props.ui) == null ? void 0 : _b2.listWithChildren, (_c2 = item.ui) == null ? void 0 : _c2.listWithChildren] })
1996
- }, [
1997
- createVNode(unref(ReuseTreeTemplate), {
1998
- items: item.children,
1999
- level: level + 1
2000
- }, null, 8, ["items", "level"])
2001
- ], 2)) : createCommentVNode("", true)
2002
- ];
2003
- }),
1835
+ getItemLabel(item) || !!slots[item.slot ? `${item.slot}-label` : "item-label"] ? (openBlock(), createBlock("span", {
1836
+ key: 0,
1837
+ "data-slot": "linkLabel",
1838
+ class: ui.value.linkLabel({ class: [props.ui?.linkLabel, item.ui?.linkLabel] })
1839
+ }, [
1840
+ renderSlot(_ctx.$slots, item.slot ? `${item.slot}-label` : "item-label", mergeProps({ index, level, expanded: isExpanded, selected: isSelected, indeterminate: isIndeterminate, handleSelect, handleToggle, ui: ui.value }, { item }), () => [
1841
+ createTextVNode(toDisplayString(getItemLabel(item)), 1)
1842
+ ])
1843
+ ], 2)) : createCommentVNode("", true),
1844
+ item.trailingIcon || item.children?.length || !!slots[item.slot ? `${item.slot}-trailing` : "item-trailing"] ? (openBlock(), createBlock("span", {
1845
+ key: 1,
1846
+ "data-slot": "linkTrailing",
1847
+ class: ui.value.linkTrailing({ class: [props.ui?.linkTrailing, item.ui?.linkTrailing] })
1848
+ }, [
1849
+ renderSlot(_ctx.$slots, item.slot ? `${item.slot}-trailing` : "item-trailing", mergeProps({ index, level, expanded: isExpanded, selected: isSelected, indeterminate: isIndeterminate, handleSelect, handleToggle, ui: ui.value }, { item }), () => [
1850
+ item.trailingIcon ? (openBlock(), createBlock(_sfc_main$d, {
1851
+ key: 0,
1852
+ name: item.trailingIcon,
1853
+ "data-slot": "linkTrailingIcon",
1854
+ class: ui.value.linkTrailingIcon({ class: [props.ui?.linkTrailingIcon, item.ui?.linkTrailingIcon] })
1855
+ }, null, 8, ["name", "class"])) : item.children?.length ? (openBlock(), createBlock(_sfc_main$d, {
1856
+ key: 1,
1857
+ name: __props.trailingIcon ?? unref(appConfig).ui.icons.chevronDown,
1858
+ "data-slot": "linkTrailingIcon",
1859
+ class: ui.value.linkTrailingIcon({ class: [props.ui?.linkTrailingIcon, item.ui?.linkTrailingIcon] })
1860
+ }, null, 8, ["name", "class"])) : createCommentVNode("", true)
1861
+ ])
1862
+ ], 2)) : createCommentVNode("", true)
1863
+ ])
1864
+ ]),
1865
+ _: 2
1866
+ }, 1032, ["type", "disabled", "class", "style"]))
1867
+ ]),
1868
+ nested.value && item.children?.length && isExpanded ? (openBlock(), createBlock("ul", {
1869
+ key: 0,
1870
+ role: "group",
1871
+ "data-slot": "listWithChildren",
1872
+ class: ui.value.listWithChildren({ class: [props.ui?.listWithChildren, item.ui?.listWithChildren] })
1873
+ }, [
1874
+ createVNode(unref(ReuseTreeTemplate), {
1875
+ items: item.children,
1876
+ level: level + 1
1877
+ }, null, 8, ["items", "level"])
1878
+ ], 2)) : createCommentVNode("", true)
1879
+ ]),
2004
1880
  _: 2
2005
1881
  }, 1032, ["level", "value", "onToggle", "onSelect"])
2006
1882
  ], 2)
@@ -2045,7 +1921,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
2045
1921
  "model-value": __props.modelValue,
2046
1922
  "default-value": __props.defaultValue,
2047
1923
  "data-slot": "root",
2048
- class: ui.value.root({ class: [(_a = props.ui) == null ? void 0 : _a.root, props.class] }),
1924
+ class: ui.value.root({ class: [props.ui?.root, props.class] }),
2049
1925
  "get-key": getItemKey,
2050
1926
  "default-expanded": defaultExpanded.value,
2051
1927
  "selection-behavior": __props.selectionBehavior