@topvisor/ui 1.5.7-0 → 1.5.7-5
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.
- package/.chunks/{api-DupNAJPm.amd.js → api-Dy2x6A8L.amd.js} +2 -2
- package/.chunks/{api-DupNAJPm.amd.js.map → api-Dy2x6A8L.amd.js.map} +1 -1
- package/.chunks/{api-DupNAJPm.esm.js → api-Dy2x6A8L.esm.js} +2 -2
- package/.chunks/{api-DupNAJPm.esm.js.map → api-Dy2x6A8L.esm.js.map} +1 -1
- package/.chunks/app-CyODeY0D.amd.js +2 -0
- package/.chunks/app-CyODeY0D.amd.js.map +1 -0
- package/.chunks/{app-DinkodXi.esm.js → app-CyODeY0D.esm.js} +146 -141
- package/.chunks/app-CyODeY0D.esm.js.map +1 -0
- package/.chunks/{datepicker-bozIEbDA.amd.js → datepicker-CBAwfPPW.amd.js} +2 -2
- package/.chunks/{datepicker-bozIEbDA.amd.js.map → datepicker-CBAwfPPW.amd.js.map} +1 -1
- package/.chunks/{datepicker-bozIEbDA.esm.js → datepicker-CBAwfPPW.esm.js} +2 -2
- package/.chunks/{datepicker-bozIEbDA.esm.js.map → datepicker-CBAwfPPW.esm.js.map} +1 -1
- package/.chunks/{dialog-BCDVMWG1.amd.js → dialog-C8fss11q.amd.js} +2 -2
- package/.chunks/{dialog-BCDVMWG1.amd.js.map → dialog-C8fss11q.amd.js.map} +1 -1
- package/.chunks/{dialog-BCDVMWG1.esm.js → dialog-C8fss11q.esm.js} +3 -3
- package/.chunks/{dialog-BCDVMWG1.esm.js.map → dialog-C8fss11q.esm.js.map} +1 -1
- package/.chunks/{dialog_regionSelectorRegions-0M1fMu1a.amd.js → dialog_regionSelectorRegions-zJShjr2f.amd.js} +2 -2
- package/.chunks/{dialog_regionSelectorRegions-0M1fMu1a.amd.js.map → dialog_regionSelectorRegions-zJShjr2f.amd.js.map} +1 -1
- package/.chunks/{dialog_regionSelectorRegions-0M1fMu1a.esm.js → dialog_regionSelectorRegions-zJShjr2f.esm.js} +4 -4
- package/.chunks/{dialog_regionSelectorRegions-0M1fMu1a.esm.js.map → dialog_regionSelectorRegions-zJShjr2f.esm.js.map} +1 -1
- package/.chunks/{forms-CY5MOh7a.amd.js → forms-LywqKN9I.amd.js} +2 -2
- package/.chunks/forms-LywqKN9I.amd.js.map +1 -0
- package/.chunks/{forms-CY5MOh7a.esm.js → forms-LywqKN9I.esm.js} +14 -18
- package/.chunks/{forms-CY5MOh7a.esm.js.map → forms-LywqKN9I.esm.js.map} +1 -1
- package/.chunks/formsExt-D16-9Jor.amd.js +2 -0
- package/.chunks/formsExt-D16-9Jor.amd.js.map +1 -0
- package/.chunks/{formsExt-DzXSTWaT.esm.js → formsExt-D16-9Jor.esm.js} +34 -26
- package/.chunks/formsExt-D16-9Jor.esm.js.map +1 -0
- package/.chunks/{notice-bro62vCA.amd.js → notice-Dw5ZUJxW.amd.js} +2 -2
- package/.chunks/{notice-bro62vCA.amd.js.map → notice-Dw5ZUJxW.amd.js.map} +1 -1
- package/.chunks/{notice-bro62vCA.esm.js → notice-Dw5ZUJxW.esm.js} +2 -2
- package/.chunks/{notice-bro62vCA.esm.js.map → notice-Dw5ZUJxW.esm.js.map} +1 -1
- package/.chunks/{popup-3cwJ8Hev.amd.js → popup-BWD4eASc.amd.js} +2 -2
- package/.chunks/popup-BWD4eASc.amd.js.map +1 -0
- package/.chunks/{popup-3cwJ8Hev.esm.js → popup-BWD4eASc.esm.js} +4 -4
- package/.chunks/{popup-3cwJ8Hev.esm.js.map → popup-BWD4eASc.esm.js.map} +1 -1
- package/.chunks/{popup-CzhBQhVH.amd.js → popup-BqacuTuJ.amd.js} +2 -2
- package/.chunks/{popup-CzhBQhVH.amd.js.map → popup-BqacuTuJ.amd.js.map} +1 -1
- package/.chunks/{popup-CzhBQhVH.esm.js → popup-BqacuTuJ.esm.js} +3 -3
- package/.chunks/{popup-CzhBQhVH.esm.js.map → popup-BqacuTuJ.esm.js.map} +1 -1
- package/.chunks/{utils-Be-ScFyj.amd.js → utils-CZnFOkS6.amd.js} +2 -2
- package/.chunks/{utils-Be-ScFyj.amd.js.map → utils-CZnFOkS6.amd.js.map} +1 -1
- package/.chunks/{utils-Be-ScFyj.esm.js → utils-CZnFOkS6.esm.js} +3 -3
- package/.chunks/{utils-Be-ScFyj.esm.js.map → utils-CZnFOkS6.esm.js.map} +1 -1
- package/.chunks/{utils-ds_g-L_r.amd.js → utils-ZgQqVN0T.amd.js} +2 -2
- package/.chunks/{utils-ds_g-L_r.amd.js.map → utils-ZgQqVN0T.amd.js.map} +1 -1
- package/.chunks/{utils-ds_g-L_r.esm.js → utils-ZgQqVN0T.esm.js} +4 -4
- package/.chunks/{utils-ds_g-L_r.esm.js.map → utils-ZgQqVN0T.esm.js.map} +1 -1
- package/.chunks/{worker-Bv_yPPMv.amd.js → worker-a6MSM1uV.amd.js} +2 -2
- package/.chunks/{worker-Bv_yPPMv.amd.js.map → worker-a6MSM1uV.amd.js.map} +1 -1
- package/.chunks/{worker-Bv_yPPMv.esm.js → worker-a6MSM1uV.esm.js} +3 -3
- package/.chunks/{worker-Bv_yPPMv.esm.js.map → worker-a6MSM1uV.esm.js.map} +1 -1
- package/api/index.amd.js +1 -1
- package/api/index.amd.js.map +1 -1
- package/api/index.js +1 -1
- package/assets/forms.css +1 -1
- package/assets/schedule.css +1 -1
- package/autoload-css-manifest.amd.json +4 -4
- package/autoload-css-manifest.json +4 -4
- package/charts/charts.amd.js +1 -1
- package/charts/charts.amd.js.map +1 -1
- package/charts/charts.js +1 -1
- package/core/app.amd.js +1 -1
- package/core/app.amd.js.map +1 -1
- package/core/app.js +3 -3
- package/dialog/dialog.amd.js +1 -1
- package/dialog/dialog.amd.js.map +1 -1
- package/dialog/dialog.js +2 -2
- package/extra/extra.amd.js +1 -1
- package/extra/extra.amd.js.map +1 -1
- package/extra/extra.js +4 -0
- package/extra/extra.js.map +1 -1
- package/forms/forms.amd.js +1 -1
- package/forms/forms.amd.js.map +1 -1
- package/forms/forms.js +1 -1
- package/formsExt/formsExt.amd.js +1 -1
- package/formsExt/formsExt.amd.js.map +1 -1
- package/formsExt/formsExt.js +1 -1
- package/layout/layout.amd.js +1 -1
- package/layout/layout.amd.js.map +1 -1
- package/layout/layout.js +1 -1
- package/package.json +3 -2
- package/popup/popup.amd.js +1 -1
- package/popup/popup.amd.js.map +1 -1
- package/popup/popup.js +1 -1
- package/popup/worker.amd.js +1 -1
- package/popup/worker.amd.js.map +1 -1
- package/popup/worker.js +1 -1
- package/project/project.amd.js +1 -1
- package/project/project.amd.js.map +1 -1
- package/project/project.js +12 -12
- package/project/project.js.map +1 -1
- package/schedule/schedule.amd.js +1 -1
- package/schedule/schedule.amd.js.map +1 -1
- package/schedule/schedule.js +12 -11
- package/schedule/schedule.js.map +1 -1
- package/src/components/forms/avatar/types.d.ts +0 -9
- package/src/components/formsExt/selector2/composables/useMenu.d.ts +2 -0
- package/src/components/formsExt/selector2/types.d.ts +8 -0
- package/src/components/project/regionSelector/utils/utils.d.ts +2 -2
- package/src/components/schedule/schedule/compoents/calendar/types.d.ts +9 -3
- package/src/components/schedule/schedule/compoents/calendar/utils.d.ts +1 -1
- package/src/components/schedule/schedule/compoents/email/types.d.ts +3 -0
- package/src/components/schedule/schedule/compoents/reportSend/types.d.ts +9 -0
- package/src/components/schedule/schedule/compoents/timeSelector/types.d.ts +12 -6
- package/src/components/schedule/schedule/compoents/timeSelectors/types.d.ts +3 -0
- package/src/components/schedule/schedule/types.d.ts +48 -3
- package/src/core/directives/swimUp.d.ts +1 -1
- package/src/core/plugins/core.d.ts +2 -2
- package/tabsView/tabsView.amd.js +1 -1
- package/tabsView/tabsView.amd.js.map +1 -1
- package/tabsView/tabsView.js +3 -3
- package/tabsView/tabsView.js.map +1 -1
- package/utils/clipboard.amd.js +1 -1
- package/utils/clipboard.amd.js.map +1 -1
- package/utils/clipboard.js +1 -1
- package/utils/date.amd.js +1 -1
- package/utils/date.amd.js.map +1 -1
- package/utils/date.js +1 -1
- package/utils/device.amd.js +1 -1
- package/utils/device.amd.js.map +1 -1
- package/utils/device.js +1 -1
- package/utils/lodash.amd.js +1 -1
- package/utils/lodash.amd.js.map +1 -1
- package/utils/lodash.js +1 -1
- package/utils/price.amd.js +1 -1
- package/utils/price.amd.js.map +1 -1
- package/utils/price.js +1 -1
- package/utils/searchers.amd.js +1 -1
- package/utils/searchers.amd.js.map +1 -1
- package/utils/searchers.js +1 -1
- package/utils/string.amd.js +1 -1
- package/utils/string.amd.js.map +1 -1
- package/utils/string.js +1 -1
- package/.chunks/app-DinkodXi.amd.js +0 -2
- package/.chunks/app-DinkodXi.amd.js.map +0 -1
- package/.chunks/app-DinkodXi.esm.js.map +0 -1
- package/.chunks/forms-CY5MOh7a.amd.js.map +0 -1
- package/.chunks/formsExt-DzXSTWaT.amd.js +0 -2
- package/.chunks/formsExt-DzXSTWaT.amd.js.map +0 -1
- package/.chunks/formsExt-DzXSTWaT.esm.js.map +0 -1
- package/.chunks/popup-3cwJ8Hev.amd.js.map +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { H as e, K as t, O as n, P as r, a as i, c as a, d as o, f as s, g as ee, h as te, i as ne, k as re, l as ie, n as ae, o as oe, p as se, r as ce, s as le } from "./forms-
|
|
1
|
+
import { H as e, K as t, O as n, P as r, a as i, c as a, d as o, f as s, g as ee, h as te, i as ne, k as re, l as ie, n as ae, o as oe, p as se, r as ce, s as le } from "./forms-LywqKN9I.esm.js";
|
|
2
2
|
import { isVisible as c } from "../utils/dom.js";
|
|
3
|
-
import { t as l } from "./worker-
|
|
4
|
-
import { i as ue, o as de } from "./utils-
|
|
3
|
+
import { t as l } from "./worker-a6MSM1uV.esm.js";
|
|
4
|
+
import { i as ue, o as de } from "./utils-CZnFOkS6.esm.js";
|
|
5
5
|
import { getHash as fe, setHash as pe } from "../utils/route.js";
|
|
6
6
|
import { guestLinkToClipboard as me } from "../utils/clipboard.js";
|
|
7
7
|
import { camelToSnakeCase as he } from "../utils/string.js";
|
|
8
8
|
import { defineAsyncComponent as ge, watch as u } from "vue";
|
|
9
9
|
//#region src/components/popup/lib/worker.globalEvents.ts
|
|
10
|
-
var
|
|
10
|
+
var _e = class {
|
|
11
11
|
static init() {
|
|
12
12
|
this.isInited || (this.isInited = !0, document.addEventListener("mouseover", (e) => {
|
|
13
13
|
!(e.target instanceof HTMLElement) || !e.target.dataset?.topPopupOpenByHover || e.target.click();
|
|
@@ -41,13 +41,13 @@ var d = class {
|
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
|
-
t(
|
|
44
|
+
t(_e, "isInited", !1);
|
|
45
45
|
//#endregion
|
|
46
46
|
//#region src/core/directives/data.ts
|
|
47
|
-
var
|
|
48
|
-
|
|
47
|
+
var d, ve = { mounted: async (e, t) => {
|
|
48
|
+
d ||= (await import("../utils/dom.js")).storage;
|
|
49
49
|
let n = t.arg, r = t.value;
|
|
50
|
-
|
|
50
|
+
d(e, n, r);
|
|
51
51
|
} }, f, p = [], m, ye = async () => {
|
|
52
52
|
let { isVisible: e } = await import("../utils/dom.js");
|
|
53
53
|
p = p.filter(e), p.length && (p[0].focus(), p = []);
|
|
@@ -60,156 +60,161 @@ var _e, ve = { mounted: async (e, t) => {
|
|
|
60
60
|
updated: function(e, t) {
|
|
61
61
|
t.modifiers.onupdate && e.__TOP_V_FOCUS_VALUE !== (t.value ?? !0) && (e.__TOP_V_FOCUS_VALUE = t.value ?? !0, (t.value ?? !0) && h(e));
|
|
62
62
|
}
|
|
63
|
-
}, g,
|
|
64
|
-
if (!
|
|
65
|
-
let e = await
|
|
66
|
-
e.isVisible &&
|
|
67
|
-
},
|
|
68
|
-
|
|
69
|
-
},
|
|
63
|
+
}, g, xe, _ = (e) => typeof e == "boolean" ? e : (e = e ? { ...e } : {}, e.behavior ??= "smooth", e.block ??= "nearest", e.inline ??= "nearest", e), v, y, Se = async () => {
|
|
64
|
+
if (!v) return;
|
|
65
|
+
let e = await x(v);
|
|
66
|
+
e.isVisible && v.scrollIntoView(e.scrollIntoViewOptions);
|
|
67
|
+
}, b = async (e) => {
|
|
68
|
+
xe ||= await import("../utils/lodash.js"), y ||= xe.debounce(Se, 30), v = e, y();
|
|
69
|
+
}, x = async (e, t) => {
|
|
70
70
|
g ||= await import("../utils/dom.js");
|
|
71
71
|
let n = g.storage(e, "v-top-scrollIntoView");
|
|
72
72
|
return n || (n = {
|
|
73
73
|
isVisible: c(e),
|
|
74
|
-
scrollIntoViewOptions:
|
|
74
|
+
scrollIntoViewOptions: _(t)
|
|
75
75
|
}, g.storage(e, "v-top-scrollIntoView", n)), n;
|
|
76
|
-
},
|
|
76
|
+
}, Ce = {
|
|
77
77
|
async mounted(e, t) {
|
|
78
|
-
await
|
|
78
|
+
await x(e, t.value), t.modifiers.immediate && b(e);
|
|
79
79
|
},
|
|
80
80
|
async updated(e, t) {
|
|
81
|
-
let n = await
|
|
82
|
-
n.scrollIntoViewOptions =
|
|
81
|
+
let n = await x(e, t.value);
|
|
82
|
+
n.scrollIntoViewOptions = _(t.value);
|
|
83
83
|
let r = c(e);
|
|
84
|
-
r && n.isVisible !== r &&
|
|
84
|
+
r && n.isVisible !== r && b(e), n.isVisible = r;
|
|
85
85
|
}
|
|
86
|
-
},
|
|
86
|
+
}, S, we = {
|
|
87
87
|
async mounted(e) {
|
|
88
|
-
|
|
88
|
+
S ||= await import("../utils/scroll.js"), S.connectScrollShadow(e);
|
|
89
89
|
},
|
|
90
90
|
async unmounted(e) {
|
|
91
|
-
|
|
91
|
+
S ||= await import("../utils/scroll.js"), S.unconnectScrollShadow(e);
|
|
92
92
|
}
|
|
93
|
-
},
|
|
93
|
+
}, C = /* @__PURE__ */ new Map(), w, T = /* @__PURE__ */ new Map(), Te = !1, Ee = {
|
|
94
94
|
ctrl: e() ? "⌘" : "Ctrl",
|
|
95
95
|
alt: e() ? "⌥" : "Alt",
|
|
96
96
|
shift: e() ? "⇧" : "Shift"
|
|
97
|
-
},
|
|
97
|
+
}, De = (e) => {
|
|
98
98
|
let t = e;
|
|
99
99
|
return e.includes("Key") && (t = e.replace("Key", "")), e.includes("Digit") && (t = e.replace("Digit", "")), e === "Escape" && (t = "Esc"), t;
|
|
100
|
-
},
|
|
101
|
-
let r =
|
|
100
|
+
}, Oe = (t, n) => {
|
|
101
|
+
let r = De(t);
|
|
102
102
|
if (!n) return r;
|
|
103
|
-
let { ctrl: i, alt: a, shift: o } =
|
|
103
|
+
let { ctrl: i, alt: a, shift: o } = Ee, s = [];
|
|
104
104
|
return n.ctrl && s.push(i), n.alt && s.push(a), n.shift && s.push(o), s.push(r), s.join(e() ? "" : "+");
|
|
105
|
-
},
|
|
106
|
-
let r =
|
|
105
|
+
}, E = (e, t, n) => {
|
|
106
|
+
let r = Oe(t, n);
|
|
107
107
|
if (e.__TOP_V_SHORTCUT_VALUE) {
|
|
108
108
|
console.warn(`Element already has shortcut "${e.__TOP_V_SHORTCUT_VALUE}"`);
|
|
109
109
|
return;
|
|
110
110
|
}
|
|
111
|
-
if (
|
|
111
|
+
if (T.has(r)) {
|
|
112
112
|
console.warn(`Shortcut "${r}" is taken`);
|
|
113
113
|
return;
|
|
114
114
|
}
|
|
115
|
-
|
|
116
|
-
},
|
|
115
|
+
T.set(r, e), e.title = e.title ? `${e.title} (${r})` : r, e.__TOP_V_SHORTCUT_VALUE = r;
|
|
116
|
+
}, D = (e) => {
|
|
117
117
|
let t = e.__TOP_V_SHORTCUT_VALUE;
|
|
118
|
-
t && (
|
|
119
|
-
},
|
|
120
|
-
for (let [e] of
|
|
121
|
-
for (let [e, t] of
|
|
122
|
-
|
|
123
|
-
},
|
|
124
|
-
if (!
|
|
118
|
+
t && (T.delete(t), delete e.__TOP_V_SHORTCUT_VALUE, e.title === t && e.removeAttribute("title"), e.title.includes(` (${t})`) && (e.title = e.title.replace(` (${t})`, "")));
|
|
119
|
+
}, ke = () => {
|
|
120
|
+
for (let [e] of C) !c(e) && e.__TOP_V_SHORTCUT_VALUE && D(e);
|
|
121
|
+
for (let [e, t] of C) c(e) && !e.__TOP_V_SHORTCUT_VALUE && E(e, t.value, t.modifiers);
|
|
122
|
+
C.clear();
|
|
123
|
+
}, Ae = async (e, t, n) => {
|
|
124
|
+
if (!w) {
|
|
125
125
|
let { debounce: e } = await import("../utils/lodash.js");
|
|
126
|
-
|
|
126
|
+
w = e(ke, 30);
|
|
127
127
|
}
|
|
128
|
-
|
|
128
|
+
C.set(e, {
|
|
129
129
|
value: t,
|
|
130
130
|
modifiers: n
|
|
131
|
-
}),
|
|
132
|
-
},
|
|
133
|
-
|
|
131
|
+
}), w();
|
|
132
|
+
}, O = () => {
|
|
133
|
+
Te || (Te = !0, document.addEventListener("keydown", (t) => {
|
|
134
134
|
if (!(t.target instanceof HTMLElement) || ["INPUT", "TEXTAREA"].includes(t.target.tagName) || t.target.isContentEditable) return;
|
|
135
135
|
let n = {
|
|
136
136
|
ctrl: e() ? t.metaKey : t.ctrlKey,
|
|
137
137
|
alt: t.altKey,
|
|
138
138
|
shift: t.shiftKey
|
|
139
|
-
}, r =
|
|
139
|
+
}, r = Oe(t.code, n), i = T.get(r);
|
|
140
140
|
i && (i.disabled || !c(i) || (t.preventDefault(), i.click()));
|
|
141
141
|
}));
|
|
142
|
-
},
|
|
142
|
+
}, je = {
|
|
143
143
|
mounted: function(e, t) {
|
|
144
144
|
let { value: n, modifiers: r } = t;
|
|
145
|
-
!n || !c(e) || (
|
|
145
|
+
!n || !c(e) || (O(), E(e, n, r));
|
|
146
146
|
},
|
|
147
147
|
updated: function(e, t) {
|
|
148
148
|
if (!!e.__TOP_V_SHORTCUT_VALUE === c(e)) return;
|
|
149
149
|
let { value: n, modifiers: r } = t;
|
|
150
|
-
n && (
|
|
150
|
+
n && (O(), Ae(e, n, r));
|
|
151
151
|
},
|
|
152
152
|
unmounted: function(e) {
|
|
153
|
-
|
|
153
|
+
D(e);
|
|
154
154
|
}
|
|
155
|
-
},
|
|
155
|
+
}, k, Me = {
|
|
156
156
|
mounted(e, t, n) {
|
|
157
157
|
let r = t.value || "top-sticky";
|
|
158
|
-
|
|
158
|
+
k = new IntersectionObserver((n) => {
|
|
159
159
|
let i = n[0].intersectionRatio < 1;
|
|
160
160
|
i && t.modifiers.bottom && n[0].intersectionRect.y === 0 && (i = !1), e.classList.toggle(r, i);
|
|
161
|
-
}, { threshold: [1] }),
|
|
161
|
+
}, { threshold: [1] }), k.observe(e);
|
|
162
162
|
},
|
|
163
163
|
unmounted(e, t, n) {
|
|
164
|
-
|
|
164
|
+
k?.disconnect();
|
|
165
165
|
}
|
|
166
|
-
},
|
|
167
|
-
let { distance: n, percent: r } = e.
|
|
168
|
-
|
|
169
|
-
},
|
|
170
|
-
let
|
|
166
|
+
}, Ne = !1, A, j = /* @__PURE__ */ new Set(), M = null, N = (e, t) => {
|
|
167
|
+
let { distance: n, percent: r } = e.directiveSwimUpOptions, i = e.getBoundingClientRect().top, a = t, o = t * (100 - r) / 100, s = (a - i) / (a - o), ee = n * (1 - Math.min(Math.max(s, 0), 1));
|
|
168
|
+
e.style.transform = `translateY(${ee}px)`;
|
|
169
|
+
}, Pe = () => {
|
|
170
|
+
let e = window.innerHeight;
|
|
171
171
|
window.addEventListener("scroll", () => {
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
172
|
+
M === null && (M = requestAnimationFrame(() => {
|
|
173
|
+
j.forEach((t) => N(t, e)), M = null;
|
|
174
|
+
}));
|
|
175
|
+
}, { passive: !0 }), A = new IntersectionObserver((t) => {
|
|
176
|
+
e = window.innerHeight, t.forEach((e) => {
|
|
175
177
|
let t = e.target;
|
|
176
|
-
if (e.intersectionRatio < .
|
|
177
|
-
let { distance: e } = t.
|
|
178
|
-
t.style.transform = `translateY(${e}px)`;
|
|
178
|
+
if (e.intersectionRatio < .01 ? j.delete(t) : j.add(t), e.intersectionRatio === 0) {
|
|
179
|
+
let { distance: e } = t.directiveSwimUpOptions, n = t.getBoundingClientRect().top;
|
|
180
|
+
t.style.transform = `translateY(${n > 0 ? e : 0}px)`;
|
|
179
181
|
}
|
|
180
182
|
});
|
|
181
|
-
}, { threshold: .
|
|
182
|
-
},
|
|
183
|
+
}, { threshold: .01 });
|
|
184
|
+
}, Fe = {
|
|
183
185
|
mounted(e, t, r) {
|
|
184
|
-
|
|
186
|
+
let i = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
187
|
+
if (n.state.isMobileUA || i) return;
|
|
188
|
+
let a = {
|
|
185
189
|
distance: t.value?.distance ?? 100,
|
|
186
190
|
percent: t.value?.percent ?? 30
|
|
187
|
-
}
|
|
191
|
+
};
|
|
192
|
+
a.percent <= 0 || (e.directiveSwimUpOptions = a, Ne ||= (Pe(), !0), N(e, window.innerHeight), A.observe(e));
|
|
188
193
|
},
|
|
189
194
|
unmounted(e, t, n) {
|
|
190
|
-
|
|
195
|
+
j.delete(e), A?.unobserve(e);
|
|
191
196
|
}
|
|
192
|
-
},
|
|
197
|
+
}, P = (e) => {
|
|
193
198
|
if (!n.$?.ui?.tooltip) {
|
|
194
199
|
console.info("Для работы v-top-tooltip требуется глобальная загрузка jQuery UI Tooltip");
|
|
195
200
|
return;
|
|
196
201
|
}
|
|
197
202
|
return n.$(e);
|
|
198
|
-
},
|
|
203
|
+
}, F = (e, t) => {
|
|
199
204
|
let n = { ...e.value ?? {} };
|
|
200
205
|
return n.content ??= t.getAttribute("ui-tooltip-title") ?? t.getAttribute("title") ?? "", n.content = String(n.content).replace(/([^<>])\r?\n([^<>])/g, "$1<br>$2"), n.position ??= {
|
|
201
206
|
my: "bottom-18px",
|
|
202
207
|
at: "top center",
|
|
203
208
|
collision: "flipfit"
|
|
204
209
|
}, n;
|
|
205
|
-
},
|
|
210
|
+
}, Ie = {
|
|
206
211
|
mounted(e, t) {
|
|
207
|
-
|
|
212
|
+
P(e)?.tooltip(F(t, e));
|
|
208
213
|
},
|
|
209
214
|
updated(e, t) {
|
|
210
|
-
let n =
|
|
215
|
+
let n = F(t, e), r = P(e)?.tooltip("instance");
|
|
211
216
|
if (!r) {
|
|
212
|
-
|
|
217
|
+
P(e)?.tooltip(n);
|
|
213
218
|
return;
|
|
214
219
|
}
|
|
215
220
|
r.options = {
|
|
@@ -218,85 +223,85 @@ var _e, ve = { mounted: async (e, t) => {
|
|
|
218
223
|
};
|
|
219
224
|
},
|
|
220
225
|
unmounted(e) {
|
|
221
|
-
|
|
226
|
+
P(e)?.tooltip("destroy");
|
|
222
227
|
}
|
|
223
|
-
},
|
|
228
|
+
}, Le = ge(() => import("./notice-Dw5ZUJxW.esm.js"));
|
|
224
229
|
window.vd = console.log;
|
|
225
|
-
var
|
|
230
|
+
var Re = { install: (e, t) => {
|
|
226
231
|
e.config.globalProperties.$core = n, e.config.globalProperties.$vd = console.log;
|
|
227
232
|
for (let e in t) n.state[e] = t[e];
|
|
228
|
-
t.widthForMobile && (n.widthForMobile = t.widthForMobile), t.themeName && (n.themeName = t.themeName), n._setState(), t.topPopupOptions && (l.options = t.topPopupOptions),
|
|
233
|
+
t.widthForMobile && (n.widthForMobile = t.widthForMobile), t.themeName && (n.themeName = t.themeName), n._setState(), t.topPopupOptions && (l.options = t.topPopupOptions), _e.init(), de.init(t.topDialogOptions), e.directive("top-data", ve), e.directive("top-focus", be), e.directive("top-scroll-into-view", Ce), e.directive("top-scroll-shadow", we), e.directive("top-shortcut", je), e.directive("top-sticky", Me), e.directive("top-swim-up", Fe), e.directive("top-tooltip", Ie), e.component("TopAvatar", ee), e.component("TopButton", te), e.component("TopCheckbox", s), e.component("TopControlLabel", se), e.component("TopHint", o), e.component("TopInput", a), e.component("TopInputDate", le), e.component("TopInputRange", oe), e.component("TopLoadbar", ie), e.component("TopRadio", i), e.component("TopSelect", ae), e.component("TopSwitcher", ne), e.component("TopTextarea", ce), e.component("TopNotice", Le), e.component("TopDialogs", ue);
|
|
229
234
|
} };
|
|
230
235
|
//#endregion
|
|
231
236
|
//#region \0@oxc-project+runtime@0.139.0/helpers/esm/checkPrivateRedeclaration.js
|
|
232
|
-
function
|
|
237
|
+
function I(e, t) {
|
|
233
238
|
if (t.has(e)) throw TypeError("Cannot initialize the same private elements twice on an object");
|
|
234
239
|
}
|
|
235
240
|
//#endregion
|
|
236
241
|
//#region \0@oxc-project+runtime@0.139.0/helpers/esm/classPrivateMethodInitSpec.js
|
|
237
|
-
function
|
|
238
|
-
|
|
242
|
+
function ze(e, t) {
|
|
243
|
+
I(e, t), t.add(e);
|
|
239
244
|
}
|
|
240
245
|
//#endregion
|
|
241
246
|
//#region \0@oxc-project+runtime@0.139.0/helpers/esm/classPrivateFieldInitSpec.js
|
|
242
|
-
function
|
|
243
|
-
|
|
247
|
+
function L(e, t, n) {
|
|
248
|
+
I(e, t), t.set(e, n);
|
|
244
249
|
}
|
|
245
250
|
//#endregion
|
|
246
251
|
//#region \0@oxc-project+runtime@0.139.0/helpers/esm/assertClassBrand.js
|
|
247
|
-
function
|
|
252
|
+
function R(e, t, n) {
|
|
248
253
|
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
|
|
249
254
|
throw TypeError("Private element is not present on this object");
|
|
250
255
|
}
|
|
251
256
|
//#endregion
|
|
252
257
|
//#region \0@oxc-project+runtime@0.139.0/helpers/esm/classPrivateFieldSet2.js
|
|
253
|
-
function
|
|
254
|
-
return e.set(
|
|
258
|
+
function z(e, t, n) {
|
|
259
|
+
return e.set(R(e, t), n), n;
|
|
255
260
|
}
|
|
256
261
|
//#endregion
|
|
257
262
|
//#region \0@oxc-project+runtime@0.139.0/helpers/esm/classPrivateFieldGet2.js
|
|
258
|
-
function
|
|
259
|
-
return e.get(
|
|
263
|
+
function B(e, t) {
|
|
264
|
+
return e.get(R(e, t));
|
|
260
265
|
}
|
|
261
266
|
//#endregion
|
|
262
267
|
//#region src/core/plugins/piniaTPA.ts
|
|
263
|
-
var
|
|
268
|
+
var V = /* @__PURE__ */ new WeakMap(), H = /* @__PURE__ */ new WeakMap(), U = /* @__PURE__ */ new WeakMap(), W = /* @__PURE__ */ new WeakMap(), G = /* @__PURE__ */ new WeakMap(), K = /* @__PURE__ */ new WeakMap(), q = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakSet(), Be = class {
|
|
264
269
|
constructor(e) {
|
|
265
|
-
|
|
270
|
+
ze(this, X), L(this, V, void 0), L(this, H, void 0), L(this, U, void 0), L(this, W, void 0), L(this, G, void 0), L(this, K, []), L(this, q, []), L(this, J, []), L(this, Y, []), z(H, this, e.store), z(V, this, B(H, this).$id), z(U, this, e.options.Page), z(W, this, e.options.user), z(G, this, e.options.Api), z(K, this, e.options.tpaNamesUrlHash || []), z(q, this, e.options.tpaNamesStorage || []), z(J, this, e.options.tpaNamesStorageLocal || []), z(Y, this, e.options.tpaNamesGuestLink || []), e.store.genGuestLink = (e, t) => this.genGuestLink(e, t), B(W, this).guest_data?.data || (R(X, this, Ke).call(this), R(X, this, Ke).call(this, !0), R(X, this, We).call(this)), R(X, this, qe).call(this), R(X, this, Je).call(this);
|
|
266
271
|
let t = r(() => {
|
|
267
|
-
|
|
272
|
+
R(X, this, Ge).call(this), R(X, this, Q).call(this), R(X, this, Q).call(this, !0);
|
|
268
273
|
});
|
|
269
274
|
e.store.$subscribe(t);
|
|
270
275
|
}
|
|
271
276
|
async genGuestLink(e, t) {
|
|
272
|
-
let n =
|
|
277
|
+
let n = R(X, this, Ve).call(this);
|
|
273
278
|
t = Object.assign(t, Object.fromEntries(n));
|
|
274
|
-
let r = await
|
|
279
|
+
let r = await B(G, this).gen(e).setParams(t).call();
|
|
275
280
|
if (r?.errors) return;
|
|
276
281
|
let i = r.result;
|
|
277
282
|
await me(i);
|
|
278
283
|
}
|
|
279
284
|
};
|
|
280
|
-
function
|
|
285
|
+
function Ve() {
|
|
281
286
|
let e = /* @__PURE__ */ new Map();
|
|
282
|
-
return
|
|
287
|
+
return B(Y, this).forEach((t) => {
|
|
283
288
|
let n = he(t);
|
|
284
|
-
e.set(n,
|
|
289
|
+
e.set(n, B(H, this)[t]);
|
|
285
290
|
}), e;
|
|
286
291
|
}
|
|
287
|
-
function
|
|
292
|
+
function Z(e) {
|
|
288
293
|
e.forEach((e, t) => {
|
|
289
|
-
let n =
|
|
290
|
-
e != null && n !== void 0 && e?.constructor && e.constructor === n.constructor && (t.indexOf("date") === 0 && !Array.isArray(e) && typeof e == "string" && !/\d\d\d\d-\d\d-\d\d/.test(e) || (
|
|
294
|
+
let n = B(H, this)[t];
|
|
295
|
+
e != null && n !== void 0 && e?.constructor && e.constructor === n.constructor && (t.indexOf("date") === 0 && !Array.isArray(e) && typeof e == "string" && !/\d\d\d\d-\d\d-\d\d/.test(e) || (B(H, this)[t] = e));
|
|
291
296
|
});
|
|
292
297
|
}
|
|
293
|
-
function
|
|
298
|
+
function He(e) {
|
|
294
299
|
let t = /* @__PURE__ */ new Map();
|
|
295
300
|
return e.forEach((e, n) => {
|
|
296
301
|
e !== null && (e = JSON.stringify(e), t.set(n, e));
|
|
297
302
|
}), t;
|
|
298
303
|
}
|
|
299
|
-
function
|
|
304
|
+
function Ue(e) {
|
|
300
305
|
let t = /* @__PURE__ */ new Map();
|
|
301
306
|
return e.forEach((e, n) => {
|
|
302
307
|
if (!(e == null || e === "false")) {
|
|
@@ -307,67 +312,67 @@ function Ve(e) {
|
|
|
307
312
|
}
|
|
308
313
|
}), t;
|
|
309
314
|
}
|
|
310
|
-
function
|
|
315
|
+
function We() {
|
|
311
316
|
let e;
|
|
312
317
|
try {
|
|
313
|
-
e = JSON.parse(fe(V
|
|
318
|
+
e = JSON.parse(fe(B(V, this)));
|
|
314
319
|
} catch {}
|
|
315
320
|
if (!e) return;
|
|
316
321
|
let t = /* @__PURE__ */ new Map();
|
|
317
|
-
|
|
322
|
+
B(K, this).forEach((n) => {
|
|
318
323
|
let r = e[n];
|
|
319
324
|
r && t.set(n, r);
|
|
320
|
-
}),
|
|
325
|
+
}), R(X, this, Z).call(this, t);
|
|
321
326
|
}
|
|
322
|
-
function
|
|
327
|
+
function Ge() {
|
|
323
328
|
let e = /* @__PURE__ */ new Map();
|
|
324
|
-
|
|
325
|
-
let n =
|
|
329
|
+
B(K, this).forEach((t) => {
|
|
330
|
+
let n = B(H, this)[t];
|
|
326
331
|
e.set(t, n);
|
|
327
332
|
});
|
|
328
333
|
let t = Object.fromEntries(e), n = JSON.stringify(t);
|
|
329
|
-
pe(V
|
|
334
|
+
pe(B(V, this), n);
|
|
330
335
|
}
|
|
331
|
-
function
|
|
332
|
-
let t = /* @__PURE__ */ new Map(), n =
|
|
333
|
-
e && (n =
|
|
336
|
+
function Ke(e = !1) {
|
|
337
|
+
let t = /* @__PURE__ */ new Map(), n = B(q, this), r = "state:" + B(V, this);
|
|
338
|
+
e && (n = B(J, this), r = "state:" + B(V, this) + ":" + location.pathname), n.forEach((e) => {
|
|
334
339
|
let n = localStorage.getItem(r + ":" + e);
|
|
335
340
|
t.set(e, n);
|
|
336
341
|
});
|
|
337
|
-
let i =
|
|
338
|
-
|
|
342
|
+
let i = R(X, this, Ue).call(this, t);
|
|
343
|
+
R(X, this, Z).call(this, i);
|
|
339
344
|
}
|
|
340
|
-
function
|
|
341
|
-
let t = /* @__PURE__ */ new Map(), n =
|
|
342
|
-
e && (n =
|
|
343
|
-
let n =
|
|
345
|
+
function Q(e = !1) {
|
|
346
|
+
let t = /* @__PURE__ */ new Map(), n = B(q, this), r = "state:" + B(V, this);
|
|
347
|
+
e && (n = B(J, this), r = "state:" + B(V, this) + ":" + location.pathname), n.forEach((e) => {
|
|
348
|
+
let n = B(H, this)[e];
|
|
344
349
|
t.set(e, n);
|
|
345
350
|
});
|
|
346
|
-
let i =
|
|
351
|
+
let i = R(X, this, He).call(this, t);
|
|
347
352
|
n.forEach((e) => {
|
|
348
353
|
let t = i.get(e);
|
|
349
354
|
localStorage.setItem(r + ":" + e, t);
|
|
350
355
|
});
|
|
351
356
|
}
|
|
352
|
-
function
|
|
353
|
-
let e =
|
|
357
|
+
function qe() {
|
|
358
|
+
let e = B(W, this)?.guest_data?.data;
|
|
354
359
|
if (!e) return;
|
|
355
|
-
|
|
360
|
+
B(W, this).id === -1 && (B(W, this).positionsReverseDates = e.positionsReverseDates);
|
|
356
361
|
let t = /* @__PURE__ */ new Map();
|
|
357
|
-
|
|
362
|
+
B(Y, this).forEach((n) => {
|
|
358
363
|
let r = e[n];
|
|
359
364
|
t.set(n, r);
|
|
360
365
|
});
|
|
361
|
-
let n =
|
|
362
|
-
|
|
366
|
+
let n = R(X, this, Ue).call(this, t);
|
|
367
|
+
R(X, this, Z).call(this, n);
|
|
363
368
|
let r = $(".mod_guest_title");
|
|
364
|
-
if (
|
|
365
|
-
let t =
|
|
369
|
+
if (B(H, this).competitorsIds?.length === 1 && B(U, this).page.data.competitors) {
|
|
370
|
+
let t = B(U, this).page.data.competitors.filter((t) => t.id === e.competitorsIds[0]);
|
|
366
371
|
t.length && ($("a", r).attr("href", "http://" + t[0].url), $("a", r).text(t[0].name));
|
|
367
372
|
}
|
|
368
373
|
}
|
|
369
|
-
function
|
|
370
|
-
|
|
374
|
+
function Je() {
|
|
375
|
+
B(H, this).regionsIndexes && u(B(H, this).regionsIndexes, (e) => {
|
|
371
376
|
if (!e.length) return;
|
|
372
377
|
e.forEach((t, n) => e[n] = t);
|
|
373
378
|
let t = TplProjectSelectorRegion.genSearchersMap(), n = [];
|
|
@@ -375,21 +380,21 @@ function qe() {
|
|
|
375
380
|
e.regions.forEach((e) => {
|
|
376
381
|
e.index !== -1 && n.push(e.index);
|
|
377
382
|
});
|
|
378
|
-
}),
|
|
379
|
-
}, { immediate: !0 }),
|
|
383
|
+
}), B(H, this).regionsIndexes = e.filter((e) => n.includes(e));
|
|
384
|
+
}, { immediate: !0 }), B(H, this).competitorsIds && u(B(H, this).competitorsIds, (e) => {
|
|
380
385
|
if (!e.length) return;
|
|
381
386
|
e.forEach((t, n) => e[n] = t);
|
|
382
|
-
let t = [
|
|
383
|
-
|
|
387
|
+
let t = [B(U, this).page.data.project.id];
|
|
388
|
+
B(U, this).page.data.project.competitors.forEach((e) => {
|
|
384
389
|
e.on >= 0 && t.push(e.id);
|
|
385
|
-
}),
|
|
390
|
+
}), B(H, this).competitorsIds = e.filter((e) => t.includes(e));
|
|
386
391
|
}, { immediate: !0 });
|
|
387
392
|
}
|
|
388
|
-
var
|
|
393
|
+
var Ye = (e) => {
|
|
389
394
|
let t = e;
|
|
390
|
-
!t.options.tpaNamesUrlHash?.length && !t.options.tpaNamesStorage?.length && !t.options.tpaNamesStorageLocal?.length && !t.options.tpaNamesGuestLink?.length || new
|
|
395
|
+
!t.options.tpaNamesUrlHash?.length && !t.options.tpaNamesStorage?.length && !t.options.tpaNamesStorageLocal?.length && !t.options.tpaNamesGuestLink?.length || new Be(t);
|
|
391
396
|
};
|
|
392
397
|
//#endregion
|
|
393
|
-
export {
|
|
398
|
+
export { Re as n, Ye as t };
|
|
394
399
|
|
|
395
|
-
//# sourceMappingURL=app-
|
|
400
|
+
//# sourceMappingURL=app-CyODeY0D.esm.js.map
|