@ozdao/prometheus-framework 0.2.89 → 0.2.90
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/main-BV1Yv9Hy.js +92 -0
- package/dist/main-DmNP-t33.mjs +13625 -0
- 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/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/components/Select/Select.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue.js +103 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue2.js +1 -103
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.js +36 -1
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.js +1 -36
- 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/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/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +1 -1
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +5 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +66 -0
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -5
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +0 -66
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.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 +1 -1
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.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 +2 -2
- 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/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/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +1 -1
- 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 +1 -1
- 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 +2 -2
- 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/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/blocks/CardDepartment.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.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/pages/Department.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.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 +2 -2
- 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 +2 -2
- 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 +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 +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.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/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/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/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 +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 +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.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 +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 +2 -2
- 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-VFuzUsNl.mjs +54 -0
- package/package.json +1 -1
@@ -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"),r=require("vue-router"),p=require("vue-i18n"),d=require("../../modules/icons/navigation/IconCross.vue.cjs");require("./Popup.vue2.cjs");const m={key:"popup-content",class:"pd-small popup-wrapper"},v={class:"mn-b-small"},f={__name:"Popup",props:{isPopupOpen:{type:Boolean,default:!1},style:String,title:String},emits:["close-popup"],setup(t,{emit:l}){const a=t,i=l;function n(){i("close-popup")}e.watch(()=>a.isPopupOpen,o=>{o?document.body.classList.add("no-scroll"):document.body.classList.remove("no-scroll")}),r.useRoute(),r.useRouter();const u={messages:{en:{},ru:{}}};return p.useI18n(u),(o,s)=>(e.openBlock(),e.createBlock(e.Transition,{name:"TransitionTranslateY",appear:""},{default:e.withCtx(()=>[t.isPopupOpen?(e.openBlock(),e.createBlock(e.Teleport,{key:0,to:"body"},[t.isPopupOpen?(e.openBlock(),e.createElementBlock("div",m,[e.createVNode(e.Transition,{name:"TransitionTranslateY",mode:"out-in"},{default:e.withCtx(()=>[e.createElementVNode("section",e.mergeProps({class:"pos-relative z-index-4"},o.$attrs,{class:o.$attrs.class}),[e.createElementVNode("h4",v,e.toDisplayString(t.title),1),e.createVNode(d.default,{onClick:s[0]||(s[0]=c=>n()),class:"cursor-pointer pos-absolute pos-t-0 pos-r-0 mn-t-semi mn-r-semi hover-scale-1 i-regular z-index-5"}),e.renderSlot(o.$slots,"default")],16)]),_:3}),e.createElementVNode("div",{onClick:s[1]||(s[1]=c=>n()),class:e.normalizeClass([{active:t.isPopupOpen===!0},"color-overlay z-index-3"])},null,2)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:3}))}};exports.default=f;
|
@@ -1 +1,73 @@
|
|
1
|
-
|
1
|
+
import { watch as v, openBlock as s, createBlock as l, Transition as a, withCtx as i, Teleport as y, createElementBlock as P, createVNode as p, createElementVNode as n, mergeProps as k, toDisplayString as g, renderSlot as C, normalizeClass as T, createCommentVNode as u } from "vue";
|
2
|
+
import { useRoute as b, useRouter as x } from "vue-router";
|
3
|
+
import { useI18n as O } from "vue-i18n";
|
4
|
+
import $ from "../../modules/icons/navigation/IconCross.vue.js";
|
5
|
+
import "./Popup.vue2.js";
|
6
|
+
const z = {
|
7
|
+
key: "popup-content",
|
8
|
+
class: "pd-small popup-wrapper"
|
9
|
+
}, B = { class: "mn-b-small" }, I = {
|
10
|
+
__name: "Popup",
|
11
|
+
props: {
|
12
|
+
isPopupOpen: {
|
13
|
+
type: Boolean,
|
14
|
+
default: !1
|
15
|
+
},
|
16
|
+
style: String,
|
17
|
+
title: String
|
18
|
+
},
|
19
|
+
emits: ["close-popup"],
|
20
|
+
setup(e, { emit: c }) {
|
21
|
+
const m = e, d = c;
|
22
|
+
function r() {
|
23
|
+
d("close-popup");
|
24
|
+
}
|
25
|
+
return v(() => m.isPopupOpen, (t) => {
|
26
|
+
t ? document.body.classList.add("no-scroll") : document.body.classList.remove("no-scroll");
|
27
|
+
}), b(), x(), O({
|
28
|
+
messages: {
|
29
|
+
en: {},
|
30
|
+
ru: {}
|
31
|
+
}
|
32
|
+
}), (t, o) => (s(), l(a, {
|
33
|
+
name: "TransitionTranslateY",
|
34
|
+
appear: ""
|
35
|
+
}, {
|
36
|
+
default: i(() => [
|
37
|
+
e.isPopupOpen ? (s(), l(y, {
|
38
|
+
key: 0,
|
39
|
+
to: "body"
|
40
|
+
}, [
|
41
|
+
e.isPopupOpen ? (s(), P("div", z, [
|
42
|
+
p(a, {
|
43
|
+
name: "TransitionTranslateY",
|
44
|
+
mode: "out-in"
|
45
|
+
}, {
|
46
|
+
default: i(() => [
|
47
|
+
n("section", k({ class: "pos-relative z-index-4" }, t.$attrs, {
|
48
|
+
class: t.$attrs.class
|
49
|
+
}), [
|
50
|
+
n("h4", B, g(e.title), 1),
|
51
|
+
p($, {
|
52
|
+
onClick: o[0] || (o[0] = (f) => r()),
|
53
|
+
class: "cursor-pointer pos-absolute pos-t-0 pos-r-0 mn-t-semi mn-r-semi hover-scale-1 i-regular z-index-5"
|
54
|
+
}),
|
55
|
+
C(t.$slots, "default")
|
56
|
+
], 16)
|
57
|
+
]),
|
58
|
+
_: 3
|
59
|
+
}),
|
60
|
+
n("div", {
|
61
|
+
onClick: o[1] || (o[1] = (f) => r()),
|
62
|
+
class: T([{ active: e.isPopupOpen === !0 }, "color-overlay z-index-3"])
|
63
|
+
}, null, 2)
|
64
|
+
])) : u("", !0)
|
65
|
+
])) : u("", !0)
|
66
|
+
]),
|
67
|
+
_: 3
|
68
|
+
}));
|
69
|
+
}
|
70
|
+
};
|
71
|
+
export {
|
72
|
+
I as default
|
73
|
+
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";
|
1
|
+
"use strict";
|
@@ -1,73 +1 @@
|
|
1
|
-
|
2
|
-
import { useRoute as b, useRouter as x } from "vue-router";
|
3
|
-
import { useI18n as O } from "vue-i18n";
|
4
|
-
import $ from "../../modules/icons/navigation/IconCross.vue.js";
|
5
|
-
import "./Popup.vue.js";
|
6
|
-
const z = {
|
7
|
-
key: "popup-content",
|
8
|
-
class: "pd-small popup-wrapper"
|
9
|
-
}, B = { class: "mn-b-small" }, I = {
|
10
|
-
__name: "Popup",
|
11
|
-
props: {
|
12
|
-
isPopupOpen: {
|
13
|
-
type: Boolean,
|
14
|
-
default: !1
|
15
|
-
},
|
16
|
-
style: String,
|
17
|
-
title: String
|
18
|
-
},
|
19
|
-
emits: ["close-popup"],
|
20
|
-
setup(e, { emit: c }) {
|
21
|
-
const m = e, d = c;
|
22
|
-
function r() {
|
23
|
-
d("close-popup");
|
24
|
-
}
|
25
|
-
return v(() => m.isPopupOpen, (t) => {
|
26
|
-
t ? document.body.classList.add("no-scroll") : document.body.classList.remove("no-scroll");
|
27
|
-
}), b(), x(), O({
|
28
|
-
messages: {
|
29
|
-
en: {},
|
30
|
-
ru: {}
|
31
|
-
}
|
32
|
-
}), (t, o) => (s(), l(a, {
|
33
|
-
name: "TransitionTranslateY",
|
34
|
-
appear: ""
|
35
|
-
}, {
|
36
|
-
default: i(() => [
|
37
|
-
e.isPopupOpen ? (s(), l(y, {
|
38
|
-
key: 0,
|
39
|
-
to: "body"
|
40
|
-
}, [
|
41
|
-
e.isPopupOpen ? (s(), P("div", z, [
|
42
|
-
p(a, {
|
43
|
-
name: "TransitionTranslateY",
|
44
|
-
mode: "out-in"
|
45
|
-
}, {
|
46
|
-
default: i(() => [
|
47
|
-
n("section", k({ class: "pos-relative z-index-4" }, t.$attrs, {
|
48
|
-
class: t.$attrs.class
|
49
|
-
}), [
|
50
|
-
n("h4", B, g(e.title), 1),
|
51
|
-
p($, {
|
52
|
-
onClick: o[0] || (o[0] = (f) => r()),
|
53
|
-
class: "cursor-pointer pos-absolute pos-t-0 pos-r-0 mn-t-semi mn-r-semi hover-scale-1 i-regular z-index-5"
|
54
|
-
}),
|
55
|
-
C(t.$slots, "default")
|
56
|
-
], 16)
|
57
|
-
]),
|
58
|
-
_: 3
|
59
|
-
}),
|
60
|
-
n("div", {
|
61
|
-
onClick: o[1] || (o[1] = (f) => r()),
|
62
|
-
class: T([{ active: e.isPopupOpen === !0 }, "color-overlay z-index-3"])
|
63
|
-
}, null, 2)
|
64
|
-
])) : u("", !0)
|
65
|
-
])) : u("", !0)
|
66
|
-
]),
|
67
|
-
_: 3
|
68
|
-
}));
|
69
|
-
}
|
70
|
-
};
|
71
|
-
export {
|
72
|
-
I as default
|
73
|
-
};
|
1
|
+
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),y=require("../FieldPhone/click-outside.cjs");require("./Select.vue2.cjs");const g=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),B={key:0,class:"t-transp mn-r-small"},b={class:"w-100"},w=["onClick"],S={key:0,class:"w-100"},_={key:0,class:"mn-t-thin invalid-feedback"},C={__name:"Select",props:{label:String,placeholder:{type:String,default:"Please select an item"},select:[String,Object],property:String,options:{type:Array,default:()=>[]},validation:Boolean},emits:["update:select","focus","blur"],setup(n,{emit:m}){let f=y.default;const i=m,t=n,a=e.ref(!1),o=e.ref(t.property?d(t.select,t.property,t.options):t.select),v=e.computed(()=>t.select?t.options.filter(l=>l!==t.select):t.options);e.watch(()=>t.select,l=>{o.value=t.property?d(t.select,t.property,t.options):t.select});const u=()=>{a.value=!a.value,i(a.value?"focus":"blur")};function k(){a.value=!1}const h=l=>{o.value=l,u(),t.property?i("update:select",o.value[t.property]):i("update:select",o.value)};function d(l,p,c){for(const s of c)if(s[p]===l||s===l)return s;return null}return(l,p)=>{var c,s;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{onClick:e.withModifiers(u,["stop"]),class:e.normalizeClass([l.$attrs.class,"cursor-pointer flex-v-center flex-nowrap flex pos-relative"])},[n.label?(e.openBlock(),e.createElementBlock("div",B,[e.createElementVNode("span",null,e.toDisplayString(n.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("li",b,[e.createElementVNode("span",null,e.toDisplayString((c=o.value)!=null&&c.name?(s=o.value)==null?void 0:s.name:o.value||n.placeholder),1)]),e.createVNode(e.Transition,{mode:"out-in",name:"TransitionTranslateY"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("ul",{class:e.normalizeClass([l.$attrs.class,"bs-black pos-absolute pos-t-100 pos-l-0 z-index-5 w-100 mn-t-thin"]),style:{"min-width":"max-content"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,r=>(e.openBlock(),e.createElementBlock("li",{onClick:e.withModifiers(V=>h(r),["stop"])},[r?(e.openBlock(),e.createElementBlock("span",S,e.toDisplayString(r.name||r),1)):e.createCommentVNode("",!0)],8,w))),256))],2),[[e.vShow,a.value]])]),_:1})],2)),[[e.unref(f),k]]),e.createVNode(e.Transition,{mode:"out-in",name:"fade"},{default:e.withCtx(()=>[n.validation?(e.openBlock(),e.createElementBlock("div",_," * "+e.toDisplayString(n.validation.message),1)):e.createCommentVNode("",!0)]),_:1})],64)}}},E=g.default(C,[["__scopeId","data-v-bf25c24d"]]);exports.default=E;
|