@topvisor/ui 0.9.25 → 0.9.26-dev

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 (95) hide show
  1. package/.chunks/datepicker-BMrdz1zd.es.js +277 -0
  2. package/.chunks/datepicker-BMrdz1zd.es.js.map +1 -0
  3. package/.chunks/datepicker-C0rB8tdN.amd.js +234 -0
  4. package/.chunks/datepicker-C0rB8tdN.amd.js.map +1 -0
  5. package/.chunks/{forms-gb7uf2K8.es.js → forms-C4UtO06K.es.js} +230 -230
  6. package/.chunks/forms-C4UtO06K.es.js.map +1 -0
  7. package/.chunks/forms-DujTMzoW.amd.js +3 -0
  8. package/.chunks/forms-DujTMzoW.amd.js.map +1 -0
  9. package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-Caw4oFU-.es.js → listItem.vue_vue_type_script_setup_true_lang-CHYNz0kA.es.js} +2 -2
  10. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-CHYNz0kA.es.js.map +1 -0
  11. package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-2TAzIZZA.amd.js → listItem.vue_vue_type_script_setup_true_lang-Ob3185Bq.amd.js} +2 -2
  12. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-Ob3185Bq.amd.js.map +1 -0
  13. package/.chunks/{popup-ZmdXZkvb.es.js → popup-B2BoAirk.es.js} +431 -431
  14. package/.chunks/popup-B2BoAirk.es.js.map +1 -0
  15. package/.chunks/{popup-Dfz5hkrQ.amd.js → popup-CyJ0WBUB.amd.js} +386 -386
  16. package/.chunks/popup-CyJ0WBUB.amd.js.map +1 -0
  17. package/.chunks/store-Bl79G7T_.amd.js.map +1 -1
  18. package/.chunks/store-PoMCiuBr.es.js.map +1 -1
  19. package/.chunks/{widgetInput-BxO9y9L7.amd.js → widgetInput-Ce8a61St.amd.js} +2 -2
  20. package/.chunks/widgetInput-Ce8a61St.amd.js.map +1 -0
  21. package/.chunks/{widgetInput-DPOH_qya.es.js → widgetInput-pNYn7i5g.es.js} +2 -2
  22. package/.chunks/widgetInput-pNYn7i5g.es.js.map +1 -0
  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/forms/forms.amd.js +1 -1
  29. package/forms/forms.js +1 -1
  30. package/forms/helpers.amd.js.map +1 -1
  31. package/forms/helpers.js.map +1 -1
  32. package/formsExt/formsExt.amd.js +1 -1
  33. package/formsExt/formsExt.amd.js.map +1 -1
  34. package/formsExt/formsExt.js +317 -301
  35. package/formsExt/formsExt.js.map +1 -1
  36. package/icomoon/Read Me.txt +7 -7
  37. package/icomoon/demo-files/demo.css +161 -161
  38. package/icomoon/demo-files/demo.js +30 -30
  39. package/icomoon/demo.html +3225 -3225
  40. package/icomoon/fonts/Topvisor-2.svg +252 -252
  41. package/icomoon/style.css +707 -707
  42. package/package.json +20 -20
  43. package/popup/popup.amd.js +1 -1
  44. package/popup/popup.js +2 -2
  45. package/popup/worker.amd.js +1 -1
  46. package/popup/worker.amd.js.map +1 -1
  47. package/popup/worker.js +47 -47
  48. package/popup/worker.js.map +1 -1
  49. package/require/css.amd.js +11 -11
  50. package/src/components/forms/avatar/avatar.d.ts +9 -0
  51. package/src/components/forms/avatar/avatar.stories.d.ts +24 -0
  52. package/src/components/forms/avatar/avatar.vue.d.ts +12 -0
  53. package/src/components/formsExt/editArea/editArea.d.ts +16 -3
  54. package/src/components/formsExt/editArea/editArea.stories.d.ts +36 -20
  55. package/src/components/formsExt/editArea/editArea.vue.d.ts +12 -4
  56. package/src/components/popup/popup/popup.stories.d.ts +2 -2
  57. package/tabs/tabs.amd.js +1 -1
  58. package/tabs/tabs.js +1 -1
  59. package/tabsView/tabsView.amd.js +1 -1
  60. package/tabsView/tabsView.amd.js.map +1 -1
  61. package/tabsView/tabsView.js +2 -2
  62. package/tabsView/tabsView.js.map +1 -1
  63. package/utils/css.amd.js.map +1 -1
  64. package/utils/css.js.map +1 -1
  65. package/utils/date.amd.js +1 -1
  66. package/utils/date.js +1 -1
  67. package/utils/device.amd.js +1 -1
  68. package/utils/device.js +1 -1
  69. package/utils/dom.amd.js.map +1 -1
  70. package/utils/dom.js.map +1 -1
  71. package/utils/keyboard.amd.js.map +1 -1
  72. package/utils/keyboard.js.map +1 -1
  73. package/utils/route.amd.js.map +1 -1
  74. package/utils/route.js.map +1 -1
  75. package/utils/scroll.amd.js +1 -1
  76. package/utils/scroll.amd.js.map +1 -1
  77. package/utils/scroll.js +1 -1
  78. package/utils/scroll.js.map +1 -1
  79. package/utils/system.amd.js.map +1 -1
  80. package/utils/system.js.map +1 -1
  81. package/utils/window.amd.js +1 -1
  82. package/utils/window.js +1 -1
  83. package/.chunks/datepicker-B9eprAyk.amd.js +0 -234
  84. package/.chunks/datepicker-B9eprAyk.amd.js.map +0 -1
  85. package/.chunks/datepicker-C86O1mQq.es.js +0 -277
  86. package/.chunks/datepicker-C86O1mQq.es.js.map +0 -1
  87. package/.chunks/forms-DkNAMd-D.amd.js +0 -3
  88. package/.chunks/forms-DkNAMd-D.amd.js.map +0 -1
  89. package/.chunks/forms-gb7uf2K8.es.js.map +0 -1
  90. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-2TAzIZZA.amd.js.map +0 -1
  91. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-Caw4oFU-.es.js.map +0 -1
  92. package/.chunks/popup-Dfz5hkrQ.amd.js.map +0 -1
  93. package/.chunks/popup-ZmdXZkvb.es.js.map +0 -1
  94. package/.chunks/widgetInput-BxO9y9L7.amd.js.map +0 -1
  95. package/.chunks/widgetInput-DPOH_qya.es.js.map +0 -1
@@ -1,5 +1,5 @@
1
- import { C as f } from "./forms-gb7uf2K8.es.js";
2
- import r from "../utils/dom.js";
1
+ import { C as f } from "./forms-C4UtO06K.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) {
@@ -100,8 +100,8 @@ class P {
100
100
  if (!e || p.matches(".top-popup-noCloser"))
101
101
  return;
102
102
  if (p.getAttribute("href") === "." && t.preventDefault(), t.target.matches("[data-top-popup]")) {
103
- const i = t.target.closest("ul"), s = t.target.closest("a, .a");
104
- i && ((o = i.querySelector("a.top-active, .a.top-active")) == null || o.classList.remove("top-active")), s && s.classList.add("top-active");
103
+ const r = t.target.closest("ul"), s = t.target.closest("a, .a");
104
+ r && ((o = r.querySelector("a.top-active, .a.top-active")) == null || o.classList.remove("top-active")), s && s.classList.add("top-active");
105
105
  return;
106
106
  }
107
107
  l.close(e);
@@ -115,7 +115,7 @@ class P {
115
115
  * Глобальный обработчик нажатия кнопки на клавиатуре
116
116
  */
117
117
  static onkeydown(t) {
118
- var e, i;
118
+ var e, r;
119
119
  if (!(t.target instanceof Element))
120
120
  return;
121
121
  const p = t.target.closest(".top-popup-wrapper");
@@ -128,18 +128,18 @@ class P {
128
128
  break;
129
129
  case "Enter":
130
130
  if (!o) {
131
- if (r.querySelectorVisible(p, ".preloader"))
131
+ if (n.querySelectorVisible(p, ".preloader"))
132
132
  break;
133
- const c = r.querySelectorVisible(p, ".top-popup_footer .go, .top-popup_footer [data-action]");
133
+ const c = n.querySelectorVisible(p, ".top-popup_footer .go, .top-popup_footer [data-action]");
134
134
  if (c instanceof HTMLElement) {
135
135
  c.click();
136
136
  break;
137
137
  }
138
- const m = r.querySelectorVisibleLast(p, ".top-popup_footer .top-button");
138
+ const m = n.querySelectorVisibleLast(p, ".top-popup_footer .top-button");
139
139
  m instanceof HTMLElement && m.click();
140
140
  break;
141
141
  }
142
- const s = r.querySelectorVisible(p, "li > a.top-active");
142
+ const s = n.querySelectorVisible(p, "li > a.top-active");
143
143
  s && s.getAttribute("href") && (t.preventDefault(), location.href = s.getAttribute("href"));
144
144
  const a = p.querySelector("li > .top-active");
145
145
  a instanceof HTMLElement && a.click();
@@ -150,413 +150,413 @@ class P {
150
150
  case "ArrowLeft":
151
151
  if (!o)
152
152
  break;
153
- t.key === "ArrowRight" || t.key === "ArrowLeft" ? r.querySelectorVisible(
153
+ t.key === "ArrowRight" || t.key === "ArrowLeft" ? n.querySelectorVisible(
154
154
  p,
155
155
  "ul.top-popup_content > li:not(.top-popup_liNoSelectable) > .top-active > .top-popup_listMore"
156
156
  ) && t.preventDefault() : t.preventDefault();
157
- const n = (e = p.querySelector("ul.top-popup_content > li:not(.top-popup_liNoSelectable) > .top-active")) == null ? void 0 : e.parentElement;
158
- if (t.key === "ArrowRight" && n) {
159
- const c = n.querySelector(".top-active > .top-popup_listMore");
157
+ const i = (e = p.querySelector("ul.top-popup_content > li:not(.top-popup_liNoSelectable) > .top-active")) == null ? void 0 : e.parentElement;
158
+ if (t.key === "ArrowRight" && i) {
159
+ const c = i.querySelector(".top-active > .top-popup_listMore");
160
160
  if (c instanceof HTMLElement)
161
161
  return c.click();
162
162
  }
163
- const d = r.querySelectorAllVisible(p, "ul.top-popup_content > li:not(.top-popup_liNoSelectable)"), h = d.length;
163
+ const d = n.querySelectorAllVisible(p, "ul.top-popup_content > li:not(.top-popup_liNoSelectable)"), h = d.length;
164
164
  if (!h)
165
165
  return;
166
166
  let u = -1;
167
- if (n && (u = d.indexOf(n)), t.key === "ArrowUp" || t.key === "ArrowLeft" ? u-- : u++, t.key === "ArrowLeft" && u === -1)
167
+ if (i && (u = d.indexOf(i)), t.key === "ArrowUp" || t.key === "ArrowLeft" ? u-- : u++, t.key === "ArrowLeft" && u === -1)
168
168
  return t.target.matches("input") ? void 0 : l.close(p);
169
169
  if (t.key === "ArrowRight" && u === h)
170
170
  return;
171
- 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);
171
+ 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);
172
172
  break;
173
173
  }
174
174
  }
175
175
  }
176
- const w = `:root {\r
177
- --top-popup-z-index: 200000;\r
178
- --top-popup-transition-delay: 100ms;\r
179
- \r
180
- --top-popup-background-color: var(--color-bg-3);\r
181
- --top-popup-background-color-hover: var(--color-theme-75);\r
182
- --top-popup-background-color-active: var(--color-theme-100);\r
183
- \r
184
- --top-popup-border-color: var(--color-line-2-opacity);\r
185
- --top-popup-title-background-color: var(--color-theme-50);\r
186
- \r
187
- /* суммарный отсуп от каря popup до элемента */\r
188
- --top-popup-content-padding: calc(var(--top-popup-list-padding) + var(--top-popup-listItem-padding));\r
189
- \r
190
- /* списки */\r
191
- --top-popup-list-padding: var(--top-padding-2);\r
192
- \r
193
- --top-popup-listItem-radius: var(--top-radius-2);\r
194
- --top-popup-listItem-padding: var(--top-padding-2);\r
195
- }\r
196
- \r
197
- .top-popup-front { position: relative; }\r
198
- \r
199
- .top-popup-wrapper {\r
200
- /* см. recalcPosition() */\r
201
- --top-popup-height: 0px;\r
202
- --top-popup-right-bounding: 0px;\r
203
- --top-popup-bottom-bounding: 0px;\r
204
- --top-popup-top: 0px;\r
205
- --top-popup-right: calc(100vw - var(--top-popup-right-bounding));\r
206
- --top-popup-bottom: calc(var(--100vh) - var(--top-popup-bottom-bounding));\r
207
- --top-popup-left: 0px;\r
208
- \r
209
- text-align: initial; white-space: normal; word-break: normal;\r
210
- position: absolute; z-index: 200000;\r
211
- }\r
212
- .top-popup-wrapper:not(.top-popup-wrapper-shown) { overflow: hidden; }\r
213
- \r
214
- /* top-popupPanel */\r
215
- .top-popupPanel {\r
216
- cursor: default;\r
217
- box-shadow: var(--top-shadow-b);\r
218
- border-radius: 8px;\r
219
- background: var(--top-popup-background-color);\r
220
- position: absolute; overflow: hidden;\r
221
- display: flex; flex-direction: column;\r
222
- }\r
223
- \r
224
- /* position */\r
225
- .top-popup-wrapper > * {\r
226
- opacity: 0;\r
227
- transition: opacity var(--top-popup-transition-delay) linear, transform var(--top-popup-transition-delay) linear;\r
228
- }\r
229
- .top-popup-wrapper.p0 > * { transform: translateY(-8px); }\r
230
- .top-popup-wrapper.p1 > * { transform: translateY(8px); }\r
231
- .top-popup-wrapper.p2 > * { transform: translateX(8px); }\r
232
- .top-popup-wrapper.p3 > * { transform: translateY(8px); }\r
233
- .top-popup-wrapper.p4 > * { transform: translateX(-8px); }\r
234
- .top-popup-wrapper-shown:not(.top-popup-wrapper-closed) > * {opacity: 1;transform: translate(0, 0) !important;}\r
235
- \r
236
- .top-popup-wrapper.p0 > .top-popup { top: calc(-16px); left: calc(0px - 8px); }\r
237
- .top-popup-wrapper.p1 > .top-popup { bottom: calc(100% + 8px); }\r
238
- .top-popup-wrapper.p2 > .top-popup { left: calc(100% + 8px); }\r
239
- .top-popup-wrapper.p3 > .top-popup { top: calc(100% + 8px); }\r
240
- .top-popup-wrapper.p4 > .top-popup { right: calc(100% + 8px); }\r
241
- .top-popup-wrapper.p2 > .top-popup,\r
242
- .top-popup-wrapper.p4 > .top-popup { margin-top: -10px; }\r
243
- \r
244
- .top-popup-wrapper.p1.with_notch > .top-popup { margin-bottom: 5px; }\r
245
- .top-popup-wrapper.p2.with_notch > .top-popup { margin-left: 5px; }\r
246
- .top-popup-wrapper.p3.with_notch > .top-popup { margin-top: 5px; }\r
247
- .top-popup-wrapper.p4.with_notch > .top-popup { margin-right: 5px; }\r
248
- \r
249
- .top-popup-wrapper.invert-x > .top-popup { right: 0; }\r
250
- .top-popup-wrapper.invert-y > .top-popup { bottom: 0; }\r
251
- \r
252
- /* notch */\r
253
- .top-popup-wrapper > .notch { border: 7.4px solid transparent; position: absolute; display: block; }\r
254
- \r
255
- .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
256
- .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
257
- .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
258
- .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
259
- \r
260
- .top-popup-wrapper.p1 > .notch-border { border-top-color: rgba(0, 0, 0, 0.05); margin-bottom: 6px; }\r
261
- .top-popup-wrapper.p2 > .notch-border { border-right-color: rgba(0, 0, 0, 0.05); margin-left: 6px; }\r
262
- .top-popup-wrapper.p3 > .notch-border { border-bottom-color: rgba(0, 0, 0, 0.05); margin-top: 6px; }\r
263
- .top-popup-wrapper.p4 > .notch-border { border-left-color: rgba(0, 0, 0, 0.05); margin-right: 6px; }\r
264
- \r
265
- /* common */\r
266
- .top-popup_header,\r
267
- .top-popup_content,\r
268
- .top-popup_footer { font-size: 14px; }\r
269
- .top-popup_header,\r
270
- .top-popup_footer { display: flex; align-items: center; justify-content: space-between; }\r
271
- \r
272
- /* header */\r
273
- .top-popup_header {\r
274
- border-bottom: 1px solid var(--top-popup-border-color);\r
275
- padding: var(--top-padding-3);\r
276
- font-weight: 600;\r
277
- }\r
278
- .top-popup_header > * { font-weight: 400; }\r
279
- .top-popup_header > .a { cursor: pointer; color: var(--color-blue-450); }\r
280
- .top-popup_header > .a:hover { color: var(--color-blue-350); }\r
281
- \r
282
- .top-popup_headerButton { width: 60px; }\r
283
- \r
284
- /* widget */\r
285
- .top-popup_widget {\r
286
- padding: var(--top-padding-2) var(--top-padding-2) 0 var(--top-padding-2);\r
287
- }\r
288
- \r
289
- /* content */\r
290
- .top-popup_content {\r
291
- margin: 0;\r
292
- flex-grow: 1;\r
293
- overflow-y: auto;\r
294
- display: flex;\r
295
- flex-direction: column;\r
296
- gap: var(--top-gap-4);\r
297
- \r
298
- -webkit-overflow-scrolling: touch;\r
299
- }\r
300
- \r
301
- div.top-popup_content {\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
- padding: var(--top-popup-list-padding);\r
313
- gap: 2px;\r
314
- }\r
315
- \r
316
- ul.top-popup_content .top-unwrap {\r
317
- --top-unwrap-x: var(--top-popup-list-padding);\r
318
- }\r
319
- \r
320
- .top-popup_listItem {\r
321
- border-radius: var(--top-popup-listItem-radius);\r
322
- padding: var(--top-popup-listItem-padding);\r
323
- line-height: 1 !important;\r
324
- }\r
325
- \r
326
- ul.top-popup_content li { margin: 0; list-style: none; display: flex; position: relative }\r
327
- ul.top-popup_content li > * { flex-grow: 1; }\r
328
- ul.top-popup_content li > a:not(.top-button),\r
329
- ul.top-popup_content li > .a {\r
330
- cursor: pointer;\r
331
- box-sizing: border-box;\r
332
- border-radius: var(--top-popup-listItem-radius);\r
333
- background: var(--top-popup-background-color);\r
334
- padding: var(--top-popup-listItem-padding);\r
335
- color: var(--color-text) !important; font-size: 14px; font-weight: normal !important; text-decoration: none !important; font-style: normal;\r
336
- line-height: 1 !important;\r
337
- display: flex; flex: 1 1 100%; align-items: center;\r
338
- transition: background-color 0.1s ease-in-out;\r
339
- }\r
340
- .top-popup-wrapper-no_animate ul.top-popup_content li > a:not(.top-button),\r
341
- .top-popup-wrapper-no_animate ul.top-popup_content li > .a { transition: none; }\r
342
- \r
343
- ul.top-popup_content li > a:not(.top-button):hover,\r
344
- ul.top-popup_content li > .a:hover { background: var(--top-popup-background-color-hover); }\r
345
- ul.top-popup_content li > a:not(.top-button).top-active,\r
346
- ul.top-popup_content li > .a.top-active { background: var(--top-popup-background-color-active); }\r
347
- \r
348
- .top-popup_content + .top-popup_content { padding-top: 0; }\r
349
- \r
350
- /* listTitle */\r
351
- .top-popup_listItem-title {\r
352
- background: var(--top-popup-title-background-color);\r
353
- color: var(--color-text-2); font-size: 12px;\r
354
- }\r
355
- \r
356
- /* listDelimiter */\r
357
- .top-popup_listItem-delimiter {\r
358
- border-radius: 3px;\r
359
- background: var(--top-popup-border-color);\r
360
- height: 1px;\r
361
- padding: 0;\r
362
- margin: 4px;\r
363
- }\r
364
- \r
365
- /* listMore */\r
366
- .top-popup_listMore {\r
367
- font-size: 20px;\r
368
- 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
369
- }\r
370
- \r
371
- .top-popup_listMore.top-button{ margin: 0; }\r
372
- \r
373
- ul.top-popup_content li > .a.top-popup_listMore {\r
374
- text-align: center;\r
375
- flex-basis: 10px;\r
376
- }\r
377
- ul.top-popup_content li > .a.top-popup_listMore:before { color: var(--color-gray-500); }\r
378
- ul.top-popup_content li > * > .top-popup_listMore {\r
379
- margin-left: auto;\r
380
- color: var(--color-gray-500);\r
381
- font-size: 14px;\r
382
- }\r
383
- ul.top-popup_content li > * > i.top-popup_listMore:hover,\r
384
- ul.top-popup_content li > * > i.top-popup_listMore.top-active { color: var(--color-blue-500); }\r
385
- ul.top-popup_content li > * > i.top-popup_listMore:before {\r
386
- transform: rotate(90deg);\r
387
- display: block;\r
388
- }\r
389
- \r
390
- ul.top-popup_content li a.close { background: none !important; }\r
391
- \r
392
- /* data-top-icon */\r
393
- .top-popup_content > [data-top-icon]:before {\r
394
- --top-icon-size: 20px;\r
395
- }\r
396
- \r
397
- ul.top-popup_content li > [data-top-icon]:not(.top-button):before {\r
398
- --top-icon-color: var(--color-text-3);\r
399
- --top-icon-size: 20px;\r
400
- --top-icon-width: 20px;\r
401
- \r
402
- height: 1rem; margin-right: 8px; transition: color 0.1s;\r
403
- }\r
404
- ul.top-popup_content li:hover > [data-top-icon]:not(.top-button):before,\r
405
- ul.top-popup_content li > [data-top-icon]:not(.top-button).top-active:before {\r
406
- --top-icon-color: var(--color-text-2);\r
407
- }\r
408
- \r
409
- /* footer */\r
410
- .top-popup_footer {\r
411
- padding: var(--top-popup-list-padding);\r
412
- border-top: 1px solid var(--top-popup-border-color);\r
413
- display: flex;\r
414
- gap: var(--top-gap-2);\r
415
- justify-content: flex-end;\r
416
- }\r
417
- \r
418
- /* Виджеты */\r
419
- .top-popup > [data-widget] { padding: 0 var(--top-popup-list-padding); }\r
420
- .top-popup > [data-widget] + hr { margin: 0 var(--top-popup-list-padding); }\r
421
- \r
422
- .top-popup .placeholder {\r
423
- border: 1px solid #E0D9D9 !important; border-right: none !important; border-left: none !important; background: #F9F9F9 !important; margin: -1px 0; z-index: 1;\r
424
- position: relative;\r
425
- }\r
426
- \r
427
- /* компоненты */\r
428
- .top-popup-wrapper.simple_list > .top-popup { min-width: 0; white-space: nowrap; }\r
429
- \r
430
- .top-popup_content .top-column { display: flex; flex-direction: column; gap: 4px; }\r
431
- html .top-popup .top-popup_content li > .top-button {\r
432
- margin: calc(var(--top-popup-listItem-padding) / 2) var(--top-popup-listItem-padding);\r
433
- }\r
434
- \r
435
- .top-popup li .check_all,\r
436
- .top-popup li .clear_all { cursor: pointer; color: var(--color-cyan); padding: 8px; display: inline-block; }\r
437
- .top-popup li .check_all:hover,\r
438
- .top-popup li .clear_all:hover { text-decoration: underline; }\r
439
- .top-popup li .clear_all { display: none; }\r
440
- \r
441
- /* table */\r
442
- .top-popup_content table { margin: -9px 0; }\r
443
- .top-popup_content table td,\r
444
- .top-popup_content table th { padding: 9px var(--top-popup-listItem-padding) 9px 0; vertical-align: top; }\r
445
- .top-popup_content table th { width: 40%; font-weight: 600; white-space: nowrap; }\r
446
- \r
447
- /* формы */\r
448
- ul.top-popup_content .a > [type="checkbox"],\r
449
- ul.top-popup_content .a > [type="radio"] { margin: -8px 0 -8px auto; }\r
450
- \r
451
- /* deprecated */\r
452
- ul.top-popup_content a > [class*=icon],\r
453
- ul.top-popup_content i.a > [class*=icon] {\r
454
- transition: 0.1s;\r
455
- }\r
456
- \r
457
- .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
458
- .top-popup_footer [class*=btn]:not(.btn-transparent) { min-width: 100px; padding: 5px 14px; margin-left: 10px; }\r
459
- .top-popup_footer [class*=btn]:first-child { margin-left: 0; }\r
460
- .top-popup_footer .btn.full_width { margin: 0; flex-grow: 1; }`, y = `:root{\r
461
- --top-popup-list-padding: 0px;\r
462
- \r
463
- --top-popup-listItem-radius: 0px;\r
464
- --top-popup-listItem-padding: var(--top-padding-4);\r
465
- }\r
466
- \r
467
- html.with_popup{ background: #808080; }\r
468
- \r
469
- .top-popup-wrapper{\r
470
- --top-popup-footer-offset: 25px;\r
471
- \r
472
- width: auto !important; height: auto !important;\r
473
- position: fixed; top: 0 !important; right: 0 !important; left: 0 !important; overflow: hidden;\r
474
- transition: background 0.3s;\r
475
- }\r
476
- \r
477
- .top-popup-wrapper-shown:not(.top-popup-wrapper-closed){ background: rgba(0,0,0,0.5); backdrop-filter: blur(1px); }\r
478
- .top-popup-wrapper-shown:not(.top-popup-wrapper-closed) > .top-popup{ opacity: 1 !important; }\r
479
- \r
480
- .top-popup{\r
481
- 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
482
- top: auto !important; right: 0 !important; bottom: var(--toolbar-height, 0px) !important; left: 0 !important;\r
483
- display: flex; flex-direction: column;\r
484
- \r
485
- /* невозможно опустить элемент вниз за экран на 100%, fix: opacity и translateY(80%) */\r
486
- transform: translateY(80%);\r
487
- \r
488
- transition: opacity 0.3s, transform 0.3s;\r
489
- }\r
490
- \r
491
- \r
492
- /* from top */\r
493
- .top-popup-wrapper.p-from-top{\r
494
- --top-popup-footer-offset: 0px;\r
495
- \r
496
- top: var(--header-height, 0px) !important;\r
497
- }\r
498
- .with_dialog .top-popup-wrapper.p-from-top{ top: 50px !important; }\r
499
- .top-popup-wrapper.p-from-top > .top-popup{\r
500
- border-radius: 0 0 8px 8px; max-height: calc(100% - 24px); top: 0 !important; bottom: auto !important;\r
501
- transform: translateY(calc(-100% - 24px));\r
502
- }\r
503
- \r
504
- /* widget */\r
505
- .top-popup_widget{ padding: var(--top-padding-2);}\r
506
- .top-popup_widget:not(.p-from-top){ order: 10; }\r
507
- \r
508
- /* content */\r
509
- ul.top-popup_content{\r
510
- gap: 0;\r
511
- }\r
512
- ul.top-popup_content li:not(:last-child){ border-bottom: 1px solid var(--top-popup-border-color); }\r
513
- \r
514
- .top-popup-wrapper.top-style_alt > .top-popup > ul > li{ border-bottom: none; }\r
515
- \r
516
- /* footer */\r
517
- .top-popup_footer{\r
518
- flex-direction: column-reverse;\r
519
- }\r
520
- .top-popup_footer > .top-button{\r
521
- --top-forms-base-height: var(--top-forms-base-height_l);\r
522
- \r
523
- width: 100%;\r
524
- }\r
525
- \r
526
- /* listTitle */\r
527
- ul.top-popup_content .top-popup_listItem-title{\r
528
- --top-popup-padding-v: 12px;\r
529
- }\r
530
- \r
531
- /* listDelimiter */\r
532
- ul.top-popup_content .top-popup_listItem-delimiter{ background: var(--color-line-1-opacity); height: 4px; margin: 0; }\r
533
- 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
534
- \r
535
- .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
536
- .top-popup-wrapper.invert-x > .top-popup{ max-width: calc(100vw - var(--top-popup-right) - 16px); }\r
537
- .top-popup-wrapper.invert-y > .top-popup{ max-height: calc(100vh - var(--top-popup-bottom) - 16px); }\r
538
- \r
539
- /* position */\r
540
- .top-popup-wrapper.p1 > .top-popup{ max-height: calc(var(--top-popup-top) - var(--header-height, 0px) - 16px); }\r
541
- .top-popup-wrapper.p3 > .top-popup{ max-height: calc(var(--top-popup-bottom) - 16px); }\r
542
- .top-popup-wrapper.p2 > .top-popup{ max-width: calc(var(--top-popup-right) - 16px); }\r
543
- .top-popup-wrapper.p4 > .top-popup{ max-width: calc(var(--top-popup-left) - 16px); }\r
544
- \r
545
- /* notch */\r
546
- .top-popup-wrapper.p1.with_notch > .top-popup,\r
547
- .top-popup-wrapper.p3.with_notch > .top-popup{ margin-left: -16px !important; }\r
548
- .top-popup-wrapper.p1.with_notch > .notch,\r
549
- .top-popup-wrapper.p3.with_notch > .notch{ margin-left: -8px !important; }\r
550
- \r
551
- .top-popup-wrapper.p1.with_notch.invert-x,\r
552
- .top-popup-wrapper.p3.with_notch.invert-x{ margin-left: 3px !important; }\r
553
- .top-popup-wrapper.p1.with_notch.invert-x > .notch,\r
554
- .top-popup-wrapper.p3.with_notch.invert-x > .notch{ margin-left: -9px !important; }\r
555
- \r
556
- /* listMore */\r
557
- ul.top-popup_content li > * > i.top-popup_listMore{ visibility: hidden; transition: none; }\r
558
- ul.top-popup_content li:hover > * > i.top-popup_listMore,\r
559
- ul.top-popup_content li > *.top-active > i.top-popup_listMore,\r
176
+ const w = `:root {
177
+ --top-popup-z-index: 200000;
178
+ --top-popup-transition-delay: 100ms;
179
+
180
+ --top-popup-background-color: var(--color-bg-3);
181
+ --top-popup-background-color-hover: var(--color-theme-75);
182
+ --top-popup-background-color-active: var(--color-theme-100);
183
+
184
+ --top-popup-border-color: var(--color-line-2-opacity);
185
+ --top-popup-title-background-color: var(--color-theme-50);
186
+
187
+ /* суммарный отсуп от каря popup до элемента */
188
+ --top-popup-content-padding: calc(var(--top-popup-list-padding) + var(--top-popup-listItem-padding));
189
+
190
+ /* списки */
191
+ --top-popup-list-padding: var(--top-padding-2);
192
+
193
+ --top-popup-listItem-radius: var(--top-radius-2);
194
+ --top-popup-listItem-padding: var(--top-padding-2);
195
+ }
196
+
197
+ .top-popup-front { position: relative; }
198
+
199
+ .top-popup-wrapper {
200
+ /* см. recalcPosition() */
201
+ --top-popup-height: 0px;
202
+ --top-popup-right-bounding: 0px;
203
+ --top-popup-bottom-bounding: 0px;
204
+ --top-popup-top: 0px;
205
+ --top-popup-right: calc(100vw - var(--top-popup-right-bounding));
206
+ --top-popup-bottom: calc(var(--100vh) - var(--top-popup-bottom-bounding));
207
+ --top-popup-left: 0px;
208
+
209
+ text-align: initial; white-space: normal; word-break: normal;
210
+ position: absolute; z-index: 200000;
211
+ }
212
+ .top-popup-wrapper:not(.top-popup-wrapper-shown) { overflow: hidden; }
213
+
214
+ /* top-popupPanel */
215
+ .top-popupPanel {
216
+ cursor: default;
217
+ box-shadow: var(--top-shadow-b);
218
+ border-radius: 8px;
219
+ background: var(--top-popup-background-color);
220
+ position: absolute; overflow: hidden;
221
+ display: flex; flex-direction: column;
222
+ }
223
+
224
+ /* position */
225
+ .top-popup-wrapper > * {
226
+ opacity: 0;
227
+ transition: opacity var(--top-popup-transition-delay) linear, transform var(--top-popup-transition-delay) linear;
228
+ }
229
+ .top-popup-wrapper.p0 > * { transform: translateY(-8px); }
230
+ .top-popup-wrapper.p1 > * { transform: translateY(8px); }
231
+ .top-popup-wrapper.p2 > * { transform: translateX(8px); }
232
+ .top-popup-wrapper.p3 > * { transform: translateY(8px); }
233
+ .top-popup-wrapper.p4 > * { transform: translateX(-8px); }
234
+ .top-popup-wrapper-shown:not(.top-popup-wrapper-closed) > * {opacity: 1;transform: translate(0, 0) !important;}
235
+
236
+ .top-popup-wrapper.p0 > .top-popup { top: calc(-16px); left: calc(0px - 8px); }
237
+ .top-popup-wrapper.p1 > .top-popup { bottom: calc(100% + 8px); }
238
+ .top-popup-wrapper.p2 > .top-popup { left: calc(100% + 8px); }
239
+ .top-popup-wrapper.p3 > .top-popup { top: calc(100% + 8px); }
240
+ .top-popup-wrapper.p4 > .top-popup { right: calc(100% + 8px); }
241
+ .top-popup-wrapper.p2 > .top-popup,
242
+ .top-popup-wrapper.p4 > .top-popup { margin-top: -10px; }
243
+
244
+ .top-popup-wrapper.p1.with_notch > .top-popup { margin-bottom: 5px; }
245
+ .top-popup-wrapper.p2.with_notch > .top-popup { margin-left: 5px; }
246
+ .top-popup-wrapper.p3.with_notch > .top-popup { margin-top: 5px; }
247
+ .top-popup-wrapper.p4.with_notch > .top-popup { margin-right: 5px; }
248
+
249
+ .top-popup-wrapper.invert-x > .top-popup { right: 0; }
250
+ .top-popup-wrapper.invert-y > .top-popup { bottom: 0; }
251
+
252
+ /* notch */
253
+ .top-popup-wrapper > .notch { border: 7.4px solid transparent; position: absolute; display: block; }
254
+
255
+ .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% }
256
+ .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%; }
257
+ .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%; }
258
+ .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%; }
259
+
260
+ .top-popup-wrapper.p1 > .notch-border { border-top-color: rgba(0, 0, 0, 0.05); margin-bottom: 6px; }
261
+ .top-popup-wrapper.p2 > .notch-border { border-right-color: rgba(0, 0, 0, 0.05); margin-left: 6px; }
262
+ .top-popup-wrapper.p3 > .notch-border { border-bottom-color: rgba(0, 0, 0, 0.05); margin-top: 6px; }
263
+ .top-popup-wrapper.p4 > .notch-border { border-left-color: rgba(0, 0, 0, 0.05); margin-right: 6px; }
264
+
265
+ /* common */
266
+ .top-popup_header,
267
+ .top-popup_content,
268
+ .top-popup_footer { font-size: 14px; }
269
+ .top-popup_header,
270
+ .top-popup_footer { display: flex; align-items: center; justify-content: space-between; }
271
+
272
+ /* header */
273
+ .top-popup_header {
274
+ border-bottom: 1px solid var(--top-popup-border-color);
275
+ padding: var(--top-padding-3);
276
+ font-weight: 600;
277
+ }
278
+ .top-popup_header > * { font-weight: 400; }
279
+ .top-popup_header > .a { cursor: pointer; color: var(--color-blue-450); }
280
+ .top-popup_header > .a:hover { color: var(--color-blue-350); }
281
+
282
+ .top-popup_headerButton { width: 60px; }
283
+
284
+ /* widget */
285
+ .top-popup_widget {
286
+ padding: var(--top-padding-2) var(--top-padding-2) 0 var(--top-padding-2);
287
+ }
288
+
289
+ /* content */
290
+ .top-popup_content {
291
+ margin: 0;
292
+ flex-grow: 1;
293
+ overflow-y: auto;
294
+ display: flex;
295
+ flex-direction: column;
296
+ gap: var(--top-gap-4);
297
+
298
+ -webkit-overflow-scrolling: touch;
299
+ }
300
+
301
+ div.top-popup_content {
302
+ padding: var(--top-popup-content-padding);
303
+ }
304
+ div.top-popup_content > * { flex-shrink: 0; }
305
+ div.top-popup_content > .top-button { margin: 0; }
306
+
307
+ div.top-popup_content .top-unwrap {
308
+ --top-unwrap-x: var(--top-popup-content-padding);
309
+ }
310
+
311
+ ul.top-popup_content {
312
+ padding: var(--top-popup-list-padding);
313
+ gap: 2px;
314
+ }
315
+
316
+ ul.top-popup_content .top-unwrap {
317
+ --top-unwrap-x: var(--top-popup-list-padding);
318
+ }
319
+
320
+ .top-popup_listItem {
321
+ border-radius: var(--top-popup-listItem-radius);
322
+ padding: var(--top-popup-listItem-padding);
323
+ line-height: 1 !important;
324
+ }
325
+
326
+ ul.top-popup_content li { margin: 0; list-style: none; display: flex; position: relative }
327
+ ul.top-popup_content li > * { flex-grow: 1; }
328
+ ul.top-popup_content li > a:not(.top-button),
329
+ ul.top-popup_content li > .a {
330
+ cursor: pointer;
331
+ box-sizing: border-box;
332
+ border-radius: var(--top-popup-listItem-radius);
333
+ background: var(--top-popup-background-color);
334
+ padding: var(--top-popup-listItem-padding);
335
+ color: var(--color-text) !important; font-size: 14px; font-weight: normal !important; text-decoration: none !important; font-style: normal;
336
+ line-height: 1 !important;
337
+ display: flex; flex: 1 1 100%; align-items: center;
338
+ transition: background-color 0.1s ease-in-out;
339
+ }
340
+ .top-popup-wrapper-no_animate ul.top-popup_content li > a:not(.top-button),
341
+ .top-popup-wrapper-no_animate ul.top-popup_content li > .a { transition: none; }
342
+
343
+ ul.top-popup_content li > a:not(.top-button):hover,
344
+ ul.top-popup_content li > .a:hover { background: var(--top-popup-background-color-hover); }
345
+ ul.top-popup_content li > a:not(.top-button).top-active,
346
+ ul.top-popup_content li > .a.top-active { background: var(--top-popup-background-color-active); }
347
+
348
+ .top-popup_content + .top-popup_content { padding-top: 0; }
349
+
350
+ /* listTitle */
351
+ .top-popup_listItem-title {
352
+ background: var(--top-popup-title-background-color);
353
+ color: var(--color-text-2); font-size: 12px;
354
+ }
355
+
356
+ /* listDelimiter */
357
+ .top-popup_listItem-delimiter {
358
+ border-radius: 3px;
359
+ background: var(--top-popup-border-color);
360
+ height: 1px;
361
+ padding: 0;
362
+ margin: 4px;
363
+ }
364
+
365
+ /* listMore */
366
+ .top-popup_listMore {
367
+ font-size: 20px;
368
+ margin: calc(0px - var(--top-popup-listItem-padding)) calc(0px - var(--top-popup-listItem-padding) / 2) calc(0px - var(--top-popup-listItem-padding)) 0;
369
+ }
370
+
371
+ .top-popup_listMore.top-button{ margin: 0; }
372
+
373
+ ul.top-popup_content li > .a.top-popup_listMore {
374
+ text-align: center;
375
+ flex-basis: 10px;
376
+ }
377
+ ul.top-popup_content li > .a.top-popup_listMore:before { color: var(--color-gray-500); }
378
+ ul.top-popup_content li > * > .top-popup_listMore {
379
+ margin-left: auto;
380
+ color: var(--color-gray-500);
381
+ font-size: 14px;
382
+ }
383
+ ul.top-popup_content li > * > i.top-popup_listMore:hover,
384
+ ul.top-popup_content li > * > i.top-popup_listMore.top-active { color: var(--color-blue-500); }
385
+ ul.top-popup_content li > * > i.top-popup_listMore:before {
386
+ transform: rotate(90deg);
387
+ display: block;
388
+ }
389
+
390
+ ul.top-popup_content li a.close { background: none !important; }
391
+
392
+ /* data-top-icon */
393
+ .top-popup_content > [data-top-icon]:before {
394
+ --top-icon-size: 20px;
395
+ }
396
+
397
+ ul.top-popup_content li > [data-top-icon]:not(.top-button):before {
398
+ --top-icon-color: var(--color-text-3);
399
+ --top-icon-size: 20px;
400
+ --top-icon-width: 20px;
401
+
402
+ height: 1rem; margin-right: 8px; transition: color 0.1s;
403
+ }
404
+ ul.top-popup_content li:hover > [data-top-icon]:not(.top-button):before,
405
+ ul.top-popup_content li > [data-top-icon]:not(.top-button).top-active:before {
406
+ --top-icon-color: var(--color-text-2);
407
+ }
408
+
409
+ /* footer */
410
+ .top-popup_footer {
411
+ padding: var(--top-popup-list-padding);
412
+ border-top: 1px solid var(--top-popup-border-color);
413
+ display: flex;
414
+ gap: var(--top-gap-2);
415
+ justify-content: flex-end;
416
+ }
417
+
418
+ /* Виджеты */
419
+ .top-popup > [data-widget] { padding: 0 var(--top-popup-list-padding); }
420
+ .top-popup > [data-widget] + hr { margin: 0 var(--top-popup-list-padding); }
421
+
422
+ .top-popup .placeholder {
423
+ border: 1px solid #E0D9D9 !important; border-right: none !important; border-left: none !important; background: #F9F9F9 !important; margin: -1px 0; z-index: 1;
424
+ position: relative;
425
+ }
426
+
427
+ /* компоненты */
428
+ .top-popup-wrapper.simple_list > .top-popup { min-width: 0; white-space: nowrap; }
429
+
430
+ .top-popup_content .top-column { display: flex; flex-direction: column; gap: 4px; }
431
+ html .top-popup .top-popup_content li > .top-button {
432
+ margin: calc(var(--top-popup-listItem-padding) / 2) var(--top-popup-listItem-padding);
433
+ }
434
+
435
+ .top-popup li .check_all,
436
+ .top-popup li .clear_all { cursor: pointer; color: var(--color-cyan); padding: 8px; display: inline-block; }
437
+ .top-popup li .check_all:hover,
438
+ .top-popup li .clear_all:hover { text-decoration: underline; }
439
+ .top-popup li .clear_all { display: none; }
440
+
441
+ /* table */
442
+ .top-popup_content table { margin: -9px 0; }
443
+ .top-popup_content table td,
444
+ .top-popup_content table th { padding: 9px var(--top-popup-listItem-padding) 9px 0; vertical-align: top; }
445
+ .top-popup_content table th { width: 40%; font-weight: 600; white-space: nowrap; }
446
+
447
+ /* формы */
448
+ ul.top-popup_content .a > [type="checkbox"],
449
+ ul.top-popup_content .a > [type="radio"] { margin: -8px 0 -8px auto; }
450
+
451
+ /* deprecated */
452
+ ul.top-popup_content a > [class*=icon],
453
+ ul.top-popup_content i.a > [class*=icon] {
454
+ transition: 0.1s;
455
+ }
456
+
457
+ .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; }
458
+ .top-popup_footer [class*=btn]:not(.btn-transparent) { min-width: 100px; padding: 5px 14px; margin-left: 10px; }
459
+ .top-popup_footer [class*=btn]:first-child { margin-left: 0; }
460
+ .top-popup_footer .btn.full_width { margin: 0; flex-grow: 1; }`, y = `:root{
461
+ --top-popup-list-padding: 0px;
462
+
463
+ --top-popup-listItem-radius: 0px;
464
+ --top-popup-listItem-padding: var(--top-padding-4);
465
+ }
466
+
467
+ html.with_popup{ background: #808080; }
468
+
469
+ .top-popup-wrapper{
470
+ --top-popup-footer-offset: 25px;
471
+
472
+ width: auto !important; height: auto !important;
473
+ position: fixed; top: 0 !important; right: 0 !important; left: 0 !important; overflow: hidden;
474
+ transition: background 0.3s;
475
+ }
476
+
477
+ .top-popup-wrapper-shown:not(.top-popup-wrapper-closed){ background: rgba(0,0,0,0.5); backdrop-filter: blur(1px); }
478
+ .top-popup-wrapper-shown:not(.top-popup-wrapper-closed) > .top-popup{ opacity: 1 !important; }
479
+
480
+ .top-popup{
481
+ 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;
482
+ top: auto !important; right: 0 !important; bottom: var(--toolbar-height, 0px) !important; left: 0 !important;
483
+ display: flex; flex-direction: column;
484
+
485
+ /* невозможно опустить элемент вниз за экран на 100%, fix: opacity и translateY(80%) */
486
+ transform: translateY(80%);
487
+
488
+ transition: opacity 0.3s, transform 0.3s;
489
+ }
490
+
491
+
492
+ /* from top */
493
+ .top-popup-wrapper.p-from-top{
494
+ --top-popup-footer-offset: 0px;
495
+
496
+ top: var(--header-height, 0px) !important;
497
+ }
498
+ .with_dialog .top-popup-wrapper.p-from-top{ top: 50px !important; }
499
+ .top-popup-wrapper.p-from-top > .top-popup{
500
+ border-radius: 0 0 8px 8px; max-height: calc(100% - 24px); top: 0 !important; bottom: auto !important;
501
+ transform: translateY(calc(-100% - 24px));
502
+ }
503
+
504
+ /* widget */
505
+ .top-popup_widget{ padding: var(--top-padding-2);}
506
+ .top-popup_widget:not(.p-from-top){ order: 10; }
507
+
508
+ /* content */
509
+ ul.top-popup_content{
510
+ gap: 0;
511
+ }
512
+ ul.top-popup_content li:not(:last-child){ border-bottom: 1px solid var(--top-popup-border-color); }
513
+
514
+ .top-popup-wrapper.top-style_alt > .top-popup > ul > li{ border-bottom: none; }
515
+
516
+ /* footer */
517
+ .top-popup_footer{
518
+ flex-direction: column-reverse;
519
+ }
520
+ .top-popup_footer > .top-button{
521
+ --top-forms-base-height: var(--top-forms-base-height_l);
522
+
523
+ width: 100%;
524
+ }
525
+
526
+ /* listTitle */
527
+ ul.top-popup_content .top-popup_listItem-title{
528
+ --top-popup-padding-v: 12px;
529
+ }
530
+
531
+ /* listDelimiter */
532
+ ul.top-popup_content .top-popup_listItem-delimiter{ background: var(--color-line-1-opacity); height: 4px; margin: 0; }
533
+ 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; }
534
+
535
+ .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)); }
536
+ .top-popup-wrapper.invert-x > .top-popup{ max-width: calc(100vw - var(--top-popup-right) - 16px); }
537
+ .top-popup-wrapper.invert-y > .top-popup{ max-height: calc(100vh - var(--top-popup-bottom) - 16px); }
538
+
539
+ /* position */
540
+ .top-popup-wrapper.p1 > .top-popup{ max-height: calc(var(--top-popup-top) - var(--header-height, 0px) - 16px); }
541
+ .top-popup-wrapper.p3 > .top-popup{ max-height: calc(var(--top-popup-bottom) - 16px); }
542
+ .top-popup-wrapper.p2 > .top-popup{ max-width: calc(var(--top-popup-right) - 16px); }
543
+ .top-popup-wrapper.p4 > .top-popup{ max-width: calc(var(--top-popup-left) - 16px); }
544
+
545
+ /* notch */
546
+ .top-popup-wrapper.p1.with_notch > .top-popup,
547
+ .top-popup-wrapper.p3.with_notch > .top-popup{ margin-left: -16px !important; }
548
+ .top-popup-wrapper.p1.with_notch > .notch,
549
+ .top-popup-wrapper.p3.with_notch > .notch{ margin-left: -8px !important; }
550
+
551
+ .top-popup-wrapper.p1.with_notch.invert-x,
552
+ .top-popup-wrapper.p3.with_notch.invert-x{ margin-left: 3px !important; }
553
+ .top-popup-wrapper.p1.with_notch.invert-x > .notch,
554
+ .top-popup-wrapper.p3.with_notch.invert-x > .notch{ margin-left: -9px !important; }
555
+
556
+ /* listMore */
557
+ ul.top-popup_content li > * > i.top-popup_listMore{ visibility: hidden; transition: none; }
558
+ ul.top-popup_content li:hover > * > i.top-popup_listMore,
559
+ ul.top-popup_content li > *.top-active > i.top-popup_listMore,
560
560
  ul.top-popup_content li > * > i.top-popup_listMore.top-active{ visibility: visible; }`;
561
561
  f.appendStyle(w);
562
562
  f.appendStyle(y, "m");
@@ -618,18 +618,18 @@ class x extends v {
618
618
  return super(), this.init(x.componentName, t, p);
619
619
  }
620
620
  async mount() {
621
- var e, i, s, a;
621
+ var e, r, s, a;
622
622
  if (!(this.el instanceof HTMLElement))
623
623
  return;
624
624
  const t = this.vueGetComponent();
625
- 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)
626
- this.type = "vue", this.options.popup = "", this.elPopup = r.genEl("div", {}, this.options.popup);
625
+ 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)
626
+ this.type = "vue", this.options.popup = "", this.elPopup = n.genEl("div", {}, this.options.popup);
627
627
  else if ((e = this.options.popup) != null && e.match(/^[#.]/))
628
628
  this.type = "selector", this.elPopup = document.querySelector(`${this.options.popup}.template`);
629
629
  else {
630
630
  if (this.type = "html", this.options.useOriginal)
631
631
  throw "Option useOriginal not allowed for text templates";
632
- this.elPopup = r.genEl("div", {}, this.options.popup ?? "");
632
+ this.elPopup = n.genEl("div", {}, this.options.popup ?? "");
633
633
  }
634
634
  if (!this.elPopup || t != null && t.opened) {
635
635
  if (this.options.useOriginal || t != null && t.opened) {
@@ -643,25 +643,25 @@ class x extends v {
643
643
  }
644
644
  if (!this.elPopup)
645
645
  return;
646
- 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) => {
647
- n instanceof HTMLElement && (n.dataset.topPopupPosBy = "fixed");
648
- }), 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(
646
+ 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) => {
647
+ i instanceof HTMLElement && (i.dataset.topPopupPosBy = "fixed");
648
+ }), 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(
649
649
  "--top-popup-transition-delay",
650
650
  this.options.transitionDuration + "ms"
651
651
  ))), this.elPopupInner = document.createElement("div"), this.elPopupInner.classList.add("top-popupPanel", "top-popup"); this.elPopup.firstChild; )
652
652
  this.elPopupInner.appendChild(this.elPopup.firstChild);
653
653
  if (this.elPopup.append(this.elPopupInner), this.elPopup.classList.add("top-popup-wrapper"), this.options.class) {
654
- const n = this.options.class.split(" ");
655
- this.elPopup.classList.add(...n);
654
+ const i = this.options.class.split(" ");
655
+ this.elPopup.classList.add(...i);
656
656
  }
657
657
  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");
658
658
  const p = !!this.elPopup.querySelector('[data-widget="search"]');
659
- 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");
659
+ 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");
660
660
  let o = !!this.el.closest(".modal-header");
661
661
  o || (o = !!this.el.closest("#top_panel")), o || (o = !!this.el.closest("#secondmenu")), o && this.elPopup.classList.add("p-from-top"), setTimeout(() => {
662
- var n;
663
- return (n = this.elPopup) == null ? void 0 : n.classList.add("top-popup-wrapper-shown");
664
- }), 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();
662
+ var i;
663
+ return (i = this.elPopup) == null ? void 0 : i.classList.add("top-popup-wrapper-shown");
664
+ }), 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();
665
665
  }
666
666
  async mountJQuery() {
667
667
  f.$ && (this.$ = f.$(this.el));
@@ -671,7 +671,7 @@ class x extends v {
671
671
  */
672
672
  focus() {
673
673
  let t;
674
- 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(() => {
674
+ 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(() => {
675
675
  t instanceof HTMLElement && t.focus();
676
676
  }, this.options.transitionDuration));
677
677
  }
@@ -684,8 +684,8 @@ class x extends v {
684
684
  onMousedown(t) {
685
685
  if (!this.elPopup || !(t.target instanceof Element) || !this.isFirstClick || (this.isFirstClick = !1, setTimeout(() => this.isFirstClick = !0), t instanceof MouseEvent && t.button !== 0))
686
686
  return;
687
- let p = r.querySelectorVisibleLast(document.body, ":scope > .top-popup-wrapper");
688
- 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);
687
+ let p = n.querySelectorVisibleLast(document.body, ":scope > .top-popup-wrapper");
688
+ 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);
689
689
  }
690
690
  /**
691
691
  * Закрыть другие Popup при фокусе на элемент формы в текущем
@@ -694,8 +694,8 @@ class x extends v {
694
694
  if (t.target instanceof Element && t.target.matches("input") || this.isClosed)
695
695
  return;
696
696
  l.getAllVisible().forEach((o) => {
697
- var e, i, s, a;
698
- (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);
697
+ var e, r, s, a;
698
+ (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);
699
699
  });
700
700
  }
701
701
  /**
@@ -710,7 +710,7 @@ class x extends v {
710
710
  * Контроль положения Popup при fixed позиционировании
711
711
  */
712
712
  onResize() {
713
- 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");
713
+ 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");
714
714
  }
715
715
  unmount() {
716
716
  super.unmount(), this.el instanceof HTMLElement && (this.el.dataset.topPopupOpened = ""), this.elActiveByDefault || this.el.classList.remove("top-active");
@@ -741,16 +741,16 @@ class x extends v {
741
741
  }
742
742
  const o = this.elPopup.getBoundingClientRect();
743
743
  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");
744
- let e = !1, i = !1, s = !1, a = !1, n = o.left > window.innerWidth / 2, d = o.top > window.innerHeight / 2;
745
- t === 4 && (n = !n), t === 1 && (d = !d);
744
+ let e = !1, r = !1, s = !1, a = !1, i = o.left > window.innerWidth / 2, d = o.top > window.innerHeight / 2;
745
+ t === 4 && (i = !i), t === 1 && (d = !d);
746
746
  const h = (b = this.elPopupInner) == null ? void 0 : b.getBoundingClientRect();
747
747
  let u, c;
748
748
  if (h) {
749
749
  u = window.innerWidth - h.right, c = window.innerHeight - h.bottom;
750
750
  const g = 8;
751
- h.top < g && (e = !0), u < g && (i = !0), c < g && (s = !0), h.left < g && (a = !0);
751
+ h.top < g && (e = !0), u < g && (r = !0), c < g && (s = !0), h.left < g && (a = !0);
752
752
  }
753
- 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);
753
+ 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);
754
754
  }
755
755
  onTouchmove(t) {
756
756
  var p, o, e;
@@ -763,10 +763,10 @@ class x extends v {
763
763
  close() {
764
764
  var t;
765
765
  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(() => {
766
- var e, i, s, a, n;
766
+ var e, r, s, a, i;
767
767
  if (this.vueClose(), !this.elPopup)
768
768
  return;
769
- 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);
769
+ 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);
770
770
  const p = l.getAllVisible(), o = p.length && p[p.length - 1];
771
771
  o ? l.getPopup(o).focus() : document.documentElement.classList.remove("with_popup");
772
772
  }, this.options.transitionDuration)));
@@ -790,4 +790,4 @@ export {
790
790
  x as Popup,
791
791
  x as default
792
792
  };
793
- //# sourceMappingURL=popup-ZmdXZkvb.es.js.map
793
+ //# sourceMappingURL=popup-B2BoAirk.es.js.map