@topvisor/ui 1.3.5-4 → 1.3.5-5.0
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/{core-DF7fuQev.es.js → core-CaWxDXrZ.es.js} +4 -4
- package/.chunks/{core-DF7fuQev.es.js.map → core-CaWxDXrZ.es.js.map} +1 -1
- package/.chunks/{core-BS_ygt0h.amd.js → core-DmO1i1Ua.amd.js} +2 -2
- package/.chunks/{core-BS_ygt0h.amd.js.map → core-DmO1i1Ua.amd.js.map} +1 -1
- package/.chunks/{datepicker-BYLW8X5k.amd.js → datepicker-CPrHVH4x.amd.js} +2 -2
- package/.chunks/{datepicker-BYLW8X5k.amd.js.map → datepicker-CPrHVH4x.amd.js.map} +1 -1
- package/.chunks/{datepicker-BVIBaChw.es.js → datepicker-J8Zg9mKt.es.js} +2 -2
- package/.chunks/{datepicker-BVIBaChw.es.js.map → datepicker-J8Zg9mKt.es.js.map} +1 -1
- package/.chunks/{dialog_selectorRegions-D5DOxBQO.es.js → dialog_selectorRegions-DoEjgXtb.es.js} +4 -4
- package/.chunks/{dialog_selectorRegions-D5DOxBQO.es.js.map → dialog_selectorRegions-DoEjgXtb.es.js.map} +1 -1
- package/.chunks/{dialog_selectorRegions-CaR2-Qo2.amd.js → dialog_selectorRegions-DzufTzj9.amd.js} +2 -2
- package/.chunks/{dialog_selectorRegions-CaR2-Qo2.amd.js.map → dialog_selectorRegions-DzufTzj9.amd.js.map} +1 -1
- package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-B5rYBKgA.amd.js → dialogs.vue_vue_type_script_setup_true_lang-8KsNy0Bd.amd.js} +2 -2
- package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-B5rYBKgA.amd.js.map → dialogs.vue_vue_type_script_setup_true_lang-8KsNy0Bd.amd.js.map} +1 -1
- package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-CPByl0SB.es.js → dialogs.vue_vue_type_script_setup_true_lang-DvkvzHEY.es.js} +2 -2
- package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-CPByl0SB.es.js.map → dialogs.vue_vue_type_script_setup_true_lang-DvkvzHEY.es.js.map} +1 -1
- package/.chunks/{forms-BrdvrjiZ.es.js → forms-COXAfg9G.es.js} +53 -51
- package/.chunks/{forms-BrdvrjiZ.es.js.map → forms-COXAfg9G.es.js.map} +1 -1
- package/.chunks/{forms-CzUjrBXG.amd.js → forms-DXX5M4DO.amd.js} +3 -3
- package/.chunks/{forms-CzUjrBXG.amd.js.map → forms-DXX5M4DO.amd.js.map} +1 -1
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang--W1RouXP.es.js +199 -0
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang--W1RouXP.es.js.map +1 -0
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-DzV225TL.amd.js +2 -0
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-DzV225TL.amd.js.map +1 -0
- package/.chunks/{menu.vue_vue_type_style_index_0_lang-BNr8VcFM.es.js → menu.vue_vue_type_style_index_0_lang-BiyxTfdE.es.js} +2 -2
- package/.chunks/{menu.vue_vue_type_style_index_0_lang-BNr8VcFM.es.js.map → menu.vue_vue_type_style_index_0_lang-BiyxTfdE.es.js.map} +1 -1
- package/.chunks/{menu.vue_vue_type_style_index_0_lang-jnHbXDIR.amd.js → menu.vue_vue_type_style_index_0_lang-D3OAqOqX.amd.js} +2 -2
- package/.chunks/{menu.vue_vue_type_style_index_0_lang-jnHbXDIR.amd.js.map → menu.vue_vue_type_style_index_0_lang-D3OAqOqX.amd.js.map} +1 -1
- package/.chunks/{notice-CzWMWg_D.amd.js → notice-CSGn_jTM.amd.js} +2 -2
- package/.chunks/{notice-CzWMWg_D.amd.js.map → notice-CSGn_jTM.amd.js.map} +1 -1
- package/.chunks/{notice-BPgkjMG1.es.js → notice-P7CXfEuX.es.js} +2 -2
- package/.chunks/{notice-BPgkjMG1.es.js.map → notice-P7CXfEuX.es.js.map} +1 -1
- package/.chunks/opener.vue_vue_type_script_setup_true_lang-DRzrTv7Q.es.js +36 -0
- package/.chunks/opener.vue_vue_type_script_setup_true_lang-DRzrTv7Q.es.js.map +1 -0
- package/.chunks/opener.vue_vue_type_script_setup_true_lang-gNZhYkDf.amd.js +2 -0
- package/.chunks/opener.vue_vue_type_script_setup_true_lang-gNZhYkDf.amd.js.map +1 -0
- package/.chunks/{page.vue_vue_type_script_setup_true_lang-XMwkQHNU.es.js → page.vue_vue_type_script_setup_true_lang-D9m45rLs.es.js} +4 -4
- package/.chunks/{page.vue_vue_type_script_setup_true_lang-XMwkQHNU.es.js.map → page.vue_vue_type_script_setup_true_lang-D9m45rLs.es.js.map} +1 -1
- package/.chunks/{page.vue_vue_type_script_setup_true_lang-C-BJRiFc.amd.js → page.vue_vue_type_script_setup_true_lang-DHPOnLj5.amd.js} +2 -2
- package/.chunks/{page.vue_vue_type_script_setup_true_lang-C-BJRiFc.amd.js.map → page.vue_vue_type_script_setup_true_lang-DHPOnLj5.amd.js.map} +1 -1
- package/.chunks/popup-CF4k7j3U.amd.js +2 -0
- package/.chunks/popup-CF4k7j3U.amd.js.map +1 -0
- package/.chunks/{popup-do4HUI7u.es.js → popup-G7FYKscC.es.js} +116 -90
- package/.chunks/popup-G7FYKscC.es.js.map +1 -0
- package/.chunks/{utils-B6aJagiK.es.js → utils-CWm0zAtM.es.js} +3 -3
- package/.chunks/{utils-B6aJagiK.es.js.map → utils-CWm0zAtM.es.js.map} +1 -1
- package/.chunks/{utils-BgVG2kmp.amd.js → utils-D505nRsu.amd.js} +2 -2
- package/.chunks/{utils-BgVG2kmp.amd.js.map → utils-D505nRsu.amd.js.map} +1 -1
- package/.chunks/{utils-BqT8hS8L.amd.js → utils-DmxcQpWA.amd.js} +2 -2
- package/.chunks/{utils-BqT8hS8L.amd.js.map → utils-DmxcQpWA.amd.js.map} +1 -1
- package/.chunks/{utils-DyhMNhnz.es.js → utils-Rbz9mxy6.es.js} +2 -2
- package/.chunks/{utils-DyhMNhnz.es.js.map → utils-Rbz9mxy6.es.js.map} +1 -1
- package/.chunks/{widgetInput.vue_vue_type_script_setup_true_lang-CVsiIZz5.amd.js → widgetInput.vue_vue_type_script_setup_true_lang-BU-FdL6d.amd.js} +2 -2
- package/.chunks/{widgetInput.vue_vue_type_script_setup_true_lang-CVsiIZz5.amd.js.map → widgetInput.vue_vue_type_script_setup_true_lang-BU-FdL6d.amd.js.map} +1 -1
- package/.chunks/{widgetInput.vue_vue_type_script_setup_true_lang-Bo064qPK.es.js → widgetInput.vue_vue_type_script_setup_true_lang-TVpBXc9F.es.js} +2 -2
- package/.chunks/{widgetInput.vue_vue_type_script_setup_true_lang-Bo064qPK.es.js.map → widgetInput.vue_vue_type_script_setup_true_lang-TVpBXc9F.es.js.map} +1 -1
- package/assets/forms.css +1 -1
- package/assets/listItem.css +1 -1
- package/charts/charts.amd.js +1 -1
- package/charts/charts.js +1 -1
- package/core/app.amd.js +1 -1
- package/core/app.js +5 -5
- package/dialog/dialog.amd.js +1 -1
- package/dialog/dialog.js +2 -2
- package/forms/forms.amd.js +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 +387 -388
- package/formsExt/formsExt.js.map +1 -1
- package/layout/layout.amd.js +1 -1
- package/layout/layout.js +1 -1
- package/package.json +1 -1
- package/popup/popup.amd.js +1 -1
- package/popup/popup.amd.js.map +1 -1
- package/popup/popup.js +39 -34
- package/popup/popup.js.map +1 -1
- package/popup/worker.amd.js +1 -1
- package/popup/worker.amd.js.map +1 -1
- package/popup/worker.js +24 -20
- package/popup/worker.js.map +1 -1
- package/project/project.amd.js +1 -1
- package/project/project.amd.js.map +1 -1
- package/project/project.js +26 -25
- package/project/project.js.map +1 -1
- package/src/api/api/types/ext.d.ts +2 -2
- package/src/components/forms/button/types.d.ts +6 -0
- package/src/components/forms/input/input.vue.d.ts +1 -1
- package/src/components/forms/input/types.d.ts +1 -1
- package/src/components/forms/inputDate/inputDate.vue.d.ts +1 -1
- package/src/components/formsExt/libs/optionGroup/types.d.ts +1 -1
- package/src/components/formsExt/selector2/composables/useAPI.d.ts +3 -2
- package/src/components/formsExt/selector2/composables/useMenu.d.ts +1 -1
- package/src/components/formsExt/selector2/selector2.vue.d.ts +2 -0
- package/src/components/formsExt/selector2/types.d.ts +18 -1
- package/src/components/formsExt/selector2/utils.d.ts +1 -0
- package/src/components/popup/lib/popup.d.ts +14 -2
- package/src/components/popup/lib/worker.d.ts +1 -1
- package/src/components/popup/popup/opener/opener.vue.d.ts +17 -0
- package/src/components/popup/popup/opener/types.d.ts +51 -0
- package/src/components/popup/popup/opener.vue.d.ts +1 -1
- package/src/components/popup/popup/types.d.ts +1 -45
- package/src/components/project/tagSelector/utils/el.d.ts +1 -1
- package/tabsView/tabsView.amd.js +1 -1
- package/tabsView/tabsView.js +2 -2
- package/utils/clipboard.amd.js +1 -1
- package/utils/clipboard.js +1 -1
- package/utils/date.amd.js +1 -1
- package/utils/date.js +1 -1
- package/utils/device.amd.js +1 -1
- package/utils/device.js +1 -1
- package/utils/lodash.amd.js +1 -1
- package/utils/lodash.js +1 -1
- package/utils/price.amd.js +1 -1
- package/utils/price.js +1 -1
- package/utils/searchers.amd.js +1 -1
- package/utils/searchers.js +3 -3
- package/utils/string.amd.js +1 -1
- package/utils/string.js +1 -1
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-DZ6ExJKC.es.js +0 -192
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-DZ6ExJKC.es.js.map +0 -1
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-_sniT1lq.amd.js +0 -2
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-_sniT1lq.amd.js.map +0 -1
- package/.chunks/popup-UOJ-t8-v.amd.js +0 -2
- package/.chunks/popup-UOJ-t8-v.amd.js.map +0 -1
- package/.chunks/popup-do4HUI7u.es.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as E, C as f } from "./forms-
|
|
1
|
+
import { u as E, C as f } from "./forms-COXAfg9G.es.js";
|
|
2
2
|
import i from "../utils/dom.js";
|
|
3
|
-
import { TopPopupWorker as
|
|
3
|
+
import { TopPopupWorker as l } from "../popup/worker.js";
|
|
4
4
|
class w {
|
|
5
5
|
static componentName = "Top";
|
|
6
6
|
componentName;
|
|
@@ -18,13 +18,13 @@ class w {
|
|
|
18
18
|
// переопредлять нельзя
|
|
19
19
|
// если компонент инициирован, необходимо сразу его вернуть и выполнить reInit() вместо mount()
|
|
20
20
|
// используется init вместо constructor, так как super constructor выполняется до Object.defineProperty() параметров класса
|
|
21
|
-
init(t, p,
|
|
21
|
+
init(t, p, e) {
|
|
22
22
|
if (!p)
|
|
23
23
|
throw t + ": el is undefined";
|
|
24
|
-
const
|
|
25
|
-
if (
|
|
26
|
-
return
|
|
27
|
-
this.componentName = t, this.className = "top" + t[0].toUpperCase() + t.substring(1), this.uid = this.componentName + (Math.random() + "").replace(".", ""), this._setComponent(p), this.el = p, this.el.classList.add(this.className), this.options = Object.assign(this.options,
|
|
24
|
+
const o = w.getComponent(p, t);
|
|
25
|
+
if (o)
|
|
26
|
+
return o.reInit(e), o;
|
|
27
|
+
this.componentName = t, this.className = "top" + t[0].toUpperCase() + t.substring(1), this.uid = this.componentName + (Math.random() + "").replace(".", ""), this._setComponent(p), this.el = p, this.el.classList.add(this.className), this.options = Object.assign(this.options, e), this.mount();
|
|
28
28
|
}
|
|
29
29
|
// получить инициированный компонент
|
|
30
30
|
static getComponent(t, p) {
|
|
@@ -51,16 +51,16 @@ class w {
|
|
|
51
51
|
this.unmountEls.push(t);
|
|
52
52
|
}
|
|
53
53
|
// указание новые события, которые должны будут удалиться после unmount
|
|
54
|
-
addEventListenerWithUnmount(t, p,
|
|
55
|
-
t.addEventListener(p,
|
|
54
|
+
addEventListenerWithUnmount(t, p, e, o) {
|
|
55
|
+
t.addEventListener(p, e, o), this.registerEventForUnmount(t, p, e, o);
|
|
56
56
|
}
|
|
57
57
|
// указание новые события, которые должны будут удалиться после unmount
|
|
58
|
-
registerEventForUnmount(t, p,
|
|
58
|
+
registerEventForUnmount(t, p, e, o) {
|
|
59
59
|
const r = {
|
|
60
60
|
el: t,
|
|
61
61
|
type: p,
|
|
62
|
-
listener:
|
|
63
|
-
options:
|
|
62
|
+
listener: e,
|
|
63
|
+
options: o
|
|
64
64
|
};
|
|
65
65
|
this.unmountEvents.push(r);
|
|
66
66
|
}
|
|
@@ -72,13 +72,13 @@ class w {
|
|
|
72
72
|
static detach(t) {
|
|
73
73
|
var p;
|
|
74
74
|
if (t instanceof NodeList)
|
|
75
|
-
t.forEach((
|
|
76
|
-
var
|
|
77
|
-
return (
|
|
75
|
+
t.forEach((e) => {
|
|
76
|
+
var o;
|
|
77
|
+
return (o = e.parentElement) == null ? void 0 : o.removeChild(e);
|
|
78
78
|
});
|
|
79
79
|
else {
|
|
80
|
-
const
|
|
81
|
-
(p =
|
|
80
|
+
const e = t;
|
|
81
|
+
(p = e.parentElement) == null || p.removeChild(e);
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
}
|
|
@@ -98,16 +98,16 @@ class k {
|
|
|
98
98
|
* Обрабатывает захватов клики внутри Popup
|
|
99
99
|
*/
|
|
100
100
|
static onclickCapture(t) {
|
|
101
|
-
var
|
|
101
|
+
var e;
|
|
102
102
|
if (!(!(t.target instanceof HTMLElement) || !t.target.closest(".top-popup-wrapper"))) {
|
|
103
103
|
if (t.target.matches("[data-top-popup]")) {
|
|
104
|
-
const
|
|
105
|
-
|
|
104
|
+
const o = t.target.closest("ul"), r = t.target.closest("a, .a");
|
|
105
|
+
o && ((e = o.querySelector("a.top-active, .a.top-active")) == null || e.classList.remove("top-active")), r && r.classList.add("top-active"), t.stopPropagation();
|
|
106
106
|
return;
|
|
107
107
|
}
|
|
108
108
|
if (t.target.matches(".top-popup-wrapper")) {
|
|
109
|
-
const
|
|
110
|
-
|
|
109
|
+
const o = t.target;
|
|
110
|
+
l.close(o, !0), t.stopPropagation();
|
|
111
111
|
return;
|
|
112
112
|
}
|
|
113
113
|
}
|
|
@@ -121,28 +121,28 @@ class k {
|
|
|
121
121
|
if (!(t.target instanceof HTMLElement)) return;
|
|
122
122
|
const p = t.target.closest(".closer, a, .a, .top-button");
|
|
123
123
|
if (p) {
|
|
124
|
-
const
|
|
125
|
-
if (!
|
|
124
|
+
const e = t.target.closest(".top-popup-wrapper");
|
|
125
|
+
if (!e || p.matches(".top-popup-noCloser"))
|
|
126
126
|
return;
|
|
127
|
-
p.getAttribute("href") === "." && t.preventDefault(),
|
|
127
|
+
p.getAttribute("href") === "." && t.preventDefault(), l.close(e, !0);
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
/**
|
|
131
131
|
* Глобальный обработчик нажатия кнопки на клавиатуре
|
|
132
132
|
*/
|
|
133
133
|
static onkeydown(t) {
|
|
134
|
-
var
|
|
134
|
+
var o, r, s;
|
|
135
135
|
if (!(t.target instanceof HTMLElement)) return;
|
|
136
136
|
let p = t.target.closest(".top-popup-wrapper");
|
|
137
|
-
if (p || (p = ((
|
|
137
|
+
if (p || (p = ((o = l.getPopupFromOpener(t.target)) == null ? void 0 : o.elPopup) ?? null), !p)
|
|
138
138
|
return;
|
|
139
|
-
const
|
|
139
|
+
const e = p.querySelector("ul.top-popup_content");
|
|
140
140
|
switch (t.key) {
|
|
141
141
|
case "Escape":
|
|
142
|
-
|
|
142
|
+
l.close(p, !0);
|
|
143
143
|
break;
|
|
144
144
|
case "Enter":
|
|
145
|
-
if (!
|
|
145
|
+
if (!e) {
|
|
146
146
|
if (i.querySelectorVisible(p, ".preloader"))
|
|
147
147
|
break;
|
|
148
148
|
const d = i.querySelectorVisible(p, ".top-popup_footer .go, .top-popup_footer [data-action]");
|
|
@@ -154,8 +154,8 @@ class k {
|
|
|
154
154
|
v || (v = i.querySelectorVisibleLast(p, ".top-popup_footer .top-button")), v instanceof HTMLElement && v.click();
|
|
155
155
|
break;
|
|
156
156
|
}
|
|
157
|
-
const
|
|
158
|
-
|
|
157
|
+
const n = i.querySelectorVisible(p, "li > a.top-active");
|
|
158
|
+
n && n.getAttribute("href") && (t.preventDefault(), location.href = n.getAttribute("href"));
|
|
159
159
|
const h = p.querySelector("li > .top-active");
|
|
160
160
|
h instanceof HTMLElement && h.click();
|
|
161
161
|
break;
|
|
@@ -164,7 +164,7 @@ class k {
|
|
|
164
164
|
case "ArrowRight":
|
|
165
165
|
case "ArrowDown":
|
|
166
166
|
case "ArrowLeft":
|
|
167
|
-
if (!
|
|
167
|
+
if (!e)
|
|
168
168
|
break;
|
|
169
169
|
if (t.key === "ArrowRight" || t.key === "ArrowLeft") {
|
|
170
170
|
if (i.querySelectorVisible(
|
|
@@ -176,26 +176,26 @@ class k {
|
|
|
176
176
|
break;
|
|
177
177
|
} else
|
|
178
178
|
t.preventDefault();
|
|
179
|
-
const
|
|
180
|
-
if (t.key === "ArrowRight" &&
|
|
181
|
-
const d =
|
|
179
|
+
const c = (r = p.querySelector("ul.top-popup_content > li:not(.top-popup_liNoSelectable) > .top-active")) == null ? void 0 : r.parentElement;
|
|
180
|
+
if (t.key === "ArrowRight" && c) {
|
|
181
|
+
const d = c.querySelector(".top-active > .top-popup_listMore");
|
|
182
182
|
if (d instanceof HTMLElement)
|
|
183
183
|
return d.click();
|
|
184
184
|
}
|
|
185
185
|
const g = i.querySelectorAllVisible(p, "ul.top-popup_content > li:not(.top-popup_liNoSelectable)"), m = g.length;
|
|
186
186
|
if (!m)
|
|
187
187
|
return;
|
|
188
|
-
let
|
|
189
|
-
if (
|
|
190
|
-
return t.target.matches("input") ? void 0 :
|
|
191
|
-
if (t.key === "ArrowRight" &&
|
|
188
|
+
let a = -1;
|
|
189
|
+
if (c && (a = g.indexOf(c)), t.key === "ArrowUp" || t.key === "ArrowLeft" ? a-- : a++, t.key === "ArrowLeft" && a === -1)
|
|
190
|
+
return t.target.matches("input") ? void 0 : l.close(p, !0);
|
|
191
|
+
if (t.key === "ArrowRight" && a === m)
|
|
192
192
|
return;
|
|
193
|
-
|
|
193
|
+
a < 0 && (a = m - 1), a > m - 1 && (a = 0), p.querySelectorAll("ul.top-popup_content > li > .top-active").forEach((d) => d.classList.remove("top-active")), (s = g[a].querySelector(":scope > a, :scope > .a")) == null || s.classList.add("top-active"), l.scrollToActive(p);
|
|
194
194
|
break;
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
|
-
const S = ":root{--top-popup-z-index: 200000;--top-popup-transition-delay: .1s;--top-popup-offset: var(--top-padding-2);--top-popup-background-color: var(--color-layout-front-1);--top-popup-background-color-hover: var(--color-layout-front-3);--top-popup-background-color-active: var(--color-layout-front-4);--top-popup-border-color: var(--color-line-2-opacity);--top-popup-title-background-color: var(--color-layer-1);--top-popup-content-padding: calc(var(--top-popup-list-padding) + var(--top-popup-listItem-padding));--top-popup-list-padding: var(--top-padding-2);--top-popup-listItem-radius: var(--top-radius-2);--top-popup-listItem-padding: var(--top-padding-2)}.top-popup-front{position:relative}.top-popup-wrapper{--top-popup-height: 0px;--top-popup-right-bounding: 0px;--top-popup-bottom-bounding: 0px;--top-popup-top: 0px;--top-popup-right: calc(100vw - var(--top-popup-right-bounding));--top-popup-bottom: calc(var(--100vh) - var(--top-popup-bottom-bounding));--top-popup-left: 0px;--top-popup-margin: -10px;text-align:initial;white-space:normal;word-break:normal;position:absolute;z-index:200000;outline:none}.top-popup-wrapper:not(.top-popup-wrapper-shown){overflow:hidden}.top-popupPanel{cursor:default;box-shadow:var(--top-shadow-b);border-radius:14px;background:var(--top-popup-background-color);position:absolute;overflow:hidden;display:flex;flex-direction:column}.top-popup-wrapper>*{opacity:0;transition:opacity var(--top-popup-transition-delay) linear,transform var(--top-popup-transition-delay) linear}.top-popup-wrapper-shown:not(.top-popup-wrapper-closed)>*{opacity:1;transform:translate(0)!important}.top-popup_header,.top-popup_content,.top-popup_footer{font-size:14px}.top-popup_header,.top-popup_footer{display:flex;align-items:center;justify-content:space-between}.top-popup_header{color:var(--color-text-1);border-bottom:1px solid var(--top-popup-border-color);padding:var(--top-padding-3);font-weight:600}.top-popup_header>*{font-weight:400}.top-popup_header>.a{cursor:pointer}.top-popup_header>.a:hover{color:var(--color-text-primary)}.top-popup_headerButton{width:60px}.top-popup_widget{padding:var(--top-padding-2)}.top-popup_content{margin:0;flex-grow:1;overflow-y:auto;display:flex;flex-direction:column;gap:var(--top-gap-4);-webkit-overflow-scrolling:touch}div.top-popup_content{color:var(--color-text-1);padding:var(--top-popup-content-padding)}div.top-popup_content>*{flex-shrink:0}div.top-popup_content>.top-button{margin:0}div.top-popup_content .top-unwrap{--top-unwrap-x: var(--top-popup-content-padding)}ul.top-popup_content{color:var(--color-text-1);padding:var(--top-popup-list-padding);gap:2px}ul.top-popup_content .top-unwrap{--top-unwrap-x: var(--top-popup-list-padding)}.top-popup_listItem{border-radius:var(--top-popup-listItem-radius);padding:var(--top-popup-listItem-padding);line-height:1!important}ul.top-popup_content li{margin:0;list-style:none;display:flex;align-items:center;position:relative}ul.top-popup_content li>*{flex-grow:1}ul.top-popup_content li>a:not(.top-button),ul.top-popup_content li>.a{cursor:pointer;box-sizing:border-box;border-radius:var(--top-popup-listItem-radius);background:var(--top-popup-background-color);padding:var(--top-popup-listItem-padding);color:var(--color-text-1)!important;font-size:14px;font-weight:400!important;text-decoration:none!important;font-style:normal;line-height:1!important;display:flex;flex:1 1 100%;align-items:center;transition:background-color .1s ease-in-out}.top-popup-wrapper-no_animate ul.top-popup_content li>a:not(.top-button),.top-popup-wrapper-no_animate ul.top-popup_content li>.a{transition:none}ul.top-popup_content li>a:not(.top-button):hover,ul.top-popup_content li>.a:hover{background:var(--top-popup-background-color-hover)}ul.top-popup_content li>a:not(.top-button).top-active,ul.top-popup_content li>.a.top-active{--top-icon-color: var(--color-text-primary) !important;background:var(--top-popup-background-color-active)}.top-popup_liastItem-withActions{width:240px;max-width:100%}.top-popup_listItemActionsLabel{flex-grow:1}.top-popup_listItemActions{margin-left:auto;flex-grow:0;display:flex}.top-popup_listItemActions>[data-top-icon]{--top-icon-size: 20px;--top-icon-color: var(--color-text-4)}.top-popup_listItemActions>[data-top-icon]:before{line-height:0}.top-popup_listItemActions>[data-top-icon]:hover,.top-popup_listItemActions>[data-top-icon].top-active{--top-icon-color: var(--color-text-3)}.top-popup_content+.top-popup_content{padding-top:0}.top-popup_listItem-title{background:var(--color-layer-1);color:var(--color-text-1);font-size:12px}.top-popup_listItem-formControls{padding-top:0;padding-bottom:0;display:flex;flex-direction:column}.top-popup_listItem-delimiter{border-radius:3px;background:var(--top-popup-border-color);height:1px;padding:0;margin:4px}.top-popup_listMore{font-size:20px;margin:calc(0px - var(--top-popup-listItem-padding)) calc(0px - var(--top-popup-listItem-padding) / 2) calc(0px - var(--top-popup-listItem-padding)) 0}.top-popup_listMore.top-button{margin:0}ul.top-popup_content li>.a.top-popup_listMore{text-align:center;flex-basis:10px}ul.top-popup_content li>.a.top-popup_listMore:before{color:var(--color-text-2)}ul.top-popup_content li>*>.top-popup_listMore{margin-left:auto;color:var(--color-layer-4);font-size:14px}ul.top-popup_content li>*>i.top-popup_listMore:hover,ul.top-popup_content li>*>i.top-popup_listMore.top-active{color:var(--color-text-primary)}ul.top-popup_content li>*>i.top-popup_listMore:before{transform:rotate(90deg);display:block}ul.top-popup_content li a.close{background:none!important}.top-popup_content>[data-top-icon]:before{--top-icon-size: 20px}ul.top-popup_content li>[data-top-icon]{--top-icon-color: var(--color-text-2);--top-icon-size: 20px;--top-icon-width: 20px}ul.top-popup_content li>[data-top-icon]:not(.top-button):before{height:1rem;margin-right:8px;transition:color .1s}ul.top-popup_content li:hover>[data-top-icon]:not(.top-button){--top-icon-color: var(--color-text-2)}.top-popup_footer{padding:var(--top-padding-3);border-top:1px solid var(--top-popup-border-color);display:flex;gap:var(--top-gap-2);justify-content:flex-end}.top-popup_footerSupportLink{margin-right:auto}.top-popup>[data-widget]{padding:0 var(--top-popup-list-padding)}.top-popup>[data-widget]+hr{margin:0 var(--top-popup-list-padding)}.top-popup .placeholder{border:1px solid #E0D9D9!important;border-right:none!important;border-left:none!important;background:#f9f9f9!important;margin:-1px 0;z-index:1;position:relative}.top-popup-wrapper.simple_list>.top-popup{min-width:0;white-space:nowrap}.top-popup_content .top-column{display:flex;flex-direction:column;gap:4px}.top-popup li .check_all,.top-popup li .clear_all{cursor:pointer;color:var(--color-text-primary);padding:8px;display:inline-block}.top-popup li .check_all:hover,.top-popup li .clear_all:hover{text-decoration:underline}.top-popup li .clear_all{display:none}.top-popup_content table{margin:-9px 0}.top-popup_content table td,.top-popup_content table th{padding:9px var(--top-popup-listItem-padding) 9px 0;vertical-align:top}.top-popup_content table th{width:40%;font-weight:600;white-space:nowrap}ul.top-popup_content .a>[type=checkbox],ul.top-popup_content .a>[type=radio]{margin:-8px 0 -8px auto}ul.top-popup_content a>[class*=icon],ul.top-popup_content i.a>[class*=icon]{transition:.1s}.top-popup .buttons{border-radius:0 0 4px 4px;border-top:1px solid #BDC3C7;background:#ecf0f1;padding:10px 15px;margin:10px -15px -10px;white-space:nowrap}.top-popup_footer [class*=btn]:not(.btn-transparent){min-width:100px;padding:5px 14px;margin-left:10px}.top-popup_footer [class*=btn]:first-child{margin-left:0}.top-popup_footer .btn.full_width{margin:0;flex-grow:1}", M = ":root{--top-popup-list-padding: 0px;--top-popup-listItem-radius: 0px;--top-popup-listItem-padding: var(--top-padding-4)}.top-popup-wrapper{--top-popup-footer-offset: 25px;width:auto!important;height:auto!important;position:fixed;top:0!important;right:0!important;left:0!important;overflow:hidden;transition:background .3s}.top-popup-wrapper-shown:not(.top-popup-wrapper-closed){background:#00000080;-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px)}.top-popup-wrapper-shown:not(.top-popup-wrapper-closed)>.top-popup{opacity:1!important}.top-popup{border-radius:8px 8px 0 0;width:auto!important;max-height:calc(100% - var(--header-height, 0px) - var(--toolbar-height, 0px) - 12px);margin:0!important;top:auto!important;right:0!important;bottom:var(--toolbar-height, 0px)!important;left:0!important;display:flex;flex-direction:column;transform:translateY(80%);transition:opacity .3s,transform .3s}.top-popup-wrapper.p-from-top{--top-popup-footer-offset: 0px;top:var(--header-height, 0px)!important}.with_dialog .top-popup-wrapper.p-from-top{top:50px!important}.top-popup-wrapper.p-from-top>.top-popup{border-radius:0 0 8px 8px;max-height:calc(100% - 24px);top:0!important;bottom:auto!important;transform:translateY(calc(-100% - 24px))}.top-popup_widget:not(.p-from-top){order:10}ul.top-popup_content{gap:0}ul.top-popup_content li:not(:last-child){border-bottom:1px solid var(--top-popup-border-color)}.top-popup-wrapper.top-style_alt>.top-popup>ul>li{border-bottom:none}.top-popup_footer{flex-direction:column-reverse}.top-popup_footer>.top-button{--top-forms-base-height: var(--top-forms-base-height_l);width:100%}ul.top-popup_content .top-popup_listItem-title{--top-popup-padding-v: 12px}ul.top-popup_content .top-popup_listItem-delimiter{background:var(--color-line-1-opacity);height:4px;margin:0}ul.top-popup_content li:first-child>.top-popup_listItem-delimiter{border-top:1px solid var(--top-popup-border-color)}", T = ".top-popup{min-width:250px;max-width:calc(100vw - var(--top-popup-left) - 16px);max-height:calc(var(--top-popup-bottom) + var(--top-popup-height))}.top-popup-wrapper.p0>*{transform:translateY(-8px)}.top-popup-wrapper.p1>*{transform:translateY(8px)}.top-popup-wrapper.p2>*{transform:translate(8px)}.top-popup-wrapper.p3>*{transform:translateY(8px)}.top-popup-wrapper.p4>*{transform:translate(-8px)}.top-popup-wrapper.p0>.top-popup{top:-16px;left:-8px}.top-popup-wrapper.p1>.top-popup{bottom:calc(100% + 8px)}.top-popup-wrapper.p2>.top-popup{left:calc(100% + 8px)}.top-popup-wrapper.p3>.top-popup{top:calc(100% + 8px)}.top-popup-wrapper.p4>.top-popup{right:calc(100% + 8px)}.top-popup-wrapper.p2>.top-popup,.top-popup-wrapper.p4>.top-popup{margin-top:var(--top-popup-margin)}.top-popup-wrapper.p2.invert-y>.top-popup,.top-popup-wrapper.p4.invert-y>.top-popup{margin-bottom:var(--top-popup-margin)}.top-popup-wrapper.p1.with_notch>.top-popup{margin-bottom:5px}.top-popup-wrapper.p2.with_notch>.top-popup{margin-left:5px}.top-popup-wrapper.p3.with_notch>.top-popup{margin-top:5px}.top-popup-wrapper.p4.with_notch>.top-popup{margin-right:5px}.top-popup-wrapper.invert-x>.top-popup{right:0}.top-popup-wrapper.invert-y>.top-popup{bottom:0}.top-popup-wrapper.p1>.top-popup{max-height:calc(var(--top-popup-top) - var(--header-height, 0px) - 16px)}.top-popup-wrapper.p3>.top-popup{max-height:calc(var(--top-popup-bottom) - 16px)}.top-popup-wrapper.p2>.top-popup{max-width:calc(var(--top-popup-right) - 16px)}.top-popup-wrapper.p4>.top-popup{max-width:calc(var(--top-popup-left) - 16px)}.top-popup-wrapper.invert-x>.top-popup{max-width:calc(100vw - var(--top-popup-right) - 16px)}.top-popup-wrapper.invert-y>.top-popup{max-height:calc(100vh - var(--top-popup-bottom) - 16px)}.top-popup-wrapper>.notch{border:7.4px solid transparent;position:absolute;display:block}.top-popup-wrapper.p1>.notch{border-bottom:0;border-top:7.4px solid var(--color-layout-front-1);margin:0 0 7.4px -7.4px;bottom:100%;left:50%}.top-popup-wrapper.p2>.notch{border-left:0;border-right:7.4px solid var(--color-layout-front-1);margin:0 0 -7.4px 7.4px;bottom:50%;left:100%}.top-popup-wrapper.p3>.notch{border-top:0;border-bottom:7.4px solid var(--color-layout-front-1);margin:7.4px 0 0 -7.4px;top:100%;left:50%}.top-popup-wrapper.p4>.notch{border-right:0;border-left:7.4px solid var(--color-layout-front-1);margin:0 7.4px -7.4px 0;bottom:50%;right:100%}.top-popup-wrapper.p1>.notch-border{border-top-color:#0000000d;margin-bottom:6px}.top-popup-wrapper.p2>.notch-border{border-right-color:#0000000d;margin-left:6px}.top-popup-wrapper.p3>.notch-border{border-bottom-color:#0000000d;margin-top:6px}.top-popup-wrapper.p4>.notch-border{border-left-color:#0000000d;margin-right:6px}.top-popup-wrapper.p1.with_notch>.top-popup,.top-popup-wrapper.p3.with_notch>.top-popup{margin-left:-16px!important}.top-popup-wrapper.p1.with_notch>.notch,.top-popup-wrapper.p3.with_notch>.notch{margin-left:-8px!important}.top-popup-wrapper.p1.with_notch.invert-x,.top-popup-wrapper.p3.with_notch.invert-x{margin-left:3px!important}.top-popup-wrapper.p1.with_notch.invert-x>.notch,.top-popup-wrapper.p3.with_notch.invert-x>.notch{margin-left:-9px!important}ul.top-popup_content li>*>i.top-popup_listMore{visibility:hidden;transition:none}ul.top-popup_content li:hover>*>i.top-popup_listMore,ul.top-popup_content li>*.top-active>i.top-popup_listMore,ul.top-popup_content li>*>i.top-popup_listMore.top-active{visibility:visible}.top-popup_listItemActions{display:none}.top-popup_listItem.top-active>.top-popup_listItemActions,.top-popup_listItem:hover>.top-popup_listItemActions{display:flex}";
|
|
198
|
+
const S = ":root{--top-popup-z-index: 200000;--top-popup-transition-delay: .1s;--top-popup-offset: var(--top-padding-2);--top-popup-background-color: var(--color-layout-front-1);--top-popup-background-color-hover: var(--color-layout-front-3);--top-popup-background-color-active: var(--color-layout-front-4);--top-popup-border-color: var(--color-line-2-opacity);--top-popup-title-background-color: var(--color-layer-1);--top-popup-content-padding: calc(var(--top-popup-list-padding) + var(--top-popup-listItem-padding));--top-popup-list-padding: var(--top-padding-2);--top-popup-listItem-radius: var(--top-radius-2);--top-popup-listItem-padding: var(--top-padding-2)}.top-popup-front{position:relative}.top-popup-wrapper{--top-popup-height: 0px;--top-popup-right-bounding: 0px;--top-popup-bottom-bounding: 0px;--top-popup-top: 0px;--top-popup-right: calc(100vw - var(--top-popup-right-bounding));--top-popup-bottom: calc(var(--100vh) - var(--top-popup-bottom-bounding));--top-popup-left: 0px;--top-popup-margin: -10px;pointer-events:none;text-align:initial;white-space:normal;word-break:normal;position:absolute;z-index:200000;outline:none}.top-popup-wrapper:not(.top-popup-wrapper-shown){overflow:hidden}.top-popupPanel{cursor:default;box-shadow:var(--top-shadow-b);border-radius:14px;background:var(--top-popup-background-color);position:absolute;overflow:hidden;display:flex;flex-direction:column}.top-popup-wrapper>*{opacity:0;transition:opacity var(--top-popup-transition-delay) linear,transform var(--top-popup-transition-delay) linear;pointer-events:auto}.top-popup-wrapper-shown:not(.top-popup-wrapper-closed)>*{opacity:1;transform:translate(0)!important}.top-popup_header,.top-popup_content,.top-popup_footer{font-size:14px}.top-popup_header,.top-popup_footer{display:flex;align-items:center;justify-content:space-between}.top-popup_header{color:var(--color-text-1);border-bottom:1px solid var(--top-popup-border-color);padding:var(--top-padding-3);font-weight:600}.top-popup_header>*{font-weight:400}.top-popup_header>.a{cursor:pointer}.top-popup_header>.a:hover{color:var(--color-text-primary)}.top-popup_headerButton{width:60px}.top-popup_widget{padding:var(--top-padding-2)}.top-popup_content{margin:0;flex-grow:1;overflow-y:auto;display:flex;flex-direction:column;gap:var(--top-gap-4);-webkit-overflow-scrolling:touch}div.top-popup_content{color:var(--color-text-1);padding:var(--top-popup-content-padding)}div.top-popup_content>*{flex-shrink:0}div.top-popup_content>.top-button{margin:0}div.top-popup_content .top-unwrap{--top-unwrap-x: var(--top-popup-content-padding)}ul.top-popup_content{color:var(--color-text-1);padding:var(--top-popup-list-padding);gap:2px}ul.top-popup_content .top-unwrap{--top-unwrap-x: var(--top-popup-list-padding)}.top-popup_listItem{border-radius:var(--top-popup-listItem-radius);padding:var(--top-popup-listItem-padding);line-height:1!important}ul.top-popup_content li{margin:0;list-style:none;display:flex;align-items:center;position:relative}ul.top-popup_content li>*{flex-grow:1}ul.top-popup_content li>a:not(.top-button),ul.top-popup_content li>.a{cursor:pointer;box-sizing:border-box;border-radius:var(--top-popup-listItem-radius);background:var(--top-popup-background-color);padding:var(--top-popup-listItem-padding);color:var(--color-text-1)!important;font-size:14px;font-weight:400!important;text-decoration:none!important;font-style:normal;line-height:1!important;display:flex;flex:1 1 100%;align-items:center;transition:background-color .1s ease-in-out}.top-popup-wrapper-no_animate ul.top-popup_content li>a:not(.top-button),.top-popup-wrapper-no_animate ul.top-popup_content li>.a{transition:none}ul.top-popup_content li>a:not(.top-button):hover,ul.top-popup_content li>.a:hover{background:var(--top-popup-background-color-hover)}ul.top-popup_content li>a:not(.top-button).top-active,ul.top-popup_content li>.a.top-active{--top-icon-color: var(--color-text-primary) !important;background:var(--top-popup-background-color-active)}.top-popup_liastItem-withActions{width:240px;max-width:100%}.top-popup_listItemActionsLabel{flex-grow:1}.top-popup_listItemActions{margin-left:auto;flex-grow:0;display:flex}.top-popup_listItemActions>[data-top-icon]{--top-icon-size: 20px;--top-icon-color: var(--color-text-4)}.top-popup_listItemActions>[data-top-icon]:before{line-height:0}.top-popup_listItemActions>[data-top-icon]:hover,.top-popup_listItemActions>[data-top-icon].top-active{--top-icon-color: var(--color-text-3)}.top-popup_content+.top-popup_content{padding-top:0}.top-popup_listItem-title{background:var(--color-layer-1);color:var(--color-text-1);font-size:12px}.top-popup_listItem-formControls{padding-top:0;padding-bottom:0;display:flex;flex-direction:column}.top-popup_listItem-delimiter{border-radius:3px;background:var(--top-popup-border-color);height:1px;padding:0;margin:4px}.top-popup_listMore{font-size:20px;margin:calc(0px - var(--top-popup-listItem-padding)) calc(0px - var(--top-popup-listItem-padding) / 2) calc(0px - var(--top-popup-listItem-padding)) 0}.top-popup_listMore.top-button{margin:0}ul.top-popup_content li>.a.top-popup_listMore{text-align:center;flex-basis:10px}ul.top-popup_content li>.a.top-popup_listMore:before{color:var(--color-text-2)}ul.top-popup_content li>*>.top-popup_listMore{margin-left:auto;color:var(--color-layer-4);font-size:14px}ul.top-popup_content li>*>i.top-popup_listMore:hover,ul.top-popup_content li>*>i.top-popup_listMore.top-active{color:var(--color-text-primary)}ul.top-popup_content li>*>i.top-popup_listMore:before{transform:rotate(90deg);display:block}ul.top-popup_content li a.close{background:none!important}.top-popup_content>[data-top-icon]:before{--top-icon-size: 20px}ul.top-popup_content li>[data-top-icon]{--top-icon-color: var(--color-text-2);--top-icon-size: 20px;--top-icon-width: 20px}ul.top-popup_content li>[data-top-icon]:not(.top-button):before{height:1rem;margin-right:8px;transition:color .1s}ul.top-popup_content li:hover>[data-top-icon]:not(.top-button){--top-icon-color: var(--color-text-2)}.top-popup_footer{padding:var(--top-padding-3);border-top:1px solid var(--top-popup-border-color);display:flex;gap:var(--top-gap-2);justify-content:flex-end}.top-popup_footerSupportLink{margin-right:auto}.top-popup>[data-widget]{padding:0 var(--top-popup-list-padding)}.top-popup>[data-widget]+hr{margin:0 var(--top-popup-list-padding)}.top-popup .placeholder{border:1px solid #E0D9D9!important;border-right:none!important;border-left:none!important;background:#f9f9f9!important;margin:-1px 0;z-index:1;position:relative}.top-popup-wrapper.simple_list>.top-popup{min-width:0;white-space:nowrap}.top-popup_content .top-column{display:flex;flex-direction:column;gap:4px}.top-popup li .check_all,.top-popup li .clear_all{cursor:pointer;color:var(--color-text-primary);padding:8px;display:inline-block}.top-popup li .check_all:hover,.top-popup li .clear_all:hover{text-decoration:underline}.top-popup li .clear_all{display:none}.top-popup_content table{margin:-9px 0}.top-popup_content table td,.top-popup_content table th{padding:9px var(--top-popup-listItem-padding) 9px 0;vertical-align:top}.top-popup_content table th{width:40%;font-weight:600;white-space:nowrap}ul.top-popup_content .a>[type=checkbox],ul.top-popup_content .a>[type=radio]{margin:-8px 0 -8px auto}ul.top-popup_content a>[class*=icon],ul.top-popup_content i.a>[class*=icon]{transition:.1s}.top-popup .buttons{border-radius:0 0 4px 4px;border-top:1px solid #BDC3C7;background:#ecf0f1;padding:10px 15px;margin:10px -15px -10px;white-space:nowrap}.top-popup_footer [class*=btn]:not(.btn-transparent){min-width:100px;padding:5px 14px;margin-left:10px}.top-popup_footer [class*=btn]:first-child{margin-left:0}.top-popup_footer .btn.full_width{margin:0;flex-grow:1}", M = ":root{--top-popup-list-padding: 0px;--top-popup-listItem-radius: 0px;--top-popup-listItem-padding: var(--top-padding-4)}.top-popup-wrapper{--top-popup-footer-offset: 25px;width:auto!important;height:auto!important;position:fixed;top:0!important;right:0!important;left:0!important;overflow:hidden;transition:background .3s}.top-popup-wrapper-shown:not(.top-popup-wrapper-closed){background:#00000080;-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px)}.top-popup-wrapper-shown:not(.top-popup-wrapper-closed)>.top-popup{opacity:1!important}.top-popup{border-radius:8px 8px 0 0;width:auto!important;max-height:calc(100% - var(--header-height, 0px) - var(--toolbar-height, 0px) - 12px);margin:0!important;top:auto!important;right:0!important;bottom:var(--toolbar-height, 0px)!important;left:0!important;display:flex;flex-direction:column;transform:translateY(80%);transition:opacity .3s,transform .3s}.top-popup-wrapper.p-from-top{--top-popup-footer-offset: 0px;top:var(--header-height, 0px)!important}.with_dialog .top-popup-wrapper.p-from-top{top:50px!important}.top-popup-wrapper.p-from-top>.top-popup{border-radius:0 0 8px 8px;max-height:calc(100% - 24px);top:0!important;bottom:auto!important;transform:translateY(calc(-100% - 24px))}.top-popup_widget:not(.p-from-top){order:10}ul.top-popup_content{gap:0}ul.top-popup_content li:not(:last-child){border-bottom:1px solid var(--top-popup-border-color)}.top-popup-wrapper.top-style_alt>.top-popup>ul>li{border-bottom:none}.top-popup_footer{flex-direction:column-reverse}.top-popup_footer>.top-button{--top-forms-base-height: var(--top-forms-base-height_l);width:100%}ul.top-popup_content .top-popup_listItem-title{--top-popup-padding-v: 12px}ul.top-popup_content .top-popup_listItem-delimiter{background:var(--color-line-1-opacity);height:4px;margin:0}ul.top-popup_content li:first-child>.top-popup_listItem-delimiter{border-top:1px solid var(--top-popup-border-color)}", T = ".top-popup{min-width:250px;max-width:calc(100vw - var(--top-popup-left) - 16px);max-height:calc(var(--top-popup-bottom) + var(--top-popup-height))}.top-popup-wrapper.p0>*{transform:translateY(-8px)}.top-popup-wrapper.p1>*{transform:translateY(8px)}.top-popup-wrapper.p2>*{transform:translate(8px)}.top-popup-wrapper.p3>*{transform:translateY(8px)}.top-popup-wrapper.p4>*{transform:translate(-8px)}.top-popup-wrapper.p0>.top-popup{top:-16px;left:-8px}.top-popup-wrapper.p1>.top-popup{bottom:calc(100% + 8px)}.top-popup-wrapper.p2>.top-popup{left:calc(100% + 8px)}.top-popup-wrapper.p3>.top-popup{top:calc(100% + 8px)}.top-popup-wrapper.p4>.top-popup{right:calc(100% + 8px)}.top-popup-wrapper.p2>.top-popup,.top-popup-wrapper.p4>.top-popup{margin-top:var(--top-popup-margin)}.top-popup-wrapper.p2.invert-y>.top-popup,.top-popup-wrapper.p4.invert-y>.top-popup{margin-bottom:var(--top-popup-margin)}.top-popup-wrapper.p1.with_notch>.top-popup{margin-bottom:5px}.top-popup-wrapper.p2.with_notch>.top-popup{margin-left:5px}.top-popup-wrapper.p3.with_notch>.top-popup{margin-top:5px}.top-popup-wrapper.p4.with_notch>.top-popup{margin-right:5px}.top-popup-wrapper.invert-x>.top-popup{right:0}.top-popup-wrapper.invert-y>.top-popup{bottom:0}.top-popup-wrapper.p1>.top-popup{max-height:calc(var(--top-popup-top) - var(--header-height, 0px) - 16px)}.top-popup-wrapper.p3>.top-popup{max-height:calc(var(--top-popup-bottom) - 16px)}.top-popup-wrapper.p2>.top-popup{max-width:calc(var(--top-popup-right) - 16px)}.top-popup-wrapper.p4>.top-popup{max-width:calc(var(--top-popup-left) - 16px)}.top-popup-wrapper.invert-x>.top-popup{max-width:calc(100vw - var(--top-popup-right) - 16px)}.top-popup-wrapper.invert-y>.top-popup{max-height:calc(100vh - var(--top-popup-bottom) - 16px)}.top-popup-wrapper>.notch{border:7.4px solid transparent;position:absolute;display:block}.top-popup-wrapper.p1>.notch{border-bottom:0;border-top:7.4px solid var(--color-layout-front-1);margin:0 0 7.4px -7.4px;bottom:100%;left:50%}.top-popup-wrapper.p2>.notch{border-left:0;border-right:7.4px solid var(--color-layout-front-1);margin:0 0 -7.4px 7.4px;bottom:50%;left:100%}.top-popup-wrapper.p3>.notch{border-top:0;border-bottom:7.4px solid var(--color-layout-front-1);margin:7.4px 0 0 -7.4px;top:100%;left:50%}.top-popup-wrapper.p4>.notch{border-right:0;border-left:7.4px solid var(--color-layout-front-1);margin:0 7.4px -7.4px 0;bottom:50%;right:100%}.top-popup-wrapper.p1>.notch-border{border-top-color:#0000000d;margin-bottom:6px}.top-popup-wrapper.p2>.notch-border{border-right-color:#0000000d;margin-left:6px}.top-popup-wrapper.p3>.notch-border{border-bottom-color:#0000000d;margin-top:6px}.top-popup-wrapper.p4>.notch-border{border-left-color:#0000000d;margin-right:6px}.top-popup-wrapper.p1.with_notch>.top-popup,.top-popup-wrapper.p3.with_notch>.top-popup{margin-left:-16px!important}.top-popup-wrapper.p1.with_notch>.notch,.top-popup-wrapper.p3.with_notch>.notch{margin-left:-8px!important}.top-popup-wrapper.p1.with_notch.invert-x,.top-popup-wrapper.p3.with_notch.invert-x{margin-left:3px!important}.top-popup-wrapper.p1.with_notch.invert-x>.notch,.top-popup-wrapper.p3.with_notch.invert-x>.notch{margin-left:-9px!important}ul.top-popup_content li>*>i.top-popup_listMore{visibility:hidden;transition:none}ul.top-popup_content li:hover>*>i.top-popup_listMore,ul.top-popup_content li>*.top-active>i.top-popup_listMore,ul.top-popup_content li>*>i.top-popup_listMore.top-active{visibility:visible}.top-popup_listItemActions{display:none}.top-popup_listItem.top-active>.top-popup_listItemActions,.top-popup_listItem:hover>.top-popup_listItemActions{display:flex}";
|
|
199
199
|
f.insertStyleToPage(S);
|
|
200
200
|
f.insertStyleToPage(M, "m");
|
|
201
201
|
f.insertStyleToPage(T, "pc");
|
|
@@ -213,6 +213,13 @@ class P extends w {
|
|
|
213
213
|
elPopupBody;
|
|
214
214
|
elPopupFooter;
|
|
215
215
|
elFront;
|
|
216
|
+
/**
|
|
217
|
+
* Для openerIsInput фокусировка срабатывает при входе в поле ввода
|
|
218
|
+
*
|
|
219
|
+
* Фкусировка на сам Popup не производится
|
|
220
|
+
*
|
|
221
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Roles/combobox_role
|
|
222
|
+
*/
|
|
216
223
|
openerIsInput = !1;
|
|
217
224
|
popupParent;
|
|
218
225
|
$;
|
|
@@ -260,12 +267,16 @@ class P extends w {
|
|
|
260
267
|
super(), this.init(P.componentName, t, p);
|
|
261
268
|
}
|
|
262
269
|
async mount() {
|
|
263
|
-
var
|
|
270
|
+
var r, s;
|
|
264
271
|
if (!(this.el instanceof HTMLElement)) return;
|
|
265
272
|
const t = this.vueGetComponent();
|
|
266
|
-
|
|
273
|
+
this.el.closest(".top-popup-wrapper") && (this.popupParent = l.getPopup(this.el.closest(".top-popup-wrapper"))), await this.mountJQuery(), i.css(this.el, "position") !== "absolute" && (this.el.style.position = "relative"), this.el.dataset.topPopupOpened = "opened", this.elActiveByDefault = this.el.classList.contains("top-active"), this.el.classList.add("top-active"), this.openerIsInput = this.el.classList.contains("top-input");
|
|
274
|
+
const p = this.el.querySelector("input");
|
|
275
|
+
if (p && !p.__popupOnBlur && (p.__popupOnBlur = !0, p.addEventListener("blur", (n) => {
|
|
276
|
+
this.close();
|
|
277
|
+
})), t)
|
|
267
278
|
this.type = "vue", this.options.popup = "", this.elPopup = i.genEl("div", {}, this.options.popup);
|
|
268
|
-
else if ((
|
|
279
|
+
else if ((r = this.options.popup) != null && r.match(/^[#.]/))
|
|
269
280
|
this.type = "selector", this.elPopup = document.querySelector(`${this.options.popup}.template`) || void 0;
|
|
270
281
|
else {
|
|
271
282
|
if (this.type = "html", this.options.useOriginal)
|
|
@@ -275,7 +286,7 @@ class P extends w {
|
|
|
275
286
|
if (!this.elPopup || t != null && t.opened) {
|
|
276
287
|
if (this.options.useOriginal || t != null && t.opened) {
|
|
277
288
|
if (t != null && t.opened ? this.elPopup = t.popup.elPopup : this.elPopup = document.querySelector(`${this.options.popup}.top-popup-wrapper-shown`) || void 0, this.elPopup) {
|
|
278
|
-
this.el.dataset.topPopupOpened = "", this.elActiveByDefault || this.el.classList.remove("top-active"),
|
|
289
|
+
this.el.dataset.topPopupOpened = "", this.elActiveByDefault || this.el.classList.remove("top-active"), l.close(this.elPopup), setTimeout(() => this.mount(), this.options.transitionDuration);
|
|
279
290
|
return;
|
|
280
291
|
}
|
|
281
292
|
throw "Option useOriginal state allowed only elements .template";
|
|
@@ -286,7 +297,7 @@ class P extends w {
|
|
|
286
297
|
return;
|
|
287
298
|
for (this.options.useOriginal ? (this.elStartPosition = this.elPopup.closest(".top-popup-el-start-position"), this.elStartPosition || (this.elStartPosition = i.wrap(this.elPopup, "i"), this.elStartPosition.classList.add("top-popup-el-start-position", "hidden"))) : (this.elPopup = this.elPopup.cloneNode(!0), this.type === "selector" && !this.elPopup.matches(".template") && (this.elPopup.classList.remove("hidden"), this.elPopup.querySelector(":scope > .top-popup_content") || this.elPopup.classList.add("top-popup_content"), this.elPopup = i.wrap(this.elPopup, "div")), this.type === "html" && (this.elPopup.querySelector(":scope > .top-popup_content") || (this.elPopup.classList.add("top-popup_content"), this.elPopup = i.wrap(this.elPopup, "div"))), (this.type === "selector" && !this.elPopup.matches(".template") || this.type === "html" || this.type === "vue") && (i.querySelectorAllArray(this.elPopup, "[data-top-popup]").forEach((n) => {
|
|
288
299
|
n instanceof HTMLElement && (n.dataset.topPopupPosBy = "fixed");
|
|
289
|
-
}), i.querySelectorAllArray(this.elPopup, ".top-popup-wrapper").forEach((n) => n.remove()))),
|
|
300
|
+
}), i.querySelectorAllArray(this.elPopup, ".top-popup-wrapper").forEach((n) => n.remove()))), l.decoratorBeforeOpen(this), t && (this.options.class = t.classRef.value, t.transitionDurationRef.value !== void 0 && (this.options.transitionDuration = t.transitionDurationRef.value, this.elPopup instanceof HTMLElement && this.elPopup.style.setProperty(
|
|
290
301
|
"--top-popup-transition-delay",
|
|
291
302
|
this.options.transitionDuration + "ms"
|
|
292
303
|
))), this.elPopupInner = document.createElement("div"), this.elPopupInner.classList.add("top-popupPanel", "top-popup"); this.elPopup.firstChild; )
|
|
@@ -296,17 +307,17 @@ class P extends w {
|
|
|
296
307
|
this.elPopup.classList.add(...n);
|
|
297
308
|
}
|
|
298
309
|
this.options.notch && (this.elPopup.classList.add("with_notch"), this.elPopup.insertAdjacentHTML("beforeend", '<i class="notch notch-border"></i><i class="notch"></i>')), await this.vueOpen(), this.elPopupHeader = this.elPopupInner.querySelector(".top-popup_header"), this.elPopupWidget = this.elPopupInner.querySelector(".top-popup_widget"), this.elPopupBody = this.elPopupInner.querySelector(".top-popup_content"), this.elPopupFooter = this.elPopupInner.querySelector(".top-popup_footer");
|
|
299
|
-
const
|
|
300
|
-
if (this.options.isFullScreen && !
|
|
310
|
+
const e = !!this.elPopup.querySelector('[data-widget="search"]');
|
|
311
|
+
if (this.options.isFullScreen && !e) {
|
|
301
312
|
const n = E();
|
|
302
313
|
!this.elPopupHeader && n.Common.Close && (this.elPopupHeader = i.genEl("i", { class: "top-popup_header" }), this.elPopupInner.prepend(this.elPopupHeader), this.elPopupHeader.prepend(i.genEl("i", { class: "a closer" }, n.Common.Close)), this.elPopupHeader.append(i.genEl("i", { class: "top-popup_headerButton" })));
|
|
303
314
|
}
|
|
304
|
-
i.storage(this.elPopup, P.componentName, this), this.options.frontSelector && (this.elFront = document.querySelector(this.options.frontSelector)), this.elFront || (this.elFront = this.el.closest(".top-popup-front")), this.elFront || (this.elFront = document.body), this.elPopup instanceof HTMLElement && (this.elPopup.style.width = this.el.offsetWidth + "px", this.elPopup.style.height = this.el.offsetHeight + "px", this.elPopup.style.top = this.el.offsetTop + "px", this.elPopup.style.right = parseInt(this.el.style.right || "0") + "px", this.elPopup.style.bottom = parseInt(this.el.style.bottom || "0") + "px"), (
|
|
315
|
+
i.storage(this.elPopup, P.componentName, this), this.options.frontSelector && (this.elFront = document.querySelector(this.options.frontSelector)), this.elFront || (this.elFront = this.el.closest(".top-popup-front")), this.elFront || (this.elFront = document.body), this.elPopup instanceof HTMLElement && (this.elPopup.style.width = this.el.offsetWidth + "px", this.elPopup.style.height = this.el.offsetHeight + "px", this.elPopup.style.top = this.el.offsetTop + "px", this.elPopup.style.right = parseInt(this.el.style.right || "0") + "px", this.elPopup.style.bottom = parseInt(this.el.style.bottom || "0") + "px"), (s = this.el.parentElement) == null || s.insertBefore(this.elPopup, this.el), this.elPopup.classList.remove("template"), this.options.invertX && this.elPopup.classList.add("invert-x");
|
|
305
316
|
let o = !!this.el.closest(".modal-header");
|
|
306
317
|
o || (o = !!this.el.closest("#top_panel")), o || (o = !!this.el.closest("#secondmenu")), o && this.elPopup.classList.add("p-from-top"), setTimeout(() => {
|
|
307
318
|
var n;
|
|
308
319
|
return (n = this.elPopup) == null ? void 0 : n.classList.add("top-popup-wrapper-shown");
|
|
309
|
-
}), this.elFront && !this.elFront.matches("body") && (this.elFront.append(this.elPopup), this.shift.top = i.offset(this.el).top - this.el.offsetTop - i.offset(this.elFront).top, this.shift.left = i.offset(this.el).left - this.el.offsetLeft - i.offset(this.elFront).left, this.shift.top -= parseInt(this.el.style["margin-top"] || 0), this.shift.left -= parseInt(this.el.style["margin-left"] || 0), this.elPopup instanceof HTMLElement && (this.elPopup.style.top = parseInt(this.elPopup.style.top || "0") + this.shift.top + "px", this.elPopup.style.left = parseInt(this.elPopup.style.left || "0") + this.shift.left + "px")), this.$ && f.$ && this.$.trigger("aftershow.top-menu-popup", [f.$(this.elPopup)]), this.recalcPosition(), this.elPopup.setAttribute("tabindex", "0"), this.focus(),
|
|
320
|
+
}), this.elFront && !this.elFront.matches("body") && (this.elFront.append(this.elPopup), this.shift.top = i.offset(this.el).top - this.el.offsetTop - i.offset(this.elFront).top, this.shift.left = i.offset(this.el).left - this.el.offsetLeft - i.offset(this.elFront).left, this.shift.top -= parseInt(this.el.style["margin-top"] || 0), this.shift.left -= parseInt(this.el.style["margin-left"] || 0), this.elPopup instanceof HTMLElement && (this.elPopup.style.top = parseInt(this.elPopup.style.top || "0") + this.shift.top + "px", this.elPopup.style.left = parseInt(this.elPopup.style.left || "0") + this.shift.left + "px")), this.$ && f.$ && this.$.trigger("aftershow.top-menu-popup", [f.$(this.elPopup)]), this.recalcPosition(), this.elPopup.setAttribute("tabindex", "0"), this.focus(), l.decoratorAfterOpen(this), this.mountEvents();
|
|
310
321
|
}
|
|
311
322
|
async mountJQuery() {
|
|
312
323
|
f.$ && (this.$ = f.$(this.el));
|
|
@@ -321,7 +332,7 @@ class P extends w {
|
|
|
321
332
|
}, this.options.transitionDuration)));
|
|
322
333
|
}
|
|
323
334
|
mountEvents() {
|
|
324
|
-
this.addEventListenerWithUnmount(document, "mousedown", (t) => this.onMousedown(t)), this.elPopup && this.elPopupInner && (this.addEventListenerWithUnmount(this.elPopup, "focus", (t) => this.onFocus(t)), this.options.openByHover && (this.addEventListenerWithUnmount(this.elPopup, "mouseleave", (t) => this.onMouseleave(t)), this.addEventListenerWithUnmount(this.elPopupInner, "mouseleave", (t) => this.onMouseleave(t)))), this.options.isFullScreen && this.elPopupBody && this.addEventListenerWithUnmount(this.elPopupBody, "touchmove", (t) => this.onTouchmove(t));
|
|
335
|
+
this.addEventListenerWithUnmount(document, "mousedown", (t) => this.onMousedown(t)), this.openerIsInput ? this.onFocusCloseOthers() : this.elPopup && this.elPopupInner && (this.addEventListenerWithUnmount(this.elPopup, "focus", (t) => this.onFocus(t)), this.options.openByHover && (this.addEventListenerWithUnmount(this.elPopup, "mouseleave", (t) => this.onMouseleave(t)), this.addEventListenerWithUnmount(this.elPopupInner, "mouseleave", (t) => this.onMouseleave(t)))), this.options.isFullScreen && this.elPopupBody && this.addEventListenerWithUnmount(this.elPopupBody, "touchmove", (t) => this.onTouchmove(t));
|
|
325
336
|
}
|
|
326
337
|
/**
|
|
327
338
|
* Обработка клика вне окна
|
|
@@ -330,17 +341,32 @@ class P extends w {
|
|
|
330
341
|
if (!this.elPopup || !(t.target instanceof Element) || !this.isFirstClick || (this.isFirstClick = !1, setTimeout(() => this.isFirstClick = !0), t instanceof MouseEvent && t.button !== 0))
|
|
331
342
|
return;
|
|
332
343
|
let p = i.querySelectorVisibleLast(document.body, ":scope > .top-popup-wrapper");
|
|
333
|
-
p && p !== this.elPopup || t.target.closest(".top-popup-front") && (p = i.querySelectorVisibleLast(t.target.closest(".top-popup-front"), ":scope > .top-popup-wrapper"), p && p !== this.elPopup)
|
|
344
|
+
if (p && p !== this.elPopup || t.target.closest(".top-popup-front") && (p = i.querySelectorVisibleLast(t.target.closest(".top-popup-front"), ":scope > .top-popup-wrapper"), p && p !== this.elPopup))
|
|
345
|
+
return;
|
|
346
|
+
if (t.target.closest(`[data-top-popup-id="${this.options.id}"]`)) {
|
|
347
|
+
t.preventDefault();
|
|
348
|
+
return;
|
|
349
|
+
}
|
|
350
|
+
let e = t.target.closest("input, select, textarea, button, [tabindex]");
|
|
351
|
+
e === this.elPopup && (e = null);
|
|
352
|
+
const o = !e;
|
|
353
|
+
o && this.openerIsInput && t.preventDefault(), !this.elPopup.contains(t.target) && (this.elPopup.closest(".ui-dialog") && !t.target.closest(".ui-dialog") || l.decoratorIsIgnoreOuterClick(t) || l.close(this.elPopup, o));
|
|
334
354
|
}
|
|
335
355
|
/**
|
|
336
|
-
*
|
|
356
|
+
* Произошла фокусировка на этот popup
|
|
337
357
|
*/
|
|
338
358
|
onFocus(t) {
|
|
339
|
-
|
|
359
|
+
t.target instanceof Element && t.target.matches("input") || this.onFocusCloseOthers();
|
|
360
|
+
}
|
|
361
|
+
/**
|
|
362
|
+
* Закрыть другие Popup при фокусе на элемент формы в текущем
|
|
363
|
+
*/
|
|
364
|
+
onFocusCloseOthers() {
|
|
365
|
+
if (this.isClosed)
|
|
340
366
|
return;
|
|
341
|
-
|
|
342
|
-
var e,
|
|
343
|
-
(e = this.elPopup) != null && e.contains(
|
|
367
|
+
l.getAllVisible().forEach((p) => {
|
|
368
|
+
var e, o, r, s;
|
|
369
|
+
(e = this.elPopup) != null && e.contains(p) || ((o = this.popupParent) == null ? void 0 : o.elPopup) === p || ((s = (r = this.popupParent) == null ? void 0 : r.popupParent) == null ? void 0 : s.elPopup) === p || l.close(p);
|
|
344
370
|
});
|
|
345
371
|
}
|
|
346
372
|
/**
|
|
@@ -348,7 +374,7 @@ class P extends w {
|
|
|
348
374
|
*/
|
|
349
375
|
onMouseleave(t) {
|
|
350
376
|
setTimeout(() => {
|
|
351
|
-
this.elPopupInner && this.elPopupInner.matches(":hover") || !this.elPopup ||
|
|
377
|
+
this.elPopupInner && this.elPopupInner.matches(":hover") || !this.elPopup || l.close(this.elPopup);
|
|
352
378
|
}, 100);
|
|
353
379
|
}
|
|
354
380
|
/**
|
|
@@ -364,17 +390,17 @@ class P extends w {
|
|
|
364
390
|
}
|
|
365
391
|
// контроль за положением Popup, чтобы оно не вылезало за пределы документа
|
|
366
392
|
recalcPosition(t) {
|
|
367
|
-
var _,
|
|
393
|
+
var _, I;
|
|
368
394
|
if (!(this.elPopup instanceof HTMLElement)) return;
|
|
369
|
-
let p = t ?? this.options.p,
|
|
395
|
+
let p = t ?? this.options.p, e;
|
|
370
396
|
if (this.el instanceof HTMLElement)
|
|
371
397
|
switch (this.elPopup.style.height = this.el.offsetHeight + "px", this.elPopup.classList.remove("p0", "p1", "p2", "p3", "p4"), this.elPopup.classList.add("p" + p), this.options.posBy) {
|
|
372
398
|
case "left":
|
|
373
|
-
|
|
399
|
+
e = this.el.offsetLeft + parseInt(this.el.style["margin-left"] || "0"), e += this.shift.left, this.elPopup.style.left = e + "px";
|
|
374
400
|
break;
|
|
375
401
|
case "right":
|
|
376
402
|
if (!(this.el.offsetParent instanceof HTMLElement)) break;
|
|
377
|
-
|
|
403
|
+
e = this.el.offsetLeft + parseInt(this.el.style["margin-left"] || "0"), this.elPopup.style.right = this.el.offsetParent.offsetWidth - this.el.offsetWidth - e + "px";
|
|
378
404
|
break;
|
|
379
405
|
case "fixed":
|
|
380
406
|
this.addEventListenerWithUnmount(window, "resize", () => this.onResize()), this.onResize();
|
|
@@ -382,61 +408,61 @@ class P extends w {
|
|
|
382
408
|
default:
|
|
383
409
|
(_ = this.options.posBy) == null || _.append(this.elPopup);
|
|
384
410
|
}
|
|
385
|
-
const
|
|
386
|
-
this.elPopup.style.setProperty("--top-popup-height", this.elPopup.offsetHeight + "px"), this.elPopup.style.setProperty("--top-popup-right-bounding",
|
|
411
|
+
const o = this.elPopup.getBoundingClientRect();
|
|
412
|
+
this.elPopup.style.setProperty("--top-popup-height", this.elPopup.offsetHeight + "px"), this.elPopup.style.setProperty("--top-popup-right-bounding", o.right + "px"), this.elPopup.style.setProperty("--top-popup-bottom-bounding", o.bottom + "px"), this.elPopup.style.setProperty("--top-popup-top", o.top + "px"), this.elPopup.style.setProperty("--top-popup-left", o.left + "px"), this.elPopupInner instanceof HTMLElement && (this.elPopupInner.style.maxWidth = "unset", this.elPopupInner.style.maxHeight = "unset");
|
|
387
413
|
const r = {
|
|
388
414
|
top: !1,
|
|
389
415
|
right: !1,
|
|
390
416
|
bottom: !1,
|
|
391
417
|
left: !1
|
|
392
|
-
},
|
|
418
|
+
}, s = {
|
|
393
419
|
top: !1,
|
|
394
420
|
right: !1,
|
|
395
421
|
bottom: !1,
|
|
396
422
|
left: !1
|
|
397
423
|
};
|
|
398
|
-
let
|
|
399
|
-
p === 4 && (
|
|
400
|
-
const
|
|
424
|
+
let n = o.left > window.innerWidth / 2, h = o.top > window.innerHeight / 2;
|
|
425
|
+
p === 4 && (n = !n), p === 1 && (h = !h);
|
|
426
|
+
const c = (I = this.elPopupInner) == null ? void 0 : I.getBoundingClientRect();
|
|
401
427
|
let g, m;
|
|
402
|
-
const
|
|
403
|
-
|
|
404
|
-
const
|
|
428
|
+
const a = i.cssNumber(this.elPopup, "--top-popup-offset"), d = this.el.offsetHeight, v = this.el.offsetWidth;
|
|
429
|
+
c && (g = window.innerWidth - c.right, m = window.innerHeight - c.bottom, c.top < a && (r.top = !0, c.top < a * 2 - c.height + d && (s.top = !0)), g < a && (r.right = !0, g < a * 2 - c.width + v && (s.right = !0)), m < a && (r.bottom = !0, m < a * 2 - c.height + d && (s.bottom = !0)), c.left < a && (r.left = !0, c.left < a * 2 - c.width + d && (s.left = !0)));
|
|
430
|
+
const L = (x, u) => {
|
|
405
431
|
if (x === "x") {
|
|
406
|
-
if (!r.right && !r.left || (
|
|
407
|
-
return
|
|
408
|
-
r.right && (
|
|
432
|
+
if (!r.right && !r.left || (u === 1 || u === 3) && !s.right && !s.left && n)
|
|
433
|
+
return u;
|
|
434
|
+
r.right && (u === 0 || u === 2) && n && (u = 4), r.left && (u === 0 || u === 4) && n && (u = 2);
|
|
409
435
|
}
|
|
410
436
|
if (x === "y") {
|
|
411
|
-
if (!r.top && !r.bottom || (
|
|
412
|
-
return
|
|
413
|
-
r.top && (
|
|
437
|
+
if (!r.top && !r.bottom || (u === 2 || u === 4) && !s.top && !s.bottom && h)
|
|
438
|
+
return u;
|
|
439
|
+
r.top && (u === 0 || u === 1) && h && (u = 3), r.bottom && h && (u = 1);
|
|
414
440
|
}
|
|
415
|
-
return
|
|
441
|
+
return u;
|
|
416
442
|
};
|
|
417
443
|
let y = ["x", "y"];
|
|
418
444
|
(p === 0 || p === 1 || p === 3) && (y = ["y", "x"]);
|
|
419
445
|
let b = p ?? 0;
|
|
420
446
|
y.forEach((x) => {
|
|
421
|
-
b =
|
|
422
|
-
}), p = b, r.bottom && (p === 2 || p === 4) && h && this.elPopup.classList.add("invert-y"), r.right && (p === 0 || p === 1 || p === 3) && this.elPopup.classList.add("invert-x"), this.elPopup.classList.remove("p0", "p1", "p2", "p3", "p4"), this.elPopup.classList.add("p" + p), this.elPopupInner instanceof HTMLElement && (this.elPopupInner.style.maxWidth = "", this.elPopupInner.style.maxHeight = ""),
|
|
447
|
+
b = L(x, b);
|
|
448
|
+
}), p = b, r.bottom && (p === 2 || p === 4) && h && this.elPopup.classList.add("invert-y"), r.right && (p === 0 || p === 1 || p === 3) && this.elPopup.classList.add("invert-x"), this.elPopup.classList.remove("p0", "p1", "p2", "p3", "p4"), this.elPopup.classList.add("p" + p), this.elPopupInner instanceof HTMLElement && (this.elPopupInner.style.maxWidth = "", this.elPopupInner.style.maxHeight = ""), l.scrollToActive(this.elPopup);
|
|
423
449
|
}
|
|
424
450
|
onTouchmove(t) {
|
|
425
|
-
var p,
|
|
451
|
+
var p, e, o;
|
|
426
452
|
if (t.currentTarget instanceof HTMLElement && t.target instanceof HTMLElement) {
|
|
427
|
-
if (t.currentTarget.scrollWidth > t.currentTarget.offsetWidth || (p = t.target.parentElement) != null && p.scrollWidth && ((
|
|
453
|
+
if (t.currentTarget.scrollWidth > t.currentTarget.offsetWidth || (p = t.target.parentElement) != null && p.scrollWidth && ((e = t.target.parentElement) != null && e.offsetWidth) && t.target.parentElement.scrollWidth > ((o = t.target.parentElement) == null ? void 0 : o.offsetWidth))
|
|
428
454
|
return;
|
|
429
455
|
t.currentTarget.matches(".has_scroll") || t.preventDefault();
|
|
430
456
|
}
|
|
431
457
|
}
|
|
432
458
|
close() {
|
|
433
459
|
var t;
|
|
434
|
-
this.isClosed || (this.isClosed = !0, this.$ && f.$ && this.elPopup && this.$.trigger("afterclose.top-menu-popup", [f.$(this.elPopup)]), !
|
|
435
|
-
var
|
|
460
|
+
this.isClosed || (this.isClosed = !0, this.$ && f.$ && this.elPopup && this.$.trigger("afterclose.top-menu-popup", [f.$(this.elPopup)]), !l.noClose && (this.unmount(), (t = this.elPopup) == null || t.classList.add("top-popup-wrapper-closed"), setTimeout(() => {
|
|
461
|
+
var o, r, s, n, h;
|
|
436
462
|
if (this.vueClose(), !this.elPopup) return;
|
|
437
|
-
this.options.useOriginal ? (this.elPopup.removeAttribute("style"), this.elPopup.classList.remove("top-popup-wrapper-shown", "top-popup-wrapper-closed"), this.elPopup.classList.add("template"), (
|
|
438
|
-
const p =
|
|
439
|
-
|
|
463
|
+
this.options.useOriginal ? (this.elPopup.removeAttribute("style"), this.elPopup.classList.remove("top-popup-wrapper-shown", "top-popup-wrapper-closed"), this.elPopup.classList.add("template"), (o = this.elStartPosition) == null || o.append(this.elPopup), (r = this.elPopup.querySelector("div.top-popup_content.top-column")) == null || r.classList.remove("top-column"), (s = this.elPopup.querySelector(".notch-border")) == null || s.remove(), (n = this.elPopup.querySelector(".notch")) == null || n.remove(), (h = this.elPopupInner) == null || h.replaceWith(...this.elPopupInner.childNodes), i.storageClear(this.elPopup)) : (i.storageClear(this.elPopup), this.elPopup.remove(), delete this.elPopup);
|
|
464
|
+
const p = l.getAllVisible(), e = p.length && p[p.length - 1];
|
|
465
|
+
e ? l.getPopup(e).focus() : document.documentElement.classList.remove("with_popup");
|
|
440
466
|
}, this.options.transitionDuration)));
|
|
441
467
|
}
|
|
442
468
|
async vueOpen() {
|
|
@@ -449,11 +475,11 @@ class P extends w {
|
|
|
449
475
|
}
|
|
450
476
|
// получить vueConnectors компонента Popup
|
|
451
477
|
vueGetComponent() {
|
|
452
|
-
if (this.el instanceof HTMLElement && this.options.id) return
|
|
478
|
+
if (this.el instanceof HTMLElement && this.options.id) return l.vueConnectors.get(this.options.id);
|
|
453
479
|
}
|
|
454
480
|
}
|
|
455
481
|
k.init();
|
|
456
482
|
export {
|
|
457
483
|
P as TopLibPopup
|
|
458
484
|
};
|
|
459
|
-
//# sourceMappingURL=popup-
|
|
485
|
+
//# sourceMappingURL=popup-G7FYKscC.es.js.map
|