@skyservice-developers/vue-dev-kit 1.0.7 → 1.1.0

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.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @skyservice-developers/vue-dev-kit
2
2
 
3
- Vue 3 developer toolkit - компоненти для розробки.
3
+ Vue developer toolkit - компоненти для розробки. Підтримує Vue 2 та Vue 3.
4
4
 
5
5
  ## Встановлення
6
6
 
@@ -8,13 +8,48 @@ Vue 3 developer toolkit - компоненти для розробки.
8
8
  npm install @skyservice-developers/vue-dev-kit
9
9
  ```
10
10
 
11
- ## Підключення стилів
11
+ ## Використання з Vue 3 (за замовчуванням)
12
12
 
13
13
  ```js
14
14
  // main.js
15
- import '@skyservice-developers/vue-dev-kit/style.css'
15
+ import { createApp } from 'vue'
16
+ import '@skyservice-developers/vue-dev-kit/vue3/style.css'
17
+ import { Header, Modal, Dialog } from '@skyservice-developers/vue-dev-kit'
18
+ // або явно:
19
+ // import { Header, Modal, Dialog } from '@skyservice-developers/vue-dev-kit/vue3'
20
+
21
+ const app = createApp(App)
22
+ app.mount('#app')
16
23
  ```
17
24
 
25
+ ## Використання з Vue 2
26
+
27
+ ```js
28
+ // main.js
29
+ import Vue from 'vue'
30
+ import '@skyservice-developers/vue-dev-kit/vue2/style.css'
31
+ import { Header, Modal, Dialog } from '@skyservice-developers/vue-dev-kit/vue2'
32
+
33
+ new Vue({
34
+ render: h => h(App)
35
+ }).$mount('#app')
36
+ ```
37
+
38
+ **Важливо для Vue 2:** Бібліотека використовує `portal-vue` для телепортації компонентів. Якщо у вас проблеми з модалками, додатково встановіть:
39
+
40
+ ```bash
41
+ npm install portal-vue
42
+ ```
43
+
44
+ ## Швидкий старт
45
+
46
+ | Версія | Імпорт компонентів | Стилі |
47
+ |--------|-------------------|-------|
48
+ | **Vue 3** | `from '@skyservice-developers/vue-dev-kit'` або `from '@skyservice-developers/vue-dev-kit/vue3'` | `@skyservice-developers/vue-dev-kit/vue3/style.css` |
49
+ | **Vue 2** | `from '@skyservice-developers/vue-dev-kit/vue2'` | `@skyservice-developers/vue-dev-kit/vue2/style.css` |
50
+
51
+ **Доступні компоненти:** `Header`, `Modal`, `Dialog`, `BaseTeleport`
52
+
18
53
  ---
19
54
 
20
55
  ## Компоненти
@@ -26,11 +61,16 @@ import '@skyservice-developers/vue-dev-kit/style.css'
26
61
  #### Імпорт
27
62
 
28
63
  ```js
64
+ // Vue 3
29
65
  import { Header } from '@skyservice-developers/vue-dev-kit'
66
+
67
+ // Vue 2
68
+ import { Header } from '@skyservice-developers/vue-dev-kit/vue2'
30
69
  ```
31
70
 
32
71
  #### Базове використання
33
72
 
73
+ **Vue 3 (Composition API)**
34
74
  ```vue
35
75
  <template>
36
76
  <Header title="Назва сторінки" subtitle="Опис сторінки">
@@ -41,6 +81,35 @@ import { Header } from '@skyservice-developers/vue-dev-kit'
41
81
 
42
82
  <script setup>
43
83
  import { Header } from '@skyservice-developers/vue-dev-kit'
84
+
85
+ const handleRefresh = () => console.log('Refresh')
86
+ const handleCreate = () => console.log('Create')
87
+ </script>
88
+ ```
89
+
90
+ **Vue 2 (Options API)**
91
+ ```vue
92
+ <template>
93
+ <Header title="Назва сторінки" subtitle="Опис сторінки">
94
+ <button @click="handleRefresh">Оновити</button>
95
+ <button @click="handleCreate">Створити</button>
96
+ </Header>
97
+ </template>
98
+
99
+ <script>
100
+ import { Header } from '@skyservice-developers/vue-dev-kit/vue2'
101
+
102
+ export default {
103
+ components: { Header },
104
+ methods: {
105
+ handleRefresh() {
106
+ console.log('Refresh')
107
+ },
108
+ handleCreate() {
109
+ console.log('Create')
110
+ }
111
+ }
112
+ }
44
113
  </script>
45
114
  ```
46
115
 
@@ -88,11 +157,16 @@ import { Header } from '@skyservice-developers/vue-dev-kit'
88
157
  #### Імпорт
89
158
 
90
159
  ```js
160
+ // Vue 3
91
161
  import { Modal } from '@skyservice-developers/vue-dev-kit'
162
+
163
+ // Vue 2
164
+ import { Modal } from '@skyservice-developers/vue-dev-kit/vue2'
92
165
  ```
93
166
 
94
167
  #### Базове використання
95
168
 
169
+ **Vue 3 (Composition API)**
96
170
  ```vue
97
171
  <template>
98
172
  <button @click="showModal = true">Відкрити</button>
@@ -114,6 +188,36 @@ const showModal = ref(false)
114
188
  </script>
115
189
  ```
116
190
 
191
+ **Vue 2 (Options API)**
192
+ ```vue
193
+ <template>
194
+ <div>
195
+ <button @click="showModal = true">Відкрити</button>
196
+
197
+ <Modal v-model="showModal" title="Заголовок" subtitle="Підзаголовок">
198
+ <p>Контент модального вікна</p>
199
+
200
+ <template #footer>
201
+ <button @click="showModal = false">Закрити</button>
202
+ </template>
203
+ </Modal>
204
+ </div>
205
+ </template>
206
+
207
+ <script>
208
+ import { Modal } from '@skyservice-developers/vue-dev-kit/vue2'
209
+
210
+ export default {
211
+ components: { Modal },
212
+ data() {
213
+ return {
214
+ showModal: false
215
+ }
216
+ }
217
+ }
218
+ </script>
219
+ ```
220
+
117
221
  #### Props
118
222
 
119
223
  | Prop | Тип | За замовчуванням | Опис |
@@ -153,4 +257,69 @@ const showModal = ref(false)
153
257
  <button @click="confirm">Підтвердити</button>
154
258
  </template>
155
259
  </Modal>
156
- ```
260
+ ```
261
+
262
+ ---
263
+
264
+ ## TypeScript
265
+
266
+ Бібліотека включає TypeScript типи. Типи автоматично підключаються при імпорті компонентів.
267
+
268
+ ```typescript
269
+ import type { Component } from 'vue'
270
+ import { Header, Modal } from '@skyservice-developers/vue-dev-kit'
271
+ ```
272
+
273
+ ---
274
+
275
+ ## Troubleshooting
276
+
277
+ ### Vue 2: Модальні вікна не відображаються
278
+
279
+ Переконайтеся що у вас встановлена залежність `portal-vue`:
280
+
281
+ ```bash
282
+ npm install portal-vue
283
+ ```
284
+
285
+ ### TypeScript помилки
286
+
287
+ Якщо TypeScript не знаходить типи, додайте в `tsconfig.json`:
288
+
289
+ ```json
290
+ {
291
+ "compilerOptions": {
292
+ "types": ["@skyservice-developers/vue-dev-kit"]
293
+ }
294
+ }
295
+ ```
296
+
297
+ ### Конфлікт залежностей при встановленні
298
+
299
+ Використовуйте прапорець `--legacy-peer-deps`:
300
+
301
+ ```bash
302
+ npm install @skyservice-developers/vue-dev-kit --legacy-peer-deps
303
+ ```
304
+
305
+ ---
306
+
307
+ ## Розробка
308
+
309
+ ```bash
310
+ # Встановлення залежностей
311
+ npm install --legacy-peer-deps
312
+
313
+ # Білд для Vue 2
314
+ npm run build:vue2
315
+
316
+ # Білд для Vue 3
317
+ npm run build:vue3
318
+
319
+ # Білд обох версій
320
+ npm run build
321
+ ```
322
+
323
+ ## Ліцензія
324
+
325
+ MIT © Skyservice-POS
@@ -0,0 +1 @@
1
+ .sky-header[data-v-1713907d]{position:sticky;top:0;left:0;right:0;background:var(--sky-header-bg, white);border-bottom:1px solid var(--sky-header-border-color, #dee2e6);z-index:var(--sky-header-z-index, 100);padding:var(--sky-header-padding, 10px 0)}.header-content[data-v-1713907d]{padding:var(--sky-header-content-padding, 4px 14px);margin:0 auto}.header-top[data-v-1713907d]{display:flex;justify-content:space-between;align-items:center}.header-title-wrapper[data-v-1713907d]{display:flex;align-items:center;gap:12px}.header-title-content[data-v-1713907d]{display:flex;flex-direction:column}.btn-back[data-v-1713907d]{display:flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;background:transparent;border:none;cursor:pointer;border-radius:6px;transition:background-color .2s;color:var(--sky-header-back-btn-color, #374151)}.btn-back img[data-v-1713907d],.btn-back svg[data-v-1713907d]{display:block}.btn-back[data-v-1713907d]:hover{background-color:var(--sky-header-back-btn-hover-bg, #f8f9fa)}.btn-back[data-v-1713907d]:active{background-color:var(--sky-header-back-btn-active-bg, #e9ecef)}.header-title[data-v-1713907d]{margin:0;font-size:var(--sky-header-title-size, 18px);font-weight:var(--sky-header-title-weight, 500);color:var(--sky-header-title-color, #252525);line-height:1.5;-webkit-user-select:none;user-select:none}.header-subtitle[data-v-1713907d]{font-size:var(--sky-header-subtitle-size, 14px);color:var(--sky-header-subtitle-color, #6c757d);font-weight:400;line-height:1.5}.header-actions[data-v-1713907d]{display:flex;gap:var(--sky-header-actions-gap, 12px)}@media (max-width: 768px){.header-top[data-v-1713907d]{flex-direction:column;align-items:flex-start}.header-actions[data-v-1713907d]{width:100%;justify-content:flex-end}}.sky-modal-overlay[data-v-1ed4a1aa]{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.6);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);z-index:var(--sky-modal-z-index, 9998);display:flex;justify-content:center;align-items:center}.sky-modal[data-v-1ed4a1aa]{background:var(--sky-modal-bg, white);border-radius:var(--sky-modal-radius, 0);box-shadow:0 1px 3px #0000004d,0 1px 2px #0000003d;display:flex;flex-direction:column;max-width:100%;max-height:100%}.sky-modal-header[data-v-1ed4a1aa]{display:flex;align-items:center;padding:var(--sky-modal-header-padding, 10px 14px);border-bottom:1px solid var(--sky-modal-border-color, #dee2e6);flex-shrink:0}.sky-modal-back[data-v-1ed4a1aa]{display:flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;background:transparent;border:none;cursor:pointer;border-radius:6px;transition:background-color .2s;color:var(--sky-modal-back-color, #374151);margin-right:12px}.sky-modal-back[data-v-1ed4a1aa]:hover{background-color:var(--sky-modal-back-hover-bg, #f8f9fa)}.sky-modal-title-wrapper[data-v-1ed4a1aa]{flex:1;min-width:0}.sky-modal-title[data-v-1ed4a1aa]{margin:0;font-size:var(--sky-modal-title-size, 18px);font-weight:var(--sky-modal-title-weight, 500);color:var(--sky-modal-title-color, #252525);line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sky-modal-subtitle[data-v-1ed4a1aa]{font-size:var(--sky-modal-subtitle-size, 14px);color:var(--sky-modal-subtitle-color, #6c757d);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sky-modal-body[data-v-1ed4a1aa]{flex:1;overflow-y:auto;overflow-x:hidden;padding:var(--sky-modal-body-padding, 14px)}.sky-modal-footer[data-v-1ed4a1aa]{padding:var(--sky-modal-footer-padding, 10px 14px);border-top:1px solid var(--sky-modal-border-color, #dee2e6);display:flex;justify-content:flex-end;gap:10px;flex-shrink:0}.modal-fade-enter-active[data-v-1ed4a1aa],.modal-fade-leave-active[data-v-1ed4a1aa]{transition:opacity .3s ease}.modal-fade-enter-active .sky-modal[data-v-1ed4a1aa],.modal-fade-leave-active .sky-modal[data-v-1ed4a1aa]{transition:transform .3s ease}.modal-fade-enter[data-v-1ed4a1aa],.modal-fade-leave-to[data-v-1ed4a1aa]{opacity:0}.modal-fade-enter .sky-modal[data-v-1ed4a1aa]{transform:translateY(-20px)}.modal-fade-leave-to .sky-modal[data-v-1ed4a1aa]{transform:translateY(20px)}@media (min-width: 768px){.sky-modal[data-v-1ed4a1aa]{border-radius:var(--sky-modal-radius, 8px)}}.sky-dialogbox-classic{display:block;position:fixed;padding:0;top:0;left:0;width:100%;height:100%;z-index:var(--sky-dialog-z-index, 9998);background:rgba(0,0,0,.6);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.sky-dialog-overlay[data-v-e3d8b1e2]{display:flex;justify-content:center;align-items:center;position:fixed;padding:0;top:0;left:0;width:100%;height:100%;z-index:9999}.sky-dialog-content[data-v-e3d8b1e2]{background:var(--sky-dialog-bg, white);width:100%;height:100%;border-radius:var(--sky-dialog-radius, 5px);box-shadow:0 1px 3px #0000004d,0 1px 2px #0000003d}.sky-dialog-title[data-v-e3d8b1e2]{max-width:calc(100% - 80px);font-size:var(--sky-dialog-title-size, 13pt);padding:24px 0 24px 24px;float:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--sky-dialog-title-color, #252525)}.sky-dialog-subtitle[data-v-e3d8b1e2]{display:block;font-size:var(--sky-dialog-subtitle-size, 12pt);line-height:24px;color:var(--sky-dialog-subtitle-color, #6c757d);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sky-dialog-close[data-v-e3d8b1e2]{cursor:pointer;font-size:16pt;margin:15px;padding:17px;float:right;border-radius:50%;width:50px;height:50px;background:transparent;border:none;display:flex;align-items:center;justify-content:center;color:var(--sky-dialog-close-color, #333);transition:background-color .2s}.sky-dialog-close[data-v-e3d8b1e2]:hover{background-color:var(--sky-dialog-close-hover-bg, #f0f0f0)}.sky-dialog-clearfix[data-v-e3d8b1e2]{clear:both}.sky-dialog-paper[data-v-e3d8b1e2]{height:100%;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;position:relative}.sky-dialog-swipe-area[data-v-e3d8b1e2]{position:absolute;width:35px;height:100%;left:0}.sky-dialog-footer[data-v-e3d8b1e2]{padding:5px 10px;display:flex;justify-content:center;width:100%;transform:translateY(-52px);gap:10px}.sky-dialog-footer[data-v-e3d8b1e2]>:deep(*){flex:1;min-width:0}.sky-dialog-footer[data-v-e3d8b1e2]:has(>:deep(*:only-child))>:deep(*){max-width:100%}.sky-dialog-footer[data-v-e3d8b1e2]:has(>:deep(*:nth-child(2)):not(:has(>:deep(*:nth-child(3)))))>:deep(*){flex:1 1 50%}@media only screen and (min-width: 1400px){.sky-dialog-content[data-v-e3d8b1e2]{width:75%;margin:0 auto}}@media screen and (min-width: 710px){.sky-dialog-paper[data-v-e3d8b1e2]{height:calc(100% - 150px);max-height:calc(100% - 150px);background-color:#fff;margin:0 10px 60px;border-radius:5px}.sky-dialog-paper-no-footer[data-v-e3d8b1e2]{height:calc(100% - 70px);max-height:calc(100% - 70px);margin-bottom:10px}.sky-dialogbox[data-v-e3d8b1e2],.sky-dialog-overlay[data-v-e3d8b1e2]{padding:10px}}@media screen and (max-width: 709px){.sky-dialog-paper[data-v-e3d8b1e2]{height:calc(100% - 142px);max-height:calc(100% - 142px);background-color:#fff;margin:0 10px 10px;border-radius:5px;max-width:100vw!important}.sky-dialog-paper-no-footer[data-v-e3d8b1e2]{height:calc(100% - 60px);max-height:calc(100% - 60px)}.sky-dialog-footer[data-v-e3d8b1e2]{transform:translateY(-6px)}}@media screen and (max-width: 500px){.sky-dialog-subtitle[data-v-e3d8b1e2]{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sky-dialog-title-with-subtitle[data-v-e3d8b1e2]{padding:12px 24px!important}}@media screen and (max-width: 374px){.sky-dialog-subtitle[data-v-e3d8b1e2]{font-size:9pt}}@supports (padding-top: env(safe-area-inset-top)){.sky-dialog-paper[data-v-e3d8b1e2]{height:calc(100% - 150px - env(safe-area-inset-top))}.sky-dialog-paper-no-footer[data-v-e3d8b1e2]{height:calc(100% - 60px - env(safe-area-inset-top))}.sky-dialog-footer[data-v-e3d8b1e2]{padding-bottom:calc(env(safe-area-inset-bottom) + 8px)}}.sky-dialog-animate[data-v-e3d8b1e2]{animation:sky-dialog-slide-in-data-v-e3d8b1e2 .4s ease-in-out}.sky-dialog-footer-animate[data-v-e3d8b1e2]{animation:sky-dialog-footer-in-data-v-e3d8b1e2 .4s ease-in-out}@keyframes sky-dialog-slide-in-data-v-e3d8b1e2{0%{opacity:0;margin-top:-1600px}to{opacity:1;margin-top:0}}@keyframes sky-dialog-footer-in-data-v-e3d8b1e2{0%{opacity:0;bottom:-100px}50%{opacity:.25;bottom:-50px}to{opacity:1;bottom:15px}}.dialog-slide-leave-active[data-v-e3d8b1e2]{animation:sky-dialog-slide-in-data-v-e3d8b1e2 .4s reverse}.sky-dialogbox-next{display:block;position:fixed;padding:0;top:0;left:0;width:100%;height:100%;z-index:var(--sky-dialog-z-index, 9998);background:rgba(0,0,0,.6);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.sky-dialog-overlay[data-v-2773fecb]{display:flex;justify-content:center;align-items:center;position:fixed;padding:0;top:0;left:0;width:100%;height:100%;z-index:9999}.sky-dialog-content[data-v-2773fecb]{background:var(--sky-dialog-bg, white);width:100%;height:100%;box-shadow:0 1px 3px #0000004d,0 1px 2px #0000003d}.sky-dialog-back[data-v-2773fecb]{cursor:pointer;margin:10px;padding:14px 12px 6px;float:left;line-height:1;background:transparent;border:none;border-radius:6px;color:var(--sky-dialog-back-color, #374151);transition:background-color .2s}.sky-dialog-back[data-v-2773fecb]:hover{background-color:var(--sky-dialog-back-hover-bg, #f8f9fa)}.sky-dialog-title[data-v-2773fecb]{max-width:calc(100% - 80px);font-size:var(--sky-dialog-title-size, 13pt);padding:21px 0;float:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--sky-dialog-title-color, #252525)}.sky-dialog-title-with-subtitle[data-v-2773fecb]{padding:13px 0}.sky-dialog-subtitle[data-v-2773fecb]{display:block;font-size:var(--sky-dialog-subtitle-size, 12pt);line-height:24px;color:var(--sky-dialog-subtitle-color, #6c757d);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sky-dialog-clearfix[data-v-2773fecb]{clear:both}.sky-dialog-paper[data-v-2773fecb]{height:100%;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;position:relative}.sky-dialog-swipe-area[data-v-2773fecb]{position:absolute;width:35px;height:100%;left:0}.sky-dialog-footer[data-v-2773fecb]{padding:5px 10px;display:flex;justify-content:center;width:100%;transform:translateY(-52px);gap:10px}.sky-dialog-footer[data-v-2773fecb]>:deep(*){flex:1;min-width:0}.sky-dialog-footer[data-v-2773fecb]:has(>:deep(*:only-child))>:deep(*){max-width:100%}.sky-dialog-footer[data-v-2773fecb]:has(>:deep(*:nth-child(2)):not(:has(>:deep(*:nth-child(3)))))>:deep(*){flex:1 1 50%}@media only screen and (min-width: 1400px){.sky-dialog-content[data-v-2773fecb]{width:100%;margin:0 auto}}@media screen and (min-width: 710px){.sky-dialog-paper[data-v-2773fecb]{height:calc(100% - 150px);max-height:calc(100% - 150px);background-color:#fff;margin:0 10px 60px}.sky-dialog-paper-no-footer[data-v-2773fecb]{height:calc(100% - 70px);max-height:calc(100% - 70px);margin-bottom:10px}}@media screen and (max-width: 709px){.sky-dialog-paper[data-v-2773fecb]{height:calc(100% - 142px);max-height:calc(100% - 142px);background-color:#fff;margin:0 10px 10px;max-width:100vw!important}.sky-dialog-paper-no-footer[data-v-2773fecb]{height:calc(100% - 60px);max-height:calc(100% - 60px)}.sky-dialog-footer[data-v-2773fecb]{transform:translateY(-6px)}}@media screen and (max-width: 500px){.sky-dialog-subtitle[data-v-2773fecb]{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sky-dialog-title-with-subtitle[data-v-2773fecb]{padding:12px 24px!important}}@media screen and (max-width: 374px){.sky-dialog-subtitle[data-v-2773fecb]{font-size:9pt}}@supports (padding-top: env(safe-area-inset-top)){.sky-dialog-paper[data-v-2773fecb]{height:calc(100% - 150px - env(safe-area-inset-top))}.sky-dialog-paper-no-footer[data-v-2773fecb]{height:calc(100% - 60px - env(safe-area-inset-top))}.sky-dialog-footer[data-v-2773fecb]{padding-bottom:calc(env(safe-area-inset-bottom) + 8px)}}.sky-dialog-animate[data-v-2773fecb]{animation:sky-dialog-slide-in-data-v-2773fecb .4s ease-in-out}.sky-dialog-footer-animate[data-v-2773fecb]{animation:sky-dialog-footer-in-data-v-2773fecb .4s ease-in-out}@keyframes sky-dialog-slide-in-data-v-2773fecb{0%{opacity:0;margin-top:-1600px}to{opacity:1;margin-top:0}}@keyframes sky-dialog-footer-in-data-v-2773fecb{0%{opacity:0;bottom:-100px}50%{opacity:.25;bottom:-50px}to{opacity:1;bottom:15px}}.dialog-slide-leave-active[data-v-2773fecb]{animation:sky-dialog-slide-in-data-v-2773fecb .4s reverse}
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var Ve=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("header",{staticClass:"sky-header"},[n("div",{staticClass:"header-content"},[n("div",{staticClass:"header-top"},[n("div",{staticClass:"header-title-wrapper"},[e.shouldShowBackButton?n("button",{staticClass:"btn-back",attrs:{title:e.backButtonTitle},on:{click:e.handleBack}},[n("svg",{staticStyle:{transform:"rotate(90deg)"},attrs:{width:"15",height:"15",viewBox:"0 0 451.847 451.847"}},[n("path",{attrs:{fill:"currentColor",d:"M225.923,354.706c-8.098,0-16.195-3.092-22.369-9.263L9.27,151.157c-12.359-12.359-12.359-32.397,0-44.751c12.354-12.354,32.388-12.354,44.748,0l171.905,171.915l171.906-171.909c12.359-12.354,32.391-12.354,44.744,0c12.365,12.354,12.365,32.392,0,44.751L248.292,345.449C242.115,351.621,234.018,354.706,225.923,354.706z"}})])]):e._e(),n("div",{staticClass:"header-title-content"},[e._t("title",function(){return[n("h4",{staticClass:"header-title"},[e._v(e._s(e.title)+" vue 2")])]}),e._t("subtitle",function(){return[e.subtitle?n("div",{staticClass:"header-subtitle"},[e._v(e._s(e.subtitle))]):e._e()]})],2)]),n("div",{staticClass:"header-actions"},[e._t("default")],2)])])])},De=[];function M(e,l,n,p,C,T,R,$){var f=typeof e=="function"?e.options:e;l&&(f.render=l,f.staticRenderFns=n,f._compiled=!0),p&&(f.functional=!0),T&&(f._scopeId="data-v-"+T);var g;if(R?(g=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!t&&typeof __VUE_SSR_CONTEXT__<"u"&&(t=__VUE_SSR_CONTEXT__),C&&C.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(R)},f._ssrRegister=g):C&&(g=$?function(){C.call(this,(f.functional?this.parent:this).$root.$options.shadowRoot)}:C),g)if(f.functional){f._injectStyles=g;var O=f.render;f.render=function(a,i){return g.call(i),O(a,i)}}else{var N=f.beforeCreate;f.beforeCreate=N?[].concat(N,g):[g]}return{exports:e,options:f}}const Le={name:"Header",props:{title:{type:String,default:""},subtitle:{type:String,default:""},showBackButton:{type:Boolean,default:!0},backButtonTitle:{type:String,default:"Назад"},backEvent:{type:Function,default:null}},computed:{isInIframe(){try{return window.self!==window.top}catch{return!0}},shouldShowBackButton(){return this.backEvent||this.showBackButton&&this.isInIframe}},methods:{handleBack(){this.backEvent?this.backEvent():window.parent.postMessage({type:"exit"},"*")}}},xe={};var Fe=M(Le,Ve,De,!1,Xe,"1713907d",null,null);function Xe(e){for(let l in xe)this[l]=xe[l]}const Ue=function(){return Fe.exports}();var qe=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("portal",{attrs:{to:e.to}},[e._t("default")],2)},je=[];const He={props:{to:{type:String,default:"body"}}},Se={};var Ke=M(He,qe,je,!1,Ge,null,null,null);function Ge(e){for(let l in Se)this[l]=Se[l]}const Ae=function(){return Ke.exports}();var We=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("base-teleport",{attrs:{to:"body"}},[n("transition",{attrs:{name:"modal-fade"}},[e.isOpen?n("div",{staticClass:"sky-modal-overlay",on:{click:function(p){return p.target!==p.currentTarget?null:e.handleOverlayClick.apply(null,arguments)}}},[n("div",{staticClass:"sky-modal",style:e.modalStyle},[n("div",{staticClass:"sky-modal-header"},[n("button",{staticClass:"sky-modal-back",attrs:{title:e.closeTitle},on:{click:e.close}},[n("svg",{attrs:{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"}},[n("path",{attrs:{d:"M19 12H5M12 19l-7-7 7-7","stroke-linecap":"round","stroke-linejoin":"round"}})])]),n("div",{staticClass:"sky-modal-title-wrapper"},[n("h4",{staticClass:"sky-modal-title"},[e._v(e._s(e.title))]),e.subtitle?n("div",{staticClass:"sky-modal-subtitle"},[e._v(e._s(e.subtitle))]):e._e()])]),n("div",{staticClass:"sky-modal-body"},[e._t("default")],2),e.$slots.footer?n("div",{staticClass:"sky-modal-footer"},[e._t("footer")],2):e._e()])]):e._e()])],1)},Ye=[];const Ze={components:{BaseTeleport:Ae},name:"Modal",props:{modelValue:{type:Boolean,default:!1},title:{type:String,default:""},subtitle:{type:String,default:""},closeTitle:{type:String,default:"Закрити"},closeOnOverlay:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},width:{type:String,default:"100%"},height:{type:String,default:"100%"},value:{type:Boolean,default:!1}},computed:{modalStyle(){return{width:this.width,height:this.height}}},watch:{modelValue(e){e?document.body.style.overflow="hidden":document.body.style.overflow=""}},mounted(){document.addEventListener("keydown",this.handleKeydown)},computed:{isOpen:{get(){return this.value},set(e){this.$emit("input",e)}}},beforeDestroy(){document.removeEventListener("keydown",this.handleKeydown),document.body.style.overflow=""},methods:{close(){this.$emit("update:modelValue",!1),this.isOpen=!1,this.$emit("close")},handleOverlayClick(){this.closeOnOverlay&&this.close()},handleKeydown(e){e.key==="Escape"&&this.closeOnEsc&&this.modelValue&&this.close()}}},Ee={};var Qe=M(Ze,We,Ye,!1,Je,"1ed4a1aa",null,null);function Je(e){for(let l in Ee)this[l]=Ee[l]}const et=function(){return Qe.exports}();var tt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function it(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var le={exports:{}};(function(e,l){(function(n,p){var C="1.0.41",T="",R="?",$="function",f="undefined",g="object",O="string",N="major",t="model",a="name",i="type",o="vendor",s="version",k="architecture",z="console",d="mobile",c="tablet",v="smarttv",_="wearable",P="embedded",Z=500,U="Amazon",A="Apple",de="ASUS",ce="BlackBerry",q="Browser",j="Chrome",$e="Edge",H="Firefox",K="Google",ue="Honor",be="Huawei",Ne="Lenovo",G="LG",Q="Microsoft",J="Motorola",ee="Nvidia",we="OnePlus",I="Opera",te="OPPO",V="Samsung",he="Sharp",D="Sony",ie="Xiaomi",oe="Zebra",pe="Facebook",me="Chromium OS",fe="Mac OS",ve=" Browser",ze=function(b,w){var u={};for(var m in b)w[m]&&w[m].length%2===0?u[m]=w[m].concat(b[m]):u[m]=b[m];return u},W=function(b){for(var w={},u=0;u<b.length;u++)w[b[u].toUpperCase()]=b[u];return w},_e=function(b,w){return typeof b===O?L(w).indexOf(L(b))!==-1:!1},L=function(b){return b.toLowerCase()},Pe=function(b){return typeof b===O?b.replace(/[^\d\.]/g,T).split(".")[0]:p},ae=function(b,w){if(typeof b===O)return b=b.replace(/^\s\s*/,T),typeof w===f?b:b.substring(0,Z)},F=function(b,w){for(var u=0,m,E,x,h,r,S;u<w.length&&!r;){var se=w[u],ke=w[u+1];for(m=E=0;m<se.length&&!r&&se[m];)if(r=se[m++].exec(b),r)for(x=0;x<ke.length;x++)S=r[++E],h=ke[x],typeof h===g&&h.length>0?h.length===2?typeof h[1]==$?this[h[0]]=h[1].call(this,S):this[h[0]]=h[1]:h.length===3?typeof h[1]===$&&!(h[1].exec&&h[1].test)?this[h[0]]=S?h[1].call(this,S,h[2]):p:this[h[0]]=S?S.replace(h[1],h[2]):p:h.length===4&&(this[h[0]]=S?h[3].call(this,S.replace(h[1],h[2])):p):this[h]=S||p;u+=2}},X=function(b,w){for(var u in w)if(typeof w[u]===g&&w[u].length>0){for(var m=0;m<w[u].length;m++)if(_e(w[u][m],b))return u===R?p:u}else if(_e(w[u],b))return u===R?p:u;return w.hasOwnProperty("*")?w["*"]:b},Ie={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},ge={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},ye={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[s,[a,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[s,[a,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[a,s],[/opios[\/ ]+([\w\.]+)/i],[s,[a,I+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[s,[a,I+" GX"]],[/\bopr\/([\w\.]+)/i],[s,[a,I]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[s,[a,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[s,[a,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[a,s],[/quark(?:pc)?\/([-\w\.]+)/i],[s,[a,"Quark"]],[/\bddg\/([\w\.]+)/i],[s,[a,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[s,[a,"UC"+q]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[s,[a,"WeChat"]],[/konqueror\/([\w\.]+)/i],[s,[a,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[s,[a,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[s,[a,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[s,[a,"Smart Lenovo "+q]],[/(avast|avg)\/([\w\.]+)/i],[[a,/(.+)/,"$1 Secure "+q],s],[/\bfocus\/([\w\.]+)/i],[s,[a,H+" Focus"]],[/\bopt\/([\w\.]+)/i],[s,[a,I+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[s,[a,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[s,[a,"Dolphin"]],[/coast\/([\w\.]+)/i],[s,[a,I+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[s,[a,"MIUI"+ve]],[/fxios\/([\w\.-]+)/i],[s,[a,H]],[/\bqihoobrowser\/?([\w\.]*)/i],[s,[a,"360"]],[/\b(qq)\/([\w\.]+)/i],[[a,/(.+)/,"$1Browser"],s],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[a,/(.+)/,"$1"+ve],s],[/samsungbrowser\/([\w\.]+)/i],[s,[a,V+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[s,[a,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[a,"Sogou Mobile"],s],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[a,s],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[a],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[s,a],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[a,pe],s],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[a,s],[/\bgsa\/([\w\.]+) .*safari\//i],[s,[a,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[s,[a,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[s,[a,j+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[a,j+" WebView"],s],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[s,[a,"Android "+q]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[a,s],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[s,[a,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[s,a],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[a,[s,X,Ie]],[/(webkit|khtml)\/([\w\.]+)/i],[a,s],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[a,"Netscape"],s],[/(wolvic|librewolf)\/([\w\.]+)/i],[a,s],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[s,[a,H+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[a,[s,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[a,[s,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[k,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[k,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[k,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[k,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[k,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[k,/ower/,T,L]],[/ sun4\w[;\)]/i],[[k,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[k,L]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[t,[o,V],[i,c]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[t,[o,V],[i,d]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[t,[o,A],[i,d]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[t,[o,A],[i,c]],[/(macintosh);/i],[t,[o,A]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[t,[o,he],[i,d]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[t,[o,ue],[i,c]],[/honor([-\w ]+)[;\)]/i],[t,[o,ue],[i,d]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[t,[o,be],[i,c]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[t,[o,be],[i,d]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[t,/_/g," "],[o,ie],[i,c]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[t,/_/g," "],[o,ie],[i,d]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[t,[o,te],[i,d]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[t,[o,X,{OnePlus:["304","403","203"],"*":te}],[i,c]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[t,[o,"Vivo"],[i,d]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[t,[o,"Realme"],[i,d]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[t,[o,J],[i,d]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[t,[o,J],[i,c]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[t,[o,G],[i,c]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[t,[o,G],[i,d]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[t,[o,Ne],[i,c]],[/(nokia) (t[12][01])/i],[o,t,[i,c]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[t,/_/g," "],[i,d],[o,"Nokia"]],[/(pixel (c|tablet))\b/i],[t,[o,K],[i,c]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[t,[o,K],[i,d]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[t,[o,D],[i,d]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[t,"Xperia Tablet"],[o,D],[i,c]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[t,[o,we],[i,d]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[t,[o,U],[i,c]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[t,/(.+)/g,"Fire Phone $1"],[o,U],[i,d]],[/(playbook);[-\w\),; ]+(rim)/i],[t,o,[i,c]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[t,[o,ce],[i,d]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[t,[o,de],[i,c]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[t,[o,de],[i,d]],[/(nexus 9)/i],[t,[o,"HTC"],[i,c]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[o,[t,/_/g," "],[i,d]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[t,[o,"TCL"],[i,c]],[/(itel) ((\w+))/i],[[o,L],t,[i,X,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[t,[o,"Acer"],[i,c]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[t,[o,"Meizu"],[i,d]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[t,[o,"Ulefone"],[i,d]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[t,[o,"Energizer"],[i,d]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[t,[o,"Cat"],[i,d]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[t,[o,"Smartfren"],[i,d]],[/droid.+; (a(?:015|06[35]|142p?))/i],[t,[o,"Nothing"],[i,d]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[t,[o,"Archos"],[i,c]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[t,[o,"Archos"],[i,d]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[o,t,[i,c]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[o,t,[i,d]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[o,t,[i,c]],[/(surface duo)/i],[t,[o,Q],[i,c]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[t,[o,"Fairphone"],[i,d]],[/(u304aa)/i],[t,[o,"AT&T"],[i,d]],[/\bsie-(\w*)/i],[t,[o,"Siemens"],[i,d]],[/\b(rct\w+) b/i],[t,[o,"RCA"],[i,c]],[/\b(venue[\d ]{2,7}) b/i],[t,[o,"Dell"],[i,c]],[/\b(q(?:mv|ta)\w+) b/i],[t,[o,"Verizon"],[i,c]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[t,[o,"Barnes & Noble"],[i,c]],[/\b(tm\d{3}\w+) b/i],[t,[o,"NuVision"],[i,c]],[/\b(k88) b/i],[t,[o,"ZTE"],[i,c]],[/\b(nx\d{3}j) b/i],[t,[o,"ZTE"],[i,d]],[/\b(gen\d{3}) b.+49h/i],[t,[o,"Swiss"],[i,d]],[/\b(zur\d{3}) b/i],[t,[o,"Swiss"],[i,c]],[/\b((zeki)?tb.*\b) b/i],[t,[o,"Zeki"],[i,c]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[o,"Dragon Touch"],t,[i,c]],[/\b(ns-?\w{0,9}) b/i],[t,[o,"Insignia"],[i,c]],[/\b((nxa|next)-?\w{0,9}) b/i],[t,[o,"NextBook"],[i,c]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[o,"Voice"],t,[i,d]],[/\b(lvtel\-)?(v1[12]) b/i],[[o,"LvTel"],t,[i,d]],[/\b(ph-1) /i],[t,[o,"Essential"],[i,d]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[t,[o,"Envizen"],[i,c]],[/\b(trio[-\w\. ]+) b/i],[t,[o,"MachSpeed"],[i,c]],[/\btu_(1491) b/i],[t,[o,"Rotor"],[i,c]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[t,[o,ee],[i,c]],[/(sprint) (\w+)/i],[o,t,[i,d]],[/(kin\.[onetw]{3})/i],[[t,/\./g," "],[o,Q],[i,d]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[t,[o,oe],[i,c]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[t,[o,oe],[i,d]],[/smart-tv.+(samsung)/i],[o,[i,v]],[/hbbtv.+maple;(\d+)/i],[[t,/^/,"SmartTV"],[o,V],[i,v]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[o,G],[i,v]],[/(apple) ?tv/i],[o,[t,A+" TV"],[i,v]],[/crkey/i],[[t,j+"cast"],[o,K],[i,v]],[/droid.+aft(\w+)( bui|\))/i],[t,[o,U],[i,v]],[/(shield \w+ tv)/i],[t,[o,ee],[i,v]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[t,[o,he],[i,v]],[/(bravia[\w ]+)( bui|\))/i],[t,[o,D],[i,v]],[/(mi(tv|box)-?\w+) bui/i],[t,[o,ie],[i,v]],[/Hbbtv.*(technisat) (.*);/i],[o,t,[i,v]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[o,ae],[t,ae],[i,v]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[t,[i,v]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[i,v]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[o,t,[i,z]],[/droid.+; (shield)( bui|\))/i],[t,[o,ee],[i,z]],[/(playstation \w+)/i],[t,[o,D],[i,z]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[t,[o,Q],[i,z]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[t,[o,V],[i,_]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[o,t,[i,_]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[t,[o,te],[i,_]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[t,[o,A],[i,_]],[/(opwwe\d{3})/i],[t,[o,we],[i,_]],[/(moto 360)/i],[t,[o,J],[i,_]],[/(smartwatch 3)/i],[t,[o,D],[i,_]],[/(g watch r)/i],[t,[o,G],[i,_]],[/droid.+; (wt63?0{2,3})\)/i],[t,[o,oe],[i,_]],[/droid.+; (glass) \d/i],[t,[o,K],[i,_]],[/(pico) (4|neo3(?: link|pro)?)/i],[o,t,[i,_]],[/; (quest( \d| pro)?)/i],[t,[o,pe],[i,_]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[o,[i,P]],[/(aeobc)\b/i],[t,[o,U],[i,P]],[/(homepod).+mac os/i],[t,[o,A],[i,P]],[/windows iot/i],[[i,P]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[t,[i,d]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[t,[i,c]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[i,c]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[i,d]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[t,[o,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[s,[a,$e+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[a,s],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[s,[a,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[a,s],[/ladybird\//i],[[a,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[s,a]],os:[[/microsoft (windows) (vista|xp)/i],[a,s],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[a,[s,X,ge]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[s,X,ge],[a,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[s,/_/g,"."],[a,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[a,fe],[s,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[s,a],[/(ubuntu) ([\w\.]+) like android/i],[[a,/(.+)/,"$1 Touch"],s],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[a,s],[/\(bb(10);/i],[s,[a,ce]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[s,[a,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[s,[a,H+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[s,[a,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[s,[a,"watchOS"]],[/crkey\/([\d\.]+)/i],[s,[a,j+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[a,me],s],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[a,s],[/(sunos) ?([\w\.\d]*)/i],[[a,"Solaris"],s],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[a,s]]},y=function(b,w){if(typeof b===g&&(w=b,b=p),!(this instanceof y))return new y(b,w).getResult();var u=typeof n!==f&&n.navigator?n.navigator:p,m=b||(u&&u.userAgent?u.userAgent:T),E=u&&u.userAgentData?u.userAgentData:p,x=w?ze(ye,w):ye,h=u&&u.userAgent==m;return this.getBrowser=function(){var r={};return r[a]=p,r[s]=p,F.call(r,m,x.browser),r[N]=Pe(r[s]),h&&u&&u.brave&&typeof u.brave.isBrave==$&&(r[a]="Brave"),r},this.getCPU=function(){var r={};return r[k]=p,F.call(r,m,x.cpu),r},this.getDevice=function(){var r={};return r[o]=p,r[t]=p,r[i]=p,F.call(r,m,x.device),h&&!r[i]&&E&&E.mobile&&(r[i]=d),h&&r[t]=="Macintosh"&&u&&typeof u.standalone!==f&&u.maxTouchPoints&&u.maxTouchPoints>2&&(r[t]="iPad",r[i]=c),r},this.getEngine=function(){var r={};return r[a]=p,r[s]=p,F.call(r,m,x.engine),r},this.getOS=function(){var r={};return r[a]=p,r[s]=p,F.call(r,m,x.os),h&&!r[a]&&E&&E.platform&&E.platform!="Unknown"&&(r[a]=E.platform.replace(/chrome os/i,me).replace(/macos/i,fe)),r},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return m},this.setUA=function(r){return m=typeof r===O&&r.length>Z?ae(r,Z):r,this},this.setUA(m),this};y.VERSION=C,y.BROWSER=W([a,s,N]),y.CPU=W([k]),y.DEVICE=W([t,o,i,z,d,v,c,_,P]),y.ENGINE=y.OS=W([a,s]),e.exports&&(l=e.exports=y),l.UAParser=y;var B=typeof n!==f&&(n.jQuery||n.Zepto);if(B&&!B.ua){var Y=new y;B.ua=Y.getResult(),B.ua.get=function(){return Y.getUA()},B.ua.set=function(b){Y.setUA(b);var w=Y.getResult();for(var u in w)B.ua[u]=w[u]}}})(typeof window=="object"?window:tt)})(le,le.exports);var ot=le.exports;const at=it(ot);function Be(){if(window.webkit!=null&&window.webkit.messageHandlers!=="undefined")try{var e=at(navigator.userAgent);if(e.browser.name==="WebKit")return"ios_webview"}catch(l){console.error(l)}return typeof Android<"u"?"android_webview":typeof window.cefQuery<"u"?"cef_webview":"browser"}function Me(){return Be()==="ios_webview"}function Re(){return Be()==="android_webview"}var st=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("transition",{attrs:{name:e.enableAnimation?"dialog-slide":""}},[e.modelValue?n("div",{staticClass:"sky-dialogbox sky-dialogbox-classic",style:[e.zIndex?{"z-index":e.zIndex}:null]},[n("div",{staticClass:"sky-dialog-overlay",class:{"sky-dialog-animate":e.enableAnimation}},[n("div",{ref:"dialogContent",staticClass:"sky-dialog-content"},[n("div",{staticClass:"sky-dialog-title",class:{"sky-dialog-title-with-subtitle":e.subtitle}},[e._v(" "+e._s(e.title)+" "),e.subtitle?n("span",{staticClass:"sky-dialog-subtitle"},[e._v(e._s(e.subtitle))]):e._e()]),n("button",{staticClass:"sky-dialog-close",attrs:{title:e.closeText},on:{click:e.close}},[n("svg",{attrs:{viewBox:"0 0 16 16",width:"16",height:"16"}},[n("line",{attrs:{x1:"1",y1:"15",x2:"15",y2:"1",stroke:"currentColor","stroke-width":"2"}}),n("line",{attrs:{x1:"1",y1:"1",x2:"15",y2:"15",stroke:"currentColor","stroke-width":"2"}})])]),n("div",{staticClass:"sky-dialog-clearfix"}),n("div",{ref:"dialogPaper",staticClass:"sky-dialog-paper",class:{"sky-dialog-paper-no-footer":!e.showFooter},on:{touchstart:e.handleTouchStart,touchend:e.handleTouchEnd}},[e.isIos?n("div",{staticClass:"sky-dialog-swipe-area"}):e._e(),e._t("default")],2),e.showFooter?n("div",{staticClass:"sky-dialog-footer",class:{"sky-dialog-footer-animate":e.enableAnimation}},[e._t("buttons")],2):e._e()])])]):e._e()])},nt=[];const rt={name:"DialogModal",props:{modelValue:{type:Boolean,default:!1},title:{type:String,default:""},subtitle:{type:String,default:""},zIndex:{type:[Number,String],default:null},closeText:{type:String,default:"Закрити"},enableAnimation:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},hasButtons:{type:Boolean,default:null}},data(){return{touchStartX:0}},computed:{isIos(){try{return Me()}catch{return!1}},isAndroid(){try{return Re()}catch{return!1}},showFooter(){return this.hasButtons!==null?this.hasButtons:!!this.$slots.buttons}},watch:{modelValue(e){e?(document.body.style.overflow="hidden",this.$nextTick(()=>{this.androidFix()})):document.body.style.overflow=""}},mounted(){document.addEventListener("keydown",this.handleKeydown),window.addEventListener("resize",this.androidFix)},beforeDestroy(){document.removeEventListener("keydown",this.handleKeydown),window.removeEventListener("resize",this.androidFix),document.body.style.overflow=""},methods:{close(){this.$emit("update:modelValue",!1),this.$emit("close")},handleKeydown(e){e.key==="Escape"&&this.closeOnEsc&&this.modelValue&&this.close(),e.key==="Enter"&&this.modelValue&&this.$emit("save")},handleTouchStart(e){e.touches[0].clientX<35&&(this.touchStartX=e.touches[0].clientX)},handleTouchEnd(e){this.touchStartX>0&&this.touchStartX<35&&e.changedTouches[0].clientX-this.touchStartX>50&&this.close(),this.touchStartX=0},androidFix(){if(!(!this.isAndroid||!this.$refs.dialogContent))try{if(typeof Android<"u"&&Android.getDisplayCutoutTop){const e=Android.getDisplayCutoutTop();if(e&&window.devicePixelRatio>1){const l=e/window.devicePixelRatio;this.$refs.dialogContent.style.paddingTop=l+"px"}}}catch{}}}},Ce={};var lt=M(rt,st,nt,!1,dt,"e3d8b1e2",null,null);function dt(e){for(let l in Ce)this[l]=Ce[l]}const ne=function(){return lt.exports}();var ct=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("transition",{attrs:{name:e.enableAnimation?"dialog-slide":""}},[e.modelValue?n("div",{staticClass:"sky-dialogbox sky-dialogbox-next",style:[e.zIndex?{"z-index":e.zIndex}:null]},[n("div",{staticClass:"sky-dialog-overlay",class:{"sky-dialog-animate":e.enableAnimation}},[n("div",{ref:"dialogContent",staticClass:"sky-dialog-content"},[n("button",{staticClass:"sky-dialog-back",attrs:{title:e.closeText},on:{click:e.close}},[n("svg",{staticStyle:{transform:"rotate(90deg)"},attrs:{width:"15",height:"15",viewBox:"0 0 451.847 451.847"}},[n("path",{attrs:{fill:"currentColor",d:"M225.923,354.706c-8.098,0-16.195-3.092-22.369-9.263L9.27,151.157c-12.359-12.359-12.359-32.397,0-44.751c12.354-12.354,32.388-12.354,44.748,0l171.905,171.915l171.906-171.909c12.359-12.354,32.391-12.354,44.744,0c12.365,12.354,12.365,32.392,0,44.751L248.292,345.449C242.115,351.621,234.018,354.706,225.923,354.706z"}})])]),n("div",{staticClass:"sky-dialog-title",class:{"sky-dialog-title-with-subtitle":e.subtitle}},[e._v(" "+e._s(e.title)+" "),e.subtitle?n("span",{staticClass:"sky-dialog-subtitle"},[e._v(e._s(e.subtitle))]):e._e()]),n("div",{staticClass:"sky-dialog-clearfix"}),n("div",{ref:"dialogPaper",staticClass:"sky-dialog-paper",class:{"sky-dialog-paper-no-footer":!e.showFooter},on:{touchstart:e.handleTouchStart,touchend:e.handleTouchEnd}},[e.isIos?n("div",{staticClass:"sky-dialog-swipe-area"}):e._e(),e._t("default")],2),e.showFooter?n("div",{staticClass:"sky-dialog-footer",class:{"sky-dialog-footer-animate":e.enableAnimation}},[e._t("buttons")],2):e._e()])])]):e._e()])},ut=[];const bt={name:"DialogNext",props:{modelValue:{type:Boolean,default:!1},title:{type:String,default:""},subtitle:{type:String,default:""},zIndex:{type:[Number,String],default:null},closeText:{type:String,default:"Назад"},enableAnimation:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},hasButtons:{type:Boolean,default:null}},data(){return{touchStartX:0}},computed:{isIos(){try{return Me()}catch{return!1}},isAndroid(){try{return Re()}catch{return!1}},showFooter(){return this.hasButtons!==null?this.hasButtons:!!this.$slots.buttons}},watch:{modelValue(e){e?(document.body.style.overflow="hidden",this.$nextTick(()=>{this.androidFix()})):document.body.style.overflow=""}},mounted(){document.addEventListener("keydown",this.handleKeydown),window.addEventListener("resize",this.androidFix)},beforeDestroy(){document.removeEventListener("keydown",this.handleKeydown),window.removeEventListener("resize",this.androidFix),document.body.style.overflow=""},methods:{close(){this.$emit("update:modelValue",!1),this.$emit("close")},handleKeydown(e){e.key==="Escape"&&this.closeOnEsc&&this.modelValue&&this.close(),e.key==="Enter"&&this.modelValue&&this.$emit("save")},handleTouchStart(e){e.touches[0].clientX<35&&(this.touchStartX=e.touches[0].clientX)},handleTouchEnd(e){this.touchStartX>0&&this.touchStartX<35&&e.changedTouches[0].clientX-this.touchStartX>50&&this.close(),this.touchStartX=0},androidFix(){if(!(!this.isAndroid||!this.$refs.dialogContent))try{if(typeof Android<"u"&&Android.getDisplayCutoutTop){const e=Android.getDisplayCutoutTop();if(e&&window.devicePixelRatio>1){const l=e/window.devicePixelRatio;this.$refs.dialogContent.style.paddingTop=l+"px"}}}catch{}}}},Te={};var wt=M(bt,ct,ut,!1,ht,"2773fecb",null,null);function ht(e){for(let l in Te)this[l]=Te[l]}const re=function(){return wt.exports}();var pt=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n(e.dialogComponent,{tag:"component",attrs:{title:e.title,subtitle:e.subtitle,"z-index":e.zIndex,"close-text":e.closeText,"enable-animation":e.enableAnimation,"close-on-esc":e.closeOnEsc,"has-buttons":!!e.$slots.buttons},on:{close:function(p){return e.$emit("close")},save:function(p){return e.$emit("save")}},scopedSlots:e._u([e.$slots.buttons?{key:"buttons",fn:function(){return[e._t("buttons")]},proxy:!0}:null],null,!0),model:{value:e.isOpen,callback:function(p){e.isOpen=p},expression:"isOpen"}},[e._t("default")],2)},mt=[];const ft={name:"Dialog",components:{DialogModal:ne,DialogNext:re},props:{modelValue:{type:Boolean,default:!1},title:{type:String,default:""},subtitle:{type:String,default:""},zIndex:{type:[Number,String],default:null},closeText:{type:String,default:""},enableAnimation:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},mode:{type:String,default:null,validator:e=>[null,"next","classic"].includes(e)}},data(){return{rocketMode:!0}},computed:{isOpen:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}},dialogComponent(){return this.mode==="next"?re:this.mode==="classic"?ne:this.rocketMode?re:ne}},mounted(){try{new URLSearchParams(window.location.search).get("rocketMode")==="false"?this.rocketMode=!1:this.rocketMode=!0}catch{this.rocketMode=!0}}},Oe={};var vt=M(ft,pt,mt,!1,_t,null,null,null);function _t(e){for(let l in Oe)this[l]=Oe[l]}const gt=function(){return vt.exports}();exports.BaseTeleport=Ae;exports.Dialog=gt;exports.Header=Ue;exports.Modal=et;