@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.
- package/dist/Acquisition-DNCy8nQz.mjs +400 -0
- package/dist/Acquisition-Dt2rREU8.js +1 -0
- package/dist/AgendaOpeningHoursCard-B7ROIPWw.js +1 -0
- package/dist/AgendaOpeningHoursCard-Cp4wxUeK.mjs +172 -0
- package/dist/AppointmentDetailsCard-33WpATpV.mjs +161 -0
- package/dist/AppointmentDetailsCard-DpLM5IrB.js +1 -0
- package/dist/AppointmentEditor-BeOtYV6u.mjs +196 -0
- package/dist/AppointmentEditor-CaTfbkIf.js +1 -0
- package/dist/AppointmentListTable-DZJNmTMb.mjs +177 -0
- package/dist/AppointmentListTable-Dieu9US_.js +1 -0
- package/dist/Audience-Bs7b0TNm.js +1 -0
- package/dist/Audience-CUeMVYRy.mjs +489 -0
- package/dist/Components-C83O-xlF.mjs +623 -0
- package/dist/Components-DXbx0RLV.js +1 -0
- package/dist/Content-BHr_rPVY.js +1 -0
- package/dist/Content-CYOZKvWK.mjs +358 -0
- package/dist/ContentEditor-BprPiHMJ.js +462 -0
- package/dist/ContentEditor-D9-1SJ5F.mjs +30700 -0
- package/dist/CountryBreakdownCard-D7BK3nRD.js +1 -0
- package/dist/CountryBreakdownCard-DVxNz2DJ.mjs +196 -0
- package/dist/Create-89z41K73.js +1 -0
- package/dist/Create-BCklc_T1.mjs +1251 -0
- package/dist/DateFormatter-CYAD4GBN.js +1 -0
- package/dist/DateFormatter-DUxlo8X8.mjs +734 -0
- package/dist/Detail-BCOcP2ql.mjs +585 -0
- package/dist/Detail-Btzwo0Y3.mjs +3477 -0
- package/dist/Detail-Byk781b4.mjs +26 -0
- package/dist/Detail-C857g62L.js +1 -0
- package/dist/Detail-C8wQiDcv.js +1 -0
- package/dist/Detail-CNlljBfH.mjs +379 -0
- package/dist/Detail-CPqug27l.js +1 -0
- package/dist/Detail-CjuhjPby.js +1 -0
- package/dist/Detail-DnX7tsqN.mjs +649 -0
- package/dist/Detail-mvSGbnFU.js +1 -0
- package/dist/DeviceBreakdownCard-DRhQ9ufG.js +1 -0
- package/dist/DeviceBreakdownCard-W1frLe0L.mjs +159 -0
- package/dist/EditLayout.vue_vue_type_script_setup_true_lang-DWMqQvHl.mjs +76 -0
- package/dist/EditLayout.vue_vue_type_script_setup_true_lang-kpjbVSXg.js +1 -0
- package/dist/Entries-BdhUyJR5.mjs +728 -0
- package/dist/Entries-CEXM_SkO.js +1 -0
- package/dist/Find-D4Qa45qC.js +1 -0
- package/dist/Find-DIISO5GO.mjs +229 -0
- package/dist/GlobalStyling-C9VthHWK.mjs +1588 -0
- package/dist/GlobalStyling-CnSlXkZc.js +25 -0
- package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-Ceoje52V.js +1 -0
- package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-Dh9jzvE0.mjs +1255 -0
- package/dist/OrderDetailDialog.vue_vue_type_script_setup_true_lang-COrK1j0S.js +1 -0
- package/dist/OrderDetailDialog.vue_vue_type_script_setup_true_lang-Vb3q8EVv.mjs +330 -0
- package/dist/Overview-BCpJNiEB.mjs +190 -0
- package/dist/Overview-BDlBCUI_.js +1 -0
- package/dist/Overview-BKAti8nc.mjs +567 -0
- package/dist/Overview-BbvfH1u-.js +1 -0
- package/dist/Overview-Bn1Xx3_j.js +1 -0
- package/dist/Overview-C-Jb_BxY.mjs +860 -0
- package/dist/Overview-CIa1E-HH.mjs +178 -0
- package/dist/Overview-DAxCu9XC.js +1 -0
- package/dist/Overview-DC9io1bk.js +1 -0
- package/dist/Overview-Di84CsR5.mjs +476 -0
- package/dist/Overview-Su8ZUbMs.mjs +26 -0
- package/dist/Overview-T-lsy3UZ.js +1 -0
- package/dist/Overview-UoZHUMUz.js +1 -0
- package/dist/Overview-lWAyyenp.mjs +632 -0
- package/dist/PeakHoursCard-9-EZFZLR.mjs +182 -0
- package/dist/PeakHoursCard-BR5zmta4.js +1 -0
- package/dist/ProductDetailsCard-6nHikw4V.mjs +121 -0
- package/dist/ProductDetailsCard-Bn7qrgmc.js +1 -0
- package/dist/RealtimeCard--APfRNc8.js +1 -0
- package/dist/RealtimeCard-fvQlJcM7.mjs +126 -0
- package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-CuwREvXD.js +349 -0
- package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-GYNZ_yhD.mjs +3077 -0
- package/dist/SearchTermsCard-BsB-63aH.js +1 -0
- package/dist/SearchTermsCard-BzVrHKqQ.mjs +201 -0
- package/dist/SendPush-COns44j7.js +1 -0
- package/dist/SendPush-CPIOjVX4.mjs +184 -0
- package/dist/SeoHealth-MC3lSCOY.mjs +615 -0
- package/dist/SeoHealth-az1YuNF2.js +1 -0
- package/dist/TableView-DQW0A1oG.js +4 -0
- package/dist/TableView-DXHhJ-jm.mjs +6143 -0
- package/dist/TemplateList.vue_vue_type_script_setup_true_lang-B_AtWnHa.js +1 -0
- package/dist/TemplateList.vue_vue_type_script_setup_true_lang-Cmovy7kk.mjs +40 -0
- package/dist/TopPagesCard-BDeA997A.js +1 -0
- package/dist/TopPagesCard-CTozhOr_.mjs +159 -0
- package/dist/TrafficSourcesCard-BxtCKsqx.mjs +197 -0
- package/dist/TrafficSourcesCard-C3ziDTUL.js +1 -0
- package/dist/View-CsudjxCE.mjs +30 -0
- package/dist/View-Dw_wA6kK.js +1 -0
- package/dist/VisitorStatsCard-BmByE_Hi.js +1 -0
- package/dist/VisitorStatsCard-CXizEbVK.mjs +174 -0
- package/dist/_plugin-vue_export-helper-BHFhmbuH.js +1 -0
- package/dist/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
- package/dist/agenda-DcatSSYQ.mjs +1165 -0
- package/dist/agenda-IOqtALWf.js +1 -0
- package/dist/array-CbATeQbk.js +1 -0
- package/dist/array-DT5pE8Gm.mjs +108 -0
- package/dist/availability-CMrRa5y2.mjs +269 -0
- package/dist/availability-Cf2YfMwM.js +1 -0
- package/dist/booking-data-DgJd0BcM.mjs +889 -0
- package/dist/booking-data-Di5GmH_8.js +1 -0
- package/dist/cms-core-modules.css +1 -2
- package/dist/countries-BTPvmrsb.mjs +4 -0
- package/dist/countries-CgZ081No.js +1 -0
- package/dist/exceptions-CI0B4xVj.js +1 -0
- package/dist/exceptions-YCQkHa6a.mjs +646 -0
- package/dist/google-CvtuJwgk.mjs +4 -0
- package/dist/google-D4N3gb01.js +1 -0
- package/dist/index-4tjmIans.js +1 -0
- package/dist/index-9HVlmvK3.js +1 -0
- package/dist/index-A2kp8Isi.js +75 -0
- package/dist/index-B5aBwdxY.js +54 -0
- package/dist/index-BFLV54kw.mjs +3843 -0
- package/dist/index-BWDwEd8D.mjs +24 -0
- package/dist/index-BfBBm9uY.mjs +24 -0
- package/dist/index-BhWvXMOp.mjs +176 -0
- package/dist/index-BiT55eU0.js +58 -0
- package/dist/index-Bkq58CeQ.mjs +22 -0
- package/dist/index-BzWmWCo5.mjs +1187 -0
- package/dist/index-CJQQBRLY.js +1 -0
- package/dist/index-CQkOH2_3.mjs +24 -0
- package/dist/index-CSxYBeVA.js +1 -0
- package/dist/index-CU-tbS5W.mjs +24 -0
- package/dist/index-CZn2nDLv.mjs +34 -0
- package/dist/index-CkiNvRzs.js +1 -0
- package/dist/index-Co4ON2Di.js +1 -0
- package/dist/index-Cpnn_Pxd.mjs +24 -0
- package/dist/index-CpzDEMeC.mjs +1443 -0
- package/dist/index-CsVeM3PA.mjs +24 -0
- package/dist/index-CwqrAU-H.js +1 -0
- package/dist/index-CxETuRsG.js +1 -0
- package/dist/index-Cz-baGax.js +1 -0
- package/dist/index-D30apIn-.mjs +110 -0
- package/dist/index-DFQGVHTs.js +1 -0
- package/dist/index-DPd3waTN.js +1 -0
- package/dist/index-DRqJOqUR.mjs +3484 -0
- package/dist/index-DjWuIBxh.js +1 -0
- package/dist/index-Dnn2SCSl.js +1 -0
- package/dist/index-Dpl9sU6a.mjs +12 -0
- package/dist/index-DrXxXB2F.mjs +138 -0
- package/dist/index-G7cIlnGN.js +158 -0
- package/dist/index-R2oUDsjx.js +1 -0
- package/dist/index-RLz1QPrf.mjs +203 -0
- package/dist/index-UtjLbLw-.js +1 -0
- package/dist/index-V78huaSJ.mjs +442 -0
- package/dist/index-cOnxXTbF.mjs +24 -0
- package/dist/index-hlylYYgy.mjs +24 -0
- package/dist/index-ijdf0d9-.js +1 -0
- package/dist/index-vHmvbEwa.js +35 -0
- package/dist/index-wjkEPsNx.mjs +2940 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.mjs +806 -1095
- package/dist/interpolation-CHn59tIC.js +1 -0
- package/dist/interpolation-w7IRDJwK.mjs +180 -0
- package/dist/orders-C65SlpJy.mjs +618 -0
- package/dist/orders-XVzWAgG1.js +1 -0
- package/dist/payment-C3ohkehF.mjs +1080 -0
- package/dist/payment-Dfr-Ro-a.js +1 -0
- package/dist/regular-1LXNPviB.js +1 -0
- package/dist/regular-_05oq5Tx.mjs +1101 -0
- package/dist/resources-CYOb5Bl6.mjs +811 -0
- package/dist/resources-CxeFd57z.js +1 -0
- package/dist/server-handlers.cjs.js +1 -1
- package/dist/server-handlers.mjs +996 -1049
- package/dist/src/appointments/chat-components/AgendaOpeningHoursCard.vue.d.ts +15 -0
- package/dist/src/appointments/chat-components/AppointmentDetailsCard.vue.d.ts +14 -0
- package/dist/src/appointments/chat-components/AppointmentEditor.vue.d.ts +14 -0
- package/dist/src/appointments/chat-components/AppointmentListTable.vue.d.ts +14 -0
- package/dist/src/appointments/components/create/StepNavigation.vue.d.ts +32 -0
- package/dist/src/appointments/components/create/regular/Step1.vue.d.ts +2 -0
- package/dist/src/appointments/components/create/regular/Step2.vue.d.ts +2 -0
- package/dist/src/appointments/components/create/regular/Step3.vue.d.ts +2 -0
- package/dist/src/appointments/components/create/regular/Step4.vue.d.ts +2 -0
- package/dist/src/appointments/components/edit/CustomerInformationFieldEditorDialog.vue.d.ts +24 -0
- package/dist/src/appointments/components/edit/EditLayout.vue.d.ts +17 -0
- package/dist/src/appointments/components/edit/Event24hSidebar.vue.d.ts +2 -0
- package/dist/src/appointments/components/edit/EventDialog/ApproveReservationDialog.vue.d.ts +8 -0
- package/dist/src/appointments/components/edit/EventDialog/BookingsList.vue.d.ts +136 -0
- package/dist/src/appointments/components/edit/EventDialog/CancelReservationDialog.vue.d.ts +8 -0
- package/dist/src/appointments/components/edit/EventDialog/EventDialog.vue.d.ts +11 -0
- package/dist/src/appointments/components/edit/EventDialog/OrderDetailDialog.vue.d.ts +55 -0
- package/dist/src/appointments/components/edit/EventDialog/RejectReservationDialog.vue.d.ts +8 -0
- package/dist/src/appointments/components/edit/EventDialog/ReservationDetailDialog.vue.d.ts +87 -0
- package/dist/src/appointments/components/edit/EventDialog/TimelineChart.vue.d.ts +24 -0
- package/dist/src/appointments/components/edit/EventDialog/TransferReservationDialog.vue.d.ts +4 -0
- package/dist/src/appointments/components/edit/EventTimeIndicator.vue.d.ts +12 -0
- package/dist/src/appointments/components/edit/EventTimeline.vue.d.ts +48 -0
- package/dist/src/appointments/components/edit/EventView.vue.d.ts +9 -0
- package/dist/src/appointments/components/edit/ExceptionDialog.vue.d.ts +29 -0
- package/dist/src/appointments/components/edit/MetadataSchemaEditorDialog.vue.d.ts +12 -0
- package/dist/src/appointments/components/edit/NewReservationDialog/CustomerInformation.vue.d.ts +10 -0
- package/dist/src/appointments/components/edit/NewReservationDialog/NewReservationDialog.vue.d.ts +26 -0
- package/dist/src/appointments/components/edit/NewReservationDialog/QuickReservationAdder.vue.d.ts +26 -0
- package/dist/src/appointments/components/edit/NewReservationDialog/ReservationLines.vue.d.ts +31 -0
- package/dist/src/appointments/components/edit/OrderMetadataDisplay.vue.d.ts +21 -0
- package/dist/src/appointments/components/edit/PaymentAddons/Addon.vue.d.ts +22 -0
- package/dist/src/appointments/components/edit/PaymentAddons/AddonList.vue.d.ts +5 -0
- package/dist/src/appointments/components/edit/PaymentAddons/index.vue.d.ts +15 -0
- package/dist/src/appointments/components/edit/ResourceEditorDialog.vue.d.ts +13 -0
- package/dist/src/appointments/components/edit/dashboard/Timeline.vue.d.ts +36 -0
- package/dist/src/appointments/components/edit/dashboard/timeline/ResourceSelector.vue.d.ts +50 -0
- package/dist/src/appointments/index.d.ts +12 -9
- package/dist/src/appointments/index.vue.d.ts +22 -0
- package/dist/src/appointments/metadata.d.ts +1 -1
- package/dist/src/appointments/pages/Overview.vue.d.ts +4 -0
- package/dist/src/appointments/pages/create/index.vue.d.ts +2 -0
- package/dist/src/appointments/pages/create/regular.vue.d.ts +6 -0
- package/dist/src/appointments/pages/edit/agenda.vue.d.ts +4 -0
- package/dist/src/appointments/pages/edit/availability.vue.d.ts +2 -0
- package/dist/src/appointments/pages/edit/booking-data.vue.d.ts +65 -0
- package/dist/src/appointments/pages/edit/index.vue.d.ts +2 -0
- package/dist/src/appointments/pages/edit/payment.vue.d.ts +2 -0
- package/dist/src/appointments/pages/edit/resources.vue.d.ts +28 -0
- package/dist/src/appointments/routes.d.ts +6 -3
- package/dist/src/contentManager/components/components/ComponentDialog.vue.d.ts +12 -0
- package/dist/src/contentManager/components/components/ComponentGridItem.vue.d.ts +16 -0
- package/dist/src/contentManager/components/content-editor/ApiDocs.vue.d.ts +2 -0
- package/dist/src/contentManager/components/content-editor/ContentLayout.vue.d.ts +49 -0
- package/dist/src/contentManager/components/content-editor/ContentSettings.vue.d.ts +24 -0
- package/dist/src/contentManager/components/content-editor/ContentStructuredContentSections.vue.d.ts +4 -0
- package/dist/src/contentManager/components/content-editor/Header.vue.d.ts +64 -0
- package/dist/src/contentManager/components/content-editor/LivePreviewWrapper.vue.d.ts +53 -0
- package/dist/src/contentManager/components/content-editor/Locales.vue.d.ts +44 -0
- package/dist/src/contentManager/components/content-editor/NewSectionDialog.vue.d.ts +21 -0
- package/dist/src/contentManager/components/content-editor/PageSettings.vue.d.ts +2 -0
- package/dist/src/contentManager/components/content-editor/SEO.vue.d.ts +14 -0
- package/dist/src/contentManager/components/content-editor/SidebarSectionWrapper.vue.d.ts +39 -0
- package/dist/src/contentManager/components/content-editor/Status.vue.d.ts +2 -0
- package/dist/src/contentManager/components/content-editor/Versions.vue.d.ts +63 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Button.vue.d.ts +94 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Card.vue.d.ts +92 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Column.vue.d.ts +92 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Container.vue.d.ts +92 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Divider.vue.d.ts +92 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/EmptySpace.vue.d.ts +94 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Heading.vue.d.ts +92 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Image.vue.d.ts +92 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/LockBlocks.d.ts +0 -15
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Map.vue.d.ts +92 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Paragraph.vue.d.ts +92 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Row.vue.d.ts +115 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Stack.vue.d.ts +115 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/TrailingNodeInContainers.d.ts +1 -4
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Video.vue.d.ts +92 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/extension-details/DetailsNodeView.vue.d.ts +92 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/helpers/NodeLabel.vue.d.ts +108 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/helpers/ResizeHandlers.vue.d.ts +20 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/helpers/TopMarginDragger.vue.d.ts +104 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/BubbleMenuClassBuilder.vue.d.ts +19 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/BubbleMenuLinkBuilder.vue.d.ts +19 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/BubbleMenuToggleButton.vue.d.ts +29 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/DefaultBubbleMenu.vue.d.ts +13 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/ElementEditorMenu.vue.d.ts +19 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/EmojiMenu.vue.d.ts +8 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/NewNodeView.vue.d.ts +47 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/SlashMenu.vue.d.ts +6 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/SlashMenuButton.vue.d.ts +17 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/ButtonMenu.vue.d.ts +13 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/CardMenu.vue.d.ts +13 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/ColumnMenu.vue.d.ts +13 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/DividerMenu.vue.d.ts +13 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/EmptySpaceMenu.vue.d.ts +13 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/HeadingMenu.vue.d.ts +13 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/ImageMenu.vue.d.ts +13 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/MapMenu.vue.d.ts +13 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/RowMenu.vue.d.ts +13 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/StackMenu.vue.d.ts +13 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/TextMenu.vue.d.ts +13 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/VideoMenu.vue.d.ts +13 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/index.d.ts +132 -12
- package/dist/src/contentManager/components/overview/CollectionDialog.vue.d.ts +30 -0
- package/dist/src/contentManager/components/overview/CollectionsGridView.vue.d.ts +18 -0
- package/dist/src/contentManager/components/overview/ContentEntryContextMenu.vue.d.ts +27 -0
- package/dist/src/contentManager/components/overview/FilterPopover.vue.d.ts +2 -0
- package/dist/src/contentManager/components/overview/ListView.vue.d.ts +12 -0
- package/dist/src/contentManager/components/styling/ButtonStyleDialog.vue.d.ts +24 -0
- package/dist/src/contentManager/components/styling/CardStyleDialog.vue.d.ts +24 -0
- package/dist/src/contentManager/components/styling/SectionStyleDialog.vue.d.ts +24 -0
- package/dist/src/contentManager/index.d.ts +14 -5
- package/dist/src/contentManager/index.vue.d.ts +22 -0
- package/dist/src/contentManager/metadata.d.ts +1 -1
- package/dist/src/contentManager/pages/Components.vue.d.ts +27 -0
- package/dist/src/contentManager/pages/ContentEditor.vue.d.ts +14 -0
- package/dist/src/contentManager/pages/Entries.vue.d.ts +16 -0
- package/dist/src/contentManager/pages/GlobalStyling.vue.d.ts +117 -0
- package/dist/src/contentManager/pages/Overview.vue.d.ts +57 -0
- package/dist/src/contentManager/routes.d.ts +12 -3
- package/dist/src/custom/index.d.ts +2 -2
- package/dist/src/custom/index.vue.d.ts +2 -0
- package/dist/src/custom/pages/View.vue.d.ts +2 -0
- package/dist/src/custom/routes.d.ts +1 -1
- package/dist/src/googleAnalytics/chat-components/CountryBreakdownCard.vue.d.ts +14 -0
- package/dist/src/googleAnalytics/chat-components/DeviceBreakdownCard.vue.d.ts +14 -0
- package/dist/src/googleAnalytics/chat-components/PeakHoursCard.vue.d.ts +14 -0
- package/dist/src/googleAnalytics/chat-components/RealtimeCard.vue.d.ts +14 -0
- package/dist/src/googleAnalytics/chat-components/SearchTermsCard.vue.d.ts +14 -0
- package/dist/src/googleAnalytics/chat-components/TopPagesCard.vue.d.ts +14 -0
- package/dist/src/googleAnalytics/chat-components/TrafficSourcesCard.vue.d.ts +14 -0
- package/dist/src/googleAnalytics/chat-components/VisitorStatsCard.vue.d.ts +14 -0
- package/dist/src/googleAnalytics/components/seo-health/SeoClicksChart.vue.d.ts +5 -0
- package/dist/src/googleAnalytics/components/seo-health/SeoImpressionsChart.vue.d.ts +5 -0
- package/dist/src/googleAnalytics/components/seo-health/SeoKeywordsTab.vue.d.ts +5 -0
- package/dist/src/googleAnalytics/components/seo-health/SeoKpiCards.vue.d.ts +10 -0
- package/dist/src/googleAnalytics/components/seo-health/SeoMappingTab.vue.d.ts +5 -0
- package/dist/src/googleAnalytics/components/seo-health/SeoPagesTab.vue.d.ts +5 -0
- package/dist/src/googleAnalytics/components/seo-health/SeoRankingDistribution.vue.d.ts +5 -0
- package/dist/src/googleAnalytics/index.d.ts +10 -10
- package/dist/src/googleAnalytics/index.vue.d.ts +2 -0
- package/dist/src/googleAnalytics/pages/Acquisition.vue.d.ts +2 -0
- package/dist/src/googleAnalytics/pages/Audience.vue.d.ts +2 -0
- package/dist/src/googleAnalytics/pages/Content.vue.d.ts +2 -0
- package/dist/src/googleAnalytics/pages/Overview.vue.d.ts +2 -0
- package/dist/src/googleAnalytics/pages/SeoHealth.vue.d.ts +2 -0
- package/dist/src/googleAnalytics/routes.d.ts +1 -1
- package/dist/src/mailTemplates/components/TemplateList.vue.d.ts +2 -0
- package/dist/src/mailTemplates/index.d.ts +3 -3
- package/dist/src/mailTemplates/index.vue.d.ts +22 -0
- package/dist/src/mailTemplates/metadata.d.ts +1 -1
- package/dist/src/mailTemplates/pages/Detail.vue.d.ts +14 -0
- package/dist/src/mailTemplates/pages/Overview.vue.d.ts +14 -0
- package/dist/src/mailTemplates/routes.d.ts +1 -1
- package/dist/src/productCollections/components/detail/Main.vue.d.ts +2 -0
- package/dist/src/productCollections/components/detail/SEO.vue.d.ts +2 -0
- package/dist/src/productCollections/components/detail/Status.vue.d.ts +2 -0
- package/dist/src/productCollections/components/overview/ListView.vue.d.ts +12 -0
- package/dist/src/productCollections/index.d.ts +3 -3
- package/dist/src/productCollections/index.vue.d.ts +22 -0
- package/dist/src/productCollections/metadata.d.ts +1 -1
- package/dist/src/productCollections/pages/Detail.vue.d.ts +14 -0
- package/dist/src/productCollections/pages/Overview.vue.d.ts +16 -0
- package/dist/src/productCollections/routes.d.ts +1 -1
- package/dist/src/products/chat-components/ProductDetailsCard.vue.d.ts +14 -0
- package/dist/src/products/components/detail/Collections.vue.d.ts +14 -0
- package/dist/src/products/components/detail/Inventory.vue.d.ts +2 -0
- package/dist/src/products/components/detail/Main.vue.d.ts +2 -0
- package/dist/src/products/components/detail/NewSection.vue.d.ts +2 -0
- package/dist/src/products/components/detail/Price.vue.d.ts +2 -0
- package/dist/src/products/components/detail/SEO.vue.d.ts +2 -0
- package/dist/src/products/components/detail/Shipping.vue.d.ts +2 -0
- package/dist/src/products/components/detail/Status.vue.d.ts +2 -0
- package/dist/src/products/components/detail/price/UnitPriceDialog.vue.d.ts +17 -0
- package/dist/src/products/components/detail/variants/Option.vue.d.ts +33 -0
- package/dist/src/products/components/detail/variants/VariantList.vue.d.ts +38 -0
- package/dist/src/products/components/overview/FilterPopover.vue.d.ts +2 -0
- package/dist/src/products/components/overview/GridView.vue.d.ts +12 -0
- package/dist/src/products/components/overview/ListView.vue.d.ts +12 -0
- package/dist/src/products/components/overview/ProductContextMenu.vue.d.ts +27 -0
- package/dist/src/products/index.d.ts +4 -4
- package/dist/src/products/index.vue.d.ts +22 -0
- package/dist/src/products/metadata.d.ts +1 -1
- package/dist/src/products/pages/Detail.vue.d.ts +14 -0
- package/dist/src/products/pages/Overview.vue.d.ts +16 -0
- package/dist/src/products/routes.d.ts +1 -1
- package/dist/src/promoCodes/components/create/DateRange.vue.d.ts +2 -0
- package/dist/src/promoCodes/components/create/MultiCodes.vue.d.ts +2 -0
- package/dist/src/promoCodes/components/create/Note.vue.d.ts +2 -0
- package/dist/src/promoCodes/components/create/SingleCode.vue.d.ts +2 -0
- package/dist/src/promoCodes/components/create/TypeAndValue/TypeDetailDialog.vue.d.ts +6 -0
- package/dist/src/promoCodes/components/create/TypeAndValue/TypeManageDialog.vue.d.ts +18 -0
- package/dist/src/promoCodes/components/create/TypeAndValue/index.vue.d.ts +2 -0
- package/dist/src/promoCodes/index.d.ts +3 -3
- package/dist/src/promoCodes/index.vue.d.ts +22 -0
- package/dist/src/promoCodes/metadata.d.ts +1 -1
- package/dist/src/promoCodes/pages/Create.vue.d.ts +16 -0
- package/dist/src/promoCodes/pages/Detail.vue.d.ts +14 -0
- package/dist/src/promoCodes/pages/Find.vue.d.ts +16 -0
- package/dist/src/promoCodes/routes.d.ts +1 -1
- package/dist/src/push-notifications/components/PreviewAndroid.vue.d.ts +28 -0
- package/dist/src/push-notifications/components/PreviewIPhone.vue.d.ts +28 -0
- package/dist/src/push-notifications/components/PushPreview.vue.d.ts +28 -0
- package/dist/src/push-notifications/index.d.ts +3 -3
- package/dist/src/push-notifications/index.vue.d.ts +22 -0
- package/dist/src/push-notifications/metadata.d.ts +1 -1
- package/dist/src/push-notifications/pages/SendPush.vue.d.ts +14 -0
- package/dist/src/push-notifications/routes.d.ts +1 -1
- package/dist/src/shared/BrandLogo.vue.d.ts +12 -0
- package/dist/src/shared/DrawerToggle.vue.d.ts +60 -0
- package/dist/src/shared/VerticalToggle.vue.d.ts +60 -0
- package/dist/src/shippingOptions/components/detail/Condition.vue.d.ts +2 -0
- package/dist/src/shippingOptions/components/detail/Countries.vue.d.ts +2 -0
- package/dist/src/shippingOptions/components/detail/Example.vue.d.ts +2 -0
- package/dist/src/shippingOptions/components/detail/Main.vue.d.ts +2 -0
- package/dist/src/shippingOptions/components/overview/ListView.vue.d.ts +12 -0
- package/dist/src/shippingOptions/index.d.ts +3 -3
- package/dist/src/shippingOptions/index.vue.d.ts +22 -0
- package/dist/src/shippingOptions/metadata.d.ts +1 -1
- package/dist/src/shippingOptions/pages/Detail.vue.d.ts +14 -0
- package/dist/src/shippingOptions/pages/Overview.vue.d.ts +16 -0
- package/dist/src/shippingOptions/routes.d.ts +1 -1
- package/dist/src/table/components/DataTable.vue.d.ts +18 -0
- package/dist/src/table/components/DataTableAction.vue.d.ts +14 -0
- package/dist/src/table/components/DataTableMobileRowActionDrawer.vue.d.ts +4 -0
- package/dist/src/table/components/DataTablePagination.vue.d.ts +6 -0
- package/dist/src/table/components/actions/ActionDialog.vue.d.ts +19 -0
- package/dist/src/table/components/actions/CtaActionDialog.vue.d.ts +4 -0
- package/dist/src/table/components/columns/ColumnDropdown.vue.d.ts +2 -0
- package/dist/src/table/components/columns/ColumnEditorDialog.vue.d.ts +34 -0
- package/dist/src/table/components/columns/DialogTableColumnItem.vue.d.ts +12 -0
- package/dist/src/table/components/date-range-filter/DateRangeFilter.vue.d.ts +2 -0
- package/dist/src/table/components/date-range-filter/DateRangeSettingsDialog.vue.d.ts +27 -0
- package/dist/src/table/components/filters/FilterDialog.vue.d.ts +12 -0
- package/dist/src/table/components/filters/Filters.vue.d.ts +27 -0
- package/dist/src/table/components/search/Search.vue.d.ts +2 -0
- package/dist/src/table/components/sort/SortMode.vue.d.ts +2 -0
- package/dist/src/table/components/sort/SortModeSettingsDialog.vue.d.ts +18 -0
- package/dist/src/table/components/stats/StatDialog.vue.d.ts +12 -0
- package/dist/src/table/components/stats/Stats.vue.d.ts +27 -0
- package/dist/src/table/flow-builder-extensions/TableRowEditor.vue.d.ts +16 -0
- package/dist/src/table/flow-builder-extensions/row-item.d.ts +17 -3
- package/dist/src/table/index.d.ts +2 -2
- package/dist/src/table/index.vue.d.ts +22 -0
- package/dist/src/table/pages/TableView.vue.d.ts +54 -0
- package/dist/src/table/routes.d.ts +1 -1
- package/dist/src/types/index.d.ts +0 -6
- package/dist/utils-CanmrIWO.mjs +47 -0
- package/dist/utils-Yd6F5mea.js +3 -0
- package/dist/vee-validate-zod-ByykgYKJ.js +1 -0
- package/dist/vee-validate-zod-DNjTLCgh.mjs +4402 -0
- package/package.json +56 -55
- package/dist/Acquisition-DypEyPSO.js +0 -1
- package/dist/Acquisition-TCNX-th6.mjs +0 -308
- package/dist/AgendaOpeningHoursCard-BIhm0vpV.js +0 -1
- package/dist/AgendaOpeningHoursCard-BKUdJxRI.mjs +0 -133
- package/dist/AppointmentDetailsCard-C5rQ5jsW.js +0 -1
- package/dist/AppointmentDetailsCard-NRHeNP2L.mjs +0 -111
- package/dist/AppointmentEditor-BcF8CiD-.mjs +0 -150
- package/dist/AppointmentEditor-BlhFtoCm.js +0 -1
- package/dist/AppointmentListTable-B-ReBVtV.js +0 -1
- package/dist/AppointmentListTable-DHmy-iid.mjs +0 -129
- package/dist/Audience-CfWHjjg8.mjs +0 -394
- package/dist/Audience-Cj4TyauW.js +0 -1
- package/dist/Components-BehelN4r.js +0 -1
- package/dist/Components-CR6zukUU.mjs +0 -468
- package/dist/Content-C5Iye3t0.mjs +0 -257
- package/dist/Content-eOfBx52Y.js +0 -1
- package/dist/ContentEditor-BgL4qEeg.mjs +0 -26835
- package/dist/ContentEditor-Tlu3w0Hu.js +0 -462
- package/dist/CountryBreakdownCard-CWVyB8be.mjs +0 -151
- package/dist/CountryBreakdownCard-Db-pMiNe.js +0 -1
- package/dist/Create-B1it8S4m.js +0 -1
- package/dist/Create-DbYi0FAI.mjs +0 -907
- package/dist/DateFormatter-DLrDYkby.mjs +0 -630
- package/dist/DateFormatter-Dni0Oq8r.js +0 -1
- package/dist/Detail-D-eahJGO.mjs +0 -21
- package/dist/Detail-D0kdPPIm.mjs +0 -2757
- package/dist/Detail-DAafePYi.mjs +0 -485
- package/dist/Detail-DYpv4fYg.js +0 -1
- package/dist/Detail-Dc_ui4LM.js +0 -1
- package/dist/Detail-DccUekl_.js +0 -1
- package/dist/Detail-Dhz0V0Vf.js +0 -1
- package/dist/Detail-DjnGY0F8.mjs +0 -282
- package/dist/Detail-DplAitHg.mjs +0 -447
- package/dist/Detail-SugyeSxb.js +0 -1
- package/dist/DeviceBreakdownCard-CzxZT6To.js +0 -1
- package/dist/DeviceBreakdownCard-eEwPjzKl.mjs +0 -115
- package/dist/EditLayout-Bnz9q_jd.js +0 -1
- package/dist/EditLayout-J_DGXb8v.mjs +0 -99
- package/dist/Entries-CgpWg6fE.js +0 -1
- package/dist/Entries-CkGTXcAq.mjs +0 -575
- package/dist/Find-Bz0TNJzk.mjs +0 -164
- package/dist/Find-D-ItTXaZ.js +0 -1
- package/dist/GlobalStyling-CSQPF7o_.mjs +0 -1162
- package/dist/GlobalStyling-DabldMZh.js +0 -15
- package/dist/NewReservationDialog-BhIiY2B9.js +0 -1
- package/dist/NewReservationDialog-CN49aGcM.mjs +0 -1002
- package/dist/OrderDetailDialog-BJ01DZFe.js +0 -1
- package/dist/OrderDetailDialog-CoVQ_rzs.mjs +0 -215
- package/dist/Overview-9FMgn5hT.mjs +0 -492
- package/dist/Overview-BOOwMQ-c.mjs +0 -636
- package/dist/Overview-Biz3h60w.js +0 -1
- package/dist/Overview-C2K2ofdS.js +0 -1
- package/dist/Overview-CFHOXP9N.mjs +0 -123
- package/dist/Overview-CTJe7J5_.js +0 -1
- package/dist/Overview-Cvj2i9eW.js +0 -1
- package/dist/Overview-D2I1F8Dm.mjs +0 -21
- package/dist/Overview-DFOc9emt.mjs +0 -345
- package/dist/Overview-Dmhfb94Y.js +0 -1
- package/dist/Overview-PPzv7weG.mjs +0 -450
- package/dist/Overview-qFKcXHVF.js +0 -1
- package/dist/Overview-xkmYYTae.mjs +0 -133
- package/dist/Overview-yPsLvR2c.js +0 -1
- package/dist/PeakHoursCard-CtgEP-ez.mjs +0 -157
- package/dist/PeakHoursCard-DPeoMyhu.js +0 -1
- package/dist/ProductDetailsCard-B0WhmzO-.mjs +0 -98
- package/dist/ProductDetailsCard-C1ROuH6l.js +0 -1
- package/dist/RealtimeCard-DQno-Okz.js +0 -1
- package/dist/RealtimeCard-dR-g1iDo.mjs +0 -92
- package/dist/ReservationDetailDialog-Cdo6h0RD.mjs +0 -2163
- package/dist/ReservationDetailDialog-DZTFD2xI.js +0 -349
- package/dist/SearchTermsCard-BXJSXz_k.js +0 -1
- package/dist/SearchTermsCard-DsaxLKwP.mjs +0 -146
- package/dist/SendPush-Bssi-OZD.mjs +0 -150
- package/dist/SendPush-BuaYboRH.js +0 -1
- package/dist/SeoHealth-CP-kL0us.js +0 -1
- package/dist/SeoHealth-Cxp_Gb3Y.mjs +0 -459
- package/dist/TableView-7iwBkQ_k.mjs +0 -4757
- package/dist/TableView-BB_oIYYZ.js +0 -4
- package/dist/TemplateList-CNcM_Kgq.mjs +0 -56
- package/dist/TemplateList-VuPcBUJO.js +0 -1
- package/dist/TopPagesCard-CvDECn3_.mjs +0 -117
- package/dist/TopPagesCard-DNdATXJE.js +0 -1
- package/dist/TrafficSourcesCard-BLpBr7u0.mjs +0 -151
- package/dist/TrafficSourcesCard-_3gRUCw3.js +0 -1
- package/dist/View-DSnUHI7h.mjs +0 -30
- package/dist/View-Dbcfpdqh.js +0 -1
- package/dist/VisitorStatsCard-CFEnXSjF.mjs +0 -185
- package/dist/VisitorStatsCard-C_jhQxDW.js +0 -1
- package/dist/_plugin-vue_export-helper-5u7tqpWC.js +0 -1
- package/dist/_plugin-vue_export-helper-BJQSo0im.mjs +0 -8
- package/dist/agenda-CzMRcQTA.mjs +0 -989
- package/dist/agenda-D4zWRYSQ.js +0 -1
- package/dist/appointments-9syR5TZE.js +0 -1
- package/dist/appointments-BBmOJMhM.mjs +0 -23
- package/dist/array-BH1uH7XT.js +0 -1
- package/dist/array-DnDL9cFz.mjs +0 -98
- package/dist/availability-CAXB7Yd6.js +0 -1
- package/dist/availability-Dp7eF-ZK.mjs +0 -215
- package/dist/booking-data-Bysf6e5x.mjs +0 -724
- package/dist/booking-data-C6SGjC2X.js +0 -1
- package/dist/chunk-DQi1bQcV.js +0 -1
- package/dist/contentManager-D7JxXCwE.js +0 -1
- package/dist/contentManager-tfy0x1LD.mjs +0 -22
- package/dist/context-AQKfnJ4t.mjs +0 -3809
- package/dist/context-ubyMq9Xe.js +0 -54
- package/dist/core-Dhgr4ctC.mjs +0 -202
- package/dist/core-_HKfBlaZ.js +0 -1
- package/dist/countries-MXLT3mVe.mjs +0 -4
- package/dist/countries-OCd5qPxG.js +0 -1
- package/dist/create-BfNc2C7N.js +0 -1
- package/dist/create-C7JlIlIh.mjs +0 -95
- package/dist/custom-BwN9-6Mb.js +0 -1
- package/dist/custom-INNwaWla.mjs +0 -13
- package/dist/dist-BCVg7FKM.js +0 -1
- package/dist/dist-DIhK9VWh.mjs +0 -3045
- package/dist/edit-BiI2VG60.js +0 -35
- package/dist/edit-DD3iFBEh.mjs +0 -1097
- package/dist/exceptions-DICMaDcH.mjs +0 -462
- package/dist/exceptions-DpWqMNuG.js +0 -1
- package/dist/google-Bcc4XZnV.mjs +0 -4
- package/dist/google-DTSRmJ51.js +0 -1
- package/dist/googleAnalytics-BSaqRR_L.js +0 -1
- package/dist/googleAnalytics-Cg-iWblZ.mjs +0 -47
- package/dist/interpolation-B8OzkMyi.mjs +0 -131
- package/dist/interpolation-DpAqtGOW.js +0 -1
- package/dist/lib-4wSi00Vr.js +0 -1
- package/dist/lib-BZgXUui5.mjs +0 -198
- package/dist/line-DJdnFNI7.js +0 -75
- package/dist/line-tYLnEDGV.mjs +0 -1500
- package/dist/mailTemplates-BNk8fhVS.mjs +0 -23
- package/dist/mailTemplates-DswHzyQe.js +0 -1
- package/dist/orders-CIc0JlKX.mjs +0 -512
- package/dist/orders-DwPSi_pD.js +0 -1
- package/dist/payment-BsNWFaDm.js +0 -1
- package/dist/payment-Ced5_dpa.mjs +0 -718
- package/dist/productCollections-Cuvw_8zC.js +0 -1
- package/dist/productCollections-D0AxRlzr.mjs +0 -23
- package/dist/products-DUD-ZMkR.mjs +0 -22
- package/dist/products-DvX9B-Ul.js +0 -1
- package/dist/promoCodes-BCWqN6w4.mjs +0 -23
- package/dist/promoCodes-CEZ4LYot.js +0 -1
- package/dist/push-notifications-BGp4XWo9.js +0 -1
- package/dist/push-notifications-C7W7KuzR.mjs +0 -23
- package/dist/regular-BCFrS6lK.mjs +0 -908
- package/dist/regular-DBqPgT8C.js +0 -1
- package/dist/resources-DwsMmWgm.mjs +0 -669
- package/dist/resources-Dz81GkHe.js +0 -1
- package/dist/shippingOptions-C3NEJff1.mjs +0 -23
- package/dist/shippingOptions-Cy040ZW1.js +0 -1
- package/dist/single-container-BJmmqq65.mjs +0 -468
- package/dist/single-container-Xoo0Xzxv.js +0 -58
- package/dist/src/vue-shim.d.ts +0 -7
- package/dist/table-DWw0fs3S.js +0 -1
- package/dist/table-LXt5DQOL.mjs +0 -23
- package/dist/utils-CVIHqQsU.js +0 -3
- package/dist/utils-h3owcMtS.mjs +0 -37
- package/dist/vee-validate-zod-BmXMJo8W.js +0 -1
- package/dist/vee-validate-zod-D9dZzbWZ.mjs +0 -4985
- package/dist/xy-container-CuQSwrtB.mjs +0 -3180
- package/dist/xy-container-_6YpscZh.js +0 -158
package/dist/agenda-CzMRcQTA.mjs
DELETED
|
@@ -1,989 +0,0 @@
|
|
|
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 };
|