@oneclick.dev/cms-core-modules 0.0.106 → 0.0.108

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.
Files changed (576) hide show
  1. package/dist/Acquisition-DypEyPSO.js +1 -0
  2. package/dist/Acquisition-TCNX-th6.mjs +308 -0
  3. package/dist/AgendaOpeningHoursCard-BIhm0vpV.js +1 -0
  4. package/dist/AgendaOpeningHoursCard-BKUdJxRI.mjs +133 -0
  5. package/dist/AppointmentDetailsCard-C5rQ5jsW.js +1 -0
  6. package/dist/AppointmentDetailsCard-NRHeNP2L.mjs +111 -0
  7. package/dist/AppointmentEditor-BcF8CiD-.mjs +150 -0
  8. package/dist/AppointmentEditor-BlhFtoCm.js +1 -0
  9. package/dist/AppointmentListTable-B-ReBVtV.js +1 -0
  10. package/dist/AppointmentListTable-DHmy-iid.mjs +129 -0
  11. package/dist/Audience-CfWHjjg8.mjs +394 -0
  12. package/dist/Audience-Cj4TyauW.js +1 -0
  13. package/dist/Components-BehelN4r.js +1 -0
  14. package/dist/Components-CR6zukUU.mjs +468 -0
  15. package/dist/Content-C5Iye3t0.mjs +257 -0
  16. package/dist/Content-eOfBx52Y.js +1 -0
  17. package/dist/ContentEditor-BgL4qEeg.mjs +26835 -0
  18. package/dist/ContentEditor-Tlu3w0Hu.js +462 -0
  19. package/dist/CountryBreakdownCard-CWVyB8be.mjs +151 -0
  20. package/dist/CountryBreakdownCard-Db-pMiNe.js +1 -0
  21. package/dist/Create-B1it8S4m.js +1 -0
  22. package/dist/Create-DbYi0FAI.mjs +907 -0
  23. package/dist/DateFormatter-DLrDYkby.mjs +630 -0
  24. package/dist/DateFormatter-Dni0Oq8r.js +1 -0
  25. package/dist/Detail-D-eahJGO.mjs +21 -0
  26. package/dist/Detail-D0kdPPIm.mjs +2757 -0
  27. package/dist/Detail-DAafePYi.mjs +485 -0
  28. package/dist/Detail-DYpv4fYg.js +1 -0
  29. package/dist/Detail-Dc_ui4LM.js +1 -0
  30. package/dist/Detail-DccUekl_.js +1 -0
  31. package/dist/Detail-Dhz0V0Vf.js +1 -0
  32. package/dist/Detail-DjnGY0F8.mjs +282 -0
  33. package/dist/Detail-DplAitHg.mjs +447 -0
  34. package/dist/Detail-SugyeSxb.js +1 -0
  35. package/dist/DeviceBreakdownCard-CzxZT6To.js +1 -0
  36. package/dist/DeviceBreakdownCard-eEwPjzKl.mjs +115 -0
  37. package/dist/EditLayout-Bnz9q_jd.js +1 -0
  38. package/dist/EditLayout-J_DGXb8v.mjs +99 -0
  39. package/dist/Entries-CgpWg6fE.js +1 -0
  40. package/dist/Entries-CkGTXcAq.mjs +575 -0
  41. package/dist/Find-Bz0TNJzk.mjs +164 -0
  42. package/dist/Find-D-ItTXaZ.js +1 -0
  43. package/dist/GlobalStyling-CSQPF7o_.mjs +1162 -0
  44. package/dist/GlobalStyling-DabldMZh.js +15 -0
  45. package/dist/NewReservationDialog-BhIiY2B9.js +1 -0
  46. package/dist/NewReservationDialog-CN49aGcM.mjs +1002 -0
  47. package/dist/OrderDetailDialog-BJ01DZFe.js +1 -0
  48. package/dist/OrderDetailDialog-CoVQ_rzs.mjs +215 -0
  49. package/dist/Overview-9FMgn5hT.mjs +492 -0
  50. package/dist/Overview-BOOwMQ-c.mjs +636 -0
  51. package/dist/Overview-Biz3h60w.js +1 -0
  52. package/dist/Overview-C2K2ofdS.js +1 -0
  53. package/dist/Overview-CFHOXP9N.mjs +123 -0
  54. package/dist/Overview-CTJe7J5_.js +1 -0
  55. package/dist/Overview-Cvj2i9eW.js +1 -0
  56. package/dist/Overview-D2I1F8Dm.mjs +21 -0
  57. package/dist/Overview-DFOc9emt.mjs +345 -0
  58. package/dist/Overview-Dmhfb94Y.js +1 -0
  59. package/dist/Overview-PPzv7weG.mjs +450 -0
  60. package/dist/Overview-qFKcXHVF.js +1 -0
  61. package/dist/Overview-xkmYYTae.mjs +133 -0
  62. package/dist/Overview-yPsLvR2c.js +1 -0
  63. package/dist/PeakHoursCard-CtgEP-ez.mjs +157 -0
  64. package/dist/PeakHoursCard-DPeoMyhu.js +1 -0
  65. package/dist/ProductDetailsCard-B0WhmzO-.mjs +98 -0
  66. package/dist/ProductDetailsCard-C1ROuH6l.js +1 -0
  67. package/dist/RealtimeCard-DQno-Okz.js +1 -0
  68. package/dist/RealtimeCard-dR-g1iDo.mjs +92 -0
  69. package/dist/ReservationDetailDialog-Cdo6h0RD.mjs +2163 -0
  70. package/dist/ReservationDetailDialog-DZTFD2xI.js +349 -0
  71. package/dist/SearchTermsCard-BXJSXz_k.js +1 -0
  72. package/dist/SearchTermsCard-DsaxLKwP.mjs +146 -0
  73. package/dist/SendPush-Bssi-OZD.mjs +150 -0
  74. package/dist/SendPush-BuaYboRH.js +1 -0
  75. package/dist/SeoHealth-CP-kL0us.js +1 -0
  76. package/dist/SeoHealth-Cxp_Gb3Y.mjs +459 -0
  77. package/dist/TableView-7iwBkQ_k.mjs +4757 -0
  78. package/dist/TableView-BB_oIYYZ.js +4 -0
  79. package/dist/TemplateList-CNcM_Kgq.mjs +56 -0
  80. package/dist/TemplateList-VuPcBUJO.js +1 -0
  81. package/dist/TopPagesCard-CvDECn3_.mjs +117 -0
  82. package/dist/TopPagesCard-DNdATXJE.js +1 -0
  83. package/dist/TrafficSourcesCard-BLpBr7u0.mjs +151 -0
  84. package/dist/TrafficSourcesCard-_3gRUCw3.js +1 -0
  85. package/dist/View-DSnUHI7h.mjs +30 -0
  86. package/dist/View-Dbcfpdqh.js +1 -0
  87. package/dist/VisitorStatsCard-CFEnXSjF.mjs +185 -0
  88. package/dist/VisitorStatsCard-C_jhQxDW.js +1 -0
  89. package/dist/_plugin-vue_export-helper-5u7tqpWC.js +1 -0
  90. package/dist/_plugin-vue_export-helper-BJQSo0im.mjs +8 -0
  91. package/dist/agenda-CzMRcQTA.mjs +989 -0
  92. package/dist/agenda-D4zWRYSQ.js +1 -0
  93. package/dist/appointments-9syR5TZE.js +1 -0
  94. package/dist/appointments-BBmOJMhM.mjs +23 -0
  95. package/dist/array-BH1uH7XT.js +1 -0
  96. package/dist/array-DnDL9cFz.mjs +98 -0
  97. package/dist/availability-CAXB7Yd6.js +1 -0
  98. package/dist/availability-Dp7eF-ZK.mjs +215 -0
  99. package/dist/booking-data-Bysf6e5x.mjs +724 -0
  100. package/dist/booking-data-C6SGjC2X.js +1 -0
  101. package/dist/chunk-DQi1bQcV.js +1 -0
  102. package/dist/cms-core-modules.css +2 -1
  103. package/dist/contentManager-D7JxXCwE.js +1 -0
  104. package/dist/contentManager-tfy0x1LD.mjs +22 -0
  105. package/dist/context-AQKfnJ4t.mjs +3809 -0
  106. package/dist/context-ubyMq9Xe.js +54 -0
  107. package/dist/core-Dhgr4ctC.mjs +202 -0
  108. package/dist/core-_HKfBlaZ.js +1 -0
  109. package/dist/countries-MXLT3mVe.mjs +4 -0
  110. package/dist/countries-OCd5qPxG.js +1 -0
  111. package/dist/create-BfNc2C7N.js +1 -0
  112. package/dist/create-C7JlIlIh.mjs +95 -0
  113. package/dist/custom-BwN9-6Mb.js +1 -0
  114. package/dist/custom-INNwaWla.mjs +13 -0
  115. package/dist/dist-BCVg7FKM.js +1 -0
  116. package/dist/dist-DIhK9VWh.mjs +3045 -0
  117. package/dist/edit-BiI2VG60.js +35 -0
  118. package/dist/edit-DD3iFBEh.mjs +1097 -0
  119. package/dist/exceptions-DICMaDcH.mjs +462 -0
  120. package/dist/exceptions-DpWqMNuG.js +1 -0
  121. package/dist/google-Bcc4XZnV.mjs +4 -0
  122. package/dist/google-DTSRmJ51.js +1 -0
  123. package/dist/googleAnalytics-BSaqRR_L.js +1 -0
  124. package/dist/googleAnalytics-Cg-iWblZ.mjs +47 -0
  125. package/dist/index.cjs.js +1 -1
  126. package/dist/index.mjs +1095 -806
  127. package/dist/interpolation-B8OzkMyi.mjs +131 -0
  128. package/dist/interpolation-DpAqtGOW.js +1 -0
  129. package/dist/lib-4wSi00Vr.js +1 -0
  130. package/dist/lib-BZgXUui5.mjs +198 -0
  131. package/dist/line-DJdnFNI7.js +75 -0
  132. package/dist/line-tYLnEDGV.mjs +1500 -0
  133. package/dist/mailTemplates-BNk8fhVS.mjs +23 -0
  134. package/dist/mailTemplates-DswHzyQe.js +1 -0
  135. package/dist/orders-CIc0JlKX.mjs +512 -0
  136. package/dist/orders-DwPSi_pD.js +1 -0
  137. package/dist/payment-BsNWFaDm.js +1 -0
  138. package/dist/payment-Ced5_dpa.mjs +718 -0
  139. package/dist/productCollections-Cuvw_8zC.js +1 -0
  140. package/dist/productCollections-D0AxRlzr.mjs +23 -0
  141. package/dist/products-DUD-ZMkR.mjs +22 -0
  142. package/dist/products-DvX9B-Ul.js +1 -0
  143. package/dist/promoCodes-BCWqN6w4.mjs +23 -0
  144. package/dist/promoCodes-CEZ4LYot.js +1 -0
  145. package/dist/push-notifications-BGp4XWo9.js +1 -0
  146. package/dist/push-notifications-C7W7KuzR.mjs +23 -0
  147. package/dist/regular-BCFrS6lK.mjs +908 -0
  148. package/dist/regular-DBqPgT8C.js +1 -0
  149. package/dist/resources-DwsMmWgm.mjs +669 -0
  150. package/dist/resources-Dz81GkHe.js +1 -0
  151. package/dist/server-handlers.cjs.js +1 -1
  152. package/dist/server-handlers.mjs +1049 -996
  153. package/dist/shippingOptions-C3NEJff1.mjs +23 -0
  154. package/dist/shippingOptions-Cy040ZW1.js +1 -0
  155. package/dist/single-container-BJmmqq65.mjs +468 -0
  156. package/dist/single-container-Xoo0Xzxv.js +58 -0
  157. package/dist/src/appointments/index.d.ts +9 -12
  158. package/dist/src/appointments/metadata.d.ts +1 -1
  159. package/dist/src/appointments/routes.d.ts +3 -6
  160. package/dist/src/contentManager/components/content-editor/tiptap-extensions/LockBlocks.d.ts +15 -0
  161. package/dist/src/contentManager/components/content-editor/tiptap-extensions/TrailingNodeInContainers.d.ts +4 -1
  162. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/index.d.ts +12 -132
  163. package/dist/src/contentManager/index.d.ts +5 -14
  164. package/dist/src/contentManager/metadata.d.ts +1 -1
  165. package/dist/src/contentManager/routes.d.ts +3 -12
  166. package/dist/src/custom/index.d.ts +2 -2
  167. package/dist/src/custom/routes.d.ts +1 -1
  168. package/dist/src/googleAnalytics/index.d.ts +10 -10
  169. package/dist/src/googleAnalytics/routes.d.ts +1 -1
  170. package/dist/src/mailTemplates/index.d.ts +3 -3
  171. package/dist/src/mailTemplates/metadata.d.ts +1 -1
  172. package/dist/src/mailTemplates/routes.d.ts +1 -1
  173. package/dist/src/productCollections/index.d.ts +3 -3
  174. package/dist/src/productCollections/metadata.d.ts +1 -1
  175. package/dist/src/productCollections/routes.d.ts +1 -1
  176. package/dist/src/products/index.d.ts +4 -4
  177. package/dist/src/products/metadata.d.ts +1 -1
  178. package/dist/src/products/routes.d.ts +1 -1
  179. package/dist/src/promoCodes/index.d.ts +3 -3
  180. package/dist/src/promoCodes/metadata.d.ts +1 -1
  181. package/dist/src/promoCodes/routes.d.ts +1 -1
  182. package/dist/src/push-notifications/index.d.ts +3 -3
  183. package/dist/src/push-notifications/metadata.d.ts +1 -1
  184. package/dist/src/push-notifications/routes.d.ts +1 -1
  185. package/dist/src/shippingOptions/index.d.ts +3 -3
  186. package/dist/src/shippingOptions/metadata.d.ts +1 -1
  187. package/dist/src/shippingOptions/routes.d.ts +1 -1
  188. package/dist/src/table/flow-builder-extensions/row-item.d.ts +3 -17
  189. package/dist/src/table/index.d.ts +2 -2
  190. package/dist/src/table/routes.d.ts +1 -1
  191. package/dist/src/types/index.d.ts +6 -0
  192. package/dist/src/vue-shim.d.ts +7 -0
  193. package/dist/table-DWw0fs3S.js +1 -0
  194. package/dist/table-LXt5DQOL.mjs +23 -0
  195. package/dist/utils-CVIHqQsU.js +3 -0
  196. package/dist/utils-h3owcMtS.mjs +37 -0
  197. package/dist/vee-validate-zod-BmXMJo8W.js +1 -0
  198. package/dist/vee-validate-zod-D9dZzbWZ.mjs +4985 -0
  199. package/dist/xy-container-CuQSwrtB.mjs +3180 -0
  200. package/dist/xy-container-_6YpscZh.js +158 -0
  201. package/package.json +55 -55
  202. package/dist/Acquisition-B2pM5vSp.mjs +0 -400
  203. package/dist/Acquisition-Dt2rREU8.js +0 -1
  204. package/dist/AgendaOpeningHoursCard-B7ROIPWw.js +0 -1
  205. package/dist/AgendaOpeningHoursCard-Cp4wxUeK.mjs +0 -172
  206. package/dist/AppointmentDetailsCard-33WpATpV.mjs +0 -161
  207. package/dist/AppointmentDetailsCard-DpLM5IrB.js +0 -1
  208. package/dist/AppointmentEditor-BeOtYV6u.mjs +0 -196
  209. package/dist/AppointmentEditor-CaTfbkIf.js +0 -1
  210. package/dist/AppointmentListTable-DZJNmTMb.mjs +0 -177
  211. package/dist/AppointmentListTable-Dieu9US_.js +0 -1
  212. package/dist/Audience-Bs7b0TNm.js +0 -1
  213. package/dist/Audience-VLnUsQvW.mjs +0 -489
  214. package/dist/Components-C83O-xlF.mjs +0 -623
  215. package/dist/Components-DXbx0RLV.js +0 -1
  216. package/dist/Content-BHr_rPVY.js +0 -1
  217. package/dist/Content-CYOZKvWK.mjs +0 -358
  218. package/dist/ContentEditor-BNLEv-qJ.mjs +0 -30697
  219. package/dist/ContentEditor-BUvvqfG1.js +0 -462
  220. package/dist/CountryBreakdownCard-D7BK3nRD.js +0 -1
  221. package/dist/CountryBreakdownCard-DVxNz2DJ.mjs +0 -196
  222. package/dist/Create-89z41K73.js +0 -1
  223. package/dist/Create-Cn_Eufga.mjs +0 -1251
  224. package/dist/DateFormatter-Bw-87W31.mjs +0 -734
  225. package/dist/DateFormatter-CYAD4GBN.js +0 -1
  226. package/dist/Detail-Byk781b4.mjs +0 -26
  227. package/dist/Detail-C1Blq61w.mjs +0 -585
  228. package/dist/Detail-C857g62L.js +0 -1
  229. package/dist/Detail-C8wQiDcv.js +0 -1
  230. package/dist/Detail-CPqug27l.js +0 -1
  231. package/dist/Detail-CjuhjPby.js +0 -1
  232. package/dist/Detail-CtItxMX4.mjs +0 -649
  233. package/dist/Detail-CujdFApD.mjs +0 -379
  234. package/dist/Detail-Dnpnmy4-.mjs +0 -3477
  235. package/dist/Detail-mvSGbnFU.js +0 -1
  236. package/dist/DeviceBreakdownCard-DRhQ9ufG.js +0 -1
  237. package/dist/DeviceBreakdownCard-W1frLe0L.mjs +0 -159
  238. package/dist/EditLayout.vue_vue_type_script_setup_true_lang-DWMqQvHl.mjs +0 -76
  239. package/dist/EditLayout.vue_vue_type_script_setup_true_lang-kpjbVSXg.js +0 -1
  240. package/dist/Entries-BdhUyJR5.mjs +0 -728
  241. package/dist/Entries-CEXM_SkO.js +0 -1
  242. package/dist/Find-B24ZEhYM.mjs +0 -229
  243. package/dist/Find-D4Qa45qC.js +0 -1
  244. package/dist/GlobalStyling-C9VthHWK.mjs +0 -1588
  245. package/dist/GlobalStyling-CnSlXkZc.js +0 -25
  246. package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-Ceoje52V.js +0 -1
  247. package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-DMGcRmm-.mjs +0 -1255
  248. package/dist/OrderDetailDialog.vue_vue_type_script_setup_true_lang-COrK1j0S.js +0 -1
  249. package/dist/OrderDetailDialog.vue_vue_type_script_setup_true_lang-Vb3q8EVv.mjs +0 -330
  250. package/dist/Overview-3HWhsqaz.mjs +0 -860
  251. package/dist/Overview-BCpJNiEB.mjs +0 -190
  252. package/dist/Overview-BDlBCUI_.js +0 -1
  253. package/dist/Overview-BbvfH1u-.js +0 -1
  254. package/dist/Overview-Bn1Xx3_j.js +0 -1
  255. package/dist/Overview-CIa1E-HH.mjs +0 -178
  256. package/dist/Overview-DAxCu9XC.js +0 -1
  257. package/dist/Overview-DC9io1bk.js +0 -1
  258. package/dist/Overview-Di84CsR5.mjs +0 -476
  259. package/dist/Overview-Su8ZUbMs.mjs +0 -26
  260. package/dist/Overview-T-lsy3UZ.js +0 -1
  261. package/dist/Overview-UoZHUMUz.js +0 -1
  262. package/dist/Overview-ejh4vUMT.mjs +0 -567
  263. package/dist/Overview-lWAyyenp.mjs +0 -632
  264. package/dist/PeakHoursCard-9-EZFZLR.mjs +0 -182
  265. package/dist/PeakHoursCard-BR5zmta4.js +0 -1
  266. package/dist/ProductDetailsCard-6nHikw4V.mjs +0 -121
  267. package/dist/ProductDetailsCard-Bn7qrgmc.js +0 -1
  268. package/dist/RealtimeCard--APfRNc8.js +0 -1
  269. package/dist/RealtimeCard-fvQlJcM7.mjs +0 -126
  270. package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-CuwREvXD.js +0 -349
  271. package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-GYNZ_yhD.mjs +0 -3077
  272. package/dist/SearchTermsCard-BsB-63aH.js +0 -1
  273. package/dist/SearchTermsCard-BzVrHKqQ.mjs +0 -201
  274. package/dist/SendPush-COns44j7.js +0 -1
  275. package/dist/SendPush-CPIOjVX4.mjs +0 -184
  276. package/dist/SeoHealth-DsbVdd2l.mjs +0 -615
  277. package/dist/SeoHealth-az1YuNF2.js +0 -1
  278. package/dist/TableView-Bm6HaRHm.mjs +0 -6143
  279. package/dist/TableView-DQW0A1oG.js +0 -4
  280. package/dist/TemplateList.vue_vue_type_script_setup_true_lang-B_AtWnHa.js +0 -1
  281. package/dist/TemplateList.vue_vue_type_script_setup_true_lang-Cmovy7kk.mjs +0 -40
  282. package/dist/TopPagesCard-BDeA997A.js +0 -1
  283. package/dist/TopPagesCard-CTozhOr_.mjs +0 -159
  284. package/dist/TrafficSourcesCard-BxtCKsqx.mjs +0 -197
  285. package/dist/TrafficSourcesCard-C3ziDTUL.js +0 -1
  286. package/dist/View-CsudjxCE.mjs +0 -30
  287. package/dist/View-Dw_wA6kK.js +0 -1
  288. package/dist/VisitorStatsCard-BmByE_Hi.js +0 -1
  289. package/dist/VisitorStatsCard-CXizEbVK.mjs +0 -174
  290. package/dist/_plugin-vue_export-helper-BHFhmbuH.js +0 -1
  291. package/dist/_plugin-vue_export-helper-CHgC5LLL.mjs +0 -9
  292. package/dist/agenda-IOqtALWf.js +0 -1
  293. package/dist/agenda-neyeLWv-.mjs +0 -1165
  294. package/dist/array-CbATeQbk.js +0 -1
  295. package/dist/array-CvmZXzxF.mjs +0 -108
  296. package/dist/availability-CMrRa5y2.mjs +0 -269
  297. package/dist/availability-Cf2YfMwM.js +0 -1
  298. package/dist/booking-data-DgJd0BcM.mjs +0 -889
  299. package/dist/booking-data-Di5GmH_8.js +0 -1
  300. package/dist/countries-BTPvmrsb.mjs +0 -4
  301. package/dist/countries-CgZ081No.js +0 -1
  302. package/dist/exceptions-CI0B4xVj.js +0 -1
  303. package/dist/exceptions-vo8SA5SE.mjs +0 -646
  304. package/dist/google-CvtuJwgk.mjs +0 -4
  305. package/dist/google-D4N3gb01.js +0 -1
  306. package/dist/index-4tjmIans.js +0 -1
  307. package/dist/index-9HVlmvK3.js +0 -1
  308. package/dist/index-A2kp8Isi.js +0 -75
  309. package/dist/index-B5aBwdxY.js +0 -54
  310. package/dist/index-BRdCrvcz.mjs +0 -1443
  311. package/dist/index-BWDwEd8D.mjs +0 -24
  312. package/dist/index-BfBBm9uY.mjs +0 -24
  313. package/dist/index-BiT55eU0.js +0 -58
  314. package/dist/index-Bkq58CeQ.mjs +0 -22
  315. package/dist/index-Bvxc5xv_.mjs +0 -3843
  316. package/dist/index-CJQQBRLY.js +0 -1
  317. package/dist/index-CQkOH2_3.mjs +0 -24
  318. package/dist/index-CSxYBeVA.js +0 -1
  319. package/dist/index-CU-tbS5W.mjs +0 -24
  320. package/dist/index-CZn2nDLv.mjs +0 -34
  321. package/dist/index-CkiNvRzs.js +0 -1
  322. package/dist/index-Co4ON2Di.js +0 -1
  323. package/dist/index-Cpnn_Pxd.mjs +0 -24
  324. package/dist/index-CrgzoTyR.mjs +0 -110
  325. package/dist/index-CsVeM3PA.mjs +0 -24
  326. package/dist/index-CwqrAU-H.js +0 -1
  327. package/dist/index-CxETuRsG.js +0 -1
  328. package/dist/index-Cz-baGax.js +0 -1
  329. package/dist/index-DFQGVHTs.js +0 -1
  330. package/dist/index-DPd3waTN.js +0 -1
  331. package/dist/index-DRqJOqUR.mjs +0 -3484
  332. package/dist/index-DjWuIBxh.js +0 -1
  333. package/dist/index-Dnn2SCSl.js +0 -1
  334. package/dist/index-Dpl9sU6a.mjs +0 -12
  335. package/dist/index-DrXxXB2F.mjs +0 -138
  336. package/dist/index-G7cIlnGN.js +0 -158
  337. package/dist/index-MYWjg0zi.mjs +0 -176
  338. package/dist/index-R2oUDsjx.js +0 -1
  339. package/dist/index-RLz1QPrf.mjs +0 -203
  340. package/dist/index-UtjLbLw-.js +0 -1
  341. package/dist/index-X6LV64jK.mjs +0 -442
  342. package/dist/index-cOnxXTbF.mjs +0 -24
  343. package/dist/index-hlylYYgy.mjs +0 -24
  344. package/dist/index-ijdf0d9-.js +0 -1
  345. package/dist/index-uOkqO74I.mjs +0 -2940
  346. package/dist/index-unsDfNYv.mjs +0 -1187
  347. package/dist/index-vHmvbEwa.js +0 -35
  348. package/dist/interpolation-CHn59tIC.js +0 -1
  349. package/dist/interpolation-w7IRDJwK.mjs +0 -180
  350. package/dist/orders-C65SlpJy.mjs +0 -618
  351. package/dist/orders-XVzWAgG1.js +0 -1
  352. package/dist/payment-C3ohkehF.mjs +0 -1080
  353. package/dist/payment-Dfr-Ro-a.js +0 -1
  354. package/dist/regular-1LXNPviB.js +0 -1
  355. package/dist/regular-_05oq5Tx.mjs +0 -1101
  356. package/dist/resources-CxeFd57z.js +0 -1
  357. package/dist/resources-WI_4SO6T.mjs +0 -811
  358. package/dist/src/appointments/chat-components/AgendaOpeningHoursCard.vue.d.ts +0 -15
  359. package/dist/src/appointments/chat-components/AppointmentDetailsCard.vue.d.ts +0 -14
  360. package/dist/src/appointments/chat-components/AppointmentEditor.vue.d.ts +0 -14
  361. package/dist/src/appointments/chat-components/AppointmentListTable.vue.d.ts +0 -14
  362. package/dist/src/appointments/components/create/StepNavigation.vue.d.ts +0 -32
  363. package/dist/src/appointments/components/create/regular/Step1.vue.d.ts +0 -2
  364. package/dist/src/appointments/components/create/regular/Step2.vue.d.ts +0 -2
  365. package/dist/src/appointments/components/create/regular/Step3.vue.d.ts +0 -2
  366. package/dist/src/appointments/components/create/regular/Step4.vue.d.ts +0 -2
  367. package/dist/src/appointments/components/edit/CustomerInformationFieldEditorDialog.vue.d.ts +0 -24
  368. package/dist/src/appointments/components/edit/EditLayout.vue.d.ts +0 -17
  369. package/dist/src/appointments/components/edit/Event24hSidebar.vue.d.ts +0 -2
  370. package/dist/src/appointments/components/edit/EventDialog/ApproveReservationDialog.vue.d.ts +0 -8
  371. package/dist/src/appointments/components/edit/EventDialog/BookingsList.vue.d.ts +0 -136
  372. package/dist/src/appointments/components/edit/EventDialog/CancelReservationDialog.vue.d.ts +0 -8
  373. package/dist/src/appointments/components/edit/EventDialog/EventDialog.vue.d.ts +0 -11
  374. package/dist/src/appointments/components/edit/EventDialog/OrderDetailDialog.vue.d.ts +0 -55
  375. package/dist/src/appointments/components/edit/EventDialog/RejectReservationDialog.vue.d.ts +0 -8
  376. package/dist/src/appointments/components/edit/EventDialog/ReservationDetailDialog.vue.d.ts +0 -87
  377. package/dist/src/appointments/components/edit/EventDialog/TimelineChart.vue.d.ts +0 -24
  378. package/dist/src/appointments/components/edit/EventDialog/TransferReservationDialog.vue.d.ts +0 -4
  379. package/dist/src/appointments/components/edit/EventTimeIndicator.vue.d.ts +0 -12
  380. package/dist/src/appointments/components/edit/EventTimeline.vue.d.ts +0 -48
  381. package/dist/src/appointments/components/edit/EventView.vue.d.ts +0 -9
  382. package/dist/src/appointments/components/edit/ExceptionDialog.vue.d.ts +0 -29
  383. package/dist/src/appointments/components/edit/MetadataSchemaEditorDialog.vue.d.ts +0 -12
  384. package/dist/src/appointments/components/edit/NewReservationDialog/CustomerInformation.vue.d.ts +0 -10
  385. package/dist/src/appointments/components/edit/NewReservationDialog/NewReservationDialog.vue.d.ts +0 -26
  386. package/dist/src/appointments/components/edit/NewReservationDialog/QuickReservationAdder.vue.d.ts +0 -26
  387. package/dist/src/appointments/components/edit/NewReservationDialog/ReservationLines.vue.d.ts +0 -31
  388. package/dist/src/appointments/components/edit/OrderMetadataDisplay.vue.d.ts +0 -21
  389. package/dist/src/appointments/components/edit/PaymentAddons/Addon.vue.d.ts +0 -22
  390. package/dist/src/appointments/components/edit/PaymentAddons/AddonList.vue.d.ts +0 -5
  391. package/dist/src/appointments/components/edit/PaymentAddons/index.vue.d.ts +0 -15
  392. package/dist/src/appointments/components/edit/ResourceEditorDialog.vue.d.ts +0 -13
  393. package/dist/src/appointments/components/edit/dashboard/Timeline.vue.d.ts +0 -36
  394. package/dist/src/appointments/components/edit/dashboard/timeline/ResourceSelector.vue.d.ts +0 -50
  395. package/dist/src/appointments/index.vue.d.ts +0 -22
  396. package/dist/src/appointments/pages/Overview.vue.d.ts +0 -4
  397. package/dist/src/appointments/pages/create/index.vue.d.ts +0 -2
  398. package/dist/src/appointments/pages/create/regular.vue.d.ts +0 -6
  399. package/dist/src/appointments/pages/edit/agenda.vue.d.ts +0 -4
  400. package/dist/src/appointments/pages/edit/availability.vue.d.ts +0 -2
  401. package/dist/src/appointments/pages/edit/booking-data.vue.d.ts +0 -65
  402. package/dist/src/appointments/pages/edit/index.vue.d.ts +0 -2
  403. package/dist/src/appointments/pages/edit/payment.vue.d.ts +0 -2
  404. package/dist/src/appointments/pages/edit/resources.vue.d.ts +0 -28
  405. package/dist/src/contentManager/components/components/ComponentDialog.vue.d.ts +0 -12
  406. package/dist/src/contentManager/components/components/ComponentGridItem.vue.d.ts +0 -16
  407. package/dist/src/contentManager/components/content-editor/ApiDocs.vue.d.ts +0 -2
  408. package/dist/src/contentManager/components/content-editor/ContentLayout.vue.d.ts +0 -49
  409. package/dist/src/contentManager/components/content-editor/ContentSettings.vue.d.ts +0 -24
  410. package/dist/src/contentManager/components/content-editor/ContentStructuredContentSections.vue.d.ts +0 -4
  411. package/dist/src/contentManager/components/content-editor/Header.vue.d.ts +0 -64
  412. package/dist/src/contentManager/components/content-editor/LivePreviewWrapper.vue.d.ts +0 -53
  413. package/dist/src/contentManager/components/content-editor/Locales.vue.d.ts +0 -44
  414. package/dist/src/contentManager/components/content-editor/NewSectionDialog.vue.d.ts +0 -21
  415. package/dist/src/contentManager/components/content-editor/PageSettings.vue.d.ts +0 -2
  416. package/dist/src/contentManager/components/content-editor/SEO.vue.d.ts +0 -14
  417. package/dist/src/contentManager/components/content-editor/SidebarSectionWrapper.vue.d.ts +0 -39
  418. package/dist/src/contentManager/components/content-editor/Status.vue.d.ts +0 -2
  419. package/dist/src/contentManager/components/content-editor/Versions.vue.d.ts +0 -63
  420. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Button.vue.d.ts +0 -94
  421. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Card.vue.d.ts +0 -92
  422. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Column.vue.d.ts +0 -92
  423. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Container.vue.d.ts +0 -92
  424. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Divider.vue.d.ts +0 -92
  425. package/dist/src/contentManager/components/content-editor/tiptap-extensions/EmptySpace.vue.d.ts +0 -94
  426. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Heading.vue.d.ts +0 -92
  427. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Image.vue.d.ts +0 -92
  428. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Map.vue.d.ts +0 -92
  429. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Paragraph.vue.d.ts +0 -92
  430. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Row.vue.d.ts +0 -115
  431. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Stack.vue.d.ts +0 -115
  432. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Video.vue.d.ts +0 -92
  433. package/dist/src/contentManager/components/content-editor/tiptap-extensions/extension-details/DetailsNodeView.vue.d.ts +0 -92
  434. package/dist/src/contentManager/components/content-editor/tiptap-extensions/helpers/NodeLabel.vue.d.ts +0 -108
  435. package/dist/src/contentManager/components/content-editor/tiptap-extensions/helpers/ResizeHandlers.vue.d.ts +0 -20
  436. package/dist/src/contentManager/components/content-editor/tiptap-extensions/helpers/TopMarginDragger.vue.d.ts +0 -104
  437. package/dist/src/contentManager/components/content-editor/tiptap-menus/BubbleMenuClassBuilder.vue.d.ts +0 -19
  438. package/dist/src/contentManager/components/content-editor/tiptap-menus/BubbleMenuLinkBuilder.vue.d.ts +0 -19
  439. package/dist/src/contentManager/components/content-editor/tiptap-menus/BubbleMenuToggleButton.vue.d.ts +0 -29
  440. package/dist/src/contentManager/components/content-editor/tiptap-menus/DefaultBubbleMenu.vue.d.ts +0 -13
  441. package/dist/src/contentManager/components/content-editor/tiptap-menus/ElementEditorMenu.vue.d.ts +0 -19
  442. package/dist/src/contentManager/components/content-editor/tiptap-menus/EmojiMenu.vue.d.ts +0 -8
  443. package/dist/src/contentManager/components/content-editor/tiptap-menus/NewNodeView.vue.d.ts +0 -47
  444. package/dist/src/contentManager/components/content-editor/tiptap-menus/SlashMenu.vue.d.ts +0 -6
  445. package/dist/src/contentManager/components/content-editor/tiptap-menus/SlashMenuButton.vue.d.ts +0 -17
  446. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/ButtonMenu.vue.d.ts +0 -13
  447. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/CardMenu.vue.d.ts +0 -13
  448. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/ColumnMenu.vue.d.ts +0 -13
  449. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/DividerMenu.vue.d.ts +0 -13
  450. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/EmptySpaceMenu.vue.d.ts +0 -13
  451. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/HeadingMenu.vue.d.ts +0 -13
  452. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/ImageMenu.vue.d.ts +0 -13
  453. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/MapMenu.vue.d.ts +0 -13
  454. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/RowMenu.vue.d.ts +0 -13
  455. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/StackMenu.vue.d.ts +0 -13
  456. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/TextMenu.vue.d.ts +0 -13
  457. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/VideoMenu.vue.d.ts +0 -13
  458. package/dist/src/contentManager/components/overview/CollectionDialog.vue.d.ts +0 -30
  459. package/dist/src/contentManager/components/overview/CollectionsGridView.vue.d.ts +0 -18
  460. package/dist/src/contentManager/components/overview/ContentEntryContextMenu.vue.d.ts +0 -27
  461. package/dist/src/contentManager/components/overview/FilterPopover.vue.d.ts +0 -2
  462. package/dist/src/contentManager/components/overview/ListView.vue.d.ts +0 -12
  463. package/dist/src/contentManager/components/styling/ButtonStyleDialog.vue.d.ts +0 -24
  464. package/dist/src/contentManager/components/styling/CardStyleDialog.vue.d.ts +0 -24
  465. package/dist/src/contentManager/components/styling/SectionStyleDialog.vue.d.ts +0 -24
  466. package/dist/src/contentManager/index.vue.d.ts +0 -22
  467. package/dist/src/contentManager/pages/Components.vue.d.ts +0 -27
  468. package/dist/src/contentManager/pages/ContentEditor.vue.d.ts +0 -14
  469. package/dist/src/contentManager/pages/Entries.vue.d.ts +0 -16
  470. package/dist/src/contentManager/pages/GlobalStyling.vue.d.ts +0 -117
  471. package/dist/src/contentManager/pages/Overview.vue.d.ts +0 -57
  472. package/dist/src/custom/index.vue.d.ts +0 -2
  473. package/dist/src/custom/pages/View.vue.d.ts +0 -2
  474. package/dist/src/googleAnalytics/chat-components/CountryBreakdownCard.vue.d.ts +0 -14
  475. package/dist/src/googleAnalytics/chat-components/DeviceBreakdownCard.vue.d.ts +0 -14
  476. package/dist/src/googleAnalytics/chat-components/PeakHoursCard.vue.d.ts +0 -14
  477. package/dist/src/googleAnalytics/chat-components/RealtimeCard.vue.d.ts +0 -14
  478. package/dist/src/googleAnalytics/chat-components/SearchTermsCard.vue.d.ts +0 -14
  479. package/dist/src/googleAnalytics/chat-components/TopPagesCard.vue.d.ts +0 -14
  480. package/dist/src/googleAnalytics/chat-components/TrafficSourcesCard.vue.d.ts +0 -14
  481. package/dist/src/googleAnalytics/chat-components/VisitorStatsCard.vue.d.ts +0 -14
  482. package/dist/src/googleAnalytics/components/seo-health/SeoClicksChart.vue.d.ts +0 -5
  483. package/dist/src/googleAnalytics/components/seo-health/SeoImpressionsChart.vue.d.ts +0 -5
  484. package/dist/src/googleAnalytics/components/seo-health/SeoKeywordsTab.vue.d.ts +0 -5
  485. package/dist/src/googleAnalytics/components/seo-health/SeoKpiCards.vue.d.ts +0 -10
  486. package/dist/src/googleAnalytics/components/seo-health/SeoMappingTab.vue.d.ts +0 -5
  487. package/dist/src/googleAnalytics/components/seo-health/SeoPagesTab.vue.d.ts +0 -5
  488. package/dist/src/googleAnalytics/components/seo-health/SeoRankingDistribution.vue.d.ts +0 -5
  489. package/dist/src/googleAnalytics/index.vue.d.ts +0 -2
  490. package/dist/src/googleAnalytics/pages/Acquisition.vue.d.ts +0 -2
  491. package/dist/src/googleAnalytics/pages/Audience.vue.d.ts +0 -2
  492. package/dist/src/googleAnalytics/pages/Content.vue.d.ts +0 -2
  493. package/dist/src/googleAnalytics/pages/Overview.vue.d.ts +0 -2
  494. package/dist/src/googleAnalytics/pages/SeoHealth.vue.d.ts +0 -2
  495. package/dist/src/mailTemplates/components/TemplateList.vue.d.ts +0 -2
  496. package/dist/src/mailTemplates/index.vue.d.ts +0 -22
  497. package/dist/src/mailTemplates/pages/Detail.vue.d.ts +0 -14
  498. package/dist/src/mailTemplates/pages/Overview.vue.d.ts +0 -14
  499. package/dist/src/productCollections/components/detail/Main.vue.d.ts +0 -2
  500. package/dist/src/productCollections/components/detail/SEO.vue.d.ts +0 -2
  501. package/dist/src/productCollections/components/detail/Status.vue.d.ts +0 -2
  502. package/dist/src/productCollections/components/overview/ListView.vue.d.ts +0 -12
  503. package/dist/src/productCollections/index.vue.d.ts +0 -22
  504. package/dist/src/productCollections/pages/Detail.vue.d.ts +0 -14
  505. package/dist/src/productCollections/pages/Overview.vue.d.ts +0 -16
  506. package/dist/src/products/chat-components/ProductDetailsCard.vue.d.ts +0 -14
  507. package/dist/src/products/components/detail/Collections.vue.d.ts +0 -14
  508. package/dist/src/products/components/detail/Inventory.vue.d.ts +0 -2
  509. package/dist/src/products/components/detail/Main.vue.d.ts +0 -2
  510. package/dist/src/products/components/detail/NewSection.vue.d.ts +0 -2
  511. package/dist/src/products/components/detail/Price.vue.d.ts +0 -2
  512. package/dist/src/products/components/detail/SEO.vue.d.ts +0 -2
  513. package/dist/src/products/components/detail/Shipping.vue.d.ts +0 -2
  514. package/dist/src/products/components/detail/Status.vue.d.ts +0 -2
  515. package/dist/src/products/components/detail/price/UnitPriceDialog.vue.d.ts +0 -17
  516. package/dist/src/products/components/detail/variants/Option.vue.d.ts +0 -33
  517. package/dist/src/products/components/detail/variants/VariantList.vue.d.ts +0 -38
  518. package/dist/src/products/components/overview/FilterPopover.vue.d.ts +0 -2
  519. package/dist/src/products/components/overview/GridView.vue.d.ts +0 -12
  520. package/dist/src/products/components/overview/ListView.vue.d.ts +0 -12
  521. package/dist/src/products/components/overview/ProductContextMenu.vue.d.ts +0 -27
  522. package/dist/src/products/index.vue.d.ts +0 -22
  523. package/dist/src/products/pages/Detail.vue.d.ts +0 -14
  524. package/dist/src/products/pages/Overview.vue.d.ts +0 -16
  525. package/dist/src/promoCodes/components/create/DateRange.vue.d.ts +0 -2
  526. package/dist/src/promoCodes/components/create/MultiCodes.vue.d.ts +0 -2
  527. package/dist/src/promoCodes/components/create/Note.vue.d.ts +0 -2
  528. package/dist/src/promoCodes/components/create/SingleCode.vue.d.ts +0 -2
  529. package/dist/src/promoCodes/components/create/TypeAndValue/TypeDetailDialog.vue.d.ts +0 -6
  530. package/dist/src/promoCodes/components/create/TypeAndValue/TypeManageDialog.vue.d.ts +0 -18
  531. package/dist/src/promoCodes/components/create/TypeAndValue/index.vue.d.ts +0 -2
  532. package/dist/src/promoCodes/index.vue.d.ts +0 -22
  533. package/dist/src/promoCodes/pages/Create.vue.d.ts +0 -16
  534. package/dist/src/promoCodes/pages/Detail.vue.d.ts +0 -14
  535. package/dist/src/promoCodes/pages/Find.vue.d.ts +0 -16
  536. package/dist/src/push-notifications/components/PreviewAndroid.vue.d.ts +0 -28
  537. package/dist/src/push-notifications/components/PreviewIPhone.vue.d.ts +0 -28
  538. package/dist/src/push-notifications/components/PushPreview.vue.d.ts +0 -28
  539. package/dist/src/push-notifications/index.vue.d.ts +0 -22
  540. package/dist/src/push-notifications/pages/SendPush.vue.d.ts +0 -14
  541. package/dist/src/shared/BrandLogo.vue.d.ts +0 -12
  542. package/dist/src/shared/DrawerToggle.vue.d.ts +0 -60
  543. package/dist/src/shared/VerticalToggle.vue.d.ts +0 -60
  544. package/dist/src/shippingOptions/components/detail/Condition.vue.d.ts +0 -2
  545. package/dist/src/shippingOptions/components/detail/Countries.vue.d.ts +0 -2
  546. package/dist/src/shippingOptions/components/detail/Example.vue.d.ts +0 -2
  547. package/dist/src/shippingOptions/components/detail/Main.vue.d.ts +0 -2
  548. package/dist/src/shippingOptions/components/overview/ListView.vue.d.ts +0 -12
  549. package/dist/src/shippingOptions/index.vue.d.ts +0 -22
  550. package/dist/src/shippingOptions/pages/Detail.vue.d.ts +0 -14
  551. package/dist/src/shippingOptions/pages/Overview.vue.d.ts +0 -16
  552. package/dist/src/table/components/DataTable.vue.d.ts +0 -18
  553. package/dist/src/table/components/DataTableAction.vue.d.ts +0 -14
  554. package/dist/src/table/components/DataTableMobileRowActionDrawer.vue.d.ts +0 -4
  555. package/dist/src/table/components/DataTablePagination.vue.d.ts +0 -6
  556. package/dist/src/table/components/actions/ActionDialog.vue.d.ts +0 -19
  557. package/dist/src/table/components/actions/CtaActionDialog.vue.d.ts +0 -4
  558. package/dist/src/table/components/columns/ColumnDropdown.vue.d.ts +0 -2
  559. package/dist/src/table/components/columns/ColumnEditorDialog.vue.d.ts +0 -34
  560. package/dist/src/table/components/columns/DialogTableColumnItem.vue.d.ts +0 -12
  561. package/dist/src/table/components/date-range-filter/DateRangeFilter.vue.d.ts +0 -2
  562. package/dist/src/table/components/date-range-filter/DateRangeSettingsDialog.vue.d.ts +0 -27
  563. package/dist/src/table/components/filters/FilterDialog.vue.d.ts +0 -12
  564. package/dist/src/table/components/filters/Filters.vue.d.ts +0 -27
  565. package/dist/src/table/components/search/Search.vue.d.ts +0 -2
  566. package/dist/src/table/components/sort/SortMode.vue.d.ts +0 -2
  567. package/dist/src/table/components/sort/SortModeSettingsDialog.vue.d.ts +0 -18
  568. package/dist/src/table/components/stats/StatDialog.vue.d.ts +0 -12
  569. package/dist/src/table/components/stats/Stats.vue.d.ts +0 -27
  570. package/dist/src/table/flow-builder-extensions/TableRowEditor.vue.d.ts +0 -16
  571. package/dist/src/table/index.vue.d.ts +0 -22
  572. package/dist/src/table/pages/TableView.vue.d.ts +0 -54
  573. package/dist/utils-CanmrIWO.mjs +0 -47
  574. package/dist/utils-Yd6F5mea.js +0 -3
  575. package/dist/vee-validate-zod-ByykgYKJ.js +0 -1
  576. package/dist/vee-validate-zod-CcOwoF6y.mjs +0 -4402
@@ -0,0 +1,2163 @@
1
+ import { t as e } from "./lib-BZgXUui5.mjs";
2
+ import { useFirebaseIntegration as t, useMailer as n, useModule as r, useModulePermissions as i } from "@oneclick.dev/cms-kit";
3
+ import { Fragment as a, computed 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, normalizeClass as h, normalizeStyle as g, openBlock as _, ref as v, renderList as y, resolveComponent as b, resolveDynamicComponent as x, toDisplayString as S, unref as C, useTemplateRef as w, withCtx as T } from "vue";
4
+ import { Ban as E, CalendarClock as D, Clock as O, ClockCheck as k, CreditCard as A, Download as ee, Gift as te, Mail as ne, MailCheck as re, MoreHorizontal as ie, Phone as ae, Receipt as oe, Tag as se, User as ce, Users as le, XCircle as ue, icons as j } from "@lucide/vue";
5
+ //#region ../node_modules/.pnpm/fuse.js@7.1.0/node_modules/fuse.js/dist/fuse.mjs
6
+ function M(e) {
7
+ return Array.isArray ? Array.isArray(e) : H(e) === "[object Array]";
8
+ }
9
+ var N = Infinity;
10
+ function P(e) {
11
+ if (typeof e == "string") return e;
12
+ let t = e + "";
13
+ return t == "0" && 1 / e == -N ? "-0" : t;
14
+ }
15
+ function de(e) {
16
+ return e == null ? "" : P(e);
17
+ }
18
+ function F(e) {
19
+ return typeof e == "string";
20
+ }
21
+ function I(e) {
22
+ return typeof e == "number";
23
+ }
24
+ function L(e) {
25
+ return e === !0 || e === !1 || z(e) && H(e) == "[object Boolean]";
26
+ }
27
+ function R(e) {
28
+ return typeof e == "object";
29
+ }
30
+ function z(e) {
31
+ return R(e) && e !== null;
32
+ }
33
+ function B(e) {
34
+ return e != null;
35
+ }
36
+ function V(e) {
37
+ return !e.trim().length;
38
+ }
39
+ function H(e) {
40
+ return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(e);
41
+ }
42
+ var fe = "Incorrect 'index' type", pe = (e) => `Invalid value for key ${e}`, me = (e) => `Pattern length exceeds max of ${e}.`, he = (e) => `Missing ${e} property in key`, U = (e) => `Property 'weight' in key '${e}' must be a positive integer`, W = Object.prototype.hasOwnProperty, ge = class {
43
+ constructor(e) {
44
+ this._keys = [], this._keyMap = {};
45
+ let t = 0;
46
+ e.forEach((e) => {
47
+ let n = _e(e);
48
+ this._keys.push(n), this._keyMap[n.id] = n, t += n.weight;
49
+ }), this._keys.forEach((e) => {
50
+ e.weight /= t;
51
+ });
52
+ }
53
+ get(e) {
54
+ return this._keyMap[e];
55
+ }
56
+ keys() {
57
+ return this._keys;
58
+ }
59
+ toJSON() {
60
+ return JSON.stringify(this._keys);
61
+ }
62
+ };
63
+ function _e(e) {
64
+ let t = null, n = null, r = null, i = 1, a = null;
65
+ if (F(e) || M(e)) r = e, t = ve(e), n = G(e);
66
+ else {
67
+ if (!W.call(e, "name")) throw Error(he("name"));
68
+ let o = e.name;
69
+ if (r = o, W.call(e, "weight") && (i = e.weight, i <= 0)) throw Error(U(o));
70
+ t = ve(o), n = G(o), a = e.getFn;
71
+ }
72
+ return {
73
+ path: t,
74
+ id: n,
75
+ weight: i,
76
+ src: r,
77
+ getFn: a
78
+ };
79
+ }
80
+ function ve(e) {
81
+ return M(e) ? e : e.split(".");
82
+ }
83
+ function G(e) {
84
+ return M(e) ? e.join(".") : e;
85
+ }
86
+ function ye(e, t) {
87
+ let n = [], r = !1, i = (e, t, a) => {
88
+ if (B(e)) if (!t[a]) n.push(e);
89
+ else {
90
+ let o = e[t[a]];
91
+ if (!B(o)) return;
92
+ if (a === t.length - 1 && (F(o) || I(o) || L(o))) n.push(de(o));
93
+ else if (M(o)) {
94
+ r = !0;
95
+ for (let e = 0, n = o.length; e < n; e += 1) i(o[e], t, a + 1);
96
+ } else t.length && i(o, t, a + 1);
97
+ }
98
+ };
99
+ return i(e, F(t) ? t.split(".") : t, 0), r ? n : n[0];
100
+ }
101
+ var be = {
102
+ includeMatches: !1,
103
+ findAllMatches: !1,
104
+ minMatchCharLength: 1
105
+ }, xe = {
106
+ isCaseSensitive: !1,
107
+ ignoreDiacritics: !1,
108
+ includeScore: !1,
109
+ keys: [],
110
+ shouldSort: !0,
111
+ sortFn: (e, t) => e.score === t.score ? e.idx < t.idx ? -1 : 1 : e.score < t.score ? -1 : 1
112
+ }, Se = {
113
+ location: 0,
114
+ threshold: .6,
115
+ distance: 100
116
+ }, Ce = {
117
+ useExtendedSearch: !1,
118
+ getFn: ye,
119
+ ignoreLocation: !1,
120
+ ignoreFieldNorm: !1,
121
+ fieldNormWeight: 1
122
+ }, K = {
123
+ ...xe,
124
+ ...be,
125
+ ...Se,
126
+ ...Ce
127
+ }, we = /[^ ]+/g;
128
+ function Te(e = 1, t = 3) {
129
+ let n = /* @__PURE__ */ new Map(), r = 10 ** t;
130
+ return {
131
+ get(t) {
132
+ let i = t.match(we).length;
133
+ if (n.has(i)) return n.get(i);
134
+ let a = 1 / i ** (.5 * e), o = parseFloat(Math.round(a * r) / r);
135
+ return n.set(i, o), o;
136
+ },
137
+ clear() {
138
+ n.clear();
139
+ }
140
+ };
141
+ }
142
+ var Ee = class {
143
+ constructor({ getFn: e = K.getFn, fieldNormWeight: t = K.fieldNormWeight } = {}) {
144
+ this.norm = Te(t, 3), this.getFn = e, this.isCreated = !1, this.setIndexRecords();
145
+ }
146
+ setSources(e = []) {
147
+ this.docs = e;
148
+ }
149
+ setIndexRecords(e = []) {
150
+ this.records = e;
151
+ }
152
+ setKeys(e = []) {
153
+ this.keys = e, this._keysMap = {}, e.forEach((e, t) => {
154
+ this._keysMap[e.id] = t;
155
+ });
156
+ }
157
+ create() {
158
+ this.isCreated || !this.docs.length || (this.isCreated = !0, F(this.docs[0]) ? this.docs.forEach((e, t) => {
159
+ this._addString(e, t);
160
+ }) : this.docs.forEach((e, t) => {
161
+ this._addObject(e, t);
162
+ }), this.norm.clear());
163
+ }
164
+ add(e) {
165
+ let t = this.size();
166
+ F(e) ? this._addString(e, t) : this._addObject(e, t);
167
+ }
168
+ removeAt(e) {
169
+ this.records.splice(e, 1);
170
+ for (let t = e, n = this.size(); t < n; t += 1) --this.records[t].i;
171
+ }
172
+ getValueForItemAtKeyId(e, t) {
173
+ return e[this._keysMap[t]];
174
+ }
175
+ size() {
176
+ return this.records.length;
177
+ }
178
+ _addString(e, t) {
179
+ if (!B(e) || V(e)) return;
180
+ let n = {
181
+ v: e,
182
+ i: t,
183
+ n: this.norm.get(e)
184
+ };
185
+ this.records.push(n);
186
+ }
187
+ _addObject(e, t) {
188
+ let n = {
189
+ i: t,
190
+ $: {}
191
+ };
192
+ this.keys.forEach((t, r) => {
193
+ let i = t.getFn ? t.getFn(e) : this.getFn(e, t.path);
194
+ if (B(i)) {
195
+ if (M(i)) {
196
+ let e = [], t = [{
197
+ nestedArrIndex: -1,
198
+ value: i
199
+ }];
200
+ for (; t.length;) {
201
+ let { nestedArrIndex: n, value: r } = t.pop();
202
+ if (B(r)) if (F(r) && !V(r)) {
203
+ let t = {
204
+ v: r,
205
+ i: n,
206
+ n: this.norm.get(r)
207
+ };
208
+ e.push(t);
209
+ } else M(r) && r.forEach((e, n) => {
210
+ t.push({
211
+ nestedArrIndex: n,
212
+ value: e
213
+ });
214
+ });
215
+ }
216
+ n.$[r] = e;
217
+ } else if (F(i) && !V(i)) {
218
+ let e = {
219
+ v: i,
220
+ n: this.norm.get(i)
221
+ };
222
+ n.$[r] = e;
223
+ }
224
+ }
225
+ }), this.records.push(n);
226
+ }
227
+ toJSON() {
228
+ return {
229
+ keys: this.keys,
230
+ records: this.records
231
+ };
232
+ }
233
+ };
234
+ function De(e, t, { getFn: n = K.getFn, fieldNormWeight: r = K.fieldNormWeight } = {}) {
235
+ let i = new Ee({
236
+ getFn: n,
237
+ fieldNormWeight: r
238
+ });
239
+ return i.setKeys(e.map(_e)), i.setSources(t), i.create(), i;
240
+ }
241
+ function Oe(e, { getFn: t = K.getFn, fieldNormWeight: n = K.fieldNormWeight } = {}) {
242
+ let { keys: r, records: i } = e, a = new Ee({
243
+ getFn: t,
244
+ fieldNormWeight: n
245
+ });
246
+ return a.setKeys(r), a.setIndexRecords(i), a;
247
+ }
248
+ function q(e, { errors: t = 0, currentLocation: n = 0, expectedLocation: r = 0, distance: i = K.distance, ignoreLocation: a = K.ignoreLocation } = {}) {
249
+ let o = t / e.length;
250
+ if (a) return o;
251
+ let s = Math.abs(r - n);
252
+ return i ? o + s / i : s ? 1 : o;
253
+ }
254
+ function ke(e = [], t = K.minMatchCharLength) {
255
+ let n = [], r = -1, i = -1, a = 0;
256
+ for (let o = e.length; a < o; a += 1) {
257
+ let o = e[a];
258
+ o && r === -1 ? r = a : !o && r !== -1 && (i = a - 1, i - r + 1 >= t && n.push([r, i]), r = -1);
259
+ }
260
+ return e[a - 1] && a - r >= t && n.push([r, a - 1]), n;
261
+ }
262
+ var J = 32;
263
+ function Ae(e, t, n, { location: r = K.location, distance: i = K.distance, threshold: a = K.threshold, findAllMatches: o = K.findAllMatches, minMatchCharLength: s = K.minMatchCharLength, includeMatches: c = K.includeMatches, ignoreLocation: l = K.ignoreLocation } = {}) {
264
+ if (t.length > J) throw Error(me(J));
265
+ let u = t.length, d = e.length, f = Math.max(0, Math.min(r, d)), p = a, m = f, h = s > 1 || c, g = h ? Array(d) : [], _;
266
+ for (; (_ = e.indexOf(t, m)) > -1;) {
267
+ let e = q(t, {
268
+ currentLocation: _,
269
+ expectedLocation: f,
270
+ distance: i,
271
+ ignoreLocation: l
272
+ });
273
+ if (p = Math.min(e, p), m = _ + u, h) {
274
+ let e = 0;
275
+ for (; e < u;) g[_ + e] = 1, e += 1;
276
+ }
277
+ }
278
+ m = -1;
279
+ let v = [], y = 1, b = u + d, x = 1 << u - 1;
280
+ for (let r = 0; r < u; r += 1) {
281
+ let a = 0, s = b;
282
+ for (; a < s;) q(t, {
283
+ errors: r,
284
+ currentLocation: f + s,
285
+ expectedLocation: f,
286
+ distance: i,
287
+ ignoreLocation: l
288
+ }) <= p ? a = s : b = s, s = Math.floor((b - a) / 2 + a);
289
+ b = s;
290
+ let c = Math.max(1, f - s + 1), _ = o ? d : Math.min(f + s, d) + u, S = Array(_ + 2);
291
+ S[_ + 1] = (1 << r) - 1;
292
+ for (let a = _; a >= c; --a) {
293
+ let o = a - 1, s = n[e.charAt(o)];
294
+ if (h && (g[o] = +!!s), S[a] = (S[a + 1] << 1 | 1) & s, r && (S[a] |= (v[a + 1] | v[a]) << 1 | 1 | v[a + 1]), S[a] & x && (y = q(t, {
295
+ errors: r,
296
+ currentLocation: o,
297
+ expectedLocation: f,
298
+ distance: i,
299
+ ignoreLocation: l
300
+ }), y <= p)) {
301
+ if (p = y, m = o, m <= f) break;
302
+ c = Math.max(1, 2 * f - m);
303
+ }
304
+ }
305
+ if (q(t, {
306
+ errors: r + 1,
307
+ currentLocation: f,
308
+ expectedLocation: f,
309
+ distance: i,
310
+ ignoreLocation: l
311
+ }) > p) break;
312
+ v = S;
313
+ }
314
+ let S = {
315
+ isMatch: m >= 0,
316
+ score: Math.max(.001, y)
317
+ };
318
+ if (h) {
319
+ let e = ke(g, s);
320
+ e.length ? c && (S.indices = e) : S.isMatch = !1;
321
+ }
322
+ return S;
323
+ }
324
+ function je(e) {
325
+ let t = {};
326
+ for (let n = 0, r = e.length; n < r; n += 1) {
327
+ let i = e.charAt(n);
328
+ t[i] = (t[i] || 0) | 1 << r - n - 1;
329
+ }
330
+ return t;
331
+ }
332
+ var Y = String.prototype.normalize ? ((e) => e.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g, "")) : ((e) => e), Me = class {
333
+ constructor(e, { location: t = K.location, threshold: n = K.threshold, distance: r = K.distance, includeMatches: i = K.includeMatches, findAllMatches: a = K.findAllMatches, minMatchCharLength: o = K.minMatchCharLength, isCaseSensitive: s = K.isCaseSensitive, ignoreDiacritics: c = K.ignoreDiacritics, ignoreLocation: l = K.ignoreLocation } = {}) {
334
+ if (this.options = {
335
+ location: t,
336
+ threshold: n,
337
+ distance: r,
338
+ includeMatches: i,
339
+ findAllMatches: a,
340
+ minMatchCharLength: o,
341
+ isCaseSensitive: s,
342
+ ignoreDiacritics: c,
343
+ ignoreLocation: l
344
+ }, e = s ? e : e.toLowerCase(), e = c ? Y(e) : e, this.pattern = e, this.chunks = [], !this.pattern.length) return;
345
+ let u = (e, t) => {
346
+ this.chunks.push({
347
+ pattern: e,
348
+ alphabet: je(e),
349
+ startIndex: t
350
+ });
351
+ }, d = this.pattern.length;
352
+ if (d > J) {
353
+ let e = 0, t = d % J, n = d - t;
354
+ for (; e < n;) u(this.pattern.substr(e, J), e), e += J;
355
+ if (t) {
356
+ let e = d - J;
357
+ u(this.pattern.substr(e), e);
358
+ }
359
+ } else u(this.pattern, 0);
360
+ }
361
+ searchIn(e) {
362
+ let { isCaseSensitive: t, ignoreDiacritics: n, includeMatches: r } = this.options;
363
+ if (e = t ? e : e.toLowerCase(), e = n ? Y(e) : e, this.pattern === e) {
364
+ let t = {
365
+ isMatch: !0,
366
+ score: 0
367
+ };
368
+ return r && (t.indices = [[0, e.length - 1]]), t;
369
+ }
370
+ let { location: i, distance: a, threshold: o, findAllMatches: s, minMatchCharLength: c, ignoreLocation: l } = this.options, u = [], d = 0, f = !1;
371
+ this.chunks.forEach(({ pattern: t, alphabet: n, startIndex: p }) => {
372
+ let { isMatch: m, score: h, indices: g } = Ae(e, t, n, {
373
+ location: i + p,
374
+ distance: a,
375
+ threshold: o,
376
+ findAllMatches: s,
377
+ minMatchCharLength: c,
378
+ includeMatches: r,
379
+ ignoreLocation: l
380
+ });
381
+ m && (f = !0), d += h, m && g && (u = [...u, ...g]);
382
+ });
383
+ let p = {
384
+ isMatch: f,
385
+ score: f ? d / this.chunks.length : 1
386
+ };
387
+ return f && r && (p.indices = u), p;
388
+ }
389
+ }, X = class {
390
+ constructor(e) {
391
+ this.pattern = e;
392
+ }
393
+ static isMultiMatch(e) {
394
+ return Ne(e, this.multiRegex);
395
+ }
396
+ static isSingleMatch(e) {
397
+ return Ne(e, this.singleRegex);
398
+ }
399
+ search() {}
400
+ };
401
+ function Ne(e, t) {
402
+ let n = e.match(t);
403
+ return n ? n[1] : null;
404
+ }
405
+ var Pe = class extends X {
406
+ constructor(e) {
407
+ super(e);
408
+ }
409
+ static get type() {
410
+ return "exact";
411
+ }
412
+ static get multiRegex() {
413
+ return /^="(.*)"$/;
414
+ }
415
+ static get singleRegex() {
416
+ return /^=(.*)$/;
417
+ }
418
+ search(e) {
419
+ let t = e === this.pattern;
420
+ return {
421
+ isMatch: t,
422
+ score: +!t,
423
+ indices: [0, this.pattern.length - 1]
424
+ };
425
+ }
426
+ }, Fe = class extends X {
427
+ constructor(e) {
428
+ super(e);
429
+ }
430
+ static get type() {
431
+ return "inverse-exact";
432
+ }
433
+ static get multiRegex() {
434
+ return /^!"(.*)"$/;
435
+ }
436
+ static get singleRegex() {
437
+ return /^!(.*)$/;
438
+ }
439
+ search(e) {
440
+ let t = e.indexOf(this.pattern) === -1;
441
+ return {
442
+ isMatch: t,
443
+ score: +!t,
444
+ indices: [0, e.length - 1]
445
+ };
446
+ }
447
+ }, Ie = class extends X {
448
+ constructor(e) {
449
+ super(e);
450
+ }
451
+ static get type() {
452
+ return "prefix-exact";
453
+ }
454
+ static get multiRegex() {
455
+ return /^\^"(.*)"$/;
456
+ }
457
+ static get singleRegex() {
458
+ return /^\^(.*)$/;
459
+ }
460
+ search(e) {
461
+ let t = e.startsWith(this.pattern);
462
+ return {
463
+ isMatch: t,
464
+ score: +!t,
465
+ indices: [0, this.pattern.length - 1]
466
+ };
467
+ }
468
+ }, Le = class extends X {
469
+ constructor(e) {
470
+ super(e);
471
+ }
472
+ static get type() {
473
+ return "inverse-prefix-exact";
474
+ }
475
+ static get multiRegex() {
476
+ return /^!\^"(.*)"$/;
477
+ }
478
+ static get singleRegex() {
479
+ return /^!\^(.*)$/;
480
+ }
481
+ search(e) {
482
+ let t = !e.startsWith(this.pattern);
483
+ return {
484
+ isMatch: t,
485
+ score: +!t,
486
+ indices: [0, e.length - 1]
487
+ };
488
+ }
489
+ }, Re = class extends X {
490
+ constructor(e) {
491
+ super(e);
492
+ }
493
+ static get type() {
494
+ return "suffix-exact";
495
+ }
496
+ static get multiRegex() {
497
+ return /^"(.*)"\$$/;
498
+ }
499
+ static get singleRegex() {
500
+ return /^(.*)\$$/;
501
+ }
502
+ search(e) {
503
+ let t = e.endsWith(this.pattern);
504
+ return {
505
+ isMatch: t,
506
+ score: +!t,
507
+ indices: [e.length - this.pattern.length, e.length - 1]
508
+ };
509
+ }
510
+ }, ze = class extends X {
511
+ constructor(e) {
512
+ super(e);
513
+ }
514
+ static get type() {
515
+ return "inverse-suffix-exact";
516
+ }
517
+ static get multiRegex() {
518
+ return /^!"(.*)"\$$/;
519
+ }
520
+ static get singleRegex() {
521
+ return /^!(.*)\$$/;
522
+ }
523
+ search(e) {
524
+ let t = !e.endsWith(this.pattern);
525
+ return {
526
+ isMatch: t,
527
+ score: +!t,
528
+ indices: [0, e.length - 1]
529
+ };
530
+ }
531
+ }, Be = class extends X {
532
+ constructor(e, { location: t = K.location, threshold: n = K.threshold, distance: r = K.distance, includeMatches: i = K.includeMatches, findAllMatches: a = K.findAllMatches, minMatchCharLength: o = K.minMatchCharLength, isCaseSensitive: s = K.isCaseSensitive, ignoreDiacritics: c = K.ignoreDiacritics, ignoreLocation: l = K.ignoreLocation } = {}) {
533
+ super(e), this._bitapSearch = new Me(e, {
534
+ location: t,
535
+ threshold: n,
536
+ distance: r,
537
+ includeMatches: i,
538
+ findAllMatches: a,
539
+ minMatchCharLength: o,
540
+ isCaseSensitive: s,
541
+ ignoreDiacritics: c,
542
+ ignoreLocation: l
543
+ });
544
+ }
545
+ static get type() {
546
+ return "fuzzy";
547
+ }
548
+ static get multiRegex() {
549
+ return /^"(.*)"$/;
550
+ }
551
+ static get singleRegex() {
552
+ return /^(.*)$/;
553
+ }
554
+ search(e) {
555
+ return this._bitapSearch.searchIn(e);
556
+ }
557
+ }, Ve = class extends X {
558
+ constructor(e) {
559
+ super(e);
560
+ }
561
+ static get type() {
562
+ return "include";
563
+ }
564
+ static get multiRegex() {
565
+ return /^'"(.*)"$/;
566
+ }
567
+ static get singleRegex() {
568
+ return /^'(.*)$/;
569
+ }
570
+ search(e) {
571
+ let t = 0, n, r = [], i = this.pattern.length;
572
+ for (; (n = e.indexOf(this.pattern, t)) > -1;) t = n + i, r.push([n, t - 1]);
573
+ let a = !!r.length;
574
+ return {
575
+ isMatch: a,
576
+ score: +!a,
577
+ indices: r
578
+ };
579
+ }
580
+ }, He = [
581
+ Pe,
582
+ Ve,
583
+ Ie,
584
+ Le,
585
+ ze,
586
+ Re,
587
+ Fe,
588
+ Be
589
+ ], Ue = He.length, We = / +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/, Ge = "|";
590
+ function Ke(e, t = {}) {
591
+ return e.split(Ge).map((e) => {
592
+ let n = e.trim().split(We).filter((e) => e && !!e.trim()), r = [];
593
+ for (let e = 0, i = n.length; e < i; e += 1) {
594
+ let i = n[e], a = !1, o = -1;
595
+ for (; !a && ++o < Ue;) {
596
+ let e = He[o], n = e.isMultiMatch(i);
597
+ n && (r.push(new e(n, t)), a = !0);
598
+ }
599
+ if (!a) for (o = -1; ++o < Ue;) {
600
+ let e = He[o], n = e.isSingleMatch(i);
601
+ if (n) {
602
+ r.push(new e(n, t));
603
+ break;
604
+ }
605
+ }
606
+ }
607
+ return r;
608
+ });
609
+ }
610
+ var qe = new Set([Be.type, Ve.type]), Je = class {
611
+ constructor(e, { isCaseSensitive: t = K.isCaseSensitive, ignoreDiacritics: n = K.ignoreDiacritics, includeMatches: r = K.includeMatches, minMatchCharLength: i = K.minMatchCharLength, ignoreLocation: a = K.ignoreLocation, findAllMatches: o = K.findAllMatches, location: s = K.location, threshold: c = K.threshold, distance: l = K.distance } = {}) {
612
+ this.query = null, this.options = {
613
+ isCaseSensitive: t,
614
+ ignoreDiacritics: n,
615
+ includeMatches: r,
616
+ minMatchCharLength: i,
617
+ findAllMatches: o,
618
+ ignoreLocation: a,
619
+ location: s,
620
+ threshold: c,
621
+ distance: l
622
+ }, e = t ? e : e.toLowerCase(), e = n ? Y(e) : e, this.pattern = e, this.query = Ke(this.pattern, this.options);
623
+ }
624
+ static condition(e, t) {
625
+ return t.useExtendedSearch;
626
+ }
627
+ searchIn(e) {
628
+ let t = this.query;
629
+ if (!t) return {
630
+ isMatch: !1,
631
+ score: 1
632
+ };
633
+ let { includeMatches: n, isCaseSensitive: r, ignoreDiacritics: i } = this.options;
634
+ e = r ? e : e.toLowerCase(), e = i ? Y(e) : e;
635
+ let a = 0, o = [], s = 0;
636
+ for (let r = 0, i = t.length; r < i; r += 1) {
637
+ let i = t[r];
638
+ o.length = 0, a = 0;
639
+ for (let t = 0, r = i.length; t < r; t += 1) {
640
+ let r = i[t], { isMatch: c, indices: l, score: u } = r.search(e);
641
+ if (c) {
642
+ if (a += 1, s += u, n) {
643
+ let e = r.constructor.type;
644
+ qe.has(e) ? o = [...o, ...l] : o.push(l);
645
+ }
646
+ } else {
647
+ s = 0, a = 0, o.length = 0;
648
+ break;
649
+ }
650
+ }
651
+ if (a) {
652
+ let e = {
653
+ isMatch: !0,
654
+ score: s / a
655
+ };
656
+ return n && (e.indices = o), e;
657
+ }
658
+ }
659
+ return {
660
+ isMatch: !1,
661
+ score: 1
662
+ };
663
+ }
664
+ }, Ye = [];
665
+ function Xe(...e) {
666
+ Ye.push(...e);
667
+ }
668
+ function Ze(e, t) {
669
+ for (let n = 0, r = Ye.length; n < r; n += 1) {
670
+ let r = Ye[n];
671
+ if (r.condition(e, t)) return new r(e, t);
672
+ }
673
+ return new Me(e, t);
674
+ }
675
+ var Z = {
676
+ AND: "$and",
677
+ OR: "$or"
678
+ }, Qe = {
679
+ PATH: "$path",
680
+ PATTERN: "$val"
681
+ }, $e = (e) => !!(e[Z.AND] || e[Z.OR]), et = (e) => !!e[Qe.PATH], tt = (e) => !M(e) && R(e) && !$e(e), nt = (e) => ({ [Z.AND]: Object.keys(e).map((t) => ({ [t]: e[t] })) });
682
+ function rt(e, t, { auto: n = !0 } = {}) {
683
+ let r = (e) => {
684
+ let i = Object.keys(e), a = et(e);
685
+ if (!a && i.length > 1 && !$e(e)) return r(nt(e));
686
+ if (tt(e)) {
687
+ let r = a ? e[Qe.PATH] : i[0], o = a ? e[Qe.PATTERN] : e[r];
688
+ if (!F(o)) throw Error(pe(r));
689
+ let s = {
690
+ keyId: G(r),
691
+ pattern: o
692
+ };
693
+ return n && (s.searcher = Ze(o, t)), s;
694
+ }
695
+ let o = {
696
+ children: [],
697
+ operator: i[0]
698
+ };
699
+ return i.forEach((t) => {
700
+ let n = e[t];
701
+ M(n) && n.forEach((e) => {
702
+ o.children.push(r(e));
703
+ });
704
+ }), o;
705
+ };
706
+ return $e(e) || (e = nt(e)), r(e);
707
+ }
708
+ function it(e, { ignoreFieldNorm: t = K.ignoreFieldNorm }) {
709
+ e.forEach((e) => {
710
+ let n = 1;
711
+ e.matches.forEach(({ key: e, norm: r, score: i }) => {
712
+ let a = e ? e.weight : null;
713
+ n *= (i === 0 && a ? 2 ** -52 : i) ** +((a || 1) * (t ? 1 : r));
714
+ }), e.score = n;
715
+ });
716
+ }
717
+ function at(e, t) {
718
+ let n = e.matches;
719
+ t.matches = [], B(n) && n.forEach((e) => {
720
+ if (!B(e.indices) || !e.indices.length) return;
721
+ let { indices: n, value: r } = e, i = {
722
+ indices: n,
723
+ value: r
724
+ };
725
+ e.key && (i.key = e.key.src), e.idx > -1 && (i.refIndex = e.idx), t.matches.push(i);
726
+ });
727
+ }
728
+ function ot(e, t) {
729
+ t.score = e.score;
730
+ }
731
+ function st(e, t, { includeMatches: n = K.includeMatches, includeScore: r = K.includeScore } = {}) {
732
+ let i = [];
733
+ return n && i.push(at), r && i.push(ot), e.map((e) => {
734
+ let { idx: n } = e, r = {
735
+ item: t[n],
736
+ refIndex: n
737
+ };
738
+ return i.length && i.forEach((t) => {
739
+ t(e, r);
740
+ }), r;
741
+ });
742
+ }
743
+ var Q = class {
744
+ constructor(e, t = {}, n) {
745
+ this.options = {
746
+ ...K,
747
+ ...t
748
+ }, this.options.useExtendedSearch, this._keyStore = new ge(this.options.keys), this.setCollection(e, n);
749
+ }
750
+ setCollection(e, t) {
751
+ if (this._docs = e, t && !(t instanceof Ee)) throw Error(fe);
752
+ this._myIndex = t || De(this.options.keys, this._docs, {
753
+ getFn: this.options.getFn,
754
+ fieldNormWeight: this.options.fieldNormWeight
755
+ });
756
+ }
757
+ add(e) {
758
+ B(e) && (this._docs.push(e), this._myIndex.add(e));
759
+ }
760
+ remove(e = () => !1) {
761
+ let t = [];
762
+ for (let n = 0, r = this._docs.length; n < r; n += 1) {
763
+ let i = this._docs[n];
764
+ e(i, n) && (this.removeAt(n), --n, --r, t.push(i));
765
+ }
766
+ return t;
767
+ }
768
+ removeAt(e) {
769
+ this._docs.splice(e, 1), this._myIndex.removeAt(e);
770
+ }
771
+ getIndex() {
772
+ return this._myIndex;
773
+ }
774
+ search(e, { limit: t = -1 } = {}) {
775
+ let { includeMatches: n, includeScore: r, shouldSort: i, sortFn: a, ignoreFieldNorm: o } = this.options, s = F(e) ? F(this._docs[0]) ? this._searchStringList(e) : this._searchObjectList(e) : this._searchLogical(e);
776
+ return it(s, { ignoreFieldNorm: o }), i && s.sort(a), I(t) && t > -1 && (s = s.slice(0, t)), st(s, this._docs, {
777
+ includeMatches: n,
778
+ includeScore: r
779
+ });
780
+ }
781
+ _searchStringList(e) {
782
+ let t = Ze(e, this.options), { records: n } = this._myIndex, r = [];
783
+ return n.forEach(({ v: e, i: n, n: i }) => {
784
+ if (!B(e)) return;
785
+ let { isMatch: a, score: o, indices: s } = t.searchIn(e);
786
+ a && r.push({
787
+ item: e,
788
+ idx: n,
789
+ matches: [{
790
+ score: o,
791
+ value: e,
792
+ norm: i,
793
+ indices: s
794
+ }]
795
+ });
796
+ }), r;
797
+ }
798
+ _searchLogical(e) {
799
+ let t = rt(e, this.options), n = (e, t, r) => {
800
+ if (!e.children) {
801
+ let { keyId: n, searcher: i } = e, a = this._findMatches({
802
+ key: this._keyStore.get(n),
803
+ value: this._myIndex.getValueForItemAtKeyId(t, n),
804
+ searcher: i
805
+ });
806
+ return a && a.length ? [{
807
+ idx: r,
808
+ item: t,
809
+ matches: a
810
+ }] : [];
811
+ }
812
+ let i = [];
813
+ for (let a = 0, o = e.children.length; a < o; a += 1) {
814
+ let o = e.children[a], s = n(o, t, r);
815
+ if (s.length) i.push(...s);
816
+ else if (e.operator === Z.AND) return [];
817
+ }
818
+ return i;
819
+ }, r = this._myIndex.records, i = {}, a = [];
820
+ return r.forEach(({ $: e, i: r }) => {
821
+ if (B(e)) {
822
+ let o = n(t, e, r);
823
+ o.length && (i[r] || (i[r] = {
824
+ idx: r,
825
+ item: e,
826
+ matches: []
827
+ }, a.push(i[r])), o.forEach(({ matches: e }) => {
828
+ i[r].matches.push(...e);
829
+ }));
830
+ }
831
+ }), a;
832
+ }
833
+ _searchObjectList(e) {
834
+ let t = Ze(e, this.options), { keys: n, records: r } = this._myIndex, i = [];
835
+ return r.forEach(({ $: e, i: r }) => {
836
+ if (!B(e)) return;
837
+ let a = [];
838
+ n.forEach((n, r) => {
839
+ a.push(...this._findMatches({
840
+ key: n,
841
+ value: e[r],
842
+ searcher: t
843
+ }));
844
+ }), a.length && i.push({
845
+ idx: r,
846
+ item: e,
847
+ matches: a
848
+ });
849
+ }), i;
850
+ }
851
+ _findMatches({ key: e, value: t, searcher: n }) {
852
+ if (!B(t)) return [];
853
+ let r = [];
854
+ if (M(t)) t.forEach(({ v: t, i, n: a }) => {
855
+ if (!B(t)) return;
856
+ let { isMatch: o, score: s, indices: c } = n.searchIn(t);
857
+ o && r.push({
858
+ score: s,
859
+ key: e,
860
+ value: t,
861
+ idx: i,
862
+ norm: a,
863
+ indices: c
864
+ });
865
+ });
866
+ else {
867
+ let { v: i, n: a } = t, { isMatch: o, score: s, indices: c } = n.searchIn(i);
868
+ o && r.push({
869
+ score: s,
870
+ key: e,
871
+ value: i,
872
+ norm: a,
873
+ indices: c
874
+ });
875
+ }
876
+ return r;
877
+ }
878
+ };
879
+ Q.version = "7.1.0", Q.createIndex = De, Q.parseIndex = Oe, Q.config = K, Q.parseQuery = rt, Xe(Je);
880
+ //#endregion
881
+ //#region src/appointments/utils/printReservation.ts
882
+ var $ = (e) => e == null ? "—" : `€${e.toFixed(2)}`, ct = (e) => {
883
+ if (!e) return "—";
884
+ if (e < 60) return `${e} min`;
885
+ let t = Math.floor(e / 60), n = e % 60;
886
+ return n > 0 ? `${t}h ${n}min` : `${t}h`;
887
+ }, lt = (e) => {
888
+ switch (e) {
889
+ case "confirmed": return "Confirmed";
890
+ case "pending": return "Pending";
891
+ case "cancelled": return "Cancelled";
892
+ default: return e || "Unknown";
893
+ }
894
+ }, ut = (e) => {
895
+ switch (e) {
896
+ case "confirmed": return "#16a34a";
897
+ case "pending": return "#ca8a04";
898
+ case "cancelled": return "#dc2626";
899
+ default: return "#6b7280";
900
+ }
901
+ }, dt = (e, t = {}) => {
902
+ let n = `${e.customerInfo?.firstName || ""} ${e.customerInfo?.lastName || ""}`.trim() || "Unknown Customer", r = e.id?.slice(0, 8) || "—", i = (/* @__PURE__ */ new Date()).toLocaleDateString("en-US", {
903
+ year: "numeric",
904
+ month: "long",
905
+ day: "numeric"
906
+ }), a = `
907
+ <!DOCTYPE html>
908
+ <html lang="en">
909
+ <head>
910
+ <meta charset="UTF-8">
911
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
912
+ <title>Reservation ${r}</title>
913
+ <style>
914
+ * {
915
+ margin: 0;
916
+ padding: 0;
917
+ box-sizing: border-box;
918
+ }
919
+
920
+ body {
921
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
922
+ line-height: 1.6;
923
+ color: #1f2937;
924
+ background: #fff;
925
+ padding: 40px;
926
+ max-width: 800px;
927
+ margin: 0 auto;
928
+ }
929
+
930
+ .header {
931
+ display: flex;
932
+ justify-content: space-between;
933
+ align-items: flex-start;
934
+ margin-bottom: 40px;
935
+ padding-bottom: 20px;
936
+ border-bottom: 2px solid #e5e7eb;
937
+ }
938
+
939
+ .company-info {
940
+ display: flex;
941
+ align-items: center;
942
+ gap: 16px;
943
+ }
944
+
945
+ .company-logo {
946
+ max-height: 50px;
947
+ max-width: 150px;
948
+ object-fit: contain;
949
+ }
950
+
951
+ .company-name {
952
+ font-size: 24px;
953
+ font-weight: 700;
954
+ color: #111827;
955
+ }
956
+
957
+ .document-info {
958
+ text-align: right;
959
+ }
960
+
961
+ .document-title {
962
+ font-size: 28px;
963
+ font-weight: 700;
964
+ color: #111827;
965
+ margin-bottom: 8px;
966
+ }
967
+
968
+ .booking-id {
969
+ font-size: 14px;
970
+ color: #6b7280;
971
+ }
972
+
973
+ .status-badge {
974
+ display: inline-block;
975
+ padding: 4px 12px;
976
+ border-radius: 9999px;
977
+ font-size: 12px;
978
+ font-weight: 600;
979
+ text-transform: uppercase;
980
+ margin-top: 8px;
981
+ }
982
+
983
+ .section {
984
+ margin-bottom: 32px;
985
+ }
986
+
987
+ .section-title {
988
+ font-size: 12px;
989
+ font-weight: 600;
990
+ text-transform: uppercase;
991
+ letter-spacing: 0.05em;
992
+ color: #6b7280;
993
+ margin-bottom: 12px;
994
+ }
995
+
996
+ .section-content {
997
+ background: #f9fafb;
998
+ border-radius: 8px;
999
+ padding: 20px;
1000
+ }
1001
+
1002
+ .customer-name {
1003
+ font-size: 18px;
1004
+ font-weight: 600;
1005
+ margin-bottom: 8px;
1006
+ }
1007
+
1008
+ .contact-info {
1009
+ font-size: 14px;
1010
+ color: #4b5563;
1011
+ }
1012
+
1013
+ .contact-info a {
1014
+ color: #4b5563;
1015
+ text-decoration: none;
1016
+ }
1017
+
1018
+ .grid {
1019
+ display: grid;
1020
+ grid-template-columns: 1fr 1fr;
1021
+ gap: 16px;
1022
+ }
1023
+
1024
+ .info-card {
1025
+ background: #f9fafb;
1026
+ border-radius: 8px;
1027
+ padding: 16px;
1028
+ }
1029
+
1030
+ .info-label {
1031
+ font-size: 12px;
1032
+ color: #6b7280;
1033
+ margin-bottom: 4px;
1034
+ }
1035
+
1036
+ .info-value {
1037
+ font-size: 16px;
1038
+ font-weight: 600;
1039
+ }
1040
+
1041
+ .package-row {
1042
+ display: flex;
1043
+ justify-content: space-between;
1044
+ align-items: flex-start;
1045
+ }
1046
+
1047
+ .package-name {
1048
+ font-size: 16px;
1049
+ font-weight: 600;
1050
+ }
1051
+
1052
+ .package-duration {
1053
+ font-size: 14px;
1054
+ color: #6b7280;
1055
+ }
1056
+
1057
+ .package-price {
1058
+ font-size: 16px;
1059
+ font-weight: 600;
1060
+ }
1061
+
1062
+ .payment-row {
1063
+ display: flex;
1064
+ justify-content: space-between;
1065
+ padding: 8px 0;
1066
+ font-size: 14px;
1067
+ }
1068
+
1069
+ .payment-label {
1070
+ color: #6b7280;
1071
+ }
1072
+
1073
+ .payment-value {
1074
+ font-weight: 500;
1075
+ }
1076
+
1077
+ .payment-value.green {
1078
+ color: #16a34a;
1079
+ }
1080
+
1081
+ .payment-value.orange {
1082
+ color: #ea580c;
1083
+ }
1084
+
1085
+ .payment-divider {
1086
+ border-top: 1px solid #e5e7eb;
1087
+ margin: 12px 0;
1088
+ }
1089
+
1090
+ .payment-total {
1091
+ font-size: 16px;
1092
+ font-weight: 600;
1093
+ }
1094
+
1095
+ .footer {
1096
+ margin-top: 60px;
1097
+ padding-top: 20px;
1098
+ border-top: 1px solid #e5e7eb;
1099
+ text-align: center;
1100
+ font-size: 12px;
1101
+ color: #9ca3af;
1102
+ }
1103
+
1104
+ @media print {
1105
+ body {
1106
+ padding: 20px;
1107
+ }
1108
+
1109
+ .no-print {
1110
+ display: none;
1111
+ }
1112
+ }
1113
+ </style>
1114
+ </head>
1115
+ <body>
1116
+ <div class="header">
1117
+ <div class="company-info">
1118
+ ${t.companyLogo ? `<img src="${t.companyLogo}" alt="Logo" class="company-logo" />` : ""}
1119
+ ${t.companyName ? `<span class="company-name">${t.companyName}</span>` : ""}
1120
+ </div>
1121
+ <div class="document-info">
1122
+ <div class="document-title">Reservation</div>
1123
+ <div class="booking-id">Booking #${r}</div>
1124
+ <div
1125
+ class="status-badge"
1126
+ style="background-color: ${ut(e.status)}20; color: ${ut(e.status)};"
1127
+ >
1128
+ ${lt(e.status)}
1129
+ </div>
1130
+ </div>
1131
+ </div>
1132
+
1133
+ <div class="section">
1134
+ <div class="section-title">Customer</div>
1135
+ <div class="section-content">
1136
+ <div class="customer-name">${n}</div>
1137
+ <div class="contact-info">
1138
+ ${e.customerInfo?.email ? `<div>Email: <a href="mailto:${e.customerInfo.email}">${e.customerInfo.email}</a></div>` : ""}
1139
+ ${e.customerInfo?.phone ? `<div>Phone: <a href="tel:${e.customerInfo.phone}">${e.customerInfo.phone}</a></div>` : ""}
1140
+ </div>
1141
+ </div>
1142
+ </div>
1143
+
1144
+ <div class="section">
1145
+ <div class="section-title">Reservation Details</div>
1146
+ <div class="grid">
1147
+ <div class="info-card">
1148
+ <div class="info-label">Date</div>
1149
+ <div class="info-value">${t.date || "—"}</div>
1150
+ </div>
1151
+ <div class="info-card">
1152
+ <div class="info-label">Time</div>
1153
+ <div class="info-value">${e.startTime} - ${e.endTime}</div>
1154
+ </div>
1155
+ <div class="info-card">
1156
+ <div class="info-label">Spots</div>
1157
+ <div class="info-value">${e.spots || 1} ${(e.spots || 1) === 1 ? "person" : "people"}</div>
1158
+ </div>
1159
+ ${t.resourceName ? `
1160
+ <div class="info-card">
1161
+ <div class="info-label">Resource</div>
1162
+ <div class="info-value">${t.resourceName}</div>
1163
+ </div>
1164
+ ` : ""}
1165
+ ${t.agendaName ? `
1166
+ <div class="info-card">
1167
+ <div class="info-label">Service</div>
1168
+ <div class="info-value">${t.agendaName}</div>
1169
+ </div>
1170
+ ` : ""}
1171
+ </div>
1172
+ </div>
1173
+
1174
+ ${e.pricingOption ? `
1175
+ <div class="section">
1176
+ <div class="section-title">Package</div>
1177
+ <div class="section-content">
1178
+ <div class="package-row">
1179
+ <div>
1180
+ <div class="package-name">${e.pricingOption.name}</div>
1181
+ <div class="package-duration">${ct(e.pricingOption.duration)}</div>
1182
+ </div>
1183
+ <div class="package-price">${$(e.pricingOption.price)}</div>
1184
+ </div>
1185
+ </div>
1186
+ </div>
1187
+ ` : ""}
1188
+
1189
+ <div class="section">
1190
+ <div class="section-title">Payment Summary</div>
1191
+ <div class="section-content">
1192
+ <div class="payment-row">
1193
+ <span class="payment-label">Base price</span>
1194
+ <span class="payment-value">${$(e.reservationBasePrice)}</span>
1195
+ </div>
1196
+ ${e.reservationAddOnsPrice ? `
1197
+ <div class="payment-row">
1198
+ <span class="payment-label">Add-ons</span>
1199
+ <span class="payment-value">${$(e.reservationAddOnsPrice)}</span>
1200
+ </div>
1201
+ ` : ""}
1202
+ ${e.discount ? `
1203
+ <div class="payment-row">
1204
+ <span class="payment-label">Discount</span>
1205
+ <span class="payment-value green">-${$(e.discount)}</span>
1206
+ </div>
1207
+ ` : ""}
1208
+
1209
+ <div class="payment-divider"></div>
1210
+
1211
+ <div class="payment-row payment-total">
1212
+ <span>Reservation Total</span>
1213
+ <span>${$(e.reservationPrice)}</span>
1214
+ </div>
1215
+
1216
+ ${e.amountPaid !== void 0 || e.amountDue !== void 0 ? `
1217
+ <div class="payment-divider"></div>
1218
+
1219
+ ${e.amountPaid === void 0 ? "" : `
1220
+ <div class="payment-row">
1221
+ <span class="payment-label">Amount paid</span>
1222
+ <span class="payment-value green">${$(e.amountPaid)}</span>
1223
+ </div>
1224
+ `}
1225
+
1226
+ ${e.amountDue !== void 0 && e.amountDue > 0 ? `
1227
+ <div class="payment-row">
1228
+ <span class="payment-label">Amount due</span>
1229
+ <span class="payment-value orange">${$(e.amountDue)}</span>
1230
+ </div>
1231
+ ` : ""}
1232
+ ` : ""}
1233
+ </div>
1234
+ </div>
1235
+
1236
+ <div class="footer">
1237
+ <p>Generated on ${i}</p>
1238
+ ${t.companyName ? `<p>${t.companyName}</p>` : ""}
1239
+ </div>
1240
+ </body>
1241
+ </html>
1242
+ `, o = window.open("", "_blank");
1243
+ o && (o.document.write(a), o.document.close(), o.onload = () => {
1244
+ o.print();
1245
+ });
1246
+ }, ft = { class: "flex items-center bg-muted/70 dark:bg-muted/20 px-4 rounded-md" }, pt = { class: "grid gap-2" }, mt = { class: "grid gap-2" }, ht = { class: "grid gap-2" }, gt = /* @__PURE__ */ p({
1247
+ __name: "CancelReservationDialog",
1248
+ emits: ["confirm"],
1249
+ setup(e, { expose: t, emit: i }) {
1250
+ let { config: a } = r(), { sendMail: o } = n(a.mailAccount), c = i, l = v(!1), p = v(!1), m = v(""), g = v(""), y = v(""), x = (e) => {
1251
+ p.value = !a.mailAccount, l.value = !0, e && (m.value = e.customerInfo?.email, g.value = "Cancellation of your reservation - " + new Date(e.date)?.toDateString(), y.value = `Dear ${e.customerInfo?.firstName ?? ""} ${e.customerInfo?.lastName ?? ""},
1252
+
1253
+ We are writing to inform you that your reservation scheduled for ${new Date(e.date)?.toDateString()} at ${e.startTime} has been cancelled.
1254
+
1255
+ Please accept our sincere apologies for any inconvenience this may cause. We would be happy to help you find an alternative time that works for you.`);
1256
+ }, S = () => {
1257
+ if (!p.value) {
1258
+ if (!m.value || !g.value || !y.value) return alert("Please fill in all the fields.");
1259
+ o({
1260
+ to: m.value,
1261
+ subject: g.value,
1262
+ body: y.value
1263
+ });
1264
+ }
1265
+ l.value = !1;
1266
+ let { $confetti: e } = useNuxtApp();
1267
+ e(), c("confirm");
1268
+ };
1269
+ return t({ openDialog: x }), (e, t) => {
1270
+ let n = b("DialogTitle"), r = b("DialogDescription"), i = b("DialogHeader"), o = b("Checkbox"), c = b("Label"), v = b("Input"), x = b("Textarea"), w = b("Button"), E = b("DialogFooter"), D = b("DialogScrollContent"), O = b("Dialog");
1271
+ return _(), s(O, {
1272
+ open: l.value,
1273
+ "onUpdate:open": t[5] ||= (e) => l.value = e
1274
+ }, {
1275
+ default: T(() => [f(D, { class: "sm:max-w-3xl" }, {
1276
+ default: T(() => [
1277
+ f(i, null, {
1278
+ default: T(() => [f(n, null, {
1279
+ default: T(() => [...t[6] ||= [d(" Cancel Reservation ", -1)]]),
1280
+ _: 1
1281
+ }), f(r)]),
1282
+ _: 1
1283
+ }),
1284
+ u("div", ft, [f(o, {
1285
+ modelValue: p.value,
1286
+ "onUpdate:modelValue": t[0] ||= (e) => p.value = e,
1287
+ id: "cancel-dialog-skip-mail",
1288
+ class: "border-black/80 dark:border-gray-200",
1289
+ disabled: !C(a).mailAccount
1290
+ }, null, 8, ["modelValue", "disabled"]), f(c, {
1291
+ for: "cancel-dialog-skip-mail",
1292
+ class: "py-4 pl-2 pr-4"
1293
+ }, {
1294
+ default: T(() => [...t[7] ||= [d("Do not send email to customer", -1)]]),
1295
+ _: 1
1296
+ })]),
1297
+ u("div", { class: h(["grid gap-4 py-4", { "opacity-50": p.value }]) }, [
1298
+ u("div", pt, [f(c, { for: "cancel-dialog-email" }, {
1299
+ default: T(() => [...t[8] ||= [d("To:", -1)]]),
1300
+ _: 1
1301
+ }), f(v, {
1302
+ modelValue: m.value,
1303
+ "onUpdate:modelValue": t[1] ||= (e) => m.value = e,
1304
+ disabled: p.value,
1305
+ id: "cancel-dialog-email"
1306
+ }, null, 8, ["modelValue", "disabled"])]),
1307
+ u("div", mt, [f(c, { for: "cancel-dialog-subject" }, {
1308
+ default: T(() => [...t[9] ||= [d("Subject:", -1)]]),
1309
+ _: 1
1310
+ }), f(v, {
1311
+ modelValue: g.value,
1312
+ "onUpdate:modelValue": t[2] ||= (e) => g.value = e,
1313
+ disabled: p.value,
1314
+ id: "cancel-dialog-subject"
1315
+ }, null, 8, ["modelValue", "disabled"])]),
1316
+ u("div", ht, [f(c, { for: "cancel-dialog-body" }, {
1317
+ default: T(() => [...t[10] ||= [d("Body:", -1)]]),
1318
+ _: 1
1319
+ }), f(x, {
1320
+ modelValue: y.value,
1321
+ "onUpdate:modelValue": t[3] ||= (e) => y.value = e,
1322
+ disabled: p.value,
1323
+ id: "cancel-dialog-body"
1324
+ }, null, 8, ["modelValue", "disabled"])])
1325
+ ], 2),
1326
+ f(E, null, {
1327
+ default: T(() => [f(w, {
1328
+ variant: "outline",
1329
+ onClick: t[4] ||= (e) => l.value = !1
1330
+ }, {
1331
+ default: T(() => [...t[11] ||= [d("Close", -1)]]),
1332
+ _: 1
1333
+ }), f(w, {
1334
+ variant: "destructive",
1335
+ onClick: S
1336
+ }, {
1337
+ default: T(() => [...t[12] ||= [d("Cancel reservation", -1)]]),
1338
+ _: 1
1339
+ })]),
1340
+ _: 1
1341
+ })
1342
+ ]),
1343
+ _: 1
1344
+ })]),
1345
+ _: 1
1346
+ }, 8, ["open"]);
1347
+ };
1348
+ }
1349
+ }), _t = { class: "pb-4" }, vt = { class: "mt-6 grid gap-4 md:grid-cols-3" }, yt = { class: "space-y-2" }, bt = { class: "space-y-2" }, xt = { class: "space-y-2" }, St = { class: "mt-4 rounded-lg border bg-muted/30 p-4" }, Ct = { class: "mt-2 text-sm text-foreground" }, wt = /* @__PURE__ */ p({
1350
+ __name: "TransferReservationDialog",
1351
+ setup(e, { expose: t }) {
1352
+ let n = v(!1), r = v("2026-05-14"), i = v("09:30"), c = v("resource-2"), p = [
1353
+ "08:00",
1354
+ "09:00",
1355
+ "10:00",
1356
+ "11:00",
1357
+ "12:00",
1358
+ "13:00",
1359
+ "14:00",
1360
+ "15:00",
1361
+ "16:00",
1362
+ "17:00",
1363
+ "18:00",
1364
+ "19:00",
1365
+ "20:00",
1366
+ "21:00",
1367
+ "22:00"
1368
+ ], m = [
1369
+ {
1370
+ value: "resource-1",
1371
+ label: "BOX 1"
1372
+ },
1373
+ {
1374
+ value: "resource-2",
1375
+ label: "BOX 2"
1376
+ },
1377
+ {
1378
+ value: "resource-3",
1379
+ label: "BOX 3"
1380
+ }
1381
+ ], h = o(() => m.find((e) => e.value === c.value)?.label ?? "No resource selected");
1382
+ return t({ openDialog: () => {
1383
+ n.value = !0;
1384
+ } }), (e, t) => {
1385
+ let o = b("DialogTitle"), g = b("DialogDescription"), v = b("DialogHeader"), x = b("Label"), C = b("Input"), w = b("SelectValue"), E = b("SelectTrigger"), D = b("SelectItem"), O = b("SelectContent"), k = b("Select"), A = b("Button"), ee = b("DialogFooter"), te = b("DialogScrollContent"), ne = b("Dialog");
1386
+ return _(), s(ne, {
1387
+ open: n.value,
1388
+ "onUpdate:open": t[5] ||= (e) => n.value = e
1389
+ }, {
1390
+ default: T(() => [f(te, { class: "sm:max-w-3xl" }, {
1391
+ default: T(() => [
1392
+ f(v, null, {
1393
+ default: T(() => [f(o, null, {
1394
+ default: T(() => [...t[6] ||= [d(" Transfer Reservation ", -1)]]),
1395
+ _: 1
1396
+ }), f(g)]),
1397
+ _: 1
1398
+ }),
1399
+ u("div", _t, [
1400
+ t[11] ||= u("p", { class: "text-sm text-muted-foreground" }, " This will transfer the reservation to another date, time or resource. The customer will receive an email notification about the change. ", -1),
1401
+ u("div", vt, [
1402
+ u("div", yt, [f(x, { for: "transfer-reservation-date" }, {
1403
+ default: T(() => [...t[7] ||= [d("Date", -1)]]),
1404
+ _: 1
1405
+ }), f(C, {
1406
+ id: "transfer-reservation-date",
1407
+ modelValue: r.value,
1408
+ "onUpdate:modelValue": t[0] ||= (e) => r.value = e,
1409
+ type: "date"
1410
+ }, null, 8, ["modelValue"])]),
1411
+ u("div", bt, [f(x, { for: "transfer-reservation-hour" }, {
1412
+ default: T(() => [...t[8] ||= [d("Hour", -1)]]),
1413
+ _: 1
1414
+ }), f(k, {
1415
+ modelValue: i.value,
1416
+ "onUpdate:modelValue": t[1] ||= (e) => i.value = e
1417
+ }, {
1418
+ default: T(() => [f(E, { id: "transfer-reservation-hour" }, {
1419
+ default: T(() => [f(w, { placeholder: "Select an hour" })]),
1420
+ _: 1
1421
+ }), f(O, null, {
1422
+ default: T(() => [(_(), l(a, null, y(p, (e) => f(D, {
1423
+ key: e,
1424
+ value: e
1425
+ }, {
1426
+ default: T(() => [d(S(e), 1)]),
1427
+ _: 2
1428
+ }, 1032, ["value"])), 64))]),
1429
+ _: 1
1430
+ })]),
1431
+ _: 1
1432
+ }, 8, ["modelValue"])]),
1433
+ u("div", xt, [f(x, { for: "transfer-reservation-resource" }, {
1434
+ default: T(() => [...t[9] ||= [d("Resource", -1)]]),
1435
+ _: 1
1436
+ }), f(k, {
1437
+ modelValue: c.value,
1438
+ "onUpdate:modelValue": t[2] ||= (e) => c.value = e
1439
+ }, {
1440
+ default: T(() => [f(E, { id: "transfer-reservation-resource" }, {
1441
+ default: T(() => [f(w, { placeholder: "Select a resource" })]),
1442
+ _: 1
1443
+ }), f(O, null, {
1444
+ default: T(() => [(_(), l(a, null, y(m, (e) => f(D, {
1445
+ key: e.value,
1446
+ value: e.value
1447
+ }, {
1448
+ default: T(() => [d(S(e.label), 1)]),
1449
+ _: 2
1450
+ }, 1032, ["value"])), 64))]),
1451
+ _: 1
1452
+ })]),
1453
+ _: 1
1454
+ }, 8, ["modelValue"])])
1455
+ ]),
1456
+ u("div", St, [t[10] ||= u("p", { class: "text-xs font-medium uppercase tracking-[0.2em] text-muted-foreground" }, " Preview ", -1), u("p", Ct, " Reservation will be moved to " + S(r.value || "no date selected") + " at " + S(i.value || "no hour selected") + " with " + S(h.value) + ". ", 1)])
1457
+ ]),
1458
+ f(ee, null, {
1459
+ default: T(() => [f(A, {
1460
+ variant: "outline",
1461
+ onClick: t[3] ||= (e) => n.value = !1
1462
+ }, {
1463
+ default: T(() => [...t[12] ||= [d("Close", -1)]]),
1464
+ _: 1
1465
+ }), f(A, { onClick: t[4] ||= (e) => n.value = !1 }, {
1466
+ default: T(() => [...t[13] ||= [d("Transfer reservation", -1)]]),
1467
+ _: 1
1468
+ })]),
1469
+ _: 1
1470
+ })
1471
+ ]),
1472
+ _: 1
1473
+ })]),
1474
+ _: 1
1475
+ }, 8, ["open"]);
1476
+ };
1477
+ }
1478
+ }), Tt = { class: "flex items-center bg-muted/70 dark:bg-muted/20 px-4 rounded-md" }, Et = { class: "grid gap-2" }, Dt = { class: "grid gap-2" }, Ot = { class: "grid gap-2" }, kt = /* @__PURE__ */ p({
1479
+ __name: "ApproveReservationDialog",
1480
+ emits: ["confirm"],
1481
+ setup(e, { expose: t, emit: i }) {
1482
+ let { config: a } = r(), { sendMail: o } = n(a.mailAccount), c = i, l = v(!1), p = v("approve"), m = v(!1), g = v(""), y = v(""), x = v(""), w = (e, t) => {
1483
+ m.value = !a.mailAccount, l.value = !0, e && (t ||= "approve", p.value = t, g.value = e.customerInfo?.email, y.value = "Confirmation: Your reservation for " + new Date(e.date)?.toDateString(), x.value = `Dear ${e.customerInfo?.firstName ?? ""} ${e.customerInfo?.lastName ?? ""},
1484
+
1485
+ This email confirms your reservation for ${new Date(e.date)?.toDateString()} at ${e.startTime}.
1486
+
1487
+ We've got everything ready for you and look forward to your visit! If you need to make any changes or have special requests, please let us know.`);
1488
+ }, E = () => {
1489
+ if (!m.value) {
1490
+ if (!g.value || !y.value || !x.value) return alert("Please fill in all the fields.");
1491
+ o({
1492
+ to: g.value,
1493
+ subject: y.value,
1494
+ body: x.value
1495
+ });
1496
+ }
1497
+ l.value = !1;
1498
+ let { $confetti: e } = useNuxtApp();
1499
+ e(), c("confirm");
1500
+ };
1501
+ return t({ openDialog: w }), (e, t) => {
1502
+ let n = b("DialogTitle"), r = b("DialogDescription"), i = b("DialogHeader"), o = b("Checkbox"), c = b("Label"), v = b("Input"), w = b("Textarea"), D = b("Button"), O = b("DialogFooter"), k = b("DialogScrollContent"), A = b("Dialog");
1503
+ return _(), s(A, {
1504
+ open: l.value,
1505
+ "onUpdate:open": t[5] ||= (e) => l.value = e
1506
+ }, {
1507
+ default: T(() => [f(k, { class: "sm:max-w-3xl" }, {
1508
+ default: T(() => [
1509
+ f(i, null, {
1510
+ default: T(() => [f(n, null, {
1511
+ default: T(() => [d(S(p.value === "approve" ? "Approve Reservation" : "Resend Confirmation Email"), 1)]),
1512
+ _: 1
1513
+ }), f(r)]),
1514
+ _: 1
1515
+ }),
1516
+ u("div", Tt, [f(o, {
1517
+ modelValue: m.value,
1518
+ "onUpdate:modelValue": t[0] ||= (e) => m.value = e,
1519
+ id: "reject-dialog-skip-mail",
1520
+ class: "border-black/80 dark:border-gray-200",
1521
+ disabled: !C(a).mailAccount
1522
+ }, null, 8, ["modelValue", "disabled"]), f(c, {
1523
+ for: "reject-dialog-skip-mail",
1524
+ class: "py-4 pl-2 pr-4"
1525
+ }, {
1526
+ default: T(() => [...t[6] ||= [d("Do not send email to customer", -1)]]),
1527
+ _: 1
1528
+ })]),
1529
+ u("div", { class: h(["grid gap-4 py-4", { "opacity-50": m.value }]) }, [
1530
+ u("div", Et, [f(c, { for: "approve-dialog-email" }, {
1531
+ default: T(() => [...t[7] ||= [d("To:", -1)]]),
1532
+ _: 1
1533
+ }), f(v, {
1534
+ modelValue: g.value,
1535
+ "onUpdate:modelValue": t[1] ||= (e) => g.value = e,
1536
+ disabled: m.value,
1537
+ id: "approve-dialog-email"
1538
+ }, null, 8, ["modelValue", "disabled"])]),
1539
+ u("div", Dt, [f(c, { for: "approve-dialog-subject" }, {
1540
+ default: T(() => [...t[8] ||= [d("Subject:", -1)]]),
1541
+ _: 1
1542
+ }), f(v, {
1543
+ modelValue: y.value,
1544
+ "onUpdate:modelValue": t[2] ||= (e) => y.value = e,
1545
+ disabled: m.value,
1546
+ id: "approve-dialog-subject"
1547
+ }, null, 8, ["modelValue", "disabled"])]),
1548
+ u("div", Ot, [f(c, { for: "approve-dialog-body" }, {
1549
+ default: T(() => [...t[9] ||= [d("Body:", -1)]]),
1550
+ _: 1
1551
+ }), f(w, {
1552
+ modelValue: x.value,
1553
+ "onUpdate:modelValue": t[3] ||= (e) => x.value = e,
1554
+ disabled: m.value,
1555
+ id: "approve-dialog-body"
1556
+ }, null, 8, ["modelValue", "disabled"])])
1557
+ ], 2),
1558
+ f(O, null, {
1559
+ default: T(() => [f(D, {
1560
+ variant: "outline",
1561
+ onClick: t[4] ||= (e) => l.value = !1
1562
+ }, {
1563
+ default: T(() => [...t[10] ||= [d("Close", -1)]]),
1564
+ _: 1
1565
+ }), f(D, { onClick: E }, {
1566
+ default: T(() => [...t[11] ||= [d("Approve reservation", -1)]]),
1567
+ _: 1
1568
+ })]),
1569
+ _: 1
1570
+ })
1571
+ ]),
1572
+ _: 1
1573
+ })]),
1574
+ _: 1
1575
+ }, 8, ["open"]);
1576
+ };
1577
+ }
1578
+ }), At = { class: "flex items-center bg-muted/70 dark:bg-muted/20 px-4 rounded-md" }, jt = { class: "grid gap-2" }, Mt = { class: "grid gap-2" }, Nt = { class: "grid gap-2" }, Pt = /* @__PURE__ */ p({
1579
+ __name: "RejectReservationDialog",
1580
+ emits: ["confirm"],
1581
+ setup(e, { expose: t, emit: i }) {
1582
+ let { config: a } = r(), { sendMail: o } = n(a.mailAccount), c = i, l = v(!1), p = v(!1), m = v(""), g = v(""), y = v(""), x = (e) => {
1583
+ p.value = !a.mailAccount, l.value = !0, e && (m.value = e.customerInfo?.email, g.value = "Regarding your reservation request for " + new Date(e.date)?.toDateString(), y.value = `Dear ${e.customerInfo?.firstName ?? ""} ${e.customerInfo?.lastName ?? ""},
1584
+
1585
+ Thank you for your interest in booking with us. Unfortunately, we are unable to confirm your request for ${new Date(e.date)?.toDateString()} at ${e.startTime}.
1586
+
1587
+ We would love to see you another time!`);
1588
+ }, S = () => {
1589
+ if (!p.value) {
1590
+ if (!m.value || !g.value || !y.value) return alert("Please fill in all the fields.");
1591
+ o({
1592
+ to: m.value,
1593
+ subject: g.value,
1594
+ body: y.value
1595
+ });
1596
+ }
1597
+ l.value = !1;
1598
+ let { $confetti: e } = useNuxtApp();
1599
+ e(), c("confirm");
1600
+ };
1601
+ return t({ openDialog: x }), (e, t) => {
1602
+ let n = b("DialogTitle"), r = b("DialogDescription"), i = b("DialogHeader"), o = b("Checkbox"), c = b("Label"), v = b("Input"), x = b("Textarea"), w = b("Button"), E = b("DialogFooter"), D = b("DialogScrollContent"), O = b("Dialog");
1603
+ return _(), s(O, {
1604
+ open: l.value,
1605
+ "onUpdate:open": t[5] ||= (e) => l.value = e
1606
+ }, {
1607
+ default: T(() => [f(D, { class: "sm:max-w-3xl" }, {
1608
+ default: T(() => [
1609
+ f(i, null, {
1610
+ default: T(() => [f(n, null, {
1611
+ default: T(() => [...t[6] ||= [d(" Reject Reservation Request ", -1)]]),
1612
+ _: 1
1613
+ }), f(r)]),
1614
+ _: 1
1615
+ }),
1616
+ u("div", At, [f(o, {
1617
+ modelValue: p.value,
1618
+ "onUpdate:modelValue": t[0] ||= (e) => p.value = e,
1619
+ id: "reject-dialog-skip-mail",
1620
+ class: "border-black/80 dark:border-gray-200",
1621
+ disabled: !C(a).mailAccount
1622
+ }, null, 8, ["modelValue", "disabled"]), f(c, {
1623
+ for: "reject-dialog-skip-mail",
1624
+ class: "py-4 pl-2 pr-4"
1625
+ }, {
1626
+ default: T(() => [...t[7] ||= [d("Do not send email to customer", -1)]]),
1627
+ _: 1
1628
+ })]),
1629
+ u("div", { class: h(["grid gap-4 py-4", { "opacity-50": p.value }]) }, [
1630
+ u("div", jt, [f(c, { for: "reject-dialog-email" }, {
1631
+ default: T(() => [...t[8] ||= [d("To:", -1)]]),
1632
+ _: 1
1633
+ }), f(v, {
1634
+ modelValue: m.value,
1635
+ "onUpdate:modelValue": t[1] ||= (e) => m.value = e,
1636
+ disabled: p.value,
1637
+ id: "reject-dialog-email"
1638
+ }, null, 8, ["modelValue", "disabled"])]),
1639
+ u("div", Mt, [f(c, { for: "reject-dialog-subject" }, {
1640
+ default: T(() => [...t[9] ||= [d("Subject:", -1)]]),
1641
+ _: 1
1642
+ }), f(v, {
1643
+ modelValue: g.value,
1644
+ "onUpdate:modelValue": t[2] ||= (e) => g.value = e,
1645
+ disabled: p.value,
1646
+ id: "reject-dialog-subject"
1647
+ }, null, 8, ["modelValue", "disabled"])]),
1648
+ u("div", Nt, [f(c, { for: "reject-dialog-body" }, {
1649
+ default: T(() => [...t[10] ||= [d("Body:", -1)]]),
1650
+ _: 1
1651
+ }), f(x, {
1652
+ modelValue: y.value,
1653
+ "onUpdate:modelValue": t[3] ||= (e) => y.value = e,
1654
+ disabled: p.value,
1655
+ id: "reject-dialog-body"
1656
+ }, null, 8, ["modelValue", "disabled"])])
1657
+ ], 2),
1658
+ f(E, null, {
1659
+ default: T(() => [f(w, {
1660
+ variant: "outline",
1661
+ onClick: t[4] ||= (e) => l.value = !1
1662
+ }, {
1663
+ default: T(() => [...t[11] ||= [d("Close", -1)]]),
1664
+ _: 1
1665
+ }), f(w, {
1666
+ variant: "destructive",
1667
+ onClick: S
1668
+ }, {
1669
+ default: T(() => [...t[12] ||= [d("Reject reservation", -1)]]),
1670
+ _: 1
1671
+ })]),
1672
+ _: 1
1673
+ })
1674
+ ]),
1675
+ _: 1
1676
+ })]),
1677
+ _: 1
1678
+ }, 8, ["open"]);
1679
+ };
1680
+ }
1681
+ }), Ft = { key: 0 }, It = {
1682
+ key: 0,
1683
+ class: "flex items-center gap-1.5 flex-wrap"
1684
+ }, Lt = {
1685
+ key: 0,
1686
+ class: "space-y-2 mb-4"
1687
+ }, Rt = { class: "text-xs font-medium text-muted-foreground uppercase tracking-wide" }, zt = {
1688
+ key: 0,
1689
+ class: "text-2xl font-bold tracking-wider"
1690
+ }, Bt = {
1691
+ key: 1,
1692
+ class: "flex flex-wrap gap-2 mb-4"
1693
+ }, Vt = {
1694
+ key: 1,
1695
+ class: "text-xs text-muted-foreground mr-0.5"
1696
+ }, Ht = {
1697
+ key: 2,
1698
+ class: "space-y-3"
1699
+ }, Ut = { class: "bg-muted/30 rounded-lg p-4 space-y-2" }, Wt = { class: "text-muted-foreground flex items-center gap-1.5" }, Gt = { class: "font-medium" }, Kt = /* @__PURE__ */ p({
1700
+ __name: "OrderMetadataDisplay",
1701
+ props: {
1702
+ metadata: { default: () => ({}) },
1703
+ schema: { default: () => [] },
1704
+ displayFilter: { default: void 0 },
1705
+ scope: { default: void 0 },
1706
+ compact: {
1707
+ type: Boolean,
1708
+ default: !1
1709
+ }
1710
+ },
1711
+ setup(e, { expose: t }) {
1712
+ let n = e, r = o(() => {
1713
+ if (!n.metadata) return [];
1714
+ let e = new Set(n.schema?.map((e) => e.key) || []), t = (n.schema || []).filter((e) => !(n.scope && e.scope !== n.scope || n.displayFilter && !n.displayFilter.includes(e.display) || n.metadata[e.key] === void 0 || n.metadata[e.key] === null || e.display === "hidden" || n.metadata[e.key] === !1)).sort((e, t) => (e.order || 0) - (t.order || 0)).map((e) => ({
1715
+ ...e,
1716
+ value: n.metadata[e.key]
1717
+ }));
1718
+ if (n.displayFilter && !n.displayFilter.includes("field")) return t;
1719
+ let r = Object.entries(n.metadata).filter(([t, n]) => !e.has(t) && n != null && n !== !1).map(([e, t]) => ({
1720
+ id: `_fallback_${e}`,
1721
+ key: e,
1722
+ label: e.replace(/([A-Z])/g, " $1").replace(/[_-]/g, " ").replace(/^\w/, (e) => e.toUpperCase()).trim(),
1723
+ display: "field",
1724
+ scope: "order",
1725
+ value: typeof t == "object" ? JSON.stringify(t) : String(t)
1726
+ }));
1727
+ return [...t, ...r];
1728
+ }), i = o(() => r.value.filter((e) => e.display === "highlight")), f = o(() => r.value.filter((e) => e.display === "badge")), p = o(() => r.value.filter((e) => e.display === "field")), m = o(() => r.value.length > 0);
1729
+ return t({ hasContent: m }), (t, n) => m.value ? (_(), l("div", Ft, [e.compact ? (_(), l("div", It, [(_(!0), l(a, null, y(i.value, (e) => (_(), l("span", {
1730
+ key: e.id,
1731
+ class: h(["inline-flex items-center gap-1 px-2 py-0.5 text-xs font-bold rounded-md", e.color ? "" : "bg-primary/10 text-primary"]),
1732
+ style: g(e.color ? {
1733
+ backgroundColor: e.color + "20",
1734
+ color: e.color
1735
+ } : {})
1736
+ }, [(_(), s(x(C(j)[e.icon]), { size: 12 })), d(" " + S(e.value === !0 ? e.label : e.value), 1)], 6))), 128)), (_(!0), l(a, null, y(f.value, (e) => (_(), l("span", {
1737
+ key: e.id,
1738
+ class: h(["inline-flex items-center gap-1 px-2 py-0.5 text-xs font-medium rounded-full", e.color ? "" : "bg-muted text-muted-foreground"]),
1739
+ style: g(e.color ? {
1740
+ backgroundColor: e.color + "20",
1741
+ color: e.color
1742
+ } : {})
1743
+ }, [e.icon && C(j)[e.icon] ? (_(), s(x(C(j)[e.icon]), {
1744
+ key: 0,
1745
+ size: 10
1746
+ })) : c("", !0), d(" " + S(e.value === !0 ? e.label : e.value), 1)], 6))), 128))])) : (_(), l(a, { key: 1 }, [
1747
+ i.value.length ? (_(), l("div", Lt, [(_(!0), l(a, null, y(i.value, (e) => (_(), l("div", {
1748
+ key: e.id,
1749
+ class: h(["rounded-lg border-2 p-4 flex items-center gap-4", e.color ? "" : "border-primary/20 bg-primary/5"]),
1750
+ style: g(e.color ? {
1751
+ borderColor: e.color + "40",
1752
+ backgroundColor: e.color + "08"
1753
+ } : {})
1754
+ }, [u("div", {
1755
+ class: h(["h-12 w-12 rounded-xl flex items-center justify-center shrink-0", e.color ? "" : "bg-primary/10"]),
1756
+ style: g(e.color ? { backgroundColor: e.color + "20" } : {})
1757
+ }, [e.icon && C(j)[e.icon] ? (_(), s(x(C(j)[e.icon]), {
1758
+ key: 0,
1759
+ size: 24,
1760
+ style: g(e.color ? { color: e.color } : {}),
1761
+ class: h(e.color ? "" : "text-primary")
1762
+ }, null, 8, ["style", "class"])) : c("", !0)], 6), u("div", null, [u("p", Rt, S(e.label), 1), e.value === !0 ? c("", !0) : (_(), l("p", zt, S(e.value), 1))])], 6))), 128))])) : c("", !0),
1763
+ f.value.length ? (_(), l("div", Bt, [(_(!0), l(a, null, y(f.value, (e) => (_(), l("span", {
1764
+ key: e.id,
1765
+ class: h(["inline-flex items-center gap-1.5 px-3 py-1.5 text-sm font-medium rounded-full", e.color ? "" : "bg-muted text-muted-foreground"]),
1766
+ style: g(e.color ? {
1767
+ backgroundColor: e.color + "20",
1768
+ color: e.color
1769
+ } : {})
1770
+ }, [
1771
+ e.icon && C(j)[e.icon] ? (_(), s(x(C(j)[e.icon]), {
1772
+ key: 0,
1773
+ size: 14
1774
+ })) : c("", !0),
1775
+ e.label ? (_(), l("span", Vt, [d(S(e.label), 1), e.value === !0 ? c("", !0) : (_(), l(a, { key: 0 }, [d(":")], 64))])) : c("", !0),
1776
+ e.value === !0 ? c("", !0) : (_(), l(a, { key: 2 }, [d(S(e.value), 1)], 64))
1777
+ ], 6))), 128))])) : c("", !0),
1778
+ p.value.length ? (_(), l("div", Ht, [n[0] ||= u("h3", { class: "text-sm font-semibold text-muted-foreground uppercase tracking-wide" }, "Additional Info", -1), u("div", Ut, [(_(!0), l(a, null, y(p.value, (e) => (_(), l("div", {
1779
+ key: e.id,
1780
+ class: "flex justify-between text-sm"
1781
+ }, [u("span", Wt, [e.icon && C(j)[e.icon] ? (_(), s(x(C(j)[e.icon]), {
1782
+ key: 0,
1783
+ size: 14
1784
+ })) : c("", !0), d(" " + S(e.label), 1)]), u("span", Gt, S(e.value === !0 ? "✓" : e.value), 1)]))), 128))])])) : c("", !0)
1785
+ ], 64))])) : c("", !0);
1786
+ }
1787
+ }), qt = {
1788
+ key: 0,
1789
+ class: "space-y-6 py-4"
1790
+ }, Jt = { class: "space-y-3" }, Yt = { class: "bg-muted/30 rounded-lg p-4 space-y-3" }, Xt = { class: "flex items-center gap-3" }, Zt = { class: "h-10 w-10 rounded-full bg-primary/10 flex items-center justify-center" }, Qt = { class: "font-medium" }, $t = { class: "grid gap-2 text-sm" }, en = {
1791
+ key: 0,
1792
+ class: "flex items-center gap-2 text-muted-foreground"
1793
+ }, tn = ["href"], nn = {
1794
+ key: 1,
1795
+ class: "flex items-center gap-2 text-muted-foreground"
1796
+ }, rn = ["href"], an = { class: "space-y-3" }, on = { class: "grid grid-cols-2 gap-3" }, sn = { class: "bg-muted/30 rounded-lg p-3" }, cn = { class: "flex items-center gap-2 text-muted-foreground mb-1" }, ln = { class: "text-xs" }, un = { class: "font-medium" }, dn = { class: "bg-muted/30 rounded-lg p-3" }, fn = { class: "flex items-center gap-2 text-muted-foreground mb-1" }, pn = { class: "font-medium" }, mn = {
1797
+ key: 0,
1798
+ class: "space-y-3"
1799
+ }, hn = { class: "bg-muted/30 rounded-lg p-4" }, gn = { class: "flex items-start justify-between" }, _n = { class: "flex items-start gap-3" }, vn = { class: "h-9 w-9 rounded-lg bg-primary/10 flex items-center justify-center mt-0.5" }, yn = { class: "font-medium" }, bn = { class: "text-sm text-muted-foreground" }, xn = { class: "font-semibold" }, Sn = { class: "space-y-3" }, Cn = { class: "bg-muted/30 rounded-lg p-4 space-y-3" }, wn = { class: "space-y-2 text-sm" }, Tn = { class: "flex justify-between" }, En = {
1800
+ key: 0,
1801
+ class: "flex justify-between"
1802
+ }, Dn = {
1803
+ key: 1,
1804
+ class: "grid"
1805
+ }, On = { class: "text-muted-foreground" }, kn = { key: 0 }, An = { key: 1 }, jn = { class: "flex justify-between font-semibold" }, Mn = { class: "flex justify-between font-semibold" }, Nn = { class: "flex items-center gap-2" }, Pn = {
1806
+ key: 1,
1807
+ class: "space-y-2 text-sm"
1808
+ }, Fn = {
1809
+ key: 0,
1810
+ class: "flex justify-between"
1811
+ }, In = { class: "text-muted-foreground flex items-center gap-1.5" }, Ln = { class: "text-green-600 dark:text-green-400" }, Rn = {
1812
+ key: 1,
1813
+ class: "flex justify-between"
1814
+ }, zn = { class: "text-muted-foreground flex items-center gap-1.5" }, Bn = { class: "text-orange-600 dark:text-orange-400 font-medium" }, Vn = /* @__PURE__ */ p({
1815
+ __name: "ReservationDetailDialog",
1816
+ props: {
1817
+ agendaData: {},
1818
+ showOrderLink: {
1819
+ type: Boolean,
1820
+ default: !1
1821
+ }
1822
+ },
1823
+ emits: [
1824
+ "cancelled",
1825
+ "confirmed",
1826
+ "rejected",
1827
+ "openOrder"
1828
+ ],
1829
+ setup(n, { expose: p, emit: g }) {
1830
+ let x = n, { hasPermission: j } = i(), { config: M } = r(), N = t(M.project), P = m("event", v(null)), de = o(() => x.agendaData?.metadataSchema || []), F = g, I = v(!1), L = v(null), R = v(!1), z = o(() => L.value?.id || L.value?.orderId || ""), B = w("cancelReservationDialog"), V = w("approveReservationDialog"), H = w("rejectReservationDialog"), fe = w("transferReservationDialog"), pe = (e) => {
1831
+ let t = e?.id || e?.orderId;
1832
+ !e || !t || (L.value = {
1833
+ ...e,
1834
+ id: t
1835
+ }, I.value = !0);
1836
+ }, me = o(() => L.value?.customerInfo && `${L.value.customerInfo.firstName} ${L.value.customerInfo.lastName}`.trim() || "Unknown Customer"), he = o(() => {
1837
+ let e = L.value?.status, t = L.value?.reservationStatus;
1838
+ switch (e === "confirmed" && [
1839
+ "needs_approval",
1840
+ "rejected",
1841
+ "approved",
1842
+ "cancelled"
1843
+ ].includes(t) && (e = t), e) {
1844
+ case "pending": return {
1845
+ label: "Pending",
1846
+ class: "bg-yellow-100 text-yellow-800 dark:bg-yellow-900/30 dark:text-yellow-400"
1847
+ };
1848
+ case "cancelled": return {
1849
+ label: "Cancelled",
1850
+ class: "bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-400"
1851
+ };
1852
+ case "needs_approval": return {
1853
+ label: "Needs Approval",
1854
+ class: "bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-400"
1855
+ };
1856
+ case "rejected": return {
1857
+ label: "Rejected",
1858
+ class: "bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-400"
1859
+ };
1860
+ case "approved": return {
1861
+ label: "Approved",
1862
+ class: "bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-400"
1863
+ };
1864
+ case "confirmed": return {
1865
+ label: "Confirmed",
1866
+ class: "bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-400"
1867
+ };
1868
+ default: return {
1869
+ label: e || "Unknown",
1870
+ class: "bg-muted text-muted-foreground"
1871
+ };
1872
+ }
1873
+ }), U = o(() => L.value?.status === "cancelled"), W = (e) => e == null || typeof e != "number" ? "—" : `€${e?.toFixed(2)}`, ge = (e) => {
1874
+ if (!e) return "—";
1875
+ if (e < 60) return `${e} min`;
1876
+ let t = Math.floor(e / 60), n = e % 60;
1877
+ return n > 0 ? `${t}h ${n}min` : `${t}h`;
1878
+ }, _e = () => {
1879
+ if (!L.value) return;
1880
+ let e = "", t = P?.value?.date;
1881
+ if (t) try {
1882
+ e = new Date(t).toLocaleDateString("en-US", {
1883
+ weekday: "long",
1884
+ year: "numeric",
1885
+ month: "long",
1886
+ day: "numeric"
1887
+ });
1888
+ } catch {
1889
+ e = t;
1890
+ }
1891
+ let n = {
1892
+ date: e,
1893
+ resourceName: P?.value?.resource?.name
1894
+ };
1895
+ dt(L.value, n);
1896
+ }, ve = () => {
1897
+ V.value?.openDialog(L.value);
1898
+ }, G = () => {
1899
+ H.value?.openDialog(L.value);
1900
+ }, ye = () => {
1901
+ V.value?.openDialog(L.value);
1902
+ }, be = () => {
1903
+ B.value?.openDialog(L.value);
1904
+ }, xe = async () => {
1905
+ try {
1906
+ if (R.value || !L.value?.id) throw Error("Invalid state");
1907
+ R.value = !0;
1908
+ let t = (await N.get(M.reservationsCollection, L.value.id))?.reservations || [];
1909
+ if (!t.find((e) => e.id === L.value.res_id)) throw Error("Reservation not found");
1910
+ t.find((e) => e.id === L.value.res_id).status = "cancelled", await N.update(M.reservationsCollection, L.value.id, { reservations: t }), L.value.status = "cancelled", e.success("Reservation cancelled successfully"), F("cancelled"), I.value = !1;
1911
+ } catch (t) {
1912
+ console.error("Error cancelling reservation:", t), e.error("Failed to cancel reservation");
1913
+ } finally {
1914
+ R.value = !1;
1915
+ }
1916
+ }, Se = async () => {
1917
+ try {
1918
+ if (R.value || !L.value?.id) throw Error("Invalid state");
1919
+ R.value = !0;
1920
+ let t = (await N.get(M.reservationsCollection, L.value.id))?.reservations || [];
1921
+ if (!t.find((e) => e.id === L.value.res_id)) throw Error("Reservation not found");
1922
+ t.find((e) => e.id === L.value.res_id).status = "approved", await N.update(M.reservationsCollection, L.value.id, { reservations: t }), L.value.status = "approved", e.success("Reservation approved successfully"), F("confirmed"), I.value = !1;
1923
+ } catch (t) {
1924
+ console.error("Error approving reservation:", t), e.error("Failed to approve reservation");
1925
+ } finally {
1926
+ R.value = !1;
1927
+ }
1928
+ }, Ce = async () => {
1929
+ try {
1930
+ if (R.value || !L.value?.id) throw Error("Invalid state");
1931
+ R.value = !0;
1932
+ let t = (await N.get(M.reservationsCollection, L.value.id))?.reservations || [];
1933
+ if (!t.find((e) => e.id === L.value.res_id)) throw Error("Reservation not found");
1934
+ t.find((e) => e.id === L.value.res_id).status = "rejected", await N.update(M.reservationsCollection, L.value.id, { reservations: t }), L.value.status = "rejected", e.success("Reservation rejected successfully"), F("rejected"), I.value = !1;
1935
+ } catch (t) {
1936
+ console.error("Error rejecting reservation:", t), e.error("Failed to reject reservation");
1937
+ } finally {
1938
+ R.value = !1;
1939
+ }
1940
+ }, K = () => {}, we = () => {
1941
+ fe.value?.openDialog(L.value);
1942
+ }, Te = () => {
1943
+ z.value && (I.value = !1, F("openOrder", z.value));
1944
+ };
1945
+ return p({ openDialog: pe }), (e, t) => {
1946
+ let r = b("ResponsiveModalTitle"), i = b("ResponsiveModalDescription"), o = b("ResponsiveModalHeader"), p = b("Separator"), m = b("Button"), g = b("DropdownMenuTrigger"), v = b("DropdownMenuLabel"), x = b("DropdownMenuItem"), w = b("DropdownMenuGroup"), M = b("DropdownMenuSeparator"), N = b("DropdownMenuContent"), P = b("DropdownMenu"), F = b("ResponsiveModalFooter"), R = b("ResponsiveModalScrollContent"), pe = b("ResponsiveModal");
1947
+ return _(), l(a, null, [
1948
+ f(pe, {
1949
+ open: I.value,
1950
+ "onUpdate:open": t[0] ||= (e) => I.value = e
1951
+ }, {
1952
+ default: T(() => [f(R, { class: "sm:max-w-xl" }, {
1953
+ default: T(() => [
1954
+ f(o, null, {
1955
+ default: T(() => [f(r, { class: "flex items-center gap-3" }, {
1956
+ default: T(() => [t[1] ||= u("span", null, "Reservation Details", -1), u("span", { class: h(["px-2.5 py-1 text-xs font-medium rounded-full", he.value.class]) }, S(he.value.label), 3)]),
1957
+ _: 1
1958
+ }), f(i, null, {
1959
+ default: T(() => [d(" Booking #" + S(z.value.slice(0, 8) || "—"), 1)]),
1960
+ _: 1
1961
+ })]),
1962
+ _: 1
1963
+ }),
1964
+ L.value ? (_(), l("div", qt, [
1965
+ f(Kt, {
1966
+ metadata: L.value.metadata,
1967
+ schema: de.value,
1968
+ scope: "order"
1969
+ }, null, 8, ["metadata", "schema"]),
1970
+ f(Kt, {
1971
+ metadata: L.value.reservationMetadata,
1972
+ schema: de.value,
1973
+ scope: "reservation"
1974
+ }, null, 8, ["metadata", "schema"]),
1975
+ u("div", Jt, [t[2] ||= u("h3", { class: "text-sm font-semibold text-muted-foreground uppercase tracking-wide" }, "Customer", -1), u("div", Yt, [u("div", Xt, [u("div", Zt, [f(C(ce), {
1976
+ size: 20,
1977
+ class: "text-primary"
1978
+ })]), u("div", null, [u("p", Qt, S(me.value), 1)])]), u("div", $t, [L.value.customerInfo?.email ? (_(), l("div", en, [f(C(ne), { size: 14 }), u("a", {
1979
+ href: `mailto:${L.value.customerInfo.email}`,
1980
+ class: "hover:text-foreground transition-colors"
1981
+ }, S(L.value.customerInfo.email), 9, tn)])) : c("", !0), L.value.customerInfo?.phone ? (_(), l("div", nn, [f(C(ae), { size: 14 }), u("a", {
1982
+ href: `tel:${L.value.customerInfo.phone}`,
1983
+ class: "hover:text-foreground transition-colors"
1984
+ }, S(L.value.customerInfo.phone), 9, rn)])) : c("", !0)])])]),
1985
+ u("div", an, [t[4] ||= u("h3", { class: "text-sm font-semibold text-muted-foreground uppercase tracking-wide" }, "Reservation", -1), u("div", on, [u("div", sn, [u("div", cn, [f(C(O), { size: 14 }), u("span", ln, S(L.value.startTime) + " - " + S(L.value.endTime), 1)]), u("p", un, S(new Date(L.value.date).toLocaleDateString("en-US", {
1986
+ weekday: "long",
1987
+ month: "long",
1988
+ day: "numeric",
1989
+ year: "numeric"
1990
+ })), 1)]), u("div", dn, [u("div", fn, [f(C(le), { size: 14 }), t[3] ||= u("span", { class: "text-xs" }, "Spots", -1)]), u("p", pn, S(L.value.spots || 1) + " " + S(L.value.spots === 1 ? "person" : "people"), 1)])])]),
1991
+ L.value.pricingOption ? (_(), l("div", mn, [t[5] ||= u("h3", { class: "text-sm font-semibold text-muted-foreground uppercase tracking-wide" }, "Package", -1), u("div", hn, [u("div", gn, [u("div", _n, [u("div", vn, [f(C(se), {
1992
+ size: 18,
1993
+ class: "text-primary"
1994
+ })]), u("div", null, [u("p", yn, S(L.value.pricingOption.name), 1), u("p", bn, S(ge(L.value.pricingOption.duration)), 1)])]), u("p", xn, S(W(L.value.pricingOption.price)), 1)])])])) : c("", !0),
1995
+ u("div", Sn, [t[12] ||= u("h3", { class: "text-sm font-semibold text-muted-foreground uppercase tracking-wide" }, "Payment", -1), u("div", Cn, [
1996
+ u("div", wn, [
1997
+ u("div", Tn, [t[6] ||= u("span", { class: "text-muted-foreground" }, "Base price", -1), u("span", null, S(W(L.value.reservationBasePrice)), 1)]),
1998
+ L.value.reservationAddOnsPrice ? (_(), l("div", En, [t[7] ||= u("span", { class: "text-muted-foreground" }, "Add-ons", -1), u("span", null, S(W(L.value.reservationAddOnsPrice)), 1)])) : c("", !0),
1999
+ L.value.reservationAdjustments && L.value.reservationAdjustments.length ? (_(), l("div", Dn, [(_(!0), l(a, null, y(L.value.reservationAdjustments, (e) => (_(), l("div", {
2000
+ key: e,
2001
+ class: "flex justify-between"
2002
+ }, [u("span", On, S(e.label), 1), e.type == "percent" ? (_(), l("span", kn, S(e.value) + "% ", 1)) : (_(), l("span", An, S(e.value < 0 ? "-" : "+") + S(W(Math.abs(e.value))), 1))]))), 128))])) : c("", !0)
2003
+ ]),
2004
+ f(p),
2005
+ u("div", jn, [t[8] ||= u("span", null, "Reservation Total", -1), u("span", null, S(W(L.value.reservationPrice)), 1)]),
2006
+ f(p),
2007
+ u("div", Mn, [u("div", Nn, [t[9] ||= u("span", null, "Order Total", -1), n.showOrderLink ? (_(), l("button", {
2008
+ key: 0,
2009
+ type: "button",
2010
+ class: "text-[10px] uppercase bg-muted hover:bg-muted/50 px-2 py-1 rounded cursor-pointer",
2011
+ onClick: Te
2012
+ }, " view order ")) : c("", !0)]), u("span", null, S(W(L.value.total)), 1)]),
2013
+ L.value.amountPaid !== void 0 || L.value.amountDue !== void 0 ? (_(), s(p, { key: 0 })) : c("", !0),
2014
+ L.value.amountPaid !== void 0 || L.value.amountDue !== void 0 ? (_(), l("div", Pn, [L.value.amountPaid === void 0 ? c("", !0) : (_(), l("div", Fn, [u("span", In, [f(C(A), { size: 14 }), t[10] ||= d(" Amount paid ", -1)]), u("span", Ln, S(W(L.value.amountPaid)), 1)])), L.value.amountDue !== void 0 && L.value.amountDue > 0 ? (_(), l("div", Rn, [u("span", zn, [f(C(oe), { size: 14 }), t[11] ||= d(" Amount due ", -1)]), u("span", Bn, S(W(L.value.amountDue)), 1)])) : c("", !0)])) : c("", !0)
2015
+ ])])
2016
+ ])) : c("", !0),
2017
+ f(F, { class: "gap-2 sm:justify-between" }, {
2018
+ default: T(() => [L.value?.status === "confirmed" && L.value?.reservationStatus === "needs_approval" ? (_(), l(a, { key: 0 }, [f(m, {
2019
+ variant: "destructive",
2020
+ onClick: G
2021
+ }, {
2022
+ default: T(() => [f(C(E), { size: 16 }), t[13] ||= d(" Reject Reservation ", -1)]),
2023
+ _: 1
2024
+ }), f(m, { onClick: ve }, {
2025
+ default: T(() => [f(C(k), { size: 16 }), t[14] ||= d(" Approve Reservation ", -1)]),
2026
+ _: 1
2027
+ })], 64)) : L.value?.status === "confirmed" && L.value?.reservationStatus === "approved" ? (_(), s(P, { key: 1 }, {
2028
+ default: T(() => [f(g, { "as-child": "" }, {
2029
+ default: T(() => [f(m, {
2030
+ variant: "outline",
2031
+ class: "gap-2"
2032
+ }, {
2033
+ default: T(() => [f(C(ie), { size: 16 }), t[15] ||= d(" Actions ", -1)]),
2034
+ _: 1
2035
+ })]),
2036
+ _: 1
2037
+ }), f(N, {
2038
+ class: "w-60",
2039
+ align: "start"
2040
+ }, {
2041
+ default: T(() => [
2042
+ f(v, { class: "text-xs text-muted-foreground font-normal" }, {
2043
+ default: T(() => [...t[16] ||= [d(" Reservation Actions ", -1)]]),
2044
+ _: 1
2045
+ }),
2046
+ f(w, null, {
2047
+ default: T(() => [f(x, {
2048
+ onClick: _e,
2049
+ class: "gap-2 cursor-pointer"
2050
+ }, {
2051
+ default: T(() => [f(C(ee), {
2052
+ size: 16,
2053
+ class: "text-muted-foreground"
2054
+ }), t[17] ||= u("span", null, "Download PDF", -1)]),
2055
+ _: 1
2056
+ })]),
2057
+ _: 1
2058
+ }),
2059
+ f(M),
2060
+ f(w, null, {
2061
+ default: T(() => [f(v, { class: "text-xs text-muted-foreground font-normal" }, {
2062
+ default: T(() => [...t[18] ||= [d(" Communication ", -1)]]),
2063
+ _: 1
2064
+ }), f(x, {
2065
+ onClick: ye,
2066
+ class: "gap-2 cursor-pointer"
2067
+ }, {
2068
+ default: T(() => [f(C(re), {
2069
+ size: 16,
2070
+ class: "text-muted-foreground"
2071
+ }), t[19] ||= u("span", null, "(Re)send Confirmation Mail", -1)]),
2072
+ _: 1
2073
+ })]),
2074
+ _: 1
2075
+ }),
2076
+ C(j)("manage-reservations") ? (_(), l(a, { key: 0 }, [
2077
+ f(M),
2078
+ f(w, null, {
2079
+ default: T(() => [f(v, { class: "text-xs text-muted-foreground font-normal" }, {
2080
+ default: T(() => [...t[20] ||= [d(" Modify Reservation ", -1)]]),
2081
+ _: 1
2082
+ }), f(x, {
2083
+ onClick: we,
2084
+ class: "gap-2 cursor-pointer",
2085
+ disabled: U.value
2086
+ }, {
2087
+ default: T(() => [f(C(D), {
2088
+ size: 16,
2089
+ class: "text-muted-foreground"
2090
+ }), t[21] ||= u("span", null, "Transfer Date & Time", -1)]),
2091
+ _: 1
2092
+ }, 8, ["disabled"])]),
2093
+ _: 1
2094
+ }),
2095
+ f(M),
2096
+ f(w, null, {
2097
+ default: T(() => [
2098
+ f(v, { class: "text-xs text-muted-foreground font-normal" }, {
2099
+ default: T(() => [...t[22] ||= [d(" Cancellation ", -1)]]),
2100
+ _: 1
2101
+ }),
2102
+ f(x, {
2103
+ onClick: be,
2104
+ class: "gap-2 cursor-pointer",
2105
+ variant: "destructive",
2106
+ disabled: U.value
2107
+ }, {
2108
+ default: T(() => [f(C(ue), { size: 16 }), t[23] ||= u("span", null, "Cancel Reservation", -1)]),
2109
+ _: 1
2110
+ }, 8, ["disabled"]),
2111
+ L.value?.total && L.value.total > 0 ? (_(), s(x, {
2112
+ key: 0,
2113
+ onClick: K,
2114
+ class: "gap-2 cursor-pointer text-orange-600 dark:text-orange-400 focus:text-orange-600 dark:focus:text-orange-400",
2115
+ disabled: U.value
2116
+ }, {
2117
+ default: T(() => [f(C(te), {
2118
+ class: "text-inherit",
2119
+ size: 16
2120
+ }), t[24] ||= u("span", null, "Cancel & Refund", -1)]),
2121
+ _: 1
2122
+ }, 8, ["disabled"])) : c("", !0)
2123
+ ]),
2124
+ _: 1
2125
+ })
2126
+ ], 64)) : c("", !0)
2127
+ ]),
2128
+ _: 1
2129
+ })]),
2130
+ _: 1
2131
+ })) : c("", !0)]),
2132
+ _: 1
2133
+ })
2134
+ ]),
2135
+ _: 1
2136
+ })]),
2137
+ _: 1
2138
+ }, 8, ["open"]),
2139
+ f(gt, {
2140
+ ref_key: "cancelReservationDialog",
2141
+ ref: B,
2142
+ onConfirm: xe
2143
+ }, null, 512),
2144
+ f(kt, {
2145
+ ref_key: "approveReservationDialog",
2146
+ ref: V,
2147
+ onConfirm: Se
2148
+ }, null, 512),
2149
+ f(Pt, {
2150
+ ref_key: "rejectReservationDialog",
2151
+ ref: H,
2152
+ onConfirm: Ce
2153
+ }, null, 512),
2154
+ f(wt, {
2155
+ ref_key: "transferReservationDialog",
2156
+ ref: fe
2157
+ }, null, 512)
2158
+ ], 64);
2159
+ };
2160
+ }
2161
+ });
2162
+ //#endregion
2163
+ export { Kt as n, Q as r, Vn as t };