@oneb/ui-vue 0.3.32 → 0.4.1
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/LogoOneb-b6ac382e.cjs +1 -0
- package/dist/LogoOneb-ddb388a4.js +16 -0
- package/dist/MagnifyingGlassIcon-adf871ba.cjs +1 -0
- package/dist/MagnifyingGlassIcon-ca213d3d.js +20 -0
- 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-73817f8a.js → OneHelpMenu-2a2051d7.js} +120 -214
- package/dist/OneHelpMenu-78d9348a.cjs +1 -0
- 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 +543 -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 +268 -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 +101 -15
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +18 -0
- package/dist/index.js +244 -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/label/index.cjs +1 -1
- package/dist/label/index.js +5 -5
- package/dist/layout/LogoOneb.vue.d.ts +2 -0
- 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 +7 -1
- package/dist/layout/index.js +1059 -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 +104 -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/index.cjs +1 -1
- package/dist/stageBadge/index.js +18 -16
- 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 -74
- 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 +215 -24
- 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
|
@@ -1,120 +1,27 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { defineComponent as S, ref as F, provide as J, watch as K, nextTick as Q, onBeforeUnmount as X, computed as C, openBlock as t, createElementBlock as o, createElementVNode as e, renderSlot as E, normalizeProps as H, guardReactiveProps as P, createBlock as B, Teleport as Y, createCommentVNode as h, createVNode as y, Transition as R, withCtx as T, normalizeClass as L, toDisplayString as d, Fragment as $, inject as Z, withModifiers as ee, resolveDynamicComponent as I, renderList as M, mergeProps as te, unref as A } from "vue";
|
|
2
|
+
import { d as oe, a as ne } from "./dropdown-c81fb945.js";
|
|
3
|
+
import { autoUpdate as se, computePosition as le, offset as re, shift as ie } from "@floating-ui/dom";
|
|
4
|
+
import { flip as ae } from "@floating-ui/vue";
|
|
5
|
+
import { _ as O } from "./OneAvatar.vue_vue_type_script_setup_true_lang-08ab80dd.js";
|
|
6
|
+
import { useOnebI18n as V } from "./i18n/index.js";
|
|
6
7
|
import { r as q } from "./XMarkIcon-51ef0691.js";
|
|
7
8
|
import { r as U } from "./ChevronDownIcon-6805ce6c.js";
|
|
8
|
-
import { r as W
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
type: String
|
|
14
|
-
},
|
|
15
|
-
stick: {
|
|
16
|
-
type: String,
|
|
17
|
-
default: "right"
|
|
18
|
-
},
|
|
19
|
-
appendBody: {
|
|
20
|
-
type: Boolean,
|
|
21
|
-
default: !1
|
|
22
|
-
},
|
|
23
|
-
trigger: {
|
|
24
|
-
type: String,
|
|
25
|
-
default: "click"
|
|
26
|
-
},
|
|
27
|
-
offset: {
|
|
28
|
-
type: Number,
|
|
29
|
-
default: 5
|
|
30
|
-
}
|
|
31
|
-
}, ue = {
|
|
32
|
-
variant: {
|
|
33
|
-
type: String,
|
|
34
|
-
default: "primary"
|
|
35
|
-
},
|
|
36
|
-
label: {
|
|
37
|
-
type: String
|
|
38
|
-
},
|
|
39
|
-
icon: {
|
|
40
|
-
type: [Function, Object]
|
|
41
|
-
}
|
|
42
|
-
}, It = {
|
|
43
|
-
modelValue: {
|
|
44
|
-
type: [Object, Array],
|
|
45
|
-
default: null
|
|
46
|
-
},
|
|
47
|
-
multiple: {
|
|
48
|
-
type: Boolean,
|
|
49
|
-
default: !1
|
|
50
|
-
},
|
|
51
|
-
items: {
|
|
52
|
-
type: Array,
|
|
53
|
-
default: () => []
|
|
54
|
-
},
|
|
55
|
-
title: {
|
|
56
|
-
type: String
|
|
57
|
-
},
|
|
58
|
-
placeholder: {
|
|
59
|
-
type: String,
|
|
60
|
-
default: "Select"
|
|
61
|
-
},
|
|
62
|
-
searchPlaceholder: {
|
|
63
|
-
type: String,
|
|
64
|
-
default: "Search"
|
|
65
|
-
},
|
|
66
|
-
labelKey: {
|
|
67
|
-
type: String,
|
|
68
|
-
default: "label"
|
|
69
|
-
},
|
|
70
|
-
valueKey: {
|
|
71
|
-
type: String,
|
|
72
|
-
default: "id"
|
|
73
|
-
},
|
|
74
|
-
stick: {
|
|
75
|
-
type: String,
|
|
76
|
-
default: "bottom-start"
|
|
77
|
-
},
|
|
78
|
-
allowEmpty: {
|
|
79
|
-
type: Boolean,
|
|
80
|
-
default: !1
|
|
81
|
-
},
|
|
82
|
-
emptyLabel: {
|
|
83
|
-
type: String
|
|
84
|
-
},
|
|
85
|
-
createLabel: {
|
|
86
|
-
type: String
|
|
87
|
-
},
|
|
88
|
-
searchable: {
|
|
89
|
-
type: Boolean,
|
|
90
|
-
default: !0
|
|
91
|
-
},
|
|
92
|
-
isLoading: {
|
|
93
|
-
type: Boolean,
|
|
94
|
-
default: !1
|
|
95
|
-
},
|
|
96
|
-
groupKey: {
|
|
97
|
-
type: String
|
|
98
|
-
},
|
|
99
|
-
maxWidth: {
|
|
100
|
-
type: String
|
|
101
|
-
},
|
|
102
|
-
view: {
|
|
103
|
-
type: String,
|
|
104
|
-
default: "default"
|
|
105
|
-
}
|
|
106
|
-
}, de = ["data-opened"], pe = {
|
|
9
|
+
import { r as W } from "./ChevronUpIcon-c43f27a9.js";
|
|
10
|
+
import { r as ce } from "./ChevronRightIcon-b0585768.js";
|
|
11
|
+
import { OneButton as ue } from "./button/index.js";
|
|
12
|
+
import { _ as G } from "./_plugin-vue_export-helper-dad06003.js";
|
|
13
|
+
const de = ["data-opened"], pe = {
|
|
107
14
|
key: 0,
|
|
108
15
|
class: "text-sm text-secondary-content px-3 py-2 text-left"
|
|
109
16
|
}, he = {
|
|
110
17
|
key: 0,
|
|
111
18
|
class: "text-sm text-secondary-content px-3 py-2 text-left"
|
|
112
|
-
}, fe = /* @__PURE__ */
|
|
19
|
+
}, fe = /* @__PURE__ */ S({
|
|
113
20
|
__name: "OneDropdown",
|
|
114
|
-
props:
|
|
21
|
+
props: oe,
|
|
115
22
|
emits: ["open", "close"],
|
|
116
|
-
setup(
|
|
117
|
-
const c =
|
|
23
|
+
setup(_, { emit: f }) {
|
|
24
|
+
const c = F(!1), v = F(null), w = F(null), a = F(null), i = f, n = _, u = () => {
|
|
118
25
|
c.value = !c.value, c.value ? i("open") : i("close");
|
|
119
26
|
};
|
|
120
27
|
let m = null;
|
|
@@ -125,15 +32,15 @@ const ce = {
|
|
|
125
32
|
c.value && (c.value = !1, i("close"));
|
|
126
33
|
}, 100));
|
|
127
34
|
};
|
|
128
|
-
|
|
35
|
+
J("OneDropdown", {
|
|
129
36
|
onToggle: u
|
|
130
37
|
});
|
|
131
38
|
let x = null;
|
|
132
39
|
function b() {
|
|
133
|
-
!w.value || !a.value ||
|
|
40
|
+
!w.value || !a.value || le(w.value, a.value, {
|
|
134
41
|
placement: n.stick ? n.stick : "bottom-start",
|
|
135
42
|
strategy: "fixed",
|
|
136
|
-
middleware: [
|
|
43
|
+
middleware: [re(n.offset), ae(), ie({ padding: 8 })]
|
|
137
44
|
}).then(({ x: s, y: r }) => {
|
|
138
45
|
a.value && Object.assign(a.value.style, {
|
|
139
46
|
left: `${s}px`,
|
|
@@ -142,8 +49,8 @@ const ce = {
|
|
|
142
49
|
});
|
|
143
50
|
});
|
|
144
51
|
}
|
|
145
|
-
|
|
146
|
-
n.appendBody && (s ? (await Q(), w.value && a.value && (a.value.style.visibility = "hidden", b(), x =
|
|
52
|
+
K(c, async (s) => {
|
|
53
|
+
n.appendBody && (s ? (await Q(), w.value && a.value && (a.value.style.visibility = "hidden", b(), x = se(w.value, a.value, b))) : x && (x(), x = null));
|
|
147
54
|
}), X(() => {
|
|
148
55
|
x && x();
|
|
149
56
|
});
|
|
@@ -153,7 +60,7 @@ const ce = {
|
|
|
153
60
|
return "";
|
|
154
61
|
const s = (j = v.value) == null ? void 0 : j.getBoundingClientRect(), r = s ? s.x < 270 : !1;
|
|
155
62
|
return s && s.top + 270 > window.innerHeight ? "up" + (r ? "-right" : "-left") : "down" + (r ? "-right" : "-left");
|
|
156
|
-
}),
|
|
63
|
+
}), z = C(() => {
|
|
157
64
|
const s = [
|
|
158
65
|
"absolute z-10 w-fit rounded-md bg-white",
|
|
159
66
|
"py-1 shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none",
|
|
@@ -179,7 +86,7 @@ const ce = {
|
|
|
179
86
|
}, [
|
|
180
87
|
E(s.$slots, "button", H(P({ onToggle: u, isExpanded: c.value })))
|
|
181
88
|
], 512),
|
|
182
|
-
n.appendBody ? (t(),
|
|
89
|
+
n.appendBody ? (t(), B(Y, {
|
|
183
90
|
key: 0,
|
|
184
91
|
to: "body"
|
|
185
92
|
}, [
|
|
@@ -188,7 +95,7 @@ const ce = {
|
|
|
188
95
|
class: "fixed top-0 left-0 w-screen h-screen z-[9999]",
|
|
189
96
|
onClick: u
|
|
190
97
|
})) : h("", !0),
|
|
191
|
-
|
|
98
|
+
y(R, {
|
|
192
99
|
"enter-active-class": "transition ease-out duration-100",
|
|
193
100
|
"enter-from-class": "transform opacity-0 scale-95",
|
|
194
101
|
"enter-to-class": "transform opacity-100 scale-100",
|
|
@@ -201,7 +108,7 @@ const ce = {
|
|
|
201
108
|
key: 0,
|
|
202
109
|
ref_key: "menuRef",
|
|
203
110
|
ref: a,
|
|
204
|
-
class:
|
|
111
|
+
class: L(["menu", l.value]),
|
|
205
112
|
role: "menu",
|
|
206
113
|
"aria-orientation": "vertical",
|
|
207
114
|
tabindex: "-1",
|
|
@@ -220,7 +127,7 @@ const ce = {
|
|
|
220
127
|
class: "fixed top-0 left-0 w-screen h-screen z-10",
|
|
221
128
|
onClick: u
|
|
222
129
|
})) : h("", !0),
|
|
223
|
-
|
|
130
|
+
y(R, {
|
|
224
131
|
"enter-active-class": "transition ease-out duration-100",
|
|
225
132
|
"enter-from-class": "transform opacity-0 scale-95",
|
|
226
133
|
"enter-to-class": "transform opacity-100 scale-100",
|
|
@@ -231,7 +138,7 @@ const ce = {
|
|
|
231
138
|
default: T(() => [
|
|
232
139
|
c.value ? (t(), o("div", {
|
|
233
140
|
key: 0,
|
|
234
|
-
class:
|
|
141
|
+
class: L(["menu", z.value]),
|
|
235
142
|
role: "menu",
|
|
236
143
|
"aria-orientation": "vertical",
|
|
237
144
|
tabindex: "-1"
|
|
@@ -245,22 +152,22 @@ const ce = {
|
|
|
245
152
|
], 64))
|
|
246
153
|
], 40, de));
|
|
247
154
|
}
|
|
248
|
-
}),
|
|
155
|
+
}), D = /* @__PURE__ */ S({
|
|
249
156
|
__name: "OneDropdownItem",
|
|
250
|
-
props:
|
|
157
|
+
props: ne,
|
|
251
158
|
emits: ["click"],
|
|
252
|
-
setup(
|
|
253
|
-
const c = f, v =
|
|
159
|
+
setup(_, { emit: f }) {
|
|
160
|
+
const c = f, v = _, w = Z("OneDropdown"), a = () => {
|
|
254
161
|
w !== void 0 && w.onToggle(), c("click");
|
|
255
162
|
}, i = C(() => {
|
|
256
163
|
const n = [];
|
|
257
164
|
return v.variant === "secondary" ? n.push("text-secondary-content hover:bg-secondary-body-hover") : v.variant === "danger" ? n.push("text-danger-content hover:bg-danger-10") : v.variant === "warning" ? n.push("text-warning-content hover:bg-warning-10") : v.variant === "info" ? n.push("text-info-content hover:bg-info-10") : n.push("hover:bg-secondary-body-hover"), n;
|
|
258
165
|
});
|
|
259
166
|
return (n, u) => (t(), o("button", {
|
|
260
|
-
class:
|
|
167
|
+
class: L(["px-3 py-1.5 flex items-center space-x-3 w-full whitespace-nowrap", i.value]),
|
|
261
168
|
onClick: ee(a, ["prevent"])
|
|
262
169
|
}, [
|
|
263
|
-
n.icon ? (t(),
|
|
170
|
+
n.icon ? (t(), B(I(n.icon), {
|
|
264
171
|
key: 0,
|
|
265
172
|
class: "w-4 h-4"
|
|
266
173
|
})) : h("", !0),
|
|
@@ -268,7 +175,7 @@ const ce = {
|
|
|
268
175
|
], 2));
|
|
269
176
|
}
|
|
270
177
|
});
|
|
271
|
-
function ve(
|
|
178
|
+
function ve(_, f) {
|
|
272
179
|
return t(), o("svg", {
|
|
273
180
|
xmlns: "http://www.w3.org/2000/svg",
|
|
274
181
|
fill: "none",
|
|
@@ -310,9 +217,10 @@ const me = {
|
|
|
310
217
|
type: Function
|
|
311
218
|
}
|
|
312
219
|
}, xe = {
|
|
220
|
+
// template handles undefined (workspace?.name) — layouts pass it optionally
|
|
313
221
|
workspace: {
|
|
314
222
|
type: Object,
|
|
315
|
-
required: !
|
|
223
|
+
required: !1
|
|
316
224
|
},
|
|
317
225
|
workspaces: {
|
|
318
226
|
type: Array
|
|
@@ -334,7 +242,7 @@ const me = {
|
|
|
334
242
|
t: {
|
|
335
243
|
type: Function
|
|
336
244
|
}
|
|
337
|
-
},
|
|
245
|
+
}, _e = {
|
|
338
246
|
help: {
|
|
339
247
|
type: Object
|
|
340
248
|
},
|
|
@@ -345,11 +253,11 @@ const me = {
|
|
|
345
253
|
t: {
|
|
346
254
|
type: Function
|
|
347
255
|
}
|
|
348
|
-
}, ge = ["onClick"],
|
|
256
|
+
}, ge = ["onClick"], ye = { class: "flex flex-col items-center pt-5 pb-2 h-full" }, we = { class: "flex flex-col px-10 py-1 mt-2 text-center" }, ke = { class: "self-center text-base font-medium tracking-wide text-black" }, be = { class: "mt-1 text-xs leading-5 text-blue-500 font-light" }, Ce = { class: "text-left w-full mt-5 px-3" }, $e = { class: "-mb-2 flex-shrink-0 mt-auto pt-6 text-[8px] leading-3 text-gray-400" }, Dt = /* @__PURE__ */ S({
|
|
349
257
|
__name: "OneUserMenu",
|
|
350
258
|
props: me,
|
|
351
|
-
setup(
|
|
352
|
-
const f =
|
|
259
|
+
setup(_) {
|
|
260
|
+
const f = _, c = V(), v = C(() => f.t ?? c), w = C(() => {
|
|
353
261
|
var n;
|
|
354
262
|
return (n = f.menu) == null ? void 0 : n.map((u) => {
|
|
355
263
|
let m = { label: u.label };
|
|
@@ -367,15 +275,15 @@ const me = {
|
|
|
367
275
|
}, i = () => {
|
|
368
276
|
typeof f.onLogout == "function" && f.onLogout();
|
|
369
277
|
};
|
|
370
|
-
return (n, u) => (t(),
|
|
278
|
+
return (n, u) => (t(), B(fe, { stick: "right" }, {
|
|
371
279
|
button: T(({ onToggle: m, isExpanded: g }) => {
|
|
372
280
|
var p, x;
|
|
373
281
|
return [
|
|
374
282
|
e("button", {
|
|
375
283
|
onClick: m,
|
|
376
|
-
class:
|
|
284
|
+
class: L(["p-1 rounded-full hover:bg-secondary-10", [g ? "bg-secondary-25" : ""]])
|
|
377
285
|
}, [
|
|
378
|
-
|
|
286
|
+
y(O, {
|
|
379
287
|
text: ((p = n.user) == null ? void 0 : p.name) || "",
|
|
380
288
|
size: n.iconSize,
|
|
381
289
|
src: (x = n.user) == null ? void 0 : x.photo_url,
|
|
@@ -387,8 +295,8 @@ const me = {
|
|
|
387
295
|
menu: T(() => {
|
|
388
296
|
var m, g, p, x, b;
|
|
389
297
|
return [
|
|
390
|
-
e("div",
|
|
391
|
-
|
|
298
|
+
e("div", ye, [
|
|
299
|
+
y(O, {
|
|
392
300
|
text: ((m = n.user) == null ? void 0 : m.name) || "",
|
|
393
301
|
size: 80,
|
|
394
302
|
src: (g = n.user) == null ? void 0 : g.photo_url,
|
|
@@ -405,12 +313,12 @@ const me = {
|
|
|
405
313
|
class: "cursor-pointer justify-center px-8 py-2 mt-3 text-xs font-semibold tracking-wide leading-5 text-gray-600 border border-solid bg-neutral-100 border-slate-200 rounded-[50px] hover:bg-neutral-200"
|
|
406
314
|
}, d(v.value("ui.layout.account")), 1)) : h("", !0),
|
|
407
315
|
e("div", Ce, [
|
|
408
|
-
(t(!0), o($, null,
|
|
316
|
+
(t(!0), o($, null, M(w.value, (k) => (t(), B(D, te({
|
|
409
317
|
key: k.key
|
|
410
318
|
}, { ref_for: !0 }, k.args, {
|
|
411
319
|
onClick: k.click
|
|
412
320
|
}), null, 16, ["onClick"]))), 128)),
|
|
413
|
-
typeof n.onLogout == "function" ? (t(),
|
|
321
|
+
typeof n.onLogout == "function" ? (t(), B(D, {
|
|
414
322
|
key: 0,
|
|
415
323
|
icon: A(ve),
|
|
416
324
|
label: v.value("ui.layout.logout"),
|
|
@@ -430,7 +338,7 @@ const me = {
|
|
|
430
338
|
}));
|
|
431
339
|
}
|
|
432
340
|
});
|
|
433
|
-
function Ae(
|
|
341
|
+
function Ae(_, f) {
|
|
434
342
|
return t(), o("svg", {
|
|
435
343
|
xmlns: "http://www.w3.org/2000/svg",
|
|
436
344
|
fill: "none",
|
|
@@ -522,26 +430,26 @@ function Ae(y, f) {
|
|
|
522
430
|
})
|
|
523
431
|
]);
|
|
524
432
|
}
|
|
525
|
-
const
|
|
433
|
+
const Fe = ["data-opened"], Me = {
|
|
526
434
|
key: 1,
|
|
527
435
|
class: "absolute top-0 right-0 h-screen overflow-y-auto max-w-96 bg-white px-3 z-10"
|
|
528
|
-
},
|
|
436
|
+
}, Be = { class: "flex justify-between items-center pt-3 mb-3" }, ze = { class: "font-semibold text-xl px-3" }, je = { class: "grid" }, Le = { class: "rounded-lg m-3 border" }, Oe = {
|
|
529
437
|
class: "space-x-2 flex items-center px-3 py-2",
|
|
530
438
|
style: { width: "300px" }
|
|
531
|
-
},
|
|
439
|
+
}, Se = { class: "flex justify-between relative" }, Te = { class: "flex items-center justify-between w-full text-left text-sm font-semibold" }, Ee = { key: 0 }, He = { class: "text-xs font-semibold" }, Pe = { class: "px-3 py-2" }, Ie = { class: "text-secondary-content text-left pb-1 text-xs uppercase" }, Ve = { class: "overflow-auto max-h-full" }, Re = {
|
|
532
440
|
key: 0,
|
|
533
441
|
class: "space-y-2"
|
|
534
|
-
},
|
|
442
|
+
}, De = ["onClick"], Ne = { class: "flex" }, qe = { class: "border border-secondary-stroke rounded-2xl w-14 h-14 md:w-14 md:h-14 flex items-center justify-center" }, Ue = { class: "pl-2" }, We = { class: "text-sm mt-1 font-semibold" }, Ge = { class: "text9 mt-1" }, Je = {
|
|
535
443
|
key: 1,
|
|
536
444
|
class: "mt-2 w-full bg-[#FAFAFA] hover:bg-secondary-10 p-2 rounded-lg mb-5 text-xs hidden"
|
|
537
|
-
},
|
|
445
|
+
}, Ke = /* @__PURE__ */ S({
|
|
538
446
|
__name: "OneBrowserMenu",
|
|
539
447
|
props: xe,
|
|
540
448
|
emits: ["open", "close"],
|
|
541
|
-
setup(
|
|
542
|
-
const c = f, v =
|
|
449
|
+
setup(_, { emit: f }) {
|
|
450
|
+
const c = f, v = _, w = V(), a = C(() => v.t ?? w), i = F(!1), n = () => {
|
|
543
451
|
i.value = !i.value, i.value ? c("open") : c("close");
|
|
544
|
-
}, u =
|
|
452
|
+
}, u = F(!1);
|
|
545
453
|
C(() => u.value ? W : U);
|
|
546
454
|
const m = () => {
|
|
547
455
|
typeof v.onChange == "function" && v.onChange();
|
|
@@ -549,32 +457,32 @@ const Be = ["data-opened"], Fe = {
|
|
|
549
457
|
typeof v.onApp == "function" && v.onApp(p);
|
|
550
458
|
};
|
|
551
459
|
return (p, x) => {
|
|
552
|
-
var b, k,
|
|
460
|
+
var b, k, z;
|
|
553
461
|
return t(), o("div", { "data-opened": i.value }, [
|
|
554
462
|
e("button", {
|
|
555
463
|
onClick: n,
|
|
556
|
-
class:
|
|
464
|
+
class: L(["sm:p-1 sm:w-[44px] sm:h-[44px] w-8 h-8 rounded-md hover:bg-secondary-10 flex", { "bg-secondary-10": i.value }])
|
|
557
465
|
}, [
|
|
558
|
-
|
|
466
|
+
y(A(Ae), { class: "text-secondary-base w-full p-1 hover:text-blue-600 m-auto" })
|
|
559
467
|
], 2),
|
|
560
468
|
i.value ? (t(), o("div", {
|
|
561
469
|
key: 0,
|
|
562
470
|
class: "fixed top-0 left-0 w-screen h-screen z-10 bg-black/10",
|
|
563
471
|
onClick: n
|
|
564
472
|
})) : h("", !0),
|
|
565
|
-
i.value ? (t(), o("div",
|
|
566
|
-
e("div",
|
|
567
|
-
e("div",
|
|
568
|
-
|
|
473
|
+
i.value ? (t(), o("div", Me, [
|
|
474
|
+
e("div", Be, [
|
|
475
|
+
e("div", ze, d(a.value("ui.layout.workspaces")), 1),
|
|
476
|
+
y(A(q), {
|
|
569
477
|
class: "w-6 cursor-pointer",
|
|
570
478
|
onClick: n
|
|
571
479
|
})
|
|
572
480
|
]),
|
|
573
481
|
e("div", je, [
|
|
574
|
-
e("div",
|
|
575
|
-
e("div",
|
|
576
|
-
e("div",
|
|
577
|
-
|
|
482
|
+
e("div", Le, [
|
|
483
|
+
e("div", Oe, [
|
|
484
|
+
e("div", Se, [
|
|
485
|
+
y(O, {
|
|
578
486
|
text: ((b = p.workspace) == null ? void 0 : b.name) || "",
|
|
579
487
|
src: (k = p.workspace) == null ? void 0 : k.photo_url,
|
|
580
488
|
size: 44,
|
|
@@ -582,14 +490,14 @@ const Be = ["data-opened"], Fe = {
|
|
|
582
490
|
class: "mx-auto"
|
|
583
491
|
}, null, 8, ["text", "src"])
|
|
584
492
|
]),
|
|
585
|
-
e("div", Te, d((
|
|
493
|
+
e("div", Te, d((z = p.workspace) == null ? void 0 : z.name), 1)
|
|
586
494
|
]),
|
|
587
495
|
u.value ? (t(), o("div", Ee, [
|
|
588
|
-
(t(!0), o($, null,
|
|
496
|
+
(t(!0), o($, null, M(p.workspaces, (l) => (t(), o("div", {
|
|
589
497
|
key: l.name,
|
|
590
498
|
class: "flex items-center space-x-3 border-t px-5 py-2 hover:bg-secondary-10"
|
|
591
499
|
}, [
|
|
592
|
-
|
|
500
|
+
y(O, {
|
|
593
501
|
text: l.name,
|
|
594
502
|
src: l.photo_url,
|
|
595
503
|
size: 30,
|
|
@@ -607,17 +515,17 @@ const Be = ["data-opened"], Fe = {
|
|
|
607
515
|
])
|
|
608
516
|
]),
|
|
609
517
|
e("div", Pe, [
|
|
610
|
-
e("div",
|
|
611
|
-
e("div",
|
|
518
|
+
e("div", Ie, d(a.value("ui.layout.apps")), 1),
|
|
519
|
+
e("div", Ve, [
|
|
612
520
|
p.apps && p.apps.length ? (t(), o("div", Re, [
|
|
613
|
-
(t(!0), o($, null,
|
|
521
|
+
(t(!0), o($, null, M(p.apps, (l) => (t(), o("div", {
|
|
614
522
|
key: l.id,
|
|
615
523
|
onClick: (s) => g(l),
|
|
616
524
|
class: "flex justify-between items-center rounded-lg hover:bg-secondary-10 p-2 bg-[#FAFAFA] cursor-pointer"
|
|
617
525
|
}, [
|
|
618
|
-
e("div",
|
|
526
|
+
e("div", Ne, [
|
|
619
527
|
e("div", qe, [
|
|
620
|
-
|
|
528
|
+
y(O, {
|
|
621
529
|
text: l.name,
|
|
622
530
|
src: l.photo_url,
|
|
623
531
|
size: 44,
|
|
@@ -626,28 +534,28 @@ const Be = ["data-opened"], Fe = {
|
|
|
626
534
|
]),
|
|
627
535
|
e("div", Ue, [
|
|
628
536
|
e("p", We, d(l.name), 1),
|
|
629
|
-
e("p",
|
|
537
|
+
e("p", Ge, d(l == null ? void 0 : l.short), 1)
|
|
630
538
|
])
|
|
631
539
|
]),
|
|
632
540
|
e("div", null, [
|
|
633
|
-
|
|
541
|
+
y(ue, {
|
|
634
542
|
variant: "touch",
|
|
635
|
-
icon: A(
|
|
543
|
+
icon: A(ce),
|
|
636
544
|
onClick: (s) => g(l)
|
|
637
545
|
}, null, 8, ["icon", "onClick"])
|
|
638
546
|
])
|
|
639
|
-
], 8,
|
|
547
|
+
], 8, De))), 128))
|
|
640
548
|
])) : h("", !0),
|
|
641
|
-
p.apps && p.apps.length ? (t(), o("button",
|
|
549
|
+
p.apps && p.apps.length ? (t(), o("button", Je, d(a.value("ui.layout.view_all")), 1)) : h("", !0)
|
|
642
550
|
])
|
|
643
551
|
])
|
|
644
552
|
])) : h("", !0)
|
|
645
|
-
], 8,
|
|
553
|
+
], 8, Fe);
|
|
646
554
|
};
|
|
647
555
|
}
|
|
648
556
|
});
|
|
649
|
-
const Nt = /* @__PURE__ */
|
|
650
|
-
function
|
|
557
|
+
const Nt = /* @__PURE__ */ G(Ke, [["__scopeId", "data-v-3675784e"]]);
|
|
558
|
+
function N(_, f) {
|
|
651
559
|
return t(), o("svg", {
|
|
652
560
|
xmlns: "http://www.w3.org/2000/svg",
|
|
653
561
|
fill: "none",
|
|
@@ -663,7 +571,7 @@ function D(y, f) {
|
|
|
663
571
|
})
|
|
664
572
|
]);
|
|
665
573
|
}
|
|
666
|
-
function Qe(
|
|
574
|
+
function Qe(_, f) {
|
|
667
575
|
return t(), o("svg", {
|
|
668
576
|
xmlns: "http://www.w3.org/2000/svg",
|
|
669
577
|
fill: "none",
|
|
@@ -684,7 +592,7 @@ function Qe(y, f) {
|
|
|
684
592
|
})
|
|
685
593
|
]);
|
|
686
594
|
}
|
|
687
|
-
function Xe(
|
|
595
|
+
function Xe(_, f) {
|
|
688
596
|
return t(), o("svg", {
|
|
689
597
|
xmlns: "http://www.w3.org/2000/svg",
|
|
690
598
|
fill: "none",
|
|
@@ -700,7 +608,7 @@ function Xe(y, f) {
|
|
|
700
608
|
})
|
|
701
609
|
]);
|
|
702
610
|
}
|
|
703
|
-
function Ye(
|
|
611
|
+
function Ye(_, f) {
|
|
704
612
|
return t(), o("svg", {
|
|
705
613
|
xmlns: "http://www.w3.org/2000/svg",
|
|
706
614
|
fill: "none",
|
|
@@ -716,7 +624,7 @@ function Ye(y, f) {
|
|
|
716
624
|
})
|
|
717
625
|
]);
|
|
718
626
|
}
|
|
719
|
-
function Ze(
|
|
627
|
+
function Ze(_, f) {
|
|
720
628
|
return t(), o("svg", {
|
|
721
629
|
xmlns: "http://www.w3.org/2000/svg",
|
|
722
630
|
fill: "none",
|
|
@@ -741,18 +649,18 @@ const et = ["data-opened"], tt = {
|
|
|
741
649
|
}, lt = ["onClick"], rt = { class: "uppercase text-[8px]" }, it = { class: "overflow-y-auto grid rounded-xl" }, at = { class: "max-h-full bg-[#FAFAFA]" }, ct = {
|
|
742
650
|
key: 0,
|
|
743
651
|
class: "space-y-2"
|
|
744
|
-
}, ut = ["onClick"], dt = { class: "flex" }, pt = { class: "pl-2" }, ht = { class: "text-sm mt-1 font-semibold" }, ft = { class: "text-[10px] mt-1 text-[#979CA9]" }, vt = { class: "mt-auto" }, mt = { key: 0 }, xt = ["onClick"],
|
|
652
|
+
}, ut = ["onClick"], dt = { class: "flex" }, pt = { class: "pl-2" }, ht = { class: "text-sm mt-1 font-semibold" }, ft = { class: "text-[10px] mt-1 text-[#979CA9]" }, vt = { class: "mt-auto" }, mt = { key: 0 }, xt = ["onClick"], _t = { class: "flex items-center space-x-3" }, gt = { class: "h-16" }, yt = {
|
|
745
653
|
key: 0,
|
|
746
654
|
class: "bg-[#FAFAFA] rounded-lg p-3"
|
|
747
655
|
}, wt = { class: "flex justify-between" }, kt = ["onClick"], bt = {
|
|
748
656
|
key: 0,
|
|
749
657
|
class: "tooltip-text min-w-[70px]"
|
|
750
|
-
}, Ct = { class: "flex justify-between mb-4" }, $t = ["href"], At = { class: "flex flex-nowrap items-center w-max h-[24px]" },
|
|
658
|
+
}, Ct = { class: "flex justify-between mb-4" }, $t = ["href"], At = { class: "flex flex-nowrap items-center w-max h-[24px]" }, Ft = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full text-[#525B66]" }, Mt = { class: "py-[8px] pl-0 pr-[8px]" }, Bt = /* @__PURE__ */ S({
|
|
751
659
|
__name: "OneHelpMenu",
|
|
752
|
-
props:
|
|
660
|
+
props: _e,
|
|
753
661
|
emits: ["open", "close"],
|
|
754
|
-
setup(
|
|
755
|
-
const c = f, v =
|
|
662
|
+
setup(_, { emit: f }) {
|
|
663
|
+
const c = f, v = _, w = V(), a = C(() => v.t ?? w), i = C(() => {
|
|
756
664
|
const l = v.help ?? {};
|
|
757
665
|
return {
|
|
758
666
|
label: l.label ?? a.value("ui.help.title"),
|
|
@@ -765,7 +673,7 @@ const et = ["data-opened"], tt = {
|
|
|
765
673
|
{
|
|
766
674
|
name: a.value("ui.help.reference"),
|
|
767
675
|
link: v.helpSlug ? `https://oneb.app/help/${v.helpSlug}` : "https://oneb.app/help",
|
|
768
|
-
icon:
|
|
676
|
+
icon: N
|
|
769
677
|
},
|
|
770
678
|
{ name: a.value("ui.help.leave_request"), link: "https://oneb.app/support", icon: Ze }
|
|
771
679
|
],
|
|
@@ -777,9 +685,9 @@ const et = ["data-opened"], tt = {
|
|
|
777
685
|
{ name: a.value("ui.help.offer"), link: "https://oneb.app/offer" }
|
|
778
686
|
]
|
|
779
687
|
};
|
|
780
|
-
}), n =
|
|
688
|
+
}), n = F(!1), u = () => {
|
|
781
689
|
n.value = !n.value, n.value ? c("open") : c("close");
|
|
782
|
-
}, m = C(() => k.value ? W : U), g =
|
|
690
|
+
}, m = C(() => k.value ? W : U), g = F(3), p = C(() => {
|
|
783
691
|
var s;
|
|
784
692
|
const l = ((s = i.value.helpList) == null ? void 0 : s.length) || 0;
|
|
785
693
|
return g.value === l;
|
|
@@ -791,15 +699,15 @@ const et = ["data-opened"], tt = {
|
|
|
791
699
|
g.value = p.value ? 3 : l;
|
|
792
700
|
}, b = (l, s) => {
|
|
793
701
|
l && s && typeof s.openLink == "function" ? s.openLink(s) : l && window.open(l, "_blank");
|
|
794
|
-
}, k =
|
|
702
|
+
}, k = F(!1), z = () => {
|
|
795
703
|
k.value = !k.value;
|
|
796
704
|
};
|
|
797
705
|
return (l, s) => (t(), o("div", { "data-opened": n.value }, [
|
|
798
706
|
e("button", {
|
|
799
707
|
onClick: u,
|
|
800
|
-
class:
|
|
708
|
+
class: L(["sm:p-1 sm:w-[44px] sm:h-[44px] w-8 h-8 rounded-md hover:bg-secondary-10 flex", { "bg-secondary-10": n.value }])
|
|
801
709
|
}, [
|
|
802
|
-
|
|
710
|
+
y(A(N), { class: "text-secondary-base w-full p-1 hover:text-blue-600 m-auto" })
|
|
803
711
|
], 2),
|
|
804
712
|
n.value ? (t(), o("div", {
|
|
805
713
|
key: 0,
|
|
@@ -809,19 +717,19 @@ const et = ["data-opened"], tt = {
|
|
|
809
717
|
n.value ? (t(), o("div", tt, [
|
|
810
718
|
e("div", ot, [
|
|
811
719
|
e("div", nt, d(i.value.label), 1),
|
|
812
|
-
|
|
720
|
+
y(A(q), {
|
|
813
721
|
class: "w-6 cursor-pointer",
|
|
814
722
|
onClick: u
|
|
815
723
|
})
|
|
816
724
|
]),
|
|
817
725
|
i.value.helpButton ? (t(), o("div", st, [
|
|
818
|
-
(t(!0), o($, null,
|
|
726
|
+
(t(!0), o($, null, M(i.value.helpButton, (r) => (t(), o("button", {
|
|
819
727
|
key: r.name,
|
|
820
728
|
onClick: (j) => b(r.link, r),
|
|
821
729
|
class: "grid justify-center space-y-2 hover:bg-slate-100 p-3 rounded-xl hover:text-blue-500"
|
|
822
730
|
}, [
|
|
823
731
|
e("div", null, [
|
|
824
|
-
(t(),
|
|
732
|
+
(t(), B(I(r == null ? void 0 : r.icon), { class: "w-[16px] h-[16px] mx-auto" }))
|
|
825
733
|
]),
|
|
826
734
|
e("span", rt, d(r.name), 1)
|
|
827
735
|
], 8, lt))), 128))
|
|
@@ -829,7 +737,7 @@ const et = ["data-opened"], tt = {
|
|
|
829
737
|
e("div", it, [
|
|
830
738
|
e("div", at, [
|
|
831
739
|
i.value.helpList && i.value.helpList.length ? (t(), o("div", ct, [
|
|
832
|
-
(t(!0), o($, null,
|
|
740
|
+
(t(!0), o($, null, M(i.value.helpList, (r) => (t(), o("div", {
|
|
833
741
|
key: r.id,
|
|
834
742
|
onClick: (j) => b(r.link, r),
|
|
835
743
|
class: "flex justify-between items-center rounded-lg hover:bg-slate-100 p-2 cursor-pointer hover:text-[#4089E0]"
|
|
@@ -851,52 +759,52 @@ const et = ["data-opened"], tt = {
|
|
|
851
759
|
}, d(p.value ? i.value.buttNoMore : i.value.buttMore), 1)) : h("", !0),
|
|
852
760
|
e("div", vt, [
|
|
853
761
|
i.value.video ? (t(), o("div", mt, [
|
|
854
|
-
(t(!0), o($, null,
|
|
762
|
+
(t(!0), o($, null, M(i.value.video, (r) => (t(), o("button", {
|
|
855
763
|
key: r.id,
|
|
856
764
|
onClick: (j) => b(r.link, r),
|
|
857
765
|
class: "flex items-center space-x-3 mt-2 w-full bg-[#FAFAFA] hover:bg-slate-100 p-4 text-[#525B66] rounded-lg text-sm hover:text-[#4089E0] font-medium"
|
|
858
766
|
}, [
|
|
859
|
-
|
|
767
|
+
y(A(Qe), { class: "w-6 h-6" }),
|
|
860
768
|
e("span", null, d(r.name), 1)
|
|
861
769
|
], 8, xt))), 128))
|
|
862
770
|
])) : h("", !0),
|
|
863
771
|
i.value.socialList ? (t(), o("button", {
|
|
864
772
|
key: 1,
|
|
865
|
-
onClick:
|
|
773
|
+
onClick: z,
|
|
866
774
|
class: "flex items-center justify-between mt-2 w-full bg-[#FAFAFA] hover:bg-slate-100 p-4 text-[#525B66] rounded-lg text-sm hover:text-[#4089E0] font-medium"
|
|
867
775
|
}, [
|
|
868
|
-
e("div",
|
|
869
|
-
|
|
776
|
+
e("div", _t, [
|
|
777
|
+
y(A(Xe), { class: "w-6 h-6" }),
|
|
870
778
|
e("span", null, d(i.value.socialButt), 1)
|
|
871
779
|
]),
|
|
872
|
-
|
|
780
|
+
y(A(m), { class: "w-4 h-4" })
|
|
873
781
|
])) : h("", !0),
|
|
874
782
|
e("div", gt, [
|
|
875
|
-
k.value ? (t(), o("div",
|
|
783
|
+
k.value ? (t(), o("div", yt, [
|
|
876
784
|
e("div", wt, [
|
|
877
|
-
(t(!0), o($, null,
|
|
785
|
+
(t(!0), o($, null, M(i.value.socialList, (r) => (t(), o("button", {
|
|
878
786
|
key: r.id,
|
|
879
787
|
onClick: (j) => b(r.link, r),
|
|
880
788
|
class: "flex items-center space-x-2 p-2 rounded-lg hover:bg-slate-100 hover:text-blue-500 tooltip"
|
|
881
789
|
}, [
|
|
882
790
|
e("div", null, [
|
|
883
791
|
r.name ? (t(), o("div", bt, d(r.name), 1)) : h("", !0),
|
|
884
|
-
(t(),
|
|
792
|
+
(t(), B(I(r == null ? void 0 : r.icon), { class: "w-[24px] h-[24px] mx-auto" }))
|
|
885
793
|
])
|
|
886
794
|
], 8, kt))), 128))
|
|
887
795
|
])
|
|
888
796
|
])) : h("", !0)
|
|
889
797
|
]),
|
|
890
798
|
e("div", Ct, [
|
|
891
|
-
(t(!0), o($, null,
|
|
799
|
+
(t(!0), o($, null, M(i.value.termsOffer, (r) => (t(), o("a", {
|
|
892
800
|
key: r.name,
|
|
893
801
|
target: "_blank",
|
|
894
802
|
href: r.link,
|
|
895
803
|
class: "ml-2 flex items-center rounded-lg text-xs hover:underline font-extralight cursor-pointer"
|
|
896
804
|
}, [
|
|
897
805
|
e("div", At, [
|
|
898
|
-
e("div",
|
|
899
|
-
e("span",
|
|
806
|
+
e("div", Ft, [
|
|
807
|
+
e("span", Mt, d(r.name), 1)
|
|
900
808
|
])
|
|
901
809
|
])
|
|
902
810
|
], 8, $t))), 128))
|
|
@@ -906,17 +814,15 @@ const et = ["data-opened"], tt = {
|
|
|
906
814
|
], 8, et));
|
|
907
815
|
}
|
|
908
816
|
});
|
|
909
|
-
const
|
|
817
|
+
const qt = /* @__PURE__ */ G(Bt, [["__scopeId", "data-v-56eccaba"]]);
|
|
910
818
|
export {
|
|
911
819
|
Nt as O,
|
|
912
820
|
fe as _,
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
Xe as g,
|
|
920
|
-
Ye as h,
|
|
821
|
+
D as a,
|
|
822
|
+
Dt as b,
|
|
823
|
+
qt as c,
|
|
824
|
+
xe as d,
|
|
825
|
+
Xe as e,
|
|
826
|
+
Ye as f,
|
|
921
827
|
Ae as r
|
|
922
828
|
};
|