@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.
Files changed (134) hide show
  1. package/dist/main-BV1Yv9Hy.js +92 -0
  2. package/dist/main-DmNP-t33.mjs +13625 -0
  3. package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.cjs +1 -1
  4. package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.js +748 -750
  5. package/dist/node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.cjs +1 -1
  6. package/dist/node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.js +40 -39
  7. package/dist/node_modules/web3/lib/esm/index.cjs +1 -1
  8. package/dist/node_modules/web3/lib/esm/index.js +42 -41
  9. package/dist/node_modules/web3/lib/esm/version.cjs +1 -1
  10. package/dist/node_modules/web3/lib/esm/version.js +1 -1
  11. package/dist/node_modules/web3-eth/lib/esm/schemas.cjs +1 -1
  12. package/dist/node_modules/web3-eth/lib/esm/schemas.js +113 -88
  13. package/dist/node_modules/web3-eth-contract/lib/esm/contract.cjs +3 -1
  14. package/dist/node_modules/web3-eth-contract/lib/esm/contract.js +242 -217
  15. package/dist/node_modules/web3-eth-contract/lib/esm/encoding.cjs +1 -1
  16. package/dist/node_modules/web3-eth-contract/lib/esm/encoding.js +43 -37
  17. package/dist/node_modules/web3-eth-ens/lib/esm/config.cjs +1 -1
  18. package/dist/node_modules/web3-eth-ens/lib/esm/config.js +3 -1
  19. package/dist/node_modules/web3-eth-ens/lib/esm/ens.cjs +1 -1
  20. package/dist/node_modules/web3-eth-ens/lib/esm/ens.js +34 -13
  21. package/dist/node_modules/web3-eth-ens/lib/esm/resolver.cjs +1 -1
  22. package/dist/node_modules/web3-eth-ens/lib/esm/resolver.js +48 -36
  23. package/dist/node_modules/web3-utils/lib/esm/chunk_response_parser.cjs +1 -1
  24. package/dist/node_modules/web3-utils/lib/esm/chunk_response_parser.js +2 -2
  25. package/dist/node_modules/web3-utils/lib/esm/converters.cjs +1 -1
  26. package/dist/node_modules/web3-utils/lib/esm/converters.js +52 -50
  27. package/dist/node_modules/web3-utils/lib/esm/uint8array.cjs +1 -1
  28. package/dist/node_modules/web3-utils/lib/esm/uint8array.js +13 -13
  29. package/dist/node_modules/web3-validator/lib/esm/utils.cjs +1 -1
  30. package/dist/node_modules/web3-validator/lib/esm/utils.js +76 -87
  31. package/dist/node_modules/web3-validator/lib/esm/validator.cjs +1 -1
  32. package/dist/node_modules/web3-validator/lib/esm/validator.js +49 -47
  33. package/dist/prometheus-framework/node_modules/@capacitor/core/dist/index.cjs +1 -1
  34. package/dist/prometheus-framework/node_modules/@capacitor/core/dist/index.js +168 -158
  35. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  36. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +73 -1
  37. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  38. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +1 -73
  39. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  40. package/dist/prometheus-framework/src/components/Select/Select.vue.js +103 -1
  41. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  42. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +1 -103
  43. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.cjs +1 -1
  44. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.js +36 -1
  45. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.cjs +1 -1
  46. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.js +1 -36
  47. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  48. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
  49. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  50. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  51. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  52. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +1 -1
  53. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  54. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
  55. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +5 -1
  56. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +66 -0
  57. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -5
  58. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +0 -66
  59. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  60. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
  61. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
  62. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
  63. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
  64. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
  65. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  66. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +2 -2
  67. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  68. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +1 -1
  69. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  70. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
  71. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  72. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +1 -1
  73. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  74. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
  75. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
  76. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +13 -1
  77. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
  78. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +1 -13
  79. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  80. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +2 -2
  81. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
  82. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +1 -1
  83. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
  84. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +1 -1
  85. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
  86. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
  87. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
  88. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +1 -1
  89. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  90. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
  91. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
  92. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +1 -1
  93. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  94. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
  95. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  96. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +2 -2
  97. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  98. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
  99. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  100. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
  101. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  102. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
  103. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  104. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
  105. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  106. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
  107. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  108. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
  109. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  110. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  111. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
  112. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +1 -1
  113. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  114. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
  115. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +1 -1
  116. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +20 -25
  117. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  118. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
  119. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  120. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
  121. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
  122. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
  123. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  124. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
  125. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  126. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +1 -1
  127. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  128. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +2 -2
  129. package/dist/prometheus-framework.cjs.js +1 -1
  130. package/dist/prometheus-framework.es.js +1 -1
  131. package/dist/style.css +1 -1
  132. package/dist/web-Bk_OtXgv.js +1 -0
  133. package/dist/web-VFuzUsNl.mjs +54 -0
  134. package/package.json +1 -1
@@ -1,129 +1,126 @@
1
1
  /*! Capacitor: https://capacitorjs.com/ - MIT License */
2
- const Z = (t) => {
2
+ const Z = (r) => {
3
3
  const e = /* @__PURE__ */ new Map();
4
4
  e.set("web", { name: "web" });
5
- const r = t.CapacitorPlatforms || {
5
+ const t = r.CapacitorPlatforms || {
6
6
  currentPlatform: { name: "web" },
7
7
  platforms: e
8
- }, a = (s, i) => {
9
- r.platforms.set(s, i);
10
- }, n = (s) => {
11
- r.platforms.has(s) && (r.currentPlatform = r.platforms.get(s));
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 r.addPlatform = a, r.setPlatform = n, r;
14
- }, N = (t) => t.CapacitorPlatforms = Z(t), R = /* @__PURE__ */ N(typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
15
- R.addPlatform;
16
- R.setPlatform;
17
- var L;
18
- (function(t) {
19
- t.Unimplemented = "UNIMPLEMENTED", t.Unavailable = "UNAVAILABLE";
20
- })(L || (L = {}));
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, r, a) {
23
- super(e), this.message = e, this.code = r, this.data = a;
22
+ constructor(e, t, o) {
23
+ super(e), this.message = e, this.code = t, this.data = o;
24
24
  }
25
25
  }
26
- const ee = (t) => {
27
- var e, r;
28
- return t != null && t.androidBridge ? "android" : !((r = (e = t == null ? void 0 : t.webkit) === null || e === void 0 ? void 0 : e.messageHandlers) === null || r === void 0) && r.bridge ? "ios" : "web";
29
- }, te = (t) => {
30
- var e, r, a, n, s;
31
- const i = t.CapacitorCustomPlatform || null, o = t.Capacitor || {}, f = o.Plugins = o.Plugins || {}, l = t.CapacitorPlatforms, k = () => i !== null ? i.name : ee(t), P = ((e = l == null ? void 0 : l.currentPlatform) === null || e === void 0 ? void 0 : e.getPlatform) || k, x = () => P() !== "web", q = ((r = l == null ? void 0 : l.currentPlatform) === null || r === void 0 ? void 0 : r.isNativePlatform) || x, B = (c) => {
32
- const d = j.get(c);
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
- }, F = ((a = l == null ? void 0 : l.currentPlatform) === null || a === void 0 ? void 0 : a.isPluginAvailable) || B, G = (c) => {
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 = o.PluginHeaders) === null || d === void 0 ? void 0 : d.find((y) => y.name === c);
37
- }, T = ((n = l == null ? void 0 : l.currentPlatform) === null || n === void 0 ? void 0 : n.getPluginHeader) || G, K = (c) => t.console.error(c), z = (c, d, y) => Promise.reject(`${y} does not have an implementation of "${d}".`), j = /* @__PURE__ */ new Map(), V = (c, d = {}) => {
38
- const y = j.get(c);
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(), C = T(c);
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] : i !== null && !w && "web" in d && (w = typeof d.web == "function" ? w = await d.web() : w = d.web), w), X = (u, m) => {
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 (C) {
46
- const b = C == null ? void 0 : C.methods.find((g) => m === g.name);
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" ? (g) => o.nativePromise(c, m.toString(), g) : (g, E) => o.nativeCallback(c, m.toString(), g, E);
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[m]) === null || h === void 0 ? void 0 : h.bind(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[m]) === null || v === void 0 ? void 0 : v.bind(u);
54
- throw new S(`"${c}" plugin is not implemented on ${p}`, L.Unimplemented);
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
- }, U = (u) => {
57
- let m;
56
+ }, j = (u) => {
57
+ let g;
58
58
  const h = (...v) => {
59
- const b = Q().then((g) => {
60
- const E = X(g, u);
61
- if (E) {
62
- const $ = E(...v);
63
- return m = $ == null ? void 0 : $.remove, $;
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}`, L.Unimplemented);
65
+ throw new S(`"${c}.${u}()" is not implemented on ${p}`, C.Unimplemented);
66
66
  });
67
- return u === "addListener" && (b.remove = async () => m()), b;
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
- }, _ = U("addListener"), H = U("removeListener"), Y = (u, m) => {
75
- const h = _({ eventName: u }, m), v = async () => {
76
- const g = await h;
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: g
80
- }, m);
81
- }, b = new Promise((g) => h.then(() => g({ remove: v })));
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
- }, A = new Proxy({}, {
86
- get(u, m) {
87
- switch (m) {
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 C ? Y : _;
93
+ return L ? Y : _;
94
94
  case "removeListener":
95
95
  return H;
96
96
  default:
97
- return U(m);
97
+ return j(g);
98
98
  }
99
99
  }
100
100
  });
101
- return f[c] = A, j.set(c, {
101
+ return f[c] = U, A.set(c, {
102
102
  name: c,
103
- proxy: A,
103
+ proxy: U,
104
104
  platforms: /* @__PURE__ */ new Set([
105
105
  ...Object.keys(d),
106
- ...C ? [p] : []
106
+ ...L ? [p] : []
107
107
  ])
108
- }), A;
109
- }, J = ((s = l == null ? void 0 : l.currentPlatform) === null || s === void 0 ? void 0 : s.registerPlugin) || V;
110
- return o.convertFileSrc || (o.convertFileSrc = (c) => c), o.getPlatform = P, o.handleError = K, o.isNativePlatform = q, o.isPluginAvailable = F, o.pluginMethodNoop = z, o.registerPlugin = J, o.Exception = S, o.DEBUG = !!o.DEBUG, o.isLoggingEnabled = !!o.isLoggingEnabled, o.platform = o.getPlatform(), o.isNative = o.isNativePlatform(), o;
111
- }, re = (t) => t.Capacitor = te(t), O = /* @__PURE__ */ re(typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {}), D = O.registerPlugin;
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 I {
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, r) {
118
- this.listeners[e] || (this.listeners[e] = []), this.listeners[e].push(r);
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 s = async () => this.removeListener(e, r), i = Promise.resolve({ remove: s });
122
- return Object.defineProperty(i, "remove", {
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, r) {
135
- const a = this.listeners[e];
136
- a && a.forEach((n) => n(r));
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, r) {
142
- this.windowListeners[r] = {
145
+ registerWindowListener(e, t) {
146
+ this.windowListeners[t] = {
143
147
  registered: !1,
144
148
  windowEventName: e,
145
- pluginEventName: r,
146
- handler: (a) => {
147
- this.notifyListeners(r, a);
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, L.Unimplemented);
156
+ return new O.Exception(e, C.Unimplemented);
153
157
  }
154
158
  unavailable(e = "not available") {
155
- return new O.Exception(e, L.Unavailable);
159
+ return new O.Exception(e, C.Unavailable);
156
160
  }
157
- async removeListener(e, r) {
158
- const a = this.listeners[e];
159
- if (!a)
161
+ async removeListener(e, t) {
162
+ const o = this.listeners[e];
163
+ if (!o)
160
164
  return;
161
- const n = a.indexOf(r);
162
- this.listeners[e].splice(n, 1), this.listeners[e].length || this.removeWindowListener(this.windowListeners[e]);
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 M = (t) => encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape), W = (t) => t.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
172
- class ne extends I {
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, r = {};
175
- return e.split(";").forEach((a) => {
176
- if (a.length <= 0)
184
+ const e = document.cookie, t = {};
185
+ return e.split(";").forEach((o) => {
186
+ if (o.length <= 0)
177
187
  return;
178
- let [n, s] = a.replace(/=/, "CAP_COOKIE").split("CAP_COOKIE");
179
- n = W(n).trim(), s = W(s).trim(), r[n] = s;
180
- }), r;
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 r = M(e.key), a = M(e.value), n = `; expires=${(e.expires || "").replace("expires=", "")}`, s = (e.path || "/").replace("path=", ""), i = e.url != null && e.url.length > 0 ? `domain=${e.url}` : "";
185
- document.cookie = `${r}=${a || ""}${n}; path=${s}; ${i};`;
186
- } catch (r) {
187
- return Promise.reject(r);
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 (r) {
194
- return Promise.reject(r);
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 r of e)
201
- document.cookie = r.replace(/^ +/, "").replace(/=.*/, `=;expires=${(/* @__PURE__ */ new Date()).toUTCString()};path=/`);
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 (t) => new Promise((e, r) => {
218
- const a = new FileReader();
219
- a.onload = () => {
220
- const n = a.result;
221
- e(n.indexOf(",") >= 0 ? n.split(",")[1] : n);
222
- }, a.onerror = (n) => r(n), a.readAsDataURL(t);
223
- }), oe = (t = {}) => {
224
- const e = Object.keys(t);
225
- return Object.keys(t).map((n) => n.toLocaleLowerCase()).reduce((n, s, i) => (n[s] = t[e[i]], n), {});
226
- }, ae = (t, e = !0) => t ? Object.entries(t).reduce((a, n) => {
227
- const [s, i] = n;
228
- let o, f;
229
- return Array.isArray(i) ? (f = "", i.forEach((l) => {
230
- o = e ? encodeURIComponent(l) : l, f += `${s}=${o}&`;
231
- }), f.slice(0, -1)) : (o = e ? encodeURIComponent(i) : i, f = `${s}=${o}`), `${a}&${f}`;
232
- }, "").substr(1) : null, ie = (t, e = {}) => {
233
- const r = Object.assign({ method: t.method || "GET", headers: t.headers }, e), n = oe(t.headers)["content-type"] || "";
234
- if (typeof t.data == "string")
235
- r.body = t.data;
236
- else if (n.includes("application/x-www-form-urlencoded")) {
237
- const s = new URLSearchParams();
238
- for (const [i, o] of Object.entries(t.data || {}))
239
- s.set(i, o);
240
- r.body = s.toString();
241
- } else if (n.includes("multipart/form-data") || t.data instanceof FormData) {
242
- const s = new FormData();
243
- if (t.data instanceof FormData)
244
- t.data.forEach((o, f) => {
245
- s.append(f, o);
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 o of Object.keys(t.data))
249
- s.append(o, t.data[o]);
250
- r.body = s;
251
- const i = new Headers(r.headers);
252
- i.delete("content-type"), r.headers = i;
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
- (n.includes("application/json") || typeof t.data == "object") && (r.body = JSON.stringify(t.data));
255
- return r;
264
+ (i.includes("application/json") || typeof r.data == "object") && (t.body = JSON.stringify(r.data));
265
+ return t;
256
266
  };
257
- class le extends I {
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 r = ie(e, e.webFetchExtra), a = ae(e.params, e.shouldEncodeUrlParams), n = a ? `${e.url}?${a}` : e.url, s = await fetch(n, r), i = s.headers.get("content-type") || "";
264
- let { responseType: o = "text" } = s.ok ? e : {};
265
- i.includes("application/json") && (o = "json");
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 (o) {
277
+ switch (s) {
268
278
  case "arraybuffer":
269
279
  case "blob":
270
- l = await s.blob(), f = await se(l);
280
+ l = await n.blob(), f = await se(l);
271
281
  break;
272
282
  case "json":
273
- f = await s.json();
283
+ f = await n.json();
274
284
  break;
275
285
  case "document":
276
286
  case "text":
277
287
  default:
278
- f = await s.text();
288
+ f = await n.text();
279
289
  }
280
- const k = {};
281
- return s.headers.forEach((P, x) => {
282
- k[x] = P;
290
+ const E = {};
291
+ return n.headers.forEach((P, x) => {
292
+ E[x] = P;
283
293
  }), {
284
294
  data: f,
285
- headers: k,
286
- status: s.status,
287
- url: s.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
- R as CapacitorPlatforms,
333
- L as ExceptionCode,
334
- I as WebPlugin,
335
- ie as buildRequestInit,
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";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.vue.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
+ "use strict";
@@ -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.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;