@topvisor/ui 1.0.10 → 1.0.11-fix-genDate

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (131) hide show
  1. package/.chunks/datepicker-BLzgmRwE.amd.js +248 -0
  2. package/.chunks/datepicker-BLzgmRwE.amd.js.map +1 -0
  3. package/.chunks/datepicker-C0DMEWk5.es.js +290 -0
  4. package/.chunks/datepicker-C0DMEWk5.es.js.map +1 -0
  5. package/.chunks/{forms-B6DA2YGV.es.js → forms-6Z3p_rjQ.es.js} +178 -177
  6. package/.chunks/forms-6Z3p_rjQ.es.js.map +1 -0
  7. package/.chunks/{forms-BOqxOjGU.amd.js → forms-VHBOI0dh.amd.js} +3 -3
  8. package/.chunks/forms-VHBOI0dh.amd.js.map +1 -0
  9. package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-CILdtVxX.es.js → listItem.vue_vue_type_script_setup_true_lang-D5L98ivn.es.js} +2 -2
  10. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-D5L98ivn.es.js.map +1 -0
  11. package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-DNqgt-07.amd.js → listItem.vue_vue_type_script_setup_true_lang-vJr-aboH.amd.js} +2 -2
  12. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-vJr-aboH.amd.js.map +1 -0
  13. package/.chunks/{menu.vue_vue_type_style_index_0_lang-teY0us7_.amd.js → menu.vue_vue_type_style_index_0_lang-CIdtKoU3.amd.js} +2 -2
  14. package/.chunks/menu.vue_vue_type_style_index_0_lang-CIdtKoU3.amd.js.map +1 -0
  15. package/.chunks/{menu.vue_vue_type_style_index_0_lang-DNejp6r9.es.js → menu.vue_vue_type_style_index_0_lang-KS0ds5K9.es.js} +2 -2
  16. package/.chunks/menu.vue_vue_type_style_index_0_lang-KS0ds5K9.es.js.map +1 -0
  17. package/.chunks/{notice-CEj6I4uX.es.js → notice-CPsMulgd.es.js} +65 -62
  18. package/.chunks/notice-CPsMulgd.es.js.map +1 -0
  19. package/.chunks/notice-CbblAkRb.amd.js +4 -0
  20. package/.chunks/notice-CbblAkRb.amd.js.map +1 -0
  21. package/.chunks/{popup-DBBa2Ki8.amd.js → popup-DiC5JWsJ.amd.js} +448 -448
  22. package/.chunks/popup-DiC5JWsJ.amd.js.map +1 -0
  23. package/.chunks/{popup-JjVFt_2L.es.js → popup-Wzy_7sXf.es.js} +491 -491
  24. package/.chunks/popup-Wzy_7sXf.es.js.map +1 -0
  25. package/.chunks/store-CX_6ZXhO.es.js.map +1 -1
  26. package/.chunks/store-esTid5oI.amd.js.map +1 -1
  27. package/README.md +86 -86
  28. package/assets/core.css +1 -1
  29. package/assets/forms.css +1 -1
  30. package/assets/notice.css +1 -1
  31. package/assets/themes/dark.css +1 -1
  32. package/assets/themes/light.css +1 -1
  33. package/charts/charts.amd.js +1 -1
  34. package/charts/charts.amd.js.map +1 -1
  35. package/charts/charts.js +1 -1
  36. package/charts/charts.js.map +1 -1
  37. package/components/project/selectorRegion/utils/utils.d.ts +1 -1
  38. package/core/app.amd.js +1 -1
  39. package/core/app.amd.js.map +1 -1
  40. package/core/app.js +3 -3
  41. package/core/app.js.map +1 -1
  42. package/core/utils/date.d.ts +8 -3
  43. package/forms/forms.amd.js +1 -1
  44. package/forms/forms.js +1 -1
  45. package/forms/helpers.amd.js.map +1 -1
  46. package/forms/helpers.js.map +1 -1
  47. package/formsExt/formsExt.amd.js +1 -1
  48. package/formsExt/formsExt.amd.js.map +1 -1
  49. package/formsExt/formsExt.js +2 -2
  50. package/formsExt/formsExt.js.map +1 -1
  51. package/icomoon/Read Me.txt +7 -7
  52. package/icomoon/Topvisor icons.json +5845 -5845
  53. package/icomoon/demo-files/demo.css +161 -161
  54. package/icomoon/demo-files/demo.js +30 -30
  55. package/icomoon/demo.html +3379 -3379
  56. package/icomoon/fonts/Topvisor-2.svg +263 -263
  57. package/icomoon/style.css +740 -740
  58. package/package.json +33 -33
  59. package/popup/popup.amd.js +1 -1
  60. package/popup/popup.amd.js.map +1 -1
  61. package/popup/popup.js +2 -2
  62. package/popup/popup.js.map +1 -1
  63. package/popup/worker.amd.js +1 -1
  64. package/popup/worker.amd.js.map +1 -1
  65. package/popup/worker.js +2 -2
  66. package/popup/worker.js.map +1 -1
  67. package/project/project.amd.js +1 -1
  68. package/project/project.amd.js.map +1 -1
  69. package/project/project.js +3 -3
  70. package/project/project.js.map +1 -1
  71. package/require/css.amd.js +12 -12
  72. package/tabs/tabs.amd.js.map +1 -1
  73. package/tabs/tabs.js.map +1 -1
  74. package/tabsView/tabsView.amd.js +1 -1
  75. package/tabsView/tabsView.amd.js.map +1 -1
  76. package/tabsView/tabsView.js +1 -1
  77. package/tabsView/tabsView.js.map +1 -1
  78. package/utils/check.amd.js +1 -1
  79. package/utils/check.amd.js.map +1 -1
  80. package/utils/check.js +6 -6
  81. package/utils/check.js.map +1 -1
  82. package/utils/clipboard.amd.js.map +1 -1
  83. package/utils/clipboard.js.map +1 -1
  84. package/utils/date.amd.js +1 -1
  85. package/utils/date.js +1 -1
  86. package/utils/device.amd.js +1 -1
  87. package/utils/device.js +1 -1
  88. package/utils/dom.amd.js.map +1 -1
  89. package/utils/dom.js.map +1 -1
  90. package/utils/image.amd.js.map +1 -1
  91. package/utils/image.js.map +1 -1
  92. package/utils/keyboard.amd.js.map +1 -1
  93. package/utils/keyboard.js.map +1 -1
  94. package/utils/lodash.amd.js +1 -1
  95. package/utils/lodash.js +1 -1
  96. package/utils/number.amd.js.map +1 -1
  97. package/utils/number.js.map +1 -1
  98. package/utils/price.amd.js +1 -1
  99. package/utils/price.amd.js.map +1 -1
  100. package/utils/price.js +1 -1
  101. package/utils/price.js.map +1 -1
  102. package/utils/route.amd.js.map +1 -1
  103. package/utils/route.js.map +1 -1
  104. package/utils/scroll.amd.js.map +1 -1
  105. package/utils/scroll.js.map +1 -1
  106. package/utils/searchers.amd.js.map +1 -1
  107. package/utils/searchers.js.map +1 -1
  108. package/utils/string.amd.js +1 -1
  109. package/utils/string.amd.js.map +1 -1
  110. package/utils/string.js +1 -1
  111. package/utils/string.js.map +1 -1
  112. package/utils/system.amd.js.map +1 -1
  113. package/utils/system.js.map +1 -1
  114. package/utils/url.amd.js.map +1 -1
  115. package/utils/url.js.map +1 -1
  116. package/web-types.json +89 -89
  117. package/.chunks/datepicker-ByWpmP7C.amd.js +0 -248
  118. package/.chunks/datepicker-ByWpmP7C.amd.js.map +0 -1
  119. package/.chunks/datepicker-CqM_Jrot.es.js +0 -290
  120. package/.chunks/datepicker-CqM_Jrot.es.js.map +0 -1
  121. package/.chunks/forms-B6DA2YGV.es.js.map +0 -1
  122. package/.chunks/forms-BOqxOjGU.amd.js.map +0 -1
  123. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-CILdtVxX.es.js.map +0 -1
  124. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-DNqgt-07.amd.js.map +0 -1
  125. package/.chunks/menu.vue_vue_type_style_index_0_lang-DNejp6r9.es.js.map +0 -1
  126. package/.chunks/menu.vue_vue_type_style_index_0_lang-teY0us7_.amd.js.map +0 -1
  127. package/.chunks/notice-CEj6I4uX.es.js.map +0 -1
  128. package/.chunks/notice-DTreV5av.amd.js +0 -4
  129. package/.chunks/notice-DTreV5av.amd.js.map +0 -1
  130. package/.chunks/popup-DBBa2Ki8.amd.js.map +0 -1
  131. package/.chunks/popup-JjVFt_2L.es.js.map +0 -1
@@ -1,5 +1,5 @@
1
- import { C as f, e as P } from "./forms-B6DA2YGV.es.js";
2
- import r from "../utils/dom.js";
1
+ import { C as f, e as P } from "./forms-6Z3p_rjQ.es.js";
2
+ import n from "../utils/dom.js";
3
3
  import { TopPopupWorker as s } from "../popup/worker.js";
4
4
  class x {
5
5
  static componentName = "Top";
@@ -28,11 +28,11 @@ class x {
28
28
  }
29
29
  // получить инициированный компонент
30
30
  static getComponent(t, p) {
31
- return r.storage(t, "#" + p);
31
+ return n.storage(t, "#" + p);
32
32
  }
33
33
  // устанвоить компонент
34
34
  _setComponent(t) {
35
- r.storage(t, "#" + this.componentName, this);
35
+ n.storage(t, "#" + this.componentName, this);
36
36
  }
37
37
  // функция подключения компонента
38
38
  mount() {
@@ -40,7 +40,7 @@ class x {
40
40
  }
41
41
  // функция отключения компонента
42
42
  unmount() {
43
- r.storage(this.el, "#" + this.componentName, null), this.unmountEls.forEach((t) => {
43
+ n.storage(this.el, "#" + this.componentName, null), this.unmountEls.forEach((t) => {
44
44
  t.remove();
45
45
  }), this.unmountEls = [], this.unmountEvents.forEach((t) => {
46
46
  t.el.removeEventListener(t.type, t.listener, t.options);
@@ -56,13 +56,13 @@ class x {
56
56
  }
57
57
  // указание новые события, которые должны будут удалиться после unmount
58
58
  registerEventForUnmount(t, p, o, e) {
59
- const i = {
59
+ const r = {
60
60
  el: t,
61
61
  type: p,
62
62
  listener: o,
63
63
  options: e
64
64
  };
65
- this.unmountEvents.push(i);
65
+ this.unmountEvents.push(r);
66
66
  }
67
67
  // функция перенастройки уже подключенного компонента
68
68
  reInit(t) {
@@ -106,8 +106,8 @@ class w {
106
106
  if (!e || p.matches(".top-popup-noCloser"))
107
107
  return;
108
108
  if (p.getAttribute("href") === "." && t.preventDefault(), t.target.matches("[data-top-popup]")) {
109
- const i = t.target.closest("ul"), n = t.target.closest("a, .a");
110
- i && ((o = i.querySelector("a.top-active, .a.top-active")) == null || o.classList.remove("top-active")), n && n.classList.add("top-active");
109
+ const r = t.target.closest("ul"), i = t.target.closest("a, .a");
110
+ r && ((o = r.querySelector("a.top-active, .a.top-active")) == null || o.classList.remove("top-active")), i && i.classList.add("top-active");
111
111
  return;
112
112
  }
113
113
  s.close(e);
@@ -121,7 +121,7 @@ class w {
121
121
  * Глобальный обработчик нажатия кнопки на клавиатуре
122
122
  */
123
123
  static onkeydown(t) {
124
- var e, i;
124
+ var e, r;
125
125
  if (!(t.target instanceof HTMLElement)) return;
126
126
  const p = t.target.closest(".top-popup-wrapper");
127
127
  if (!p)
@@ -133,19 +133,19 @@ class w {
133
133
  break;
134
134
  case "Enter":
135
135
  if (!o) {
136
- if (r.querySelectorVisible(p, ".preloader"))
136
+ if (n.querySelectorVisible(p, ".preloader"))
137
137
  break;
138
- const c = r.querySelectorVisible(p, ".top-popup_footer .go, .top-popup_footer [data-action]");
138
+ const c = n.querySelectorVisible(p, ".top-popup_footer .go, .top-popup_footer [data-action]");
139
139
  if (c instanceof HTMLElement) {
140
140
  c.click();
141
141
  break;
142
142
  }
143
- const m = r.querySelectorVisibleLast(p, ".top-popup_footer .top-button");
143
+ const m = n.querySelectorVisibleLast(p, ".top-popup_footer .top-button");
144
144
  m instanceof HTMLElement && m.click();
145
145
  break;
146
146
  }
147
- const n = r.querySelectorVisible(p, "li > a.top-active");
148
- n && n.getAttribute("href") && (t.preventDefault(), location.href = n.getAttribute("href"));
147
+ const i = n.querySelectorVisible(p, "li > a.top-active");
148
+ i && i.getAttribute("href") && (t.preventDefault(), location.href = i.getAttribute("href"));
149
149
  const u = p.querySelector("li > .top-active");
150
150
  u instanceof HTMLElement && u.click();
151
151
  break;
@@ -155,7 +155,7 @@ class w {
155
155
  case "ArrowLeft":
156
156
  if (!o)
157
157
  break;
158
- t.key === "ArrowRight" || t.key === "ArrowLeft" ? r.querySelectorVisible(
158
+ t.key === "ArrowRight" || t.key === "ArrowLeft" ? n.querySelectorVisible(
159
159
  p,
160
160
  "ul.top-popup_content > li:not(.top-popup_liNoSelectable) > .top-active > .top-popup_listMore"
161
161
  ) && t.preventDefault() : t.preventDefault();
@@ -165,7 +165,7 @@ class w {
165
165
  if (c instanceof HTMLElement)
166
166
  return c.click();
167
167
  }
168
- const d = r.querySelectorAllVisible(p, "ul.top-popup_content > li:not(.top-popup_liNoSelectable)"), h = d.length;
168
+ const d = n.querySelectorAllVisible(p, "ul.top-popup_content > li:not(.top-popup_liNoSelectable)"), h = d.length;
169
169
  if (!h)
170
170
  return;
171
171
  let a = -1;
@@ -173,457 +173,457 @@ class w {
173
173
  return t.target.matches("input") ? void 0 : s.close(p);
174
174
  if (t.key === "ArrowRight" && a === h)
175
175
  return;
176
- a < 0 && (a = h - 1), a > h - 1 && (a = 0), p.querySelectorAll("ul.top-popup_content > li > .top-active").forEach((c) => c.classList.remove("top-active")), (i = d[a].querySelector(":scope > a, :scope > .a")) == null || i.classList.add("top-active"), s.scrollToActive(p);
176
+ a < 0 && (a = h - 1), a > h - 1 && (a = 0), p.querySelectorAll("ul.top-popup_content > li > .top-active").forEach((c) => c.classList.remove("top-active")), (r = d[a].querySelector(":scope > a, :scope > .a")) == null || r.classList.add("top-active"), s.scrollToActive(p);
177
177
  break;
178
178
  }
179
179
  }
180
180
  }
181
- const y = `:root {\r
182
- --top-popup-z-index: 200000;\r
183
- --top-popup-transition-delay: 100ms;\r
184
- \r
185
- --top-popup-background-color: var(--color-layout-front-1);\r
186
- --top-popup-background-color-hover: var(--color-layout-front-3);\r
187
- --top-popup-background-color-active: var(--color-layout-front-4);\r
188
- \r
189
- --top-popup-border-color: var(--color-line-2-opacity);\r
190
- --top-popup-title-background-color: var(--color-layer-1);\r
191
- \r
192
- /* суммарный отсуп от каря popup до элемента */\r
193
- --top-popup-content-padding: calc(var(--top-popup-list-padding) + var(--top-popup-listItem-padding));\r
194
- \r
195
- /* списки */\r
196
- --top-popup-list-padding: var(--top-padding-2);\r
197
- \r
198
- --top-popup-listItem-radius: var(--top-radius-2);\r
199
- --top-popup-listItem-padding: var(--top-padding-2);\r
200
- }\r
201
- \r
202
- .top-popup-front { position: relative; }\r
203
- \r
204
- .top-popup-wrapper {\r
205
- /* см. recalcPosition() */\r
206
- --top-popup-height: 0px;\r
207
- --top-popup-right-bounding: 0px;\r
208
- --top-popup-bottom-bounding: 0px;\r
209
- --top-popup-top: 0px;\r
210
- --top-popup-right: calc(100vw - var(--top-popup-right-bounding));\r
211
- --top-popup-bottom: calc(var(--100vh) - var(--top-popup-bottom-bounding));\r
212
- --top-popup-left: 0px;\r
213
- \r
214
- text-align: initial; white-space: normal; word-break: normal;\r
215
- position: absolute; z-index: 200000;\r
216
- }\r
217
- \r
218
- .top-popup-wrapper:not(.top-popup-wrapper-shown) { overflow: hidden; }\r
219
- \r
220
- /* top-popupPanel */\r
221
- .top-popupPanel {\r
222
- cursor: default;\r
223
- box-shadow: var(--top-shadow-b);\r
224
- border-radius: 14px;\r
225
- background: var(--top-popup-background-color);\r
226
- position: absolute; overflow: hidden;\r
227
- display: flex; flex-direction: column;\r
228
- }\r
229
- \r
230
- /* position */\r
231
- .top-popup-wrapper > * {\r
232
- opacity: 0;\r
233
- transition: opacity var(--top-popup-transition-delay) linear, transform var(--top-popup-transition-delay) linear;\r
234
- }\r
235
- \r
236
- .top-popup-wrapper.p0 > * { transform: translateY(-8px); }\r
237
- \r
238
- .top-popup-wrapper.p1 > * { transform: translateY(8px); }\r
239
- \r
240
- .top-popup-wrapper.p2 > * { transform: translateX(8px); }\r
241
- \r
242
- .top-popup-wrapper.p3 > * { transform: translateY(8px); }\r
243
- \r
244
- .top-popup-wrapper.p4 > * { transform: translateX(-8px); }\r
245
- \r
246
- .top-popup-wrapper-shown:not(.top-popup-wrapper-closed) > * {opacity: 1;transform: translate(0, 0) !important;}\r
247
- \r
248
- .top-popup-wrapper.p0 > .top-popup { top: calc(-16px); left: calc(0px - 8px); }\r
249
- \r
250
- .top-popup-wrapper.p1 > .top-popup { bottom: calc(100% + 8px); }\r
251
- \r
252
- .top-popup-wrapper.p2 > .top-popup { left: calc(100% + 8px); }\r
253
- \r
254
- .top-popup-wrapper.p3 > .top-popup { top: calc(100% + 8px); }\r
255
- \r
256
- .top-popup-wrapper.p4 > .top-popup { right: calc(100% + 8px); }\r
257
- \r
258
- .top-popup-wrapper.p2 > .top-popup,\r
259
- .top-popup-wrapper.p4 > .top-popup { margin-top: -10px; }\r
260
- \r
261
- .top-popup-wrapper.p1.with_notch > .top-popup { margin-bottom: 5px; }\r
262
- \r
263
- .top-popup-wrapper.p2.with_notch > .top-popup { margin-left: 5px; }\r
264
- \r
265
- .top-popup-wrapper.p3.with_notch > .top-popup { margin-top: 5px; }\r
266
- \r
267
- .top-popup-wrapper.p4.with_notch > .top-popup { margin-right: 5px; }\r
268
- \r
269
- .top-popup-wrapper.invert-x > .top-popup { right: 0; }\r
270
- \r
271
- .top-popup-wrapper.invert-y > .top-popup { bottom: 0; }\r
272
- \r
273
- /* notch */\r
274
- .top-popup-wrapper > .notch { border: 7.4px solid transparent; position: absolute; display: block; }\r
275
- \r
276
- .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% }\r
277
- \r
278
- .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%; }\r
279
- \r
280
- .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%; }\r
281
- \r
282
- .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%; }\r
283
- \r
284
- .top-popup-wrapper.p1 > .notch-border { border-top-color: rgba(0, 0, 0, 0.05); margin-bottom: 6px; }\r
285
- \r
286
- .top-popup-wrapper.p2 > .notch-border { border-right-color: rgba(0, 0, 0, 0.05); margin-left: 6px; }\r
287
- \r
288
- .top-popup-wrapper.p3 > .notch-border { border-bottom-color: rgba(0, 0, 0, 0.05); margin-top: 6px; }\r
289
- \r
290
- .top-popup-wrapper.p4 > .notch-border { border-left-color: rgba(0, 0, 0, 0.05); margin-right: 6px; }\r
291
- \r
292
- /* common */\r
293
- .top-popup_header,\r
294
- .top-popup_content,\r
295
- .top-popup_footer { font-size: 14px; }\r
296
- \r
297
- .top-popup_header,\r
298
- .top-popup_footer { display: flex; align-items: center; justify-content: space-between; }\r
299
- \r
300
- /* header */\r
301
- .top-popup_header {\r
302
- color: var(--color-text-1);\r
303
- border-bottom: 1px solid var(--top-popup-border-color);\r
304
- padding: var(--top-padding-3);\r
305
- font-weight: 600;\r
306
- }\r
307
- \r
308
- .top-popup_header > * { font-weight: 400; }\r
309
- \r
310
- .top-popup_header > .a { cursor: pointer;}\r
311
- \r
312
- .top-popup_header > .a:hover { color: var(--color-text-primary); }\r
313
- \r
314
- .top-popup_headerButton { width: 60px; }\r
315
- \r
316
- /* widget */\r
317
- .top-popup_widget {\r
318
- padding: var(--top-padding-2) var(--top-padding-2) 0 var(--top-padding-2);\r
319
- }\r
320
- \r
321
- /* content */\r
322
- .top-popup_content {\r
323
- margin: 0;\r
324
- flex-grow: 1;\r
325
- overflow-y: auto;\r
326
- display: flex;\r
327
- flex-direction: column;\r
328
- gap: var(--top-gap-4);\r
329
- \r
330
- -webkit-overflow-scrolling: touch;\r
331
- }\r
332
- \r
333
- div.top-popup_content {\r
334
- color: var(--color-text-1);\r
335
- padding: var(--top-popup-content-padding);\r
336
- }\r
337
- \r
338
- div.top-popup_content > * { flex-shrink: 0; }\r
339
- \r
340
- div.top-popup_content > .top-button { margin: 0; }\r
341
- \r
342
- div.top-popup_content .top-unwrap {\r
343
- --top-unwrap-x: var(--top-popup-content-padding);\r
344
- }\r
345
- \r
346
- ul.top-popup_content {\r
347
- color: var(--color-text-1);\r
348
- padding: var(--top-popup-list-padding);\r
349
- gap: 2px;\r
350
- }\r
351
- \r
352
- ul.top-popup_content .top-unwrap {\r
353
- --top-unwrap-x: var(--top-popup-list-padding);\r
354
- }\r
355
- \r
356
- .top-popup_listItem {\r
357
- border-radius: var(--top-popup-listItem-radius);\r
358
- padding: var(--top-popup-listItem-padding);\r
359
- line-height: 1 !important;\r
360
- }\r
361
- \r
362
- ul.top-popup_content li { margin: 0; list-style: none; display: flex; position: relative }\r
363
- \r
364
- ul.top-popup_content li > * { flex-grow: 1; }\r
365
- \r
366
- ul.top-popup_content li > a:not(.top-button),\r
367
- ul.top-popup_content li > .a {\r
368
- cursor: pointer;\r
369
- box-sizing: border-box;\r
370
- border-radius: var(--top-popup-listItem-radius);\r
371
- background: var(--top-popup-background-color);\r
372
- padding: var(--top-popup-listItem-padding);\r
373
- color: var(--color-text-1) !important; font-size: 14px; font-weight: normal !important; text-decoration: none !important; font-style: normal;\r
374
- line-height: 1 !important;\r
375
- display: flex; flex: 1 1 100%; align-items: center;\r
376
- transition: background-color 0.1s ease-in-out;\r
377
- }\r
378
- \r
379
- .top-popup-wrapper-no_animate ul.top-popup_content li > a:not(.top-button),\r
380
- .top-popup-wrapper-no_animate ul.top-popup_content li > .a { transition: none; }\r
381
- \r
382
- ul.top-popup_content li > a:not(.top-button):hover,\r
383
- ul.top-popup_content li > .a:hover { background: var(--top-popup-background-color-hover); }\r
384
- \r
385
- ul.top-popup_content li > a:not(.top-button).top-active,\r
386
- ul.top-popup_content li > .a.top-active {\r
387
- --top-icon-color: var(--color-text-primary) !important;\r
388
- \r
389
- background: var(--top-popup-background-color-active);\r
390
- }\r
391
- \r
392
- .top-popup_content + .top-popup_content { padding-top: 0; }\r
393
- \r
394
- /* listTitle */\r
395
- .top-popup_listItem-title {\r
396
- background: var(--color-layer-1);\r
397
- color: var(--color-text-1); font-size: 12px;\r
398
- }\r
399
- \r
400
- /* listDelimiter */\r
401
- .top-popup_listItem-delimiter {\r
402
- border-radius: 3px;\r
403
- background: var(--top-popup-border-color);\r
404
- height: 1px;\r
405
- padding: 0;\r
406
- margin: 4px;\r
407
- }\r
408
- \r
409
- /* listMore */\r
410
- .top-popup_listMore {\r
411
- font-size: 20px;\r
412
- margin: calc(0px - var(--top-popup-listItem-padding)) calc(0px - var(--top-popup-listItem-padding) / 2) calc(0px - var(--top-popup-listItem-padding)) 0;\r
413
- }\r
414
- \r
415
- .top-popup_listMore.top-button { margin: 0; }\r
416
- \r
417
- ul.top-popup_content li > .a.top-popup_listMore {\r
418
- text-align: center;\r
419
- flex-basis: 10px;\r
420
- }\r
421
- \r
422
- ul.top-popup_content li > .a.top-popup_listMore:before { color: var(--color-text-2); }\r
423
- \r
424
- ul.top-popup_content li > * > .top-popup_listMore {\r
425
- margin-left: auto;\r
426
- color: var(--color-layer-4);\r
427
- font-size: 14px;\r
428
- }\r
429
- \r
430
- ul.top-popup_content li > * > i.top-popup_listMore:hover,\r
431
- ul.top-popup_content li > * > i.top-popup_listMore.top-active { color: var(--color-text-primary); }\r
432
- \r
433
- ul.top-popup_content li > * > i.top-popup_listMore:before {\r
434
- transform: rotate(90deg);\r
435
- display: block;\r
436
- }\r
437
- \r
438
- ul.top-popup_content li a.close { background: none !important; }\r
439
- \r
440
- /* data-top-icon */\r
441
- .top-popup_content > [data-top-icon]:before {\r
442
- --top-icon-size: 20px;\r
443
- }\r
444
- \r
445
- ul.top-popup_content li > [data-top-icon]:not(.top-button) {\r
446
- --top-icon-color: var(--color-text-3);\r
447
- --top-icon-size: 20px;\r
448
- --top-icon-width: 20px;\r
449
- }\r
450
- \r
451
- ul.top-popup_content li > [data-top-icon]:not(.top-button):before {\r
452
- height: 1rem; margin-right: 8px; transition: color 0.1s;\r
453
- }\r
454
- \r
455
- ul.top-popup_content li:hover > [data-top-icon]:not(.top-button) {\r
456
- --top-icon-color: var(--color-text-2);\r
457
- }\r
458
- \r
459
- /* footer */\r
460
- .top-popup_footer {\r
461
- /*padding: var(--top-popup-list-padding);*/\r
462
- padding: var(--top-padding-3);\r
463
- border-top: 1px solid var(--top-popup-border-color);\r
464
- display: flex;\r
465
- gap: var(--top-gap-2);\r
466
- justify-content: flex-end;\r
467
- }\r
468
- \r
469
- /* footerSupportLink */\r
470
- .top-popup_footerSupportLink {\r
471
- margin-right: auto;\r
472
- }\r
473
- \r
474
- /* Виджеты */\r
475
- .top-popup > [data-widget] { padding: 0 var(--top-popup-list-padding); }\r
476
- \r
477
- .top-popup > [data-widget] + hr { margin: 0 var(--top-popup-list-padding); }\r
478
- \r
479
- .top-popup .placeholder {\r
480
- border: 1px solid #E0D9D9 !important; border-right: none !important; border-left: none !important; background: #F9F9F9 !important; margin: -1px 0; z-index: 1;\r
481
- position: relative;\r
482
- }\r
483
- \r
484
- /* компоненты */\r
485
- .top-popup-wrapper.simple_list > .top-popup { min-width: 0; white-space: nowrap; }\r
486
- \r
487
- .top-popup_content .top-column { display: flex; flex-direction: column; gap: 4px; }\r
488
- \r
489
- html .top-popup .top-popup_content li > .top-button {\r
490
- margin: calc(var(--top-popup-listItem-padding) / 2) var(--top-popup-listItem-padding);\r
491
- }\r
492
- \r
493
- .top-popup li .check_all,\r
494
- .top-popup li .clear_all { cursor: pointer; color: var(--color-text-primary); padding: 8px; display: inline-block; }\r
495
- \r
496
- .top-popup li .check_all:hover,\r
497
- .top-popup li .clear_all:hover { text-decoration: underline; }\r
498
- \r
499
- .top-popup li .clear_all { display: none; }\r
500
- \r
501
- /* table */\r
502
- .top-popup_content table { margin: -9px 0; }\r
503
- \r
504
- .top-popup_content table td,\r
505
- .top-popup_content table th { padding: 9px var(--top-popup-listItem-padding) 9px 0; vertical-align: top; }\r
506
- \r
507
- .top-popup_content table th { width: 40%; font-weight: 600; white-space: nowrap; }\r
508
- \r
509
- /* формы */\r
510
- ul.top-popup_content .a > [type="checkbox"],\r
511
- ul.top-popup_content .a > [type="radio"] { margin: -8px 0 -8px auto; }\r
512
- \r
513
- /* deprecated */\r
514
- ul.top-popup_content a > [class*=icon],\r
515
- ul.top-popup_content i.a > [class*=icon] {\r
516
- transition: 0.1s;\r
517
- }\r
518
- \r
519
- .top-popup .buttons { border-radius: 0 0 4px 4px; border-top: 1px solid #BDC3C7; background: #ECF0F1; padding: 10px 15px; margin: 10px -15px -10px -15px; white-space: nowrap; }\r
520
- \r
521
- .top-popup_footer [class*=btn]:not(.btn-transparent) { min-width: 100px; padding: 5px 14px; margin-left: 10px; }\r
522
- \r
523
- .top-popup_footer [class*=btn]:first-child { margin-left: 0; }\r
524
- \r
525
- .top-popup_footer .btn.full_width { margin: 0; flex-grow: 1; }\r
526
- `, _ = `:root {\r
527
- --top-popup-list-padding: 0px;\r
528
- \r
529
- --top-popup-listItem-radius: 0px;\r
530
- --top-popup-listItem-padding: var(--top-padding-4);\r
531
- }\r
532
- \r
533
- html.with_popup { background: #808080; }\r
534
- \r
535
- .top-popup-wrapper {\r
536
- --top-popup-footer-offset: 25px;\r
537
- \r
538
- width: auto !important; height: auto !important;\r
539
- position: fixed; top: 0 !important; right: 0 !important; left: 0 !important; overflow: hidden;\r
540
- transition: background 0.3s;\r
541
- }\r
542
- \r
543
- .top-popup-wrapper-shown:not(.top-popup-wrapper-closed) { background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(1px); }\r
544
- .top-popup-wrapper-shown:not(.top-popup-wrapper-closed) > .top-popup { opacity: 1 !important; }\r
545
- \r
546
- .top-popup {\r
547
- 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;\r
548
- top: auto !important; right: 0 !important; bottom: var(--toolbar-height, 0px) !important; left: 0 !important;\r
549
- display: flex; flex-direction: column;\r
550
- \r
551
- /* невозможно опустить элемент вниз за экран на 100%, fix: opacity и translateY(80%) */\r
552
- transform: translateY(80%);\r
553
- \r
554
- transition: opacity 0.3s, transform 0.3s;\r
555
- }\r
556
- \r
557
- /* from top */\r
558
- .top-popup-wrapper.p-from-top {\r
559
- --top-popup-footer-offset: 0px;\r
560
- \r
561
- top: var(--header-height, 0px) !important;\r
562
- }\r
563
- .with_dialog .top-popup-wrapper.p-from-top { top: 50px !important; }\r
564
- .top-popup-wrapper.p-from-top > .top-popup {\r
565
- border-radius: 0 0 8px 8px; max-height: calc(100% - 24px); top: 0 !important; bottom: auto !important;\r
566
- transform: translateY(calc(-100% - 24px));\r
567
- }\r
568
- \r
569
- /* widget */\r
570
- .top-popup_widget { padding: var(--top-padding-2);}\r
571
- .top-popup_widget:not(.p-from-top) { order: 10; }\r
572
- \r
573
- /* content */\r
574
- ul.top-popup_content {\r
575
- gap: 0;\r
576
- }\r
577
- ul.top-popup_content li:not(:last-child) { border-bottom: 1px solid var(--top-popup-border-color); }\r
578
- \r
579
- .top-popup-wrapper.top-style_alt > .top-popup > ul > li { border-bottom: none; }\r
580
- \r
581
- /* footer */\r
582
- .top-popup_footer {\r
583
- flex-direction: column-reverse;\r
584
- }\r
585
- .top-popup_footer > .top-button {\r
586
- --top-forms-base-height: var(--top-forms-base-height_l);\r
587
- \r
588
- width: 100%;\r
589
- }\r
590
- \r
591
- /* listTitle */\r
592
- ul.top-popup_content .top-popup_listItem-title {\r
593
- --top-popup-padding-v: 12px;\r
594
- }\r
595
- \r
596
- /* listDelimiter */\r
597
- ul.top-popup_content .top-popup_listItem-delimiter { background: var(--color-line-1-opacity); height: 4px; margin: 0; }\r
598
- ul.top-popup_content li:first-child > .top-popup_listItem-delimiter { border-top: 1px solid var(--top-popup-border-color); }\r
599
- `, L = `html:not(.with_dialog) { margin-right: 0 !important; }\r
600
- \r
601
- .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)); }\r
602
- .top-popup-wrapper.invert-x > .top-popup { max-width: calc(100vw - var(--top-popup-right) - 16px); }\r
603
- .top-popup-wrapper.invert-y > .top-popup { max-height: calc(100vh - var(--top-popup-bottom) - 16px); }\r
604
- \r
605
- /* position */\r
606
- .top-popup-wrapper.p1 > .top-popup { max-height: calc(var(--top-popup-top) - var(--header-height, 0px) - 16px); }\r
607
- .top-popup-wrapper.p3 > .top-popup { max-height: calc(var(--top-popup-bottom) - 16px); }\r
608
- .top-popup-wrapper.p2 > .top-popup { max-width: calc(var(--top-popup-right) - 16px); }\r
609
- .top-popup-wrapper.p4 > .top-popup { max-width: calc(var(--top-popup-left) - 16px); }\r
610
- \r
611
- /* notch */\r
612
- .top-popup-wrapper.p1.with_notch > .top-popup,\r
613
- .top-popup-wrapper.p3.with_notch > .top-popup { margin-left: -16px !important; }\r
614
- .top-popup-wrapper.p1.with_notch > .notch,\r
615
- .top-popup-wrapper.p3.with_notch > .notch { margin-left: -8px !important; }\r
616
- \r
617
- .top-popup-wrapper.p1.with_notch.invert-x,\r
618
- .top-popup-wrapper.p3.with_notch.invert-x { margin-left: 3px !important; }\r
619
- .top-popup-wrapper.p1.with_notch.invert-x > .notch,\r
620
- .top-popup-wrapper.p3.with_notch.invert-x > .notch { margin-left: -9px !important; }\r
621
- \r
622
- /* listMore */\r
623
- ul.top-popup_content li > * > i.top-popup_listMore { visibility: hidden; transition: none; }\r
624
- ul.top-popup_content li:hover > * > i.top-popup_listMore,\r
625
- ul.top-popup_content li > *.top-active > i.top-popup_listMore,\r
626
- ul.top-popup_content li > * > i.top-popup_listMore.top-active { visibility: visible; }\r
181
+ const y = `:root {
182
+ --top-popup-z-index: 200000;
183
+ --top-popup-transition-delay: 100ms;
184
+
185
+ --top-popup-background-color: var(--color-layout-front-1);
186
+ --top-popup-background-color-hover: var(--color-layout-front-3);
187
+ --top-popup-background-color-active: var(--color-layout-front-4);
188
+
189
+ --top-popup-border-color: var(--color-line-2-opacity);
190
+ --top-popup-title-background-color: var(--color-layer-1);
191
+
192
+ /* суммарный отсуп от каря popup до элемента */
193
+ --top-popup-content-padding: calc(var(--top-popup-list-padding) + var(--top-popup-listItem-padding));
194
+
195
+ /* списки */
196
+ --top-popup-list-padding: var(--top-padding-2);
197
+
198
+ --top-popup-listItem-radius: var(--top-radius-2);
199
+ --top-popup-listItem-padding: var(--top-padding-2);
200
+ }
201
+
202
+ .top-popup-front { position: relative; }
203
+
204
+ .top-popup-wrapper {
205
+ /* см. recalcPosition() */
206
+ --top-popup-height: 0px;
207
+ --top-popup-right-bounding: 0px;
208
+ --top-popup-bottom-bounding: 0px;
209
+ --top-popup-top: 0px;
210
+ --top-popup-right: calc(100vw - var(--top-popup-right-bounding));
211
+ --top-popup-bottom: calc(var(--100vh) - var(--top-popup-bottom-bounding));
212
+ --top-popup-left: 0px;
213
+
214
+ text-align: initial; white-space: normal; word-break: normal;
215
+ position: absolute; z-index: 200000;
216
+ }
217
+
218
+ .top-popup-wrapper:not(.top-popup-wrapper-shown) { overflow: hidden; }
219
+
220
+ /* top-popupPanel */
221
+ .top-popupPanel {
222
+ cursor: default;
223
+ box-shadow: var(--top-shadow-b);
224
+ border-radius: 14px;
225
+ background: var(--top-popup-background-color);
226
+ position: absolute; overflow: hidden;
227
+ display: flex; flex-direction: column;
228
+ }
229
+
230
+ /* position */
231
+ .top-popup-wrapper > * {
232
+ opacity: 0;
233
+ transition: opacity var(--top-popup-transition-delay) linear, transform var(--top-popup-transition-delay) linear;
234
+ }
235
+
236
+ .top-popup-wrapper.p0 > * { transform: translateY(-8px); }
237
+
238
+ .top-popup-wrapper.p1 > * { transform: translateY(8px); }
239
+
240
+ .top-popup-wrapper.p2 > * { transform: translateX(8px); }
241
+
242
+ .top-popup-wrapper.p3 > * { transform: translateY(8px); }
243
+
244
+ .top-popup-wrapper.p4 > * { transform: translateX(-8px); }
245
+
246
+ .top-popup-wrapper-shown:not(.top-popup-wrapper-closed) > * {opacity: 1;transform: translate(0, 0) !important;}
247
+
248
+ .top-popup-wrapper.p0 > .top-popup { top: calc(-16px); left: calc(0px - 8px); }
249
+
250
+ .top-popup-wrapper.p1 > .top-popup { bottom: calc(100% + 8px); }
251
+
252
+ .top-popup-wrapper.p2 > .top-popup { left: calc(100% + 8px); }
253
+
254
+ .top-popup-wrapper.p3 > .top-popup { top: calc(100% + 8px); }
255
+
256
+ .top-popup-wrapper.p4 > .top-popup { right: calc(100% + 8px); }
257
+
258
+ .top-popup-wrapper.p2 > .top-popup,
259
+ .top-popup-wrapper.p4 > .top-popup { margin-top: -10px; }
260
+
261
+ .top-popup-wrapper.p1.with_notch > .top-popup { margin-bottom: 5px; }
262
+
263
+ .top-popup-wrapper.p2.with_notch > .top-popup { margin-left: 5px; }
264
+
265
+ .top-popup-wrapper.p3.with_notch > .top-popup { margin-top: 5px; }
266
+
267
+ .top-popup-wrapper.p4.with_notch > .top-popup { margin-right: 5px; }
268
+
269
+ .top-popup-wrapper.invert-x > .top-popup { right: 0; }
270
+
271
+ .top-popup-wrapper.invert-y > .top-popup { bottom: 0; }
272
+
273
+ /* notch */
274
+ .top-popup-wrapper > .notch { border: 7.4px solid transparent; position: absolute; display: block; }
275
+
276
+ .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% }
277
+
278
+ .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%; }
279
+
280
+ .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%; }
281
+
282
+ .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%; }
283
+
284
+ .top-popup-wrapper.p1 > .notch-border { border-top-color: rgba(0, 0, 0, 0.05); margin-bottom: 6px; }
285
+
286
+ .top-popup-wrapper.p2 > .notch-border { border-right-color: rgba(0, 0, 0, 0.05); margin-left: 6px; }
287
+
288
+ .top-popup-wrapper.p3 > .notch-border { border-bottom-color: rgba(0, 0, 0, 0.05); margin-top: 6px; }
289
+
290
+ .top-popup-wrapper.p4 > .notch-border { border-left-color: rgba(0, 0, 0, 0.05); margin-right: 6px; }
291
+
292
+ /* common */
293
+ .top-popup_header,
294
+ .top-popup_content,
295
+ .top-popup_footer { font-size: 14px; }
296
+
297
+ .top-popup_header,
298
+ .top-popup_footer { display: flex; align-items: center; justify-content: space-between; }
299
+
300
+ /* header */
301
+ .top-popup_header {
302
+ color: var(--color-text-1);
303
+ border-bottom: 1px solid var(--top-popup-border-color);
304
+ padding: var(--top-padding-3);
305
+ font-weight: 600;
306
+ }
307
+
308
+ .top-popup_header > * { font-weight: 400; }
309
+
310
+ .top-popup_header > .a { cursor: pointer;}
311
+
312
+ .top-popup_header > .a:hover { color: var(--color-text-primary); }
313
+
314
+ .top-popup_headerButton { width: 60px; }
315
+
316
+ /* widget */
317
+ .top-popup_widget {
318
+ padding: var(--top-padding-2) var(--top-padding-2) 0 var(--top-padding-2);
319
+ }
320
+
321
+ /* content */
322
+ .top-popup_content {
323
+ margin: 0;
324
+ flex-grow: 1;
325
+ overflow-y: auto;
326
+ display: flex;
327
+ flex-direction: column;
328
+ gap: var(--top-gap-4);
329
+
330
+ -webkit-overflow-scrolling: touch;
331
+ }
332
+
333
+ div.top-popup_content {
334
+ color: var(--color-text-1);
335
+ padding: var(--top-popup-content-padding);
336
+ }
337
+
338
+ div.top-popup_content > * { flex-shrink: 0; }
339
+
340
+ div.top-popup_content > .top-button { margin: 0; }
341
+
342
+ div.top-popup_content .top-unwrap {
343
+ --top-unwrap-x: var(--top-popup-content-padding);
344
+ }
345
+
346
+ ul.top-popup_content {
347
+ color: var(--color-text-1);
348
+ padding: var(--top-popup-list-padding);
349
+ gap: 2px;
350
+ }
351
+
352
+ ul.top-popup_content .top-unwrap {
353
+ --top-unwrap-x: var(--top-popup-list-padding);
354
+ }
355
+
356
+ .top-popup_listItem {
357
+ border-radius: var(--top-popup-listItem-radius);
358
+ padding: var(--top-popup-listItem-padding);
359
+ line-height: 1 !important;
360
+ }
361
+
362
+ ul.top-popup_content li { margin: 0; list-style: none; display: flex; position: relative }
363
+
364
+ ul.top-popup_content li > * { flex-grow: 1; }
365
+
366
+ ul.top-popup_content li > a:not(.top-button),
367
+ ul.top-popup_content li > .a {
368
+ cursor: pointer;
369
+ box-sizing: border-box;
370
+ border-radius: var(--top-popup-listItem-radius);
371
+ background: var(--top-popup-background-color);
372
+ padding: var(--top-popup-listItem-padding);
373
+ color: var(--color-text-1) !important; font-size: 14px; font-weight: normal !important; text-decoration: none !important; font-style: normal;
374
+ line-height: 1 !important;
375
+ display: flex; flex: 1 1 100%; align-items: center;
376
+ transition: background-color 0.1s ease-in-out;
377
+ }
378
+
379
+ .top-popup-wrapper-no_animate ul.top-popup_content li > a:not(.top-button),
380
+ .top-popup-wrapper-no_animate ul.top-popup_content li > .a { transition: none; }
381
+
382
+ ul.top-popup_content li > a:not(.top-button):hover,
383
+ ul.top-popup_content li > .a:hover { background: var(--top-popup-background-color-hover); }
384
+
385
+ ul.top-popup_content li > a:not(.top-button).top-active,
386
+ ul.top-popup_content li > .a.top-active {
387
+ --top-icon-color: var(--color-text-primary) !important;
388
+
389
+ background: var(--top-popup-background-color-active);
390
+ }
391
+
392
+ .top-popup_content + .top-popup_content { padding-top: 0; }
393
+
394
+ /* listTitle */
395
+ .top-popup_listItem-title {
396
+ background: var(--color-layer-1);
397
+ color: var(--color-text-1); font-size: 12px;
398
+ }
399
+
400
+ /* listDelimiter */
401
+ .top-popup_listItem-delimiter {
402
+ border-radius: 3px;
403
+ background: var(--top-popup-border-color);
404
+ height: 1px;
405
+ padding: 0;
406
+ margin: 4px;
407
+ }
408
+
409
+ /* listMore */
410
+ .top-popup_listMore {
411
+ font-size: 20px;
412
+ margin: calc(0px - var(--top-popup-listItem-padding)) calc(0px - var(--top-popup-listItem-padding) / 2) calc(0px - var(--top-popup-listItem-padding)) 0;
413
+ }
414
+
415
+ .top-popup_listMore.top-button { margin: 0; }
416
+
417
+ ul.top-popup_content li > .a.top-popup_listMore {
418
+ text-align: center;
419
+ flex-basis: 10px;
420
+ }
421
+
422
+ ul.top-popup_content li > .a.top-popup_listMore:before { color: var(--color-text-2); }
423
+
424
+ ul.top-popup_content li > * > .top-popup_listMore {
425
+ margin-left: auto;
426
+ color: var(--color-layer-4);
427
+ font-size: 14px;
428
+ }
429
+
430
+ ul.top-popup_content li > * > i.top-popup_listMore:hover,
431
+ ul.top-popup_content li > * > i.top-popup_listMore.top-active { color: var(--color-text-primary); }
432
+
433
+ ul.top-popup_content li > * > i.top-popup_listMore:before {
434
+ transform: rotate(90deg);
435
+ display: block;
436
+ }
437
+
438
+ ul.top-popup_content li a.close { background: none !important; }
439
+
440
+ /* data-top-icon */
441
+ .top-popup_content > [data-top-icon]:before {
442
+ --top-icon-size: 20px;
443
+ }
444
+
445
+ ul.top-popup_content li > [data-top-icon]:not(.top-button) {
446
+ --top-icon-color: var(--color-text-3);
447
+ --top-icon-size: 20px;
448
+ --top-icon-width: 20px;
449
+ }
450
+
451
+ ul.top-popup_content li > [data-top-icon]:not(.top-button):before {
452
+ height: 1rem; margin-right: 8px; transition: color 0.1s;
453
+ }
454
+
455
+ ul.top-popup_content li:hover > [data-top-icon]:not(.top-button) {
456
+ --top-icon-color: var(--color-text-2);
457
+ }
458
+
459
+ /* footer */
460
+ .top-popup_footer {
461
+ /*padding: var(--top-popup-list-padding);*/
462
+ padding: var(--top-padding-3);
463
+ border-top: 1px solid var(--top-popup-border-color);
464
+ display: flex;
465
+ gap: var(--top-gap-2);
466
+ justify-content: flex-end;
467
+ }
468
+
469
+ /* footerSupportLink */
470
+ .top-popup_footerSupportLink {
471
+ margin-right: auto;
472
+ }
473
+
474
+ /* Виджеты */
475
+ .top-popup > [data-widget] { padding: 0 var(--top-popup-list-padding); }
476
+
477
+ .top-popup > [data-widget] + hr { margin: 0 var(--top-popup-list-padding); }
478
+
479
+ .top-popup .placeholder {
480
+ border: 1px solid #E0D9D9 !important; border-right: none !important; border-left: none !important; background: #F9F9F9 !important; margin: -1px 0; z-index: 1;
481
+ position: relative;
482
+ }
483
+
484
+ /* компоненты */
485
+ .top-popup-wrapper.simple_list > .top-popup { min-width: 0; white-space: nowrap; }
486
+
487
+ .top-popup_content .top-column { display: flex; flex-direction: column; gap: 4px; }
488
+
489
+ html .top-popup .top-popup_content li > .top-button {
490
+ margin: calc(var(--top-popup-listItem-padding) / 2) var(--top-popup-listItem-padding);
491
+ }
492
+
493
+ .top-popup li .check_all,
494
+ .top-popup li .clear_all { cursor: pointer; color: var(--color-text-primary); padding: 8px; display: inline-block; }
495
+
496
+ .top-popup li .check_all:hover,
497
+ .top-popup li .clear_all:hover { text-decoration: underline; }
498
+
499
+ .top-popup li .clear_all { display: none; }
500
+
501
+ /* table */
502
+ .top-popup_content table { margin: -9px 0; }
503
+
504
+ .top-popup_content table td,
505
+ .top-popup_content table th { padding: 9px var(--top-popup-listItem-padding) 9px 0; vertical-align: top; }
506
+
507
+ .top-popup_content table th { width: 40%; font-weight: 600; white-space: nowrap; }
508
+
509
+ /* формы */
510
+ ul.top-popup_content .a > [type="checkbox"],
511
+ ul.top-popup_content .a > [type="radio"] { margin: -8px 0 -8px auto; }
512
+
513
+ /* deprecated */
514
+ ul.top-popup_content a > [class*=icon],
515
+ ul.top-popup_content i.a > [class*=icon] {
516
+ transition: 0.1s;
517
+ }
518
+
519
+ .top-popup .buttons { border-radius: 0 0 4px 4px; border-top: 1px solid #BDC3C7; background: #ECF0F1; padding: 10px 15px; margin: 10px -15px -10px -15px; white-space: nowrap; }
520
+
521
+ .top-popup_footer [class*=btn]:not(.btn-transparent) { min-width: 100px; padding: 5px 14px; margin-left: 10px; }
522
+
523
+ .top-popup_footer [class*=btn]:first-child { margin-left: 0; }
524
+
525
+ .top-popup_footer .btn.full_width { margin: 0; flex-grow: 1; }
526
+ `, _ = `:root {
527
+ --top-popup-list-padding: 0px;
528
+
529
+ --top-popup-listItem-radius: 0px;
530
+ --top-popup-listItem-padding: var(--top-padding-4);
531
+ }
532
+
533
+ html.with_popup { background: #808080; }
534
+
535
+ .top-popup-wrapper {
536
+ --top-popup-footer-offset: 25px;
537
+
538
+ width: auto !important; height: auto !important;
539
+ position: fixed; top: 0 !important; right: 0 !important; left: 0 !important; overflow: hidden;
540
+ transition: background 0.3s;
541
+ }
542
+
543
+ .top-popup-wrapper-shown:not(.top-popup-wrapper-closed) { background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(1px); }
544
+ .top-popup-wrapper-shown:not(.top-popup-wrapper-closed) > .top-popup { opacity: 1 !important; }
545
+
546
+ .top-popup {
547
+ 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;
548
+ top: auto !important; right: 0 !important; bottom: var(--toolbar-height, 0px) !important; left: 0 !important;
549
+ display: flex; flex-direction: column;
550
+
551
+ /* невозможно опустить элемент вниз за экран на 100%, fix: opacity и translateY(80%) */
552
+ transform: translateY(80%);
553
+
554
+ transition: opacity 0.3s, transform 0.3s;
555
+ }
556
+
557
+ /* from top */
558
+ .top-popup-wrapper.p-from-top {
559
+ --top-popup-footer-offset: 0px;
560
+
561
+ top: var(--header-height, 0px) !important;
562
+ }
563
+ .with_dialog .top-popup-wrapper.p-from-top { top: 50px !important; }
564
+ .top-popup-wrapper.p-from-top > .top-popup {
565
+ border-radius: 0 0 8px 8px; max-height: calc(100% - 24px); top: 0 !important; bottom: auto !important;
566
+ transform: translateY(calc(-100% - 24px));
567
+ }
568
+
569
+ /* widget */
570
+ .top-popup_widget { padding: var(--top-padding-2);}
571
+ .top-popup_widget:not(.p-from-top) { order: 10; }
572
+
573
+ /* content */
574
+ ul.top-popup_content {
575
+ gap: 0;
576
+ }
577
+ ul.top-popup_content li:not(:last-child) { border-bottom: 1px solid var(--top-popup-border-color); }
578
+
579
+ .top-popup-wrapper.top-style_alt > .top-popup > ul > li { border-bottom: none; }
580
+
581
+ /* footer */
582
+ .top-popup_footer {
583
+ flex-direction: column-reverse;
584
+ }
585
+ .top-popup_footer > .top-button {
586
+ --top-forms-base-height: var(--top-forms-base-height_l);
587
+
588
+ width: 100%;
589
+ }
590
+
591
+ /* listTitle */
592
+ ul.top-popup_content .top-popup_listItem-title {
593
+ --top-popup-padding-v: 12px;
594
+ }
595
+
596
+ /* listDelimiter */
597
+ ul.top-popup_content .top-popup_listItem-delimiter { background: var(--color-line-1-opacity); height: 4px; margin: 0; }
598
+ ul.top-popup_content li:first-child > .top-popup_listItem-delimiter { border-top: 1px solid var(--top-popup-border-color); }
599
+ `, L = `html:not(.with_dialog) { margin-right: 0 !important; }
600
+
601
+ .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)); }
602
+ .top-popup-wrapper.invert-x > .top-popup { max-width: calc(100vw - var(--top-popup-right) - 16px); }
603
+ .top-popup-wrapper.invert-y > .top-popup { max-height: calc(100vh - var(--top-popup-bottom) - 16px); }
604
+
605
+ /* position */
606
+ .top-popup-wrapper.p1 > .top-popup { max-height: calc(var(--top-popup-top) - var(--header-height, 0px) - 16px); }
607
+ .top-popup-wrapper.p3 > .top-popup { max-height: calc(var(--top-popup-bottom) - 16px); }
608
+ .top-popup-wrapper.p2 > .top-popup { max-width: calc(var(--top-popup-right) - 16px); }
609
+ .top-popup-wrapper.p4 > .top-popup { max-width: calc(var(--top-popup-left) - 16px); }
610
+
611
+ /* notch */
612
+ .top-popup-wrapper.p1.with_notch > .top-popup,
613
+ .top-popup-wrapper.p3.with_notch > .top-popup { margin-left: -16px !important; }
614
+ .top-popup-wrapper.p1.with_notch > .notch,
615
+ .top-popup-wrapper.p3.with_notch > .notch { margin-left: -8px !important; }
616
+
617
+ .top-popup-wrapper.p1.with_notch.invert-x,
618
+ .top-popup-wrapper.p3.with_notch.invert-x { margin-left: 3px !important; }
619
+ .top-popup-wrapper.p1.with_notch.invert-x > .notch,
620
+ .top-popup-wrapper.p3.with_notch.invert-x > .notch { margin-left: -9px !important; }
621
+
622
+ /* listMore */
623
+ ul.top-popup_content li > * > i.top-popup_listMore { visibility: hidden; transition: none; }
624
+ ul.top-popup_content li:hover > * > i.top-popup_listMore,
625
+ ul.top-popup_content li > *.top-active > i.top-popup_listMore,
626
+ ul.top-popup_content li > * > i.top-popup_listMore.top-active { visibility: visible; }
627
627
  `;
628
628
  f.insertStyleToPage(y);
629
629
  f.insertStyleToPage(_, "m");
@@ -688,17 +688,17 @@ class v extends x {
688
688
  super(), this.init(v.componentName, t, p);
689
689
  }
690
690
  async mount() {
691
- var e, i;
691
+ var e, r;
692
692
  if (!(this.el instanceof HTMLElement)) return;
693
693
  const t = this.vueGetComponent();
694
- if (this.el.closest(".top-popup-wrapper") && (this.popupParent = s.getPopup(this.el.closest(".top-popup-wrapper"))), await this.mountJQuery(), r.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"), t)
695
- this.type = "vue", this.options.popup = "", this.elPopup = r.genEl("div", {}, this.options.popup);
694
+ if (this.el.closest(".top-popup-wrapper") && (this.popupParent = s.getPopup(this.el.closest(".top-popup-wrapper"))), await this.mountJQuery(), n.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"), t)
695
+ this.type = "vue", this.options.popup = "", this.elPopup = n.genEl("div", {}, this.options.popup);
696
696
  else if ((e = this.options.popup) != null && e.match(/^[#.]/))
697
697
  this.type = "selector", this.elPopup = document.querySelector(`${this.options.popup}.template`) || void 0;
698
698
  else {
699
699
  if (this.type = "html", this.options.useOriginal)
700
700
  throw "Option useOriginal not allowed for text templates";
701
- this.elPopup = r.genEl("div", {}, this.options.popup ?? "");
701
+ this.elPopup = n.genEl("div", {}, this.options.popup ?? "");
702
702
  }
703
703
  if (!this.elPopup || t != null && t.opened) {
704
704
  if (this.options.useOriginal || t != null && t.opened) {
@@ -712,29 +712,29 @@ class v extends x {
712
712
  }
713
713
  if (!this.elPopup)
714
714
  return;
715
- for (this.options.useOriginal ? (this.elStartPosition = this.elPopup.closest(".top-popup-el-start-position"), this.elStartPosition || (this.elStartPosition = r.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 = r.wrap(this.elPopup, "div")), this.type === "html" && (this.elPopup.querySelector(":scope > .top-popup_content") || (this.elPopup.classList.add("top-popup_content"), this.elPopup = r.wrap(this.elPopup, "div"))), (this.type === "selector" && !this.elPopup.matches(".template") || this.type === "html" || this.type === "vue") && (r.querySelectorAllArray(this.elPopup, "[data-top-popup]").forEach((n) => {
716
- n instanceof HTMLElement && (n.dataset.topPopupPosBy = "fixed");
717
- }), r.querySelectorAllArray(this.elPopup, ".top-popup-wrapper").forEach((n) => n.remove()))), s.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(
715
+ for (this.options.useOriginal ? (this.elStartPosition = this.elPopup.closest(".top-popup-el-start-position"), this.elStartPosition || (this.elStartPosition = n.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 = n.wrap(this.elPopup, "div")), this.type === "html" && (this.elPopup.querySelector(":scope > .top-popup_content") || (this.elPopup.classList.add("top-popup_content"), this.elPopup = n.wrap(this.elPopup, "div"))), (this.type === "selector" && !this.elPopup.matches(".template") || this.type === "html" || this.type === "vue") && (n.querySelectorAllArray(this.elPopup, "[data-top-popup]").forEach((i) => {
716
+ i instanceof HTMLElement && (i.dataset.topPopupPosBy = "fixed");
717
+ }), n.querySelectorAllArray(this.elPopup, ".top-popup-wrapper").forEach((i) => i.remove()))), s.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(
718
718
  "--top-popup-transition-delay",
719
719
  this.options.transitionDuration + "ms"
720
720
  ))), this.elPopupInner = document.createElement("div"), this.elPopupInner.classList.add("top-popupPanel", "top-popup"); this.elPopup.firstChild; )
721
721
  this.elPopupInner.appendChild(this.elPopup.firstChild);
722
722
  if (this.elPopup.append(this.elPopupInner), this.elPopup.classList.add("top-popup-wrapper"), this.options.class) {
723
- const n = this.options.class.split(" ");
724
- this.elPopup.classList.add(...n);
723
+ const i = this.options.class.split(" ");
724
+ this.elPopup.classList.add(...i);
725
725
  }
726
726
  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");
727
727
  const p = !!this.elPopup.querySelector('[data-widget="search"]');
728
728
  if (this.options.isFullScreen && !p) {
729
- const n = P();
730
- !this.elPopupHeader && n.Common.Close && (this.elPopupHeader = r.genEl("i", { class: "top-popup_header" }), this.elPopupInner.prepend(this.elPopupHeader), this.elPopupHeader.prepend(r.genEl("i", { class: "a closer" }, n.Common.Close)), this.elPopupHeader.append(r.genEl("i", { class: "top-popup_headerButton" })));
729
+ const i = P();
730
+ !this.elPopupHeader && i.Common.Close && (this.elPopupHeader = n.genEl("i", { class: "top-popup_header" }), this.elPopupInner.prepend(this.elPopupHeader), this.elPopupHeader.prepend(n.genEl("i", { class: "a closer" }, i.Common.Close)), this.elPopupHeader.append(n.genEl("i", { class: "top-popup_headerButton" })));
731
731
  }
732
- r.storage(this.elPopup, v.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"), (i = this.el.parentElement) == null || i.insertBefore(this.elPopup, this.el), this.elPopup.classList.remove("template"), this.options.invertX && this.elPopup.classList.add("invert-x");
732
+ n.storage(this.elPopup, v.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"), (r = this.el.parentElement) == null || r.insertBefore(this.elPopup, this.el), this.elPopup.classList.remove("template"), this.options.invertX && this.elPopup.classList.add("invert-x");
733
733
  let o = !!this.el.closest(".modal-header");
734
734
  o || (o = !!this.el.closest("#top_panel")), o || (o = !!this.el.closest("#secondmenu")), o && this.elPopup.classList.add("p-from-top"), setTimeout(() => {
735
- var n;
736
- return (n = this.elPopup) == null ? void 0 : n.classList.add("top-popup-wrapper-shown");
737
- }), this.elFront && !this.elFront.matches("body") && (this.elFront.append(this.elPopup), this.shift.top = r.offset(this.el).top - this.el.offsetTop - r.offset(this.elFront).top, this.shift.left = r.offset(this.el).left - this.el.offsetLeft - r.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(), s.decoratorAfterOpen(this), this.mountEvents();
735
+ var i;
736
+ return (i = this.elPopup) == null ? void 0 : i.classList.add("top-popup-wrapper-shown");
737
+ }), this.elFront && !this.elFront.matches("body") && (this.elFront.append(this.elPopup), this.shift.top = n.offset(this.el).top - this.el.offsetTop - n.offset(this.elFront).top, this.shift.left = n.offset(this.el).left - this.el.offsetLeft - n.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(), s.decoratorAfterOpen(this), this.mountEvents();
738
738
  }
739
739
  async mountJQuery() {
740
740
  f.$ && (this.$ = f.$(this.el));
@@ -744,7 +744,7 @@ class v extends x {
744
744
  */
745
745
  focus() {
746
746
  let t;
747
- this.elPopup && (t = r.querySelectorVisible(this.elPopup, ".top-popup-autofocus"), t || (t = r.querySelectorVisible(this.elPopup, ":read-write, select:not(:disabled)")), t || (t = r.querySelectorVisible(this.elPopup, ".top-popup_footer .top-button")), t || (t = this.elPopup), t instanceof HTMLElement && t.focus(), setTimeout(() => {
747
+ this.elPopup && (t = n.querySelectorVisible(this.elPopup, ".top-popup-autofocus"), t || (t = n.querySelectorVisible(this.elPopup, ":read-write, select:not(:disabled)")), t || (t = n.querySelectorVisible(this.elPopup, ".top-popup_footer .top-button")), t || (t = this.elPopup), t instanceof HTMLElement && t.focus(), setTimeout(() => {
748
748
  t instanceof HTMLElement && t.focus();
749
749
  }, this.options.transitionDuration));
750
750
  }
@@ -757,8 +757,8 @@ class v extends x {
757
757
  onMousedown(t) {
758
758
  if (!this.elPopup || !(t.target instanceof Element) || !this.isFirstClick || (this.isFirstClick = !1, setTimeout(() => this.isFirstClick = !0), t instanceof MouseEvent && t.button !== 0))
759
759
  return;
760
- let p = r.querySelectorVisibleLast(document.body, ":scope > .top-popup-wrapper");
761
- p && p !== this.elPopup || t.target.closest(".top-popup-front") && (p = r.querySelectorVisibleLast(t.target.closest(".top-popup-front"), ":scope > .top-popup-wrapper"), p && p !== this.elPopup) || this.elPopup.contains(t.target) || this.elPopup.closest(".ui-dialog") && !t.target.closest(".ui-dialog") || s.decoratorIsIgnoreOuterClick(t) || s.close(this.elPopup);
760
+ let p = n.querySelectorVisibleLast(document.body, ":scope > .top-popup-wrapper");
761
+ p && p !== this.elPopup || t.target.closest(".top-popup-front") && (p = n.querySelectorVisibleLast(t.target.closest(".top-popup-front"), ":scope > .top-popup-wrapper"), p && p !== this.elPopup) || this.elPopup.contains(t.target) || this.elPopup.closest(".ui-dialog") && !t.target.closest(".ui-dialog") || s.decoratorIsIgnoreOuterClick(t) || s.close(this.elPopup);
762
762
  }
763
763
  /**
764
764
  * Закрыть другие Popup при фокусе на элемент формы в текущем
@@ -767,8 +767,8 @@ class v extends x {
767
767
  if (t.target instanceof Element && t.target.matches("input") || this.isClosed)
768
768
  return;
769
769
  s.getAllVisible().forEach((o) => {
770
- var e, i, n, u;
771
- (e = this.elPopup) != null && e.contains(o) || ((i = this.popupParent) == null ? void 0 : i.elPopup) === o || ((u = (n = this.popupParent) == null ? void 0 : n.popupParent) == null ? void 0 : u.elPopup) === o || s.close(o);
770
+ var e, r, i, u;
771
+ (e = this.elPopup) != null && e.contains(o) || ((r = this.popupParent) == null ? void 0 : r.elPopup) === o || ((u = (i = this.popupParent) == null ? void 0 : i.popupParent) == null ? void 0 : u.elPopup) === o || s.close(o);
772
772
  });
773
773
  }
774
774
  /**
@@ -783,7 +783,7 @@ class v extends x {
783
783
  * Контроль положения Popup при fixed позиционировании
784
784
  */
785
785
  onResize() {
786
- this.elPopup && this.elPopup.parentElement !== document.body && document.body.append(this.elPopup), this.elPopup instanceof HTMLElement && (this.elPopup.style.top = r.offset(this.el).top + "px", this.elPopup.style.left = r.offset(this.el).left + "px");
786
+ this.elPopup && this.elPopup.parentElement !== document.body && document.body.append(this.elPopup), this.elPopup instanceof HTMLElement && (this.elPopup.style.top = n.offset(this.el).top + "px", this.elPopup.style.left = n.offset(this.el).left + "px");
787
787
  }
788
788
  unmount() {
789
789
  super.unmount(), this.el instanceof HTMLElement && (this.el.dataset.topPopupOpened = ""), this.elActiveByDefault || this.el.classList.remove("top-active");
@@ -812,16 +812,16 @@ class v extends x {
812
812
  }
813
813
  const o = this.elPopup.getBoundingClientRect();
814
814
  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");
815
- let e = !1, i = !1, n = !1, u = !1, l = o.left > window.innerWidth / 2, d = o.top > window.innerHeight / 2;
815
+ let e = !1, r = !1, i = !1, u = !1, l = o.left > window.innerWidth / 2, d = o.top > window.innerHeight / 2;
816
816
  t === 4 && (l = !l), t === 1 && (d = !d);
817
817
  const h = (b = this.elPopupInner) == null ? void 0 : b.getBoundingClientRect();
818
818
  let a, c;
819
819
  if (h) {
820
820
  a = window.innerWidth - h.right, c = window.innerHeight - h.bottom;
821
821
  const g = 8;
822
- h.top < g && (e = !0), a < g && (i = !0), c < g && (n = !0), h.left < g && (u = !0);
822
+ h.top < g && (e = !0), a < g && (r = !0), c < g && (i = !0), h.left < g && (u = !0);
823
823
  }
824
- e && (t === 0 || t === 1) && d && (t = 3), n && t === 3 && d && (t = 1), i && t === 2 && l && (t = 4), u && t === 4 && l && (t = 2), i && (t === 0 || t === 1 || t === 3) && this.elPopup.classList.add("invert-x"), n && (t === 2 || t === 4) && d && (t === 2 && !l && this.elPopup.classList.add("invert-y"), t === 4 && !l && this.elPopup.classList.add("invert-x"), this.elPopup.matches(".invert-y") || (t = 1)), this.elPopup.classList.remove("p0", "p1", "p2", "p3", "p4"), this.elPopup.classList.add("p" + t), this.elPopupInner instanceof HTMLElement && (this.elPopupInner.style.maxWidth = "", this.elPopupInner.style.maxHeight = ""), s.scrollToActive(this.elPopup);
824
+ e && (t === 0 || t === 1) && d && (t = 3), i && t === 3 && d && (t = 1), r && t === 2 && l && (t = 4), u && t === 4 && l && (t = 2), r && (t === 0 || t === 1 || t === 3) && this.elPopup.classList.add("invert-x"), i && (t === 2 || t === 4) && d && (t === 2 && !l && this.elPopup.classList.add("invert-y"), t === 4 && !l && this.elPopup.classList.add("invert-x"), this.elPopup.matches(".invert-y") || (t = 1)), this.elPopup.classList.remove("p0", "p1", "p2", "p3", "p4"), this.elPopup.classList.add("p" + t), this.elPopupInner instanceof HTMLElement && (this.elPopupInner.style.maxWidth = "", this.elPopupInner.style.maxHeight = ""), s.scrollToActive(this.elPopup);
825
825
  }
826
826
  onTouchmove(t) {
827
827
  var p, o, e;
@@ -834,9 +834,9 @@ class v extends x {
834
834
  close() {
835
835
  var t;
836
836
  this.isClosed || (this.isClosed = !0, this.$ && f.$ && this.elPopup && this.$.trigger("afterclose.top-menu-popup", [f.$(this.elPopup)]), !s.noClose && (this.unmount(), (t = this.elPopup) == null || t.classList.add("top-popup-wrapper-closed"), setTimeout(() => {
837
- var e, i, n, u, l;
837
+ var e, r, i, u, l;
838
838
  if (this.vueClose(), !this.elPopup) return;
839
- this.options.useOriginal ? (this.elPopup.removeAttribute("style"), this.elPopup.classList.remove("top-popup-wrapper-shown", "top-popup-wrapper-closed"), this.elPopup.classList.add("template"), (e = this.elStartPosition) == null || e.append(this.elPopup), (i = this.elPopup.querySelector("div.top-popup_content.top-column")) == null || i.classList.remove("top-column"), (n = this.elPopup.querySelector(".notch-border")) == null || n.remove(), (u = this.elPopup.querySelector(".notch")) == null || u.remove(), (l = this.elPopupInner) == null || l.replaceWith(...this.elPopupInner.childNodes), r.storageClear(this.elPopup)) : (r.storageClear(this.elPopup), this.elPopup.remove(), delete this.elPopup);
839
+ this.options.useOriginal ? (this.elPopup.removeAttribute("style"), this.elPopup.classList.remove("top-popup-wrapper-shown", "top-popup-wrapper-closed"), this.elPopup.classList.add("template"), (e = this.elStartPosition) == null || e.append(this.elPopup), (r = this.elPopup.querySelector("div.top-popup_content.top-column")) == null || r.classList.remove("top-column"), (i = this.elPopup.querySelector(".notch-border")) == null || i.remove(), (u = this.elPopup.querySelector(".notch")) == null || u.remove(), (l = this.elPopupInner) == null || l.replaceWith(...this.elPopupInner.childNodes), n.storageClear(this.elPopup)) : (n.storageClear(this.elPopup), this.elPopup.remove(), delete this.elPopup);
840
840
  const p = s.getAllVisible(), o = p.length && p[p.length - 1];
841
841
  o ? s.getPopup(o).focus() : document.documentElement.classList.remove("with_popup");
842
842
  }, this.options.transitionDuration)));
@@ -859,4 +859,4 @@ export {
859
859
  v as Popup,
860
860
  v as default
861
861
  };
862
- //# sourceMappingURL=popup-JjVFt_2L.es.js.map
862
+ //# sourceMappingURL=popup-Wzy_7sXf.es.js.map