@oneclick.dev/cms-core-modules 0.0.109 → 0.0.111
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-DgzDQH51.js +1 -0
- package/dist/Acquisition-FV3QpaUX.mjs +400 -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-BSgNvcVb.js +1 -0
- package/dist/Audience-ka0b7YPE.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-pZPfo0qN.mjs +30802 -0
- package/dist/ContentEditor-tYkh4vRV.js +462 -0
- package/dist/CountryBreakdownCard-D7BK3nRD.js +1 -0
- package/dist/CountryBreakdownCard-DVxNz2DJ.mjs +196 -0
- package/dist/Create--MOBOTA-.js +1 -0
- package/dist/Create-BXNLRQag.mjs +1251 -0
- package/dist/DateFormatter-CSAbE3BC.js +1 -0
- package/dist/DateFormatter-qbhRYxI_.mjs +738 -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-C8wQiDcv.js +1 -0
- package/dist/Detail-CPqug27l.js +1 -0
- package/dist/Detail-ChD5XurA.mjs +379 -0
- package/dist/Detail-CjuhjPby.js +1 -0
- package/dist/Detail-DnX7tsqN.mjs +649 -0
- package/dist/Detail-RISEJJab.js +1 -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-zN_dKz4p.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-Baqy-rTT.js +1 -0
- package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-Dx4Bpa2m.mjs +1263 -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-98nkJUWN.mjs +481 -0
- package/dist/Overview-BCpJNiEB.mjs +190 -0
- package/dist/Overview-BDlBCUI_.js +1 -0
- package/dist/Overview-BR_y8x3W.mjs +860 -0
- package/dist/Overview-BbvfH1u-.js +1 -0
- package/dist/Overview-Bn1Xx3_j.js +1 -0
- package/dist/Overview-CIa1E-HH.mjs +178 -0
- package/dist/Overview-CX-n6W7d.js +1 -0
- package/dist/Overview-DAxCu9XC.js +1 -0
- package/dist/Overview-Dl8cMlsr.js +1 -0
- package/dist/Overview-MpgkLB6m.mjs +567 -0
- package/dist/Overview-Su8ZUbMs.mjs +26 -0
- package/dist/Overview-T-lsy3UZ.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-C5npw7mE.js +1 -0
- package/dist/SeoHealth-bVQj_Xgm.mjs +615 -0
- package/dist/TableView-Bf1fdJrD.mjs +6159 -0
- package/dist/TableView-DNcXyIMu.js +4 -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-BaJu3-1c.js +1 -0
- package/dist/agenda-BwVY_8oM.mjs +1165 -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-B6P9UiCj.js +1 -0
- package/dist/exceptions-De9-FvdP.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-B8GvmAwh.mjs +1403 -0
- package/dist/index-BIF2RB7k.mjs +2836 -0
- package/dist/index-BWDwEd8D.mjs +24 -0
- package/dist/index-BfBBm9uY.mjs +24 -0
- package/dist/index-Bkq58CeQ.mjs +22 -0
- package/dist/index-ByRsp77L.js +70 -0
- package/dist/index-CFzn2Lus.mjs +172 -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-CkVwMqpn.mjs +3857 -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-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-DFQGVHTs.js +1 -0
- package/dist/index-DL6orwdK.js +35 -0
- package/dist/index-DPd3waTN.js +1 -0
- package/dist/index-DRqJOqUR.mjs +3484 -0
- package/dist/index-DUlYrnXH.js +58 -0
- package/dist/index-DZV720u-.mjs +439 -0
- package/dist/index-D_nfGegA.js +184 -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-DtSvAFLL.js +54 -0
- package/dist/index-L54VBzwJ.mjs +109 -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-cOnxXTbF.mjs +24 -0
- package/dist/index-hH3e-IYz.mjs +1187 -0
- package/dist/index-hlylYYgy.mjs +24 -0
- package/dist/index-ijdf0d9-.js +1 -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/math-BJ-oX_IM.mjs +80 -0
- package/dist/math-emotyaF6.js +1 -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-CxeFd57z.js +1 -0
- package/dist/resources-DwYxn2Vi.mjs +811 -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/ScopedSelectAll.d.ts +1 -2
- 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-extensions/helpers/useFocus.d.ts +1 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/BubbleMenuClassBuilder.vue.d.ts +19 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/BubbleMenuLinkBuilder.vue.d.ts +19 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/BubbleMenuToggleButton.vue.d.ts +29 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/DefaultBubbleMenu.vue.d.ts +13 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/ElementEditorMenu.vue.d.ts +19 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/EmojiMenu.vue.d.ts +8 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/NewNodeView.vue.d.ts +47 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/SlashMenu.vue.d.ts +6 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/SlashMenuButton.vue.d.ts +17 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/ButtonMenu.vue.d.ts +13 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/CardMenu.vue.d.ts +13 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/ColumnMenu.vue.d.ts +13 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/DividerMenu.vue.d.ts +13 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/EmptySpaceMenu.vue.d.ts +13 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/HeadingMenu.vue.d.ts +13 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/ImageMenu.vue.d.ts +13 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/MapMenu.vue.d.ts +13 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/RowMenu.vue.d.ts +13 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/StackMenu.vue.d.ts +13 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/TextMenu.vue.d.ts +13 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/VideoMenu.vue.d.ts +13 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/index.d.ts +132 -12
- package/dist/src/contentManager/components/overview/CollectionDialog.vue.d.ts +30 -0
- package/dist/src/contentManager/components/overview/CollectionsGridView.vue.d.ts +18 -0
- package/dist/src/contentManager/components/overview/ContentEntryContextMenu.vue.d.ts +27 -0
- package/dist/src/contentManager/components/overview/FilterPopover.vue.d.ts +2 -0
- package/dist/src/contentManager/components/overview/ListView.vue.d.ts +12 -0
- package/dist/src/contentManager/components/styling/ButtonStyleDialog.vue.d.ts +24 -0
- package/dist/src/contentManager/components/styling/CardStyleDialog.vue.d.ts +24 -0
- package/dist/src/contentManager/components/styling/SectionStyleDialog.vue.d.ts +24 -0
- package/dist/src/contentManager/index.d.ts +14 -5
- package/dist/src/contentManager/index.vue.d.ts +22 -0
- package/dist/src/contentManager/metadata.d.ts +1 -1
- package/dist/src/contentManager/pages/Components.vue.d.ts +27 -0
- package/dist/src/contentManager/pages/ContentEditor.vue.d.ts +14 -0
- package/dist/src/contentManager/pages/Entries.vue.d.ts +16 -0
- package/dist/src/contentManager/pages/GlobalStyling.vue.d.ts +117 -0
- package/dist/src/contentManager/pages/Overview.vue.d.ts +57 -0
- package/dist/src/contentManager/routes.d.ts +12 -3
- package/dist/src/custom/index.d.ts +2 -2
- package/dist/src/custom/index.vue.d.ts +2 -0
- package/dist/src/custom/pages/View.vue.d.ts +2 -0
- package/dist/src/custom/routes.d.ts +1 -1
- package/dist/src/googleAnalytics/chat-components/CountryBreakdownCard.vue.d.ts +14 -0
- package/dist/src/googleAnalytics/chat-components/DeviceBreakdownCard.vue.d.ts +14 -0
- package/dist/src/googleAnalytics/chat-components/PeakHoursCard.vue.d.ts +14 -0
- package/dist/src/googleAnalytics/chat-components/RealtimeCard.vue.d.ts +14 -0
- package/dist/src/googleAnalytics/chat-components/SearchTermsCard.vue.d.ts +14 -0
- package/dist/src/googleAnalytics/chat-components/TopPagesCard.vue.d.ts +14 -0
- package/dist/src/googleAnalytics/chat-components/TrafficSourcesCard.vue.d.ts +14 -0
- package/dist/src/googleAnalytics/chat-components/VisitorStatsCard.vue.d.ts +14 -0
- package/dist/src/googleAnalytics/components/seo-health/SeoClicksChart.vue.d.ts +5 -0
- package/dist/src/googleAnalytics/components/seo-health/SeoImpressionsChart.vue.d.ts +5 -0
- package/dist/src/googleAnalytics/components/seo-health/SeoKeywordsTab.vue.d.ts +5 -0
- package/dist/src/googleAnalytics/components/seo-health/SeoKpiCards.vue.d.ts +10 -0
- package/dist/src/googleAnalytics/components/seo-health/SeoMappingTab.vue.d.ts +5 -0
- package/dist/src/googleAnalytics/components/seo-health/SeoPagesTab.vue.d.ts +5 -0
- package/dist/src/googleAnalytics/components/seo-health/SeoRankingDistribution.vue.d.ts +5 -0
- package/dist/src/googleAnalytics/index.d.ts +10 -10
- package/dist/src/googleAnalytics/index.vue.d.ts +2 -0
- package/dist/src/googleAnalytics/pages/Acquisition.vue.d.ts +2 -0
- package/dist/src/googleAnalytics/pages/Audience.vue.d.ts +2 -0
- package/dist/src/googleAnalytics/pages/Content.vue.d.ts +2 -0
- package/dist/src/googleAnalytics/pages/Overview.vue.d.ts +2 -0
- package/dist/src/googleAnalytics/pages/SeoHealth.vue.d.ts +2 -0
- package/dist/src/googleAnalytics/routes.d.ts +1 -1
- package/dist/src/mailTemplates/components/TemplateList.vue.d.ts +2 -0
- package/dist/src/mailTemplates/index.d.ts +3 -3
- package/dist/src/mailTemplates/index.vue.d.ts +22 -0
- package/dist/src/mailTemplates/metadata.d.ts +1 -1
- package/dist/src/mailTemplates/pages/Detail.vue.d.ts +14 -0
- package/dist/src/mailTemplates/pages/Overview.vue.d.ts +14 -0
- package/dist/src/mailTemplates/routes.d.ts +1 -1
- package/dist/src/productCollections/components/detail/Main.vue.d.ts +2 -0
- package/dist/src/productCollections/components/detail/SEO.vue.d.ts +2 -0
- package/dist/src/productCollections/components/detail/Status.vue.d.ts +2 -0
- package/dist/src/productCollections/components/overview/ListView.vue.d.ts +12 -0
- package/dist/src/productCollections/index.d.ts +3 -3
- package/dist/src/productCollections/index.vue.d.ts +22 -0
- package/dist/src/productCollections/metadata.d.ts +1 -1
- package/dist/src/productCollections/pages/Detail.vue.d.ts +14 -0
- package/dist/src/productCollections/pages/Overview.vue.d.ts +16 -0
- package/dist/src/productCollections/routes.d.ts +1 -1
- package/dist/src/products/chat-components/ProductDetailsCard.vue.d.ts +14 -0
- package/dist/src/products/components/detail/Collections.vue.d.ts +14 -0
- package/dist/src/products/components/detail/Inventory.vue.d.ts +2 -0
- package/dist/src/products/components/detail/Main.vue.d.ts +2 -0
- package/dist/src/products/components/detail/NewSection.vue.d.ts +2 -0
- package/dist/src/products/components/detail/Price.vue.d.ts +2 -0
- package/dist/src/products/components/detail/SEO.vue.d.ts +2 -0
- package/dist/src/products/components/detail/Shipping.vue.d.ts +2 -0
- package/dist/src/products/components/detail/Status.vue.d.ts +2 -0
- package/dist/src/products/components/detail/price/UnitPriceDialog.vue.d.ts +17 -0
- package/dist/src/products/components/detail/variants/Option.vue.d.ts +33 -0
- package/dist/src/products/components/detail/variants/VariantList.vue.d.ts +38 -0
- package/dist/src/products/components/overview/FilterPopover.vue.d.ts +2 -0
- package/dist/src/products/components/overview/GridView.vue.d.ts +12 -0
- package/dist/src/products/components/overview/ListView.vue.d.ts +12 -0
- package/dist/src/products/components/overview/ProductContextMenu.vue.d.ts +27 -0
- package/dist/src/products/index.d.ts +4 -4
- package/dist/src/products/index.vue.d.ts +22 -0
- package/dist/src/products/metadata.d.ts +1 -1
- package/dist/src/products/pages/Detail.vue.d.ts +14 -0
- package/dist/src/products/pages/Overview.vue.d.ts +16 -0
- package/dist/src/products/routes.d.ts +1 -1
- package/dist/src/promoCodes/components/create/DateRange.vue.d.ts +2 -0
- package/dist/src/promoCodes/components/create/MultiCodes.vue.d.ts +2 -0
- package/dist/src/promoCodes/components/create/Note.vue.d.ts +2 -0
- package/dist/src/promoCodes/components/create/SingleCode.vue.d.ts +2 -0
- package/dist/src/promoCodes/components/create/TypeAndValue/TypeDetailDialog.vue.d.ts +6 -0
- package/dist/src/promoCodes/components/create/TypeAndValue/TypeManageDialog.vue.d.ts +18 -0
- package/dist/src/promoCodes/components/create/TypeAndValue/index.vue.d.ts +2 -0
- package/dist/src/promoCodes/index.d.ts +3 -3
- package/dist/src/promoCodes/index.vue.d.ts +22 -0
- package/dist/src/promoCodes/metadata.d.ts +1 -1
- package/dist/src/promoCodes/pages/Create.vue.d.ts +16 -0
- package/dist/src/promoCodes/pages/Detail.vue.d.ts +14 -0
- package/dist/src/promoCodes/pages/Find.vue.d.ts +16 -0
- package/dist/src/promoCodes/routes.d.ts +1 -1
- package/dist/src/push-notifications/components/PreviewAndroid.vue.d.ts +28 -0
- package/dist/src/push-notifications/components/PreviewIPhone.vue.d.ts +28 -0
- package/dist/src/push-notifications/components/PushPreview.vue.d.ts +28 -0
- package/dist/src/push-notifications/index.d.ts +3 -3
- package/dist/src/push-notifications/index.vue.d.ts +22 -0
- package/dist/src/push-notifications/metadata.d.ts +1 -1
- package/dist/src/push-notifications/pages/SendPush.vue.d.ts +14 -0
- package/dist/src/push-notifications/routes.d.ts +1 -1
- package/dist/src/shared/BrandLogo.vue.d.ts +12 -0
- package/dist/src/shared/DrawerToggle.vue.d.ts +60 -0
- package/dist/src/shared/VerticalToggle.vue.d.ts +60 -0
- package/dist/src/shippingOptions/components/detail/Condition.vue.d.ts +2 -0
- package/dist/src/shippingOptions/components/detail/Countries.vue.d.ts +2 -0
- package/dist/src/shippingOptions/components/detail/Example.vue.d.ts +2 -0
- package/dist/src/shippingOptions/components/detail/Main.vue.d.ts +2 -0
- package/dist/src/shippingOptions/components/overview/ListView.vue.d.ts +12 -0
- package/dist/src/shippingOptions/index.d.ts +3 -3
- package/dist/src/shippingOptions/index.vue.d.ts +22 -0
- package/dist/src/shippingOptions/metadata.d.ts +1 -1
- package/dist/src/shippingOptions/pages/Detail.vue.d.ts +14 -0
- package/dist/src/shippingOptions/pages/Overview.vue.d.ts +16 -0
- package/dist/src/shippingOptions/routes.d.ts +1 -1
- package/dist/src/table/components/DataTable.vue.d.ts +18 -0
- package/dist/src/table/components/DataTableAction.vue.d.ts +14 -0
- package/dist/src/table/components/DataTableMobileRowActionDrawer.vue.d.ts +4 -0
- package/dist/src/table/components/DataTablePagination.vue.d.ts +6 -0
- package/dist/src/table/components/actions/ActionDialog.vue.d.ts +19 -0
- package/dist/src/table/components/actions/CtaActionDialog.vue.d.ts +4 -0
- package/dist/src/table/components/columns/ColumnDropdown.vue.d.ts +2 -0
- package/dist/src/table/components/columns/ColumnEditorDialog.vue.d.ts +34 -0
- package/dist/src/table/components/columns/DialogTableColumnItem.vue.d.ts +12 -0
- package/dist/src/table/components/date-range-filter/DateRangeFilter.vue.d.ts +2 -0
- package/dist/src/table/components/date-range-filter/DateRangeSettingsDialog.vue.d.ts +27 -0
- package/dist/src/table/components/filters/FilterDialog.vue.d.ts +12 -0
- package/dist/src/table/components/filters/Filters.vue.d.ts +27 -0
- package/dist/src/table/components/search/Search.vue.d.ts +2 -0
- package/dist/src/table/components/sort/SortMode.vue.d.ts +2 -0
- package/dist/src/table/components/sort/SortModeSettingsDialog.vue.d.ts +18 -0
- package/dist/src/table/components/stats/StatDialog.vue.d.ts +12 -0
- package/dist/src/table/components/stats/Stats.vue.d.ts +27 -0
- package/dist/src/table/flow-builder-extensions/TableRowEditor.vue.d.ts +16 -0
- package/dist/src/table/flow-builder-extensions/row-item.d.ts +17 -3
- package/dist/src/table/index.d.ts +2 -2
- package/dist/src/table/index.vue.d.ts +22 -0
- package/dist/src/table/pages/TableView.vue.d.ts +54 -0
- package/dist/src/table/routes.d.ts +1 -1
- package/dist/src/types/index.d.ts +0 -6
- package/dist/utils-CanmrIWO.mjs +47 -0
- package/dist/utils-Yd6F5mea.js +3 -0
- package/dist/vee-validate-zod-ByykgYKJ.js +1 -0
- package/dist/vee-validate-zod-DNjTLCgh.mjs +4402 -0
- package/package.json +56 -55
- package/dist/Acquisition-DypEyPSO.js +0 -1
- package/dist/Acquisition-TCNX-th6.mjs +0 -308
- package/dist/AgendaOpeningHoursCard-BIhm0vpV.js +0 -1
- package/dist/AgendaOpeningHoursCard-BKUdJxRI.mjs +0 -133
- package/dist/AppointmentDetailsCard-C5rQ5jsW.js +0 -1
- package/dist/AppointmentDetailsCard-NRHeNP2L.mjs +0 -111
- package/dist/AppointmentEditor-BcF8CiD-.mjs +0 -150
- package/dist/AppointmentEditor-BlhFtoCm.js +0 -1
- package/dist/AppointmentListTable-B-ReBVtV.js +0 -1
- package/dist/AppointmentListTable-DHmy-iid.mjs +0 -129
- package/dist/Audience-CfWHjjg8.mjs +0 -394
- package/dist/Audience-Cj4TyauW.js +0 -1
- package/dist/Components-BehelN4r.js +0 -1
- package/dist/Components-CR6zukUU.mjs +0 -468
- package/dist/Content-C5Iye3t0.mjs +0 -257
- package/dist/Content-eOfBx52Y.js +0 -1
- package/dist/ContentEditor-BgL4qEeg.mjs +0 -26835
- package/dist/ContentEditor-Tlu3w0Hu.js +0 -462
- package/dist/CountryBreakdownCard-CWVyB8be.mjs +0 -151
- package/dist/CountryBreakdownCard-Db-pMiNe.js +0 -1
- package/dist/Create-B1it8S4m.js +0 -1
- package/dist/Create-DbYi0FAI.mjs +0 -907
- package/dist/DateFormatter-DLrDYkby.mjs +0 -630
- package/dist/DateFormatter-Dni0Oq8r.js +0 -1
- package/dist/Detail-D-eahJGO.mjs +0 -21
- package/dist/Detail-D0kdPPIm.mjs +0 -2757
- package/dist/Detail-DAafePYi.mjs +0 -485
- package/dist/Detail-DYpv4fYg.js +0 -1
- package/dist/Detail-Dc_ui4LM.js +0 -1
- package/dist/Detail-DccUekl_.js +0 -1
- package/dist/Detail-Dhz0V0Vf.js +0 -1
- package/dist/Detail-DjnGY0F8.mjs +0 -282
- package/dist/Detail-DplAitHg.mjs +0 -447
- package/dist/Detail-SugyeSxb.js +0 -1
- package/dist/DeviceBreakdownCard-CzxZT6To.js +0 -1
- package/dist/DeviceBreakdownCard-eEwPjzKl.mjs +0 -115
- package/dist/EditLayout-Bnz9q_jd.js +0 -1
- package/dist/EditLayout-J_DGXb8v.mjs +0 -99
- package/dist/Entries-CgpWg6fE.js +0 -1
- package/dist/Entries-CkGTXcAq.mjs +0 -575
- package/dist/Find-Bz0TNJzk.mjs +0 -164
- package/dist/Find-D-ItTXaZ.js +0 -1
- package/dist/GlobalStyling-CSQPF7o_.mjs +0 -1162
- package/dist/GlobalStyling-DabldMZh.js +0 -15
- package/dist/NewReservationDialog-BhIiY2B9.js +0 -1
- package/dist/NewReservationDialog-CN49aGcM.mjs +0 -1002
- package/dist/OrderDetailDialog-BJ01DZFe.js +0 -1
- package/dist/OrderDetailDialog-CoVQ_rzs.mjs +0 -215
- package/dist/Overview-9FMgn5hT.mjs +0 -492
- package/dist/Overview-BOOwMQ-c.mjs +0 -636
- package/dist/Overview-Biz3h60w.js +0 -1
- package/dist/Overview-C2K2ofdS.js +0 -1
- package/dist/Overview-CFHOXP9N.mjs +0 -123
- package/dist/Overview-CTJe7J5_.js +0 -1
- package/dist/Overview-Cvj2i9eW.js +0 -1
- package/dist/Overview-D2I1F8Dm.mjs +0 -21
- package/dist/Overview-DFOc9emt.mjs +0 -345
- package/dist/Overview-Dmhfb94Y.js +0 -1
- package/dist/Overview-PPzv7weG.mjs +0 -450
- package/dist/Overview-qFKcXHVF.js +0 -1
- package/dist/Overview-xkmYYTae.mjs +0 -133
- package/dist/Overview-yPsLvR2c.js +0 -1
- package/dist/PeakHoursCard-CtgEP-ez.mjs +0 -157
- package/dist/PeakHoursCard-DPeoMyhu.js +0 -1
- package/dist/ProductDetailsCard-B0WhmzO-.mjs +0 -98
- package/dist/ProductDetailsCard-C1ROuH6l.js +0 -1
- package/dist/RealtimeCard-DQno-Okz.js +0 -1
- package/dist/RealtimeCard-dR-g1iDo.mjs +0 -92
- package/dist/ReservationDetailDialog-Cdo6h0RD.mjs +0 -2163
- package/dist/ReservationDetailDialog-DZTFD2xI.js +0 -349
- package/dist/SearchTermsCard-BXJSXz_k.js +0 -1
- package/dist/SearchTermsCard-DsaxLKwP.mjs +0 -146
- package/dist/SendPush-Bssi-OZD.mjs +0 -150
- package/dist/SendPush-BuaYboRH.js +0 -1
- package/dist/SeoHealth-CP-kL0us.js +0 -1
- package/dist/SeoHealth-Cxp_Gb3Y.mjs +0 -459
- package/dist/TableView-7iwBkQ_k.mjs +0 -4757
- package/dist/TableView-BB_oIYYZ.js +0 -4
- package/dist/TemplateList-CNcM_Kgq.mjs +0 -56
- package/dist/TemplateList-VuPcBUJO.js +0 -1
- package/dist/TopPagesCard-CvDECn3_.mjs +0 -117
- package/dist/TopPagesCard-DNdATXJE.js +0 -1
- package/dist/TrafficSourcesCard-BLpBr7u0.mjs +0 -151
- package/dist/TrafficSourcesCard-_3gRUCw3.js +0 -1
- package/dist/View-DSnUHI7h.mjs +0 -30
- package/dist/View-Dbcfpdqh.js +0 -1
- package/dist/VisitorStatsCard-CFEnXSjF.mjs +0 -185
- package/dist/VisitorStatsCard-C_jhQxDW.js +0 -1
- package/dist/_plugin-vue_export-helper-5u7tqpWC.js +0 -1
- package/dist/_plugin-vue_export-helper-BJQSo0im.mjs +0 -8
- package/dist/agenda-CzMRcQTA.mjs +0 -989
- package/dist/agenda-D4zWRYSQ.js +0 -1
- package/dist/appointments-9syR5TZE.js +0 -1
- package/dist/appointments-BBmOJMhM.mjs +0 -23
- package/dist/array-BH1uH7XT.js +0 -1
- package/dist/array-DnDL9cFz.mjs +0 -98
- package/dist/availability-CAXB7Yd6.js +0 -1
- package/dist/availability-Dp7eF-ZK.mjs +0 -215
- package/dist/booking-data-Bysf6e5x.mjs +0 -724
- package/dist/booking-data-C6SGjC2X.js +0 -1
- package/dist/chunk-DQi1bQcV.js +0 -1
- package/dist/contentManager-D7JxXCwE.js +0 -1
- package/dist/contentManager-tfy0x1LD.mjs +0 -22
- package/dist/context-AQKfnJ4t.mjs +0 -3809
- package/dist/context-ubyMq9Xe.js +0 -54
- package/dist/core-Dhgr4ctC.mjs +0 -202
- package/dist/core-_HKfBlaZ.js +0 -1
- package/dist/countries-MXLT3mVe.mjs +0 -4
- package/dist/countries-OCd5qPxG.js +0 -1
- package/dist/create-BfNc2C7N.js +0 -1
- package/dist/create-C7JlIlIh.mjs +0 -95
- package/dist/custom-BwN9-6Mb.js +0 -1
- package/dist/custom-INNwaWla.mjs +0 -13
- package/dist/dist-BCVg7FKM.js +0 -1
- package/dist/dist-DIhK9VWh.mjs +0 -3045
- package/dist/edit-BiI2VG60.js +0 -35
- package/dist/edit-DD3iFBEh.mjs +0 -1097
- package/dist/exceptions-DICMaDcH.mjs +0 -462
- package/dist/exceptions-DpWqMNuG.js +0 -1
- package/dist/google-Bcc4XZnV.mjs +0 -4
- package/dist/google-DTSRmJ51.js +0 -1
- package/dist/googleAnalytics-BSaqRR_L.js +0 -1
- package/dist/googleAnalytics-Cg-iWblZ.mjs +0 -47
- package/dist/interpolation-B8OzkMyi.mjs +0 -131
- package/dist/interpolation-DpAqtGOW.js +0 -1
- package/dist/lib-4wSi00Vr.js +0 -1
- package/dist/lib-BZgXUui5.mjs +0 -198
- package/dist/line-DJdnFNI7.js +0 -75
- package/dist/line-tYLnEDGV.mjs +0 -1500
- package/dist/mailTemplates-BNk8fhVS.mjs +0 -23
- package/dist/mailTemplates-DswHzyQe.js +0 -1
- package/dist/orders-CIc0JlKX.mjs +0 -512
- package/dist/orders-DwPSi_pD.js +0 -1
- package/dist/payment-BsNWFaDm.js +0 -1
- package/dist/payment-Ced5_dpa.mjs +0 -718
- package/dist/productCollections-Cuvw_8zC.js +0 -1
- package/dist/productCollections-D0AxRlzr.mjs +0 -23
- package/dist/products-DUD-ZMkR.mjs +0 -22
- package/dist/products-DvX9B-Ul.js +0 -1
- package/dist/promoCodes-BCWqN6w4.mjs +0 -23
- package/dist/promoCodes-CEZ4LYot.js +0 -1
- package/dist/push-notifications-BGp4XWo9.js +0 -1
- package/dist/push-notifications-C7W7KuzR.mjs +0 -23
- package/dist/regular-BCFrS6lK.mjs +0 -908
- package/dist/regular-DBqPgT8C.js +0 -1
- package/dist/resources-DwsMmWgm.mjs +0 -669
- package/dist/resources-Dz81GkHe.js +0 -1
- package/dist/shippingOptions-C3NEJff1.mjs +0 -23
- package/dist/shippingOptions-Cy040ZW1.js +0 -1
- package/dist/single-container-BJmmqq65.mjs +0 -468
- package/dist/single-container-Xoo0Xzxv.js +0 -58
- package/dist/src/vue-shim.d.ts +0 -7
- package/dist/table-DWw0fs3S.js +0 -1
- package/dist/table-LXt5DQOL.mjs +0 -23
- package/dist/utils-CVIHqQsU.js +0 -3
- package/dist/utils-h3owcMtS.mjs +0 -37
- package/dist/vee-validate-zod-BmXMJo8W.js +0 -1
- package/dist/vee-validate-zod-D9dZzbWZ.mjs +0 -4985
- package/dist/xy-container-CuQSwrtB.mjs +0 -3180
- package/dist/xy-container-_6YpscZh.js +0 -158
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { defineComponent as F, computed as w, ref as f, onMounted as B, resolveComponent as R, openBlock as d, createElementBlock as u, unref as s, createVNode as c, createElementVNode as a, toDisplayString as i, Fragment as P, renderList as O, normalizeStyle as q, createTextVNode as g, createCommentVNode as G, withCtx as H } from "vue";
|
|
2
|
+
import { Loader2 as J, FileText as S, Eye as K, Users as Q, Clock as W, ExternalLink as X } from "lucide-vue-next";
|
|
3
|
+
const Y = { class: "w-full" }, Z = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "flex items-center gap-2 py-3"
|
|
6
|
+
}, ee = {
|
|
7
|
+
key: 1,
|
|
8
|
+
class: "text-xs text-destructive py-2"
|
|
9
|
+
}, te = {
|
|
10
|
+
key: 2,
|
|
11
|
+
class: "rounded-xl border bg-background p-4 text-center"
|
|
12
|
+
}, se = {
|
|
13
|
+
key: 3,
|
|
14
|
+
class: "rounded-xl border bg-background overflow-hidden"
|
|
15
|
+
}, ae = { class: "px-3 py-2 border-b bg-muted/40 flex items-center justify-between" }, oe = { class: "flex items-center gap-2" }, ne = { class: "text-[10px] text-muted-foreground" }, re = { class: "divide-y" }, ie = { class: "flex items-center gap-2 mb-1.5" }, le = { class: "text-[10px] font-medium text-muted-foreground w-5 text-right shrink-0" }, de = ["title"], ue = { class: "ml-7 space-y-1.5" }, ce = { class: "h-1.5 rounded-full bg-muted overflow-hidden" }, me = { class: "flex items-center gap-3 text-[10px] text-muted-foreground" }, ge = { class: "flex items-center gap-1" }, pe = { class: "flex items-center gap-1" }, fe = { class: "flex items-center gap-1" }, xe = { class: "px-3 py-2 border-t bg-muted/20 flex items-center justify-between" }, ve = { class: "text-[10px] text-muted-foreground" }, ye = /* @__PURE__ */ F({
|
|
16
|
+
__name: "TopPagesCard",
|
|
17
|
+
props: {
|
|
18
|
+
toolName: {},
|
|
19
|
+
instanceId: {},
|
|
20
|
+
instanceName: {},
|
|
21
|
+
moduleType: {},
|
|
22
|
+
resolvedArgs: {},
|
|
23
|
+
status: {}
|
|
24
|
+
},
|
|
25
|
+
emits: ["submit"],
|
|
26
|
+
setup(b, { emit: $ }) {
|
|
27
|
+
const { $useRoute: L, $useModuleApi: A } = useNuxtApp(), m = b, N = $, V = L(), C = w(() => V.params.slug), M = A(m.instanceId), x = f(!0), p = f(null), r = f([]), v = f(0), h = f(null);
|
|
28
|
+
function T() {
|
|
29
|
+
const e = m.resolvedArgs?._cachedData;
|
|
30
|
+
return e ? (r.value = e.pages?.map((t) => ({
|
|
31
|
+
pagePath: t.page,
|
|
32
|
+
screenPageViews: t.views,
|
|
33
|
+
totalUsers: t.users,
|
|
34
|
+
averageSessionDuration: z(t.avgDuration)
|
|
35
|
+
})) || [], v.value = e.totalPagesTracked || r.value.length, h.value = m.resolvedArgs._fetchedAt || null, x.value = !1, !0) : !1;
|
|
36
|
+
}
|
|
37
|
+
function z(e) {
|
|
38
|
+
if (!e) return 0;
|
|
39
|
+
const t = e.match(/(\d+)m/), n = e.match(/(\d+)s/);
|
|
40
|
+
return (t ? parseInt(t[1]) * 60 : 0) + (n ? parseInt(n[1]) : 0);
|
|
41
|
+
}
|
|
42
|
+
async function I() {
|
|
43
|
+
const { startDate: e, endDate: t, limit: n } = m.resolvedArgs || {};
|
|
44
|
+
x.value = !0, p.value = null;
|
|
45
|
+
try {
|
|
46
|
+
const o = new URLSearchParams();
|
|
47
|
+
e && o.set("startDate", e), t && o.set("endDate", t), n && o.set("limit", String(n));
|
|
48
|
+
const l = await M.get(`/top-pages?${o.toString()}`);
|
|
49
|
+
r.value = l.rows || [], v.value = l.rowCount || r.value.length, h.value = (/* @__PURE__ */ new Date()).toISOString(), k({
|
|
50
|
+
count: r.value.length,
|
|
51
|
+
totalPagesTracked: v.value,
|
|
52
|
+
pages: r.value.map((_) => ({
|
|
53
|
+
page: _.pagePath,
|
|
54
|
+
views: _.screenPageViews,
|
|
55
|
+
users: _.totalUsers,
|
|
56
|
+
avgDuration: D(_.averageSessionDuration)
|
|
57
|
+
}))
|
|
58
|
+
});
|
|
59
|
+
} catch (o) {
|
|
60
|
+
p.value = o?.data?.statusMessage || o?.message || "Failed to load top pages", k(`Error loading top pages: ${p.value}`);
|
|
61
|
+
} finally {
|
|
62
|
+
x.value = !1;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
B(() => {
|
|
66
|
+
m.status === "completed" && T() || I();
|
|
67
|
+
});
|
|
68
|
+
function k(e) {
|
|
69
|
+
m.status !== "completed" && N("submit", e);
|
|
70
|
+
}
|
|
71
|
+
const D = (e) => {
|
|
72
|
+
if (!e) return "0s";
|
|
73
|
+
const t = Math.floor(e / 60), n = Math.round(e % 60);
|
|
74
|
+
return t > 0 ? `${t}m ${n}s` : `${n}s`;
|
|
75
|
+
}, y = (e) => e == null ? "0" : e.toLocaleString(), E = (e) => e ? new Date(e).toLocaleString(void 0, { month: "short", day: "numeric", hour: "2-digit", minute: "2-digit" }) : "", U = w(() => r.value.length === 0 ? 1 : Math.max(...r.value.map((e) => e.screenPageViews || 0))), j = w(() => {
|
|
76
|
+
const { startDate: e, endDate: t } = m.resolvedArgs || {};
|
|
77
|
+
if (!e && !t) return "Last 30 days";
|
|
78
|
+
const n = e || "30daysAgo", o = t || "today", l = n.match(/^(\d+)daysAgo$/);
|
|
79
|
+
return l ? `Last ${l[1]} days` : `${n} → ${o}`;
|
|
80
|
+
});
|
|
81
|
+
return (e, t) => {
|
|
82
|
+
const n = R("NuxtLink");
|
|
83
|
+
return d(), u("div", Y, [
|
|
84
|
+
s(x) ? (d(), u("div", Z, [
|
|
85
|
+
c(s(J), { class: "size-4 animate-spin text-muted-foreground" }),
|
|
86
|
+
t[0] || (t[0] = a("span", { class: "text-xs text-muted-foreground" }, "Loading top pages…", -1))
|
|
87
|
+
])) : s(p) ? (d(), u("div", ee, i(s(p)), 1)) : s(r).length === 0 ? (d(), u("div", te, [
|
|
88
|
+
c(s(S), { class: "size-8 text-muted-foreground mx-auto mb-2" }),
|
|
89
|
+
t[1] || (t[1] = a("p", { class: "text-sm text-muted-foreground" }, "No page data found for this period.", -1))
|
|
90
|
+
])) : (d(), u("div", se, [
|
|
91
|
+
a("div", ae, [
|
|
92
|
+
a("div", oe, [
|
|
93
|
+
c(s(S), { class: "size-3.5 text-primary" }),
|
|
94
|
+
t[2] || (t[2] = a("span", { class: "text-xs font-medium" }, "Most Popular Pages", -1))
|
|
95
|
+
]),
|
|
96
|
+
a("span", ne, i(s(j)), 1)
|
|
97
|
+
]),
|
|
98
|
+
a("div", re, [
|
|
99
|
+
(d(!0), u(P, null, O(s(r), (o, l) => (d(), u("div", {
|
|
100
|
+
key: l,
|
|
101
|
+
class: "px-3 py-2.5 hover:bg-muted/30 transition-colors"
|
|
102
|
+
}, [
|
|
103
|
+
a("div", ie, [
|
|
104
|
+
a("span", le, i(l + 1) + ".", 1),
|
|
105
|
+
a("span", {
|
|
106
|
+
class: "text-xs font-medium truncate flex-1",
|
|
107
|
+
title: o.pagePath
|
|
108
|
+
}, i(o.pagePath), 9, de)
|
|
109
|
+
]),
|
|
110
|
+
a("div", ue, [
|
|
111
|
+
a("div", ce, [
|
|
112
|
+
a("div", {
|
|
113
|
+
class: "h-full rounded-full bg-primary/70 transition-all",
|
|
114
|
+
style: q({ width: `${(o.screenPageViews || 0) / s(U) * 100}%` })
|
|
115
|
+
}, null, 4)
|
|
116
|
+
]),
|
|
117
|
+
a("div", me, [
|
|
118
|
+
a("span", ge, [
|
|
119
|
+
c(s(K), { class: "size-2.5" }),
|
|
120
|
+
g(" " + i(y(o.screenPageViews)) + " views ", 1)
|
|
121
|
+
]),
|
|
122
|
+
a("span", pe, [
|
|
123
|
+
c(s(Q), { class: "size-2.5" }),
|
|
124
|
+
g(" " + i(y(o.totalUsers)) + " users ", 1)
|
|
125
|
+
]),
|
|
126
|
+
a("span", fe, [
|
|
127
|
+
c(s(W), { class: "size-2.5" }),
|
|
128
|
+
g(" " + i(D(o.averageSessionDuration)), 1)
|
|
129
|
+
])
|
|
130
|
+
])
|
|
131
|
+
])
|
|
132
|
+
]))), 128))
|
|
133
|
+
]),
|
|
134
|
+
a("div", xe, [
|
|
135
|
+
a("span", ve, [
|
|
136
|
+
g(" Top " + i(s(r).length) + " of " + i(y(s(v))) + " pages ", 1),
|
|
137
|
+
s(h) ? (d(), u(P, { key: 0 }, [
|
|
138
|
+
g(" · fetched " + i(E(s(h))), 1)
|
|
139
|
+
], 64)) : G("", !0)
|
|
140
|
+
]),
|
|
141
|
+
c(n, {
|
|
142
|
+
to: `/projects/${s(C)}/modules/${b.instanceId}`,
|
|
143
|
+
class: "inline-flex items-center gap-1.5 text-xs text-primary hover:underline"
|
|
144
|
+
}, {
|
|
145
|
+
default: H(() => [
|
|
146
|
+
c(s(X), { class: "size-3" }),
|
|
147
|
+
t[3] || (t[3] = g(" View full report ", -1))
|
|
148
|
+
]),
|
|
149
|
+
_: 1
|
|
150
|
+
}, 8, ["to"])
|
|
151
|
+
])
|
|
152
|
+
]))
|
|
153
|
+
]);
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
export {
|
|
158
|
+
ye as default
|
|
159
|
+
};
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import { defineComponent as B, computed as _, ref as x, onMounted as q, resolveComponent as O, openBlock as r, createElementBlock as a, unref as s, createVNode as m, createElementVNode as n, toDisplayString as d, Fragment as y, renderList as k, normalizeStyle as H, normalizeClass as U, createCommentVNode as S, createTextVNode as w, withCtx as J } from "vue";
|
|
2
|
+
import { Loader2 as K, Globe as z, MousePointerClick as Q, Users as W, ExternalLink as X } from "lucide-vue-next";
|
|
3
|
+
const Y = { class: "w-full" }, Z = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "flex items-center gap-2 py-3"
|
|
6
|
+
}, ee = {
|
|
7
|
+
key: 1,
|
|
8
|
+
class: "text-xs text-destructive py-2"
|
|
9
|
+
}, se = {
|
|
10
|
+
key: 2,
|
|
11
|
+
class: "rounded-xl border bg-background p-4 text-center"
|
|
12
|
+
}, te = {
|
|
13
|
+
key: 3,
|
|
14
|
+
class: "rounded-xl border bg-background overflow-hidden"
|
|
15
|
+
}, ne = { class: "px-3 py-2 border-b bg-muted/40 flex items-center justify-between" }, oe = { class: "flex items-center gap-2" }, re = { class: "text-[10px] text-muted-foreground" }, ae = {
|
|
16
|
+
key: 0,
|
|
17
|
+
class: "px-3 pt-3 pb-2"
|
|
18
|
+
}, le = { class: "h-3 rounded-full bg-muted overflow-hidden flex" }, ie = ["title"], ue = { class: "flex flex-wrap gap-x-3 gap-y-1 mt-2" }, de = { class: "text-[10px] text-muted-foreground" }, ce = { class: "text-[10px] font-medium" }, me = {
|
|
19
|
+
key: 1,
|
|
20
|
+
class: "border-t"
|
|
21
|
+
}, pe = { class: "divide-y" }, ge = { class: "text-xs font-medium truncate flex-1" }, fe = { class: "flex items-center gap-3 text-[10px] text-muted-foreground shrink-0" }, xe = { class: "flex items-center gap-1" }, he = { class: "flex items-center gap-1" }, be = { class: "px-3 py-2 border-t bg-muted/20 flex items-center justify-between" }, ve = {
|
|
22
|
+
key: 0,
|
|
23
|
+
class: "text-[10px] text-muted-foreground"
|
|
24
|
+
}, ke = /* @__PURE__ */ B({
|
|
25
|
+
__name: "TrafficSourcesCard",
|
|
26
|
+
props: {
|
|
27
|
+
toolName: {},
|
|
28
|
+
instanceId: {},
|
|
29
|
+
instanceName: {},
|
|
30
|
+
moduleType: {},
|
|
31
|
+
resolvedArgs: {},
|
|
32
|
+
status: {}
|
|
33
|
+
},
|
|
34
|
+
emits: ["submit"],
|
|
35
|
+
setup(D, { emit: G }) {
|
|
36
|
+
const { $useRoute: F, $useModuleApi: R } = useNuxtApp(), c = D, T = G, j = F(), M = _(() => j.params.slug), C = R(c.instanceId), h = x(!0), g = x(null), p = x([]), u = x([]), b = x(null);
|
|
37
|
+
function V() {
|
|
38
|
+
const t = c.resolvedArgs?._cachedData;
|
|
39
|
+
return t ? (u.value = (t.topChannels || []).map((e) => ({
|
|
40
|
+
sessionDefaultChannelGroup: e.channel,
|
|
41
|
+
sessions: e.sessions,
|
|
42
|
+
totalUsers: e.users,
|
|
43
|
+
newUsers: e.newUsers,
|
|
44
|
+
engagementRate: parseFloat(e.engagementRate) / 100
|
|
45
|
+
})), p.value = (t.topSources || []).map((e) => ({
|
|
46
|
+
sessionSource: e.source,
|
|
47
|
+
sessions: e.sessions,
|
|
48
|
+
totalUsers: e.users
|
|
49
|
+
})), b.value = c.resolvedArgs._fetchedAt || null, h.value = !1, !0) : !1;
|
|
50
|
+
}
|
|
51
|
+
async function E() {
|
|
52
|
+
const { startDate: t, endDate: e } = c.resolvedArgs || {};
|
|
53
|
+
h.value = !0, g.value = null;
|
|
54
|
+
try {
|
|
55
|
+
const l = new URLSearchParams();
|
|
56
|
+
t && l.set("startDate", t), e && l.set("endDate", e);
|
|
57
|
+
const [o, f] = await Promise.all([
|
|
58
|
+
C.get(`/top-sources?${l.toString()}`),
|
|
59
|
+
C.get(`/acquisition/channels?${l.toString()}`)
|
|
60
|
+
]);
|
|
61
|
+
p.value = o.rows || [], u.value = f.rows || [], b.value = (/* @__PURE__ */ new Date()).toISOString(), $({
|
|
62
|
+
topChannels: u.value.map((i) => ({
|
|
63
|
+
channel: i.sessionDefaultChannelGroup,
|
|
64
|
+
sessions: i.sessions,
|
|
65
|
+
users: i.totalUsers,
|
|
66
|
+
newUsers: i.newUsers,
|
|
67
|
+
engagementRate: `${(i.engagementRate * 100).toFixed(1)}%`
|
|
68
|
+
})),
|
|
69
|
+
topSources: p.value.map((i) => ({
|
|
70
|
+
source: i.sessionSource,
|
|
71
|
+
sessions: i.sessions,
|
|
72
|
+
users: i.totalUsers
|
|
73
|
+
}))
|
|
74
|
+
});
|
|
75
|
+
} catch (l) {
|
|
76
|
+
g.value = l?.data?.statusMessage || l?.message || "Failed to load traffic sources", $(`Error loading traffic sources: ${g.value}`);
|
|
77
|
+
} finally {
|
|
78
|
+
h.value = !1;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
q(() => {
|
|
82
|
+
c.status === "completed" && V() || E();
|
|
83
|
+
});
|
|
84
|
+
function $(t) {
|
|
85
|
+
c.status !== "completed" && T("submit", t);
|
|
86
|
+
}
|
|
87
|
+
const v = (t) => t == null ? "0" : Math.round(t).toLocaleString(), I = (t) => t ? new Date(t).toLocaleString(void 0, { month: "short", day: "numeric", hour: "2-digit", minute: "2-digit" }) : "", L = _(() => u.value.reduce((t, e) => t + (e.sessions || 0), 0)), A = [
|
|
88
|
+
"bg-primary/70",
|
|
89
|
+
"bg-blue-500/70",
|
|
90
|
+
"bg-emerald-500/70",
|
|
91
|
+
"bg-amber-500/70",
|
|
92
|
+
"bg-purple-500/70",
|
|
93
|
+
"bg-pink-500/70",
|
|
94
|
+
"bg-cyan-500/70",
|
|
95
|
+
"bg-orange-500/70",
|
|
96
|
+
"bg-indigo-500/70",
|
|
97
|
+
"bg-rose-500/70"
|
|
98
|
+
], N = [
|
|
99
|
+
"bg-primary",
|
|
100
|
+
"bg-blue-500",
|
|
101
|
+
"bg-emerald-500",
|
|
102
|
+
"bg-amber-500",
|
|
103
|
+
"bg-purple-500",
|
|
104
|
+
"bg-pink-500",
|
|
105
|
+
"bg-cyan-500",
|
|
106
|
+
"bg-orange-500",
|
|
107
|
+
"bg-indigo-500",
|
|
108
|
+
"bg-rose-500"
|
|
109
|
+
], P = _(() => {
|
|
110
|
+
const { startDate: t, endDate: e } = c.resolvedArgs || {};
|
|
111
|
+
if (!t && !e) return "Last 30 days";
|
|
112
|
+
const l = t || "30daysAgo", o = l.match(/^(\d+)daysAgo$/);
|
|
113
|
+
return o ? `Last ${o[1]} days` : `${l} → ${e || "today"}`;
|
|
114
|
+
});
|
|
115
|
+
return (t, e) => {
|
|
116
|
+
const l = O("NuxtLink");
|
|
117
|
+
return r(), a("div", Y, [
|
|
118
|
+
s(h) ? (r(), a("div", Z, [
|
|
119
|
+
m(s(K), { class: "size-4 animate-spin text-muted-foreground" }),
|
|
120
|
+
e[0] || (e[0] = n("span", { class: "text-xs text-muted-foreground" }, "Loading traffic sources…", -1))
|
|
121
|
+
])) : s(g) ? (r(), a("div", ee, d(s(g)), 1)) : s(u).length === 0 && s(p).length === 0 ? (r(), a("div", se, [
|
|
122
|
+
m(s(z), { class: "size-8 text-muted-foreground mx-auto mb-2" }),
|
|
123
|
+
e[1] || (e[1] = n("p", { class: "text-sm text-muted-foreground" }, "No traffic source data found for this period.", -1))
|
|
124
|
+
])) : (r(), a("div", te, [
|
|
125
|
+
n("div", ne, [
|
|
126
|
+
n("div", oe, [
|
|
127
|
+
m(s(z), { class: "size-3.5 text-primary" }),
|
|
128
|
+
e[2] || (e[2] = n("span", { class: "text-xs font-medium" }, "Traffic Sources", -1))
|
|
129
|
+
]),
|
|
130
|
+
n("span", re, d(s(P)), 1)
|
|
131
|
+
]),
|
|
132
|
+
s(u).length > 0 ? (r(), a("div", ae, [
|
|
133
|
+
n("div", le, [
|
|
134
|
+
(r(!0), a(y, null, k(s(u), (o, f) => (r(), a("div", {
|
|
135
|
+
key: o.sessionDefaultChannelGroup,
|
|
136
|
+
class: U(["h-full first:rounded-l-full last:rounded-r-full", A[f % A.length]]),
|
|
137
|
+
style: H({ width: `${s(L) > 0 ? (o.sessions || 0) / s(L) * 100 : 0}%` }),
|
|
138
|
+
title: `${o.sessionDefaultChannelGroup}: ${v(o.sessions)} sessions`
|
|
139
|
+
}, null, 14, ie))), 128))
|
|
140
|
+
]),
|
|
141
|
+
n("div", ue, [
|
|
142
|
+
(r(!0), a(y, null, k(s(u).slice(0, 6), (o, f) => (r(), a("div", {
|
|
143
|
+
key: o.sessionDefaultChannelGroup,
|
|
144
|
+
class: "flex items-center gap-1.5"
|
|
145
|
+
}, [
|
|
146
|
+
n("span", {
|
|
147
|
+
class: U(["size-2 rounded-full shrink-0", N[f % N.length]])
|
|
148
|
+
}, null, 2),
|
|
149
|
+
n("span", de, d(o.sessionDefaultChannelGroup), 1),
|
|
150
|
+
n("span", ce, d(v(o.sessions)), 1)
|
|
151
|
+
]))), 128))
|
|
152
|
+
])
|
|
153
|
+
])) : S("", !0),
|
|
154
|
+
s(p).length > 0 ? (r(), a("div", me, [
|
|
155
|
+
e[3] || (e[3] = n("div", { class: "px-3 py-1.5 bg-muted/20" }, [
|
|
156
|
+
n("span", { class: "text-[10px] font-medium text-muted-foreground uppercase tracking-wide" }, "Top Sources")
|
|
157
|
+
], -1)),
|
|
158
|
+
n("div", pe, [
|
|
159
|
+
(r(!0), a(y, null, k(s(p), (o) => (r(), a("div", {
|
|
160
|
+
key: o.sessionSource,
|
|
161
|
+
class: "px-3 py-2 flex items-center justify-between hover:bg-muted/30 transition-colors"
|
|
162
|
+
}, [
|
|
163
|
+
n("span", ge, d(o.sessionSource), 1),
|
|
164
|
+
n("div", fe, [
|
|
165
|
+
n("span", xe, [
|
|
166
|
+
m(s(Q), { class: "size-2.5" }),
|
|
167
|
+
w(" " + d(v(o.sessions)), 1)
|
|
168
|
+
]),
|
|
169
|
+
n("span", he, [
|
|
170
|
+
m(s(W), { class: "size-2.5" }),
|
|
171
|
+
w(" " + d(v(o.totalUsers)), 1)
|
|
172
|
+
])
|
|
173
|
+
])
|
|
174
|
+
]))), 128))
|
|
175
|
+
])
|
|
176
|
+
])) : S("", !0),
|
|
177
|
+
n("div", be, [
|
|
178
|
+
s(b) ? (r(), a("span", ve, " Fetched " + d(I(s(b))), 1)) : S("", !0),
|
|
179
|
+
m(l, {
|
|
180
|
+
to: `/projects/${s(M)}/modules/${D.instanceId}`,
|
|
181
|
+
class: "inline-flex items-center gap-1.5 text-xs text-primary hover:underline"
|
|
182
|
+
}, {
|
|
183
|
+
default: J(() => [
|
|
184
|
+
m(s(X), { class: "size-3" }),
|
|
185
|
+
e[4] || (e[4] = w(" View full report ", -1))
|
|
186
|
+
]),
|
|
187
|
+
_: 1
|
|
188
|
+
}, 8, ["to"])
|
|
189
|
+
])
|
|
190
|
+
]))
|
|
191
|
+
]);
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
});
|
|
195
|
+
export {
|
|
196
|
+
ke as default
|
|
197
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("lucide-vue-next"),$={class:"w-full"},L={key:0,class:"flex items-center gap-2 py-3"},A={key:1,class:"text-xs text-destructive py-2"},U={key:2,class:"rounded-xl border bg-background p-4 text-center"},z={key:3,class:"rounded-xl border bg-background overflow-hidden"},T={class:"px-3 py-2 border-b bg-muted/40 flex items-center justify-between"},F={class:"flex items-center gap-2"},G={class:"text-[10px] text-muted-foreground"},j={key:0,class:"px-3 pt-3 pb-2"},M={class:"h-3 rounded-full bg-muted overflow-hidden flex"},R=["title"],I={class:"flex flex-wrap gap-x-3 gap-y-1 mt-2"},P={class:"text-[10px] text-muted-foreground"},q={class:"text-[10px] font-medium"},O={key:1,class:"border-t"},H={class:"divide-y"},J={class:"text-xs font-medium truncate flex-1"},K={class:"flex items-center gap-3 text-[10px] text-muted-foreground shrink-0"},Q={class:"flex items-center gap-1"},W={class:"flex items-center gap-1"},X={class:"px-3 py-2 border-t bg-muted/20 flex items-center justify-between"},Y={key:0,class:"text-[10px] text-muted-foreground"},Z=e.defineComponent({__name:"TrafficSourcesCard",props:{toolName:{},instanceId:{},instanceName:{},moduleType:{},resolvedArgs:{},status:{}},emits:["submit"],setup(g,{emit:v}){const{$useRoute:_,$useModuleApi:N}=useNuxtApp(),l=g,E=v,V=_(),S=e.computed(()=>V.params.slug),x=N(l.instanceId),m=e.ref(!0),u=e.ref(null),c=e.ref([]),a=e.ref([]),p=e.ref(null);function B(){const s=l.resolvedArgs?._cachedData;return s?(a.value=(s.topChannels||[]).map(t=>({sessionDefaultChannelGroup:t.channel,sessions:t.sessions,totalUsers:t.users,newUsers:t.newUsers,engagementRate:parseFloat(t.engagementRate)/100})),c.value=(s.topSources||[]).map(t=>({sessionSource:t.source,sessions:t.sessions,totalUsers:t.users})),p.value=l.resolvedArgs._fetchedAt||null,m.value=!1,!0):!1}async function D(){const{startDate:s,endDate:t}=l.resolvedArgs||{};m.value=!0,u.value=null;try{const o=new URLSearchParams;s&&o.set("startDate",s),t&&o.set("endDate",t);const[n,d]=await Promise.all([x.get(`/top-sources?${o.toString()}`),x.get(`/acquisition/channels?${o.toString()}`)]);c.value=n.rows||[],a.value=d.rows||[],p.value=new Date().toISOString(),h({topChannels:a.value.map(r=>({channel:r.sessionDefaultChannelGroup,sessions:r.sessions,users:r.totalUsers,newUsers:r.newUsers,engagementRate:`${(r.engagementRate*100).toFixed(1)}%`})),topSources:c.value.map(r=>({source:r.sessionSource,sessions:r.sessions,users:r.totalUsers}))})}catch(o){u.value=o?.data?.statusMessage||o?.message||"Failed to load traffic sources",h(`Error loading traffic sources: ${u.value}`)}finally{m.value=!1}}e.onMounted(()=>{l.status==="completed"&&B()||D()});function h(s){l.status!=="completed"&&E("submit",s)}const f=s=>s==null?"0":Math.round(s).toLocaleString(),w=s=>s?new Date(s).toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}):"",b=e.computed(()=>a.value.reduce((s,t)=>s+(t.sessions||0),0)),y=["bg-primary/70","bg-blue-500/70","bg-emerald-500/70","bg-amber-500/70","bg-purple-500/70","bg-pink-500/70","bg-cyan-500/70","bg-orange-500/70","bg-indigo-500/70","bg-rose-500/70"],k=["bg-primary","bg-blue-500","bg-emerald-500","bg-amber-500","bg-purple-500","bg-pink-500","bg-cyan-500","bg-orange-500","bg-indigo-500","bg-rose-500"],C=e.computed(()=>{const{startDate:s,endDate:t}=l.resolvedArgs||{};if(!s&&!t)return"Last 30 days";const o=s||"30daysAgo",n=o.match(/^(\d+)daysAgo$/);return n?`Last ${n[1]} days`:`${o} → ${t||"today"}`});return(s,t)=>{const o=e.resolveComponent("NuxtLink");return e.openBlock(),e.createElementBlock("div",$,[e.unref(m)?(e.openBlock(),e.createElementBlock("div",L,[e.createVNode(e.unref(i.Loader2),{class:"size-4 animate-spin text-muted-foreground"}),t[0]||(t[0]=e.createElementVNode("span",{class:"text-xs text-muted-foreground"},"Loading traffic sources…",-1))])):e.unref(u)?(e.openBlock(),e.createElementBlock("div",A,e.toDisplayString(e.unref(u)),1)):e.unref(a).length===0&&e.unref(c).length===0?(e.openBlock(),e.createElementBlock("div",U,[e.createVNode(e.unref(i.Globe),{class:"size-8 text-muted-foreground mx-auto mb-2"}),t[1]||(t[1]=e.createElementVNode("p",{class:"text-sm text-muted-foreground"},"No traffic source data found for this period.",-1))])):(e.openBlock(),e.createElementBlock("div",z,[e.createElementVNode("div",T,[e.createElementVNode("div",F,[e.createVNode(e.unref(i.Globe),{class:"size-3.5 text-primary"}),t[2]||(t[2]=e.createElementVNode("span",{class:"text-xs font-medium"},"Traffic Sources",-1))]),e.createElementVNode("span",G,e.toDisplayString(e.unref(C)),1)]),e.unref(a).length>0?(e.openBlock(),e.createElementBlock("div",j,[e.createElementVNode("div",M,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),(n,d)=>(e.openBlock(),e.createElementBlock("div",{key:n.sessionDefaultChannelGroup,class:e.normalizeClass(["h-full first:rounded-l-full last:rounded-r-full",y[d%y.length]]),style:e.normalizeStyle({width:`${e.unref(b)>0?(n.sessions||0)/e.unref(b)*100:0}%`}),title:`${n.sessionDefaultChannelGroup}: ${f(n.sessions)} sessions`},null,14,R))),128))]),e.createElementVNode("div",I,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a).slice(0,6),(n,d)=>(e.openBlock(),e.createElementBlock("div",{key:n.sessionDefaultChannelGroup,class:"flex items-center gap-1.5"},[e.createElementVNode("span",{class:e.normalizeClass(["size-2 rounded-full shrink-0",k[d%k.length]])},null,2),e.createElementVNode("span",P,e.toDisplayString(n.sessionDefaultChannelGroup),1),e.createElementVNode("span",q,e.toDisplayString(f(n.sessions)),1)]))),128))])])):e.createCommentVNode("",!0),e.unref(c).length>0?(e.openBlock(),e.createElementBlock("div",O,[t[3]||(t[3]=e.createElementVNode("div",{class:"px-3 py-1.5 bg-muted/20"},[e.createElementVNode("span",{class:"text-[10px] font-medium text-muted-foreground uppercase tracking-wide"},"Top Sources")],-1)),e.createElementVNode("div",H,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),n=>(e.openBlock(),e.createElementBlock("div",{key:n.sessionSource,class:"px-3 py-2 flex items-center justify-between hover:bg-muted/30 transition-colors"},[e.createElementVNode("span",J,e.toDisplayString(n.sessionSource),1),e.createElementVNode("div",K,[e.createElementVNode("span",Q,[e.createVNode(e.unref(i.MousePointerClick),{class:"size-2.5"}),e.createTextVNode(" "+e.toDisplayString(f(n.sessions)),1)]),e.createElementVNode("span",W,[e.createVNode(e.unref(i.Users),{class:"size-2.5"}),e.createTextVNode(" "+e.toDisplayString(f(n.totalUsers)),1)])])]))),128))])])):e.createCommentVNode("",!0),e.createElementVNode("div",X,[e.unref(p)?(e.openBlock(),e.createElementBlock("span",Y," Fetched "+e.toDisplayString(w(e.unref(p))),1)):e.createCommentVNode("",!0),e.createVNode(o,{to:`/projects/${e.unref(S)}/modules/${g.instanceId}`,class:"inline-flex items-center gap-1.5 text-xs text-primary hover:underline"},{default:e.withCtx(()=>[e.createVNode(e.unref(i.ExternalLink),{class:"size-3"}),t[4]||(t[4]=e.createTextVNode(" View full report ",-1))]),_:1},8,["to"])])]))])}}});exports.default=Z;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { defineComponent as m, computed as c, resolveComponent as i, openBlock as p, createElementBlock as f, normalizeClass as v, createVNode as y, unref as _ } from "vue";
|
|
2
|
+
import { useRoute as g, useOverlayParams as b, useModule as w } from "@oneclick.dev/cms-kit";
|
|
3
|
+
const k = /* @__PURE__ */ m({
|
|
4
|
+
__name: "View",
|
|
5
|
+
setup(M) {
|
|
6
|
+
const r = g(), n = b(), { config: s } = w(), a = document.documentElement.dataset.moduleOverlayMode === "true", l = (e, o) => {
|
|
7
|
+
e?.finishAllFlows && document.documentElement.dataset.moduleOverlayMode === "true" && window.parent.postMessage({ type: "module-overlay:close" }, "*");
|
|
8
|
+
}, u = c(() => {
|
|
9
|
+
const e = { ...r.query, ...n.value };
|
|
10
|
+
return Object.entries(e).reduce((o, [t, d]) => (o[t] = d, o), {});
|
|
11
|
+
});
|
|
12
|
+
return (e, o) => {
|
|
13
|
+
const t = i("FormDisplayer");
|
|
14
|
+
return p(), f("div", {
|
|
15
|
+
class: v(["flex-1 overflow-hidden mt-4", a ? "-mx-2" : "rounded-lg border shadow bg-[#fcfcfc] dark:bg-muted/20"])
|
|
16
|
+
}, [
|
|
17
|
+
y(t, {
|
|
18
|
+
settings: _(s).formLayout,
|
|
19
|
+
onFinish: l,
|
|
20
|
+
variables: [],
|
|
21
|
+
inputValues: u.value,
|
|
22
|
+
style: { background: "transparent" }
|
|
23
|
+
}, null, 8, ["settings", "inputValues"])
|
|
24
|
+
], 2);
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
export {
|
|
29
|
+
k as default
|
|
30
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("@oneclick.dev/cms-kit"),i=e.defineComponent({__name:"View",setup(p){const s=r.useRoute(),u=r.useOverlayParams(),{config:l}=r.useModule(),a=document.documentElement.dataset.moduleOverlayMode==="true",c=(t,o)=>{t?.finishAllFlows&&document.documentElement.dataset.moduleOverlayMode==="true"&&window.parent.postMessage({type:"module-overlay:close"},"*")},d=e.computed(()=>{const t={...s.query,...u.value};return Object.entries(t).reduce((o,[n,m])=>(o[n]=m,o),{})});return(t,o)=>{const n=e.resolveComponent("FormDisplayer");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["flex-1 overflow-hidden mt-4",a?"-mx-2":"rounded-lg border shadow bg-[#fcfcfc] dark:bg-muted/20"])},[e.createVNode(n,{settings:e.unref(l).formLayout,onFinish:c,variables:[],inputValues:d.value,style:{background:"transparent"}},null,8,["settings","inputValues"])],2)}}});exports.default=i;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("lucide-vue-next"),M={class:"w-full"},F={key:0,class:"flex items-center gap-2 py-3"},L={key:1,class:"text-xs text-destructive py-2"},z={key:2,class:"rounded-xl border bg-background overflow-hidden"},j={class:"px-3 py-2 border-b bg-muted/40 flex items-center justify-between"},T={class:"flex items-center gap-2"},I={class:"text-[10px] text-muted-foreground"},O={class:"grid grid-cols-2 sm:grid-cols-4 divide-x divide-y"},q={class:"flex items-center gap-1.5"},Y={class:"text-[10px] text-muted-foreground uppercase tracking-wide"},G={class:"text-sm font-semibold"},H={key:0,class:"flex items-center gap-0.5"},J={class:"px-3 py-2 border-t bg-muted/20 flex items-center justify-between"},K={key:0,class:"text-[10px] text-muted-foreground"},Q=e.defineComponent({__name:"VisitorStatsCard",props:{toolName:{},instanceId:{},instanceName:{},moduleType:{},resolvedArgs:{},status:{}},emits:["submit"],setup(f,{emit:w}){const{$useRoute:S,$useModuleApi:V}=useNuxtApp(),l=f,_=w,N=S(),D=e.computed(()=>N.params.slug),B=V(l.instanceId),u=e.ref(!0),c=e.ref(null),r=e.ref({}),i=e.ref({}),d=e.ref(null);function E(){const t=l.resolvedArgs?._cachedData;return t?(r.value={totalUsers:t.totalUsers||0,sessions:t.sessions||0,screenPageViews:t.pageViews||0,newUsers:t.newUsers||0,bounceRate:v(t.bounceRate),averageSessionDuration:P(t.avgSessionDuration),engagementRate:v(t.engagementRate),screenPageViewsPerSession:parseFloat(t.pagesPerSession)||0},i.value=Object.fromEntries(Object.entries(t.changes||{}).map(([s,n])=>[s,$(n)])),d.value=l.resolvedArgs._fetchedAt||null,u.value=!1,!0):!1}function v(t){return t?parseFloat(t)/100:0}function P(t){if(!t)return 0;const s=t.match(/(\d+)m/),n=t.match(/(\d+)s/);return(s?parseInt(s[1])*60:0)+(n?parseInt(n[1]):0)}function $(t){return!t||t==="N/A"?null:parseFloat(t.replace("+",""))}async function R(){const{startDate:t,endDate:s}=l.resolvedArgs||{};u.value=!0,c.value=null;try{const n=new URLSearchParams;t&&n.set("startDate",t),s&&n.set("endDate",s);const a=await B.get(`/report?${n.toString()}`);r.value=a.totals||{},i.value=a.changes||{},d.value=new Date().toISOString(),h({period:x.value,totalUsers:Math.round(r.value.totalUsers||0),sessions:Math.round(r.value.sessions||0),pageViews:Math.round(r.value.screenPageViews||0),newUsers:Math.round(r.value.newUsers||0),bounceRate:`${(r.value.bounceRate*100).toFixed(1)}%`,avgSessionDuration:y(r.value.averageSessionDuration),engagementRate:`${(r.value.engagementRate*100).toFixed(1)}%`,pagesPerSession:(r.value.screenPageViewsPerSession||0).toFixed(1),changes:Object.fromEntries(Object.entries(i.value).map(([C,p])=>[C,p!==null?`${p>0?"+":""}${p.toFixed(1)}%`:"N/A"]))})}catch(n){c.value=n?.data?.statusMessage||n?.message||"Failed to load visitor stats",h(`Error loading visitor stats: ${c.value}`)}finally{u.value=!1}}e.onMounted(()=>{l.status==="completed"&&E()||R()});function h(t){l.status!=="completed"&&_("submit",t)}const x=e.computed(()=>{const{startDate:t,endDate:s}=l.resolvedArgs||{};if(!t&&!s)return"Last 30 days";const n=t||"30daysAgo",a=n.match(/^(\d+)daysAgo$/);return n==="yesterday"&&(!s||s==="yesterday")?"Yesterday":a?`Last ${a[1]} days`:`${n} → ${s||"today"}`}),y=t=>{if(!t)return"0s";const s=Math.floor(t/60),n=Math.round(t%60);return s>0?`${s}m ${n}s`:`${n}s`},m=t=>t==null?"0":Math.round(t).toLocaleString(),k=t=>t==null?"0%":`${(t*100).toFixed(1)}%`,U=t=>t?new Date(t).toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}):"",g=(t,s=!1)=>{if(t==null)return"text-muted-foreground";const n=s?t<0:t>0,a=s?t>0:t<0;return n?"text-emerald-600 dark:text-emerald-400":a?"text-red-600 dark:text-red-400":"text-muted-foreground"},b=t=>t==null?null:`${t>0?"+":""}${t.toFixed(1)}%`,A=e.computed(()=>[{label:"Users",value:m(r.value.totalUsers),change:i.value.totalUsers,icon:o.Users},{label:"Sessions",value:m(r.value.sessions),change:i.value.sessions,icon:o.MousePointerClick},{label:"Page Views",value:m(r.value.screenPageViews),change:i.value.screenPageViews,icon:o.Eye},{label:"New Users",value:m(r.value.newUsers),change:i.value.newUsers,icon:o.Users},{label:"Bounce Rate",value:k(r.value.bounceRate),change:i.value.bounceRate,inverted:!0,icon:o.ArrowDownRight},{label:"Engagement",value:k(r.value.engagementRate),change:i.value.engagementRate,icon:o.Timer},{label:"Avg Duration",value:y(r.value.averageSessionDuration),change:i.value.averageSessionDuration,icon:o.Timer},{label:"Pages/Session",value:(r.value.screenPageViewsPerSession||0).toFixed(1),change:i.value.screenPageViewsPerSession,icon:o.Eye}]);return(t,s)=>{const n=e.resolveComponent("NuxtLink");return e.openBlock(),e.createElementBlock("div",M,[e.unref(u)?(e.openBlock(),e.createElementBlock("div",F,[e.createVNode(e.unref(o.Loader2),{class:"size-4 animate-spin text-muted-foreground"}),s[0]||(s[0]=e.createElementVNode("span",{class:"text-xs text-muted-foreground"},"Loading visitor statistics…",-1))])):e.unref(c)?(e.openBlock(),e.createElementBlock("div",L,e.toDisplayString(e.unref(c)),1)):(e.openBlock(),e.createElementBlock("div",z,[e.createElementVNode("div",j,[e.createElementVNode("div",T,[e.createVNode(e.unref(o.BarChart3),{class:"size-3.5 text-primary"}),s[1]||(s[1]=e.createElementVNode("span",{class:"text-xs font-medium"},"Visitor Statistics",-1))]),e.createElementVNode("span",I,e.toDisplayString(e.unref(x)),1)]),e.createElementVNode("div",O,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(A),a=>(e.openBlock(),e.createElementBlock("div",{key:a.label,class:"px-3 py-3 space-y-1"},[e.createElementVNode("div",q,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.icon),{class:"size-3 text-muted-foreground"})),e.createElementVNode("span",Y,e.toDisplayString(a.label),1)]),e.createElementVNode("p",G,e.toDisplayString(a.value),1),b(a.change)?(e.openBlock(),e.createElementBlock("div",H,[(a.change??0)>0?(e.openBlock(),e.createBlock(e.unref(o.ArrowUpRight),{key:0,class:e.normalizeClass(["size-2.5",g(a.change,a.inverted)])},null,8,["class"])):(a.change??0)<0?(e.openBlock(),e.createBlock(e.unref(o.ArrowDownRight),{key:1,class:e.normalizeClass(["size-2.5",g(a.change,a.inverted)])},null,8,["class"])):(e.openBlock(),e.createBlock(e.unref(o.Minus),{key:2,class:"size-2.5 text-muted-foreground"})),e.createElementVNode("span",{class:e.normalizeClass(["text-[10px] font-medium",g(a.change,a.inverted)])},e.toDisplayString(b(a.change)),3)])):e.createCommentVNode("",!0)]))),128))]),e.createElementVNode("div",J,[e.unref(d)?(e.openBlock(),e.createElementBlock("span",K," Fetched "+e.toDisplayString(U(e.unref(d))),1)):e.createCommentVNode("",!0),e.createVNode(n,{to:`/projects/${e.unref(D)}/modules/${f.instanceId}`,class:"inline-flex items-center gap-1.5 text-xs text-primary hover:underline"},{default:e.withCtx(()=>[e.createVNode(e.unref(o.ExternalLink),{class:"size-3"}),s[2]||(s[2]=e.createTextVNode(" View full report ",-1))]),_:1},8,["to"])])]))])}}});exports.default=Q;
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { defineComponent as K, computed as w, ref as m, onMounted as Q, resolveComponent as W, openBlock as o, createElementBlock as c, unref as r, createVNode as h, createElementVNode as l, toDisplayString as d, Fragment as X, renderList as Z, createBlock as x, resolveDynamicComponent as ee, normalizeClass as _, createCommentVNode as U, withCtx as te, createTextVNode as se } from "vue";
|
|
2
|
+
import { Users as A, MousePointerClick as ne, Eye as F, ArrowDownRight as M, Timer as C, Loader2 as ae, BarChart3 as re, ArrowUpRight as oe, Minus as ie, ExternalLink as le } from "lucide-vue-next";
|
|
3
|
+
const ce = { class: "w-full" }, ue = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "flex items-center gap-2 py-3"
|
|
6
|
+
}, de = {
|
|
7
|
+
key: 1,
|
|
8
|
+
class: "text-xs text-destructive py-2"
|
|
9
|
+
}, ge = {
|
|
10
|
+
key: 2,
|
|
11
|
+
class: "rounded-xl border bg-background overflow-hidden"
|
|
12
|
+
}, me = { class: "px-3 py-2 border-b bg-muted/40 flex items-center justify-between" }, ve = { class: "flex items-center gap-2" }, pe = { class: "text-[10px] text-muted-foreground" }, fe = { class: "grid grid-cols-2 sm:grid-cols-4 divide-x divide-y" }, he = { class: "flex items-center gap-1.5" }, xe = { class: "text-[10px] text-muted-foreground uppercase tracking-wide" }, ye = { class: "text-sm font-semibold" }, be = {
|
|
13
|
+
key: 0,
|
|
14
|
+
class: "flex items-center gap-0.5"
|
|
15
|
+
}, we = { class: "px-3 py-2 border-t bg-muted/20 flex items-center justify-between" }, _e = {
|
|
16
|
+
key: 0,
|
|
17
|
+
class: "text-[10px] text-muted-foreground"
|
|
18
|
+
}, Pe = /* @__PURE__ */ K({
|
|
19
|
+
__name: "VisitorStatsCard",
|
|
20
|
+
props: {
|
|
21
|
+
toolName: {},
|
|
22
|
+
instanceId: {},
|
|
23
|
+
instanceName: {},
|
|
24
|
+
moduleType: {},
|
|
25
|
+
resolvedArgs: {},
|
|
26
|
+
status: {}
|
|
27
|
+
},
|
|
28
|
+
emits: ["submit"],
|
|
29
|
+
setup(S, { emit: N }) {
|
|
30
|
+
const { $useRoute: L, $useModuleApi: j } = useNuxtApp(), u = S, z = N, E = L(), I = w(() => E.params.slug), B = j(u.instanceId), v = m(!0), g = m(null), a = m({}), i = m({}), p = m(null);
|
|
31
|
+
function O() {
|
|
32
|
+
const e = u.resolvedArgs?._cachedData;
|
|
33
|
+
return e ? (a.value = {
|
|
34
|
+
totalUsers: e.totalUsers || 0,
|
|
35
|
+
sessions: e.sessions || 0,
|
|
36
|
+
screenPageViews: e.pageViews || 0,
|
|
37
|
+
newUsers: e.newUsers || 0,
|
|
38
|
+
bounceRate: D(e.bounceRate),
|
|
39
|
+
averageSessionDuration: T(e.avgSessionDuration),
|
|
40
|
+
engagementRate: D(e.engagementRate),
|
|
41
|
+
screenPageViewsPerSession: parseFloat(e.pagesPerSession) || 0
|
|
42
|
+
}, i.value = Object.fromEntries(
|
|
43
|
+
Object.entries(e.changes || {}).map(([t, s]) => [t, Y(s)])
|
|
44
|
+
), p.value = u.resolvedArgs._fetchedAt || null, v.value = !1, !0) : !1;
|
|
45
|
+
}
|
|
46
|
+
function D(e) {
|
|
47
|
+
return e ? parseFloat(e) / 100 : 0;
|
|
48
|
+
}
|
|
49
|
+
function T(e) {
|
|
50
|
+
if (!e) return 0;
|
|
51
|
+
const t = e.match(/(\d+)m/), s = e.match(/(\d+)s/);
|
|
52
|
+
return (t ? parseInt(t[1]) * 60 : 0) + (s ? parseInt(s[1]) : 0);
|
|
53
|
+
}
|
|
54
|
+
function Y(e) {
|
|
55
|
+
return !e || e === "N/A" ? null : parseFloat(e.replace("+", ""));
|
|
56
|
+
}
|
|
57
|
+
async function q() {
|
|
58
|
+
const { startDate: e, endDate: t } = u.resolvedArgs || {};
|
|
59
|
+
v.value = !0, g.value = null;
|
|
60
|
+
try {
|
|
61
|
+
const s = new URLSearchParams();
|
|
62
|
+
e && s.set("startDate", e), t && s.set("endDate", t);
|
|
63
|
+
const n = await B.get(`/report?${s.toString()}`);
|
|
64
|
+
a.value = n.totals || {}, i.value = n.changes || {}, p.value = (/* @__PURE__ */ new Date()).toISOString(), P({
|
|
65
|
+
period: k.value,
|
|
66
|
+
totalUsers: Math.round(a.value.totalUsers || 0),
|
|
67
|
+
sessions: Math.round(a.value.sessions || 0),
|
|
68
|
+
pageViews: Math.round(a.value.screenPageViews || 0),
|
|
69
|
+
newUsers: Math.round(a.value.newUsers || 0),
|
|
70
|
+
bounceRate: `${(a.value.bounceRate * 100).toFixed(1)}%`,
|
|
71
|
+
avgSessionDuration: $(a.value.averageSessionDuration),
|
|
72
|
+
engagementRate: `${(a.value.engagementRate * 100).toFixed(1)}%`,
|
|
73
|
+
pagesPerSession: (a.value.screenPageViewsPerSession || 0).toFixed(1),
|
|
74
|
+
changes: Object.fromEntries(
|
|
75
|
+
Object.entries(i.value).map(([J, b]) => [J, b !== null ? `${b > 0 ? "+" : ""}${b.toFixed(1)}%` : "N/A"])
|
|
76
|
+
)
|
|
77
|
+
});
|
|
78
|
+
} catch (s) {
|
|
79
|
+
g.value = s?.data?.statusMessage || s?.message || "Failed to load visitor stats", P(`Error loading visitor stats: ${g.value}`);
|
|
80
|
+
} finally {
|
|
81
|
+
v.value = !1;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
Q(() => {
|
|
85
|
+
u.status === "completed" && O() || q();
|
|
86
|
+
});
|
|
87
|
+
function P(e) {
|
|
88
|
+
u.status !== "completed" && z("submit", e);
|
|
89
|
+
}
|
|
90
|
+
const k = w(() => {
|
|
91
|
+
const { startDate: e, endDate: t } = u.resolvedArgs || {};
|
|
92
|
+
if (!e && !t) return "Last 30 days";
|
|
93
|
+
const s = e || "30daysAgo", n = s.match(/^(\d+)daysAgo$/);
|
|
94
|
+
return s === "yesterday" && (!t || t === "yesterday") ? "Yesterday" : n ? `Last ${n[1]} days` : `${s} → ${t || "today"}`;
|
|
95
|
+
}), $ = (e) => {
|
|
96
|
+
if (!e) return "0s";
|
|
97
|
+
const t = Math.floor(e / 60), s = Math.round(e % 60);
|
|
98
|
+
return t > 0 ? `${t}m ${s}s` : `${s}s`;
|
|
99
|
+
}, f = (e) => e == null ? "0" : Math.round(e).toLocaleString(), V = (e) => e == null ? "0%" : `${(e * 100).toFixed(1)}%`, G = (e) => e ? new Date(e).toLocaleString(void 0, { month: "short", day: "numeric", hour: "2-digit", minute: "2-digit" }) : "", y = (e, t = !1) => {
|
|
100
|
+
if (e == null) return "text-muted-foreground";
|
|
101
|
+
const s = t ? e < 0 : e > 0, n = t ? e > 0 : e < 0;
|
|
102
|
+
return s ? "text-emerald-600 dark:text-emerald-400" : n ? "text-red-600 dark:text-red-400" : "text-muted-foreground";
|
|
103
|
+
}, R = (e) => e == null ? null : `${e > 0 ? "+" : ""}${e.toFixed(1)}%`, H = w(() => [
|
|
104
|
+
{ label: "Users", value: f(a.value.totalUsers), change: i.value.totalUsers, icon: A },
|
|
105
|
+
{ label: "Sessions", value: f(a.value.sessions), change: i.value.sessions, icon: ne },
|
|
106
|
+
{ label: "Page Views", value: f(a.value.screenPageViews), change: i.value.screenPageViews, icon: F },
|
|
107
|
+
{ label: "New Users", value: f(a.value.newUsers), change: i.value.newUsers, icon: A },
|
|
108
|
+
{ label: "Bounce Rate", value: V(a.value.bounceRate), change: i.value.bounceRate, inverted: !0, icon: M },
|
|
109
|
+
{ label: "Engagement", value: V(a.value.engagementRate), change: i.value.engagementRate, icon: C },
|
|
110
|
+
{ label: "Avg Duration", value: $(a.value.averageSessionDuration), change: i.value.averageSessionDuration, icon: C },
|
|
111
|
+
{ label: "Pages/Session", value: (a.value.screenPageViewsPerSession || 0).toFixed(1), change: i.value.screenPageViewsPerSession, icon: F }
|
|
112
|
+
]);
|
|
113
|
+
return (e, t) => {
|
|
114
|
+
const s = W("NuxtLink");
|
|
115
|
+
return o(), c("div", ce, [
|
|
116
|
+
r(v) ? (o(), c("div", ue, [
|
|
117
|
+
h(r(ae), { class: "size-4 animate-spin text-muted-foreground" }),
|
|
118
|
+
t[0] || (t[0] = l("span", { class: "text-xs text-muted-foreground" }, "Loading visitor statistics…", -1))
|
|
119
|
+
])) : r(g) ? (o(), c("div", de, d(r(g)), 1)) : (o(), c("div", ge, [
|
|
120
|
+
l("div", me, [
|
|
121
|
+
l("div", ve, [
|
|
122
|
+
h(r(re), { class: "size-3.5 text-primary" }),
|
|
123
|
+
t[1] || (t[1] = l("span", { class: "text-xs font-medium" }, "Visitor Statistics", -1))
|
|
124
|
+
]),
|
|
125
|
+
l("span", pe, d(r(k)), 1)
|
|
126
|
+
]),
|
|
127
|
+
l("div", fe, [
|
|
128
|
+
(o(!0), c(X, null, Z(r(H), (n) => (o(), c("div", {
|
|
129
|
+
key: n.label,
|
|
130
|
+
class: "px-3 py-3 space-y-1"
|
|
131
|
+
}, [
|
|
132
|
+
l("div", he, [
|
|
133
|
+
(o(), x(ee(n.icon), { class: "size-3 text-muted-foreground" })),
|
|
134
|
+
l("span", xe, d(n.label), 1)
|
|
135
|
+
]),
|
|
136
|
+
l("p", ye, d(n.value), 1),
|
|
137
|
+
R(n.change) ? (o(), c("div", be, [
|
|
138
|
+
(n.change ?? 0) > 0 ? (o(), x(r(oe), {
|
|
139
|
+
key: 0,
|
|
140
|
+
class: _(["size-2.5", y(n.change, n.inverted)])
|
|
141
|
+
}, null, 8, ["class"])) : (n.change ?? 0) < 0 ? (o(), x(r(M), {
|
|
142
|
+
key: 1,
|
|
143
|
+
class: _(["size-2.5", y(n.change, n.inverted)])
|
|
144
|
+
}, null, 8, ["class"])) : (o(), x(r(ie), {
|
|
145
|
+
key: 2,
|
|
146
|
+
class: "size-2.5 text-muted-foreground"
|
|
147
|
+
})),
|
|
148
|
+
l("span", {
|
|
149
|
+
class: _(["text-[10px] font-medium", y(n.change, n.inverted)])
|
|
150
|
+
}, d(R(n.change)), 3)
|
|
151
|
+
])) : U("", !0)
|
|
152
|
+
]))), 128))
|
|
153
|
+
]),
|
|
154
|
+
l("div", we, [
|
|
155
|
+
r(p) ? (o(), c("span", _e, " Fetched " + d(G(r(p))), 1)) : U("", !0),
|
|
156
|
+
h(s, {
|
|
157
|
+
to: `/projects/${r(I)}/modules/${S.instanceId}`,
|
|
158
|
+
class: "inline-flex items-center gap-1.5 text-xs text-primary hover:underline"
|
|
159
|
+
}, {
|
|
160
|
+
default: te(() => [
|
|
161
|
+
h(r(le), { class: "size-3" }),
|
|
162
|
+
t[2] || (t[2] = se(" View full report ", -1))
|
|
163
|
+
]),
|
|
164
|
+
_: 1
|
|
165
|
+
}, 8, ["to"])
|
|
166
|
+
])
|
|
167
|
+
]))
|
|
168
|
+
]);
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
});
|
|
172
|
+
export {
|
|
173
|
+
Pe as default
|
|
174
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=(t,o)=>{const c=t.__vccOpts||t;for(const[r,s]of o)c[r]=s;return c};exports._export_sfc=e;
|