@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 +0,0 @@
|
|
|
1
|
-
require(`./chunk-DQi1bQcV.js`);const e=require(`./EditLayout-Bnz9q_jd.js`),t=require(`./core-_HKfBlaZ.js`);let n=require(`@oneclick.dev/cms-kit`),r=require(`vue`),i=require(`@lucide/vue`);var a={class:`space-y-5 py-4`},o={class:`flex flex-wrap gap-2 mt-2`},s=[`onClick`],c={class:`space-y-2`},l={class:`flex items-center justify-between mb-2`},u={class:`text-sm font-medium`},d={class:`flex items-center gap-1`},f={class:`space-y-2`},p={key:0,class:`text-sm text-muted-foreground italic py-1`},m={class:`flex items-center justify-between rounded-lg border p-4`},h={class:`space-y-0.5`},g={class:`text-xs text-muted-foreground`},_={class:`w-full flex justify-between items-center gap-4 flex-col @sm/dialog-footer:flex-row`},v={class:`flex items-center gap-2 ml-auto w-full @sm/dialog-footer:w-auto flex-col-reverse @sm/dialog-footer:flex-row`},y=(0,r.defineComponent)({__name:`ResourceEditorDialog`,emits:[`add-resource`,`update-resource`,`remove-resource`],setup(e,{expose:t,emit:n}){let y=n,b=(0,r.ref)(!1),x=(0,r.ref)(`add`),S=[`#ef4444`,`#f97316`,`#f59e0b`,`#eab308`,`#84cc16`,`#22c55e`,`#10b981`,`#14b8a6`,`#06b6d4`,`#0ea5e9`,`#3b82f6`,`#6366f1`,`#8b5cf6`,`#a855f7`,`#d946ef`,`#ec4899`,`#f43f5e`],C=[{value:1,label:`Monday`},{value:2,label:`Tuesday`},{value:3,label:`Wednesday`},{value:4,label:`Thursday`},{value:5,label:`Friday`},{value:6,label:`Saturday`},{value:0,label:`Sunday`}],w=(0,r.reactive)({id:``,name:``,publicLabel:``,avatarLabel:``,description:``,capacity:1,interval:30,openingHours:{0:[],1:[{start:`09:00`,end:`17:00`}],2:[{start:`09:00`,end:`17:00`}],3:[{start:`09:00`,end:`17:00`}],4:[{start:`09:00`,end:`17:00`}],5:[{start:`09:00`,end:`17:00`}],6:[]},color:`blue`,isActive:!0}),T=e=>{x.value=e?`edit`:`add`,w.id=e?.id||``,w.name=e?.name||``,w.publicLabel=e?.publicLabel||``,w.avatarLabel=e?.avatarLabel||``,w.description=e?.description||``,w.capacity=e?.capacity||1,w.interval=e?.interval||30,w.openingHours=e?.openingHours||{0:[],1:[{start:`09:00`,end:`17:00`}],2:[{start:`09:00`,end:`17:00`}],3:[{start:`09:00`,end:`17:00`}],4:[{start:`09:00`,end:`17:00`}],5:[{start:`09:00`,end:`17:00`}],6:[]},w.color=e?.color||`blue`,w.isActive=e?.isActive===void 0?!0:e.isActive,b.value=!0},E=()=>{b.value=!1},D=()=>{y(`add-resource`,{...w}),b.value=!1},O=()=>{y(`update-resource`,{...w}),b.value=!1},k=()=>{y(`remove-resource`,w.id),b.value=!1},A=(0,r.computed)(()=>w.name.trim().length>0),j=e=>{w.openingHours[e]||(w.openingHours[e]=[]),w.openingHours[e].push({start:`09:00`,end:`17:00`})},M=(e,t)=>{w.openingHours[e].splice(t,1)},ee=e=>{let t=w.openingHours[e];C.forEach(e=>{w.openingHours[e.value]=JSON.parse(JSON.stringify(t))})},te=e=>{w.openingHours[e]=[]};return t({openDialog:T}),(e,t)=>{let n=(0,r.resolveComponent)(`DialogTitle`),y=(0,r.resolveComponent)(`DialogDescription`),T=(0,r.resolveComponent)(`DialogHeader`),N=(0,r.resolveComponent)(`Label`),P=(0,r.resolveComponent)(`Input`),F=(0,r.resolveComponent)(`NumberFieldDecrement`),I=(0,r.resolveComponent)(`NumberFieldInput`),L=(0,r.resolveComponent)(`NumberFieldIncrement`),R=(0,r.resolveComponent)(`NumberFieldContent`),z=(0,r.resolveComponent)(`NumberField`),B=(0,r.resolveComponent)(`SelectValue`),V=(0,r.resolveComponent)(`SelectTrigger`),H=(0,r.resolveComponent)(`SelectItem`),U=(0,r.resolveComponent)(`SelectContent`),W=(0,r.resolveComponent)(`Select`),G=(0,r.resolveComponent)(`Button`),K=(0,r.resolveComponent)(`DropdownMenuTrigger`),q=(0,r.resolveComponent)(`DropdownMenuItem`),J=(0,r.resolveComponent)(`DropdownMenuContent`),Y=(0,r.resolveComponent)(`DropdownMenu`),X=(0,r.resolveComponent)(`Textarea`),Z=(0,r.resolveComponent)(`Switch`),Q=(0,r.resolveComponent)(`DialogFooter`),$=(0,r.resolveComponent)(`DialogScrollContent`),ne=(0,r.resolveComponent)(`Dialog`);return(0,r.openBlock)(),(0,r.createBlock)(ne,{open:b.value,"onUpdate:open":t[7]||=e=>b.value=e},{default:(0,r.withCtx)(()=>[(0,r.createVNode)($,{class:`sm:max-w-xl lg:max-w-2xl`},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(T,null,{default:(0,r.withCtx)(()=>[(0,r.createVNode)(n,null,{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(x.value===`add`?`Add New Resource`:`Edit Resource`),1)]),_:1}),(0,r.createVNode)(y,null,{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(x.value===`add`?`Define a new bookable resource such as staff member, room, or equipment.`:`Update the details of this resource.`),1)]),_:1})]),_:1}),(0,r.createElementVNode)(`div`,a,[(0,r.createElementVNode)(`div`,null,[(0,r.createVNode)(N,{class:`text-sm font-normal mb-1.5`,for:`resource-name`},{default:(0,r.withCtx)(()=>[...t[8]||=[(0,r.createTextVNode)(` Resource Name `,-1),(0,r.createElementVNode)(`span`,{class:`text-destructive`},`*`,-1)]]),_:1}),(0,r.createVNode)(P,{modelValue:w.name,"onUpdate:modelValue":t[0]||=e=>w.name=e,id:`resource-name`,placeholder:`e.g., James, Box 1, Meeting Room A`},null,8,[`modelValue`]),t[9]||=(0,r.createElementVNode)(`p`,{class:`text-xs text-muted-foreground mt-1`},` Internal name visible to your team. `,-1)]),(0,r.createElementVNode)(`div`,null,[(0,r.createVNode)(N,{class:`text-sm font-normal mb-1.5`,for:`resource-public-label`},{default:(0,r.withCtx)(()=>[...t[10]||=[(0,r.createTextVNode)(` Public Label `,-1)]]),_:1}),(0,r.createVNode)(P,{modelValue:w.publicLabel,"onUpdate:modelValue":t[1]||=e=>w.publicLabel=e,id:`resource-public-label`,placeholder:`Name shown to customers`},null,8,[`modelValue`]),t[11]||=(0,r.createElementVNode)(`p`,{class:`text-xs text-muted-foreground mt-1`},` If empty, the internal name will be displayed to customers. `,-1)]),(0,r.createElementVNode)(`div`,null,[(0,r.createVNode)(N,{class:`text-sm font-normal mb-1.5`,for:`resource-avatar-label`},{default:(0,r.withCtx)(()=>[...t[12]||=[(0,r.createTextVNode)(` Avatar Label `,-1)]]),_:1}),(0,r.createVNode)(P,{modelValue:w.avatarLabel,"onUpdate:modelValue":t[2]||=e=>w.avatarLabel=e,id:`resource-avatar-label`,placeholder:`e.g., B1, 1, JD`,maxlength:`3`},null,8,[`modelValue`]),t[13]||=(0,r.createElementVNode)(`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)]),(0,r.createElementVNode)(`div`,null,[(0,r.createVNode)(N,{class:`text-sm font-normal mb-1.5`},{default:(0,r.withCtx)(()=>[...t[14]||=[(0,r.createTextVNode)(`Color`,-1)]]),_:1}),(0,r.createElementVNode)(`div`,o,[((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(S,e=>(0,r.createElementVNode)(`button`,{key:e,type:`button`,class:(0,r.normalizeClass)([`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`,[w.color===e?`ring-2 ring-ring ring-offset-2`:`hover:scale-110`]]),style:(0,r.normalizeStyle)({background:e}),onClick:t=>w.color=e},null,14,s)),64))]),t[15]||=(0,r.createElementVNode)(`p`,{class:`text-xs text-muted-foreground mt-2`},` Used for visual identification in the calendar. `,-1)]),(0,r.createElementVNode)(`div`,null,[(0,r.createVNode)(N,{class:`text-sm font-normal mb-1.5`,for:`resource-capacity`},{default:(0,r.withCtx)(()=>[...t[16]||=[(0,r.createTextVNode)(` Capacity `,-1)]]),_:1}),(0,r.createVNode)(z,{id:`resource-capacity`,modelValue:w.capacity,"onUpdate:modelValue":t[3]||=e=>w.capacity=e,min:1,max:999},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(R,null,{default:(0,r.withCtx)(()=>[(0,r.createVNode)(F),(0,r.createVNode)(I),(0,r.createVNode)(L)]),_:1})]),_:1},8,[`modelValue`]),t[17]||=(0,r.createElementVNode)(`p`,{class:`text-xs text-muted-foreground mt-1`},` Maximum simultaneous bookings allowed for this resource. `,-1)]),(0,r.createElementVNode)(`div`,null,[(0,r.createVNode)(N,{class:`text-sm font-normal mb-1.5`,for:`resource-interval`},{default:(0,r.withCtx)(()=>[...t[18]||=[(0,r.createTextVNode)(` Booking Interval `,-1)]]),_:1}),(0,r.createVNode)(W,{modelValue:w.interval,"onUpdate:modelValue":t[4]||=e=>w.interval=e,modelModifiers:{number:!0}},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(V,{id:`resource-interval`},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(B,{placeholder:`Select interval`})]),_:1}),(0,r.createVNode)(U,null,{default:(0,r.withCtx)(()=>[(0,r.createVNode)(H,{value:5},{default:(0,r.withCtx)(()=>[...t[19]||=[(0,r.createTextVNode)(`5 minutes`,-1)]]),_:1}),(0,r.createVNode)(H,{value:10},{default:(0,r.withCtx)(()=>[...t[20]||=[(0,r.createTextVNode)(`10 minutes`,-1)]]),_:1}),(0,r.createVNode)(H,{value:15},{default:(0,r.withCtx)(()=>[...t[21]||=[(0,r.createTextVNode)(`15 minutes`,-1)]]),_:1}),(0,r.createVNode)(H,{value:30},{default:(0,r.withCtx)(()=>[...t[22]||=[(0,r.createTextVNode)(`30 minutes`,-1)]]),_:1}),(0,r.createVNode)(H,{value:60},{default:(0,r.withCtx)(()=>[...t[23]||=[(0,r.createTextVNode)(`1 hour`,-1)]]),_:1})]),_:1})]),_:1},8,[`modelValue`]),t[24]||=(0,r.createElementVNode)(`p`,{class:`text-xs text-muted-foreground mt-1`},` Time slots will be generated at this interval within operating hours. `,-1)]),(0,r.createElementVNode)(`div`,null,[(0,r.createVNode)(N,{class:`text-sm font-normal mb-2 flex items-center gap-2`},{default:(0,r.withCtx)(()=>[(0,r.createVNode)((0,r.unref)(i.Clock),{class:`w-4 h-4`}),t[25]||=(0,r.createTextVNode)(` Operating Hours `,-1)]),_:1}),(0,r.createElementVNode)(`div`,c,[((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(C,e=>(0,r.createElementVNode)(`div`,{key:e.value,class:`rounded-md bg-muted/30 p-2 sm:p-3`},[(0,r.createElementVNode)(`div`,l,[(0,r.createElementVNode)(`span`,u,(0,r.toDisplayString)(e.label),1),(0,r.createElementVNode)(`div`,d,[(0,r.createVNode)(G,{variant:`outline`,size:`sm`,class:`h-7 px-2 text-xs`,onClick:t=>j(e.value)},{default:(0,r.withCtx)(()=>[...t[26]||=[(0,r.createTextVNode)(` Add `,-1)]]),_:1},8,[`onClick`]),(0,r.createVNode)(Y,null,{default:(0,r.withCtx)(()=>[(0,r.createVNode)(K,{"as-child":``},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(G,{variant:`ghost`,size:`icon`,class:`size-7`},{default:(0,r.withCtx)(()=>[(0,r.createVNode)((0,r.unref)(i.MoreHorizontal),{class:`w-4 h-4`})]),_:1})]),_:1}),(0,r.createVNode)(J,{align:`end`},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(q,{onClick:t=>ee(e.value)},{default:(0,r.withCtx)(()=>[...t[27]||=[(0,r.createTextVNode)(` Copy to all days `,-1)]]),_:1},8,[`onClick`]),(0,r.createVNode)(q,{onClick:t=>te(e.value),variant:`destructive`},{default:(0,r.withCtx)(()=>[...t[28]||=[(0,r.createTextVNode)(` Set as closed `,-1)]]),_:1},8,[`onClick`])]),_:2},1024)]),_:2},1024)])]),(0,r.createElementVNode)(`div`,f,[w.openingHours[e.value]?.length===0?((0,r.openBlock)(),(0,r.createElementBlock)(`div`,p,` Closed `)):(0,r.createCommentVNode)(``,!0),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(w.openingHours[e.value],(n,a)=>((0,r.openBlock)(),(0,r.createElementBlock)(`div`,{key:a,class:`flex items-center gap-1.5 sm:gap-2`},[(0,r.createVNode)(P,{modelValue:n.start,"onUpdate:modelValue":e=>n.start=e,type:`time`,class:`flex-1 min-w-0 h-8 text-sm`},null,8,[`modelValue`,`onUpdate:modelValue`]),t[29]||=(0,r.createElementVNode)(`span`,{class:`text-muted-foreground text-xs sm:text-sm shrink-0`},`to`,-1),(0,r.createVNode)(P,{modelValue:n.end,"onUpdate:modelValue":e=>n.end=e,type:`time`,class:`flex-1 min-w-0 h-8 text-sm`},null,8,[`modelValue`,`onUpdate:modelValue`]),(0,r.createVNode)(G,{variant:`ghost`,size:`icon`,class:`size-7 shrink-0`,onClick:t=>M(e.value,a)},{default:(0,r.withCtx)(()=>[(0,r.createVNode)((0,r.unref)(i.Trash2),{class:`w-3.5 h-3.5 text-destructive`})]),_:1},8,[`onClick`])]))),128))])])),64))]),t[30]||=(0,r.createElementVNode)(`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)]),(0,r.createElementVNode)(`div`,null,[(0,r.createVNode)(N,{class:`text-sm font-normal mb-1.5`,for:`resource-description`},{default:(0,r.withCtx)(()=>[...t[31]||=[(0,r.createTextVNode)(` Description `,-1)]]),_:1}),(0,r.createVNode)(X,{modelValue:w.description,"onUpdate:modelValue":t[5]||=e=>w.description=e,id:`resource-description`,placeholder:`Internal notes about this resource...`,rows:`3`},null,8,[`modelValue`]),t[32]||=(0,r.createElementVNode)(`p`,{class:`text-xs text-muted-foreground mt-1`},` Admin-only notes. Not shown to customers. `,-1)]),(0,r.createElementVNode)(`div`,m,[(0,r.createElementVNode)(`div`,h,[(0,r.createVNode)(N,{class:`text-sm font-medium`},{default:(0,r.withCtx)(()=>[...t[33]||=[(0,r.createTextVNode)(`Active`,-1)]]),_:1}),(0,r.createElementVNode)(`p`,g,(0,r.toDisplayString)(w.isActive?`Resource can be used for new slots and bookings.`:`Existing bookings stay, but no new ones can be created.`),1)]),(0,r.createVNode)(Z,{modelValue:w.isActive,"onUpdate:modelValue":t[6]||=e=>w.isActive=e},null,8,[`modelValue`])])]),(0,r.createVNode)(Q,{class:`@container/dialog-footer gap-2`},{default:(0,r.withCtx)(()=>[(0,r.createElementVNode)(`div`,_,[x.value===`edit`?((0,r.openBlock)(),(0,r.createBlock)(G,{key:0,variant:`destructive`,onClick:k,class:`w-full @sm/dialog-footer:w-auto`},{default:(0,r.withCtx)(()=>[...t[34]||=[(0,r.createTextVNode)(` Delete Resource `,-1)]]),_:1})):(0,r.createCommentVNode)(``,!0),(0,r.createElementVNode)(`div`,v,[(0,r.createVNode)(G,{variant:`outline`,onClick:E,class:`w-full @sm/dialog-footer:w-auto`},{default:(0,r.withCtx)(()=>[...t[35]||=[(0,r.createTextVNode)(` Cancel `,-1)]]),_:1}),x.value===`add`?((0,r.openBlock)(),(0,r.createBlock)(G,{key:0,onClick:D,disabled:!A.value,class:`w-full @sm/dialog-footer:w-auto`},{default:(0,r.withCtx)(()=>[...t[36]||=[(0,r.createTextVNode)(` Add Resource `,-1)]]),_:1},8,[`disabled`])):((0,r.openBlock)(),(0,r.createBlock)(G,{key:1,onClick:O,disabled:!A.value,class:`w-full @sm/dialog-footer:w-auto`},{default:(0,r.withCtx)(()=>[...t[37]||=[(0,r.createTextVNode)(` Save Changes `,-1)]]),_:1},8,[`disabled`]))])])]),_:1})]),_:1})]),_:1},8,[`open`])}}}),b={class:`@container/resources`},x={class:`flex flex-col @lg/resources:flex-row @lg/resources:items-center @lg/resources:justify-between gap-4 mb-6`},S={class:`space-y-6`},C={key:0,class:`flex flex-col @md/resources:flex-row gap-4 items-start @md/resources:items-center justify-between`},w={class:`relative w-full @md/resources:w-64`},T={class:`text-sm text-muted-foreground`},E={key:1,class:`grid grid-cols-1 @2xl/resources:grid-cols-2 @4xl/resources:grid-cols-3 gap-4`},D={class:`p-4 pl-5`},O={class:`flex items-start gap-3`},k={class:`flex-1 min-w-0`},A={class:`flex items-center gap-2`},j={class:`font-semibold truncate text-base`},M={key:0},ee={key:0,class:`text-sm text-muted-foreground truncate`},te={key:0,class:`text-sm text-muted-foreground mt-3 line-clamp-2`},N={class:`flex items-center flex-wrap gap-3 mt-4 pt-3 border-t`},P={class:`flex items-center gap-1.5 text-xs text-muted-foreground`},F={class:`flex items-center gap-1.5 text-xs text-muted-foreground`},I={class:`flex items-center gap-2`},L={class:`text-xs text-muted-foreground`},R={key:1,class:`flex items-center gap-1.5 text-xs text-orange-500`},z={key:2,class:`text-center py-8 text-muted-foreground`},B={key:3,class:`flex justify-center py-12`},V={key:5,class:`fixed bottom-4 right-4 bg-background border rounded-lg px-4 py-2 shadow-lg flex items-center gap-2`},H=(0,r.defineComponent)({__name:`resources`,setup(a){let{width:o}=t.n(),{params:s}=(0,n.useModuleRoute)(),{confirm:c}=(0,n.useConfirmation)(),{config:l}=(0,n.useModule)(),u=(0,n.useFirebaseIntegration)(l.project),d=(0,r.ref)([]),f=(0,r.ref)(!1),p=(0,r.ref)(!0),m=(0,r.ref)(),h=(0,r.ref)(``),g=()=>Date.now().toString(36)+Math.random().toString(36).substr(2),_=async()=>{try{p.value=!0,d.value=(await u.get(l.agendaCollection,s.value.id)).resources||[]}catch(e){console.error(`Error loading resources:`,e)}finally{p.value=!1}},v=async()=>{f.value=!0;try{await u.update(l.agendaCollection,s.value.id,{resources:d.value})}catch(e){console.error(`Error saving resources:`,e)}finally{f.value=!1}},H=e=>{let t={...e,id:g()};d.value.push(t),v()},U=e=>{let t=d.value.findIndex(t=>t.id===e.id);t!==-1&&(d.value[t]=e),v()},W=async e=>{await c(`Are you sure you want to delete this resource? This action cannot be undone.`,`Delete Resource`,`Delete`)&&(d.value=d.value.filter(t=>t.id!==e),v())},G=async e=>{let t=d.value.findIndex(t=>t.id===e.id);t!==-1&&(d.value[t].isActive=!d.value[t].isActive,await v())},K=e=>{let t={...e,id:g(),name:`${e.name} (Copy)`,publicLabel:e.publicLabel?`${e.publicLabel} (Copy)`:``};d.value.push(t),v()},q=()=>{m.value?.openDialog()},J=e=>{m.value?.openDialog(e)},Y=(0,r.computed)(()=>{if(!h.value.trim())return d.value;let e=h.value.toLowerCase();return d.value.filter(t=>t.name.toLowerCase().includes(e)||t.publicLabel?.toLowerCase().includes(e))}),X=(0,r.computed)(()=>d.value.filter(e=>e.isActive).length),Z=(0,r.computed)(()=>d.value.length);return _(),(t,n)=>{let a=(0,r.resolveComponent)(`Button`),s=(0,r.resolveComponent)(`Input`),c=(0,r.resolveComponent)(`DropdownMenuTrigger`),l=(0,r.resolveComponent)(`DropdownMenuItem`),u=(0,r.resolveComponent)(`DropdownMenuSeparator`),g=(0,r.resolveComponent)(`DropdownMenuContent`),_=(0,r.resolveComponent)(`DropdownMenu`),v=(0,r.resolveComponent)(`Switch`),Q=(0,r.resolveComponent)(`Card`),$=(0,r.resolveComponent)(`Spinner`),ne=(0,r.resolveComponent)(`EmptyMedia`),re=(0,r.resolveComponent)(`EmptyTitle`),ie=(0,r.resolveComponent)(`EmptyDescription`),ae=(0,r.resolveComponent)(`EmptyHeader`),oe=(0,r.resolveComponent)(`EmptyContent`),se=(0,r.resolveComponent)(`Empty`);return(0,r.openBlock)(),(0,r.createBlock)(e.t,null,{default:(0,r.withCtx)(()=>[(0,r.createElementVNode)(`div`,b,[(0,r.createElementVNode)(`div`,x,[n[2]||=(0,r.createElementVNode)(`div`,null,[(0,r.createElementVNode)(`h1`,{class:`text-lg font-medium`},`Resource Management`),(0,r.createElementVNode)(`p`,{class:`text-muted-foreground text-sm mt-1`},` Define the rooms, boxes, or staff that can be booked in this agenda. `)],-1),d.value.length>0?((0,r.openBlock)(),(0,r.createBlock)(a,{key:0,onClick:q},{default:(0,r.withCtx)(()=>[(0,r.createVNode)((0,r.unref)(i.Plus),{class:`size-4 mr-1.5`}),n[1]||=(0,r.createTextVNode)(` Add Resource `,-1)]),_:1})):(0,r.createCommentVNode)(``,!0)]),(0,r.createElementVNode)(`div`,S,[d.value.length>0?((0,r.openBlock)(),(0,r.createElementBlock)(`div`,C,[(0,r.createElementVNode)(`div`,w,[(0,r.createVNode)(s,{modelValue:h.value,"onUpdate:modelValue":n[0]||=e=>h.value=e,placeholder:`Search resources...`,class:`pl-9`},null,8,[`modelValue`]),n[3]||=(0,r.createElementVNode)(`svg`,{class:`absolute left-3 top-1/2 -translate-y-1/2 size-4 text-muted-foreground`,xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,stroke:`currentColor`},[(0,r.createElementVNode)(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z`})],-1)]),(0,r.createElementVNode)(`div`,T,(0,r.toDisplayString)(X.value)+` active of `+(0,r.toDisplayString)(Z.value)+` resource`+(0,r.toDisplayString)(Z.value===1?``:`s`),1)])):(0,r.createCommentVNode)(``,!0),Y.value.length>0?((0,r.openBlock)(),(0,r.createElementBlock)(`div`,E,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(Y.value,e=>((0,r.openBlock)(),(0,r.createBlock)(Q,{key:e.id,class:(0,r.normalizeClass)([`group relative overflow-hidden transition-all duration-200 hover:shadow-md`,e.isActive?``:`opacity-60 grayscale-[30%]`])},{default:(0,r.withCtx)(()=>[(0,r.createElementVNode)(`div`,{class:`absolute inset-y-0 left-0 w-1 transition-all duration-200 group-hover:w-1.5`,style:(0,r.normalizeStyle)({background:e.color})},null,4),(0,r.createElementVNode)(`div`,D,[(0,r.createElementVNode)(`div`,O,[(0,r.createElementVNode)(`div`,{class:`size-11 rounded-xl flex-shrink-0 flex items-center justify-center text-white font-semibold text-sm shadow-sm`,style:(0,r.normalizeStyle)({background:e.color})},(0,r.toDisplayString)(e.avatarLabel||e.name.charAt(0).toUpperCase()),5),(0,r.createElementVNode)(`div`,k,[(0,r.createElementVNode)(`div`,A,[(0,r.createElementVNode)(`h3`,j,[(0,r.createTextVNode)((0,r.toDisplayString)(e.name)+` `,1),e.isActive?(0,r.createCommentVNode)(``,!0):((0,r.openBlock)(),(0,r.createElementBlock)(`span`,M,`(Inactive)`))])]),e.publicLabel&&e.publicLabel!==e.name?((0,r.openBlock)(),(0,r.createElementBlock)(`p`,ee,(0,r.toDisplayString)(e.publicLabel),1)):(0,r.createCommentVNode)(``,!0)]),(0,r.createVNode)(_,null,{default:(0,r.withCtx)(()=>[(0,r.createVNode)(c,{"as-child":``},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(a,{variant:`ghost`,size:`icon`,class:`size-8`},{default:(0,r.withCtx)(()=>[...n[4]||=[(0,r.createElementVNode)(`svg`,{class:`size-4`,xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,stroke:`currentColor`},[(0,r.createElementVNode)(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,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`})],-1)]]),_:1})]),_:1}),(0,r.createVNode)(g,{align:`end`},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(l,{onClick:t=>J(e)},{default:(0,r.withCtx)(()=>[(0,r.createVNode)((0,r.unref)(i.Pencil),{class:`size-4 mr-2`}),n[5]||=(0,r.createTextVNode)(` Edit `,-1)]),_:1},8,[`onClick`]),(0,r.createVNode)(l,{onClick:t=>K(e)},{default:(0,r.withCtx)(()=>[(0,r.createVNode)((0,r.unref)(i.Copy),{class:`size-4 mr-2`}),n[6]||=(0,r.createTextVNode)(` Duplicate `,-1)]),_:1},8,[`onClick`]),(0,r.createVNode)(u),(0,r.createVNode)(l,{variant:`destructive`,onClick:t=>W(e.id)},{default:(0,r.withCtx)(()=>[(0,r.createVNode)((0,r.unref)(i.Trash2),{class:`size-4 mr-2`}),n[7]||=(0,r.createTextVNode)(` Delete `,-1)]),_:1},8,[`onClick`])]),_:2},1024)]),_:2},1024)]),e.description?((0,r.openBlock)(),(0,r.createElementBlock)(`p`,te,(0,r.toDisplayString)(e.description),1)):(0,r.createCommentVNode)(``,!0),(0,r.createElementVNode)(`div`,N,[(0,r.createElementVNode)(`div`,P,[(0,r.createVNode)((0,r.unref)(i.Users),{class:`size-3.5`}),(0,r.createElementVNode)(`span`,null,(0,r.toDisplayString)(e.capacity)+` `+(0,r.toDisplayString)(e.capacity===1?`slot`:`slots`),1)]),(0,r.createElementVNode)(`div`,F,[n[8]||=(0,r.createElementVNode)(`svg`,{class:`size-3.5`,xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,stroke:`currentColor`},[(0,r.createElementVNode)(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z`})],-1),(0,r.createElementVNode)(`span`,null,(0,r.toDisplayString)(e.interval)+` min`,1)]),(0,r.unref)(o)>=640?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[n[9]||=(0,r.createElementVNode)(`div`,{class:`flex-1`},null,-1),(0,r.createElementVNode)(`div`,I,[(0,r.createElementVNode)(`span`,L,(0,r.toDisplayString)(e.isActive?`Active`:`Inactive`),1),(0,r.createVNode)(v,{defaultValue:e.isActive,"onUpdate:modelValue":t=>G(e),class:`scale-90`},null,8,[`defaultValue`,`onUpdate:modelValue`])])],64)):e.isActive?(0,r.createCommentVNode)(``,!0):((0,r.openBlock)(),(0,r.createElementBlock)(`div`,R,[(0,r.createVNode)((0,r.unref)(i.CircleAlert),{class:`size-3.5`}),n[10]||=(0,r.createElementVNode)(`span`,null,`Inactive`,-1)]))])])]),_:2},1032,[`class`]))),128))])):d.value.length>0&&Y.value.length===0?((0,r.openBlock)(),(0,r.createElementBlock)(`div`,z,[...n[11]||=[(0,r.createElementVNode)(`p`,null,`No resources match your search.`,-1)]])):p.value?((0,r.openBlock)(),(0,r.createElementBlock)(`div`,B,[(0,r.createVNode)($,{class:`size-8`})])):((0,r.openBlock)(),(0,r.createBlock)(se,{key:4,class:`border border-dashed`},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(ae,null,{default:(0,r.withCtx)(()=>[(0,r.createVNode)(ne,{variant:`icon`},{default:(0,r.withCtx)(()=>[(0,r.createVNode)((0,r.unref)(i.Users),{class:`size-6`})]),_:1}),(0,r.createVNode)(re,null,{default:(0,r.withCtx)(()=>[...n[12]||=[(0,r.createTextVNode)(`No Resources Yet`,-1)]]),_:1}),(0,r.createVNode)(ie,null,{default:(0,r.withCtx)(()=>[...n[13]||=[(0,r.createTextVNode)(` You haven't added any bookable resources yet. Define your staff, rooms, or equipment to start configuring availability. `,-1)]]),_:1})]),_:1}),(0,r.createVNode)(oe,null,{default:(0,r.withCtx)(()=>[(0,r.createVNode)(a,{variant:`outline`,onClick:q},{default:(0,r.withCtx)(()=>[(0,r.createVNode)((0,r.unref)(i.Plus),{class:`size-4 mr-1.5`}),n[14]||=(0,r.createTextVNode)(` Add Your First Resource `,-1)]),_:1})]),_:1})]),_:1})),f.value?((0,r.openBlock)(),(0,r.createElementBlock)(`div`,V,[(0,r.createVNode)($,{class:`size-4`}),n[15]||=(0,r.createElementVNode)(`span`,{class:`text-sm`},`Saving...`,-1)])):(0,r.createCommentVNode)(``,!0)])]),(0,r.createVNode)(y,{ref_key:`resourceDialogRef`,ref:m,onAddResource:H,onUpdateResource:U,onRemoveResource:W},null,512)]),_:1})}}});exports.default=H;
|
|
@@ -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/shippingOptions/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;
|
|
@@ -1,468 +0,0 @@
|
|
|
1
|
-
import { A as e, C as t, N as n, S as r, V as i, Z as a, _ as o, a as s, b as c, ct as l, f as u, i as d, j as f, k as p, lt as m, o as h, r as g, s as _, st as v, v as y, y as b } from "./context-AQKfnJ4t.mjs";
|
|
2
|
-
import { a as x, d as S, f as C, g as w, h as T, i as E, l as D, m as O, n as k, o as A, p as j, r as ee, s as M, t as N, u as P } from "./array-DnDL9cFz.mjs";
|
|
3
|
-
import { computed as F, createElementBlock as I, defineComponent as L, inject as R, nextTick as z, onMounted as B, onUnmounted as V, openBlock as H, provide as U, reactive as W, ref as G, renderSlot as K, toRaw as q, toRefs as J, watch as Y, watchEffect as X } from "vue";
|
|
4
|
-
//#region ../node_modules/.pnpm/@unovis+ts@1.6.5/node_modules/@unovis/ts/containers/single-container/config.js
|
|
5
|
-
var Z = Object.assign(Object.assign({}, e), {
|
|
6
|
-
tooltip: void 0,
|
|
7
|
-
annotations: void 0
|
|
8
|
-
}), Q = class extends p {
|
|
9
|
-
constructor(e, t, n) {
|
|
10
|
-
super(e), this._defaultConfig = Z, this.config = this._defaultConfig, t && (this.updateContainer(t, !0), this.component = t.component), n && this.setData(n, !0), this.component?.datamodel.data && this.render();
|
|
11
|
-
}
|
|
12
|
-
setData(e, t) {
|
|
13
|
-
var n;
|
|
14
|
-
let { config: r } = this;
|
|
15
|
-
this.component && this.component.setData(e), t || this.render(), (n = r.tooltip) == null || n.hide();
|
|
16
|
-
}
|
|
17
|
-
updateContainer(e, t) {
|
|
18
|
-
super.updateContainer(e), this._removeAllChildren(), this.component = e.component, e.sizing && (this.component.sizing = e.sizing), this.element.appendChild(this.component.element);
|
|
19
|
-
let n = e.tooltip;
|
|
20
|
-
n && (n.hasContainer() || n.setContainer(this._container), n.setComponents([this.component]));
|
|
21
|
-
let r = e.annotations;
|
|
22
|
-
r && this.element.appendChild(r.element), this.element.appendChild(this._svgDefs.node()), this.element.appendChild(this._svgDefsExternal.node()), t || this.render();
|
|
23
|
-
}
|
|
24
|
-
updateComponent(e, t) {
|
|
25
|
-
this.component.setConfig(e), t || this.render();
|
|
26
|
-
}
|
|
27
|
-
update(e, t, n) {
|
|
28
|
-
e && this.updateContainer(e, !0), t && this.updateComponent(t, !0), n && this.setData(n, !0), this.render();
|
|
29
|
-
}
|
|
30
|
-
getFitWidthScale() {
|
|
31
|
-
let { config: e, component: t } = this, n = t;
|
|
32
|
-
if (!n.getWidth) return 1;
|
|
33
|
-
let r = n.getWidth() + e.margin.left + e.margin.right;
|
|
34
|
-
return this.width / r;
|
|
35
|
-
}
|
|
36
|
-
_preRender() {
|
|
37
|
-
var e, t;
|
|
38
|
-
super._preRender(), this.component.setSize(this.width, this.height, this.containerWidth, this.containerHeight), this.component.setContainerMargin(this.config.margin), (e = this.config.annotations) == null || e.setSize(this.width, this.height, this.containerWidth, this.containerHeight), (t = this.config.annotations) == null || t.setContainerMargin(this.config.margin);
|
|
39
|
-
}
|
|
40
|
-
_render(e) {
|
|
41
|
-
var t, n;
|
|
42
|
-
let { config: r, component: i } = this;
|
|
43
|
-
super._render(e), i.g.attr("transform", `translate(${r.margin.left},${r.margin.top})`), i.render(e), (t = r.annotations) == null || t.render(e), r.tooltip && r.tooltip.update(), (n = r.onRenderComplete) == null || n.call(r, this.svg.node(), r.margin, this.containerWidth, this.containerHeight, this.width, this.height);
|
|
44
|
-
}
|
|
45
|
-
render(e = this.config.duration) {
|
|
46
|
-
let { config: t, component: n } = this;
|
|
47
|
-
if (t.sizing === f.Extend || t.sizing === f.FitWidth) {
|
|
48
|
-
let i = t.sizing === f.FitWidth, a = n, o = a.getWidth() + t.margin.left + t.margin.right, s = a.getHeight() + t.margin.top + t.margin.bottom, c = i ? this.getFitWidthScale() : 1, l = this.svg.attr("width"), u = this.svg.attr("height"), d = o * c, p = s * c, m = l || u;
|
|
49
|
-
r(this.svg, m ? e : 0).attr("width", d).attr("height", p).attr("viewBox", `0 0 ${o} ${i ? p : s}`).attr("preserveAspectRatio", "xMinYMin");
|
|
50
|
-
} else this.svg.attr("width", this.config.width || this.containerWidth).attr("height", this.config.height || this.containerHeight);
|
|
51
|
-
this._resizeObserver || this._setUpResizeObserver(), cancelAnimationFrame(this._renderAnimationFrameId), this._renderAnimationFrameId = requestAnimationFrame(() => {
|
|
52
|
-
this._preRender(), this._render(e);
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
_onResize() {
|
|
56
|
-
var e;
|
|
57
|
-
let { config: t } = this;
|
|
58
|
-
super._onResize(), (e = t.tooltip) == null || e.hide();
|
|
59
|
-
}
|
|
60
|
-
destroy() {
|
|
61
|
-
var e, t;
|
|
62
|
-
let { component: n, config: r } = this;
|
|
63
|
-
super.destroy(), n?.destroy(), (e = r.tooltip) == null || e.destroy(), (t = r.annotations) == null || t.destroy();
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
//#endregion
|
|
67
|
-
//#region ../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/arc.js
|
|
68
|
-
function $(e) {
|
|
69
|
-
return e.innerRadius;
|
|
70
|
-
}
|
|
71
|
-
function te(e) {
|
|
72
|
-
return e.outerRadius;
|
|
73
|
-
}
|
|
74
|
-
function ne(e) {
|
|
75
|
-
return e.startAngle;
|
|
76
|
-
}
|
|
77
|
-
function re(e) {
|
|
78
|
-
return e.endAngle;
|
|
79
|
-
}
|
|
80
|
-
function ie(e) {
|
|
81
|
-
return e && e.padAngle;
|
|
82
|
-
}
|
|
83
|
-
function ae(e, t, n, r, i, a, o, s) {
|
|
84
|
-
var c = n - e, l = r - t, u = o - i, d = s - a, f = d * c - u * l;
|
|
85
|
-
if (!(f * f < 1e-12)) return f = (u * (t - a) - d * (e - i)) / f, [e + f * c, t + f * l];
|
|
86
|
-
}
|
|
87
|
-
function oe(e, t, n, r, i, a, o) {
|
|
88
|
-
var s = e - n, c = t - r, l = (o ? a : -a) / O(s * s + c * c), u = l * c, d = -l * s, f = e + u, p = t + d, m = n + u, h = r + d, g = (f + m) / 2, _ = (p + h) / 2, v = m - f, y = h - p, b = v * v + y * y, x = i - a, S = f * h - m * p, C = (y < 0 ? -1 : 1) * O(P(0, x * x * b - S * S)), w = (S * y - v * C) / b, T = (-S * v - y * C) / b, E = (S * y + v * C) / b, D = (-S * v + y * C) / b, k = w - g, A = T - _, j = E - g, ee = D - _;
|
|
89
|
-
return k * k + A * A > j * j + ee * ee && (w = E, T = D), {
|
|
90
|
-
cx: w,
|
|
91
|
-
cy: T,
|
|
92
|
-
x01: -u,
|
|
93
|
-
y01: -d,
|
|
94
|
-
x11: w * (i / x - 1),
|
|
95
|
-
y11: T * (i / x - 1)
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
|
-
function se() {
|
|
99
|
-
var e = $, t = te, n = w(0), r = null, i = ne, a = re, o = ie, s = null, c = k(l);
|
|
100
|
-
function l() {
|
|
101
|
-
var l, u, d = +e.apply(this, arguments), f = +t.apply(this, arguments), p = i.apply(this, arguments) - D, m = a.apply(this, arguments) - D, h = ee(m - p), g = m > p;
|
|
102
|
-
if (s ||= l = c(), f < d && (u = f, f = d, d = u), !(f > 1e-12)) s.moveTo(0, 0);
|
|
103
|
-
else if (h > T - 1e-12) s.moveTo(f * M(p), f * j(p)), s.arc(0, 0, f, p, m, !g), d > 1e-12 && (s.moveTo(d * M(m), d * j(m)), s.arc(0, 0, d, m, p, g));
|
|
104
|
-
else {
|
|
105
|
-
var _ = p, v = m, y = p, b = m, w = h, k = h, N = o.apply(this, arguments) / 2, P = N > 1e-12 && (r ? +r.apply(this, arguments) : O(d * d + f * f)), F = S(ee(f - d) / 2, +n.apply(this, arguments)), I = F, L = F, R, z;
|
|
106
|
-
if (P > 1e-12) {
|
|
107
|
-
var B = x(P / d * j(N)), V = x(P / f * j(N));
|
|
108
|
-
(w -= B * 2) > 1e-12 ? (B *= g ? 1 : -1, y += B, b -= B) : (w = 0, y = b = (p + m) / 2), (k -= V * 2) > 1e-12 ? (V *= g ? 1 : -1, _ += V, v -= V) : (k = 0, _ = v = (p + m) / 2);
|
|
109
|
-
}
|
|
110
|
-
var H = f * M(_), U = f * j(_), W = d * M(b), G = d * j(b);
|
|
111
|
-
if (F > 1e-12) {
|
|
112
|
-
var K = f * M(v), q = f * j(v), J = d * M(y), Y = d * j(y), X;
|
|
113
|
-
if (h < C) if (X = ae(H, U, J, Y, K, q, W, G)) {
|
|
114
|
-
var Z = H - X[0], Q = U - X[1], $ = K - X[0], te = q - X[1], ne = 1 / j(E((Z * $ + Q * te) / (O(Z * Z + Q * Q) * O($ * $ + te * te))) / 2), re = O(X[0] * X[0] + X[1] * X[1]);
|
|
115
|
-
I = S(F, (d - re) / (ne - 1)), L = S(F, (f - re) / (ne + 1));
|
|
116
|
-
} else I = L = 0;
|
|
117
|
-
}
|
|
118
|
-
k > 1e-12 ? L > 1e-12 ? (R = oe(J, Y, H, U, f, L, g), z = oe(K, q, W, G, f, L, g), s.moveTo(R.cx + R.x01, R.cy + R.y01), L < F ? s.arc(R.cx, R.cy, L, A(R.y01, R.x01), A(z.y01, z.x01), !g) : (s.arc(R.cx, R.cy, L, A(R.y01, R.x01), A(R.y11, R.x11), !g), s.arc(0, 0, f, A(R.cy + R.y11, R.cx + R.x11), A(z.cy + z.y11, z.cx + z.x11), !g), s.arc(z.cx, z.cy, L, A(z.y11, z.x11), A(z.y01, z.x01), !g))) : (s.moveTo(H, U), s.arc(0, 0, f, _, v, !g)) : s.moveTo(H, U), !(d > 1e-12) || !(w > 1e-12) ? s.lineTo(W, G) : I > 1e-12 ? (R = oe(W, G, K, q, d, -I, g), z = oe(H, U, J, Y, d, -I, g), s.lineTo(R.cx + R.x01, R.cy + R.y01), I < F ? s.arc(R.cx, R.cy, I, A(R.y01, R.x01), A(z.y01, z.x01), !g) : (s.arc(R.cx, R.cy, I, A(R.y01, R.x01), A(R.y11, R.x11), !g), s.arc(0, 0, d, A(R.cy + R.y11, R.cx + R.x11), A(z.cy + z.y11, z.cx + z.x11), g), s.arc(z.cx, z.cy, I, A(z.y11, z.x11), A(z.y01, z.x01), !g))) : s.arc(0, 0, d, b, y, g);
|
|
119
|
-
}
|
|
120
|
-
if (s.closePath(), l) return s = null, l + "" || null;
|
|
121
|
-
}
|
|
122
|
-
return l.centroid = function() {
|
|
123
|
-
var n = (+e.apply(this, arguments) + +t.apply(this, arguments)) / 2, r = (+i.apply(this, arguments) + +a.apply(this, arguments)) / 2 - C / 2;
|
|
124
|
-
return [M(r) * n, j(r) * n];
|
|
125
|
-
}, l.innerRadius = function(t) {
|
|
126
|
-
return arguments.length ? (e = typeof t == "function" ? t : w(+t), l) : e;
|
|
127
|
-
}, l.outerRadius = function(e) {
|
|
128
|
-
return arguments.length ? (t = typeof e == "function" ? e : w(+e), l) : t;
|
|
129
|
-
}, l.cornerRadius = function(e) {
|
|
130
|
-
return arguments.length ? (n = typeof e == "function" ? e : w(+e), l) : n;
|
|
131
|
-
}, l.padRadius = function(e) {
|
|
132
|
-
return arguments.length ? (r = e == null ? null : typeof e == "function" ? e : w(+e), l) : r;
|
|
133
|
-
}, l.startAngle = function(e) {
|
|
134
|
-
return arguments.length ? (i = typeof e == "function" ? e : w(+e), l) : i;
|
|
135
|
-
}, l.endAngle = function(e) {
|
|
136
|
-
return arguments.length ? (a = typeof e == "function" ? e : w(+e), l) : a;
|
|
137
|
-
}, l.padAngle = function(e) {
|
|
138
|
-
return arguments.length ? (o = typeof e == "function" ? e : w(+e), l) : o;
|
|
139
|
-
}, l.context = function(e) {
|
|
140
|
-
return arguments.length ? (s = e ?? null, l) : s;
|
|
141
|
-
}, l;
|
|
142
|
-
}
|
|
143
|
-
//#endregion
|
|
144
|
-
//#region ../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/descending.js
|
|
145
|
-
function ce(e, t) {
|
|
146
|
-
return t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN;
|
|
147
|
-
}
|
|
148
|
-
//#endregion
|
|
149
|
-
//#region ../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/identity.js
|
|
150
|
-
function le(e) {
|
|
151
|
-
return e;
|
|
152
|
-
}
|
|
153
|
-
//#endregion
|
|
154
|
-
//#region ../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/pie.js
|
|
155
|
-
function ue() {
|
|
156
|
-
var e = le, t = ce, n = null, r = w(0), i = w(T), a = w(0);
|
|
157
|
-
function o(o) {
|
|
158
|
-
var s, c = (o = N(o)).length, l, u, d = 0, f = Array(c), p = Array(c), m = +r.apply(this, arguments), h = Math.min(T, Math.max(-T, i.apply(this, arguments) - m)), g, _ = Math.min(Math.abs(h) / c, a.apply(this, arguments)), v = _ * (h < 0 ? -1 : 1), y;
|
|
159
|
-
for (s = 0; s < c; ++s) (y = p[f[s] = s] = +e(o[s], s, o)) > 0 && (d += y);
|
|
160
|
-
for (t == null ? n != null && f.sort(function(e, t) {
|
|
161
|
-
return n(o[e], o[t]);
|
|
162
|
-
}) : f.sort(function(e, n) {
|
|
163
|
-
return t(p[e], p[n]);
|
|
164
|
-
}), s = 0, u = d ? (h - c * v) / d : 0; s < c; ++s, m = g) l = f[s], y = p[l], g = m + (y > 0 ? y * u : 0) + v, p[l] = {
|
|
165
|
-
data: o[l],
|
|
166
|
-
index: s,
|
|
167
|
-
value: y,
|
|
168
|
-
startAngle: m,
|
|
169
|
-
endAngle: g,
|
|
170
|
-
padAngle: _
|
|
171
|
-
};
|
|
172
|
-
return p;
|
|
173
|
-
}
|
|
174
|
-
return o.value = function(t) {
|
|
175
|
-
return arguments.length ? (e = typeof t == "function" ? t : w(+t), o) : e;
|
|
176
|
-
}, o.sortValues = function(e) {
|
|
177
|
-
return arguments.length ? (t = e, n = null, o) : t;
|
|
178
|
-
}, o.sort = function(e) {
|
|
179
|
-
return arguments.length ? (n = e, t = null, o) : n;
|
|
180
|
-
}, o.startAngle = function(e) {
|
|
181
|
-
return arguments.length ? (r = typeof e == "function" ? e : w(+e), o) : r;
|
|
182
|
-
}, o.endAngle = function(e) {
|
|
183
|
-
return arguments.length ? (i = typeof e == "function" ? e : w(+e), o) : i;
|
|
184
|
-
}, o.padAngle = function(e) {
|
|
185
|
-
return arguments.length ? (a = typeof e == "function" ? e : w(+e), o) : a;
|
|
186
|
-
}, o;
|
|
187
|
-
}
|
|
188
|
-
//#endregion
|
|
189
|
-
//#region ../node_modules/.pnpm/@unovis+ts@1.6.5/node_modules/@unovis/ts/components/donut/config.js
|
|
190
|
-
var de = Object.assign(Object.assign({}, c), {
|
|
191
|
-
id: (e, t) => e.id ?? t,
|
|
192
|
-
value: void 0,
|
|
193
|
-
angleRange: [0, 2 * Math.PI],
|
|
194
|
-
padAngle: 0,
|
|
195
|
-
sortFunction: void 0,
|
|
196
|
-
cornerRadius: 0,
|
|
197
|
-
color: void 0,
|
|
198
|
-
radius: void 0,
|
|
199
|
-
arcWidth: 20,
|
|
200
|
-
centralLabel: void 0,
|
|
201
|
-
centralSubLabel: void 0,
|
|
202
|
-
centralSubLabelWrap: !0,
|
|
203
|
-
showEmptySegments: !1,
|
|
204
|
-
emptySegmentAngle: .5 * Math.PI / 180,
|
|
205
|
-
showBackground: !0,
|
|
206
|
-
backgroundAngleRange: void 0,
|
|
207
|
-
centralLabelOffsetX: void 0,
|
|
208
|
-
centralLabelOffsetY: void 0
|
|
209
|
-
});
|
|
210
|
-
//#endregion
|
|
211
|
-
//#region ../node_modules/.pnpm/@unovis+ts@1.6.5/node_modules/@unovis/ts/components/donut/modules/arc.js
|
|
212
|
-
function fe(e, t) {
|
|
213
|
-
e.style("fill", (e) => o(e.data, t.color, e.index)).style("opacity", 0).each((e, t, n) => {
|
|
214
|
-
let r = n[t], i = (e.startAngle + e.endAngle) / 2, a = (e.endAngle - e.startAngle) / 2;
|
|
215
|
-
r._animState = {
|
|
216
|
-
startAngle: i - a,
|
|
217
|
-
endAngle: i + a,
|
|
218
|
-
innerRadius: e.innerRadius,
|
|
219
|
-
outerRadius: e.outerRadius,
|
|
220
|
-
padAngle: e.padAngle
|
|
221
|
-
};
|
|
222
|
-
});
|
|
223
|
-
}
|
|
224
|
-
function pe(e, n, i, a) {
|
|
225
|
-
e.style("transition", `fill ${a}ms`).style("fill", (e) => o(e.data, n.color, e.index));
|
|
226
|
-
let s = (e) => n.showEmptySegments || e.value ? 1 : 0;
|
|
227
|
-
a ? r(e, a).style("opacity", s).attrTween("d", (e, n, r) => {
|
|
228
|
-
let a = r[n], o = {
|
|
229
|
-
startAngle: e.startAngle,
|
|
230
|
-
endAngle: e.endAngle,
|
|
231
|
-
innerRadius: e.innerRadius,
|
|
232
|
-
outerRadius: e.outerRadius,
|
|
233
|
-
padAngle: e.padAngle
|
|
234
|
-
}, s = t(a._animState, o);
|
|
235
|
-
return (e) => (a._animState = s(e), i(a._animState));
|
|
236
|
-
}) : e.attr("d", i).style("opacity", s);
|
|
237
|
-
}
|
|
238
|
-
function me(e, t) {
|
|
239
|
-
r(e, t).style("opacity", 0).remove();
|
|
240
|
-
}
|
|
241
|
-
//#endregion
|
|
242
|
-
//#region ../node_modules/.pnpm/@unovis+ts@1.6.5/node_modules/@unovis/ts/components/donut/constants.js
|
|
243
|
-
var he = Array.from({ length: 4 }, (e, t) => {
|
|
244
|
-
let n = -Math.PI / 2 + t * Math.PI / 2;
|
|
245
|
-
return [n, n + Math.PI];
|
|
246
|
-
}), ge = /* @__PURE__ */ m({
|
|
247
|
-
background: () => ye,
|
|
248
|
-
centralLabel: () => Se,
|
|
249
|
-
centralSubLabel: () => Ce,
|
|
250
|
-
root: () => _e,
|
|
251
|
-
segment: () => be,
|
|
252
|
-
segmentExit: () => xe,
|
|
253
|
-
variables: () => ve
|
|
254
|
-
}), _e = v`
|
|
255
|
-
label: donut-component;
|
|
256
|
-
`, ve = l`
|
|
257
|
-
:root {
|
|
258
|
-
--vis-donut-central-label-font-size: 16px;
|
|
259
|
-
--vis-donut-central-label-text-color: #5b5f6d;
|
|
260
|
-
// Undefined by default to allow proper fallback to var(--vis-font-family)
|
|
261
|
-
/* --vis-donut-central-label-font-family: */
|
|
262
|
-
--vis-donut-central-label-font-weight: 600;
|
|
263
|
-
|
|
264
|
-
--vis-donut-central-sub-label-font-size: 12px;
|
|
265
|
-
--vis-donut-central-sub-label-text-color: #5b5f6d;
|
|
266
|
-
// Undefined by default to allow proper fallback to var(--vis-font-family)
|
|
267
|
-
/* --vis-donut-central-sub-label-font-family: */
|
|
268
|
-
--vis-donut-central-sub-label-font-weight: 500;
|
|
269
|
-
|
|
270
|
-
--vis-donut-background-color: #E7E9F3;
|
|
271
|
-
--vis-donut-segment-stroke-width: 0;
|
|
272
|
-
// The line segment color variable is not defined by default
|
|
273
|
-
// to allow it to fallback to the donut background color
|
|
274
|
-
/* --vis-donut-segment-stroke-color: none; */
|
|
275
|
-
|
|
276
|
-
--vis-dark-donut-central-label-text-color: #C2BECE;
|
|
277
|
-
--vis-dark-donut-central-sub-label-text-color: #C2BECE;
|
|
278
|
-
--vis-dark-donut-background-color: #18160C;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
body.theme-dark ${`.${_e}`} {
|
|
282
|
-
--vis-donut-central-label-text-color: var(--vis-dark-donut-central-label-text-color);
|
|
283
|
-
--vis-donut-central-sub-label-text-color: var(--vis-dark-donut-central-sub-label-text-color);
|
|
284
|
-
--vis-donut-background-color: var(--vis-dark-donut-background-color);
|
|
285
|
-
}
|
|
286
|
-
`, ye = v`
|
|
287
|
-
label: background;
|
|
288
|
-
fill: var(--vis-donut-background-color);
|
|
289
|
-
`, be = v`
|
|
290
|
-
label: segment;
|
|
291
|
-
stroke-width: var(--vis-donut-segment-stroke-width);
|
|
292
|
-
stroke: var(--vis-donut-segment-stroke-color, var(--vis-donut-background-color));
|
|
293
|
-
`, xe = v`
|
|
294
|
-
label: segment-exit;
|
|
295
|
-
`, Se = v`
|
|
296
|
-
label: central-label;
|
|
297
|
-
text-anchor: middle;
|
|
298
|
-
dominant-baseline: middle;
|
|
299
|
-
font-size: var(--vis-donut-central-label-font-size);
|
|
300
|
-
font-family: var(--vis-donut-central-label-font-family, var(--vis-font-family));
|
|
301
|
-
font-weight: var(--vis-donut-central-label-font-weight);
|
|
302
|
-
fill: var(--vis-donut-central-label-text-color);
|
|
303
|
-
`, Ce = v`
|
|
304
|
-
label: central-label;
|
|
305
|
-
text-anchor: middle;
|
|
306
|
-
dominant-baseline: middle;
|
|
307
|
-
font-size: var(--vis-donut-central-sub-label-font-size);
|
|
308
|
-
font-family: var(--vis-donut-central-sub-label-font-family, var(--vis-font-family));
|
|
309
|
-
font-weight: var(--vis-donut-central-sub-label-font-weight);
|
|
310
|
-
fill: var(--vis-donut-central-sub-label-text-color);
|
|
311
|
-
`, we = class extends b {
|
|
312
|
-
constructor(e) {
|
|
313
|
-
super(), this._defaultConfig = de, this.config = this._defaultConfig, this.datamodel = new y(), this.arcGen = se(), this.events = {}, e && this.setConfig(e), this.arcBackground = this.g.append("path"), this.arcGroup = this.g.append("g"), this.centralLabel = this.g.append("text").attr("class", Se), this.centralSubLabel = this.g.append("text").attr("class", Ce);
|
|
314
|
-
}
|
|
315
|
-
get bleed() {
|
|
316
|
-
return {
|
|
317
|
-
top: 0,
|
|
318
|
-
bottom: 0,
|
|
319
|
-
left: 0,
|
|
320
|
-
right: 0
|
|
321
|
-
};
|
|
322
|
-
}
|
|
323
|
-
_render(e) {
|
|
324
|
-
let { config: t, datamodel: o, bleed: s } = this, c = o.data.map((e, t) => ({
|
|
325
|
-
index: t,
|
|
326
|
-
datum: e
|
|
327
|
-
})).filter((e) => t.showEmptySegments || i(e.datum, t.value, e.index)), l = a(e) ? e : t.duration, [d, f, p, m] = he.map((e) => t.angleRange && t.angleRange[0] === e[0] && t.angleRange[1] === e[1]), h = d || p, g = f || m, _ = this._width * (g ? 2 : 1), v = this._height * (h ? 2 : 1), y = t.radius || Math.min(_ - s.left - s.right, v - s.top - s.bottom) / 2, b = t.arcWidth === 0 ? 0 : n(y - t.arcWidth, 0, y - 1), x = this._height / 2 + (d ? y / 2 : p ? -y / 2 : 0), S = this._width / 2 + (m ? y / 2 : f ? -y / 2 : 0), C = `translate(${S},${x})`;
|
|
328
|
-
this.arcGroup.attr("transform", C), this.arcGen.startAngle((e) => e.startAngle).endAngle((e) => e.endAngle).innerRadius((e) => e.innerRadius).outerRadius((e) => e.outerRadius).padAngle((e) => e.padAngle).cornerRadius(t.cornerRadius);
|
|
329
|
-
let w = ue().startAngle(t.angleRange?.[0] ?? 0).endAngle(t.angleRange?.[1] ?? 2 * Math.PI).padAngle(t.padAngle).value((e) => i(e.datum, t.value, e.index) || 0).sort((e, n) => t.sortFunction?.call(t, e.datum, n.datum))(c).map((e) => {
|
|
330
|
-
let n = Object.assign(Object.assign({}, e), {
|
|
331
|
-
data: e.data.datum,
|
|
332
|
-
index: e.data.index,
|
|
333
|
-
innerRadius: b,
|
|
334
|
-
outerRadius: y
|
|
335
|
-
});
|
|
336
|
-
return t.showEmptySegments && e.endAngle - e.startAngle - e.padAngle <= 2 ** -52 && (n.endAngle = e.startAngle + Math.max(t.emptySegmentAngle, t.padAngle), n.padAngle = e.padAngle / 2), n;
|
|
337
|
-
}), T = this.arcGroup.selectAll(`.${be}`).data(w, (e) => t.id(e.data, e.index)), E = T.enter().append("path").attr("class", be).call(fe, t), D = T.merge(E);
|
|
338
|
-
D.call(pe, t, this.arcGen, l), D.sort((e, t) => t.value - e.value), T.exit().attr("class", xe).call(me, l);
|
|
339
|
-
let O = f ? "start" : m ? "end" : "middle";
|
|
340
|
-
this.centralLabel.attr("dy", t.centralSubLabel ? "-0.55em" : null).style("text-anchor", O).text(t.centralLabel ?? null), this.centralSubLabel.attr("dy", t.centralLabel ? "0.55em" : null).style("text-anchor", O).text(t.centralSubLabel ?? null), t.centralSubLabelWrap && u(this.centralSubLabel, b * 1.9);
|
|
341
|
-
let k = (t.centralLabelOffsetX || 0) + S, A = (t.centralLabelOffsetY || 0) + x;
|
|
342
|
-
h && t.centralLabelOffsetX === void 0 && t.centralLabelOffsetY === void 0 && (A = (d ? -this.centralSubLabel.node().getBoundingClientRect().height : p ? this.centralLabel.node().getBoundingClientRect().height : 0) + x);
|
|
343
|
-
let j = `translate(${k},${A})`;
|
|
344
|
-
this.centralLabel.attr("transform", j), this.centralSubLabel.attr("transform", j), this.arcBackground.attr("class", ye).attr("visibility", t.showBackground ? null : "hidden").attr("transform", C), r(this.arcBackground, l).attr("d", this.arcGen({
|
|
345
|
-
startAngle: t.backgroundAngleRange?.[0] ?? t.angleRange?.[0] ?? 0,
|
|
346
|
-
endAngle: t.backgroundAngleRange?.[1] ?? t.angleRange?.[1] ?? 2 * Math.PI,
|
|
347
|
-
innerRadius: b,
|
|
348
|
-
outerRadius: y
|
|
349
|
-
}));
|
|
350
|
-
}
|
|
351
|
-
};
|
|
352
|
-
we.selectors = ge;
|
|
353
|
-
//#endregion
|
|
354
|
-
//#region ../node_modules/.pnpm/@unovis+vue@1.6.5_@unovis+ts@1.6.5_vue@3.5.34_typescript@6.0.3_/node_modules/@unovis/vue/components/donut/index.js
|
|
355
|
-
var Te = { "data-vis-component": "" };
|
|
356
|
-
we.selectors;
|
|
357
|
-
var Ee = /* @__PURE__ */ L({
|
|
358
|
-
__name: "index",
|
|
359
|
-
props: {
|
|
360
|
-
id: { type: Function },
|
|
361
|
-
value: { type: [
|
|
362
|
-
Function,
|
|
363
|
-
Number,
|
|
364
|
-
null
|
|
365
|
-
] },
|
|
366
|
-
angleRange: {},
|
|
367
|
-
padAngle: {},
|
|
368
|
-
sortFunction: { type: Function },
|
|
369
|
-
cornerRadius: {},
|
|
370
|
-
color: { type: [
|
|
371
|
-
Function,
|
|
372
|
-
String,
|
|
373
|
-
Array,
|
|
374
|
-
null
|
|
375
|
-
] },
|
|
376
|
-
radius: {},
|
|
377
|
-
arcWidth: {},
|
|
378
|
-
centralLabel: {},
|
|
379
|
-
centralSubLabel: {},
|
|
380
|
-
centralSubLabelWrap: { type: Boolean },
|
|
381
|
-
showEmptySegments: { type: Boolean },
|
|
382
|
-
emptySegmentAngle: {},
|
|
383
|
-
showBackground: { type: Boolean },
|
|
384
|
-
backgroundAngleRange: {},
|
|
385
|
-
centralLabelOffsetX: {},
|
|
386
|
-
centralLabelOffsetY: {},
|
|
387
|
-
duration: {},
|
|
388
|
-
events: {},
|
|
389
|
-
attributes: {},
|
|
390
|
-
data: {}
|
|
391
|
-
},
|
|
392
|
-
setup(e, { expose: t }) {
|
|
393
|
-
let n = R(g), r = e, i = F(() => n.data.value ?? r.data), a = _(r), o = G();
|
|
394
|
-
return B(() => {
|
|
395
|
-
z(() => {
|
|
396
|
-
var e;
|
|
397
|
-
o.value = new we(a.value), (e = o.value) == null || e.setData(i.value), n.update(o.value);
|
|
398
|
-
});
|
|
399
|
-
}), V(() => {
|
|
400
|
-
var e;
|
|
401
|
-
(e = o.value) == null || e.destroy(), n.destroy();
|
|
402
|
-
}), Y(a, (e, t) => {
|
|
403
|
-
var n;
|
|
404
|
-
h(e, t) || (n = o.value) == null || n.setConfig(a.value);
|
|
405
|
-
}), Y(i, () => {
|
|
406
|
-
var e;
|
|
407
|
-
(e = o.value) == null || e.setData(i.value);
|
|
408
|
-
}), t({ component: o }), (e, t) => (H(), I("div", Te));
|
|
409
|
-
}
|
|
410
|
-
}), De = /* @__PURE__ */ L({
|
|
411
|
-
__name: "index",
|
|
412
|
-
props: {
|
|
413
|
-
component: {},
|
|
414
|
-
tooltip: {},
|
|
415
|
-
annotations: {},
|
|
416
|
-
onRenderComplete: { type: Function },
|
|
417
|
-
duration: {},
|
|
418
|
-
margin: {},
|
|
419
|
-
padding: {},
|
|
420
|
-
sizing: {},
|
|
421
|
-
width: {},
|
|
422
|
-
height: {},
|
|
423
|
-
svgDefs: {},
|
|
424
|
-
ariaLabel: {},
|
|
425
|
-
data: {}
|
|
426
|
-
},
|
|
427
|
-
setup(e, { expose: t }) {
|
|
428
|
-
let n = e, { data: r } = J(n), i = _(n), a, o = W({
|
|
429
|
-
component: void 0,
|
|
430
|
-
tooltip: void 0,
|
|
431
|
-
annotations: void 0
|
|
432
|
-
}), c = G(), l = () => {
|
|
433
|
-
a || c.value && o.component && (a = new Q(c.value, { ...q(o) }, r.value));
|
|
434
|
-
};
|
|
435
|
-
return X(() => {
|
|
436
|
-
var e;
|
|
437
|
-
l(), (e = o.component) == null || e.config, a?.updateContainer({
|
|
438
|
-
...q(i.value),
|
|
439
|
-
...q(o)
|
|
440
|
-
});
|
|
441
|
-
}), Y(r, () => {
|
|
442
|
-
a ? a.setData(r.value, !0) : l();
|
|
443
|
-
}), V(() => a?.destroy()), U(g, {
|
|
444
|
-
data: r,
|
|
445
|
-
update: (e) => o.component = e,
|
|
446
|
-
destroy: () => o.component = void 0
|
|
447
|
-
}), U(d, {
|
|
448
|
-
data: r,
|
|
449
|
-
update: (e) => o.tooltip = e,
|
|
450
|
-
destroy: () => {
|
|
451
|
-
o.tooltip = void 0;
|
|
452
|
-
}
|
|
453
|
-
}), U(s, {
|
|
454
|
-
data: r,
|
|
455
|
-
update: (e) => o.annotations = e,
|
|
456
|
-
destroy: () => {
|
|
457
|
-
o.annotations = void 0;
|
|
458
|
-
}
|
|
459
|
-
}), t({ component: a }), (e, t) => (H(), I("div", {
|
|
460
|
-
"data-vis-single-container": "",
|
|
461
|
-
ref_key: "elRef",
|
|
462
|
-
ref: c,
|
|
463
|
-
class: "unovis-single-container"
|
|
464
|
-
}, [K(e.$slots, "default")], 512));
|
|
465
|
-
}
|
|
466
|
-
});
|
|
467
|
-
//#endregion
|
|
468
|
-
export { Ee as n, De as t };
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
const e=require(`./chunk-DQi1bQcV.js`),t=require(`./context-ubyMq9Xe.js`),n=require(`./array-BH1uH7XT.js`);let r=require(`vue`);var i=Object.assign(Object.assign({},t.A),{tooltip:void 0,annotations:void 0}),a=class extends t.k{constructor(e,t,n){super(e),this._defaultConfig=i,this.config=this._defaultConfig,t&&(this.updateContainer(t,!0),this.component=t.component),n&&this.setData(n,!0),this.component?.datamodel.data&&this.render()}setData(e,t){var n;let{config:r}=this;this.component&&this.component.setData(e),t||this.render(),(n=r.tooltip)==null||n.hide()}updateContainer(e,t){super.updateContainer(e),this._removeAllChildren(),this.component=e.component,e.sizing&&(this.component.sizing=e.sizing),this.element.appendChild(this.component.element);let n=e.tooltip;n&&(n.hasContainer()||n.setContainer(this._container),n.setComponents([this.component]));let r=e.annotations;r&&this.element.appendChild(r.element),this.element.appendChild(this._svgDefs.node()),this.element.appendChild(this._svgDefsExternal.node()),t||this.render()}updateComponent(e,t){this.component.setConfig(e),t||this.render()}update(e,t,n){e&&this.updateContainer(e,!0),t&&this.updateComponent(t,!0),n&&this.setData(n,!0),this.render()}getFitWidthScale(){let{config:e,component:t}=this,n=t;if(!n.getWidth)return 1;let r=n.getWidth()+e.margin.left+e.margin.right;return this.width/r}_preRender(){var e,t;super._preRender(),this.component.setSize(this.width,this.height,this.containerWidth,this.containerHeight),this.component.setContainerMargin(this.config.margin),(e=this.config.annotations)==null||e.setSize(this.width,this.height,this.containerWidth,this.containerHeight),(t=this.config.annotations)==null||t.setContainerMargin(this.config.margin)}_render(e){var t,n;let{config:r,component:i}=this;super._render(e),i.g.attr(`transform`,`translate(${r.margin.left},${r.margin.top})`),i.render(e),(t=r.annotations)==null||t.render(e),r.tooltip&&r.tooltip.update(),(n=r.onRenderComplete)==null||n.call(r,this.svg.node(),r.margin,this.containerWidth,this.containerHeight,this.width,this.height)}render(e=this.config.duration){let{config:n,component:r}=this;if(n.sizing===t.j.Extend||n.sizing===t.j.FitWidth){let i=n.sizing===t.j.FitWidth,a=r,o=a.getWidth()+n.margin.left+n.margin.right,s=a.getHeight()+n.margin.top+n.margin.bottom,c=i?this.getFitWidthScale():1,l=this.svg.attr(`width`),u=this.svg.attr(`height`),d=o*c,f=s*c,p=l||u;t.S(this.svg,p?e:0).attr(`width`,d).attr(`height`,f).attr(`viewBox`,`0 0 ${o} ${i?f:s}`).attr(`preserveAspectRatio`,`xMinYMin`)}else this.svg.attr(`width`,this.config.width||this.containerWidth).attr(`height`,this.config.height||this.containerHeight);this._resizeObserver||this._setUpResizeObserver(),cancelAnimationFrame(this._renderAnimationFrameId),this._renderAnimationFrameId=requestAnimationFrame(()=>{this._preRender(),this._render(e)})}_onResize(){var e;let{config:t}=this;super._onResize(),(e=t.tooltip)==null||e.hide()}destroy(){var e,t;let{component:n,config:r}=this;super.destroy(),n?.destroy(),(e=r.tooltip)==null||e.destroy(),(t=r.annotations)==null||t.destroy()}};function o(e){return e.innerRadius}function s(e){return e.outerRadius}function c(e){return e.startAngle}function l(e){return e.endAngle}function u(e){return e&&e.padAngle}function d(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=d*c-u*l;if(!(f*f<1e-12))return f=(u*(t-a)-d*(e-i))/f,[e+f*c,t+f*l]}function f(e,t,r,i,a,o,s){var c=e-r,l=t-i,u=(s?o:-o)/n.m(c*c+l*l),d=u*l,f=-u*c,p=e+d,m=t+f,h=r+d,g=i+f,_=(p+h)/2,v=(m+g)/2,y=h-p,b=g-m,x=y*y+b*b,S=a-o,C=p*g-h*m,w=(b<0?-1:1)*n.m(n.u(0,S*S*x-C*C)),T=(C*b-y*w)/x,E=(-C*y-b*w)/x,D=(C*b+y*w)/x,O=(-C*y+b*w)/x,k=T-_,A=E-v,j=D-_,M=O-v;return k*k+A*A>j*j+M*M&&(T=D,E=O),{cx:T,cy:E,x01:-d,y01:-f,x11:T*(a/S-1),y11:E*(a/S-1)}}function p(){var e=o,t=s,r=n.g(0),i=null,a=c,p=l,m=u,h=null,g=n.n(_);function _(){var o,s,c=+e.apply(this,arguments),l=+t.apply(this,arguments),u=a.apply(this,arguments)-n.l,_=p.apply(this,arguments)-n.l,v=n.r(_-u),y=_>u;if(h||=o=g(),l<c&&(s=l,l=c,c=s),!(l>1e-12))h.moveTo(0,0);else if(v>n.h-1e-12)h.moveTo(l*n.s(u),l*n.p(u)),h.arc(0,0,l,u,_,!y),c>1e-12&&(h.moveTo(c*n.s(_),c*n.p(_)),h.arc(0,0,c,_,u,y));else{var b=u,x=_,S=u,C=_,w=v,T=v,E=m.apply(this,arguments)/2,D=E>1e-12&&(i?+i.apply(this,arguments):n.m(c*c+l*l)),O=n.d(n.r(l-c)/2,+r.apply(this,arguments)),k=O,A=O,j,M;if(D>1e-12){var N=n.a(D/c*n.p(E)),P=n.a(D/l*n.p(E));(w-=N*2)>1e-12?(N*=y?1:-1,S+=N,C-=N):(w=0,S=C=(u+_)/2),(T-=P*2)>1e-12?(P*=y?1:-1,b+=P,x-=P):(T=0,b=x=(u+_)/2)}var F=l*n.s(b),I=l*n.p(b),L=c*n.s(C),R=c*n.p(C);if(O>1e-12){var z=l*n.s(x),B=l*n.p(x),V=c*n.s(S),H=c*n.p(S),U;if(v<n.f)if(U=d(F,I,V,H,z,B,L,R)){var W=F-U[0],G=I-U[1],K=z-U[0],q=B-U[1],J=1/n.p(n.i((W*K+G*q)/(n.m(W*W+G*G)*n.m(K*K+q*q)))/2),Y=n.m(U[0]*U[0]+U[1]*U[1]);k=n.d(O,(c-Y)/(J-1)),A=n.d(O,(l-Y)/(J+1))}else k=A=0}T>1e-12?A>1e-12?(j=f(V,H,F,I,l,A,y),M=f(z,B,L,R,l,A,y),h.moveTo(j.cx+j.x01,j.cy+j.y01),A<O?h.arc(j.cx,j.cy,A,n.o(j.y01,j.x01),n.o(M.y01,M.x01),!y):(h.arc(j.cx,j.cy,A,n.o(j.y01,j.x01),n.o(j.y11,j.x11),!y),h.arc(0,0,l,n.o(j.cy+j.y11,j.cx+j.x11),n.o(M.cy+M.y11,M.cx+M.x11),!y),h.arc(M.cx,M.cy,A,n.o(M.y11,M.x11),n.o(M.y01,M.x01),!y))):(h.moveTo(F,I),h.arc(0,0,l,b,x,!y)):h.moveTo(F,I),!(c>1e-12)||!(w>1e-12)?h.lineTo(L,R):k>1e-12?(j=f(L,R,z,B,c,-k,y),M=f(F,I,V,H,c,-k,y),h.lineTo(j.cx+j.x01,j.cy+j.y01),k<O?h.arc(j.cx,j.cy,k,n.o(j.y01,j.x01),n.o(M.y01,M.x01),!y):(h.arc(j.cx,j.cy,k,n.o(j.y01,j.x01),n.o(j.y11,j.x11),!y),h.arc(0,0,c,n.o(j.cy+j.y11,j.cx+j.x11),n.o(M.cy+M.y11,M.cx+M.x11),y),h.arc(M.cx,M.cy,k,n.o(M.y11,M.x11),n.o(M.y01,M.x01),!y))):h.arc(0,0,c,C,S,y)}if(h.closePath(),o)return h=null,o+``||null}return _.centroid=function(){var r=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,i=(+a.apply(this,arguments)+ +p.apply(this,arguments))/2-n.f/2;return[n.s(i)*r,n.p(i)*r]},_.innerRadius=function(t){return arguments.length?(e=typeof t==`function`?t:n.g(+t),_):e},_.outerRadius=function(e){return arguments.length?(t=typeof e==`function`?e:n.g(+e),_):t},_.cornerRadius=function(e){return arguments.length?(r=typeof e==`function`?e:n.g(+e),_):r},_.padRadius=function(e){return arguments.length?(i=e==null?null:typeof e==`function`?e:n.g(+e),_):i},_.startAngle=function(e){return arguments.length?(a=typeof e==`function`?e:n.g(+e),_):a},_.endAngle=function(e){return arguments.length?(p=typeof e==`function`?e:n.g(+e),_):p},_.padAngle=function(e){return arguments.length?(m=typeof e==`function`?e:n.g(+e),_):m},_.context=function(e){return arguments.length?(h=e??null,_):h},_}function m(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function h(e){return e}function g(){var e=h,t=m,r=null,i=n.g(0),a=n.g(n.h),o=n.g(0);function s(s){var c,l=(s=n.t(s)).length,u,d,f=0,p=Array(l),m=Array(l),h=+i.apply(this,arguments),g=Math.min(n.h,Math.max(-n.h,a.apply(this,arguments)-h)),_,v=Math.min(Math.abs(g)/l,o.apply(this,arguments)),y=v*(g<0?-1:1),b;for(c=0;c<l;++c)(b=m[p[c]=c]=+e(s[c],c,s))>0&&(f+=b);for(t==null?r!=null&&p.sort(function(e,t){return r(s[e],s[t])}):p.sort(function(e,n){return t(m[e],m[n])}),c=0,d=f?(g-l*y)/f:0;c<l;++c,h=_)u=p[c],b=m[u],_=h+(b>0?b*d:0)+y,m[u]={data:s[u],index:c,value:b,startAngle:h,endAngle:_,padAngle:v};return m}return s.value=function(t){return arguments.length?(e=typeof t==`function`?t:n.g(+t),s):e},s.sortValues=function(e){return arguments.length?(t=e,r=null,s):t},s.sort=function(e){return arguments.length?(r=e,t=null,s):r},s.startAngle=function(e){return arguments.length?(i=typeof e==`function`?e:n.g(+e),s):i},s.endAngle=function(e){return arguments.length?(a=typeof e==`function`?e:n.g(+e),s):a},s.padAngle=function(e){return arguments.length?(o=typeof e==`function`?e:n.g(+e),s):o},s}var _=Object.assign(Object.assign({},t.b),{id:(e,t)=>e.id??t,value:void 0,angleRange:[0,2*Math.PI],padAngle:0,sortFunction:void 0,cornerRadius:0,color:void 0,radius:void 0,arcWidth:20,centralLabel:void 0,centralSubLabel:void 0,centralSubLabelWrap:!0,showEmptySegments:!1,emptySegmentAngle:.5*Math.PI/180,showBackground:!0,backgroundAngleRange:void 0,centralLabelOffsetX:void 0,centralLabelOffsetY:void 0});function v(e,n){e.style(`fill`,e=>t._(e.data,n.color,e.index)).style(`opacity`,0).each((e,t,n)=>{let r=n[t],i=(e.startAngle+e.endAngle)/2,a=(e.endAngle-e.startAngle)/2;r._animState={startAngle:i-a,endAngle:i+a,innerRadius:e.innerRadius,outerRadius:e.outerRadius,padAngle:e.padAngle}})}function y(e,n,r,i){e.style(`transition`,`fill ${i}ms`).style(`fill`,e=>t._(e.data,n.color,e.index));let a=e=>n.showEmptySegments||e.value?1:0;i?t.S(e,i).style(`opacity`,a).attrTween(`d`,(e,n,i)=>{let a=i[n],o={startAngle:e.startAngle,endAngle:e.endAngle,innerRadius:e.innerRadius,outerRadius:e.outerRadius,padAngle:e.padAngle},s=t.C(a._animState,o);return e=>(a._animState=s(e),r(a._animState))}):e.attr(`d`,r).style(`opacity`,a)}function b(e,n){t.S(e,n).style(`opacity`,0).remove()}var x=Array.from({length:4},(e,t)=>{let n=-Math.PI/2+t*Math.PI/2;return[n,n+Math.PI]}),S=e.n({background:()=>T,centralLabel:()=>O,centralSubLabel:()=>k,root:()=>C,segment:()=>E,segmentExit:()=>D,variables:()=>w}),C=t.st`
|
|
2
|
-
label: donut-component;
|
|
3
|
-
`,w=t.ct`
|
|
4
|
-
:root {
|
|
5
|
-
--vis-donut-central-label-font-size: 16px;
|
|
6
|
-
--vis-donut-central-label-text-color: #5b5f6d;
|
|
7
|
-
// Undefined by default to allow proper fallback to var(--vis-font-family)
|
|
8
|
-
/* --vis-donut-central-label-font-family: */
|
|
9
|
-
--vis-donut-central-label-font-weight: 600;
|
|
10
|
-
|
|
11
|
-
--vis-donut-central-sub-label-font-size: 12px;
|
|
12
|
-
--vis-donut-central-sub-label-text-color: #5b5f6d;
|
|
13
|
-
// Undefined by default to allow proper fallback to var(--vis-font-family)
|
|
14
|
-
/* --vis-donut-central-sub-label-font-family: */
|
|
15
|
-
--vis-donut-central-sub-label-font-weight: 500;
|
|
16
|
-
|
|
17
|
-
--vis-donut-background-color: #E7E9F3;
|
|
18
|
-
--vis-donut-segment-stroke-width: 0;
|
|
19
|
-
// The line segment color variable is not defined by default
|
|
20
|
-
// to allow it to fallback to the donut background color
|
|
21
|
-
/* --vis-donut-segment-stroke-color: none; */
|
|
22
|
-
|
|
23
|
-
--vis-dark-donut-central-label-text-color: #C2BECE;
|
|
24
|
-
--vis-dark-donut-central-sub-label-text-color: #C2BECE;
|
|
25
|
-
--vis-dark-donut-background-color: #18160C;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
body.theme-dark ${`.${C}`} {
|
|
29
|
-
--vis-donut-central-label-text-color: var(--vis-dark-donut-central-label-text-color);
|
|
30
|
-
--vis-donut-central-sub-label-text-color: var(--vis-dark-donut-central-sub-label-text-color);
|
|
31
|
-
--vis-donut-background-color: var(--vis-dark-donut-background-color);
|
|
32
|
-
}
|
|
33
|
-
`,T=t.st`
|
|
34
|
-
label: background;
|
|
35
|
-
fill: var(--vis-donut-background-color);
|
|
36
|
-
`,E=t.st`
|
|
37
|
-
label: segment;
|
|
38
|
-
stroke-width: var(--vis-donut-segment-stroke-width);
|
|
39
|
-
stroke: var(--vis-donut-segment-stroke-color, var(--vis-donut-background-color));
|
|
40
|
-
`,D=t.st`
|
|
41
|
-
label: segment-exit;
|
|
42
|
-
`,O=t.st`
|
|
43
|
-
label: central-label;
|
|
44
|
-
text-anchor: middle;
|
|
45
|
-
dominant-baseline: middle;
|
|
46
|
-
font-size: var(--vis-donut-central-label-font-size);
|
|
47
|
-
font-family: var(--vis-donut-central-label-font-family, var(--vis-font-family));
|
|
48
|
-
font-weight: var(--vis-donut-central-label-font-weight);
|
|
49
|
-
fill: var(--vis-donut-central-label-text-color);
|
|
50
|
-
`,k=t.st`
|
|
51
|
-
label: central-label;
|
|
52
|
-
text-anchor: middle;
|
|
53
|
-
dominant-baseline: middle;
|
|
54
|
-
font-size: var(--vis-donut-central-sub-label-font-size);
|
|
55
|
-
font-family: var(--vis-donut-central-sub-label-font-family, var(--vis-font-family));
|
|
56
|
-
font-weight: var(--vis-donut-central-sub-label-font-weight);
|
|
57
|
-
fill: var(--vis-donut-central-sub-label-text-color);
|
|
58
|
-
`,A=class extends t.y{constructor(e){super(),this._defaultConfig=_,this.config=this._defaultConfig,this.datamodel=new t.v,this.arcGen=p(),this.events={},e&&this.setConfig(e),this.arcBackground=this.g.append(`path`),this.arcGroup=this.g.append(`g`),this.centralLabel=this.g.append(`text`).attr(`class`,O),this.centralSubLabel=this.g.append(`text`).attr(`class`,k)}get bleed(){return{top:0,bottom:0,left:0,right:0}}_render(e){let{config:n,datamodel:r,bleed:i}=this,a=r.data.map((e,t)=>({index:t,datum:e})).filter(e=>n.showEmptySegments||t.V(e.datum,n.value,e.index)),o=t.Z(e)?e:n.duration,[s,c,l,u]=x.map(e=>n.angleRange&&n.angleRange[0]===e[0]&&n.angleRange[1]===e[1]),d=s||l,f=c||u,p=this._width*(f?2:1),m=this._height*(d?2:1),h=n.radius||Math.min(p-i.left-i.right,m-i.top-i.bottom)/2,_=n.arcWidth===0?0:t.N(h-n.arcWidth,0,h-1),S=this._height/2+(s?h/2:l?-h/2:0),C=this._width/2+(u?h/2:c?-h/2:0),w=`translate(${C},${S})`;this.arcGroup.attr(`transform`,w),this.arcGen.startAngle(e=>e.startAngle).endAngle(e=>e.endAngle).innerRadius(e=>e.innerRadius).outerRadius(e=>e.outerRadius).padAngle(e=>e.padAngle).cornerRadius(n.cornerRadius);let O=g().startAngle(n.angleRange?.[0]??0).endAngle(n.angleRange?.[1]??2*Math.PI).padAngle(n.padAngle).value(e=>t.V(e.datum,n.value,e.index)||0).sort((e,t)=>n.sortFunction?.call(n,e.datum,t.datum))(a).map(e=>{let t=Object.assign(Object.assign({},e),{data:e.data.datum,index:e.data.index,innerRadius:_,outerRadius:h});return n.showEmptySegments&&e.endAngle-e.startAngle-e.padAngle<=2**-52&&(t.endAngle=e.startAngle+Math.max(n.emptySegmentAngle,n.padAngle),t.padAngle=e.padAngle/2),t}),k=this.arcGroup.selectAll(`.${E}`).data(O,e=>n.id(e.data,e.index)),A=k.enter().append(`path`).attr(`class`,E).call(v,n),j=k.merge(A);j.call(y,n,this.arcGen,o),j.sort((e,t)=>t.value-e.value),k.exit().attr(`class`,D).call(b,o);let M=c?`start`:u?`end`:`middle`;this.centralLabel.attr(`dy`,n.centralSubLabel?`-0.55em`:null).style(`text-anchor`,M).text(n.centralLabel??null),this.centralSubLabel.attr(`dy`,n.centralLabel?`0.55em`:null).style(`text-anchor`,M).text(n.centralSubLabel??null),n.centralSubLabelWrap&&t.f(this.centralSubLabel,_*1.9);let N=(n.centralLabelOffsetX||0)+C,P=(n.centralLabelOffsetY||0)+S;d&&n.centralLabelOffsetX===void 0&&n.centralLabelOffsetY===void 0&&(P=(s?-this.centralSubLabel.node().getBoundingClientRect().height:l?this.centralLabel.node().getBoundingClientRect().height:0)+S);let F=`translate(${N},${P})`;this.centralLabel.attr(`transform`,F),this.centralSubLabel.attr(`transform`,F),this.arcBackground.attr(`class`,T).attr(`visibility`,n.showBackground?null:`hidden`).attr(`transform`,w),t.S(this.arcBackground,o).attr(`d`,this.arcGen({startAngle:n.backgroundAngleRange?.[0]??n.angleRange?.[0]??0,endAngle:n.backgroundAngleRange?.[1]??n.angleRange?.[1]??2*Math.PI,innerRadius:_,outerRadius:h}))}};A.selectors=S;var j={"data-vis-component":``};A.selectors;var M=(0,r.defineComponent)({__name:`index`,props:{id:{type:Function},value:{type:[Function,Number,null]},angleRange:{},padAngle:{},sortFunction:{type:Function},cornerRadius:{},color:{type:[Function,String,Array,null]},radius:{},arcWidth:{},centralLabel:{},centralSubLabel:{},centralSubLabelWrap:{type:Boolean},showEmptySegments:{type:Boolean},emptySegmentAngle:{},showBackground:{type:Boolean},backgroundAngleRange:{},centralLabelOffsetX:{},centralLabelOffsetY:{},duration:{},events:{},attributes:{},data:{}},setup(e,{expose:n}){let i=(0,r.inject)(t.r),a=e,o=(0,r.computed)(()=>i.data.value??a.data),s=t.s(a),c=(0,r.ref)();return(0,r.onMounted)(()=>{(0,r.nextTick)(()=>{var e;c.value=new A(s.value),(e=c.value)==null||e.setData(o.value),i.update(c.value)})}),(0,r.onUnmounted)(()=>{var e;(e=c.value)==null||e.destroy(),i.destroy()}),(0,r.watch)(s,(e,n)=>{var r;t.o(e,n)||(r=c.value)==null||r.setConfig(s.value)}),(0,r.watch)(o,()=>{var e;(e=c.value)==null||e.setData(o.value)}),n({component:c}),(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)(`div`,j))}}),N=(0,r.defineComponent)({__name:`index`,props:{component:{},tooltip:{},annotations:{},onRenderComplete:{type:Function},duration:{},margin:{},padding:{},sizing:{},width:{},height:{},svgDefs:{},ariaLabel:{},data:{}},setup(e,{expose:n}){let i=e,{data:o}=(0,r.toRefs)(i),s=t.s(i),c,l=(0,r.reactive)({component:void 0,tooltip:void 0,annotations:void 0}),u=(0,r.ref)(),d=()=>{c||u.value&&l.component&&(c=new a(u.value,{...(0,r.toRaw)(l)},o.value))};return(0,r.watchEffect)(()=>{var e;d(),(e=l.component)==null||e.config,c?.updateContainer({...(0,r.toRaw)(s.value),...(0,r.toRaw)(l)})}),(0,r.watch)(o,()=>{c?c.setData(o.value,!0):d()}),(0,r.onUnmounted)(()=>c?.destroy()),(0,r.provide)(t.r,{data:o,update:e=>l.component=e,destroy:()=>l.component=void 0}),(0,r.provide)(t.i,{data:o,update:e=>l.tooltip=e,destroy:()=>{l.tooltip=void 0}}),(0,r.provide)(t.a,{data:o,update:e=>l.annotations=e,destroy:()=>{l.annotations=void 0}}),n({component:c}),(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)(`div`,{"data-vis-single-container":``,ref_key:`elRef`,ref:u,class:`unovis-single-container`},[(0,r.renderSlot)(e.$slots,`default`)],512))}});Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return M}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return N}});
|
package/dist/src/vue-shim.d.ts
DELETED
package/dist/table-DWw0fs3S.js
DELETED
|
@@ -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.createBlock)((0,t.resolveDynamicComponent)((0,t.unref)(r)),{config:n.config},null,8,[`config`]))}});exports.default=n;
|