@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
@@ -1,1251 +0,0 @@
1
- import { defineComponent as z, inject as L, resolveComponent as o, openBlock as p, createElementBlock as $, Fragment as E, createVNode as e, withCtx as t, createTextVNode as a, unref as n, createElementVNode as s, ref as A, createBlock as U, toDisplayString as T, createCommentVNode as F, useTemplateRef as ue, renderList as le, computed as ie, normalizeClass as Q, withAsyncContext as de, provide as X } from "vue";
2
- import { Import as re, DollarSign as oe, Percent as ne, Truck as se, Info as me, Loader2 as K, UserCog as pe, Plus as Z, Pencil as fe, Trash2 as ve, CalendarIcon as h, List as ce } from "lucide-vue-next";
3
- import { useModulePermissions as j, useModuleStorage as W, useConfirmation as _e, useModuleRoute as ge, useProjectSettings as xe, useLogs as ye, useModuleBreadcrumbs as be, useFirebaseIntegration as we } from "@oneclick.dev/cms-kit";
4
- import { c as ee } from "./utils-CanmrIWO.mjs";
5
- import { $ as Ve, b as te, c as Ue } from "./DateFormatter-Bw-87W31.mjs";
6
- import { t as I } from "./index-RLz1QPrf.mjs";
7
- const Ce = /* @__PURE__ */ z({
8
- __name: "SingleCode",
9
- setup(N) {
10
- const d = L("newCoupon");
11
- return (S, r) => {
12
- const f = o("Label"), c = o("Input");
13
- return p(), $(E, null, [
14
- e(f, {
15
- class: "text-muted-foreground mb-2",
16
- for: "code"
17
- }, {
18
- default: t(() => [...r[1] || (r[1] = [
19
- a("Enter the coupon code", -1)
20
- ])]),
21
- _: 1
22
- }),
23
- e(c, {
24
- modelValue: n(d).code,
25
- "onUpdate:modelValue": r[0] || (r[0] = (u) => n(d).code = u),
26
- id: "code"
27
- }, null, 8, ["modelValue"])
28
- ], 64);
29
- };
30
- }
31
- }), De = { class: "flex items-center space-x-2" }, ke = { class: "flex items-center space-x-2" }, $e = {
32
- key: 0,
33
- class: "flex items-end w-full gap-4"
34
- }, Se = { class: "relative w-full" }, Te = { key: 1 }, Pe = /* @__PURE__ */ z({
35
- __name: "MultiCodes",
36
- setup(N) {
37
- const d = L("newCoupon");
38
- return (S, r) => {
39
- const f = o("RadioGroupItem"), c = o("Label"), u = o("RadioGroup"), x = o("NumberFieldDecrement"), k = o("NumberFieldInput"), _ = o("NumberFieldIncrement"), i = o("NumberFieldContent"), y = o("NumberField"), w = o("Input"), m = o("Textarea");
40
- return p(), $(E, null, [
41
- r[8] || (r[8] = s("p", { class: "text-sm text-muted-foreground mb-2" }, "How do you want to create the codes?", -1)),
42
- e(u, {
43
- modelValue: n(d).generationMode,
44
- "onUpdate:modelValue": r[0] || (r[0] = (C) => n(d).generationMode = C),
45
- orientation: "vertical",
46
- class: "mb-6"
47
- }, {
48
- default: t(() => [
49
- s("div", De, [
50
- e(f, {
51
- id: "generation_mode_generate",
52
- value: "generate"
53
- }),
54
- e(c, { for: "generation_mode_generate" }, {
55
- default: t(() => [...r[3] || (r[3] = [
56
- a("Generate random codes", -1)
57
- ])]),
58
- _: 1
59
- })
60
- ]),
61
- s("div", ke, [
62
- e(f, {
63
- id: "generation_mode_input",
64
- value: "input"
65
- }),
66
- e(c, { for: "generation_mode_input" }, {
67
- default: t(() => [...r[4] || (r[4] = [
68
- a("Provide specific codes", -1)
69
- ])]),
70
- _: 1
71
- })
72
- ])
73
- ]),
74
- _: 1
75
- }, 8, ["modelValue"]),
76
- n(d).generationMode == "generate" ? (p(), $("div", $e, [
77
- e(y, {
78
- id: "age",
79
- "default-value": 1,
80
- min: 1,
81
- class: "w-full"
82
- }, {
83
- default: t(() => [
84
- e(c, {
85
- for: "age",
86
- class: "text-muted-foreground mb-2"
87
- }, {
88
- default: t(() => [...r[5] || (r[5] = [
89
- a("Number of codes to generate", -1)
90
- ])]),
91
- _: 1
92
- }),
93
- e(i, null, {
94
- default: t(() => [
95
- e(x),
96
- e(k),
97
- e(_)
98
- ]),
99
- _: 1
100
- })
101
- ]),
102
- _: 1
103
- }),
104
- s("div", Se, [
105
- e(w, {
106
- modelValue: n(d).prefix,
107
- "onUpdate:modelValue": r[1] || (r[1] = (C) => n(d).prefix = C),
108
- placeholder: "Prefix",
109
- class: "pr-42"
110
- }, null, 8, ["modelValue"]),
111
- r[6] || (r[6] = s("span", { class: "absolute right-2 top-1/2 transform -translate-y-1/2 text-muted-foreground/80 pointer-events-none" }, "- GENERATED CODE", -1))
112
- ])
113
- ])) : (p(), $("div", Te, [
114
- e(c, {
115
- class: "text-muted-foreground mb-2",
116
- for: "codes"
117
- }, {
118
- default: t(() => [...r[7] || (r[7] = [
119
- a("Enter the codes you want to create (one per line)", -1)
120
- ])]),
121
- _: 1
122
- }),
123
- e(m, {
124
- modelValue: n(d).codes,
125
- "onUpdate:modelValue": r[2] || (r[2] = (C) => n(d).codes = C),
126
- id: "codes",
127
- class: "max-h-48"
128
- }, null, 8, ["modelValue"])
129
- ]))
130
- ], 64);
131
- };
132
- }
133
- }), Fe = { class: "grid gap-6 py-4" }, Ae = { class: "flex items-center" }, Me = { class: "flex items-center gap-2" }, Ne = { class: "flex items-center gap-2" }, Ie = { class: "flex items-center gap-2" }, Le = { class: "flex items-center gap-2" }, ze = { class: "flex items-center space-x-2 mb-2" }, Oe = {
134
- key: 0,
135
- class: "text-xs text-blue-600 bg-blue-500/10 p-2 rounded border border-blue-500 mt-1 flex items-start gap-1"
136
- }, Be = { class: "flex items-center space-x-2 mb-2" }, Ge = /* @__PURE__ */ z({
137
- __name: "TypeDetailDialog",
138
- setup(N, { expose: d }) {
139
- const { isAdmin: S } = j(), { getModuleData: r, setModuleData: f } = W(), c = L("promoTypes", A([])), u = A({
140
- id: "",
141
- label: "",
142
- key: "",
143
- allowUnlimitedUses: !1,
144
- hasValueField: !1,
145
- valueLabel: "",
146
- valuePrefix: "",
147
- valueSuffix: ""
148
- }), x = A(!1), k = A("add"), _ = A(!1), i = (b) => {
149
- x.value = !0, _.value = !1, b ? (k.value = "edit", u.value = JSON.parse(JSON.stringify(b))) : (k.value = "add", u.value = {
150
- id: crypto.randomUUID(),
151
- label: "",
152
- key: "",
153
- allowUnlimitedUses: !1,
154
- hasValueField: !1,
155
- valueLabel: "",
156
- valuePrefix: "",
157
- valueSuffix: ""
158
- });
159
- }, y = (b) => {
160
- x.value = !0, _.value = !1, k.value = "add", C(b);
161
- }, w = async () => {
162
- _.value = !0;
163
- let b = await r("promo-types") || [];
164
- b.push(JSON.parse(JSON.stringify(u.value))), f("promo-types", b), c.value = JSON.parse(JSON.stringify(b)), x.value = !1;
165
- }, m = async () => {
166
- _.value = !0;
167
- let b = await r("promo-types") || [];
168
- b = b.map((l) => l.id === u.value.id ? u.value : l), f("promo-types", b), c.value = JSON.parse(JSON.stringify(b)), x.value = !1;
169
- }, C = (b) => {
170
- switch (b) {
171
- case "fixed":
172
- u.value = {
173
- id: crypto.randomUUID(),
174
- label: "Fixed Amount",
175
- key: "fixed",
176
- allowUnlimitedUses: !1,
177
- hasValueField: !0,
178
- valueLabel: "Amount",
179
- valuePrefix: "$",
180
- valueSuffix: ""
181
- };
182
- break;
183
- case "percentage":
184
- u.value = {
185
- id: crypto.randomUUID(),
186
- label: "Percentage",
187
- key: "percentage",
188
- allowUnlimitedUses: !1,
189
- hasValueField: !0,
190
- valueLabel: "Percentage",
191
- valuePrefix: "",
192
- valueSuffix: "%"
193
- };
194
- break;
195
- case "free_shipping":
196
- u.value = {
197
- id: crypto.randomUUID(),
198
- label: "Free Shipping",
199
- key: "free_shipping",
200
- allowUnlimitedUses: !1,
201
- hasValueField: !1,
202
- valueLabel: "",
203
- valuePrefix: "",
204
- valueSuffix: ""
205
- };
206
- break;
207
- }
208
- };
209
- return d({
210
- open: i,
211
- openFromTemplate: y
212
- }), (b, l) => {
213
- const V = o("DialogTitle"), g = o("DialogHeader"), M = o("Button"), B = o("DropdownMenuTrigger"), P = o("DropdownMenuItem"), G = o("DropdownMenuContent"), R = o("DropdownMenu"), D = o("Label"), O = o("Input"), J = o("Switch"), H = o("DialogFooter"), Y = o("DialogScrollContent"), q = o("Dialog");
214
- return p(), U(q, {
215
- open: x.value,
216
- "onUpdate:open": l[11] || (l[11] = (v) => x.value = v)
217
- }, {
218
- default: t(() => [
219
- n(S)() ? (p(), U(Y, {
220
- key: 0,
221
- class: "sm:max-w-[475px]"
222
- }, {
223
- default: t(() => [
224
- e(g, null, {
225
- default: t(() => [
226
- e(V, null, {
227
- default: t(() => [
228
- a(T(k.value === "add" ? "Add Promo Type" : "Edit Promo Type"), 1)
229
- ]),
230
- _: 1
231
- })
232
- ]),
233
- _: 1
234
- }),
235
- s("div", Fe, [
236
- s("div", Ae, [
237
- k.value === "add" ? (p(), U(R, { key: 0 }, {
238
- default: t(() => [
239
- e(B, null, {
240
- default: t(() => [
241
- e(M, { variant: "outline" }, {
242
- default: t(() => [
243
- s("div", Me, [
244
- e(n(re), { class: "size-4" }),
245
- l[12] || (l[12] = a(" Load pre-defined type ", -1))
246
- ])
247
- ]),
248
- _: 1
249
- })
250
- ]),
251
- _: 1
252
- }),
253
- e(G, null, {
254
- default: t(() => [
255
- e(P, {
256
- onClick: l[0] || (l[0] = (v) => C("fixed"))
257
- }, {
258
- default: t(() => [
259
- s("div", Ne, [
260
- e(n(oe), { class: "size-4" }),
261
- l[13] || (l[13] = a(" Fixed Amount ", -1))
262
- ])
263
- ]),
264
- _: 1
265
- }),
266
- e(P, {
267
- onClick: l[1] || (l[1] = (v) => C("percentage"))
268
- }, {
269
- default: t(() => [
270
- s("div", Ie, [
271
- e(n(ne), { class: "size-4" }),
272
- l[14] || (l[14] = a(" Percentage ", -1))
273
- ])
274
- ]),
275
- _: 1
276
- }),
277
- e(P, {
278
- onClick: l[2] || (l[2] = (v) => C("free_shipping"))
279
- }, {
280
- default: t(() => [
281
- s("div", Le, [
282
- e(n(se), { class: "size-4" }),
283
- l[15] || (l[15] = a(" Free Shipping ", -1))
284
- ])
285
- ]),
286
- _: 1
287
- })
288
- ]),
289
- _: 1
290
- })
291
- ]),
292
- _: 1
293
- })) : F("", !0)
294
- ]),
295
- s("div", null, [
296
- e(D, {
297
- for: "label",
298
- class: "mb-2"
299
- }, {
300
- default: t(() => [...l[16] || (l[16] = [
301
- a("Display Name", -1)
302
- ])]),
303
- _: 1
304
- }),
305
- e(O, {
306
- modelValue: u.value.label,
307
- "onUpdate:modelValue": l[3] || (l[3] = (v) => u.value.label = v),
308
- id: "label"
309
- }, null, 8, ["modelValue"]),
310
- l[17] || (l[17] = s("p", { class: "text-xs text-muted-foreground mt-1" }, 'Shown in the Studio UI. e.g. "VIP Shipping"', -1))
311
- ]),
312
- s("div", null, [
313
- e(D, {
314
- for: "key",
315
- class: "mb-2"
316
- }, {
317
- default: t(() => [...l[18] || (l[18] = [
318
- a("Internal Key", -1)
319
- ])]),
320
- _: 1
321
- }),
322
- e(O, {
323
- modelValue: u.value.key,
324
- "onUpdate:modelValue": l[4] || (l[4] = (v) => u.value.key = v),
325
- id: "key"
326
- }, null, 8, ["modelValue"]),
327
- l[19] || (l[19] = s("p", { class: "text-xs text-muted-foreground mt-1" }, [
328
- a("Used in logic. Must be unique, lowercase, no spaces. e.g. "),
329
- s("span", { class: "font-mono bg-muted-foreground/20 px-1 py-0.5 rounded" }, "vip_shipping")
330
- ], -1))
331
- ]),
332
- s("div", null, [
333
- e(D, {
334
- for: "allowUnlimitedUses",
335
- class: "mb-4"
336
- }, {
337
- default: t(() => [...l[20] || (l[20] = [
338
- a("Allow Unlimited Uses", -1)
339
- ])]),
340
- _: 1
341
- }),
342
- s("div", ze, [
343
- e(J, {
344
- id: "allowUnlimitedUses",
345
- modelValue: u.value.allowUnlimitedUses,
346
- "onUpdate:modelValue": l[5] || (l[5] = (v) => u.value.allowUnlimitedUses = v)
347
- }, null, 8, ["modelValue"]),
348
- e(D, { for: "allowUnlimitedUses" }, {
349
- default: t(() => [
350
- a(T(u.value.allowUnlimitedUses ? "Yes" : "No"), 1)
351
- ]),
352
- _: 1
353
- })
354
- ]),
355
- l[22] || (l[22] = s("p", { class: "text-xs text-muted-foreground mt-1" }, 'Show the "Unlimited uses" toggle when creating a promo code.', -1)),
356
- u.value.allowUnlimitedUses ? (p(), $("p", Oe, [
357
- e(n(me), { class: "size-4" }),
358
- l[21] || (l[21] = a(" This option is always hidden when generating multiple codes. ", -1))
359
- ])) : F("", !0)
360
- ]),
361
- s("div", null, [
362
- e(D, {
363
- for: "hasValueField",
364
- class: "mb-4"
365
- }, {
366
- default: t(() => [...l[23] || (l[23] = [
367
- a("Has Value Field", -1)
368
- ])]),
369
- _: 1
370
- }),
371
- s("div", Be, [
372
- e(J, {
373
- id: "hasValueField",
374
- modelValue: u.value.hasValueField,
375
- "onUpdate:modelValue": l[6] || (l[6] = (v) => u.value.hasValueField = v)
376
- }, null, 8, ["modelValue"]),
377
- e(D, { for: "hasValueField" }, {
378
- default: t(() => [
379
- a(T(u.value.hasValueField ? "Yes" : "No"), 1)
380
- ]),
381
- _: 1
382
- })
383
- ]),
384
- l[24] || (l[24] = s("p", { class: "text-xs text-muted-foreground mt-1" }, "Show a numeric value input when using this type.", -1))
385
- ]),
386
- s("div", null, [
387
- e(D, {
388
- for: "valueLabel",
389
- class: "mb-2"
390
- }, {
391
- default: t(() => [...l[25] || (l[25] = [
392
- a("Value Field Label", -1)
393
- ])]),
394
- _: 1
395
- }),
396
- e(O, {
397
- modelValue: u.value.valueLabel,
398
- "onUpdate:modelValue": l[7] || (l[7] = (v) => u.value.valueLabel = v),
399
- id: "valueLabel"
400
- }, null, 8, ["modelValue"]),
401
- l[26] || (l[26] = s("p", { class: "text-xs text-muted-foreground mt-1" }, 'e.g. "Gift amount", "Shipping cost"', -1))
402
- ]),
403
- s("div", null, [
404
- e(D, {
405
- for: "valuePrefix",
406
- class: "mb-2"
407
- }, {
408
- default: t(() => [...l[27] || (l[27] = [
409
- a("Value Field Prefix", -1)
410
- ])]),
411
- _: 1
412
- }),
413
- e(O, {
414
- modelValue: u.value.valuePrefix,
415
- "onUpdate:modelValue": l[8] || (l[8] = (v) => u.value.valuePrefix = v),
416
- id: "valuePrefix"
417
- }, null, 8, ["modelValue"]),
418
- l[28] || (l[28] = s("p", { class: "text-xs text-muted-foreground mt-1" }, "e.g. € or $", -1))
419
- ]),
420
- s("div", null, [
421
- e(D, {
422
- for: "valueSuffix",
423
- class: "mb-2"
424
- }, {
425
- default: t(() => [...l[29] || (l[29] = [
426
- a("Value Field Suffix", -1)
427
- ])]),
428
- _: 1
429
- }),
430
- e(O, {
431
- modelValue: u.value.valueSuffix,
432
- "onUpdate:modelValue": l[9] || (l[9] = (v) => u.value.valueSuffix = v),
433
- id: "valueSuffix"
434
- }, null, 8, ["modelValue"]),
435
- l[30] || (l[30] = s("p", { class: "text-xs text-muted-foreground mt-1" }, "e.g. %, credits", -1))
436
- ])
437
- ]),
438
- e(H, null, {
439
- default: t(() => [
440
- e(M, {
441
- variant: "outline",
442
- onClick: l[10] || (l[10] = (v) => x.value = !1)
443
- }, {
444
- default: t(() => [...l[31] || (l[31] = [
445
- a("Cancel", -1)
446
- ])]),
447
- _: 1
448
- }),
449
- k.value === "add" ? (p(), U(M, {
450
- key: 0,
451
- disabled: _.value,
452
- onClick: w
453
- }, {
454
- default: t(() => [
455
- _.value ? (p(), U(n(K), {
456
- key: 0,
457
- class: "size-4 animate-spin"
458
- })) : F("", !0),
459
- l[32] || (l[32] = a(" Add Type ", -1))
460
- ]),
461
- _: 1
462
- }, 8, ["disabled"])) : (p(), U(M, {
463
- key: 1,
464
- disabled: _.value,
465
- onClick: m
466
- }, {
467
- default: t(() => [
468
- _.value ? (p(), U(n(K), {
469
- key: 0,
470
- class: "size-4 animate-spin"
471
- })) : F("", !0),
472
- l[33] || (l[33] = a(" Save Changes ", -1))
473
- ]),
474
- _: 1
475
- }, 8, ["disabled"]))
476
- ]),
477
- _: 1
478
- })
479
- ]),
480
- _: 1
481
- })) : F("", !0)
482
- ]),
483
- _: 1
484
- }, 8, ["open"]);
485
- };
486
- }
487
- }), Re = { class: "grid gap-4 py-4" }, Ee = {
488
- key: 0,
489
- class: "flex flex-col gap-2 items-center text-muted-foreground border rounded p-4"
490
- }, Je = { class: "flex gap-2 items-center" }, je = { key: 1 }, He = { class: "flex justify-end w-full mb-2" }, Ye = { class: "flex items-center gap-2" }, qe = { class: "flex items-center gap-2" }, Ke = { class: "flex items-center gap-2" }, We = { class: "flex items-center gap-2" }, Qe = { class: "flex items-center gap-2" }, Xe = { class: "font-mono bg-muted-foreground/20 px-1 py-0.5 rounded" }, Ze = /* @__PURE__ */ z({
491
- __name: "TypeManageDialog",
492
- setup(N) {
493
- const { isAdmin: d } = j(), { getModuleData: S, setModuleData: r } = W(), { confirm: f } = _e(), c = L("promoTypes", A([])), u = ue("typeDetailDialog"), x = async (_) => {
494
- if (!await f(`Are you sure you want to delete the type "${_.label}"?`)) return;
495
- let y = await S("promo-types") || [];
496
- y = y.filter((w) => w.id !== _.id), r("promo-types", y), c.value = JSON.parse(JSON.stringify(y));
497
- }, k = async () => {
498
- const _ = [
499
- {
500
- id: crypto.randomUUID(),
501
- label: "Fixed Amount",
502
- key: "fixed",
503
- allowUnlimitedUses: !1,
504
- hasValueField: !0,
505
- valueLabel: "Amount",
506
- valuePrefix: "$",
507
- valueSuffix: ""
508
- },
509
- {
510
- id: crypto.randomUUID(),
511
- label: "Percentage",
512
- key: "percentage",
513
- allowUnlimitedUses: !1,
514
- hasValueField: !0,
515
- valueLabel: "Percentage",
516
- valuePrefix: "",
517
- valueSuffix: "%"
518
- },
519
- {
520
- id: crypto.randomUUID(),
521
- label: "Free Shipping",
522
- key: "free_shipping",
523
- allowUnlimitedUses: !1,
524
- hasValueField: !1,
525
- valueLabel: "",
526
- valuePrefix: "",
527
- valueSuffix: ""
528
- }
529
- ];
530
- r("promo-types", _), c.value = JSON.parse(JSON.stringify(_));
531
- };
532
- return (_, i) => {
533
- const y = o("Button"), w = o("DialogTrigger"), m = o("DialogTitle"), C = o("DialogDescription"), b = o("DialogHeader"), l = o("DropdownMenuTrigger"), V = o("DropdownMenuItem"), g = o("DropdownMenuSeparator"), M = o("DropdownMenuContent"), B = o("DropdownMenu"), P = o("TableHead"), G = o("TableRow"), R = o("TableHeader"), D = o("TableCell"), O = o("TableBody"), J = o("Table"), H = o("DialogFooter"), Y = o("DialogScrollContent"), q = o("Dialog");
534
- return p(), $(E, null, [
535
- e(q, null, {
536
- default: t(() => [
537
- e(w, { "as-child": "" }, {
538
- default: t(() => [
539
- e(y, null, {
540
- default: t(() => [
541
- e(n(pe), { class: "size-4" }),
542
- i[6] || (i[6] = a(" Edit Promo Types ", -1))
543
- ]),
544
- _: 1
545
- })
546
- ]),
547
- _: 1
548
- }),
549
- n(d)() ? (p(), U(Y, {
550
- key: 0,
551
- class: "sm:max-w-2xl"
552
- }, {
553
- default: t(() => [
554
- e(b, null, {
555
- default: t(() => [
556
- e(m, null, {
557
- default: t(() => [...i[7] || (i[7] = [
558
- a("Edit Promo Types", -1)
559
- ])]),
560
- _: 1
561
- }),
562
- e(C, null, {
563
- default: t(() => [...i[8] || (i[8] = [
564
- a(" Define reusable custom promo types to use in discount codes. You can configure how they behave and what fields are shown. ", -1)
565
- ])]),
566
- _: 1
567
- })
568
- ]),
569
- _: 1
570
- }),
571
- s("div", Re, [
572
- n(c).length === 0 ? (p(), $("div", Ee, [
573
- i[12] || (i[12] = s("p", null, "You haven't created any custom types yet.", -1)),
574
- s("p", Je, [
575
- e(y, {
576
- variant: "link",
577
- onClick: i[0] || (i[0] = (v) => u.value?.open())
578
- }, {
579
- default: t(() => [...i[9] || (i[9] = [
580
- a("Create a custom type", -1)
581
- ])]),
582
- _: 1
583
- }),
584
- i[11] || (i[11] = a(" or ", -1)),
585
- e(y, {
586
- variant: "link",
587
- onClick: i[1] || (i[1] = (v) => k())
588
- }, {
589
- default: t(() => [...i[10] || (i[10] = [
590
- a("Import Default Types", -1)
591
- ])]),
592
- _: 1
593
- })
594
- ])
595
- ])) : (p(), $("div", je, [
596
- s("div", He, [
597
- e(B, null, {
598
- default: t(() => [
599
- e(l, null, {
600
- default: t(() => [
601
- e(y, { variant: "outline" }, {
602
- default: t(() => [
603
- s("div", Ye, [
604
- e(n(Z), { class: "size-4" }),
605
- i[13] || (i[13] = a(" Create new Promo Type ", -1))
606
- ])
607
- ]),
608
- _: 1
609
- })
610
- ]),
611
- _: 1
612
- }),
613
- e(M, null, {
614
- default: t(() => [
615
- e(V, {
616
- onClick: i[2] || (i[2] = (v) => u.value?.open())
617
- }, {
618
- default: t(() => [
619
- s("div", qe, [
620
- e(n(Z), { class: "size-4" }),
621
- i[14] || (i[14] = a(" New Type ", -1))
622
- ])
623
- ]),
624
- _: 1
625
- }),
626
- e(g),
627
- e(V, {
628
- onClick: i[3] || (i[3] = (v) => u.value?.openFromTemplate("fixed"))
629
- }, {
630
- default: t(() => [
631
- s("div", Ke, [
632
- e(n(oe), { class: "size-4" }),
633
- i[15] || (i[15] = a(" Fixed Amount ", -1))
634
- ])
635
- ]),
636
- _: 1
637
- }),
638
- e(V, {
639
- onClick: i[4] || (i[4] = (v) => u.value?.openFromTemplate("percentage"))
640
- }, {
641
- default: t(() => [
642
- s("div", We, [
643
- e(n(ne), { class: "size-4" }),
644
- i[16] || (i[16] = a(" Percentage ", -1))
645
- ])
646
- ]),
647
- _: 1
648
- }),
649
- e(V, {
650
- onClick: i[5] || (i[5] = (v) => u.value?.openFromTemplate("free_shipping"))
651
- }, {
652
- default: t(() => [
653
- s("div", Qe, [
654
- e(n(se), { class: "size-4" }),
655
- i[17] || (i[17] = a(" Free Shipping ", -1))
656
- ])
657
- ]),
658
- _: 1
659
- })
660
- ]),
661
- _: 1
662
- })
663
- ]),
664
- _: 1
665
- })
666
- ]),
667
- e(J, null, {
668
- default: t(() => [
669
- e(R, null, {
670
- default: t(() => [
671
- e(G, null, {
672
- default: t(() => [
673
- e(P, null, {
674
- default: t(() => [...i[18] || (i[18] = [
675
- a("Name (label)", -1)
676
- ])]),
677
- _: 1
678
- }),
679
- e(P, null, {
680
- default: t(() => [...i[19] || (i[19] = [
681
- a("Key", -1)
682
- ])]),
683
- _: 1
684
- }),
685
- e(P, null, {
686
- default: t(() => [...i[20] || (i[20] = [
687
- a("Value Field", -1)
688
- ])]),
689
- _: 1
690
- }),
691
- e(P, null, {
692
- default: t(() => [...i[21] || (i[21] = [
693
- a("Unlimited Uses", -1)
694
- ])]),
695
- _: 1
696
- }),
697
- e(P, { class: "text-right" }, {
698
- default: t(() => [...i[22] || (i[22] = [
699
- a("Actions", -1)
700
- ])]),
701
- _: 1
702
- })
703
- ]),
704
- _: 1
705
- })
706
- ]),
707
- _: 1
708
- }),
709
- e(O, null, {
710
- default: t(() => [
711
- (p(!0), $(E, null, le(n(c), (v) => (p(), U(G, {
712
- key: v.key
713
- }, {
714
- default: t(() => [
715
- e(D, null, {
716
- default: t(() => [
717
- a(T(v.label), 1)
718
- ]),
719
- _: 2
720
- }, 1024),
721
- e(D, null, {
722
- default: t(() => [
723
- s("span", Xe, T(v.key), 1)
724
- ]),
725
- _: 2
726
- }, 1024),
727
- e(D, null, {
728
- default: t(() => [
729
- a(T(v.hasValueField ? "Yes" : "No"), 1)
730
- ]),
731
- _: 2
732
- }, 1024),
733
- e(D, null, {
734
- default: t(() => [
735
- a(T(v.allowUnlimitedUses ? "Yes" : "No"), 1)
736
- ]),
737
- _: 2
738
- }, 1024),
739
- e(D, { class: "text-right" }, {
740
- default: t(() => [
741
- e(y, {
742
- variant: "ghost",
743
- size: "icon",
744
- onClick: (ae) => u.value?.open(v)
745
- }, {
746
- default: t(() => [
747
- e(n(fe), { class: "size-4" })
748
- ]),
749
- _: 1
750
- }, 8, ["onClick"]),
751
- e(y, {
752
- variant: "ghost",
753
- size: "icon",
754
- onClick: (ae) => x(v)
755
- }, {
756
- default: t(() => [
757
- e(n(ve), { class: "size-4 text-red-500" })
758
- ]),
759
- _: 1
760
- }, 8, ["onClick"])
761
- ]),
762
- _: 2
763
- }, 1024)
764
- ]),
765
- _: 2
766
- }, 1024))), 128))
767
- ]),
768
- _: 1
769
- })
770
- ]),
771
- _: 1
772
- })
773
- ]))
774
- ]),
775
- e(H, null, {
776
- default: t(() => [
777
- e(y, {
778
- variant: "outline",
779
- disabled: ""
780
- }, {
781
- default: t(() => [...i[23] || (i[23] = [
782
- a(" Auto-saved ", -1)
783
- ])]),
784
- _: 1
785
- })
786
- ]),
787
- _: 1
788
- })
789
- ]),
790
- _: 1
791
- })) : F("", !0)
792
- ]),
793
- _: 1
794
- }),
795
- e(Ge, {
796
- ref_key: "typeDetailDialog",
797
- ref: u
798
- }, null, 512)
799
- ], 64);
800
- };
801
- }
802
- }), he = { class: "flex justify-between items-center" }, et = { class: "grid gap-2" }, tt = { class: "flex flex-wrap gap-12" }, lt = {
803
- key: 0,
804
- class: "grid gap-2"
805
- }, ot = { class: "flex items-center gap-2" }, nt = {
806
- key: 1,
807
- class: "grid gap-2"
808
- }, st = { class: "flex items-center space-x-2" }, at = /* @__PURE__ */ z({
809
- __name: "index",
810
- setup(N) {
811
- const d = L("newCoupon"), S = L("promoTypes", A([])), r = ie(() => S.value.find((c) => c.key === d.value?.type) || null), { isAdmin: f } = j();
812
- return (c, u) => {
813
- const x = o("Label"), k = o("SelectValue"), _ = o("SelectTrigger"), i = o("SelectItem"), y = o("SelectGroup"), w = o("SelectContent"), m = o("Select"), C = o("Input"), b = o("Switch"), l = o("Card");
814
- return p(), U(l, { class: "p-4" }, {
815
- default: t(() => [
816
- s("div", he, [
817
- u[3] || (u[3] = s("h2", { class: "font-medium" }, "Value", -1)),
818
- n(f)() ? (p(), U(Ze, { key: 0 })) : F("", !0)
819
- ]),
820
- s("div", et, [
821
- e(x, { class: "text-muted-foreground" }, {
822
- default: t(() => [...u[4] || (u[4] = [
823
- a("Promo Type", -1)
824
- ])]),
825
- _: 1
826
- }),
827
- e(m, {
828
- modelValue: n(d).type,
829
- "onUpdate:modelValue": u[0] || (u[0] = (V) => n(d).type = V)
830
- }, {
831
- default: t(() => [
832
- e(_, { class: "w-[200px]" }, {
833
- default: t(() => [
834
- e(k, { placeholder: "Select a promo type" })
835
- ]),
836
- _: 1
837
- }),
838
- e(w, null, {
839
- default: t(() => [
840
- e(y, null, {
841
- default: t(() => [
842
- (p(!0), $(E, null, le(n(S), (V) => (p(), U(i, {
843
- key: V.key,
844
- value: V.key
845
- }, {
846
- default: t(() => [
847
- a(T(V.label), 1)
848
- ]),
849
- _: 2
850
- }, 1032, ["value"]))), 128))
851
- ]),
852
- _: 1
853
- })
854
- ]),
855
- _: 1
856
- })
857
- ]),
858
- _: 1
859
- }, 8, ["modelValue"])
860
- ]),
861
- s("div", tt, [
862
- r.value?.hasValueField ? (p(), $("div", lt, [
863
- e(x, {
864
- for: "discountValue",
865
- class: "text-muted-foreground"
866
- }, {
867
- default: t(() => [
868
- a(T(r.value?.valueLabel || "Value"), 1)
869
- ]),
870
- _: 1
871
- }),
872
- s("div", ot, [
873
- r.value?.valuePrefix ? (p(), U(x, {
874
- key: 0,
875
- for: "discountValue",
876
- class: "text-lg"
877
- }, {
878
- default: t(() => [
879
- a(T(r.value?.valuePrefix), 1)
880
- ]),
881
- _: 1
882
- })) : F("", !0),
883
- e(C, {
884
- modelValue: n(d).value,
885
- "onUpdate:modelValue": u[1] || (u[1] = (V) => n(d).value = V),
886
- modelModifiers: { number: !0 },
887
- id: "discountValue",
888
- type: "number",
889
- class: "no-spinner",
890
- min: "0"
891
- }, null, 8, ["modelValue"]),
892
- r.value?.valueSuffix ? (p(), U(x, {
893
- key: 1,
894
- for: "discountValue",
895
- class: "text-lg"
896
- }, {
897
- default: t(() => [
898
- a(T(r.value?.valueSuffix), 1)
899
- ]),
900
- _: 1
901
- })) : F("", !0)
902
- ])
903
- ])) : F("", !0),
904
- r.value?.allowUnlimitedUses && n(d).creationMode !== "multi" ? (p(), $("div", nt, [
905
- e(x, {
906
- for: "unlimitedUses",
907
- class: "text-muted-foreground"
908
- }, {
909
- default: t(() => [...u[5] || (u[5] = [
910
- a("Unlimited Uses", -1)
911
- ])]),
912
- _: 1
913
- }),
914
- s("div", st, [
915
- e(b, {
916
- id: "unlimitedUses",
917
- modelValue: n(d).unlimitedUses,
918
- "onUpdate:modelValue": u[2] || (u[2] = (V) => n(d).unlimitedUses = V)
919
- }, null, 8, ["modelValue"]),
920
- e(x, { for: "unlimitedUses" }, {
921
- default: t(() => [
922
- a(T(n(d).unlimitedUses ? "Yes" : "No"), 1)
923
- ]),
924
- _: 1
925
- })
926
- ])
927
- ])) : F("", !0)
928
- ])
929
- ]),
930
- _: 1
931
- });
932
- };
933
- }
934
- }), ut = { class: "flex gap-4" }, it = { class: "flex flex-col" }, dt = {
935
- key: 0,
936
- class: "-ml-2"
937
- }, rt = {
938
- key: 1,
939
- class: "text-xs text-muted-foreground mt-2"
940
- }, mt = { class: "flex flex-col" }, pt = {
941
- key: 0,
942
- class: "-ml-2"
943
- }, ft = {
944
- key: 1,
945
- class: "text-xs text-muted-foreground mt-2"
946
- }, vt = /* @__PURE__ */ z({
947
- __name: "DateRange",
948
- setup(N) {
949
- const d = L("newCoupon"), S = new Ve("en-US", {
950
- dateStyle: "long"
951
- });
952
- return (r, f) => {
953
- const c = o("Label"), u = o("Button"), x = o("PopoverTrigger"), k = o("Calendar"), _ = o("PopoverContent"), i = o("Popover"), y = o("Card");
954
- return p(), U(y, { class: "p-4" }, {
955
- default: t(() => [
956
- f[8] || (f[8] = s("div", null, [
957
- s("h2", { class: "font-medium mb-2" }, "Availability"),
958
- s("p", { class: "text-muted-foreground" }, "When will this code be available?")
959
- ], -1)),
960
- s("div", ut, [
961
- s("div", it, [
962
- e(c, { class: "text-muted-foreground mb-2" }, {
963
- default: t(() => [...f[4] || (f[4] = [
964
- a("Available from", -1)
965
- ])]),
966
- _: 1
967
- }),
968
- e(i, null, {
969
- default: t(() => [
970
- e(x, { "as-child": "" }, {
971
- default: t(() => [
972
- e(u, {
973
- variant: "outline",
974
- class: Q(n(ee)(
975
- "w-[280px] justify-start text-left font-normal",
976
- !n(d).startsAt && "text-muted-foreground"
977
- ))
978
- }, {
979
- default: t(() => [
980
- e(n(h), { class: "mr-2 h-4 w-4" }),
981
- a(" " + T(n(d).startsAt ? n(S).format(n(d).startsAt.toDate(n(te)())) : "Pick a date"), 1)
982
- ]),
983
- _: 1
984
- }, 8, ["class"])
985
- ]),
986
- _: 1
987
- }),
988
- e(_, { class: "w-auto p-0" }, {
989
- default: t(() => [
990
- e(k, {
991
- modelValue: n(d).startsAt,
992
- "onUpdate:modelValue": f[0] || (f[0] = (w) => n(d).startsAt = w),
993
- "initial-focus": "",
994
- minValue: n(Ue)()
995
- }, null, 8, ["modelValue", "minValue"])
996
- ]),
997
- _: 1
998
- })
999
- ]),
1000
- _: 1
1001
- }),
1002
- n(d).startsAt ? (p(), $("div", dt, [
1003
- e(u, {
1004
- onClick: f[1] || (f[1] = (w) => n(d).startsAt = void 0),
1005
- variant: "link"
1006
- }, {
1007
- default: t(() => [...f[5] || (f[5] = [
1008
- a("Clear", -1)
1009
- ])]),
1010
- _: 1
1011
- })
1012
- ])) : (p(), $("p", rt, "Not set - codes will be available immediately"))
1013
- ]),
1014
- s("div", mt, [
1015
- e(c, { class: "text-muted-foreground mb-2" }, {
1016
- default: t(() => [...f[6] || (f[6] = [
1017
- a("Until", -1)
1018
- ])]),
1019
- _: 1
1020
- }),
1021
- e(i, null, {
1022
- default: t(() => [
1023
- e(x, { "as-child": "" }, {
1024
- default: t(() => [
1025
- e(u, {
1026
- variant: "outline",
1027
- class: Q(n(ee)(
1028
- "w-[280px] justify-start text-left font-normal",
1029
- !n(d).expiresAt && "text-muted-foreground"
1030
- ))
1031
- }, {
1032
- default: t(() => [
1033
- e(n(h), { class: "mr-2 h-4 w-4" }),
1034
- a(" " + T(n(d).expiresAt ? n(S).format(n(d).expiresAt.toDate(n(te)())) : "Pick a date"), 1)
1035
- ]),
1036
- _: 1
1037
- }, 8, ["class"])
1038
- ]),
1039
- _: 1
1040
- }),
1041
- e(_, { class: "w-auto p-0" }, {
1042
- default: t(() => [
1043
- e(k, {
1044
- modelValue: n(d).expiresAt,
1045
- "onUpdate:modelValue": f[2] || (f[2] = (w) => n(d).expiresAt = w),
1046
- "initial-focus": "",
1047
- minValue: n(d).startsAt
1048
- }, null, 8, ["modelValue", "minValue"])
1049
- ]),
1050
- _: 1
1051
- })
1052
- ]),
1053
- _: 1
1054
- }),
1055
- n(d).expiresAt ? (p(), $("div", pt, [
1056
- e(u, {
1057
- onClick: f[3] || (f[3] = (w) => n(d).expiresAt = void 0),
1058
- variant: "link"
1059
- }, {
1060
- default: t(() => [...f[7] || (f[7] = [
1061
- a("Clear", -1)
1062
- ])]),
1063
- _: 1
1064
- })
1065
- ])) : (p(), $("p", ft, "Not set - codes will never expire"))
1066
- ])
1067
- ])
1068
- ]),
1069
- _: 1
1070
- });
1071
- };
1072
- }
1073
- }), ct = /* @__PURE__ */ z({
1074
- __name: "Note",
1075
- setup(N) {
1076
- const d = L("newCoupon");
1077
- return (S, r) => {
1078
- const f = o("Textarea"), c = o("Card");
1079
- return p(), U(c, { class: "p-4" }, {
1080
- default: t(() => [
1081
- s("div", null, [
1082
- r[1] || (r[1] = s("h2", { class: "font-medium mb-2" }, "Note", -1)),
1083
- r[2] || (r[2] = s("p", { class: "text-sm text-muted-foreground mb-2" }, "Used internally. It's a good idea to write down why you're creating this promo code.", -1)),
1084
- e(f, {
1085
- modelValue: n(d).note,
1086
- "onUpdate:modelValue": r[0] || (r[0] = (u) => n(d).note = u)
1087
- }, null, 8, ["modelValue"])
1088
- ])
1089
- ]),
1090
- _: 1
1091
- });
1092
- };
1093
- }
1094
- }), _t = { class: "relative" }, gt = {
1095
- ref: "container",
1096
- class: "flex flex-col gap-4 w-full max-w-5xl mx-auto"
1097
- }, xt = { class: "flex justify-between items-center mb-4" }, yt = { class: "w-full max-w-2xl" }, bt = { class: "flex items-center space-x-2" }, wt = { class: "flex items-center space-x-2" }, Vt = { class: "flex justify-end w-full" }, Tt = /* @__PURE__ */ z({
1098
- __name: "Create",
1099
- props: {
1100
- config: {
1101
- type: Object,
1102
- required: !0
1103
- }
1104
- },
1105
- async setup(N) {
1106
- let d, S;
1107
- const r = N, { hasPermission: f } = j(), { navigateTo: c } = ge(), { getTimezone: u } = xe(), { log: x, logError: k } = ye(), { getModuleData: _, setModuleData: i } = W();
1108
- be(() => []);
1109
- const y = we(r.config.project), w = A(!1), m = A({
1110
- creationMode: "single",
1111
- generationMode: "generate",
1112
- quantity: 1,
1113
- prefix: "",
1114
- codes: "",
1115
- code: "",
1116
- type: void 0,
1117
- value: void 0,
1118
- unlimitedUses: !1,
1119
- startsAt: void 0,
1120
- expiresAt: void 0,
1121
- minOrderAmount: 0,
1122
- note: ""
1123
- }), C = A([]);
1124
- C.value = ([d, S] = de(() => _("promo-types")), d = await d, S(), d || []), X("newCoupon", m), X("promoTypes", C);
1125
- const b = () => {
1126
- if (m.value.creationMode == "single") {
1127
- if (m.value.code = m.value.code?.trim().toUpperCase(), !m.value.code)
1128
- return I.error("Please enter a code"), !1;
1129
- } else if (m.value.generationMode == "generate") {
1130
- if (m.value.prefix = m.value.prefix?.trim().toUpperCase(), !m.value.prefix)
1131
- return I.error("Please enter a prefix"), !1;
1132
- if (!m.value.quantity || m.value.quantity < 1)
1133
- return I.error("Generate at least 1 code"), !1;
1134
- } else if (m.value.generationMode == "input" && (m.value.codes = m.value.codes?.trim().toUpperCase(), !m.value.codes || m.value.codes.length < 1))
1135
- return I.error("Please enter some codes"), !1;
1136
- return m.value.type ? C.value.find((V) => V.key === m.value.type)?.hasValueField && !m.value.value ? (I.error("Please enter a value"), !1) : (m.value.creationMode === "multi" && (m.value.unlimitedUses = !1), !0) : (I.error("Please select a type"), !1);
1137
- }, l = async () => {
1138
- try {
1139
- if (!b()) return;
1140
- if (w.value = !0, m.value.creationMode == "single") {
1141
- let V = {
1142
- code: m.value.code,
1143
- type: m.value.type,
1144
- value: m.value.value,
1145
- minOrderAmount: m.value.minOrderAmount,
1146
- usageLimit: m.value.unlimitedUses ? 0 : 1,
1147
- usageCount: 0,
1148
- lastUsedAt: null,
1149
- startsAt: m.value.startsAt ? m.value.startsAt.toDate(u()) : null,
1150
- expiresAt: m.value.expiresAt ? m.value.expiresAt.toDate(u()) : null,
1151
- disabled: !1,
1152
- note: m.value.note,
1153
- createdAt: /* @__PURE__ */ new Date(),
1154
- updatedAt: /* @__PURE__ */ new Date()
1155
- };
1156
- const g = await y.add(r.config.promoCodeCollection, V);
1157
- x("Promo code created", { id: g.id, code: g.code, note: g.note }), I.success("Promo code created");
1158
- }
1159
- } catch {
1160
- k("Failed to create promo code"), I.error("Failed to create promo code");
1161
- } finally {
1162
- w.value = !1;
1163
- }
1164
- };
1165
- return (V, g) => {
1166
- const M = o("Button"), B = o("RadioGroupItem"), P = o("Label"), G = o("RadioGroup"), R = o("Card");
1167
- return p(), $("div", _t, [
1168
- s("div", gt, [
1169
- s("div", xt, [
1170
- g[3] || (g[3] = s("h1", { class: "text-2xl font-bold" }, "New Promo Code", -1)),
1171
- e(M, {
1172
- onClick: g[0] || (g[0] = (D) => n(c)("promo-codes")),
1173
- variant: "outline",
1174
- disabled: w.value
1175
- }, {
1176
- default: t(() => [
1177
- e(n(ce), { class: "size-4" }),
1178
- g[2] || (g[2] = a(" View Promo Codes ", -1))
1179
- ]),
1180
- _: 1
1181
- }, 8, ["disabled"])
1182
- ]),
1183
- e(R, { class: "p-4" }, {
1184
- default: t(() => [
1185
- s("div", yt, [
1186
- g[6] || (g[6] = s("h2", { class: "font-medium mb-4" }, "Codes", -1)),
1187
- e(G, {
1188
- modelValue: m.value.creationMode,
1189
- "onUpdate:modelValue": g[1] || (g[1] = (D) => m.value.creationMode = D),
1190
- orientation: "horizontal",
1191
- class: "mb-6"
1192
- }, {
1193
- default: t(() => [
1194
- s("div", bt, [
1195
- e(B, {
1196
- id: "creation_mode_single",
1197
- value: "single"
1198
- }),
1199
- e(P, { for: "creation_mode_single" }, {
1200
- default: t(() => [...g[4] || (g[4] = [
1201
- a("Create 1 code", -1)
1202
- ])]),
1203
- _: 1
1204
- })
1205
- ]),
1206
- s("div", wt, [
1207
- e(B, {
1208
- id: "creation_mode_multi",
1209
- value: "multi"
1210
- }),
1211
- e(P, { for: "creation_mode_multi" }, {
1212
- default: t(() => [...g[5] || (g[5] = [
1213
- a("Create multiple codes", -1)
1214
- ])]),
1215
- _: 1
1216
- })
1217
- ])
1218
- ]),
1219
- _: 1
1220
- }, 8, ["modelValue"]),
1221
- m.value.creationMode == "single" ? (p(), U(Ce, { key: 0 })) : (p(), U(Pe, { key: 1 }))
1222
- ])
1223
- ]),
1224
- _: 1
1225
- }),
1226
- e(at),
1227
- e(vt),
1228
- e(ct),
1229
- s("div", Vt, [
1230
- e(M, {
1231
- disabled: w.value,
1232
- onClick: l
1233
- }, {
1234
- default: t(() => [
1235
- w.value ? (p(), U(n(K), {
1236
- key: 0,
1237
- class: "size-4 animate-spin"
1238
- })) : F("", !0),
1239
- g[7] || (g[7] = a(" Create Promo Code ", -1))
1240
- ]),
1241
- _: 1
1242
- }, 8, ["disabled"])
1243
- ])
1244
- ], 512)
1245
- ]);
1246
- };
1247
- }
1248
- });
1249
- export {
1250
- Tt as default
1251
- };