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