@opendesign-plus/components 0.0.1-rc.4 → 0.0.1-rc.6
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/chunk-index.cjs.js +1 -0
- package/dist/chunk-index.es.js +64 -0
- package/dist/components/OCookieNotice.vue.d.ts +3 -3
- package/dist/components/{OElCookieNotice.vue.d.ts → element-plus/OElCookieNotice.vue.d.ts} +7 -7
- package/dist/components/element-plus/index.d.ts +2 -0
- package/dist/components.cjs.js +1 -1
- package/dist/components.css +1 -1
- package/dist/components.element.cjs.js +1 -0
- package/dist/components.element.es.js +216 -0
- package/dist/components.es.js +423 -688
- package/dist/index.d.ts +1 -2
- package/package.json +6 -1
- package/src/components/OCookieNotice.vue +11 -12
- package/src/components/{OElCookieNotice.vue → element-plus/OElCookieNotice.vue} +10 -11
- package/src/components/element-plus/index.ts +3 -0
- package/src/index.ts +1 -3
- package/vite.config.ts +13 -6
- package/dist/components.umd.js +0 -1
package/dist/components.es.js
CHANGED
|
@@ -1,44 +1,35 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { isBoolean as
|
|
3
|
-
import { useTheme as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
import "element-plus/es/components/dialog/style/index";
|
|
8
|
-
import "element-plus/es/components/switch/style/index";
|
|
9
|
-
import "element-plus/es/components/icon/style/index";
|
|
10
|
-
const Le = /* @__PURE__ */ R({
|
|
1
|
+
import { defineComponent as H, computed as O, createElementBlock as s, openBlock as o, normalizeStyle as q, unref as e, renderSlot as w, ref as D, normalizeClass as P, createBlock as I, toDisplayString as m, withCtx as h, Fragment as U, renderList as K, createVNode as v, createElementVNode as c, createCommentVNode as g, createTextVNode as V, onMounted as ne, watch as G, Teleport as ve, nextTick as me, withDirectives as pe, withKeys as fe, withModifiers as ge, vShow as ye, reactive as ke, provide as _e } from "vue";
|
|
2
|
+
import { isBoolean as Q, isString as X, isUndefined as we, OCarousel as ee, OCarouselItem as te, OFigure as oe, OButton as j, OIcon as z, OIconClose as be, ODialog as $e, OSwitch as ce, OInput as Ce, ODivider as Ie, OConfigProvider as xe, isArray as ze, OLink as Oe } from "@opensig/opendesign";
|
|
3
|
+
import { useTheme as Se, useScreen as F } from "@opendesign-plus/composables";
|
|
4
|
+
import { _ as R, u as re, C as Ve, c as Pe } from "./chunk-index.es.js";
|
|
5
|
+
import { useVModel as Me, onClickOutside as Be } from "@vueuse/core";
|
|
6
|
+
const De = /* @__PURE__ */ H({
|
|
11
7
|
__name: "ContentWrapper",
|
|
12
8
|
props: {
|
|
13
9
|
verticalPadding: { type: [Boolean, String, Array], default: void 0 }
|
|
14
10
|
},
|
|
15
11
|
setup(t) {
|
|
16
|
-
const
|
|
17
|
-
return (
|
|
12
|
+
const l = Symbol("default"), a = t, p = O(() => a.verticalPadding ? Q(a.verticalPadding) ? l : X(a.verticalPadding) ? a.verticalPadding : a.verticalPadding[0] : 0), d = O(() => a.verticalPadding ? Q(a.verticalPadding) ? l : X(a.verticalPadding) ? a.verticalPadding : we(a.verticalPadding[1]) ? a.verticalPadding[0] : a.verticalPadding[1] : 0);
|
|
13
|
+
return (f, y) => (o(), s("div", {
|
|
18
14
|
class: "content-wrapper",
|
|
19
|
-
style:
|
|
20
|
-
"--content-wrapper-vertical-paddingTop":
|
|
21
|
-
"--content-wrapper-vertical-paddingBottom": d.value === e(
|
|
15
|
+
style: q({
|
|
16
|
+
"--content-wrapper-vertical-paddingTop": p.value === e(l) ? void 0 : p.value,
|
|
17
|
+
"--content-wrapper-vertical-paddingBottom": d.value === e(l) ? void 0 : d.value
|
|
22
18
|
})
|
|
23
19
|
}, [
|
|
24
|
-
|
|
20
|
+
w(f.$slots, "default", {}, void 0, !0)
|
|
25
21
|
], 4));
|
|
26
22
|
}
|
|
27
|
-
}),
|
|
28
|
-
const s = t.__vccOpts || t;
|
|
29
|
-
for (const [y, d] of o)
|
|
30
|
-
s[y] = d;
|
|
31
|
-
return s;
|
|
32
|
-
}, de = /* @__PURE__ */ L(Le, [["__scopeId", "data-v-a0f91aed"]]), je = { key: 0 }, Ye = { class: "banner-content" }, Je = ["src"], We = {
|
|
23
|
+
}), le = /* @__PURE__ */ R(De, [["__scopeId", "data-v-a0f91aed"]]), Ae = { key: 0 }, Te = { class: "banner-content" }, Ue = ["src"], He = {
|
|
33
24
|
key: 1,
|
|
34
25
|
class: "banner-title"
|
|
35
|
-
},
|
|
26
|
+
}, Ee = {
|
|
36
27
|
key: 2,
|
|
37
28
|
class: "banner-subtitle"
|
|
38
|
-
},
|
|
29
|
+
}, Ne = {
|
|
39
30
|
key: 4,
|
|
40
31
|
class: "banner-opts"
|
|
41
|
-
},
|
|
32
|
+
}, Ke = /* @__PURE__ */ H({
|
|
42
33
|
__name: "OBanner",
|
|
43
34
|
props: {
|
|
44
35
|
options: void 0,
|
|
@@ -46,37 +37,37 @@ const Le = /* @__PURE__ */ R({
|
|
|
46
37
|
contentJustifyCenter: !1
|
|
47
38
|
},
|
|
48
39
|
setup(t) {
|
|
49
|
-
const
|
|
40
|
+
const l = t, { isLight: a } = Se("opendesignplus", document.domain || "localhost"), { isPhone: p } = F(), d = O(() => l.options), f = D(""), y = (r) => {
|
|
50
41
|
setTimeout(() => {
|
|
51
|
-
|
|
42
|
+
f.value = d.value[r].bg_theme ?? "light";
|
|
52
43
|
}, 100);
|
|
53
|
-
},
|
|
54
|
-
r && !
|
|
44
|
+
}, u = (r, C) => {
|
|
45
|
+
r && !C && window.open(r);
|
|
55
46
|
};
|
|
56
|
-
return (r,
|
|
57
|
-
class:
|
|
47
|
+
return (r, C) => (o(), s("div", {
|
|
48
|
+
class: P(["home-banner", t.size])
|
|
58
49
|
}, [
|
|
59
|
-
t.size === "tiny" ? (
|
|
50
|
+
t.size === "tiny" ? (o(), s("div", Ae, m(d.value[1].title), 1)) : e(p) ? (o(), I(e(ee), {
|
|
60
51
|
key: 2,
|
|
61
52
|
class: "banner-carousel",
|
|
62
53
|
effect: "gallery",
|
|
63
54
|
"indicator-click": "",
|
|
64
|
-
"data-o-theme":
|
|
55
|
+
"data-o-theme": f.value,
|
|
65
56
|
arrow: "never",
|
|
66
57
|
"auto-play": !0,
|
|
67
|
-
onBeforeChange:
|
|
58
|
+
onBeforeChange: y
|
|
68
59
|
}, {
|
|
69
|
-
default:
|
|
70
|
-
(
|
|
71
|
-
class:
|
|
60
|
+
default: h(() => [
|
|
61
|
+
(o(!0), s(U, null, K(d.value, (n, b) => (o(), I(e(te), {
|
|
62
|
+
class: P(["banner-item", `banner-item${b}`])
|
|
72
63
|
}, {
|
|
73
|
-
default:
|
|
74
|
-
|
|
75
|
-
default:
|
|
76
|
-
|
|
64
|
+
default: h(() => [
|
|
65
|
+
v(le, { class: "banner-wrapper" }, {
|
|
66
|
+
default: h(() => [
|
|
67
|
+
v(e(oe), {
|
|
77
68
|
class: "banner-bg",
|
|
78
|
-
src:
|
|
79
|
-
onClick: (
|
|
69
|
+
src: n.bg,
|
|
70
|
+
onClick: (x) => u(n.href)
|
|
80
71
|
}, null, 8, ["src", "onClick"])
|
|
81
72
|
]),
|
|
82
73
|
_: 2
|
|
@@ -86,72 +77,72 @@ const Le = /* @__PURE__ */ R({
|
|
|
86
77
|
}, 1032, ["class"]))), 256))
|
|
87
78
|
]),
|
|
88
79
|
_: 1
|
|
89
|
-
}, 8, ["data-o-theme"])) : (
|
|
80
|
+
}, 8, ["data-o-theme"])) : (o(), I(e(ee), {
|
|
90
81
|
key: 1,
|
|
91
82
|
class: "banner-carousel",
|
|
92
83
|
effect: "toggle",
|
|
93
84
|
"active-class": "current-slide",
|
|
94
85
|
"indicator-click": "",
|
|
95
86
|
"auto-play": !0,
|
|
96
|
-
"data-o-theme":
|
|
97
|
-
onBeforeChange:
|
|
87
|
+
"data-o-theme": f.value,
|
|
88
|
+
onBeforeChange: y
|
|
98
89
|
}, {
|
|
99
|
-
default:
|
|
100
|
-
(
|
|
90
|
+
default: h(() => [
|
|
91
|
+
(o(!0), s(U, null, K(d.value, (n, b) => (o(), I(e(te), {
|
|
101
92
|
key: b,
|
|
102
|
-
class:
|
|
93
|
+
class: P(["banner-item", `banner-item${b}`])
|
|
103
94
|
}, {
|
|
104
|
-
default:
|
|
105
|
-
|
|
106
|
-
class:
|
|
107
|
-
"with-sticky-bg":
|
|
108
|
-
"in-dark": !e(
|
|
109
|
-
"cursor-pointer":
|
|
95
|
+
default: h(() => [
|
|
96
|
+
v(e(oe), {
|
|
97
|
+
class: P(["banner-bg", {
|
|
98
|
+
"with-sticky-bg": n.withStickyBg,
|
|
99
|
+
"in-dark": !e(a),
|
|
100
|
+
"cursor-pointer": n.href && !n.btn
|
|
110
101
|
}]),
|
|
111
|
-
src:
|
|
112
|
-
style:
|
|
113
|
-
"--pad-offset":
|
|
102
|
+
src: n.bg,
|
|
103
|
+
style: q({
|
|
104
|
+
"--pad-offset": n.pad_offset
|
|
114
105
|
}),
|
|
115
|
-
onClick: (
|
|
106
|
+
onClick: (x) => u(n.href, n.btn)
|
|
116
107
|
}, {
|
|
117
|
-
default:
|
|
118
|
-
|
|
119
|
-
class:
|
|
108
|
+
default: h(() => [
|
|
109
|
+
v(le, {
|
|
110
|
+
class: P(["banner-wrapper", ["banner-wrapper", t.contentJustifyCenter ? "content-center" : ""]])
|
|
120
111
|
}, {
|
|
121
|
-
default:
|
|
122
|
-
|
|
123
|
-
!e(
|
|
112
|
+
default: h(() => [
|
|
113
|
+
c("div", Te, [
|
|
114
|
+
!e(p) && n.attach ? (o(), s("img", {
|
|
124
115
|
key: 0,
|
|
125
|
-
src:
|
|
116
|
+
src: n.attach,
|
|
126
117
|
class: "banner-attach"
|
|
127
|
-
}, null, 8,
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
118
|
+
}, null, 8, Ue)) : g("", !0),
|
|
119
|
+
n.title ? (o(), s("div", He, m(n.title), 1)) : g("", !0),
|
|
120
|
+
n.subtitle ? (o(), s("div", Ee, m(n.subtitle), 1)) : g("", !0),
|
|
121
|
+
n.bg_text ? (o(), s("div", {
|
|
131
122
|
key: 3,
|
|
132
123
|
class: "banner-text",
|
|
133
|
-
style:
|
|
134
|
-
backgroundImage: `url(${
|
|
135
|
-
"--pc-width":
|
|
136
|
-
"--pc-height":
|
|
137
|
-
"--pad-width":
|
|
138
|
-
"--pad-height":
|
|
124
|
+
style: q({
|
|
125
|
+
backgroundImage: `url(${n.bg_text})`,
|
|
126
|
+
"--pc-width": n.pc_text_width,
|
|
127
|
+
"--pc-height": n.pc_text_height,
|
|
128
|
+
"--pad-width": n.pad_text_width,
|
|
129
|
+
"--pad-height": n.pad_text_height
|
|
139
130
|
})
|
|
140
|
-
}, null, 4)) :
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
href:
|
|
131
|
+
}, null, 4)) : g("", !0),
|
|
132
|
+
n.btn ? (o(), s("div", Ne, [
|
|
133
|
+
v(e(j), {
|
|
134
|
+
href: n.href,
|
|
144
135
|
target: "_blank",
|
|
145
136
|
variant: "solid",
|
|
146
137
|
color: "primary",
|
|
147
138
|
size: t.size
|
|
148
139
|
}, {
|
|
149
|
-
default:
|
|
150
|
-
|
|
140
|
+
default: h(() => [
|
|
141
|
+
V(m(n.btn), 1)
|
|
151
142
|
]),
|
|
152
143
|
_: 2
|
|
153
144
|
}, 1032, ["href", "size"])
|
|
154
|
-
])) :
|
|
145
|
+
])) : g("", !0)
|
|
155
146
|
])
|
|
156
147
|
]),
|
|
157
148
|
_: 2
|
|
@@ -167,104 +158,53 @@ const Le = /* @__PURE__ */ R({
|
|
|
167
158
|
}, 8, ["data-o-theme"]))
|
|
168
159
|
], 2));
|
|
169
160
|
}
|
|
170
|
-
}),
|
|
171
|
-
const o = E(!1);
|
|
172
|
-
return Q(() => {
|
|
173
|
-
o.value = !0;
|
|
174
|
-
}), () => o.value && t.default ? t.default() : null;
|
|
175
|
-
}, ye = R({
|
|
176
|
-
setup(t, { slots: o }) {
|
|
177
|
-
const s = we("ClientOnly");
|
|
178
|
-
return s && typeof s != "string" ? () => $e(s, null, { default: () => o.default ? o.default() : null }) : Xe(o);
|
|
179
|
-
}
|
|
180
|
-
}), et = {
|
|
181
|
-
search: "搜索",
|
|
182
|
-
"search.hot": "热门搜索",
|
|
183
|
-
"search.placeholder": "搜索",
|
|
184
|
-
"search.expandedPlaceholder": "请输入搜索内容",
|
|
185
|
-
"search.history": "历史搜索",
|
|
186
|
-
"cookie.desc": "我们使用cookie来确保您的高速浏览体验。继续浏览本站,即表示您同意我们使用cookie。",
|
|
187
|
-
"cookie.about": "查看详情"
|
|
188
|
-
}, tt = {
|
|
189
|
-
search: "Search",
|
|
190
|
-
"search.hot": "Top search",
|
|
191
|
-
"search.placeholder": "Please enter the content",
|
|
192
|
-
"search.expandedPlaceholder": "Please enter the content",
|
|
193
|
-
"search.history": "History",
|
|
194
|
-
"cookie.title": "{0} Community Respects Your Privacy",
|
|
195
|
-
"cookie.desc": 'This site uses cookies from us and our partners to improve your browsing experience and make the site work properly. By clicking "Accept All", you consent to the use of cookies. By clicking "Reject All", you disable the use of unnecessary cookies. You can manage your cookie settings by clicking "Manage Cookies". For more information or to change your cookie settings, please refer to our ',
|
|
196
|
-
"cookie.about": "About Cookies",
|
|
197
|
-
"cookie.acceptAll": "Accept All",
|
|
198
|
-
"cookie.rejectAll": "Reject All",
|
|
199
|
-
"cookie.manage": "Manage Cookies",
|
|
200
|
-
"cookie.necessaryCookie": "Strictly Necessary Cookies",
|
|
201
|
-
"cookie.alwaysOn": "Always active",
|
|
202
|
-
"cookie.necessaryCookieDetail": "These cookies are necessary for the site to work properly and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as logging in or filling in forms. You can set the browser to block these cookies, but that can make parts of the site not work. These cookies do not store any personally identifiable information.",
|
|
203
|
-
"cookie.analyticalCookie": "Analytics Cookies",
|
|
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
|
-
"cookie.saveSetting": "Save Settings",
|
|
206
|
-
"cookie.setting": "Cookie settings"
|
|
207
|
-
}, _e = Symbol("provide-config-provider"), ot = E({
|
|
208
|
-
zh: et,
|
|
209
|
-
en: tt
|
|
210
|
-
});
|
|
211
|
-
function ae() {
|
|
212
|
-
const o = Ce() ? Ie(_e) : null, s = z(() => (o == null ? void 0 : o.locale) || "zh");
|
|
213
|
-
return {
|
|
214
|
-
locale: s,
|
|
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
|
-
}
|
|
219
|
-
};
|
|
220
|
-
}
|
|
221
|
-
const lt = {
|
|
161
|
+
}), Re = /* @__PURE__ */ R(Ke, [["__scopeId", "data-v-38a33983"]]), Le = {
|
|
222
162
|
key: 0,
|
|
223
163
|
class: "cookie-notice"
|
|
224
|
-
},
|
|
164
|
+
}, Ge = { class: "cookie-notice-content" }, Je = ["type"], We = { class: "cookie-notice-left" }, je = {
|
|
225
165
|
key: 0,
|
|
226
166
|
class: "cookie-desc",
|
|
227
167
|
style: { "margin-top": "0" }
|
|
228
|
-
},
|
|
168
|
+
}, Fe = ["href"], Ye = { class: "cookie-title" }, Ze = { class: "cookie-desc" }, qe = ["href"], Qe = {
|
|
229
169
|
key: 0,
|
|
230
170
|
class: "cookie-notice-right"
|
|
231
|
-
},
|
|
171
|
+
}, Xe = { class: "cookie-dlg-title" }, et = { class: "cookie-dlg-content" }, tt = { class: "content-item" }, ot = { class: "item-header" }, lt = { class: "item-title" }, at = { class: "item-extra" }, st = { class: "item-detail" }, nt = { class: "content-item" }, ct = { class: "item-header" }, rt = { class: "item-title" }, it = { class: "item-extra" }, dt = { class: "item-detail" }, ut = "0", ae = "1", ht = "2", W = "3", vt = "agreed-cookiepolicy-zh", mt = "agreed-cookiepolicy-en", pt = /* @__PURE__ */ H({
|
|
232
172
|
__name: "OCookieNotice",
|
|
233
173
|
props: {
|
|
234
174
|
visible: { type: Boolean },
|
|
235
175
|
enableGrid: { type: Boolean },
|
|
236
176
|
community: {},
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
177
|
+
detailUrl: {},
|
|
178
|
+
wrapper: {},
|
|
179
|
+
cookieDomain: {}
|
|
240
180
|
},
|
|
241
181
|
emits: ["update:visible"],
|
|
242
|
-
setup(t, { expose:
|
|
243
|
-
const
|
|
244
|
-
const
|
|
245
|
-
return
|
|
246
|
-
},
|
|
247
|
-
const
|
|
248
|
-
document.cookie = `${encodeURIComponent(
|
|
249
|
-
},
|
|
250
|
-
document.cookie = `${encodeURIComponent(
|
|
251
|
-
}, S = (
|
|
252
|
-
typeof
|
|
253
|
-
!
|
|
182
|
+
setup(t, { expose: l, emit: a }) {
|
|
183
|
+
const p = t, d = a, { lePadV: f, leLaptop: y } = F(), { locale: u, t: r } = re(), C = O(() => u.value === "zh"), n = O(() => C.value ? vt : mt), b = D(!1), x = Me(p, "visible", d, { defaultValue: !1 }), B = ($) => {
|
|
184
|
+
const _ = document.cookie.split(";").find((M) => M.split("=")[0].trim() === encodeURIComponent($));
|
|
185
|
+
return _ ? decodeURIComponent(_.split("=")[1]) : null;
|
|
186
|
+
}, L = ($, _, M, ue) => {
|
|
187
|
+
const he = `; max-age=${M * 24 * 60 * 60}`;
|
|
188
|
+
document.cookie = `${encodeURIComponent($)}=${encodeURIComponent(_)}${he}; path=/; domain=${ue}`;
|
|
189
|
+
}, J = ($, _) => {
|
|
190
|
+
document.cookie = `${encodeURIComponent($)}=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; domain=${_}`;
|
|
191
|
+
}, S = ($) => {
|
|
192
|
+
typeof $ == "boolean" ? x.value = $ : x.value = !x.value, me(() => {
|
|
193
|
+
!x.value && C.value && B(n.value) !== W && L(n.value, W, 180, p.cookieDomain ?? location.hostname);
|
|
254
194
|
});
|
|
255
|
-
},
|
|
256
|
-
typeof
|
|
257
|
-
},
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
}),
|
|
261
|
-
S(
|
|
195
|
+
}, A = D(!1), E = ($) => {
|
|
196
|
+
typeof $ == "boolean" ? A.value = $ : A.value = !A.value;
|
|
197
|
+
}, i = () => C.value ? B(n.value) !== W : (B(n.value) ?? "0") === ut, T = () => C.value ? B(n.value) === W : B(n.value) === ae;
|
|
198
|
+
ne(() => {
|
|
199
|
+
i() && S(!0);
|
|
200
|
+
}), G(u, () => {
|
|
201
|
+
S(i());
|
|
262
202
|
});
|
|
263
|
-
const
|
|
264
|
-
b.value = !0,
|
|
265
|
-
},
|
|
266
|
-
b.value = !1,
|
|
267
|
-
},
|
|
203
|
+
const k = () => {
|
|
204
|
+
b.value = !0, J(n.value, p.cookieDomain ?? location.hostname), L(n.value, ae, 180, p.cookieDomain ?? location.hostname), S(!1);
|
|
205
|
+
}, N = () => {
|
|
206
|
+
b.value = !1, J(n.value, p.cookieDomain ?? location.hostname), L(n.value, ht, 180, p.cookieDomain ?? location.hostname), S(!1);
|
|
207
|
+
}, ie = O(() => [
|
|
268
208
|
{
|
|
269
209
|
id: "save",
|
|
270
210
|
color: "primary",
|
|
@@ -273,7 +213,7 @@ const lt = {
|
|
|
273
213
|
size: "large",
|
|
274
214
|
round: "pill",
|
|
275
215
|
onClick: () => {
|
|
276
|
-
b.value ?
|
|
216
|
+
b.value ? k() : N(), E(!1);
|
|
277
217
|
}
|
|
278
218
|
},
|
|
279
219
|
{
|
|
@@ -284,432 +224,229 @@ const lt = {
|
|
|
284
224
|
size: "large",
|
|
285
225
|
round: "pill",
|
|
286
226
|
onClick: () => {
|
|
287
|
-
b.value = !0,
|
|
227
|
+
b.value = !0, k(), E(!1);
|
|
288
228
|
}
|
|
289
229
|
}
|
|
290
|
-
]),
|
|
291
|
-
|
|
230
|
+
]), de = ($) => {
|
|
231
|
+
$ && (b.value = T());
|
|
292
232
|
};
|
|
293
|
-
return
|
|
233
|
+
return l({
|
|
294
234
|
check() {
|
|
295
|
-
|
|
235
|
+
T() === x.value && S();
|
|
296
236
|
}
|
|
297
|
-
}), (
|
|
298
|
-
default:
|
|
299
|
-
(
|
|
300
|
-
to: t.
|
|
237
|
+
}), ($, _) => (o(), I(e(Ve), null, {
|
|
238
|
+
default: h(() => [
|
|
239
|
+
(o(), I(ve, {
|
|
240
|
+
to: t.wrapper || "#app"
|
|
301
241
|
}, [
|
|
302
|
-
e(
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
type: e(
|
|
306
|
-
class:
|
|
242
|
+
e(x) ? (o(), s("div", Le, [
|
|
243
|
+
c("div", Ge, [
|
|
244
|
+
c("div", {
|
|
245
|
+
type: e(u),
|
|
246
|
+
class: P({ "cookie-notice-wrap-grid": t.enableGrid, "cookie-notice-wrap": !t.enableGrid })
|
|
307
247
|
}, [
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
href: t.
|
|
248
|
+
c("div", We, [
|
|
249
|
+
C.value ? (o(), s("p", je, [
|
|
250
|
+
V(m(e(r)("cookie.desc")) + " ", 1),
|
|
251
|
+
c("a", {
|
|
252
|
+
href: t.detailUrl,
|
|
313
253
|
target: "_blank",
|
|
314
254
|
rel: "noopener noreferrer"
|
|
315
|
-
},
|
|
316
|
-
])) : (
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
href: t.
|
|
255
|
+
}, m(e(r)("cookie.about")), 9, Fe)
|
|
256
|
+
])) : (o(), s(U, { key: 1 }, [
|
|
257
|
+
c("p", Ye, m(e(r)("cookie.title", [t.community])), 1),
|
|
258
|
+
c("p", Ze, [
|
|
259
|
+
V(m(e(r)("cookie.desc")) + " ", 1),
|
|
260
|
+
c("a", {
|
|
261
|
+
href: t.detailUrl,
|
|
322
262
|
target: "_blank",
|
|
323
263
|
rel: "noopener noreferrer"
|
|
324
|
-
},
|
|
325
|
-
|
|
264
|
+
}, m(e(r)("cookie.about")), 9, qe),
|
|
265
|
+
_[4] || (_[4] = V(". ", -1))
|
|
326
266
|
])
|
|
327
267
|
], 64))
|
|
328
268
|
]),
|
|
329
|
-
|
|
330
|
-
|
|
269
|
+
C.value ? g("", !0) : (o(), s("div", Qe, [
|
|
270
|
+
v(e(j), {
|
|
331
271
|
round: "pill",
|
|
332
272
|
variant: "outline",
|
|
333
273
|
color: "primary",
|
|
334
|
-
onClick:
|
|
274
|
+
onClick: k
|
|
335
275
|
}, {
|
|
336
|
-
default:
|
|
337
|
-
|
|
276
|
+
default: h(() => [
|
|
277
|
+
V(m(e(r)("cookie.acceptAll")), 1)
|
|
338
278
|
]),
|
|
339
279
|
_: 1
|
|
340
280
|
}),
|
|
341
|
-
|
|
281
|
+
v(e(j), {
|
|
342
282
|
round: "pill",
|
|
343
283
|
variant: "outline",
|
|
344
284
|
color: "primary",
|
|
345
|
-
onClick:
|
|
285
|
+
onClick: N
|
|
346
286
|
}, {
|
|
347
|
-
default:
|
|
348
|
-
|
|
287
|
+
default: h(() => [
|
|
288
|
+
V(m(e(r)("cookie.rejectAll")), 1)
|
|
349
289
|
]),
|
|
350
290
|
_: 1
|
|
351
291
|
}),
|
|
352
|
-
|
|
292
|
+
v(e(j), {
|
|
353
293
|
round: "pill",
|
|
354
294
|
variant: "outline",
|
|
355
295
|
color: "primary",
|
|
356
|
-
onClick:
|
|
296
|
+
onClick: _[0] || (_[0] = (M) => E(!0))
|
|
357
297
|
}, {
|
|
358
|
-
default:
|
|
359
|
-
|
|
298
|
+
default: h(() => [
|
|
299
|
+
V(m(e(r)("cookie.manage")), 1)
|
|
360
300
|
]),
|
|
361
301
|
_: 1
|
|
362
302
|
})
|
|
363
303
|
])),
|
|
364
|
-
|
|
304
|
+
v(e(z), {
|
|
365
305
|
class: "cookie-notice-close",
|
|
366
|
-
type: e(
|
|
367
|
-
onClick:
|
|
306
|
+
type: e(u),
|
|
307
|
+
onClick: _[1] || (_[1] = (M) => S(!1))
|
|
368
308
|
}, {
|
|
369
|
-
default:
|
|
370
|
-
|
|
309
|
+
default: h(() => [
|
|
310
|
+
v(e(be))
|
|
371
311
|
]),
|
|
372
312
|
_: 1
|
|
373
313
|
}, 8, ["type"])
|
|
374
|
-
], 10,
|
|
314
|
+
], 10, Je)
|
|
375
315
|
]),
|
|
376
|
-
|
|
377
|
-
visible:
|
|
378
|
-
"onUpdate:visible":
|
|
379
|
-
size: e(
|
|
380
|
-
"phone-half-full": e(
|
|
316
|
+
v(e($e), {
|
|
317
|
+
visible: A.value,
|
|
318
|
+
"onUpdate:visible": _[3] || (_[3] = (M) => A.value = M),
|
|
319
|
+
size: e(y) ? "medium" : "large",
|
|
320
|
+
"phone-half-full": e(f),
|
|
381
321
|
class: "cookie-dlg",
|
|
382
|
-
actions:
|
|
383
|
-
onChange:
|
|
322
|
+
actions: ie.value,
|
|
323
|
+
onChange: de
|
|
384
324
|
}, {
|
|
385
|
-
header:
|
|
386
|
-
|
|
325
|
+
header: h(() => [
|
|
326
|
+
c("span", Xe, m(e(r)("cookie.manage")), 1)
|
|
387
327
|
]),
|
|
388
|
-
default:
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
328
|
+
default: h(() => [
|
|
329
|
+
c("div", et, [
|
|
330
|
+
c("div", tt, [
|
|
331
|
+
c("div", ot, [
|
|
332
|
+
c("span", lt, m(e(r)("cookie.necessaryCookie")), 1),
|
|
333
|
+
c("span", at, m(e(r)("cookie.alwaysOn")), 1)
|
|
394
334
|
]),
|
|
395
|
-
|
|
335
|
+
c("div", st, m(e(r)("cookie.necessaryCookieDetail")), 1)
|
|
396
336
|
]),
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
337
|
+
c("div", nt, [
|
|
338
|
+
c("div", ct, [
|
|
339
|
+
c("span", rt, m(e(r)("cookie.analyticalCookie")), 1),
|
|
340
|
+
c("span", it, [
|
|
341
|
+
v(e(ce), {
|
|
402
342
|
modelValue: b.value,
|
|
403
|
-
"onUpdate:modelValue":
|
|
343
|
+
"onUpdate:modelValue": _[2] || (_[2] = (M) => b.value = M)
|
|
404
344
|
}, null, 8, ["modelValue"])
|
|
405
345
|
])
|
|
406
346
|
]),
|
|
407
|
-
|
|
347
|
+
c("div", dt, m(e(r)("cookie.analyticalCookieDetail")), 1)
|
|
408
348
|
])
|
|
409
349
|
])
|
|
410
350
|
]),
|
|
411
351
|
_: 1
|
|
412
352
|
}, 8, ["visible", "size", "phone-half-full", "actions"])
|
|
413
|
-
])) :
|
|
353
|
+
])) : g("", !0)
|
|
414
354
|
], 8, ["to"]))
|
|
415
355
|
]),
|
|
416
356
|
_: 1
|
|
417
357
|
}));
|
|
418
358
|
}
|
|
419
|
-
}),
|
|
420
|
-
key: 0,
|
|
421
|
-
class: "cookie-notice"
|
|
422
|
-
}, Vt = { class: "cookie-notice-content" }, Et = ["type"], Bt = { class: "cookie-notice-left" }, Dt = {
|
|
423
|
-
key: 0,
|
|
424
|
-
class: "cookie-desc",
|
|
425
|
-
style: { "margin-top": "0" }
|
|
426
|
-
}, Mt = ["href"], Tt = { class: "cookie-title" }, Nt = { class: "cookie-desc" }, Ut = ["href"], Ht = {
|
|
427
|
-
key: 0,
|
|
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", he = "1", Xt = "2", F = "3", eo = "agreed-cookiepolicy-zh", to = "agreed-cookiepolicy-en", oo = /* @__PURE__ */ R({
|
|
430
|
-
__name: "OElCookieNotice",
|
|
431
|
-
props: {
|
|
432
|
-
visible: { type: Boolean },
|
|
433
|
-
enableGrid: { type: Boolean },
|
|
434
|
-
community: {},
|
|
435
|
-
aboutPathZh: {},
|
|
436
|
-
aboutPathEn: {},
|
|
437
|
-
teleportTarget: {}
|
|
438
|
-
},
|
|
439
|
-
emits: ["update:visible"],
|
|
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
|
-
});
|
|
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
|
-
});
|
|
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
|
-
};
|
|
470
|
-
return o({
|
|
471
|
-
check() {
|
|
472
|
-
H() === b.value && V();
|
|
473
|
-
}
|
|
474
|
-
}), (A, p) => (l(), x(e(ye), null, {
|
|
475
|
-
default: v(() => [
|
|
476
|
-
(l(), x(me, {
|
|
477
|
-
to: t.teleportTarget || "#app"
|
|
478
|
-
}, [
|
|
479
|
-
e(b) ? (l(), c("div", Pt, [
|
|
480
|
-
a("div", Vt, [
|
|
481
|
-
a("div", {
|
|
482
|
-
type: e(_),
|
|
483
|
-
class: M({ "cookie-notice-wrap-grid": t.enableGrid, "cookie-notice-wrap": !t.enableGrid })
|
|
484
|
-
}, [
|
|
485
|
-
a("div", Bt, [
|
|
486
|
-
r.value ? (l(), c("p", Dt, [
|
|
487
|
-
O(u(e(n)("cookie.desc")) + " ", 1),
|
|
488
|
-
a("a", {
|
|
489
|
-
href: t.aboutPathZh,
|
|
490
|
-
target: "_blank",
|
|
491
|
-
rel: "noopener noreferrer"
|
|
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),
|
|
495
|
-
a("p", Nt, [
|
|
496
|
-
O(u(e(n)("cookie.desc")) + " ", 1),
|
|
497
|
-
a("a", {
|
|
498
|
-
href: t.aboutPathEn,
|
|
499
|
-
target: "_blank",
|
|
500
|
-
rel: "noopener noreferrer"
|
|
501
|
-
}, u(e(n)("cookie.about")), 9, Ut),
|
|
502
|
-
p[4] || (p[4] = O(". ", -1))
|
|
503
|
-
])
|
|
504
|
-
], 64))
|
|
505
|
-
]),
|
|
506
|
-
r.value ? w("", !0) : (l(), c("div", Ht, [
|
|
507
|
-
m(e(J), {
|
|
508
|
-
round: "",
|
|
509
|
-
type: "primary",
|
|
510
|
-
onClick: h
|
|
511
|
-
}, {
|
|
512
|
-
default: v(() => [
|
|
513
|
-
O(u(e(n)("cookie.acceptAll")), 1)
|
|
514
|
-
]),
|
|
515
|
-
_: 1
|
|
516
|
-
}),
|
|
517
|
-
m(e(J), {
|
|
518
|
-
round: "",
|
|
519
|
-
type: "primary",
|
|
520
|
-
onClick: U
|
|
521
|
-
}, {
|
|
522
|
-
default: v(() => [
|
|
523
|
-
O(u(e(n)("cookie.rejectAll")), 1)
|
|
524
|
-
]),
|
|
525
|
-
_: 1
|
|
526
|
-
}),
|
|
527
|
-
m(e(J), {
|
|
528
|
-
round: "",
|
|
529
|
-
type: "primary",
|
|
530
|
-
onClick: p[0] || (p[0] = (f) => S(!0))
|
|
531
|
-
}, {
|
|
532
|
-
default: v(() => [
|
|
533
|
-
O(u(e(n)("cookie.manage")), 1)
|
|
534
|
-
]),
|
|
535
|
-
_: 1
|
|
536
|
-
})
|
|
537
|
-
])),
|
|
538
|
-
m(e(Re), {
|
|
539
|
-
class: "cookie-notice-close",
|
|
540
|
-
type: e(_),
|
|
541
|
-
onClick: p[1] || (p[1] = (f) => V(!1))
|
|
542
|
-
}, {
|
|
543
|
-
default: v(() => [
|
|
544
|
-
I(A.$slots, "close-icon", {}, () => [
|
|
545
|
-
p[5] || (p[5] = a("svg", {
|
|
546
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
547
|
-
viewBox: "0 0 1024 1024"
|
|
548
|
-
}, [
|
|
549
|
-
a("path", {
|
|
550
|
-
fill: "currentColor",
|
|
551
|
-
d: "M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"
|
|
552
|
-
})
|
|
553
|
-
], -1))
|
|
554
|
-
], !0)
|
|
555
|
-
]),
|
|
556
|
-
_: 3
|
|
557
|
-
}, 8, ["type"])
|
|
558
|
-
], 10, Et)
|
|
559
|
-
]),
|
|
560
|
-
m(e(Ke), {
|
|
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"),
|
|
565
|
-
"destroy-on-close": "",
|
|
566
|
-
onOpen: X
|
|
567
|
-
}, {
|
|
568
|
-
footer: v(() => [
|
|
569
|
-
m(e(J), {
|
|
570
|
-
round: "",
|
|
571
|
-
type: "primary",
|
|
572
|
-
onClick: $,
|
|
573
|
-
style: { "margin-right": "16px" }
|
|
574
|
-
}, {
|
|
575
|
-
default: v(() => [
|
|
576
|
-
O(u(e(n)("cookie.saveSetting")), 1)
|
|
577
|
-
]),
|
|
578
|
-
_: 1
|
|
579
|
-
}),
|
|
580
|
-
m(e(J), {
|
|
581
|
-
round: "",
|
|
582
|
-
type: "primary",
|
|
583
|
-
onClick: K
|
|
584
|
-
}, {
|
|
585
|
-
default: v(() => [
|
|
586
|
-
O(u(e(n)("cookie.acceptAll")), 1)
|
|
587
|
-
]),
|
|
588
|
-
_: 1
|
|
589
|
-
})
|
|
590
|
-
]),
|
|
591
|
-
default: v(() => [
|
|
592
|
-
a("div", Rt, [
|
|
593
|
-
a("div", Kt, [
|
|
594
|
-
a("div", Gt, [
|
|
595
|
-
a("span", Lt, u(e(n)("cookie.necessaryCookie")), 1),
|
|
596
|
-
a("span", jt, u(e(n)("cookie.alwaysOn")), 1)
|
|
597
|
-
]),
|
|
598
|
-
a("div", Yt, u(e(n)("cookie.necessaryCookieDetail")), 1)
|
|
599
|
-
]),
|
|
600
|
-
a("div", Jt, [
|
|
601
|
-
a("div", Wt, [
|
|
602
|
-
a("span", Zt, u(e(n)("cookie.analyticalCookie")), 1),
|
|
603
|
-
a("span", Ft, [
|
|
604
|
-
m(e(Ge), {
|
|
605
|
-
modelValue: i.value,
|
|
606
|
-
"onUpdate:modelValue": p[2] || (p[2] = (f) => i.value = f)
|
|
607
|
-
}, null, 8, ["modelValue"])
|
|
608
|
-
])
|
|
609
|
-
]),
|
|
610
|
-
a("div", qt, u(e(n)("cookie.analyticalCookieDetail")), 1)
|
|
611
|
-
])
|
|
612
|
-
])
|
|
613
|
-
]),
|
|
614
|
-
_: 1
|
|
615
|
-
}, 8, ["modelValue", "width", "title"])
|
|
616
|
-
])) : w("", !0)
|
|
617
|
-
], 8, ["to"]))
|
|
618
|
-
]),
|
|
619
|
-
_: 3
|
|
620
|
-
}));
|
|
621
|
-
}
|
|
622
|
-
}), lo = /* @__PURE__ */ L(oo, [["__scopeId", "data-v-3840fed3"]]), so = {
|
|
359
|
+
}), ft = /* @__PURE__ */ R(pt, [["__scopeId", "data-v-712c28fb"]]), gt = {
|
|
623
360
|
version: "1.1",
|
|
624
361
|
xmlns: "http://www.w3.org/2000/svg",
|
|
625
362
|
width: "24",
|
|
626
363
|
height: "24",
|
|
627
364
|
viewBox: "0 0 24 24"
|
|
628
365
|
};
|
|
629
|
-
function
|
|
630
|
-
return
|
|
631
|
-
|
|
366
|
+
function yt(t, l) {
|
|
367
|
+
return o(), s("svg", gt, [...l[0] || (l[0] = [
|
|
368
|
+
c("path", {
|
|
632
369
|
fill: "currentColor",
|
|
633
370
|
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"
|
|
634
371
|
}, null, -1)
|
|
635
372
|
])]);
|
|
636
373
|
}
|
|
637
|
-
const
|
|
374
|
+
const kt = { name: "components-icon-close", render: yt }, _t = {
|
|
638
375
|
version: "1.1",
|
|
639
376
|
xmlns: "http://www.w3.org/2000/svg",
|
|
640
377
|
width: "32",
|
|
641
378
|
height: "32",
|
|
642
379
|
viewBox: "0 0 32 32"
|
|
643
380
|
};
|
|
644
|
-
function
|
|
645
|
-
return
|
|
646
|
-
|
|
381
|
+
function wt(t, l) {
|
|
382
|
+
return o(), s("svg", _t, [...l[0] || (l[0] = [
|
|
383
|
+
c("path", {
|
|
647
384
|
opacity: "0.8",
|
|
648
385
|
fill: "currentColor",
|
|
649
386
|
d: "M13.215 0.524c-7.048 0-12.762 5.714-12.762 12.762s5.714 12.762 12.762 12.762c7.048 0 12.762-5.714 12.762-12.762s-5.714-12.762-12.762-12.762zM13.215 2.809c5.786 0 10.476 4.69 10.476 10.476s-4.69 10.476-10.476 10.476c-5.786 0-10.476-4.69-10.476-10.476s4.69-10.476 10.476-10.476z"
|
|
650
387
|
}, null, -1),
|
|
651
|
-
|
|
388
|
+
c("path", {
|
|
652
389
|
opacity: "0.8",
|
|
653
390
|
fill: "currentColor",
|
|
654
391
|
d: "M23.33 23.22c0.446-0.447 1.169-0.448 1.616-0.002l4.771 4.759c0.447 0.446 0.448 1.169 0.002 1.616s-1.169 0.448-1.616 0.002l-4.771-4.759c-0.447-0.446-0.448-1.169-0.002-1.616z"
|
|
655
392
|
}, null, -1)
|
|
656
393
|
])]);
|
|
657
394
|
}
|
|
658
|
-
const
|
|
395
|
+
const se = { name: "components-icon-header-search", render: wt }, bt = {
|
|
659
396
|
version: "1.1",
|
|
660
397
|
xmlns: "http://www.w3.org/2000/svg",
|
|
661
398
|
width: "32",
|
|
662
399
|
height: "32",
|
|
663
400
|
viewBox: "0 0 32 32"
|
|
664
401
|
};
|
|
665
|
-
function
|
|
666
|
-
return
|
|
667
|
-
|
|
402
|
+
function $t(t, l) {
|
|
403
|
+
return o(), s("svg", bt, [...l[0] || (l[0] = [
|
|
404
|
+
c("path", {
|
|
668
405
|
fill: "currentColor",
|
|
669
406
|
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"
|
|
670
407
|
}, null, -1)
|
|
671
408
|
])]);
|
|
672
409
|
}
|
|
673
|
-
const
|
|
410
|
+
const Ct = { name: "components-icon-header-delete", render: $t }, It = {
|
|
674
411
|
version: "1.1",
|
|
675
412
|
xmlns: "http://www.w3.org/2000/svg",
|
|
676
413
|
width: "24",
|
|
677
414
|
height: "24",
|
|
678
415
|
viewBox: "0 0 24 24"
|
|
679
416
|
};
|
|
680
|
-
function
|
|
681
|
-
return
|
|
682
|
-
|
|
417
|
+
function xt(t, l) {
|
|
418
|
+
return o(), s("svg", It, [...l[0] || (l[0] = [
|
|
419
|
+
c("path", {
|
|
683
420
|
fill: "currentColor",
|
|
684
421
|
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"
|
|
685
422
|
}, null, -1)
|
|
686
423
|
])]);
|
|
687
424
|
}
|
|
688
|
-
const
|
|
425
|
+
const zt = { name: "components-icon-delete", render: xt }, Ot = {
|
|
689
426
|
version: "1.1",
|
|
690
427
|
xmlns: "http://www.w3.org/2000/svg",
|
|
691
428
|
width: "36",
|
|
692
429
|
height: "32",
|
|
693
430
|
viewBox: "0 0 36 32"
|
|
694
431
|
};
|
|
695
|
-
function
|
|
696
|
-
return
|
|
697
|
-
|
|
432
|
+
function St(t, l) {
|
|
433
|
+
return o(), s("svg", Ot, [...l[0] || (l[0] = [
|
|
434
|
+
c("path", {
|
|
698
435
|
fill: "currentColor",
|
|
699
436
|
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"
|
|
700
437
|
}, null, -1)
|
|
701
438
|
])]);
|
|
702
439
|
}
|
|
703
|
-
const
|
|
440
|
+
const Vt = { name: "components-icon-header-back", render: St }, Pt = { class: "o-header-search" }, Mt = { class: "o-header-search-drawer" }, Bt = {
|
|
704
441
|
key: 0,
|
|
705
442
|
class: "o-header-search-recommend-container"
|
|
706
|
-
},
|
|
443
|
+
}, Dt = ["onClick"], At = {
|
|
707
444
|
key: 1,
|
|
708
445
|
class: "o-header-search-history-container"
|
|
709
|
-
},
|
|
446
|
+
}, Tt = { class: "o-header-search-history-header" }, Ut = { class: "o-header-search-history-header-title" }, Ht = { class: "o-header-search-history-item-container" }, Et = ["onClick"], Nt = { class: "o-header-search-history-item-text" }, Kt = {
|
|
710
447
|
key: 3,
|
|
711
448
|
class: "o-header-search-hot-container"
|
|
712
|
-
},
|
|
449
|
+
}, Rt = { class: "o-header-search-hot-header" }, Lt = { class: "o-header-search-hot-item-container" }, Gt = ["onClick"], Jt = /* @__PURE__ */ H({
|
|
713
450
|
__name: "OHeaderSearch",
|
|
714
451
|
props: {
|
|
715
452
|
modelValue: { default: "" },
|
|
@@ -730,207 +467,207 @@ const ko = { name: "components-icon-header-back", render: go }, yo = { class: "o
|
|
|
730
467
|
searchTextMobile: {}
|
|
731
468
|
},
|
|
732
469
|
emits: ["update:modelValue", "update:historyItems", "clear", "search", "delete-history", "delete-history-item"],
|
|
733
|
-
setup(t, { emit:
|
|
734
|
-
const { lePadV:
|
|
735
|
-
|
|
470
|
+
setup(t, { emit: l }) {
|
|
471
|
+
const { lePadV: a } = F(), { t: p } = re(), d = t, f = l, y = D(d.modelValue), u = D(d.historyItems), r = D(!1), C = D(), n = O(() => !a.value && r.value || a.value && y.value);
|
|
472
|
+
G(
|
|
736
473
|
() => d.modelValue,
|
|
737
|
-
(
|
|
738
|
-
|
|
474
|
+
(i) => {
|
|
475
|
+
y.value !== i && (y.value = i);
|
|
739
476
|
}
|
|
740
|
-
),
|
|
741
|
-
() =>
|
|
742
|
-
(
|
|
743
|
-
|
|
477
|
+
), G(
|
|
478
|
+
() => y.value,
|
|
479
|
+
(i) => {
|
|
480
|
+
f("update:modelValue", i);
|
|
744
481
|
}
|
|
745
|
-
),
|
|
482
|
+
), G(
|
|
746
483
|
() => d.historyItems,
|
|
747
|
-
(
|
|
748
|
-
|
|
484
|
+
(i) => {
|
|
485
|
+
u.value !== i && (u.value = i);
|
|
749
486
|
}
|
|
750
|
-
),
|
|
751
|
-
() =>
|
|
752
|
-
(
|
|
753
|
-
|
|
487
|
+
), G(
|
|
488
|
+
() => u.value,
|
|
489
|
+
(i) => {
|
|
490
|
+
f("update:historyItems", i);
|
|
754
491
|
}
|
|
755
|
-
),
|
|
492
|
+
), ne(() => {
|
|
756
493
|
if (d.storeHistory && d.storageKey)
|
|
757
494
|
try {
|
|
758
|
-
const
|
|
759
|
-
Array.isArray(
|
|
495
|
+
const i = JSON.parse(localStorage.getItem(d.storageKey) || "[]");
|
|
496
|
+
Array.isArray(i) && i.length && (u.value = Array.from(/* @__PURE__ */ new Set([...u.value, ...i])));
|
|
760
497
|
} catch {
|
|
761
498
|
}
|
|
762
499
|
});
|
|
763
500
|
const b = () => {
|
|
764
501
|
r.value = !0;
|
|
765
|
-
},
|
|
766
|
-
const
|
|
767
|
-
|
|
768
|
-
},
|
|
769
|
-
|
|
770
|
-
},
|
|
771
|
-
const
|
|
772
|
-
|
|
773
|
-
},
|
|
774
|
-
|
|
775
|
-
}, S = (
|
|
776
|
-
|
|
777
|
-
},
|
|
778
|
-
|
|
779
|
-
},
|
|
780
|
-
return
|
|
781
|
-
|
|
502
|
+
}, x = () => {
|
|
503
|
+
const i = y.value.trim();
|
|
504
|
+
i && (r.value = !1, u.value.unshift(i), u.value = Array.from(new Set(u.value)), u.value.length > d.maxHistoryCount && u.value.pop(), d.storeHistory && d.storeHistory && localStorage.setItem(d.storageKey, JSON.stringify(u.value)), f("search", i), d.searchUrl && window.open(d.searchUrl + i, d.searchUrlOpenBlank ? "_blank" : "_self", "noopener noreferrer"));
|
|
505
|
+
}, B = () => {
|
|
506
|
+
y.value = "", f("clear"), a.value || (r.value = !1);
|
|
507
|
+
}, L = () => {
|
|
508
|
+
const i = [...u.value];
|
|
509
|
+
u.value = [], d.storeHistory && d.storeHistory && localStorage.removeItem(d.storageKey), f("delete-history", i);
|
|
510
|
+
}, J = (i) => {
|
|
511
|
+
u.value = u.value.filter((T) => T !== i), d.storeHistory && d.storeHistory && (u.value.length ? localStorage.setItem(d.storageKey, JSON.stringify(u.value)) : localStorage.removeItem(d.storageKey)), f("delete-history-item", i);
|
|
512
|
+
}, S = (i) => {
|
|
513
|
+
y.value = i, x();
|
|
514
|
+
}, A = () => {
|
|
515
|
+
y.value = "", r.value = !1;
|
|
516
|
+
}, E = D();
|
|
517
|
+
return Be(E, B), (i, T) => (o(), s("div", Pt, [
|
|
518
|
+
c("div", {
|
|
782
519
|
ref_key: "posWrapper",
|
|
783
|
-
ref:
|
|
784
|
-
class:
|
|
785
|
-
"o-header-search-input-pc-wrapper": !e(
|
|
786
|
-
"o-header-search-input-pc-wrapper-left": !e(
|
|
787
|
-
"o-header-search-input-pc-wrapper-right": !e(
|
|
788
|
-
"o-header-search-input-mobile-wrapper": e(
|
|
520
|
+
ref: E,
|
|
521
|
+
class: P({
|
|
522
|
+
"o-header-search-input-pc-wrapper": !e(a),
|
|
523
|
+
"o-header-search-input-pc-wrapper-left": !e(a) && t.expandDirection === "left",
|
|
524
|
+
"o-header-search-input-pc-wrapper-right": !e(a) && t.expandDirection === "right",
|
|
525
|
+
"o-header-search-input-mobile-wrapper": e(a),
|
|
789
526
|
focus: r.value
|
|
790
527
|
})
|
|
791
528
|
}, [
|
|
792
|
-
|
|
793
|
-
class:
|
|
529
|
+
c("div", {
|
|
530
|
+
class: P(["o-header-search-input-wrapper", { focus: r.value }])
|
|
794
531
|
}, [
|
|
795
|
-
e(
|
|
532
|
+
e(a) && r.value ? (o(), I(e(z), {
|
|
796
533
|
key: 0,
|
|
797
534
|
class: "o-header-search-icon",
|
|
798
|
-
onClick:
|
|
535
|
+
onClick: A
|
|
799
536
|
}, {
|
|
800
|
-
default:
|
|
801
|
-
|
|
537
|
+
default: h(() => [
|
|
538
|
+
v(e(Vt))
|
|
802
539
|
]),
|
|
803
540
|
_: 1
|
|
804
|
-
})) :
|
|
805
|
-
|
|
541
|
+
})) : g("", !0),
|
|
542
|
+
v(e(Ce), {
|
|
806
543
|
ref_key: "inputRef",
|
|
807
|
-
ref:
|
|
808
|
-
modelValue:
|
|
809
|
-
"onUpdate:modelValue":
|
|
544
|
+
ref: C,
|
|
545
|
+
modelValue: y.value,
|
|
546
|
+
"onUpdate:modelValue": T[0] || (T[0] = (k) => y.value = k),
|
|
810
547
|
class: "o-header-search-input",
|
|
811
|
-
placeholder: r.value ? t.expandedPlaceholder ?? e(
|
|
548
|
+
placeholder: r.value ? t.expandedPlaceholder ?? e(p)("search.expandedPlaceholder") : t.placeholder ?? e(p)("search.placeholder"),
|
|
812
549
|
onFocus: b,
|
|
813
|
-
onKeyup:
|
|
550
|
+
onKeyup: fe(x, ["enter"])
|
|
814
551
|
}, {
|
|
815
|
-
prefix:
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
default:
|
|
819
|
-
|
|
552
|
+
prefix: h(() => [
|
|
553
|
+
w(i.$slots, "input-prefix", {}, () => [
|
|
554
|
+
v(e(z), { class: "o-header-search-icon" }, {
|
|
555
|
+
default: h(() => [
|
|
556
|
+
v(e(se))
|
|
820
557
|
]),
|
|
821
558
|
_: 1
|
|
822
559
|
})
|
|
823
560
|
], !0)
|
|
824
561
|
]),
|
|
825
|
-
suffix:
|
|
826
|
-
|
|
827
|
-
t.clearable &&
|
|
562
|
+
suffix: h(() => [
|
|
563
|
+
w(i.$slots, "input-suffix", {}, () => [
|
|
564
|
+
t.clearable && n.value ? (o(), I(e(z), {
|
|
828
565
|
key: 0,
|
|
829
566
|
class: "o-header-search-icon close",
|
|
830
|
-
onClick:
|
|
567
|
+
onClick: B
|
|
831
568
|
}, {
|
|
832
|
-
default:
|
|
833
|
-
|
|
569
|
+
default: h(() => [
|
|
570
|
+
v(e(kt))
|
|
834
571
|
]),
|
|
835
572
|
_: 1
|
|
836
|
-
})) :
|
|
573
|
+
})) : g("", !0)
|
|
837
574
|
], !0)
|
|
838
575
|
]),
|
|
839
576
|
_: 3
|
|
840
577
|
}, 8, ["modelValue", "placeholder"]),
|
|
841
|
-
e(
|
|
578
|
+
e(a) && r.value ? (o(), s("span", {
|
|
842
579
|
key: 1,
|
|
843
580
|
class: "o-header-search-text",
|
|
844
|
-
onClick:
|
|
845
|
-
},
|
|
581
|
+
onClick: x
|
|
582
|
+
}, m(t.searchTextMobile ?? e(p)("search")), 1)) : g("", !0)
|
|
846
583
|
], 2),
|
|
847
|
-
|
|
848
|
-
|
|
584
|
+
pe(c("div", Mt, [
|
|
585
|
+
w(i.$slots, "drawer", {
|
|
849
586
|
recommendItems: t.recommendItems,
|
|
850
|
-
historyItems:
|
|
587
|
+
historyItems: u.value,
|
|
851
588
|
hotItems: t.hotItems
|
|
852
589
|
}, () => [
|
|
853
|
-
t.recommendItems.length ? (
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
(
|
|
590
|
+
t.recommendItems.length ? (o(), s("div", Bt, [
|
|
591
|
+
w(i.$slots, "recommend-header", { recommend: t.recommendItems }, void 0, !0),
|
|
592
|
+
w(i.$slots, "recommend-content", { recommend: t.recommendItems }, () => [
|
|
593
|
+
(o(!0), s(U, null, K(t.recommendItems, (k) => (o(), s("div", {
|
|
857
594
|
class: "o-header-search-recommend-item",
|
|
858
|
-
key:
|
|
859
|
-
onClick: (
|
|
860
|
-
},
|
|
595
|
+
key: k,
|
|
596
|
+
onClick: (N) => S(k)
|
|
597
|
+
}, m(k), 9, Dt))), 128))
|
|
861
598
|
], !0)
|
|
862
|
-
])) :
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
599
|
+
])) : u.value.length ? (o(), s("div", At, [
|
|
600
|
+
w(i.$slots, "history-header", { history: u.value }, () => [
|
|
601
|
+
c("div", Tt, [
|
|
602
|
+
c("span", Ut, m(t.historyTitle ?? e(p)("search.history")), 1),
|
|
603
|
+
v(e(z), {
|
|
867
604
|
class: "o-header-search-icon",
|
|
868
|
-
onClick:
|
|
605
|
+
onClick: L
|
|
869
606
|
}, {
|
|
870
|
-
default:
|
|
871
|
-
|
|
607
|
+
default: h(() => [
|
|
608
|
+
v(e(zt))
|
|
872
609
|
]),
|
|
873
610
|
_: 1
|
|
874
611
|
})
|
|
875
612
|
])
|
|
876
613
|
], !0),
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
(
|
|
880
|
-
key:
|
|
614
|
+
w(i.$slots, "history-content", { history: u.value }, () => [
|
|
615
|
+
c("div", Ht, [
|
|
616
|
+
(o(!0), s(U, null, K(u.value, (k) => (o(), s("div", {
|
|
617
|
+
key: k,
|
|
881
618
|
class: "o-header-search-history-item",
|
|
882
|
-
onClick: (
|
|
619
|
+
onClick: (N) => S(k)
|
|
883
620
|
}, [
|
|
884
|
-
|
|
885
|
-
|
|
621
|
+
c("span", Nt, m(k), 1),
|
|
622
|
+
v(e(z), {
|
|
886
623
|
class: "o-header-search-history-item-icon",
|
|
887
|
-
onClick:
|
|
624
|
+
onClick: ge((N) => J(k), ["stop"])
|
|
888
625
|
}, {
|
|
889
|
-
default:
|
|
890
|
-
|
|
626
|
+
default: h(() => [
|
|
627
|
+
v(e(Ct), { class: "icon-delete" })
|
|
891
628
|
]),
|
|
892
629
|
_: 1
|
|
893
630
|
}, 8, ["onClick"])
|
|
894
|
-
], 8,
|
|
631
|
+
], 8, Et))), 128))
|
|
895
632
|
])
|
|
896
633
|
], !0)
|
|
897
|
-
])) :
|
|
898
|
-
(t.recommendItems.length ||
|
|
634
|
+
])) : g("", !0),
|
|
635
|
+
(t.recommendItems.length || u.value.length) && t.hotItems.length ? (o(), I(e(Ie), {
|
|
899
636
|
key: 2,
|
|
900
637
|
class: "o-header-search-drawer-divider"
|
|
901
|
-
})) :
|
|
902
|
-
t.hotItems.length ? (
|
|
903
|
-
|
|
904
|
-
|
|
638
|
+
})) : g("", !0),
|
|
639
|
+
t.hotItems.length ? (o(), s("div", Kt, [
|
|
640
|
+
w(i.$slots, "hot-header", { hot: t.hotItems }, () => [
|
|
641
|
+
c("div", Rt, m(t.hotTitle ?? e(p)("search.hot")), 1)
|
|
905
642
|
], !0),
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
(
|
|
909
|
-
key:
|
|
643
|
+
w(i.$slots, "hot-content", { hot: t.hotItems }, () => [
|
|
644
|
+
c("div", Lt, [
|
|
645
|
+
(o(!0), s(U, null, K(t.hotItems, (k) => (o(), s("div", {
|
|
646
|
+
key: k,
|
|
910
647
|
class: "o-header-search-hot-item",
|
|
911
|
-
onClick: (
|
|
912
|
-
},
|
|
648
|
+
onClick: (N) => S(k)
|
|
649
|
+
}, m(k), 9, Gt))), 128))
|
|
913
650
|
])
|
|
914
651
|
], !0)
|
|
915
|
-
])) :
|
|
652
|
+
])) : g("", !0)
|
|
916
653
|
], !0)
|
|
917
654
|
], 512), [
|
|
918
|
-
[
|
|
655
|
+
[ye, r.value]
|
|
919
656
|
])
|
|
920
657
|
], 2),
|
|
921
|
-
e(
|
|
658
|
+
e(a) ? (o(), I(e(z), {
|
|
922
659
|
key: 0,
|
|
923
660
|
class: "o-header-search-icon-mobile",
|
|
924
661
|
onClick: b
|
|
925
662
|
}, {
|
|
926
|
-
default:
|
|
927
|
-
|
|
663
|
+
default: h(() => [
|
|
664
|
+
v(e(se))
|
|
928
665
|
]),
|
|
929
666
|
_: 1
|
|
930
|
-
})) :
|
|
667
|
+
})) : g("", !0)
|
|
931
668
|
]));
|
|
932
669
|
}
|
|
933
|
-
}),
|
|
670
|
+
}), Wt = /* @__PURE__ */ R(Jt, [["__scopeId", "data-v-cce80de4"]]), jt = {
|
|
934
671
|
locale: "zh-CN",
|
|
935
672
|
// common
|
|
936
673
|
"common.empty": "暂无数据",
|
|
@@ -953,7 +690,7 @@ const ko = { name: "components-icon-header-back", render: go }, yo = { class: "o
|
|
|
953
690
|
"select.confirm": "确定",
|
|
954
691
|
// input
|
|
955
692
|
"input.limit": "<b>{0}</b>/{1}"
|
|
956
|
-
},
|
|
693
|
+
}, Ft = {
|
|
957
694
|
locale: "en-US",
|
|
958
695
|
// common
|
|
959
696
|
"common.empty": "No Data",
|
|
@@ -976,51 +713,51 @@ const ko = { name: "components-icon-header-back", render: go }, yo = { class: "o
|
|
|
976
713
|
"select.confirm": "Ok",
|
|
977
714
|
// input
|
|
978
715
|
"input.limit": "<b>{0}</b>/{1}"
|
|
979
|
-
},
|
|
716
|
+
}, Yt = /* @__PURE__ */ H({
|
|
980
717
|
__name: "OPlusConfigProvider",
|
|
981
718
|
props: {
|
|
982
719
|
locale: {},
|
|
983
720
|
theme: { default: "light" }
|
|
984
721
|
},
|
|
985
722
|
setup(t) {
|
|
986
|
-
const
|
|
987
|
-
locale:
|
|
988
|
-
theme:
|
|
723
|
+
const l = t, a = ke({
|
|
724
|
+
locale: O(() => l.locale),
|
|
725
|
+
theme: O(() => l.theme)
|
|
989
726
|
});
|
|
990
|
-
return Pe
|
|
991
|
-
locale: t.locale === "zh" ? e(
|
|
727
|
+
return _e(Pe, a), (p, d) => (o(), I(e(xe), {
|
|
728
|
+
locale: t.locale === "zh" ? e(jt) : e(Ft)
|
|
992
729
|
}, {
|
|
993
|
-
default:
|
|
994
|
-
|
|
730
|
+
default: h(() => [
|
|
731
|
+
w(p.$slots, "default")
|
|
995
732
|
]),
|
|
996
733
|
_: 3
|
|
997
734
|
}, 8, ["locale"]));
|
|
998
735
|
}
|
|
999
|
-
}),
|
|
736
|
+
}), Zt = {
|
|
1000
737
|
version: "1.1",
|
|
1001
738
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1002
739
|
width: "24",
|
|
1003
740
|
height: "24",
|
|
1004
741
|
viewBox: "0 0 24 24"
|
|
1005
742
|
};
|
|
1006
|
-
function
|
|
1007
|
-
return
|
|
1008
|
-
|
|
743
|
+
function qt(t, l) {
|
|
744
|
+
return o(), s("svg", Zt, [...l[0] || (l[0] = [
|
|
745
|
+
c("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)
|
|
1009
746
|
])]);
|
|
1010
747
|
}
|
|
1011
|
-
const
|
|
748
|
+
const Qt = { name: "components-icon-chevron-right", render: qt }, Xt = { class: "section-wrapper" }, e0 = {
|
|
1012
749
|
key: 1,
|
|
1013
750
|
class: "section-title"
|
|
1014
|
-
},
|
|
751
|
+
}, t0 = {
|
|
1015
752
|
key: 2,
|
|
1016
753
|
class: "section-subtitle"
|
|
1017
|
-
},
|
|
754
|
+
}, o0 = {
|
|
1018
755
|
key: 1,
|
|
1019
756
|
class: "section-body"
|
|
1020
|
-
},
|
|
757
|
+
}, l0 = {
|
|
1021
758
|
key: 2,
|
|
1022
759
|
class: "section-footer"
|
|
1023
|
-
},
|
|
760
|
+
}, a0 = /* @__PURE__ */ H({
|
|
1024
761
|
__name: "OSection",
|
|
1025
762
|
props: {
|
|
1026
763
|
title: { default: void 0 },
|
|
@@ -1031,149 +768,149 @@ const Ho = { name: "components-icon-chevron-right", render: Uo }, Ro = { class:
|
|
|
1031
768
|
footerHref: { default: void 0 }
|
|
1032
769
|
},
|
|
1033
770
|
setup(t) {
|
|
1034
|
-
const
|
|
1035
|
-
return (
|
|
1036
|
-
class:
|
|
771
|
+
const l = t;
|
|
772
|
+
return (a, p) => (o(), s("div", {
|
|
773
|
+
class: P(["app-section", { "is-full": l.full }])
|
|
1037
774
|
}, [
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
775
|
+
c("div", Xt, [
|
|
776
|
+
w(a.$slots, "main", {}, () => [
|
|
777
|
+
a.$slots.header || l.title || l.subtitle ? (o(), s("div", {
|
|
1041
778
|
key: 0,
|
|
1042
|
-
class:
|
|
779
|
+
class: P(["section-header", { "is-left": !l.headerJustifyCenter }])
|
|
1043
780
|
}, [
|
|
1044
|
-
|
|
1045
|
-
e(
|
|
781
|
+
w(a.$slots, "header", {}, () => [
|
|
782
|
+
e(ze)(l.title) ? (o(!0), s(U, { key: 0 }, K(l.title, (d) => (o(), s("h2", {
|
|
1046
783
|
key: d,
|
|
1047
784
|
class: "section-title"
|
|
1048
|
-
},
|
|
1049
|
-
|
|
1050
|
-
|
|
785
|
+
}, m(d), 1))), 128)) : a.$slots.title || l.title ? (o(), s("h2", e0, [
|
|
786
|
+
w(a.$slots, "title", {}, () => [
|
|
787
|
+
V(m(l.title), 1)
|
|
1051
788
|
], !0)
|
|
1052
|
-
])) :
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
789
|
+
])) : g("", !0),
|
|
790
|
+
a.$slots.subtitle || l.subtitle ? (o(), s("p", t0, [
|
|
791
|
+
w(a.$slots, "subtitle", {}, () => [
|
|
792
|
+
V(m(l.subtitle), 1)
|
|
1056
793
|
], !0)
|
|
1057
|
-
])) :
|
|
794
|
+
])) : g("", !0)
|
|
1058
795
|
], !0)
|
|
1059
|
-
], 2)) :
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
])) :
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
href:
|
|
796
|
+
], 2)) : g("", !0),
|
|
797
|
+
a.$slots.default ? (o(), s("div", o0, [
|
|
798
|
+
w(a.$slots, "default", {}, void 0, !0)
|
|
799
|
+
])) : g("", !0),
|
|
800
|
+
a.$slots.footer || l.footer ? (o(), s("div", l0, [
|
|
801
|
+
w(a.$slots, "footer", {}, () => [
|
|
802
|
+
v(e(Oe), {
|
|
803
|
+
href: l.footerHref,
|
|
1067
804
|
target: "_blank"
|
|
1068
805
|
}, {
|
|
1069
|
-
suffix:
|
|
1070
|
-
|
|
1071
|
-
default:
|
|
1072
|
-
|
|
806
|
+
suffix: h(() => [
|
|
807
|
+
v(e(z), { class: "footer-icon" }, {
|
|
808
|
+
default: h(() => [
|
|
809
|
+
v(e(Qt))
|
|
1073
810
|
]),
|
|
1074
811
|
_: 1
|
|
1075
812
|
})
|
|
1076
813
|
]),
|
|
1077
|
-
default:
|
|
1078
|
-
|
|
814
|
+
default: h(() => [
|
|
815
|
+
V(m(l.footer) + " ", 1)
|
|
1079
816
|
]),
|
|
1080
817
|
_: 1
|
|
1081
818
|
}, 8, ["href"])
|
|
1082
819
|
], !0)
|
|
1083
|
-
])) :
|
|
820
|
+
])) : g("", !0)
|
|
1084
821
|
], !0)
|
|
1085
822
|
])
|
|
1086
823
|
], 2));
|
|
1087
824
|
}
|
|
1088
|
-
}),
|
|
825
|
+
}), s0 = /* @__PURE__ */ R(a0, [["__scopeId", "data-v-57b81782"]]), n0 = {
|
|
1089
826
|
version: "1.1",
|
|
1090
827
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1091
828
|
width: "24",
|
|
1092
829
|
height: "24",
|
|
1093
830
|
viewBox: "0 0 24 24"
|
|
1094
831
|
};
|
|
1095
|
-
function
|
|
1096
|
-
return
|
|
1097
|
-
|
|
832
|
+
function c0(t, l) {
|
|
833
|
+
return o(), s("svg", n0, [...l[0] || (l[0] = [
|
|
834
|
+
c("path", {
|
|
1098
835
|
opacity: "0.8",
|
|
1099
836
|
fill: "currentColor",
|
|
1100
837
|
d: "M12 1.992c0.387 0 0.7 0.313 0.7 0.7v1.2c0 0.387-0.313 0.7-0.7 0.7s-0.7-0.313-0.7-0.7v-1.2c0-0.387 0.313-0.7 0.7-0.7zM6.769 6.747c-0.273 0.273-0.717 0.273-0.99 0l-0.849-0.849c-0.137-0.137-0.205-0.316-0.205-0.495s0.068-0.358 0.205-0.495c0.273-0.273 0.717-0.273 0.99 0l0.849 0.849c0.136 0.137 0.205 0.316 0.205 0.495s-0.068 0.358-0.205 0.495zM18.192 6.747c-0.273 0.273-0.717 0.273-0.99 0-0.137-0.137-0.205-0.316-0.205-0.495s0.068-0.358 0.205-0.495l0.849-0.849c0.273-0.273 0.717-0.273 0.99 0 0.137 0.137 0.205 0.316 0.205 0.495s-0.068 0.358-0.205 0.495l-0.849 0.849zM5.3 12c0-3.7 3-6.7 6.7-6.7s6.7 3 6.7 6.7-3 6.7-6.7 6.7c-3.7 0-6.7-3-6.7-6.7zM17.3 12c0-2.927-2.373-5.3-5.3-5.3s-5.3 2.373-5.3 5.3c0 2.927 2.373 5.3 5.3 5.3s5.3-2.373 5.3-5.3zM4.594 11.969c0 0.387-0.313 0.7-0.7 0.7h-1.2c-0.387 0-0.7-0.313-0.7-0.7s0.313-0.7 0.7-0.7h1.2c0.386 0 0.7 0.313 0.7 0.7zM21.977 11.999c0 0.387-0.314 0.7-0.7 0.7h-1.2c-0.387 0-0.7-0.313-0.7-0.7s0.313-0.7 0.7-0.7h1.2c0.387 0 0.7 0.313 0.7 0.7zM5.921 19.060c-0.273 0.273-0.717 0.273-0.99 0-0.137-0.137-0.205-0.316-0.205-0.495s0.068-0.358 0.205-0.495l0.849-0.849c0.273-0.273 0.717-0.273 0.99 0 0.137 0.137 0.205 0.316 0.205 0.495s-0.068 0.358-0.205 0.495l-0.849 0.849zM19.041 19.060c-0.273 0.273-0.717 0.273-0.99 0l-0.849-0.849c-0.137-0.137-0.205-0.316-0.205-0.495s0.068-0.358 0.205-0.495c0.273-0.273 0.717-0.273 0.99 0l0.849 0.849c0.137 0.137 0.205 0.316 0.205 0.495s-0.068 0.358-0.205 0.495zM11.971 19.376c0.387 0 0.7 0.313 0.7 0.7v1.2c0 0.387-0.313 0.7-0.7 0.7s-0.7-0.313-0.7-0.7v-1.2c0-0.387 0.313-0.7 0.7-0.7z"
|
|
1101
838
|
}, null, -1)
|
|
1102
839
|
])]);
|
|
1103
840
|
}
|
|
1104
|
-
const
|
|
841
|
+
const Y = { name: "components-icon-sun", render: c0 }, r0 = {
|
|
1105
842
|
version: "1.1",
|
|
1106
843
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1107
844
|
width: "24",
|
|
1108
845
|
height: "24",
|
|
1109
846
|
viewBox: "0 0 24 24"
|
|
1110
847
|
};
|
|
1111
|
-
function
|
|
1112
|
-
return
|
|
1113
|
-
|
|
848
|
+
function i0(t, l) {
|
|
849
|
+
return o(), s("svg", r0, [...l[0] || (l[0] = [
|
|
850
|
+
c("path", {
|
|
1114
851
|
opacity: "0.8",
|
|
1115
852
|
fill: "currentColor",
|
|
1116
853
|
d: "M12 2.3c5.357 0 9.7 4.343 9.7 9.7s-4.343 9.7-9.7 9.7c-4.651 0-8.622-3.298-9.515-7.806-0.101-0.509 0.369-0.948 0.87-0.812 0.531 0.144 1.082 0.218 1.645 0.218 3.479 0 6.3-2.82 6.3-6.3 0-1.276-0.379-2.494-1.079-3.527-0.291-0.43-0.029-1.016 0.486-1.086 0.425-0.057 0.857-0.086 1.293-0.086zM12 3.7l-0.042 0.001 0.058 0.121c0.402 0.887 0.634 1.85 0.677 2.845l0.007 0.333c0 4.253-3.447 7.7-7.7 7.7-0.229 0-0.457-0.010-0.682-0.030l-0.186-0.021 0.076 0.218c1.147 3.123 4.102 5.321 7.528 5.429l0.264 0.004c4.584 0 8.3-3.716 8.3-8.3s-3.716-8.3-8.3-8.3z"
|
|
1117
854
|
}, null, -1)
|
|
1118
855
|
])]);
|
|
1119
856
|
}
|
|
1120
|
-
const
|
|
857
|
+
const Z = { name: "components-icon-moon", render: i0 }, d0 = { class: "o-theme-switcher" }, u0 = {
|
|
1121
858
|
key: 1,
|
|
1122
859
|
class: "o-theme-switcher-mobile"
|
|
1123
|
-
},
|
|
860
|
+
}, h0 = /* @__PURE__ */ H({
|
|
1124
861
|
__name: "OThemeSwitcher",
|
|
1125
862
|
props: {
|
|
1126
863
|
theme: { default: "light" },
|
|
1127
864
|
type: { default: "auto" },
|
|
1128
865
|
lightValue: { default: "light" },
|
|
1129
866
|
darkValue: { default: "dark" },
|
|
1130
|
-
lightIcon: { default:
|
|
1131
|
-
darkIcon: { default:
|
|
867
|
+
lightIcon: { default: Y },
|
|
868
|
+
darkIcon: { default: Z }
|
|
1132
869
|
},
|
|
1133
870
|
emits: ["update:theme", "change"],
|
|
1134
|
-
setup(t, { emit:
|
|
1135
|
-
const
|
|
871
|
+
setup(t, { emit: l }) {
|
|
872
|
+
const a = t, p = l, { gtPhone: d } = F(), f = O({
|
|
1136
873
|
get() {
|
|
1137
|
-
return
|
|
874
|
+
return a.theme;
|
|
1138
875
|
},
|
|
1139
876
|
set(r) {
|
|
1140
|
-
|
|
877
|
+
p("update:theme", r), p("change", r);
|
|
1141
878
|
}
|
|
1142
|
-
}),
|
|
1143
|
-
|
|
879
|
+
}), y = O(() => a.type === "common" || a.type === "auto" && d.value), u = () => {
|
|
880
|
+
f.value = f.value === a.lightValue ? a.darkValue : a.lightValue;
|
|
1144
881
|
};
|
|
1145
|
-
return (r,
|
|
1146
|
-
|
|
882
|
+
return (r, C) => (o(), s("div", d0, [
|
|
883
|
+
y.value ? (o(), s("div", {
|
|
1147
884
|
key: 0,
|
|
1148
885
|
class: "o-theme-switcher-common",
|
|
1149
|
-
onClick:
|
|
886
|
+
onClick: u
|
|
1150
887
|
}, [
|
|
1151
|
-
|
|
1152
|
-
default:
|
|
1153
|
-
|
|
888
|
+
v(e(z), { class: "o-theme-icon" }, {
|
|
889
|
+
default: h(() => [
|
|
890
|
+
f.value === t.lightValue ? (o(), I(e(Z), { key: 0 })) : (o(), I(e(Y), { key: 1 }))
|
|
1154
891
|
]),
|
|
1155
892
|
_: 1
|
|
1156
893
|
})
|
|
1157
|
-
])) : (
|
|
1158
|
-
|
|
1159
|
-
modelValue:
|
|
1160
|
-
"onUpdate:modelValue":
|
|
894
|
+
])) : (o(), s("div", u0, [
|
|
895
|
+
v(e(ce), {
|
|
896
|
+
modelValue: f.value,
|
|
897
|
+
"onUpdate:modelValue": C[0] || (C[0] = (n) => f.value = n),
|
|
1161
898
|
class: "o-theme-switch",
|
|
1162
899
|
"checked-value": t.darkValue,
|
|
1163
900
|
"unchecked-value": t.lightValue
|
|
1164
901
|
}, {
|
|
1165
|
-
on:
|
|
1166
|
-
|
|
1167
|
-
default:
|
|
1168
|
-
|
|
902
|
+
on: h(() => [
|
|
903
|
+
v(e(z), { class: "o-theme-icon" }, {
|
|
904
|
+
default: h(() => [
|
|
905
|
+
v(e(Y))
|
|
1169
906
|
]),
|
|
1170
907
|
_: 1
|
|
1171
908
|
})
|
|
1172
909
|
]),
|
|
1173
|
-
off:
|
|
1174
|
-
|
|
1175
|
-
default:
|
|
1176
|
-
|
|
910
|
+
off: h(() => [
|
|
911
|
+
v(e(z), { class: "o-theme-icon" }, {
|
|
912
|
+
default: h(() => [
|
|
913
|
+
v(e(Z))
|
|
1177
914
|
]),
|
|
1178
915
|
_: 1
|
|
1179
916
|
})
|
|
@@ -1183,28 +920,26 @@ const oe = { name: "components-icon-moon", render: qo }, Qo = { class: "o-theme-
|
|
|
1183
920
|
]))
|
|
1184
921
|
]));
|
|
1185
922
|
}
|
|
1186
|
-
}),
|
|
1187
|
-
OBanner:
|
|
1188
|
-
OCookieNotice:
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
}, hl = {
|
|
923
|
+
}), v0 = /* @__PURE__ */ R(h0, [["__scopeId", "data-v-837e14fb"]]), m0 = {
|
|
924
|
+
OBanner: Re,
|
|
925
|
+
OCookieNotice: ft,
|
|
926
|
+
OHeaderSearch: Wt,
|
|
927
|
+
OPlusConfigProvider: Yt,
|
|
928
|
+
OSection: s0,
|
|
929
|
+
OThemeSwitcher: v0
|
|
930
|
+
}, _0 = {
|
|
1195
931
|
install: (t) => {
|
|
1196
|
-
Object.entries(
|
|
1197
|
-
t.component(
|
|
932
|
+
Object.entries(m0).forEach(([l, a]) => {
|
|
933
|
+
t.component(l, a);
|
|
1198
934
|
});
|
|
1199
935
|
}
|
|
1200
936
|
};
|
|
1201
937
|
export {
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
hl as default
|
|
938
|
+
Re as OBanner,
|
|
939
|
+
ft as OCookieNotice,
|
|
940
|
+
Wt as OHeaderSearch,
|
|
941
|
+
Yt as OPlusConfigProvider,
|
|
942
|
+
s0 as OSection,
|
|
943
|
+
v0 as OThemeSwitcher,
|
|
944
|
+
_0 as default
|
|
1210
945
|
};
|