@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
|
@@ -1,349 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),D=require("lucide-vue-next"),R=require("@oneclick.dev/cms-kit"),W=require("./index-ijdf0d9-.js");function z(n){return Array.isArray?Array.isArray(n):Ve(n)==="[object Array]"}function Le(n){if(typeof n=="string")return n;if(typeof n=="bigint")return n.toString();const t=n+"";return t=="0"&&1/n==-1/0?"-0":t}function oe(n){return n==null?"":Le(n)}function M(n){return typeof n=="string"}function Q(n){return typeof n=="number"}function Pe(n){return n===!0||n===!1||Ue(n)&&Ve(n)=="[object Boolean]"}function be(n){return typeof n=="object"}function Ue(n){return be(n)&&n!==null}function F(n){return n!=null}function Y(n){return!n.trim().length}function Ve(n){return n==null?n===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(n)}const We="Incorrect 'index' type",He=n=>`Invalid value for key ${n}`,Ke=n=>`Pattern length exceeds max of ${n}.`,Ge=n=>`Missing ${n} property in key`,Ye=n=>`Property 'weight' in key '${n}' must be a positive integer`,xe=Object.prototype.hasOwnProperty;class Qe{constructor(t){this._keys=[],this._keyMap={};let o=0;t.forEach(s=>{const a=we(s);this._keys.push(a),this._keyMap[a.id]=a,o+=a.weight}),this._keys.forEach(s=>{s.weight/=o})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function we(n){let t=null,o=null,s=null,a=1,c=null;if(M(n)||z(n))s=n,t=Ce(n),o=ne(n);else{if(!xe.call(n,"name"))throw new Error(Ge("name"));const l=n.name;if(s=l,xe.call(n,"weight")&&(a=n.weight,a<=0))throw new Error(Ye(l));t=Ce(l),o=ne(l),c=n.getFn}return{path:t,id:o,weight:a,src:s,getFn:c}}function Ce(n){return z(n)?n:n.split(".")}function ne(n){return z(n)?n.join("."):n}function Je(n,t){const o=[];let s=!1;const a=(c,l,d,u)=>{if(F(c))if(!l[d])o.push(u!==void 0?{v:c,i:u}:c);else{const f=l[d],r=c[f];if(!F(r))return;if(d===l.length-1&&(M(r)||Q(r)||Pe(r)||typeof r=="bigint"))o.push(u!==void 0?{v:oe(r),i:u}:oe(r));else if(z(r)){s=!0;for(let i=0,h=r.length;i<h;i+=1)a(r[i],l,d+1,i)}else l.length&&a(r,l,d+1,u)}};return a(n,M(t)?t.split("."):t,0),s?o:o[0]}const Xe={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},Ze={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(n,t)=>n.score===t.score?n.idx<t.idx?-1:1:n.score<t.score?-1:1},qe={location:0,threshold:.6,distance:100},et={useExtendedSearch:!1,useTokenSearch:!1,getFn:Je,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},x=Object.freeze({...Ze,...Xe,...qe,...et}),tt=/[^ ]+/g;function ot(n=1,t=3){const o=new Map,s=Math.pow(10,t);return{get(a){const c=a.match(tt).length;if(o.has(c))return o.get(c);const l=1/Math.pow(c,.5*n),d=parseFloat(Math.round(l*s)/s);return o.set(c,d),d},clear(){o.clear()}}}class de{constructor({getFn:t=x.getFn,fieldNormWeight:o=x.fieldNormWeight}={}){this.norm=ot(o,3),this.getFn=t,this.isCreated=!1,this.docs=[],this.keys=[],this._keysMap={},this.setIndexRecords()}setSources(t=[]){this.docs=t}setIndexRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t,this._keysMap={},t.forEach((o,s)=>{this._keysMap[o.id]=s})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,M(this.docs[0])?this.docs.forEach((t,o)=>{this._addString(t,o)}):this.docs.forEach((t,o)=>{this._addObject(t,o)}),this.norm.clear())}add(t){const o=this.size();M(t)?this._addString(t,o):this._addObject(t,o)}removeAt(t){this.records.splice(t,1);for(let o=t,s=this.size();o<s;o+=1)this.records[o].i-=1}removeAll(t){for(let o=t.length-1;o>=0;o-=1)this.records.splice(t[o],1);for(let o=0,s=this.records.length;o<s;o+=1)this.records[o].i=o}getValueForItemAtKeyId(t,o){return t[this._keysMap[o]]}size(){return this.records.length}_addString(t,o){if(!F(t)||Y(t))return;const s={v:t,i:o,n:this.norm.get(t)};this.records.push(s)}_addObject(t,o){const s={i:o,$:{}};this.keys.forEach((a,c)=>{const l=a.getFn?a.getFn(t):this.getFn(t,a.path);if(F(l)){if(z(l)){const d=[];for(let u=0,f=l.length;u<f;u+=1){const r=l[u];if(F(r)){if(M(r)){if(!Y(r)){const i={v:r,i:u,n:this.norm.get(r)};d.push(i)}}else if(F(r.v)){const i=M(r.v)?r.v:oe(r.v);if(!Y(i)){const h={v:i,i:r.i,n:this.norm.get(i)};d.push(h)}}}}s.$[c]=d}else if(M(l)&&!Y(l)){const d={v:l,n:this.norm.get(l)};s.$[c]=d}}}),this.records.push(s)}toJSON(){return{keys:this.keys.map(({getFn:t,...o})=>o),records:this.records}}}function Ee(n,t,{getFn:o=x.getFn,fieldNormWeight:s=x.fieldNormWeight}={}){const a=new de({getFn:o,fieldNormWeight:s});return a.setKeys(n.map(we)),a.setSources(t),a.create(),a}function nt(n,{getFn:t=x.getFn,fieldNormWeight:o=x.fieldNormWeight}={}){const{keys:s,records:a}=n,c=new de({getFn:t,fieldNormWeight:o});return c.setKeys(s),c.setIndexRecords(a),c}function st(n=[],t=x.minMatchCharLength){const o=[];let s=-1,a=-1,c=0;for(let l=n.length;c<l;c+=1){const d=n[c];d&&s===-1?s=c:!d&&s!==-1&&(a=c-1,a-s+1>=t&&o.push([s,a]),s=-1)}return n[c-1]&&c-s>=t&&o.push([s,c-1]),o}const U=32;function rt(n,t,o,{location:s=x.location,distance:a=x.distance,threshold:c=x.threshold,findAllMatches:l=x.findAllMatches,minMatchCharLength:d=x.minMatchCharLength,includeMatches:u=x.includeMatches,ignoreLocation:f=x.ignoreLocation}={}){if(t.length>U)throw new Error(Ke(U));const r=t.length,i=n.length,h=Math.max(0,Math.min(s,i));let m=c,p=h;const v=(N,E)=>{const C=N/r;if(f)return C;const A=Math.abs(h-E);return a?C+A/a:A?1:C},_=d>1||u,w=_?Array(i):[];let S;for(;(S=n.indexOf(t,p))>-1;){const N=v(0,S);if(m=Math.min(N,m),p=S+r,_){let E=0;for(;E<r;)w[S+E]=1,E+=1}}p=-1;let k=[],b=1,V=r+i;const T=1<<r-1;for(let N=0;N<r;N+=1){let E=0,C=V;for(;E<C;)v(N,h+C)<=m?E=C:V=C,C=Math.floor((V-E)/2+E);V=C;let A=Math.max(1,h-C+1);const H=l?i:Math.min(h+C,i)+r,j=Array(H+2);j[H+1]=(1<<N)-1;for(let $=H;$>=A;$-=1){const y=$-1,g=o[n[y]];if(_&&(w[y]=+!!g),j[$]=(j[$+1]<<1|1)&g,N&&(j[$]|=(k[$+1]|k[$])<<1|1|k[$+1]),j[$]&T&&(b=v(N,y),b<=m)){if(m=b,p=y,p<=h)break;A=Math.max(1,2*h-p)}}if(v(N+1,h)>m)break;k=j}const I={isMatch:p>=0,score:Math.max(.001,b)};if(_){const N=st(w,d);N.length?u&&(I.indices=N):I.isMatch=!1}return I}function at(n){const t={};for(let o=0,s=n.length;o<s;o+=1){const a=n.charAt(o);t[a]=(t[a]||0)|1<<s-o-1}return t}function me(n){if(n.length<=1)return n;n.sort((o,s)=>o[0]-s[0]||o[1]-s[1]);const t=[n[0]];for(let o=1,s=n.length;o<s;o+=1){const a=t[t.length-1],c=n[o];c[0]<=a[1]+1?a[1]=Math.max(a[1],c[1]):t.push(c)}return t}const Ae={ł:"l",Ł:"L",đ:"d",Đ:"D",ø:"o",Ø:"O",ħ:"h",Ħ:"H",ŧ:"t",Ŧ:"T",ı:"i",ß:"ss"},it=new RegExp("["+Object.keys(Ae).join("")+"]","g"),K=String.prototype.normalize?n=>n.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,"").replace(it,t=>Ae[t]):n=>n;class pe{constructor(t,{location:o=x.location,threshold:s=x.threshold,distance:a=x.distance,includeMatches:c=x.includeMatches,findAllMatches:l=x.findAllMatches,minMatchCharLength:d=x.minMatchCharLength,isCaseSensitive:u=x.isCaseSensitive,ignoreDiacritics:f=x.ignoreDiacritics,ignoreLocation:r=x.ignoreLocation}={}){if(this.options={location:o,threshold:s,distance:a,includeMatches:c,findAllMatches:l,minMatchCharLength:d,isCaseSensitive:u,ignoreDiacritics:f,ignoreLocation:r},t=u?t:t.toLowerCase(),t=f?K(t):t,this.pattern=t,this.chunks=[],!this.pattern.length)return;const i=(m,p)=>{this.chunks.push({pattern:m,alphabet:at(m),startIndex:p})},h=this.pattern.length;if(h>U){let m=0;const p=h%U,v=h-p;for(;m<v;)i(this.pattern.substr(m,U),m),m+=U;if(p){const _=h-U;i(this.pattern.substr(_),_)}}else i(this.pattern,0)}searchIn(t){const{isCaseSensitive:o,ignoreDiacritics:s,includeMatches:a}=this.options;if(t=o?t:t.toLowerCase(),t=s?K(t):t,this.pattern===t){const v={isMatch:!0,score:0};return a&&(v.indices=[[0,t.length-1]]),v}const{location:c,distance:l,threshold:d,findAllMatches:u,minMatchCharLength:f,ignoreLocation:r}=this.options,i=[];let h=0,m=!1;this.chunks.forEach(({pattern:v,alphabet:_,startIndex:w})=>{const{isMatch:S,score:k,indices:b}=rt(t,v,_,{location:c+w,distance:l,threshold:d,findAllMatches:u,minMatchCharLength:f,includeMatches:a,ignoreLocation:r});S&&(m=!0),h+=k,S&&b&&i.push(...b)});const p={isMatch:m,score:m?h/this.chunks.length:1};return m&&a&&(p.indices=me(i)),p}}class O{constructor(t){this.pattern=t}static isMultiMatch(t){return ye(t,this.multiRegex)}static isSingleMatch(t){return ye(t,this.singleRegex)}search(t){return{isMatch:!1,score:1}}}function ye(n,t){const o=n.match(t);return o?o[1]:null}class lt extends O{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const o=t===this.pattern;return{isMatch:o,score:o?0:1,indices:[0,this.pattern.length-1]}}}class ct extends O{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const s=t.indexOf(this.pattern)===-1;return{isMatch:s,score:s?0:1,indices:[0,t.length-1]}}}class ut extends O{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const o=t.startsWith(this.pattern);return{isMatch:o,score:o?0:1,indices:[0,this.pattern.length-1]}}}class dt extends O{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const o=!t.startsWith(this.pattern);return{isMatch:o,score:o?0:1,indices:[0,t.length-1]}}}class mt extends O{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const o=t.endsWith(this.pattern);return{isMatch:o,score:o?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class pt extends O{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const o=!t.endsWith(this.pattern);return{isMatch:o,score:o?0:1,indices:[0,t.length-1]}}}class Be extends O{constructor(t,{location:o=x.location,threshold:s=x.threshold,distance:a=x.distance,includeMatches:c=x.includeMatches,findAllMatches:l=x.findAllMatches,minMatchCharLength:d=x.minMatchCharLength,isCaseSensitive:u=x.isCaseSensitive,ignoreDiacritics:f=x.ignoreDiacritics,ignoreLocation:r=x.ignoreLocation}={}){super(t),this._bitapSearch=new pe(t,{location:o,threshold:s,distance:a,includeMatches:c,findAllMatches:l,minMatchCharLength:d,isCaseSensitive:u,ignoreDiacritics:f,ignoreLocation:r})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class Se extends O{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let o=0,s;const a=[],c=this.pattern.length;for(;(s=t.indexOf(this.pattern,o))>-1;)o=s+c,a.push([s,o-1]);const l=!!a.length;return{isMatch:l,score:l?0:1,indices:a}}}const se=[lt,Se,ut,dt,pt,mt,ct,Be],_e=se.length,ft="\0",ht="|";function gt(n){const t=[],o=n.length;let s=0;for(;s<o;){for(;s<o&&n[s]===" ";)s++;if(s>=o)break;let a=s;for(;a<o&&n[a]!==" "&&n[a]!=='"';)a++;if(a<o&&n[a]==='"'){for(a++;a<o;){if(n[a]==='"'){const c=a+1;if(c>=o||n[c]===" "){a++;break}if(n[c]==="$"&&(c+1>=o||n[c+1]===" ")){a+=2;break}}a++}t.push(n.substring(s,a)),s=a}else{for(;a<o&&n[a]!==" ";)a++;t.push(n.substring(s,a)),s=a}}return t}function vt(n,t={}){return n.replace(/\\\|/g,ft).split(ht).map(s=>{const a=s.replace(/\u0000/g,"|"),c=gt(a.trim()).filter(d=>d&&!!d.trim()),l=[];for(let d=0,u=c.length;d<u;d+=1){const f=c[d];let r=!1,i=-1;for(;!r&&++i<_e;){const h=se[i],m=h.isMultiMatch(f);m&&(l.push(new h(m,t)),r=!0)}if(!r)for(i=-1;++i<_e;){const h=se[i],m=h.isSingleMatch(f);if(m){l.push(new h(m,t));break}}}return l})}const xt=new Set([Be.type,Se.type]);class Ct{constructor(t,{isCaseSensitive:o=x.isCaseSensitive,ignoreDiacritics:s=x.ignoreDiacritics,includeMatches:a=x.includeMatches,minMatchCharLength:c=x.minMatchCharLength,ignoreLocation:l=x.ignoreLocation,findAllMatches:d=x.findAllMatches,location:u=x.location,threshold:f=x.threshold,distance:r=x.distance}={}){this.query=null,this.options={isCaseSensitive:o,ignoreDiacritics:s,includeMatches:a,minMatchCharLength:c,findAllMatches:d,ignoreLocation:l,location:u,threshold:f,distance:r},t=o?t:t.toLowerCase(),t=s?K(t):t,this.pattern=t,this.query=vt(this.pattern,this.options)}static condition(t,o){return o.useExtendedSearch}searchIn(t){const o=this.query;if(!o)return{isMatch:!1,score:1};const{includeMatches:s,isCaseSensitive:a,ignoreDiacritics:c}=this.options;t=a?t:t.toLowerCase(),t=c?K(t):t;let l=0;const d=[];let u=0,f=!1;for(let r=0,i=o.length;r<i;r+=1){const h=o[r];d.length=0,l=0,f=!1;for(let m=0,p=h.length;m<p;m+=1){const v=h[m],{isMatch:_,indices:w,score:S}=v.search(t);if(_){l+=1,u+=S;const k=v.constructor.type;k.startsWith("inverse")&&(f=!0),s&&(xt.has(k)?d.push(...w):d.push(w))}else{u=0,l=0,d.length=0,f=!1;break}}if(l){const m={isMatch:!0,score:u/l};return f&&(m.hasInverse=!0),s&&(m.indices=me(d)),m}}return{isMatch:!1,score:1}}}const re=[];function fe(...n){re.push(...n)}function J(n,t){for(let o=0,s=re.length;o<s;o+=1){const a=re[o];if(a.condition(n,t))return new a(n,t)}return new pe(n,t)}const X={AND:"$and",OR:"$or"},ae={PATH:"$path",PATTERN:"$val"},ie=n=>!!(n[X.AND]||n[X.OR]),yt=n=>!!n[ae.PATH],_t=n=>!z(n)&&be(n)&&!ie(n),ke=n=>({[X.AND]:Object.keys(n).map(t=>({[t]:n[t]}))});function Me(n,t,{auto:o=!0}={}){const s=a=>{if(M(a)){const u={keyId:null,pattern:a};return o&&(u.searcher=J(a,t)),u}const c=Object.keys(a),l=yt(a);if(!l&&c.length>1&&!ie(a))return s(ke(a));if(_t(a)){const u=l?a[ae.PATH]:c[0],f=l?a[ae.PATTERN]:a[u];if(!M(f))throw new Error(He(u));const r={keyId:ne(u),pattern:f};return o&&(r.searcher=J(f,t)),r}const d={children:[],operator:c[0]};return c.forEach(u=>{const f=a[u];z(f)&&f.forEach(r=>{d.children.push(s(r))})}),d};return ie(n)||(n=ke(n)),s(n)}function le(n,{ignoreFieldNorm:t=x.ignoreFieldNorm}){let o=1;return n.forEach(({key:s,norm:a,score:c})=>{const l=s?s.weight:null;o*=Math.pow(c===0&&l?Number.EPSILON:c,(l||1)*(t?1:a))}),o}function kt(n,{ignoreFieldNorm:t=x.ignoreFieldNorm}){n.forEach(o=>{o.score=le(o.matches,{ignoreFieldNorm:t})})}class Dt{constructor(t){this.limit=t,this.heap=[]}get size(){return this.heap.length}shouldInsert(t){return this.size<this.limit||t<this.heap[0].score}insert(t){this.size<this.limit?(this.heap.push(t),this._bubbleUp(this.size-1)):t.score<this.heap[0].score&&(this.heap[0]=t,this._sinkDown(0))}extractSorted(t){return this.heap.sort(t)}_bubbleUp(t){const o=this.heap;for(;t>0;){const s=t-1>>1;if(o[t].score<=o[s].score)break;const a=o[t];o[t]=o[s],o[s]=a,t=s}}_sinkDown(t){const o=this.heap,s=o.length;let a=t;do{t=a;const c=2*t+1,l=2*t+2;if(c<s&&o[c].score>o[a].score&&(a=c),l<s&&o[l].score>o[a].score&&(a=l),a!==t){const d=o[t];o[t]=o[a],o[a]=d}}while(a!==t)}}function Nt(n,t){const o=n.matches;t.matches=[],F(o)&&o.forEach(s=>{if(!F(s.indices)||!s.indices.length)return;const{indices:a,value:c}=s,l={indices:a,value:c};s.key&&(l.key=s.key.src),s.idx>-1&&(l.refIndex=s.idx),t.matches.push(l)})}function bt(n,t){t.score=n.score}function Vt(n,t,{includeMatches:o=x.includeMatches,includeScore:s=x.includeScore}={}){const a=[];return o&&a.push(Nt),s&&a.push(bt),n.map(c=>{const{idx:l}=c,d={item:t[l],refIndex:l};return a.length&&a.forEach(u=>{u(c,d)}),d})}const wt=/\b\w+\b/g;function ce({isCaseSensitive:n=!1,ignoreDiacritics:t=!1}={}){return{tokenize(o){return n||(o=o.toLowerCase()),t&&(o=K(o)),o.match(wt)||[]}}}function Et(n,t,o){const s=new Map,a=new Map;let c=0;function l(d,u,f,r){const i=o.tokenize(d);if(!i.length)return;c++;const h=new Map;for(const m of i)h.set(m,(h.get(m)||0)+1);for(const[m,p]of h){const v={docIdx:u,keyIdx:f,subIdx:r,tf:p};let _=s.get(m);_||(_=[],s.set(m,_)),_.push(v),a.set(m,(a.get(m)||0)+1)}}for(const d of n){const{i:u,v:f,$:r}=d;if(f!==void 0){l(f,u,-1,-1);continue}if(r)for(let i=0;i<t;i++){const h=r[i];if(h)if(Array.isArray(h))for(const m of h)l(m.v,u,i,m.i??-1);else l(h.v,u,i,-1)}}return{terms:s,fieldCount:c,df:a}}function At(n,t,o,s){const{i:a,v:c,$:l}=t;function d(u,f,r){const i=s.tokenize(u);if(!i.length)return;n.fieldCount++;const h=new Map;for(const m of i)h.set(m,(h.get(m)||0)+1);for(const[m,p]of h){const v={docIdx:a,keyIdx:f,subIdx:r,tf:p};let _=n.terms.get(m);_||(_=[],n.terms.set(m,_)),_.push(v),n.df.set(m,(n.df.get(m)||0)+1)}}if(c!==void 0){d(c,-1,-1);return}if(l)for(let u=0;u<o;u++){const f=l[u];if(f)if(Array.isArray(f))for(const r of f)d(r.v,u,r.i??-1);else d(f.v,u,-1)}}function De(n,t){for(const[o,s]of n.terms){const a=s.filter(l=>l.docIdx!==t),c=s.length-a.length;c>0&&(n.fieldCount-=c,n.df.set(o,(n.df.get(o)||0)-c),a.length===0?(n.terms.delete(o),n.df.delete(o)):n.terms.set(o,a))}}class L{constructor(t,o,s){this.options={...x,...o},this.options.useExtendedSearch,this.options.useTokenSearch,this._keyStore=new Qe(this.options.keys),this._docs=t,this._myIndex=null,this._invertedIndex=null,this.setCollection(t,s),this._lastQuery=null,this._lastSearcher=null}_getSearcher(t){if(this._lastQuery===t)return this._lastSearcher;const o=this._invertedIndex?{...this.options,_invertedIndex:this._invertedIndex}:this.options,s=J(t,o);return this._lastQuery=t,this._lastSearcher=s,s}setCollection(t,o){if(this._docs=t,o&&!(o instanceof de))throw new Error(We);if(this._myIndex=o||Ee(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight}),this.options.useTokenSearch){const s=ce({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics});this._invertedIndex=Et(this._myIndex.records,this._myIndex.keys.length,s)}}add(t){if(F(t)&&(this._docs.push(t),this._myIndex.add(t),this._invertedIndex)){const o=this._myIndex.records[this._myIndex.records.length-1],s=ce({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics});At(this._invertedIndex,o,this._myIndex.keys.length,s)}}remove(t=()=>!1){const o=[],s=[];for(let a=0,c=this._docs.length;a<c;a+=1)t(this._docs[a],a)&&(o.push(this._docs[a]),s.push(a));if(s.length){if(this._invertedIndex)for(const a of s)De(this._invertedIndex,a);for(let a=s.length-1;a>=0;a-=1)this._docs.splice(s[a],1);this._myIndex.removeAll(s)}return o}removeAt(t){this._invertedIndex&&De(this._invertedIndex,t);const o=this._docs.splice(t,1)[0];return this._myIndex.removeAt(t),o}getIndex(){return this._myIndex}search(t,o){const{limit:s=-1}=o||{},{includeMatches:a,includeScore:c,shouldSort:l,sortFn:d,ignoreFieldNorm:u}=this.options;if(M(t)&&!t.trim()){let i=this._docs.map((h,m)=>({item:h,refIndex:m}));return Q(s)&&s>-1&&(i=i.slice(0,s)),i}const f=Q(s)&&s>0&&M(t);let r;if(f){const i=new Dt(s);M(this._docs[0])?this._searchStringList(t,{heap:i,ignoreFieldNorm:u}):this._searchObjectList(t,{heap:i,ignoreFieldNorm:u}),r=i.extractSorted(d)}else r=M(t)?M(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t),kt(r,{ignoreFieldNorm:u}),l&&r.sort(d),Q(s)&&s>-1&&(r=r.slice(0,s));return Vt(r,this._docs,{includeMatches:a,includeScore:c})}_searchStringList(t,{heap:o,ignoreFieldNorm:s}={}){const a=this._getSearcher(t),{records:c}=this._myIndex,l=o?null:[];return c.forEach(({v:d,i:u,n:f})=>{if(!F(d))return;const{isMatch:r,score:i,indices:h}=a.searchIn(d);if(r){const m={item:d,idx:u,matches:[{score:i,value:d,norm:f,indices:h}]};o?(m.score=le(m.matches,{ignoreFieldNorm:s}),o.shouldInsert(m.score)&&o.insert(m)):l.push(m)}}),l}_searchLogical(t){const o=Me(t,this.options),s=(d,u,f)=>{if(!("children"in d)){const{keyId:m,searcher:p}=d;let v;return m===null?(v=[],this._myIndex.keys.forEach((_,w)=>{v.push(...this._findMatches({key:_,value:u[w],searcher:p}))})):v=this._findMatches({key:this._keyStore.get(m),value:this._myIndex.getValueForItemAtKeyId(u,m),searcher:p}),v&&v.length?[{idx:f,item:u,matches:v}]:[]}const{children:r,operator:i}=d,h=[];for(let m=0,p=r.length;m<p;m+=1){const v=r[m],_=s(v,u,f);if(_.length)h.push(..._);else if(i===X.AND)return[]}return h},a=this._myIndex.records,c=new Map,l=[];return a.forEach(({$:d,i:u})=>{if(F(d)){const f=s(o,d,u);f.length&&(c.has(u)||(c.set(u,{idx:u,item:d,matches:[]}),l.push(c.get(u))),f.forEach(({matches:r})=>{c.get(u).matches.push(...r)}))}}),l}_searchObjectList(t,{heap:o,ignoreFieldNorm:s}={}){const a=this._getSearcher(t),{keys:c,records:l}=this._myIndex,d=o?null:[];return l.forEach(({$:u,i:f})=>{if(!F(u))return;const r=[];let i=!1,h=!1;if(c.forEach((m,p)=>{const v=this._findMatches({key:m,value:u[p],searcher:a});v.length?(r.push(...v),v[0].hasInverse&&(h=!0)):i=!0}),!(h&&i)&&r.length){const m={idx:f,item:u,matches:r};o?(m.score=le(m.matches,{ignoreFieldNorm:s}),o.shouldInsert(m.score)&&o.insert(m)):d.push(m)}}),d}_findMatches({key:t,value:o,searcher:s}){if(!F(o))return[];const a=[];if(z(o))o.forEach(({v:c,i:l,n:d})=>{if(!F(c))return;const{isMatch:u,score:f,indices:r,hasInverse:i}=s.searchIn(c);u&&a.push({score:f,key:t,value:c,idx:l,norm:d,indices:r,hasInverse:i})});else{const{v:c,n:l}=o,{isMatch:d,score:u,indices:f,hasInverse:r}=s.searchIn(c);d&&a.push({score:u,key:t,value:c,norm:l,indices:f,hasInverse:r})}return a}}class Bt{static condition(t,o){return o.useTokenSearch}constructor(t,o){this.options=o,this.analyzer=ce({isCaseSensitive:o.isCaseSensitive,ignoreDiacritics:o.ignoreDiacritics});const s=this.analyzer.tokenize(t),a=o._invertedIndex,{df:c,fieldCount:l}=a;this.termSearchers=[],this.idfWeights=[];for(const d of s){this.termSearchers.push(new pe(d,{location:o.location,threshold:o.threshold,distance:o.distance,includeMatches:o.includeMatches,findAllMatches:o.findAllMatches,minMatchCharLength:o.minMatchCharLength,isCaseSensitive:o.isCaseSensitive,ignoreDiacritics:o.ignoreDiacritics,ignoreLocation:!0}));const u=c.get(d)||0,f=Math.log(1+(l-u+.5)/(u+.5));this.idfWeights.push(f)}}searchIn(t){if(!this.termSearchers.length)return{isMatch:!1,score:1};const o=[];let s=0,a=0,c=0;for(let u=0;u<this.termSearchers.length;u++){const f=this.termSearchers[u].searchIn(t),r=this.idfWeights[u];a+=r,f.isMatch&&(c++,s+=r*(1-f.score),f.indices&&o.push(...f.indices))}if(c===0)return{isMatch:!1,score:1};const l=a>0?1-s/a:0,d={isMatch:!0,score:Math.max(.001,l)};return this.options.includeMatches&&o.length&&(d.indices=me(o)),d}}L.version="7.3.0";L.createIndex=Ee;L.parseIndex=nt;L.config=x;L.match=function(n,t,o){return J(n,{...x,...o}).searchIn(t)};L.parseQuery=Me;fe(Ct);fe(Bt);L.use=function(...n){n.forEach(t=>fe(t))};const P=n=>n==null?"—":`€${n.toFixed(2)}`,St=n=>{if(!n)return"—";if(n<60)return`${n} min`;const t=Math.floor(n/60),o=n%60;return o>0?`${t}h ${o}min`:`${t}h`},Mt=n=>{switch(n){case"confirmed":return"Confirmed";case"pending":return"Pending";case"cancelled":return"Cancelled";default:return n||"Unknown"}},Ne=n=>{switch(n){case"confirmed":return"#16a34a";case"pending":return"#ca8a04";case"cancelled":return"#dc2626";default:return"#6b7280"}},Ft=(n,t={})=>{const o=`${n.customerInfo?.firstName||""} ${n.customerInfo?.lastName||""}`.trim()||"Unknown Customer",s=n.id?.slice(0,8)||"—",a=new Date().toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}),c=`
|
|
2
|
-
<!DOCTYPE html>
|
|
3
|
-
<html lang="en">
|
|
4
|
-
<head>
|
|
5
|
-
<meta charset="UTF-8">
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
7
|
-
<title>Reservation ${s}</title>
|
|
8
|
-
<style>
|
|
9
|
-
* {
|
|
10
|
-
margin: 0;
|
|
11
|
-
padding: 0;
|
|
12
|
-
box-sizing: border-box;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
body {
|
|
16
|
-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
17
|
-
line-height: 1.6;
|
|
18
|
-
color: #1f2937;
|
|
19
|
-
background: #fff;
|
|
20
|
-
padding: 40px;
|
|
21
|
-
max-width: 800px;
|
|
22
|
-
margin: 0 auto;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.header {
|
|
26
|
-
display: flex;
|
|
27
|
-
justify-content: space-between;
|
|
28
|
-
align-items: flex-start;
|
|
29
|
-
margin-bottom: 40px;
|
|
30
|
-
padding-bottom: 20px;
|
|
31
|
-
border-bottom: 2px solid #e5e7eb;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.company-info {
|
|
35
|
-
display: flex;
|
|
36
|
-
align-items: center;
|
|
37
|
-
gap: 16px;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.company-logo {
|
|
41
|
-
max-height: 50px;
|
|
42
|
-
max-width: 150px;
|
|
43
|
-
object-fit: contain;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.company-name {
|
|
47
|
-
font-size: 24px;
|
|
48
|
-
font-weight: 700;
|
|
49
|
-
color: #111827;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.document-info {
|
|
53
|
-
text-align: right;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.document-title {
|
|
57
|
-
font-size: 28px;
|
|
58
|
-
font-weight: 700;
|
|
59
|
-
color: #111827;
|
|
60
|
-
margin-bottom: 8px;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.booking-id {
|
|
64
|
-
font-size: 14px;
|
|
65
|
-
color: #6b7280;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.status-badge {
|
|
69
|
-
display: inline-block;
|
|
70
|
-
padding: 4px 12px;
|
|
71
|
-
border-radius: 9999px;
|
|
72
|
-
font-size: 12px;
|
|
73
|
-
font-weight: 600;
|
|
74
|
-
text-transform: uppercase;
|
|
75
|
-
margin-top: 8px;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.section {
|
|
79
|
-
margin-bottom: 32px;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.section-title {
|
|
83
|
-
font-size: 12px;
|
|
84
|
-
font-weight: 600;
|
|
85
|
-
text-transform: uppercase;
|
|
86
|
-
letter-spacing: 0.05em;
|
|
87
|
-
color: #6b7280;
|
|
88
|
-
margin-bottom: 12px;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.section-content {
|
|
92
|
-
background: #f9fafb;
|
|
93
|
-
border-radius: 8px;
|
|
94
|
-
padding: 20px;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.customer-name {
|
|
98
|
-
font-size: 18px;
|
|
99
|
-
font-weight: 600;
|
|
100
|
-
margin-bottom: 8px;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.contact-info {
|
|
104
|
-
font-size: 14px;
|
|
105
|
-
color: #4b5563;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.contact-info a {
|
|
109
|
-
color: #4b5563;
|
|
110
|
-
text-decoration: none;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.grid {
|
|
114
|
-
display: grid;
|
|
115
|
-
grid-template-columns: 1fr 1fr;
|
|
116
|
-
gap: 16px;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.info-card {
|
|
120
|
-
background: #f9fafb;
|
|
121
|
-
border-radius: 8px;
|
|
122
|
-
padding: 16px;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.info-label {
|
|
126
|
-
font-size: 12px;
|
|
127
|
-
color: #6b7280;
|
|
128
|
-
margin-bottom: 4px;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.info-value {
|
|
132
|
-
font-size: 16px;
|
|
133
|
-
font-weight: 600;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.package-row {
|
|
137
|
-
display: flex;
|
|
138
|
-
justify-content: space-between;
|
|
139
|
-
align-items: flex-start;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.package-name {
|
|
143
|
-
font-size: 16px;
|
|
144
|
-
font-weight: 600;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
.package-duration {
|
|
148
|
-
font-size: 14px;
|
|
149
|
-
color: #6b7280;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
.package-price {
|
|
153
|
-
font-size: 16px;
|
|
154
|
-
font-weight: 600;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
.payment-row {
|
|
158
|
-
display: flex;
|
|
159
|
-
justify-content: space-between;
|
|
160
|
-
padding: 8px 0;
|
|
161
|
-
font-size: 14px;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
.payment-label {
|
|
165
|
-
color: #6b7280;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
.payment-value {
|
|
169
|
-
font-weight: 500;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
.payment-value.green {
|
|
173
|
-
color: #16a34a;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
.payment-value.orange {
|
|
177
|
-
color: #ea580c;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
.payment-divider {
|
|
181
|
-
border-top: 1px solid #e5e7eb;
|
|
182
|
-
margin: 12px 0;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
.payment-total {
|
|
186
|
-
font-size: 16px;
|
|
187
|
-
font-weight: 600;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
.footer {
|
|
191
|
-
margin-top: 60px;
|
|
192
|
-
padding-top: 20px;
|
|
193
|
-
border-top: 1px solid #e5e7eb;
|
|
194
|
-
text-align: center;
|
|
195
|
-
font-size: 12px;
|
|
196
|
-
color: #9ca3af;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
@media print {
|
|
200
|
-
body {
|
|
201
|
-
padding: 20px;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
.no-print {
|
|
205
|
-
display: none;
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
</style>
|
|
209
|
-
</head>
|
|
210
|
-
<body>
|
|
211
|
-
<div class="header">
|
|
212
|
-
<div class="company-info">
|
|
213
|
-
${t.companyLogo?`<img src="${t.companyLogo}" alt="Logo" class="company-logo" />`:""}
|
|
214
|
-
${t.companyName?`<span class="company-name">${t.companyName}</span>`:""}
|
|
215
|
-
</div>
|
|
216
|
-
<div class="document-info">
|
|
217
|
-
<div class="document-title">Reservation</div>
|
|
218
|
-
<div class="booking-id">Booking #${s}</div>
|
|
219
|
-
<div
|
|
220
|
-
class="status-badge"
|
|
221
|
-
style="background-color: ${Ne(n.status)}20; color: ${Ne(n.status)};"
|
|
222
|
-
>
|
|
223
|
-
${Mt(n.status)}
|
|
224
|
-
</div>
|
|
225
|
-
</div>
|
|
226
|
-
</div>
|
|
227
|
-
|
|
228
|
-
<div class="section">
|
|
229
|
-
<div class="section-title">Customer</div>
|
|
230
|
-
<div class="section-content">
|
|
231
|
-
<div class="customer-name">${o}</div>
|
|
232
|
-
<div class="contact-info">
|
|
233
|
-
${n.customerInfo?.email?`<div>Email: <a href="mailto:${n.customerInfo.email}">${n.customerInfo.email}</a></div>`:""}
|
|
234
|
-
${n.customerInfo?.phone?`<div>Phone: <a href="tel:${n.customerInfo.phone}">${n.customerInfo.phone}</a></div>`:""}
|
|
235
|
-
</div>
|
|
236
|
-
</div>
|
|
237
|
-
</div>
|
|
238
|
-
|
|
239
|
-
<div class="section">
|
|
240
|
-
<div class="section-title">Reservation Details</div>
|
|
241
|
-
<div class="grid">
|
|
242
|
-
<div class="info-card">
|
|
243
|
-
<div class="info-label">Date</div>
|
|
244
|
-
<div class="info-value">${t.date||"—"}</div>
|
|
245
|
-
</div>
|
|
246
|
-
<div class="info-card">
|
|
247
|
-
<div class="info-label">Time</div>
|
|
248
|
-
<div class="info-value">${n.startTime} - ${n.endTime}</div>
|
|
249
|
-
</div>
|
|
250
|
-
<div class="info-card">
|
|
251
|
-
<div class="info-label">Spots</div>
|
|
252
|
-
<div class="info-value">${n.spots||1} ${(n.spots||1)===1?"person":"people"}</div>
|
|
253
|
-
</div>
|
|
254
|
-
${t.resourceName?`
|
|
255
|
-
<div class="info-card">
|
|
256
|
-
<div class="info-label">Resource</div>
|
|
257
|
-
<div class="info-value">${t.resourceName}</div>
|
|
258
|
-
</div>
|
|
259
|
-
`:""}
|
|
260
|
-
${t.agendaName?`
|
|
261
|
-
<div class="info-card">
|
|
262
|
-
<div class="info-label">Service</div>
|
|
263
|
-
<div class="info-value">${t.agendaName}</div>
|
|
264
|
-
</div>
|
|
265
|
-
`:""}
|
|
266
|
-
</div>
|
|
267
|
-
</div>
|
|
268
|
-
|
|
269
|
-
${n.pricingOption?`
|
|
270
|
-
<div class="section">
|
|
271
|
-
<div class="section-title">Package</div>
|
|
272
|
-
<div class="section-content">
|
|
273
|
-
<div class="package-row">
|
|
274
|
-
<div>
|
|
275
|
-
<div class="package-name">${n.pricingOption.name}</div>
|
|
276
|
-
<div class="package-duration">${St(n.pricingOption.duration)}</div>
|
|
277
|
-
</div>
|
|
278
|
-
<div class="package-price">${P(n.pricingOption.price)}</div>
|
|
279
|
-
</div>
|
|
280
|
-
</div>
|
|
281
|
-
</div>
|
|
282
|
-
`:""}
|
|
283
|
-
|
|
284
|
-
<div class="section">
|
|
285
|
-
<div class="section-title">Payment Summary</div>
|
|
286
|
-
<div class="section-content">
|
|
287
|
-
<div class="payment-row">
|
|
288
|
-
<span class="payment-label">Base price</span>
|
|
289
|
-
<span class="payment-value">${P(n.reservationBasePrice)}</span>
|
|
290
|
-
</div>
|
|
291
|
-
${n.reservationAddOnsPrice?`
|
|
292
|
-
<div class="payment-row">
|
|
293
|
-
<span class="payment-label">Add-ons</span>
|
|
294
|
-
<span class="payment-value">${P(n.reservationAddOnsPrice)}</span>
|
|
295
|
-
</div>
|
|
296
|
-
`:""}
|
|
297
|
-
${n.discount?`
|
|
298
|
-
<div class="payment-row">
|
|
299
|
-
<span class="payment-label">Discount</span>
|
|
300
|
-
<span class="payment-value green">-${P(n.discount)}</span>
|
|
301
|
-
</div>
|
|
302
|
-
`:""}
|
|
303
|
-
|
|
304
|
-
<div class="payment-divider"></div>
|
|
305
|
-
|
|
306
|
-
<div class="payment-row payment-total">
|
|
307
|
-
<span>Reservation Total</span>
|
|
308
|
-
<span>${P(n.reservationPrice)}</span>
|
|
309
|
-
</div>
|
|
310
|
-
|
|
311
|
-
${n.amountPaid!==void 0||n.amountDue!==void 0?`
|
|
312
|
-
<div class="payment-divider"></div>
|
|
313
|
-
|
|
314
|
-
${n.amountPaid!==void 0?`
|
|
315
|
-
<div class="payment-row">
|
|
316
|
-
<span class="payment-label">Amount paid</span>
|
|
317
|
-
<span class="payment-value green">${P(n.amountPaid)}</span>
|
|
318
|
-
</div>
|
|
319
|
-
`:""}
|
|
320
|
-
|
|
321
|
-
${n.amountDue!==void 0&&n.amountDue>0?`
|
|
322
|
-
<div class="payment-row">
|
|
323
|
-
<span class="payment-label">Amount due</span>
|
|
324
|
-
<span class="payment-value orange">${P(n.amountDue)}</span>
|
|
325
|
-
</div>
|
|
326
|
-
`:""}
|
|
327
|
-
`:""}
|
|
328
|
-
</div>
|
|
329
|
-
</div>
|
|
330
|
-
|
|
331
|
-
<div class="footer">
|
|
332
|
-
<p>Generated on ${a}</p>
|
|
333
|
-
${t.companyName?`<p>${t.companyName}</p>`:""}
|
|
334
|
-
</div>
|
|
335
|
-
</body>
|
|
336
|
-
</html>
|
|
337
|
-
`,l=window.open("","_blank");l&&(l.document.write(c),l.document.close(),l.onload=()=>{l.print()})},$t={class:"flex items-center bg-muted/70 dark:bg-muted/20 px-4 rounded-md"},It={class:"grid gap-2"},Tt={class:"grid gap-2"},Rt={class:"grid gap-2"},jt=e.defineComponent({__name:"CancelReservationDialog",emits:["confirm"],setup(n,{expose:t,emit:o}){const{config:s}=R.useModule(),{sendMail:a}=R.useMailer(s.mailAccount),c=o,l=e.ref(!1),d=e.ref(!1),u=e.ref(""),f=e.ref(""),r=e.ref(""),i=m=>{d.value=!s.mailAccount,l.value=!0,m&&(u.value=m.customerInfo?.email,f.value="Cancellation of your reservation - "+new Date(m.date)?.toDateString(),r.value=`Dear ${m.customerInfo?.firstName??""} ${m.customerInfo?.lastName??""},
|
|
338
|
-
|
|
339
|
-
We are writing to inform you that your reservation scheduled for ${new Date(m.date)?.toDateString()} at ${m.startTime} has been cancelled.
|
|
340
|
-
|
|
341
|
-
Please accept our sincere apologies for any inconvenience this may cause. We would be happy to help you find an alternative time that works for you.`)},h=()=>{if(!d.value){if(!u.value||!f.value||!r.value)return alert("Please fill in all the fields.");a({to:u.value,subject:f.value,body:r.value})}l.value=!1;const{$confetti:m}=useNuxtApp();m(),c("confirm")};return t({openDialog:i}),(m,p)=>{const v=e.resolveComponent("DialogTitle"),_=e.resolveComponent("DialogDescription"),w=e.resolveComponent("DialogHeader"),S=e.resolveComponent("Checkbox"),k=e.resolveComponent("Label"),b=e.resolveComponent("Input"),V=e.resolveComponent("Textarea"),T=e.resolveComponent("Button"),I=e.resolveComponent("DialogFooter"),N=e.resolveComponent("DialogScrollContent"),E=e.resolveComponent("Dialog");return e.openBlock(),e.createBlock(E,{open:l.value,"onUpdate:open":p[5]||(p[5]=C=>l.value=C)},{default:e.withCtx(()=>[e.createVNode(N,{class:"sm:max-w-3xl"},{default:e.withCtx(()=>[e.createVNode(w,null,{default:e.withCtx(()=>[e.createVNode(v,null,{default:e.withCtx(()=>[...p[6]||(p[6]=[e.createTextVNode(" Cancel Reservation ",-1)])]),_:1}),e.createVNode(_)]),_:1}),e.createElementVNode("div",$t,[e.createVNode(S,{modelValue:d.value,"onUpdate:modelValue":p[0]||(p[0]=C=>d.value=C),id:"cancel-dialog-skip-mail",class:"border-black/80 dark:border-gray-200",disabled:!e.unref(s).mailAccount},null,8,["modelValue","disabled"]),e.createVNode(k,{for:"cancel-dialog-skip-mail",class:"py-4 pl-2 pr-4"},{default:e.withCtx(()=>[...p[7]||(p[7]=[e.createTextVNode("Do not send email to customer",-1)])]),_:1})]),e.createElementVNode("div",{class:e.normalizeClass(["grid gap-4 py-4",{"opacity-50":d.value}])},[e.createElementVNode("div",It,[e.createVNode(k,{for:"cancel-dialog-email"},{default:e.withCtx(()=>[...p[8]||(p[8]=[e.createTextVNode("To:",-1)])]),_:1}),e.createVNode(b,{modelValue:u.value,"onUpdate:modelValue":p[1]||(p[1]=C=>u.value=C),disabled:d.value,id:"cancel-dialog-email"},null,8,["modelValue","disabled"])]),e.createElementVNode("div",Tt,[e.createVNode(k,{for:"cancel-dialog-subject"},{default:e.withCtx(()=>[...p[9]||(p[9]=[e.createTextVNode("Subject:",-1)])]),_:1}),e.createVNode(b,{modelValue:f.value,"onUpdate:modelValue":p[2]||(p[2]=C=>f.value=C),disabled:d.value,id:"cancel-dialog-subject"},null,8,["modelValue","disabled"])]),e.createElementVNode("div",Rt,[e.createVNode(k,{for:"cancel-dialog-body"},{default:e.withCtx(()=>[...p[10]||(p[10]=[e.createTextVNode("Body:",-1)])]),_:1}),e.createVNode(V,{modelValue:r.value,"onUpdate:modelValue":p[3]||(p[3]=C=>r.value=C),disabled:d.value,id:"cancel-dialog-body"},null,8,["modelValue","disabled"])])],2),e.createVNode(I,null,{default:e.withCtx(()=>[e.createVNode(T,{variant:"outline",onClick:p[4]||(p[4]=C=>l.value=!1)},{default:e.withCtx(()=>[...p[11]||(p[11]=[e.createTextVNode("Close",-1)])]),_:1}),e.createVNode(T,{variant:"destructive",onClick:h},{default:e.withCtx(()=>[...p[12]||(p[12]=[e.createTextVNode("Cancel reservation",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["open"])}}}),zt=e.defineComponent({__name:"TransferReservationDialog",setup(n,{expose:t}){const{config:o}=R.useModule(),s=e.ref(!1);return t({openDialog:()=>{s.value=!0}}),(c,l)=>{const d=e.resolveComponent("DialogTitle"),u=e.resolveComponent("DialogDescription"),f=e.resolveComponent("DialogHeader"),r=e.resolveComponent("Button"),i=e.resolveComponent("DialogFooter"),h=e.resolveComponent("DialogScrollContent"),m=e.resolveComponent("Dialog");return e.openBlock(),e.createBlock(m,{open:s.value,"onUpdate:open":l[2]||(l[2]=p=>s.value=p)},{default:e.withCtx(()=>[e.createVNode(h,{class:"sm:max-w-3xl"},{default:e.withCtx(()=>[e.createVNode(f,null,{default:e.withCtx(()=>[e.createVNode(d,null,{default:e.withCtx(()=>[...l[3]||(l[3]=[e.createTextVNode(" Transfer Reservation ",-1)])]),_:1}),e.createVNode(u)]),_:1}),l[6]||(l[6]=e.createElementVNode("div",{class:"py-4"},null,-1)),e.createVNode(i,null,{default:e.withCtx(()=>[e.createVNode(r,{variant:"outline",onClick:l[0]||(l[0]=p=>s.value=!1)},{default:e.withCtx(()=>[...l[4]||(l[4]=[e.createTextVNode("Close",-1)])]),_:1}),e.createVNode(r,{onClick:l[1]||(l[1]=p=>s.value=!1)},{default:e.withCtx(()=>[...l[5]||(l[5]=[e.createTextVNode("Transfer reservation",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["open"])}}}),Ot={class:"flex items-center bg-muted/70 dark:bg-muted/20 px-4 rounded-md"},Lt={class:"grid gap-2"},Pt={class:"grid gap-2"},Ut={class:"grid gap-2"},Wt=e.defineComponent({__name:"ApproveReservationDialog",emits:["confirm"],setup(n,{expose:t,emit:o}){const{config:s}=R.useModule(),{sendMail:a}=R.useMailer(s.mailAccount),c=o,l=e.ref(!1),d=e.ref("approve"),u=e.ref(!1),f=e.ref(""),r=e.ref(""),i=e.ref(""),h=(p,v)=>{u.value=!s.mailAccount,l.value=!0,p&&(v||(v="approve"),d.value=v,f.value=p.customerInfo?.email,r.value="Confirmation: Your reservation for "+new Date(p.date)?.toDateString(),i.value=`Dear ${p.customerInfo?.firstName??""} ${p.customerInfo?.lastName??""},
|
|
342
|
-
|
|
343
|
-
This email confirms your reservation for ${new Date(p.date)?.toDateString()} at ${p.startTime}.
|
|
344
|
-
|
|
345
|
-
We've got everything ready for you and look forward to your visit! If you need to make any changes or have special requests, please let us know.`)},m=()=>{if(!u.value){if(!f.value||!r.value||!i.value)return alert("Please fill in all the fields.");a({to:f.value,subject:r.value,body:i.value})}l.value=!1;const{$confetti:p}=useNuxtApp();p(),c("confirm")};return t({openDialog:h}),(p,v)=>{const _=e.resolveComponent("DialogTitle"),w=e.resolveComponent("DialogDescription"),S=e.resolveComponent("DialogHeader"),k=e.resolveComponent("Checkbox"),b=e.resolveComponent("Label"),V=e.resolveComponent("Input"),T=e.resolveComponent("Textarea"),I=e.resolveComponent("Button"),N=e.resolveComponent("DialogFooter"),E=e.resolveComponent("DialogScrollContent"),C=e.resolveComponent("Dialog");return e.openBlock(),e.createBlock(C,{open:l.value,"onUpdate:open":v[5]||(v[5]=A=>l.value=A)},{default:e.withCtx(()=>[e.createVNode(E,{class:"sm:max-w-3xl"},{default:e.withCtx(()=>[e.createVNode(S,null,{default:e.withCtx(()=>[e.createVNode(_,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d.value==="approve"?"Approve Reservation":"Resend Confirmation Email"),1)]),_:1}),e.createVNode(w)]),_:1}),e.createElementVNode("div",Ot,[e.createVNode(k,{modelValue:u.value,"onUpdate:modelValue":v[0]||(v[0]=A=>u.value=A),id:"reject-dialog-skip-mail",class:"border-black/80 dark:border-gray-200",disabled:!e.unref(s).mailAccount},null,8,["modelValue","disabled"]),e.createVNode(b,{for:"reject-dialog-skip-mail",class:"py-4 pl-2 pr-4"},{default:e.withCtx(()=>[...v[6]||(v[6]=[e.createTextVNode("Do not send email to customer",-1)])]),_:1})]),e.createElementVNode("div",{class:e.normalizeClass(["grid gap-4 py-4",{"opacity-50":u.value}])},[e.createElementVNode("div",Lt,[e.createVNode(b,{for:"approve-dialog-email"},{default:e.withCtx(()=>[...v[7]||(v[7]=[e.createTextVNode("To:",-1)])]),_:1}),e.createVNode(V,{modelValue:f.value,"onUpdate:modelValue":v[1]||(v[1]=A=>f.value=A),disabled:u.value,id:"approve-dialog-email"},null,8,["modelValue","disabled"])]),e.createElementVNode("div",Pt,[e.createVNode(b,{for:"approve-dialog-subject"},{default:e.withCtx(()=>[...v[8]||(v[8]=[e.createTextVNode("Subject:",-1)])]),_:1}),e.createVNode(V,{modelValue:r.value,"onUpdate:modelValue":v[2]||(v[2]=A=>r.value=A),disabled:u.value,id:"approve-dialog-subject"},null,8,["modelValue","disabled"])]),e.createElementVNode("div",Ut,[e.createVNode(b,{for:"approve-dialog-body"},{default:e.withCtx(()=>[...v[9]||(v[9]=[e.createTextVNode("Body:",-1)])]),_:1}),e.createVNode(T,{modelValue:i.value,"onUpdate:modelValue":v[3]||(v[3]=A=>i.value=A),disabled:u.value,id:"approve-dialog-body"},null,8,["modelValue","disabled"])])],2),e.createVNode(N,null,{default:e.withCtx(()=>[e.createVNode(I,{variant:"outline",onClick:v[4]||(v[4]=A=>l.value=!1)},{default:e.withCtx(()=>[...v[10]||(v[10]=[e.createTextVNode("Close",-1)])]),_:1}),e.createVNode(I,{onClick:m},{default:e.withCtx(()=>[...v[11]||(v[11]=[e.createTextVNode("Approve reservation",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["open"])}}}),Ht={class:"flex items-center bg-muted/70 dark:bg-muted/20 px-4 rounded-md"},Kt={class:"grid gap-2"},Gt={class:"grid gap-2"},Yt={class:"grid gap-2"},Qt=e.defineComponent({__name:"RejectReservationDialog",emits:["confirm"],setup(n,{expose:t,emit:o}){const{config:s}=R.useModule(),{sendMail:a}=R.useMailer(s.mailAccount),c=o,l=e.ref(!1),d=e.ref(!1),u=e.ref(""),f=e.ref(""),r=e.ref(""),i=m=>{d.value=!s.mailAccount,l.value=!0,m&&(u.value=m.customerInfo?.email,f.value="Regarding your reservation request for "+new Date(m.date)?.toDateString(),r.value=`Dear ${m.customerInfo?.firstName??""} ${m.customerInfo?.lastName??""},
|
|
346
|
-
|
|
347
|
-
Thank you for your interest in booking with us. Unfortunately, we are unable to confirm your request for ${new Date(m.date)?.toDateString()} at ${m.startTime}.
|
|
348
|
-
|
|
349
|
-
We would love to see you another time!`)},h=()=>{if(!d.value){if(!u.value||!f.value||!r.value)return alert("Please fill in all the fields.");a({to:u.value,subject:f.value,body:r.value})}l.value=!1;const{$confetti:m}=useNuxtApp();m(),c("confirm")};return t({openDialog:i}),(m,p)=>{const v=e.resolveComponent("DialogTitle"),_=e.resolveComponent("DialogDescription"),w=e.resolveComponent("DialogHeader"),S=e.resolveComponent("Checkbox"),k=e.resolveComponent("Label"),b=e.resolveComponent("Input"),V=e.resolveComponent("Textarea"),T=e.resolveComponent("Button"),I=e.resolveComponent("DialogFooter"),N=e.resolveComponent("DialogScrollContent"),E=e.resolveComponent("Dialog");return e.openBlock(),e.createBlock(E,{open:l.value,"onUpdate:open":p[5]||(p[5]=C=>l.value=C)},{default:e.withCtx(()=>[e.createVNode(N,{class:"sm:max-w-3xl"},{default:e.withCtx(()=>[e.createVNode(w,null,{default:e.withCtx(()=>[e.createVNode(v,null,{default:e.withCtx(()=>[...p[6]||(p[6]=[e.createTextVNode(" Reject Reservation Request ",-1)])]),_:1}),e.createVNode(_)]),_:1}),e.createElementVNode("div",Ht,[e.createVNode(S,{modelValue:d.value,"onUpdate:modelValue":p[0]||(p[0]=C=>d.value=C),id:"reject-dialog-skip-mail",class:"border-black/80 dark:border-gray-200",disabled:!e.unref(s).mailAccount},null,8,["modelValue","disabled"]),e.createVNode(k,{for:"reject-dialog-skip-mail",class:"py-4 pl-2 pr-4"},{default:e.withCtx(()=>[...p[7]||(p[7]=[e.createTextVNode("Do not send email to customer",-1)])]),_:1})]),e.createElementVNode("div",{class:e.normalizeClass(["grid gap-4 py-4",{"opacity-50":d.value}])},[e.createElementVNode("div",Kt,[e.createVNode(k,{for:"reject-dialog-email"},{default:e.withCtx(()=>[...p[8]||(p[8]=[e.createTextVNode("To:",-1)])]),_:1}),e.createVNode(b,{modelValue:u.value,"onUpdate:modelValue":p[1]||(p[1]=C=>u.value=C),disabled:d.value,id:"reject-dialog-email"},null,8,["modelValue","disabled"])]),e.createElementVNode("div",Gt,[e.createVNode(k,{for:"reject-dialog-subject"},{default:e.withCtx(()=>[...p[9]||(p[9]=[e.createTextVNode("Subject:",-1)])]),_:1}),e.createVNode(b,{modelValue:f.value,"onUpdate:modelValue":p[2]||(p[2]=C=>f.value=C),disabled:d.value,id:"reject-dialog-subject"},null,8,["modelValue","disabled"])]),e.createElementVNode("div",Yt,[e.createVNode(k,{for:"reject-dialog-body"},{default:e.withCtx(()=>[...p[10]||(p[10]=[e.createTextVNode("Body:",-1)])]),_:1}),e.createVNode(V,{modelValue:r.value,"onUpdate:modelValue":p[3]||(p[3]=C=>r.value=C),disabled:d.value,id:"reject-dialog-body"},null,8,["modelValue","disabled"])])],2),e.createVNode(I,null,{default:e.withCtx(()=>[e.createVNode(T,{variant:"outline",onClick:p[4]||(p[4]=C=>l.value=!1)},{default:e.withCtx(()=>[...p[11]||(p[11]=[e.createTextVNode("Close",-1)])]),_:1}),e.createVNode(T,{variant:"destructive",onClick:h},{default:e.withCtx(()=>[...p[12]||(p[12]=[e.createTextVNode("Reject reservation",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["open"])}}}),Jt={key:0},Xt={key:0,class:"flex items-center gap-1.5 flex-wrap"},Zt={key:0,class:"space-y-2 mb-4"},qt={class:"text-xs font-medium text-muted-foreground uppercase tracking-wide"},eo={key:0,class:"text-2xl font-bold tracking-wider"},to={key:1,class:"flex flex-wrap gap-2 mb-4"},oo={key:1,class:"text-xs text-muted-foreground mr-0.5"},no={key:2,class:"space-y-3"},so={class:"bg-muted/30 rounded-lg p-4 space-y-2"},ro={class:"text-muted-foreground flex items-center gap-1.5"},ao={class:"font-medium"},ue=e.defineComponent({__name:"OrderMetadataDisplay",props:{metadata:{default:()=>({})},schema:{default:()=>[]},displayFilter:{default:void 0},scope:{default:void 0},compact:{type:Boolean,default:!1}},setup(n,{expose:t}){const o=n,s=e.computed(()=>{if(!o.metadata)return[];const u=new Set(o.schema?.map(i=>i.key)||[]),f=(o.schema||[]).filter(i=>!(o.scope&&i.scope!==o.scope||o.displayFilter&&!o.displayFilter.includes(i.display)||o.metadata[i.key]===void 0||o.metadata[i.key]===null||i.display==="hidden"||o.metadata[i.key]===!1)).sort((i,h)=>(i.order||0)-(h.order||0)).map(i=>({...i,value:o.metadata[i.key]}));if(o.displayFilter&&!o.displayFilter.includes("field"))return f;const r=Object.entries(o.metadata).filter(([i,h])=>!u.has(i)&&h!==void 0&&h!==null&&h!==!1).map(([i,h])=>({id:`_fallback_${i}`,key:i,label:i.replace(/([A-Z])/g," $1").replace(/[_-]/g," ").replace(/^\w/,m=>m.toUpperCase()).trim(),display:"field",scope:"order",value:typeof h=="object"?JSON.stringify(h):String(h)}));return[...f,...r]}),a=e.computed(()=>s.value.filter(u=>u.display==="highlight")),c=e.computed(()=>s.value.filter(u=>u.display==="badge")),l=e.computed(()=>s.value.filter(u=>u.display==="field")),d=e.computed(()=>s.value.length>0);return t({hasContent:d}),(u,f)=>d.value?(e.openBlock(),e.createElementBlock("div",Jt,[n.compact?(e.openBlock(),e.createElementBlock("div",Xt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,r=>(e.openBlock(),e.createElementBlock("span",{key:r.id,class:e.normalizeClass(["inline-flex items-center gap-1 px-2 py-0.5 text-xs font-bold rounded-md",r.color?"":"bg-primary/10 text-primary"]),style:e.normalizeStyle(r.color?{backgroundColor:r.color+"20",color:r.color}:{})},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(D.icons)[r.icon]),{size:12})),e.createTextVNode(" "+e.toDisplayString(r.value===!0?r.label:r.value),1)],6))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,r=>(e.openBlock(),e.createElementBlock("span",{key:r.id,class:e.normalizeClass(["inline-flex items-center gap-1 px-2 py-0.5 text-xs font-medium rounded-full",r.color?"":"bg-muted text-muted-foreground"]),style:e.normalizeStyle(r.color?{backgroundColor:r.color+"20",color:r.color}:{})},[r.icon&&e.unref(D.icons)[r.icon]?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(D.icons)[r.icon]),{key:0,size:10})):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(r.value===!0?r.label:r.value),1)],6))),128))])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[a.value.length?(e.openBlock(),e.createElementBlock("div",Zt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,r=>(e.openBlock(),e.createElementBlock("div",{key:r.id,class:e.normalizeClass(["rounded-lg border-2 p-4 flex items-center gap-4",r.color?"":"border-primary/20 bg-primary/5"]),style:e.normalizeStyle(r.color?{borderColor:r.color+"40",backgroundColor:r.color+"08"}:{})},[e.createElementVNode("div",{class:e.normalizeClass(["h-12 w-12 rounded-xl flex items-center justify-center shrink-0",r.color?"":"bg-primary/10"]),style:e.normalizeStyle(r.color?{backgroundColor:r.color+"20"}:{})},[r.icon&&e.unref(D.icons)[r.icon]?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(D.icons)[r.icon]),{key:0,size:24,style:e.normalizeStyle(r.color?{color:r.color}:{}),class:e.normalizeClass(r.color?"":"text-primary")},null,8,["style","class"])):e.createCommentVNode("",!0)],6),e.createElementVNode("div",null,[e.createElementVNode("p",qt,e.toDisplayString(r.label),1),r.value!==!0?(e.openBlock(),e.createElementBlock("p",eo,e.toDisplayString(r.value),1)):e.createCommentVNode("",!0)])],6))),128))])):e.createCommentVNode("",!0),c.value.length?(e.openBlock(),e.createElementBlock("div",to,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,r=>(e.openBlock(),e.createElementBlock("span",{key:r.id,class:e.normalizeClass(["inline-flex items-center gap-1.5 px-3 py-1.5 text-sm font-medium rounded-full",r.color?"":"bg-muted text-muted-foreground"]),style:e.normalizeStyle(r.color?{backgroundColor:r.color+"20",color:r.color}:{})},[r.icon&&e.unref(D.icons)[r.icon]?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(D.icons)[r.icon]),{key:0,size:14})):e.createCommentVNode("",!0),r.label?(e.openBlock(),e.createElementBlock("span",oo,[e.createTextVNode(e.toDisplayString(r.label),1),r.value!==!0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(":")],64)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),r.value!==!0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(e.toDisplayString(r.value),1)],64)):e.createCommentVNode("",!0)],6))),128))])):e.createCommentVNode("",!0),l.value.length?(e.openBlock(),e.createElementBlock("div",no,[f[0]||(f[0]=e.createElementVNode("h3",{class:"text-sm font-semibold text-muted-foreground uppercase tracking-wide"},"Additional Info",-1)),e.createElementVNode("div",so,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,r=>(e.openBlock(),e.createElementBlock("div",{key:r.id,class:"flex justify-between text-sm"},[e.createElementVNode("span",ro,[r.icon&&e.unref(D.icons)[r.icon]?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(D.icons)[r.icon]),{key:0,size:14})):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(r.label),1)]),e.createElementVNode("span",ao,e.toDisplayString(r.value===!0?"✓":r.value),1)]))),128))])])):e.createCommentVNode("",!0)],64))])):e.createCommentVNode("",!0)}}),io={key:0,class:"space-y-6 py-4"},lo={class:"space-y-3"},co={class:"bg-muted/30 rounded-lg p-4 space-y-3"},uo={class:"flex items-center gap-3"},mo={class:"h-10 w-10 rounded-full bg-primary/10 flex items-center justify-center"},po={class:"font-medium"},fo={class:"grid gap-2 text-sm"},ho={key:0,class:"flex items-center gap-2 text-muted-foreground"},go=["href"],vo={key:1,class:"flex items-center gap-2 text-muted-foreground"},xo=["href"],Co={class:"space-y-3"},yo={class:"grid grid-cols-2 gap-3"},_o={class:"bg-muted/30 rounded-lg p-3"},ko={class:"flex items-center gap-2 text-muted-foreground mb-1"},Do={class:"text-xs"},No={class:"font-medium"},bo={class:"bg-muted/30 rounded-lg p-3"},Vo={class:"flex items-center gap-2 text-muted-foreground mb-1"},wo={class:"font-medium"},Eo={key:0,class:"space-y-3"},Ao={class:"bg-muted/30 rounded-lg p-4"},Bo={class:"flex items-start justify-between"},So={class:"flex items-start gap-3"},Mo={class:"h-9 w-9 rounded-lg bg-primary/10 flex items-center justify-center mt-0.5"},Fo={class:"font-medium"},$o={class:"text-sm text-muted-foreground"},Io={class:"font-semibold"},To={class:"space-y-3"},Ro={class:"bg-muted/30 rounded-lg p-4 space-y-3"},jo={class:"space-y-2 text-sm"},zo={class:"flex justify-between"},Oo={key:0,class:"flex justify-between"},Lo={key:1,class:"flex justify-between text-green-600 dark:text-green-400"},Po={class:"flex justify-between font-semibold"},Uo={key:1,class:"space-y-2 text-sm"},Wo={key:0,class:"flex justify-between"},Ho={class:"text-muted-foreground flex items-center gap-1.5"},Ko={class:"text-green-600 dark:text-green-400"},Go={key:1,class:"flex justify-between"},Yo={class:"text-muted-foreground flex items-center gap-1.5"},Qo={class:"text-orange-600 dark:text-orange-400 font-medium"},Jo=e.defineComponent({__name:"ReservationDetailDialog",props:{agendaData:{}},emits:["cancelled","confirmed","rejected"],setup(n,{expose:t,emit:o}){const s=n,{hasPermission:a}=R.useModulePermissions(),{config:c}=R.useModule(),l=R.useFirebaseIntegration(c.project),d=e.inject("event",e.ref(null)),u=e.computed(()=>s.agendaData?.metadataSchema||[]),f=o,r=e.ref(!1),i=e.ref(null),h=e.ref(!1),m=e.useTemplateRef("cancelReservationDialog"),p=e.useTemplateRef("approveReservationDialog"),v=e.useTemplateRef("rejectReservationDialog"),_=e.useTemplateRef("transferReservationDialog"),w=y=>{i.value=y,r.value=!0},S=e.computed(()=>i.value?.customerInfo&&`${i.value.customerInfo.firstName} ${i.value.customerInfo.lastName}`.trim()||"Unknown Customer"),k=e.computed(()=>{let y=i.value?.status;const g=i.value?.reservationStatus;switch(y==="confirmed"&&["needs_approval","rejected","approved","cancelled"].includes(g)&&(y=g),y){case"pending":return{label:"Pending",class:"bg-yellow-100 text-yellow-800 dark:bg-yellow-900/30 dark:text-yellow-400"};case"cancelled":return{label:"Cancelled",class:"bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-400"};case"needs_approval":return{label:"Needs Approval",class:"bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-400"};case"rejected":return{label:"Rejected",class:"bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-400"};case"approved":return{label:"Approved",class:"bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-400"};case"confirmed":return{label:"Confirmed",class:"bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-400"};default:return{label:y||"Unknown",class:"bg-muted text-muted-foreground"}}}),b=e.computed(()=>i.value?.status==="cancelled"),V=y=>y==null||typeof y!="number"?"—":`€${y?.toFixed(2)}`,T=y=>{if(!y)return"—";if(y<60)return`${y} min`;const g=Math.floor(y/60),B=y%60;return B>0?`${g}h ${B}min`:`${g}h`},I=()=>{if(!i.value)return;let y="";const g=d?.value?.date;if(g)try{y=new Date(g).toLocaleDateString("en-US",{weekday:"long",year:"numeric",month:"long",day:"numeric"})}catch{y=g}const B={date:y,resourceName:d?.value?.resource?.name};Ft(i.value,B)},N=()=>{p.value?.openDialog(i.value)},E=()=>{v.value?.openDialog(i.value)},C=()=>{p.value?.openDialog(i.value)},A=()=>{m.value?.openDialog(i.value)},H=async()=>{try{if(h.value||!i.value?.id)throw new Error("Invalid state");h.value=!0;let g=(await l.get(c.reservationsCollection,i.value.id))?.reservations||[];if(!g.find(B=>B.id===i.value.res_id))throw new Error("Reservation not found");g.find(B=>B.id===i.value.res_id).status="cancelled",await l.update(c.reservationsCollection,i.value.id,{reservations:g}),i.value.status="cancelled",W.toast.success("Reservation cancelled successfully"),f("cancelled"),r.value=!1}catch(y){console.error("Error cancelling reservation:",y),W.toast.error("Failed to cancel reservation")}finally{h.value=!1}},j=async()=>{try{if(h.value||!i.value?.id)throw new Error("Invalid state");h.value=!0;let g=(await l.get(c.reservationsCollection,i.value.id))?.reservations||[];if(!g.find(B=>B.id===i.value.res_id))throw new Error("Reservation not found");g.find(B=>B.id===i.value.res_id).status="approved",await l.update(c.reservationsCollection,i.value.id,{reservations:g}),i.value.status="approved",W.toast.success("Reservation approved successfully"),f("confirmed"),r.value=!1}catch(y){console.error("Error approving reservation:",y),W.toast.error("Failed to approve reservation")}finally{h.value=!1}},he=async()=>{try{if(h.value||!i.value?.id)throw new Error("Invalid state");h.value=!0;let g=(await l.get(c.reservationsCollection,i.value.id))?.reservations||[];if(!g.find(B=>B.id===i.value.res_id))throw new Error("Reservation not found");g.find(B=>B.id===i.value.res_id).status="rejected",await l.update(c.reservationsCollection,i.value.id,{reservations:g}),i.value.status="rejected",W.toast.success("Reservation rejected successfully"),f("rejected"),r.value=!1}catch(y){console.error("Error rejecting reservation:",y),W.toast.error("Failed to reject reservation")}finally{h.value=!1}},$=()=>{};return t({openDialog:w}),(y,g)=>{const B=e.resolveComponent("DialogTitle"),Z=e.resolveComponent("DialogDescription"),Fe=e.resolveComponent("DialogHeader"),ge=e.resolveComponent("Separator"),q=e.resolveComponent("Button"),$e=e.resolveComponent("DropdownMenuTrigger"),ee=e.resolveComponent("DropdownMenuLabel"),G=e.resolveComponent("DropdownMenuItem"),te=e.resolveComponent("DropdownMenuGroup"),ve=e.resolveComponent("DropdownMenuSeparator"),Ie=e.resolveComponent("DropdownMenuContent"),Te=e.resolveComponent("DropdownMenu"),Re=e.resolveComponent("DialogFooter"),je=e.resolveComponent("DialogScrollContent"),ze=e.resolveComponent("Dialog");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(ze,{open:r.value,"onUpdate:open":g[0]||(g[0]=Oe=>r.value=Oe)},{default:e.withCtx(()=>[e.createVNode(je,{class:"sm:max-w-xl"},{default:e.withCtx(()=>[e.createVNode(Fe,null,{default:e.withCtx(()=>[e.createVNode(B,{class:"flex items-center gap-3"},{default:e.withCtx(()=>[g[1]||(g[1]=e.createElementVNode("span",null,"Reservation Details",-1)),e.createElementVNode("span",{class:e.normalizeClass(["px-2.5 py-1 text-xs font-medium rounded-full",k.value.class])},e.toDisplayString(k.value.label),3)]),_:1}),e.createVNode(Z,null,{default:e.withCtx(()=>[e.createTextVNode(" Booking #"+e.toDisplayString(i.value?.id?.slice(0,8)||"—"),1)]),_:1})]),_:1}),i.value?(e.openBlock(),e.createElementBlock("div",io,[e.createVNode(ue,{metadata:i.value.metadata,schema:u.value,scope:"order"},null,8,["metadata","schema"]),e.createVNode(ue,{metadata:i.value.reservationMetadata,schema:u.value,scope:"reservation"},null,8,["metadata","schema"]),e.createElementVNode("div",lo,[g[2]||(g[2]=e.createElementVNode("h3",{class:"text-sm font-semibold text-muted-foreground uppercase tracking-wide"},"Customer",-1)),e.createElementVNode("div",co,[e.createElementVNode("div",uo,[e.createElementVNode("div",mo,[e.createVNode(e.unref(D.User),{size:20,class:"text-primary"})]),e.createElementVNode("div",null,[e.createElementVNode("p",po,e.toDisplayString(S.value),1)])]),e.createElementVNode("div",fo,[i.value.customerInfo?.email?(e.openBlock(),e.createElementBlock("div",ho,[e.createVNode(e.unref(D.Mail),{size:14}),e.createElementVNode("a",{href:`mailto:${i.value.customerInfo.email}`,class:"hover:text-foreground transition-colors"},e.toDisplayString(i.value.customerInfo.email),9,go)])):e.createCommentVNode("",!0),i.value.customerInfo?.phone?(e.openBlock(),e.createElementBlock("div",vo,[e.createVNode(e.unref(D.Phone),{size:14}),e.createElementVNode("a",{href:`tel:${i.value.customerInfo.phone}`,class:"hover:text-foreground transition-colors"},e.toDisplayString(i.value.customerInfo.phone),9,xo)])):e.createCommentVNode("",!0)])])]),e.createElementVNode("div",Co,[g[4]||(g[4]=e.createElementVNode("h3",{class:"text-sm font-semibold text-muted-foreground uppercase tracking-wide"},"Reservation",-1)),e.createElementVNode("div",yo,[e.createElementVNode("div",_o,[e.createElementVNode("div",ko,[e.createVNode(e.unref(D.Clock),{size:14}),e.createElementVNode("span",Do,e.toDisplayString(i.value.startTime)+" - "+e.toDisplayString(i.value.endTime),1)]),e.createElementVNode("p",No,e.toDisplayString(new Date(i.value.date).toLocaleDateString("en-US",{weekday:"long",month:"long",day:"numeric",year:"numeric"})),1)]),e.createElementVNode("div",bo,[e.createElementVNode("div",Vo,[e.createVNode(e.unref(D.Users),{size:14}),g[3]||(g[3]=e.createElementVNode("span",{class:"text-xs"},"Spots",-1))]),e.createElementVNode("p",wo,e.toDisplayString(i.value.spots||1)+" "+e.toDisplayString(i.value.spots===1?"person":"people"),1)])])]),i.value.pricingOption?(e.openBlock(),e.createElementBlock("div",Eo,[g[5]||(g[5]=e.createElementVNode("h3",{class:"text-sm font-semibold text-muted-foreground uppercase tracking-wide"},"Package",-1)),e.createElementVNode("div",Ao,[e.createElementVNode("div",Bo,[e.createElementVNode("div",So,[e.createElementVNode("div",Mo,[e.createVNode(e.unref(D.Tag),{size:18,class:"text-primary"})]),e.createElementVNode("div",null,[e.createElementVNode("p",Fo,e.toDisplayString(i.value.pricingOption.name),1),e.createElementVNode("p",$o,e.toDisplayString(T(i.value.pricingOption.duration)),1)])]),e.createElementVNode("p",Io,e.toDisplayString(V(i.value.pricingOption.price)),1)])])])):e.createCommentVNode("",!0),e.createElementVNode("div",To,[g[12]||(g[12]=e.createElementVNode("h3",{class:"text-sm font-semibold text-muted-foreground uppercase tracking-wide"},"Payment",-1)),e.createElementVNode("div",Ro,[e.createElementVNode("div",jo,[e.createElementVNode("div",zo,[g[6]||(g[6]=e.createElementVNode("span",{class:"text-muted-foreground"},"Base price",-1)),e.createElementVNode("span",null,e.toDisplayString(V(i.value.reservationBasePrice)),1)]),i.value.reservationAddOnsPrice?(e.openBlock(),e.createElementBlock("div",Oo,[g[7]||(g[7]=e.createElementVNode("span",{class:"text-muted-foreground"},"Add-ons",-1)),e.createElementVNode("span",null,e.toDisplayString(V(i.value.reservationAddOnsPrice)),1)])):e.createCommentVNode("",!0),i.value.discount?(e.openBlock(),e.createElementBlock("div",Lo,[g[8]||(g[8]=e.createElementVNode("span",null,"Discount",-1)),e.createElementVNode("span",null,"-"+e.toDisplayString(V(i.value.discount)),1)])):e.createCommentVNode("",!0)]),e.createVNode(ge),e.createElementVNode("div",Po,[g[9]||(g[9]=e.createElementVNode("span",null,"Reservation Total",-1)),e.createElementVNode("span",null,e.toDisplayString(V(i.value.reservationPrice)),1)]),i.value.amountPaid!==void 0||i.value.amountDue!==void 0?(e.openBlock(),e.createBlock(ge,{key:0})):e.createCommentVNode("",!0),i.value.amountPaid!==void 0||i.value.amountDue!==void 0?(e.openBlock(),e.createElementBlock("div",Uo,[i.value.amountPaid!==void 0?(e.openBlock(),e.createElementBlock("div",Wo,[e.createElementVNode("span",Ho,[e.createVNode(e.unref(D.CreditCard),{size:14}),g[10]||(g[10]=e.createTextVNode(" Amount paid ",-1))]),e.createElementVNode("span",Ko,e.toDisplayString(V(i.value.amountPaid)),1)])):e.createCommentVNode("",!0),i.value.amountDue!==void 0&&i.value.amountDue>0?(e.openBlock(),e.createElementBlock("div",Go,[e.createElementVNode("span",Yo,[e.createVNode(e.unref(D.Receipt),{size:14}),g[11]||(g[11]=e.createTextVNode(" Amount due ",-1))]),e.createElementVNode("span",Qo,e.toDisplayString(V(i.value.amountDue)),1)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])])])):e.createCommentVNode("",!0),e.createVNode(Re,{class:"gap-2 sm:justify-between"},{default:e.withCtx(()=>[i.value.status==="confirmed"&&i.value.reservationStatus==="needs_approval"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(q,{variant:"destructive",onClick:E},{default:e.withCtx(()=>[e.createVNode(e.unref(D.Ban),{size:16}),g[13]||(g[13]=e.createTextVNode(" Reject Reservation ",-1))]),_:1}),e.createVNode(q,{onClick:N},{default:e.withCtx(()=>[e.createVNode(e.unref(D.ClockCheck),{size:16}),g[14]||(g[14]=e.createTextVNode(" Approve Reservation ",-1))]),_:1})],64)):i.value.status==="confirmed"&&i.value.reservationStatus==="approved"?(e.openBlock(),e.createBlock(Te,{key:1},{default:e.withCtx(()=>[e.createVNode($e,{"as-child":""},{default:e.withCtx(()=>[e.createVNode(q,{variant:"outline",class:"gap-2"},{default:e.withCtx(()=>[e.createVNode(e.unref(D.MoreHorizontal),{size:16}),g[15]||(g[15]=e.createTextVNode(" Actions ",-1))]),_:1})]),_:1}),e.createVNode(Ie,{class:"w-60",align:"start"},{default:e.withCtx(()=>[e.createVNode(ee,{class:"text-xs text-muted-foreground font-normal"},{default:e.withCtx(()=>[...g[16]||(g[16]=[e.createTextVNode(" Reservation Actions ",-1)])]),_:1}),e.createVNode(te,null,{default:e.withCtx(()=>[e.createVNode(G,{onClick:I,class:"gap-2 cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(e.unref(D.Download),{size:16,class:"text-muted-foreground"}),g[17]||(g[17]=e.createElementVNode("span",null,"Download PDF",-1))]),_:1})]),_:1}),e.createVNode(ve),e.createVNode(te,null,{default:e.withCtx(()=>[e.createVNode(ee,{class:"text-xs text-muted-foreground font-normal"},{default:e.withCtx(()=>[...g[18]||(g[18]=[e.createTextVNode(" Communication ",-1)])]),_:1}),e.createVNode(G,{onClick:C,class:"gap-2 cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(e.unref(D.MailCheck),{size:16,class:"text-muted-foreground"}),g[19]||(g[19]=e.createElementVNode("span",null,"(Re)send Confirmation Mail",-1))]),_:1})]),_:1}),e.unref(a)("manage-reservations")?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(ve),e.createVNode(te,null,{default:e.withCtx(()=>[e.createVNode(ee,{class:"text-xs text-muted-foreground font-normal"},{default:e.withCtx(()=>[...g[20]||(g[20]=[e.createTextVNode(" Cancellation ",-1)])]),_:1}),e.createVNode(G,{onClick:A,class:"gap-2 cursor-pointer",variant:"destructive",disabled:b.value},{default:e.withCtx(()=>[e.createVNode(e.unref(D.XCircle),{size:16}),g[21]||(g[21]=e.createElementVNode("span",null,"Cancel Reservation",-1))]),_:1},8,["disabled"]),i.value?.reservationPrice&&i.value.reservationPrice>0?(e.openBlock(),e.createBlock(G,{key:0,onClick:$,class:"gap-2 cursor-pointer text-orange-600 dark:text-orange-400 focus:text-orange-600 dark:focus:text-orange-400",disabled:b.value},{default:e.withCtx(()=>[e.createVNode(e.unref(D.Gift),{class:"text-inherit",size:16}),g[22]||(g[22]=e.createElementVNode("span",null,"Cancel & Send Coupon",-1))]),_:1},8,["disabled"])):e.createCommentVNode("",!0)]),_:1})],64)):e.createCommentVNode("",!0)]),_:1})]),_:1})):e.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1},8,["open"]),e.createVNode(jt,{ref_key:"cancelReservationDialog",ref:m,onConfirm:H},null,512),e.createVNode(Wt,{ref_key:"approveReservationDialog",ref:p,onConfirm:j},null,512),e.createVNode(Qt,{ref_key:"rejectReservationDialog",ref:v,onConfirm:he},null,512),e.createVNode(zt,{ref_key:"transferReservationDialog",ref:_},null,512)],64)}}});exports.Fuse=L;exports._sfc_main=ue;exports._sfc_main$1=Jo;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),c=require("lucide-vue-next"),M={class:"w-full"},R={key:0,class:"flex items-center gap-2 py-3"},U={key:1,class:"text-xs text-destructive py-2"},j={key:2,class:"rounded-xl border bg-background p-4 text-center space-y-2"},q={key:3,class:"rounded-xl border bg-background overflow-hidden"},G={class:"px-3 py-2 border-b bg-muted/40 flex items-center justify-between"},I={class:"flex items-center gap-2"},Q={class:"text-xs font-medium"},K={class:"text-[10px] text-muted-foreground"},O={class:"divide-y"},H={class:"flex items-center gap-2 mb-1.5"},J={class:"text-[10px] font-medium text-muted-foreground w-5 text-right shrink-0"},W={class:"text-xs font-medium truncate flex-1"},X={class:"ml-7 space-y-1.5"},Y={class:"h-1.5 rounded-full bg-muted overflow-hidden"},Z={key:0,class:"flex items-center gap-3 text-[10px] text-muted-foreground"},ee={class:"flex items-center gap-1"},te={class:"flex items-center gap-1"},se={class:"flex items-center gap-1"},oe={class:"flex items-center gap-1"},ne={key:1,class:"flex items-center gap-3 text-[10px] text-muted-foreground"},re={class:"flex items-center gap-1"},ae={class:"flex items-center gap-1"},ce={class:"flex items-center gap-1"},le={class:"px-3 py-2 border-t bg-muted/20 flex items-center justify-between"},ie={class:"text-[10px] text-muted-foreground"},de=e.defineComponent({__name:"SearchTermsCard",props:{toolName:{},instanceId:{},instanceName:{},moduleType:{},resolvedArgs:{},status:{}},emits:["submit"],setup(x,{emit:N}){const{$useRoute:V,$useModuleApi:k}=useNuxtApp(),i=x,S=N,b=V(),E=e.computed(()=>b.params.slug),T=k(i.instanceId),m=e.ref(!0),d=e.ref(null),o=e.ref([]),_=e.ref(0),g=e.ref(null),u=e.ref("google_ads"),D=t=>t.label||t.query||t.sessionGoogleAdsQuery||t.landingPagePlusQueryString||"—";function B(){const t=i.resolvedArgs?._cachedData;return t?(u.value=t.source||"google_ads",t.source==="search_console"?o.value=(t.searchTerms||[]).map(s=>({label:s.term,clicks:s.clicks,impressions:s.impressions,ctr:s.ctr,position:s.position})):o.value=(t.searchTerms||[]).map(s=>({label:s.term,sessions:s.sessions,totalUsers:s.users,engagementRate:parseFloat(s.engagementRate)/100})),_.value=t.count||o.value.length,g.value=i.resolvedArgs._fetchedAt||null,m.value=!1,!0):!1}async function $(){const{startDate:t,endDate:s}=i.resolvedArgs||{};m.value=!0,d.value=null;try{const a=new URLSearchParams;t&&a.set("startDate",t),s&&a.set("endDate",s);const n=await T.get(`/content/search-terms?${a.toString()}`),l=n.source||"google_ads";if(u.value=l,l==="search_console")o.value=(n.rows||[]).map(r=>({...r,label:r.query}));else{const r=l==="organic_landing_pages"?"landingPagePlusQueryString":"sessionGoogleAdsQuery";o.value=(n.rows||[]).map(f=>({...f,label:f[r]}))}_.value=n.rowCount||o.value.length,g.value=new Date().toISOString();const F=()=>{if(o.value.length===0)return"No search data found for this period.";const r=o.value.slice(0,5).map(f=>f.label).join(", ");return l==="search_console"?`Found ${o.value.length} search queries from Google Search Console. The top keywords are: ${r}.`:l==="organic_landing_pages"?`Found ${o.value.length} pages receiving organic search traffic. The top organic landing pages are: ${r}.`:`Found ${o.value.length} search terms. The top keywords driving traffic are: ${r}.`},P=o.value.map(r=>l==="search_console"?{term:r.label,clicks:r.clicks,impressions:r.impressions,ctr:r.ctr,position:r.position}:{term:r.label,sessions:r.sessions,users:r.totalUsers,engagementRate:`${(r.engagementRate*100).toFixed(1)}%`});v({count:o.value.length,source:l,searchTerms:P,suggestion:F()})}catch(a){d.value=a?.data?.statusMessage||a?.message||"Failed to load search data",v(`Error loading search data: ${d.value}`)}finally{m.value=!1}}e.onMounted(()=>{i.status==="completed"&&B()||$()});function v(t){i.status!=="completed"&&S("submit",t)}const p=t=>t==null?"0":Math.round(t).toLocaleString(),y=t=>t==null?"0%":`${(t*100).toFixed(1)}%`,w=t=>t==null?"—":t.toFixed(1),C=t=>t?new Date(t).toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}):"",h=e.computed(()=>u.value==="search_console"),L=e.computed(()=>o.value.length===0?1:h.value?Math.max(...o.value.map(t=>t.clicks||0)):Math.max(...o.value.map(t=>t.sessions||0))),A=e.computed(()=>u.value==="search_console"?"Search Keywords (Search Console)":u.value==="organic_landing_pages"?"Top Organic Landing Pages":"Search Terms & Keywords"),z=e.computed(()=>{const{startDate:t,endDate:s}=i.resolvedArgs||{};if(!t&&!s)return"Last 30 days";const a=t||"30daysAgo",n=a.match(/^(\d+)daysAgo$/);return n?`Last ${n[1]} days`:`${a} → ${s||"today"}`});return(t,s)=>{const a=e.resolveComponent("NuxtLink");return e.openBlock(),e.createElementBlock("div",M,[e.unref(m)?(e.openBlock(),e.createElementBlock("div",R,[e.createVNode(e.unref(c.Loader2),{class:"size-4 animate-spin text-muted-foreground"}),s[0]||(s[0]=e.createElementVNode("span",{class:"text-xs text-muted-foreground"},"Loading search data…",-1))])):e.unref(d)?(e.openBlock(),e.createElementBlock("div",U,e.toDisplayString(e.unref(d)),1)):e.unref(o).length===0?(e.openBlock(),e.createElementBlock("div",j,[e.createVNode(e.unref(c.Search),{class:"size-8 text-muted-foreground mx-auto"}),s[1]||(s[1]=e.createElementVNode("p",{class:"text-sm text-muted-foreground"},"No search data found for this period.",-1))])):(e.openBlock(),e.createElementBlock("div",q,[e.createElementVNode("div",G,[e.createElementVNode("div",I,[e.createVNode(e.unref(c.Search),{class:"size-3.5 text-primary"}),e.createElementVNode("span",Q,e.toDisplayString(e.unref(A)),1)]),e.createElementVNode("span",K,e.toDisplayString(e.unref(z)),1)]),e.createElementVNode("div",O,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o),(n,l)=>(e.openBlock(),e.createElementBlock("div",{key:l,class:"px-3 py-2.5 hover:bg-muted/30 transition-colors"},[e.createElementVNode("div",H,[e.createElementVNode("span",J,e.toDisplayString(l+1)+".",1),e.createElementVNode("span",W,e.toDisplayString(D(n)),1)]),e.createElementVNode("div",X,[e.createElementVNode("div",Y,[e.createElementVNode("div",{class:"h-full rounded-full bg-amber-500/70 transition-all",style:e.normalizeStyle({width:`${((e.unref(h)?n.clicks:n.sessions)||0)/e.unref(L)*100}%`})},null,4)]),e.unref(h)?(e.openBlock(),e.createElementBlock("div",Z,[e.createElementVNode("span",ee,[e.createVNode(e.unref(c.MousePointerClick),{class:"size-2.5"}),e.createTextVNode(" "+e.toDisplayString(p(n.clicks))+" clicks ",1)]),e.createElementVNode("span",te,[e.createVNode(e.unref(c.Eye),{class:"size-2.5"}),e.createTextVNode(" "+e.toDisplayString(p(n.impressions))+" impr. ",1)]),e.createElementVNode("span",se,[e.createVNode(e.unref(c.TrendingUp),{class:"size-2.5"}),e.createTextVNode(" "+e.toDisplayString(y(n.ctr))+" CTR ",1)]),e.createElementVNode("span",oe,[e.createVNode(e.unref(c.Hash),{class:"size-2.5"}),e.createTextVNode(" pos "+e.toDisplayString(w(n.position)),1)])])):(e.openBlock(),e.createElementBlock("div",ne,[e.createElementVNode("span",re,[e.createVNode(e.unref(c.MousePointerClick),{class:"size-2.5"}),e.createTextVNode(" "+e.toDisplayString(p(n.sessions))+" sessions ",1)]),e.createElementVNode("span",ae,[e.createVNode(e.unref(c.Users),{class:"size-2.5"}),e.createTextVNode(" "+e.toDisplayString(p(n.totalUsers))+" users ",1)]),e.createElementVNode("span",ce,[e.createVNode(e.unref(c.TrendingUp),{class:"size-2.5"}),e.createTextVNode(" "+e.toDisplayString(y(n.engagementRate))+" engaged ",1)])]))])]))),128))]),e.createElementVNode("div",le,[e.createElementVNode("span",ie,[e.createTextVNode(e.toDisplayString(e.unref(o).length)+" result"+e.toDisplayString(e.unref(o).length===1?"":"s")+" ",1),e.unref(g)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(" · fetched "+e.toDisplayString(C(e.unref(g))),1)],64)):e.createCommentVNode("",!0)]),e.createVNode(a,{to:`/projects/${e.unref(E)}/modules/${x.instanceId}`,class:"inline-flex items-center gap-1.5 text-xs text-primary hover:underline"},{default:e.withCtx(()=>[e.createVNode(e.unref(c.ExternalLink),{class:"size-3"}),s[2]||(s[2]=e.createTextVNode(" View full report ",-1))]),_:1},8,["to"])])]))])}}});exports.default=de;
|