@oneclick.dev/cms-core-modules 0.0.108 → 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
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { useModuleRoute as e } from "@oneclick.dev/cms-kit";
|
|
2
|
-
import { createBlock as t, createElementBlock as n, defineComponent as r, openBlock as i, resolveDynamicComponent as a, unref as o } from "vue";
|
|
3
|
-
//#endregion
|
|
4
|
-
//#region src/mailTemplates/index.vue
|
|
5
|
-
var s = /* @__PURE__ */ r({
|
|
6
|
-
__name: "index",
|
|
7
|
-
props: {
|
|
8
|
-
config: {
|
|
9
|
-
type: Object,
|
|
10
|
-
required: !0
|
|
11
|
-
},
|
|
12
|
-
routes: {
|
|
13
|
-
type: Array,
|
|
14
|
-
required: !0
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
setup(r) {
|
|
18
|
-
let { pageComponent: s } = e();
|
|
19
|
-
return (e, c) => (i(), n("div", null, [(i(), t(a(o(s)), { config: r.config }, null, 8, ["config"]))]));
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
//#endregion
|
|
23
|
-
export { s as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require(`./chunk-DQi1bQcV.js`);let e=require(`@oneclick.dev/cms-kit`),t=require(`vue`);var n=(0,t.defineComponent)({__name:`index`,props:{config:{type:Object,required:!0},routes:{type:Array,required:!0}},setup(n){let{pageComponent:r}=(0,e.useModuleRoute)();return(e,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,null,[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)((0,t.unref)(r)),{config:n.config},null,8,[`config`]))]))}});exports.default=n;
|
package/dist/orders-CIc0JlKX.mjs
DELETED
|
@@ -1,512 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./EditLayout-J_DGXb8v.mjs";
|
|
2
|
-
import { n as t, r as n, t as r } from "./ReservationDetailDialog-Cdo6h0RD.mjs";
|
|
3
|
-
import { t as i } from "./_plugin-vue_export-helper-BJQSo0im.mjs";
|
|
4
|
-
import { t as ee } from "./OrderDetailDialog-CoVQ_rzs.mjs";
|
|
5
|
-
import { useFirebaseIntegration as a, useModule as o, useModuleRoute as s, useOverlayParams as c, useRoute as l, useRouter as te } from "@oneclick.dev/cms-kit";
|
|
6
|
-
import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createTextVNode as g, createVNode as _, defineComponent as v, isRef as y, nextTick as ne, normalizeClass as re, normalizeStyle as b, onMounted as ie, openBlock as x, provide as ae, ref as S, renderList as C, resolveComponent as w, toDisplayString as T, unref as E, vModelText as oe, watch as se, withCtx as D, withDirectives as ce } from "vue";
|
|
7
|
-
import { CalendarIcon as O, ChevronLeft as le, ChevronRight as ue, Clock as k, RefreshCw as de, Search as fe, ShoppingBag as A, Users as j, X as pe } from "@lucide/vue";
|
|
8
|
-
//#region src/appointments/pages/edit/orders.vue?vue&type=script&setup=true&lang.ts
|
|
9
|
-
var me = { class: "space-y-6" }, he = { class: "flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4" }, ge = { class: "text-2xl font-semibold tracking-tight flex items-center gap-2" }, _e = { class: "flex gap-1 border rounded-lg p-1 w-fit" }, ve = { class: "flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4" }, ye = { class: "flex items-center gap-1" }, be = { class: "flex items-center gap-1" }, xe = { class: "flex items-center gap-2" }, Se = { class: "flex items-center gap-1" }, Ce = { class: "mt-2 text-sm text-muted-foreground" }, we = { class: "orders-date-trigger" }, Te = { class: "relative mb-4" }, Ee = {
|
|
10
|
-
key: 0,
|
|
11
|
-
class: "mb-3 text-sm text-muted-foreground"
|
|
12
|
-
}, De = {
|
|
13
|
-
key: 1,
|
|
14
|
-
class: "flex items-center justify-center py-8"
|
|
15
|
-
}, Oe = {
|
|
16
|
-
key: 2,
|
|
17
|
-
class: "text-center py-8 text-muted-foreground"
|
|
18
|
-
}, ke = {
|
|
19
|
-
key: 3,
|
|
20
|
-
class: "text-center py-8 text-muted-foreground"
|
|
21
|
-
}, Ae = {
|
|
22
|
-
key: 4,
|
|
23
|
-
class: "space-y-2"
|
|
24
|
-
}, je = ["onClick"], Me = { class: "flex items-start justify-between" }, Ne = { class: "flex-1" }, Pe = { class: "font-medium" }, Fe = { class: "text-sm text-muted-foreground" }, Ie = { class: "text-sm text-muted-foreground" }, Le = { class: "flex items-center gap-4 flex-wrap mt-1" }, Re = { class: "flex items-center gap-2 text-xs text-muted-foreground" }, ze = { class: "flex items-center gap-2 text-xs text-muted-foreground" }, Be = {
|
|
25
|
-
key: 0,
|
|
26
|
-
class: "flex items-center gap-1 text-xs text-muted-foreground"
|
|
27
|
-
}, Ve = { class: "flex items-center gap-2 mt-1 text-xs text-muted-foreground" }, He = { class: "text-right" }, Ue = {
|
|
28
|
-
key: 0,
|
|
29
|
-
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"
|
|
30
|
-
}, We = {
|
|
31
|
-
key: 1,
|
|
32
|
-
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"
|
|
33
|
-
}, Ge = {
|
|
34
|
-
key: 2,
|
|
35
|
-
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"
|
|
36
|
-
}, Ke = {
|
|
37
|
-
key: 3,
|
|
38
|
-
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"
|
|
39
|
-
}, qe = {
|
|
40
|
-
key: 4,
|
|
41
|
-
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"
|
|
42
|
-
}, Je = {
|
|
43
|
-
key: 5,
|
|
44
|
-
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"
|
|
45
|
-
}, Ye = {
|
|
46
|
-
key: 6,
|
|
47
|
-
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"
|
|
48
|
-
}, Xe = {
|
|
49
|
-
key: 7,
|
|
50
|
-
class: "text-sm font-medium mt-1"
|
|
51
|
-
}, Ze = ["onClick"], Qe = { class: "flex items-start justify-between" }, $e = { class: "flex-1" }, et = { class: "flex items-center gap-2" }, tt = { class: "font-medium" }, nt = { class: "text-sm text-muted-foreground" }, rt = { class: "text-sm text-muted-foreground" }, it = { class: "flex items-center gap-2 mt-1 text-xs text-muted-foreground" }, at = { class: "text-right" }, ot = {
|
|
52
|
-
key: 0,
|
|
53
|
-
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"
|
|
54
|
-
}, st = {
|
|
55
|
-
key: 1,
|
|
56
|
-
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"
|
|
57
|
-
}, ct = {
|
|
58
|
-
key: 2,
|
|
59
|
-
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"
|
|
60
|
-
}, lt = { class: "text-sm font-medium mt-1" }, ut = ["onClick"], dt = { class: "flex items-center justify-between" }, ft = { class: "flex items-center gap-4 flex-wrap" }, pt = { class: "flex items-center gap-2 text-xs text-muted-foreground" }, mt = { class: "flex items-center gap-2 text-xs text-muted-foreground" }, ht = {
|
|
61
|
-
key: 0,
|
|
62
|
-
class: "flex items-center gap-1 text-xs text-muted-foreground"
|
|
63
|
-
}, gt = {
|
|
64
|
-
key: 0,
|
|
65
|
-
class: "text-right flex items-center gap-2"
|
|
66
|
-
}, _t = {
|
|
67
|
-
key: 0,
|
|
68
|
-
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"
|
|
69
|
-
}, vt = {
|
|
70
|
-
key: 1,
|
|
71
|
-
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"
|
|
72
|
-
}, yt = {
|
|
73
|
-
key: 2,
|
|
74
|
-
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"
|
|
75
|
-
}, bt = {
|
|
76
|
-
key: 3,
|
|
77
|
-
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"
|
|
78
|
-
}, xt = {
|
|
79
|
-
key: 4,
|
|
80
|
-
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"
|
|
81
|
-
}, St = {
|
|
82
|
-
key: 5,
|
|
83
|
-
class: "text-sm font-medium"
|
|
84
|
-
}, M = /* @__PURE__ */ i(/* @__PURE__ */ v({
|
|
85
|
-
__name: "orders",
|
|
86
|
-
setup(i) {
|
|
87
|
-
let v = l();
|
|
88
|
-
te();
|
|
89
|
-
let M = c(), { params: N } = s(), { config: P } = o(), F = a(P.project), I = S([]), L = S([]), R = S(!0), z = S(null), B = d(() => z?.value?.metadataSchema || []), V = S(""), H = S(null), U = S(null), W = S("confirmed"), G = /* @__PURE__ */ new Date(), K = S(/* @__PURE__ */ new Date()), q = S(null);
|
|
90
|
-
ae("event", d(() => ({
|
|
91
|
-
date: Y(K.value),
|
|
92
|
-
resource: null
|
|
93
|
-
})));
|
|
94
|
-
let J = d({
|
|
95
|
-
get: () => Y(K.value),
|
|
96
|
-
set: (e) => {
|
|
97
|
-
if (!e) {
|
|
98
|
-
K.value = /* @__PURE__ */ new Date();
|
|
99
|
-
return;
|
|
100
|
-
}
|
|
101
|
-
K.value = /* @__PURE__ */ new Date(`${e}T00:00:00`);
|
|
102
|
-
}
|
|
103
|
-
}), Ct = () => {
|
|
104
|
-
let e = q.value;
|
|
105
|
-
if (e) {
|
|
106
|
-
if (typeof e.showPicker == "function") {
|
|
107
|
-
e.showPicker();
|
|
108
|
-
return;
|
|
109
|
-
}
|
|
110
|
-
e.focus(), e.click();
|
|
111
|
-
}
|
|
112
|
-
}, wt = d(() => {
|
|
113
|
-
let e = new Date(G);
|
|
114
|
-
e.setDate(G.getDate() - 1);
|
|
115
|
-
let t = new Date(G);
|
|
116
|
-
return t.setDate(G.getDate() + 1), K.value.toDateString() === G.toDateString() ? "Today" : K.value.toDateString() === e.toDateString() ? "Yesterday" : K.value.toDateString() === t.toDateString() ? "Tomorrow" : K.value.toLocaleDateString("en-US", {
|
|
117
|
-
weekday: "long",
|
|
118
|
-
month: "long",
|
|
119
|
-
day: "numeric",
|
|
120
|
-
year: "numeric"
|
|
121
|
-
});
|
|
122
|
-
}), Tt = () => {
|
|
123
|
-
let e = new Date(K.value);
|
|
124
|
-
e.setDate(e.getDate() - 1), K.value = e;
|
|
125
|
-
}, Et = () => {
|
|
126
|
-
let e = new Date(K.value);
|
|
127
|
-
e.setDate(e.getDate() + 1), e <= G && (K.value = e);
|
|
128
|
-
}, Dt = d(() => {
|
|
129
|
-
let e = new Date(K.value);
|
|
130
|
-
return e.setDate(e.getDate() + 1), e <= G;
|
|
131
|
-
}), Ot = () => {
|
|
132
|
-
K.value = /* @__PURE__ */ new Date();
|
|
133
|
-
}, Y = (e) => `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`, kt = (e) => e ? new Date(e).toLocaleTimeString("en-US", {
|
|
134
|
-
hour: "2-digit",
|
|
135
|
-
minute: "2-digit",
|
|
136
|
-
hour12: !1
|
|
137
|
-
}) : "", At = (e) => e ? new Date(e).toLocaleDateString("en-US", {
|
|
138
|
-
weekday: "short",
|
|
139
|
-
month: "short",
|
|
140
|
-
day: "numeric"
|
|
141
|
-
}) : "", jt = (e, t) => {
|
|
142
|
-
let n = L.value.find((e) => e.id === t.resourceId), r = e.id || e.orderId || t.orderId || "";
|
|
143
|
-
return {
|
|
144
|
-
customerInfo: e.customerInfo,
|
|
145
|
-
amountDue: e.amountDue,
|
|
146
|
-
amountPaid: e.amountPaid,
|
|
147
|
-
status: e.status,
|
|
148
|
-
reservationStatus: t.status,
|
|
149
|
-
subtotal: e.subtotal,
|
|
150
|
-
total: e.total,
|
|
151
|
-
discount: e.discount,
|
|
152
|
-
id: r,
|
|
153
|
-
res_id: t.id,
|
|
154
|
-
resourceId: t.resourceId,
|
|
155
|
-
spots: t.spots,
|
|
156
|
-
date: t.date,
|
|
157
|
-
createdAt: e.createdAt,
|
|
158
|
-
startTime: t.timeslot?.startTime,
|
|
159
|
-
endTime: t.timeslot?.endTime,
|
|
160
|
-
reservationPrice: t.totalPrice,
|
|
161
|
-
reservationBasePrice: t.basePrice,
|
|
162
|
-
reservationAddOnsPrice: t.addOnsPrice,
|
|
163
|
-
pricingOptionId: t.pricingOptionId,
|
|
164
|
-
pricingOption: t.pricingOption,
|
|
165
|
-
resourceName: n?.name || "Unknown",
|
|
166
|
-
resourceColor: n?.color,
|
|
167
|
-
metadata: e.metadata || {},
|
|
168
|
-
reservationMetadata: t.metadata || {},
|
|
169
|
-
adjustments: e.adjustments || [],
|
|
170
|
-
reservationAdjustments: t.adjustments || []
|
|
171
|
-
};
|
|
172
|
-
}, X = async () => {
|
|
173
|
-
await ne(), await new Promise((e) => {
|
|
174
|
-
if (typeof requestAnimationFrame == "function") {
|
|
175
|
-
requestAnimationFrame(() => e());
|
|
176
|
-
return;
|
|
177
|
-
}
|
|
178
|
-
e();
|
|
179
|
-
});
|
|
180
|
-
}, Z = d(() => V.value.trim() ? new n(I.value, {
|
|
181
|
-
keys: [
|
|
182
|
-
"customerInfo.firstName",
|
|
183
|
-
"customerInfo.lastName",
|
|
184
|
-
"customerInfo.email",
|
|
185
|
-
"customerInfo.phone",
|
|
186
|
-
"resourceName"
|
|
187
|
-
],
|
|
188
|
-
threshold: .3,
|
|
189
|
-
ignoreLocation: !0
|
|
190
|
-
}).search(V.value).map((e) => e.item) : I.value), Mt = d(() => {
|
|
191
|
-
let e = /* @__PURE__ */ new Map();
|
|
192
|
-
for (let t of Z.value) {
|
|
193
|
-
e.has(t.id) || e.set(t.id, {
|
|
194
|
-
id: t.id,
|
|
195
|
-
customerInfo: t.customerInfo,
|
|
196
|
-
status: t.status,
|
|
197
|
-
createdAt: t.createdAt,
|
|
198
|
-
metadata: t.metadata || {},
|
|
199
|
-
reservations: [],
|
|
200
|
-
adjustments: t.adjustments || [],
|
|
201
|
-
totalPrice: 0,
|
|
202
|
-
totalSpots: 0
|
|
203
|
-
});
|
|
204
|
-
let n = e.get(t.id);
|
|
205
|
-
n.reservations.push(t), n.totalPrice = typeof t.total == "number" ? t.total : n.totalPrice + (t.reservationPrice || 0), n.totalSpots += t.spots || 0;
|
|
206
|
-
}
|
|
207
|
-
return Array.from(e.values());
|
|
208
|
-
}), Q = d(() => ({
|
|
209
|
-
spots: I.value.reduce((e, t) => e + (t.spots || 0), 0),
|
|
210
|
-
bookings: I.value.length,
|
|
211
|
-
revenue: I.value.reduce((e, t) => e + (t.reservationPrice || 0), 0)
|
|
212
|
-
})), Nt = () => {
|
|
213
|
-
V.value = "";
|
|
214
|
-
}, Pt = async () => {
|
|
215
|
-
try {
|
|
216
|
-
let e = N.value.id, t = await F.get(P.agendaCollection, e);
|
|
217
|
-
z.value = t, L.value = t?.resources?.filter((e) => e.isActive) || [];
|
|
218
|
-
} catch (e) {
|
|
219
|
-
console.error("Error loading resources:", e), L.value = [];
|
|
220
|
-
}
|
|
221
|
-
}, $ = async () => {
|
|
222
|
-
R.value = !0, I.value = [];
|
|
223
|
-
try {
|
|
224
|
-
let e = N.value.id, t = new Date(K.value);
|
|
225
|
-
t.setHours(0, 0, 0, 0);
|
|
226
|
-
let n = new Date(K.value);
|
|
227
|
-
n.setHours(23, 59, 59, 999);
|
|
228
|
-
let r = await F.find(P.reservationsCollection, { filters: [
|
|
229
|
-
{
|
|
230
|
-
field: "agendaId",
|
|
231
|
-
operator: "==",
|
|
232
|
-
value: e
|
|
233
|
-
},
|
|
234
|
-
{
|
|
235
|
-
field: "createdAt",
|
|
236
|
-
operator: ">=",
|
|
237
|
-
value: t.toISOString()
|
|
238
|
-
},
|
|
239
|
-
{
|
|
240
|
-
field: "createdAt",
|
|
241
|
-
operator: "<=",
|
|
242
|
-
value: n.toISOString()
|
|
243
|
-
},
|
|
244
|
-
{
|
|
245
|
-
field: "status",
|
|
246
|
-
operator: "==",
|
|
247
|
-
value: W.value
|
|
248
|
-
}
|
|
249
|
-
] }), i = [];
|
|
250
|
-
r.forEach((e) => {
|
|
251
|
-
(e.reservations || []).forEach((t) => {
|
|
252
|
-
i.push(jt(e, t));
|
|
253
|
-
});
|
|
254
|
-
}), I.value = i.sort((e, t) => (t.createdAt || "").localeCompare(e.createdAt || ""));
|
|
255
|
-
} catch (e) {
|
|
256
|
-
console.error("Error loading orders:", e), I.value = [];
|
|
257
|
-
} finally {
|
|
258
|
-
R.value = !1;
|
|
259
|
-
}
|
|
260
|
-
}, Ft = async () => {
|
|
261
|
-
await Pt(), await $();
|
|
262
|
-
}, It = async (e, t) => {
|
|
263
|
-
let n = await F.get(P.reservationsCollection, e);
|
|
264
|
-
if (!n) return;
|
|
265
|
-
let r = {
|
|
266
|
-
...n,
|
|
267
|
-
id: n.id || e
|
|
268
|
-
}, i = (r.reservations || []).map((e) => jt(r, e));
|
|
269
|
-
if (t) {
|
|
270
|
-
let e = i.find((e) => e.res_id === t);
|
|
271
|
-
if (!e) return;
|
|
272
|
-
await X(), H.value?.openDialog(e);
|
|
273
|
-
return;
|
|
274
|
-
}
|
|
275
|
-
i.length && (await X(), U.value?.openDialog({
|
|
276
|
-
id: r.id,
|
|
277
|
-
customerInfo: r.customerInfo,
|
|
278
|
-
status: r.status,
|
|
279
|
-
createdAt: r.createdAt,
|
|
280
|
-
metadata: r.metadata || {},
|
|
281
|
-
reservations: i,
|
|
282
|
-
adjustments: r.adjustments || [],
|
|
283
|
-
totalPrice: typeof r.total == "number" ? r.total : i.reduce((e, t) => e + (t.reservationPrice || 0), 0),
|
|
284
|
-
totalSpots: i.reduce((e, t) => e + (t.spots || 0), 0)
|
|
285
|
-
}));
|
|
286
|
-
}, Lt = async (e) => {
|
|
287
|
-
await X(), H.value?.openDialog(e);
|
|
288
|
-
};
|
|
289
|
-
return Ft(), ie(async () => {
|
|
290
|
-
let e = M.value.orderId || v.query.orderId, t = M.value.reservationId || v.query.reservationId;
|
|
291
|
-
if (e) {
|
|
292
|
-
let n = new URL(window.location.href);
|
|
293
|
-
n.searchParams.delete("orderId"), n.searchParams.delete("reservationId"), window.history.replaceState(window.history.state, "", n.toString()), await It(e, t);
|
|
294
|
-
}
|
|
295
|
-
}), se(K, () => {
|
|
296
|
-
$();
|
|
297
|
-
}), se(W, () => {
|
|
298
|
-
$();
|
|
299
|
-
}), (n, i) => {
|
|
300
|
-
let a = w("Button"), o = w("Badge"), s = w("CardTitle"), c = w("CardDescription"), l = w("CardHeader"), te = w("Input"), d = w("CardContent"), v = w("Card");
|
|
301
|
-
return x(), m(u, null, [
|
|
302
|
-
_(e, null, {
|
|
303
|
-
default: D(() => [h("div", me, [
|
|
304
|
-
h("div", he, [h("div", null, [h("h1", ge, [_(E(A), { class: "size-6" }), i[4] ||= g(" Orders ", -1)]), i[5] ||= h("p", { class: "text-muted-foreground text-sm mt-1" }, " View orders by when they were placed ", -1)])]),
|
|
305
|
-
h("div", _e, [(x(), m(u, null, C([
|
|
306
|
-
"confirmed",
|
|
307
|
-
"pending",
|
|
308
|
-
"cancelled"
|
|
309
|
-
], (e) => _(a, {
|
|
310
|
-
key: e,
|
|
311
|
-
variant: E(W) === e ? "default" : "ghost",
|
|
312
|
-
size: "sm",
|
|
313
|
-
class: "capitalize",
|
|
314
|
-
onClick: (t) => W.value = e
|
|
315
|
-
}, {
|
|
316
|
-
default: D(() => [g(T(e), 1)]),
|
|
317
|
-
_: 2
|
|
318
|
-
}, 1032, ["variant", "onClick"])), 64))]),
|
|
319
|
-
_(v, null, {
|
|
320
|
-
default: D(() => [_(l, null, {
|
|
321
|
-
default: D(() => [h("div", ve, [h("div", null, [_(s, { class: "flex items-center gap-2" }, {
|
|
322
|
-
default: D(() => [i[6] ||= g(" Orders received ", -1), E(Q).bookings > 0 ? (x(), f(o, {
|
|
323
|
-
key: 0,
|
|
324
|
-
variant: "secondary"
|
|
325
|
-
}, {
|
|
326
|
-
default: D(() => [g(T(E(Q).bookings), 1)]),
|
|
327
|
-
_: 1
|
|
328
|
-
})) : p("", !0)]),
|
|
329
|
-
_: 1
|
|
330
|
-
}), _(c, { class: "flex items-center gap-4 mt-1" }, {
|
|
331
|
-
default: D(() => [h("span", ye, [_(E(j), { size: 14 }), g(" " + T(E(Q).spots) + " spots ", 1)]), h("span", be, " €" + T(E(Q).revenue.toFixed(2)) + T(E(W) === "pending" ? " pending " : E(W) === "cancelled" ? " cancelled " : " ") + "revenue ", 1)]),
|
|
332
|
-
_: 1
|
|
333
|
-
})]), h("div", xe, [h("div", Se, [
|
|
334
|
-
_(a, {
|
|
335
|
-
variant: "outline",
|
|
336
|
-
size: "icon",
|
|
337
|
-
class: "size-8",
|
|
338
|
-
onClick: Tt
|
|
339
|
-
}, {
|
|
340
|
-
default: D(() => [_(E(le), { size: 16 })]),
|
|
341
|
-
_: 1
|
|
342
|
-
}),
|
|
343
|
-
_(a, {
|
|
344
|
-
variant: "outline",
|
|
345
|
-
size: "sm",
|
|
346
|
-
class: "h-8 px-3 text-xs",
|
|
347
|
-
onClick: Ot
|
|
348
|
-
}, {
|
|
349
|
-
default: D(() => [...i[7] ||= [g(" Today ", -1)]]),
|
|
350
|
-
_: 1
|
|
351
|
-
}),
|
|
352
|
-
_(a, {
|
|
353
|
-
variant: "outline",
|
|
354
|
-
size: "icon",
|
|
355
|
-
class: "size-8",
|
|
356
|
-
onClick: Et,
|
|
357
|
-
disabled: !E(Dt)
|
|
358
|
-
}, {
|
|
359
|
-
default: D(() => [_(E(ue), { size: 16 })]),
|
|
360
|
-
_: 1
|
|
361
|
-
}, 8, ["disabled"])
|
|
362
|
-
]), _(a, {
|
|
363
|
-
variant: "outline",
|
|
364
|
-
size: "icon",
|
|
365
|
-
onClick: $,
|
|
366
|
-
disabled: E(R)
|
|
367
|
-
}, {
|
|
368
|
-
default: D(() => [_(E(de), {
|
|
369
|
-
size: 16,
|
|
370
|
-
class: re({ "animate-spin": E(R) })
|
|
371
|
-
}, null, 8, ["class"])]),
|
|
372
|
-
_: 1
|
|
373
|
-
}, 8, ["disabled"])])]), h("div", Ce, [h("div", we, [_(a, {
|
|
374
|
-
type: "button",
|
|
375
|
-
variant: "outline",
|
|
376
|
-
onClick: Ct
|
|
377
|
-
}, {
|
|
378
|
-
default: D(() => [_(E(O), { class: "size-4" }), g(" " + T(E(wt)), 1)]),
|
|
379
|
-
_: 1
|
|
380
|
-
}), ce(h("input", {
|
|
381
|
-
ref_key: "dateInputRef",
|
|
382
|
-
ref: q,
|
|
383
|
-
"onUpdate:modelValue": i[0] ||= (e) => y(J) ? J.value = e : null,
|
|
384
|
-
type: "date",
|
|
385
|
-
class: "orders-date-picker",
|
|
386
|
-
"aria-label": "Select order date"
|
|
387
|
-
}, null, 512), [[oe, E(J)]])])])]),
|
|
388
|
-
_: 1
|
|
389
|
-
}), _(d, null, {
|
|
390
|
-
default: D(() => [
|
|
391
|
-
h("div", Te, [
|
|
392
|
-
_(E(fe), {
|
|
393
|
-
size: 16,
|
|
394
|
-
class: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground"
|
|
395
|
-
}),
|
|
396
|
-
_(te, {
|
|
397
|
-
modelValue: E(V),
|
|
398
|
-
"onUpdate:modelValue": i[1] ||= (e) => y(V) ? V.value = e : null,
|
|
399
|
-
placeholder: "Search by name, email, or phone...",
|
|
400
|
-
class: "pl-9 pr-9"
|
|
401
|
-
}, null, 8, ["modelValue"]),
|
|
402
|
-
E(V) ? (x(), f(a, {
|
|
403
|
-
key: 0,
|
|
404
|
-
variant: "ghost",
|
|
405
|
-
size: "icon",
|
|
406
|
-
class: "absolute right-1 top-1/2 -translate-y-1/2 h-7 w-7",
|
|
407
|
-
onClick: Nt
|
|
408
|
-
}, {
|
|
409
|
-
default: D(() => [_(E(pe), { size: 14 })]),
|
|
410
|
-
_: 1
|
|
411
|
-
})) : p("", !0)
|
|
412
|
-
]),
|
|
413
|
-
E(V) ? (x(), m("div", Ee, " Showing " + T(E(Z).length) + " of " + T(E(I).length) + " orders ", 1)) : p("", !0),
|
|
414
|
-
E(R) ? (x(), m("div", De, [...i[8] ||= [h("div", { class: "animate-spin rounded-full h-8 w-8 border-b-2 border-primary" }, null, -1)]])) : E(I).length === 0 ? (x(), m("div", Oe, [_(E(A), { class: "size-12 mx-auto mb-3 opacity-50" }), i[9] ||= h("p", null, "No orders received on this day", -1)])) : E(Z).length === 0 ? (x(), m("div", ke, " No orders match your search ")) : (x(), m("div", Ae, [(x(!0), m(u, null, C(E(Mt), (e) => (x(), m("div", {
|
|
415
|
-
key: e.id,
|
|
416
|
-
class: "border rounded-lg overflow-hidden shadow-sm"
|
|
417
|
-
}, [e.reservations.length === 1 ? (x(), m("div", {
|
|
418
|
-
key: 0,
|
|
419
|
-
class: "p-3 hover:bg-muted/50 transition-colors cursor-pointer",
|
|
420
|
-
onClick: (t) => E(H)?.openDialog(e.reservations[0])
|
|
421
|
-
}, [h("div", Me, [h("div", Ne, [
|
|
422
|
-
h("div", Pe, T(e.customerInfo?.firstName || e.customerInfo?.lastName ? [e.customerInfo?.firstName, e.customerInfo?.lastName].filter(Boolean).join(" ") : "Unknown Customer"), 1),
|
|
423
|
-
h("div", Fe, T(e.customerInfo?.email), 1),
|
|
424
|
-
h("div", Ie, T(e.customerInfo?.phone), 1),
|
|
425
|
-
h("div", Le, [
|
|
426
|
-
h("div", Re, [_(E(O), { size: 12 }), h("span", null, T(At(e.reservations[0].date)) + " · " + T(e.reservations[0].startTime) + " - " + T(e.reservations[0].endTime), 1)]),
|
|
427
|
-
h("div", ze, [_(E(j), { size: 12 }), h("span", null, T(e.reservations[0].spots) + " spots", 1)]),
|
|
428
|
-
e.reservations[0].resourceName ? (x(), m("div", Be, [h("div", {
|
|
429
|
-
class: "w-3 h-3 rounded-full",
|
|
430
|
-
style: b({ backgroundColor: e.reservations[0].resourceColor || "#6b7280" })
|
|
431
|
-
}, null, 4), h("span", null, T(e.reservations[0].resourceName), 1)])) : p("", !0)
|
|
432
|
-
]),
|
|
433
|
-
h("div", Ve, [_(E(k), { size: 12 }), h("span", null, "Ordered at " + T(kt(e.createdAt)), 1)]),
|
|
434
|
-
_(t, {
|
|
435
|
-
metadata: {
|
|
436
|
-
...e.reservations[0].metadata,
|
|
437
|
-
...e.reservations[0].reservationMetadata
|
|
438
|
-
},
|
|
439
|
-
schema: E(B),
|
|
440
|
-
"display-filter": ["highlight", "badge"],
|
|
441
|
-
compact: "",
|
|
442
|
-
class: "mt-1"
|
|
443
|
-
}, null, 8, ["metadata", "schema"])
|
|
444
|
-
]), h("div", He, [e.reservations[0].status === "pending" ? (x(), m("span", Ue, "Pending")) : e.reservations[0].status === "cancelled" ? (x(), m("span", We, "Cancelled")) : e.reservations[0].reservationStatus === "needs_approval" ? (x(), m("span", Ge, "Needs Approval")) : e.reservations[0].reservationStatus === "approved" ? (x(), m("span", Ke, "Approved")) : e.reservations[0].reservationStatus === "cancelled" ? (x(), m("span", qe, "Cancelled")) : e.reservations[0].reservationStatus === "rejected" ? (x(), m("span", Je, "Rejected")) : (x(), m("span", Ye, "Pending")), e.reservations[0].reservationPrice || e.reservations[0].reservationPrice === 0 ? (x(), m("div", Xe, " €" + T(e.reservations[0].reservationPrice.toFixed(2)), 1)) : p("", !0)])])], 8, je)) : (x(), m(u, { key: 1 }, [h("div", {
|
|
445
|
-
class: "p-3 bg-muted/30 hover:bg-muted/50 transition-colors cursor-pointer",
|
|
446
|
-
onClick: (t) => E(U)?.openDialog(e)
|
|
447
|
-
}, [h("div", Qe, [h("div", $e, [
|
|
448
|
-
h("div", et, [h("div", tt, T(e.customerInfo?.firstName || e.customerInfo?.lastName ? [e.customerInfo?.firstName, e.customerInfo?.lastName].filter(Boolean).join(" ") : "Unknown Customer"), 1), _(o, {
|
|
449
|
-
variant: "secondary",
|
|
450
|
-
class: "text-xs"
|
|
451
|
-
}, {
|
|
452
|
-
default: D(() => [g(T(e.reservations.length) + " reservations ", 1)]),
|
|
453
|
-
_: 2
|
|
454
|
-
}, 1024)]),
|
|
455
|
-
h("div", nt, T(e.customerInfo?.email), 1),
|
|
456
|
-
h("div", rt, T(e.customerInfo?.phone), 1),
|
|
457
|
-
h("div", it, [_(E(k), { size: 12 }), h("span", null, "Ordered at " + T(kt(e.createdAt)), 1)]),
|
|
458
|
-
_(t, {
|
|
459
|
-
metadata: e.metadata,
|
|
460
|
-
schema: E(B),
|
|
461
|
-
"display-filter": ["highlight", "badge"],
|
|
462
|
-
compact: "",
|
|
463
|
-
class: "mt-1"
|
|
464
|
-
}, null, 8, ["metadata", "schema"])
|
|
465
|
-
]), h("div", at, [e.status === "pending" ? (x(), m("span", ot, "Pending")) : e.status === "cancelled" ? (x(), m("span", st, "Cancelled")) : (x(), m("span", ct, "Confirmed")), h("div", lt, " €" + T(e.totalPrice.toFixed(2)), 1)])])], 8, Ze), (x(!0), m(u, null, C(e.reservations, (e) => (x(), m("div", {
|
|
466
|
-
key: e.res_id,
|
|
467
|
-
class: "p-3 border-t bg-muted/50 dark:bg-transparent dark:hover:bg-muted/50 transition-colors cursor-pointer",
|
|
468
|
-
onClick: (t) => E(H)?.openDialog(e)
|
|
469
|
-
}, [h("div", dt, [h("div", ft, [
|
|
470
|
-
h("div", pt, [_(E(O), { size: 12 }), h("span", null, T(At(e.date)) + " · " + T(e.startTime) + " - " + T(e.endTime), 1)]),
|
|
471
|
-
h("div", mt, [_(E(j), { size: 12 }), h("span", null, T(e.spots) + " spots", 1)]),
|
|
472
|
-
e.resourceName ? (x(), m("div", ht, [h("div", {
|
|
473
|
-
class: "w-3 h-3 rounded-full",
|
|
474
|
-
style: b({ backgroundColor: e.resourceColor || "#6b7280" })
|
|
475
|
-
}, null, 4), h("span", null, T(e.resourceName), 1)])) : p("", !0)
|
|
476
|
-
]), e.status === "confirmed" ? (x(), m("div", gt, [e.reservationStatus === "needs_approval" ? (x(), m("span", _t, "Needs Approval")) : e.reservationStatus === "approved" ? (x(), m("span", vt, "Approved")) : e.reservationStatus === "cancelled" ? (x(), m("span", yt, "Cancelled")) : e.reservationStatus === "rejected" ? (x(), m("span", bt, "Rejected")) : (x(), m("span", xt, "Pending")), e.reservationPrice || e.reservationPrice === 0 ? (x(), m("div", St, " €" + T(e.reservationPrice.toFixed(2)), 1)) : p("", !0)])) : p("", !0)]), _(t, {
|
|
477
|
-
metadata: e.reservationMetadata,
|
|
478
|
-
schema: E(B),
|
|
479
|
-
"display-filter": ["highlight", "badge"],
|
|
480
|
-
compact: "",
|
|
481
|
-
class: "mt-1"
|
|
482
|
-
}, null, 8, ["metadata", "schema"])], 8, ut))), 128))], 64))]))), 128))]))
|
|
483
|
-
]),
|
|
484
|
-
_: 1
|
|
485
|
-
})]),
|
|
486
|
-
_: 1
|
|
487
|
-
})
|
|
488
|
-
])]),
|
|
489
|
-
_: 1
|
|
490
|
-
}),
|
|
491
|
-
_(r, {
|
|
492
|
-
ref_key: "reservationDetailDialog",
|
|
493
|
-
ref: H,
|
|
494
|
-
"agenda-data": E(z),
|
|
495
|
-
"show-order-link": "",
|
|
496
|
-
onCancelled: $,
|
|
497
|
-
onConfirmed: $,
|
|
498
|
-
onRejected: $,
|
|
499
|
-
onOpenOrder: i[2] ||= (e) => It(e)
|
|
500
|
-
}, null, 8, ["agenda-data"]),
|
|
501
|
-
_(ee, {
|
|
502
|
-
ref_key: "orderDetailDialog",
|
|
503
|
-
ref: U,
|
|
504
|
-
"agenda-data": E(z),
|
|
505
|
-
onOpenReservation: i[3] ||= (e) => Lt(e)
|
|
506
|
-
}, null, 8, ["agenda-data"])
|
|
507
|
-
], 64);
|
|
508
|
-
};
|
|
509
|
-
}
|
|
510
|
-
}), [["__scopeId", "data-v-728588ca"]]);
|
|
511
|
-
//#endregion
|
|
512
|
-
export { M as default };
|
package/dist/orders-DwPSi_pD.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require(`./chunk-DQi1bQcV.js`);const e=require(`./EditLayout-Bnz9q_jd.js`),t=require(`./ReservationDetailDialog-DZTFD2xI.js`),n=require(`./_plugin-vue_export-helper-5u7tqpWC.js`),r=require(`./OrderDetailDialog-BJ01DZFe.js`);let i=require(`@oneclick.dev/cms-kit`),a=require(`vue`),o=require(`@lucide/vue`);var ee={class:`space-y-6`},te={class:`flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4`},ne={class:`text-2xl font-semibold tracking-tight flex items-center gap-2`},re={class:`flex gap-1 border rounded-lg p-1 w-fit`},ie={class:`flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4`},ae={class:`flex items-center gap-1`},oe={class:`flex items-center gap-1`},se={class:`flex items-center gap-2`},ce={class:`flex items-center gap-1`},le={class:`mt-2 text-sm text-muted-foreground`},ue={class:`orders-date-trigger`},de={class:`relative mb-4`},fe={key:0,class:`mb-3 text-sm text-muted-foreground`},pe={key:1,class:`flex items-center justify-center py-8`},me={key:2,class:`text-center py-8 text-muted-foreground`},he={key:3,class:`text-center py-8 text-muted-foreground`},ge={key:4,class:`space-y-2`},_e=[`onClick`],ve={class:`flex items-start justify-between`},ye={class:`flex-1`},be={class:`font-medium`},xe={class:`text-sm text-muted-foreground`},Se={class:`text-sm text-muted-foreground`},Ce={class:`flex items-center gap-4 flex-wrap mt-1`},we={class:`flex items-center gap-2 text-xs text-muted-foreground`},Te={class:`flex items-center gap-2 text-xs text-muted-foreground`},Ee={key:0,class:`flex items-center gap-1 text-xs text-muted-foreground`},De={class:`flex items-center gap-2 mt-1 text-xs text-muted-foreground`},Oe={class:`text-right`},s={key:0,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`},c={key:1,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`},l={key:2,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`},u={key:3,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`},d={key:4,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`},f={key:5,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`},p={key:6,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`},m={key:7,class:`text-sm font-medium mt-1`},h=[`onClick`],g={class:`flex items-start justify-between`},_={class:`flex-1`},v={class:`flex items-center gap-2`},y={class:`font-medium`},b={class:`text-sm text-muted-foreground`},x={class:`text-sm text-muted-foreground`},S={class:`flex items-center gap-2 mt-1 text-xs text-muted-foreground`},C={class:`text-right`},w={key:0,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`},T={key:1,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`},ke={key:2,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`},Ae={class:`text-sm font-medium mt-1`},je=[`onClick`],Me={class:`flex items-center justify-between`},Ne={class:`flex items-center gap-4 flex-wrap`},Pe={class:`flex items-center gap-2 text-xs text-muted-foreground`},Fe={class:`flex items-center gap-2 text-xs text-muted-foreground`},Ie={key:0,class:`flex items-center gap-1 text-xs text-muted-foreground`},Le={key:0,class:`text-right flex items-center gap-2`},Re={key:0,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`},ze={key:1,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`},Be={key:2,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`},Ve={key:3,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`},He={key:4,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`},E={key:5,class:`text-sm font-medium`},D=(0,a.defineComponent)({__name:`orders`,setup(n){let D=(0,i.useRoute)();(0,i.useRouter)();let O=(0,i.useOverlayParams)(),{params:k}=(0,i.useModuleRoute)(),{config:A}=(0,i.useModule)(),j=(0,i.useFirebaseIntegration)(A.project),M=(0,a.ref)([]),N=(0,a.ref)([]),P=(0,a.ref)(!0),F=(0,a.ref)(null),I=(0,a.computed)(()=>F?.value?.metadataSchema||[]),L=(0,a.ref)(``),R=(0,a.ref)(null),z=(0,a.ref)(null),B=(0,a.ref)(`confirmed`),V=new Date,H=(0,a.ref)(new Date),U=(0,a.ref)(null);(0,a.provide)(`event`,(0,a.computed)(()=>({date:G(H.value),resource:null})));let W=(0,a.computed)({get:()=>G(H.value),set:e=>{if(!e){H.value=new Date;return}H.value=new Date(`${e}T00:00:00`)}}),Ue=()=>{let e=U.value;if(e){if(typeof e.showPicker==`function`){e.showPicker();return}e.focus(),e.click()}},We=(0,a.computed)(()=>{let e=new Date(V);e.setDate(V.getDate()-1);let t=new Date(V);return t.setDate(V.getDate()+1),H.value.toDateString()===V.toDateString()?`Today`:H.value.toDateString()===e.toDateString()?`Yesterday`:H.value.toDateString()===t.toDateString()?`Tomorrow`:H.value.toLocaleDateString(`en-US`,{weekday:`long`,month:`long`,day:`numeric`,year:`numeric`})}),Ge=()=>{let e=new Date(H.value);e.setDate(e.getDate()-1),H.value=e},Ke=()=>{let e=new Date(H.value);e.setDate(e.getDate()+1),e<=V&&(H.value=e)},qe=(0,a.computed)(()=>{let e=new Date(H.value);return e.setDate(e.getDate()+1),e<=V}),Je=()=>{H.value=new Date},G=e=>`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,`0`)}-${String(e.getDate()).padStart(2,`0`)}`,K=e=>e?new Date(e).toLocaleTimeString(`en-US`,{hour:`2-digit`,minute:`2-digit`,hour12:!1}):``,q=e=>e?new Date(e).toLocaleDateString(`en-US`,{weekday:`short`,month:`short`,day:`numeric`}):``,J=(e,t)=>{let n=N.value.find(e=>e.id===t.resourceId),r=e.id||e.orderId||t.orderId||``;return{customerInfo:e.customerInfo,amountDue:e.amountDue,amountPaid:e.amountPaid,status:e.status,reservationStatus:t.status,subtotal:e.subtotal,total:e.total,discount:e.discount,id:r,res_id:t.id,resourceId:t.resourceId,spots:t.spots,date:t.date,createdAt:e.createdAt,startTime:t.timeslot?.startTime,endTime:t.timeslot?.endTime,reservationPrice:t.totalPrice,reservationBasePrice:t.basePrice,reservationAddOnsPrice:t.addOnsPrice,pricingOptionId:t.pricingOptionId,pricingOption:t.pricingOption,resourceName:n?.name||`Unknown`,resourceColor:n?.color,metadata:e.metadata||{},reservationMetadata:t.metadata||{},adjustments:e.adjustments||[],reservationAdjustments:t.adjustments||[]}},Y=async()=>{await(0,a.nextTick)(),await new Promise(e=>{if(typeof requestAnimationFrame==`function`){requestAnimationFrame(()=>e());return}e()})},X=(0,a.computed)(()=>L.value.trim()?new t.r(M.value,{keys:[`customerInfo.firstName`,`customerInfo.lastName`,`customerInfo.email`,`customerInfo.phone`,`resourceName`],threshold:.3,ignoreLocation:!0}).search(L.value).map(e=>e.item):M.value),Ye=(0,a.computed)(()=>{let e=new Map;for(let t of X.value){e.has(t.id)||e.set(t.id,{id:t.id,customerInfo:t.customerInfo,status:t.status,createdAt:t.createdAt,metadata:t.metadata||{},reservations:[],adjustments:t.adjustments||[],totalPrice:0,totalSpots:0});let n=e.get(t.id);n.reservations.push(t),n.totalPrice=typeof t.total==`number`?t.total:n.totalPrice+(t.reservationPrice||0),n.totalSpots+=t.spots||0}return Array.from(e.values())}),Z=(0,a.computed)(()=>({spots:M.value.reduce((e,t)=>e+(t.spots||0),0),bookings:M.value.length,revenue:M.value.reduce((e,t)=>e+(t.reservationPrice||0),0)})),Xe=()=>{L.value=``},Ze=async()=>{try{let e=k.value.id,t=await j.get(A.agendaCollection,e);F.value=t,N.value=t?.resources?.filter(e=>e.isActive)||[]}catch(e){console.error(`Error loading resources:`,e),N.value=[]}},Q=async()=>{P.value=!0,M.value=[];try{let e=k.value.id,t=new Date(H.value);t.setHours(0,0,0,0);let n=new Date(H.value);n.setHours(23,59,59,999);let r=await j.find(A.reservationsCollection,{filters:[{field:`agendaId`,operator:`==`,value:e},{field:`createdAt`,operator:`>=`,value:t.toISOString()},{field:`createdAt`,operator:`<=`,value:n.toISOString()},{field:`status`,operator:`==`,value:B.value}]}),i=[];r.forEach(e=>{(e.reservations||[]).forEach(t=>{i.push(J(e,t))})}),M.value=i.sort((e,t)=>(t.createdAt||``).localeCompare(e.createdAt||``))}catch(e){console.error(`Error loading orders:`,e),M.value=[]}finally{P.value=!1}},Qe=async()=>{await Ze(),await Q()},$=async(e,t)=>{let n=await j.get(A.reservationsCollection,e);if(!n)return;let r={...n,id:n.id||e},i=(r.reservations||[]).map(e=>J(r,e));if(t){let e=i.find(e=>e.res_id===t);if(!e)return;await Y(),R.value?.openDialog(e);return}i.length&&(await Y(),z.value?.openDialog({id:r.id,customerInfo:r.customerInfo,status:r.status,createdAt:r.createdAt,metadata:r.metadata||{},reservations:i,adjustments:r.adjustments||[],totalPrice:typeof r.total==`number`?r.total:i.reduce((e,t)=>e+(t.reservationPrice||0),0),totalSpots:i.reduce((e,t)=>e+(t.spots||0),0)}))},$e=async e=>{await Y(),R.value?.openDialog(e)};return Qe(),(0,a.onMounted)(async()=>{let e=O.value.orderId||D.query.orderId,t=O.value.reservationId||D.query.reservationId;if(e){let n=new URL(window.location.href);n.searchParams.delete(`orderId`),n.searchParams.delete(`reservationId`),window.history.replaceState(window.history.state,``,n.toString()),await $(e,t)}}),(0,a.watch)(H,()=>{Q()}),(0,a.watch)(B,()=>{Q()}),(n,i)=>{let D=(0,a.resolveComponent)(`Button`),O=(0,a.resolveComponent)(`Badge`),k=(0,a.resolveComponent)(`CardTitle`),A=(0,a.resolveComponent)(`CardDescription`),j=(0,a.resolveComponent)(`CardHeader`),N=(0,a.resolveComponent)(`Input`),V=(0,a.resolveComponent)(`CardContent`),H=(0,a.resolveComponent)(`Card`);return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createVNode)(e.t,null,{default:(0,a.withCtx)(()=>[(0,a.createElementVNode)(`div`,ee,[(0,a.createElementVNode)(`div`,te,[(0,a.createElementVNode)(`div`,null,[(0,a.createElementVNode)(`h1`,ne,[(0,a.createVNode)((0,a.unref)(o.ShoppingBag),{class:`size-6`}),i[4]||=(0,a.createTextVNode)(` Orders `,-1)]),i[5]||=(0,a.createElementVNode)(`p`,{class:`text-muted-foreground text-sm mt-1`},` View orders by when they were placed `,-1)])]),(0,a.createElementVNode)(`div`,re,[((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)([`confirmed`,`pending`,`cancelled`],e=>(0,a.createVNode)(D,{key:e,variant:(0,a.unref)(B)===e?`default`:`ghost`,size:`sm`,class:`capitalize`,onClick:t=>B.value=e},{default:(0,a.withCtx)(()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e),1)]),_:2},1032,[`variant`,`onClick`])),64))]),(0,a.createVNode)(H,null,{default:(0,a.withCtx)(()=>[(0,a.createVNode)(j,null,{default:(0,a.withCtx)(()=>[(0,a.createElementVNode)(`div`,ie,[(0,a.createElementVNode)(`div`,null,[(0,a.createVNode)(k,{class:`flex items-center gap-2`},{default:(0,a.withCtx)(()=>[i[6]||=(0,a.createTextVNode)(` Orders received `,-1),(0,a.unref)(Z).bookings>0?((0,a.openBlock)(),(0,a.createBlock)(O,{key:0,variant:`secondary`},{default:(0,a.withCtx)(()=>[(0,a.createTextVNode)((0,a.toDisplayString)((0,a.unref)(Z).bookings),1)]),_:1})):(0,a.createCommentVNode)(``,!0)]),_:1}),(0,a.createVNode)(A,{class:`flex items-center gap-4 mt-1`},{default:(0,a.withCtx)(()=>[(0,a.createElementVNode)(`span`,ae,[(0,a.createVNode)((0,a.unref)(o.Users),{size:14}),(0,a.createTextVNode)(` `+(0,a.toDisplayString)((0,a.unref)(Z).spots)+` spots `,1)]),(0,a.createElementVNode)(`span`,oe,` €`+(0,a.toDisplayString)((0,a.unref)(Z).revenue.toFixed(2))+(0,a.toDisplayString)((0,a.unref)(B)===`pending`?` pending `:(0,a.unref)(B)===`cancelled`?` cancelled `:` `)+`revenue `,1)]),_:1})]),(0,a.createElementVNode)(`div`,se,[(0,a.createElementVNode)(`div`,ce,[(0,a.createVNode)(D,{variant:`outline`,size:`icon`,class:`size-8`,onClick:Ge},{default:(0,a.withCtx)(()=>[(0,a.createVNode)((0,a.unref)(o.ChevronLeft),{size:16})]),_:1}),(0,a.createVNode)(D,{variant:`outline`,size:`sm`,class:`h-8 px-3 text-xs`,onClick:Je},{default:(0,a.withCtx)(()=>[...i[7]||=[(0,a.createTextVNode)(` Today `,-1)]]),_:1}),(0,a.createVNode)(D,{variant:`outline`,size:`icon`,class:`size-8`,onClick:Ke,disabled:!(0,a.unref)(qe)},{default:(0,a.withCtx)(()=>[(0,a.createVNode)((0,a.unref)(o.ChevronRight),{size:16})]),_:1},8,[`disabled`])]),(0,a.createVNode)(D,{variant:`outline`,size:`icon`,onClick:Q,disabled:(0,a.unref)(P)},{default:(0,a.withCtx)(()=>[(0,a.createVNode)((0,a.unref)(o.RefreshCw),{size:16,class:(0,a.normalizeClass)({"animate-spin":(0,a.unref)(P)})},null,8,[`class`])]),_:1},8,[`disabled`])])]),(0,a.createElementVNode)(`div`,le,[(0,a.createElementVNode)(`div`,ue,[(0,a.createVNode)(D,{type:`button`,variant:`outline`,onClick:Ue},{default:(0,a.withCtx)(()=>[(0,a.createVNode)((0,a.unref)(o.CalendarIcon),{class:`size-4`}),(0,a.createTextVNode)(` `+(0,a.toDisplayString)((0,a.unref)(We)),1)]),_:1}),(0,a.withDirectives)((0,a.createElementVNode)(`input`,{ref_key:`dateInputRef`,ref:U,"onUpdate:modelValue":i[0]||=e=>(0,a.isRef)(W)?W.value=e:null,type:`date`,class:`orders-date-picker`,"aria-label":`Select order date`},null,512),[[a.vModelText,(0,a.unref)(W)]])])])]),_:1}),(0,a.createVNode)(V,null,{default:(0,a.withCtx)(()=>[(0,a.createElementVNode)(`div`,de,[(0,a.createVNode)((0,a.unref)(o.Search),{size:16,class:`absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground`}),(0,a.createVNode)(N,{modelValue:(0,a.unref)(L),"onUpdate:modelValue":i[1]||=e=>(0,a.isRef)(L)?L.value=e:null,placeholder:`Search by name, email, or phone...`,class:`pl-9 pr-9`},null,8,[`modelValue`]),(0,a.unref)(L)?((0,a.openBlock)(),(0,a.createBlock)(D,{key:0,variant:`ghost`,size:`icon`,class:`absolute right-1 top-1/2 -translate-y-1/2 h-7 w-7`,onClick:Xe},{default:(0,a.withCtx)(()=>[(0,a.createVNode)((0,a.unref)(o.X),{size:14})]),_:1})):(0,a.createCommentVNode)(``,!0)]),(0,a.unref)(L)?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,fe,` Showing `+(0,a.toDisplayString)((0,a.unref)(X).length)+` of `+(0,a.toDisplayString)((0,a.unref)(M).length)+` orders `,1)):(0,a.createCommentVNode)(``,!0),(0,a.unref)(P)?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,pe,[...i[8]||=[(0,a.createElementVNode)(`div`,{class:`animate-spin rounded-full h-8 w-8 border-b-2 border-primary`},null,-1)]])):(0,a.unref)(M).length===0?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,me,[(0,a.createVNode)((0,a.unref)(o.ShoppingBag),{class:`size-12 mx-auto mb-3 opacity-50`}),i[9]||=(0,a.createElementVNode)(`p`,null,`No orders received on this day`,-1)])):(0,a.unref)(X).length===0?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,he,` No orders match your search `)):((0,a.openBlock)(),(0,a.createElementBlock)(`div`,ge,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)((0,a.unref)(Ye),e=>((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{key:e.id,class:`border rounded-lg overflow-hidden shadow-sm`},[e.reservations.length===1?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{key:0,class:`p-3 hover:bg-muted/50 transition-colors cursor-pointer`,onClick:t=>(0,a.unref)(R)?.openDialog(e.reservations[0])},[(0,a.createElementVNode)(`div`,ve,[(0,a.createElementVNode)(`div`,ye,[(0,a.createElementVNode)(`div`,be,(0,a.toDisplayString)(e.customerInfo?.firstName||e.customerInfo?.lastName?[e.customerInfo?.firstName,e.customerInfo?.lastName].filter(Boolean).join(` `):`Unknown Customer`),1),(0,a.createElementVNode)(`div`,xe,(0,a.toDisplayString)(e.customerInfo?.email),1),(0,a.createElementVNode)(`div`,Se,(0,a.toDisplayString)(e.customerInfo?.phone),1),(0,a.createElementVNode)(`div`,Ce,[(0,a.createElementVNode)(`div`,we,[(0,a.createVNode)((0,a.unref)(o.CalendarIcon),{size:12}),(0,a.createElementVNode)(`span`,null,(0,a.toDisplayString)(q(e.reservations[0].date))+` · `+(0,a.toDisplayString)(e.reservations[0].startTime)+` - `+(0,a.toDisplayString)(e.reservations[0].endTime),1)]),(0,a.createElementVNode)(`div`,Te,[(0,a.createVNode)((0,a.unref)(o.Users),{size:12}),(0,a.createElementVNode)(`span`,null,(0,a.toDisplayString)(e.reservations[0].spots)+` spots`,1)]),e.reservations[0].resourceName?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,Ee,[(0,a.createElementVNode)(`div`,{class:`w-3 h-3 rounded-full`,style:(0,a.normalizeStyle)({backgroundColor:e.reservations[0].resourceColor||`#6b7280`})},null,4),(0,a.createElementVNode)(`span`,null,(0,a.toDisplayString)(e.reservations[0].resourceName),1)])):(0,a.createCommentVNode)(``,!0)]),(0,a.createElementVNode)(`div`,De,[(0,a.createVNode)((0,a.unref)(o.Clock),{size:12}),(0,a.createElementVNode)(`span`,null,`Ordered at `+(0,a.toDisplayString)(K(e.createdAt)),1)]),(0,a.createVNode)(t.n,{metadata:{...e.reservations[0].metadata,...e.reservations[0].reservationMetadata},schema:(0,a.unref)(I),"display-filter":[`highlight`,`badge`],compact:``,class:`mt-1`},null,8,[`metadata`,`schema`])]),(0,a.createElementVNode)(`div`,Oe,[e.reservations[0].status===`pending`?((0,a.openBlock)(),(0,a.createElementBlock)(`span`,s,`Pending`)):e.reservations[0].status===`cancelled`?((0,a.openBlock)(),(0,a.createElementBlock)(`span`,c,`Cancelled`)):e.reservations[0].reservationStatus===`needs_approval`?((0,a.openBlock)(),(0,a.createElementBlock)(`span`,l,`Needs Approval`)):e.reservations[0].reservationStatus===`approved`?((0,a.openBlock)(),(0,a.createElementBlock)(`span`,u,`Approved`)):e.reservations[0].reservationStatus===`cancelled`?((0,a.openBlock)(),(0,a.createElementBlock)(`span`,d,`Cancelled`)):e.reservations[0].reservationStatus===`rejected`?((0,a.openBlock)(),(0,a.createElementBlock)(`span`,f,`Rejected`)):((0,a.openBlock)(),(0,a.createElementBlock)(`span`,p,`Pending`)),e.reservations[0].reservationPrice||e.reservations[0].reservationPrice===0?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,m,` €`+(0,a.toDisplayString)(e.reservations[0].reservationPrice.toFixed(2)),1)):(0,a.createCommentVNode)(``,!0)])])],8,_e)):((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:1},[(0,a.createElementVNode)(`div`,{class:`p-3 bg-muted/30 hover:bg-muted/50 transition-colors cursor-pointer`,onClick:t=>(0,a.unref)(z)?.openDialog(e)},[(0,a.createElementVNode)(`div`,g,[(0,a.createElementVNode)(`div`,_,[(0,a.createElementVNode)(`div`,v,[(0,a.createElementVNode)(`div`,y,(0,a.toDisplayString)(e.customerInfo?.firstName||e.customerInfo?.lastName?[e.customerInfo?.firstName,e.customerInfo?.lastName].filter(Boolean).join(` `):`Unknown Customer`),1),(0,a.createVNode)(O,{variant:`secondary`,class:`text-xs`},{default:(0,a.withCtx)(()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.reservations.length)+` reservations `,1)]),_:2},1024)]),(0,a.createElementVNode)(`div`,b,(0,a.toDisplayString)(e.customerInfo?.email),1),(0,a.createElementVNode)(`div`,x,(0,a.toDisplayString)(e.customerInfo?.phone),1),(0,a.createElementVNode)(`div`,S,[(0,a.createVNode)((0,a.unref)(o.Clock),{size:12}),(0,a.createElementVNode)(`span`,null,`Ordered at `+(0,a.toDisplayString)(K(e.createdAt)),1)]),(0,a.createVNode)(t.n,{metadata:e.metadata,schema:(0,a.unref)(I),"display-filter":[`highlight`,`badge`],compact:``,class:`mt-1`},null,8,[`metadata`,`schema`])]),(0,a.createElementVNode)(`div`,C,[e.status===`pending`?((0,a.openBlock)(),(0,a.createElementBlock)(`span`,w,`Pending`)):e.status===`cancelled`?((0,a.openBlock)(),(0,a.createElementBlock)(`span`,T,`Cancelled`)):((0,a.openBlock)(),(0,a.createElementBlock)(`span`,ke,`Confirmed`)),(0,a.createElementVNode)(`div`,Ae,` €`+(0,a.toDisplayString)(e.totalPrice.toFixed(2)),1)])])],8,h),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(e.reservations,e=>((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{key:e.res_id,class:`p-3 border-t bg-muted/50 dark:bg-transparent dark:hover:bg-muted/50 transition-colors cursor-pointer`,onClick:t=>(0,a.unref)(R)?.openDialog(e)},[(0,a.createElementVNode)(`div`,Me,[(0,a.createElementVNode)(`div`,Ne,[(0,a.createElementVNode)(`div`,Pe,[(0,a.createVNode)((0,a.unref)(o.CalendarIcon),{size:12}),(0,a.createElementVNode)(`span`,null,(0,a.toDisplayString)(q(e.date))+` · `+(0,a.toDisplayString)(e.startTime)+` - `+(0,a.toDisplayString)(e.endTime),1)]),(0,a.createElementVNode)(`div`,Fe,[(0,a.createVNode)((0,a.unref)(o.Users),{size:12}),(0,a.createElementVNode)(`span`,null,(0,a.toDisplayString)(e.spots)+` spots`,1)]),e.resourceName?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,Ie,[(0,a.createElementVNode)(`div`,{class:`w-3 h-3 rounded-full`,style:(0,a.normalizeStyle)({backgroundColor:e.resourceColor||`#6b7280`})},null,4),(0,a.createElementVNode)(`span`,null,(0,a.toDisplayString)(e.resourceName),1)])):(0,a.createCommentVNode)(``,!0)]),e.status===`confirmed`?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,Le,[e.reservationStatus===`needs_approval`?((0,a.openBlock)(),(0,a.createElementBlock)(`span`,Re,`Needs Approval`)):e.reservationStatus===`approved`?((0,a.openBlock)(),(0,a.createElementBlock)(`span`,ze,`Approved`)):e.reservationStatus===`cancelled`?((0,a.openBlock)(),(0,a.createElementBlock)(`span`,Be,`Cancelled`)):e.reservationStatus===`rejected`?((0,a.openBlock)(),(0,a.createElementBlock)(`span`,Ve,`Rejected`)):((0,a.openBlock)(),(0,a.createElementBlock)(`span`,He,`Pending`)),e.reservationPrice||e.reservationPrice===0?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,E,` €`+(0,a.toDisplayString)(e.reservationPrice.toFixed(2)),1)):(0,a.createCommentVNode)(``,!0)])):(0,a.createCommentVNode)(``,!0)]),(0,a.createVNode)(t.n,{metadata:e.reservationMetadata,schema:(0,a.unref)(I),"display-filter":[`highlight`,`badge`],compact:``,class:`mt-1`},null,8,[`metadata`,`schema`])],8,je))),128))],64))]))),128))]))]),_:1})]),_:1})])]),_:1}),(0,a.createVNode)(t.t,{ref_key:`reservationDetailDialog`,ref:R,"agenda-data":(0,a.unref)(F),"show-order-link":``,onCancelled:Q,onConfirmed:Q,onRejected:Q,onOpenOrder:i[2]||=e=>$(e)},null,8,[`agenda-data`]),(0,a.createVNode)(r.t,{ref_key:`orderDetailDialog`,ref:z,"agenda-data":(0,a.unref)(F),onOpenReservation:i[3]||=e=>$e(e)},null,8,[`agenda-data`])],64)}}}),O=n.t(D,[[`__scopeId`,`data-v-728588ca`]]);exports.default=O;
|