@topvisor/ui 0.9.29-0 → 0.9.29

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 (121) hide show
  1. package/.chunks/datepicker-C5l1LY9e.es.js +276 -0
  2. package/.chunks/datepicker-C5l1LY9e.es.js.map +1 -0
  3. package/.chunks/datepicker-CCrqadMd.amd.js +234 -0
  4. package/.chunks/datepicker-CCrqadMd.amd.js.map +1 -0
  5. package/.chunks/{forms-DBYpY73Z.amd.js → forms-0MQ_zU80.amd.js} +3 -3
  6. package/.chunks/forms-0MQ_zU80.amd.js.map +1 -0
  7. package/.chunks/{forms-BScWgSrn.es.js → forms-BwLbWSIF.es.js} +99 -97
  8. package/.chunks/forms-BwLbWSIF.es.js.map +1 -0
  9. package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-BzEj4QFY.es.js → listItem.vue_vue_type_script_setup_true_lang-C4297RyP.es.js} +39 -37
  10. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-C4297RyP.es.js.map +1 -0
  11. package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-D-5F2CnX.amd.js → listItem.vue_vue_type_script_setup_true_lang-Cr9e1nzK.amd.js} +2 -2
  12. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-Cr9e1nzK.amd.js.map +1 -0
  13. package/.chunks/{menu-BWyv8Yuu.amd.js → menu-BGUYnOx6.amd.js} +2 -2
  14. package/.chunks/menu-BGUYnOx6.amd.js.map +1 -0
  15. package/.chunks/{menu-DbC1zr5j.es.js → menu-Czk2awpe.es.js} +41 -39
  16. package/.chunks/menu-Czk2awpe.es.js.map +1 -0
  17. package/.chunks/{popup-B4tgc-1X.es.js → popup-C5Ha2nU3.es.js} +431 -438
  18. package/.chunks/popup-C5Ha2nU3.es.js.map +1 -0
  19. package/.chunks/{popup-DPzeQf9t.amd.js → popup-CcxDRowY.amd.js} +386 -393
  20. package/.chunks/popup-CcxDRowY.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/.chunks/{widgetInput-DCXTtndM.es.js → widgetInput-DZXnw5Ms.es.js} +13 -11
  24. package/.chunks/widgetInput-DZXnw5Ms.es.js.map +1 -0
  25. package/.chunks/{widgetInput-L8yGX3-T.amd.js → widgetInput-DfOBj0qz.amd.js} +2 -2
  26. package/.chunks/widgetInput-DfOBj0qz.amd.js.map +1 -0
  27. package/README.md +86 -86
  28. package/assets/core.css +1 -1
  29. package/assets/dark.css +1 -1
  30. package/assets/forms.css +1 -1
  31. package/assets/formsExt.css +1 -1
  32. package/assets/light.css +1 -1
  33. package/assets/menu.css +1 -1
  34. package/assets/tabs.css +1 -1
  35. package/assets/tabsView.css +1 -1
  36. package/assets/widgetInput.css +1 -1
  37. package/core/core.amd.js +1 -1
  38. package/core/core.js +1 -1
  39. package/forms/forms.amd.js +1 -1
  40. package/forms/forms.js +1 -1
  41. package/forms/helpers.amd.js.map +1 -1
  42. package/forms/helpers.js.map +1 -1
  43. package/formsExt/formsExt.amd.js +1 -1
  44. package/formsExt/formsExt.amd.js.map +1 -1
  45. package/formsExt/formsExt.js +21 -20
  46. package/formsExt/formsExt.js.map +1 -1
  47. package/icomoon/Read Me.txt +7 -7
  48. package/icomoon/demo-files/demo.css +161 -161
  49. package/icomoon/demo-files/demo.js +30 -30
  50. package/icomoon/demo.html +3239 -3239
  51. package/icomoon/fonts/Topvisor-2.svg +253 -253
  52. package/icomoon/style.css +710 -710
  53. package/package.json +24 -20
  54. package/popup/popup.amd.js +1 -1
  55. package/popup/popup.js +2 -2
  56. package/popup/worker.amd.js +1 -1
  57. package/popup/worker.amd.js.map +1 -1
  58. package/popup/worker.js +2 -2
  59. package/popup/worker.js.map +1 -1
  60. package/project/project.amd.js +1 -1
  61. package/project/project.amd.js.map +1 -1
  62. package/project/project.js +33 -31
  63. package/project/project.js.map +1 -1
  64. package/require/css.amd.js +17 -11
  65. package/src/core/utils/css.d.ts +3 -1
  66. package/src/core/utils/system.d.ts +1 -1
  67. package/tabs/tabs.amd.js +1 -1
  68. package/tabs/tabs.js +23 -21
  69. package/tabs/tabs.js.map +1 -1
  70. package/tabsView/tabsView.amd.js +1 -1
  71. package/tabsView/tabsView.amd.js.map +1 -1
  72. package/tabsView/tabsView.js +45 -43
  73. package/tabsView/tabsView.js.map +1 -1
  74. package/utils/check.amd.js.map +1 -1
  75. package/utils/check.js.map +1 -1
  76. package/utils/common.amd.js.map +1 -1
  77. package/utils/common.js.map +1 -1
  78. package/utils/css.amd.js +1 -1
  79. package/utils/css.amd.js.map +1 -1
  80. package/utils/css.js +24 -29
  81. package/utils/css.js.map +1 -1
  82. package/utils/date.amd.js +1 -1
  83. package/utils/date.js +1 -1
  84. package/utils/device.amd.js +1 -1
  85. package/utils/device.js +1 -1
  86. package/utils/dom.amd.js.map +1 -1
  87. package/utils/dom.js.map +1 -1
  88. package/utils/keyboard.amd.js.map +1 -1
  89. package/utils/keyboard.js.map +1 -1
  90. package/utils/price.amd.js.map +1 -1
  91. package/utils/price.js.map +1 -1
  92. package/utils/route.amd.js.map +1 -1
  93. package/utils/route.js.map +1 -1
  94. package/utils/scroll.amd.js +1 -1
  95. package/utils/scroll.amd.js.map +1 -1
  96. package/utils/scroll.js +1 -1
  97. package/utils/scroll.js.map +1 -1
  98. package/utils/string.amd.js.map +1 -1
  99. package/utils/string.js.map +1 -1
  100. package/utils/system.amd.js +1 -1
  101. package/utils/system.amd.js.map +1 -1
  102. package/utils/system.js +14 -14
  103. package/utils/system.js.map +1 -1
  104. package/utils/url.amd.js.map +1 -1
  105. package/utils/url.js.map +1 -1
  106. package/utils/window.amd.js +1 -1
  107. package/utils/window.js +1 -1
  108. package/.chunks/datepicker-BWFx68Rc.amd.js +0 -247
  109. package/.chunks/datepicker-BWFx68Rc.amd.js.map +0 -1
  110. package/.chunks/datepicker-BfPBssvK.es.js +0 -289
  111. package/.chunks/datepicker-BfPBssvK.es.js.map +0 -1
  112. package/.chunks/forms-BScWgSrn.es.js.map +0 -1
  113. package/.chunks/forms-DBYpY73Z.amd.js.map +0 -1
  114. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-BzEj4QFY.es.js.map +0 -1
  115. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-D-5F2CnX.amd.js.map +0 -1
  116. package/.chunks/menu-BWyv8Yuu.amd.js.map +0 -1
  117. package/.chunks/menu-DbC1zr5j.es.js.map +0 -1
  118. package/.chunks/popup-B4tgc-1X.es.js.map +0 -1
  119. package/.chunks/popup-DPzeQf9t.amd.js.map +0 -1
  120. package/.chunks/widgetInput-DCXTtndM.es.js.map +0 -1
  121. package/.chunks/widgetInput-L8yGX3-T.amd.js.map +0 -1
@@ -1,5 +1,5 @@
1
- import { C as f } from "./forms-BScWgSrn.es.js";
2
- import r from "../utils/dom.js";
1
+ import { C as f } from "./forms-BwLbWSIF.es.js";
2
+ import n from "../utils/dom.js";
3
3
  import { PopupWorker 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,420 +148,413 @@ 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-layer-secondary-1);\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
- .top-popup-wrapper:not(.top-popup-wrapper-shown) { overflow: hidden; }\r
211
- \r
212
- /* top-popupPanel */\r
213
- .top-popupPanel {\r
214
- cursor: default;\r
215
- box-shadow: var(--top-shadow-b);\r
216
- border-radius: 14px;\r
217
- background: var(--top-popup-background-color);\r
218
- position: absolute; overflow: hidden;\r
219
- display: flex; flex-direction: column;\r
220
- }\r
221
- \r
222
- /* position */\r
223
- .top-popup-wrapper > * {\r
224
- opacity: 0;\r
225
- transition: opacity var(--top-popup-transition-delay) linear, transform var(--top-popup-transition-delay) linear;\r
226
- }\r
227
- .top-popup-wrapper.p0 > * { transform: translateY(-8px); }\r
228
- .top-popup-wrapper.p1 > * { transform: translateY(8px); }\r
229
- .top-popup-wrapper.p2 > * { transform: translateX(8px); }\r
230
- .top-popup-wrapper.p3 > * { transform: translateY(8px); }\r
231
- .top-popup-wrapper.p4 > * { transform: translateX(-8px); }\r
232
- .top-popup-wrapper-shown:not(.top-popup-wrapper-closed) > * {opacity: 1;transform: translate(0, 0) !important;}\r
233
- \r
234
- .top-popup-wrapper.p0 > .top-popup { top: calc(-16px); left: calc(0px - 8px); }\r
235
- .top-popup-wrapper.p1 > .top-popup { bottom: calc(100% + 8px); }\r
236
- .top-popup-wrapper.p2 > .top-popup { left: calc(100% + 8px); }\r
237
- .top-popup-wrapper.p3 > .top-popup { top: calc(100% + 8px); }\r
238
- .top-popup-wrapper.p4 > .top-popup { right: calc(100% + 8px); }\r
239
- .top-popup-wrapper.p2 > .top-popup,\r
240
- .top-popup-wrapper.p4 > .top-popup { margin-top: -10px; }\r
241
- \r
242
- .top-popup-wrapper.p1.with_notch > .top-popup { margin-bottom: 5px; }\r
243
- .top-popup-wrapper.p2.with_notch > .top-popup { margin-left: 5px; }\r
244
- .top-popup-wrapper.p3.with_notch > .top-popup { margin-top: 5px; }\r
245
- .top-popup-wrapper.p4.with_notch > .top-popup { margin-right: 5px; }\r
246
- \r
247
- .top-popup-wrapper.invert-x > .top-popup { right: 0; }\r
248
- .top-popup-wrapper.invert-y > .top-popup { bottom: 0; }\r
249
- \r
250
- /* notch */\r
251
- .top-popup-wrapper > .notch { border: 7.4px solid transparent; position: absolute; display: block; }\r
252
- \r
253
- .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
254
- .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
255
- .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
256
- .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
257
- \r
258
- .top-popup-wrapper.p1 > .notch-border { border-top-color: rgba(0, 0, 0, 0.05); margin-bottom: 6px; }\r
259
- .top-popup-wrapper.p2 > .notch-border { border-right-color: rgba(0, 0, 0, 0.05); margin-left: 6px; }\r
260
- .top-popup-wrapper.p3 > .notch-border { border-bottom-color: rgba(0, 0, 0, 0.05); margin-top: 6px; }\r
261
- .top-popup-wrapper.p4 > .notch-border { border-left-color: rgba(0, 0, 0, 0.05); margin-right: 6px; }\r
262
- \r
263
- /* common */\r
264
- .top-popup_header,\r
265
- .top-popup_content,\r
266
- .top-popup_footer { font-size: 14px; }\r
267
- .top-popup_header,\r
268
- .top-popup_footer { display: flex; align-items: center; justify-content: space-between; }\r
269
- \r
270
- /* header */\r
271
- .top-popup_header {\r
272
- color: var(--color-text-1);\r
273
- border-bottom: 1px solid var(--top-popup-border-color);\r
274
- padding: var(--top-padding-3);\r
275
- font-weight: 600;\r
276
- }\r
277
- .top-popup_header > * { font-weight: 400; }\r
278
- .top-popup_header > .a { cursor: pointer;}\r
279
- .top-popup_header > .a:hover { color: var(--color-text-primary-2); }\r
280
- \r
281
- .top-popup_headerButton { width: 60px; }\r
282
- \r
283
- /* widget */\r
284
- .top-popup_widget {\r
285
- padding: var(--top-padding-2) var(--top-padding-2) 0 var(--top-padding-2);\r
286
- }\r
287
- \r
288
- /* content */\r
289
- .top-popup_content {\r
290
- margin: 0;\r
291
- flex-grow: 1;\r
292
- overflow-y: auto;\r
293
- display: flex;\r
294
- flex-direction: column;\r
295
- gap: var(--top-gap-4);\r
296
- \r
297
- -webkit-overflow-scrolling: touch;\r
298
- }\r
299
- \r
300
- div.top-popup_content {\r
301
- color: var(--color-text-1);\r
302
- padding: var(--top-popup-content-padding);\r
303
- }\r
304
- div.top-popup_content > * { flex-shrink: 0; }\r
305
- div.top-popup_content > .top-button { margin: 0; }\r
306
- \r
307
- div.top-popup_content .top-unwrap {\r
308
- --top-unwrap-x: var(--top-popup-content-padding);\r
309
- }\r
310
- \r
311
- ul.top-popup_content {\r
312
- color: var(--color-text-1);\r
313
- padding: var(--top-popup-list-padding);\r
314
- gap: 2px;\r
315
- }\r
316
- \r
317
- ul.top-popup_content .top-unwrap {\r
318
- --top-unwrap-x: var(--top-popup-list-padding);\r
319
- }\r
320
- \r
321
- .top-popup_listItem {\r
322
- border-radius: var(--top-popup-listItem-radius);\r
323
- padding: var(--top-popup-listItem-padding);\r
324
- line-height: 1 !important;\r
325
- }\r
326
- \r
327
- ul.top-popup_content li { margin: 0; list-style: none; display: flex; position: relative }\r
328
- ul.top-popup_content li > * { flex-grow: 1; }\r
329
- ul.top-popup_content li > a:not(.top-button),\r
330
- ul.top-popup_content li > .a {\r
331
- cursor: pointer;\r
332
- box-sizing: border-box;\r
333
- border-radius: var(--top-popup-listItem-radius);\r
334
- background: var(--top-popup-background-color);\r
335
- padding: var(--top-popup-listItem-padding);\r
336
- color: var(--color-text-1) !important; font-size: 14px; font-weight: normal !important; text-decoration: none !important; font-style: normal;\r
337
- line-height: 1 !important;\r
338
- display: flex; flex: 1 1 100%; align-items: center;\r
339
- transition: background-color 0.1s ease-in-out;\r
340
- }\r
341
- .top-popup-wrapper-no_animate ul.top-popup_content li > a:not(.top-button),\r
342
- .top-popup-wrapper-no_animate ul.top-popup_content li > .a { transition: none; }\r
343
- \r
344
- ul.top-popup_content li > a:not(.top-button):hover,\r
345
- ul.top-popup_content li > .a:hover { background: var(--top-popup-background-color-hover); \r
346
- }\r
347
- ul.top-popup_content li > a:not(.top-button).top-active,\r
348
- ul.top-popup_content li > .a.top-active {\r
349
- background: var(--top-popup-background-color-active); \r
350
- color: var(--color-text-primary-1)!important;\r
351
- }\r
352
- \r
353
- .top-popup_content + .top-popup_content { padding-top: 0; }\r
354
- \r
355
- /* listTitle */\r
356
- .top-popup_listItem-title {\r
357
- background: var(--color-layer-secondary-1);\r
358
- color: var(--color-text-1); font-size: 12px;\r
359
- }\r
360
- \r
361
- /* listDelimiter */\r
362
- .top-popup_listItem-delimiter {\r
363
- border-radius: 3px;\r
364
- background: var(--top-popup-border-color);\r
365
- height: 1px;\r
366
- padding: 0;\r
367
- margin: 4px;\r
368
- }\r
369
- \r
370
- /* listMore */\r
371
- .top-popup_listMore {\r
372
- font-size: 20px;\r
373
- 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
374
- }\r
375
- \r
376
- .top-popup_listMore.top-button{ margin: 0; }\r
377
- \r
378
- ul.top-popup_content li > .a.top-popup_listMore {\r
379
- text-align: center;\r
380
- flex-basis: 10px;\r
381
- }\r
382
- ul.top-popup_content li > .a.top-popup_listMore:before { color: var(--color-layer-secondary-3); }\r
383
- ul.top-popup_content li > * > .top-popup_listMore {\r
384
- margin-left: auto;\r
385
- color: var(--color-layer-secondary-4);\r
386
- font-size: 14px;\r
387
- }\r
388
- ul.top-popup_content li > * > i.top-popup_listMore:hover,\r
389
- ul.top-popup_content li > * > i.top-popup_listMore.top-active { color: var(--color-text-primary-1); }\r
390
- ul.top-popup_content li > * > i.top-popup_listMore:before {\r
391
- transform: rotate(90deg);\r
392
- display: block;\r
393
- }\r
394
- \r
395
- ul.top-popup_content li a.close { background: none !important; }\r
396
- \r
397
- /* data-top-icon */\r
398
- .top-popup_content > [data-top-icon]:before {\r
399
- --top-icon-size: 20px;\r
400
- }\r
401
- \r
402
- ul.top-popup_content li > [data-top-icon]:not(.top-button):before {\r
403
- --top-icon-color: var(--color-text-2);\r
404
- --top-icon-size: 20px;\r
405
- --top-icon-width: 20px;\r
406
- \r
407
- height: 1rem; margin-right: 8px; transition: color 0.1s;\r
408
- }\r
409
- ul.top-popup_content li:hover > [data-top-icon]:not(.top-button):before,\r
410
- ul.top-popup_content li > [data-top-icon]:not(.top-button).top-active:before {\r
411
- --top-icon-color: var(--color-text-primary-1);\r
412
- }\r
413
- \r
414
- /* footer */\r
415
- .top-popup_footer {\r
416
- padding: var(--top-popup-list-padding);\r
417
- border-top: 1px solid var(--top-popup-border-color);\r
418
- display: flex;\r
419
- gap: var(--top-gap-2);\r
420
- justify-content: flex-end;\r
421
- }\r
422
- \r
423
- /* Виджеты */\r
424
- .top-popup > [data-widget] { padding: 0 var(--top-popup-list-padding); }\r
425
- .top-popup > [data-widget] + hr { margin: 0 var(--top-popup-list-padding); }\r
426
- \r
427
- .top-popup .placeholder {\r
428
- border: 1px solid #E0D9D9 !important; border-right: none !important; border-left: none !important; background: #F9F9F9 !important; margin: -1px 0; z-index: 1;\r
429
- position: relative;\r
430
- }\r
431
- \r
432
- /* компоненты */\r
433
- .top-popup-wrapper.simple_list > .top-popup { min-width: 0; white-space: nowrap; }\r
434
- \r
435
- .top-popup_content .top-column { display: flex; flex-direction: column; gap: 4px; }\r
436
- html .top-popup .top-popup_content li > .top-button {\r
437
- margin: calc(var(--top-popup-listItem-padding) / 2) var(--top-popup-listItem-padding);\r
438
- }\r
439
- \r
440
- .top-popup li .check_all,\r
441
- .top-popup li .clear_all { cursor: pointer; color: var(--color-text-primary-1); padding: 8px; display: inline-block; }\r
442
- .top-popup li .check_all:hover,\r
443
- .top-popup li .clear_all:hover { text-decoration: underline; }\r
444
- .top-popup li .clear_all { display: none; }\r
445
- \r
446
- /* table */\r
447
- .top-popup_content table { margin: -9px 0; }\r
448
- .top-popup_content table td,\r
449
- .top-popup_content table th { padding: 9px var(--top-popup-listItem-padding) 9px 0; vertical-align: top; }\r
450
- .top-popup_content table th { width: 40%; font-weight: 600; white-space: nowrap; }\r
451
- \r
452
- /* формы */\r
453
- ul.top-popup_content .a > [type="checkbox"],\r
454
- ul.top-popup_content .a > [type="radio"] { margin: -8px 0 -8px auto; }\r
455
- \r
456
- /* deprecated */\r
457
- ul.top-popup_content a > [class*=icon],\r
458
- ul.top-popup_content i.a > [class*=icon] {\r
459
- transition: 0.1s;\r
460
- }\r
461
- \r
462
- .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
463
- .top-popup_footer [class*=btn]:not(.btn-transparent) { min-width: 100px; padding: 5px 14px; margin-left: 10px; }\r
464
- .top-popup_footer [class*=btn]:first-child { margin-left: 0; }\r
465
- .top-popup_footer .btn.full_width { margin: 0; flex-grow: 1; }`, y = `:root{\r
466
- --top-popup-list-padding: 0px;\r
467
- \r
468
- --top-popup-listItem-radius: 0px;\r
469
- --top-popup-listItem-padding: var(--top-padding-4);\r
470
- }\r
471
- \r
472
- html.with_popup{ background: #808080; }\r
473
- \r
474
- .top-popup-wrapper{\r
475
- --top-popup-footer-offset: 25px;\r
476
- \r
477
- width: auto !important; height: auto !important;\r
478
- position: fixed; top: 0 !important; right: 0 !important; left: 0 !important; overflow: hidden;\r
479
- transition: background 0.3s;\r
480
- }\r
481
- \r
482
- .top-popup-wrapper-shown:not(.top-popup-wrapper-closed){ background: rgba(0,0,0,0.5); backdrop-filter: blur(1px); }\r
483
- .top-popup-wrapper-shown:not(.top-popup-wrapper-closed) > .top-popup{ opacity: 1 !important; }\r
484
- \r
485
- .top-popup{\r
486
- 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
487
- top: auto !important; right: 0 !important; bottom: var(--toolbar-height, 0px) !important; left: 0 !important;\r
488
- display: flex; flex-direction: column;\r
489
- \r
490
- /* невозможно опустить элемент вниз за экран на 100%, fix: opacity и translateY(80%) */\r
491
- transform: translateY(80%);\r
492
- \r
493
- transition: opacity 0.3s, transform 0.3s;\r
494
- }\r
495
- \r
496
- \r
497
- /* from top */\r
498
- .top-popup-wrapper.p-from-top{\r
499
- --top-popup-footer-offset: 0px;\r
500
- \r
501
- top: var(--header-height, 0px) !important;\r
502
- }\r
503
- .with_dialog .top-popup-wrapper.p-from-top{ top: 50px !important; }\r
504
- .top-popup-wrapper.p-from-top > .top-popup{\r
505
- border-radius: 0 0 8px 8px; max-height: calc(100% - 24px); top: 0 !important; bottom: auto !important;\r
506
- transform: translateY(calc(-100% - 24px));\r
507
- }\r
508
- \r
509
- /* widget */\r
510
- .top-popup_widget{ padding: var(--top-padding-2);}\r
511
- .top-popup_widget:not(.p-from-top){ order: 10; }\r
512
- \r
513
- /* content */\r
514
- ul.top-popup_content{\r
515
- gap: 0;\r
516
- }\r
517
- ul.top-popup_content li:not(:last-child){ border-bottom: 1px solid var(--top-popup-border-color); }\r
518
- \r
519
- .top-popup-wrapper.top-style_alt > .top-popup > ul > li{ border-bottom: none; }\r
520
- \r
521
- /* footer */\r
522
- .top-popup_footer{\r
523
- flex-direction: column-reverse;\r
524
- }\r
525
- .top-popup_footer > .top-button{\r
526
- --top-forms-base-height: var(--top-forms-base-height_l);\r
527
- \r
528
- width: 100%;\r
529
- }\r
530
- \r
531
- /* listTitle */\r
532
- ul.top-popup_content .top-popup_listItem-title{\r
533
- --top-popup-padding-v: 12px;\r
534
- }\r
535
- \r
536
- /* listDelimiter */\r
537
- ul.top-popup_content .top-popup_listItem-delimiter{ background: var(--color-line-1-opacity); height: 4px; margin: 0; }\r
538
- 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
539
- \r
540
- .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
541
- .top-popup-wrapper.invert-x > .top-popup{ max-width: calc(100vw - var(--top-popup-right) - 16px); }\r
542
- .top-popup-wrapper.invert-y > .top-popup{ max-height: calc(100vh - var(--top-popup-bottom) - 16px); }\r
543
- \r
544
- /* position */\r
545
- .top-popup-wrapper.p1 > .top-popup{ max-height: calc(var(--top-popup-top) - var(--header-height, 0px) - 16px); }\r
546
- .top-popup-wrapper.p3 > .top-popup{ max-height: calc(var(--top-popup-bottom) - 16px); }\r
547
- .top-popup-wrapper.p2 > .top-popup{ max-width: calc(var(--top-popup-right) - 16px); }\r
548
- .top-popup-wrapper.p4 > .top-popup{ max-width: calc(var(--top-popup-left) - 16px); }\r
549
- \r
550
- /* notch */\r
551
- .top-popup-wrapper.p1.with_notch > .top-popup,\r
552
- .top-popup-wrapper.p3.with_notch > .top-popup{ margin-left: -16px !important; }\r
553
- .top-popup-wrapper.p1.with_notch > .notch,\r
554
- .top-popup-wrapper.p3.with_notch > .notch{ margin-left: -8px !important; }\r
555
- \r
556
- .top-popup-wrapper.p1.with_notch.invert-x,\r
557
- .top-popup-wrapper.p3.with_notch.invert-x{ margin-left: 3px !important; }\r
558
- .top-popup-wrapper.p1.with_notch.invert-x > .notch,\r
559
- .top-popup-wrapper.p3.with_notch.invert-x > .notch{ margin-left: -9px !important; }\r
560
- \r
561
- /* listMore */\r
562
- ul.top-popup_content li > * > i.top-popup_listMore{ visibility: hidden; transition: none; }\r
563
- ul.top-popup_content li:hover > * > i.top-popup_listMore,\r
564
- 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-theme-75);
180
+ --top-popup-background-color-active: var(--color-theme-100);
181
+
182
+ --top-popup-border-color: var(--color-line-2-opacity);
183
+ --top-popup-title-background-color: var(--color-theme-50);
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
+ .top-popup-wrapper:not(.top-popup-wrapper-shown) { overflow: hidden; }
211
+
212
+ /* top-popupPanel */
213
+ .top-popupPanel {
214
+ cursor: default;
215
+ box-shadow: var(--top-shadow-b);
216
+ border-radius: 8px;
217
+ background: var(--top-popup-background-color);
218
+ position: absolute; overflow: hidden;
219
+ display: flex; flex-direction: column;
220
+ }
221
+
222
+ /* position */
223
+ .top-popup-wrapper > * {
224
+ opacity: 0;
225
+ transition: opacity var(--top-popup-transition-delay) linear, transform var(--top-popup-transition-delay) linear;
226
+ }
227
+ .top-popup-wrapper.p0 > * { transform: translateY(-8px); }
228
+ .top-popup-wrapper.p1 > * { transform: translateY(8px); }
229
+ .top-popup-wrapper.p2 > * { transform: translateX(8px); }
230
+ .top-popup-wrapper.p3 > * { transform: translateY(8px); }
231
+ .top-popup-wrapper.p4 > * { transform: translateX(-8px); }
232
+ .top-popup-wrapper-shown:not(.top-popup-wrapper-closed) > * {opacity: 1;transform: translate(0, 0) !important;}
233
+
234
+ .top-popup-wrapper.p0 > .top-popup { top: calc(-16px); left: calc(0px - 8px); }
235
+ .top-popup-wrapper.p1 > .top-popup { bottom: calc(100% + 8px); }
236
+ .top-popup-wrapper.p2 > .top-popup { left: calc(100% + 8px); }
237
+ .top-popup-wrapper.p3 > .top-popup { top: calc(100% + 8px); }
238
+ .top-popup-wrapper.p4 > .top-popup { right: calc(100% + 8px); }
239
+ .top-popup-wrapper.p2 > .top-popup,
240
+ .top-popup-wrapper.p4 > .top-popup { margin-top: -10px; }
241
+
242
+ .top-popup-wrapper.p1.with_notch > .top-popup { margin-bottom: 5px; }
243
+ .top-popup-wrapper.p2.with_notch > .top-popup { margin-left: 5px; }
244
+ .top-popup-wrapper.p3.with_notch > .top-popup { margin-top: 5px; }
245
+ .top-popup-wrapper.p4.with_notch > .top-popup { margin-right: 5px; }
246
+
247
+ .top-popup-wrapper.invert-x > .top-popup { right: 0; }
248
+ .top-popup-wrapper.invert-y > .top-popup { bottom: 0; }
249
+
250
+ /* notch */
251
+ .top-popup-wrapper > .notch { border: 7.4px solid transparent; position: absolute; display: block; }
252
+
253
+ .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% }
254
+ .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%; }
255
+ .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%; }
256
+ .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%; }
257
+
258
+ .top-popup-wrapper.p1 > .notch-border { border-top-color: rgba(0, 0, 0, 0.05); margin-bottom: 6px; }
259
+ .top-popup-wrapper.p2 > .notch-border { border-right-color: rgba(0, 0, 0, 0.05); margin-left: 6px; }
260
+ .top-popup-wrapper.p3 > .notch-border { border-bottom-color: rgba(0, 0, 0, 0.05); margin-top: 6px; }
261
+ .top-popup-wrapper.p4 > .notch-border { border-left-color: rgba(0, 0, 0, 0.05); margin-right: 6px; }
262
+
263
+ /* common */
264
+ .top-popup_header,
265
+ .top-popup_content,
266
+ .top-popup_footer { font-size: 14px; }
267
+ .top-popup_header,
268
+ .top-popup_footer { display: flex; align-items: center; justify-content: space-between; }
269
+
270
+ /* header */
271
+ .top-popup_header {
272
+ border-bottom: 1px solid var(--top-popup-border-color);
273
+ padding: var(--top-padding-3);
274
+ font-weight: 600;
275
+ }
276
+ .top-popup_header > * { font-weight: 400; }
277
+ .top-popup_header > .a { cursor: pointer; color: var(--color-blue-450); }
278
+ .top-popup_header > .a:hover { color: var(--color-blue-350); }
279
+
280
+ .top-popup_headerButton { width: 60px; }
281
+
282
+ /* widget */
283
+ .top-popup_widget {
284
+ padding: var(--top-padding-2) var(--top-padding-2) 0 var(--top-padding-2);
285
+ }
286
+
287
+ /* content */
288
+ .top-popup_content {
289
+ margin: 0;
290
+ flex-grow: 1;
291
+ overflow-y: auto;
292
+ display: flex;
293
+ flex-direction: column;
294
+ gap: var(--top-gap-4);
295
+
296
+ -webkit-overflow-scrolling: touch;
297
+ }
298
+
299
+ div.top-popup_content {
300
+ padding: var(--top-popup-content-padding);
301
+ }
302
+ div.top-popup_content > * { flex-shrink: 0; }
303
+ div.top-popup_content > .top-button { margin: 0; }
304
+
305
+ div.top-popup_content .top-unwrap {
306
+ --top-unwrap-x: var(--top-popup-content-padding);
307
+ }
308
+
309
+ ul.top-popup_content {
310
+ padding: var(--top-popup-list-padding);
311
+ gap: 2px;
312
+ }
313
+
314
+ ul.top-popup_content .top-unwrap {
315
+ --top-unwrap-x: var(--top-popup-list-padding);
316
+ }
317
+
318
+ .top-popup_listItem {
319
+ border-radius: var(--top-popup-listItem-radius);
320
+ padding: var(--top-popup-listItem-padding);
321
+ line-height: 1 !important;
322
+ }
323
+
324
+ ul.top-popup_content li { margin: 0; list-style: none; display: flex; position: relative }
325
+ ul.top-popup_content li > * { flex-grow: 1; }
326
+ ul.top-popup_content li > a:not(.top-button),
327
+ ul.top-popup_content li > .a {
328
+ cursor: pointer;
329
+ box-sizing: border-box;
330
+ border-radius: var(--top-popup-listItem-radius);
331
+ background: var(--top-popup-background-color);
332
+ padding: var(--top-popup-listItem-padding);
333
+ color: var(--color-text) !important; font-size: 14px; font-weight: normal !important; text-decoration: none !important; font-style: normal;
334
+ line-height: 1 !important;
335
+ display: flex; flex: 1 1 100%; align-items: center;
336
+ transition: background-color 0.1s ease-in-out;
337
+ }
338
+ .top-popup-wrapper-no_animate ul.top-popup_content li > a:not(.top-button),
339
+ .top-popup-wrapper-no_animate ul.top-popup_content li > .a { transition: none; }
340
+
341
+ ul.top-popup_content li > a:not(.top-button):hover,
342
+ ul.top-popup_content li > .a:hover { background: var(--top-popup-background-color-hover); }
343
+ ul.top-popup_content li > a:not(.top-button).top-active,
344
+ ul.top-popup_content li > .a.top-active { background: var(--top-popup-background-color-active); }
345
+
346
+ .top-popup_content + .top-popup_content { padding-top: 0; }
347
+
348
+ /* listTitle */
349
+ .top-popup_listItem-title {
350
+ background: var(--top-popup-title-background-color);
351
+ color: var(--color-text-2); font-size: 12px;
352
+ }
353
+
354
+ /* listDelimiter */
355
+ .top-popup_listItem-delimiter {
356
+ border-radius: 3px;
357
+ background: var(--top-popup-border-color);
358
+ height: 1px;
359
+ padding: 0;
360
+ margin: 4px;
361
+ }
362
+
363
+ /* listMore */
364
+ .top-popup_listMore {
365
+ font-size: 20px;
366
+ margin: calc(0px - var(--top-popup-listItem-padding)) calc(0px - var(--top-popup-listItem-padding) / 2) calc(0px - var(--top-popup-listItem-padding)) 0;
367
+ }
368
+
369
+ .top-popup_listMore.top-button{ margin: 0; }
370
+
371
+ ul.top-popup_content li > .a.top-popup_listMore {
372
+ text-align: center;
373
+ flex-basis: 10px;
374
+ }
375
+ ul.top-popup_content li > .a.top-popup_listMore:before { color: var(--color-gray-500); }
376
+ ul.top-popup_content li > * > .top-popup_listMore {
377
+ margin-left: auto;
378
+ color: var(--color-gray-500);
379
+ font-size: 14px;
380
+ }
381
+ ul.top-popup_content li > * > i.top-popup_listMore:hover,
382
+ ul.top-popup_content li > * > i.top-popup_listMore.top-active { color: var(--color-blue-500); }
383
+ ul.top-popup_content li > * > i.top-popup_listMore:before {
384
+ transform: rotate(90deg);
385
+ display: block;
386
+ }
387
+
388
+ ul.top-popup_content li a.close { background: none !important; }
389
+
390
+ /* data-top-icon */
391
+ .top-popup_content > [data-top-icon]:before {
392
+ --top-icon-size: 20px;
393
+ }
394
+
395
+ ul.top-popup_content li > [data-top-icon]:not(.top-button):before {
396
+ --top-icon-color: var(--color-text-3);
397
+ --top-icon-size: 20px;
398
+ --top-icon-width: 20px;
399
+
400
+ height: 1rem; margin-right: 8px; transition: color 0.1s;
401
+ }
402
+ ul.top-popup_content li:hover > [data-top-icon]:not(.top-button):before,
403
+ ul.top-popup_content li > [data-top-icon]:not(.top-button).top-active:before {
404
+ --top-icon-color: var(--color-text-2);
405
+ }
406
+
407
+ /* footer */
408
+ .top-popup_footer {
409
+ padding: var(--top-popup-list-padding);
410
+ border-top: 1px solid var(--top-popup-border-color);
411
+ display: flex;
412
+ gap: var(--top-gap-2);
413
+ justify-content: flex-end;
414
+ }
415
+
416
+ /* Виджеты */
417
+ .top-popup > [data-widget] { padding: 0 var(--top-popup-list-padding); }
418
+ .top-popup > [data-widget] + hr { margin: 0 var(--top-popup-list-padding); }
419
+
420
+ .top-popup .placeholder {
421
+ border: 1px solid #E0D9D9 !important; border-right: none !important; border-left: none !important; background: #F9F9F9 !important; margin: -1px 0; z-index: 1;
422
+ position: relative;
423
+ }
424
+
425
+ /* компоненты */
426
+ .top-popup-wrapper.simple_list > .top-popup { min-width: 0; white-space: nowrap; }
427
+
428
+ .top-popup_content .top-column { display: flex; flex-direction: column; gap: 4px; }
429
+ html .top-popup .top-popup_content li > .top-button {
430
+ margin: calc(var(--top-popup-listItem-padding) / 2) var(--top-popup-listItem-padding);
431
+ }
432
+
433
+ .top-popup li .check_all,
434
+ .top-popup li .clear_all { cursor: pointer; color: var(--color-cyan); padding: 8px; display: inline-block; }
435
+ .top-popup li .check_all:hover,
436
+ .top-popup li .clear_all:hover { text-decoration: underline; }
437
+ .top-popup li .clear_all { display: none; }
438
+
439
+ /* table */
440
+ .top-popup_content table { margin: -9px 0; }
441
+ .top-popup_content table td,
442
+ .top-popup_content table th { padding: 9px var(--top-popup-listItem-padding) 9px 0; vertical-align: top; }
443
+ .top-popup_content table th { width: 40%; font-weight: 600; white-space: nowrap; }
444
+
445
+ /* формы */
446
+ ul.top-popup_content .a > [type="checkbox"],
447
+ ul.top-popup_content .a > [type="radio"] { margin: -8px 0 -8px auto; }
448
+
449
+ /* deprecated */
450
+ ul.top-popup_content a > [class*=icon],
451
+ ul.top-popup_content i.a > [class*=icon] {
452
+ transition: 0.1s;
453
+ }
454
+
455
+ .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; }
456
+ .top-popup_footer [class*=btn]:not(.btn-transparent) { min-width: 100px; padding: 5px 14px; margin-left: 10px; }
457
+ .top-popup_footer [class*=btn]:first-child { margin-left: 0; }
458
+ .top-popup_footer .btn.full_width { margin: 0; flex-grow: 1; }`, y = `:root{
459
+ --top-popup-list-padding: 0px;
460
+
461
+ --top-popup-listItem-radius: 0px;
462
+ --top-popup-listItem-padding: var(--top-padding-4);
463
+ }
464
+
465
+ html.with_popup{ background: #808080; }
466
+
467
+ .top-popup-wrapper{
468
+ --top-popup-footer-offset: 25px;
469
+
470
+ width: auto !important; height: auto !important;
471
+ position: fixed; top: 0 !important; right: 0 !important; left: 0 !important; overflow: hidden;
472
+ transition: background 0.3s;
473
+ }
474
+
475
+ .top-popup-wrapper-shown:not(.top-popup-wrapper-closed){ background: rgba(0,0,0,0.5); backdrop-filter: blur(1px); }
476
+ .top-popup-wrapper-shown:not(.top-popup-wrapper-closed) > .top-popup{ opacity: 1 !important; }
477
+
478
+ .top-popup{
479
+ 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;
480
+ top: auto !important; right: 0 !important; bottom: var(--toolbar-height, 0px) !important; left: 0 !important;
481
+ display: flex; flex-direction: column;
482
+
483
+ /* невозможно опустить элемент вниз за экран на 100%, fix: opacity и translateY(80%) */
484
+ transform: translateY(80%);
485
+
486
+ transition: opacity 0.3s, transform 0.3s;
487
+ }
488
+
489
+
490
+ /* from top */
491
+ .top-popup-wrapper.p-from-top{
492
+ --top-popup-footer-offset: 0px;
493
+
494
+ top: var(--header-height, 0px) !important;
495
+ }
496
+ .with_dialog .top-popup-wrapper.p-from-top{ top: 50px !important; }
497
+ .top-popup-wrapper.p-from-top > .top-popup{
498
+ border-radius: 0 0 8px 8px; max-height: calc(100% - 24px); top: 0 !important; bottom: auto !important;
499
+ transform: translateY(calc(-100% - 24px));
500
+ }
501
+
502
+ /* widget */
503
+ .top-popup_widget{ padding: var(--top-padding-2);}
504
+ .top-popup_widget:not(.p-from-top){ order: 10; }
505
+
506
+ /* content */
507
+ ul.top-popup_content{
508
+ gap: 0;
509
+ }
510
+ ul.top-popup_content li:not(:last-child){ border-bottom: 1px solid var(--top-popup-border-color); }
511
+
512
+ .top-popup-wrapper.top-style_alt > .top-popup > ul > li{ border-bottom: none; }
513
+
514
+ /* footer */
515
+ .top-popup_footer{
516
+ flex-direction: column-reverse;
517
+ }
518
+ .top-popup_footer > .top-button{
519
+ --top-forms-base-height: var(--top-forms-base-height_l);
520
+
521
+ width: 100%;
522
+ }
523
+
524
+ /* listTitle */
525
+ ul.top-popup_content .top-popup_listItem-title{
526
+ --top-popup-padding-v: 12px;
527
+ }
528
+
529
+ /* listDelimiter */
530
+ ul.top-popup_content .top-popup_listItem-delimiter{ background: var(--color-line-1-opacity); height: 4px; margin: 0; }
531
+ 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; }
532
+
533
+ .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)); }
534
+ .top-popup-wrapper.invert-x > .top-popup{ max-width: calc(100vw - var(--top-popup-right) - 16px); }
535
+ .top-popup-wrapper.invert-y > .top-popup{ max-height: calc(100vh - var(--top-popup-bottom) - 16px); }
536
+
537
+ /* position */
538
+ .top-popup-wrapper.p1 > .top-popup{ max-height: calc(var(--top-popup-top) - var(--header-height, 0px) - 16px); }
539
+ .top-popup-wrapper.p3 > .top-popup{ max-height: calc(var(--top-popup-bottom) - 16px); }
540
+ .top-popup-wrapper.p2 > .top-popup{ max-width: calc(var(--top-popup-right) - 16px); }
541
+ .top-popup-wrapper.p4 > .top-popup{ max-width: calc(var(--top-popup-left) - 16px); }
542
+
543
+ /* notch */
544
+ .top-popup-wrapper.p1.with_notch > .top-popup,
545
+ .top-popup-wrapper.p3.with_notch > .top-popup{ margin-left: -16px !important; }
546
+ .top-popup-wrapper.p1.with_notch > .notch,
547
+ .top-popup-wrapper.p3.with_notch > .notch{ margin-left: -8px !important; }
548
+
549
+ .top-popup-wrapper.p1.with_notch.invert-x,
550
+ .top-popup-wrapper.p3.with_notch.invert-x{ margin-left: 3px !important; }
551
+ .top-popup-wrapper.p1.with_notch.invert-x > .notch,
552
+ .top-popup-wrapper.p3.with_notch.invert-x > .notch{ margin-left: -9px !important; }
553
+
554
+ /* listMore */
555
+ ul.top-popup_content li > * > i.top-popup_listMore{ visibility: hidden; transition: none; }
556
+ ul.top-popup_content li:hover > * > i.top-popup_listMore,
557
+ ul.top-popup_content li > *.top-active > i.top-popup_listMore,
565
558
  ul.top-popup_content li > * > i.top-popup_listMore.top-active{ visibility: visible; }`;
566
559
  f.appendStyle(w);
567
560
  f.appendStyle(y, "m");
@@ -623,17 +616,17 @@ class x extends v {
623
616
  return super(), this.init(x.componentName, t, p);
624
617
  }
625
618
  async mount() {
626
- var e, i, s, a;
619
+ var e, r, s, a;
627
620
  if (!(this.el instanceof HTMLElement)) return;
628
621
  const t = this.vueGetComponent();
629
- 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)
630
- this.type = "vue", this.options.popup = "", this.elPopup = r.genEl("div", {}, this.options.popup);
622
+ 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)
623
+ this.type = "vue", this.options.popup = "", this.elPopup = n.genEl("div", {}, this.options.popup);
631
624
  else if ((e = this.options.popup) != null && e.match(/^[#.]/))
632
625
  this.type = "selector", this.elPopup = document.querySelector(`${this.options.popup}.template`);
633
626
  else {
634
627
  if (this.type = "html", this.options.useOriginal)
635
628
  throw "Option useOriginal not allowed for text templates";
636
- this.elPopup = r.genEl("div", {}, this.options.popup ?? "");
629
+ this.elPopup = n.genEl("div", {}, this.options.popup ?? "");
637
630
  }
638
631
  if (!this.elPopup || t != null && t.opened) {
639
632
  if (this.options.useOriginal || t != null && t.opened) {
@@ -647,25 +640,25 @@ class x extends v {
647
640
  }
648
641
  if (!this.elPopup)
649
642
  return;
650
- 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) => {
651
- n instanceof HTMLElement && (n.dataset.topPopupPosBy = "fixed");
652
- }), 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(
643
+ 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) => {
644
+ i instanceof HTMLElement && (i.dataset.topPopupPosBy = "fixed");
645
+ }), 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(
653
646
  "--top-popup-transition-delay",
654
647
  this.options.transitionDuration + "ms"
655
648
  ))), this.elPopupInner = document.createElement("div"), this.elPopupInner.classList.add("top-popupPanel", "top-popup"); this.elPopup.firstChild; )
656
649
  this.elPopupInner.appendChild(this.elPopup.firstChild);
657
650
  if (this.elPopup.append(this.elPopupInner), this.elPopup.classList.add("top-popup-wrapper"), this.options.class) {
658
- const n = this.options.class.split(" ");
659
- this.elPopup.classList.add(...n);
651
+ const i = this.options.class.split(" ");
652
+ this.elPopup.classList.add(...i);
660
653
  }
661
654
  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");
662
655
  const p = !!this.elPopup.querySelector('[data-widget="search"]');
663
- 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");
656
+ 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");
664
657
  let o = !!this.el.closest(".modal-header");
665
658
  o || (o = !!this.el.closest("#top_panel")), o || (o = !!this.el.closest("#secondmenu")), o && this.elPopup.classList.add("p-from-top"), setTimeout(() => {
666
- var n;
667
- return (n = this.elPopup) == null ? void 0 : n.classList.add("top-popup-wrapper-shown");
668
- }), 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();
659
+ var i;
660
+ return (i = this.elPopup) == null ? void 0 : i.classList.add("top-popup-wrapper-shown");
661
+ }), 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();
669
662
  }
670
663
  async mountJQuery() {
671
664
  f.$ && (this.$ = f.$(this.el));
@@ -675,7 +668,7 @@ class x extends v {
675
668
  */
676
669
  focus() {
677
670
  let t;
678
- 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(() => {
671
+ 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(() => {
679
672
  t instanceof HTMLElement && t.focus();
680
673
  }, this.options.transitionDuration));
681
674
  }
@@ -688,8 +681,8 @@ class x extends v {
688
681
  onMousedown(t) {
689
682
  if (!this.elPopup || !(t.target instanceof Element) || !this.isFirstClick || (this.isFirstClick = !1, setTimeout(() => this.isFirstClick = !0), t instanceof MouseEvent && t.button !== 0))
690
683
  return;
691
- let p = r.querySelectorVisibleLast(document.body, ":scope > .top-popup-wrapper");
692
- 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);
684
+ let p = n.querySelectorVisibleLast(document.body, ":scope > .top-popup-wrapper");
685
+ 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);
693
686
  }
694
687
  /**
695
688
  * Закрыть другие Popup при фокусе на элемент формы в текущем
@@ -698,8 +691,8 @@ class x extends v {
698
691
  if (t.target instanceof Element && t.target.matches("input") || this.isClosed)
699
692
  return;
700
693
  l.getAllVisible().forEach((o) => {
701
- var e, i, s, a;
702
- (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);
694
+ var e, r, s, a;
695
+ (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);
703
696
  });
704
697
  }
705
698
  /**
@@ -714,7 +707,7 @@ class x extends v {
714
707
  * Контроль положения Popup при fixed позиционировании
715
708
  */
716
709
  onResize() {
717
- 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");
710
+ 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");
718
711
  }
719
712
  unmount() {
720
713
  super.unmount(), this.el instanceof HTMLElement && (this.el.dataset.topPopupOpened = ""), this.elActiveByDefault || this.el.classList.remove("top-active");
@@ -743,16 +736,16 @@ class x extends v {
743
736
  }
744
737
  const o = this.elPopup.getBoundingClientRect();
745
738
  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");
746
- let e = !1, i = !1, s = !1, a = !1, n = o.left > window.innerWidth / 2, d = o.top > window.innerHeight / 2;
747
- t === 4 && (n = !n), t === 1 && (d = !d);
739
+ let e = !1, r = !1, s = !1, a = !1, i = o.left > window.innerWidth / 2, d = o.top > window.innerHeight / 2;
740
+ t === 4 && (i = !i), t === 1 && (d = !d);
748
741
  const h = (b = this.elPopupInner) == null ? void 0 : b.getBoundingClientRect();
749
742
  let u, c;
750
743
  if (h) {
751
744
  u = window.innerWidth - h.right, c = window.innerHeight - h.bottom;
752
745
  const g = 8;
753
- h.top < g && (e = !0), u < g && (i = !0), c < g && (s = !0), h.left < g && (a = !0);
746
+ h.top < g && (e = !0), u < g && (r = !0), c < g && (s = !0), h.left < g && (a = !0);
754
747
  }
755
- 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);
748
+ 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);
756
749
  }
757
750
  onTouchmove(t) {
758
751
  var p, o, e;
@@ -765,9 +758,9 @@ class x extends v {
765
758
  close() {
766
759
  var t;
767
760
  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(() => {
768
- var e, i, s, a, n;
761
+ var e, r, s, a, i;
769
762
  if (this.vueClose(), !this.elPopup) return;
770
- 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);
763
+ 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);
771
764
  const p = l.getAllVisible(), o = p.length && p[p.length - 1];
772
765
  o ? l.getPopup(o).focus() : document.documentElement.classList.remove("with_popup");
773
766
  }, this.options.transitionDuration)));
@@ -790,4 +783,4 @@ export {
790
783
  x as Popup,
791
784
  x as default
792
785
  };
793
- //# sourceMappingURL=popup-B4tgc-1X.es.js.map
786
+ //# sourceMappingURL=popup-C5Ha2nU3.es.js.map