prlg-ui 1.0.11 → 1.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/dist/index.cjs.js +10 -0
  2. package/dist/index.d.ts +18 -17
  3. package/dist/{my-lib.es.js → index.es.js} +985 -902
  4. package/dist/prlg-ui.css +1 -0
  5. package/dist/scss/colors.scss +134 -0
  6. package/dist/scss/fonts.scss +3 -0
  7. package/dist/scss/main.scss +36 -0
  8. package/dist/scss/mixins.scss +163 -0
  9. package/dist/scss/reset.scss +51 -0
  10. package/dist/scss/root-vars.scss +4 -0
  11. package/dist/useBodyScroll.util-BgQeA8Dg.js +82 -0
  12. package/dist/useBodyScroll.util-D-eNxODy.cjs +1 -0
  13. package/dist/utils/Portal/Portal.vue +27 -0
  14. package/dist/utils/Portal/index.ts +3 -0
  15. package/dist/utils/Portal.vue +27 -0
  16. package/dist/utils/date.util.ts +29 -0
  17. package/dist/utils/dayjs.util.ts +26 -0
  18. package/dist/utils/eventBus.util.ts +41 -0
  19. package/dist/utils/index.ts +3 -0
  20. package/dist/utils/isClient.util.ts +3 -0
  21. package/dist/utils/onClickOutside.util.ts +57 -0
  22. package/dist/utils/price.util.ts +21 -0
  23. package/dist/utils/useBodyScroll.util.ts +33 -0
  24. package/dist/utils/utils.cjs.js +1 -0
  25. package/dist/utils/utils.es.js +497 -0
  26. package/dist/utils.d.ts +90 -0
  27. package/package.json +46 -47
  28. package/dist/fonts/Roboto/Roboto-Black.woff +0 -0
  29. package/dist/fonts/Roboto/Roboto-Black.woff2 +0 -0
  30. package/dist/fonts/Roboto/Roboto-Bold.woff +0 -0
  31. package/dist/fonts/Roboto/Roboto-Bold.woff2 +0 -0
  32. package/dist/fonts/Roboto/Roboto-ExtraBold.woff +0 -0
  33. package/dist/fonts/Roboto/Roboto-ExtraBold.woff2 +0 -0
  34. package/dist/fonts/Roboto/Roboto-ExtraLight.woff +0 -0
  35. package/dist/fonts/Roboto/Roboto-ExtraLight.woff2 +0 -0
  36. package/dist/fonts/Roboto/Roboto-Light.woff +0 -0
  37. package/dist/fonts/Roboto/Roboto-Light.woff2 +0 -0
  38. package/dist/fonts/Roboto/Roboto-Medium.woff +0 -0
  39. package/dist/fonts/Roboto/Roboto-Medium.woff2 +0 -0
  40. package/dist/fonts/Roboto/Roboto-Regular.woff +0 -0
  41. package/dist/fonts/Roboto/Roboto-Regular.woff2 +0 -0
  42. package/dist/fonts/Roboto/Roboto-SemiBold.woff +0 -0
  43. package/dist/fonts/Roboto/Roboto-SemiBold.woff2 +0 -0
  44. package/dist/fonts/Roboto/Roboto-Thin.woff +0 -0
  45. package/dist/fonts/Roboto/Roboto-Thin.woff2 +0 -0
  46. package/dist/images/catalogs/acssesuari.png +0 -0
  47. package/dist/images/catalogs/all.png +0 -0
  48. package/dist/images/catalogs/antifriz.png +0 -0
  49. package/dist/images/catalogs/battery.png +0 -0
  50. package/dist/images/catalogs/chemistry.png +0 -0
  51. package/dist/images/catalogs/lamps.png +0 -0
  52. package/dist/images/catalogs/oil.png +0 -0
  53. package/dist/images/catalogs/original.png +0 -0
  54. package/dist/images/catalogs/to.png +0 -0
  55. package/dist/images/catalogs/ucenka.png +0 -0
  56. package/dist/images/catalogs/vin.png +0 -0
  57. package/dist/images/catalogs/wheels.png +0 -0
  58. package/dist/images/mainPage/banner.png +0 -0
  59. package/dist/images/manager.png +0 -0
  60. package/dist/images/news/news1.png +0 -0
  61. package/dist/images/news/newsBig1.png +0 -0
  62. package/dist/logo.svg +0 -27
  63. package/dist/my-lib.css +0 -1
  64. package/dist/my-lib.umd.js +0 -2
@@ -0,0 +1,497 @@
1
+ import { E as Kt, _ as Xt, o as te, u as ee } from "../useBodyScroll.util-BgQeA8Dg.js";
2
+ function W(u) {
3
+ return u && u.__esModule && Object.prototype.hasOwnProperty.call(u, "default") ? u.default : u;
4
+ }
5
+ var G = { exports: {} }, pt = G.exports, ot;
6
+ function mt() {
7
+ return ot || (ot = 1, function(u, O) {
8
+ (function(l, c) {
9
+ u.exports = c();
10
+ })(pt, function() {
11
+ var l = 1e3, c = 6e4, _ = 36e5, m = "millisecond", x = "second", $ = "minute", y = "hour", a = "day", h = "week", p = "month", g = "quarter", L = "year", f = "date", D = "Invalid Date", j = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, T = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, H = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(i) {
12
+ var r = ["th", "st", "nd", "rd"], t = i % 100;
13
+ return "[" + i + (r[(t - 20) % 10] || r[t] || r[0]) + "]";
14
+ } }, R = function(i, r, t) {
15
+ var n = String(i);
16
+ return !n || n.length >= r ? i : "" + Array(r + 1 - n.length).join(t) + i;
17
+ }, E = { s: R, z: function(i) {
18
+ var r = -i.utcOffset(), t = Math.abs(r), n = Math.floor(t / 60), e = t % 60;
19
+ return (r <= 0 ? "+" : "-") + R(n, 2, "0") + ":" + R(e, 2, "0");
20
+ }, m: function i(r, t) {
21
+ if (r.date() < t.date()) return -i(t, r);
22
+ var n = 12 * (t.year() - r.year()) + (t.month() - r.month()), e = r.clone().add(n, p), s = t - e < 0, o = r.clone().add(n + (s ? -1 : 1), p);
23
+ return +(-(n + (t - e) / (s ? e - o : o - e)) || 0);
24
+ }, a: function(i) {
25
+ return i < 0 ? Math.ceil(i) || 0 : Math.floor(i);
26
+ }, p: function(i) {
27
+ return { M: p, y: L, w: h, d: a, D: f, h: y, m: $, s: x, ms: m, Q: g }[i] || String(i || "").toLowerCase().replace(/s$/, "");
28
+ }, u: function(i) {
29
+ return i === void 0;
30
+ } }, b = "en", B = {};
31
+ B[b] = H;
32
+ var N = "$isDayjsObject", F = function(i) {
33
+ return i instanceof V || !(!i || !i[N]);
34
+ }, J = function i(r, t, n) {
35
+ var e;
36
+ if (!r) return b;
37
+ if (typeof r == "string") {
38
+ var s = r.toLowerCase();
39
+ B[s] && (e = s), t && (B[s] = t, e = s);
40
+ var o = r.split("-");
41
+ if (!e && o.length > 1) return i(o[0]);
42
+ } else {
43
+ var M = r.name;
44
+ B[M] = r, e = M;
45
+ }
46
+ return !n && e && (b = e), e || !n && b;
47
+ }, S = function(i, r) {
48
+ if (F(i)) return i.clone();
49
+ var t = typeof r == "object" ? r : {};
50
+ return t.date = i, t.args = arguments, new V(t);
51
+ }, d = E;
52
+ d.l = J, d.i = F, d.w = function(i, r) {
53
+ return S(i, { locale: r.$L, utc: r.$u, x: r.$x, $offset: r.$offset });
54
+ };
55
+ var V = function() {
56
+ function i(t) {
57
+ this.$L = J(t.locale, null, !0), this.parse(t), this.$x = this.$x || t.x || {}, this[N] = !0;
58
+ }
59
+ var r = i.prototype;
60
+ return r.parse = function(t) {
61
+ this.$d = function(n) {
62
+ var e = n.date, s = n.utc;
63
+ if (e === null) return /* @__PURE__ */ new Date(NaN);
64
+ if (d.u(e)) return /* @__PURE__ */ new Date();
65
+ if (e instanceof Date) return new Date(e);
66
+ if (typeof e == "string" && !/Z$/i.test(e)) {
67
+ var o = e.match(j);
68
+ if (o) {
69
+ var M = o[2] - 1 || 0, v = (o[7] || "0").substring(0, 3);
70
+ return s ? new Date(Date.UTC(o[1], M, o[3] || 1, o[4] || 0, o[5] || 0, o[6] || 0, v)) : new Date(o[1], M, o[3] || 1, o[4] || 0, o[5] || 0, o[6] || 0, v);
71
+ }
72
+ }
73
+ return new Date(e);
74
+ }(t), this.init();
75
+ }, r.init = function() {
76
+ var t = this.$d;
77
+ this.$y = t.getFullYear(), this.$M = t.getMonth(), this.$D = t.getDate(), this.$W = t.getDay(), this.$H = t.getHours(), this.$m = t.getMinutes(), this.$s = t.getSeconds(), this.$ms = t.getMilliseconds();
78
+ }, r.$utils = function() {
79
+ return d;
80
+ }, r.isValid = function() {
81
+ return this.$d.toString() !== D;
82
+ }, r.isSame = function(t, n) {
83
+ var e = S(t);
84
+ return this.startOf(n) <= e && e <= this.endOf(n);
85
+ }, r.isAfter = function(t, n) {
86
+ return S(t) < this.startOf(n);
87
+ }, r.isBefore = function(t, n) {
88
+ return this.endOf(n) < S(t);
89
+ }, r.$g = function(t, n, e) {
90
+ return d.u(t) ? this[n] : this.set(e, t);
91
+ }, r.unix = function() {
92
+ return Math.floor(this.valueOf() / 1e3);
93
+ }, r.valueOf = function() {
94
+ return this.$d.getTime();
95
+ }, r.startOf = function(t, n) {
96
+ var e = this, s = !!d.u(n) || n, o = d.p(t), M = function(z, A) {
97
+ var I = d.w(e.$u ? Date.UTC(e.$y, A, z) : new Date(e.$y, A, z), e);
98
+ return s ? I : I.endOf(a);
99
+ }, v = function(z, A) {
100
+ return d.w(e.toDate()[z].apply(e.toDate("s"), (s ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(A)), e);
101
+ }, Y = this.$W, w = this.$M, q = this.$D, U = "set" + (this.$u ? "UTC" : "");
102
+ switch (o) {
103
+ case L:
104
+ return s ? M(1, 0) : M(31, 11);
105
+ case p:
106
+ return s ? M(1, w) : M(0, w + 1);
107
+ case h:
108
+ var C = this.$locale().weekStart || 0, P = (Y < C ? Y + 7 : Y) - C;
109
+ return M(s ? q - P : q + (6 - P), w);
110
+ case a:
111
+ case f:
112
+ return v(U + "Hours", 0);
113
+ case y:
114
+ return v(U + "Minutes", 1);
115
+ case $:
116
+ return v(U + "Seconds", 2);
117
+ case x:
118
+ return v(U + "Milliseconds", 3);
119
+ default:
120
+ return this.clone();
121
+ }
122
+ }, r.endOf = function(t) {
123
+ return this.startOf(t, !1);
124
+ }, r.$set = function(t, n) {
125
+ var e, s = d.p(t), o = "set" + (this.$u ? "UTC" : ""), M = (e = {}, e[a] = o + "Date", e[f] = o + "Date", e[p] = o + "Month", e[L] = o + "FullYear", e[y] = o + "Hours", e[$] = o + "Minutes", e[x] = o + "Seconds", e[m] = o + "Milliseconds", e)[s], v = s === a ? this.$D + (n - this.$W) : n;
126
+ if (s === p || s === L) {
127
+ var Y = this.clone().set(f, 1);
128
+ Y.$d[M](v), Y.init(), this.$d = Y.set(f, Math.min(this.$D, Y.daysInMonth())).$d;
129
+ } else M && this.$d[M](v);
130
+ return this.init(), this;
131
+ }, r.set = function(t, n) {
132
+ return this.clone().$set(t, n);
133
+ }, r.get = function(t) {
134
+ return this[d.p(t)]();
135
+ }, r.add = function(t, n) {
136
+ var e, s = this;
137
+ t = Number(t);
138
+ var o = d.p(n), M = function(w) {
139
+ var q = S(s);
140
+ return d.w(q.date(q.date() + Math.round(w * t)), s);
141
+ };
142
+ if (o === p) return this.set(p, this.$M + t);
143
+ if (o === L) return this.set(L, this.$y + t);
144
+ if (o === a) return M(1);
145
+ if (o === h) return M(7);
146
+ var v = (e = {}, e[$] = c, e[y] = _, e[x] = l, e)[o] || 1, Y = this.$d.getTime() + t * v;
147
+ return d.w(Y, this);
148
+ }, r.subtract = function(t, n) {
149
+ return this.add(-1 * t, n);
150
+ }, r.format = function(t) {
151
+ var n = this, e = this.$locale();
152
+ if (!this.isValid()) return e.invalidDate || D;
153
+ var s = t || "YYYY-MM-DDTHH:mm:ssZ", o = d.z(this), M = this.$H, v = this.$m, Y = this.$M, w = e.weekdays, q = e.months, U = e.meridiem, C = function(A, I, Z, Q) {
154
+ return A && (A[I] || A(n, s)) || Z[I].slice(0, Q);
155
+ }, P = function(A) {
156
+ return d.s(M % 12 || 12, A, "0");
157
+ }, z = U || function(A, I, Z) {
158
+ var Q = A < 12 ? "AM" : "PM";
159
+ return Z ? Q.toLowerCase() : Q;
160
+ };
161
+ return s.replace(T, function(A, I) {
162
+ return I || function(Z) {
163
+ switch (Z) {
164
+ case "YY":
165
+ return String(n.$y).slice(-2);
166
+ case "YYYY":
167
+ return d.s(n.$y, 4, "0");
168
+ case "M":
169
+ return Y + 1;
170
+ case "MM":
171
+ return d.s(Y + 1, 2, "0");
172
+ case "MMM":
173
+ return C(e.monthsShort, Y, q, 3);
174
+ case "MMMM":
175
+ return C(q, Y);
176
+ case "D":
177
+ return n.$D;
178
+ case "DD":
179
+ return d.s(n.$D, 2, "0");
180
+ case "d":
181
+ return String(n.$W);
182
+ case "dd":
183
+ return C(e.weekdaysMin, n.$W, w, 2);
184
+ case "ddd":
185
+ return C(e.weekdaysShort, n.$W, w, 3);
186
+ case "dddd":
187
+ return w[n.$W];
188
+ case "H":
189
+ return String(M);
190
+ case "HH":
191
+ return d.s(M, 2, "0");
192
+ case "h":
193
+ return P(1);
194
+ case "hh":
195
+ return P(2);
196
+ case "a":
197
+ return z(M, v, !0);
198
+ case "A":
199
+ return z(M, v, !1);
200
+ case "m":
201
+ return String(v);
202
+ case "mm":
203
+ return d.s(v, 2, "0");
204
+ case "s":
205
+ return String(n.$s);
206
+ case "ss":
207
+ return d.s(n.$s, 2, "0");
208
+ case "SSS":
209
+ return d.s(n.$ms, 3, "0");
210
+ case "Z":
211
+ return o;
212
+ }
213
+ return null;
214
+ }(A) || o.replace(":", "");
215
+ });
216
+ }, r.utcOffset = function() {
217
+ return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
218
+ }, r.diff = function(t, n, e) {
219
+ var s, o = this, M = d.p(n), v = S(t), Y = (v.utcOffset() - this.utcOffset()) * c, w = this - v, q = function() {
220
+ return d.m(o, v);
221
+ };
222
+ switch (M) {
223
+ case L:
224
+ s = q() / 12;
225
+ break;
226
+ case p:
227
+ s = q();
228
+ break;
229
+ case g:
230
+ s = q() / 3;
231
+ break;
232
+ case h:
233
+ s = (w - Y) / 6048e5;
234
+ break;
235
+ case a:
236
+ s = (w - Y) / 864e5;
237
+ break;
238
+ case y:
239
+ s = w / _;
240
+ break;
241
+ case $:
242
+ s = w / c;
243
+ break;
244
+ case x:
245
+ s = w / l;
246
+ break;
247
+ default:
248
+ s = w;
249
+ }
250
+ return e ? s : d.a(s);
251
+ }, r.daysInMonth = function() {
252
+ return this.endOf(p).$D;
253
+ }, r.$locale = function() {
254
+ return B[this.$L];
255
+ }, r.locale = function(t, n) {
256
+ if (!t) return this.$L;
257
+ var e = this.clone(), s = J(t, n, !0);
258
+ return s && (e.$L = s), e;
259
+ }, r.clone = function() {
260
+ return d.w(this.$d, this);
261
+ }, r.toDate = function() {
262
+ return new Date(this.valueOf());
263
+ }, r.toJSON = function() {
264
+ return this.isValid() ? this.toISOString() : null;
265
+ }, r.toISOString = function() {
266
+ return this.$d.toISOString();
267
+ }, r.toString = function() {
268
+ return this.$d.toUTCString();
269
+ }, i;
270
+ }(), st = V.prototype;
271
+ return S.prototype = st, [["$ms", m], ["$s", x], ["$m", $], ["$H", y], ["$W", a], ["$M", p], ["$y", L], ["$D", f]].forEach(function(i) {
272
+ st[i[1]] = function(r) {
273
+ return this.$g(r, i[0], i[1]);
274
+ };
275
+ }), S.extend = function(i, r) {
276
+ return i.$i || (i(r, V, S), i.$i = !0), S;
277
+ }, S.locale = J, S.isDayjs = F, S.unix = function(i) {
278
+ return S(1e3 * i);
279
+ }, S.en = B[b], S.Ls = B, S.p = {}, S;
280
+ });
281
+ }(G)), G.exports;
282
+ }
283
+ var Mt = mt();
284
+ const k = /* @__PURE__ */ W(Mt);
285
+ var K = { exports: {} }, $t = K.exports, ut;
286
+ function _t() {
287
+ return ut || (ut = 1, function(u, O) {
288
+ (function(l, c) {
289
+ u.exports = c();
290
+ })($t, function() {
291
+ var l = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" };
292
+ return function(c, _, m) {
293
+ var x = _.prototype, $ = x.format;
294
+ m.en.formats = l, x.format = function(y) {
295
+ y === void 0 && (y = "YYYY-MM-DDTHH:mm:ssZ");
296
+ var a = this.$locale().formats, h = function(p, g) {
297
+ return p.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(L, f, D) {
298
+ var j = D && D.toUpperCase();
299
+ return f || g[D] || l[D] || g[j].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(T, H, R) {
300
+ return H || R.slice(1);
301
+ });
302
+ });
303
+ }(y, a === void 0 ? {} : a);
304
+ return $.call(this, h);
305
+ };
306
+ };
307
+ });
308
+ }(K)), K.exports;
309
+ }
310
+ var vt = _t();
311
+ const yt = /* @__PURE__ */ W(vt);
312
+ var X = { exports: {} }, xt = X.exports, at;
313
+ function Dt() {
314
+ return at || (at = 1, function(u, O) {
315
+ (function(l, c) {
316
+ u.exports = c();
317
+ })(xt, function() {
318
+ return function(l, c, _) {
319
+ l = l || {};
320
+ var m = c.prototype, x = { future: "in %s", past: "%s ago", s: "a few seconds", m: "a minute", mm: "%d minutes", h: "an hour", hh: "%d hours", d: "a day", dd: "%d days", M: "a month", MM: "%d months", y: "a year", yy: "%d years" };
321
+ function $(a, h, p, g) {
322
+ return m.fromToBase(a, h, p, g);
323
+ }
324
+ _.en.relativeTime = x, m.fromToBase = function(a, h, p, g, L) {
325
+ for (var f, D, j, T = p.$locale().relativeTime || x, H = l.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], R = H.length, E = 0; E < R; E += 1) {
326
+ var b = H[E];
327
+ b.d && (f = g ? _(a).diff(p, b.d, !0) : p.diff(a, b.d, !0));
328
+ var B = (l.rounding || Math.round)(Math.abs(f));
329
+ if (j = f > 0, B <= b.r || !b.r) {
330
+ B <= 1 && E > 0 && (b = H[E - 1]);
331
+ var N = T[b.l];
332
+ L && (B = L("" + B)), D = typeof N == "string" ? N.replace("%d", B) : N(B, h, b.l, j);
333
+ break;
334
+ }
335
+ }
336
+ if (h) return D;
337
+ var F = j ? T.future : T.past;
338
+ return typeof F == "function" ? F(D) : F.replace("%s", D);
339
+ }, m.to = function(a, h) {
340
+ return $(a, h, this, !0);
341
+ }, m.from = function(a, h) {
342
+ return $(a, h, this);
343
+ };
344
+ var y = function(a) {
345
+ return a.$u ? _.utc() : _();
346
+ };
347
+ m.toNow = function(a) {
348
+ return this.to(y(this), a);
349
+ }, m.fromNow = function(a) {
350
+ return this.from(y(this), a);
351
+ };
352
+ };
353
+ });
354
+ }(X)), X.exports;
355
+ }
356
+ var St = Dt();
357
+ const Yt = /* @__PURE__ */ W(St);
358
+ var tt = { exports: {} }, gt = tt.exports, ft;
359
+ function wt() {
360
+ return ft || (ft = 1, function(u, O) {
361
+ (function(l, c) {
362
+ u.exports = c();
363
+ })(gt, function() {
364
+ return function(l, c, _) {
365
+ c.prototype.isToday = function() {
366
+ var m = "YYYY-MM-DD", x = _();
367
+ return this.format(m) === x.format(m);
368
+ };
369
+ };
370
+ });
371
+ }(tt)), tt.exports;
372
+ }
373
+ var Ot = wt();
374
+ const Lt = /* @__PURE__ */ W(Ot);
375
+ var et = { exports: {} }, Tt = et.exports, ct;
376
+ function bt() {
377
+ return ct || (ct = 1, function(u, O) {
378
+ (function(l, c) {
379
+ u.exports = c();
380
+ })(Tt, function() {
381
+ return function(l, c, _) {
382
+ c.prototype.isBetween = function(m, x, $, y) {
383
+ var a = _(m), h = _(x), p = (y = y || "()")[0] === "(", g = y[1] === ")";
384
+ return (p ? this.isAfter(a, $) : !this.isBefore(a, $)) && (g ? this.isBefore(h, $) : !this.isAfter(h, $)) || (p ? this.isBefore(a, $) : !this.isAfter(a, $)) && (g ? this.isAfter(h, $) : !this.isBefore(h, $));
385
+ };
386
+ };
387
+ });
388
+ }(et)), et.exports;
389
+ }
390
+ var Bt = bt();
391
+ const At = /* @__PURE__ */ W(Bt);
392
+ var rt = { exports: {} }, kt = rt.exports, dt;
393
+ function Ht() {
394
+ return dt || (dt = 1, function(u, O) {
395
+ (function(l, c) {
396
+ u.exports = c();
397
+ })(kt, function() {
398
+ return function(l, c) {
399
+ c.prototype.isSameOrBefore = function(_, m) {
400
+ return this.isSame(_, m) || this.isBefore(_, m);
401
+ };
402
+ };
403
+ });
404
+ }(rt)), rt.exports;
405
+ }
406
+ var qt = Ht();
407
+ const jt = /* @__PURE__ */ W(qt);
408
+ var nt = { exports: {} }, It = nt.exports, ht;
409
+ function Rt() {
410
+ return ht || (ht = 1, function(u, O) {
411
+ (function(l, c) {
412
+ u.exports = c();
413
+ })(It, function() {
414
+ return function(l, c) {
415
+ c.prototype.isSameOrAfter = function(_, m) {
416
+ return this.isSame(_, m) || this.isAfter(_, m);
417
+ };
418
+ };
419
+ });
420
+ }(nt)), nt.exports;
421
+ }
422
+ var Et = Rt();
423
+ const Ft = /* @__PURE__ */ W(Et);
424
+ var it = { exports: {} }, Ct = it.exports, lt;
425
+ function zt() {
426
+ return lt || (lt = 1, function(u, O) {
427
+ (function(l, c) {
428
+ u.exports = c(mt());
429
+ })(Ct, function(l) {
430
+ function c(f) {
431
+ return f && typeof f == "object" && "default" in f ? f : { default: f };
432
+ }
433
+ var _ = c(l), m = "января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"), x = "январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"), $ = "янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"), y = "янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_"), a = /D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;
434
+ function h(f, D, j) {
435
+ var T, H;
436
+ return j === "m" ? D ? "минута" : "минуту" : f + " " + (T = +f, H = { mm: D ? "минута_минуты_минут" : "минуту_минуты_минут", hh: "час_часа_часов", dd: "день_дня_дней", MM: "месяц_месяца_месяцев", yy: "год_года_лет" }[j].split("_"), T % 10 == 1 && T % 100 != 11 ? H[0] : T % 10 >= 2 && T % 10 <= 4 && (T % 100 < 10 || T % 100 >= 20) ? H[1] : H[2]);
437
+ }
438
+ var p = function(f, D) {
439
+ return a.test(D) ? m[f.month()] : x[f.month()];
440
+ };
441
+ p.s = x, p.f = m;
442
+ var g = function(f, D) {
443
+ return a.test(D) ? $[f.month()] : y[f.month()];
444
+ };
445
+ g.s = y, g.f = $;
446
+ var L = { name: "ru", weekdays: "воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"), weekdaysShort: "вск_пнд_втр_срд_чтв_птн_сбт".split("_"), weekdaysMin: "вс_пн_вт_ср_чт_пт_сб".split("_"), months: p, monthsShort: g, weekStart: 1, yearStart: 4, formats: { LT: "H:mm", LTS: "H:mm:ss", L: "DD.MM.YYYY", LL: "D MMMM YYYY г.", LLL: "D MMMM YYYY г., H:mm", LLLL: "dddd, D MMMM YYYY г., H:mm" }, relativeTime: { future: "через %s", past: "%s назад", s: "несколько секунд", m: h, mm: h, h: "час", hh: h, d: "день", dd: h, M: "месяц", MM: h, y: "год", yy: h }, ordinal: function(f) {
447
+ return f;
448
+ }, meridiem: function(f) {
449
+ return f < 4 ? "ночи" : f < 12 ? "утра" : f < 17 ? "дня" : "вечера";
450
+ } };
451
+ return _.default.locale(L, null, !0), L;
452
+ });
453
+ }(it)), it.exports;
454
+ }
455
+ zt();
456
+ k.extend(yt);
457
+ k.extend(Yt);
458
+ k.extend(Lt);
459
+ k.extend(At);
460
+ k.extend(jt);
461
+ k.extend(Ft);
462
+ k.locale("ru");
463
+ function Wt(u) {
464
+ return k(u).format("D MMMM YYYY");
465
+ }
466
+ function Nt(u) {
467
+ return k(u).format("D MMMM, HH:mm");
468
+ }
469
+ function Ut(u, O) {
470
+ return k(O).diff(k(u), "day");
471
+ }
472
+ function Pt(u) {
473
+ return k().isAfter(k(u));
474
+ }
475
+ function Zt(u, O = "₽") {
476
+ return `${u.toLocaleString("ru-RU")} ${O}`;
477
+ }
478
+ function Jt(u) {
479
+ return u.reduce((O, l) => O + l, 0);
480
+ }
481
+ function Vt(u) {
482
+ const O = u.replace(/[^\d.,]/g, "").replace(",", ".");
483
+ return parseFloat(O) || 0;
484
+ }
485
+ export {
486
+ Kt as EventBus,
487
+ Xt as Portal,
488
+ Wt as formatDateReadable,
489
+ Nt as formatDateWithTime,
490
+ Zt as formatPrice,
491
+ Ut as getDaysBetween,
492
+ Pt as isExpired,
493
+ te as onClickOutside,
494
+ Vt as parsePrice,
495
+ Jt as sumPrices,
496
+ ee as useBodyScroll
497
+ };
@@ -0,0 +1,90 @@
1
+ import { ComponentOptionsMixin } from 'vue';
2
+ import { ComponentProvideOptions } from 'vue';
3
+ import { DefineComponent } from 'vue';
4
+ import { PublicProps } from 'vue';
5
+
6
+ declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
7
+
8
+ declare type __VLS_Props = {
9
+ appendTo?: 'self' | string;
10
+ disabled?: boolean;
11
+ };
12
+
13
+ declare function __VLS_template(): {
14
+ attrs: Partial<{}>;
15
+ slots: {
16
+ default?(_: {}): any;
17
+ default?(_: {}): any;
18
+ };
19
+ refs: {};
20
+ rootEl: any;
21
+ };
22
+
23
+ declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
24
+
25
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
26
+ new (): {
27
+ $slots: S;
28
+ };
29
+ };
30
+
31
+ export declare function EventBus<Events extends Record<string, any>>(): TypedEventBus<Events>;
32
+
33
+ /**
34
+ * Форматирует дату в человекочитаемый вид: 20 июня 2025
35
+ */
36
+ export declare function formatDateReadable(date: string | Date): string;
37
+
38
+ /**
39
+ * Форматирует дату для отображения времени: 20 июня, 14:30
40
+ */
41
+ export declare function formatDateWithTime(date: string | Date): string;
42
+
43
+ /**
44
+ * Преобразует число в форматированную строку с валютой (по умолчанию: ₽)
45
+ */
46
+ export declare function formatPrice(value: number, currency?: string): string;
47
+
48
+ /**
49
+ * Возвращает разницу между датами в днях
50
+ */
51
+ export declare function getDaysBetween(start: string | Date, end: string | Date): number;
52
+
53
+ export declare type Handler<T> = (event: T) => void;
54
+
55
+ /**
56
+ * Проверяет, истекла ли дата
57
+ */
58
+ export declare function isExpired(date: string | Date): boolean;
59
+
60
+ export declare function onClickOutside(target: HTMLElement | null | undefined, handler: (event: MouseEvent | TouchEvent) => void, options?: OnClickOutsideOptions): () => void;
61
+
62
+ export declare interface OnClickOutsideOptions {
63
+ ignore?: (() => (HTMLElement | string | null | undefined)[]) | (HTMLElement | string | null | undefined)[];
64
+ }
65
+
66
+ /**
67
+ * Делает безопасное преобразование строки в число (цены из инпута)
68
+ */
69
+ export declare function parsePrice(input: string): number;
70
+
71
+ export declare const Portal: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
72
+
73
+ /**
74
+ * Возвращает сумму всех значений (например, для корзины)
75
+ */
76
+ export declare function sumPrices(items: number[]): number;
77
+
78
+ export declare interface TypedEventBus<Events extends Record<string, any>> {
79
+ on<K extends keyof Events>(type: K, handler: Handler<Events[K]>): void;
80
+ off<K extends keyof Events>(type: K, handler: Handler<Events[K]>): void;
81
+ emit<K extends keyof Events>(type: K, evt?: Events[K]): void;
82
+ clear(): void;
83
+ }
84
+
85
+ export declare function useBodyScroll(): {
86
+ lockScroll: () => void;
87
+ unlockScroll: () => void;
88
+ };
89
+
90
+ export { }