@ozdao/prometheus-framework 0.2.89 → 0.2.91
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/auth.server.js +1 -0
- package/dist/auth.server.mjs +1 -0
- package/dist/main-BQisDfLk.js +92 -0
- package/dist/main-BV1Yv9Hy.js +92 -0
- package/dist/main-DTlUA63C.mjs +13617 -0
- package/dist/main-DmNP-t33.mjs +13625 -0
- package/dist/main.css +1 -1
- package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.cjs +1 -1
- package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.js +748 -750
- package/dist/node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.cjs +1 -1
- package/dist/node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.js +40 -39
- package/dist/node_modules/web3/lib/esm/index.cjs +1 -1
- package/dist/node_modules/web3/lib/esm/index.js +42 -41
- package/dist/node_modules/web3/lib/esm/version.cjs +1 -1
- package/dist/node_modules/web3/lib/esm/version.js +1 -1
- package/dist/node_modules/web3-eth/lib/esm/schemas.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/schemas.js +113 -88
- package/dist/node_modules/web3-eth-contract/lib/esm/contract.cjs +3 -1
- package/dist/node_modules/web3-eth-contract/lib/esm/contract.js +242 -217
- package/dist/node_modules/web3-eth-contract/lib/esm/encoding.cjs +1 -1
- package/dist/node_modules/web3-eth-contract/lib/esm/encoding.js +43 -37
- package/dist/node_modules/web3-eth-ens/lib/esm/config.cjs +1 -1
- package/dist/node_modules/web3-eth-ens/lib/esm/config.js +3 -1
- package/dist/node_modules/web3-eth-ens/lib/esm/ens.cjs +1 -1
- package/dist/node_modules/web3-eth-ens/lib/esm/ens.js +34 -13
- package/dist/node_modules/web3-eth-ens/lib/esm/resolver.cjs +1 -1
- package/dist/node_modules/web3-eth-ens/lib/esm/resolver.js +48 -36
- package/dist/node_modules/web3-utils/lib/esm/chunk_response_parser.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/chunk_response_parser.js +2 -2
- package/dist/node_modules/web3-utils/lib/esm/converters.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/converters.js +52 -50
- package/dist/node_modules/web3-utils/lib/esm/uint8array.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/uint8array.js +13 -13
- package/dist/node_modules/web3-validator/lib/esm/utils.cjs +1 -1
- package/dist/node_modules/web3-validator/lib/esm/utils.js +76 -87
- package/dist/node_modules/web3-validator/lib/esm/validator.cjs +1 -1
- package/dist/node_modules/web3-validator/lib/esm/validator.js +49 -47
- package/dist/prometheus-framework/node_modules/@capacitor/core/dist/index.cjs +1 -1
- package/dist/prometheus-framework/node_modules/@capacitor/core/dist/index.js +168 -158
- package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.js +94 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue2.js +1 -102
- package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue.js +84 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue2.js +1 -84
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +17 -16
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +73 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +1 -73
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +9 -8
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +28 -29
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +65 -65
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +38 -39
- package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/auth.js +35 -37
- package/dist/prometheus-framework/src/modules/auth/store/twofa.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/twofa.js +3 -3
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +11 -10
- 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 +3 -3
- 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/constructor/components/elements/Embed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +2 -2
- 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 +3 -3
- 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 +3 -3
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +4 -3
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +6 -5
- package/dist/prometheus-framework/src/modules/middlewares/client/inputs.validation.cjs +1 -1
- package/dist/prometheus-framework/src/modules/middlewares/client/inputs.validation.js +10 -13
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +13 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +1 -13
- 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 +3 -3
- 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 +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/FormDelivery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.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 +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +3 -3
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
- 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 +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +6 -5
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +6 -5
- 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/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/blocks/LeftoverPositions.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.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 +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +20 -25
- 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 +3 -3
- package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +8 -7
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +6 -5
- 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 +2 -2
- 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 +5 -4
- package/dist/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +1 -1
- package/dist/style.css +1 -1
- package/dist/web-Bk_OtXgv.js +1 -0
- package/dist/web-CXzcKdk4.mjs +54 -0
- package/dist/web-D9Cfcy5k.js +1 -0
- package/dist/web-VFuzUsNl.mjs +54 -0
- package/package.json +1 -1
- package/src/components/Button/Button.vue +5 -8
- package/src/components/FieldPhone/FieldPhone.vue +4 -0
- package/src/modules/auth/components/pages/ResetPassword.vue +1 -1
- package/src/modules/auth/components/pages/SignIn.vue +3 -3
- package/src/modules/auth/components/pages/SignUp.vue +1 -1
- package/src/modules/auth/controllers/auth.controller.js +1 -0
- package/src/modules/auth/store/auth.js +3 -5
- package/src/modules/auth/store/twofa.js +1 -1
- package/src/modules/middlewares/client/inputs.validation.js +0 -13
@@ -1,129 +1,126 @@
|
|
1
1
|
/*! Capacitor: https://capacitorjs.com/ - MIT License */
|
2
|
-
const Z = (
|
2
|
+
const Z = (r) => {
|
3
3
|
const e = /* @__PURE__ */ new Map();
|
4
4
|
e.set("web", { name: "web" });
|
5
|
-
const
|
5
|
+
const t = r.CapacitorPlatforms || {
|
6
6
|
currentPlatform: { name: "web" },
|
7
7
|
platforms: e
|
8
|
-
},
|
9
|
-
|
10
|
-
},
|
11
|
-
|
8
|
+
}, o = (n, a) => {
|
9
|
+
t.platforms.set(n, a);
|
10
|
+
}, i = (n) => {
|
11
|
+
t.platforms.has(n) && (t.currentPlatform = t.platforms.get(n));
|
12
12
|
};
|
13
|
-
return
|
14
|
-
}, N = (
|
15
|
-
|
16
|
-
|
17
|
-
var
|
18
|
-
(function(
|
19
|
-
|
20
|
-
})(
|
13
|
+
return t.addPlatform = o, t.setPlatform = i, t;
|
14
|
+
}, N = (r) => r.CapacitorPlatforms = Z(r), W = /* @__PURE__ */ N(typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
|
15
|
+
W.addPlatform;
|
16
|
+
W.setPlatform;
|
17
|
+
var C;
|
18
|
+
(function(r) {
|
19
|
+
r.Unimplemented = "UNIMPLEMENTED", r.Unavailable = "UNAVAILABLE";
|
20
|
+
})(C || (C = {}));
|
21
21
|
class S extends Error {
|
22
|
-
constructor(e,
|
23
|
-
super(e), this.message = e, this.code =
|
22
|
+
constructor(e, t, o) {
|
23
|
+
super(e), this.message = e, this.code = t, this.data = o;
|
24
24
|
}
|
25
25
|
}
|
26
|
-
const ee = (
|
27
|
-
var e,
|
28
|
-
return
|
29
|
-
}, te = (
|
30
|
-
var e,
|
31
|
-
const
|
32
|
-
const d =
|
26
|
+
const ee = (r) => {
|
27
|
+
var e, t;
|
28
|
+
return r != null && r.androidBridge ? "android" : !((t = (e = r == null ? void 0 : r.webkit) === null || e === void 0 ? void 0 : e.messageHandlers) === null || t === void 0) && t.bridge ? "ios" : "web";
|
29
|
+
}, te = (r) => {
|
30
|
+
var e, t, o, i, n;
|
31
|
+
const a = r.CapacitorCustomPlatform || null, s = r.Capacitor || {}, f = s.Plugins = s.Plugins || {}, l = r.CapacitorPlatforms, E = () => a !== null ? a.name : ee(r), P = ((e = l == null ? void 0 : l.currentPlatform) === null || e === void 0 ? void 0 : e.getPlatform) || E, x = () => P() !== "web", I = ((t = l == null ? void 0 : l.currentPlatform) === null || t === void 0 ? void 0 : t.isNativePlatform) || x, q = (c) => {
|
32
|
+
const d = A.get(c);
|
33
33
|
return !!(d != null && d.platforms.has(P()) || T(c));
|
34
|
-
},
|
34
|
+
}, B = ((o = l == null ? void 0 : l.currentPlatform) === null || o === void 0 ? void 0 : o.isPluginAvailable) || q, G = (c) => {
|
35
35
|
var d;
|
36
|
-
return (d =
|
37
|
-
}, T = ((
|
38
|
-
const y =
|
36
|
+
return (d = s.PluginHeaders) === null || d === void 0 ? void 0 : d.find((y) => y.name === c);
|
37
|
+
}, T = ((i = l == null ? void 0 : l.currentPlatform) === null || i === void 0 ? void 0 : i.getPluginHeader) || G, K = (c) => r.console.error(c), z = (c, d, y) => Promise.reject(`${y} does not have an implementation of "${d}".`), A = /* @__PURE__ */ new Map(), V = (c, d = {}) => {
|
38
|
+
const y = A.get(c);
|
39
39
|
if (y)
|
40
40
|
return console.warn(`Capacitor plugin "${c}" already registered. Cannot register plugins twice.`), y.proxy;
|
41
|
-
const p = P(),
|
41
|
+
const p = P(), L = T(c);
|
42
42
|
let w;
|
43
|
-
const Q = async () => (!w && p in d ? w = typeof d[p] == "function" ? w = await d[p]() : w = d[p] :
|
43
|
+
const Q = async () => (!w && p in d ? w = typeof d[p] == "function" ? w = await d[p]() : w = d[p] : a !== null && !w && "web" in d && (w = typeof d.web == "function" ? w = await d.web() : w = d.web), w), X = (u, g) => {
|
44
44
|
var h, v;
|
45
|
-
if (
|
46
|
-
const b =
|
45
|
+
if (L) {
|
46
|
+
const b = L == null ? void 0 : L.methods.find((m) => g === m.name);
|
47
47
|
if (b)
|
48
|
-
return b.rtype === "promise" ? (
|
48
|
+
return b.rtype === "promise" ? (m) => s.nativePromise(c, g.toString(), m) : (m, k) => s.nativeCallback(c, g.toString(), m, k);
|
49
49
|
if (u)
|
50
|
-
return (h = u[
|
50
|
+
return (h = u[g]) === null || h === void 0 ? void 0 : h.bind(u);
|
51
51
|
} else {
|
52
52
|
if (u)
|
53
|
-
return (v = u[
|
54
|
-
throw new S(`"${c}" plugin is not implemented on ${p}`,
|
53
|
+
return (v = u[g]) === null || v === void 0 ? void 0 : v.bind(u);
|
54
|
+
throw new S(`"${c}" plugin is not implemented on ${p}`, C.Unimplemented);
|
55
55
|
}
|
56
|
-
},
|
57
|
-
let
|
56
|
+
}, j = (u) => {
|
57
|
+
let g;
|
58
58
|
const h = (...v) => {
|
59
|
-
const b = Q().then((
|
60
|
-
const
|
61
|
-
if (
|
62
|
-
const $ =
|
63
|
-
return
|
59
|
+
const b = Q().then((m) => {
|
60
|
+
const k = X(m, u);
|
61
|
+
if (k) {
|
62
|
+
const $ = k(...v);
|
63
|
+
return g = $ == null ? void 0 : $.remove, $;
|
64
64
|
} else
|
65
|
-
throw new S(`"${c}.${u}()" is not implemented on ${p}`,
|
65
|
+
throw new S(`"${c}.${u}()" is not implemented on ${p}`, C.Unimplemented);
|
66
66
|
});
|
67
|
-
return u === "addListener" && (b.remove = async () =>
|
67
|
+
return u === "addListener" && (b.remove = async () => g()), b;
|
68
68
|
};
|
69
69
|
return h.toString = () => `${u.toString()}() { [capacitor code] }`, Object.defineProperty(h, "name", {
|
70
70
|
value: u,
|
71
71
|
writable: !1,
|
72
72
|
configurable: !1
|
73
73
|
}), h;
|
74
|
-
}, _ =
|
75
|
-
const h = _({ eventName: u },
|
76
|
-
const
|
74
|
+
}, _ = j("addListener"), H = j("removeListener"), Y = (u, g) => {
|
75
|
+
const h = _({ eventName: u }, g), v = async () => {
|
76
|
+
const m = await h;
|
77
77
|
H({
|
78
78
|
eventName: u,
|
79
|
-
callbackId:
|
80
|
-
},
|
81
|
-
}, b = new Promise((
|
79
|
+
callbackId: m
|
80
|
+
}, g);
|
81
|
+
}, b = new Promise((m) => h.then(() => m({ remove: v })));
|
82
82
|
return b.remove = async () => {
|
83
83
|
console.warn("Using addListener() without 'await' is deprecated."), await v();
|
84
84
|
}, b;
|
85
|
-
},
|
86
|
-
get(u,
|
87
|
-
switch (
|
85
|
+
}, U = new Proxy({}, {
|
86
|
+
get(u, g) {
|
87
|
+
switch (g) {
|
88
88
|
case "$$typeof":
|
89
89
|
return;
|
90
90
|
case "toJSON":
|
91
91
|
return () => ({});
|
92
92
|
case "addListener":
|
93
|
-
return
|
93
|
+
return L ? Y : _;
|
94
94
|
case "removeListener":
|
95
95
|
return H;
|
96
96
|
default:
|
97
|
-
return
|
97
|
+
return j(g);
|
98
98
|
}
|
99
99
|
}
|
100
100
|
});
|
101
|
-
return f[c] =
|
101
|
+
return f[c] = U, A.set(c, {
|
102
102
|
name: c,
|
103
|
-
proxy:
|
103
|
+
proxy: U,
|
104
104
|
platforms: /* @__PURE__ */ new Set([
|
105
105
|
...Object.keys(d),
|
106
|
-
...
|
106
|
+
...L ? [p] : []
|
107
107
|
])
|
108
|
-
}),
|
109
|
-
}, J = ((
|
110
|
-
return
|
111
|
-
}, re = (
|
108
|
+
}), U;
|
109
|
+
}, J = ((n = l == null ? void 0 : l.currentPlatform) === null || n === void 0 ? void 0 : n.registerPlugin) || V;
|
110
|
+
return s.convertFileSrc || (s.convertFileSrc = (c) => c), s.getPlatform = P, s.handleError = K, s.isNativePlatform = I, s.isPluginAvailable = B, s.pluginMethodNoop = z, s.registerPlugin = J, s.Exception = S, s.DEBUG = !!s.DEBUG, s.isLoggingEnabled = !!s.isLoggingEnabled, s.platform = s.getPlatform(), s.isNative = s.isNativePlatform(), s;
|
111
|
+
}, re = (r) => r.Capacitor = te(r), O = /* @__PURE__ */ re(typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {}), D = O.registerPlugin;
|
112
112
|
O.Plugins;
|
113
|
-
class
|
113
|
+
class F {
|
114
114
|
constructor(e) {
|
115
|
-
this.listeners = {}, this.windowListeners = {}, e && (console.warn(`Capacitor WebPlugin "${e.name}" config object was deprecated in v3 and will be removed in v4.`), this.config = e);
|
115
|
+
this.listeners = {}, this.retainedEventArguments = {}, this.windowListeners = {}, e && (console.warn(`Capacitor WebPlugin "${e.name}" config object was deprecated in v3 and will be removed in v4.`), this.config = e);
|
116
116
|
}
|
117
|
-
addListener(e,
|
118
|
-
|
117
|
+
addListener(e, t) {
|
118
|
+
let o = !1;
|
119
|
+
this.listeners[e] || (this.listeners[e] = [], o = !0), this.listeners[e].push(t);
|
119
120
|
const n = this.windowListeners[e];
|
120
|
-
n && !n.registered && this.addWindowListener(n);
|
121
|
-
const
|
122
|
-
return
|
123
|
-
value: async () => {
|
124
|
-
console.warn("Using addListener() without 'await' is deprecated."), await s();
|
125
|
-
}
|
126
|
-
}), i;
|
121
|
+
n && !n.registered && this.addWindowListener(n), o && this.sendRetainedArgumentsForEvent(e);
|
122
|
+
const a = async () => this.removeListener(e, t);
|
123
|
+
return Promise.resolve({ remove: a });
|
127
124
|
}
|
128
125
|
async removeAllListeners() {
|
129
126
|
this.listeners = {};
|
@@ -131,35 +128,42 @@ class I {
|
|
131
128
|
this.removeWindowListener(this.windowListeners[e]);
|
132
129
|
this.windowListeners = {};
|
133
130
|
}
|
134
|
-
notifyListeners(e,
|
135
|
-
const
|
136
|
-
|
131
|
+
notifyListeners(e, t, o) {
|
132
|
+
const i = this.listeners[e];
|
133
|
+
if (!i) {
|
134
|
+
if (o) {
|
135
|
+
let n = this.retainedEventArguments[e];
|
136
|
+
n || (n = []), n.push(t), this.retainedEventArguments[e] = n;
|
137
|
+
}
|
138
|
+
return;
|
139
|
+
}
|
140
|
+
i.forEach((n) => n(t));
|
137
141
|
}
|
138
142
|
hasListeners(e) {
|
139
143
|
return !!this.listeners[e].length;
|
140
144
|
}
|
141
|
-
registerWindowListener(e,
|
142
|
-
this.windowListeners[
|
145
|
+
registerWindowListener(e, t) {
|
146
|
+
this.windowListeners[t] = {
|
143
147
|
registered: !1,
|
144
148
|
windowEventName: e,
|
145
|
-
pluginEventName:
|
146
|
-
handler: (
|
147
|
-
this.notifyListeners(
|
149
|
+
pluginEventName: t,
|
150
|
+
handler: (o) => {
|
151
|
+
this.notifyListeners(t, o);
|
148
152
|
}
|
149
153
|
};
|
150
154
|
}
|
151
155
|
unimplemented(e = "not implemented") {
|
152
|
-
return new O.Exception(e,
|
156
|
+
return new O.Exception(e, C.Unimplemented);
|
153
157
|
}
|
154
158
|
unavailable(e = "not available") {
|
155
|
-
return new O.Exception(e,
|
159
|
+
return new O.Exception(e, C.Unavailable);
|
156
160
|
}
|
157
|
-
async removeListener(e,
|
158
|
-
const
|
159
|
-
if (!
|
161
|
+
async removeListener(e, t) {
|
162
|
+
const o = this.listeners[e];
|
163
|
+
if (!o)
|
160
164
|
return;
|
161
|
-
const
|
162
|
-
this.listeners[e].splice(
|
165
|
+
const i = o.indexOf(t);
|
166
|
+
this.listeners[e].splice(i, 1), this.listeners[e].length || this.removeWindowListener(this.windowListeners[e]);
|
163
167
|
}
|
164
168
|
addWindowListener(e) {
|
165
169
|
window.addEventListener(e.windowEventName, e.handler), e.registered = !0;
|
@@ -167,38 +171,44 @@ class I {
|
|
167
171
|
removeWindowListener(e) {
|
168
172
|
e && (window.removeEventListener(e.windowEventName, e.handler), e.registered = !1);
|
169
173
|
}
|
174
|
+
sendRetainedArgumentsForEvent(e) {
|
175
|
+
const t = this.retainedEventArguments[e];
|
176
|
+
t && (delete this.retainedEventArguments[e], t.forEach((o) => {
|
177
|
+
this.notifyListeners(e, o);
|
178
|
+
}));
|
179
|
+
}
|
170
180
|
}
|
171
|
-
const
|
172
|
-
class ne extends
|
181
|
+
const R = (r) => encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape), M = (r) => r.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
182
|
+
class ne extends F {
|
173
183
|
async getCookies() {
|
174
|
-
const e = document.cookie,
|
175
|
-
return e.split(";").forEach((
|
176
|
-
if (
|
184
|
+
const e = document.cookie, t = {};
|
185
|
+
return e.split(";").forEach((o) => {
|
186
|
+
if (o.length <= 0)
|
177
187
|
return;
|
178
|
-
let [
|
179
|
-
|
180
|
-
}),
|
188
|
+
let [i, n] = o.replace(/=/, "CAP_COOKIE").split("CAP_COOKIE");
|
189
|
+
i = M(i).trim(), n = M(n).trim(), t[i] = n;
|
190
|
+
}), t;
|
181
191
|
}
|
182
192
|
async setCookie(e) {
|
183
193
|
try {
|
184
|
-
const
|
185
|
-
document.cookie = `${
|
186
|
-
} catch (
|
187
|
-
return Promise.reject(
|
194
|
+
const t = R(e.key), o = R(e.value), i = `; expires=${(e.expires || "").replace("expires=", "")}`, n = (e.path || "/").replace("path=", ""), a = e.url != null && e.url.length > 0 ? `domain=${e.url}` : "";
|
195
|
+
document.cookie = `${t}=${o || ""}${i}; path=${n}; ${a};`;
|
196
|
+
} catch (t) {
|
197
|
+
return Promise.reject(t);
|
188
198
|
}
|
189
199
|
}
|
190
200
|
async deleteCookie(e) {
|
191
201
|
try {
|
192
202
|
document.cookie = `${e.key}=; Max-Age=0`;
|
193
|
-
} catch (
|
194
|
-
return Promise.reject(
|
203
|
+
} catch (t) {
|
204
|
+
return Promise.reject(t);
|
195
205
|
}
|
196
206
|
}
|
197
207
|
async clearCookies() {
|
198
208
|
try {
|
199
209
|
const e = document.cookie.split(";") || [];
|
200
|
-
for (const
|
201
|
-
document.cookie =
|
210
|
+
for (const t of e)
|
211
|
+
document.cookie = t.replace(/^ +/, "").replace(/=.*/, `=;expires=${(/* @__PURE__ */ new Date()).toUTCString()};path=/`);
|
202
212
|
} catch (e) {
|
203
213
|
return Promise.reject(e);
|
204
214
|
}
|
@@ -214,77 +224,77 @@ class ne extends I {
|
|
214
224
|
D("CapacitorCookies", {
|
215
225
|
web: () => new ne()
|
216
226
|
});
|
217
|
-
const se = async (
|
218
|
-
const
|
219
|
-
|
220
|
-
const
|
221
|
-
e(
|
222
|
-
},
|
223
|
-
}), oe = (
|
224
|
-
const e = Object.keys(
|
225
|
-
return Object.keys(
|
226
|
-
},
|
227
|
-
const [
|
228
|
-
let
|
229
|
-
return Array.isArray(
|
230
|
-
|
231
|
-
}), f.slice(0, -1)) : (
|
232
|
-
}, "").substr(1) : null,
|
233
|
-
const
|
234
|
-
if (typeof
|
235
|
-
|
236
|
-
else if (
|
237
|
-
const
|
238
|
-
for (const [
|
239
|
-
|
240
|
-
|
241
|
-
} else if (
|
242
|
-
const
|
243
|
-
if (
|
244
|
-
|
245
|
-
|
227
|
+
const se = async (r) => new Promise((e, t) => {
|
228
|
+
const o = new FileReader();
|
229
|
+
o.onload = () => {
|
230
|
+
const i = o.result;
|
231
|
+
e(i.indexOf(",") >= 0 ? i.split(",")[1] : i);
|
232
|
+
}, o.onerror = (i) => t(i), o.readAsDataURL(r);
|
233
|
+
}), oe = (r = {}) => {
|
234
|
+
const e = Object.keys(r);
|
235
|
+
return Object.keys(r).map((i) => i.toLocaleLowerCase()).reduce((i, n, a) => (i[n] = r[e[a]], i), {});
|
236
|
+
}, ie = (r, e = !0) => r ? Object.entries(r).reduce((o, i) => {
|
237
|
+
const [n, a] = i;
|
238
|
+
let s, f;
|
239
|
+
return Array.isArray(a) ? (f = "", a.forEach((l) => {
|
240
|
+
s = e ? encodeURIComponent(l) : l, f += `${n}=${s}&`;
|
241
|
+
}), f.slice(0, -1)) : (s = e ? encodeURIComponent(a) : a, f = `${n}=${s}`), `${o}&${f}`;
|
242
|
+
}, "").substr(1) : null, ae = (r, e = {}) => {
|
243
|
+
const t = Object.assign({ method: r.method || "GET", headers: r.headers }, e), i = oe(r.headers)["content-type"] || "";
|
244
|
+
if (typeof r.data == "string")
|
245
|
+
t.body = r.data;
|
246
|
+
else if (i.includes("application/x-www-form-urlencoded")) {
|
247
|
+
const n = new URLSearchParams();
|
248
|
+
for (const [a, s] of Object.entries(r.data || {}))
|
249
|
+
n.set(a, s);
|
250
|
+
t.body = n.toString();
|
251
|
+
} else if (i.includes("multipart/form-data") || r.data instanceof FormData) {
|
252
|
+
const n = new FormData();
|
253
|
+
if (r.data instanceof FormData)
|
254
|
+
r.data.forEach((s, f) => {
|
255
|
+
n.append(f, s);
|
246
256
|
});
|
247
257
|
else
|
248
|
-
for (const
|
249
|
-
|
250
|
-
|
251
|
-
const
|
252
|
-
|
258
|
+
for (const s of Object.keys(r.data))
|
259
|
+
n.append(s, r.data[s]);
|
260
|
+
t.body = n;
|
261
|
+
const a = new Headers(t.headers);
|
262
|
+
a.delete("content-type"), t.headers = a;
|
253
263
|
} else
|
254
|
-
(
|
255
|
-
return
|
264
|
+
(i.includes("application/json") || typeof r.data == "object") && (t.body = JSON.stringify(r.data));
|
265
|
+
return t;
|
256
266
|
};
|
257
|
-
class le extends
|
267
|
+
class le extends F {
|
258
268
|
/**
|
259
269
|
* Perform an Http request given a set of options
|
260
270
|
* @param options Options to build the HTTP request
|
261
271
|
*/
|
262
272
|
async request(e) {
|
263
|
-
const
|
264
|
-
let { responseType:
|
265
|
-
|
273
|
+
const t = ae(e, e.webFetchExtra), o = ie(e.params, e.shouldEncodeUrlParams), i = o ? `${e.url}?${o}` : e.url, n = await fetch(i, t), a = n.headers.get("content-type") || "";
|
274
|
+
let { responseType: s = "text" } = n.ok ? e : {};
|
275
|
+
a.includes("application/json") && (s = "json");
|
266
276
|
let f, l;
|
267
|
-
switch (
|
277
|
+
switch (s) {
|
268
278
|
case "arraybuffer":
|
269
279
|
case "blob":
|
270
|
-
l = await
|
280
|
+
l = await n.blob(), f = await se(l);
|
271
281
|
break;
|
272
282
|
case "json":
|
273
|
-
f = await
|
283
|
+
f = await n.json();
|
274
284
|
break;
|
275
285
|
case "document":
|
276
286
|
case "text":
|
277
287
|
default:
|
278
|
-
f = await
|
288
|
+
f = await n.text();
|
279
289
|
}
|
280
|
-
const
|
281
|
-
return
|
282
|
-
|
290
|
+
const E = {};
|
291
|
+
return n.headers.forEach((P, x) => {
|
292
|
+
E[x] = P;
|
283
293
|
}), {
|
284
294
|
data: f,
|
285
|
-
headers:
|
286
|
-
status:
|
287
|
-
url:
|
295
|
+
headers: E,
|
296
|
+
status: n.status,
|
297
|
+
url: n.url
|
288
298
|
};
|
289
299
|
}
|
290
300
|
/**
|
@@ -329,9 +339,9 @@ D("CapacitorHttp", {
|
|
329
339
|
export {
|
330
340
|
O as Capacitor,
|
331
341
|
S as CapacitorException,
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
342
|
+
W as CapacitorPlatforms,
|
343
|
+
C as ExceptionCode,
|
344
|
+
F as WebPlugin,
|
345
|
+
ae as buildRequestInit,
|
336
346
|
D as registerPlugin
|
337
347
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("../Loader/Loader.vue2.cjs");require("./Button.vue2.cjs");const v=["disabled"],b={key:2,class:"t-semi loading t-black"},m={key:3,class:"error"},y={key:0,class:"button-counter"},k={__name:"Button",props:{submit:{type:Function,default:async()=>{console.log("Button click.")}},text:{type:Object,default:t=>(console.log(t),t={...t.text,success:"✔",error:"✖"})},counter:{type:Object},callback:{type:Function,default:async()=>{console.log("Button callback.")}},callbackDelay:{type:Number,default:750},showSucces:{type:Boolean,default:!0},showLoader:{type:Boolean,default:!0},validation:{type:Boolean,default:!1}},emits:["error"],setup(t,{emit:r}){const o=t,i=r,l=e.ref(null),a=e.ref(null),s=e.ref(!1),n=e.ref(!1);async function d(){l.value.style["pointer-events"]="none",a.value=null,s.value=!0;const c=()=>{l.value&&(l.value.classList.replace("bg-second","bg-main"),l.value.style.pointerEvents="auto",s.value=!1,n.value=!1,a.value=null)};try{await o.submit(),l.value.classList.replace("bg-main","bg-second"),s.value=!1,o.showSucces?(n.value=!0,setTimeout(c,500)):c(),o.callback&&setTimeout(()=>o.callback(),o.callbackDelay)}catch(u){i("error",u),l.value.classList.replace("bg-main","bg-fourth-nano"),a.value=o.error,setTimeout(()=>{c(),l.value.classList.replace("bg-fourth-nano","bg-main")},1330)}}return(c,u)=>(e.openBlock(),e.createElementBlock("button",{onClick:e.withModifiers(d,["stop"]),disabled:t.validation,ref_key:"button",ref:l,class:"button"},[e.createVNode(e.Transition,{name:"moveFromTopAbsolute"},{default:e.withCtx(()=>[!s.value&&!a.value&&!n.value||!t.showLoader?e.renderSlot(c.$slots,"default",{key:0}):s.value&&!a.value&&t.showLoader?(e.openBlock(),e.createBlock(f.default,{key:1,class:"pos-relative pos-t-0 pos-l-0 loading"})):n.value&&t.showSucces?(e.openBlock(),e.createElementBlock("span",b,e.toDisplayString(t.text.success),1)):a.value?(e.openBlock(),e.createElementBlock("span",m,e.toDisplayString(a.value),1)):e.createCommentVNode("",!0)]),_:3}),t.counter?(e.openBlock(),e.createElementBlock("p",y,e.toDisplayString(t.counter),1)):e.createCommentVNode("",!0)],8,v))}};exports.default=k;
|
@@ -1 +1,94 @@
|
|
1
|
-
|
1
|
+
import { ref as n, openBlock as c, createElementBlock as r, withModifiers as y, createVNode as k, Transition as h, withCtx as p, renderSlot as g, createBlock as B, toDisplayString as i, createCommentVNode as f } from "vue";
|
2
|
+
import w from "../Loader/Loader.vue2.js";
|
3
|
+
import "./Button.vue2.js";
|
4
|
+
const L = ["disabled"], S = {
|
5
|
+
key: 2,
|
6
|
+
class: "t-semi loading t-black"
|
7
|
+
}, T = {
|
8
|
+
key: 3,
|
9
|
+
class: "error"
|
10
|
+
}, x = {
|
11
|
+
key: 0,
|
12
|
+
class: "button-counter"
|
13
|
+
}, j = {
|
14
|
+
__name: "Button",
|
15
|
+
props: {
|
16
|
+
submit: {
|
17
|
+
type: Function,
|
18
|
+
default: async () => {
|
19
|
+
console.log("Button click.");
|
20
|
+
}
|
21
|
+
},
|
22
|
+
text: {
|
23
|
+
type: Object,
|
24
|
+
default: (e) => (console.log(e), e = {
|
25
|
+
...e.text,
|
26
|
+
success: "✔",
|
27
|
+
error: "✖"
|
28
|
+
})
|
29
|
+
},
|
30
|
+
counter: {
|
31
|
+
type: Object
|
32
|
+
},
|
33
|
+
callback: {
|
34
|
+
type: Function,
|
35
|
+
default: async () => {
|
36
|
+
console.log("Button callback.");
|
37
|
+
}
|
38
|
+
},
|
39
|
+
callbackDelay: {
|
40
|
+
type: Number,
|
41
|
+
default: 750
|
42
|
+
},
|
43
|
+
showSucces: {
|
44
|
+
type: Boolean,
|
45
|
+
default: !0
|
46
|
+
},
|
47
|
+
showLoader: {
|
48
|
+
type: Boolean,
|
49
|
+
default: !0
|
50
|
+
},
|
51
|
+
validation: {
|
52
|
+
type: Boolean,
|
53
|
+
default: !1
|
54
|
+
}
|
55
|
+
},
|
56
|
+
emits: ["error"],
|
57
|
+
setup(e, { emit: b }) {
|
58
|
+
const l = e, v = b, t = n(null), a = n(null), o = n(!1), u = n(!1);
|
59
|
+
async function m() {
|
60
|
+
t.value.style["pointer-events"] = "none", a.value = null, o.value = !0;
|
61
|
+
const s = () => {
|
62
|
+
t.value && (t.value.classList.replace("bg-second", "bg-main"), t.value.style.pointerEvents = "auto", o.value = !1, u.value = !1, a.value = null);
|
63
|
+
};
|
64
|
+
try {
|
65
|
+
await l.submit(), t.value.classList.replace("bg-main", "bg-second"), o.value = !1, l.showSucces ? (u.value = !0, setTimeout(s, 500)) : s(), l.callback && setTimeout(() => l.callback(), l.callbackDelay);
|
66
|
+
} catch (d) {
|
67
|
+
v("error", d), t.value.classList.replace("bg-main", "bg-fourth-nano"), a.value = l.error, setTimeout(() => {
|
68
|
+
s(), t.value.classList.replace("bg-fourth-nano", "bg-main");
|
69
|
+
}, 1330);
|
70
|
+
}
|
71
|
+
}
|
72
|
+
return (s, d) => (c(), r("button", {
|
73
|
+
onClick: y(m, ["stop"]),
|
74
|
+
disabled: e.validation,
|
75
|
+
ref_key: "button",
|
76
|
+
ref: t,
|
77
|
+
class: "button"
|
78
|
+
}, [
|
79
|
+
k(h, { name: "moveFromTopAbsolute" }, {
|
80
|
+
default: p(() => [
|
81
|
+
!o.value && !a.value && !u.value || !e.showLoader ? g(s.$slots, "default", { key: 0 }) : o.value && !a.value && e.showLoader ? (c(), B(w, {
|
82
|
+
key: 1,
|
83
|
+
class: "pos-relative pos-t-0 pos-l-0 loading"
|
84
|
+
})) : u.value && e.showSucces ? (c(), r("span", S, i(e.text.success), 1)) : a.value ? (c(), r("span", T, i(a.value), 1)) : f("", !0)
|
85
|
+
]),
|
86
|
+
_: 3
|
87
|
+
}),
|
88
|
+
e.counter ? (c(), r("p", x, i(e.counter), 1)) : f("", !0)
|
89
|
+
], 8, L));
|
90
|
+
}
|
91
|
+
};
|
92
|
+
export {
|
93
|
+
j as default
|
94
|
+
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";
|
1
|
+
"use strict";
|