@oneb/ui-vue 0.3.26 → 0.3.28
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/dist/entityPicker/EntityPickerCreateButton.vue.d.ts +2 -0
- package/dist/entityPicker/EntityPickerIndicator.vue.d.ts +2 -0
- package/dist/entityPicker/EntityPickerList.vue.d.ts +2 -0
- package/dist/entityPicker/EntityPickerListItem.vue.d.ts +2 -0
- package/dist/entityPicker/EntityPickerModal.vue.d.ts +2 -0
- package/dist/entityPicker/EntityPickerSearch.vue.d.ts +2 -0
- package/dist/entityPicker/EntityPickerTrigger.vue.d.ts +2 -0
- package/dist/entityPicker/entityPicker.d.ts +80 -1
- package/dist/entityPicker/index.cjs +1 -1
- package/dist/entityPicker/index.js +942 -392
- package/dist/entityPicker/useEntityList.d.ts +46 -0
- package/dist/entityPicker/useEntityModal.d.ts +48 -0
- package/dist/entityPicker/useEntityResolvers.d.ts +37 -0
- package/dist/form/form.d.ts +1 -1
- package/dist/layout/index.cjs +1 -1
- package/dist/layout/index.js +554 -534
- package/dist/layout/layout.d.ts +2 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/layout/index.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { openBlock as s, createElementBlock as
|
|
1
|
+
import { openBlock as s, createElementBlock as l, createElementVNode as t, defineComponent as Be, computed as j, ref as B, resolveComponent as Qe, resolveDirective as p1, Fragment as R, toDisplayString as i, createCommentVNode as a, createBlock as f, withCtx as Z, resolveDynamicComponent as L, mergeProps as u1, renderList as D, withDirectives as ce, normalizeClass as b, unref as S, withModifiers as he, watch as fe, onMounted as Le, onBeforeUnmount as c1, watchEffect as Xe, shallowRef as h1, normalizeStyle as m1, vShow as _e, createVNode as _, createTextVNode as ge, onUnmounted as ze, renderSlot as me } from "vue";
|
|
2
2
|
import { _ as Ye, g as f1, c as e1, O as s1, b as t1 } from "../OneHelpMenu-df4e18a9.js";
|
|
3
|
-
import { r as
|
|
4
|
-
import { r as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { OneButton as
|
|
3
|
+
import { r as je, a as v1 } from "../ChevronRightIcon-4549a26b.js";
|
|
4
|
+
import { r as xe } from "../ChevronDownIcon-6805ce6c.js";
|
|
5
|
+
import { _ as Me } from "../_plugin-vue_export-helper-dad06003.js";
|
|
6
|
+
import { OneButton as Te } from "../button/index.js";
|
|
7
7
|
import { r as l1 } from "../XMarkIcon-51ef0691.js";
|
|
8
8
|
import { S as o1 } from "../SpinnerIcon-74648c98.js";
|
|
9
9
|
import { OneMarkdown as n1 } from "../common/index.js";
|
|
10
10
|
import "../OneMarkdown.vue_vue_type_style_index_0_lang-4ed993c7.js";
|
|
11
|
-
import { _ as
|
|
11
|
+
import { _ as $e } from "../OneAvatar.vue_vue_type_script_setup_true_lang-08ab80dd.js";
|
|
12
12
|
import "@floating-ui/dom";
|
|
13
13
|
import "@floating-ui/vue";
|
|
14
14
|
import "../SpinnerIcon.vue_vue_type_style_index_0_lang-4ed993c7.js";
|
|
15
15
|
import "vue-markdown-render";
|
|
16
|
-
function a1(
|
|
17
|
-
return s(),
|
|
16
|
+
function a1(x, k) {
|
|
17
|
+
return s(), l("svg", {
|
|
18
18
|
xmlns: "http://www.w3.org/2000/svg",
|
|
19
19
|
fill: "none",
|
|
20
20
|
viewBox: "0 0 24 24",
|
|
@@ -29,8 +29,8 @@ function a1(C, g) {
|
|
|
29
29
|
})
|
|
30
30
|
]);
|
|
31
31
|
}
|
|
32
|
-
function w1(
|
|
33
|
-
return s(),
|
|
32
|
+
function w1(x, k) {
|
|
33
|
+
return s(), l("svg", {
|
|
34
34
|
xmlns: "http://www.w3.org/2000/svg",
|
|
35
35
|
fill: "none",
|
|
36
36
|
viewBox: "0 0 24 24",
|
|
@@ -203,7 +203,7 @@ const r1 = {
|
|
|
203
203
|
}, g1 = { class: "flex flex-nowrap items-center h-[24px]" }, x1 = {
|
|
204
204
|
key: 0,
|
|
205
205
|
class: "flex-shrink-0 w-auto"
|
|
206
|
-
}, k1 = { class: "min-w-[220px] py-1" }, $1 = { class: "text-xs font-semibold text-black px-3 pt-1 pb-2" },
|
|
206
|
+
}, k1 = { class: "min-w-[220px] py-1" }, $1 = { class: "text-xs font-semibold text-black px-3 pt-1 pb-2" }, L1 = ["href"], _1 = { class: "text-xs" }, S1 = { class: "text-xs" }, B1 = ["href"], M1 = { class: "flex flex-nowrap items-center h-[24px]" }, O1 = {
|
|
207
207
|
key: 1,
|
|
208
208
|
class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"
|
|
209
209
|
}, j1 = { class: "py-[8px] pl-0 pr-0" }, z1 = {
|
|
@@ -215,10 +215,10 @@ const r1 = {
|
|
|
215
215
|
}, H1 = { class: "py-[8px] pl-0 pr-0" }, A1 = {
|
|
216
216
|
key: 2,
|
|
217
217
|
class: "p-3"
|
|
218
|
-
}, E1 = { class: "flex flex-nowrap items-center h-[24px]" },
|
|
218
|
+
}, E1 = { class: "flex flex-nowrap items-center h-[24px]" }, F1 = {
|
|
219
219
|
key: 1,
|
|
220
220
|
class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"
|
|
221
|
-
},
|
|
221
|
+
}, P1 = { class: "py-[8px] pl-0 pr-0" }, W1 = {
|
|
222
222
|
key: 2,
|
|
223
223
|
class: "p-3"
|
|
224
224
|
}, N1 = {
|
|
@@ -230,29 +230,29 @@ const r1 = {
|
|
|
230
230
|
}, U1 = { class: "text-xs" }, Z1 = {
|
|
231
231
|
key: 0,
|
|
232
232
|
class: "pr-3"
|
|
233
|
-
}, D1 = /* @__PURE__ */
|
|
233
|
+
}, D1 = /* @__PURE__ */ Be({
|
|
234
234
|
__name: "OneSidebarLink",
|
|
235
235
|
props: y1,
|
|
236
236
|
emits: ["update-collapsed"],
|
|
237
|
-
setup(
|
|
238
|
-
const r =
|
|
237
|
+
setup(x, { emit: k }) {
|
|
238
|
+
const r = x, p = k, M = (e) => e.route ? e.route : e.routeName ? { name: e.routeName } : null, $ = j(() => M(r)), c = j(() => Array.isArray(r.subItems) && r.subItems.length > 0), W = j(() => c.value && r.subItems.some((e) => e.href)), z = j(() => r.href ? "a" : $.value ? "router-link" : "span"), T = j(() => r.href ? { href: r.href, title: c.value ? null : r.label } : $.value ? { to: $.value, title: c.value ? null : r.label } : { title: c.value ? null : r.label }), J = j(() => [
|
|
239
239
|
"flex items-center justify-center text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66] mb-0.5 rounded-10 w-[44px] h-[44px] cursor-pointer",
|
|
240
240
|
r.active ? "bg-primary-10 !text-primary-base" : ""
|
|
241
|
-
]), V =
|
|
242
|
-
var
|
|
243
|
-
return (
|
|
244
|
-
},
|
|
241
|
+
]), V = B(r.open), q = (e, h = r) => {
|
|
242
|
+
var A;
|
|
243
|
+
return (h == null ? void 0 : h.menuGroup) && (e == null ? void 0 : e.meta) && ((A = e.meta) == null ? void 0 : A.menuGroup) && e.meta.menuGroup && e.meta.menuGroup === h.menuGroup;
|
|
244
|
+
}, v = () => {
|
|
245
245
|
V.value = !V.value;
|
|
246
|
-
}, H = (e,
|
|
247
|
-
var
|
|
248
|
-
|
|
246
|
+
}, H = (e, h) => {
|
|
247
|
+
var A;
|
|
248
|
+
c.value && !h && !(r.slim && r.island) && ((A = e == null ? void 0 : e.preventDefault) == null || A.call(e), v()), (h || !c.value) && r.isMobile && p("update-collapsed");
|
|
249
249
|
};
|
|
250
|
-
return (e,
|
|
251
|
-
var
|
|
252
|
-
const
|
|
253
|
-
return s(),
|
|
254
|
-
e.labelTop && e.slim ? (s(),
|
|
255
|
-
e.slim && e.island &&
|
|
250
|
+
return (e, h) => {
|
|
251
|
+
var d, C;
|
|
252
|
+
const A = Qe("RouterLink"), o = p1("onetooltip");
|
|
253
|
+
return s(), l(R, null, [
|
|
254
|
+
e.labelTop && e.slim ? (s(), l("div", b1)) : e.labelTop ? (s(), l("p", C1, i(e.labelTop), 1)) : a("", !0),
|
|
255
|
+
e.slim && e.island && c.value ? (s(), f(Ye, {
|
|
256
256
|
key: 2,
|
|
257
257
|
trigger: "hover",
|
|
258
258
|
"append-body": !0,
|
|
@@ -260,14 +260,14 @@ const r1 = {
|
|
|
260
260
|
offset: 12
|
|
261
261
|
}, {
|
|
262
262
|
button: Z(() => [
|
|
263
|
-
(s(),
|
|
263
|
+
(s(), f(L(z.value), u1(T.value, {
|
|
264
264
|
class: J.value,
|
|
265
265
|
onClick: H
|
|
266
266
|
}), {
|
|
267
267
|
default: Z(() => [
|
|
268
268
|
t("div", g1, [
|
|
269
|
-
e.icon ? (s(),
|
|
270
|
-
(s(),
|
|
269
|
+
e.icon ? (s(), l("div", x1, [
|
|
270
|
+
(s(), f(L(e.icon), { class: "mx-auto w-5 h-5" }))
|
|
271
271
|
])) : a("", !0)
|
|
272
272
|
])
|
|
273
273
|
]),
|
|
@@ -277,30 +277,30 @@ const r1 = {
|
|
|
277
277
|
menu: Z(() => [
|
|
278
278
|
t("div", k1, [
|
|
279
279
|
t("p", $1, i(e.label), 1),
|
|
280
|
-
|
|
281
|
-
key:
|
|
282
|
-
href:
|
|
280
|
+
W.value ? (s(!0), l(R, { key: 0 }, D(r.subItems, (u) => (s(), l("a", {
|
|
281
|
+
key: u.label,
|
|
282
|
+
href: u.href,
|
|
283
283
|
class: "flex items-center gap-2 rounded-10 mx-1 px-3 py-2 text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66]"
|
|
284
284
|
}, [
|
|
285
|
-
|
|
285
|
+
u.icon ? (s(), f(L(u.icon), {
|
|
286
286
|
key: 0,
|
|
287
287
|
class: "w-[15px] h-[15px] shrink-0"
|
|
288
288
|
})) : a("", !0),
|
|
289
|
-
t("span",
|
|
290
|
-
], 8,
|
|
291
|
-
var
|
|
292
|
-
return s(),
|
|
293
|
-
key:
|
|
294
|
-
to:
|
|
289
|
+
t("span", _1, i(u.label), 1)
|
|
290
|
+
], 8, L1))), 128)) : (s(!0), l(R, { key: 1 }, D(r.subItems, (u) => {
|
|
291
|
+
var E, F;
|
|
292
|
+
return s(), f(A, {
|
|
293
|
+
key: u.label,
|
|
294
|
+
to: M(u),
|
|
295
295
|
class: "flex items-center gap-2 rounded-10 mx-1 px-3 py-2 text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66]",
|
|
296
|
-
"active-class": (
|
|
296
|
+
"active-class": (E = e.$route) != null && E.meta && ((F = e.$route.meta) != null && F.menuGroup) && e.$route.meta.menuGroup ? "" : "bg-primary-10 !text-primary-base"
|
|
297
297
|
}, {
|
|
298
298
|
default: Z(() => [
|
|
299
|
-
|
|
299
|
+
u.icon ? (s(), f(L(u.icon), {
|
|
300
300
|
key: 0,
|
|
301
301
|
class: "w-[15px] h-[15px] shrink-0"
|
|
302
302
|
})) : a("", !0),
|
|
303
|
-
t("span", S1, i(
|
|
303
|
+
t("span", S1, i(u.label), 1)
|
|
304
304
|
]),
|
|
305
305
|
_: 2
|
|
306
306
|
}, 1032, ["to", "active-class"]);
|
|
@@ -308,11 +308,11 @@ const r1 = {
|
|
|
308
308
|
])
|
|
309
309
|
]),
|
|
310
310
|
_: 1
|
|
311
|
-
})) : (s(),
|
|
312
|
-
e.href ?
|
|
311
|
+
})) : (s(), l(R, { key: 3 }, [
|
|
312
|
+
e.href ? ce((s(), l("a", {
|
|
313
313
|
key: 0,
|
|
314
314
|
href: e.href,
|
|
315
|
-
class:
|
|
315
|
+
class: b(["flex items-center relative text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66] mb-0.5", [
|
|
316
316
|
e.island ? "rounded-10" : "rounded-xl",
|
|
317
317
|
e.slim ? "w-[44px] h-[44px] justify-center" : "h-[44px] w-full",
|
|
318
318
|
e.active ? "bg-primary-10 !text-primary-base" : ""
|
|
@@ -320,118 +320,118 @@ const r1 = {
|
|
|
320
320
|
onClick: H
|
|
321
321
|
}, [
|
|
322
322
|
t("div", M1, [
|
|
323
|
-
e.icon ? (s(),
|
|
323
|
+
e.icon ? (s(), l("div", {
|
|
324
324
|
key: 0,
|
|
325
|
-
class:
|
|
325
|
+
class: b(["flex-shrink-0", e.slim ? "w-auto" : "w-[44px]"])
|
|
326
326
|
}, [
|
|
327
|
-
(s(),
|
|
328
|
-
class:
|
|
327
|
+
(s(), f(L(e.icon), {
|
|
328
|
+
class: b(["mx-auto", e.slim ? "w-5 h-5" : "w-[24px] h-[24px]"])
|
|
329
329
|
}, null, 8, ["class"]))
|
|
330
330
|
], 2)) : a("", !0),
|
|
331
|
-
e.slim ? a("", !0) : (s(),
|
|
331
|
+
e.slim ? a("", !0) : (s(), l("div", O1, [
|
|
332
332
|
t("span", j1, i(e.label), 1)
|
|
333
333
|
])),
|
|
334
|
-
|
|
335
|
-
(s(),
|
|
334
|
+
c.value && !e.slim ? (s(), l("div", z1, [
|
|
335
|
+
(s(), f(L(V.value ? S(je) : S(xe)), { class: "w-[16px] h-[16px]" }))
|
|
336
336
|
])) : a("", !0)
|
|
337
337
|
])
|
|
338
338
|
], 10, B1)), [
|
|
339
|
-
[
|
|
339
|
+
[o, e.slim && !c.value ? e.label : "", "right"]
|
|
340
340
|
]) : a("", !0),
|
|
341
|
-
!e.href &&
|
|
341
|
+
!e.href && $.value ? ce((s(), f(A, {
|
|
342
342
|
key: 1,
|
|
343
|
-
to:
|
|
343
|
+
to: $.value,
|
|
344
344
|
exact: e.exact,
|
|
345
|
-
class:
|
|
345
|
+
class: b(["relative flex items-center cursor-pointer text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66] mb-0.5", {
|
|
346
346
|
"rounded-10": e.island,
|
|
347
347
|
"rounded-xl": !e.island,
|
|
348
348
|
"w-[44px] h-[44px] justify-center": e.slim,
|
|
349
349
|
"h-[44px] w-full": !e.slim,
|
|
350
|
-
"bg-primary-10 !text-primary-base": e.active ||
|
|
350
|
+
"bg-primary-10 !text-primary-base": e.active || q(e.$route)
|
|
351
351
|
}]),
|
|
352
|
-
"active-class": (
|
|
353
|
-
onClick:
|
|
352
|
+
"active-class": (d = e.$route) != null && d.meta && ((C = e.$route.meta) != null && C.menuGroup) && e.$route.meta.menuGroup ? "" : "bg-primary-10 !text-primary-base",
|
|
353
|
+
onClick: he(H, ["prevent"])
|
|
354
354
|
}, {
|
|
355
355
|
default: Z(() => [
|
|
356
356
|
t("div", T1, [
|
|
357
|
-
e.icon ? (s(),
|
|
357
|
+
e.icon ? (s(), l("div", {
|
|
358
358
|
key: 0,
|
|
359
|
-
class:
|
|
359
|
+
class: b(["flex-shrink-0", e.slim ? "w-auto" : "w-[44px]"])
|
|
360
360
|
}, [
|
|
361
|
-
(s(),
|
|
362
|
-
class:
|
|
361
|
+
(s(), f(L(e.icon), {
|
|
362
|
+
class: b(["mx-auto", e.slim ? "w-5 h-5" : "w-[24px] h-[24px]"])
|
|
363
363
|
}, null, 8, ["class"]))
|
|
364
364
|
], 2)) : a("", !0),
|
|
365
|
-
e.slim ? a("", !0) : (s(),
|
|
365
|
+
e.slim ? a("", !0) : (s(), l("div", V1, [
|
|
366
366
|
t("span", H1, i(e.label), 1)
|
|
367
367
|
])),
|
|
368
|
-
|
|
369
|
-
(s(),
|
|
368
|
+
c.value && !e.slim ? (s(), l("div", A1, [
|
|
369
|
+
(s(), f(L(V.value ? S(je) : S(xe)), { class: "w-[16px] h-[16px]" }))
|
|
370
370
|
])) : a("", !0)
|
|
371
371
|
])
|
|
372
372
|
]),
|
|
373
373
|
_: 1
|
|
374
374
|
}, 8, ["to", "exact", "active-class", "class"])), [
|
|
375
|
-
[
|
|
375
|
+
[o, e.slim && !c.value ? e.label : "", "right"]
|
|
376
376
|
]) : a("", !0),
|
|
377
|
-
!e.href &&
|
|
377
|
+
!e.href && !$.value ? ce((s(), l("span", {
|
|
378
378
|
key: 2,
|
|
379
|
-
onClick:
|
|
380
|
-
class:
|
|
379
|
+
onClick: he(H, ["prevent"]),
|
|
380
|
+
class: b(["mb-0.5 relative flex items-center cursor-pointer text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66]", [
|
|
381
381
|
e.island ? "rounded-10" : "rounded-xl",
|
|
382
382
|
e.slim ? "w-[44px] h-[44px] justify-center" : "h-[44px] w-full",
|
|
383
383
|
e.active ? "bg-primary-10 !text-primary-base" : ""
|
|
384
384
|
]])
|
|
385
385
|
}, [
|
|
386
386
|
t("div", E1, [
|
|
387
|
-
e.icon ? (s(),
|
|
387
|
+
e.icon ? (s(), l("div", {
|
|
388
388
|
key: 0,
|
|
389
|
-
class:
|
|
389
|
+
class: b(["flex-shrink-0", e.slim ? "w-auto" : "w-[44px]"])
|
|
390
390
|
}, [
|
|
391
|
-
(s(),
|
|
392
|
-
class:
|
|
391
|
+
(s(), f(L(e.icon), {
|
|
392
|
+
class: b(["mx-auto", e.slim ? "w-5 h-5" : "w-[24px] h-[24px]"])
|
|
393
393
|
}, null, 8, ["class"]))
|
|
394
394
|
], 2)) : a("", !0),
|
|
395
|
-
e.slim ? a("", !0) : (s(),
|
|
396
|
-
t("span",
|
|
395
|
+
e.slim ? a("", !0) : (s(), l("div", F1, [
|
|
396
|
+
t("span", P1, i(e.label), 1)
|
|
397
397
|
])),
|
|
398
|
-
|
|
399
|
-
(s(),
|
|
398
|
+
c.value && !e.slim ? (s(), l("div", W1, [
|
|
399
|
+
(s(), f(L(V.value ? S(je) : S(xe)), { class: "w-[16px] h-[16px]" }))
|
|
400
400
|
])) : a("", !0)
|
|
401
401
|
])
|
|
402
402
|
], 2)), [
|
|
403
|
-
[
|
|
403
|
+
[o, e.slim && !c.value ? e.label : "", "right"]
|
|
404
404
|
]) : a("", !0),
|
|
405
|
-
V.value &&
|
|
406
|
-
(s(!0),
|
|
407
|
-
var
|
|
408
|
-
return s(),
|
|
409
|
-
key:
|
|
405
|
+
V.value && c.value && !e.slim ? (s(), l("div", N1, [
|
|
406
|
+
(s(!0), l(R, null, D(r.subItems, (u) => {
|
|
407
|
+
var E, F;
|
|
408
|
+
return s(), l("div", {
|
|
409
|
+
key: u.label
|
|
410
410
|
}, [
|
|
411
|
-
|
|
411
|
+
u.href ? (s(), l("a", {
|
|
412
412
|
key: 0,
|
|
413
|
-
href:
|
|
413
|
+
href: u.href,
|
|
414
414
|
class: "flex items-center rounded-xl p-2 text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66]"
|
|
415
415
|
}, [
|
|
416
416
|
t("div", I1, [
|
|
417
|
-
t("span", R1, i(
|
|
418
|
-
|
|
419
|
-
(s(),
|
|
417
|
+
t("span", R1, i(u.label), 1),
|
|
418
|
+
u.icon ? (s(), l("div", q1, [
|
|
419
|
+
(s(), f(L(u.icon), { class: "w-[15px] h-[15px] mx-auto" }))
|
|
420
420
|
])) : a("", !0)
|
|
421
421
|
])
|
|
422
|
-
], 8, G1)) :
|
|
422
|
+
], 8, G1)) : M(u) ? (s(), f(A, {
|
|
423
423
|
key: 1,
|
|
424
|
-
to:
|
|
425
|
-
onClick:
|
|
426
|
-
class:
|
|
427
|
-
"bg-primary-10 !text-primary-base":
|
|
424
|
+
to: M(u),
|
|
425
|
+
onClick: h[0] || (h[0] = he((U) => H(U, !0), ["prevent"])),
|
|
426
|
+
class: b(["flex items-center rounded-xl p-2 text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66] h-[44px] w-full", {
|
|
427
|
+
"bg-primary-10 !text-primary-base": q(e.$route, u)
|
|
428
428
|
}]),
|
|
429
|
-
"active-class": (
|
|
429
|
+
"active-class": (E = e.$route) != null && E.meta && ((F = e.$route.meta) != null && F.menuGroup) && e.$route.meta.menuGroup ? "" : "bg-primary-10 !text-primary-base"
|
|
430
430
|
}, {
|
|
431
431
|
default: Z(() => [
|
|
432
|
-
t("span", U1, i(
|
|
433
|
-
|
|
434
|
-
(s(),
|
|
432
|
+
t("span", U1, i(u.label), 1),
|
|
433
|
+
u.icon ? (s(), l("div", Z1, [
|
|
434
|
+
(s(), f(L(u.icon), { class: "w-[20px] h-[20px] mx-auto" }))
|
|
435
435
|
])) : a("", !0)
|
|
436
436
|
]),
|
|
437
437
|
_: 2
|
|
@@ -450,8 +450,8 @@ const r1 = {
|
|
|
450
450
|
viewBox: "0 0 24 24",
|
|
451
451
|
fill: "none"
|
|
452
452
|
};
|
|
453
|
-
function Q1(
|
|
454
|
-
return s(),
|
|
453
|
+
function Q1(x, k) {
|
|
454
|
+
return s(), l("svg", K1, [...k[0] || (k[0] = [
|
|
455
455
|
t("path", {
|
|
456
456
|
d: "M9.27987 15.963H7.76282V9.97577C7.76282 9.67316 7.575 9.40658 7.29326 9.29851L6.7948 9.11839V8.57802V8.03766H8.10957C8.60081 8.03766 8.91867 8.12412 9.05592 8.30424C9.20763 8.48436 9.27987 8.8374 9.27987 9.36335V15.963Z",
|
|
457
457
|
fill: "currentColor"
|
|
@@ -468,9 +468,9 @@ function Q1(C, g) {
|
|
|
468
468
|
}, null, -1)
|
|
469
469
|
])]);
|
|
470
470
|
}
|
|
471
|
-
const
|
|
472
|
-
function X1(
|
|
473
|
-
return s(),
|
|
471
|
+
const Se = /* @__PURE__ */ Me(J1, [["render", Q1]]);
|
|
472
|
+
function X1(x, k) {
|
|
473
|
+
return s(), l("svg", {
|
|
474
474
|
xmlns: "http://www.w3.org/2000/svg",
|
|
475
475
|
fill: "none",
|
|
476
476
|
viewBox: "0 0 24 24",
|
|
@@ -490,40 +490,40 @@ function X1(C, g) {
|
|
|
490
490
|
})
|
|
491
491
|
]);
|
|
492
492
|
}
|
|
493
|
-
const Ke = (
|
|
494
|
-
if (Array.isArray(
|
|
495
|
-
return
|
|
496
|
-
const
|
|
497
|
-
return Array.isArray(
|
|
498
|
-
}, Y1 = (
|
|
493
|
+
const Ke = (x) => {
|
|
494
|
+
if (Array.isArray(x))
|
|
495
|
+
return x.map(S);
|
|
496
|
+
const k = S(x);
|
|
497
|
+
return Array.isArray(k) ? k : [k];
|
|
498
|
+
}, Y1 = (x, k) => {
|
|
499
499
|
let r;
|
|
500
|
-
const
|
|
501
|
-
|
|
502
|
-
const
|
|
503
|
-
if (
|
|
504
|
-
if (!(
|
|
500
|
+
const p = (M) => {
|
|
501
|
+
M.forEach(($) => {
|
|
502
|
+
const c = S($);
|
|
503
|
+
if (c) {
|
|
504
|
+
if (!(c instanceof Element))
|
|
505
505
|
throw console.error("Vuestic: Trying to observe non-HTMLElement", {
|
|
506
|
-
target:
|
|
507
|
-
array:
|
|
506
|
+
target: c,
|
|
507
|
+
array: x
|
|
508
508
|
}), new Error("Vuestic: Unable to observe non-HTMLElement");
|
|
509
|
-
|
|
509
|
+
c && (r == null || r.observe(c));
|
|
510
510
|
}
|
|
511
511
|
});
|
|
512
512
|
};
|
|
513
|
-
return
|
|
514
|
-
r == null || r.disconnect(),
|
|
515
|
-
}),
|
|
516
|
-
r = new ResizeObserver(
|
|
513
|
+
return fe(x, (M) => {
|
|
514
|
+
r == null || r.disconnect(), p(Ke(M));
|
|
515
|
+
}), Le(() => {
|
|
516
|
+
r = new ResizeObserver(k), p(Ke(x));
|
|
517
517
|
}), c1(() => r == null ? void 0 : r.disconnect()), r;
|
|
518
|
-
}, es = (
|
|
519
|
-
const
|
|
520
|
-
return Y1([
|
|
518
|
+
}, es = (x) => {
|
|
519
|
+
const k = B(null);
|
|
520
|
+
return Y1([x], () => {
|
|
521
521
|
var r;
|
|
522
|
-
|
|
522
|
+
k.value = ((r = x.value) == null ? void 0 : r.clientWidth) ?? null;
|
|
523
523
|
}), Xe(() => {
|
|
524
524
|
var r;
|
|
525
|
-
|
|
526
|
-
}),
|
|
525
|
+
k.value = ((r = x.value) == null ? void 0 : r.clientWidth) ?? null;
|
|
526
|
+
}), k;
|
|
527
527
|
}, ss = {
|
|
528
528
|
key: 0,
|
|
529
529
|
class: "w-8 h-8 sm:w-10 sm:h-10 flex items-center flex-shrink-0"
|
|
@@ -545,7 +545,7 @@ const Ke = (C) => {
|
|
|
545
545
|
}, fs = {
|
|
546
546
|
key: 1,
|
|
547
547
|
class: "flex justify-between border rounded-lg bg-[#F5F5F5] mb-1 w-full min-w-[19+0px] space-x-1 px-2"
|
|
548
|
-
}, vs = { class: "flex items-center text-[#525B66] space-x-3" }, ws = { style: { "font-size": "10px" } }, ys = { class: "relative -right-2" }, bs = ["href"], Cs = { class: "flex flex-nowrap items-center w-max h-[24px]" }, gs = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full text-[#525B66]" }, xs = { class: "py-[8px] pl-0 pr-[8px]" }, ks = ["href"], $s = { class: "flex flex-nowrap items-center w-max h-[24px]" },
|
|
548
|
+
}, vs = { class: "flex items-center text-[#525B66] space-x-3" }, ws = { style: { "font-size": "10px" } }, ys = { class: "relative -right-2" }, bs = ["href"], Cs = { class: "flex flex-nowrap items-center w-max h-[24px]" }, gs = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full text-[#525B66]" }, xs = { class: "py-[8px] pl-0 pr-[8px]" }, ks = ["href"], $s = { class: "flex flex-nowrap items-center w-max h-[24px]" }, Ls = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, _s = { class: "py-[8px] pl-0 pr-[8px]" }, Ss = {
|
|
549
549
|
key: 4,
|
|
550
550
|
class: "custom-select ml-1 w-full relative pt-2 pb-2"
|
|
551
551
|
}, Bs = { class: "pl-1" }, Ms = {
|
|
@@ -566,10 +566,10 @@ const Ke = (C) => {
|
|
|
566
566
|
}, As = ["href"], Es = {
|
|
567
567
|
key: 0,
|
|
568
568
|
class: "tooltip-text"
|
|
569
|
-
},
|
|
569
|
+
}, Fs = { key: 0 }, Ps = {
|
|
570
570
|
key: 2,
|
|
571
571
|
class: "text-[8px] text-[#979CA9] font-light leading-[12px] flex items-center gap-1 mt-2 px-2"
|
|
572
|
-
}, Ws = { key: 0 }, Ns = /* @__PURE__ */
|
|
572
|
+
}, Ws = { key: 0 }, Ns = /* @__PURE__ */ Be({
|
|
573
573
|
__name: "OneSidebar",
|
|
574
574
|
props: r1,
|
|
575
575
|
emits: [
|
|
@@ -581,74 +581,74 @@ const Ke = (C) => {
|
|
|
581
581
|
"toggle-menu",
|
|
582
582
|
"update:modelValue"
|
|
583
583
|
],
|
|
584
|
-
setup(
|
|
585
|
-
var
|
|
586
|
-
const r =
|
|
584
|
+
setup(x, { emit: k }) {
|
|
585
|
+
var U, K, Q;
|
|
586
|
+
const r = k, p = x, M = j(() => {
|
|
587
587
|
var n;
|
|
588
|
-
return ((n =
|
|
589
|
-
}),
|
|
588
|
+
return ((n = p.news) == null ? void 0 : n.unseenCount) || 0;
|
|
589
|
+
}), $ = () => {
|
|
590
590
|
r("show-news");
|
|
591
|
-
},
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
}),
|
|
595
|
-
const
|
|
591
|
+
}, c = B(!1), W = B(p.hoverable);
|
|
592
|
+
fe(p, () => {
|
|
593
|
+
p.modelValue ? W.value = !0 : W.value = !1;
|
|
594
|
+
}), p.modelValue && (W.value = !0);
|
|
595
|
+
const z = h1(), T = j(() => {
|
|
596
596
|
const n = [];
|
|
597
|
-
if (
|
|
598
|
-
if (!
|
|
597
|
+
if (p.slim || n.push("fixed"), !q.value)
|
|
598
|
+
if (!p.isMobile)
|
|
599
599
|
n.push("w-[260px]");
|
|
600
600
|
else
|
|
601
601
|
return n.push("w-full");
|
|
602
602
|
return n.join(" ");
|
|
603
|
-
}), J =
|
|
604
|
-
|
|
605
|
-
},
|
|
603
|
+
}), J = j(() => ""), V = (n) => {
|
|
604
|
+
c.value = W.value && n;
|
|
605
|
+
}, q = j(() => W.value && !c.value), v = j(() => p.island ? p.modelValue !== !1 : !!q.value), H = B(), e = es(H), h = j(() => p.modelValue === !0 || e.value === null ? !0 : e.value > 0), A = B(), o = () => q.value ? p.minimizedWidth : p.width;
|
|
606
606
|
Xe(() => {
|
|
607
|
-
const n =
|
|
607
|
+
const n = o();
|
|
608
608
|
setTimeout(() => {
|
|
609
|
-
|
|
609
|
+
A.value = n;
|
|
610
610
|
});
|
|
611
611
|
});
|
|
612
|
-
const
|
|
613
|
-
(
|
|
614
|
-
var
|
|
615
|
-
return n.id == ((
|
|
612
|
+
const d = B(!1), C = B(
|
|
613
|
+
(U = p.app) != null && U.availableLang && ((K = p.app) == null ? void 0 : K.availableLang.length) > 0 ? (Q = p.app) == null ? void 0 : Q.availableLang.find((n) => {
|
|
614
|
+
var y;
|
|
615
|
+
return n.id == ((y = p.app) == null ? void 0 : y.lang);
|
|
616
616
|
}) : null
|
|
617
|
-
),
|
|
618
|
-
|
|
619
|
-
},
|
|
620
|
-
|
|
617
|
+
), u = () => {
|
|
618
|
+
d.value = !d.value;
|
|
619
|
+
}, E = (n) => {
|
|
620
|
+
C.value = n, d.value = !1, r("select-language", n);
|
|
621
621
|
}, F = () => {
|
|
622
|
-
var n,
|
|
623
|
-
(
|
|
622
|
+
var n, y;
|
|
623
|
+
(y = (n = p.app) == null ? void 0 : n.selectedPlan) != null && y.url && (window.location.href = p.app.selectedPlan.url);
|
|
624
624
|
};
|
|
625
|
-
return (n,
|
|
626
|
-
var X, Y, ee, se, te, le,
|
|
627
|
-
return s(),
|
|
625
|
+
return (n, y) => {
|
|
626
|
+
var X, Y, ee, se, te, le, oe, ne, m, G, ae, ve, we, ye, be, Ce, w, P, I, re, ie, de, pe, O, ke, N, ue, Ve, He, Ae, Ee, Fe, Pe, We, Ne, Ge, Ie, Re, qe, Ue, Ze;
|
|
627
|
+
return s(), l("aside", {
|
|
628
628
|
ref_key: "rootElement",
|
|
629
|
-
ref:
|
|
630
|
-
class:
|
|
629
|
+
ref: z,
|
|
630
|
+
class: b(["oneb-sidebar cont flex flex-col", [
|
|
631
631
|
n.island ? "island-mode bg-white rounded-10 py-2 shrink-0 transition-all" : "pt-[56px] pb-1 sidebar z-40",
|
|
632
|
-
n.island ?
|
|
633
|
-
n.island ? "" :
|
|
632
|
+
n.island ? v.value ? "self-stretch w-[60px]" : "self-stretch w-[260px]" : T.value,
|
|
633
|
+
n.island ? "" : v.value ? "sm:max-w-[260px] w-full sm:w-max" : "sm:w-[260px] w-full"
|
|
634
634
|
]]),
|
|
635
635
|
style: m1(J.value),
|
|
636
|
-
onMouseenter:
|
|
637
|
-
onMouseleave:
|
|
636
|
+
onMouseenter: y[3] || (y[3] = (g) => V(!0)),
|
|
637
|
+
onMouseleave: y[4] || (y[4] = (g) => V(!1))
|
|
638
638
|
}, [
|
|
639
|
-
n.island ? (s(),
|
|
639
|
+
n.island ? (s(), l("div", {
|
|
640
640
|
key: 0,
|
|
641
|
-
class:
|
|
641
|
+
class: b(["px-2 flex shrink-0", v.value ? "flex-col items-center gap-1" : "items-center justify-between"])
|
|
642
642
|
}, [
|
|
643
|
-
|
|
643
|
+
v.value && n.logoSrc ? (s(), l("div", ss, [
|
|
644
644
|
t("img", {
|
|
645
645
|
src: n.logoSrc,
|
|
646
646
|
class: "w-8 h-8 mx-auto",
|
|
647
647
|
alt: "logo"
|
|
648
648
|
}, null, 8, ts)
|
|
649
649
|
])) : a("", !0),
|
|
650
|
-
!
|
|
651
|
-
n.logoSrc ? (s(),
|
|
650
|
+
!v.value && ((X = n.app) != null && X.name) ? (s(), l("div", ls, [
|
|
651
|
+
n.logoSrc ? (s(), l("div", os, [
|
|
652
652
|
t("img", {
|
|
653
653
|
src: n.logoSrc,
|
|
654
654
|
class: "w-8 h-8 mx-auto",
|
|
@@ -657,7 +657,7 @@ const Ke = (C) => {
|
|
|
657
657
|
])) : a("", !0),
|
|
658
658
|
t("div", as, [
|
|
659
659
|
t("p", rs, i(n.app.name), 1),
|
|
660
|
-
(ee = (Y = n.app) == null ? void 0 : Y.selectedPlan) != null && ee.name ? (s(),
|
|
660
|
+
(ee = (Y = n.app) == null ? void 0 : Y.selectedPlan) != null && ee.name ? (s(), l("div", is, [
|
|
661
661
|
t("span", ds, "Тариф " + i(n.app.selectedPlan.name), 1)
|
|
662
662
|
])) : a("", !0)
|
|
663
663
|
])
|
|
@@ -665,56 +665,56 @@ const Ke = (C) => {
|
|
|
665
665
|
t("button", {
|
|
666
666
|
type: "button",
|
|
667
667
|
class: "w-11 h-11 rounded-10 flex items-center justify-center text-secondary-base hover:bg-secondary-body-active transition-colors shrink-0",
|
|
668
|
-
onClick:
|
|
668
|
+
onClick: y[0] || (y[0] = (g) => r("toggle-menu"))
|
|
669
669
|
}, [
|
|
670
|
-
(s(),
|
|
670
|
+
(s(), f(L(v.value ? S(a1) : S(X1)), { class: "w-5 h-5" }))
|
|
671
671
|
])
|
|
672
672
|
], 2)) : a("", !0),
|
|
673
|
-
|
|
674
|
-
class:
|
|
675
|
-
n.island ?
|
|
673
|
+
ce(t("div", {
|
|
674
|
+
class: b(["overflow-y-auto overflow-hidden lg:bg-transparent transition-all flex-grow", [
|
|
675
|
+
n.island ? v.value ? "flex flex-col items-center gap-1 px-0 mx-0 mt-2" : "px-2 mt-2" : "top-[56px] left-0 z-50 px-1 ml-1 mr-1 mt-2"
|
|
676
676
|
]]),
|
|
677
677
|
ref_key: "menu",
|
|
678
678
|
ref: H
|
|
679
679
|
}, [
|
|
680
|
-
(s(!0),
|
|
681
|
-
key:
|
|
682
|
-
labelTop:
|
|
680
|
+
(s(!0), l(R, null, D(n.items, (g) => (s(), f(D1, {
|
|
681
|
+
key: g.label,
|
|
682
|
+
labelTop: g.labelTop,
|
|
683
683
|
isMobile: n.isMobile,
|
|
684
|
-
subItems:
|
|
685
|
-
open:
|
|
686
|
-
icon:
|
|
687
|
-
label:
|
|
688
|
-
route:
|
|
689
|
-
menuGroup:
|
|
690
|
-
href:
|
|
691
|
-
slim:
|
|
684
|
+
subItems: g.subItems,
|
|
685
|
+
open: g.open,
|
|
686
|
+
icon: g.icon,
|
|
687
|
+
label: g.label,
|
|
688
|
+
route: g.route,
|
|
689
|
+
menuGroup: g == null ? void 0 : g.menuGroup,
|
|
690
|
+
href: g.href,
|
|
691
|
+
slim: v.value,
|
|
692
692
|
island: n.island,
|
|
693
|
-
active:
|
|
694
|
-
"route-name":
|
|
695
|
-
exact:
|
|
696
|
-
onUpdateCollapsed:
|
|
693
|
+
active: g.active === !0,
|
|
694
|
+
"route-name": g.routeName,
|
|
695
|
+
exact: g.exact || !1,
|
|
696
|
+
onUpdateCollapsed: y[1] || (y[1] = (Oe) => r("update-collapsed"))
|
|
697
697
|
}, null, 8, ["labelTop", "isMobile", "subItems", "open", "icon", "label", "route", "menuGroup", "href", "slim", "island", "active", "route-name", "exact"]))), 128))
|
|
698
698
|
], 2), [
|
|
699
|
-
[
|
|
699
|
+
[_e, h.value]
|
|
700
700
|
]),
|
|
701
|
-
n.island &&
|
|
701
|
+
n.island && v.value ? (s(), l("div", ps, [
|
|
702
702
|
t("button", {
|
|
703
703
|
type: "button",
|
|
704
704
|
class: "w-9 h-9 rounded-10 flex items-center justify-center hover:bg-secondary-body-active transition-colors",
|
|
705
|
-
onClick:
|
|
705
|
+
onClick: y[2] || (y[2] = (g) => r("show-help"))
|
|
706
706
|
}, [
|
|
707
|
-
|
|
707
|
+
_(Se, { class: "w-6 h-6" })
|
|
708
708
|
])
|
|
709
709
|
])) : a("", !0),
|
|
710
|
-
|
|
711
|
-
class:
|
|
710
|
+
ce(t("div", {
|
|
711
|
+
class: b(["mt-auto shrink rounded-2xl mx-2", [v.value ? "" : "px-2 bg-white pt-2.5 py-2"]])
|
|
712
712
|
}, [
|
|
713
|
-
n.island ? a("", !0) : (s(),
|
|
713
|
+
n.island ? a("", !0) : (s(), l("div", {
|
|
714
714
|
key: 0,
|
|
715
|
-
class:
|
|
715
|
+
class: b([v.value ? "hidden" : "w-full hidden md:flex-col md:flex"])
|
|
716
716
|
}, [
|
|
717
|
-
(se = n.app) != null && se.offerPlan ? (s(),
|
|
717
|
+
(se = n.app) != null && se.offerPlan ? (s(), l("a", {
|
|
718
718
|
key: 0,
|
|
719
719
|
href: (te = n.app) == null ? void 0 : te.offerPlan.url,
|
|
720
720
|
class: "w-full min-w-[190px] border-gradient rounded-lg p-[1px] bg-[#FFF8E4] mb-1 block",
|
|
@@ -723,157 +723,157 @@ const Ke = (C) => {
|
|
|
723
723
|
}, [
|
|
724
724
|
t("div", cs, [
|
|
725
725
|
t("div", hs, [
|
|
726
|
-
(s(),
|
|
726
|
+
(s(), f(L((le = n.app) == null ? void 0 : le.offerPlan.icon), { class: "w-[16px] h-[16px]" }))
|
|
727
727
|
]),
|
|
728
728
|
t("p", ms, [
|
|
729
|
-
t("strong", null, i((
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
729
|
+
t("strong", null, i((oe = n.app) == null ? void 0 : oe.offerPlan.title), 1),
|
|
730
|
+
ge(" «" + i((ne = n.app) == null ? void 0 : ne.offerPlan.name) + "» ", 1),
|
|
731
|
+
y[5] || (y[5] = t("br", null, null, -1)),
|
|
732
|
+
ge(i((m = n.app) == null ? void 0 : m.offerPlan.title1), 1)
|
|
733
733
|
])
|
|
734
734
|
])
|
|
735
735
|
], 8, us)) : a("", !0),
|
|
736
|
-
(
|
|
736
|
+
(G = n.app) != null && G.selectedPlan && ((ae = n.app) != null && ae.selectedPlan.name) ? (s(), l("div", fs, [
|
|
737
737
|
t("div", vs, [
|
|
738
738
|
t("div", null, [
|
|
739
|
-
(s(),
|
|
739
|
+
(s(), f(L((ve = n.app) == null ? void 0 : ve.selectedPlan.icon), { class: "w-[16px] h-[16px]" }))
|
|
740
740
|
]),
|
|
741
741
|
t("div", ws, [
|
|
742
|
-
t("p", null, i(((
|
|
743
|
-
t("p", null, i(((
|
|
742
|
+
t("p", null, i(((we = n.app) == null ? void 0 : we.selectedPlan.name) || ""), 1),
|
|
743
|
+
t("p", null, i(((ye = n.app) == null ? void 0 : ye.selectedPlan.title) || ""), 1)
|
|
744
744
|
])
|
|
745
745
|
]),
|
|
746
746
|
t("div", ys, [
|
|
747
|
-
|
|
747
|
+
_(Te, {
|
|
748
748
|
class: "text-[#525B66] hover:text-[#4089E0] !rounded-lg",
|
|
749
749
|
variant: "touch",
|
|
750
|
-
icon:
|
|
750
|
+
icon: S(v1),
|
|
751
751
|
onClick: F
|
|
752
752
|
}, null, 8, ["icon"])
|
|
753
753
|
])
|
|
754
754
|
])) : a("", !0),
|
|
755
|
-
(
|
|
755
|
+
(be = n.app) != null && be.terms ? (s(), l("a", {
|
|
756
756
|
key: 2,
|
|
757
|
-
href: (
|
|
757
|
+
href: (Ce = n.app) == null ? void 0 : Ce.terms.url,
|
|
758
758
|
target: "_blank",
|
|
759
759
|
class: "ml-1 flex items-center rounded-lg text-xs hover:underline font-extralight"
|
|
760
760
|
}, [
|
|
761
761
|
t("div", Cs, [
|
|
762
762
|
t("div", gs, [
|
|
763
|
-
t("span", xs, i(((
|
|
763
|
+
t("span", xs, i(((w = n.app) == null ? void 0 : w.terms.label) || "Terms"), 1)
|
|
764
764
|
])
|
|
765
765
|
])
|
|
766
766
|
], 8, bs)) : a("", !0),
|
|
767
|
-
(
|
|
767
|
+
(P = n.app) != null && P.offer ? (s(), l("a", {
|
|
768
768
|
key: 3,
|
|
769
|
-
href: (
|
|
769
|
+
href: (I = n.app) == null ? void 0 : I.offer.url,
|
|
770
770
|
target: "_blank",
|
|
771
771
|
class: "ml-1 flex items-center rounded-lg text-xs hover:underline text-[#525B66] font-extralight"
|
|
772
772
|
}, [
|
|
773
773
|
t("div", $s, [
|
|
774
|
-
t("div",
|
|
775
|
-
t("span",
|
|
774
|
+
t("div", Ls, [
|
|
775
|
+
t("span", _s, i(((re = n.app) == null ? void 0 : re.offer.label) || "Offert"), 1)
|
|
776
776
|
])
|
|
777
777
|
])
|
|
778
778
|
], 8, ks)) : a("", !0),
|
|
779
|
-
(
|
|
779
|
+
(de = (ie = n.app) == null ? void 0 : ie.availableLang) != null && de.length ? (s(), l("div", Ss, [
|
|
780
780
|
t("div", {
|
|
781
781
|
class: "select-box flex gap-x-2 text-xs text-[#525B66] cursor-pointer",
|
|
782
|
-
onClick:
|
|
782
|
+
onClick: u
|
|
783
783
|
}, [
|
|
784
|
-
S(
|
|
785
|
-
|
|
786
|
-
t("span", Bs, i(
|
|
784
|
+
_(S(f1), { class: "w-4" }),
|
|
785
|
+
ge(" " + i((pe = C.value) == null ? void 0 : pe.name) + " ", 1),
|
|
786
|
+
t("span", Bs, i(d.value ? "▲" : "▼"), 1)
|
|
787
787
|
]),
|
|
788
|
-
|
|
789
|
-
(s(!0),
|
|
790
|
-
var
|
|
791
|
-
return s(),
|
|
792
|
-
key:
|
|
793
|
-
class:
|
|
794
|
-
"hover:bg-slate-200 rounded-lg cursor-pointer":
|
|
795
|
-
"text-gray-300":
|
|
788
|
+
d.value ? (s(), l("div", Ms, [
|
|
789
|
+
(s(!0), l(R, null, D((O = n.app) == null ? void 0 : O.availableLang, (g) => {
|
|
790
|
+
var Oe, De;
|
|
791
|
+
return s(), l("div", {
|
|
792
|
+
key: g.id,
|
|
793
|
+
class: b(["px-2", {
|
|
794
|
+
"hover:bg-slate-200 rounded-lg cursor-pointer": g.id !== ((Oe = C.value) == null ? void 0 : Oe.id),
|
|
795
|
+
"text-gray-300": g.id === ((De = C.value) == null ? void 0 : De.id)
|
|
796
796
|
}]),
|
|
797
|
-
onClick: (
|
|
797
|
+
onClick: (gl) => {
|
|
798
798
|
var Je;
|
|
799
|
-
return
|
|
799
|
+
return g.id !== ((Je = C.value) == null ? void 0 : Je.id) && E(g);
|
|
800
800
|
}
|
|
801
|
-
}, i(
|
|
801
|
+
}, i(g.name), 11, Os);
|
|
802
802
|
}), 128))
|
|
803
803
|
])) : a("", !0)
|
|
804
804
|
])) : a("", !0)
|
|
805
805
|
], 2)),
|
|
806
|
-
!
|
|
806
|
+
!v.value && ((ke = n.app) != null && ke.offer || (ue = (N = n.app) == null ? void 0 : N.availableLang) != null && ue.length || (Ve = n.app) != null && Ve.selectedPlan && ((He = n.app) != null && He.selectedPlan.name) || (Ae = n.app) != null && Ae.offerPlan) ? (s(), l("div", js)) : a("", !0),
|
|
807
807
|
t("div", {
|
|
808
|
-
class:
|
|
808
|
+
class: b([v.value ? "grid" : n.island ? "flex items-center gap-2" : "flex space-x-2"])
|
|
809
809
|
}, [
|
|
810
|
-
n.news ? (s(),
|
|
810
|
+
n.news ? (s(), l("a", {
|
|
811
811
|
key: 0,
|
|
812
812
|
href: "#",
|
|
813
|
-
class:
|
|
814
|
-
onClick:
|
|
813
|
+
class: b(["text-[#525B66] flex items-center rounded-lg text-sm tooltip hover:bg-primary-10-hover hover:text-primary-base transition-all bg-gray-100 px-1", [v.value ? "w-[44px] h-[44px] text-center" : "h-[36x] pr-2"]]),
|
|
814
|
+
onClick: $
|
|
815
815
|
}, [
|
|
816
|
-
n.news.menuLabel ? (s(),
|
|
816
|
+
n.news.menuLabel ? (s(), l("div", zs, i(n.news.menuLabel || "News"), 1)) : a("", !0),
|
|
817
817
|
t("div", {
|
|
818
|
-
class:
|
|
818
|
+
class: b(["w-full", [v.value ? "" : "flex flex-nowrap items-center h-[36px]"]])
|
|
819
819
|
}, [
|
|
820
820
|
t("div", {
|
|
821
|
-
class:
|
|
821
|
+
class: b(["relative items-center", [v.value ? "" : "flex flex-row space-x-1"]])
|
|
822
822
|
}, [
|
|
823
823
|
t("div", null, [
|
|
824
|
-
(s(),
|
|
824
|
+
(s(), f(L(Se), { class: "w-[24px] h-[24px] mx-auto" }))
|
|
825
825
|
]),
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
826
|
+
v.value ? a("", !0) : (s(), l("div", Ts, i(n.news.menuLabel || "News"), 1)),
|
|
827
|
+
M.value > 0 ? (s(), l("span", Vs)) : a("", !0),
|
|
828
|
+
M.value > 0 ? (s(), l("span", Hs)) : a("", !0)
|
|
829
829
|
], 2)
|
|
830
830
|
], 2)
|
|
831
831
|
], 2)) : a("", !0),
|
|
832
|
-
(Ee = n.app) != null && Ee.support ? (s(),
|
|
832
|
+
(Ee = n.app) != null && Ee.support ? (s(), l("a", {
|
|
833
833
|
key: 1,
|
|
834
|
-
href: (
|
|
835
|
-
class:
|
|
834
|
+
href: (Pe = (Fe = n.app) == null ? void 0 : Fe.support) == null ? void 0 : Pe.url,
|
|
835
|
+
class: b(["text-[#525B66] flex items-center rounded-lg text-sm tooltip hover:bg-primary-10-hover hover:text-primary-base transition-all", [v.value ? "w-[44px] h-[44px] text-center" : "h-[36x]"]])
|
|
836
836
|
}, [
|
|
837
|
-
(Ne = (We = n.app) == null ? void 0 : We.support) != null && Ne.label ? (s(),
|
|
837
|
+
(Ne = (We = n.app) == null ? void 0 : We.support) != null && Ne.label ? (s(), l("div", Es, i(((Ie = (Ge = n.app) == null ? void 0 : Ge.support) == null ? void 0 : Ie.label) || "Support"), 1)) : a("", !0),
|
|
838
838
|
t("div", {
|
|
839
|
-
class:
|
|
839
|
+
class: b(["w-full", [v.value ? "" : "flex flex-nowrap items-center h-[36px]"]])
|
|
840
840
|
}, [
|
|
841
841
|
t("div", {
|
|
842
|
-
class:
|
|
842
|
+
class: b(["flex-shrink-0 relative", [v.value ? "mx-auto w-[36px] " : "flex space-x-2 px-1"]])
|
|
843
843
|
}, [
|
|
844
844
|
t("div", null, [
|
|
845
|
-
(s(),
|
|
845
|
+
(s(), f(L(S(w1)), { class: "w-[20px] h-[20px] mx-auto" }))
|
|
846
846
|
]),
|
|
847
|
-
|
|
847
|
+
v.value ? a("", !0) : (s(), l("div", Fs, i(((qe = (Re = n.app) == null ? void 0 : Re.support) == null ? void 0 : qe.label) || "Support"), 1))
|
|
848
848
|
], 2)
|
|
849
849
|
], 2)
|
|
850
850
|
], 10, As)) : a("", !0)
|
|
851
851
|
], 2),
|
|
852
|
-
n.island && !
|
|
853
|
-
|
|
854
|
-
|
|
852
|
+
n.island && !v.value ? (s(), l("div", Ps, [
|
|
853
|
+
y[6] || (y[6] = t("span", null, [
|
|
854
|
+
ge("Powered By "),
|
|
855
855
|
t("span", { class: "capitalize" }, "OneB")
|
|
856
856
|
], -1)),
|
|
857
|
-
(Ue = n.app) != null && Ue.version ? (s(),
|
|
857
|
+
(Ue = n.app) != null && Ue.version ? (s(), l("span", Ws, "V." + i(n.app.version), 1)) : a("", !0)
|
|
858
858
|
])) : a("", !0),
|
|
859
|
-
n.island ? a("", !0) : (s(),
|
|
859
|
+
n.island ? a("", !0) : (s(), l("p", {
|
|
860
860
|
key: 3,
|
|
861
|
-
class:
|
|
861
|
+
class: b([[v.value ? "hidden" : "w-full"], "text-[7px] pl-2 text-[#979CA9] flex justify-between font-extralight pt-1"])
|
|
862
862
|
}, [
|
|
863
|
-
|
|
864
|
-
|
|
863
|
+
y[7] || (y[7] = t("span", null, [
|
|
864
|
+
ge("Powered by "),
|
|
865
865
|
t("span", { class: "text-blue-700" }, "OneB")
|
|
866
866
|
], -1)),
|
|
867
867
|
t("span", null, i((Ze = n.app) == null ? void 0 : Ze.version), 1)
|
|
868
868
|
], 2))
|
|
869
869
|
], 2), [
|
|
870
|
-
[
|
|
870
|
+
[_e, h.value && (!n.island || !v.value)]
|
|
871
871
|
])
|
|
872
872
|
], 38);
|
|
873
873
|
};
|
|
874
874
|
}
|
|
875
875
|
});
|
|
876
|
-
const d1 = /* @__PURE__ */
|
|
876
|
+
const d1 = /* @__PURE__ */ Me(Ns, [["__scopeId", "data-v-bcc0bd0f"]]), Gs = { class: "h-screen relative" }, Is = {
|
|
877
877
|
class: "header h-[56px] flex items-center flex-nowrap fixed top-0 left-0 w-full z-50",
|
|
878
878
|
style: { background: "rgba(245, 247, 251, 0.8)", "backdrop-filter": "blur(5px)" }
|
|
879
879
|
}, Rs = { class: "sm:p-2 pl-2 flex-shrink-0" }, qs = { class: "w-8 h-8 sm:w-10 sm:h-10 flex items-center flex-shrink-0" }, Us = ["src"], Zs = { class: "whitespace-nowrap font-semibold sm:text-xl truncate" }, Ds = { class: "text-xs whitespace-nowrap truncate" }, Js = { class: "w-full pl-1" }, Ks = { class: "w-full flex justify-end sm:pr-4" }, Qs = { class: "flex items-center sm:space-x-1" }, Xs = {
|
|
@@ -903,118 +903,118 @@ const d1 = /* @__PURE__ */ we(Ns, [["__scopeId", "data-v-bcc0bd0f"]]), Gs = { cl
|
|
|
903
903
|
}, vt = {
|
|
904
904
|
key: 3,
|
|
905
905
|
class: "text-xs px-2 py-1 rounded-md bg-gray-600 text-white"
|
|
906
|
-
}, wt = { class: "text-lg font-medium" }, yt = { class: "text-sm text-gray-600" }, bt = { key: 0 }, Ct = ["src"], gt = { class: "text-sm" }, xt = { key: 1 }, kt = ["href"], $t = { class: "text-sm flex items-center justify-between mt-1" },
|
|
906
|
+
}, wt = { class: "text-lg font-medium" }, yt = { class: "text-sm text-gray-600" }, bt = { key: 0 }, Ct = ["src"], gt = { class: "text-sm" }, xt = { key: 1 }, kt = ["href"], $t = { class: "text-sm flex items-center justify-between mt-1" }, Lt = { class: "text-gray-800" }, _t = ["href"], St = /* @__PURE__ */ Be({
|
|
907
907
|
__name: "OneMainLayout",
|
|
908
908
|
props: i1,
|
|
909
909
|
emits: ["load-news", "load-tariff", "open-tariff"],
|
|
910
|
-
setup(
|
|
911
|
-
const r =
|
|
912
|
-
let
|
|
913
|
-
window.document.body.offsetWidth < 1024 && (window.localStorage.getItem("sidebar-slim") == null && window.localStorage.setItem("sidebar-slim", "1"),
|
|
914
|
-
const
|
|
915
|
-
|
|
910
|
+
setup(x, { emit: k }) {
|
|
911
|
+
const r = k, p = x;
|
|
912
|
+
let M = window.localStorage.getItem("sidebar-slim");
|
|
913
|
+
window.document.body.offsetWidth < 1024 && (window.localStorage.getItem("sidebar-slim") == null && window.localStorage.setItem("sidebar-slim", "1"), M = "1");
|
|
914
|
+
const $ = B(M === "1");
|
|
915
|
+
B(!0), fe($, (e) => {
|
|
916
916
|
window.localStorage.setItem("sidebar-slim", String(e ? 1 : 0));
|
|
917
917
|
});
|
|
918
|
-
const
|
|
919
|
-
|
|
920
|
-
},
|
|
921
|
-
|
|
922
|
-
() =>
|
|
918
|
+
const c = B(!1), W = () => {
|
|
919
|
+
c.value = !c.value, c.value && r("load-news");
|
|
920
|
+
}, z = j(() => p.showHeadre);
|
|
921
|
+
fe(
|
|
922
|
+
() => p.showHeadre,
|
|
923
923
|
// Передаємо доступ до props
|
|
924
924
|
() => {
|
|
925
|
-
|
|
925
|
+
z.value = p.showHeadre;
|
|
926
926
|
}
|
|
927
927
|
);
|
|
928
|
-
const
|
|
929
|
-
|
|
930
|
-
}, V =
|
|
931
|
-
|
|
928
|
+
const T = B(window.innerWidth), J = () => {
|
|
929
|
+
T.value = window.innerWidth;
|
|
930
|
+
}, V = j(() => T.value <= 768);
|
|
931
|
+
Le(() => {
|
|
932
932
|
window.addEventListener("resize", J);
|
|
933
|
-
}),
|
|
933
|
+
}), ze(() => {
|
|
934
934
|
window.removeEventListener("resize", J);
|
|
935
935
|
});
|
|
936
|
-
const
|
|
937
|
-
var
|
|
938
|
-
(
|
|
939
|
-
},
|
|
940
|
-
|
|
936
|
+
const q = (e) => {
|
|
937
|
+
var h;
|
|
938
|
+
(h = p.handlers) == null || h.onSetLang(e);
|
|
939
|
+
}, v = B(!1), H = () => {
|
|
940
|
+
v.value = window.matchMedia("(min-width: 769px)").matches;
|
|
941
941
|
};
|
|
942
|
-
return
|
|
942
|
+
return Le(() => {
|
|
943
943
|
H(), window.addEventListener("resize", H);
|
|
944
|
-
}),
|
|
944
|
+
}), ze(() => {
|
|
945
945
|
window.removeEventListener("resize", H);
|
|
946
|
-
}), (e,
|
|
947
|
-
var
|
|
948
|
-
const
|
|
949
|
-
return s(),
|
|
950
|
-
|
|
946
|
+
}), (e, h) => {
|
|
947
|
+
var o, d, C, u, E, F, U, K, Q, n, y, X, Y, ee, se, te, le, oe, ne;
|
|
948
|
+
const A = Qe("RouterLink");
|
|
949
|
+
return s(), l("div", Gs, [
|
|
950
|
+
ce(t("div", Is, [
|
|
951
951
|
t("div", Rs, [
|
|
952
952
|
t("button", {
|
|
953
|
-
onClick:
|
|
953
|
+
onClick: h[0] || (h[0] = (m) => $.value = !$.value),
|
|
954
954
|
class: "sm:w-[44px] sm:h-[44px] w-8 h-8 sm:p-[8px] flex items-center justify-center rounded hover:bg-secondary-10 hover:text-blue-600"
|
|
955
955
|
}, [
|
|
956
|
-
S(
|
|
956
|
+
_(S(a1), { class: "sm:w-[24px] sm:h-[24px] w-6 h-6" })
|
|
957
957
|
])
|
|
958
958
|
]),
|
|
959
959
|
t("div", qs, [
|
|
960
|
-
e.logoSrc != null ? (s(),
|
|
960
|
+
e.logoSrc != null ? (s(), l("img", {
|
|
961
961
|
key: 0,
|
|
962
962
|
src: e.logoSrc,
|
|
963
963
|
class: "w-8 h-8 mx-auto",
|
|
964
964
|
alt: "logo"
|
|
965
965
|
}, null, 8, Us)) : a("", !0)
|
|
966
966
|
]),
|
|
967
|
-
e.app != null ? (s(),
|
|
967
|
+
e.app != null ? (s(), f(A, {
|
|
968
968
|
key: 0,
|
|
969
969
|
to: "/",
|
|
970
970
|
class: "sm:pl-2 pl-1 truncate w-full"
|
|
971
971
|
}, {
|
|
972
972
|
default: Z(() => {
|
|
973
|
-
var
|
|
973
|
+
var m, G;
|
|
974
974
|
return [
|
|
975
975
|
t("div", Zs, i(e.app.name), 1),
|
|
976
|
-
t("div", Ds, i((
|
|
976
|
+
t("div", Ds, i((G = (m = e.app) == null ? void 0 : m.workspace) == null ? void 0 : G.name), 1)
|
|
977
977
|
];
|
|
978
978
|
}),
|
|
979
979
|
_: 1
|
|
980
980
|
})) : a("", !0),
|
|
981
|
-
|
|
981
|
+
me(e.$slots, "head-left", {}, void 0, !0),
|
|
982
982
|
t("div", Js, [
|
|
983
983
|
t("div", Ks, [
|
|
984
984
|
t("div", Qs, [
|
|
985
|
-
e.improveTariff && ((
|
|
985
|
+
e.improveTariff && ((o = e.improveTariff) != null && o.label) && e.improveTariff.label ? (s(), l("div", Xs, [
|
|
986
986
|
t("button", {
|
|
987
987
|
type: "button",
|
|
988
988
|
class: "cursor-pointer flex items-center h-full bg-[#FFF8E4] hover:bg-[#f2e3b8] rounded-full px-2 py-1 font-medium",
|
|
989
|
-
onClick:
|
|
990
|
-
(...
|
|
991
|
-
var
|
|
992
|
-
return ((
|
|
989
|
+
onClick: h[1] || (h[1] = //@ts-ignore
|
|
990
|
+
(...m) => {
|
|
991
|
+
var G, ae;
|
|
992
|
+
return ((G = e.handlers) == null ? void 0 : G.onImproveTariff) && ((ae = e.handlers) == null ? void 0 : ae.onImproveTariff(...m));
|
|
993
993
|
}),
|
|
994
994
|
style: { "font-size": "10px" }
|
|
995
995
|
}, [
|
|
996
996
|
t("div", Ys, [
|
|
997
|
-
(s(),
|
|
997
|
+
(s(), f(L((d = e.improveTariff) == null ? void 0 : d.icon), { class: "h-4 w-4 mx-auto" }))
|
|
998
998
|
]),
|
|
999
|
-
t("span", et, i((
|
|
999
|
+
t("span", et, i((C = e.improveTariff) == null ? void 0 : C.label), 1)
|
|
1000
1000
|
])
|
|
1001
1001
|
])) : a("", !0),
|
|
1002
|
-
|
|
1003
|
-
e.help ? (s(),
|
|
1002
|
+
me(e.$slots, "head-right", {}, void 0, !0),
|
|
1003
|
+
e.help ? (s(), f(e1, {
|
|
1004
1004
|
key: 1,
|
|
1005
1005
|
help: e.help
|
|
1006
1006
|
}, null, 8, ["help"])) : a("", !0),
|
|
1007
|
-
((
|
|
1007
|
+
((u = e.handlers) == null ? void 0 : u.onBrowse) != null ? (s(), f(s1, {
|
|
1008
1008
|
key: 2,
|
|
1009
|
-
workspace: (
|
|
1009
|
+
workspace: (E = e.app) == null ? void 0 : E.workspace,
|
|
1010
1010
|
apps: ((F = e.app) == null ? void 0 : F.apps) || [],
|
|
1011
|
-
"change-label": ((
|
|
1011
|
+
"change-label": ((U = e.labels) == null ? void 0 : U.change) || "Change",
|
|
1012
1012
|
"apps-title": ((K = e.labels) == null ? void 0 : K.apps) || "Apps",
|
|
1013
1013
|
"on-app": (Q = e.handlers) == null ? void 0 : Q.onApp,
|
|
1014
1014
|
"on-change": (n = e.handlers) == null ? void 0 : n.onChange,
|
|
1015
|
-
onOpen: (
|
|
1015
|
+
onOpen: (y = e.handlers) == null ? void 0 : y.onBrowse
|
|
1016
1016
|
}, null, 8, ["workspace", "apps", "change-label", "apps-title", "on-app", "on-change", "onOpen"])) : a("", !0),
|
|
1017
|
-
|
|
1017
|
+
_(t1, {
|
|
1018
1018
|
user: e.user,
|
|
1019
1019
|
menu: e.menu,
|
|
1020
1020
|
app: e.app,
|
|
@@ -1028,102 +1028,102 @@ const d1 = /* @__PURE__ */ we(Ns, [["__scopeId", "data-v-bcc0bd0f"]]), Gs = { cl
|
|
|
1028
1028
|
])
|
|
1029
1029
|
])
|
|
1030
1030
|
], 512), [
|
|
1031
|
-
[
|
|
1031
|
+
[_e, z.value]
|
|
1032
1032
|
]),
|
|
1033
1033
|
t("div", st, [
|
|
1034
|
-
!V.value ||
|
|
1034
|
+
!V.value || !$.value ? (s(), f(d1, {
|
|
1035
1035
|
key: 0,
|
|
1036
1036
|
app: e.app,
|
|
1037
1037
|
items: e.sidebarItems,
|
|
1038
1038
|
"with-news": e.news != null,
|
|
1039
1039
|
news: e.news,
|
|
1040
1040
|
isMobile: V.value,
|
|
1041
|
-
modelValue:
|
|
1042
|
-
"onUpdate:modelValue":
|
|
1043
|
-
onShowNews:
|
|
1044
|
-
onSelectLanguage:
|
|
1045
|
-
onUpdateCollapsed:
|
|
1041
|
+
modelValue: $.value,
|
|
1042
|
+
"onUpdate:modelValue": h[2] || (h[2] = (m) => $.value = m),
|
|
1043
|
+
onShowNews: W,
|
|
1044
|
+
onSelectLanguage: q,
|
|
1045
|
+
onUpdateCollapsed: h[3] || (h[3] = (m) => $.value = !$.value)
|
|
1046
1046
|
}, null, 8, ["app", "items", "with-news", "news", "isMobile", "modelValue"])) : a("", !0),
|
|
1047
1047
|
t("div", {
|
|
1048
|
-
class:
|
|
1049
|
-
|
|
1050
|
-
|
|
1048
|
+
class: b([[
|
|
1049
|
+
$.value ? "" : "lg:ml-[260px] hidden sm:block",
|
|
1050
|
+
v.value ? "ml-[60px]" : ""
|
|
1051
1051
|
], "body scroll-body w-full overflow-y-auto"])
|
|
1052
1052
|
}, [
|
|
1053
1053
|
t("div", {
|
|
1054
|
-
class:
|
|
1054
|
+
class: b(["content transition-all", { "pt-[56px]": z.value }])
|
|
1055
1055
|
}, [
|
|
1056
|
-
|
|
1056
|
+
me(e.$slots, "default", {}, void 0, !0)
|
|
1057
1057
|
], 2)
|
|
1058
1058
|
], 2)
|
|
1059
1059
|
]),
|
|
1060
|
-
e.news ? (s(),
|
|
1061
|
-
|
|
1060
|
+
e.news ? (s(), l("div", tt, [
|
|
1061
|
+
c.value ? (s(), l("div", {
|
|
1062
1062
|
key: 0,
|
|
1063
1063
|
class: "fixed top-0 left-0 h-dvh w-screen bg-gray-100 bg-opacity-40 z-50",
|
|
1064
|
-
onClick:
|
|
1064
|
+
onClick: h[4] || (h[4] = he((m) => c.value = !1, ["self"]))
|
|
1065
1065
|
})) : a("", !0),
|
|
1066
1066
|
t("div", {
|
|
1067
|
-
class:
|
|
1067
|
+
class: b(["opacity-100 shadow-lg transition-all fixed top-0 left-0 h-dvh overflow-hidden z-50 bg-white", [c.value ? "sm:w-[560px] w-full" : "w-0"]])
|
|
1068
1068
|
}, [
|
|
1069
|
-
|
|
1069
|
+
c.value ? (s(), l("div", lt, [
|
|
1070
1070
|
t("div", ot, [
|
|
1071
1071
|
t("div", nt, [
|
|
1072
|
-
|
|
1073
|
-
|
|
1072
|
+
_(Se, { class: "w-10 h-10" }),
|
|
1073
|
+
h[6] || (h[6] = t("div", { class: "w-full font-medium" }, "OneB News", -1)),
|
|
1074
1074
|
t("div", null, [
|
|
1075
|
-
|
|
1075
|
+
_(Te, {
|
|
1076
1076
|
variant: "touch",
|
|
1077
|
-
icon:
|
|
1078
|
-
onClick:
|
|
1077
|
+
icon: S(l1),
|
|
1078
|
+
onClick: h[5] || (h[5] = (m) => c.value = !1)
|
|
1079
1079
|
}, null, 8, ["icon"])
|
|
1080
1080
|
])
|
|
1081
1081
|
]),
|
|
1082
1082
|
t("div", at, [
|
|
1083
|
-
e.news.isLoading && ((le = e.news.items) == null ? void 0 : le.length) === 0 ? (s(),
|
|
1084
|
-
|
|
1085
|
-
])) : ((
|
|
1083
|
+
e.news.isLoading && ((le = e.news.items) == null ? void 0 : le.length) === 0 ? (s(), l("div", rt, [
|
|
1084
|
+
_(o1, { class: "w-6 h-6 text-gray-600 mx-auto" })
|
|
1085
|
+
])) : ((oe = e.news.items) == null ? void 0 : oe.length) === 0 ? (s(), l("div", it, [
|
|
1086
1086
|
t("div", dt, i(e.news.emptyText), 1)
|
|
1087
|
-
])) : ((
|
|
1088
|
-
(s(!0),
|
|
1089
|
-
key:
|
|
1087
|
+
])) : ((ne = e.news.items) == null ? void 0 : ne.length) > 0 ? (s(), l("div", pt, [
|
|
1088
|
+
(s(!0), l(R, null, D(e.news.items, (m) => (s(), l("div", {
|
|
1089
|
+
key: m.id,
|
|
1090
1090
|
class: "p-3"
|
|
1091
1091
|
}, [
|
|
1092
1092
|
t("div", ut, [
|
|
1093
1093
|
t("div", null, [
|
|
1094
|
-
|
|
1095
|
-
|
|
1094
|
+
m.type ? (s(), l("div", ct, [
|
|
1095
|
+
m.type === 10 ? (s(), l("span", ht, "update")) : m.type === 11 ? (s(), l("span", mt, "warning")) : m.type === 12 ? (s(), l("span", ft, "notice")) : m.type === 13 ? (s(), l("span", vt, "ads")) : a("", !0)
|
|
1096
1096
|
])) : a("", !0),
|
|
1097
|
-
t("div", wt, i(
|
|
1098
|
-
t("div", yt, i(
|
|
1097
|
+
t("div", wt, i(m.title), 1),
|
|
1098
|
+
t("div", yt, i(m.summary), 1)
|
|
1099
1099
|
]),
|
|
1100
|
-
|
|
1100
|
+
m.image_url ? (s(), l("div", bt, [
|
|
1101
1101
|
t("img", {
|
|
1102
|
-
src:
|
|
1102
|
+
src: m.image_url,
|
|
1103
1103
|
alt: "",
|
|
1104
1104
|
class: "w-full rounded-md"
|
|
1105
1105
|
}, null, 8, Ct)
|
|
1106
1106
|
])) : a("", !0),
|
|
1107
1107
|
t("div", gt, [
|
|
1108
|
-
|
|
1109
|
-
text:
|
|
1108
|
+
_(n1, {
|
|
1109
|
+
text: m.body
|
|
1110
1110
|
}, null, 8, ["text"])
|
|
1111
1111
|
]),
|
|
1112
|
-
|
|
1112
|
+
m.video_url ? (s(), l("div", xt, [
|
|
1113
1113
|
t("a", {
|
|
1114
|
-
href:
|
|
1114
|
+
href: m.video_url,
|
|
1115
1115
|
target: "_blank",
|
|
1116
1116
|
class: "text-blue-600 hover:text-blue-700 px-3 py-2 border rounded-md w-full block"
|
|
1117
1117
|
}, i(e.news.openVideoText), 9, kt)
|
|
1118
1118
|
])) : a("", !0),
|
|
1119
1119
|
t("div", $t, [
|
|
1120
|
-
t("span",
|
|
1121
|
-
|
|
1120
|
+
t("span", Lt, i(m.published), 1),
|
|
1121
|
+
m.post_url ? (s(), l("a", {
|
|
1122
1122
|
key: 0,
|
|
1123
|
-
href:
|
|
1123
|
+
href: m.post_url,
|
|
1124
1124
|
target: "_blank",
|
|
1125
1125
|
class: "text-blue-600 hover:text-blue-700 block"
|
|
1126
|
-
}, i(e.news.moreText), 9,
|
|
1126
|
+
}, i(e.news.moreText), 9, _t)) : a("", !0)
|
|
1127
1127
|
])
|
|
1128
1128
|
])
|
|
1129
1129
|
]))), 128))
|
|
@@ -1137,296 +1137,316 @@ const d1 = /* @__PURE__ */ we(Ns, [["__scopeId", "data-v-bcc0bd0f"]]), Gs = { cl
|
|
|
1137
1137
|
};
|
|
1138
1138
|
}
|
|
1139
1139
|
});
|
|
1140
|
-
const
|
|
1140
|
+
const El = /* @__PURE__ */ Me(St, [["__scopeId", "data-v-f5bf3126"]]), Bt = { class: "bg-secondary-body-island min-h-screen p-3" }, Mt = { class: "flex gap-3 items-stretch" }, Ot = { class: "flex-1 flex flex-col gap-3 min-w-0" }, jt = { class: "bg-white rounded-10 h-14 flex items-center justify-between pl-3 pr-3 shrink-0" }, zt = { class: "flex items-center min-w-0 gap-2" }, Tt = { class: "text-base text-black truncate" }, Vt = ["onClick"], Ht = { class: "text-base text-black truncate" }, At = { class: "w-[320px] py-2" }, Et = ["onClick"], Ft = { class: "text-sm" }, Pt = {
|
|
1141
1141
|
key: 0,
|
|
1142
1142
|
class: "border-t border-secondary-stroke my-1"
|
|
1143
|
-
},
|
|
1143
|
+
}, Wt = {
|
|
1144
1144
|
key: 1,
|
|
1145
1145
|
class: "text-2xs text-secondary-content px-3 py-1 uppercase"
|
|
1146
|
-
},
|
|
1146
|
+
}, Nt = ["onClick"], Gt = { class: "text-sm" }, It = {
|
|
1147
1147
|
key: 2,
|
|
1148
1148
|
class: "border-t border-secondary-stroke mt-1 pt-1"
|
|
1149
|
-
},
|
|
1149
|
+
}, Rt = ["onClick"], qt = { class: "flex items-center gap-2 shrink-0" }, Ut = ["href"], Zt = { class: "text-2xs font-semibold text-black leading-loose" }, Dt = { class: "flex-1 min-w-0" }, Jt = { key: 0 }, Kt = {
|
|
1150
1150
|
key: 0,
|
|
1151
1151
|
class: "sm:w-[560px] w-full relative h-full"
|
|
1152
|
-
},
|
|
1152
|
+
}, Qt = { class: "h-full relative" }, Xt = { class: "flex items-center p-3 space-x-1.5" }, Yt = {
|
|
1153
1153
|
class: "overflow-auto",
|
|
1154
1154
|
style: { height: "calc(100% - 62px)" }
|
|
1155
|
-
},
|
|
1155
|
+
}, el = {
|
|
1156
1156
|
key: 0,
|
|
1157
1157
|
class: "p-5"
|
|
1158
|
-
},
|
|
1158
|
+
}, sl = { key: 1 }, tl = { class: "p-4 text-gray text-center" }, ll = { key: 2 }, ol = {
|
|
1159
1159
|
class: "p-3 space-y-1.5 rounded-lg",
|
|
1160
1160
|
style: { "box-shadow": "0 0 6px #eaeaea" }
|
|
1161
|
-
},
|
|
1161
|
+
}, nl = { key: 0 }, al = {
|
|
1162
1162
|
key: 0,
|
|
1163
1163
|
class: "text-xs px-2 py-1 rounded-md bg-green-600 text-white"
|
|
1164
|
-
},
|
|
1164
|
+
}, rl = {
|
|
1165
1165
|
key: 1,
|
|
1166
1166
|
class: "text-xs px-2 py-1 rounded-md bg-yellow-600 text-white"
|
|
1167
|
-
},
|
|
1167
|
+
}, il = {
|
|
1168
1168
|
key: 2,
|
|
1169
1169
|
class: "text-xs px-2 py-1 rounded-md bg-blue-600 text-white"
|
|
1170
|
-
},
|
|
1170
|
+
}, dl = {
|
|
1171
1171
|
key: 3,
|
|
1172
1172
|
class: "text-xs px-2 py-1 rounded-md bg-gray-600 text-white"
|
|
1173
|
-
},
|
|
1173
|
+
}, pl = { class: "text-lg font-medium" }, ul = { class: "text-sm text-gray-600" }, cl = { key: 0 }, hl = ["src"], ml = { class: "text-sm" }, fl = { key: 1 }, vl = ["href"], wl = { class: "text-sm flex items-center justify-between mt-1" }, yl = { class: "text-gray-800" }, bl = ["href"], Cl = /* @__PURE__ */ Be({
|
|
1174
1174
|
__name: "OneIslandLayout",
|
|
1175
1175
|
props: i1,
|
|
1176
|
-
emits: ["load-news", "load-tariff", "open-tariff", "browse"],
|
|
1177
|
-
setup(
|
|
1178
|
-
const r =
|
|
1179
|
-
var
|
|
1180
|
-
r("browse"), (
|
|
1176
|
+
emits: ["load-news", "load-tariff", "open-tariff", "browse", "workspace-click", "manage-workspaces"],
|
|
1177
|
+
setup(x, { emit: k }) {
|
|
1178
|
+
const r = k, p = x, M = () => {
|
|
1179
|
+
var o, d;
|
|
1180
|
+
r("browse"), (d = (o = p.handlers) == null ? void 0 : o.onBrowse) == null || d.call(o);
|
|
1181
|
+
}, $ = () => {
|
|
1182
|
+
var o, d;
|
|
1183
|
+
r("workspace-click"), (d = (o = p.handlers) == null ? void 0 : o.onWorkspace) == null || d.call(o);
|
|
1184
|
+
}, c = () => {
|
|
1185
|
+
var o, d, C;
|
|
1186
|
+
r("manage-workspaces"), (o = p.handlers) != null && o.onManageWorkspaces ? p.handlers.onManageWorkspaces() : (C = (d = p.handlers) == null ? void 0 : d.onChange) == null || C.call(d);
|
|
1181
1187
|
};
|
|
1182
|
-
let
|
|
1183
|
-
window.document.body.offsetWidth < 1024 && (window.localStorage.getItem("island-sidebar-slim") == null && window.localStorage.setItem("island-sidebar-slim", "1"),
|
|
1184
|
-
const
|
|
1185
|
-
|
|
1186
|
-
window.localStorage.setItem("island-sidebar-slim", String(
|
|
1188
|
+
let W = window.localStorage.getItem("island-sidebar-slim");
|
|
1189
|
+
window.document.body.offsetWidth < 1024 && (window.localStorage.getItem("island-sidebar-slim") == null && window.localStorage.setItem("island-sidebar-slim", "1"), W = "1");
|
|
1190
|
+
const z = B(W === "1");
|
|
1191
|
+
fe(z, (o) => {
|
|
1192
|
+
window.localStorage.setItem("island-sidebar-slim", String(o ? 1 : 0));
|
|
1187
1193
|
});
|
|
1188
|
-
const
|
|
1189
|
-
|
|
1190
|
-
},
|
|
1191
|
-
var
|
|
1192
|
-
const
|
|
1193
|
-
|
|
1194
|
-
},
|
|
1195
|
-
|
|
1196
|
-
() =>
|
|
1194
|
+
const T = B(!1), J = () => {
|
|
1195
|
+
T.value = !T.value, T.value && r("load-news");
|
|
1196
|
+
}, V = B(null), q = () => {
|
|
1197
|
+
var d, C, u;
|
|
1198
|
+
const o = (u = (C = (d = V.value) == null ? void 0 : d.$el) == null ? void 0 : C.querySelector) == null ? void 0 : u.call(C, "button");
|
|
1199
|
+
o == null || o.click();
|
|
1200
|
+
}, v = j(() => p.showHeadre);
|
|
1201
|
+
fe(
|
|
1202
|
+
() => p.showHeadre,
|
|
1197
1203
|
() => {
|
|
1198
|
-
|
|
1204
|
+
v.value = p.showHeadre;
|
|
1199
1205
|
}
|
|
1200
1206
|
);
|
|
1201
|
-
const
|
|
1202
|
-
|
|
1203
|
-
},
|
|
1204
|
-
|
|
1205
|
-
window.addEventListener("resize",
|
|
1206
|
-
}),
|
|
1207
|
-
window.removeEventListener("resize",
|
|
1207
|
+
const H = B(window.innerWidth), e = () => {
|
|
1208
|
+
H.value = window.innerWidth;
|
|
1209
|
+
}, h = j(() => H.value <= 768);
|
|
1210
|
+
Le(() => {
|
|
1211
|
+
window.addEventListener("resize", e);
|
|
1212
|
+
}), ze(() => {
|
|
1213
|
+
window.removeEventListener("resize", e);
|
|
1208
1214
|
});
|
|
1209
|
-
const
|
|
1210
|
-
var
|
|
1211
|
-
(
|
|
1215
|
+
const A = (o) => {
|
|
1216
|
+
var d, C;
|
|
1217
|
+
(C = (d = p.handlers) == null ? void 0 : d.onSetLang) == null || C.call(d, o);
|
|
1212
1218
|
};
|
|
1213
|
-
return (
|
|
1214
|
-
var
|
|
1215
|
-
return s(),
|
|
1219
|
+
return (o, d) => {
|
|
1220
|
+
var C, u, E, F, U, K, Q, n, y, X, Y, ee, se, te, le, oe, ne, m, G, ae, ve, we, ye, be, Ce;
|
|
1221
|
+
return s(), l("div", Bt, [
|
|
1216
1222
|
t("div", Mt, [
|
|
1217
|
-
!
|
|
1223
|
+
!h.value || !z.value ? (s(), f(d1, {
|
|
1218
1224
|
key: 0,
|
|
1219
|
-
items:
|
|
1225
|
+
items: o.sidebarItems,
|
|
1220
1226
|
island: !0,
|
|
1221
|
-
app:
|
|
1222
|
-
"logo-src":
|
|
1223
|
-
"with-news":
|
|
1224
|
-
news:
|
|
1225
|
-
isMobile:
|
|
1226
|
-
modelValue:
|
|
1227
|
-
onToggleMenu:
|
|
1228
|
-
onShowNews:
|
|
1229
|
-
onShowHelp:
|
|
1230
|
-
onSelectLanguage:
|
|
1231
|
-
onUpdateCollapsed:
|
|
1227
|
+
app: o.app,
|
|
1228
|
+
"logo-src": o.logoSrc,
|
|
1229
|
+
"with-news": o.news != null,
|
|
1230
|
+
news: o.news,
|
|
1231
|
+
isMobile: h.value,
|
|
1232
|
+
modelValue: z.value,
|
|
1233
|
+
onToggleMenu: d[0] || (d[0] = (w) => z.value = !z.value),
|
|
1234
|
+
onShowNews: J,
|
|
1235
|
+
onShowHelp: q,
|
|
1236
|
+
onSelectLanguage: A,
|
|
1237
|
+
onUpdateCollapsed: d[1] || (d[1] = (w) => z.value = !z.value)
|
|
1232
1238
|
}, null, 8, ["items", "app", "logo-src", "with-news", "news", "isMobile", "modelValue"])) : a("", !0),
|
|
1233
1239
|
t("div", Ot, [
|
|
1234
|
-
|
|
1240
|
+
ce(t("header", jt, [
|
|
1235
1241
|
t("div", zt, [
|
|
1236
|
-
|
|
1242
|
+
(C = o.handlers) != null && C.onWorkspace && (o.workspace || (u = o.app) != null && u.workspace) ? (s(), l("button", {
|
|
1237
1243
|
key: 0,
|
|
1244
|
+
type: "button",
|
|
1245
|
+
class: "flex items-center gap-2 px-2 py-1 rounded-10 bg-[#F5F5F5] hover:bg-secondary-body transition-colors min-w-0",
|
|
1246
|
+
onClick: $
|
|
1247
|
+
}, [
|
|
1248
|
+
_($e, {
|
|
1249
|
+
text: (F = o.workspace || ((E = o.app) == null ? void 0 : E.workspace)) == null ? void 0 : F.name,
|
|
1250
|
+
src: (K = o.workspace || ((U = o.app) == null ? void 0 : U.workspace)) == null ? void 0 : K.photo_url,
|
|
1251
|
+
size: 20,
|
|
1252
|
+
rounded: !1
|
|
1253
|
+
}, null, 8, ["text", "src"]),
|
|
1254
|
+
t("span", Tt, i((n = o.workspace || ((Q = o.app) == null ? void 0 : Q.workspace)) == null ? void 0 : n.name), 1),
|
|
1255
|
+
(s(), f(L(S(xe)), { class: "w-4 h-4 text-secondary-base shrink-0" }))
|
|
1256
|
+
])) : o.workspace || (y = o.app) != null && y.workspace ? (s(), f(Ye, {
|
|
1257
|
+
key: 1,
|
|
1238
1258
|
"append-body": !0,
|
|
1239
1259
|
stick: "bottom-start"
|
|
1240
1260
|
}, {
|
|
1241
|
-
button: Z(({ onToggle:
|
|
1242
|
-
var
|
|
1261
|
+
button: Z(({ onToggle: w }) => {
|
|
1262
|
+
var P, I, re, ie, de, pe;
|
|
1243
1263
|
return [
|
|
1244
1264
|
t("button", {
|
|
1245
1265
|
type: "button",
|
|
1246
1266
|
class: "flex items-center gap-2 px-2 py-1 rounded-10 bg-[#F5F5F5] hover:bg-secondary-body transition-colors min-w-0",
|
|
1247
|
-
onClick:
|
|
1267
|
+
onClick: (O) => ($(), w())
|
|
1248
1268
|
}, [
|
|
1249
|
-
|
|
1250
|
-
text: (
|
|
1251
|
-
src: (
|
|
1269
|
+
_($e, {
|
|
1270
|
+
text: (I = o.workspace || ((P = o.app) == null ? void 0 : P.workspace)) == null ? void 0 : I.name,
|
|
1271
|
+
src: (ie = o.workspace || ((re = o.app) == null ? void 0 : re.workspace)) == null ? void 0 : ie.photo_url,
|
|
1252
1272
|
size: 20,
|
|
1253
1273
|
rounded: !1
|
|
1254
1274
|
}, null, 8, ["text", "src"]),
|
|
1255
|
-
t("span",
|
|
1256
|
-
(s(),
|
|
1257
|
-
], 8,
|
|
1275
|
+
t("span", Ht, i((pe = o.workspace || ((de = o.app) == null ? void 0 : de.workspace)) == null ? void 0 : pe.name), 1),
|
|
1276
|
+
(s(), f(L(S(xe)), { class: "w-4 h-4 text-secondary-base shrink-0" }))
|
|
1277
|
+
], 8, Vt)
|
|
1258
1278
|
];
|
|
1259
1279
|
}),
|
|
1260
|
-
menu: Z(({ onToggle:
|
|
1261
|
-
var
|
|
1280
|
+
menu: Z(({ onToggle: w }) => {
|
|
1281
|
+
var P, I, re, ie, de, pe;
|
|
1262
1282
|
return [
|
|
1263
|
-
t("div",
|
|
1264
|
-
(s(!0),
|
|
1265
|
-
key:
|
|
1283
|
+
t("div", At, [
|
|
1284
|
+
(s(!0), l(R, null, D(o.workspaces || [], (O) => (s(), l("div", {
|
|
1285
|
+
key: O.name,
|
|
1266
1286
|
class: "flex items-center gap-2 px-3 py-2 hover:bg-secondary-10 cursor-pointer",
|
|
1267
|
-
onClick: (
|
|
1268
|
-
var
|
|
1269
|
-
return (
|
|
1287
|
+
onClick: (ke) => {
|
|
1288
|
+
var N, ue;
|
|
1289
|
+
return (ue = (N = o.handlers) == null ? void 0 : N.onChange) == null || ue.call(N, O), w();
|
|
1270
1290
|
}
|
|
1271
1291
|
}, [
|
|
1272
|
-
|
|
1273
|
-
text:
|
|
1274
|
-
src:
|
|
1292
|
+
_($e, {
|
|
1293
|
+
text: O.name,
|
|
1294
|
+
src: O.photo_url,
|
|
1275
1295
|
size: 24,
|
|
1276
1296
|
rounded: !1
|
|
1277
1297
|
}, null, 8, ["text", "src"]),
|
|
1278
|
-
t("span",
|
|
1279
|
-
], 8,
|
|
1280
|
-
(
|
|
1281
|
-
(
|
|
1282
|
-
(s(!0),
|
|
1283
|
-
key:
|
|
1298
|
+
t("span", Ft, i(O.name), 1)
|
|
1299
|
+
], 8, Et))), 128)),
|
|
1300
|
+
(P = o.workspaces) != null && P.length ? (s(), l("div", Pt)) : a("", !0),
|
|
1301
|
+
(I = o.apps) != null && I.length ? (s(), l("div", Wt, i(((re = o.labels) == null ? void 0 : re.apps) || "Apps"), 1)) : a("", !0),
|
|
1302
|
+
(s(!0), l(R, null, D(o.apps || [], (O) => (s(), l("div", {
|
|
1303
|
+
key: O.id,
|
|
1284
1304
|
class: "flex items-center gap-2 px-3 py-2 hover:bg-secondary-10 cursor-pointer",
|
|
1285
|
-
onClick: (
|
|
1286
|
-
var
|
|
1287
|
-
return (
|
|
1305
|
+
onClick: (ke) => {
|
|
1306
|
+
var N, ue;
|
|
1307
|
+
return (ue = (N = o.handlers) == null ? void 0 : N.onApp) == null || ue.call(N, O), w();
|
|
1288
1308
|
}
|
|
1289
1309
|
}, [
|
|
1290
|
-
|
|
1291
|
-
text:
|
|
1292
|
-
src:
|
|
1310
|
+
_($e, {
|
|
1311
|
+
text: O.name,
|
|
1312
|
+
src: O.photo_url,
|
|
1293
1313
|
size: 24,
|
|
1294
1314
|
rounded: !1
|
|
1295
1315
|
}, null, 8, ["text", "src"]),
|
|
1296
|
-
t("span",
|
|
1297
|
-
], 8,
|
|
1298
|
-
(
|
|
1316
|
+
t("span", Gt, i(O.name), 1)
|
|
1317
|
+
], 8, Nt))), 128)),
|
|
1318
|
+
(ie = o.handlers) != null && ie.onManageWorkspaces || (de = o.handlers) != null && de.onChange ? (s(), l("div", It, [
|
|
1299
1319
|
t("button", {
|
|
1300
1320
|
type: "button",
|
|
1301
1321
|
class: "w-full text-left text-xs text-secondary-content px-3 py-2 hover:bg-secondary-10",
|
|
1302
|
-
onClick: (
|
|
1303
|
-
}, i(((
|
|
1322
|
+
onClick: (O) => (c(), w())
|
|
1323
|
+
}, i(((pe = o.labels) == null ? void 0 : pe.change) || "Change workspace"), 9, Rt)
|
|
1304
1324
|
])) : a("", !0)
|
|
1305
1325
|
])
|
|
1306
1326
|
];
|
|
1307
1327
|
}),
|
|
1308
1328
|
_: 1
|
|
1309
1329
|
})) : a("", !0),
|
|
1310
|
-
|
|
1330
|
+
me(o.$slots, "head-left", {}, void 0, !0)
|
|
1311
1331
|
]),
|
|
1312
|
-
t("div",
|
|
1313
|
-
(
|
|
1332
|
+
t("div", qt, [
|
|
1333
|
+
(X = o.improveTariff) != null && X.label ? (s(), l("a", {
|
|
1314
1334
|
key: 0,
|
|
1315
|
-
href: ((
|
|
1335
|
+
href: ((Y = o.improveTariff) == null ? void 0 : Y.url) || "#",
|
|
1316
1336
|
class: "flex items-center gap-1.5 bg-[#FFF8E4] hover:bg-[#FAEBC2] rounded-full px-2 py-0.5 transition-colors",
|
|
1317
|
-
onClick:
|
|
1318
|
-
var
|
|
1319
|
-
return (
|
|
1337
|
+
onClick: d[2] || (d[2] = he((w) => {
|
|
1338
|
+
var P, I;
|
|
1339
|
+
return (I = (P = o.handlers) == null ? void 0 : P.onImproveTariff) == null ? void 0 : I.call(P);
|
|
1320
1340
|
}, ["prevent"]))
|
|
1321
1341
|
}, [
|
|
1322
|
-
|
|
1342
|
+
o.improveTariff.icon ? (s(), f(L(o.improveTariff.icon), {
|
|
1323
1343
|
key: 0,
|
|
1324
1344
|
class: "w-4 h-4 text-warning-base"
|
|
1325
1345
|
})) : a("", !0),
|
|
1326
|
-
t("span",
|
|
1327
|
-
], 8,
|
|
1328
|
-
|
|
1329
|
-
|
|
1346
|
+
t("span", Zt, i(o.improveTariff.label), 1)
|
|
1347
|
+
], 8, Ut)) : a("", !0),
|
|
1348
|
+
me(o.$slots, "head-right", {}, void 0, !0),
|
|
1349
|
+
o.help ? (s(), f(e1, {
|
|
1330
1350
|
key: 1,
|
|
1331
1351
|
ref_key: "helpMenuRef",
|
|
1332
|
-
ref:
|
|
1333
|
-
help:
|
|
1352
|
+
ref: V,
|
|
1353
|
+
help: o.help
|
|
1334
1354
|
}, null, 8, ["help"])) : a("", !0),
|
|
1335
|
-
|
|
1336
|
-
workspace:
|
|
1337
|
-
apps:
|
|
1338
|
-
"change-label": ((
|
|
1339
|
-
"apps-title": ((
|
|
1340
|
-
"on-app": (
|
|
1341
|
-
"on-change": (
|
|
1342
|
-
onOpen:
|
|
1355
|
+
_(s1, {
|
|
1356
|
+
workspace: o.workspace || ((ee = o.app) == null ? void 0 : ee.workspace),
|
|
1357
|
+
apps: o.apps || ((se = o.app) == null ? void 0 : se.apps) || [],
|
|
1358
|
+
"change-label": ((te = o.labels) == null ? void 0 : te.change) || "Change",
|
|
1359
|
+
"apps-title": ((le = o.labels) == null ? void 0 : le.apps) || "Apps",
|
|
1360
|
+
"on-app": (oe = o.handlers) == null ? void 0 : oe.onApp,
|
|
1361
|
+
"on-change": (ne = o.handlers) == null ? void 0 : ne.onChange,
|
|
1362
|
+
onOpen: M
|
|
1343
1363
|
}, null, 8, ["workspace", "apps", "change-label", "apps-title", "on-app", "on-change"]),
|
|
1344
|
-
|
|
1345
|
-
user:
|
|
1346
|
-
menu:
|
|
1347
|
-
app:
|
|
1348
|
-
"account-label": ((
|
|
1349
|
-
"logout-label": ((
|
|
1350
|
-
"version-label": ((
|
|
1351
|
-
"on-account": (
|
|
1352
|
-
"on-logout": (
|
|
1364
|
+
_(t1, {
|
|
1365
|
+
user: o.user,
|
|
1366
|
+
menu: o.menu,
|
|
1367
|
+
app: o.app,
|
|
1368
|
+
"account-label": ((m = o.labels) == null ? void 0 : m.account) || "Account",
|
|
1369
|
+
"logout-label": ((G = o.labels) == null ? void 0 : G.logout) || "Logout",
|
|
1370
|
+
"version-label": ((ae = o.labels) == null ? void 0 : ae.version) || "",
|
|
1371
|
+
"on-account": (ve = o.handlers) == null ? void 0 : ve.onAccount,
|
|
1372
|
+
"on-logout": (we = o.handlers) == null ? void 0 : we.onLogout
|
|
1353
1373
|
}, null, 8, ["user", "menu", "app", "account-label", "logout-label", "version-label", "on-account", "on-logout"])
|
|
1354
1374
|
])
|
|
1355
1375
|
], 512), [
|
|
1356
|
-
[
|
|
1376
|
+
[_e, v.value]
|
|
1357
1377
|
]),
|
|
1358
|
-
t("div",
|
|
1359
|
-
|
|
1378
|
+
t("div", Dt, [
|
|
1379
|
+
me(o.$slots, "default", {}, void 0, !0)
|
|
1360
1380
|
])
|
|
1361
1381
|
])
|
|
1362
1382
|
]),
|
|
1363
|
-
|
|
1364
|
-
|
|
1383
|
+
o.news ? (s(), l("div", Jt, [
|
|
1384
|
+
T.value ? (s(), l("div", {
|
|
1365
1385
|
key: 0,
|
|
1366
1386
|
class: "fixed top-0 left-0 h-dvh w-screen bg-gray-100 bg-opacity-40 z-50",
|
|
1367
|
-
onClick:
|
|
1387
|
+
onClick: d[3] || (d[3] = he((w) => T.value = !1, ["self"]))
|
|
1368
1388
|
})) : a("", !0),
|
|
1369
1389
|
t("div", {
|
|
1370
|
-
class:
|
|
1390
|
+
class: b(["opacity-100 shadow-lg transition-all fixed top-0 left-0 h-dvh overflow-hidden z-50 bg-white", [T.value ? "sm:w-[560px] w-full" : "w-0"]])
|
|
1371
1391
|
}, [
|
|
1372
|
-
|
|
1373
|
-
t("div",
|
|
1374
|
-
t("div",
|
|
1375
|
-
|
|
1376
|
-
|
|
1392
|
+
T.value ? (s(), l("div", Kt, [
|
|
1393
|
+
t("div", Qt, [
|
|
1394
|
+
t("div", Xt, [
|
|
1395
|
+
_(Se, { class: "w-10 h-10" }),
|
|
1396
|
+
d[5] || (d[5] = t("div", { class: "w-full font-medium" }, "OneB News", -1)),
|
|
1377
1397
|
t("div", null, [
|
|
1378
|
-
|
|
1398
|
+
_(Te, {
|
|
1379
1399
|
variant: "touch",
|
|
1380
|
-
icon:
|
|
1381
|
-
onClick:
|
|
1400
|
+
icon: S(l1),
|
|
1401
|
+
onClick: d[4] || (d[4] = (w) => T.value = !1)
|
|
1382
1402
|
}, null, 8, ["icon"])
|
|
1383
1403
|
])
|
|
1384
1404
|
]),
|
|
1385
|
-
t("div",
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
])) : ((
|
|
1389
|
-
t("div",
|
|
1390
|
-
])) : ((
|
|
1391
|
-
(s(!0),
|
|
1392
|
-
key:
|
|
1405
|
+
t("div", Yt, [
|
|
1406
|
+
o.news.isLoading && ((ye = o.news.items) == null ? void 0 : ye.length) === 0 ? (s(), l("div", el, [
|
|
1407
|
+
_(o1, { class: "w-6 h-6 text-gray-600 mx-auto" })
|
|
1408
|
+
])) : ((be = o.news.items) == null ? void 0 : be.length) === 0 ? (s(), l("div", sl, [
|
|
1409
|
+
t("div", tl, i(o.news.emptyText), 1)
|
|
1410
|
+
])) : ((Ce = o.news.items) == null ? void 0 : Ce.length) > 0 ? (s(), l("div", ll, [
|
|
1411
|
+
(s(!0), l(R, null, D(o.news.items, (w) => (s(), l("div", {
|
|
1412
|
+
key: w.id,
|
|
1393
1413
|
class: "p-3"
|
|
1394
1414
|
}, [
|
|
1395
|
-
t("div",
|
|
1415
|
+
t("div", ol, [
|
|
1396
1416
|
t("div", null, [
|
|
1397
|
-
|
|
1398
|
-
|
|
1417
|
+
w.type ? (s(), l("div", nl, [
|
|
1418
|
+
w.type === 10 ? (s(), l("span", al, "update")) : w.type === 11 ? (s(), l("span", rl, "warning")) : w.type === 12 ? (s(), l("span", il, "notice")) : w.type === 13 ? (s(), l("span", dl, "ads")) : a("", !0)
|
|
1399
1419
|
])) : a("", !0),
|
|
1400
|
-
t("div",
|
|
1401
|
-
t("div",
|
|
1420
|
+
t("div", pl, i(w.title), 1),
|
|
1421
|
+
t("div", ul, i(w.summary), 1)
|
|
1402
1422
|
]),
|
|
1403
|
-
|
|
1423
|
+
w.image_url ? (s(), l("div", cl, [
|
|
1404
1424
|
t("img", {
|
|
1405
|
-
src:
|
|
1425
|
+
src: w.image_url,
|
|
1406
1426
|
alt: "",
|
|
1407
1427
|
class: "w-full rounded-md"
|
|
1408
|
-
}, null, 8,
|
|
1428
|
+
}, null, 8, hl)
|
|
1409
1429
|
])) : a("", !0),
|
|
1410
|
-
t("div",
|
|
1411
|
-
|
|
1412
|
-
text:
|
|
1430
|
+
t("div", ml, [
|
|
1431
|
+
_(n1, {
|
|
1432
|
+
text: w.body
|
|
1413
1433
|
}, null, 8, ["text"])
|
|
1414
1434
|
]),
|
|
1415
|
-
|
|
1435
|
+
w.video_url ? (s(), l("div", fl, [
|
|
1416
1436
|
t("a", {
|
|
1417
|
-
href:
|
|
1437
|
+
href: w.video_url,
|
|
1418
1438
|
target: "_blank",
|
|
1419
1439
|
class: "text-blue-600 hover:text-blue-700 px-3 py-2 border rounded-md w-full block"
|
|
1420
|
-
}, i(
|
|
1440
|
+
}, i(o.news.openVideoText), 9, vl)
|
|
1421
1441
|
])) : a("", !0),
|
|
1422
|
-
t("div",
|
|
1423
|
-
t("span",
|
|
1424
|
-
|
|
1442
|
+
t("div", wl, [
|
|
1443
|
+
t("span", yl, i(w.published), 1),
|
|
1444
|
+
w.post_url ? (s(), l("a", {
|
|
1425
1445
|
key: 0,
|
|
1426
|
-
href:
|
|
1446
|
+
href: w.post_url,
|
|
1427
1447
|
target: "_blank",
|
|
1428
1448
|
class: "text-blue-600 hover:text-blue-700 block"
|
|
1429
|
-
}, i(
|
|
1449
|
+
}, i(o.news.moreText), 9, bl)) : a("", !0)
|
|
1430
1450
|
])
|
|
1431
1451
|
])
|
|
1432
1452
|
]))), 128))
|
|
@@ -1440,9 +1460,9 @@ const Al = /* @__PURE__ */ we(St, [["__scopeId", "data-v-f5bf3126"]]), Bt = { cl
|
|
|
1440
1460
|
};
|
|
1441
1461
|
}
|
|
1442
1462
|
});
|
|
1443
|
-
const
|
|
1463
|
+
const Fl = /* @__PURE__ */ Me(Cl, [["__scopeId", "data-v-fd9db97f"]]);
|
|
1444
1464
|
export {
|
|
1445
|
-
|
|
1446
|
-
|
|
1465
|
+
Fl as OneIslandLayout,
|
|
1466
|
+
El as OneMainLayout,
|
|
1447
1467
|
d1 as OneSidebar
|
|
1448
1468
|
};
|