@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
|
@@ -0,0 +1,811 @@
|
|
|
1
|
+
import { defineComponent as ce, ref as S, reactive as xe, computed as O, resolveComponent as a, openBlock as m, createBlock as C, withCtx as n, createVNode as t, createTextVNode as r, toDisplayString as v, createElementVNode as o, createElementBlock as f, Fragment as E, renderList as Y, normalizeStyle as ie, normalizeClass as me, unref as g, createCommentVNode as w } from "vue";
|
|
2
|
+
import { _ as be } from "./EditLayout.vue_vue_type_script_setup_true_lang-DWMqQvHl.mjs";
|
|
3
|
+
import { Clock as _e, MoreHorizontal as we, Trash2 as pe, Plus as de, Pencil as ye, Copy as ke, Users as ue, CircleAlert as Ce } from "lucide-vue-next";
|
|
4
|
+
import { useModuleRoute as De, useConfirmation as Ve, useModule as he, useFirebaseIntegration as Se } from "@oneclick.dev/cms-kit";
|
|
5
|
+
import { a as Re } from "./index-BhWvXMOp.mjs";
|
|
6
|
+
const Ae = { class: "space-y-5 py-4" }, Me = { class: "flex flex-wrap gap-2 mt-2" }, ze = ["onClick"], Le = { class: "space-y-2" }, $e = { class: "flex items-center justify-between mb-2" }, Ee = { class: "text-sm font-medium" }, Ie = { class: "flex items-center gap-1" }, Ue = { class: "space-y-2" }, Ne = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "text-sm text-muted-foreground italic py-1"
|
|
9
|
+
}, Te = { class: "flex items-center justify-between rounded-lg border p-4" }, He = { class: "space-y-0.5" }, Fe = { class: "text-xs text-muted-foreground" }, Be = { class: "w-full flex justify-between items-center gap-4 flex-col @sm/dialog-footer:flex-row" }, je = { class: "flex items-center gap-2 ml-auto w-full @sm/dialog-footer:w-auto flex-col-reverse @sm/dialog-footer:flex-row" }, Oe = /* @__PURE__ */ ce({
|
|
10
|
+
__name: "ResourceEditorDialog",
|
|
11
|
+
emits: ["add-resource", "update-resource", "remove-resource"],
|
|
12
|
+
setup(fe, { expose: J, emit: I }) {
|
|
13
|
+
const M = I, x = S(!1), y = S("add"), p = ["#ef4444", "#f97316", "#f59e0b", "#eab308", "#84cc16", "#22c55e", "#10b981", "#14b8a6", "#06b6d4", "#0ea5e9", "#3b82f6", "#6366f1", "#8b5cf6", "#a855f7", "#d946ef", "#ec4899", "#f43f5e"], R = [
|
|
14
|
+
{ value: 1, label: "Monday" },
|
|
15
|
+
{ value: 2, label: "Tuesday" },
|
|
16
|
+
{ value: 3, label: "Wednesday" },
|
|
17
|
+
{ value: 4, label: "Thursday" },
|
|
18
|
+
{ value: 5, label: "Friday" },
|
|
19
|
+
{ value: 6, label: "Saturday" },
|
|
20
|
+
{ value: 0, label: "Sunday" }
|
|
21
|
+
], s = xe({
|
|
22
|
+
id: "",
|
|
23
|
+
name: "",
|
|
24
|
+
publicLabel: "",
|
|
25
|
+
avatarLabel: "",
|
|
26
|
+
description: "",
|
|
27
|
+
capacity: 1,
|
|
28
|
+
interval: 30,
|
|
29
|
+
openingHours: {
|
|
30
|
+
0: [],
|
|
31
|
+
// Sunday
|
|
32
|
+
1: [{ start: "09:00", end: "17:00" }],
|
|
33
|
+
// Monday
|
|
34
|
+
2: [{ start: "09:00", end: "17:00" }],
|
|
35
|
+
// Tuesday
|
|
36
|
+
3: [{ start: "09:00", end: "17:00" }],
|
|
37
|
+
// Wednesday
|
|
38
|
+
4: [{ start: "09:00", end: "17:00" }],
|
|
39
|
+
// Thursday
|
|
40
|
+
5: [{ start: "09:00", end: "17:00" }],
|
|
41
|
+
// Friday
|
|
42
|
+
6: []
|
|
43
|
+
// Saturday
|
|
44
|
+
},
|
|
45
|
+
color: "blue",
|
|
46
|
+
isActive: !0
|
|
47
|
+
}), z = (c) => {
|
|
48
|
+
y.value = c ? "edit" : "add", s.id = c?.id || "", s.name = c?.name || "", s.publicLabel = c?.publicLabel || "", s.avatarLabel = c?.avatarLabel || "", s.description = c?.description || "", s.capacity = c?.capacity || 1, s.interval = c?.interval || 30, s.openingHours = c?.openingHours || {
|
|
49
|
+
0: [],
|
|
50
|
+
1: [{ start: "09:00", end: "17:00" }],
|
|
51
|
+
2: [{ start: "09:00", end: "17:00" }],
|
|
52
|
+
3: [{ start: "09:00", end: "17:00" }],
|
|
53
|
+
4: [{ start: "09:00", end: "17:00" }],
|
|
54
|
+
5: [{ start: "09:00", end: "17:00" }],
|
|
55
|
+
6: []
|
|
56
|
+
}, s.color = c?.color || "blue", s.isActive = c?.isActive !== void 0 ? c.isActive : !0, x.value = !0;
|
|
57
|
+
}, A = () => {
|
|
58
|
+
x.value = !1;
|
|
59
|
+
}, U = () => {
|
|
60
|
+
M("add-resource", { ...s }), x.value = !1;
|
|
61
|
+
}, q = () => {
|
|
62
|
+
M("update-resource", { ...s }), x.value = !1;
|
|
63
|
+
}, D = () => {
|
|
64
|
+
M("remove-resource", s.id), x.value = !1;
|
|
65
|
+
}, N = O(() => s.name.trim().length > 0), P = (c) => {
|
|
66
|
+
s.openingHours[c] || (s.openingHours[c] = []), s.openingHours[c].push({ start: "09:00", end: "17:00" });
|
|
67
|
+
}, T = (c, e) => {
|
|
68
|
+
s.openingHours[c].splice(e, 1);
|
|
69
|
+
}, W = (c) => {
|
|
70
|
+
const e = s.openingHours[c];
|
|
71
|
+
R.forEach((V) => {
|
|
72
|
+
s.openingHours[V.value] = JSON.parse(JSON.stringify(e));
|
|
73
|
+
});
|
|
74
|
+
}, Q = (c) => {
|
|
75
|
+
s.openingHours[c] = [];
|
|
76
|
+
};
|
|
77
|
+
return J({
|
|
78
|
+
openDialog: z
|
|
79
|
+
}), (c, e) => {
|
|
80
|
+
const V = a("DialogTitle"), G = a("DialogDescription"), H = a("DialogHeader"), i = a("Label"), l = a("Input"), b = a("NumberFieldDecrement"), K = a("NumberFieldInput"), X = a("NumberFieldIncrement"), L = a("NumberFieldContent"), Z = a("NumberField"), ee = a("SelectValue"), te = a("SelectTrigger"), h = a("SelectItem"), oe = a("SelectContent"), F = a("Select"), _ = a("Button"), ne = a("DropdownMenuTrigger"), B = a("DropdownMenuItem"), le = a("DropdownMenuContent"), se = a("DropdownMenu"), ae = a("Textarea"), u = a("Switch"), $ = a("DialogFooter"), ve = a("DialogScrollContent"), ge = a("Dialog");
|
|
81
|
+
return m(), C(ge, {
|
|
82
|
+
open: x.value,
|
|
83
|
+
"onUpdate:open": e[7] || (e[7] = (d) => x.value = d)
|
|
84
|
+
}, {
|
|
85
|
+
default: n(() => [
|
|
86
|
+
t(ve, { class: "sm:max-w-xl lg:max-w-2xl" }, {
|
|
87
|
+
default: n(() => [
|
|
88
|
+
t(H, null, {
|
|
89
|
+
default: n(() => [
|
|
90
|
+
t(V, null, {
|
|
91
|
+
default: n(() => [
|
|
92
|
+
r(v(y.value === "add" ? "Add New Resource" : "Edit Resource"), 1)
|
|
93
|
+
]),
|
|
94
|
+
_: 1
|
|
95
|
+
}),
|
|
96
|
+
t(G, null, {
|
|
97
|
+
default: n(() => [
|
|
98
|
+
r(v(y.value === "add" ? "Define a new bookable resource such as staff member, room, or equipment." : "Update the details of this resource."), 1)
|
|
99
|
+
]),
|
|
100
|
+
_: 1
|
|
101
|
+
})
|
|
102
|
+
]),
|
|
103
|
+
_: 1
|
|
104
|
+
}),
|
|
105
|
+
o("div", Ae, [
|
|
106
|
+
o("div", null, [
|
|
107
|
+
t(i, {
|
|
108
|
+
class: "text-sm font-normal mb-1.5",
|
|
109
|
+
for: "resource-name"
|
|
110
|
+
}, {
|
|
111
|
+
default: n(() => [...e[8] || (e[8] = [
|
|
112
|
+
r(" Resource Name ", -1),
|
|
113
|
+
o("span", { class: "text-destructive" }, "*", -1)
|
|
114
|
+
])]),
|
|
115
|
+
_: 1
|
|
116
|
+
}),
|
|
117
|
+
t(l, {
|
|
118
|
+
modelValue: s.name,
|
|
119
|
+
"onUpdate:modelValue": e[0] || (e[0] = (d) => s.name = d),
|
|
120
|
+
id: "resource-name",
|
|
121
|
+
placeholder: "e.g., James, Box 1, Meeting Room A"
|
|
122
|
+
}, null, 8, ["modelValue"]),
|
|
123
|
+
e[9] || (e[9] = o("p", { class: "text-xs text-muted-foreground mt-1" }, " Internal name visible to your team. ", -1))
|
|
124
|
+
]),
|
|
125
|
+
o("div", null, [
|
|
126
|
+
t(i, {
|
|
127
|
+
class: "text-sm font-normal mb-1.5",
|
|
128
|
+
for: "resource-public-label"
|
|
129
|
+
}, {
|
|
130
|
+
default: n(() => [...e[10] || (e[10] = [
|
|
131
|
+
r(" Public Label ", -1)
|
|
132
|
+
])]),
|
|
133
|
+
_: 1
|
|
134
|
+
}),
|
|
135
|
+
t(l, {
|
|
136
|
+
modelValue: s.publicLabel,
|
|
137
|
+
"onUpdate:modelValue": e[1] || (e[1] = (d) => s.publicLabel = d),
|
|
138
|
+
id: "resource-public-label",
|
|
139
|
+
placeholder: "Name shown to customers"
|
|
140
|
+
}, null, 8, ["modelValue"]),
|
|
141
|
+
e[11] || (e[11] = o("p", { class: "text-xs text-muted-foreground mt-1" }, " If empty, the internal name will be displayed to customers. ", -1))
|
|
142
|
+
]),
|
|
143
|
+
o("div", null, [
|
|
144
|
+
t(i, {
|
|
145
|
+
class: "text-sm font-normal mb-1.5",
|
|
146
|
+
for: "resource-avatar-label"
|
|
147
|
+
}, {
|
|
148
|
+
default: n(() => [...e[12] || (e[12] = [
|
|
149
|
+
r(" Avatar Label ", -1)
|
|
150
|
+
])]),
|
|
151
|
+
_: 1
|
|
152
|
+
}),
|
|
153
|
+
t(l, {
|
|
154
|
+
modelValue: s.avatarLabel,
|
|
155
|
+
"onUpdate:modelValue": e[2] || (e[2] = (d) => s.avatarLabel = d),
|
|
156
|
+
id: "resource-avatar-label",
|
|
157
|
+
placeholder: "e.g., B1, 1, JD",
|
|
158
|
+
maxlength: "3"
|
|
159
|
+
}, null, 8, ["modelValue"]),
|
|
160
|
+
e[13] || (e[13] = o("p", { class: "text-xs text-muted-foreground mt-1" }, " Short text shown in the colored circle (max 3 characters). If empty, first letter of name is used. ", -1))
|
|
161
|
+
]),
|
|
162
|
+
o("div", null, [
|
|
163
|
+
t(i, { class: "text-sm font-normal mb-1.5" }, {
|
|
164
|
+
default: n(() => [...e[14] || (e[14] = [
|
|
165
|
+
r("Color", -1)
|
|
166
|
+
])]),
|
|
167
|
+
_: 1
|
|
168
|
+
}),
|
|
169
|
+
o("div", Me, [
|
|
170
|
+
(m(), f(E, null, Y(p, (d) => o("button", {
|
|
171
|
+
key: d,
|
|
172
|
+
type: "button",
|
|
173
|
+
class: me(["size-7 rounded-full transition-all ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2", [
|
|
174
|
+
s.color === d ? "ring-2 ring-ring ring-offset-2" : "hover:scale-110"
|
|
175
|
+
]]),
|
|
176
|
+
style: ie({ background: d }),
|
|
177
|
+
onClick: (k) => s.color = d
|
|
178
|
+
}, null, 14, ze)), 64))
|
|
179
|
+
]),
|
|
180
|
+
e[15] || (e[15] = o("p", { class: "text-xs text-muted-foreground mt-2" }, " Used for visual identification in the calendar. ", -1))
|
|
181
|
+
]),
|
|
182
|
+
o("div", null, [
|
|
183
|
+
t(i, {
|
|
184
|
+
class: "text-sm font-normal mb-1.5",
|
|
185
|
+
for: "resource-capacity"
|
|
186
|
+
}, {
|
|
187
|
+
default: n(() => [...e[16] || (e[16] = [
|
|
188
|
+
r(" Capacity ", -1)
|
|
189
|
+
])]),
|
|
190
|
+
_: 1
|
|
191
|
+
}),
|
|
192
|
+
t(Z, {
|
|
193
|
+
id: "resource-capacity",
|
|
194
|
+
modelValue: s.capacity,
|
|
195
|
+
"onUpdate:modelValue": e[3] || (e[3] = (d) => s.capacity = d),
|
|
196
|
+
min: 1,
|
|
197
|
+
max: 999
|
|
198
|
+
}, {
|
|
199
|
+
default: n(() => [
|
|
200
|
+
t(L, null, {
|
|
201
|
+
default: n(() => [
|
|
202
|
+
t(b),
|
|
203
|
+
t(K),
|
|
204
|
+
t(X)
|
|
205
|
+
]),
|
|
206
|
+
_: 1
|
|
207
|
+
})
|
|
208
|
+
]),
|
|
209
|
+
_: 1
|
|
210
|
+
}, 8, ["modelValue"]),
|
|
211
|
+
e[17] || (e[17] = o("p", { class: "text-xs text-muted-foreground mt-1" }, " Maximum simultaneous bookings allowed for this resource. ", -1))
|
|
212
|
+
]),
|
|
213
|
+
o("div", null, [
|
|
214
|
+
t(i, {
|
|
215
|
+
class: "text-sm font-normal mb-1.5",
|
|
216
|
+
for: "resource-interval"
|
|
217
|
+
}, {
|
|
218
|
+
default: n(() => [...e[18] || (e[18] = [
|
|
219
|
+
r(" Booking Interval ", -1)
|
|
220
|
+
])]),
|
|
221
|
+
_: 1
|
|
222
|
+
}),
|
|
223
|
+
t(F, {
|
|
224
|
+
modelValue: s.interval,
|
|
225
|
+
"onUpdate:modelValue": e[4] || (e[4] = (d) => s.interval = d),
|
|
226
|
+
modelModifiers: { number: !0 }
|
|
227
|
+
}, {
|
|
228
|
+
default: n(() => [
|
|
229
|
+
t(te, { id: "resource-interval" }, {
|
|
230
|
+
default: n(() => [
|
|
231
|
+
t(ee, { placeholder: "Select interval" })
|
|
232
|
+
]),
|
|
233
|
+
_: 1
|
|
234
|
+
}),
|
|
235
|
+
t(oe, null, {
|
|
236
|
+
default: n(() => [
|
|
237
|
+
t(h, { value: 5 }, {
|
|
238
|
+
default: n(() => [...e[19] || (e[19] = [
|
|
239
|
+
r("5 minutes", -1)
|
|
240
|
+
])]),
|
|
241
|
+
_: 1
|
|
242
|
+
}),
|
|
243
|
+
t(h, { value: 10 }, {
|
|
244
|
+
default: n(() => [...e[20] || (e[20] = [
|
|
245
|
+
r("10 minutes", -1)
|
|
246
|
+
])]),
|
|
247
|
+
_: 1
|
|
248
|
+
}),
|
|
249
|
+
t(h, { value: 15 }, {
|
|
250
|
+
default: n(() => [...e[21] || (e[21] = [
|
|
251
|
+
r("15 minutes", -1)
|
|
252
|
+
])]),
|
|
253
|
+
_: 1
|
|
254
|
+
}),
|
|
255
|
+
t(h, { value: 30 }, {
|
|
256
|
+
default: n(() => [...e[22] || (e[22] = [
|
|
257
|
+
r("30 minutes", -1)
|
|
258
|
+
])]),
|
|
259
|
+
_: 1
|
|
260
|
+
}),
|
|
261
|
+
t(h, { value: 60 }, {
|
|
262
|
+
default: n(() => [...e[23] || (e[23] = [
|
|
263
|
+
r("1 hour", -1)
|
|
264
|
+
])]),
|
|
265
|
+
_: 1
|
|
266
|
+
})
|
|
267
|
+
]),
|
|
268
|
+
_: 1
|
|
269
|
+
})
|
|
270
|
+
]),
|
|
271
|
+
_: 1
|
|
272
|
+
}, 8, ["modelValue"]),
|
|
273
|
+
e[24] || (e[24] = o("p", { class: "text-xs text-muted-foreground mt-1" }, " Time slots will be generated at this interval within operating hours. ", -1))
|
|
274
|
+
]),
|
|
275
|
+
o("div", null, [
|
|
276
|
+
t(i, { class: "text-sm font-normal mb-2 flex items-center gap-2" }, {
|
|
277
|
+
default: n(() => [
|
|
278
|
+
t(g(_e), { class: "w-4 h-4" }),
|
|
279
|
+
e[25] || (e[25] = r(" Operating Hours ", -1))
|
|
280
|
+
]),
|
|
281
|
+
_: 1
|
|
282
|
+
}),
|
|
283
|
+
o("div", Le, [
|
|
284
|
+
(m(), f(E, null, Y(R, (d) => o("div", {
|
|
285
|
+
key: d.value,
|
|
286
|
+
class: "rounded-md bg-muted/30 p-2 sm:p-3"
|
|
287
|
+
}, [
|
|
288
|
+
o("div", $e, [
|
|
289
|
+
o("span", Ee, v(d.label), 1),
|
|
290
|
+
o("div", Ie, [
|
|
291
|
+
t(_, {
|
|
292
|
+
variant: "outline",
|
|
293
|
+
size: "sm",
|
|
294
|
+
class: "h-7 px-2 text-xs",
|
|
295
|
+
onClick: (k) => P(d.value)
|
|
296
|
+
}, {
|
|
297
|
+
default: n(() => [...e[26] || (e[26] = [
|
|
298
|
+
r(" Add ", -1)
|
|
299
|
+
])]),
|
|
300
|
+
_: 1
|
|
301
|
+
}, 8, ["onClick"]),
|
|
302
|
+
t(se, null, {
|
|
303
|
+
default: n(() => [
|
|
304
|
+
t(ne, { "as-child": "" }, {
|
|
305
|
+
default: n(() => [
|
|
306
|
+
t(_, {
|
|
307
|
+
variant: "ghost",
|
|
308
|
+
size: "icon",
|
|
309
|
+
class: "size-7"
|
|
310
|
+
}, {
|
|
311
|
+
default: n(() => [
|
|
312
|
+
t(g(we), { class: "w-4 h-4" })
|
|
313
|
+
]),
|
|
314
|
+
_: 1
|
|
315
|
+
})
|
|
316
|
+
]),
|
|
317
|
+
_: 1
|
|
318
|
+
}),
|
|
319
|
+
t(le, { align: "end" }, {
|
|
320
|
+
default: n(() => [
|
|
321
|
+
t(B, {
|
|
322
|
+
onClick: (k) => W(d.value)
|
|
323
|
+
}, {
|
|
324
|
+
default: n(() => [...e[27] || (e[27] = [
|
|
325
|
+
r(" Copy to all days ", -1)
|
|
326
|
+
])]),
|
|
327
|
+
_: 1
|
|
328
|
+
}, 8, ["onClick"]),
|
|
329
|
+
t(B, {
|
|
330
|
+
onClick: (k) => Q(d.value),
|
|
331
|
+
variant: "destructive"
|
|
332
|
+
}, {
|
|
333
|
+
default: n(() => [...e[28] || (e[28] = [
|
|
334
|
+
r(" Set as closed ", -1)
|
|
335
|
+
])]),
|
|
336
|
+
_: 1
|
|
337
|
+
}, 8, ["onClick"])
|
|
338
|
+
]),
|
|
339
|
+
_: 2
|
|
340
|
+
}, 1024)
|
|
341
|
+
]),
|
|
342
|
+
_: 2
|
|
343
|
+
}, 1024)
|
|
344
|
+
])
|
|
345
|
+
]),
|
|
346
|
+
o("div", Ue, [
|
|
347
|
+
s.openingHours[d.value]?.length === 0 ? (m(), f("div", Ne, " Closed ")) : w("", !0),
|
|
348
|
+
(m(!0), f(E, null, Y(s.openingHours[d.value], (k, re) => (m(), f("div", {
|
|
349
|
+
key: re,
|
|
350
|
+
class: "flex items-center gap-1.5 sm:gap-2"
|
|
351
|
+
}, [
|
|
352
|
+
t(l, {
|
|
353
|
+
modelValue: k.start,
|
|
354
|
+
"onUpdate:modelValue": (j) => k.start = j,
|
|
355
|
+
type: "time",
|
|
356
|
+
class: "flex-1 min-w-0 h-8 text-sm"
|
|
357
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
358
|
+
e[29] || (e[29] = o("span", { class: "text-muted-foreground text-xs sm:text-sm shrink-0" }, "to", -1)),
|
|
359
|
+
t(l, {
|
|
360
|
+
modelValue: k.end,
|
|
361
|
+
"onUpdate:modelValue": (j) => k.end = j,
|
|
362
|
+
type: "time",
|
|
363
|
+
class: "flex-1 min-w-0 h-8 text-sm"
|
|
364
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
365
|
+
t(_, {
|
|
366
|
+
variant: "ghost",
|
|
367
|
+
size: "icon",
|
|
368
|
+
class: "size-7 shrink-0",
|
|
369
|
+
onClick: (j) => T(d.value, re)
|
|
370
|
+
}, {
|
|
371
|
+
default: n(() => [
|
|
372
|
+
t(g(pe), { class: "w-3.5 h-3.5 text-destructive" })
|
|
373
|
+
]),
|
|
374
|
+
_: 1
|
|
375
|
+
}, 8, ["onClick"])
|
|
376
|
+
]))), 128))
|
|
377
|
+
])
|
|
378
|
+
])), 64))
|
|
379
|
+
]),
|
|
380
|
+
e[30] || (e[30] = o("p", { class: "text-xs text-muted-foreground mt-2" }, " Define when this resource is available. You can add multiple time ranges per day for split shifts. ", -1))
|
|
381
|
+
]),
|
|
382
|
+
o("div", null, [
|
|
383
|
+
t(i, {
|
|
384
|
+
class: "text-sm font-normal mb-1.5",
|
|
385
|
+
for: "resource-description"
|
|
386
|
+
}, {
|
|
387
|
+
default: n(() => [...e[31] || (e[31] = [
|
|
388
|
+
r(" Description ", -1)
|
|
389
|
+
])]),
|
|
390
|
+
_: 1
|
|
391
|
+
}),
|
|
392
|
+
t(ae, {
|
|
393
|
+
modelValue: s.description,
|
|
394
|
+
"onUpdate:modelValue": e[5] || (e[5] = (d) => s.description = d),
|
|
395
|
+
id: "resource-description",
|
|
396
|
+
placeholder: "Internal notes about this resource...",
|
|
397
|
+
rows: "3"
|
|
398
|
+
}, null, 8, ["modelValue"]),
|
|
399
|
+
e[32] || (e[32] = o("p", { class: "text-xs text-muted-foreground mt-1" }, " Admin-only notes. Not shown to customers. ", -1))
|
|
400
|
+
]),
|
|
401
|
+
o("div", Te, [
|
|
402
|
+
o("div", He, [
|
|
403
|
+
t(i, { class: "text-sm font-medium" }, {
|
|
404
|
+
default: n(() => [...e[33] || (e[33] = [
|
|
405
|
+
r("Active", -1)
|
|
406
|
+
])]),
|
|
407
|
+
_: 1
|
|
408
|
+
}),
|
|
409
|
+
o("p", Fe, v(s.isActive ? "Resource can be used for new slots and bookings." : "Existing bookings stay, but no new ones can be created."), 1)
|
|
410
|
+
]),
|
|
411
|
+
t(u, {
|
|
412
|
+
modelValue: s.isActive,
|
|
413
|
+
"onUpdate:modelValue": e[6] || (e[6] = (d) => s.isActive = d)
|
|
414
|
+
}, null, 8, ["modelValue"])
|
|
415
|
+
])
|
|
416
|
+
]),
|
|
417
|
+
t($, { class: "@container/dialog-footer gap-2" }, {
|
|
418
|
+
default: n(() => [
|
|
419
|
+
o("div", Be, [
|
|
420
|
+
y.value === "edit" ? (m(), C(_, {
|
|
421
|
+
key: 0,
|
|
422
|
+
variant: "destructive",
|
|
423
|
+
onClick: D,
|
|
424
|
+
class: "w-full @sm/dialog-footer:w-auto"
|
|
425
|
+
}, {
|
|
426
|
+
default: n(() => [...e[34] || (e[34] = [
|
|
427
|
+
r(" Delete Resource ", -1)
|
|
428
|
+
])]),
|
|
429
|
+
_: 1
|
|
430
|
+
})) : w("", !0),
|
|
431
|
+
o("div", je, [
|
|
432
|
+
t(_, {
|
|
433
|
+
variant: "outline",
|
|
434
|
+
onClick: A,
|
|
435
|
+
class: "w-full @sm/dialog-footer:w-auto"
|
|
436
|
+
}, {
|
|
437
|
+
default: n(() => [...e[35] || (e[35] = [
|
|
438
|
+
r(" Cancel ", -1)
|
|
439
|
+
])]),
|
|
440
|
+
_: 1
|
|
441
|
+
}),
|
|
442
|
+
y.value === "add" ? (m(), C(_, {
|
|
443
|
+
key: 0,
|
|
444
|
+
onClick: U,
|
|
445
|
+
disabled: !N.value,
|
|
446
|
+
class: "w-full @sm/dialog-footer:w-auto"
|
|
447
|
+
}, {
|
|
448
|
+
default: n(() => [...e[36] || (e[36] = [
|
|
449
|
+
r(" Add Resource ", -1)
|
|
450
|
+
])]),
|
|
451
|
+
_: 1
|
|
452
|
+
}, 8, ["disabled"])) : (m(), C(_, {
|
|
453
|
+
key: 1,
|
|
454
|
+
onClick: q,
|
|
455
|
+
disabled: !N.value,
|
|
456
|
+
class: "w-full @sm/dialog-footer:w-auto"
|
|
457
|
+
}, {
|
|
458
|
+
default: n(() => [...e[37] || (e[37] = [
|
|
459
|
+
r(" Save Changes ", -1)
|
|
460
|
+
])]),
|
|
461
|
+
_: 1
|
|
462
|
+
}, 8, ["disabled"]))
|
|
463
|
+
])
|
|
464
|
+
])
|
|
465
|
+
]),
|
|
466
|
+
_: 1
|
|
467
|
+
})
|
|
468
|
+
]),
|
|
469
|
+
_: 1
|
|
470
|
+
})
|
|
471
|
+
]),
|
|
472
|
+
_: 1
|
|
473
|
+
}, 8, ["open"]);
|
|
474
|
+
};
|
|
475
|
+
}
|
|
476
|
+
}), Ye = { class: "@container/resources" }, Je = { class: "flex flex-col @lg/resources:flex-row @lg/resources:items-center @lg/resources:justify-between gap-4 mb-6" }, qe = { class: "space-y-6" }, Pe = {
|
|
477
|
+
key: 0,
|
|
478
|
+
class: "flex flex-col @md/resources:flex-row gap-4 items-start @md/resources:items-center justify-between"
|
|
479
|
+
}, We = { class: "relative w-full @md/resources:w-64" }, Qe = { class: "text-sm text-muted-foreground" }, Ge = {
|
|
480
|
+
key: 1,
|
|
481
|
+
class: "grid grid-cols-1 @2xl/resources:grid-cols-2 @4xl/resources:grid-cols-3 gap-4"
|
|
482
|
+
}, Ke = { class: "p-4 pl-5" }, Xe = { class: "flex items-start gap-3" }, Ze = { class: "flex-1 min-w-0" }, et = { class: "flex items-center gap-2" }, tt = { class: "font-semibold truncate text-base" }, ot = { key: 0 }, nt = {
|
|
483
|
+
key: 0,
|
|
484
|
+
class: "text-sm text-muted-foreground truncate"
|
|
485
|
+
}, lt = {
|
|
486
|
+
key: 0,
|
|
487
|
+
class: "text-sm text-muted-foreground mt-3 line-clamp-2"
|
|
488
|
+
}, st = { class: "flex items-center flex-wrap gap-3 mt-4 pt-3 border-t" }, at = { class: "flex items-center gap-1.5 text-xs text-muted-foreground" }, it = { class: "flex items-center gap-1.5 text-xs text-muted-foreground" }, rt = { class: "flex items-center gap-2" }, dt = { class: "text-xs text-muted-foreground" }, ut = {
|
|
489
|
+
key: 1,
|
|
490
|
+
class: "flex items-center gap-1.5 text-xs text-orange-500"
|
|
491
|
+
}, ct = {
|
|
492
|
+
key: 2,
|
|
493
|
+
class: "text-center py-8 text-muted-foreground"
|
|
494
|
+
}, mt = {
|
|
495
|
+
key: 3,
|
|
496
|
+
class: "flex justify-center py-12"
|
|
497
|
+
}, pt = {
|
|
498
|
+
key: 5,
|
|
499
|
+
class: "fixed bottom-4 right-4 bg-background border rounded-lg px-4 py-2 shadow-lg flex items-center gap-2"
|
|
500
|
+
}, _t = /* @__PURE__ */ ce({
|
|
501
|
+
__name: "resources",
|
|
502
|
+
setup(fe) {
|
|
503
|
+
const { width: J } = Re(), { params: I } = De(), { confirm: M } = Ve(), { config: x } = he(), y = Se(x.project), p = S([]), R = S(!1), s = S(!0), z = S(), A = S(""), U = () => Date.now().toString(36) + Math.random().toString(36).substr(2), q = async () => {
|
|
504
|
+
try {
|
|
505
|
+
s.value = !0;
|
|
506
|
+
const i = await y.get(x.agendaCollection, I.value.id);
|
|
507
|
+
p.value = i.resources || [];
|
|
508
|
+
} catch (i) {
|
|
509
|
+
console.error("Error loading resources:", i);
|
|
510
|
+
} finally {
|
|
511
|
+
s.value = !1;
|
|
512
|
+
}
|
|
513
|
+
}, D = async () => {
|
|
514
|
+
R.value = !0;
|
|
515
|
+
try {
|
|
516
|
+
await y.update(x.agendaCollection, I.value.id, {
|
|
517
|
+
resources: p.value
|
|
518
|
+
});
|
|
519
|
+
} catch (i) {
|
|
520
|
+
console.error("Error saving resources:", i);
|
|
521
|
+
} finally {
|
|
522
|
+
R.value = !1;
|
|
523
|
+
}
|
|
524
|
+
}, N = (i) => {
|
|
525
|
+
const l = {
|
|
526
|
+
...i,
|
|
527
|
+
id: U()
|
|
528
|
+
};
|
|
529
|
+
p.value.push(l), D();
|
|
530
|
+
}, P = (i) => {
|
|
531
|
+
const l = p.value.findIndex((b) => b.id === i.id);
|
|
532
|
+
l !== -1 && (p.value[l] = i), D();
|
|
533
|
+
}, T = async (i) => {
|
|
534
|
+
await M("Are you sure you want to delete this resource? This action cannot be undone.", "Delete Resource", "Delete") && (p.value = p.value.filter((b) => b.id !== i), D());
|
|
535
|
+
}, W = async (i) => {
|
|
536
|
+
const l = p.value.findIndex((b) => b.id === i.id);
|
|
537
|
+
l !== -1 && (p.value[l].isActive = !p.value[l].isActive, await D());
|
|
538
|
+
}, Q = (i) => {
|
|
539
|
+
const l = {
|
|
540
|
+
...i,
|
|
541
|
+
id: U(),
|
|
542
|
+
name: `${i.name} (Copy)`,
|
|
543
|
+
publicLabel: i.publicLabel ? `${i.publicLabel} (Copy)` : ""
|
|
544
|
+
};
|
|
545
|
+
p.value.push(l), D();
|
|
546
|
+
}, c = () => {
|
|
547
|
+
z.value?.openDialog();
|
|
548
|
+
}, e = (i) => {
|
|
549
|
+
z.value?.openDialog(i);
|
|
550
|
+
}, V = O(() => {
|
|
551
|
+
if (!A.value.trim())
|
|
552
|
+
return p.value;
|
|
553
|
+
const i = A.value.toLowerCase();
|
|
554
|
+
return p.value.filter(
|
|
555
|
+
(l) => l.name.toLowerCase().includes(i) || l.publicLabel?.toLowerCase().includes(i)
|
|
556
|
+
);
|
|
557
|
+
}), G = O(() => p.value.filter((i) => i.isActive).length), H = O(() => p.value.length);
|
|
558
|
+
return q(), (i, l) => {
|
|
559
|
+
const b = a("Button"), K = a("Input"), X = a("DropdownMenuTrigger"), L = a("DropdownMenuItem"), Z = a("DropdownMenuSeparator"), ee = a("DropdownMenuContent"), te = a("DropdownMenu"), h = a("Switch"), oe = a("Card"), F = a("Spinner"), _ = a("EmptyMedia"), ne = a("EmptyTitle"), B = a("EmptyDescription"), le = a("EmptyHeader"), se = a("EmptyContent"), ae = a("Empty");
|
|
560
|
+
return m(), C(be, null, {
|
|
561
|
+
default: n(() => [
|
|
562
|
+
o("div", Ye, [
|
|
563
|
+
o("div", Je, [
|
|
564
|
+
l[2] || (l[2] = o("div", null, [
|
|
565
|
+
o("h1", { class: "text-lg font-medium" }, "Resource Management"),
|
|
566
|
+
o("p", { class: "text-muted-foreground text-sm mt-1" }, " Define the rooms, boxes, or staff that can be booked in this agenda. ")
|
|
567
|
+
], -1)),
|
|
568
|
+
p.value.length > 0 ? (m(), C(b, {
|
|
569
|
+
key: 0,
|
|
570
|
+
onClick: c
|
|
571
|
+
}, {
|
|
572
|
+
default: n(() => [
|
|
573
|
+
t(g(de), { class: "size-4 mr-1.5" }),
|
|
574
|
+
l[1] || (l[1] = r(" Add Resource ", -1))
|
|
575
|
+
]),
|
|
576
|
+
_: 1
|
|
577
|
+
})) : w("", !0)
|
|
578
|
+
]),
|
|
579
|
+
o("div", qe, [
|
|
580
|
+
p.value.length > 0 ? (m(), f("div", Pe, [
|
|
581
|
+
o("div", We, [
|
|
582
|
+
t(K, {
|
|
583
|
+
modelValue: A.value,
|
|
584
|
+
"onUpdate:modelValue": l[0] || (l[0] = (u) => A.value = u),
|
|
585
|
+
placeholder: "Search resources...",
|
|
586
|
+
class: "pl-9"
|
|
587
|
+
}, null, 8, ["modelValue"]),
|
|
588
|
+
l[3] || (l[3] = o("svg", {
|
|
589
|
+
class: "absolute left-3 top-1/2 -translate-y-1/2 size-4 text-muted-foreground",
|
|
590
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
591
|
+
fill: "none",
|
|
592
|
+
viewBox: "0 0 24 24",
|
|
593
|
+
stroke: "currentColor"
|
|
594
|
+
}, [
|
|
595
|
+
o("path", {
|
|
596
|
+
"stroke-linecap": "round",
|
|
597
|
+
"stroke-linejoin": "round",
|
|
598
|
+
"stroke-width": "2",
|
|
599
|
+
d: "M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"
|
|
600
|
+
})
|
|
601
|
+
], -1))
|
|
602
|
+
]),
|
|
603
|
+
o("div", Qe, v(G.value) + " active of " + v(H.value) + " resource" + v(H.value !== 1 ? "s" : ""), 1)
|
|
604
|
+
])) : w("", !0),
|
|
605
|
+
V.value.length > 0 ? (m(), f("div", Ge, [
|
|
606
|
+
(m(!0), f(E, null, Y(V.value, (u) => (m(), C(oe, {
|
|
607
|
+
key: u.id,
|
|
608
|
+
class: me(["group relative overflow-hidden transition-all duration-200 hover:shadow-md", u.isActive ? "" : "opacity-60 grayscale-[30%]"])
|
|
609
|
+
}, {
|
|
610
|
+
default: n(() => [
|
|
611
|
+
o("div", {
|
|
612
|
+
class: "absolute inset-y-0 left-0 w-1 transition-all duration-200 group-hover:w-1.5",
|
|
613
|
+
style: ie({ background: u.color })
|
|
614
|
+
}, null, 4),
|
|
615
|
+
o("div", Ke, [
|
|
616
|
+
o("div", Xe, [
|
|
617
|
+
o("div", {
|
|
618
|
+
class: "size-11 rounded-xl flex-shrink-0 flex items-center justify-center text-white font-semibold text-sm shadow-sm",
|
|
619
|
+
style: ie({ background: u.color })
|
|
620
|
+
}, v(u.avatarLabel || u.name.charAt(0).toUpperCase()), 5),
|
|
621
|
+
o("div", Ze, [
|
|
622
|
+
o("div", et, [
|
|
623
|
+
o("h3", tt, [
|
|
624
|
+
r(v(u.name) + " ", 1),
|
|
625
|
+
u.isActive ? w("", !0) : (m(), f("span", ot, "(Inactive)"))
|
|
626
|
+
])
|
|
627
|
+
]),
|
|
628
|
+
u.publicLabel && u.publicLabel !== u.name ? (m(), f("p", nt, v(u.publicLabel), 1)) : w("", !0)
|
|
629
|
+
]),
|
|
630
|
+
t(te, null, {
|
|
631
|
+
default: n(() => [
|
|
632
|
+
t(X, { "as-child": "" }, {
|
|
633
|
+
default: n(() => [
|
|
634
|
+
t(b, {
|
|
635
|
+
variant: "ghost",
|
|
636
|
+
size: "icon",
|
|
637
|
+
class: "size-8"
|
|
638
|
+
}, {
|
|
639
|
+
default: n(() => [...l[4] || (l[4] = [
|
|
640
|
+
o("svg", {
|
|
641
|
+
class: "size-4",
|
|
642
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
643
|
+
fill: "none",
|
|
644
|
+
viewBox: "0 0 24 24",
|
|
645
|
+
stroke: "currentColor"
|
|
646
|
+
}, [
|
|
647
|
+
o("path", {
|
|
648
|
+
"stroke-linecap": "round",
|
|
649
|
+
"stroke-linejoin": "round",
|
|
650
|
+
"stroke-width": "2",
|
|
651
|
+
d: "M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"
|
|
652
|
+
})
|
|
653
|
+
], -1)
|
|
654
|
+
])]),
|
|
655
|
+
_: 1
|
|
656
|
+
})
|
|
657
|
+
]),
|
|
658
|
+
_: 1
|
|
659
|
+
}),
|
|
660
|
+
t(ee, { align: "end" }, {
|
|
661
|
+
default: n(() => [
|
|
662
|
+
t(L, {
|
|
663
|
+
onClick: ($) => e(u)
|
|
664
|
+
}, {
|
|
665
|
+
default: n(() => [
|
|
666
|
+
t(g(ye), { class: "size-4 mr-2" }),
|
|
667
|
+
l[5] || (l[5] = r(" Edit ", -1))
|
|
668
|
+
]),
|
|
669
|
+
_: 1
|
|
670
|
+
}, 8, ["onClick"]),
|
|
671
|
+
t(L, {
|
|
672
|
+
onClick: ($) => Q(u)
|
|
673
|
+
}, {
|
|
674
|
+
default: n(() => [
|
|
675
|
+
t(g(ke), { class: "size-4 mr-2" }),
|
|
676
|
+
l[6] || (l[6] = r(" Duplicate ", -1))
|
|
677
|
+
]),
|
|
678
|
+
_: 1
|
|
679
|
+
}, 8, ["onClick"]),
|
|
680
|
+
t(Z),
|
|
681
|
+
t(L, {
|
|
682
|
+
variant: "destructive",
|
|
683
|
+
onClick: ($) => T(u.id)
|
|
684
|
+
}, {
|
|
685
|
+
default: n(() => [
|
|
686
|
+
t(g(pe), { class: "size-4 mr-2" }),
|
|
687
|
+
l[7] || (l[7] = r(" Delete ", -1))
|
|
688
|
+
]),
|
|
689
|
+
_: 1
|
|
690
|
+
}, 8, ["onClick"])
|
|
691
|
+
]),
|
|
692
|
+
_: 2
|
|
693
|
+
}, 1024)
|
|
694
|
+
]),
|
|
695
|
+
_: 2
|
|
696
|
+
}, 1024)
|
|
697
|
+
]),
|
|
698
|
+
u.description ? (m(), f("p", lt, v(u.description), 1)) : w("", !0),
|
|
699
|
+
o("div", st, [
|
|
700
|
+
o("div", at, [
|
|
701
|
+
t(g(ue), { class: "size-3.5" }),
|
|
702
|
+
o("span", null, v(u.capacity) + " " + v(u.capacity === 1 ? "slot" : "slots"), 1)
|
|
703
|
+
]),
|
|
704
|
+
o("div", it, [
|
|
705
|
+
l[8] || (l[8] = o("svg", {
|
|
706
|
+
class: "size-3.5",
|
|
707
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
708
|
+
fill: "none",
|
|
709
|
+
viewBox: "0 0 24 24",
|
|
710
|
+
stroke: "currentColor"
|
|
711
|
+
}, [
|
|
712
|
+
o("path", {
|
|
713
|
+
"stroke-linecap": "round",
|
|
714
|
+
"stroke-linejoin": "round",
|
|
715
|
+
"stroke-width": "2",
|
|
716
|
+
d: "M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
717
|
+
})
|
|
718
|
+
], -1)),
|
|
719
|
+
o("span", null, v(u.interval) + " min", 1)
|
|
720
|
+
]),
|
|
721
|
+
g(J) >= 640 ? (m(), f(E, { key: 0 }, [
|
|
722
|
+
l[9] || (l[9] = o("div", { class: "flex-1" }, null, -1)),
|
|
723
|
+
o("div", rt, [
|
|
724
|
+
o("span", dt, v(u.isActive ? "Active" : "Inactive"), 1),
|
|
725
|
+
t(h, {
|
|
726
|
+
defaultValue: u.isActive,
|
|
727
|
+
"onUpdate:modelValue": ($) => W(u),
|
|
728
|
+
class: "scale-90"
|
|
729
|
+
}, null, 8, ["defaultValue", "onUpdate:modelValue"])
|
|
730
|
+
])
|
|
731
|
+
], 64)) : u.isActive ? w("", !0) : (m(), f("div", ut, [
|
|
732
|
+
t(g(Ce), { class: "size-3.5" }),
|
|
733
|
+
l[10] || (l[10] = o("span", null, "Inactive", -1))
|
|
734
|
+
]))
|
|
735
|
+
])
|
|
736
|
+
])
|
|
737
|
+
]),
|
|
738
|
+
_: 2
|
|
739
|
+
}, 1032, ["class"]))), 128))
|
|
740
|
+
])) : p.value.length > 0 && V.value.length === 0 ? (m(), f("div", ct, [...l[11] || (l[11] = [
|
|
741
|
+
o("p", null, "No resources match your search.", -1)
|
|
742
|
+
])])) : s.value ? (m(), f("div", mt, [
|
|
743
|
+
t(F, { class: "size-8" })
|
|
744
|
+
])) : (m(), C(ae, {
|
|
745
|
+
key: 4,
|
|
746
|
+
class: "border border-dashed"
|
|
747
|
+
}, {
|
|
748
|
+
default: n(() => [
|
|
749
|
+
t(le, null, {
|
|
750
|
+
default: n(() => [
|
|
751
|
+
t(_, { variant: "icon" }, {
|
|
752
|
+
default: n(() => [
|
|
753
|
+
t(g(ue), { class: "size-6" })
|
|
754
|
+
]),
|
|
755
|
+
_: 1
|
|
756
|
+
}),
|
|
757
|
+
t(ne, null, {
|
|
758
|
+
default: n(() => [...l[12] || (l[12] = [
|
|
759
|
+
r("No Resources Yet", -1)
|
|
760
|
+
])]),
|
|
761
|
+
_: 1
|
|
762
|
+
}),
|
|
763
|
+
t(B, null, {
|
|
764
|
+
default: n(() => [...l[13] || (l[13] = [
|
|
765
|
+
r(" You haven't added any bookable resources yet. Define your staff, rooms, or equipment to start configuring availability. ", -1)
|
|
766
|
+
])]),
|
|
767
|
+
_: 1
|
|
768
|
+
})
|
|
769
|
+
]),
|
|
770
|
+
_: 1
|
|
771
|
+
}),
|
|
772
|
+
t(se, null, {
|
|
773
|
+
default: n(() => [
|
|
774
|
+
t(b, {
|
|
775
|
+
variant: "outline",
|
|
776
|
+
onClick: c
|
|
777
|
+
}, {
|
|
778
|
+
default: n(() => [
|
|
779
|
+
t(g(de), { class: "size-4 mr-1.5" }),
|
|
780
|
+
l[14] || (l[14] = r(" Add Your First Resource ", -1))
|
|
781
|
+
]),
|
|
782
|
+
_: 1
|
|
783
|
+
})
|
|
784
|
+
]),
|
|
785
|
+
_: 1
|
|
786
|
+
})
|
|
787
|
+
]),
|
|
788
|
+
_: 1
|
|
789
|
+
})),
|
|
790
|
+
R.value ? (m(), f("div", pt, [
|
|
791
|
+
t(F, { class: "size-4" }),
|
|
792
|
+
l[15] || (l[15] = o("span", { class: "text-sm" }, "Saving...", -1))
|
|
793
|
+
])) : w("", !0)
|
|
794
|
+
])
|
|
795
|
+
]),
|
|
796
|
+
t(Oe, {
|
|
797
|
+
ref_key: "resourceDialogRef",
|
|
798
|
+
ref: z,
|
|
799
|
+
onAddResource: N,
|
|
800
|
+
onUpdateResource: P,
|
|
801
|
+
onRemoveResource: T
|
|
802
|
+
}, null, 512)
|
|
803
|
+
]),
|
|
804
|
+
_: 1
|
|
805
|
+
});
|
|
806
|
+
};
|
|
807
|
+
}
|
|
808
|
+
});
|
|
809
|
+
export {
|
|
810
|
+
_t as default
|
|
811
|
+
};
|