@ozdao/prometheus-framework 0.2.249 → 0.2.251
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/builder.js +8 -9
- package/dist/builder.mjs +8 -9
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +1 -1
- package/dist/prometheus-framework/src/components/Slider/Slider.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Slider/Slider.vue.js +1 -1
- package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +46 -4
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +46 -4
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EventsBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EventsBackoffice.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EventsBackoffice.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EventsBackoffice.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/events.client.cjs +35 -13
- package/dist/prometheus-framework/src/modules/events/events.client.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/events/events.client.js +41 -19
- package/dist/prometheus-framework/src/modules/events/events.client.js.map +1 -1
- package/dist/prometheus-framework/src/modules/events/router/events.cjs +95 -91
- package/dist/prometheus-framework/src/modules/events/router/events.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/events/router/events.js +94 -90
- package/dist/prometheus-framework/src/modules/events/router/events.js.map +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +4 -4
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs +2 -10
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.js +3 -11
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.js.map +1 -1
- package/dist/prometheus-framework/src/modules/pages/pages.client.cjs +693 -693
- package/dist/prometheus-framework/src/modules/pages/pages.client.js +693 -693
- package/dist/prometheus-framework/src/modules/pages/views/components/blocks/CardPage.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/pages/views/components/blocks/CardPage.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +3 -3
- package/package.json +1 -1
- package/src/builder/webpack/webpack.config.spa.js +7 -7
- package/src/modules/events/components/elements/ButtonCheck.vue +28 -28
- package/src/modules/events/components/pages/EventsBackoffice.vue +1 -1
- package/src/modules/events/events.client.js +43 -18
- package/src/modules/events/router/events.js +79 -66
- package/src/modules/governance/governance.client.js +62 -0
- package/src/modules/governance/governance.server.js +56 -0
- package/src/modules/organizations/router/organizations.js +4 -11
package/dist/builder.js
CHANGED
@@ -44,7 +44,7 @@ const require$$7 = require("terser-webpack-plugin");
|
|
44
44
|
const require$$8 = require("workbox-webpack-plugin");
|
45
45
|
const require$$9 = require("purgecss-webpack-plugin");
|
46
46
|
const require$$2$2 = require("webpack-node-externals");
|
47
|
-
|
47
|
+
require("copy-webpack-plugin");
|
48
48
|
const require$$8$1 = require("html-webpack-plugin");
|
49
49
|
const require$$4$3 = require("webpack-manifest-plugin");
|
50
50
|
function getDefaultExportFromCjs(x) {
|
@@ -695,7 +695,6 @@ const path$1 = require$$0$1;
|
|
695
695
|
const webpack$2 = require$$1;
|
696
696
|
const { merge: merge$1 } = require$$3$2;
|
697
697
|
const CssMinimizerPlugin = require$$6$2;
|
698
|
-
const CopyWebpackPlugin = require$$6$3;
|
699
698
|
const TerserPlugin = require$$7;
|
700
699
|
const HtmlWebpackPlugin = require$$8$1;
|
701
700
|
const { StatsWriterPlugin } = require$$4$2;
|
@@ -741,14 +740,14 @@ var webpack_config_spa = (projectRoot) => {
|
|
741
740
|
},
|
742
741
|
filename: "index.html",
|
743
742
|
inject: "body"
|
744
|
-
}),
|
745
|
-
new CopyWebpackPlugin({
|
746
|
-
patterns: [
|
747
|
-
{ from: path$1.resolve(projectRoot, "../public/logo"), to: "logo" },
|
748
|
-
{ from: path$1.resolve(projectRoot, "../public/walkthrough"), to: "walkthrough" },
|
749
|
-
{ from: path$1.resolve(projectRoot, "../public/icons"), to: "icons" }
|
750
|
-
]
|
751
743
|
})
|
744
|
+
// new CopyWebpackPlugin({
|
745
|
+
// patterns: [
|
746
|
+
// { from: path.resolve(projectRoot, "../public/logo"), to: 'logo' },
|
747
|
+
// { from: path.resolve(projectRoot, "../public/walkthrough"), to: 'walkthrough' },
|
748
|
+
// { from: path.resolve(projectRoot, "../public/icons"), to: 'icons' }
|
749
|
+
// ]
|
750
|
+
// })
|
752
751
|
// new ServiceWorkerPlugin()
|
753
752
|
],
|
754
753
|
optimization: {
|
package/dist/builder.mjs
CHANGED
@@ -21,7 +21,7 @@ import require$$7 from "terser-webpack-plugin";
|
|
21
21
|
import require$$8 from "workbox-webpack-plugin";
|
22
22
|
import require$$9 from "purgecss-webpack-plugin";
|
23
23
|
import require$$2$2 from "webpack-node-externals";
|
24
|
-
import
|
24
|
+
import "copy-webpack-plugin";
|
25
25
|
import require$$8$1 from "html-webpack-plugin";
|
26
26
|
import require$$4$3 from "webpack-manifest-plugin";
|
27
27
|
function getDefaultExportFromCjs(x) {
|
@@ -672,7 +672,6 @@ const path$1 = require$$0$1;
|
|
672
672
|
const webpack$2 = require$$1;
|
673
673
|
const { merge: merge$1 } = require$$3$2;
|
674
674
|
const CssMinimizerPlugin = require$$6$2;
|
675
|
-
const CopyWebpackPlugin = require$$6$3;
|
676
675
|
const TerserPlugin = require$$7;
|
677
676
|
const HtmlWebpackPlugin = require$$8$1;
|
678
677
|
const { StatsWriterPlugin } = require$$4$2;
|
@@ -718,14 +717,14 @@ var webpack_config_spa = (projectRoot) => {
|
|
718
717
|
},
|
719
718
|
filename: "index.html",
|
720
719
|
inject: "body"
|
721
|
-
}),
|
722
|
-
new CopyWebpackPlugin({
|
723
|
-
patterns: [
|
724
|
-
{ from: path$1.resolve(projectRoot, "../public/logo"), to: "logo" },
|
725
|
-
{ from: path$1.resolve(projectRoot, "../public/walkthrough"), to: "walkthrough" },
|
726
|
-
{ from: path$1.resolve(projectRoot, "../public/icons"), to: "icons" }
|
727
|
-
]
|
728
720
|
})
|
721
|
+
// new CopyWebpackPlugin({
|
722
|
+
// patterns: [
|
723
|
+
// { from: path.resolve(projectRoot, "../public/logo"), to: 'logo' },
|
724
|
+
// { from: path.resolve(projectRoot, "../public/walkthrough"), to: 'walkthrough' },
|
725
|
+
// { from: path.resolve(projectRoot, "../public/icons"), to: 'icons' }
|
726
|
+
// ]
|
727
|
+
// })
|
729
728
|
// new ServiceWorkerPlugin()
|
730
729
|
],
|
731
730
|
optimization: {
|
@@ -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.
|
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.
|
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.
|
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.
|
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",
|
package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs
CHANGED
@@ -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.
|
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,
|
package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js
CHANGED
@@ -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.
|
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";
|
package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.cjs
CHANGED
@@ -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.
|
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");
|
package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.js
CHANGED
@@ -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.
|
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.
|
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.
|
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";
|
package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.cjs
CHANGED
@@ -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.
|
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");
|
package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.js
CHANGED
@@ -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.
|
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.
|
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.
|
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.
|
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.
|
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";
|
package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs
CHANGED
@@ -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 vueRouter = require("vue-router");
|
5
|
-
const Select = require("../../../../components/Select/Select.
|
5
|
+
const Select = require("../../../../components/Select/Select.vue.cjs");
|
6
6
|
const Feed = require("../../../../components/Feed/Feed.vue.cjs");
|
7
7
|
const CardOrganization = require("../../../organizations/components/blocks/CardOrganization.vue.cjs");
|
8
8
|
const IconFeatured = require("../../../icons/entities/IconFeatured.vue.cjs");
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { resolveComponent, openBlock, createElementBlock, createElementVNode, normalizeClass, unref, createVNode, createTextVNode, createCommentVNode, createBlock, withCtx, Transition, resolveDynamicComponent, Fragment, renderList } from "vue";
|
2
2
|
import { useRoute, useRouter } from "vue-router";
|
3
|
-
import Select from "../../../../components/Select/Select.
|
3
|
+
import Select from "../../../../components/Select/Select.vue.js";
|
4
4
|
import _sfc_main$5 from "../../../../components/Feed/Feed.vue.js";
|
5
5
|
import _sfc_main$6 from "../../../organizations/components/blocks/CardOrganization.vue.js";
|
6
6
|
import _sfc_main$1 from "../../../icons/entities/IconFeatured.vue.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_65b7bcda = require("../../../../../../node_modules/@unhead/vue/dist/shared/vue.65b7bcda.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.65b7bcda.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";
|
@@ -3,9 +3,9 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
3
3
|
const vue = require("vue");
|
4
4
|
;/* empty css */
|
5
5
|
const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.cjs");
|
6
|
-
;/* empty css
|
7
|
-
;/* empty css
|
8
|
-
;/* empty css
|
6
|
+
;/* 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");
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { withAsyncContext, ref, computed, openBlock, createElementBlock, createElementVNode, unref, Fragment, renderList, createBlock, withCtx } from "vue";
|
2
2
|
/* empty css */
|
3
3
|
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
4
|
-
/* empty css
|
5
|
-
/* empty css
|
6
|
-
/* empty css
|
4
|
+
/* 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";
|
package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs
CHANGED
@@ -4,14 +4,14 @@ const vue = require("vue");
|
|
4
4
|
require("isomorphic-dompurify");
|
5
5
|
;/* empty css */
|
6
6
|
const Constructor = require("../../../constructor/components/sections/Constructor.vue.cjs");
|
7
|
-
const Popup = require("../../../../components/Popup/Popup.
|
7
|
+
const Popup = require("../../../../components/Popup/Popup.vue.cjs");
|
8
8
|
;/* empty css */
|
9
9
|
;/* empty css */
|
10
10
|
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.
|
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");
|
package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js
CHANGED
@@ -2,14 +2,14 @@ import { ref, onMounted, computed, openBlock, createElementBlock, createElementV
|
|
2
2
|
import "isomorphic-dompurify";
|
3
3
|
/* empty css */
|
4
4
|
import _sfc_main$1 from "../../../constructor/components/sections/Constructor.vue.js";
|
5
|
-
import _sfc_main$2 from "../../../../components/Popup/Popup.
|
5
|
+
import _sfc_main$2 from "../../../../components/Popup/Popup.vue.js";
|
6
6
|
/* empty css */
|
7
7
|
/* empty css */
|
8
8
|
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.
|
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";
|
package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs
CHANGED
@@ -2,8 +2,8 @@
|
|
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 Button = require("../../../../components/Button/Button.
|
6
|
-
require("../../store/tickets.cjs");
|
5
|
+
const Button = require("../../../../components/Button/Button.vue.cjs");
|
6
|
+
const tickets = require("../../store/tickets.cjs");
|
7
7
|
;/* empty css */
|
8
8
|
const _hoisted_1 = {
|
9
9
|
key: 0,
|
@@ -14,16 +14,18 @@ const _hoisted_2 = {
|
|
14
14
|
class: "zoom-ratio-wrapper"
|
15
15
|
};
|
16
16
|
const _hoisted_3 = ["min", "max"];
|
17
|
+
const SCAN_TIMEOUT = 1e3;
|
17
18
|
const _sfc_main = {
|
18
19
|
__name: "ButtonCheck",
|
19
20
|
emits: ["qrcodecheck"],
|
20
21
|
setup(__props, { emit: __emit }) {
|
22
|
+
const emits = __emit;
|
21
23
|
const error = vue.ref("");
|
22
24
|
const isScanning = vue.ref(false);
|
23
25
|
const isTorchAvailable = vue.ref(false);
|
24
26
|
const minZoomRatio = vue.ref(void 0);
|
25
27
|
const maxZoomRatio = vue.ref(void 0);
|
26
|
-
vue.ref(false);
|
28
|
+
const isProcessing = vue.ref(false);
|
27
29
|
vue.onMounted(async () => {
|
28
30
|
const { supported } = await index.BarcodeScanner.isSupported();
|
29
31
|
if (!supported) {
|
@@ -33,14 +35,30 @@ const _sfc_main = {
|
|
33
35
|
isTorchAvailable.value = available;
|
34
36
|
});
|
35
37
|
vue.onUnmounted(async () => {
|
36
|
-
await stopScan();
|
37
38
|
});
|
38
39
|
async function startScan() {
|
39
40
|
var _a, _b;
|
40
41
|
try {
|
42
|
+
const { camera } = await index.BarcodeScanner.checkPermissions();
|
43
|
+
if (camera !== "granted") {
|
44
|
+
const { camera: newStatus } = await index.BarcodeScanner.requestPermissions();
|
45
|
+
if (newStatus !== "granted") {
|
46
|
+
throw new Error("Camera permission is required to scan barcodes");
|
47
|
+
}
|
48
|
+
}
|
41
49
|
(_a = document.querySelector("body")) == null ? void 0 : _a.classList.add("barcode-scanner-active");
|
42
50
|
(_b = document.querySelector("html")) == null ? void 0 : _b.classList.add("barcode-scanner-active-html");
|
43
51
|
isScanning.value = true;
|
52
|
+
await index.BarcodeScanner.addListener("barcodeScanned", async (result) => {
|
53
|
+
if (!isProcessing.value) {
|
54
|
+
await processBarcode(result.barcode);
|
55
|
+
}
|
56
|
+
});
|
57
|
+
await index.BarcodeScanner.startScan();
|
58
|
+
const { zoomRatio: min } = await index.BarcodeScanner.getMinZoomRatio();
|
59
|
+
const { zoomRatio: max } = await index.BarcodeScanner.getMaxZoomRatio();
|
60
|
+
minZoomRatio.value = min;
|
61
|
+
maxZoomRatio.value = max;
|
44
62
|
} catch (e) {
|
45
63
|
error.value = e.message;
|
46
64
|
alert(`Error: ${error.value}`);
|
@@ -59,6 +77,30 @@ const _sfc_main = {
|
|
59
77
|
alert(`Error stopping scan: ${error.value}`);
|
60
78
|
}
|
61
79
|
}
|
80
|
+
async function processBarcode(barcode) {
|
81
|
+
if (isProcessing.value) return;
|
82
|
+
isProcessing.value = true;
|
83
|
+
try {
|
84
|
+
if (!barcode || !barcode.rawValue) {
|
85
|
+
throw new Error("Invalid barcode data");
|
86
|
+
}
|
87
|
+
console.log("barcode is", barcode);
|
88
|
+
const response = await tickets.actions.update({
|
89
|
+
_id: barcode.rawValue,
|
90
|
+
status: "used",
|
91
|
+
check: true
|
92
|
+
});
|
93
|
+
alert("Ticket checked. And it's all right!");
|
94
|
+
emits("qrcodecheck");
|
95
|
+
} catch (e) {
|
96
|
+
console.error(e);
|
97
|
+
alert(`Ticket is not found, already used or deactivated!`);
|
98
|
+
} finally {
|
99
|
+
setTimeout(() => {
|
100
|
+
isProcessing.value = false;
|
101
|
+
}, SCAN_TIMEOUT);
|
102
|
+
}
|
103
|
+
}
|
62
104
|
async function setZoomRatio(event) {
|
63
105
|
const zoomRatio = parseFloat(event.target.value);
|
64
106
|
await index.BarcodeScanner.setZoomRatio({ zoomRatio });
|
package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ButtonCheck.vue.cjs","sources":["../../../../../../../src/modules/events/components/elements/ButtonCheck.vue"],"sourcesContent":["<template>\n <div>\n <Button @click=\"startScan\" class=\"bg-main button-small radius-extra button\">\n Check Tickets\n </Button>\n \n <teleport to=\"body\" v-if=\"isScanning\">\n
|
1
|
+
{"version":3,"file":"ButtonCheck.vue.cjs","sources":["../../../../../../../src/modules/events/components/elements/ButtonCheck.vue"],"sourcesContent":["<template>\n <div>\n <Button @click=\"startScan\" class=\"bg-main button-small radius-extra button\">\n Check Tickets\n </Button>\n \n <teleport to=\"body\" v-if=\"isScanning\">\n <div v-if=\"isScanning\" class=\"barcode-scanner-modal\">\n <div class=\"square\"></div>\n <div class=\"zoom-ratio-wrapper\" v-if=\"minZoomRatio !== undefined && maxZoomRatio !== undefined\">\n <input type=\"range\" :min=\"minZoomRatio\" :max=\"maxZoomRatio\" @input=\"setZoomRatio\" />\n </div>\n <Button @click=\"stopScan\" class=\"bg-white t-black stop-scan-button\">Stop Scan</Button>\n <Button v-if=\"isTorchAvailable\" @click=\"toggleTorch\" class=\"bg-white torch-button\">\n Toggle Torch\n </Button>\n </div>\n </teleport>\n </div>\n</template>\n\n<script setup>\nimport { ref, onMounted, onUnmounted } from 'vue'\nimport { BarcodeScanner } from '@capacitor-mlkit/barcode-scanning'\nimport Button from '@pf/src/components/Button/Button.vue'\nimport * as tickets from '@pf/src/modules/events/store/tickets'\n\nconst emits = defineEmits(['qrcodecheck'])\nconst error = ref('')\nconst isScanning = ref(false)\nconst isTorchAvailable = ref(false)\nconst minZoomRatio = ref(undefined)\nconst maxZoomRatio = ref(undefined)\nconst isProcessing = ref(false)\n\nonMounted(async () => {\n const { supported } = await BarcodeScanner.isSupported()\n if (!supported) {\n error.value = 'Barcode scanning is not supported on this device'\n }\n const { available } = await BarcodeScanner.isTorchAvailable()\n isTorchAvailable.value = available\n})\n\nonUnmounted(async () => {\n // await stopScan()\n})\n\nconst SCAN_TIMEOUT = 1000 // 5 секунд (можно изменить по вашему усмотрению)\n\nasync function startScan() {\n try {\n const { camera } = await BarcodeScanner.checkPermissions()\n if (camera !== 'granted') {\n const { camera: newStatus } = await BarcodeScanner.requestPermissions()\n if (newStatus !== 'granted') {\n throw new Error('Camera permission is required to scan barcodes')\n }\n }\n document.querySelector('body')?.classList.add('barcode-scanner-active')\n document.querySelector('html')?.classList.add('barcode-scanner-active-html')\n isScanning.value = true\n await BarcodeScanner.addListener('barcodeScanned', async (result) => {\n if (!isProcessing.value) {\n await processBarcode(result.barcode)\n }\n })\n await BarcodeScanner.startScan()\n const { zoomRatio: min } = await BarcodeScanner.getMinZoomRatio()\n const { zoomRatio: max } = await BarcodeScanner.getMaxZoomRatio()\n minZoomRatio.value = min\n maxZoomRatio.value = max\n } catch (e) {\n error.value = e.message\n alert(`Error: ${error.value}`)\n }\n}\n\nasync function stopScan() {\n try {\n document.querySelector('body')?.classList.remove('barcode-scanner-active')\n document.querySelector('html')?.classList.remove('barcode-scanner-active-html')\n isScanning.value = false\n await BarcodeScanner.stopScan()\n await BarcodeScanner.removeAllListeners()\n } catch (e) {\n error.value = e.message\n alert(`Error stopping scan: ${error.value}`)\n }\n}\n\nasync function processBarcode(barcode) {\n if (isProcessing.value) return;\n isProcessing.value = true;\n \n try {\n if (!barcode || !barcode.rawValue) {\n throw new Error('Invalid barcode data');\n }\n console.log('barcode is', barcode);\n\n const response = await tickets.actions.update({\n _id: barcode.rawValue,\n status: 'used',\n check: true\n });\n\n alert(\"Ticket checked. And it's all right!\");\n emits('qrcodecheck');\n } catch (e) {\n console.error(e);\n alert(`Ticket is not found, already used or deactivated!`);\n } finally {\n // Устанавливаем таймаут перед следующим сканированием\n setTimeout(() => {\n isProcessing.value = false;\n }, SCAN_TIMEOUT);\n }\n}\n\nasync function setZoomRatio(event) {\n const zoomRatio = parseFloat(event.target.value)\n await BarcodeScanner.setZoomRatio({ zoomRatio })\n}\n\nasync function toggleTorch() {\n await BarcodeScanner.toggleTorch()\n}\n</script>\n\n<style>\n.barcode-scanner-modal {\n visibility: visible;\n position: fixed;\n top: 0;\n left: 0%;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0);\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n}\n\n.square {\n width: 200px;\n height: 200px;\n border: 2px solid white;\n border-radius: 10px;\n}\n\n.zoom-ratio-wrapper {\n width: 80%;\n margin-top: 20px;\n}\n\n.stop-scan-button,\n.torch-button {\n margin-top: 20px;\n}\n\n/* Existing styles */\nbody.barcode-scanner-active {\n left: -100%;\n/* visibility: hidden !important;*/\n background: transparent !important;\n --background: transparent;\n --ion-background-color: transparent;\n}\n\nhtml.barcode-scanner-active-html {\n background: transparent !important;\n}\n</style>\n"],"names":["ref","onMounted","BarcodeScanner","onUnmounted","tickets.actions"],"mappings":"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"}
|