@ozdao/prometheus-framework 0.2.234 → 0.2.236
Sign up to get free protection for your applications and to get access to all the features.
- 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/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 +2 -2
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
- 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 +50 -7
- 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 +51 -8
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +1 -1
- 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/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/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.js +1 -1
- 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/OrderCreateBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.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 +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +2 -2
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/pages/pages.client.cjs +632 -605
- package/dist/prometheus-framework/src/modules/pages/pages.client.js +632 -605
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.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/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 +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +2 -2
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.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 +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.js +1 -1
- 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/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +1 -1
- package/package.json +1 -1
- package/src/modules/events/components/elements/ButtonCheck.vue +65 -9
@@ -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.vue2.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.vue2.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.vue2.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.vue2.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.vue2.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.vue2.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.vue2.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.vue2.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.vue2.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.vue2.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.vue2.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.vue2.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.vue2.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.vue2.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.vue2.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.vue2.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";
|
package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs
CHANGED
@@ -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.
|
14
|
+
const Button = require("../../../../components/Button/Button.vue2.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
@@ -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.
|
12
|
+
import _sfc_main$5 from "../../../../components/Button/Button.vue2.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,14 +2,21 @@
|
|
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.
|
5
|
+
const Button = require("../../../../components/Button/Button.vue2.cjs");
|
6
6
|
const tickets = require("../../store/tickets.cjs");
|
7
7
|
;/* empty css */
|
8
8
|
const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.cjs");
|
9
|
+
const _withScopeId = (n) => (vue.pushScopeId("data-v-7a4f2d02"), n = n(), vue.popScopeId(), n);
|
9
10
|
const _hoisted_1 = {
|
10
11
|
key: 0,
|
11
12
|
class: "barcode-scanner-modal"
|
12
13
|
};
|
14
|
+
const _hoisted_2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("div", { class: "square" }, null, -1));
|
15
|
+
const _hoisted_3 = {
|
16
|
+
key: 0,
|
17
|
+
class: "zoom-ratio-wrapper"
|
18
|
+
};
|
19
|
+
const _hoisted_4 = ["min", "max"];
|
13
20
|
const _sfc_main = {
|
14
21
|
__name: "ButtonCheck",
|
15
22
|
emits: ["qrcodecheck"],
|
@@ -17,18 +24,22 @@ const _sfc_main = {
|
|
17
24
|
const emits = __emit;
|
18
25
|
const error = vue.ref("");
|
19
26
|
const isScanning = vue.ref(false);
|
27
|
+
const isTorchAvailable = vue.ref(false);
|
28
|
+
const minZoomRatio = vue.ref(void 0);
|
29
|
+
const maxZoomRatio = vue.ref(void 0);
|
20
30
|
vue.onMounted(async () => {
|
21
31
|
const { supported } = await index.BarcodeScanner.isSupported();
|
22
32
|
if (!supported) {
|
23
33
|
error.value = "Barcode scanning is not supported on this device";
|
24
34
|
}
|
35
|
+
const { available } = await index.BarcodeScanner.isTorchAvailable();
|
36
|
+
isTorchAvailable.value = available;
|
25
37
|
});
|
26
38
|
vue.onUnmounted(async () => {
|
27
|
-
await
|
39
|
+
await stopScan();
|
28
40
|
});
|
29
41
|
async function startScan() {
|
30
42
|
var _a, _b;
|
31
|
-
(_a = document.querySelector("body")) == null ? void 0 : _a.classList.add("barcode-scanner-active");
|
32
43
|
try {
|
33
44
|
const { camera } = await index.BarcodeScanner.checkPermissions();
|
34
45
|
if (camera !== "granted") {
|
@@ -37,21 +48,27 @@ const _sfc_main = {
|
|
37
48
|
throw new Error("Camera permission is required to scan barcodes");
|
38
49
|
}
|
39
50
|
}
|
40
|
-
(
|
51
|
+
(_a = document.querySelector("body")) == null ? void 0 : _a.classList.add("barcode-scanner-active");
|
52
|
+
(_b = document.querySelector("html")) == null ? void 0 : _b.classList.add("barcode-scanner-active-html");
|
41
53
|
isScanning.value = true;
|
42
54
|
await index.BarcodeScanner.addListener("barcodeScanned", async (result) => {
|
43
55
|
await processBarcode(result.barcode);
|
44
56
|
});
|
45
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;
|
46
62
|
} catch (e) {
|
47
63
|
error.value = e.message;
|
48
64
|
alert(`Error: ${error.value}`);
|
49
65
|
}
|
50
66
|
}
|
51
67
|
async function stopScan() {
|
52
|
-
var _a;
|
68
|
+
var _a, _b;
|
53
69
|
try {
|
54
70
|
(_a = document.querySelector("body")) == null ? void 0 : _a.classList.remove("barcode-scanner-active");
|
71
|
+
(_b = document.querySelector("html")) == null ? void 0 : _b.classList.remove("barcode-scanner-active-html");
|
55
72
|
isScanning.value = false;
|
56
73
|
await index.BarcodeScanner.stopScan();
|
57
74
|
await index.BarcodeScanner.removeAllListeners();
|
@@ -74,6 +91,13 @@ const _sfc_main = {
|
|
74
91
|
await stopScan();
|
75
92
|
}
|
76
93
|
}
|
94
|
+
async function setZoomRatio(event) {
|
95
|
+
const zoomRatio = parseFloat(event.target.value);
|
96
|
+
await index.BarcodeScanner.setZoomRatio({ zoomRatio });
|
97
|
+
}
|
98
|
+
async function toggleTorch() {
|
99
|
+
await index.BarcodeScanner.toggleTorch();
|
100
|
+
}
|
77
101
|
return (_ctx, _cache) => {
|
78
102
|
return vue.openBlock(), vue.createElementBlock("div", null, [
|
79
103
|
vue.createVNode(Button.default, {
|
@@ -86,6 +110,15 @@ const _sfc_main = {
|
|
86
110
|
_: 1
|
87
111
|
}),
|
88
112
|
isScanning.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
113
|
+
_hoisted_2,
|
114
|
+
minZoomRatio.value !== void 0 && maxZoomRatio.value !== void 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3, [
|
115
|
+
vue.createElementVNode("input", {
|
116
|
+
type: "range",
|
117
|
+
min: minZoomRatio.value,
|
118
|
+
max: maxZoomRatio.value,
|
119
|
+
onInput: setZoomRatio
|
120
|
+
}, null, 40, _hoisted_4)
|
121
|
+
])) : vue.createCommentVNode("", true),
|
89
122
|
vue.createVNode(Button.default, {
|
90
123
|
onClick: stopScan,
|
91
124
|
class: "stop-scan-button"
|
@@ -94,12 +127,22 @@ const _sfc_main = {
|
|
94
127
|
vue.createTextVNode("Stop Scan")
|
95
128
|
]),
|
96
129
|
_: 1
|
97
|
-
})
|
130
|
+
}),
|
131
|
+
isTorchAvailable.value ? (vue.openBlock(), vue.createBlock(Button.default, {
|
132
|
+
key: 1,
|
133
|
+
onClick: toggleTorch,
|
134
|
+
class: "torch-button"
|
135
|
+
}, {
|
136
|
+
default: vue.withCtx(() => [
|
137
|
+
vue.createTextVNode(" Toggle Torch ")
|
138
|
+
]),
|
139
|
+
_: 1
|
140
|
+
})) : vue.createCommentVNode("", true)
|
98
141
|
])) : vue.createCommentVNode("", true)
|
99
142
|
]);
|
100
143
|
};
|
101
144
|
}
|
102
145
|
};
|
103
|
-
const ButtonCheck = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
146
|
+
const ButtonCheck = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-7a4f2d02"]]);
|
104
147
|
exports.default = ButtonCheck;
|
105
148
|
//# sourceMappingURL=ButtonCheck.vue.cjs.map
|
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 <div v-if=\"isScanning\" class=\"barcode-scanner-modal\">\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 <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=\"stop-scan-button\">Stop Scan</Button>\n <Button v-if=\"isTorchAvailable\" @click=\"toggleTorch\" class=\"torch-button\">\n Toggle Torch\n </Button>\n </div>\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)\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\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\n document.querySelector('body')?.classList.add('barcode-scanner-active')\n document.querySelector('html')?.classList.add('barcode-scanner-active-html')\n isScanning.value = true\n\n await BarcodeScanner.addListener('barcodeScanned', async (result) => {\n await processBarcode(result.barcode)\n })\n\n await BarcodeScanner.startScan()\n\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 try {\n if (!barcode) {\n throw new Error('Troubles with barcode reading')\n }\n const response = await tickets.actions.update({ _id: barcode, status: 'used', check: true })\n alert(\"Ticket checked. And it's all right!\")\n } catch (e) {\n alert(`Ticket is not found, already used or deactivated!`)\n } finally {\n emits('qrcodecheck')\n await stopScan()\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 scoped>\n.barcode-scanner-modal {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.8);\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 --background: transparent;\n --ion-background-color: transparent;\n}\n\nhtml.barcode-scanner-active-html {\n background: transparent !important;\n}\n\n@media (prefers-color-scheme: dark) {\n .barcode-scanner-modal {\n --background: transparent;\n --ion-background-color: transparent;\n }\n}\n</style>\n"],"names":["ref","onMounted","BarcodeScanner","onUnmounted","tickets.actions"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAwBA,UAAM,QAAQ;AACd,UAAM,QAAQA,IAAG,IAAC,EAAE;AACpB,UAAM,aAAaA,IAAG,IAAC,KAAK;AAC5B,UAAM,mBAAmBA,IAAG,IAAC,KAAK;AAClC,UAAM,eAAeA,IAAG,IAAC,MAAS;AAClC,UAAM,eAAeA,IAAG,IAAC,MAAS;AAElCC,QAAAA,UAAU,YAAY;AACpB,YAAM,EAAE,UAAS,IAAK,MAAMC,MAAAA,eAAe,YAAa;AACxD,UAAI,CAAC,WAAW;AACd,cAAM,QAAQ;AAAA,MACf;AACD,YAAM,EAAE,UAAS,IAAK,MAAMA,MAAAA,eAAe,iBAAkB;AAC7D,uBAAiB,QAAQ;AAAA,IAC3B,CAAC;AAEDC,QAAAA,YAAY,YAAY;AACtB,YAAM,SAAU;AAAA,IAClB,CAAC;AAED,mBAAe,YAAY;;AACzB,UAAI;AACF,cAAM,EAAE,OAAM,IAAK,MAAMD,MAAAA,eAAe,iBAAkB;AAC1D,YAAI,WAAW,WAAW;AACxB,gBAAM,EAAE,QAAQ,UAAW,IAAG,MAAMA,MAAAA,eAAe,mBAAoB;AACvE,cAAI,cAAc,WAAW;AAC3B,kBAAM,IAAI,MAAM,gDAAgD;AAAA,UACjE;AAAA,QACF;AAED,uBAAS,cAAc,MAAM,MAA7B,mBAAgC,UAAU,IAAI;AAC9C,uBAAS,cAAc,MAAM,MAA7B,mBAAgC,UAAU,IAAI;AAC9C,mBAAW,QAAQ;AAEnB,cAAMA,qBAAe,YAAY,kBAAkB,OAAO,WAAW;AACnE,gBAAM,eAAe,OAAO,OAAO;AAAA,QACzC,CAAK;AAED,cAAMA,MAAAA,eAAe,UAAW;AAEhC,cAAM,EAAE,WAAW,IAAK,IAAG,MAAMA,MAAAA,eAAe,gBAAiB;AACjE,cAAM,EAAE,WAAW,IAAK,IAAG,MAAMA,MAAAA,eAAe,gBAAiB;AACjE,qBAAa,QAAQ;AACrB,qBAAa,QAAQ;AAAA,MACtB,SAAQ,GAAG;AACV,cAAM,QAAQ,EAAE;AAChB,cAAM,UAAU,MAAM,KAAK,EAAE;AAAA,MAC9B;AAAA,IACH;AAEA,mBAAe,WAAW;;AACxB,UAAI;AACF,uBAAS,cAAc,MAAM,MAA7B,mBAAgC,UAAU,OAAO;AACjD,uBAAS,cAAc,MAAM,MAA7B,mBAAgC,UAAU,OAAO;AACjD,mBAAW,QAAQ;AACnB,cAAMA,MAAAA,eAAe,SAAU;AAC/B,cAAMA,MAAAA,eAAe,mBAAoB;AAAA,MAC1C,SAAQ,GAAG;AACV,cAAM,QAAQ,EAAE;AAChB,cAAM,wBAAwB,MAAM,KAAK,EAAE;AAAA,MAC5C;AAAA,IACH;AAEA,mBAAe,eAAe,SAAS;AACrC,UAAI;AACF,YAAI,CAAC,SAAS;AACZ,gBAAM,IAAI,MAAM,+BAA+B;AAAA,QAChD;AACD,cAAM,WAAW,MAAME,gBAAgB,OAAO,EAAE,KAAK,SAAS,QAAQ,QAAQ,OAAO,KAAI,CAAE;AAC3F,cAAM,qCAAqC;AAAA,MAC5C,SAAQ,GAAG;AACV,cAAM,mDAAmD;AAAA,MAC7D,UAAY;AACR,cAAM,aAAa;AACnB,cAAM,SAAU;AAAA,MACjB;AAAA,IACH;AAEA,mBAAe,aAAa,OAAO;AACjC,YAAM,YAAY,WAAW,MAAM,OAAO,KAAK;AAC/C,YAAMF,qBAAe,aAAa,EAAE,WAAW;AAAA,IACjD;AAEA,mBAAe,cAAc;AAC3B,YAAMA,MAAAA,eAAe,YAAa;AAAA,IACpC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -1,13 +1,20 @@
|
|
1
|
-
import { ref, onMounted, onUnmounted, openBlock, createElementBlock, createVNode, withCtx, createTextVNode, createCommentVNode } from "vue";
|
1
|
+
import { ref, onMounted, onUnmounted, openBlock, createElementBlock, createVNode, withCtx, createTextVNode, createElementVNode, createCommentVNode, createBlock, pushScopeId, popScopeId } from "vue";
|
2
2
|
import { BarcodeScanner } from "../../../../../../node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/index.js";
|
3
|
-
import _sfc_main$1 from "../../../../components/Button/Button.
|
3
|
+
import _sfc_main$1 from "../../../../components/Button/Button.vue2.js";
|
4
4
|
import { actions } from "../../store/tickets.js";
|
5
5
|
/* empty css */
|
6
6
|
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
7
|
+
const _withScopeId = (n) => (pushScopeId("data-v-7a4f2d02"), n = n(), popScopeId(), n);
|
7
8
|
const _hoisted_1 = {
|
8
9
|
key: 0,
|
9
10
|
class: "barcode-scanner-modal"
|
10
11
|
};
|
12
|
+
const _hoisted_2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "square" }, null, -1));
|
13
|
+
const _hoisted_3 = {
|
14
|
+
key: 0,
|
15
|
+
class: "zoom-ratio-wrapper"
|
16
|
+
};
|
17
|
+
const _hoisted_4 = ["min", "max"];
|
11
18
|
const _sfc_main = {
|
12
19
|
__name: "ButtonCheck",
|
13
20
|
emits: ["qrcodecheck"],
|
@@ -15,18 +22,22 @@ const _sfc_main = {
|
|
15
22
|
const emits = __emit;
|
16
23
|
const error = ref("");
|
17
24
|
const isScanning = ref(false);
|
25
|
+
const isTorchAvailable = ref(false);
|
26
|
+
const minZoomRatio = ref(void 0);
|
27
|
+
const maxZoomRatio = ref(void 0);
|
18
28
|
onMounted(async () => {
|
19
29
|
const { supported } = await BarcodeScanner.isSupported();
|
20
30
|
if (!supported) {
|
21
31
|
error.value = "Barcode scanning is not supported on this device";
|
22
32
|
}
|
33
|
+
const { available } = await BarcodeScanner.isTorchAvailable();
|
34
|
+
isTorchAvailable.value = available;
|
23
35
|
});
|
24
36
|
onUnmounted(async () => {
|
25
|
-
await
|
37
|
+
await stopScan();
|
26
38
|
});
|
27
39
|
async function startScan() {
|
28
40
|
var _a, _b;
|
29
|
-
(_a = document.querySelector("body")) == null ? void 0 : _a.classList.add("barcode-scanner-active");
|
30
41
|
try {
|
31
42
|
const { camera } = await BarcodeScanner.checkPermissions();
|
32
43
|
if (camera !== "granted") {
|
@@ -35,21 +46,27 @@ const _sfc_main = {
|
|
35
46
|
throw new Error("Camera permission is required to scan barcodes");
|
36
47
|
}
|
37
48
|
}
|
38
|
-
(
|
49
|
+
(_a = document.querySelector("body")) == null ? void 0 : _a.classList.add("barcode-scanner-active");
|
50
|
+
(_b = document.querySelector("html")) == null ? void 0 : _b.classList.add("barcode-scanner-active-html");
|
39
51
|
isScanning.value = true;
|
40
52
|
await BarcodeScanner.addListener("barcodeScanned", async (result) => {
|
41
53
|
await processBarcode(result.barcode);
|
42
54
|
});
|
43
55
|
await BarcodeScanner.startScan();
|
56
|
+
const { zoomRatio: min } = await BarcodeScanner.getMinZoomRatio();
|
57
|
+
const { zoomRatio: max } = await BarcodeScanner.getMaxZoomRatio();
|
58
|
+
minZoomRatio.value = min;
|
59
|
+
maxZoomRatio.value = max;
|
44
60
|
} catch (e) {
|
45
61
|
error.value = e.message;
|
46
62
|
alert(`Error: ${error.value}`);
|
47
63
|
}
|
48
64
|
}
|
49
65
|
async function stopScan() {
|
50
|
-
var _a;
|
66
|
+
var _a, _b;
|
51
67
|
try {
|
52
68
|
(_a = document.querySelector("body")) == null ? void 0 : _a.classList.remove("barcode-scanner-active");
|
69
|
+
(_b = document.querySelector("html")) == null ? void 0 : _b.classList.remove("barcode-scanner-active-html");
|
53
70
|
isScanning.value = false;
|
54
71
|
await BarcodeScanner.stopScan();
|
55
72
|
await BarcodeScanner.removeAllListeners();
|
@@ -72,6 +89,13 @@ const _sfc_main = {
|
|
72
89
|
await stopScan();
|
73
90
|
}
|
74
91
|
}
|
92
|
+
async function setZoomRatio(event) {
|
93
|
+
const zoomRatio = parseFloat(event.target.value);
|
94
|
+
await BarcodeScanner.setZoomRatio({ zoomRatio });
|
95
|
+
}
|
96
|
+
async function toggleTorch() {
|
97
|
+
await BarcodeScanner.toggleTorch();
|
98
|
+
}
|
75
99
|
return (_ctx, _cache) => {
|
76
100
|
return openBlock(), createElementBlock("div", null, [
|
77
101
|
createVNode(_sfc_main$1, {
|
@@ -84,6 +108,15 @@ const _sfc_main = {
|
|
84
108
|
_: 1
|
85
109
|
}),
|
86
110
|
isScanning.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
111
|
+
_hoisted_2,
|
112
|
+
minZoomRatio.value !== void 0 && maxZoomRatio.value !== void 0 ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
113
|
+
createElementVNode("input", {
|
114
|
+
type: "range",
|
115
|
+
min: minZoomRatio.value,
|
116
|
+
max: maxZoomRatio.value,
|
117
|
+
onInput: setZoomRatio
|
118
|
+
}, null, 40, _hoisted_4)
|
119
|
+
])) : createCommentVNode("", true),
|
87
120
|
createVNode(_sfc_main$1, {
|
88
121
|
onClick: stopScan,
|
89
122
|
class: "stop-scan-button"
|
@@ -92,13 +125,23 @@ const _sfc_main = {
|
|
92
125
|
createTextVNode("Stop Scan")
|
93
126
|
]),
|
94
127
|
_: 1
|
95
|
-
})
|
128
|
+
}),
|
129
|
+
isTorchAvailable.value ? (openBlock(), createBlock(_sfc_main$1, {
|
130
|
+
key: 1,
|
131
|
+
onClick: toggleTorch,
|
132
|
+
class: "torch-button"
|
133
|
+
}, {
|
134
|
+
default: withCtx(() => [
|
135
|
+
createTextVNode(" Toggle Torch ")
|
136
|
+
]),
|
137
|
+
_: 1
|
138
|
+
})) : createCommentVNode("", true)
|
96
139
|
])) : createCommentVNode("", true)
|
97
140
|
]);
|
98
141
|
};
|
99
142
|
}
|
100
143
|
};
|
101
|
-
const ButtonCheck = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
144
|
+
const ButtonCheck = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7a4f2d02"]]);
|
102
145
|
export {
|
103
146
|
ButtonCheck as default
|
104
147
|
};
|