@topvisor/ui 0.9.34-utils-components-2 → 0.9.34-utils-components-4

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 (122) hide show
  1. package/.chunks/datepicker-B-QNMaqL.es.js +289 -0
  2. package/.chunks/datepicker-B-QNMaqL.es.js.map +1 -0
  3. package/.chunks/datepicker-BtTKGtP7.amd.js +247 -0
  4. package/.chunks/datepicker-BtTKGtP7.amd.js.map +1 -0
  5. package/.chunks/{forms-CRAV8PiZ.es.js → forms-CRdPxA6a.es.js} +116 -116
  6. package/.chunks/forms-CRdPxA6a.es.js.map +1 -0
  7. package/.chunks/{forms-Cksc7Rb7.amd.js → forms-CbJDUr1_.amd.js} +3 -3
  8. package/.chunks/forms-CbJDUr1_.amd.js.map +1 -0
  9. package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-C2XaxeNZ.es.js → listItem.vue_vue_type_script_setup_true_lang-D5EXHsIJ.es.js} +2 -2
  10. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-D5EXHsIJ.es.js.map +1 -0
  11. package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-CpNwVBHY.amd.js → listItem.vue_vue_type_script_setup_true_lang-W45jLCVb.amd.js} +2 -2
  12. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-W45jLCVb.amd.js.map +1 -0
  13. package/.chunks/{menu-BX8GV8-v.amd.js → menu-BNQ5GpPq.amd.js} +2 -2
  14. package/.chunks/menu-BNQ5GpPq.amd.js.map +1 -0
  15. package/.chunks/{menu-BWjYRHkQ.es.js → menu-D8Pkjvdh.es.js} +2 -2
  16. package/.chunks/menu-D8Pkjvdh.es.js.map +1 -0
  17. package/.chunks/{popup-BWTP6yaC.es.js → popup-DUd8G4iQ.es.js} +485 -485
  18. package/.chunks/popup-DUd8G4iQ.es.js.map +1 -0
  19. package/.chunks/{popup-3fVBIqu0.amd.js → popup-DcfMTbwU.amd.js} +440 -440
  20. package/.chunks/popup-DcfMTbwU.amd.js.map +1 -0
  21. package/.chunks/store-Bl79G7T_.amd.js.map +1 -1
  22. package/.chunks/store-PoMCiuBr.es.js.map +1 -1
  23. package/README.md +86 -86
  24. package/assets/forms.css +1 -1
  25. package/assets/formsExt.css +1 -1
  26. package/core/core.amd.js +1 -1
  27. package/core/core.js +1 -1
  28. package/core/directives/focus.amd.js +1 -1
  29. package/core/directives/focus.js +1 -1
  30. package/core/directives/sticky.amd.js +1 -1
  31. package/core/directives/sticky.js +1 -1
  32. package/core/directives/swimUp.amd.js +1 -1
  33. package/core/directives/swimUp.js +1 -1
  34. package/core/directives/tooltip.amd.js +1 -1
  35. package/core/directives/tooltip.js +1 -1
  36. package/core/plugin/plugin.amd.js +1 -1
  37. package/core/plugin/plugin.amd.js.map +1 -1
  38. package/core/plugin/plugin.js +2 -2
  39. package/core/plugin/plugin.js.map +1 -1
  40. package/forms/forms.amd.js +1 -1
  41. package/forms/forms.js +1 -1
  42. package/forms/helpers.amd.js.map +1 -1
  43. package/forms/helpers.js.map +1 -1
  44. package/formsExt/formsExt.amd.js +1 -1
  45. package/formsExt/formsExt.amd.js.map +1 -1
  46. package/formsExt/formsExt.js +362 -122
  47. package/formsExt/formsExt.js.map +1 -1
  48. package/icomoon/Read Me.txt +7 -7
  49. package/icomoon/demo-files/demo.css +161 -161
  50. package/icomoon/demo-files/demo.js +30 -30
  51. package/icomoon/demo.html +3379 -3379
  52. package/icomoon/fonts/Topvisor-2.svg +263 -263
  53. package/icomoon/style.css +740 -740
  54. package/package.json +32 -32
  55. package/popup/popup.amd.js +1 -1
  56. package/popup/popup.amd.js.map +1 -1
  57. package/popup/popup.js +2 -2
  58. package/popup/popup.js.map +1 -1
  59. package/popup/worker.amd.js +1 -1
  60. package/popup/worker.amd.js.map +1 -1
  61. package/popup/worker.js +2 -2
  62. package/popup/worker.js.map +1 -1
  63. package/project/project.amd.js +1 -1
  64. package/project/project.amd.js.map +1 -1
  65. package/project/project.js +3 -3
  66. package/project/project.js.map +1 -1
  67. package/require/css.amd.js +11 -11
  68. package/src/components/formsExt/formsExt.d.ts +2 -0
  69. package/src/components/formsExt/selector2/itemMulti.vue.d.ts +18 -0
  70. package/src/components/formsExt/selector2/selector2.vue.d.ts +132 -0
  71. package/tabs/tabs.amd.js +1 -1
  72. package/tabs/tabs.amd.js.map +1 -1
  73. package/tabs/tabs.js +1 -1
  74. package/tabs/tabs.js.map +1 -1
  75. package/tabsView/tabsView.amd.js +1 -1
  76. package/tabsView/tabsView.amd.js.map +1 -1
  77. package/tabsView/tabsView.js +1 -1
  78. package/tabsView/tabsView.js.map +1 -1
  79. package/utils/check.amd.js.map +1 -1
  80. package/utils/check.js.map +1 -1
  81. package/utils/css.amd.js.map +1 -1
  82. package/utils/css.js.map +1 -1
  83. package/utils/date.amd.js +1 -1
  84. package/utils/date.js +1 -1
  85. package/utils/device.amd.js +1 -1
  86. package/utils/device.js +1 -1
  87. package/utils/dom.amd.js.map +1 -1
  88. package/utils/dom.js.map +1 -1
  89. package/utils/image.amd.js.map +1 -1
  90. package/utils/image.js.map +1 -1
  91. package/utils/keyboard.amd.js.map +1 -1
  92. package/utils/keyboard.js.map +1 -1
  93. package/utils/number.amd.js.map +1 -1
  94. package/utils/number.js.map +1 -1
  95. package/utils/price.amd.js.map +1 -1
  96. package/utils/price.js.map +1 -1
  97. package/utils/route.amd.js.map +1 -1
  98. package/utils/route.js.map +1 -1
  99. package/utils/scroll.amd.js +1 -1
  100. package/utils/scroll.amd.js.map +1 -1
  101. package/utils/scroll.js +1 -1
  102. package/utils/scroll.js.map +1 -1
  103. package/utils/string.amd.js.map +1 -1
  104. package/utils/string.js.map +1 -1
  105. package/utils/system.amd.js.map +1 -1
  106. package/utils/system.js.map +1 -1
  107. package/utils/url.amd.js.map +1 -1
  108. package/utils/url.js.map +1 -1
  109. package/utils/window.amd.js +1 -1
  110. package/utils/window.js +1 -1
  111. package/.chunks/datepicker-BGhDjLcn.es.js +0 -289
  112. package/.chunks/datepicker-BGhDjLcn.es.js.map +0 -1
  113. package/.chunks/datepicker-DM6aPyRB.amd.js +0 -247
  114. package/.chunks/datepicker-DM6aPyRB.amd.js.map +0 -1
  115. package/.chunks/forms-CRAV8PiZ.es.js.map +0 -1
  116. package/.chunks/forms-Cksc7Rb7.amd.js.map +0 -1
  117. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-C2XaxeNZ.es.js.map +0 -1
  118. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-CpNwVBHY.amd.js.map +0 -1
  119. package/.chunks/menu-BWjYRHkQ.es.js.map +0 -1
  120. package/.chunks/menu-BX8GV8-v.amd.js.map +0 -1
  121. package/.chunks/popup-3fVBIqu0.amd.js.map +0 -1
  122. package/.chunks/popup-BWTP6yaC.es.js.map +0 -1
@@ -1,5 +1,5 @@
1
- import { C as f } from "./forms-CRAV8PiZ.es.js";
2
- import r from "../utils/dom.js";
1
+ import { C as f } from "./forms-CRdPxA6a.es.js";
2
+ import n from "../utils/dom.js";
3
3
  import { TopPopupWorker as l } from "../popup/worker.js";
4
4
  class v {
5
5
  static componentName = "Top";
@@ -28,11 +28,11 @@ class v {
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 v {
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 v {
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) {
@@ -99,8 +99,8 @@ class P {
99
99
  if (!e || p.matches(".top-popup-noCloser"))
100
100
  return;
101
101
  if (p.getAttribute("href") === "." && t.preventDefault(), t.target.matches("[data-top-popup]")) {
102
- const i = t.target.closest("ul"), s = t.target.closest("a, .a");
103
- i && ((o = i.querySelector("a.top-active, .a.top-active")) == null || o.classList.remove("top-active")), s && s.classList.add("top-active");
102
+ const r = t.target.closest("ul"), s = t.target.closest("a, .a");
103
+ r && ((o = r.querySelector("a.top-active, .a.top-active")) == null || o.classList.remove("top-active")), s && s.classList.add("top-active");
104
104
  return;
105
105
  }
106
106
  l.close(e);
@@ -114,7 +114,7 @@ class P {
114
114
  * Глобальный обработчик нажатия кнопки на клавиатуре
115
115
  */
116
116
  static onkeydown(t) {
117
- var e, i;
117
+ var e, r;
118
118
  if (!(t.target instanceof Element)) return;
119
119
  const p = t.target.closest(".top-popup-wrapper");
120
120
  if (!p)
@@ -126,18 +126,18 @@ class P {
126
126
  break;
127
127
  case "Enter":
128
128
  if (!o) {
129
- if (r.querySelectorVisible(p, ".preloader"))
129
+ if (n.querySelectorVisible(p, ".preloader"))
130
130
  break;
131
- const c = r.querySelectorVisible(p, ".top-popup_footer .go, .top-popup_footer [data-action]");
131
+ const c = n.querySelectorVisible(p, ".top-popup_footer .go, .top-popup_footer [data-action]");
132
132
  if (c instanceof HTMLElement) {
133
133
  c.click();
134
134
  break;
135
135
  }
136
- const m = r.querySelectorVisibleLast(p, ".top-popup_footer .top-button");
136
+ const m = n.querySelectorVisibleLast(p, ".top-popup_footer .top-button");
137
137
  m instanceof HTMLElement && m.click();
138
138
  break;
139
139
  }
140
- const s = r.querySelectorVisible(p, "li > a.top-active");
140
+ const s = n.querySelectorVisible(p, "li > a.top-active");
141
141
  s && s.getAttribute("href") && (t.preventDefault(), location.href = s.getAttribute("href"));
142
142
  const a = p.querySelector("li > .top-active");
143
143
  a instanceof HTMLElement && a.click();
@@ -148,467 +148,467 @@ class P {
148
148
  case "ArrowLeft":
149
149
  if (!o)
150
150
  break;
151
- t.key === "ArrowRight" || t.key === "ArrowLeft" ? r.querySelectorVisible(
151
+ t.key === "ArrowRight" || t.key === "ArrowLeft" ? n.querySelectorVisible(
152
152
  p,
153
153
  "ul.top-popup_content > li:not(.top-popup_liNoSelectable) > .top-active > .top-popup_listMore"
154
154
  ) && t.preventDefault() : t.preventDefault();
155
- const n = (e = p.querySelector("ul.top-popup_content > li:not(.top-popup_liNoSelectable) > .top-active")) == null ? void 0 : e.parentElement;
156
- if (t.key === "ArrowRight" && n) {
157
- const c = n.querySelector(".top-active > .top-popup_listMore");
155
+ const i = (e = p.querySelector("ul.top-popup_content > li:not(.top-popup_liNoSelectable) > .top-active")) == null ? void 0 : e.parentElement;
156
+ if (t.key === "ArrowRight" && i) {
157
+ const c = i.querySelector(".top-active > .top-popup_listMore");
158
158
  if (c instanceof HTMLElement)
159
159
  return c.click();
160
160
  }
161
- const d = r.querySelectorAllVisible(p, "ul.top-popup_content > li:not(.top-popup_liNoSelectable)"), h = d.length;
161
+ const d = n.querySelectorAllVisible(p, "ul.top-popup_content > li:not(.top-popup_liNoSelectable)"), h = d.length;
162
162
  if (!h)
163
163
  return;
164
164
  let u = -1;
165
- if (n && (u = d.indexOf(n)), t.key === "ArrowUp" || t.key === "ArrowLeft" ? u-- : u++, t.key === "ArrowLeft" && u === -1)
165
+ if (i && (u = d.indexOf(i)), t.key === "ArrowUp" || t.key === "ArrowLeft" ? u-- : u++, t.key === "ArrowLeft" && u === -1)
166
166
  return t.target.matches("input") ? void 0 : l.close(p);
167
167
  if (t.key === "ArrowRight" && u === h)
168
168
  return;
169
- u < 0 && (u = h - 1), u > h - 1 && (u = 0), p.querySelectorAll("ul.top-popup_content > li > .top-active").forEach((c) => c.classList.remove("top-active")), (i = d[u].querySelector(":scope > a, :scope > .a")) == null || i.classList.add("top-active"), l.scrollToActive(p);
169
+ u < 0 && (u = h - 1), u > h - 1 && (u = 0), p.querySelectorAll("ul.top-popup_content > li > .top-active").forEach((c) => c.classList.remove("top-active")), (r = d[u].querySelector(":scope > a, :scope > .a")) == null || r.classList.add("top-active"), l.scrollToActive(p);
170
170
  break;
171
171
  }
172
172
  }
173
173
  }
174
- const w = `:root {\r
175
- --top-popup-z-index: 200000;\r
176
- --top-popup-transition-delay: 100ms;\r
177
- \r
178
- --top-popup-background-color: var(--color-bg-3);\r
179
- --top-popup-background-color-hover: var(--color-cell-secondary-2);\r
180
- --top-popup-background-color-active: var(--color-layer-primary-1);\r
181
- \r
182
- --top-popup-border-color: var(--color-line-2-opacity);\r
183
- --top-popup-title-background-color: var(--color-layer-secondary-1);\r
184
- \r
185
- /* суммарный отсуп от каря popup до элемента */\r
186
- --top-popup-content-padding: calc(var(--top-popup-list-padding) + var(--top-popup-listItem-padding));\r
187
- \r
188
- /* списки */\r
189
- --top-popup-list-padding: var(--top-padding-2);\r
190
- \r
191
- --top-popup-listItem-radius: var(--top-radius-2);\r
192
- --top-popup-listItem-padding: var(--top-padding-2);\r
193
- }\r
194
- \r
195
- .top-popup-front { position: relative; }\r
196
- \r
197
- .top-popup-wrapper {\r
198
- /* см. recalcPosition() */\r
199
- --top-popup-height: 0px;\r
200
- --top-popup-right-bounding: 0px;\r
201
- --top-popup-bottom-bounding: 0px;\r
202
- --top-popup-top: 0px;\r
203
- --top-popup-right: calc(100vw - var(--top-popup-right-bounding));\r
204
- --top-popup-bottom: calc(var(--100vh) - var(--top-popup-bottom-bounding));\r
205
- --top-popup-left: 0px;\r
206
- \r
207
- text-align: initial; white-space: normal; word-break: normal;\r
208
- position: absolute; z-index: 200000;\r
209
- }\r
210
- \r
211
- .top-popup-wrapper:not(.top-popup-wrapper-shown) { overflow: hidden; }\r
212
- \r
213
- /* top-popupPanel */\r
214
- .top-popupPanel {\r
215
- cursor: default;\r
216
- box-shadow: var(--top-shadow-b);\r
217
- border-radius: 14px;\r
218
- background: var(--top-popup-background-color);\r
219
- position: absolute; overflow: hidden;\r
220
- display: flex; flex-direction: column;\r
221
- }\r
222
- \r
223
- /* position */\r
224
- .top-popup-wrapper > * {\r
225
- opacity: 0;\r
226
- transition: opacity var(--top-popup-transition-delay) linear, transform var(--top-popup-transition-delay) linear;\r
227
- }\r
228
- \r
229
- .top-popup-wrapper.p0 > * { transform: translateY(-8px); }\r
230
- \r
231
- .top-popup-wrapper.p1 > * { transform: translateY(8px); }\r
232
- \r
233
- .top-popup-wrapper.p2 > * { transform: translateX(8px); }\r
234
- \r
235
- .top-popup-wrapper.p3 > * { transform: translateY(8px); }\r
236
- \r
237
- .top-popup-wrapper.p4 > * { transform: translateX(-8px); }\r
238
- \r
239
- .top-popup-wrapper-shown:not(.top-popup-wrapper-closed) > * {opacity: 1;transform: translate(0, 0) !important;}\r
240
- \r
241
- .top-popup-wrapper.p0 > .top-popup { top: calc(-16px); left: calc(0px - 8px); }\r
242
- \r
243
- .top-popup-wrapper.p1 > .top-popup { bottom: calc(100% + 8px); }\r
244
- \r
245
- .top-popup-wrapper.p2 > .top-popup { left: calc(100% + 8px); }\r
246
- \r
247
- .top-popup-wrapper.p3 > .top-popup { top: calc(100% + 8px); }\r
248
- \r
249
- .top-popup-wrapper.p4 > .top-popup { right: calc(100% + 8px); }\r
250
- \r
251
- .top-popup-wrapper.p2 > .top-popup,\r
252
- .top-popup-wrapper.p4 > .top-popup { margin-top: -10px; }\r
253
- \r
254
- .top-popup-wrapper.p1.with_notch > .top-popup { margin-bottom: 5px; }\r
255
- \r
256
- .top-popup-wrapper.p2.with_notch > .top-popup { margin-left: 5px; }\r
257
- \r
258
- .top-popup-wrapper.p3.with_notch > .top-popup { margin-top: 5px; }\r
259
- \r
260
- .top-popup-wrapper.p4.with_notch > .top-popup { margin-right: 5px; }\r
261
- \r
262
- .top-popup-wrapper.invert-x > .top-popup { right: 0; }\r
263
- \r
264
- .top-popup-wrapper.invert-y > .top-popup { bottom: 0; }\r
265
- \r
266
- /* notch */\r
267
- .top-popup-wrapper > .notch { border: 7.4px solid transparent; position: absolute; display: block; }\r
268
- \r
269
- .top-popup-wrapper.p1 > .notch { border-bottom: 0; border-top: 7.4px solid var(--content-background-color); margin: 0 0 7.4px -7.4px; bottom: 100%; left: 50% }\r
270
- \r
271
- .top-popup-wrapper.p2 > .notch { border-left: 0; border-right: 7.4px solid var(--content-background-color); margin: 0 0 -7.4px 7.4px; bottom: 50%; left: 100%; }\r
272
- \r
273
- .top-popup-wrapper.p3 > .notch { border-top: 0; border-bottom: 7.4px solid var(--content-background-color); margin: 7.4px 0 0 -7.4px; top: 100%; left: 50%; }\r
274
- \r
275
- .top-popup-wrapper.p4 > .notch { border-right: 0; border-left: 7.4px solid var(--content-background-color); margin: 0 7.4px -7.4px 0; bottom: 50%; right: 100%; }\r
276
- \r
277
- .top-popup-wrapper.p1 > .notch-border { border-top-color: rgba(0, 0, 0, 0.05); margin-bottom: 6px; }\r
278
- \r
279
- .top-popup-wrapper.p2 > .notch-border { border-right-color: rgba(0, 0, 0, 0.05); margin-left: 6px; }\r
280
- \r
281
- .top-popup-wrapper.p3 > .notch-border { border-bottom-color: rgba(0, 0, 0, 0.05); margin-top: 6px; }\r
282
- \r
283
- .top-popup-wrapper.p4 > .notch-border { border-left-color: rgba(0, 0, 0, 0.05); margin-right: 6px; }\r
284
- \r
285
- /* common */\r
286
- .top-popup_header,\r
287
- .top-popup_content,\r
288
- .top-popup_footer { font-size: 14px; }\r
289
- \r
290
- .top-popup_header,\r
291
- .top-popup_footer { display: flex; align-items: center; justify-content: space-between; }\r
292
- \r
293
- /* header */\r
294
- .top-popup_header {\r
295
- color: var(--color-text-1);\r
296
- border-bottom: 1px solid var(--top-popup-border-color);\r
297
- padding: var(--top-padding-3);\r
298
- font-weight: 600;\r
299
- }\r
300
- \r
301
- .top-popup_header > * { font-weight: 400; }\r
302
- \r
303
- .top-popup_header > .a { cursor: pointer;}\r
304
- \r
305
- .top-popup_header > .a:hover { color: var(--color-text-primary-2); }\r
306
- \r
307
- .top-popup_headerButton { width: 60px; }\r
308
- \r
309
- /* widget */\r
310
- .top-popup_widget {\r
311
- padding: var(--top-padding-2) var(--top-padding-2) 0 var(--top-padding-2);\r
312
- }\r
313
- \r
314
- /* content */\r
315
- .top-popup_content {\r
316
- margin: 0;\r
317
- flex-grow: 1;\r
318
- overflow-y: auto;\r
319
- display: flex;\r
320
- flex-direction: column;\r
321
- gap: var(--top-gap-4);\r
322
- \r
323
- -webkit-overflow-scrolling: touch;\r
324
- }\r
325
- \r
326
- div.top-popup_content {\r
327
- color: var(--color-text-1);\r
328
- padding: var(--top-popup-content-padding);\r
329
- }\r
330
- \r
331
- div.top-popup_content > * { flex-shrink: 0; }\r
332
- \r
333
- div.top-popup_content > .top-button { margin: 0; }\r
334
- \r
335
- div.top-popup_content .top-unwrap {\r
336
- --top-unwrap-x: var(--top-popup-content-padding);\r
337
- }\r
338
- \r
339
- ul.top-popup_content {\r
340
- color: var(--color-text-1);\r
341
- padding: var(--top-popup-list-padding);\r
342
- gap: 2px;\r
343
- }\r
344
- \r
345
- ul.top-popup_content .top-unwrap {\r
346
- --top-unwrap-x: var(--top-popup-list-padding);\r
347
- }\r
348
- \r
349
- .top-popup_listItem {\r
350
- border-radius: var(--top-popup-listItem-radius);\r
351
- padding: var(--top-popup-listItem-padding);\r
352
- line-height: 1 !important;\r
353
- }\r
354
- \r
355
- ul.top-popup_content li { margin: 0; list-style: none; display: flex; position: relative }\r
356
- \r
357
- ul.top-popup_content li > * { flex-grow: 1; }\r
358
- \r
359
- ul.top-popup_content li > a:not(.top-button),\r
360
- ul.top-popup_content li > .a {\r
361
- cursor: pointer;\r
362
- box-sizing: border-box;\r
363
- border-radius: var(--top-popup-listItem-radius);\r
364
- background: var(--top-popup-background-color);\r
365
- padding: var(--top-popup-listItem-padding);\r
366
- color: var(--color-text-1) !important; font-size: 14px; font-weight: normal !important; text-decoration: none !important; font-style: normal;\r
367
- line-height: 1 !important;\r
368
- display: flex; flex: 1 1 100%; align-items: center;\r
369
- transition: background-color 0.1s ease-in-out;\r
370
- }\r
371
- \r
372
- .top-popup-wrapper-no_animate ul.top-popup_content li > a:not(.top-button),\r
373
- .top-popup-wrapper-no_animate ul.top-popup_content li > .a { transition: none; }\r
374
- \r
375
- ul.top-popup_content li > a:not(.top-button):hover,\r
376
- ul.top-popup_content li > .a:hover { background: var(--top-popup-background-color-hover); }\r
377
- \r
378
- ul.top-popup_content li > a:not(.top-button).top-active,\r
379
- ul.top-popup_content li > .a.top-active {\r
380
- --top-icon-color: var(--color-icon-primary-1) !important;\r
381
- \r
382
- background: var(--top-popup-background-color-active);\r
383
- }\r
384
- \r
385
- .top-popup_content + .top-popup_content { padding-top: 0; }\r
386
- \r
387
- /* listTitle */\r
388
- .top-popup_listItem-title {\r
389
- background: var(--color-layer-secondary-1);\r
390
- color: var(--color-text-1); font-size: 12px;\r
391
- }\r
392
- \r
393
- /* listDelimiter */\r
394
- .top-popup_listItem-delimiter {\r
395
- border-radius: 3px;\r
396
- background: var(--top-popup-border-color);\r
397
- height: 1px;\r
398
- padding: 0;\r
399
- margin: 4px;\r
400
- }\r
401
- \r
402
- /* listMore */\r
403
- .top-popup_listMore {\r
404
- font-size: 20px;\r
405
- 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
406
- }\r
407
- \r
408
- .top-popup_listMore.top-button { margin: 0; }\r
409
- \r
410
- ul.top-popup_content li > .a.top-popup_listMore {\r
411
- text-align: center;\r
412
- flex-basis: 10px;\r
413
- }\r
414
- \r
415
- ul.top-popup_content li > .a.top-popup_listMore:before { color: var(--color-icon-2); }\r
416
- \r
417
- ul.top-popup_content li > * > .top-popup_listMore {\r
418
- margin-left: auto;\r
419
- color: var(--color-layer-secondary-4);\r
420
- font-size: 14px;\r
421
- }\r
422
- \r
423
- ul.top-popup_content li > * > i.top-popup_listMore:hover,\r
424
- ul.top-popup_content li > * > i.top-popup_listMore.top-active { color: var(--color-text-primary-1); }\r
425
- \r
426
- ul.top-popup_content li > * > i.top-popup_listMore:before {\r
427
- transform: rotate(90deg);\r
428
- display: block;\r
429
- }\r
430
- \r
431
- ul.top-popup_content li a.close { background: none !important; }\r
432
- \r
433
- /* data-top-icon */\r
434
- .top-popup_content > [data-top-icon]:before {\r
435
- --top-icon-size: 20px;\r
436
- }\r
437
- \r
438
- ul.top-popup_content li > [data-top-icon]:not(.top-button) {\r
439
- --top-icon-color: var(--color-icon-3);\r
440
- --top-icon-size: 20px;\r
441
- --top-icon-width: 20px;\r
442
- }\r
443
- \r
444
- ul.top-popup_content li > [data-top-icon]:not(.top-button):before {\r
445
- height: 1rem; margin-right: 8px; transition: color 0.1s;\r
446
- }\r
447
- \r
448
- ul.top-popup_content li:hover > [data-top-icon]:not(.top-button) {\r
449
- --top-icon-color: var(--color-icon-2);\r
450
- }\r
451
- \r
452
- /* footer */\r
453
- .top-popup_footer {\r
454
- padding: var(--top-popup-list-padding);\r
455
- border-top: 1px solid var(--top-popup-border-color);\r
456
- display: flex;\r
457
- gap: var(--top-gap-2);\r
458
- justify-content: flex-end;\r
459
- }\r
460
- \r
461
- /* Виджеты */\r
462
- .top-popup > [data-widget] { padding: 0 var(--top-popup-list-padding); }\r
463
- \r
464
- .top-popup > [data-widget] + hr { margin: 0 var(--top-popup-list-padding); }\r
465
- \r
466
- .top-popup .placeholder {\r
467
- border: 1px solid #E0D9D9 !important; border-right: none !important; border-left: none !important; background: #F9F9F9 !important; margin: -1px 0; z-index: 1;\r
468
- position: relative;\r
469
- }\r
470
- \r
471
- /* компоненты */\r
472
- .top-popup-wrapper.simple_list > .top-popup { min-width: 0; white-space: nowrap; }\r
473
- \r
474
- .top-popup_content .top-column { display: flex; flex-direction: column; gap: 4px; }\r
475
- \r
476
- html .top-popup .top-popup_content li > .top-button {\r
477
- margin: calc(var(--top-popup-listItem-padding) / 2) var(--top-popup-listItem-padding);\r
478
- }\r
479
- \r
480
- .top-popup li .check_all,\r
481
- .top-popup li .clear_all { cursor: pointer; color: var(--color-text-primary-1); padding: 8px; display: inline-block; }\r
482
- \r
483
- .top-popup li .check_all:hover,\r
484
- .top-popup li .clear_all:hover { text-decoration: underline; }\r
485
- \r
486
- .top-popup li .clear_all { display: none; }\r
487
- \r
488
- /* table */\r
489
- .top-popup_content table { margin: -9px 0; }\r
490
- \r
491
- .top-popup_content table td,\r
492
- .top-popup_content table th { padding: 9px var(--top-popup-listItem-padding) 9px 0; vertical-align: top; }\r
493
- \r
494
- .top-popup_content table th { width: 40%; font-weight: 600; white-space: nowrap; }\r
495
- \r
496
- /* формы */\r
497
- ul.top-popup_content .a > [type="checkbox"],\r
498
- ul.top-popup_content .a > [type="radio"] { margin: -8px 0 -8px auto; }\r
499
- \r
500
- /* deprecated */\r
501
- ul.top-popup_content a > [class*=icon],\r
502
- ul.top-popup_content i.a > [class*=icon] {\r
503
- transition: 0.1s;\r
504
- }\r
505
- \r
506
- .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
507
- \r
508
- .top-popup_footer [class*=btn]:not(.btn-transparent) { min-width: 100px; padding: 5px 14px; margin-left: 10px; }\r
509
- \r
510
- .top-popup_footer [class*=btn]:first-child { margin-left: 0; }\r
511
- \r
512
- .top-popup_footer .btn.full_width { margin: 0; flex-grow: 1; }`, y = `:root{\r
513
- --top-popup-list-padding: 0px;\r
514
- \r
515
- --top-popup-listItem-radius: 0px;\r
516
- --top-popup-listItem-padding: var(--top-padding-4);\r
517
- }\r
518
- \r
519
- html.with_popup{ background: #808080; }\r
520
- \r
521
- .top-popup-wrapper{\r
522
- --top-popup-footer-offset: 25px;\r
523
- \r
524
- width: auto !important; height: auto !important;\r
525
- position: fixed; top: 0 !important; right: 0 !important; left: 0 !important; overflow: hidden;\r
526
- transition: background 0.3s;\r
527
- }\r
528
- \r
529
- .top-popup-wrapper-shown:not(.top-popup-wrapper-closed){ background: rgba(0,0,0,0.5); backdrop-filter: blur(1px); }\r
530
- .top-popup-wrapper-shown:not(.top-popup-wrapper-closed) > .top-popup{ opacity: 1 !important; }\r
531
- \r
532
- .top-popup{\r
533
- 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
534
- top: auto !important; right: 0 !important; bottom: var(--toolbar-height, 0px) !important; left: 0 !important;\r
535
- display: flex; flex-direction: column;\r
536
- \r
537
- /* невозможно опустить элемент вниз за экран на 100%, fix: opacity и translateY(80%) */\r
538
- transform: translateY(80%);\r
539
- \r
540
- transition: opacity 0.3s, transform 0.3s;\r
541
- }\r
542
- \r
543
- \r
544
- /* from top */\r
545
- .top-popup-wrapper.p-from-top{\r
546
- --top-popup-footer-offset: 0px;\r
547
- \r
548
- top: var(--header-height, 0px) !important;\r
549
- }\r
550
- .with_dialog .top-popup-wrapper.p-from-top{ top: 50px !important; }\r
551
- .top-popup-wrapper.p-from-top > .top-popup{\r
552
- border-radius: 0 0 8px 8px; max-height: calc(100% - 24px); top: 0 !important; bottom: auto !important;\r
553
- transform: translateY(calc(-100% - 24px));\r
554
- }\r
555
- \r
556
- /* widget */\r
557
- .top-popup_widget{ padding: var(--top-padding-2);}\r
558
- .top-popup_widget:not(.p-from-top){ order: 10; }\r
559
- \r
560
- /* content */\r
561
- ul.top-popup_content{\r
562
- gap: 0;\r
563
- }\r
564
- ul.top-popup_content li:not(:last-child){ border-bottom: 1px solid var(--top-popup-border-color); }\r
565
- \r
566
- .top-popup-wrapper.top-style_alt > .top-popup > ul > li{ border-bottom: none; }\r
567
- \r
568
- /* footer */\r
569
- .top-popup_footer{\r
570
- flex-direction: column-reverse;\r
571
- }\r
572
- .top-popup_footer > .top-button{\r
573
- --top-forms-base-height: var(--top-forms-base-height_l);\r
574
- \r
575
- width: 100%;\r
576
- }\r
577
- \r
578
- /* listTitle */\r
579
- ul.top-popup_content .top-popup_listItem-title{\r
580
- --top-popup-padding-v: 12px;\r
581
- }\r
582
- \r
583
- /* listDelimiter */\r
584
- ul.top-popup_content .top-popup_listItem-delimiter{ background: var(--color-line-1-opacity); height: 4px; margin: 0; }\r
585
- ul.top-popup_content li:first-child > .top-popup_listItem-delimiter{ border-top: 1px solid var(--top-popup-border-color); }`, _ = `html:not(.with_dialog){ margin-right: 0 !important; }\r
586
- \r
587
- .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
588
- .top-popup-wrapper.invert-x > .top-popup{ max-width: calc(100vw - var(--top-popup-right) - 16px); }\r
589
- .top-popup-wrapper.invert-y > .top-popup{ max-height: calc(100vh - var(--top-popup-bottom) - 16px); }\r
590
- \r
591
- /* position */\r
592
- .top-popup-wrapper.p1 > .top-popup{ max-height: calc(var(--top-popup-top) - var(--header-height, 0px) - 16px); }\r
593
- .top-popup-wrapper.p3 > .top-popup{ max-height: calc(var(--top-popup-bottom) - 16px); }\r
594
- .top-popup-wrapper.p2 > .top-popup{ max-width: calc(var(--top-popup-right) - 16px); }\r
595
- .top-popup-wrapper.p4 > .top-popup{ max-width: calc(var(--top-popup-left) - 16px); }\r
596
- \r
597
- /* notch */\r
598
- .top-popup-wrapper.p1.with_notch > .top-popup,\r
599
- .top-popup-wrapper.p3.with_notch > .top-popup{ margin-left: -16px !important; }\r
600
- .top-popup-wrapper.p1.with_notch > .notch,\r
601
- .top-popup-wrapper.p3.with_notch > .notch{ margin-left: -8px !important; }\r
602
- \r
603
- .top-popup-wrapper.p1.with_notch.invert-x,\r
604
- .top-popup-wrapper.p3.with_notch.invert-x{ margin-left: 3px !important; }\r
605
- .top-popup-wrapper.p1.with_notch.invert-x > .notch,\r
606
- .top-popup-wrapper.p3.with_notch.invert-x > .notch{ margin-left: -9px !important; }\r
607
- \r
608
- /* listMore */\r
609
- ul.top-popup_content li > * > i.top-popup_listMore{ visibility: hidden; transition: none; }\r
610
- ul.top-popup_content li:hover > * > i.top-popup_listMore,\r
611
- ul.top-popup_content li > *.top-active > i.top-popup_listMore,\r
174
+ const w = `:root {
175
+ --top-popup-z-index: 200000;
176
+ --top-popup-transition-delay: 100ms;
177
+
178
+ --top-popup-background-color: var(--color-bg-3);
179
+ --top-popup-background-color-hover: var(--color-cell-secondary-2);
180
+ --top-popup-background-color-active: var(--color-layer-primary-1);
181
+
182
+ --top-popup-border-color: var(--color-line-2-opacity);
183
+ --top-popup-title-background-color: var(--color-layer-secondary-1);
184
+
185
+ /* суммарный отсуп от каря popup до элемента */
186
+ --top-popup-content-padding: calc(var(--top-popup-list-padding) + var(--top-popup-listItem-padding));
187
+
188
+ /* списки */
189
+ --top-popup-list-padding: var(--top-padding-2);
190
+
191
+ --top-popup-listItem-radius: var(--top-radius-2);
192
+ --top-popup-listItem-padding: var(--top-padding-2);
193
+ }
194
+
195
+ .top-popup-front { position: relative; }
196
+
197
+ .top-popup-wrapper {
198
+ /* см. recalcPosition() */
199
+ --top-popup-height: 0px;
200
+ --top-popup-right-bounding: 0px;
201
+ --top-popup-bottom-bounding: 0px;
202
+ --top-popup-top: 0px;
203
+ --top-popup-right: calc(100vw - var(--top-popup-right-bounding));
204
+ --top-popup-bottom: calc(var(--100vh) - var(--top-popup-bottom-bounding));
205
+ --top-popup-left: 0px;
206
+
207
+ text-align: initial; white-space: normal; word-break: normal;
208
+ position: absolute; z-index: 200000;
209
+ }
210
+
211
+ .top-popup-wrapper:not(.top-popup-wrapper-shown) { overflow: hidden; }
212
+
213
+ /* top-popupPanel */
214
+ .top-popupPanel {
215
+ cursor: default;
216
+ box-shadow: var(--top-shadow-b);
217
+ border-radius: 14px;
218
+ background: var(--top-popup-background-color);
219
+ position: absolute; overflow: hidden;
220
+ display: flex; flex-direction: column;
221
+ }
222
+
223
+ /* position */
224
+ .top-popup-wrapper > * {
225
+ opacity: 0;
226
+ transition: opacity var(--top-popup-transition-delay) linear, transform var(--top-popup-transition-delay) linear;
227
+ }
228
+
229
+ .top-popup-wrapper.p0 > * { transform: translateY(-8px); }
230
+
231
+ .top-popup-wrapper.p1 > * { transform: translateY(8px); }
232
+
233
+ .top-popup-wrapper.p2 > * { transform: translateX(8px); }
234
+
235
+ .top-popup-wrapper.p3 > * { transform: translateY(8px); }
236
+
237
+ .top-popup-wrapper.p4 > * { transform: translateX(-8px); }
238
+
239
+ .top-popup-wrapper-shown:not(.top-popup-wrapper-closed) > * {opacity: 1;transform: translate(0, 0) !important;}
240
+
241
+ .top-popup-wrapper.p0 > .top-popup { top: calc(-16px); left: calc(0px - 8px); }
242
+
243
+ .top-popup-wrapper.p1 > .top-popup { bottom: calc(100% + 8px); }
244
+
245
+ .top-popup-wrapper.p2 > .top-popup { left: calc(100% + 8px); }
246
+
247
+ .top-popup-wrapper.p3 > .top-popup { top: calc(100% + 8px); }
248
+
249
+ .top-popup-wrapper.p4 > .top-popup { right: calc(100% + 8px); }
250
+
251
+ .top-popup-wrapper.p2 > .top-popup,
252
+ .top-popup-wrapper.p4 > .top-popup { margin-top: -10px; }
253
+
254
+ .top-popup-wrapper.p1.with_notch > .top-popup { margin-bottom: 5px; }
255
+
256
+ .top-popup-wrapper.p2.with_notch > .top-popup { margin-left: 5px; }
257
+
258
+ .top-popup-wrapper.p3.with_notch > .top-popup { margin-top: 5px; }
259
+
260
+ .top-popup-wrapper.p4.with_notch > .top-popup { margin-right: 5px; }
261
+
262
+ .top-popup-wrapper.invert-x > .top-popup { right: 0; }
263
+
264
+ .top-popup-wrapper.invert-y > .top-popup { bottom: 0; }
265
+
266
+ /* notch */
267
+ .top-popup-wrapper > .notch { border: 7.4px solid transparent; position: absolute; display: block; }
268
+
269
+ .top-popup-wrapper.p1 > .notch { border-bottom: 0; border-top: 7.4px solid var(--content-background-color); margin: 0 0 7.4px -7.4px; bottom: 100%; left: 50% }
270
+
271
+ .top-popup-wrapper.p2 > .notch { border-left: 0; border-right: 7.4px solid var(--content-background-color); margin: 0 0 -7.4px 7.4px; bottom: 50%; left: 100%; }
272
+
273
+ .top-popup-wrapper.p3 > .notch { border-top: 0; border-bottom: 7.4px solid var(--content-background-color); margin: 7.4px 0 0 -7.4px; top: 100%; left: 50%; }
274
+
275
+ .top-popup-wrapper.p4 > .notch { border-right: 0; border-left: 7.4px solid var(--content-background-color); margin: 0 7.4px -7.4px 0; bottom: 50%; right: 100%; }
276
+
277
+ .top-popup-wrapper.p1 > .notch-border { border-top-color: rgba(0, 0, 0, 0.05); margin-bottom: 6px; }
278
+
279
+ .top-popup-wrapper.p2 > .notch-border { border-right-color: rgba(0, 0, 0, 0.05); margin-left: 6px; }
280
+
281
+ .top-popup-wrapper.p3 > .notch-border { border-bottom-color: rgba(0, 0, 0, 0.05); margin-top: 6px; }
282
+
283
+ .top-popup-wrapper.p4 > .notch-border { border-left-color: rgba(0, 0, 0, 0.05); margin-right: 6px; }
284
+
285
+ /* common */
286
+ .top-popup_header,
287
+ .top-popup_content,
288
+ .top-popup_footer { font-size: 14px; }
289
+
290
+ .top-popup_header,
291
+ .top-popup_footer { display: flex; align-items: center; justify-content: space-between; }
292
+
293
+ /* header */
294
+ .top-popup_header {
295
+ color: var(--color-text-1);
296
+ border-bottom: 1px solid var(--top-popup-border-color);
297
+ padding: var(--top-padding-3);
298
+ font-weight: 600;
299
+ }
300
+
301
+ .top-popup_header > * { font-weight: 400; }
302
+
303
+ .top-popup_header > .a { cursor: pointer;}
304
+
305
+ .top-popup_header > .a:hover { color: var(--color-text-primary-2); }
306
+
307
+ .top-popup_headerButton { width: 60px; }
308
+
309
+ /* widget */
310
+ .top-popup_widget {
311
+ padding: var(--top-padding-2) var(--top-padding-2) 0 var(--top-padding-2);
312
+ }
313
+
314
+ /* content */
315
+ .top-popup_content {
316
+ margin: 0;
317
+ flex-grow: 1;
318
+ overflow-y: auto;
319
+ display: flex;
320
+ flex-direction: column;
321
+ gap: var(--top-gap-4);
322
+
323
+ -webkit-overflow-scrolling: touch;
324
+ }
325
+
326
+ div.top-popup_content {
327
+ color: var(--color-text-1);
328
+ padding: var(--top-popup-content-padding);
329
+ }
330
+
331
+ div.top-popup_content > * { flex-shrink: 0; }
332
+
333
+ div.top-popup_content > .top-button { margin: 0; }
334
+
335
+ div.top-popup_content .top-unwrap {
336
+ --top-unwrap-x: var(--top-popup-content-padding);
337
+ }
338
+
339
+ ul.top-popup_content {
340
+ color: var(--color-text-1);
341
+ padding: var(--top-popup-list-padding);
342
+ gap: 2px;
343
+ }
344
+
345
+ ul.top-popup_content .top-unwrap {
346
+ --top-unwrap-x: var(--top-popup-list-padding);
347
+ }
348
+
349
+ .top-popup_listItem {
350
+ border-radius: var(--top-popup-listItem-radius);
351
+ padding: var(--top-popup-listItem-padding);
352
+ line-height: 1 !important;
353
+ }
354
+
355
+ ul.top-popup_content li { margin: 0; list-style: none; display: flex; position: relative }
356
+
357
+ ul.top-popup_content li > * { flex-grow: 1; }
358
+
359
+ ul.top-popup_content li > a:not(.top-button),
360
+ ul.top-popup_content li > .a {
361
+ cursor: pointer;
362
+ box-sizing: border-box;
363
+ border-radius: var(--top-popup-listItem-radius);
364
+ background: var(--top-popup-background-color);
365
+ padding: var(--top-popup-listItem-padding);
366
+ color: var(--color-text-1) !important; font-size: 14px; font-weight: normal !important; text-decoration: none !important; font-style: normal;
367
+ line-height: 1 !important;
368
+ display: flex; flex: 1 1 100%; align-items: center;
369
+ transition: background-color 0.1s ease-in-out;
370
+ }
371
+
372
+ .top-popup-wrapper-no_animate ul.top-popup_content li > a:not(.top-button),
373
+ .top-popup-wrapper-no_animate ul.top-popup_content li > .a { transition: none; }
374
+
375
+ ul.top-popup_content li > a:not(.top-button):hover,
376
+ ul.top-popup_content li > .a:hover { background: var(--top-popup-background-color-hover); }
377
+
378
+ ul.top-popup_content li > a:not(.top-button).top-active,
379
+ ul.top-popup_content li > .a.top-active {
380
+ --top-icon-color: var(--color-icon-primary-1) !important;
381
+
382
+ background: var(--top-popup-background-color-active);
383
+ }
384
+
385
+ .top-popup_content + .top-popup_content { padding-top: 0; }
386
+
387
+ /* listTitle */
388
+ .top-popup_listItem-title {
389
+ background: var(--color-layer-secondary-1);
390
+ color: var(--color-text-1); font-size: 12px;
391
+ }
392
+
393
+ /* listDelimiter */
394
+ .top-popup_listItem-delimiter {
395
+ border-radius: 3px;
396
+ background: var(--top-popup-border-color);
397
+ height: 1px;
398
+ padding: 0;
399
+ margin: 4px;
400
+ }
401
+
402
+ /* listMore */
403
+ .top-popup_listMore {
404
+ font-size: 20px;
405
+ margin: calc(0px - var(--top-popup-listItem-padding)) calc(0px - var(--top-popup-listItem-padding) / 2) calc(0px - var(--top-popup-listItem-padding)) 0;
406
+ }
407
+
408
+ .top-popup_listMore.top-button { margin: 0; }
409
+
410
+ ul.top-popup_content li > .a.top-popup_listMore {
411
+ text-align: center;
412
+ flex-basis: 10px;
413
+ }
414
+
415
+ ul.top-popup_content li > .a.top-popup_listMore:before { color: var(--color-icon-2); }
416
+
417
+ ul.top-popup_content li > * > .top-popup_listMore {
418
+ margin-left: auto;
419
+ color: var(--color-layer-secondary-4);
420
+ font-size: 14px;
421
+ }
422
+
423
+ ul.top-popup_content li > * > i.top-popup_listMore:hover,
424
+ ul.top-popup_content li > * > i.top-popup_listMore.top-active { color: var(--color-text-primary-1); }
425
+
426
+ ul.top-popup_content li > * > i.top-popup_listMore:before {
427
+ transform: rotate(90deg);
428
+ display: block;
429
+ }
430
+
431
+ ul.top-popup_content li a.close { background: none !important; }
432
+
433
+ /* data-top-icon */
434
+ .top-popup_content > [data-top-icon]:before {
435
+ --top-icon-size: 20px;
436
+ }
437
+
438
+ ul.top-popup_content li > [data-top-icon]:not(.top-button) {
439
+ --top-icon-color: var(--color-icon-3);
440
+ --top-icon-size: 20px;
441
+ --top-icon-width: 20px;
442
+ }
443
+
444
+ ul.top-popup_content li > [data-top-icon]:not(.top-button):before {
445
+ height: 1rem; margin-right: 8px; transition: color 0.1s;
446
+ }
447
+
448
+ ul.top-popup_content li:hover > [data-top-icon]:not(.top-button) {
449
+ --top-icon-color: var(--color-icon-2);
450
+ }
451
+
452
+ /* footer */
453
+ .top-popup_footer {
454
+ padding: var(--top-popup-list-padding);
455
+ border-top: 1px solid var(--top-popup-border-color);
456
+ display: flex;
457
+ gap: var(--top-gap-2);
458
+ justify-content: flex-end;
459
+ }
460
+
461
+ /* Виджеты */
462
+ .top-popup > [data-widget] { padding: 0 var(--top-popup-list-padding); }
463
+
464
+ .top-popup > [data-widget] + hr { margin: 0 var(--top-popup-list-padding); }
465
+
466
+ .top-popup .placeholder {
467
+ border: 1px solid #E0D9D9 !important; border-right: none !important; border-left: none !important; background: #F9F9F9 !important; margin: -1px 0; z-index: 1;
468
+ position: relative;
469
+ }
470
+
471
+ /* компоненты */
472
+ .top-popup-wrapper.simple_list > .top-popup { min-width: 0; white-space: nowrap; }
473
+
474
+ .top-popup_content .top-column { display: flex; flex-direction: column; gap: 4px; }
475
+
476
+ html .top-popup .top-popup_content li > .top-button {
477
+ margin: calc(var(--top-popup-listItem-padding) / 2) var(--top-popup-listItem-padding);
478
+ }
479
+
480
+ .top-popup li .check_all,
481
+ .top-popup li .clear_all { cursor: pointer; color: var(--color-text-primary-1); padding: 8px; display: inline-block; }
482
+
483
+ .top-popup li .check_all:hover,
484
+ .top-popup li .clear_all:hover { text-decoration: underline; }
485
+
486
+ .top-popup li .clear_all { display: none; }
487
+
488
+ /* table */
489
+ .top-popup_content table { margin: -9px 0; }
490
+
491
+ .top-popup_content table td,
492
+ .top-popup_content table th { padding: 9px var(--top-popup-listItem-padding) 9px 0; vertical-align: top; }
493
+
494
+ .top-popup_content table th { width: 40%; font-weight: 600; white-space: nowrap; }
495
+
496
+ /* формы */
497
+ ul.top-popup_content .a > [type="checkbox"],
498
+ ul.top-popup_content .a > [type="radio"] { margin: -8px 0 -8px auto; }
499
+
500
+ /* deprecated */
501
+ ul.top-popup_content a > [class*=icon],
502
+ ul.top-popup_content i.a > [class*=icon] {
503
+ transition: 0.1s;
504
+ }
505
+
506
+ .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; }
507
+
508
+ .top-popup_footer [class*=btn]:not(.btn-transparent) { min-width: 100px; padding: 5px 14px; margin-left: 10px; }
509
+
510
+ .top-popup_footer [class*=btn]:first-child { margin-left: 0; }
511
+
512
+ .top-popup_footer .btn.full_width { margin: 0; flex-grow: 1; }`, y = `:root{
513
+ --top-popup-list-padding: 0px;
514
+
515
+ --top-popup-listItem-radius: 0px;
516
+ --top-popup-listItem-padding: var(--top-padding-4);
517
+ }
518
+
519
+ html.with_popup{ background: #808080; }
520
+
521
+ .top-popup-wrapper{
522
+ --top-popup-footer-offset: 25px;
523
+
524
+ width: auto !important; height: auto !important;
525
+ position: fixed; top: 0 !important; right: 0 !important; left: 0 !important; overflow: hidden;
526
+ transition: background 0.3s;
527
+ }
528
+
529
+ .top-popup-wrapper-shown:not(.top-popup-wrapper-closed){ background: rgba(0,0,0,0.5); backdrop-filter: blur(1px); }
530
+ .top-popup-wrapper-shown:not(.top-popup-wrapper-closed) > .top-popup{ opacity: 1 !important; }
531
+
532
+ .top-popup{
533
+ 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;
534
+ top: auto !important; right: 0 !important; bottom: var(--toolbar-height, 0px) !important; left: 0 !important;
535
+ display: flex; flex-direction: column;
536
+
537
+ /* невозможно опустить элемент вниз за экран на 100%, fix: opacity и translateY(80%) */
538
+ transform: translateY(80%);
539
+
540
+ transition: opacity 0.3s, transform 0.3s;
541
+ }
542
+
543
+
544
+ /* from top */
545
+ .top-popup-wrapper.p-from-top{
546
+ --top-popup-footer-offset: 0px;
547
+
548
+ top: var(--header-height, 0px) !important;
549
+ }
550
+ .with_dialog .top-popup-wrapper.p-from-top{ top: 50px !important; }
551
+ .top-popup-wrapper.p-from-top > .top-popup{
552
+ border-radius: 0 0 8px 8px; max-height: calc(100% - 24px); top: 0 !important; bottom: auto !important;
553
+ transform: translateY(calc(-100% - 24px));
554
+ }
555
+
556
+ /* widget */
557
+ .top-popup_widget{ padding: var(--top-padding-2);}
558
+ .top-popup_widget:not(.p-from-top){ order: 10; }
559
+
560
+ /* content */
561
+ ul.top-popup_content{
562
+ gap: 0;
563
+ }
564
+ ul.top-popup_content li:not(:last-child){ border-bottom: 1px solid var(--top-popup-border-color); }
565
+
566
+ .top-popup-wrapper.top-style_alt > .top-popup > ul > li{ border-bottom: none; }
567
+
568
+ /* footer */
569
+ .top-popup_footer{
570
+ flex-direction: column-reverse;
571
+ }
572
+ .top-popup_footer > .top-button{
573
+ --top-forms-base-height: var(--top-forms-base-height_l);
574
+
575
+ width: 100%;
576
+ }
577
+
578
+ /* listTitle */
579
+ ul.top-popup_content .top-popup_listItem-title{
580
+ --top-popup-padding-v: 12px;
581
+ }
582
+
583
+ /* listDelimiter */
584
+ ul.top-popup_content .top-popup_listItem-delimiter{ background: var(--color-line-1-opacity); height: 4px; margin: 0; }
585
+ ul.top-popup_content li:first-child > .top-popup_listItem-delimiter{ border-top: 1px solid var(--top-popup-border-color); }`, _ = `html:not(.with_dialog){ margin-right: 0 !important; }
586
+
587
+ .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)); }
588
+ .top-popup-wrapper.invert-x > .top-popup{ max-width: calc(100vw - var(--top-popup-right) - 16px); }
589
+ .top-popup-wrapper.invert-y > .top-popup{ max-height: calc(100vh - var(--top-popup-bottom) - 16px); }
590
+
591
+ /* position */
592
+ .top-popup-wrapper.p1 > .top-popup{ max-height: calc(var(--top-popup-top) - var(--header-height, 0px) - 16px); }
593
+ .top-popup-wrapper.p3 > .top-popup{ max-height: calc(var(--top-popup-bottom) - 16px); }
594
+ .top-popup-wrapper.p2 > .top-popup{ max-width: calc(var(--top-popup-right) - 16px); }
595
+ .top-popup-wrapper.p4 > .top-popup{ max-width: calc(var(--top-popup-left) - 16px); }
596
+
597
+ /* notch */
598
+ .top-popup-wrapper.p1.with_notch > .top-popup,
599
+ .top-popup-wrapper.p3.with_notch > .top-popup{ margin-left: -16px !important; }
600
+ .top-popup-wrapper.p1.with_notch > .notch,
601
+ .top-popup-wrapper.p3.with_notch > .notch{ margin-left: -8px !important; }
602
+
603
+ .top-popup-wrapper.p1.with_notch.invert-x,
604
+ .top-popup-wrapper.p3.with_notch.invert-x{ margin-left: 3px !important; }
605
+ .top-popup-wrapper.p1.with_notch.invert-x > .notch,
606
+ .top-popup-wrapper.p3.with_notch.invert-x > .notch{ margin-left: -9px !important; }
607
+
608
+ /* listMore */
609
+ ul.top-popup_content li > * > i.top-popup_listMore{ visibility: hidden; transition: none; }
610
+ ul.top-popup_content li:hover > * > i.top-popup_listMore,
611
+ ul.top-popup_content li > *.top-active > i.top-popup_listMore,
612
612
  ul.top-popup_content li > * > i.top-popup_listMore.top-active{ visibility: visible; }`;
613
613
  f.appendStyle(w);
614
614
  f.appendStyle(y, "m");
@@ -670,17 +670,17 @@ class x extends v {
670
670
  return super(), this.init(x.componentName, t, p);
671
671
  }
672
672
  async mount() {
673
- var e, i, s, a;
673
+ var e, r, s, a;
674
674
  if (!(this.el instanceof HTMLElement)) return;
675
675
  const t = this.vueGetComponent();
676
- if (this.el.closest(".top-popup-wrapper") && (this.popupParent = l.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)
677
- this.type = "vue", this.options.popup = "", this.elPopup = r.genEl("div", {}, this.options.popup);
676
+ if (this.el.closest(".top-popup-wrapper") && (this.popupParent = l.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)
677
+ this.type = "vue", this.options.popup = "", this.elPopup = n.genEl("div", {}, this.options.popup);
678
678
  else if ((e = this.options.popup) != null && e.match(/^[#.]/))
679
679
  this.type = "selector", this.elPopup = document.querySelector(`${this.options.popup}.template`);
680
680
  else {
681
681
  if (this.type = "html", this.options.useOriginal)
682
682
  throw "Option useOriginal not allowed for text templates";
683
- this.elPopup = r.genEl("div", {}, this.options.popup ?? "");
683
+ this.elPopup = n.genEl("div", {}, this.options.popup ?? "");
684
684
  }
685
685
  if (!this.elPopup || t != null && t.opened) {
686
686
  if (this.options.useOriginal || t != null && t.opened) {
@@ -694,25 +694,25 @@ class x extends v {
694
694
  }
695
695
  if (!this.elPopup)
696
696
  return;
697
- 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) => {
698
- n instanceof HTMLElement && (n.dataset.topPopupPosBy = "fixed");
699
- }), r.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(
697
+ 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) => {
698
+ i instanceof HTMLElement && (i.dataset.topPopupPosBy = "fixed");
699
+ }), n.querySelectorAllArray(this.elPopup, ".top-popup-wrapper").forEach((i) => i.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(
700
700
  "--top-popup-transition-delay",
701
701
  this.options.transitionDuration + "ms"
702
702
  ))), this.elPopupInner = document.createElement("div"), this.elPopupInner.classList.add("top-popupPanel", "top-popup"); this.elPopup.firstChild; )
703
703
  this.elPopupInner.appendChild(this.elPopup.firstChild);
704
704
  if (this.elPopup.append(this.elPopupInner), this.elPopup.classList.add("top-popup-wrapper"), this.options.class) {
705
- const n = this.options.class.split(" ");
706
- this.elPopup.classList.add(...n);
705
+ const i = this.options.class.split(" ");
706
+ this.elPopup.classList.add(...i);
707
707
  }
708
708
  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");
709
709
  const p = !!this.elPopup.querySelector('[data-widget="search"]');
710
- this.options.isFullScreen && !p && !this.elPopupHeader && (i = this.options.i18n) != null && i.Close && (this.elPopupHeader = r.genEl("i", { class: "top-popup_header" }), this.elPopupInner.prepend(this.elPopupHeader), this.elPopupHeader.prepend(r.genEl("i", { class: "a closer" }, (s = this.options.i18n) == null ? void 0 : s.Close)), this.elPopupHeader.append(r.genEl("i", { class: "top-popup_headerButton" }))), r.storage(this.elPopup, "Popup", 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"), (a = this.el.parentElement) == null || a.insertBefore(this.elPopup, this.el), this.elPopup.classList.remove("template"), this.options.invertX && this.elPopup.classList.add("invert-x");
710
+ this.options.isFullScreen && !p && !this.elPopupHeader && (r = this.options.i18n) != null && r.Close && (this.elPopupHeader = n.genEl("i", { class: "top-popup_header" }), this.elPopupInner.prepend(this.elPopupHeader), this.elPopupHeader.prepend(n.genEl("i", { class: "a closer" }, (s = this.options.i18n) == null ? void 0 : s.Close)), this.elPopupHeader.append(n.genEl("i", { class: "top-popup_headerButton" }))), n.storage(this.elPopup, "Popup", 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"), (a = this.el.parentElement) == null || a.insertBefore(this.elPopup, this.el), this.elPopup.classList.remove("template"), this.options.invertX && this.elPopup.classList.add("invert-x");
711
711
  let o = !!this.el.closest(".modal-header");
712
712
  o || (o = !!this.el.closest("#top_panel")), o || (o = !!this.el.closest("#secondmenu")), o && this.elPopup.classList.add("p-from-top"), setTimeout(() => {
713
- var n;
714
- return (n = this.elPopup) == null ? void 0 : n.classList.add("top-popup-wrapper-shown");
715
- }), 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(), l.decoratorAfterOpen(this), this.mountEvents();
713
+ var i;
714
+ return (i = this.elPopup) == null ? void 0 : i.classList.add("top-popup-wrapper-shown");
715
+ }), 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(), l.decoratorAfterOpen(this), this.mountEvents();
716
716
  }
717
717
  async mountJQuery() {
718
718
  f.$ && (this.$ = f.$(this.el));
@@ -722,7 +722,7 @@ class x extends v {
722
722
  */
723
723
  focus() {
724
724
  let t;
725
- 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(() => {
725
+ 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(() => {
726
726
  t instanceof HTMLElement && t.focus();
727
727
  }, this.options.transitionDuration));
728
728
  }
@@ -735,8 +735,8 @@ class x extends v {
735
735
  onMousedown(t) {
736
736
  if (!this.elPopup || !(t.target instanceof Element) || !this.isFirstClick || (this.isFirstClick = !1, setTimeout(() => this.isFirstClick = !0), t instanceof MouseEvent && t.button !== 0))
737
737
  return;
738
- let p = r.querySelectorVisibleLast(document.body, ":scope > .top-popup-wrapper");
739
- 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") || l.decoratorIsIgnoreOuterClick(t) || l.close(this.elPopup);
738
+ let p = n.querySelectorVisibleLast(document.body, ":scope > .top-popup-wrapper");
739
+ 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") || l.decoratorIsIgnoreOuterClick(t) || l.close(this.elPopup);
740
740
  }
741
741
  /**
742
742
  * Закрыть другие Popup при фокусе на элемент формы в текущем
@@ -745,8 +745,8 @@ class x extends v {
745
745
  if (t.target instanceof Element && t.target.matches("input") || this.isClosed)
746
746
  return;
747
747
  l.getAllVisible().forEach((o) => {
748
- var e, i, s, a;
749
- (e = this.elPopup) != null && e.contains(o) || ((i = this.popupParent) == null ? void 0 : i.elPopup) === o || ((a = (s = this.popupParent) == null ? void 0 : s.popupParent) == null ? void 0 : a.elPopup) === o || l.close(o);
748
+ var e, r, s, a;
749
+ (e = this.elPopup) != null && e.contains(o) || ((r = this.popupParent) == null ? void 0 : r.elPopup) === o || ((a = (s = this.popupParent) == null ? void 0 : s.popupParent) == null ? void 0 : a.elPopup) === o || l.close(o);
750
750
  });
751
751
  }
752
752
  /**
@@ -761,7 +761,7 @@ class x extends v {
761
761
  * Контроль положения Popup при fixed позиционировании
762
762
  */
763
763
  onResize() {
764
- 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");
764
+ 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");
765
765
  }
766
766
  unmount() {
767
767
  super.unmount(), this.el instanceof HTMLElement && (this.el.dataset.topPopupOpened = ""), this.elActiveByDefault || this.el.classList.remove("top-active");
@@ -790,16 +790,16 @@ class x extends v {
790
790
  }
791
791
  const o = this.elPopup.getBoundingClientRect();
792
792
  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");
793
- let e = !1, i = !1, s = !1, a = !1, n = o.left > window.innerWidth / 2, d = o.top > window.innerHeight / 2;
794
- t === 4 && (n = !n), t === 1 && (d = !d);
793
+ let e = !1, r = !1, s = !1, a = !1, i = o.left > window.innerWidth / 2, d = o.top > window.innerHeight / 2;
794
+ t === 4 && (i = !i), t === 1 && (d = !d);
795
795
  const h = (b = this.elPopupInner) == null ? void 0 : b.getBoundingClientRect();
796
796
  let u, c;
797
797
  if (h) {
798
798
  u = window.innerWidth - h.right, c = window.innerHeight - h.bottom;
799
799
  const g = 8;
800
- h.top < g && (e = !0), u < g && (i = !0), c < g && (s = !0), h.left < g && (a = !0);
800
+ h.top < g && (e = !0), u < g && (r = !0), c < g && (s = !0), h.left < g && (a = !0);
801
801
  }
802
- e && (t === 0 || t === 1) && d && (t = 3), s && t === 3 && d && (t = 1), i && t === 2 && n && (t = 4), a && t === 4 && n && (t = 2), i && (t === 0 || t === 1 || t === 3) && this.elPopup.classList.add("invert-x"), s && (t === 2 || t === 4) && d && (t === 2 && !n && this.elPopup.classList.add("invert-y"), t === 4 && !n && 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 = ""), l.scrollToActive(this.elPopup);
802
+ e && (t === 0 || t === 1) && d && (t = 3), s && t === 3 && d && (t = 1), r && t === 2 && i && (t = 4), a && t === 4 && i && (t = 2), r && (t === 0 || t === 1 || t === 3) && this.elPopup.classList.add("invert-x"), s && (t === 2 || t === 4) && d && (t === 2 && !i && this.elPopup.classList.add("invert-y"), t === 4 && !i && 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 = ""), l.scrollToActive(this.elPopup);
803
803
  }
804
804
  onTouchmove(t) {
805
805
  var p, o, e;
@@ -812,9 +812,9 @@ class x extends v {
812
812
  close() {
813
813
  var t;
814
814
  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(() => {
815
- var e, i, s, a, n;
815
+ var e, r, s, a, i;
816
816
  if (this.vueClose(), !this.elPopup) return;
817
- 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"), (s = this.elPopup.querySelector(".notch-border")) == null || s.remove(), (a = this.elPopup.querySelector(".notch")) == null || a.remove(), (n = this.elPopupInner) == null || n.replaceWith(...this.elPopupInner.childNodes), r.storageClear(this.elPopup)) : (r.storageClear(this.elPopup), this.elPopup.remove(), delete this.elPopup);
817
+ 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"), (s = this.elPopup.querySelector(".notch-border")) == null || s.remove(), (a = this.elPopup.querySelector(".notch")) == null || a.remove(), (i = this.elPopupInner) == null || i.replaceWith(...this.elPopupInner.childNodes), n.storageClear(this.elPopup)) : (n.storageClear(this.elPopup), this.elPopup.remove(), delete this.elPopup);
818
818
  const p = l.getAllVisible(), o = p.length && p[p.length - 1];
819
819
  o ? l.getPopup(o).focus() : document.documentElement.classList.remove("with_popup");
820
820
  }, this.options.transitionDuration)));
@@ -837,4 +837,4 @@ export {
837
837
  x as Popup,
838
838
  x as default
839
839
  };
840
- //# sourceMappingURL=popup-BWTP6yaC.es.js.map
840
+ //# sourceMappingURL=popup-DUd8G4iQ.es.js.map