@oneb/ui-vue 0.3.31 → 0.4.0
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/ChevronLeftIcon-7505e081.cjs +1 -0
- package/dist/ChevronLeftIcon-bb9adb5b.js +20 -0
- package/dist/ChevronRightIcon-2992cf0d.cjs +1 -0
- package/dist/ChevronRightIcon-b0585768.js +20 -0
- package/dist/ChevronUpIcon-64a673e1.cjs +1 -0
- package/dist/{ChevronRightIcon-4549a26b.js → ChevronUpIcon-c43f27a9.js} +2 -19
- package/dist/InformationCircleIcon-2f6097a0.js +20 -0
- package/dist/InformationCircleIcon-d6b67d5d.cjs +1 -0
- package/dist/MagnifyingGlassIcon-adf871ba.cjs +1 -0
- package/dist/MagnifyingGlassIcon-ca213d3d.js +20 -0
- package/dist/{NoSymbolIcon-e58a9aee.js → NoSymbolIcon-b3470a26.js} +8 -25
- package/dist/{NoSymbolIcon-5d326416.cjs → NoSymbolIcon-e84375bb.cjs} +1 -1
- package/dist/OneDropdownAuto.vue_vue_type_script_setup_true_lang-2c508e8a.js +79 -0
- package/dist/OneDropdownAuto.vue_vue_type_script_setup_true_lang-bf923b04.cjs +1 -0
- package/dist/OneFormInput.vue_vue_type_script_setup_true_lang-b89117e7.js +521 -0
- package/dist/OneFormInput.vue_vue_type_script_setup_true_lang-f6f7cd96.cjs +1 -0
- package/dist/OneHelpMenu-6ec63535.cjs +1 -0
- package/dist/{OneHelpMenu-73817f8a.js → OneHelpMenu-d5182c78.js} +118 -213
- package/dist/OneMarkdown.vue_vue_type_script_setup_true_lang-05266fc3.cjs +1 -0
- package/dist/OneMarkdown.vue_vue_type_script_setup_true_lang-bb2219c7.js +18 -0
- package/dist/OneModal-02a9a173.js +189 -0
- package/dist/OneModal-0e92c039.cjs +1 -0
- package/dist/OneTooltip.vue_vue_type_script_setup_true_lang-c492c128.js +25 -0
- package/dist/OneTooltip.vue_vue_type_script_setup_true_lang-e83a81ea.cjs +1 -0
- package/dist/SpinnerIcon-01be39fe.cjs +1 -0
- package/dist/{SpinnerIcon-74648c98.js → SpinnerIcon-516264ba.js} +5 -6
- package/dist/button/index.cjs +1 -1
- package/dist/button/index.d.ts +1 -1
- package/dist/button/index.js +3 -4
- package/dist/checkbox/checkbox.d.ts +5 -0
- package/dist/checkbox/index.cjs +1 -1
- package/dist/checkbox/index.js +40 -34
- package/dist/chips/OneChips.vue.d.ts +2 -0
- package/dist/chips/chips.d.ts +25 -0
- package/dist/chips/index.cjs +1 -0
- package/dist/chips/index.d.ts +3 -0
- package/dist/chips/index.js +62 -0
- package/dist/clipboard-494e1513.cjs +1 -0
- package/dist/clipboard-733b79a1.js +22 -0
- package/dist/common/OneDetailsList.vue.d.ts +2 -0
- package/dist/common/OneDetailsRow.vue.d.ts +2 -0
- package/dist/common/index.cjs +1 -1
- package/dist/common/index.d.ts +2 -0
- package/dist/common/index.js +68 -16
- package/dist/composables/index.cjs +1 -0
- package/dist/composables/index.d.ts +18 -0
- package/dist/composables/index.js +91 -0
- package/dist/composables/useAsyncMethod.d.ts +17 -0
- package/dist/composables/useAsyncSelect.d.ts +26 -0
- package/dist/composables/useConfirm.d.ts +27 -0
- package/dist/composables/useCursorList.d.ts +42 -0
- package/dist/composables/useDebouncedRef.d.ts +6 -0
- package/dist/composables/useFileUpload.d.ts +21 -0
- package/dist/composables/useFormSubmit.d.ts +23 -0
- package/dist/composables/useIsMobile.d.ts +8 -0
- package/dist/confirm/OneConfirmHost.vue.d.ts +2 -0
- package/dist/confirm/confirm.d.ts +10 -0
- package/dist/confirm/index.cjs +1 -0
- package/dist/confirm/index.d.ts +5 -0
- package/dist/confirm/index.js +59 -0
- package/dist/cursorList/OneCursorList.vue.d.ts +2 -0
- package/dist/cursorList/index.cjs +1 -0
- package/dist/cursorList/index.d.ts +3 -0
- package/dist/cursorList/index.js +78 -0
- package/dist/dataTable/index.cjs +1 -1
- package/dist/dataTable/index.js +256 -301
- package/dist/dateTime/OneDateTime.vue.d.ts +2 -0
- package/dist/dateTime/dateTime.d.ts +43 -0
- package/dist/dateTime/index.cjs +1 -0
- package/dist/dateTime/index.d.ts +3 -0
- package/dist/dateTime/index.js +66 -0
- package/dist/dropdown/index.cjs +1 -1
- package/dist/dropdown/index.js +302 -376
- package/dist/dropdown-5cb64ab7.cjs +1 -0
- package/dist/dropdown-c81fb945.js +101 -0
- package/dist/entityPicker/index.cjs +1 -1
- package/dist/entityPicker/index.js +57 -57
- package/dist/entityPicker/useEntityModal.d.ts +7 -3
- package/dist/errorsPage/OneCrashScreen.vue.d.ts +2 -0
- package/dist/errorsPage/OneErrorHero.vue.d.ts +2 -0
- package/dist/errorsPage/OneNotFoundPage.vue.d.ts +2 -0
- package/dist/errorsPage/OneServerErrorPage.vue.d.ts +2 -0
- package/dist/errorsPage/OneSnakeGame.vue.d.ts +2 -0
- package/dist/errorsPage/createAppErrorHandler.d.ts +24 -0
- package/dist/errorsPage/errorsType.d.ts +5 -0
- package/dist/errorsPage/index.cjs +1 -1
- package/dist/errorsPage/index.d.ts +8 -0
- package/dist/errorsPage/index.js +557 -28
- package/dist/errorsPage/useCrashState.d.ts +10 -0
- package/dist/fileUpload/OneDropzone.vue.d.ts +2 -0
- package/dist/fileUpload/OneFileUpload.vue.d.ts +2 -0
- package/dist/fileUpload/fileUpload.d.ts +17 -0
- package/dist/fileUpload/index.cjs +1 -0
- package/dist/fileUpload/index.d.ts +6 -0
- package/dist/fileUpload/index.js +228 -0
- package/dist/filterBuilder/OneFilterBuilder.vue.d.ts +2 -0
- package/dist/filterBuilder/OneFilterGroup.vue.d.ts +2 -0
- package/dist/filterBuilder/OneFilterRule.vue.d.ts +2 -0
- package/dist/filterBuilder/filterBuilder.d.ts +17 -0
- package/dist/filterBuilder/index.cjs +1 -0
- package/dist/filterBuilder/index.d.ts +5 -0
- package/dist/filterBuilder/index.js +257 -0
- package/dist/form/form.d.ts +1 -1
- package/dist/form/index.cjs +1 -1
- package/dist/form/index.js +66 -574
- package/dist/i18n/index.cjs +1 -1
- package/dist/i18n/index.js +99 -15
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +18 -0
- package/dist/index.js +243 -104
- package/dist/indicators/OneStatCard.vue.d.ts +2 -0
- package/dist/indicators/index.cjs +1 -1
- package/dist/indicators/index.d.ts +1 -0
- package/dist/indicators/index.js +66 -29
- package/dist/infobox/index.cjs +1 -1
- package/dist/infobox/index.js +4 -3
- package/dist/label/index.cjs +1 -1
- package/dist/label/index.js +5 -5
- package/dist/layout/OneAuthLayout.vue.d.ts +2 -0
- package/dist/layout/OneBackButton.vue.d.ts +2 -0
- package/dist/layout/OneBreadcrumbs.vue.d.ts +2 -0
- package/dist/layout/OneEmptyLayout.vue.d.ts +6 -0
- package/dist/layout/OneGridLayout.vue.d.ts +2 -0
- package/dist/layout/index.cjs +1 -1
- package/dist/layout/index.d.ts +6 -1
- package/dist/layout/index.js +1057 -765
- package/dist/layout/layout.d.ts +11 -0
- package/dist/modal/OneModalHost.vue.d.ts +2 -0
- package/dist/modal/index.cjs +1 -1
- package/dist/modal/index.d.ts +3 -0
- package/dist/modal/index.js +84 -27
- package/dist/modal/modal.d.ts +9 -0
- package/dist/modal/useModalStack.d.ts +20 -0
- package/dist/notifications/OneNotificationItem.vue.d.ts +2 -0
- package/dist/notifications/OneNotificationsBell.vue.d.ts +2 -0
- package/dist/notifications/OneNotificationsPanel.vue.d.ts +2 -0
- package/dist/notifications/index.cjs +1 -0
- package/dist/notifications/index.d.ts +7 -0
- package/dist/notifications/index.js +477 -0
- package/dist/notifications/notifications.d.ts +53 -0
- package/dist/notifications/useNotifyfeed.d.ts +32 -0
- package/dist/periodPicker/index.cjs +1 -1
- package/dist/periodPicker/index.js +126 -139
- package/dist/popover/OnePopover.vue.d.ts +2 -0
- package/dist/popover/index.cjs +1 -0
- package/dist/popover/index.d.ts +3 -0
- package/dist/popover/index.js +102 -0
- package/dist/popover/popover.d.ts +31 -0
- package/dist/progress/OneProgress.vue.d.ts +2 -0
- package/dist/progress/index.cjs +1 -0
- package/dist/progress/index.d.ts +3 -0
- package/dist/progress/index.js +74 -0
- package/dist/progress/progress.d.ts +32 -0
- package/dist/searchInput/OneSearchInput.vue.d.ts +2 -0
- package/dist/searchInput/index.cjs +1 -0
- package/dist/searchInput/index.d.ts +3 -0
- package/dist/searchInput/index.js +103 -0
- package/dist/searchInput/searchInput.d.ts +39 -0
- package/dist/settings/OneSettingsLayout.vue.d.ts +2 -0
- package/dist/settings/OneSettingsRow.vue.d.ts +2 -0
- package/dist/settings/OneSettingsSection.vue.d.ts +2 -0
- package/dist/settings/index.cjs +1 -0
- package/dist/settings/index.d.ts +4 -0
- package/dist/settings/index.js +116 -0
- package/dist/spinner/OneSpinner.vue.d.ts +2 -0
- package/dist/spinner/index.cjs +1 -0
- package/dist/spinner/index.d.ts +3 -0
- package/dist/spinner/index.js +30 -0
- package/dist/spinner/spinner.d.ts +10 -0
- package/dist/stageBadge/OneStageBadge.vue.d.ts +2 -0
- package/dist/stageBadge/index.cjs +1 -0
- package/dist/stageBadge/index.d.ts +3 -0
- package/dist/stageBadge/index.js +126 -0
- package/dist/stageBadge/stageBadge.d.ts +64 -0
- package/dist/stepper/OneStepper.vue.d.ts +2 -0
- package/dist/stepper/index.cjs +1 -0
- package/dist/stepper/index.d.ts +3 -0
- package/dist/stepper/index.js +53 -0
- package/dist/stepper/stepper.d.ts +24 -0
- package/dist/style.css +1 -1
- package/dist/switch/index.cjs +1 -1
- package/dist/switch/index.js +3 -4
- package/dist/tabs/OneTab.vue.d.ts +2 -0
- package/dist/tabs/OneTabs.vue.d.ts +2 -0
- package/dist/tabs/index.cjs +1 -0
- package/dist/tabs/index.d.ts +4 -0
- package/dist/tabs/index.js +64 -0
- package/dist/tabs/tabs.d.ts +7 -0
- package/dist/toast/OneMascotToast.vue.d.ts +2 -0
- package/dist/toast/RabbitIcon.vue.d.ts +2 -0
- package/dist/toast/index.cjs +1 -1
- package/dist/toast/index.d.ts +4 -0
- package/dist/toast/index.js +139 -73
- package/dist/toast/useMascotToast.d.ts +12 -0
- package/dist/tooltip/OneTooltip.vue.d.ts +2 -0
- package/dist/tooltip/index.cjs +2 -2
- package/dist/tooltip/index.d.ts +1 -0
- package/dist/tooltip/index.js +33 -30
- package/dist/useConfirm-6344b49d.cjs +1 -0
- package/dist/useConfirm-74e99a5c.js +23 -0
- package/dist/useCursorList-5c1b57aa.js +62 -0
- package/dist/useCursorList-e1cb41e7.cjs +1 -0
- package/dist/useElementWidth-b36a7ce9.js +40 -0
- package/dist/useElementWidth-b3e53f48.cjs +1 -0
- package/dist/useFileUpload-228dbc07.js +24 -0
- package/dist/useFileUpload-f47622bb.cjs +1 -0
- package/dist/useIsMobile-7b1f08cf.cjs +1 -0
- package/dist/useIsMobile-98fc0cf9.js +7 -0
- package/dist/useMediaQuery-1d87df02.cjs +1 -0
- package/dist/useMediaQuery-77a19b18.js +37 -0
- package/dist/useModal-6a5d870b.js +30 -0
- package/dist/useModal-aa6f4a57.cjs +1 -0
- package/dist/userList/OneUserInviteModal.vue.d.ts +2 -0
- package/dist/userList/OneUserList.vue.d.ts +2 -0
- package/dist/userList/OneUserListItem.vue.d.ts +2 -0
- package/dist/userList/index.cjs +1 -0
- package/dist/userList/index.d.ts +4 -0
- package/dist/userList/index.js +559 -0
- package/dist/utils/clipboard.d.ts +6 -0
- package/dist/utils/format.d.ts +17 -0
- package/dist/utils/index.cjs +1 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/index.js +125 -0
- package/dist/utils/string.d.ts +25 -0
- package/dist/utils/versionChecker.d.ts +26 -0
- package/package.json +221 -23
- package/dist/ChevronRightIcon-7a2f0c20.cjs +0 -1
- package/dist/OneHelpMenu-c6e88d8f.cjs +0 -1
- package/dist/OneMarkdown.vue_vue_type_style_index_0_lang-0ea8fbf8.cjs +0 -1
- package/dist/OneMarkdown.vue_vue_type_style_index_0_lang-4ed993c7.js +0 -1
- package/dist/SpinnerIcon-ccb6f3fc.cjs +0 -1
- package/dist/SpinnerIcon.vue_vue_type_style_index_0_lang-0ea8fbf8.cjs +0 -1
- package/dist/SpinnerIcon.vue_vue_type_style_index_0_lang-4ed993c7.js +0 -1
- package/dist/useModal-0c73777f.cjs +0 -1
- package/dist/useModal-7fe9444b.js +0 -194
package/dist/layout/index.js
CHANGED
|
@@ -1,21 +1,24 @@
|
|
|
1
|
-
import { openBlock as e, createElementBlock as
|
|
2
|
-
import { _ as
|
|
3
|
-
import { r as
|
|
4
|
-
import { r as
|
|
5
|
-
import { _ as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import "../
|
|
12
|
-
import { _ as
|
|
1
|
+
import { openBlock as e, createElementBlock as s, createElementVNode as t, defineComponent as K, computed as S, ref as V, resolveComponent as Ce, resolveDirective as ht, Fragment as W, toDisplayString as d, createCommentVNode as o, createBlock as h, withCtx as I, resolveDynamicComponent as _, mergeProps as mt, renderList as U, withDirectives as pe, normalizeClass as y, unref as O, withModifiers as he, watch as Me, shallowRef as ft, watchEffect as vt, normalizeStyle as tt, vShow as ge, createVNode as B, createTextVNode as ce, onMounted as xe, onUnmounted as Oe, renderSlot as P } from "vue";
|
|
2
|
+
import { _ as st, e as yt, f as wt, c as lt, O as ot, b as at } from "../OneHelpMenu-d5182c78.js";
|
|
3
|
+
import { r as Be } from "../ChevronUpIcon-c43f27a9.js";
|
|
4
|
+
import { r as be } from "../ChevronDownIcon-6805ce6c.js";
|
|
5
|
+
import { _ as $e } from "../_plugin-vue_export-helper-dad06003.js";
|
|
6
|
+
import { r as nt } from "../ChevronRightIcon-b0585768.js";
|
|
7
|
+
import { OneButton as _e } from "../button/index.js";
|
|
8
|
+
import { u as bt } from "../useElementWidth-b36a7ce9.js";
|
|
9
|
+
import { useOnebI18n as Le } from "../i18n/index.js";
|
|
10
|
+
import { r as rt } from "../XMarkIcon-51ef0691.js";
|
|
11
|
+
import { S as it } from "../SpinnerIcon-516264ba.js";
|
|
12
|
+
import { _ as dt } from "../OneMarkdown.vue_vue_type_script_setup_true_lang-bb2219c7.js";
|
|
13
|
+
import { _ as ue } from "../OneAvatar.vue_vue_type_script_setup_true_lang-08ab80dd.js";
|
|
14
|
+
import { useRouter as gt } from "vue-router";
|
|
15
|
+
import { r as xt } from "../ChevronLeftIcon-bb9adb5b.js";
|
|
16
|
+
import "../dropdown-c81fb945.js";
|
|
13
17
|
import "@floating-ui/dom";
|
|
14
18
|
import "@floating-ui/vue";
|
|
15
|
-
import "../SpinnerIcon.vue_vue_type_style_index_0_lang-4ed993c7.js";
|
|
16
19
|
import "vue-markdown-render";
|
|
17
|
-
function je(
|
|
18
|
-
return e(),
|
|
20
|
+
function je(u, f) {
|
|
21
|
+
return e(), s("svg", {
|
|
19
22
|
xmlns: "http://www.w3.org/2000/svg",
|
|
20
23
|
fill: "none",
|
|
21
24
|
viewBox: "0 0 24 24",
|
|
@@ -23,14 +26,14 @@ function je(x, k) {
|
|
|
23
26
|
stroke: "currentColor",
|
|
24
27
|
"aria-hidden": "true"
|
|
25
28
|
}, [
|
|
26
|
-
|
|
29
|
+
t("path", {
|
|
27
30
|
"stroke-linecap": "round",
|
|
28
31
|
"stroke-linejoin": "round",
|
|
29
32
|
d: "M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"
|
|
30
33
|
})
|
|
31
34
|
]);
|
|
32
35
|
}
|
|
33
|
-
const
|
|
36
|
+
const ut = {
|
|
34
37
|
items: {
|
|
35
38
|
required: !0,
|
|
36
39
|
type: Array
|
|
@@ -64,7 +67,7 @@ const d1 = {
|
|
|
64
67
|
t: {
|
|
65
68
|
type: Function
|
|
66
69
|
}
|
|
67
|
-
},
|
|
70
|
+
}, kt = {
|
|
68
71
|
route: {
|
|
69
72
|
required: !1,
|
|
70
73
|
type: [Object, String]
|
|
@@ -131,8 +134,8 @@ const d1 = {
|
|
|
131
134
|
required: !1
|
|
132
135
|
// Не обов'язковий, бо може бути відсутнім
|
|
133
136
|
}
|
|
134
|
-
},
|
|
135
|
-
sidebarItems:
|
|
137
|
+
}, pt = {
|
|
138
|
+
sidebarItems: ut.items,
|
|
136
139
|
logoSrc: {
|
|
137
140
|
type: String
|
|
138
141
|
},
|
|
@@ -155,6 +158,11 @@ const d1 = {
|
|
|
155
158
|
workspace: {
|
|
156
159
|
type: Object
|
|
157
160
|
},
|
|
161
|
+
showHeader: {
|
|
162
|
+
type: Boolean,
|
|
163
|
+
default: void 0
|
|
164
|
+
},
|
|
165
|
+
/** @deprecated typo alias, use showHeader */
|
|
158
166
|
showHeadre: {
|
|
159
167
|
type: Boolean,
|
|
160
168
|
default: !0
|
|
@@ -185,114 +193,118 @@ const d1 = {
|
|
|
185
193
|
t: {
|
|
186
194
|
type: Function
|
|
187
195
|
}
|
|
188
|
-
},
|
|
196
|
+
}, Ct = {
|
|
197
|
+
count: {
|
|
198
|
+
type: Number
|
|
199
|
+
}
|
|
200
|
+
}, $t = {
|
|
189
201
|
key: 0,
|
|
190
202
|
class: "border-t border-secondary-stroke my-2 mx-auto w-6"
|
|
191
|
-
},
|
|
203
|
+
}, _t = {
|
|
192
204
|
key: 1,
|
|
193
205
|
style: { "font-size": "10px" },
|
|
194
206
|
class: "text-[#a1a5b0] px-2 pt-0 pb-0.5 pl-3 font-medium"
|
|
195
|
-
},
|
|
207
|
+
}, Lt = { class: "flex flex-nowrap items-center h-[24px]" }, St = {
|
|
196
208
|
key: 0,
|
|
197
209
|
class: "flex-shrink-0 w-auto"
|
|
198
|
-
},
|
|
210
|
+
}, Bt = { class: "min-w-[220px] py-1" }, Ot = { class: "text-xs font-semibold text-black px-3 pt-1 pb-2" }, Mt = ["href"], jt = { class: "text-xs" }, Tt = { class: "text-xs" }, zt = ["href"], Ft = { class: "flex flex-nowrap items-center h-[24px]" }, Vt = {
|
|
199
211
|
key: 1,
|
|
200
212
|
class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"
|
|
201
|
-
},
|
|
213
|
+
}, Ht = { class: "py-[8px] pl-0 pr-0" }, Wt = {
|
|
202
214
|
key: 2,
|
|
203
215
|
class: "ml-auto"
|
|
204
|
-
},
|
|
216
|
+
}, Pt = { class: "flex flex-nowrap items-center h-[24px]" }, At = {
|
|
205
217
|
key: 1,
|
|
206
218
|
class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"
|
|
207
|
-
},
|
|
219
|
+
}, Et = { class: "py-[8px] pl-0 pr-0" }, Nt = {
|
|
208
220
|
key: 2,
|
|
209
221
|
class: "p-3"
|
|
210
|
-
},
|
|
222
|
+
}, Gt = { class: "flex flex-nowrap items-center h-[24px]" }, It = {
|
|
211
223
|
key: 1,
|
|
212
224
|
class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"
|
|
213
|
-
},
|
|
225
|
+
}, Rt = { class: "py-[8px] pl-0 pr-0" }, qt = {
|
|
214
226
|
key: 2,
|
|
215
227
|
class: "p-3"
|
|
216
|
-
},
|
|
228
|
+
}, Ut = {
|
|
217
229
|
key: 3,
|
|
218
230
|
class: "pl-[36px] pr-3"
|
|
219
|
-
},
|
|
231
|
+
}, Zt = ["href"], Dt = { class: "flex items-center justify-between min-w-full h-[24px]" }, Jt = { class: "text-xs" }, Kt = {
|
|
220
232
|
key: 0,
|
|
221
233
|
class: "pr-1"
|
|
222
|
-
},
|
|
234
|
+
}, Qt = { class: "text-xs" }, Xt = {
|
|
223
235
|
key: 0,
|
|
224
236
|
class: "pr-3"
|
|
225
|
-
},
|
|
237
|
+
}, Yt = /* @__PURE__ */ K({
|
|
226
238
|
__name: "OneSidebarLink",
|
|
227
|
-
props:
|
|
239
|
+
props: kt,
|
|
228
240
|
emits: ["update-collapsed"],
|
|
229
|
-
setup(
|
|
230
|
-
const
|
|
241
|
+
setup(u, { emit: f }) {
|
|
242
|
+
const c = u, p = f, g = (l) => l.route ? l.route : l.routeName ? { name: l.routeName } : null, m = S(() => g(c)), C = S(() => Array.isArray(c.subItems) && c.subItems.length > 0), T = S(() => C.value && c.subItems.some((l) => l.href)), L = S(() => c.href ? "a" : m.value ? "router-link" : "span"), A = S(() => c.href ? { href: c.href, title: C.value ? null : c.label } : m.value ? { to: m.value, title: C.value ? null : c.label } : { title: C.value ? null : c.label }), z = S(() => [
|
|
231
243
|
"flex items-center justify-center text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66] mb-0.5 rounded-10 w-[44px] h-[44px] cursor-pointer",
|
|
232
|
-
|
|
233
|
-
]),
|
|
244
|
+
c.active ? "bg-primary-10 !text-primary-base" : ""
|
|
245
|
+
]), M = V(c.open), D = (l, j = c) => {
|
|
234
246
|
var i;
|
|
235
|
-
return (
|
|
236
|
-
},
|
|
237
|
-
|
|
238
|
-
}, E = (
|
|
247
|
+
return (j == null ? void 0 : j.menuGroup) && (l == null ? void 0 : l.meta) && ((i = l.meta) == null ? void 0 : i.menuGroup) && l.meta.menuGroup && l.meta.menuGroup === j.menuGroup;
|
|
248
|
+
}, Z = () => {
|
|
249
|
+
M.value = !M.value;
|
|
250
|
+
}, E = (l, j) => {
|
|
239
251
|
var i;
|
|
240
|
-
|
|
252
|
+
C.value && !j && !(c.slim && c.island) && ((i = l == null ? void 0 : l.preventDefault) == null || i.call(l), Z()), (j || !C.value) && c.isMobile && p("update-collapsed");
|
|
241
253
|
};
|
|
242
|
-
return (
|
|
243
|
-
var
|
|
244
|
-
const i =
|
|
245
|
-
return e(),
|
|
246
|
-
|
|
247
|
-
|
|
254
|
+
return (l, j) => {
|
|
255
|
+
var Q, a;
|
|
256
|
+
const i = Ce("RouterLink"), b = ht("onetooltip");
|
|
257
|
+
return e(), s(W, null, [
|
|
258
|
+
l.labelTop && l.slim ? (e(), s("div", $t)) : l.labelTop ? (e(), s("p", _t, d(l.labelTop), 1)) : o("", !0),
|
|
259
|
+
l.slim && l.island && C.value ? (e(), h(st, {
|
|
248
260
|
key: 2,
|
|
249
261
|
trigger: "hover",
|
|
250
262
|
"append-body": !0,
|
|
251
263
|
stick: "right-start",
|
|
252
264
|
offset: 12
|
|
253
265
|
}, {
|
|
254
|
-
button:
|
|
255
|
-
(e(),
|
|
256
|
-
class:
|
|
266
|
+
button: I(() => [
|
|
267
|
+
(e(), h(_(L.value), mt(A.value, {
|
|
268
|
+
class: z.value,
|
|
257
269
|
onClick: E
|
|
258
270
|
}), {
|
|
259
|
-
default:
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
(e(),
|
|
263
|
-
])) :
|
|
271
|
+
default: I(() => [
|
|
272
|
+
t("div", Lt, [
|
|
273
|
+
l.icon ? (e(), s("div", St, [
|
|
274
|
+
(e(), h(_(l.icon), { class: "mx-auto w-5 h-5" }))
|
|
275
|
+
])) : o("", !0)
|
|
264
276
|
])
|
|
265
277
|
]),
|
|
266
278
|
_: 1
|
|
267
279
|
}, 16, ["class"]))
|
|
268
280
|
]),
|
|
269
|
-
menu:
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
281
|
+
menu: I(() => [
|
|
282
|
+
t("div", Bt, [
|
|
283
|
+
t("p", Ot, d(l.label), 1),
|
|
284
|
+
T.value ? (e(!0), s(W, { key: 0 }, U(c.subItems, (r) => (e(), s("a", {
|
|
273
285
|
key: r.label,
|
|
274
286
|
href: r.href,
|
|
275
287
|
class: "flex items-center gap-2 rounded-10 mx-1 px-3 py-2 text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66]"
|
|
276
288
|
}, [
|
|
277
|
-
r.icon ? (e(),
|
|
289
|
+
r.icon ? (e(), h(_(r.icon), {
|
|
278
290
|
key: 0,
|
|
279
291
|
class: "w-[15px] h-[15px] shrink-0"
|
|
280
|
-
})) :
|
|
281
|
-
|
|
282
|
-
], 8,
|
|
283
|
-
var
|
|
284
|
-
return e(),
|
|
292
|
+
})) : o("", !0),
|
|
293
|
+
t("span", jt, d(r.label), 1)
|
|
294
|
+
], 8, Mt))), 128)) : (e(!0), s(W, { key: 1 }, U(c.subItems, (r) => {
|
|
295
|
+
var x, H;
|
|
296
|
+
return e(), h(i, {
|
|
285
297
|
key: r.label,
|
|
286
|
-
to:
|
|
298
|
+
to: g(r),
|
|
287
299
|
class: "flex items-center gap-2 rounded-10 mx-1 px-3 py-2 text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66]",
|
|
288
|
-
"active-class": (
|
|
300
|
+
"active-class": (x = l.$route) != null && x.meta && ((H = l.$route.meta) != null && H.menuGroup) && l.$route.meta.menuGroup ? "" : "bg-primary-10 !text-primary-base"
|
|
289
301
|
}, {
|
|
290
|
-
default:
|
|
291
|
-
r.icon ? (e(),
|
|
302
|
+
default: I(() => [
|
|
303
|
+
r.icon ? (e(), h(_(r.icon), {
|
|
292
304
|
key: 0,
|
|
293
305
|
class: "w-[15px] h-[15px] shrink-0"
|
|
294
|
-
})) :
|
|
295
|
-
|
|
306
|
+
})) : o("", !0),
|
|
307
|
+
t("span", Tt, d(r.label), 1)
|
|
296
308
|
]),
|
|
297
309
|
_: 2
|
|
298
310
|
}, 1032, ["to", "active-class"]);
|
|
@@ -300,159 +312,159 @@ const d1 = {
|
|
|
300
312
|
])
|
|
301
313
|
]),
|
|
302
314
|
_: 1
|
|
303
|
-
})) : (e(),
|
|
304
|
-
|
|
315
|
+
})) : (e(), s(W, { key: 3 }, [
|
|
316
|
+
l.href ? pe((e(), s("a", {
|
|
305
317
|
key: 0,
|
|
306
|
-
href:
|
|
307
|
-
class:
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
318
|
+
href: l.href,
|
|
319
|
+
class: y(["flex items-center relative text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66] mb-0.5", [
|
|
320
|
+
l.island ? "rounded-10" : "rounded-xl",
|
|
321
|
+
l.slim ? "w-[44px] h-[44px] justify-center" : "h-[44px] w-full",
|
|
322
|
+
l.active ? "bg-primary-10 !text-primary-base" : ""
|
|
311
323
|
]]),
|
|
312
324
|
onClick: E
|
|
313
325
|
}, [
|
|
314
|
-
|
|
315
|
-
|
|
326
|
+
t("div", Ft, [
|
|
327
|
+
l.icon ? (e(), s("div", {
|
|
316
328
|
key: 0,
|
|
317
|
-
class:
|
|
329
|
+
class: y(["flex-shrink-0", l.slim ? "w-auto" : "w-[44px]"])
|
|
318
330
|
}, [
|
|
319
|
-
(e(),
|
|
320
|
-
class:
|
|
331
|
+
(e(), h(_(l.icon), {
|
|
332
|
+
class: y(["mx-auto", l.slim ? "w-5 h-5" : "w-[24px] h-[24px]"])
|
|
321
333
|
}, null, 8, ["class"]))
|
|
322
|
-
], 2)) :
|
|
323
|
-
|
|
324
|
-
|
|
334
|
+
], 2)) : o("", !0),
|
|
335
|
+
l.slim ? o("", !0) : (e(), s("div", Vt, [
|
|
336
|
+
t("span", Ht, d(l.label), 1)
|
|
325
337
|
])),
|
|
326
|
-
|
|
327
|
-
(e(),
|
|
328
|
-
])) :
|
|
338
|
+
C.value && !l.slim ? (e(), s("div", Wt, [
|
|
339
|
+
(e(), h(_(M.value ? O(Be) : O(be)), { class: "w-[16px] h-[16px]" }))
|
|
340
|
+
])) : o("", !0)
|
|
329
341
|
])
|
|
330
|
-
], 10,
|
|
331
|
-
[
|
|
332
|
-
]) :
|
|
333
|
-
!
|
|
342
|
+
], 10, zt)), [
|
|
343
|
+
[b, l.slim && !C.value ? l.label : "", "right"]
|
|
344
|
+
]) : o("", !0),
|
|
345
|
+
!l.href && m.value ? pe((e(), h(i, {
|
|
334
346
|
key: 1,
|
|
335
347
|
to: m.value,
|
|
336
|
-
exact:
|
|
337
|
-
class:
|
|
338
|
-
"rounded-10":
|
|
339
|
-
"rounded-xl": !
|
|
340
|
-
"w-[44px] h-[44px] justify-center":
|
|
341
|
-
"h-[44px] w-full": !
|
|
342
|
-
"bg-primary-10 !text-primary-base":
|
|
348
|
+
exact: l.exact,
|
|
349
|
+
class: y(["relative flex items-center cursor-pointer text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66] mb-0.5", {
|
|
350
|
+
"rounded-10": l.island,
|
|
351
|
+
"rounded-xl": !l.island,
|
|
352
|
+
"w-[44px] h-[44px] justify-center": l.slim,
|
|
353
|
+
"h-[44px] w-full": !l.slim,
|
|
354
|
+
"bg-primary-10 !text-primary-base": l.active || D(l.$route)
|
|
343
355
|
}]),
|
|
344
|
-
"active-class": (
|
|
345
|
-
onClick:
|
|
356
|
+
"active-class": (Q = l.$route) != null && Q.meta && ((a = l.$route.meta) != null && a.menuGroup) && l.$route.meta.menuGroup ? "" : "bg-primary-10 !text-primary-base",
|
|
357
|
+
onClick: he(E, ["prevent"])
|
|
346
358
|
}, {
|
|
347
|
-
default:
|
|
348
|
-
|
|
349
|
-
|
|
359
|
+
default: I(() => [
|
|
360
|
+
t("div", Pt, [
|
|
361
|
+
l.icon ? (e(), s("div", {
|
|
350
362
|
key: 0,
|
|
351
|
-
class:
|
|
363
|
+
class: y(["flex-shrink-0", l.slim ? "w-auto" : "w-[44px]"])
|
|
352
364
|
}, [
|
|
353
|
-
(e(),
|
|
354
|
-
class:
|
|
365
|
+
(e(), h(_(l.icon), {
|
|
366
|
+
class: y(["mx-auto", l.slim ? "w-5 h-5" : "w-[24px] h-[24px]"])
|
|
355
367
|
}, null, 8, ["class"]))
|
|
356
|
-
], 2)) :
|
|
357
|
-
|
|
358
|
-
|
|
368
|
+
], 2)) : o("", !0),
|
|
369
|
+
l.slim ? o("", !0) : (e(), s("div", At, [
|
|
370
|
+
t("span", Et, d(l.label), 1)
|
|
359
371
|
])),
|
|
360
|
-
|
|
361
|
-
(e(),
|
|
362
|
-
])) :
|
|
372
|
+
C.value && !l.slim ? (e(), s("div", Nt, [
|
|
373
|
+
(e(), h(_(M.value ? O(Be) : O(be)), { class: "w-[16px] h-[16px]" }))
|
|
374
|
+
])) : o("", !0)
|
|
363
375
|
])
|
|
364
376
|
]),
|
|
365
377
|
_: 1
|
|
366
378
|
}, 8, ["to", "exact", "active-class", "class"])), [
|
|
367
|
-
[
|
|
368
|
-
]) :
|
|
369
|
-
!
|
|
379
|
+
[b, l.slim && !C.value ? l.label : "", "right"]
|
|
380
|
+
]) : o("", !0),
|
|
381
|
+
!l.href && !m.value ? pe((e(), s("span", {
|
|
370
382
|
key: 2,
|
|
371
|
-
onClick:
|
|
372
|
-
class:
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
383
|
+
onClick: he(E, ["prevent"]),
|
|
384
|
+
class: y(["mb-0.5 relative flex items-center cursor-pointer text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66]", [
|
|
385
|
+
l.island ? "rounded-10" : "rounded-xl",
|
|
386
|
+
l.slim ? "w-[44px] h-[44px] justify-center" : "h-[44px] w-full",
|
|
387
|
+
l.active ? "bg-primary-10 !text-primary-base" : ""
|
|
376
388
|
]])
|
|
377
389
|
}, [
|
|
378
|
-
|
|
379
|
-
|
|
390
|
+
t("div", Gt, [
|
|
391
|
+
l.icon ? (e(), s("div", {
|
|
380
392
|
key: 0,
|
|
381
|
-
class:
|
|
393
|
+
class: y(["flex-shrink-0", l.slim ? "w-auto" : "w-[44px]"])
|
|
382
394
|
}, [
|
|
383
|
-
(e(),
|
|
384
|
-
class:
|
|
395
|
+
(e(), h(_(l.icon), {
|
|
396
|
+
class: y(["mx-auto", l.slim ? "w-5 h-5" : "w-[24px] h-[24px]"])
|
|
385
397
|
}, null, 8, ["class"]))
|
|
386
|
-
], 2)) :
|
|
387
|
-
|
|
388
|
-
|
|
398
|
+
], 2)) : o("", !0),
|
|
399
|
+
l.slim ? o("", !0) : (e(), s("div", It, [
|
|
400
|
+
t("span", Rt, d(l.label), 1)
|
|
389
401
|
])),
|
|
390
|
-
|
|
391
|
-
(e(),
|
|
392
|
-
])) :
|
|
402
|
+
C.value && !l.slim ? (e(), s("div", qt, [
|
|
403
|
+
(e(), h(_(M.value ? O(Be) : O(be)), { class: "w-[16px] h-[16px]" }))
|
|
404
|
+
])) : o("", !0)
|
|
393
405
|
])
|
|
394
406
|
], 2)), [
|
|
395
|
-
[
|
|
396
|
-
]) :
|
|
397
|
-
|
|
398
|
-
(e(!0),
|
|
399
|
-
var
|
|
400
|
-
return e(),
|
|
407
|
+
[b, l.slim && !C.value ? l.label : "", "right"]
|
|
408
|
+
]) : o("", !0),
|
|
409
|
+
M.value && C.value && !l.slim ? (e(), s("div", Ut, [
|
|
410
|
+
(e(!0), s(W, null, U(c.subItems, (r) => {
|
|
411
|
+
var x, H;
|
|
412
|
+
return e(), s("div", {
|
|
401
413
|
key: r.label
|
|
402
414
|
}, [
|
|
403
|
-
r.href ? (e(),
|
|
415
|
+
r.href ? (e(), s("a", {
|
|
404
416
|
key: 0,
|
|
405
417
|
href: r.href,
|
|
406
418
|
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]"
|
|
407
419
|
}, [
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
r.icon ? (e(),
|
|
411
|
-
(e(),
|
|
412
|
-
])) :
|
|
420
|
+
t("div", Dt, [
|
|
421
|
+
t("span", Jt, d(r.label), 1),
|
|
422
|
+
r.icon ? (e(), s("div", Kt, [
|
|
423
|
+
(e(), h(_(r.icon), { class: "w-[15px] h-[15px] mx-auto" }))
|
|
424
|
+
])) : o("", !0)
|
|
413
425
|
])
|
|
414
|
-
], 8,
|
|
426
|
+
], 8, Zt)) : g(r) ? (e(), h(i, {
|
|
415
427
|
key: 1,
|
|
416
|
-
to:
|
|
417
|
-
onClick:
|
|
418
|
-
class:
|
|
419
|
-
"bg-primary-10 !text-primary-base":
|
|
428
|
+
to: g(r),
|
|
429
|
+
onClick: j[0] || (j[0] = he((J) => E(J, !0), ["prevent"])),
|
|
430
|
+
class: y(["flex items-center rounded-xl p-2 text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66] h-[44px] w-full", {
|
|
431
|
+
"bg-primary-10 !text-primary-base": D(l.$route, r)
|
|
420
432
|
}]),
|
|
421
|
-
"active-class": (
|
|
433
|
+
"active-class": (x = l.$route) != null && x.meta && ((H = l.$route.meta) != null && H.menuGroup) && l.$route.meta.menuGroup ? "" : "bg-primary-10 !text-primary-base"
|
|
422
434
|
}, {
|
|
423
|
-
default:
|
|
424
|
-
|
|
425
|
-
r.icon ? (e(),
|
|
426
|
-
(e(),
|
|
427
|
-
])) :
|
|
435
|
+
default: I(() => [
|
|
436
|
+
t("span", Qt, d(r.label), 1),
|
|
437
|
+
r.icon ? (e(), s("div", Xt, [
|
|
438
|
+
(e(), h(_(r.icon), { class: "w-[20px] h-[20px] mx-auto" }))
|
|
439
|
+
])) : o("", !0)
|
|
428
440
|
]),
|
|
429
441
|
_: 2
|
|
430
|
-
}, 1032, ["to", "active-class", "class"])) :
|
|
442
|
+
}, 1032, ["to", "active-class", "class"])) : o("", !0)
|
|
431
443
|
]);
|
|
432
444
|
}), 128))
|
|
433
|
-
])) :
|
|
445
|
+
])) : o("", !0)
|
|
434
446
|
], 64))
|
|
435
447
|
], 64);
|
|
436
448
|
};
|
|
437
449
|
}
|
|
438
|
-
}),
|
|
450
|
+
}), es = {}, ts = {
|
|
439
451
|
xmlns: "http://www.w3.org/2000/svg",
|
|
440
452
|
width: "24",
|
|
441
453
|
height: "24",
|
|
442
454
|
viewBox: "0 0 24 24",
|
|
443
455
|
fill: "none"
|
|
444
456
|
};
|
|
445
|
-
function
|
|
446
|
-
return e(),
|
|
447
|
-
|
|
457
|
+
function ss(u, f) {
|
|
458
|
+
return e(), s("svg", ts, [...f[0] || (f[0] = [
|
|
459
|
+
t("path", {
|
|
448
460
|
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",
|
|
449
461
|
fill: "currentColor"
|
|
450
462
|
}, null, -1),
|
|
451
|
-
|
|
463
|
+
t("path", {
|
|
452
464
|
d: "M15.7294 11.3876C16.2011 11.2795 16.7453 10.9769 16.7816 10.0547C16.7816 9.36299 16.5276 8.90188 16.1285 8.57766C15.6569 8.14537 14.9675 8.03729 14.3797 8.03729H11.4626V13.9309C11.4626 14.6802 11.6441 15.2061 12.0141 15.5087C12.3842 15.8113 13.0155 15.9626 13.8935 15.9626H14.9675C15.6859 15.9626 16.2374 15.7681 16.6365 15.3718C17.0428 14.9756 17.2388 14.4136 17.2388 13.6787C17.2388 12.7925 16.9993 11.6758 15.7294 11.3876ZM13.0228 9.42783L14.2564 9.39181C14.8296 9.39181 15.1199 9.68 15.1199 10.2492C15.1199 10.8184 14.8296 11.1066 14.2564 11.1066L13.0228 11.1426V9.42783ZM14.8079 14.5865H14.0024C13.6541 14.5865 13.4001 14.5289 13.2405 14.4064C13.0881 14.2911 13.0155 14.075 13.0155 13.7724V12.5259H14.8079C15.1344 12.5259 15.3666 12.6196 15.49 12.8069C15.6133 12.987 15.6786 13.2536 15.6786 13.6067C15.6859 14.2551 15.3956 14.5865 14.8079 14.5865Z",
|
|
453
465
|
fill: "currentColor"
|
|
454
466
|
}, null, -1),
|
|
455
|
-
|
|
467
|
+
t("path", {
|
|
456
468
|
"fill-rule": "evenodd",
|
|
457
469
|
"clip-rule": "evenodd",
|
|
458
470
|
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",
|
|
@@ -460,9 +472,9 @@ function es(x, k) {
|
|
|
460
472
|
}, null, -1)
|
|
461
473
|
])]);
|
|
462
474
|
}
|
|
463
|
-
const
|
|
464
|
-
function
|
|
465
|
-
return e(),
|
|
475
|
+
const ke = /* @__PURE__ */ $e(es, [["render", ss]]);
|
|
476
|
+
function ls(u, f) {
|
|
477
|
+
return e(), s("svg", {
|
|
466
478
|
xmlns: "http://www.w3.org/2000/svg",
|
|
467
479
|
fill: "none",
|
|
468
480
|
viewBox: "0 0 24 24",
|
|
@@ -470,100 +482,66 @@ function ss(x, k) {
|
|
|
470
482
|
stroke: "currentColor",
|
|
471
483
|
"aria-hidden": "true"
|
|
472
484
|
}, [
|
|
473
|
-
|
|
485
|
+
t("path", {
|
|
474
486
|
"stroke-linecap": "round",
|
|
475
487
|
"stroke-linejoin": "round",
|
|
476
488
|
d: "M7.83 1.08v21.6M1.08 3.78a2.697 2.697 0 012.7-2.7h16.2a2.697 2.697 0 012.7 2.7v16.2a2.697 2.697 0 01-2.7 2.7H3.78a2.697 2.697 0 01-2.7-2.7V3.78z"
|
|
477
489
|
}),
|
|
478
|
-
|
|
490
|
+
t("path", {
|
|
479
491
|
"stroke-linecap": "round",
|
|
480
492
|
"stroke-linejoin": "round",
|
|
481
493
|
d: "M15.48 9.48l-2.4 2.4 2.4 2.4"
|
|
482
494
|
})
|
|
483
495
|
]);
|
|
484
496
|
}
|
|
485
|
-
const
|
|
486
|
-
if (Array.isArray(x))
|
|
487
|
-
return x.map(S);
|
|
488
|
-
const k = S(x);
|
|
489
|
-
return Array.isArray(k) ? k : [k];
|
|
490
|
-
}, ts = (x, k) => {
|
|
491
|
-
let d;
|
|
492
|
-
const p = (F) => {
|
|
493
|
-
F.forEach((m) => {
|
|
494
|
-
const w = S(m);
|
|
495
|
-
if (w) {
|
|
496
|
-
if (!(w instanceof Element))
|
|
497
|
-
throw console.error("Vuestic: Trying to observe non-HTMLElement", {
|
|
498
|
-
target: w,
|
|
499
|
-
array: x
|
|
500
|
-
}), new Error("Vuestic: Unable to observe non-HTMLElement");
|
|
501
|
-
w && (d == null || d.observe(w));
|
|
502
|
-
}
|
|
503
|
-
});
|
|
504
|
-
};
|
|
505
|
-
return pe(x, (F) => {
|
|
506
|
-
d == null || d.disconnect(), p(e1(F));
|
|
507
|
-
}), Ce(() => {
|
|
508
|
-
d = new ResizeObserver(k), p(e1(x));
|
|
509
|
-
}), v1(() => d == null ? void 0 : d.disconnect()), d;
|
|
510
|
-
}, ls = (x) => {
|
|
511
|
-
const k = z(null);
|
|
512
|
-
return ts([x], () => {
|
|
513
|
-
var d;
|
|
514
|
-
k.value = ((d = x.value) == null ? void 0 : d.clientWidth) ?? null;
|
|
515
|
-
}), t1(() => {
|
|
516
|
-
var d;
|
|
517
|
-
k.value = ((d = x.value) == null ? void 0 : d.clientWidth) ?? null;
|
|
518
|
-
}), k;
|
|
519
|
-
}, os = {
|
|
497
|
+
const os = {
|
|
520
498
|
key: 0,
|
|
521
499
|
class: "w-8 h-8 sm:w-10 sm:h-10 flex items-center flex-shrink-0"
|
|
522
|
-
},
|
|
500
|
+
}, as = ["src"], ns = {
|
|
523
501
|
key: 1,
|
|
524
502
|
class: "flex items-center gap-2 min-w-0 pl-1"
|
|
525
503
|
}, rs = {
|
|
526
504
|
key: 0,
|
|
527
505
|
class: "w-8 h-8 sm:w-10 sm:h-10 flex items-center flex-shrink-0"
|
|
528
|
-
}, is = ["src"],
|
|
506
|
+
}, is = ["src"], ds = { class: "min-w-0" }, us = { class: "text-base font-bold leading-5 text-black truncate" }, ps = {
|
|
529
507
|
key: 0,
|
|
530
508
|
class: "flex items-center gap-1 text-xs text-secondary-content"
|
|
531
509
|
}, cs = { class: "truncate" }, hs = {
|
|
532
510
|
key: 1,
|
|
533
511
|
class: "mt-auto pb-2 flex justify-center shrink-0"
|
|
534
|
-
}, ms = ["href"],
|
|
512
|
+
}, ms = ["href"], fs = { class: "rounded-lg bg-[#FFF8E4] py-2 flex items-center space-x-1 px-2" }, vs = { class: "" }, ys = {
|
|
535
513
|
class: "",
|
|
536
514
|
style: { "font-size": "10px" }
|
|
537
|
-
},
|
|
515
|
+
}, ws = {
|
|
538
516
|
key: 1,
|
|
539
517
|
class: "flex justify-between border rounded-lg bg-[#F5F5F5] mb-1 w-full min-w-[19+0px] space-x-1 px-2"
|
|
540
|
-
}, bs = { class: "flex items-center text-[#525B66] space-x-3" },
|
|
518
|
+
}, bs = { class: "flex items-center text-[#525B66] space-x-3" }, gs = { style: { "font-size": "10px" } }, xs = { class: "relative -right-2" }, ks = ["href"], Cs = { class: "flex flex-nowrap items-center w-max h-[24px]" }, $s = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full text-[#525B66]" }, _s = { class: "py-[8px] pl-0 pr-[8px]" }, Ls = ["href"], Ss = { class: "flex flex-nowrap items-center w-max h-[24px]" }, Bs = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, Os = { class: "py-[8px] pl-0 pr-[8px]" }, Ms = {
|
|
541
519
|
key: 4,
|
|
542
520
|
class: "custom-select ml-1 w-full relative pt-2 pb-2"
|
|
543
|
-
},
|
|
521
|
+
}, js = { class: "pl-1" }, Ts = {
|
|
544
522
|
key: 0,
|
|
545
523
|
class: "dropdown w-[200px] z-50 text-[#525B66]"
|
|
546
|
-
},
|
|
524
|
+
}, zs = ["onClick"], Fs = {
|
|
547
525
|
key: 1,
|
|
548
526
|
class: "mt-0.5 h-0 border-t border-secondary-stroke mb-1"
|
|
549
|
-
},
|
|
527
|
+
}, Vs = {
|
|
550
528
|
key: 0,
|
|
551
529
|
class: "tooltip-text"
|
|
552
|
-
},
|
|
530
|
+
}, Hs = { key: 0 }, Ws = {
|
|
553
531
|
key: 1,
|
|
554
532
|
class: "absolute top-0 right-1.5 w-2 h-2 bg-blue-600 text-white rounded-full animate-ping z-0"
|
|
555
|
-
},
|
|
533
|
+
}, Ps = {
|
|
556
534
|
key: 2,
|
|
557
535
|
class: "absolute top-0 right-1.5 w-2 h-2 bg-blue-500 text-white rounded-full z-10"
|
|
558
|
-
}, As = ["href"],
|
|
536
|
+
}, As = ["href"], Es = {
|
|
559
537
|
key: 0,
|
|
560
538
|
class: "tooltip-text"
|
|
561
|
-
},
|
|
539
|
+
}, Ns = { key: 0 }, Gs = {
|
|
562
540
|
key: 2,
|
|
563
541
|
class: "text-[8px] text-[#979CA9] font-light leading-[12px] flex items-center gap-1 mt-2 px-2"
|
|
564
|
-
},
|
|
542
|
+
}, Is = { key: 0 }, Rs = /* @__PURE__ */ K({
|
|
565
543
|
__name: "OneSidebar",
|
|
566
|
-
props:
|
|
544
|
+
props: ut,
|
|
567
545
|
emits: [
|
|
568
546
|
"show-news",
|
|
569
547
|
"show-tariff",
|
|
@@ -573,18 +551,18 @@ const e1 = (x) => {
|
|
|
573
551
|
"toggle-menu",
|
|
574
552
|
"update:modelValue"
|
|
575
553
|
],
|
|
576
|
-
setup(
|
|
577
|
-
var
|
|
578
|
-
const
|
|
554
|
+
setup(u, { emit: f }) {
|
|
555
|
+
var X, Y, ee;
|
|
556
|
+
const c = f, p = u, g = Le(), m = S(() => p.t ?? g), C = S(() => {
|
|
579
557
|
var n;
|
|
580
558
|
return ((n = p.news) == null ? void 0 : n.unseenCount) || 0;
|
|
581
|
-
}),
|
|
582
|
-
|
|
583
|
-
},
|
|
584
|
-
|
|
585
|
-
p.modelValue ?
|
|
586
|
-
}), p.modelValue && (
|
|
587
|
-
const
|
|
559
|
+
}), T = () => {
|
|
560
|
+
c("show-news");
|
|
561
|
+
}, L = V(!1), A = V(p.hoverable);
|
|
562
|
+
Me(p, () => {
|
|
563
|
+
p.modelValue ? A.value = !0 : A.value = !1;
|
|
564
|
+
}), p.modelValue && (A.value = !0);
|
|
565
|
+
const z = ft(), M = S(() => {
|
|
588
566
|
const n = [];
|
|
589
567
|
if (p.slim || n.push("fixed"), !E.value)
|
|
590
568
|
if (!p.isMobile)
|
|
@@ -592,565 +570,557 @@ const e1 = (x) => {
|
|
|
592
570
|
else
|
|
593
571
|
return n.push("w-full");
|
|
594
572
|
return n.join(" ");
|
|
595
|
-
}),
|
|
596
|
-
|
|
597
|
-
}, E =
|
|
598
|
-
|
|
599
|
-
const n =
|
|
573
|
+
}), D = S(() => ""), Z = (n) => {
|
|
574
|
+
L.value = A.value && n;
|
|
575
|
+
}, E = S(() => A.value && !L.value), l = S(() => p.island ? p.modelValue !== !1 : !!E.value), j = V(), i = bt(j), b = S(() => p.modelValue === !0 || i.value === null ? !0 : i.value > 0), Q = V(), a = () => E.value ? p.minimizedWidth : p.width;
|
|
576
|
+
vt(() => {
|
|
577
|
+
const n = a();
|
|
600
578
|
setTimeout(() => {
|
|
601
|
-
|
|
579
|
+
Q.value = n;
|
|
602
580
|
});
|
|
603
581
|
});
|
|
604
|
-
const r =
|
|
605
|
-
(
|
|
606
|
-
var
|
|
607
|
-
return n.id == ((
|
|
582
|
+
const r = V(!1), x = V(
|
|
583
|
+
(X = p.app) != null && X.availableLang && ((Y = p.app) == null ? void 0 : Y.availableLang.length) > 0 ? (ee = p.app) == null ? void 0 : ee.availableLang.find((n) => {
|
|
584
|
+
var k;
|
|
585
|
+
return n.id == ((k = p.app) == null ? void 0 : k.lang);
|
|
608
586
|
}) : null
|
|
609
|
-
),
|
|
587
|
+
), H = () => {
|
|
610
588
|
r.value = !r.value;
|
|
611
|
-
},
|
|
612
|
-
|
|
613
|
-
},
|
|
614
|
-
var n,
|
|
615
|
-
(
|
|
589
|
+
}, J = (n) => {
|
|
590
|
+
x.value = n, r.value = !1, c("select-language", n);
|
|
591
|
+
}, ie = () => {
|
|
592
|
+
var n, k;
|
|
593
|
+
(k = (n = p.app) == null ? void 0 : n.selectedPlan) != null && k.url && (window.location.href = p.app.selectedPlan.url);
|
|
616
594
|
};
|
|
617
|
-
return (n,
|
|
618
|
-
var
|
|
619
|
-
return e(),
|
|
595
|
+
return (n, k) => {
|
|
596
|
+
var te, se, le, v, R, oe, me, fe, ve, ye, we, w, N, q, ae, ne, F, de, G, re, Te, ze, Fe, Ve, He, We, Pe, Ae, Ee, Ne, Ge, Ie, Re, qe, Ue, Ze, De, Je, Ke, Qe, Xe;
|
|
597
|
+
return e(), s("aside", {
|
|
620
598
|
ref_key: "rootElement",
|
|
621
|
-
ref:
|
|
622
|
-
class:
|
|
599
|
+
ref: z,
|
|
600
|
+
class: y(["oneb-sidebar cont flex flex-col", [
|
|
623
601
|
n.island ? "island-mode bg-white rounded-10 py-2 shrink-0 transition-all" : "pt-[56px] pb-1 sidebar z-40",
|
|
624
|
-
n.island ?
|
|
625
|
-
n.island ? n.isMobile ? "fixed top-3 left-3 bottom-3 z-50 shadow-xl" : "" :
|
|
602
|
+
n.island ? l.value ? "self-stretch w-[60px]" : "self-stretch w-[260px]" : M.value,
|
|
603
|
+
n.island ? n.isMobile ? "fixed top-3 left-3 bottom-3 z-50 shadow-xl" : "" : l.value ? "sm:max-w-[260px] w-full sm:w-max" : "sm:w-[260px] w-full"
|
|
626
604
|
]]),
|
|
627
|
-
style:
|
|
628
|
-
onMouseenter:
|
|
629
|
-
onMouseleave:
|
|
605
|
+
style: tt(D.value),
|
|
606
|
+
onMouseenter: k[3] || (k[3] = ($) => Z(!0)),
|
|
607
|
+
onMouseleave: k[4] || (k[4] = ($) => Z(!1))
|
|
630
608
|
}, [
|
|
631
|
-
n.island ? (e(),
|
|
609
|
+
n.island ? (e(), s("div", {
|
|
632
610
|
key: 0,
|
|
633
|
-
class:
|
|
611
|
+
class: y(["px-2 flex shrink-0", l.value ? "flex-col items-center gap-1" : "items-center justify-between"])
|
|
634
612
|
}, [
|
|
635
|
-
|
|
636
|
-
|
|
613
|
+
l.value && n.logoSrc ? (e(), s("div", os, [
|
|
614
|
+
t("img", {
|
|
637
615
|
src: n.logoSrc,
|
|
638
616
|
class: "w-8 h-8 mx-auto",
|
|
639
617
|
alt: "logo"
|
|
640
|
-
}, null, 8,
|
|
641
|
-
])) :
|
|
642
|
-
!
|
|
643
|
-
n.logoSrc ? (e(),
|
|
644
|
-
|
|
618
|
+
}, null, 8, as)
|
|
619
|
+
])) : o("", !0),
|
|
620
|
+
!l.value && ((te = n.app) != null && te.name) ? (e(), s("div", ns, [
|
|
621
|
+
n.logoSrc ? (e(), s("div", rs, [
|
|
622
|
+
t("img", {
|
|
645
623
|
src: n.logoSrc,
|
|
646
624
|
class: "w-8 h-8 mx-auto",
|
|
647
625
|
alt: "logo"
|
|
648
626
|
}, null, 8, is)
|
|
649
|
-
])) :
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
(
|
|
653
|
-
|
|
654
|
-
])) :
|
|
627
|
+
])) : o("", !0),
|
|
628
|
+
t("div", ds, [
|
|
629
|
+
t("p", us, d(n.app.name), 1),
|
|
630
|
+
(le = (se = n.app) == null ? void 0 : se.selectedPlan) != null && le.name ? (e(), s("div", ps, [
|
|
631
|
+
t("span", cs, d(m.value("ui.layout.plan")) + " " + d(n.app.selectedPlan.name), 1)
|
|
632
|
+
])) : o("", !0)
|
|
655
633
|
])
|
|
656
|
-
])) :
|
|
657
|
-
|
|
634
|
+
])) : o("", !0),
|
|
635
|
+
t("button", {
|
|
658
636
|
type: "button",
|
|
659
637
|
class: "w-11 h-11 rounded-10 flex items-center justify-center text-secondary-base hover:bg-secondary-body-active transition-colors shrink-0",
|
|
660
|
-
onClick:
|
|
638
|
+
onClick: k[0] || (k[0] = ($) => c("toggle-menu"))
|
|
661
639
|
}, [
|
|
662
|
-
(e(),
|
|
640
|
+
(e(), h(_(l.value ? O(je) : O(ls)), { class: "w-5 h-5" }))
|
|
663
641
|
])
|
|
664
|
-
], 2)) :
|
|
665
|
-
|
|
666
|
-
class:
|
|
667
|
-
n.island ?
|
|
642
|
+
], 2)) : o("", !0),
|
|
643
|
+
pe(t("div", {
|
|
644
|
+
class: y(["overflow-y-auto overflow-hidden lg:bg-transparent transition-all flex-grow", [
|
|
645
|
+
n.island ? l.value ? "flex flex-col items-center gap-1 px-0 mx-0 mt-2" : "px-2 mt-2" : "top-[56px] left-0 z-50 px-1 ml-1 mr-1 mt-2"
|
|
668
646
|
]]),
|
|
669
647
|
ref_key: "menu",
|
|
670
|
-
ref:
|
|
648
|
+
ref: j
|
|
671
649
|
}, [
|
|
672
|
-
(e(!0),
|
|
673
|
-
key:
|
|
674
|
-
labelTop:
|
|
650
|
+
(e(!0), s(W, null, U(n.items, ($) => (e(), h(Yt, {
|
|
651
|
+
key: $.label,
|
|
652
|
+
labelTop: $.labelTop,
|
|
675
653
|
isMobile: n.isMobile,
|
|
676
|
-
subItems:
|
|
677
|
-
open:
|
|
678
|
-
icon:
|
|
679
|
-
label:
|
|
680
|
-
route:
|
|
681
|
-
menuGroup:
|
|
682
|
-
href:
|
|
683
|
-
slim:
|
|
654
|
+
subItems: $.subItems,
|
|
655
|
+
open: $.open,
|
|
656
|
+
icon: $.icon,
|
|
657
|
+
label: $.label,
|
|
658
|
+
route: $.route,
|
|
659
|
+
menuGroup: $ == null ? void 0 : $.menuGroup,
|
|
660
|
+
href: $.href,
|
|
661
|
+
slim: l.value,
|
|
684
662
|
island: n.island,
|
|
685
|
-
active:
|
|
686
|
-
"route-name":
|
|
687
|
-
exact:
|
|
688
|
-
onUpdateCollapsed:
|
|
663
|
+
active: $.active === !0,
|
|
664
|
+
"route-name": $.routeName,
|
|
665
|
+
exact: $.exact || !1,
|
|
666
|
+
onUpdateCollapsed: k[1] || (k[1] = (Se) => c("update-collapsed"))
|
|
689
667
|
}, null, 8, ["labelTop", "isMobile", "subItems", "open", "icon", "label", "route", "menuGroup", "href", "slim", "island", "active", "route-name", "exact"]))), 128))
|
|
690
668
|
], 2), [
|
|
691
|
-
[ge,
|
|
669
|
+
[ge, b.value]
|
|
692
670
|
]),
|
|
693
|
-
n.island &&
|
|
694
|
-
|
|
671
|
+
n.island && l.value ? (e(), s("div", hs, [
|
|
672
|
+
t("button", {
|
|
695
673
|
type: "button",
|
|
696
674
|
class: "w-9 h-9 rounded-10 flex items-center justify-center hover:bg-secondary-body-active transition-colors",
|
|
697
|
-
onClick:
|
|
675
|
+
onClick: k[2] || (k[2] = ($) => c("show-help"))
|
|
698
676
|
}, [
|
|
699
|
-
B(
|
|
677
|
+
B(ke, { class: "w-6 h-6" })
|
|
700
678
|
])
|
|
701
|
-
])) :
|
|
702
|
-
|
|
703
|
-
class:
|
|
679
|
+
])) : o("", !0),
|
|
680
|
+
pe(t("div", {
|
|
681
|
+
class: y(["mt-auto shrink rounded-2xl mx-2", [l.value ? "" : "px-2 bg-white pt-2.5 py-2"]])
|
|
704
682
|
}, [
|
|
705
|
-
n.island ?
|
|
683
|
+
n.island ? o("", !0) : (e(), s("div", {
|
|
706
684
|
key: 0,
|
|
707
|
-
class:
|
|
685
|
+
class: y([l.value ? "hidden" : "w-full hidden md:flex-col md:flex"])
|
|
708
686
|
}, [
|
|
709
|
-
(
|
|
687
|
+
(v = n.app) != null && v.offerPlan ? (e(), s("a", {
|
|
710
688
|
key: 0,
|
|
711
|
-
href: (
|
|
689
|
+
href: (R = n.app) == null ? void 0 : R.offerPlan.url,
|
|
712
690
|
class: "w-full min-w-[190px] border-gradient rounded-lg p-[1px] bg-[#FFF8E4] mb-1 block",
|
|
713
691
|
target: "_blank",
|
|
714
692
|
rel: "noopener noreferrer"
|
|
715
693
|
}, [
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
(e(),
|
|
694
|
+
t("div", fs, [
|
|
695
|
+
t("div", vs, [
|
|
696
|
+
(e(), h(_((oe = n.app) == null ? void 0 : oe.offerPlan.icon), { class: "w-[16px] h-[16px]" }))
|
|
719
697
|
]),
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
698
|
+
t("p", ys, [
|
|
699
|
+
t("strong", null, d((me = n.app) == null ? void 0 : me.offerPlan.title), 1),
|
|
700
|
+
ce(" «" + d((fe = n.app) == null ? void 0 : fe.offerPlan.name) + "» ", 1),
|
|
701
|
+
k[5] || (k[5] = t("br", null, null, -1)),
|
|
702
|
+
ce(d((ve = n.app) == null ? void 0 : ve.offerPlan.title1), 1)
|
|
725
703
|
])
|
|
726
704
|
])
|
|
727
|
-
], 8, ms)) :
|
|
728
|
-
(
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
(e(),
|
|
705
|
+
], 8, ms)) : o("", !0),
|
|
706
|
+
(ye = n.app) != null && ye.selectedPlan && ((we = n.app) != null && we.selectedPlan.name) ? (e(), s("div", ws, [
|
|
707
|
+
t("div", bs, [
|
|
708
|
+
t("div", null, [
|
|
709
|
+
(e(), h(_((w = n.app) == null ? void 0 : w.selectedPlan.icon), { class: "w-[16px] h-[16px]" }))
|
|
732
710
|
]),
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
711
|
+
t("div", gs, [
|
|
712
|
+
t("p", null, d(((N = n.app) == null ? void 0 : N.selectedPlan.name) || ""), 1),
|
|
713
|
+
t("p", null, d(((q = n.app) == null ? void 0 : q.selectedPlan.title) || ""), 1)
|
|
736
714
|
])
|
|
737
715
|
]),
|
|
738
|
-
|
|
739
|
-
B(
|
|
716
|
+
t("div", xs, [
|
|
717
|
+
B(_e, {
|
|
740
718
|
class: "text-[#525B66] hover:text-[#4089E0] !rounded-lg",
|
|
741
719
|
variant: "touch",
|
|
742
|
-
icon:
|
|
743
|
-
onClick:
|
|
720
|
+
icon: O(nt),
|
|
721
|
+
onClick: ie
|
|
744
722
|
}, null, 8, ["icon"])
|
|
745
723
|
])
|
|
746
|
-
])) :
|
|
747
|
-
(
|
|
724
|
+
])) : o("", !0),
|
|
725
|
+
(ae = n.app) != null && ae.terms ? (e(), s("a", {
|
|
748
726
|
key: 2,
|
|
749
|
-
href: (
|
|
727
|
+
href: (ne = n.app) == null ? void 0 : ne.terms.url,
|
|
750
728
|
target: "_blank",
|
|
751
729
|
class: "ml-1 flex items-center rounded-lg text-xs hover:underline font-extralight"
|
|
752
730
|
}, [
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
731
|
+
t("div", Cs, [
|
|
732
|
+
t("div", $s, [
|
|
733
|
+
t("span", _s, d(((F = n.app) == null ? void 0 : F.terms.label) || m.value("ui.layout.terms")), 1)
|
|
756
734
|
])
|
|
757
735
|
])
|
|
758
|
-
], 8,
|
|
759
|
-
(
|
|
736
|
+
], 8, ks)) : o("", !0),
|
|
737
|
+
(de = n.app) != null && de.offer ? (e(), s("a", {
|
|
760
738
|
key: 3,
|
|
761
|
-
href: (
|
|
739
|
+
href: (G = n.app) == null ? void 0 : G.offer.url,
|
|
762
740
|
target: "_blank",
|
|
763
741
|
class: "ml-1 flex items-center rounded-lg text-xs hover:underline text-[#525B66] font-extralight"
|
|
764
742
|
}, [
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
743
|
+
t("div", Ss, [
|
|
744
|
+
t("div", Bs, [
|
|
745
|
+
t("span", Os, d(((re = n.app) == null ? void 0 : re.offer.label) || m.value("ui.layout.offer")), 1)
|
|
768
746
|
])
|
|
769
747
|
])
|
|
770
|
-
], 8, Ls)) :
|
|
771
|
-
(ze = (Te = n.app) == null ? void 0 : Te.availableLang) != null && ze.length ? (e(),
|
|
772
|
-
|
|
748
|
+
], 8, Ls)) : o("", !0),
|
|
749
|
+
(ze = (Te = n.app) == null ? void 0 : Te.availableLang) != null && ze.length ? (e(), s("div", Ms, [
|
|
750
|
+
t("div", {
|
|
773
751
|
class: "select-box flex gap-x-2 text-xs text-[#525B66] cursor-pointer",
|
|
774
|
-
onClick:
|
|
752
|
+
onClick: H
|
|
775
753
|
}, [
|
|
776
|
-
B(
|
|
777
|
-
|
|
778
|
-
|
|
754
|
+
B(O(yt), { class: "w-4" }),
|
|
755
|
+
ce(" " + d((Fe = x.value) == null ? void 0 : Fe.name) + " ", 1),
|
|
756
|
+
t("span", js, d(r.value ? "▲" : "▼"), 1)
|
|
779
757
|
]),
|
|
780
|
-
r.value ? (e(),
|
|
781
|
-
(e(!0),
|
|
782
|
-
var
|
|
783
|
-
return e(),
|
|
784
|
-
key:
|
|
785
|
-
class:
|
|
786
|
-
"hover:bg-slate-200 rounded-lg cursor-pointer":
|
|
787
|
-
"text-gray-300":
|
|
758
|
+
r.value ? (e(), s("div", Ts, [
|
|
759
|
+
(e(!0), s(W, null, U((Ve = n.app) == null ? void 0 : Ve.availableLang, ($) => {
|
|
760
|
+
var Se, Ye;
|
|
761
|
+
return e(), s("div", {
|
|
762
|
+
key: $.id,
|
|
763
|
+
class: y(["px-2", {
|
|
764
|
+
"hover:bg-slate-200 rounded-lg cursor-pointer": $.id !== ((Se = x.value) == null ? void 0 : Se.id),
|
|
765
|
+
"text-gray-300": $.id === ((Ye = x.value) == null ? void 0 : Ye.id)
|
|
788
766
|
}]),
|
|
789
|
-
onClick: (
|
|
790
|
-
var
|
|
791
|
-
return
|
|
767
|
+
onClick: (Kl) => {
|
|
768
|
+
var et;
|
|
769
|
+
return $.id !== ((et = x.value) == null ? void 0 : et.id) && J($);
|
|
792
770
|
}
|
|
793
|
-
},
|
|
771
|
+
}, d($.name), 11, zs);
|
|
794
772
|
}), 128))
|
|
795
|
-
])) :
|
|
796
|
-
])) :
|
|
773
|
+
])) : o("", !0)
|
|
774
|
+
])) : o("", !0)
|
|
797
775
|
], 2)),
|
|
798
|
-
!
|
|
799
|
-
|
|
800
|
-
class:
|
|
776
|
+
!l.value && ((He = n.app) != null && He.offer || (Pe = (We = n.app) == null ? void 0 : We.availableLang) != null && Pe.length || (Ae = n.app) != null && Ae.selectedPlan && ((Ee = n.app) != null && Ee.selectedPlan.name) || (Ne = n.app) != null && Ne.offerPlan) ? (e(), s("div", Fs)) : o("", !0),
|
|
777
|
+
t("div", {
|
|
778
|
+
class: y([l.value ? "grid" : n.island ? "flex items-center gap-2" : "flex space-x-2"])
|
|
801
779
|
}, [
|
|
802
|
-
n.news ? (e(),
|
|
780
|
+
n.news ? (e(), s("a", {
|
|
803
781
|
key: 0,
|
|
804
782
|
href: "#",
|
|
805
|
-
class:
|
|
806
|
-
onClick:
|
|
783
|
+
class: y(["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", [l.value ? "w-[44px] h-[44px] text-center" : "h-[36x] pr-2"]]),
|
|
784
|
+
onClick: T
|
|
807
785
|
}, [
|
|
808
|
-
n.news.menuLabel ? (e(),
|
|
809
|
-
|
|
810
|
-
class:
|
|
786
|
+
n.news.menuLabel ? (e(), s("div", Vs, d(n.news.menuLabel || m.value("ui.layout.news")), 1)) : o("", !0),
|
|
787
|
+
t("div", {
|
|
788
|
+
class: y(["w-full", [l.value ? "" : "flex flex-nowrap items-center h-[36px]"]])
|
|
811
789
|
}, [
|
|
812
|
-
|
|
813
|
-
class:
|
|
790
|
+
t("div", {
|
|
791
|
+
class: y(["relative items-center", [l.value ? "" : "flex flex-row space-x-1"]])
|
|
814
792
|
}, [
|
|
815
|
-
|
|
816
|
-
(e(),
|
|
793
|
+
t("div", null, [
|
|
794
|
+
(e(), h(_(ke), { class: "w-[24px] h-[24px] mx-auto" }))
|
|
817
795
|
]),
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
796
|
+
l.value ? o("", !0) : (e(), s("div", Hs, d(n.news.menuLabel || m.value("ui.layout.news")), 1)),
|
|
797
|
+
C.value > 0 ? (e(), s("span", Ws)) : o("", !0),
|
|
798
|
+
C.value > 0 ? (e(), s("span", Ps)) : o("", !0)
|
|
821
799
|
], 2)
|
|
822
800
|
], 2)
|
|
823
|
-
], 2)) :
|
|
824
|
-
(Ge = n.app) != null && Ge.support ? (e(),
|
|
801
|
+
], 2)) : o("", !0),
|
|
802
|
+
(Ge = n.app) != null && Ge.support ? (e(), s("a", {
|
|
825
803
|
key: 1,
|
|
826
|
-
href: (
|
|
827
|
-
class:
|
|
804
|
+
href: (Re = (Ie = n.app) == null ? void 0 : Ie.support) == null ? void 0 : Re.url,
|
|
805
|
+
class: y(["text-[#525B66] flex items-center rounded-lg text-sm tooltip hover:bg-primary-10-hover hover:text-primary-base transition-all", [l.value ? "w-[44px] h-[44px] text-center" : "h-[36x]"]])
|
|
828
806
|
}, [
|
|
829
|
-
(
|
|
830
|
-
|
|
831
|
-
class:
|
|
807
|
+
(Ue = (qe = n.app) == null ? void 0 : qe.support) != null && Ue.label ? (e(), s("div", Es, d(((De = (Ze = n.app) == null ? void 0 : Ze.support) == null ? void 0 : De.label) || m.value("ui.layout.support")), 1)) : o("", !0),
|
|
808
|
+
t("div", {
|
|
809
|
+
class: y(["w-full", [l.value ? "" : "flex flex-nowrap items-center h-[36px]"]])
|
|
832
810
|
}, [
|
|
833
|
-
|
|
834
|
-
class:
|
|
811
|
+
t("div", {
|
|
812
|
+
class: y(["flex-shrink-0 relative", [l.value ? "mx-auto w-[36px] " : "flex space-x-2 px-1"]])
|
|
835
813
|
}, [
|
|
836
|
-
|
|
837
|
-
(e(),
|
|
814
|
+
t("div", null, [
|
|
815
|
+
(e(), h(_(O(wt)), { class: "w-[20px] h-[20px] mx-auto" }))
|
|
838
816
|
]),
|
|
839
|
-
|
|
817
|
+
l.value ? o("", !0) : (e(), s("div", Ns, d(((Ke = (Je = n.app) == null ? void 0 : Je.support) == null ? void 0 : Ke.label) || m.value("ui.layout.support")), 1))
|
|
840
818
|
], 2)
|
|
841
819
|
], 2)
|
|
842
|
-
], 10, As)) :
|
|
820
|
+
], 10, As)) : o("", !0)
|
|
843
821
|
], 2),
|
|
844
|
-
n.island && !
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
822
|
+
n.island && !l.value ? (e(), s("div", Gs, [
|
|
823
|
+
t("span", null, [
|
|
824
|
+
ce(d(m.value("ui.layout.powered_by")) + " ", 1),
|
|
825
|
+
k[6] || (k[6] = t("span", { class: "capitalize" }, "OneB", -1))
|
|
848
826
|
]),
|
|
849
|
-
(
|
|
850
|
-
])) :
|
|
851
|
-
n.island ?
|
|
827
|
+
(Qe = n.app) != null && Qe.version ? (e(), s("span", Is, "V." + d(n.app.version), 1)) : o("", !0)
|
|
828
|
+
])) : o("", !0),
|
|
829
|
+
n.island ? o("", !0) : (e(), s("p", {
|
|
852
830
|
key: 3,
|
|
853
|
-
class:
|
|
831
|
+
class: y([[l.value ? "hidden" : "w-full"], "text-[7px] pl-2 text-[#979CA9] flex justify-between font-extralight pt-1"])
|
|
854
832
|
}, [
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
833
|
+
t("span", null, [
|
|
834
|
+
ce(d(m.value("ui.layout.powered_by")) + " ", 1),
|
|
835
|
+
k[7] || (k[7] = t("span", { class: "text-blue-700" }, "OneB", -1))
|
|
858
836
|
]),
|
|
859
|
-
|
|
837
|
+
t("span", null, d((Xe = n.app) == null ? void 0 : Xe.version), 1)
|
|
860
838
|
], 2))
|
|
861
839
|
], 2), [
|
|
862
|
-
[ge,
|
|
840
|
+
[ge, b.value && (!n.island || !l.value)]
|
|
863
841
|
])
|
|
864
842
|
], 38);
|
|
865
843
|
};
|
|
866
844
|
}
|
|
867
845
|
});
|
|
868
|
-
const
|
|
846
|
+
const ct = /* @__PURE__ */ $e(Rs, [["__scopeId", "data-v-28310709"]]), qs = { class: "h-screen relative" }, Us = {
|
|
869
847
|
class: "header h-[56px] flex items-center flex-nowrap fixed top-0 left-0 w-full z-50",
|
|
870
848
|
style: { background: "rgba(245, 247, 251, 0.8)", "backdrop-filter": "blur(5px)" }
|
|
871
|
-
}, Zs = { class: "sm:p-2 pl-2 flex-shrink-0" }, Ds = { class: "w-8 h-8 sm:w-10 sm:h-10 flex items-center flex-shrink-0" }, Js = ["src"], Ks = { class: "whitespace-nowrap font-semibold sm:text-xl truncate" }, Qs = { class: "text-xs whitespace-nowrap truncate" }, Xs = { class: "w-full pl-1" }, Ys = { class: "w-full flex justify-end sm:pr-4" },
|
|
849
|
+
}, Zs = { class: "sm:p-2 pl-2 flex-shrink-0" }, Ds = { class: "w-8 h-8 sm:w-10 sm:h-10 flex items-center flex-shrink-0" }, Js = ["src"], Ks = { class: "whitespace-nowrap font-semibold sm:text-xl truncate" }, Qs = { class: "text-xs whitespace-nowrap truncate" }, Xs = { class: "w-full pl-1" }, Ys = { class: "w-full flex justify-end sm:pr-4" }, e1 = { class: "flex items-center sm:space-x-1" }, t1 = {
|
|
872
850
|
key: 0,
|
|
873
851
|
class: "module-border-wrap flex justify-center items-center h-6 w-max"
|
|
874
|
-
},
|
|
852
|
+
}, s1 = { class: "h-4 w-4" }, l1 = { class: "ml-2 hidden sm:flex" }, o1 = { class: "flex h-full" }, a1 = { key: 0 }, n1 = {
|
|
875
853
|
key: 0,
|
|
876
854
|
class: "sm:w-[560px] w-full relative h-full"
|
|
877
|
-
},
|
|
855
|
+
}, r1 = { class: "h-full relative" }, i1 = { class: "flex items-center p-3 space-x-1.5" }, d1 = { class: "w-full font-medium" }, u1 = {
|
|
878
856
|
class: "overflow-auto",
|
|
879
857
|
style: { height: "calc(100% - 62px)" }
|
|
880
|
-
},
|
|
858
|
+
}, p1 = {
|
|
881
859
|
key: 0,
|
|
882
860
|
class: "p-5"
|
|
883
|
-
},
|
|
861
|
+
}, c1 = { key: 1 }, h1 = { class: "p-4 text-gray text-center" }, m1 = { key: 2 }, f1 = {
|
|
884
862
|
class: "p-3 space-y-1.5 rounded-lg",
|
|
885
863
|
style: { "box-shadow": "0 0 6px #eaeaea" }
|
|
886
|
-
},
|
|
864
|
+
}, v1 = { key: 0 }, y1 = {
|
|
887
865
|
key: 0,
|
|
888
866
|
class: "text-xs px-2 py-1 rounded-md bg-green-600 text-white"
|
|
889
|
-
},
|
|
867
|
+
}, w1 = {
|
|
890
868
|
key: 1,
|
|
891
869
|
class: "text-xs px-2 py-1 rounded-md bg-yellow-600 text-white"
|
|
892
|
-
},
|
|
870
|
+
}, b1 = {
|
|
893
871
|
key: 2,
|
|
894
872
|
class: "text-xs px-2 py-1 rounded-md bg-blue-600 text-white"
|
|
895
|
-
},
|
|
873
|
+
}, g1 = {
|
|
896
874
|
key: 3,
|
|
897
875
|
class: "text-xs px-2 py-1 rounded-md bg-gray-600 text-white"
|
|
898
|
-
},
|
|
876
|
+
}, x1 = { class: "text-lg font-medium" }, k1 = { class: "text-sm text-gray-600" }, C1 = { key: 0 }, $1 = ["src"], _1 = { class: "text-sm" }, L1 = { key: 1 }, S1 = ["href"], B1 = { class: "text-sm flex items-center justify-between mt-1" }, O1 = { class: "text-gray-800" }, M1 = ["href"], j1 = /* @__PURE__ */ K({
|
|
899
877
|
__name: "OneMainLayout",
|
|
900
|
-
props:
|
|
878
|
+
props: pt,
|
|
901
879
|
emits: ["load-news", "load-tariff", "open-tariff"],
|
|
902
|
-
setup(
|
|
903
|
-
const
|
|
904
|
-
let
|
|
905
|
-
window.document.body.offsetWidth < 1024 && (window.localStorage.getItem("sidebar-slim") == null && window.localStorage.setItem("sidebar-slim", "1"),
|
|
906
|
-
const
|
|
907
|
-
|
|
880
|
+
setup(u, { emit: f }) {
|
|
881
|
+
const c = f, p = u, g = Le(), m = S(() => p.t ?? g);
|
|
882
|
+
let C = window.localStorage.getItem("sidebar-slim");
|
|
883
|
+
window.document.body.offsetWidth < 1024 && (window.localStorage.getItem("sidebar-slim") == null && window.localStorage.setItem("sidebar-slim", "1"), C = "1");
|
|
884
|
+
const T = V(C === "1");
|
|
885
|
+
V(!0), Me(T, (i) => {
|
|
908
886
|
window.localStorage.setItem("sidebar-slim", String(i ? 1 : 0));
|
|
909
887
|
});
|
|
910
|
-
const
|
|
911
|
-
|
|
912
|
-
},
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
()
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
);
|
|
920
|
-
const $ = z(window.innerWidth), q = () => {
|
|
921
|
-
$.value = window.innerWidth;
|
|
922
|
-
}, R = j(() => $.value <= 768);
|
|
923
|
-
Ce(() => {
|
|
924
|
-
window.addEventListener("resize", q);
|
|
925
|
-
}), Se(() => {
|
|
926
|
-
window.removeEventListener("resize", q);
|
|
888
|
+
const L = V(!1), A = () => {
|
|
889
|
+
L.value = !L.value, L.value && c("load-news");
|
|
890
|
+
}, z = S(() => p.showHeader ?? p.showHeadre), M = V(window.innerWidth), D = () => {
|
|
891
|
+
M.value = window.innerWidth;
|
|
892
|
+
}, Z = S(() => M.value <= 768);
|
|
893
|
+
xe(() => {
|
|
894
|
+
window.addEventListener("resize", D);
|
|
895
|
+
}), Oe(() => {
|
|
896
|
+
window.removeEventListener("resize", D);
|
|
927
897
|
});
|
|
928
898
|
const E = (i) => {
|
|
929
|
-
var
|
|
930
|
-
(
|
|
931
|
-
},
|
|
932
|
-
|
|
899
|
+
var b;
|
|
900
|
+
(b = p.handlers) == null || b.onSetLang(i);
|
|
901
|
+
}, l = V(!1), j = () => {
|
|
902
|
+
l.value = window.matchMedia("(min-width: 769px)").matches;
|
|
933
903
|
};
|
|
934
|
-
return
|
|
935
|
-
|
|
936
|
-
}),
|
|
937
|
-
window.removeEventListener("resize",
|
|
938
|
-
}), (i,
|
|
939
|
-
var
|
|
940
|
-
const
|
|
941
|
-
return e(),
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
onClick:
|
|
904
|
+
return xe(() => {
|
|
905
|
+
j(), window.addEventListener("resize", j);
|
|
906
|
+
}), Oe(() => {
|
|
907
|
+
window.removeEventListener("resize", j);
|
|
908
|
+
}), (i, b) => {
|
|
909
|
+
var a, r, x, H, J, ie, X, Y, ee, n, k, te, se, le;
|
|
910
|
+
const Q = Ce("RouterLink");
|
|
911
|
+
return e(), s("div", qs, [
|
|
912
|
+
pe(t("div", Us, [
|
|
913
|
+
t("div", Zs, [
|
|
914
|
+
t("button", {
|
|
915
|
+
onClick: b[0] || (b[0] = (v) => T.value = !T.value),
|
|
946
916
|
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"
|
|
947
917
|
}, [
|
|
948
|
-
B(
|
|
918
|
+
B(O(je), { class: "sm:w-[24px] sm:h-[24px] w-6 h-6" })
|
|
949
919
|
])
|
|
950
920
|
]),
|
|
951
|
-
|
|
952
|
-
i.logoSrc != null ? (e(),
|
|
921
|
+
t("div", Ds, [
|
|
922
|
+
i.logoSrc != null ? (e(), s("img", {
|
|
953
923
|
key: 0,
|
|
954
924
|
src: i.logoSrc,
|
|
955
925
|
class: "w-8 h-8 mx-auto",
|
|
956
926
|
alt: "logo"
|
|
957
|
-
}, null, 8, Js)) :
|
|
927
|
+
}, null, 8, Js)) : o("", !0)
|
|
958
928
|
]),
|
|
959
|
-
i.app != null ? (e(),
|
|
929
|
+
i.app != null ? (e(), h(Q, {
|
|
960
930
|
key: 0,
|
|
961
931
|
to: "/",
|
|
962
932
|
class: "sm:pl-2 pl-1 truncate w-full"
|
|
963
933
|
}, {
|
|
964
|
-
default:
|
|
965
|
-
var
|
|
934
|
+
default: I(() => {
|
|
935
|
+
var v, R;
|
|
966
936
|
return [
|
|
967
|
-
|
|
968
|
-
|
|
937
|
+
t("div", Ks, d(i.app.name), 1),
|
|
938
|
+
t("div", Qs, d((R = (v = i.app) == null ? void 0 : v.workspace) == null ? void 0 : R.name), 1)
|
|
969
939
|
];
|
|
970
940
|
}),
|
|
971
941
|
_: 1
|
|
972
|
-
})) :
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
i.improveTariff && ((
|
|
978
|
-
|
|
942
|
+
})) : o("", !0),
|
|
943
|
+
P(i.$slots, "head-left", {}, void 0, !0),
|
|
944
|
+
t("div", Xs, [
|
|
945
|
+
t("div", Ys, [
|
|
946
|
+
t("div", e1, [
|
|
947
|
+
i.improveTariff && ((a = i.improveTariff) != null && a.label) && i.improveTariff.label ? (e(), s("div", t1, [
|
|
948
|
+
t("button", {
|
|
979
949
|
type: "button",
|
|
980
950
|
class: "cursor-pointer flex items-center h-full bg-[#FFF8E4] hover:bg-[#f2e3b8] rounded-full px-2 py-1 font-medium",
|
|
981
|
-
onClick:
|
|
982
|
-
(...
|
|
983
|
-
var
|
|
984
|
-
return ((
|
|
951
|
+
onClick: b[1] || (b[1] = //@ts-ignore
|
|
952
|
+
(...v) => {
|
|
953
|
+
var R, oe;
|
|
954
|
+
return ((R = i.handlers) == null ? void 0 : R.onImproveTariff) && ((oe = i.handlers) == null ? void 0 : oe.onImproveTariff(...v));
|
|
985
955
|
}),
|
|
986
956
|
style: { "font-size": "10px" }
|
|
987
957
|
}, [
|
|
988
|
-
|
|
989
|
-
(e(),
|
|
958
|
+
t("div", s1, [
|
|
959
|
+
(e(), h(_((r = i.improveTariff) == null ? void 0 : r.icon), { class: "h-4 w-4 mx-auto" }))
|
|
990
960
|
]),
|
|
991
|
-
|
|
961
|
+
t("span", l1, d((x = i.improveTariff) == null ? void 0 : x.label), 1)
|
|
992
962
|
])
|
|
993
|
-
])) :
|
|
994
|
-
|
|
995
|
-
i.help ? (e(),
|
|
963
|
+
])) : o("", !0),
|
|
964
|
+
P(i.$slots, "head-right", {}, void 0, !0),
|
|
965
|
+
i.help ? (e(), h(lt, {
|
|
996
966
|
key: 1,
|
|
997
967
|
help: i.help,
|
|
998
968
|
"help-slug": i.helpSlug,
|
|
999
969
|
t: m.value
|
|
1000
|
-
}, null, 8, ["help", "help-slug", "t"])) :
|
|
1001
|
-
((
|
|
970
|
+
}, null, 8, ["help", "help-slug", "t"])) : o("", !0),
|
|
971
|
+
((H = i.handlers) == null ? void 0 : H.onBrowse) != null ? (e(), h(ot, {
|
|
1002
972
|
key: 2,
|
|
1003
|
-
workspace: (
|
|
1004
|
-
apps: ((
|
|
973
|
+
workspace: (J = i.app) == null ? void 0 : J.workspace,
|
|
974
|
+
apps: ((ie = i.app) == null ? void 0 : ie.apps) || [],
|
|
1005
975
|
t: m.value,
|
|
1006
|
-
"on-app": (
|
|
1007
|
-
"on-change": (
|
|
1008
|
-
onOpen: (
|
|
1009
|
-
}, null, 8, ["workspace", "apps", "t", "on-app", "on-change", "onOpen"])) :
|
|
1010
|
-
B(
|
|
976
|
+
"on-app": (X = i.handlers) == null ? void 0 : X.onApp,
|
|
977
|
+
"on-change": (Y = i.handlers) == null ? void 0 : Y.onChange,
|
|
978
|
+
onOpen: (ee = i.handlers) == null ? void 0 : ee.onBrowse
|
|
979
|
+
}, null, 8, ["workspace", "apps", "t", "on-app", "on-change", "onOpen"])) : o("", !0),
|
|
980
|
+
B(at, {
|
|
1011
981
|
user: i.user,
|
|
1012
982
|
menu: i.menu,
|
|
1013
983
|
app: i.app,
|
|
1014
984
|
t: m.value,
|
|
1015
985
|
"on-account": (n = i.handlers) == null ? void 0 : n.onAccount,
|
|
1016
|
-
"on-logout": (
|
|
986
|
+
"on-logout": (k = i.handlers) == null ? void 0 : k.onLogout
|
|
1017
987
|
}, null, 8, ["user", "menu", "app", "t", "on-account", "on-logout"])
|
|
1018
988
|
])
|
|
1019
989
|
])
|
|
1020
990
|
])
|
|
1021
991
|
], 512), [
|
|
1022
|
-
[ge,
|
|
992
|
+
[ge, z.value]
|
|
1023
993
|
]),
|
|
1024
|
-
|
|
1025
|
-
!
|
|
994
|
+
t("div", o1, [
|
|
995
|
+
!Z.value || !T.value ? (e(), h(ct, {
|
|
1026
996
|
key: 0,
|
|
1027
997
|
app: i.app,
|
|
1028
998
|
t: m.value,
|
|
1029
999
|
items: i.sidebarItems,
|
|
1030
1000
|
"with-news": i.news != null,
|
|
1031
1001
|
news: i.news,
|
|
1032
|
-
isMobile:
|
|
1033
|
-
modelValue:
|
|
1034
|
-
"onUpdate:modelValue":
|
|
1035
|
-
onShowNews:
|
|
1002
|
+
isMobile: Z.value,
|
|
1003
|
+
modelValue: T.value,
|
|
1004
|
+
"onUpdate:modelValue": b[2] || (b[2] = (v) => T.value = v),
|
|
1005
|
+
onShowNews: A,
|
|
1036
1006
|
onSelectLanguage: E,
|
|
1037
|
-
onUpdateCollapsed:
|
|
1038
|
-
}, null, 8, ["app", "t", "items", "with-news", "news", "isMobile", "modelValue"])) :
|
|
1039
|
-
|
|
1040
|
-
class:
|
|
1041
|
-
|
|
1042
|
-
|
|
1007
|
+
onUpdateCollapsed: b[3] || (b[3] = (v) => T.value = !T.value)
|
|
1008
|
+
}, null, 8, ["app", "t", "items", "with-news", "news", "isMobile", "modelValue"])) : o("", !0),
|
|
1009
|
+
t("div", {
|
|
1010
|
+
class: y([[
|
|
1011
|
+
T.value ? "" : "lg:ml-[260px] hidden sm:block",
|
|
1012
|
+
l.value ? "ml-[60px]" : ""
|
|
1043
1013
|
], "body scroll-body w-full overflow-y-auto"])
|
|
1044
1014
|
}, [
|
|
1045
|
-
|
|
1046
|
-
class:
|
|
1015
|
+
t("div", {
|
|
1016
|
+
class: y(["content transition-all", { "pt-[56px]": z.value }])
|
|
1047
1017
|
}, [
|
|
1048
|
-
|
|
1018
|
+
P(i.$slots, "default", {}, void 0, !0)
|
|
1049
1019
|
], 2)
|
|
1050
1020
|
], 2)
|
|
1051
1021
|
]),
|
|
1052
|
-
i.news ? (e(),
|
|
1053
|
-
|
|
1022
|
+
i.news ? (e(), s("div", a1, [
|
|
1023
|
+
L.value ? (e(), s("div", {
|
|
1054
1024
|
key: 0,
|
|
1055
1025
|
class: "fixed top-0 left-0 h-dvh w-screen bg-gray-100 bg-opacity-40 z-50",
|
|
1056
|
-
onClick:
|
|
1057
|
-
})) :
|
|
1058
|
-
|
|
1059
|
-
class:
|
|
1026
|
+
onClick: b[4] || (b[4] = he((v) => L.value = !1, ["self"]))
|
|
1027
|
+
})) : o("", !0),
|
|
1028
|
+
t("div", {
|
|
1029
|
+
class: y(["opacity-100 shadow-lg transition-all fixed top-0 left-0 h-dvh overflow-hidden z-50 bg-white", [L.value ? "sm:w-[560px] w-full" : "w-0"]])
|
|
1060
1030
|
}, [
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
B(
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
B(
|
|
1031
|
+
L.value ? (e(), s("div", n1, [
|
|
1032
|
+
t("div", r1, [
|
|
1033
|
+
t("div", i1, [
|
|
1034
|
+
B(ke, { class: "w-10 h-10" }),
|
|
1035
|
+
t("div", d1, d(m.value("ui.layout.news")), 1),
|
|
1036
|
+
t("div", null, [
|
|
1037
|
+
B(_e, {
|
|
1068
1038
|
variant: "touch",
|
|
1069
|
-
icon:
|
|
1070
|
-
onClick:
|
|
1039
|
+
icon: O(rt),
|
|
1040
|
+
onClick: b[5] || (b[5] = (v) => L.value = !1)
|
|
1071
1041
|
}, null, 8, ["icon"])
|
|
1072
1042
|
])
|
|
1073
1043
|
]),
|
|
1074
|
-
|
|
1075
|
-
i.news.isLoading && ((
|
|
1076
|
-
B(
|
|
1077
|
-
])) : ((
|
|
1078
|
-
|
|
1079
|
-
])) : ((
|
|
1080
|
-
(e(!0),
|
|
1081
|
-
key:
|
|
1044
|
+
t("div", u1, [
|
|
1045
|
+
i.news.isLoading && ((te = i.news.items) == null ? void 0 : te.length) === 0 ? (e(), s("div", p1, [
|
|
1046
|
+
B(it, { class: "w-6 h-6 text-gray-600 mx-auto" })
|
|
1047
|
+
])) : ((se = i.news.items) == null ? void 0 : se.length) === 0 ? (e(), s("div", c1, [
|
|
1048
|
+
t("div", h1, d(i.news.emptyText), 1)
|
|
1049
|
+
])) : ((le = i.news.items) == null ? void 0 : le.length) > 0 ? (e(), s("div", m1, [
|
|
1050
|
+
(e(!0), s(W, null, U(i.news.items, (v) => (e(), s("div", {
|
|
1051
|
+
key: v.id,
|
|
1082
1052
|
class: "p-3"
|
|
1083
1053
|
}, [
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
])) :
|
|
1089
|
-
|
|
1090
|
-
|
|
1054
|
+
t("div", f1, [
|
|
1055
|
+
t("div", null, [
|
|
1056
|
+
v.type ? (e(), s("div", v1, [
|
|
1057
|
+
v.type === 10 ? (e(), s("span", y1, "update")) : v.type === 11 ? (e(), s("span", w1, "warning")) : v.type === 12 ? (e(), s("span", b1, "notice")) : v.type === 13 ? (e(), s("span", g1, "ads")) : o("", !0)
|
|
1058
|
+
])) : o("", !0),
|
|
1059
|
+
t("div", x1, d(v.title), 1),
|
|
1060
|
+
t("div", k1, d(v.summary), 1)
|
|
1091
1061
|
]),
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
src:
|
|
1062
|
+
v.image_url ? (e(), s("div", C1, [
|
|
1063
|
+
t("img", {
|
|
1064
|
+
src: v.image_url,
|
|
1095
1065
|
alt: "",
|
|
1096
1066
|
class: "w-full rounded-md"
|
|
1097
|
-
}, null, 8,
|
|
1098
|
-
])) :
|
|
1099
|
-
|
|
1100
|
-
B(
|
|
1101
|
-
text:
|
|
1067
|
+
}, null, 8, $1)
|
|
1068
|
+
])) : o("", !0),
|
|
1069
|
+
t("div", _1, [
|
|
1070
|
+
B(dt, {
|
|
1071
|
+
text: v.body
|
|
1102
1072
|
}, null, 8, ["text"])
|
|
1103
1073
|
]),
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
href:
|
|
1074
|
+
v.video_url ? (e(), s("div", L1, [
|
|
1075
|
+
t("a", {
|
|
1076
|
+
href: v.video_url,
|
|
1107
1077
|
target: "_blank",
|
|
1108
1078
|
class: "text-blue-600 hover:text-blue-700 px-3 py-2 border rounded-md w-full block"
|
|
1109
|
-
},
|
|
1110
|
-
])) :
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1079
|
+
}, d(i.news.openVideoText), 9, S1)
|
|
1080
|
+
])) : o("", !0),
|
|
1081
|
+
t("div", B1, [
|
|
1082
|
+
t("span", O1, d(v.published), 1),
|
|
1083
|
+
v.post_url ? (e(), s("a", {
|
|
1114
1084
|
key: 0,
|
|
1115
|
-
href:
|
|
1085
|
+
href: v.post_url,
|
|
1116
1086
|
target: "_blank",
|
|
1117
1087
|
class: "text-blue-600 hover:text-blue-700 block"
|
|
1118
|
-
},
|
|
1088
|
+
}, d(i.news.moreText), 9, M1)) : o("", !0)
|
|
1119
1089
|
])
|
|
1120
1090
|
])
|
|
1121
1091
|
]))), 128))
|
|
1122
|
-
])) :
|
|
1092
|
+
])) : o("", !0)
|
|
1123
1093
|
])
|
|
1124
1094
|
])
|
|
1125
|
-
])) :
|
|
1095
|
+
])) : o("", !0)
|
|
1126
1096
|
], 2)
|
|
1127
|
-
])) :
|
|
1097
|
+
])) : o("", !0)
|
|
1128
1098
|
]);
|
|
1129
1099
|
};
|
|
1130
1100
|
}
|
|
1131
1101
|
});
|
|
1132
|
-
const
|
|
1102
|
+
const yo = /* @__PURE__ */ $e(j1, [["__scopeId", "data-v-e0173e75"]]), T1 = { class: "bg-secondary-body-island min-h-screen p-3" }, z1 = { class: "flex gap-3 items-stretch" }, F1 = { class: "flex-1 flex flex-col gap-3 min-w-0" }, V1 = { class: "bg-white rounded-10 h-14 flex items-center justify-between pl-3 pr-3 shrink-0" }, H1 = { class: "flex items-center min-w-0 gap-2" }, W1 = { class: "text-base text-black truncate" }, P1 = ["onClick"], A1 = { class: "text-base text-black truncate" }, E1 = { class: "w-[320px] py-2" }, N1 = ["onClick"], G1 = { class: "text-sm" }, I1 = {
|
|
1133
1103
|
key: 0,
|
|
1134
1104
|
class: "border-t border-secondary-stroke my-1"
|
|
1135
|
-
},
|
|
1105
|
+
}, R1 = {
|
|
1136
1106
|
key: 1,
|
|
1137
1107
|
class: "text-2xs text-secondary-content px-3 py-1 uppercase"
|
|
1138
|
-
},
|
|
1108
|
+
}, q1 = ["onClick"], U1 = { class: "text-sm" }, Z1 = {
|
|
1139
1109
|
key: 2,
|
|
1140
1110
|
class: "border-t border-secondary-stroke mt-1 pt-1"
|
|
1141
|
-
},
|
|
1111
|
+
}, D1 = ["onClick"], J1 = { class: "flex items-center gap-2 shrink-0" }, K1 = ["href"], Q1 = { class: "text-2xs font-semibold text-black leading-loose" }, X1 = { class: "flex-1 min-w-0" }, Y1 = { key: 0 }, el = {
|
|
1142
1112
|
key: 0,
|
|
1143
1113
|
class: "sm:w-[560px] w-full relative h-full"
|
|
1144
|
-
},
|
|
1114
|
+
}, tl = { class: "h-full relative" }, sl = { class: "flex items-center p-3 space-x-1.5" }, ll = { class: "w-full font-medium" }, ol = {
|
|
1145
1115
|
class: "overflow-auto",
|
|
1146
1116
|
style: { height: "calc(100% - 62px)" }
|
|
1147
|
-
},
|
|
1117
|
+
}, al = {
|
|
1148
1118
|
key: 0,
|
|
1149
1119
|
class: "p-5"
|
|
1150
|
-
},
|
|
1120
|
+
}, nl = { key: 1 }, rl = { class: "p-4 text-gray text-center" }, il = { key: 2 }, dl = {
|
|
1151
1121
|
class: "p-3 space-y-1.5 rounded-lg",
|
|
1152
1122
|
style: { "box-shadow": "0 0 6px #eaeaea" }
|
|
1153
|
-
},
|
|
1123
|
+
}, ul = { key: 0 }, pl = {
|
|
1154
1124
|
key: 0,
|
|
1155
1125
|
class: "text-xs px-2 py-1 rounded-md bg-green-600 text-white"
|
|
1156
1126
|
}, cl = {
|
|
@@ -1162,312 +1132,634 @@ const Nl = /* @__PURE__ */ _e(Tt, [["__scopeId", "data-v-0db00cd0"]]), zt = { cl
|
|
|
1162
1132
|
}, ml = {
|
|
1163
1133
|
key: 3,
|
|
1164
1134
|
class: "text-xs px-2 py-1 rounded-md bg-gray-600 text-white"
|
|
1165
|
-
},
|
|
1135
|
+
}, fl = { class: "text-lg font-medium" }, vl = { class: "text-sm text-gray-600" }, yl = { key: 0 }, wl = ["src"], bl = { class: "text-sm" }, gl = { key: 1 }, xl = ["href"], kl = { class: "text-sm flex items-center justify-between mt-1" }, Cl = { class: "text-gray-800" }, $l = ["href"], _l = /* @__PURE__ */ K({
|
|
1166
1136
|
__name: "OneIslandLayout",
|
|
1167
|
-
props:
|
|
1137
|
+
props: pt,
|
|
1168
1138
|
emits: ["load-news", "load-tariff", "open-tariff", "browse", "workspace-click", "manage-workspaces"],
|
|
1169
|
-
setup(
|
|
1170
|
-
const
|
|
1171
|
-
var
|
|
1172
|
-
|
|
1173
|
-
},
|
|
1174
|
-
var
|
|
1175
|
-
|
|
1176
|
-
},
|
|
1177
|
-
var
|
|
1178
|
-
|
|
1139
|
+
setup(u, { emit: f }) {
|
|
1140
|
+
const c = f, p = u, g = Le(), m = S(() => p.t ?? g), C = () => {
|
|
1141
|
+
var a, r;
|
|
1142
|
+
c("browse"), (r = (a = p.handlers) == null ? void 0 : a.onBrowse) == null || r.call(a);
|
|
1143
|
+
}, T = () => {
|
|
1144
|
+
var a, r;
|
|
1145
|
+
c("workspace-click"), (r = (a = p.handlers) == null ? void 0 : a.onWorkspace) == null || r.call(a);
|
|
1146
|
+
}, L = () => {
|
|
1147
|
+
var a, r, x;
|
|
1148
|
+
c("manage-workspaces"), (a = p.handlers) != null && a.onManageWorkspaces ? p.handlers.onManageWorkspaces() : (x = (r = p.handlers) == null ? void 0 : r.onChange) == null || x.call(r);
|
|
1179
1149
|
};
|
|
1180
|
-
let
|
|
1181
|
-
window.document.body.offsetWidth < 1024 && (window.localStorage.getItem("island-sidebar-slim") == null && window.localStorage.setItem("island-sidebar-slim", "1"),
|
|
1182
|
-
const
|
|
1183
|
-
|
|
1184
|
-
window.localStorage.setItem("island-sidebar-slim", String(
|
|
1150
|
+
let A = window.localStorage.getItem("island-sidebar-slim");
|
|
1151
|
+
window.document.body.offsetWidth < 1024 && (window.localStorage.getItem("island-sidebar-slim") == null && window.localStorage.setItem("island-sidebar-slim", "1"), A = "1");
|
|
1152
|
+
const z = V(A === "1");
|
|
1153
|
+
Me(z, (a) => {
|
|
1154
|
+
window.localStorage.setItem("island-sidebar-slim", String(a ? 1 : 0));
|
|
1185
1155
|
});
|
|
1186
|
-
const
|
|
1187
|
-
|
|
1188
|
-
},
|
|
1189
|
-
var r,
|
|
1190
|
-
const
|
|
1191
|
-
|
|
1192
|
-
},
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
t.value = p.showHeadre;
|
|
1197
|
-
}
|
|
1198
|
-
);
|
|
1199
|
-
const L = z(window.innerWidth), i = () => {
|
|
1200
|
-
L.value = window.innerWidth;
|
|
1201
|
-
}, f = j(() => L.value <= 768);
|
|
1202
|
-
Ce(() => {
|
|
1156
|
+
const M = V(!1), D = () => {
|
|
1157
|
+
M.value = !M.value, M.value && c("load-news");
|
|
1158
|
+
}, Z = V(null), E = () => {
|
|
1159
|
+
var r, x, H;
|
|
1160
|
+
const a = (H = (x = (r = Z.value) == null ? void 0 : r.$el) == null ? void 0 : x.querySelector) == null ? void 0 : H.call(x, "button");
|
|
1161
|
+
a == null || a.click();
|
|
1162
|
+
}, l = S(() => p.showHeader ?? p.showHeadre), j = V(window.innerWidth), i = () => {
|
|
1163
|
+
j.value = window.innerWidth;
|
|
1164
|
+
}, b = S(() => j.value <= 768);
|
|
1165
|
+
xe(() => {
|
|
1203
1166
|
window.addEventListener("resize", i);
|
|
1204
|
-
}),
|
|
1167
|
+
}), Oe(() => {
|
|
1205
1168
|
window.removeEventListener("resize", i);
|
|
1206
1169
|
});
|
|
1207
|
-
const
|
|
1208
|
-
var r,
|
|
1209
|
-
(
|
|
1170
|
+
const Q = (a) => {
|
|
1171
|
+
var r, x;
|
|
1172
|
+
(x = (r = p.handlers) == null ? void 0 : r.onSetLang) == null || x.call(r, a);
|
|
1210
1173
|
};
|
|
1211
|
-
return (
|
|
1212
|
-
var
|
|
1213
|
-
return e(),
|
|
1214
|
-
|
|
1215
|
-
!
|
|
1174
|
+
return (a, r) => {
|
|
1175
|
+
var x, H, J, ie, X, Y, ee, n, k, te, se, le, v, R, oe, me, fe, ve, ye, we;
|
|
1176
|
+
return e(), s("div", T1, [
|
|
1177
|
+
t("div", z1, [
|
|
1178
|
+
!b.value || !z.value ? (e(), h(ct, {
|
|
1216
1179
|
key: 0,
|
|
1217
|
-
items:
|
|
1180
|
+
items: a.sidebarItems,
|
|
1218
1181
|
island: !0,
|
|
1219
1182
|
t: m.value,
|
|
1220
|
-
app:
|
|
1221
|
-
"logo-src":
|
|
1222
|
-
"with-news":
|
|
1223
|
-
news:
|
|
1224
|
-
isMobile:
|
|
1225
|
-
modelValue:
|
|
1226
|
-
onToggleMenu: r[0] || (r[0] = (
|
|
1227
|
-
onShowNews:
|
|
1183
|
+
app: a.app,
|
|
1184
|
+
"logo-src": a.logoSrc,
|
|
1185
|
+
"with-news": a.news != null,
|
|
1186
|
+
news: a.news,
|
|
1187
|
+
isMobile: b.value,
|
|
1188
|
+
modelValue: z.value,
|
|
1189
|
+
onToggleMenu: r[0] || (r[0] = (w) => z.value = !z.value),
|
|
1190
|
+
onShowNews: D,
|
|
1228
1191
|
onShowHelp: E,
|
|
1229
|
-
onSelectLanguage:
|
|
1230
|
-
onUpdateCollapsed: r[1] || (r[1] = (
|
|
1231
|
-
}, null, 8, ["items", "t", "app", "logo-src", "with-news", "news", "isMobile", "modelValue"])) :
|
|
1232
|
-
|
|
1192
|
+
onSelectLanguage: Q,
|
|
1193
|
+
onUpdateCollapsed: r[1] || (r[1] = (w) => z.value = !z.value)
|
|
1194
|
+
}, null, 8, ["items", "t", "app", "logo-src", "with-news", "news", "isMobile", "modelValue"])) : o("", !0),
|
|
1195
|
+
b.value && !z.value ? (e(), s("div", {
|
|
1233
1196
|
key: 1,
|
|
1234
1197
|
class: "fixed inset-0 z-40 bg-black/20",
|
|
1235
|
-
onClick: r[2] || (r[2] = (
|
|
1236
|
-
})) :
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1198
|
+
onClick: r[2] || (r[2] = (w) => z.value = !0)
|
|
1199
|
+
})) : o("", !0),
|
|
1200
|
+
t("div", F1, [
|
|
1201
|
+
pe(t("header", V1, [
|
|
1202
|
+
t("div", H1, [
|
|
1203
|
+
b.value ? (e(), s("button", {
|
|
1241
1204
|
key: 0,
|
|
1242
1205
|
type: "button",
|
|
1243
1206
|
class: "w-9 h-9 -ml-1 rounded-10 flex items-center justify-center text-secondary-base hover:bg-secondary-body-active transition-colors shrink-0",
|
|
1244
|
-
onClick: r[3] || (r[3] = (
|
|
1207
|
+
onClick: r[3] || (r[3] = (w) => z.value = !z.value)
|
|
1245
1208
|
}, [
|
|
1246
|
-
(e(),
|
|
1247
|
-
])) :
|
|
1248
|
-
!
|
|
1209
|
+
(e(), h(_(O(je)), { class: "w-5 h-5" }))
|
|
1210
|
+
])) : o("", !0),
|
|
1211
|
+
!b.value && ((x = a.handlers) != null && x.onWorkspace) && (a.workspace || (H = a.app) != null && H.workspace) ? (e(), s("button", {
|
|
1249
1212
|
key: 1,
|
|
1250
1213
|
type: "button",
|
|
1251
1214
|
class: "flex items-center gap-2 px-2 py-1 rounded-10 bg-[#F5F5F5] hover:bg-secondary-body transition-colors min-w-0",
|
|
1252
|
-
onClick:
|
|
1215
|
+
onClick: T
|
|
1253
1216
|
}, [
|
|
1254
|
-
B(
|
|
1255
|
-
text: (
|
|
1256
|
-
src: (
|
|
1217
|
+
B(ue, {
|
|
1218
|
+
text: (ie = a.workspace || ((J = a.app) == null ? void 0 : J.workspace)) == null ? void 0 : ie.name,
|
|
1219
|
+
src: (Y = a.workspace || ((X = a.app) == null ? void 0 : X.workspace)) == null ? void 0 : Y.photo_url,
|
|
1257
1220
|
size: 20,
|
|
1258
1221
|
rounded: !1
|
|
1259
1222
|
}, null, 8, ["text", "src"]),
|
|
1260
|
-
|
|
1261
|
-
(e(),
|
|
1262
|
-
])) : !
|
|
1223
|
+
t("span", W1, d((n = a.workspace || ((ee = a.app) == null ? void 0 : ee.workspace)) == null ? void 0 : n.name), 1),
|
|
1224
|
+
(e(), h(_(O(be)), { class: "w-4 h-4 text-secondary-base shrink-0" }))
|
|
1225
|
+
])) : !b.value && (a.workspace || (k = a.app) != null && k.workspace) ? (e(), h(st, {
|
|
1263
1226
|
key: 2,
|
|
1264
1227
|
"append-body": !0,
|
|
1265
1228
|
stick: "bottom-start"
|
|
1266
1229
|
}, {
|
|
1267
|
-
button:
|
|
1268
|
-
var
|
|
1230
|
+
button: I(({ onToggle: w }) => {
|
|
1231
|
+
var N, q, ae, ne, F, de;
|
|
1269
1232
|
return [
|
|
1270
|
-
|
|
1233
|
+
t("button", {
|
|
1271
1234
|
type: "button",
|
|
1272
1235
|
class: "flex items-center gap-2 px-2 py-1 rounded-10 bg-[#F5F5F5] hover:bg-secondary-body transition-colors min-w-0",
|
|
1273
|
-
onClick: (
|
|
1236
|
+
onClick: (G) => (T(), w())
|
|
1274
1237
|
}, [
|
|
1275
|
-
B(
|
|
1276
|
-
text: (
|
|
1277
|
-
src: (
|
|
1238
|
+
B(ue, {
|
|
1239
|
+
text: (q = a.workspace || ((N = a.app) == null ? void 0 : N.workspace)) == null ? void 0 : q.name,
|
|
1240
|
+
src: (ne = a.workspace || ((ae = a.app) == null ? void 0 : ae.workspace)) == null ? void 0 : ne.photo_url,
|
|
1278
1241
|
size: 20,
|
|
1279
1242
|
rounded: !1
|
|
1280
1243
|
}, null, 8, ["text", "src"]),
|
|
1281
|
-
|
|
1282
|
-
(e(),
|
|
1283
|
-
], 8,
|
|
1244
|
+
t("span", A1, d((de = a.workspace || ((F = a.app) == null ? void 0 : F.workspace)) == null ? void 0 : de.name), 1),
|
|
1245
|
+
(e(), h(_(O(be)), { class: "w-4 h-4 text-secondary-base shrink-0" }))
|
|
1246
|
+
], 8, P1)
|
|
1284
1247
|
];
|
|
1285
1248
|
}),
|
|
1286
|
-
menu:
|
|
1287
|
-
var
|
|
1249
|
+
menu: I(({ onToggle: w }) => {
|
|
1250
|
+
var N, q, ae, ne;
|
|
1288
1251
|
return [
|
|
1289
|
-
|
|
1290
|
-
(e(!0),
|
|
1291
|
-
key:
|
|
1252
|
+
t("div", E1, [
|
|
1253
|
+
(e(!0), s(W, null, U(a.workspaces || [], (F) => (e(), s("div", {
|
|
1254
|
+
key: F.name,
|
|
1292
1255
|
class: "flex items-center gap-2 px-3 py-2 hover:bg-secondary-10 cursor-pointer",
|
|
1293
|
-
onClick: (
|
|
1294
|
-
var
|
|
1295
|
-
return (
|
|
1256
|
+
onClick: (de) => {
|
|
1257
|
+
var G, re;
|
|
1258
|
+
return (re = (G = a.handlers) == null ? void 0 : G.onChange) == null || re.call(G, F), w();
|
|
1296
1259
|
}
|
|
1297
1260
|
}, [
|
|
1298
|
-
B(
|
|
1299
|
-
text:
|
|
1300
|
-
src:
|
|
1261
|
+
B(ue, {
|
|
1262
|
+
text: F.name,
|
|
1263
|
+
src: F.photo_url,
|
|
1301
1264
|
size: 24,
|
|
1302
1265
|
rounded: !1
|
|
1303
1266
|
}, null, 8, ["text", "src"]),
|
|
1304
|
-
|
|
1305
|
-
], 8,
|
|
1306
|
-
(
|
|
1307
|
-
(
|
|
1308
|
-
(e(!0),
|
|
1309
|
-
key:
|
|
1267
|
+
t("span", G1, d(F.name), 1)
|
|
1268
|
+
], 8, N1))), 128)),
|
|
1269
|
+
(N = a.workspaces) != null && N.length ? (e(), s("div", I1)) : o("", !0),
|
|
1270
|
+
(q = a.apps) != null && q.length ? (e(), s("div", R1, d(m.value("ui.layout.apps")), 1)) : o("", !0),
|
|
1271
|
+
(e(!0), s(W, null, U(a.apps || [], (F) => (e(), s("div", {
|
|
1272
|
+
key: F.id,
|
|
1310
1273
|
class: "flex items-center gap-2 px-3 py-2 hover:bg-secondary-10 cursor-pointer",
|
|
1311
|
-
onClick: (
|
|
1312
|
-
var
|
|
1313
|
-
return (
|
|
1274
|
+
onClick: (de) => {
|
|
1275
|
+
var G, re;
|
|
1276
|
+
return (re = (G = a.handlers) == null ? void 0 : G.onApp) == null || re.call(G, F), w();
|
|
1314
1277
|
}
|
|
1315
1278
|
}, [
|
|
1316
|
-
B(
|
|
1317
|
-
text:
|
|
1318
|
-
src:
|
|
1279
|
+
B(ue, {
|
|
1280
|
+
text: F.name,
|
|
1281
|
+
src: F.photo_url,
|
|
1319
1282
|
size: 24,
|
|
1320
1283
|
rounded: !1
|
|
1321
1284
|
}, null, 8, ["text", "src"]),
|
|
1322
|
-
|
|
1323
|
-
], 8,
|
|
1324
|
-
(
|
|
1325
|
-
|
|
1285
|
+
t("span", U1, d(F.name), 1)
|
|
1286
|
+
], 8, q1))), 128)),
|
|
1287
|
+
(ae = a.handlers) != null && ae.onManageWorkspaces || (ne = a.handlers) != null && ne.onChange ? (e(), s("div", Z1, [
|
|
1288
|
+
t("button", {
|
|
1326
1289
|
type: "button",
|
|
1327
1290
|
class: "w-full text-left text-xs text-secondary-content px-3 py-2 hover:bg-secondary-10",
|
|
1328
|
-
onClick: (
|
|
1329
|
-
},
|
|
1330
|
-
])) :
|
|
1291
|
+
onClick: (F) => (L(), w())
|
|
1292
|
+
}, d(m.value("ui.layout.change_workspace")), 9, D1)
|
|
1293
|
+
])) : o("", !0)
|
|
1331
1294
|
])
|
|
1332
1295
|
];
|
|
1333
1296
|
}),
|
|
1334
1297
|
_: 1
|
|
1335
|
-
})) :
|
|
1336
|
-
|
|
1298
|
+
})) : o("", !0),
|
|
1299
|
+
P(a.$slots, "head-left", {}, void 0, !0)
|
|
1337
1300
|
]),
|
|
1338
|
-
|
|
1339
|
-
(
|
|
1301
|
+
t("div", J1, [
|
|
1302
|
+
(te = a.improveTariff) != null && te.label ? (e(), s("a", {
|
|
1340
1303
|
key: 0,
|
|
1341
|
-
href: ((
|
|
1304
|
+
href: ((se = a.improveTariff) == null ? void 0 : se.url) || "#",
|
|
1342
1305
|
class: "flex items-center gap-1.5 bg-[#FFF8E4] hover:bg-[#FAEBC2] rounded-full px-2 py-0.5 transition-colors",
|
|
1343
|
-
onClick: r[4] || (r[4] =
|
|
1344
|
-
var
|
|
1345
|
-
return (
|
|
1306
|
+
onClick: r[4] || (r[4] = he((w) => {
|
|
1307
|
+
var N, q;
|
|
1308
|
+
return (q = (N = a.handlers) == null ? void 0 : N.onImproveTariff) == null ? void 0 : q.call(N);
|
|
1346
1309
|
}, ["prevent"]))
|
|
1347
1310
|
}, [
|
|
1348
|
-
|
|
1311
|
+
a.improveTariff.icon ? (e(), h(_(a.improveTariff.icon), {
|
|
1349
1312
|
key: 0,
|
|
1350
1313
|
class: "w-4 h-4 text-warning-base"
|
|
1351
|
-
})) :
|
|
1352
|
-
|
|
1353
|
-
], 8,
|
|
1354
|
-
|
|
1355
|
-
|
|
1314
|
+
})) : o("", !0),
|
|
1315
|
+
t("span", Q1, d(a.improveTariff.label), 1)
|
|
1316
|
+
], 8, K1)) : o("", !0),
|
|
1317
|
+
P(a.$slots, "head-right", {}, void 0, !0),
|
|
1318
|
+
a.help ? (e(), h(lt, {
|
|
1356
1319
|
key: 1,
|
|
1357
1320
|
ref_key: "helpMenuRef",
|
|
1358
|
-
ref:
|
|
1359
|
-
help:
|
|
1360
|
-
"help-slug":
|
|
1321
|
+
ref: Z,
|
|
1322
|
+
help: a.help,
|
|
1323
|
+
"help-slug": a.helpSlug,
|
|
1361
1324
|
t: m.value
|
|
1362
|
-
}, null, 8, ["help", "help-slug", "t"])) :
|
|
1363
|
-
B(
|
|
1364
|
-
workspace:
|
|
1365
|
-
apps:
|
|
1325
|
+
}, null, 8, ["help", "help-slug", "t"])) : o("", !0),
|
|
1326
|
+
B(ot, {
|
|
1327
|
+
workspace: a.workspace || ((le = a.app) == null ? void 0 : le.workspace),
|
|
1328
|
+
apps: a.apps || ((v = a.app) == null ? void 0 : v.apps) || [],
|
|
1366
1329
|
t: m.value,
|
|
1367
|
-
"on-app": (
|
|
1368
|
-
"on-change": (
|
|
1369
|
-
onOpen:
|
|
1330
|
+
"on-app": (R = a.handlers) == null ? void 0 : R.onApp,
|
|
1331
|
+
"on-change": (oe = a.handlers) == null ? void 0 : oe.onChange,
|
|
1332
|
+
onOpen: C
|
|
1370
1333
|
}, null, 8, ["workspace", "apps", "t", "on-app", "on-change"]),
|
|
1371
|
-
B(
|
|
1372
|
-
user:
|
|
1373
|
-
menu:
|
|
1374
|
-
app:
|
|
1334
|
+
B(at, {
|
|
1335
|
+
user: a.user,
|
|
1336
|
+
menu: a.menu,
|
|
1337
|
+
app: a.app,
|
|
1375
1338
|
t: m.value,
|
|
1376
|
-
"on-account": (
|
|
1377
|
-
"on-logout": (
|
|
1339
|
+
"on-account": (me = a.handlers) == null ? void 0 : me.onAccount,
|
|
1340
|
+
"on-logout": (fe = a.handlers) == null ? void 0 : fe.onLogout
|
|
1378
1341
|
}, null, 8, ["user", "menu", "app", "t", "on-account", "on-logout"])
|
|
1379
1342
|
])
|
|
1380
1343
|
], 512), [
|
|
1381
|
-
[ge,
|
|
1344
|
+
[ge, l.value]
|
|
1382
1345
|
]),
|
|
1383
|
-
|
|
1384
|
-
|
|
1346
|
+
t("div", X1, [
|
|
1347
|
+
P(a.$slots, "default", {}, void 0, !0)
|
|
1385
1348
|
])
|
|
1386
1349
|
])
|
|
1387
1350
|
]),
|
|
1388
|
-
|
|
1389
|
-
|
|
1351
|
+
a.news ? (e(), s("div", Y1, [
|
|
1352
|
+
M.value ? (e(), s("div", {
|
|
1390
1353
|
key: 0,
|
|
1391
1354
|
class: "fixed top-0 left-0 h-dvh w-screen bg-gray-100 bg-opacity-40 z-50",
|
|
1392
|
-
onClick: r[5] || (r[5] =
|
|
1393
|
-
})) :
|
|
1394
|
-
|
|
1395
|
-
class:
|
|
1355
|
+
onClick: r[5] || (r[5] = he((w) => M.value = !1, ["self"]))
|
|
1356
|
+
})) : o("", !0),
|
|
1357
|
+
t("div", {
|
|
1358
|
+
class: y(["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"]])
|
|
1396
1359
|
}, [
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
B(
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
B(
|
|
1360
|
+
M.value ? (e(), s("div", el, [
|
|
1361
|
+
t("div", tl, [
|
|
1362
|
+
t("div", sl, [
|
|
1363
|
+
B(ke, { class: "w-10 h-10" }),
|
|
1364
|
+
t("div", ll, d(m.value("ui.layout.news")), 1),
|
|
1365
|
+
t("div", null, [
|
|
1366
|
+
B(_e, {
|
|
1404
1367
|
variant: "touch",
|
|
1405
|
-
icon:
|
|
1406
|
-
onClick: r[6] || (r[6] = (
|
|
1368
|
+
icon: O(rt),
|
|
1369
|
+
onClick: r[6] || (r[6] = (w) => M.value = !1)
|
|
1407
1370
|
}, null, 8, ["icon"])
|
|
1408
1371
|
])
|
|
1409
1372
|
]),
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
B(
|
|
1413
|
-
])) : ((
|
|
1414
|
-
|
|
1415
|
-
])) : ((
|
|
1416
|
-
(e(!0),
|
|
1417
|
-
key:
|
|
1373
|
+
t("div", ol, [
|
|
1374
|
+
a.news.isLoading && ((ve = a.news.items) == null ? void 0 : ve.length) === 0 ? (e(), s("div", al, [
|
|
1375
|
+
B(it, { class: "w-6 h-6 text-gray-600 mx-auto" })
|
|
1376
|
+
])) : ((ye = a.news.items) == null ? void 0 : ye.length) === 0 ? (e(), s("div", nl, [
|
|
1377
|
+
t("div", rl, d(a.news.emptyText), 1)
|
|
1378
|
+
])) : ((we = a.news.items) == null ? void 0 : we.length) > 0 ? (e(), s("div", il, [
|
|
1379
|
+
(e(!0), s(W, null, U(a.news.items, (w) => (e(), s("div", {
|
|
1380
|
+
key: w.id,
|
|
1418
1381
|
class: "p-3"
|
|
1419
1382
|
}, [
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
])) :
|
|
1425
|
-
|
|
1426
|
-
|
|
1383
|
+
t("div", dl, [
|
|
1384
|
+
t("div", null, [
|
|
1385
|
+
w.type ? (e(), s("div", ul, [
|
|
1386
|
+
w.type === 10 ? (e(), s("span", pl, "update")) : w.type === 11 ? (e(), s("span", cl, "warning")) : w.type === 12 ? (e(), s("span", hl, "notice")) : w.type === 13 ? (e(), s("span", ml, "ads")) : o("", !0)
|
|
1387
|
+
])) : o("", !0),
|
|
1388
|
+
t("div", fl, d(w.title), 1),
|
|
1389
|
+
t("div", vl, d(w.summary), 1)
|
|
1427
1390
|
]),
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
src:
|
|
1391
|
+
w.image_url ? (e(), s("div", yl, [
|
|
1392
|
+
t("img", {
|
|
1393
|
+
src: w.image_url,
|
|
1431
1394
|
alt: "",
|
|
1432
1395
|
class: "w-full rounded-md"
|
|
1433
|
-
}, null, 8,
|
|
1434
|
-
])) :
|
|
1435
|
-
|
|
1436
|
-
B(
|
|
1437
|
-
text:
|
|
1396
|
+
}, null, 8, wl)
|
|
1397
|
+
])) : o("", !0),
|
|
1398
|
+
t("div", bl, [
|
|
1399
|
+
B(dt, {
|
|
1400
|
+
text: w.body
|
|
1438
1401
|
}, null, 8, ["text"])
|
|
1439
1402
|
]),
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
href:
|
|
1403
|
+
w.video_url ? (e(), s("div", gl, [
|
|
1404
|
+
t("a", {
|
|
1405
|
+
href: w.video_url,
|
|
1443
1406
|
target: "_blank",
|
|
1444
1407
|
class: "text-blue-600 hover:text-blue-700 px-3 py-2 border rounded-md w-full block"
|
|
1445
|
-
},
|
|
1446
|
-
])) :
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1408
|
+
}, d(a.news.openVideoText), 9, xl)
|
|
1409
|
+
])) : o("", !0),
|
|
1410
|
+
t("div", kl, [
|
|
1411
|
+
t("span", Cl, d(w.published), 1),
|
|
1412
|
+
w.post_url ? (e(), s("a", {
|
|
1450
1413
|
key: 0,
|
|
1451
|
-
href:
|
|
1414
|
+
href: w.post_url,
|
|
1452
1415
|
target: "_blank",
|
|
1453
1416
|
class: "text-blue-600 hover:text-blue-700 block"
|
|
1454
|
-
},
|
|
1417
|
+
}, d(a.news.moreText), 9, $l)) : o("", !0)
|
|
1455
1418
|
])
|
|
1456
1419
|
])
|
|
1457
1420
|
]))), 128))
|
|
1458
|
-
])) :
|
|
1421
|
+
])) : o("", !0)
|
|
1459
1422
|
])
|
|
1460
1423
|
])
|
|
1461
|
-
])) :
|
|
1424
|
+
])) : o("", !0)
|
|
1462
1425
|
], 2)
|
|
1463
|
-
])) :
|
|
1426
|
+
])) : o("", !0)
|
|
1464
1427
|
]);
|
|
1465
1428
|
};
|
|
1466
1429
|
}
|
|
1467
1430
|
});
|
|
1468
|
-
const
|
|
1431
|
+
const wo = /* @__PURE__ */ $e(_l, [["__scopeId", "data-v-b8001409"]]), Ll = { class: "not-prose relative bg-slate-50 rounded-xl overflow-hidden dark:bg-slate-800/25" }, Sl = { class: "relative rounded-xl overflow-auto p-8" }, Bl = { class: "grid lg:grid-cols-4 2xl:grid-cols-6 gap-4 font-mono text-white text-sm text-center font-bold leading-6 bg-stripes-fuchsia rounded-lg" }, bo = /* @__PURE__ */ K({
|
|
1432
|
+
__name: "OneGridLayout",
|
|
1433
|
+
props: Ct,
|
|
1434
|
+
setup(u) {
|
|
1435
|
+
const f = u, c = S(() => Array.from({ length: f.count || 2 }, (p, g) => g + 1));
|
|
1436
|
+
return (p, g) => {
|
|
1437
|
+
const m = Ce("font");
|
|
1438
|
+
return e(), s("div", Ll, [
|
|
1439
|
+
g[0] || (g[0] = t("div", {
|
|
1440
|
+
class: "absolute inset-0 bg-grid-slate-100 [mask-image:linear-gradient(0deg,#fff,rgba(255,255,255,0.6))] dark:bg-grid-slate-700/25 dark:[mask-image:linear-gradient(0deg,rgba(255,255,255,0.1),rgba(255,255,255,0.5))]",
|
|
1441
|
+
style: { "background-position": "10px 10px" }
|
|
1442
|
+
}, null, -1)),
|
|
1443
|
+
t("div", Sl, [
|
|
1444
|
+
t("div", Bl, [
|
|
1445
|
+
(e(!0), s(W, null, U(c.value, (C) => (e(), s("div", {
|
|
1446
|
+
class: "p-4 rounded-lg shadow-lg bg-fuchsia-500",
|
|
1447
|
+
key: C
|
|
1448
|
+
}, [
|
|
1449
|
+
B(m, { style: { "vertical-align": "inherit" } }, {
|
|
1450
|
+
default: I(() => [
|
|
1451
|
+
B(m, { style: { "vertical-align": "inherit" } }, {
|
|
1452
|
+
default: I(() => [
|
|
1453
|
+
ce(d(C), 1)
|
|
1454
|
+
]),
|
|
1455
|
+
_: 2
|
|
1456
|
+
}, 1024)
|
|
1457
|
+
]),
|
|
1458
|
+
_: 2
|
|
1459
|
+
}, 1024)
|
|
1460
|
+
]))), 128))
|
|
1461
|
+
])
|
|
1462
|
+
]),
|
|
1463
|
+
g[1] || (g[1] = t("div", { class: "absolute inset-0 pointer-events-none border border-black/5 rounded-xl dark:border-white/5" }, null, -1))
|
|
1464
|
+
]);
|
|
1465
|
+
};
|
|
1466
|
+
}
|
|
1467
|
+
}), Ol = /* @__PURE__ */ K({
|
|
1468
|
+
__name: "OneBackButton",
|
|
1469
|
+
props: {
|
|
1470
|
+
/** Fallback route when there is no browser history (deep link). */
|
|
1471
|
+
to: {
|
|
1472
|
+
type: [String, Object],
|
|
1473
|
+
default: void 0
|
|
1474
|
+
},
|
|
1475
|
+
label: {
|
|
1476
|
+
type: String,
|
|
1477
|
+
default: ""
|
|
1478
|
+
},
|
|
1479
|
+
variant: {
|
|
1480
|
+
type: String,
|
|
1481
|
+
default: "link"
|
|
1482
|
+
},
|
|
1483
|
+
classButton: {
|
|
1484
|
+
type: String,
|
|
1485
|
+
default: "pl-0"
|
|
1486
|
+
},
|
|
1487
|
+
classIcon: {
|
|
1488
|
+
type: String,
|
|
1489
|
+
default: "!w-3"
|
|
1490
|
+
},
|
|
1491
|
+
/** Return true to fully handle the click yourself. */
|
|
1492
|
+
handler: {
|
|
1493
|
+
type: Function,
|
|
1494
|
+
default: void 0
|
|
1495
|
+
},
|
|
1496
|
+
t: {
|
|
1497
|
+
type: Function,
|
|
1498
|
+
default: void 0
|
|
1499
|
+
}
|
|
1500
|
+
},
|
|
1501
|
+
setup(u) {
|
|
1502
|
+
const f = u, c = gt(), p = Le(), g = S(() => f.t ?? p), m = V(!1);
|
|
1503
|
+
xe(() => {
|
|
1504
|
+
var L;
|
|
1505
|
+
m.value = ((L = window.history.state) == null ? void 0 : L.back) != null;
|
|
1506
|
+
});
|
|
1507
|
+
const C = () => {
|
|
1508
|
+
if (f.handler != null && f.handler())
|
|
1509
|
+
return;
|
|
1510
|
+
const L = c.options.history.state;
|
|
1511
|
+
m.value && L.back !== L.current ? c.back() : f.to != null ? c.push(f.to) : c.back();
|
|
1512
|
+
}, T = S(() => f.label || g.value("ui.back"));
|
|
1513
|
+
return (L, A) => (e(), h(O(_e), {
|
|
1514
|
+
class: y(["!text-[#525B66] text-xs", u.classButton]),
|
|
1515
|
+
label: T.value,
|
|
1516
|
+
iconClass: u.classIcon,
|
|
1517
|
+
labelClass: "!ml-1",
|
|
1518
|
+
icon: O(xt),
|
|
1519
|
+
variant: u.variant,
|
|
1520
|
+
onClick: C
|
|
1521
|
+
}, null, 8, ["class", "label", "iconClass", "icon", "variant"]));
|
|
1522
|
+
}
|
|
1523
|
+
}), Ml = { class: "flex min-w-0 items-center gap-3" }, jl = ["src"], Tl = { class: "min-w-0 text-left leading-tight" }, zl = {
|
|
1524
|
+
key: 0,
|
|
1525
|
+
class: "truncate text-base font-semibold text-gray-900"
|
|
1526
|
+
}, Fl = {
|
|
1527
|
+
key: 1,
|
|
1528
|
+
class: "truncate text-xs text-gray-500"
|
|
1529
|
+
}, Vl = {
|
|
1530
|
+
key: 1,
|
|
1531
|
+
class: "truncate text-sm font-medium text-gray-700 sm:text-base"
|
|
1532
|
+
}, Hl = {
|
|
1533
|
+
id: "one-empty-layout-header-center",
|
|
1534
|
+
class: "hidden min-w-0 flex-1 px-4 lg:flex"
|
|
1535
|
+
}, Wl = { class: "flex shrink-0 items-center gap-3" }, Pl = {
|
|
1536
|
+
key: 0,
|
|
1537
|
+
class: "hidden text-right sm:block"
|
|
1538
|
+
}, Al = { class: "text-sm text-gray-800" }, El = { class: "p-3 sm:p-4 lg:mx-auto" }, Nl = {
|
|
1539
|
+
class: "fixed bottom-0 left-0 right-0 bg-white h-16 flex items-center",
|
|
1540
|
+
style: { "box-shadow": "0 0 15px rgba(0, 0, 0, 0.2)", "will-change": "transform" }
|
|
1541
|
+
}, Gl = { class: "w-full lg:max-w-[960px] mx-auto px-3 lg:px-0" }, go = /* @__PURE__ */ K({
|
|
1542
|
+
__name: "OneEmptyLayout",
|
|
1543
|
+
props: {
|
|
1544
|
+
showHeader: {
|
|
1545
|
+
type: Boolean,
|
|
1546
|
+
default: !0
|
|
1547
|
+
},
|
|
1548
|
+
showFooter: {
|
|
1549
|
+
type: Boolean,
|
|
1550
|
+
default: !1
|
|
1551
|
+
},
|
|
1552
|
+
showHeaderShadow: {
|
|
1553
|
+
type: Boolean,
|
|
1554
|
+
default: !1
|
|
1555
|
+
},
|
|
1556
|
+
logoUrl: {
|
|
1557
|
+
type: String,
|
|
1558
|
+
default: ""
|
|
1559
|
+
},
|
|
1560
|
+
appName: {
|
|
1561
|
+
type: String,
|
|
1562
|
+
default: ""
|
|
1563
|
+
},
|
|
1564
|
+
workspaceName: {
|
|
1565
|
+
type: String,
|
|
1566
|
+
default: ""
|
|
1567
|
+
},
|
|
1568
|
+
/** Route for the logo link; plain block when omitted. */
|
|
1569
|
+
homeTo: {
|
|
1570
|
+
type: [String, Object],
|
|
1571
|
+
default: void 0
|
|
1572
|
+
},
|
|
1573
|
+
/** Back-button fallback route; button hidden when omitted. */
|
|
1574
|
+
backTo: {
|
|
1575
|
+
type: [String, Object],
|
|
1576
|
+
default: void 0
|
|
1577
|
+
},
|
|
1578
|
+
title: {
|
|
1579
|
+
type: String,
|
|
1580
|
+
default: ""
|
|
1581
|
+
},
|
|
1582
|
+
user: {
|
|
1583
|
+
type: Object,
|
|
1584
|
+
default: null
|
|
1585
|
+
},
|
|
1586
|
+
/** White content background (invoice "create document" pages). */
|
|
1587
|
+
whiteBackground: {
|
|
1588
|
+
type: Boolean,
|
|
1589
|
+
default: !1
|
|
1590
|
+
}
|
|
1591
|
+
},
|
|
1592
|
+
setup(u) {
|
|
1593
|
+
return (f, c) => (e(), s("div", {
|
|
1594
|
+
class: y(u.whiteBackground ? "bg-white min-h-screen" : "min-h-screen bg-[#FAFBFC]")
|
|
1595
|
+
}, [
|
|
1596
|
+
u.showHeader ? (e(), s("div", {
|
|
1597
|
+
key: 0,
|
|
1598
|
+
class: "sticky top-0 z-40 flex items-center justify-between gap-3 border-b bg-white/90 px-3 py-2.5 backdrop-blur supports-[backdrop-filter]:bg-white/80 sm:px-6",
|
|
1599
|
+
style: tt(u.showHeaderShadow ? "box-shadow: 0 0 15px rgba(0, 0, 0, 0.2)" : "")
|
|
1600
|
+
}, [
|
|
1601
|
+
t("div", Ml, [
|
|
1602
|
+
(e(), h(_(u.homeTo ? "router-link" : "div"), {
|
|
1603
|
+
to: u.homeTo,
|
|
1604
|
+
class: "hidden shrink-0 items-center gap-2 lg:flex"
|
|
1605
|
+
}, {
|
|
1606
|
+
default: I(() => [
|
|
1607
|
+
u.logoUrl ? (e(), s("img", {
|
|
1608
|
+
key: 0,
|
|
1609
|
+
src: u.logoUrl,
|
|
1610
|
+
alt: "",
|
|
1611
|
+
class: "h-8 w-8"
|
|
1612
|
+
}, null, 8, jl)) : o("", !0),
|
|
1613
|
+
t("div", Tl, [
|
|
1614
|
+
u.appName ? (e(), s("div", zl, d(u.appName), 1)) : o("", !0),
|
|
1615
|
+
u.workspaceName ? (e(), s("div", Fl, d(u.workspaceName), 1)) : o("", !0)
|
|
1616
|
+
])
|
|
1617
|
+
]),
|
|
1618
|
+
_: 1
|
|
1619
|
+
}, 8, ["to"])),
|
|
1620
|
+
u.backTo ? (e(), h(Ol, {
|
|
1621
|
+
key: 0,
|
|
1622
|
+
to: u.backTo,
|
|
1623
|
+
variant: "secondary",
|
|
1624
|
+
"class-button": "!bg-[#F6F8FF] rounded-xl h-8",
|
|
1625
|
+
"class-icon": "!w-4"
|
|
1626
|
+
}, null, 8, ["to"])) : o("", !0),
|
|
1627
|
+
u.title ? (e(), s("h1", Vl, d(u.title), 1)) : o("", !0),
|
|
1628
|
+
P(f.$slots, "header-left")
|
|
1629
|
+
]),
|
|
1630
|
+
t("div", Hl, [
|
|
1631
|
+
P(f.$slots, "header-center")
|
|
1632
|
+
]),
|
|
1633
|
+
t("div", Wl, [
|
|
1634
|
+
P(f.$slots, "header-right", {}, () => {
|
|
1635
|
+
var p;
|
|
1636
|
+
return [
|
|
1637
|
+
(p = u.user) != null && p.name ? (e(), s("div", Pl, [
|
|
1638
|
+
t("div", Al, d(u.user.name), 1)
|
|
1639
|
+
])) : o("", !0),
|
|
1640
|
+
u.user ? (e(), h(O(ue), {
|
|
1641
|
+
key: 1,
|
|
1642
|
+
src: u.user.photo_url,
|
|
1643
|
+
rounded: !0,
|
|
1644
|
+
size: "30"
|
|
1645
|
+
}, null, 8, ["src"])) : o("", !0)
|
|
1646
|
+
];
|
|
1647
|
+
})
|
|
1648
|
+
])
|
|
1649
|
+
], 4)) : o("", !0),
|
|
1650
|
+
t("div", El, [
|
|
1651
|
+
P(f.$slots, "default")
|
|
1652
|
+
]),
|
|
1653
|
+
u.showFooter ? (e(), s(W, { key: 1 }, [
|
|
1654
|
+
c[0] || (c[0] = t("div", { class: "h-16" }, null, -1)),
|
|
1655
|
+
t("div", Nl, [
|
|
1656
|
+
t("div", Gl, [
|
|
1657
|
+
P(f.$slots, "footer")
|
|
1658
|
+
])
|
|
1659
|
+
])
|
|
1660
|
+
], 64)) : o("", !0)
|
|
1661
|
+
], 2));
|
|
1662
|
+
}
|
|
1663
|
+
}), Il = { class: "flex flex-col md:flex-row h-screen" }, Rl = { class: "flex flex-col lg:flex-row items-center h-full" }, ql = { class: "2xl:px-12 p-4 w-full" }, Ul = {
|
|
1664
|
+
key: 0,
|
|
1665
|
+
class: "flex flex-col lg:flex-row justify-center text-center p-4"
|
|
1666
|
+
}, Zl = {
|
|
1667
|
+
key: 0,
|
|
1668
|
+
class: "flex-1 hidden md:block"
|
|
1669
|
+
}, xo = /* @__PURE__ */ K({
|
|
1670
|
+
__name: "OneAuthLayout",
|
|
1671
|
+
props: {
|
|
1672
|
+
/** Tailwind width class for the form panel (accounts uses lg:w-[450px]). */
|
|
1673
|
+
panelWidthClass: {
|
|
1674
|
+
type: String,
|
|
1675
|
+
default: "lg:w-[450px]"
|
|
1676
|
+
}
|
|
1677
|
+
},
|
|
1678
|
+
setup(u) {
|
|
1679
|
+
return (f, c) => (e(), s("div", Il, [
|
|
1680
|
+
t("div", {
|
|
1681
|
+
class: y(["w-full bg-white h-full flex flex-col justify-between", u.panelWidthClass])
|
|
1682
|
+
}, [
|
|
1683
|
+
t("div", Rl, [
|
|
1684
|
+
t("div", ql, [
|
|
1685
|
+
P(f.$slots, "default")
|
|
1686
|
+
])
|
|
1687
|
+
]),
|
|
1688
|
+
f.$slots.footer ? (e(), s("div", Ul, [
|
|
1689
|
+
P(f.$slots, "footer")
|
|
1690
|
+
])) : o("", !0)
|
|
1691
|
+
], 2),
|
|
1692
|
+
f.$slots.brand ? (e(), s("div", Zl, [
|
|
1693
|
+
P(f.$slots, "brand")
|
|
1694
|
+
])) : o("", !0)
|
|
1695
|
+
]));
|
|
1696
|
+
}
|
|
1697
|
+
}), Dl = { class: "truncate max-w-[220px]" }, Jl = { class: "truncate max-w-[220px]" }, ko = /* @__PURE__ */ K({
|
|
1698
|
+
__name: "OneBreadcrumbs",
|
|
1699
|
+
props: {
|
|
1700
|
+
items: {
|
|
1701
|
+
type: Array,
|
|
1702
|
+
required: !0
|
|
1703
|
+
},
|
|
1704
|
+
pill: {
|
|
1705
|
+
type: Boolean,
|
|
1706
|
+
default: !0
|
|
1707
|
+
}
|
|
1708
|
+
},
|
|
1709
|
+
setup(u) {
|
|
1710
|
+
return (f, c) => {
|
|
1711
|
+
const p = Ce("RouterLink");
|
|
1712
|
+
return e(), s("nav", {
|
|
1713
|
+
class: y(["flex items-center gap-1 min-w-0", u.pill ? "bg-light-body rounded-10 px-3 py-1" : ""]),
|
|
1714
|
+
"aria-label": "Breadcrumb"
|
|
1715
|
+
}, [
|
|
1716
|
+
(e(!0), s(W, null, U(u.items, (g, m) => (e(), s(W, { key: m }, [
|
|
1717
|
+
m > 0 ? (e(), h(O(nt), {
|
|
1718
|
+
key: 0,
|
|
1719
|
+
class: "w-3 h-3 text-secondary-content shrink-0"
|
|
1720
|
+
})) : o("", !0),
|
|
1721
|
+
g.to != null && m < u.items.length - 1 ? (e(), h(p, {
|
|
1722
|
+
key: 1,
|
|
1723
|
+
to: g.to,
|
|
1724
|
+
class: "flex items-center gap-2 min-w-0 text-sm text-primary-content hover:text-primary-base transition-colors",
|
|
1725
|
+
"data-test": "breadcrumb-link"
|
|
1726
|
+
}, {
|
|
1727
|
+
default: I(() => [
|
|
1728
|
+
g.avatarSrc ? (e(), h(ue, {
|
|
1729
|
+
key: 0,
|
|
1730
|
+
src: g.avatarSrc,
|
|
1731
|
+
size: 20,
|
|
1732
|
+
rounded: !1,
|
|
1733
|
+
class: "shrink-0"
|
|
1734
|
+
}, null, 8, ["src"])) : o("", !0),
|
|
1735
|
+
t("span", Dl, d(g.label), 1)
|
|
1736
|
+
]),
|
|
1737
|
+
_: 2
|
|
1738
|
+
}, 1032, ["to"])) : (e(), s("span", {
|
|
1739
|
+
key: 2,
|
|
1740
|
+
class: y(["flex items-center gap-2 min-w-0 text-sm", m === u.items.length - 1 ? "text-secondary-content" : ""])
|
|
1741
|
+
}, [
|
|
1742
|
+
g.avatarSrc ? (e(), h(ue, {
|
|
1743
|
+
key: 0,
|
|
1744
|
+
src: g.avatarSrc,
|
|
1745
|
+
size: 20,
|
|
1746
|
+
rounded: !1,
|
|
1747
|
+
class: "shrink-0"
|
|
1748
|
+
}, null, 8, ["src"])) : o("", !0),
|
|
1749
|
+
t("span", Jl, d(g.label), 1)
|
|
1750
|
+
], 2))
|
|
1751
|
+
], 64))), 128))
|
|
1752
|
+
], 2);
|
|
1753
|
+
};
|
|
1754
|
+
}
|
|
1755
|
+
});
|
|
1469
1756
|
export {
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1757
|
+
xo as OneAuthLayout,
|
|
1758
|
+
Ol as OneBackButton,
|
|
1759
|
+
ko as OneBreadcrumbs,
|
|
1760
|
+
go as OneEmptyLayout,
|
|
1761
|
+
bo as OneGridLayout,
|
|
1762
|
+
wo as OneIslandLayout,
|
|
1763
|
+
yo as OneMainLayout,
|
|
1764
|
+
ct as OneSidebar
|
|
1473
1765
|
};
|