@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.
@@ -1,44 +1,35 @@
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
- import "element-plus/es/components/button/style/index";
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 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", {
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: le({
20
- "--content-wrapper-vertical-paddingTop": y.value === e(o) ? void 0 : y.value,
21
- "--content-wrapper-vertical-paddingBottom": d.value === e(o) ? void 0 : d.value
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
- I(g.$slots, "default", {}, void 0, !0)
20
+ w(f.$slots, "default", {}, void 0, !0)
25
21
  ], 4));
26
22
  }
27
- }), L = (t, o) => {
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
- }, Ze = {
26
+ }, Ee = {
36
27
  key: 2,
37
28
  class: "banner-subtitle"
38
- }, Fe = {
29
+ }, Ne = {
39
30
  key: 4,
40
31
  class: "banner-opts"
41
- }, qe = /* @__PURE__ */ R({
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 o = t, { isLight: s } = Ue("opendesignplus", document.domain || "localhost"), { isPhone: y } = W(), d = z(() => o.options), g = E(""), _ = (r) => {
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
- g.value = d.value[r].bg_theme ?? "light";
42
+ f.value = d.value[r].bg_theme ?? "light";
52
43
  }, 100);
53
- }, n = (r, k) => {
54
- r && !k && window.open(r);
44
+ }, u = (r, C) => {
45
+ r && !C && window.open(r);
55
46
  };
56
- return (r, k) => (l(), c("div", {
57
- class: M(["home-banner", t.size])
47
+ return (r, C) => (o(), s("div", {
48
+ class: P(["home-banner", t.size])
58
49
  }, [
59
- t.size === "tiny" ? (l(), c("div", je, u(d.value[1].title), 1)) : e(y) ? (l(), x(e(ie), {
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": g.value,
55
+ "data-o-theme": f.value,
65
56
  arrow: "never",
66
57
  "auto-play": !0,
67
- onBeforeChange: _
58
+ onBeforeChange: y
68
59
  }, {
69
- default: v(() => [
70
- (l(!0), c(G, null, Y(d.value, (i, b) => (l(), x(e(ce), {
71
- class: M(["banner-item", `banner-item${b}`])
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: v(() => [
74
- m(de, { class: "banner-wrapper" }, {
75
- default: v(() => [
76
- m(e(re), {
64
+ default: h(() => [
65
+ v(le, { class: "banner-wrapper" }, {
66
+ default: h(() => [
67
+ v(e(oe), {
77
68
  class: "banner-bg",
78
- src: i.bg,
79
- onClick: (C) => n(i.href)
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"])) : (l(), x(e(ie), {
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": g.value,
97
- onBeforeChange: _
87
+ "data-o-theme": f.value,
88
+ onBeforeChange: y
98
89
  }, {
99
- default: v(() => [
100
- (l(!0), c(G, null, Y(d.value, (i, b) => (l(), x(e(ce), {
90
+ default: h(() => [
91
+ (o(!0), s(U, null, K(d.value, (n, b) => (o(), I(e(te), {
101
92
  key: b,
102
- class: M(["banner-item", `banner-item${b}`])
93
+ class: P(["banner-item", `banner-item${b}`])
103
94
  }, {
104
- default: v(() => [
105
- m(e(re), {
106
- class: M(["banner-bg", {
107
- "with-sticky-bg": i.withStickyBg,
108
- "in-dark": !e(s),
109
- "cursor-pointer": i.href && !i.btn
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: i.bg,
112
- style: le({
113
- "--pad-offset": i.pad_offset
102
+ src: n.bg,
103
+ style: q({
104
+ "--pad-offset": n.pad_offset
114
105
  }),
115
- onClick: (C) => n(i.href, i.btn)
106
+ onClick: (x) => u(n.href, n.btn)
116
107
  }, {
117
- default: v(() => [
118
- m(de, {
119
- class: M(["banner-wrapper", ["banner-wrapper", t.contentJustifyCenter ? "content-center" : ""]])
108
+ default: h(() => [
109
+ v(le, {
110
+ class: P(["banner-wrapper", ["banner-wrapper", t.contentJustifyCenter ? "content-center" : ""]])
120
111
  }, {
121
- default: v(() => [
122
- a("div", Ye, [
123
- !e(y) && i.attach ? (l(), c("img", {
112
+ default: h(() => [
113
+ c("div", Te, [
114
+ !e(p) && n.attach ? (o(), s("img", {
124
115
  key: 0,
125
- src: i.attach,
116
+ src: n.attach,
126
117
  class: "banner-attach"
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", {
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: 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
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)) : w("", !0),
141
- i.btn ? (l(), c("div", Fe, [
142
- m(e(q), {
143
- href: i.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: v(() => [
150
- O(u(i.btn), 1)
140
+ default: h(() => [
141
+ V(m(n.btn), 1)
151
142
  ]),
152
143
  _: 2
153
144
  }, 1032, ["href", "size"])
154
- ])) : w("", !0)
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
- }), Qe = /* @__PURE__ */ L(qe, [["__scopeId", "data-v-38a33983"]]), Xe = (t) => {
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
- }, st = { class: "cookie-notice-content" }, at = ["type"], nt = { class: "cookie-notice-left" }, it = {
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
- }, ct = ["href"], rt = { class: "cookie-title" }, dt = { class: "cookie-desc" }, ut = ["href"], ht = {
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
- }, 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({
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
- aboutPathZh: {},
238
- aboutPathEn: {},
239
- teleportTarget: {}
177
+ detailUrl: {},
178
+ wrapper: {},
179
+ cookieDomain: {}
240
180
  },
241
181
  emits: ["update:visible"],
242
- setup(t, { expose: o, emit: s }) {
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);
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
- }, 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());
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, 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(() => [
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 ? $() : K(), H(!1);
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, $(), H(!1);
227
+ b.value = !0, k(), E(!1);
288
228
  }
289
229
  }
290
- ]), A = (p) => {
291
- p && (b.value = U());
230
+ ]), de = ($) => {
231
+ $ && (b.value = T());
292
232
  };
293
- return o({
233
+ return l({
294
234
  check() {
295
- U() === C.value && S();
235
+ T() === x.value && S();
296
236
  }
297
- }), (p, f) => (l(), x(e(ye), null, {
298
- default: v(() => [
299
- (l(), x(me, {
300
- to: t.teleportTarget || "#app"
237
+ }), ($, _) => (o(), I(e(Ve), null, {
238
+ default: h(() => [
239
+ (o(), I(ve, {
240
+ to: t.wrapper || "#app"
301
241
  }, [
302
- e(C) ? (l(), c("div", lt, [
303
- a("div", st, [
304
- a("div", {
305
- type: e(n),
306
- class: M({ "cookie-notice-wrap-grid": t.enableGrid, "cookie-notice-wrap": !t.enableGrid })
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
- a("div", nt, [
309
- k.value ? (l(), c("p", it, [
310
- O(u(e(r)("cookie.desc")) + " ", 1),
311
- a("a", {
312
- href: t.aboutPathZh,
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
- }, 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
- a("p", dt, [
319
- O(u(e(r)("cookie.desc")) + " ", 1),
320
- a("a", {
321
- href: t.aboutPathEn,
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
- }, u(e(r)("cookie.about")), 9, ut),
325
- f[4] || (f[4] = O(". ", -1))
264
+ }, m(e(r)("cookie.about")), 9, qe),
265
+ _[4] || (_[4] = V(". ", -1))
326
266
  ])
327
267
  ], 64))
328
268
  ]),
329
- k.value ? w("", !0) : (l(), c("div", ht, [
330
- m(e(q), {
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: v(() => [
337
- O(u(e(r)("cookie.acceptAll")), 1)
276
+ default: h(() => [
277
+ V(m(e(r)("cookie.acceptAll")), 1)
338
278
  ]),
339
279
  _: 1
340
280
  }),
341
- m(e(q), {
281
+ v(e(j), {
342
282
  round: "pill",
343
283
  variant: "outline",
344
284
  color: "primary",
345
- onClick: K
285
+ onClick: N
346
286
  }, {
347
- default: v(() => [
348
- O(u(e(r)("cookie.rejectAll")), 1)
287
+ default: h(() => [
288
+ V(m(e(r)("cookie.rejectAll")), 1)
349
289
  ]),
350
290
  _: 1
351
291
  }),
352
- m(e(q), {
292
+ v(e(j), {
353
293
  round: "pill",
354
294
  variant: "outline",
355
295
  color: "primary",
356
- onClick: f[0] || (f[0] = (B) => H(!0))
296
+ onClick: _[0] || (_[0] = (M) => E(!0))
357
297
  }, {
358
- default: v(() => [
359
- O(u(e(r)("cookie.manage")), 1)
298
+ default: h(() => [
299
+ V(m(e(r)("cookie.manage")), 1)
360
300
  ]),
361
301
  _: 1
362
302
  })
363
303
  ])),
364
- m(e(D), {
304
+ v(e(z), {
365
305
  class: "cookie-notice-close",
366
- type: e(n),
367
- onClick: f[1] || (f[1] = (B) => S(!1))
306
+ type: e(u),
307
+ onClick: _[1] || (_[1] = (M) => S(!1))
368
308
  }, {
369
- default: v(() => [
370
- m(e(Ve))
309
+ default: h(() => [
310
+ v(e(be))
371
311
  ]),
372
312
  _: 1
373
313
  }, 8, ["type"])
374
- ], 10, at)
314
+ ], 10, Je)
375
315
  ]),
376
- m(e(Ee), {
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),
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: X.value,
383
- onChange: A
322
+ actions: ie.value,
323
+ onChange: de
384
324
  }, {
385
- header: v(() => [
386
- a("span", vt, u(e(r)("cookie.manage")), 1)
325
+ header: h(() => [
326
+ c("span", Xe, m(e(r)("cookie.manage")), 1)
387
327
  ]),
388
- default: v(() => [
389
- a("div", mt, [
390
- a("div", pt, [
391
- a("div", ft, [
392
- a("span", gt, u(e(r)("cookie.necessaryCookie")), 1),
393
- a("span", kt, u(e(r)("cookie.alwaysOn")), 1)
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
- a("div", yt, u(e(r)("cookie.necessaryCookieDetail")), 1)
335
+ c("div", st, m(e(r)("cookie.necessaryCookieDetail")), 1)
396
336
  ]),
397
- a("div", _t, [
398
- a("div", bt, [
399
- a("span", wt, u(e(r)("cookie.analyticalCookie")), 1),
400
- a("span", $t, [
401
- m(e(ge), {
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": f[2] || (f[2] = (B) => b.value = B)
343
+ "onUpdate:modelValue": _[2] || (_[2] = (M) => b.value = M)
404
344
  }, null, 8, ["modelValue"])
405
345
  ])
406
346
  ]),
407
- a("div", Ct, u(e(r)("cookie.analyticalCookieDetail")), 1)
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
- ])) : w("", !0)
353
+ ])) : g("", !0)
414
354
  ], 8, ["to"]))
415
355
  ]),
416
356
  _: 1
417
357
  }));
418
358
  }
419
- }), zt = /* @__PURE__ */ L(At, [["__scopeId", "data-v-5ba95c2f"]]), Pt = {
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 ao(t, o) {
630
- return l(), c("svg", so, [...o[0] || (o[0] = [
631
- a("path", {
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 no = { name: "components-icon-close", render: ao }, io = {
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 co(t, o) {
645
- return l(), c("svg", io, [...o[0] || (o[0] = [
646
- a("path", {
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
- a("path", {
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 ve = { name: "components-icon-header-search", render: co }, ro = {
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 uo(t, o) {
666
- return l(), c("svg", ro, [...o[0] || (o[0] = [
667
- a("path", {
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 ho = { name: "components-icon-header-delete", render: uo }, vo = {
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 mo(t, o) {
681
- return l(), c("svg", vo, [...o[0] || (o[0] = [
682
- a("path", {
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 po = { name: "components-icon-delete", render: mo }, fo = {
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 go(t, o) {
696
- return l(), c("svg", fo, [...o[0] || (o[0] = [
697
- a("path", {
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 ko = { name: "components-icon-header-back", render: go }, yo = { class: "o-header-search" }, _o = { class: "o-header-search-drawer" }, bo = {
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
- }, wo = ["onClick"], $o = {
443
+ }, Dt = ["onClick"], At = {
707
444
  key: 1,
708
445
  class: "o-header-search-history-container"
709
- }, Co = { class: "o-header-search-history-header" }, Io = { class: "o-header-search-history-header-title" }, Oo = { class: "o-header-search-history-item-container" }, xo = ["onClick"], So = { class: "o-header-search-history-item-text" }, Ao = {
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
- }, zo = { class: "o-header-search-hot-header" }, Po = { class: "o-header-search-hot-item-container" }, Vo = ["onClick"], Eo = /* @__PURE__ */ R({
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: o }) {
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(
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
- (h) => {
738
- _.value !== h && (_.value = h);
474
+ (i) => {
475
+ y.value !== i && (y.value = i);
739
476
  }
740
- ), j(
741
- () => _.value,
742
- (h) => {
743
- g("update:modelValue", h);
477
+ ), G(
478
+ () => y.value,
479
+ (i) => {
480
+ f("update:modelValue", i);
744
481
  }
745
- ), j(
482
+ ), G(
746
483
  () => d.historyItems,
747
- (h) => {
748
- n.value !== h && (n.value = h);
484
+ (i) => {
485
+ u.value !== i && (u.value = i);
749
486
  }
750
- ), j(
751
- () => n.value,
752
- (h) => {
753
- g("update:historyItems", h);
487
+ ), G(
488
+ () => u.value,
489
+ (i) => {
490
+ f("update:historyItems", i);
754
491
  }
755
- ), Q(() => {
492
+ ), ne(() => {
756
493
  if (d.storeHistory && d.storageKey)
757
494
  try {
758
- const h = JSON.parse(localStorage.getItem(d.storageKey) || "[]");
759
- Array.isArray(h) && h.length && (n.value = Array.from(/* @__PURE__ */ new Set([...n.value, ...h])));
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
- }, 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, [
781
- a("div", {
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: H,
784
- class: M({
785
- "o-header-search-input-pc-wrapper": !e(s),
786
- "o-header-search-input-pc-wrapper-left": !e(s) && t.expandDirection === "left",
787
- "o-header-search-input-pc-wrapper-right": !e(s) && t.expandDirection === "right",
788
- "o-header-search-input-mobile-wrapper": e(s),
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
- a("div", {
793
- class: M(["o-header-search-input-wrapper", { focus: r.value }])
529
+ c("div", {
530
+ class: P(["o-header-search-input-wrapper", { focus: r.value }])
794
531
  }, [
795
- e(s) && r.value ? (l(), x(e(D), {
532
+ e(a) && r.value ? (o(), I(e(z), {
796
533
  key: 0,
797
534
  class: "o-header-search-icon",
798
- onClick: N
535
+ onClick: A
799
536
  }, {
800
- default: v(() => [
801
- m(e(ko))
537
+ default: h(() => [
538
+ v(e(Vt))
802
539
  ]),
803
540
  _: 1
804
- })) : w("", !0),
805
- m(e(Be), {
541
+ })) : g("", !0),
542
+ v(e(Ce), {
806
543
  ref_key: "inputRef",
807
- ref: k,
808
- modelValue: _.value,
809
- "onUpdate:modelValue": U[0] || (U[0] = ($) => _.value = $),
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(y)("search.expandedPlaceholder") : t.placeholder ?? e(y)("search.placeholder"),
548
+ placeholder: r.value ? t.expandedPlaceholder ?? e(p)("search.expandedPlaceholder") : t.placeholder ?? e(p)("search.placeholder"),
812
549
  onFocus: b,
813
- onKeyup: xe(C, ["enter"])
550
+ onKeyup: fe(x, ["enter"])
814
551
  }, {
815
- prefix: v(() => [
816
- I(h.$slots, "input-prefix", {}, () => [
817
- m(e(D), { class: "o-header-search-icon" }, {
818
- default: v(() => [
819
- m(e(ve))
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: v(() => [
826
- I(h.$slots, "input-suffix", {}, () => [
827
- t.clearable && i.value ? (l(), x(e(D), {
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: P
567
+ onClick: B
831
568
  }, {
832
- default: v(() => [
833
- m(e(no))
569
+ default: h(() => [
570
+ v(e(kt))
834
571
  ]),
835
572
  _: 1
836
- })) : w("", !0)
573
+ })) : g("", !0)
837
574
  ], !0)
838
575
  ]),
839
576
  _: 3
840
577
  }, 8, ["modelValue", "placeholder"]),
841
- e(s) && r.value ? (l(), c("span", {
578
+ e(a) && r.value ? (o(), s("span", {
842
579
  key: 1,
843
580
  class: "o-header-search-text",
844
- onClick: C
845
- }, u(t.searchTextMobile ?? e(y)("search")), 1)) : w("", !0)
581
+ onClick: x
582
+ }, m(t.searchTextMobile ?? e(p)("search")), 1)) : g("", !0)
846
583
  ], 2),
847
- Oe(a("div", _o, [
848
- I(h.$slots, "drawer", {
584
+ pe(c("div", Mt, [
585
+ w(i.$slots, "drawer", {
849
586
  recommendItems: t.recommendItems,
850
- historyItems: n.value,
587
+ historyItems: u.value,
851
588
  hotItems: t.hotItems
852
589
  }, () => [
853
- t.recommendItems.length ? (l(), c("div", bo, [
854
- I(h.$slots, "recommend-header", { recommend: t.recommendItems }, void 0, !0),
855
- I(h.$slots, "recommend-content", { recommend: t.recommendItems }, () => [
856
- (l(!0), c(G, null, Y(t.recommendItems, ($) => (l(), c("div", {
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: (K) => S($)
860
- }, u($), 9, wo))), 128))
595
+ key: k,
596
+ onClick: (N) => S(k)
597
+ }, m(k), 9, Dt))), 128))
861
598
  ], !0)
862
- ])) : n.value.length ? (l(), c("div", $o, [
863
- I(h.$slots, "history-header", { history: n.value }, () => [
864
- a("div", Co, [
865
- a("span", Io, u(t.historyTitle ?? e(y)("search.history")), 1),
866
- m(e(D), {
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: V
605
+ onClick: L
869
606
  }, {
870
- default: v(() => [
871
- m(e(po))
607
+ default: h(() => [
608
+ v(e(zt))
872
609
  ]),
873
610
  _: 1
874
611
  })
875
612
  ])
876
613
  ], !0),
877
- I(h.$slots, "history-content", { history: n.value }, () => [
878
- a("div", Oo, [
879
- (l(!0), c(G, null, Y(n.value, ($) => (l(), c("div", {
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: (K) => S($)
619
+ onClick: (N) => S(k)
883
620
  }, [
884
- a("span", So, u($), 1),
885
- m(e(D), {
621
+ c("span", Nt, m(k), 1),
622
+ v(e(z), {
886
623
  class: "o-header-search-history-item-icon",
887
- onClick: Se((K) => T($), ["stop"])
624
+ onClick: ge((N) => J(k), ["stop"])
888
625
  }, {
889
- default: v(() => [
890
- m(e(ho), { class: "icon-delete" })
626
+ default: h(() => [
627
+ v(e(Ct), { class: "icon-delete" })
891
628
  ]),
892
629
  _: 1
893
630
  }, 8, ["onClick"])
894
- ], 8, xo))), 128))
631
+ ], 8, Et))), 128))
895
632
  ])
896
633
  ], !0)
897
- ])) : w("", !0),
898
- (t.recommendItems.length || n.value.length) && t.hotItems.length ? (l(), x(e(De), {
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
- })) : w("", !0),
902
- t.hotItems.length ? (l(), c("div", Ao, [
903
- I(h.$slots, "hot-header", { hot: t.hotItems }, () => [
904
- a("div", zo, u(t.hotTitle ?? e(y)("search.hot")), 1)
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
- I(h.$slots, "hot-content", { hot: t.hotItems }, () => [
907
- a("div", Po, [
908
- (l(!0), c(G, null, Y(t.hotItems, ($) => (l(), c("div", {
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: (K) => S($)
912
- }, u($), 9, Vo))), 128))
648
+ onClick: (N) => S(k)
649
+ }, m(k), 9, Gt))), 128))
913
650
  ])
914
651
  ], !0)
915
- ])) : w("", !0)
652
+ ])) : g("", !0)
916
653
  ], !0)
917
654
  ], 512), [
918
- [Ae, r.value]
655
+ [ye, r.value]
919
656
  ])
920
657
  ], 2),
921
- e(s) ? (l(), x(e(D), {
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: v(() => [
927
- m(e(ve))
663
+ default: h(() => [
664
+ v(e(se))
928
665
  ]),
929
666
  _: 1
930
- })) : w("", !0)
667
+ })) : g("", !0)
931
668
  ]));
932
669
  }
933
- }), Bo = /* @__PURE__ */ L(Eo, [["__scopeId", "data-v-cce80de4"]]), Do = {
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
- }, Mo = {
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
- }, To = /* @__PURE__ */ R({
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 o = t, s = ze({
987
- locale: z(() => o.locale),
988
- theme: z(() => o.theme)
723
+ const l = t, a = ke({
724
+ locale: O(() => l.locale),
725
+ theme: O(() => l.theme)
989
726
  });
990
- return Pe(_e, s), (y, d) => (l(), x(e(Me), {
991
- locale: t.locale === "zh" ? e(Do) : e(Mo)
727
+ return _e(Pe, a), (p, d) => (o(), I(e(xe), {
728
+ locale: t.locale === "zh" ? e(jt) : e(Ft)
992
729
  }, {
993
- default: v(() => [
994
- I(y.$slots, "default")
730
+ default: h(() => [
731
+ w(p.$slots, "default")
995
732
  ]),
996
733
  _: 3
997
734
  }, 8, ["locale"]));
998
735
  }
999
- }), No = {
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 Uo(t, o) {
1007
- return l(), c("svg", No, [...o[0] || (o[0] = [
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)
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 Ho = { name: "components-icon-chevron-right", render: Uo }, Ro = { class: "section-wrapper" }, Ko = {
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
- }, Go = {
751
+ }, t0 = {
1015
752
  key: 2,
1016
753
  class: "section-subtitle"
1017
- }, Lo = {
754
+ }, o0 = {
1018
755
  key: 1,
1019
756
  class: "section-body"
1020
- }, jo = {
757
+ }, l0 = {
1021
758
  key: 2,
1022
759
  class: "section-footer"
1023
- }, Yo = /* @__PURE__ */ R({
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 o = t;
1035
- return (s, y) => (l(), c("div", {
1036
- class: M(["app-section", { "is-full": o.full }])
771
+ const l = t;
772
+ return (a, p) => (o(), s("div", {
773
+ class: P(["app-section", { "is-full": l.full }])
1037
774
  }, [
1038
- a("div", Ro, [
1039
- I(s.$slots, "main", {}, () => [
1040
- s.$slots.header || o.title || o.subtitle ? (l(), c("div", {
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: M(["section-header", { "is-left": !o.headerJustifyCenter }])
779
+ class: P(["section-header", { "is-left": !l.headerJustifyCenter }])
1043
780
  }, [
1044
- I(s.$slots, "header", {}, () => [
1045
- e(Te)(o.title) ? (l(!0), c(G, { key: 0 }, Y(o.title, (d) => (l(), c("h2", {
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
- }, u(d), 1))), 128)) : s.$slots.title || o.title ? (l(), c("h2", Ko, [
1049
- I(s.$slots, "title", {}, () => [
1050
- O(u(o.title), 1)
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
- ])) : w("", !0),
1053
- s.$slots.subtitle || o.subtitle ? (l(), c("p", Go, [
1054
- I(s.$slots, "subtitle", {}, () => [
1055
- O(u(o.subtitle), 1)
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
- ])) : w("", !0)
794
+ ])) : g("", !0)
1058
795
  ], !0)
1059
- ], 2)) : w("", !0),
1060
- s.$slots.default ? (l(), c("div", Lo, [
1061
- I(s.$slots, "default", {}, void 0, !0)
1062
- ])) : w("", !0),
1063
- s.$slots.footer || o.footer ? (l(), c("div", jo, [
1064
- I(s.$slots, "footer", {}, () => [
1065
- m(e(Ne), {
1066
- href: o.footerHref,
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: v(() => [
1070
- m(e(D), { class: "footer-icon" }, {
1071
- default: v(() => [
1072
- m(e(Ho))
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: v(() => [
1078
- O(u(o.footer) + " ", 1)
814
+ default: h(() => [
815
+ V(m(l.footer) + " ", 1)
1079
816
  ]),
1080
817
  _: 1
1081
818
  }, 8, ["href"])
1082
819
  ], !0)
1083
- ])) : w("", !0)
820
+ ])) : g("", !0)
1084
821
  ], !0)
1085
822
  ])
1086
823
  ], 2));
1087
824
  }
1088
- }), Jo = /* @__PURE__ */ L(Yo, [["__scopeId", "data-v-57b81782"]]), Wo = {
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 Zo(t, o) {
1096
- return l(), c("svg", Wo, [...o[0] || (o[0] = [
1097
- a("path", {
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 te = { name: "components-icon-sun", render: Zo }, Fo = {
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 qo(t, o) {
1112
- return l(), c("svg", Fo, [...o[0] || (o[0] = [
1113
- a("path", {
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 oe = { name: "components-icon-moon", render: qo }, Qo = { class: "o-theme-switcher" }, Xo = {
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
- }, el = /* @__PURE__ */ R({
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: te },
1131
- darkIcon: { default: oe }
867
+ lightIcon: { default: Y },
868
+ darkIcon: { default: Z }
1132
869
  },
1133
870
  emits: ["update:theme", "change"],
1134
- setup(t, { emit: o }) {
1135
- const s = t, y = o, { gtPhone: d } = W(), g = z({
871
+ setup(t, { emit: l }) {
872
+ const a = t, p = l, { gtPhone: d } = F(), f = O({
1136
873
  get() {
1137
- return s.theme;
874
+ return a.theme;
1138
875
  },
1139
876
  set(r) {
1140
- y("update:theme", r), y("change", r);
877
+ p("update:theme", r), p("change", r);
1141
878
  }
1142
- }), _ = z(() => s.type === "common" || s.type === "auto" && d.value), n = () => {
1143
- g.value = g.value === s.lightValue ? s.darkValue : s.lightValue;
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, k) => (l(), c("div", Qo, [
1146
- _.value ? (l(), c("div", {
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: n
886
+ onClick: u
1150
887
  }, [
1151
- m(e(D), { class: "o-theme-icon" }, {
1152
- default: v(() => [
1153
- g.value === t.lightValue ? (l(), x(e(oe), { key: 0 })) : (l(), x(e(te), { key: 1 }))
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
- ])) : (l(), c("div", Xo, [
1158
- m(e(ge), {
1159
- modelValue: g.value,
1160
- "onUpdate:modelValue": k[0] || (k[0] = (i) => g.value = i),
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: v(() => [
1166
- m(e(D), { class: "o-theme-icon" }, {
1167
- default: v(() => [
1168
- m(e(te))
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: v(() => [
1174
- m(e(D), { class: "o-theme-icon" }, {
1175
- default: v(() => [
1176
- m(e(oe))
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
- }), tl = /* @__PURE__ */ L(el, [["__scopeId", "data-v-837e14fb"]]), ol = {
1187
- OBanner: Qe,
1188
- OCookieNotice: zt,
1189
- OElCookieNotice: lo,
1190
- OHeaderSearch: Bo,
1191
- OPlusConfigProvider: To,
1192
- OSection: Jo,
1193
- OThemeSwitcher: tl
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(ol).forEach(([o, s]) => {
1197
- t.component(o, s);
932
+ Object.entries(m0).forEach(([l, a]) => {
933
+ t.component(l, a);
1198
934
  });
1199
935
  }
1200
936
  };
1201
937
  export {
1202
- Qe as OBanner,
1203
- zt as OCookieNotice,
1204
- lo as OElCookieNotice,
1205
- Bo as OHeaderSearch,
1206
- To as OPlusConfigProvider,
1207
- Jo as OSection,
1208
- tl as OThemeSwitcher,
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
  };