cognova 0.2.12 → 0.2.13

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 (188) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/_nuxt/{DwY7rCd_.js → -HePz7lp.js} +2 -2
  3. package/.output/public/_nuxt/{CY-cjAwJ.js → 4ALIM-zZ.js} +1 -1
  4. package/.output/public/_nuxt/{DXdwpJ-I.js → 5sUbkh_6.js} +2 -2
  5. package/.output/public/_nuxt/{_cy8R3nk.js → 6bB8Ev7a.js} +1 -1
  6. package/.output/public/_nuxt/{1zUTf4AP.js → 7rT1DCe2.js} +1 -1
  7. package/.output/public/_nuxt/{vIOxcXKR.js → 9O1MXkck.js} +1 -1
  8. package/.output/public/_nuxt/{7oCGSglN.js → 9kAKMaPC.js} +1 -1
  9. package/.output/public/_nuxt/{CVqlefTY.js → B-DMcEU9.js} +1 -1
  10. package/.output/public/_nuxt/{BS2ZNXI1.js → B0nzD8Sk.js} +1 -1
  11. package/.output/public/_nuxt/B2PqR2Vu.js +1 -0
  12. package/.output/public/_nuxt/{Db4KMnt8.js → B2wI_pYg.js} +1 -1
  13. package/.output/public/_nuxt/{zq-a1TeT.js → B5FuOh7E.js} +1 -1
  14. package/.output/public/_nuxt/B6om4MW2.js +1 -0
  15. package/.output/public/_nuxt/{Dya5oK8u.js → B7ikW4eF.js} +1 -1
  16. package/.output/public/_nuxt/{BYHCP8x7.js → B8DFEjxA.js} +1 -1
  17. package/.output/public/_nuxt/{6boMs_nF.js → B9kWNcU7.js} +1 -1
  18. package/.output/public/_nuxt/BAZ8sewA.js +1 -0
  19. package/.output/public/_nuxt/{BXuWCWsJ.js → BCPwL4ma.js} +1 -1
  20. package/.output/public/_nuxt/{DY3uK7wM.js → BCrlmHh_.js} +1 -1
  21. package/.output/public/_nuxt/{BR8bKz8h.js → BD-AFJWW.js} +1 -1
  22. package/.output/public/_nuxt/{BtHQ1T0f.js → BGcQMReV.js} +1 -1
  23. package/.output/public/_nuxt/{BDyn4ApB.js → BL1mkqgd.js} +3 -3
  24. package/.output/public/_nuxt/BNJJSRKh.js +1 -0
  25. package/.output/public/_nuxt/{D8lwrAYS.js → BNeeERBt.js} +1 -1
  26. package/.output/public/_nuxt/{CVFwOzbl.js → BSJb5amZ.js} +1 -1
  27. package/.output/public/_nuxt/{CEnSeCqn.js → BSsaE9Db.js} +1 -1
  28. package/.output/public/_nuxt/{DzA58_Lm.js → BVO3XpHT.js} +1 -1
  29. package/.output/public/_nuxt/{CuxrHsu-.js → BWuL2CzO.js} +1 -1
  30. package/.output/public/_nuxt/{0yk-pS3R.js → B_9zJTqe.js} +1 -1
  31. package/.output/public/_nuxt/{DcJbYLTp.js → B_Lr1vlV.js} +1 -1
  32. package/.output/public/_nuxt/{CZoEPC_Q.js → Bc8bTnkd.js} +3 -3
  33. package/.output/public/_nuxt/{BKXg-alD.js → BghuwIGa.js} +1 -1
  34. package/.output/public/_nuxt/{PP_4ebzl.js → BjsKx597.js} +1 -1
  35. package/.output/public/_nuxt/{DuvzM-P1.js → Bl0qBhCG.js} +1 -1
  36. package/.output/public/_nuxt/{B_wilgcd.js → Bl43dkDq.js} +1 -1
  37. package/.output/public/_nuxt/{JbHa4oXq.js → BnMTFF5R.js} +1 -1
  38. package/.output/public/_nuxt/{CY-QVcA5.js → BrX-PnSK.js} +2 -2
  39. package/.output/public/_nuxt/{DYbZBZet.js → BtV7oNn3.js} +1 -1
  40. package/.output/public/_nuxt/{apYB9dr5.js → BvFYnRMR.js} +1 -1
  41. package/.output/public/_nuxt/{x6FRJ5ac.js → BvTUBUNN.js} +1 -1
  42. package/.output/public/_nuxt/{wO6z2ugJ.js → ByLsRRoQ.js} +1 -1
  43. package/.output/public/_nuxt/{DC4idAGt.js → C1LcEMwB.js} +1 -1
  44. package/.output/public/_nuxt/{YX8avsvq.js → C2IiXp9N.js} +2 -2
  45. package/.output/public/_nuxt/{fbyIeNkc.js → C6OSRpRd.js} +1 -1
  46. package/.output/public/_nuxt/{3jQMk_5H.js → C796kFT9.js} +1 -1
  47. package/.output/public/_nuxt/{DEd2xVbS.js → C7m9zGMG.js} +1 -1
  48. package/.output/public/_nuxt/C8AtdrMH.js +1 -0
  49. package/.output/public/_nuxt/CAWbHTgy.js +1 -0
  50. package/.output/public/_nuxt/{ixlNW2So.js → CFmvNggn.js} +1 -1
  51. package/.output/public/_nuxt/{gTrVszwd.js → CGplHfmR.js} +1 -1
  52. package/.output/public/_nuxt/CJPrV25_.js +1 -0
  53. package/.output/public/_nuxt/{U1MWjQMi.js → CKKEWapF.js} +1 -1
  54. package/.output/public/_nuxt/{C6qKcgOY.js → CLkkdThv.js} +22 -22
  55. package/.output/public/_nuxt/CNjv28J2.js +1 -0
  56. package/.output/public/_nuxt/{BLnYhy_t.js → CRRw0Thu.js} +1 -1
  57. package/.output/public/_nuxt/{10_wwHSz.js → CT8s4rqa.js} +1 -1
  58. package/.output/public/_nuxt/{C27WoGNZ.js → CZSOrxUy.js} +1 -1
  59. package/.output/public/_nuxt/{DNP5E1bC.js → CaNEL9JC.js} +5 -5
  60. package/.output/public/_nuxt/{DhuOKJda.js → CbTLg9oX.js} +1 -1
  61. package/.output/public/_nuxt/CfCXpVn5.js +1 -0
  62. package/.output/public/_nuxt/{C9WIgRRL.js → ChmNlvWR.js} +1 -1
  63. package/.output/public/_nuxt/{t8aDAkZ5.js → CiNxIhaq.js} +1 -1
  64. package/.output/public/_nuxt/{E3rXPwU8.js → Ck0QYdxe.js} +1 -1
  65. package/.output/public/_nuxt/{DUVzIl3o.js → Ckb0pu4-.js} +1 -1
  66. package/.output/public/_nuxt/{vScW1Zgm.js → CkwPRs1D.js} +1 -1
  67. package/.output/public/_nuxt/CmEJg8C6.js +2 -0
  68. package/.output/public/_nuxt/{CTCcEJU3.js → CmL_vMJD.js} +1 -1
  69. package/.output/public/_nuxt/{Bciqk4dX.js → Cq8zPxkT.js} +1 -1
  70. package/.output/public/_nuxt/{D8M722pn.js → CseYuM6E.js} +1 -1
  71. package/.output/public/_nuxt/{D0ifH682.js → CxRnB4NC.js} +1 -1
  72. package/.output/public/_nuxt/{CVdCqaby.js → D0zMyG8n.js} +1 -1
  73. package/.output/public/_nuxt/{DhI5cA_n.js → D12qPplu.js} +1 -1
  74. package/.output/public/_nuxt/{Beom-INj.js → D1XYB283.js} +1 -1
  75. package/.output/public/_nuxt/{BUghTae1.js → D2NxqyzW.js} +1 -1
  76. package/.output/public/_nuxt/{CZRnNmU8.js → D5xyrvFu.js} +1 -1
  77. package/.output/public/_nuxt/{2dNDtTiv.js → D6tVZcRs.js} +3 -3
  78. package/.output/public/_nuxt/{EgKnQnf-.js → D7N3EZ-I.js} +1 -1
  79. package/.output/public/_nuxt/{C5R5QaCA.js → D8iBB0Py.js} +1 -1
  80. package/.output/public/_nuxt/{XCjS70z4.js → D8oIH8m1.js} +1 -1
  81. package/.output/public/_nuxt/{BA_pRWwX.js → DB2zZev7.js} +1 -1
  82. package/.output/public/_nuxt/{Cl-LOSDV.js → DBrOAqkm.js} +1 -1
  83. package/.output/public/_nuxt/{DO9SFIh1.js → DDXDFweK.js} +1 -1
  84. package/.output/public/_nuxt/{B93pdGAW.js → DFZkCmLQ.js} +1 -1
  85. package/.output/public/_nuxt/{CLfF6dSn.js → DFpmIy6J.js} +1 -1
  86. package/.output/public/_nuxt/{BfcLZ_fC.js → DKZmgHNU.js} +1 -1
  87. package/.output/public/_nuxt/{CPutXj8l.js → DNcOC5zj.js} +1 -1
  88. package/.output/public/_nuxt/{BHtY0l0l.js → DQhm-UPG.js} +1 -1
  89. package/.output/public/_nuxt/{C2FxZbO_.js → DR8tGJhL.js} +1 -1
  90. package/.output/public/_nuxt/{D4UJwDQJ.js → DVAEVTjy.js} +1 -1
  91. package/.output/public/_nuxt/{2nOqGUPr.js → DVqrPkCJ.js} +1 -1
  92. package/.output/public/_nuxt/DWZ9ieYa.js +1 -0
  93. package/.output/public/_nuxt/{nnQqD5pb.js → DWj6VsZv.js} +1 -1
  94. package/.output/public/_nuxt/{C2vq6Te8.js → DXJ9PxCv.js} +1 -1
  95. package/.output/public/_nuxt/{CobqYwkp.js → D_ziPROx.js} +1 -1
  96. package/.output/public/_nuxt/{GtEM7xVU.js → Da2vwoYG.js} +1 -1
  97. package/.output/public/_nuxt/{Cc-2ziaZ.js → Ddz3HcBB.js} +1 -1
  98. package/.output/public/_nuxt/{Di-Nc75e.js → DgYei0bK.js} +1 -1
  99. package/.output/public/_nuxt/{DQh6I9z9.js → Di_3GV_R.js} +1 -1
  100. package/.output/public/_nuxt/{ByYh0uRg.js → Djog1f_e.js} +1 -1
  101. package/.output/public/_nuxt/{C4mwL7SE.js → Dkap2-Pj.js} +2 -2
  102. package/.output/public/_nuxt/{D5q8SnqE.js → DlJe_sHk.js} +1 -1
  103. package/.output/public/_nuxt/DlPOQpH_.js +1 -0
  104. package/.output/public/_nuxt/{DTGenhcA.js → DmYWMtVA.js} +1 -1
  105. package/.output/public/_nuxt/DmxKU7sH.js +1 -0
  106. package/.output/public/_nuxt/{DtjjnHnt.js → DowkFZ2V.js} +1 -1
  107. package/.output/public/_nuxt/{0NJ3PaRM.js → DsodHRrQ.js} +1 -1
  108. package/.output/public/_nuxt/{Bk6JUtIo.js → DuzpliIL.js} +1 -1
  109. package/.output/public/_nuxt/DvHS7_h2.js +1 -0
  110. package/.output/public/_nuxt/DwSY6_2U.js +1 -0
  111. package/.output/public/_nuxt/{Djs0Tlpa.js → DypJaSm-.js} +1 -1
  112. package/.output/public/_nuxt/{C71_a1IX.js → DzKaXH6P.js} +1 -1
  113. package/.output/public/_nuxt/{CBTkrk2M.js → FK-jSuOT.js} +1 -1
  114. package/.output/public/_nuxt/{ILEvizzp.js → Fc2JsQt4.js} +1 -1
  115. package/.output/public/_nuxt/{BIXrSYwR.js → IYCBGuRS.js} +1 -1
  116. package/.output/public/_nuxt/{JX1oqJI9.js → LRO7YHoH.js} +1 -1
  117. package/.output/public/_nuxt/{Kw0zy3FG.js → NrRzUJNY.js} +1 -1
  118. package/.output/public/_nuxt/{DJTCT0bl.js → OeVS0Rsb.js} +1 -1
  119. package/.output/public/_nuxt/{BmOtR1wX.js → OlF0QnKF.js} +1 -1
  120. package/.output/public/_nuxt/{DTAStixR.js → QuAoqY7t.js} +1 -1
  121. package/.output/public/_nuxt/{8q5NepGW.js → RlXHkmOd.js} +2 -2
  122. package/.output/public/_nuxt/{rfGRTJJW.js → TxMdabnL.js} +1 -1
  123. package/.output/public/_nuxt/{CZVzFlpI.js → WZnvL9Dh.js} +1 -1
  124. package/.output/public/_nuxt/ZvG7a1W3.js +1 -0
  125. package/.output/public/_nuxt/{N5XtbYVD.js → aPNZBVrG.js} +1 -1
  126. package/.output/public/_nuxt/builds/latest.json +1 -1
  127. package/.output/public/_nuxt/builds/meta/495aca73-bfa5-456e-b96a-f02e009c72d3.json +1 -0
  128. package/.output/public/_nuxt/entry.C_udkZt9.css +1 -0
  129. package/.output/public/_nuxt/{D_4LPm1U.js → evY81hM3.js} +1 -1
  130. package/.output/public/_nuxt/{DzGy77Vr.js → h_bXa-f2.js} +1 -1
  131. package/.output/public/_nuxt/{D9nmzBAw.js → i6QBzaEi.js} +1 -1
  132. package/.output/public/_nuxt/{BGgwYWjH.js → iTVKJ1kw.js} +1 -1
  133. package/.output/public/_nuxt/{Um1vPiAz.js → j92uR3uR.js} +1 -1
  134. package/.output/public/_nuxt/jdUkeAj_.js +1 -0
  135. package/.output/public/_nuxt/{BmVLxnDU.js → jeRvcMHU.js} +1 -1
  136. package/.output/public/_nuxt/{SrncdpaW.js → kuv0zpKq.js} +1 -1
  137. package/.output/public/_nuxt/{DfF81NlA.js → l3lKQs7b.js} +1 -1
  138. package/.output/public/_nuxt/{4K03TkGA.js → pdYvpiud.js} +3 -3
  139. package/.output/public/_nuxt/{C39dQ88F.js → qIgZ7OXa.js} +1 -1
  140. package/.output/public/_nuxt/{DS2wStH1.js → qcVwZv8e.js} +1 -1
  141. package/.output/public/_nuxt/{g5MjDvm5.js → ru8fqqWs.js} +1 -1
  142. package/.output/public/_nuxt/{CQqCBrXj.js → sBzyvWMJ.js} +1 -1
  143. package/.output/public/_nuxt/{D3AZaldL.js → sgmhgpCS.js} +1 -1
  144. package/.output/public/_nuxt/{ChcO9s3o.js → y2jv0da-.js} +1 -1
  145. package/.output/public/_nuxt/{Dn5a-guE.js → yyS4-kAX.js} +1 -1
  146. package/.output/public/_nuxt/zIoBLBHF.js +1 -0
  147. package/.output/public/_nuxt/zpazwPgx.js +1 -0
  148. package/.output/server/chunks/build/{chat-CR3JIVEq.mjs → chat-m4-n9vC6.mjs} +516 -14
  149. package/.output/server/chunks/build/chat-m4-n9vC6.mjs.map +1 -0
  150. package/.output/server/chunks/build/client.precomputed.mjs +1 -1
  151. package/.output/server/chunks/build/server.mjs +1 -1
  152. package/.output/server/chunks/build/styles.mjs +4 -4
  153. package/.output/server/chunks/nitro/nitro.mjs +875 -863
  154. package/.output/server/chunks/routes/_ws/chat.mjs +39 -5
  155. package/.output/server/chunks/routes/_ws/chat.mjs.map +1 -1
  156. package/Claude/skills/_lib/api.py +3 -2
  157. package/app/components/chat/ChatInput.vue +133 -5
  158. package/app/components/chat/MessageBubble.vue +188 -6
  159. package/app/composables/useAttachments.ts +196 -0
  160. package/app/composables/useChat.ts +14 -2
  161. package/app/pages/chat.vue +4 -2
  162. package/package.json +1 -1
  163. package/server/bridge/adapters/imessage.ts +9 -2
  164. package/server/routes/_ws/chat.ts +61 -7
  165. package/server/utils/chat-session-manager.ts +20 -2
  166. package/shared/types/index.ts +27 -1
  167. package/.output/public/_nuxt/BH0QDWEm.js +0 -1
  168. package/.output/public/_nuxt/BK8S2ony.js +0 -1
  169. package/.output/public/_nuxt/BZrSPX0S.js +0 -1
  170. package/.output/public/_nuxt/BaZwjF8o.js +0 -1
  171. package/.output/public/_nuxt/BkfI94R8.js +0 -1
  172. package/.output/public/_nuxt/C3NST0BU.js +0 -1
  173. package/.output/public/_nuxt/CKxSHyww.js +0 -1
  174. package/.output/public/_nuxt/CSKJ-Ahh.js +0 -1
  175. package/.output/public/_nuxt/CWyMCJQH.js +0 -1
  176. package/.output/public/_nuxt/CYPO5o_C.js +0 -1
  177. package/.output/public/_nuxt/CqNwHCpo.js +0 -1
  178. package/.output/public/_nuxt/CwPdIZ9J.js +0 -1
  179. package/.output/public/_nuxt/D5jZq8b3.js +0 -1
  180. package/.output/public/_nuxt/DH4YkDAi.js +0 -1
  181. package/.output/public/_nuxt/DPklr_tJ.js +0 -2
  182. package/.output/public/_nuxt/DQM4eBdt.js +0 -1
  183. package/.output/public/_nuxt/DUAAXJ6Q.js +0 -1
  184. package/.output/public/_nuxt/DmmdPt_5.js +0 -1
  185. package/.output/public/_nuxt/H6JbrRBU.js +0 -1
  186. package/.output/public/_nuxt/builds/meta/a892969f-e07d-4f44-8d7e-57a4b7f33d94.json +0 -1
  187. package/.output/public/_nuxt/entry.NKPfH2kE.css +0 -1
  188. package/.output/server/chunks/build/chat-CR3JIVEq.mjs.map +0 -1
@@ -1 +1 @@
1
- import{aq as c,ar as d,L as f,N as g,c as m,G as v,R as x,a4 as C,ab as y,T as b,U as r,C as t,W as h,am as p}from"./2dNDtTiv.js";const q={slots:{root:"relative [&_pre]:h-[200px]",footer:"h-16 absolute inset-x-px bottom-px rounded-b-md flex items-center justify-center",trigger:"group",triggerIcon:"group-data-[state=open]:rotate-180"},variants:{open:{true:{root:"[&_pre]:h-auto [&_pre]:min-h-[200px] [&_pre]:max-h-[80vh] [&_pre]:pb-12"},false:{root:"[&_pre]:overflow-hidden",footer:"bg-gradient-to-t from-muted"}}}},B={__name:"ProseCodeCollapse",props:c({icon:{type:null,required:!1},name:{type:String,required:!1},openText:{type:String,required:!1},closeText:{type:String,required:!1},class:{type:null,required:!1},ui:{type:null,required:!1}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:["update:open"],setup(s){const e=s,o=d(s,"open",{type:Boolean,default:!1}),{t:l}=f(),n=g(),a=m(()=>p({extend:p(q),...n.ui?.prose?.codeCollapse||{}})({open:o.value}));return(u,i)=>(x(),v("div",{class:r(a.value.root({class:[e.ui?.root,e.class]}))},[C(u.$slots,"default"),y("div",{class:r(a.value.footer({class:e.ui?.footer}))},[b(h,{icon:s.icon||t(n).ui.icons.chevronDown,color:"neutral",variant:"outline","data-state":o.value?"open":"closed",label:`${o.value?e.closeText||t(l)("prose.codeCollapse.closeText"):e.openText||t(l)("prose.codeCollapse.openText")} ${e.name||t(l)("prose.codeCollapse.name")}`,class:r(a.value.trigger({class:e.ui?.trigger})),ui:{leadingIcon:a.value.triggerIcon({class:e.ui?.triggerIcon})},onClick:i[0]||(i[0]=T=>o.value=!o.value)},null,8,["icon","data-state","label","class","ui"])],2)],2))}};export{B as default};
1
+ import{aq as c,ar as d,N as f,P as g,c as m,G as v,T as x,a4 as C,ab as y,V as b,W as r,C as t,Y as h,am as p}from"./D6tVZcRs.js";const q={slots:{root:"relative [&_pre]:h-[200px]",footer:"h-16 absolute inset-x-px bottom-px rounded-b-md flex items-center justify-center",trigger:"group",triggerIcon:"group-data-[state=open]:rotate-180"},variants:{open:{true:{root:"[&_pre]:h-auto [&_pre]:min-h-[200px] [&_pre]:max-h-[80vh] [&_pre]:pb-12"},false:{root:"[&_pre]:overflow-hidden",footer:"bg-gradient-to-t from-muted"}}}},B={__name:"ProseCodeCollapse",props:c({icon:{type:null,required:!1},name:{type:String,required:!1},openText:{type:String,required:!1},closeText:{type:String,required:!1},class:{type:null,required:!1},ui:{type:null,required:!1}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:["update:open"],setup(s){const e=s,o=d(s,"open",{type:Boolean,default:!1}),{t:l}=f(),n=g(),a=m(()=>p({extend:p(q),...n.ui?.prose?.codeCollapse||{}})({open:o.value}));return(u,i)=>(x(),v("div",{class:r(a.value.root({class:[e.ui?.root,e.class]}))},[C(u.$slots,"default"),y("div",{class:r(a.value.footer({class:e.ui?.footer}))},[b(h,{icon:s.icon||t(n).ui.icons.chevronDown,color:"neutral",variant:"outline","data-state":o.value?"open":"closed",label:`${o.value?e.closeText||t(l)("prose.codeCollapse.closeText"):e.openText||t(l)("prose.codeCollapse.openText")} ${e.name||t(l)("prose.codeCollapse.name")}`,class:r(a.value.trigger({class:e.ui?.trigger})),ui:{leadingIcon:a.value.triggerIcon({class:e.ui?.triggerIcon})},onClick:i[0]||(i[0]=T=>o.value=!o.value)},null,8,["icon","data-state","label","class","ui"])],2)],2))}};export{B as default};
@@ -1 +1 @@
1
- import{N as c,c as n,G as l,R as p,a4 as m,U as u,am as s}from"./2dNDtTiv.js";const i={base:""},_={__name:"ProseEm",props:{class:{type:String,required:!1}},setup(e){const a=e,t=c(),o=n(()=>s({extend:s(i),...t.ui?.prose?.em||{}}));return(r,f)=>(p(),l("em",{class:u(o.value({class:a.class}))},[m(r.$slots,"default")],2))}};export{_ as default};
1
+ import{P as c,c as n,G as l,T as p,a4 as m,W as u,am as s}from"./D6tVZcRs.js";const i={base:""},_={__name:"ProseEm",props:{class:{type:String,required:!1}},setup(e){const a=e,t=c(),o=n(()=>s({extend:s(i),...t.ui?.prose?.em||{}}));return(r,f)=>(p(),l("em",{class:u(o.value({class:a.class}))},[m(r.$slots,"default")],2))}};export{_ as default};
@@ -1 +1 @@
1
- import{N as n,c,am as r,Q as f,R as d,S as p,a4 as t,ab as i,U as l,C as m,a3 as h}from"./2dNDtTiv.js";const g={slots:{root:"shrink-0 flex items-center justify-between border-b border-default px-4 sm:px-6 gap-1.5 overflow-x-auto min-h-[49px]",left:"flex items-center gap-1.5",right:"flex items-center gap-1.5"}},x={__name:"UDashboardToolbar",props:{as:{type:null,required:!1},class:{type:null,required:!1},ui:{type:null,required:!1}},setup(o){const s=o,u=n(),e=c(()=>r({extend:r(g),...u.ui?.dashboardToolbar||{}})());return(a,b)=>(d(),f(m(h),{as:o.as,"data-slot":"root",class:l(e.value.root({class:[s.ui?.root,s.class]}))},{default:p(()=>[t(a.$slots,"default",{},()=>[i("div",{"data-slot":"left",class:l(e.value.left({class:[s.ui?.left]}))},[t(a.$slots,"left")],2),i("div",{"data-slot":"right",class:l(e.value.right({class:[s.ui?.right]}))},[t(a.$slots,"right")],2)])]),_:3},8,["as","class"]))}};export{x as _};
1
+ import{P as n,c,am as r,S as f,T as d,U as p,a4 as t,ab as i,W as l,C as m,a3 as h}from"./D6tVZcRs.js";const g={slots:{root:"shrink-0 flex items-center justify-between border-b border-default px-4 sm:px-6 gap-1.5 overflow-x-auto min-h-[49px]",left:"flex items-center gap-1.5",right:"flex items-center gap-1.5"}},x={__name:"UDashboardToolbar",props:{as:{type:null,required:!1},class:{type:null,required:!1},ui:{type:null,required:!1}},setup(o){const s=o,u=n(),e=c(()=>r({extend:r(g),...u.ui?.dashboardToolbar||{}})());return(a,b)=>(d(),f(m(h),{as:o.as,"data-slot":"root",class:l(e.value.root({class:[s.ui?.root,s.class]}))},{default:p(()=>[t(a.$slots,"default",{},()=>[i("div",{"data-slot":"left",class:l(e.value.left({class:[s.ui?.left]}))},[t(a.$slots,"left")],2),i("div",{"data-slot":"right",class:l(e.value.right({class:[s.ui?.right]}))},[t(a.$slots,"right")],2)])]),_:3},8,["as","class"]))}};export{x as _};
@@ -1 +1 @@
1
- import{a as u,aR as v,aQ as m,e as d,aP as y,a4 as p,C as t,Q as f,R as c,S as _,aN as D,aO as C,b6 as R,a_ as q,q as B,V as h,a3 as x}from"./2dNDtTiv.js";import{u as P}from"./CWyMCJQH.js";const[b,I]=v("DialogRoot");var O=u({inheritAttrs:!1,__name:"DialogRoot",props:{open:{type:Boolean,required:!1,default:void 0},defaultOpen:{type:Boolean,required:!1,default:!1},modal:{type:Boolean,required:!1,default:!0}},emits:["update:open"],setup(o,{emit:r}){const e=o,a=m(e,"open",r,{defaultValue:e.defaultOpen,passive:e.open===void 0}),l=d(),i=d(),{modal:g}=y(e);return I({open:a,modal:g,openModal:()=>{a.value=!0},onOpenChange:s=>{a.value=s},onOpenToggle:()=>{a.value=!a.value},contentId:"",titleId:"",descriptionId:"",triggerElement:l,contentElement:i}),(s,E)=>p(s.$slots,"default",{open:t(a),close:()=>a.value=!1})}}),V=O,T=u({__name:"DialogPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(o){const r=o;return(e,n)=>(c(),f(t(R),D(C(r)),{default:_(()=>[p(e.$slots,"default")]),_:3},16))}}),$=T,k=u({__name:"DialogTrigger",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(o){const r=o,e=b(),{forwardRef:n,currentElement:a}=q();return e.contentId||=P(void 0,"reka-dialog-content"),B(()=>{e.triggerElement.value=a.value}),(l,i)=>(c(),f(t(x),h(r,{ref:t(n),type:l.as==="button"?"button":void 0,"aria-haspopup":"dialog","aria-expanded":t(e).open.value||!1,"aria-controls":t(e).open.value?t(e).contentId:void 0,"data-state":t(e).open.value?"open":"closed",onClick:t(e).onOpenToggle}),{default:_(()=>[p(l.$slots,"default")]),_:3},16,["type","aria-expanded","aria-controls","data-state","onClick"]))}}),Q=k;export{Q as D,$ as a,V as b,b as i};
1
+ import{a as u,aR as v,aQ as m,e as d,aP as y,a4 as p,C as t,S as f,T as c,U as _,aE as D,aF as C,b5 as q,a_ as R,q as B,X as h,a3 as x}from"./D6tVZcRs.js";import{u as P}from"./DWZ9ieYa.js";const[T,b]=v("DialogRoot");var E=u({inheritAttrs:!1,__name:"DialogRoot",props:{open:{type:Boolean,required:!1,default:void 0},defaultOpen:{type:Boolean,required:!1,default:!1},modal:{type:Boolean,required:!1,default:!0}},emits:["update:open"],setup(o,{emit:r}){const e=o,a=m(e,"open",r,{defaultValue:e.defaultOpen,passive:e.open===void 0}),l=d(),i=d(),{modal:g}=y(e);return b({open:a,modal:g,openModal:()=>{a.value=!0},onOpenChange:s=>{a.value=s},onOpenToggle:()=>{a.value=!a.value},contentId:"",titleId:"",descriptionId:"",triggerElement:l,contentElement:i}),(s,O)=>p(s.$slots,"default",{open:t(a),close:()=>a.value=!1})}}),$=E,I=u({__name:"DialogPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(o){const r=o;return(e,n)=>(c(),f(t(q),D(C(r)),{default:_(()=>[p(e.$slots,"default")]),_:3},16))}}),F=I,k=u({__name:"DialogTrigger",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(o){const r=o,e=T(),{forwardRef:n,currentElement:a}=R();return e.contentId||=P(void 0,"reka-dialog-content"),B(()=>{e.triggerElement.value=a.value}),(l,i)=>(c(),f(t(x),h(r,{ref:t(n),type:l.as==="button"?"button":void 0,"aria-haspopup":"dialog","aria-expanded":t(e).open.value||!1,"aria-controls":t(e).open.value?t(e).contentId:void 0,"data-state":t(e).open.value?"open":"closed",onClick:t(e).onOpenToggle}),{default:_(()=>[p(l.$slots,"default")]),_:3},16,["type","aria-expanded","aria-controls","data-state","onClick"]))}}),S=k;export{S as D,F as a,$ as b,T as i};
@@ -1 +1 @@
1
- import{N as t,c,G as l,R as n,U as p,am as s}from"./2dNDtTiv.js";const u={base:"border-t border-default my-12"},f={__name:"ProseHr",props:{class:{type:null,required:!1}},setup(e){const a=e,r=t(),o=c(()=>s({extend:s(u),...r.ui?.prose?.hr||{}}));return(m,i)=>(n(),l("hr",{class:p(o.value({class:a.class}))},null,2))}};export{f as default};
1
+ import{P as t,c,G as l,T as n,W as p,am as s}from"./D6tVZcRs.js";const u={base:"border-t border-default my-12"},f={__name:"ProseHr",props:{class:{type:null,required:!1}},setup(e){const a=e,r=t(),o=c(()=>s({extend:s(u),...r.ui?.prose?.hr||{}}));return(m,i)=>(n(),l("hr",{class:p(o.value({class:a.class}))},null,2))}};export{f as default};
@@ -1 +1 @@
1
- import{N as f,ac as m,c as i,G as n,R as o,a4 as c,U as r,am as u}from"./2dNDtTiv.js";const p={slots:{base:"text-4xl text-highlighted font-bold mb-8 scroll-mt-[calc(45px+var(--ui-header-height))] lg:scroll-mt-(--ui-header-height)",link:"inline-flex items-center gap-2"}},g=["id"],k=["href"],y={__name:"ProseH1",props:{id:{type:String,required:!1},class:{type:null,required:!1},ui:{type:null,required:!1}},setup(e){const s=e,d=f(),{headings:t}=m().public?.mdc||{},a=i(()=>u({extend:u(p),...d.ui?.prose?.h1||{}})()),h=i(()=>s.id&&typeof t?.anchorLinks=="object"&&t.anchorLinks.h1);return(l,b)=>(o(),n("h1",{id:e.id,class:r(a.value.base({class:s.class}))},[e.id&&h.value?(o(),n("a",{key:0,href:`#${e.id}`,class:r(a.value.link({class:s.ui?.link}))},[c(l.$slots,"default")],10,k)):c(l.$slots,"default",{key:1})],10,g))}};export{y as default};
1
+ import{P as f,ac as m,c as i,G as n,T as o,a4 as c,W as r,am as u}from"./D6tVZcRs.js";const p={slots:{base:"text-4xl text-highlighted font-bold mb-8 scroll-mt-[calc(45px+var(--ui-header-height))] lg:scroll-mt-(--ui-header-height)",link:"inline-flex items-center gap-2"}},g=["id"],k=["href"],y={__name:"ProseH1",props:{id:{type:String,required:!1},class:{type:null,required:!1},ui:{type:null,required:!1}},setup(e){const s=e,d=f(),{headings:t}=m().public?.mdc||{},a=i(()=>u({extend:u(p),...d.ui?.prose?.h1||{}})()),h=i(()=>s.id&&typeof t?.anchorLinks=="object"&&t.anchorLinks.h1);return(l,b)=>(o(),n("h1",{id:e.id,class:r(a.value.base({class:s.class}))},[e.id&&h.value?(o(),n("a",{key:0,href:`#${e.id}`,class:r(a.value.link({class:s.ui?.link}))},[c(l.$slots,"default")],10,k)):c(l.$slots,"default",{key:1})],10,g))}};export{y as default};
@@ -1 +1 @@
1
- import{ao as H,L as I,N as z,aJ as F,aI as K,aK as M,aC as q,c as w,am as B,Q as u,R as o,S as r,T as y,a9 as n,C as t,V as $,aL as U,a4 as d,aM as W,aa as g,ae as b,G as h,U as f,ab as G,W as J,aN as C,aO as x,aj as Q}from"./2dNDtTiv.js";import{D as X,a as Y,b as Z}from"./BA_pRWwX.js";import{D as _,a as P,b as O,c as ee,d as S}from"./BZrSPX0S.js";import{c as te}from"./DhI5cA_n.js";const ae={slots:{overlay:"fixed inset-0",content:"bg-default divide-y divide-default flex flex-col focus:outline-none",header:"flex items-center gap-1.5 p-4 sm:px-6 min-h-16",wrapper:"",body:"flex-1 p-4 sm:p-6",footer:"flex items-center gap-1.5 p-4 sm:px-6",title:"text-highlighted font-semibold",description:"mt-1 text-muted text-sm",close:"absolute top-4 end-4"},variants:{transition:{true:{overlay:"data-[state=open]:animate-[fade-in_200ms_ease-out] data-[state=closed]:animate-[fade-out_200ms_ease-in]",content:"data-[state=open]:animate-[scale-in_200ms_ease-out] data-[state=closed]:animate-[scale-out_200ms_ease-in]"}},fullscreen:{true:{content:"inset-0"},false:{content:"w-[calc(100vw-2rem)] max-w-lg rounded-lg shadow-lg ring ring-default"}},overlay:{true:{overlay:"bg-elevated/75"}},scrollable:{true:{overlay:"overflow-y-auto",content:"relative"},false:{content:"fixed",body:"overflow-y-auto"}}},compoundVariants:[{scrollable:!0,fullscreen:!1,class:{overlay:"grid place-items-center p-4 sm:py-8"}},{scrollable:!1,fullscreen:!1,class:{content:"top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 max-h-[calc(100dvh-2rem)] sm:max-h-[calc(100dvh-4rem)] overflow-hidden"}}]},ne={__name:"UModal",props:{title:{type:String,required:!1},description:{type:String,required:!1},content:{type:Object,required:!1},overlay:{type:Boolean,required:!1,default:!0},scrollable:{type:Boolean,required:!1},transition:{type:Boolean,required:!1,default:!0},fullscreen:{type:Boolean,required:!1},portal:{type:[Boolean,String],required:!1,skipCheck:!0,default:!0},close:{type:[Boolean,Object],required:!1,default:!0},closeIcon:{type:null,required:!1},dismissible:{type:Boolean,required:!1,default:!0},class:{type:null,required:!1},ui:{type:null,required:!1},open:{type:Boolean,required:!1},defaultOpen:{type:Boolean,required:!1},modal:{type:Boolean,required:!1,default:!0}},emits:["after:leave","after:enter","close:prevent","update:open"],setup(a,{emit:T}){const e=a,m=T,l=H(),{t:V}=I(),k=z(),E=F(K(e,"open","defaultOpen","modal"),m),N=M(q(()=>e.portal)),R=q(()=>e.content),j=w(()=>e.dismissible?e.scrollable?{pointerDownOutside:s=>{const c=s.detail.originalEvent,p=c.target;(c.offsetX>p.clientWidth||c.offsetY>p.clientHeight)&&s.preventDefault()}}:{}:["pointerDownOutside","interactOutside","escapeKeyDown"].reduce((c,p)=>(c[p]=v=>{v.preventDefault(),m("close:prevent")},c),{})),[L,D]=te(),i=w(()=>B({extend:B(ae),...k.ui?.modal||{}})({transition:e.transition,fullscreen:e.fullscreen,overlay:e.overlay,scrollable:e.scrollable}));return(s,c)=>(o(),u(t(Z),C(x(t(E))),{default:r(({open:p,close:v})=>[y(t(L),null,{default:r(()=>[y(t(_),$({"data-slot":"content",class:i.value.content({class:[!l.default&&e.class,e.ui?.content]})},R.value,{onAfterEnter:c[0]||(c[0]=A=>m("after:enter")),onAfterLeave:c[1]||(c[1]=A=>m("after:leave"))},U(j.value)),{default:r(()=>[l.content&&(a.title||l.title||a.description||l.description)?(o(),u(t(W),{key:0},{default:r(()=>[a.title||l.title?(o(),u(t(P),{key:0},{default:r(()=>[d(s.$slots,"title",{},()=>[g(b(a.title),1)])]),_:3})):n("",!0),a.description||l.description?(o(),u(t(O),{key:1},{default:r(()=>[d(s.$slots,"description",{},()=>[g(b(a.description),1)])]),_:3})):n("",!0)]),_:3})):n("",!0),d(s.$slots,"content",{close:v},()=>[l.header||a.title||l.title||a.description||l.description||e.close||l.close?(o(),h("div",{key:0,"data-slot":"header",class:f(i.value.header({class:e.ui?.header}))},[d(s.$slots,"header",{close:v},()=>[G("div",{"data-slot":"wrapper",class:f(i.value.wrapper({class:e.ui?.wrapper}))},[a.title||l.title?(o(),u(t(P),{key:0,"data-slot":"title",class:f(i.value.title({class:e.ui?.title}))},{default:r(()=>[d(s.$slots,"title",{},()=>[g(b(a.title),1)])]),_:3},8,["class"])):n("",!0),a.description||l.description?(o(),u(t(O),{key:1,"data-slot":"description",class:f(i.value.description({class:e.ui?.description}))},{default:r(()=>[d(s.$slots,"description",{},()=>[g(b(a.description),1)])]),_:3},8,["class"])):n("",!0)],2),d(s.$slots,"actions"),e.close||l.close?(o(),u(t(ee),{key:0,"as-child":""},{default:r(()=>[d(s.$slots,"close",{ui:i.value},()=>[e.close?(o(),u(J,$({key:0,icon:a.closeIcon||t(k).ui.icons.close,color:"neutral",variant:"ghost","aria-label":t(V)("modal.close")},typeof e.close=="object"?e.close:{},{"data-slot":"close",class:i.value.close({class:e.ui?.close})}),null,16,["icon","aria-label","class"])):n("",!0)])]),_:2},1024)):n("",!0)])],2)):n("",!0),l.body?(o(),h("div",{key:1,"data-slot":"body",class:f(i.value.body({class:e.ui?.body}))},[d(s.$slots,"body",{close:v})],2)):n("",!0),l.footer?(o(),h("div",{key:2,"data-slot":"footer",class:f(i.value.footer({class:e.ui?.footer}))},[d(s.$slots,"footer",{close:v})],2)):n("",!0)])]),_:2},1040,["class"])]),_:2},1024),l.default?(o(),u(t(X),{key:0,"as-child":"",class:f(e.class)},{default:r(()=>[d(s.$slots,"default",{open:p})]),_:2},1032,["class"])):n("",!0),y(t(Y),C(x(t(N))),{default:r(()=>[a.scrollable?(o(),u(t(S),{key:0,"data-slot":"overlay",class:f(i.value.overlay({class:e.ui?.overlay}))},{default:r(()=>[y(t(D))]),_:1},8,["class"])):(o(),h(Q,{key:1},[a.overlay?(o(),u(t(S),{key:0,"data-slot":"overlay",class:f(i.value.overlay({class:e.ui?.overlay}))},null,8,["class"])):n("",!0),y(t(D))],64))]),_:1},16)]),_:3},16))}};export{ne as _};
1
+ import{ao as F,N as H,P as I,ay as L,az as U,aA as W,aB as q,c as w,am as B,S as u,T as o,U as r,V as v,a9 as n,C as t,X as $,aC as X,a4 as d,aD as Y,aa as g,ae as b,G as h,W as f,ab as G,Y as K,aE as C,aF as P,aj as M}from"./D6tVZcRs.js";import{D as J,a as Q,b as Z}from"./DB2zZev7.js";import{D as _,a as x,b as O,c as ee,d as E}from"./BNJJSRKh.js";import{c as te}from"./D12qPplu.js";const ae={slots:{overlay:"fixed inset-0",content:"bg-default divide-y divide-default flex flex-col focus:outline-none",header:"flex items-center gap-1.5 p-4 sm:px-6 min-h-16",wrapper:"",body:"flex-1 p-4 sm:p-6",footer:"flex items-center gap-1.5 p-4 sm:px-6",title:"text-highlighted font-semibold",description:"mt-1 text-muted text-sm",close:"absolute top-4 end-4"},variants:{transition:{true:{overlay:"data-[state=open]:animate-[fade-in_200ms_ease-out] data-[state=closed]:animate-[fade-out_200ms_ease-in]",content:"data-[state=open]:animate-[scale-in_200ms_ease-out] data-[state=closed]:animate-[scale-out_200ms_ease-in]"}},fullscreen:{true:{content:"inset-0"},false:{content:"w-[calc(100vw-2rem)] max-w-lg rounded-lg shadow-lg ring ring-default"}},overlay:{true:{overlay:"bg-elevated/75"}},scrollable:{true:{overlay:"overflow-y-auto",content:"relative"},false:{content:"fixed",body:"overflow-y-auto"}}},compoundVariants:[{scrollable:!0,fullscreen:!1,class:{overlay:"grid place-items-center p-4 sm:py-8"}},{scrollable:!1,fullscreen:!1,class:{content:"top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 max-h-[calc(100dvh-2rem)] sm:max-h-[calc(100dvh-4rem)] overflow-hidden"}}]},ne={__name:"UModal",props:{title:{type:String,required:!1},description:{type:String,required:!1},content:{type:Object,required:!1},overlay:{type:Boolean,required:!1,default:!0},scrollable:{type:Boolean,required:!1},transition:{type:Boolean,required:!1,default:!0},fullscreen:{type:Boolean,required:!1},portal:{type:[Boolean,String],required:!1,skipCheck:!0,default:!0},close:{type:[Boolean,Object],required:!1,default:!0},closeIcon:{type:null,required:!1},dismissible:{type:Boolean,required:!1,default:!0},class:{type:null,required:!1},ui:{type:null,required:!1},open:{type:Boolean,required:!1},defaultOpen:{type:Boolean,required:!1},modal:{type:Boolean,required:!1,default:!0}},emits:["after:leave","after:enter","close:prevent","update:open"],setup(a,{emit:S}){const e=a,m=S,l=F(),{t:T}=H(),k=I(),V=L(U(e,"open","defaultOpen","modal"),m),N=W(q(()=>e.portal)),R=q(()=>e.content),j=w(()=>e.dismissible?e.scrollable?{pointerDownOutside:s=>{const c=s.detail.originalEvent,p=c.target;(c.offsetX>p.clientWidth||c.offsetY>p.clientHeight)&&s.preventDefault()}}:{}:["pointerDownOutside","interactOutside","escapeKeyDown"].reduce((c,p)=>(c[p]=y=>{y.preventDefault(),m("close:prevent")},c),{})),[A,D]=te(),i=w(()=>B({extend:B(ae),...k.ui?.modal||{}})({transition:e.transition,fullscreen:e.fullscreen,overlay:e.overlay,scrollable:e.scrollable}));return(s,c)=>(o(),u(t(Z),C(P(t(V))),{default:r(({open:p,close:y})=>[v(t(A),null,{default:r(()=>[v(t(_),$({"data-slot":"content",class:i.value.content({class:[!l.default&&e.class,e.ui?.content]})},R.value,{onAfterEnter:c[0]||(c[0]=z=>m("after:enter")),onAfterLeave:c[1]||(c[1]=z=>m("after:leave"))},X(j.value)),{default:r(()=>[l.content&&(a.title||l.title||a.description||l.description)?(o(),u(t(Y),{key:0},{default:r(()=>[a.title||l.title?(o(),u(t(x),{key:0},{default:r(()=>[d(s.$slots,"title",{},()=>[g(b(a.title),1)])]),_:3})):n("",!0),a.description||l.description?(o(),u(t(O),{key:1},{default:r(()=>[d(s.$slots,"description",{},()=>[g(b(a.description),1)])]),_:3})):n("",!0)]),_:3})):n("",!0),d(s.$slots,"content",{close:y},()=>[l.header||a.title||l.title||a.description||l.description||e.close||l.close?(o(),h("div",{key:0,"data-slot":"header",class:f(i.value.header({class:e.ui?.header}))},[d(s.$slots,"header",{close:y},()=>[G("div",{"data-slot":"wrapper",class:f(i.value.wrapper({class:e.ui?.wrapper}))},[a.title||l.title?(o(),u(t(x),{key:0,"data-slot":"title",class:f(i.value.title({class:e.ui?.title}))},{default:r(()=>[d(s.$slots,"title",{},()=>[g(b(a.title),1)])]),_:3},8,["class"])):n("",!0),a.description||l.description?(o(),u(t(O),{key:1,"data-slot":"description",class:f(i.value.description({class:e.ui?.description}))},{default:r(()=>[d(s.$slots,"description",{},()=>[g(b(a.description),1)])]),_:3},8,["class"])):n("",!0)],2),d(s.$slots,"actions"),e.close||l.close?(o(),u(t(ee),{key:0,"as-child":""},{default:r(()=>[d(s.$slots,"close",{ui:i.value},()=>[e.close?(o(),u(K,$({key:0,icon:a.closeIcon||t(k).ui.icons.close,color:"neutral",variant:"ghost","aria-label":t(T)("modal.close")},typeof e.close=="object"?e.close:{},{"data-slot":"close",class:i.value.close({class:e.ui?.close})}),null,16,["icon","aria-label","class"])):n("",!0)])]),_:2},1024)):n("",!0)])],2)):n("",!0),l.body?(o(),h("div",{key:1,"data-slot":"body",class:f(i.value.body({class:e.ui?.body}))},[d(s.$slots,"body",{close:y})],2)):n("",!0),l.footer?(o(),h("div",{key:2,"data-slot":"footer",class:f(i.value.footer({class:e.ui?.footer}))},[d(s.$slots,"footer",{close:y})],2)):n("",!0)])]),_:2},1040,["class"])]),_:2},1024),l.default?(o(),u(t(J),{key:0,"as-child":"",class:f(e.class)},{default:r(()=>[d(s.$slots,"default",{open:p})]),_:2},1032,["class"])):n("",!0),v(t(Q),C(P(t(N))),{default:r(()=>[a.scrollable?(o(),u(t(E),{key:0,"data-slot":"overlay",class:f(i.value.overlay({class:e.ui?.overlay}))},{default:r(()=>[v(t(D))]),_:1},8,["class"])):(o(),h(M,{key:1},[a.overlay?(o(),u(t(E),{key:0,"data-slot":"overlay",class:f(i.value.overlay({class:e.ui?.overlay}))},null,8,["class"])):n("",!0),v(t(D))],64))]),_:1},16)]),_:3},16))}};export{ne as _};
@@ -1 +1 @@
1
- import{ad as s,G as a,R as i,ab as t,ae as n,T as u,S as c,aa as l,af as d}from"./2dNDtTiv.js";import{_ as f}from"./DlAUqK2U.js";const p={class:"antialiased bg-white dark:bg-[#020420] dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-[#020420] tracking-wide"},m={class:"max-w-520px text-center"},h=["textContent"],g=["textContent"],b=["textContent"],x={class:"flex items-center justify-center w-full"},y={__name:"error-404",props:{appName:{type:String,default:"Nuxt"},statusCode:{type:Number,default:404},statusMessage:{type:String,default:"Page not found"},description:{type:String,default:"Sorry, the page you are looking for could not be found."},backHome:{type:String,default:"Go back home"}},setup(e){const r=e;return s({title:`${r.statusCode} - ${r.statusMessage} | ${r.appName}`,script:[{innerHTML:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)}).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1,h2{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}h1,h2,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(k,_)=>{const o=d;return i(),a("div",p,[t("div",m,[t("h1",{class:"font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]",textContent:n(e.statusCode)},null,8,h),t("h2",{class:"font-semibold mb-2 sm:text-3xl text-2xl",textContent:n(e.statusMessage)},null,8,g),t("p",{class:"mb-4 px-2 text-[#64748B] text-md",textContent:n(e.description)},null,8,b),t("div",x,[u(o,{to:"/",class:"font-medium hover:text-[#00DC82] text-sm underline underline-offset-3"},{default:c(()=>[l(n(e.backHome),1)]),_:1})])])])}}},v=f(y,[["__scopeId","data-v-8f98a97f"]]);export{v as default};
1
+ import{ad as s,G as a,T as i,ab as t,ae as n,V as u,U as c,aa as l,af as d}from"./D6tVZcRs.js";import{_ as f}from"./DlAUqK2U.js";const p={class:"antialiased bg-white dark:bg-[#020420] dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-[#020420] tracking-wide"},m={class:"max-w-520px text-center"},h=["textContent"],g=["textContent"],b=["textContent"],x={class:"flex items-center justify-center w-full"},y={__name:"error-404",props:{appName:{type:String,default:"Nuxt"},statusCode:{type:Number,default:404},statusMessage:{type:String,default:"Page not found"},description:{type:String,default:"Sorry, the page you are looking for could not be found."},backHome:{type:String,default:"Go back home"}},setup(e){const r=e;return s({title:`${r.statusCode} - ${r.statusMessage} | ${r.appName}`,script:[{innerHTML:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)}).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1,h2{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}h1,h2,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(k,_)=>{const o=d;return i(),a("div",p,[t("div",m,[t("h1",{class:"font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]",textContent:n(e.statusCode)},null,8,h),t("h2",{class:"font-semibold mb-2 sm:text-3xl text-2xl",textContent:n(e.statusMessage)},null,8,g),t("p",{class:"mb-4 px-2 text-[#64748B] text-md",textContent:n(e.description)},null,8,b),t("div",x,[u(o,{to:"/",class:"font-medium hover:text-[#00DC82] text-sm underline underline-offset-3"},{default:c(()=>[l(n(e.backHome),1)]),_:1})])])])}}},v=f(y,[["__scopeId","data-v-8f98a97f"]]);export{v as default};
@@ -1 +1 @@
1
- import{a as le,aR as ua,Q as F,R as C,C as w,e as S,c as U,y as ge,S as W,a4 as H,al as da,aV as ca,G as me,ab as He,aJ as Le,V as ze,ao as We,aP as va,h as fa,f as ee,q as Ue,b5 as pa,a2 as ma,k as je,N as ha,aI as ya,aK as ga,aC as Pe,am as ke,a9 as M,T as Re,U as Y,aN as Ee,aO as Ne,aL as wa,aM as ba,aa as ce,ae as ve,au as $a}from"./2dNDtTiv.js";import{d as Sa,D as xa,a as Ce,b as Ae}from"./BZrSPX0S.js";import{b as Ta,D as Da,a as Ba}from"./BA_pRWwX.js";(function(){var e;try{if(typeof document<"u"){var t=document.createElement("style");t.nonce=(e=document.head.querySelector("meta[property=csp-nonce]"))==null?void 0:e.content,t.appendChild(document.createTextNode('[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32,.72,0,1);animation-duration:.5s;animation-timing-function:cubic-bezier(.32,.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform, 100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform, 100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform, 100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform, 100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top],[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height, 0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left],[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height, 0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(.32,.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32,.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true]):after{content:"";position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]:after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]:after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]:after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]:after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not([data-state=closed]){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:hover,[data-vaul-handle]:active{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover: hover) and (pointer: fine){[data-vaul-drawer]{-webkit-user-select:none;user-select:none}}@media (pointer: fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{0%{transform:translate3d(0,var(--initial-transform, 100%),0)}to{transform:translateZ(0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform, 100%),0)}}@keyframes slideFromTop{0%{transform:translate3d(0,calc(var(--initial-transform, 100%) * -1),0)}to{transform:translateZ(0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform, 100%) * -1),0)}}@keyframes slideFromLeft{0%{transform:translate3d(calc(var(--initial-transform, 100%) * -1),0,0)}to{transform:translateZ(0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform, 100%) * -1),0,0)}}@keyframes slideFromRight{0%{transform:translate3d(var(--initial-transform, 100%),0,0)}to{transform:translateZ(0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform, 100%),0,0)}}')),document.head.appendChild(t)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}})();const Oa=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Pa=e=>typeof e<"u";function ka(e){return JSON.parse(JSON.stringify(e))}function qe(e,t,n,s={}){var a,h,d;const{clone:c=!1,passive:$=!1,eventName:D,deep:y=!1,defaultValue:o,shouldEmit:l}=s,g=fa(),m=n||g?.emit||((a=g?.$emit)==null?void 0:a.bind(g))||((d=(h=g?.proxy)==null?void 0:h.$emit)==null?void 0:d.bind(g?.proxy));let v=D;t||(t="modelValue"),v=v||`update:${t.toString()}`;const L=r=>c?typeof c=="function"?c(r):ka(r):r,q=()=>Pa(e[t])?L(e[t]):o,p=r=>{l?l(r)&&m(v,r):m(v,r)};if($){const r=q(),u=S(r);let f=!1;return ee(()=>e[t],x=>{f||(f=!0,u.value=L(x),je(()=>f=!1))}),ee(u,x=>{!f&&(x!==e[t]||y)&&p(x)},{deep:y}),u}else return U({get(){return q()},set(r){p(r)}})}const[oe,Ra]=ua("DrawerRoot"),Me=new WeakMap;function E(e,t,n=!1){if(!e||!(e instanceof HTMLElement)||!t)return;const s={};Object.entries(t).forEach(([a,h])=>{if(a.startsWith("--")){e.style.setProperty(a,h);return}s[a]=e.style[a],e.style[a]=h}),!n&&Me.set(e,s)}function Ea(e,t){if(!e||!(e instanceof HTMLElement))return;const n=Me.get(e);n&&Object.entries(n).forEach(([s,a])=>{e.style[s]=a})}function fe(e,t){const n=window.getComputedStyle(e),s=n.transform||n.webkitTransform||n.mozTransform;let a=s.match(/^matrix3d\((.+)\)$/);return a?Number.parseFloat(a[1].split(", ")[k(t)?13:12]):(a=s.match(/^matrix\((.+)\)$/),a?Number.parseFloat(a[1].split(", ")[k(t)?5:4]):null)}function Na(e){return 8*(Math.log(e+1)-2)}function k(e){switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}}function ye(e,t){if(!e)return()=>{};const n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}function Ca(...e){return(...t)=>{for(const n of e)typeof n=="function"&&n(...t)}}const O={DURATION:.5,EASE:[.32,.72,0,1]},Ve=.4,Aa=.25,qa=100,Ye=8,pe=16,Xe=26,Ie="vaul-dragging";function Ia({activeSnapPoint:e,snapPoints:t,drawerRef:n,overlayRef:s,fadeFromIndex:a,onSnapPointChange:h,direction:d}){const c=S(typeof window<"u"?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);function $(){c.value={innerWidth:window.innerWidth,innerHeight:window.innerHeight}}Ue(()=>{typeof window<"u"&&window.addEventListener("resize",$)}),pa(()=>{typeof window<"u"&&window.removeEventListener("resize",$)});const D=U(()=>(t.value&&e.value===t.value[t.value.length-1])??null),y=U(()=>t.value&&t.value.length>0&&(a?.value||a?.value===0)&&!Number.isNaN(a?.value)&&t.value[a?.value??-1]===e.value||!t.value),o=U(()=>{var p;return((p=t.value)==null?void 0:p.findIndex(r=>r===e.value))??null}),l=U(()=>{var p;return((p=t.value)==null?void 0:p.map(r=>{const u=typeof r=="string";let f=0;if(u&&(f=Number.parseInt(r,10)),k(d.value)){const T=u?f:c.value?r*c.value.innerHeight:0;return c.value?d.value==="bottom"?c.value.innerHeight-T:-c.value.innerHeight+T:T}const x=u?f:c.value?r*c.value.innerWidth:0;return c.value?d.value==="right"?c.value.innerWidth-x:-c.value.innerWidth+x:x}))??[]}),g=U(()=>{var p;return o.value!==null?(p=l.value)==null?void 0:p[o.value]:null}),m=p=>{var r,u,f,x;const T=((r=l.value)==null?void 0:r.findIndex(z=>z===p))??null;je(()=>{var z;h(T,l.value),E((z=n.value)==null?void 0:z.$el,{transition:`transform ${O.DURATION}s cubic-bezier(${O.EASE.join(",")})`,transform:k(d.value)?`translate3d(0, ${p}px, 0)`:`translate3d(${p}px, 0, 0)`})}),l.value&&T!==l.value.length-1&&T!==a?.value?E((u=s.value)==null?void 0:u.$el,{transition:`opacity ${O.DURATION}s cubic-bezier(${O.EASE.join(",")})`,opacity:"0"}):E((f=s.value)==null?void 0:f.$el,{transition:`opacity ${O.DURATION}s cubic-bezier(${O.EASE.join(",")})`,opacity:"1"}),e.value=T!==null?((x=t.value)==null?void 0:x[T])??null:null};ee([e,l,t],()=>{var p;if(e.value){const r=((p=t.value)==null?void 0:p.findIndex(u=>u===e.value))??-1;l.value&&r!==-1&&typeof l.value[r]=="number"&&m(l.value[r])}},{immediate:!0});function v({draggedDistance:p,closeDrawer:r,velocity:u,dismissible:f}){var x,T,z;if(a.value===void 0)return;const G=d.value==="bottom"||d.value==="right"?(g.value??0)-p:(g.value??0)+p,re=o.value===a.value-1,_=o.value===0,X=p>0;if(re&&E((x=s.value)==null?void 0:x.$el,{transition:`opacity ${O.DURATION}s cubic-bezier(${O.EASE.join(",")})`}),u>2&&!X){f?r():m(l.value[0]);return}if(u>2&&X&&l&&t.value){m(l.value[t.value.length-1]);return}const ae=(T=l.value)==null?void 0:T.reduce((V,b)=>typeof V!="number"||typeof b!="number"?V:Math.abs(b-G)<Math.abs(V-G)?b:V),J=k(d.value)?window.innerHeight:window.innerWidth;if(u>Ve&&Math.abs(p)<J*.4){const V=X?1:-1;if(V>0&&D){m(l.value[(((z=t.value)==null?void 0:z.length)??0)-1]);return}if(_&&V<0&&f&&r(),o.value===null)return;m(l.value[o.value+V]);return}m(ae)}function L({draggedDistance:p}){var r;if(g.value===null)return;const u=d.value==="bottom"||d.value==="right"?g.value-p:g.value+p;(d.value==="bottom"||d.value==="right")&&u<l.value[l.value.length-1]||(d.value==="top"||d.value==="left")&&u>l.value[l.value.length-1]||E((r=n.value)==null?void 0:r.$el,{transform:k(d.value)?`translate3d(0, ${u}px, 0)`:`translate3d(${u}px, 0, 0)`})}function q(p,r){if(!t.value||typeof o.value!="number"||!l.value||a.value===void 0)return null;const u=o.value===a.value-1;if(o.value>=a.value&&r)return 0;if(u&&!r)return 1;if(!y.value&&!u)return null;const f=u?o.value+1:o.value-1,x=u?l.value[f]-l.value[f-1]:l.value[f+1]-l.value[f],T=p/Math.abs(x);return u?1-T:T}return{isLastSnapPoint:D,shouldFade:y,getPercentageDragged:q,activeSnapPointIndex:o,onRelease:v,onDrag:L,snapPointsOffset:l}}function Fe(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}let ne=null;function Fa(e){const{isOpen:t,modal:n,nested:s,hasBeenOpened:a,preventScrollRestoration:h,noBodyStyles:d}=e,c=S(typeof window<"u"?window.location.href:""),$=S(0);function D(){if(Fe()&&ne===null&&t.value&&!d.value){ne={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height};const{scrollX:o,innerHeight:l}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:`${-$.value}px`,left:`${-o}px`,right:"0px",height:"auto"}),setTimeout(()=>{requestAnimationFrame(()=>{const g=l-window.innerHeight;g&&$.value>=l&&(document.body.style.top=`-${$.value+g}px`)})},300)}}function y(){if(Fe()&&ne!==null&&!d.value){const o=-Number.parseInt(document.body.style.top,10),l=-Number.parseInt(document.body.style.left,10);Object.assign(document.body.style,ne),window.requestAnimationFrame(()=>{if(h.value&&c.value!==window.location.href){c.value=window.location.href;return}window.scrollTo(l,o)}),ne=null}}return Ue(()=>{function o(){$.value=window.scrollY}o(),window.addEventListener("scroll",o),ma(()=>{window.removeEventListener("scroll",o)})}),ee([t,a,c],()=>{s.value||!a.value||(t.value?(window.matchMedia("(display-mode: standalone)").matches||D(),n.value||setTimeout(()=>{y()},500)):y())}),{restorePositionSetting:y}}function Ha(e,t){return e&&e.value?e:t}function La(e){const{emitDrag:t,emitRelease:n,emitClose:s,emitOpenChange:a,open:h,dismissible:d,nested:c,modal:$,shouldScaleBackground:D,setBackgroundColorOnScale:y,scrollLockTimeout:o,closeThreshold:l,activeSnapPoint:g,fadeFromIndex:m,direction:v,noBodyStyles:L,handleOnly:q,preventScrollRestoration:p}=e,r=S(h.value??!1),u=S(!1),f=S(!1),x=S(!1),T=S(null),z=S(null),G=S(null),re=S(null),_=S(null),X=S(!1),ae=S(null),J=S(0),V=S(!1);S(0);const b=S(null);S(0);const we=U(()=>{var i;return((i=b.value)==null?void 0:i.$el.getBoundingClientRect().height)||0}),I=Ha(e.snapPoints,S(void 0)),Ke=U(()=>{var i;return I&&(((i=I.value)==null?void 0:i.length)??0)>0}),Ze=S(null),{activeSnapPointIndex:be,onRelease:_e,snapPointsOffset:Je,onDrag:Qe,shouldFade:$e,getPercentageDragged:ea}=Ia({snapPoints:I,activeSnapPoint:g,drawerRef:b,fadeFromIndex:m,overlayRef:T,onSnapPointChange:aa,direction:v});function aa(i,P){I.value&&i===P.length-1&&(z.value=new Date)}Fa({isOpen:r,modal:$,nested:c,hasBeenOpened:u,noBodyStyles:L,preventScrollRestoration:p});function ie(){return(window.innerWidth-Xe)/window.innerWidth}function Se(i,P){var R;if(!i)return!1;let B=i;const N=(R=window.getSelection())==null?void 0:R.toString(),A=b.value?fe(b.value.$el,v.value):null,j=new Date;if(B.hasAttribute("data-vaul-no-drag")||B.closest("[data-vaul-no-drag]"))return!1;if(v.value==="right"||v.value==="left")return!0;if(z.value&&j.getTime()-z.value.getTime()<500)return!1;if(A!==null&&(v.value==="bottom"?A>0:A<0))return!0;if(N&&N.length>0)return!1;if(_.value&&j.getTime()-_.value.getTime()<o.value&&A===0||P)return _.value=j,!1;for(;B;){if(B.scrollHeight>B.clientHeight){if(B.scrollTop!==0)return _.value=new Date,!1;if(B.getAttribute("role")==="dialog")return!0}B=B.parentNode}return!0}function ta(i){!d.value&&!I.value||b.value&&!b.value.$el.contains(i.target)||(f.value=!0,G.value=new Date,i.target.setPointerCapture(i.pointerId),J.value=k(v.value)?i.clientY:i.clientX)}function na(i){var P,R,B,N,A,j;if(b.value&&f.value){const Q=v.value==="bottom"||v.value==="right"?1:-1,se=(J.value-(k(v.value)?i.clientY:i.clientX))*Q,ue=se>0,Te=I.value&&!d.value&&!ue;if(Te&&be.value===0)return;const he=Math.abs(se),De=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");let K=he/we.value;const Be=ea(he,ue);if(Be!==null&&(K=Be),Te&&K>=1||!X.value&&!Se(i.target,ue))return;if((P=b?.value)==null||P.$el.classList.add(Ie),X.value=!0,E((R=b.value)==null?void 0:R.$el,{transition:"none"}),E((B=T.value)==null?void 0:B.$el,{transition:"none"}),I.value&&Qe({draggedDistance:se}),ue&&!I.value){const Z=Na(se),de=Math.min(Z*-1,0)*Q;E((N=b.value)==null?void 0:N.$el,{transform:k(v.value)?`translate3d(0, ${de}px, 0)`:`translate3d(${de}px, 0, 0)`});return}const sa=1-K;if(($e.value||m.value&&be.value===m.value-1)&&(t(K),E((A=T.value)==null?void 0:A.$el,{opacity:`${sa}`,transition:"none"},!0)),De&&T.value&&D.value){const Z=Math.min(ie()+K*(1-ie()),1),de=8-K*8,Oe=Math.max(0,14-K*14);E(De,{borderRadius:`${de}px`,transform:k(v.value)?`scale(${Z}) translate3d(0, ${Oe}px, 0)`:`scale(${Z}) translate3d(${Oe}px, 0, 0)`,transition:"none"},!0)}if(!I.value){const Z=he*Q;E((j=b.value)==null?void 0:j.$el,{transform:k(v.value)?`translate3d(0, ${Z}px, 0)`:`translate3d(${Z}px, 0, 0)`})}}}function xe(){var i;if(!b.value)return;const P=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]"),R=fe(b.value.$el,v.value);E(b.value.$el,{transform:"translate3d(0, 0, 0)",transition:`transform ${O.DURATION}s cubic-bezier(${O.EASE.join(",")})`}),E((i=T.value)==null?void 0:i.$el,{transition:`opacity ${O.DURATION}s cubic-bezier(${O.EASE.join(",")})`,opacity:"1"}),D.value&&R&&R>0&&r.value&&E(P,{borderRadius:`${Ye}px`,overflow:"hidden",...k(v.value)?{transform:`scale(${ie()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${ie()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${O.DURATION}s`,transitionTimingFunction:`cubic-bezier(${O.EASE.join(",")})`},!0)}function te(i){b.value&&(s(),i||(r.value=!1),window.setTimeout(()=>{I.value&&(g.value=I.value[0])},O.DURATION*1e3))}ge(()=>{if(!r.value&&D.value&&Oa){const i=setTimeout(()=>{Ea(document.body)},200);return()=>clearTimeout(i)}}),ee(h,()=>{r.value=h.value,h.value||te()});function la(i){if(!f.value||!b.value)return;b.value.$el.classList.remove(Ie),X.value=!1,f.value=!1,re.value=new Date;const P=fe(b.value.$el,v.value);if(!Se(i.target,!1)||!P||Number.isNaN(P)||G.value===null)return;const R=re.value.getTime()-G.value.getTime(),B=J.value-(k(v.value)?i.clientY:i.clientX),N=Math.abs(B)/R;if(N>.05&&(x.value=!0,window.setTimeout(()=>{x.value=!1},200)),I.value){const j=v.value==="bottom"||v.value==="right"?1:-1;_e({draggedDistance:B*j,closeDrawer:te,velocity:N,dismissible:d.value}),n(!0);return}if(v.value==="bottom"||v.value==="right"?B>0:B<0){xe(),n(!0);return}if(N>Ve){te(),n(!1);return}const A=Math.min(b.value.$el.getBoundingClientRect().height??0,window.innerHeight);if(P>=A*l.value){te(),n(!1);return}n(!0),xe()}ee(r,i=>{i&&(z.value=new Date),a(i)},{immediate:!0});function oa(i){var P,R;const B=i?(window.innerWidth-pe)/window.innerWidth:1,N=i?-16:0;ae.value&&window.clearTimeout(ae.value),E((P=b.value)==null?void 0:P.$el,{transition:`transform ${O.DURATION}s cubic-bezier(${O.EASE.join(",")})`,transform:`scale(${B}) translate3d(0, ${N}px, 0)`}),!i&&(R=b.value)!=null&&R.$el&&(ae.value=window.setTimeout(()=>{var A,j;const Q=fe((A=b.value)==null?void 0:A.$el,v.value);E((j=b.value)==null?void 0:j.$el,{transition:"none",transform:k(v.value)?`translate3d(0, ${Q}px, 0)`:`translate3d(${Q}px, 0, 0)`})},500))}function ra(i){var P;if(i<0)return;const R=k(v.value)?window.innerHeight:window.innerWidth,B=(R-pe)/R,N=B+i*(1-B),A=-16+i*pe;E((P=b.value)==null?void 0:P.$el,{transform:k(v.value)?`scale(${N}) translate3d(0, ${A}px, 0)`:`scale(${N}) translate3d(${A}px, 0, 0)`,transition:"none"})}function ia(i){var P;const R=k(v.value)?window.innerHeight:window.innerWidth,B=i?(R-pe)/R:1,N=i?-16:0;i&&E((P=b.value)==null?void 0:P.$el,{transition:`transform ${O.DURATION}s cubic-bezier(${O.EASE.join(",")})`,transform:k(v.value)?`scale(${B}) translate3d(0, ${N}px, 0)`:`scale(${B}) translate3d(${N}px, 0, 0)`})}return{open:h,isOpen:r,modal:$,keyboardIsOpen:V,hasBeenOpened:u,drawerRef:b,drawerHeightRef:we,overlayRef:T,handleRef:Ze,isDragging:f,dragStartTime:G,isAllowedToDrag:X,snapPoints:I,activeSnapPoint:g,hasSnapPoints:Ke,pointerStart:J,dismissible:d,snapPointsOffset:Je,direction:v,shouldFade:$e,fadeFromIndex:m,shouldScaleBackground:D,setBackgroundColorOnScale:y,onPress:ta,onDrag:na,onRelease:la,closeDrawer:te,onNestedDrag:ra,onNestedRelease:ia,onNestedOpenChange:oa,emitClose:s,emitDrag:t,emitRelease:n,emitOpenChange:a,nested:c,handleOnly:q,noBodyStyles:L}}const Ge=le({__name:"DrawerRoot",props:{activeSnapPoint:{default:void 0},closeThreshold:{default:Aa},shouldScaleBackground:{type:Boolean,default:void 0},setBackgroundColorOnScale:{type:Boolean,default:!0},scrollLockTimeout:{default:qa},fixed:{type:Boolean,default:void 0},dismissible:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},nested:{type:Boolean,default:!1},direction:{default:"bottom"},noBodyStyles:{type:Boolean},handleOnly:{type:Boolean,default:!1},preventScrollRestoration:{type:Boolean},snapPoints:{default:void 0},fadeFromIndex:{default:void 0}},emits:["drag","release","close","update:open","update:activeSnapPoint","animationEnd"],setup(e,{expose:t,emit:n}){const s=e,a=n;We();const h=U(()=>s.fadeFromIndex??(s.snapPoints&&s.snapPoints.length-1)),d=qe(s,"open",a,{defaultValue:s.defaultOpen,passive:s.open===void 0}),c=qe(s,"activeSnapPoint",a,{passive:s.activeSnapPoint===void 0}),$={emitDrag:m=>a("drag",m),emitRelease:m=>a("release",m),emitClose:()=>a("close"),emitOpenChange:m=>{a("update:open",m),setTimeout(()=>{a("animationEnd",m)},O.DURATION*1e3)}},{closeDrawer:D,hasBeenOpened:y,modal:o,isOpen:l}=Ra(La({...$,...va(s),activeSnapPoint:c,fadeFromIndex:h,open:d}));function g(m){if(d.value!==void 0){$.emitOpenChange(m);return}l.value=m,m?y.value=!0:D()}return t({open:l}),(m,v)=>(C(),F(w(Ta),{open:w(l),modal:w(o),"onUpdate:open":g},{default:W(()=>[H(m.$slots,"default",{open:w(l)})]),_:3},8,["open","modal"]))}}),za=le({__name:"DrawerRootNested",props:{activeSnapPoint:{},closeThreshold:{},shouldScaleBackground:{type:Boolean},setBackgroundColorOnScale:{type:Boolean},scrollLockTimeout:{},fixed:{type:Boolean},dismissible:{type:Boolean},modal:{type:Boolean},open:{type:Boolean},defaultOpen:{type:Boolean},nested:{type:Boolean},direction:{},noBodyStyles:{type:Boolean},handleOnly:{type:Boolean},preventScrollRestoration:{type:Boolean},snapPoints:{},fadeFromIndex:{}},emits:["drag","release","close","update:open","update:activeSnapPoint","animationEnd"],setup(e,{emit:t}){const n=e,s=t,{onNestedDrag:a,onNestedOpenChange:h,onNestedRelease:d}=oe();function c(){h(!1)}function $(o){a(o)}function D(o){o&&h(o),s("update:open",o)}const y=Le(n,s);return(o,l)=>(C(),F(Ge,ze(w(y),{nested:"",onClose:c,onDrag:$,onRelease:w(d),"onUpdate:open":D}),{default:W(()=>[H(o.$slots,"default")]),_:3},16,["onRelease"]))}}),Wa=le({__name:"DrawerOverlay",setup(e){const{overlayRef:t,hasSnapPoints:n,isOpen:s,shouldFade:a}=oe();return(h,d)=>(C(),F(w(Sa),{ref_key:"overlayRef",ref:t,"data-vaul-overlay":"","data-vaul-snap-points":w(s)&&w(n)?"true":"false","data-vaul-snap-points-overlay":w(s)&&w(a)?"true":"false"},null,8,["data-vaul-snap-points","data-vaul-snap-points-overlay"]))}}),Ua=()=>()=>{};function ja(){const{direction:e,isOpen:t,shouldScaleBackground:n,setBackgroundColorOnScale:s,noBodyStyles:a}=oe(),h=S(null),d=S(document.body.style.backgroundColor);function c(){return(window.innerWidth-Xe)/window.innerWidth}ge($=>{if(t.value&&n.value){h.value&&clearTimeout(h.value);const D=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!D)return;Ca(s.value&&!a.value?ye(document.body,{background:"black"}):Ua,ye(D,{transformOrigin:k(e.value)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${O.DURATION}s`,transitionTimingFunction:`cubic-bezier(${O.EASE.join(",")})`}));const y=ye(D,{borderRadius:`${Ye}px`,overflow:"hidden",...k(e.value)?{transform:`scale(${c()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${c()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});$(()=>{y(),h.value=window.setTimeout(()=>{d.value?document.body.style.background=d.value:document.body.style.removeProperty("background")},O.DURATION*1e3)})}},{flush:"pre"})}const Ma=le({__name:"DrawerContent",setup(e){const{open:t,isOpen:n,snapPointsOffset:s,hasSnapPoints:a,drawerRef:h,onPress:d,onDrag:c,onRelease:$,modal:D,emitOpenChange:y,dismissible:o,keyboardIsOpen:l,closeDrawer:g,direction:m,handleOnly:v}=oe();ja();const L=S(!1),q=U(()=>s.value&&s.value.length>0?`${s.value[0]}px`:"0");function p(f){if(!D.value||f.defaultPrevented){f.preventDefault();return}l.value&&(l.value=!1),o.value?y(!1):f.preventDefault()}function r(f){v.value||d(f)}function u(f){v.value||c(f)}return ge(()=>{a.value&&window.requestAnimationFrame(()=>{L.value=!0})}),(f,x)=>(C(),F(w(xa),{ref_key:"drawerRef",ref:h,"data-vaul-drawer":"","data-vaul-drawer-direction":w(m),"data-vaul-delayed-snap-points":L.value?"true":"false","data-vaul-snap-points":w(n)&&w(a)?"true":"false",style:ca({"--snap-point-height":q.value}),onPointerdown:r,onPointermove:u,onPointerup:w($),onPointerDownOutside:p,onOpenAutoFocus:x[0]||(x[0]=da(()=>{},["prevent"])),onEscapeKeyDown:x[1]||(x[1]=T=>{w(o)||T.preventDefault()})},{default:W(()=>[H(f.$slots,"default")]),_:3},8,["data-vaul-drawer-direction","data-vaul-delayed-snap-points","data-vaul-snap-points","style","onPointerup"]))}}),Va=["data-vaul-drawer-visible"],Ya={"data-vaul-handle-hitarea":"","aria-hidden":"true"},Xa=250,Ga=120,Ka=le({__name:"DrawerHandle",props:{preventCycle:{type:Boolean,default:!1}},setup(e){const t=e,{onPress:n,onDrag:s,handleRef:a,handleOnly:h,isOpen:d,snapPoints:c,activeSnapPoint:$,isDragging:D,dismissible:y,closeDrawer:o}=oe(),l=S(null),g=S(!1);function m(){if(g.value){q();return}window.setTimeout(()=>{v()},Ga)}function v(){if(D.value||t.preventCycle||g.value){q();return}if(q(),!c.value||c.value.length===0){y.value||o();return}const u=$.value===c.value[c.value.length-1];if(u&&y.value){o();return}const f=c.value.findIndex(T=>T===$.value);if(f===-1)return;const x=u?0:f+1;$.value=c.value[x]}function L(){l.value=window.setTimeout(()=>{g.value=!0},Xa)}function q(){l.value&&window.clearTimeout(l.value),g.value=!1}function p(u){h.value&&n(u),L()}function r(u){h.value&&s(u)}return(u,f)=>(C(),me("div",{ref_key:"handleRef",ref:a,"data-vaul-drawer-visible":w(d)?"true":"false","data-vaul-handle":"","aria-hidden":"true",onClick:m,onPointercancel:q,onPointerdown:p,onPointermove:r},[He("span",Ya,[H(u.$slots,"default")])],40,Va))}}),Za={slots:{overlay:"fixed inset-0 bg-elevated/75",content:"fixed bg-default ring ring-default flex focus:outline-none",handle:["shrink-0 !bg-accented","transition-opacity"],container:"w-full flex flex-col gap-4 p-4 overflow-y-auto",header:"",title:"text-highlighted font-semibold",description:"mt-1 text-muted text-sm",body:"flex-1",footer:"flex flex-col gap-1.5"},variants:{direction:{top:{content:"mb-24 flex-col-reverse",handle:"mb-4"},right:{content:"flex-row",handle:"!ml-4"},bottom:{content:"mt-24 flex-col",handle:"mt-4"},left:{content:"flex-row-reverse",handle:"!mr-4"}},inset:{true:{content:"rounded-lg after:hidden overflow-hidden [--initial-transform:calc(100%+1.5rem)]"}},snapPoints:{true:""}},compoundVariants:[{direction:["top","bottom"],class:{content:"h-auto max-h-[96%]",handle:"!w-12 !h-1.5 mx-auto"}},{direction:["top","bottom"],snapPoints:!0,class:{content:"h-full"}},{direction:["right","left"],class:{content:"w-auto max-w-[calc(100%-2rem)]",handle:"!h-12 !w-1.5 mt-auto mb-auto"}},{direction:["right","left"],snapPoints:!0,class:{content:"w-full"}},{direction:"top",inset:!0,class:{content:"inset-x-4 top-4"}},{direction:"top",inset:!1,class:{content:"inset-x-0 top-0 rounded-b-lg"}},{direction:"bottom",inset:!0,class:{content:"inset-x-4 bottom-4"}},{direction:"bottom",inset:!1,class:{content:"inset-x-0 bottom-0 rounded-t-lg"}},{direction:"left",inset:!0,class:{content:"inset-y-4 left-4"}},{direction:"left",inset:!1,class:{content:"inset-y-0 left-0 rounded-r-lg"}},{direction:"right",inset:!0,class:{content:"inset-y-4 right-4"}},{direction:"right",inset:!1,class:{content:"inset-y-0 right-0 rounded-l-lg"}}]},et={__name:"UDrawer",props:{as:{type:null,required:!1},title:{type:String,required:!1},description:{type:String,required:!1},inset:{type:Boolean,required:!1},content:{type:Object,required:!1},overlay:{type:Boolean,required:!1,default:!0},handle:{type:Boolean,required:!1,default:!0},portal:{type:[Boolean,String],required:!1,skipCheck:!0,default:!0},nested:{type:Boolean,required:!1},class:{type:null,required:!1},ui:{type:null,required:!1},activeSnapPoint:{type:[Number,String,null],required:!1},closeThreshold:{type:Number,required:!1},shouldScaleBackground:{type:Boolean,required:!1},setBackgroundColorOnScale:{type:Boolean,required:!1},scrollLockTimeout:{type:Number,required:!1},fixed:{type:Boolean,required:!1},dismissible:{type:Boolean,required:!1,default:!0},modal:{type:Boolean,required:!1,default:!0},open:{type:Boolean,required:!1},defaultOpen:{type:Boolean,required:!1},direction:{type:String,required:!1,default:"bottom"},noBodyStyles:{type:Boolean,required:!1},handleOnly:{type:Boolean,required:!1},preventScrollRestoration:{type:Boolean,required:!1},snapPoints:{type:Array,required:!1}},emits:["close:prevent","drag","release","close","update:open","update:activeSnapPoint","animationEnd"],setup(e,{emit:t}){const n=e,s=t,a=We(),h=ha(),d=Le(ya(n,"activeSnapPoint","closeThreshold","shouldScaleBackground","setBackgroundColorOnScale","scrollLockTimeout","fixed","dismissible","modal","open","defaultOpen","nested","direction","noBodyStyles","handleOnly","preventScrollRestoration","snapPoints"),s),c=ga(Pe(()=>n.portal)),$=Pe(()=>n.content),D=U(()=>n.dismissible?{}:["pointerDownOutside","interactOutside","escapeKeyDown"].reduce((l,g)=>(l[g]=m=>{m.preventDefault(),s("close:prevent")},l),{})),y=U(()=>ke({extend:ke(Za),...h.ui?.drawer||{}})({direction:n.direction,inset:n.inset,snapPoints:n.snapPoints&&n.snapPoints.length>0}));return(o,l)=>(C(),F($a(e.nested?w(za):w(Ge)),Ee(Ne(w(d))),{default:W(()=>[a.default?(C(),F(w(Da),{key:0,"as-child":"",class:Y(n.class)},{default:W(()=>[H(o.$slots,"default")]),_:3},8,["class"])):M("",!0),Re(w(Ba),Ee(Ne(w(c))),{default:W(()=>[e.overlay?(C(),F(w(Wa),{key:0,"data-slot":"overlay",class:Y(y.value.overlay({class:n.ui?.overlay}))},null,8,["class"])):M("",!0),Re(w(Ma),ze({"data-slot":"content",class:y.value.content({class:[!a.default&&n.class,n.ui?.content]})},$.value,wa(D.value)),{default:W(()=>[e.handle?(C(),F(w(Ka),{key:0,"data-slot":"handle",class:Y(y.value.handle({class:n.ui?.handle}))},null,8,["class"])):M("",!0),a.content&&(e.title||a.title||e.description||a.description)?(C(),F(w(ba),{key:1},{default:W(()=>[e.title||a.title?(C(),F(w(Ce),{key:0},{default:W(()=>[H(o.$slots,"title",{},()=>[ce(ve(e.title),1)])]),_:3})):M("",!0),e.description||a.description?(C(),F(w(Ae),{key:1},{default:W(()=>[H(o.$slots,"description",{},()=>[ce(ve(e.description),1)])]),_:3})):M("",!0)]),_:3})):M("",!0),H(o.$slots,"content",{},()=>[He("div",{"data-slot":"container",class:Y(y.value.container({class:n.ui?.container}))},[a.header||e.title||a.title||e.description||a.description?(C(),me("div",{key:0,"data-slot":"header",class:Y(y.value.header({class:n.ui?.header}))},[H(o.$slots,"header",{},()=>[e.title||a.title?(C(),F(w(Ce),{key:0,"data-slot":"title",class:Y(y.value.title({class:n.ui?.title}))},{default:W(()=>[H(o.$slots,"title",{},()=>[ce(ve(e.title),1)])]),_:3},8,["class"])):M("",!0),e.description||a.description?(C(),F(w(Ae),{key:1,"data-slot":"description",class:Y(y.value.description({class:n.ui?.description}))},{default:W(()=>[H(o.$slots,"description",{},()=>[ce(ve(e.description),1)])]),_:3},8,["class"])):M("",!0)])],2)):M("",!0),a.body?(C(),me("div",{key:1,"data-slot":"body",class:Y(y.value.body({class:n.ui?.body}))},[H(o.$slots,"body")],2)):M("",!0),a.footer?(C(),me("div",{key:2,"data-slot":"footer",class:Y(y.value.footer({class:n.ui?.footer}))},[H(o.$slots,"footer")],2)):M("",!0)],2)])]),_:3},16,["class"])]),_:3},16)]),_:3},16))}};export{et as _};
1
+ import{a as le,aR as ua,S as F,T as N,C as w,e as S,c as U,y as ge,U as W,a4 as H,al as da,aV as ca,G as me,ab as He,ay as ze,X as Le,ao as We,aP as va,h as fa,f as ee,q as Ue,b6 as pa,a2 as ma,k as je,P as ha,az as ya,aA as ga,aB as Oe,am as ke,a9 as M,V as Re,W as X,aE as Ee,aF as Ce,aC as wa,aD as ba,aa as ce,ae as ve,au as $a}from"./D6tVZcRs.js";import{d as Sa,D as xa,a as Ne,b as Ae}from"./BNJJSRKh.js";import{b as Da,D as Ta,a as Ba}from"./DB2zZev7.js";(function(){var e;try{if(typeof document<"u"){var t=document.createElement("style");t.nonce=(e=document.head.querySelector("meta[property=csp-nonce]"))==null?void 0:e.content,t.appendChild(document.createTextNode('[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32,.72,0,1);animation-duration:.5s;animation-timing-function:cubic-bezier(.32,.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform, 100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform, 100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform, 100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform, 100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top],[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height, 0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left],[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height, 0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(.32,.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32,.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true]):after{content:"";position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]:after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]:after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]:after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]:after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not([data-state=closed]){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:hover,[data-vaul-handle]:active{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover: hover) and (pointer: fine){[data-vaul-drawer]{-webkit-user-select:none;user-select:none}}@media (pointer: fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{0%{transform:translate3d(0,var(--initial-transform, 100%),0)}to{transform:translateZ(0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform, 100%),0)}}@keyframes slideFromTop{0%{transform:translate3d(0,calc(var(--initial-transform, 100%) * -1),0)}to{transform:translateZ(0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform, 100%) * -1),0)}}@keyframes slideFromLeft{0%{transform:translate3d(calc(var(--initial-transform, 100%) * -1),0,0)}to{transform:translateZ(0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform, 100%) * -1),0,0)}}@keyframes slideFromRight{0%{transform:translate3d(var(--initial-transform, 100%),0,0)}to{transform:translateZ(0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform, 100%),0,0)}}')),document.head.appendChild(t)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}})();const Pa=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Oa=e=>typeof e<"u";function ka(e){return JSON.parse(JSON.stringify(e))}function qe(e,t,n,s={}){var a,h,d;const{clone:c=!1,passive:$=!1,eventName:T,deep:y=!1,defaultValue:o,shouldEmit:l}=s,g=fa(),m=n||g?.emit||((a=g?.$emit)==null?void 0:a.bind(g))||((d=(h=g?.proxy)==null?void 0:h.$emit)==null?void 0:d.bind(g?.proxy));let v=T;t||(t="modelValue"),v=v||`update:${t.toString()}`;const z=r=>c?typeof c=="function"?c(r):ka(r):r,q=()=>Oa(e[t])?z(e[t]):o,p=r=>{l?l(r)&&m(v,r):m(v,r)};if($){const r=q(),u=S(r);let f=!1;return ee(()=>e[t],x=>{f||(f=!0,u.value=z(x),je(()=>f=!1))}),ee(u,x=>{!f&&(x!==e[t]||y)&&p(x)},{deep:y}),u}else return U({get(){return q()},set(r){p(r)}})}const[oe,Ra]=ua("DrawerRoot"),Me=new WeakMap;function E(e,t,n=!1){if(!e||!(e instanceof HTMLElement)||!t)return;const s={};Object.entries(t).forEach(([a,h])=>{if(a.startsWith("--")){e.style.setProperty(a,h);return}s[a]=e.style[a],e.style[a]=h}),!n&&Me.set(e,s)}function Ea(e,t){if(!e||!(e instanceof HTMLElement))return;const n=Me.get(e);n&&Object.entries(n).forEach(([s,a])=>{e.style[s]=a})}function fe(e,t){const n=window.getComputedStyle(e),s=n.transform||n.webkitTransform||n.mozTransform;let a=s.match(/^matrix3d\((.+)\)$/);return a?Number.parseFloat(a[1].split(", ")[k(t)?13:12]):(a=s.match(/^matrix\((.+)\)$/),a?Number.parseFloat(a[1].split(", ")[k(t)?5:4]):null)}function Ca(e){return 8*(Math.log(e+1)-2)}function k(e){switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}}function ye(e,t){if(!e)return()=>{};const n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}function Na(...e){return(...t)=>{for(const n of e)typeof n=="function"&&n(...t)}}const P={DURATION:.5,EASE:[.32,.72,0,1]},Ve=.4,Aa=.25,qa=100,Xe=8,pe=16,Ye=26,Ie="vaul-dragging";function Ia({activeSnapPoint:e,snapPoints:t,drawerRef:n,overlayRef:s,fadeFromIndex:a,onSnapPointChange:h,direction:d}){const c=S(typeof window<"u"?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);function $(){c.value={innerWidth:window.innerWidth,innerHeight:window.innerHeight}}Ue(()=>{typeof window<"u"&&window.addEventListener("resize",$)}),pa(()=>{typeof window<"u"&&window.removeEventListener("resize",$)});const T=U(()=>(t.value&&e.value===t.value[t.value.length-1])??null),y=U(()=>t.value&&t.value.length>0&&(a?.value||a?.value===0)&&!Number.isNaN(a?.value)&&t.value[a?.value??-1]===e.value||!t.value),o=U(()=>{var p;return((p=t.value)==null?void 0:p.findIndex(r=>r===e.value))??null}),l=U(()=>{var p;return((p=t.value)==null?void 0:p.map(r=>{const u=typeof r=="string";let f=0;if(u&&(f=Number.parseInt(r,10)),k(d.value)){const D=u?f:c.value?r*c.value.innerHeight:0;return c.value?d.value==="bottom"?c.value.innerHeight-D:-c.value.innerHeight+D:D}const x=u?f:c.value?r*c.value.innerWidth:0;return c.value?d.value==="right"?c.value.innerWidth-x:-c.value.innerWidth+x:x}))??[]}),g=U(()=>{var p;return o.value!==null?(p=l.value)==null?void 0:p[o.value]:null}),m=p=>{var r,u,f,x;const D=((r=l.value)==null?void 0:r.findIndex(L=>L===p))??null;je(()=>{var L;h(D,l.value),E((L=n.value)==null?void 0:L.$el,{transition:`transform ${P.DURATION}s cubic-bezier(${P.EASE.join(",")})`,transform:k(d.value)?`translate3d(0, ${p}px, 0)`:`translate3d(${p}px, 0, 0)`})}),l.value&&D!==l.value.length-1&&D!==a?.value?E((u=s.value)==null?void 0:u.$el,{transition:`opacity ${P.DURATION}s cubic-bezier(${P.EASE.join(",")})`,opacity:"0"}):E((f=s.value)==null?void 0:f.$el,{transition:`opacity ${P.DURATION}s cubic-bezier(${P.EASE.join(",")})`,opacity:"1"}),e.value=D!==null?((x=t.value)==null?void 0:x[D])??null:null};ee([e,l,t],()=>{var p;if(e.value){const r=((p=t.value)==null?void 0:p.findIndex(u=>u===e.value))??-1;l.value&&r!==-1&&typeof l.value[r]=="number"&&m(l.value[r])}},{immediate:!0});function v({draggedDistance:p,closeDrawer:r,velocity:u,dismissible:f}){var x,D,L;if(a.value===void 0)return;const G=d.value==="bottom"||d.value==="right"?(g.value??0)-p:(g.value??0)+p,re=o.value===a.value-1,K=o.value===0,Y=p>0;if(re&&E((x=s.value)==null?void 0:x.$el,{transition:`opacity ${P.DURATION}s cubic-bezier(${P.EASE.join(",")})`}),u>2&&!Y){f?r():m(l.value[0]);return}if(u>2&&Y&&l&&t.value){m(l.value[t.value.length-1]);return}const ae=(D=l.value)==null?void 0:D.reduce((V,b)=>typeof V!="number"||typeof b!="number"?V:Math.abs(b-G)<Math.abs(V-G)?b:V),J=k(d.value)?window.innerHeight:window.innerWidth;if(u>Ve&&Math.abs(p)<J*.4){const V=Y?1:-1;if(V>0&&T){m(l.value[(((L=t.value)==null?void 0:L.length)??0)-1]);return}if(K&&V<0&&f&&r(),o.value===null)return;m(l.value[o.value+V]);return}m(ae)}function z({draggedDistance:p}){var r;if(g.value===null)return;const u=d.value==="bottom"||d.value==="right"?g.value-p:g.value+p;(d.value==="bottom"||d.value==="right")&&u<l.value[l.value.length-1]||(d.value==="top"||d.value==="left")&&u>l.value[l.value.length-1]||E((r=n.value)==null?void 0:r.$el,{transform:k(d.value)?`translate3d(0, ${u}px, 0)`:`translate3d(${u}px, 0, 0)`})}function q(p,r){if(!t.value||typeof o.value!="number"||!l.value||a.value===void 0)return null;const u=o.value===a.value-1;if(o.value>=a.value&&r)return 0;if(u&&!r)return 1;if(!y.value&&!u)return null;const f=u?o.value+1:o.value-1,x=u?l.value[f]-l.value[f-1]:l.value[f+1]-l.value[f],D=p/Math.abs(x);return u?1-D:D}return{isLastSnapPoint:T,shouldFade:y,getPercentageDragged:q,activeSnapPointIndex:o,onRelease:v,onDrag:z,snapPointsOffset:l}}function Fe(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}let ne=null;function Fa(e){const{isOpen:t,modal:n,nested:s,hasBeenOpened:a,preventScrollRestoration:h,noBodyStyles:d}=e,c=S(typeof window<"u"?window.location.href:""),$=S(0);function T(){if(Fe()&&ne===null&&t.value&&!d.value){ne={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height};const{scrollX:o,innerHeight:l}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:`${-$.value}px`,left:`${-o}px`,right:"0px",height:"auto"}),setTimeout(()=>{requestAnimationFrame(()=>{const g=l-window.innerHeight;g&&$.value>=l&&(document.body.style.top=`-${$.value+g}px`)})},300)}}function y(){if(Fe()&&ne!==null&&!d.value){const o=-Number.parseInt(document.body.style.top,10),l=-Number.parseInt(document.body.style.left,10);Object.assign(document.body.style,ne),window.requestAnimationFrame(()=>{if(h.value&&c.value!==window.location.href){c.value=window.location.href;return}window.scrollTo(l,o)}),ne=null}}return Ue(()=>{function o(){$.value=window.scrollY}o(),window.addEventListener("scroll",o),ma(()=>{window.removeEventListener("scroll",o)})}),ee([t,a,c],()=>{s.value||!a.value||(t.value?(window.matchMedia("(display-mode: standalone)").matches||T(),n.value||setTimeout(()=>{y()},500)):y())}),{restorePositionSetting:y}}function Ha(e,t){return e&&e.value?e:t}function za(e){const{emitDrag:t,emitRelease:n,emitClose:s,emitOpenChange:a,open:h,dismissible:d,nested:c,modal:$,shouldScaleBackground:T,setBackgroundColorOnScale:y,scrollLockTimeout:o,closeThreshold:l,activeSnapPoint:g,fadeFromIndex:m,direction:v,noBodyStyles:z,handleOnly:q,preventScrollRestoration:p}=e,r=S(h.value??!1),u=S(!1),f=S(!1),x=S(!1),D=S(null),L=S(null),G=S(null),re=S(null),K=S(null),Y=S(!1),ae=S(null),J=S(0),V=S(!1);S(0);const b=S(null);S(0);const we=U(()=>{var i;return((i=b.value)==null?void 0:i.$el.getBoundingClientRect().height)||0}),I=Ha(e.snapPoints,S(void 0)),Ze=U(()=>{var i;return I&&(((i=I.value)==null?void 0:i.length)??0)>0}),_e=S(null),{activeSnapPointIndex:be,onRelease:Ke,snapPointsOffset:Je,onDrag:Qe,shouldFade:$e,getPercentageDragged:ea}=Ia({snapPoints:I,activeSnapPoint:g,drawerRef:b,fadeFromIndex:m,overlayRef:D,onSnapPointChange:aa,direction:v});function aa(i,O){I.value&&i===O.length-1&&(L.value=new Date)}Fa({isOpen:r,modal:$,nested:c,hasBeenOpened:u,noBodyStyles:z,preventScrollRestoration:p});function ie(){return(window.innerWidth-Ye)/window.innerWidth}function Se(i,O){var R;if(!i)return!1;let B=i;const C=(R=window.getSelection())==null?void 0:R.toString(),A=b.value?fe(b.value.$el,v.value):null,j=new Date;if(B.hasAttribute("data-vaul-no-drag")||B.closest("[data-vaul-no-drag]"))return!1;if(v.value==="right"||v.value==="left")return!0;if(L.value&&j.getTime()-L.value.getTime()<500)return!1;if(A!==null&&(v.value==="bottom"?A>0:A<0))return!0;if(C&&C.length>0)return!1;if(K.value&&j.getTime()-K.value.getTime()<o.value&&A===0||O)return K.value=j,!1;for(;B;){if(B.scrollHeight>B.clientHeight){if(B.scrollTop!==0)return K.value=new Date,!1;if(B.getAttribute("role")==="dialog")return!0}B=B.parentNode}return!0}function ta(i){!d.value&&!I.value||b.value&&!b.value.$el.contains(i.target)||(f.value=!0,G.value=new Date,i.target.setPointerCapture(i.pointerId),J.value=k(v.value)?i.clientY:i.clientX)}function na(i){var O,R,B,C,A,j;if(b.value&&f.value){const Q=v.value==="bottom"||v.value==="right"?1:-1,se=(J.value-(k(v.value)?i.clientY:i.clientX))*Q,ue=se>0,De=I.value&&!d.value&&!ue;if(De&&be.value===0)return;const he=Math.abs(se),Te=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");let Z=he/we.value;const Be=ea(he,ue);if(Be!==null&&(Z=Be),De&&Z>=1||!Y.value&&!Se(i.target,ue))return;if((O=b?.value)==null||O.$el.classList.add(Ie),Y.value=!0,E((R=b.value)==null?void 0:R.$el,{transition:"none"}),E((B=D.value)==null?void 0:B.$el,{transition:"none"}),I.value&&Qe({draggedDistance:se}),ue&&!I.value){const _=Ca(se),de=Math.min(_*-1,0)*Q;E((C=b.value)==null?void 0:C.$el,{transform:k(v.value)?`translate3d(0, ${de}px, 0)`:`translate3d(${de}px, 0, 0)`});return}const sa=1-Z;if(($e.value||m.value&&be.value===m.value-1)&&(t(Z),E((A=D.value)==null?void 0:A.$el,{opacity:`${sa}`,transition:"none"},!0)),Te&&D.value&&T.value){const _=Math.min(ie()+Z*(1-ie()),1),de=8-Z*8,Pe=Math.max(0,14-Z*14);E(Te,{borderRadius:`${de}px`,transform:k(v.value)?`scale(${_}) translate3d(0, ${Pe}px, 0)`:`scale(${_}) translate3d(${Pe}px, 0, 0)`,transition:"none"},!0)}if(!I.value){const _=he*Q;E((j=b.value)==null?void 0:j.$el,{transform:k(v.value)?`translate3d(0, ${_}px, 0)`:`translate3d(${_}px, 0, 0)`})}}}function xe(){var i;if(!b.value)return;const O=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]"),R=fe(b.value.$el,v.value);E(b.value.$el,{transform:"translate3d(0, 0, 0)",transition:`transform ${P.DURATION}s cubic-bezier(${P.EASE.join(",")})`}),E((i=D.value)==null?void 0:i.$el,{transition:`opacity ${P.DURATION}s cubic-bezier(${P.EASE.join(",")})`,opacity:"1"}),T.value&&R&&R>0&&r.value&&E(O,{borderRadius:`${Xe}px`,overflow:"hidden",...k(v.value)?{transform:`scale(${ie()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${ie()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${P.DURATION}s`,transitionTimingFunction:`cubic-bezier(${P.EASE.join(",")})`},!0)}function te(i){b.value&&(s(),i||(r.value=!1),window.setTimeout(()=>{I.value&&(g.value=I.value[0])},P.DURATION*1e3))}ge(()=>{if(!r.value&&T.value&&Pa){const i=setTimeout(()=>{Ea(document.body)},200);return()=>clearTimeout(i)}}),ee(h,()=>{r.value=h.value,h.value||te()});function la(i){if(!f.value||!b.value)return;b.value.$el.classList.remove(Ie),Y.value=!1,f.value=!1,re.value=new Date;const O=fe(b.value.$el,v.value);if(!Se(i.target,!1)||!O||Number.isNaN(O)||G.value===null)return;const R=re.value.getTime()-G.value.getTime(),B=J.value-(k(v.value)?i.clientY:i.clientX),C=Math.abs(B)/R;if(C>.05&&(x.value=!0,window.setTimeout(()=>{x.value=!1},200)),I.value){const j=v.value==="bottom"||v.value==="right"?1:-1;Ke({draggedDistance:B*j,closeDrawer:te,velocity:C,dismissible:d.value}),n(!0);return}if(v.value==="bottom"||v.value==="right"?B>0:B<0){xe(),n(!0);return}if(C>Ve){te(),n(!1);return}const A=Math.min(b.value.$el.getBoundingClientRect().height??0,window.innerHeight);if(O>=A*l.value){te(),n(!1);return}n(!0),xe()}ee(r,i=>{i&&(L.value=new Date),a(i)},{immediate:!0});function oa(i){var O,R;const B=i?(window.innerWidth-pe)/window.innerWidth:1,C=i?-16:0;ae.value&&window.clearTimeout(ae.value),E((O=b.value)==null?void 0:O.$el,{transition:`transform ${P.DURATION}s cubic-bezier(${P.EASE.join(",")})`,transform:`scale(${B}) translate3d(0, ${C}px, 0)`}),!i&&(R=b.value)!=null&&R.$el&&(ae.value=window.setTimeout(()=>{var A,j;const Q=fe((A=b.value)==null?void 0:A.$el,v.value);E((j=b.value)==null?void 0:j.$el,{transition:"none",transform:k(v.value)?`translate3d(0, ${Q}px, 0)`:`translate3d(${Q}px, 0, 0)`})},500))}function ra(i){var O;if(i<0)return;const R=k(v.value)?window.innerHeight:window.innerWidth,B=(R-pe)/R,C=B+i*(1-B),A=-16+i*pe;E((O=b.value)==null?void 0:O.$el,{transform:k(v.value)?`scale(${C}) translate3d(0, ${A}px, 0)`:`scale(${C}) translate3d(${A}px, 0, 0)`,transition:"none"})}function ia(i){var O;const R=k(v.value)?window.innerHeight:window.innerWidth,B=i?(R-pe)/R:1,C=i?-16:0;i&&E((O=b.value)==null?void 0:O.$el,{transition:`transform ${P.DURATION}s cubic-bezier(${P.EASE.join(",")})`,transform:k(v.value)?`scale(${B}) translate3d(0, ${C}px, 0)`:`scale(${B}) translate3d(${C}px, 0, 0)`})}return{open:h,isOpen:r,modal:$,keyboardIsOpen:V,hasBeenOpened:u,drawerRef:b,drawerHeightRef:we,overlayRef:D,handleRef:_e,isDragging:f,dragStartTime:G,isAllowedToDrag:Y,snapPoints:I,activeSnapPoint:g,hasSnapPoints:Ze,pointerStart:J,dismissible:d,snapPointsOffset:Je,direction:v,shouldFade:$e,fadeFromIndex:m,shouldScaleBackground:T,setBackgroundColorOnScale:y,onPress:ta,onDrag:na,onRelease:la,closeDrawer:te,onNestedDrag:ra,onNestedRelease:ia,onNestedOpenChange:oa,emitClose:s,emitDrag:t,emitRelease:n,emitOpenChange:a,nested:c,handleOnly:q,noBodyStyles:z}}const Ge=le({__name:"DrawerRoot",props:{activeSnapPoint:{default:void 0},closeThreshold:{default:Aa},shouldScaleBackground:{type:Boolean,default:void 0},setBackgroundColorOnScale:{type:Boolean,default:!0},scrollLockTimeout:{default:qa},fixed:{type:Boolean,default:void 0},dismissible:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},nested:{type:Boolean,default:!1},direction:{default:"bottom"},noBodyStyles:{type:Boolean},handleOnly:{type:Boolean,default:!1},preventScrollRestoration:{type:Boolean},snapPoints:{default:void 0},fadeFromIndex:{default:void 0}},emits:["drag","release","close","update:open","update:activeSnapPoint","animationEnd"],setup(e,{expose:t,emit:n}){const s=e,a=n;We();const h=U(()=>s.fadeFromIndex??(s.snapPoints&&s.snapPoints.length-1)),d=qe(s,"open",a,{defaultValue:s.defaultOpen,passive:s.open===void 0}),c=qe(s,"activeSnapPoint",a,{passive:s.activeSnapPoint===void 0}),$={emitDrag:m=>a("drag",m),emitRelease:m=>a("release",m),emitClose:()=>a("close"),emitOpenChange:m=>{a("update:open",m),setTimeout(()=>{a("animationEnd",m)},P.DURATION*1e3)}},{closeDrawer:T,hasBeenOpened:y,modal:o,isOpen:l}=Ra(za({...$,...va(s),activeSnapPoint:c,fadeFromIndex:h,open:d}));function g(m){if(d.value!==void 0){$.emitOpenChange(m);return}l.value=m,m?y.value=!0:T()}return t({open:l}),(m,v)=>(N(),F(w(Da),{open:w(l),modal:w(o),"onUpdate:open":g},{default:W(()=>[H(m.$slots,"default",{open:w(l)})]),_:3},8,["open","modal"]))}}),La=le({__name:"DrawerRootNested",props:{activeSnapPoint:{},closeThreshold:{},shouldScaleBackground:{type:Boolean},setBackgroundColorOnScale:{type:Boolean},scrollLockTimeout:{},fixed:{type:Boolean},dismissible:{type:Boolean},modal:{type:Boolean},open:{type:Boolean},defaultOpen:{type:Boolean},nested:{type:Boolean},direction:{},noBodyStyles:{type:Boolean},handleOnly:{type:Boolean},preventScrollRestoration:{type:Boolean},snapPoints:{},fadeFromIndex:{}},emits:["drag","release","close","update:open","update:activeSnapPoint","animationEnd"],setup(e,{emit:t}){const n=e,s=t,{onNestedDrag:a,onNestedOpenChange:h,onNestedRelease:d}=oe();function c(){h(!1)}function $(o){a(o)}function T(o){o&&h(o),s("update:open",o)}const y=ze(n,s);return(o,l)=>(N(),F(Ge,Le(w(y),{nested:"",onClose:c,onDrag:$,onRelease:w(d),"onUpdate:open":T}),{default:W(()=>[H(o.$slots,"default")]),_:3},16,["onRelease"]))}}),Wa=le({__name:"DrawerOverlay",setup(e){const{overlayRef:t,hasSnapPoints:n,isOpen:s,shouldFade:a}=oe();return(h,d)=>(N(),F(w(Sa),{ref_key:"overlayRef",ref:t,"data-vaul-overlay":"","data-vaul-snap-points":w(s)&&w(n)?"true":"false","data-vaul-snap-points-overlay":w(s)&&w(a)?"true":"false"},null,8,["data-vaul-snap-points","data-vaul-snap-points-overlay"]))}}),Ua=()=>()=>{};function ja(){const{direction:e,isOpen:t,shouldScaleBackground:n,setBackgroundColorOnScale:s,noBodyStyles:a}=oe(),h=S(null),d=S(document.body.style.backgroundColor);function c(){return(window.innerWidth-Ye)/window.innerWidth}ge($=>{if(t.value&&n.value){h.value&&clearTimeout(h.value);const T=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!T)return;Na(s.value&&!a.value?ye(document.body,{background:"black"}):Ua,ye(T,{transformOrigin:k(e.value)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${P.DURATION}s`,transitionTimingFunction:`cubic-bezier(${P.EASE.join(",")})`}));const y=ye(T,{borderRadius:`${Xe}px`,overflow:"hidden",...k(e.value)?{transform:`scale(${c()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${c()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});$(()=>{y(),h.value=window.setTimeout(()=>{d.value?document.body.style.background=d.value:document.body.style.removeProperty("background")},P.DURATION*1e3)})}},{flush:"pre"})}const Ma=le({__name:"DrawerContent",setup(e){const{open:t,isOpen:n,snapPointsOffset:s,hasSnapPoints:a,drawerRef:h,onPress:d,onDrag:c,onRelease:$,modal:T,emitOpenChange:y,dismissible:o,keyboardIsOpen:l,closeDrawer:g,direction:m,handleOnly:v}=oe();ja();const z=S(!1),q=U(()=>s.value&&s.value.length>0?`${s.value[0]}px`:"0");function p(f){if(!T.value||f.defaultPrevented){f.preventDefault();return}l.value&&(l.value=!1),o.value?y(!1):f.preventDefault()}function r(f){v.value||d(f)}function u(f){v.value||c(f)}return ge(()=>{a.value&&window.requestAnimationFrame(()=>{z.value=!0})}),(f,x)=>(N(),F(w(xa),{ref_key:"drawerRef",ref:h,"data-vaul-drawer":"","data-vaul-drawer-direction":w(m),"data-vaul-delayed-snap-points":z.value?"true":"false","data-vaul-snap-points":w(n)&&w(a)?"true":"false",style:ca({"--snap-point-height":q.value}),onPointerdown:r,onPointermove:u,onPointerup:w($),onPointerDownOutside:p,onOpenAutoFocus:x[0]||(x[0]=da(()=>{},["prevent"])),onEscapeKeyDown:x[1]||(x[1]=D=>{w(o)||D.preventDefault()})},{default:W(()=>[H(f.$slots,"default")]),_:3},8,["data-vaul-drawer-direction","data-vaul-delayed-snap-points","data-vaul-snap-points","style","onPointerup"]))}}),Va=["data-vaul-drawer-visible"],Xa={"data-vaul-handle-hitarea":"","aria-hidden":"true"},Ya=250,Ga=120,Za=le({__name:"DrawerHandle",props:{preventCycle:{type:Boolean,default:!1}},setup(e){const t=e,{onPress:n,onDrag:s,handleRef:a,handleOnly:h,isOpen:d,snapPoints:c,activeSnapPoint:$,isDragging:T,dismissible:y,closeDrawer:o}=oe(),l=S(null),g=S(!1);function m(){if(g.value){q();return}window.setTimeout(()=>{v()},Ga)}function v(){if(T.value||t.preventCycle||g.value){q();return}if(q(),!c.value||c.value.length===0){y.value||o();return}const u=$.value===c.value[c.value.length-1];if(u&&y.value){o();return}const f=c.value.findIndex(D=>D===$.value);if(f===-1)return;const x=u?0:f+1;$.value=c.value[x]}function z(){l.value=window.setTimeout(()=>{g.value=!0},Ya)}function q(){l.value&&window.clearTimeout(l.value),g.value=!1}function p(u){h.value&&n(u),z()}function r(u){h.value&&s(u)}return(u,f)=>(N(),me("div",{ref_key:"handleRef",ref:a,"data-vaul-drawer-visible":w(d)?"true":"false","data-vaul-handle":"","aria-hidden":"true",onClick:m,onPointercancel:q,onPointerdown:p,onPointermove:r},[He("span",Xa,[H(u.$slots,"default")])],40,Va))}}),_a={slots:{overlay:"fixed inset-0 bg-elevated/75",content:"fixed bg-default ring ring-default flex focus:outline-none",handle:["shrink-0 !bg-accented","transition-opacity"],container:"w-full flex flex-col gap-4 p-4 overflow-y-auto",header:"",title:"text-highlighted font-semibold",description:"mt-1 text-muted text-sm",body:"flex-1",footer:"flex flex-col gap-1.5"},variants:{direction:{top:{content:"mb-24 flex-col-reverse",handle:"mb-4"},right:{content:"flex-row",handle:"!ml-4"},bottom:{content:"mt-24 flex-col",handle:"mt-4"},left:{content:"flex-row-reverse",handle:"!mr-4"}},inset:{true:{content:"rounded-lg after:hidden overflow-hidden [--initial-transform:calc(100%+1.5rem)]"}},snapPoints:{true:""}},compoundVariants:[{direction:["top","bottom"],class:{content:"h-auto max-h-[96%]",handle:"!w-12 !h-1.5 mx-auto"}},{direction:["top","bottom"],snapPoints:!0,class:{content:"h-full"}},{direction:["right","left"],class:{content:"w-auto max-w-[calc(100%-2rem)]",handle:"!h-12 !w-1.5 mt-auto mb-auto"}},{direction:["right","left"],snapPoints:!0,class:{content:"w-full"}},{direction:"top",inset:!0,class:{content:"inset-x-4 top-4"}},{direction:"top",inset:!1,class:{content:"inset-x-0 top-0 rounded-b-lg"}},{direction:"bottom",inset:!0,class:{content:"inset-x-4 bottom-4"}},{direction:"bottom",inset:!1,class:{content:"inset-x-0 bottom-0 rounded-t-lg"}},{direction:"left",inset:!0,class:{content:"inset-y-4 left-4"}},{direction:"left",inset:!1,class:{content:"inset-y-0 left-0 rounded-r-lg"}},{direction:"right",inset:!0,class:{content:"inset-y-4 right-4"}},{direction:"right",inset:!1,class:{content:"inset-y-0 right-0 rounded-l-lg"}}]},et={__name:"UDrawer",props:{as:{type:null,required:!1},title:{type:String,required:!1},description:{type:String,required:!1},inset:{type:Boolean,required:!1},content:{type:Object,required:!1},overlay:{type:Boolean,required:!1,default:!0},handle:{type:Boolean,required:!1,default:!0},portal:{type:[Boolean,String],required:!1,skipCheck:!0,default:!0},nested:{type:Boolean,required:!1},class:{type:null,required:!1},ui:{type:null,required:!1},activeSnapPoint:{type:[Number,String,null],required:!1},closeThreshold:{type:Number,required:!1},shouldScaleBackground:{type:Boolean,required:!1},setBackgroundColorOnScale:{type:Boolean,required:!1},scrollLockTimeout:{type:Number,required:!1},fixed:{type:Boolean,required:!1},dismissible:{type:Boolean,required:!1,default:!0},modal:{type:Boolean,required:!1,default:!0},open:{type:Boolean,required:!1},defaultOpen:{type:Boolean,required:!1},direction:{type:String,required:!1,default:"bottom"},noBodyStyles:{type:Boolean,required:!1},handleOnly:{type:Boolean,required:!1},preventScrollRestoration:{type:Boolean,required:!1},snapPoints:{type:Array,required:!1}},emits:["close:prevent","drag","release","close","update:open","update:activeSnapPoint","animationEnd"],setup(e,{emit:t}){const n=e,s=t,a=We(),h=ha(),d=ze(ya(n,"activeSnapPoint","closeThreshold","shouldScaleBackground","setBackgroundColorOnScale","scrollLockTimeout","fixed","dismissible","modal","open","defaultOpen","nested","direction","noBodyStyles","handleOnly","preventScrollRestoration","snapPoints"),s),c=ga(Oe(()=>n.portal)),$=Oe(()=>n.content),T=U(()=>n.dismissible?{}:["pointerDownOutside","interactOutside","escapeKeyDown"].reduce((l,g)=>(l[g]=m=>{m.preventDefault(),s("close:prevent")},l),{})),y=U(()=>ke({extend:ke(_a),...h.ui?.drawer||{}})({direction:n.direction,inset:n.inset,snapPoints:n.snapPoints&&n.snapPoints.length>0}));return(o,l)=>(N(),F($a(e.nested?w(La):w(Ge)),Ee(Ce(w(d))),{default:W(()=>[a.default?(N(),F(w(Ta),{key:0,"as-child":"",class:X(n.class)},{default:W(()=>[H(o.$slots,"default")]),_:3},8,["class"])):M("",!0),Re(w(Ba),Ee(Ce(w(c))),{default:W(()=>[e.overlay?(N(),F(w(Wa),{key:0,"data-slot":"overlay",class:X(y.value.overlay({class:n.ui?.overlay}))},null,8,["class"])):M("",!0),Re(w(Ma),Le({"data-slot":"content",class:y.value.content({class:[!a.default&&n.class,n.ui?.content]})},$.value,wa(T.value)),{default:W(()=>[e.handle?(N(),F(w(Za),{key:0,"data-slot":"handle",class:X(y.value.handle({class:n.ui?.handle}))},null,8,["class"])):M("",!0),a.content&&(e.title||a.title||e.description||a.description)?(N(),F(w(ba),{key:1},{default:W(()=>[e.title||a.title?(N(),F(w(Ne),{key:0},{default:W(()=>[H(o.$slots,"title",{},()=>[ce(ve(e.title),1)])]),_:3})):M("",!0),e.description||a.description?(N(),F(w(Ae),{key:1},{default:W(()=>[H(o.$slots,"description",{},()=>[ce(ve(e.description),1)])]),_:3})):M("",!0)]),_:3})):M("",!0),H(o.$slots,"content",{},()=>[He("div",{"data-slot":"container",class:X(y.value.container({class:n.ui?.container}))},[a.header||e.title||a.title||e.description||a.description?(N(),me("div",{key:0,"data-slot":"header",class:X(y.value.header({class:n.ui?.header}))},[H(o.$slots,"header",{},()=>[e.title||a.title?(N(),F(w(Ne),{key:0,"data-slot":"title",class:X(y.value.title({class:n.ui?.title}))},{default:W(()=>[H(o.$slots,"title",{},()=>[ce(ve(e.title),1)])]),_:3},8,["class"])):M("",!0),e.description||a.description?(N(),F(w(Ae),{key:1,"data-slot":"description",class:X(y.value.description({class:n.ui?.description}))},{default:W(()=>[H(o.$slots,"description",{},()=>[ce(ve(e.description),1)])]),_:3},8,["class"])):M("",!0)])],2)):M("",!0),a.body?(N(),me("div",{key:1,"data-slot":"body",class:X(y.value.body({class:n.ui?.body}))},[H(o.$slots,"body")],2)):M("",!0),a.footer?(N(),me("div",{key:2,"data-slot":"footer",class:X(y.value.footer({class:n.ui?.footer}))},[H(o.$slots,"footer")],2)):M("",!0)],2)])]),_:3},16,["class"])]),_:3},16)]),_:3},16))}};export{et as _};
@@ -1 +1 @@
1
- import{ao as T,N as $,aJ as C,aI as _,c as N,am as p,e as P,Q as o,R as s,S as d,T as y,G as v,a9 as g,C as r,U as c,a4 as u,aj as x,ak as m,_ as K,ax as R,V as f,Y as z,aa as k,ae as S}from"./2dNDtTiv.js";import{a as j,T as E,c as F,d as H,b as L}from"./D0ifH682.js";import{_ as M}from"./JbHa4oXq.js";const O={slots:{root:"flex items-center gap-2",list:"relative flex p-1 group",indicator:"absolute transition-[translate,width] duration-200",trigger:["group relative inline-flex items-center min-w-0 data-[state=inactive]:text-muted hover:data-[state=inactive]:not-disabled:text-default font-medium rounded-md disabled:cursor-not-allowed disabled:opacity-75","transition-colors"],leadingIcon:"shrink-0",leadingAvatar:"shrink-0",leadingAvatarSize:"",label:"truncate",trailingBadge:"shrink-0",trailingBadgeSize:"sm",content:"focus:outline-none w-full"},variants:{color:{primary:"",secondary:"",success:"",info:"",warning:"",error:"",neutral:""},variant:{pill:{list:"bg-elevated rounded-lg",trigger:"grow",indicator:"rounded-md shadow-xs"},link:{list:"border-default",indicator:"rounded-full",trigger:"focus:outline-none"}},orientation:{horizontal:{root:"flex-col",list:"w-full",indicator:"left-0 w-(--reka-tabs-indicator-size) translate-x-(--reka-tabs-indicator-position)",trigger:"justify-center"},vertical:{list:"flex-col",indicator:"top-0 h-(--reka-tabs-indicator-size) translate-y-(--reka-tabs-indicator-position)"}},size:{xs:{trigger:"px-2 py-1 text-xs gap-1",leadingIcon:"size-4",leadingAvatarSize:"3xs"},sm:{trigger:"px-2.5 py-1.5 text-xs gap-1.5",leadingIcon:"size-4",leadingAvatarSize:"3xs"},md:{trigger:"px-3 py-1.5 text-sm gap-1.5",leadingIcon:"size-5",leadingAvatarSize:"2xs"},lg:{trigger:"px-3 py-2 text-sm gap-2",leadingIcon:"size-5",leadingAvatarSize:"2xs"},xl:{trigger:"px-3 py-2 text-base gap-2",leadingIcon:"size-6",leadingAvatarSize:"xs"}}},compoundVariants:[{orientation:"horizontal",variant:"pill",class:{indicator:"inset-y-1"}},{orientation:"horizontal",variant:"link",class:{list:"border-b -mb-px",indicator:"-bottom-px h-px"}},{orientation:"vertical",variant:"pill",class:{indicator:"inset-x-1",list:"items-center"}},{orientation:"vertical",variant:"link",class:{list:"border-s -ms-px",indicator:"-start-px w-px"}},{color:"primary",variant:"pill",class:{indicator:"bg-primary",trigger:"data-[state=active]:text-inverted focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary"}},{color:"secondary",variant:"pill",class:{indicator:"bg-secondary",trigger:"data-[state=active]:text-inverted focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-secondary"}},{color:"success",variant:"pill",class:{indicator:"bg-success",trigger:"data-[state=active]:text-inverted focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-success"}},{color:"info",variant:"pill",class:{indicator:"bg-info",trigger:"data-[state=active]:text-inverted focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-info"}},{color:"warning",variant:"pill",class:{indicator:"bg-warning",trigger:"data-[state=active]:text-inverted focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-warning"}},{color:"error",variant:"pill",class:{indicator:"bg-error",trigger:"data-[state=active]:text-inverted focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-error"}},{color:"neutral",variant:"pill",class:{indicator:"bg-inverted",trigger:"data-[state=active]:text-inverted focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-inverted"}},{color:"primary",variant:"link",class:{indicator:"bg-primary",trigger:"data-[state=active]:text-primary focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary"}},{color:"secondary",variant:"link",class:{indicator:"bg-secondary",trigger:"data-[state=active]:text-secondary focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-secondary"}},{color:"success",variant:"link",class:{indicator:"bg-success",trigger:"data-[state=active]:text-success focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-success"}},{color:"info",variant:"link",class:{indicator:"bg-info",trigger:"data-[state=active]:text-info focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-info"}},{color:"warning",variant:"link",class:{indicator:"bg-warning",trigger:"data-[state=active]:text-warning focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-warning"}},{color:"error",variant:"link",class:{indicator:"bg-error",trigger:"data-[state=active]:text-error focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-error"}},{color:"neutral",variant:"link",class:{indicator:"bg-inverted",trigger:"data-[state=active]:text-highlighted focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-inverted"}}],defaultVariants:{color:"primary",variant:"pill",size:"md"}},Q={__name:"UTabs",props:{as:{type:null,required:!1},items:{type:Array,required:!1},color:{type:null,required:!1},variant:{type:null,required:!1},size:{type:null,required:!1},orientation:{type:null,required:!1,default:"horizontal"},content:{type:Boolean,required:!1,default:!0},labelKey:{type:null,required:!1,default:"label"},class:{type:null,required:!1},ui:{type:null,required:!1},defaultValue:{type:null,required:!1,default:"0"},modelValue:{type:null,required:!1},activationMode:{type:String,required:!1},unmountOnHide:{type:Boolean,required:!1,default:!0}},emits:["update:modelValue"],setup(l,{expose:w,emit:h}){const a=l,A=h,q=T(),B=$(),I=C(_(a,"as","unmountOnHide"),A),i=N(()=>p({extend:p(O),...B.ui?.tabs||{}})({color:a.color,variant:a.variant,size:a.size,orientation:a.orientation})),b=P([]);return w({triggersRef:b}),(n,U)=>(s(),o(r(L),f(r(I),{"model-value":l.modelValue,"default-value":l.defaultValue,orientation:l.orientation,"activation-mode":l.activationMode,"data-slot":"root",class:i.value.root({class:[a.ui?.root,a.class]})}),{default:d(()=>[y(r(j),{"data-slot":"list",class:c(i.value.list({class:a.ui?.list}))},{default:d(()=>[y(r(E),{"data-slot":"indicator",class:c(i.value.indicator({class:a.ui?.indicator}))},null,8,["class"]),u(n.$slots,"list-leading"),(s(!0),v(x,null,m(l.items,(e,t)=>(s(),o(r(F),{key:t,ref_for:!0,ref:V=>b.value[t]=V,value:e.value??String(t),disabled:e.disabled,"data-slot":"trigger",class:c(i.value.trigger({class:[a.ui?.trigger,e.ui?.trigger]}))},{default:d(()=>[u(n.$slots,"leading",{item:e,index:t,ui:i.value},()=>[e.icon?(s(),o(K,{key:0,name:e.icon,"data-slot":"leadingIcon",class:c(i.value.leadingIcon({class:[a.ui?.leadingIcon,e.ui?.leadingIcon]}))},null,8,["name","class"])):e.avatar?(s(),o(R,f({key:1,size:e.ui?.leadingAvatarSize||a.ui?.leadingAvatarSize||i.value.leadingAvatarSize()},{ref_for:!0},e.avatar,{"data-slot":"leadingAvatar",class:i.value.leadingAvatar({class:[a.ui?.leadingAvatar,e.ui?.leadingAvatar]})}),null,16,["size","class"])):g("",!0)]),r(z)(e,a.labelKey)||q.default?(s(),v("span",{key:0,"data-slot":"label",class:c(i.value.label({class:[a.ui?.label,e.ui?.label]}))},[u(n.$slots,"default",{item:e,index:t},()=>[k(S(r(z)(e,a.labelKey)),1)])],2)):g("",!0),u(n.$slots,"trailing",{item:e,index:t,ui:i.value},()=>[e.badge||e.badge===0?(s(),o(M,f({key:0,color:"neutral",variant:"outline",size:e.ui?.trailingBadgeSize||a.ui?.trailingBadgeSize||i.value.trailingBadgeSize()},{ref_for:!0},typeof e.badge=="string"||typeof e.badge=="number"?{label:e.badge}:e.badge,{"data-slot":"trailingBadge",class:i.value.trailingBadge({class:[a.ui?.trailingBadge,e.ui?.trailingBadge]})}),null,16,["size","class"])):g("",!0)])]),_:2},1032,["value","disabled","class"]))),128)),u(n.$slots,"list-trailing")]),_:3},8,["class"]),l.content?(s(!0),v(x,{key:0},m(l.items,(e,t)=>(s(),o(r(H),{key:t,value:e.value??String(t),"data-slot":"content",class:c(i.value.content({class:[a.ui?.content,e.ui?.content,e.class]}))},{default:d(()=>[u(n.$slots,e.slot||"content",{item:e,index:t,ui:i.value},()=>[k(S(e.content),1)])]),_:2},1032,["value","class"]))),128)):g("",!0)]),_:3},16,["model-value","default-value","orientation","activation-mode","class"]))}};export{Q as _};
1
+ import{ao as T,P as $,ay as C,az as _,c as P,am as p,e as K,S as o,T as s,U as d,V as y,G as v,a9 as g,C as r,W as c,a4 as u,aj as x,ak as m,_ as N,ax as j,X as f,Z as z,aa as k,ae as S}from"./D6tVZcRs.js";import{a as E,T as F,c as H,d as L,b as M}from"./CxRnB4NC.js";import{_ as O}from"./BnMTFF5R.js";const R={slots:{root:"flex items-center gap-2",list:"relative flex p-1 group",indicator:"absolute transition-[translate,width] duration-200",trigger:["group relative inline-flex items-center min-w-0 data-[state=inactive]:text-muted hover:data-[state=inactive]:not-disabled:text-default font-medium rounded-md disabled:cursor-not-allowed disabled:opacity-75","transition-colors"],leadingIcon:"shrink-0",leadingAvatar:"shrink-0",leadingAvatarSize:"",label:"truncate",trailingBadge:"shrink-0",trailingBadgeSize:"sm",content:"focus:outline-none w-full"},variants:{color:{primary:"",secondary:"",success:"",info:"",warning:"",error:"",neutral:""},variant:{pill:{list:"bg-elevated rounded-lg",trigger:"grow",indicator:"rounded-md shadow-xs"},link:{list:"border-default",indicator:"rounded-full",trigger:"focus:outline-none"}},orientation:{horizontal:{root:"flex-col",list:"w-full",indicator:"left-0 w-(--reka-tabs-indicator-size) translate-x-(--reka-tabs-indicator-position)",trigger:"justify-center"},vertical:{list:"flex-col",indicator:"top-0 h-(--reka-tabs-indicator-size) translate-y-(--reka-tabs-indicator-position)"}},size:{xs:{trigger:"px-2 py-1 text-xs gap-1",leadingIcon:"size-4",leadingAvatarSize:"3xs"},sm:{trigger:"px-2.5 py-1.5 text-xs gap-1.5",leadingIcon:"size-4",leadingAvatarSize:"3xs"},md:{trigger:"px-3 py-1.5 text-sm gap-1.5",leadingIcon:"size-5",leadingAvatarSize:"2xs"},lg:{trigger:"px-3 py-2 text-sm gap-2",leadingIcon:"size-5",leadingAvatarSize:"2xs"},xl:{trigger:"px-3 py-2 text-base gap-2",leadingIcon:"size-6",leadingAvatarSize:"xs"}}},compoundVariants:[{orientation:"horizontal",variant:"pill",class:{indicator:"inset-y-1"}},{orientation:"horizontal",variant:"link",class:{list:"border-b -mb-px",indicator:"-bottom-px h-px"}},{orientation:"vertical",variant:"pill",class:{indicator:"inset-x-1",list:"items-center"}},{orientation:"vertical",variant:"link",class:{list:"border-s -ms-px",indicator:"-start-px w-px"}},{color:"primary",variant:"pill",class:{indicator:"bg-primary",trigger:"data-[state=active]:text-inverted focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary"}},{color:"secondary",variant:"pill",class:{indicator:"bg-secondary",trigger:"data-[state=active]:text-inverted focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-secondary"}},{color:"success",variant:"pill",class:{indicator:"bg-success",trigger:"data-[state=active]:text-inverted focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-success"}},{color:"info",variant:"pill",class:{indicator:"bg-info",trigger:"data-[state=active]:text-inverted focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-info"}},{color:"warning",variant:"pill",class:{indicator:"bg-warning",trigger:"data-[state=active]:text-inverted focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-warning"}},{color:"error",variant:"pill",class:{indicator:"bg-error",trigger:"data-[state=active]:text-inverted focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-error"}},{color:"neutral",variant:"pill",class:{indicator:"bg-inverted",trigger:"data-[state=active]:text-inverted focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-inverted"}},{color:"primary",variant:"link",class:{indicator:"bg-primary",trigger:"data-[state=active]:text-primary focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary"}},{color:"secondary",variant:"link",class:{indicator:"bg-secondary",trigger:"data-[state=active]:text-secondary focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-secondary"}},{color:"success",variant:"link",class:{indicator:"bg-success",trigger:"data-[state=active]:text-success focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-success"}},{color:"info",variant:"link",class:{indicator:"bg-info",trigger:"data-[state=active]:text-info focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-info"}},{color:"warning",variant:"link",class:{indicator:"bg-warning",trigger:"data-[state=active]:text-warning focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-warning"}},{color:"error",variant:"link",class:{indicator:"bg-error",trigger:"data-[state=active]:text-error focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-error"}},{color:"neutral",variant:"link",class:{indicator:"bg-inverted",trigger:"data-[state=active]:text-highlighted focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-inverted"}}],defaultVariants:{color:"primary",variant:"pill",size:"md"}},X={__name:"UTabs",props:{as:{type:null,required:!1},items:{type:Array,required:!1},color:{type:null,required:!1},variant:{type:null,required:!1},size:{type:null,required:!1},orientation:{type:null,required:!1,default:"horizontal"},content:{type:Boolean,required:!1,default:!0},labelKey:{type:null,required:!1,default:"label"},class:{type:null,required:!1},ui:{type:null,required:!1},defaultValue:{type:null,required:!1,default:"0"},modelValue:{type:null,required:!1},activationMode:{type:String,required:!1},unmountOnHide:{type:Boolean,required:!1,default:!0}},emits:["update:modelValue"],setup(l,{expose:w,emit:h}){const a=l,A=h,q=T(),B=$(),I=C(_(a,"as","unmountOnHide"),A),i=P(()=>p({extend:p(R),...B.ui?.tabs||{}})({color:a.color,variant:a.variant,size:a.size,orientation:a.orientation})),b=K([]);return w({triggersRef:b}),(n,U)=>(s(),o(r(M),f(r(I),{"model-value":l.modelValue,"default-value":l.defaultValue,orientation:l.orientation,"activation-mode":l.activationMode,"data-slot":"root",class:i.value.root({class:[a.ui?.root,a.class]})}),{default:d(()=>[y(r(E),{"data-slot":"list",class:c(i.value.list({class:a.ui?.list}))},{default:d(()=>[y(r(F),{"data-slot":"indicator",class:c(i.value.indicator({class:a.ui?.indicator}))},null,8,["class"]),u(n.$slots,"list-leading"),(s(!0),v(x,null,m(l.items,(e,t)=>(s(),o(r(H),{key:t,ref_for:!0,ref:V=>b.value[t]=V,value:e.value??String(t),disabled:e.disabled,"data-slot":"trigger",class:c(i.value.trigger({class:[a.ui?.trigger,e.ui?.trigger]}))},{default:d(()=>[u(n.$slots,"leading",{item:e,index:t,ui:i.value},()=>[e.icon?(s(),o(N,{key:0,name:e.icon,"data-slot":"leadingIcon",class:c(i.value.leadingIcon({class:[a.ui?.leadingIcon,e.ui?.leadingIcon]}))},null,8,["name","class"])):e.avatar?(s(),o(j,f({key:1,size:e.ui?.leadingAvatarSize||a.ui?.leadingAvatarSize||i.value.leadingAvatarSize()},{ref_for:!0},e.avatar,{"data-slot":"leadingAvatar",class:i.value.leadingAvatar({class:[a.ui?.leadingAvatar,e.ui?.leadingAvatar]})}),null,16,["size","class"])):g("",!0)]),r(z)(e,a.labelKey)||q.default?(s(),v("span",{key:0,"data-slot":"label",class:c(i.value.label({class:[a.ui?.label,e.ui?.label]}))},[u(n.$slots,"default",{item:e,index:t},()=>[k(S(r(z)(e,a.labelKey)),1)])],2)):g("",!0),u(n.$slots,"trailing",{item:e,index:t,ui:i.value},()=>[e.badge||e.badge===0?(s(),o(O,f({key:0,color:"neutral",variant:"outline",size:e.ui?.trailingBadgeSize||a.ui?.trailingBadgeSize||i.value.trailingBadgeSize()},{ref_for:!0},typeof e.badge=="string"||typeof e.badge=="number"?{label:e.badge}:e.badge,{"data-slot":"trailingBadge",class:i.value.trailingBadge({class:[a.ui?.trailingBadge,e.ui?.trailingBadge]})}),null,16,["size","class"])):g("",!0)])]),_:2},1032,["value","disabled","class"]))),128)),u(n.$slots,"list-trailing")]),_:3},8,["class"]),l.content?(s(!0),v(x,{key:0},m(l.items,(e,t)=>(s(),o(r(L),{key:t,value:e.value??String(t),"data-slot":"content",class:c(i.value.content({class:[a.ui?.content,e.ui?.content,e.class]}))},{default:d(()=>[u(n.$slots,e.slot||"content",{item:e,index:t,ui:i.value},()=>[k(S(e.content),1)])]),_:2},1032,["value","class"]))),128)):g("",!0)]),_:3},16,["model-value","default-value","orientation","activation-mode","class"]))}};export{X as _};
@@ -1,4 +1,4 @@
1
- import{a as b,s as p,q as g,E as f,F as v,G as k,h as y,H as h,I as T,J as _,K as C}from"./2dNDtTiv.js";const O=Symbol.for("nuxt:client-only"),d="<div></div>",H=b({name:"ClientOnly",inheritAttrs:!1,props:["fallback","placeholder","placeholderTag","fallbackTag"],setup(t,{slots:n,attrs:s}){const u=p(!1);g(()=>{u.value=!0});const o=y();return o&&(o._nuxtClientOnly=!0),C(O,!0),()=>{if(u.value){const e=n.default?.();return e&&e.length===1?[f(e[0],s)]:e}const r=n.fallback||n.placeholder;if(r)return v(r);const l=t.fallback||t.placeholder||"",a=t.fallbackTag||t.placeholderTag||"span";return k(a,s,l)}}}),m=new WeakMap;function I(t){if(m.has(t))return m.get(t);const n={...t};return n.render?n.render=(s,u,o,r,l,a)=>{if(r.mounted$??s.mounted$){const e=t.render?.bind(s)(s,u,o,r,l,a);return e.children===null||typeof e.children=="string"?f(e):v(e)}return h(s._.vnode.el,d)}:n.template&&=`
1
+ import{a as b,s as p,q as g,E as f,F as v,G as k,h as y,H as h,I as T,J as _,K as C}from"./D6tVZcRs.js";const O=Symbol.for("nuxt:client-only"),d="<div></div>",H=b({name:"ClientOnly",inheritAttrs:!1,props:["fallback","placeholder","placeholderTag","fallbackTag"],setup(t,{slots:n,attrs:s}){const u=p(!1);g(()=>{u.value=!0});const o=y();return o&&(o._nuxtClientOnly=!0),C(O,!0),()=>{if(u.value){const e=n.default?.();return e&&e.length===1?[f(e[0],s)]:e}const r=n.fallback||n.placeholder;if(r)return v(r);const l=t.fallback||t.placeholder||"",a=t.fallbackTag||t.placeholderTag||"span";return k(a,s,l)}}}),m=new WeakMap;function I(t){if(m.has(t))return m.get(t);const n={...t};return n.render?n.render=(s,u,o,r,l,a)=>{if(r.mounted$??s.mounted$){const e=t.render?.bind(s)(s,u,o,r,l,a);return e.children===null||typeof e.children=="string"?f(e):v(e)}return h(s._.vnode.el,d)}:n.template&&=`
2
2
  <template v-if="mounted$">${t.template}</template>
3
3
  <template v-else>${d}</template>
4
4
  `,n.setup=(s,u)=>{const o=T(),r=p(o.isHydrating===!1),l=y();if(o.isHydrating){const e={...l.attrs},c=$(l);for(const i in e)delete l.attrs[i];g(()=>{Object.assign(l.attrs,e),l.vnode.dirs=c})}g(()=>{r.value=!0});const a=t.setup?.(s,u)||{};return _(a)?Promise.resolve(a).then(e=>typeof e!="function"?(e||={},e.mounted$=r,e):(...c)=>{if(r.value||!o.isHydrating){const i=e(...c);return i.children===null||typeof i.children=="string"?f(i):v(i)}return h(l?.vnode.el,d)}):typeof a=="function"?(...e)=>{if(r.value){const c=a(...e),i=n.inheritAttrs!==!1?u.attrs:void 0;return c.children===null||typeof c.children=="string"?f(c,i):v(c,i)}return h(l?.vnode.el,d)}:Object.assign(a,{mounted$:r})},m.set(t,n),n}function $(t){if(!t||!t.vnode.dirs)return null;const n=t.vnode.dirs;return t.vnode.dirs=null,n}export{H as _,O as a,I as c};
@@ -1 +1 @@
1
- import{_ as R,a as V}from"./CqNwHCpo.js";import{_ as C}from"./BmOtR1wX.js";import{a as k,G as l,R as n,a9 as w,aj as b,ak as $,ab as t,T as s,_ as U,ae as c,Q as h,S as d,af as S,aa as y,aV as B,W as D,e as N,q,C as f}from"./2dNDtTiv.js";import{_ as I}from"./JbHa4oXq.js";import{_ as z}from"./C2vq6Te8.js";import{f as O}from"./CWePHsZr.js";import{u as F}from"./BKXg-alD.js";import"./D5jZq8b3.js";import"./DhI5cA_n.js";import"./DEd2xVbS.js";import"./C8ut0f5H.js";const M={class:"grid gap-4 grid-cols-2 sm:grid-cols-3 lg:grid-cols-5"},A={class:"p-4 rounded-lg bg-elevated border border-default"},L={class:"flex items-center gap-2 text-muted text-sm mb-1"},P={class:"text-2xl font-semibold"},W={class:"p-4 rounded-lg bg-elevated border border-default"},H={class:"flex items-center gap-2 text-muted text-sm mb-1"},K={class:"text-2xl font-semibold"},E={class:"p-4 rounded-lg bg-elevated border border-default"},G={class:"flex items-center gap-2 text-muted text-sm mb-1"},Q={class:"text-2xl font-semibold"},J={class:"p-4 rounded-lg bg-elevated border border-default"},X={class:"flex items-center gap-2 text-muted text-sm mb-1"},Y={class:"text-2xl font-semibold"},Z={class:"p-4 rounded-lg bg-elevated border border-default"},tt={class:"flex items-center gap-2 text-muted text-sm mb-1"},et={class:"text-2xl font-semibold"},st=k({__name:"StatCards",props:{overview:{},loading:{type:Boolean}},setup(a){function x(e){return e<.01&&e>0?"<$0.01":`$${e.toFixed(2)}`}function u(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:String(e)}return(e,o)=>{const p=C,i=U;return n(),l("div",M,[a.loading?(n(),l(b,{key:0},$(5,g=>t("div",{key:g,class:"p-4 rounded-lg bg-elevated border border-default"},[s(p,{class:"h-4 w-16 mb-2"}),s(p,{class:"h-8 w-12"})])),64)):a.overview?(n(),l(b,{key:1},[t("div",A,[t("div",L,[s(i,{name:"i-lucide-circle-dot",class:"size-4"}),o[0]||(o[0]=t("span",null,"Todo",-1))]),t("p",P,c(a.overview.tasks.todoCount),1)]),t("div",W,[t("div",H,[s(i,{name:"i-lucide-loader",class:"size-4"}),o[1]||(o[1]=t("span",null,"In Progress",-1))]),t("p",K,c(a.overview.tasks.inProgressCount),1)]),t("div",E,[t("div",G,[s(i,{name:"i-lucide-dollar-sign",class:"size-4"}),o[2]||(o[2]=t("span",null,"7d Cost",-1))]),t("p",Q,c(x(a.overview.usage.totalCost7d)),1)]),t("div",J,[t("div",X,[s(i,{name:"i-lucide-zap",class:"size-4"}),o[3]||(o[3]=t("span",null,"7d API Calls",-1))]),t("p",Y,c(a.overview.usage.totalCalls7d),1)]),t("div",Z,[t("div",tt,[s(i,{name:"i-lucide-text-cursor-input",class:"size-4"}),o[4]||(o[4]=t("span",null,"7d Tokens",-1))]),t("p",et,c(u(a.overview.usage.totalInputTokens7d+a.overview.usage.totalOutputTokens7d)),1)])],64)):w("",!0)])}}}),ot=Object.assign(st,{__name:"DashboardStatCards"}),nt={class:"flex items-center justify-between"},at={class:"flex items-center gap-2"},it={key:0,class:"space-y-3"},lt={key:1,class:"text-center py-4 text-muted text-sm"},rt={key:2,class:"space-y-2"},dt={class:"text-sm truncate flex-1"},ct={key:1,class:"text-xs text-muted whitespace-nowrap"},ut=k({__name:"UpcomingTasks",props:{tasks:{},loading:{type:Boolean}},setup(a){const x={1:"Low",2:"Med",3:"High"},u={1:"neutral",2:"warning",3:"error"},e={todo:"neutral",in_progress:"primary",blocked:"error"};function o(p){if(!p)return"";const i=new Date(p),g=new Date,v=i.getTime()-g.getTime(),r=Math.ceil(v/(1e3*60*60*24));return r<0?`${Math.abs(r)}d overdue`:r===0?"Today":r===1?"Tomorrow":`${r}d`}return(p,i)=>{const g=U,v=D,r=C,_=I,T=S,j=z;return n(),h(j,null,{header:d(()=>[t("div",nt,[t("div",at,[s(g,{name:"i-lucide-check-square",class:"size-4 text-primary"}),i[0]||(i[0]=t("span",{class:"text-sm font-medium"},"Upcoming Tasks",-1))]),s(v,{to:"/tasks",variant:"ghost",size:"xs","trailing-icon":"i-lucide-arrow-right"},{default:d(()=>[...i[1]||(i[1]=[y(" View all ",-1)])]),_:1})])]),default:d(()=>[a.loading?(n(),l("div",it,[(n(),l(b,null,$(3,m=>t("div",{key:m,class:"flex items-center gap-3"},[s(r,{class:"h-5 w-5 rounded"}),s(r,{class:"h-4 flex-1"})])),64))])):a.tasks.length===0?(n(),l("div",lt," No upcoming tasks ")):(n(),l("div",rt,[(n(!0),l(b,null,$(a.tasks,m=>(n(),h(T,{key:m.id,to:{path:"/tasks",query:{selected:m.id}},class:"flex items-center gap-3 p-2 -mx-2 rounded-md hover:bg-elevated transition-colors"},{default:d(()=>[s(_,{color:e[m.status]||"neutral",variant:"subtle",size:"xs"},{default:d(()=>[y(c(m.status==="in_progress"?"WIP":m.status),1)]),_:2},1032,["color"]),t("span",dt,c(m.title),1),m.projectName?(n(),h(_,{key:0,variant:"subtle",color:"neutral",size:"xs"},{default:d(()=>[t("span",{class:"inline-block size-2 rounded-full mr-1",style:B({background:m.projectColor||"var(--ui-primary)"})},null,4),y(" "+c(m.projectName),1)]),_:2},1024)):w("",!0),s(_,{color:u[m.priority]||"neutral",variant:"soft",size:"xs"},{default:d(()=>[y(c(x[m.priority]||"Med"),1)]),_:2},1032,["color"]),m.dueDate?(n(),l("span",ct,c(o(m.dueDate)),1)):w("",!0)]),_:2},1032,["to"]))),128))]))]),_:1})}}}),mt=Object.assign(ut,{__name:"DashboardUpcomingTasks"}),_t={class:"flex items-center justify-between"},pt={class:"flex items-center gap-2"},gt={key:0,class:"space-y-3"},xt={class:"flex-1"},ft={key:1,class:"text-center py-4 text-muted text-sm"},vt={key:2,class:"space-y-2"},ht={class:"flex items-center justify-center size-8 rounded-full bg-primary/10"},bt={class:"flex-1 min-w-0"},yt={class:"text-sm font-medium truncate"},$t={class:"text-xs text-muted"},kt={class:"text-xs text-muted whitespace-nowrap"},wt=k({__name:"RecentChats",props:{conversations:{},loading:{type:Boolean}},setup(a){function x(u){return O(new Date(u),{addSuffix:!0})}return(u,e)=>{const o=U,p=D,i=C,g=S,v=z;return n(),h(v,null,{header:d(()=>[t("div",_t,[t("div",pt,[s(o,{name:"i-lucide-message-square",class:"size-4 text-primary"}),e[0]||(e[0]=t("span",{class:"text-sm font-medium"},"Recent Chats",-1))]),s(p,{to:"/chat",variant:"ghost",size:"xs","trailing-icon":"i-lucide-arrow-right"},{default:d(()=>[...e[1]||(e[1]=[y(" View all ",-1)])]),_:1})])]),default:d(()=>[a.loading?(n(),l("div",gt,[(n(),l(b,null,$(3,r=>t("div",{key:r,class:"flex items-center gap-3"},[s(i,{class:"size-8 rounded-full"}),t("div",xt,[s(i,{class:"h-4 w-32 mb-1"}),s(i,{class:"h-3 w-20"})])])),64))])):a.conversations.length===0?(n(),l("div",ft," No conversations yet ")):(n(),l("div",vt,[(n(!0),l(b,null,$(a.conversations,r=>(n(),h(g,{key:r.id,to:{path:"/chat",query:{conversation:r.id}},class:"flex items-center gap-3 p-2 -mx-2 rounded-md hover:bg-elevated transition-colors"},{default:d(()=>[t("div",ht,[s(o,{name:"i-lucide-message-square",class:"size-4 text-primary"})]),t("div",bt,[t("p",yt,c(r.title||"Untitled Chat"),1),t("p",$t,c(r.messageCount)+" messages ",1)]),t("span",kt,c(x(r.startedAt)),1)]),_:2},1032,["to"]))),128))]))]),_:1})}}}),Ct=Object.assign(wt,{__name:"DashboardRecentChats"}),Ut={class:"flex items-center justify-between"},Dt={class:"flex items-center gap-2"},zt={key:0,class:"space-y-3"},Tt={class:"flex-1"},jt={key:1,class:"text-center py-4 text-muted text-sm"},St={key:2,class:"space-y-2"},Nt={class:"flex items-center justify-center size-8 rounded bg-primary/10"},Bt={class:"flex-1 min-w-0"},It={class:"text-sm font-medium truncate"},Ot={class:"flex items-center gap-2"},Rt={key:0,class:"text-xs text-muted whitespace-nowrap"},Vt=k({__name:"RecentDocs",props:{documents:{},loading:{type:Boolean}},setup(a){function x(u){return u?O(new Date(u),{addSuffix:!0}):""}return(u,e)=>{const o=U,p=D,i=C,g=I,v=S,r=z;return n(),h(r,null,{header:d(()=>[t("div",Ut,[t("div",Dt,[s(o,{name:"i-lucide-file-text",class:"size-4 text-primary"}),e[0]||(e[0]=t("span",{class:"text-sm font-medium"},"Recent Docs",-1))]),s(p,{to:"/docs",variant:"ghost",size:"xs","trailing-icon":"i-lucide-arrow-right"},{default:d(()=>[...e[1]||(e[1]=[y(" View all ",-1)])]),_:1})])]),default:d(()=>[a.loading?(n(),l("div",zt,[(n(),l(b,null,$(3,_=>t("div",{key:_,class:"flex items-center gap-3"},[s(i,{class:"size-8 rounded"}),t("div",Tt,[s(i,{class:"h-4 w-32 mb-1"}),s(i,{class:"h-3 w-20"})])])),64))])):a.documents.length===0?(n(),l("div",jt," No documents yet ")):(n(),l("div",St,[(n(!0),l(b,null,$(a.documents,_=>(n(),h(v,{key:_.id,to:{path:"/docs",query:{path:_.path}},class:"flex items-center gap-3 p-2 -mx-2 rounded-md hover:bg-elevated transition-colors"},{default:d(()=>[t("div",Nt,[s(o,{name:"i-lucide-file-text",class:"size-4 text-primary"})]),t("div",Bt,[t("p",It,c(_.title),1),t("div",Ot,[_.projectName?(n(),h(g,{key:0,variant:"subtle",color:"neutral",size:"xs"},{default:d(()=>[t("span",{class:"inline-block size-2 rounded-full mr-1",style:B({background:_.projectColor||"var(--ui-primary)"})},null,4),y(" "+c(_.projectName),1)]),_:2},1024)):w("",!0)])]),_.modifiedAt?(n(),l("span",Rt,c(x(_.modifiedAt)),1)):w("",!0)]),_:2},1032,["to"]))),128))]))]),_:1})}}}),qt=Object.assign(Vt,{__name:"DashboardRecentDocs"}),Ft={class:"flex items-center justify-between"},Mt={class:"flex items-center gap-2"},At={key:0,class:"grid grid-cols-2 gap-4"},Lt={key:1,class:"grid grid-cols-2 gap-4"},Pt={class:"text-lg font-semibold"},Wt={class:"text-lg font-semibold"},Ht={class:"text-lg font-semibold"},Kt={class:"text-lg font-semibold"},Et=k({__name:"UsageSummary",props:{usage:{},loading:{type:Boolean}},setup(a){function x(e){return e<.01&&e>0?"<$0.01":`$${e.toFixed(2)}`}function u(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:String(e)}return(e,o)=>{const p=U,i=D,g=C,v=z;return n(),h(v,null,{header:d(()=>[t("div",Ft,[t("div",Mt,[s(p,{name:"i-lucide-bar-chart-3",class:"size-4 text-primary"}),o[0]||(o[0]=t("span",{class:"text-sm font-medium"},"Token Usage (7d)",-1))]),s(i,{to:"/usage",variant:"ghost",size:"xs","trailing-icon":"i-lucide-arrow-right"},{default:d(()=>[...o[1]||(o[1]=[y(" Details ",-1)])]),_:1})])]),default:d(()=>[a.loading?(n(),l("div",At,[(n(),l(b,null,$(4,r=>t("div",{key:r},[s(g,{class:"h-3 w-12 mb-1"}),s(g,{class:"h-6 w-16"})])),64))])):(n(),l("div",Lt,[t("div",null,[o[2]||(o[2]=t("p",{class:"text-xs text-muted mb-0.5"}," Total Cost ",-1)),t("p",Pt,c(x(a.usage.totalCost7d)),1)]),t("div",null,[o[3]||(o[3]=t("p",{class:"text-xs text-muted mb-0.5"}," API Calls ",-1)),t("p",Wt,c(a.usage.totalCalls7d),1)]),t("div",null,[o[4]||(o[4]=t("p",{class:"text-xs text-muted mb-0.5"}," Input Tokens ",-1)),t("p",Ht,c(u(a.usage.totalInputTokens7d)),1)]),t("div",null,[o[5]||(o[5]=t("p",{class:"text-xs text-muted mb-0.5"}," Output Tokens ",-1)),t("p",Kt,c(u(a.usage.totalOutputTokens7d)),1)])]))]),_:1})}}}),Gt=Object.assign(Et,{__name:"DashboardUsageSummary"}),Qt={class:"contents"},Jt={class:"p-4 space-y-6"},Xt={class:"text-2xl font-bold"},Yt={class:"grid gap-6 lg:grid-cols-2"},Zt={class:"grid gap-6 lg:grid-cols-2"},ue=k({__name:"dashboard",setup(a){const{user:x}=F(),u=N(null),e=N(!0);async function o(){e.value=!0;try{const p=await $fetch("/api/dashboard/overview");u.value=p.data}catch{}finally{e.value=!1}}return q(()=>{o()}),(p,i)=>{const g=V,v=ot,r=mt,_=Ct,T=qt,j=Gt,m=R;return n(),l("div",Qt,[s(m,{id:"dashboard",grow:""},{header:d(()=>[s(g,{title:"Dashboard"})]),body:d(()=>[t("div",Jt,[t("div",null,[t("h1",Xt," Welcome back"+c(f(x)?.name?`, ${f(x).name}`:""),1),i[0]||(i[0]=t("p",{class:"text-muted mt-1 text-sm"}," Here's what's happening in your workspace. ",-1))]),s(v,{overview:f(u),loading:f(e)},null,8,["overview","loading"]),t("div",Yt,[s(r,{tasks:f(u)?.tasks.upcoming??[],loading:f(e)},null,8,["tasks","loading"]),s(_,{conversations:f(u)?.conversations??[],loading:f(e)},null,8,["conversations","loading"])]),t("div",Zt,[s(T,{documents:f(u)?.documents??[],loading:f(e)},null,8,["documents","loading"]),s(j,{usage:f(u)?.usage??{totalCost7d:0,totalCalls7d:0,totalInputTokens7d:0,totalOutputTokens7d:0},loading:f(e)},null,8,["usage","loading"])])])]),_:1})])}}});export{ue as default};
1
+ import{_ as V,a as R}from"./CfCXpVn5.js";import{_ as C}from"./OlF0QnKF.js";import{a as k,G as l,T as n,a9 as w,aj as b,ak as $,ab as t,V as s,_ as U,ae as c,S as h,U as d,af as S,aa as y,aV as B,Y as D,e as N,q,C as f}from"./D6tVZcRs.js";import{_ as I}from"./BnMTFF5R.js";import{_ as z}from"./DXJ9PxCv.js";import{f as O}from"./CWePHsZr.js";import{u as F}from"./BghuwIGa.js";import"./ZvG7a1W3.js";import"./D12qPplu.js";import"./C7m9zGMG.js";import"./C8ut0f5H.js";const M={class:"grid gap-4 grid-cols-2 sm:grid-cols-3 lg:grid-cols-5"},A={class:"p-4 rounded-lg bg-elevated border border-default"},L={class:"flex items-center gap-2 text-muted text-sm mb-1"},P={class:"text-2xl font-semibold"},H={class:"p-4 rounded-lg bg-elevated border border-default"},K={class:"flex items-center gap-2 text-muted text-sm mb-1"},W={class:"text-2xl font-semibold"},E={class:"p-4 rounded-lg bg-elevated border border-default"},G={class:"flex items-center gap-2 text-muted text-sm mb-1"},Y={class:"text-2xl font-semibold"},J={class:"p-4 rounded-lg bg-elevated border border-default"},Q={class:"flex items-center gap-2 text-muted text-sm mb-1"},X={class:"text-2xl font-semibold"},Z={class:"p-4 rounded-lg bg-elevated border border-default"},tt={class:"flex items-center gap-2 text-muted text-sm mb-1"},et={class:"text-2xl font-semibold"},st=k({__name:"StatCards",props:{overview:{},loading:{type:Boolean}},setup(a){function x(e){return e<.01&&e>0?"<$0.01":`$${e.toFixed(2)}`}function u(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:String(e)}return(e,o)=>{const p=C,i=U;return n(),l("div",M,[a.loading?(n(),l(b,{key:0},$(5,g=>t("div",{key:g,class:"p-4 rounded-lg bg-elevated border border-default"},[s(p,{class:"h-4 w-16 mb-2"}),s(p,{class:"h-8 w-12"})])),64)):a.overview?(n(),l(b,{key:1},[t("div",A,[t("div",L,[s(i,{name:"i-lucide-circle-dot",class:"size-4"}),o[0]||(o[0]=t("span",null,"Todo",-1))]),t("p",P,c(a.overview.tasks.todoCount),1)]),t("div",H,[t("div",K,[s(i,{name:"i-lucide-loader",class:"size-4"}),o[1]||(o[1]=t("span",null,"In Progress",-1))]),t("p",W,c(a.overview.tasks.inProgressCount),1)]),t("div",E,[t("div",G,[s(i,{name:"i-lucide-dollar-sign",class:"size-4"}),o[2]||(o[2]=t("span",null,"7d Cost",-1))]),t("p",Y,c(x(a.overview.usage.totalCost7d)),1)]),t("div",J,[t("div",Q,[s(i,{name:"i-lucide-zap",class:"size-4"}),o[3]||(o[3]=t("span",null,"7d API Calls",-1))]),t("p",X,c(a.overview.usage.totalCalls7d),1)]),t("div",Z,[t("div",tt,[s(i,{name:"i-lucide-text-cursor-input",class:"size-4"}),o[4]||(o[4]=t("span",null,"7d Tokens",-1))]),t("p",et,c(u(a.overview.usage.totalInputTokens7d+a.overview.usage.totalOutputTokens7d)),1)])],64)):w("",!0)])}}}),ot=Object.assign(st,{__name:"DashboardStatCards"}),nt={class:"flex items-center justify-between"},at={class:"flex items-center gap-2"},it={key:0,class:"space-y-3"},lt={key:1,class:"text-center py-4 text-muted text-sm"},rt={key:2,class:"space-y-2"},dt={class:"text-sm truncate flex-1"},ct={key:1,class:"text-xs text-muted whitespace-nowrap"},ut=k({__name:"UpcomingTasks",props:{tasks:{},loading:{type:Boolean}},setup(a){const x={1:"Low",2:"Med",3:"High"},u={1:"neutral",2:"warning",3:"error"},e={todo:"neutral",in_progress:"primary",blocked:"error"};function o(p){if(!p)return"";const i=new Date(p),g=new Date,v=i.getTime()-g.getTime(),r=Math.ceil(v/(1e3*60*60*24));return r<0?`${Math.abs(r)}d overdue`:r===0?"Today":r===1?"Tomorrow":`${r}d`}return(p,i)=>{const g=U,v=D,r=C,_=I,T=S,j=z;return n(),h(j,null,{header:d(()=>[t("div",nt,[t("div",at,[s(g,{name:"i-lucide-check-square",class:"size-4 text-primary"}),i[0]||(i[0]=t("span",{class:"text-sm font-medium"},"Upcoming Tasks",-1))]),s(v,{to:"/tasks",variant:"ghost",size:"xs","trailing-icon":"i-lucide-arrow-right"},{default:d(()=>[...i[1]||(i[1]=[y(" View all ",-1)])]),_:1})])]),default:d(()=>[a.loading?(n(),l("div",it,[(n(),l(b,null,$(3,m=>t("div",{key:m,class:"flex items-center gap-3"},[s(r,{class:"h-5 w-5 rounded"}),s(r,{class:"h-4 flex-1"})])),64))])):a.tasks.length===0?(n(),l("div",lt," No upcoming tasks ")):(n(),l("div",rt,[(n(!0),l(b,null,$(a.tasks,m=>(n(),h(T,{key:m.id,to:{path:"/tasks",query:{selected:m.id}},class:"flex items-center gap-3 p-2 -mx-2 rounded-md hover:bg-elevated transition-colors"},{default:d(()=>[s(_,{color:e[m.status]||"neutral",variant:"subtle",size:"xs"},{default:d(()=>[y(c(m.status==="in_progress"?"WIP":m.status),1)]),_:2},1032,["color"]),t("span",dt,c(m.title),1),m.projectName?(n(),h(_,{key:0,variant:"subtle",color:"neutral",size:"xs"},{default:d(()=>[t("span",{class:"inline-block size-2 rounded-full mr-1",style:B({background:m.projectColor||"var(--ui-primary)"})},null,4),y(" "+c(m.projectName),1)]),_:2},1024)):w("",!0),s(_,{color:u[m.priority]||"neutral",variant:"soft",size:"xs"},{default:d(()=>[y(c(x[m.priority]||"Med"),1)]),_:2},1032,["color"]),m.dueDate?(n(),l("span",ct,c(o(m.dueDate)),1)):w("",!0)]),_:2},1032,["to"]))),128))]))]),_:1})}}}),mt=Object.assign(ut,{__name:"DashboardUpcomingTasks"}),_t={class:"flex items-center justify-between"},pt={class:"flex items-center gap-2"},gt={key:0,class:"space-y-3"},xt={class:"flex-1"},ft={key:1,class:"text-center py-4 text-muted text-sm"},vt={key:2,class:"space-y-2"},ht={class:"flex items-center justify-center size-8 rounded-full bg-primary/10"},bt={class:"flex-1 min-w-0"},yt={class:"text-sm font-medium truncate"},$t={class:"text-xs text-muted"},kt={class:"text-xs text-muted whitespace-nowrap"},wt=k({__name:"RecentChats",props:{conversations:{},loading:{type:Boolean}},setup(a){function x(u){return O(new Date(u),{addSuffix:!0})}return(u,e)=>{const o=U,p=D,i=C,g=S,v=z;return n(),h(v,null,{header:d(()=>[t("div",_t,[t("div",pt,[s(o,{name:"i-lucide-message-square",class:"size-4 text-primary"}),e[0]||(e[0]=t("span",{class:"text-sm font-medium"},"Recent Chats",-1))]),s(p,{to:"/chat",variant:"ghost",size:"xs","trailing-icon":"i-lucide-arrow-right"},{default:d(()=>[...e[1]||(e[1]=[y(" View all ",-1)])]),_:1})])]),default:d(()=>[a.loading?(n(),l("div",gt,[(n(),l(b,null,$(3,r=>t("div",{key:r,class:"flex items-center gap-3"},[s(i,{class:"size-8 rounded-full"}),t("div",xt,[s(i,{class:"h-4 w-32 mb-1"}),s(i,{class:"h-3 w-20"})])])),64))])):a.conversations.length===0?(n(),l("div",ft," No conversations yet ")):(n(),l("div",vt,[(n(!0),l(b,null,$(a.conversations,r=>(n(),h(g,{key:r.id,to:{path:"/chat",query:{conversation:r.id}},class:"flex items-center gap-3 p-2 -mx-2 rounded-md hover:bg-elevated transition-colors"},{default:d(()=>[t("div",ht,[s(o,{name:"i-lucide-message-square",class:"size-4 text-primary"})]),t("div",bt,[t("p",yt,c(r.title||"Untitled Chat"),1),t("p",$t,c(r.messageCount)+" messages ",1)]),t("span",kt,c(x(r.startedAt)),1)]),_:2},1032,["to"]))),128))]))]),_:1})}}}),Ct=Object.assign(wt,{__name:"DashboardRecentChats"}),Ut={class:"flex items-center justify-between"},Dt={class:"flex items-center gap-2"},zt={key:0,class:"space-y-3"},Tt={class:"flex-1"},jt={key:1,class:"text-center py-4 text-muted text-sm"},St={key:2,class:"space-y-2"},Nt={class:"flex items-center justify-center size-8 rounded bg-primary/10"},Bt={class:"flex-1 min-w-0"},It={class:"text-sm font-medium truncate"},Ot={class:"flex items-center gap-2"},Vt={key:0,class:"text-xs text-muted whitespace-nowrap"},Rt=k({__name:"RecentDocs",props:{documents:{},loading:{type:Boolean}},setup(a){function x(u){return u?O(new Date(u),{addSuffix:!0}):""}return(u,e)=>{const o=U,p=D,i=C,g=I,v=S,r=z;return n(),h(r,null,{header:d(()=>[t("div",Ut,[t("div",Dt,[s(o,{name:"i-lucide-file-text",class:"size-4 text-primary"}),e[0]||(e[0]=t("span",{class:"text-sm font-medium"},"Recent Docs",-1))]),s(p,{to:"/docs",variant:"ghost",size:"xs","trailing-icon":"i-lucide-arrow-right"},{default:d(()=>[...e[1]||(e[1]=[y(" View all ",-1)])]),_:1})])]),default:d(()=>[a.loading?(n(),l("div",zt,[(n(),l(b,null,$(3,_=>t("div",{key:_,class:"flex items-center gap-3"},[s(i,{class:"size-8 rounded"}),t("div",Tt,[s(i,{class:"h-4 w-32 mb-1"}),s(i,{class:"h-3 w-20"})])])),64))])):a.documents.length===0?(n(),l("div",jt," No documents yet ")):(n(),l("div",St,[(n(!0),l(b,null,$(a.documents,_=>(n(),h(v,{key:_.id,to:{path:"/docs",query:{path:_.path}},class:"flex items-center gap-3 p-2 -mx-2 rounded-md hover:bg-elevated transition-colors"},{default:d(()=>[t("div",Nt,[s(o,{name:"i-lucide-file-text",class:"size-4 text-primary"})]),t("div",Bt,[t("p",It,c(_.title),1),t("div",Ot,[_.projectName?(n(),h(g,{key:0,variant:"subtle",color:"neutral",size:"xs"},{default:d(()=>[t("span",{class:"inline-block size-2 rounded-full mr-1",style:B({background:_.projectColor||"var(--ui-primary)"})},null,4),y(" "+c(_.projectName),1)]),_:2},1024)):w("",!0)])]),_.modifiedAt?(n(),l("span",Vt,c(x(_.modifiedAt)),1)):w("",!0)]),_:2},1032,["to"]))),128))]))]),_:1})}}}),qt=Object.assign(Rt,{__name:"DashboardRecentDocs"}),Ft={class:"flex items-center justify-between"},Mt={class:"flex items-center gap-2"},At={key:0,class:"grid grid-cols-2 gap-4"},Lt={key:1,class:"grid grid-cols-2 gap-4"},Pt={class:"text-lg font-semibold"},Ht={class:"text-lg font-semibold"},Kt={class:"text-lg font-semibold"},Wt={class:"text-lg font-semibold"},Et=k({__name:"UsageSummary",props:{usage:{},loading:{type:Boolean}},setup(a){function x(e){return e<.01&&e>0?"<$0.01":`$${e.toFixed(2)}`}function u(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:String(e)}return(e,o)=>{const p=U,i=D,g=C,v=z;return n(),h(v,null,{header:d(()=>[t("div",Ft,[t("div",Mt,[s(p,{name:"i-lucide-bar-chart-3",class:"size-4 text-primary"}),o[0]||(o[0]=t("span",{class:"text-sm font-medium"},"Token Usage (7d)",-1))]),s(i,{to:"/usage",variant:"ghost",size:"xs","trailing-icon":"i-lucide-arrow-right"},{default:d(()=>[...o[1]||(o[1]=[y(" Details ",-1)])]),_:1})])]),default:d(()=>[a.loading?(n(),l("div",At,[(n(),l(b,null,$(4,r=>t("div",{key:r},[s(g,{class:"h-3 w-12 mb-1"}),s(g,{class:"h-6 w-16"})])),64))])):(n(),l("div",Lt,[t("div",null,[o[2]||(o[2]=t("p",{class:"text-xs text-muted mb-0.5"}," Total Cost ",-1)),t("p",Pt,c(x(a.usage.totalCost7d)),1)]),t("div",null,[o[3]||(o[3]=t("p",{class:"text-xs text-muted mb-0.5"}," API Calls ",-1)),t("p",Ht,c(a.usage.totalCalls7d),1)]),t("div",null,[o[4]||(o[4]=t("p",{class:"text-xs text-muted mb-0.5"}," Input Tokens ",-1)),t("p",Kt,c(u(a.usage.totalInputTokens7d)),1)]),t("div",null,[o[5]||(o[5]=t("p",{class:"text-xs text-muted mb-0.5"}," Output Tokens ",-1)),t("p",Wt,c(u(a.usage.totalOutputTokens7d)),1)])]))]),_:1})}}}),Gt=Object.assign(Et,{__name:"DashboardUsageSummary"}),Yt={class:"contents"},Jt={class:"p-4 space-y-6"},Qt={class:"text-2xl font-bold"},Xt={class:"grid gap-6 lg:grid-cols-2"},Zt={class:"grid gap-6 lg:grid-cols-2"},ue=k({__name:"dashboard",setup(a){const{user:x}=F(),u=N(null),e=N(!0);async function o(){e.value=!0;try{const p=await $fetch("/api/dashboard/overview");u.value=p.data}catch{}finally{e.value=!1}}return q(()=>{o()}),(p,i)=>{const g=R,v=ot,r=mt,_=Ct,T=qt,j=Gt,m=V;return n(),l("div",Yt,[s(m,{id:"dashboard",grow:""},{header:d(()=>[s(g,{title:"Dashboard"})]),body:d(()=>[t("div",Jt,[t("div",null,[t("h1",Qt," Welcome back"+c(f(x)?.name?`, ${f(x).name}`:""),1),i[0]||(i[0]=t("p",{class:"text-muted mt-1 text-sm"}," Here's what's happening in your workspace. ",-1))]),s(v,{overview:f(u),loading:f(e)},null,8,["overview","loading"]),t("div",Xt,[s(r,{tasks:f(u)?.tasks.upcoming??[],loading:f(e)},null,8,["tasks","loading"]),s(_,{conversations:f(u)?.conversations??[],loading:f(e)},null,8,["conversations","loading"])]),t("div",Zt,[s(T,{documents:f(u)?.documents??[],loading:f(e)},null,8,["documents","loading"]),s(j,{usage:f(u)?.usage??{totalCost7d:0,totalCalls7d:0,totalInputTokens7d:0,totalOutputTokens7d:0},loading:f(e)},null,8,["usage","loading"])])])]),_:1})])}}});export{ue as default};
@@ -1 +1 @@
1
- import{ac as i,c as d,G as t,R as n,a4 as a,C as p}from"./2dNDtTiv.js";const u=["id"],f=["href"],k={__name:"ProseH5",props:{id:{type:String,required:!1}},setup(r){const e=r,{headings:o}=i().public.mdc,c=d(()=>e.id&&(typeof o?.anchorLinks=="boolean"&&o?.anchorLinks===!0||typeof o?.anchorLinks=="object"&&o?.anchorLinks?.h5));return(s,h)=>(n(),t("h5",{id:e.id},[e.id&&p(c)?(n(),t("a",{key:0,href:`#${e.id}`},[a(s.$slots,"default")],8,f)):a(s.$slots,"default",{key:1})],8,u))}};export{k as default};
1
+ import{ac as i,c as d,G as t,T as n,a4 as a,C as p}from"./D6tVZcRs.js";const u=["id"],f=["href"],k={__name:"ProseH5",props:{id:{type:String,required:!1}},setup(r){const e=r,{headings:o}=i().public.mdc,c=d(()=>e.id&&(typeof o?.anchorLinks=="boolean"&&o?.anchorLinks===!0||typeof o?.anchorLinks=="object"&&o?.anchorLinks?.h5));return(s,h)=>(n(),t("h5",{id:e.id},[e.id&&p(c)?(n(),t("a",{key:0,href:`#${e.id}`},[a(s.$slots,"default")],8,f)):a(s.$slots,"default",{key:1})],8,u))}};export{k as default};
@@ -1 +1 @@
1
- import{N as r,c,G as n,R as p,a4 as m,U as u,am as s}from"./2dNDtTiv.js";const i={base:"list-decimal ps-6 my-5 marker:text-muted"},_={__name:"ProseOl",props:{class:{type:null,required:!1}},setup(e){const a=e,t=r(),o=c(()=>s({extend:s(i),...t.ui?.prose?.ol||{}}));return(l,d)=>(p(),n("ol",{class:u(o.value({class:a.class}))},[m(l.$slots,"default")],2))}};export{_ as default};
1
+ import{P as r,c,G as n,T as p,a4 as m,W as u,am as s}from"./D6tVZcRs.js";const i={base:"list-decimal ps-6 my-5 marker:text-muted"},_={__name:"ProseOl",props:{class:{type:null,required:!1}},setup(e){const a=e,t=r(),o=c(()=>s({extend:s(i),...t.ui?.prose?.ol||{}}));return(l,d)=>(p(),n("ol",{class:u(o.value({class:a.class}))},[m(l.$slots,"default")],2))}};export{_ as default};
@@ -0,0 +1 @@
1
+ import{L as e}from"./D6tVZcRs.js";function a(r,u="reka"){return r||`${u}-${e?.()}`}export{a as u};
@@ -1 +1 @@
1
- import{a as rt,ag as lt,an as ct,e as b,f as ut,q as dt,G as m,T as o,S as u,ai as mt,C as s,R as a,ab as l,Q as A,a9 as C,_ as pt,W as _t,aj as E,ak as z,ae as f,aa as y,al as $}from"./2dNDtTiv.js";import{_ as ft}from"./vIOxcXKR.js";import{_ as gt,a as vt}from"./CqNwHCpo.js";import{u as ht,_ as yt,a as kt,b as xt}from"./C4mwL7SE.js";import{c as At}from"./BHtY0l0l.js";import{_ as wt}from"./JbHa4oXq.js";import{_ as bt}from"./1zUTf4AP.js";import{_ as Ct}from"./C2vq6Te8.js";import{_ as $t}from"./DzA58_Lm.js";import{u as St}from"./GtEM7xVU.js";import{u as Ut}from"./CVqlefTY.js";import"./C8ut0f5H.js";import"./CqkleIqs.js";import"./D5jZq8b3.js";import"./DhI5cA_n.js";import"./DEd2xVbS.js";import"./BmOtR1wX.js";import"./4K03TkGA.js";import"./DlAUqK2U.js";import"./wO6z2ugJ.js";import"./DJTCT0bl.js";import"./C3NST0BU.js";import"./BIXrSYwR.js";import"./DmmdPt_5.js";import"./apYB9dr5.js";import"./H6JbrRBU.js";import"./Db4KMnt8.js";import"./CQqCBrXj.js";import"./DUAAXJ6Q.js";import"./CWyMCJQH.js";import"./C6qKcgOY.js";import"./zq-a1TeT.js";import"./CuxrHsu-.js";import"./DS2wStH1.js";import"./C6Y-ieo6.js";import"./CYPO5o_C.js";import"./D8lwrAYS.js";import"./vScW1Zgm.js";import"./Vcq4gwWv.js";import"./Bk6JUtIo.js";import"./BA_pRWwX.js";import"./BZrSPX0S.js";import"./BaZwjF8o.js";const Rt=At(xt),Nt={class:"contents"},Ft={class:"p-4 space-y-6"},Bt={key:1,class:"flex items-center justify-center h-64"},Tt={key:2,class:"flex flex-col items-center justify-center h-64 text-neutral-500"},Et={key:3,class:"space-y-4"},zt={class:"flex items-start justify-between gap-4"},Dt={class:"flex-1 min-w-0"},Mt={class:"flex items-center gap-2"},Pt={class:"font-medium truncate"},Vt={key:0,class:"text-sm text-muted truncate mt-1"},jt={class:"flex items-center gap-4 mt-2 text-sm text-muted"},Ot={class:"flex items-center gap-1"},Gt={key:0,class:"flex items-center gap-1"},Wt={key:1,class:"flex items-center gap-1"},qt={class:"flex items-center gap-2"},ze=rt({__name:"index",setup(Lt){const g=lt(),D=ct(),{agents:R,loading:M,fetchAgents:P,createAgent:V,updateAgent:j,toggleEnabled:O,runAgent:G,cancelAgent:W,fetchGlobalStats:q}=ht(),{isAgentRunning:L}=St(),{agentStatsPeriod:N}=Ut(),w=b(N.value),k=b(null),S=b(!1);function F(n){return L(n)?!0:k.value?.runningAgentIds?.includes(n)??!1}const v=b(!1),h=b(null),I=[{label:"24h",value:"24h"},{label:"7d",value:"7d"},{label:"30d",value:"30d"}];function J(n){const t=n.split(" ");if(t.length!==5)return n;const i=t[0],r=t[1],c=t[2],d=t[3],p=t[4];return i==="0"&&r==="*"&&c==="*"&&d==="*"&&p==="*"?"Every hour":i==="*/5"&&r==="*"&&c==="*"&&d==="*"&&p==="*"?"Every 5 minutes":c==="*"&&d==="*"&&p==="*"&&r!=="*"?`Daily at ${r}:${i.padStart(2,"0")}`:p==="0"&&c==="*"&&d==="*"?`Weekly on Sunday at ${r}:${i.padStart(2,"0")}`:n}function Q(n){if(!n)return"Never";const t=new Date(n),r=new Date().getTime()-t.getTime(),c=Math.floor(r/6e4),d=Math.floor(r/36e5),p=Math.floor(r/864e5);return c<1?"Just now":c<60?`${c}m ago`:d<24?`${d}h ago`:`${p}d ago`}function B(){h.value=null,v.value=!0}function H(n,t){t.stopPropagation(),h.value=n,v.value=!0}function K(n){D.push(`/agents/${n.id}`)}async function X(n){try{h.value?(await j(h.value.id,n),g.add({title:"Agent updated",color:"success",icon:"i-lucide-check"})):(await V(n),g.add({title:"Agent created",color:"success",icon:"i-lucide-check"}),U()),v.value=!1,h.value=null}catch(t){g.add({title:"Failed to save agent",description:t instanceof Error?t.message:"An unexpected error occurred",color:"error",icon:"i-lucide-alert-circle"})}}async function Y(n){try{await O(n)}catch{g.add({title:"Failed to toggle agent",color:"error",icon:"i-lucide-alert-circle"})}}async function Z(n,t){t.stopPropagation();try{await G(n)}catch{g.add({title:"Failed to run agent",color:"error",icon:"i-lucide-alert-circle"})}}async function tt(n,t){t.stopPropagation();try{await W(n),g.add({title:"Agent cancelled",color:"warning",icon:"i-lucide-x-circle"})}catch{g.add({title:"Failed to cancel agent",color:"error",icon:"i-lucide-alert-circle"})}}function et(n){switch(n){case"success":return"success";case"error":return"error";case"budget_exceeded":return"warning";case"running":return"info";case"cancelled":return"neutral";default:return"neutral"}}async function U(){S.value=!0;try{k.value=await q(w.value)}catch{}finally{S.value=!1}}return ut(w,n=>{N.value=n,U()}),dt(async()=>{await P(),U()}),(n,t)=>{const i=_t,r=ft,c=vt,d=yt,p=Rt,x=pt,T=wt,nt=bt,ot=Ct,at=gt,st=kt,it=$t;return a(),m("div",Nt,[o(at,{id:"agents",grow:""},{header:u(()=>[o(c,{title:"Scheduled Agents"},{right:u(()=>[o(r,null,{default:u(()=>[(a(),m(E,null,z(I,e=>o(i,{key:e.value,color:s(w)===e.value?"primary":"neutral",variant:s(w)===e.value?"solid":"ghost",size:"sm",onClick:_=>w.value=e.value},{default:u(()=>[y(f(e.label),1)]),_:2},1032,["color","variant","onClick"])),64))]),_:1}),o(i,{icon:"i-lucide-plus",label:"New Agent",onClick:B})]),_:1})]),body:u(()=>[l("div",Ft,[o(d,{stats:s(k),loading:s(S),variant:"global"},null,8,["stats","loading"]),s(k)&&s(k).dailyRuns.length>0?(a(),A(p,{key:0,data:s(k).dailyRuns,title:"Run Activity"},null,8,["data"])):C("",!0),s(M)?(a(),m("div",Bt,[o(x,{name:"i-lucide-loader-2",class:"w-8 h-8 animate-spin text-neutral-400"})])):s(R).length===0?(a(),m("div",Tt,[o(x,{name:"i-lucide-bot",class:"w-12 h-12 mb-4"}),t[3]||(t[3]=l("p",{class:"text-lg font-medium"}," No agents yet ",-1)),t[4]||(t[4]=l("p",{class:"text-sm"}," Create your first scheduled agent to automate tasks ",-1)),o(i,{class:"mt-4",icon:"i-lucide-plus",label:"Create Agent",onClick:B})])):(a(),m("div",Et,[t[6]||(t[6]=l("h2",{class:"text-lg font-semibold"}," Agents ",-1)),(a(!0),m(E,null,z(s(R),e=>(a(),A(ot,{key:e.id,class:"cursor-pointer transition-all hover:ring-2 hover:ring-primary/50",onClick:_=>K(e)},{default:u(()=>[l("div",zt,[l("div",Dt,[l("div",Mt,[l("h3",Pt,f(e.name),1),F(e.id)?(a(),A(T,{key:0,color:"info",variant:"subtle",size:"sm"},{default:u(()=>[o(x,{name:"i-lucide-loader-2",class:"w-3 h-3 animate-spin mr-1"}),t[5]||(t[5]=y(" Running ",-1))]),_:1})):e.lastStatus?(a(),A(T,{key:1,color:et(e.lastStatus),size:"sm"},{default:u(()=>[y(f(e.lastStatus),1)]),_:2},1032,["color"])):C("",!0)]),e.description?(a(),m("p",Vt,f(e.description),1)):C("",!0),l("div",jt,[l("span",Ot,[o(x,{name:"i-lucide-clock"}),y(" "+f(J(e.schedule)),1)]),e.lastRunAt?(a(),m("span",Gt,[o(x,{name:"i-lucide-activity"}),y(" "+f(Q(e.lastRunAt)),1)])):C("",!0),e.maxBudgetUsd?(a(),m("span",Wt,[o(x,{name:"i-lucide-dollar-sign"}),y(" $"+f(e.maxBudgetUsd)+" limit ",1)])):C("",!0)])]),l("div",qt,[o(nt,{"model-value":e.enabled,onClick:t[0]||(t[0]=$(()=>{},["stop"])),"onUpdate:modelValue":_=>Y(e.id)},null,8,["model-value","onUpdate:modelValue"]),F(e.id)?(a(),A(i,{key:0,icon:"i-lucide-square",variant:"ghost",size:"sm",color:"error",onClick:$(_=>tt(e.id,_),["stop"])},null,8,["onClick"])):(a(),A(i,{key:1,icon:"i-lucide-play",variant:"ghost",size:"sm",disabled:!e.enabled,onClick:$(_=>Z(e.id,_),["stop"])},null,8,["disabled","onClick"])),o(i,{icon:"i-lucide-pencil",variant:"ghost",size:"sm",onClick:$(_=>H(e,_),["stop"])},null,8,["onClick"])])])]),_:2},1032,["onClick"]))),128))]))])]),_:1}),o(it,{open:s(v),"onUpdate:open":t[2]||(t[2]=e=>mt(v)?v.value=e:null)},{title:u(()=>[y(f(s(h)?"Edit Agent":"New Agent"),1)]),body:u(()=>[o(st,{agent:s(h),onSubmit:X,onCancel:t[1]||(t[1]=e=>v.value=!1)},null,8,["agent"])]),_:1},8,["open"])])}}});export{ze as default};
1
+ import{a as rt,ag as lt,an as ct,e as b,f as ut,q as dt,G as m,V as o,U as u,ai as mt,C as s,T as a,ab as l,S as A,a9 as C,_ as pt,Y as _t,aj as E,ak as V,ae as f,aa as y,al as $}from"./D6tVZcRs.js";import{_ as ft}from"./9O1MXkck.js";import{_ as gt,a as vt}from"./CfCXpVn5.js";import{u as ht,_ as yt,a as kt,b as xt}from"./Dkap2-Pj.js";import{c as At}from"./DQhm-UPG.js";import{_ as wt}from"./BnMTFF5R.js";import{_ as bt}from"./7rT1DCe2.js";import{_ as Ct}from"./DXJ9PxCv.js";import{_ as $t}from"./BVO3XpHT.js";import{u as St}from"./Da2vwoYG.js";import{u as Ut}from"./B-DMcEU9.js";import"./C8ut0f5H.js";import"./CqkleIqs.js";import"./ZvG7a1W3.js";import"./D12qPplu.js";import"./C7m9zGMG.js";import"./OlF0QnKF.js";import"./pdYvpiud.js";import"./DlAUqK2U.js";import"./ByLsRRoQ.js";import"./OeVS0Rsb.js";import"./BAZ8sewA.js";import"./IYCBGuRS.js";import"./B6om4MW2.js";import"./BvFYnRMR.js";import"./CAWbHTgy.js";import"./B2wI_pYg.js";import"./sBzyvWMJ.js";import"./DvHS7_h2.js";import"./DWZ9ieYa.js";import"./CLkkdThv.js";import"./B5FuOh7E.js";import"./BWuL2CzO.js";import"./qcVwZv8e.js";import"./C6Y-ieo6.js";import"./DwSY6_2U.js";import"./BNeeERBt.js";import"./CkwPRs1D.js";import"./Vcq4gwWv.js";import"./DuzpliIL.js";import"./DB2zZev7.js";import"./BNJJSRKh.js";import"./DlPOQpH_.js";const Rt=At(xt),Nt={class:"contents"},Ft={class:"p-4 space-y-6"},Bt={key:1,class:"flex items-center justify-center h-64"},Tt={key:2,class:"flex flex-col items-center justify-center h-64 text-neutral-500"},Et={key:3,class:"space-y-4"},Vt={class:"flex items-start justify-between gap-4"},zt={class:"flex-1 min-w-0"},Dt={class:"flex items-center gap-2"},Mt={class:"font-medium truncate"},Pt={key:0,class:"text-sm text-muted truncate mt-1"},jt={class:"flex items-center gap-4 mt-2 text-sm text-muted"},Ot={class:"flex items-center gap-1"},Gt={key:0,class:"flex items-center gap-1"},qt={key:1,class:"flex items-center gap-1"},Lt={class:"flex items-center gap-2"},Ve=rt({__name:"index",setup(Wt){const g=lt(),z=ct(),{agents:R,loading:D,fetchAgents:M,createAgent:P,updateAgent:j,toggleEnabled:O,runAgent:G,cancelAgent:q,fetchGlobalStats:L}=ht(),{isAgentRunning:W}=St(),{agentStatsPeriod:N}=Ut(),w=b(N.value),k=b(null),S=b(!1);function F(n){return W(n)?!0:k.value?.runningAgentIds?.includes(n)??!1}const v=b(!1),h=b(null),I=[{label:"24h",value:"24h"},{label:"7d",value:"7d"},{label:"30d",value:"30d"}];function J(n){const t=n.split(" ");if(t.length!==5)return n;const i=t[0],r=t[1],c=t[2],d=t[3],p=t[4];return i==="0"&&r==="*"&&c==="*"&&d==="*"&&p==="*"?"Every hour":i==="*/5"&&r==="*"&&c==="*"&&d==="*"&&p==="*"?"Every 5 minutes":c==="*"&&d==="*"&&p==="*"&&r!=="*"?`Daily at ${r}:${i.padStart(2,"0")}`:p==="0"&&c==="*"&&d==="*"?`Weekly on Sunday at ${r}:${i.padStart(2,"0")}`:n}function Y(n){if(!n)return"Never";const t=new Date(n),r=new Date().getTime()-t.getTime(),c=Math.floor(r/6e4),d=Math.floor(r/36e5),p=Math.floor(r/864e5);return c<1?"Just now":c<60?`${c}m ago`:d<24?`${d}h ago`:`${p}d ago`}function B(){h.value=null,v.value=!0}function H(n,t){t.stopPropagation(),h.value=n,v.value=!0}function K(n){z.push(`/agents/${n.id}`)}async function Q(n){try{h.value?(await j(h.value.id,n),g.add({title:"Agent updated",color:"success",icon:"i-lucide-check"})):(await P(n),g.add({title:"Agent created",color:"success",icon:"i-lucide-check"}),U()),v.value=!1,h.value=null}catch(t){g.add({title:"Failed to save agent",description:t instanceof Error?t.message:"An unexpected error occurred",color:"error",icon:"i-lucide-alert-circle"})}}async function X(n){try{await O(n)}catch{g.add({title:"Failed to toggle agent",color:"error",icon:"i-lucide-alert-circle"})}}async function Z(n,t){t.stopPropagation();try{await G(n)}catch{g.add({title:"Failed to run agent",color:"error",icon:"i-lucide-alert-circle"})}}async function tt(n,t){t.stopPropagation();try{await q(n),g.add({title:"Agent cancelled",color:"warning",icon:"i-lucide-x-circle"})}catch{g.add({title:"Failed to cancel agent",color:"error",icon:"i-lucide-alert-circle"})}}function et(n){switch(n){case"success":return"success";case"error":return"error";case"budget_exceeded":return"warning";case"running":return"info";case"cancelled":return"neutral";default:return"neutral"}}async function U(){S.value=!0;try{k.value=await L(w.value)}catch{}finally{S.value=!1}}return ut(w,n=>{N.value=n,U()}),dt(async()=>{await M(),U()}),(n,t)=>{const i=_t,r=ft,c=vt,d=yt,p=Rt,x=pt,T=wt,nt=bt,ot=Ct,at=gt,st=kt,it=$t;return a(),m("div",Nt,[o(at,{id:"agents",grow:""},{header:u(()=>[o(c,{title:"Scheduled Agents"},{right:u(()=>[o(r,null,{default:u(()=>[(a(),m(E,null,V(I,e=>o(i,{key:e.value,color:s(w)===e.value?"primary":"neutral",variant:s(w)===e.value?"solid":"ghost",size:"sm",onClick:_=>w.value=e.value},{default:u(()=>[y(f(e.label),1)]),_:2},1032,["color","variant","onClick"])),64))]),_:1}),o(i,{icon:"i-lucide-plus",label:"New Agent",onClick:B})]),_:1})]),body:u(()=>[l("div",Ft,[o(d,{stats:s(k),loading:s(S),variant:"global"},null,8,["stats","loading"]),s(k)&&s(k).dailyRuns.length>0?(a(),A(p,{key:0,data:s(k).dailyRuns,title:"Run Activity"},null,8,["data"])):C("",!0),s(D)?(a(),m("div",Bt,[o(x,{name:"i-lucide-loader-2",class:"w-8 h-8 animate-spin text-neutral-400"})])):s(R).length===0?(a(),m("div",Tt,[o(x,{name:"i-lucide-bot",class:"w-12 h-12 mb-4"}),t[3]||(t[3]=l("p",{class:"text-lg font-medium"}," No agents yet ",-1)),t[4]||(t[4]=l("p",{class:"text-sm"}," Create your first scheduled agent to automate tasks ",-1)),o(i,{class:"mt-4",icon:"i-lucide-plus",label:"Create Agent",onClick:B})])):(a(),m("div",Et,[t[6]||(t[6]=l("h2",{class:"text-lg font-semibold"}," Agents ",-1)),(a(!0),m(E,null,V(s(R),e=>(a(),A(ot,{key:e.id,class:"cursor-pointer transition-all hover:ring-2 hover:ring-primary/50",onClick:_=>K(e)},{default:u(()=>[l("div",Vt,[l("div",zt,[l("div",Dt,[l("h3",Mt,f(e.name),1),F(e.id)?(a(),A(T,{key:0,color:"info",variant:"subtle",size:"sm"},{default:u(()=>[o(x,{name:"i-lucide-loader-2",class:"w-3 h-3 animate-spin mr-1"}),t[5]||(t[5]=y(" Running ",-1))]),_:1})):e.lastStatus?(a(),A(T,{key:1,color:et(e.lastStatus),size:"sm"},{default:u(()=>[y(f(e.lastStatus),1)]),_:2},1032,["color"])):C("",!0)]),e.description?(a(),m("p",Pt,f(e.description),1)):C("",!0),l("div",jt,[l("span",Ot,[o(x,{name:"i-lucide-clock"}),y(" "+f(J(e.schedule)),1)]),e.lastRunAt?(a(),m("span",Gt,[o(x,{name:"i-lucide-activity"}),y(" "+f(Y(e.lastRunAt)),1)])):C("",!0),e.maxBudgetUsd?(a(),m("span",qt,[o(x,{name:"i-lucide-dollar-sign"}),y(" $"+f(e.maxBudgetUsd)+" limit ",1)])):C("",!0)])]),l("div",Lt,[o(nt,{"model-value":e.enabled,onClick:t[0]||(t[0]=$(()=>{},["stop"])),"onUpdate:modelValue":_=>X(e.id)},null,8,["model-value","onUpdate:modelValue"]),F(e.id)?(a(),A(i,{key:0,icon:"i-lucide-square",variant:"ghost",size:"sm",color:"error",onClick:$(_=>tt(e.id,_),["stop"])},null,8,["onClick"])):(a(),A(i,{key:1,icon:"i-lucide-play",variant:"ghost",size:"sm",disabled:!e.enabled,onClick:$(_=>Z(e.id,_),["stop"])},null,8,["disabled","onClick"])),o(i,{icon:"i-lucide-pencil",variant:"ghost",size:"sm",onClick:$(_=>H(e,_),["stop"])},null,8,["onClick"])])])]),_:2},1032,["onClick"]))),128))]))])]),_:1}),o(it,{open:s(v),"onUpdate:open":t[2]||(t[2]=e=>mt(v)?v.value=e:null)},{title:u(()=>[y(f(s(h)?"Edit Agent":"New Agent"),1)]),body:u(()=>[o(st,{agent:s(h),onSubmit:Q,onCancel:t[1]||(t[1]=e=>v.value=!1)},null,8,["agent"])]),_:1},8,["open"])])}}});export{Ve as default};
@@ -1 +1 @@
1
- import{ao as f,N as v,c as p,am as n,Q as m,R as t,S as y,G as l,a9 as d,U as s,a4 as i,C as g,a3 as h}from"./2dNDtTiv.js";const b={slots:{root:"rounded-lg overflow-hidden",header:"p-4 sm:px-6",body:"p-4 sm:p-6",footer:"p-4 sm:px-6"},variants:{variant:{solid:{root:"bg-inverted text-inverted"},outline:{root:"bg-default ring ring-default divide-y divide-default"},soft:{root:"bg-elevated/50 divide-y divide-default"},subtle:{root:"bg-elevated/50 ring ring-default divide-y divide-default"}}},defaultVariants:{variant:"outline"}},q={__name:"UCard",props:{as:{type:null,required:!1},variant:{type:null,required:!1},class:{type:null,required:!1},ui:{type:null,required:!1}},setup(u){const e=u,o=f(),c=v(),a=p(()=>n({extend:n(b),...c.ui?.card||{}})({variant:e.variant}));return(r,C)=>(t(),m(g(h),{as:u.as,"data-slot":"root",class:s(a.value.root({class:[e.ui?.root,e.class]}))},{default:y(()=>[o.header?(t(),l("div",{key:0,"data-slot":"header",class:s(a.value.header({class:e.ui?.header}))},[i(r.$slots,"header")],2)):d("",!0),o.default?(t(),l("div",{key:1,"data-slot":"body",class:s(a.value.body({class:e.ui?.body}))},[i(r.$slots,"default")],2)):d("",!0),o.footer?(t(),l("div",{key:2,"data-slot":"footer",class:s(a.value.footer({class:e.ui?.footer}))},[i(r.$slots,"footer")],2)):d("",!0)]),_:3},8,["as","class"]))}};export{q as _};
1
+ import{ao as f,P as v,c as p,am as n,S as m,T as t,U as y,G as l,a9 as d,W as s,a4 as i,C as g,a3 as h}from"./D6tVZcRs.js";const b={slots:{root:"rounded-lg overflow-hidden",header:"p-4 sm:px-6",body:"p-4 sm:p-6",footer:"p-4 sm:px-6"},variants:{variant:{solid:{root:"bg-inverted text-inverted"},outline:{root:"bg-default ring ring-default divide-y divide-default"},soft:{root:"bg-elevated/50 divide-y divide-default"},subtle:{root:"bg-elevated/50 ring ring-default divide-y divide-default"}}},defaultVariants:{variant:"outline"}},q={__name:"UCard",props:{as:{type:null,required:!1},variant:{type:null,required:!1},class:{type:null,required:!1},ui:{type:null,required:!1}},setup(u){const e=u,o=f(),c=v(),a=p(()=>n({extend:n(b),...c.ui?.card||{}})({variant:e.variant}));return(r,C)=>(t(),m(g(h),{as:u.as,"data-slot":"root",class:s(a.value.root({class:[e.ui?.root,e.class]}))},{default:y(()=>[o.header?(t(),l("div",{key:0,"data-slot":"header",class:s(a.value.header({class:e.ui?.header}))},[i(r.$slots,"header")],2)):d("",!0),o.default?(t(),l("div",{key:1,"data-slot":"body",class:s(a.value.body({class:e.ui?.body}))},[i(r.$slots,"default")],2)):d("",!0),o.footer?(t(),l("div",{key:2,"data-slot":"footer",class:s(a.value.footer({class:e.ui?.footer}))},[i(r.$slots,"footer")],2)):d("",!0)]),_:3},8,["as","class"]))}};export{q as _};
@@ -1 +1 @@
1
- import{aq as g,ao as S,ar as V,N as q,c as u,e as C,q as b,as as M,f as i,at as U,Q as m,R as c,S as _,au as B,C as I,aU as $,U as k,am as p}from"./2dNDtTiv.js";import{_ as w}from"./CPutXj8l.js";import"./D0ifH682.js";import"./CYPO5o_C.js";import"./BIXrSYwR.js";import"./DH4YkDAi.js";import"./CWyMCJQH.js";import"./JbHa4oXq.js";const x={slots:{root:"my-5 gap-4"}},R={__name:"ProseTabs",props:g({defaultValue:{type:String,required:!1,default:"0"},sync:{type:String,required:!1},hash:{type:String,required:!1},class:{type:null,required:!1},ui:{type:void 0,required:!1}},{modelValue:{type:String},modelModifiers:{}}),emits:["update:modelValue"],setup(r){const t=r,d=S(),s=V(r,"modelValue"),f=q(),y=u(()=>p({extend:p(x),...f.ui?.prose?.tabs||{}})),n=C(1),h=u(()=>(n.value,d.default?.()?.flatMap(l).filter(Boolean)||[]));function l(e,a){return typeof e.type=="symbol"?e.children?.map(l):{index:a,label:e.props?.label||`${a}`,description:e.props?.description,icon:e.props?.icon,component:e}}b(()=>{if(t.sync){const e=`tabs-${t.sync}`,a=M(e,()=>localStorage.getItem(e));i(a,()=>{a.value&&(s.value=a.value)},{immediate:!0}),i(s,()=>{s.value&&(a.value=s.value,localStorage.setItem(e,s.value))})}});async function v(){if(t.hash){const e=t.hash.startsWith("#")?t.hash:`#${t.hash}`;setTimeout(()=>{document.querySelector(e)?.scrollIntoView()},200)}}return U(()=>n.value++),(e,a)=>(c(),m(w,{modelValue:s.value,"onUpdate:modelValue":[a[0]||(a[0]=o=>s.value=o),v],color:"primary",variant:"link",items:h.value,class:k(t.class),"unmount-on-hide":!1,ui:I($)(y.value(),t.ui)},{content:_(({item:o})=>[(c(),m(B(o.component)))]),_:1},8,["modelValue","items","class","ui"]))}};export{R as default};
1
+ import{aq as g,ao as S,ar as V,P as q,c as u,e as C,q as b,as as M,f as i,at as U,S as m,T as c,U as _,au as B,C as I,aU as $,W as k,am as p}from"./D6tVZcRs.js";import{_ as w}from"./DNcOC5zj.js";import"./CxRnB4NC.js";import"./DwSY6_2U.js";import"./IYCBGuRS.js";import"./C8AtdrMH.js";import"./DWZ9ieYa.js";import"./BnMTFF5R.js";const x={slots:{root:"my-5 gap-4"}},E={__name:"ProseTabs",props:g({defaultValue:{type:String,required:!1,default:"0"},sync:{type:String,required:!1},hash:{type:String,required:!1},class:{type:null,required:!1},ui:{type:void 0,required:!1}},{modelValue:{type:String},modelModifiers:{}}),emits:["update:modelValue"],setup(r){const t=r,d=S(),s=V(r,"modelValue"),f=q(),y=u(()=>p({extend:p(x),...f.ui?.prose?.tabs||{}})),n=C(1),h=u(()=>(n.value,d.default?.()?.flatMap(l).filter(Boolean)||[]));function l(e,a){return typeof e.type=="symbol"?e.children?.map(l):{index:a,label:e.props?.label||`${a}`,description:e.props?.description,icon:e.props?.icon,component:e}}b(()=>{if(t.sync){const e=`tabs-${t.sync}`,a=M(e,()=>localStorage.getItem(e));i(a,()=>{a.value&&(s.value=a.value)},{immediate:!0}),i(s,()=>{s.value&&(a.value=s.value,localStorage.setItem(e,s.value))})}});async function v(){if(t.hash){const e=t.hash.startsWith("#")?t.hash:`#${t.hash}`;setTimeout(()=>{document.querySelector(e)?.scrollIntoView()},200)}}return U(()=>n.value++),(e,a)=>(c(),m(w,{modelValue:s.value,"onUpdate:modelValue":[a[0]||(a[0]=o=>s.value=o),v],color:"primary",variant:"link",items:h.value,class:k(t.class),"unmount-on-hide":!1,ui:I($)(y.value(),t.ui)},{content:_(({item:o})=>[(c(),m(B(o.component)))]),_:1},8,["modelValue","items","class","ui"]))}};export{E as default};
@@ -1 +1 @@
1
- import{ag as O,r as f,e as r}from"./2dNDtTiv.js";import{s as W}from"./BaZwjF8o.js";const m={task:{enabled:!0},reminder:{enabled:!0},agent:{enabled:!0},memory:{enabled:!0},project:{enabled:!0},secret:{enabled:!0},document:{enabled:!1},hook:{enabled:!1},conversation:{enabled:!1},bridge:{enabled:!0}},n=r("disconnected"),a=r(new Set),l=r({...m}),t=r(null),i=r(0),$=5,x=2e3;let c=null,d=!1,p=!1;const R={create:"i-lucide-plus-circle",edit:"i-lucide-pencil",delete:"i-lucide-trash-2",restore:"i-lucide-undo-2",run:"i-lucide-play",cancel:"i-lucide-x-circle",complete:"i-lucide-check-circle",fail:"i-lucide-alert-circle"};function E(){const I=O();function h(){return`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/notifications`}async function v(){if(!p)try{const e=await $fetch("/api/settings");l.value={...m,...e.data.notifications},p=!0}catch{console.warn("[notification-bus] Failed to load preferences, using defaults")}}function w(e){e.resource==="agent"&&e.resourceId&&(e.action==="run"?a.value.add(e.resourceId):(e.action==="complete"||e.action==="fail"||e.action==="cancel")&&a.value.delete(e.resourceId));const o=l.value[e.resource];o?.enabled&&(o.subtypes&&o.subtypes[e.action]===!1||I.add({title:e.title||"Notification",description:e.message,icon:R[e.action]||"i-lucide-bell",color:e.color||"info"}))}function g(){if(t.value?.readyState===WebSocket.OPEN||d&&n.value==="connecting")return;d=!0,n.value="connecting";const e=new WebSocket(h());t.value=e,e.onopen=()=>{n.value="connected",i.value=0,console.log("[notification-bus] Connected"),v(),k()},e.onmessage=o=>{try{const s=JSON.parse(o.data),u=s.type;if(u==="pong"||u==="connected")return;u==="resource_change"&&w(s)}catch(s){console.error("[notification-bus] Failed to parse message:",s)}},e.onclose=()=>{n.value="disconnected",b(),i.value<$&&(i.value++,console.log(`[notification-bus] Reconnecting (attempt ${i.value})...`),setTimeout(g,x*i.value))},e.onerror=()=>{n.value="error"}}function P(){b(),t.value&&(t.value.close(),t.value=null),n.value="disconnected",d=!1}function S(){t.value?.readyState===WebSocket.OPEN&&t.value.send(JSON.stringify({type:"ping"}))}function k(){c&&clearInterval(c),c=W(S,3e4)}function b(){c&&(clearInterval(c),c=null)}function N(e){return a.value.has(e)}function A(e){l.value=e}return{status:f(n),runningAgentIds:f(a),notificationPreferences:f(l),isAgentRunning:N,connect:g,disconnect:P,loadPreferences:v,updatePreferences:A}}export{m as d,E as u};
1
+ import{ag as O,r as f,e as r}from"./D6tVZcRs.js";import{s as W}from"./DlPOQpH_.js";const m={task:{enabled:!0},reminder:{enabled:!0},agent:{enabled:!0},memory:{enabled:!0},project:{enabled:!0},secret:{enabled:!0},document:{enabled:!1},hook:{enabled:!1},conversation:{enabled:!1},bridge:{enabled:!0}},n=r("disconnected"),a=r(new Set),l=r({...m}),t=r(null),i=r(0),$=5,x=2e3;let c=null,d=!1,p=!1;const R={create:"i-lucide-plus-circle",edit:"i-lucide-pencil",delete:"i-lucide-trash-2",restore:"i-lucide-undo-2",run:"i-lucide-play",cancel:"i-lucide-x-circle",complete:"i-lucide-check-circle",fail:"i-lucide-alert-circle"};function E(){const I=O();function h(){return`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/notifications`}async function v(){if(!p)try{const e=await $fetch("/api/settings");l.value={...m,...e.data.notifications},p=!0}catch{console.warn("[notification-bus] Failed to load preferences, using defaults")}}function w(e){e.resource==="agent"&&e.resourceId&&(e.action==="run"?a.value.add(e.resourceId):(e.action==="complete"||e.action==="fail"||e.action==="cancel")&&a.value.delete(e.resourceId));const o=l.value[e.resource];o?.enabled&&(o.subtypes&&o.subtypes[e.action]===!1||I.add({title:e.title||"Notification",description:e.message,icon:R[e.action]||"i-lucide-bell",color:e.color||"info"}))}function g(){if(t.value?.readyState===WebSocket.OPEN||d&&n.value==="connecting")return;d=!0,n.value="connecting";const e=new WebSocket(h());t.value=e,e.onopen=()=>{n.value="connected",i.value=0,console.log("[notification-bus] Connected"),v(),k()},e.onmessage=o=>{try{const s=JSON.parse(o.data),u=s.type;if(u==="pong"||u==="connected")return;u==="resource_change"&&w(s)}catch(s){console.error("[notification-bus] Failed to parse message:",s)}},e.onclose=()=>{n.value="disconnected",b(),i.value<$&&(i.value++,console.log(`[notification-bus] Reconnecting (attempt ${i.value})...`),setTimeout(g,x*i.value))},e.onerror=()=>{n.value="error"}}function P(){b(),t.value&&(t.value.close(),t.value=null),n.value="disconnected",d=!1}function S(){t.value?.readyState===WebSocket.OPEN&&t.value.send(JSON.stringify({type:"ping"}))}function k(){c&&clearInterval(c),c=W(S,3e4)}function b(){c&&(clearInterval(c),c=null)}function N(e){return a.value.has(e)}function A(e){l.value=e}return{status:f(n),runningAgentIds:f(a),notificationPreferences:f(l),isAgentRunning:N,connect:g,disconnect:P,loadPreferences:v,updatePreferences:A}}export{m as d,E as u};
@@ -1 +1 @@
1
- import{N as c,c as u,G as n,R as p,ab as i,a4 as d,U as a,am as o}from"./2dNDtTiv.js";const m={slots:{root:"relative my-5 overflow-x-auto",base:"w-full border-separate border-spacing-0 rounded-md"}},v={__name:"ProseTable",props:{class:{type:null,required:!1},ui:{type:null,required:!1}},setup(t){const e=t,l=c(),s=u(()=>o({extend:o(m),...l.ui?.prose?.table||{}})());return(r,f)=>(p(),n("div",{class:a(s.value.root({class:[e.ui?.root,e.class]}))},[i("table",{class:a(s.value.base({class:e.ui?.base}))},[d(r.$slots,"default")],2)],2))}};export{v as default};
1
+ import{P as c,c as u,G as n,T as p,ab as i,a4 as d,W as a,am as o}from"./D6tVZcRs.js";const m={slots:{root:"relative my-5 overflow-x-auto",base:"w-full border-separate border-spacing-0 rounded-md"}},v={__name:"ProseTable",props:{class:{type:null,required:!1},ui:{type:null,required:!1}},setup(t){const e=t,l=c(),s=u(()=>o({extend:o(m),...l.ui?.prose?.table||{}})());return(r,f)=>(p(),n("div",{class:a(s.value.root({class:[e.ui?.root,e.class]}))},[i("table",{class:a(s.value.base({class:e.ui?.base}))},[d(r.$slots,"default")],2)],2))}};export{v as default};
@@ -1 +1 @@
1
- import{ac as i,c as d,G as t,R as n,a4 as a,C as p}from"./2dNDtTiv.js";const u=["id"],f=["href"],k={__name:"ProseH6",props:{id:{type:String,required:!1}},setup(r){const e=r,{headings:o}=i().public.mdc,c=d(()=>e.id&&(typeof o?.anchorLinks=="boolean"&&o?.anchorLinks===!0||typeof o?.anchorLinks=="object"&&o?.anchorLinks?.h6));return(s,h)=>(n(),t("h6",{id:e.id},[e.id&&p(c)?(n(),t("a",{key:0,href:`#${e.id}`},[a(s.$slots,"default")],8,f)):a(s.$slots,"default",{key:1})],8,u))}};export{k as default};
1
+ import{ac as i,c as d,G as t,T as n,a4 as a,C as p}from"./D6tVZcRs.js";const u=["id"],f=["href"],k={__name:"ProseH6",props:{id:{type:String,required:!1}},setup(r){const e=r,{headings:o}=i().public.mdc,c=d(()=>e.id&&(typeof o?.anchorLinks=="boolean"&&o?.anchorLinks===!0||typeof o?.anchorLinks=="object"&&o?.anchorLinks?.h6));return(s,h)=>(n(),t("h6",{id:e.id},[e.id&&p(c)?(n(),t("a",{key:0,href:`#${e.id}`},[a(s.$slots,"default")],8,f)):a(s.$slots,"default",{key:1})],8,u))}};export{k as default};
@@ -1 +1 @@
1
- import{N as p,ac as m,c as n,G as c,R as r,a4 as d,U as o,ab as g,T as f,C as v,_ as b,am as u}from"./2dNDtTiv.js";const y={slots:{base:["relative text-xl text-highlighted font-bold mt-8 mb-3 scroll-mt-[calc(32px+45px+var(--ui-header-height))] lg:scroll-mt-[calc(32px+var(--ui-header-height))] [&>a]:focus-visible:outline-primary [&>a>code]:border-dashed hover:[&>a>code]:border-primary hover:[&>a>code]:text-primary [&>a>code]:text-lg/6 [&>a>code]:font-bold","[&>a>code]:transition-colors"],leading:["absolute -ms-8 top-0.5 opacity-0 group-hover:opacity-100 group-focus:opacity-100 p-1 bg-elevated hover:text-primary rounded-md hidden lg:flex text-muted","transition"],leadingIcon:"size-4 shrink-0",link:"group lg:ps-2 lg:-ms-2"}},x=["id"],k=["href"],$={__name:"ProseH3",props:{id:{type:String,required:!1},class:{type:null,required:!1},ui:{type:null,required:!1}},setup(a){const e=a,t=p(),{headings:l}=m().public?.mdc||{},s=n(()=>u({extend:u(y),...t.ui?.prose?.h3||{}})()),h=n(()=>e.id&&typeof l?.anchorLinks=="object"&&l.anchorLinks.h3);return(i,C)=>(r(),c("h3",{id:a.id,class:o(s.value.base({class:e.class}))},[a.id&&h.value?(r(),c("a",{key:0,href:`#${a.id}`,class:o(s.value.link({class:e.ui?.link}))},[g("span",{class:o(s.value.leading({class:e.ui?.leading}))},[f(b,{name:v(t).ui.icons.hash,class:o(s.value.leadingIcon({class:e.ui?.leadingIcon}))},null,8,["name","class"])],2),d(i.$slots,"default")],10,k)):d(i.$slots,"default",{key:1})],10,x))}};export{$ as default};
1
+ import{P as p,ac as m,c as n,G as c,T as r,a4 as d,W as o,ab as g,V as f,C as v,_ as b,am as u}from"./D6tVZcRs.js";const y={slots:{base:["relative text-xl text-highlighted font-bold mt-8 mb-3 scroll-mt-[calc(32px+45px+var(--ui-header-height))] lg:scroll-mt-[calc(32px+var(--ui-header-height))] [&>a]:focus-visible:outline-primary [&>a>code]:border-dashed hover:[&>a>code]:border-primary hover:[&>a>code]:text-primary [&>a>code]:text-lg/6 [&>a>code]:font-bold","[&>a>code]:transition-colors"],leading:["absolute -ms-8 top-0.5 opacity-0 group-hover:opacity-100 group-focus:opacity-100 p-1 bg-elevated hover:text-primary rounded-md hidden lg:flex text-muted","transition"],leadingIcon:"size-4 shrink-0",link:"group lg:ps-2 lg:-ms-2"}},x=["id"],k=["href"],$={__name:"ProseH3",props:{id:{type:String,required:!1},class:{type:null,required:!1},ui:{type:null,required:!1}},setup(a){const e=a,t=p(),{headings:l}=m().public?.mdc||{},s=n(()=>u({extend:u(y),...t.ui?.prose?.h3||{}})()),h=n(()=>e.id&&typeof l?.anchorLinks=="object"&&l.anchorLinks.h3);return(i,C)=>(r(),c("h3",{id:a.id,class:o(s.value.base({class:e.class}))},[a.id&&h.value?(r(),c("a",{key:0,href:`#${a.id}`,class:o(s.value.link({class:e.ui?.link}))},[g("span",{class:o(s.value.leading({class:e.ui?.leading}))},[f(b,{name:v(t).ui.icons.hash,class:o(s.value.leadingIcon({class:e.ui?.leadingIcon}))},null,8,["name","class"])],2),d(i.$slots,"default")],10,k)):d(i.$slots,"default",{key:1})],10,x))}};export{$ as default};
@@ -1 +1 @@
1
- import{a as b,aR as x,aQ as T,aP as N,a_ as C,Q as h,R as y,S as f,a4 as g,C as e,a3 as q,e as u,c as B,f as $,q as A,be as D,T as F,V as I,a9 as M,bf as P,k as V}from"./2dNDtTiv.js";import{u as H}from"./CWyMCJQH.js";const[O,E]=x("CollapsibleRoot");var S=b({__name:"CollapsibleRoot",props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},disabled:{type:Boolean,required:!1},unmountOnHide:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["update:open"],setup(l,{expose:i,emit:n}){const o=l,s=T(o,"open",n,{defaultValue:o.defaultOpen,passive:o.open===void 0}),{disabled:r,unmountOnHide:p}=N(o);return E({contentId:"",disabled:r,open:s,unmountOnHide:p,onOpenToggle:()=>{r.value||(s.value=!s.value)}}),i({open:s}),C(),(d,v)=>(y(),h(e(q),{as:d.as,"as-child":o.asChild,"data-state":e(s)?"open":"closed","data-disabled":e(r)?"":void 0},{default:f(()=>[g(d.$slots,"default",{open:e(s)})]),_:3},8,["as","as-child","data-state","data-disabled"]))}}),G=S,Q=b({inheritAttrs:!1,__name:"CollapsibleContent",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["contentFound"],setup(l,{emit:i}){const n=l,o=i,t=O();t.contentId||=H(void 0,"reka-collapsible-content");const s=u(),{forwardRef:r,currentElement:p}=C(),d=u(0),v=u(0),R=B(()=>t.open.value),m=u(R.value),c=u();$(()=>[R.value,s.value?.present],async()=>{await V();const a=p.value;if(!a)return;c.value=c.value||{transitionDuration:a.style.transitionDuration,animationName:a.style.animationName},a.style.transitionDuration="0s",a.style.animationName="none";const _=a.getBoundingClientRect();v.value=_.height,d.value=_.width,m.value||(a.style.transitionDuration=c.value.transitionDuration,a.style.animationName=c.value.animationName)},{immediate:!0});const w=B(()=>m.value&&t.open.value);return A(()=>{requestAnimationFrame(()=>{m.value=!1})}),D(p,"beforematch",a=>{requestAnimationFrame(()=>{t.onOpenToggle(),o("contentFound")})}),(a,_)=>(y(),h(e(P),{ref_key:"presentRef",ref:s,present:a.forceMount||e(t).open.value,"force-mount":!0},{default:f(({present:k})=>[F(e(q),I(a.$attrs,{id:e(t).contentId,ref:e(r),"as-child":n.asChild,as:a.as,hidden:k?void 0:e(t).unmountOnHide.value?"":"until-found","data-state":w.value?void 0:e(t).open.value?"open":"closed","data-disabled":e(t).disabled?.value?"":void 0,style:{"--reka-collapsible-content-height":`${v.value}px`,"--reka-collapsible-content-width":`${d.value}px`}}),{default:f(()=>[!e(t).unmountOnHide.value||k?g(a.$slots,"default",{key:0}):M("v-if",!0)]),_:2},1040,["id","as-child","as","hidden","data-state","data-disabled","style"])]),_:3},8,["present"]))}}),J=Q,j=b({__name:"CollapsibleTrigger",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(l){const i=l;C();const n=O();return(o,t)=>(y(),h(e(q),{type:o.as==="button"?"button":void 0,as:o.as,"as-child":i.asChild,"aria-controls":e(n).contentId,"aria-expanded":e(n).open.value,"data-state":e(n).open.value?"open":"closed","data-disabled":e(n).disabled?.value?"":void 0,disabled:e(n).disabled?.value,onClick:e(n).onOpenToggle},{default:f(()=>[g(o.$slots,"default")]),_:3},8,["type","as","as-child","aria-controls","aria-expanded","data-state","data-disabled","disabled","onClick"]))}}),K=j;export{K as C,J as a,G as b};
1
+ import{a as b,aR as x,aQ as T,aP as N,a_ as C,S as h,T as y,U as f,a4 as g,C as e,a3 as q,e as u,c as B,f as $,q as A,be as D,V as F,X as I,a9 as M,bf as P,k as V}from"./D6tVZcRs.js";import{u as H}from"./DWZ9ieYa.js";const[O,E]=x("CollapsibleRoot");var S=b({__name:"CollapsibleRoot",props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},disabled:{type:Boolean,required:!1},unmountOnHide:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["update:open"],setup(l,{expose:i,emit:n}){const o=l,s=T(o,"open",n,{defaultValue:o.defaultOpen,passive:o.open===void 0}),{disabled:r,unmountOnHide:p}=N(o);return E({contentId:"",disabled:r,open:s,unmountOnHide:p,onOpenToggle:()=>{r.value||(s.value=!s.value)}}),i({open:s}),C(),(d,v)=>(y(),h(e(q),{as:d.as,"as-child":o.asChild,"data-state":e(s)?"open":"closed","data-disabled":e(r)?"":void 0},{default:f(()=>[g(d.$slots,"default",{open:e(s)})]),_:3},8,["as","as-child","data-state","data-disabled"]))}}),X=S,j=b({inheritAttrs:!1,__name:"CollapsibleContent",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["contentFound"],setup(l,{emit:i}){const n=l,o=i,t=O();t.contentId||=H(void 0,"reka-collapsible-content");const s=u(),{forwardRef:r,currentElement:p}=C(),d=u(0),v=u(0),k=B(()=>t.open.value),m=u(k.value),c=u();$(()=>[k.value,s.value?.present],async()=>{await V();const a=p.value;if(!a)return;c.value=c.value||{transitionDuration:a.style.transitionDuration,animationName:a.style.animationName},a.style.transitionDuration="0s",a.style.animationName="none";const _=a.getBoundingClientRect();v.value=_.height,d.value=_.width,m.value||(a.style.transitionDuration=c.value.transitionDuration,a.style.animationName=c.value.animationName)},{immediate:!0});const w=B(()=>m.value&&t.open.value);return A(()=>{requestAnimationFrame(()=>{m.value=!1})}),D(p,"beforematch",a=>{requestAnimationFrame(()=>{t.onOpenToggle(),o("contentFound")})}),(a,_)=>(y(),h(e(P),{ref_key:"presentRef",ref:s,present:a.forceMount||e(t).open.value,"force-mount":!0},{default:f(({present:R})=>[F(e(q),I(a.$attrs,{id:e(t).contentId,ref:e(r),"as-child":n.asChild,as:a.as,hidden:R?void 0:e(t).unmountOnHide.value?"":"until-found","data-state":w.value?void 0:e(t).open.value?"open":"closed","data-disabled":e(t).disabled?.value?"":void 0,style:{"--reka-collapsible-content-height":`${v.value}px`,"--reka-collapsible-content-width":`${d.value}px`}}),{default:f(()=>[!e(t).unmountOnHide.value||R?g(a.$slots,"default",{key:0}):M("v-if",!0)]),_:2},1040,["id","as-child","as","hidden","data-state","data-disabled","style"])]),_:3},8,["present"]))}}),z=j,L=b({__name:"CollapsibleTrigger",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(l){const i=l;C();const n=O();return(o,t)=>(y(),h(e(q),{type:o.as==="button"?"button":void 0,as:o.as,"as-child":i.asChild,"aria-controls":e(n).contentId,"aria-expanded":e(n).open.value,"data-state":e(n).open.value?"open":"closed","data-disabled":e(n).disabled?.value?"":void 0,disabled:e(n).disabled?.value,onClick:e(n).onOpenToggle},{default:f(()=>[g(o.$slots,"default")]),_:3},8,["type","as","as-child","aria-controls","aria-expanded","data-state","data-disabled","disabled","onClick"]))}}),G=L;export{G as C,z as a,X as b};