@ozdao/prometheus-framework 0.2.222 → 0.2.223

Sign up to get free protection for your applications and to get access to all the features.
Files changed (448) hide show
  1. package/dist/auth.server.js +4 -4
  2. package/dist/auth.server.mjs +4 -4
  3. package/dist/builder.js +65 -56
  4. package/dist/builder.mjs +65 -56
  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/Feed/Feed.vue.cjs +26 -41
  60. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs.map +1 -1
  61. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +27 -42
  62. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js.map +1 -1
  63. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.cjs +6 -8
  64. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.cjs.map +1 -1
  65. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.js +6 -8
  66. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.js.map +1 -1
  67. package/dist/prometheus-framework/src/components/Slider/Slider.vue.cjs +1 -1
  68. package/dist/prometheus-framework/src/components/Slider/Slider.vue.js +1 -1
  69. package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.cjs +2 -1
  70. package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.cjs.map +1 -1
  71. package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.js +2 -1
  72. package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.js.map +1 -1
  73. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
  74. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
  75. package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.cjs +2 -2
  76. package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.js +2 -2
  77. package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.cjs +1 -1
  78. package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.js +1 -1
  79. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.cjs +1 -1
  80. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.js +1 -1
  81. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.cjs +1 -1
  82. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.js +1 -1
  83. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.cjs +2 -1
  84. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.cjs.map +1 -1
  85. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.js +2 -1
  86. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.js.map +1 -1
  87. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.cjs +1 -1
  88. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.js +1 -1
  89. package/dist/prometheus-framework/src/modules/auth/views/middlewares/auth.validation.cjs +5 -0
  90. package/dist/prometheus-framework/src/modules/auth/views/middlewares/auth.validation.cjs.map +1 -1
  91. package/dist/prometheus-framework/src/modules/auth/views/middlewares/auth.validation.js +5 -0
  92. package/dist/prometheus-framework/src/modules/auth/views/middlewares/auth.validation.js.map +1 -1
  93. package/dist/prometheus-framework/src/modules/auth/views/middlewares/ownership.validation.cjs +11 -0
  94. package/dist/prometheus-framework/src/modules/auth/views/middlewares/ownership.validation.cjs.map +1 -1
  95. package/dist/prometheus-framework/src/modules/auth/views/middlewares/ownership.validation.js +11 -0
  96. package/dist/prometheus-framework/src/modules/auth/views/middlewares/ownership.validation.js.map +1 -1
  97. package/dist/prometheus-framework/src/modules/auth/views/store/auth.cjs +37 -35
  98. package/dist/prometheus-framework/src/modules/auth/views/store/auth.cjs.map +1 -1
  99. package/dist/prometheus-framework/src/modules/auth/views/store/auth.js +33 -31
  100. package/dist/prometheus-framework/src/modules/auth/views/store/auth.js.map +1 -1
  101. package/dist/prometheus-framework/src/modules/auth/views/store/twofa.cjs +3 -5
  102. package/dist/prometheus-framework/src/modules/auth/views/store/twofa.cjs.map +1 -1
  103. package/dist/prometheus-framework/src/modules/auth/views/store/twofa.js +2 -4
  104. package/dist/prometheus-framework/src/modules/auth/views/store/twofa.js.map +1 -1
  105. package/dist/prometheus-framework/src/modules/auth/views/validations/inputs.validation.cjs +8 -5
  106. package/dist/prometheus-framework/src/modules/auth/views/validations/inputs.validation.cjs.map +1 -1
  107. package/dist/prometheus-framework/src/modules/auth/views/validations/inputs.validation.js +8 -5
  108. package/dist/prometheus-framework/src/modules/auth/views/validations/inputs.validation.js.map +1 -1
  109. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
  110. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +1 -1
  111. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +6 -3
  112. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs.map +1 -1
  113. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +6 -3
  114. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js.map +1 -1
  115. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +50 -35
  116. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs.map +1 -1
  117. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +55 -40
  118. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js.map +1 -1
  119. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  120. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +1 -1
  121. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs.map +1 -1
  122. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js.map +1 -1
  123. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +16 -15
  124. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs.map +1 -1
  125. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +16 -15
  126. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js.map +1 -1
  127. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +2 -2
  128. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +2 -2
  129. package/dist/prometheus-framework/src/modules/community/router/blogposts.cjs +46 -49
  130. package/dist/prometheus-framework/src/modules/community/router/blogposts.cjs.map +1 -1
  131. package/dist/prometheus-framework/src/modules/community/router/blogposts.js +46 -49
  132. package/dist/prometheus-framework/src/modules/community/router/blogposts.js.map +1 -1
  133. package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs +13 -20
  134. package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs.map +1 -1
  135. package/dist/prometheus-framework/src/modules/community/store/blogposts.js +9 -16
  136. package/dist/prometheus-framework/src/modules/community/store/blogposts.js.map +1 -1
  137. package/dist/prometheus-framework/src/modules/community/store/reactions.cjs +5 -9
  138. package/dist/prometheus-framework/src/modules/community/store/reactions.cjs.map +1 -1
  139. package/dist/prometheus-framework/src/modules/community/store/reactions.js +1 -5
  140. package/dist/prometheus-framework/src/modules/community/store/reactions.js.map +1 -1
  141. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
  142. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +1 -1
  143. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +29 -54
  144. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs.map +1 -1
  145. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +30 -55
  146. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js.map +1 -1
  147. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +162 -133
  148. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs.map +1 -1
  149. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +164 -135
  150. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js.map +1 -1
  151. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +124 -135
  152. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs.map +1 -1
  153. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +133 -144
  154. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js.map +1 -1
  155. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs.map +1 -1
  156. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js.map +1 -1
  157. package/dist/prometheus-framework/src/modules/events/components/pages/EventsBackoffice.vue.cjs +96 -0
  158. package/dist/prometheus-framework/src/modules/events/components/pages/EventsBackoffice.vue.cjs.map +1 -0
  159. package/dist/prometheus-framework/src/modules/events/components/pages/EventsBackoffice.vue.js +96 -0
  160. package/dist/prometheus-framework/src/modules/events/components/pages/EventsBackoffice.vue.js.map +1 -0
  161. package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.cjs +1 -1
  162. package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.js +1 -1
  163. package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue.cjs +39 -25
  164. package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue.cjs.map +1 -1
  165. package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue.js +40 -26
  166. package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue.js.map +1 -1
  167. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.cjs +1 -1
  168. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.js +1 -1
  169. package/dist/prometheus-framework/src/modules/events/components/sections/SectionPreviousEvents.vue.cjs +4 -3
  170. package/dist/prometheus-framework/src/modules/events/components/sections/SectionPreviousEvents.vue.cjs.map +1 -1
  171. package/dist/prometheus-framework/src/modules/events/components/sections/SectionPreviousEvents.vue.js +4 -3
  172. package/dist/prometheus-framework/src/modules/events/components/sections/SectionPreviousEvents.vue.js.map +1 -1
  173. package/dist/prometheus-framework/src/modules/events/router/events.cjs +16 -5
  174. package/dist/prometheus-framework/src/modules/events/router/events.cjs.map +1 -1
  175. package/dist/prometheus-framework/src/modules/events/router/events.js +16 -5
  176. package/dist/prometheus-framework/src/modules/events/router/events.js.map +1 -1
  177. package/dist/prometheus-framework/src/modules/events/store/events.cjs +5 -6
  178. package/dist/prometheus-framework/src/modules/events/store/events.cjs.map +1 -1
  179. package/dist/prometheus-framework/src/modules/events/store/events.js +1 -2
  180. package/dist/prometheus-framework/src/modules/events/store/events.js.map +1 -1
  181. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +19 -10
  182. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs.map +1 -1
  183. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +19 -10
  184. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js.map +1 -1
  185. package/dist/prometheus-framework/src/modules/gallery/router/gallery.backoffice.router.cjs +5 -2
  186. package/dist/prometheus-framework/src/modules/gallery/router/gallery.backoffice.router.cjs.map +1 -1
  187. package/dist/prometheus-framework/src/modules/gallery/router/gallery.backoffice.router.js +5 -2
  188. package/dist/prometheus-framework/src/modules/gallery/router/gallery.backoffice.router.js.map +1 -1
  189. package/dist/prometheus-framework/src/modules/globals/globals.client.cjs +2 -0
  190. package/dist/prometheus-framework/src/modules/globals/globals.client.cjs.map +1 -1
  191. package/dist/prometheus-framework/src/modules/globals/globals.client.js +2 -0
  192. package/dist/prometheus-framework/src/modules/globals/globals.client.js.map +1 -1
  193. package/dist/prometheus-framework/src/modules/globals/views/classes/globals.store.cjs +4 -3
  194. package/dist/prometheus-framework/src/modules/globals/views/classes/globals.store.cjs.map +1 -1
  195. package/dist/prometheus-framework/src/modules/globals/views/classes/globals.store.js +4 -3
  196. package/dist/prometheus-framework/src/modules/globals/views/classes/globals.store.js.map +1 -1
  197. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/Card.vue.cjs +64 -0
  198. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/Card.vue.cjs.map +1 -0
  199. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/Card.vue.js +64 -0
  200. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/Card.vue.js.map +1 -0
  201. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +3 -3
  202. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.cjs.map +1 -1
  203. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.js +3 -3
  204. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.js.map +1 -1
  205. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.cjs +1 -0
  206. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.cjs.map +1 -1
  207. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.js +1 -0
  208. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.js.map +1 -1
  209. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs +1 -19
  210. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs.map +1 -1
  211. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js +1 -19
  212. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js.map +1 -1
  213. package/dist/prometheus-framework/src/modules/globals/views/components/partials/LocationSelection.vue.cjs +2 -2
  214. package/dist/prometheus-framework/src/modules/globals/views/components/partials/LocationSelection.vue.js +2 -2
  215. package/dist/prometheus-framework/src/modules/globals/views/components/sections/SectionPageTitle.vue.cjs +1 -1
  216. package/dist/prometheus-framework/src/modules/globals/views/components/sections/SectionPageTitle.vue.js +1 -1
  217. package/dist/prometheus-framework/src/modules/globals/views/store/globals.cjs +3 -2
  218. package/dist/prometheus-framework/src/modules/globals/views/store/globals.cjs.map +1 -1
  219. package/dist/prometheus-framework/src/modules/globals/views/store/globals.js +3 -2
  220. package/dist/prometheus-framework/src/modules/globals/views/store/globals.js.map +1 -1
  221. package/dist/prometheus-framework/src/modules/globals/views/utils/axios-instance.cjs +17 -0
  222. package/dist/prometheus-framework/src/modules/globals/views/utils/axios-instance.cjs.map +1 -0
  223. package/dist/prometheus-framework/src/modules/globals/views/utils/axios-instance.js +17 -0
  224. package/dist/prometheus-framework/src/modules/globals/views/utils/axios-instance.js.map +1 -0
  225. package/dist/prometheus-framework/src/modules/globals/views/utils/vue-app-renderer.cjs +57 -0
  226. package/dist/prometheus-framework/src/modules/globals/views/utils/vue-app-renderer.cjs.map +1 -0
  227. package/dist/prometheus-framework/src/modules/globals/views/utils/vue-app-renderer.js +57 -0
  228. package/dist/prometheus-framework/src/modules/globals/views/utils/vue-app-renderer.js.map +1 -0
  229. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  230. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
  231. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
  232. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +1 -1
  233. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  234. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +1 -1
  235. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  236. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +1 -1
  237. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +2 -2
  238. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +2 -2
  239. package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +6 -7
  240. package/dist/prometheus-framework/src/modules/orders/store/orders.cjs.map +1 -1
  241. package/dist/prometheus-framework/src/modules/orders/store/orders.js +1 -2
  242. package/dist/prometheus-framework/src/modules/orders/store/orders.js.map +1 -1
  243. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  244. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
  245. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +60 -23
  246. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs.map +1 -1
  247. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +60 -23
  248. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js.map +1 -1
  249. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  250. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +1 -1
  251. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  252. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
  253. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +2 -1
  254. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs.map +1 -1
  255. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +3 -2
  256. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js.map +1 -1
  257. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  258. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +1 -1
  259. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  260. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
  261. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTabSection.vue.cjs +2 -2
  262. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTabSection.vue.js +2 -2
  263. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  264. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
  265. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.cjs +1 -1
  266. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.js +1 -1
  267. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +2 -2
  268. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
  269. package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs +2 -0
  270. package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs.map +1 -1
  271. package/dist/prometheus-framework/src/modules/organizations/router/organizations.js +2 -0
  272. package/dist/prometheus-framework/src/modules/organizations/router/organizations.js.map +1 -1
  273. package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +11 -9
  274. package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs.map +1 -1
  275. package/dist/prometheus-framework/src/modules/organizations/store/departments.js +6 -4
  276. package/dist/prometheus-framework/src/modules/organizations/store/departments.js.map +1 -1
  277. package/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs +5 -11
  278. package/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs.map +1 -1
  279. package/dist/prometheus-framework/src/modules/organizations/store/organizations.js +1 -7
  280. package/dist/prometheus-framework/src/modules/organizations/store/organizations.js.map +1 -1
  281. package/dist/prometheus-framework/src/modules/pages/pages.client.cjs +852 -846
  282. package/dist/prometheus-framework/src/modules/pages/pages.client.js +852 -846
  283. package/dist/prometheus-framework/src/modules/pages/views/components/blocks/CardPage.vue.cjs +1 -1
  284. package/dist/prometheus-framework/src/modules/pages/views/components/blocks/CardPage.vue.js +1 -1
  285. package/dist/prometheus-framework/src/modules/pages/views/router/pages.backoffice.router.cjs +5 -10
  286. package/dist/prometheus-framework/src/modules/pages/views/router/pages.backoffice.router.cjs.map +1 -1
  287. package/dist/prometheus-framework/src/modules/pages/views/router/pages.backoffice.router.js +5 -10
  288. package/dist/prometheus-framework/src/modules/pages/views/router/pages.backoffice.router.js.map +1 -1
  289. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +12 -7
  290. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs.map +1 -1
  291. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +12 -7
  292. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js.map +1 -1
  293. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.cjs +1 -1
  294. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.js +1 -1
  295. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
  296. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +1 -1
  297. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +1 -1
  298. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs.map +1 -1
  299. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +1 -1
  300. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js.map +1 -1
  301. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  302. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
  303. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -1
  304. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +1 -1
  305. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
  306. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +1 -1
  307. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  308. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
  309. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +1 -1
  310. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js +1 -1
  311. package/dist/prometheus-framework/src/modules/products/store/categories.cjs +7 -8
  312. package/dist/prometheus-framework/src/modules/products/store/categories.cjs.map +1 -1
  313. package/dist/prometheus-framework/src/modules/products/store/categories.js +1 -2
  314. package/dist/prometheus-framework/src/modules/products/store/categories.js.map +1 -1
  315. package/dist/prometheus-framework/src/modules/products/store/leftovers.cjs +6 -7
  316. package/dist/prometheus-framework/src/modules/products/store/leftovers.cjs.map +1 -1
  317. package/dist/prometheus-framework/src/modules/products/store/leftovers.js +1 -2
  318. package/dist/prometheus-framework/src/modules/products/store/leftovers.js.map +1 -1
  319. package/dist/prometheus-framework/src/modules/products/store/products.cjs +10 -21
  320. package/dist/prometheus-framework/src/modules/products/store/products.cjs.map +1 -1
  321. package/dist/prometheus-framework/src/modules/products/store/products.js +1 -12
  322. package/dist/prometheus-framework/src/modules/products/store/products.js.map +1 -1
  323. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs.map +1 -1
  324. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js.map +1 -1
  325. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
  326. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +1 -1
  327. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.cjs +1 -1
  328. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js +1 -1
  329. package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.cjs +3 -3
  330. package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.js +3 -3
  331. package/dist/prometheus-framework/src/modules/spots/store/spots.cjs +6 -9
  332. package/dist/prometheus-framework/src/modules/spots/store/spots.cjs.map +1 -1
  333. package/dist/prometheus-framework/src/modules/spots/store/spots.js +1 -4
  334. package/dist/prometheus-framework/src/modules/spots/store/spots.js.map +1 -1
  335. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +3 -3
  336. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs.map +1 -1
  337. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +3 -3
  338. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js.map +1 -1
  339. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  340. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
  341. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  342. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +1 -1
  343. package/dist/prometheus-framework/src/modules/users/router/users.cjs +2 -2
  344. package/dist/prometheus-framework/src/modules/users/router/users.cjs.map +1 -1
  345. package/dist/prometheus-framework/src/modules/users/router/users.js +2 -2
  346. package/dist/prometheus-framework/src/modules/users/router/users.js.map +1 -1
  347. package/dist/prometheus-framework/src/modules/users/store/users.cjs +5 -6
  348. package/dist/prometheus-framework/src/modules/users/store/users.cjs.map +1 -1
  349. package/dist/prometheus-framework/src/modules/users/store/users.js +1 -2
  350. package/dist/prometheus-framework/src/modules/users/store/users.js.map +1 -1
  351. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +2 -2
  352. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +2 -2
  353. package/dist/prometheus-framework.cjs.js +17 -17
  354. package/dist/prometheus-framework.es.js +1790 -1790
  355. package/dist/queryProcessor-CU4A6Y4N.mjs +197 -0
  356. package/dist/queryProcessor-CcsJEUBr.js +196 -0
  357. package/dist/spots.server.js +1 -1
  358. package/dist/spots.server.mjs +1 -1
  359. package/dist/verifyAccesses-BsrJOct8.mjs +90 -0
  360. package/dist/verifyAccesses-BvLnOtBN.js +89 -0
  361. package/dist/wallet.server.js +2 -2
  362. package/dist/wallet.server.mjs +2 -2
  363. package/package.json +1 -1
  364. package/src/builder/modes/ssr.dev.js +2 -2
  365. package/src/builder/modes/ssr.prod.js +4 -4
  366. package/src/builder/ssr/ssr-render-html.js +11 -13
  367. package/src/builder/templates/page.html +37 -0
  368. package/src/builder/templates/page.js +4 -0
  369. package/src/builder/webpack/webpack.config.client.js +2 -2
  370. package/src/builder/webpack/webpack.config.ssr.js +1 -1
  371. package/src/components/Button/Button.vue +0 -1
  372. package/src/components/Feed/Feed.vue +34 -55
  373. package/src/components/FieldTags/BlockTags.vue +0 -1
  374. package/src/components/UploadImage/UploadImage.vue +2 -1
  375. package/src/modules/auth/controllers/middlewares/authJwt.js +1 -1
  376. package/src/modules/auth/controllers/middlewares/verifySignUp.js +11 -11
  377. package/src/modules/auth/controllers/routes/auth.routes.js +2 -2
  378. package/src/modules/auth/controllers/services/auth.service.js +1 -0
  379. package/src/modules/auth/views/components/pages/SignIn.vue +1 -0
  380. package/src/modules/auth/views/middlewares/auth.validation.js +17 -1
  381. package/src/modules/auth/views/middlewares/ownership.validation.js +16 -1
  382. package/src/modules/auth/views/store/auth.js +43 -39
  383. package/src/modules/auth/views/store/twofa.js +2 -5
  384. package/src/modules/auth/views/validations/inputs.validation.js +12 -6
  385. package/src/modules/community/components/layouts/Community.vue +3 -3
  386. package/src/modules/community/components/pages/BlogPost.vue +122 -120
  387. package/src/modules/community/components/pages/CreateBlogPost.vue +1 -1
  388. package/src/modules/community/components/sections/Comments.vue +5 -5
  389. package/src/modules/community/controllers/blog.controller.js +1 -1
  390. package/src/modules/community/router/blogposts.js +37 -38
  391. package/src/modules/community/routes/blog.routes.js +4 -0
  392. package/src/modules/community/store/blogposts.js +11 -19
  393. package/src/modules/community/store/reactions.js +1 -7
  394. package/src/modules/events/components/elements/ButtonCheck.vue +36 -66
  395. package/src/modules/events/components/pages/EditEvent.vue +76 -59
  396. package/src/modules/events/components/pages/Event.vue +2 -15
  397. package/src/modules/events/components/pages/Events.vue +2 -1
  398. package/src/modules/events/components/pages/EventsBackoffice.vue +122 -0
  399. package/src/modules/events/components/sections/HeroEvent.vue +15 -17
  400. package/src/modules/events/components/sections/SectionPreviousEvents.vue +4 -13
  401. package/src/modules/events/router/events.js +11 -4
  402. package/src/modules/events/store/events.js +2 -4
  403. package/src/modules/gallery/components/sections/BackofficeGallery.vue +24 -13
  404. package/src/modules/gallery/controllers/gallery.controller.js +30 -31
  405. package/src/modules/gallery/router/gallery.backoffice.router.js +5 -1
  406. package/src/modules/gallery/routes/gallery.routes.js +22 -4
  407. package/src/modules/globals/controllers/utils/queryProcessor.js +24 -4
  408. package/src/modules/globals/globals.client.js +2 -0
  409. package/src/modules/globals/views/classes/globals.store.js +4 -3
  410. package/src/modules/globals/views/components/blocks/Card.vue +56 -0
  411. package/src/modules/globals/views/components/blocks/CardHeader.vue +1 -3
  412. package/src/modules/globals/views/components/layouts/App.vue +1 -0
  413. package/src/modules/globals/views/components/layouts/Client.vue +0 -30
  414. package/src/modules/globals/views/store/globals.js +4 -2
  415. package/src/modules/globals/views/utils/axios-instance.js +18 -0
  416. package/src/modules/globals/views/utils/vue-app-renderer.js +87 -0
  417. package/src/modules/integrations/stripe/controllers/services/stripe.service.js +15 -30
  418. package/src/modules/landing/components/pages/Governance.vue +4 -2
  419. package/src/modules/landing/components/sections/SectionHeroToken.vue +12 -10
  420. package/src/modules/landing/components/sections/SectionsSection.vue +5 -8
  421. package/src/modules/landing/router/landing.js +2 -1
  422. package/src/modules/orders/store/orders.js +1 -3
  423. package/src/modules/organizations/components/pages/DepartmentEdit.vue +36 -0
  424. package/src/modules/organizations/components/pages/OrganizationBackoffice.vue +3 -1
  425. package/src/modules/organizations/controllers/organizations.controller.js +2 -1
  426. package/src/modules/organizations/middlewares/verifyAccesses.js +117 -0
  427. package/src/modules/organizations/models/department.model.js +3 -100
  428. package/src/modules/organizations/models/organization.model.js +6 -4
  429. package/src/modules/organizations/models/schemas/accesses.schema.js +142 -0
  430. package/src/modules/organizations/router/organizations.js +2 -0
  431. package/src/modules/organizations/store/departments.js +6 -6
  432. package/src/modules/organizations/store/organizations.js +2 -16
  433. package/src/modules/pages/views/router/pages.backoffice.router.js +5 -7
  434. package/src/modules/products/components/blocks/CardProduct.vue +2 -0
  435. package/src/modules/products/components/pages/Product.vue +1 -1
  436. package/src/modules/products/components/sections/MenuSection.vue +2 -2
  437. package/src/modules/products/controllers/products.controller.js +201 -367
  438. package/src/modules/products/routes/products.routes.js +0 -5
  439. package/src/modules/products/store/categories.js +1 -2
  440. package/src/modules/products/store/leftovers.js +1 -2
  441. package/src/modules/products/store/products.js +1 -13
  442. package/src/modules/reports/components/sections/FormReport.vue +20 -20
  443. package/src/modules/spots/store/spots.js +1 -6
  444. package/src/modules/users/components/pages/Profile.vue +1 -1
  445. package/src/modules/users/router/users.js +2 -2
  446. package/src/modules/users/store/users.js +1 -3
  447. package/src/modules/auth/controllers/middlewares/verifyAccesses.js +0 -114
  448. package/src/modules/users/components/pages/ProfileEvents.vue +0 -69
@@ -0,0 +1,530 @@
1
+ /*! Capacitor: https://capacitorjs.com/ - MIT License */
2
+ const createCapacitorPlatforms = (win) => {
3
+ const defaultPlatformMap = /* @__PURE__ */ new Map();
4
+ defaultPlatformMap.set("web", { name: "web" });
5
+ const capPlatforms = win.CapacitorPlatforms || {
6
+ currentPlatform: { name: "web" },
7
+ platforms: defaultPlatformMap
8
+ };
9
+ const addPlatform = (name, platform) => {
10
+ capPlatforms.platforms.set(name, platform);
11
+ };
12
+ const setPlatform = (name) => {
13
+ if (capPlatforms.platforms.has(name)) {
14
+ capPlatforms.currentPlatform = capPlatforms.platforms.get(name);
15
+ }
16
+ };
17
+ capPlatforms.addPlatform = addPlatform;
18
+ capPlatforms.setPlatform = setPlatform;
19
+ return capPlatforms;
20
+ };
21
+ const initPlatforms = (win) => win.CapacitorPlatforms = createCapacitorPlatforms(win);
22
+ const CapacitorPlatforms = /* @__PURE__ */ initPlatforms(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {});
23
+ CapacitorPlatforms.addPlatform;
24
+ CapacitorPlatforms.setPlatform;
25
+ var ExceptionCode;
26
+ (function(ExceptionCode2) {
27
+ ExceptionCode2["Unimplemented"] = "UNIMPLEMENTED";
28
+ ExceptionCode2["Unavailable"] = "UNAVAILABLE";
29
+ })(ExceptionCode || (ExceptionCode = {}));
30
+ class CapacitorException extends Error {
31
+ constructor(message, code, data) {
32
+ super(message);
33
+ this.message = message;
34
+ this.code = code;
35
+ this.data = data;
36
+ }
37
+ }
38
+ const getPlatformId = (win) => {
39
+ var _a, _b;
40
+ if (win === null || win === void 0 ? void 0 : win.androidBridge) {
41
+ return "android";
42
+ } else if ((_b = (_a = win === null || win === void 0 ? void 0 : win.webkit) === null || _a === void 0 ? void 0 : _a.messageHandlers) === null || _b === void 0 ? void 0 : _b.bridge) {
43
+ return "ios";
44
+ } else {
45
+ return "web";
46
+ }
47
+ };
48
+ const createCapacitor = (win) => {
49
+ var _a, _b, _c, _d, _e;
50
+ const capCustomPlatform = win.CapacitorCustomPlatform || null;
51
+ const cap = win.Capacitor || {};
52
+ const Plugins = cap.Plugins = cap.Plugins || {};
53
+ const capPlatforms = win.CapacitorPlatforms;
54
+ const defaultGetPlatform = () => {
55
+ return capCustomPlatform !== null ? capCustomPlatform.name : getPlatformId(win);
56
+ };
57
+ const getPlatform = ((_a = capPlatforms === null || capPlatforms === void 0 ? void 0 : capPlatforms.currentPlatform) === null || _a === void 0 ? void 0 : _a.getPlatform) || defaultGetPlatform;
58
+ const defaultIsNativePlatform = () => getPlatform() !== "web";
59
+ const isNativePlatform = ((_b = capPlatforms === null || capPlatforms === void 0 ? void 0 : capPlatforms.currentPlatform) === null || _b === void 0 ? void 0 : _b.isNativePlatform) || defaultIsNativePlatform;
60
+ const defaultIsPluginAvailable = (pluginName) => {
61
+ const plugin = registeredPlugins.get(pluginName);
62
+ if (plugin === null || plugin === void 0 ? void 0 : plugin.platforms.has(getPlatform())) {
63
+ return true;
64
+ }
65
+ if (getPluginHeader(pluginName)) {
66
+ return true;
67
+ }
68
+ return false;
69
+ };
70
+ const isPluginAvailable = ((_c = capPlatforms === null || capPlatforms === void 0 ? void 0 : capPlatforms.currentPlatform) === null || _c === void 0 ? void 0 : _c.isPluginAvailable) || defaultIsPluginAvailable;
71
+ const defaultGetPluginHeader = (pluginName) => {
72
+ var _a2;
73
+ return (_a2 = cap.PluginHeaders) === null || _a2 === void 0 ? void 0 : _a2.find((h) => h.name === pluginName);
74
+ };
75
+ const getPluginHeader = ((_d = capPlatforms === null || capPlatforms === void 0 ? void 0 : capPlatforms.currentPlatform) === null || _d === void 0 ? void 0 : _d.getPluginHeader) || defaultGetPluginHeader;
76
+ const handleError = (err) => win.console.error(err);
77
+ const pluginMethodNoop = (_target, prop, pluginName) => {
78
+ return Promise.reject(`${pluginName} does not have an implementation of "${prop}".`);
79
+ };
80
+ const registeredPlugins = /* @__PURE__ */ new Map();
81
+ const defaultRegisterPlugin = (pluginName, jsImplementations = {}) => {
82
+ const registeredPlugin = registeredPlugins.get(pluginName);
83
+ if (registeredPlugin) {
84
+ console.warn(`Capacitor plugin "${pluginName}" already registered. Cannot register plugins twice.`);
85
+ return registeredPlugin.proxy;
86
+ }
87
+ const platform = getPlatform();
88
+ const pluginHeader = getPluginHeader(pluginName);
89
+ let jsImplementation;
90
+ const loadPluginImplementation = async () => {
91
+ if (!jsImplementation && platform in jsImplementations) {
92
+ jsImplementation = typeof jsImplementations[platform] === "function" ? jsImplementation = await jsImplementations[platform]() : jsImplementation = jsImplementations[platform];
93
+ } else if (capCustomPlatform !== null && !jsImplementation && "web" in jsImplementations) {
94
+ jsImplementation = typeof jsImplementations["web"] === "function" ? jsImplementation = await jsImplementations["web"]() : jsImplementation = jsImplementations["web"];
95
+ }
96
+ return jsImplementation;
97
+ };
98
+ const createPluginMethod = (impl, prop) => {
99
+ var _a2, _b2;
100
+ if (pluginHeader) {
101
+ const methodHeader = pluginHeader === null || pluginHeader === void 0 ? void 0 : pluginHeader.methods.find((m) => prop === m.name);
102
+ if (methodHeader) {
103
+ if (methodHeader.rtype === "promise") {
104
+ return (options) => cap.nativePromise(pluginName, prop.toString(), options);
105
+ } else {
106
+ return (options, callback) => cap.nativeCallback(pluginName, prop.toString(), options, callback);
107
+ }
108
+ } else if (impl) {
109
+ return (_a2 = impl[prop]) === null || _a2 === void 0 ? void 0 : _a2.bind(impl);
110
+ }
111
+ } else if (impl) {
112
+ return (_b2 = impl[prop]) === null || _b2 === void 0 ? void 0 : _b2.bind(impl);
113
+ } else {
114
+ throw new CapacitorException(`"${pluginName}" plugin is not implemented on ${platform}`, ExceptionCode.Unimplemented);
115
+ }
116
+ };
117
+ const createPluginMethodWrapper = (prop) => {
118
+ let remove;
119
+ const wrapper = (...args) => {
120
+ const p = loadPluginImplementation().then((impl) => {
121
+ const fn = createPluginMethod(impl, prop);
122
+ if (fn) {
123
+ const p2 = fn(...args);
124
+ remove = p2 === null || p2 === void 0 ? void 0 : p2.remove;
125
+ return p2;
126
+ } else {
127
+ throw new CapacitorException(`"${pluginName}.${prop}()" is not implemented on ${platform}`, ExceptionCode.Unimplemented);
128
+ }
129
+ });
130
+ if (prop === "addListener") {
131
+ p.remove = async () => remove();
132
+ }
133
+ return p;
134
+ };
135
+ wrapper.toString = () => `${prop.toString()}() { [capacitor code] }`;
136
+ Object.defineProperty(wrapper, "name", {
137
+ value: prop,
138
+ writable: false,
139
+ configurable: false
140
+ });
141
+ return wrapper;
142
+ };
143
+ const addListener = createPluginMethodWrapper("addListener");
144
+ const removeListener = createPluginMethodWrapper("removeListener");
145
+ const addListenerNative = (eventName, callback) => {
146
+ const call = addListener({ eventName }, callback);
147
+ const remove = async () => {
148
+ const callbackId = await call;
149
+ removeListener({
150
+ eventName,
151
+ callbackId
152
+ }, callback);
153
+ };
154
+ const p = new Promise((resolve) => call.then(() => resolve({ remove })));
155
+ p.remove = async () => {
156
+ console.warn(`Using addListener() without 'await' is deprecated.`);
157
+ await remove();
158
+ };
159
+ return p;
160
+ };
161
+ const proxy = new Proxy({}, {
162
+ get(_, prop) {
163
+ switch (prop) {
164
+ case "$$typeof":
165
+ return void 0;
166
+ case "toJSON":
167
+ return () => ({});
168
+ case "addListener":
169
+ return pluginHeader ? addListenerNative : addListener;
170
+ case "removeListener":
171
+ return removeListener;
172
+ default:
173
+ return createPluginMethodWrapper(prop);
174
+ }
175
+ }
176
+ });
177
+ Plugins[pluginName] = proxy;
178
+ registeredPlugins.set(pluginName, {
179
+ name: pluginName,
180
+ proxy,
181
+ platforms: /* @__PURE__ */ new Set([
182
+ ...Object.keys(jsImplementations),
183
+ ...pluginHeader ? [platform] : []
184
+ ])
185
+ });
186
+ return proxy;
187
+ };
188
+ const registerPlugin2 = ((_e = capPlatforms === null || capPlatforms === void 0 ? void 0 : capPlatforms.currentPlatform) === null || _e === void 0 ? void 0 : _e.registerPlugin) || defaultRegisterPlugin;
189
+ if (!cap.convertFileSrc) {
190
+ cap.convertFileSrc = (filePath) => filePath;
191
+ }
192
+ cap.getPlatform = getPlatform;
193
+ cap.handleError = handleError;
194
+ cap.isNativePlatform = isNativePlatform;
195
+ cap.isPluginAvailable = isPluginAvailable;
196
+ cap.pluginMethodNoop = pluginMethodNoop;
197
+ cap.registerPlugin = registerPlugin2;
198
+ cap.Exception = CapacitorException;
199
+ cap.DEBUG = !!cap.DEBUG;
200
+ cap.isLoggingEnabled = !!cap.isLoggingEnabled;
201
+ cap.platform = cap.getPlatform();
202
+ cap.isNative = cap.isNativePlatform();
203
+ return cap;
204
+ };
205
+ const initCapacitorGlobal = (win) => win.Capacitor = createCapacitor(win);
206
+ const Capacitor = /* @__PURE__ */ initCapacitorGlobal(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {});
207
+ const registerPlugin = Capacitor.registerPlugin;
208
+ Capacitor.Plugins;
209
+ class WebPlugin {
210
+ constructor(config) {
211
+ this.listeners = {};
212
+ this.retainedEventArguments = {};
213
+ this.windowListeners = {};
214
+ if (config) {
215
+ console.warn(`Capacitor WebPlugin "${config.name}" config object was deprecated in v3 and will be removed in v4.`);
216
+ this.config = config;
217
+ }
218
+ }
219
+ addListener(eventName, listenerFunc) {
220
+ let firstListener = false;
221
+ const listeners = this.listeners[eventName];
222
+ if (!listeners) {
223
+ this.listeners[eventName] = [];
224
+ firstListener = true;
225
+ }
226
+ this.listeners[eventName].push(listenerFunc);
227
+ const windowListener = this.windowListeners[eventName];
228
+ if (windowListener && !windowListener.registered) {
229
+ this.addWindowListener(windowListener);
230
+ }
231
+ if (firstListener) {
232
+ this.sendRetainedArgumentsForEvent(eventName);
233
+ }
234
+ const remove = async () => this.removeListener(eventName, listenerFunc);
235
+ const p = Promise.resolve({ remove });
236
+ return p;
237
+ }
238
+ async removeAllListeners() {
239
+ this.listeners = {};
240
+ for (const listener in this.windowListeners) {
241
+ this.removeWindowListener(this.windowListeners[listener]);
242
+ }
243
+ this.windowListeners = {};
244
+ }
245
+ notifyListeners(eventName, data, retainUntilConsumed) {
246
+ const listeners = this.listeners[eventName];
247
+ if (!listeners) {
248
+ if (retainUntilConsumed) {
249
+ let args = this.retainedEventArguments[eventName];
250
+ if (!args) {
251
+ args = [];
252
+ }
253
+ args.push(data);
254
+ this.retainedEventArguments[eventName] = args;
255
+ }
256
+ return;
257
+ }
258
+ listeners.forEach((listener) => listener(data));
259
+ }
260
+ hasListeners(eventName) {
261
+ return !!this.listeners[eventName].length;
262
+ }
263
+ registerWindowListener(windowEventName, pluginEventName) {
264
+ this.windowListeners[pluginEventName] = {
265
+ registered: false,
266
+ windowEventName,
267
+ pluginEventName,
268
+ handler: (event) => {
269
+ this.notifyListeners(pluginEventName, event);
270
+ }
271
+ };
272
+ }
273
+ unimplemented(msg = "not implemented") {
274
+ return new Capacitor.Exception(msg, ExceptionCode.Unimplemented);
275
+ }
276
+ unavailable(msg = "not available") {
277
+ return new Capacitor.Exception(msg, ExceptionCode.Unavailable);
278
+ }
279
+ async removeListener(eventName, listenerFunc) {
280
+ const listeners = this.listeners[eventName];
281
+ if (!listeners) {
282
+ return;
283
+ }
284
+ const index = listeners.indexOf(listenerFunc);
285
+ this.listeners[eventName].splice(index, 1);
286
+ if (!this.listeners[eventName].length) {
287
+ this.removeWindowListener(this.windowListeners[eventName]);
288
+ }
289
+ }
290
+ addWindowListener(handle) {
291
+ window.addEventListener(handle.windowEventName, handle.handler);
292
+ handle.registered = true;
293
+ }
294
+ removeWindowListener(handle) {
295
+ if (!handle) {
296
+ return;
297
+ }
298
+ window.removeEventListener(handle.windowEventName, handle.handler);
299
+ handle.registered = false;
300
+ }
301
+ sendRetainedArgumentsForEvent(eventName) {
302
+ const args = this.retainedEventArguments[eventName];
303
+ if (!args) {
304
+ return;
305
+ }
306
+ delete this.retainedEventArguments[eventName];
307
+ args.forEach((arg) => {
308
+ this.notifyListeners(eventName, arg);
309
+ });
310
+ }
311
+ }
312
+ const encode = (str) => encodeURIComponent(str).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
313
+ const decode = (str) => str.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
314
+ class CapacitorCookiesPluginWeb extends WebPlugin {
315
+ async getCookies() {
316
+ const cookies = document.cookie;
317
+ const cookieMap = {};
318
+ cookies.split(";").forEach((cookie) => {
319
+ if (cookie.length <= 0)
320
+ return;
321
+ let [key, value] = cookie.replace(/=/, "CAP_COOKIE").split("CAP_COOKIE");
322
+ key = decode(key).trim();
323
+ value = decode(value).trim();
324
+ cookieMap[key] = value;
325
+ });
326
+ return cookieMap;
327
+ }
328
+ async setCookie(options) {
329
+ try {
330
+ const encodedKey = encode(options.key);
331
+ const encodedValue = encode(options.value);
332
+ const expires = `; expires=${(options.expires || "").replace("expires=", "")}`;
333
+ const path = (options.path || "/").replace("path=", "");
334
+ const domain = options.url != null && options.url.length > 0 ? `domain=${options.url}` : "";
335
+ document.cookie = `${encodedKey}=${encodedValue || ""}${expires}; path=${path}; ${domain};`;
336
+ } catch (error) {
337
+ return Promise.reject(error);
338
+ }
339
+ }
340
+ async deleteCookie(options) {
341
+ try {
342
+ document.cookie = `${options.key}=; Max-Age=0`;
343
+ } catch (error) {
344
+ return Promise.reject(error);
345
+ }
346
+ }
347
+ async clearCookies() {
348
+ try {
349
+ const cookies = document.cookie.split(";") || [];
350
+ for (const cookie of cookies) {
351
+ document.cookie = cookie.replace(/^ +/, "").replace(/=.*/, `=;expires=${(/* @__PURE__ */ new Date()).toUTCString()};path=/`);
352
+ }
353
+ } catch (error) {
354
+ return Promise.reject(error);
355
+ }
356
+ }
357
+ async clearAllCookies() {
358
+ try {
359
+ await this.clearCookies();
360
+ } catch (error) {
361
+ return Promise.reject(error);
362
+ }
363
+ }
364
+ }
365
+ registerPlugin("CapacitorCookies", {
366
+ web: () => new CapacitorCookiesPluginWeb()
367
+ });
368
+ const readBlobAsBase64 = async (blob) => new Promise((resolve, reject) => {
369
+ const reader = new FileReader();
370
+ reader.onload = () => {
371
+ const base64String = reader.result;
372
+ resolve(base64String.indexOf(",") >= 0 ? base64String.split(",")[1] : base64String);
373
+ };
374
+ reader.onerror = (error) => reject(error);
375
+ reader.readAsDataURL(blob);
376
+ });
377
+ const normalizeHttpHeaders = (headers = {}) => {
378
+ const originalKeys = Object.keys(headers);
379
+ const loweredKeys = Object.keys(headers).map((k) => k.toLocaleLowerCase());
380
+ const normalized = loweredKeys.reduce((acc, key, index) => {
381
+ acc[key] = headers[originalKeys[index]];
382
+ return acc;
383
+ }, {});
384
+ return normalized;
385
+ };
386
+ const buildUrlParams = (params, shouldEncode = true) => {
387
+ if (!params)
388
+ return null;
389
+ const output = Object.entries(params).reduce((accumulator, entry) => {
390
+ const [key, value] = entry;
391
+ let encodedValue;
392
+ let item;
393
+ if (Array.isArray(value)) {
394
+ item = "";
395
+ value.forEach((str) => {
396
+ encodedValue = shouldEncode ? encodeURIComponent(str) : str;
397
+ item += `${key}=${encodedValue}&`;
398
+ });
399
+ item.slice(0, -1);
400
+ } else {
401
+ encodedValue = shouldEncode ? encodeURIComponent(value) : value;
402
+ item = `${key}=${encodedValue}`;
403
+ }
404
+ return `${accumulator}&${item}`;
405
+ }, "");
406
+ return output.substr(1);
407
+ };
408
+ const buildRequestInit = (options, extra = {}) => {
409
+ const output = Object.assign({ method: options.method || "GET", headers: options.headers }, extra);
410
+ const headers = normalizeHttpHeaders(options.headers);
411
+ const type = headers["content-type"] || "";
412
+ if (typeof options.data === "string") {
413
+ output.body = options.data;
414
+ } else if (type.includes("application/x-www-form-urlencoded")) {
415
+ const params = new URLSearchParams();
416
+ for (const [key, value] of Object.entries(options.data || {})) {
417
+ params.set(key, value);
418
+ }
419
+ output.body = params.toString();
420
+ } else if (type.includes("multipart/form-data") || options.data instanceof FormData) {
421
+ const form = new FormData();
422
+ if (options.data instanceof FormData) {
423
+ options.data.forEach((value, key) => {
424
+ form.append(key, value);
425
+ });
426
+ } else {
427
+ for (const key of Object.keys(options.data)) {
428
+ form.append(key, options.data[key]);
429
+ }
430
+ }
431
+ output.body = form;
432
+ const headers2 = new Headers(output.headers);
433
+ headers2.delete("content-type");
434
+ output.headers = headers2;
435
+ } else if (type.includes("application/json") || typeof options.data === "object") {
436
+ output.body = JSON.stringify(options.data);
437
+ }
438
+ return output;
439
+ };
440
+ class CapacitorHttpPluginWeb extends WebPlugin {
441
+ /**
442
+ * Perform an Http request given a set of options
443
+ * @param options Options to build the HTTP request
444
+ */
445
+ async request(options) {
446
+ const requestInit = buildRequestInit(options, options.webFetchExtra);
447
+ const urlParams = buildUrlParams(options.params, options.shouldEncodeUrlParams);
448
+ const url = urlParams ? `${options.url}?${urlParams}` : options.url;
449
+ const response = await fetch(url, requestInit);
450
+ const contentType = response.headers.get("content-type") || "";
451
+ let { responseType = "text" } = response.ok ? options : {};
452
+ if (contentType.includes("application/json")) {
453
+ responseType = "json";
454
+ }
455
+ let data;
456
+ let blob;
457
+ switch (responseType) {
458
+ case "arraybuffer":
459
+ case "blob":
460
+ blob = await response.blob();
461
+ data = await readBlobAsBase64(blob);
462
+ break;
463
+ case "json":
464
+ data = await response.json();
465
+ break;
466
+ case "document":
467
+ case "text":
468
+ default:
469
+ data = await response.text();
470
+ }
471
+ const headers = {};
472
+ response.headers.forEach((value, key) => {
473
+ headers[key] = value;
474
+ });
475
+ return {
476
+ data,
477
+ headers,
478
+ status: response.status,
479
+ url: response.url
480
+ };
481
+ }
482
+ /**
483
+ * Perform an Http GET request given a set of options
484
+ * @param options Options to build the HTTP request
485
+ */
486
+ async get(options) {
487
+ return this.request(Object.assign(Object.assign({}, options), { method: "GET" }));
488
+ }
489
+ /**
490
+ * Perform an Http POST request given a set of options
491
+ * @param options Options to build the HTTP request
492
+ */
493
+ async post(options) {
494
+ return this.request(Object.assign(Object.assign({}, options), { method: "POST" }));
495
+ }
496
+ /**
497
+ * Perform an Http PUT request given a set of options
498
+ * @param options Options to build the HTTP request
499
+ */
500
+ async put(options) {
501
+ return this.request(Object.assign(Object.assign({}, options), { method: "PUT" }));
502
+ }
503
+ /**
504
+ * Perform an Http PATCH request given a set of options
505
+ * @param options Options to build the HTTP request
506
+ */
507
+ async patch(options) {
508
+ return this.request(Object.assign(Object.assign({}, options), { method: "PATCH" }));
509
+ }
510
+ /**
511
+ * Perform an Http DELETE request given a set of options
512
+ * @param options Options to build the HTTP request
513
+ */
514
+ async delete(options) {
515
+ return this.request(Object.assign(Object.assign({}, options), { method: "DELETE" }));
516
+ }
517
+ }
518
+ registerPlugin("CapacitorHttp", {
519
+ web: () => new CapacitorHttpPluginWeb()
520
+ });
521
+ export {
522
+ Capacitor,
523
+ CapacitorException,
524
+ CapacitorPlatforms,
525
+ ExceptionCode,
526
+ WebPlugin,
527
+ buildRequestInit,
528
+ registerPlugin
529
+ };
530
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../../node_modules/@capacitor/core/dist/index.js"],"sourcesContent":["/*! Capacitor: https://capacitorjs.com/ - MIT License */\nconst createCapacitorPlatforms = (win) => {\n const defaultPlatformMap = new Map();\n defaultPlatformMap.set('web', { name: 'web' });\n const capPlatforms = win.CapacitorPlatforms || {\n currentPlatform: { name: 'web' },\n platforms: defaultPlatformMap,\n };\n const addPlatform = (name, platform) => {\n capPlatforms.platforms.set(name, platform);\n };\n const setPlatform = (name) => {\n if (capPlatforms.platforms.has(name)) {\n capPlatforms.currentPlatform = capPlatforms.platforms.get(name);\n }\n };\n capPlatforms.addPlatform = addPlatform;\n capPlatforms.setPlatform = setPlatform;\n return capPlatforms;\n};\nconst initPlatforms = (win) => (win.CapacitorPlatforms = createCapacitorPlatforms(win));\n/**\n * @deprecated Set `CapacitorCustomPlatform` on the window object prior to runtime executing in the web app instead\n */\nconst CapacitorPlatforms = /*#__PURE__*/ initPlatforms((typeof globalThis !== 'undefined'\n ? globalThis\n : typeof self !== 'undefined'\n ? self\n : typeof window !== 'undefined'\n ? window\n : typeof global !== 'undefined'\n ? global\n : {}));\n/**\n * @deprecated Set `CapacitorCustomPlatform` on the window object prior to runtime executing in the web app instead\n */\nconst addPlatform = CapacitorPlatforms.addPlatform;\n/**\n * @deprecated Set `CapacitorCustomPlatform` on the window object prior to runtime executing in the web app instead\n */\nconst setPlatform = CapacitorPlatforms.setPlatform;\n\nconst legacyRegisterWebPlugin = (cap, webPlugin) => {\n var _a;\n const config = webPlugin.config;\n const Plugins = cap.Plugins;\n if (!(config === null || config === void 0 ? void 0 : config.name)) {\n // TODO: add link to upgrade guide\n throw new Error(`Capacitor WebPlugin is using the deprecated \"registerWebPlugin()\" function, but without the config. Please use \"registerPlugin()\" instead to register this web plugin.\"`);\n }\n // TODO: add link to upgrade guide\n console.warn(`Capacitor plugin \"${config.name}\" is using the deprecated \"registerWebPlugin()\" function`);\n if (!Plugins[config.name] || ((_a = config === null || config === void 0 ? void 0 : config.platforms) === null || _a === void 0 ? void 0 : _a.includes(cap.getPlatform()))) {\n // Add the web plugin into the plugins registry if there already isn't\n // an existing one. If it doesn't already exist, that means\n // there's no existing native implementation for it.\n // - OR -\n // If we already have a plugin registered (meaning it was defined in the native layer),\n // then we should only overwrite it if the corresponding web plugin activates on\n // a certain platform. For example: Geolocation uses the WebPlugin on Android but not iOS\n Plugins[config.name] = webPlugin;\n }\n};\n\nvar ExceptionCode;\n(function (ExceptionCode) {\n /**\n * API is not implemented.\n *\n * This usually means the API can't be used because it is not implemented for\n * the current platform.\n */\n ExceptionCode[\"Unimplemented\"] = \"UNIMPLEMENTED\";\n /**\n * API is not available.\n *\n * This means the API can't be used right now because:\n * - it is currently missing a prerequisite, such as network connectivity\n * - it requires a particular platform or browser version\n */\n ExceptionCode[\"Unavailable\"] = \"UNAVAILABLE\";\n})(ExceptionCode || (ExceptionCode = {}));\nclass CapacitorException extends Error {\n constructor(message, code, data) {\n super(message);\n this.message = message;\n this.code = code;\n this.data = data;\n }\n}\nconst getPlatformId = (win) => {\n var _a, _b;\n if (win === null || win === void 0 ? void 0 : win.androidBridge) {\n return 'android';\n }\n else if ((_b = (_a = win === null || win === void 0 ? void 0 : win.webkit) === null || _a === void 0 ? void 0 : _a.messageHandlers) === null || _b === void 0 ? void 0 : _b.bridge) {\n return 'ios';\n }\n else {\n return 'web';\n }\n};\n\nconst createCapacitor = (win) => {\n var _a, _b, _c, _d, _e;\n const capCustomPlatform = win.CapacitorCustomPlatform || null;\n const cap = win.Capacitor || {};\n const Plugins = (cap.Plugins = cap.Plugins || {});\n /**\n * @deprecated Use `capCustomPlatform` instead, default functions like registerPlugin will function with the new object.\n */\n const capPlatforms = win.CapacitorPlatforms;\n const defaultGetPlatform = () => {\n return capCustomPlatform !== null\n ? capCustomPlatform.name\n : getPlatformId(win);\n };\n const getPlatform = ((_a = capPlatforms === null || capPlatforms === void 0 ? void 0 : capPlatforms.currentPlatform) === null || _a === void 0 ? void 0 : _a.getPlatform) || defaultGetPlatform;\n const defaultIsNativePlatform = () => getPlatform() !== 'web';\n const isNativePlatform = ((_b = capPlatforms === null || capPlatforms === void 0 ? void 0 : capPlatforms.currentPlatform) === null || _b === void 0 ? void 0 : _b.isNativePlatform) || defaultIsNativePlatform;\n const defaultIsPluginAvailable = (pluginName) => {\n const plugin = registeredPlugins.get(pluginName);\n if (plugin === null || plugin === void 0 ? void 0 : plugin.platforms.has(getPlatform())) {\n // JS implementation available for the current platform.\n return true;\n }\n if (getPluginHeader(pluginName)) {\n // Native implementation available.\n return true;\n }\n return false;\n };\n const isPluginAvailable = ((_c = capPlatforms === null || capPlatforms === void 0 ? void 0 : capPlatforms.currentPlatform) === null || _c === void 0 ? void 0 : _c.isPluginAvailable) ||\n defaultIsPluginAvailable;\n const defaultGetPluginHeader = (pluginName) => { var _a; return (_a = cap.PluginHeaders) === null || _a === void 0 ? void 0 : _a.find(h => h.name === pluginName); };\n const getPluginHeader = ((_d = capPlatforms === null || capPlatforms === void 0 ? void 0 : capPlatforms.currentPlatform) === null || _d === void 0 ? void 0 : _d.getPluginHeader) || defaultGetPluginHeader;\n const handleError = (err) => win.console.error(err);\n const pluginMethodNoop = (_target, prop, pluginName) => {\n return Promise.reject(`${pluginName} does not have an implementation of \"${prop}\".`);\n };\n const registeredPlugins = new Map();\n const defaultRegisterPlugin = (pluginName, jsImplementations = {}) => {\n const registeredPlugin = registeredPlugins.get(pluginName);\n if (registeredPlugin) {\n console.warn(`Capacitor plugin \"${pluginName}\" already registered. Cannot register plugins twice.`);\n return registeredPlugin.proxy;\n }\n const platform = getPlatform();\n const pluginHeader = getPluginHeader(pluginName);\n let jsImplementation;\n const loadPluginImplementation = async () => {\n if (!jsImplementation && platform in jsImplementations) {\n jsImplementation =\n typeof jsImplementations[platform] === 'function'\n ? (jsImplementation = await jsImplementations[platform]())\n : (jsImplementation = jsImplementations[platform]);\n }\n else if (capCustomPlatform !== null &&\n !jsImplementation &&\n 'web' in jsImplementations) {\n jsImplementation =\n typeof jsImplementations['web'] === 'function'\n ? (jsImplementation = await jsImplementations['web']())\n : (jsImplementation = jsImplementations['web']);\n }\n return jsImplementation;\n };\n const createPluginMethod = (impl, prop) => {\n var _a, _b;\n if (pluginHeader) {\n const methodHeader = pluginHeader === null || pluginHeader === void 0 ? void 0 : pluginHeader.methods.find(m => prop === m.name);\n if (methodHeader) {\n if (methodHeader.rtype === 'promise') {\n return (options) => cap.nativePromise(pluginName, prop.toString(), options);\n }\n else {\n return (options, callback) => cap.nativeCallback(pluginName, prop.toString(), options, callback);\n }\n }\n else if (impl) {\n return (_a = impl[prop]) === null || _a === void 0 ? void 0 : _a.bind(impl);\n }\n }\n else if (impl) {\n return (_b = impl[prop]) === null || _b === void 0 ? void 0 : _b.bind(impl);\n }\n else {\n throw new CapacitorException(`\"${pluginName}\" plugin is not implemented on ${platform}`, ExceptionCode.Unimplemented);\n }\n };\n const createPluginMethodWrapper = (prop) => {\n let remove;\n const wrapper = (...args) => {\n const p = loadPluginImplementation().then(impl => {\n const fn = createPluginMethod(impl, prop);\n if (fn) {\n const p = fn(...args);\n remove = p === null || p === void 0 ? void 0 : p.remove;\n return p;\n }\n else {\n throw new CapacitorException(`\"${pluginName}.${prop}()\" is not implemented on ${platform}`, ExceptionCode.Unimplemented);\n }\n });\n if (prop === 'addListener') {\n p.remove = async () => remove();\n }\n return p;\n };\n // Some flair ✨\n wrapper.toString = () => `${prop.toString()}() { [capacitor code] }`;\n Object.defineProperty(wrapper, 'name', {\n value: prop,\n writable: false,\n configurable: false,\n });\n return wrapper;\n };\n const addListener = createPluginMethodWrapper('addListener');\n const removeListener = createPluginMethodWrapper('removeListener');\n const addListenerNative = (eventName, callback) => {\n const call = addListener({ eventName }, callback);\n const remove = async () => {\n const callbackId = await call;\n removeListener({\n eventName,\n callbackId,\n }, callback);\n };\n const p = new Promise(resolve => call.then(() => resolve({ remove })));\n p.remove = async () => {\n console.warn(`Using addListener() without 'await' is deprecated.`);\n await remove();\n };\n return p;\n };\n const proxy = new Proxy({}, {\n get(_, prop) {\n switch (prop) {\n // https://github.com/facebook/react/issues/20030\n case '$$typeof':\n return undefined;\n case 'toJSON':\n return () => ({});\n case 'addListener':\n return pluginHeader ? addListenerNative : addListener;\n case 'removeListener':\n return removeListener;\n default:\n return createPluginMethodWrapper(prop);\n }\n },\n });\n Plugins[pluginName] = proxy;\n registeredPlugins.set(pluginName, {\n name: pluginName,\n proxy,\n platforms: new Set([\n ...Object.keys(jsImplementations),\n ...(pluginHeader ? [platform] : []),\n ]),\n });\n return proxy;\n };\n const registerPlugin = ((_e = capPlatforms === null || capPlatforms === void 0 ? void 0 : capPlatforms.currentPlatform) === null || _e === void 0 ? void 0 : _e.registerPlugin) || defaultRegisterPlugin;\n // Add in convertFileSrc for web, it will already be available in native context\n if (!cap.convertFileSrc) {\n cap.convertFileSrc = filePath => filePath;\n }\n cap.getPlatform = getPlatform;\n cap.handleError = handleError;\n cap.isNativePlatform = isNativePlatform;\n cap.isPluginAvailable = isPluginAvailable;\n cap.pluginMethodNoop = pluginMethodNoop;\n cap.registerPlugin = registerPlugin;\n cap.Exception = CapacitorException;\n cap.DEBUG = !!cap.DEBUG;\n cap.isLoggingEnabled = !!cap.isLoggingEnabled;\n // Deprecated props\n cap.platform = cap.getPlatform();\n cap.isNative = cap.isNativePlatform();\n return cap;\n};\nconst initCapacitorGlobal = (win) => (win.Capacitor = createCapacitor(win));\n\nconst Capacitor = /*#__PURE__*/ initCapacitorGlobal(typeof globalThis !== 'undefined'\n ? globalThis\n : typeof self !== 'undefined'\n ? self\n : typeof window !== 'undefined'\n ? window\n : typeof global !== 'undefined'\n ? global\n : {});\nconst registerPlugin = Capacitor.registerPlugin;\n/**\n * @deprecated Provided for backwards compatibility for Capacitor v2 plugins.\n * Capacitor v3 plugins should import the plugin directly. This \"Plugins\"\n * export is deprecated in v3, and will be removed in v4.\n */\nconst Plugins = Capacitor.Plugins;\n/**\n * Provided for backwards compatibility. Use the registerPlugin() API\n * instead, and provide the web plugin as the \"web\" implmenetation.\n * For example\n *\n * export const Example = registerPlugin('Example', {\n * web: () => import('./web').then(m => new m.Example())\n * })\n *\n * @deprecated Deprecated in v3, will be removed from v4.\n */\nconst registerWebPlugin = (plugin) => legacyRegisterWebPlugin(Capacitor, plugin);\n\n/**\n * Base class web plugins should extend.\n */\nclass WebPlugin {\n constructor(config) {\n this.listeners = {};\n this.retainedEventArguments = {};\n this.windowListeners = {};\n if (config) {\n // TODO: add link to upgrade guide\n console.warn(`Capacitor WebPlugin \"${config.name}\" config object was deprecated in v3 and will be removed in v4.`);\n this.config = config;\n }\n }\n addListener(eventName, listenerFunc) {\n let firstListener = false;\n const listeners = this.listeners[eventName];\n if (!listeners) {\n this.listeners[eventName] = [];\n firstListener = true;\n }\n this.listeners[eventName].push(listenerFunc);\n // If we haven't added a window listener for this event and it requires one,\n // go ahead and add it\n const windowListener = this.windowListeners[eventName];\n if (windowListener && !windowListener.registered) {\n this.addWindowListener(windowListener);\n }\n if (firstListener) {\n this.sendRetainedArgumentsForEvent(eventName);\n }\n const remove = async () => this.removeListener(eventName, listenerFunc);\n const p = Promise.resolve({ remove });\n return p;\n }\n async removeAllListeners() {\n this.listeners = {};\n for (const listener in this.windowListeners) {\n this.removeWindowListener(this.windowListeners[listener]);\n }\n this.windowListeners = {};\n }\n notifyListeners(eventName, data, retainUntilConsumed) {\n const listeners = this.listeners[eventName];\n if (!listeners) {\n if (retainUntilConsumed) {\n let args = this.retainedEventArguments[eventName];\n if (!args) {\n args = [];\n }\n args.push(data);\n this.retainedEventArguments[eventName] = args;\n }\n return;\n }\n listeners.forEach(listener => listener(data));\n }\n hasListeners(eventName) {\n return !!this.listeners[eventName].length;\n }\n registerWindowListener(windowEventName, pluginEventName) {\n this.windowListeners[pluginEventName] = {\n registered: false,\n windowEventName,\n pluginEventName,\n handler: event => {\n this.notifyListeners(pluginEventName, event);\n },\n };\n }\n unimplemented(msg = 'not implemented') {\n return new Capacitor.Exception(msg, ExceptionCode.Unimplemented);\n }\n unavailable(msg = 'not available') {\n return new Capacitor.Exception(msg, ExceptionCode.Unavailable);\n }\n async removeListener(eventName, listenerFunc) {\n const listeners = this.listeners[eventName];\n if (!listeners) {\n return;\n }\n const index = listeners.indexOf(listenerFunc);\n this.listeners[eventName].splice(index, 1);\n // If there are no more listeners for this type of event,\n // remove the window listener\n if (!this.listeners[eventName].length) {\n this.removeWindowListener(this.windowListeners[eventName]);\n }\n }\n addWindowListener(handle) {\n window.addEventListener(handle.windowEventName, handle.handler);\n handle.registered = true;\n }\n removeWindowListener(handle) {\n if (!handle) {\n return;\n }\n window.removeEventListener(handle.windowEventName, handle.handler);\n handle.registered = false;\n }\n sendRetainedArgumentsForEvent(eventName) {\n const args = this.retainedEventArguments[eventName];\n if (!args) {\n return;\n }\n delete this.retainedEventArguments[eventName];\n args.forEach(arg => {\n this.notifyListeners(eventName, arg);\n });\n }\n}\n\nconst WebView = /*#__PURE__*/ registerPlugin('WebView');\n/******** END WEB VIEW PLUGIN ********/\n/******** COOKIES PLUGIN ********/\n/**\n * Safely web encode a string value (inspired by js-cookie)\n * @param str The string value to encode\n */\nconst encode = (str) => encodeURIComponent(str)\n .replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent)\n .replace(/[()]/g, escape);\n/**\n * Safely web decode a string value (inspired by js-cookie)\n * @param str The string value to decode\n */\nconst decode = (str) => str.replace(/(%[\\dA-F]{2})+/gi, decodeURIComponent);\nclass CapacitorCookiesPluginWeb extends WebPlugin {\n async getCookies() {\n const cookies = document.cookie;\n const cookieMap = {};\n cookies.split(';').forEach(cookie => {\n if (cookie.length <= 0)\n return;\n // Replace first \"=\" with CAP_COOKIE to prevent splitting on additional \"=\"\n let [key, value] = cookie.replace(/=/, 'CAP_COOKIE').split('CAP_COOKIE');\n key = decode(key).trim();\n value = decode(value).trim();\n cookieMap[key] = value;\n });\n return cookieMap;\n }\n async setCookie(options) {\n try {\n // Safely Encoded Key/Value\n const encodedKey = encode(options.key);\n const encodedValue = encode(options.value);\n // Clean & sanitize options\n const expires = `; expires=${(options.expires || '').replace('expires=', '')}`; // Default is \"; expires=\"\n const path = (options.path || '/').replace('path=', ''); // Default is \"path=/\"\n const domain = options.url != null && options.url.length > 0\n ? `domain=${options.url}`\n : '';\n document.cookie = `${encodedKey}=${encodedValue || ''}${expires}; path=${path}; ${domain};`;\n }\n catch (error) {\n return Promise.reject(error);\n }\n }\n async deleteCookie(options) {\n try {\n document.cookie = `${options.key}=; Max-Age=0`;\n }\n catch (error) {\n return Promise.reject(error);\n }\n }\n async clearCookies() {\n try {\n const cookies = document.cookie.split(';') || [];\n for (const cookie of cookies) {\n document.cookie = cookie\n .replace(/^ +/, '')\n .replace(/=.*/, `=;expires=${new Date().toUTCString()};path=/`);\n }\n }\n catch (error) {\n return Promise.reject(error);\n }\n }\n async clearAllCookies() {\n try {\n await this.clearCookies();\n }\n catch (error) {\n return Promise.reject(error);\n }\n }\n}\nconst CapacitorCookies = registerPlugin('CapacitorCookies', {\n web: () => new CapacitorCookiesPluginWeb(),\n});\n// UTILITY FUNCTIONS\n/**\n * Read in a Blob value and return it as a base64 string\n * @param blob The blob value to convert to a base64 string\n */\nconst readBlobAsBase64 = async (blob) => new Promise((resolve, reject) => {\n const reader = new FileReader();\n reader.onload = () => {\n const base64String = reader.result;\n // remove prefix \"data:application/pdf;base64,\"\n resolve(base64String.indexOf(',') >= 0\n ? base64String.split(',')[1]\n : base64String);\n };\n reader.onerror = (error) => reject(error);\n reader.readAsDataURL(blob);\n});\n/**\n * Normalize an HttpHeaders map by lowercasing all of the values\n * @param headers The HttpHeaders object to normalize\n */\nconst normalizeHttpHeaders = (headers = {}) => {\n const originalKeys = Object.keys(headers);\n const loweredKeys = Object.keys(headers).map(k => k.toLocaleLowerCase());\n const normalized = loweredKeys.reduce((acc, key, index) => {\n acc[key] = headers[originalKeys[index]];\n return acc;\n }, {});\n return normalized;\n};\n/**\n * Builds a string of url parameters that\n * @param params A map of url parameters\n * @param shouldEncode true if you should encodeURIComponent() the values (true by default)\n */\nconst buildUrlParams = (params, shouldEncode = true) => {\n if (!params)\n return null;\n const output = Object.entries(params).reduce((accumulator, entry) => {\n const [key, value] = entry;\n let encodedValue;\n let item;\n if (Array.isArray(value)) {\n item = '';\n value.forEach(str => {\n encodedValue = shouldEncode ? encodeURIComponent(str) : str;\n item += `${key}=${encodedValue}&`;\n });\n // last character will always be \"&\" so slice it off\n item.slice(0, -1);\n }\n else {\n encodedValue = shouldEncode ? encodeURIComponent(value) : value;\n item = `${key}=${encodedValue}`;\n }\n return `${accumulator}&${item}`;\n }, '');\n // Remove initial \"&\" from the reduce\n return output.substr(1);\n};\n/**\n * Build the RequestInit object based on the options passed into the initial request\n * @param options The Http plugin options\n * @param extra Any extra RequestInit values\n */\nconst buildRequestInit = (options, extra = {}) => {\n const output = Object.assign({ method: options.method || 'GET', headers: options.headers }, extra);\n // Get the content-type\n const headers = normalizeHttpHeaders(options.headers);\n const type = headers['content-type'] || '';\n // If body is already a string, then pass it through as-is.\n if (typeof options.data === 'string') {\n output.body = options.data;\n }\n // Build request initializers based off of content-type\n else if (type.includes('application/x-www-form-urlencoded')) {\n const params = new URLSearchParams();\n for (const [key, value] of Object.entries(options.data || {})) {\n params.set(key, value);\n }\n output.body = params.toString();\n }\n else if (type.includes('multipart/form-data') ||\n options.data instanceof FormData) {\n const form = new FormData();\n if (options.data instanceof FormData) {\n options.data.forEach((value, key) => {\n form.append(key, value);\n });\n }\n else {\n for (const key of Object.keys(options.data)) {\n form.append(key, options.data[key]);\n }\n }\n output.body = form;\n const headers = new Headers(output.headers);\n headers.delete('content-type'); // content-type will be set by `window.fetch` to includy boundary\n output.headers = headers;\n }\n else if (type.includes('application/json') ||\n typeof options.data === 'object') {\n output.body = JSON.stringify(options.data);\n }\n return output;\n};\n// WEB IMPLEMENTATION\nclass CapacitorHttpPluginWeb extends WebPlugin {\n /**\n * Perform an Http request given a set of options\n * @param options Options to build the HTTP request\n */\n async request(options) {\n const requestInit = buildRequestInit(options, options.webFetchExtra);\n const urlParams = buildUrlParams(options.params, options.shouldEncodeUrlParams);\n const url = urlParams ? `${options.url}?${urlParams}` : options.url;\n const response = await fetch(url, requestInit);\n const contentType = response.headers.get('content-type') || '';\n // Default to 'text' responseType so no parsing happens\n let { responseType = 'text' } = response.ok ? options : {};\n // If the response content-type is json, force the response to be json\n if (contentType.includes('application/json')) {\n responseType = 'json';\n }\n let data;\n let blob;\n switch (responseType) {\n case 'arraybuffer':\n case 'blob':\n blob = await response.blob();\n data = await readBlobAsBase64(blob);\n break;\n case 'json':\n data = await response.json();\n break;\n case 'document':\n case 'text':\n default:\n data = await response.text();\n }\n // Convert fetch headers to Capacitor HttpHeaders\n const headers = {};\n response.headers.forEach((value, key) => {\n headers[key] = value;\n });\n return {\n data,\n headers,\n status: response.status,\n url: response.url,\n };\n }\n /**\n * Perform an Http GET request given a set of options\n * @param options Options to build the HTTP request\n */\n async get(options) {\n return this.request(Object.assign(Object.assign({}, options), { method: 'GET' }));\n }\n /**\n * Perform an Http POST request given a set of options\n * @param options Options to build the HTTP request\n */\n async post(options) {\n return this.request(Object.assign(Object.assign({}, options), { method: 'POST' }));\n }\n /**\n * Perform an Http PUT request given a set of options\n * @param options Options to build the HTTP request\n */\n async put(options) {\n return this.request(Object.assign(Object.assign({}, options), { method: 'PUT' }));\n }\n /**\n * Perform an Http PATCH request given a set of options\n * @param options Options to build the HTTP request\n */\n async patch(options) {\n return this.request(Object.assign(Object.assign({}, options), { method: 'PATCH' }));\n }\n /**\n * Perform an Http DELETE request given a set of options\n * @param options Options to build the HTTP request\n */\n async delete(options) {\n return this.request(Object.assign(Object.assign({}, options), { method: 'DELETE' }));\n }\n}\nconst CapacitorHttp = registerPlugin('CapacitorHttp', {\n web: () => new CapacitorHttpPluginWeb(),\n});\n/******** END HTTP PLUGIN ********/\n\nexport { Capacitor, CapacitorCookies, CapacitorException, CapacitorHttp, CapacitorPlatforms, ExceptionCode, Plugins, WebPlugin, WebView, addPlatform, buildRequestInit, registerPlugin, registerWebPlugin, setPlatform };\n//# sourceMappingURL=index.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AS;AAClB,WAAO,KAAK,QAAQ,OAAO,OAAO,OAAO,OAAO,CAAE,GAAE,OAAO,GAAG,EAAE,QAAQ,SAAQ,CAAE,CAAC;AAAA,EACtF;AACL;AACsB,eAAe,iBAAiB;AAAA,EAClD,KAAK,MAAM,IAAI,uBAAwB;AAC3C,CAAC;","x_google_ignoreList":[0]}
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ exports.BarcodeFormat = void 0;
4
+ (function(BarcodeFormat) {
5
+ BarcodeFormat["Aztec"] = "AZTEC";
6
+ BarcodeFormat["Codabar"] = "CODABAR";
7
+ BarcodeFormat["Code39"] = "CODE_39";
8
+ BarcodeFormat["Code93"] = "CODE_93";
9
+ BarcodeFormat["Code128"] = "CODE_128";
10
+ BarcodeFormat["DataMatrix"] = "DATA_MATRIX";
11
+ BarcodeFormat["Ean8"] = "EAN_8";
12
+ BarcodeFormat["Ean13"] = "EAN_13";
13
+ BarcodeFormat["Itf"] = "ITF";
14
+ BarcodeFormat["Pdf417"] = "PDF_417";
15
+ BarcodeFormat["QrCode"] = "QR_CODE";
16
+ BarcodeFormat["UpcA"] = "UPC_A";
17
+ BarcodeFormat["UpcE"] = "UPC_E";
18
+ })(exports.BarcodeFormat || (exports.BarcodeFormat = {}));
19
+ exports.BarcodeValueType = void 0;
20
+ (function(BarcodeValueType) {
21
+ BarcodeValueType["CalendarEvent"] = "CALENDAR_EVENT";
22
+ BarcodeValueType["ContactInfo"] = "CONTACT_INFO";
23
+ BarcodeValueType["DriversLicense"] = "DRIVERS_LICENSE";
24
+ BarcodeValueType["Email"] = "EMAIL";
25
+ BarcodeValueType["Geo"] = "GEO";
26
+ BarcodeValueType["Isbn"] = "ISBN";
27
+ BarcodeValueType["Phone"] = "PHONE";
28
+ BarcodeValueType["Product"] = "PRODUCT";
29
+ BarcodeValueType["Sms"] = "SMS";
30
+ BarcodeValueType["Text"] = "TEXT";
31
+ BarcodeValueType["Url"] = "URL";
32
+ BarcodeValueType["Wifi"] = "WIFI";
33
+ BarcodeValueType["Unknown"] = "UNKNOWN";
34
+ })(exports.BarcodeValueType || (exports.BarcodeValueType = {}));
35
+ exports.LensFacing = void 0;
36
+ (function(LensFacing) {
37
+ LensFacing["Front"] = "FRONT";
38
+ LensFacing["Back"] = "BACK";
39
+ })(exports.LensFacing || (exports.LensFacing = {}));
40
+ exports.GoogleBarcodeScannerModuleInstallState = void 0;
41
+ (function(GoogleBarcodeScannerModuleInstallState) {
42
+ GoogleBarcodeScannerModuleInstallState[GoogleBarcodeScannerModuleInstallState["UNKNOWN"] = 0] = "UNKNOWN";
43
+ GoogleBarcodeScannerModuleInstallState[GoogleBarcodeScannerModuleInstallState["PENDING"] = 1] = "PENDING";
44
+ GoogleBarcodeScannerModuleInstallState[GoogleBarcodeScannerModuleInstallState["DOWNLOADING"] = 2] = "DOWNLOADING";
45
+ GoogleBarcodeScannerModuleInstallState[GoogleBarcodeScannerModuleInstallState["CANCELED"] = 3] = "CANCELED";
46
+ GoogleBarcodeScannerModuleInstallState[GoogleBarcodeScannerModuleInstallState["COMPLETED"] = 4] = "COMPLETED";
47
+ GoogleBarcodeScannerModuleInstallState[GoogleBarcodeScannerModuleInstallState["FAILED"] = 5] = "FAILED";
48
+ GoogleBarcodeScannerModuleInstallState[GoogleBarcodeScannerModuleInstallState["INSTALLING"] = 6] = "INSTALLING";
49
+ GoogleBarcodeScannerModuleInstallState[GoogleBarcodeScannerModuleInstallState["DOWNLOAD_PAUSED"] = 7] = "DOWNLOAD_PAUSED";
50
+ })(exports.GoogleBarcodeScannerModuleInstallState || (exports.GoogleBarcodeScannerModuleInstallState = {}));
51
+ //# sourceMappingURL=definitions.cjs.map