@oneclick.dev/cms-core-modules 0.0.105 → 0.0.107
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-Cq1Gu-Vo.mjs +394 -0
- package/dist/Audience-h5PfXPz4.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/composables/useHorizontalScroll.d.ts +20 -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/lib/interpolation.d.ts +6 -0
- 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-Br1Pfny3.js +0 -1
- package/dist/Acquisition-CPlZzUBo.mjs +0 -400
- 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-BfkrmBuQ.js +0 -1
- package/dist/Audience-DTblSAiL.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-B1nfKG_5.mjs +0 -30676
- package/dist/ContentEditor-DdFU8piH.js +0 -462
- package/dist/CountryBreakdownCard-D7BK3nRD.js +0 -1
- package/dist/CountryBreakdownCard-DVxNz2DJ.mjs +0 -196
- package/dist/Create-BRBh0xjM.mjs +0 -1247
- package/dist/Create-qPeQxkdl.js +0 -1
- 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-BaS6H6ak.js +0 -1
- package/dist/Entries-C8UJkrVC.mjs +0 -728
- 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-9Q7TMm4u.mjs +0 -401
- package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-DiNzGl-q.js +0 -1
- package/dist/Overview-3HWhsqaz.mjs +0 -860
- package/dist/Overview-BCpJNiEB.mjs +0 -190
- package/dist/Overview-BDlBCUI_.js +0 -1
- package/dist/Overview-BYMrsZjM.mjs +0 -332
- package/dist/Overview-BbvfH1u-.js +0 -1
- package/dist/Overview-BrCwozey.js +0 -1
- package/dist/Overview-CIa1E-HH.mjs +0 -178
- package/dist/Overview-CpHhuiaV.js +0 -1
- package/dist/Overview-DAxCu9XC.js +0 -1
- package/dist/Overview-D_T3K6aq.mjs +0 -632
- package/dist/Overview-Su8ZUbMs.mjs +0 -26
- package/dist/Overview-T-lsy3UZ.js +0 -1
- package/dist/Overview-kaMhsIUq.mjs +0 -567
- package/dist/Overview-t0pG5xjA.js +0 -1
- 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-Cz_22Oce.mjs +0 -2927
- package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-DPPNc-Z5.js +0 -349
- 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-09sEOu3G.js +0 -1
- package/dist/SeoHealth-BzcWd_w7.mjs +0 -615
- package/dist/TableView-CPAw3h8g.js +0 -4
- package/dist/TableView-DXmEF6pY.mjs +0 -6143
- 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-BNG05SAq.js +0 -1
- package/dist/agenda-D1RxMxBS.mjs +0 -1152
- 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-BWDwEd8D.mjs +0 -24
- package/dist/index-BfBBm9uY.mjs +0 -24
- package/dist/index-Bkq58CeQ.mjs +0 -22
- package/dist/index-BtujSJeg.js +0 -35
- package/dist/index-BuzLn4Km.js +0 -54
- package/dist/index-C4YUVWzJ.js +0 -75
- package/dist/index-CJQQBRLY.js +0 -1
- package/dist/index-CMk3uhUt.mjs +0 -3837
- 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-D3L8WAJI.js +0 -58
- package/dist/index-DFQGVHTs.js +0 -1
- package/dist/index-DPd3waTN.js +0 -1
- package/dist/index-DQYBP8Js.js +0 -158
- package/dist/index-DRqJOqUR.mjs +0 -3484
- package/dist/index-DjDCYQ_6.mjs +0 -441
- 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-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-_2lRVt_k.mjs +0 -2942
- package/dist/index-cOnxXTbF.mjs +0 -24
- package/dist/index-dOdMm1pV.mjs +0 -1105
- package/dist/index-hlylYYgy.mjs +0 -24
- package/dist/index-ijdf0d9-.js +0 -1
- package/dist/index-p5Uqu8c2.mjs +0 -1438
- package/dist/interpolation-DEDSLETn.mjs +0 -128
- package/dist/interpolation-DERg6Lwt.js +0 -1
- package/dist/orders-CzzcFQha.mjs +0 -559
- package/dist/orders-ETtbA4aQ.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 -127
- 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/RejectReservationDialog.vue.d.ts +0 -8
- package/dist/src/appointments/components/edit/EventDialog/ReservationDetailDialog.vue.d.ts +0 -82
- 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/NewReservationDialog.vue.d.ts +0 -2
- 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/BookingsList.vue.d.ts +0 -110
- package/dist/src/appointments/components/edit/dashboard/Timeline.vue.d.ts +0 -34
- 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/orders.vue.d.ts +0 -98
- 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
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { Fragment as e, computed as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, createTextVNode as a, createVNode as o, defineComponent as s, normalizeClass as c, normalizeStyle as l, onMounted as u, openBlock as d, ref as f, renderList as p, resolveComponent as m, toDisplayString as h, unref as g, withCtx as ee } from "vue";
|
|
2
|
+
import { ExternalLink as te, Globe as _, Loader2 as ne, MousePointerClick as re, Users as v } from "@lucide/vue";
|
|
3
|
+
//#region src/googleAnalytics/chat-components/TrafficSourcesCard.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var y = { class: "w-full" }, b = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "flex items-center gap-2 py-3"
|
|
7
|
+
}, x = {
|
|
8
|
+
key: 1,
|
|
9
|
+
class: "text-xs text-destructive py-2"
|
|
10
|
+
}, S = {
|
|
11
|
+
key: 2,
|
|
12
|
+
class: "rounded-xl border bg-background p-4 text-center"
|
|
13
|
+
}, ie = {
|
|
14
|
+
key: 3,
|
|
15
|
+
class: "rounded-xl border bg-background overflow-hidden"
|
|
16
|
+
}, ae = { class: "px-3 py-2 border-b bg-muted/40 flex items-center justify-between" }, oe = { class: "flex items-center gap-2" }, se = { class: "text-[10px] text-muted-foreground" }, C = {
|
|
17
|
+
key: 0,
|
|
18
|
+
class: "px-3 pt-3 pb-2"
|
|
19
|
+
}, w = { class: "h-3 rounded-full bg-muted overflow-hidden flex" }, T = ["title"], E = { class: "flex flex-wrap gap-x-3 gap-y-1 mt-2" }, D = { class: "text-[10px] text-muted-foreground" }, O = { class: "text-[10px] font-medium" }, k = {
|
|
20
|
+
key: 1,
|
|
21
|
+
class: "border-t"
|
|
22
|
+
}, A = { class: "divide-y" }, j = { class: "text-xs font-medium truncate flex-1" }, M = { class: "flex items-center gap-3 text-[10px] text-muted-foreground shrink-0" }, N = { class: "flex items-center gap-1" }, P = { class: "flex items-center gap-1" }, F = { class: "px-3 py-2 border-t bg-muted/20 flex items-center justify-between" }, I = {
|
|
23
|
+
key: 0,
|
|
24
|
+
class: "text-[10px] text-muted-foreground"
|
|
25
|
+
}, L = /* @__PURE__ */ s({
|
|
26
|
+
__name: "TrafficSourcesCard",
|
|
27
|
+
props: {
|
|
28
|
+
toolName: {},
|
|
29
|
+
instanceId: {},
|
|
30
|
+
instanceName: {},
|
|
31
|
+
moduleType: {},
|
|
32
|
+
resolvedArgs: {},
|
|
33
|
+
status: {}
|
|
34
|
+
},
|
|
35
|
+
emits: ["submit"],
|
|
36
|
+
setup(s, { emit: L }) {
|
|
37
|
+
let { $useRoute: ce, $useModuleApi: R } = useNuxtApp(), z = s, B = L, V = ce(), H = t(() => V.params.slug), U = R(z.instanceId), W = f(!0), G = f(null), K = f([]), q = f([]), J = f(null);
|
|
38
|
+
function le() {
|
|
39
|
+
let e = z.resolvedArgs?._cachedData;
|
|
40
|
+
return e ? (q.value = (e.topChannels || []).map((e) => ({
|
|
41
|
+
sessionDefaultChannelGroup: e.channel,
|
|
42
|
+
sessions: e.sessions,
|
|
43
|
+
totalUsers: e.users,
|
|
44
|
+
newUsers: e.newUsers,
|
|
45
|
+
engagementRate: parseFloat(e.engagementRate) / 100
|
|
46
|
+
})), K.value = (e.topSources || []).map((e) => ({
|
|
47
|
+
sessionSource: e.source,
|
|
48
|
+
sessions: e.sessions,
|
|
49
|
+
totalUsers: e.users
|
|
50
|
+
})), J.value = z.resolvedArgs._fetchedAt || null, W.value = !1, !0) : !1;
|
|
51
|
+
}
|
|
52
|
+
async function ue() {
|
|
53
|
+
let { startDate: e, endDate: t } = z.resolvedArgs || {};
|
|
54
|
+
W.value = !0, G.value = null;
|
|
55
|
+
try {
|
|
56
|
+
let n = new URLSearchParams();
|
|
57
|
+
e && n.set("startDate", e), t && n.set("endDate", t);
|
|
58
|
+
let [r, i] = await Promise.all([U.get(`/top-sources?${n.toString()}`), U.get(`/acquisition/channels?${n.toString()}`)]);
|
|
59
|
+
K.value = r.rows || [], q.value = i.rows || [], J.value = (/* @__PURE__ */ new Date()).toISOString(), Y({
|
|
60
|
+
topChannels: q.value.map((e) => ({
|
|
61
|
+
channel: e.sessionDefaultChannelGroup,
|
|
62
|
+
sessions: e.sessions,
|
|
63
|
+
users: e.totalUsers,
|
|
64
|
+
newUsers: e.newUsers,
|
|
65
|
+
engagementRate: `${(e.engagementRate * 100).toFixed(1)}%`
|
|
66
|
+
})),
|
|
67
|
+
topSources: K.value.map((e) => ({
|
|
68
|
+
source: e.sessionSource,
|
|
69
|
+
sessions: e.sessions,
|
|
70
|
+
users: e.totalUsers
|
|
71
|
+
}))
|
|
72
|
+
});
|
|
73
|
+
} catch (e) {
|
|
74
|
+
G.value = e?.data?.statusMessage || e?.message || "Failed to load traffic sources", Y(`Error loading traffic sources: ${G.value}`);
|
|
75
|
+
} finally {
|
|
76
|
+
W.value = !1;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
u(() => {
|
|
80
|
+
z.status === "completed" && le() || ue();
|
|
81
|
+
});
|
|
82
|
+
function Y(e) {
|
|
83
|
+
z.status !== "completed" && B("submit", e);
|
|
84
|
+
}
|
|
85
|
+
let X = (e) => e == null ? "0" : Math.round(e).toLocaleString(), de = (e) => e ? new Date(e).toLocaleString(void 0, {
|
|
86
|
+
month: "short",
|
|
87
|
+
day: "numeric",
|
|
88
|
+
hour: "2-digit",
|
|
89
|
+
minute: "2-digit"
|
|
90
|
+
}) : "", Z = t(() => q.value.reduce((e, t) => e + (t.sessions || 0), 0)), Q = [
|
|
91
|
+
"bg-primary/70",
|
|
92
|
+
"bg-blue-500/70",
|
|
93
|
+
"bg-emerald-500/70",
|
|
94
|
+
"bg-amber-500/70",
|
|
95
|
+
"bg-purple-500/70",
|
|
96
|
+
"bg-pink-500/70",
|
|
97
|
+
"bg-cyan-500/70",
|
|
98
|
+
"bg-orange-500/70",
|
|
99
|
+
"bg-indigo-500/70",
|
|
100
|
+
"bg-rose-500/70"
|
|
101
|
+
], $ = [
|
|
102
|
+
"bg-primary",
|
|
103
|
+
"bg-blue-500",
|
|
104
|
+
"bg-emerald-500",
|
|
105
|
+
"bg-amber-500",
|
|
106
|
+
"bg-purple-500",
|
|
107
|
+
"bg-pink-500",
|
|
108
|
+
"bg-cyan-500",
|
|
109
|
+
"bg-orange-500",
|
|
110
|
+
"bg-indigo-500",
|
|
111
|
+
"bg-rose-500"
|
|
112
|
+
], fe = t(() => {
|
|
113
|
+
let { startDate: e, endDate: t } = z.resolvedArgs || {};
|
|
114
|
+
if (!e && !t) return "Last 30 days";
|
|
115
|
+
let n = e || "30daysAgo", r = n.match(/^(\d+)daysAgo$/);
|
|
116
|
+
return r ? `Last ${r[1]} days` : `${n} → ${t || "today"}`;
|
|
117
|
+
});
|
|
118
|
+
return (t, u) => {
|
|
119
|
+
let f = m("NuxtLink");
|
|
120
|
+
return d(), r("div", y, [g(W) ? (d(), r("div", b, [o(g(ne), { class: "size-4 animate-spin text-muted-foreground" }), u[0] ||= i("span", { class: "text-xs text-muted-foreground" }, "Loading traffic sources…", -1)])) : g(G) ? (d(), r("div", x, h(g(G)), 1)) : g(q).length === 0 && g(K).length === 0 ? (d(), r("div", S, [o(g(_), { class: "size-8 text-muted-foreground mx-auto mb-2" }), u[1] ||= i("p", { class: "text-sm text-muted-foreground" }, "No traffic source data found for this period.", -1)])) : (d(), r("div", ie, [
|
|
121
|
+
i("div", ae, [i("div", oe, [o(g(_), { class: "size-3.5 text-primary" }), u[2] ||= i("span", { class: "text-xs font-medium" }, "Traffic Sources", -1)]), i("span", se, h(g(fe)), 1)]),
|
|
122
|
+
g(q).length > 0 ? (d(), r("div", C, [i("div", w, [(d(!0), r(e, null, p(g(q), (e, t) => (d(), r("div", {
|
|
123
|
+
key: e.sessionDefaultChannelGroup,
|
|
124
|
+
class: c(["h-full first:rounded-l-full last:rounded-r-full", Q[t % Q.length]]),
|
|
125
|
+
style: l({ width: `${g(Z) > 0 ? (e.sessions || 0) / g(Z) * 100 : 0}%` }),
|
|
126
|
+
title: `${e.sessionDefaultChannelGroup}: ${X(e.sessions)} sessions`
|
|
127
|
+
}, null, 14, T))), 128))]), i("div", E, [(d(!0), r(e, null, p(g(q).slice(0, 6), (e, t) => (d(), r("div", {
|
|
128
|
+
key: e.sessionDefaultChannelGroup,
|
|
129
|
+
class: "flex items-center gap-1.5"
|
|
130
|
+
}, [
|
|
131
|
+
i("span", { class: c(["size-2 rounded-full shrink-0", $[t % $.length]]) }, null, 2),
|
|
132
|
+
i("span", D, h(e.sessionDefaultChannelGroup), 1),
|
|
133
|
+
i("span", O, h(X(e.sessions)), 1)
|
|
134
|
+
]))), 128))])])) : n("", !0),
|
|
135
|
+
g(K).length > 0 ? (d(), r("div", k, [u[3] ||= i("div", { class: "px-3 py-1.5 bg-muted/20" }, [i("span", { class: "text-[10px] font-medium text-muted-foreground uppercase tracking-wide" }, "Top Sources")], -1), i("div", A, [(d(!0), r(e, null, p(g(K), (e) => (d(), r("div", {
|
|
136
|
+
key: e.sessionSource,
|
|
137
|
+
class: "px-3 py-2 flex items-center justify-between hover:bg-muted/30 transition-colors"
|
|
138
|
+
}, [i("span", j, h(e.sessionSource), 1), i("div", M, [i("span", N, [o(g(re), { class: "size-2.5" }), a(" " + h(X(e.sessions)), 1)]), i("span", P, [o(g(v), { class: "size-2.5" }), a(" " + h(X(e.totalUsers)), 1)])])]))), 128))])])) : n("", !0),
|
|
139
|
+
i("div", F, [g(J) ? (d(), r("span", I, " Fetched " + h(de(g(J))), 1)) : n("", !0), o(f, {
|
|
140
|
+
to: `/projects/${g(H)}/modules/${s.instanceId}`,
|
|
141
|
+
class: "inline-flex items-center gap-1.5 text-xs text-primary hover:underline"
|
|
142
|
+
}, {
|
|
143
|
+
default: ee(() => [o(g(te), { class: "size-3" }), u[4] ||= a(" View full report ", -1)]),
|
|
144
|
+
_: 1
|
|
145
|
+
}, 8, ["to"])])
|
|
146
|
+
]))]);
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
//#endregion
|
|
151
|
+
export { L as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`./chunk-DQi1bQcV.js`);let e=require(`vue`),t=require(`@lucide/vue`);var n={class:`w-full`},r={key:0,class:`flex items-center gap-2 py-3`},i={key:1,class:`text-xs text-destructive py-2`},a={key:2,class:`rounded-xl border bg-background p-4 text-center`},o={key:3,class:`rounded-xl border bg-background overflow-hidden`},s={class:`px-3 py-2 border-b bg-muted/40 flex items-center justify-between`},c={class:`flex items-center gap-2`},l={class:`text-[10px] text-muted-foreground`},u={key:0,class:`px-3 pt-3 pb-2`},d={class:`h-3 rounded-full bg-muted overflow-hidden flex`},f=[`title`],p={class:`flex flex-wrap gap-x-3 gap-y-1 mt-2`},m={class:`text-[10px] text-muted-foreground`},h={class:`text-[10px] font-medium`},g={key:1,class:`border-t`},_={class:`divide-y`},v={class:`text-xs font-medium truncate flex-1`},y={class:`flex items-center gap-3 text-[10px] text-muted-foreground shrink-0`},b={class:`flex items-center gap-1`},x={class:`flex items-center gap-1`},S={class:`px-3 py-2 border-t bg-muted/20 flex items-center justify-between`},C={key:0,class:`text-[10px] text-muted-foreground`},w=(0,e.defineComponent)({__name:`TrafficSourcesCard`,props:{toolName:{},instanceId:{},instanceName:{},moduleType:{},resolvedArgs:{},status:{}},emits:[`submit`],setup(w,{emit:T}){let{$useRoute:E,$useModuleApi:D}=useNuxtApp(),O=w,k=T,A=E(),j=(0,e.computed)(()=>A.params.slug),M=D(O.instanceId),N=(0,e.ref)(!0),P=(0,e.ref)(null),F=(0,e.ref)([]),I=(0,e.ref)([]),L=(0,e.ref)(null);function R(){let e=O.resolvedArgs?._cachedData;return e?(I.value=(e.topChannels||[]).map(e=>({sessionDefaultChannelGroup:e.channel,sessions:e.sessions,totalUsers:e.users,newUsers:e.newUsers,engagementRate:parseFloat(e.engagementRate)/100})),F.value=(e.topSources||[]).map(e=>({sessionSource:e.source,sessions:e.sessions,totalUsers:e.users})),L.value=O.resolvedArgs._fetchedAt||null,N.value=!1,!0):!1}async function z(){let{startDate:e,endDate:t}=O.resolvedArgs||{};N.value=!0,P.value=null;try{let n=new URLSearchParams;e&&n.set(`startDate`,e),t&&n.set(`endDate`,t);let[r,i]=await Promise.all([M.get(`/top-sources?${n.toString()}`),M.get(`/acquisition/channels?${n.toString()}`)]);F.value=r.rows||[],I.value=i.rows||[],L.value=new Date().toISOString(),B({topChannels:I.value.map(e=>({channel:e.sessionDefaultChannelGroup,sessions:e.sessions,users:e.totalUsers,newUsers:e.newUsers,engagementRate:`${(e.engagementRate*100).toFixed(1)}%`})),topSources:F.value.map(e=>({source:e.sessionSource,sessions:e.sessions,users:e.totalUsers}))})}catch(e){P.value=e?.data?.statusMessage||e?.message||`Failed to load traffic sources`,B(`Error loading traffic sources: ${P.value}`)}finally{N.value=!1}}(0,e.onMounted)(()=>{O.status===`completed`&&R()||z()});function B(e){O.status!==`completed`&&k(`submit`,e)}let V=e=>e==null?`0`:Math.round(e).toLocaleString(),H=e=>e?new Date(e).toLocaleString(void 0,{month:`short`,day:`numeric`,hour:`2-digit`,minute:`2-digit`}):``,U=(0,e.computed)(()=>I.value.reduce((e,t)=>e+(t.sessions||0),0)),W=[`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`],G=[`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`],K=(0,e.computed)(()=>{let{startDate:e,endDate:t}=O.resolvedArgs||{};if(!e&&!t)return`Last 30 days`;let n=e||`30daysAgo`,r=n.match(/^(\d+)daysAgo$/);return r?`Last ${r[1]} days`:`${n} → ${t||`today`}`});return(T,E)=>{let D=(0,e.resolveComponent)(`NuxtLink`);return(0,e.openBlock)(),(0,e.createElementBlock)(`div`,n,[(0,e.unref)(N)?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,r,[(0,e.createVNode)((0,e.unref)(t.Loader2),{class:`size-4 animate-spin text-muted-foreground`}),E[0]||=(0,e.createElementVNode)(`span`,{class:`text-xs text-muted-foreground`},`Loading traffic sources…`,-1)])):(0,e.unref)(P)?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,i,(0,e.toDisplayString)((0,e.unref)(P)),1)):(0,e.unref)(I).length===0&&(0,e.unref)(F).length===0?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,a,[(0,e.createVNode)((0,e.unref)(t.Globe),{class:`size-8 text-muted-foreground mx-auto mb-2`}),E[1]||=(0,e.createElementVNode)(`p`,{class:`text-sm text-muted-foreground`},`No traffic source data found for this period.`,-1)])):((0,e.openBlock)(),(0,e.createElementBlock)(`div`,o,[(0,e.createElementVNode)(`div`,s,[(0,e.createElementVNode)(`div`,c,[(0,e.createVNode)((0,e.unref)(t.Globe),{class:`size-3.5 text-primary`}),E[2]||=(0,e.createElementVNode)(`span`,{class:`text-xs font-medium`},`Traffic Sources`,-1)]),(0,e.createElementVNode)(`span`,l,(0,e.toDisplayString)((0,e.unref)(K)),1)]),(0,e.unref)(I).length>0?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,u,[(0,e.createElementVNode)(`div`,d,[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)((0,e.unref)(I),(t,n)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:t.sessionDefaultChannelGroup,class:(0,e.normalizeClass)([`h-full first:rounded-l-full last:rounded-r-full`,W[n%W.length]]),style:(0,e.normalizeStyle)({width:`${(0,e.unref)(U)>0?(t.sessions||0)/(0,e.unref)(U)*100:0}%`}),title:`${t.sessionDefaultChannelGroup}: ${V(t.sessions)} sessions`},null,14,f))),128))]),(0,e.createElementVNode)(`div`,p,[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)((0,e.unref)(I).slice(0,6),(t,n)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:t.sessionDefaultChannelGroup,class:`flex items-center gap-1.5`},[(0,e.createElementVNode)(`span`,{class:(0,e.normalizeClass)([`size-2 rounded-full shrink-0`,G[n%G.length]])},null,2),(0,e.createElementVNode)(`span`,m,(0,e.toDisplayString)(t.sessionDefaultChannelGroup),1),(0,e.createElementVNode)(`span`,h,(0,e.toDisplayString)(V(t.sessions)),1)]))),128))])])):(0,e.createCommentVNode)(``,!0),(0,e.unref)(F).length>0?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,g,[E[3]||=(0,e.createElementVNode)(`div`,{class:`px-3 py-1.5 bg-muted/20`},[(0,e.createElementVNode)(`span`,{class:`text-[10px] font-medium text-muted-foreground uppercase tracking-wide`},`Top Sources`)],-1),(0,e.createElementVNode)(`div`,_,[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)((0,e.unref)(F),n=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:n.sessionSource,class:`px-3 py-2 flex items-center justify-between hover:bg-muted/30 transition-colors`},[(0,e.createElementVNode)(`span`,v,(0,e.toDisplayString)(n.sessionSource),1),(0,e.createElementVNode)(`div`,y,[(0,e.createElementVNode)(`span`,b,[(0,e.createVNode)((0,e.unref)(t.MousePointerClick),{class:`size-2.5`}),(0,e.createTextVNode)(` `+(0,e.toDisplayString)(V(n.sessions)),1)]),(0,e.createElementVNode)(`span`,x,[(0,e.createVNode)((0,e.unref)(t.Users),{class:`size-2.5`}),(0,e.createTextVNode)(` `+(0,e.toDisplayString)(V(n.totalUsers)),1)])])]))),128))])])):(0,e.createCommentVNode)(``,!0),(0,e.createElementVNode)(`div`,S,[(0,e.unref)(L)?((0,e.openBlock)(),(0,e.createElementBlock)(`span`,C,` Fetched `+(0,e.toDisplayString)(H((0,e.unref)(L))),1)):(0,e.createCommentVNode)(``,!0),(0,e.createVNode)(D,{to:`/projects/${(0,e.unref)(j)}/modules/${w.instanceId}`,class:`inline-flex items-center gap-1.5 text-xs text-primary hover:underline`},{default:(0,e.withCtx)(()=>[(0,e.createVNode)((0,e.unref)(t.ExternalLink),{class:`size-3`}),E[4]||=(0,e.createTextVNode)(` View full report `,-1)]),_:1},8,[`to`])])]))])}}});exports.default=w;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { useModule as e, useOverlayParams as t, useRoute as n } from "@oneclick.dev/cms-kit";
|
|
2
|
+
import { computed as r, createElementBlock as i, createVNode as a, defineComponent as o, normalizeClass as s, openBlock as c, resolveComponent as l, unref as u } from "vue";
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region src/custom/pages/View.vue
|
|
5
|
+
var d = /* @__PURE__ */ o({
|
|
6
|
+
__name: "View",
|
|
7
|
+
setup(o) {
|
|
8
|
+
let d = n(), f = t(), { config: p } = e(), m = document.documentElement.dataset.moduleOverlayMode === "true", h = (e, t) => {
|
|
9
|
+
e?.finishAllFlows && document.documentElement.dataset.moduleOverlayMode === "true" && window.parent.postMessage({ type: "module-overlay:close" }, "*");
|
|
10
|
+
}, g = r(() => {
|
|
11
|
+
let e = {
|
|
12
|
+
...d.query,
|
|
13
|
+
...f.value
|
|
14
|
+
};
|
|
15
|
+
return Object.entries(e).reduce((e, [t, n]) => (e[t] = n, e), {});
|
|
16
|
+
});
|
|
17
|
+
return (e, t) => {
|
|
18
|
+
let n = l("FormDisplayer");
|
|
19
|
+
return c(), i("div", { class: s(["flex-1 overflow-hidden mt-4", m ? "-mx-2" : "rounded-lg border shadow bg-[#fcfcfc] dark:bg-muted/20"]) }, [a(n, {
|
|
20
|
+
settings: u(p).formLayout,
|
|
21
|
+
onFinish: h,
|
|
22
|
+
variables: [],
|
|
23
|
+
inputValues: g.value,
|
|
24
|
+
style: { background: "transparent" }
|
|
25
|
+
}, null, 8, ["settings", "inputValues"])], 2);
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
//#endregion
|
|
30
|
+
export { d as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`./chunk-DQi1bQcV.js`);let e=require(`@oneclick.dev/cms-kit`),t=require(`vue`);var n=(0,t.defineComponent)({__name:`View`,setup(n){let r=(0,e.useRoute)(),i=(0,e.useOverlayParams)(),{config:a}=(0,e.useModule)(),o=document.documentElement.dataset.moduleOverlayMode===`true`,s=(e,t)=>{e?.finishAllFlows&&document.documentElement.dataset.moduleOverlayMode===`true`&&window.parent.postMessage({type:`module-overlay:close`},`*`)},c=(0,t.computed)(()=>{let e={...r.query,...i.value};return Object.entries(e).reduce((e,[t,n])=>(e[t]=n,e),{})});return(e,n)=>{let r=(0,t.resolveComponent)(`FormDisplayer`);return(0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`flex-1 overflow-hidden mt-4`,o?`-mx-2`:`rounded-lg border shadow bg-[#fcfcfc] dark:bg-muted/20`])},[(0,t.createVNode)(r,{settings:(0,t.unref)(a).formLayout,onFinish:s,variables:[],inputValues:c.value,style:{background:`transparent`}},null,8,[`settings`,`inputValues`])],2)}}});exports.default=n;
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createTextVNode as ee, createVNode as o, defineComponent as s, normalizeClass as c, onMounted as l, openBlock as u, ref as d, renderList as te, resolveComponent as f, resolveDynamicComponent as p, toDisplayString as m, unref as h, withCtx as g } from "vue";
|
|
2
|
+
import { ArrowDownRight as _, ArrowUpRight as v, BarChart3 as y, ExternalLink as b, Eye as x, Loader2 as ne, Minus as re, MousePointerClick as ie, Timer as S, Users as C } from "@lucide/vue";
|
|
3
|
+
//#region src/googleAnalytics/chat-components/VisitorStatsCard.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var ae = { class: "w-full" }, oe = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "flex items-center gap-2 py-3"
|
|
7
|
+
}, se = {
|
|
8
|
+
key: 1,
|
|
9
|
+
class: "text-xs text-destructive py-2"
|
|
10
|
+
}, ce = {
|
|
11
|
+
key: 2,
|
|
12
|
+
class: "rounded-xl border bg-background overflow-hidden"
|
|
13
|
+
}, le = { class: "px-3 py-2 border-b bg-muted/40 flex items-center justify-between" }, w = { class: "flex items-center gap-2" }, T = { class: "text-[10px] text-muted-foreground" }, E = { class: "grid grid-cols-2 sm:grid-cols-4 divide-x divide-y" }, D = { class: "flex items-center gap-1.5" }, O = { class: "text-[10px] text-muted-foreground uppercase tracking-wide" }, k = { class: "text-sm font-semibold" }, A = {
|
|
14
|
+
key: 0,
|
|
15
|
+
class: "flex items-center gap-0.5"
|
|
16
|
+
}, j = { class: "px-3 py-2 border-t bg-muted/20 flex items-center justify-between" }, M = {
|
|
17
|
+
key: 0,
|
|
18
|
+
class: "text-[10px] text-muted-foreground"
|
|
19
|
+
}, N = /* @__PURE__ */ s({
|
|
20
|
+
__name: "VisitorStatsCard",
|
|
21
|
+
props: {
|
|
22
|
+
toolName: {},
|
|
23
|
+
instanceId: {},
|
|
24
|
+
instanceName: {},
|
|
25
|
+
moduleType: {},
|
|
26
|
+
resolvedArgs: {},
|
|
27
|
+
status: {}
|
|
28
|
+
},
|
|
29
|
+
emits: ["submit"],
|
|
30
|
+
setup(s, { emit: N }) {
|
|
31
|
+
let { $useRoute: P, $useModuleApi: F } = useNuxtApp(), I = s, L = N, R = P(), z = t(() => R.params.slug), ue = F(I.instanceId), B = d(!0), V = d(null), H = d({}), U = d({}), W = d(null);
|
|
32
|
+
function de() {
|
|
33
|
+
let e = I.resolvedArgs?._cachedData;
|
|
34
|
+
return e ? (H.value = {
|
|
35
|
+
totalUsers: e.totalUsers || 0,
|
|
36
|
+
sessions: e.sessions || 0,
|
|
37
|
+
screenPageViews: e.pageViews || 0,
|
|
38
|
+
newUsers: e.newUsers || 0,
|
|
39
|
+
bounceRate: G(e.bounceRate),
|
|
40
|
+
averageSessionDuration: fe(e.avgSessionDuration),
|
|
41
|
+
engagementRate: G(e.engagementRate),
|
|
42
|
+
screenPageViewsPerSession: parseFloat(e.pagesPerSession) || 0
|
|
43
|
+
}, U.value = Object.fromEntries(Object.entries(e.changes || {}).map(([e, t]) => [e, pe(t)])), W.value = I.resolvedArgs._fetchedAt || null, B.value = !1, !0) : !1;
|
|
44
|
+
}
|
|
45
|
+
function G(e) {
|
|
46
|
+
return e ? parseFloat(e) / 100 : 0;
|
|
47
|
+
}
|
|
48
|
+
function fe(e) {
|
|
49
|
+
if (!e) return 0;
|
|
50
|
+
let t = e.match(/(\d+)m/), n = e.match(/(\d+)s/);
|
|
51
|
+
return (t ? parseInt(t[1]) * 60 : 0) + (n ? parseInt(n[1]) : 0);
|
|
52
|
+
}
|
|
53
|
+
function pe(e) {
|
|
54
|
+
return !e || e === "N/A" ? null : parseFloat(e.replace("+", ""));
|
|
55
|
+
}
|
|
56
|
+
async function K() {
|
|
57
|
+
let { startDate: e, endDate: t } = I.resolvedArgs || {};
|
|
58
|
+
B.value = !0, V.value = null;
|
|
59
|
+
try {
|
|
60
|
+
let n = new URLSearchParams();
|
|
61
|
+
e && n.set("startDate", e), t && n.set("endDate", t);
|
|
62
|
+
let r = await ue.get(`/report?${n.toString()}`);
|
|
63
|
+
H.value = r.totals || {}, U.value = r.changes || {}, W.value = (/* @__PURE__ */ new Date()).toISOString(), q({
|
|
64
|
+
period: J.value,
|
|
65
|
+
totalUsers: Math.round(H.value.totalUsers || 0),
|
|
66
|
+
sessions: Math.round(H.value.sessions || 0),
|
|
67
|
+
pageViews: Math.round(H.value.screenPageViews || 0),
|
|
68
|
+
newUsers: Math.round(H.value.newUsers || 0),
|
|
69
|
+
bounceRate: `${(H.value.bounceRate * 100).toFixed(1)}%`,
|
|
70
|
+
avgSessionDuration: Y(H.value.averageSessionDuration),
|
|
71
|
+
engagementRate: `${(H.value.engagementRate * 100).toFixed(1)}%`,
|
|
72
|
+
pagesPerSession: (H.value.screenPageViewsPerSession || 0).toFixed(1),
|
|
73
|
+
changes: Object.fromEntries(Object.entries(U.value).map(([e, t]) => [e, t === null ? "N/A" : `${t > 0 ? "+" : ""}${t.toFixed(1)}%`]))
|
|
74
|
+
});
|
|
75
|
+
} catch (e) {
|
|
76
|
+
V.value = e?.data?.statusMessage || e?.message || "Failed to load visitor stats", q(`Error loading visitor stats: ${V.value}`);
|
|
77
|
+
} finally {
|
|
78
|
+
B.value = !1;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
l(() => {
|
|
82
|
+
I.status === "completed" && de() || K();
|
|
83
|
+
});
|
|
84
|
+
function q(e) {
|
|
85
|
+
I.status !== "completed" && L("submit", e);
|
|
86
|
+
}
|
|
87
|
+
let J = t(() => {
|
|
88
|
+
let { startDate: e, endDate: t } = I.resolvedArgs || {};
|
|
89
|
+
if (!e && !t) return "Last 30 days";
|
|
90
|
+
let n = e || "30daysAgo", r = n.match(/^(\d+)daysAgo$/);
|
|
91
|
+
return n === "yesterday" && (!t || t === "yesterday") ? "Yesterday" : r ? `Last ${r[1]} days` : `${n} → ${t || "today"}`;
|
|
92
|
+
}), Y = (e) => {
|
|
93
|
+
if (!e) return "0s";
|
|
94
|
+
let t = Math.floor(e / 60), n = Math.round(e % 60);
|
|
95
|
+
return t > 0 ? `${t}m ${n}s` : `${n}s`;
|
|
96
|
+
}, X = (e) => e == null ? "0" : Math.round(e).toLocaleString(), Z = (e) => e == null ? "0%" : `${(e * 100).toFixed(1)}%`, me = (e) => e ? new Date(e).toLocaleString(void 0, {
|
|
97
|
+
month: "short",
|
|
98
|
+
day: "numeric",
|
|
99
|
+
hour: "2-digit",
|
|
100
|
+
minute: "2-digit"
|
|
101
|
+
}) : "", Q = (e, t = !1) => e == null ? "text-muted-foreground" : (t ? e < 0 : e > 0) ? "text-emerald-600 dark:text-emerald-400" : (t ? e > 0 : e < 0) ? "text-red-600 dark:text-red-400" : "text-muted-foreground", $ = (e) => e == null ? null : `${e > 0 ? "+" : ""}${e.toFixed(1)}%`, he = t(() => [
|
|
102
|
+
{
|
|
103
|
+
label: "Users",
|
|
104
|
+
value: X(H.value.totalUsers),
|
|
105
|
+
change: U.value.totalUsers,
|
|
106
|
+
icon: C
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
label: "Sessions",
|
|
110
|
+
value: X(H.value.sessions),
|
|
111
|
+
change: U.value.sessions,
|
|
112
|
+
icon: ie
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
label: "Page Views",
|
|
116
|
+
value: X(H.value.screenPageViews),
|
|
117
|
+
change: U.value.screenPageViews,
|
|
118
|
+
icon: x
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
label: "New Users",
|
|
122
|
+
value: X(H.value.newUsers),
|
|
123
|
+
change: U.value.newUsers,
|
|
124
|
+
icon: C
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
label: "Bounce Rate",
|
|
128
|
+
value: Z(H.value.bounceRate),
|
|
129
|
+
change: U.value.bounceRate,
|
|
130
|
+
inverted: !0,
|
|
131
|
+
icon: _
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
label: "Engagement",
|
|
135
|
+
value: Z(H.value.engagementRate),
|
|
136
|
+
change: U.value.engagementRate,
|
|
137
|
+
icon: S
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
label: "Avg Duration",
|
|
141
|
+
value: Y(H.value.averageSessionDuration),
|
|
142
|
+
change: U.value.averageSessionDuration,
|
|
143
|
+
icon: S
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
label: "Pages/Session",
|
|
147
|
+
value: (H.value.screenPageViewsPerSession || 0).toFixed(1),
|
|
148
|
+
change: U.value.screenPageViewsPerSession,
|
|
149
|
+
icon: x
|
|
150
|
+
}
|
|
151
|
+
]);
|
|
152
|
+
return (t, l) => {
|
|
153
|
+
let d = f("NuxtLink");
|
|
154
|
+
return u(), i("div", ae, [h(B) ? (u(), i("div", oe, [o(h(ne), { class: "size-4 animate-spin text-muted-foreground" }), l[0] ||= a("span", { class: "text-xs text-muted-foreground" }, "Loading visitor statistics…", -1)])) : h(V) ? (u(), i("div", se, m(h(V)), 1)) : (u(), i("div", ce, [
|
|
155
|
+
a("div", le, [a("div", w, [o(h(y), { class: "size-3.5 text-primary" }), l[1] ||= a("span", { class: "text-xs font-medium" }, "Visitor Statistics", -1)]), a("span", T, m(h(J)), 1)]),
|
|
156
|
+
a("div", E, [(u(!0), i(e, null, te(h(he), (e) => (u(), i("div", {
|
|
157
|
+
key: e.label,
|
|
158
|
+
class: "px-3 py-3 space-y-1"
|
|
159
|
+
}, [
|
|
160
|
+
a("div", D, [(u(), n(p(e.icon), { class: "size-3 text-muted-foreground" })), a("span", O, m(e.label), 1)]),
|
|
161
|
+
a("p", k, m(e.value), 1),
|
|
162
|
+
$(e.change) ? (u(), i("div", A, [(e.change ?? 0) > 0 ? (u(), n(h(v), {
|
|
163
|
+
key: 0,
|
|
164
|
+
class: c(["size-2.5", Q(e.change, e.inverted)])
|
|
165
|
+
}, null, 8, ["class"])) : (e.change ?? 0) < 0 ? (u(), n(h(_), {
|
|
166
|
+
key: 1,
|
|
167
|
+
class: c(["size-2.5", Q(e.change, e.inverted)])
|
|
168
|
+
}, null, 8, ["class"])) : (u(), n(h(re), {
|
|
169
|
+
key: 2,
|
|
170
|
+
class: "size-2.5 text-muted-foreground"
|
|
171
|
+
})), a("span", { class: c(["text-[10px] font-medium", Q(e.change, e.inverted)]) }, m($(e.change)), 3)])) : r("", !0)
|
|
172
|
+
]))), 128))]),
|
|
173
|
+
a("div", j, [h(W) ? (u(), i("span", M, " Fetched " + m(me(h(W))), 1)) : r("", !0), o(d, {
|
|
174
|
+
to: `/projects/${h(z)}/modules/${s.instanceId}`,
|
|
175
|
+
class: "inline-flex items-center gap-1.5 text-xs text-primary hover:underline"
|
|
176
|
+
}, {
|
|
177
|
+
default: g(() => [o(h(b), { class: "size-3" }), l[2] ||= ee(" View full report ", -1)]),
|
|
178
|
+
_: 1
|
|
179
|
+
}, 8, ["to"])])
|
|
180
|
+
]))]);
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
});
|
|
184
|
+
//#endregion
|
|
185
|
+
export { N as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`./chunk-DQi1bQcV.js`);let e=require(`vue`),t=require(`@lucide/vue`);var n={class:`w-full`},r={key:0,class:`flex items-center gap-2 py-3`},i={key:1,class:`text-xs text-destructive py-2`},a={key:2,class:`rounded-xl border bg-background overflow-hidden`},o={class:`px-3 py-2 border-b bg-muted/40 flex items-center justify-between`},s={class:`flex items-center gap-2`},c={class:`text-[10px] text-muted-foreground`},l={class:`grid grid-cols-2 sm:grid-cols-4 divide-x divide-y`},u={class:`flex items-center gap-1.5`},d={class:`text-[10px] text-muted-foreground uppercase tracking-wide`},f={class:`text-sm font-semibold`},p={key:0,class:`flex items-center gap-0.5`},m={class:`px-3 py-2 border-t bg-muted/20 flex items-center justify-between`},h={key:0,class:`text-[10px] text-muted-foreground`},g=(0,e.defineComponent)({__name:`VisitorStatsCard`,props:{toolName:{},instanceId:{},instanceName:{},moduleType:{},resolvedArgs:{},status:{}},emits:[`submit`],setup(g,{emit:_}){let{$useRoute:v,$useModuleApi:y}=useNuxtApp(),b=g,x=_,S=v(),C=(0,e.computed)(()=>S.params.slug),w=y(b.instanceId),T=(0,e.ref)(!0),E=(0,e.ref)(null),D=(0,e.ref)({}),O=(0,e.ref)({}),k=(0,e.ref)(null);function A(){let e=b.resolvedArgs?._cachedData;return e?(D.value={totalUsers:e.totalUsers||0,sessions:e.sessions||0,screenPageViews:e.pageViews||0,newUsers:e.newUsers||0,bounceRate:j(e.bounceRate),averageSessionDuration:M(e.avgSessionDuration),engagementRate:j(e.engagementRate),screenPageViewsPerSession:parseFloat(e.pagesPerSession)||0},O.value=Object.fromEntries(Object.entries(e.changes||{}).map(([e,t])=>[e,N(t)])),k.value=b.resolvedArgs._fetchedAt||null,T.value=!1,!0):!1}function j(e){return e?parseFloat(e)/100:0}function M(e){if(!e)return 0;let t=e.match(/(\d+)m/),n=e.match(/(\d+)s/);return(t?parseInt(t[1])*60:0)+(n?parseInt(n[1]):0)}function N(e){return!e||e===`N/A`?null:parseFloat(e.replace(`+`,``))}async function P(){let{startDate:e,endDate:t}=b.resolvedArgs||{};T.value=!0,E.value=null;try{let n=new URLSearchParams;e&&n.set(`startDate`,e),t&&n.set(`endDate`,t);let r=await w.get(`/report?${n.toString()}`);D.value=r.totals||{},O.value=r.changes||{},k.value=new Date().toISOString(),F({period:I.value,totalUsers:Math.round(D.value.totalUsers||0),sessions:Math.round(D.value.sessions||0),pageViews:Math.round(D.value.screenPageViews||0),newUsers:Math.round(D.value.newUsers||0),bounceRate:`${(D.value.bounceRate*100).toFixed(1)}%`,avgSessionDuration:L(D.value.averageSessionDuration),engagementRate:`${(D.value.engagementRate*100).toFixed(1)}%`,pagesPerSession:(D.value.screenPageViewsPerSession||0).toFixed(1),changes:Object.fromEntries(Object.entries(O.value).map(([e,t])=>[e,t===null?`N/A`:`${t>0?`+`:``}${t.toFixed(1)}%`]))})}catch(e){E.value=e?.data?.statusMessage||e?.message||`Failed to load visitor stats`,F(`Error loading visitor stats: ${E.value}`)}finally{T.value=!1}}(0,e.onMounted)(()=>{b.status===`completed`&&A()||P()});function F(e){b.status!==`completed`&&x(`submit`,e)}let I=(0,e.computed)(()=>{let{startDate:e,endDate:t}=b.resolvedArgs||{};if(!e&&!t)return`Last 30 days`;let n=e||`30daysAgo`,r=n.match(/^(\d+)daysAgo$/);return n===`yesterday`&&(!t||t===`yesterday`)?`Yesterday`:r?`Last ${r[1]} days`:`${n} → ${t||`today`}`}),L=e=>{if(!e)return`0s`;let t=Math.floor(e/60),n=Math.round(e%60);return t>0?`${t}m ${n}s`:`${n}s`},R=e=>e==null?`0`:Math.round(e).toLocaleString(),z=e=>e==null?`0%`:`${(e*100).toFixed(1)}%`,B=e=>e?new Date(e).toLocaleString(void 0,{month:`short`,day:`numeric`,hour:`2-digit`,minute:`2-digit`}):``,V=(e,t=!1)=>e==null?`text-muted-foreground`:(t?e<0:e>0)?`text-emerald-600 dark:text-emerald-400`:(t?e>0:e<0)?`text-red-600 dark:text-red-400`:`text-muted-foreground`,H=e=>e==null?null:`${e>0?`+`:``}${e.toFixed(1)}%`,U=(0,e.computed)(()=>[{label:`Users`,value:R(D.value.totalUsers),change:O.value.totalUsers,icon:t.Users},{label:`Sessions`,value:R(D.value.sessions),change:O.value.sessions,icon:t.MousePointerClick},{label:`Page Views`,value:R(D.value.screenPageViews),change:O.value.screenPageViews,icon:t.Eye},{label:`New Users`,value:R(D.value.newUsers),change:O.value.newUsers,icon:t.Users},{label:`Bounce Rate`,value:z(D.value.bounceRate),change:O.value.bounceRate,inverted:!0,icon:t.ArrowDownRight},{label:`Engagement`,value:z(D.value.engagementRate),change:O.value.engagementRate,icon:t.Timer},{label:`Avg Duration`,value:L(D.value.averageSessionDuration),change:O.value.averageSessionDuration,icon:t.Timer},{label:`Pages/Session`,value:(D.value.screenPageViewsPerSession||0).toFixed(1),change:O.value.screenPageViewsPerSession,icon:t.Eye}]);return(_,v)=>{let y=(0,e.resolveComponent)(`NuxtLink`);return(0,e.openBlock)(),(0,e.createElementBlock)(`div`,n,[(0,e.unref)(T)?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,r,[(0,e.createVNode)((0,e.unref)(t.Loader2),{class:`size-4 animate-spin text-muted-foreground`}),v[0]||=(0,e.createElementVNode)(`span`,{class:`text-xs text-muted-foreground`},`Loading visitor statistics…`,-1)])):(0,e.unref)(E)?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,i,(0,e.toDisplayString)((0,e.unref)(E)),1)):((0,e.openBlock)(),(0,e.createElementBlock)(`div`,a,[(0,e.createElementVNode)(`div`,o,[(0,e.createElementVNode)(`div`,s,[(0,e.createVNode)((0,e.unref)(t.BarChart3),{class:`size-3.5 text-primary`}),v[1]||=(0,e.createElementVNode)(`span`,{class:`text-xs font-medium`},`Visitor Statistics`,-1)]),(0,e.createElementVNode)(`span`,c,(0,e.toDisplayString)((0,e.unref)(I)),1)]),(0,e.createElementVNode)(`div`,l,[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)((0,e.unref)(U),n=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:n.label,class:`px-3 py-3 space-y-1`},[(0,e.createElementVNode)(`div`,u,[((0,e.openBlock)(),(0,e.createBlock)((0,e.resolveDynamicComponent)(n.icon),{class:`size-3 text-muted-foreground`})),(0,e.createElementVNode)(`span`,d,(0,e.toDisplayString)(n.label),1)]),(0,e.createElementVNode)(`p`,f,(0,e.toDisplayString)(n.value),1),H(n.change)?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,p,[(n.change??0)>0?((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(t.ArrowUpRight),{key:0,class:(0,e.normalizeClass)([`size-2.5`,V(n.change,n.inverted)])},null,8,[`class`])):(n.change??0)<0?((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(t.ArrowDownRight),{key:1,class:(0,e.normalizeClass)([`size-2.5`,V(n.change,n.inverted)])},null,8,[`class`])):((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(t.Minus),{key:2,class:`size-2.5 text-muted-foreground`})),(0,e.createElementVNode)(`span`,{class:(0,e.normalizeClass)([`text-[10px] font-medium`,V(n.change,n.inverted)])},(0,e.toDisplayString)(H(n.change)),3)])):(0,e.createCommentVNode)(``,!0)]))),128))]),(0,e.createElementVNode)(`div`,m,[(0,e.unref)(k)?((0,e.openBlock)(),(0,e.createElementBlock)(`span`,h,` Fetched `+(0,e.toDisplayString)(B((0,e.unref)(k))),1)):(0,e.createCommentVNode)(``,!0),(0,e.createVNode)(y,{to:`/projects/${(0,e.unref)(C)}/modules/${g.instanceId}`,class:`inline-flex items-center gap-1.5 text-xs text-primary hover:underline`},{default:(0,e.withCtx)(()=>[(0,e.createVNode)((0,e.unref)(t.ExternalLink),{class:`size-3`}),v[2]||=(0,e.createTextVNode)(` View full report `,-1)]),_:1},8,[`to`])])]))])}}});exports.default=g;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n};Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return e}});
|