@ozdao/prometheus-framework 0.2.229 → 0.2.231

Sign up to get free protection for your applications and to get access to all the features.
Files changed (123) hide show
  1. package/dist/builder.js +46 -1
  2. package/dist/builder.mjs +46 -1
  3. package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
  4. package/dist/prometheus-framework/src/components/Button/Button.vue.js +1 -1
  5. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  6. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +1 -1
  7. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
  8. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +1 -1
  9. package/dist/prometheus-framework/src/components/Slider/Slider.vue.cjs +1 -1
  10. package/dist/prometheus-framework/src/components/Slider/Slider.vue.js +1 -1
  11. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
  12. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
  13. package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.cjs +2 -2
  14. package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.js +2 -2
  15. package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.cjs +1 -1
  16. package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.js +1 -1
  17. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.cjs +1 -1
  18. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.js +1 -1
  19. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.cjs +1 -1
  20. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.js +1 -1
  21. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.cjs +1 -1
  22. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.js +1 -1
  23. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.cjs +1 -1
  24. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.js +1 -1
  25. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +2 -2
  26. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +2 -2
  27. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +2 -2
  28. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +2 -2
  29. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  30. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
  31. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  32. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +1 -1
  33. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +59 -39
  34. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs.map +1 -1
  35. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +60 -40
  36. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js.map +1 -1
  37. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  38. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
  39. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  40. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +1 -1
  41. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  42. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +1 -1
  43. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +1 -1
  44. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +1 -1
  45. package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.cjs +1 -1
  46. package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.js +1 -1
  47. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.cjs +1 -1
  48. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.js +1 -1
  49. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  50. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
  51. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +2 -2
  52. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.js +2 -2
  53. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs +1 -1
  54. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js +1 -1
  55. package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.cjs +1 -1
  56. package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.js +1 -1
  57. package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.cjs +1 -1
  58. package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.cjs.map +1 -1
  59. package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.js +1 -1
  60. package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.js.map +1 -1
  61. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +2 -2
  62. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
  63. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  64. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +1 -1
  65. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
  66. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +1 -1
  67. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  68. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  69. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +2 -2
  70. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
  71. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  72. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +1 -1
  73. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +2 -2
  74. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +2 -2
  75. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.cjs +1 -1
  76. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.js +1 -1
  77. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  78. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
  79. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +2 -2
  80. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
  81. package/dist/prometheus-framework/src/modules/pages/pages.client.cjs +470 -457
  82. package/dist/prometheus-framework/src/modules/pages/pages.client.js +470 -457
  83. package/dist/prometheus-framework/src/modules/pages/views/components/blocks/CardPage.vue.cjs +2 -2
  84. package/dist/prometheus-framework/src/modules/pages/views/components/blocks/CardPage.vue.js +2 -2
  85. package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.cjs +1 -1
  86. package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.js +1 -1
  87. package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +1 -1
  88. package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.js +1 -1
  89. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.cjs +1 -1
  90. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.js +1 -1
  91. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
  92. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +1 -1
  93. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
  94. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +1 -1
  95. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  96. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
  97. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -1
  98. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +1 -1
  99. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +2 -2
  100. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +2 -2
  101. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +1 -1
  102. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js +1 -1
  103. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  104. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
  105. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  106. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
  107. package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.cjs +1 -1
  108. package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.js +1 -1
  109. package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.cjs +1 -1
  110. package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.js +1 -1
  111. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +2 -2
  112. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
  113. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  114. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +1 -1
  115. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  116. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +1 -1
  117. package/package.json +1 -1
  118. package/src/builder/templates/screen.js +38 -0
  119. package/src/builder/webpack/webpack.config.spa.js +1 -1
  120. package/src/modules/events/components/elements/ButtonCheck.vue +65 -37
  121. package/src/modules/events/components/elements/ButtonCheck1.vue +107 -0
  122. package/src/modules/events/components/elements/ButtonCheck2.vue +76 -0
  123. package/src/modules/globals/views/components/partials/NavigationBar.vue +6 -0
package/dist/builder.js CHANGED
@@ -690,6 +690,51 @@ var webpack_config_server = (projectRoot) => {
690
690
  ]
691
691
  };
692
692
  };
693
+ var screen;
694
+ var hasRequiredScreen;
695
+ function requireScreen() {
696
+ if (hasRequiredScreen) return screen;
697
+ hasRequiredScreen = 1;
698
+ screen = `
699
+ <!DOCTYPE html>
700
+ <html lang="en">
701
+ <head>
702
+ <meta charset="UTF-8">
703
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
704
+ <title>NMS</title>
705
+
706
+ <script async src="https://www.googletagmanager.com/gtag/js?id={{googleTagId}}"></script>
707
+ <script>
708
+ window.dataLayer = window.dataLayer || [];
709
+ function gtag(){dataLayer.push(arguments);}
710
+ gtag('js', new Date());
711
+
712
+ gtag('config', '{{googleTagId}}');
713
+ </script>
714
+ <script>(function(){var s;(s=document.currentScript||document.scripts[document.scripts.length-1]).parentNode.removeChild(s);}());</script>
715
+
716
+ <link rel="apple-touch-icon" sizes="180x180" href="/favicon/apple-touch-icon.png">
717
+ <link rel="icon" type="image/png" sizes="32x32" href="/favicon/favicon-32x32.png">
718
+ <link rel="icon" type="image/png" sizes="16x16" href="/favicon/favicon-16x16.png">
719
+ <link rel="manifest" href="/favicon/site.webmanifest">
720
+ <link rel="mask-icon" href="/favicon/safari-pinned-tab.svg" color="#5bbad5">
721
+
722
+ <link rel="stylesheet" type="text/css" href="/main.css">
723
+
724
+ <meta name="msapplication-TileColor" content="#000000">
725
+ <meta name="theme-color" content="#ffffff">
726
+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
727
+ </head>
728
+ <body>
729
+ <div id="app"></div>
730
+
731
+ <script src="/main.js"></script>
732
+ </body>
733
+ </body>
734
+ </html>
735
+ `;
736
+ return screen;
737
+ }
693
738
  const path$1 = require$$0$1;
694
739
  const webpack$2 = require$$1;
695
740
  const { merge: merge$1 } = require$$3$2;
@@ -722,7 +767,7 @@ var webpack_config_spa = (projectRoot) => {
722
767
  }),
723
768
  new HtmlWebpackPlugin({
724
769
  templateContent: async () => {
725
- const template2 = page;
770
+ const template2 = requireScreen();
726
771
  const meta = {
727
772
  htmlAttrs: 'lang="en"',
728
773
  headAttrs: "",
package/dist/builder.mjs CHANGED
@@ -667,6 +667,51 @@ var webpack_config_server = (projectRoot) => {
667
667
  ]
668
668
  };
669
669
  };
670
+ var screen;
671
+ var hasRequiredScreen;
672
+ function requireScreen() {
673
+ if (hasRequiredScreen) return screen;
674
+ hasRequiredScreen = 1;
675
+ screen = `
676
+ <!DOCTYPE html>
677
+ <html lang="en">
678
+ <head>
679
+ <meta charset="UTF-8">
680
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
681
+ <title>NMS</title>
682
+
683
+ <script async src="https://www.googletagmanager.com/gtag/js?id={{googleTagId}}"></script>
684
+ <script>
685
+ window.dataLayer = window.dataLayer || [];
686
+ function gtag(){dataLayer.push(arguments);}
687
+ gtag('js', new Date());
688
+
689
+ gtag('config', '{{googleTagId}}');
690
+ </script>
691
+ <script>(function(){var s;(s=document.currentScript||document.scripts[document.scripts.length-1]).parentNode.removeChild(s);}());</script>
692
+
693
+ <link rel="apple-touch-icon" sizes="180x180" href="/favicon/apple-touch-icon.png">
694
+ <link rel="icon" type="image/png" sizes="32x32" href="/favicon/favicon-32x32.png">
695
+ <link rel="icon" type="image/png" sizes="16x16" href="/favicon/favicon-16x16.png">
696
+ <link rel="manifest" href="/favicon/site.webmanifest">
697
+ <link rel="mask-icon" href="/favicon/safari-pinned-tab.svg" color="#5bbad5">
698
+
699
+ <link rel="stylesheet" type="text/css" href="/main.css">
700
+
701
+ <meta name="msapplication-TileColor" content="#000000">
702
+ <meta name="theme-color" content="#ffffff">
703
+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
704
+ </head>
705
+ <body>
706
+ <div id="app"></div>
707
+
708
+ <script src="/main.js"></script>
709
+ </body>
710
+ </body>
711
+ </html>
712
+ `;
713
+ return screen;
714
+ }
670
715
  const path$1 = require$$0$1;
671
716
  const webpack$2 = require$$1;
672
717
  const { merge: merge$1 } = require$$3$2;
@@ -699,7 +744,7 @@ var webpack_config_spa = (projectRoot) => {
699
744
  }),
700
745
  new HtmlWebpackPlugin({
701
746
  templateContent: async () => {
702
- const template2 = page;
747
+ const template2 = requireScreen();
703
748
  const meta = {
704
749
  htmlAttrs: 'lang="en"',
705
750
  headAttrs: "",
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const vue = require("vue");
4
- const Loader = require("../Loader/Loader.vue2.cjs");
4
+ const Loader = require("../Loader/Loader.vue.cjs");
5
5
  ;/* empty css */
6
6
  const _hoisted_1 = ["disabled"];
7
7
  const _hoisted_2 = { key: 0 };
@@ -1,5 +1,5 @@
1
1
  import { ref, openBlock, createElementBlock, withModifiers, createVNode, Transition, withCtx, renderSlot, toDisplayString, createCommentVNode } from "vue";
2
- import Loader from "../Loader/Loader.vue2.js";
2
+ import Loader from "../Loader/Loader.vue.js";
3
3
  /* empty css */
4
4
  const _hoisted_1 = ["disabled"];
5
5
  const _hoisted_2 = { key: 0 };
@@ -2,7 +2,7 @@
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const vue = require("vue");
4
4
  const SkeletonEvent = require("../../modules/icons/skeletons/SkeletonEvent.vue.cjs");
5
- const Loader = require("../Loader/Loader.vue2.cjs");
5
+ const Loader = require("../Loader/Loader.vue.cjs");
6
6
  const EmptyState = require("../EmptyState/EmptyState.vue.cjs");
7
7
  const Dropdown = require("../Dropdown/Dropdown.vue.cjs");
8
8
  const Calendar = require("../DatePicker/Calendar.vue2.cjs");
@@ -1,6 +1,6 @@
1
1
  import { mergeModels, useModel, shallowRef, ref, watch, onMounted, onUnmounted, openBlock, createElementBlock, Fragment, createBlock, normalizeClass, createCommentVNode, createElementVNode, createVNode, withCtx, unref, TransitionGroup, renderList, renderSlot } from "vue";
2
2
  import SkeletonEvent from "../../modules/icons/skeletons/SkeletonEvent.vue.js";
3
- import Loader from "../Loader/Loader.vue2.js";
3
+ import Loader from "../Loader/Loader.vue.js";
4
4
  import _sfc_main$a from "../EmptyState/EmptyState.vue.js";
5
5
  import _sfc_main$5 from "../Dropdown/Dropdown.vue.js";
6
6
  import _sfc_main$7 from "../DatePicker/Calendar.vue2.js";
@@ -2,7 +2,7 @@
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const vue = require("vue");
4
4
  const index = require("../../../../node_modules/@googlemaps/js-api-loader/dist/index.cjs");
5
- const Loader = require("../Loader/Loader.vue2.cjs");
5
+ const Loader = require("../Loader/Loader.vue.cjs");
6
6
  ;/* empty css */
7
7
  const _hoisted_1 = { class: "pos-relative" };
8
8
  const _hoisted_2 = {
@@ -1,6 +1,6 @@
1
1
  import { ref, onMounted, watchEffect, openBlock, createElementBlock, createElementVNode, createVNode, Transition, withCtx, createBlock } from "vue";
2
2
  import { Loader } from "../../../../node_modules/@googlemaps/js-api-loader/dist/index.js";
3
- import Loader$1 from "../Loader/Loader.vue2.js";
3
+ import Loader$1 from "../Loader/Loader.vue.js";
4
4
  /* empty css */
5
5
  const _hoisted_1 = { class: "pos-relative" };
6
6
  const _hoisted_2 = {
@@ -5,7 +5,7 @@ const vueRouter = require("vue-router");
5
5
  require("vue-i18n");
6
6
  const emblaCarouselVue_esm = require("../../../../node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.cjs");
7
7
  const emblaCarouselAutoplay_esm = require("../../../../node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.cjs");
8
- ;/* empty css */
8
+ ;/* empty css */
9
9
  const _hoisted_1 = { class: "embla__container" };
10
10
  const _sfc_main = {
11
11
  __name: "Slider",
@@ -3,7 +3,7 @@ import { useRouter } from "vue-router";
3
3
  import "vue-i18n";
4
4
  import emblaCarouselVue from "../../../../node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.js";
5
5
  import Autoplay from "../../../../node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.js";
6
- /* empty css */
6
+ /* empty css */
7
7
  const _hoisted_1 = { class: "embla__container" };
8
8
  const _sfc_main = {
9
9
  __name: "Slider",
@@ -2,7 +2,7 @@
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const vue = require("vue");
4
4
  const axios = require("axios");
5
- const Loader = require("../Loader/Loader.vue2.cjs");
5
+ const Loader = require("../Loader/Loader.vue.cjs");
6
6
  const IconUpload = require("../../modules/icons/navigation/IconUpload.vue.cjs");
7
7
  const _hoisted_1 = {
8
8
  key: 0,
@@ -1,6 +1,6 @@
1
1
  import { ref, openBlock, createElementBlock, withModifiers, createVNode, Transition, withCtx, toDisplayString, createCommentVNode, createBlock, createElementVNode } from "vue";
2
2
  import axios from "axios";
3
- import Loader from "../Loader/Loader.vue2.js";
3
+ import Loader from "../Loader/Loader.vue.js";
4
4
  import _sfc_main$1 from "../../modules/icons/navigation/IconUpload.vue.js";
5
5
  const _hoisted_1 = {
6
6
  key: 0,
@@ -3,8 +3,8 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
3
3
  const vue = require("vue");
4
4
  ;/* empty css */
5
5
  ;/* empty css */
6
- ;/* empty css */
7
- ;/* empty css */
6
+ ;/* empty css */
7
+ ;/* empty css */
8
8
  require("vue-i18n");
9
9
  ;/* empty css */
10
10
  const vueRouter = require("vue-router");
@@ -1,8 +1,8 @@
1
1
  import { ref, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, Transition, createBlock, resolveDynamicComponent, createElementVNode } from "vue";
2
2
  /* empty css */
3
3
  /* empty css */
4
- /* empty css */
5
- /* empty css */
4
+ /* empty css */
5
+ /* empty css */
6
6
  import "vue-i18n";
7
7
  /* empty css */
8
8
  import { useRoute, useRouter } from "vue-router";
@@ -3,7 +3,7 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
3
3
  const vue = require("vue");
4
4
  ;/* empty css */
5
5
  const Field = require("../../../../../components/Field/Field.vue2.cjs");
6
- const Button = require("../../../../../components/Button/Button.vue2.cjs");
6
+ const Button = require("../../../../../components/Button/Button.vue.cjs");
7
7
  const vueRouter = require("vue-router");
8
8
  const vueI18n = require("vue-i18n");
9
9
  const auth = require("../../store/auth.cjs");
@@ -1,7 +1,7 @@
1
1
  import { ref, openBlock, createElementBlock, createElementVNode, toDisplayString, unref, createVNode, createTextVNode, createCommentVNode, withCtx } from "vue";
2
2
  /* empty css */
3
3
  import Field from "../../../../../components/Field/Field.vue2.js";
4
- import _sfc_main$1 from "../../../../../components/Button/Button.vue2.js";
4
+ import _sfc_main$1 from "../../../../../components/Button/Button.vue.js";
5
5
  import { useRoute, useRouter } from "vue-router";
6
6
  import { useI18n } from "vue-i18n";
7
7
  import { state, actions } from "../../store/auth.js";
@@ -3,7 +3,7 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
3
3
  const vue = require("vue");
4
4
  ;/* empty css */
5
5
  const Field = require("../../../../../components/Field/Field.vue2.cjs");
6
- const Button = require("../../../../../components/Button/Button.vue2.cjs");
6
+ const Button = require("../../../../../components/Button/Button.vue.cjs");
7
7
  const vueRouter = require("vue-router");
8
8
  const auth = require("../../store/auth.cjs");
9
9
  const invites = require("../../../../organizations/store/invites.cjs");
@@ -1,7 +1,7 @@
1
1
  import { ref, onMounted, openBlock, createElementBlock, createElementVNode, createVNode, withCtx } from "vue";
2
2
  /* empty css */
3
3
  import Field from "../../../../../components/Field/Field.vue2.js";
4
- import _sfc_main$1 from "../../../../../components/Button/Button.vue2.js";
4
+ import _sfc_main$1 from "../../../../../components/Button/Button.vue.js";
5
5
  import { useRoute, useRouter } from "vue-router";
6
6
  import { state, actions as actions$1 } from "../../store/auth.js";
7
7
  import { actions } from "../../../../organizations/store/invites.js";
@@ -4,7 +4,7 @@ const vue = require("vue");
4
4
  const Tab = require("../../../../../components/Tab/Tab.vue2.cjs");
5
5
  const Field = require("../../../../../components/Field/Field.vue2.cjs");
6
6
  const FieldPhone = require("../../../../../components/FieldPhone/FieldPhone.vue.cjs");
7
- const Button = require("../../../../../components/Button/Button.vue2.cjs");
7
+ const Button = require("../../../../../components/Button/Button.vue.cjs");
8
8
  const vueRouter = require("vue-router");
9
9
  const vueI18n = require("vue-i18n");
10
10
  const ResetPassword = require("../../localization/ResetPassword.json.cjs");
@@ -2,7 +2,7 @@ import { ref, openBlock, createElementBlock, createElementVNode, toDisplayString
2
2
  import _sfc_main$1 from "../../../../../components/Tab/Tab.vue2.js";
3
3
  import Field from "../../../../../components/Field/Field.vue2.js";
4
4
  import _sfc_main$2 from "../../../../../components/FieldPhone/FieldPhone.vue.js";
5
- import _sfc_main$3 from "../../../../../components/Button/Button.vue2.js";
5
+ import _sfc_main$3 from "../../../../../components/Button/Button.vue.js";
6
6
  import { useRoute, useRouter } from "vue-router";
7
7
  import { useI18n } from "vue-i18n";
8
8
  import text from "../../localization/ResetPassword.json.js";
@@ -4,7 +4,7 @@ const vue = require("vue");
4
4
  const Tab = require("../../../../../components/Tab/Tab.vue2.cjs");
5
5
  const Field = require("../../../../../components/Field/Field.vue2.cjs");
6
6
  const FieldPhone = require("../../../../../components/FieldPhone/FieldPhone.vue.cjs");
7
- const Button = require("../../../../../components/Button/Button.vue2.cjs");
7
+ const Button = require("../../../../../components/Button/Button.vue.cjs");
8
8
  const vueRouter = require("vue-router");
9
9
  const vueI18n = require("vue-i18n");
10
10
  const SignIn = require("../../localization/SignIn.json.cjs");
@@ -2,7 +2,7 @@ import { ref, onMounted, resolveComponent, openBlock, createElementBlock, create
2
2
  import _sfc_main$1 from "../../../../../components/Tab/Tab.vue2.js";
3
3
  import Field from "../../../../../components/Field/Field.vue2.js";
4
4
  import _sfc_main$2 from "../../../../../components/FieldPhone/FieldPhone.vue.js";
5
- import _sfc_main$3 from "../../../../../components/Button/Button.vue2.js";
5
+ import _sfc_main$3 from "../../../../../components/Button/Button.vue.js";
6
6
  import { useRoute, useRouter } from "vue-router";
7
7
  import { useI18n } from "vue-i18n";
8
8
  import text from "../../localization/SignIn.json.js";
@@ -4,7 +4,7 @@ const vue = require("vue");
4
4
  const Tab = require("../../../../../components/Tab/Tab.vue2.cjs");
5
5
  const Field = require("../../../../../components/Field/Field.vue2.cjs");
6
6
  const FieldPhone = require("../../../../../components/FieldPhone/FieldPhone.vue.cjs");
7
- const Button = require("../../../../../components/Button/Button.vue2.cjs");
7
+ const Button = require("../../../../../components/Button/Button.vue.cjs");
8
8
  const vueRouter = require("vue-router");
9
9
  const vueI18n = require("vue-i18n");
10
10
  const SignUp = require("../../localization/SignUp.json.cjs");
@@ -2,7 +2,7 @@ import { ref, resolveComponent, openBlock, createElementBlock, createElementVNod
2
2
  import _sfc_main$1 from "../../../../../components/Tab/Tab.vue2.js";
3
3
  import Field from "../../../../../components/Field/Field.vue2.js";
4
4
  import _sfc_main$2 from "../../../../../components/FieldPhone/FieldPhone.vue.js";
5
- import _sfc_main$3 from "../../../../../components/Button/Button.vue2.js";
5
+ import _sfc_main$3 from "../../../../../components/Button/Button.vue.js";
6
6
  import { useRoute, useRouter } from "vue-router";
7
7
  import { useI18n } from "vue-i18n";
8
8
  import text from "../../localization/SignUp.json.js";
@@ -2,13 +2,13 @@
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const vue = require("vue");
4
4
  const vue_f36acd1f = require("../../../../../../node_modules/@unhead/vue/dist/shared/vue.f36acd1f.cjs");
5
- ;/* empty css */
5
+ ;/* empty css */
6
6
  const EmptyState = require("../../../../components/EmptyState/EmptyState.vue.cjs");
7
7
  const CardBlogpost = require("../blocks/CardBlogpost.vue.cjs");
8
8
  const SkeletonBlogpost = require("../../../icons/skeletons/SkeletonBlogpost.vue.cjs");
9
9
  const vueRouter = require("vue-router");
10
10
  ;/* empty css */
11
- ;/* empty css */
11
+ ;/* empty css */
12
12
  const auth = require("../../../auth/views/store/auth.cjs");
13
13
  require("../../../organizations/store/memberships.cjs");
14
14
  require("../../../organizations/store/organizations.cjs");
@@ -1,12 +1,12 @@
1
1
  import { computed, ref, onServerPrefetch, onMounted, openBlock, createElementBlock, createVNode, TransitionGroup, withCtx, Fragment, renderList, createCommentVNode, Transition, createBlock } from "vue";
2
2
  import { u as useHead } from "../../../../../../node_modules/@unhead/vue/dist/shared/vue.f36acd1f.js";
3
- /* empty css */
3
+ /* empty css */
4
4
  import _sfc_main$1 from "../../../../components/EmptyState/EmptyState.vue.js";
5
5
  import _sfc_main$2 from "../blocks/CardBlogpost.vue.js";
6
6
  import SkeletonBlogpost from "../../../icons/skeletons/SkeletonBlogpost.vue.js";
7
7
  import { useRoute } from "vue-router";
8
8
  /* empty css */
9
- /* empty css */
9
+ /* empty css */
10
10
  import { state as state$1 } from "../../../auth/views/store/auth.js";
11
11
  import "../../../organizations/store/memberships.js";
12
12
  import "../../../organizations/store/organizations.js";
@@ -4,8 +4,8 @@ const vue = require("vue");
4
4
  ;/* empty css */
5
5
  const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.cjs");
6
6
  ;/* empty css */
7
- ;/* empty css */
8
- ;/* empty css */
7
+ ;/* empty css */
8
+ ;/* empty css */
9
9
  require("axios");
10
10
  ;/* empty css */
11
11
  const CardBlogpost = require("../blocks/CardBlogpost.vue.cjs");
@@ -2,8 +2,8 @@ import { withAsyncContext, ref, computed, openBlock, createElementBlock, createE
2
2
  /* empty css */
3
3
  import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
4
  /* empty css */
5
- /* empty css */
6
- /* empty css */
5
+ /* empty css */
6
+ /* empty css */
7
7
  import "axios";
8
8
  /* empty css */
9
9
  import _sfc_main$1 from "../blocks/CardBlogpost.vue.js";
@@ -11,7 +11,7 @@ const BlockTags = require("../../../../components/FieldTags/BlockTags.vue.cjs");
11
11
  const Checkbox = require("../../../../components/Checkbox/Checkbox.vue.cjs");
12
12
  const Field = require("../../../../components/Field/Field.vue2.cjs");
13
13
  const SelectMulti = require("../../../../components/SelectMulti/SelectMulti.vue.cjs");
14
- const Button = require("../../../../components/Button/Button.vue2.cjs");
14
+ const Button = require("../../../../components/Button/Button.vue.cjs");
15
15
  const vueRouter = require("vue-router");
16
16
  const blogposts = require("../../store/blogposts.cjs");
17
17
  const auth = require("../../../auth/views/store/auth.cjs");
@@ -9,7 +9,7 @@ import _sfc_main$3 from "../../../../components/FieldTags/BlockTags.vue.js";
9
9
  import _sfc_main$4 from "../../../../components/Checkbox/Checkbox.vue.js";
10
10
  import Field from "../../../../components/Field/Field.vue2.js";
11
11
  import SelectMulti from "../../../../components/SelectMulti/SelectMulti.vue.js";
12
- import _sfc_main$5 from "../../../../components/Button/Button.vue2.js";
12
+ import _sfc_main$5 from "../../../../components/Button/Button.vue.js";
13
13
  import { useRoute, useRouter } from "vue-router";
14
14
  import { read, clean, state as state$1, update, create, remove } from "../../store/blogposts.js";
15
15
  import { state } from "../../../auth/views/store/auth.js";
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const vue = require("vue");
4
- ;/* empty css */
4
+ ;/* empty css */
5
5
  ;/* empty css */
6
6
  ;/* empty css */
7
7
  ;/* empty css */
@@ -1,5 +1,5 @@
1
1
  import { resolveComponent, openBlock, createElementBlock, createElementVNode, createTextVNode, createVNode, withCtx, createBlock } from "vue";
2
- /* empty css */
2
+ /* empty css */
3
3
  /* empty css */
4
4
  /* empty css */
5
5
  /* empty css */
@@ -2,61 +2,82 @@
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const vue = require("vue");
4
4
  const index = require("../../../../../../node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/index.cjs");
5
- const Popup = require("../../../../components/Popup/Popup.vue.cjs");
6
- const Button = require("../../../../components/Button/Button.vue2.cjs");
5
+ const Button = require("../../../../components/Button/Button.vue.cjs");
7
6
  const tickets = require("../../store/tickets.cjs");
8
7
  ;/* empty css */
9
8
  const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.cjs");
10
- const _withScopeId = (n) => (vue.pushScopeId("data-v-8234029e"), n = n(), vue.popScopeId(), n);
11
- const _hoisted_1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("h3", { class: "mn-b-small" }, "Scan QR Code", -1));
12
- const _hoisted_2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("div", { class: "h-max" }, null, -1));
9
+ const _hoisted_1 = {
10
+ key: 0,
11
+ class: "barcode-scanner-modal"
12
+ };
13
13
  const _sfc_main = {
14
14
  __name: "ButtonCheck",
15
15
  emits: ["qrcodecheck"],
16
16
  setup(__props, { emit: __emit }) {
17
17
  const emits = __emit;
18
- const isPublicationPopup = vue.ref(false);
19
18
  const error = vue.ref("");
20
- function openPublicationPopup() {
21
- isPublicationPopup.value = true;
22
- }
23
- function closePublicationPopup() {
24
- isPublicationPopup.value = false;
25
- }
19
+ const isScanning = vue.ref(false);
20
+ vue.onMounted(async () => {
21
+ const { supported } = await index.BarcodeScanner.isSupported();
22
+ if (!supported) {
23
+ error.value = "Barcode scanning is not supported on this device";
24
+ }
25
+ });
26
+ vue.onUnmounted(async () => {
27
+ await index.BarcodeScanner.removeAllListeners();
28
+ });
26
29
  async function startScan() {
27
- openPublicationPopup();
30
+ var _a, _b;
31
+ (_a = document.querySelector("body")) == null ? void 0 : _a.classList.add("barcode-scanner-active");
28
32
  try {
29
- await index.BarcodeScanner.isSupported();
30
- const { barcodes } = await index.BarcodeScanner.scan();
31
- if (barcodes.length > 0) {
32
- await processBarcode(barcodes[0].rawValue);
33
- } else {
34
- throw new Error("No barcode detected");
33
+ const { camera } = await index.BarcodeScanner.checkPermissions();
34
+ if (camera !== "granted") {
35
+ const { camera: newStatus } = await index.BarcodeScanner.requestPermissions();
36
+ if (newStatus !== "granted") {
37
+ throw new Error("Camera permission is required to scan barcodes");
38
+ }
35
39
  }
40
+ (_b = document.querySelector("body")) == null ? void 0 : _b.classList.add("barcode-scanner-active");
41
+ isScanning.value = true;
42
+ await index.BarcodeScanner.addListener("barcodeScanned", async (result) => {
43
+ await processBarcode(result.barcode);
44
+ });
45
+ await index.BarcodeScanner.startScan();
36
46
  } catch (e) {
37
47
  error.value = e.message;
38
48
  alert(`Error: ${error.value}`);
39
- } finally {
40
- closePublicationPopup();
41
49
  }
42
50
  }
43
- async function processBarcode(qrcode) {
51
+ async function stopScan() {
52
+ var _a;
53
+ try {
54
+ (_a = document.querySelector("body")) == null ? void 0 : _a.classList.remove("barcode-scanner-active");
55
+ isScanning.value = false;
56
+ await index.BarcodeScanner.stopScan();
57
+ await index.BarcodeScanner.removeAllListeners();
58
+ } catch (e) {
59
+ error.value = e.message;
60
+ alert(`Error stopping scan: ${error.value}`);
61
+ }
62
+ }
63
+ async function processBarcode(barcode) {
44
64
  try {
45
- if (!qrcode) {
46
- throw new Error("Troubles with qrcode reading");
65
+ if (!barcode) {
66
+ throw new Error("Troubles with barcode reading");
47
67
  }
48
- const response = await tickets.actions.update({ _id: qrcode, status: "used", check: true });
68
+ const response = await tickets.actions.update({ _id: barcode, status: "used", check: true });
49
69
  alert("Ticket checked. And it's all right!");
50
70
  } catch (e) {
51
71
  alert(`Ticket is not found, already used or deactivated!`);
52
72
  } finally {
53
73
  emits("qrcodecheck");
74
+ await stopScan();
54
75
  }
55
76
  }
56
77
  return (_ctx, _cache) => {
57
78
  return vue.openBlock(), vue.createElementBlock("div", null, [
58
79
  vue.createVNode(Button.default, {
59
- submit: startScan,
80
+ onClick: startScan,
60
81
  class: "bg-main button-small radius-extra button"
61
82
  }, {
62
83
  default: vue.withCtx(() => [
@@ -64,22 +85,21 @@ const _sfc_main = {
64
85
  ]),
65
86
  _: 1
66
87
  }),
67
- vue.createVNode(Popup.default, {
68
- title: "Scan QR Code",
69
- onClosePopup: closePublicationPopup,
70
- isPopupOpen: isPublicationPopup.value,
71
- class: "w-max-30r h-max-30r t-left pd-big bg-white radius-big"
72
- }, {
73
- default: vue.withCtx(() => [
74
- _hoisted_1,
75
- _hoisted_2
76
- ]),
77
- _: 1
78
- }, 8, ["isPopupOpen"])
88
+ isScanning.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
89
+ vue.createVNode(Button.default, {
90
+ onClick: stopScan,
91
+ class: "stop-scan-button"
92
+ }, {
93
+ default: vue.withCtx(() => [
94
+ vue.createTextVNode("Stop Scan")
95
+ ]),
96
+ _: 1
97
+ })
98
+ ])) : vue.createCommentVNode("", true)
79
99
  ]);
80
100
  };
81
101
  }
82
102
  };
83
- const ButtonCheck = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-8234029e"]]);
103
+ const ButtonCheck = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-f8a6dd40"]]);
84
104
  exports.default = ButtonCheck;
85
105
  //# sourceMappingURL=ButtonCheck.vue.cjs.map