@oneclick.dev/cms-core-modules 0.0.106 → 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/index.d.ts +9 -12
- package/dist/src/appointments/metadata.d.ts +1 -1
- package/dist/src/appointments/routes.d.ts +3 -6
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/LockBlocks.d.ts +15 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/TrailingNodeInContainers.d.ts +4 -1
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/index.d.ts +12 -132
- package/dist/src/contentManager/index.d.ts +5 -14
- package/dist/src/contentManager/metadata.d.ts +1 -1
- package/dist/src/contentManager/routes.d.ts +3 -12
- package/dist/src/custom/index.d.ts +2 -2
- package/dist/src/custom/routes.d.ts +1 -1
- package/dist/src/googleAnalytics/index.d.ts +10 -10
- package/dist/src/googleAnalytics/routes.d.ts +1 -1
- package/dist/src/mailTemplates/index.d.ts +3 -3
- package/dist/src/mailTemplates/metadata.d.ts +1 -1
- package/dist/src/mailTemplates/routes.d.ts +1 -1
- package/dist/src/productCollections/index.d.ts +3 -3
- package/dist/src/productCollections/metadata.d.ts +1 -1
- package/dist/src/productCollections/routes.d.ts +1 -1
- package/dist/src/products/index.d.ts +4 -4
- package/dist/src/products/metadata.d.ts +1 -1
- package/dist/src/products/routes.d.ts +1 -1
- package/dist/src/promoCodes/index.d.ts +3 -3
- package/dist/src/promoCodes/metadata.d.ts +1 -1
- package/dist/src/promoCodes/routes.d.ts +1 -1
- package/dist/src/push-notifications/index.d.ts +3 -3
- package/dist/src/push-notifications/metadata.d.ts +1 -1
- package/dist/src/push-notifications/routes.d.ts +1 -1
- package/dist/src/shippingOptions/index.d.ts +3 -3
- package/dist/src/shippingOptions/metadata.d.ts +1 -1
- package/dist/src/shippingOptions/routes.d.ts +1 -1
- package/dist/src/table/flow-builder-extensions/row-item.d.ts +3 -17
- package/dist/src/table/index.d.ts +2 -2
- package/dist/src/table/routes.d.ts +1 -1
- package/dist/src/types/index.d.ts +6 -0
- package/dist/src/vue-shim.d.ts +7 -0
- package/dist/table-DWw0fs3S.js +1 -0
- package/dist/table-LXt5DQOL.mjs +23 -0
- package/dist/utils-CVIHqQsU.js +3 -0
- package/dist/utils-h3owcMtS.mjs +37 -0
- package/dist/vee-validate-zod-BmXMJo8W.js +1 -0
- package/dist/vee-validate-zod-D9dZzbWZ.mjs +4985 -0
- package/dist/xy-container-CuQSwrtB.mjs +3180 -0
- package/dist/xy-container-_6YpscZh.js +158 -0
- package/package.json +55 -55
- package/dist/Acquisition-B2pM5vSp.mjs +0 -400
- package/dist/Acquisition-Dt2rREU8.js +0 -1
- package/dist/AgendaOpeningHoursCard-B7ROIPWw.js +0 -1
- package/dist/AgendaOpeningHoursCard-Cp4wxUeK.mjs +0 -172
- package/dist/AppointmentDetailsCard-33WpATpV.mjs +0 -161
- package/dist/AppointmentDetailsCard-DpLM5IrB.js +0 -1
- package/dist/AppointmentEditor-BeOtYV6u.mjs +0 -196
- package/dist/AppointmentEditor-CaTfbkIf.js +0 -1
- package/dist/AppointmentListTable-DZJNmTMb.mjs +0 -177
- package/dist/AppointmentListTable-Dieu9US_.js +0 -1
- package/dist/Audience-Bs7b0TNm.js +0 -1
- package/dist/Audience-VLnUsQvW.mjs +0 -489
- package/dist/Components-C83O-xlF.mjs +0 -623
- package/dist/Components-DXbx0RLV.js +0 -1
- package/dist/Content-BHr_rPVY.js +0 -1
- package/dist/Content-CYOZKvWK.mjs +0 -358
- package/dist/ContentEditor-BNLEv-qJ.mjs +0 -30697
- package/dist/ContentEditor-BUvvqfG1.js +0 -462
- package/dist/CountryBreakdownCard-D7BK3nRD.js +0 -1
- package/dist/CountryBreakdownCard-DVxNz2DJ.mjs +0 -196
- package/dist/Create-89z41K73.js +0 -1
- package/dist/Create-Cn_Eufga.mjs +0 -1251
- package/dist/DateFormatter-Bw-87W31.mjs +0 -734
- package/dist/DateFormatter-CYAD4GBN.js +0 -1
- package/dist/Detail-Byk781b4.mjs +0 -26
- package/dist/Detail-C1Blq61w.mjs +0 -585
- package/dist/Detail-C857g62L.js +0 -1
- package/dist/Detail-C8wQiDcv.js +0 -1
- package/dist/Detail-CPqug27l.js +0 -1
- package/dist/Detail-CjuhjPby.js +0 -1
- package/dist/Detail-CtItxMX4.mjs +0 -649
- package/dist/Detail-CujdFApD.mjs +0 -379
- package/dist/Detail-Dnpnmy4-.mjs +0 -3477
- package/dist/Detail-mvSGbnFU.js +0 -1
- package/dist/DeviceBreakdownCard-DRhQ9ufG.js +0 -1
- package/dist/DeviceBreakdownCard-W1frLe0L.mjs +0 -159
- package/dist/EditLayout.vue_vue_type_script_setup_true_lang-DWMqQvHl.mjs +0 -76
- package/dist/EditLayout.vue_vue_type_script_setup_true_lang-kpjbVSXg.js +0 -1
- package/dist/Entries-BdhUyJR5.mjs +0 -728
- package/dist/Entries-CEXM_SkO.js +0 -1
- package/dist/Find-B24ZEhYM.mjs +0 -229
- package/dist/Find-D4Qa45qC.js +0 -1
- package/dist/GlobalStyling-C9VthHWK.mjs +0 -1588
- package/dist/GlobalStyling-CnSlXkZc.js +0 -25
- package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-Ceoje52V.js +0 -1
- package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-DMGcRmm-.mjs +0 -1255
- package/dist/OrderDetailDialog.vue_vue_type_script_setup_true_lang-COrK1j0S.js +0 -1
- package/dist/OrderDetailDialog.vue_vue_type_script_setup_true_lang-Vb3q8EVv.mjs +0 -330
- package/dist/Overview-3HWhsqaz.mjs +0 -860
- package/dist/Overview-BCpJNiEB.mjs +0 -190
- package/dist/Overview-BDlBCUI_.js +0 -1
- package/dist/Overview-BbvfH1u-.js +0 -1
- package/dist/Overview-Bn1Xx3_j.js +0 -1
- package/dist/Overview-CIa1E-HH.mjs +0 -178
- package/dist/Overview-DAxCu9XC.js +0 -1
- package/dist/Overview-DC9io1bk.js +0 -1
- package/dist/Overview-Di84CsR5.mjs +0 -476
- package/dist/Overview-Su8ZUbMs.mjs +0 -26
- package/dist/Overview-T-lsy3UZ.js +0 -1
- package/dist/Overview-UoZHUMUz.js +0 -1
- package/dist/Overview-ejh4vUMT.mjs +0 -567
- package/dist/Overview-lWAyyenp.mjs +0 -632
- package/dist/PeakHoursCard-9-EZFZLR.mjs +0 -182
- package/dist/PeakHoursCard-BR5zmta4.js +0 -1
- package/dist/ProductDetailsCard-6nHikw4V.mjs +0 -121
- package/dist/ProductDetailsCard-Bn7qrgmc.js +0 -1
- package/dist/RealtimeCard--APfRNc8.js +0 -1
- package/dist/RealtimeCard-fvQlJcM7.mjs +0 -126
- package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-CuwREvXD.js +0 -349
- package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-GYNZ_yhD.mjs +0 -3077
- package/dist/SearchTermsCard-BsB-63aH.js +0 -1
- package/dist/SearchTermsCard-BzVrHKqQ.mjs +0 -201
- package/dist/SendPush-COns44j7.js +0 -1
- package/dist/SendPush-CPIOjVX4.mjs +0 -184
- package/dist/SeoHealth-DsbVdd2l.mjs +0 -615
- package/dist/SeoHealth-az1YuNF2.js +0 -1
- package/dist/TableView-Bm6HaRHm.mjs +0 -6143
- package/dist/TableView-DQW0A1oG.js +0 -4
- package/dist/TemplateList.vue_vue_type_script_setup_true_lang-B_AtWnHa.js +0 -1
- package/dist/TemplateList.vue_vue_type_script_setup_true_lang-Cmovy7kk.mjs +0 -40
- package/dist/TopPagesCard-BDeA997A.js +0 -1
- package/dist/TopPagesCard-CTozhOr_.mjs +0 -159
- package/dist/TrafficSourcesCard-BxtCKsqx.mjs +0 -197
- package/dist/TrafficSourcesCard-C3ziDTUL.js +0 -1
- package/dist/View-CsudjxCE.mjs +0 -30
- package/dist/View-Dw_wA6kK.js +0 -1
- package/dist/VisitorStatsCard-BmByE_Hi.js +0 -1
- package/dist/VisitorStatsCard-CXizEbVK.mjs +0 -174
- package/dist/_plugin-vue_export-helper-BHFhmbuH.js +0 -1
- package/dist/_plugin-vue_export-helper-CHgC5LLL.mjs +0 -9
- package/dist/agenda-IOqtALWf.js +0 -1
- package/dist/agenda-neyeLWv-.mjs +0 -1165
- package/dist/array-CbATeQbk.js +0 -1
- package/dist/array-CvmZXzxF.mjs +0 -108
- package/dist/availability-CMrRa5y2.mjs +0 -269
- package/dist/availability-Cf2YfMwM.js +0 -1
- package/dist/booking-data-DgJd0BcM.mjs +0 -889
- package/dist/booking-data-Di5GmH_8.js +0 -1
- package/dist/countries-BTPvmrsb.mjs +0 -4
- package/dist/countries-CgZ081No.js +0 -1
- package/dist/exceptions-CI0B4xVj.js +0 -1
- package/dist/exceptions-vo8SA5SE.mjs +0 -646
- package/dist/google-CvtuJwgk.mjs +0 -4
- package/dist/google-D4N3gb01.js +0 -1
- package/dist/index-4tjmIans.js +0 -1
- package/dist/index-9HVlmvK3.js +0 -1
- package/dist/index-A2kp8Isi.js +0 -75
- package/dist/index-B5aBwdxY.js +0 -54
- package/dist/index-BRdCrvcz.mjs +0 -1443
- package/dist/index-BWDwEd8D.mjs +0 -24
- package/dist/index-BfBBm9uY.mjs +0 -24
- package/dist/index-BiT55eU0.js +0 -58
- package/dist/index-Bkq58CeQ.mjs +0 -22
- package/dist/index-Bvxc5xv_.mjs +0 -3843
- package/dist/index-CJQQBRLY.js +0 -1
- package/dist/index-CQkOH2_3.mjs +0 -24
- package/dist/index-CSxYBeVA.js +0 -1
- package/dist/index-CU-tbS5W.mjs +0 -24
- package/dist/index-CZn2nDLv.mjs +0 -34
- package/dist/index-CkiNvRzs.js +0 -1
- package/dist/index-Co4ON2Di.js +0 -1
- package/dist/index-Cpnn_Pxd.mjs +0 -24
- package/dist/index-CrgzoTyR.mjs +0 -110
- package/dist/index-CsVeM3PA.mjs +0 -24
- package/dist/index-CwqrAU-H.js +0 -1
- package/dist/index-CxETuRsG.js +0 -1
- package/dist/index-Cz-baGax.js +0 -1
- package/dist/index-DFQGVHTs.js +0 -1
- package/dist/index-DPd3waTN.js +0 -1
- package/dist/index-DRqJOqUR.mjs +0 -3484
- package/dist/index-DjWuIBxh.js +0 -1
- package/dist/index-Dnn2SCSl.js +0 -1
- package/dist/index-Dpl9sU6a.mjs +0 -12
- package/dist/index-DrXxXB2F.mjs +0 -138
- package/dist/index-G7cIlnGN.js +0 -158
- package/dist/index-MYWjg0zi.mjs +0 -176
- package/dist/index-R2oUDsjx.js +0 -1
- package/dist/index-RLz1QPrf.mjs +0 -203
- package/dist/index-UtjLbLw-.js +0 -1
- package/dist/index-X6LV64jK.mjs +0 -442
- package/dist/index-cOnxXTbF.mjs +0 -24
- package/dist/index-hlylYYgy.mjs +0 -24
- package/dist/index-ijdf0d9-.js +0 -1
- package/dist/index-uOkqO74I.mjs +0 -2940
- package/dist/index-unsDfNYv.mjs +0 -1187
- package/dist/index-vHmvbEwa.js +0 -35
- package/dist/interpolation-CHn59tIC.js +0 -1
- package/dist/interpolation-w7IRDJwK.mjs +0 -180
- package/dist/orders-C65SlpJy.mjs +0 -618
- package/dist/orders-XVzWAgG1.js +0 -1
- package/dist/payment-C3ohkehF.mjs +0 -1080
- package/dist/payment-Dfr-Ro-a.js +0 -1
- package/dist/regular-1LXNPviB.js +0 -1
- package/dist/regular-_05oq5Tx.mjs +0 -1101
- package/dist/resources-CxeFd57z.js +0 -1
- package/dist/resources-WI_4SO6T.mjs +0 -811
- package/dist/src/appointments/chat-components/AgendaOpeningHoursCard.vue.d.ts +0 -15
- package/dist/src/appointments/chat-components/AppointmentDetailsCard.vue.d.ts +0 -14
- package/dist/src/appointments/chat-components/AppointmentEditor.vue.d.ts +0 -14
- package/dist/src/appointments/chat-components/AppointmentListTable.vue.d.ts +0 -14
- package/dist/src/appointments/components/create/StepNavigation.vue.d.ts +0 -32
- package/dist/src/appointments/components/create/regular/Step1.vue.d.ts +0 -2
- package/dist/src/appointments/components/create/regular/Step2.vue.d.ts +0 -2
- package/dist/src/appointments/components/create/regular/Step3.vue.d.ts +0 -2
- package/dist/src/appointments/components/create/regular/Step4.vue.d.ts +0 -2
- package/dist/src/appointments/components/edit/CustomerInformationFieldEditorDialog.vue.d.ts +0 -24
- package/dist/src/appointments/components/edit/EditLayout.vue.d.ts +0 -17
- package/dist/src/appointments/components/edit/Event24hSidebar.vue.d.ts +0 -2
- package/dist/src/appointments/components/edit/EventDialog/ApproveReservationDialog.vue.d.ts +0 -8
- package/dist/src/appointments/components/edit/EventDialog/BookingsList.vue.d.ts +0 -136
- package/dist/src/appointments/components/edit/EventDialog/CancelReservationDialog.vue.d.ts +0 -8
- package/dist/src/appointments/components/edit/EventDialog/EventDialog.vue.d.ts +0 -11
- package/dist/src/appointments/components/edit/EventDialog/OrderDetailDialog.vue.d.ts +0 -55
- package/dist/src/appointments/components/edit/EventDialog/RejectReservationDialog.vue.d.ts +0 -8
- package/dist/src/appointments/components/edit/EventDialog/ReservationDetailDialog.vue.d.ts +0 -87
- package/dist/src/appointments/components/edit/EventDialog/TimelineChart.vue.d.ts +0 -24
- package/dist/src/appointments/components/edit/EventDialog/TransferReservationDialog.vue.d.ts +0 -4
- package/dist/src/appointments/components/edit/EventTimeIndicator.vue.d.ts +0 -12
- package/dist/src/appointments/components/edit/EventTimeline.vue.d.ts +0 -48
- package/dist/src/appointments/components/edit/EventView.vue.d.ts +0 -9
- package/dist/src/appointments/components/edit/ExceptionDialog.vue.d.ts +0 -29
- package/dist/src/appointments/components/edit/MetadataSchemaEditorDialog.vue.d.ts +0 -12
- package/dist/src/appointments/components/edit/NewReservationDialog/CustomerInformation.vue.d.ts +0 -10
- package/dist/src/appointments/components/edit/NewReservationDialog/NewReservationDialog.vue.d.ts +0 -26
- package/dist/src/appointments/components/edit/NewReservationDialog/QuickReservationAdder.vue.d.ts +0 -26
- package/dist/src/appointments/components/edit/NewReservationDialog/ReservationLines.vue.d.ts +0 -31
- package/dist/src/appointments/components/edit/OrderMetadataDisplay.vue.d.ts +0 -21
- package/dist/src/appointments/components/edit/PaymentAddons/Addon.vue.d.ts +0 -22
- package/dist/src/appointments/components/edit/PaymentAddons/AddonList.vue.d.ts +0 -5
- package/dist/src/appointments/components/edit/PaymentAddons/index.vue.d.ts +0 -15
- package/dist/src/appointments/components/edit/ResourceEditorDialog.vue.d.ts +0 -13
- package/dist/src/appointments/components/edit/dashboard/Timeline.vue.d.ts +0 -36
- package/dist/src/appointments/components/edit/dashboard/timeline/ResourceSelector.vue.d.ts +0 -50
- package/dist/src/appointments/index.vue.d.ts +0 -22
- package/dist/src/appointments/pages/Overview.vue.d.ts +0 -4
- package/dist/src/appointments/pages/create/index.vue.d.ts +0 -2
- package/dist/src/appointments/pages/create/regular.vue.d.ts +0 -6
- package/dist/src/appointments/pages/edit/agenda.vue.d.ts +0 -4
- package/dist/src/appointments/pages/edit/availability.vue.d.ts +0 -2
- package/dist/src/appointments/pages/edit/booking-data.vue.d.ts +0 -65
- package/dist/src/appointments/pages/edit/index.vue.d.ts +0 -2
- package/dist/src/appointments/pages/edit/payment.vue.d.ts +0 -2
- package/dist/src/appointments/pages/edit/resources.vue.d.ts +0 -28
- package/dist/src/contentManager/components/components/ComponentDialog.vue.d.ts +0 -12
- package/dist/src/contentManager/components/components/ComponentGridItem.vue.d.ts +0 -16
- package/dist/src/contentManager/components/content-editor/ApiDocs.vue.d.ts +0 -2
- package/dist/src/contentManager/components/content-editor/ContentLayout.vue.d.ts +0 -49
- package/dist/src/contentManager/components/content-editor/ContentSettings.vue.d.ts +0 -24
- package/dist/src/contentManager/components/content-editor/ContentStructuredContentSections.vue.d.ts +0 -4
- package/dist/src/contentManager/components/content-editor/Header.vue.d.ts +0 -64
- package/dist/src/contentManager/components/content-editor/LivePreviewWrapper.vue.d.ts +0 -53
- package/dist/src/contentManager/components/content-editor/Locales.vue.d.ts +0 -44
- package/dist/src/contentManager/components/content-editor/NewSectionDialog.vue.d.ts +0 -21
- package/dist/src/contentManager/components/content-editor/PageSettings.vue.d.ts +0 -2
- package/dist/src/contentManager/components/content-editor/SEO.vue.d.ts +0 -14
- package/dist/src/contentManager/components/content-editor/SidebarSectionWrapper.vue.d.ts +0 -39
- package/dist/src/contentManager/components/content-editor/Status.vue.d.ts +0 -2
- package/dist/src/contentManager/components/content-editor/Versions.vue.d.ts +0 -63
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Button.vue.d.ts +0 -94
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Card.vue.d.ts +0 -92
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Column.vue.d.ts +0 -92
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Container.vue.d.ts +0 -92
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Divider.vue.d.ts +0 -92
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/EmptySpace.vue.d.ts +0 -94
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Heading.vue.d.ts +0 -92
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Image.vue.d.ts +0 -92
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Map.vue.d.ts +0 -92
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Paragraph.vue.d.ts +0 -92
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Row.vue.d.ts +0 -115
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Stack.vue.d.ts +0 -115
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Video.vue.d.ts +0 -92
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/extension-details/DetailsNodeView.vue.d.ts +0 -92
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/helpers/NodeLabel.vue.d.ts +0 -108
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/helpers/ResizeHandlers.vue.d.ts +0 -20
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/helpers/TopMarginDragger.vue.d.ts +0 -104
- package/dist/src/contentManager/components/content-editor/tiptap-menus/BubbleMenuClassBuilder.vue.d.ts +0 -19
- package/dist/src/contentManager/components/content-editor/tiptap-menus/BubbleMenuLinkBuilder.vue.d.ts +0 -19
- package/dist/src/contentManager/components/content-editor/tiptap-menus/BubbleMenuToggleButton.vue.d.ts +0 -29
- package/dist/src/contentManager/components/content-editor/tiptap-menus/DefaultBubbleMenu.vue.d.ts +0 -13
- package/dist/src/contentManager/components/content-editor/tiptap-menus/ElementEditorMenu.vue.d.ts +0 -19
- package/dist/src/contentManager/components/content-editor/tiptap-menus/EmojiMenu.vue.d.ts +0 -8
- package/dist/src/contentManager/components/content-editor/tiptap-menus/NewNodeView.vue.d.ts +0 -47
- package/dist/src/contentManager/components/content-editor/tiptap-menus/SlashMenu.vue.d.ts +0 -6
- package/dist/src/contentManager/components/content-editor/tiptap-menus/SlashMenuButton.vue.d.ts +0 -17
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/ButtonMenu.vue.d.ts +0 -13
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/CardMenu.vue.d.ts +0 -13
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/ColumnMenu.vue.d.ts +0 -13
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/DividerMenu.vue.d.ts +0 -13
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/EmptySpaceMenu.vue.d.ts +0 -13
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/HeadingMenu.vue.d.ts +0 -13
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/ImageMenu.vue.d.ts +0 -13
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/MapMenu.vue.d.ts +0 -13
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/RowMenu.vue.d.ts +0 -13
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/StackMenu.vue.d.ts +0 -13
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/TextMenu.vue.d.ts +0 -13
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/VideoMenu.vue.d.ts +0 -13
- package/dist/src/contentManager/components/overview/CollectionDialog.vue.d.ts +0 -30
- package/dist/src/contentManager/components/overview/CollectionsGridView.vue.d.ts +0 -18
- package/dist/src/contentManager/components/overview/ContentEntryContextMenu.vue.d.ts +0 -27
- package/dist/src/contentManager/components/overview/FilterPopover.vue.d.ts +0 -2
- package/dist/src/contentManager/components/overview/ListView.vue.d.ts +0 -12
- package/dist/src/contentManager/components/styling/ButtonStyleDialog.vue.d.ts +0 -24
- package/dist/src/contentManager/components/styling/CardStyleDialog.vue.d.ts +0 -24
- package/dist/src/contentManager/components/styling/SectionStyleDialog.vue.d.ts +0 -24
- package/dist/src/contentManager/index.vue.d.ts +0 -22
- package/dist/src/contentManager/pages/Components.vue.d.ts +0 -27
- package/dist/src/contentManager/pages/ContentEditor.vue.d.ts +0 -14
- package/dist/src/contentManager/pages/Entries.vue.d.ts +0 -16
- package/dist/src/contentManager/pages/GlobalStyling.vue.d.ts +0 -117
- package/dist/src/contentManager/pages/Overview.vue.d.ts +0 -57
- package/dist/src/custom/index.vue.d.ts +0 -2
- package/dist/src/custom/pages/View.vue.d.ts +0 -2
- package/dist/src/googleAnalytics/chat-components/CountryBreakdownCard.vue.d.ts +0 -14
- package/dist/src/googleAnalytics/chat-components/DeviceBreakdownCard.vue.d.ts +0 -14
- package/dist/src/googleAnalytics/chat-components/PeakHoursCard.vue.d.ts +0 -14
- package/dist/src/googleAnalytics/chat-components/RealtimeCard.vue.d.ts +0 -14
- package/dist/src/googleAnalytics/chat-components/SearchTermsCard.vue.d.ts +0 -14
- package/dist/src/googleAnalytics/chat-components/TopPagesCard.vue.d.ts +0 -14
- package/dist/src/googleAnalytics/chat-components/TrafficSourcesCard.vue.d.ts +0 -14
- package/dist/src/googleAnalytics/chat-components/VisitorStatsCard.vue.d.ts +0 -14
- package/dist/src/googleAnalytics/components/seo-health/SeoClicksChart.vue.d.ts +0 -5
- package/dist/src/googleAnalytics/components/seo-health/SeoImpressionsChart.vue.d.ts +0 -5
- package/dist/src/googleAnalytics/components/seo-health/SeoKeywordsTab.vue.d.ts +0 -5
- package/dist/src/googleAnalytics/components/seo-health/SeoKpiCards.vue.d.ts +0 -10
- package/dist/src/googleAnalytics/components/seo-health/SeoMappingTab.vue.d.ts +0 -5
- package/dist/src/googleAnalytics/components/seo-health/SeoPagesTab.vue.d.ts +0 -5
- package/dist/src/googleAnalytics/components/seo-health/SeoRankingDistribution.vue.d.ts +0 -5
- package/dist/src/googleAnalytics/index.vue.d.ts +0 -2
- package/dist/src/googleAnalytics/pages/Acquisition.vue.d.ts +0 -2
- package/dist/src/googleAnalytics/pages/Audience.vue.d.ts +0 -2
- package/dist/src/googleAnalytics/pages/Content.vue.d.ts +0 -2
- package/dist/src/googleAnalytics/pages/Overview.vue.d.ts +0 -2
- package/dist/src/googleAnalytics/pages/SeoHealth.vue.d.ts +0 -2
- package/dist/src/mailTemplates/components/TemplateList.vue.d.ts +0 -2
- package/dist/src/mailTemplates/index.vue.d.ts +0 -22
- package/dist/src/mailTemplates/pages/Detail.vue.d.ts +0 -14
- package/dist/src/mailTemplates/pages/Overview.vue.d.ts +0 -14
- package/dist/src/productCollections/components/detail/Main.vue.d.ts +0 -2
- package/dist/src/productCollections/components/detail/SEO.vue.d.ts +0 -2
- package/dist/src/productCollections/components/detail/Status.vue.d.ts +0 -2
- package/dist/src/productCollections/components/overview/ListView.vue.d.ts +0 -12
- package/dist/src/productCollections/index.vue.d.ts +0 -22
- package/dist/src/productCollections/pages/Detail.vue.d.ts +0 -14
- package/dist/src/productCollections/pages/Overview.vue.d.ts +0 -16
- package/dist/src/products/chat-components/ProductDetailsCard.vue.d.ts +0 -14
- package/dist/src/products/components/detail/Collections.vue.d.ts +0 -14
- package/dist/src/products/components/detail/Inventory.vue.d.ts +0 -2
- package/dist/src/products/components/detail/Main.vue.d.ts +0 -2
- package/dist/src/products/components/detail/NewSection.vue.d.ts +0 -2
- package/dist/src/products/components/detail/Price.vue.d.ts +0 -2
- package/dist/src/products/components/detail/SEO.vue.d.ts +0 -2
- package/dist/src/products/components/detail/Shipping.vue.d.ts +0 -2
- package/dist/src/products/components/detail/Status.vue.d.ts +0 -2
- package/dist/src/products/components/detail/price/UnitPriceDialog.vue.d.ts +0 -17
- package/dist/src/products/components/detail/variants/Option.vue.d.ts +0 -33
- package/dist/src/products/components/detail/variants/VariantList.vue.d.ts +0 -38
- package/dist/src/products/components/overview/FilterPopover.vue.d.ts +0 -2
- package/dist/src/products/components/overview/GridView.vue.d.ts +0 -12
- package/dist/src/products/components/overview/ListView.vue.d.ts +0 -12
- package/dist/src/products/components/overview/ProductContextMenu.vue.d.ts +0 -27
- package/dist/src/products/index.vue.d.ts +0 -22
- package/dist/src/products/pages/Detail.vue.d.ts +0 -14
- package/dist/src/products/pages/Overview.vue.d.ts +0 -16
- package/dist/src/promoCodes/components/create/DateRange.vue.d.ts +0 -2
- package/dist/src/promoCodes/components/create/MultiCodes.vue.d.ts +0 -2
- package/dist/src/promoCodes/components/create/Note.vue.d.ts +0 -2
- package/dist/src/promoCodes/components/create/SingleCode.vue.d.ts +0 -2
- package/dist/src/promoCodes/components/create/TypeAndValue/TypeDetailDialog.vue.d.ts +0 -6
- package/dist/src/promoCodes/components/create/TypeAndValue/TypeManageDialog.vue.d.ts +0 -18
- package/dist/src/promoCodes/components/create/TypeAndValue/index.vue.d.ts +0 -2
- package/dist/src/promoCodes/index.vue.d.ts +0 -22
- package/dist/src/promoCodes/pages/Create.vue.d.ts +0 -16
- package/dist/src/promoCodes/pages/Detail.vue.d.ts +0 -14
- package/dist/src/promoCodes/pages/Find.vue.d.ts +0 -16
- package/dist/src/push-notifications/components/PreviewAndroid.vue.d.ts +0 -28
- package/dist/src/push-notifications/components/PreviewIPhone.vue.d.ts +0 -28
- package/dist/src/push-notifications/components/PushPreview.vue.d.ts +0 -28
- package/dist/src/push-notifications/index.vue.d.ts +0 -22
- package/dist/src/push-notifications/pages/SendPush.vue.d.ts +0 -14
- package/dist/src/shared/BrandLogo.vue.d.ts +0 -12
- package/dist/src/shared/DrawerToggle.vue.d.ts +0 -60
- package/dist/src/shared/VerticalToggle.vue.d.ts +0 -60
- package/dist/src/shippingOptions/components/detail/Condition.vue.d.ts +0 -2
- package/dist/src/shippingOptions/components/detail/Countries.vue.d.ts +0 -2
- package/dist/src/shippingOptions/components/detail/Example.vue.d.ts +0 -2
- package/dist/src/shippingOptions/components/detail/Main.vue.d.ts +0 -2
- package/dist/src/shippingOptions/components/overview/ListView.vue.d.ts +0 -12
- package/dist/src/shippingOptions/index.vue.d.ts +0 -22
- package/dist/src/shippingOptions/pages/Detail.vue.d.ts +0 -14
- package/dist/src/shippingOptions/pages/Overview.vue.d.ts +0 -16
- package/dist/src/table/components/DataTable.vue.d.ts +0 -18
- package/dist/src/table/components/DataTableAction.vue.d.ts +0 -14
- package/dist/src/table/components/DataTableMobileRowActionDrawer.vue.d.ts +0 -4
- package/dist/src/table/components/DataTablePagination.vue.d.ts +0 -6
- package/dist/src/table/components/actions/ActionDialog.vue.d.ts +0 -19
- package/dist/src/table/components/actions/CtaActionDialog.vue.d.ts +0 -4
- package/dist/src/table/components/columns/ColumnDropdown.vue.d.ts +0 -2
- package/dist/src/table/components/columns/ColumnEditorDialog.vue.d.ts +0 -34
- package/dist/src/table/components/columns/DialogTableColumnItem.vue.d.ts +0 -12
- package/dist/src/table/components/date-range-filter/DateRangeFilter.vue.d.ts +0 -2
- package/dist/src/table/components/date-range-filter/DateRangeSettingsDialog.vue.d.ts +0 -27
- package/dist/src/table/components/filters/FilterDialog.vue.d.ts +0 -12
- package/dist/src/table/components/filters/Filters.vue.d.ts +0 -27
- package/dist/src/table/components/search/Search.vue.d.ts +0 -2
- package/dist/src/table/components/sort/SortMode.vue.d.ts +0 -2
- package/dist/src/table/components/sort/SortModeSettingsDialog.vue.d.ts +0 -18
- package/dist/src/table/components/stats/StatDialog.vue.d.ts +0 -12
- package/dist/src/table/components/stats/Stats.vue.d.ts +0 -27
- package/dist/src/table/flow-builder-extensions/TableRowEditor.vue.d.ts +0 -16
- package/dist/src/table/index.vue.d.ts +0 -22
- package/dist/src/table/pages/TableView.vue.d.ts +0 -54
- package/dist/utils-CanmrIWO.mjs +0 -47
- package/dist/utils-Yd6F5mea.js +0 -3
- package/dist/vee-validate-zod-ByykgYKJ.js +0 -1
- package/dist/vee-validate-zod-CcOwoF6y.mjs +0 -4402
|
@@ -0,0 +1,718 @@
|
|
|
1
|
+
import { t as e } from "./EditLayout-J_DGXb8v.mjs";
|
|
2
|
+
import { t } from "./lib-BZgXUui5.mjs";
|
|
3
|
+
import { useConfirmation as n, useFirebaseIntegration as r, useModule as i, useModuleRoute as a } from "@oneclick.dev/cms-kit";
|
|
4
|
+
import { Fragment as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, inject as m, nextTick as h, normalizeClass as g, normalizeStyle as _, openBlock as v, provide as y, reactive as b, ref as x, renderList as S, resolveComponent as C, toDisplayString as w, unref as T, useTemplateRef as E, withCtx as D, withModifiers as O } from "vue";
|
|
5
|
+
import { ChevronDown as ee, DollarSign as k, Pencil as A, PlusCircle as j, Trash2 as M, Users as N } from "@lucide/vue";
|
|
6
|
+
//#region src/appointments/components/edit/PaymentAddons/Addon.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
+
var P = { class: "flex gap-3 items-start p-4 border rounded-lg" }, F = { class: "flex-1 space-y-3" }, I = { class: "grid grid-cols-2 gap-3" }, L = { class: "flex items-center space-x-2 my-4" }, R = { class: "grid grid-cols-2 gap-2" }, z = { key: 0 }, B = { key: 1 }, V = { key: 2 }, H = { key: 3 }, U = { key: 4 }, W = { key: 0 }, G = /* @__PURE__ */ p({
|
|
8
|
+
__name: "Addon",
|
|
9
|
+
props: { addOn: {
|
|
10
|
+
type: Object,
|
|
11
|
+
required: !0
|
|
12
|
+
} },
|
|
13
|
+
setup(e) {
|
|
14
|
+
let t = m("form"), n = (e) => {
|
|
15
|
+
t.addOns = t.addOns.filter((t) => t.id !== e);
|
|
16
|
+
};
|
|
17
|
+
return (t, r) => {
|
|
18
|
+
let i = C("Label"), a = C("Input"), o = C("Checkbox"), s = C("SelectTrigger"), p = C("SelectItem"), m = C("SelectGroup"), h = C("SelectContent"), g = C("Select"), _ = C("Trash2"), y = C("Button");
|
|
19
|
+
return v(), l("div", P, [u("div", F, [
|
|
20
|
+
u("div", I, [u("div", null, [f(i, { class: "text-xs mb-1 block" }, {
|
|
21
|
+
default: D(() => [...r[7] ||= [d("Add-on Name", -1)]]),
|
|
22
|
+
_: 1
|
|
23
|
+
}), f(a, {
|
|
24
|
+
modelValue: e.addOn.name,
|
|
25
|
+
"onUpdate:modelValue": r[0] ||= (t) => e.addOn.name = t,
|
|
26
|
+
placeholder: "e.g., Swimsuit Rental, Towel Service"
|
|
27
|
+
}, null, 8, ["modelValue"])]), u("div", null, [f(i, { class: "text-xs mb-1 block" }, {
|
|
28
|
+
default: D(() => [...r[8] ||= [d("Price", -1)]]),
|
|
29
|
+
_: 1
|
|
30
|
+
}), f(a, {
|
|
31
|
+
modelValue: e.addOn.price,
|
|
32
|
+
"onUpdate:modelValue": r[1] ||= (t) => e.addOn.price = t,
|
|
33
|
+
modelModifiers: { number: !0 },
|
|
34
|
+
type: "number",
|
|
35
|
+
min: "0",
|
|
36
|
+
step: "0.01",
|
|
37
|
+
placeholder: "0.00",
|
|
38
|
+
class: "no-spinner"
|
|
39
|
+
}, null, 8, ["modelValue"])])]),
|
|
40
|
+
u("div", null, [f(i, { class: "text-xs mb-1 block" }, {
|
|
41
|
+
default: D(() => [...r[9] ||= [d("Description (Optional)", -1)]]),
|
|
42
|
+
_: 1
|
|
43
|
+
}), f(a, {
|
|
44
|
+
modelValue: e.addOn.description,
|
|
45
|
+
"onUpdate:modelValue": r[2] ||= (t) => e.addOn.description = t,
|
|
46
|
+
placeholder: "Brief description of this add-on"
|
|
47
|
+
}, null, 8, ["modelValue"])]),
|
|
48
|
+
u("div", L, [f(o, {
|
|
49
|
+
id: `required-${e.addOn.id}`,
|
|
50
|
+
modelValue: e.addOn.required,
|
|
51
|
+
"onUpdate:modelValue": r[3] ||= (t) => e.addOn.required = t
|
|
52
|
+
}, null, 8, ["id", "modelValue"]), f(i, {
|
|
53
|
+
for: `required-${e.addOn.id}`,
|
|
54
|
+
class: "text-xs font-normal cursor-pointer"
|
|
55
|
+
}, {
|
|
56
|
+
default: D(() => [...r[10] ||= [d(" Required (customer must select this add-on) ", -1)]]),
|
|
57
|
+
_: 1
|
|
58
|
+
}, 8, ["for"])]),
|
|
59
|
+
u("div", R, [u("div", null, [f(i, { class: "text-xs mb-1 block" }, {
|
|
60
|
+
default: D(() => [...r[11] ||= [d("Quantity limit", -1)]]),
|
|
61
|
+
_: 1
|
|
62
|
+
}), f(g, {
|
|
63
|
+
modelValue: e.addOn.scope,
|
|
64
|
+
"onUpdate:modelValue": r[4] ||= (t) => e.addOn.scope = t
|
|
65
|
+
}, {
|
|
66
|
+
default: D(() => [f(s, { class: "w-full" }, {
|
|
67
|
+
default: D(() => [e.addOn.scope === "RESERVATION" ? (v(), l("span", z, "Once per reservation")) : e.addOn.scope === "TICKET" ? (v(), l("span", B, "Once per ticket / person")) : e.addOn.scope === "UNLIMITED" ? (v(), l("span", V, "Unlimited")) : e.addOn.scope === "CUSTOM_LIMIT" ? (v(), l("span", H, "Custom limit...")) : (v(), l("span", U, "Select a limit…"))]),
|
|
68
|
+
_: 1
|
|
69
|
+
}), f(h, null, {
|
|
70
|
+
default: D(() => [f(m, { class: "max-w-96" }, {
|
|
71
|
+
default: D(() => [
|
|
72
|
+
f(p, { value: "RESERVATION" }, {
|
|
73
|
+
default: D(() => [...r[12] ||= [u("div", { class: "flex flex-col" }, [u("p", { class: "text-sm font-bold mb-1" }, "Once per reservation"), u("p", { class: "text-xs" }, "Max 1 per reservation line (charged per reservation).")], -1)]]),
|
|
74
|
+
_: 1
|
|
75
|
+
}),
|
|
76
|
+
f(p, { value: "TICKET" }, {
|
|
77
|
+
default: D(() => [...r[13] ||= [u("div", { class: "flex flex-col" }, [u("p", { class: "text-sm font-bold mb-1" }, "Once per ticket / person"), u("p", { class: "text-xs" }, "Max 1 per ticket/person (charged per quantity).")], -1)]]),
|
|
78
|
+
_: 1
|
|
79
|
+
}),
|
|
80
|
+
f(p, { value: "UNLIMITED" }, {
|
|
81
|
+
default: D(() => [...r[14] ||= [u("div", { class: "flex flex-col" }, [u("p", { class: "text-sm font-bold mb-1" }, "Unlimited"), u("p", { class: "text-xs" }, "No limit (can be added multiple times).")], -1)]]),
|
|
82
|
+
_: 1
|
|
83
|
+
}),
|
|
84
|
+
f(p, { value: "CUSTOM_LIMIT" }, {
|
|
85
|
+
default: D(() => [...r[15] ||= [u("div", { class: "flex flex-col" }, [u("p", { class: "text-sm font-bold mb-1" }, "Custom limit..."), u("p", { class: "text-xs" }, "Set a fixed max amount (e.g. 2, 5, 10).")], -1)]]),
|
|
86
|
+
_: 1
|
|
87
|
+
})
|
|
88
|
+
]),
|
|
89
|
+
_: 1
|
|
90
|
+
})]),
|
|
91
|
+
_: 1
|
|
92
|
+
})]),
|
|
93
|
+
_: 1
|
|
94
|
+
}, 8, ["modelValue"])]), e.addOn.scope === "CUSTOM_LIMIT" ? (v(), l("div", W, [f(i, { class: "text-xs mb-1 block" }, {
|
|
95
|
+
default: D(() => [...r[16] ||= [d("Fixed limit", -1)]]),
|
|
96
|
+
_: 1
|
|
97
|
+
}), f(a, {
|
|
98
|
+
modelValue: e.addOn.limit,
|
|
99
|
+
"onUpdate:modelValue": r[5] ||= (t) => e.addOn.limit = t,
|
|
100
|
+
modelModifiers: { number: !0 },
|
|
101
|
+
type: "number",
|
|
102
|
+
min: "1",
|
|
103
|
+
step: "1",
|
|
104
|
+
placeholder: "1",
|
|
105
|
+
class: "no-spinner"
|
|
106
|
+
}, null, 8, ["modelValue"])])) : c("", !0)])
|
|
107
|
+
]), f(y, {
|
|
108
|
+
onClick: r[6] ||= (t) => n(e.addOn.id),
|
|
109
|
+
variant: "ghost",
|
|
110
|
+
size: "icon",
|
|
111
|
+
class: "mt-6"
|
|
112
|
+
}, {
|
|
113
|
+
default: D(() => [f(_, { class: "w-4 h-4 text-destructive" })]),
|
|
114
|
+
_: 1
|
|
115
|
+
})]);
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
}), te = { class: "grid gap-2" }, K = ["id"], q = ["onClick"], J = { class: "flex items-center gap-2" }, Y = { class: "flex items-center gap-1" }, X = { class: "overflow-hidden" }, Z = /* @__PURE__ */ p({
|
|
119
|
+
__name: "AddonList",
|
|
120
|
+
setup(e, { expose: r }) {
|
|
121
|
+
let { confirm: i } = n(), a = m("form"), s = x([]), c = async (e) => {
|
|
122
|
+
if (!await i("Are you sure you want to remove this add-on?")) return;
|
|
123
|
+
a.addOns = a.addOns.filter((t) => t.id !== e);
|
|
124
|
+
let n = s.value.indexOf(e);
|
|
125
|
+
n !== -1 && s.value.splice(n, 1), t("Success!", { description: "Add-on removed successfully." });
|
|
126
|
+
};
|
|
127
|
+
return r({ openAddons: s }), (e, t) => {
|
|
128
|
+
let n = C("Button");
|
|
129
|
+
return v(), l("div", te, [(v(!0), l(o, null, S(T(a).addOns, (e) => (v(), l("div", {
|
|
130
|
+
key: e.id,
|
|
131
|
+
class: "border p-2 rounded",
|
|
132
|
+
id: `addon-${e.id}`
|
|
133
|
+
}, [u("div", {
|
|
134
|
+
onClick: (t) => s.value.includes(e.id) ? s.value.splice(s.value.indexOf(e.id), 1) : s.value.push(e.id),
|
|
135
|
+
class: "cursor-pointer font-bold text-muted-foreground flex items-center justify-between gap-2 select-none"
|
|
136
|
+
}, [u("span", J, [f(T(k), { class: "size-4" }), d(" " + w(e.name || "Untitled Add-on"), 1)]), u("div", Y, [f(n, {
|
|
137
|
+
variant: "ghost",
|
|
138
|
+
size: "icon"
|
|
139
|
+
}, {
|
|
140
|
+
default: D(() => [f(T(A), { class: "size-4" })]),
|
|
141
|
+
_: 1
|
|
142
|
+
}), f(n, {
|
|
143
|
+
variant: "ghost",
|
|
144
|
+
size: "icon",
|
|
145
|
+
onClick: O((t) => c(e.id), ["stop"])
|
|
146
|
+
}, {
|
|
147
|
+
default: D(() => [f(T(M), { class: "size-4 text-red-500" })]),
|
|
148
|
+
_: 1
|
|
149
|
+
}, 8, ["onClick"])])], 8, q), u("div", { class: g(["grid", `${s.value.includes(e.id) ? "grid-rows-[1fr]" : "grid-rows-[0fr]"} transition-all duration-300 ease-in-out overflow-hidden`]) }, [u("div", X, [f(G, { addOn: e }, null, 8, ["addOn"])])], 2)], 8, K))), 128))]);
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
}), Q = { class: "flex items-center justify-between mb-4" }, ne = { class: "space-y-3" }, re = {
|
|
153
|
+
key: 0,
|
|
154
|
+
class: "text-center py-8 text-muted-foreground text-sm border rounded-lg"
|
|
155
|
+
}, ie = /* @__PURE__ */ p({
|
|
156
|
+
__name: "index",
|
|
157
|
+
setup(e) {
|
|
158
|
+
let t = m("form"), n = E("addonList"), r = async () => {
|
|
159
|
+
let e = Math.random().toString(36).substr(2, 9);
|
|
160
|
+
t.addOns.push({
|
|
161
|
+
id: e,
|
|
162
|
+
name: "",
|
|
163
|
+
description: "",
|
|
164
|
+
price: 0,
|
|
165
|
+
required: !1
|
|
166
|
+
}), n.value?.openAddons.push(e), await h(), document.getElementById(`addon-${e}`)?.scrollIntoView({
|
|
167
|
+
behavior: "smooth",
|
|
168
|
+
block: "start"
|
|
169
|
+
});
|
|
170
|
+
};
|
|
171
|
+
return (e, i) => {
|
|
172
|
+
let a = C("Label"), o = C("Button");
|
|
173
|
+
return v(), l("div", null, [u("div", Q, [u("div", null, [f(a, { class: "text-base font-medium" }, {
|
|
174
|
+
default: D(() => [...i[0] ||= [d(" Optional Add-ons & Upcharges ", -1)]]),
|
|
175
|
+
_: 1
|
|
176
|
+
}), i[1] ||= u("p", { class: "text-sm text-muted-foreground mt-1" }, " Offer optional extras that customers can add to their booking (e.g., swimsuit rental). ", -1)]), f(o, {
|
|
177
|
+
onClick: r,
|
|
178
|
+
variant: "outline",
|
|
179
|
+
size: "sm"
|
|
180
|
+
}, {
|
|
181
|
+
default: D(() => [f(T(j), { class: "w-4 h-4 mr-2" }), i[2] ||= d(" Add Add-on ", -1)]),
|
|
182
|
+
_: 1
|
|
183
|
+
})]), u("div", ne, [f(Z, {
|
|
184
|
+
ref_key: "addonList",
|
|
185
|
+
ref: n
|
|
186
|
+
}, null, 512), T(t).addOns.length === 0 ? (v(), l("div", re, " No add-ons configured. Click \"Add Add-on\" to create optional extras. ")) : c("", !0)])]);
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
}), ae = {
|
|
190
|
+
key: 0,
|
|
191
|
+
class: "max-w-2xl space-y-12"
|
|
192
|
+
}, oe = { class: "flex gap-4 items-end" }, se = { class: "w-32" }, ce = { class: "flex items-center justify-between mb-4 gap-4" }, le = { class: "space-y-3" }, ue = { class: "flex-1 space-y-3" }, de = { class: "flex gap-3" }, fe = { class: "flex-1" }, pe = { class: "flex-1" }, me = { class: "flex items-end" }, he = { class: "flex items-center justify-between mb-4" }, ge = { class: "space-y-3" }, _e = { class: "flex-1 space-y-3" }, ve = { class: "grid grid-cols-2 gap-3" }, ye = { class: "grid grid-cols-2 gap-3" }, be = { key: 0 }, xe = { class: "flex items-center gap-2" }, Se = { key: 0 }, Ce = { key: 1 }, we = { key: 2 }, Te = { class: "space-y-1" }, Ee = ["onClick"], De = { class: "size-5 rounded-full bg-muted flex items-center justify-center" }, $ = {
|
|
193
|
+
key: 0,
|
|
194
|
+
class: "w-full h-full rounded-full bg-white scale-50"
|
|
195
|
+
}, Oe = ["onClick"], ke = { class: "text-sm flex-1 truncate" }, Ae = {
|
|
196
|
+
key: 0,
|
|
197
|
+
class: "w-3 h-3 text-white",
|
|
198
|
+
fill: "none",
|
|
199
|
+
viewBox: "0 0 24 24",
|
|
200
|
+
stroke: "currentColor"
|
|
201
|
+
}, je = {
|
|
202
|
+
key: 0,
|
|
203
|
+
class: "text-center py-8 text-muted-foreground text-sm border rounded-lg"
|
|
204
|
+
}, Me = {
|
|
205
|
+
key: 0,
|
|
206
|
+
class: "mt-6 p-4 border rounded-lg bg-muted/30"
|
|
207
|
+
}, Ne = { class: "space-y-4" }, Pe = { class: "flex items-center gap-3" }, Fe = { class: "flex-1" }, Ie = { class: "text-sm text-muted-foreground" }, Le = { class: "text-xs text-muted-foreground" }, Re = { class: "flex justify-start pt-4 border-t" }, ze = /* @__PURE__ */ p({
|
|
208
|
+
__name: "payment",
|
|
209
|
+
setup(t) {
|
|
210
|
+
let { params: n } = a(), { config: p } = i(), m = r(p.project), h = b({
|
|
211
|
+
paymentType: "full",
|
|
212
|
+
currency: "USD",
|
|
213
|
+
partialPayment: {
|
|
214
|
+
type: "percentage",
|
|
215
|
+
amount: 50
|
|
216
|
+
},
|
|
217
|
+
pricingOptions: [{
|
|
218
|
+
id: "1",
|
|
219
|
+
name: "Standard Service",
|
|
220
|
+
price: 0,
|
|
221
|
+
duration: 30,
|
|
222
|
+
isDefault: !0
|
|
223
|
+
}],
|
|
224
|
+
pricingRules: [],
|
|
225
|
+
addOns: []
|
|
226
|
+
}), E = x(!1), O = x(!0), k = x([]), A = (e, t) => {
|
|
227
|
+
if (!e.resourceIds) e.resourceIds = [t];
|
|
228
|
+
else {
|
|
229
|
+
let n = e.resourceIds.indexOf(t);
|
|
230
|
+
n === -1 ? e.resourceIds.push(t) : e.resourceIds.splice(n, 1);
|
|
231
|
+
}
|
|
232
|
+
}, P = (e, t) => {
|
|
233
|
+
e.resourceIds = t ? null : [];
|
|
234
|
+
}, F = async () => {
|
|
235
|
+
E.value = !0;
|
|
236
|
+
try {
|
|
237
|
+
let e = n.value.id;
|
|
238
|
+
if (!e) throw Error("Missing agenda ID");
|
|
239
|
+
await m.update(p.agendaCollection, e, {
|
|
240
|
+
paymentType: h.paymentType || "full",
|
|
241
|
+
currency: h.currency || "USD",
|
|
242
|
+
partialPayment: {
|
|
243
|
+
type: h.partialPayment.type || "percentage",
|
|
244
|
+
amount: Math.max(Number(h.partialPayment.amount) || 0, 0)
|
|
245
|
+
},
|
|
246
|
+
pricingOptions: h.pricingOptions ?? [],
|
|
247
|
+
pricingRules: h.pricingRules ?? [],
|
|
248
|
+
addOns: h.addOns ?? []
|
|
249
|
+
});
|
|
250
|
+
} catch (e) {
|
|
251
|
+
console.error("Error saving changes:", e);
|
|
252
|
+
} finally {
|
|
253
|
+
E.value = !1;
|
|
254
|
+
}
|
|
255
|
+
}, I = () => {
|
|
256
|
+
let e = Math.random().toString(36).substr(2, 9);
|
|
257
|
+
h.pricingOptions.push({
|
|
258
|
+
id: e,
|
|
259
|
+
name: "",
|
|
260
|
+
price: 0,
|
|
261
|
+
duration: 30,
|
|
262
|
+
isDefault: !1
|
|
263
|
+
});
|
|
264
|
+
}, L = (e) => {
|
|
265
|
+
h.pricingOptions = h.pricingOptions.filter((t) => t.id !== e);
|
|
266
|
+
}, R = (e) => {
|
|
267
|
+
h.pricingOptions.forEach((t) => {
|
|
268
|
+
t.isDefault = t.id === e;
|
|
269
|
+
});
|
|
270
|
+
}, z = () => {
|
|
271
|
+
let e = Math.random().toString(36).substr(2, 9);
|
|
272
|
+
h.pricingRules.push({
|
|
273
|
+
id: e,
|
|
274
|
+
name: "",
|
|
275
|
+
condition: "time_after",
|
|
276
|
+
conditionValue: "17:00",
|
|
277
|
+
modifier: "fixed",
|
|
278
|
+
amount: 10,
|
|
279
|
+
resourceIds: null
|
|
280
|
+
});
|
|
281
|
+
}, B = (e) => {
|
|
282
|
+
h.pricingRules = h.pricingRules.filter((t) => t.id !== e);
|
|
283
|
+
};
|
|
284
|
+
return (async () => {
|
|
285
|
+
try {
|
|
286
|
+
let e = await m.get(p.agendaCollection, n.value.id);
|
|
287
|
+
e && (h.paymentType = e.paymentType || "full", h.currency = e.currency || "USD", h.partialPayment = {
|
|
288
|
+
type: e.partialPayment?.type || "percentage",
|
|
289
|
+
amount: Number(e.partialPayment?.amount) && e.partialPayment.amount > 0 ? parseFloat(e.partialPayment.amount) : 50
|
|
290
|
+
}, h.pricingOptions = e.pricingOptions || [{
|
|
291
|
+
id: "1",
|
|
292
|
+
name: "Standard Service",
|
|
293
|
+
price: 0,
|
|
294
|
+
duration: 30,
|
|
295
|
+
isDefault: !0
|
|
296
|
+
}], h.pricingRules = e.pricingRules || [], h.addOns = e.addOns || [], k.value = (e.resources || []).filter((e) => e.isActive));
|
|
297
|
+
} catch (e) {
|
|
298
|
+
console.error("Error loading agenda data:", e);
|
|
299
|
+
} finally {
|
|
300
|
+
O.value = !1;
|
|
301
|
+
}
|
|
302
|
+
})(), y("form", h), (t, n) => {
|
|
303
|
+
let r = C("Label"), i = C("SelectValue"), a = C("SelectTrigger"), p = C("SelectItem"), m = C("SelectContent"), y = C("Select"), b = C("Button"), x = C("Input"), V = C("PopoverTrigger"), H = C("PopoverContent"), U = C("Popover"), W = C("RadioGroupItem"), G = C("RadioGroup");
|
|
304
|
+
return v(), s(e, null, {
|
|
305
|
+
default: D(() => [n[53] ||= u("h1", { class: "text-lg font-medium mb-8" }, "Payment Settings", -1), O.value ? c("", !0) : (v(), l("div", ae, [
|
|
306
|
+
u("div", null, [u("div", oe, [u("div", se, [f(r, { class: "text-base font-medium mb-2" }, {
|
|
307
|
+
default: D(() => [...n[4] ||= [d(" Currency ", -1)]]),
|
|
308
|
+
_: 1
|
|
309
|
+
}), f(y, {
|
|
310
|
+
modelValue: h.currency,
|
|
311
|
+
"onUpdate:modelValue": n[0] ||= (e) => h.currency = e
|
|
312
|
+
}, {
|
|
313
|
+
default: D(() => [f(a, { id: "currency" }, {
|
|
314
|
+
default: D(() => [f(i, { placeholder: "Currency" })]),
|
|
315
|
+
_: 1
|
|
316
|
+
}), f(m, null, {
|
|
317
|
+
default: D(() => [
|
|
318
|
+
f(p, { value: "USD" }, {
|
|
319
|
+
default: D(() => [...n[5] ||= [d("USD ($)", -1)]]),
|
|
320
|
+
_: 1
|
|
321
|
+
}),
|
|
322
|
+
f(p, { value: "EUR" }, {
|
|
323
|
+
default: D(() => [...n[6] ||= [d("EUR (€)", -1)]]),
|
|
324
|
+
_: 1
|
|
325
|
+
}),
|
|
326
|
+
f(p, { value: "GBP" }, {
|
|
327
|
+
default: D(() => [...n[7] ||= [d("GBP (£)", -1)]]),
|
|
328
|
+
_: 1
|
|
329
|
+
}),
|
|
330
|
+
f(p, { value: "CAD" }, {
|
|
331
|
+
default: D(() => [...n[8] ||= [d("CAD ($)", -1)]]),
|
|
332
|
+
_: 1
|
|
333
|
+
})
|
|
334
|
+
]),
|
|
335
|
+
_: 1
|
|
336
|
+
})]),
|
|
337
|
+
_: 1
|
|
338
|
+
}, 8, ["modelValue"])])])]),
|
|
339
|
+
u("div", null, [u("div", ce, [u("div", null, [f(r, { class: "text-base font-medium" }, {
|
|
340
|
+
default: D(() => [...n[9] ||= [d(" Service Pricing Options ", -1)]]),
|
|
341
|
+
_: 1
|
|
342
|
+
}), n[10] ||= u("p", { class: "text-sm text-muted-foreground mt-1" }, " Offer multiple service variations with different prices (e.g., haircut styles, massage types). ", -1)]), f(b, {
|
|
343
|
+
onClick: I,
|
|
344
|
+
variant: "outline",
|
|
345
|
+
size: "sm"
|
|
346
|
+
}, {
|
|
347
|
+
default: D(() => [f(T(j), { class: "w-4 h-4 mr-2" }), n[11] ||= d(" Add Option ", -1)]),
|
|
348
|
+
_: 1
|
|
349
|
+
})]), u("div", le, [(v(!0), l(o, null, S(h.pricingOptions, (e) => (v(), l("div", {
|
|
350
|
+
key: e.id,
|
|
351
|
+
class: "flex gap-3 items-start p-4 border rounded-lg"
|
|
352
|
+
}, [u("div", ue, [u("div", null, [f(r, { class: "text-xs mb-1 block" }, {
|
|
353
|
+
default: D(() => [...n[12] ||= [d("Service Name", -1)]]),
|
|
354
|
+
_: 1
|
|
355
|
+
}), f(x, {
|
|
356
|
+
modelValue: e.name,
|
|
357
|
+
"onUpdate:modelValue": (t) => e.name = t,
|
|
358
|
+
placeholder: "e.g., Men's Haircut, Women's Haircut"
|
|
359
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])]), u("div", de, [
|
|
360
|
+
u("div", fe, [f(r, { class: "text-xs mb-1 block" }, {
|
|
361
|
+
default: D(() => [...n[13] ||= [d("Price", -1)]]),
|
|
362
|
+
_: 1
|
|
363
|
+
}), f(x, {
|
|
364
|
+
modelValue: e.price,
|
|
365
|
+
"onUpdate:modelValue": (t) => e.price = t,
|
|
366
|
+
modelModifiers: { number: !0 },
|
|
367
|
+
type: "number",
|
|
368
|
+
min: "0",
|
|
369
|
+
step: "0.01",
|
|
370
|
+
placeholder: "0.00",
|
|
371
|
+
class: "no-spinner"
|
|
372
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])]),
|
|
373
|
+
u("div", pe, [f(r, { class: "text-xs mb-1 block" }, {
|
|
374
|
+
default: D(() => [...n[14] ||= [d("Duration", -1)]]),
|
|
375
|
+
_: 1
|
|
376
|
+
}), f(y, {
|
|
377
|
+
modelValue: e.duration,
|
|
378
|
+
"onUpdate:modelValue": (t) => e.duration = t,
|
|
379
|
+
modelModifiers: { number: !0 }
|
|
380
|
+
}, {
|
|
381
|
+
default: D(() => [f(a, null, {
|
|
382
|
+
default: D(() => [f(i, { placeholder: "Duration" })]),
|
|
383
|
+
_: 1
|
|
384
|
+
}), f(m, null, {
|
|
385
|
+
default: D(() => [
|
|
386
|
+
f(p, { value: 15 }, {
|
|
387
|
+
default: D(() => [...n[15] ||= [d("15 min", -1)]]),
|
|
388
|
+
_: 1
|
|
389
|
+
}),
|
|
390
|
+
f(p, { value: 30 }, {
|
|
391
|
+
default: D(() => [...n[16] ||= [d("30 min", -1)]]),
|
|
392
|
+
_: 1
|
|
393
|
+
}),
|
|
394
|
+
f(p, { value: 45 }, {
|
|
395
|
+
default: D(() => [...n[17] ||= [d("45 min", -1)]]),
|
|
396
|
+
_: 1
|
|
397
|
+
}),
|
|
398
|
+
f(p, { value: 60 }, {
|
|
399
|
+
default: D(() => [...n[18] ||= [d("1 hour", -1)]]),
|
|
400
|
+
_: 1
|
|
401
|
+
}),
|
|
402
|
+
f(p, { value: 90 }, {
|
|
403
|
+
default: D(() => [...n[19] ||= [d("1.5 hours", -1)]]),
|
|
404
|
+
_: 1
|
|
405
|
+
}),
|
|
406
|
+
f(p, { value: 120 }, {
|
|
407
|
+
default: D(() => [...n[20] ||= [d("2 hours", -1)]]),
|
|
408
|
+
_: 1
|
|
409
|
+
}),
|
|
410
|
+
f(p, { value: 180 }, {
|
|
411
|
+
default: D(() => [...n[21] ||= [d("3 hours", -1)]]),
|
|
412
|
+
_: 1
|
|
413
|
+
}),
|
|
414
|
+
f(p, { value: 240 }, {
|
|
415
|
+
default: D(() => [...n[22] ||= [d("4 hours", -1)]]),
|
|
416
|
+
_: 1
|
|
417
|
+
}),
|
|
418
|
+
f(p, { value: 300 }, {
|
|
419
|
+
default: D(() => [...n[23] ||= [d("5 hours", -1)]]),
|
|
420
|
+
_: 1
|
|
421
|
+
}),
|
|
422
|
+
f(p, { value: 360 }, {
|
|
423
|
+
default: D(() => [...n[24] ||= [d("6 hours", -1)]]),
|
|
424
|
+
_: 1
|
|
425
|
+
}),
|
|
426
|
+
f(p, { value: 480 }, {
|
|
427
|
+
default: D(() => [...n[25] ||= [d("8 hours", -1)]]),
|
|
428
|
+
_: 1
|
|
429
|
+
})
|
|
430
|
+
]),
|
|
431
|
+
_: 1
|
|
432
|
+
})]),
|
|
433
|
+
_: 1
|
|
434
|
+
}, 8, ["modelValue", "onUpdate:modelValue"])]),
|
|
435
|
+
u("div", me, [f(b, {
|
|
436
|
+
onClick: (t) => R(e.id),
|
|
437
|
+
variant: e.isDefault ? "default" : "outline",
|
|
438
|
+
size: "sm"
|
|
439
|
+
}, {
|
|
440
|
+
default: D(() => [d(w(e.isDefault ? "Default" : "Set Default"), 1)]),
|
|
441
|
+
_: 2
|
|
442
|
+
}, 1032, ["onClick", "variant"])])
|
|
443
|
+
])]), h.pricingOptions.length > 1 ? (v(), s(b, {
|
|
444
|
+
key: 0,
|
|
445
|
+
onClick: (t) => L(e.id),
|
|
446
|
+
variant: "ghost",
|
|
447
|
+
size: "icon",
|
|
448
|
+
class: "mt-6"
|
|
449
|
+
}, {
|
|
450
|
+
default: D(() => [f(T(M), { class: "w-4 h-4 text-destructive" })]),
|
|
451
|
+
_: 1
|
|
452
|
+
}, 8, ["onClick"])) : c("", !0)]))), 128))])]),
|
|
453
|
+
u("div", null, [u("div", he, [u("div", null, [f(r, { class: "text-base font-medium" }, {
|
|
454
|
+
default: D(() => [...n[26] ||= [d(" Conditional Pricing Rules ", -1)]]),
|
|
455
|
+
_: 1
|
|
456
|
+
}), n[27] ||= u("p", { class: "text-sm text-muted-foreground mt-1" }, " Add extra fees based on time, day, or other conditions (e.g., +€10 after 5pm). ", -1)]), f(b, {
|
|
457
|
+
onClick: z,
|
|
458
|
+
variant: "outline",
|
|
459
|
+
size: "sm"
|
|
460
|
+
}, {
|
|
461
|
+
default: D(() => [f(T(j), { class: "w-4 h-4 mr-2" }), n[28] ||= d(" Add Rule ", -1)]),
|
|
462
|
+
_: 1
|
|
463
|
+
})]), u("div", ge, [(v(!0), l(o, null, S(h.pricingRules, (e) => (v(), l("div", {
|
|
464
|
+
key: e.id,
|
|
465
|
+
class: "flex gap-3 items-start p-4 border rounded-lg"
|
|
466
|
+
}, [u("div", _e, [
|
|
467
|
+
u("div", null, [f(r, { class: "text-xs mb-1 block" }, {
|
|
468
|
+
default: D(() => [...n[29] ||= [d("Rule Name", -1)]]),
|
|
469
|
+
_: 1
|
|
470
|
+
}), f(x, {
|
|
471
|
+
modelValue: e.name,
|
|
472
|
+
"onUpdate:modelValue": (t) => e.name = t,
|
|
473
|
+
placeholder: "e.g., After Hours Fee, Weekend Surcharge"
|
|
474
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])]),
|
|
475
|
+
u("div", ve, [u("div", null, [f(r, { class: "text-xs mb-1 block" }, {
|
|
476
|
+
default: D(() => [...n[30] ||= [d("Condition", -1)]]),
|
|
477
|
+
_: 1
|
|
478
|
+
}), f(y, {
|
|
479
|
+
modelValue: e.condition,
|
|
480
|
+
"onUpdate:modelValue": (t) => e.condition = t
|
|
481
|
+
}, {
|
|
482
|
+
default: D(() => [f(a, null, {
|
|
483
|
+
default: D(() => [f(i, { placeholder: "Select condition" })]),
|
|
484
|
+
_: 1
|
|
485
|
+
}), f(m, null, {
|
|
486
|
+
default: D(() => [
|
|
487
|
+
f(p, { value: "time_after" }, {
|
|
488
|
+
default: D(() => [...n[31] ||= [d("Time After", -1)]]),
|
|
489
|
+
_: 1
|
|
490
|
+
}),
|
|
491
|
+
f(p, { value: "time_before" }, {
|
|
492
|
+
default: D(() => [...n[32] ||= [d("Time Before", -1)]]),
|
|
493
|
+
_: 1
|
|
494
|
+
}),
|
|
495
|
+
f(p, { value: "time_between" }, {
|
|
496
|
+
default: D(() => [...n[33] ||= [d("Time Between", -1)]]),
|
|
497
|
+
_: 1
|
|
498
|
+
}),
|
|
499
|
+
f(p, { value: "day_of_week" }, {
|
|
500
|
+
default: D(() => [...n[34] ||= [d("Day of Week", -1)]]),
|
|
501
|
+
_: 1
|
|
502
|
+
}),
|
|
503
|
+
f(p, { value: "date_range" }, {
|
|
504
|
+
default: D(() => [...n[35] ||= [d("Date Range", -1)]]),
|
|
505
|
+
_: 1
|
|
506
|
+
})
|
|
507
|
+
]),
|
|
508
|
+
_: 1
|
|
509
|
+
})]),
|
|
510
|
+
_: 1
|
|
511
|
+
}, 8, ["modelValue", "onUpdate:modelValue"])]), u("div", null, [f(r, { class: "text-xs mb-1 block" }, {
|
|
512
|
+
default: D(() => [...n[36] ||= [d("Value", -1)]]),
|
|
513
|
+
_: 1
|
|
514
|
+
}), f(x, {
|
|
515
|
+
modelValue: e.conditionValue,
|
|
516
|
+
"onUpdate:modelValue": (t) => e.conditionValue = t,
|
|
517
|
+
type: e.condition.includes("time") ? "time" : "text",
|
|
518
|
+
placeholder: "e.g., 17:00"
|
|
519
|
+
}, null, 8, [
|
|
520
|
+
"modelValue",
|
|
521
|
+
"onUpdate:modelValue",
|
|
522
|
+
"type"
|
|
523
|
+
])])]),
|
|
524
|
+
u("div", ye, [u("div", null, [f(r, { class: "text-xs mb-1 block" }, {
|
|
525
|
+
default: D(() => [...n[37] ||= [d("Fee Type", -1)]]),
|
|
526
|
+
_: 1
|
|
527
|
+
}), f(y, {
|
|
528
|
+
modelValue: e.modifier,
|
|
529
|
+
"onUpdate:modelValue": (t) => e.modifier = t
|
|
530
|
+
}, {
|
|
531
|
+
default: D(() => [f(a, null, {
|
|
532
|
+
default: D(() => [f(i, { placeholder: "Select type" })]),
|
|
533
|
+
_: 1
|
|
534
|
+
}), f(m, null, {
|
|
535
|
+
default: D(() => [f(p, { value: "fixed" }, {
|
|
536
|
+
default: D(() => [...n[38] ||= [d("Fixed Amount", -1)]]),
|
|
537
|
+
_: 1
|
|
538
|
+
}), f(p, { value: "percentage" }, {
|
|
539
|
+
default: D(() => [...n[39] ||= [d("Percentage", -1)]]),
|
|
540
|
+
_: 1
|
|
541
|
+
})]),
|
|
542
|
+
_: 1
|
|
543
|
+
})]),
|
|
544
|
+
_: 1
|
|
545
|
+
}, 8, ["modelValue", "onUpdate:modelValue"])]), u("div", null, [f(r, { class: "text-xs mb-1 block" }, {
|
|
546
|
+
default: D(() => [...n[40] ||= [d("Amount", -1)]]),
|
|
547
|
+
_: 1
|
|
548
|
+
}), f(x, {
|
|
549
|
+
modelValue: e.amount,
|
|
550
|
+
"onUpdate:modelValue": (t) => e.amount = t,
|
|
551
|
+
modelModifiers: { number: !0 },
|
|
552
|
+
type: "number",
|
|
553
|
+
min: "0",
|
|
554
|
+
step: "0.01",
|
|
555
|
+
class: "no-spinner",
|
|
556
|
+
placeholder: e.modifier === "percentage" ? "10 (%)" : "10.00"
|
|
557
|
+
}, null, 8, [
|
|
558
|
+
"modelValue",
|
|
559
|
+
"onUpdate:modelValue",
|
|
560
|
+
"placeholder"
|
|
561
|
+
])])]),
|
|
562
|
+
k.value.length > 0 ? (v(), l("div", be, [f(r, { class: "text-xs mb-1 block" }, {
|
|
563
|
+
default: D(() => [...n[41] ||= [d("Apply To Resources", -1)]]),
|
|
564
|
+
_: 1
|
|
565
|
+
}), f(U, null, {
|
|
566
|
+
default: D(() => [f(V, { "as-child": "" }, {
|
|
567
|
+
default: D(() => [f(b, {
|
|
568
|
+
variant: "outline",
|
|
569
|
+
class: "w-full justify-between font-normal"
|
|
570
|
+
}, {
|
|
571
|
+
default: D(() => [u("div", xe, [f(T(N), { class: "w-4 h-4 text-muted-foreground" }), !e.resourceIds || e.resourceIds.length === 0 ? (v(), l("span", Se, "All Resources")) : e.resourceIds.length === 1 ? (v(), l("span", Ce, w(k.value.find((t) => t.id === e.resourceIds[0])?.name || "1 resource"), 1)) : (v(), l("span", we, w(e.resourceIds.length) + " resources", 1))]), f(T(ee), { class: "w-4 h-4 opacity-50" })]),
|
|
572
|
+
_: 2
|
|
573
|
+
}, 1024)]),
|
|
574
|
+
_: 2
|
|
575
|
+
}, 1024), f(H, {
|
|
576
|
+
class: "w-64 p-2",
|
|
577
|
+
align: "start"
|
|
578
|
+
}, {
|
|
579
|
+
default: D(() => [u("div", Te, [
|
|
580
|
+
u("div", {
|
|
581
|
+
class: g(["flex items-center gap-2 p-2 rounded-md hover:bg-muted cursor-pointer transition-colors", { "bg-muted": !e.resourceIds || e.resourceIds.length === 0 }]),
|
|
582
|
+
onClick: (t) => P(e, !0)
|
|
583
|
+
}, [
|
|
584
|
+
u("div", De, [f(T(N), { class: "w-3 h-3 text-muted-foreground" })]),
|
|
585
|
+
n[42] ||= u("span", { class: "text-sm flex-1" }, "All Resources", -1),
|
|
586
|
+
u("div", { class: g(["size-4 rounded-full border-2", !e.resourceIds || e.resourceIds.length === 0 ? "border-primary bg-primary" : "border-muted-foreground"]) }, [!e.resourceIds || e.resourceIds.length === 0 ? (v(), l("div", $)) : c("", !0)], 2)
|
|
587
|
+
], 10, Ee),
|
|
588
|
+
n[44] ||= u("div", { class: "border-t my-2" }, null, -1),
|
|
589
|
+
(v(!0), l(o, null, S(k.value, (t) => (v(), l("div", {
|
|
590
|
+
key: t.id,
|
|
591
|
+
class: "flex items-center gap-2 p-2 rounded-md hover:bg-muted cursor-pointer transition-colors",
|
|
592
|
+
onClick: (n) => {
|
|
593
|
+
P(e, !1), A(e, t.id);
|
|
594
|
+
}
|
|
595
|
+
}, [
|
|
596
|
+
u("div", {
|
|
597
|
+
class: "size-5 rounded-full flex items-center justify-center text-white text-[10px] font-medium",
|
|
598
|
+
style: _({ backgroundColor: t.color || "#6b7280" })
|
|
599
|
+
}, w(t.avatarLabel || t.name.charAt(0).toUpperCase()), 5),
|
|
600
|
+
u("span", ke, w(t.name), 1),
|
|
601
|
+
u("div", { class: g(["size-4 rounded border-2 flex items-center justify-center", e.resourceIds?.includes(t.id) ? "border-primary bg-primary" : "border-muted-foreground"]) }, [e.resourceIds?.includes(t.id) ? (v(), l("svg", Ae, [...n[43] ||= [u("path", {
|
|
602
|
+
"stroke-linecap": "round",
|
|
603
|
+
"stroke-linejoin": "round",
|
|
604
|
+
"stroke-width": "3",
|
|
605
|
+
d: "M5 13l4 4L19 7"
|
|
606
|
+
}, null, -1)]])) : c("", !0)], 2)
|
|
607
|
+
], 8, Oe))), 128))
|
|
608
|
+
])]),
|
|
609
|
+
_: 2
|
|
610
|
+
}, 1024)]),
|
|
611
|
+
_: 2
|
|
612
|
+
}, 1024)])) : c("", !0)
|
|
613
|
+
]), f(b, {
|
|
614
|
+
onClick: (t) => B(e.id),
|
|
615
|
+
variant: "ghost",
|
|
616
|
+
size: "icon",
|
|
617
|
+
class: "mt-6"
|
|
618
|
+
}, {
|
|
619
|
+
default: D(() => [f(T(M), { class: "w-4 h-4 text-destructive" })]),
|
|
620
|
+
_: 1
|
|
621
|
+
}, 8, ["onClick"])]))), 128)), h.pricingRules.length === 0 ? (v(), l("div", je, " No pricing rules configured. Click \"Add Rule\" to create conditional fees. ")) : c("", !0)])]),
|
|
622
|
+
f(ie),
|
|
623
|
+
u("div", null, [
|
|
624
|
+
f(r, { class: "text-base font-medium" }, {
|
|
625
|
+
default: D(() => [...n[45] ||= [d(" Payment Preferences ", -1)]]),
|
|
626
|
+
_: 1
|
|
627
|
+
}),
|
|
628
|
+
n[52] ||= u("p", { class: "text-sm text-muted-foreground mb-6" }, " Let customers pay full or in part when booking a slot, or pay later. ", -1),
|
|
629
|
+
f(G, {
|
|
630
|
+
modelValue: h.paymentType,
|
|
631
|
+
"onUpdate:modelValue": n[1] ||= (e) => h.paymentType = e,
|
|
632
|
+
class: "flex flex-col gap-4"
|
|
633
|
+
}, {
|
|
634
|
+
default: D(() => [
|
|
635
|
+
f(r, {
|
|
636
|
+
for: "r1",
|
|
637
|
+
class: "flex items-start space-x-2 cursor-pointer"
|
|
638
|
+
}, {
|
|
639
|
+
default: D(() => [f(W, {
|
|
640
|
+
id: "r1",
|
|
641
|
+
value: "full"
|
|
642
|
+
}), n[46] ||= u("div", null, [u("p", null, "Pay Full Amount when Booking"), u("p", { class: "text-sm text-muted-foreground mt-1" }, " Your customers are required to complete the payment to confirm their booking. ")], -1)]),
|
|
643
|
+
_: 1
|
|
644
|
+
}),
|
|
645
|
+
f(r, {
|
|
646
|
+
for: "r2",
|
|
647
|
+
class: "flex items-start space-x-2 cursor-pointer"
|
|
648
|
+
}, {
|
|
649
|
+
default: D(() => [f(W, {
|
|
650
|
+
id: "r2",
|
|
651
|
+
value: "partial"
|
|
652
|
+
}), n[47] ||= u("div", null, [u("p", null, "Pay Part Amount when Booking"), u("p", { class: "text-sm text-muted-foreground mt-1" }, " Your customers are required to pay a deposit to confirm their booking. ")], -1)]),
|
|
653
|
+
_: 1
|
|
654
|
+
}),
|
|
655
|
+
f(r, {
|
|
656
|
+
for: "r3",
|
|
657
|
+
class: "flex items-start space-x-2 cursor-pointer"
|
|
658
|
+
}, {
|
|
659
|
+
default: D(() => [f(W, {
|
|
660
|
+
id: "r3",
|
|
661
|
+
value: "later"
|
|
662
|
+
}), n[48] ||= u("div", null, [u("p", null, "Pay Later at Appointment"), u("p", { class: "text-sm text-muted-foreground mt-1" }, " Your customers can book now and pay in person at the time of their appointment. ")], -1)]),
|
|
663
|
+
_: 1
|
|
664
|
+
})
|
|
665
|
+
]),
|
|
666
|
+
_: 1
|
|
667
|
+
}, 8, ["modelValue"]),
|
|
668
|
+
h.paymentType === "partial" ? (v(), l("div", Me, [f(r, { class: "text-sm font-medium mb-4 block" }, {
|
|
669
|
+
default: D(() => [...n[49] ||= [d(" Deposit Amount Configuration ", -1)]]),
|
|
670
|
+
_: 1
|
|
671
|
+
}), u("div", Ne, [
|
|
672
|
+
f(G, {
|
|
673
|
+
modelValue: h.partialPayment.type,
|
|
674
|
+
"onUpdate:modelValue": n[2] ||= (e) => h.partialPayment.type = e,
|
|
675
|
+
class: "flex gap-4"
|
|
676
|
+
}, {
|
|
677
|
+
default: D(() => [f(r, { class: "flex items-center space-x-2 cursor-pointer" }, {
|
|
678
|
+
default: D(() => [f(W, { value: "percentage" }), n[50] ||= u("span", null, "Percentage", -1)]),
|
|
679
|
+
_: 1
|
|
680
|
+
}), f(r, { class: "flex items-center space-x-2 cursor-pointer" }, {
|
|
681
|
+
default: D(() => [f(W, { value: "fixed" }), n[51] ||= u("span", null, "Fixed Amount", -1)]),
|
|
682
|
+
_: 1
|
|
683
|
+
})]),
|
|
684
|
+
_: 1
|
|
685
|
+
}, 8, ["modelValue"]),
|
|
686
|
+
u("div", Pe, [u("div", Fe, [f(x, {
|
|
687
|
+
modelValue: h.partialPayment.amount,
|
|
688
|
+
"onUpdate:modelValue": n[3] ||= (e) => h.partialPayment.amount = e,
|
|
689
|
+
modelModifiers: { number: !0 },
|
|
690
|
+
type: "number",
|
|
691
|
+
min: "0",
|
|
692
|
+
max: h.partialPayment.type === "percentage" ? 100 : void 0,
|
|
693
|
+
step: "0.01",
|
|
694
|
+
placeholder: h.partialPayment.type === "percentage" ? "50" : "10.00",
|
|
695
|
+
class: "no-spinner"
|
|
696
|
+
}, null, 8, [
|
|
697
|
+
"modelValue",
|
|
698
|
+
"max",
|
|
699
|
+
"placeholder"
|
|
700
|
+
])]), u("span", Ie, w(h.partialPayment.type === "percentage" ? "%" : h.currency), 1)]),
|
|
701
|
+
u("p", Le, [h.partialPayment.type === "percentage" ? (v(), l(o, { key: 0 }, [d(" Customers will pay " + w(h.partialPayment.amount) + "% of the total price upfront. ", 1)], 64)) : (v(), l(o, { key: 1 }, [d(" Customers will pay " + w(h.currency) + " " + w(h.partialPayment.amount) + " upfront. ", 1)], 64))])
|
|
702
|
+
])])) : c("", !0)
|
|
703
|
+
]),
|
|
704
|
+
u("div", Re, [f(b, {
|
|
705
|
+
onClick: F,
|
|
706
|
+
disabled: E.value
|
|
707
|
+
}, {
|
|
708
|
+
default: D(() => [d(w(E.value ? "Saving..." : "Save Changes"), 1)]),
|
|
709
|
+
_: 1
|
|
710
|
+
}, 8, ["disabled"])])
|
|
711
|
+
]))]),
|
|
712
|
+
_: 1
|
|
713
|
+
});
|
|
714
|
+
};
|
|
715
|
+
}
|
|
716
|
+
});
|
|
717
|
+
//#endregion
|
|
718
|
+
export { ze as default };
|