@topvisor/ui 0.9.5 → 0.9.7

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 (118) hide show
  1. package/.chunks/datepicker-0tFN0clU.amd.js +234 -0
  2. package/.chunks/datepicker-0tFN0clU.amd.js.map +1 -0
  3. package/.chunks/datepicker-8geHBNBn.es.js +275 -0
  4. package/.chunks/datepicker-8geHBNBn.es.js.map +1 -0
  5. package/.chunks/{forms-9516aa6c.es.js → forms-dneLtREE.es.js} +16 -15
  6. package/.chunks/forms-dneLtREE.es.js.map +1 -0
  7. package/.chunks/forms-hIalWiGK.amd.js +3 -0
  8. package/.chunks/forms-hIalWiGK.amd.js.map +1 -0
  9. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-bLJ0dcPn.amd.js +2 -0
  10. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-bLJ0dcPn.amd.js.map +1 -0
  11. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-qWOlkuQ3.es.js +148 -0
  12. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-qWOlkuQ3.es.js.map +1 -0
  13. package/.chunks/{popup-d96418da.amd.js → popup-2azH2gGP.amd.js} +378 -378
  14. package/.chunks/popup-2azH2gGP.amd.js.map +1 -0
  15. package/.chunks/{popup-70a8c892.es.js → popup-GFcVEZf5.es.js} +423 -423
  16. package/.chunks/popup-GFcVEZf5.es.js.map +1 -0
  17. package/README.md +80 -80
  18. package/assets/core.css +1 -1
  19. package/assets/forms.css +1 -1
  20. package/assets/light.css +1 -1
  21. package/core/core.amd.js +1 -1
  22. package/core/core.js +1 -1
  23. package/forms/forms.amd.js +1 -1
  24. package/forms/forms.js +1 -1
  25. package/forms/helpers.amd.js +1 -1
  26. package/forms/helpers.amd.js.map +1 -1
  27. package/forms/helpers.js +2 -2
  28. package/forms/helpers.js.map +1 -1
  29. package/formsExt/formsExt.amd.js +1 -1
  30. package/formsExt/formsExt.amd.js.map +1 -1
  31. package/formsExt/formsExt.js +1 -1
  32. package/formsExt/formsExt.js.map +1 -1
  33. package/icomoon/demo-files/demo.css +161 -161
  34. package/icomoon/demo-files/demo.js +30 -30
  35. package/icomoon/demo.html +2945 -2945
  36. package/icomoon/fonts/Topvisor-2.svg +232 -232
  37. package/icomoon/style.css +647 -647
  38. package/package.json +19 -22
  39. package/popup/popup.amd.js +1 -1
  40. package/popup/popup.amd.js.map +1 -1
  41. package/popup/popup.js +7 -146
  42. package/popup/popup.js.map +1 -1
  43. package/popup/worker.amd.js +1 -1
  44. package/popup/worker.amd.js.map +1 -1
  45. package/popup/worker.js +2 -2
  46. package/popup/worker.js.map +1 -1
  47. package/require/css.amd.js +11 -11
  48. package/src/components/forms/avatar/avatar.stories.d.ts +1 -1
  49. package/src/components/forms/avatar/avatar.vue.d.ts +1 -1
  50. package/src/components/forms/button/button.d.ts +2 -2
  51. package/src/components/forms/button/button.stories.d.ts +6 -1
  52. package/src/components/forms/button/button.vue.d.ts +2 -1
  53. package/src/components/forms/checkbox/checkbox.vue.d.ts +1 -1
  54. package/src/components/forms/controlLabel/controlLabel.vue.d.ts +1 -1
  55. package/src/components/forms/helpers.d.ts +1 -1
  56. package/src/components/forms/hint/hint.stories.d.ts +2 -2
  57. package/src/components/forms/hint/hint.vue.d.ts +1 -1
  58. package/src/components/forms/input/input.d.ts +2 -2
  59. package/src/components/forms/input/input.vue.d.ts +1 -1
  60. package/src/components/forms/inputDate/inputDate.d.ts +2 -2
  61. package/src/components/forms/inputDate/inputDate.stories.d.ts +1 -1
  62. package/src/components/forms/inputDate/inputDate.vue.d.ts +1 -1
  63. package/src/components/forms/inputRange/inputRange.vue.d.ts +1 -1
  64. package/src/components/forms/radio/radio.vue.d.ts +1 -1
  65. package/src/components/forms/select/select.d.ts +2 -2
  66. package/src/components/forms/select/select.stories.d.ts +1 -1
  67. package/src/components/forms/select/select.vue.d.ts +1 -1
  68. package/src/components/forms/switcher/switcher.vue.d.ts +1 -1
  69. package/src/components/forms/textarea/textarea.stories.d.ts +1 -1
  70. package/src/components/forms/textarea/textarea.vue.d.ts +1 -1
  71. package/src/components/formsExt/editArea/editArea.d.ts +1 -1
  72. package/src/components/formsExt/editArea/editArea.stories.d.ts +1 -1
  73. package/src/components/formsExt/editArea/editArea.vue.d.ts +1 -1
  74. package/src/components/formsExt/editInput/editInput.d.ts +2 -2
  75. package/src/components/formsExt/editInput/editInput.vue.d.ts +1 -1
  76. package/src/components/formsExt/radioGroup/radioGroup.d.ts +2 -2
  77. package/src/components/formsExt/radioGroup/radioGroup.stories.d.ts +1 -1
  78. package/src/components/formsExt/radioGroup/radioGroup.vue.d.ts +1 -1
  79. package/src/components/popup/popup/listItem.vue.d.ts +1 -1
  80. package/src/components/popup/popup/opener.vue.d.ts +1 -1
  81. package/src/components/popup/popup/popup.stories.d.ts +1 -0
  82. package/src/components/popup/popup/popup.vue.d.ts +1 -1
  83. package/src/components/tabs/tabs/content.vue.d.ts +1 -1
  84. package/src/components/tabs/tabs/tab.vue.d.ts +1 -1
  85. package/src/components/tabs/tabs/tabs.stories.d.ts +3 -2
  86. package/src/components/tabs/tabs/tabs.vue.d.ts +1 -1
  87. package/src/components/tabsView/tabsView/content.vue.d.ts +1 -1
  88. package/src/components/tabsView/tabsView/menu.vue.d.ts +1 -1
  89. package/src/components/tabsView/tabsView/menuDelimeter.vue.d.ts +1 -1
  90. package/src/components/tabsView/tabsView/menuItem.vue.d.ts +1 -1
  91. package/src/components/tabsView/tabsView/menuTitle.vue.d.ts +1 -1
  92. package/src/components/tabsView/tabsView/tabsView.d.ts +1 -1
  93. package/src/components/tabsView/tabsView/tabsView.vue.d.ts +1 -1
  94. package/src/core/core/core.d.ts +1 -1
  95. package/tabs/tabs.amd.js +1 -1
  96. package/tabs/tabs.js +1 -1
  97. package/tabsView/tabsView.amd.js +1 -1
  98. package/tabsView/tabsView.amd.js.map +1 -1
  99. package/tabsView/tabsView.js +27 -27
  100. package/tabsView/tabsView.js.map +1 -1
  101. package/utils/css.amd.js.map +1 -1
  102. package/utils/css.js.map +1 -1
  103. package/utils/date.amd.js +1 -1
  104. package/utils/date.js +1 -1
  105. package/utils/device.amd.js +1 -1
  106. package/utils/device.js +1 -1
  107. package/utils/dom.amd.js.map +1 -1
  108. package/utils/dom.js.map +1 -1
  109. package/.chunks/datepicker-78c2af5a.es.js +0 -275
  110. package/.chunks/datepicker-78c2af5a.es.js.map +0 -1
  111. package/.chunks/datepicker-cc0011e1.amd.js +0 -234
  112. package/.chunks/datepicker-cc0011e1.amd.js.map +0 -1
  113. package/.chunks/forms-9516aa6c.es.js.map +0 -1
  114. package/.chunks/forms-9972aba2.amd.js +0 -3
  115. package/.chunks/forms-9972aba2.amd.js.map +0 -1
  116. package/.chunks/popup-70a8c892.es.js.map +0 -1
  117. package/.chunks/popup-d96418da.amd.js.map +0 -1
  118. /package/assets/{popup.css → listItem.css} +0 -0
@@ -1,6 +1,6 @@
1
- import { C as m } from "./forms-9516aa6c.es.js";
2
- import r from "../utils/dom.js";
3
- import { PopupWorker as n } from "../popup/worker.js";
1
+ import { C as m } from "./forms-dneLtREE.es.js";
2
+ import n from "../utils/dom.js";
3
+ import { PopupWorker as i } from "../popup/worker.js";
4
4
  import "vue";
5
5
  class g {
6
6
  static componentName = "Top";
@@ -29,11 +29,11 @@ class g {
29
29
  }
30
30
  // получить инициированный компонент
31
31
  static getComponent(t, p) {
32
- return r.storage(t, "#" + p);
32
+ return n.storage(t, "#" + p);
33
33
  }
34
34
  // устанвоить компонент
35
35
  _setComponent(t) {
36
- r.storage(t, "#" + this.componentName, this);
36
+ n.storage(t, "#" + this.componentName, this);
37
37
  }
38
38
  // функция подключения компонента
39
39
  mount() {
@@ -41,7 +41,7 @@ class g {
41
41
  }
42
42
  // функция отключения компонента
43
43
  unmount() {
44
- r.storage(this.el, "#" + this.componentName, null), this.unmountEls.forEach((t) => {
44
+ n.storage(this.el, "#" + this.componentName, null), this.unmountEls.forEach((t) => {
45
45
  t.remove();
46
46
  }), this.unmountEls = [], this.unmountEvents.forEach((t) => {
47
47
  t.el.removeEventListener(t.type, t.listener, t.options);
@@ -57,13 +57,13 @@ class g {
57
57
  }
58
58
  // указание новые события, которые должны будут удалиться после unmount
59
59
  registerEventForUnmount(t, p, o, e) {
60
- const i = {
60
+ const r = {
61
61
  el: t,
62
62
  type: p,
63
63
  listener: o,
64
64
  options: e
65
65
  };
66
- this.unmountEvents.push(i);
66
+ this.unmountEvents.push(r);
67
67
  }
68
68
  // функция перенастройки уже подключенного компонента
69
69
  reInit(t) {
@@ -100,15 +100,15 @@ class b {
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"), l = t.target.closest("a, .a");
104
- i && ((o = i.querySelector("a.top-active, .a.top-active")) == null || o.classList.remove("top-active")), l && l.classList.add("top-active");
103
+ const r = t.target.closest("ul"), l = t.target.closest("a, .a");
104
+ r && ((o = r.querySelector("a.top-active, .a.top-active")) == null || o.classList.remove("top-active")), l && l.classList.add("top-active");
105
105
  return;
106
106
  }
107
- n.close(e);
107
+ i.close(e);
108
108
  }
109
109
  if (t.target.matches(".top-popup-wrapper")) {
110
110
  const e = t.target;
111
- n.close(e);
111
+ i.close(e);
112
112
  }
113
113
  }
114
114
  /**
@@ -123,23 +123,23 @@ class b {
123
123
  const o = p.querySelector("ul.top-popup_content");
124
124
  switch (t.key) {
125
125
  case "Escape":
126
- n.close(p);
126
+ i.close(p);
127
127
  break;
128
128
  case "Enter":
129
129
  if (!o) {
130
- if (r.querySelectorVisible(p, ".preloader"))
130
+ if (n.querySelectorVisible(p, ".preloader"))
131
131
  break;
132
- const c = r.querySelectorVisible(p, ".top-popup_footer .go, .top-popup_footer [data-action]");
132
+ const c = n.querySelectorVisible(p, ".top-popup_footer .go, .top-popup_footer [data-action]");
133
133
  if (c) {
134
134
  c.click();
135
135
  break;
136
136
  }
137
- const d = r.querySelectorVisibleLast(p, ".top-popup_footer .top-button");
137
+ const d = n.querySelectorVisibleLast(p, ".top-popup_footer .top-button");
138
138
  d && d.click();
139
139
  break;
140
140
  }
141
- const i = r.querySelectorVisible(p, "li > a.top-active");
142
- i && (t.preventDefault(), location.href = i.getAttribute("href"));
141
+ const r = n.querySelectorVisible(p, "li > a.top-active");
142
+ r && (t.preventDefault(), location.href = r.getAttribute("href"));
143
143
  const l = p.querySelector("li > .top-active");
144
144
  l && l.click();
145
145
  break;
@@ -149,7 +149,7 @@ class b {
149
149
  case "ArrowLeft":
150
150
  if (!o)
151
151
  break;
152
- t.key === "ArrowRight" || t.key === "ArrowLeft" ? r.querySelectorVisible(
152
+ t.key === "ArrowRight" || t.key === "ArrowLeft" ? n.querySelectorVisible(
153
153
  p,
154
154
  "ul.top-popup_content > li:not(.top-popup_liNoSelectable) > .top-active > .top-popup_listMore"
155
155
  ) && t.preventDefault() : t.preventDefault();
@@ -159,395 +159,395 @@ class b {
159
159
  if (c)
160
160
  return c.click();
161
161
  }
162
- const a = r.querySelectorAllVisible(p, "ul.top-popup_content > li:not(.top-popup_liNoSelectable)"), u = a.length;
162
+ const a = n.querySelectorAllVisible(p, "ul.top-popup_content > li:not(.top-popup_liNoSelectable)"), u = a.length;
163
163
  if (!u)
164
164
  return;
165
165
  let s = a.indexOf(h);
166
166
  if (t.key === "ArrowUp" || t.key === "ArrowLeft" ? s-- : s++, t.key === "ArrowLeft" && s === -1)
167
- return t.target.matches("input") ? void 0 : n.close(p);
167
+ return t.target.matches("input") ? void 0 : i.close(p);
168
168
  if (t.key === "ArrowRight" && s === u)
169
169
  return;
170
- s < 0 && (s = u - 1), s > u - 1 && (s = 0), p.querySelectorAll("ul.top-popup_content > li > .top-active").forEach((c) => c.classList.remove("top-active")), a[s].querySelector(":scope > a, :scope > .a").classList.add("top-active"), n.scrollToActive(p);
170
+ s < 0 && (s = u - 1), s > u - 1 && (s = 0), p.querySelectorAll("ul.top-popup_content > li > .top-active").forEach((c) => c.classList.remove("top-active")), a[s].querySelector(":scope > a, :scope > .a").classList.add("top-active"), i.scrollToActive(p);
171
171
  break;
172
172
  }
173
173
  }
174
174
  }
175
- const x = `:root{\r
176
- --top-popup-background-color: var(--color-bg-3);\r
177
- --top-popup-background-color-hover: var(--color-theme-75);\r
178
- --top-popup-background-color-active: var(--color-theme-100);\r
179
- \r
180
- --top-popup-border-color: var(--color-line-2-opacity);\r
181
- --top-popup-title-background-color: var(--color-theme-50);\r
182
- \r
183
- /* суммарный отсуп от каря popup до элемента */\r
184
- --top-popup-content-padding: calc(var(--top-popup-list-padding) + var(--top-popup-listItem-padding));\r
185
- \r
186
- /* списки */\r
187
- --top-popup-list-padding: var(--top-padding-2);\r
188
- \r
189
- --top-popup-listItem-radius: var(--top-radius-2);\r
190
- --top-popup-listItem-padding: var(--top-padding-2);\r
191
- }\r
192
- \r
193
- .top-popup-front{ position: relative; }\r
194
- \r
195
- .top-popup-wrapper{\r
196
- /* см. recalcPosition() */\r
197
- --top-popup-height: 0px;\r
198
- --top-popup-right-bounding: 0px;\r
199
- --top-popup-bottom-bounding: 0px;\r
200
- --top-popup-top: 0px;\r
201
- --top-popup-right: calc(100vw - var(--top-popup-right-bounding));\r
202
- --top-popup-bottom: calc(var(--100vh) - var(--top-popup-bottom-bounding));\r
203
- --top-popup-left: 0px;\r
204
- \r
205
- text-align: initial; white-space: normal; word-break: normal;\r
206
- position: absolute; z-index: 200000;\r
207
- }\r
208
- .top-popup-wrapper:not(.top-popup-wrapper-shown){ overflow: hidden; }\r
209
- \r
210
- /* top-popupPanel */\r
211
- .top-popupPanel {\r
212
- cursor: default;\r
213
- box-shadow: var(--top-shadow-b);\r
214
- border-radius: 8px;\r
215
- background: var(--top-popup-background-color);\r
216
- position: absolute; overflow: hidden;\r
217
- display: flex; flex-direction: column;\r
218
- }\r
219
- \r
220
- /* position */\r
221
- .top-popup-wrapper > *{ opacity: 0; transition: opacity 100ms linear, transform 100ms linear; }\r
222
- .top-popup-wrapper.p0 > *{ transform: translateY(-8px); }\r
223
- .top-popup-wrapper.p1 > *{ transform: translateY(8px); }\r
224
- .top-popup-wrapper.p2 > *{ transform: translateX(8px); }\r
225
- .top-popup-wrapper.p3 > *{ transform: translateY(8px); }\r
226
- .top-popup-wrapper.p4 > *{ transform: translateX(-8px); }\r
227
- .top-popup-wrapper-shown:not(.top-popup-wrapper-closed) > *{opacity: 1;transform: translate(0, 0) !important;}\r
228
- \r
229
- .top-popup-wrapper.p0 > .top-popup{ top: calc(-16px); left: calc(0px - 8px); }\r
230
- .top-popup-wrapper.p1 > .top-popup{ bottom: calc(100% + 8px); }\r
231
- .top-popup-wrapper.p2 > .top-popup{ left: calc(100% + 8px); }\r
232
- .top-popup-wrapper.p3 > .top-popup{ top: calc(100% + 8px); }\r
233
- .top-popup-wrapper.p4 > .top-popup{ right: calc(100% + 8px); }\r
234
- .top-popup-wrapper.p2 > .top-popup,\r
235
- .top-popup-wrapper.p4 > .top-popup{ margin-top: -10px; }\r
236
- \r
237
- .top-popup-wrapper.p1.with_notch > .top-popup{ margin-bottom: 5px; }\r
238
- .top-popup-wrapper.p2.with_notch > .top-popup{ margin-left: 5px; }\r
239
- .top-popup-wrapper.p3.with_notch > .top-popup{ margin-top: 5px; }\r
240
- .top-popup-wrapper.p4.with_notch > .top-popup{ margin-right: 5px; }\r
241
- \r
242
- .top-popup-wrapper.invert-x > .top-popup{ right: 0; }\r
243
- .top-popup-wrapper.invert-y > .top-popup{ bottom: 0; }\r
244
- \r
245
- /* notch */\r
246
- .top-popup-wrapper > .notch{ border: 7.4px solid transparent; position: absolute; display: block; }\r
247
- \r
248
- .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
249
- .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
250
- .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
251
- .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
252
- \r
253
- .top-popup-wrapper.p1 > .notch-border{ border-top-color: rgba(0,0,0,0.05); margin-bottom: 6px; }\r
254
- .top-popup-wrapper.p2 > .notch-border{ border-right-color: rgba(0,0,0,0.05); margin-left: 6px; }\r
255
- .top-popup-wrapper.p3 > .notch-border{ border-bottom-color: rgba(0,0,0,0.05); margin-top: 6px; }\r
256
- .top-popup-wrapper.p4 > .notch-border{ border-left-color: rgba(0,0,0,0.05); margin-right: 6px; }\r
257
- \r
258
- /* common */\r
259
- .top-popup_header,\r
260
- .top-popup_content,\r
261
- .top-popup_footer{ font-size: 14px; }\r
262
- .top-popup_header,\r
263
- .top-popup_footer{ display: flex; align-items: center; justify-content: space-between; }\r
264
- \r
265
- /* header */\r
266
- .top-popup_header{\r
267
- border-bottom: 1px solid var(--top-popup-border-color);\r
268
- padding: var(--top-padding-3);\r
269
- font-weight: 600;\r
270
- }\r
271
- .top-popup_header > *{ font-weight: 400; }\r
272
- .top-popup_header > .a{ cursor: pointer; color: var(--color-blue-450); }\r
273
- .top-popup_header > .a:hover{ color: var(--color-blue-350); }\r
274
- \r
275
- .top-popup_headerButton{ width: 60px; }\r
276
- \r
277
- /* content */\r
278
- .top-popup_content{\r
279
- margin: 0;\r
280
- flex-grow: 1;\r
281
- overflow-y: auto;\r
282
- display: flex;\r
283
- flex-direction: column;\r
284
- gap: var(--top-gap-4);\r
285
- \r
286
- -webkit-overflow-scrolling: touch;\r
287
- }\r
288
- \r
289
- div.top-popup_content{\r
290
- /* has_scroll */\r
291
- --scroll-padding-top: var(--top-popup-content-padding);\r
292
- --scroll-padding-bottom: var(--top-popup-content-padding);\r
293
- \r
294
- padding: var(--top-popup-content-padding);\r
295
- }\r
296
- div.top-popup_content > *{ flex-shrink: 0; }\r
297
- div.top-popup_content > .top-button{ margin: 0; }\r
298
- \r
299
- div.top-popup_content .top-unwrap{\r
300
- --top-unwrap-x: var(--top-popup-content-padding);\r
301
- }\r
302
- \r
303
- ul.top-popup_content{\r
304
- --scroll-padding-top: var(--top-popup-list-padding);\r
305
- --scroll-padding-bottom: var(--top-popup-list-padding);\r
306
- \r
307
- padding: var(--top-popup-list-padding);\r
308
- gap: 2px;\r
309
- }\r
310
- \r
311
- ul.top-popup_content .top-unwrap{\r
312
- --top-unwrap-x: var(--top-popup-list-padding);\r
313
- }\r
314
- \r
315
- .top-popup_listItem {\r
316
- border-radius: var(--top-popup-listItem-radius);\r
317
- padding: var(--top-popup-listItem-padding);\r
318
- line-height: 1 !important;\r
319
- }\r
320
- \r
321
- ul.top-popup_content li{ margin: 0; list-style:none; display: flex; position: relative }\r
322
- ul.top-popup_content li > *{ flex-grow: 1; }\r
323
- ul.top-popup_content li > a:not(.top-button),\r
324
- ul.top-popup_content li > .a{\r
325
- cursor: pointer;\r
326
- box-sizing: border-box;\r
327
- border-radius: var(--top-popup-listItem-radius);\r
328
- background: var(--top-popup-background-color);\r
329
- padding: var(--top-popup-listItem-padding);\r
330
- color: var(--color-text) !important; font-size: 14px; font-weight: normal !important; text-decoration: none !important; font-style: normal;\r
331
- line-height: 1 !important;\r
332
- display: flex; flex: 1 1 100%; align-items: center;\r
333
- transition: background-color 0.1s ease-in-out;\r
334
- }\r
335
- .top-popup-wrapper-no_animate ul.top-popup_content li > a:not(.top-button),\r
336
- .top-popup-wrapper-no_animate ul.top-popup_content li > .a{ transition: none; }\r
337
- \r
338
- ul.top-popup_content li > a:not(.top-button):hover,\r
339
- ul.top-popup_content li > .a:hover{ background: var(--top-popup-background-color-hover); }\r
340
- ul.top-popup_content li > a:not(.top-button).top-active,\r
341
- ul.top-popup_content li > .a.top-active{ background: var(--top-popup-background-color-active); }\r
342
- \r
343
- .top-popup_content + .top-popup_content{ padding-top: 0; }\r
344
- \r
345
- /* listTitle */\r
346
- .top-popup_listItem-title{\r
347
- background: var(--top-popup-title-background-color);\r
348
- color: var(--color-text-2); font-size: 12px;\r
349
- }\r
350
- \r
351
- /* listDelimiter */\r
352
- .top-popup_listItem-delimiter{\r
353
- border-radius: 3px;\r
354
- background: var(--top-popup-border-color);\r
355
- height: 1px;\r
356
- padding: 0;\r
357
- margin: 4px;\r
358
- }\r
359
- \r
360
- /* listMore */\r
361
- .top-popup_listMore{\r
362
- font-size: 20px;\r
363
- margin: calc(0px - var(--top-popup-listItem-padding)) 0;\r
364
- }\r
365
- \r
366
- ul.top-popup_content li > .a.top-popup_listMore{\r
367
- text-align: center;\r
368
- flex-basis: 10px;\r
369
- }\r
370
- ul.top-popup_content li > .a.top-popup_listMore:before{ color: var(--color-gray-500); }\r
371
- ul.top-popup_content li > * > .top-popup_listMore{\r
372
- margin-left: auto;\r
373
- color: var(--color-gray-500);\r
374
- font-size: 14px;\r
375
- }\r
376
- ul.top-popup_content li > * > i.top-popup_listMore:hover,\r
377
- ul.top-popup_content li > * > i.top-popup_listMore.top-active{ color: var(--color-blue-500); }\r
378
- ul.top-popup_content li > * > i.top-popup_listMore:before{\r
379
- transform: rotate(90deg);\r
380
- display: block;\r
381
- }\r
382
- \r
383
- ul.top-popup_content li a.close{ background: none !important; }\r
384
- \r
385
- /* data-top-icon */\r
386
- .top-popup_content > [data-top-icon]:before{\r
387
- --top-icon-size: 20px;\r
388
- }\r
389
- \r
390
- ul.top-popup_content li > [data-top-icon]:not(.top-button):before{\r
391
- --top-icon-color: var(--color-text-3);\r
392
- --top-icon-size: 20px;\r
393
- --top-icon-width: 20px;\r
394
- \r
395
- height: 1rem; margin-right: 8px; transition: color 0.1s;\r
396
- }\r
397
- ul.top-popup_content li:hover > [data-top-icon]:not(.top-button):before,\r
398
- ul.top-popup_content li > [data-top-icon]:not(.top-button).top-active:before{\r
399
- --top-icon-color: var(--color-text-2);\r
400
- }\r
401
- \r
402
- /* footer */\r
403
- .top-popup_footer{\r
404
- padding: var(--top-popup-list-padding);\r
405
- border-top: 1px solid var(--top-popup-border-color);\r
406
- display: flex;\r
407
- gap:var(--top-gap-2);\r
408
- justify-content: flex-end;\r
409
- }\r
410
- \r
411
- /* Виджеты */\r
412
- .top-popup > [data-widget]{ padding: 0 var(--top-popup-list-padding); }\r
413
- .top-popup > [data-widget] + hr{ margin: 0 var(--top-popup-list-padding); }\r
414
- \r
415
- .top-popup .placeholder{\r
416
- border:1px solid #E0D9D9 !important; border-right: none !important; border-left: none !important; background:#F9F9F9 !important; margin: -1px 0; z-index: 1;\r
417
- position: relative;\r
418
- }\r
419
- \r
420
- /* компоненты */\r
421
- .top-popup-wrapper.simple_list > .top-popup{ min-width: 0; white-space: nowrap; }\r
422
- \r
423
- .top-popup_content .top-column{ display: flex; flex-direction: column; gap: 4px; }\r
424
- html .top-popup .top-popup_content li > .top-button{\r
425
- margin:calc(var(--top-popup-listItem-padding) / 2) var(--top-popup-listItem-padding);\r
426
- }\r
427
- \r
428
- .top-popup li .check_all,\r
429
- .top-popup li .clear_all{ cursor: pointer; color: var(--color-cyan); padding: 8px; display: inline-block; }\r
430
- .top-popup li .check_all:hover,\r
431
- .top-popup li .clear_all:hover{ text-decoration: underline; }\r
432
- .top-popup li .clear_all{ display: none; }\r
433
- \r
434
- /* table */\r
435
- .top-popup_content table{ margin: -9px 0; }\r
436
- .top-popup_content table td,\r
437
- .top-popup_content table th{ padding: 9px var(--top-popup-listItem-padding) 9px 0; vertical-align: top; }\r
438
- .top-popup_content table th{ width: 40%; font-weight: 600; white-space: nowrap; }\r
439
- \r
440
- /* формы */\r
441
- ul.top-popup_content .a > [type="checkbox"],\r
442
- ul.top-popup_content .a > [type="radio"]{ margin: -8px 0 -8px auto; }\r
443
- \r
444
- /* deprecated */\r
445
- ul.top-popup_content a > [class*=icon],\r
446
- ul.top-popup_content i.a > [class*=icon]{\r
447
- transition: 0.1s;\r
448
- }\r
449
- \r
450
- .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
451
- .top-popup_footer [class*=btn]:not(.btn-transparent){ min-width: 100px; padding: 5px 14px; margin-left: 10px; }\r
452
- .top-popup_footer [class*=btn]:first-child{ margin-left: 0; }\r
453
- .top-popup_footer .btn.full_width{ margin: 0; flex-grow: 1; }`, w = `:root{\r
454
- --top-popup-list-padding: 0px;\r
455
- \r
456
- --top-popup-listItem-radius: 0px;\r
457
- --top-popup-listItem-padding: var(--top-padding-4);\r
458
- }\r
459
- \r
460
- html.with_popup{ background: #808080; }\r
461
- \r
462
- .top-popup-wrapper{\r
463
- --top-popup-footer-offset: 25px;\r
464
- \r
465
- width: auto !important; height: auto !important;\r
466
- position: fixed; top: 0 !important; right: 0 !important; left: 0 !important; overflow: hidden;\r
467
- transition: background 0.3s;\r
468
- }\r
469
- \r
470
- .top-popup-wrapper-shown:not(.top-popup-wrapper-closed){ background: rgba(0,0,0,0.5); backdrop-filter: blur(1px); }\r
471
- .top-popup-wrapper-shown:not(.top-popup-wrapper-closed) > .top-popup{ opacity: 1 !important; }\r
472
- \r
473
- .top-popup{\r
474
- border-radius: 8px 8px 0 0; width: auto !important; max-height: calc(100% - var(--header-height) - var(--toolbar-height) - 12px); margin: 0 !important;\r
475
- top: auto !important; right: 0 !important; bottom: var(--toolbar-height) !important; left: 0 !important;\r
476
- display: flex; flex-direction: column;\r
477
- \r
478
- /* невозможно опустить элемент вниз за экран на 100%, fix: opacity и translateY(80%) */\r
479
- transform: translateY(80%);\r
480
- \r
481
- transition: opacity 0.3s, transform 0.3s;\r
482
- }\r
483
- \r
484
- /* from top */\r
485
- .top-popup-wrapper.p-from-top{\r
486
- --top-popup-footer-offset: 0px;\r
487
- \r
488
- top: var(--header-height) !important;\r
489
- }\r
490
- .with_dialog .top-popup-wrapper.p-from-top{ top: 50px !important; }\r
491
- .top-popup-wrapper.p-from-top > .top-popup{\r
492
- border-radius: 0 0 8px 8px; max-height: calc(100% - 24px); top: 0 !important; bottom: auto !important;\r
493
- transform: translateY(calc(-100% - 24px));\r
494
- }\r
495
- \r
496
- /* content */\r
497
- ul.top-popup_content{\r
498
- --scroll-padding-top: 0px;\r
499
- --scroll-padding-bottom: var(--scroll-padding-top);\r
500
- \r
501
- gap: 0;\r
502
- }\r
503
- ul.top-popup_content li:not(:last-child){ border-bottom: 1px solid var(--top-popup-border-color); }\r
504
- \r
505
- .top-popup-wrapper.top-style_alt > .top-popup > ul > li{ border-bottom: none; }\r
506
- \r
507
- /* footer */\r
508
- .top-popup_footer{\r
509
- flex-direction: column-reverse;\r
510
- }\r
511
- .top-popup_footer > .top-button{\r
512
- --top-forms-base-height: var(--top-forms-base-height_xl);\r
513
- \r
514
- width: 100%;\r
515
- }\r
516
- \r
517
- /* listTitle */\r
518
- ul.top-popup_content .top-popup_listItem-title{\r
519
- --top-popup-padding-v: 12px;\r
520
- }\r
521
- \r
522
- /* listDelimiter */\r
523
- ul.top-popup_content .top-popup_listItem-delimiter{ background: var(--color-line-1-opacity); height: 4px; margin: 0; }\r
524
- ul.top-popup_content li:first-child > .top-popup_listItem-delimiter{ border-top: 1px solid var(--top-popup-border-color); }`, P = `html:not(.with_dialog){ margin-right: 0 !important; }\r
525
- \r
526
- .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
527
- .top-popup-wrapper.invert-x > .top-popup{ max-width: calc(100vw - var(--top-popup-right) - 16px); }\r
528
- .top-popup-wrapper.invert-y > .top-popup{ max-height: calc(100vh - var(--top-popup-bottom) - 16px); }\r
529
- \r
530
- /* position */\r
531
- .top-popup-wrapper.p1 > .top-popup{ max-height: calc(var(--top-popup-top) - var(--header-height) - 16px); }\r
532
- .top-popup-wrapper.p3 > .top-popup{ max-height: calc(var(--top-popup-bottom) - 16px); }\r
533
- .top-popup-wrapper.p2 > .top-popup{ max-width: calc(var(--top-popup-right) - 16px); }\r
534
- .top-popup-wrapper.p4 > .top-popup{ max-width: calc(var(--top-popup-left) - 16px); }\r
535
- \r
536
- /* notch */\r
537
- .top-popup-wrapper.p1.with_notch > .top-popup,\r
538
- .top-popup-wrapper.p3.with_notch > .top-popup{ margin-left: -16px !important; }\r
539
- .top-popup-wrapper.p1.with_notch > .notch,\r
540
- .top-popup-wrapper.p3.with_notch > .notch{ margin-left: -8px !important; }\r
541
- \r
542
- .top-popup-wrapper.p1.with_notch.invert-x,\r
543
- .top-popup-wrapper.p3.with_notch.invert-x{ margin-left: 3px !important; }\r
544
- .top-popup-wrapper.p1.with_notch.invert-x > .notch,\r
545
- .top-popup-wrapper.p3.with_notch.invert-x > .notch{ margin-left: -9px !important; }\r
546
- \r
547
- /* listMore */\r
548
- ul.top-popup_content li > * > i.top-popup_listMore{ visibility: hidden; transition: none; }\r
549
- ul.top-popup_content li:hover > * > i.top-popup_listMore,\r
550
- ul.top-popup_content li > *.top-active > i.top-popup_listMore,\r
175
+ const x = `:root{
176
+ --top-popup-background-color: var(--color-bg-3);
177
+ --top-popup-background-color-hover: var(--color-theme-75);
178
+ --top-popup-background-color-active: var(--color-theme-100);
179
+
180
+ --top-popup-border-color: var(--color-line-2-opacity);
181
+ --top-popup-title-background-color: var(--color-theme-50);
182
+
183
+ /* суммарный отсуп от каря popup до элемента */
184
+ --top-popup-content-padding: calc(var(--top-popup-list-padding) + var(--top-popup-listItem-padding));
185
+
186
+ /* списки */
187
+ --top-popup-list-padding: var(--top-padding-2);
188
+
189
+ --top-popup-listItem-radius: var(--top-radius-2);
190
+ --top-popup-listItem-padding: var(--top-padding-2);
191
+ }
192
+
193
+ .top-popup-front{ position: relative; }
194
+
195
+ .top-popup-wrapper{
196
+ /* см. recalcPosition() */
197
+ --top-popup-height: 0px;
198
+ --top-popup-right-bounding: 0px;
199
+ --top-popup-bottom-bounding: 0px;
200
+ --top-popup-top: 0px;
201
+ --top-popup-right: calc(100vw - var(--top-popup-right-bounding));
202
+ --top-popup-bottom: calc(var(--100vh) - var(--top-popup-bottom-bounding));
203
+ --top-popup-left: 0px;
204
+
205
+ text-align: initial; white-space: normal; word-break: normal;
206
+ position: absolute; z-index: 200000;
207
+ }
208
+ .top-popup-wrapper:not(.top-popup-wrapper-shown){ overflow: hidden; }
209
+
210
+ /* top-popupPanel */
211
+ .top-popupPanel {
212
+ cursor: default;
213
+ box-shadow: var(--top-shadow-b);
214
+ border-radius: 8px;
215
+ background: var(--top-popup-background-color);
216
+ position: absolute; overflow: hidden;
217
+ display: flex; flex-direction: column;
218
+ }
219
+
220
+ /* position */
221
+ .top-popup-wrapper > *{ opacity: 0; transition: opacity 100ms linear, transform 100ms linear; }
222
+ .top-popup-wrapper.p0 > *{ transform: translateY(-8px); }
223
+ .top-popup-wrapper.p1 > *{ transform: translateY(8px); }
224
+ .top-popup-wrapper.p2 > *{ transform: translateX(8px); }
225
+ .top-popup-wrapper.p3 > *{ transform: translateY(8px); }
226
+ .top-popup-wrapper.p4 > *{ transform: translateX(-8px); }
227
+ .top-popup-wrapper-shown:not(.top-popup-wrapper-closed) > *{opacity: 1;transform: translate(0, 0) !important;}
228
+
229
+ .top-popup-wrapper.p0 > .top-popup{ top: calc(-16px); left: calc(0px - 8px); }
230
+ .top-popup-wrapper.p1 > .top-popup{ bottom: calc(100% + 8px); }
231
+ .top-popup-wrapper.p2 > .top-popup{ left: calc(100% + 8px); }
232
+ .top-popup-wrapper.p3 > .top-popup{ top: calc(100% + 8px); }
233
+ .top-popup-wrapper.p4 > .top-popup{ right: calc(100% + 8px); }
234
+ .top-popup-wrapper.p2 > .top-popup,
235
+ .top-popup-wrapper.p4 > .top-popup{ margin-top: -10px; }
236
+
237
+ .top-popup-wrapper.p1.with_notch > .top-popup{ margin-bottom: 5px; }
238
+ .top-popup-wrapper.p2.with_notch > .top-popup{ margin-left: 5px; }
239
+ .top-popup-wrapper.p3.with_notch > .top-popup{ margin-top: 5px; }
240
+ .top-popup-wrapper.p4.with_notch > .top-popup{ margin-right: 5px; }
241
+
242
+ .top-popup-wrapper.invert-x > .top-popup{ right: 0; }
243
+ .top-popup-wrapper.invert-y > .top-popup{ bottom: 0; }
244
+
245
+ /* notch */
246
+ .top-popup-wrapper > .notch{ border: 7.4px solid transparent; position: absolute; display: block; }
247
+
248
+ .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% }
249
+ .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%; }
250
+ .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%; }
251
+ .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%; }
252
+
253
+ .top-popup-wrapper.p1 > .notch-border{ border-top-color: rgba(0,0,0,0.05); margin-bottom: 6px; }
254
+ .top-popup-wrapper.p2 > .notch-border{ border-right-color: rgba(0,0,0,0.05); margin-left: 6px; }
255
+ .top-popup-wrapper.p3 > .notch-border{ border-bottom-color: rgba(0,0,0,0.05); margin-top: 6px; }
256
+ .top-popup-wrapper.p4 > .notch-border{ border-left-color: rgba(0,0,0,0.05); margin-right: 6px; }
257
+
258
+ /* common */
259
+ .top-popup_header,
260
+ .top-popup_content,
261
+ .top-popup_footer{ font-size: 14px; }
262
+ .top-popup_header,
263
+ .top-popup_footer{ display: flex; align-items: center; justify-content: space-between; }
264
+
265
+ /* header */
266
+ .top-popup_header{
267
+ border-bottom: 1px solid var(--top-popup-border-color);
268
+ padding: var(--top-padding-3);
269
+ font-weight: 600;
270
+ }
271
+ .top-popup_header > *{ font-weight: 400; }
272
+ .top-popup_header > .a{ cursor: pointer; color: var(--color-blue-450); }
273
+ .top-popup_header > .a:hover{ color: var(--color-blue-350); }
274
+
275
+ .top-popup_headerButton{ width: 60px; }
276
+
277
+ /* content */
278
+ .top-popup_content{
279
+ margin: 0;
280
+ flex-grow: 1;
281
+ overflow-y: auto;
282
+ display: flex;
283
+ flex-direction: column;
284
+ gap: var(--top-gap-4);
285
+
286
+ -webkit-overflow-scrolling: touch;
287
+ }
288
+
289
+ div.top-popup_content{
290
+ /* has_scroll */
291
+ --scroll-padding-top: var(--top-popup-content-padding);
292
+ --scroll-padding-bottom: var(--top-popup-content-padding);
293
+
294
+ padding: var(--top-popup-content-padding);
295
+ }
296
+ div.top-popup_content > *{ flex-shrink: 0; }
297
+ div.top-popup_content > .top-button{ margin: 0; }
298
+
299
+ div.top-popup_content .top-unwrap{
300
+ --top-unwrap-x: var(--top-popup-content-padding);
301
+ }
302
+
303
+ ul.top-popup_content{
304
+ --scroll-padding-top: var(--top-popup-list-padding);
305
+ --scroll-padding-bottom: var(--top-popup-list-padding);
306
+
307
+ padding: var(--top-popup-list-padding);
308
+ gap: 2px;
309
+ }
310
+
311
+ ul.top-popup_content .top-unwrap{
312
+ --top-unwrap-x: var(--top-popup-list-padding);
313
+ }
314
+
315
+ .top-popup_listItem {
316
+ border-radius: var(--top-popup-listItem-radius);
317
+ padding: var(--top-popup-listItem-padding);
318
+ line-height: 1 !important;
319
+ }
320
+
321
+ ul.top-popup_content li{ margin: 0; list-style:none; display: flex; position: relative }
322
+ ul.top-popup_content li > *{ flex-grow: 1; }
323
+ ul.top-popup_content li > a:not(.top-button),
324
+ ul.top-popup_content li > .a{
325
+ cursor: pointer;
326
+ box-sizing: border-box;
327
+ border-radius: var(--top-popup-listItem-radius);
328
+ background: var(--top-popup-background-color);
329
+ padding: var(--top-popup-listItem-padding);
330
+ color: var(--color-text) !important; font-size: 14px; font-weight: normal !important; text-decoration: none !important; font-style: normal;
331
+ line-height: 1 !important;
332
+ display: flex; flex: 1 1 100%; align-items: center;
333
+ transition: background-color 0.1s ease-in-out;
334
+ }
335
+ .top-popup-wrapper-no_animate ul.top-popup_content li > a:not(.top-button),
336
+ .top-popup-wrapper-no_animate ul.top-popup_content li > .a{ transition: none; }
337
+
338
+ ul.top-popup_content li > a:not(.top-button):hover,
339
+ ul.top-popup_content li > .a:hover{ background: var(--top-popup-background-color-hover); }
340
+ ul.top-popup_content li > a:not(.top-button).top-active,
341
+ ul.top-popup_content li > .a.top-active{ background: var(--top-popup-background-color-active); }
342
+
343
+ .top-popup_content + .top-popup_content{ padding-top: 0; }
344
+
345
+ /* listTitle */
346
+ .top-popup_listItem-title{
347
+ background: var(--top-popup-title-background-color);
348
+ color: var(--color-text-2); font-size: 12px;
349
+ }
350
+
351
+ /* listDelimiter */
352
+ .top-popup_listItem-delimiter{
353
+ border-radius: 3px;
354
+ background: var(--top-popup-border-color);
355
+ height: 1px;
356
+ padding: 0;
357
+ margin: 4px;
358
+ }
359
+
360
+ /* listMore */
361
+ .top-popup_listMore{
362
+ font-size: 20px;
363
+ margin: calc(0px - var(--top-popup-listItem-padding)) 0;
364
+ }
365
+
366
+ ul.top-popup_content li > .a.top-popup_listMore{
367
+ text-align: center;
368
+ flex-basis: 10px;
369
+ }
370
+ ul.top-popup_content li > .a.top-popup_listMore:before{ color: var(--color-gray-500); }
371
+ ul.top-popup_content li > * > .top-popup_listMore{
372
+ margin-left: auto;
373
+ color: var(--color-gray-500);
374
+ font-size: 14px;
375
+ }
376
+ ul.top-popup_content li > * > i.top-popup_listMore:hover,
377
+ ul.top-popup_content li > * > i.top-popup_listMore.top-active{ color: var(--color-blue-500); }
378
+ ul.top-popup_content li > * > i.top-popup_listMore:before{
379
+ transform: rotate(90deg);
380
+ display: block;
381
+ }
382
+
383
+ ul.top-popup_content li a.close{ background: none !important; }
384
+
385
+ /* data-top-icon */
386
+ .top-popup_content > [data-top-icon]:before{
387
+ --top-icon-size: 20px;
388
+ }
389
+
390
+ ul.top-popup_content li > [data-top-icon]:not(.top-button):before{
391
+ --top-icon-color: var(--color-text-3);
392
+ --top-icon-size: 20px;
393
+ --top-icon-width: 20px;
394
+
395
+ height: 1rem; margin-right: 8px; transition: color 0.1s;
396
+ }
397
+ ul.top-popup_content li:hover > [data-top-icon]:not(.top-button):before,
398
+ ul.top-popup_content li > [data-top-icon]:not(.top-button).top-active:before{
399
+ --top-icon-color: var(--color-text-2);
400
+ }
401
+
402
+ /* footer */
403
+ .top-popup_footer{
404
+ padding: var(--top-popup-list-padding);
405
+ border-top: 1px solid var(--top-popup-border-color);
406
+ display: flex;
407
+ gap:var(--top-gap-2);
408
+ justify-content: flex-end;
409
+ }
410
+
411
+ /* Виджеты */
412
+ .top-popup > [data-widget]{ padding: 0 var(--top-popup-list-padding); }
413
+ .top-popup > [data-widget] + hr{ margin: 0 var(--top-popup-list-padding); }
414
+
415
+ .top-popup .placeholder{
416
+ border:1px solid #E0D9D9 !important; border-right: none !important; border-left: none !important; background:#F9F9F9 !important; margin: -1px 0; z-index: 1;
417
+ position: relative;
418
+ }
419
+
420
+ /* компоненты */
421
+ .top-popup-wrapper.simple_list > .top-popup{ min-width: 0; white-space: nowrap; }
422
+
423
+ .top-popup_content .top-column{ display: flex; flex-direction: column; gap: 4px; }
424
+ html .top-popup .top-popup_content li > .top-button{
425
+ margin:calc(var(--top-popup-listItem-padding) / 2) var(--top-popup-listItem-padding);
426
+ }
427
+
428
+ .top-popup li .check_all,
429
+ .top-popup li .clear_all{ cursor: pointer; color: var(--color-cyan); padding: 8px; display: inline-block; }
430
+ .top-popup li .check_all:hover,
431
+ .top-popup li .clear_all:hover{ text-decoration: underline; }
432
+ .top-popup li .clear_all{ display: none; }
433
+
434
+ /* table */
435
+ .top-popup_content table{ margin: -9px 0; }
436
+ .top-popup_content table td,
437
+ .top-popup_content table th{ padding: 9px var(--top-popup-listItem-padding) 9px 0; vertical-align: top; }
438
+ .top-popup_content table th{ width: 40%; font-weight: 600; white-space: nowrap; }
439
+
440
+ /* формы */
441
+ ul.top-popup_content .a > [type="checkbox"],
442
+ ul.top-popup_content .a > [type="radio"]{ margin: -8px 0 -8px auto; }
443
+
444
+ /* deprecated */
445
+ ul.top-popup_content a > [class*=icon],
446
+ ul.top-popup_content i.a > [class*=icon]{
447
+ transition: 0.1s;
448
+ }
449
+
450
+ .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; }
451
+ .top-popup_footer [class*=btn]:not(.btn-transparent){ min-width: 100px; padding: 5px 14px; margin-left: 10px; }
452
+ .top-popup_footer [class*=btn]:first-child{ margin-left: 0; }
453
+ .top-popup_footer .btn.full_width{ margin: 0; flex-grow: 1; }`, w = `:root{
454
+ --top-popup-list-padding: 0px;
455
+
456
+ --top-popup-listItem-radius: 0px;
457
+ --top-popup-listItem-padding: var(--top-padding-4);
458
+ }
459
+
460
+ html.with_popup{ background: #808080; }
461
+
462
+ .top-popup-wrapper{
463
+ --top-popup-footer-offset: 25px;
464
+
465
+ width: auto !important; height: auto !important;
466
+ position: fixed; top: 0 !important; right: 0 !important; left: 0 !important; overflow: hidden;
467
+ transition: background 0.3s;
468
+ }
469
+
470
+ .top-popup-wrapper-shown:not(.top-popup-wrapper-closed){ background: rgba(0,0,0,0.5); backdrop-filter: blur(1px); }
471
+ .top-popup-wrapper-shown:not(.top-popup-wrapper-closed) > .top-popup{ opacity: 1 !important; }
472
+
473
+ .top-popup{
474
+ border-radius: 8px 8px 0 0; width: auto !important; max-height: calc(100% - var(--header-height) - var(--toolbar-height) - 12px); margin: 0 !important;
475
+ top: auto !important; right: 0 !important; bottom: var(--toolbar-height) !important; left: 0 !important;
476
+ display: flex; flex-direction: column;
477
+
478
+ /* невозможно опустить элемент вниз за экран на 100%, fix: opacity и translateY(80%) */
479
+ transform: translateY(80%);
480
+
481
+ transition: opacity 0.3s, transform 0.3s;
482
+ }
483
+
484
+ /* from top */
485
+ .top-popup-wrapper.p-from-top{
486
+ --top-popup-footer-offset: 0px;
487
+
488
+ top: var(--header-height) !important;
489
+ }
490
+ .with_dialog .top-popup-wrapper.p-from-top{ top: 50px !important; }
491
+ .top-popup-wrapper.p-from-top > .top-popup{
492
+ border-radius: 0 0 8px 8px; max-height: calc(100% - 24px); top: 0 !important; bottom: auto !important;
493
+ transform: translateY(calc(-100% - 24px));
494
+ }
495
+
496
+ /* content */
497
+ ul.top-popup_content{
498
+ --scroll-padding-top: 0px;
499
+ --scroll-padding-bottom: var(--scroll-padding-top);
500
+
501
+ gap: 0;
502
+ }
503
+ ul.top-popup_content li:not(:last-child){ border-bottom: 1px solid var(--top-popup-border-color); }
504
+
505
+ .top-popup-wrapper.top-style_alt > .top-popup > ul > li{ border-bottom: none; }
506
+
507
+ /* footer */
508
+ .top-popup_footer{
509
+ flex-direction: column-reverse;
510
+ }
511
+ .top-popup_footer > .top-button{
512
+ --top-forms-base-height: var(--top-forms-base-height_xl);
513
+
514
+ width: 100%;
515
+ }
516
+
517
+ /* listTitle */
518
+ ul.top-popup_content .top-popup_listItem-title{
519
+ --top-popup-padding-v: 12px;
520
+ }
521
+
522
+ /* listDelimiter */
523
+ ul.top-popup_content .top-popup_listItem-delimiter{ background: var(--color-line-1-opacity); height: 4px; margin: 0; }
524
+ ul.top-popup_content li:first-child > .top-popup_listItem-delimiter{ border-top: 1px solid var(--top-popup-border-color); }`, P = `html:not(.with_dialog){ margin-right: 0 !important; }
525
+
526
+ .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)); }
527
+ .top-popup-wrapper.invert-x > .top-popup{ max-width: calc(100vw - var(--top-popup-right) - 16px); }
528
+ .top-popup-wrapper.invert-y > .top-popup{ max-height: calc(100vh - var(--top-popup-bottom) - 16px); }
529
+
530
+ /* position */
531
+ .top-popup-wrapper.p1 > .top-popup{ max-height: calc(var(--top-popup-top) - var(--header-height) - 16px); }
532
+ .top-popup-wrapper.p3 > .top-popup{ max-height: calc(var(--top-popup-bottom) - 16px); }
533
+ .top-popup-wrapper.p2 > .top-popup{ max-width: calc(var(--top-popup-right) - 16px); }
534
+ .top-popup-wrapper.p4 > .top-popup{ max-width: calc(var(--top-popup-left) - 16px); }
535
+
536
+ /* notch */
537
+ .top-popup-wrapper.p1.with_notch > .top-popup,
538
+ .top-popup-wrapper.p3.with_notch > .top-popup{ margin-left: -16px !important; }
539
+ .top-popup-wrapper.p1.with_notch > .notch,
540
+ .top-popup-wrapper.p3.with_notch > .notch{ margin-left: -8px !important; }
541
+
542
+ .top-popup-wrapper.p1.with_notch.invert-x,
543
+ .top-popup-wrapper.p3.with_notch.invert-x{ margin-left: 3px !important; }
544
+ .top-popup-wrapper.p1.with_notch.invert-x > .notch,
545
+ .top-popup-wrapper.p3.with_notch.invert-x > .notch{ margin-left: -9px !important; }
546
+
547
+ /* listMore */
548
+ ul.top-popup_content li > * > i.top-popup_listMore{ visibility: hidden; transition: none; }
549
+ ul.top-popup_content li:hover > * > i.top-popup_listMore,
550
+ ul.top-popup_content li > *.top-active > i.top-popup_listMore,
551
551
  ul.top-popup_content li > * > i.top-popup_listMore.top-active{ visibility: visible; }`;
552
552
  m.appendStyle(x);
553
553
  m.appendStyle(w, "m");
@@ -606,19 +606,19 @@ class v extends g {
606
606
  }
607
607
  async mount() {
608
608
  const t = this.vueGetComponent();
609
- if (this.popupParent = n.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)
610
- this.type = "vue", this.options.popup = "", this.elPopup = r.genEl("div", {}, this.options.popup);
609
+ if (this.popupParent = i.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)
610
+ this.type = "vue", this.options.popup = "", this.elPopup = n.genEl("div", {}, this.options.popup);
611
611
  else if (this.options.popup.match(/^[#.]/))
612
612
  this.type = "selector", this.elPopup = document.querySelector(`${this.options.popup}.template`);
613
613
  else {
614
614
  if (this.type = "html", this.options.useOriginal)
615
615
  throw "Option useOriginal not allowed for text templates";
616
- this.elPopup = r.genEl("div", {}, this.options.popup);
616
+ this.elPopup = n.genEl("div", {}, this.options.popup);
617
617
  }
618
618
  if (!this.elPopup || t != null && t.opened) {
619
619
  if (this.options.useOriginal || t != null && t.opened) {
620
620
  if (t != null && t.opened ? this.elPopup = t.popup.elPopup : this.elPopup = document.querySelector(`${this.options.popup}.top-popup-wrapper-shown`), this.elPopup) {
621
- this.el.dataset.topPopupOpened = "", this.elActiveByDefault || this.el.classList.remove("top-active"), n.close(this.elPopup), setTimeout(() => this.mount(), 300);
621
+ this.el.dataset.topPopupOpened = "", this.elActiveByDefault || this.el.classList.remove("top-active"), i.close(this.elPopup), setTimeout(() => this.mount(), 300);
622
622
  return;
623
623
  }
624
624
  throw "Option useOriginal state allowed only elements .template";
@@ -627,7 +627,7 @@ class v extends g {
627
627
  }
628
628
  if (!this.elPopup)
629
629
  return;
630
- 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((e) => e.dataset.topPopupPosBy = "fixed"), r.querySelectorAllArray(this.elPopup, ".top-popup-wrapper").forEach((e) => e.remove()))), n.decoratorBeforeOpen(this), t && (this.options.class = t.classRef.value), this.elPopupInner = document.createElement("div"), this.elPopupInner.classList.add("top-popupPanel", "top-popup"); this.elPopup.firstChild; )
630
+ 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((e) => e.dataset.topPopupPosBy = "fixed"), n.querySelectorAllArray(this.elPopup, ".top-popup-wrapper").forEach((e) => e.remove()))), i.decoratorBeforeOpen(this), t && (this.options.class = t.classRef.value), this.elPopupInner = document.createElement("div"), this.elPopupInner.classList.add("top-popupPanel", "top-popup"); this.elPopup.firstChild; )
631
631
  this.elPopupInner.appendChild(this.elPopup.firstChild);
632
632
  if (this.elPopup.append(this.elPopupInner), this.elPopup.classList.add("top-popup-wrapper"), this.options.class) {
633
633
  const e = this.options.class.split(" ");
@@ -635,9 +635,9 @@ class v extends g {
635
635
  }
636
636
  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.elPopupBody = this.elPopupInner.querySelector(".top-popup_content"), this.elPopupFooter = this.elPopupInner.querySelector(".top-popup_footer");
637
637
  const p = !!this.elPopup.querySelector('[data-widget="search"]');
638
- this.options.isFullScreen && !p && (this.elPopupHeader || (this.elPopupHeader = r.genEl("i", { class: "top-popup_header" }), this.elPopupInner.prepend(this.elPopupHeader), this.elPopupHeader.prepend(r.genEl("i", { class: "a closer" }, this.options.i18n.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.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", this.el.parentElement.insertBefore(this.elPopup, this.el), this.elPopup.classList.remove("template"), this.options.invertX && this.elPopup.classList.add("invert-x");
638
+ this.options.isFullScreen && !p && (this.elPopupHeader || (this.elPopupHeader = n.genEl("i", { class: "top-popup_header" }), this.elPopupInner.prepend(this.elPopupHeader), this.elPopupHeader.prepend(n.genEl("i", { class: "a closer" }, this.options.i18n.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.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", this.el.parentElement.insertBefore(this.elPopup, this.el), this.elPopup.classList.remove("template"), this.options.invertX && this.elPopup.classList.add("invert-x");
639
639
  let o = !!this.el.closest(".modal-header");
640
- o || (o = !!this.el.closest("#top_panel")), o || (o = !!this.el.closest("#secondmenu")), o && this.elPopup.classList.add("p-from-top"), setTimeout(() => this.elPopup.classList.add("top-popup-wrapper-shown")), 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.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.$ && this.$.trigger("aftershow.top-menu-popup", [jQuery(this.elPopup)]), this.recalcPosition(), this.elPopup.setAttribute("tabindex", 0), this.focus(), n.decoratorAfterOpen(this), this.mountEvents();
640
+ o || (o = !!this.el.closest("#top_panel")), o || (o = !!this.el.closest("#secondmenu")), o && this.elPopup.classList.add("p-from-top"), setTimeout(() => this.elPopup.classList.add("top-popup-wrapper-shown")), 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.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.$ && this.$.trigger("aftershow.top-menu-popup", [jQuery(this.elPopup)]), this.recalcPosition(), this.elPopup.setAttribute("tabindex", 0), this.focus(), i.decoratorAfterOpen(this), this.mountEvents();
641
641
  }
642
642
  async mountJQuery() {
643
643
  typeof jQuery == "function" && (this.$ = jQuery(this.el));
@@ -646,8 +646,8 @@ class v extends g {
646
646
  * Выполнить фокусировку на нужный элемент после открытия окна
647
647
  */
648
648
  focus() {
649
- let t = r.querySelectorVisible(this.elPopup, ".top-popup-autofocus");
650
- 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.focus();
649
+ let t = n.querySelectorVisible(this.elPopup, ".top-popup-autofocus");
650
+ 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.focus();
651
651
  }
652
652
  mountEvents() {
653
653
  this.addEventListenerWithUnmount(document, "mousedown", (t) => this.onMousedown(t)), this.addEventListenerWithUnmount(this.elPopup, "focus", (t) => this.onFocus(t)), this.options.openByHover && (this.addEventListenerWithUnmount(this.elPopup, "mouseleave", (t) => this.onMouseleave(t)), this.addEventListenerWithUnmount(this.elPopupInner, "mouseleave", (t) => this.onMouseleave(t))), this.options.isFullScreen && this.addEventListenerWithUnmount(this.elPopupBody, "touchmove", (t) => this.onTouchmove(t));
@@ -659,8 +659,8 @@ class v extends g {
659
659
  onMousedown(t) {
660
660
  if (!this.elPopup || !this.isFirstClick || (this.isFirstClick = !1, setTimeout(() => this.isFirstClick = !0), t.button !== 0))
661
661
  return;
662
- let p = r.querySelectorVisibleLast(document.body, ":scope > .top-popup-wrapper");
663
- p && p !== this.elPopup || (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") || n.decoratorIsIgnoreOuterClick(t) || n.close(this.elPopup)));
662
+ let p = n.querySelectorVisibleLast(document.body, ":scope > .top-popup-wrapper");
663
+ p && p !== this.elPopup || (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") || i.decoratorIsIgnoreOuterClick(t) || i.close(this.elPopup)));
664
664
  }
665
665
  /**
666
666
  * Закрыть другие Popup при фокусе на элемент формы в текущем
@@ -669,9 +669,9 @@ class v extends g {
669
669
  onFocus(t) {
670
670
  if (t.target.matches("input") || this.isClosed)
671
671
  return;
672
- n.getAllVisible().forEach((o) => {
673
- var e, i, l;
674
- this.elPopup.contains(o) || ((e = this.popupParent) == null ? void 0 : e.elPopup) === o || ((l = (i = this.popupParent) == null ? void 0 : i.popupParent) == null ? void 0 : l.elPopup) === o || n.close(o);
672
+ i.getAllVisible().forEach((o) => {
673
+ var e, r, l;
674
+ this.elPopup.contains(o) || ((e = this.popupParent) == null ? void 0 : e.elPopup) === o || ((l = (r = this.popupParent) == null ? void 0 : r.popupParent) == null ? void 0 : l.elPopup) === o || i.close(o);
675
675
  });
676
676
  }
677
677
  /**
@@ -680,14 +680,14 @@ class v extends g {
680
680
  */
681
681
  onMouseleave(t) {
682
682
  setTimeout(() => {
683
- this.elPopupInner.matches(":hover") || n.close(this.elPopup);
683
+ this.elPopupInner.matches(":hover") || i.close(this.elPopup);
684
684
  }, 100);
685
685
  }
686
686
  /**
687
687
  * Контроль положения Popup при fixed позиционировании
688
688
  */
689
689
  onResize() {
690
- this.elPopup.parentElement !== document.body && document.body.append(this.elPopup), this.elPopup.style.top = r.offset(this.el).top + "px", this.elPopup.style.left = r.offset(this.el).left + "px";
690
+ this.elPopup.parentElement !== document.body && document.body.append(this.elPopup), this.elPopup.style.top = n.offset(this.el).top + "px", this.elPopup.style.left = n.offset(this.el).left + "px";
691
691
  }
692
692
  unmount() {
693
693
  super.unmount(), this.el.dataset.topPopupOpened = "", this.elActiveByDefault || this.el.classList.remove("top-active");
@@ -712,20 +712,20 @@ class v extends g {
712
712
  }
713
713
  const o = this.elPopup.getBoundingClientRect();
714
714
  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.style.maxWidth = "unset", this.elPopupInner.style.maxHeight = "unset";
715
- let e = !1, i = !1, l = !1, h = !1, a = o.left > window.innerWidth / 2, u = o.top > window.innerHeight / 2;
715
+ let e = !1, r = !1, l = !1, h = !1, a = o.left > window.innerWidth / 2, u = o.top > window.innerHeight / 2;
716
716
  t === 4 && (a = !a), t === 1 && (u = !u);
717
717
  const s = this.elPopupInner.getBoundingClientRect(), c = window.innerWidth - s.right, d = window.innerHeight - s.bottom, f = 8;
718
- s.top < f && (e = !0), c < f && (i = !0), d < f && (l = !0), s.left < f && (h = !0), e && (t === 0 || t === 1) && u && (t = 3), l && t === 3 && u && (t = 1), i && t === 2 && a && (t = 4), h && t === 4 && a && (t = 2), i && (t === 0 || t === 1 || t === 3) && this.elPopup.classList.add("invert-x"), l && (t === 2 || t === 4) && u && (t === 2 && !a && this.elPopup.classList.add("invert-y"), t === 4 && !a && 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.style.maxWidth = "", this.elPopupInner.style.maxHeight = "", n.scrollToActive(this.elPopup);
718
+ s.top < f && (e = !0), c < f && (r = !0), d < f && (l = !0), s.left < f && (h = !0), e && (t === 0 || t === 1) && u && (t = 3), l && t === 3 && u && (t = 1), r && t === 2 && a && (t = 4), h && t === 4 && a && (t = 2), r && (t === 0 || t === 1 || t === 3) && this.elPopup.classList.add("invert-x"), l && (t === 2 || t === 4) && u && (t === 2 && !a && this.elPopup.classList.add("invert-y"), t === 4 && !a && 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.style.maxWidth = "", this.elPopupInner.style.maxHeight = "", i.scrollToActive(this.elPopup);
719
719
  }
720
720
  onTouchmove(t) {
721
721
  t.currentTarget.scrollWidth > t.currentTarget.offsetWidth || t.target.parentElement.scrollWidth > t.target.parentElement.offsetWidth || t.currentTarget.matches(".has_scroll") || t.preventDefault();
722
722
  }
723
723
  close() {
724
- this.isClosed || (this.isClosed = !0, this.$ && this.$.trigger("afterclose.top-menu-popup", [jQuery(this.elPopup)]), !n.noClose && (this.unmount(), this.elPopup.classList.add("top-popup-wrapper-closed"), setTimeout(() => {
725
- var o, e, i;
726
- this.vueClose(), this.options.useOriginal ? (this.elPopup.removeAttribute("style"), this.elPopup.classList.remove("top-popup-wrapper-shown", "top-popup-wrapper-closed"), this.elPopup.classList.add("template"), this.elStartPosition.append(this.elPopup), (o = this.elPopup.querySelector("div.top-popup_content.top-column")) == null || o.classList.remove("top-column"), (e = this.elPopup.querySelector(".notch-border")) == null || e.remove(), (i = this.elPopup.querySelector(".notch")) == null || i.remove(), this.elPopupInner.replaceWith(...this.elPopupInner.childNodes), r.storageClear(this.elPopup)) : (r.storageClear(this.elPopup), this.elPopup.remove(), delete this.elPopup);
727
- const t = n.getAllVisible(), p = t.length && t[t.length - 1];
728
- p ? n.getPopup(p).focus() : document.documentElement.classList.remove("with_popup");
724
+ this.isClosed || (this.isClosed = !0, this.$ && this.$.trigger("afterclose.top-menu-popup", [jQuery(this.elPopup)]), !i.noClose && (this.unmount(), this.elPopup.classList.add("top-popup-wrapper-closed"), setTimeout(() => {
725
+ var o, e, r;
726
+ this.vueClose(), this.options.useOriginal ? (this.elPopup.removeAttribute("style"), this.elPopup.classList.remove("top-popup-wrapper-shown", "top-popup-wrapper-closed"), this.elPopup.classList.add("template"), this.elStartPosition.append(this.elPopup), (o = this.elPopup.querySelector("div.top-popup_content.top-column")) == null || o.classList.remove("top-column"), (e = this.elPopup.querySelector(".notch-border")) == null || e.remove(), (r = this.elPopup.querySelector(".notch")) == null || r.remove(), this.elPopupInner.replaceWith(...this.elPopupInner.childNodes), n.storageClear(this.elPopup)) : (n.storageClear(this.elPopup), this.elPopup.remove(), delete this.elPopup);
727
+ const t = i.getAllVisible(), p = t.length && t[t.length - 1];
728
+ p ? i.getPopup(p).focus() : document.documentElement.classList.remove("with_popup");
729
729
  }, 300)));
730
730
  }
731
731
  async vueOpen() {
@@ -738,11 +738,11 @@ class v extends g {
738
738
  }
739
739
  // получить vueConnectors компонента Popup
740
740
  vueGetComponent() {
741
- return n.vueConnectors.get(this.el.dataset.topPopupId);
741
+ return i.vueConnectors.get(this.el.dataset.topPopupId);
742
742
  }
743
743
  }
744
744
  b.init();
745
745
  export {
746
746
  v as default
747
747
  };
748
- //# sourceMappingURL=popup-70a8c892.es.js.map
748
+ //# sourceMappingURL=popup-GFcVEZf5.es.js.map