@ozdao/prometheus-framework 0.0.94 → 0.0.95

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-6f807eb5.js +1 -0
  2. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-97217d38.mjs +1945 -0
  3. package/dist/ButtonFollow-4049a57e.js +1 -0
  4. package/dist/ButtonFollow-6765c266.mjs +131 -0
  5. package/dist/CardOrganization-b2098e42.js +1 -0
  6. package/dist/CardOrganization-c2e7e903.mjs +229 -0
  7. package/dist/Feed-13499a3a.mjs +428 -0
  8. package/dist/Feed-345d8513.mjs +355 -0
  9. package/dist/Feed-c6b67df4.js +1 -0
  10. package/dist/Feed-f0a40b33.js +1 -0
  11. package/dist/Image-b2131fa0.mjs +477 -0
  12. package/dist/Image-d01026cf.js +9 -0
  13. package/dist/Popup-0b38b537.js +1 -0
  14. package/dist/Popup-e6685f31.mjs +76 -0
  15. package/dist/Product-3c2ae338.js +7 -0
  16. package/dist/Product-dccb371a.mjs +838 -0
  17. package/dist/ProductEdit-777bb9e2.mjs +350 -0
  18. package/dist/ProductEdit-d5dec3cf.js +1 -0
  19. package/dist/ProfileBlogposts-39c20b79.mjs +64 -0
  20. package/dist/ProfileBlogposts-6c715a38.js +1 -0
  21. package/dist/ProfileComments-1525663e.mjs +44 -0
  22. package/dist/ProfileComments-1cbf5c45.js +1 -0
  23. package/dist/ProfileEvents-48c70286.mjs +56 -0
  24. package/dist/ProfileEvents-a28a4ee5.js +1 -0
  25. package/dist/ProfileLikes-ca197731.mjs +44 -0
  26. package/dist/ProfileLikes-e31f28dc.js +1 -0
  27. package/dist/ProfileOrganizations-600d310d.js +1 -0
  28. package/dist/ProfileOrganizations-774c6508.mjs +212 -0
  29. package/dist/Publics-4db36606.js +1 -0
  30. package/dist/Publics-cbb8eaaa.mjs +123 -0
  31. package/dist/UploadImage-739cab04.js +1 -0
  32. package/dist/UploadImage-8835be69.mjs +83 -0
  33. package/dist/auth-b61483ce.js +8 -0
  34. package/dist/auth-cfeacd61.mjs +1839 -0
  35. package/dist/auth.client.cjs +1 -1
  36. package/dist/auth.client.js +3 -3
  37. package/dist/auth.validation-2f00457e.js +1 -0
  38. package/dist/auth.validation-3fd4cc7c.mjs +20 -0
  39. package/dist/community.client.cjs +1 -1
  40. package/dist/community.client.js +10 -10
  41. package/dist/events.client.cjs +1 -1
  42. package/dist/events.client.js +8 -8
  43. package/dist/organizations-49a10611.js +1 -0
  44. package/dist/organizations-8ffdf84d.mjs +121 -0
  45. package/dist/organizations.client-0071acee.js +3 -0
  46. package/dist/organizations.client-fa3b0839.mjs +3017 -0
  47. package/dist/organizations.client.cjs +1 -1
  48. package/dist/organizations.client.js +10 -10
  49. package/dist/users.client.cjs +1 -1
  50. package/dist/users.client.js +9 -9
  51. package/package.json +2 -1
  52. package/src/modules/auth/store/auth.js +23 -3
@@ -0,0 +1,838 @@
1
+ import { getCurrentInstance as E, isProxy as J, watch as O, defineComponent as Y, withAsyncContext as Z, openBlock as a, createElementBlock as n, createElementVNode as o, toDisplayString as r, unref as d, Fragment as T, renderList as N, createCommentVNode as l, normalizeClass as M, computed as x, createBlock as I, createVNode as w, ref as C, onMounted as F, withCtx as P, onUnmounted as G, Transition as D, withModifiers as Q, createStaticVNode as U, normalizeStyle as K, reactive as tt } from "vue";
2
+ import { b as q, s as b, _ as et } from "./organizations.client-fa3b0839.mjs";
3
+ import { useRouter as B, useRoute as ot } from "vue-router";
4
+ import { useI18n as V } from "vue-i18n";
5
+ import { C as st, S as it } from "./carousel.es-44c501bc.mjs";
6
+ import { u as at } from "./vuex.esm-bundler-57d8b6ba.mjs";
7
+ import { L as nt } from "./Feed-13499a3a.mjs";
8
+ import { _ as j } from "./_plugin-vue_export-helper-dad06003.mjs";
9
+ import { _ as ct } from "./Popup-e6685f31.mjs";
10
+ import "./auth-cfeacd61.mjs";
11
+ import "./globals-96ba60e4.mjs";
12
+ import "./Breadcrumbs.vue_vue_type_style_index_0_lang-97217d38.mjs";
13
+ import "./Tab-a243605d.mjs";
14
+ import "./inputs.validation-14e8e01f.mjs";
15
+ import "./ButtonFollow-6765c266.mjs";
16
+ import "./Feed-345d8513.mjs";
17
+ import "./EmptyState-34d85f10.mjs";
18
+ import "./Chips-f0b7ce36.mjs";
19
+ import "./PlaceholderUserpic-14c6ea7e.mjs";
20
+ import "./IconEdit-f0ad8b9a.mjs";
21
+ import "./CardOrganization-c2e7e903.mjs";
22
+ import "./organizations-8ffdf84d.mjs";
23
+ import "./UploadImage-8835be69.mjs";
24
+ import "./Publics-cbb8eaaa.mjs";
25
+ /**
26
+ * vue-meta v3.0.0-alpha.10
27
+ * (c) 2022
28
+ * - Pim (@pimlie)
29
+ * - All the amazing contributors
30
+ * @license MIT
31
+ */
32
+ const rt = (t) => t !== null && typeof t == "object";
33
+ function R(t, e, s) {
34
+ for (const i in e)
35
+ i in s ? rt(t[i]) ? R(t[i], e[i], s[i]) : e[i] !== s[i] && (t[i] = e[i]) : t[i] = e[i];
36
+ for (const i in s)
37
+ e && i in e || delete t[i];
38
+ }
39
+ function X(t) {
40
+ if (t || (t = E() || void 0), t)
41
+ return t.appContext.config.globalProperties.$metaManager;
42
+ }
43
+ function lt(t, e) {
44
+ const s = E() || void 0;
45
+ if (!e && s && (e = X(s)), !e)
46
+ throw new Error("No manager or current instance");
47
+ J(t) && (O(t, (c, u) => {
48
+ R(i.meta, c, u);
49
+ }), t = t.value);
50
+ const i = e.addMeta(t, s);
51
+ return i;
52
+ }
53
+ Y({ name: "Metainfo", inheritAttrs: !1, setup: (t, { slots: e }) => () => {
54
+ const s = X();
55
+ if (s)
56
+ return s.render({ slots: e });
57
+ } });
58
+ const ut = { class: "pd-t-zero pd-thin" }, dt = { class: "bg-black t-white radius-big footer" }, mt = {
59
+ id: "top-footer",
60
+ class: "cols-3 section"
61
+ }, ht = {
62
+ href: "mailto:hello@weeder.delivery",
63
+ class: "w-100 radius-small contact col"
64
+ }, pt = { class: "t-transp" }, ft = { class: "h4 mn-small" }, gt = /* @__PURE__ */ o("div", { class: "store-buttons" }, null, -1), _t = {
65
+ href: "https://t.me/weeder_support",
66
+ target: "_blank",
67
+ class: "w-100 radius-small contact col"
68
+ }, vt = { class: "h4 mn-small" }, Ct = /* @__PURE__ */ o("div", { class: "socials flex-nojustify flex" }, [
69
+ /* @__PURE__ */ o("a", {
70
+ class: "mn-r-small",
71
+ href: "https://t.me/weederdelivery",
72
+ target: "_blank"
73
+ }),
74
+ /* @__PURE__ */ o("a", {
75
+ class: "mn-r-small",
76
+ href: "https://t.me/weederdelivery",
77
+ target: "_blank"
78
+ }),
79
+ /* @__PURE__ */ o("a", {
80
+ class: "mn-r-small",
81
+ href: "https://t.me/weederdelivery",
82
+ target: "_blank"
83
+ })
84
+ ], -1), wt = { class: "cols-3 section" }, yt = { class: "lh-semi nav-footer col" }, $t = { class: "mn-small t-semi h5" }, bt = { class: "mn-medium ol" }, xt = ["innerHTML"], kt = /* @__PURE__ */ o("a", {
85
+ href: "https://ozdao.dev",
86
+ target: "_blank"
87
+ }, null, -1), St = { class: "lh-semi nav-footer col" }, Lt = { class: "mn-small t-semi h5" }, Mt = { class: "lh-semi col" }, It = { class: "mn-small t-semi h5" }, Pt = /* @__PURE__ */ o("div", { class: "mn-medium" }, [
88
+ /* @__PURE__ */ o("li", null, "Phuket,"),
89
+ /* @__PURE__ */ o("li", null, "43 283 Soi Boathouse,"),
90
+ /* @__PURE__ */ o("li", null, "Rawai")
91
+ ], -1), Vt = { class: "pd-small t-center br-top-dark copyright" }, At = {
92
+ __name: "Footer",
93
+ async setup(t) {
94
+ let e, s;
95
+ B(), [e, s] = Z(() => q.fetchCategories()), await e, s();
96
+ const i = {
97
+ locale: "en",
98
+ messages: {
99
+ en: {
100
+ store: "Online Store",
101
+ information: "Information",
102
+ description: "Weeder Delivery stocks a wide range of quality!",
103
+ app: "Get Our App",
104
+ adress: "Adress",
105
+ support: "Get Online Support",
106
+ socials: "Find Us in Socials",
107
+ email: "Contact by email",
108
+ // request: 'hello@weeder.delivery',
109
+ time: "24 / 7 Seven days a week",
110
+ copyright: "2022 © Weeder Delivery. Proudly created with OZ DAO.",
111
+ pages: [],
112
+ categories: []
113
+ },
114
+ ru: {
115
+ store: "Онлайн Каталог",
116
+ information: "Информация",
117
+ description: "Weeder Delivery предлагает широкий ассортимент качественных!",
118
+ app: "Скачайте Наше Приложение",
119
+ adress: "Адрес",
120
+ support: "Онлайн Поддержка",
121
+ socials: "Найдите Нас в Социальных Сетях",
122
+ email: "Связаться по email",
123
+ // request: 'hello@weeder.delivery',
124
+ time: "24 / 7 без перерывов",
125
+ copyright: "2022 © Weeder Delivery. С гордостью создано OZ DAO.",
126
+ pages: [],
127
+ categories: []
128
+ }
129
+ }
130
+ };
131
+ b.all.forEach((u) => {
132
+ u.localization.forEach((g) => {
133
+ i.messages[g.locale].categories.push(g.text);
134
+ });
135
+ });
136
+ const { t: c } = V(i);
137
+ return (u, g) => (a(), n("div", ut, [
138
+ o("footer", dt, [
139
+ o("div", mt, [
140
+ o("a", ht, [
141
+ o("p", pt, r(d(c)("description")), 1)
142
+ ]),
143
+ o("div", {
144
+ onClick: g[0] || (g[0] = (p) => this.$router.push({ name: "Home" })),
145
+ class: "flex-v-center flex logo-link col"
146
+ }, [
147
+ o("p", ft, r(d(c)("app")), 1),
148
+ gt
149
+ ]),
150
+ o("a", _t, [
151
+ o("p", vt, r(d(c)("socials")), 1),
152
+ Ct
153
+ ])
154
+ ]),
155
+ o("div", wt, [
156
+ o("ul", yt, [
157
+ o("li", $t, r(d(c)("store")), 1),
158
+ o("div", bt, [
159
+ (a(!0), n(T, null, N(b.all, (p, h) => (a(), n("li", null, [
160
+ o("span", {
161
+ innerHTML: d(c)("categories[" + h + "]")
162
+ }, null, 8, xt)
163
+ ]))), 256))
164
+ ]),
165
+ kt
166
+ ]),
167
+ o("ul", St, [
168
+ o("li", Lt, r(d(c)("information")), 1)
169
+ ]),
170
+ o("ul", Mt, [
171
+ o("li", It, r(d(c)("email")), 1),
172
+ Pt
173
+ ])
174
+ ]),
175
+ o("p", Vt, r(d(c)("copyright")), 1)
176
+ ])
177
+ ]));
178
+ }
179
+ }, zt = {
180
+ key: 0,
181
+ class: "thc"
182
+ }, Tt = { class: "t-bold t-white" }, Nt = /* @__PURE__ */ o("p", { class: "t-white h6" }, "THC", -1), Ht = {
183
+ key: 0,
184
+ width: "60",
185
+ height: "66",
186
+ viewBox: "0 0 60 66",
187
+ fill: "none",
188
+ xmlns: "http://www.w3.org/2000/svg"
189
+ }, Ot = /* @__PURE__ */ o("path", {
190
+ fill: "#FF0000",
191
+ stroke: "white",
192
+ "stroke-width": "3",
193
+ d: "M26 3.3094C28.4752 1.88034 31.5248 1.88034 34 3.3094L53.7128 14.6906C56.188 16.1197 57.7128 18.7607 57.7128 21.6188V44.3812C57.7128 47.2393 56.188 49.8803 53.7128 51.3094L34 62.6906C31.5248 64.1197 28.4752 64.1197 26 62.6906L6.28719 51.3094C3.81198 49.8803 2.28719 47.2393 2.28719 44.3812V21.6188C2.28719 18.7607 3.81198 16.1197 6.28719 14.6906L26 3.3094Z"
194
+ }, null, -1), Zt = [
195
+ Ot
196
+ ], Ft = {
197
+ key: 1,
198
+ width: "60",
199
+ height: "66",
200
+ viewBox: "0 0 60 66",
201
+ fill: "none",
202
+ xmlns: "http://www.w3.org/2000/svg"
203
+ }, qt = /* @__PURE__ */ o("path", {
204
+ fill: "#FF0099",
205
+ stroke: "white",
206
+ "stroke-width": "3",
207
+ d: "M26 3.3094C28.4752 1.88034 31.5248 1.88034 34 3.3094L53.7128 14.6906C56.188 16.1197 57.7128 18.7607 57.7128 21.6188V44.3812C57.7128 47.2393 56.188 49.8803 53.7128 51.3094L34 62.6906C31.5248 64.1197 28.4752 64.1197 26 62.6906L6.28719 51.3094C3.81198 49.8803 2.28719 47.2393 2.28719 44.3812V21.6188C2.28719 18.7607 3.81198 16.1197 6.28719 14.6906L26 3.3094Z"
208
+ }, null, -1), Bt = [
209
+ qt
210
+ ], jt = {
211
+ key: 2,
212
+ width: "60",
213
+ height: "66",
214
+ viewBox: "0 0 60 66",
215
+ fill: "none",
216
+ xmlns: "http://www.w3.org/2000/svg"
217
+ }, Dt = /* @__PURE__ */ o("path", {
218
+ fill: "#EB00FF",
219
+ stroke: "white",
220
+ "stroke-width": "3",
221
+ d: "M26 3.3094C28.4752 1.88034 31.5248 1.88034 34 3.3094L53.7128 14.6906C56.188 16.1197 57.7128 18.7607 57.7128 21.6188V44.3812C57.7128 47.2393 56.188 49.8803 53.7128 51.3094L34 62.6906C31.5248 64.1197 28.4752 64.1197 26 62.6906L6.28719 51.3094C3.81198 49.8803 2.28719 47.2393 2.28719 44.3812V21.6188C2.28719 18.7607 3.81198 16.1197 6.28719 14.6906L26 3.3094Z"
222
+ }, null, -1), Et = [
223
+ Dt
224
+ ], Rt = {
225
+ key: 3,
226
+ width: "60",
227
+ height: "66",
228
+ viewBox: "0 0 60 66",
229
+ fill: "none",
230
+ xmlns: "http://www.w3.org/2000/svg"
231
+ }, Xt = /* @__PURE__ */ o("path", {
232
+ fill: "#00FF29",
233
+ stroke: "white",
234
+ "stroke-width": "3",
235
+ d: "M26 3.3094C28.4752 1.88034 31.5248 1.88034 34 3.3094L53.7128 14.6906C56.188 16.1197 57.7128 18.7607 57.7128 21.6188V44.3812C57.7128 47.2393 56.188 49.8803 53.7128 51.3094L34 62.6906C31.5248 64.1197 28.4752 64.1197 26 62.6906L6.28719 51.3094C3.81198 49.8803 2.28719 47.2393 2.28719 44.3812V21.6188C2.28719 18.7607 3.81198 16.1197 6.28719 14.6906L26 3.3094Z"
236
+ }, null, -1), Wt = [
237
+ Xt
238
+ ], Jt = {
239
+ __name: "THC",
240
+ props: {
241
+ product: Object
242
+ },
243
+ setup(t) {
244
+ return (e, s) => t.product.information[1] ? (a(), n("div", zt, [
245
+ o("p", Tt, r(t.product.information[1].value) + " %", 1),
246
+ Nt,
247
+ Number(t.product.information[1].value) >= 18 ? (a(), n("svg", Ht, Zt)) : l("", !0),
248
+ Number(t.product.information[1].value) <= 18 && Number(t.product.information[1].value) >= 14 ? (a(), n("svg", Ft, Bt)) : l("", !0),
249
+ Number(t.product.information[1].value) <= 14 && Number(t.product.information[1].value) >= 10 ? (a(), n("svg", jt, Et)) : l("", !0),
250
+ Number(t.product.information[1].value) <= 10 ? (a(), n("svg", Rt, Wt)) : l("", !0)
251
+ ])) : l("", !0);
252
+ }
253
+ }, Yt = { class: "price-tag radius-small" }, Gt = {
254
+ key: 0,
255
+ class: "t-transp t-main p-medium line-through price"
256
+ }, W = {
257
+ __name: "Price",
258
+ props: {
259
+ product: Object,
260
+ size: String
261
+ },
262
+ setup(t) {
263
+ return (e, s) => (a(), n("div", Yt, [
264
+ o("p", {
265
+ class: M(
266
+ {
267
+ "t-main": t.product.sale,
268
+ h4: !t.size,
269
+ "h5 t-semi pd-thin": t.size === "small",
270
+ "h3 t-semi pd-small": t.size === "big"
271
+ }
272
+ )
273
+ }, r(t.product.price) + " " + r(e.returnCurrency()), 3),
274
+ t.product.sale ? (a(), n("p", Gt, r(t.product.price / 100 * (100 + t.product.sale)) + " " + r(e.returnCurrency()), 1)) : l("", !0)
275
+ ]));
276
+ }
277
+ }, Qt = ["src"], Ut = {
278
+ key: 1,
279
+ class: "h-100 w-100",
280
+ style: { "object-fit": "cover" },
281
+ width: "524",
282
+ height: "345",
283
+ viewBox: "0 0 524 345",
284
+ fill: "none",
285
+ xmlns: "http://www.w3.org/2000/svg"
286
+ }, Kt = /* @__PURE__ */ o("rect", {
287
+ width: "524",
288
+ height: "345",
289
+ fill: "white"
290
+ }, null, -1), te = /* @__PURE__ */ o("rect", {
291
+ width: "524",
292
+ height: "345",
293
+ fill: "white"
294
+ }, null, -1), ee = /* @__PURE__ */ o("circle", {
295
+ cx: "262",
296
+ cy: "172",
297
+ r: "56",
298
+ fill: "#00ff88",
299
+ "fill-opacity": "0.1"
300
+ }, null, -1), oe = /* @__PURE__ */ o("path", {
301
+ fill: "#00ff88",
302
+ d: "M229.348 186.819C230.243 191.884 233.393 194.231 238.458 193.273V193.644C238.458 198.832 241.206 201.581 246.364 201.581H291.545C296.733 201.581 299.481 198.74 299.481 193.644V162.576C299.481 157.481 296.733 154.64 291.545 154.64H285.677L284.071 145.653C283.175 140.619 279.995 138.303 274.899 139.198L230.398 147.043C225.302 147.969 223.048 151.15 223.943 156.246L229.348 186.819ZM230.83 186.479L225.456 156.06C224.715 151.86 226.537 149.266 230.737 148.525L275.084 140.712C279.13 140.001 281.848 141.762 282.62 145.993L284.102 154.64H246.364C241.206 154.64 238.458 157.419 238.458 162.576V191.729L238.365 191.76C234.165 192.532 231.571 190.679 230.83 186.479ZM239.971 162.669C239.971 158.376 242.164 156.153 246.456 156.153H291.483C295.59 156.153 297.968 158.376 297.968 162.669V190.093L284.565 177.894C283.145 176.597 281.662 175.856 279.809 175.856C277.987 175.856 276.628 176.566 275.146 177.863L262.052 189.073L257.142 184.565C255.875 183.36 254.764 182.743 253.158 182.743C251.675 182.743 250.656 183.36 249.39 184.503L239.971 193.212V162.669ZM257.636 178.419C261.373 178.419 264.43 175.3 264.43 171.471C264.43 167.734 261.373 164.584 257.636 164.584C253.806 164.584 250.718 167.734 250.718 171.471C250.718 175.3 253.806 178.419 257.636 178.419Z"
303
+ }, null, -1), se = [
304
+ Kt,
305
+ te,
306
+ ee,
307
+ oe
308
+ ], ie = { class: "pd-medium t-left product-card-content" }, ae = { class: "mn-thin h4" }, ne = {
309
+ key: 1,
310
+ class: "mn-small t-transp p-small"
311
+ }, ce = /* @__PURE__ */ o("div", null, null, -1), re = {
312
+ __name: "ProductCard",
313
+ props: ["product"],
314
+ setup(t) {
315
+ const e = t, s = at();
316
+ return V(), x(() => s.state.favorites.items.filter(function(i, c) {
317
+ if (i._id === e.product._id)
318
+ return !0;
319
+ })), (i, c) => (a(), n("div", {
320
+ class: M([
321
+ "radius-big product",
322
+ t.product.information[2] && t.product.information[2].value === "AAAA" ? "bg-black t-white" : "bg-white"
323
+ ])
324
+ }, [
325
+ o("div", {
326
+ class: M([
327
+ "o-hidden w-100 h-100 square",
328
+ t.product.information[2] && t.product.information[2].value === "AAAA" ? "bg-black" : "bg-white"
329
+ ])
330
+ }, [
331
+ t.product.images[0] ? (a(), n("img", {
332
+ key: 0,
333
+ src: t.product.images[0],
334
+ class: "w-100 h-100"
335
+ }, null, 8, Qt)) : (a(), n("svg", Ut, se)),
336
+ t.product.information.length > 0 ? (a(), I(Jt, {
337
+ key: 2,
338
+ product: t.product
339
+ }, null, 8, ["product"])) : l("", !0)
340
+ ], 2),
341
+ o("div", ie, [
342
+ t.product.information.length > 0 ? (a(), n("p", {
343
+ key: 0,
344
+ class: M([
345
+ "t-semi h6",
346
+ t.product.information[2] && t.product.information[2].value === "AAAA" ? "t-violet" : "t-main"
347
+ ])
348
+ }, r(t.product.information[0].value), 3)) : l("", !0),
349
+ o("p", ae, r(t.product.name), 1),
350
+ t.product.description && !t.product.localization ? (a(), n("p", ne, r(t.product.description.substring(0, 99)) + "... ", 1)) : l("", !0),
351
+ w(W, {
352
+ product: t.product,
353
+ size: "small",
354
+ class: M(
355
+ t.product.information[2] && t.product.information[2].value === "AAAA" ? "bg-third t-white" : ""
356
+ )
357
+ }, null, 8, ["product", "class"])
358
+ ]),
359
+ ce
360
+ ], 2));
361
+ }
362
+ }, le = {
363
+ id: "popularProducts",
364
+ class: "pd-thin"
365
+ }, ue = { class: "bg-grey radius-big pd-t-big pd-b-big" }, de = { class: "mn-semi t-center title" }, me = { class: "" }, he = {
366
+ __name: "PopularProducts",
367
+ async setup(t) {
368
+ let e, s;
369
+ B(), [e, s] = Z(() => q.read({ limit: 10 })), await e, s();
370
+ const i = {
371
+ messages: {
372
+ en: {
373
+ title: "Explore Hot Products 🔥",
374
+ subtitle: "We attach great importance to high quality and customer satisfaction"
375
+ },
376
+ ru: {
377
+ title: "Самое Горячее 🔥",
378
+ subtitle: "Мы придаем большое значение высокому качеству товаров и удовлетворенности клиентов"
379
+ }
380
+ }
381
+ }, { t: c } = V(i), u = C(null), g = {
382
+ 320: { itemsToShow: 1 },
383
+ 640: { itemsToShow: 3 },
384
+ 1024: { itemsToShow: 3 }
385
+ };
386
+ return F(async () => {
387
+ setTimeout(() => {
388
+ u.value.updateSlideWidth();
389
+ }, 500);
390
+ }), (p, h) => (a(), n("div", le, [
391
+ o("div", ue, [
392
+ o("div", de, [
393
+ o("h2", me, r(d(c)("title")), 1)
394
+ ]),
395
+ w(d(st), {
396
+ ref_key: "myCarousel",
397
+ ref: u,
398
+ "items-to-show": 3,
399
+ transition: 330,
400
+ wrapAround: !0,
401
+ autoplay: 3e3,
402
+ pauseAutoplayOnHover: !0,
403
+ breakpoints: g
404
+ }, {
405
+ default: P(() => [
406
+ (a(!0), n(T, null, N(b.all, (f, _, y) => (a(), I(d(it), {
407
+ class: "pd-thin",
408
+ key: _
409
+ }, {
410
+ default: P(() => [
411
+ w(re, {
412
+ class: "carousel__item h-100 w-100",
413
+ product: f
414
+ }, null, 8, ["product"])
415
+ ]),
416
+ _: 2
417
+ }, 1024))), 128))
418
+ ]),
419
+ _: 1
420
+ }, 512)
421
+ ])
422
+ ]));
423
+ }
424
+ };
425
+ const pe = { class: "product-360-viewer" }, fe = /* @__PURE__ */ U('<svg class="pos-absolute z-index-2 pos-b-0 pd-small" width="73" height="50" viewBox="0 0 73 50" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-333fa548><path d="M42.5934 17.2017C42.5934 20.8208 39.8428 23.7544 36.45 23.7544C33.0573 23.7544 30.3066 20.8208 30.3066 17.2017C30.3066 13.5826 33.0573 10.6484 36.45 10.6484C39.8428 10.6484 42.5934 13.5826 42.5934 17.2017Z" fill="black" fill-opacity="0.1" data-v-333fa548></path><path d="M22.5953 29.4883H50.3053C53.7389 29.4883 56.5197 26.778 56.5197 23.4405V10.8396C56.5197 7.49996 53.739 4.79176 50.3053 4.79176H48.8712C48.2747 2.05313 45.7826 0 42.7962 0H30.1063C27.1179 0 24.6257 2.053 24.0313 4.78967H22.5971C19.1656 4.78967 16.3828 7.49788 16.3828 10.8375V23.4384C16.3807 26.778 19.1634 29.4882 22.595 29.4882L22.5953 29.4883ZM36.449 8.31471C41.4535 8.31471 45.5123 12.2648 45.5123 17.1352C45.5123 22.0062 41.4535 25.9582 36.449 25.9582C31.4445 25.9582 27.3856 22.0081 27.3856 17.1377C27.3856 12.2673 31.4445 8.31471 36.449 8.31471ZM20.9092 9.32597H24.0182C24.9472 9.32597 25.7019 10.0584 25.7019 10.9625C25.7019 11.8686 24.9493 12.6011 24.0182 12.6011H20.9092C19.9823 12.6011 19.2254 11.8707 19.2254 10.9625C19.2275 10.0604 19.9822 9.32597 20.9092 9.32597Z" fill="black" fill-opacity="0.1" data-v-333fa548></path><path d="M58.8645 12.2878C58.8645 12.2878 77.1839 21.8549 65.5604 32.0445C63.6718 33.6967 55.2747 38.9138 42.5947 39.9368V45.0519C50.0424 44.2514 61.7635 41.887 68.4037 34.9253C82.5323 20.1097 58.8657 12.2871 58.8657 12.2871L58.8645 12.2878Z" fill="black" fill-opacity="0.1" data-v-333fa548></path><path d="M37.6664 41.209L29.1818 35.5097C28.077 34.7658 27.1702 35.2358 27.1702 36.5516V39.5855C16.2598 38.0408 9.07761 33.565 7.35125 32.0517C-4.2894 21.858 14.0557 12.2871 14.0557 12.2871C14.0557 12.2871 -9.64257 20.1134 4.5039 34.9343C10.2723 40.9769 19.8619 43.5552 27.1712 44.656V44.952V48.5701C27.1712 49.8901 28.078 50.3554 29.1827 49.6141L37.6673 43.9127C38.7757 43.1683 38.7757 41.9525 37.6673 41.2092L37.6664 41.209Z" fill="black" fill-opacity="0.1" data-v-333fa548></path></svg>', 1), ge = {
426
+ key: 0,
427
+ class: "h-100 w-100 transition-ease"
428
+ }, _e = ["src"], ve = {
429
+ __name: "Images360",
430
+ props: {
431
+ imagePath: {
432
+ type: String,
433
+ required: !0
434
+ },
435
+ imageCount: {
436
+ type: Number,
437
+ default: 36
438
+ },
439
+ autoRotateSpeed: {
440
+ type: Number,
441
+ default: 100
442
+ }
443
+ },
444
+ setup(t) {
445
+ const e = t, s = C(0), i = C(!1), c = C(0), u = C(0);
446
+ C(!0);
447
+ const g = async () => {
448
+ const v = [];
449
+ for (let $ = 1; $ <= e.imageCount; $++) {
450
+ const S = new Image();
451
+ S.src = `${e.imagePath}/${$}.jpg`;
452
+ try {
453
+ await S.decode(), u.value++;
454
+ } catch (H) {
455
+ console.warn(`Failed to decode ${e.imagePath}/${$}.jpg:`, H);
456
+ }
457
+ v.push(S);
458
+ }
459
+ return v;
460
+ }, p = x(() => Math.round(u.value / e.imageCount * 100)), h = C([]), f = C(""), _ = C(null);
461
+ O(s, (v) => {
462
+ f.value = h.value[v] || "";
463
+ });
464
+ function y(v) {
465
+ i.value = !0, c.value = v.clientX || v.touches[0].clientX;
466
+ }
467
+ function A(v) {
468
+ if (!i.value)
469
+ return;
470
+ const $ = v.clientX || v.touches[0].clientX, S = $ - c.value;
471
+ if (Math.abs(S) >= 5) {
472
+ const H = S > 0 ? 1 : -1;
473
+ s.value = (s.value + H) % e.imageCount, s.value < 0 && (s.value = e.imageCount - 1), c.value = $;
474
+ }
475
+ }
476
+ function L() {
477
+ i.value = !1;
478
+ }
479
+ let k = null;
480
+ const z = () => {
481
+ h.value = [];
482
+ };
483
+ return F(async () => {
484
+ h.value = await g(), f.value = h.value[0] || "";
485
+ }), G(() => {
486
+ clearInterval(k), z();
487
+ }), (v, $) => (a(), n("div", pe, [
488
+ fe,
489
+ w(D, {
490
+ name: "scale5",
491
+ css: !_.value,
492
+ appear: ""
493
+ }, {
494
+ default: P(() => [
495
+ f.value ? (a(), n("div", ge, [
496
+ f.value ? (a(), n("img", {
497
+ key: f.value,
498
+ class: "h-100 w-100 transition-ease",
499
+ src: f.value.src,
500
+ alt: "360 product view",
501
+ onMousedown: y,
502
+ onMousemove: A,
503
+ onMouseup: L,
504
+ onMouseleave: L,
505
+ onTouchstart: y,
506
+ onTouchmove: A,
507
+ onTouchend: L,
508
+ onDragstart: $[0] || ($[0] = Q(() => {
509
+ }, ["prevent"]))
510
+ }, null, 40, _e)) : l("", !0)
511
+ ])) : l("", !0)
512
+ ]),
513
+ _: 1
514
+ }, 8, ["css"]),
515
+ w(D, { name: "scale5" }, {
516
+ default: P(() => [
517
+ f.value ? l("", !0) : (a(), I(nt, {
518
+ key: 0,
519
+ progress: d(p),
520
+ class: "center z-index-5"
521
+ }, null, 8, ["progress"]))
522
+ ]),
523
+ _: 1
524
+ })
525
+ ]));
526
+ }
527
+ }, Ce = /* @__PURE__ */ j(ve, [["__scopeId", "data-v-333fa548"]]);
528
+ const we = ["src"], ye = {
529
+ __name: "Magnifier",
530
+ props: {
531
+ imageSrc: String,
532
+ zoomFactor: {
533
+ type: Number,
534
+ default: 2
535
+ }
536
+ },
537
+ setup(t) {
538
+ const e = t, s = C(!1), i = C({});
539
+ function c(_) {
540
+ const y = _.target.getBoundingClientRect(), A = _.clientX - y.left, L = _.clientY - y.top, k = 100, z = Math.max(0, Math.min(A - k / 2, y.width - k)), v = Math.max(0, Math.min(L - k / 2, y.height - k));
541
+ i.value = {
542
+ left: `${z}px`,
543
+ top: `${v}px`,
544
+ backgroundPosition: `-${z * e.zoomFactor}px -${v * e.zoomFactor}px`,
545
+ backgroundImage: `url(${e.imageSrc})`,
546
+ backgroundSize: `${y.width * e.zoomFactor}px ${y.height * e.zoomFactor}px`
547
+ };
548
+ }
549
+ function u(_) {
550
+ s.value = !0, c(_);
551
+ }
552
+ function g() {
553
+ s.value = !1;
554
+ }
555
+ function p(_) {
556
+ _.preventDefault(), s.value = !0, c(_.touches[0]);
557
+ }
558
+ function h(_) {
559
+ _.preventDefault(), c(_.touches[0]);
560
+ }
561
+ function f() {
562
+ s.value = !1;
563
+ }
564
+ return (_, y) => (a(), n("div", {
565
+ class: "w-100 image-container",
566
+ onMousemove: u,
567
+ onMouseleave: g,
568
+ onTouchstart: p,
569
+ onTouchmove: h,
570
+ onTouchend: f
571
+ }, [
572
+ o("img", {
573
+ src: t.imageSrc,
574
+ class: "w-100"
575
+ }, null, 8, we),
576
+ s.value ? (a(), n("div", {
577
+ key: 0,
578
+ class: "zoom-lens",
579
+ style: K(i.value)
580
+ }, null, 4)) : l("", !0)
581
+ ], 32));
582
+ }
583
+ }, $e = /* @__PURE__ */ j(ye, [["__scopeId", "data-v-a2ed98ca"]]);
584
+ const be = { class: "product-images" }, xe = { class: "no-responsive cols-4 thumbnails" }, ke = ["src", "onClick"], Se = {
585
+ __name: "ImagesThumbnails",
586
+ props: {
587
+ images: {
588
+ type: Array,
589
+ required: !0
590
+ }
591
+ },
592
+ setup(t) {
593
+ const e = C(!1), s = C(0), i = (u) => {
594
+ s.value = u, e.value = !0;
595
+ }, c = () => {
596
+ e.value = !1;
597
+ };
598
+ return (u, g) => (a(), n("div", be, [
599
+ o("div", xe, [
600
+ (a(!0), n(T, null, N(t.images, (p, h) => (a(), n("img", {
601
+ key: h,
602
+ src: p,
603
+ onClick: (f) => i(h),
604
+ class: "radius-medium bg-white o-hidden thumbnail"
605
+ }, null, 8, ke))), 128))
606
+ ]),
607
+ w(ct, {
608
+ onClosePopup: c,
609
+ isPopupOpen: e.value,
610
+ class: "radius-medium o-hidden"
611
+ }, {
612
+ default: P(() => [
613
+ w($e, {
614
+ imageSrc: u.path + t.images[s.value],
615
+ class: "magnifier z-index-4"
616
+ }, null, 8, ["imageSrc"])
617
+ ]),
618
+ _: 1
619
+ }, 8, ["isPopupOpen"])
620
+ ]));
621
+ }
622
+ }, Le = /* @__PURE__ */ j(Se, [["__scopeId", "data-v-54ffbce2"]]), m = tt({
623
+ items: [],
624
+ currentState: !1
625
+ }), Me = {
626
+ toggleShopcart() {
627
+ m.currentState = !m.currentState;
628
+ },
629
+ setShopcart() {
630
+ try {
631
+ localStorage.getItem("shopcart") && (m.items = JSON.parse(localStorage.getItem("shopcart")));
632
+ } catch (t) {
633
+ throw console.error(t), t;
634
+ }
635
+ },
636
+ addProductToCart(t) {
637
+ const e = m.items.find(
638
+ (s) => s._id === t._id
639
+ );
640
+ e ? e.quantity++ : m.items.push({
641
+ _id: t._id,
642
+ images: t.images,
643
+ name: t.name,
644
+ price: t.price,
645
+ quantity: 1
646
+ }), localStorage.setItem("shopcart", JSON.stringify(m.items));
647
+ },
648
+ removeProduct(t) {
649
+ const e = m.items.find(
650
+ (i) => i._id === t
651
+ ), s = m.items.indexOf(e);
652
+ s > -1 && (m.items.splice(s, 1), localStorage.setItem("shopcart", JSON.stringify(m.items)));
653
+ },
654
+ decrementItemQuantity(t) {
655
+ const e = m.items.find(
656
+ (i) => i._id === t
657
+ ), s = m.items.indexOf(e);
658
+ s > -1 && (e.quantity--, e.quantity < 1 && m.items.splice(s, 1), localStorage.setItem("shopcart", JSON.stringify(m.items)));
659
+ },
660
+ incrementItemQuantity(t) {
661
+ const e = m.items.find(
662
+ (s) => s._id === t
663
+ );
664
+ e && (e.quantity++, localStorage.setItem("shopcart", JSON.stringify(m.items)));
665
+ },
666
+ resetShopcart({ state: t }) {
667
+ t.items = [], localStorage.removeItem("shopcart");
668
+ }
669
+ };
670
+ x(() => Number(m.items.reduce((t, e) => t + e.price * e.quantity, 0))), x(() => Number(m.items.reduce((t, e) => t + e.quantity, 0))), x(() => Number(m.currentState));
671
+ O(m, (t, e) => {
672
+ });
673
+ const Ie = { class: "cols-2-1_2 gap-big product-data-wrapper" }, Pe = { class: "flex-nowrap flex-column flex" }, Ve = { class: "h-100 bg-white radius-medium o-hidden" }, Ae = ["src"], ze = {
674
+ key: 2,
675
+ width: "524",
676
+ height: "345",
677
+ viewBox: "0 0 524 345",
678
+ fill: "none",
679
+ xmlns: "http://www.w3.org/2000/svg",
680
+ class: "h-100 w-100",
681
+ style: { "object-fit": "cover" }
682
+ }, Te = /* @__PURE__ */ o("rect", {
683
+ width: "524",
684
+ height: "345",
685
+ fill: "white"
686
+ }, null, -1), Ne = /* @__PURE__ */ o("rect", {
687
+ width: "524",
688
+ height: "345",
689
+ fill: "white"
690
+ }, null, -1), He = /* @__PURE__ */ o("circle", {
691
+ cx: "262",
692
+ cy: "172",
693
+ r: "56",
694
+ fill: "#00ff88",
695
+ "fill-opacity": "0.1"
696
+ }, null, -1), Oe = /* @__PURE__ */ o("path", {
697
+ fill: "#00ff88",
698
+ d: "M229.348 186.819C230.243 191.884 233.393 194.231 238.458 193.273V193.644C238.458 198.832 241.206 201.581 246.364 201.581H291.545C296.733 201.581 299.481 198.74 299.481 193.644V162.576C299.481 157.481 296.733 154.64 291.545 154.64H285.677L284.071 145.653C283.175 140.619 279.995 138.303 274.899 139.198L230.398 147.043C225.302 147.969 223.048 151.15 223.943 156.246L229.348 186.819ZM230.83 186.479L225.456 156.06C224.715 151.86 226.537 149.266 230.737 148.525L275.084 140.712C279.13 140.001 281.848 141.762 282.62 145.993L284.102 154.64H246.364C241.206 154.64 238.458 157.419 238.458 162.576V191.729L238.365 191.76C234.165 192.532 231.571 190.679 230.83 186.479ZM239.971 162.669C239.971 158.376 242.164 156.153 246.456 156.153H291.483C295.59 156.153 297.968 158.376 297.968 162.669V190.093L284.565 177.894C283.145 176.597 281.662 175.856 279.809 175.856C277.987 175.856 276.628 176.566 275.146 177.863L262.052 189.073L257.142 184.565C255.875 183.36 254.764 182.743 253.158 182.743C251.675 182.743 250.656 183.36 249.39 184.503L239.971 193.212V162.669ZM257.636 178.419C261.373 178.419 264.43 175.3 264.43 171.471C264.43 167.734 261.373 164.584 257.636 164.584C253.806 164.584 250.718 167.734 250.718 171.471C250.718 175.3 253.806 178.419 257.636 178.419Z"
699
+ }, null, -1), Ze = [
700
+ Te,
701
+ Ne,
702
+ He,
703
+ Oe
704
+ ], Fe = { class: "h-100 flex-justify flex col" }, qe = {
705
+ key: 0,
706
+ class: "t-main t-semi p-big"
707
+ }, Be = { class: "w-100 h1-product mn-thin" }, je = {
708
+ key: 1,
709
+ class: "mn-semi"
710
+ }, De = {
711
+ key: 2,
712
+ class: "w-100 mn-medium t-transp"
713
+ }, Ee = {
714
+ key: 3,
715
+ class: "w-100 mn-medium t-transp"
716
+ }, Re = { class: "cols-2 w-100 gap-small mn-semi" }, Xe = { class: "w-100 pd-small radius-small bg-white product-information" }, We = { class: "t-demi" }, Je = { class: "max-w-33rem mobile-w-100 t-white gap-small cols-2" }, Ye = ["disabled"], Ge = {
717
+ __name: "SectionProduct",
718
+ props: {
719
+ product: {
720
+ type: Object,
721
+ required: !0
722
+ },
723
+ recommendation: {
724
+ type: String
725
+ }
726
+ },
727
+ setup(t) {
728
+ const e = t, s = x(() => e.product.images), i = {
729
+ messages: {
730
+ en: {
731
+ airecommend: "AI Recommends You",
732
+ description: "",
733
+ addtoorder: "Add to order",
734
+ fastorder: "Fast Order"
735
+ },
736
+ ru: {
737
+ airecommend: "AI Рекомендует вам",
738
+ description: "",
739
+ addtoorder: "Добавить в корзину",
740
+ fastorder: "Быстрый заказ"
741
+ }
742
+ }
743
+ };
744
+ e.product.localization.forEach((p) => {
745
+ i.messages[p.locale].description = p.text;
746
+ });
747
+ const { t: c } = V(i);
748
+ function u(p) {
749
+ return !(p.quantity > 0);
750
+ }
751
+ function g(p) {
752
+ Me.addProductToCart(p);
753
+ }
754
+ return (p, h) => (a(), n("div", Ie, [
755
+ o("div", Pe, [
756
+ o("div", Ve, [
757
+ t.product && t.product.image3d ? (a(), I(Ce, {
758
+ key: 0,
759
+ class: "h-100 w-100",
760
+ imagePath: `/assets/images/products/${t.product.image3d}`,
761
+ imageCount: 36
762
+ }, null, 8, ["imagePath"])) : l("", !0),
763
+ d(s)[0] && !t.product.image3d ? (a(), n("img", {
764
+ key: 1,
765
+ class: "h-100 w-100",
766
+ style: { "object-fit": "cover" },
767
+ src: d(s)[0]
768
+ }, null, 8, Ae)) : l("", !0),
769
+ !d(s)[0] && !t.product.image3d ? (a(), n("svg", ze, Ze)) : l("", !0)
770
+ ]),
771
+ d(s).length > 1 ? (a(), I(Le, {
772
+ key: 0,
773
+ images: d(s),
774
+ class: "mn-t-medium"
775
+ }, null, 8, ["images"])) : l("", !0)
776
+ ]),
777
+ o("div", Fe, [
778
+ t.recommendation ? (a(), n("h2", qe, r(d(c)("airecommend")), 1)) : l("", !0),
779
+ o("h1", Be, r(t.product.name), 1),
780
+ w(W, {
781
+ product: t.product,
782
+ size: "big",
783
+ class: "mn-semi"
784
+ }, null, 8, ["product"]),
785
+ t.recommendation ? (a(), n("h3", je, r(t.recommendation), 1)) : l("", !0),
786
+ t.product.description && !t.product.localization && !t.recommendation ? (a(), n("p", De, r(t.product.description), 1)) : l("", !0),
787
+ t.product.localization && t.product.localization.length > 1 && !t.recommendation ? (a(), n("p", Ee, r(d(c)("description")), 1)) : l("", !0),
788
+ o("div", Re, [
789
+ t.product.information.length > 0 ? (a(!0), n(T, { key: 0 }, N(t.product.information, (f) => (a(), n("div", Xe, [
790
+ o("p", We, r(f.name), 1),
791
+ o("p", null, r(f.value), 1)
792
+ ]))), 256)) : l("", !0)
793
+ ]),
794
+ o("div", Je, [
795
+ o("button", {
796
+ disabled: u(t.product),
797
+ onClick: h[0] || (h[0] = (f) => g(t.product)),
798
+ class: "w-100 mn-r-small bg-main button"
799
+ }, r(d(c)("addtoorder")), 9, Ye)
800
+ ])
801
+ ])
802
+ ]));
803
+ }
804
+ };
805
+ const $o = {
806
+ __name: "Product",
807
+ async setup(t) {
808
+ let e, s;
809
+ const i = ot();
810
+ B(), [e, s] = Z(() => q.read({ _id: i.params.product })), await e, s(), i.meta.title.en = b.current.name, i.meta.title.ru = b.current.name;
811
+ const c = x(() => b.current), u = {
812
+ messages: {
813
+ en: {},
814
+ ru: {}
815
+ }
816
+ };
817
+ b.current.localization.forEach((h) => {
818
+ u.messages[h.locale].description = h.text;
819
+ });
820
+ const { t: g } = V(u), p = x(() => ({
821
+ title: b.current.name,
822
+ description: g("description")
823
+ }));
824
+ return lt(p), F(() => {
825
+ }), (h, f) => (a(), n("div", null, [
826
+ w(et, { class: "section" }),
827
+ w(Ge, {
828
+ product: d(c),
829
+ class: "section"
830
+ }, null, 8, ["product"]),
831
+ w(he),
832
+ w(At)
833
+ ]));
834
+ }
835
+ };
836
+ export {
837
+ $o as default
838
+ };