@oneclick.dev/cms-core-modules 0.0.109 → 0.0.110

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-DNCy8nQz.mjs +400 -0
  2. package/dist/Acquisition-Dt2rREU8.js +1 -0
  3. package/dist/AgendaOpeningHoursCard-B7ROIPWw.js +1 -0
  4. package/dist/AgendaOpeningHoursCard-Cp4wxUeK.mjs +172 -0
  5. package/dist/AppointmentDetailsCard-33WpATpV.mjs +161 -0
  6. package/dist/AppointmentDetailsCard-DpLM5IrB.js +1 -0
  7. package/dist/AppointmentEditor-BeOtYV6u.mjs +196 -0
  8. package/dist/AppointmentEditor-CaTfbkIf.js +1 -0
  9. package/dist/AppointmentListTable-DZJNmTMb.mjs +177 -0
  10. package/dist/AppointmentListTable-Dieu9US_.js +1 -0
  11. package/dist/Audience-Bs7b0TNm.js +1 -0
  12. package/dist/Audience-CUeMVYRy.mjs +489 -0
  13. package/dist/Components-C83O-xlF.mjs +623 -0
  14. package/dist/Components-DXbx0RLV.js +1 -0
  15. package/dist/Content-BHr_rPVY.js +1 -0
  16. package/dist/Content-CYOZKvWK.mjs +358 -0
  17. package/dist/ContentEditor-BprPiHMJ.js +462 -0
  18. package/dist/ContentEditor-D9-1SJ5F.mjs +30700 -0
  19. package/dist/CountryBreakdownCard-D7BK3nRD.js +1 -0
  20. package/dist/CountryBreakdownCard-DVxNz2DJ.mjs +196 -0
  21. package/dist/Create-89z41K73.js +1 -0
  22. package/dist/Create-BCklc_T1.mjs +1251 -0
  23. package/dist/DateFormatter-CYAD4GBN.js +1 -0
  24. package/dist/DateFormatter-DUxlo8X8.mjs +734 -0
  25. package/dist/Detail-BCOcP2ql.mjs +585 -0
  26. package/dist/Detail-Btzwo0Y3.mjs +3477 -0
  27. package/dist/Detail-Byk781b4.mjs +26 -0
  28. package/dist/Detail-C857g62L.js +1 -0
  29. package/dist/Detail-C8wQiDcv.js +1 -0
  30. package/dist/Detail-CNlljBfH.mjs +379 -0
  31. package/dist/Detail-CPqug27l.js +1 -0
  32. package/dist/Detail-CjuhjPby.js +1 -0
  33. package/dist/Detail-DnX7tsqN.mjs +649 -0
  34. package/dist/Detail-mvSGbnFU.js +1 -0
  35. package/dist/DeviceBreakdownCard-DRhQ9ufG.js +1 -0
  36. package/dist/DeviceBreakdownCard-W1frLe0L.mjs +159 -0
  37. package/dist/EditLayout.vue_vue_type_script_setup_true_lang-DWMqQvHl.mjs +76 -0
  38. package/dist/EditLayout.vue_vue_type_script_setup_true_lang-kpjbVSXg.js +1 -0
  39. package/dist/Entries-BdhUyJR5.mjs +728 -0
  40. package/dist/Entries-CEXM_SkO.js +1 -0
  41. package/dist/Find-D4Qa45qC.js +1 -0
  42. package/dist/Find-DIISO5GO.mjs +229 -0
  43. package/dist/GlobalStyling-C9VthHWK.mjs +1588 -0
  44. package/dist/GlobalStyling-CnSlXkZc.js +25 -0
  45. package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-Ceoje52V.js +1 -0
  46. package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-Dh9jzvE0.mjs +1255 -0
  47. package/dist/OrderDetailDialog.vue_vue_type_script_setup_true_lang-COrK1j0S.js +1 -0
  48. package/dist/OrderDetailDialog.vue_vue_type_script_setup_true_lang-Vb3q8EVv.mjs +330 -0
  49. package/dist/Overview-BCpJNiEB.mjs +190 -0
  50. package/dist/Overview-BDlBCUI_.js +1 -0
  51. package/dist/Overview-BKAti8nc.mjs +567 -0
  52. package/dist/Overview-BbvfH1u-.js +1 -0
  53. package/dist/Overview-Bn1Xx3_j.js +1 -0
  54. package/dist/Overview-C-Jb_BxY.mjs +860 -0
  55. package/dist/Overview-CIa1E-HH.mjs +178 -0
  56. package/dist/Overview-DAxCu9XC.js +1 -0
  57. package/dist/Overview-DC9io1bk.js +1 -0
  58. package/dist/Overview-Di84CsR5.mjs +476 -0
  59. package/dist/Overview-Su8ZUbMs.mjs +26 -0
  60. package/dist/Overview-T-lsy3UZ.js +1 -0
  61. package/dist/Overview-UoZHUMUz.js +1 -0
  62. package/dist/Overview-lWAyyenp.mjs +632 -0
  63. package/dist/PeakHoursCard-9-EZFZLR.mjs +182 -0
  64. package/dist/PeakHoursCard-BR5zmta4.js +1 -0
  65. package/dist/ProductDetailsCard-6nHikw4V.mjs +121 -0
  66. package/dist/ProductDetailsCard-Bn7qrgmc.js +1 -0
  67. package/dist/RealtimeCard--APfRNc8.js +1 -0
  68. package/dist/RealtimeCard-fvQlJcM7.mjs +126 -0
  69. package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-CuwREvXD.js +349 -0
  70. package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-GYNZ_yhD.mjs +3077 -0
  71. package/dist/SearchTermsCard-BsB-63aH.js +1 -0
  72. package/dist/SearchTermsCard-BzVrHKqQ.mjs +201 -0
  73. package/dist/SendPush-COns44j7.js +1 -0
  74. package/dist/SendPush-CPIOjVX4.mjs +184 -0
  75. package/dist/SeoHealth-MC3lSCOY.mjs +615 -0
  76. package/dist/SeoHealth-az1YuNF2.js +1 -0
  77. package/dist/TableView-DQW0A1oG.js +4 -0
  78. package/dist/TableView-DXHhJ-jm.mjs +6143 -0
  79. package/dist/TemplateList.vue_vue_type_script_setup_true_lang-B_AtWnHa.js +1 -0
  80. package/dist/TemplateList.vue_vue_type_script_setup_true_lang-Cmovy7kk.mjs +40 -0
  81. package/dist/TopPagesCard-BDeA997A.js +1 -0
  82. package/dist/TopPagesCard-CTozhOr_.mjs +159 -0
  83. package/dist/TrafficSourcesCard-BxtCKsqx.mjs +197 -0
  84. package/dist/TrafficSourcesCard-C3ziDTUL.js +1 -0
  85. package/dist/View-CsudjxCE.mjs +30 -0
  86. package/dist/View-Dw_wA6kK.js +1 -0
  87. package/dist/VisitorStatsCard-BmByE_Hi.js +1 -0
  88. package/dist/VisitorStatsCard-CXizEbVK.mjs +174 -0
  89. package/dist/_plugin-vue_export-helper-BHFhmbuH.js +1 -0
  90. package/dist/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
  91. package/dist/agenda-DcatSSYQ.mjs +1165 -0
  92. package/dist/agenda-IOqtALWf.js +1 -0
  93. package/dist/array-CbATeQbk.js +1 -0
  94. package/dist/array-DT5pE8Gm.mjs +108 -0
  95. package/dist/availability-CMrRa5y2.mjs +269 -0
  96. package/dist/availability-Cf2YfMwM.js +1 -0
  97. package/dist/booking-data-DgJd0BcM.mjs +889 -0
  98. package/dist/booking-data-Di5GmH_8.js +1 -0
  99. package/dist/cms-core-modules.css +1 -2
  100. package/dist/countries-BTPvmrsb.mjs +4 -0
  101. package/dist/countries-CgZ081No.js +1 -0
  102. package/dist/exceptions-CI0B4xVj.js +1 -0
  103. package/dist/exceptions-YCQkHa6a.mjs +646 -0
  104. package/dist/google-CvtuJwgk.mjs +4 -0
  105. package/dist/google-D4N3gb01.js +1 -0
  106. package/dist/index-4tjmIans.js +1 -0
  107. package/dist/index-9HVlmvK3.js +1 -0
  108. package/dist/index-A2kp8Isi.js +75 -0
  109. package/dist/index-B5aBwdxY.js +54 -0
  110. package/dist/index-BFLV54kw.mjs +3843 -0
  111. package/dist/index-BWDwEd8D.mjs +24 -0
  112. package/dist/index-BfBBm9uY.mjs +24 -0
  113. package/dist/index-BhWvXMOp.mjs +176 -0
  114. package/dist/index-BiT55eU0.js +58 -0
  115. package/dist/index-Bkq58CeQ.mjs +22 -0
  116. package/dist/index-BzWmWCo5.mjs +1187 -0
  117. package/dist/index-CJQQBRLY.js +1 -0
  118. package/dist/index-CQkOH2_3.mjs +24 -0
  119. package/dist/index-CSxYBeVA.js +1 -0
  120. package/dist/index-CU-tbS5W.mjs +24 -0
  121. package/dist/index-CZn2nDLv.mjs +34 -0
  122. package/dist/index-CkiNvRzs.js +1 -0
  123. package/dist/index-Co4ON2Di.js +1 -0
  124. package/dist/index-Cpnn_Pxd.mjs +24 -0
  125. package/dist/index-CpzDEMeC.mjs +1443 -0
  126. package/dist/index-CsVeM3PA.mjs +24 -0
  127. package/dist/index-CwqrAU-H.js +1 -0
  128. package/dist/index-CxETuRsG.js +1 -0
  129. package/dist/index-Cz-baGax.js +1 -0
  130. package/dist/index-D30apIn-.mjs +110 -0
  131. package/dist/index-DFQGVHTs.js +1 -0
  132. package/dist/index-DPd3waTN.js +1 -0
  133. package/dist/index-DRqJOqUR.mjs +3484 -0
  134. package/dist/index-DjWuIBxh.js +1 -0
  135. package/dist/index-Dnn2SCSl.js +1 -0
  136. package/dist/index-Dpl9sU6a.mjs +12 -0
  137. package/dist/index-DrXxXB2F.mjs +138 -0
  138. package/dist/index-G7cIlnGN.js +158 -0
  139. package/dist/index-R2oUDsjx.js +1 -0
  140. package/dist/index-RLz1QPrf.mjs +203 -0
  141. package/dist/index-UtjLbLw-.js +1 -0
  142. package/dist/index-V78huaSJ.mjs +442 -0
  143. package/dist/index-cOnxXTbF.mjs +24 -0
  144. package/dist/index-hlylYYgy.mjs +24 -0
  145. package/dist/index-ijdf0d9-.js +1 -0
  146. package/dist/index-vHmvbEwa.js +35 -0
  147. package/dist/index-wjkEPsNx.mjs +2940 -0
  148. package/dist/index.cjs.js +1 -1
  149. package/dist/index.mjs +806 -1095
  150. package/dist/interpolation-CHn59tIC.js +1 -0
  151. package/dist/interpolation-w7IRDJwK.mjs +180 -0
  152. package/dist/orders-C65SlpJy.mjs +618 -0
  153. package/dist/orders-XVzWAgG1.js +1 -0
  154. package/dist/payment-C3ohkehF.mjs +1080 -0
  155. package/dist/payment-Dfr-Ro-a.js +1 -0
  156. package/dist/regular-1LXNPviB.js +1 -0
  157. package/dist/regular-_05oq5Tx.mjs +1101 -0
  158. package/dist/resources-CYOb5Bl6.mjs +811 -0
  159. package/dist/resources-CxeFd57z.js +1 -0
  160. package/dist/server-handlers.cjs.js +1 -1
  161. package/dist/server-handlers.mjs +996 -1049
  162. package/dist/src/appointments/chat-components/AgendaOpeningHoursCard.vue.d.ts +15 -0
  163. package/dist/src/appointments/chat-components/AppointmentDetailsCard.vue.d.ts +14 -0
  164. package/dist/src/appointments/chat-components/AppointmentEditor.vue.d.ts +14 -0
  165. package/dist/src/appointments/chat-components/AppointmentListTable.vue.d.ts +14 -0
  166. package/dist/src/appointments/components/create/StepNavigation.vue.d.ts +32 -0
  167. package/dist/src/appointments/components/create/regular/Step1.vue.d.ts +2 -0
  168. package/dist/src/appointments/components/create/regular/Step2.vue.d.ts +2 -0
  169. package/dist/src/appointments/components/create/regular/Step3.vue.d.ts +2 -0
  170. package/dist/src/appointments/components/create/regular/Step4.vue.d.ts +2 -0
  171. package/dist/src/appointments/components/edit/CustomerInformationFieldEditorDialog.vue.d.ts +24 -0
  172. package/dist/src/appointments/components/edit/EditLayout.vue.d.ts +17 -0
  173. package/dist/src/appointments/components/edit/Event24hSidebar.vue.d.ts +2 -0
  174. package/dist/src/appointments/components/edit/EventDialog/ApproveReservationDialog.vue.d.ts +8 -0
  175. package/dist/src/appointments/components/edit/EventDialog/BookingsList.vue.d.ts +136 -0
  176. package/dist/src/appointments/components/edit/EventDialog/CancelReservationDialog.vue.d.ts +8 -0
  177. package/dist/src/appointments/components/edit/EventDialog/EventDialog.vue.d.ts +11 -0
  178. package/dist/src/appointments/components/edit/EventDialog/OrderDetailDialog.vue.d.ts +55 -0
  179. package/dist/src/appointments/components/edit/EventDialog/RejectReservationDialog.vue.d.ts +8 -0
  180. package/dist/src/appointments/components/edit/EventDialog/ReservationDetailDialog.vue.d.ts +87 -0
  181. package/dist/src/appointments/components/edit/EventDialog/TimelineChart.vue.d.ts +24 -0
  182. package/dist/src/appointments/components/edit/EventDialog/TransferReservationDialog.vue.d.ts +4 -0
  183. package/dist/src/appointments/components/edit/EventTimeIndicator.vue.d.ts +12 -0
  184. package/dist/src/appointments/components/edit/EventTimeline.vue.d.ts +48 -0
  185. package/dist/src/appointments/components/edit/EventView.vue.d.ts +9 -0
  186. package/dist/src/appointments/components/edit/ExceptionDialog.vue.d.ts +29 -0
  187. package/dist/src/appointments/components/edit/MetadataSchemaEditorDialog.vue.d.ts +12 -0
  188. package/dist/src/appointments/components/edit/NewReservationDialog/CustomerInformation.vue.d.ts +10 -0
  189. package/dist/src/appointments/components/edit/NewReservationDialog/NewReservationDialog.vue.d.ts +26 -0
  190. package/dist/src/appointments/components/edit/NewReservationDialog/QuickReservationAdder.vue.d.ts +26 -0
  191. package/dist/src/appointments/components/edit/NewReservationDialog/ReservationLines.vue.d.ts +31 -0
  192. package/dist/src/appointments/components/edit/OrderMetadataDisplay.vue.d.ts +21 -0
  193. package/dist/src/appointments/components/edit/PaymentAddons/Addon.vue.d.ts +22 -0
  194. package/dist/src/appointments/components/edit/PaymentAddons/AddonList.vue.d.ts +5 -0
  195. package/dist/src/appointments/components/edit/PaymentAddons/index.vue.d.ts +15 -0
  196. package/dist/src/appointments/components/edit/ResourceEditorDialog.vue.d.ts +13 -0
  197. package/dist/src/appointments/components/edit/dashboard/Timeline.vue.d.ts +36 -0
  198. package/dist/src/appointments/components/edit/dashboard/timeline/ResourceSelector.vue.d.ts +50 -0
  199. package/dist/src/appointments/index.d.ts +12 -9
  200. package/dist/src/appointments/index.vue.d.ts +22 -0
  201. package/dist/src/appointments/metadata.d.ts +1 -1
  202. package/dist/src/appointments/pages/Overview.vue.d.ts +4 -0
  203. package/dist/src/appointments/pages/create/index.vue.d.ts +2 -0
  204. package/dist/src/appointments/pages/create/regular.vue.d.ts +6 -0
  205. package/dist/src/appointments/pages/edit/agenda.vue.d.ts +4 -0
  206. package/dist/src/appointments/pages/edit/availability.vue.d.ts +2 -0
  207. package/dist/src/appointments/pages/edit/booking-data.vue.d.ts +65 -0
  208. package/dist/src/appointments/pages/edit/index.vue.d.ts +2 -0
  209. package/dist/src/appointments/pages/edit/payment.vue.d.ts +2 -0
  210. package/dist/src/appointments/pages/edit/resources.vue.d.ts +28 -0
  211. package/dist/src/appointments/routes.d.ts +6 -3
  212. package/dist/src/contentManager/components/components/ComponentDialog.vue.d.ts +12 -0
  213. package/dist/src/contentManager/components/components/ComponentGridItem.vue.d.ts +16 -0
  214. package/dist/src/contentManager/components/content-editor/ApiDocs.vue.d.ts +2 -0
  215. package/dist/src/contentManager/components/content-editor/ContentLayout.vue.d.ts +49 -0
  216. package/dist/src/contentManager/components/content-editor/ContentSettings.vue.d.ts +24 -0
  217. package/dist/src/contentManager/components/content-editor/ContentStructuredContentSections.vue.d.ts +4 -0
  218. package/dist/src/contentManager/components/content-editor/Header.vue.d.ts +64 -0
  219. package/dist/src/contentManager/components/content-editor/LivePreviewWrapper.vue.d.ts +53 -0
  220. package/dist/src/contentManager/components/content-editor/Locales.vue.d.ts +44 -0
  221. package/dist/src/contentManager/components/content-editor/NewSectionDialog.vue.d.ts +21 -0
  222. package/dist/src/contentManager/components/content-editor/PageSettings.vue.d.ts +2 -0
  223. package/dist/src/contentManager/components/content-editor/SEO.vue.d.ts +14 -0
  224. package/dist/src/contentManager/components/content-editor/SidebarSectionWrapper.vue.d.ts +39 -0
  225. package/dist/src/contentManager/components/content-editor/Status.vue.d.ts +2 -0
  226. package/dist/src/contentManager/components/content-editor/Versions.vue.d.ts +63 -0
  227. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Button.vue.d.ts +94 -0
  228. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Card.vue.d.ts +92 -0
  229. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Column.vue.d.ts +92 -0
  230. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Container.vue.d.ts +92 -0
  231. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Divider.vue.d.ts +92 -0
  232. package/dist/src/contentManager/components/content-editor/tiptap-extensions/EmptySpace.vue.d.ts +94 -0
  233. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Heading.vue.d.ts +92 -0
  234. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Image.vue.d.ts +92 -0
  235. package/dist/src/contentManager/components/content-editor/tiptap-extensions/LockBlocks.d.ts +0 -15
  236. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Map.vue.d.ts +92 -0
  237. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Paragraph.vue.d.ts +92 -0
  238. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Row.vue.d.ts +115 -0
  239. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Stack.vue.d.ts +115 -0
  240. package/dist/src/contentManager/components/content-editor/tiptap-extensions/TrailingNodeInContainers.d.ts +1 -4
  241. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Video.vue.d.ts +92 -0
  242. package/dist/src/contentManager/components/content-editor/tiptap-extensions/extension-details/DetailsNodeView.vue.d.ts +92 -0
  243. package/dist/src/contentManager/components/content-editor/tiptap-extensions/helpers/NodeLabel.vue.d.ts +108 -0
  244. package/dist/src/contentManager/components/content-editor/tiptap-extensions/helpers/ResizeHandlers.vue.d.ts +20 -0
  245. package/dist/src/contentManager/components/content-editor/tiptap-extensions/helpers/TopMarginDragger.vue.d.ts +104 -0
  246. package/dist/src/contentManager/components/content-editor/tiptap-menus/BubbleMenuClassBuilder.vue.d.ts +19 -0
  247. package/dist/src/contentManager/components/content-editor/tiptap-menus/BubbleMenuLinkBuilder.vue.d.ts +19 -0
  248. package/dist/src/contentManager/components/content-editor/tiptap-menus/BubbleMenuToggleButton.vue.d.ts +29 -0
  249. package/dist/src/contentManager/components/content-editor/tiptap-menus/DefaultBubbleMenu.vue.d.ts +13 -0
  250. package/dist/src/contentManager/components/content-editor/tiptap-menus/ElementEditorMenu.vue.d.ts +19 -0
  251. package/dist/src/contentManager/components/content-editor/tiptap-menus/EmojiMenu.vue.d.ts +8 -0
  252. package/dist/src/contentManager/components/content-editor/tiptap-menus/NewNodeView.vue.d.ts +47 -0
  253. package/dist/src/contentManager/components/content-editor/tiptap-menus/SlashMenu.vue.d.ts +6 -0
  254. package/dist/src/contentManager/components/content-editor/tiptap-menus/SlashMenuButton.vue.d.ts +17 -0
  255. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/ButtonMenu.vue.d.ts +13 -0
  256. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/CardMenu.vue.d.ts +13 -0
  257. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/ColumnMenu.vue.d.ts +13 -0
  258. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/DividerMenu.vue.d.ts +13 -0
  259. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/EmptySpaceMenu.vue.d.ts +13 -0
  260. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/HeadingMenu.vue.d.ts +13 -0
  261. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/ImageMenu.vue.d.ts +13 -0
  262. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/MapMenu.vue.d.ts +13 -0
  263. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/RowMenu.vue.d.ts +13 -0
  264. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/StackMenu.vue.d.ts +13 -0
  265. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/TextMenu.vue.d.ts +13 -0
  266. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/VideoMenu.vue.d.ts +13 -0
  267. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/index.d.ts +132 -12
  268. package/dist/src/contentManager/components/overview/CollectionDialog.vue.d.ts +30 -0
  269. package/dist/src/contentManager/components/overview/CollectionsGridView.vue.d.ts +18 -0
  270. package/dist/src/contentManager/components/overview/ContentEntryContextMenu.vue.d.ts +27 -0
  271. package/dist/src/contentManager/components/overview/FilterPopover.vue.d.ts +2 -0
  272. package/dist/src/contentManager/components/overview/ListView.vue.d.ts +12 -0
  273. package/dist/src/contentManager/components/styling/ButtonStyleDialog.vue.d.ts +24 -0
  274. package/dist/src/contentManager/components/styling/CardStyleDialog.vue.d.ts +24 -0
  275. package/dist/src/contentManager/components/styling/SectionStyleDialog.vue.d.ts +24 -0
  276. package/dist/src/contentManager/index.d.ts +14 -5
  277. package/dist/src/contentManager/index.vue.d.ts +22 -0
  278. package/dist/src/contentManager/metadata.d.ts +1 -1
  279. package/dist/src/contentManager/pages/Components.vue.d.ts +27 -0
  280. package/dist/src/contentManager/pages/ContentEditor.vue.d.ts +14 -0
  281. package/dist/src/contentManager/pages/Entries.vue.d.ts +16 -0
  282. package/dist/src/contentManager/pages/GlobalStyling.vue.d.ts +117 -0
  283. package/dist/src/contentManager/pages/Overview.vue.d.ts +57 -0
  284. package/dist/src/contentManager/routes.d.ts +12 -3
  285. package/dist/src/custom/index.d.ts +2 -2
  286. package/dist/src/custom/index.vue.d.ts +2 -0
  287. package/dist/src/custom/pages/View.vue.d.ts +2 -0
  288. package/dist/src/custom/routes.d.ts +1 -1
  289. package/dist/src/googleAnalytics/chat-components/CountryBreakdownCard.vue.d.ts +14 -0
  290. package/dist/src/googleAnalytics/chat-components/DeviceBreakdownCard.vue.d.ts +14 -0
  291. package/dist/src/googleAnalytics/chat-components/PeakHoursCard.vue.d.ts +14 -0
  292. package/dist/src/googleAnalytics/chat-components/RealtimeCard.vue.d.ts +14 -0
  293. package/dist/src/googleAnalytics/chat-components/SearchTermsCard.vue.d.ts +14 -0
  294. package/dist/src/googleAnalytics/chat-components/TopPagesCard.vue.d.ts +14 -0
  295. package/dist/src/googleAnalytics/chat-components/TrafficSourcesCard.vue.d.ts +14 -0
  296. package/dist/src/googleAnalytics/chat-components/VisitorStatsCard.vue.d.ts +14 -0
  297. package/dist/src/googleAnalytics/components/seo-health/SeoClicksChart.vue.d.ts +5 -0
  298. package/dist/src/googleAnalytics/components/seo-health/SeoImpressionsChart.vue.d.ts +5 -0
  299. package/dist/src/googleAnalytics/components/seo-health/SeoKeywordsTab.vue.d.ts +5 -0
  300. package/dist/src/googleAnalytics/components/seo-health/SeoKpiCards.vue.d.ts +10 -0
  301. package/dist/src/googleAnalytics/components/seo-health/SeoMappingTab.vue.d.ts +5 -0
  302. package/dist/src/googleAnalytics/components/seo-health/SeoPagesTab.vue.d.ts +5 -0
  303. package/dist/src/googleAnalytics/components/seo-health/SeoRankingDistribution.vue.d.ts +5 -0
  304. package/dist/src/googleAnalytics/index.d.ts +10 -10
  305. package/dist/src/googleAnalytics/index.vue.d.ts +2 -0
  306. package/dist/src/googleAnalytics/pages/Acquisition.vue.d.ts +2 -0
  307. package/dist/src/googleAnalytics/pages/Audience.vue.d.ts +2 -0
  308. package/dist/src/googleAnalytics/pages/Content.vue.d.ts +2 -0
  309. package/dist/src/googleAnalytics/pages/Overview.vue.d.ts +2 -0
  310. package/dist/src/googleAnalytics/pages/SeoHealth.vue.d.ts +2 -0
  311. package/dist/src/googleAnalytics/routes.d.ts +1 -1
  312. package/dist/src/mailTemplates/components/TemplateList.vue.d.ts +2 -0
  313. package/dist/src/mailTemplates/index.d.ts +3 -3
  314. package/dist/src/mailTemplates/index.vue.d.ts +22 -0
  315. package/dist/src/mailTemplates/metadata.d.ts +1 -1
  316. package/dist/src/mailTemplates/pages/Detail.vue.d.ts +14 -0
  317. package/dist/src/mailTemplates/pages/Overview.vue.d.ts +14 -0
  318. package/dist/src/mailTemplates/routes.d.ts +1 -1
  319. package/dist/src/productCollections/components/detail/Main.vue.d.ts +2 -0
  320. package/dist/src/productCollections/components/detail/SEO.vue.d.ts +2 -0
  321. package/dist/src/productCollections/components/detail/Status.vue.d.ts +2 -0
  322. package/dist/src/productCollections/components/overview/ListView.vue.d.ts +12 -0
  323. package/dist/src/productCollections/index.d.ts +3 -3
  324. package/dist/src/productCollections/index.vue.d.ts +22 -0
  325. package/dist/src/productCollections/metadata.d.ts +1 -1
  326. package/dist/src/productCollections/pages/Detail.vue.d.ts +14 -0
  327. package/dist/src/productCollections/pages/Overview.vue.d.ts +16 -0
  328. package/dist/src/productCollections/routes.d.ts +1 -1
  329. package/dist/src/products/chat-components/ProductDetailsCard.vue.d.ts +14 -0
  330. package/dist/src/products/components/detail/Collections.vue.d.ts +14 -0
  331. package/dist/src/products/components/detail/Inventory.vue.d.ts +2 -0
  332. package/dist/src/products/components/detail/Main.vue.d.ts +2 -0
  333. package/dist/src/products/components/detail/NewSection.vue.d.ts +2 -0
  334. package/dist/src/products/components/detail/Price.vue.d.ts +2 -0
  335. package/dist/src/products/components/detail/SEO.vue.d.ts +2 -0
  336. package/dist/src/products/components/detail/Shipping.vue.d.ts +2 -0
  337. package/dist/src/products/components/detail/Status.vue.d.ts +2 -0
  338. package/dist/src/products/components/detail/price/UnitPriceDialog.vue.d.ts +17 -0
  339. package/dist/src/products/components/detail/variants/Option.vue.d.ts +33 -0
  340. package/dist/src/products/components/detail/variants/VariantList.vue.d.ts +38 -0
  341. package/dist/src/products/components/overview/FilterPopover.vue.d.ts +2 -0
  342. package/dist/src/products/components/overview/GridView.vue.d.ts +12 -0
  343. package/dist/src/products/components/overview/ListView.vue.d.ts +12 -0
  344. package/dist/src/products/components/overview/ProductContextMenu.vue.d.ts +27 -0
  345. package/dist/src/products/index.d.ts +4 -4
  346. package/dist/src/products/index.vue.d.ts +22 -0
  347. package/dist/src/products/metadata.d.ts +1 -1
  348. package/dist/src/products/pages/Detail.vue.d.ts +14 -0
  349. package/dist/src/products/pages/Overview.vue.d.ts +16 -0
  350. package/dist/src/products/routes.d.ts +1 -1
  351. package/dist/src/promoCodes/components/create/DateRange.vue.d.ts +2 -0
  352. package/dist/src/promoCodes/components/create/MultiCodes.vue.d.ts +2 -0
  353. package/dist/src/promoCodes/components/create/Note.vue.d.ts +2 -0
  354. package/dist/src/promoCodes/components/create/SingleCode.vue.d.ts +2 -0
  355. package/dist/src/promoCodes/components/create/TypeAndValue/TypeDetailDialog.vue.d.ts +6 -0
  356. package/dist/src/promoCodes/components/create/TypeAndValue/TypeManageDialog.vue.d.ts +18 -0
  357. package/dist/src/promoCodes/components/create/TypeAndValue/index.vue.d.ts +2 -0
  358. package/dist/src/promoCodes/index.d.ts +3 -3
  359. package/dist/src/promoCodes/index.vue.d.ts +22 -0
  360. package/dist/src/promoCodes/metadata.d.ts +1 -1
  361. package/dist/src/promoCodes/pages/Create.vue.d.ts +16 -0
  362. package/dist/src/promoCodes/pages/Detail.vue.d.ts +14 -0
  363. package/dist/src/promoCodes/pages/Find.vue.d.ts +16 -0
  364. package/dist/src/promoCodes/routes.d.ts +1 -1
  365. package/dist/src/push-notifications/components/PreviewAndroid.vue.d.ts +28 -0
  366. package/dist/src/push-notifications/components/PreviewIPhone.vue.d.ts +28 -0
  367. package/dist/src/push-notifications/components/PushPreview.vue.d.ts +28 -0
  368. package/dist/src/push-notifications/index.d.ts +3 -3
  369. package/dist/src/push-notifications/index.vue.d.ts +22 -0
  370. package/dist/src/push-notifications/metadata.d.ts +1 -1
  371. package/dist/src/push-notifications/pages/SendPush.vue.d.ts +14 -0
  372. package/dist/src/push-notifications/routes.d.ts +1 -1
  373. package/dist/src/shared/BrandLogo.vue.d.ts +12 -0
  374. package/dist/src/shared/DrawerToggle.vue.d.ts +60 -0
  375. package/dist/src/shared/VerticalToggle.vue.d.ts +60 -0
  376. package/dist/src/shippingOptions/components/detail/Condition.vue.d.ts +2 -0
  377. package/dist/src/shippingOptions/components/detail/Countries.vue.d.ts +2 -0
  378. package/dist/src/shippingOptions/components/detail/Example.vue.d.ts +2 -0
  379. package/dist/src/shippingOptions/components/detail/Main.vue.d.ts +2 -0
  380. package/dist/src/shippingOptions/components/overview/ListView.vue.d.ts +12 -0
  381. package/dist/src/shippingOptions/index.d.ts +3 -3
  382. package/dist/src/shippingOptions/index.vue.d.ts +22 -0
  383. package/dist/src/shippingOptions/metadata.d.ts +1 -1
  384. package/dist/src/shippingOptions/pages/Detail.vue.d.ts +14 -0
  385. package/dist/src/shippingOptions/pages/Overview.vue.d.ts +16 -0
  386. package/dist/src/shippingOptions/routes.d.ts +1 -1
  387. package/dist/src/table/components/DataTable.vue.d.ts +18 -0
  388. package/dist/src/table/components/DataTableAction.vue.d.ts +14 -0
  389. package/dist/src/table/components/DataTableMobileRowActionDrawer.vue.d.ts +4 -0
  390. package/dist/src/table/components/DataTablePagination.vue.d.ts +6 -0
  391. package/dist/src/table/components/actions/ActionDialog.vue.d.ts +19 -0
  392. package/dist/src/table/components/actions/CtaActionDialog.vue.d.ts +4 -0
  393. package/dist/src/table/components/columns/ColumnDropdown.vue.d.ts +2 -0
  394. package/dist/src/table/components/columns/ColumnEditorDialog.vue.d.ts +34 -0
  395. package/dist/src/table/components/columns/DialogTableColumnItem.vue.d.ts +12 -0
  396. package/dist/src/table/components/date-range-filter/DateRangeFilter.vue.d.ts +2 -0
  397. package/dist/src/table/components/date-range-filter/DateRangeSettingsDialog.vue.d.ts +27 -0
  398. package/dist/src/table/components/filters/FilterDialog.vue.d.ts +12 -0
  399. package/dist/src/table/components/filters/Filters.vue.d.ts +27 -0
  400. package/dist/src/table/components/search/Search.vue.d.ts +2 -0
  401. package/dist/src/table/components/sort/SortMode.vue.d.ts +2 -0
  402. package/dist/src/table/components/sort/SortModeSettingsDialog.vue.d.ts +18 -0
  403. package/dist/src/table/components/stats/StatDialog.vue.d.ts +12 -0
  404. package/dist/src/table/components/stats/Stats.vue.d.ts +27 -0
  405. package/dist/src/table/flow-builder-extensions/TableRowEditor.vue.d.ts +16 -0
  406. package/dist/src/table/flow-builder-extensions/row-item.d.ts +17 -3
  407. package/dist/src/table/index.d.ts +2 -2
  408. package/dist/src/table/index.vue.d.ts +22 -0
  409. package/dist/src/table/pages/TableView.vue.d.ts +54 -0
  410. package/dist/src/table/routes.d.ts +1 -1
  411. package/dist/src/types/index.d.ts +0 -6
  412. package/dist/utils-CanmrIWO.mjs +47 -0
  413. package/dist/utils-Yd6F5mea.js +3 -0
  414. package/dist/vee-validate-zod-ByykgYKJ.js +1 -0
  415. package/dist/vee-validate-zod-DNjTLCgh.mjs +4402 -0
  416. package/package.json +56 -55
  417. package/dist/Acquisition-DypEyPSO.js +0 -1
  418. package/dist/Acquisition-TCNX-th6.mjs +0 -308
  419. package/dist/AgendaOpeningHoursCard-BIhm0vpV.js +0 -1
  420. package/dist/AgendaOpeningHoursCard-BKUdJxRI.mjs +0 -133
  421. package/dist/AppointmentDetailsCard-C5rQ5jsW.js +0 -1
  422. package/dist/AppointmentDetailsCard-NRHeNP2L.mjs +0 -111
  423. package/dist/AppointmentEditor-BcF8CiD-.mjs +0 -150
  424. package/dist/AppointmentEditor-BlhFtoCm.js +0 -1
  425. package/dist/AppointmentListTable-B-ReBVtV.js +0 -1
  426. package/dist/AppointmentListTable-DHmy-iid.mjs +0 -129
  427. package/dist/Audience-CfWHjjg8.mjs +0 -394
  428. package/dist/Audience-Cj4TyauW.js +0 -1
  429. package/dist/Components-BehelN4r.js +0 -1
  430. package/dist/Components-CR6zukUU.mjs +0 -468
  431. package/dist/Content-C5Iye3t0.mjs +0 -257
  432. package/dist/Content-eOfBx52Y.js +0 -1
  433. package/dist/ContentEditor-BgL4qEeg.mjs +0 -26835
  434. package/dist/ContentEditor-Tlu3w0Hu.js +0 -462
  435. package/dist/CountryBreakdownCard-CWVyB8be.mjs +0 -151
  436. package/dist/CountryBreakdownCard-Db-pMiNe.js +0 -1
  437. package/dist/Create-B1it8S4m.js +0 -1
  438. package/dist/Create-DbYi0FAI.mjs +0 -907
  439. package/dist/DateFormatter-DLrDYkby.mjs +0 -630
  440. package/dist/DateFormatter-Dni0Oq8r.js +0 -1
  441. package/dist/Detail-D-eahJGO.mjs +0 -21
  442. package/dist/Detail-D0kdPPIm.mjs +0 -2757
  443. package/dist/Detail-DAafePYi.mjs +0 -485
  444. package/dist/Detail-DYpv4fYg.js +0 -1
  445. package/dist/Detail-Dc_ui4LM.js +0 -1
  446. package/dist/Detail-DccUekl_.js +0 -1
  447. package/dist/Detail-Dhz0V0Vf.js +0 -1
  448. package/dist/Detail-DjnGY0F8.mjs +0 -282
  449. package/dist/Detail-DplAitHg.mjs +0 -447
  450. package/dist/Detail-SugyeSxb.js +0 -1
  451. package/dist/DeviceBreakdownCard-CzxZT6To.js +0 -1
  452. package/dist/DeviceBreakdownCard-eEwPjzKl.mjs +0 -115
  453. package/dist/EditLayout-Bnz9q_jd.js +0 -1
  454. package/dist/EditLayout-J_DGXb8v.mjs +0 -99
  455. package/dist/Entries-CgpWg6fE.js +0 -1
  456. package/dist/Entries-CkGTXcAq.mjs +0 -575
  457. package/dist/Find-Bz0TNJzk.mjs +0 -164
  458. package/dist/Find-D-ItTXaZ.js +0 -1
  459. package/dist/GlobalStyling-CSQPF7o_.mjs +0 -1162
  460. package/dist/GlobalStyling-DabldMZh.js +0 -15
  461. package/dist/NewReservationDialog-BhIiY2B9.js +0 -1
  462. package/dist/NewReservationDialog-CN49aGcM.mjs +0 -1002
  463. package/dist/OrderDetailDialog-BJ01DZFe.js +0 -1
  464. package/dist/OrderDetailDialog-CoVQ_rzs.mjs +0 -215
  465. package/dist/Overview-9FMgn5hT.mjs +0 -492
  466. package/dist/Overview-BOOwMQ-c.mjs +0 -636
  467. package/dist/Overview-Biz3h60w.js +0 -1
  468. package/dist/Overview-C2K2ofdS.js +0 -1
  469. package/dist/Overview-CFHOXP9N.mjs +0 -123
  470. package/dist/Overview-CTJe7J5_.js +0 -1
  471. package/dist/Overview-Cvj2i9eW.js +0 -1
  472. package/dist/Overview-D2I1F8Dm.mjs +0 -21
  473. package/dist/Overview-DFOc9emt.mjs +0 -345
  474. package/dist/Overview-Dmhfb94Y.js +0 -1
  475. package/dist/Overview-PPzv7weG.mjs +0 -450
  476. package/dist/Overview-qFKcXHVF.js +0 -1
  477. package/dist/Overview-xkmYYTae.mjs +0 -133
  478. package/dist/Overview-yPsLvR2c.js +0 -1
  479. package/dist/PeakHoursCard-CtgEP-ez.mjs +0 -157
  480. package/dist/PeakHoursCard-DPeoMyhu.js +0 -1
  481. package/dist/ProductDetailsCard-B0WhmzO-.mjs +0 -98
  482. package/dist/ProductDetailsCard-C1ROuH6l.js +0 -1
  483. package/dist/RealtimeCard-DQno-Okz.js +0 -1
  484. package/dist/RealtimeCard-dR-g1iDo.mjs +0 -92
  485. package/dist/ReservationDetailDialog-Cdo6h0RD.mjs +0 -2163
  486. package/dist/ReservationDetailDialog-DZTFD2xI.js +0 -349
  487. package/dist/SearchTermsCard-BXJSXz_k.js +0 -1
  488. package/dist/SearchTermsCard-DsaxLKwP.mjs +0 -146
  489. package/dist/SendPush-Bssi-OZD.mjs +0 -150
  490. package/dist/SendPush-BuaYboRH.js +0 -1
  491. package/dist/SeoHealth-CP-kL0us.js +0 -1
  492. package/dist/SeoHealth-Cxp_Gb3Y.mjs +0 -459
  493. package/dist/TableView-7iwBkQ_k.mjs +0 -4757
  494. package/dist/TableView-BB_oIYYZ.js +0 -4
  495. package/dist/TemplateList-CNcM_Kgq.mjs +0 -56
  496. package/dist/TemplateList-VuPcBUJO.js +0 -1
  497. package/dist/TopPagesCard-CvDECn3_.mjs +0 -117
  498. package/dist/TopPagesCard-DNdATXJE.js +0 -1
  499. package/dist/TrafficSourcesCard-BLpBr7u0.mjs +0 -151
  500. package/dist/TrafficSourcesCard-_3gRUCw3.js +0 -1
  501. package/dist/View-DSnUHI7h.mjs +0 -30
  502. package/dist/View-Dbcfpdqh.js +0 -1
  503. package/dist/VisitorStatsCard-CFEnXSjF.mjs +0 -185
  504. package/dist/VisitorStatsCard-C_jhQxDW.js +0 -1
  505. package/dist/_plugin-vue_export-helper-5u7tqpWC.js +0 -1
  506. package/dist/_plugin-vue_export-helper-BJQSo0im.mjs +0 -8
  507. package/dist/agenda-CzMRcQTA.mjs +0 -989
  508. package/dist/agenda-D4zWRYSQ.js +0 -1
  509. package/dist/appointments-9syR5TZE.js +0 -1
  510. package/dist/appointments-BBmOJMhM.mjs +0 -23
  511. package/dist/array-BH1uH7XT.js +0 -1
  512. package/dist/array-DnDL9cFz.mjs +0 -98
  513. package/dist/availability-CAXB7Yd6.js +0 -1
  514. package/dist/availability-Dp7eF-ZK.mjs +0 -215
  515. package/dist/booking-data-Bysf6e5x.mjs +0 -724
  516. package/dist/booking-data-C6SGjC2X.js +0 -1
  517. package/dist/chunk-DQi1bQcV.js +0 -1
  518. package/dist/contentManager-D7JxXCwE.js +0 -1
  519. package/dist/contentManager-tfy0x1LD.mjs +0 -22
  520. package/dist/context-AQKfnJ4t.mjs +0 -3809
  521. package/dist/context-ubyMq9Xe.js +0 -54
  522. package/dist/core-Dhgr4ctC.mjs +0 -202
  523. package/dist/core-_HKfBlaZ.js +0 -1
  524. package/dist/countries-MXLT3mVe.mjs +0 -4
  525. package/dist/countries-OCd5qPxG.js +0 -1
  526. package/dist/create-BfNc2C7N.js +0 -1
  527. package/dist/create-C7JlIlIh.mjs +0 -95
  528. package/dist/custom-BwN9-6Mb.js +0 -1
  529. package/dist/custom-INNwaWla.mjs +0 -13
  530. package/dist/dist-BCVg7FKM.js +0 -1
  531. package/dist/dist-DIhK9VWh.mjs +0 -3045
  532. package/dist/edit-BiI2VG60.js +0 -35
  533. package/dist/edit-DD3iFBEh.mjs +0 -1097
  534. package/dist/exceptions-DICMaDcH.mjs +0 -462
  535. package/dist/exceptions-DpWqMNuG.js +0 -1
  536. package/dist/google-Bcc4XZnV.mjs +0 -4
  537. package/dist/google-DTSRmJ51.js +0 -1
  538. package/dist/googleAnalytics-BSaqRR_L.js +0 -1
  539. package/dist/googleAnalytics-Cg-iWblZ.mjs +0 -47
  540. package/dist/interpolation-B8OzkMyi.mjs +0 -131
  541. package/dist/interpolation-DpAqtGOW.js +0 -1
  542. package/dist/lib-4wSi00Vr.js +0 -1
  543. package/dist/lib-BZgXUui5.mjs +0 -198
  544. package/dist/line-DJdnFNI7.js +0 -75
  545. package/dist/line-tYLnEDGV.mjs +0 -1500
  546. package/dist/mailTemplates-BNk8fhVS.mjs +0 -23
  547. package/dist/mailTemplates-DswHzyQe.js +0 -1
  548. package/dist/orders-CIc0JlKX.mjs +0 -512
  549. package/dist/orders-DwPSi_pD.js +0 -1
  550. package/dist/payment-BsNWFaDm.js +0 -1
  551. package/dist/payment-Ced5_dpa.mjs +0 -718
  552. package/dist/productCollections-Cuvw_8zC.js +0 -1
  553. package/dist/productCollections-D0AxRlzr.mjs +0 -23
  554. package/dist/products-DUD-ZMkR.mjs +0 -22
  555. package/dist/products-DvX9B-Ul.js +0 -1
  556. package/dist/promoCodes-BCWqN6w4.mjs +0 -23
  557. package/dist/promoCodes-CEZ4LYot.js +0 -1
  558. package/dist/push-notifications-BGp4XWo9.js +0 -1
  559. package/dist/push-notifications-C7W7KuzR.mjs +0 -23
  560. package/dist/regular-BCFrS6lK.mjs +0 -908
  561. package/dist/regular-DBqPgT8C.js +0 -1
  562. package/dist/resources-DwsMmWgm.mjs +0 -669
  563. package/dist/resources-Dz81GkHe.js +0 -1
  564. package/dist/shippingOptions-C3NEJff1.mjs +0 -23
  565. package/dist/shippingOptions-Cy040ZW1.js +0 -1
  566. package/dist/single-container-BJmmqq65.mjs +0 -468
  567. package/dist/single-container-Xoo0Xzxv.js +0 -58
  568. package/dist/src/vue-shim.d.ts +0 -7
  569. package/dist/table-DWw0fs3S.js +0 -1
  570. package/dist/table-LXt5DQOL.mjs +0 -23
  571. package/dist/utils-CVIHqQsU.js +0 -3
  572. package/dist/utils-h3owcMtS.mjs +0 -37
  573. package/dist/vee-validate-zod-BmXMJo8W.js +0 -1
  574. package/dist/vee-validate-zod-D9dZzbWZ.mjs +0 -4985
  575. package/dist/xy-container-CuQSwrtB.mjs +0 -3180
  576. package/dist/xy-container-_6YpscZh.js +0 -158
@@ -0,0 +1,1251 @@
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, d as te, e as Ue } from "./DateFormatter-DUxlo8X8.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
+ };