@ozdao/prometheus-framework 0.2.222 → 0.2.224

Sign up to get free protection for your applications and to get access to all the features.
Files changed (498) hide show
  1. package/dist/auth.server.js +4 -4
  2. package/dist/auth.server.mjs +4 -4
  3. package/dist/builder.js +53 -53
  4. package/dist/builder.mjs +53 -53
  5. package/dist/community.server.js +8 -3
  6. package/dist/community.server.mjs +8 -3
  7. package/dist/events.server.js +14 -24
  8. package/dist/events.server.mjs +14 -24
  9. package/dist/files.server.js +1 -1
  10. package/dist/files.server.mjs +1 -1
  11. package/dist/gallery.server.js +42 -76
  12. package/dist/gallery.server.mjs +41 -75
  13. package/dist/index-CsS7qx1d.js +243 -0
  14. package/dist/index-UIHE6Rk3.mjs +244 -0
  15. package/dist/node_modules/@capacitor/core/dist/index.cjs +529 -0
  16. package/dist/node_modules/@capacitor/core/dist/index.cjs.map +1 -0
  17. package/dist/node_modules/@capacitor/core/dist/index.js +530 -0
  18. package/dist/node_modules/@capacitor/core/dist/index.js.map +1 -0
  19. package/dist/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/definitions.cjs +51 -0
  20. package/dist/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/definitions.cjs.map +1 -0
  21. package/dist/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/definitions.js +55 -0
  22. package/dist/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/definitions.js.map +1 -0
  23. package/dist/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/index.cjs +25 -0
  24. package/dist/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/index.cjs.map +1 -0
  25. package/dist/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/index.js +13 -0
  26. package/dist/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/index.js.map +1 -0
  27. package/dist/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/web.cjs +67 -0
  28. package/dist/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/web.cjs.map +1 -0
  29. package/dist/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/web.js +67 -0
  30. package/dist/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/web.js.map +1 -0
  31. package/dist/node_modules/@unhead/shared/dist/index.cjs +7 -0
  32. package/dist/node_modules/@unhead/shared/dist/index.cjs.map +1 -0
  33. package/dist/node_modules/@unhead/shared/dist/index.js +7 -0
  34. package/dist/node_modules/@unhead/shared/dist/index.js.map +1 -0
  35. package/dist/node_modules/@unhead/ssr/dist/index.cjs +87 -0
  36. package/dist/node_modules/@unhead/ssr/dist/index.cjs.map +1 -0
  37. package/dist/node_modules/@unhead/ssr/dist/index.js +87 -0
  38. package/dist/node_modules/@unhead/ssr/dist/index.js.map +1 -0
  39. package/dist/orders.server.js +2 -2
  40. package/dist/orders.server.mjs +2 -2
  41. package/dist/organizations.server.js +149 -107
  42. package/dist/organizations.server.mjs +149 -107
  43. package/dist/pages.server.js +1 -1
  44. package/dist/pages.server.mjs +1 -1
  45. package/dist/products.server.js +119 -266
  46. package/dist/products.server.mjs +119 -266
  47. package/dist/prometheus-framework/node_modules/@vue/server-renderer/dist/server-renderer.esm-bundler.cjs +814 -0
  48. package/dist/prometheus-framework/node_modules/@vue/server-renderer/dist/server-renderer.esm-bundler.cjs.map +1 -0
  49. package/dist/prometheus-framework/node_modules/@vue/server-renderer/dist/server-renderer.esm-bundler.js +814 -0
  50. package/dist/prometheus-framework/node_modules/@vue/server-renderer/dist/server-renderer.esm-bundler.js.map +1 -0
  51. package/dist/prometheus-framework/node_modules/@vue/shared/dist/shared.esm-bundler.cjs +210 -0
  52. package/dist/prometheus-framework/node_modules/@vue/shared/dist/shared.esm-bundler.cjs.map +1 -0
  53. package/dist/prometheus-framework/node_modules/@vue/shared/dist/shared.esm-bundler.js +210 -0
  54. package/dist/prometheus-framework/node_modules/@vue/shared/dist/shared.esm-bundler.js.map +1 -0
  55. package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -2
  56. package/dist/prometheus-framework/src/components/Button/Button.vue.cjs.map +1 -1
  57. package/dist/prometheus-framework/src/components/Button/Button.vue.js +1 -2
  58. package/dist/prometheus-framework/src/components/Button/Button.vue.js.map +1 -1
  59. package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +0 -1
  60. package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs.map +1 -1
  61. package/dist/prometheus-framework/src/components/Button/Button.vue2.js +0 -1
  62. package/dist/prometheus-framework/src/components/Button/Button.vue2.js.map +1 -1
  63. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +25 -40
  64. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs.map +1 -1
  65. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +26 -41
  66. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js.map +1 -1
  67. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
  68. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +1 -1
  69. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.cjs +6 -8
  70. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.cjs.map +1 -1
  71. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.js +6 -8
  72. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.js.map +1 -1
  73. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
  74. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +1 -1
  75. package/dist/prometheus-framework/src/components/Slider/Slider.vue.cjs +1 -1
  76. package/dist/prometheus-framework/src/components/Slider/Slider.vue.js +1 -1
  77. package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.cjs +2 -1
  78. package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.cjs.map +1 -1
  79. package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.js +2 -1
  80. package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.js.map +1 -1
  81. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
  82. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
  83. package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.cjs +4 -4
  84. package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.js +4 -4
  85. package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterCode.vue.cjs +1 -1
  86. package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterCode.vue.js +1 -1
  87. package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.cjs +3 -3
  88. package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.js +3 -3
  89. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.cjs +3 -3
  90. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.js +3 -3
  91. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.cjs +3 -3
  92. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.js +3 -3
  93. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.cjs +4 -3
  94. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.cjs.map +1 -1
  95. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.js +4 -3
  96. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.js.map +1 -1
  97. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.cjs +3 -3
  98. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.js +3 -3
  99. package/dist/prometheus-framework/src/modules/auth/views/middlewares/auth.validation.cjs +5 -0
  100. package/dist/prometheus-framework/src/modules/auth/views/middlewares/auth.validation.cjs.map +1 -1
  101. package/dist/prometheus-framework/src/modules/auth/views/middlewares/auth.validation.js +5 -0
  102. package/dist/prometheus-framework/src/modules/auth/views/middlewares/auth.validation.js.map +1 -1
  103. package/dist/prometheus-framework/src/modules/auth/views/middlewares/ownership.validation.cjs +11 -0
  104. package/dist/prometheus-framework/src/modules/auth/views/middlewares/ownership.validation.cjs.map +1 -1
  105. package/dist/prometheus-framework/src/modules/auth/views/middlewares/ownership.validation.js +11 -0
  106. package/dist/prometheus-framework/src/modules/auth/views/middlewares/ownership.validation.js.map +1 -1
  107. package/dist/prometheus-framework/src/modules/auth/views/store/auth.cjs +37 -35
  108. package/dist/prometheus-framework/src/modules/auth/views/store/auth.cjs.map +1 -1
  109. package/dist/prometheus-framework/src/modules/auth/views/store/auth.js +33 -31
  110. package/dist/prometheus-framework/src/modules/auth/views/store/auth.js.map +1 -1
  111. package/dist/prometheus-framework/src/modules/auth/views/store/twofa.cjs +3 -5
  112. package/dist/prometheus-framework/src/modules/auth/views/store/twofa.cjs.map +1 -1
  113. package/dist/prometheus-framework/src/modules/auth/views/store/twofa.js +2 -4
  114. package/dist/prometheus-framework/src/modules/auth/views/store/twofa.js.map +1 -1
  115. package/dist/prometheus-framework/src/modules/auth/views/validations/inputs.validation.cjs +8 -5
  116. package/dist/prometheus-framework/src/modules/auth/views/validations/inputs.validation.cjs.map +1 -1
  117. package/dist/prometheus-framework/src/modules/auth/views/validations/inputs.validation.js +8 -5
  118. package/dist/prometheus-framework/src/modules/auth/views/validations/inputs.validation.js.map +1 -1
  119. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +6 -3
  120. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs.map +1 -1
  121. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +6 -3
  122. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js.map +1 -1
  123. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +50 -35
  124. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs.map +1 -1
  125. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +55 -40
  126. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js.map +1 -1
  127. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +3 -3
  128. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +3 -3
  129. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +2 -2
  130. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs.map +1 -1
  131. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
  132. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js.map +1 -1
  133. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +16 -15
  134. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs.map +1 -1
  135. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +16 -15
  136. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js.map +1 -1
  137. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +2 -2
  138. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +2 -2
  139. package/dist/prometheus-framework/src/modules/community/router/blogposts.cjs +46 -49
  140. package/dist/prometheus-framework/src/modules/community/router/blogposts.cjs.map +1 -1
  141. package/dist/prometheus-framework/src/modules/community/router/blogposts.js +46 -49
  142. package/dist/prometheus-framework/src/modules/community/router/blogposts.js.map +1 -1
  143. package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs +13 -20
  144. package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs.map +1 -1
  145. package/dist/prometheus-framework/src/modules/community/store/blogposts.js +9 -16
  146. package/dist/prometheus-framework/src/modules/community/store/blogposts.js.map +1 -1
  147. package/dist/prometheus-framework/src/modules/community/store/reactions.cjs +5 -9
  148. package/dist/prometheus-framework/src/modules/community/store/reactions.cjs.map +1 -1
  149. package/dist/prometheus-framework/src/modules/community/store/reactions.js +1 -5
  150. package/dist/prometheus-framework/src/modules/community/store/reactions.js.map +1 -1
  151. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
  152. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +1 -1
  153. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +30 -55
  154. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs.map +1 -1
  155. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +31 -56
  156. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js.map +1 -1
  157. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  158. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
  159. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +164 -135
  160. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs.map +1 -1
  161. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +165 -136
  162. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js.map +1 -1
  163. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +2 -2
  164. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +2 -2
  165. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +124 -135
  166. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs.map +1 -1
  167. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +133 -144
  168. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js.map +1 -1
  169. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs.map +1 -1
  170. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js.map +1 -1
  171. package/dist/prometheus-framework/src/modules/events/components/pages/EventsBackoffice.vue.cjs +96 -0
  172. package/dist/prometheus-framework/src/modules/events/components/pages/EventsBackoffice.vue.cjs.map +1 -0
  173. package/dist/prometheus-framework/src/modules/events/components/pages/EventsBackoffice.vue.js +96 -0
  174. package/dist/prometheus-framework/src/modules/events/components/pages/EventsBackoffice.vue.js.map +1 -0
  175. package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.cjs +1 -1
  176. package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.js +1 -1
  177. package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue.cjs +39 -25
  178. package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue.cjs.map +1 -1
  179. package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue.js +40 -26
  180. package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue.js.map +1 -1
  181. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.cjs +1 -1
  182. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.js +1 -1
  183. package/dist/prometheus-framework/src/modules/events/components/sections/SectionPreviousEvents.vue.cjs +4 -3
  184. package/dist/prometheus-framework/src/modules/events/components/sections/SectionPreviousEvents.vue.cjs.map +1 -1
  185. package/dist/prometheus-framework/src/modules/events/components/sections/SectionPreviousEvents.vue.js +4 -3
  186. package/dist/prometheus-framework/src/modules/events/components/sections/SectionPreviousEvents.vue.js.map +1 -1
  187. package/dist/prometheus-framework/src/modules/events/router/events.cjs +16 -5
  188. package/dist/prometheus-framework/src/modules/events/router/events.cjs.map +1 -1
  189. package/dist/prometheus-framework/src/modules/events/router/events.js +16 -5
  190. package/dist/prometheus-framework/src/modules/events/router/events.js.map +1 -1
  191. package/dist/prometheus-framework/src/modules/events/store/events.cjs +5 -6
  192. package/dist/prometheus-framework/src/modules/events/store/events.cjs.map +1 -1
  193. package/dist/prometheus-framework/src/modules/events/store/events.js +1 -2
  194. package/dist/prometheus-framework/src/modules/events/store/events.js.map +1 -1
  195. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +20 -11
  196. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs.map +1 -1
  197. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +20 -11
  198. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js.map +1 -1
  199. package/dist/prometheus-framework/src/modules/gallery/router/gallery.backoffice.router.cjs +5 -2
  200. package/dist/prometheus-framework/src/modules/gallery/router/gallery.backoffice.router.cjs.map +1 -1
  201. package/dist/prometheus-framework/src/modules/gallery/router/gallery.backoffice.router.js +5 -2
  202. package/dist/prometheus-framework/src/modules/gallery/router/gallery.backoffice.router.js.map +1 -1
  203. package/dist/prometheus-framework/src/modules/globals/globals.client.cjs +2 -0
  204. package/dist/prometheus-framework/src/modules/globals/globals.client.cjs.map +1 -1
  205. package/dist/prometheus-framework/src/modules/globals/globals.client.js +2 -0
  206. package/dist/prometheus-framework/src/modules/globals/globals.client.js.map +1 -1
  207. package/dist/prometheus-framework/src/modules/globals/views/classes/globals.store.cjs +4 -3
  208. package/dist/prometheus-framework/src/modules/globals/views/classes/globals.store.cjs.map +1 -1
  209. package/dist/prometheus-framework/src/modules/globals/views/classes/globals.store.js +4 -3
  210. package/dist/prometheus-framework/src/modules/globals/views/classes/globals.store.js.map +1 -1
  211. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSearch.vue.cjs +1 -1
  212. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSearch.vue.js +1 -1
  213. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/Card.vue.cjs +64 -0
  214. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/Card.vue.cjs.map +1 -0
  215. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/Card.vue.js +64 -0
  216. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/Card.vue.js.map +1 -0
  217. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +3 -3
  218. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.cjs.map +1 -1
  219. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.js +3 -3
  220. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.js.map +1 -1
  221. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.cjs +1 -0
  222. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.cjs.map +1 -1
  223. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.js +1 -0
  224. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.js.map +1 -1
  225. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs +1 -19
  226. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs.map +1 -1
  227. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js +1 -19
  228. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js.map +1 -1
  229. package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.cjs +1 -1
  230. package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.js +1 -1
  231. package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.cjs +1 -1
  232. package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.js +1 -1
  233. package/dist/prometheus-framework/src/modules/globals/views/components/sections/SectionPageTitle.vue.cjs +1 -1
  234. package/dist/prometheus-framework/src/modules/globals/views/components/sections/SectionPageTitle.vue.js +1 -1
  235. package/dist/prometheus-framework/src/modules/globals/views/store/globals.cjs +3 -2
  236. package/dist/prometheus-framework/src/modules/globals/views/store/globals.cjs.map +1 -1
  237. package/dist/prometheus-framework/src/modules/globals/views/store/globals.js +3 -2
  238. package/dist/prometheus-framework/src/modules/globals/views/store/globals.js.map +1 -1
  239. package/dist/prometheus-framework/src/modules/globals/views/utils/axios-instance.cjs +17 -0
  240. package/dist/prometheus-framework/src/modules/globals/views/utils/axios-instance.cjs.map +1 -0
  241. package/dist/prometheus-framework/src/modules/globals/views/utils/axios-instance.js +17 -0
  242. package/dist/prometheus-framework/src/modules/globals/views/utils/axios-instance.js.map +1 -0
  243. package/dist/prometheus-framework/src/modules/globals/views/utils/vue-app-renderer.cjs +57 -0
  244. package/dist/prometheus-framework/src/modules/globals/views/utils/vue-app-renderer.cjs.map +1 -0
  245. package/dist/prometheus-framework/src/modules/globals/views/utils/vue-app-renderer.js +57 -0
  246. package/dist/prometheus-framework/src/modules/globals/views/utils/vue-app-renderer.js.map +1 -0
  247. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +3 -3
  248. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +3 -3
  249. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
  250. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +1 -1
  251. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +3 -3
  252. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +3 -3
  253. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  254. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +1 -1
  255. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +2 -2
  256. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +2 -2
  257. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
  258. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +1 -1
  259. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
  260. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +1 -1
  261. package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +6 -7
  262. package/dist/prometheus-framework/src/modules/orders/store/orders.cjs.map +1 -1
  263. package/dist/prometheus-framework/src/modules/orders/store/orders.js +1 -2
  264. package/dist/prometheus-framework/src/modules/orders/store/orders.js.map +1 -1
  265. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  266. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  267. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +60 -23
  268. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs.map +1 -1
  269. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +60 -23
  270. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js.map +1 -1
  271. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  272. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +1 -1
  273. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  274. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
  275. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +2 -1
  276. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs.map +1 -1
  277. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +3 -2
  278. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js.map +1 -1
  279. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +3 -3
  280. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +3 -3
  281. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  282. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
  283. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +3 -3
  284. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +3 -3
  285. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.cjs +1 -1
  286. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.js +1 -1
  287. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +2 -2
  288. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +2 -2
  289. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +4 -4
  290. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +4 -4
  291. package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs +2 -0
  292. package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs.map +1 -1
  293. package/dist/prometheus-framework/src/modules/organizations/router/organizations.js +2 -0
  294. package/dist/prometheus-framework/src/modules/organizations/router/organizations.js.map +1 -1
  295. package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +11 -9
  296. package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs.map +1 -1
  297. package/dist/prometheus-framework/src/modules/organizations/store/departments.js +6 -4
  298. package/dist/prometheus-framework/src/modules/organizations/store/departments.js.map +1 -1
  299. package/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs +5 -11
  300. package/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs.map +1 -1
  301. package/dist/prometheus-framework/src/modules/organizations/store/organizations.js +1 -7
  302. package/dist/prometheus-framework/src/modules/organizations/store/organizations.js.map +1 -1
  303. package/dist/prometheus-framework/src/modules/pages/pages.client.cjs +637 -631
  304. package/dist/prometheus-framework/src/modules/pages/pages.client.js +637 -631
  305. package/dist/prometheus-framework/src/modules/pages/views/components/blocks/CardPage.vue.cjs +3 -3
  306. package/dist/prometheus-framework/src/modules/pages/views/components/blocks/CardPage.vue.js +3 -3
  307. package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.cjs +2 -2
  308. package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.js +2 -2
  309. package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +1 -1
  310. package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.js +1 -1
  311. package/dist/prometheus-framework/src/modules/pages/views/router/pages.backoffice.router.cjs +5 -10
  312. package/dist/prometheus-framework/src/modules/pages/views/router/pages.backoffice.router.cjs.map +1 -1
  313. package/dist/prometheus-framework/src/modules/pages/views/router/pages.backoffice.router.js +5 -10
  314. package/dist/prometheus-framework/src/modules/pages/views/router/pages.backoffice.router.js.map +1 -1
  315. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  316. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
  317. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +12 -7
  318. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs.map +1 -1
  319. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +12 -7
  320. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js.map +1 -1
  321. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.cjs +1 -1
  322. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.js +1 -1
  323. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
  324. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
  325. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
  326. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +1 -1
  327. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
  328. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +1 -1
  329. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +2 -2
  330. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +2 -2
  331. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  332. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
  333. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
  334. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +1 -1
  335. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +1 -1
  336. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs.map +1 -1
  337. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +1 -1
  338. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js.map +1 -1
  339. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +3 -3
  340. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +3 -3
  341. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -1
  342. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +1 -1
  343. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +2 -2
  344. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +2 -2
  345. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -1
  346. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +1 -1
  347. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +3 -3
  348. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +3 -3
  349. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +1 -1
  350. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js +1 -1
  351. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  352. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
  353. package/dist/prometheus-framework/src/modules/products/store/categories.cjs +7 -8
  354. package/dist/prometheus-framework/src/modules/products/store/categories.cjs.map +1 -1
  355. package/dist/prometheus-framework/src/modules/products/store/categories.js +1 -2
  356. package/dist/prometheus-framework/src/modules/products/store/categories.js.map +1 -1
  357. package/dist/prometheus-framework/src/modules/products/store/leftovers.cjs +6 -7
  358. package/dist/prometheus-framework/src/modules/products/store/leftovers.cjs.map +1 -1
  359. package/dist/prometheus-framework/src/modules/products/store/leftovers.js +1 -2
  360. package/dist/prometheus-framework/src/modules/products/store/leftovers.js.map +1 -1
  361. package/dist/prometheus-framework/src/modules/products/store/products.cjs +10 -21
  362. package/dist/prometheus-framework/src/modules/products/store/products.cjs.map +1 -1
  363. package/dist/prometheus-framework/src/modules/products/store/products.js +1 -12
  364. package/dist/prometheus-framework/src/modules/products/store/products.js.map +1 -1
  365. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  366. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs.map +1 -1
  367. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
  368. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js.map +1 -1
  369. package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.cjs +1 -1
  370. package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.js +1 -1
  371. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.cjs +1 -1
  372. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js +1 -1
  373. package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.cjs +1 -1
  374. package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.js +1 -1
  375. package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.cjs +3 -3
  376. package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.js +3 -3
  377. package/dist/prometheus-framework/src/modules/spots/store/spots.cjs +6 -9
  378. package/dist/prometheus-framework/src/modules/spots/store/spots.cjs.map +1 -1
  379. package/dist/prometheus-framework/src/modules/spots/store/spots.js +1 -4
  380. package/dist/prometheus-framework/src/modules/spots/store/spots.js.map +1 -1
  381. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +4 -4
  382. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs.map +1 -1
  383. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +4 -4
  384. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js.map +1 -1
  385. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  386. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
  387. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +3 -3
  388. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +3 -3
  389. package/dist/prometheus-framework/src/modules/users/router/users.cjs +2 -2
  390. package/dist/prometheus-framework/src/modules/users/router/users.cjs.map +1 -1
  391. package/dist/prometheus-framework/src/modules/users/router/users.js +2 -2
  392. package/dist/prometheus-framework/src/modules/users/router/users.js.map +1 -1
  393. package/dist/prometheus-framework/src/modules/users/store/users.cjs +5 -6
  394. package/dist/prometheus-framework/src/modules/users/store/users.cjs.map +1 -1
  395. package/dist/prometheus-framework/src/modules/users/store/users.js +1 -2
  396. package/dist/prometheus-framework/src/modules/users/store/users.js.map +1 -1
  397. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardDeposit.vue.cjs +1 -1
  398. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardDeposit.vue.js +1 -1
  399. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +1 -1
  400. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +1 -1
  401. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  402. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +1 -1
  403. package/dist/prometheus-framework.cjs.js +17 -17
  404. package/dist/prometheus-framework.es.js +1790 -1790
  405. package/dist/queryProcessor-CU4A6Y4N.mjs +197 -0
  406. package/dist/queryProcessor-CcsJEUBr.js +196 -0
  407. package/dist/spots.server.js +1 -1
  408. package/dist/spots.server.mjs +1 -1
  409. package/dist/verifyAccesses-BsrJOct8.mjs +90 -0
  410. package/dist/verifyAccesses-BvLnOtBN.js +89 -0
  411. package/dist/wallet.server.js +2 -2
  412. package/dist/wallet.server.mjs +2 -2
  413. package/package.json +1 -1
  414. package/src/builder/modes/ssr.dev.js +2 -2
  415. package/src/builder/modes/ssr.prod.js +4 -4
  416. package/src/builder/ssr/ssr-render-html.js +10 -14
  417. package/src/builder/templates/page.html +37 -0
  418. package/src/builder/templates/page.js +4 -0
  419. package/src/builder/webpack/webpack.config.client.js +2 -2
  420. package/src/builder/webpack/webpack.config.ssr.js +1 -1
  421. package/src/components/Button/Button.vue +0 -1
  422. package/src/components/Feed/Feed.vue +34 -55
  423. package/src/components/FieldTags/BlockTags.vue +0 -1
  424. package/src/components/UploadImage/UploadImage.vue +2 -1
  425. package/src/modules/auth/controllers/middlewares/authJwt.js +1 -1
  426. package/src/modules/auth/controllers/middlewares/verifySignUp.js +11 -11
  427. package/src/modules/auth/controllers/routes/auth.routes.js +2 -2
  428. package/src/modules/auth/controllers/services/auth.service.js +1 -0
  429. package/src/modules/auth/views/components/pages/SignIn.vue +1 -0
  430. package/src/modules/auth/views/middlewares/auth.validation.js +17 -1
  431. package/src/modules/auth/views/middlewares/ownership.validation.js +16 -1
  432. package/src/modules/auth/views/store/auth.js +43 -39
  433. package/src/modules/auth/views/store/twofa.js +2 -5
  434. package/src/modules/auth/views/validations/inputs.validation.js +12 -6
  435. package/src/modules/community/components/layouts/Community.vue +3 -3
  436. package/src/modules/community/components/pages/BlogPost.vue +122 -120
  437. package/src/modules/community/components/pages/CreateBlogPost.vue +1 -1
  438. package/src/modules/community/components/sections/Comments.vue +5 -5
  439. package/src/modules/community/controllers/blog.controller.js +1 -1
  440. package/src/modules/community/router/blogposts.js +37 -38
  441. package/src/modules/community/routes/blog.routes.js +4 -0
  442. package/src/modules/community/store/blogposts.js +11 -19
  443. package/src/modules/community/store/reactions.js +1 -7
  444. package/src/modules/events/components/elements/ButtonCheck.vue +36 -66
  445. package/src/modules/events/components/pages/EditEvent.vue +76 -59
  446. package/src/modules/events/components/pages/Event.vue +2 -15
  447. package/src/modules/events/components/pages/Events.vue +2 -1
  448. package/src/modules/events/components/pages/EventsBackoffice.vue +122 -0
  449. package/src/modules/events/components/sections/HeroEvent.vue +15 -17
  450. package/src/modules/events/components/sections/SectionPreviousEvents.vue +4 -13
  451. package/src/modules/events/router/events.js +11 -4
  452. package/src/modules/events/store/events.js +2 -4
  453. package/src/modules/gallery/components/sections/BackofficeGallery.vue +24 -13
  454. package/src/modules/gallery/controllers/gallery.controller.js +30 -31
  455. package/src/modules/gallery/router/gallery.backoffice.router.js +5 -1
  456. package/src/modules/gallery/routes/gallery.routes.js +22 -4
  457. package/src/modules/globals/controllers/utils/queryProcessor.js +24 -4
  458. package/src/modules/globals/globals.client.js +2 -0
  459. package/src/modules/globals/views/classes/globals.store.js +4 -3
  460. package/src/modules/globals/views/components/blocks/Card.vue +56 -0
  461. package/src/modules/globals/views/components/blocks/CardHeader.vue +1 -3
  462. package/src/modules/globals/views/components/layouts/App.vue +1 -0
  463. package/src/modules/globals/views/components/layouts/Client.vue +0 -30
  464. package/src/modules/globals/views/store/globals.js +4 -2
  465. package/src/modules/globals/views/utils/axios-instance.js +18 -0
  466. package/src/modules/globals/views/utils/vue-app-renderer.js +87 -0
  467. package/src/modules/integrations/stripe/controllers/services/stripe.service.js +15 -30
  468. package/src/modules/landing/components/pages/Governance.vue +4 -2
  469. package/src/modules/landing/components/sections/SectionHeroToken.vue +12 -10
  470. package/src/modules/landing/components/sections/SectionsSection.vue +5 -8
  471. package/src/modules/landing/router/landing.js +2 -1
  472. package/src/modules/orders/store/orders.js +1 -3
  473. package/src/modules/organizations/components/pages/DepartmentEdit.vue +36 -0
  474. package/src/modules/organizations/components/pages/OrganizationBackoffice.vue +3 -1
  475. package/src/modules/organizations/controllers/organizations.controller.js +2 -1
  476. package/src/modules/organizations/middlewares/verifyAccesses.js +117 -0
  477. package/src/modules/organizations/models/department.model.js +3 -100
  478. package/src/modules/organizations/models/organization.model.js +6 -4
  479. package/src/modules/organizations/models/schemas/accesses.schema.js +142 -0
  480. package/src/modules/organizations/router/organizations.js +2 -0
  481. package/src/modules/organizations/store/departments.js +6 -6
  482. package/src/modules/organizations/store/organizations.js +2 -16
  483. package/src/modules/pages/views/router/pages.backoffice.router.js +5 -7
  484. package/src/modules/products/components/blocks/CardProduct.vue +2 -0
  485. package/src/modules/products/components/pages/Product.vue +1 -1
  486. package/src/modules/products/components/sections/MenuSection.vue +2 -2
  487. package/src/modules/products/controllers/products.controller.js +201 -367
  488. package/src/modules/products/routes/products.routes.js +0 -5
  489. package/src/modules/products/store/categories.js +1 -2
  490. package/src/modules/products/store/leftovers.js +1 -2
  491. package/src/modules/products/store/products.js +1 -13
  492. package/src/modules/reports/components/sections/FormReport.vue +20 -20
  493. package/src/modules/spots/store/spots.js +1 -6
  494. package/src/modules/users/components/pages/Profile.vue +1 -1
  495. package/src/modules/users/router/users.js +2 -2
  496. package/src/modules/users/store/users.js +1 -3
  497. package/src/modules/auth/controllers/middlewares/verifyAccesses.js +0 -114
  498. package/src/modules/users/components/pages/ProfileEvents.vue +0 -69
@@ -0,0 +1,814 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const vue = require("vue");
4
+ const shared_esmBundler = require("../../shared/dist/shared.esm-bundler.cjs");
5
+ /**
6
+ * @vue/server-renderer v3.4.38
7
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
+ * @license MIT
9
+ **/
10
+ const shouldIgnoreProp = /* @__PURE__ */ shared_esmBundler.makeMap(
11
+ `,key,ref,innerHTML,textContent,ref_key,ref_for`
12
+ );
13
+ function ssrRenderAttrs(props, tag) {
14
+ let ret = "";
15
+ for (const key in props) {
16
+ if (shouldIgnoreProp(key) || shared_esmBundler.isOn(key) || tag === "textarea" && key === "value") {
17
+ continue;
18
+ }
19
+ const value = props[key];
20
+ if (key === "class") {
21
+ ret += ` class="${ssrRenderClass(value)}"`;
22
+ } else if (key === "style") {
23
+ ret += ` style="${ssrRenderStyle(value)}"`;
24
+ } else {
25
+ ret += ssrRenderDynamicAttr(key, value, tag);
26
+ }
27
+ }
28
+ return ret;
29
+ }
30
+ function ssrRenderDynamicAttr(key, value, tag) {
31
+ if (!shared_esmBundler.isRenderableAttrValue(value)) {
32
+ return ``;
33
+ }
34
+ const attrKey = tag && (tag.indexOf("-") > 0 || shared_esmBundler.isSVGTag(tag)) ? key : shared_esmBundler.propsToAttrMap[key] || key.toLowerCase();
35
+ if (shared_esmBundler.isBooleanAttr(attrKey)) {
36
+ return shared_esmBundler.includeBooleanAttr(value) ? ` ${attrKey}` : ``;
37
+ } else if (shared_esmBundler.isSSRSafeAttrName(attrKey)) {
38
+ return value === "" ? ` ${attrKey}` : ` ${attrKey}="${shared_esmBundler.escapeHtml(value)}"`;
39
+ } else {
40
+ console.warn(
41
+ `[@vue/server-renderer] Skipped rendering unsafe attribute name: ${attrKey}`
42
+ );
43
+ return ``;
44
+ }
45
+ }
46
+ function ssrRenderClass(raw) {
47
+ return shared_esmBundler.escapeHtml(shared_esmBundler.normalizeClass(raw));
48
+ }
49
+ function ssrRenderStyle(raw) {
50
+ if (!raw) {
51
+ return "";
52
+ }
53
+ if (shared_esmBundler.isString(raw)) {
54
+ return shared_esmBundler.escapeHtml(raw);
55
+ }
56
+ const styles = shared_esmBundler.normalizeStyle(raw);
57
+ return shared_esmBundler.escapeHtml(shared_esmBundler.stringifyStyle(styles));
58
+ }
59
+ function ssrRenderTeleport(parentPush, contentRenderFn, target, disabled, parentComponent) {
60
+ parentPush("<!--teleport start-->");
61
+ const context = parentComponent.appContext.provides[vue.ssrContextKey];
62
+ const teleportBuffers = context.__teleportBuffers || (context.__teleportBuffers = {});
63
+ const targetBuffer = teleportBuffers[target] || (teleportBuffers[target] = []);
64
+ const bufferIndex = targetBuffer.length;
65
+ let teleportContent;
66
+ if (disabled) {
67
+ contentRenderFn(parentPush);
68
+ teleportContent = `<!--teleport start anchor--><!--teleport anchor-->`;
69
+ } else {
70
+ const { getBuffer, push } = createBuffer();
71
+ push(`<!--teleport start anchor-->`);
72
+ contentRenderFn(push);
73
+ push(`<!--teleport anchor-->`);
74
+ teleportContent = getBuffer();
75
+ }
76
+ targetBuffer.splice(bufferIndex, 0, teleportContent);
77
+ parentPush("<!--teleport end-->");
78
+ }
79
+ let activeEffect;
80
+ let shouldTrack = true;
81
+ const trackStack = [];
82
+ function pauseTracking() {
83
+ trackStack.push(shouldTrack);
84
+ shouldTrack = false;
85
+ }
86
+ function resetTracking() {
87
+ const last = trackStack.pop();
88
+ shouldTrack = last === void 0 ? true : last;
89
+ }
90
+ function trackEffect(effect2, dep, debuggerEventExtraInfo) {
91
+ var _a;
92
+ if (dep.get(effect2) !== effect2._trackId) {
93
+ dep.set(effect2, effect2._trackId);
94
+ const oldDep = effect2.deps[effect2._depsLength];
95
+ if (oldDep !== dep) {
96
+ effect2.deps[effect2._depsLength++] = dep;
97
+ } else {
98
+ effect2._depsLength++;
99
+ }
100
+ if (!!(process.env.NODE_ENV !== "production")) {
101
+ (_a = effect2.onTrack) == null ? void 0 : _a.call(effect2, shared_esmBundler.extend({ effect: effect2 }, debuggerEventExtraInfo));
102
+ }
103
+ }
104
+ }
105
+ const createDep = (cleanup, computed) => {
106
+ const dep = /* @__PURE__ */ new Map();
107
+ dep.cleanup = cleanup;
108
+ dep.computed = computed;
109
+ return dep;
110
+ };
111
+ const targetMap = /* @__PURE__ */ new WeakMap();
112
+ Symbol(!!(process.env.NODE_ENV !== "production") ? "iterate" : "");
113
+ Symbol(!!(process.env.NODE_ENV !== "production") ? "Map key iterate" : "");
114
+ function track(target, type, key) {
115
+ if (shouldTrack && activeEffect) {
116
+ let depsMap = targetMap.get(target);
117
+ if (!depsMap) {
118
+ targetMap.set(target, depsMap = /* @__PURE__ */ new Map());
119
+ }
120
+ let dep = depsMap.get(key);
121
+ if (!dep) {
122
+ depsMap.set(key, dep = createDep(() => depsMap.delete(key)));
123
+ }
124
+ trackEffect(
125
+ activeEffect,
126
+ dep,
127
+ !!(process.env.NODE_ENV !== "production") ? {
128
+ target,
129
+ type,
130
+ key
131
+ } : void 0
132
+ );
133
+ }
134
+ }
135
+ function toRaw(observed) {
136
+ const raw = observed && observed["__v_raw"];
137
+ return raw ? toRaw(raw) : observed;
138
+ }
139
+ function isRef(r) {
140
+ return !!(r && r.__v_isRef === true);
141
+ }
142
+ const stack = [];
143
+ function pushWarningContext(vnode) {
144
+ stack.push(vnode);
145
+ }
146
+ function popWarningContext() {
147
+ stack.pop();
148
+ }
149
+ let isWarning = false;
150
+ function warn$1(msg, ...args) {
151
+ if (isWarning) return;
152
+ isWarning = true;
153
+ pauseTracking();
154
+ const instance = stack.length ? stack[stack.length - 1].component : null;
155
+ const appWarnHandler = instance && instance.appContext.config.warnHandler;
156
+ const trace = getComponentTrace();
157
+ if (appWarnHandler) {
158
+ callWithErrorHandling(
159
+ appWarnHandler,
160
+ instance,
161
+ 11,
162
+ [
163
+ // eslint-disable-next-line no-restricted-syntax
164
+ msg + args.map((a) => {
165
+ var _a, _b;
166
+ return (_b = (_a = a.toString) == null ? void 0 : _a.call(a)) != null ? _b : JSON.stringify(a);
167
+ }).join(""),
168
+ instance && instance.proxy,
169
+ trace.map(
170
+ ({ vnode }) => `at <${formatComponentName(instance, vnode.type)}>`
171
+ ).join("\n"),
172
+ trace
173
+ ]
174
+ );
175
+ } else {
176
+ const warnArgs = [`[Vue warn]: ${msg}`, ...args];
177
+ if (trace.length && // avoid spamming console during tests
178
+ true) {
179
+ warnArgs.push(`
180
+ `, ...formatTrace(trace));
181
+ }
182
+ console.warn(...warnArgs);
183
+ }
184
+ resetTracking();
185
+ isWarning = false;
186
+ }
187
+ function getComponentTrace() {
188
+ let currentVNode = stack[stack.length - 1];
189
+ if (!currentVNode) {
190
+ return [];
191
+ }
192
+ const normalizedStack = [];
193
+ while (currentVNode) {
194
+ const last = normalizedStack[0];
195
+ if (last && last.vnode === currentVNode) {
196
+ last.recurseCount++;
197
+ } else {
198
+ normalizedStack.push({
199
+ vnode: currentVNode,
200
+ recurseCount: 0
201
+ });
202
+ }
203
+ const parentInstance = currentVNode.component && currentVNode.component.parent;
204
+ currentVNode = parentInstance && parentInstance.vnode;
205
+ }
206
+ return normalizedStack;
207
+ }
208
+ function formatTrace(trace) {
209
+ const logs = [];
210
+ trace.forEach((entry, i) => {
211
+ logs.push(...i === 0 ? [] : [`
212
+ `], ...formatTraceEntry(entry));
213
+ });
214
+ return logs;
215
+ }
216
+ function formatTraceEntry({ vnode, recurseCount }) {
217
+ const postfix = recurseCount > 0 ? `... (${recurseCount} recursive calls)` : ``;
218
+ const isRoot = vnode.component ? vnode.component.parent == null : false;
219
+ const open = ` at <${formatComponentName(
220
+ vnode.component,
221
+ vnode.type,
222
+ isRoot
223
+ )}`;
224
+ const close = `>` + postfix;
225
+ return vnode.props ? [open, ...formatProps(vnode.props), close] : [open + close];
226
+ }
227
+ function formatProps(props) {
228
+ const res = [];
229
+ const keys = Object.keys(props);
230
+ keys.slice(0, 3).forEach((key) => {
231
+ res.push(...formatProp(key, props[key]));
232
+ });
233
+ if (keys.length > 3) {
234
+ res.push(` ...`);
235
+ }
236
+ return res;
237
+ }
238
+ function formatProp(key, value, raw) {
239
+ if (shared_esmBundler.isString(value)) {
240
+ value = JSON.stringify(value);
241
+ return raw ? value : [`${key}=${value}`];
242
+ } else if (typeof value === "number" || typeof value === "boolean" || value == null) {
243
+ return raw ? value : [`${key}=${value}`];
244
+ } else if (isRef(value)) {
245
+ value = formatProp(key, toRaw(value.value), true);
246
+ return raw ? value : [`${key}=Ref<`, value, `>`];
247
+ } else if (shared_esmBundler.isFunction(value)) {
248
+ return [`${key}=fn${value.name ? `<${value.name}>` : ``}`];
249
+ } else {
250
+ value = toRaw(value);
251
+ return raw ? value : [`${key}=`, value];
252
+ }
253
+ }
254
+ const ErrorTypeStrings = {
255
+ ["sp"]: "serverPrefetch hook",
256
+ ["bc"]: "beforeCreate hook",
257
+ ["c"]: "created hook",
258
+ ["bm"]: "beforeMount hook",
259
+ ["m"]: "mounted hook",
260
+ ["bu"]: "beforeUpdate hook",
261
+ ["u"]: "updated",
262
+ ["bum"]: "beforeUnmount hook",
263
+ ["um"]: "unmounted hook",
264
+ ["a"]: "activated hook",
265
+ ["da"]: "deactivated hook",
266
+ ["ec"]: "errorCaptured hook",
267
+ ["rtc"]: "renderTracked hook",
268
+ ["rtg"]: "renderTriggered hook",
269
+ [0]: "setup function",
270
+ [1]: "render function",
271
+ [2]: "watcher getter",
272
+ [3]: "watcher callback",
273
+ [4]: "watcher cleanup function",
274
+ [5]: "native event handler",
275
+ [6]: "component event handler",
276
+ [7]: "vnode hook",
277
+ [8]: "directive hook",
278
+ [9]: "transition hook",
279
+ [10]: "app errorHandler",
280
+ [11]: "app warnHandler",
281
+ [12]: "ref function",
282
+ [13]: "async component loader",
283
+ [14]: "scheduler flush",
284
+ [15]: "component update"
285
+ };
286
+ function callWithErrorHandling(fn, instance, type, args) {
287
+ try {
288
+ return args ? fn(...args) : fn();
289
+ } catch (err) {
290
+ handleError(err, instance, type);
291
+ }
292
+ }
293
+ function handleError(err, instance, type, throwInDev = true) {
294
+ const contextVNode = instance ? instance.vnode : null;
295
+ if (instance) {
296
+ let cur = instance.parent;
297
+ const exposedInstance = instance.proxy;
298
+ const errorInfo = !!(process.env.NODE_ENV !== "production") ? ErrorTypeStrings[type] : `https://vuejs.org/error-reference/#runtime-${type}`;
299
+ while (cur) {
300
+ const errorCapturedHooks = cur.ec;
301
+ if (errorCapturedHooks) {
302
+ for (let i = 0; i < errorCapturedHooks.length; i++) {
303
+ if (errorCapturedHooks[i](err, exposedInstance, errorInfo) === false) {
304
+ return;
305
+ }
306
+ }
307
+ }
308
+ cur = cur.parent;
309
+ }
310
+ const appErrorHandler = instance.appContext.config.errorHandler;
311
+ if (appErrorHandler) {
312
+ pauseTracking();
313
+ callWithErrorHandling(
314
+ appErrorHandler,
315
+ null,
316
+ 10,
317
+ [err, exposedInstance, errorInfo]
318
+ );
319
+ resetTracking();
320
+ return;
321
+ }
322
+ }
323
+ logError(err, type, contextVNode, throwInDev);
324
+ }
325
+ function logError(err, type, contextVNode, throwInDev = true) {
326
+ if (!!(process.env.NODE_ENV !== "production")) {
327
+ const info = ErrorTypeStrings[type];
328
+ if (contextVNode) {
329
+ pushWarningContext(contextVNode);
330
+ }
331
+ warn$1(`Unhandled error${info ? ` during execution of ${info}` : ``}`);
332
+ if (contextVNode) {
333
+ popWarningContext();
334
+ }
335
+ if (throwInDev) {
336
+ throw err;
337
+ } else {
338
+ console.error(err);
339
+ }
340
+ } else {
341
+ console.error(err);
342
+ }
343
+ }
344
+ let devtools;
345
+ let buffer = [];
346
+ function setDevtoolsHook(hook, target) {
347
+ var _a, _b;
348
+ devtools = hook;
349
+ if (devtools) {
350
+ devtools.enabled = true;
351
+ buffer.forEach(({ event, args }) => devtools.emit(event, ...args));
352
+ buffer = [];
353
+ } else if (
354
+ // handle late devtools injection - only do this if we are in an actual
355
+ // browser environment to avoid the timer handle stalling test runner exit
356
+ // (#4815)
357
+ typeof window !== "undefined" && // some envs mock window but not fully
358
+ window.HTMLElement && // also exclude jsdom
359
+ // eslint-disable-next-line no-restricted-syntax
360
+ !((_b = (_a = window.navigator) == null ? void 0 : _a.userAgent) == null ? void 0 : _b.includes("jsdom"))
361
+ ) {
362
+ const replay = target.__VUE_DEVTOOLS_HOOK_REPLAY__ = target.__VUE_DEVTOOLS_HOOK_REPLAY__ || [];
363
+ replay.push((newHook) => {
364
+ setDevtoolsHook(newHook, target);
365
+ });
366
+ setTimeout(() => {
367
+ if (!devtools) {
368
+ target.__VUE_DEVTOOLS_HOOK_REPLAY__ = null;
369
+ buffer = [];
370
+ }
371
+ }, 3e3);
372
+ } else {
373
+ buffer = [];
374
+ }
375
+ }
376
+ {
377
+ const g = shared_esmBundler.getGlobalThis();
378
+ const registerGlobalSetter = (key, setter) => {
379
+ let setters;
380
+ if (!(setters = g[key])) setters = g[key] = [];
381
+ setters.push(setter);
382
+ return (v) => {
383
+ if (setters.length > 1) setters.forEach((set) => set(v));
384
+ else setters[0](v);
385
+ };
386
+ };
387
+ registerGlobalSetter(
388
+ `__VUE_INSTANCE_SETTERS__`,
389
+ (v) => v
390
+ );
391
+ registerGlobalSetter(
392
+ `__VUE_SSR_SETTERS__`,
393
+ (v) => v
394
+ );
395
+ }
396
+ !!(process.env.NODE_ENV !== "production") ? {
397
+ get(target, key) {
398
+ track(target, "get", "");
399
+ return target[key];
400
+ },
401
+ set() {
402
+ warn$1(`setupContext.attrs is readonly.`);
403
+ return false;
404
+ },
405
+ deleteProperty() {
406
+ warn$1(`setupContext.attrs is readonly.`);
407
+ return false;
408
+ }
409
+ } : {
410
+ get(target, key) {
411
+ track(target, "get", "");
412
+ return target[key];
413
+ }
414
+ };
415
+ const classifyRE = /(?:^|[-_])(\w)/g;
416
+ const classify = (str) => str.replace(classifyRE, (c) => c.toUpperCase()).replace(/[-_]/g, "");
417
+ function getComponentName(Component, includeInferred = true) {
418
+ return shared_esmBundler.isFunction(Component) ? Component.displayName || Component.name : Component.name || includeInferred && Component.__name;
419
+ }
420
+ function formatComponentName(instance, Component, isRoot = false) {
421
+ let name = getComponentName(Component);
422
+ if (!name && Component.__file) {
423
+ const match = Component.__file.match(/([^/\\]+)\.\w+$/);
424
+ if (match) {
425
+ name = match[1];
426
+ }
427
+ }
428
+ if (!name && instance && instance.parent) {
429
+ const inferFromRegistry = (registry) => {
430
+ for (const key in registry) {
431
+ if (registry[key] === Component) {
432
+ return key;
433
+ }
434
+ }
435
+ };
436
+ name = inferFromRegistry(
437
+ instance.components || instance.parent.type.components
438
+ ) || inferFromRegistry(instance.appContext.components);
439
+ }
440
+ return name ? classify(name) : isRoot ? `App` : `Anonymous`;
441
+ }
442
+ !!(process.env.NODE_ENV !== "production") ? warn$1 : shared_esmBundler.NOOP;
443
+ !!(process.env.NODE_ENV !== "production") || true ? devtools : void 0;
444
+ !!(process.env.NODE_ENV !== "production") || true ? setDevtoolsHook : shared_esmBundler.NOOP;
445
+ function ssrCompile(template, instance) {
446
+ {
447
+ throw new Error(
448
+ `On-the-fly template compilation is not supported in the ESM build of @vue/server-renderer. All templates must be pre-compiled into render functions.`
449
+ );
450
+ }
451
+ }
452
+ const {
453
+ createComponentInstance,
454
+ setCurrentRenderingInstance,
455
+ setupComponent,
456
+ renderComponentRoot,
457
+ normalizeVNode
458
+ } = vue.ssrUtils;
459
+ function createBuffer() {
460
+ let appendable = false;
461
+ const buffer2 = [];
462
+ return {
463
+ getBuffer() {
464
+ return buffer2;
465
+ },
466
+ push(item) {
467
+ const isStringItem = shared_esmBundler.isString(item);
468
+ if (appendable && isStringItem) {
469
+ buffer2[buffer2.length - 1] += item;
470
+ return;
471
+ }
472
+ buffer2.push(item);
473
+ appendable = isStringItem;
474
+ if (shared_esmBundler.isPromise(item) || shared_esmBundler.isArray(item) && item.hasAsync) {
475
+ buffer2.hasAsync = true;
476
+ }
477
+ }
478
+ };
479
+ }
480
+ function renderComponentVNode(vnode, parentComponent = null, slotScopeId) {
481
+ const instance = createComponentInstance(vnode, parentComponent, null);
482
+ const res = setupComponent(
483
+ instance,
484
+ true
485
+ /* isSSR */
486
+ );
487
+ const hasAsyncSetup = shared_esmBundler.isPromise(res);
488
+ const prefetches = instance.sp;
489
+ if (hasAsyncSetup || prefetches) {
490
+ let p = hasAsyncSetup ? res : Promise.resolve();
491
+ if (prefetches) {
492
+ p = p.then(
493
+ () => Promise.all(
494
+ prefetches.map((prefetch) => prefetch.call(instance.proxy))
495
+ )
496
+ ).catch(shared_esmBundler.NOOP);
497
+ }
498
+ return p.then(() => renderComponentSubTree(instance, slotScopeId));
499
+ } else {
500
+ return renderComponentSubTree(instance, slotScopeId);
501
+ }
502
+ }
503
+ function renderComponentSubTree(instance, slotScopeId) {
504
+ const comp = instance.type;
505
+ const { getBuffer, push } = createBuffer();
506
+ if (shared_esmBundler.isFunction(comp)) {
507
+ let root = renderComponentRoot(instance);
508
+ if (!comp.props) {
509
+ for (const key in instance.attrs) {
510
+ if (key.startsWith(`data-v-`)) {
511
+ (root.props || (root.props = {}))[key] = ``;
512
+ }
513
+ }
514
+ }
515
+ renderVNode(push, instance.subTree = root, instance, slotScopeId);
516
+ } else {
517
+ if ((!instance.render || instance.render === shared_esmBundler.NOOP) && !instance.ssrRender && !comp.ssrRender && shared_esmBundler.isString(comp.template)) {
518
+ comp.ssrRender = ssrCompile(comp.template);
519
+ }
520
+ for (const e of instance.scope.effects) {
521
+ if (e.computed) {
522
+ e.computed._dirty = true;
523
+ e.computed._cacheable = true;
524
+ }
525
+ }
526
+ const ssrRender = instance.ssrRender || comp.ssrRender;
527
+ if (ssrRender) {
528
+ let attrs = instance.inheritAttrs !== false ? instance.attrs : void 0;
529
+ let hasCloned = false;
530
+ let cur = instance;
531
+ while (true) {
532
+ const scopeId = cur.vnode.scopeId;
533
+ if (scopeId) {
534
+ if (!hasCloned) {
535
+ attrs = { ...attrs };
536
+ hasCloned = true;
537
+ }
538
+ attrs[scopeId] = "";
539
+ }
540
+ const parent = cur.parent;
541
+ if (parent && parent.subTree && parent.subTree === cur.vnode) {
542
+ cur = parent;
543
+ } else {
544
+ break;
545
+ }
546
+ }
547
+ if (slotScopeId) {
548
+ if (!hasCloned) attrs = { ...attrs };
549
+ const slotScopeIdList = slotScopeId.trim().split(" ");
550
+ for (let i = 0; i < slotScopeIdList.length; i++) {
551
+ attrs[slotScopeIdList[i]] = "";
552
+ }
553
+ }
554
+ const prev = setCurrentRenderingInstance(instance);
555
+ try {
556
+ ssrRender(
557
+ instance.proxy,
558
+ push,
559
+ instance,
560
+ attrs,
561
+ // compiler-optimized bindings
562
+ instance.props,
563
+ instance.setupState,
564
+ instance.data,
565
+ instance.ctx
566
+ );
567
+ } finally {
568
+ setCurrentRenderingInstance(prev);
569
+ }
570
+ } else if (instance.render && instance.render !== shared_esmBundler.NOOP) {
571
+ renderVNode(
572
+ push,
573
+ instance.subTree = renderComponentRoot(instance),
574
+ instance,
575
+ slotScopeId
576
+ );
577
+ } else {
578
+ const componentName = comp.name || comp.__file || `<Anonymous>`;
579
+ vue.warn(`Component ${componentName} is missing template or render function.`);
580
+ push(`<!---->`);
581
+ }
582
+ }
583
+ return getBuffer();
584
+ }
585
+ function renderVNode(push, vnode, parentComponent, slotScopeId) {
586
+ const { type, shapeFlag, children } = vnode;
587
+ switch (type) {
588
+ case vue.Text:
589
+ push(shared_esmBundler.escapeHtml(children));
590
+ break;
591
+ case vue.Comment:
592
+ push(
593
+ children ? `<!--${shared_esmBundler.escapeHtmlComment(children)}-->` : `<!---->`
594
+ );
595
+ break;
596
+ case vue.Static:
597
+ push(children);
598
+ break;
599
+ case vue.Fragment:
600
+ if (vnode.slotScopeIds) {
601
+ slotScopeId = (slotScopeId ? slotScopeId + " " : "") + vnode.slotScopeIds.join(" ");
602
+ }
603
+ push(`<!--[-->`);
604
+ renderVNodeChildren(
605
+ push,
606
+ children,
607
+ parentComponent,
608
+ slotScopeId
609
+ );
610
+ push(`<!--]-->`);
611
+ break;
612
+ default:
613
+ if (shapeFlag & 1) {
614
+ renderElementVNode(push, vnode, parentComponent, slotScopeId);
615
+ } else if (shapeFlag & 6) {
616
+ push(renderComponentVNode(vnode, parentComponent, slotScopeId));
617
+ } else if (shapeFlag & 64) {
618
+ renderTeleportVNode(push, vnode, parentComponent, slotScopeId);
619
+ } else if (shapeFlag & 128) {
620
+ renderVNode(push, vnode.ssContent, parentComponent, slotScopeId);
621
+ } else {
622
+ vue.warn(
623
+ "[@vue/server-renderer] Invalid VNode type:",
624
+ type,
625
+ `(${typeof type})`
626
+ );
627
+ }
628
+ }
629
+ }
630
+ function renderVNodeChildren(push, children, parentComponent, slotScopeId) {
631
+ for (let i = 0; i < children.length; i++) {
632
+ renderVNode(push, normalizeVNode(children[i]), parentComponent, slotScopeId);
633
+ }
634
+ }
635
+ function renderElementVNode(push, vnode, parentComponent, slotScopeId) {
636
+ const tag = vnode.type;
637
+ let { props, children, shapeFlag, scopeId, dirs } = vnode;
638
+ let openTag = `<${tag}`;
639
+ if (dirs) {
640
+ props = applySSRDirectives(vnode, props, dirs);
641
+ }
642
+ if (props) {
643
+ openTag += ssrRenderAttrs(props, tag);
644
+ }
645
+ if (scopeId) {
646
+ openTag += ` ${scopeId}`;
647
+ }
648
+ let curParent = parentComponent;
649
+ let curVnode = vnode;
650
+ while (curParent && curVnode === curParent.subTree) {
651
+ curVnode = curParent.vnode;
652
+ if (curVnode.scopeId) {
653
+ openTag += ` ${curVnode.scopeId}`;
654
+ }
655
+ curParent = curParent.parent;
656
+ }
657
+ if (slotScopeId) {
658
+ openTag += ` ${slotScopeId}`;
659
+ }
660
+ push(openTag + `>`);
661
+ if (!shared_esmBundler.isVoidTag(tag)) {
662
+ let hasChildrenOverride = false;
663
+ if (props) {
664
+ if (props.innerHTML) {
665
+ hasChildrenOverride = true;
666
+ push(props.innerHTML);
667
+ } else if (props.textContent) {
668
+ hasChildrenOverride = true;
669
+ push(shared_esmBundler.escapeHtml(props.textContent));
670
+ } else if (tag === "textarea" && props.value) {
671
+ hasChildrenOverride = true;
672
+ push(shared_esmBundler.escapeHtml(props.value));
673
+ }
674
+ }
675
+ if (!hasChildrenOverride) {
676
+ if (shapeFlag & 8) {
677
+ push(shared_esmBundler.escapeHtml(children));
678
+ } else if (shapeFlag & 16) {
679
+ renderVNodeChildren(
680
+ push,
681
+ children,
682
+ parentComponent,
683
+ slotScopeId
684
+ );
685
+ }
686
+ }
687
+ push(`</${tag}>`);
688
+ }
689
+ }
690
+ function applySSRDirectives(vnode, rawProps, dirs) {
691
+ const toMerge = [];
692
+ for (let i = 0; i < dirs.length; i++) {
693
+ const binding = dirs[i];
694
+ const {
695
+ dir: { getSSRProps }
696
+ } = binding;
697
+ if (getSSRProps) {
698
+ const props = getSSRProps(binding, vnode);
699
+ if (props) toMerge.push(props);
700
+ }
701
+ }
702
+ return vue.mergeProps(rawProps || {}, ...toMerge);
703
+ }
704
+ function renderTeleportVNode(push, vnode, parentComponent, slotScopeId) {
705
+ const target = vnode.props && vnode.props.to;
706
+ const disabled = vnode.props && vnode.props.disabled;
707
+ if (!target) {
708
+ if (!disabled) {
709
+ vue.warn(`[@vue/server-renderer] Teleport is missing target prop.`);
710
+ }
711
+ return [];
712
+ }
713
+ if (!shared_esmBundler.isString(target)) {
714
+ vue.warn(
715
+ `[@vue/server-renderer] Teleport target must be a query selector string.`
716
+ );
717
+ return [];
718
+ }
719
+ ssrRenderTeleport(
720
+ push,
721
+ (push2) => {
722
+ renderVNodeChildren(
723
+ push2,
724
+ vnode.children,
725
+ parentComponent,
726
+ slotScopeId
727
+ );
728
+ },
729
+ target,
730
+ disabled || disabled === "",
731
+ parentComponent
732
+ );
733
+ }
734
+ const { isVNode: isVNode$1 } = vue.ssrUtils;
735
+ function nestedUnrollBuffer(buffer2, parentRet, startIndex) {
736
+ if (!buffer2.hasAsync) {
737
+ return parentRet + unrollBufferSync$1(buffer2);
738
+ }
739
+ let ret = parentRet;
740
+ for (let i = startIndex; i < buffer2.length; i += 1) {
741
+ const item = buffer2[i];
742
+ if (shared_esmBundler.isString(item)) {
743
+ ret += item;
744
+ continue;
745
+ }
746
+ if (shared_esmBundler.isPromise(item)) {
747
+ return item.then((nestedItem) => {
748
+ buffer2[i] = nestedItem;
749
+ return nestedUnrollBuffer(buffer2, ret, i);
750
+ });
751
+ }
752
+ const result = nestedUnrollBuffer(item, ret, 0);
753
+ if (shared_esmBundler.isPromise(result)) {
754
+ return result.then((nestedItem) => {
755
+ buffer2[i] = nestedItem;
756
+ return nestedUnrollBuffer(buffer2, "", i);
757
+ });
758
+ }
759
+ ret = result;
760
+ }
761
+ return ret;
762
+ }
763
+ function unrollBuffer$1(buffer2) {
764
+ return nestedUnrollBuffer(buffer2, "", 0);
765
+ }
766
+ function unrollBufferSync$1(buffer2) {
767
+ let ret = "";
768
+ for (let i = 0; i < buffer2.length; i++) {
769
+ let item = buffer2[i];
770
+ if (shared_esmBundler.isString(item)) {
771
+ ret += item;
772
+ } else {
773
+ ret += unrollBufferSync$1(item);
774
+ }
775
+ }
776
+ return ret;
777
+ }
778
+ async function renderToString(input, context = {}) {
779
+ if (isVNode$1(input)) {
780
+ return renderToString(vue.createApp({ render: () => input }), context);
781
+ }
782
+ const vnode = vue.createVNode(input._component, input._props);
783
+ vnode.appContext = input._context;
784
+ input.provide(vue.ssrContextKey, context);
785
+ const buffer2 = await renderComponentVNode(vnode);
786
+ const result = await unrollBuffer$1(buffer2);
787
+ await resolveTeleports(context);
788
+ if (context.__watcherHandles) {
789
+ for (const unwatch of context.__watcherHandles) {
790
+ unwatch();
791
+ }
792
+ }
793
+ return result;
794
+ }
795
+ async function resolveTeleports(context) {
796
+ if (context.__teleportBuffers) {
797
+ context.teleports = context.teleports || {};
798
+ for (const key in context.__teleportBuffers) {
799
+ context.teleports[key] = await unrollBuffer$1(
800
+ await Promise.all([context.__teleportBuffers[key]])
801
+ );
802
+ }
803
+ }
804
+ }
805
+ vue.initDirectivesForSSR();
806
+ exports.ssrIncludeBooleanAttr = shared_esmBundler.includeBooleanAttr;
807
+ exports.renderToString = renderToString;
808
+ exports.ssrRenderAttrs = ssrRenderAttrs;
809
+ exports.ssrRenderClass = ssrRenderClass;
810
+ exports.ssrRenderDynamicAttr = ssrRenderDynamicAttr;
811
+ exports.ssrRenderStyle = ssrRenderStyle;
812
+ exports.ssrRenderTeleport = ssrRenderTeleport;
813
+ exports.ssrRenderVNode = renderVNode;
814
+ //# sourceMappingURL=server-renderer.esm-bundler.cjs.map