@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,811 +0,0 @@
|
|
|
1
|
-
import { defineComponent as ce, ref as S, reactive as xe, computed as O, resolveComponent as a, openBlock as m, createBlock as C, withCtx as n, createVNode as t, createTextVNode as r, toDisplayString as v, createElementVNode as o, createElementBlock as f, Fragment as E, renderList as Y, normalizeStyle as ie, normalizeClass as me, unref as g, createCommentVNode as w } from "vue";
|
|
2
|
-
import { _ as be } from "./EditLayout.vue_vue_type_script_setup_true_lang-DWMqQvHl.mjs";
|
|
3
|
-
import { Clock as _e, MoreHorizontal as we, Trash2 as pe, Plus as de, Pencil as ye, Copy as ke, Users as ue, CircleAlert as Ce } from "lucide-vue-next";
|
|
4
|
-
import { useModuleRoute as De, useConfirmation as Ve, useModule as he, useFirebaseIntegration as Se } from "@oneclick.dev/cms-kit";
|
|
5
|
-
import { u as Re } from "./index-MYWjg0zi.mjs";
|
|
6
|
-
const Ae = { class: "space-y-5 py-4" }, Me = { class: "flex flex-wrap gap-2 mt-2" }, ze = ["onClick"], Le = { class: "space-y-2" }, $e = { class: "flex items-center justify-between mb-2" }, Ee = { class: "text-sm font-medium" }, Ie = { class: "flex items-center gap-1" }, Ue = { class: "space-y-2" }, Ne = {
|
|
7
|
-
key: 0,
|
|
8
|
-
class: "text-sm text-muted-foreground italic py-1"
|
|
9
|
-
}, Te = { class: "flex items-center justify-between rounded-lg border p-4" }, He = { class: "space-y-0.5" }, Fe = { class: "text-xs text-muted-foreground" }, Be = { class: "w-full flex justify-between items-center gap-4 flex-col @sm/dialog-footer:flex-row" }, je = { class: "flex items-center gap-2 ml-auto w-full @sm/dialog-footer:w-auto flex-col-reverse @sm/dialog-footer:flex-row" }, Oe = /* @__PURE__ */ ce({
|
|
10
|
-
__name: "ResourceEditorDialog",
|
|
11
|
-
emits: ["add-resource", "update-resource", "remove-resource"],
|
|
12
|
-
setup(fe, { expose: J, emit: I }) {
|
|
13
|
-
const M = I, x = S(!1), y = S("add"), p = ["#ef4444", "#f97316", "#f59e0b", "#eab308", "#84cc16", "#22c55e", "#10b981", "#14b8a6", "#06b6d4", "#0ea5e9", "#3b82f6", "#6366f1", "#8b5cf6", "#a855f7", "#d946ef", "#ec4899", "#f43f5e"], R = [
|
|
14
|
-
{ value: 1, label: "Monday" },
|
|
15
|
-
{ value: 2, label: "Tuesday" },
|
|
16
|
-
{ value: 3, label: "Wednesday" },
|
|
17
|
-
{ value: 4, label: "Thursday" },
|
|
18
|
-
{ value: 5, label: "Friday" },
|
|
19
|
-
{ value: 6, label: "Saturday" },
|
|
20
|
-
{ value: 0, label: "Sunday" }
|
|
21
|
-
], s = xe({
|
|
22
|
-
id: "",
|
|
23
|
-
name: "",
|
|
24
|
-
publicLabel: "",
|
|
25
|
-
avatarLabel: "",
|
|
26
|
-
description: "",
|
|
27
|
-
capacity: 1,
|
|
28
|
-
interval: 30,
|
|
29
|
-
openingHours: {
|
|
30
|
-
0: [],
|
|
31
|
-
// Sunday
|
|
32
|
-
1: [{ start: "09:00", end: "17:00" }],
|
|
33
|
-
// Monday
|
|
34
|
-
2: [{ start: "09:00", end: "17:00" }],
|
|
35
|
-
// Tuesday
|
|
36
|
-
3: [{ start: "09:00", end: "17:00" }],
|
|
37
|
-
// Wednesday
|
|
38
|
-
4: [{ start: "09:00", end: "17:00" }],
|
|
39
|
-
// Thursday
|
|
40
|
-
5: [{ start: "09:00", end: "17:00" }],
|
|
41
|
-
// Friday
|
|
42
|
-
6: []
|
|
43
|
-
// Saturday
|
|
44
|
-
},
|
|
45
|
-
color: "blue",
|
|
46
|
-
isActive: !0
|
|
47
|
-
}), z = (c) => {
|
|
48
|
-
y.value = c ? "edit" : "add", s.id = c?.id || "", s.name = c?.name || "", s.publicLabel = c?.publicLabel || "", s.avatarLabel = c?.avatarLabel || "", s.description = c?.description || "", s.capacity = c?.capacity || 1, s.interval = c?.interval || 30, s.openingHours = c?.openingHours || {
|
|
49
|
-
0: [],
|
|
50
|
-
1: [{ start: "09:00", end: "17:00" }],
|
|
51
|
-
2: [{ start: "09:00", end: "17:00" }],
|
|
52
|
-
3: [{ start: "09:00", end: "17:00" }],
|
|
53
|
-
4: [{ start: "09:00", end: "17:00" }],
|
|
54
|
-
5: [{ start: "09:00", end: "17:00" }],
|
|
55
|
-
6: []
|
|
56
|
-
}, s.color = c?.color || "blue", s.isActive = c?.isActive !== void 0 ? c.isActive : !0, x.value = !0;
|
|
57
|
-
}, A = () => {
|
|
58
|
-
x.value = !1;
|
|
59
|
-
}, U = () => {
|
|
60
|
-
M("add-resource", { ...s }), x.value = !1;
|
|
61
|
-
}, q = () => {
|
|
62
|
-
M("update-resource", { ...s }), x.value = !1;
|
|
63
|
-
}, D = () => {
|
|
64
|
-
M("remove-resource", s.id), x.value = !1;
|
|
65
|
-
}, N = O(() => s.name.trim().length > 0), P = (c) => {
|
|
66
|
-
s.openingHours[c] || (s.openingHours[c] = []), s.openingHours[c].push({ start: "09:00", end: "17:00" });
|
|
67
|
-
}, T = (c, e) => {
|
|
68
|
-
s.openingHours[c].splice(e, 1);
|
|
69
|
-
}, W = (c) => {
|
|
70
|
-
const e = s.openingHours[c];
|
|
71
|
-
R.forEach((V) => {
|
|
72
|
-
s.openingHours[V.value] = JSON.parse(JSON.stringify(e));
|
|
73
|
-
});
|
|
74
|
-
}, Q = (c) => {
|
|
75
|
-
s.openingHours[c] = [];
|
|
76
|
-
};
|
|
77
|
-
return J({
|
|
78
|
-
openDialog: z
|
|
79
|
-
}), (c, e) => {
|
|
80
|
-
const V = a("DialogTitle"), G = a("DialogDescription"), H = a("DialogHeader"), i = a("Label"), l = a("Input"), b = a("NumberFieldDecrement"), K = a("NumberFieldInput"), X = a("NumberFieldIncrement"), L = a("NumberFieldContent"), Z = a("NumberField"), ee = a("SelectValue"), te = a("SelectTrigger"), h = a("SelectItem"), oe = a("SelectContent"), F = a("Select"), _ = a("Button"), ne = a("DropdownMenuTrigger"), B = a("DropdownMenuItem"), le = a("DropdownMenuContent"), se = a("DropdownMenu"), ae = a("Textarea"), u = a("Switch"), $ = a("DialogFooter"), ve = a("DialogScrollContent"), ge = a("Dialog");
|
|
81
|
-
return m(), C(ge, {
|
|
82
|
-
open: x.value,
|
|
83
|
-
"onUpdate:open": e[7] || (e[7] = (d) => x.value = d)
|
|
84
|
-
}, {
|
|
85
|
-
default: n(() => [
|
|
86
|
-
t(ve, { class: "sm:max-w-xl lg:max-w-2xl" }, {
|
|
87
|
-
default: n(() => [
|
|
88
|
-
t(H, null, {
|
|
89
|
-
default: n(() => [
|
|
90
|
-
t(V, null, {
|
|
91
|
-
default: n(() => [
|
|
92
|
-
r(v(y.value === "add" ? "Add New Resource" : "Edit Resource"), 1)
|
|
93
|
-
]),
|
|
94
|
-
_: 1
|
|
95
|
-
}),
|
|
96
|
-
t(G, null, {
|
|
97
|
-
default: n(() => [
|
|
98
|
-
r(v(y.value === "add" ? "Define a new bookable resource such as staff member, room, or equipment." : "Update the details of this resource."), 1)
|
|
99
|
-
]),
|
|
100
|
-
_: 1
|
|
101
|
-
})
|
|
102
|
-
]),
|
|
103
|
-
_: 1
|
|
104
|
-
}),
|
|
105
|
-
o("div", Ae, [
|
|
106
|
-
o("div", null, [
|
|
107
|
-
t(i, {
|
|
108
|
-
class: "text-sm font-normal mb-1.5",
|
|
109
|
-
for: "resource-name"
|
|
110
|
-
}, {
|
|
111
|
-
default: n(() => [...e[8] || (e[8] = [
|
|
112
|
-
r(" Resource Name ", -1),
|
|
113
|
-
o("span", { class: "text-destructive" }, "*", -1)
|
|
114
|
-
])]),
|
|
115
|
-
_: 1
|
|
116
|
-
}),
|
|
117
|
-
t(l, {
|
|
118
|
-
modelValue: s.name,
|
|
119
|
-
"onUpdate:modelValue": e[0] || (e[0] = (d) => s.name = d),
|
|
120
|
-
id: "resource-name",
|
|
121
|
-
placeholder: "e.g., James, Box 1, Meeting Room A"
|
|
122
|
-
}, null, 8, ["modelValue"]),
|
|
123
|
-
e[9] || (e[9] = o("p", { class: "text-xs text-muted-foreground mt-1" }, " Internal name visible to your team. ", -1))
|
|
124
|
-
]),
|
|
125
|
-
o("div", null, [
|
|
126
|
-
t(i, {
|
|
127
|
-
class: "text-sm font-normal mb-1.5",
|
|
128
|
-
for: "resource-public-label"
|
|
129
|
-
}, {
|
|
130
|
-
default: n(() => [...e[10] || (e[10] = [
|
|
131
|
-
r(" Public Label ", -1)
|
|
132
|
-
])]),
|
|
133
|
-
_: 1
|
|
134
|
-
}),
|
|
135
|
-
t(l, {
|
|
136
|
-
modelValue: s.publicLabel,
|
|
137
|
-
"onUpdate:modelValue": e[1] || (e[1] = (d) => s.publicLabel = d),
|
|
138
|
-
id: "resource-public-label",
|
|
139
|
-
placeholder: "Name shown to customers"
|
|
140
|
-
}, null, 8, ["modelValue"]),
|
|
141
|
-
e[11] || (e[11] = o("p", { class: "text-xs text-muted-foreground mt-1" }, " If empty, the internal name will be displayed to customers. ", -1))
|
|
142
|
-
]),
|
|
143
|
-
o("div", null, [
|
|
144
|
-
t(i, {
|
|
145
|
-
class: "text-sm font-normal mb-1.5",
|
|
146
|
-
for: "resource-avatar-label"
|
|
147
|
-
}, {
|
|
148
|
-
default: n(() => [...e[12] || (e[12] = [
|
|
149
|
-
r(" Avatar Label ", -1)
|
|
150
|
-
])]),
|
|
151
|
-
_: 1
|
|
152
|
-
}),
|
|
153
|
-
t(l, {
|
|
154
|
-
modelValue: s.avatarLabel,
|
|
155
|
-
"onUpdate:modelValue": e[2] || (e[2] = (d) => s.avatarLabel = d),
|
|
156
|
-
id: "resource-avatar-label",
|
|
157
|
-
placeholder: "e.g., B1, 1, JD",
|
|
158
|
-
maxlength: "3"
|
|
159
|
-
}, null, 8, ["modelValue"]),
|
|
160
|
-
e[13] || (e[13] = o("p", { class: "text-xs text-muted-foreground mt-1" }, " Short text shown in the colored circle (max 3 characters). If empty, first letter of name is used. ", -1))
|
|
161
|
-
]),
|
|
162
|
-
o("div", null, [
|
|
163
|
-
t(i, { class: "text-sm font-normal mb-1.5" }, {
|
|
164
|
-
default: n(() => [...e[14] || (e[14] = [
|
|
165
|
-
r("Color", -1)
|
|
166
|
-
])]),
|
|
167
|
-
_: 1
|
|
168
|
-
}),
|
|
169
|
-
o("div", Me, [
|
|
170
|
-
(m(), f(E, null, Y(p, (d) => o("button", {
|
|
171
|
-
key: d,
|
|
172
|
-
type: "button",
|
|
173
|
-
class: me(["size-7 rounded-full transition-all ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2", [
|
|
174
|
-
s.color === d ? "ring-2 ring-ring ring-offset-2" : "hover:scale-110"
|
|
175
|
-
]]),
|
|
176
|
-
style: ie({ background: d }),
|
|
177
|
-
onClick: (k) => s.color = d
|
|
178
|
-
}, null, 14, ze)), 64))
|
|
179
|
-
]),
|
|
180
|
-
e[15] || (e[15] = o("p", { class: "text-xs text-muted-foreground mt-2" }, " Used for visual identification in the calendar. ", -1))
|
|
181
|
-
]),
|
|
182
|
-
o("div", null, [
|
|
183
|
-
t(i, {
|
|
184
|
-
class: "text-sm font-normal mb-1.5",
|
|
185
|
-
for: "resource-capacity"
|
|
186
|
-
}, {
|
|
187
|
-
default: n(() => [...e[16] || (e[16] = [
|
|
188
|
-
r(" Capacity ", -1)
|
|
189
|
-
])]),
|
|
190
|
-
_: 1
|
|
191
|
-
}),
|
|
192
|
-
t(Z, {
|
|
193
|
-
id: "resource-capacity",
|
|
194
|
-
modelValue: s.capacity,
|
|
195
|
-
"onUpdate:modelValue": e[3] || (e[3] = (d) => s.capacity = d),
|
|
196
|
-
min: 1,
|
|
197
|
-
max: 999
|
|
198
|
-
}, {
|
|
199
|
-
default: n(() => [
|
|
200
|
-
t(L, null, {
|
|
201
|
-
default: n(() => [
|
|
202
|
-
t(b),
|
|
203
|
-
t(K),
|
|
204
|
-
t(X)
|
|
205
|
-
]),
|
|
206
|
-
_: 1
|
|
207
|
-
})
|
|
208
|
-
]),
|
|
209
|
-
_: 1
|
|
210
|
-
}, 8, ["modelValue"]),
|
|
211
|
-
e[17] || (e[17] = o("p", { class: "text-xs text-muted-foreground mt-1" }, " Maximum simultaneous bookings allowed for this resource. ", -1))
|
|
212
|
-
]),
|
|
213
|
-
o("div", null, [
|
|
214
|
-
t(i, {
|
|
215
|
-
class: "text-sm font-normal mb-1.5",
|
|
216
|
-
for: "resource-interval"
|
|
217
|
-
}, {
|
|
218
|
-
default: n(() => [...e[18] || (e[18] = [
|
|
219
|
-
r(" Booking Interval ", -1)
|
|
220
|
-
])]),
|
|
221
|
-
_: 1
|
|
222
|
-
}),
|
|
223
|
-
t(F, {
|
|
224
|
-
modelValue: s.interval,
|
|
225
|
-
"onUpdate:modelValue": e[4] || (e[4] = (d) => s.interval = d),
|
|
226
|
-
modelModifiers: { number: !0 }
|
|
227
|
-
}, {
|
|
228
|
-
default: n(() => [
|
|
229
|
-
t(te, { id: "resource-interval" }, {
|
|
230
|
-
default: n(() => [
|
|
231
|
-
t(ee, { placeholder: "Select interval" })
|
|
232
|
-
]),
|
|
233
|
-
_: 1
|
|
234
|
-
}),
|
|
235
|
-
t(oe, null, {
|
|
236
|
-
default: n(() => [
|
|
237
|
-
t(h, { value: 5 }, {
|
|
238
|
-
default: n(() => [...e[19] || (e[19] = [
|
|
239
|
-
r("5 minutes", -1)
|
|
240
|
-
])]),
|
|
241
|
-
_: 1
|
|
242
|
-
}),
|
|
243
|
-
t(h, { value: 10 }, {
|
|
244
|
-
default: n(() => [...e[20] || (e[20] = [
|
|
245
|
-
r("10 minutes", -1)
|
|
246
|
-
])]),
|
|
247
|
-
_: 1
|
|
248
|
-
}),
|
|
249
|
-
t(h, { value: 15 }, {
|
|
250
|
-
default: n(() => [...e[21] || (e[21] = [
|
|
251
|
-
r("15 minutes", -1)
|
|
252
|
-
])]),
|
|
253
|
-
_: 1
|
|
254
|
-
}),
|
|
255
|
-
t(h, { value: 30 }, {
|
|
256
|
-
default: n(() => [...e[22] || (e[22] = [
|
|
257
|
-
r("30 minutes", -1)
|
|
258
|
-
])]),
|
|
259
|
-
_: 1
|
|
260
|
-
}),
|
|
261
|
-
t(h, { value: 60 }, {
|
|
262
|
-
default: n(() => [...e[23] || (e[23] = [
|
|
263
|
-
r("1 hour", -1)
|
|
264
|
-
])]),
|
|
265
|
-
_: 1
|
|
266
|
-
})
|
|
267
|
-
]),
|
|
268
|
-
_: 1
|
|
269
|
-
})
|
|
270
|
-
]),
|
|
271
|
-
_: 1
|
|
272
|
-
}, 8, ["modelValue"]),
|
|
273
|
-
e[24] || (e[24] = o("p", { class: "text-xs text-muted-foreground mt-1" }, " Time slots will be generated at this interval within operating hours. ", -1))
|
|
274
|
-
]),
|
|
275
|
-
o("div", null, [
|
|
276
|
-
t(i, { class: "text-sm font-normal mb-2 flex items-center gap-2" }, {
|
|
277
|
-
default: n(() => [
|
|
278
|
-
t(g(_e), { class: "w-4 h-4" }),
|
|
279
|
-
e[25] || (e[25] = r(" Operating Hours ", -1))
|
|
280
|
-
]),
|
|
281
|
-
_: 1
|
|
282
|
-
}),
|
|
283
|
-
o("div", Le, [
|
|
284
|
-
(m(), f(E, null, Y(R, (d) => o("div", {
|
|
285
|
-
key: d.value,
|
|
286
|
-
class: "rounded-md bg-muted/30 p-2 sm:p-3"
|
|
287
|
-
}, [
|
|
288
|
-
o("div", $e, [
|
|
289
|
-
o("span", Ee, v(d.label), 1),
|
|
290
|
-
o("div", Ie, [
|
|
291
|
-
t(_, {
|
|
292
|
-
variant: "outline",
|
|
293
|
-
size: "sm",
|
|
294
|
-
class: "h-7 px-2 text-xs",
|
|
295
|
-
onClick: (k) => P(d.value)
|
|
296
|
-
}, {
|
|
297
|
-
default: n(() => [...e[26] || (e[26] = [
|
|
298
|
-
r(" Add ", -1)
|
|
299
|
-
])]),
|
|
300
|
-
_: 1
|
|
301
|
-
}, 8, ["onClick"]),
|
|
302
|
-
t(se, null, {
|
|
303
|
-
default: n(() => [
|
|
304
|
-
t(ne, { "as-child": "" }, {
|
|
305
|
-
default: n(() => [
|
|
306
|
-
t(_, {
|
|
307
|
-
variant: "ghost",
|
|
308
|
-
size: "icon",
|
|
309
|
-
class: "size-7"
|
|
310
|
-
}, {
|
|
311
|
-
default: n(() => [
|
|
312
|
-
t(g(we), { class: "w-4 h-4" })
|
|
313
|
-
]),
|
|
314
|
-
_: 1
|
|
315
|
-
})
|
|
316
|
-
]),
|
|
317
|
-
_: 1
|
|
318
|
-
}),
|
|
319
|
-
t(le, { align: "end" }, {
|
|
320
|
-
default: n(() => [
|
|
321
|
-
t(B, {
|
|
322
|
-
onClick: (k) => W(d.value)
|
|
323
|
-
}, {
|
|
324
|
-
default: n(() => [...e[27] || (e[27] = [
|
|
325
|
-
r(" Copy to all days ", -1)
|
|
326
|
-
])]),
|
|
327
|
-
_: 1
|
|
328
|
-
}, 8, ["onClick"]),
|
|
329
|
-
t(B, {
|
|
330
|
-
onClick: (k) => Q(d.value),
|
|
331
|
-
variant: "destructive"
|
|
332
|
-
}, {
|
|
333
|
-
default: n(() => [...e[28] || (e[28] = [
|
|
334
|
-
r(" Set as closed ", -1)
|
|
335
|
-
])]),
|
|
336
|
-
_: 1
|
|
337
|
-
}, 8, ["onClick"])
|
|
338
|
-
]),
|
|
339
|
-
_: 2
|
|
340
|
-
}, 1024)
|
|
341
|
-
]),
|
|
342
|
-
_: 2
|
|
343
|
-
}, 1024)
|
|
344
|
-
])
|
|
345
|
-
]),
|
|
346
|
-
o("div", Ue, [
|
|
347
|
-
s.openingHours[d.value]?.length === 0 ? (m(), f("div", Ne, " Closed ")) : w("", !0),
|
|
348
|
-
(m(!0), f(E, null, Y(s.openingHours[d.value], (k, re) => (m(), f("div", {
|
|
349
|
-
key: re,
|
|
350
|
-
class: "flex items-center gap-1.5 sm:gap-2"
|
|
351
|
-
}, [
|
|
352
|
-
t(l, {
|
|
353
|
-
modelValue: k.start,
|
|
354
|
-
"onUpdate:modelValue": (j) => k.start = j,
|
|
355
|
-
type: "time",
|
|
356
|
-
class: "flex-1 min-w-0 h-8 text-sm"
|
|
357
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
358
|
-
e[29] || (e[29] = o("span", { class: "text-muted-foreground text-xs sm:text-sm shrink-0" }, "to", -1)),
|
|
359
|
-
t(l, {
|
|
360
|
-
modelValue: k.end,
|
|
361
|
-
"onUpdate:modelValue": (j) => k.end = j,
|
|
362
|
-
type: "time",
|
|
363
|
-
class: "flex-1 min-w-0 h-8 text-sm"
|
|
364
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
365
|
-
t(_, {
|
|
366
|
-
variant: "ghost",
|
|
367
|
-
size: "icon",
|
|
368
|
-
class: "size-7 shrink-0",
|
|
369
|
-
onClick: (j) => T(d.value, re)
|
|
370
|
-
}, {
|
|
371
|
-
default: n(() => [
|
|
372
|
-
t(g(pe), { class: "w-3.5 h-3.5 text-destructive" })
|
|
373
|
-
]),
|
|
374
|
-
_: 1
|
|
375
|
-
}, 8, ["onClick"])
|
|
376
|
-
]))), 128))
|
|
377
|
-
])
|
|
378
|
-
])), 64))
|
|
379
|
-
]),
|
|
380
|
-
e[30] || (e[30] = o("p", { class: "text-xs text-muted-foreground mt-2" }, " Define when this resource is available. You can add multiple time ranges per day for split shifts. ", -1))
|
|
381
|
-
]),
|
|
382
|
-
o("div", null, [
|
|
383
|
-
t(i, {
|
|
384
|
-
class: "text-sm font-normal mb-1.5",
|
|
385
|
-
for: "resource-description"
|
|
386
|
-
}, {
|
|
387
|
-
default: n(() => [...e[31] || (e[31] = [
|
|
388
|
-
r(" Description ", -1)
|
|
389
|
-
])]),
|
|
390
|
-
_: 1
|
|
391
|
-
}),
|
|
392
|
-
t(ae, {
|
|
393
|
-
modelValue: s.description,
|
|
394
|
-
"onUpdate:modelValue": e[5] || (e[5] = (d) => s.description = d),
|
|
395
|
-
id: "resource-description",
|
|
396
|
-
placeholder: "Internal notes about this resource...",
|
|
397
|
-
rows: "3"
|
|
398
|
-
}, null, 8, ["modelValue"]),
|
|
399
|
-
e[32] || (e[32] = o("p", { class: "text-xs text-muted-foreground mt-1" }, " Admin-only notes. Not shown to customers. ", -1))
|
|
400
|
-
]),
|
|
401
|
-
o("div", Te, [
|
|
402
|
-
o("div", He, [
|
|
403
|
-
t(i, { class: "text-sm font-medium" }, {
|
|
404
|
-
default: n(() => [...e[33] || (e[33] = [
|
|
405
|
-
r("Active", -1)
|
|
406
|
-
])]),
|
|
407
|
-
_: 1
|
|
408
|
-
}),
|
|
409
|
-
o("p", Fe, v(s.isActive ? "Resource can be used for new slots and bookings." : "Existing bookings stay, but no new ones can be created."), 1)
|
|
410
|
-
]),
|
|
411
|
-
t(u, {
|
|
412
|
-
modelValue: s.isActive,
|
|
413
|
-
"onUpdate:modelValue": e[6] || (e[6] = (d) => s.isActive = d)
|
|
414
|
-
}, null, 8, ["modelValue"])
|
|
415
|
-
])
|
|
416
|
-
]),
|
|
417
|
-
t($, { class: "@container/dialog-footer gap-2" }, {
|
|
418
|
-
default: n(() => [
|
|
419
|
-
o("div", Be, [
|
|
420
|
-
y.value === "edit" ? (m(), C(_, {
|
|
421
|
-
key: 0,
|
|
422
|
-
variant: "destructive",
|
|
423
|
-
onClick: D,
|
|
424
|
-
class: "w-full @sm/dialog-footer:w-auto"
|
|
425
|
-
}, {
|
|
426
|
-
default: n(() => [...e[34] || (e[34] = [
|
|
427
|
-
r(" Delete Resource ", -1)
|
|
428
|
-
])]),
|
|
429
|
-
_: 1
|
|
430
|
-
})) : w("", !0),
|
|
431
|
-
o("div", je, [
|
|
432
|
-
t(_, {
|
|
433
|
-
variant: "outline",
|
|
434
|
-
onClick: A,
|
|
435
|
-
class: "w-full @sm/dialog-footer:w-auto"
|
|
436
|
-
}, {
|
|
437
|
-
default: n(() => [...e[35] || (e[35] = [
|
|
438
|
-
r(" Cancel ", -1)
|
|
439
|
-
])]),
|
|
440
|
-
_: 1
|
|
441
|
-
}),
|
|
442
|
-
y.value === "add" ? (m(), C(_, {
|
|
443
|
-
key: 0,
|
|
444
|
-
onClick: U,
|
|
445
|
-
disabled: !N.value,
|
|
446
|
-
class: "w-full @sm/dialog-footer:w-auto"
|
|
447
|
-
}, {
|
|
448
|
-
default: n(() => [...e[36] || (e[36] = [
|
|
449
|
-
r(" Add Resource ", -1)
|
|
450
|
-
])]),
|
|
451
|
-
_: 1
|
|
452
|
-
}, 8, ["disabled"])) : (m(), C(_, {
|
|
453
|
-
key: 1,
|
|
454
|
-
onClick: q,
|
|
455
|
-
disabled: !N.value,
|
|
456
|
-
class: "w-full @sm/dialog-footer:w-auto"
|
|
457
|
-
}, {
|
|
458
|
-
default: n(() => [...e[37] || (e[37] = [
|
|
459
|
-
r(" Save Changes ", -1)
|
|
460
|
-
])]),
|
|
461
|
-
_: 1
|
|
462
|
-
}, 8, ["disabled"]))
|
|
463
|
-
])
|
|
464
|
-
])
|
|
465
|
-
]),
|
|
466
|
-
_: 1
|
|
467
|
-
})
|
|
468
|
-
]),
|
|
469
|
-
_: 1
|
|
470
|
-
})
|
|
471
|
-
]),
|
|
472
|
-
_: 1
|
|
473
|
-
}, 8, ["open"]);
|
|
474
|
-
};
|
|
475
|
-
}
|
|
476
|
-
}), Ye = { class: "@container/resources" }, Je = { class: "flex flex-col @lg/resources:flex-row @lg/resources:items-center @lg/resources:justify-between gap-4 mb-6" }, qe = { class: "space-y-6" }, Pe = {
|
|
477
|
-
key: 0,
|
|
478
|
-
class: "flex flex-col @md/resources:flex-row gap-4 items-start @md/resources:items-center justify-between"
|
|
479
|
-
}, We = { class: "relative w-full @md/resources:w-64" }, Qe = { class: "text-sm text-muted-foreground" }, Ge = {
|
|
480
|
-
key: 1,
|
|
481
|
-
class: "grid grid-cols-1 @2xl/resources:grid-cols-2 @4xl/resources:grid-cols-3 gap-4"
|
|
482
|
-
}, Ke = { class: "p-4 pl-5" }, Xe = { class: "flex items-start gap-3" }, Ze = { class: "flex-1 min-w-0" }, et = { class: "flex items-center gap-2" }, tt = { class: "font-semibold truncate text-base" }, ot = { key: 0 }, nt = {
|
|
483
|
-
key: 0,
|
|
484
|
-
class: "text-sm text-muted-foreground truncate"
|
|
485
|
-
}, lt = {
|
|
486
|
-
key: 0,
|
|
487
|
-
class: "text-sm text-muted-foreground mt-3 line-clamp-2"
|
|
488
|
-
}, st = { class: "flex items-center flex-wrap gap-3 mt-4 pt-3 border-t" }, at = { class: "flex items-center gap-1.5 text-xs text-muted-foreground" }, it = { class: "flex items-center gap-1.5 text-xs text-muted-foreground" }, rt = { class: "flex items-center gap-2" }, dt = { class: "text-xs text-muted-foreground" }, ut = {
|
|
489
|
-
key: 1,
|
|
490
|
-
class: "flex items-center gap-1.5 text-xs text-orange-500"
|
|
491
|
-
}, ct = {
|
|
492
|
-
key: 2,
|
|
493
|
-
class: "text-center py-8 text-muted-foreground"
|
|
494
|
-
}, mt = {
|
|
495
|
-
key: 3,
|
|
496
|
-
class: "flex justify-center py-12"
|
|
497
|
-
}, pt = {
|
|
498
|
-
key: 5,
|
|
499
|
-
class: "fixed bottom-4 right-4 bg-background border rounded-lg px-4 py-2 shadow-lg flex items-center gap-2"
|
|
500
|
-
}, _t = /* @__PURE__ */ ce({
|
|
501
|
-
__name: "resources",
|
|
502
|
-
setup(fe) {
|
|
503
|
-
const { width: J } = Re(), { params: I } = De(), { confirm: M } = Ve(), { config: x } = he(), y = Se(x.project), p = S([]), R = S(!1), s = S(!0), z = S(), A = S(""), U = () => Date.now().toString(36) + Math.random().toString(36).substr(2), q = async () => {
|
|
504
|
-
try {
|
|
505
|
-
s.value = !0;
|
|
506
|
-
const i = await y.get(x.agendaCollection, I.value.id);
|
|
507
|
-
p.value = i.resources || [];
|
|
508
|
-
} catch (i) {
|
|
509
|
-
console.error("Error loading resources:", i);
|
|
510
|
-
} finally {
|
|
511
|
-
s.value = !1;
|
|
512
|
-
}
|
|
513
|
-
}, D = async () => {
|
|
514
|
-
R.value = !0;
|
|
515
|
-
try {
|
|
516
|
-
await y.update(x.agendaCollection, I.value.id, {
|
|
517
|
-
resources: p.value
|
|
518
|
-
});
|
|
519
|
-
} catch (i) {
|
|
520
|
-
console.error("Error saving resources:", i);
|
|
521
|
-
} finally {
|
|
522
|
-
R.value = !1;
|
|
523
|
-
}
|
|
524
|
-
}, N = (i) => {
|
|
525
|
-
const l = {
|
|
526
|
-
...i,
|
|
527
|
-
id: U()
|
|
528
|
-
};
|
|
529
|
-
p.value.push(l), D();
|
|
530
|
-
}, P = (i) => {
|
|
531
|
-
const l = p.value.findIndex((b) => b.id === i.id);
|
|
532
|
-
l !== -1 && (p.value[l] = i), D();
|
|
533
|
-
}, T = async (i) => {
|
|
534
|
-
await M("Are you sure you want to delete this resource? This action cannot be undone.", "Delete Resource", "Delete") && (p.value = p.value.filter((b) => b.id !== i), D());
|
|
535
|
-
}, W = async (i) => {
|
|
536
|
-
const l = p.value.findIndex((b) => b.id === i.id);
|
|
537
|
-
l !== -1 && (p.value[l].isActive = !p.value[l].isActive, await D());
|
|
538
|
-
}, Q = (i) => {
|
|
539
|
-
const l = {
|
|
540
|
-
...i,
|
|
541
|
-
id: U(),
|
|
542
|
-
name: `${i.name} (Copy)`,
|
|
543
|
-
publicLabel: i.publicLabel ? `${i.publicLabel} (Copy)` : ""
|
|
544
|
-
};
|
|
545
|
-
p.value.push(l), D();
|
|
546
|
-
}, c = () => {
|
|
547
|
-
z.value?.openDialog();
|
|
548
|
-
}, e = (i) => {
|
|
549
|
-
z.value?.openDialog(i);
|
|
550
|
-
}, V = O(() => {
|
|
551
|
-
if (!A.value.trim())
|
|
552
|
-
return p.value;
|
|
553
|
-
const i = A.value.toLowerCase();
|
|
554
|
-
return p.value.filter(
|
|
555
|
-
(l) => l.name.toLowerCase().includes(i) || l.publicLabel?.toLowerCase().includes(i)
|
|
556
|
-
);
|
|
557
|
-
}), G = O(() => p.value.filter((i) => i.isActive).length), H = O(() => p.value.length);
|
|
558
|
-
return q(), (i, l) => {
|
|
559
|
-
const b = a("Button"), K = a("Input"), X = a("DropdownMenuTrigger"), L = a("DropdownMenuItem"), Z = a("DropdownMenuSeparator"), ee = a("DropdownMenuContent"), te = a("DropdownMenu"), h = a("Switch"), oe = a("Card"), F = a("Spinner"), _ = a("EmptyMedia"), ne = a("EmptyTitle"), B = a("EmptyDescription"), le = a("EmptyHeader"), se = a("EmptyContent"), ae = a("Empty");
|
|
560
|
-
return m(), C(be, null, {
|
|
561
|
-
default: n(() => [
|
|
562
|
-
o("div", Ye, [
|
|
563
|
-
o("div", Je, [
|
|
564
|
-
l[2] || (l[2] = o("div", null, [
|
|
565
|
-
o("h1", { class: "text-lg font-medium" }, "Resource Management"),
|
|
566
|
-
o("p", { class: "text-muted-foreground text-sm mt-1" }, " Define the rooms, boxes, or staff that can be booked in this agenda. ")
|
|
567
|
-
], -1)),
|
|
568
|
-
p.value.length > 0 ? (m(), C(b, {
|
|
569
|
-
key: 0,
|
|
570
|
-
onClick: c
|
|
571
|
-
}, {
|
|
572
|
-
default: n(() => [
|
|
573
|
-
t(g(de), { class: "size-4 mr-1.5" }),
|
|
574
|
-
l[1] || (l[1] = r(" Add Resource ", -1))
|
|
575
|
-
]),
|
|
576
|
-
_: 1
|
|
577
|
-
})) : w("", !0)
|
|
578
|
-
]),
|
|
579
|
-
o("div", qe, [
|
|
580
|
-
p.value.length > 0 ? (m(), f("div", Pe, [
|
|
581
|
-
o("div", We, [
|
|
582
|
-
t(K, {
|
|
583
|
-
modelValue: A.value,
|
|
584
|
-
"onUpdate:modelValue": l[0] || (l[0] = (u) => A.value = u),
|
|
585
|
-
placeholder: "Search resources...",
|
|
586
|
-
class: "pl-9"
|
|
587
|
-
}, null, 8, ["modelValue"]),
|
|
588
|
-
l[3] || (l[3] = o("svg", {
|
|
589
|
-
class: "absolute left-3 top-1/2 -translate-y-1/2 size-4 text-muted-foreground",
|
|
590
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
591
|
-
fill: "none",
|
|
592
|
-
viewBox: "0 0 24 24",
|
|
593
|
-
stroke: "currentColor"
|
|
594
|
-
}, [
|
|
595
|
-
o("path", {
|
|
596
|
-
"stroke-linecap": "round",
|
|
597
|
-
"stroke-linejoin": "round",
|
|
598
|
-
"stroke-width": "2",
|
|
599
|
-
d: "M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"
|
|
600
|
-
})
|
|
601
|
-
], -1))
|
|
602
|
-
]),
|
|
603
|
-
o("div", Qe, v(G.value) + " active of " + v(H.value) + " resource" + v(H.value !== 1 ? "s" : ""), 1)
|
|
604
|
-
])) : w("", !0),
|
|
605
|
-
V.value.length > 0 ? (m(), f("div", Ge, [
|
|
606
|
-
(m(!0), f(E, null, Y(V.value, (u) => (m(), C(oe, {
|
|
607
|
-
key: u.id,
|
|
608
|
-
class: me(["group relative overflow-hidden transition-all duration-200 hover:shadow-md", u.isActive ? "" : "opacity-60 grayscale-[30%]"])
|
|
609
|
-
}, {
|
|
610
|
-
default: n(() => [
|
|
611
|
-
o("div", {
|
|
612
|
-
class: "absolute inset-y-0 left-0 w-1 transition-all duration-200 group-hover:w-1.5",
|
|
613
|
-
style: ie({ background: u.color })
|
|
614
|
-
}, null, 4),
|
|
615
|
-
o("div", Ke, [
|
|
616
|
-
o("div", Xe, [
|
|
617
|
-
o("div", {
|
|
618
|
-
class: "size-11 rounded-xl flex-shrink-0 flex items-center justify-center text-white font-semibold text-sm shadow-sm",
|
|
619
|
-
style: ie({ background: u.color })
|
|
620
|
-
}, v(u.avatarLabel || u.name.charAt(0).toUpperCase()), 5),
|
|
621
|
-
o("div", Ze, [
|
|
622
|
-
o("div", et, [
|
|
623
|
-
o("h3", tt, [
|
|
624
|
-
r(v(u.name) + " ", 1),
|
|
625
|
-
u.isActive ? w("", !0) : (m(), f("span", ot, "(Inactive)"))
|
|
626
|
-
])
|
|
627
|
-
]),
|
|
628
|
-
u.publicLabel && u.publicLabel !== u.name ? (m(), f("p", nt, v(u.publicLabel), 1)) : w("", !0)
|
|
629
|
-
]),
|
|
630
|
-
t(te, null, {
|
|
631
|
-
default: n(() => [
|
|
632
|
-
t(X, { "as-child": "" }, {
|
|
633
|
-
default: n(() => [
|
|
634
|
-
t(b, {
|
|
635
|
-
variant: "ghost",
|
|
636
|
-
size: "icon",
|
|
637
|
-
class: "size-8"
|
|
638
|
-
}, {
|
|
639
|
-
default: n(() => [...l[4] || (l[4] = [
|
|
640
|
-
o("svg", {
|
|
641
|
-
class: "size-4",
|
|
642
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
643
|
-
fill: "none",
|
|
644
|
-
viewBox: "0 0 24 24",
|
|
645
|
-
stroke: "currentColor"
|
|
646
|
-
}, [
|
|
647
|
-
o("path", {
|
|
648
|
-
"stroke-linecap": "round",
|
|
649
|
-
"stroke-linejoin": "round",
|
|
650
|
-
"stroke-width": "2",
|
|
651
|
-
d: "M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"
|
|
652
|
-
})
|
|
653
|
-
], -1)
|
|
654
|
-
])]),
|
|
655
|
-
_: 1
|
|
656
|
-
})
|
|
657
|
-
]),
|
|
658
|
-
_: 1
|
|
659
|
-
}),
|
|
660
|
-
t(ee, { align: "end" }, {
|
|
661
|
-
default: n(() => [
|
|
662
|
-
t(L, {
|
|
663
|
-
onClick: ($) => e(u)
|
|
664
|
-
}, {
|
|
665
|
-
default: n(() => [
|
|
666
|
-
t(g(ye), { class: "size-4 mr-2" }),
|
|
667
|
-
l[5] || (l[5] = r(" Edit ", -1))
|
|
668
|
-
]),
|
|
669
|
-
_: 1
|
|
670
|
-
}, 8, ["onClick"]),
|
|
671
|
-
t(L, {
|
|
672
|
-
onClick: ($) => Q(u)
|
|
673
|
-
}, {
|
|
674
|
-
default: n(() => [
|
|
675
|
-
t(g(ke), { class: "size-4 mr-2" }),
|
|
676
|
-
l[6] || (l[6] = r(" Duplicate ", -1))
|
|
677
|
-
]),
|
|
678
|
-
_: 1
|
|
679
|
-
}, 8, ["onClick"]),
|
|
680
|
-
t(Z),
|
|
681
|
-
t(L, {
|
|
682
|
-
variant: "destructive",
|
|
683
|
-
onClick: ($) => T(u.id)
|
|
684
|
-
}, {
|
|
685
|
-
default: n(() => [
|
|
686
|
-
t(g(pe), { class: "size-4 mr-2" }),
|
|
687
|
-
l[7] || (l[7] = r(" Delete ", -1))
|
|
688
|
-
]),
|
|
689
|
-
_: 1
|
|
690
|
-
}, 8, ["onClick"])
|
|
691
|
-
]),
|
|
692
|
-
_: 2
|
|
693
|
-
}, 1024)
|
|
694
|
-
]),
|
|
695
|
-
_: 2
|
|
696
|
-
}, 1024)
|
|
697
|
-
]),
|
|
698
|
-
u.description ? (m(), f("p", lt, v(u.description), 1)) : w("", !0),
|
|
699
|
-
o("div", st, [
|
|
700
|
-
o("div", at, [
|
|
701
|
-
t(g(ue), { class: "size-3.5" }),
|
|
702
|
-
o("span", null, v(u.capacity) + " " + v(u.capacity === 1 ? "slot" : "slots"), 1)
|
|
703
|
-
]),
|
|
704
|
-
o("div", it, [
|
|
705
|
-
l[8] || (l[8] = o("svg", {
|
|
706
|
-
class: "size-3.5",
|
|
707
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
708
|
-
fill: "none",
|
|
709
|
-
viewBox: "0 0 24 24",
|
|
710
|
-
stroke: "currentColor"
|
|
711
|
-
}, [
|
|
712
|
-
o("path", {
|
|
713
|
-
"stroke-linecap": "round",
|
|
714
|
-
"stroke-linejoin": "round",
|
|
715
|
-
"stroke-width": "2",
|
|
716
|
-
d: "M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
717
|
-
})
|
|
718
|
-
], -1)),
|
|
719
|
-
o("span", null, v(u.interval) + " min", 1)
|
|
720
|
-
]),
|
|
721
|
-
g(J) >= 640 ? (m(), f(E, { key: 0 }, [
|
|
722
|
-
l[9] || (l[9] = o("div", { class: "flex-1" }, null, -1)),
|
|
723
|
-
o("div", rt, [
|
|
724
|
-
o("span", dt, v(u.isActive ? "Active" : "Inactive"), 1),
|
|
725
|
-
t(h, {
|
|
726
|
-
defaultValue: u.isActive,
|
|
727
|
-
"onUpdate:modelValue": ($) => W(u),
|
|
728
|
-
class: "scale-90"
|
|
729
|
-
}, null, 8, ["defaultValue", "onUpdate:modelValue"])
|
|
730
|
-
])
|
|
731
|
-
], 64)) : u.isActive ? w("", !0) : (m(), f("div", ut, [
|
|
732
|
-
t(g(Ce), { class: "size-3.5" }),
|
|
733
|
-
l[10] || (l[10] = o("span", null, "Inactive", -1))
|
|
734
|
-
]))
|
|
735
|
-
])
|
|
736
|
-
])
|
|
737
|
-
]),
|
|
738
|
-
_: 2
|
|
739
|
-
}, 1032, ["class"]))), 128))
|
|
740
|
-
])) : p.value.length > 0 && V.value.length === 0 ? (m(), f("div", ct, [...l[11] || (l[11] = [
|
|
741
|
-
o("p", null, "No resources match your search.", -1)
|
|
742
|
-
])])) : s.value ? (m(), f("div", mt, [
|
|
743
|
-
t(F, { class: "size-8" })
|
|
744
|
-
])) : (m(), C(ae, {
|
|
745
|
-
key: 4,
|
|
746
|
-
class: "border border-dashed"
|
|
747
|
-
}, {
|
|
748
|
-
default: n(() => [
|
|
749
|
-
t(le, null, {
|
|
750
|
-
default: n(() => [
|
|
751
|
-
t(_, { variant: "icon" }, {
|
|
752
|
-
default: n(() => [
|
|
753
|
-
t(g(ue), { class: "size-6" })
|
|
754
|
-
]),
|
|
755
|
-
_: 1
|
|
756
|
-
}),
|
|
757
|
-
t(ne, null, {
|
|
758
|
-
default: n(() => [...l[12] || (l[12] = [
|
|
759
|
-
r("No Resources Yet", -1)
|
|
760
|
-
])]),
|
|
761
|
-
_: 1
|
|
762
|
-
}),
|
|
763
|
-
t(B, null, {
|
|
764
|
-
default: n(() => [...l[13] || (l[13] = [
|
|
765
|
-
r(" You haven't added any bookable resources yet. Define your staff, rooms, or equipment to start configuring availability. ", -1)
|
|
766
|
-
])]),
|
|
767
|
-
_: 1
|
|
768
|
-
})
|
|
769
|
-
]),
|
|
770
|
-
_: 1
|
|
771
|
-
}),
|
|
772
|
-
t(se, null, {
|
|
773
|
-
default: n(() => [
|
|
774
|
-
t(b, {
|
|
775
|
-
variant: "outline",
|
|
776
|
-
onClick: c
|
|
777
|
-
}, {
|
|
778
|
-
default: n(() => [
|
|
779
|
-
t(g(de), { class: "size-4 mr-1.5" }),
|
|
780
|
-
l[14] || (l[14] = r(" Add Your First Resource ", -1))
|
|
781
|
-
]),
|
|
782
|
-
_: 1
|
|
783
|
-
})
|
|
784
|
-
]),
|
|
785
|
-
_: 1
|
|
786
|
-
})
|
|
787
|
-
]),
|
|
788
|
-
_: 1
|
|
789
|
-
})),
|
|
790
|
-
R.value ? (m(), f("div", pt, [
|
|
791
|
-
t(F, { class: "size-4" }),
|
|
792
|
-
l[15] || (l[15] = o("span", { class: "text-sm" }, "Saving...", -1))
|
|
793
|
-
])) : w("", !0)
|
|
794
|
-
])
|
|
795
|
-
]),
|
|
796
|
-
t(Oe, {
|
|
797
|
-
ref_key: "resourceDialogRef",
|
|
798
|
-
ref: z,
|
|
799
|
-
onAddResource: N,
|
|
800
|
-
onUpdateResource: P,
|
|
801
|
-
onRemoveResource: T
|
|
802
|
-
}, null, 512)
|
|
803
|
-
]),
|
|
804
|
-
_: 1
|
|
805
|
-
});
|
|
806
|
-
};
|
|
807
|
-
}
|
|
808
|
-
});
|
|
809
|
-
export {
|
|
810
|
-
_t as default
|
|
811
|
-
};
|