@oneb/ui-vue 0.0.95 → 0.0.96
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/layout/index.cjs +1 -1
- package/dist/layout/index.js +297 -283
- package/dist/layout/layout.d.ts +13 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/layout/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { openBlock as t, createElementBlock as
|
|
2
|
-
import { r as
|
|
3
|
-
import { _ as
|
|
4
|
-
import { _ as T1, S as
|
|
1
|
+
import { openBlock as t, createElementBlock as s, createElementVNode as e, defineComponent as a1, computed as S, ref as L, resolveComponent as O1, Fragment as G, toDisplayString as p, createCommentVNode as n, normalizeClass as x, createBlock as C, resolveDynamicComponent as _, unref as b, withModifiers as e1, withCtx as n1, renderList as t1, watch as r1, onMounted as j1, onBeforeUnmount as I1, watchEffect as A1, shallowRef as H1, normalizeStyle as P1, withDirectives as S1, vShow as M1, createVNode as O, createTextVNode as F1, onUnmounted as N1, renderSlot as B1 } from "vue";
|
|
2
|
+
import { r as l1, c as o1, d as W1, O as q1, b as U1 } from "../OneBrowserMenu-8cf71483.js";
|
|
3
|
+
import { _ as i1 } from "../_plugin-vue_export-helper-dad06003.js";
|
|
4
|
+
import { _ as T1, S as R1 } from "../index-ab76dea6.js";
|
|
5
5
|
import { r as Z1 } from "../XMarkIcon-51ef0691.js";
|
|
6
6
|
import "../common/index.js";
|
|
7
7
|
const z1 = {
|
|
@@ -11,7 +11,11 @@ const z1 = {
|
|
|
11
11
|
},
|
|
12
12
|
slim: {
|
|
13
13
|
type: Boolean,
|
|
14
|
-
default: !
|
|
14
|
+
default: !1
|
|
15
|
+
},
|
|
16
|
+
isMobile: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
default: !1
|
|
15
19
|
},
|
|
16
20
|
app: {
|
|
17
21
|
type: Object
|
|
@@ -41,6 +45,10 @@ const z1 = {
|
|
|
41
45
|
};
|
|
42
46
|
}
|
|
43
47
|
},
|
|
48
|
+
isMobile: {
|
|
49
|
+
type: Boolean,
|
|
50
|
+
default: !1
|
|
51
|
+
},
|
|
44
52
|
href: {
|
|
45
53
|
type: String
|
|
46
54
|
},
|
|
@@ -53,7 +61,7 @@ const z1 = {
|
|
|
53
61
|
},
|
|
54
62
|
labelTop: {
|
|
55
63
|
type: String,
|
|
56
|
-
|
|
64
|
+
default: ""
|
|
57
65
|
},
|
|
58
66
|
icon: {
|
|
59
67
|
type: [Function, Object]
|
|
@@ -116,8 +124,8 @@ const z1 = {
|
|
|
116
124
|
type: Object
|
|
117
125
|
}
|
|
118
126
|
};
|
|
119
|
-
function J1(
|
|
120
|
-
return t(),
|
|
127
|
+
function J1(u, c) {
|
|
128
|
+
return t(), s("svg", {
|
|
121
129
|
xmlns: "http://www.w3.org/2000/svg",
|
|
122
130
|
fill: "none",
|
|
123
131
|
viewBox: "0 0 24 24",
|
|
@@ -132,8 +140,8 @@ function J1(h, f) {
|
|
|
132
140
|
})
|
|
133
141
|
]);
|
|
134
142
|
}
|
|
135
|
-
function K1(
|
|
136
|
-
return t(),
|
|
143
|
+
function K1(u, c) {
|
|
144
|
+
return t(), s("svg", {
|
|
137
145
|
xmlns: "http://www.w3.org/2000/svg",
|
|
138
146
|
fill: "none",
|
|
139
147
|
viewBox: "0 0 24 24",
|
|
@@ -148,8 +156,8 @@ function K1(h, f) {
|
|
|
148
156
|
})
|
|
149
157
|
]);
|
|
150
158
|
}
|
|
151
|
-
function Q1(
|
|
152
|
-
return t(),
|
|
159
|
+
function Q1(u, c) {
|
|
160
|
+
return t(), s("svg", {
|
|
153
161
|
xmlns: "http://www.w3.org/2000/svg",
|
|
154
162
|
fill: "none",
|
|
155
163
|
viewBox: "0 0 24 24",
|
|
@@ -164,8 +172,8 @@ function Q1(h, f) {
|
|
|
164
172
|
})
|
|
165
173
|
]);
|
|
166
174
|
}
|
|
167
|
-
function X1(
|
|
168
|
-
return t(),
|
|
175
|
+
function X1(u, c) {
|
|
176
|
+
return t(), s("svg", {
|
|
169
177
|
xmlns: "http://www.w3.org/2000/svg",
|
|
170
178
|
fill: "none",
|
|
171
179
|
viewBox: "0 0 24 24",
|
|
@@ -205,116 +213,119 @@ const Y1 = {
|
|
|
205
213
|
}, xe = { class: "text-xs" }, be = {
|
|
206
214
|
key: 0,
|
|
207
215
|
class: "pr-3"
|
|
208
|
-
}, ye = /* @__PURE__ */
|
|
216
|
+
}, ye = /* @__PURE__ */ a1({
|
|
209
217
|
__name: "OneSidebarLink",
|
|
210
218
|
props: D1,
|
|
211
219
|
emits: ["update-collapsed"],
|
|
212
|
-
setup(
|
|
213
|
-
const a = h,
|
|
214
|
-
|
|
215
|
-
},
|
|
216
|
-
a.subItems && a.subItems.length > 0 && (r.preventDefault(),
|
|
220
|
+
setup(u, { emit: c }) {
|
|
221
|
+
const a = u, h = c, y = S(() => a.href ?? !1), w = S(() => f(a)), f = (r) => r.route ? r.route : r.routeName ? { name: r.routeName } : "", g = L(a.open), j = () => {
|
|
222
|
+
g.value = !g.value;
|
|
223
|
+
}, k = (r, $) => {
|
|
224
|
+
a.subItems && a.subItems.length > 0 && !$ && (r.preventDefault(), j()), a.isMobile && h("update-collapsed");
|
|
217
225
|
};
|
|
218
|
-
return (r,
|
|
219
|
-
const
|
|
220
|
-
return t(),
|
|
221
|
-
r.labelTop && !r.slim ? (t(),
|
|
222
|
-
|
|
226
|
+
return (r, $) => {
|
|
227
|
+
const l = O1("RouterLink");
|
|
228
|
+
return t(), s(G, null, [
|
|
229
|
+
r.labelTop && !r.slim ? (t(), s("p", Y1, p(r.labelTop), 1)) : n("", !0),
|
|
230
|
+
y.value ? (t(), s("a", {
|
|
223
231
|
key: 1,
|
|
224
|
-
href:
|
|
232
|
+
href: y.value,
|
|
225
233
|
class: x(["flex items-center relative rounded-lg text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66] mb-0.5", [r.slim ? "w-[44px] h-[44px]" : "h-[44px] w-full"]]),
|
|
226
|
-
onClick:
|
|
234
|
+
onClick: k
|
|
227
235
|
}, [
|
|
228
236
|
e("div", te, [
|
|
229
|
-
r.icon ? (t(),
|
|
230
|
-
(t(),
|
|
237
|
+
r.icon ? (t(), s("div", se, [
|
|
238
|
+
(t(), C(_(r.icon), { class: "w-[24px] h-[24px] mx-auto" }))
|
|
231
239
|
])) : n("", !0),
|
|
232
240
|
e("div", le, [
|
|
233
|
-
e("span", oe,
|
|
241
|
+
e("span", oe, p(r.label), 1)
|
|
234
242
|
]),
|
|
235
|
-
a.subItems && a.subItems.length > 0 ? (t(),
|
|
243
|
+
a.subItems && a.subItems.length > 0 ? (t(), s("div", {
|
|
236
244
|
key: 1,
|
|
237
245
|
class: x(["ml-auto", [r.slim ? "hidden" : ""]])
|
|
238
246
|
}, [
|
|
239
|
-
(t(),
|
|
247
|
+
(t(), C(_(g.value ? b(l1) : b(o1)), { class: "w-[16px] h-[16px]" }))
|
|
240
248
|
], 2)) : n("", !0)
|
|
241
249
|
])
|
|
242
250
|
], 10, ee)) : n("", !0),
|
|
243
|
-
!
|
|
251
|
+
!y.value && w.value ? (t(), C(l, {
|
|
244
252
|
key: 2,
|
|
245
|
-
to:
|
|
253
|
+
to: w.value,
|
|
246
254
|
class: x(["relative flex items-center cursor-pointer rounded-lg text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66] mb-0.5", [r.slim ? "w-[44px] h-[44px]" : "h-[44px] w-full"]]),
|
|
247
255
|
"active-class": "bg-primary-10 !text-primary-base",
|
|
248
256
|
"exact-active-class": "bg-primary-10 !text-primary-base",
|
|
249
257
|
exact: r.exact,
|
|
250
|
-
onClick:
|
|
258
|
+
onClick: e1(k, ["prevent"])
|
|
251
259
|
}, {
|
|
252
|
-
default:
|
|
260
|
+
default: n1(() => [
|
|
253
261
|
e("div", ne, [
|
|
254
|
-
r.icon ? (t(),
|
|
255
|
-
(t(),
|
|
262
|
+
r.icon ? (t(), s("div", ae, [
|
|
263
|
+
(t(), C(_(r.icon), { class: "w-[24px] h-[24px] mx-auto" }))
|
|
256
264
|
])) : n("", !0),
|
|
257
265
|
e("div", re, [
|
|
258
|
-
e("span", ie,
|
|
266
|
+
e("span", ie, p(r.label), 1)
|
|
259
267
|
]),
|
|
260
|
-
a.subItems && a.subItems.length > 0 && !r.slim ? (t(),
|
|
261
|
-
(t(),
|
|
268
|
+
a.subItems && a.subItems.length > 0 && !r.slim ? (t(), s("div", de, [
|
|
269
|
+
(t(), C(_(g.value ? b(l1) : b(o1)), { class: "w-[16px] h-[16px]" }))
|
|
262
270
|
])) : n("", !0)
|
|
263
271
|
])
|
|
264
272
|
]),
|
|
265
273
|
_: 1
|
|
266
274
|
}, 8, ["to", "exact", "class"])) : n("", !0),
|
|
267
|
-
!
|
|
275
|
+
!y.value && !w.value ? (t(), s("span", {
|
|
268
276
|
key: 3,
|
|
269
|
-
onClick:
|
|
277
|
+
onClick: e1(k, ["prevent"]),
|
|
270
278
|
class: x([[r.slim ? "w-[44px] h-[44px]" : "h-[44px] w-full"], "mb-0.5 relative flex items-center cursor-pointer rounded-lg text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66]"])
|
|
271
279
|
}, [
|
|
272
280
|
e("div", pe, [
|
|
273
|
-
r.icon ? (t(),
|
|
274
|
-
(t(),
|
|
281
|
+
r.icon ? (t(), s("div", ue, [
|
|
282
|
+
(t(), C(_(r.icon), { class: "w-[24px] h-[24px] mx-auto" }))
|
|
275
283
|
])) : n("", !0),
|
|
276
284
|
e("div", ce, [
|
|
277
|
-
e("span", he,
|
|
285
|
+
e("span", he, p(r.label), 1)
|
|
278
286
|
]),
|
|
279
|
-
a.subItems && a.subItems.length > 0 && !r.slim ? (t(),
|
|
280
|
-
(t(),
|
|
287
|
+
a.subItems && a.subItems.length > 0 && !r.slim ? (t(), s("div", fe, [
|
|
288
|
+
(t(), C(_(g.value ? b(l1) : b(o1)), { class: "w-[16px] h-[16px]" }))
|
|
281
289
|
])) : n("", !0)
|
|
282
290
|
])
|
|
283
291
|
], 2)) : n("", !0),
|
|
284
|
-
|
|
292
|
+
g.value && a.subItems ? (t(), s("div", {
|
|
285
293
|
key: 4,
|
|
286
294
|
class: x([r.slim ? "hidden" : "pl-[36px] pr-3"])
|
|
287
295
|
}, [
|
|
288
296
|
e("div", {
|
|
289
297
|
class: x([(r.slim, "")])
|
|
290
298
|
}, [
|
|
291
|
-
(t(!0),
|
|
292
|
-
key:
|
|
299
|
+
(t(!0), s(G, null, t1(a.subItems, (i) => (t(), s("div", {
|
|
300
|
+
key: i.label,
|
|
293
301
|
class: x([(r.slim, "")])
|
|
294
302
|
}, [
|
|
295
|
-
|
|
303
|
+
i.href ? (t(), s("a", {
|
|
296
304
|
key: 0,
|
|
297
|
-
href:
|
|
305
|
+
href: i.href,
|
|
298
306
|
class: "flex items-center mb-0.5 rounded-lg p-2 text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66]"
|
|
299
307
|
}, [
|
|
300
308
|
e("div", me, [
|
|
301
|
-
e("span", Ce,
|
|
302
|
-
|
|
303
|
-
(t(),
|
|
309
|
+
e("span", Ce, p(i.label), 1),
|
|
310
|
+
i.icon ? (t(), s("div", we, [
|
|
311
|
+
(t(), C(_(i.icon), { class: "w-[15px] h-[15px] mx-auto" }))
|
|
304
312
|
])) : n("", !0)
|
|
305
313
|
])
|
|
306
|
-
], 8, ve)) : (t(),
|
|
314
|
+
], 8, ve)) : (t(), C(l, {
|
|
307
315
|
key: 1,
|
|
308
|
-
to:
|
|
316
|
+
to: f(i),
|
|
317
|
+
onClick: $[0] || ($[0] = e1((A) => {
|
|
318
|
+
k(A, !0);
|
|
319
|
+
}, ["prevent"])),
|
|
309
320
|
class: "flex items-center rounded-lg p-2 text-sm font-medium hover:bg-primary-10-hover mb-0.5 hover:text-primary-base transition-all text-[#525B66]",
|
|
310
321
|
exact: r.exact,
|
|
311
322
|
"active-class": "bg-primary-10 !text-primary-base",
|
|
312
323
|
"exact-active-class": "bg-primary-10 !text-primary-base"
|
|
313
324
|
}, {
|
|
314
|
-
default:
|
|
315
|
-
e("span", xe,
|
|
316
|
-
|
|
317
|
-
(t(),
|
|
325
|
+
default: n1(() => [
|
|
326
|
+
e("span", xe, p(i.label), 1),
|
|
327
|
+
i.icon ? (t(), s("div", be, [
|
|
328
|
+
(t(), C(_(i.icon), { class: "w-[20px] h-[20px] mx-auto" }))
|
|
318
329
|
])) : n("", !0)
|
|
319
330
|
]),
|
|
320
331
|
_: 2
|
|
@@ -325,15 +336,15 @@ const Y1 = {
|
|
|
325
336
|
], 64);
|
|
326
337
|
};
|
|
327
338
|
}
|
|
328
|
-
}),
|
|
339
|
+
}), ge = {}, _e = {
|
|
329
340
|
xmlns: "http://www.w3.org/2000/svg",
|
|
330
341
|
width: "24",
|
|
331
342
|
height: "24",
|
|
332
343
|
viewBox: "0 0 24 24",
|
|
333
344
|
fill: "none"
|
|
334
345
|
};
|
|
335
|
-
function Le(
|
|
336
|
-
return t(),
|
|
346
|
+
function Le(u, c) {
|
|
347
|
+
return t(), s("svg", _e, c[0] || (c[0] = [
|
|
337
348
|
e("path", {
|
|
338
349
|
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",
|
|
339
350
|
fill: "currentColor"
|
|
@@ -350,44 +361,44 @@ function Le(h, f) {
|
|
|
350
361
|
}, null, -1)
|
|
351
362
|
]));
|
|
352
363
|
}
|
|
353
|
-
const E1 = /* @__PURE__ */
|
|
354
|
-
if (Array.isArray(
|
|
355
|
-
return
|
|
356
|
-
const
|
|
357
|
-
return Array.isArray(
|
|
358
|
-
}, ke = (
|
|
364
|
+
const E1 = /* @__PURE__ */ i1(ge, [["render", Le]]), V1 = (u) => {
|
|
365
|
+
if (Array.isArray(u))
|
|
366
|
+
return u.map(b);
|
|
367
|
+
const c = b(u);
|
|
368
|
+
return Array.isArray(c) ? c : [c];
|
|
369
|
+
}, ke = (u, c) => {
|
|
359
370
|
let a;
|
|
360
|
-
const
|
|
371
|
+
const h = (y) => {
|
|
361
372
|
y.forEach((w) => {
|
|
362
|
-
const
|
|
363
|
-
if (
|
|
364
|
-
if (!(
|
|
373
|
+
const f = b(w);
|
|
374
|
+
if (f) {
|
|
375
|
+
if (!(f instanceof Element))
|
|
365
376
|
throw console.error("Vuestic: Trying to observe non-HTMLElement", {
|
|
366
|
-
target:
|
|
367
|
-
array:
|
|
377
|
+
target: f,
|
|
378
|
+
array: u
|
|
368
379
|
}), new Error("Vuestic: Unable to observe non-HTMLElement");
|
|
369
|
-
|
|
380
|
+
f && (a == null || a.observe(f));
|
|
370
381
|
}
|
|
371
382
|
});
|
|
372
383
|
};
|
|
373
|
-
return
|
|
374
|
-
a == null || a.disconnect(),
|
|
384
|
+
return r1(u, (y) => {
|
|
385
|
+
a == null || a.disconnect(), h(V1(y));
|
|
375
386
|
}), j1(() => {
|
|
376
|
-
a = new ResizeObserver(
|
|
387
|
+
a = new ResizeObserver(c), h(V1(u));
|
|
377
388
|
}), I1(() => a == null ? void 0 : a.disconnect()), a;
|
|
378
|
-
}, $e = (
|
|
379
|
-
const
|
|
380
|
-
return ke([
|
|
389
|
+
}, $e = (u) => {
|
|
390
|
+
const c = L(null);
|
|
391
|
+
return ke([u], () => {
|
|
381
392
|
var a;
|
|
382
|
-
|
|
393
|
+
c.value = ((a = u.value) == null ? void 0 : a.clientWidth) ?? null;
|
|
383
394
|
}), A1(() => {
|
|
384
395
|
var a;
|
|
385
|
-
|
|
386
|
-
}),
|
|
387
|
-
}, Se = { class: "mt-auto shrink" },
|
|
396
|
+
c.value = ((a = u.value) == null ? void 0 : a.clientWidth) ?? null;
|
|
397
|
+
}), c;
|
|
398
|
+
}, Se = { class: "mt-auto shrink" }, Me = ["href"], Be = { class: "relative rounded-lg bg-[#FFF8E4] px-1 py-3" }, Ve = { class: "w-[44px] mx-auto" }, Oe = { class: "text-center text-xs pt-2" }, je = {
|
|
388
399
|
key: 1,
|
|
389
400
|
class: "flex justify-between border rounded-lg p-2 bg-[#F5F5F5] mb-3 w-full"
|
|
390
|
-
}, Ae = { class: "flex items-center space-x-2 text-[#525B66]" }, Te = { class: "w-[24px] mx-auto" }, ze = { class: "text-sm" }, Ee = { class: "text-xs" }, Ie = ["href"], He = { class: "flex flex-nowrap items-center w-max h-[24px]" }, Pe = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full text-[#525B66]" }, Fe = { class: "py-[8px] pl-0 pr-[8px]" }, Ne = ["href"], We = { class: "flex flex-nowrap items-center w-max h-[24px]" }, qe = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" },
|
|
401
|
+
}, Ae = { class: "flex items-center space-x-2 text-[#525B66]" }, Te = { class: "w-[24px] mx-auto" }, ze = { class: "text-sm" }, Ee = { class: "text-xs" }, Ie = ["href"], He = { class: "flex flex-nowrap items-center w-max h-[24px]" }, Pe = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full text-[#525B66]" }, Fe = { class: "py-[8px] pl-0 pr-[8px]" }, Ne = ["href"], We = { class: "flex flex-nowrap items-center w-max h-[24px]" }, qe = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, Ue = { class: "py-[8px] pl-0 pr-[8px]" }, Re = {
|
|
391
402
|
key: 4,
|
|
392
403
|
class: "custom-select ml-3 w-full relative pt-3"
|
|
393
404
|
}, Ze = { class: "pl-2" }, De = {
|
|
@@ -402,103 +413,105 @@ const E1 = /* @__PURE__ */ r1(_e, [["render", Le]]), V1 = (h) => {
|
|
|
402
413
|
}, Ye = {
|
|
403
414
|
key: 1,
|
|
404
415
|
class: "absolute top-0 right-1.5 w-2 h-2 bg-blue-500 text-white rounded-full z-10"
|
|
405
|
-
}, e0 = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, t0 = { class: "py-[8px] pl-0 pr-[8px]" }, s0 = ["href"], l0 = { class: "flex flex-nowrap items-center w-full h-[24px]" }, o0 = { class: "w-[44px] flex-shrink-0 relative" }, n0 = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, a0 = { class: "py-[8px] pl-0 pr-[8px]" }, r0 = /* @__PURE__ */
|
|
416
|
+
}, e0 = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, t0 = { class: "py-[8px] pl-0 pr-[8px]" }, s0 = ["href"], l0 = { class: "flex flex-nowrap items-center w-full h-[24px]" }, o0 = { class: "w-[44px] flex-shrink-0 relative" }, n0 = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, a0 = { class: "py-[8px] pl-0 pr-[8px]" }, r0 = /* @__PURE__ */ a1({
|
|
406
417
|
__name: "OneSidebar",
|
|
407
418
|
props: z1,
|
|
408
419
|
emits: ["show-news", "show-tariff", "select-language", "update-collapsed", "update:modelValue"],
|
|
409
|
-
setup(
|
|
410
|
-
var
|
|
411
|
-
const a =
|
|
420
|
+
setup(u, { emit: c }) {
|
|
421
|
+
var E, I, H;
|
|
422
|
+
const a = c, h = u, y = S(() => {
|
|
412
423
|
var o;
|
|
413
|
-
return ((o =
|
|
424
|
+
return ((o = h.news) == null ? void 0 : o.unseenCount) || 0;
|
|
414
425
|
}), w = () => {
|
|
415
426
|
a("show-news");
|
|
416
|
-
},
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
}),
|
|
420
|
-
const
|
|
421
|
-
|
|
422
|
-
},
|
|
427
|
+
}, f = L(!1), g = L(h.hoverable);
|
|
428
|
+
r1(h, () => {
|
|
429
|
+
h.modelValue ? g.value = !0 : g.value = !1;
|
|
430
|
+
}), h.modelValue && (g.value = !0);
|
|
431
|
+
const j = H1(), k = S(() => l.value ? "" : "w-[260px]"), r = S(() => ""), $ = (o) => {
|
|
432
|
+
f.value = g.value && o;
|
|
433
|
+
}, l = S(() => g.value && !f.value), i = S(() => !!l.value), A = L(), T = $e(A), z = S(() => h.modelValue === !0 || T.value === null ? !0 : T.value > 0), J = L(), K = () => l.value ? h.minimizedWidth : h.width;
|
|
423
434
|
A1(() => {
|
|
424
435
|
const o = K();
|
|
425
436
|
setTimeout(() => {
|
|
426
437
|
J.value = o;
|
|
427
438
|
});
|
|
428
439
|
});
|
|
429
|
-
const
|
|
430
|
-
var
|
|
431
|
-
return o.id == ((
|
|
440
|
+
const M = L(!1), B = L((E = h.app) != null && E.availableLang && ((I = h.app) == null ? void 0 : I.availableLang.length) > 0 ? (H = h.app) == null ? void 0 : H.availableLang.find((o) => {
|
|
441
|
+
var v;
|
|
442
|
+
return o.id == ((v = h.app) == null ? void 0 : v.lang);
|
|
432
443
|
}) : null), Q = () => {
|
|
433
|
-
|
|
444
|
+
M.value = !M.value;
|
|
434
445
|
}, X = (o) => {
|
|
435
|
-
B.value = o,
|
|
446
|
+
B.value = o, M.value = !1, a("select-language", o);
|
|
436
447
|
}, Y = () => {
|
|
437
|
-
var o,
|
|
438
|
-
(
|
|
448
|
+
var o, v;
|
|
449
|
+
(v = (o = h.app) == null ? void 0 : o.selectedPlan) != null && v.url && (window.location.href = h.app.selectedPlan.url);
|
|
439
450
|
};
|
|
440
|
-
return (o,
|
|
441
|
-
var
|
|
442
|
-
return t(),
|
|
451
|
+
return (o, v) => {
|
|
452
|
+
var P, F, N, W, q, U, R, Z, d, V, D, d1, p1, u1, c1, h1, f1, v1, m1, C1, w1, x1, b1, y1, g1, _1, L1;
|
|
453
|
+
return t(), s("aside", {
|
|
443
454
|
ref_key: "rootElement",
|
|
444
|
-
ref:
|
|
445
|
-
class: x(["oneb-sidebar pt-[56px] p-2 cont max-w-[270px] flex flex-col",
|
|
446
|
-
style: P1(
|
|
447
|
-
onMouseenter:
|
|
448
|
-
onMouseleave:
|
|
455
|
+
ref: j,
|
|
456
|
+
class: x(["oneb-sidebar pt-[56px] p-2 cont max-w-[270px] flex flex-col", k.value]),
|
|
457
|
+
style: P1(r.value),
|
|
458
|
+
onMouseenter: v[1] || (v[1] = (m) => $(!0)),
|
|
459
|
+
onMouseleave: v[2] || (v[2] = (m) => $(!1))
|
|
449
460
|
}, [
|
|
450
461
|
S1(e("div", {
|
|
451
462
|
class: "overflow-y-auto top-[56px] left-0 overflow-hidden lg:bg-transparent transition-all z-50 pt-2 flex-grow",
|
|
452
463
|
ref_key: "menu",
|
|
453
|
-
ref:
|
|
464
|
+
ref: A
|
|
454
465
|
}, [
|
|
455
|
-
(t(!0),
|
|
456
|
-
key:
|
|
457
|
-
labelTop:
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
466
|
+
(t(!0), s(G, null, t1(o.items, (m) => (t(), C(ye, {
|
|
467
|
+
key: m.label,
|
|
468
|
+
labelTop: m.labelTop,
|
|
469
|
+
isMobile: o.isMobile,
|
|
470
|
+
subItems: m.subItems,
|
|
471
|
+
open: m.open,
|
|
472
|
+
icon: m.icon,
|
|
473
|
+
label: m.label,
|
|
474
|
+
route: m.route,
|
|
475
|
+
href: m.href,
|
|
476
|
+
slim: i.value,
|
|
477
|
+
"route-name": m.routeName,
|
|
478
|
+
exact: m.exact || !1,
|
|
479
|
+
onUpdateCollapsed: v[0] || (v[0] = (s1) => a("update-collapsed"))
|
|
480
|
+
}, null, 8, ["labelTop", "isMobile", "subItems", "open", "icon", "label", "route", "href", "slim", "route-name", "exact"]))), 128))
|
|
468
481
|
], 512), [
|
|
469
|
-
[
|
|
482
|
+
[M1, z.value]
|
|
470
483
|
]),
|
|
471
484
|
S1(e("div", Se, [
|
|
472
485
|
e("div", {
|
|
473
|
-
class: x([
|
|
486
|
+
class: x([i.value ? "hidden" : "w-full hidden md:flex-col md:flex px-2"])
|
|
474
487
|
}, [
|
|
475
|
-
(
|
|
488
|
+
(P = o.app) != null && P.offerPlan ? (t(), s("a", {
|
|
476
489
|
key: 0,
|
|
477
|
-
href: (
|
|
490
|
+
href: (F = o.app) == null ? void 0 : F.offerPlan.url,
|
|
478
491
|
class: "relative w-full border rounded-lg p-[1px] bg-[#FFF8E4] mb-3 block",
|
|
479
492
|
target: "_blank",
|
|
480
493
|
rel: "noopener noreferrer"
|
|
481
494
|
}, [
|
|
482
|
-
|
|
483
|
-
e("div",
|
|
495
|
+
v[3] || (v[3] = e("div", { class: "absolute inset-0 rounded-lg bg-gradient-to-r from-[#E1A508] via-red-500 to-[#E04040]" }, null, -1)),
|
|
496
|
+
e("div", Be, [
|
|
484
497
|
e("div", Ve, [
|
|
485
|
-
(t(),
|
|
498
|
+
(t(), C(_((N = o.app) == null ? void 0 : N.offerPlan.icon), { class: "w-[24px] h-[24px] mx-auto" }))
|
|
486
499
|
]),
|
|
487
|
-
e("p", Oe,
|
|
500
|
+
e("p", Oe, p((W = o.app) == null ? void 0 : W.offerPlan.title) + " «" + p((q = o.app) == null ? void 0 : q.offerPlan.name) + "» " + p((U = o.app) == null ? void 0 : U.offerPlan.title1), 1)
|
|
488
501
|
])
|
|
489
|
-
], 8,
|
|
490
|
-
(
|
|
502
|
+
], 8, Me)) : n("", !0),
|
|
503
|
+
(R = o.app) != null && R.selectedPlan && ((Z = o.app) != null && Z.selectedPlan.name) ? (t(), s("div", je, [
|
|
491
504
|
e("div", Ae, [
|
|
492
505
|
e("div", Te, [
|
|
493
|
-
(t(),
|
|
506
|
+
(t(), C(_((d = o.app) == null ? void 0 : d.selectedPlan.icon), { class: "w-[24px] h-[24px]" }))
|
|
494
507
|
]),
|
|
495
508
|
e("div", null, [
|
|
496
|
-
e("p", ze,
|
|
497
|
-
e("p", Ee,
|
|
509
|
+
e("p", ze, p(((V = o.app) == null ? void 0 : V.selectedPlan.name) || ""), 1),
|
|
510
|
+
e("p", Ee, p(((D = o.app) == null ? void 0 : D.selectedPlan.title) || ""), 1)
|
|
498
511
|
])
|
|
499
512
|
]),
|
|
500
513
|
e("div", null, [
|
|
501
|
-
|
|
514
|
+
O(T1, {
|
|
502
515
|
class: "text-[#525B66] hover:text-[#4089E0]",
|
|
503
516
|
variant: "touch",
|
|
504
517
|
icon: b(W1),
|
|
@@ -506,117 +519,117 @@ const E1 = /* @__PURE__ */ r1(_e, [["render", Le]]), V1 = (h) => {
|
|
|
506
519
|
}, null, 8, ["icon"])
|
|
507
520
|
])
|
|
508
521
|
])) : n("", !0),
|
|
509
|
-
(
|
|
522
|
+
(d1 = o.app) != null && d1.terms ? (t(), s("a", {
|
|
510
523
|
key: 2,
|
|
511
|
-
href: (
|
|
524
|
+
href: (p1 = o.app) == null ? void 0 : p1.terms.url,
|
|
512
525
|
target: "_blank",
|
|
513
526
|
class: "ml-3 flex items-center rounded-lg text-xs hover:underline font-extralight"
|
|
514
527
|
}, [
|
|
515
528
|
e("div", He, [
|
|
516
529
|
e("div", Pe, [
|
|
517
|
-
e("span", Fe,
|
|
530
|
+
e("span", Fe, p(((u1 = o.app) == null ? void 0 : u1.terms.label) || "Terms"), 1)
|
|
518
531
|
])
|
|
519
532
|
])
|
|
520
533
|
], 8, Ie)) : n("", !0),
|
|
521
|
-
(
|
|
534
|
+
(c1 = o.app) != null && c1.offer ? (t(), s("a", {
|
|
522
535
|
key: 3,
|
|
523
|
-
href: (
|
|
536
|
+
href: (h1 = o.app) == null ? void 0 : h1.offer.url,
|
|
524
537
|
target: "_blank",
|
|
525
538
|
class: "ml-3 flex items-center rounded-lg text-xs hover:underline text-[#525B66] font-extralight"
|
|
526
539
|
}, [
|
|
527
540
|
e("div", We, [
|
|
528
541
|
e("div", qe, [
|
|
529
|
-
e("span",
|
|
542
|
+
e("span", Ue, p(((f1 = o.app) == null ? void 0 : f1.offer.label) || "Offert"), 1)
|
|
530
543
|
])
|
|
531
544
|
])
|
|
532
545
|
], 8, Ne)) : n("", !0),
|
|
533
|
-
(
|
|
546
|
+
(m1 = (v1 = o.app) == null ? void 0 : v1.availableLang) != null && m1.length ? (t(), s("div", Re, [
|
|
534
547
|
e("div", {
|
|
535
548
|
class: "select-box flex gap-x-3 text-xs text-[#525B66] cursor-pointer",
|
|
536
549
|
onClick: Q
|
|
537
550
|
}, [
|
|
538
|
-
|
|
539
|
-
F1(" " +
|
|
540
|
-
e("span", Ze,
|
|
551
|
+
O(b(Q1), { class: "w-4" }),
|
|
552
|
+
F1(" " + p((C1 = B.value) == null ? void 0 : C1.name) + " ", 1),
|
|
553
|
+
e("span", Ze, p(M.value ? "▲" : "▼"), 1)
|
|
541
554
|
]),
|
|
542
|
-
|
|
543
|
-
(t(!0),
|
|
544
|
-
var
|
|
545
|
-
return t(),
|
|
546
|
-
key:
|
|
547
|
-
class: x(["px-2", { "hover:bg-slate-200 rounded-lg cursor-pointer":
|
|
555
|
+
M.value ? (t(), s("div", De, [
|
|
556
|
+
(t(!0), s(G, null, t1((w1 = o.app) == null ? void 0 : w1.availableLang, (m) => {
|
|
557
|
+
var s1, k1;
|
|
558
|
+
return t(), s("div", {
|
|
559
|
+
key: m.id,
|
|
560
|
+
class: x(["px-2", { "hover:bg-slate-200 rounded-lg cursor-pointer": m.id !== ((s1 = B.value) == null ? void 0 : s1.id), "text-gray-300": m.id === ((k1 = B.value) == null ? void 0 : k1.id) }]),
|
|
548
561
|
onClick: (Q0) => {
|
|
549
562
|
var $1;
|
|
550
|
-
return
|
|
563
|
+
return m.id !== (($1 = B.value) == null ? void 0 : $1.id) && X(m);
|
|
551
564
|
}
|
|
552
|
-
},
|
|
565
|
+
}, p(m.name), 11, Ge);
|
|
553
566
|
}), 128))
|
|
554
567
|
])) : n("", !0)
|
|
555
568
|
])) : n("", !0)
|
|
556
569
|
], 2),
|
|
557
|
-
|
|
570
|
+
i.value ? n("", !0) : (t(), s("div", Je)),
|
|
558
571
|
e("div", {
|
|
559
572
|
class: x(["flex", [(o.slim, "grid")]])
|
|
560
573
|
}, [
|
|
561
|
-
o.news ? (t(),
|
|
574
|
+
o.news ? (t(), s("a", {
|
|
562
575
|
key: 0,
|
|
563
576
|
href: "#",
|
|
564
|
-
class: x(["text-[#525B66] flex items-center rounded-lg text-sm tooltip hover:bg-primary-10-hover hover:text-primary-base transition-all", [
|
|
577
|
+
class: x(["text-[#525B66] flex items-center rounded-lg text-sm tooltip hover:bg-primary-10-hover hover:text-primary-base transition-all", [i.value ? "w-[44px] h-[44px]" : "w-full h-[44px]"]]),
|
|
565
578
|
onClick: w
|
|
566
579
|
}, [
|
|
567
580
|
e("div", Ke, [
|
|
568
581
|
e("div", Qe, [
|
|
569
582
|
e("div", null, [
|
|
570
|
-
(t(),
|
|
583
|
+
(t(), C(_(E1), { class: "w-[24px] h-[24px] mx-auto" }))
|
|
571
584
|
]),
|
|
572
|
-
y.value > 0 ? (t(),
|
|
573
|
-
y.value > 0 ? (t(),
|
|
585
|
+
y.value > 0 ? (t(), s("span", Xe)) : n("", !0),
|
|
586
|
+
y.value > 0 ? (t(), s("span", Ye)) : n("", !0)
|
|
574
587
|
]),
|
|
575
588
|
e("div", e0, [
|
|
576
|
-
e("span", t0,
|
|
589
|
+
e("span", t0, p(o.news.menuLabel || "News"), 1)
|
|
577
590
|
])
|
|
578
591
|
])
|
|
579
592
|
], 2)) : n("", !0),
|
|
580
|
-
(
|
|
593
|
+
(x1 = o.app) != null && x1.support ? (t(), s("a", {
|
|
581
594
|
key: 1,
|
|
582
|
-
href: (
|
|
583
|
-
class: x(["text-[#525B66] flex items-center rounded-lg text-sm tooltip hover:bg-primary-10-hover hover:text-primary-base transition-all", [
|
|
595
|
+
href: (y1 = (b1 = o.app) == null ? void 0 : b1.support) == null ? void 0 : y1.url,
|
|
596
|
+
class: x(["text-[#525B66] flex items-center rounded-lg text-sm tooltip hover:bg-primary-10-hover hover:text-primary-base transition-all", [i.value ? "w-[44px] h-[44px]" : "w-full h-[44px]"]])
|
|
584
597
|
}, [
|
|
585
598
|
e("div", l0, [
|
|
586
599
|
e("div", o0, [
|
|
587
600
|
e("div", null, [
|
|
588
|
-
(t(),
|
|
601
|
+
(t(), C(_(b(K1)), { class: "w-[24px] h-[24px] mx-auto" }))
|
|
589
602
|
])
|
|
590
603
|
]),
|
|
591
604
|
e("div", n0, [
|
|
592
|
-
e("span", a0,
|
|
605
|
+
e("span", a0, p(((_1 = (g1 = o.app) == null ? void 0 : g1.support) == null ? void 0 : _1.label) || "Support"), 1)
|
|
593
606
|
])
|
|
594
607
|
])
|
|
595
608
|
], 10, s0)) : n("", !0)
|
|
596
609
|
], 2),
|
|
597
610
|
e("p", {
|
|
598
|
-
class: x([[
|
|
611
|
+
class: x([[i.value ? "hidden" : "w-full"], "text-[8px] pl-3 text-[#979CA9] flex justify-between font-extralight"])
|
|
599
612
|
}, [
|
|
600
|
-
|
|
601
|
-
e("span", null,
|
|
613
|
+
v[4] || (v[4] = e("span", null, "Powered by OneB", -1)),
|
|
614
|
+
e("span", null, p((L1 = o.app) == null ? void 0 : L1.version), 1)
|
|
602
615
|
], 2)
|
|
603
616
|
], 512), [
|
|
604
|
-
[
|
|
617
|
+
[M1, z.value]
|
|
605
618
|
])
|
|
606
619
|
], 38);
|
|
607
620
|
};
|
|
608
621
|
}
|
|
609
622
|
});
|
|
610
|
-
const i0 = /* @__PURE__ */
|
|
623
|
+
const i0 = /* @__PURE__ */ i1(r0, [["__scopeId", "data-v-069bf58b"]]), d0 = { class: "h-dvh relative" }, p0 = {
|
|
611
624
|
class: "header h-[56px] flex items-center flex-nowrap fixed top-0 left-0 w-full z-50",
|
|
612
625
|
style: { background: "rgba(245, 247, 251, 0.80)", "backdrop-filter": "blur(5px)" }
|
|
613
626
|
}, u0 = { class: "p-2 flex-shrink-0" }, c0 = { class: "w-10 h-10 flex items-center flex-shrink-0" }, h0 = ["src"], f0 = { class: "whitespace-nowrap font-semibold text-xl" }, v0 = { class: "text-xs whitespace-nowrap" }, m0 = { class: "w-full" }, C0 = { class: "w-full flex justify-end pr-3" }, w0 = { class: "flex items-center space-x-1" }, x0 = {
|
|
614
627
|
key: 0,
|
|
615
628
|
class: "module-border-wrap flex justify-center items-center"
|
|
616
|
-
}, b0 = { class: "h-4 w-4" }, y0 = { class: "ml-2 hidden sm:flex" },
|
|
629
|
+
}, b0 = { class: "h-4 w-4" }, y0 = { class: "ml-2 hidden sm:flex" }, g0 = ["href"], _0 = { class: "flex h-full" }, L0 = { class: "content transition-all pt-[56px]" }, k0 = { key: 0 }, $0 = {
|
|
617
630
|
key: 0,
|
|
618
631
|
class: "sm:w-[560px] w-full relative h-full"
|
|
619
|
-
}, S0 = { class: "h-full relative" },
|
|
632
|
+
}, S0 = { class: "h-full relative" }, M0 = { class: "flex items-center p-3 space-x-1.5" }, B0 = {
|
|
620
633
|
class: "overflow-auto",
|
|
621
634
|
style: { height: "calc(100% - 62px)" }
|
|
622
635
|
}, V0 = {
|
|
@@ -637,63 +650,63 @@ const i0 = /* @__PURE__ */ r1(r0, [["__scopeId", "data-v-7d50aa94"]]), d0 = { cl
|
|
|
637
650
|
}, P0 = {
|
|
638
651
|
key: 3,
|
|
639
652
|
class: "text-xs px-2 py-1 rounded-md bg-gray-600 text-white"
|
|
640
|
-
}, F0 = { class: "text-lg font-medium" }, N0 = { class: "text-sm text-gray-600" }, W0 = { key: 0 }, q0 = ["src"],
|
|
653
|
+
}, F0 = { class: "text-lg font-medium" }, N0 = { class: "text-sm text-gray-600" }, W0 = { key: 0 }, q0 = ["src"], U0 = { class: "text-sm whitespace-pre-wrap break-words" }, R0 = { key: 1 }, Z0 = ["href"], D0 = { class: "text-sm flex items-center justify-between mt-1" }, G0 = { class: "text-gray-800" }, J0 = ["href"], K0 = /* @__PURE__ */ a1({
|
|
641
654
|
__name: "OneMainLayout",
|
|
642
655
|
props: G1,
|
|
643
656
|
emits: ["load-news", "load-tariff", "open-tariff"],
|
|
644
|
-
setup(
|
|
645
|
-
const a =
|
|
657
|
+
setup(u, { emit: c }) {
|
|
658
|
+
const a = c, h = u;
|
|
646
659
|
let y = window.localStorage.getItem("sidebar-slim");
|
|
647
660
|
window.document.body.offsetWidth < 1024 && (window.localStorage.getItem("sidebar-slim") == null && window.localStorage.setItem("sidebar-slim", "1"), y = "1");
|
|
648
|
-
const w =
|
|
649
|
-
|
|
650
|
-
window.localStorage.setItem("sidebar-slim", String(
|
|
661
|
+
const w = L(y === "1");
|
|
662
|
+
L(!0), r1(w, (l) => {
|
|
663
|
+
window.localStorage.setItem("sidebar-slim", String(l ? 1 : 0));
|
|
651
664
|
});
|
|
652
|
-
const
|
|
653
|
-
|
|
654
|
-
},
|
|
655
|
-
|
|
656
|
-
},
|
|
665
|
+
const f = L(!1), g = () => {
|
|
666
|
+
f.value = !f.value, f.value && a("load-news");
|
|
667
|
+
}, j = L(window.innerWidth), k = () => {
|
|
668
|
+
j.value = window.innerWidth;
|
|
669
|
+
}, r = S(() => j.value <= 768);
|
|
657
670
|
j1(() => {
|
|
658
|
-
window.addEventListener("resize",
|
|
671
|
+
window.addEventListener("resize", k);
|
|
659
672
|
}), N1(() => {
|
|
660
|
-
window.removeEventListener("resize",
|
|
673
|
+
window.removeEventListener("resize", k);
|
|
661
674
|
});
|
|
662
|
-
const
|
|
663
|
-
var
|
|
664
|
-
(
|
|
675
|
+
const $ = (l) => {
|
|
676
|
+
var i;
|
|
677
|
+
(i = h.handlers) == null || i.onSetLang(l);
|
|
665
678
|
};
|
|
666
|
-
return (
|
|
667
|
-
var
|
|
668
|
-
const
|
|
669
|
-
return t(),
|
|
679
|
+
return (l, i) => {
|
|
680
|
+
var T, z, J, K, M, B, Q, X, Y, E, I, H, o, v, P, F, N, W, q, U, R, Z;
|
|
681
|
+
const A = O1("RouterLink");
|
|
682
|
+
return t(), s("div", d0, [
|
|
670
683
|
e("div", p0, [
|
|
671
684
|
e("div", u0, [
|
|
672
685
|
e("button", {
|
|
673
|
-
onClick:
|
|
686
|
+
onClick: i[0] || (i[0] = (d) => w.value = !w.value),
|
|
674
687
|
class: "w-[44px] h-[44px] p-[8px] flex items-center justify-center rounded hover:bg-secondary-10 hover:text-blue-600"
|
|
675
688
|
}, [
|
|
676
|
-
|
|
689
|
+
O(b(J1), { class: "w-[24px] h-[24px]" })
|
|
677
690
|
])
|
|
678
691
|
]),
|
|
679
692
|
e("div", c0, [
|
|
680
|
-
|
|
693
|
+
l.logoSrc != null ? (t(), s("img", {
|
|
681
694
|
key: 0,
|
|
682
|
-
src:
|
|
695
|
+
src: l.logoSrc,
|
|
683
696
|
class: "w-8 h-8 mx-auto",
|
|
684
697
|
alt: "logo"
|
|
685
698
|
}, null, 8, h0)) : n("", !0)
|
|
686
699
|
]),
|
|
687
|
-
|
|
700
|
+
l.app != null ? (t(), C(A, {
|
|
688
701
|
key: 0,
|
|
689
702
|
to: "/",
|
|
690
703
|
class: "pl-2 max-w-xs"
|
|
691
704
|
}, {
|
|
692
|
-
default:
|
|
693
|
-
var
|
|
705
|
+
default: n1(() => {
|
|
706
|
+
var d, V;
|
|
694
707
|
return [
|
|
695
|
-
e("div", f0,
|
|
696
|
-
e("div", v0,
|
|
708
|
+
e("div", f0, p(l.app.name), 1),
|
|
709
|
+
e("div", v0, p((V = (d = l.app) == null ? void 0 : d.workspace) == null ? void 0 : V.name), 1)
|
|
697
710
|
];
|
|
698
711
|
}),
|
|
699
712
|
_: 1
|
|
@@ -701,140 +714,141 @@ const i0 = /* @__PURE__ */ r1(r0, [["__scopeId", "data-v-7d50aa94"]]), d0 = { cl
|
|
|
701
714
|
e("div", m0, [
|
|
702
715
|
e("div", C0, [
|
|
703
716
|
e("div", w0, [
|
|
704
|
-
|
|
705
|
-
|
|
717
|
+
B1(l.$slots, "before-header-menu", {}, void 0, !0),
|
|
718
|
+
l.improveTariff ? (t(), s("div", x0, [
|
|
706
719
|
e("button", {
|
|
707
720
|
type: "button",
|
|
708
721
|
class: "cursor-pointer flex items-center h-full bg-[#FFF8E4] hover:bg-[#f2e3b8] rounded-full px-2 py-1 font-medium",
|
|
709
|
-
onClick:
|
|
710
|
-
(...
|
|
711
|
-
var
|
|
712
|
-
return ((
|
|
722
|
+
onClick: i[1] || (i[1] = //@ts-ignore
|
|
723
|
+
(...d) => {
|
|
724
|
+
var V, D;
|
|
725
|
+
return ((V = l.handlers) == null ? void 0 : V.onImproveTariff) && ((D = l.handlers) == null ? void 0 : D.onImproveTariff(...d));
|
|
713
726
|
}),
|
|
714
727
|
style: { "font-size": "10px" }
|
|
715
728
|
}, [
|
|
716
729
|
e("div", b0, [
|
|
717
|
-
(t(),
|
|
730
|
+
(t(), C(_((T = l.improveTariff) == null ? void 0 : T.icon), { class: "h-4 w-4 mx-auto" }))
|
|
718
731
|
]),
|
|
719
|
-
e("span", y0,
|
|
732
|
+
e("span", y0, p((z = l.improveTariff) == null ? void 0 : z.label), 1)
|
|
720
733
|
])
|
|
721
734
|
])) : n("", !0),
|
|
722
|
-
(K = (J =
|
|
735
|
+
(K = (J = l.app) == null ? void 0 : J.help) != null && K.url ? (t(), s("a", {
|
|
723
736
|
key: 1,
|
|
724
|
-
href: (B = (
|
|
737
|
+
href: (B = (M = l.app) == null ? void 0 : M.help) == null ? void 0 : B.url,
|
|
725
738
|
target: "_blank",
|
|
726
739
|
title: "Help",
|
|
727
740
|
class: "p-1 rounded-md hover:bg-secondary-10 flex-shrink-0 hidden w-[44px] h-[44px] sm:flex items-center justify-center hover:text-blue-600"
|
|
728
741
|
}, [
|
|
729
|
-
|
|
730
|
-
], 8,
|
|
731
|
-
((Q =
|
|
742
|
+
O(b(X1), { class: "text-secondary-base w-full p-1 hover:text-blue-600" })
|
|
743
|
+
], 8, g0)) : n("", !0),
|
|
744
|
+
((Q = l.handlers) == null ? void 0 : Q.onBrowse) != null ? (t(), C(q1, {
|
|
732
745
|
key: 2,
|
|
733
|
-
workspace: (X =
|
|
734
|
-
apps: ((Y =
|
|
735
|
-
"change-label": ((
|
|
736
|
-
"apps-title": ((
|
|
737
|
-
"on-app": (
|
|
738
|
-
"on-change": (o =
|
|
739
|
-
onOpen: (
|
|
746
|
+
workspace: (X = l.app) == null ? void 0 : X.workspace,
|
|
747
|
+
apps: ((Y = l.app) == null ? void 0 : Y.apps) || [],
|
|
748
|
+
"change-label": ((E = l.labels) == null ? void 0 : E.change) || "Change",
|
|
749
|
+
"apps-title": ((I = l.labels) == null ? void 0 : I.apps) || "Apps",
|
|
750
|
+
"on-app": (H = l.handlers) == null ? void 0 : H.onApp,
|
|
751
|
+
"on-change": (o = l.handlers) == null ? void 0 : o.onChange,
|
|
752
|
+
onOpen: (v = l.handlers) == null ? void 0 : v.onBrowse
|
|
740
753
|
}, null, 8, ["workspace", "apps", "change-label", "apps-title", "on-app", "on-change", "onOpen"])) : n("", !0),
|
|
741
|
-
|
|
742
|
-
user:
|
|
743
|
-
app:
|
|
744
|
-
"account-label": ((
|
|
745
|
-
"logout-label": ((
|
|
746
|
-
"version-label": ((
|
|
747
|
-
"on-account": (
|
|
748
|
-
"on-logout": (
|
|
754
|
+
O(U1, {
|
|
755
|
+
user: l.user,
|
|
756
|
+
app: l.app,
|
|
757
|
+
"account-label": ((P = l.labels) == null ? void 0 : P.account) || "Account",
|
|
758
|
+
"logout-label": ((F = l.labels) == null ? void 0 : F.logout) || "Logout",
|
|
759
|
+
"version-label": ((N = l.labels) == null ? void 0 : N.version) || "",
|
|
760
|
+
"on-account": (W = l.handlers) == null ? void 0 : W.onAccount,
|
|
761
|
+
"on-logout": (q = l.handlers) == null ? void 0 : q.onLogout
|
|
749
762
|
}, null, 8, ["user", "app", "account-label", "logout-label", "version-label", "on-account", "on-logout"])
|
|
750
763
|
])
|
|
751
764
|
])
|
|
752
765
|
])
|
|
753
766
|
]),
|
|
754
|
-
e("div",
|
|
755
|
-
!
|
|
767
|
+
e("div", _0, [
|
|
768
|
+
!r.value || !w.value ? (t(), C(i0, {
|
|
756
769
|
key: 0,
|
|
757
|
-
app:
|
|
758
|
-
items:
|
|
759
|
-
"with-news":
|
|
760
|
-
news:
|
|
770
|
+
app: l.app,
|
|
771
|
+
items: l.sidebarItems,
|
|
772
|
+
"with-news": l.news != null,
|
|
773
|
+
news: l.news,
|
|
774
|
+
isMobile: r.value,
|
|
761
775
|
modelValue: w.value,
|
|
762
|
-
"onUpdate:modelValue":
|
|
763
|
-
onShowNews:
|
|
764
|
-
onSelectLanguage:
|
|
765
|
-
onUpdateCollapsed:
|
|
766
|
-
}, null, 8, ["app", "items", "with-news", "news", "modelValue"])) : n("", !0),
|
|
776
|
+
"onUpdate:modelValue": i[2] || (i[2] = (d) => w.value = d),
|
|
777
|
+
onShowNews: g,
|
|
778
|
+
onSelectLanguage: $,
|
|
779
|
+
onUpdateCollapsed: i[3] || (i[3] = (d) => w.value = !w.value)
|
|
780
|
+
}, null, 8, ["app", "items", "with-news", "news", "isMobile", "modelValue"])) : n("", !0),
|
|
767
781
|
e("div", {
|
|
768
782
|
class: x([[w.value ? "" : "hidden lg:block"], "body scroll-body w-full overflow-y-auto"])
|
|
769
783
|
}, [
|
|
770
784
|
e("div", L0, [
|
|
771
|
-
|
|
785
|
+
B1(l.$slots, "default", {}, void 0, !0)
|
|
772
786
|
])
|
|
773
787
|
], 2)
|
|
774
788
|
]),
|
|
775
|
-
|
|
776
|
-
|
|
789
|
+
l.news ? (t(), s("div", k0, [
|
|
790
|
+
f.value ? (t(), s("div", {
|
|
777
791
|
key: 0,
|
|
778
792
|
class: "fixed top-0 left-0 h-screen h-dvh w-screen bg-gray-100 bg-opacity-40 z-50",
|
|
779
|
-
onClick:
|
|
793
|
+
onClick: i[4] || (i[4] = e1((d) => f.value = !1, ["self"]))
|
|
780
794
|
})) : n("", !0),
|
|
781
795
|
e("div", {
|
|
782
|
-
class: x(["opacity-100 shadow-lg transition-all fixed top-0 left-0 h-dvh overflow-hidden z-50 bg-white", [
|
|
796
|
+
class: x(["opacity-100 shadow-lg transition-all fixed top-0 left-0 h-dvh overflow-hidden z-50 bg-white", [f.value ? "sm:w-[560px] w-full" : "w-0"]])
|
|
783
797
|
}, [
|
|
784
|
-
|
|
798
|
+
f.value ? (t(), s("div", $0, [
|
|
785
799
|
e("div", S0, [
|
|
786
|
-
e("div",
|
|
787
|
-
|
|
788
|
-
|
|
800
|
+
e("div", M0, [
|
|
801
|
+
O(E1, { class: "w-10 h-10" }),
|
|
802
|
+
i[6] || (i[6] = e("div", { class: "w-full font-medium" }, "OneB News", -1)),
|
|
789
803
|
e("div", null, [
|
|
790
|
-
|
|
804
|
+
O(T1, {
|
|
791
805
|
variant: "touch",
|
|
792
806
|
icon: b(Z1),
|
|
793
|
-
onClick:
|
|
807
|
+
onClick: i[5] || (i[5] = (d) => f.value = !1)
|
|
794
808
|
}, null, 8, ["icon"])
|
|
795
809
|
])
|
|
796
810
|
]),
|
|
797
|
-
e("div",
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
])) : ((
|
|
801
|
-
e("div", j0,
|
|
802
|
-
])) : ((
|
|
803
|
-
(t(!0),
|
|
804
|
-
key:
|
|
811
|
+
e("div", B0, [
|
|
812
|
+
l.news.isLoading && ((U = l.news.items) == null ? void 0 : U.length) === 0 ? (t(), s("div", V0, [
|
|
813
|
+
O(R1, { class: "w-6 h-6 text-gray-600 mx-auto" })
|
|
814
|
+
])) : ((R = l.news.items) == null ? void 0 : R.length) === 0 ? (t(), s("div", O0, [
|
|
815
|
+
e("div", j0, p(l.news.emptyText), 1)
|
|
816
|
+
])) : ((Z = l.news.items) == null ? void 0 : Z.length) > 0 ? (t(), s("div", A0, [
|
|
817
|
+
(t(!0), s(G, null, t1(l.news.items, (d) => (t(), s("div", {
|
|
818
|
+
key: d.id,
|
|
805
819
|
class: "p-3"
|
|
806
820
|
}, [
|
|
807
821
|
e("div", T0, [
|
|
808
822
|
e("div", null, [
|
|
809
|
-
|
|
810
|
-
|
|
823
|
+
d.type ? (t(), s("div", z0, [
|
|
824
|
+
d.type === 10 ? (t(), s("span", E0, "update")) : d.type === 11 ? (t(), s("span", I0, "warning")) : d.type === 12 ? (t(), s("span", H0, "notice")) : d.type === 13 ? (t(), s("span", P0, "ads")) : n("", !0)
|
|
811
825
|
])) : n("", !0),
|
|
812
|
-
e("div", F0, d
|
|
813
|
-
e("div", N0, d
|
|
826
|
+
e("div", F0, p(d.title), 1),
|
|
827
|
+
e("div", N0, p(d.summary), 1)
|
|
814
828
|
]),
|
|
815
|
-
|
|
829
|
+
d.image_url ? (t(), s("div", W0, [
|
|
816
830
|
e("img", {
|
|
817
|
-
src:
|
|
831
|
+
src: d.image_url,
|
|
818
832
|
alt: "",
|
|
819
833
|
class: "w-full rounded-md"
|
|
820
834
|
}, null, 8, q0)
|
|
821
835
|
])) : n("", !0),
|
|
822
|
-
e("div",
|
|
823
|
-
|
|
836
|
+
e("div", U0, p(d.body), 1),
|
|
837
|
+
d.video_url ? (t(), s("div", R0, [
|
|
824
838
|
e("a", {
|
|
825
|
-
href:
|
|
839
|
+
href: d.video_url,
|
|
826
840
|
target: "_blank",
|
|
827
841
|
class: "text-blue-600 hover:text-blue-700 px-3 py-2 border rounded-md w-full block"
|
|
828
|
-
},
|
|
842
|
+
}, p(l.news.openVideoText), 9, Z0)
|
|
829
843
|
])) : n("", !0),
|
|
830
844
|
e("div", D0, [
|
|
831
|
-
e("span", G0, d
|
|
832
|
-
|
|
845
|
+
e("span", G0, p(d.published), 1),
|
|
846
|
+
d.post_url ? (t(), s("a", {
|
|
833
847
|
key: 0,
|
|
834
|
-
href:
|
|
848
|
+
href: d.post_url,
|
|
835
849
|
target: "_blank",
|
|
836
850
|
class: "text-blue-600 hover:text-blue-700 block"
|
|
837
|
-
},
|
|
851
|
+
}, p(l.news.moreText), 9, J0)) : n("", !0)
|
|
838
852
|
])
|
|
839
853
|
])
|
|
840
854
|
]))), 128))
|
|
@@ -848,7 +862,7 @@ const i0 = /* @__PURE__ */ r1(r0, [["__scopeId", "data-v-7d50aa94"]]), d0 = { cl
|
|
|
848
862
|
};
|
|
849
863
|
}
|
|
850
864
|
});
|
|
851
|
-
const o9 = /* @__PURE__ */
|
|
865
|
+
const o9 = /* @__PURE__ */ i1(K0, [["__scopeId", "data-v-d6b70b18"]]);
|
|
852
866
|
export {
|
|
853
867
|
o9 as OneMainLayout,
|
|
854
868
|
i0 as OneSidebar
|