@opengis/cms 0.0.57 → 0.0.59
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 +1 -1
- package/dist/AddNewItemInTree-05PSSEFi.js +76 -0
- package/dist/ArticlesPage-BjYzvTWM.js +298 -0
- package/dist/CollectionsBreadcrumb-HePNJb-d.js +4 -0
- package/dist/CollectionsBreadcrumb.vue_vue_type_script_setup_true_lang-BJh-tjam.js +53 -0
- package/dist/CollectionsPage-DHfPNql6.js +124 -0
- package/dist/{CreateForm-BMOBeP4G.js → CreateForm-5FvT45vH.js} +1 -1
- package/dist/Dashboard-CXkg_pk8.js +358 -0
- package/dist/EditCollectionPage-CqYHpEON.js +187 -0
- package/dist/{EmptyData-DaZt_nAm.js → EmptyData-DxPrSXhV.js} +1 -1
- package/dist/{MenuAddPage-Bf48Z-ah.js → MenuAddPage-QTnwCoGh.js} +40 -35
- package/dist/MenuBody-Bi0ONVZf.js +125 -0
- package/dist/MenuItemPage-B7Y9KFyb.js +1027 -0
- package/dist/MenuList-BLIpeqSd.js +172 -0
- package/dist/MenuPage-3W6jZ15H.js +107 -0
- package/dist/MenuWrapper-OrOv6sOb.js +12 -0
- package/dist/MonacoEditor-ByPT8pnv.js +4 -0
- package/dist/MonacoEditor.vue_vue_type_script_setup_true_lang-C8cip9Ci.js +84 -0
- package/dist/{UniversalTable.vue_vue_type_script_setup_true_lang-CJGTsd1V.js → UniversalTable-GBd_pStq.js} +81 -81
- package/dist/{UniversalTablePagination.vue_vue_type_script_setup_true_lang-GYZd_gkA.js → UniversalTablePagination-Dw2hc0nc.js} +47 -47
- package/dist/VsFormTags-CMjiu9sY.js +114 -0
- package/dist/VsPreview-DwETkOpb.js +63 -0
- package/dist/contentForm-Buku-lel.js +489 -0
- package/dist/getField-CpwVE28P.js +179 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +72 -71
- package/dist/style.css +1 -1
- package/dist/vs-builder-edit-D-q1o8tF.js +604 -0
- package/dist/vs-builder-monaco-Cw-f19gc.js +33 -0
- package/dist/vs-builder-preview-BH4VAM3a.js +44 -0
- package/dist/vs-form-custom-datatable-BDZo48w3.js +317 -0
- package/dist/vs-form-integer-BZ855R3g.js +61 -0
- package/dist/vs-form-media-select-NY27EaG1.js +837 -0
- package/dist/vs-form-reference-list-Dtv8fJJU.js +1536 -0
- package/dist/vs-form-reletion-link-BhzNQszm.js +34 -0
- package/dist/vs-form-tiptap-DDFQjRjY.js +4 -0
- package/dist/vs-form-tiptap.vue_vue_type_script_setup_true_lang-DGgsqXwg.js +11 -0
- package/dist/vs-richtext-md-C098v_6Q.js +4 -0
- package/dist/vs-richtext-md.vue_vue_type_script_setup_true_lang-Ct8uTV-J.js +14 -0
- package/locales/en.json +1 -0
- package/locales/uk.json +1 -0
- package/package.json +69 -68
- package/server/functions/utils/mock.reply.js +7 -7
- package/server/routes/cms/controllers/getPermissions.js +15 -15
- package/server/routes/cms/controllers/setPermissions.js +49 -49
- package/server/templates/select/core.user_mentioned.sql +1 -1
- package/dist/ArticlesPage-BcR1hbds.js +0 -286
- package/dist/BuilderPage-CK_osM89.js +0 -386
- package/dist/CollectionsBreadcrumb.vue_vue_type_script_setup_true_lang-CnOe9ORD.js +0 -45
- package/dist/CollectionsPage-JfmrHNR_.js +0 -110
- package/dist/EditCollectionPage-Cw3GQYRe.js +0 -809
- package/dist/MenuItemPage-CXn5HC8j.js +0 -1366
- package/dist/MenuPage-tJZtK46W.js +0 -106
- package/dist/MonacoEditor.vue_vue_type_script_setup_true_lang-B1DrxmQX.js +0 -84
- package/dist/contentForm-B6gHgGkz.js +0 -586
- package/dist/getField-Y5WXnRR0.js +0 -2948
|
@@ -0,0 +1,1536 @@
|
|
|
1
|
+
import { openBlock as r, createElementBlock as s, createStaticVNode as p, createElementVNode as d, toDisplayString as a, createCommentVNode as g, useModel as A, Fragment as I, renderList as R, unref as b, createBlock as k, resolveDynamicComponent as L, mergeModels as M, ref as m, computed as j, watch as E, createVNode as w, withCtx as C } from "vue";
|
|
2
|
+
import { Edit as Y, Trash2 as U, GripVertical as D } from "lucide-vue-next";
|
|
3
|
+
import { d as J } from "./vuedraggable-CoAPPFYd.js";
|
|
4
|
+
import { VsDrawer as W, notify as Z } from "@opengis/core";
|
|
5
|
+
import { _ as K } from "./vs-form-tiptap.vue_vue_type_script_setup_true_lang-DGgsqXwg.js";
|
|
6
|
+
import { inputs as q, VForm as G } from "@opengis/form";
|
|
7
|
+
import { useI18n as F } from "vue-i18n";
|
|
8
|
+
const T = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASIAAACbCAIAAABJbgHoAAAGfklEQVR4Ae3d7W6baBSF0d7/7Q6IDxkzmrHEQU2DHZudWH1XflRHcXNqVnka4tL01+qNAIGwwK/wfusJEFjPyexyuUzTNAxD3/dd1/3z/1vXdX3fD8MwTdPlcoFNoFmBlzJblmWapr7vb10d/9j3/TRNy7I0a+3AmxV4MrPr9TqO43FXnz06juP1em1W3IE3KPBMZvM8b1eGn7V0/P6u6+Z5bpDbIbcp8OXMnv4k9jG8cRzbRHfUrQl8LbNhGD7W8sp7hmFoTdzxNijwhcxOb+zWp9IaPO1aO+RHMzvxWvHjZz9Xj62ddq0d70OZzfP8sY1z3+MVkdbOvKaO935m1+v1xdcVHwmy6zqv8jd15jV1sPczi14u7gt06djUmdfUwd7JbFmWfQnp2T0iTZ187RzsncymaUqntd8/TVM79I60HYE7mT14v+I+lVfmvu+P6W93UQ7eCLyxwMd7d48yu1wurzTz3Mce3Mu/LMs4jt3/b88t91EE0gK383Mcx/1XQEeZffMV4+34D64bb42lmewn8LpA13X7l/SOMgvd9nF8DAc3hXzzFezx8/QogWOB/VdAR5n9yGm9f3K/fZ32DX99dwznUQKPC3Rdt53AR5n9yGm9f3Lbs7wNjx+hn0ngHQS2E/gos596otuT+234qefj1yXwnMB2AsvsOUAfReC+wEOZuWi8D+lnEPhc4KHM3u0lkM8PxyME3lHgocze7QX9d4T0nAh8LvBQZu/219M/8tn1c0OPEDgS2P/V1NFLIO92s9U0TT/y5eKRpccI/Emg67r9/UxHma3r+s2fQPZ/AGyfcLfhlW8O+ScK7yOQEvjtm5Heyeybrxv3fwBsde2HZVnmeZ68EXhjgXme9/cNr+u976Hvn3XuIzcTeE7gzmezdV19k4LnZH0UgU3gfma+5c6GZSDwnMD9zNZ19Q3knsP1UQRuAg9llr503P8DOL8xBP4+gUczW9c1dFPIwb/j/Pu4HVGbAl/ILFGaxto87Vo76q9ldu7Vo2vF1s62Zo/3y5ndXhF58aYn/41gsydcmwf+TGbrur5y39Nv96G06e6omxJ4MrObkf/ivalzxcE+LfBSZtuverlcpmkahqHv++16suu6vu+HYZim6eCbnG5LDAT+VoFzMvtbdRwXgVMEZHYKoyUEjgRkdqTjMQKnCMjsFEZLCBwJyOxIx2METhGQ2SmMlhA4EpDZkY7HCJwiILNTGC0hcCTwX2a3/1/QjwQInCuwlSezc2FtI1ACMisLE4GQgMxCsNYSKAGZlYWJQEhAZiFYawmUgMzKwkQgJCCzEKy1BEpAZmVhIhASkFkI1loCJSCzsjARCAnILARrLYESkFlZmAiEBGQWgrWWQAnIrCxMBEICMgvBWkugBGRWFiYCIQGZhWCtJVACMisLE4GQgMxCsNYSKAGZlYWJQEhAZiFYawmUgMzKwkQgJCCzEKy1BEpAZmVhIhASkFkI1loCJSCzsjARCAnILARrLYESkFlZmAiEBGQWgrWWQAnIrCxMBEICMgvBWkugBGRWFiYCIQGZhWCtJVACMisLE4GQgMxCsNYSKAGZlYWJQEhAZiFYawmUgMzKwkQgJCCzEKy1BEpAZmVhIhASkFkI1loCJSCzsjARCAnILARrLYESkFlZmAiEBGQWgrWWQAnIrCxMBEICMgvBWkugBGRWFiYCIQGZhWCtJVACMisLE4GQgMxCsNYSKAGZlYWJQEhAZiFYawmUgMzKwkQgJCCzEKy1BEpAZmVhIhASkFkI1loCJSCzsjARCAnILARrLYESkFlZmAiEBGQWgrWWQAnIrCxMBEICMgvBWkugBGRWFiYCIQGZhWCtJVACMisLE4GQgMxCsNYSKAGZlYWJQEhAZiFYawmUgMzKwkQgJCCzEKy1BEpAZmVhIhASkFkI1loCJSCzsjARCAnILARrLYESkFlZmAiEBGQWgrWWQAnIrCxMBEICMgvBWkugBGRWFiYCIQGZhWCtJVACMisLE4GQgMxCsNYSKAGZlYWJQEhAZiFYawmUgMzKwkQgJCCzEKy1BEpAZmVhIhASkFkI1loCJSCzsjARCAnILARrLYESkFlZmAiEBGQWgrWWQAnIrCxMBEICMgvBWkugBGRWFiYCIQGZhWCtJVACMisLE4GQgMxCsNYSKAGZlYWJQEhAZiFYawmUgMzKwkQgJCCzEKy1BEpAZmVhIhAS2DL7F8r/OP7dtZNpAAAAAElFTkSuQmCC", N = {
|
|
9
|
+
faq: {
|
|
10
|
+
schema: {
|
|
11
|
+
title: {
|
|
12
|
+
type: "text",
|
|
13
|
+
label: "Назва",
|
|
14
|
+
placeholder: "Назва"
|
|
15
|
+
},
|
|
16
|
+
show_dots: {
|
|
17
|
+
type: "switcher",
|
|
18
|
+
label: "Показувати точки"
|
|
19
|
+
},
|
|
20
|
+
show_index: {
|
|
21
|
+
type: "switcher",
|
|
22
|
+
conditions: ["show_dots", "==", "true"],
|
|
23
|
+
label: "Показувати нумерацію"
|
|
24
|
+
},
|
|
25
|
+
index_type: {
|
|
26
|
+
type: "combobox",
|
|
27
|
+
conditions: ["show_index", "==", "true"],
|
|
28
|
+
label: "Тип нумерації",
|
|
29
|
+
options: [
|
|
30
|
+
{ id: "decimal", text: "Десятковий" },
|
|
31
|
+
{ id: "upper-alpha", text: "Латинські великі букви" },
|
|
32
|
+
{ id: "lower-alpha", text: "Латинські маленькі букви" },
|
|
33
|
+
{ id: "upper-roman", text: "Римські великі цифри" },
|
|
34
|
+
{ id: "lower-roman", text: "Римські маленькі цифри" },
|
|
35
|
+
{ id: "upper-cyrillic", text: "Кириличні великі букви" },
|
|
36
|
+
{ id: "lower-cyrillic", text: "Кириличні маленькі букви" }
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
openfirst: {
|
|
40
|
+
type: "switcher",
|
|
41
|
+
label: "Відкрити перший елемент?"
|
|
42
|
+
},
|
|
43
|
+
collapse_mode: {
|
|
44
|
+
type: "switcher",
|
|
45
|
+
label: "Не згортати попередній елемент?"
|
|
46
|
+
},
|
|
47
|
+
data: {
|
|
48
|
+
type: "DataTable",
|
|
49
|
+
colModel: [
|
|
50
|
+
{
|
|
51
|
+
key: "title",
|
|
52
|
+
ua: "Назва",
|
|
53
|
+
type: "text",
|
|
54
|
+
required: !0,
|
|
55
|
+
validators: ["required"]
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
key: "is_section",
|
|
59
|
+
type: "Radio",
|
|
60
|
+
label: "Заповнити секціями",
|
|
61
|
+
options: [
|
|
62
|
+
{ id: "yes", text: "Так" },
|
|
63
|
+
{ id: "no", text: "Ні" }
|
|
64
|
+
],
|
|
65
|
+
required: !0,
|
|
66
|
+
validators: ["required"]
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
key: "section",
|
|
70
|
+
type: "reference",
|
|
71
|
+
label: "Вкладений контент",
|
|
72
|
+
placeholder: "Ваш контент",
|
|
73
|
+
conditions: ["is_section", "==", "yes"],
|
|
74
|
+
required: !0,
|
|
75
|
+
validators: ["required"]
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
key: "body",
|
|
79
|
+
type: "tiptap-editor",
|
|
80
|
+
label: "Тіло вкладки",
|
|
81
|
+
placeholder: "Ваш контент",
|
|
82
|
+
conditions: ["is_section", "==", "no"],
|
|
83
|
+
required: !0,
|
|
84
|
+
validators: ["required"]
|
|
85
|
+
}
|
|
86
|
+
]
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
banner: {
|
|
91
|
+
schema: {
|
|
92
|
+
title: {
|
|
93
|
+
type: "text",
|
|
94
|
+
label: "Назва",
|
|
95
|
+
placeholder: "Назва"
|
|
96
|
+
},
|
|
97
|
+
image: {
|
|
98
|
+
type: "file",
|
|
99
|
+
label: "Зображення",
|
|
100
|
+
placeholder: "Зображення"
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
photoGrid: {
|
|
105
|
+
schema: {
|
|
106
|
+
columns: {
|
|
107
|
+
type: "number",
|
|
108
|
+
label: "Кількість колонок",
|
|
109
|
+
placeholder: "Кількість колонок",
|
|
110
|
+
default: 3
|
|
111
|
+
},
|
|
112
|
+
data: {
|
|
113
|
+
type: "DataTable",
|
|
114
|
+
colModel: [
|
|
115
|
+
{
|
|
116
|
+
key: "image",
|
|
117
|
+
ua: "Зображення",
|
|
118
|
+
type: "file"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
key: "caption",
|
|
122
|
+
ua: "Заголовок",
|
|
123
|
+
type: "text"
|
|
124
|
+
}
|
|
125
|
+
]
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
slider: {
|
|
130
|
+
schema: {
|
|
131
|
+
autoplay: {
|
|
132
|
+
type: "switcher",
|
|
133
|
+
label: "Автоматичне гортання?",
|
|
134
|
+
default: !0
|
|
135
|
+
},
|
|
136
|
+
autoplaySpeed: {
|
|
137
|
+
type: "number",
|
|
138
|
+
label: "Швидкість автоматичного гортання(мс)",
|
|
139
|
+
placeholder: "Швидкість автоматичного гортання(мс)",
|
|
140
|
+
default: 3e3
|
|
141
|
+
},
|
|
142
|
+
show_navigation: {
|
|
143
|
+
type: "switcher",
|
|
144
|
+
label: "Показувати кнопки навігації?"
|
|
145
|
+
},
|
|
146
|
+
data: {
|
|
147
|
+
type: "DataTable",
|
|
148
|
+
colModel: [
|
|
149
|
+
{
|
|
150
|
+
key: "title",
|
|
151
|
+
ua: "Назва",
|
|
152
|
+
type: "text"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
key: "link",
|
|
156
|
+
ua: "Посилання",
|
|
157
|
+
type: "text"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
key: "image",
|
|
161
|
+
ua: "Зображення",
|
|
162
|
+
type: "file"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
key: "image_width",
|
|
166
|
+
ua: "Ширина зображення(px)",
|
|
167
|
+
type: "number",
|
|
168
|
+
placeholder: "Ширина зображення"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
key: "image_height",
|
|
172
|
+
ua: "Висота зображення(px)",
|
|
173
|
+
type: "number",
|
|
174
|
+
placeholder: "Висота зображення"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
ua: "Розтягувати по ширині",
|
|
178
|
+
key: "stretch",
|
|
179
|
+
type: "switcher"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
key: "target_blank",
|
|
183
|
+
ua: "Відкривати в новій вкладці?",
|
|
184
|
+
type: "switcher"
|
|
185
|
+
}
|
|
186
|
+
]
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
video: {
|
|
191
|
+
schema: {
|
|
192
|
+
file: {
|
|
193
|
+
type: "file",
|
|
194
|
+
max_size: 50,
|
|
195
|
+
description: "Максимальний розмір файлу 50MB",
|
|
196
|
+
label: "Завантажити відео",
|
|
197
|
+
placeholder: "Завантажити відео"
|
|
198
|
+
},
|
|
199
|
+
hidden_gif: {
|
|
200
|
+
type: "switcher",
|
|
201
|
+
label: "Сховати GIF"
|
|
202
|
+
},
|
|
203
|
+
preview: {
|
|
204
|
+
type: "file",
|
|
205
|
+
label: "Прев'ю для відео"
|
|
206
|
+
},
|
|
207
|
+
link: {
|
|
208
|
+
type: "text",
|
|
209
|
+
label: "Посилання",
|
|
210
|
+
placeholder: "Посилання"
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
about: {
|
|
215
|
+
schema: {
|
|
216
|
+
title: {
|
|
217
|
+
type: "text",
|
|
218
|
+
label: "Заголовок",
|
|
219
|
+
placeholder: "Заголовок"
|
|
220
|
+
},
|
|
221
|
+
text: {
|
|
222
|
+
type: "tiptap-editor",
|
|
223
|
+
label: "Текст",
|
|
224
|
+
placeholder: "Текст"
|
|
225
|
+
},
|
|
226
|
+
url: {
|
|
227
|
+
type: "file",
|
|
228
|
+
label: "Зображення / відео",
|
|
229
|
+
placeholder: "Посилання"
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
cards: {
|
|
234
|
+
schema: {
|
|
235
|
+
title: {
|
|
236
|
+
type: "text",
|
|
237
|
+
label: "Заголовок",
|
|
238
|
+
placeholder: "Заголовок"
|
|
239
|
+
},
|
|
240
|
+
data: {
|
|
241
|
+
type: "DataTable",
|
|
242
|
+
colModel: [
|
|
243
|
+
{
|
|
244
|
+
key: "title",
|
|
245
|
+
ua: "Назва",
|
|
246
|
+
type: "text"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
key: "img",
|
|
250
|
+
ua: "Зображення",
|
|
251
|
+
type: "file"
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
key: "link",
|
|
255
|
+
ua: "Посилання",
|
|
256
|
+
type: "text"
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
key: "description",
|
|
260
|
+
ua: "Опис",
|
|
261
|
+
type: "text"
|
|
262
|
+
}
|
|
263
|
+
]
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
usefulLinks: {
|
|
268
|
+
schema: {
|
|
269
|
+
title: {
|
|
270
|
+
type: "text",
|
|
271
|
+
label: "Заголовок",
|
|
272
|
+
placeholder: "Заголовок"
|
|
273
|
+
},
|
|
274
|
+
data: {
|
|
275
|
+
type: "DataTable",
|
|
276
|
+
colModel: [
|
|
277
|
+
{
|
|
278
|
+
key: "text",
|
|
279
|
+
ua: "Назва",
|
|
280
|
+
type: "text"
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
key: "url",
|
|
284
|
+
ua: "Посилання",
|
|
285
|
+
type: "text"
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
key: "target_blank",
|
|
289
|
+
ua: "Відкривати в новій вкладці?",
|
|
290
|
+
type: "switcher"
|
|
291
|
+
}
|
|
292
|
+
]
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
team: {
|
|
297
|
+
schema: {
|
|
298
|
+
data: {
|
|
299
|
+
type: "DataTable",
|
|
300
|
+
colModel: [
|
|
301
|
+
{
|
|
302
|
+
key: "avatar",
|
|
303
|
+
ua: "Аватар",
|
|
304
|
+
type: "file"
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
key: "title",
|
|
308
|
+
ua: "Ім'я/ПІБ",
|
|
309
|
+
type: "text"
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
key: "description",
|
|
313
|
+
ua: "Опис",
|
|
314
|
+
type: "textarea",
|
|
315
|
+
optional: !0
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
key: "position",
|
|
319
|
+
ua: "Посада",
|
|
320
|
+
type: "text",
|
|
321
|
+
tooltip: !0
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
key: "email",
|
|
325
|
+
ua: "Email",
|
|
326
|
+
type: "text",
|
|
327
|
+
optional: !0
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
key: "tel",
|
|
331
|
+
ua: "Телефон",
|
|
332
|
+
type: "text",
|
|
333
|
+
optional: !0
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
key: "schedule",
|
|
337
|
+
ua: "Графік прийому",
|
|
338
|
+
type: "text",
|
|
339
|
+
optional: !0
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
key: "isinfo",
|
|
343
|
+
type: "switcher",
|
|
344
|
+
label: "Відображати кнопку 'Детальніше'"
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
key: "slug",
|
|
348
|
+
ua: "Slug",
|
|
349
|
+
type: "text",
|
|
350
|
+
label: "Унікальний ідентифікатор"
|
|
351
|
+
}
|
|
352
|
+
]
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
},
|
|
356
|
+
body: {
|
|
357
|
+
schema: {
|
|
358
|
+
background_color: {
|
|
359
|
+
type: "switcher",
|
|
360
|
+
label: "Додати білий фон?"
|
|
361
|
+
},
|
|
362
|
+
content: {
|
|
363
|
+
type: "tiptap-editor",
|
|
364
|
+
label: "Текст",
|
|
365
|
+
placeholder: "Текст"
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
},
|
|
369
|
+
news: {
|
|
370
|
+
schema: {
|
|
371
|
+
title: {
|
|
372
|
+
type: "text",
|
|
373
|
+
label: "Заголовок",
|
|
374
|
+
placeholder: "Заголовок"
|
|
375
|
+
},
|
|
376
|
+
buttonText: {
|
|
377
|
+
type: "text",
|
|
378
|
+
label: "Текст кнопки",
|
|
379
|
+
placeholder: "Текст кнопки"
|
|
380
|
+
},
|
|
381
|
+
buttonLink: {
|
|
382
|
+
type: "text",
|
|
383
|
+
label: "Посилання кнопки",
|
|
384
|
+
placeholder: "Посилання кнопки"
|
|
385
|
+
},
|
|
386
|
+
tag: {
|
|
387
|
+
type: "select",
|
|
388
|
+
label: "Тег",
|
|
389
|
+
placeholder: "Тег",
|
|
390
|
+
data: "tag_id"
|
|
391
|
+
},
|
|
392
|
+
news_list: {
|
|
393
|
+
type: "select",
|
|
394
|
+
label: "Список новин",
|
|
395
|
+
multiple: !0,
|
|
396
|
+
placeholder: "Список новин",
|
|
397
|
+
parent: "tag",
|
|
398
|
+
data: "news_tag_id"
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
},
|
|
402
|
+
form: {
|
|
403
|
+
schema: {
|
|
404
|
+
title: {
|
|
405
|
+
type: "text",
|
|
406
|
+
label: "Заголовок",
|
|
407
|
+
placeholder: "Заголовок"
|
|
408
|
+
},
|
|
409
|
+
formUrl: {
|
|
410
|
+
type: "text",
|
|
411
|
+
label: "Посилання для відправки форми",
|
|
412
|
+
placeholder: "Посилання"
|
|
413
|
+
},
|
|
414
|
+
schema: {
|
|
415
|
+
label: "Схема форми",
|
|
416
|
+
type: "DataTable",
|
|
417
|
+
colModel: [
|
|
418
|
+
{
|
|
419
|
+
key: "name",
|
|
420
|
+
ua: "Name",
|
|
421
|
+
type: "text",
|
|
422
|
+
placeholder: "Name"
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
key: "label",
|
|
426
|
+
ua: "Title",
|
|
427
|
+
type: "text",
|
|
428
|
+
placeholder: "Title"
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
key: "type",
|
|
432
|
+
ua: "Type",
|
|
433
|
+
type: "combobox",
|
|
434
|
+
options: [
|
|
435
|
+
{
|
|
436
|
+
text: "Text",
|
|
437
|
+
id: "text"
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
text: "Textarea",
|
|
441
|
+
id: "textarea"
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
text: "switcher",
|
|
445
|
+
id: "switcher"
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
text: "Email",
|
|
449
|
+
id: "email"
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
text: "Mask",
|
|
453
|
+
id: "mask"
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
text: "Number",
|
|
457
|
+
id: "number"
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
text: "Date",
|
|
461
|
+
id: "date"
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
text: "Datetime",
|
|
465
|
+
id: "datetime"
|
|
466
|
+
}
|
|
467
|
+
]
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
key: "mask",
|
|
471
|
+
ua: "Маска",
|
|
472
|
+
type: "text",
|
|
473
|
+
conditions: ["type", "==", "mask"],
|
|
474
|
+
placeholder: "Маска"
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
key: "placeholder",
|
|
478
|
+
ua: "Плейсхолдер",
|
|
479
|
+
type: "text",
|
|
480
|
+
placeholder: "Placeholder"
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
key: "required",
|
|
484
|
+
ua: "Required",
|
|
485
|
+
type: "switcher"
|
|
486
|
+
}
|
|
487
|
+
]
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
},
|
|
491
|
+
tabs: {
|
|
492
|
+
schema: {
|
|
493
|
+
title: {
|
|
494
|
+
type: "text",
|
|
495
|
+
label: "Заголовок",
|
|
496
|
+
placeholder: "Заголовок"
|
|
497
|
+
},
|
|
498
|
+
description: {
|
|
499
|
+
type: "textarea",
|
|
500
|
+
label: "Опис",
|
|
501
|
+
placeholder: "Опис"
|
|
502
|
+
},
|
|
503
|
+
history_mode: {
|
|
504
|
+
type: "switcher",
|
|
505
|
+
label: "Використовувати історію сторінки?"
|
|
506
|
+
},
|
|
507
|
+
data: {
|
|
508
|
+
type: "DataTable",
|
|
509
|
+
colModel: [
|
|
510
|
+
{
|
|
511
|
+
key: "slug",
|
|
512
|
+
type: "slug",
|
|
513
|
+
label: "Slug",
|
|
514
|
+
parent: "title",
|
|
515
|
+
placeholder: "Slug"
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
key: "title",
|
|
519
|
+
ua: "Назва",
|
|
520
|
+
type: "text",
|
|
521
|
+
required: !0,
|
|
522
|
+
validators: ["required"]
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
key: "is_section",
|
|
526
|
+
type: "Radio",
|
|
527
|
+
label: "Заповнити секціями",
|
|
528
|
+
options: [
|
|
529
|
+
{ id: "yes", text: "Так" },
|
|
530
|
+
{ id: "no", text: "Ні" }
|
|
531
|
+
],
|
|
532
|
+
required: !0,
|
|
533
|
+
validators: ["required"]
|
|
534
|
+
},
|
|
535
|
+
{
|
|
536
|
+
key: "section",
|
|
537
|
+
type: "reference",
|
|
538
|
+
label: "Тіло вкладки",
|
|
539
|
+
placeholder: "Ваш контент",
|
|
540
|
+
conditions: ["is_section", "==", "yes"],
|
|
541
|
+
required: !0,
|
|
542
|
+
validators: ["required"]
|
|
543
|
+
},
|
|
544
|
+
{
|
|
545
|
+
key: "body",
|
|
546
|
+
type: "tiptap-editor",
|
|
547
|
+
label: "Тіло вкладки",
|
|
548
|
+
placeholder: "Ваш контент",
|
|
549
|
+
conditions: ["is_section", "==", "no"],
|
|
550
|
+
required: !0,
|
|
551
|
+
validators: ["required"]
|
|
552
|
+
}
|
|
553
|
+
]
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
},
|
|
557
|
+
vertical_tabs: {
|
|
558
|
+
schema: {
|
|
559
|
+
title: {
|
|
560
|
+
type: "text",
|
|
561
|
+
label: "Заголовок",
|
|
562
|
+
placeholder: "Заголовок"
|
|
563
|
+
},
|
|
564
|
+
history_mode: {
|
|
565
|
+
type: "switcher",
|
|
566
|
+
label: "Використовувати історію сторінки?"
|
|
567
|
+
},
|
|
568
|
+
data: {
|
|
569
|
+
type: "DataTable",
|
|
570
|
+
colModel: [
|
|
571
|
+
{
|
|
572
|
+
key: "slug",
|
|
573
|
+
type: "slug",
|
|
574
|
+
label: "Slug",
|
|
575
|
+
parent: "title",
|
|
576
|
+
placeholder: "Slug"
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
key: "title",
|
|
580
|
+
ua: "Назва",
|
|
581
|
+
type: "text",
|
|
582
|
+
required: !0,
|
|
583
|
+
validators: ["required"]
|
|
584
|
+
},
|
|
585
|
+
{
|
|
586
|
+
key: "is_section",
|
|
587
|
+
type: "Radio",
|
|
588
|
+
label: "Заповнити секціями",
|
|
589
|
+
options: [
|
|
590
|
+
{ id: "yes", text: "Так" },
|
|
591
|
+
{ id: "no", text: "Ні" },
|
|
592
|
+
{ id: "slug", text: "Привязати сторінку" }
|
|
593
|
+
],
|
|
594
|
+
required: !0,
|
|
595
|
+
validators: ["required"]
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
key: "slug",
|
|
599
|
+
type: "text",
|
|
600
|
+
label: "Slug",
|
|
601
|
+
placeholder: "Slug",
|
|
602
|
+
conditions: ["is_section", "==", "slug"]
|
|
603
|
+
},
|
|
604
|
+
{
|
|
605
|
+
key: "section",
|
|
606
|
+
type: "reference",
|
|
607
|
+
label: "Тіло вкладки",
|
|
608
|
+
placeholder: "Ваш контент",
|
|
609
|
+
conditions: ["is_section", "==", "yes"],
|
|
610
|
+
required: !0,
|
|
611
|
+
validators: ["required"]
|
|
612
|
+
},
|
|
613
|
+
{
|
|
614
|
+
key: "body",
|
|
615
|
+
type: "tiptap-editor",
|
|
616
|
+
label: "Тіло вкладки",
|
|
617
|
+
placeholder: "Ваш контент",
|
|
618
|
+
conditions: ["is_section", "==", "no"],
|
|
619
|
+
required: !0,
|
|
620
|
+
validators: ["required"]
|
|
621
|
+
}
|
|
622
|
+
]
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
},
|
|
626
|
+
documents: {
|
|
627
|
+
schema: {
|
|
628
|
+
title: {
|
|
629
|
+
type: "text",
|
|
630
|
+
label: "Заголовок",
|
|
631
|
+
placeholder: "Заголовок"
|
|
632
|
+
},
|
|
633
|
+
icon: {
|
|
634
|
+
type: "file",
|
|
635
|
+
label: "Завантажити іконку",
|
|
636
|
+
placeholder: "Завантажити іконку"
|
|
637
|
+
},
|
|
638
|
+
show_icon: {
|
|
639
|
+
type: "switcher",
|
|
640
|
+
label: "Показувати іконку?"
|
|
641
|
+
},
|
|
642
|
+
documents: {
|
|
643
|
+
type: "DataTable",
|
|
644
|
+
colModel: [
|
|
645
|
+
{
|
|
646
|
+
key: "title",
|
|
647
|
+
ua: "Назва",
|
|
648
|
+
type: "text"
|
|
649
|
+
},
|
|
650
|
+
{
|
|
651
|
+
key: "file",
|
|
652
|
+
info: "Прев'ю доступно тільки для документів у форматі pdf, html, txt. Інші формати одразу завантажуються.",
|
|
653
|
+
ua: "Файл",
|
|
654
|
+
type: "file"
|
|
655
|
+
}
|
|
656
|
+
]
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
},
|
|
660
|
+
infoLine: {
|
|
661
|
+
schema: {
|
|
662
|
+
divider: {
|
|
663
|
+
type: "file",
|
|
664
|
+
label: "Завантажити розподілювач"
|
|
665
|
+
},
|
|
666
|
+
speed: {
|
|
667
|
+
type: "number",
|
|
668
|
+
label: "Швидкість автоматичного гортання(с)",
|
|
669
|
+
placeholder: "Швидкість автоматичного гортання(с)",
|
|
670
|
+
default: 20
|
|
671
|
+
},
|
|
672
|
+
data: {
|
|
673
|
+
type: "DataTable",
|
|
674
|
+
colModel: [
|
|
675
|
+
{
|
|
676
|
+
key: "title",
|
|
677
|
+
ua: "Текст",
|
|
678
|
+
type: "text"
|
|
679
|
+
}
|
|
680
|
+
]
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
},
|
|
684
|
+
interested: {
|
|
685
|
+
schema: {
|
|
686
|
+
title: {
|
|
687
|
+
type: "text",
|
|
688
|
+
label: "Заголовок",
|
|
689
|
+
placeholder: "Заголовок"
|
|
690
|
+
},
|
|
691
|
+
data: {
|
|
692
|
+
type: "DataTable",
|
|
693
|
+
colModel: [
|
|
694
|
+
{
|
|
695
|
+
key: "title",
|
|
696
|
+
ua: "Заголовок",
|
|
697
|
+
type: "text"
|
|
698
|
+
},
|
|
699
|
+
{
|
|
700
|
+
key: "link",
|
|
701
|
+
ua: "Посилання",
|
|
702
|
+
type: "text"
|
|
703
|
+
},
|
|
704
|
+
{
|
|
705
|
+
key: "target_blank",
|
|
706
|
+
ua: "Відкривати в новій вкладці?",
|
|
707
|
+
type: "switcher"
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
key: "color",
|
|
711
|
+
ua: "Колір фону",
|
|
712
|
+
type: "color"
|
|
713
|
+
}
|
|
714
|
+
]
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
},
|
|
718
|
+
contact: {
|
|
719
|
+
schema: {
|
|
720
|
+
title: {
|
|
721
|
+
type: "text",
|
|
722
|
+
label: "Заголовок",
|
|
723
|
+
placeholder: "Заголовок"
|
|
724
|
+
},
|
|
725
|
+
data: {
|
|
726
|
+
type: "DataTable",
|
|
727
|
+
colModel: [
|
|
728
|
+
{
|
|
729
|
+
key: "type",
|
|
730
|
+
ua: "Тип",
|
|
731
|
+
type: "combobox",
|
|
732
|
+
options: [
|
|
733
|
+
{ id: "email", text: "Email" },
|
|
734
|
+
{ id: "tel", text: "Телефон" },
|
|
735
|
+
{ id: "address", text: "Адреса" }
|
|
736
|
+
]
|
|
737
|
+
},
|
|
738
|
+
{
|
|
739
|
+
key: "title",
|
|
740
|
+
ua: "Пошта",
|
|
741
|
+
type: "text",
|
|
742
|
+
conditions: ["type", "==", "email"]
|
|
743
|
+
},
|
|
744
|
+
{
|
|
745
|
+
key: "title",
|
|
746
|
+
ua: "Телефон",
|
|
747
|
+
type: "text",
|
|
748
|
+
conditions: ["type", "==", "tel"]
|
|
749
|
+
},
|
|
750
|
+
{
|
|
751
|
+
key: "title",
|
|
752
|
+
ua: "Адреса",
|
|
753
|
+
type: "text",
|
|
754
|
+
conditions: ["type", "==", "address"]
|
|
755
|
+
},
|
|
756
|
+
{
|
|
757
|
+
key: "description",
|
|
758
|
+
ua: "Опис",
|
|
759
|
+
type: "text"
|
|
760
|
+
}
|
|
761
|
+
]
|
|
762
|
+
}
|
|
763
|
+
}
|
|
764
|
+
},
|
|
765
|
+
iframe: {
|
|
766
|
+
schema: {
|
|
767
|
+
link: {
|
|
768
|
+
type: "text",
|
|
769
|
+
label: "Посилання",
|
|
770
|
+
placeholder: "Посилання"
|
|
771
|
+
},
|
|
772
|
+
file: {
|
|
773
|
+
type: "file",
|
|
774
|
+
label: "Завантажити файл",
|
|
775
|
+
placeholder: "Завантажити файл"
|
|
776
|
+
},
|
|
777
|
+
height: {
|
|
778
|
+
type: "text",
|
|
779
|
+
label: "Висота iframe(px)",
|
|
780
|
+
placeholder: "Висота iframe(px)"
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
}, _ = [
|
|
785
|
+
{
|
|
786
|
+
text: "reference.faq",
|
|
787
|
+
id: "faq"
|
|
788
|
+
},
|
|
789
|
+
{
|
|
790
|
+
text: "reference.banner",
|
|
791
|
+
id: "banner"
|
|
792
|
+
},
|
|
793
|
+
{
|
|
794
|
+
text: "reference.slider",
|
|
795
|
+
id: "slider"
|
|
796
|
+
},
|
|
797
|
+
{
|
|
798
|
+
text: "reference.photoGrid",
|
|
799
|
+
id: "photoGrid"
|
|
800
|
+
},
|
|
801
|
+
{
|
|
802
|
+
text: "reference.video",
|
|
803
|
+
id: "video"
|
|
804
|
+
},
|
|
805
|
+
{
|
|
806
|
+
text: "reference.about",
|
|
807
|
+
id: "about"
|
|
808
|
+
},
|
|
809
|
+
{
|
|
810
|
+
text: "reference.cards",
|
|
811
|
+
id: "cards"
|
|
812
|
+
},
|
|
813
|
+
{
|
|
814
|
+
text: "reference.usefulLinks",
|
|
815
|
+
id: "usefulLinks"
|
|
816
|
+
},
|
|
817
|
+
{
|
|
818
|
+
text: "reference.team",
|
|
819
|
+
id: "team"
|
|
820
|
+
},
|
|
821
|
+
{
|
|
822
|
+
text: "reference.body",
|
|
823
|
+
id: "body"
|
|
824
|
+
},
|
|
825
|
+
{
|
|
826
|
+
text: "reference.news",
|
|
827
|
+
id: "news"
|
|
828
|
+
},
|
|
829
|
+
{
|
|
830
|
+
text: "reference.form",
|
|
831
|
+
id: "form"
|
|
832
|
+
},
|
|
833
|
+
{
|
|
834
|
+
text: "reference.tabs",
|
|
835
|
+
id: "tabs"
|
|
836
|
+
},
|
|
837
|
+
{
|
|
838
|
+
text: "reference.vertical_tabs",
|
|
839
|
+
id: "vertical_tabs"
|
|
840
|
+
},
|
|
841
|
+
{
|
|
842
|
+
text: "reference.documents",
|
|
843
|
+
id: "documents"
|
|
844
|
+
},
|
|
845
|
+
{
|
|
846
|
+
text: "reference.infoLine",
|
|
847
|
+
id: "infoLine"
|
|
848
|
+
},
|
|
849
|
+
{
|
|
850
|
+
text: "reference.interested",
|
|
851
|
+
id: "interested"
|
|
852
|
+
},
|
|
853
|
+
{
|
|
854
|
+
text: "reference.contact",
|
|
855
|
+
id: "contact"
|
|
856
|
+
},
|
|
857
|
+
{
|
|
858
|
+
text: "reference.iframe",
|
|
859
|
+
id: "iframe"
|
|
860
|
+
}
|
|
861
|
+
], O = { class: "h-full w-full flex flex-col" }, H = { class: "flex justify-between items-center mt-2 pt-2 border-t border-gray-300" }, P = { class: "text-xs font-medium text-gray-600" }, X = {
|
|
862
|
+
key: 0,
|
|
863
|
+
class: "text-xs text-gray-500"
|
|
864
|
+
}, V = {
|
|
865
|
+
__name: "cards-skeleton",
|
|
866
|
+
props: {
|
|
867
|
+
text: {
|
|
868
|
+
type: String,
|
|
869
|
+
required: !0
|
|
870
|
+
},
|
|
871
|
+
count: {
|
|
872
|
+
type: Number,
|
|
873
|
+
required: !0
|
|
874
|
+
}
|
|
875
|
+
},
|
|
876
|
+
setup(e) {
|
|
877
|
+
return (i, t) => (r(), s("div", O, [
|
|
878
|
+
t[0] || (t[0] = p('<div class="flex-1 grid grid-cols-3 gap-1.5"><div class="bg-gray-200 rounded p-1.5 flex flex-col"><div class="flex-1 bg-gray-300 rounded mb-1"></div><div class="h-1.5 bg-gray-400 rounded"></div></div><div class="bg-gray-200 rounded p-1.5 flex flex-col"><div class="flex-1 bg-gray-300 rounded mb-1"></div><div class="h-1.5 bg-gray-400 rounded"></div></div><div class="bg-gray-200 rounded p-1.5 flex flex-col"><div class="flex-1 bg-gray-300 rounded mb-1"></div><div class="h-1.5 bg-gray-400 rounded"></div></div><div class="bg-gray-200 rounded p-1.5 flex flex-col"><div class="flex-1 bg-gray-300 rounded mb-1"></div><div class="h-1.5 bg-gray-400 rounded"></div></div><div class="bg-gray-200 rounded p-1.5 flex flex-col"><div class="flex-1 bg-gray-300 rounded mb-1"></div><div class="h-1.5 bg-gray-400 rounded"></div></div><div class="bg-gray-200 rounded p-1.5 flex flex-col"><div class="flex-1 bg-gray-300 rounded mb-1"></div><div class="h-1.5 bg-gray-400 rounded"></div></div></div>', 1)),
|
|
879
|
+
d("div", H, [
|
|
880
|
+
d("div", P, a(i.$t(e.text)), 1),
|
|
881
|
+
e.count && e.count > 0 ? (r(), s("div", X, a(e.count), 1)) : g("", !0)
|
|
882
|
+
])
|
|
883
|
+
]));
|
|
884
|
+
}
|
|
885
|
+
}, ee = { class: "h-full w-full flex flex-col" }, te = { class: "flex justify-between items-center mt-2 pt-2 border-t border-gray-300" }, re = { class: "text-xs font-medium text-gray-600" }, de = {
|
|
886
|
+
key: 0,
|
|
887
|
+
class: "text-xs text-gray-500"
|
|
888
|
+
}, le = {
|
|
889
|
+
__name: "faq-skeleton",
|
|
890
|
+
props: {
|
|
891
|
+
text: {
|
|
892
|
+
type: String,
|
|
893
|
+
required: !0
|
|
894
|
+
},
|
|
895
|
+
count: {
|
|
896
|
+
type: Number,
|
|
897
|
+
required: !0
|
|
898
|
+
}
|
|
899
|
+
},
|
|
900
|
+
setup(e) {
|
|
901
|
+
return (i, t) => (r(), s("div", ee, [
|
|
902
|
+
t[0] || (t[0] = p('<div class="h-3 bg-gray-500 rounded mb-2"></div><div class="space-y-1.5 flex-1"><div class="border border-gray-300 rounded p-1"><div class="flex items-center justify-between"><div class="h-1.5 bg-gray-300 rounded flex-1 mr-2"></div><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down w-2.5 h-2.5 text-gray-400"><path d="m6 9 6 6 6-6"></path></svg></div></div><div class="border border-gray-300 rounded p-1"><div class="flex items-center justify-between"><div class="h-1.5 bg-gray-300 rounded flex-1 mr-2"></div><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down w-2.5 h-2.5 text-gray-400"><path d="m6 9 6 6 6-6"></path></svg></div><div class="mt-1 pt-1 border-t border-gray-200"><div class="space-y-0.5"><div class="h-1 bg-gray-200 rounded"></div><div class="h-1 bg-gray-200 rounded w-5/6"></div><div class="h-1 bg-gray-200 rounded w-4/5"></div></div></div></div><div class="border border-gray-300 rounded p-1"><div class="flex items-center justify-between"><div class="h-1.5 bg-gray-300 rounded flex-1 mr-2"></div><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down w-2.5 h-2.5 text-gray-400"><path d="m6 9 6 6 6-6"></path></svg></div></div><div class="border border-gray-300 rounded p-1"><div class="flex items-center justify-between"><div class="h-1.5 bg-gray-300 rounded flex-1 mr-2"></div><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down w-2.5 h-2.5 text-gray-400"><path d="m6 9 6 6 6-6"></path></svg></div></div></div>', 2)),
|
|
903
|
+
d("div", te, [
|
|
904
|
+
d("div", re, a(i.$t(e.text)), 1),
|
|
905
|
+
e.count && e.count > 0 ? (r(), s("div", de, a(e.count), 1)) : g("", !0)
|
|
906
|
+
])
|
|
907
|
+
]));
|
|
908
|
+
}
|
|
909
|
+
}, se = { class: "h-full w-full flex flex-col" }, ie = { class: "flex justify-between items-center mt-2 pt-2 border-t border-gray-300" }, ae = { class: "text-xs font-medium text-gray-600" }, oe = {
|
|
910
|
+
key: 0,
|
|
911
|
+
class: "text-xs text-gray-500"
|
|
912
|
+
}, S = {
|
|
913
|
+
__name: "banner-skeleton",
|
|
914
|
+
props: {
|
|
915
|
+
text: {
|
|
916
|
+
type: String,
|
|
917
|
+
required: !0
|
|
918
|
+
},
|
|
919
|
+
count: {
|
|
920
|
+
type: Number,
|
|
921
|
+
required: !0
|
|
922
|
+
}
|
|
923
|
+
},
|
|
924
|
+
setup(e) {
|
|
925
|
+
return (i, t) => (r(), s("div", se, [
|
|
926
|
+
t[0] || (t[0] = p('<div class="flex-1 bg-gray-200 rounded relative"><div class="absolute inset-0 flex items-center justify-center"><div class="w-16 h-10 bg-gray-300 rounded"></div></div><div class="absolute bottom-2 left-2"><div class="h-3 bg-gray-400 rounded w-16"></div></div></div>', 1)),
|
|
927
|
+
d("div", ie, [
|
|
928
|
+
d("div", ae, a(i.$t(e.text)), 1),
|
|
929
|
+
e.count && e.count > 0 ? (r(), s("div", oe, a(e.count), 1)) : g("", !0)
|
|
930
|
+
])
|
|
931
|
+
]));
|
|
932
|
+
}
|
|
933
|
+
}, ne = { class: "h-full w-full flex flex-col" }, ce = { class: "flex justify-between items-center mt-2 pt-2 border-t border-gray-300" }, ue = { class: "text-xs font-medium text-gray-600" }, ve = {
|
|
934
|
+
key: 0,
|
|
935
|
+
class: "text-xs text-gray-500"
|
|
936
|
+
}, ge = {
|
|
937
|
+
__name: "form-skeleton",
|
|
938
|
+
props: {
|
|
939
|
+
text: {
|
|
940
|
+
type: String,
|
|
941
|
+
required: !0
|
|
942
|
+
},
|
|
943
|
+
count: {
|
|
944
|
+
type: Number,
|
|
945
|
+
required: !0
|
|
946
|
+
}
|
|
947
|
+
},
|
|
948
|
+
setup(e) {
|
|
949
|
+
return (i, t) => (r(), s("div", ne, [
|
|
950
|
+
t[0] || (t[0] = p('<div class="h-3 bg-gray-500 rounded mb-2"></div><div class="space-y-1.5 flex-1"><div><div class="h-1.5 bg-gray-300 rounded mb-1 w-1/4"></div><div class="h-5 bg-gray-200 rounded border border-gray-300"></div></div><div><div class="h-1.5 bg-gray-300 rounded mb-1 w-1/3"></div><div class="h-5 bg-gray-200 rounded border border-gray-300"></div></div><div><div class="h-1.5 bg-gray-300 rounded mb-1 w-1/4"></div><div class="h-5 bg-gray-200 rounded border border-gray-300"></div></div><div><div class="h-1.5 bg-gray-300 rounded mb-1 w-1/3"></div><div class="h-8 bg-gray-200 rounded border border-gray-300"></div></div></div><div class="h-6 bg-gray-600 rounded mt-2"></div>', 3)),
|
|
951
|
+
d("div", ce, [
|
|
952
|
+
d("div", ue, a(i.$t(e.text)), 1),
|
|
953
|
+
e.count && e.count > 0 ? (r(), s("div", ve, a(e.count), 1)) : g("", !0)
|
|
954
|
+
])
|
|
955
|
+
]));
|
|
956
|
+
}
|
|
957
|
+
}, ye = { class: "h-full w-full flex flex-col" }, be = { class: "flex justify-between items-center mt-2 pt-2 border-t border-gray-300" }, he = { class: "text-xs font-medium text-gray-600" }, pe = {
|
|
958
|
+
key: 0,
|
|
959
|
+
class: "text-xs text-gray-500"
|
|
960
|
+
}, B = {
|
|
961
|
+
__name: "news-skeleton",
|
|
962
|
+
props: {
|
|
963
|
+
text: {
|
|
964
|
+
type: String,
|
|
965
|
+
required: !0
|
|
966
|
+
},
|
|
967
|
+
count: {
|
|
968
|
+
type: Number,
|
|
969
|
+
required: !0
|
|
970
|
+
}
|
|
971
|
+
},
|
|
972
|
+
setup(e) {
|
|
973
|
+
return (i, t) => (r(), s("div", ye, [
|
|
974
|
+
t[0] || (t[0] = p('<div class="h-4 bg-gray-400 rounded mb-2"></div><div class="flex gap-2 flex-1"><div class="flex-1 space-y-2"><div class="bg-gray-200 rounded p-1.5"><div class="h-8 bg-gray-300 rounded mb-1"></div><div class="h-1.5 bg-gray-400 rounded mb-1"></div><div class="h-1 bg-gray-300 rounded w-3/4"></div></div><div class="bg-gray-200 rounded p-1.5"><div class="h-8 bg-gray-300 rounded mb-1"></div><div class="h-1.5 bg-gray-400 rounded mb-1"></div><div class="h-1 bg-gray-300 rounded w-3/4"></div></div></div><div class="w-20 space-y-1"><div class="border-b border-gray-300 pb-1"><div class="h-1 bg-gray-300 rounded mb-1"></div><div class="h-1 bg-gray-300 rounded w-4/5"></div></div><div class="border-b border-gray-300 pb-1"><div class="h-1 bg-gray-300 rounded mb-1"></div><div class="h-1 bg-gray-300 rounded w-4/5"></div></div><div class="border-b border-gray-300 pb-1"><div class="h-1 bg-gray-300 rounded mb-1"></div><div class="h-1 bg-gray-300 rounded w-4/5"></div></div><div class="border-b border-gray-300 pb-1"><div class="h-1 bg-gray-300 rounded mb-1"></div><div class="h-1 bg-gray-300 rounded w-4/5"></div></div></div></div>', 2)),
|
|
975
|
+
d("div", be, [
|
|
976
|
+
d("div", he, a(i.$t(e.text)), 1),
|
|
977
|
+
e.count && e.count > 0 ? (r(), s("div", pe, a(e.count), 1)) : g("", !0)
|
|
978
|
+
])
|
|
979
|
+
]));
|
|
980
|
+
}
|
|
981
|
+
}, xe = { class: "h-full w-full flex flex-col" }, fe = { class: "flex justify-between items-center mt-2 pt-2 border-t border-gray-300" }, me = { class: "text-xs font-medium text-gray-600" }, we = {
|
|
982
|
+
key: 0,
|
|
983
|
+
class: "text-xs text-gray-500"
|
|
984
|
+
}, ke = {
|
|
985
|
+
__name: "team-skeleton",
|
|
986
|
+
props: {
|
|
987
|
+
text: {
|
|
988
|
+
type: String,
|
|
989
|
+
required: !0
|
|
990
|
+
},
|
|
991
|
+
count: {
|
|
992
|
+
type: Number,
|
|
993
|
+
required: !0
|
|
994
|
+
}
|
|
995
|
+
},
|
|
996
|
+
setup(e) {
|
|
997
|
+
return (i, t) => (r(), s("div", xe, [
|
|
998
|
+
t[0] || (t[0] = p('<div class="space-y-2 flex-1"><div class="flex items-start gap-2"><div class="w-8 h-8 bg-gray-300 rounded flex-shrink-0"></div><div class="flex-1 min-w-0"><div class="h-2 bg-gray-400 rounded mb-1 w-2/3"></div><div class="h-1.5 bg-gray-300 rounded mb-1"></div><div class="flex gap-1"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-phone w-2.5 h-2.5 text-gray-400"><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path></svg><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-mail w-2.5 h-2.5 text-gray-400"><rect width="20" height="16" x="2" y="4" rx="2"></rect><path d="m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7"></path></svg><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-clock w-2.5 h-2.5 text-gray-400"><circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline></svg></div></div></div><div class="flex items-start gap-2"><div class="w-8 h-8 bg-gray-300 rounded flex-shrink-0"></div><div class="flex-1 min-w-0"><div class="h-2 bg-gray-400 rounded mb-1 w-2/3"></div><div class="h-1.5 bg-gray-300 rounded mb-1"></div><div class="flex gap-1"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-phone w-2.5 h-2.5 text-gray-400"><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path></svg><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-mail w-2.5 h-2.5 text-gray-400"><rect width="20" height="16" x="2" y="4" rx="2"></rect><path d="m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7"></path></svg><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-clock w-2.5 h-2.5 text-gray-400"><circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline></svg></div></div></div><div class="flex items-start gap-2"><div class="w-8 h-8 bg-gray-300 rounded flex-shrink-0"></div><div class="flex-1 min-w-0"><div class="h-2 bg-gray-400 rounded mb-1 w-2/3"></div><div class="h-1.5 bg-gray-300 rounded mb-1"></div><div class="flex gap-1"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-phone w-2.5 h-2.5 text-gray-400"><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path></svg><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-mail w-2.5 h-2.5 text-gray-400"><rect width="20" height="16" x="2" y="4" rx="2"></rect><path d="m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7"></path></svg><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-clock w-2.5 h-2.5 text-gray-400"><circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline></svg></div></div></div><div class="flex items-start gap-2"><div class="w-8 h-8 bg-gray-300 rounded flex-shrink-0"></div><div class="flex-1 min-w-0"><div class="h-2 bg-gray-400 rounded mb-1 w-2/3"></div><div class="h-1.5 bg-gray-300 rounded mb-1"></div><div class="flex gap-1"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-phone w-2.5 h-2.5 text-gray-400"><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path></svg><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-mail w-2.5 h-2.5 text-gray-400"><rect width="20" height="16" x="2" y="4" rx="2"></rect><path d="m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7"></path></svg><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-clock w-2.5 h-2.5 text-gray-400"><circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline></svg></div></div></div></div>', 1)),
|
|
999
|
+
d("div", fe, [
|
|
1000
|
+
d("div", me, a(i.$t(e.text)), 1),
|
|
1001
|
+
e.count && e.count > 0 ? (r(), s("div", we, a(e.count), 1)) : g("", !0)
|
|
1002
|
+
])
|
|
1003
|
+
]));
|
|
1004
|
+
}
|
|
1005
|
+
}, Ae = { class: "h-full w-full flex flex-col" }, Ce = { class: "flex justify-between items-center mt-2 pt-2 border-t border-gray-300" }, _e = { class: "text-xs font-medium text-gray-600" }, $e = {
|
|
1006
|
+
key: 0,
|
|
1007
|
+
class: "text-xs text-gray-500"
|
|
1008
|
+
}, Q = {
|
|
1009
|
+
__name: "usefulLinks-skeleton",
|
|
1010
|
+
props: {
|
|
1011
|
+
text: {
|
|
1012
|
+
type: String,
|
|
1013
|
+
required: !0
|
|
1014
|
+
},
|
|
1015
|
+
count: {
|
|
1016
|
+
type: Number,
|
|
1017
|
+
required: !0
|
|
1018
|
+
}
|
|
1019
|
+
},
|
|
1020
|
+
setup(e) {
|
|
1021
|
+
return (i, t) => (r(), s("div", Ae, [
|
|
1022
|
+
t[0] || (t[0] = p('<div class="h-4 bg-gray-400 rounded mb-3"></div><div class="grid grid-cols-2 gap-2 flex-1"><div class="space-y-2"><div class="flex items-center justify-between p-1.5 border border-gray-300 rounded"><div class="h-1.5 bg-gray-300 rounded flex-1 mr-2"></div><div class="w-2 h-2 bg-gray-400 rounded-full"></div></div><div class="flex items-center justify-between p-1.5 border border-gray-300 rounded"><div class="h-1.5 bg-gray-300 rounded flex-1 mr-2"></div><div class="w-2 h-2 bg-gray-400 rounded-full"></div></div><div class="flex items-center justify-between p-1.5 border border-gray-300 rounded"><div class="h-1.5 bg-gray-300 rounded flex-1 mr-2"></div><div class="w-2 h-2 bg-gray-400 rounded-full"></div></div></div><div class="space-y-2"><div class="flex items-center justify-between p-1.5 border border-gray-300 rounded"><div class="h-1.5 bg-gray-300 rounded flex-1 mr-2"></div><div class="w-2 h-2 bg-gray-400 rounded-full"></div></div><div class="flex items-center justify-between p-1.5 border border-gray-300 rounded"><div class="h-1.5 bg-gray-300 rounded flex-1 mr-2"></div><div class="w-2 h-2 bg-gray-400 rounded-full"></div></div><div class="flex items-center justify-between p-1.5 border border-gray-300 rounded"><div class="h-1.5 bg-gray-300 rounded flex-1 mr-2"></div><div class="w-2 h-2 bg-gray-400 rounded-full"></div></div></div></div>', 2)),
|
|
1023
|
+
d("div", Ce, [
|
|
1024
|
+
d("div", _e, a(i.$t(e.text)), 1),
|
|
1025
|
+
e.count && e.count > 0 ? (r(), s("div", $e, a(e.count), 1)) : g("", !0)
|
|
1026
|
+
])
|
|
1027
|
+
]));
|
|
1028
|
+
}
|
|
1029
|
+
}, Me = { class: "h-full w-full flex flex-col" }, je = { class: "flex justify-between items-center mt-2 pt-2 border-t border-gray-300" }, Ee = { class: "text-xs font-medium text-gray-600" }, qe = {
|
|
1030
|
+
key: 0,
|
|
1031
|
+
class: "text-xs text-gray-500"
|
|
1032
|
+
}, Ve = {
|
|
1033
|
+
__name: "video-skeleton",
|
|
1034
|
+
props: {
|
|
1035
|
+
text: {
|
|
1036
|
+
type: String,
|
|
1037
|
+
required: !0
|
|
1038
|
+
},
|
|
1039
|
+
count: {
|
|
1040
|
+
type: Number,
|
|
1041
|
+
required: !0
|
|
1042
|
+
}
|
|
1043
|
+
},
|
|
1044
|
+
setup(e) {
|
|
1045
|
+
return (i, t) => (r(), s("div", Me, [
|
|
1046
|
+
t[0] || (t[0] = p('<div class="flex-1 bg-gray-200 rounded relative"><div class="absolute inset-0 flex items-center justify-center"><div class="w-10 h-10 bg-gray-400 rounded-full flex items-center justify-center"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-play w-5 h-5 text-white ml-0.5"><polygon points="6 3 20 12 6 21 6 3"></polygon></svg></div></div><div class="absolute bottom-1.5 left-1.5 right-1.5"><div class="h-2 bg-gray-400 rounded mb-1"></div><div class="h-2 bg-gray-400 rounded w-3/4"></div></div></div><div class="mt-2 flex items-center gap-2"><div class="w-5 h-5 bg-gray-300 rounded"></div><div class="h-2 bg-gray-300 rounded flex-1"></div></div>', 2)),
|
|
1047
|
+
d("div", je, [
|
|
1048
|
+
d("div", Ee, a(i.$t(e.text)), 1),
|
|
1049
|
+
e.count && e.count > 0 ? (r(), s("div", qe, a(e.count), 1)) : g("", !0)
|
|
1050
|
+
])
|
|
1051
|
+
]));
|
|
1052
|
+
}
|
|
1053
|
+
}, Se = { class: "h-full w-full flex flex-col" }, Be = { class: "flex justify-between items-center mt-2 pt-2 border-t border-gray-300" }, Qe = { class: "text-xs font-medium text-gray-600" }, ze = {
|
|
1054
|
+
key: 0,
|
|
1055
|
+
class: "text-xs text-gray-500"
|
|
1056
|
+
}, Ie = {
|
|
1057
|
+
__name: "about-skeleton",
|
|
1058
|
+
props: {
|
|
1059
|
+
text: {
|
|
1060
|
+
type: String,
|
|
1061
|
+
required: !0
|
|
1062
|
+
},
|
|
1063
|
+
count: {
|
|
1064
|
+
type: Number,
|
|
1065
|
+
required: !0
|
|
1066
|
+
}
|
|
1067
|
+
},
|
|
1068
|
+
setup(e) {
|
|
1069
|
+
return (i, t) => (r(), s("div", Se, [
|
|
1070
|
+
t[0] || (t[0] = p('<div class="flex flex-1"><div class="flex-1 pr-2"><div class="h-4 bg-gray-400 rounded mb-2"></div><div class="space-y-1.5"><div class="h-2 bg-gray-300 rounded"></div><div class="h-2 bg-gray-300 rounded"></div><div class="h-2 bg-gray-300 rounded w-4/5"></div><div class="h-2 bg-gray-300 rounded"></div><div class="h-2 bg-gray-300 rounded w-3/4"></div><div class="h-2 bg-gray-300 rounded"></div></div></div><div class="w-16 h-20 bg-gray-200 rounded flex items-center justify-center"><div class="w-6 h-6 bg-gray-300 rounded-full"></div></div></div>', 1)),
|
|
1071
|
+
d("div", Be, [
|
|
1072
|
+
d("div", Qe, a(i.$t(e.text)), 1),
|
|
1073
|
+
e.count && e.count > 0 ? (r(), s("div", ze, a(e.count), 1)) : g("", !0)
|
|
1074
|
+
])
|
|
1075
|
+
]));
|
|
1076
|
+
}
|
|
1077
|
+
}, Le = { class: "h-full w-full flex flex-col" }, We = { class: "flex justify-between items-center mt-2 pt-2 border-t border-gray-300" }, Ze = { class: "text-xs font-medium text-gray-600" }, Ge = {
|
|
1078
|
+
key: 0,
|
|
1079
|
+
class: "text-xs text-gray-500"
|
|
1080
|
+
}, Fe = {
|
|
1081
|
+
__name: "slider-skeleton",
|
|
1082
|
+
props: {
|
|
1083
|
+
text: {
|
|
1084
|
+
type: String,
|
|
1085
|
+
required: !0
|
|
1086
|
+
},
|
|
1087
|
+
count: {
|
|
1088
|
+
type: Number,
|
|
1089
|
+
required: !0
|
|
1090
|
+
}
|
|
1091
|
+
},
|
|
1092
|
+
setup(e) {
|
|
1093
|
+
return (i, t) => (r(), s("div", Le, [
|
|
1094
|
+
t[0] || (t[0] = p('<div class="flex-1 bg-gray-200 rounded mb-2 relative"><div class="absolute inset-0 flex items-center justify-center"><div class="w-12 h-8 bg-gray-300 rounded"></div></div><div class="absolute left-1 top-1/2 transform -translate-y-1/2"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-left w-4 h-4 text-gray-400"><path d="m15 18-6-6 6-6"></path></svg></div><div class="absolute right-1 top-1/2 transform -translate-y-1/2"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-right w-4 h-4 text-gray-400"><path d="m9 18 6-6-6-6"></path></svg></div></div><div class="h-3 bg-gray-300 rounded mb-2"></div><div class="h-6 w-20 bg-gray-400 rounded"></div><div class="flex justify-center gap-1 mt-2"><div class="w-1.5 h-1.5 bg-gray-300 rounded-full"></div><div class="w-1.5 h-1.5 bg-gray-300 rounded-full"></div><div class="w-1.5 h-1.5 bg-gray-300 rounded-full"></div><div class="w-1.5 h-1.5 bg-gray-300 rounded-full"></div><div class="w-1.5 h-1.5 bg-gray-300 rounded-full"></div></div>', 4)),
|
|
1095
|
+
d("div", We, [
|
|
1096
|
+
d("div", Ze, a(i.$t(e.text)), 1),
|
|
1097
|
+
e.count && e.count > 0 ? (r(), s("div", Ge, a(e.count), 1)) : g("", !0)
|
|
1098
|
+
])
|
|
1099
|
+
]));
|
|
1100
|
+
}
|
|
1101
|
+
}, Te = { class: "h-full flex flex-col" }, Ne = { class: "flex justify-between items-center mt-2 pt-2 border-t border-gray-300" }, Re = { class: "text-xs font-medium text-gray-600" }, Ye = {
|
|
1102
|
+
key: 0,
|
|
1103
|
+
class: "text-xs text-gray-500"
|
|
1104
|
+
}, Ue = {
|
|
1105
|
+
__name: "infoLine-skeleton",
|
|
1106
|
+
props: {
|
|
1107
|
+
text: {
|
|
1108
|
+
type: String,
|
|
1109
|
+
required: !0
|
|
1110
|
+
},
|
|
1111
|
+
count: {
|
|
1112
|
+
type: Number,
|
|
1113
|
+
required: !0
|
|
1114
|
+
}
|
|
1115
|
+
},
|
|
1116
|
+
setup(e) {
|
|
1117
|
+
return (i, t) => (r(), s("div", Te, [
|
|
1118
|
+
t[0] || (t[0] = p('<div class="flex-1 bg-gray-200 rounded relative overflow-hidden"><div class="absolute inset-0 flex items-center"><div class="flex gap-8 whitespace-nowrap animate-pulse"><div class="h-3 bg-gray-400 rounded w-32"></div><div class="h-3 bg-gray-300 rounded w-24"></div><div class="h-3 bg-gray-400 rounded w-40"></div><div class="h-3 bg-gray-300 rounded w-28"></div><div class="h-3 bg-gray-400 rounded w-36"></div><div class="h-3 bg-gray-300 rounded w-20"></div></div></div><div class="absolute top-2 left-2 right-2 flex justify-between items-center"><div class="w-2 h-2 bg-gray-500 rounded-full"></div><div class="w-2 h-2 bg-gray-500 rounded-full"></div></div></div>', 1)),
|
|
1119
|
+
d("div", Ne, [
|
|
1120
|
+
d("div", Re, a(i.$t(e.text)), 1),
|
|
1121
|
+
e.count && e.count > 0 ? (r(), s("div", Ye, a(e.count), 1)) : g("", !0)
|
|
1122
|
+
])
|
|
1123
|
+
]));
|
|
1124
|
+
}
|
|
1125
|
+
}, De = { class: "h-full flex flex-col" }, Je = { class: "flex justify-between items-center mt-2 pt-2 border-t border-gray-300" }, Ke = { class: "text-xs font-medium text-gray-600" }, Oe = {
|
|
1126
|
+
key: 0,
|
|
1127
|
+
class: "text-xs text-gray-500"
|
|
1128
|
+
}, He = {
|
|
1129
|
+
__name: "tabs-skeleton",
|
|
1130
|
+
props: {
|
|
1131
|
+
text: {
|
|
1132
|
+
type: String,
|
|
1133
|
+
required: !0
|
|
1134
|
+
},
|
|
1135
|
+
count: {
|
|
1136
|
+
type: Number,
|
|
1137
|
+
required: !0
|
|
1138
|
+
}
|
|
1139
|
+
},
|
|
1140
|
+
setup(e) {
|
|
1141
|
+
return (i, t) => (r(), s("div", De, [
|
|
1142
|
+
t[0] || (t[0] = p('<div class="h-2 bg-gray-300 rounded mb-2"></div><div class="flex gap-1 mb-3"><div class="h-4 w-16 bg-gray-400 rounded"></div><div class="h-4 w-16 bg-gray-200 rounded"></div></div><div class="space-y-2 flex-1"><div class="h-2 bg-gray-300 rounded w-5/6"></div><div class="h-2 bg-gray-300 rounded"></div><div class="space-y-1 mt-3"><div class="flex items-center gap-2"><div class="w-2 h-2 bg-gray-400 rounded-full"></div><div class="h-1.5 bg-gray-300 rounded w-20"></div></div><div class="flex items-center gap-2"><div class="w-2 h-2 bg-gray-400 rounded-full"></div><div class="h-1.5 bg-gray-300 rounded w-16"></div></div></div></div>', 3)),
|
|
1143
|
+
d("div", Je, [
|
|
1144
|
+
d("div", Ke, a(i.$t(e.text)), 1),
|
|
1145
|
+
e.count && e.count > 0 ? (r(), s("div", Oe, a(e.count), 1)) : g("", !0)
|
|
1146
|
+
])
|
|
1147
|
+
]));
|
|
1148
|
+
}
|
|
1149
|
+
}, Pe = { class: "h-full flex flex-col" }, Xe = { class: "flex justify-between items-center mt-2 pt-2 border-t border-gray-300" }, et = { class: "text-xs font-medium text-gray-600" }, tt = {
|
|
1150
|
+
key: 0,
|
|
1151
|
+
class: "text-xs text-gray-500"
|
|
1152
|
+
}, z = {
|
|
1153
|
+
__name: "documents-skeleton",
|
|
1154
|
+
props: {
|
|
1155
|
+
text: {
|
|
1156
|
+
type: String,
|
|
1157
|
+
required: !0
|
|
1158
|
+
},
|
|
1159
|
+
count: {
|
|
1160
|
+
type: Number,
|
|
1161
|
+
required: !0
|
|
1162
|
+
}
|
|
1163
|
+
},
|
|
1164
|
+
setup(e) {
|
|
1165
|
+
return (i, t) => (r(), s("div", Pe, [
|
|
1166
|
+
t[0] || (t[0] = p('<div class="h-4 bg-gray-400 rounded mb-2"></div><div class="space-y-1.5 flex-1"><div class="flex items-center justify-between p-1.5 border-b border-gray-200"><div class="flex items-center gap-2"><div class="w-3 h-3 bg-gray-400 rounded-full"></div><div class="h-2 bg-gray-300 rounded flex-1 w-28"></div></div><div class="flex gap-1.5"><div class="w-3 h-3 bg-gray-200 rounded"></div><div class="w-3 h-3 bg-gray-200 rounded"></div></div></div><div class="flex items-center justify-between p-1.5 border-b border-gray-200"><div class="flex items-center gap-2"><div class="w-3 h-3 bg-gray-400 rounded-full"></div><div class="h-2 bg-gray-300 rounded flex-1 w-28"></div></div><div class="flex gap-1.5"><div class="w-3 h-3 bg-gray-200 rounded"></div><div class="w-3 h-3 bg-gray-200 rounded"></div></div></div><div class="flex items-center justify-between p-1.5 border-b border-gray-200"><div class="flex items-center gap-2"><div class="w-3 h-3 bg-gray-400 rounded-full"></div><div class="h-2 bg-gray-300 rounded flex-1 w-28"></div></div><div class="flex gap-1.5"><div class="w-3 h-3 bg-gray-200 rounded"></div><div class="w-3 h-3 bg-gray-200 rounded"></div></div></div><div class="flex items-center justify-between p-1.5 border-b border-gray-200"><div class="flex items-center gap-2"><div class="w-3 h-3 bg-gray-400 rounded-full"></div><div class="h-2 bg-gray-300 rounded flex-1 w-28"></div></div><div class="flex gap-1.5"><div class="w-3 h-3 bg-gray-200 rounded"></div><div class="w-3 h-3 bg-gray-200 rounded"></div></div></div></div>', 2)),
|
|
1167
|
+
d("div", Xe, [
|
|
1168
|
+
d("div", et, a(i.$t(e.text)), 1),
|
|
1169
|
+
e.count && e.count > 0 ? (r(), s("div", tt, a(e.count), 1)) : g("", !0)
|
|
1170
|
+
])
|
|
1171
|
+
]));
|
|
1172
|
+
}
|
|
1173
|
+
}, rt = { class: "h-full flex flex-col" }, dt = { class: "flex justify-between items-center mt-2 pt-2 border-t border-gray-300" }, lt = { class: "text-xs font-medium text-gray-600" }, st = {
|
|
1174
|
+
key: 0,
|
|
1175
|
+
class: "text-xs text-gray-500"
|
|
1176
|
+
}, it = {
|
|
1177
|
+
__name: "body-skeleton",
|
|
1178
|
+
props: {
|
|
1179
|
+
text: {
|
|
1180
|
+
type: String,
|
|
1181
|
+
required: !0
|
|
1182
|
+
},
|
|
1183
|
+
count: {
|
|
1184
|
+
type: Number,
|
|
1185
|
+
required: !0
|
|
1186
|
+
}
|
|
1187
|
+
},
|
|
1188
|
+
setup(e) {
|
|
1189
|
+
return (i, t) => (r(), s("div", rt, [
|
|
1190
|
+
t[0] || (t[0] = p('<div class="grid grid-cols-3 gap-2 flex-1"><div class="flex flex-col"><div class="h-3 bg-gray-400 rounded mb-2"></div><div class="space-y-1.5"><div class="h-4 bg-gray-200 rounded border border-gray-300 p-1.5"><div class="h-1.5 bg-gray-300 rounded w-3/4"></div></div><div class="h-4 bg-gray-200 rounded border border-gray-300 p-1.5"><div class="h-1.5 bg-gray-300 rounded w-3/4"></div></div></div></div><div class="flex flex-col"><div class="h-3 bg-gray-400 rounded mb-2"></div><div class="space-y-1.5"><div class="h-4 bg-gray-200 rounded border border-gray-300 p-1.5"><div class="h-1.5 bg-gray-300 rounded w-3/4"></div></div><div class="h-4 bg-gray-200 rounded border border-gray-300 p-1.5"><div class="h-1.5 bg-gray-300 rounded w-3/4"></div></div></div></div><div class="flex flex-col"><div class="h-3 bg-gray-400 rounded mb-2"></div><div class="space-y-1.5"><div class="h-4 bg-gray-200 rounded border border-gray-300 p-1.5"><div class="h-1.5 bg-gray-300 rounded w-3/4"></div></div><div class="h-4 bg-gray-200 rounded border border-gray-300 p-1.5"><div class="h-1.5 bg-gray-300 rounded w-3/4"></div></div></div></div></div>', 1)),
|
|
1191
|
+
d("div", dt, [
|
|
1192
|
+
d("div", lt, a(i.$t(e.text)), 1),
|
|
1193
|
+
e.count && e.count > 0 ? (r(), s("div", st, a(e.count), 1)) : g("", !0)
|
|
1194
|
+
])
|
|
1195
|
+
]));
|
|
1196
|
+
}
|
|
1197
|
+
}, $ = {
|
|
1198
|
+
faq: le,
|
|
1199
|
+
banner: S,
|
|
1200
|
+
slider: Fe,
|
|
1201
|
+
video: Ve,
|
|
1202
|
+
about: Ie,
|
|
1203
|
+
cards: V,
|
|
1204
|
+
usefulLinks: Q,
|
|
1205
|
+
team: ke,
|
|
1206
|
+
news: B,
|
|
1207
|
+
form: ge,
|
|
1208
|
+
tabs: He,
|
|
1209
|
+
vertical_tabs: B,
|
|
1210
|
+
documents: z,
|
|
1211
|
+
infoLine: Ue,
|
|
1212
|
+
body: it,
|
|
1213
|
+
photoGrid: V,
|
|
1214
|
+
interested: Q,
|
|
1215
|
+
contact: z,
|
|
1216
|
+
iframe: S
|
|
1217
|
+
}, at = { class: "grid grid-cols-1 md:grid-cols-1 lg:grid-cols-2 2xl:grid-cols-3 gap-4" }, ot = ["onClick"], nt = { class: "wireframe-block h-[240px] !p-4 border-2 border-dashed bg-white relative overflow-hidden transition-all rounded-lg shadow-sm border-gray-300 hover:border-gray-400 cursor-pointer" }, ct = ["src"], ut = {
|
|
1218
|
+
__name: "vs-form-reference-choce",
|
|
1219
|
+
props: {
|
|
1220
|
+
modelValue: {
|
|
1221
|
+
type: String,
|
|
1222
|
+
required: !0
|
|
1223
|
+
},
|
|
1224
|
+
modelModifiers: {}
|
|
1225
|
+
},
|
|
1226
|
+
emits: ["update:modelValue"],
|
|
1227
|
+
setup(e) {
|
|
1228
|
+
const i = A(e, "modelValue");
|
|
1229
|
+
return (t, v) => (r(), s("div", at, [
|
|
1230
|
+
(r(!0), s(I, null, R(b(_), (l) => (r(), s("div", {
|
|
1231
|
+
key: l.id,
|
|
1232
|
+
onClick: (c) => i.value = l.id,
|
|
1233
|
+
class: "relative"
|
|
1234
|
+
}, [
|
|
1235
|
+
d("div", nt, [
|
|
1236
|
+
b($)[l.id] ? (r(), k(L(b($)[l.id]), {
|
|
1237
|
+
key: 0,
|
|
1238
|
+
text: l == null ? void 0 : l.text,
|
|
1239
|
+
count: (l == null ? void 0 : l.data) || 0
|
|
1240
|
+
}, null, 8, ["text", "count"])) : (r(), s("img", {
|
|
1241
|
+
key: 1,
|
|
1242
|
+
src: b(T),
|
|
1243
|
+
alt: "Team collaboration",
|
|
1244
|
+
class: "w-full h-full object-cover"
|
|
1245
|
+
}, null, 8, ct))
|
|
1246
|
+
])
|
|
1247
|
+
], 8, ot))), 128))
|
|
1248
|
+
]));
|
|
1249
|
+
}
|
|
1250
|
+
}, vt = { class: "flex gap-4" }, gt = { class: "text-sm text-gray-500 dark:text-gray-400 border flex items-center h-10 px-4 rounded-lg w-full" }, yt = { class: "flex items-center justify-between w-full p-4 border-t border-gray-200 dark:border-gray-700" }, bt = {
|
|
1251
|
+
__name: "vs-form-reference-add",
|
|
1252
|
+
props: /* @__PURE__ */ M({
|
|
1253
|
+
title: {
|
|
1254
|
+
type: String,
|
|
1255
|
+
required: !0
|
|
1256
|
+
}
|
|
1257
|
+
}, {
|
|
1258
|
+
modelValue: {
|
|
1259
|
+
type: Array,
|
|
1260
|
+
default: () => []
|
|
1261
|
+
},
|
|
1262
|
+
modelModifiers: {}
|
|
1263
|
+
}),
|
|
1264
|
+
emits: ["update:modelValue"],
|
|
1265
|
+
setup(e) {
|
|
1266
|
+
const { t: i } = F();
|
|
1267
|
+
q["vs-input-reference"] = At, q["vs-input-tiptap-editor"] = K;
|
|
1268
|
+
const t = A(e, "modelValue"), v = m(!1), l = m({}), c = m(null), h = m({}), n = j(() => {
|
|
1269
|
+
var u;
|
|
1270
|
+
return ((u = N[c.value]) == null ? void 0 : u.schema) || null;
|
|
1271
|
+
}), f = async () => {
|
|
1272
|
+
if (await l.value.validate()) {
|
|
1273
|
+
Z({
|
|
1274
|
+
type: "warning",
|
|
1275
|
+
title: i("cms.common.actions.warning"),
|
|
1276
|
+
message: i("cms.builder.editFieldFailed")
|
|
1277
|
+
});
|
|
1278
|
+
return;
|
|
1279
|
+
}
|
|
1280
|
+
try {
|
|
1281
|
+
Object.keys(h.value).length !== 0 && (t.value = [
|
|
1282
|
+
...t.value || [],
|
|
1283
|
+
{
|
|
1284
|
+
...h.value,
|
|
1285
|
+
id: Math.random().toString(36).substring(2, 15),
|
|
1286
|
+
reference_type: c.value
|
|
1287
|
+
}
|
|
1288
|
+
]), v.value = !1, c.value = null, h.value = {};
|
|
1289
|
+
} catch (o) {
|
|
1290
|
+
console.log(o);
|
|
1291
|
+
}
|
|
1292
|
+
};
|
|
1293
|
+
return E(v, () => {
|
|
1294
|
+
v.value || (c.value = null, h.value = {});
|
|
1295
|
+
}), (u, o) => (r(), s("div", null, [
|
|
1296
|
+
d("button", {
|
|
1297
|
+
type: "button",
|
|
1298
|
+
class: "inline-flex items-center px-4 py-2 border border-gray-300 dark:border-gray-600 rounded-md shadow-sm text-sm font-medium text-gray-700 dark:text-gray-200 bg-white dark:bg-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-sky-500",
|
|
1299
|
+
onClick: o[0] || (o[0] = (y) => v.value = !v.value)
|
|
1300
|
+
}, a(u.$t("cms.builder.create")), 1),
|
|
1301
|
+
w(b(W), {
|
|
1302
|
+
visible: v.value,
|
|
1303
|
+
"onUpdate:visible": o[6] || (o[6] = (y) => v.value = y),
|
|
1304
|
+
position: "right",
|
|
1305
|
+
closeClickBackdrop: !1,
|
|
1306
|
+
onClose: o[7] || (o[7] = (y) => v.value = !1),
|
|
1307
|
+
title: c.value ? u.$t("cms.builder." + c.value) : u.$t("cms.builder.selectType"),
|
|
1308
|
+
size: "50vw"
|
|
1309
|
+
}, {
|
|
1310
|
+
footer: C(() => [
|
|
1311
|
+
d("div", yt, [
|
|
1312
|
+
d("button", {
|
|
1313
|
+
onClick: o[5] || (o[5] = (y) => v.value = !1),
|
|
1314
|
+
class: "inline-flex items-center px-3 py-2 text-sm text-black duration-300 border border-gray-200 rounded-lg gap-x-2 whitespace-nowrap hover:bg-gray-100"
|
|
1315
|
+
}, a(u.$t("cms.builder.cancel")), 1),
|
|
1316
|
+
d("button", {
|
|
1317
|
+
onClick: f,
|
|
1318
|
+
class: "py-2 px-3 inline-flex items-center gap-x-2 text-sm whitespace-nowrap text-white bg-blue-500 rounded-lg !border-gray-200 hover:bg-blue-700 duration-300"
|
|
1319
|
+
}, a(u.$t("cms.builder.create")), 1)
|
|
1320
|
+
])
|
|
1321
|
+
]),
|
|
1322
|
+
default: C(() => {
|
|
1323
|
+
var y;
|
|
1324
|
+
return [
|
|
1325
|
+
c.value ? (r(), s(I, { key: 1 }, [
|
|
1326
|
+
d("div", vt, [
|
|
1327
|
+
d("div", gt, [
|
|
1328
|
+
d("span", null, a((y = b(_).find((x) => x.id === c.value)) == null ? void 0 : y.text), 1)
|
|
1329
|
+
]),
|
|
1330
|
+
d("button", {
|
|
1331
|
+
class: "py-2.5 px-3 mb-4 inline-flex items-center gap-x-2 text-sm whitespace-nowrap text-white bg-blue-500 rounded-lg !border-gray-200 hover:bg-blue-700 duration-300",
|
|
1332
|
+
onClick: o[2] || (o[2] = (x) => c.value = null)
|
|
1333
|
+
}, a(u.$t("cms.builder.changeType")), 1)
|
|
1334
|
+
]),
|
|
1335
|
+
n.value ? (r(), k(b(G), {
|
|
1336
|
+
key: c.value,
|
|
1337
|
+
schema: n.value,
|
|
1338
|
+
modelValue: h.value,
|
|
1339
|
+
"onUpdate:modelValue": o[3] || (o[3] = (x) => h.value = x),
|
|
1340
|
+
form: l.value,
|
|
1341
|
+
"onUpdate:form": o[4] || (o[4] = (x) => l.value = x)
|
|
1342
|
+
}, null, 8, ["schema", "modelValue", "form"])) : g("", !0)
|
|
1343
|
+
], 64)) : (r(), k(ut, {
|
|
1344
|
+
key: 0,
|
|
1345
|
+
modelValue: c.value,
|
|
1346
|
+
"onUpdate:modelValue": o[1] || (o[1] = (x) => c.value = x),
|
|
1347
|
+
options: b(_)
|
|
1348
|
+
}, null, 8, ["modelValue", "options"]))
|
|
1349
|
+
];
|
|
1350
|
+
}),
|
|
1351
|
+
_: 1
|
|
1352
|
+
}, 8, ["visible", "title"])
|
|
1353
|
+
]));
|
|
1354
|
+
}
|
|
1355
|
+
}, ht = { class: "absolute top-2 right-2 opacity-0 group-hover:opacity-100 transition-opacity flex space-x-1 z-10" }, pt = { class: "flex items-center justify-between w-full p-4 border-t border-gray-200 dark:border-gray-700" }, xt = {
|
|
1356
|
+
__name: "vs-form-reference-controls",
|
|
1357
|
+
props: /* @__PURE__ */ M({
|
|
1358
|
+
title: {
|
|
1359
|
+
type: String,
|
|
1360
|
+
required: !0
|
|
1361
|
+
}
|
|
1362
|
+
}, {
|
|
1363
|
+
modelValue: {
|
|
1364
|
+
type: Object,
|
|
1365
|
+
default: () => ({})
|
|
1366
|
+
},
|
|
1367
|
+
modelModifiers: {},
|
|
1368
|
+
parent: {
|
|
1369
|
+
type: Array,
|
|
1370
|
+
default: () => []
|
|
1371
|
+
},
|
|
1372
|
+
parentModifiers: {}
|
|
1373
|
+
}),
|
|
1374
|
+
emits: ["update:modelValue", "update:parent"],
|
|
1375
|
+
setup(e) {
|
|
1376
|
+
const { t: i } = F(), t = A(e, "modelValue"), v = A(e, "parent"), l = m(!1), c = m({}), h = m({}), n = j(() => {
|
|
1377
|
+
var u;
|
|
1378
|
+
return ((u = N[t.value.reference_type]) == null ? void 0 : u.schema) || null;
|
|
1379
|
+
});
|
|
1380
|
+
E(l, (u) => {
|
|
1381
|
+
u && (c.value = { ...t.value });
|
|
1382
|
+
});
|
|
1383
|
+
const f = async () => {
|
|
1384
|
+
try {
|
|
1385
|
+
if (await h.value.validate()) {
|
|
1386
|
+
Z({
|
|
1387
|
+
type: "warning",
|
|
1388
|
+
title: i("cms.common.actions.warning"),
|
|
1389
|
+
message: i("cms.builder.editFieldFailed")
|
|
1390
|
+
});
|
|
1391
|
+
return;
|
|
1392
|
+
}
|
|
1393
|
+
t.value = { ...c.value }, l.value = !1;
|
|
1394
|
+
} catch (u) {
|
|
1395
|
+
console.log(u);
|
|
1396
|
+
}
|
|
1397
|
+
};
|
|
1398
|
+
return (u, o) => (r(), s("div", ht, [
|
|
1399
|
+
d("button", {
|
|
1400
|
+
onClick: o[0] || (o[0] = (y) => l.value = !l.value),
|
|
1401
|
+
class: "p-1.5 bg-white dark:bg-gray-800 rounded shadow-sm hover:bg-gray-50 dark:hover:bg-gray-700 transition-colors border border-gray-200 dark:border-gray-700"
|
|
1402
|
+
}, [
|
|
1403
|
+
w(b(Y), { class: "h-4 w-4 text-gray-400" })
|
|
1404
|
+
]),
|
|
1405
|
+
d("button", {
|
|
1406
|
+
onClick: o[1] || (o[1] = (y) => v.value = v.value.filter((x) => x.id !== t.value.id)),
|
|
1407
|
+
class: "p-1.5 bg-white dark:bg-gray-800 rounded shadow-sm hover:bg-red-50 dark:hover:bg-red-900/20 transition-colors border border-gray-200 dark:border-gray-700"
|
|
1408
|
+
}, [
|
|
1409
|
+
w(b(U), { class: "h-4 w-4 text-red-500" })
|
|
1410
|
+
]),
|
|
1411
|
+
w(b(W), {
|
|
1412
|
+
visible: l.value,
|
|
1413
|
+
"onUpdate:visible": o[5] || (o[5] = (y) => l.value = y),
|
|
1414
|
+
onClose: o[6] || (o[6] = (y) => l.value = !1),
|
|
1415
|
+
title: e.title,
|
|
1416
|
+
width: "50vw"
|
|
1417
|
+
}, {
|
|
1418
|
+
footer: C(() => [
|
|
1419
|
+
d("div", pt, [
|
|
1420
|
+
d("button", {
|
|
1421
|
+
class: "inline-flex items-center px-3 py-2 text-sm text-black duration-300 border border-gray-200 rounded-lg gap-x-2 whitespace-nowrap hover:bg-gray-100",
|
|
1422
|
+
onClick: o[4] || (o[4] = (y) => l.value = !1)
|
|
1423
|
+
}, a(u.$t("cms.common.actions.cancel")), 1),
|
|
1424
|
+
d("button", {
|
|
1425
|
+
onClick: f,
|
|
1426
|
+
class: "py-2 px-3 inline-flex items-center gap-x-2 text-sm whitespace-nowrap text-white bg-blue-500 rounded-lg !border-gray-200 hover:bg-blue-700 duration-300"
|
|
1427
|
+
}, a(u.$t("cms.common.actions.save")), 1)
|
|
1428
|
+
])
|
|
1429
|
+
]),
|
|
1430
|
+
default: C(() => [
|
|
1431
|
+
n.value ? (r(), k(b(G), {
|
|
1432
|
+
key: 0,
|
|
1433
|
+
form: h.value,
|
|
1434
|
+
"onUpdate:form": o[2] || (o[2] = (y) => h.value = y),
|
|
1435
|
+
schema: n.value,
|
|
1436
|
+
modelValue: c.value,
|
|
1437
|
+
"onUpdate:modelValue": o[3] || (o[3] = (y) => c.value = y),
|
|
1438
|
+
class: "-mr-[10px] ml-[10px] mt-[10px]"
|
|
1439
|
+
}, null, 8, ["form", "schema", "modelValue"])) : g("", !0)
|
|
1440
|
+
]),
|
|
1441
|
+
_: 1
|
|
1442
|
+
}, 8, ["visible", "title"])
|
|
1443
|
+
]));
|
|
1444
|
+
}
|
|
1445
|
+
}, ft = { class: "w-full" }, mt = {
|
|
1446
|
+
key: 0,
|
|
1447
|
+
class: "relative"
|
|
1448
|
+
}, wt = { class: "group wireframe-block h-[280px] !p-4 border-2 border-dashed bg-white relative overflow-hidden transition-all rounded-lg shadow-sm border-gray-00 hover:border-gray-400 cursor-grab" }, kt = ["src"], At = {
|
|
1449
|
+
__name: "vs-form-reference-list",
|
|
1450
|
+
props: /* @__PURE__ */ M({
|
|
1451
|
+
reference_type: {
|
|
1452
|
+
type: String,
|
|
1453
|
+
required: !0
|
|
1454
|
+
},
|
|
1455
|
+
title: {
|
|
1456
|
+
type: String,
|
|
1457
|
+
required: !0
|
|
1458
|
+
}
|
|
1459
|
+
}, {
|
|
1460
|
+
modelValue: {
|
|
1461
|
+
default: () => []
|
|
1462
|
+
},
|
|
1463
|
+
modelModifiers: {}
|
|
1464
|
+
}),
|
|
1465
|
+
emits: ["update:modelValue"],
|
|
1466
|
+
setup(e) {
|
|
1467
|
+
const i = (l) => {
|
|
1468
|
+
var c;
|
|
1469
|
+
return (c = _.find((h) => h.id === l)) == null ? void 0 : c.text;
|
|
1470
|
+
}, t = A(e, "modelValue"), v = j({
|
|
1471
|
+
get() {
|
|
1472
|
+
const l = t.value;
|
|
1473
|
+
return l == null ? [] : Array.isArray(l) ? l : [];
|
|
1474
|
+
},
|
|
1475
|
+
set(l) {
|
|
1476
|
+
t.value = Array.isArray(l) ? l : [];
|
|
1477
|
+
}
|
|
1478
|
+
});
|
|
1479
|
+
return E(t, (l) => {
|
|
1480
|
+
l != null && !Array.isArray(l) && (t.value = []);
|
|
1481
|
+
}, { immediate: !0 }), (l, c) => {
|
|
1482
|
+
var h;
|
|
1483
|
+
return r(), s("div", ft, [
|
|
1484
|
+
((h = v.value) == null ? void 0 : h.length) > 0 ? (r(), k(b(J), {
|
|
1485
|
+
key: 0,
|
|
1486
|
+
modelValue: v.value,
|
|
1487
|
+
"onUpdate:modelValue": c[1] || (c[1] = (n) => v.value = n),
|
|
1488
|
+
"item-key": "id",
|
|
1489
|
+
handle: ".drag-handle",
|
|
1490
|
+
class: "grid grid-cols-1 lg:grid-cols-2 xl:grid-cols-3 gap-4"
|
|
1491
|
+
}, {
|
|
1492
|
+
item: C(({ element: n, index: f }) => [
|
|
1493
|
+
n != null && n.reference_type ? (r(), s("div", mt, [
|
|
1494
|
+
d("div", wt, [
|
|
1495
|
+
(r(), s("div", {
|
|
1496
|
+
key: n.id,
|
|
1497
|
+
class: "absolute top-2 left-2 opacity-0 group-hover:opacity-100 border border-gray-200 dark:border-gray-700 transition-opacity cursor-move z-10 bg-white dark:bg-gray-800 rounded p-1 shadow-sm drag-handle"
|
|
1498
|
+
}, [
|
|
1499
|
+
w(b(D), { class: "h-4 w-4 text-gray-400" })
|
|
1500
|
+
])),
|
|
1501
|
+
w(xt, {
|
|
1502
|
+
title: l.$t("cms.builder." + (n == null ? void 0 : n.reference_type)),
|
|
1503
|
+
modelValue: v.value[f],
|
|
1504
|
+
"onUpdate:modelValue": (u) => v.value[f] = u,
|
|
1505
|
+
parent: v.value,
|
|
1506
|
+
"onUpdate:parent": c[0] || (c[0] = (u) => v.value = u)
|
|
1507
|
+
}, null, 8, ["title", "modelValue", "onUpdate:modelValue", "parent"]),
|
|
1508
|
+
b($)[n == null ? void 0 : n.reference_type] ? (r(), k(L(b($)[n == null ? void 0 : n.reference_type]), {
|
|
1509
|
+
key: 0,
|
|
1510
|
+
index: f,
|
|
1511
|
+
text: i(n == null ? void 0 : n.reference_type),
|
|
1512
|
+
count: Array.isArray(n == null ? void 0 : n.data) ? n.data.length : 0
|
|
1513
|
+
}, null, 8, ["index", "text", "count"])) : (r(), s("img", {
|
|
1514
|
+
key: 1,
|
|
1515
|
+
src: b(T),
|
|
1516
|
+
alt: "Team collaboration",
|
|
1517
|
+
class: "w-full h-full object-cover"
|
|
1518
|
+
}, null, 8, kt))
|
|
1519
|
+
])
|
|
1520
|
+
])) : g("", !0)
|
|
1521
|
+
]),
|
|
1522
|
+
_: 1
|
|
1523
|
+
}, 8, ["modelValue"])) : g("", !0),
|
|
1524
|
+
w(bt, {
|
|
1525
|
+
class: "mt-4",
|
|
1526
|
+
title: e.title,
|
|
1527
|
+
modelValue: v.value,
|
|
1528
|
+
"onUpdate:modelValue": c[2] || (c[2] = (n) => v.value = n)
|
|
1529
|
+
}, null, 8, ["title", "modelValue"])
|
|
1530
|
+
]);
|
|
1531
|
+
};
|
|
1532
|
+
}
|
|
1533
|
+
};
|
|
1534
|
+
export {
|
|
1535
|
+
At as default
|
|
1536
|
+
};
|