@oneclick.dev/cms-core-modules 0.0.109 → 0.0.110

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 (576) hide show
  1. package/dist/Acquisition-DNCy8nQz.mjs +400 -0
  2. package/dist/Acquisition-Dt2rREU8.js +1 -0
  3. package/dist/AgendaOpeningHoursCard-B7ROIPWw.js +1 -0
  4. package/dist/AgendaOpeningHoursCard-Cp4wxUeK.mjs +172 -0
  5. package/dist/AppointmentDetailsCard-33WpATpV.mjs +161 -0
  6. package/dist/AppointmentDetailsCard-DpLM5IrB.js +1 -0
  7. package/dist/AppointmentEditor-BeOtYV6u.mjs +196 -0
  8. package/dist/AppointmentEditor-CaTfbkIf.js +1 -0
  9. package/dist/AppointmentListTable-DZJNmTMb.mjs +177 -0
  10. package/dist/AppointmentListTable-Dieu9US_.js +1 -0
  11. package/dist/Audience-Bs7b0TNm.js +1 -0
  12. package/dist/Audience-CUeMVYRy.mjs +489 -0
  13. package/dist/Components-C83O-xlF.mjs +623 -0
  14. package/dist/Components-DXbx0RLV.js +1 -0
  15. package/dist/Content-BHr_rPVY.js +1 -0
  16. package/dist/Content-CYOZKvWK.mjs +358 -0
  17. package/dist/ContentEditor-BprPiHMJ.js +462 -0
  18. package/dist/ContentEditor-D9-1SJ5F.mjs +30700 -0
  19. package/dist/CountryBreakdownCard-D7BK3nRD.js +1 -0
  20. package/dist/CountryBreakdownCard-DVxNz2DJ.mjs +196 -0
  21. package/dist/Create-89z41K73.js +1 -0
  22. package/dist/Create-BCklc_T1.mjs +1251 -0
  23. package/dist/DateFormatter-CYAD4GBN.js +1 -0
  24. package/dist/DateFormatter-DUxlo8X8.mjs +734 -0
  25. package/dist/Detail-BCOcP2ql.mjs +585 -0
  26. package/dist/Detail-Btzwo0Y3.mjs +3477 -0
  27. package/dist/Detail-Byk781b4.mjs +26 -0
  28. package/dist/Detail-C857g62L.js +1 -0
  29. package/dist/Detail-C8wQiDcv.js +1 -0
  30. package/dist/Detail-CNlljBfH.mjs +379 -0
  31. package/dist/Detail-CPqug27l.js +1 -0
  32. package/dist/Detail-CjuhjPby.js +1 -0
  33. package/dist/Detail-DnX7tsqN.mjs +649 -0
  34. package/dist/Detail-mvSGbnFU.js +1 -0
  35. package/dist/DeviceBreakdownCard-DRhQ9ufG.js +1 -0
  36. package/dist/DeviceBreakdownCard-W1frLe0L.mjs +159 -0
  37. package/dist/EditLayout.vue_vue_type_script_setup_true_lang-DWMqQvHl.mjs +76 -0
  38. package/dist/EditLayout.vue_vue_type_script_setup_true_lang-kpjbVSXg.js +1 -0
  39. package/dist/Entries-BdhUyJR5.mjs +728 -0
  40. package/dist/Entries-CEXM_SkO.js +1 -0
  41. package/dist/Find-D4Qa45qC.js +1 -0
  42. package/dist/Find-DIISO5GO.mjs +229 -0
  43. package/dist/GlobalStyling-C9VthHWK.mjs +1588 -0
  44. package/dist/GlobalStyling-CnSlXkZc.js +25 -0
  45. package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-Ceoje52V.js +1 -0
  46. package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-Dh9jzvE0.mjs +1255 -0
  47. package/dist/OrderDetailDialog.vue_vue_type_script_setup_true_lang-COrK1j0S.js +1 -0
  48. package/dist/OrderDetailDialog.vue_vue_type_script_setup_true_lang-Vb3q8EVv.mjs +330 -0
  49. package/dist/Overview-BCpJNiEB.mjs +190 -0
  50. package/dist/Overview-BDlBCUI_.js +1 -0
  51. package/dist/Overview-BKAti8nc.mjs +567 -0
  52. package/dist/Overview-BbvfH1u-.js +1 -0
  53. package/dist/Overview-Bn1Xx3_j.js +1 -0
  54. package/dist/Overview-C-Jb_BxY.mjs +860 -0
  55. package/dist/Overview-CIa1E-HH.mjs +178 -0
  56. package/dist/Overview-DAxCu9XC.js +1 -0
  57. package/dist/Overview-DC9io1bk.js +1 -0
  58. package/dist/Overview-Di84CsR5.mjs +476 -0
  59. package/dist/Overview-Su8ZUbMs.mjs +26 -0
  60. package/dist/Overview-T-lsy3UZ.js +1 -0
  61. package/dist/Overview-UoZHUMUz.js +1 -0
  62. package/dist/Overview-lWAyyenp.mjs +632 -0
  63. package/dist/PeakHoursCard-9-EZFZLR.mjs +182 -0
  64. package/dist/PeakHoursCard-BR5zmta4.js +1 -0
  65. package/dist/ProductDetailsCard-6nHikw4V.mjs +121 -0
  66. package/dist/ProductDetailsCard-Bn7qrgmc.js +1 -0
  67. package/dist/RealtimeCard--APfRNc8.js +1 -0
  68. package/dist/RealtimeCard-fvQlJcM7.mjs +126 -0
  69. package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-CuwREvXD.js +349 -0
  70. package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-GYNZ_yhD.mjs +3077 -0
  71. package/dist/SearchTermsCard-BsB-63aH.js +1 -0
  72. package/dist/SearchTermsCard-BzVrHKqQ.mjs +201 -0
  73. package/dist/SendPush-COns44j7.js +1 -0
  74. package/dist/SendPush-CPIOjVX4.mjs +184 -0
  75. package/dist/SeoHealth-MC3lSCOY.mjs +615 -0
  76. package/dist/SeoHealth-az1YuNF2.js +1 -0
  77. package/dist/TableView-DQW0A1oG.js +4 -0
  78. package/dist/TableView-DXHhJ-jm.mjs +6143 -0
  79. package/dist/TemplateList.vue_vue_type_script_setup_true_lang-B_AtWnHa.js +1 -0
  80. package/dist/TemplateList.vue_vue_type_script_setup_true_lang-Cmovy7kk.mjs +40 -0
  81. package/dist/TopPagesCard-BDeA997A.js +1 -0
  82. package/dist/TopPagesCard-CTozhOr_.mjs +159 -0
  83. package/dist/TrafficSourcesCard-BxtCKsqx.mjs +197 -0
  84. package/dist/TrafficSourcesCard-C3ziDTUL.js +1 -0
  85. package/dist/View-CsudjxCE.mjs +30 -0
  86. package/dist/View-Dw_wA6kK.js +1 -0
  87. package/dist/VisitorStatsCard-BmByE_Hi.js +1 -0
  88. package/dist/VisitorStatsCard-CXizEbVK.mjs +174 -0
  89. package/dist/_plugin-vue_export-helper-BHFhmbuH.js +1 -0
  90. package/dist/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
  91. package/dist/agenda-DcatSSYQ.mjs +1165 -0
  92. package/dist/agenda-IOqtALWf.js +1 -0
  93. package/dist/array-CbATeQbk.js +1 -0
  94. package/dist/array-DT5pE8Gm.mjs +108 -0
  95. package/dist/availability-CMrRa5y2.mjs +269 -0
  96. package/dist/availability-Cf2YfMwM.js +1 -0
  97. package/dist/booking-data-DgJd0BcM.mjs +889 -0
  98. package/dist/booking-data-Di5GmH_8.js +1 -0
  99. package/dist/cms-core-modules.css +1 -2
  100. package/dist/countries-BTPvmrsb.mjs +4 -0
  101. package/dist/countries-CgZ081No.js +1 -0
  102. package/dist/exceptions-CI0B4xVj.js +1 -0
  103. package/dist/exceptions-YCQkHa6a.mjs +646 -0
  104. package/dist/google-CvtuJwgk.mjs +4 -0
  105. package/dist/google-D4N3gb01.js +1 -0
  106. package/dist/index-4tjmIans.js +1 -0
  107. package/dist/index-9HVlmvK3.js +1 -0
  108. package/dist/index-A2kp8Isi.js +75 -0
  109. package/dist/index-B5aBwdxY.js +54 -0
  110. package/dist/index-BFLV54kw.mjs +3843 -0
  111. package/dist/index-BWDwEd8D.mjs +24 -0
  112. package/dist/index-BfBBm9uY.mjs +24 -0
  113. package/dist/index-BhWvXMOp.mjs +176 -0
  114. package/dist/index-BiT55eU0.js +58 -0
  115. package/dist/index-Bkq58CeQ.mjs +22 -0
  116. package/dist/index-BzWmWCo5.mjs +1187 -0
  117. package/dist/index-CJQQBRLY.js +1 -0
  118. package/dist/index-CQkOH2_3.mjs +24 -0
  119. package/dist/index-CSxYBeVA.js +1 -0
  120. package/dist/index-CU-tbS5W.mjs +24 -0
  121. package/dist/index-CZn2nDLv.mjs +34 -0
  122. package/dist/index-CkiNvRzs.js +1 -0
  123. package/dist/index-Co4ON2Di.js +1 -0
  124. package/dist/index-Cpnn_Pxd.mjs +24 -0
  125. package/dist/index-CpzDEMeC.mjs +1443 -0
  126. package/dist/index-CsVeM3PA.mjs +24 -0
  127. package/dist/index-CwqrAU-H.js +1 -0
  128. package/dist/index-CxETuRsG.js +1 -0
  129. package/dist/index-Cz-baGax.js +1 -0
  130. package/dist/index-D30apIn-.mjs +110 -0
  131. package/dist/index-DFQGVHTs.js +1 -0
  132. package/dist/index-DPd3waTN.js +1 -0
  133. package/dist/index-DRqJOqUR.mjs +3484 -0
  134. package/dist/index-DjWuIBxh.js +1 -0
  135. package/dist/index-Dnn2SCSl.js +1 -0
  136. package/dist/index-Dpl9sU6a.mjs +12 -0
  137. package/dist/index-DrXxXB2F.mjs +138 -0
  138. package/dist/index-G7cIlnGN.js +158 -0
  139. package/dist/index-R2oUDsjx.js +1 -0
  140. package/dist/index-RLz1QPrf.mjs +203 -0
  141. package/dist/index-UtjLbLw-.js +1 -0
  142. package/dist/index-V78huaSJ.mjs +442 -0
  143. package/dist/index-cOnxXTbF.mjs +24 -0
  144. package/dist/index-hlylYYgy.mjs +24 -0
  145. package/dist/index-ijdf0d9-.js +1 -0
  146. package/dist/index-vHmvbEwa.js +35 -0
  147. package/dist/index-wjkEPsNx.mjs +2940 -0
  148. package/dist/index.cjs.js +1 -1
  149. package/dist/index.mjs +806 -1095
  150. package/dist/interpolation-CHn59tIC.js +1 -0
  151. package/dist/interpolation-w7IRDJwK.mjs +180 -0
  152. package/dist/orders-C65SlpJy.mjs +618 -0
  153. package/dist/orders-XVzWAgG1.js +1 -0
  154. package/dist/payment-C3ohkehF.mjs +1080 -0
  155. package/dist/payment-Dfr-Ro-a.js +1 -0
  156. package/dist/regular-1LXNPviB.js +1 -0
  157. package/dist/regular-_05oq5Tx.mjs +1101 -0
  158. package/dist/resources-CYOb5Bl6.mjs +811 -0
  159. package/dist/resources-CxeFd57z.js +1 -0
  160. package/dist/server-handlers.cjs.js +1 -1
  161. package/dist/server-handlers.mjs +996 -1049
  162. package/dist/src/appointments/chat-components/AgendaOpeningHoursCard.vue.d.ts +15 -0
  163. package/dist/src/appointments/chat-components/AppointmentDetailsCard.vue.d.ts +14 -0
  164. package/dist/src/appointments/chat-components/AppointmentEditor.vue.d.ts +14 -0
  165. package/dist/src/appointments/chat-components/AppointmentListTable.vue.d.ts +14 -0
  166. package/dist/src/appointments/components/create/StepNavigation.vue.d.ts +32 -0
  167. package/dist/src/appointments/components/create/regular/Step1.vue.d.ts +2 -0
  168. package/dist/src/appointments/components/create/regular/Step2.vue.d.ts +2 -0
  169. package/dist/src/appointments/components/create/regular/Step3.vue.d.ts +2 -0
  170. package/dist/src/appointments/components/create/regular/Step4.vue.d.ts +2 -0
  171. package/dist/src/appointments/components/edit/CustomerInformationFieldEditorDialog.vue.d.ts +24 -0
  172. package/dist/src/appointments/components/edit/EditLayout.vue.d.ts +17 -0
  173. package/dist/src/appointments/components/edit/Event24hSidebar.vue.d.ts +2 -0
  174. package/dist/src/appointments/components/edit/EventDialog/ApproveReservationDialog.vue.d.ts +8 -0
  175. package/dist/src/appointments/components/edit/EventDialog/BookingsList.vue.d.ts +136 -0
  176. package/dist/src/appointments/components/edit/EventDialog/CancelReservationDialog.vue.d.ts +8 -0
  177. package/dist/src/appointments/components/edit/EventDialog/EventDialog.vue.d.ts +11 -0
  178. package/dist/src/appointments/components/edit/EventDialog/OrderDetailDialog.vue.d.ts +55 -0
  179. package/dist/src/appointments/components/edit/EventDialog/RejectReservationDialog.vue.d.ts +8 -0
  180. package/dist/src/appointments/components/edit/EventDialog/ReservationDetailDialog.vue.d.ts +87 -0
  181. package/dist/src/appointments/components/edit/EventDialog/TimelineChart.vue.d.ts +24 -0
  182. package/dist/src/appointments/components/edit/EventDialog/TransferReservationDialog.vue.d.ts +4 -0
  183. package/dist/src/appointments/components/edit/EventTimeIndicator.vue.d.ts +12 -0
  184. package/dist/src/appointments/components/edit/EventTimeline.vue.d.ts +48 -0
  185. package/dist/src/appointments/components/edit/EventView.vue.d.ts +9 -0
  186. package/dist/src/appointments/components/edit/ExceptionDialog.vue.d.ts +29 -0
  187. package/dist/src/appointments/components/edit/MetadataSchemaEditorDialog.vue.d.ts +12 -0
  188. package/dist/src/appointments/components/edit/NewReservationDialog/CustomerInformation.vue.d.ts +10 -0
  189. package/dist/src/appointments/components/edit/NewReservationDialog/NewReservationDialog.vue.d.ts +26 -0
  190. package/dist/src/appointments/components/edit/NewReservationDialog/QuickReservationAdder.vue.d.ts +26 -0
  191. package/dist/src/appointments/components/edit/NewReservationDialog/ReservationLines.vue.d.ts +31 -0
  192. package/dist/src/appointments/components/edit/OrderMetadataDisplay.vue.d.ts +21 -0
  193. package/dist/src/appointments/components/edit/PaymentAddons/Addon.vue.d.ts +22 -0
  194. package/dist/src/appointments/components/edit/PaymentAddons/AddonList.vue.d.ts +5 -0
  195. package/dist/src/appointments/components/edit/PaymentAddons/index.vue.d.ts +15 -0
  196. package/dist/src/appointments/components/edit/ResourceEditorDialog.vue.d.ts +13 -0
  197. package/dist/src/appointments/components/edit/dashboard/Timeline.vue.d.ts +36 -0
  198. package/dist/src/appointments/components/edit/dashboard/timeline/ResourceSelector.vue.d.ts +50 -0
  199. package/dist/src/appointments/index.d.ts +12 -9
  200. package/dist/src/appointments/index.vue.d.ts +22 -0
  201. package/dist/src/appointments/metadata.d.ts +1 -1
  202. package/dist/src/appointments/pages/Overview.vue.d.ts +4 -0
  203. package/dist/src/appointments/pages/create/index.vue.d.ts +2 -0
  204. package/dist/src/appointments/pages/create/regular.vue.d.ts +6 -0
  205. package/dist/src/appointments/pages/edit/agenda.vue.d.ts +4 -0
  206. package/dist/src/appointments/pages/edit/availability.vue.d.ts +2 -0
  207. package/dist/src/appointments/pages/edit/booking-data.vue.d.ts +65 -0
  208. package/dist/src/appointments/pages/edit/index.vue.d.ts +2 -0
  209. package/dist/src/appointments/pages/edit/payment.vue.d.ts +2 -0
  210. package/dist/src/appointments/pages/edit/resources.vue.d.ts +28 -0
  211. package/dist/src/appointments/routes.d.ts +6 -3
  212. package/dist/src/contentManager/components/components/ComponentDialog.vue.d.ts +12 -0
  213. package/dist/src/contentManager/components/components/ComponentGridItem.vue.d.ts +16 -0
  214. package/dist/src/contentManager/components/content-editor/ApiDocs.vue.d.ts +2 -0
  215. package/dist/src/contentManager/components/content-editor/ContentLayout.vue.d.ts +49 -0
  216. package/dist/src/contentManager/components/content-editor/ContentSettings.vue.d.ts +24 -0
  217. package/dist/src/contentManager/components/content-editor/ContentStructuredContentSections.vue.d.ts +4 -0
  218. package/dist/src/contentManager/components/content-editor/Header.vue.d.ts +64 -0
  219. package/dist/src/contentManager/components/content-editor/LivePreviewWrapper.vue.d.ts +53 -0
  220. package/dist/src/contentManager/components/content-editor/Locales.vue.d.ts +44 -0
  221. package/dist/src/contentManager/components/content-editor/NewSectionDialog.vue.d.ts +21 -0
  222. package/dist/src/contentManager/components/content-editor/PageSettings.vue.d.ts +2 -0
  223. package/dist/src/contentManager/components/content-editor/SEO.vue.d.ts +14 -0
  224. package/dist/src/contentManager/components/content-editor/SidebarSectionWrapper.vue.d.ts +39 -0
  225. package/dist/src/contentManager/components/content-editor/Status.vue.d.ts +2 -0
  226. package/dist/src/contentManager/components/content-editor/Versions.vue.d.ts +63 -0
  227. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Button.vue.d.ts +94 -0
  228. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Card.vue.d.ts +92 -0
  229. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Column.vue.d.ts +92 -0
  230. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Container.vue.d.ts +92 -0
  231. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Divider.vue.d.ts +92 -0
  232. package/dist/src/contentManager/components/content-editor/tiptap-extensions/EmptySpace.vue.d.ts +94 -0
  233. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Heading.vue.d.ts +92 -0
  234. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Image.vue.d.ts +92 -0
  235. package/dist/src/contentManager/components/content-editor/tiptap-extensions/LockBlocks.d.ts +0 -15
  236. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Map.vue.d.ts +92 -0
  237. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Paragraph.vue.d.ts +92 -0
  238. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Row.vue.d.ts +115 -0
  239. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Stack.vue.d.ts +115 -0
  240. package/dist/src/contentManager/components/content-editor/tiptap-extensions/TrailingNodeInContainers.d.ts +1 -4
  241. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Video.vue.d.ts +92 -0
  242. package/dist/src/contentManager/components/content-editor/tiptap-extensions/extension-details/DetailsNodeView.vue.d.ts +92 -0
  243. package/dist/src/contentManager/components/content-editor/tiptap-extensions/helpers/NodeLabel.vue.d.ts +108 -0
  244. package/dist/src/contentManager/components/content-editor/tiptap-extensions/helpers/ResizeHandlers.vue.d.ts +20 -0
  245. package/dist/src/contentManager/components/content-editor/tiptap-extensions/helpers/TopMarginDragger.vue.d.ts +104 -0
  246. package/dist/src/contentManager/components/content-editor/tiptap-menus/BubbleMenuClassBuilder.vue.d.ts +19 -0
  247. package/dist/src/contentManager/components/content-editor/tiptap-menus/BubbleMenuLinkBuilder.vue.d.ts +19 -0
  248. package/dist/src/contentManager/components/content-editor/tiptap-menus/BubbleMenuToggleButton.vue.d.ts +29 -0
  249. package/dist/src/contentManager/components/content-editor/tiptap-menus/DefaultBubbleMenu.vue.d.ts +13 -0
  250. package/dist/src/contentManager/components/content-editor/tiptap-menus/ElementEditorMenu.vue.d.ts +19 -0
  251. package/dist/src/contentManager/components/content-editor/tiptap-menus/EmojiMenu.vue.d.ts +8 -0
  252. package/dist/src/contentManager/components/content-editor/tiptap-menus/NewNodeView.vue.d.ts +47 -0
  253. package/dist/src/contentManager/components/content-editor/tiptap-menus/SlashMenu.vue.d.ts +6 -0
  254. package/dist/src/contentManager/components/content-editor/tiptap-menus/SlashMenuButton.vue.d.ts +17 -0
  255. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/ButtonMenu.vue.d.ts +13 -0
  256. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/CardMenu.vue.d.ts +13 -0
  257. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/ColumnMenu.vue.d.ts +13 -0
  258. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/DividerMenu.vue.d.ts +13 -0
  259. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/EmptySpaceMenu.vue.d.ts +13 -0
  260. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/HeadingMenu.vue.d.ts +13 -0
  261. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/ImageMenu.vue.d.ts +13 -0
  262. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/MapMenu.vue.d.ts +13 -0
  263. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/RowMenu.vue.d.ts +13 -0
  264. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/StackMenu.vue.d.ts +13 -0
  265. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/TextMenu.vue.d.ts +13 -0
  266. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/VideoMenu.vue.d.ts +13 -0
  267. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/index.d.ts +132 -12
  268. package/dist/src/contentManager/components/overview/CollectionDialog.vue.d.ts +30 -0
  269. package/dist/src/contentManager/components/overview/CollectionsGridView.vue.d.ts +18 -0
  270. package/dist/src/contentManager/components/overview/ContentEntryContextMenu.vue.d.ts +27 -0
  271. package/dist/src/contentManager/components/overview/FilterPopover.vue.d.ts +2 -0
  272. package/dist/src/contentManager/components/overview/ListView.vue.d.ts +12 -0
  273. package/dist/src/contentManager/components/styling/ButtonStyleDialog.vue.d.ts +24 -0
  274. package/dist/src/contentManager/components/styling/CardStyleDialog.vue.d.ts +24 -0
  275. package/dist/src/contentManager/components/styling/SectionStyleDialog.vue.d.ts +24 -0
  276. package/dist/src/contentManager/index.d.ts +14 -5
  277. package/dist/src/contentManager/index.vue.d.ts +22 -0
  278. package/dist/src/contentManager/metadata.d.ts +1 -1
  279. package/dist/src/contentManager/pages/Components.vue.d.ts +27 -0
  280. package/dist/src/contentManager/pages/ContentEditor.vue.d.ts +14 -0
  281. package/dist/src/contentManager/pages/Entries.vue.d.ts +16 -0
  282. package/dist/src/contentManager/pages/GlobalStyling.vue.d.ts +117 -0
  283. package/dist/src/contentManager/pages/Overview.vue.d.ts +57 -0
  284. package/dist/src/contentManager/routes.d.ts +12 -3
  285. package/dist/src/custom/index.d.ts +2 -2
  286. package/dist/src/custom/index.vue.d.ts +2 -0
  287. package/dist/src/custom/pages/View.vue.d.ts +2 -0
  288. package/dist/src/custom/routes.d.ts +1 -1
  289. package/dist/src/googleAnalytics/chat-components/CountryBreakdownCard.vue.d.ts +14 -0
  290. package/dist/src/googleAnalytics/chat-components/DeviceBreakdownCard.vue.d.ts +14 -0
  291. package/dist/src/googleAnalytics/chat-components/PeakHoursCard.vue.d.ts +14 -0
  292. package/dist/src/googleAnalytics/chat-components/RealtimeCard.vue.d.ts +14 -0
  293. package/dist/src/googleAnalytics/chat-components/SearchTermsCard.vue.d.ts +14 -0
  294. package/dist/src/googleAnalytics/chat-components/TopPagesCard.vue.d.ts +14 -0
  295. package/dist/src/googleAnalytics/chat-components/TrafficSourcesCard.vue.d.ts +14 -0
  296. package/dist/src/googleAnalytics/chat-components/VisitorStatsCard.vue.d.ts +14 -0
  297. package/dist/src/googleAnalytics/components/seo-health/SeoClicksChart.vue.d.ts +5 -0
  298. package/dist/src/googleAnalytics/components/seo-health/SeoImpressionsChart.vue.d.ts +5 -0
  299. package/dist/src/googleAnalytics/components/seo-health/SeoKeywordsTab.vue.d.ts +5 -0
  300. package/dist/src/googleAnalytics/components/seo-health/SeoKpiCards.vue.d.ts +10 -0
  301. package/dist/src/googleAnalytics/components/seo-health/SeoMappingTab.vue.d.ts +5 -0
  302. package/dist/src/googleAnalytics/components/seo-health/SeoPagesTab.vue.d.ts +5 -0
  303. package/dist/src/googleAnalytics/components/seo-health/SeoRankingDistribution.vue.d.ts +5 -0
  304. package/dist/src/googleAnalytics/index.d.ts +10 -10
  305. package/dist/src/googleAnalytics/index.vue.d.ts +2 -0
  306. package/dist/src/googleAnalytics/pages/Acquisition.vue.d.ts +2 -0
  307. package/dist/src/googleAnalytics/pages/Audience.vue.d.ts +2 -0
  308. package/dist/src/googleAnalytics/pages/Content.vue.d.ts +2 -0
  309. package/dist/src/googleAnalytics/pages/Overview.vue.d.ts +2 -0
  310. package/dist/src/googleAnalytics/pages/SeoHealth.vue.d.ts +2 -0
  311. package/dist/src/googleAnalytics/routes.d.ts +1 -1
  312. package/dist/src/mailTemplates/components/TemplateList.vue.d.ts +2 -0
  313. package/dist/src/mailTemplates/index.d.ts +3 -3
  314. package/dist/src/mailTemplates/index.vue.d.ts +22 -0
  315. package/dist/src/mailTemplates/metadata.d.ts +1 -1
  316. package/dist/src/mailTemplates/pages/Detail.vue.d.ts +14 -0
  317. package/dist/src/mailTemplates/pages/Overview.vue.d.ts +14 -0
  318. package/dist/src/mailTemplates/routes.d.ts +1 -1
  319. package/dist/src/productCollections/components/detail/Main.vue.d.ts +2 -0
  320. package/dist/src/productCollections/components/detail/SEO.vue.d.ts +2 -0
  321. package/dist/src/productCollections/components/detail/Status.vue.d.ts +2 -0
  322. package/dist/src/productCollections/components/overview/ListView.vue.d.ts +12 -0
  323. package/dist/src/productCollections/index.d.ts +3 -3
  324. package/dist/src/productCollections/index.vue.d.ts +22 -0
  325. package/dist/src/productCollections/metadata.d.ts +1 -1
  326. package/dist/src/productCollections/pages/Detail.vue.d.ts +14 -0
  327. package/dist/src/productCollections/pages/Overview.vue.d.ts +16 -0
  328. package/dist/src/productCollections/routes.d.ts +1 -1
  329. package/dist/src/products/chat-components/ProductDetailsCard.vue.d.ts +14 -0
  330. package/dist/src/products/components/detail/Collections.vue.d.ts +14 -0
  331. package/dist/src/products/components/detail/Inventory.vue.d.ts +2 -0
  332. package/dist/src/products/components/detail/Main.vue.d.ts +2 -0
  333. package/dist/src/products/components/detail/NewSection.vue.d.ts +2 -0
  334. package/dist/src/products/components/detail/Price.vue.d.ts +2 -0
  335. package/dist/src/products/components/detail/SEO.vue.d.ts +2 -0
  336. package/dist/src/products/components/detail/Shipping.vue.d.ts +2 -0
  337. package/dist/src/products/components/detail/Status.vue.d.ts +2 -0
  338. package/dist/src/products/components/detail/price/UnitPriceDialog.vue.d.ts +17 -0
  339. package/dist/src/products/components/detail/variants/Option.vue.d.ts +33 -0
  340. package/dist/src/products/components/detail/variants/VariantList.vue.d.ts +38 -0
  341. package/dist/src/products/components/overview/FilterPopover.vue.d.ts +2 -0
  342. package/dist/src/products/components/overview/GridView.vue.d.ts +12 -0
  343. package/dist/src/products/components/overview/ListView.vue.d.ts +12 -0
  344. package/dist/src/products/components/overview/ProductContextMenu.vue.d.ts +27 -0
  345. package/dist/src/products/index.d.ts +4 -4
  346. package/dist/src/products/index.vue.d.ts +22 -0
  347. package/dist/src/products/metadata.d.ts +1 -1
  348. package/dist/src/products/pages/Detail.vue.d.ts +14 -0
  349. package/dist/src/products/pages/Overview.vue.d.ts +16 -0
  350. package/dist/src/products/routes.d.ts +1 -1
  351. package/dist/src/promoCodes/components/create/DateRange.vue.d.ts +2 -0
  352. package/dist/src/promoCodes/components/create/MultiCodes.vue.d.ts +2 -0
  353. package/dist/src/promoCodes/components/create/Note.vue.d.ts +2 -0
  354. package/dist/src/promoCodes/components/create/SingleCode.vue.d.ts +2 -0
  355. package/dist/src/promoCodes/components/create/TypeAndValue/TypeDetailDialog.vue.d.ts +6 -0
  356. package/dist/src/promoCodes/components/create/TypeAndValue/TypeManageDialog.vue.d.ts +18 -0
  357. package/dist/src/promoCodes/components/create/TypeAndValue/index.vue.d.ts +2 -0
  358. package/dist/src/promoCodes/index.d.ts +3 -3
  359. package/dist/src/promoCodes/index.vue.d.ts +22 -0
  360. package/dist/src/promoCodes/metadata.d.ts +1 -1
  361. package/dist/src/promoCodes/pages/Create.vue.d.ts +16 -0
  362. package/dist/src/promoCodes/pages/Detail.vue.d.ts +14 -0
  363. package/dist/src/promoCodes/pages/Find.vue.d.ts +16 -0
  364. package/dist/src/promoCodes/routes.d.ts +1 -1
  365. package/dist/src/push-notifications/components/PreviewAndroid.vue.d.ts +28 -0
  366. package/dist/src/push-notifications/components/PreviewIPhone.vue.d.ts +28 -0
  367. package/dist/src/push-notifications/components/PushPreview.vue.d.ts +28 -0
  368. package/dist/src/push-notifications/index.d.ts +3 -3
  369. package/dist/src/push-notifications/index.vue.d.ts +22 -0
  370. package/dist/src/push-notifications/metadata.d.ts +1 -1
  371. package/dist/src/push-notifications/pages/SendPush.vue.d.ts +14 -0
  372. package/dist/src/push-notifications/routes.d.ts +1 -1
  373. package/dist/src/shared/BrandLogo.vue.d.ts +12 -0
  374. package/dist/src/shared/DrawerToggle.vue.d.ts +60 -0
  375. package/dist/src/shared/VerticalToggle.vue.d.ts +60 -0
  376. package/dist/src/shippingOptions/components/detail/Condition.vue.d.ts +2 -0
  377. package/dist/src/shippingOptions/components/detail/Countries.vue.d.ts +2 -0
  378. package/dist/src/shippingOptions/components/detail/Example.vue.d.ts +2 -0
  379. package/dist/src/shippingOptions/components/detail/Main.vue.d.ts +2 -0
  380. package/dist/src/shippingOptions/components/overview/ListView.vue.d.ts +12 -0
  381. package/dist/src/shippingOptions/index.d.ts +3 -3
  382. package/dist/src/shippingOptions/index.vue.d.ts +22 -0
  383. package/dist/src/shippingOptions/metadata.d.ts +1 -1
  384. package/dist/src/shippingOptions/pages/Detail.vue.d.ts +14 -0
  385. package/dist/src/shippingOptions/pages/Overview.vue.d.ts +16 -0
  386. package/dist/src/shippingOptions/routes.d.ts +1 -1
  387. package/dist/src/table/components/DataTable.vue.d.ts +18 -0
  388. package/dist/src/table/components/DataTableAction.vue.d.ts +14 -0
  389. package/dist/src/table/components/DataTableMobileRowActionDrawer.vue.d.ts +4 -0
  390. package/dist/src/table/components/DataTablePagination.vue.d.ts +6 -0
  391. package/dist/src/table/components/actions/ActionDialog.vue.d.ts +19 -0
  392. package/dist/src/table/components/actions/CtaActionDialog.vue.d.ts +4 -0
  393. package/dist/src/table/components/columns/ColumnDropdown.vue.d.ts +2 -0
  394. package/dist/src/table/components/columns/ColumnEditorDialog.vue.d.ts +34 -0
  395. package/dist/src/table/components/columns/DialogTableColumnItem.vue.d.ts +12 -0
  396. package/dist/src/table/components/date-range-filter/DateRangeFilter.vue.d.ts +2 -0
  397. package/dist/src/table/components/date-range-filter/DateRangeSettingsDialog.vue.d.ts +27 -0
  398. package/dist/src/table/components/filters/FilterDialog.vue.d.ts +12 -0
  399. package/dist/src/table/components/filters/Filters.vue.d.ts +27 -0
  400. package/dist/src/table/components/search/Search.vue.d.ts +2 -0
  401. package/dist/src/table/components/sort/SortMode.vue.d.ts +2 -0
  402. package/dist/src/table/components/sort/SortModeSettingsDialog.vue.d.ts +18 -0
  403. package/dist/src/table/components/stats/StatDialog.vue.d.ts +12 -0
  404. package/dist/src/table/components/stats/Stats.vue.d.ts +27 -0
  405. package/dist/src/table/flow-builder-extensions/TableRowEditor.vue.d.ts +16 -0
  406. package/dist/src/table/flow-builder-extensions/row-item.d.ts +17 -3
  407. package/dist/src/table/index.d.ts +2 -2
  408. package/dist/src/table/index.vue.d.ts +22 -0
  409. package/dist/src/table/pages/TableView.vue.d.ts +54 -0
  410. package/dist/src/table/routes.d.ts +1 -1
  411. package/dist/src/types/index.d.ts +0 -6
  412. package/dist/utils-CanmrIWO.mjs +47 -0
  413. package/dist/utils-Yd6F5mea.js +3 -0
  414. package/dist/vee-validate-zod-ByykgYKJ.js +1 -0
  415. package/dist/vee-validate-zod-DNjTLCgh.mjs +4402 -0
  416. package/package.json +56 -55
  417. package/dist/Acquisition-DypEyPSO.js +0 -1
  418. package/dist/Acquisition-TCNX-th6.mjs +0 -308
  419. package/dist/AgendaOpeningHoursCard-BIhm0vpV.js +0 -1
  420. package/dist/AgendaOpeningHoursCard-BKUdJxRI.mjs +0 -133
  421. package/dist/AppointmentDetailsCard-C5rQ5jsW.js +0 -1
  422. package/dist/AppointmentDetailsCard-NRHeNP2L.mjs +0 -111
  423. package/dist/AppointmentEditor-BcF8CiD-.mjs +0 -150
  424. package/dist/AppointmentEditor-BlhFtoCm.js +0 -1
  425. package/dist/AppointmentListTable-B-ReBVtV.js +0 -1
  426. package/dist/AppointmentListTable-DHmy-iid.mjs +0 -129
  427. package/dist/Audience-CfWHjjg8.mjs +0 -394
  428. package/dist/Audience-Cj4TyauW.js +0 -1
  429. package/dist/Components-BehelN4r.js +0 -1
  430. package/dist/Components-CR6zukUU.mjs +0 -468
  431. package/dist/Content-C5Iye3t0.mjs +0 -257
  432. package/dist/Content-eOfBx52Y.js +0 -1
  433. package/dist/ContentEditor-BgL4qEeg.mjs +0 -26835
  434. package/dist/ContentEditor-Tlu3w0Hu.js +0 -462
  435. package/dist/CountryBreakdownCard-CWVyB8be.mjs +0 -151
  436. package/dist/CountryBreakdownCard-Db-pMiNe.js +0 -1
  437. package/dist/Create-B1it8S4m.js +0 -1
  438. package/dist/Create-DbYi0FAI.mjs +0 -907
  439. package/dist/DateFormatter-DLrDYkby.mjs +0 -630
  440. package/dist/DateFormatter-Dni0Oq8r.js +0 -1
  441. package/dist/Detail-D-eahJGO.mjs +0 -21
  442. package/dist/Detail-D0kdPPIm.mjs +0 -2757
  443. package/dist/Detail-DAafePYi.mjs +0 -485
  444. package/dist/Detail-DYpv4fYg.js +0 -1
  445. package/dist/Detail-Dc_ui4LM.js +0 -1
  446. package/dist/Detail-DccUekl_.js +0 -1
  447. package/dist/Detail-Dhz0V0Vf.js +0 -1
  448. package/dist/Detail-DjnGY0F8.mjs +0 -282
  449. package/dist/Detail-DplAitHg.mjs +0 -447
  450. package/dist/Detail-SugyeSxb.js +0 -1
  451. package/dist/DeviceBreakdownCard-CzxZT6To.js +0 -1
  452. package/dist/DeviceBreakdownCard-eEwPjzKl.mjs +0 -115
  453. package/dist/EditLayout-Bnz9q_jd.js +0 -1
  454. package/dist/EditLayout-J_DGXb8v.mjs +0 -99
  455. package/dist/Entries-CgpWg6fE.js +0 -1
  456. package/dist/Entries-CkGTXcAq.mjs +0 -575
  457. package/dist/Find-Bz0TNJzk.mjs +0 -164
  458. package/dist/Find-D-ItTXaZ.js +0 -1
  459. package/dist/GlobalStyling-CSQPF7o_.mjs +0 -1162
  460. package/dist/GlobalStyling-DabldMZh.js +0 -15
  461. package/dist/NewReservationDialog-BhIiY2B9.js +0 -1
  462. package/dist/NewReservationDialog-CN49aGcM.mjs +0 -1002
  463. package/dist/OrderDetailDialog-BJ01DZFe.js +0 -1
  464. package/dist/OrderDetailDialog-CoVQ_rzs.mjs +0 -215
  465. package/dist/Overview-9FMgn5hT.mjs +0 -492
  466. package/dist/Overview-BOOwMQ-c.mjs +0 -636
  467. package/dist/Overview-Biz3h60w.js +0 -1
  468. package/dist/Overview-C2K2ofdS.js +0 -1
  469. package/dist/Overview-CFHOXP9N.mjs +0 -123
  470. package/dist/Overview-CTJe7J5_.js +0 -1
  471. package/dist/Overview-Cvj2i9eW.js +0 -1
  472. package/dist/Overview-D2I1F8Dm.mjs +0 -21
  473. package/dist/Overview-DFOc9emt.mjs +0 -345
  474. package/dist/Overview-Dmhfb94Y.js +0 -1
  475. package/dist/Overview-PPzv7weG.mjs +0 -450
  476. package/dist/Overview-qFKcXHVF.js +0 -1
  477. package/dist/Overview-xkmYYTae.mjs +0 -133
  478. package/dist/Overview-yPsLvR2c.js +0 -1
  479. package/dist/PeakHoursCard-CtgEP-ez.mjs +0 -157
  480. package/dist/PeakHoursCard-DPeoMyhu.js +0 -1
  481. package/dist/ProductDetailsCard-B0WhmzO-.mjs +0 -98
  482. package/dist/ProductDetailsCard-C1ROuH6l.js +0 -1
  483. package/dist/RealtimeCard-DQno-Okz.js +0 -1
  484. package/dist/RealtimeCard-dR-g1iDo.mjs +0 -92
  485. package/dist/ReservationDetailDialog-Cdo6h0RD.mjs +0 -2163
  486. package/dist/ReservationDetailDialog-DZTFD2xI.js +0 -349
  487. package/dist/SearchTermsCard-BXJSXz_k.js +0 -1
  488. package/dist/SearchTermsCard-DsaxLKwP.mjs +0 -146
  489. package/dist/SendPush-Bssi-OZD.mjs +0 -150
  490. package/dist/SendPush-BuaYboRH.js +0 -1
  491. package/dist/SeoHealth-CP-kL0us.js +0 -1
  492. package/dist/SeoHealth-Cxp_Gb3Y.mjs +0 -459
  493. package/dist/TableView-7iwBkQ_k.mjs +0 -4757
  494. package/dist/TableView-BB_oIYYZ.js +0 -4
  495. package/dist/TemplateList-CNcM_Kgq.mjs +0 -56
  496. package/dist/TemplateList-VuPcBUJO.js +0 -1
  497. package/dist/TopPagesCard-CvDECn3_.mjs +0 -117
  498. package/dist/TopPagesCard-DNdATXJE.js +0 -1
  499. package/dist/TrafficSourcesCard-BLpBr7u0.mjs +0 -151
  500. package/dist/TrafficSourcesCard-_3gRUCw3.js +0 -1
  501. package/dist/View-DSnUHI7h.mjs +0 -30
  502. package/dist/View-Dbcfpdqh.js +0 -1
  503. package/dist/VisitorStatsCard-CFEnXSjF.mjs +0 -185
  504. package/dist/VisitorStatsCard-C_jhQxDW.js +0 -1
  505. package/dist/_plugin-vue_export-helper-5u7tqpWC.js +0 -1
  506. package/dist/_plugin-vue_export-helper-BJQSo0im.mjs +0 -8
  507. package/dist/agenda-CzMRcQTA.mjs +0 -989
  508. package/dist/agenda-D4zWRYSQ.js +0 -1
  509. package/dist/appointments-9syR5TZE.js +0 -1
  510. package/dist/appointments-BBmOJMhM.mjs +0 -23
  511. package/dist/array-BH1uH7XT.js +0 -1
  512. package/dist/array-DnDL9cFz.mjs +0 -98
  513. package/dist/availability-CAXB7Yd6.js +0 -1
  514. package/dist/availability-Dp7eF-ZK.mjs +0 -215
  515. package/dist/booking-data-Bysf6e5x.mjs +0 -724
  516. package/dist/booking-data-C6SGjC2X.js +0 -1
  517. package/dist/chunk-DQi1bQcV.js +0 -1
  518. package/dist/contentManager-D7JxXCwE.js +0 -1
  519. package/dist/contentManager-tfy0x1LD.mjs +0 -22
  520. package/dist/context-AQKfnJ4t.mjs +0 -3809
  521. package/dist/context-ubyMq9Xe.js +0 -54
  522. package/dist/core-Dhgr4ctC.mjs +0 -202
  523. package/dist/core-_HKfBlaZ.js +0 -1
  524. package/dist/countries-MXLT3mVe.mjs +0 -4
  525. package/dist/countries-OCd5qPxG.js +0 -1
  526. package/dist/create-BfNc2C7N.js +0 -1
  527. package/dist/create-C7JlIlIh.mjs +0 -95
  528. package/dist/custom-BwN9-6Mb.js +0 -1
  529. package/dist/custom-INNwaWla.mjs +0 -13
  530. package/dist/dist-BCVg7FKM.js +0 -1
  531. package/dist/dist-DIhK9VWh.mjs +0 -3045
  532. package/dist/edit-BiI2VG60.js +0 -35
  533. package/dist/edit-DD3iFBEh.mjs +0 -1097
  534. package/dist/exceptions-DICMaDcH.mjs +0 -462
  535. package/dist/exceptions-DpWqMNuG.js +0 -1
  536. package/dist/google-Bcc4XZnV.mjs +0 -4
  537. package/dist/google-DTSRmJ51.js +0 -1
  538. package/dist/googleAnalytics-BSaqRR_L.js +0 -1
  539. package/dist/googleAnalytics-Cg-iWblZ.mjs +0 -47
  540. package/dist/interpolation-B8OzkMyi.mjs +0 -131
  541. package/dist/interpolation-DpAqtGOW.js +0 -1
  542. package/dist/lib-4wSi00Vr.js +0 -1
  543. package/dist/lib-BZgXUui5.mjs +0 -198
  544. package/dist/line-DJdnFNI7.js +0 -75
  545. package/dist/line-tYLnEDGV.mjs +0 -1500
  546. package/dist/mailTemplates-BNk8fhVS.mjs +0 -23
  547. package/dist/mailTemplates-DswHzyQe.js +0 -1
  548. package/dist/orders-CIc0JlKX.mjs +0 -512
  549. package/dist/orders-DwPSi_pD.js +0 -1
  550. package/dist/payment-BsNWFaDm.js +0 -1
  551. package/dist/payment-Ced5_dpa.mjs +0 -718
  552. package/dist/productCollections-Cuvw_8zC.js +0 -1
  553. package/dist/productCollections-D0AxRlzr.mjs +0 -23
  554. package/dist/products-DUD-ZMkR.mjs +0 -22
  555. package/dist/products-DvX9B-Ul.js +0 -1
  556. package/dist/promoCodes-BCWqN6w4.mjs +0 -23
  557. package/dist/promoCodes-CEZ4LYot.js +0 -1
  558. package/dist/push-notifications-BGp4XWo9.js +0 -1
  559. package/dist/push-notifications-C7W7KuzR.mjs +0 -23
  560. package/dist/regular-BCFrS6lK.mjs +0 -908
  561. package/dist/regular-DBqPgT8C.js +0 -1
  562. package/dist/resources-DwsMmWgm.mjs +0 -669
  563. package/dist/resources-Dz81GkHe.js +0 -1
  564. package/dist/shippingOptions-C3NEJff1.mjs +0 -23
  565. package/dist/shippingOptions-Cy040ZW1.js +0 -1
  566. package/dist/single-container-BJmmqq65.mjs +0 -468
  567. package/dist/single-container-Xoo0Xzxv.js +0 -58
  568. package/dist/src/vue-shim.d.ts +0 -7
  569. package/dist/table-DWw0fs3S.js +0 -1
  570. package/dist/table-LXt5DQOL.mjs +0 -23
  571. package/dist/utils-CVIHqQsU.js +0 -3
  572. package/dist/utils-h3owcMtS.mjs +0 -37
  573. package/dist/vee-validate-zod-BmXMJo8W.js +0 -1
  574. package/dist/vee-validate-zod-D9dZzbWZ.mjs +0 -4985
  575. package/dist/xy-container-CuQSwrtB.mjs +0 -3180
  576. package/dist/xy-container-_6YpscZh.js +0 -158
@@ -0,0 +1,1187 @@
1
+ import { defineComponent as de, inject as Fe, computed as N, ref as z, onMounted as Le, nextTick as Oe, onUnmounted as We, watch as K, openBlock as v, createElementBlock as T, resolveComponent as V, withModifiers as Ge, createElementVNode as l, Fragment as ie, createVNode as c, unref as e, normalizeStyle as ve, toDisplayString as j, createCommentVNode as Q, createBlock as L, isRef as se, withCtx as k, createTextVNode as Z, renderList as he, normalizeClass as re, withDirectives as He, vModelText as Ue, provide as qe } from "vue";
2
+ import { useModuleRoute as _e, useModule as De, useFirebaseIntegration as Se, useModulePermissions as Xe } from "@oneclick.dev/cms-kit";
3
+ import { _ as Ye } from "./EditLayout.vue_vue_type_script_setup_true_lang-DWMqQvHl.mjs";
4
+ import { n as xe, H as Je, L as Ke, y as le, X as ye, U as Qe, P as we, D as Ce, a2 as ce, s as $e, M as Ze, w as et, v as tt, t as at, l as st, Z as ot, R as nt, p as rt } from "./index-BFLV54kw.mjs";
5
+ import { componentToString as Me, ChartTooltipContent as Re } from "@oneclick.dev/cms-kit/charts";
6
+ import { Layers as be, ChevronDown as it, ChevronLeft as lt, ChevronRight as ct, CalendarIcon as dt, Users as Ve, RefreshCw as ut, Search as mt, X as pt, Clock as ft } from "lucide-vue-next";
7
+ import { a as vt } from "./index-BhWvXMOp.mjs";
8
+ import { a as gt, O as je, X as ht, b as xt, r as yt, D as pe, S as Ie, C as fe, z as Te, A as Ae } from "./index-wjkEPsNx.mjs";
9
+ import { _ as bt } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
10
+ import { F as kt, _ as _t, a as Dt } from "./ReservationDetailDialog.vue_vue_type_script_setup_true_lang-GYNZ_yhD.mjs";
11
+ import { _ as St } from "./OrderDetailDialog.vue_vue_type_script_setup_true_lang-Vb3q8EVv.mjs";
12
+ import { _ as wt } from "./NewReservationDialog.vue_vue_type_script_setup_true_lang-Dh9jzvE0.mjs";
13
+ function Ct({ x: g, y: h, w: a, h: x, tl: y = !1, tr: b = !1, bl: _ = !1, br: d = !1, r: n = 0 }) {
14
+ let i;
15
+ i = `M${g + n},${h}h${a - 2 * n}`;
16
+ let s = b ? n : 0, u = b ? 0 : n;
17
+ return i += `a${s},${s} 0 0 1 ${s},${s}`, i += `h${u}v${u}`, i += `v${x - 2 * n}`, s = d ? n : 0, u = d ? 0 : n, i += `a${s},${s} 0 0 1 ${-s},${s}`, i += `v${u}h${-u}`, i += `h${2 * n - a}`, s = _ ? n : 0, u = _ ? 0 : n, i += `a${s},${s} 0 0 1 ${-s},${-s}`, i += `h${-u}v${-u}`, i += `v${2 * n - x}`, s = y ? n : 0, u = y ? 0 : n, i += `a${s},${s} 0 0 1 ${s},${-s}`, i += `v${-u}h${u}`, i += "z", i;
18
+ }
19
+ const $t = Object.assign(Object.assign({}, gt), { color: void 0, groupMaxWidth: void 0, groupWidth: void 0, dataStep: void 0, groupPadding: 0.05, barPadding: 0, roundedCorners: 2, barMinHeight: 2, cursor: null, orientation: je.Vertical }), ze = xe`
20
+ label: grouped-bar-component;
21
+ `, Mt = Je`
22
+ :root {
23
+ --vis-grouped-bar-cursor: default;
24
+ --vis-grouped-bar-fill-color: var(--vis-color-main);
25
+ --vis-grouped-bar-stroke-color: none;
26
+ --vis-grouped-bar-stroke-width: 0px;
27
+ --vis-grouped-bar-hover-stroke-width: 1px;
28
+ --vis-grouped-bar-hover-stroke-color: none;
29
+
30
+
31
+ /* Dark Theme */
32
+ --vis-dark-grouped-bar-stroke-color: none;
33
+ }
34
+
35
+ body.theme-dark ${`.${ze}`} {
36
+ --vis-grouped-bar-stroke-color: var(--vis-dark-grouped-bar-stroke-color);
37
+ }
38
+ `, ge = xe`
39
+ label: bar;
40
+ fill: var(--vis-grouped-bar-fill-color);
41
+ stroke: var(--vis-grouped-bar-stroke-color);
42
+ stroke-width: var(--vis-grouped-bar-stroke-width);
43
+ cursor: var(--vis-grouped-bar-cursor);
44
+
45
+ &:hover {
46
+ stroke-width: var(--vis-grouped-bar-hover-stroke-width);
47
+ stroke: var(--vis-grouped-bar-hover-stroke-color);
48
+ }
49
+ `, ke = xe`
50
+ label: barGroup;
51
+ `, Ne = xe`
52
+ label: barGroupExit;
53
+ `, Rt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
54
+ __proto__: null,
55
+ bar: ge,
56
+ barGroup: ke,
57
+ barGroupExit: Ne,
58
+ globalStyles: Mt,
59
+ root: ze
60
+ }, Symbol.toStringTag, { value: "Module" }));
61
+ class Be extends ht {
62
+ constructor(h) {
63
+ super(), this._defaultConfig = $t, this.config = this._defaultConfig, this.getAccessors = () => Ke(this.config.y) ? this.config.y : [this.config.y], this.events = {}, this._barData = [], h && this.setConfig(h);
64
+ }
65
+ get bleed() {
66
+ if (this._barData = this._getVisibleData(), this._barData.length === 0)
67
+ return { top: 0, bottom: 0, left: 0, right: 0 };
68
+ const h = !this.isVertical() && this.dataScale.range()[0] > this.dataScale.range()[1], a = this.dataScale.domain(), x = this._getGroupWidth() / 2, y = this._barData.map((S, A) => le(S, this.config.x, A)), b = ye(y), _ = Qe(y), d = this.dataScale(b), n = this.dataScale(_), i = this.dataScale.invert(d + (h ? x : -x)), s = this.dataScale.invert(n + (h ? -x : x)), u = i <= a[0] ? this.dataScale(a[0]) - this.dataScale(i) : 0, I = s > a[1] ? this.dataScale(s) - this.dataScale(a[1]) : 0;
69
+ return {
70
+ top: this.isVertical() ? 0 : h ? -I : u,
71
+ bottom: this.isVertical() ? 0 : h ? -u : I,
72
+ left: this.isVertical() ? u : 0,
73
+ right: this.isVertical() ? I : 0
74
+ };
75
+ }
76
+ get dataScale() {
77
+ return this.isVertical() ? this.xScale : this.yScale;
78
+ }
79
+ get valueScale() {
80
+ return this.isVertical() ? this.yScale : this.xScale;
81
+ }
82
+ isVertical() {
83
+ return this.config.orientation === je.Vertical;
84
+ }
85
+ _render(h) {
86
+ const { config: a } = this, x = we(h) ? h : a.duration, y = this._getGroupWidth(), b = this.getAccessors(), _ = [-y / 2, y / 2], d = xt().domain(yt(b.length)).range(_).paddingInner(a.barPadding).paddingOuter(a.barPadding), n = this.g.selectAll(`.${ke}`).data(this._barData, (P, O) => {
87
+ var M;
88
+ return `${(M = Ce(P, a.id, O)) !== null && M !== void 0 ? M : O}`;
89
+ }), i = (P, O) => {
90
+ const M = this.dataScale(le(P, a.x, O)), U = this.isVertical() ? M : 0, W = this.isVertical() ? 0 : M;
91
+ return `translate(${U},${W})`;
92
+ }, u = n.enter().append("g").attr("class", ke).attr("transform", i).style("opacity", 1).merge(n);
93
+ ce(u, x).attr("transform", i).style("opacity", 1);
94
+ const I = n.exit().attr("class", Ne);
95
+ ce(I, x).style("opacity", 0).remove(), ce(I.selectAll(`.${ge}`), x).attr("transform", (P, O, M) => this.isVertical() ? `translate(0,${this.yScale(0)}) scale(1,0)` : `translate(${this.xScale(0)},0) scale(0,1)`);
96
+ const S = d.bandwidth(), A = u.selectAll(`.${ge}`).data((P) => b.map(() => P)), $ = this._getValueAxisDirection(), ne = A.enter().append("path").attr("class", ge).attr("d", (P, O) => {
97
+ const M = d(O), U = this.valueScale(0), W = S;
98
+ return this._getBarPath(M, U, W, 0, !1, $);
99
+ }).style("fill", (P, O) => $e(P, a.color, O)).merge(A);
100
+ ce(ne, x).attr("d", (P, O) => {
101
+ const M = d(O), U = S, W = le(P, b[O]), f = W < 0;
102
+ let q = f ? this.valueScale(0) : this.valueScale(W || 0), oe = Math.abs(this.valueScale(0) - this.valueScale(W)) || 0;
103
+ if (oe < a.barMinHeight) {
104
+ const Y = $ === pe.North ? -1 : 1;
105
+ q = this.valueScale(0) + Y * a.barMinHeight, oe = a.barMinHeight;
106
+ }
107
+ return this._getBarPath(M, q, U, oe, f, $);
108
+ }).style("fill", (P, O) => $e(P, a.color, O)).style("cursor", (P, O) => Ce(P, a.cursor, O)), ce(A.exit(), x).remove();
109
+ }
110
+ _getValueAxisDirection() {
111
+ return this.valueScale.range()[0] > this.valueScale.range()[1] ? pe.North : pe.South;
112
+ }
113
+ _getVisibleData() {
114
+ const { config: h, datamodel: { data: a } } = this, x = this._getGroupWidth(), y = a.length < 2 ? 0 : x / 2, b = this.dataScale, _ = Math.abs(b.invert(y) - b.invert(0));
115
+ return a?.filter((n, i) => {
116
+ const s = le(n, h.x, i), u = b.domain(), I = +u[0], S = +u[1];
117
+ return s >= I - _ && s <= S + _;
118
+ });
119
+ }
120
+ _getBarPath(h, a, x, y, b, _) {
121
+ const { config: d } = this, n = d.roundedCorners ? we(d.roundedCorners) ? +d.roundedCorners : x / 2 : 0, i = st(n, 0, Math.min(y, x) / 2), s = _ === pe.North, u = this.isVertical() && b !== s, I = this.isVertical() && b === s, S = !this.isVertical() && b, A = !this.isVertical() && !b;
122
+ return Ct({
123
+ x: this.isVertical() ? h : a + (s ? 0 : -y),
124
+ y: this.isVertical() ? a + (s ? 0 : -y) : h,
125
+ w: this.isVertical() ? x : y,
126
+ h: this.isVertical() ? y : x,
127
+ tl: u || S,
128
+ tr: u || A,
129
+ bl: I || S,
130
+ br: I || A,
131
+ r: i
132
+ });
133
+ }
134
+ _getGroupWidth() {
135
+ const { config: h, datamodel: { data: a } } = this;
136
+ if (Ze(a))
137
+ return 0;
138
+ if (h.groupWidth)
139
+ return ye([h.groupWidth, h.groupMaxWidth]);
140
+ const x = this.dataScale.bandwidth, y = this.dataScale.domain ? this.dataScale.domain() : [];
141
+ let _ = 1 + (x ? y.length : y[1] - y[0]) / h.dataStep || !x && a.filter((i, s) => {
142
+ const u = le(i, h.x, s);
143
+ return u >= y[0] && u <= y[1];
144
+ }).length || a.length;
145
+ !x && _ >= 2 && (_ += 1);
146
+ const n = (_ < 2 ? 1 : 1 - h.groupPadding) * (this.isVertical() ? this._width : this._height) / _;
147
+ return ye([n, h.groupMaxWidth]);
148
+ }
149
+ getValueScaleExtent(h) {
150
+ const { datamodel: a } = this, x = this.getAccessors(), y = h ? this._getVisibleData() : a.data, b = et(y, ...x), _ = tt(y, ...x);
151
+ return [b > 0 ? 0 : b, _ < 0 ? 0 : _];
152
+ }
153
+ getDataScaleExtent() {
154
+ const { config: h, datamodel: a } = this;
155
+ return at(a.data, h.x);
156
+ }
157
+ getYDataExtent(h) {
158
+ return this.isVertical() ? this.getValueScaleExtent(h) : this.getDataScaleExtent();
159
+ }
160
+ getXDataExtent() {
161
+ return this.isVertical() ? this.getDataScaleExtent() : this.getValueScaleExtent(!1);
162
+ }
163
+ }
164
+ Be.selectors = Rt;
165
+ const Vt = { "data-vis-component": "" }, Ee = /* @__PURE__ */ de({
166
+ __name: "index",
167
+ props: {
168
+ color: { type: [Function, String, Array, null] },
169
+ groupWidth: {},
170
+ groupMaxWidth: {},
171
+ dataStep: {},
172
+ groupPadding: {},
173
+ barPadding: {},
174
+ roundedCorners: { type: [Number, Boolean] },
175
+ barMinHeight: {},
176
+ cursor: { type: [Function, String, null] },
177
+ orientation: {},
178
+ x: { type: [Function, Number, null] },
179
+ y: { type: [Function, Number, null, Array] },
180
+ id: { type: Function },
181
+ xScale: { type: [Object, Function] },
182
+ yScale: { type: [Object, Function] },
183
+ excludeFromDomainCalculation: { type: Boolean },
184
+ duration: {},
185
+ events: {},
186
+ attributes: {},
187
+ data: {}
188
+ },
189
+ setup(g, { expose: h }) {
190
+ const a = Fe(ot), x = g, y = N(() => a.data.value ?? x.data), b = nt(x), _ = z();
191
+ return Le(() => {
192
+ Oe(() => {
193
+ var d;
194
+ _.value = new Be(b.value), (d = _.value) == null || d.setData(y.value), a.update(_.value);
195
+ });
196
+ }), We(() => {
197
+ var d;
198
+ (d = _.value) == null || d.destroy(), a.destroy();
199
+ }), K(b, (d, n) => {
200
+ var i;
201
+ rt(d, n) || (i = _.value) == null || i.setConfig(b.value);
202
+ }), K(y, () => {
203
+ var d;
204
+ (d = _.value) == null || d.setData(y.value);
205
+ }), h({
206
+ component: _
207
+ }), (d, n) => (v(), T("div", Vt));
208
+ }
209
+ }), It = { class: "flex flex-col sm:flex-row" }, Tt = ["data-active"], At = { class: "flex items-center gap-2" }, Et = { class: "block text-muted-foreground text-xs mr-2 max-w-[120px] truncate" }, Pt = { class: "block text-lg leading-none font-bold sm:text-3xl" }, Ot = { class: "mx-auto w-full max-w-sm mt-2 mb-8" }, jt = { class: "text-muted-foreground" }, zt = { class: "text-muted-foreground" }, Nt = { class: "grid" }, Bt = { class: "flex gap-1 overflow-hidden max-w-80" }, Ft = { class: "truncate" }, Lt = /* @__PURE__ */ de({
210
+ __name: "ResourceSelector",
211
+ props: {
212
+ resources: {
213
+ type: Array,
214
+ required: !0
215
+ },
216
+ totals: {
217
+ type: Object,
218
+ required: !0
219
+ },
220
+ viewMode: {
221
+ type: String,
222
+ required: !0
223
+ },
224
+ activeChart: {
225
+ type: String,
226
+ required: !1
227
+ }
228
+ },
229
+ emits: ["update:viewMode", "update:activeChart"],
230
+ setup(g, { emit: h }) {
231
+ const a = g, x = h, y = N({
232
+ get: () => a.viewMode,
233
+ set: (i) => {
234
+ x("update:viewMode", i);
235
+ }
236
+ }), b = N({
237
+ get: () => a.activeChart,
238
+ set: (i) => {
239
+ x("update:activeChart", i);
240
+ }
241
+ }), { width: _ } = vt(), d = N(() => _.value < 640), n = z(!1);
242
+ return (i, s) => {
243
+ const u = V("DrawerTitle"), I = V("DrawerDescription"), S = V("DrawerHeader"), A = V("Button"), $ = V("DrawerFooter"), X = V("DrawerContent"), ne = V("Drawer"), P = V("DropdownMenuTrigger"), O = V("DropdownMenuLabel"), M = V("DropdownMenuItem"), U = V("DropdownMenuContent"), W = V("DropdownMenu");
244
+ return v(), T("div", It, [
245
+ g.resources.length > 1 ? (v(), T("button", {
246
+ key: 0,
247
+ "data-active": g.viewMode === "stacked",
248
+ class: "hover:bg-muted/50 flex flex-1 flex-col justify-center gap-2 border-t px-4 py-3 text-left sm:border-t-0 sm:border-l sm:px-6 sm:py-6 cursor-pointer",
249
+ onClick: s[0] || (s[0] = (f) => n.value = !0),
250
+ onContextmenu: s[1] || (s[1] = Ge((f) => n.value = !0, ["prevent"]))
251
+ }, [
252
+ l("div", At, [
253
+ g.viewMode === "stacked" ? (v(), T(ie, { key: 0 }, [
254
+ c(e(be), { class: "size-3 text-muted-foreground" }),
255
+ s[6] || (s[6] = l("span", { class: "block text-muted-foreground text-xs mr-2 max-w-[120px] truncate" }, "All Resources", -1))
256
+ ], 64)) : (v(), T(ie, { key: 1 }, [
257
+ l("div", {
258
+ class: "size-3 rounded-full mr-2",
259
+ style: ve({ backgroundColor: g.resources.find((f) => f.id === g.activeChart)?.color || "#6b7280" })
260
+ }, null, 4),
261
+ l("span", Et, j(g.resources.find((f) => f.id === g.activeChart)?.name || "Select Resource"), 1)
262
+ ], 64)),
263
+ c(e(it), { class: "ml-auto size-4" })
264
+ ]),
265
+ l("span", Pt, j(g.viewMode === "stacked" ? Object.values(g.totals).reduce((f, q) => f + q, 0).toLocaleString() : (g.totals[g.activeChart] || 0).toLocaleString()), 1)
266
+ ], 40, Tt)) : Q("", !0),
267
+ e(d) ? (v(), L(ne, {
268
+ key: 1,
269
+ open: e(n),
270
+ "onUpdate:open": s[3] || (s[3] = (f) => se(n) ? n.value = f : null)
271
+ }, {
272
+ default: k(() => [
273
+ c(X, null, {
274
+ default: k(() => [
275
+ l("div", Ot, [
276
+ c(S, null, {
277
+ default: k(() => [
278
+ c(u, null, {
279
+ default: k(() => [...s[7] || (s[7] = [
280
+ Z("Resources", -1)
281
+ ])]),
282
+ _: 1
283
+ }),
284
+ c(I, null, {
285
+ default: k(() => [...s[8] || (s[8] = [
286
+ Z("Select the resources to display on the timeline.", -1)
287
+ ])]),
288
+ _: 1
289
+ })
290
+ ]),
291
+ _: 1
292
+ }),
293
+ c($, null, {
294
+ default: k(() => [
295
+ c(A, {
296
+ onClick: s[2] || (s[2] = (f) => {
297
+ y.value = "stacked", b.value = "", n.value = !1;
298
+ }),
299
+ variant: g.viewMode === "stacked" ? "secondary" : "outline"
300
+ }, {
301
+ default: k(() => [
302
+ c(e(be), { class: "size-3 text-muted-foreground" }),
303
+ l("span", jt, " All Resources (" + j(Object.values(g.totals).reduce((f, q) => f + q, 0).toLocaleString()) + ") ", 1)
304
+ ]),
305
+ _: 1
306
+ }, 8, ["variant"]),
307
+ (v(!0), T(ie, null, he(g.resources, (f) => (v(), L(A, {
308
+ key: f.id,
309
+ onClick: (q) => {
310
+ y.value = "single", b.value = f.id, n.value = !1;
311
+ },
312
+ variant: g.viewMode === "single" && g.activeChart === f.id ? "secondary" : "outline"
313
+ }, {
314
+ default: k(() => [
315
+ l("div", {
316
+ class: "size-3 rounded-full",
317
+ style: ve({ backgroundColor: f.color || "#6b7280" })
318
+ }, null, 4),
319
+ l("span", zt, j(f.name) + " (" + j((g.totals[f.id] || 0).toLocaleString()) + ") ", 1)
320
+ ]),
321
+ _: 2
322
+ }, 1032, ["onClick", "variant"]))), 128))
323
+ ]),
324
+ _: 1
325
+ })
326
+ ])
327
+ ]),
328
+ _: 1
329
+ })
330
+ ]),
331
+ _: 1
332
+ }, 8, ["open"])) : (v(), L(W, {
333
+ key: 2,
334
+ open: e(n),
335
+ "onUpdate:open": s[5] || (s[5] = (f) => se(n) ? n.value = f : null)
336
+ }, {
337
+ default: k(() => [
338
+ c(P, { "as-child": "" }, {
339
+ default: k(() => [...s[9] || (s[9] = [
340
+ l("button", {
341
+ tabindex: "-1",
342
+ class: "size-0 opacity-0 self-end"
343
+ }, null, -1)
344
+ ])]),
345
+ _: 1
346
+ }),
347
+ c(U, { align: "end" }, {
348
+ default: k(() => [
349
+ c(O, null, {
350
+ default: k(() => [...s[10] || (s[10] = [
351
+ Z("Resources", -1)
352
+ ])]),
353
+ _: 1
354
+ }),
355
+ l("div", Nt, [
356
+ c(M, {
357
+ onClick: s[4] || (s[4] = (f) => {
358
+ y.value = "stacked", b.value = "", n.value = !1;
359
+ }),
360
+ class: re(g.viewMode === "stacked" ? "bg-input" : "")
361
+ }, {
362
+ default: k(() => [
363
+ c(e(be), { class: "size-3 text-muted-foreground" }),
364
+ l("span", null, " All Resources (" + j(Object.values(g.totals).reduce((f, q) => f + q, 0).toLocaleString()) + ") ", 1)
365
+ ]),
366
+ _: 1
367
+ }, 8, ["class"]),
368
+ (v(!0), T(ie, null, he(g.resources, (f) => (v(), L(M, {
369
+ key: f.id,
370
+ onClick: (q) => {
371
+ y.value = "single", b.value = f.id, n.value = !1;
372
+ },
373
+ class: re(g.viewMode === "single" && g.activeChart === f.id ? "bg-input" : "")
374
+ }, {
375
+ default: k(() => [
376
+ l("div", {
377
+ class: "size-3 rounded-full",
378
+ style: ve({ backgroundColor: f.color || "#6b7280" })
379
+ }, null, 4),
380
+ l("span", Bt, [
381
+ l("span", Ft, j(f.name), 1),
382
+ l("span", null, "(" + j((g.totals[f.id] || 0).toLocaleString()) + ")", 1)
383
+ ])
384
+ ]),
385
+ _: 2
386
+ }, 1032, ["onClick", "class"]))), 128))
387
+ ])
388
+ ]),
389
+ _: 1
390
+ })
391
+ ]),
392
+ _: 1
393
+ }, 8, ["open"]))
394
+ ]);
395
+ };
396
+ }
397
+ }), Wt = { class: "flex flex-1 flex-col justify-center gap-1 px-6 py-5 sm:py-6" }, Gt = { class: "flex flex-col sm:flex-row sm:items-center gap-2 sm:gap-3" }, Ht = { class: "flex items-center gap-1" }, Ut = { class: "timeline-date-trigger" }, qt = {
398
+ key: 1,
399
+ class: "flex items-center justify-center px-6 py-4 text-muted-foreground text-sm"
400
+ }, Xt = {
401
+ key: 0,
402
+ class: "flex items-center justify-center h-[250px]"
403
+ }, Yt = {
404
+ key: 1,
405
+ class: "flex items-center justify-center h-[250px]"
406
+ }, Pe = "#61616180", Jt = /* @__PURE__ */ de({
407
+ __name: "Timeline",
408
+ props: {
409
+ modelValue: {},
410
+ selectedResource: {},
411
+ viewMode: {},
412
+ agendaData: {},
413
+ resources: {}
414
+ },
415
+ emits: ["update:modelValue", "update:selectedResource", "update:viewMode"],
416
+ setup(g, { emit: h }) {
417
+ const a = g, x = h, { params: y } = _e(), { config: b } = De(), _ = Se(b.project), d = z([]), n = z([]), i = z(!0), s = z(a.viewMode || "stacked"), u = z(a.selectedResource || "");
418
+ K(s, (t) => {
419
+ x("update:viewMode", t);
420
+ }, { immediate: !0 }), K(u, (t) => {
421
+ x("update:selectedResource", s.value === "single" ? t : null);
422
+ }), K(s, (t) => {
423
+ x("update:selectedResource", t === "single" ? u.value : null);
424
+ }), K(() => a.selectedResource, (t) => {
425
+ s.value === "single" && t !== u.value && (u.value = t || "");
426
+ });
427
+ const I = /* @__PURE__ */ new Date(), S = z(a.modelValue || /* @__PURE__ */ new Date()), A = z(null);
428
+ K(() => a.modelValue, (t) => {
429
+ t && t.getTime() !== S.value.getTime() && (S.value = t);
430
+ }), K(S, (t) => {
431
+ x("update:modelValue", t);
432
+ }, { immediate: !0 });
433
+ const $ = N({
434
+ get: () => ue(S.value),
435
+ set: (t) => {
436
+ if (!t) {
437
+ S.value = /* @__PURE__ */ new Date();
438
+ return;
439
+ }
440
+ S.value = /* @__PURE__ */ new Date(`${t}T00:00:00`);
441
+ }
442
+ }), X = () => {
443
+ const t = A.value;
444
+ if (t) {
445
+ if (typeof t.showPicker == "function") {
446
+ t.showPicker();
447
+ return;
448
+ }
449
+ t.focus(), t.click();
450
+ }
451
+ }, ne = N(() => {
452
+ const t = new Date(I);
453
+ t.setDate(I.getDate() - 1);
454
+ const p = new Date(I);
455
+ return p.setDate(I.getDate() + 1), S.value.toDateString() === I.toDateString() ? "Today" : S.value.toDateString() === t.toDateString() ? "Yesterday" : S.value.toDateString() === p.toDateString() ? "Tomorrow" : S.value.toLocaleDateString("en-US", {
456
+ weekday: "long",
457
+ month: "long",
458
+ day: "numeric",
459
+ year: "numeric"
460
+ });
461
+ }), P = () => {
462
+ const t = new Date(S.value);
463
+ t.setDate(t.getDate() - 1), S.value = t;
464
+ }, O = () => {
465
+ const t = new Date(S.value);
466
+ t.setDate(t.getDate() + 1), S.value = t;
467
+ }, M = () => {
468
+ S.value = /* @__PURE__ */ new Date();
469
+ }, U = N(() => a.resources?.length === 0 ? 10 : Math.max(...(a.resources || []).map((t) => t.capacity || 10))), W = N(() => (a.resources?.length || 0) === 0 ? 60 : Math.min(...(a.resources || []).map((t) => t.interval || 60))), f = N(() => {
470
+ const t = {
471
+ total: {
472
+ label: "Total Reservations",
473
+ color: void 0
474
+ }
475
+ };
476
+ return (a.resources || []).forEach((p, C) => {
477
+ t[p.id] = {
478
+ label: p.name,
479
+ color: p.color || `var(--chart-${C % 5 + 1})`
480
+ };
481
+ }), t;
482
+ });
483
+ K(() => a.resources, (t) => {
484
+ (t?.length || 0) > 0 && !u.value && (u.value = t[0].id);
485
+ }, { immediate: !0 });
486
+ const q = N(() => [...a.resources || []].sort((t, p) => {
487
+ const C = Y.value[t.id] || 0;
488
+ return (Y.value[p.id] || 0) - C;
489
+ })), oe = N(() => {
490
+ const t = [];
491
+ return W.value, d.value.forEach((p, C) => {
492
+ p.time.endsWith(":00") && t.push(C);
493
+ }), t;
494
+ }), Y = N(() => {
495
+ const t = {};
496
+ return a.resources?.forEach((p) => {
497
+ t[p.id] = n.value.filter((C) => C.resourceId === p.id).reduce((C, R) => C + (R.reserved || 0), 0);
498
+ }), t;
499
+ }), ue = (t) => {
500
+ const p = t.getFullYear(), C = String(t.getMonth() + 1).padStart(2, "0"), R = String(t.getDate()).padStart(2, "0");
501
+ return `${p}-${C}-${R}`;
502
+ }, r = (t) => {
503
+ const [p, C] = t.split(":").map(Number);
504
+ return p * 60 + C;
505
+ }, o = (t, p) => (a.agendaData?.exceptions || []).find((R) => p >= R.startDate && p <= R.endDate ? R.resourceIds === null ? !0 : R.resourceIds?.includes(t) : !1) || null, E = N(() => {
506
+ const t = ue(S.value), p = S.value.getDay();
507
+ let C = 1440, R = 0;
508
+ if ((a.resources || []).forEach((ae) => {
509
+ const F = o(ae.id, t);
510
+ if (F) {
511
+ if (F.isClosed)
512
+ return;
513
+ F.timeslots.forEach((J) => {
514
+ const D = r(J.startTime), w = r(J.endTime);
515
+ C = Math.min(C, D), R = Math.max(R, w);
516
+ });
517
+ } else
518
+ (ae.openingHours?.[p] || []).forEach((D) => {
519
+ const w = r(D.start), ee = r(D.end);
520
+ C = Math.min(C, w), R = Math.max(R, ee);
521
+ });
522
+ }), C >= R)
523
+ return { startMinutes: 540, endMinutes: 1020 };
524
+ const m = Math.floor(C / 60) * 60, te = Math.ceil(R / 60) * 60;
525
+ return { startMinutes: m, endMinutes: te };
526
+ }), G = () => {
527
+ const t = [], p = W.value, { startMinutes: C, endMinutes: R } = E.value;
528
+ for (let m = C; m < R; m += p) {
529
+ const te = Math.floor(m / 60), ae = m % 60, F = `${String(te).padStart(2, "0")}:${String(ae).padStart(2, "0")}`, J = {
530
+ time: F,
531
+ label: F
532
+ };
533
+ a.resources?.forEach((D) => {
534
+ J[D.id] = 0;
535
+ }), t.push(J);
536
+ }
537
+ return t;
538
+ }, H = async () => {
539
+ i.value = !0;
540
+ try {
541
+ const t = y.value.id, p = ue(S.value), C = `${t}_${p}`, R = await _.get(b.reservedSpotsCollection, C);
542
+ n.value = [];
543
+ for (const F of a.resources || []) {
544
+ const J = R?.[F.id] || {};
545
+ Object.entries(J).forEach(([D, w]) => {
546
+ const [ee, me] = D.split("-");
547
+ n.value.push({
548
+ resourceId: F.id,
549
+ startTime: ee,
550
+ endTime: me,
551
+ reserved: w
552
+ });
553
+ });
554
+ }
555
+ const m = G(), te = W.value, { startMinutes: ae } = E.value;
556
+ n.value.forEach((F) => {
557
+ const J = r(F.startTime), D = r(F.endTime);
558
+ for (let w = J; w < D; w += te) {
559
+ const ee = Math.floor((w - ae) / te);
560
+ if (ee >= 0 && ee < m.length) {
561
+ const me = m[ee][F.resourceId];
562
+ typeof me == "number" && (m[ee][F.resourceId] = me + (F.reserved || 0));
563
+ }
564
+ }
565
+ }), d.value = m;
566
+ } catch (t) {
567
+ console.error("Error loading reservation data:", t), d.value = G(), n.value = [];
568
+ } finally {
569
+ i.value = !1;
570
+ }
571
+ };
572
+ return (async () => await H())(), K(S, () => {
573
+ H();
574
+ }), K(() => a.resources, () => {
575
+ (a.resources?.length || 0) > 0 && H();
576
+ }), (t, p) => {
577
+ const C = V("CardTitle"), R = V("Button"), m = V("CardDescription"), te = V("CardHeader"), ae = V("ChartContainer"), F = V("CardContent"), J = V("Card");
578
+ return v(), L(J, { class: "py-4 sm:py-0" }, {
579
+ default: k(() => [
580
+ c(te, { class: "flex flex-col items-stretch border-b !p-0 sm:flex-row" }, {
581
+ default: k(() => [
582
+ l("div", Wt, [
583
+ l("div", Gt, [
584
+ c(C, null, {
585
+ default: k(() => [...p[3] || (p[3] = [
586
+ Z("Reservations", -1)
587
+ ])]),
588
+ _: 1
589
+ }),
590
+ l("div", Ht, [
591
+ c(R, {
592
+ variant: "outline",
593
+ size: "icon",
594
+ class: "size-8",
595
+ onClick: P
596
+ }, {
597
+ default: k(() => [
598
+ c(e(lt), { size: 16 })
599
+ ]),
600
+ _: 1
601
+ }),
602
+ c(R, {
603
+ variant: "outline",
604
+ size: "sm",
605
+ class: "h-8 px-3 text-xs",
606
+ onClick: M
607
+ }, {
608
+ default: k(() => [...p[4] || (p[4] = [
609
+ Z(" Today ", -1)
610
+ ])]),
611
+ _: 1
612
+ }),
613
+ c(R, {
614
+ variant: "outline",
615
+ size: "icon",
616
+ class: "size-8",
617
+ onClick: O
618
+ }, {
619
+ default: k(() => [
620
+ c(e(ct), { size: 16 })
621
+ ]),
622
+ _: 1
623
+ })
624
+ ])
625
+ ]),
626
+ c(m, null, {
627
+ default: k(() => [
628
+ l("div", Ut, [
629
+ c(R, {
630
+ type: "button",
631
+ variant: "outline",
632
+ onClick: X
633
+ }, {
634
+ default: k(() => [
635
+ c(e(dt), { class: "size-4" }),
636
+ Z(" " + j(e(ne)), 1)
637
+ ]),
638
+ _: 1
639
+ }),
640
+ He(l("input", {
641
+ ref_key: "dateInputRef",
642
+ ref: A,
643
+ "onUpdate:modelValue": p[0] || (p[0] = (D) => se($) ? $.value = D : null),
644
+ type: "date",
645
+ class: "timeline-date-picker",
646
+ "aria-label": "Select reservation date"
647
+ }, null, 512), [
648
+ [Ue, e($)]
649
+ ])
650
+ ])
651
+ ]),
652
+ _: 1
653
+ })
654
+ ]),
655
+ g.resources.length > 0 ? (v(), L(Lt, {
656
+ key: 0,
657
+ resources: g.resources,
658
+ totals: e(Y),
659
+ viewMode: e(s),
660
+ "onUpdate:viewMode": p[1] || (p[1] = (D) => se(s) ? s.value = D : null),
661
+ activeChart: e(u),
662
+ "onUpdate:activeChart": p[2] || (p[2] = (D) => se(u) ? u.value = D : null)
663
+ }, null, 8, ["resources", "totals", "viewMode", "activeChart"])) : (v(), T("div", qt, " No resources configured "))
664
+ ]),
665
+ _: 1
666
+ }),
667
+ c(F, { class: "px-2 sm:p-6" }, {
668
+ default: k(() => [
669
+ e(i) ? (v(), T("div", Xt, [...p[5] || (p[5] = [
670
+ l("div", { class: "text-muted-foreground" }, "Loading...", -1)
671
+ ])])) : g.resources.length === 0 ? (v(), T("div", Yt, [...p[6] || (p[6] = [
672
+ l("div", { class: "text-muted-foreground" }, "No resources to display", -1)
673
+ ])])) : e(s) === "stacked" ? (v(), L(ae, {
674
+ key: 2,
675
+ config: e(f),
676
+ class: "aspect-auto h-[250px] w-full",
677
+ cursor: ""
678
+ }, {
679
+ default: k(() => [
680
+ c(e(Ie), {
681
+ data: e(d),
682
+ margin: { left: -24 },
683
+ "y-domain": [0, e(U)]
684
+ }, {
685
+ default: k(() => [
686
+ (v(!0), T(ie, null, he(e(q), (D) => (v(), L(e(Ee), {
687
+ key: D.id,
688
+ x: (w, ee) => ee,
689
+ y: (w) => w[D.id] || 0,
690
+ color: (w) => w[D.id] > 0 ? e(f)[D.id]?.color : Pe,
691
+ "bar-padding": 0.1,
692
+ "rounded-corners": 2
693
+ }, null, 8, ["x", "y", "color"]))), 128)),
694
+ c(e(fe), {
695
+ type: "x",
696
+ x: (D, w) => w,
697
+ "tick-line": !1,
698
+ "domain-line": !1,
699
+ "grid-line": !1,
700
+ "tick-values": e(oe),
701
+ "tick-format": (D) => e(d)[D]?.time || ""
702
+ }, null, 8, ["x", "tick-values", "tick-format"]),
703
+ c(e(fe), {
704
+ type: "y",
705
+ "num-ticks": 3,
706
+ "tick-line": !1,
707
+ "domain-line": !1
708
+ }),
709
+ c(e(Te)),
710
+ c(e(Ae), {
711
+ template: e(Me)(e(f), e(Re), {
712
+ labelFormatter(D) {
713
+ const w = Math.round(D);
714
+ return w >= 0 && w < e(d).length && e(d)[w]?.time || "";
715
+ }
716
+ }),
717
+ color: "#0000"
718
+ }, null, 8, ["template"])
719
+ ]),
720
+ _: 1
721
+ }, 8, ["data", "y-domain"])
722
+ ]),
723
+ _: 1
724
+ }, 8, ["config"])) : (v(), L(ae, {
725
+ key: e(u),
726
+ config: e(f),
727
+ class: "aspect-auto h-[250px] w-full",
728
+ cursor: ""
729
+ }, {
730
+ default: k(() => [
731
+ c(e(Ie), {
732
+ data: e(d),
733
+ margin: { left: -24 },
734
+ "y-domain": [0, e(U)]
735
+ }, {
736
+ default: k(() => [
737
+ c(e(Ee), {
738
+ x: (D, w) => w,
739
+ y: (D) => D[e(u)] || 0,
740
+ color: (D) => D[e(u)] > 0 ? e(f)[e(u)]?.color : Pe,
741
+ "bar-padding": 0.1,
742
+ "rounded-corners": !1
743
+ }, null, 8, ["x", "y", "color"]),
744
+ c(e(fe), {
745
+ type: "x",
746
+ x: (D, w) => w,
747
+ "tick-line": !1,
748
+ "domain-line": !1,
749
+ "grid-line": !1,
750
+ "tick-values": e(oe),
751
+ "tick-format": (D) => e(d)[D]?.time || ""
752
+ }, null, 8, ["x", "tick-values", "tick-format"]),
753
+ c(e(fe), {
754
+ type: "y",
755
+ "num-ticks": 3,
756
+ "tick-line": !1,
757
+ "domain-line": !1
758
+ }),
759
+ c(e(Te)),
760
+ c(e(Ae), {
761
+ template: e(Me)(e(f), e(Re), {
762
+ labelFormatter(D) {
763
+ const w = Math.round(D);
764
+ return w >= 0 && w < e(d).length && e(d)[w]?.time || "";
765
+ }
766
+ }),
767
+ color: "#0000"
768
+ }, null, 8, ["template"])
769
+ ]),
770
+ _: 1
771
+ }, 8, ["data", "y-domain"])
772
+ ]),
773
+ _: 1
774
+ }, 8, ["config"]))
775
+ ]),
776
+ _: 1
777
+ })
778
+ ]),
779
+ _: 1
780
+ });
781
+ };
782
+ }
783
+ }), Kt = /* @__PURE__ */ bt(Jt, [["__scopeId", "data-v-62490f67"]]), Qt = { class: "flex flex-row items-center justify-between gap-2" }, Zt = { class: "relative mb-4" }, ea = { class: "flex gap-1 mb-4 flex-wrap" }, ta = {
784
+ key: 0,
785
+ class: "mb-3 text-sm text-muted-foreground"
786
+ }, aa = {
787
+ key: 1,
788
+ class: "flex items-center justify-center py-8"
789
+ }, sa = {
790
+ key: 2,
791
+ class: "flex flex-col items-center gap-2 text-center py-8 text-muted-foreground"
792
+ }, oa = {
793
+ key: 3,
794
+ class: "text-center py-8 text-muted-foreground"
795
+ }, na = {
796
+ key: 4,
797
+ class: "space-y-2"
798
+ }, ra = ["onClick"], ia = { class: "flex items-start justify-between" }, la = { class: "flex-1" }, ca = { class: "font-medium" }, da = { class: "text-sm text-muted-foreground" }, ua = { class: "text-sm text-muted-foreground" }, ma = { class: "flex items-center gap-4 flex-wrap" }, pa = { class: "flex items-center gap-2 mt-1 text-xs text-muted-foreground" }, fa = { class: "flex items-center gap-2 mt-1 text-xs text-muted-foreground" }, va = {
799
+ key: 0,
800
+ class: "flex items-center gap-1 mt-1 text-xs text-muted-foreground"
801
+ }, ga = { class: "text-right" }, ha = {
802
+ key: 0,
803
+ 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"
804
+ }, xa = {
805
+ key: 1,
806
+ 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"
807
+ }, ya = {
808
+ key: 2,
809
+ 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"
810
+ }, ba = {
811
+ key: 3,
812
+ 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"
813
+ }, ka = {
814
+ key: 4,
815
+ 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"
816
+ }, _a = {
817
+ key: 5,
818
+ class: "text-sm font-medium mt-1"
819
+ }, Da = /* @__PURE__ */ de({
820
+ __name: "BookingsList",
821
+ props: {
822
+ agendaData: {},
823
+ activeDate: {},
824
+ selectedResource: {},
825
+ resources: {}
826
+ },
827
+ emits: ["resetSelectedResource"],
828
+ setup(g, { emit: h }) {
829
+ const a = g, x = h, { params: y } = _e(), { config: b } = De(), _ = Se(b.project), d = z([]), n = z(!0), i = z(""), s = z(null), u = z(null), I = N(() => a.agendaData?.metadataSchema || []), S = N(() => ({
830
+ date: A(a.activeDate),
831
+ resource: null
832
+ }));
833
+ qe("event", S);
834
+ const A = (r) => {
835
+ const o = r.getFullYear(), E = String(r.getMonth() + 1).padStart(2, "0"), G = String(r.getDate()).padStart(2, "0");
836
+ return `${o}-${E}-${G}`;
837
+ }, $ = N(() => {
838
+ let r = d.value;
839
+ return a.selectedResource && (r = r.filter((o) => o.resourceId === a.selectedResource)), i.value.trim() && (r = new kt(r, {
840
+ keys: [
841
+ "customerInfo.firstName",
842
+ "customerInfo.lastName",
843
+ "customerInfo.email",
844
+ "customerInfo.phone",
845
+ "resourceName"
846
+ ],
847
+ threshold: 0.3,
848
+ ignoreLocation: !0
849
+ }).search(i.value).map((E) => E.item)), r;
850
+ }), X = N(() => $.value.filter((r) => M.value.includes(r.reservationStatus))), ne = N(() => {
851
+ let r = JSON.parse(JSON.stringify(d.value));
852
+ return a.selectedResource && (r = r.filter((o) => o.resourceId === a.selectedResource)), r.some((o) => o.reservationStatus === "approved" || o.reservationStatus === "needs_approval");
853
+ }), P = N(() => ({
854
+ spots: d.value.reduce((r, o) => r + (o.spots || 0), 0),
855
+ bookings: d.value.length
856
+ })), O = () => {
857
+ i.value = "";
858
+ }, M = z(["needs_approval", "approved"]), U = (r) => {
859
+ M.value.includes(r) ? M.value = M.value.filter((o) => o !== r) : M.value.push(r);
860
+ }, W = (r, o, E = o.date) => {
861
+ const G = a.resources.find((B) => B.id === o.resourceId), H = r.id || r.orderId || o.orderId || "";
862
+ return {
863
+ customerInfo: r.customerInfo,
864
+ amountDue: r.amountDue,
865
+ amountPaid: r.amountPaid,
866
+ status: r.status,
867
+ reservationStatus: o.status,
868
+ subtotal: r.subtotal,
869
+ total: r.total,
870
+ discount: r.discount,
871
+ id: H,
872
+ res_id: o.id,
873
+ resourceId: o.resourceId,
874
+ spots: o.spots,
875
+ date: E,
876
+ createdAt: r.createdAt,
877
+ startTime: o.timeslot?.startTime,
878
+ endTime: o.timeslot?.endTime,
879
+ reservationPrice: o.totalPrice,
880
+ reservationBasePrice: o.basePrice,
881
+ reservationAddOnsPrice: o.addOnsPrice,
882
+ pricingOptionId: o.pricingOptionId,
883
+ pricingOption: o.pricingOption,
884
+ resourceName: G?.name || "Unknown",
885
+ resourceColor: G?.color,
886
+ metadata: r.metadata || {},
887
+ reservationMetadata: o.metadata || {},
888
+ adjustments: r.adjustments || [],
889
+ reservationAdjustments: o.adjustments || []
890
+ };
891
+ }, f = async () => {
892
+ await Oe(), await new Promise((r) => {
893
+ if (typeof requestAnimationFrame == "function") {
894
+ requestAnimationFrame(() => r());
895
+ return;
896
+ }
897
+ r();
898
+ });
899
+ }, q = async (r) => {
900
+ const o = await _.get(b.reservationsCollection, r);
901
+ if (!o) return;
902
+ const E = { ...o, id: o.id || r }, G = (E.reservations || []).map((H) => W(E, H));
903
+ G.length && (await f(), u.value?.openDialog({
904
+ id: E.id,
905
+ customerInfo: E.customerInfo,
906
+ status: E.status,
907
+ createdAt: E.createdAt,
908
+ metadata: E.metadata || {},
909
+ reservations: G,
910
+ adjustments: E.adjustments || [],
911
+ totalPrice: typeof E.total == "number" ? E.total : G.reduce((H, B) => H + (B.reservationPrice || 0), 0),
912
+ totalSpots: G.reduce((H, B) => H + (B.spots || 0), 0)
913
+ }));
914
+ }, oe = async (r) => {
915
+ await f(), s.value?.openDialog(r);
916
+ }, Y = async () => {
917
+ n.value = !0, d.value = [];
918
+ try {
919
+ const r = y.value.id, o = A(a.activeDate), E = /* @__PURE__ */ new Set();
920
+ a.resources?.forEach((B) => {
921
+ const t = `${B.id}_${o}`;
922
+ E.add(t);
923
+ });
924
+ const G = await _.find(b.reservationsCollection, {
925
+ filters: [
926
+ { field: "agendaId", operator: "==", value: r },
927
+ { field: "status", operator: "==", value: "confirmed" },
928
+ { field: "flattenedReservationDates", operator: "array-contains-any", value: Array.from(E) }
929
+ ]
930
+ });
931
+ let H = [];
932
+ G.forEach((B) => {
933
+ (B.reservations?.filter((p) => p.date === o) || []).forEach((p) => {
934
+ H.push(W(B, p, o));
935
+ });
936
+ }), d.value = H.sort((B, t) => B.startTime?.localeCompare(t.startTime || "") || 0);
937
+ } catch (r) {
938
+ console.error("Error loading orders:", r), d.value = [];
939
+ } finally {
940
+ n.value = !1;
941
+ }
942
+ };
943
+ return (async () => await Y())(), K(() => a.activeDate, () => {
944
+ Y();
945
+ }), (r, o) => {
946
+ const E = V("Badge"), G = V("CardTitle"), H = V("CardDescription"), B = V("Button"), t = V("CardHeader"), p = V("Input"), C = V("CardContent"), R = V("Card");
947
+ return v(), L(R, null, {
948
+ default: k(() => [
949
+ c(t, null, {
950
+ default: k(() => [
951
+ l("div", Qt, [
952
+ l("div", null, [
953
+ c(G, { class: "flex items-center gap-2" }, {
954
+ default: k(() => [
955
+ o[9] || (o[9] = Z(" Bookings ", -1)),
956
+ e(P).bookings > 0 ? (v(), L(E, {
957
+ key: 0,
958
+ variant: "secondary"
959
+ }, {
960
+ default: k(() => [
961
+ Z(j(e(P).bookings), 1)
962
+ ]),
963
+ _: 1
964
+ })) : Q("", !0)
965
+ ]),
966
+ _: 1
967
+ }),
968
+ c(H, { class: "flex items-center gap-2 mt-1" }, {
969
+ default: k(() => [
970
+ c(e(Ve), { size: 14 }),
971
+ l("span", null, j(e(P).spots) + " total spots", 1)
972
+ ]),
973
+ _: 1
974
+ })
975
+ ]),
976
+ c(B, {
977
+ variant: "ghost",
978
+ size: "icon",
979
+ onClick: Y,
980
+ disabled: e(n)
981
+ }, {
982
+ default: k(() => [
983
+ c(e(ut), {
984
+ size: 16,
985
+ class: re({ "animate-spin": e(n) })
986
+ }, null, 8, ["class"])
987
+ ]),
988
+ _: 1
989
+ }, 8, ["disabled"])
990
+ ])
991
+ ]),
992
+ _: 1
993
+ }),
994
+ c(C, null, {
995
+ default: k(() => [
996
+ l("div", Zt, [
997
+ c(e(mt), {
998
+ size: 16,
999
+ class: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground"
1000
+ }),
1001
+ c(p, {
1002
+ modelValue: e(i),
1003
+ "onUpdate:modelValue": o[0] || (o[0] = (m) => se(i) ? i.value = m : null),
1004
+ placeholder: "Search by name, email, or phone...",
1005
+ class: "pl-9 pr-9"
1006
+ }, null, 8, ["modelValue"]),
1007
+ e(i) ? (v(), L(B, {
1008
+ key: 0,
1009
+ variant: "ghost",
1010
+ size: "icon",
1011
+ class: "absolute right-1 top-1/2 -translate-y-1/2 h-7 w-7",
1012
+ onClick: O
1013
+ }, {
1014
+ default: k(() => [
1015
+ c(e(pt), { size: 14 })
1016
+ ]),
1017
+ _: 1
1018
+ })) : Q("", !0)
1019
+ ]),
1020
+ l("div", ea, [
1021
+ g.agendaData.needsApproval ? (v(), T("button", {
1022
+ key: 0,
1023
+ onClick: o[1] || (o[1] = (m) => U("needs_approval")),
1024
+ class: re(["px-3 py-1.5 rounded-full text-sm bg-muted", { "opacity-50 hover:opacity-75": !e(M).includes("needs_approval") }])
1025
+ }, " Needs Approval ", 2)) : Q("", !0),
1026
+ l("button", {
1027
+ onClick: o[2] || (o[2] = (m) => U("approved")),
1028
+ class: re(["px-3 py-1.5 rounded-full text-sm bg-muted", { "opacity-50 hover:opacity-75": !e(M).includes("approved") }])
1029
+ }, " Approved ", 2),
1030
+ l("button", {
1031
+ onClick: o[3] || (o[3] = (m) => U("rejected")),
1032
+ class: re(["px-3 py-1.5 rounded-full text-sm bg-muted", { "opacity-50 hover:opacity-75": !e(M).includes("rejected") }])
1033
+ }, " Rejected ", 2),
1034
+ l("button", {
1035
+ onClick: o[4] || (o[4] = (m) => U("cancelled")),
1036
+ class: re(["px-3 py-1.5 rounded-full text-sm bg-muted", { "opacity-50 hover:opacity-75": !e(M).includes("cancelled") }])
1037
+ }, " Cancelled ", 2)
1038
+ ]),
1039
+ e(i) ? (v(), T("div", ta, " Showing " + j(e($).length) + " of " + j(e(d).length) + " bookings ", 1)) : Q("", !0),
1040
+ e(n) ? (v(), T("div", aa, [...o[10] || (o[10] = [
1041
+ l("div", { class: "animate-spin rounded-full h-8 w-8 border-b-2 border-primary" }, null, -1)
1042
+ ])])) : e(X).length === 0 ? (v(), T("div", sa, [
1043
+ o[13] || (o[13] = Z(" No bookings for this day ", -1)),
1044
+ e(ne) ? (v(), L(B, {
1045
+ key: 0,
1046
+ onClick: o[5] || (o[5] = (m) => M.value = ["needs_approval", "approved"])
1047
+ }, {
1048
+ default: k(() => [...o[11] || (o[11] = [
1049
+ Z("Reset filters", -1)
1050
+ ])]),
1051
+ _: 1
1052
+ })) : Q("", !0),
1053
+ g.selectedResource !== null ? (v(), L(B, {
1054
+ key: 1,
1055
+ onClick: o[6] || (o[6] = (m) => x("resetSelectedResource"))
1056
+ }, {
1057
+ default: k(() => [...o[12] || (o[12] = [
1058
+ Z("Reset resource filter", -1)
1059
+ ])]),
1060
+ _: 1
1061
+ })) : Q("", !0)
1062
+ ])) : e($).length === 0 ? (v(), T("div", oa, " No bookings match your search ")) : (v(), T("div", na, [
1063
+ (v(!0), T(ie, null, he(e($), (m) => (v(), T("div", {
1064
+ key: m.res_id || m.id,
1065
+ class: "p-3 border rounded-lg hover:bg-muted/50 transition-colors cursor-pointer",
1066
+ onClick: (te) => e(s)?.openDialog(m)
1067
+ }, [
1068
+ l("div", ia, [
1069
+ l("div", la, [
1070
+ l("div", ca, j(m.customerInfo.firstName + " " + m.customerInfo.lastName || "Unknown Customer"), 1),
1071
+ l("div", da, j(m.customerInfo?.email), 1),
1072
+ l("div", ua, j(m.customerInfo?.phone), 1),
1073
+ l("div", ma, [
1074
+ l("div", pa, [
1075
+ c(e(ft), { size: 12 }),
1076
+ l("span", null, j(m.startTime) + " - " + j(m.endTime), 1)
1077
+ ]),
1078
+ l("div", fa, [
1079
+ c(e(Ve), { size: 12 }),
1080
+ l("span", null, j(m.spots) + " spots", 1)
1081
+ ]),
1082
+ m.resourceName ? (v(), T("div", va, [
1083
+ l("div", {
1084
+ class: "w-3 h-3 rounded-full",
1085
+ style: ve({ backgroundColor: m.resourceColor || "#6b7280" })
1086
+ }, null, 4),
1087
+ l("span", null, j(m.resourceName), 1)
1088
+ ])) : Q("", !0)
1089
+ ]),
1090
+ c(_t, {
1091
+ metadata: { ...m.metadata, ...m.reservationMetadata },
1092
+ schema: e(I),
1093
+ "display-filter": ["highlight", "badge"],
1094
+ compact: "",
1095
+ class: "mt-1"
1096
+ }, null, 8, ["metadata", "schema"])
1097
+ ]),
1098
+ l("div", ga, [
1099
+ m.reservationStatus === "needs_approval" ? (v(), T("span", ha, "Needs Approval")) : m.reservationStatus === "approved" ? (v(), T("span", xa, "Approved")) : m.reservationStatus === "rejected" ? (v(), T("span", ya, "Rejected")) : m.reservationStatus === "cancelled" ? (v(), T("span", ba, "Cancelled")) : (v(), T("span", ka, "Pending")),
1100
+ m.reservationPrice || m.reservationPrice === 0 ? (v(), T("div", _a, " €" + j(m.reservationPrice.toFixed(2)), 1)) : Q("", !0)
1101
+ ])
1102
+ ])
1103
+ ], 8, ra))), 128))
1104
+ ]))
1105
+ ]),
1106
+ _: 1
1107
+ }),
1108
+ c(Dt, {
1109
+ ref_key: "reservationDetailDialog",
1110
+ ref: s,
1111
+ agendaData: g.agendaData,
1112
+ "show-order-link": "",
1113
+ onCancelled: Y,
1114
+ onConfirmed: Y,
1115
+ onRejected: Y,
1116
+ onOpenOrder: o[7] || (o[7] = (m) => q(m))
1117
+ }, null, 8, ["agendaData"]),
1118
+ c(St, {
1119
+ ref_key: "orderDetailDialog",
1120
+ ref: u,
1121
+ agendaData: g.agendaData,
1122
+ onOpenReservation: o[8] || (o[8] = (m) => oe(m))
1123
+ }, null, 8, ["agendaData"])
1124
+ ]),
1125
+ _: 1
1126
+ });
1127
+ };
1128
+ }
1129
+ }), Sa = { class: "space-y-6" }, wa = { class: "flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4" }, Ca = { class: "text-2xl font-semibold tracking-tight" }, $a = { class: "flex flex-col md:flex-row gap-2" }, Ma = { class: "grid gap-6 md:grid-cols-2 lg:grid-cols-3" }, Ra = { class: "md:col-span-2 lg:col-span-3" }, La = /* @__PURE__ */ de({
1130
+ __name: "index",
1131
+ setup(g) {
1132
+ const { hasPermission: h } = Xe(), { params: a, resolvePath: x } = _e(), { config: y } = De(), b = Se(y.project), _ = z(""), d = z(!0), n = z(/* @__PURE__ */ new Date()), i = z(null), s = z("stacked"), u = z(null), I = z([]);
1133
+ return (async () => {
1134
+ try {
1135
+ const A = await b.get(y.agendaCollection, a.value.id);
1136
+ _.value = A?.serviceName || "", u.value = A, I.value = A?.resources?.filter(($) => $.isActive) || [];
1137
+ } catch (A) {
1138
+ console.error("Error loading data:", A);
1139
+ } finally {
1140
+ d.value = !1;
1141
+ }
1142
+ })(), (A, $) => (v(), L(Ye, null, {
1143
+ default: k(() => [
1144
+ l("div", Sa, [
1145
+ l("div", wa, [
1146
+ l("div", null, [
1147
+ l("h1", Ca, j(e(_) || "Dashboard"), 1),
1148
+ $[4] || ($[4] = l("p", { class: "text-muted-foreground text-sm mt-1" }, " Overview and analytics for your booking service ", -1))
1149
+ ]),
1150
+ l("div", $a, [
1151
+ e(h)("manage-reservations") ? (v(), L(wt, {
1152
+ key: 0,
1153
+ "agenda-data": e(u)
1154
+ }, null, 8, ["agenda-data"])) : Q("", !0)
1155
+ ])
1156
+ ]),
1157
+ c(Kt, {
1158
+ modelValue: e(n),
1159
+ "onUpdate:modelValue": $[0] || ($[0] = (X) => se(n) ? n.value = X : null),
1160
+ "view-mode": e(s),
1161
+ "onUpdate:viewMode": $[1] || ($[1] = (X) => se(s) ? s.value = X : null),
1162
+ "selected-resource": e(i),
1163
+ "onUpdate:selectedResource": $[2] || ($[2] = (X) => se(i) ? i.value = X : null),
1164
+ "agenda-data": e(u),
1165
+ resources: e(I)
1166
+ }, null, 8, ["modelValue", "view-mode", "selected-resource", "agenda-data", "resources"]),
1167
+ l("div", Ma, [
1168
+ l("div", Ra, [
1169
+ e(I).length > 0 ? (v(), L(Da, {
1170
+ key: 0,
1171
+ "agenda-data": e(u),
1172
+ "active-date": e(n),
1173
+ "selected-resource": e(i),
1174
+ resources: e(I),
1175
+ onResetSelectedResource: $[3] || ($[3] = (X) => i.value = null)
1176
+ }, null, 8, ["agenda-data", "active-date", "selected-resource", "resources"])) : Q("", !0)
1177
+ ])
1178
+ ])
1179
+ ])
1180
+ ]),
1181
+ _: 1
1182
+ }));
1183
+ }
1184
+ });
1185
+ export {
1186
+ La as default
1187
+ };