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