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