@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,157 @@
|
|
|
1
|
+
import { Fragment as e, computed as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, createStaticVNode as a, createTextVNode as o, createVNode as s, defineComponent as c, normalizeClass as l, normalizeStyle as u, onMounted as d, openBlock as f, ref as p, renderList as m, resolveComponent as h, toDisplayString as g, unref as _, withCtx as v } from "vue";
|
|
2
|
+
import { Clock as y, ExternalLink as b, Loader2 as x } from "@lucide/vue";
|
|
3
|
+
//#region src/googleAnalytics/chat-components/PeakHoursCard.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var ee = { class: "w-full" }, te = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "flex items-center gap-2 py-3"
|
|
7
|
+
}, ne = {
|
|
8
|
+
key: 1,
|
|
9
|
+
class: "text-xs text-destructive py-2"
|
|
10
|
+
}, re = {
|
|
11
|
+
key: 2,
|
|
12
|
+
class: "rounded-xl border bg-background overflow-hidden"
|
|
13
|
+
}, S = { class: "px-3 py-2 border-b bg-muted/40 flex items-center justify-between" }, C = { class: "flex items-center gap-2" }, ie = { class: "text-[10px] text-muted-foreground" }, ae = {
|
|
14
|
+
key: 0,
|
|
15
|
+
class: "px-3 pt-3 pb-1"
|
|
16
|
+
}, w = { class: "flex items-center gap-2 text-xs" }, T = { class: "inline-flex items-center gap-1 px-2 py-0.5 rounded-full bg-blue-500/10 text-blue-600 dark:text-blue-400 font-medium" }, E = { class: "px-3 py-3" }, D = { class: "flex items-end gap-[2px] h-16" }, O = ["title"], k = {
|
|
17
|
+
key: 1,
|
|
18
|
+
class: "px-3 pb-3"
|
|
19
|
+
}, A = { class: "space-y-[2px]" }, j = { class: "text-[8px] text-muted-foreground w-6 shrink-0 text-right" }, M = { class: "flex gap-[2px] flex-1" }, N = ["title"], P = { class: "px-3 py-2 border-t bg-muted/20 flex items-center justify-between" }, F = { class: "text-[10px] text-muted-foreground" }, I = /* @__PURE__ */ c({
|
|
20
|
+
__name: "PeakHoursCard",
|
|
21
|
+
props: {
|
|
22
|
+
toolName: {},
|
|
23
|
+
instanceId: {},
|
|
24
|
+
instanceName: {},
|
|
25
|
+
moduleType: {},
|
|
26
|
+
resolvedArgs: {},
|
|
27
|
+
status: {}
|
|
28
|
+
},
|
|
29
|
+
emits: ["submit"],
|
|
30
|
+
setup(c, { emit: I }) {
|
|
31
|
+
let { $useRoute: L, $useModuleApi: R } = useNuxtApp(), z = c, B = I, V = L(), H = t(() => V.params.slug), U = R(z.instanceId), W = p(!0), G = p(null), K = p([]), q = p(null), J = p(null), oe = [
|
|
32
|
+
"Sunday",
|
|
33
|
+
"Monday",
|
|
34
|
+
"Tuesday",
|
|
35
|
+
"Wednesday",
|
|
36
|
+
"Thursday",
|
|
37
|
+
"Friday",
|
|
38
|
+
"Saturday"
|
|
39
|
+
], Y = {
|
|
40
|
+
Sunday: "Sun",
|
|
41
|
+
Monday: "Mon",
|
|
42
|
+
Tuesday: "Tue",
|
|
43
|
+
Wednesday: "Wed",
|
|
44
|
+
Thursday: "Thu",
|
|
45
|
+
Friday: "Fri",
|
|
46
|
+
Saturday: "Sat"
|
|
47
|
+
}, X = p([]), se = t(() => Math.max(...X.value.map((e) => e.sessions), 1));
|
|
48
|
+
function ce(e) {
|
|
49
|
+
let t = e / se.value;
|
|
50
|
+
return t === 0 ? "bg-muted/40" : t < .2 ? "bg-blue-100 dark:bg-blue-950" : t < .4 ? "bg-blue-200 dark:bg-blue-900" : t < .6 ? "bg-blue-300 dark:bg-blue-700" : t < .8 ? "bg-blue-400 dark:bg-blue-600" : "bg-blue-500 dark:bg-blue-500";
|
|
51
|
+
}
|
|
52
|
+
function le() {
|
|
53
|
+
let e = z.resolvedArgs?._cachedData;
|
|
54
|
+
return e ? (K.value = e.hourly || [], q.value = e.peakHour ?? null, X.value = e.heatmap || [], J.value = z.resolvedArgs._fetchedAt || null, W.value = !1, !0) : !1;
|
|
55
|
+
}
|
|
56
|
+
async function ue() {
|
|
57
|
+
let { startDate: e, endDate: t } = z.resolvedArgs || {};
|
|
58
|
+
W.value = !0, G.value = null;
|
|
59
|
+
try {
|
|
60
|
+
let n = new URLSearchParams();
|
|
61
|
+
e && n.set("startDate", e), t && n.set("endDate", t);
|
|
62
|
+
let r = (await U.get(`/audience/hours?${n.toString()}`)).rows || [];
|
|
63
|
+
X.value = r.map((e) => ({
|
|
64
|
+
day: e.dayOfWeekName,
|
|
65
|
+
hour: parseInt(e.hour, 10),
|
|
66
|
+
sessions: e.sessions || 0
|
|
67
|
+
}));
|
|
68
|
+
let i = {};
|
|
69
|
+
for (let e of r) {
|
|
70
|
+
let t = parseInt(e.hour, 10);
|
|
71
|
+
i[t] = (i[t] || 0) + (e.sessions || 0);
|
|
72
|
+
}
|
|
73
|
+
let a = [];
|
|
74
|
+
for (let e = 0; e < 24; e++) a.push({
|
|
75
|
+
hour: e,
|
|
76
|
+
sessions: i[e] || 0
|
|
77
|
+
});
|
|
78
|
+
K.value = a;
|
|
79
|
+
let o = 0, s = 0;
|
|
80
|
+
for (let e of a) e.sessions > s && (o = e.hour, s = e.sessions);
|
|
81
|
+
q.value = o, J.value = (/* @__PURE__ */ new Date()).toISOString();
|
|
82
|
+
let c = {};
|
|
83
|
+
for (let e of r) c[e.dayOfWeekName] = (c[e.dayOfWeekName] || 0) + (e.sessions || 0);
|
|
84
|
+
let l = Object.entries(c).sort((e, t) => t[1] - e[1])[0]?.[0] || "—";
|
|
85
|
+
Z({
|
|
86
|
+
peakHour: o,
|
|
87
|
+
peakDay: l,
|
|
88
|
+
hourly: a,
|
|
89
|
+
heatmap: X.value,
|
|
90
|
+
suggestion: `Peak traffic hour is ${Q(o)} with ${s.toLocaleString()} sessions. The busiest day is ${l}.`
|
|
91
|
+
});
|
|
92
|
+
} catch (e) {
|
|
93
|
+
G.value = e?.data?.statusMessage || e?.message || "Failed to load peak hours data", Z(`Error loading peak hours data: ${G.value}`);
|
|
94
|
+
} finally {
|
|
95
|
+
W.value = !1;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
d(() => {
|
|
99
|
+
z.status === "completed" && le() || ue();
|
|
100
|
+
});
|
|
101
|
+
function Z(e) {
|
|
102
|
+
z.status !== "completed" && B("submit", e);
|
|
103
|
+
}
|
|
104
|
+
function Q(e) {
|
|
105
|
+
return e === 0 ? "12 AM" : e < 12 ? `${e} AM` : e === 12 ? "12 PM" : `${e - 12} PM`;
|
|
106
|
+
}
|
|
107
|
+
let de = (e) => e ? new Date(e).toLocaleString(void 0, {
|
|
108
|
+
month: "short",
|
|
109
|
+
day: "numeric",
|
|
110
|
+
hour: "2-digit",
|
|
111
|
+
minute: "2-digit"
|
|
112
|
+
}) : "", fe = t(() => Math.max(...K.value.map((e) => e.sessions), 1)), pe = 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
|
+
}), $ = t(() => oe.filter((e) => X.value.some((t) => t.day === e)));
|
|
118
|
+
return (t, d) => {
|
|
119
|
+
let p = h("NuxtLink");
|
|
120
|
+
return f(), r("div", ee, [_(W) ? (f(), r("div", te, [s(_(x), { class: "size-4 animate-spin text-muted-foreground" }), d[0] ||= i("span", { class: "text-xs text-muted-foreground" }, "Loading peak hours data…", -1)])) : _(G) ? (f(), r("div", ne, g(_(G)), 1)) : (f(), r("div", re, [
|
|
121
|
+
i("div", S, [i("div", C, [s(_(y), { class: "size-3.5 text-primary" }), d[1] ||= i("span", { class: "text-xs font-medium" }, "Peak Traffic Hours", -1)]), i("span", ie, g(_(pe)), 1)]),
|
|
122
|
+
_(q) === null ? n("", !0) : (f(), r("div", ae, [i("div", w, [i("span", T, " 🔥 " + g(Q(_(q))), 1), d[2] ||= i("span", { class: "text-muted-foreground" }, "is the busiest hour", -1)])])),
|
|
123
|
+
i("div", E, [i("div", D, [(f(!0), r(e, null, m(_(K), (e) => (f(), r("div", {
|
|
124
|
+
key: e.hour,
|
|
125
|
+
class: l(["flex-1 rounded-t transition-all hover:opacity-80 group relative", e.hour === _(q) ? "bg-blue-500" : "bg-blue-300/60 dark:bg-blue-700/60"]),
|
|
126
|
+
style: u({ height: `${Math.max(e.sessions / _(fe) * 100, 2)}%` }),
|
|
127
|
+
title: `${Q(e.hour)}: ${e.sessions.toLocaleString()} sessions`
|
|
128
|
+
}, null, 14, O))), 128))]), d[3] ||= a("<div class=\"flex mt-1 text-[8px] text-muted-foreground\"><span class=\"flex-1 text-left\">12AM</span><span class=\"flex-1 text-center\">6AM</span><span class=\"flex-1 text-center\">12PM</span><span class=\"flex-1 text-center\">6PM</span><span class=\"flex-1 text-right\">11PM</span></div>", 1)]),
|
|
129
|
+
_($).length > 0 ? (f(), r("div", k, [
|
|
130
|
+
d[4] ||= i("p", { class: "text-[10px] text-muted-foreground mb-1.5 font-medium" }, "Weekly Heatmap", -1),
|
|
131
|
+
i("div", A, [(f(!0), r(e, null, m(_($), (t) => (f(), r("div", {
|
|
132
|
+
key: t,
|
|
133
|
+
class: "flex items-center gap-1"
|
|
134
|
+
}, [i("span", j, g(Y[t]), 1), i("div", M, [(f(), r(e, null, m(24, (e) => i("div", {
|
|
135
|
+
key: e,
|
|
136
|
+
class: l(["flex-1 h-2.5 rounded-[2px] transition-colors", ce(_(X).find((n) => n.day === t && n.hour === e - 1)?.sessions || 0)]),
|
|
137
|
+
title: `${Y[t]} ${Q(e - 1)}: ${(_(X).find((n) => n.day === t && n.hour === e - 1)?.sessions || 0).toLocaleString()} sessions`
|
|
138
|
+
}, null, 10, N)), 64))])]))), 128))]),
|
|
139
|
+
d[5] ||= i("div", { class: "flex mt-1 ml-7 text-[8px] text-muted-foreground" }, [
|
|
140
|
+
i("span", { class: "flex-1 text-left" }, "12AM"),
|
|
141
|
+
i("span", { class: "flex-1 text-center" }, "12PM"),
|
|
142
|
+
i("span", { class: "flex-1 text-right" }, "11PM")
|
|
143
|
+
], -1)
|
|
144
|
+
])) : n("", !0),
|
|
145
|
+
i("div", P, [i("span", F, [_(J) ? (f(), r(e, { key: 0 }, [o("fetched " + g(de(_(J))), 1)], 64)) : n("", !0)]), s(p, {
|
|
146
|
+
to: `/projects/${_(H)}/modules/${c.instanceId}/audience`,
|
|
147
|
+
class: "inline-flex items-center gap-1.5 text-xs text-primary hover:underline"
|
|
148
|
+
}, {
|
|
149
|
+
default: v(() => [s(_(b), { class: "size-3" }), d[6] ||= o(" View full report ", -1)]),
|
|
150
|
+
_: 1
|
|
151
|
+
}, 8, ["to"])])
|
|
152
|
+
]))]);
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
//#endregion
|
|
157
|
+
export { I 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={key:0,class:`px-3 pt-3 pb-1`},u={class:`flex items-center gap-2 text-xs`},d={class:`inline-flex items-center gap-1 px-2 py-0.5 rounded-full bg-blue-500/10 text-blue-600 dark:text-blue-400 font-medium`},f={class:`px-3 py-3`},p={class:`flex items-end gap-[2px] h-16`},m=[`title`],h={key:1,class:`px-3 pb-3`},g={class:`space-y-[2px]`},_={class:`text-[8px] text-muted-foreground w-6 shrink-0 text-right`},v={class:`flex gap-[2px] flex-1`},y=[`title`],b={class:`px-3 py-2 border-t bg-muted/20 flex items-center justify-between`},x={class:`text-[10px] text-muted-foreground`},S=(0,e.defineComponent)({__name:`PeakHoursCard`,props:{toolName:{},instanceId:{},instanceName:{},moduleType:{},resolvedArgs:{},status:{}},emits:[`submit`],setup(S,{emit:C}){let{$useRoute:w,$useModuleApi:T}=useNuxtApp(),E=S,D=C,O=w(),k=(0,e.computed)(()=>O.params.slug),A=T(E.instanceId),j=(0,e.ref)(!0),M=(0,e.ref)(null),N=(0,e.ref)([]),P=(0,e.ref)(null),F=(0,e.ref)(null),I=[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],L={Sunday:`Sun`,Monday:`Mon`,Tuesday:`Tue`,Wednesday:`Wed`,Thursday:`Thu`,Friday:`Fri`,Saturday:`Sat`},R=(0,e.ref)([]),z=(0,e.computed)(()=>Math.max(...R.value.map(e=>e.sessions),1));function B(e){let t=e/z.value;return t===0?`bg-muted/40`:t<.2?`bg-blue-100 dark:bg-blue-950`:t<.4?`bg-blue-200 dark:bg-blue-900`:t<.6?`bg-blue-300 dark:bg-blue-700`:t<.8?`bg-blue-400 dark:bg-blue-600`:`bg-blue-500 dark:bg-blue-500`}function V(){let e=E.resolvedArgs?._cachedData;return e?(N.value=e.hourly||[],P.value=e.peakHour??null,R.value=e.heatmap||[],F.value=E.resolvedArgs._fetchedAt||null,j.value=!1,!0):!1}async function H(){let{startDate:e,endDate:t}=E.resolvedArgs||{};j.value=!0,M.value=null;try{let n=new URLSearchParams;e&&n.set(`startDate`,e),t&&n.set(`endDate`,t);let r=(await A.get(`/audience/hours?${n.toString()}`)).rows||[];R.value=r.map(e=>({day:e.dayOfWeekName,hour:parseInt(e.hour,10),sessions:e.sessions||0}));let i={};for(let e of r){let t=parseInt(e.hour,10);i[t]=(i[t]||0)+(e.sessions||0)}let a=[];for(let e=0;e<24;e++)a.push({hour:e,sessions:i[e]||0});N.value=a;let o=0,s=0;for(let e of a)e.sessions>s&&(o=e.hour,s=e.sessions);P.value=o,F.value=new Date().toISOString();let c={};for(let e of r)c[e.dayOfWeekName]=(c[e.dayOfWeekName]||0)+(e.sessions||0);let l=Object.entries(c).sort((e,t)=>t[1]-e[1])[0]?.[0]||`—`;U({peakHour:o,peakDay:l,hourly:a,heatmap:R.value,suggestion:`Peak traffic hour is ${W(o)} with ${s.toLocaleString()} sessions. The busiest day is ${l}.`})}catch(e){M.value=e?.data?.statusMessage||e?.message||`Failed to load peak hours data`,U(`Error loading peak hours data: ${M.value}`)}finally{j.value=!1}}(0,e.onMounted)(()=>{E.status===`completed`&&V()||H()});function U(e){E.status!==`completed`&&D(`submit`,e)}function W(e){return e===0?`12 AM`:e<12?`${e} AM`:e===12?`12 PM`:`${e-12} PM`}let G=e=>e?new Date(e).toLocaleString(void 0,{month:`short`,day:`numeric`,hour:`2-digit`,minute:`2-digit`}):``,K=(0,e.computed)(()=>Math.max(...N.value.map(e=>e.sessions),1)),q=(0,e.computed)(()=>{let{startDate:e,endDate:t}=E.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`}`}),J=(0,e.computed)(()=>I.filter(e=>R.value.some(t=>t.day===e)));return(C,w)=>{let T=(0,e.resolveComponent)(`NuxtLink`);return(0,e.openBlock)(),(0,e.createElementBlock)(`div`,n,[(0,e.unref)(j)?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,r,[(0,e.createVNode)((0,e.unref)(t.Loader2),{class:`size-4 animate-spin text-muted-foreground`}),w[0]||=(0,e.createElementVNode)(`span`,{class:`text-xs text-muted-foreground`},`Loading peak hours data…`,-1)])):(0,e.unref)(M)?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,i,(0,e.toDisplayString)((0,e.unref)(M)),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.Clock),{class:`size-3.5 text-primary`}),w[1]||=(0,e.createElementVNode)(`span`,{class:`text-xs font-medium`},`Peak Traffic Hours`,-1)]),(0,e.createElementVNode)(`span`,c,(0,e.toDisplayString)((0,e.unref)(q)),1)]),(0,e.unref)(P)===null?(0,e.createCommentVNode)(``,!0):((0,e.openBlock)(),(0,e.createElementBlock)(`div`,l,[(0,e.createElementVNode)(`div`,u,[(0,e.createElementVNode)(`span`,d,` 🔥 `+(0,e.toDisplayString)(W((0,e.unref)(P))),1),w[2]||=(0,e.createElementVNode)(`span`,{class:`text-muted-foreground`},`is the busiest hour`,-1)])])),(0,e.createElementVNode)(`div`,f,[(0,e.createElementVNode)(`div`,p,[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)((0,e.unref)(N),t=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:t.hour,class:(0,e.normalizeClass)([`flex-1 rounded-t transition-all hover:opacity-80 group relative`,t.hour===(0,e.unref)(P)?`bg-blue-500`:`bg-blue-300/60 dark:bg-blue-700/60`]),style:(0,e.normalizeStyle)({height:`${Math.max(t.sessions/(0,e.unref)(K)*100,2)}%`}),title:`${W(t.hour)}: ${t.sessions.toLocaleString()} sessions`},null,14,m))),128))]),w[3]||=(0,e.createStaticVNode)(`<div class="flex mt-1 text-[8px] text-muted-foreground"><span class="flex-1 text-left">12AM</span><span class="flex-1 text-center">6AM</span><span class="flex-1 text-center">12PM</span><span class="flex-1 text-center">6PM</span><span class="flex-1 text-right">11PM</span></div>`,1)]),(0,e.unref)(J).length>0?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,h,[w[4]||=(0,e.createElementVNode)(`p`,{class:`text-[10px] text-muted-foreground mb-1.5 font-medium`},`Weekly Heatmap`,-1),(0,e.createElementVNode)(`div`,g,[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)((0,e.unref)(J),t=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:t,class:`flex items-center gap-1`},[(0,e.createElementVNode)(`span`,_,(0,e.toDisplayString)(L[t]),1),(0,e.createElementVNode)(`div`,v,[((0,e.openBlock)(),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(24,n=>(0,e.createElementVNode)(`div`,{key:n,class:(0,e.normalizeClass)([`flex-1 h-2.5 rounded-[2px] transition-colors`,B((0,e.unref)(R).find(e=>e.day===t&&e.hour===n-1)?.sessions||0)]),title:`${L[t]} ${W(n-1)}: ${((0,e.unref)(R).find(e=>e.day===t&&e.hour===n-1)?.sessions||0).toLocaleString()} sessions`},null,10,y)),64))])]))),128))]),w[5]||=(0,e.createElementVNode)(`div`,{class:`flex mt-1 ml-7 text-[8px] text-muted-foreground`},[(0,e.createElementVNode)(`span`,{class:`flex-1 text-left`},`12AM`),(0,e.createElementVNode)(`span`,{class:`flex-1 text-center`},`12PM`),(0,e.createElementVNode)(`span`,{class:`flex-1 text-right`},`11PM`)],-1)])):(0,e.createCommentVNode)(``,!0),(0,e.createElementVNode)(`div`,b,[(0,e.createElementVNode)(`span`,x,[(0,e.unref)(F)?((0,e.openBlock)(),(0,e.createElementBlock)(e.Fragment,{key:0},[(0,e.createTextVNode)(`fetched `+(0,e.toDisplayString)(G((0,e.unref)(F))),1)],64)):(0,e.createCommentVNode)(``,!0)]),(0,e.createVNode)(T,{to:`/projects/${(0,e.unref)(k)}/modules/${S.instanceId}/audience`,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`}),w[6]||=(0,e.createTextVNode)(` View full report `,-1)]),_:1},8,[`to`])])]))])}}});exports.default=S;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { computed as e, createBlock as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, createTextVNode as a, createVNode as o, defineComponent as s, normalizeClass as c, onMounted as l, openBlock as u, ref as d, resolveComponent as f, toDisplayString as p, unref as m, withCtx as h } from "vue";
|
|
2
|
+
import { ExternalLink as g, Loader2 as _, Package as v } from "@lucide/vue";
|
|
3
|
+
//#region src/products/chat-components/ProductDetailsCard.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-3 space-y-3"
|
|
13
|
+
}, C = { class: "flex items-start gap-3" }, w = { class: "shrink-0 size-16 rounded-lg bg-muted overflow-hidden flex items-center justify-center" }, T = ["src", "alt"], E = { class: "flex-1 min-w-0" }, D = { class: "text-sm font-semibold truncate" }, O = { class: "text-lg font-bold mt-0.5" }, k = { class: "flex items-center gap-2 mt-1" }, A = { class: "text-xs text-muted-foreground" }, j = {
|
|
14
|
+
key: 0,
|
|
15
|
+
class: "text-xs text-muted-foreground line-clamp-2"
|
|
16
|
+
}, M = /* @__PURE__ */ s({
|
|
17
|
+
__name: "ProductDetailsCard",
|
|
18
|
+
props: {
|
|
19
|
+
toolName: {},
|
|
20
|
+
instanceId: {},
|
|
21
|
+
instanceName: {},
|
|
22
|
+
moduleType: {},
|
|
23
|
+
resolvedArgs: {},
|
|
24
|
+
status: {}
|
|
25
|
+
},
|
|
26
|
+
emits: ["submit"],
|
|
27
|
+
setup(s, { emit: M }) {
|
|
28
|
+
let { $useRoute: N, $useModuleApi: P } = useNuxtApp(), F = s, I = M, L = N(), R = e(() => L.params.slug), z = P(F.instanceId), B = d(!0), V = d(null), H = d(null);
|
|
29
|
+
async function U() {
|
|
30
|
+
let e = F.resolvedArgs?.productId;
|
|
31
|
+
if (!e) {
|
|
32
|
+
V.value = "No product ID provided", B.value = !1;
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
B.value = !0, V.value = null;
|
|
36
|
+
try {
|
|
37
|
+
H.value = await z.get(`/products/${e}`), W({
|
|
38
|
+
productId: H.value.id,
|
|
39
|
+
title: H.value.title,
|
|
40
|
+
price: H.value.price,
|
|
41
|
+
currency: H.value.currency,
|
|
42
|
+
stock: H.value.stock,
|
|
43
|
+
status: H.value.status,
|
|
44
|
+
available: H.value.available
|
|
45
|
+
});
|
|
46
|
+
} catch (e) {
|
|
47
|
+
V.value = e?.data?.statusMessage || e?.message || "Failed to load product", W(`Error fetching product: ${V.value}`);
|
|
48
|
+
} finally {
|
|
49
|
+
B.value = !1;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
l(() => {
|
|
53
|
+
U();
|
|
54
|
+
});
|
|
55
|
+
function W(e) {
|
|
56
|
+
F.status !== "completed" && I("submit", e);
|
|
57
|
+
}
|
|
58
|
+
let G = e(() => H.value ? new Intl.NumberFormat(void 0, {
|
|
59
|
+
style: "currency",
|
|
60
|
+
currency: H.value.currency || "EUR"
|
|
61
|
+
}).format(H.value.price) : ""), K = e(() => {
|
|
62
|
+
switch (H.value?.status) {
|
|
63
|
+
case "published": return "text-emerald-600 dark:text-emerald-400 bg-emerald-50 dark:bg-emerald-900/20";
|
|
64
|
+
case "draft": return "text-amber-600 dark:text-amber-400 bg-amber-50 dark:bg-amber-900/20";
|
|
65
|
+
case "archived": return "text-gray-600 dark:text-gray-400 bg-gray-100 dark:bg-gray-800";
|
|
66
|
+
default: return "text-muted-foreground bg-muted";
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
return (e, l) => {
|
|
70
|
+
let d = f("NuxtLink");
|
|
71
|
+
return u(), r("div", y, [m(B) ? (u(), r("div", b, [o(m(_), { class: "size-4 animate-spin text-muted-foreground" }), l[0] ||= i("span", { class: "text-xs text-muted-foreground" }, "Loading product…", -1)])) : m(V) ? (u(), r("div", x, p(m(V)), 1)) : m(H) ? (u(), r("div", S, [
|
|
72
|
+
i("div", C, [i("div", w, [m(H).featuredMedia ? (u(), r("img", {
|
|
73
|
+
key: 0,
|
|
74
|
+
src: m(H).featuredMedia,
|
|
75
|
+
alt: m(H).title,
|
|
76
|
+
class: "size-full object-cover"
|
|
77
|
+
}, null, 8, T)) : (u(), t(m(v), {
|
|
78
|
+
key: 1,
|
|
79
|
+
class: "size-6 text-muted-foreground"
|
|
80
|
+
}))]), i("div", E, [
|
|
81
|
+
i("p", D, p(m(H).title), 1),
|
|
82
|
+
i("p", O, p(m(G)), 1),
|
|
83
|
+
i("div", k, [i("span", { class: c(["text-[10px] font-medium px-1.5 py-0.5 rounded-full uppercase", m(K)]) }, p(m(H).status), 3), i("span", A, " Stock: " + p(m(H).stock ?? "—"), 1)])
|
|
84
|
+
])]),
|
|
85
|
+
m(H).description ? (u(), r("p", j, p(m(H).description), 1)) : n("", !0),
|
|
86
|
+
o(d, {
|
|
87
|
+
to: `/projects/${m(R)}/modules/${s.instanceId}/${m(H).id}`,
|
|
88
|
+
class: "inline-flex items-center gap-1.5 text-xs text-primary hover:underline"
|
|
89
|
+
}, {
|
|
90
|
+
default: h(() => [o(m(g), { class: "size-3" }), l[1] ||= a(" View full details ", -1)]),
|
|
91
|
+
_: 1
|
|
92
|
+
}, 8, ["to"])
|
|
93
|
+
])) : n("", !0)]);
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
//#endregion
|
|
98
|
+
export { M 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-3 space-y-3`},o={class:`flex items-start gap-3`},s={class:`shrink-0 size-16 rounded-lg bg-muted overflow-hidden flex items-center justify-center`},c=[`src`,`alt`],l={class:`flex-1 min-w-0`},u={class:`text-sm font-semibold truncate`},d={class:`text-lg font-bold mt-0.5`},f={class:`flex items-center gap-2 mt-1`},p={class:`text-xs text-muted-foreground`},m={key:0,class:`text-xs text-muted-foreground line-clamp-2`},h=(0,e.defineComponent)({__name:`ProductDetailsCard`,props:{toolName:{},instanceId:{},instanceName:{},moduleType:{},resolvedArgs:{},status:{}},emits:[`submit`],setup(h,{emit:g}){let{$useRoute:_,$useModuleApi:v}=useNuxtApp(),y=h,b=g,x=_(),S=(0,e.computed)(()=>x.params.slug),C=v(y.instanceId),w=(0,e.ref)(!0),T=(0,e.ref)(null),E=(0,e.ref)(null);async function D(){let e=y.resolvedArgs?.productId;if(!e){T.value=`No product ID provided`,w.value=!1;return}w.value=!0,T.value=null;try{E.value=await C.get(`/products/${e}`),O({productId:E.value.id,title:E.value.title,price:E.value.price,currency:E.value.currency,stock:E.value.stock,status:E.value.status,available:E.value.available})}catch(e){T.value=e?.data?.statusMessage||e?.message||`Failed to load product`,O(`Error fetching product: ${T.value}`)}finally{w.value=!1}}(0,e.onMounted)(()=>{D()});function O(e){y.status!==`completed`&&b(`submit`,e)}let k=(0,e.computed)(()=>E.value?new Intl.NumberFormat(void 0,{style:`currency`,currency:E.value.currency||`EUR`}).format(E.value.price):``),A=(0,e.computed)(()=>{switch(E.value?.status){case`published`:return`text-emerald-600 dark:text-emerald-400 bg-emerald-50 dark:bg-emerald-900/20`;case`draft`:return`text-amber-600 dark:text-amber-400 bg-amber-50 dark:bg-amber-900/20`;case`archived`:return`text-gray-600 dark:text-gray-400 bg-gray-100 dark:bg-gray-800`;default:return`text-muted-foreground bg-muted`}});return(g,_)=>{let v=(0,e.resolveComponent)(`NuxtLink`);return(0,e.openBlock)(),(0,e.createElementBlock)(`div`,n,[(0,e.unref)(w)?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,r,[(0,e.createVNode)((0,e.unref)(t.Loader2),{class:`size-4 animate-spin text-muted-foreground`}),_[0]||=(0,e.createElementVNode)(`span`,{class:`text-xs text-muted-foreground`},`Loading product…`,-1)])):(0,e.unref)(T)?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,i,(0,e.toDisplayString)((0,e.unref)(T)),1)):(0,e.unref)(E)?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,a,[(0,e.createElementVNode)(`div`,o,[(0,e.createElementVNode)(`div`,s,[(0,e.unref)(E).featuredMedia?((0,e.openBlock)(),(0,e.createElementBlock)(`img`,{key:0,src:(0,e.unref)(E).featuredMedia,alt:(0,e.unref)(E).title,class:`size-full object-cover`},null,8,c)):((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(t.Package),{key:1,class:`size-6 text-muted-foreground`}))]),(0,e.createElementVNode)(`div`,l,[(0,e.createElementVNode)(`p`,u,(0,e.toDisplayString)((0,e.unref)(E).title),1),(0,e.createElementVNode)(`p`,d,(0,e.toDisplayString)((0,e.unref)(k)),1),(0,e.createElementVNode)(`div`,f,[(0,e.createElementVNode)(`span`,{class:(0,e.normalizeClass)([`text-[10px] font-medium px-1.5 py-0.5 rounded-full uppercase`,(0,e.unref)(A)])},(0,e.toDisplayString)((0,e.unref)(E).status),3),(0,e.createElementVNode)(`span`,p,` Stock: `+(0,e.toDisplayString)((0,e.unref)(E).stock??`—`),1)])])]),(0,e.unref)(E).description?((0,e.openBlock)(),(0,e.createElementBlock)(`p`,m,(0,e.toDisplayString)((0,e.unref)(E).description),1)):(0,e.createCommentVNode)(``,!0),(0,e.createVNode)(v,{to:`/projects/${(0,e.unref)(S)}/modules/${h.instanceId}/${(0,e.unref)(E).id}`,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`}),_[1]||=(0,e.createTextVNode)(` View full details `,-1)]),_:1},8,[`to`])])):(0,e.createCommentVNode)(``,!0)])}}});exports.default=h;
|
|
@@ -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:`px-3 py-4 text-center`},l={class:`flex items-center justify-center gap-2 mb-1`},u={class:`text-3xl font-bold`},d={class:`text-xs text-muted-foreground`},f={key:0,class:`border-t`},p={class:`divide-y`},m=[`title`],h={class:`flex items-center gap-1 text-[10px] text-muted-foreground shrink-0 ml-2`},g={class:`font-medium`},_={class:`px-3 py-2 border-t bg-muted/20 flex items-center justify-between`},v={key:0,class:`text-[10px] text-muted-foreground`},y=(0,e.defineComponent)({__name:`RealtimeCard`,props:{toolName:{},instanceId:{},instanceName:{},moduleType:{},resolvedArgs:{},status:{}},emits:[`submit`],setup(y,{emit:b}){let{$useRoute:x,$useModuleApi:S}=useNuxtApp(),C=y,w=b,T=x(),E=(0,e.computed)(()=>T.params.slug),D=S(C.instanceId),O=(0,e.ref)(!0),k=(0,e.ref)(null),A=(0,e.ref)(0),j=(0,e.ref)([]),M=(0,e.ref)(null);function N(){let e=C.resolvedArgs?._cachedData;return e?(A.value=e.activeUsersRightNow||0,j.value=(e.topActivePages||[]).map(e=>({page:e.page,activeUsers:e.activeUsers})),M.value=C.resolvedArgs._fetchedAt||null,O.value=!1,!0):!1}async function P(){O.value=!0,k.value=null;try{let e=await D.get(`/realtime`);A.value=e.activeUsers||0,j.value=e.activePages||[],M.value=new Date().toISOString(),F({activeUsersRightNow:A.value,topActivePages:j.value.map(e=>({page:e.page,activeUsers:e.activeUsers}))})}catch(e){k.value=e?.data?.statusMessage||e?.message||`Failed to load realtime data`,F(`Error loading realtime data: ${k.value}`)}finally{O.value=!1}}(0,e.onMounted)(()=>{C.status===`completed`&&N()||P()});function F(e){C.status!==`completed`&&w(`submit`,e)}let I=e=>e?new Date(e).toLocaleString(void 0,{month:`short`,day:`numeric`,hour:`2-digit`,minute:`2-digit`}):``;return(b,x)=>{let S=(0,e.resolveComponent)(`NuxtLink`);return(0,e.openBlock)(),(0,e.createElementBlock)(`div`,n,[(0,e.unref)(O)?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,r,[(0,e.createVNode)((0,e.unref)(t.Loader2),{class:`size-4 animate-spin text-muted-foreground`}),x[0]||=(0,e.createElementVNode)(`span`,{class:`text-xs text-muted-foreground`},`Loading realtime data…`,-1)])):(0,e.unref)(k)?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,i,(0,e.toDisplayString)((0,e.unref)(k)),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.Radio),{class:`size-3.5 text-emerald-500`}),x[1]||=(0,e.createElementVNode)(`span`,{class:`text-xs font-medium`},`Realtime`,-1)]),x[2]||=(0,e.createElementVNode)(`span`,{class:`relative flex size-2`},[(0,e.createElementVNode)(`span`,{class:`animate-ping absolute inline-flex h-full w-full rounded-full bg-emerald-400 opacity-75`}),(0,e.createElementVNode)(`span`,{class:`relative inline-flex rounded-full size-2 bg-emerald-500`})],-1)]),(0,e.createElementVNode)(`div`,c,[(0,e.createElementVNode)(`div`,l,[(0,e.createVNode)((0,e.unref)(t.Users),{class:`size-5 text-primary`}),(0,e.createElementVNode)(`span`,u,(0,e.toDisplayString)((0,e.unref)(A)),1)]),(0,e.createElementVNode)(`p`,d,`active `+(0,e.toDisplayString)((0,e.unref)(A)===1?`user`:`users`)+` right now`,1)]),(0,e.unref)(j).length>0?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,f,[x[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`},`Active Pages`)],-1),(0,e.createElementVNode)(`div`,p,[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)((0,e.unref)(j),n=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:n.page,class:`px-3 py-2 flex items-center justify-between hover:bg-muted/30 transition-colors`},[(0,e.createElementVNode)(`span`,{class:`text-xs truncate flex-1`,title:n.page},(0,e.toDisplayString)(n.page),9,m),(0,e.createElementVNode)(`div`,h,[(0,e.createVNode)((0,e.unref)(t.Users),{class:`size-2.5`}),(0,e.createElementVNode)(`span`,g,(0,e.toDisplayString)(n.activeUsers),1)])]))),128))])])):(0,e.createCommentVNode)(``,!0),(0,e.createElementVNode)(`div`,_,[(0,e.unref)(M)?((0,e.openBlock)(),(0,e.createElementBlock)(`span`,v,` Fetched `+(0,e.toDisplayString)(I((0,e.unref)(M))),1)):(0,e.createCommentVNode)(``,!0),(0,e.createVNode)(S,{to:`/projects/${(0,e.unref)(E)}/modules/${y.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`}),x[4]||=(0,e.createTextVNode)(` View full report `,-1)]),_:1},8,[`to`])])]))])}}});exports.default=y;
|
|
@@ -0,0 +1,92 @@
|
|
|
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, onMounted as c, openBlock as l, ref as u, renderList as d, resolveComponent as f, toDisplayString as p, unref as m, withCtx as h } from "vue";
|
|
2
|
+
import { ExternalLink as g, Loader2 as _, Radio as v, Users as y } from "@lucide/vue";
|
|
3
|
+
//#region src/googleAnalytics/chat-components/RealtimeCard.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var b = { class: "w-full" }, x = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "flex items-center gap-2 py-3"
|
|
7
|
+
}, S = {
|
|
8
|
+
key: 1,
|
|
9
|
+
class: "text-xs text-destructive py-2"
|
|
10
|
+
}, C = {
|
|
11
|
+
key: 2,
|
|
12
|
+
class: "rounded-xl border bg-background overflow-hidden"
|
|
13
|
+
}, w = { class: "px-3 py-2 border-b bg-muted/40 flex items-center justify-between" }, T = { class: "flex items-center gap-2" }, E = { class: "px-3 py-4 text-center" }, D = { class: "flex items-center justify-center gap-2 mb-1" }, O = { class: "text-3xl font-bold" }, k = { class: "text-xs text-muted-foreground" }, A = {
|
|
14
|
+
key: 0,
|
|
15
|
+
class: "border-t"
|
|
16
|
+
}, j = { class: "divide-y" }, M = ["title"], N = { class: "flex items-center gap-1 text-[10px] text-muted-foreground shrink-0 ml-2" }, P = { class: "font-medium" }, F = { class: "px-3 py-2 border-t bg-muted/20 flex items-center justify-between" }, I = {
|
|
17
|
+
key: 0,
|
|
18
|
+
class: "text-[10px] text-muted-foreground"
|
|
19
|
+
}, L = /* @__PURE__ */ s({
|
|
20
|
+
__name: "RealtimeCard",
|
|
21
|
+
props: {
|
|
22
|
+
toolName: {},
|
|
23
|
+
instanceId: {},
|
|
24
|
+
instanceName: {},
|
|
25
|
+
moduleType: {},
|
|
26
|
+
resolvedArgs: {},
|
|
27
|
+
status: {}
|
|
28
|
+
},
|
|
29
|
+
emits: ["submit"],
|
|
30
|
+
setup(s, { emit: L }) {
|
|
31
|
+
let { $useRoute: R, $useModuleApi: z } = useNuxtApp(), B = s, V = L, H = R(), U = t(() => H.params.slug), W = z(B.instanceId), G = u(!0), K = u(null), q = u(0), J = u([]), Y = u(null);
|
|
32
|
+
function X() {
|
|
33
|
+
let e = B.resolvedArgs?._cachedData;
|
|
34
|
+
return e ? (q.value = e.activeUsersRightNow || 0, J.value = (e.topActivePages || []).map((e) => ({
|
|
35
|
+
page: e.page,
|
|
36
|
+
activeUsers: e.activeUsers
|
|
37
|
+
})), Y.value = B.resolvedArgs._fetchedAt || null, G.value = !1, !0) : !1;
|
|
38
|
+
}
|
|
39
|
+
async function Z() {
|
|
40
|
+
G.value = !0, K.value = null;
|
|
41
|
+
try {
|
|
42
|
+
let e = await W.get("/realtime");
|
|
43
|
+
q.value = e.activeUsers || 0, J.value = e.activePages || [], Y.value = (/* @__PURE__ */ new Date()).toISOString(), Q({
|
|
44
|
+
activeUsersRightNow: q.value,
|
|
45
|
+
topActivePages: J.value.map((e) => ({
|
|
46
|
+
page: e.page,
|
|
47
|
+
activeUsers: e.activeUsers
|
|
48
|
+
}))
|
|
49
|
+
});
|
|
50
|
+
} catch (e) {
|
|
51
|
+
K.value = e?.data?.statusMessage || e?.message || "Failed to load realtime data", Q(`Error loading realtime data: ${K.value}`);
|
|
52
|
+
} finally {
|
|
53
|
+
G.value = !1;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
c(() => {
|
|
57
|
+
B.status === "completed" && X() || Z();
|
|
58
|
+
});
|
|
59
|
+
function Q(e) {
|
|
60
|
+
B.status !== "completed" && V("submit", e);
|
|
61
|
+
}
|
|
62
|
+
let $ = (e) => e ? new Date(e).toLocaleString(void 0, {
|
|
63
|
+
month: "short",
|
|
64
|
+
day: "numeric",
|
|
65
|
+
hour: "2-digit",
|
|
66
|
+
minute: "2-digit"
|
|
67
|
+
}) : "";
|
|
68
|
+
return (t, c) => {
|
|
69
|
+
let u = f("NuxtLink");
|
|
70
|
+
return l(), r("div", b, [m(G) ? (l(), r("div", x, [o(m(_), { class: "size-4 animate-spin text-muted-foreground" }), c[0] ||= i("span", { class: "text-xs text-muted-foreground" }, "Loading realtime data…", -1)])) : m(K) ? (l(), r("div", S, p(m(K)), 1)) : (l(), r("div", C, [
|
|
71
|
+
i("div", w, [i("div", T, [o(m(v), { class: "size-3.5 text-emerald-500" }), c[1] ||= i("span", { class: "text-xs font-medium" }, "Realtime", -1)]), c[2] ||= i("span", { class: "relative flex size-2" }, [i("span", { class: "animate-ping absolute inline-flex h-full w-full rounded-full bg-emerald-400 opacity-75" }), i("span", { class: "relative inline-flex rounded-full size-2 bg-emerald-500" })], -1)]),
|
|
72
|
+
i("div", E, [i("div", D, [o(m(y), { class: "size-5 text-primary" }), i("span", O, p(m(q)), 1)]), i("p", k, "active " + p(m(q) === 1 ? "user" : "users") + " right now", 1)]),
|
|
73
|
+
m(J).length > 0 ? (l(), r("div", A, [c[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" }, "Active Pages")], -1), i("div", j, [(l(!0), r(e, null, d(m(J), (e) => (l(), r("div", {
|
|
74
|
+
key: e.page,
|
|
75
|
+
class: "px-3 py-2 flex items-center justify-between hover:bg-muted/30 transition-colors"
|
|
76
|
+
}, [i("span", {
|
|
77
|
+
class: "text-xs truncate flex-1",
|
|
78
|
+
title: e.page
|
|
79
|
+
}, p(e.page), 9, M), i("div", N, [o(m(y), { class: "size-2.5" }), i("span", P, p(e.activeUsers), 1)])]))), 128))])])) : n("", !0),
|
|
80
|
+
i("div", F, [m(Y) ? (l(), r("span", I, " Fetched " + p($(m(Y))), 1)) : n("", !0), o(u, {
|
|
81
|
+
to: `/projects/${m(U)}/modules/${s.instanceId}`,
|
|
82
|
+
class: "inline-flex items-center gap-1.5 text-xs text-primary hover:underline"
|
|
83
|
+
}, {
|
|
84
|
+
default: h(() => [o(m(g), { class: "size-3" }), c[4] ||= a(" View full report ", -1)]),
|
|
85
|
+
_: 1
|
|
86
|
+
}, 8, ["to"])])
|
|
87
|
+
]))]);
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
//#endregion
|
|
92
|
+
export { L as default };
|