@oneb/ui-vue 0.2.26 → 0.2.27
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/{OneHelpMenu-2a7be7ea.cjs → OneHelpMenu-95ae3d5a.cjs} +1 -1
- package/dist/{OneHelpMenu-f9738224.js → OneHelpMenu-9a2f42f5.js} +6 -7
- package/dist/SpinnerIcon-01be39fe.cjs +1 -0
- package/dist/{SpinnerIcon-24e552a8.js → SpinnerIcon-516264ba.js} +2 -2
- package/dist/button/button.d.ts +2 -2
- package/dist/button/index.cjs +1 -1
- package/dist/button/index.js +70 -58
- package/dist/common/index.cjs +1 -1
- package/dist/common/index.js +1 -1
- package/dist/dataTable/index.cjs +1 -1
- package/dist/dataTable/index.js +2 -2
- package/dist/dropdown/index.cjs +1 -1
- package/dist/dropdown/index.js +3 -3
- package/dist/{index-a343cb86.cjs → index-09b67bb7.cjs} +1 -1
- package/dist/{index-1ff9bbce.js → index-4f1aeab2.js} +23 -23
- package/dist/index-5fa52675.cjs +1 -0
- package/dist/{index-74c989d4.js → index-8b4488cc.js} +3 -3
- package/dist/index.cjs +1 -1
- package/dist/index.js +2253 -2207
- package/dist/layout/index.cjs +1 -1
- package/dist/layout/index.js +364 -355
- package/dist/style.css +1 -1
- package/dist/tailwind.config.cjs +1 -1
- package/dist/tailwind.config.d.ts +2 -59
- package/dist/tailwind.config.js +13 -47
- package/dist/toast/index.d.ts +4 -1
- package/dist/toast/toast.d.ts +29 -0
- package/dist/toast/useOneToasts.d.ts +15 -0
- package/dist/toast/utils.d.ts +1 -1
- package/package.json +1 -1
- package/dist/SpinnerIcon-89c60210.cjs +0 -1
- package/dist/index-70806d69.cjs +0 -1
package/dist/layout/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { openBlock as t, createElementBlock as
|
|
2
|
-
import { r as
|
|
3
|
-
import { _ as
|
|
4
|
-
import { j as Y1, c as ee, O as te, b as se } from "../OneHelpMenu-
|
|
5
|
-
import { OneButton as
|
|
1
|
+
import { openBlock as t, createElementBlock as l, createElementVNode as e, defineComponent as c1, computed as M, ref as $, resolveComponent as q1, Fragment as K, normalizeClass as c, toDisplayString as u, createCommentVNode as a, createBlock as w, resolveDynamicComponent as _, unref as k, withModifiers as t1, withCtx as i1, renderList as s1, watch as l1, onMounted as p1, onBeforeUnmount as J1, watchEffect as R1, shallowRef as K1, normalizeStyle as Q1, withDirectives as u1, vShow as d1, createTextVNode as e1, createVNode as T, onUnmounted as G1, renderSlot as n1 } from "vue";
|
|
2
|
+
import { r as a1, a as r1, b as X1 } from "../ChevronRightIcon-8df1af46.js";
|
|
3
|
+
import { _ as f1 } from "../_plugin-vue_export-helper-dad06003.js";
|
|
4
|
+
import { j as Y1, c as ee, O as te, b as se } from "../OneHelpMenu-9a2f42f5.js";
|
|
5
|
+
import { OneButton as U1 } from "../button/index.js";
|
|
6
6
|
import { r as le } from "../XMarkIcon-51ef0691.js";
|
|
7
|
-
import { S as oe } from "../SpinnerIcon-
|
|
7
|
+
import { S as oe } from "../SpinnerIcon-516264ba.js";
|
|
8
8
|
import { OneMarkdown as ne } from "../common/index.js";
|
|
9
9
|
import "../OneAvatar.vue_vue_type_script_setup_true_lang-08ab80dd.js";
|
|
10
|
-
function ae(
|
|
11
|
-
return t(),
|
|
10
|
+
function ae(v, C) {
|
|
11
|
+
return t(), l("svg", {
|
|
12
12
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13
13
|
fill: "none",
|
|
14
14
|
viewBox: "0 0 24 24",
|
|
@@ -23,8 +23,8 @@ function ae(m, v) {
|
|
|
23
23
|
})
|
|
24
24
|
]);
|
|
25
25
|
}
|
|
26
|
-
function re(
|
|
27
|
-
return t(),
|
|
26
|
+
function re(v, C) {
|
|
27
|
+
return t(), l("svg", {
|
|
28
28
|
xmlns: "http://www.w3.org/2000/svg",
|
|
29
29
|
fill: "none",
|
|
30
30
|
viewBox: "0 0 24 24",
|
|
@@ -39,7 +39,7 @@ function re(m, v) {
|
|
|
39
39
|
})
|
|
40
40
|
]);
|
|
41
41
|
}
|
|
42
|
-
const
|
|
42
|
+
const Z1 = {
|
|
43
43
|
items: {
|
|
44
44
|
required: !0,
|
|
45
45
|
type: Array
|
|
@@ -123,7 +123,7 @@ const U1 = {
|
|
|
123
123
|
// Не обов'язковий, бо може бути відсутнім
|
|
124
124
|
}
|
|
125
125
|
}, pe = {
|
|
126
|
-
sidebarItems:
|
|
126
|
+
sidebarItems: Z1.items,
|
|
127
127
|
logoSrc: {
|
|
128
128
|
type: String
|
|
129
129
|
},
|
|
@@ -190,141 +190,141 @@ const U1 = {
|
|
|
190
190
|
}, _e = ["href"], $e = { class: "flex items-center justify-between min-w-full h-[24px]" }, Se = {
|
|
191
191
|
key: 0,
|
|
192
192
|
class: "text-xs"
|
|
193
|
-
},
|
|
193
|
+
}, Me = {
|
|
194
194
|
key: 0,
|
|
195
195
|
class: "text-xs"
|
|
196
|
-
},
|
|
196
|
+
}, Be = {
|
|
197
197
|
key: 1,
|
|
198
198
|
class: "pr-3"
|
|
199
|
-
}, Oe = /* @__PURE__ */
|
|
199
|
+
}, Oe = /* @__PURE__ */ c1({
|
|
200
200
|
__name: "OneSidebarLink",
|
|
201
201
|
props: ie,
|
|
202
202
|
emits: ["update-collapsed"],
|
|
203
|
-
setup(
|
|
204
|
-
const r =
|
|
205
|
-
var
|
|
206
|
-
return (y == null ? void 0 : y.menuGroup) && (
|
|
207
|
-
},
|
|
203
|
+
setup(v, { emit: C }) {
|
|
204
|
+
const r = v, d = C, g = M(() => r.href ?? !1), b = M(() => m(r)), m = (o) => o.route ? o.route : o.routeName ? { name: o.routeName } : null, L = $(r.open), V = (o, y = r) => {
|
|
205
|
+
var f;
|
|
206
|
+
return (y == null ? void 0 : y.menuGroup) && (o == null ? void 0 : o.meta) && ((f = o.meta) == null ? void 0 : f.menuGroup) && o.meta.menuGroup && o.meta.menuGroup === y.menuGroup;
|
|
207
|
+
}, E = () => {
|
|
208
208
|
L.value = !L.value;
|
|
209
|
-
},
|
|
210
|
-
r.subItems && r.subItems.length > 0 && !y && (
|
|
209
|
+
}, B = (o, y) => {
|
|
210
|
+
r.subItems && r.subItems.length > 0 && !y && (o.preventDefault(), E()), (y || !r.subItems || r.subItems.length === 0) && r.isMobile && d("update-collapsed");
|
|
211
211
|
};
|
|
212
|
-
return (
|
|
213
|
-
var
|
|
214
|
-
const
|
|
215
|
-
return t(),
|
|
216
|
-
|
|
212
|
+
return (o, y) => {
|
|
213
|
+
var O, n;
|
|
214
|
+
const f = q1("RouterLink");
|
|
215
|
+
return t(), l(K, null, [
|
|
216
|
+
o.labelTop ? (t(), l("p", {
|
|
217
217
|
key: 0,
|
|
218
218
|
style: { "font-size": "10px" },
|
|
219
|
-
class:
|
|
220
|
-
},
|
|
221
|
-
g.value ? (t(),
|
|
219
|
+
class: c([{ "text-center h-[15px]": o.slim }, "text-[#a1a5b0] px-2 pt-0 pb-0.5 pl-3 font-medium"])
|
|
220
|
+
}, u(o.slim ? "" : o.labelTop), 3)) : a("", !0),
|
|
221
|
+
g.value ? (t(), l("a", {
|
|
222
222
|
key: 1,
|
|
223
223
|
href: g.value,
|
|
224
|
-
class:
|
|
225
|
-
onClick:
|
|
224
|
+
class: c(["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", [o.slim ? "w-[44px] h-[44px]" : "h-[44px] w-full"]]),
|
|
225
|
+
onClick: B
|
|
226
226
|
}, [
|
|
227
227
|
e("div", de, [
|
|
228
|
-
|
|
229
|
-
(t(),
|
|
228
|
+
o.icon ? (t(), l("div", ce, [
|
|
229
|
+
(t(), w(_(o.icon), { class: "w-[24px] h-[24px] mx-auto" }))
|
|
230
230
|
])) : a("", !0),
|
|
231
231
|
e("div", fe, [
|
|
232
|
-
e("span", he,
|
|
232
|
+
e("span", he, u(o.label), 1)
|
|
233
233
|
]),
|
|
234
|
-
r.subItems && r.subItems.length > 0 ? (t(),
|
|
234
|
+
r.subItems && r.subItems.length > 0 ? (t(), l("div", {
|
|
235
235
|
key: 1,
|
|
236
|
-
class:
|
|
236
|
+
class: c(["ml-auto", [(o.slim, "")]])
|
|
237
237
|
}, [
|
|
238
|
-
(t(),
|
|
238
|
+
(t(), w(_(L.value ? k(a1) : k(r1)), { class: "w-[16px] h-[16px]" }))
|
|
239
239
|
], 2)) : a("", !0)
|
|
240
240
|
])
|
|
241
241
|
], 10, ue)) : a("", !0),
|
|
242
|
-
!g.value && b.value ? (t(),
|
|
242
|
+
!g.value && b.value ? (t(), w(f, {
|
|
243
243
|
key: 2,
|
|
244
244
|
to: b.value,
|
|
245
|
-
exact:
|
|
246
|
-
class:
|
|
247
|
-
"w-[44px] h-[44px]":
|
|
248
|
-
"h-[44px] w-full": !
|
|
249
|
-
"bg-primary-10 !text-primary-base":
|
|
245
|
+
exact: o.exact,
|
|
246
|
+
class: c(["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", {
|
|
247
|
+
"w-[44px] h-[44px]": o.slim,
|
|
248
|
+
"h-[44px] w-full": !o.slim,
|
|
249
|
+
"bg-primary-10 !text-primary-base": V(o.$route)
|
|
250
250
|
}]),
|
|
251
|
-
"active-class": (
|
|
252
|
-
onClick:
|
|
251
|
+
"active-class": (O = o.$route) != null && O.meta && ((n = o.$route.meta) != null && n.menuGroup) && o.$route.meta.menuGroup ? "" : "bg-primary-10 !text-primary-base",
|
|
252
|
+
onClick: t1(B, ["prevent"])
|
|
253
253
|
}, {
|
|
254
|
-
default:
|
|
254
|
+
default: i1(() => [
|
|
255
255
|
e("div", me, [
|
|
256
|
-
|
|
257
|
-
(t(),
|
|
256
|
+
o.icon ? (t(), l("div", ve, [
|
|
257
|
+
(t(), w(_(o.icon), { class: "w-[24px] h-[24px] mx-auto" }))
|
|
258
258
|
])) : a("", !0),
|
|
259
259
|
e("div", Ce, [
|
|
260
|
-
e("span", we,
|
|
260
|
+
e("span", we, u(o.label), 1)
|
|
261
261
|
]),
|
|
262
|
-
r.subItems && r.subItems.length > 0 && !
|
|
263
|
-
(t(),
|
|
262
|
+
r.subItems && r.subItems.length > 0 && !o.slim ? (t(), l("div", xe, [
|
|
263
|
+
(t(), w(_(L.value ? k(a1) : k(r1)), { class: "w-[16px] h-[16px]" }))
|
|
264
264
|
])) : a("", !0)
|
|
265
265
|
])
|
|
266
266
|
]),
|
|
267
267
|
_: 1
|
|
268
268
|
}, 8, ["to", "exact", "active-class", "class"])) : a("", !0),
|
|
269
|
-
!g.value && !b.value ? (t(),
|
|
269
|
+
!g.value && !b.value ? (t(), l("span", {
|
|
270
270
|
key: 3,
|
|
271
|
-
onClick:
|
|
272
|
-
class:
|
|
271
|
+
onClick: t1(B, ["prevent"]),
|
|
272
|
+
class: c([[o.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]"])
|
|
273
273
|
}, [
|
|
274
274
|
e("div", be, [
|
|
275
|
-
|
|
276
|
-
(t(),
|
|
275
|
+
o.icon ? (t(), l("div", ye, [
|
|
276
|
+
(t(), w(_(o.icon), { class: "w-[24px] h-[24px] mx-auto" }))
|
|
277
277
|
])) : a("", !0),
|
|
278
278
|
e("div", ge, [
|
|
279
|
-
e("span", Le,
|
|
279
|
+
e("span", Le, u(o.label), 1)
|
|
280
280
|
]),
|
|
281
|
-
r.subItems && r.subItems.length > 0 && !
|
|
282
|
-
(t(),
|
|
281
|
+
r.subItems && r.subItems.length > 0 && !o.slim ? (t(), l("div", ke, [
|
|
282
|
+
(t(), w(_(L.value ? k(a1) : k(r1)), { class: "w-[16px] h-[16px]" }))
|
|
283
283
|
])) : a("", !0)
|
|
284
284
|
])
|
|
285
285
|
], 2)) : a("", !0),
|
|
286
|
-
L.value && r.subItems ? (t(),
|
|
286
|
+
L.value && r.subItems ? (t(), l("div", {
|
|
287
287
|
key: 4,
|
|
288
|
-
class:
|
|
288
|
+
class: c([o.slim ? "" : "pl-[36px] pr-3"])
|
|
289
289
|
}, [
|
|
290
290
|
e("div", {
|
|
291
|
-
class:
|
|
291
|
+
class: c([(o.slim, "")])
|
|
292
292
|
}, [
|
|
293
|
-
(t(!0),
|
|
294
|
-
var
|
|
295
|
-
return t(),
|
|
296
|
-
key:
|
|
297
|
-
class:
|
|
293
|
+
(t(!0), l(K, null, s1(r.subItems, (i) => {
|
|
294
|
+
var I, H;
|
|
295
|
+
return t(), l("div", {
|
|
296
|
+
key: i.label,
|
|
297
|
+
class: c([(o.slim, "")])
|
|
298
298
|
}, [
|
|
299
|
-
|
|
299
|
+
i.href ? (t(), l("a", {
|
|
300
300
|
key: 0,
|
|
301
|
-
href:
|
|
301
|
+
href: i.href,
|
|
302
302
|
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]"
|
|
303
303
|
}, [
|
|
304
304
|
e("div", $e, [
|
|
305
|
-
|
|
306
|
-
|
|
305
|
+
o.slim ? a("", !0) : (t(), l("span", Se, u(i.label), 1)),
|
|
306
|
+
i.icon ? (t(), l("div", {
|
|
307
307
|
key: 1,
|
|
308
|
-
class:
|
|
308
|
+
class: c([o.slim ? "pl-2 h-[15px]" : "pr-1"])
|
|
309
309
|
}, [
|
|
310
|
-
(t(),
|
|
310
|
+
(t(), w(_(i.icon), { class: "w-[15px] h-[15px] mx-auto" }))
|
|
311
311
|
], 2)) : a("", !0)
|
|
312
312
|
])
|
|
313
|
-
], 8, _e)) :
|
|
313
|
+
], 8, _e)) : m(i) ? (t(), w(f, {
|
|
314
314
|
key: 1,
|
|
315
|
-
to:
|
|
316
|
-
onClick: y[0] || (y[0] =
|
|
317
|
-
class:
|
|
318
|
-
"w-[44px] h-[44px]":
|
|
319
|
-
"h-[44px] w-full": !
|
|
320
|
-
"bg-primary-10 !text-primary-base":
|
|
315
|
+
to: m(i),
|
|
316
|
+
onClick: y[0] || (y[0] = t1((S) => B(S, !0), ["prevent"])),
|
|
317
|
+
class: c(["flex items-center rounded-xl p-2 text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66]", {
|
|
318
|
+
"w-[44px] h-[44px]": o.slim,
|
|
319
|
+
"h-[44px] w-full": !o.slim,
|
|
320
|
+
"bg-primary-10 !text-primary-base": V(o.$route, i)
|
|
321
321
|
}]),
|
|
322
|
-
"active-class": (
|
|
322
|
+
"active-class": (I = o.$route) != null && I.meta && ((H = o.$route.meta) != null && H.menuGroup) && o.$route.meta.menuGroup ? "" : "bg-primary-10 !text-primary-base"
|
|
323
323
|
}, {
|
|
324
|
-
default:
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
(t(),
|
|
324
|
+
default: i1(() => [
|
|
325
|
+
o.slim ? a("", !0) : (t(), l("span", Me, u(i.label), 1)),
|
|
326
|
+
i.icon ? (t(), l("div", Be, [
|
|
327
|
+
(t(), w(_(i.icon), { class: "w-[20px] h-[20px] mx-auto" }))
|
|
328
328
|
])) : a("", !0)
|
|
329
329
|
]),
|
|
330
330
|
_: 2
|
|
@@ -343,8 +343,8 @@ const U1 = {
|
|
|
343
343
|
viewBox: "0 0 24 24",
|
|
344
344
|
fill: "none"
|
|
345
345
|
};
|
|
346
|
-
function
|
|
347
|
-
return t(),
|
|
346
|
+
function ze(v, C) {
|
|
347
|
+
return t(), l("svg", je, [...C[0] || (C[0] = [
|
|
348
348
|
e("path", {
|
|
349
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",
|
|
350
350
|
fill: "currentColor"
|
|
@@ -359,43 +359,43 @@ function Te(m, v) {
|
|
|
359
359
|
d: "M13.6437 3H10.4761C10.462 3.00738 10.4468 3.00752 10.4317 3.00766L10.4237 3.00778L10.2163 3.01067L10.1771 3.01124C10.1389 3.01181 10.1006 3.01238 10.0624 3.01238C9.85585 3.01276 9.64939 3.01797 9.44293 3.02318C9.34618 3.02562 9.24943 3.02806 9.15267 3.03C9.04934 3.03209 8.94604 3.03642 8.84277 3.04075L8.7649 3.04397C8.68023 3.04733 8.59559 3.05152 8.51098 3.05656C8.48805 3.05791 8.46519 3.06072 8.44234 3.06353L8.41144 3.0672L8.41136 3.06733L8.41135 3.06733C8.36472 3.06357 8.31825 3.06706 8.27185 3.07055L8.2508 3.07211C8.17968 3.07719 8.10867 3.08303 8.03766 3.08888L7.99014 3.09278L7.93408 3.09722C7.88146 3.10132 7.82884 3.10543 7.77638 3.111C7.67642 3.12147 7.57658 3.13307 7.47685 3.14581L7.46711 3.14705C7.35956 3.16078 7.25195 3.17451 7.14491 3.19162C6.9685 3.21996 6.79301 3.25364 6.61912 3.29514C6.39508 3.34863 6.17474 3.41407 5.95992 3.49743C5.64582 3.6192 5.35134 3.77699 5.08051 3.97818C4.85418 4.14605 4.6417 4.33183 4.44509 4.5337C4.2703 4.71309 4.10878 4.90496 3.96183 5.1078C3.77344 5.36816 3.62514 5.65018 3.50915 5.94958C3.36896 6.31155 3.2788 6.68668 3.21499 7.06866C3.19851 7.1678 3.18411 7.26735 3.17082 7.36697C3.15756 7.46541 3.14628 7.56409 3.135 7.66276L3.13307 7.67973C3.12541 7.74641 3.11884 7.81305 3.11245 7.87981L3.11091 7.89541C3.10743 7.9302 3.10394 7.96508 3.10714 8.00012L3.10716 8.0001C3.09909 8.01985 3.09789 8.04067 3.0967 8.06145L3.09602 8.07249L3.07085 8.44649L3.07007 8.45985C3.06822 8.50323 3.06651 8.54661 3.0648 8.58999C3.06098 8.68709 3.05716 8.78418 3.05165 8.88117C3.04485 9.00132 3.04236 9.12161 3.03987 9.24188C3.03793 9.33581 3.03599 9.42973 3.03199 9.52356C3.02946 9.58278 3.02895 9.64209 3.02844 9.7014L3.02804 9.74445L3.02618 9.9482C3.02519 10.0655 3.02421 10.1828 3.02245 10.3001C3.02144 10.367 3.01875 10.4338 3.01605 10.5007L3.01316 10.5745L3.01312 10.5756C3.01256 10.5885 3.01199 10.6018 3 10.6107V13.3892C3.00108 13.3909 3.00237 13.3925 3.00365 13.3942L3.00366 13.3942C3.00655 13.3979 3.00944 13.4016 3.01007 13.4057C3.01249 13.4212 3.01389 13.4369 3.01427 13.4526L3.01611 13.5092L3.01611 13.5092C3.01871 13.5887 3.0213 13.6681 3.02293 13.7476C3.02474 13.8348 3.02545 13.922 3.02545 14.0092C3.0256 14.2458 3.03197 14.4823 3.03835 14.7188L3.03835 14.7188C3.04022 14.7885 3.0421 14.8582 3.04382 14.9279C3.04659 15.0408 3.05225 15.1535 3.05791 15.2663L3.06335 15.3769C3.06897 15.4952 3.07473 15.6135 3.08203 15.7318C3.08634 15.8018 3.09212 15.8717 3.0979 15.9417L3.0979 15.9417L3.10262 15.9992L3.10453 16.0229C3.10928 16.0819 3.11403 16.1408 3.12009 16.1996C3.13141 16.3108 3.14359 16.4219 3.15661 16.5328C3.16284 16.5864 3.1703 16.6399 3.17776 16.6933L3.185 16.7455C3.20654 16.9028 3.23441 17.0589 3.26627 17.2144C3.30583 17.4093 3.35558 17.602 3.4153 17.7917C3.50677 18.0804 3.62514 18.3571 3.77815 18.6188C3.87433 18.7833 3.98454 18.9379 4.10322 19.0866C4.38114 19.4348 4.70212 19.7464 5.05849 20.0138C5.34835 20.2318 5.66471 20.4005 6.00352 20.5279C6.22982 20.6131 6.46181 20.6788 6.69755 20.7318C6.88514 20.774 7.07435 20.8079 7.2645 20.8355C7.38593 20.8534 7.50793 20.8672 7.62989 20.881L7.6304 20.8811C7.7437 20.8937 7.8571 20.9052 7.97062 20.9156C8.03986 20.9219 8.10927 20.9264 8.17868 20.931L8.21137 20.9332C8.28755 20.9383 8.36371 20.943 8.43985 20.9478L8.54613 20.9545L8.556 20.9552C8.56163 20.9556 8.56727 20.956 8.57291 20.9562L8.71929 20.9621C8.81347 20.9658 8.90765 20.9695 9.0018 20.9736C9.21881 20.9828 9.43595 20.9864 9.65309 20.99L9.74613 20.9915L9.75798 20.9914C9.77405 20.9912 9.79026 20.9909 9.80497 21H14.0598C14.1664 20.9939 14.273 20.9919 14.3797 20.9899C14.4179 20.9892 14.4561 20.9885 14.4943 20.9876C14.7149 20.9825 14.9354 20.9772 15.156 20.9696C15.2421 20.9667 15.3282 20.9618 15.4143 20.9569C15.4551 20.9546 15.4958 20.9523 15.5366 20.9502L15.5761 20.9484C15.5941 20.9477 15.6121 20.947 15.6301 20.9459C15.6439 20.945 15.6578 20.9436 15.6716 20.9421L15.6898 20.9403L15.6899 20.9402C15.701 20.9399 15.7121 20.94 15.7231 20.9392L15.7557 20.9369C15.8318 20.9315 15.9079 20.9261 15.984 20.9202C15.9957 20.9194 16.0074 20.9185 16.0192 20.9176C16.081 20.913 16.1429 20.9083 16.2046 20.9021C16.272 20.8953 16.3393 20.8876 16.4066 20.8799C16.4414 20.8759 16.4763 20.8719 16.5111 20.868C16.6378 20.8539 16.7638 20.8353 16.8896 20.8154C17.0775 20.7859 17.2638 20.7493 17.4484 20.7044C17.6789 20.6482 17.905 20.5785 18.125 20.4897C18.4165 20.3719 18.6905 20.2225 18.9436 20.0355C19.3225 19.7539 19.6587 19.4279 19.952 19.0575C20.1845 18.7646 20.3725 18.4391 20.51 18.0914C20.609 17.8414 20.6842 17.5843 20.7426 17.3223C20.8039 17.0471 20.849 16.7692 20.8805 16.4891C20.8828 16.4688 20.8852 16.4484 20.8876 16.4281C20.8909 16.3996 20.8943 16.3711 20.8974 16.3426C20.9041 16.2803 20.9108 16.2181 20.9166 16.1558C20.9179 16.143 20.9176 16.13 20.9174 16.1171C20.9174 16.1122 20.9173 16.1073 20.9173 16.1025L20.9175 16.1023L20.9216 16.0734C20.9247 16.0521 20.9277 16.0308 20.9298 16.0094C20.9345 15.9583 20.9385 15.907 20.9419 15.8557C20.9481 15.7576 20.9542 15.6594 20.9595 15.5612C20.967 15.4207 20.974 15.2801 20.9806 15.1394C20.9829 15.0903 20.9838 15.0412 20.9846 14.992C20.9853 14.9473 20.9858 14.9026 20.9863 14.8579V14.8579C20.987 14.7953 20.9877 14.7328 20.9889 14.6702C20.9899 14.6211 20.9917 14.5721 20.9973 14.5231C21.0007 14.494 21.0001 14.4644 20.9995 14.4348C20.9993 14.4218 20.999 14.4088 20.9991 14.3959V9.63092L20.9991 9.60404L20.9991 9.55038L20.9991 9.53972C20.9989 9.51204 20.9988 9.48446 20.9941 9.45682C20.9908 9.4383 20.9906 9.4192 20.9904 9.40022V9.40019L20.9903 9.38995L20.9882 9.25341C20.9872 9.18265 20.9862 9.11189 20.9847 9.04114C20.9836 8.98836 20.9816 8.93561 20.9795 8.88285L20.9772 8.81995C20.9766 8.80494 20.9759 8.78993 20.9752 8.77493L20.9748 8.76634L20.9691 8.64082C20.9651 8.55088 20.9611 8.46094 20.956 8.37104C20.9522 8.30451 20.947 8.23805 20.9417 8.1716L20.9359 8.09682L20.9321 8.04666C20.9275 7.98535 20.9229 7.92405 20.9175 7.86274C20.9125 7.80634 20.9064 7.74993 20.9004 7.69354L20.9003 7.69313L20.897 7.66264C20.8931 7.62609 20.8889 7.58959 20.8846 7.5531L20.8845 7.55231L20.8803 7.51608C20.8416 7.18046 20.7858 6.84789 20.7029 6.52018C20.6311 6.23571 20.5375 5.95879 20.4129 5.6927C20.2939 5.43833 20.1468 5.20173 19.9745 4.98024C19.6752 4.5943 19.3289 4.25662 18.9357 3.9672C18.6895 3.78603 18.4233 3.64067 18.1406 3.52522C17.9042 3.42869 17.6608 3.35464 17.4126 3.29549C17.2386 3.25401 17.0631 3.22009 16.8865 3.192C16.7762 3.17443 16.6652 3.16021 16.5545 3.14604C16.4547 3.1333 16.3548 3.12195 16.2548 3.1114C16.1994 3.10556 16.1439 3.10111 16.0884 3.09667L16.0476 3.09338C15.9873 3.08847 15.9269 3.08378 15.8666 3.07909L15.8665 3.07909L15.7802 3.07236L15.7725 3.07169L15.7601 3.0707L15.6649 3.06539L15.6649 3.06539C15.5895 3.06113 15.5141 3.05688 15.4386 3.05333C15.316 3.0476 15.1933 3.04242 15.0707 3.03725L14.9361 3.03154C14.9137 3.03058 14.8914 3.02983 14.869 3.02942C14.7553 3.02747 14.6416 3.02471 14.5279 3.02195C14.3309 3.01717 14.1339 3.0124 13.9368 3.0118C13.8728 3.01162 13.8088 3.0106 13.7448 3.00958L13.6819 3.00861L13.677 3.00858C13.6653 3.00857 13.6535 3.00855 13.6437 3ZM19.1763 17.0579L19.1766 17.0517C19.1767 17.0471 19.1768 17.0425 19.1779 17.0381C19.2275 16.836 19.2624 16.631 19.291 16.4251C19.3098 16.2901 19.3268 16.1547 19.3375 16.0187C19.3417 15.9654 19.3464 15.9121 19.3511 15.8589C19.3586 15.774 19.3661 15.6892 19.3716 15.6042C19.3828 15.4301 19.391 15.2558 19.3987 15.0816C19.4046 14.9497 19.4094 14.8178 19.4117 14.6859L19.4153 14.4842C19.4205 14.2026 19.4257 13.9209 19.4268 13.6392C19.4297 12.9436 19.4306 12.248 19.4295 11.5523L19.4295 11.2777C19.4295 10.7542 19.4295 10.2306 19.4186 9.70709C19.4124 9.40296 19.4061 9.09888 19.3918 8.79501C19.3844 8.63644 19.3757 8.47787 19.3647 8.31947C19.3541 8.1655 19.3406 8.01182 19.3242 7.85844C19.3125 7.74723 19.2991 7.63627 19.284 7.52554C19.2621 7.36599 19.2346 7.20747 19.1999 7.05026C19.1657 6.89516 19.1232 6.74238 19.0697 6.59267C18.9916 6.37321 18.8802 6.16704 18.7395 5.98137C18.5884 5.78135 18.4163 5.59801 18.2263 5.43445C18.1883 5.40179 18.1494 5.37029 18.1105 5.33881L18.1104 5.33876L18.0812 5.3151C17.8793 5.15117 17.6528 5.03224 17.408 4.94664C17.207 4.87636 17.0007 4.82673 16.7919 4.78696C16.581 4.74669 16.3684 4.71721 16.155 4.69446C16.004 4.67833 15.8523 4.66544 15.7006 4.65444C15.5492 4.64344 15.3974 4.63568 15.2457 4.62792L15.2385 4.62756C15.1291 4.62194 15.0196 4.61762 14.91 4.61462L14.8134 4.61183C14.6511 4.60712 14.4888 4.6024 14.3265 4.60068C13.8657 4.59577 13.405 4.59101 12.9443 4.59016C12.2464 4.58885 11.5486 4.58938 10.8507 4.59177C10.5996 4.5923 10.3486 4.59439 10.0974 4.59647L10.0974 4.59647L9.8577 4.59841L9.82872 4.59862H9.82872C9.7489 4.59919 9.66907 4.59976 9.58934 4.60282C9.49703 4.60635 9.40468 4.60825 9.31233 4.61016L9.31231 4.61016L9.3123 4.61016C9.18105 4.61286 9.0498 4.61557 8.91869 4.62295C8.83304 4.62782 8.7474 4.63152 8.66175 4.63522C8.61777 4.63712 8.5738 4.63902 8.52981 4.64107C8.52362 4.64135 8.51744 4.64185 8.51126 4.64235L8.51126 4.64235L8.51126 4.64235L8.50306 4.64299L8.41244 4.64946C8.34449 4.65429 8.27653 4.65912 8.20857 4.66428L8.18781 4.66585C8.12337 4.67072 8.05892 4.67559 7.99463 4.68218C7.89227 4.69268 7.79008 4.70422 7.68806 4.71679C7.62913 4.72411 7.57031 4.73243 7.5115 4.74075L7.51148 4.74075L7.51141 4.74076C7.47952 4.74527 7.44763 4.74978 7.41572 4.75414C7.40685 4.75493 7.39794 4.75526 7.38904 4.75512L7.38907 4.75503L7.31739 4.76857L7.31738 4.76857C7.26453 4.7785 7.21167 4.78842 7.15898 4.79909C6.93749 4.84394 6.71967 4.90123 6.5096 4.98613C6.34776 5.05123 6.19426 5.1354 6.05234 5.23684C5.78124 5.43085 5.54562 5.66141 5.33918 5.92242C5.28924 5.98552 5.24069 6.04965 5.19677 6.11724C5.09636 6.27173 5.01967 6.43755 4.95864 6.61102C4.91632 6.73123 4.88184 6.85368 4.85186 6.97747C4.84793 6.99374 4.8434 7.00985 4.83887 7.02596L4.83887 7.02597L4.83261 7.04844L4.83272 7.0484L4.8298 7.06701C4.82771 7.08069 4.82563 7.09438 4.82265 7.10788C4.76979 7.35293 4.73521 7.60091 4.70752 7.84979C4.69096 7.99864 4.67853 8.148 4.66745 8.29738C4.65639 8.44663 4.64854 8.59619 4.64069 8.74569L4.64069 8.74569L4.64069 8.7457L4.64067 8.74609C4.63503 8.85329 4.63069 8.96055 4.62763 9.06786L4.62559 9.13807C4.62045 9.31366 4.61532 9.48925 4.61283 9.66486C4.608 10.0048 4.60357 10.3448 4.60262 10.6847C4.59962 11.7494 4.5969 12.8141 4.60737 13.8788C4.61072 14.2165 4.61777 14.5542 4.62607 14.8918C4.62673 14.9186 4.62753 14.9455 4.62877 14.9724L4.63381 15.0811C4.63926 15.199 4.64472 15.3169 4.65074 15.4347C4.65577 15.5308 4.66081 15.6268 4.66836 15.7227C4.67515 15.8081 4.68316 15.8934 4.69117 15.9787L4.70214 16.0968C4.71248 16.2104 4.7265 16.3235 4.74143 16.4366C4.7631 16.6007 4.79033 16.7638 4.82487 16.9256C4.85985 17.0897 4.90314 17.2516 4.95983 17.4096C5.02424 17.5893 5.10596 17.7603 5.21434 17.9181C5.29414 18.0342 5.38123 18.1452 5.47508 18.2503C5.64558 18.4412 5.83564 18.6105 6.0414 18.7625C6.1548 18.8463 6.27647 18.9182 6.4045 18.9772C6.5449 19.0421 6.69048 19.0925 6.83926 19.1339C7.11993 19.2121 7.40659 19.2588 7.69529 19.294C7.79514 19.3061 7.89529 19.3159 7.99546 19.3252L8.03116 19.3284L8.03143 19.3285L8.03148 19.3285C8.15306 19.3397 8.27467 19.3509 8.39647 19.359C8.56158 19.3699 8.72687 19.378 8.89219 19.3856C9.02176 19.3916 9.15144 19.3965 9.28109 19.399L9.45946 19.4025H9.4595H9.45953C9.71982 19.4078 9.98011 19.4131 10.2404 19.4145C11.3901 19.4206 12.5397 19.4191 13.6893 19.4158C13.9179 19.4151 14.1465 19.4106 14.375 19.4061C14.4976 19.4037 14.6201 19.4013 14.7426 19.3995C14.7627 19.3992 14.7829 19.3984 14.803 19.3976L14.9426 19.392C15.0681 19.387 15.1937 19.382 15.3192 19.3763C15.4286 19.3713 15.538 19.365 15.6474 19.3587C15.701 19.3556 15.7545 19.3513 15.808 19.3469C15.8726 19.3417 15.9372 19.3362 16.0018 19.33C16.0685 19.3236 16.1352 19.3168 16.2019 19.309C16.2973 19.2978 16.3927 19.2861 16.488 19.2738C16.5343 19.2678 16.5805 19.2613 16.6267 19.2547L16.687 19.2462C16.6871 19.2462 16.6871 19.2461 16.6871 19.246C16.7106 19.2413 16.7341 19.2367 16.7576 19.232C16.8085 19.2219 16.8595 19.2118 16.9104 19.2011C17.1251 19.1562 17.336 19.0987 17.5392 19.0149C17.6923 18.9519 17.8378 18.8717 17.9727 18.7758C18.2687 18.5653 18.5214 18.311 18.7414 18.0229C18.8499 17.8805 18.9401 17.725 19.01 17.5602C19.0583 17.4469 19.0978 17.3307 19.132 17.2125C19.138 17.1917 19.1435 17.1708 19.149 17.1498C19.1531 17.134 19.1572 17.1182 19.1616 17.1025C19.1644 17.0923 19.1679 17.0823 19.1713 17.0723C19.1729 17.0675 19.1746 17.0627 19.1762 17.058C19.1762 17.0579 19.1763 17.0579 19.1763 17.0579ZM3.12917 7.986L3.12916 7.98601L3.12903 7.98608C3.14334 7.97696 3.15765 7.96783 3.17163 7.95831C3.15771 7.96785 3.14344 7.97693 3.12917 7.986Z",
|
|
360
360
|
fill: "currentColor"
|
|
361
361
|
}, null, -1)
|
|
362
|
-
]));
|
|
362
|
+
])]);
|
|
363
363
|
}
|
|
364
|
-
const
|
|
365
|
-
if (Array.isArray(
|
|
366
|
-
return
|
|
367
|
-
const
|
|
368
|
-
return Array.isArray(
|
|
369
|
-
},
|
|
364
|
+
const D1 = /* @__PURE__ */ f1(Ve, [["render", ze]]), W1 = (v) => {
|
|
365
|
+
if (Array.isArray(v))
|
|
366
|
+
return v.map(k);
|
|
367
|
+
const C = k(v);
|
|
368
|
+
return Array.isArray(C) ? C : [C];
|
|
369
|
+
}, Te = (v, C) => {
|
|
370
370
|
let r;
|
|
371
|
-
const
|
|
371
|
+
const d = (g) => {
|
|
372
372
|
g.forEach((b) => {
|
|
373
|
-
const
|
|
374
|
-
if (
|
|
375
|
-
if (!(
|
|
373
|
+
const m = k(b);
|
|
374
|
+
if (m) {
|
|
375
|
+
if (!(m instanceof Element))
|
|
376
376
|
throw console.error("Vuestic: Trying to observe non-HTMLElement", {
|
|
377
|
-
target:
|
|
378
|
-
array:
|
|
377
|
+
target: m,
|
|
378
|
+
array: v
|
|
379
379
|
}), new Error("Vuestic: Unable to observe non-HTMLElement");
|
|
380
|
-
|
|
380
|
+
m && (r == null || r.observe(m));
|
|
381
381
|
}
|
|
382
382
|
});
|
|
383
383
|
};
|
|
384
|
-
return
|
|
385
|
-
r == null || r.disconnect(),
|
|
386
|
-
}),
|
|
387
|
-
r = new ResizeObserver(
|
|
388
|
-
}),
|
|
389
|
-
}, He = (
|
|
390
|
-
const
|
|
391
|
-
return
|
|
384
|
+
return l1(v, (g) => {
|
|
385
|
+
r == null || r.disconnect(), d(W1(g));
|
|
386
|
+
}), p1(() => {
|
|
387
|
+
r = new ResizeObserver(C), d(W1(v));
|
|
388
|
+
}), J1(() => r == null ? void 0 : r.disconnect()), r;
|
|
389
|
+
}, He = (v) => {
|
|
390
|
+
const C = $(null);
|
|
391
|
+
return Te([v], () => {
|
|
392
392
|
var r;
|
|
393
|
-
|
|
394
|
-
}),
|
|
393
|
+
C.value = ((r = v.value) == null ? void 0 : r.clientWidth) ?? null;
|
|
394
|
+
}), R1(() => {
|
|
395
395
|
var r;
|
|
396
|
-
|
|
397
|
-
}),
|
|
398
|
-
},
|
|
396
|
+
C.value = ((r = v.value) == null ? void 0 : r.clientWidth) ?? null;
|
|
397
|
+
}), C;
|
|
398
|
+
}, Ee = ["href"], Ie = { class: "rounded-lg bg-[#FFF8E4] py-2 flex items-center space-x-1 px-2" }, Pe = { class: "" }, Ae = {
|
|
399
399
|
class: "",
|
|
400
400
|
style: { "font-size": "10px" }
|
|
401
401
|
}, Fe = {
|
|
@@ -422,9 +422,9 @@ const Z1 = /* @__PURE__ */ u1(Ve, [["render", Te]]), N1 = (m) => {
|
|
|
422
422
|
}, r0 = ["href"], i0 = {
|
|
423
423
|
key: 0,
|
|
424
424
|
class: "tooltip-text"
|
|
425
|
-
}, p0 = { key: 0 }, u0 = /* @__PURE__ */
|
|
425
|
+
}, p0 = { key: 0 }, u0 = /* @__PURE__ */ c1({
|
|
426
426
|
__name: "OneSidebar",
|
|
427
|
-
props:
|
|
427
|
+
props: Z1,
|
|
428
428
|
emits: [
|
|
429
429
|
"show-news",
|
|
430
430
|
"show-tariff",
|
|
@@ -432,480 +432,489 @@ const Z1 = /* @__PURE__ */ u1(Ve, [["render", Te]]), N1 = (m) => {
|
|
|
432
432
|
"update-collapsed",
|
|
433
433
|
"update:modelValue"
|
|
434
434
|
],
|
|
435
|
-
setup(
|
|
436
|
-
var
|
|
437
|
-
const r =
|
|
438
|
-
var
|
|
439
|
-
return ((
|
|
435
|
+
setup(v, { emit: C }) {
|
|
436
|
+
var P, A, F;
|
|
437
|
+
const r = C, d = v, g = M(() => {
|
|
438
|
+
var s;
|
|
439
|
+
return ((s = d.news) == null ? void 0 : s.unseenCount) || 0;
|
|
440
440
|
}), b = () => {
|
|
441
441
|
r("show-news");
|
|
442
|
-
},
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
}),
|
|
446
|
-
const
|
|
447
|
-
const
|
|
448
|
-
if (
|
|
449
|
-
if (!
|
|
450
|
-
|
|
442
|
+
}, m = $(!1), L = $(d.hoverable);
|
|
443
|
+
l1(d, () => {
|
|
444
|
+
d.modelValue ? L.value = !0 : L.value = !1;
|
|
445
|
+
}), d.modelValue && (L.value = !0);
|
|
446
|
+
const V = K1(), E = M(() => {
|
|
447
|
+
const s = [];
|
|
448
|
+
if (d.slim || s.push("fixed"), !y.value)
|
|
449
|
+
if (!d.isMobile)
|
|
450
|
+
s.push("w-[260px]");
|
|
451
451
|
else
|
|
452
|
-
return
|
|
453
|
-
return
|
|
454
|
-
}),
|
|
455
|
-
|
|
456
|
-
}, y =
|
|
457
|
-
|
|
458
|
-
const
|
|
452
|
+
return s.push("w-full");
|
|
453
|
+
return s.join(" ");
|
|
454
|
+
}), B = M(() => ""), o = (s) => {
|
|
455
|
+
m.value = L.value && s;
|
|
456
|
+
}, y = M(() => L.value && !m.value), f = M(() => !!y.value), O = $(), n = He(O), i = M(() => d.modelValue === !0 || n.value === null ? !0 : n.value > 0), I = $(), H = () => y.value ? d.minimizedWidth : d.width;
|
|
457
|
+
R1(() => {
|
|
458
|
+
const s = H();
|
|
459
459
|
setTimeout(() => {
|
|
460
|
-
|
|
460
|
+
I.value = s;
|
|
461
461
|
});
|
|
462
462
|
});
|
|
463
|
-
const S = $(!1),
|
|
464
|
-
(
|
|
465
|
-
var
|
|
466
|
-
return
|
|
463
|
+
const S = $(!1), j = $(
|
|
464
|
+
(P = d.app) != null && P.availableLang && ((A = d.app) == null ? void 0 : A.availableLang.length) > 0 ? (F = d.app) == null ? void 0 : F.availableLang.find((s) => {
|
|
465
|
+
var x;
|
|
466
|
+
return s.id == ((x = d.app) == null ? void 0 : x.lang);
|
|
467
467
|
}) : null
|
|
468
|
-
),
|
|
468
|
+
), Q = () => {
|
|
469
469
|
S.value = !S.value;
|
|
470
|
-
},
|
|
471
|
-
|
|
472
|
-
},
|
|
473
|
-
var
|
|
474
|
-
(
|
|
470
|
+
}, X = (s) => {
|
|
471
|
+
j.value = s, S.value = !1, r("select-language", s);
|
|
472
|
+
}, Y = () => {
|
|
473
|
+
var s, x;
|
|
474
|
+
(x = (s = d.app) == null ? void 0 : s.selectedPlan) != null && x.url && (window.location.href = d.app.selectedPlan.url);
|
|
475
475
|
};
|
|
476
|
-
return (
|
|
477
|
-
var N, G, W, q, R, U,
|
|
478
|
-
return t(),
|
|
476
|
+
return (s, x) => {
|
|
477
|
+
var N, G, W, q, R, U, Z, D, p, z, J, h1, m1, v1, C1, w1, x1, b1, y1, g1, L1, k1, _1, $1, S1, M1, B1, O1, V1, j1, z1, T1, H1, E1, I1, P1, A1;
|
|
478
|
+
return t(), l("aside", {
|
|
479
479
|
ref_key: "rootElement",
|
|
480
|
-
ref:
|
|
481
|
-
class:
|
|
482
|
-
style:
|
|
483
|
-
onMouseenter:
|
|
484
|
-
onMouseleave:
|
|
480
|
+
ref: V,
|
|
481
|
+
class: c(["oneb-sidebar pt-[56px] pb-1 cont flex flex-col sidebar z-40", [E.value, f.value ? "sm:max-w-[260px] w-full sm:w-max" : "sm:w-[260px] w-full"]]),
|
|
482
|
+
style: Q1(B.value),
|
|
483
|
+
onMouseenter: x[1] || (x[1] = (h) => o(!0)),
|
|
484
|
+
onMouseleave: x[2] || (x[2] = (h) => o(!1))
|
|
485
485
|
}, [
|
|
486
|
-
|
|
486
|
+
u1(e("div", {
|
|
487
487
|
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",
|
|
488
488
|
ref_key: "menu",
|
|
489
|
-
ref:
|
|
489
|
+
ref: O
|
|
490
490
|
}, [
|
|
491
|
-
(t(!0),
|
|
492
|
-
key:
|
|
493
|
-
labelTop:
|
|
494
|
-
isMobile:
|
|
495
|
-
subItems:
|
|
496
|
-
open:
|
|
497
|
-
icon:
|
|
498
|
-
label:
|
|
499
|
-
route:
|
|
500
|
-
menuGroup:
|
|
501
|
-
href:
|
|
502
|
-
slim:
|
|
503
|
-
"route-name":
|
|
504
|
-
exact:
|
|
505
|
-
onUpdateCollapsed:
|
|
491
|
+
(t(!0), l(K, null, s1(s.items, (h) => (t(), w(Oe, {
|
|
492
|
+
key: h.label,
|
|
493
|
+
labelTop: h.labelTop,
|
|
494
|
+
isMobile: s.isMobile,
|
|
495
|
+
subItems: h.subItems,
|
|
496
|
+
open: h.open,
|
|
497
|
+
icon: h.icon,
|
|
498
|
+
label: h.label,
|
|
499
|
+
route: h.route,
|
|
500
|
+
menuGroup: h == null ? void 0 : h.menuGroup,
|
|
501
|
+
href: h.href,
|
|
502
|
+
slim: f.value,
|
|
503
|
+
"route-name": h.routeName,
|
|
504
|
+
exact: h.exact || !1,
|
|
505
|
+
onUpdateCollapsed: x[0] || (x[0] = (o1) => r("update-collapsed"))
|
|
506
506
|
}, null, 8, ["labelTop", "isMobile", "subItems", "open", "icon", "label", "route", "menuGroup", "href", "slim", "route-name", "exact"]))), 128))
|
|
507
507
|
], 512), [
|
|
508
|
-
[
|
|
508
|
+
[d1, i.value]
|
|
509
509
|
]),
|
|
510
|
-
|
|
511
|
-
class:
|
|
510
|
+
u1(e("div", {
|
|
511
|
+
class: c(["mt-auto shrink rounded-2xl mx-2", [f.value ? "" : "px-2 bg-white pt-2.5 py-2"]])
|
|
512
512
|
}, [
|
|
513
513
|
e("div", {
|
|
514
|
-
class:
|
|
514
|
+
class: c([f.value ? "hidden" : "w-full hidden md:flex-col md:flex"])
|
|
515
515
|
}, [
|
|
516
|
-
(N =
|
|
516
|
+
(N = s.app) != null && N.offerPlan ? (t(), l("a", {
|
|
517
517
|
key: 0,
|
|
518
|
-
href: (G =
|
|
518
|
+
href: (G = s.app) == null ? void 0 : G.offerPlan.url,
|
|
519
519
|
class: "w-full min-w-[190px] border-gradient rounded-lg p-[1px] bg-[#FFF8E4] mb-1 block",
|
|
520
520
|
target: "_blank",
|
|
521
521
|
rel: "noopener noreferrer"
|
|
522
522
|
}, [
|
|
523
523
|
e("div", Ie, [
|
|
524
|
-
e("div",
|
|
525
|
-
(t(),
|
|
524
|
+
e("div", Pe, [
|
|
525
|
+
(t(), w(_((W = s.app) == null ? void 0 : W.offerPlan.icon), { class: "w-[16px] h-[16px]" }))
|
|
526
526
|
]),
|
|
527
|
-
e("p",
|
|
528
|
-
e("strong", null,
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
527
|
+
e("p", Ae, [
|
|
528
|
+
e("strong", null, u((q = s.app) == null ? void 0 : q.offerPlan.title), 1),
|
|
529
|
+
e1(" «" + u((R = s.app) == null ? void 0 : R.offerPlan.name) + "» ", 1),
|
|
530
|
+
x[3] || (x[3] = e("br", null, null, -1)),
|
|
531
|
+
e1(u((U = s.app) == null ? void 0 : U.offerPlan.title1), 1)
|
|
532
532
|
])
|
|
533
533
|
])
|
|
534
|
-
], 8,
|
|
535
|
-
(
|
|
534
|
+
], 8, Ee)) : a("", !0),
|
|
535
|
+
(Z = s.app) != null && Z.selectedPlan && ((D = s.app) != null && D.selectedPlan.name) ? (t(), l("div", Fe, [
|
|
536
536
|
e("div", Ne, [
|
|
537
537
|
e("div", null, [
|
|
538
|
-
(t(),
|
|
538
|
+
(t(), w(_((p = s.app) == null ? void 0 : p.selectedPlan.icon), { class: "w-[16px] h-[16px]" }))
|
|
539
539
|
]),
|
|
540
540
|
e("div", Ge, [
|
|
541
|
-
e("p", null,
|
|
542
|
-
e("p", null,
|
|
541
|
+
e("p", null, u(((z = s.app) == null ? void 0 : z.selectedPlan.name) || ""), 1),
|
|
542
|
+
e("p", null, u(((J = s.app) == null ? void 0 : J.selectedPlan.title) || ""), 1)
|
|
543
543
|
])
|
|
544
544
|
]),
|
|
545
545
|
e("div", We, [
|
|
546
|
-
T(
|
|
546
|
+
T(U1, {
|
|
547
547
|
class: "text-[#525B66] hover:text-[#4089E0] !rounded-lg",
|
|
548
548
|
variant: "touch",
|
|
549
549
|
icon: k(X1),
|
|
550
|
-
onClick:
|
|
550
|
+
onClick: Y
|
|
551
551
|
}, null, 8, ["icon"])
|
|
552
552
|
])
|
|
553
553
|
])) : a("", !0),
|
|
554
|
-
(
|
|
554
|
+
(h1 = s.app) != null && h1.terms ? (t(), l("a", {
|
|
555
555
|
key: 2,
|
|
556
|
-
href: (
|
|
556
|
+
href: (m1 = s.app) == null ? void 0 : m1.terms.url,
|
|
557
557
|
target: "_blank",
|
|
558
558
|
class: "ml-1 flex items-center rounded-lg text-xs hover:underline font-extralight"
|
|
559
559
|
}, [
|
|
560
560
|
e("div", Re, [
|
|
561
561
|
e("div", Ue, [
|
|
562
|
-
e("span", Ze,
|
|
562
|
+
e("span", Ze, u(((v1 = s.app) == null ? void 0 : v1.terms.label) || "Terms"), 1)
|
|
563
563
|
])
|
|
564
564
|
])
|
|
565
565
|
], 8, qe)) : a("", !0),
|
|
566
|
-
(
|
|
566
|
+
(C1 = s.app) != null && C1.offer ? (t(), l("a", {
|
|
567
567
|
key: 3,
|
|
568
|
-
href: (
|
|
568
|
+
href: (w1 = s.app) == null ? void 0 : w1.offer.url,
|
|
569
569
|
target: "_blank",
|
|
570
570
|
class: "ml-1 flex items-center rounded-lg text-xs hover:underline text-[#525B66] font-extralight"
|
|
571
571
|
}, [
|
|
572
572
|
e("div", Je, [
|
|
573
573
|
e("div", Ke, [
|
|
574
|
-
e("span", Qe,
|
|
574
|
+
e("span", Qe, u(((x1 = s.app) == null ? void 0 : x1.offer.label) || "Offert"), 1)
|
|
575
575
|
])
|
|
576
576
|
])
|
|
577
577
|
], 8, De)) : a("", !0),
|
|
578
|
-
(
|
|
578
|
+
(y1 = (b1 = s.app) == null ? void 0 : b1.availableLang) != null && y1.length ? (t(), l("div", Xe, [
|
|
579
579
|
e("div", {
|
|
580
580
|
class: "select-box flex gap-x-2 text-xs text-[#525B66] cursor-pointer",
|
|
581
|
-
onClick:
|
|
581
|
+
onClick: Q
|
|
582
582
|
}, [
|
|
583
583
|
T(k(Y1), { class: "w-4" }),
|
|
584
|
-
|
|
585
|
-
e("span", Ye,
|
|
584
|
+
e1(" " + u((g1 = j.value) == null ? void 0 : g1.name) + " ", 1),
|
|
585
|
+
e("span", Ye, u(S.value ? "▲" : "▼"), 1)
|
|
586
586
|
]),
|
|
587
|
-
S.value ? (t(),
|
|
588
|
-
(t(!0),
|
|
589
|
-
var
|
|
590
|
-
return t(),
|
|
591
|
-
key:
|
|
592
|
-
class:
|
|
593
|
-
"hover:bg-slate-200 rounded-lg cursor-pointer":
|
|
594
|
-
"text-gray-300":
|
|
587
|
+
S.value ? (t(), l("div", e0, [
|
|
588
|
+
(t(!0), l(K, null, s1((L1 = s.app) == null ? void 0 : L1.availableLang, (h) => {
|
|
589
|
+
var o1, F1;
|
|
590
|
+
return t(), l("div", {
|
|
591
|
+
key: h.id,
|
|
592
|
+
class: c(["px-2", {
|
|
593
|
+
"hover:bg-slate-200 rounded-lg cursor-pointer": h.id !== ((o1 = j.value) == null ? void 0 : o1.id),
|
|
594
|
+
"text-gray-300": h.id === ((F1 = j.value) == null ? void 0 : F1.id)
|
|
595
595
|
}]),
|
|
596
596
|
onClick: (X0) => {
|
|
597
|
-
var
|
|
598
|
-
return
|
|
597
|
+
var N1;
|
|
598
|
+
return h.id !== ((N1 = j.value) == null ? void 0 : N1.id) && X(h);
|
|
599
599
|
}
|
|
600
|
-
},
|
|
600
|
+
}, u(h.name), 11, t0);
|
|
601
601
|
}), 128))
|
|
602
602
|
])) : a("", !0)
|
|
603
603
|
])) : a("", !0)
|
|
604
604
|
], 2),
|
|
605
|
-
!
|
|
605
|
+
!f.value && ((k1 = s.app) != null && k1.offer || ($1 = (_1 = s.app) == null ? void 0 : _1.availableLang) != null && $1.length || (S1 = s.app) != null && S1.selectedPlan && ((M1 = s.app) != null && M1.selectedPlan.name) || (B1 = s.app) != null && B1.offerPlan) ? (t(), l("div", s0)) : a("", !0),
|
|
606
606
|
e("div", {
|
|
607
|
-
class:
|
|
607
|
+
class: c([f.value ? "grid" : "flex space-x-2"])
|
|
608
608
|
}, [
|
|
609
|
-
|
|
609
|
+
s.news ? (t(), l("a", {
|
|
610
610
|
key: 0,
|
|
611
611
|
href: "#",
|
|
612
|
-
class:
|
|
612
|
+
class: c(["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", [f.value ? "w-[44px] h-[44px] text-center" : "h-[36x] pr-2"]]),
|
|
613
613
|
onClick: b
|
|
614
614
|
}, [
|
|
615
|
-
|
|
615
|
+
s.news.menuLabel ? (t(), l("div", l0, u(s.news.menuLabel || "News"), 1)) : a("", !0),
|
|
616
616
|
e("div", {
|
|
617
|
-
class:
|
|
617
|
+
class: c(["w-full", [f.value ? "" : "flex flex-nowrap items-center h-[36px]"]])
|
|
618
618
|
}, [
|
|
619
619
|
e("div", {
|
|
620
|
-
class:
|
|
620
|
+
class: c(["relative items-center", [f.value ? "" : "flex flex-row space-x-1"]])
|
|
621
621
|
}, [
|
|
622
622
|
e("div", null, [
|
|
623
|
-
(t(),
|
|
623
|
+
(t(), w(_(D1), { class: "w-[24px] h-[24px] mx-auto" }))
|
|
624
624
|
]),
|
|
625
|
-
|
|
626
|
-
g.value > 0 ? (t(),
|
|
627
|
-
g.value > 0 ? (t(),
|
|
625
|
+
f.value ? a("", !0) : (t(), l("div", o0, u(s.news.menuLabel || "News"), 1)),
|
|
626
|
+
g.value > 0 ? (t(), l("span", n0)) : a("", !0),
|
|
627
|
+
g.value > 0 ? (t(), l("span", a0)) : a("", !0)
|
|
628
628
|
], 2)
|
|
629
629
|
], 2)
|
|
630
630
|
], 2)) : a("", !0),
|
|
631
|
-
(
|
|
631
|
+
(O1 = s.app) != null && O1.support ? (t(), l("a", {
|
|
632
632
|
key: 1,
|
|
633
|
-
href: (
|
|
634
|
-
class:
|
|
633
|
+
href: (j1 = (V1 = s.app) == null ? void 0 : V1.support) == null ? void 0 : j1.url,
|
|
634
|
+
class: c(["text-[#525B66] flex items-center rounded-lg text-sm tooltip hover:bg-primary-10-hover hover:text-primary-base transition-all", [f.value ? "w-[44px] h-[44px] text-center" : "h-[36x]"]])
|
|
635
635
|
}, [
|
|
636
|
-
(T1 = (
|
|
636
|
+
(T1 = (z1 = s.app) == null ? void 0 : z1.support) != null && T1.label ? (t(), l("div", i0, u(((E1 = (H1 = s.app) == null ? void 0 : H1.support) == null ? void 0 : E1.label) || "Support"), 1)) : a("", !0),
|
|
637
637
|
e("div", {
|
|
638
|
-
class:
|
|
638
|
+
class: c(["w-full", [f.value ? "" : "flex flex-nowrap items-center h-[36px]"]])
|
|
639
639
|
}, [
|
|
640
640
|
e("div", {
|
|
641
|
-
class:
|
|
641
|
+
class: c(["flex-shrink-0 relative", [f.value ? "mx-auto w-[36px] " : "flex space-x-2 px-1"]])
|
|
642
642
|
}, [
|
|
643
643
|
e("div", null, [
|
|
644
|
-
(t(),
|
|
644
|
+
(t(), w(_(k(re)), { class: "w-[20px] h-[20px] mx-auto" }))
|
|
645
645
|
]),
|
|
646
|
-
|
|
646
|
+
f.value ? a("", !0) : (t(), l("div", p0, u(((P1 = (I1 = s.app) == null ? void 0 : I1.support) == null ? void 0 : P1.label) || "Support"), 1))
|
|
647
647
|
], 2)
|
|
648
648
|
], 2)
|
|
649
649
|
], 10, r0)) : a("", !0)
|
|
650
650
|
], 2),
|
|
651
651
|
e("p", {
|
|
652
|
-
class:
|
|
652
|
+
class: c([[f.value ? "hidden" : "w-full"], "text-[7px] pl-2 text-[#979CA9] flex justify-between font-extralight pt-1"])
|
|
653
653
|
}, [
|
|
654
|
-
|
|
655
|
-
|
|
654
|
+
x[4] || (x[4] = e("span", null, [
|
|
655
|
+
e1("Powered by "),
|
|
656
656
|
e("span", { class: "text-blue-700" }, "OneB")
|
|
657
657
|
], -1)),
|
|
658
|
-
e("span", null,
|
|
658
|
+
e("span", null, u((A1 = s.app) == null ? void 0 : A1.version), 1)
|
|
659
659
|
], 2)
|
|
660
660
|
], 2), [
|
|
661
|
-
[
|
|
661
|
+
[d1, i.value]
|
|
662
662
|
])
|
|
663
663
|
], 38);
|
|
664
664
|
};
|
|
665
665
|
}
|
|
666
666
|
});
|
|
667
|
-
const d0 = /* @__PURE__ */
|
|
667
|
+
const d0 = /* @__PURE__ */ f1(u0, [["__scopeId", "data-v-6a4d29f3"]]), c0 = { class: "h-screen relative" }, f0 = {
|
|
668
668
|
class: "header h-[56px] flex items-center flex-nowrap fixed top-0 left-0 w-full z-50",
|
|
669
669
|
style: { background: "rgba(245, 247, 251, 0.8)", "backdrop-filter": "blur(5px)" }
|
|
670
|
-
}, h0 = { class: "p-2 flex-shrink-0" }, m0 = { class: "w-10 h-10 flex items-center flex-shrink-0" }, v0 = ["src"], C0 = { class: "whitespace-nowrap font-semibold text-xl" }, w0 = { class: "text-xs whitespace-nowrap" }, x0 = { class: "w-full" }, b0 = { class: "w-full flex justify-end pr-4" }, y0 = { class: "flex items-center space-x-1" }, g0 = {
|
|
670
|
+
}, h0 = { class: "sm:p-2 pl-2 flex-shrink-0" }, m0 = { class: "w-8 h-8 sm:w-10 sm:h-10 flex items-center flex-shrink-0" }, v0 = ["src"], C0 = { class: "whitespace-nowrap font-semibold sm:text-xl truncate" }, w0 = { class: "text-xs whitespace-nowrap truncate" }, x0 = { class: "w-full pl-1" }, b0 = { class: "w-full flex justify-end sm:pr-4" }, y0 = { class: "flex items-center sm:space-x-1" }, g0 = {
|
|
671
671
|
key: 0,
|
|
672
|
-
class: "module-border-wrap flex justify-center items-center"
|
|
672
|
+
class: "module-border-wrap flex justify-center items-center h-6 w-max"
|
|
673
673
|
}, L0 = { class: "h-4 w-4" }, k0 = { class: "ml-2 hidden sm:flex" }, _0 = { class: "flex h-full" }, $0 = { key: 0 }, S0 = {
|
|
674
674
|
key: 0,
|
|
675
675
|
class: "sm:w-[560px] w-full relative h-full"
|
|
676
|
-
},
|
|
676
|
+
}, M0 = { class: "h-full relative" }, B0 = { class: "flex items-center p-3 space-x-1.5" }, O0 = {
|
|
677
677
|
class: "overflow-auto",
|
|
678
678
|
style: { height: "calc(100% - 62px)" }
|
|
679
679
|
}, V0 = {
|
|
680
680
|
key: 0,
|
|
681
681
|
class: "p-5"
|
|
682
|
-
}, j0 = { key: 1 },
|
|
682
|
+
}, j0 = { key: 1 }, z0 = { class: "p-4 text-gray text-center" }, T0 = { key: 2 }, H0 = {
|
|
683
683
|
class: "p-3 space-y-1.5 rounded-lg",
|
|
684
684
|
style: { "box-shadow": "0 0 6px #eaeaea" }
|
|
685
|
-
},
|
|
685
|
+
}, E0 = { key: 0 }, I0 = {
|
|
686
686
|
key: 0,
|
|
687
687
|
class: "text-xs px-2 py-1 rounded-md bg-green-600 text-white"
|
|
688
|
-
},
|
|
688
|
+
}, P0 = {
|
|
689
689
|
key: 1,
|
|
690
690
|
class: "text-xs px-2 py-1 rounded-md bg-yellow-600 text-white"
|
|
691
|
-
},
|
|
691
|
+
}, A0 = {
|
|
692
692
|
key: 2,
|
|
693
693
|
class: "text-xs px-2 py-1 rounded-md bg-blue-600 text-white"
|
|
694
694
|
}, F0 = {
|
|
695
695
|
key: 3,
|
|
696
696
|
class: "text-xs px-2 py-1 rounded-md bg-gray-600 text-white"
|
|
697
|
-
}, N0 = { class: "text-lg font-medium" }, G0 = { class: "text-sm text-gray-600" }, W0 = { key: 0 }, q0 = ["src"], R0 = { class: "text-sm" }, U0 = { key: 1 }, Z0 = ["href"], D0 = { class: "text-sm flex items-center justify-between mt-1" }, J0 = { class: "text-gray-800" }, K0 = ["href"], Q0 = /* @__PURE__ */
|
|
697
|
+
}, N0 = { class: "text-lg font-medium" }, G0 = { class: "text-sm text-gray-600" }, W0 = { key: 0 }, q0 = ["src"], R0 = { class: "text-sm" }, U0 = { key: 1 }, Z0 = ["href"], D0 = { class: "text-sm flex items-center justify-between mt-1" }, J0 = { class: "text-gray-800" }, K0 = ["href"], Q0 = /* @__PURE__ */ c1({
|
|
698
698
|
__name: "OneMainLayout",
|
|
699
699
|
props: pe,
|
|
700
700
|
emits: ["load-news", "load-tariff", "open-tariff"],
|
|
701
|
-
setup(
|
|
702
|
-
const r =
|
|
701
|
+
setup(v, { emit: C }) {
|
|
702
|
+
const r = C, d = v;
|
|
703
703
|
let g = window.localStorage.getItem("sidebar-slim");
|
|
704
704
|
window.document.body.offsetWidth < 1024 && (window.localStorage.getItem("sidebar-slim") == null && window.localStorage.setItem("sidebar-slim", "1"), g = "1");
|
|
705
705
|
const b = $(g === "1");
|
|
706
|
-
$(!0),
|
|
707
|
-
window.localStorage.setItem("sidebar-slim", String(
|
|
706
|
+
$(!0), l1(b, (n) => {
|
|
707
|
+
window.localStorage.setItem("sidebar-slim", String(n ? 1 : 0));
|
|
708
708
|
});
|
|
709
|
-
const
|
|
710
|
-
|
|
711
|
-
},
|
|
712
|
-
|
|
713
|
-
() =>
|
|
709
|
+
const m = $(!1), L = () => {
|
|
710
|
+
m.value = !m.value, m.value && r("load-news");
|
|
711
|
+
}, V = M(() => d.showHeadre);
|
|
712
|
+
l1(
|
|
713
|
+
() => d.showHeadre,
|
|
714
714
|
// Передаємо доступ до props
|
|
715
715
|
() => {
|
|
716
|
-
|
|
716
|
+
V.value = d.showHeadre;
|
|
717
717
|
}
|
|
718
718
|
);
|
|
719
|
-
const
|
|
720
|
-
|
|
721
|
-
},
|
|
722
|
-
|
|
723
|
-
window.addEventListener("resize",
|
|
724
|
-
}),
|
|
725
|
-
window.removeEventListener("resize",
|
|
719
|
+
const E = $(window.innerWidth), B = () => {
|
|
720
|
+
E.value = window.innerWidth;
|
|
721
|
+
}, o = M(() => E.value <= 768);
|
|
722
|
+
p1(() => {
|
|
723
|
+
window.addEventListener("resize", B);
|
|
724
|
+
}), G1(() => {
|
|
725
|
+
window.removeEventListener("resize", B);
|
|
726
726
|
});
|
|
727
|
-
const y = (
|
|
728
|
-
var
|
|
729
|
-
(
|
|
727
|
+
const y = (n) => {
|
|
728
|
+
var i;
|
|
729
|
+
(i = d.handlers) == null || i.onSetLang(n);
|
|
730
|
+
}, f = $(!1), O = () => {
|
|
731
|
+
f.value = window.matchMedia("(min-width: 769px)").matches;
|
|
730
732
|
};
|
|
731
|
-
return (
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
733
|
+
return p1(() => {
|
|
734
|
+
O(), window.addEventListener("resize", O);
|
|
735
|
+
}), G1(() => {
|
|
736
|
+
window.removeEventListener("resize", O);
|
|
737
|
+
}), (n, i) => {
|
|
738
|
+
var H, S, j, Q, X, Y, P, A, F, s, x, N, G, W, q, R, U, Z, D;
|
|
739
|
+
const I = q1("RouterLink");
|
|
740
|
+
return t(), l("div", c0, [
|
|
741
|
+
u1(e("div", f0, [
|
|
736
742
|
e("div", h0, [
|
|
737
743
|
e("button", {
|
|
738
|
-
onClick:
|
|
739
|
-
class: "w-[44px] h-[44px] p-[8px] flex items-center justify-center rounded hover:bg-secondary-10 hover:text-blue-600"
|
|
744
|
+
onClick: i[0] || (i[0] = (p) => b.value = !b.value),
|
|
745
|
+
class: "sm:w-[44px] sm:h-[44px] w-8 h-8 sm:p-[8px] flex items-center justify-center rounded hover:bg-secondary-10 hover:text-blue-600"
|
|
740
746
|
}, [
|
|
741
|
-
T(k(ae), { class: "w-[24px] h-[24px]" })
|
|
747
|
+
T(k(ae), { class: "sm:w-[24px] sm:h-[24px] w-6 h-6" })
|
|
742
748
|
])
|
|
743
749
|
]),
|
|
744
750
|
e("div", m0, [
|
|
745
|
-
|
|
751
|
+
n.logoSrc != null ? (t(), l("img", {
|
|
746
752
|
key: 0,
|
|
747
|
-
src:
|
|
753
|
+
src: n.logoSrc,
|
|
748
754
|
class: "w-8 h-8 mx-auto",
|
|
749
755
|
alt: "logo"
|
|
750
756
|
}, null, 8, v0)) : a("", !0)
|
|
751
757
|
]),
|
|
752
|
-
|
|
758
|
+
n.app != null ? (t(), w(I, {
|
|
753
759
|
key: 0,
|
|
754
760
|
to: "/",
|
|
755
|
-
class: "pl-2
|
|
761
|
+
class: "sm:pl-2 pl-1 truncate w-full"
|
|
756
762
|
}, {
|
|
757
|
-
default:
|
|
758
|
-
var
|
|
763
|
+
default: i1(() => {
|
|
764
|
+
var p, z;
|
|
759
765
|
return [
|
|
760
|
-
e("div", C0,
|
|
761
|
-
e("div", w0,
|
|
766
|
+
e("div", C0, u(n.app.name), 1),
|
|
767
|
+
e("div", w0, u((z = (p = n.app) == null ? void 0 : p.workspace) == null ? void 0 : z.name), 1)
|
|
762
768
|
];
|
|
763
769
|
}),
|
|
764
770
|
_: 1
|
|
765
771
|
})) : a("", !0),
|
|
766
|
-
|
|
772
|
+
n1(n.$slots, "head-left", {}, void 0, !0),
|
|
767
773
|
e("div", x0, [
|
|
768
774
|
e("div", b0, [
|
|
769
775
|
e("div", y0, [
|
|
770
|
-
|
|
776
|
+
n.improveTariff && ((H = n.improveTariff) != null && H.label) && n.improveTariff.label ? (t(), l("div", g0, [
|
|
771
777
|
e("button", {
|
|
772
778
|
type: "button",
|
|
773
779
|
class: "cursor-pointer flex items-center h-full bg-[#FFF8E4] hover:bg-[#f2e3b8] rounded-full px-2 py-1 font-medium",
|
|
774
|
-
onClick:
|
|
775
|
-
(...
|
|
776
|
-
var
|
|
777
|
-
return ((
|
|
780
|
+
onClick: i[1] || (i[1] = //@ts-ignore
|
|
781
|
+
(...p) => {
|
|
782
|
+
var z, J;
|
|
783
|
+
return ((z = n.handlers) == null ? void 0 : z.onImproveTariff) && ((J = n.handlers) == null ? void 0 : J.onImproveTariff(...p));
|
|
778
784
|
}),
|
|
779
785
|
style: { "font-size": "10px" }
|
|
780
786
|
}, [
|
|
781
787
|
e("div", L0, [
|
|
782
|
-
(t(),
|
|
788
|
+
(t(), w(_((S = n.improveTariff) == null ? void 0 : S.icon), { class: "h-4 w-4 mx-auto" }))
|
|
783
789
|
]),
|
|
784
|
-
e("span", k0,
|
|
790
|
+
e("span", k0, u((j = n.improveTariff) == null ? void 0 : j.label), 1)
|
|
785
791
|
])
|
|
786
792
|
])) : a("", !0),
|
|
787
|
-
|
|
788
|
-
|
|
793
|
+
n1(n.$slots, "head-right", {}, void 0, !0),
|
|
794
|
+
n.help ? (t(), w(ee, {
|
|
789
795
|
key: 1,
|
|
790
|
-
help:
|
|
796
|
+
help: n.help
|
|
791
797
|
}, null, 8, ["help"])) : a("", !0),
|
|
792
|
-
((
|
|
798
|
+
((Q = n.handlers) == null ? void 0 : Q.onBrowse) != null ? (t(), w(te, {
|
|
793
799
|
key: 2,
|
|
794
|
-
workspace: (
|
|
795
|
-
apps: ((
|
|
796
|
-
"change-label": ((
|
|
797
|
-
"apps-title": ((
|
|
798
|
-
"on-app": (
|
|
799
|
-
"on-change": (
|
|
800
|
-
onOpen: (
|
|
800
|
+
workspace: (X = n.app) == null ? void 0 : X.workspace,
|
|
801
|
+
apps: ((Y = n.app) == null ? void 0 : Y.apps) || [],
|
|
802
|
+
"change-label": ((P = n.labels) == null ? void 0 : P.change) || "Change",
|
|
803
|
+
"apps-title": ((A = n.labels) == null ? void 0 : A.apps) || "Apps",
|
|
804
|
+
"on-app": (F = n.handlers) == null ? void 0 : F.onApp,
|
|
805
|
+
"on-change": (s = n.handlers) == null ? void 0 : s.onChange,
|
|
806
|
+
onOpen: (x = n.handlers) == null ? void 0 : x.onBrowse
|
|
801
807
|
}, null, 8, ["workspace", "apps", "change-label", "apps-title", "on-app", "on-change", "onOpen"])) : a("", !0),
|
|
802
808
|
T(se, {
|
|
803
|
-
user:
|
|
804
|
-
menu:
|
|
805
|
-
app:
|
|
806
|
-
"account-label": ((
|
|
807
|
-
"logout-label": ((
|
|
808
|
-
"version-label": ((
|
|
809
|
-
"on-account": (
|
|
810
|
-
"on-logout": (
|
|
809
|
+
user: n.user,
|
|
810
|
+
menu: n.menu,
|
|
811
|
+
app: n.app,
|
|
812
|
+
"account-label": ((N = n.labels) == null ? void 0 : N.account) || "Account",
|
|
813
|
+
"logout-label": ((G = n.labels) == null ? void 0 : G.logout) || "Logout",
|
|
814
|
+
"version-label": ((W = n.labels) == null ? void 0 : W.version) || "",
|
|
815
|
+
"on-account": (q = n.handlers) == null ? void 0 : q.onAccount,
|
|
816
|
+
"on-logout": (R = n.handlers) == null ? void 0 : R.onLogout
|
|
811
817
|
}, null, 8, ["user", "menu", "app", "account-label", "logout-label", "version-label", "on-account", "on-logout"])
|
|
812
818
|
])
|
|
813
819
|
])
|
|
814
820
|
])
|
|
815
821
|
], 512), [
|
|
816
|
-
[
|
|
822
|
+
[d1, V.value]
|
|
817
823
|
]),
|
|
818
824
|
e("div", _0, [
|
|
819
|
-
!
|
|
825
|
+
!o.value || !b.value ? (t(), w(d0, {
|
|
820
826
|
key: 0,
|
|
821
|
-
app:
|
|
822
|
-
items:
|
|
823
|
-
"with-news":
|
|
824
|
-
news:
|
|
825
|
-
isMobile:
|
|
827
|
+
app: n.app,
|
|
828
|
+
items: n.sidebarItems,
|
|
829
|
+
"with-news": n.news != null,
|
|
830
|
+
news: n.news,
|
|
831
|
+
isMobile: o.value,
|
|
826
832
|
modelValue: b.value,
|
|
827
|
-
"onUpdate:modelValue":
|
|
833
|
+
"onUpdate:modelValue": i[2] || (i[2] = (p) => b.value = p),
|
|
828
834
|
onShowNews: L,
|
|
829
835
|
onSelectLanguage: y,
|
|
830
|
-
onUpdateCollapsed:
|
|
836
|
+
onUpdateCollapsed: i[3] || (i[3] = (p) => b.value = !b.value)
|
|
831
837
|
}, null, 8, ["app", "items", "with-news", "news", "isMobile", "modelValue"])) : a("", !0),
|
|
832
838
|
e("div", {
|
|
833
|
-
class:
|
|
839
|
+
class: c([[
|
|
840
|
+
b.value ? "" : "lg:ml-[260px] hidden sm:block",
|
|
841
|
+
f.value ? "ml-[60px]" : ""
|
|
842
|
+
], "body scroll-body w-full overflow-y-auto"])
|
|
834
843
|
}, [
|
|
835
844
|
e("div", {
|
|
836
|
-
class:
|
|
845
|
+
class: c(["content transition-all", { "pt-[56px]": V.value }])
|
|
837
846
|
}, [
|
|
838
|
-
|
|
847
|
+
n1(n.$slots, "default", {}, void 0, !0)
|
|
839
848
|
], 2)
|
|
840
849
|
], 2)
|
|
841
850
|
]),
|
|
842
|
-
|
|
843
|
-
|
|
851
|
+
n.news ? (t(), l("div", $0, [
|
|
852
|
+
m.value ? (t(), l("div", {
|
|
844
853
|
key: 0,
|
|
845
854
|
class: "fixed top-0 left-0 h-dvh w-screen bg-gray-100 bg-opacity-40 z-50",
|
|
846
|
-
onClick:
|
|
855
|
+
onClick: i[4] || (i[4] = t1((p) => m.value = !1, ["self"]))
|
|
847
856
|
})) : a("", !0),
|
|
848
857
|
e("div", {
|
|
849
|
-
class:
|
|
858
|
+
class: c(["opacity-100 shadow-lg transition-all fixed top-0 left-0 h-dvh overflow-hidden z-50 bg-white", [m.value ? "sm:w-[560px] w-full" : "w-0"]])
|
|
850
859
|
}, [
|
|
851
|
-
|
|
852
|
-
e("div",
|
|
853
|
-
e("div",
|
|
854
|
-
T(
|
|
855
|
-
|
|
860
|
+
m.value ? (t(), l("div", S0, [
|
|
861
|
+
e("div", M0, [
|
|
862
|
+
e("div", B0, [
|
|
863
|
+
T(D1, { class: "w-10 h-10" }),
|
|
864
|
+
i[6] || (i[6] = e("div", { class: "w-full font-medium" }, "OneB News", -1)),
|
|
856
865
|
e("div", null, [
|
|
857
|
-
T(
|
|
866
|
+
T(U1, {
|
|
858
867
|
variant: "touch",
|
|
859
868
|
icon: k(le),
|
|
860
|
-
onClick:
|
|
869
|
+
onClick: i[5] || (i[5] = (p) => m.value = !1)
|
|
861
870
|
}, null, 8, ["icon"])
|
|
862
871
|
])
|
|
863
872
|
]),
|
|
864
873
|
e("div", O0, [
|
|
865
|
-
|
|
874
|
+
n.news.isLoading && ((U = n.news.items) == null ? void 0 : U.length) === 0 ? (t(), l("div", V0, [
|
|
866
875
|
T(oe, { class: "w-6 h-6 text-gray-600 mx-auto" })
|
|
867
|
-
])) : ((
|
|
868
|
-
e("div",
|
|
869
|
-
])) : ((
|
|
870
|
-
(t(!0),
|
|
871
|
-
key:
|
|
876
|
+
])) : ((Z = n.news.items) == null ? void 0 : Z.length) === 0 ? (t(), l("div", j0, [
|
|
877
|
+
e("div", z0, u(n.news.emptyText), 1)
|
|
878
|
+
])) : ((D = n.news.items) == null ? void 0 : D.length) > 0 ? (t(), l("div", T0, [
|
|
879
|
+
(t(!0), l(K, null, s1(n.news.items, (p) => (t(), l("div", {
|
|
880
|
+
key: p.id,
|
|
872
881
|
class: "p-3"
|
|
873
882
|
}, [
|
|
874
883
|
e("div", H0, [
|
|
875
884
|
e("div", null, [
|
|
876
|
-
|
|
877
|
-
|
|
885
|
+
p.type ? (t(), l("div", E0, [
|
|
886
|
+
p.type === 10 ? (t(), l("span", I0, "update")) : p.type === 11 ? (t(), l("span", P0, "warning")) : p.type === 12 ? (t(), l("span", A0, "notice")) : p.type === 13 ? (t(), l("span", F0, "ads")) : a("", !0)
|
|
878
887
|
])) : a("", !0),
|
|
879
|
-
e("div", N0, p
|
|
880
|
-
e("div", G0, p
|
|
888
|
+
e("div", N0, u(p.title), 1),
|
|
889
|
+
e("div", G0, u(p.summary), 1)
|
|
881
890
|
]),
|
|
882
|
-
|
|
891
|
+
p.image_url ? (t(), l("div", W0, [
|
|
883
892
|
e("img", {
|
|
884
|
-
src:
|
|
893
|
+
src: p.image_url,
|
|
885
894
|
alt: "",
|
|
886
895
|
class: "w-full rounded-md"
|
|
887
896
|
}, null, 8, q0)
|
|
888
897
|
])) : a("", !0),
|
|
889
898
|
e("div", R0, [
|
|
890
899
|
T(ne, {
|
|
891
|
-
text:
|
|
900
|
+
text: p.body
|
|
892
901
|
}, null, 8, ["text"])
|
|
893
902
|
]),
|
|
894
|
-
|
|
903
|
+
p.video_url ? (t(), l("div", U0, [
|
|
895
904
|
e("a", {
|
|
896
|
-
href:
|
|
905
|
+
href: p.video_url,
|
|
897
906
|
target: "_blank",
|
|
898
907
|
class: "text-blue-600 hover:text-blue-700 px-3 py-2 border rounded-md w-full block"
|
|
899
|
-
},
|
|
908
|
+
}, u(n.news.openVideoText), 9, Z0)
|
|
900
909
|
])) : a("", !0),
|
|
901
910
|
e("div", D0, [
|
|
902
|
-
e("span", J0, p
|
|
903
|
-
|
|
911
|
+
e("span", J0, u(p.published), 1),
|
|
912
|
+
p.post_url ? (t(), l("a", {
|
|
904
913
|
key: 0,
|
|
905
|
-
href:
|
|
914
|
+
href: p.post_url,
|
|
906
915
|
target: "_blank",
|
|
907
916
|
class: "text-blue-600 hover:text-blue-700 block"
|
|
908
|
-
},
|
|
917
|
+
}, u(n.news.moreText), 9, K0)) : a("", !0)
|
|
909
918
|
])
|
|
910
919
|
])
|
|
911
920
|
]))), 128))
|
|
@@ -919,7 +928,7 @@ const d0 = /* @__PURE__ */ u1(u0, [["__scopeId", "data-v-5fb28f96"]]), c0 = { cl
|
|
|
919
928
|
};
|
|
920
929
|
}
|
|
921
930
|
});
|
|
922
|
-
const i9 = /* @__PURE__ */
|
|
931
|
+
const i9 = /* @__PURE__ */ f1(Q0, [["__scopeId", "data-v-f5bf3126"]]);
|
|
923
932
|
export {
|
|
924
933
|
i9 as OneMainLayout,
|
|
925
934
|
d0 as OneSidebar
|