@oneclick.dev/cms-core-modules 0.0.105 → 0.0.107

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 (574) hide show
  1. package/dist/Acquisition-DypEyPSO.js +1 -0
  2. package/dist/Acquisition-TCNX-th6.mjs +308 -0
  3. package/dist/AgendaOpeningHoursCard-BIhm0vpV.js +1 -0
  4. package/dist/AgendaOpeningHoursCard-BKUdJxRI.mjs +133 -0
  5. package/dist/AppointmentDetailsCard-C5rQ5jsW.js +1 -0
  6. package/dist/AppointmentDetailsCard-NRHeNP2L.mjs +111 -0
  7. package/dist/AppointmentEditor-BcF8CiD-.mjs +150 -0
  8. package/dist/AppointmentEditor-BlhFtoCm.js +1 -0
  9. package/dist/AppointmentListTable-B-ReBVtV.js +1 -0
  10. package/dist/AppointmentListTable-DHmy-iid.mjs +129 -0
  11. package/dist/Audience-Cq1Gu-Vo.mjs +394 -0
  12. package/dist/Audience-h5PfXPz4.js +1 -0
  13. package/dist/Components-BehelN4r.js +1 -0
  14. package/dist/Components-CR6zukUU.mjs +468 -0
  15. package/dist/Content-C5Iye3t0.mjs +257 -0
  16. package/dist/Content-eOfBx52Y.js +1 -0
  17. package/dist/ContentEditor-BgL4qEeg.mjs +26835 -0
  18. package/dist/ContentEditor-Tlu3w0Hu.js +462 -0
  19. package/dist/CountryBreakdownCard-CWVyB8be.mjs +151 -0
  20. package/dist/CountryBreakdownCard-Db-pMiNe.js +1 -0
  21. package/dist/Create-B1it8S4m.js +1 -0
  22. package/dist/Create-DbYi0FAI.mjs +907 -0
  23. package/dist/DateFormatter-DLrDYkby.mjs +630 -0
  24. package/dist/DateFormatter-Dni0Oq8r.js +1 -0
  25. package/dist/Detail-D-eahJGO.mjs +21 -0
  26. package/dist/Detail-D0kdPPIm.mjs +2757 -0
  27. package/dist/Detail-DAafePYi.mjs +485 -0
  28. package/dist/Detail-DYpv4fYg.js +1 -0
  29. package/dist/Detail-Dc_ui4LM.js +1 -0
  30. package/dist/Detail-DccUekl_.js +1 -0
  31. package/dist/Detail-Dhz0V0Vf.js +1 -0
  32. package/dist/Detail-DjnGY0F8.mjs +282 -0
  33. package/dist/Detail-DplAitHg.mjs +447 -0
  34. package/dist/Detail-SugyeSxb.js +1 -0
  35. package/dist/DeviceBreakdownCard-CzxZT6To.js +1 -0
  36. package/dist/DeviceBreakdownCard-eEwPjzKl.mjs +115 -0
  37. package/dist/EditLayout-Bnz9q_jd.js +1 -0
  38. package/dist/EditLayout-J_DGXb8v.mjs +99 -0
  39. package/dist/Entries-CgpWg6fE.js +1 -0
  40. package/dist/Entries-CkGTXcAq.mjs +575 -0
  41. package/dist/Find-Bz0TNJzk.mjs +164 -0
  42. package/dist/Find-D-ItTXaZ.js +1 -0
  43. package/dist/GlobalStyling-CSQPF7o_.mjs +1162 -0
  44. package/dist/GlobalStyling-DabldMZh.js +15 -0
  45. package/dist/NewReservationDialog-BhIiY2B9.js +1 -0
  46. package/dist/NewReservationDialog-CN49aGcM.mjs +1002 -0
  47. package/dist/OrderDetailDialog-BJ01DZFe.js +1 -0
  48. package/dist/OrderDetailDialog-CoVQ_rzs.mjs +215 -0
  49. package/dist/Overview-9FMgn5hT.mjs +492 -0
  50. package/dist/Overview-BOOwMQ-c.mjs +636 -0
  51. package/dist/Overview-Biz3h60w.js +1 -0
  52. package/dist/Overview-C2K2ofdS.js +1 -0
  53. package/dist/Overview-CFHOXP9N.mjs +123 -0
  54. package/dist/Overview-CTJe7J5_.js +1 -0
  55. package/dist/Overview-Cvj2i9eW.js +1 -0
  56. package/dist/Overview-D2I1F8Dm.mjs +21 -0
  57. package/dist/Overview-DFOc9emt.mjs +345 -0
  58. package/dist/Overview-Dmhfb94Y.js +1 -0
  59. package/dist/Overview-PPzv7weG.mjs +450 -0
  60. package/dist/Overview-qFKcXHVF.js +1 -0
  61. package/dist/Overview-xkmYYTae.mjs +133 -0
  62. package/dist/Overview-yPsLvR2c.js +1 -0
  63. package/dist/PeakHoursCard-CtgEP-ez.mjs +157 -0
  64. package/dist/PeakHoursCard-DPeoMyhu.js +1 -0
  65. package/dist/ProductDetailsCard-B0WhmzO-.mjs +98 -0
  66. package/dist/ProductDetailsCard-C1ROuH6l.js +1 -0
  67. package/dist/RealtimeCard-DQno-Okz.js +1 -0
  68. package/dist/RealtimeCard-dR-g1iDo.mjs +92 -0
  69. package/dist/ReservationDetailDialog-Cdo6h0RD.mjs +2163 -0
  70. package/dist/ReservationDetailDialog-DZTFD2xI.js +349 -0
  71. package/dist/SearchTermsCard-BXJSXz_k.js +1 -0
  72. package/dist/SearchTermsCard-DsaxLKwP.mjs +146 -0
  73. package/dist/SendPush-Bssi-OZD.mjs +150 -0
  74. package/dist/SendPush-BuaYboRH.js +1 -0
  75. package/dist/SeoHealth-CP-kL0us.js +1 -0
  76. package/dist/SeoHealth-Cxp_Gb3Y.mjs +459 -0
  77. package/dist/TableView-7iwBkQ_k.mjs +4757 -0
  78. package/dist/TableView-BB_oIYYZ.js +4 -0
  79. package/dist/TemplateList-CNcM_Kgq.mjs +56 -0
  80. package/dist/TemplateList-VuPcBUJO.js +1 -0
  81. package/dist/TopPagesCard-CvDECn3_.mjs +117 -0
  82. package/dist/TopPagesCard-DNdATXJE.js +1 -0
  83. package/dist/TrafficSourcesCard-BLpBr7u0.mjs +151 -0
  84. package/dist/TrafficSourcesCard-_3gRUCw3.js +1 -0
  85. package/dist/View-DSnUHI7h.mjs +30 -0
  86. package/dist/View-Dbcfpdqh.js +1 -0
  87. package/dist/VisitorStatsCard-CFEnXSjF.mjs +185 -0
  88. package/dist/VisitorStatsCard-C_jhQxDW.js +1 -0
  89. package/dist/_plugin-vue_export-helper-5u7tqpWC.js +1 -0
  90. package/dist/_plugin-vue_export-helper-BJQSo0im.mjs +8 -0
  91. package/dist/agenda-CzMRcQTA.mjs +989 -0
  92. package/dist/agenda-D4zWRYSQ.js +1 -0
  93. package/dist/appointments-9syR5TZE.js +1 -0
  94. package/dist/appointments-BBmOJMhM.mjs +23 -0
  95. package/dist/array-BH1uH7XT.js +1 -0
  96. package/dist/array-DnDL9cFz.mjs +98 -0
  97. package/dist/availability-CAXB7Yd6.js +1 -0
  98. package/dist/availability-Dp7eF-ZK.mjs +215 -0
  99. package/dist/booking-data-Bysf6e5x.mjs +724 -0
  100. package/dist/booking-data-C6SGjC2X.js +1 -0
  101. package/dist/chunk-DQi1bQcV.js +1 -0
  102. package/dist/cms-core-modules.css +2 -1
  103. package/dist/contentManager-D7JxXCwE.js +1 -0
  104. package/dist/contentManager-tfy0x1LD.mjs +22 -0
  105. package/dist/context-AQKfnJ4t.mjs +3809 -0
  106. package/dist/context-ubyMq9Xe.js +54 -0
  107. package/dist/core-Dhgr4ctC.mjs +202 -0
  108. package/dist/core-_HKfBlaZ.js +1 -0
  109. package/dist/countries-MXLT3mVe.mjs +4 -0
  110. package/dist/countries-OCd5qPxG.js +1 -0
  111. package/dist/create-BfNc2C7N.js +1 -0
  112. package/dist/create-C7JlIlIh.mjs +95 -0
  113. package/dist/custom-BwN9-6Mb.js +1 -0
  114. package/dist/custom-INNwaWla.mjs +13 -0
  115. package/dist/dist-BCVg7FKM.js +1 -0
  116. package/dist/dist-DIhK9VWh.mjs +3045 -0
  117. package/dist/edit-BiI2VG60.js +35 -0
  118. package/dist/edit-DD3iFBEh.mjs +1097 -0
  119. package/dist/exceptions-DICMaDcH.mjs +462 -0
  120. package/dist/exceptions-DpWqMNuG.js +1 -0
  121. package/dist/google-Bcc4XZnV.mjs +4 -0
  122. package/dist/google-DTSRmJ51.js +1 -0
  123. package/dist/googleAnalytics-BSaqRR_L.js +1 -0
  124. package/dist/googleAnalytics-Cg-iWblZ.mjs +47 -0
  125. package/dist/index.cjs.js +1 -1
  126. package/dist/index.mjs +1095 -806
  127. package/dist/interpolation-B8OzkMyi.mjs +131 -0
  128. package/dist/interpolation-DpAqtGOW.js +1 -0
  129. package/dist/lib-4wSi00Vr.js +1 -0
  130. package/dist/lib-BZgXUui5.mjs +198 -0
  131. package/dist/line-DJdnFNI7.js +75 -0
  132. package/dist/line-tYLnEDGV.mjs +1500 -0
  133. package/dist/mailTemplates-BNk8fhVS.mjs +23 -0
  134. package/dist/mailTemplates-DswHzyQe.js +1 -0
  135. package/dist/orders-CIc0JlKX.mjs +512 -0
  136. package/dist/orders-DwPSi_pD.js +1 -0
  137. package/dist/payment-BsNWFaDm.js +1 -0
  138. package/dist/payment-Ced5_dpa.mjs +718 -0
  139. package/dist/productCollections-Cuvw_8zC.js +1 -0
  140. package/dist/productCollections-D0AxRlzr.mjs +23 -0
  141. package/dist/products-DUD-ZMkR.mjs +22 -0
  142. package/dist/products-DvX9B-Ul.js +1 -0
  143. package/dist/promoCodes-BCWqN6w4.mjs +23 -0
  144. package/dist/promoCodes-CEZ4LYot.js +1 -0
  145. package/dist/push-notifications-BGp4XWo9.js +1 -0
  146. package/dist/push-notifications-C7W7KuzR.mjs +23 -0
  147. package/dist/regular-BCFrS6lK.mjs +908 -0
  148. package/dist/regular-DBqPgT8C.js +1 -0
  149. package/dist/resources-DwsMmWgm.mjs +669 -0
  150. package/dist/resources-Dz81GkHe.js +1 -0
  151. package/dist/server-handlers.cjs.js +1 -1
  152. package/dist/server-handlers.mjs +1049 -996
  153. package/dist/shippingOptions-C3NEJff1.mjs +23 -0
  154. package/dist/shippingOptions-Cy040ZW1.js +1 -0
  155. package/dist/single-container-BJmmqq65.mjs +468 -0
  156. package/dist/single-container-Xoo0Xzxv.js +58 -0
  157. package/dist/src/appointments/composables/useHorizontalScroll.d.ts +20 -0
  158. package/dist/src/appointments/index.d.ts +9 -12
  159. package/dist/src/appointments/metadata.d.ts +1 -1
  160. package/dist/src/appointments/routes.d.ts +3 -6
  161. package/dist/src/contentManager/components/content-editor/tiptap-extensions/LockBlocks.d.ts +15 -0
  162. package/dist/src/contentManager/components/content-editor/tiptap-extensions/TrailingNodeInContainers.d.ts +4 -1
  163. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/index.d.ts +12 -132
  164. package/dist/src/contentManager/index.d.ts +5 -14
  165. package/dist/src/contentManager/metadata.d.ts +1 -1
  166. package/dist/src/contentManager/routes.d.ts +3 -12
  167. package/dist/src/custom/index.d.ts +2 -2
  168. package/dist/src/custom/routes.d.ts +1 -1
  169. package/dist/src/googleAnalytics/index.d.ts +10 -10
  170. package/dist/src/googleAnalytics/routes.d.ts +1 -1
  171. package/dist/src/lib/interpolation.d.ts +6 -0
  172. package/dist/src/mailTemplates/index.d.ts +3 -3
  173. package/dist/src/mailTemplates/metadata.d.ts +1 -1
  174. package/dist/src/mailTemplates/routes.d.ts +1 -1
  175. package/dist/src/productCollections/index.d.ts +3 -3
  176. package/dist/src/productCollections/metadata.d.ts +1 -1
  177. package/dist/src/productCollections/routes.d.ts +1 -1
  178. package/dist/src/products/index.d.ts +4 -4
  179. package/dist/src/products/metadata.d.ts +1 -1
  180. package/dist/src/products/routes.d.ts +1 -1
  181. package/dist/src/promoCodes/index.d.ts +3 -3
  182. package/dist/src/promoCodes/metadata.d.ts +1 -1
  183. package/dist/src/promoCodes/routes.d.ts +1 -1
  184. package/dist/src/push-notifications/index.d.ts +3 -3
  185. package/dist/src/push-notifications/metadata.d.ts +1 -1
  186. package/dist/src/push-notifications/routes.d.ts +1 -1
  187. package/dist/src/shippingOptions/index.d.ts +3 -3
  188. package/dist/src/shippingOptions/metadata.d.ts +1 -1
  189. package/dist/src/shippingOptions/routes.d.ts +1 -1
  190. package/dist/src/table/flow-builder-extensions/row-item.d.ts +3 -17
  191. package/dist/src/table/index.d.ts +2 -2
  192. package/dist/src/table/routes.d.ts +1 -1
  193. package/dist/src/types/index.d.ts +6 -0
  194. package/dist/src/vue-shim.d.ts +7 -0
  195. package/dist/table-DWw0fs3S.js +1 -0
  196. package/dist/table-LXt5DQOL.mjs +23 -0
  197. package/dist/utils-CVIHqQsU.js +3 -0
  198. package/dist/utils-h3owcMtS.mjs +37 -0
  199. package/dist/vee-validate-zod-BmXMJo8W.js +1 -0
  200. package/dist/vee-validate-zod-D9dZzbWZ.mjs +4985 -0
  201. package/dist/xy-container-CuQSwrtB.mjs +3180 -0
  202. package/dist/xy-container-_6YpscZh.js +158 -0
  203. package/package.json +55 -55
  204. package/dist/Acquisition-Br1Pfny3.js +0 -1
  205. package/dist/Acquisition-CPlZzUBo.mjs +0 -400
  206. package/dist/AgendaOpeningHoursCard-B7ROIPWw.js +0 -1
  207. package/dist/AgendaOpeningHoursCard-Cp4wxUeK.mjs +0 -172
  208. package/dist/AppointmentDetailsCard-33WpATpV.mjs +0 -161
  209. package/dist/AppointmentDetailsCard-DpLM5IrB.js +0 -1
  210. package/dist/AppointmentEditor-BeOtYV6u.mjs +0 -196
  211. package/dist/AppointmentEditor-CaTfbkIf.js +0 -1
  212. package/dist/AppointmentListTable-DZJNmTMb.mjs +0 -177
  213. package/dist/AppointmentListTable-Dieu9US_.js +0 -1
  214. package/dist/Audience-BfkrmBuQ.js +0 -1
  215. package/dist/Audience-DTblSAiL.mjs +0 -489
  216. package/dist/Components-C83O-xlF.mjs +0 -623
  217. package/dist/Components-DXbx0RLV.js +0 -1
  218. package/dist/Content-BHr_rPVY.js +0 -1
  219. package/dist/Content-CYOZKvWK.mjs +0 -358
  220. package/dist/ContentEditor-B1nfKG_5.mjs +0 -30676
  221. package/dist/ContentEditor-DdFU8piH.js +0 -462
  222. package/dist/CountryBreakdownCard-D7BK3nRD.js +0 -1
  223. package/dist/CountryBreakdownCard-DVxNz2DJ.mjs +0 -196
  224. package/dist/Create-BRBh0xjM.mjs +0 -1247
  225. package/dist/Create-qPeQxkdl.js +0 -1
  226. package/dist/DateFormatter-Bw-87W31.mjs +0 -734
  227. package/dist/DateFormatter-CYAD4GBN.js +0 -1
  228. package/dist/Detail-Byk781b4.mjs +0 -26
  229. package/dist/Detail-C1Blq61w.mjs +0 -585
  230. package/dist/Detail-C857g62L.js +0 -1
  231. package/dist/Detail-C8wQiDcv.js +0 -1
  232. package/dist/Detail-CPqug27l.js +0 -1
  233. package/dist/Detail-CjuhjPby.js +0 -1
  234. package/dist/Detail-CtItxMX4.mjs +0 -649
  235. package/dist/Detail-CujdFApD.mjs +0 -379
  236. package/dist/Detail-Dnpnmy4-.mjs +0 -3477
  237. package/dist/Detail-mvSGbnFU.js +0 -1
  238. package/dist/DeviceBreakdownCard-DRhQ9ufG.js +0 -1
  239. package/dist/DeviceBreakdownCard-W1frLe0L.mjs +0 -159
  240. package/dist/EditLayout.vue_vue_type_script_setup_true_lang-DWMqQvHl.mjs +0 -76
  241. package/dist/EditLayout.vue_vue_type_script_setup_true_lang-kpjbVSXg.js +0 -1
  242. package/dist/Entries-BaS6H6ak.js +0 -1
  243. package/dist/Entries-C8UJkrVC.mjs +0 -728
  244. package/dist/Find-B24ZEhYM.mjs +0 -229
  245. package/dist/Find-D4Qa45qC.js +0 -1
  246. package/dist/GlobalStyling-C9VthHWK.mjs +0 -1588
  247. package/dist/GlobalStyling-CnSlXkZc.js +0 -25
  248. package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-9Q7TMm4u.mjs +0 -401
  249. package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-DiNzGl-q.js +0 -1
  250. package/dist/Overview-3HWhsqaz.mjs +0 -860
  251. package/dist/Overview-BCpJNiEB.mjs +0 -190
  252. package/dist/Overview-BDlBCUI_.js +0 -1
  253. package/dist/Overview-BYMrsZjM.mjs +0 -332
  254. package/dist/Overview-BbvfH1u-.js +0 -1
  255. package/dist/Overview-BrCwozey.js +0 -1
  256. package/dist/Overview-CIa1E-HH.mjs +0 -178
  257. package/dist/Overview-CpHhuiaV.js +0 -1
  258. package/dist/Overview-DAxCu9XC.js +0 -1
  259. package/dist/Overview-D_T3K6aq.mjs +0 -632
  260. package/dist/Overview-Su8ZUbMs.mjs +0 -26
  261. package/dist/Overview-T-lsy3UZ.js +0 -1
  262. package/dist/Overview-kaMhsIUq.mjs +0 -567
  263. package/dist/Overview-t0pG5xjA.js +0 -1
  264. package/dist/PeakHoursCard-9-EZFZLR.mjs +0 -182
  265. package/dist/PeakHoursCard-BR5zmta4.js +0 -1
  266. package/dist/ProductDetailsCard-6nHikw4V.mjs +0 -121
  267. package/dist/ProductDetailsCard-Bn7qrgmc.js +0 -1
  268. package/dist/RealtimeCard--APfRNc8.js +0 -1
  269. package/dist/RealtimeCard-fvQlJcM7.mjs +0 -126
  270. package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-Cz_22Oce.mjs +0 -2927
  271. package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-DPPNc-Z5.js +0 -349
  272. package/dist/SearchTermsCard-BsB-63aH.js +0 -1
  273. package/dist/SearchTermsCard-BzVrHKqQ.mjs +0 -201
  274. package/dist/SendPush-COns44j7.js +0 -1
  275. package/dist/SendPush-CPIOjVX4.mjs +0 -184
  276. package/dist/SeoHealth-09sEOu3G.js +0 -1
  277. package/dist/SeoHealth-BzcWd_w7.mjs +0 -615
  278. package/dist/TableView-CPAw3h8g.js +0 -4
  279. package/dist/TableView-DXmEF6pY.mjs +0 -6143
  280. package/dist/TemplateList.vue_vue_type_script_setup_true_lang-B_AtWnHa.js +0 -1
  281. package/dist/TemplateList.vue_vue_type_script_setup_true_lang-Cmovy7kk.mjs +0 -40
  282. package/dist/TopPagesCard-BDeA997A.js +0 -1
  283. package/dist/TopPagesCard-CTozhOr_.mjs +0 -159
  284. package/dist/TrafficSourcesCard-BxtCKsqx.mjs +0 -197
  285. package/dist/TrafficSourcesCard-C3ziDTUL.js +0 -1
  286. package/dist/View-CsudjxCE.mjs +0 -30
  287. package/dist/View-Dw_wA6kK.js +0 -1
  288. package/dist/VisitorStatsCard-BmByE_Hi.js +0 -1
  289. package/dist/VisitorStatsCard-CXizEbVK.mjs +0 -174
  290. package/dist/_plugin-vue_export-helper-BHFhmbuH.js +0 -1
  291. package/dist/_plugin-vue_export-helper-CHgC5LLL.mjs +0 -9
  292. package/dist/agenda-BNG05SAq.js +0 -1
  293. package/dist/agenda-D1RxMxBS.mjs +0 -1152
  294. package/dist/array-CbATeQbk.js +0 -1
  295. package/dist/array-CvmZXzxF.mjs +0 -108
  296. package/dist/availability-CMrRa5y2.mjs +0 -269
  297. package/dist/availability-Cf2YfMwM.js +0 -1
  298. package/dist/booking-data-DgJd0BcM.mjs +0 -889
  299. package/dist/booking-data-Di5GmH_8.js +0 -1
  300. package/dist/countries-BTPvmrsb.mjs +0 -4
  301. package/dist/countries-CgZ081No.js +0 -1
  302. package/dist/exceptions-CI0B4xVj.js +0 -1
  303. package/dist/exceptions-vo8SA5SE.mjs +0 -646
  304. package/dist/google-CvtuJwgk.mjs +0 -4
  305. package/dist/google-D4N3gb01.js +0 -1
  306. package/dist/index-4tjmIans.js +0 -1
  307. package/dist/index-9HVlmvK3.js +0 -1
  308. package/dist/index-BWDwEd8D.mjs +0 -24
  309. package/dist/index-BfBBm9uY.mjs +0 -24
  310. package/dist/index-Bkq58CeQ.mjs +0 -22
  311. package/dist/index-BtujSJeg.js +0 -35
  312. package/dist/index-BuzLn4Km.js +0 -54
  313. package/dist/index-C4YUVWzJ.js +0 -75
  314. package/dist/index-CJQQBRLY.js +0 -1
  315. package/dist/index-CMk3uhUt.mjs +0 -3837
  316. package/dist/index-CQkOH2_3.mjs +0 -24
  317. package/dist/index-CSxYBeVA.js +0 -1
  318. package/dist/index-CU-tbS5W.mjs +0 -24
  319. package/dist/index-CZn2nDLv.mjs +0 -34
  320. package/dist/index-CkiNvRzs.js +0 -1
  321. package/dist/index-Co4ON2Di.js +0 -1
  322. package/dist/index-Cpnn_Pxd.mjs +0 -24
  323. package/dist/index-CrgzoTyR.mjs +0 -110
  324. package/dist/index-CsVeM3PA.mjs +0 -24
  325. package/dist/index-CwqrAU-H.js +0 -1
  326. package/dist/index-CxETuRsG.js +0 -1
  327. package/dist/index-Cz-baGax.js +0 -1
  328. package/dist/index-D3L8WAJI.js +0 -58
  329. package/dist/index-DFQGVHTs.js +0 -1
  330. package/dist/index-DPd3waTN.js +0 -1
  331. package/dist/index-DQYBP8Js.js +0 -158
  332. package/dist/index-DRqJOqUR.mjs +0 -3484
  333. package/dist/index-DjDCYQ_6.mjs +0 -441
  334. package/dist/index-DjWuIBxh.js +0 -1
  335. package/dist/index-Dnn2SCSl.js +0 -1
  336. package/dist/index-Dpl9sU6a.mjs +0 -12
  337. package/dist/index-DrXxXB2F.mjs +0 -138
  338. package/dist/index-MYWjg0zi.mjs +0 -176
  339. package/dist/index-R2oUDsjx.js +0 -1
  340. package/dist/index-RLz1QPrf.mjs +0 -203
  341. package/dist/index-UtjLbLw-.js +0 -1
  342. package/dist/index-_2lRVt_k.mjs +0 -2942
  343. package/dist/index-cOnxXTbF.mjs +0 -24
  344. package/dist/index-dOdMm1pV.mjs +0 -1105
  345. package/dist/index-hlylYYgy.mjs +0 -24
  346. package/dist/index-ijdf0d9-.js +0 -1
  347. package/dist/index-p5Uqu8c2.mjs +0 -1438
  348. package/dist/interpolation-DEDSLETn.mjs +0 -128
  349. package/dist/interpolation-DERg6Lwt.js +0 -1
  350. package/dist/orders-CzzcFQha.mjs +0 -559
  351. package/dist/orders-ETtbA4aQ.js +0 -1
  352. package/dist/payment-C3ohkehF.mjs +0 -1080
  353. package/dist/payment-Dfr-Ro-a.js +0 -1
  354. package/dist/regular-1LXNPviB.js +0 -1
  355. package/dist/regular-_05oq5Tx.mjs +0 -1101
  356. package/dist/resources-CxeFd57z.js +0 -1
  357. package/dist/resources-WI_4SO6T.mjs +0 -811
  358. package/dist/src/appointments/chat-components/AgendaOpeningHoursCard.vue.d.ts +0 -15
  359. package/dist/src/appointments/chat-components/AppointmentDetailsCard.vue.d.ts +0 -14
  360. package/dist/src/appointments/chat-components/AppointmentEditor.vue.d.ts +0 -14
  361. package/dist/src/appointments/chat-components/AppointmentListTable.vue.d.ts +0 -14
  362. package/dist/src/appointments/components/create/StepNavigation.vue.d.ts +0 -32
  363. package/dist/src/appointments/components/create/regular/Step1.vue.d.ts +0 -2
  364. package/dist/src/appointments/components/create/regular/Step2.vue.d.ts +0 -2
  365. package/dist/src/appointments/components/create/regular/Step3.vue.d.ts +0 -2
  366. package/dist/src/appointments/components/create/regular/Step4.vue.d.ts +0 -2
  367. package/dist/src/appointments/components/edit/CustomerInformationFieldEditorDialog.vue.d.ts +0 -24
  368. package/dist/src/appointments/components/edit/EditLayout.vue.d.ts +0 -17
  369. package/dist/src/appointments/components/edit/Event24hSidebar.vue.d.ts +0 -2
  370. package/dist/src/appointments/components/edit/EventDialog/ApproveReservationDialog.vue.d.ts +0 -8
  371. package/dist/src/appointments/components/edit/EventDialog/BookingsList.vue.d.ts +0 -127
  372. package/dist/src/appointments/components/edit/EventDialog/CancelReservationDialog.vue.d.ts +0 -8
  373. package/dist/src/appointments/components/edit/EventDialog/EventDialog.vue.d.ts +0 -11
  374. package/dist/src/appointments/components/edit/EventDialog/RejectReservationDialog.vue.d.ts +0 -8
  375. package/dist/src/appointments/components/edit/EventDialog/ReservationDetailDialog.vue.d.ts +0 -82
  376. package/dist/src/appointments/components/edit/EventDialog/TimelineChart.vue.d.ts +0 -24
  377. package/dist/src/appointments/components/edit/EventDialog/TransferReservationDialog.vue.d.ts +0 -4
  378. package/dist/src/appointments/components/edit/EventTimeIndicator.vue.d.ts +0 -12
  379. package/dist/src/appointments/components/edit/EventTimeline.vue.d.ts +0 -48
  380. package/dist/src/appointments/components/edit/EventView.vue.d.ts +0 -9
  381. package/dist/src/appointments/components/edit/ExceptionDialog.vue.d.ts +0 -29
  382. package/dist/src/appointments/components/edit/MetadataSchemaEditorDialog.vue.d.ts +0 -12
  383. package/dist/src/appointments/components/edit/NewReservationDialog/NewReservationDialog.vue.d.ts +0 -2
  384. package/dist/src/appointments/components/edit/OrderMetadataDisplay.vue.d.ts +0 -21
  385. package/dist/src/appointments/components/edit/PaymentAddons/Addon.vue.d.ts +0 -22
  386. package/dist/src/appointments/components/edit/PaymentAddons/AddonList.vue.d.ts +0 -5
  387. package/dist/src/appointments/components/edit/PaymentAddons/index.vue.d.ts +0 -15
  388. package/dist/src/appointments/components/edit/ResourceEditorDialog.vue.d.ts +0 -13
  389. package/dist/src/appointments/components/edit/dashboard/BookingsList.vue.d.ts +0 -110
  390. package/dist/src/appointments/components/edit/dashboard/Timeline.vue.d.ts +0 -34
  391. package/dist/src/appointments/components/edit/dashboard/timeline/ResourceSelector.vue.d.ts +0 -50
  392. package/dist/src/appointments/index.vue.d.ts +0 -22
  393. package/dist/src/appointments/pages/Overview.vue.d.ts +0 -4
  394. package/dist/src/appointments/pages/create/index.vue.d.ts +0 -2
  395. package/dist/src/appointments/pages/create/regular.vue.d.ts +0 -6
  396. package/dist/src/appointments/pages/edit/agenda.vue.d.ts +0 -4
  397. package/dist/src/appointments/pages/edit/availability.vue.d.ts +0 -2
  398. package/dist/src/appointments/pages/edit/booking-data.vue.d.ts +0 -65
  399. package/dist/src/appointments/pages/edit/index.vue.d.ts +0 -2
  400. package/dist/src/appointments/pages/edit/orders.vue.d.ts +0 -98
  401. package/dist/src/appointments/pages/edit/payment.vue.d.ts +0 -2
  402. package/dist/src/appointments/pages/edit/resources.vue.d.ts +0 -28
  403. package/dist/src/contentManager/components/components/ComponentDialog.vue.d.ts +0 -12
  404. package/dist/src/contentManager/components/components/ComponentGridItem.vue.d.ts +0 -16
  405. package/dist/src/contentManager/components/content-editor/ApiDocs.vue.d.ts +0 -2
  406. package/dist/src/contentManager/components/content-editor/ContentLayout.vue.d.ts +0 -49
  407. package/dist/src/contentManager/components/content-editor/ContentSettings.vue.d.ts +0 -24
  408. package/dist/src/contentManager/components/content-editor/ContentStructuredContentSections.vue.d.ts +0 -4
  409. package/dist/src/contentManager/components/content-editor/Header.vue.d.ts +0 -64
  410. package/dist/src/contentManager/components/content-editor/LivePreviewWrapper.vue.d.ts +0 -53
  411. package/dist/src/contentManager/components/content-editor/Locales.vue.d.ts +0 -44
  412. package/dist/src/contentManager/components/content-editor/NewSectionDialog.vue.d.ts +0 -21
  413. package/dist/src/contentManager/components/content-editor/PageSettings.vue.d.ts +0 -2
  414. package/dist/src/contentManager/components/content-editor/SEO.vue.d.ts +0 -14
  415. package/dist/src/contentManager/components/content-editor/SidebarSectionWrapper.vue.d.ts +0 -39
  416. package/dist/src/contentManager/components/content-editor/Status.vue.d.ts +0 -2
  417. package/dist/src/contentManager/components/content-editor/Versions.vue.d.ts +0 -63
  418. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Button.vue.d.ts +0 -94
  419. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Card.vue.d.ts +0 -92
  420. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Column.vue.d.ts +0 -92
  421. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Container.vue.d.ts +0 -92
  422. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Divider.vue.d.ts +0 -92
  423. package/dist/src/contentManager/components/content-editor/tiptap-extensions/EmptySpace.vue.d.ts +0 -94
  424. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Heading.vue.d.ts +0 -92
  425. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Image.vue.d.ts +0 -92
  426. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Map.vue.d.ts +0 -92
  427. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Paragraph.vue.d.ts +0 -92
  428. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Row.vue.d.ts +0 -115
  429. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Stack.vue.d.ts +0 -115
  430. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Video.vue.d.ts +0 -92
  431. package/dist/src/contentManager/components/content-editor/tiptap-extensions/extension-details/DetailsNodeView.vue.d.ts +0 -92
  432. package/dist/src/contentManager/components/content-editor/tiptap-extensions/helpers/NodeLabel.vue.d.ts +0 -108
  433. package/dist/src/contentManager/components/content-editor/tiptap-extensions/helpers/ResizeHandlers.vue.d.ts +0 -20
  434. package/dist/src/contentManager/components/content-editor/tiptap-extensions/helpers/TopMarginDragger.vue.d.ts +0 -104
  435. package/dist/src/contentManager/components/content-editor/tiptap-menus/BubbleMenuClassBuilder.vue.d.ts +0 -19
  436. package/dist/src/contentManager/components/content-editor/tiptap-menus/BubbleMenuLinkBuilder.vue.d.ts +0 -19
  437. package/dist/src/contentManager/components/content-editor/tiptap-menus/BubbleMenuToggleButton.vue.d.ts +0 -29
  438. package/dist/src/contentManager/components/content-editor/tiptap-menus/DefaultBubbleMenu.vue.d.ts +0 -13
  439. package/dist/src/contentManager/components/content-editor/tiptap-menus/ElementEditorMenu.vue.d.ts +0 -19
  440. package/dist/src/contentManager/components/content-editor/tiptap-menus/EmojiMenu.vue.d.ts +0 -8
  441. package/dist/src/contentManager/components/content-editor/tiptap-menus/NewNodeView.vue.d.ts +0 -47
  442. package/dist/src/contentManager/components/content-editor/tiptap-menus/SlashMenu.vue.d.ts +0 -6
  443. package/dist/src/contentManager/components/content-editor/tiptap-menus/SlashMenuButton.vue.d.ts +0 -17
  444. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/ButtonMenu.vue.d.ts +0 -13
  445. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/CardMenu.vue.d.ts +0 -13
  446. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/ColumnMenu.vue.d.ts +0 -13
  447. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/DividerMenu.vue.d.ts +0 -13
  448. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/EmptySpaceMenu.vue.d.ts +0 -13
  449. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/HeadingMenu.vue.d.ts +0 -13
  450. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/ImageMenu.vue.d.ts +0 -13
  451. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/MapMenu.vue.d.ts +0 -13
  452. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/RowMenu.vue.d.ts +0 -13
  453. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/StackMenu.vue.d.ts +0 -13
  454. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/TextMenu.vue.d.ts +0 -13
  455. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/VideoMenu.vue.d.ts +0 -13
  456. package/dist/src/contentManager/components/overview/CollectionDialog.vue.d.ts +0 -30
  457. package/dist/src/contentManager/components/overview/CollectionsGridView.vue.d.ts +0 -18
  458. package/dist/src/contentManager/components/overview/ContentEntryContextMenu.vue.d.ts +0 -27
  459. package/dist/src/contentManager/components/overview/FilterPopover.vue.d.ts +0 -2
  460. package/dist/src/contentManager/components/overview/ListView.vue.d.ts +0 -12
  461. package/dist/src/contentManager/components/styling/ButtonStyleDialog.vue.d.ts +0 -24
  462. package/dist/src/contentManager/components/styling/CardStyleDialog.vue.d.ts +0 -24
  463. package/dist/src/contentManager/components/styling/SectionStyleDialog.vue.d.ts +0 -24
  464. package/dist/src/contentManager/index.vue.d.ts +0 -22
  465. package/dist/src/contentManager/pages/Components.vue.d.ts +0 -27
  466. package/dist/src/contentManager/pages/ContentEditor.vue.d.ts +0 -14
  467. package/dist/src/contentManager/pages/Entries.vue.d.ts +0 -16
  468. package/dist/src/contentManager/pages/GlobalStyling.vue.d.ts +0 -117
  469. package/dist/src/contentManager/pages/Overview.vue.d.ts +0 -57
  470. package/dist/src/custom/index.vue.d.ts +0 -2
  471. package/dist/src/custom/pages/View.vue.d.ts +0 -2
  472. package/dist/src/googleAnalytics/chat-components/CountryBreakdownCard.vue.d.ts +0 -14
  473. package/dist/src/googleAnalytics/chat-components/DeviceBreakdownCard.vue.d.ts +0 -14
  474. package/dist/src/googleAnalytics/chat-components/PeakHoursCard.vue.d.ts +0 -14
  475. package/dist/src/googleAnalytics/chat-components/RealtimeCard.vue.d.ts +0 -14
  476. package/dist/src/googleAnalytics/chat-components/SearchTermsCard.vue.d.ts +0 -14
  477. package/dist/src/googleAnalytics/chat-components/TopPagesCard.vue.d.ts +0 -14
  478. package/dist/src/googleAnalytics/chat-components/TrafficSourcesCard.vue.d.ts +0 -14
  479. package/dist/src/googleAnalytics/chat-components/VisitorStatsCard.vue.d.ts +0 -14
  480. package/dist/src/googleAnalytics/components/seo-health/SeoClicksChart.vue.d.ts +0 -5
  481. package/dist/src/googleAnalytics/components/seo-health/SeoImpressionsChart.vue.d.ts +0 -5
  482. package/dist/src/googleAnalytics/components/seo-health/SeoKeywordsTab.vue.d.ts +0 -5
  483. package/dist/src/googleAnalytics/components/seo-health/SeoKpiCards.vue.d.ts +0 -10
  484. package/dist/src/googleAnalytics/components/seo-health/SeoMappingTab.vue.d.ts +0 -5
  485. package/dist/src/googleAnalytics/components/seo-health/SeoPagesTab.vue.d.ts +0 -5
  486. package/dist/src/googleAnalytics/components/seo-health/SeoRankingDistribution.vue.d.ts +0 -5
  487. package/dist/src/googleAnalytics/index.vue.d.ts +0 -2
  488. package/dist/src/googleAnalytics/pages/Acquisition.vue.d.ts +0 -2
  489. package/dist/src/googleAnalytics/pages/Audience.vue.d.ts +0 -2
  490. package/dist/src/googleAnalytics/pages/Content.vue.d.ts +0 -2
  491. package/dist/src/googleAnalytics/pages/Overview.vue.d.ts +0 -2
  492. package/dist/src/googleAnalytics/pages/SeoHealth.vue.d.ts +0 -2
  493. package/dist/src/mailTemplates/components/TemplateList.vue.d.ts +0 -2
  494. package/dist/src/mailTemplates/index.vue.d.ts +0 -22
  495. package/dist/src/mailTemplates/pages/Detail.vue.d.ts +0 -14
  496. package/dist/src/mailTemplates/pages/Overview.vue.d.ts +0 -14
  497. package/dist/src/productCollections/components/detail/Main.vue.d.ts +0 -2
  498. package/dist/src/productCollections/components/detail/SEO.vue.d.ts +0 -2
  499. package/dist/src/productCollections/components/detail/Status.vue.d.ts +0 -2
  500. package/dist/src/productCollections/components/overview/ListView.vue.d.ts +0 -12
  501. package/dist/src/productCollections/index.vue.d.ts +0 -22
  502. package/dist/src/productCollections/pages/Detail.vue.d.ts +0 -14
  503. package/dist/src/productCollections/pages/Overview.vue.d.ts +0 -16
  504. package/dist/src/products/chat-components/ProductDetailsCard.vue.d.ts +0 -14
  505. package/dist/src/products/components/detail/Collections.vue.d.ts +0 -14
  506. package/dist/src/products/components/detail/Inventory.vue.d.ts +0 -2
  507. package/dist/src/products/components/detail/Main.vue.d.ts +0 -2
  508. package/dist/src/products/components/detail/NewSection.vue.d.ts +0 -2
  509. package/dist/src/products/components/detail/Price.vue.d.ts +0 -2
  510. package/dist/src/products/components/detail/SEO.vue.d.ts +0 -2
  511. package/dist/src/products/components/detail/Shipping.vue.d.ts +0 -2
  512. package/dist/src/products/components/detail/Status.vue.d.ts +0 -2
  513. package/dist/src/products/components/detail/price/UnitPriceDialog.vue.d.ts +0 -17
  514. package/dist/src/products/components/detail/variants/Option.vue.d.ts +0 -33
  515. package/dist/src/products/components/detail/variants/VariantList.vue.d.ts +0 -38
  516. package/dist/src/products/components/overview/FilterPopover.vue.d.ts +0 -2
  517. package/dist/src/products/components/overview/GridView.vue.d.ts +0 -12
  518. package/dist/src/products/components/overview/ListView.vue.d.ts +0 -12
  519. package/dist/src/products/components/overview/ProductContextMenu.vue.d.ts +0 -27
  520. package/dist/src/products/index.vue.d.ts +0 -22
  521. package/dist/src/products/pages/Detail.vue.d.ts +0 -14
  522. package/dist/src/products/pages/Overview.vue.d.ts +0 -16
  523. package/dist/src/promoCodes/components/create/DateRange.vue.d.ts +0 -2
  524. package/dist/src/promoCodes/components/create/MultiCodes.vue.d.ts +0 -2
  525. package/dist/src/promoCodes/components/create/Note.vue.d.ts +0 -2
  526. package/dist/src/promoCodes/components/create/SingleCode.vue.d.ts +0 -2
  527. package/dist/src/promoCodes/components/create/TypeAndValue/TypeDetailDialog.vue.d.ts +0 -6
  528. package/dist/src/promoCodes/components/create/TypeAndValue/TypeManageDialog.vue.d.ts +0 -18
  529. package/dist/src/promoCodes/components/create/TypeAndValue/index.vue.d.ts +0 -2
  530. package/dist/src/promoCodes/index.vue.d.ts +0 -22
  531. package/dist/src/promoCodes/pages/Create.vue.d.ts +0 -16
  532. package/dist/src/promoCodes/pages/Detail.vue.d.ts +0 -14
  533. package/dist/src/promoCodes/pages/Find.vue.d.ts +0 -16
  534. package/dist/src/push-notifications/components/PreviewAndroid.vue.d.ts +0 -28
  535. package/dist/src/push-notifications/components/PreviewIPhone.vue.d.ts +0 -28
  536. package/dist/src/push-notifications/components/PushPreview.vue.d.ts +0 -28
  537. package/dist/src/push-notifications/index.vue.d.ts +0 -22
  538. package/dist/src/push-notifications/pages/SendPush.vue.d.ts +0 -14
  539. package/dist/src/shared/BrandLogo.vue.d.ts +0 -12
  540. package/dist/src/shared/DrawerToggle.vue.d.ts +0 -60
  541. package/dist/src/shared/VerticalToggle.vue.d.ts +0 -60
  542. package/dist/src/shippingOptions/components/detail/Condition.vue.d.ts +0 -2
  543. package/dist/src/shippingOptions/components/detail/Countries.vue.d.ts +0 -2
  544. package/dist/src/shippingOptions/components/detail/Example.vue.d.ts +0 -2
  545. package/dist/src/shippingOptions/components/detail/Main.vue.d.ts +0 -2
  546. package/dist/src/shippingOptions/components/overview/ListView.vue.d.ts +0 -12
  547. package/dist/src/shippingOptions/index.vue.d.ts +0 -22
  548. package/dist/src/shippingOptions/pages/Detail.vue.d.ts +0 -14
  549. package/dist/src/shippingOptions/pages/Overview.vue.d.ts +0 -16
  550. package/dist/src/table/components/DataTable.vue.d.ts +0 -18
  551. package/dist/src/table/components/DataTableAction.vue.d.ts +0 -14
  552. package/dist/src/table/components/DataTableMobileRowActionDrawer.vue.d.ts +0 -4
  553. package/dist/src/table/components/DataTablePagination.vue.d.ts +0 -6
  554. package/dist/src/table/components/actions/ActionDialog.vue.d.ts +0 -19
  555. package/dist/src/table/components/actions/CtaActionDialog.vue.d.ts +0 -4
  556. package/dist/src/table/components/columns/ColumnDropdown.vue.d.ts +0 -2
  557. package/dist/src/table/components/columns/ColumnEditorDialog.vue.d.ts +0 -34
  558. package/dist/src/table/components/columns/DialogTableColumnItem.vue.d.ts +0 -12
  559. package/dist/src/table/components/date-range-filter/DateRangeFilter.vue.d.ts +0 -2
  560. package/dist/src/table/components/date-range-filter/DateRangeSettingsDialog.vue.d.ts +0 -27
  561. package/dist/src/table/components/filters/FilterDialog.vue.d.ts +0 -12
  562. package/dist/src/table/components/filters/Filters.vue.d.ts +0 -27
  563. package/dist/src/table/components/search/Search.vue.d.ts +0 -2
  564. package/dist/src/table/components/sort/SortMode.vue.d.ts +0 -2
  565. package/dist/src/table/components/sort/SortModeSettingsDialog.vue.d.ts +0 -18
  566. package/dist/src/table/components/stats/StatDialog.vue.d.ts +0 -12
  567. package/dist/src/table/components/stats/Stats.vue.d.ts +0 -27
  568. package/dist/src/table/flow-builder-extensions/TableRowEditor.vue.d.ts +0 -16
  569. package/dist/src/table/index.vue.d.ts +0 -22
  570. package/dist/src/table/pages/TableView.vue.d.ts +0 -54
  571. package/dist/utils-CanmrIWO.mjs +0 -47
  572. package/dist/utils-Yd6F5mea.js +0 -3
  573. package/dist/vee-validate-zod-ByykgYKJ.js +0 -1
  574. package/dist/vee-validate-zod-CcOwoF6y.mjs +0 -4402
@@ -0,0 +1,989 @@
1
+ import { a as e, o as t } from "./DateFormatter-DLrDYkby.mjs";
2
+ import { t as n } from "./EditLayout-J_DGXb8v.mjs";
3
+ import { n as r, r as i, t as a } from "./ReservationDetailDialog-Cdo6h0RD.mjs";
4
+ import { t as o } from "./_plugin-vue_export-helper-BJQSo0im.mjs";
5
+ import { t as s } from "./NewReservationDialog-CN49aGcM.mjs";
6
+ import { t as c } from "./core-Dhgr4ctC.mjs";
7
+ import { useFirebaseIntegration as l, useModule as u, useModulePermissions as d, useModuleRoute as f } from "@oneclick.dev/cms-kit";
8
+ import { Fragment as p, computed as m, createBlock as h, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createTextVNode as y, createVNode as b, defineComponent as x, inject as S, nextTick as C, normalizeClass as w, normalizeStyle as T, onBeforeUnmount as E, onMounted as D, onUnmounted as O, openBlock as k, provide as A, ref as j, renderList as M, resolveComponent as N, toDisplayString as P, unref as F, useTemplateRef as I, watch as L, withCtx as R } from "vue";
9
+ import { Asterisk as z, CalendarDays as B, ChevronLeft as V, ChevronRight as H, Clock as U, Search as W, Users as G, X as K } from "@lucide/vue";
10
+ //#region src/appointments/components/edit/EventDialog/TimelineChart.vue?vue&type=script&setup=true&lang.ts
11
+ var q = { class: "mb-6" }, J = { class: "flex items-end gap-px h-24 bg-muted/30 rounded-lg p-2 overflow-visible" }, Y = ["onClick"], X = { class: "absolute -top-8 left-1/2 -translate-x-1/2 bg-popover border shadow-md rounded px-2 py-1 text-xs whitespace-nowrap opacity-0 group-hover:opacity-100 transition-opacity pointer-events-none z-10" }, ee = { class: "font-medium" }, te = { class: "text-muted-foreground" }, ne = { class: "w-full flex-1 flex items-end justify-center" }, re = {
12
+ key: 1,
13
+ class: "text-[10px] mt-1"
14
+ }, ie = {
15
+ key: 0,
16
+ class: "mt-2 text-sm text-muted-foreground flex items-center gap-2"
17
+ }, Z = { class: "font-medium text-foreground" }, ae = { class: "font-medium text-foreground" }, oe = /* @__PURE__ */ x({
18
+ __name: "TimelineChart",
19
+ props: {
20
+ timeSlots: {},
21
+ slotStats: {},
22
+ selectedTimeSlot: {},
23
+ maxSpots: {}
24
+ },
25
+ emits: ["select", "clear"],
26
+ setup(e, { emit: t }) {
27
+ let n = t, r = (e) => {
28
+ n("select", e);
29
+ }, i = () => {
30
+ n("clear");
31
+ };
32
+ return (t, n) => {
33
+ let a = N("Button");
34
+ return k(), _("div", q, [
35
+ n[2] ||= v("h3", { class: "font-semibold text-sm mb-2" }, "Timeline", -1),
36
+ v("div", J, [(k(!0), _(p, null, M(e.timeSlots, (t) => (k(), _("div", {
37
+ key: t.startTime,
38
+ class: "flex-1 min-w-0 flex flex-col items-center cursor-pointer group h-full relative",
39
+ onClick: (e) => r(t.startTime)
40
+ }, [
41
+ v("div", X, [v("div", ee, P(t.startTime), 1), v("div", te, P(e.slotStats[t.startTime]?.spots || 0) + " spots", 1)]),
42
+ v("div", ne, [v("div", {
43
+ class: w(["w-full transition-all duration-200", [e.selectedTimeSlot === t.startTime ? "bg-primary" : e.slotStats[t.startTime]?.spots > 0 ? "bg-primary/60 group-hover:bg-primary/80" : "bg-muted-foreground/20 group-hover:bg-muted-foreground/30"]]),
44
+ style: T({
45
+ height: e.slotStats[t.startTime]?.spots > 0 ? `${e.slotStats[t.startTime].spots / e.maxSpots * 100}%` : "2px",
46
+ minHeight: e.slotStats[t.startTime]?.spots > 0 ? "4px" : "2px"
47
+ })
48
+ }, null, 6)]),
49
+ t.startTime.endsWith(":00") ? (k(), _("span", {
50
+ key: 0,
51
+ class: w(["text-[10px] text-muted-foreground mt-1 transition-colors truncate", { "text-primary font-medium": e.selectedTimeSlot === t.startTime }])
52
+ }, P(t.label), 3)) : (k(), _("span", re, "\xA0"))
53
+ ], 8, Y))), 128))]),
54
+ e.selectedTimeSlot ? (k(), _("div", ie, [b(a, {
55
+ variant: "ghost",
56
+ size: "icon",
57
+ class: "h-6 w-6 p-0",
58
+ onClick: i
59
+ }, {
60
+ default: R(() => [b(F(K), { size: 14 })]),
61
+ _: 1
62
+ }), v("span", null, [
63
+ n[0] ||= y(" Showing ", -1),
64
+ v("span", Z, P(e.slotStats[e.selectedTimeSlot]?.bookings || 0), 1),
65
+ n[1] ||= y(" bookings at ", -1),
66
+ v("span", ae, P(e.selectedTimeSlot), 1)
67
+ ])])) : g("", !0)
68
+ ]);
69
+ };
70
+ }
71
+ }), se = { class: "flex items-center justify-between mb-3" }, ce = { class: "font-semibold" }, Q = {
72
+ key: 0,
73
+ class: "text-muted-foreground font-normal"
74
+ }, le = { class: "relative mb-3" }, $ = {
75
+ key: 0,
76
+ class: "flex items-center justify-center py-8"
77
+ }, ue = {
78
+ key: 1,
79
+ class: "text-center py-8 text-muted-foreground"
80
+ }, de = {
81
+ key: 2,
82
+ class: "space-y-2 max-h-80 overflow-y-auto"
83
+ }, fe = ["onClick"], pe = { class: "flex items-start justify-between" }, me = { class: "flex-1" }, he = { class: "font-medium" }, ge = { class: "text-sm text-muted-foreground" }, _e = { class: "text-sm text-muted-foreground" }, ve = { class: "flex items-center gap-4" }, ye = { class: "flex items-center gap-2 mt-1 text-xs text-muted-foreground" }, be = { class: "flex items-center gap-2 mt-1 text-xs text-muted-foreground" }, xe = { class: "text-right" }, Se = {
84
+ key: 0,
85
+ class: "inline-block px-2 py-1 text-xs rounded-full bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-400"
86
+ }, Ce = {
87
+ key: 1,
88
+ class: "inline-block px-2 py-1 text-xs rounded-full bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-400"
89
+ }, we = {
90
+ key: 2,
91
+ class: "inline-block px-2 py-1 text-xs rounded-full bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-400"
92
+ }, Te = {
93
+ key: 3,
94
+ class: "inline-block px-2 py-1 text-xs rounded-full bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-400"
95
+ }, Ee = {
96
+ key: 4,
97
+ class: "inline-block px-2 py-1 text-xs rounded-full bg-yellow-100 text-yellow-800 dark:bg-yellow-900/30 dark:text-yellow-400"
98
+ }, De = {
99
+ key: 5,
100
+ class: "text-sm font-medium mt-1"
101
+ }, Oe = /* @__PURE__ */ x({
102
+ __name: "BookingsList",
103
+ props: {
104
+ agendaData: {},
105
+ orders: {},
106
+ filteredOrders: {},
107
+ isLoading: { type: Boolean },
108
+ selectedTimeSlot: {},
109
+ searchQuery: {}
110
+ },
111
+ emits: ["update:searchQuery", "refresh"],
112
+ setup(e, { emit: t }) {
113
+ let n = e, i = m(() => n.agendaData?.metadataSchema || []), o = t, s = j(null), c = (e) => {
114
+ o("update:searchQuery", e);
115
+ }, l = () => {
116
+ o("update:searchQuery", "");
117
+ }, u = () => {
118
+ o("refresh");
119
+ };
120
+ return (t, n) => {
121
+ let o = N("Input"), d = N("Button");
122
+ return k(), _("div", null, [
123
+ v("div", se, [v("h3", ce, [n[0] ||= y(" Bookings ", -1), e.selectedTimeSlot || e.searchQuery ? (k(), _("span", Q, " (" + P(e.filteredOrders.length) + " of " + P(e.orders.length) + ") ", 1)) : g("", !0)])]),
124
+ v("div", le, [
125
+ b(F(W), {
126
+ size: 16,
127
+ class: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground"
128
+ }),
129
+ b(o, {
130
+ "model-value": e.searchQuery,
131
+ placeholder: "Search by name, email, or phone...",
132
+ class: "pl-9 pr-9",
133
+ "onUpdate:modelValue": c
134
+ }, null, 8, ["model-value"]),
135
+ e.searchQuery ? (k(), h(d, {
136
+ key: 0,
137
+ variant: "ghost",
138
+ size: "icon",
139
+ class: "absolute right-1 top-1/2 -translate-y-1/2 h-7 w-7",
140
+ onClick: l
141
+ }, {
142
+ default: R(() => [b(F(K), { size: 14 })]),
143
+ _: 1
144
+ })) : g("", !0)
145
+ ]),
146
+ e.isLoading ? (k(), _("div", $, [...n[1] ||= [v("div", { class: "animate-spin rounded-full h-8 w-8 border-b-2 border-primary" }, null, -1)]])) : e.filteredOrders.length === 0 ? (k(), _("div", ue, P(e.selectedTimeSlot ? "No bookings for this time slot" : "No bookings for this event"), 1)) : (k(), _("div", de, [(k(!0), _(p, null, M(e.filteredOrders, (e) => (k(), _("div", {
147
+ key: e.res_id || e.id,
148
+ class: "p-3 border rounded-lg hover:bg-muted/50 transition-colors",
149
+ onClick: (t) => F(s).openDialog(e)
150
+ }, [v("div", pe, [v("div", me, [
151
+ v("div", he, P(e.customerInfo.firstName + " " + e.customerInfo.lastName || "Unknown Customer"), 1),
152
+ v("div", ge, P(e.customerInfo.email), 1),
153
+ v("div", _e, P(e.customerInfo.phone), 1),
154
+ v("div", ve, [v("div", ye, [b(F(U), { size: 12 }), v("span", null, P(e.startTime) + " - " + P(e.endTime), 1)]), v("div", be, [b(F(G), { size: 12 }), v("span", null, P(e.spots), 1)])]),
155
+ b(r, {
156
+ metadata: {
157
+ ...e.metadata,
158
+ ...e.reservationMetadata
159
+ },
160
+ schema: F(i),
161
+ "display-filter": ["highlight", "badge"],
162
+ compact: "",
163
+ class: "mt-1"
164
+ }, null, 8, ["metadata", "schema"])
165
+ ]), v("div", xe, [e.reservationStatus === "needs_approval" ? (k(), _("span", Se, "Needs Approval")) : e.reservationStatus === "approved" ? (k(), _("span", Ce, "Approved")) : e.reservationStatus === "rejected" ? (k(), _("span", we, "Rejected")) : e.reservationStatus === "cancelled" ? (k(), _("span", Te, "Cancelled")) : (k(), _("span", Ee, "Pending")), e.reservationPrice || e.reservationPrice === 0 ? (k(), _("div", De, " €" + P(e.reservationPrice.toFixed(2)), 1)) : g("", !0)])])], 8, fe))), 128))])),
166
+ b(a, {
167
+ ref_key: "reservationDetailDialog",
168
+ ref: s,
169
+ "agenda-data": e.agendaData,
170
+ onCancelled: u,
171
+ onConfirmed: u,
172
+ onRejected: u
173
+ }, null, 8, ["agenda-data"])
174
+ ]);
175
+ };
176
+ }
177
+ }), ke = { class: "flex items-center gap-4 mt-2 text-sm" }, Ae = { class: "flex items-center gap-1" }, je = {
178
+ key: 0,
179
+ class: "flex items-center gap-1"
180
+ }, Me = { class: "flex items-center gap-1" }, Ne = { class: "py-4" }, Pe = /* @__PURE__ */ x({
181
+ __name: "EventDialog",
182
+ props: {
183
+ agendaData: {},
184
+ resources: { default: () => [] }
185
+ },
186
+ setup(e, { expose: t }) {
187
+ let n = e, { config: r } = u(), { params: a } = f(), o = l(r.project), s = j(!1), c = j(null), d = j([]), p = j(!1), x = j(null), S = j("");
188
+ A("event", c);
189
+ let C = m(() => {
190
+ if (!c.value) return [];
191
+ let e = c.value.resource?.interval || 60, t = [], [n, r] = c.value.startTime.split(":").map(Number), [i, a] = c.value.endTime.split(":").map(Number), o = n * 60 + r, s = i * 60 + a;
192
+ for (let n = o; n < s; n += e) {
193
+ let r = Math.floor(n / 60), i = n % 60, a = Math.min(n + e, s), o = Math.floor(a / 60), c = a % 60, l = `${r.toString().padStart(2, "0")}:${i.toString().padStart(2, "0")}`, u = `${o.toString().padStart(2, "0")}:${c.toString().padStart(2, "0")}`;
194
+ t.push({
195
+ startTime: l,
196
+ endTime: u,
197
+ label: l
198
+ });
199
+ }
200
+ return t;
201
+ }), w = (e) => `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`, E = m(() => {
202
+ let e = {};
203
+ return C.value.forEach((t) => {
204
+ e[t.startTime] = {
205
+ bookings: 0,
206
+ spots: 0,
207
+ orders: []
208
+ };
209
+ }), d.value.forEach((t) => {
210
+ C.value.forEach((n) => {
211
+ t.startTime < n.endTime && t.endTime > n.startTime && (e[n.startTime].bookings++, e[n.startTime].spots += t.spots || 0, e[n.startTime].orders.push(t));
212
+ });
213
+ }), e;
214
+ }), D = m(() => Math.max(1, ...Object.values(E.value).map((e) => e.spots))), O = m(() => {
215
+ let e = d.value;
216
+ return x.value && (e = E.value[x.value]?.orders || []), S.value.trim() && (e = new i(e, {
217
+ keys: [
218
+ "customerInfo.firstName",
219
+ "customerInfo.lastName",
220
+ "customerInfo.email",
221
+ "customerInfo.phone"
222
+ ],
223
+ threshold: .3,
224
+ ignoreLocation: !0
225
+ }).search(S.value).map((e) => e.item)), e;
226
+ }), M = m(() => ({
227
+ spots: d.value.reduce((e, t) => e + (t.spots || 0), 0),
228
+ bookings: d.value.length
229
+ })), I = (e) => {
230
+ x.value === e ? x.value = null : x.value = e;
231
+ }, L = () => {
232
+ x.value = null;
233
+ }, z = async (e) => {
234
+ s.value = !0, c.value = e, x.value = null, S.value = "", await B();
235
+ }, B = async () => {
236
+ if (c.value) {
237
+ p.value = !0, d.value = [];
238
+ try {
239
+ let e = a.value.id, t = w(new Date(c.value.date)), i = c.value.resourceId || c.value.resource?.id, s = /* @__PURE__ */ new Set();
240
+ if (i ? s.add(`${i}_${t}`) : n.resources?.forEach((e) => {
241
+ s.add(`${e.id}_${t}`);
242
+ }), s.size === 0) {
243
+ d.value = [];
244
+ return;
245
+ }
246
+ let l = await o.find(r.reservationsCollection, { filters: [
247
+ {
248
+ field: "agendaId",
249
+ operator: "==",
250
+ value: e
251
+ },
252
+ {
253
+ field: "status",
254
+ operator: "==",
255
+ value: "confirmed"
256
+ },
257
+ {
258
+ field: "flattenedReservationDates",
259
+ operator: "array-contains-any",
260
+ value: Array.from(s)
261
+ }
262
+ ] }), u = [];
263
+ l.forEach((e) => {
264
+ (e.reservations?.filter((e) => e.date === t ? i ? e.resourceId === i : !0 : !1) || []).forEach((r) => {
265
+ let i = n.resources.find((e) => e.id === r.resourceId);
266
+ (r.status === "approved" || r.status === "needs_approval") && u.push({
267
+ customerInfo: e.customerInfo,
268
+ amountDue: e.amountDue,
269
+ amountPaid: e.amountPaid,
270
+ status: e.status,
271
+ reservationStatus: r.status,
272
+ subtotal: e.subtotal,
273
+ total: e.total,
274
+ discount: e.discount,
275
+ id: e.id,
276
+ res_id: r.id,
277
+ resourceId: r.resourceId,
278
+ spots: r.spots,
279
+ date: t,
280
+ startTime: r.timeslot?.startTime,
281
+ endTime: r.timeslot?.endTime,
282
+ reservationPrice: r.totalPrice,
283
+ reservationBasePrice: r.basePrice,
284
+ reservationAddOnsPrice: r.addOnsPrice,
285
+ pricingOptionId: r.pricingOptionId,
286
+ pricingOption: r.pricingOption,
287
+ resourceName: i?.name || "Unknown",
288
+ resourceColor: i?.color,
289
+ metadata: e.metadata || {},
290
+ reservationMetadata: r.metadata || {}
291
+ });
292
+ });
293
+ }), d.value = u.sort((e, t) => e.startTime?.localeCompare(t.startTime || "") || 0);
294
+ } catch (e) {
295
+ console.error("Error loading orders:", e), d.value = [];
296
+ } finally {
297
+ p.value = !1;
298
+ }
299
+ }
300
+ }, V = [
301
+ "Sunday",
302
+ "Monday",
303
+ "Tuesday",
304
+ "Wednesday",
305
+ "Thursday",
306
+ "Friday",
307
+ "Saturday"
308
+ ], H = [
309
+ "January",
310
+ "February",
311
+ "March",
312
+ "April",
313
+ "May",
314
+ "June",
315
+ "July",
316
+ "August",
317
+ "September",
318
+ "October",
319
+ "November",
320
+ "December"
321
+ ];
322
+ return t({ openDialog: z }), (t, n) => {
323
+ let r = N("DialogTitle"), i = N("DialogDescription"), a = N("DialogHeader"), o = N("Button"), l = N("DialogFooter"), u = N("DialogScrollContent"), f = N("Dialog");
324
+ return k(), h(f, {
325
+ open: s.value,
326
+ "onUpdate:open": n[2] ||= (e) => s.value = e
327
+ }, {
328
+ default: R(() => [b(u, { class: "sm:max-w-3xl" }, {
329
+ default: R(() => [
330
+ b(a, null, {
331
+ default: R(() => [c.value?.date ? (k(), h(r, { key: 0 }, {
332
+ default: R(() => [y(P(V[new Date(c.value.date).getUTCDay()]) + " " + P(H[new Date(c.value.date).getUTCMonth()]) + " " + P(new Date(c.value.date).getUTCDate()) + ", " + P(new Date(c.value.date).getUTCFullYear()), 1)]),
333
+ _: 1
334
+ })) : g("", !0), b(i, null, {
335
+ default: R(() => [v("div", ke, [
336
+ v("div", Ae, [b(F(U), { size: 14 }), v("span", null, P(c.value?.startTime) + " – " + P(c.value?.endTime), 1)]),
337
+ c.value?.resource ? (k(), _("div", je, [v("div", {
338
+ class: "w-4 h-4 rounded-full",
339
+ style: T({ backgroundColor: c.value.resource.color || "#6b7280" })
340
+ }, null, 4), v("span", null, P(c.value.resource.name), 1)])) : g("", !0),
341
+ v("div", Me, [b(F(G), { size: 14 }), v("span", null, P(M.value.spots) + " spots in " + P(M.value.bookings) + " reservations", 1)])
342
+ ])]),
343
+ _: 1
344
+ })]),
345
+ _: 1
346
+ }),
347
+ v("div", Ne, [C.value.length > 1 ? (k(), h(oe, {
348
+ key: 0,
349
+ "time-slots": C.value,
350
+ "slot-stats": E.value,
351
+ "selected-time-slot": x.value,
352
+ "max-spots": D.value,
353
+ onSelect: I,
354
+ onClear: L,
355
+ tabindex: "0"
356
+ }, null, 8, [
357
+ "time-slots",
358
+ "slot-stats",
359
+ "selected-time-slot",
360
+ "max-spots"
361
+ ])) : g("", !0), b(Oe, {
362
+ "agenda-data": e.agendaData,
363
+ orders: d.value,
364
+ "filtered-orders": O.value,
365
+ "is-loading": p.value,
366
+ "selected-time-slot": x.value,
367
+ "search-query": S.value,
368
+ "onUpdate:searchQuery": n[0] ||= (e) => S.value = e,
369
+ onRefresh: B
370
+ }, null, 8, [
371
+ "agenda-data",
372
+ "orders",
373
+ "filtered-orders",
374
+ "is-loading",
375
+ "selected-time-slot",
376
+ "search-query"
377
+ ])]),
378
+ b(l, null, {
379
+ default: R(() => [b(o, {
380
+ variant: "outline",
381
+ onClick: n[1] ||= (e) => s.value = !1
382
+ }, {
383
+ default: R(() => [...n[3] ||= [y("Close", -1)]]),
384
+ _: 1
385
+ })]),
386
+ _: 1
387
+ })
388
+ ]),
389
+ _: 1
390
+ })]),
391
+ _: 1
392
+ }, 8, ["open"]);
393
+ };
394
+ }
395
+ }), Fe = { class: "flex-1 border-r shadow-sm overflow-hidden min-h-[1536px]" }, Ie = { class: "relative h-full min-h-[1536px]" }, Le = { class: "divide-y divide-input/80 h-full flex flex-col min-h-[1536px] border-y border-input/80" }, Re = { class: "absolute inset-0 pointer-events-none" }, ze = { class: "relative mr-1 @md:mr-3 h-full ml-0.5 @md:ml-2" }, Be = ["onClick"], Ve = {
396
+ key: 0,
397
+ class: "absolute bottom-0 left-0 right-0 h-1 bg-black/20"
398
+ }, He = { class: "flex items-start justify-between gap-2 mb-1" }, Ue = { class: "font-semibold text-xs @md:text-sm leading-tight line-clamp-1 flex-1" }, We = { class: "flex items-center gap-1 shrink-0" }, Ge = ["title"], Ke = { class: "font-medium" }, qe = /* @__PURE__ */ x({
399
+ __name: "EventTimeline",
400
+ props: {
401
+ agendaData: {},
402
+ date: {},
403
+ events: {},
404
+ firstDay: {
405
+ type: Boolean,
406
+ default: !1
407
+ },
408
+ resources: { default: () => [] }
409
+ },
410
+ setup(e) {
411
+ let t = e, n = j(null), r = (e) => {
412
+ let [t, n] = e.split(":").map(Number);
413
+ return t * 60 + n;
414
+ };
415
+ m(() => !t.events || !t.resources ? [] : t.resources.map((e) => ({
416
+ resource: e,
417
+ events: t.events.filter((t) => t.resourceId === e.id).map((e) => {
418
+ let t = r(e.startTime), n = r(e.endTime) - t, i = t / 1440 * 100, a = n / 1440 * 100, o = (e.bookings ?? 0) > 0, s = e.maxBookings ? (e.bookings ?? 0) / e.maxBookings * 100 : 0;
419
+ return {
420
+ ...e,
421
+ top: `${i}%`,
422
+ height: `${a}%`,
423
+ color: e.resource?.color || "#3b82f6",
424
+ hasBookings: o,
425
+ fillPercentage: s,
426
+ isSmall: n < 60
427
+ };
428
+ })
429
+ })));
430
+ let i = m(() => t.events ? t.events.map((e) => {
431
+ let t = r(e.startTime), n = r(e.endTime) - t, i = t / 1440 * 100, a = n / 1440 * 100, o = (e.bookings ?? 0) > 0, s = e.maxBookings ? (e.bookings ?? 0) / e.maxBookings * 100 : 0;
432
+ return {
433
+ ...e,
434
+ top: `${i}%`,
435
+ height: `${a}%`,
436
+ color: e.resource?.color || "#3b82f6",
437
+ hasBookings: o,
438
+ fillPercentage: s,
439
+ isSmall: n < 60
440
+ };
441
+ }) : []), a = Array.from({ length: 24 }, (e, t) => ({
442
+ hour: t,
443
+ label: `${t.toString().padStart(2, "0")}:00`
444
+ }));
445
+ return (t, r) => (k(), _(p, null, [v("div", Fe, [v("div", Ie, [v("div", Le, [(k(!0), _(p, null, M(F(a), (e) => (k(), _("div", {
446
+ key: e.hour,
447
+ class: "flex-1 flex transition-all duration-200"
448
+ }, [...r[0] ||= [v("div", { class: "flex-1 relative" }, [v("div", { class: "absolute top-1/2 left-0 right-0 border-t border-dashed border-input/50" })], -1)]]))), 128))]), v("div", Re, [v("div", ze, [(k(!0), _(p, null, M(i.value, (e) => (k(), _("div", {
449
+ key: e.id,
450
+ style: T({
451
+ top: e.top,
452
+ height: e.height,
453
+ opacity: e.hasBookings ? "1" : "0.5"
454
+ }),
455
+ class: "event-card absolute left-0.5 right-0.5 @md:left-2 @md:right-2 rounded-lg pointer-events-auto cursor-pointer group/event transition-all duration-200 hover:shadow-xl overflow-hidden",
456
+ onClick: (t) => n.value?.openDialog(e)
457
+ }, [
458
+ v("div", {
459
+ style: T({ backgroundColor: e.color }),
460
+ class: "absolute inset-0 shadow-lg"
461
+ }, [e.maxBookings ? (k(), _("div", Ve, [v("div", {
462
+ class: "h-full bg-white/40 transition-all duration-300",
463
+ style: T({ width: `${e.fillPercentage}%` })
464
+ }, null, 4)])) : g("", !0)], 4),
465
+ v("div", { class: w(["relative h-full p-1.5 @md:p-3 flex flex-col", `${e.hasBookings ? "text-white" : "text-gray-600 dark:text-gray-100"}`]) }, [v("div", He, [v("h3", Ue, P(e.title), 1), v("div", We, [e.resource ? (k(), _("div", {
466
+ key: 0,
467
+ class: "w-5 h-5 @md:w-6 @md:h-6 rounded-full flex items-center justify-center text-[10px] @md:text-xs font-bold bg-white/30 backdrop-blur-sm text-white border border-white/40",
468
+ title: e.resource.name
469
+ }, P(e.resource.avatarLabel || e.resource.name.charAt(0).toUpperCase()), 9, Ge)) : g("", !0), v("div", { class: w(["flex items-center gap-0.5 @md:gap-1 px-1.5 @md:px-2 py-0.5 rounded-full text-[10px] @md:text-xs font-medium", e.hasBookings ? "bg-white text-black backdrop-blur-sm" : "bg-black/10 backdrop-blur-sm"]) }, [b(F(G), { size: 12 }), v("span", null, P(e.bookings), 1)], 2)])]), v("div", { class: w(["flex items-center gap-1 @md:gap-2 text-[10px] @md:text-xs opacity-90 mt-auto", { "-translate-x-1 -translate-y-2 scale-80 origin-[0_0]": e.isSmall }]) }, [v("div", { class: w(["flex items-center gap-1 px-1 @md:px-2 py-0.5 rounded backdrop-blur-sm", { "bg-black/10": !e.isSmall }]) }, [b(F(U), { size: 10 }), v("span", Ke, P(e.startTime) + " – " + P(e.endTime), 1)], 2)], 2)], 2),
470
+ r[1] ||= v("div", { class: "absolute inset-0 border-2 border-white/0 group-hover/event:border-white/30 rounded-lg transition-colors duration-200 pointer-events-none" }, null, -1)
471
+ ], 12, Be))), 128))])])])]), b(Pe, {
472
+ "agenda-data": e.agendaData,
473
+ resources: e.resources,
474
+ ref_key: "eventDialog",
475
+ ref: n
476
+ }, null, 8, ["agenda-data", "resources"])], 64));
477
+ }
478
+ }), Je = { class: "sticky left-0 mt-auto z-10 divide-y divide-border/50 h-full flex flex-col min-h-[1536px] bg-input" }, Ye = { class: "flex-shrink-0 text-[10px] @md:text-xs font-medium text-muted-foreground px-1.5 @md:px-3 pb-3 border-r border-border/50 w-10 @md:w-14" }, Xe = { class: "flex items-center gap-1.5" }, Ze = /* @__PURE__ */ x({
479
+ __name: "Event24hSidebar",
480
+ setup(e) {
481
+ let t = Array.from({ length: 24 }, (e, t) => ({
482
+ hour: t,
483
+ label: `${t.toString().padStart(2, "0")}:00`
484
+ }));
485
+ return (e, n) => (k(), _("div", Je, [(k(!0), _(p, null, M(F(t), (e) => (k(), _("div", {
486
+ key: e.hour,
487
+ class: "flex-1 flex transition-all duration-200"
488
+ }, [v("div", Ye, [v("div", Xe, [v("span", { class: w({ "-translate-y-1/2": e.hour !== 0 }) }, P(e.label), 3)])])]))), 128))]));
489
+ }
490
+ }), Qe = { class: "absolute top-0 w-full pointer-events-none" }, $e = {
491
+ key: 0,
492
+ class: "absolute -right-2 -top-0.5 px-2 py-0.5 bg-red-500 text-white text-xs font-medium rounded shadow-lg"
493
+ }, et = /* @__PURE__ */ x({
494
+ __name: "EventTimeIndicator",
495
+ props: { currentDate: {
496
+ type: Object,
497
+ required: !1
498
+ } },
499
+ setup(e) {
500
+ let t = j(Date.now()), n;
501
+ D(() => {
502
+ n = window.setInterval(() => {
503
+ t.value = Date.now();
504
+ }, 1e3);
505
+ }), O(() => {
506
+ n && clearInterval(n);
507
+ });
508
+ let r = m(() => {
509
+ let e = new Date(t.value);
510
+ return `${(e.getHours() * 60 + e.getMinutes() + e.getSeconds() / 60) / 1440 * 100}%`;
511
+ }), i = m(() => new Date(t.value).getFullYear() + "-" + (new Date(t.value).getMonth() + 1).toString().padStart(2, "0") + "-" + new Date(t.value).getDate().toString().padStart(2, "0"));
512
+ return (t, n) => (k(), _("div", Qe, [v("div", {
513
+ class: "absolute left-0 right-0 h-0.5 bg-red-500 z-30 pointer-events-none transition-[top] duration-300 ease-linear",
514
+ style: T({ top: r.value })
515
+ }, [n[0] ||= v("div", { class: "absolute -left-2 -top-1.5 w-3 h-3 bg-red-500 rounded-full shadow-lg shadow-red-500/50" }, null, -1), e.currentDate && e.currentDate == i.value ? (k(), _("div", $e, " Now ")) : g("", !0)], 4)]));
516
+ }
517
+ }), tt = {
518
+ key: 0,
519
+ class: "relative flex flex-1 min-w-0"
520
+ }, nt = {
521
+ key: 1,
522
+ class: "flex-1 min-w-0 relative min-h-[1616px] @md:min-h-[1658px]"
523
+ }, rt = {
524
+ key: 0,
525
+ class: "absolute top-0 right-0 z-10 px-3 py-1.5 bg-primary/90 text-primary-foreground text-xs font-medium rounded-bl-lg shadow-lg backdrop-blur-sm flex items-center gap-1.5 animate-pulse-subtle"
526
+ }, it = { class: "flex pb-4 min-w-[200px]" }, at = ["onClick"], ot = {
527
+ key: 0,
528
+ class: "absolute top-2 right-2 flex items-center gap-1 px-2 py-0.5 bg-primary/20 backdrop-blur-sm rounded-full border border-primary/30"
529
+ }, st = { class: "text-xs text-muted-foreground font-medium group-hover:text-foreground/70 transition-colors" }, ct = {
530
+ key: 0,
531
+ class: "absolute bottom-0 left-0 w-full h-1 bg-orange-500"
532
+ }, lt = /* @__PURE__ */ o(/* @__PURE__ */ x({
533
+ __name: "EventView",
534
+ props: { agendaData: { default: () => ({}) } },
535
+ setup(n) {
536
+ let r = S("activeDate", j(t(e()))), i = S("viewMode", j(1)), a = S("events", j([])), o = S("resources", j([])), s = j(null), c = j(!1), l = j(!1);
537
+ m(() => o.value.length > 1);
538
+ let u = m(() => {
539
+ let e = [], t = r.value;
540
+ for (let n = 0; n < i.value; n++) e.push(t.add({ days: n }));
541
+ return e;
542
+ }), d = (e, t) => {
543
+ let n = `${e.year}-${String(e.month).padStart(2, "0")}-${String(e.day).padStart(2, "0")}`;
544
+ return a.value?.filter((e) => {
545
+ let r = e.date === n;
546
+ return t === void 0 ? r : r && e.resourceId === t;
547
+ }) || [];
548
+ }, f = (n) => {
549
+ let r = t(e());
550
+ return n.year === r.year && n.month === r.month && n.day === r.day;
551
+ }, y = (e) => {
552
+ r.value = e, i.value = 1;
553
+ }, x = null, T = null, A = () => {
554
+ s.value && (B(), s.value.scrollBy({
555
+ left: -300,
556
+ behavior: "smooth"
557
+ }), T = window.setTimeout(() => {
558
+ x = window.setInterval(() => {
559
+ s.value && s.value.scrollBy({
560
+ left: -20,
561
+ behavior: "auto"
562
+ });
563
+ }, 50);
564
+ }, 300));
565
+ }, I = () => {
566
+ s.value && (B(), s.value.scrollBy({
567
+ left: 300,
568
+ behavior: "smooth"
569
+ }), T = window.setTimeout(() => {
570
+ x = window.setInterval(() => {
571
+ s.value && s.value.scrollBy({
572
+ left: 20,
573
+ behavior: "auto"
574
+ });
575
+ }, 50);
576
+ }, 300));
577
+ }, B = () => {
578
+ T &&= (clearTimeout(T), null), x &&= (clearInterval(x), null);
579
+ }, U = () => {
580
+ if (!s.value) return;
581
+ let { scrollLeft: e, scrollWidth: t, clientWidth: n } = s.value;
582
+ c.value = e > 10, l.value = e < t - n - 10;
583
+ }, W = (e) => {
584
+ s.value && Math.abs(e.deltaY) > Math.abs(e.deltaX) && (e.preventDefault(), s.value.scrollBy({
585
+ left: e.deltaY,
586
+ behavior: "auto"
587
+ }));
588
+ }, G = j(!1), K = j(0), q = j(0), J = (e) => {
589
+ !s.value || i.value === 1 || e.target.closest(".event-card") || (G.value = !0, K.value = e.pageX, q.value = s.value.scrollLeft, s.value.style.userSelect = "none", e.preventDefault());
590
+ }, Y = (e) => {
591
+ if (!G.value || !s.value) return;
592
+ let t = e.pageX, n = (K.value - t) * 1.2;
593
+ s.value.scrollLeft = q.value + n;
594
+ }, X = () => {
595
+ s.value && (G.value = !1, s.value.style.userSelect = "");
596
+ };
597
+ return D(() => {
598
+ s.value && (s.value.addEventListener("scroll", U), s.value.addEventListener("wheel", W, { passive: !1 }), C(() => {
599
+ U(), setTimeout(U, 50), setTimeout(U, 150), setTimeout(U, 300), setTimeout(U, 500);
600
+ })), document.addEventListener("mousemove", Y), document.addEventListener("mouseup", X);
601
+ }), E(() => {
602
+ document.removeEventListener("mousemove", Y), document.removeEventListener("mouseup", X);
603
+ }), L(i, () => {
604
+ i.value > 1 ? C(() => {
605
+ setTimeout(() => {
606
+ if (!s.value) return;
607
+ let { scrollWidth: e, clientWidth: t } = s.value;
608
+ e > t && (l.value = !0, c.value = !1);
609
+ }, 100);
610
+ }) : s.value && (s.value.style.cursor = "");
611
+ }), O(() => {
612
+ B(), s.value && (s.value.removeEventListener("scroll", U), s.value.removeEventListener("wheel", W));
613
+ }), (e, t) => {
614
+ let a = N("Button"), m = N("TooltipTrigger"), x = N("TooltipContent"), S = N("Tooltip");
615
+ return F(i) === 1 ? (k(), _("div", tt, [
616
+ b(Ze),
617
+ b(et, {
618
+ class: "h-full",
619
+ "current-date": F(r)
620
+ }, null, 8, ["current-date"]),
621
+ b(qe, {
622
+ "agenda-data": n.agendaData,
623
+ date: F(r),
624
+ events: d(F(r)),
625
+ resources: F(o)
626
+ }, null, 8, [
627
+ "agenda-data",
628
+ "date",
629
+ "events",
630
+ "resources"
631
+ ])
632
+ ])) : (k(), _("div", nt, [
633
+ F(i) === 7 ? (k(), _("div", rt, [
634
+ b(F(V), { size: 12 }),
635
+ t[0] ||= v("span", null, "Scroll to view all days", -1),
636
+ b(F(H), { size: 12 })
637
+ ])) : g("", !0),
638
+ c.value ? (k(), h(a, {
639
+ key: 1,
640
+ variant: "outline",
641
+ size: "icon",
642
+ onMousedown: A,
643
+ onMouseup: B,
644
+ onMouseleave: B,
645
+ onTouchstart: A,
646
+ onTouchend: B,
647
+ class: "sticky top-1/2 left-2 -translate-y-1/2 z-40 h-10 w-10 rounded-full shadow-lg bg-background/95 backdrop-blur-sm hover:bg-background border-2"
648
+ }, {
649
+ default: R(() => [b(F(V), { size: 20 })]),
650
+ _: 1
651
+ })) : g("", !0),
652
+ l.value ? (k(), h(a, {
653
+ key: 2,
654
+ variant: "outline",
655
+ size: "icon",
656
+ onMousedown: I,
657
+ onMouseup: B,
658
+ onMouseleave: B,
659
+ onTouchstart: I,
660
+ onTouchend: B,
661
+ class: "sticky top-1/2 right-2 -translate-y-1/2 z-40 h-10 w-10 rounded-full shadow-lg bg-background/95 backdrop-blur-sm hover:bg-background border-2 float-right"
662
+ }, {
663
+ default: R(() => [b(F(H), { size: 20 })]),
664
+ _: 1
665
+ })) : g("", !0),
666
+ b(et, { class: "h-[calc(100%-122px)] mt-[80px] @md:h-[calc(100%-164px)] @md:mt-[122px]" }),
667
+ v("div", { class: w(["absolute right-0 top-0 bottom-0 w-8 bg-gradient-to-l from-background to-transparent z-10 pointer-events-none transition-opacity duration-300", l.value ? "opacity-100" : "opacity-0"]) }, null, 2),
668
+ v("div", {
669
+ ref_key: "scrollContainer",
670
+ ref: s,
671
+ class: "absolute inset-0 overflow-x-auto overflow-y-hidden",
672
+ onScroll: U,
673
+ onMousedown: J
674
+ }, [v("div", it, [
675
+ b(Ze),
676
+ t[5] ||= v("div", { class: "absolute w-10 @md:w-14 h-[125px] bg-input" }, null, -1),
677
+ (k(!0), _(p, null, M(u.value, (e, n) => (k(), _("div", {
678
+ key: e.toString(),
679
+ class: w(["flex-shrink-0", {
680
+ "min-w-[200px] w-[33.33%]": F(i) === 3,
681
+ "min-w-[280px]": F(i) === 7
682
+ }])
683
+ }, [v("div", {
684
+ onClick: (t) => y(e),
685
+ class: w(["relative p-3 border cursor-pointer transition-all duration-200 group relative", f(e) ? "bg-gradient-to-br from-primary/10 to-primary/5 border-primary/30 hover:from-primary/20 hover:to-primary/10 hover:border-primary/50 hover:shadow-md" : "bg-gradient-to-br from-muted/50 to-muted/30 border-border hover:from-accent/50 hover:to-accent/30 hover:border-accent-foreground/20 hover:shadow-md"])
686
+ }, [
687
+ f(e) ? (k(), _("div", ot, [...t[1] ||= [v("div", { class: "w-1.5 h-1.5 bg-primary rounded-full animate-pulse" }, null, -1), v("span", { class: "text-[9px] font-bold text-primary uppercase tracking-wide" }, "Today", -1)]])) : g("", !0),
688
+ v("div", { class: w(["text-xs font-semibold uppercase tracking-wider transition-colors", f(e) ? "text-primary group-hover:text-primary/80" : "text-muted-foreground group-hover:text-foreground"]) }, P(new Date(e.year, e.month - 1, e.day).toLocaleDateString("en-US", { weekday: "short" })), 3),
689
+ v("div", { class: w(["text-2xl font-bold transition-colors", f(e) ? "text-foreground" : "text-foreground group-hover:text-primary"]) }, P(e.day), 3),
690
+ v("div", st, P(new Date(e.year, e.month - 1, e.day).toLocaleDateString("en-US", {
691
+ month: "long",
692
+ year: "numeric"
693
+ })), 1),
694
+ t[4] ||= v("div", { class: "mt-2 pt-2 border-t border-border/0 group-hover:border-border/50 transition-all" }, [v("div", { class: "text-[10px] text-muted-foreground/0 group-hover:text-muted-foreground/100 uppercase tracking-wide transition-all" }, " Click to view ")], -1),
695
+ b(S, null, {
696
+ default: R(() => [b(m, { "as-child": "" }, {
697
+ default: R(() => [d(e).filter((e) => e.isException).length > 0 ? (k(), h(F(z), {
698
+ key: 0,
699
+ class: "absolute top-3 right-3 size-4 text-orange-500"
700
+ })) : g("", !0)]),
701
+ _: 2
702
+ }, 1024), b(x, null, {
703
+ default: R(() => [...t[2] ||= [v("p", null, " This day has exceptions applied to it. ", -1)]]),
704
+ _: 1
705
+ })]),
706
+ _: 2
707
+ }, 1024),
708
+ b(S, null, {
709
+ default: R(() => [b(m, { "as-child": "" }, {
710
+ default: R(() => [d(e).filter((e) => e.isException).length > 0 ? (k(), _("div", ct)) : g("", !0)]),
711
+ _: 2
712
+ }, 1024), b(x, null, {
713
+ default: R(() => [...t[3] ||= [v("p", null, " This day has exceptions applied to it. ", -1)]]),
714
+ _: 1
715
+ })]),
716
+ _: 2
717
+ }, 1024)
718
+ ], 10, at), b(qe, {
719
+ date: e,
720
+ events: d(e),
721
+ resources: F(o)
722
+ }, null, 8, [
723
+ "date",
724
+ "events",
725
+ "resources"
726
+ ])], 2))), 128))
727
+ ])], 544)
728
+ ]));
729
+ };
730
+ }
731
+ }), [["__scopeId", "data-v-7ab4a7f2"]]), ut = { class: "flex items-center justify-between @sm:justify-start gap-4" }, dt = { class: "flex flex-col" }, ft = { class: "flex items-center gap-2" }, pt = { class: "text-lg @sm:text-2xl font-bold tracking-tight truncate" }, mt = { class: "text-xs @sm:text-sm text-muted-foreground ml-7 truncate" }, ht = { class: "flex @sm:items-center justify-between flex-col @sm:flex-row @5xl:justify-end gap-2" }, gt = { class: "flex items-center gap-1 @5xl:mr-2" }, _t = {
732
+ key: 0,
733
+ class: "flex items-center gap-2 px-1 overflow-x-auto pb-2 -mx-1 scrollbar-hide"
734
+ }, vt = ["onClick"], yt = { class: "flex gap-2 @md:gap-4" }, bt = { class: "hidden @md:flex flex-shrink-0 flex-col gap-4" }, xt = {
735
+ key: 0,
736
+ class: "rounded-md border p-3"
737
+ }, St = { class: "space-y-1" }, Ct = ["onClick"], wt = { class: "min-w-0 flex-1" }, Tt = { class: "text-sm font-medium truncate" }, Et = {
738
+ key: 0,
739
+ class: "pt-2 mt-2 border-t"
740
+ }, Dt = {
741
+ key: 0,
742
+ class: "mt-1 space-y-1"
743
+ }, Ot = { class: "min-w-0 flex-1" }, kt = { class: "text-sm font-medium truncate text-muted-foreground" }, At = /* @__PURE__ */ x({
744
+ __name: "agenda",
745
+ setup(r) {
746
+ let { hasPermission: i } = d(), { params: a } = f(), { config: o } = u(), x = l(o.project), S = j(t(e())), C = j(1), E = I("container"), { width: D } = c(E), O = m(() => D.value < 640);
747
+ L(O, (e) => {
748
+ e && C.value !== 1 && (C.value = 1);
749
+ }, { immediate: !0 });
750
+ let z = j(null), U = j(/* @__PURE__ */ new Map()), W = m(() => z.value?.resources || []), G = m(() => W.value.filter((e) => e.isActive)), K = m(() => W.value.filter((e) => !e.isActive)), q = j(null), J = j(!1);
751
+ L(G, (e) => {
752
+ e.length > 0 && !q.value && (q.value = e[0].id);
753
+ }, { immediate: !0 });
754
+ let Y = m(() => {
755
+ if (!q.value) return G.value.length > 0 ? [G.value[0]] : [];
756
+ let e = G.value.find((e) => e.id === q.value);
757
+ return e ? [e] : G.value.length > 0 ? [G.value[0]] : [];
758
+ }), X = m(() => z.value?.pricingOptions?.find((e) => e.isDefault)?.duration || 30), ee = (e) => {
759
+ q.value = e;
760
+ };
761
+ L(S, () => {
762
+ $();
763
+ });
764
+ let te = m(() => {
765
+ let e = S.value, t = new Date(e.year, e.month - 1, e.day), n = t.toLocaleDateString("en-US", { weekday: "long" }).toUpperCase(), r = e.day, i = t.toLocaleDateString("en-US", { month: "short" }).toUpperCase();
766
+ return {
767
+ dayName: n,
768
+ day: r,
769
+ monthName: i,
770
+ full: `${n} ${r} ${i}`
771
+ };
772
+ }), ne = () => {
773
+ S.value = S.value.subtract({ days: C.value });
774
+ }, re = () => {
775
+ S.value = S.value.add({ days: C.value });
776
+ }, ie = () => {
777
+ S.value = t(e());
778
+ }, Z = (e) => {
779
+ let [t, n] = e.split(":").map(Number);
780
+ return t * 60 + n;
781
+ }, ae = (e, t) => (z.value?.exceptions || []).find((n) => t >= n.startDate && t <= n.endDate ? n.resourceIds === null ? !0 : n.resourceIds?.includes(e) : !1) || null, oe = (e, t, n) => {
782
+ let r = ae(e.id, n);
783
+ if (r) return r.isClosed ? [] : r.timeslots.map((e) => ({
784
+ startTime: e.startTime,
785
+ endTime: e.endTime,
786
+ isException: !0
787
+ }));
788
+ let i = t.getDay(), a = e.openingHours?.[i] || [];
789
+ return a.length === 0 ? [] : a.map((e) => ({
790
+ startTime: e.start,
791
+ endTime: e.end,
792
+ isException: !1
793
+ }));
794
+ }, se = (e, t, n, r) => {
795
+ if (!z.value) return 0;
796
+ let i = U.value.get(t);
797
+ return i ? i.filter((t) => t.resourceId === e).reduce((e, t) => {
798
+ let i = Z(t.startTime), a = Z(t.endTime), o = Z(n);
799
+ return i < Z(r) && a > o ? e + (t.reserved || 0) : e;
800
+ }, 0) : 0;
801
+ }, ce = m(() => {
802
+ if (!z.value) return [];
803
+ U.value.size;
804
+ let e = [], t = [];
805
+ for (let e = 0; e < C.value; e++) {
806
+ let n = S.value.add({ days: e });
807
+ t.push(n);
808
+ }
809
+ let n = Y.value.length > 0 ? Y.value : [];
810
+ return n.length === 0 ? [] : (t.forEach((t) => {
811
+ let r = new Date(t.year, t.month - 1, t.day), i = `${t.year}-${String(t.month).padStart(2, "0")}-${String(t.day).padStart(2, "0")}`;
812
+ n.forEach((t) => {
813
+ let n = oe(t, r, i);
814
+ e = e.concat(n.map((e, n) => {
815
+ let r = se(t.id, i, e.startTime, e.endTime);
816
+ return {
817
+ id: `block-${i}-${t.id}-${n}`,
818
+ title: z.value.serviceName,
819
+ date: i,
820
+ startTime: e.startTime,
821
+ endTime: e.endTime,
822
+ theme: t.color || "#3b82f6",
823
+ bookings: r,
824
+ maxBookings: t.capacity,
825
+ isException: e.isException || !1,
826
+ resourceId: t.id,
827
+ resource: t,
828
+ interval: t.interval || 30,
829
+ serviceDuration: X.value
830
+ };
831
+ }));
832
+ });
833
+ }), e);
834
+ }), Q = null, le = async () => {
835
+ Q ||= x.get(o.agendaCollection, a.value.id).then((e) => {
836
+ z.value = e;
837
+ }).finally(() => {
838
+ Q = null;
839
+ }), await Q;
840
+ }, $ = async () => {
841
+ if (z.value || await le(), !z.value) return;
842
+ let e = a.value.id, t = S.value;
843
+ U.value.clear();
844
+ let n = [];
845
+ for (let r = 0; r < C.value; r++) {
846
+ let i = t.add({ days: r }), a = `${i.year}-${String(i.month).padStart(2, "0")}-${String(i.day).padStart(2, "0")}`, s = `${e}_${a}`;
847
+ n.push(x.get(o.reservedSpotsCollection, s).then((e) => {
848
+ if (e) {
849
+ let t = [];
850
+ for (let n of G.value) {
851
+ let r = e?.[n.id] || {};
852
+ Object.entries(r).forEach(([e, r]) => {
853
+ let [i, a] = e.split("-");
854
+ t.push({
855
+ resourceId: n.id,
856
+ startTime: i,
857
+ endTime: a,
858
+ reserved: r
859
+ });
860
+ });
861
+ }
862
+ U.value.set(a, t);
863
+ }
864
+ }).catch(() => {}));
865
+ }
866
+ await Promise.all(n);
867
+ };
868
+ return (async () => {
869
+ await le(), await $();
870
+ })(), L(C, () => {
871
+ $();
872
+ }), A("agendaData", z), A("activeDate", S), A("viewMode", C), A("events", ce), A("resources", Y), A("allResources", G), (e, t) => {
873
+ let r = N("Button"), a = N("SegmentedControlButton"), o = N("SegmentedControl"), c = N("Calendar");
874
+ return k(), h(n, null, {
875
+ default: R(() => [v("div", {
876
+ ref_key: "container",
877
+ ref: E,
878
+ class: "flex flex-col gap-2 @md:gap-4 w-full"
879
+ }, [
880
+ v("div", { class: w(["flex flex-col @5xl:flex-row @5xl:items-center @5xl:justify-between gap-3 px-1", (O.value, "")]) }, [v("div", ut, [v("div", dt, [v("div", ft, [b(F(B), {
881
+ size: 20,
882
+ class: "text-primary flex-shrink-0"
883
+ }), v("h2", pt, P(te.value.full), 1)]), v("p", mt, P(z.value?.serviceName), 1)])]), v("div", ht, [
884
+ v("div", gt, [
885
+ b(r, {
886
+ variant: "outline",
887
+ size: "icon",
888
+ class: "size-8 @sm:size-9",
889
+ onClick: ne
890
+ }, {
891
+ default: R(() => [b(F(V), { size: 16 })]),
892
+ _: 1
893
+ }),
894
+ b(r, {
895
+ variant: "outline",
896
+ size: "sm",
897
+ class: "h-8 @sm:h-9 px-2 @sm:px-3 text-xs @sm:text-sm",
898
+ onClick: ie
899
+ }, {
900
+ default: R(() => [...t[3] ||= [y(" Today ", -1)]]),
901
+ _: 1
902
+ }),
903
+ b(r, {
904
+ variant: "outline",
905
+ size: "icon",
906
+ class: "size-8 @sm:size-9",
907
+ onClick: re
908
+ }, {
909
+ default: R(() => [b(F(H), { size: 16 })]),
910
+ _: 1
911
+ })
912
+ ]),
913
+ O.value ? g("", !0) : (k(), h(o, {
914
+ key: 0,
915
+ modelValue: C.value,
916
+ "onUpdate:modelValue": t[0] ||= (e) => C.value = e
917
+ }, {
918
+ default: R(() => [
919
+ b(a, { value: 1 }, {
920
+ default: R(() => [...t[4] ||= [v("span", { class: "whitespace-nowrap" }, "1 Day", -1)]]),
921
+ _: 1
922
+ }),
923
+ b(a, { value: 3 }, {
924
+ default: R(() => [...t[5] ||= [v("span", { class: "whitespace-nowrap" }, "3 Days", -1)]]),
925
+ _: 1
926
+ }),
927
+ b(a, { value: 7 }, {
928
+ default: R(() => [...t[6] ||= [v("span", { class: "whitespace-nowrap" }, "7 Days", -1)]]),
929
+ _: 1
930
+ })
931
+ ]),
932
+ _: 1
933
+ }, 8, ["modelValue"])),
934
+ F(i)("manage-reservations") ? (k(), h(s, {
935
+ key: 1,
936
+ "agenda-data": z.value
937
+ }, null, 8, ["agenda-data"])) : g("", !0)
938
+ ])], 2),
939
+ O.value && G.value.length > 0 ? (k(), _("div", _t, [(k(!0), _(p, null, M(G.value, (e) => (k(), _("button", {
940
+ key: e.id,
941
+ class: w(["flex items-center gap-2 px-3 py-1.5 rounded-full border text-sm whitespace-nowrap transition-colors flex-shrink-0", {
942
+ "bg-primary text-primary-foreground border-primary": q.value === e.id,
943
+ "bg-background hover:bg-muted": q.value !== e.id
944
+ }]),
945
+ onClick: (t) => ee(e.id)
946
+ }, [v("div", {
947
+ class: "size-5 rounded-full flex items-center justify-center text-white text-[10px] font-medium",
948
+ style: T({ backgroundColor: q.value === e.id ? "rgba(255,255,255,0.3)" : e.color || "#6b7280" })
949
+ }, P(e.avatarLabel || e.name.charAt(0).toUpperCase()), 5), v("span", null, P(e.name), 1)], 10, vt))), 128))])) : g("", !0),
950
+ v("div", yt, [v("div", bt, [b(c, {
951
+ modelValue: S.value,
952
+ "onUpdate:modelValue": t[1] ||= (e) => S.value = e,
953
+ "weekday-format": "short",
954
+ class: "rounded-md border"
955
+ }, null, 8, ["modelValue"]), W.value.length > 0 ? (k(), _("div", xt, [t[7] ||= v("div", { class: "flex items-center justify-between mb-3" }, [v("span", { class: "text-sm font-medium" }, "Resources")], -1), v("div", St, [(k(!0), _(p, null, M(G.value, (e) => (k(), _("div", {
956
+ key: e.id,
957
+ class: w(["flex items-center gap-2 p-2 rounded-md hover:bg-muted cursor-pointer transition-colors", {
958
+ "bg-muted ring-2 ring-primary/20": q.value === e.id,
959
+ "opacity-50": q.value && q.value !== e.id
960
+ }]),
961
+ onClick: (t) => ee(e.id)
962
+ }, [
963
+ v("div", {
964
+ class: "size-7 rounded-full flex items-center justify-center text-white text-xs font-medium flex-shrink-0",
965
+ style: T({ backgroundColor: e.color || "#6b7280" })
966
+ }, P(e.avatarLabel || e.name.charAt(0).toUpperCase()), 5),
967
+ v("div", wt, [v("div", Tt, P(e.name), 1)]),
968
+ v("div", { class: w(["size-2 rounded-full flex-shrink-0", q.value === e.id ? "bg-primary" : "bg-muted-foreground/30"]) }, null, 2)
969
+ ], 10, Ct))), 128)), K.value.length > 0 ? (k(), _("div", Et, [v("button", {
970
+ class: "flex items-center gap-2 text-xs text-muted-foreground hover:text-foreground w-full py-1 transition-colors",
971
+ onClick: t[2] ||= (e) => J.value = !J.value
972
+ }, [b(F(H), {
973
+ size: 14,
974
+ class: w(["transition-transform", { "rotate-90": J.value }])
975
+ }, null, 8, ["class"]), v("span", null, "Inactive (" + P(K.value.length) + ")", 1)]), J.value ? (k(), _("div", Dt, [(k(!0), _(p, null, M(K.value, (e) => (k(), _("div", {
976
+ key: e.id,
977
+ class: "flex items-center gap-2 p-2 rounded-md opacity-50"
978
+ }, [v("div", {
979
+ class: "size-7 rounded-full flex items-center justify-center text-white text-xs font-medium flex-shrink-0 grayscale",
980
+ style: T({ backgroundColor: e.color || "#6b7280" })
981
+ }, P(e.avatarLabel || e.name.charAt(0).toUpperCase()), 5), v("div", Ot, [v("div", kt, P(e.name), 1)])]))), 128))])) : g("", !0)])) : g("", !0)])])) : g("", !0)]), b(lt, { "agenda-data": z.value }, null, 8, ["agenda-data"])])
982
+ ], 512)]),
983
+ _: 1
984
+ });
985
+ };
986
+ }
987
+ });
988
+ //#endregion
989
+ export { At as default };