@opendesign-plus/components 0.0.1-rc.2 → 0.0.1-rc.3
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/components/{OCookieNoticeEl.vue.d.ts → OElCookieNotice.vue.d.ts} +3 -1
- package/dist/components.cjs.js +1 -1
- package/dist/components.css +1 -1
- package/dist/components.es.js +364 -360
- package/dist/components.umd.js +1 -1
- package/dist/index.d.ts +2 -2
- package/package.json +1 -1
- package/src/components/{OCookieNoticeEl.vue → OElCookieNotice.vue} +9 -0
- package/src/index.ts +3 -3
package/dist/components.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as R, computed as z, createElementBlock as
|
|
2
|
-
import { isBoolean as
|
|
3
|
-
import { useTheme as Ue, useScreen as
|
|
4
|
-
import { useVModel as
|
|
5
|
-
import { ElButton as
|
|
1
|
+
import { defineComponent as R, computed as z, createElementBlock as c, openBlock as l, normalizeStyle as le, unref as e, renderSlot as I, ref as E, normalizeClass as M, createBlock as x, toDisplayString as u, withCtx as v, Fragment as G, renderList as Y, createVNode as m, createElementVNode as a, createCommentVNode as w, createTextVNode as O, resolveComponent as we, h as $e, onMounted as Q, getCurrentInstance as Ce, inject as Ie, watch as j, Teleport as me, nextTick as pe, withDirectives as Oe, withKeys as xe, withModifiers as Se, vShow as Ae, reactive as ze, provide as Pe } from "vue";
|
|
2
|
+
import { isBoolean as ne, isString as se, isUndefined as fe, OCarousel as ie, OCarouselItem as ce, OFigure as re, OButton as q, OIcon as D, OIconClose as Ve, ODialog as Ee, OSwitch as ge, OInput as Be, ODivider as De, OConfigProvider as Me, isArray as Te, OLink as Ne } from "@opensig/opendesign";
|
|
3
|
+
import { useTheme as Ue, useScreen as W } from "@opendesign-plus/composables";
|
|
4
|
+
import { useVModel as ke, onClickOutside as He } from "@vueuse/core";
|
|
5
|
+
import { ElButton as J, ElIcon as Re, ElDialog as Ke, ElSwitch as Ge } from "element-plus";
|
|
6
6
|
import "element-plus/es/components/button/style/index";
|
|
7
7
|
import "element-plus/es/components/dialog/style/index";
|
|
8
8
|
import "element-plus/es/components/switch/style/index";
|
|
@@ -13,23 +13,23 @@ const Le = /* @__PURE__ */ R({
|
|
|
13
13
|
verticalPadding: { type: [Boolean, String, Array], default: void 0 }
|
|
14
14
|
},
|
|
15
15
|
setup(t) {
|
|
16
|
-
const o = Symbol("default"), s = t,
|
|
17
|
-
return (
|
|
16
|
+
const o = Symbol("default"), s = t, y = z(() => s.verticalPadding ? ne(s.verticalPadding) ? o : se(s.verticalPadding) ? s.verticalPadding : s.verticalPadding[0] : 0), d = z(() => s.verticalPadding ? ne(s.verticalPadding) ? o : se(s.verticalPadding) ? s.verticalPadding : fe(s.verticalPadding[1]) ? s.verticalPadding[0] : s.verticalPadding[1] : 0);
|
|
17
|
+
return (g, _) => (l(), c("div", {
|
|
18
18
|
class: "content-wrapper",
|
|
19
|
-
style:
|
|
20
|
-
"--content-wrapper-vertical-paddingTop":
|
|
19
|
+
style: le({
|
|
20
|
+
"--content-wrapper-vertical-paddingTop": y.value === e(o) ? void 0 : y.value,
|
|
21
21
|
"--content-wrapper-vertical-paddingBottom": d.value === e(o) ? void 0 : d.value
|
|
22
22
|
})
|
|
23
23
|
}, [
|
|
24
|
-
I(
|
|
24
|
+
I(g.$slots, "default", {}, void 0, !0)
|
|
25
25
|
], 4));
|
|
26
26
|
}
|
|
27
|
-
}),
|
|
27
|
+
}), L = (t, o) => {
|
|
28
28
|
const s = t.__vccOpts || t;
|
|
29
|
-
for (const [
|
|
30
|
-
s[
|
|
29
|
+
for (const [y, d] of o)
|
|
30
|
+
s[y] = d;
|
|
31
31
|
return s;
|
|
32
|
-
},
|
|
32
|
+
}, de = /* @__PURE__ */ L(Le, [["__scopeId", "data-v-a0f91aed"]]), je = { key: 0 }, Ye = { class: "banner-content" }, Je = ["src"], We = {
|
|
33
33
|
key: 1,
|
|
34
34
|
class: "banner-title"
|
|
35
35
|
}, Ze = {
|
|
@@ -46,37 +46,37 @@ const Le = /* @__PURE__ */ R({
|
|
|
46
46
|
contentJustifyCenter: !1
|
|
47
47
|
},
|
|
48
48
|
setup(t) {
|
|
49
|
-
const o = t, { isLight: s } = Ue("opendesignplus", document.domain || "localhost"), { isPhone:
|
|
49
|
+
const o = t, { isLight: s } = Ue("opendesignplus", document.domain || "localhost"), { isPhone: y } = W(), d = z(() => o.options), g = E(""), _ = (r) => {
|
|
50
50
|
setTimeout(() => {
|
|
51
|
-
|
|
51
|
+
g.value = d.value[r].bg_theme ?? "light";
|
|
52
52
|
}, 100);
|
|
53
|
-
},
|
|
54
|
-
|
|
53
|
+
}, n = (r, k) => {
|
|
54
|
+
r && !k && window.open(r);
|
|
55
55
|
};
|
|
56
|
-
return (
|
|
57
|
-
class:
|
|
56
|
+
return (r, k) => (l(), c("div", {
|
|
57
|
+
class: M(["home-banner", t.size])
|
|
58
58
|
}, [
|
|
59
|
-
t.size === "tiny" ? (l(),
|
|
59
|
+
t.size === "tiny" ? (l(), c("div", je, u(d.value[1].title), 1)) : e(y) ? (l(), x(e(ie), {
|
|
60
60
|
key: 2,
|
|
61
61
|
class: "banner-carousel",
|
|
62
62
|
effect: "gallery",
|
|
63
63
|
"indicator-click": "",
|
|
64
|
-
"data-o-theme":
|
|
64
|
+
"data-o-theme": g.value,
|
|
65
65
|
arrow: "never",
|
|
66
66
|
"auto-play": !0,
|
|
67
|
-
onBeforeChange:
|
|
67
|
+
onBeforeChange: _
|
|
68
68
|
}, {
|
|
69
69
|
default: v(() => [
|
|
70
|
-
(l(!0),
|
|
71
|
-
class:
|
|
70
|
+
(l(!0), c(G, null, Y(d.value, (i, b) => (l(), x(e(ce), {
|
|
71
|
+
class: M(["banner-item", `banner-item${b}`])
|
|
72
72
|
}, {
|
|
73
73
|
default: v(() => [
|
|
74
|
-
m(
|
|
74
|
+
m(de, { class: "banner-wrapper" }, {
|
|
75
75
|
default: v(() => [
|
|
76
|
-
m(e(
|
|
76
|
+
m(e(re), {
|
|
77
77
|
class: "banner-bg",
|
|
78
|
-
src:
|
|
79
|
-
onClick: (
|
|
78
|
+
src: i.bg,
|
|
79
|
+
onClick: (C) => n(i.href)
|
|
80
80
|
}, null, 8, ["src", "onClick"])
|
|
81
81
|
]),
|
|
82
82
|
_: 2
|
|
@@ -86,72 +86,72 @@ const Le = /* @__PURE__ */ R({
|
|
|
86
86
|
}, 1032, ["class"]))), 256))
|
|
87
87
|
]),
|
|
88
88
|
_: 1
|
|
89
|
-
}, 8, ["data-o-theme"])) : (l(),
|
|
89
|
+
}, 8, ["data-o-theme"])) : (l(), x(e(ie), {
|
|
90
90
|
key: 1,
|
|
91
91
|
class: "banner-carousel",
|
|
92
92
|
effect: "toggle",
|
|
93
93
|
"active-class": "current-slide",
|
|
94
94
|
"indicator-click": "",
|
|
95
95
|
"auto-play": !0,
|
|
96
|
-
"data-o-theme":
|
|
97
|
-
onBeforeChange:
|
|
96
|
+
"data-o-theme": g.value,
|
|
97
|
+
onBeforeChange: _
|
|
98
98
|
}, {
|
|
99
99
|
default: v(() => [
|
|
100
|
-
(l(!0),
|
|
101
|
-
key:
|
|
102
|
-
class:
|
|
100
|
+
(l(!0), c(G, null, Y(d.value, (i, b) => (l(), x(e(ce), {
|
|
101
|
+
key: b,
|
|
102
|
+
class: M(["banner-item", `banner-item${b}`])
|
|
103
103
|
}, {
|
|
104
104
|
default: v(() => [
|
|
105
|
-
m(e(
|
|
106
|
-
class:
|
|
107
|
-
"with-sticky-bg":
|
|
105
|
+
m(e(re), {
|
|
106
|
+
class: M(["banner-bg", {
|
|
107
|
+
"with-sticky-bg": i.withStickyBg,
|
|
108
108
|
"in-dark": !e(s),
|
|
109
|
-
"cursor-pointer":
|
|
109
|
+
"cursor-pointer": i.href && !i.btn
|
|
110
110
|
}]),
|
|
111
|
-
src:
|
|
112
|
-
style:
|
|
113
|
-
"--pad-offset":
|
|
111
|
+
src: i.bg,
|
|
112
|
+
style: le({
|
|
113
|
+
"--pad-offset": i.pad_offset
|
|
114
114
|
}),
|
|
115
|
-
onClick: (
|
|
115
|
+
onClick: (C) => n(i.href, i.btn)
|
|
116
116
|
}, {
|
|
117
117
|
default: v(() => [
|
|
118
|
-
m(
|
|
119
|
-
class:
|
|
118
|
+
m(de, {
|
|
119
|
+
class: M(["banner-wrapper", ["banner-wrapper", t.contentJustifyCenter ? "content-center" : ""]])
|
|
120
120
|
}, {
|
|
121
121
|
default: v(() => [
|
|
122
122
|
a("div", Ye, [
|
|
123
|
-
!e(
|
|
123
|
+
!e(y) && i.attach ? (l(), c("img", {
|
|
124
124
|
key: 0,
|
|
125
|
-
src:
|
|
125
|
+
src: i.attach,
|
|
126
126
|
class: "banner-attach"
|
|
127
|
-
}, null, 8, Je)) :
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
127
|
+
}, null, 8, Je)) : w("", !0),
|
|
128
|
+
i.title ? (l(), c("div", We, u(i.title), 1)) : w("", !0),
|
|
129
|
+
i.subtitle ? (l(), c("div", Ze, u(i.subtitle), 1)) : w("", !0),
|
|
130
|
+
i.bg_text ? (l(), c("div", {
|
|
131
131
|
key: 3,
|
|
132
132
|
class: "banner-text",
|
|
133
|
-
style:
|
|
134
|
-
backgroundImage: `url(${
|
|
135
|
-
"--pc-width":
|
|
136
|
-
"--pc-height":
|
|
137
|
-
"--pad-width":
|
|
138
|
-
"--pad-height":
|
|
133
|
+
style: le({
|
|
134
|
+
backgroundImage: `url(${i.bg_text})`,
|
|
135
|
+
"--pc-width": i.pc_text_width,
|
|
136
|
+
"--pc-height": i.pc_text_height,
|
|
137
|
+
"--pad-width": i.pad_text_width,
|
|
138
|
+
"--pad-height": i.pad_text_height
|
|
139
139
|
})
|
|
140
|
-
}, null, 4)) :
|
|
141
|
-
|
|
142
|
-
m(e(
|
|
143
|
-
href:
|
|
140
|
+
}, null, 4)) : w("", !0),
|
|
141
|
+
i.btn ? (l(), c("div", Fe, [
|
|
142
|
+
m(e(q), {
|
|
143
|
+
href: i.href,
|
|
144
144
|
target: "_blank",
|
|
145
145
|
variant: "solid",
|
|
146
146
|
color: "primary",
|
|
147
147
|
size: t.size
|
|
148
148
|
}, {
|
|
149
149
|
default: v(() => [
|
|
150
|
-
O(u(
|
|
150
|
+
O(u(i.btn), 1)
|
|
151
151
|
]),
|
|
152
152
|
_: 2
|
|
153
153
|
}, 1032, ["href", "size"])
|
|
154
|
-
])) :
|
|
154
|
+
])) : w("", !0)
|
|
155
155
|
])
|
|
156
156
|
]),
|
|
157
157
|
_: 2
|
|
@@ -167,12 +167,12 @@ const Le = /* @__PURE__ */ R({
|
|
|
167
167
|
}, 8, ["data-o-theme"]))
|
|
168
168
|
], 2));
|
|
169
169
|
}
|
|
170
|
-
}), Qe = /* @__PURE__ */
|
|
170
|
+
}), Qe = /* @__PURE__ */ L(qe, [["__scopeId", "data-v-38a33983"]]), Xe = (t) => {
|
|
171
171
|
const o = E(!1);
|
|
172
|
-
return
|
|
172
|
+
return Q(() => {
|
|
173
173
|
o.value = !0;
|
|
174
174
|
}), () => o.value && t.default ? t.default() : null;
|
|
175
|
-
},
|
|
175
|
+
}, ye = R({
|
|
176
176
|
setup(t, { slots: o }) {
|
|
177
177
|
const s = we("ClientOnly");
|
|
178
178
|
return s && typeof s != "string" ? () => $e(s, null, { default: () => o.default ? o.default() : null }) : Xe(o);
|
|
@@ -204,17 +204,17 @@ const Le = /* @__PURE__ */ R({
|
|
|
204
204
|
"cookie.analyticalCookieDetail": "We will use these cookies only with your consent. These cookies help us make improvements by collecting statistics such as the number of visits and traffic sources.",
|
|
205
205
|
"cookie.saveSetting": "Save Settings",
|
|
206
206
|
"cookie.setting": "Cookie settings"
|
|
207
|
-
},
|
|
207
|
+
}, _e = Symbol("provide-config-provider"), ot = E({
|
|
208
208
|
zh: et,
|
|
209
209
|
en: tt
|
|
210
210
|
});
|
|
211
|
-
function
|
|
212
|
-
const o = Ce() ? Ie(
|
|
211
|
+
function ae() {
|
|
212
|
+
const o = Ce() ? Ie(_e) : null, s = z(() => (o == null ? void 0 : o.locale) || "zh");
|
|
213
213
|
return {
|
|
214
214
|
locale: s,
|
|
215
|
-
t: (d, ...
|
|
216
|
-
const
|
|
217
|
-
return
|
|
215
|
+
t: (d, ...g) => {
|
|
216
|
+
const n = ot.value[s.value][d];
|
|
217
|
+
return g.length > 0 && se(n) ? n.replace(/{(\d+)}/g, (r, k) => g[k] ?? r) : (fe(n) && console.warn(`Cannot translate the value of keypath '${d}'`), n);
|
|
218
218
|
}
|
|
219
219
|
};
|
|
220
220
|
}
|
|
@@ -228,7 +228,7 @@ const lt = {
|
|
|
228
228
|
}, ct = ["href"], rt = { class: "cookie-title" }, dt = { class: "cookie-desc" }, ut = ["href"], ht = {
|
|
229
229
|
key: 0,
|
|
230
230
|
class: "cookie-notice-right"
|
|
231
|
-
}, vt = { class: "cookie-dlg-title" }, mt = { class: "cookie-dlg-content" }, pt = { class: "content-item" }, ft = { class: "item-header" }, gt = { class: "item-title" }, kt = { class: "item-extra" }, yt = { class: "item-detail" }, _t = { class: "content-item" }, bt = { class: "item-header" }, wt = { class: "item-title" }, $t = { class: "item-extra" }, Ct = { class: "item-detail" }, It = "0",
|
|
231
|
+
}, vt = { class: "cookie-dlg-title" }, mt = { class: "cookie-dlg-content" }, pt = { class: "content-item" }, ft = { class: "item-header" }, gt = { class: "item-title" }, kt = { class: "item-extra" }, yt = { class: "item-detail" }, _t = { class: "content-item" }, bt = { class: "item-header" }, wt = { class: "item-title" }, $t = { class: "item-extra" }, Ct = { class: "item-detail" }, It = "0", ue = "1", Ot = "2", Z = "3", xt = "agreed-cookiepolicy-zh", St = "agreed-cookiepolicy-en", At = /* @__PURE__ */ R({
|
|
232
232
|
__name: "OCookieNotice",
|
|
233
233
|
props: {
|
|
234
234
|
visible: { type: Boolean },
|
|
@@ -240,131 +240,131 @@ const lt = {
|
|
|
240
240
|
},
|
|
241
241
|
emits: ["update:visible"],
|
|
242
242
|
setup(t, { expose: o, emit: s }) {
|
|
243
|
-
const
|
|
244
|
-
const
|
|
245
|
-
return
|
|
246
|
-
},
|
|
247
|
-
const be = `; max-age=${
|
|
248
|
-
document.cookie = `${encodeURIComponent(
|
|
249
|
-
},
|
|
250
|
-
document.cookie = `${encodeURIComponent(
|
|
251
|
-
},
|
|
252
|
-
typeof
|
|
253
|
-
!
|
|
243
|
+
const y = t, d = s, { lePadV: g, leLaptop: _ } = W(), { locale: n, t: r } = ae(), k = z(() => n.value === "zh"), i = z(() => k.value ? xt : St), b = E(!1), C = ke(y, "visible", d, { defaultValue: !1 }), P = (p) => {
|
|
244
|
+
const f = document.cookie.split(";").find((B) => B.split("=")[0].trim() === encodeURIComponent(p));
|
|
245
|
+
return f ? decodeURIComponent(f.split("=")[1]) : null;
|
|
246
|
+
}, V = (p, f, B, ee) => {
|
|
247
|
+
const be = `; max-age=${B * 24 * 60 * 60}`;
|
|
248
|
+
document.cookie = `${encodeURIComponent(p)}=${encodeURIComponent(f)}${be}; path=/; domain=${ee}`;
|
|
249
|
+
}, T = (p, f) => {
|
|
250
|
+
document.cookie = `${encodeURIComponent(p)}=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; domain=${f}`;
|
|
251
|
+
}, S = (p) => {
|
|
252
|
+
typeof p == "boolean" ? C.value = p : C.value = !C.value, pe(() => {
|
|
253
|
+
!C.value && k.value && P(i.value) !== Z && V(i.value, Z, 180, location.hostname);
|
|
254
254
|
});
|
|
255
|
-
},
|
|
256
|
-
typeof
|
|
257
|
-
}, h = () =>
|
|
258
|
-
|
|
259
|
-
h() &&
|
|
260
|
-
}),
|
|
261
|
-
|
|
255
|
+
}, N = E(!1), H = (p) => {
|
|
256
|
+
typeof p == "boolean" ? N.value = p : N.value = !N.value;
|
|
257
|
+
}, h = () => k.value ? P(i.value) !== Z : (P(i.value) ?? "0") === It, U = () => k.value ? P(i.value) === Z : P(i.value) === ue;
|
|
258
|
+
Q(() => {
|
|
259
|
+
h() && S(!0);
|
|
260
|
+
}), j(n, () => {
|
|
261
|
+
S(h());
|
|
262
262
|
});
|
|
263
|
-
const
|
|
264
|
-
|
|
265
|
-
},
|
|
266
|
-
|
|
267
|
-
},
|
|
263
|
+
const $ = () => {
|
|
264
|
+
b.value = !0, T(i.value, location.hostname), V(i.value, ue, 180, location.hostname), S(!1);
|
|
265
|
+
}, K = () => {
|
|
266
|
+
b.value = !1, T(i.value, location.hostname), V(i.value, Ot, 180, location.hostname), S(!1);
|
|
267
|
+
}, X = z(() => [
|
|
268
268
|
{
|
|
269
269
|
id: "save",
|
|
270
270
|
color: "primary",
|
|
271
|
-
label:
|
|
271
|
+
label: r("cookie.saveSetting"),
|
|
272
272
|
variant: "outline",
|
|
273
273
|
size: "large",
|
|
274
274
|
round: "pill",
|
|
275
275
|
onClick: () => {
|
|
276
|
-
|
|
276
|
+
b.value ? $() : K(), H(!1);
|
|
277
277
|
}
|
|
278
278
|
},
|
|
279
279
|
{
|
|
280
280
|
id: "allowAll",
|
|
281
281
|
color: "primary",
|
|
282
|
-
label:
|
|
282
|
+
label: r("cookie.acceptAll"),
|
|
283
283
|
variant: "outline",
|
|
284
284
|
size: "large",
|
|
285
285
|
round: "pill",
|
|
286
286
|
onClick: () => {
|
|
287
|
-
|
|
287
|
+
b.value = !0, $(), H(!1);
|
|
288
288
|
}
|
|
289
289
|
}
|
|
290
|
-
]),
|
|
291
|
-
|
|
290
|
+
]), A = (p) => {
|
|
291
|
+
p && (b.value = U());
|
|
292
292
|
};
|
|
293
293
|
return o({
|
|
294
294
|
check() {
|
|
295
|
-
|
|
295
|
+
U() === C.value && S();
|
|
296
296
|
}
|
|
297
|
-
}), (
|
|
297
|
+
}), (p, f) => (l(), x(e(ye), null, {
|
|
298
298
|
default: v(() => [
|
|
299
|
-
(l(),
|
|
299
|
+
(l(), x(me, {
|
|
300
300
|
to: t.teleportTarget || "#app"
|
|
301
301
|
}, [
|
|
302
|
-
e(
|
|
302
|
+
e(C) ? (l(), c("div", lt, [
|
|
303
303
|
a("div", st, [
|
|
304
304
|
a("div", {
|
|
305
|
-
type: e(
|
|
306
|
-
class:
|
|
305
|
+
type: e(n),
|
|
306
|
+
class: M({ "cookie-notice-wrap-grid": t.enableGrid, "cookie-notice-wrap": !t.enableGrid })
|
|
307
307
|
}, [
|
|
308
308
|
a("div", nt, [
|
|
309
|
-
|
|
310
|
-
O(u(e(
|
|
309
|
+
k.value ? (l(), c("p", it, [
|
|
310
|
+
O(u(e(r)("cookie.desc")) + " ", 1),
|
|
311
311
|
a("a", {
|
|
312
312
|
href: t.aboutPathZh,
|
|
313
313
|
target: "_blank",
|
|
314
314
|
rel: "noopener noreferrer"
|
|
315
|
-
}, u(e(
|
|
316
|
-
])) : (l(),
|
|
317
|
-
a("p", rt, u(e(
|
|
315
|
+
}, u(e(r)("cookie.about")), 9, ct)
|
|
316
|
+
])) : (l(), c(G, { key: 1 }, [
|
|
317
|
+
a("p", rt, u(e(r)("cookie.title", [t.community])), 1),
|
|
318
318
|
a("p", dt, [
|
|
319
|
-
O(u(e(
|
|
319
|
+
O(u(e(r)("cookie.desc")) + " ", 1),
|
|
320
320
|
a("a", {
|
|
321
321
|
href: t.aboutPathEn,
|
|
322
322
|
target: "_blank",
|
|
323
323
|
rel: "noopener noreferrer"
|
|
324
|
-
}, u(e(
|
|
325
|
-
|
|
324
|
+
}, u(e(r)("cookie.about")), 9, ut),
|
|
325
|
+
f[4] || (f[4] = O(". ", -1))
|
|
326
326
|
])
|
|
327
327
|
], 64))
|
|
328
328
|
]),
|
|
329
|
-
|
|
330
|
-
m(e(
|
|
329
|
+
k.value ? w("", !0) : (l(), c("div", ht, [
|
|
330
|
+
m(e(q), {
|
|
331
331
|
round: "pill",
|
|
332
332
|
variant: "outline",
|
|
333
333
|
color: "primary",
|
|
334
|
-
onClick:
|
|
334
|
+
onClick: $
|
|
335
335
|
}, {
|
|
336
336
|
default: v(() => [
|
|
337
|
-
O(u(e(
|
|
337
|
+
O(u(e(r)("cookie.acceptAll")), 1)
|
|
338
338
|
]),
|
|
339
339
|
_: 1
|
|
340
340
|
}),
|
|
341
|
-
m(e(
|
|
341
|
+
m(e(q), {
|
|
342
342
|
round: "pill",
|
|
343
343
|
variant: "outline",
|
|
344
344
|
color: "primary",
|
|
345
|
-
onClick:
|
|
345
|
+
onClick: K
|
|
346
346
|
}, {
|
|
347
347
|
default: v(() => [
|
|
348
|
-
O(u(e(
|
|
348
|
+
O(u(e(r)("cookie.rejectAll")), 1)
|
|
349
349
|
]),
|
|
350
350
|
_: 1
|
|
351
351
|
}),
|
|
352
|
-
m(e(
|
|
352
|
+
m(e(q), {
|
|
353
353
|
round: "pill",
|
|
354
354
|
variant: "outline",
|
|
355
355
|
color: "primary",
|
|
356
|
-
onClick:
|
|
356
|
+
onClick: f[0] || (f[0] = (B) => H(!0))
|
|
357
357
|
}, {
|
|
358
358
|
default: v(() => [
|
|
359
|
-
O(u(e(
|
|
359
|
+
O(u(e(r)("cookie.manage")), 1)
|
|
360
360
|
]),
|
|
361
361
|
_: 1
|
|
362
362
|
})
|
|
363
363
|
])),
|
|
364
|
-
m(e(
|
|
364
|
+
m(e(D), {
|
|
365
365
|
class: "cookie-notice-close",
|
|
366
|
-
type: e(
|
|
367
|
-
onClick:
|
|
366
|
+
type: e(n),
|
|
367
|
+
onClick: f[1] || (f[1] = (B) => S(!1))
|
|
368
368
|
}, {
|
|
369
369
|
default: v(() => [
|
|
370
370
|
m(e(Ve))
|
|
@@ -374,49 +374,49 @@ const lt = {
|
|
|
374
374
|
], 10, at)
|
|
375
375
|
]),
|
|
376
376
|
m(e(Ee), {
|
|
377
|
-
visible:
|
|
378
|
-
"onUpdate:visible":
|
|
379
|
-
size: e(
|
|
380
|
-
"phone-half-full": e(
|
|
377
|
+
visible: N.value,
|
|
378
|
+
"onUpdate:visible": f[3] || (f[3] = (B) => N.value = B),
|
|
379
|
+
size: e(_) ? "medium" : "large",
|
|
380
|
+
"phone-half-full": e(g),
|
|
381
381
|
class: "cookie-dlg",
|
|
382
|
-
actions:
|
|
383
|
-
onChange:
|
|
382
|
+
actions: X.value,
|
|
383
|
+
onChange: A
|
|
384
384
|
}, {
|
|
385
385
|
header: v(() => [
|
|
386
|
-
a("span", vt, u(e(
|
|
386
|
+
a("span", vt, u(e(r)("cookie.manage")), 1)
|
|
387
387
|
]),
|
|
388
388
|
default: v(() => [
|
|
389
389
|
a("div", mt, [
|
|
390
390
|
a("div", pt, [
|
|
391
391
|
a("div", ft, [
|
|
392
|
-
a("span", gt, u(e(
|
|
393
|
-
a("span", kt, u(e(
|
|
392
|
+
a("span", gt, u(e(r)("cookie.necessaryCookie")), 1),
|
|
393
|
+
a("span", kt, u(e(r)("cookie.alwaysOn")), 1)
|
|
394
394
|
]),
|
|
395
|
-
a("div", yt, u(e(
|
|
395
|
+
a("div", yt, u(e(r)("cookie.necessaryCookieDetail")), 1)
|
|
396
396
|
]),
|
|
397
397
|
a("div", _t, [
|
|
398
398
|
a("div", bt, [
|
|
399
|
-
a("span", wt, u(e(
|
|
399
|
+
a("span", wt, u(e(r)("cookie.analyticalCookie")), 1),
|
|
400
400
|
a("span", $t, [
|
|
401
|
-
m(e(
|
|
402
|
-
modelValue:
|
|
403
|
-
"onUpdate:modelValue":
|
|
401
|
+
m(e(ge), {
|
|
402
|
+
modelValue: b.value,
|
|
403
|
+
"onUpdate:modelValue": f[2] || (f[2] = (B) => b.value = B)
|
|
404
404
|
}, null, 8, ["modelValue"])
|
|
405
405
|
])
|
|
406
406
|
]),
|
|
407
|
-
a("div", Ct, u(e(
|
|
407
|
+
a("div", Ct, u(e(r)("cookie.analyticalCookieDetail")), 1)
|
|
408
408
|
])
|
|
409
409
|
])
|
|
410
410
|
]),
|
|
411
411
|
_: 1
|
|
412
412
|
}, 8, ["visible", "size", "phone-half-full", "actions"])
|
|
413
|
-
])) :
|
|
413
|
+
])) : w("", !0)
|
|
414
414
|
], 8, ["to"]))
|
|
415
415
|
]),
|
|
416
416
|
_: 1
|
|
417
417
|
}));
|
|
418
418
|
}
|
|
419
|
-
}), zt = /* @__PURE__ */
|
|
419
|
+
}), zt = /* @__PURE__ */ L(At, [["__scopeId", "data-v-5ba95c2f"]]), Pt = {
|
|
420
420
|
key: 0,
|
|
421
421
|
class: "cookie-notice"
|
|
422
422
|
}, Vt = { class: "cookie-notice-content" }, Et = ["type"], Bt = { class: "cookie-notice-left" }, Dt = {
|
|
@@ -426,8 +426,8 @@ const lt = {
|
|
|
426
426
|
}, Mt = ["href"], Tt = { class: "cookie-title" }, Nt = { class: "cookie-desc" }, Ut = ["href"], Ht = {
|
|
427
427
|
key: 0,
|
|
428
428
|
class: "cookie-notice-right"
|
|
429
|
-
}, Rt = { class: "cookie-dlg-content" }, Kt = { class: "content-item" }, Gt = { class: "item-header" }, Lt = { class: "item-title" }, jt = { class: "item-extra" }, Yt = { class: "item-detail" }, Jt = { class: "content-item" }, Wt = { class: "item-header" }, Zt = { class: "item-title" }, Ft = { class: "item-extra" }, qt = { class: "item-detail" }, Qt = "0",
|
|
430
|
-
__name: "
|
|
429
|
+
}, Rt = { class: "cookie-dlg-content" }, Kt = { class: "content-item" }, Gt = { class: "item-header" }, Lt = { class: "item-title" }, jt = { class: "item-extra" }, Yt = { class: "item-detail" }, Jt = { class: "content-item" }, Wt = { class: "item-header" }, Zt = { class: "item-title" }, Ft = { class: "item-extra" }, qt = { class: "item-detail" }, Qt = "0", he = "1", Xt = "2", F = "3", eo = "agreed-cookiepolicy-zh", to = "agreed-cookiepolicy-en", oo = /* @__PURE__ */ R({
|
|
430
|
+
__name: "OElCookieNotice",
|
|
431
431
|
props: {
|
|
432
432
|
visible: { type: Boolean },
|
|
433
433
|
enableGrid: { type: Boolean },
|
|
@@ -437,108 +437,112 @@ const lt = {
|
|
|
437
437
|
teleportTarget: {}
|
|
438
438
|
},
|
|
439
439
|
emits: ["update:visible"],
|
|
440
|
-
setup(t, {
|
|
441
|
-
const
|
|
442
|
-
const
|
|
443
|
-
return
|
|
444
|
-
},
|
|
445
|
-
const
|
|
446
|
-
document.cookie = `${encodeURIComponent(
|
|
447
|
-
},
|
|
448
|
-
typeof
|
|
449
|
-
!
|
|
440
|
+
setup(t, { expose: o, emit: s }) {
|
|
441
|
+
const y = t, d = s, { lePadV: g } = W(), { locale: _, t: n } = ae(), r = z(() => _.value === "zh"), k = z(() => r.value ? eo : to), i = E(!1), b = ke(y, "visible", d, { defaultValue: !1 }), C = (A) => {
|
|
442
|
+
const p = document.cookie.split(";").find((f) => f.split("=")[0].trim() === encodeURIComponent(A));
|
|
443
|
+
return p ? decodeURIComponent(p.split("=")[1]) : null;
|
|
444
|
+
}, P = (A, p, f, B) => {
|
|
445
|
+
const ee = `; max-age=${f * 24 * 60 * 60}`;
|
|
446
|
+
document.cookie = `${encodeURIComponent(A)}=${encodeURIComponent(p)}${ee}; path=/; domain=${B}`;
|
|
447
|
+
}, V = (A) => {
|
|
448
|
+
typeof A == "boolean" ? b.value = A : b.value = !b.value, pe(() => {
|
|
449
|
+
!b.value && r.value && C(k.value) !== F && P(k.value, F, 180, location.hostname);
|
|
450
450
|
});
|
|
451
|
-
},
|
|
452
|
-
typeof
|
|
453
|
-
},
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
}),
|
|
457
|
-
|
|
451
|
+
}, T = E(!1), S = (A) => {
|
|
452
|
+
typeof A == "boolean" ? T.value = A : T.value = !T.value;
|
|
453
|
+
}, N = () => r.value ? C(k.value) !== F : (C(k.value) ?? "0") === Qt, H = () => r.value ? C(k.value) === F : C(k.value) === he;
|
|
454
|
+
Q(() => {
|
|
455
|
+
N() && V(!0);
|
|
456
|
+
}), j(_, () => {
|
|
457
|
+
V(N());
|
|
458
458
|
});
|
|
459
|
-
const
|
|
460
|
-
|
|
461
|
-
},
|
|
462
|
-
|
|
463
|
-
},
|
|
464
|
-
|
|
465
|
-
},
|
|
466
|
-
|
|
467
|
-
},
|
|
468
|
-
|
|
459
|
+
const h = () => {
|
|
460
|
+
i.value = !0, P(k.value, he, 180, location.hostname), V(!1);
|
|
461
|
+
}, U = () => {
|
|
462
|
+
i.value = !1, P(k.value, Xt, 180, location.hostname), V(!1);
|
|
463
|
+
}, $ = () => {
|
|
464
|
+
i.value ? h() : U(), S(!1);
|
|
465
|
+
}, K = () => {
|
|
466
|
+
i.value = !0, h(), S(!1);
|
|
467
|
+
}, X = () => {
|
|
468
|
+
i.value = H();
|
|
469
469
|
};
|
|
470
|
-
return (
|
|
470
|
+
return o({
|
|
471
|
+
check() {
|
|
472
|
+
H() === b.value && V();
|
|
473
|
+
}
|
|
474
|
+
}), (A, p) => (l(), x(e(ye), null, {
|
|
471
475
|
default: v(() => [
|
|
472
|
-
(l(),
|
|
476
|
+
(l(), x(me, {
|
|
473
477
|
to: t.teleportTarget || "#app"
|
|
474
478
|
}, [
|
|
475
|
-
e(
|
|
479
|
+
e(b) ? (l(), c("div", Pt, [
|
|
476
480
|
a("div", Vt, [
|
|
477
481
|
a("div", {
|
|
478
|
-
type: e(
|
|
479
|
-
class:
|
|
482
|
+
type: e(_),
|
|
483
|
+
class: M({ "cookie-notice-wrap-grid": t.enableGrid, "cookie-notice-wrap": !t.enableGrid })
|
|
480
484
|
}, [
|
|
481
485
|
a("div", Bt, [
|
|
482
|
-
r.value ? (l(),
|
|
483
|
-
O(u(e(
|
|
486
|
+
r.value ? (l(), c("p", Dt, [
|
|
487
|
+
O(u(e(n)("cookie.desc")) + " ", 1),
|
|
484
488
|
a("a", {
|
|
485
489
|
href: t.aboutPathZh,
|
|
486
490
|
target: "_blank",
|
|
487
491
|
rel: "noopener noreferrer"
|
|
488
|
-
}, u(e(
|
|
489
|
-
])) : (l(),
|
|
490
|
-
a("p", Tt, u(e(
|
|
492
|
+
}, u(e(n)("cookie.about")), 9, Mt)
|
|
493
|
+
])) : (l(), c(G, { key: 1 }, [
|
|
494
|
+
a("p", Tt, u(e(n)("cookie.title", [t.community])), 1),
|
|
491
495
|
a("p", Nt, [
|
|
492
|
-
O(u(e(
|
|
496
|
+
O(u(e(n)("cookie.desc")) + " ", 1),
|
|
493
497
|
a("a", {
|
|
494
498
|
href: t.aboutPathEn,
|
|
495
499
|
target: "_blank",
|
|
496
500
|
rel: "noopener noreferrer"
|
|
497
|
-
}, u(e(
|
|
498
|
-
|
|
501
|
+
}, u(e(n)("cookie.about")), 9, Ut),
|
|
502
|
+
p[4] || (p[4] = O(". ", -1))
|
|
499
503
|
])
|
|
500
504
|
], 64))
|
|
501
505
|
]),
|
|
502
|
-
r.value ?
|
|
503
|
-
m(e(
|
|
506
|
+
r.value ? w("", !0) : (l(), c("div", Ht, [
|
|
507
|
+
m(e(J), {
|
|
504
508
|
round: "",
|
|
505
509
|
type: "primary",
|
|
506
|
-
onClick:
|
|
510
|
+
onClick: h
|
|
507
511
|
}, {
|
|
508
512
|
default: v(() => [
|
|
509
|
-
O(u(e(
|
|
513
|
+
O(u(e(n)("cookie.acceptAll")), 1)
|
|
510
514
|
]),
|
|
511
515
|
_: 1
|
|
512
516
|
}),
|
|
513
|
-
m(e(
|
|
517
|
+
m(e(J), {
|
|
514
518
|
round: "",
|
|
515
519
|
type: "primary",
|
|
516
|
-
onClick:
|
|
520
|
+
onClick: U
|
|
517
521
|
}, {
|
|
518
522
|
default: v(() => [
|
|
519
|
-
O(u(e(
|
|
523
|
+
O(u(e(n)("cookie.rejectAll")), 1)
|
|
520
524
|
]),
|
|
521
525
|
_: 1
|
|
522
526
|
}),
|
|
523
|
-
m(e(
|
|
527
|
+
m(e(J), {
|
|
524
528
|
round: "",
|
|
525
529
|
type: "primary",
|
|
526
|
-
onClick:
|
|
530
|
+
onClick: p[0] || (p[0] = (f) => S(!0))
|
|
527
531
|
}, {
|
|
528
532
|
default: v(() => [
|
|
529
|
-
O(u(e(
|
|
533
|
+
O(u(e(n)("cookie.manage")), 1)
|
|
530
534
|
]),
|
|
531
535
|
_: 1
|
|
532
536
|
})
|
|
533
537
|
])),
|
|
534
538
|
m(e(Re), {
|
|
535
539
|
class: "cookie-notice-close",
|
|
536
|
-
type: e(
|
|
537
|
-
onClick:
|
|
540
|
+
type: e(_),
|
|
541
|
+
onClick: p[1] || (p[1] = (f) => V(!1))
|
|
538
542
|
}, {
|
|
539
543
|
default: v(() => [
|
|
540
|
-
I(
|
|
541
|
-
|
|
544
|
+
I(A.$slots, "close-icon", {}, () => [
|
|
545
|
+
p[5] || (p[5] = a("svg", {
|
|
542
546
|
xmlns: "http://www.w3.org/2000/svg",
|
|
543
547
|
viewBox: "0 0 1024 1024"
|
|
544
548
|
}, [
|
|
@@ -554,32 +558,32 @@ const lt = {
|
|
|
554
558
|
], 10, Et)
|
|
555
559
|
]),
|
|
556
560
|
m(e(Ke), {
|
|
557
|
-
modelValue:
|
|
558
|
-
"onUpdate:modelValue":
|
|
559
|
-
width: e(
|
|
560
|
-
title: e(
|
|
561
|
+
modelValue: T.value,
|
|
562
|
+
"onUpdate:modelValue": p[3] || (p[3] = (f) => T.value = f),
|
|
563
|
+
width: e(g) ? "90%" : "50%",
|
|
564
|
+
title: e(n)("cookie.manage"),
|
|
561
565
|
"destroy-on-close": "",
|
|
562
|
-
onOpen:
|
|
566
|
+
onOpen: X
|
|
563
567
|
}, {
|
|
564
568
|
footer: v(() => [
|
|
565
|
-
m(e(
|
|
569
|
+
m(e(J), {
|
|
566
570
|
round: "",
|
|
567
571
|
type: "primary",
|
|
568
|
-
onClick:
|
|
572
|
+
onClick: $,
|
|
569
573
|
style: { "margin-right": "16px" }
|
|
570
574
|
}, {
|
|
571
575
|
default: v(() => [
|
|
572
|
-
O(u(e(
|
|
576
|
+
O(u(e(n)("cookie.saveSetting")), 1)
|
|
573
577
|
]),
|
|
574
578
|
_: 1
|
|
575
579
|
}),
|
|
576
|
-
m(e(
|
|
580
|
+
m(e(J), {
|
|
577
581
|
round: "",
|
|
578
582
|
type: "primary",
|
|
579
|
-
onClick:
|
|
583
|
+
onClick: K
|
|
580
584
|
}, {
|
|
581
585
|
default: v(() => [
|
|
582
|
-
O(u(e(
|
|
586
|
+
O(u(e(n)("cookie.acceptAll")), 1)
|
|
583
587
|
]),
|
|
584
588
|
_: 1
|
|
585
589
|
})
|
|
@@ -588,34 +592,34 @@ const lt = {
|
|
|
588
592
|
a("div", Rt, [
|
|
589
593
|
a("div", Kt, [
|
|
590
594
|
a("div", Gt, [
|
|
591
|
-
a("span", Lt, u(e(
|
|
592
|
-
a("span", jt, u(e(
|
|
595
|
+
a("span", Lt, u(e(n)("cookie.necessaryCookie")), 1),
|
|
596
|
+
a("span", jt, u(e(n)("cookie.alwaysOn")), 1)
|
|
593
597
|
]),
|
|
594
|
-
a("div", Yt, u(e(
|
|
598
|
+
a("div", Yt, u(e(n)("cookie.necessaryCookieDetail")), 1)
|
|
595
599
|
]),
|
|
596
600
|
a("div", Jt, [
|
|
597
601
|
a("div", Wt, [
|
|
598
|
-
a("span", Zt, u(e(
|
|
602
|
+
a("span", Zt, u(e(n)("cookie.analyticalCookie")), 1),
|
|
599
603
|
a("span", Ft, [
|
|
600
604
|
m(e(Ge), {
|
|
601
|
-
modelValue:
|
|
602
|
-
"onUpdate:modelValue":
|
|
605
|
+
modelValue: i.value,
|
|
606
|
+
"onUpdate:modelValue": p[2] || (p[2] = (f) => i.value = f)
|
|
603
607
|
}, null, 8, ["modelValue"])
|
|
604
608
|
])
|
|
605
609
|
]),
|
|
606
|
-
a("div", qt, u(e(
|
|
610
|
+
a("div", qt, u(e(n)("cookie.analyticalCookieDetail")), 1)
|
|
607
611
|
])
|
|
608
612
|
])
|
|
609
613
|
]),
|
|
610
614
|
_: 1
|
|
611
615
|
}, 8, ["modelValue", "width", "title"])
|
|
612
|
-
])) :
|
|
616
|
+
])) : w("", !0)
|
|
613
617
|
], 8, ["to"]))
|
|
614
618
|
]),
|
|
615
619
|
_: 3
|
|
616
620
|
}));
|
|
617
621
|
}
|
|
618
|
-
}), lo = /* @__PURE__ */
|
|
622
|
+
}), lo = /* @__PURE__ */ L(oo, [["__scopeId", "data-v-3840fed3"]]), so = {
|
|
619
623
|
version: "1.1",
|
|
620
624
|
xmlns: "http://www.w3.org/2000/svg",
|
|
621
625
|
width: "24",
|
|
@@ -623,7 +627,7 @@ const lt = {
|
|
|
623
627
|
viewBox: "0 0 24 24"
|
|
624
628
|
};
|
|
625
629
|
function ao(t, o) {
|
|
626
|
-
return l(),
|
|
630
|
+
return l(), c("svg", so, [...o[0] || (o[0] = [
|
|
627
631
|
a("path", {
|
|
628
632
|
fill: "currentColor",
|
|
629
633
|
d: "M18.528 5.472c0.246 0.246 0.271 0.63 0.074 0.903l-0.074 0.087-5.54 5.538 0.006 0.006-0.989 0.989-0.006-0.006-5.538 5.54c-0.273 0.273-0.717 0.273-0.99 0-0.246-0.246-0.271-0.63-0.074-0.903l0.074-0.087 5.538-5.539-5.538-5.538-0.074-0.087c-0.197-0.274-0.172-0.657 0.074-0.903s0.63-0.271 0.903-0.074l0.087 0.074 5.538 5.539 5.539-5.539c0.273-0.273 0.717-0.273 0.99 0zM14.551 13.561l3.978 3.978 0.074 0.087c0.197 0.274 0.172 0.657-0.074 0.903s-0.63 0.271-0.903 0.074l-0.087-0.074-3.978-3.978c-0.273-0.273-0.273-0.717 0-0.99v0c0.273-0.273 0.717-0.273 0.99 0z"
|
|
@@ -638,7 +642,7 @@ const no = { name: "components-icon-close", render: ao }, io = {
|
|
|
638
642
|
viewBox: "0 0 32 32"
|
|
639
643
|
};
|
|
640
644
|
function co(t, o) {
|
|
641
|
-
return l(),
|
|
645
|
+
return l(), c("svg", io, [...o[0] || (o[0] = [
|
|
642
646
|
a("path", {
|
|
643
647
|
opacity: "0.8",
|
|
644
648
|
fill: "currentColor",
|
|
@@ -651,7 +655,7 @@ function co(t, o) {
|
|
|
651
655
|
}, null, -1)
|
|
652
656
|
])]);
|
|
653
657
|
}
|
|
654
|
-
const
|
|
658
|
+
const ve = { name: "components-icon-header-search", render: co }, ro = {
|
|
655
659
|
version: "1.1",
|
|
656
660
|
xmlns: "http://www.w3.org/2000/svg",
|
|
657
661
|
width: "32",
|
|
@@ -659,7 +663,7 @@ const he = { name: "components-icon-header-search", render: co }, ro = {
|
|
|
659
663
|
viewBox: "0 0 32 32"
|
|
660
664
|
};
|
|
661
665
|
function uo(t, o) {
|
|
662
|
-
return l(),
|
|
666
|
+
return l(), c("svg", ro, [...o[0] || (o[0] = [
|
|
663
667
|
a("path", {
|
|
664
668
|
fill: "currentColor",
|
|
665
669
|
d: "M10.858 22.41c-0.349 0.349-0.915 0.349-1.263 0-0.314-0.314-0.345-0.804-0.094-1.153l0.094-0.111 5.146-5.15-5.177-5.178c-0.274-0.305-0.3-0.755-0.077-1.087l0.111-0.135c0.347-0.347 0.91-0.347 1.257 0l5.142 5.143 5.15-5.146c0.349-0.349 0.915-0.349 1.263 0 0.314 0.314 0.345 0.804 0.094 1.153l-0.094 0.111-11.552 11.552zM17.89 16.634l4.551 4.552c0.313 0.349 0.302 0.886-0.034 1.222-0.347 0.347-0.91 0.347-1.257 0l-4.516-4.518 1.256-1.256z"
|
|
@@ -674,7 +678,7 @@ const ho = { name: "components-icon-header-delete", render: uo }, vo = {
|
|
|
674
678
|
viewBox: "0 0 24 24"
|
|
675
679
|
};
|
|
676
680
|
function mo(t, o) {
|
|
677
|
-
return l(),
|
|
681
|
+
return l(), c("svg", vo, [...o[0] || (o[0] = [
|
|
678
682
|
a("path", {
|
|
679
683
|
fill: "currentColor",
|
|
680
684
|
d: "M19.154 5.295c0.387 0 0.7 0.313 0.7 0.7 0 0.354-0.263 0.647-0.605 0.694l-0.095 0.006-12.201-0.001 0.001 12.413c0 0.17 0.12 0.311 0.28 0.344l0.071 0.007h9.39c0.17 0 0.311-0.12 0.344-0.28l0.007-0.071v-10.47c0-0.387 0.313-0.7 0.7-0.7 0.354 0 0.647 0.263 0.694 0.605l0.006 0.095v10.47c0 0.919-0.708 1.672-1.608 1.745l-0.144 0.006h-9.39c-0.919 0-1.672-0.708-1.745-1.608l-0.006-0.144-0.001-12.413-0.707 0.001c-0.387 0-0.7-0.313-0.7-0.7 0-0.354 0.263-0.647 0.605-0.694l0.095-0.006h14.308zM10.011 9.744c0.354 0 0.647 0.263 0.694 0.605l0.006 0.095v5.68c0 0.387-0.313 0.7-0.7 0.7-0.354 0-0.647-0.263-0.694-0.605l-0.006-0.095v-5.68c0-0.387 0.313-0.7 0.7-0.7zM13.953 9.744c0.354 0 0.647 0.263 0.694 0.605l0.006 0.095v5.68c0 0.387-0.313 0.7-0.7 0.7-0.354 0-0.647-0.263-0.694-0.605l-0.006-0.095v-5.68c0-0.387 0.313-0.7 0.7-0.7zM13.652 3.189c0.387 0 0.7 0.313 0.7 0.7 0 0.354-0.263 0.647-0.605 0.694l-0.095 0.006h-3.972c-0.387 0-0.7-0.313-0.7-0.7 0-0.354 0.263-0.647 0.605-0.694l0.095-0.006h3.972z"
|
|
@@ -689,7 +693,7 @@ const po = { name: "components-icon-delete", render: mo }, fo = {
|
|
|
689
693
|
viewBox: "0 0 36 32"
|
|
690
694
|
};
|
|
691
695
|
function go(t, o) {
|
|
692
|
-
return l(),
|
|
696
|
+
return l(), c("svg", fo, [...o[0] || (o[0] = [
|
|
693
697
|
a("path", {
|
|
694
698
|
fill: "currentColor",
|
|
695
699
|
d: "M5.886 19.111l10.672 10.677c0.46 0.524 0.44 1.322-0.060 1.822s-1.298 0.52-1.822 0.060l-0.064-0.060-12.498-12.498h3.772zM14.613 0.391c0.521-0.521 1.365-0.521 1.886 0 0.5 0.5 0.52 1.298 0.060 1.822l-0.060 0.064-12.391 12.391h29.67c0.71 0 1.291 0.555 1.331 1.255l0.002 0.078c0 0.71-0.555 1.291-1.255 1.331l-0.078 0.002h-31.816c-0.472 0-0.924-0.187-1.257-0.521-0.671-0.671-0.694-1.745-0.067-2.443l0.067-0.071 13.908-13.908z"
|
|
@@ -727,92 +731,92 @@ const ko = { name: "components-icon-header-back", render: go }, yo = { class: "o
|
|
|
727
731
|
},
|
|
728
732
|
emits: ["update:modelValue", "update:historyItems", "clear", "search", "delete-history", "delete-history-item"],
|
|
729
733
|
setup(t, { emit: o }) {
|
|
730
|
-
const { lePadV: s } =
|
|
731
|
-
|
|
734
|
+
const { lePadV: s } = W(), { t: y } = ae(), d = t, g = o, _ = E(d.modelValue), n = E(d.historyItems), r = E(!1), k = E(), i = z(() => !s.value && r.value || s.value && _.value);
|
|
735
|
+
j(
|
|
732
736
|
() => d.modelValue,
|
|
733
737
|
(h) => {
|
|
734
|
-
|
|
738
|
+
_.value !== h && (_.value = h);
|
|
735
739
|
}
|
|
736
|
-
),
|
|
737
|
-
() =>
|
|
740
|
+
), j(
|
|
741
|
+
() => _.value,
|
|
738
742
|
(h) => {
|
|
739
|
-
|
|
743
|
+
g("update:modelValue", h);
|
|
740
744
|
}
|
|
741
|
-
),
|
|
745
|
+
), j(
|
|
742
746
|
() => d.historyItems,
|
|
743
747
|
(h) => {
|
|
744
|
-
|
|
748
|
+
n.value !== h && (n.value = h);
|
|
745
749
|
}
|
|
746
|
-
),
|
|
747
|
-
() =>
|
|
750
|
+
), j(
|
|
751
|
+
() => n.value,
|
|
748
752
|
(h) => {
|
|
749
|
-
|
|
753
|
+
g("update:historyItems", h);
|
|
750
754
|
}
|
|
751
|
-
),
|
|
755
|
+
), Q(() => {
|
|
752
756
|
if (d.storeHistory && d.storageKey)
|
|
753
757
|
try {
|
|
754
758
|
const h = JSON.parse(localStorage.getItem(d.storageKey) || "[]");
|
|
755
|
-
Array.isArray(h) && h.length && (
|
|
759
|
+
Array.isArray(h) && h.length && (n.value = Array.from(/* @__PURE__ */ new Set([...n.value, ...h])));
|
|
756
760
|
} catch {
|
|
757
761
|
}
|
|
758
762
|
});
|
|
759
|
-
const
|
|
760
|
-
|
|
761
|
-
},
|
|
762
|
-
const h =
|
|
763
|
-
h && (
|
|
764
|
-
},
|
|
765
|
-
|
|
766
|
-
},
|
|
767
|
-
const h = [...
|
|
768
|
-
|
|
769
|
-
},
|
|
770
|
-
|
|
771
|
-
},
|
|
772
|
-
|
|
773
|
-
},
|
|
774
|
-
|
|
775
|
-
},
|
|
776
|
-
return He(
|
|
763
|
+
const b = () => {
|
|
764
|
+
r.value = !0;
|
|
765
|
+
}, C = () => {
|
|
766
|
+
const h = _.value.trim();
|
|
767
|
+
h && (r.value = !1, n.value.unshift(h), n.value = Array.from(new Set(n.value)), n.value.length > d.maxHistoryCount && n.value.pop(), d.storeHistory && d.storeHistory && localStorage.setItem(d.storageKey, JSON.stringify(n.value)), g("search", h), d.searchUrl && window.open(d.searchUrl + h, d.searchUrlOpenBlank ? "_blank" : "_self", "noopener noreferrer"));
|
|
768
|
+
}, P = () => {
|
|
769
|
+
_.value = "", g("clear"), s.value || (r.value = !1);
|
|
770
|
+
}, V = () => {
|
|
771
|
+
const h = [...n.value];
|
|
772
|
+
n.value = [], d.storeHistory && d.storeHistory && localStorage.removeItem(d.storageKey), g("delete-history", h);
|
|
773
|
+
}, T = (h) => {
|
|
774
|
+
n.value = n.value.filter((U) => U !== h), d.storeHistory && d.storeHistory && (n.value.length ? localStorage.setItem(d.storageKey, JSON.stringify(n.value)) : localStorage.removeItem(d.storageKey)), g("delete-history-item", h);
|
|
775
|
+
}, S = (h) => {
|
|
776
|
+
_.value = h, C();
|
|
777
|
+
}, N = () => {
|
|
778
|
+
_.value = "", r.value = !1;
|
|
779
|
+
}, H = E();
|
|
780
|
+
return He(H, P), (h, U) => (l(), c("div", yo, [
|
|
777
781
|
a("div", {
|
|
778
782
|
ref_key: "posWrapper",
|
|
779
|
-
ref:
|
|
780
|
-
class:
|
|
783
|
+
ref: H,
|
|
784
|
+
class: M({
|
|
781
785
|
"o-header-search-input-pc-wrapper": !e(s),
|
|
782
786
|
"o-header-search-input-pc-wrapper-left": !e(s) && t.expandDirection === "left",
|
|
783
787
|
"o-header-search-input-pc-wrapper-right": !e(s) && t.expandDirection === "right",
|
|
784
788
|
"o-header-search-input-mobile-wrapper": e(s),
|
|
785
|
-
focus:
|
|
789
|
+
focus: r.value
|
|
786
790
|
})
|
|
787
791
|
}, [
|
|
788
792
|
a("div", {
|
|
789
|
-
class:
|
|
793
|
+
class: M(["o-header-search-input-wrapper", { focus: r.value }])
|
|
790
794
|
}, [
|
|
791
|
-
e(s) &&
|
|
795
|
+
e(s) && r.value ? (l(), x(e(D), {
|
|
792
796
|
key: 0,
|
|
793
797
|
class: "o-header-search-icon",
|
|
794
|
-
onClick:
|
|
798
|
+
onClick: N
|
|
795
799
|
}, {
|
|
796
800
|
default: v(() => [
|
|
797
801
|
m(e(ko))
|
|
798
802
|
]),
|
|
799
803
|
_: 1
|
|
800
|
-
})) :
|
|
804
|
+
})) : w("", !0),
|
|
801
805
|
m(e(Be), {
|
|
802
806
|
ref_key: "inputRef",
|
|
803
|
-
ref:
|
|
804
|
-
modelValue:
|
|
805
|
-
"onUpdate:modelValue":
|
|
807
|
+
ref: k,
|
|
808
|
+
modelValue: _.value,
|
|
809
|
+
"onUpdate:modelValue": U[0] || (U[0] = ($) => _.value = $),
|
|
806
810
|
class: "o-header-search-input",
|
|
807
|
-
placeholder:
|
|
808
|
-
onFocus:
|
|
809
|
-
onKeyup: xe(
|
|
811
|
+
placeholder: r.value ? t.expandedPlaceholder ?? e(y)("search.expandedPlaceholder") : t.placeholder ?? e(y)("search.placeholder"),
|
|
812
|
+
onFocus: b,
|
|
813
|
+
onKeyup: xe(C, ["enter"])
|
|
810
814
|
}, {
|
|
811
815
|
prefix: v(() => [
|
|
812
816
|
I(h.$slots, "input-prefix", {}, () => [
|
|
813
|
-
m(e(
|
|
817
|
+
m(e(D), { class: "o-header-search-icon" }, {
|
|
814
818
|
default: v(() => [
|
|
815
|
-
m(e(
|
|
819
|
+
m(e(ve))
|
|
816
820
|
]),
|
|
817
821
|
_: 1
|
|
818
822
|
})
|
|
@@ -820,48 +824,48 @@ const ko = { name: "components-icon-header-back", render: go }, yo = { class: "o
|
|
|
820
824
|
]),
|
|
821
825
|
suffix: v(() => [
|
|
822
826
|
I(h.$slots, "input-suffix", {}, () => [
|
|
823
|
-
t.clearable &&
|
|
827
|
+
t.clearable && i.value ? (l(), x(e(D), {
|
|
824
828
|
key: 0,
|
|
825
829
|
class: "o-header-search-icon close",
|
|
826
|
-
onClick:
|
|
830
|
+
onClick: P
|
|
827
831
|
}, {
|
|
828
832
|
default: v(() => [
|
|
829
833
|
m(e(no))
|
|
830
834
|
]),
|
|
831
835
|
_: 1
|
|
832
|
-
})) :
|
|
836
|
+
})) : w("", !0)
|
|
833
837
|
], !0)
|
|
834
838
|
]),
|
|
835
839
|
_: 3
|
|
836
840
|
}, 8, ["modelValue", "placeholder"]),
|
|
837
|
-
e(s) &&
|
|
841
|
+
e(s) && r.value ? (l(), c("span", {
|
|
838
842
|
key: 1,
|
|
839
843
|
class: "o-header-search-text",
|
|
840
|
-
onClick:
|
|
841
|
-
}, u(t.searchTextMobile ?? e(
|
|
844
|
+
onClick: C
|
|
845
|
+
}, u(t.searchTextMobile ?? e(y)("search")), 1)) : w("", !0)
|
|
842
846
|
], 2),
|
|
843
847
|
Oe(a("div", _o, [
|
|
844
848
|
I(h.$slots, "drawer", {
|
|
845
849
|
recommendItems: t.recommendItems,
|
|
846
|
-
historyItems:
|
|
850
|
+
historyItems: n.value,
|
|
847
851
|
hotItems: t.hotItems
|
|
848
852
|
}, () => [
|
|
849
|
-
t.recommendItems.length ? (l(),
|
|
853
|
+
t.recommendItems.length ? (l(), c("div", bo, [
|
|
850
854
|
I(h.$slots, "recommend-header", { recommend: t.recommendItems }, void 0, !0),
|
|
851
855
|
I(h.$slots, "recommend-content", { recommend: t.recommendItems }, () => [
|
|
852
|
-
(l(!0),
|
|
856
|
+
(l(!0), c(G, null, Y(t.recommendItems, ($) => (l(), c("div", {
|
|
853
857
|
class: "o-header-search-recommend-item",
|
|
854
|
-
key:
|
|
855
|
-
onClick: (
|
|
856
|
-
}, u(
|
|
858
|
+
key: $,
|
|
859
|
+
onClick: (K) => S($)
|
|
860
|
+
}, u($), 9, wo))), 128))
|
|
857
861
|
], !0)
|
|
858
|
-
])) :
|
|
859
|
-
I(h.$slots, "history-header", { history:
|
|
862
|
+
])) : n.value.length ? (l(), c("div", $o, [
|
|
863
|
+
I(h.$slots, "history-header", { history: n.value }, () => [
|
|
860
864
|
a("div", Co, [
|
|
861
|
-
a("span", Io, u(t.historyTitle ?? e(
|
|
862
|
-
m(e(
|
|
865
|
+
a("span", Io, u(t.historyTitle ?? e(y)("search.history")), 1),
|
|
866
|
+
m(e(D), {
|
|
863
867
|
class: "o-header-search-icon",
|
|
864
|
-
onClick:
|
|
868
|
+
onClick: V
|
|
865
869
|
}, {
|
|
866
870
|
default: v(() => [
|
|
867
871
|
m(e(po))
|
|
@@ -870,17 +874,17 @@ const ko = { name: "components-icon-header-back", render: go }, yo = { class: "o
|
|
|
870
874
|
})
|
|
871
875
|
])
|
|
872
876
|
], !0),
|
|
873
|
-
I(h.$slots, "history-content", { history:
|
|
877
|
+
I(h.$slots, "history-content", { history: n.value }, () => [
|
|
874
878
|
a("div", Oo, [
|
|
875
|
-
(l(!0),
|
|
876
|
-
key:
|
|
879
|
+
(l(!0), c(G, null, Y(n.value, ($) => (l(), c("div", {
|
|
880
|
+
key: $,
|
|
877
881
|
class: "o-header-search-history-item",
|
|
878
|
-
onClick: (
|
|
882
|
+
onClick: (K) => S($)
|
|
879
883
|
}, [
|
|
880
|
-
a("span", So, u(
|
|
881
|
-
m(e(
|
|
884
|
+
a("span", So, u($), 1),
|
|
885
|
+
m(e(D), {
|
|
882
886
|
class: "o-header-search-history-item-icon",
|
|
883
|
-
onClick: Se((
|
|
887
|
+
onClick: Se((K) => T($), ["stop"])
|
|
884
888
|
}, {
|
|
885
889
|
default: v(() => [
|
|
886
890
|
m(e(ho), { class: "icon-delete" })
|
|
@@ -890,43 +894,43 @@ const ko = { name: "components-icon-header-back", render: go }, yo = { class: "o
|
|
|
890
894
|
], 8, xo))), 128))
|
|
891
895
|
])
|
|
892
896
|
], !0)
|
|
893
|
-
])) :
|
|
894
|
-
(t.recommendItems.length ||
|
|
897
|
+
])) : w("", !0),
|
|
898
|
+
(t.recommendItems.length || n.value.length) && t.hotItems.length ? (l(), x(e(De), {
|
|
895
899
|
key: 2,
|
|
896
900
|
class: "o-header-search-drawer-divider"
|
|
897
|
-
})) :
|
|
898
|
-
t.hotItems.length ? (l(),
|
|
901
|
+
})) : w("", !0),
|
|
902
|
+
t.hotItems.length ? (l(), c("div", Ao, [
|
|
899
903
|
I(h.$slots, "hot-header", { hot: t.hotItems }, () => [
|
|
900
|
-
a("div", zo, u(t.hotTitle ?? e(
|
|
904
|
+
a("div", zo, u(t.hotTitle ?? e(y)("search.hot")), 1)
|
|
901
905
|
], !0),
|
|
902
906
|
I(h.$slots, "hot-content", { hot: t.hotItems }, () => [
|
|
903
907
|
a("div", Po, [
|
|
904
|
-
(l(!0),
|
|
905
|
-
key:
|
|
908
|
+
(l(!0), c(G, null, Y(t.hotItems, ($) => (l(), c("div", {
|
|
909
|
+
key: $,
|
|
906
910
|
class: "o-header-search-hot-item",
|
|
907
|
-
onClick: (
|
|
908
|
-
}, u(
|
|
911
|
+
onClick: (K) => S($)
|
|
912
|
+
}, u($), 9, Vo))), 128))
|
|
909
913
|
])
|
|
910
914
|
], !0)
|
|
911
|
-
])) :
|
|
915
|
+
])) : w("", !0)
|
|
912
916
|
], !0)
|
|
913
917
|
], 512), [
|
|
914
|
-
[Ae,
|
|
918
|
+
[Ae, r.value]
|
|
915
919
|
])
|
|
916
920
|
], 2),
|
|
917
|
-
e(s) ? (l(),
|
|
921
|
+
e(s) ? (l(), x(e(D), {
|
|
918
922
|
key: 0,
|
|
919
923
|
class: "o-header-search-icon-mobile",
|
|
920
|
-
onClick:
|
|
924
|
+
onClick: b
|
|
921
925
|
}, {
|
|
922
926
|
default: v(() => [
|
|
923
|
-
m(e(
|
|
927
|
+
m(e(ve))
|
|
924
928
|
]),
|
|
925
929
|
_: 1
|
|
926
|
-
})) :
|
|
930
|
+
})) : w("", !0)
|
|
927
931
|
]));
|
|
928
932
|
}
|
|
929
|
-
}), Bo = /* @__PURE__ */
|
|
933
|
+
}), Bo = /* @__PURE__ */ L(Eo, [["__scopeId", "data-v-cce80de4"]]), Do = {
|
|
930
934
|
locale: "zh-CN",
|
|
931
935
|
// common
|
|
932
936
|
"common.empty": "暂无数据",
|
|
@@ -983,11 +987,11 @@ const ko = { name: "components-icon-header-back", render: go }, yo = { class: "o
|
|
|
983
987
|
locale: z(() => o.locale),
|
|
984
988
|
theme: z(() => o.theme)
|
|
985
989
|
});
|
|
986
|
-
return Pe(
|
|
990
|
+
return Pe(_e, s), (y, d) => (l(), x(e(Me), {
|
|
987
991
|
locale: t.locale === "zh" ? e(Do) : e(Mo)
|
|
988
992
|
}, {
|
|
989
993
|
default: v(() => [
|
|
990
|
-
I(
|
|
994
|
+
I(y.$slots, "default")
|
|
991
995
|
]),
|
|
992
996
|
_: 3
|
|
993
997
|
}, 8, ["locale"]));
|
|
@@ -1000,7 +1004,7 @@ const ko = { name: "components-icon-header-back", render: go }, yo = { class: "o
|
|
|
1000
1004
|
viewBox: "0 0 24 24"
|
|
1001
1005
|
};
|
|
1002
1006
|
function Uo(t, o) {
|
|
1003
|
-
return l(),
|
|
1007
|
+
return l(), c("svg", No, [...o[0] || (o[0] = [
|
|
1004
1008
|
a("path", { d: "M9.246 5.764c-0.251 0.251-0.271 0.644-0.063 0.918l0.063 0.072 5.016 5.016c0.1 0.1 0.115 0.254 0.043 0.37l-0.043 0.054-5.062 5.062c-0.273 0.273-0.273 0.717 0 0.99 0.251 0.251 0.644 0.271 0.918 0.063l0.072-0.063 5.062-5.062c0.629-0.629 0.662-1.628 0.099-2.296l-0.099-0.108-5.016-5.016c-0.273-0.273-0.717-0.273-0.99 0z" }, null, -1)
|
|
1005
1009
|
])]);
|
|
1006
1010
|
}
|
|
@@ -1028,42 +1032,42 @@ const Ho = { name: "components-icon-chevron-right", render: Uo }, Ro = { class:
|
|
|
1028
1032
|
},
|
|
1029
1033
|
setup(t) {
|
|
1030
1034
|
const o = t;
|
|
1031
|
-
return (s,
|
|
1032
|
-
class:
|
|
1035
|
+
return (s, y) => (l(), c("div", {
|
|
1036
|
+
class: M(["app-section", { "is-full": o.full }])
|
|
1033
1037
|
}, [
|
|
1034
1038
|
a("div", Ro, [
|
|
1035
1039
|
I(s.$slots, "main", {}, () => [
|
|
1036
|
-
s.$slots.header || o.title || o.subtitle ? (l(),
|
|
1040
|
+
s.$slots.header || o.title || o.subtitle ? (l(), c("div", {
|
|
1037
1041
|
key: 0,
|
|
1038
|
-
class:
|
|
1042
|
+
class: M(["section-header", { "is-left": !o.headerJustifyCenter }])
|
|
1039
1043
|
}, [
|
|
1040
1044
|
I(s.$slots, "header", {}, () => [
|
|
1041
|
-
e(Te)(o.title) ? (l(!0),
|
|
1045
|
+
e(Te)(o.title) ? (l(!0), c(G, { key: 0 }, Y(o.title, (d) => (l(), c("h2", {
|
|
1042
1046
|
key: d,
|
|
1043
1047
|
class: "section-title"
|
|
1044
|
-
}, u(d), 1))), 128)) : s.$slots.title || o.title ? (l(),
|
|
1048
|
+
}, u(d), 1))), 128)) : s.$slots.title || o.title ? (l(), c("h2", Ko, [
|
|
1045
1049
|
I(s.$slots, "title", {}, () => [
|
|
1046
1050
|
O(u(o.title), 1)
|
|
1047
1051
|
], !0)
|
|
1048
|
-
])) :
|
|
1049
|
-
s.$slots.subtitle || o.subtitle ? (l(),
|
|
1052
|
+
])) : w("", !0),
|
|
1053
|
+
s.$slots.subtitle || o.subtitle ? (l(), c("p", Go, [
|
|
1050
1054
|
I(s.$slots, "subtitle", {}, () => [
|
|
1051
1055
|
O(u(o.subtitle), 1)
|
|
1052
1056
|
], !0)
|
|
1053
|
-
])) :
|
|
1057
|
+
])) : w("", !0)
|
|
1054
1058
|
], !0)
|
|
1055
|
-
], 2)) :
|
|
1056
|
-
s.$slots.default ? (l(),
|
|
1059
|
+
], 2)) : w("", !0),
|
|
1060
|
+
s.$slots.default ? (l(), c("div", Lo, [
|
|
1057
1061
|
I(s.$slots, "default", {}, void 0, !0)
|
|
1058
|
-
])) :
|
|
1059
|
-
s.$slots.footer || o.footer ? (l(),
|
|
1062
|
+
])) : w("", !0),
|
|
1063
|
+
s.$slots.footer || o.footer ? (l(), c("div", jo, [
|
|
1060
1064
|
I(s.$slots, "footer", {}, () => [
|
|
1061
1065
|
m(e(Ne), {
|
|
1062
1066
|
href: o.footerHref,
|
|
1063
1067
|
target: "_blank"
|
|
1064
1068
|
}, {
|
|
1065
1069
|
suffix: v(() => [
|
|
1066
|
-
m(e(
|
|
1070
|
+
m(e(D), { class: "footer-icon" }, {
|
|
1067
1071
|
default: v(() => [
|
|
1068
1072
|
m(e(Ho))
|
|
1069
1073
|
]),
|
|
@@ -1076,12 +1080,12 @@ const Ho = { name: "components-icon-chevron-right", render: Uo }, Ro = { class:
|
|
|
1076
1080
|
_: 1
|
|
1077
1081
|
}, 8, ["href"])
|
|
1078
1082
|
], !0)
|
|
1079
|
-
])) :
|
|
1083
|
+
])) : w("", !0)
|
|
1080
1084
|
], !0)
|
|
1081
1085
|
])
|
|
1082
1086
|
], 2));
|
|
1083
1087
|
}
|
|
1084
|
-
}), Jo = /* @__PURE__ */
|
|
1088
|
+
}), Jo = /* @__PURE__ */ L(Yo, [["__scopeId", "data-v-57b81782"]]), Wo = {
|
|
1085
1089
|
version: "1.1",
|
|
1086
1090
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1087
1091
|
width: "24",
|
|
@@ -1089,7 +1093,7 @@ const Ho = { name: "components-icon-chevron-right", render: Uo }, Ro = { class:
|
|
|
1089
1093
|
viewBox: "0 0 24 24"
|
|
1090
1094
|
};
|
|
1091
1095
|
function Zo(t, o) {
|
|
1092
|
-
return l(),
|
|
1096
|
+
return l(), c("svg", Wo, [...o[0] || (o[0] = [
|
|
1093
1097
|
a("path", {
|
|
1094
1098
|
opacity: "0.8",
|
|
1095
1099
|
fill: "currentColor",
|
|
@@ -1097,7 +1101,7 @@ function Zo(t, o) {
|
|
|
1097
1101
|
}, null, -1)
|
|
1098
1102
|
])]);
|
|
1099
1103
|
}
|
|
1100
|
-
const
|
|
1104
|
+
const te = { name: "components-icon-sun", render: Zo }, Fo = {
|
|
1101
1105
|
version: "1.1",
|
|
1102
1106
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1103
1107
|
width: "24",
|
|
@@ -1105,7 +1109,7 @@ const ee = { name: "components-icon-sun", render: Zo }, Fo = {
|
|
|
1105
1109
|
viewBox: "0 0 24 24"
|
|
1106
1110
|
};
|
|
1107
1111
|
function qo(t, o) {
|
|
1108
|
-
return l(),
|
|
1112
|
+
return l(), c("svg", Fo, [...o[0] || (o[0] = [
|
|
1109
1113
|
a("path", {
|
|
1110
1114
|
opacity: "0.8",
|
|
1111
1115
|
fill: "currentColor",
|
|
@@ -1113,7 +1117,7 @@ function qo(t, o) {
|
|
|
1113
1117
|
}, null, -1)
|
|
1114
1118
|
])]);
|
|
1115
1119
|
}
|
|
1116
|
-
const
|
|
1120
|
+
const oe = { name: "components-icon-moon", render: qo }, Qo = { class: "o-theme-switcher" }, Xo = {
|
|
1117
1121
|
key: 1,
|
|
1118
1122
|
class: "o-theme-switcher-mobile"
|
|
1119
1123
|
}, el = /* @__PURE__ */ R({
|
|
@@ -1123,53 +1127,53 @@ const te = { name: "components-icon-moon", render: qo }, Qo = { class: "o-theme-
|
|
|
1123
1127
|
type: { default: "auto" },
|
|
1124
1128
|
lightValue: { default: "light" },
|
|
1125
1129
|
darkValue: { default: "dark" },
|
|
1126
|
-
lightIcon: { default:
|
|
1127
|
-
darkIcon: { default:
|
|
1130
|
+
lightIcon: { default: te },
|
|
1131
|
+
darkIcon: { default: oe }
|
|
1128
1132
|
},
|
|
1129
1133
|
emits: ["update:theme", "change"],
|
|
1130
1134
|
setup(t, { emit: o }) {
|
|
1131
|
-
const s = t,
|
|
1135
|
+
const s = t, y = o, { gtPhone: d } = W(), g = z({
|
|
1132
1136
|
get() {
|
|
1133
1137
|
return s.theme;
|
|
1134
1138
|
},
|
|
1135
|
-
set(
|
|
1136
|
-
|
|
1139
|
+
set(r) {
|
|
1140
|
+
y("update:theme", r), y("change", r);
|
|
1137
1141
|
}
|
|
1138
|
-
}),
|
|
1139
|
-
|
|
1142
|
+
}), _ = z(() => s.type === "common" || s.type === "auto" && d.value), n = () => {
|
|
1143
|
+
g.value = g.value === s.lightValue ? s.darkValue : s.lightValue;
|
|
1140
1144
|
};
|
|
1141
|
-
return (
|
|
1142
|
-
|
|
1145
|
+
return (r, k) => (l(), c("div", Qo, [
|
|
1146
|
+
_.value ? (l(), c("div", {
|
|
1143
1147
|
key: 0,
|
|
1144
1148
|
class: "o-theme-switcher-common",
|
|
1145
|
-
onClick:
|
|
1149
|
+
onClick: n
|
|
1146
1150
|
}, [
|
|
1147
|
-
m(e(
|
|
1151
|
+
m(e(D), { class: "o-theme-icon" }, {
|
|
1148
1152
|
default: v(() => [
|
|
1149
|
-
|
|
1153
|
+
g.value === t.lightValue ? (l(), x(e(oe), { key: 0 })) : (l(), x(e(te), { key: 1 }))
|
|
1150
1154
|
]),
|
|
1151
1155
|
_: 1
|
|
1152
1156
|
})
|
|
1153
|
-
])) : (l(),
|
|
1154
|
-
m(e(
|
|
1155
|
-
modelValue:
|
|
1156
|
-
"onUpdate:modelValue":
|
|
1157
|
+
])) : (l(), c("div", Xo, [
|
|
1158
|
+
m(e(ge), {
|
|
1159
|
+
modelValue: g.value,
|
|
1160
|
+
"onUpdate:modelValue": k[0] || (k[0] = (i) => g.value = i),
|
|
1157
1161
|
class: "o-theme-switch",
|
|
1158
1162
|
"checked-value": t.darkValue,
|
|
1159
1163
|
"unchecked-value": t.lightValue
|
|
1160
1164
|
}, {
|
|
1161
1165
|
on: v(() => [
|
|
1162
|
-
m(e(
|
|
1166
|
+
m(e(D), { class: "o-theme-icon" }, {
|
|
1163
1167
|
default: v(() => [
|
|
1164
|
-
m(e(
|
|
1168
|
+
m(e(te))
|
|
1165
1169
|
]),
|
|
1166
1170
|
_: 1
|
|
1167
1171
|
})
|
|
1168
1172
|
]),
|
|
1169
1173
|
off: v(() => [
|
|
1170
|
-
m(e(
|
|
1174
|
+
m(e(D), { class: "o-theme-icon" }, {
|
|
1171
1175
|
default: v(() => [
|
|
1172
|
-
m(e(
|
|
1176
|
+
m(e(oe))
|
|
1173
1177
|
]),
|
|
1174
1178
|
_: 1
|
|
1175
1179
|
})
|
|
@@ -1179,10 +1183,10 @@ const te = { name: "components-icon-moon", render: qo }, Qo = { class: "o-theme-
|
|
|
1179
1183
|
]))
|
|
1180
1184
|
]));
|
|
1181
1185
|
}
|
|
1182
|
-
}), tl = /* @__PURE__ */
|
|
1186
|
+
}), tl = /* @__PURE__ */ L(el, [["__scopeId", "data-v-837e14fb"]]), ol = {
|
|
1183
1187
|
OBanner: Qe,
|
|
1184
1188
|
OCookieNotice: zt,
|
|
1185
|
-
|
|
1189
|
+
OElCookieNotice: lo,
|
|
1186
1190
|
OHeaderSearch: Bo,
|
|
1187
1191
|
OPlusConfigProvider: To,
|
|
1188
1192
|
OSection: Jo,
|
|
@@ -1197,7 +1201,7 @@ const te = { name: "components-icon-moon", render: qo }, Qo = { class: "o-theme-
|
|
|
1197
1201
|
export {
|
|
1198
1202
|
Qe as OBanner,
|
|
1199
1203
|
zt as OCookieNotice,
|
|
1200
|
-
lo as
|
|
1204
|
+
lo as OElCookieNotice,
|
|
1201
1205
|
Bo as OHeaderSearch,
|
|
1202
1206
|
To as OPlusConfigProvider,
|
|
1203
1207
|
Jo as OSection,
|