@opendesign-plus/components 0.0.1-rc.3 → 0.0.1-rc.5
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 +2 -3
- package/dist/components/{OElCookieNotice.vue.d.ts → element-plus/OElCookieNotice.vue.d.ts} +6 -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 +215 -0
- package/dist/components.es.js +427 -693
- package/dist/index.d.ts +1 -2
- package/package.json +6 -1
- package/src/components/OCookieNotice.vue +5 -6
- package/src/components/{OElCookieNotice.vue → element-plus/OElCookieNotice.vue} +6 -7
- 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/index.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { default as OBanner } from './components/OBanner.vue';
|
|
2
2
|
import { default as OCookieNotice } from './components/OCookieNotice.vue';
|
|
3
|
-
import { default as OElCookieNotice } from './components/OElCookieNotice.vue';
|
|
4
3
|
import { default as OHeaderSearch } from './components/OHeaderSearch.vue';
|
|
5
4
|
import { default as OPlusConfigProvider } from './components/OPlusConfigProvider.vue';
|
|
6
5
|
import { default as OSection } from './components/OSection.vue';
|
|
7
6
|
import { default as OThemeSwitcher } from './components/OThemeSwitcher.vue';
|
|
8
|
-
export { OBanner, OCookieNotice,
|
|
7
|
+
export { OBanner, OCookieNotice, OHeaderSearch, OPlusConfigProvider, OSection, OThemeSwitcher };
|
|
9
8
|
declare const _default: {
|
|
10
9
|
install: (app: any) => void;
|
|
11
10
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opendesign-plus/components",
|
|
3
|
-
"version": "0.0.1-rc.
|
|
3
|
+
"version": "0.0.1-rc.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -15,6 +15,11 @@
|
|
|
15
15
|
"import": "./dist/components.es.js",
|
|
16
16
|
"require": "./dist/components.cjs.js"
|
|
17
17
|
},
|
|
18
|
+
"./element-plus": {
|
|
19
|
+
"types": "./dist/components/element-plus/index.d.ts",
|
|
20
|
+
"import": "./dist/components.element.es.js",
|
|
21
|
+
"require": "./dist/components.element.cjs.js"
|
|
22
|
+
},
|
|
18
23
|
"./styles": {
|
|
19
24
|
"import": "./dist/components.css",
|
|
20
25
|
"require": "./dist/components.css"
|
|
@@ -18,9 +18,8 @@ const props = defineProps<{
|
|
|
18
18
|
visible?: boolean;
|
|
19
19
|
enableGrid?: boolean;
|
|
20
20
|
community: string;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
teleportTarget?: string | HTMLElement;
|
|
21
|
+
detailUrl: string;
|
|
22
|
+
wrapper?: string | HTMLElement;
|
|
24
23
|
}>();
|
|
25
24
|
|
|
26
25
|
const emit = defineEmits<{
|
|
@@ -175,14 +174,14 @@ defineExpose({
|
|
|
175
174
|
|
|
176
175
|
<template>
|
|
177
176
|
<ClientOnly>
|
|
178
|
-
<Teleport :to="
|
|
177
|
+
<Teleport :to="wrapper || '#app'">
|
|
179
178
|
<div v-if="visibleVmodel" class="cookie-notice">
|
|
180
179
|
<div class="cookie-notice-content">
|
|
181
180
|
<div :type="locale" :class="{ 'cookie-notice-wrap-grid': enableGrid, 'cookie-notice-wrap': !enableGrid }">
|
|
182
181
|
<div class="cookie-notice-left">
|
|
183
182
|
<p v-if="isZh" class="cookie-desc" style="margin-top: 0">
|
|
184
183
|
{{ t('cookie.desc') }}
|
|
185
|
-
<a :href="
|
|
184
|
+
<a :href="detailUrl" target="_blank" rel="noopener noreferrer">
|
|
186
185
|
{{ t('cookie.about') }}
|
|
187
186
|
</a>
|
|
188
187
|
</p>
|
|
@@ -190,7 +189,7 @@ defineExpose({
|
|
|
190
189
|
<p class="cookie-title">{{ t('cookie.title', [community]) }}</p>
|
|
191
190
|
<p class="cookie-desc">
|
|
192
191
|
{{ t('cookie.desc') }}
|
|
193
|
-
<a :href="
|
|
192
|
+
<a :href="detailUrl" target="_blank" rel="noopener noreferrer">{{ t('cookie.about') }} </a>.
|
|
194
193
|
</p>
|
|
195
194
|
</template>
|
|
196
195
|
</div>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
2
|
import { ref, onMounted, computed, nextTick, watch } from 'vue';
|
|
3
|
-
import ClientOnly from '
|
|
3
|
+
import ClientOnly from '../common/ClientOnlyWrapper';
|
|
4
4
|
import { useScreen } from '@opendesign-plus/composables';
|
|
5
5
|
import { useI18n } from '@/i18n';
|
|
6
6
|
import { ElButton, ElDialog, ElSwitch, ElIcon } from 'element-plus';
|
|
@@ -18,9 +18,8 @@ const props = defineProps<{
|
|
|
18
18
|
visible?: boolean;
|
|
19
19
|
enableGrid?: boolean;
|
|
20
20
|
community: string;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
teleportTarget?: string | HTMLElement;
|
|
21
|
+
detailUrl: string;
|
|
22
|
+
wrapper?: string | HTMLElement;
|
|
24
23
|
}>();
|
|
25
24
|
|
|
26
25
|
const emits = defineEmits<{
|
|
@@ -148,14 +147,14 @@ defineExpose({
|
|
|
148
147
|
|
|
149
148
|
<template>
|
|
150
149
|
<ClientOnly>
|
|
151
|
-
<Teleport :to="
|
|
150
|
+
<Teleport :to="wrapper || '#app'">
|
|
152
151
|
<div v-if="visibleVmodel" class="cookie-notice">
|
|
153
152
|
<div class="cookie-notice-content">
|
|
154
153
|
<div :type="locale" :class="{ 'cookie-notice-wrap-grid': enableGrid, 'cookie-notice-wrap': !enableGrid }">
|
|
155
154
|
<div class="cookie-notice-left">
|
|
156
155
|
<p v-if="isZh" class="cookie-desc" style="margin-top: 0">
|
|
157
156
|
{{ t('cookie.desc') }}
|
|
158
|
-
<a :href="
|
|
157
|
+
<a :href="detailUrl" target="_blank" rel="noopener noreferrer">
|
|
159
158
|
{{ t('cookie.about') }}
|
|
160
159
|
</a>
|
|
161
160
|
</p>
|
|
@@ -163,7 +162,7 @@ defineExpose({
|
|
|
163
162
|
<p class="cookie-title">{{ t('cookie.title', [community]) }}</p>
|
|
164
163
|
<p class="cookie-desc">
|
|
165
164
|
{{ t('cookie.desc') }}
|
|
166
|
-
<a :href="
|
|
165
|
+
<a :href="detailUrl" target="_blank" rel="noopener noreferrer">{{ t('cookie.about') }} </a>.
|
|
167
166
|
</p>
|
|
168
167
|
</template>
|
|
169
168
|
</div>
|
package/src/index.ts
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
|
|
4
4
|
import OBanner from './components/OBanner.vue';
|
|
5
5
|
import OCookieNotice from './components/OCookieNotice.vue';
|
|
6
|
-
import OElCookieNotice from './components/OElCookieNotice.vue';
|
|
7
6
|
import OHeaderSearch from './components/OHeaderSearch.vue';
|
|
8
7
|
import OPlusConfigProvider from './components/OPlusConfigProvider.vue';
|
|
9
8
|
import OSection from './components/OSection.vue';
|
|
@@ -13,7 +12,6 @@ import OThemeSwitcher from './components/OThemeSwitcher.vue';
|
|
|
13
12
|
const components = {
|
|
14
13
|
OBanner,
|
|
15
14
|
OCookieNotice,
|
|
16
|
-
OElCookieNotice,
|
|
17
15
|
OHeaderSearch,
|
|
18
16
|
OPlusConfigProvider,
|
|
19
17
|
OSection,
|
|
@@ -21,7 +19,7 @@ const components = {
|
|
|
21
19
|
};
|
|
22
20
|
|
|
23
21
|
// 导出单个组件
|
|
24
|
-
export { OBanner, OCookieNotice,
|
|
22
|
+
export { OBanner, OCookieNotice, OHeaderSearch, OPlusConfigProvider, OSection, OThemeSwitcher };
|
|
25
23
|
|
|
26
24
|
// 默认导出(用于Vue插件安装)
|
|
27
25
|
export default {
|
package/vite.config.ts
CHANGED
|
@@ -15,10 +15,16 @@ export default defineConfig(({ mode }) => {
|
|
|
15
15
|
...(isLibraryMode
|
|
16
16
|
? {
|
|
17
17
|
lib: {
|
|
18
|
-
entry:
|
|
18
|
+
entry: {
|
|
19
|
+
lib: path.resolve(__dirname, 'src/index.ts'),
|
|
20
|
+
element: path.resolve(__dirname, 'src/components/element-plus/index.ts'),
|
|
21
|
+
},
|
|
19
22
|
name: 'OpenDesignPlusComponents',
|
|
20
|
-
fileName: (format) =>
|
|
21
|
-
|
|
23
|
+
fileName: (format, entry) => {
|
|
24
|
+
if (entry === 'lib') return `components.${format}.js`;
|
|
25
|
+
return `components.${entry}.${format}.js`;
|
|
26
|
+
},
|
|
27
|
+
formats: ['es', 'cjs'],
|
|
22
28
|
cssInjectedByJs: true,
|
|
23
29
|
},
|
|
24
30
|
rollupOptions: {
|
|
@@ -38,8 +44,8 @@ export default defineConfig(({ mode }) => {
|
|
|
38
44
|
'@vueuse/core': 'VueUse',
|
|
39
45
|
'@opendesign-plus/composables': 'OpenDesignPlusComposables',
|
|
40
46
|
},
|
|
41
|
-
entryFileNames: 'components.[format].js',
|
|
42
|
-
chunkFileNames: '
|
|
47
|
+
// entryFileNames: 'components.[format].js',
|
|
48
|
+
chunkFileNames: 'chunk-[name].[format].js',
|
|
43
49
|
},
|
|
44
50
|
},
|
|
45
51
|
cssCodeSplit: false, // 禁用CSS分割,所有样式打包到一起
|
|
@@ -75,7 +81,8 @@ export default defineConfig(({ mode }) => {
|
|
|
75
81
|
},
|
|
76
82
|
}) as any,
|
|
77
83
|
dts({
|
|
78
|
-
include: ['./src/components
|
|
84
|
+
include: ['./src/components/**/*', './src/index.ts'],
|
|
85
|
+
exclude: ['./src/components/common/**/*']
|
|
79
86
|
}),
|
|
80
87
|
Icons({
|
|
81
88
|
compiler: 'vue3',
|
package/dist/components.umd.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(function(u,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("@opensig/opendesign"),require("@opendesign-plus/composables"),require("@vueuse/core"),require("element-plus"),require("element-plus/es/components/button/style/index"),require("element-plus/es/components/dialog/style/index"),require("element-plus/es/components/switch/style/index"),require("element-plus/es/components/icon/style/index")):typeof define=="function"&&define.amd?define(["exports","vue","@opensig/opendesign","@opendesign-plus/composables","@vueuse/core","element-plus","element-plus/es/components/button/style/index","element-plus/es/components/dialog/style/index","element-plus/es/components/switch/style/index","element-plus/es/components/icon/style/index"],e):(u=typeof globalThis<"u"?globalThis:u||self,e(u.OpenDesignPlusComponents={},u.Vue,u.OpenDesign,u.OpenDesignPlusComposables,u.VueUse,u.ElementPlus))})(this,(function(u,e,i,D,A,x){"use strict";const ee=e.defineComponent({__name:"ContentWrapper",props:{verticalPadding:{type:[Boolean,String,Array],default:void 0}},setup(t){const o=Symbol("default"),n=t,f=e.computed(()=>n.verticalPadding?i.isBoolean(n.verticalPadding)?o:i.isString(n.verticalPadding)?n.verticalPadding:n.verticalPadding[0]:0),r=e.computed(()=>n.verticalPadding?i.isBoolean(n.verticalPadding)?o:i.isString(n.verticalPadding)?n.verticalPadding:i.isUndefined(n.verticalPadding[1])?n.verticalPadding[0]:n.verticalPadding[1]:0);return(m,k)=>(e.openBlock(),e.createElementBlock("div",{class:"content-wrapper",style:e.normalizeStyle({"--content-wrapper-vertical-paddingTop":f.value===e.unref(o)?void 0:f.value,"--content-wrapper-vertical-paddingBottom":r.value===e.unref(o)?void 0:r.value})},[e.renderSlot(m.$slots,"default",{},void 0,!0)],4))}}),O=(t,o)=>{const n=t.__vccOpts||t;for(const[f,r]of o)n[f]=r;return n},L=O(ee,[["__scopeId","data-v-a0f91aed"]]),te={key:0},oe={class:"banner-content"},ne=["src"],le={key:1,class:"banner-title"},ae={key:2,class:"banner-subtitle"},ce={key:4,class:"banner-opts"},K=O(e.defineComponent({__name:"OBanner",props:{options:void 0,size:"large",contentJustifyCenter:!1},setup(t){const o=t,{isLight:n}=D.useTheme("opendesignplus",document.domain||"localhost"),{isPhone:f}=D.useScreen(),r=e.computed(()=>o.options),m=e.ref(""),k=c=>{setTimeout(()=>{m.value=r.value[c].bg_theme??"light"},100)},l=(c,p)=>{c&&!p&&window.open(c)};return(c,p)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["home-banner",t.size])},[t.size==="tiny"?(e.openBlock(),e.createElementBlock("div",te,e.toDisplayString(r.value[1].title),1)):e.unref(f)?(e.openBlock(),e.createBlock(e.unref(i.OCarousel),{key:2,class:"banner-carousel",effect:"gallery","indicator-click":"","data-o-theme":m.value,arrow:"never","auto-play":!0,onBeforeChange:k},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(a,y)=>(e.openBlock(),e.createBlock(e.unref(i.OCarouselItem),{class:e.normalizeClass(["banner-item",`banner-item${y}`])},{default:e.withCtx(()=>[e.createVNode(L,{class:"banner-wrapper"},{default:e.withCtx(()=>[e.createVNode(e.unref(i.OFigure),{class:"banner-bg",src:a.bg,onClick:C=>l(a.href)},null,8,["src","onClick"])]),_:2},1024)]),_:2},1032,["class"]))),256))]),_:1},8,["data-o-theme"])):(e.openBlock(),e.createBlock(e.unref(i.OCarousel),{key:1,class:"banner-carousel",effect:"toggle","active-class":"current-slide","indicator-click":"","auto-play":!0,"data-o-theme":m.value,onBeforeChange:k},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(a,y)=>(e.openBlock(),e.createBlock(e.unref(i.OCarouselItem),{key:y,class:e.normalizeClass(["banner-item",`banner-item${y}`])},{default:e.withCtx(()=>[e.createVNode(e.unref(i.OFigure),{class:e.normalizeClass(["banner-bg",{"with-sticky-bg":a.withStickyBg,"in-dark":!e.unref(n),"cursor-pointer":a.href&&!a.btn}]),src:a.bg,style:e.normalizeStyle({"--pad-offset":a.pad_offset}),onClick:C=>l(a.href,a.btn)},{default:e.withCtx(()=>[e.createVNode(L,{class:e.normalizeClass(["banner-wrapper",["banner-wrapper",t.contentJustifyCenter?"content-center":""]])},{default:e.withCtx(()=>[e.createElementVNode("div",oe,[!e.unref(f)&&a.attach?(e.openBlock(),e.createElementBlock("img",{key:0,src:a.attach,class:"banner-attach"},null,8,ne)):e.createCommentVNode("",!0),a.title?(e.openBlock(),e.createElementBlock("div",le,e.toDisplayString(a.title),1)):e.createCommentVNode("",!0),a.subtitle?(e.openBlock(),e.createElementBlock("div",ae,e.toDisplayString(a.subtitle),1)):e.createCommentVNode("",!0),a.bg_text?(e.openBlock(),e.createElementBlock("div",{key:3,class:"banner-text",style:e.normalizeStyle({backgroundImage:`url(${a.bg_text})`,"--pc-width":a.pc_text_width,"--pc-height":a.pc_text_height,"--pad-width":a.pad_text_width,"--pad-height":a.pad_text_height})},null,4)):e.createCommentVNode("",!0),a.btn?(e.openBlock(),e.createElementBlock("div",ce,[e.createVNode(e.unref(i.OButton),{href:a.href,target:"_blank",variant:"solid",color:"primary",size:t.size},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.btn),1)]),_:2},1032,["href","size"])])):e.createCommentVNode("",!0)])]),_:2},1032,["class"])]),_:2},1032,["src","class","style","onClick"])]),_:2},1032,["class"]))),128))]),_:1},8,["data-o-theme"]))],2))}}),[["__scopeId","data-v-38a33983"]]),re=t=>{const o=e.ref(!1);return e.onMounted(()=>{o.value=!0}),()=>o.value&&t.default?t.default():null},G=e.defineComponent({setup(t,{slots:o}){const n=e.resolveComponent("ClientOnly");return n&&typeof n!="string"?()=>e.h(n,null,{default:()=>o.default?o.default():null}):re(o)}}),se={search:"搜索","search.hot":"热门搜索","search.placeholder":"搜索","search.expandedPlaceholder":"请输入搜索内容","search.history":"历史搜索","cookie.desc":"我们使用cookie来确保您的高速浏览体验。继续浏览本站,即表示您同意我们使用cookie。","cookie.about":"查看详情"},ie={search:"Search","search.hot":"Top search","search.placeholder":"Please enter the content","search.expandedPlaceholder":"Please enter the content","search.history":"History","cookie.title":"{0} Community Respects Your Privacy","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 ',"cookie.about":"About Cookies","cookie.acceptAll":"Accept All","cookie.rejectAll":"Reject All","cookie.manage":"Manage Cookies","cookie.necessaryCookie":"Strictly Necessary Cookies","cookie.alwaysOn":"Always active","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.","cookie.analyticalCookie":"Analytics Cookies","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.","cookie.saveSetting":"Save Settings","cookie.setting":"Cookie settings"},F=Symbol("provide-config-provider"),de=e.ref({zh:se,en:ie});function P(){const o=e.getCurrentInstance()?e.inject(F):null,n=e.computed(()=>(o==null?void 0:o.locale)||"zh");return{locale:n,t:(r,...m)=>{const l=de.value[n.value][r];return m.length>0&&i.isString(l)?l.replace(/{(\d+)}/g,(c,p)=>m[p]??c):(i.isUndefined(l)&&console.warn(`Cannot translate the value of keypath '${r}'`),l)}}}const he={key:0,class:"cookie-notice"},me={class:"cookie-notice-content"},pe=["type"],fe={class:"cookie-notice-left"},ke={key:0,class:"cookie-desc",style:{"margin-top":"0"}},ye=["href"],ge={class:"cookie-title"},ue={class:"cookie-desc"},Ce=["href"],_e={key:0,class:"cookie-notice-right"},Ve={class:"cookie-dlg-title"},we={class:"cookie-dlg-content"},Be={class:"content-item"},Ne={class:"item-header"},Ee={class:"item-title"},$e={class:"item-extra"},be={class:"item-detail"},Se={class:"content-item"},xe={class:"item-header"},Ie={class:"item-title"},Oe={class:"item-extra"},De={class:"item-detail"},ze="0",j="1",Te="2",z="3",Ae="agreed-cookiepolicy-zh",Pe="agreed-cookiepolicy-en",q=O(e.defineComponent({__name:"OCookieNotice",props:{visible:{type:Boolean},enableGrid:{type:Boolean},community:{},aboutPathZh:{},aboutPathEn:{},teleportTarget:{}},emits:["update:visible"],setup(t,{expose:o,emit:n}){const f=t,r=n,{lePadV:m,leLaptop:k}=D.useScreen(),{locale:l,t:c}=P(),p=e.computed(()=>l.value==="zh"),a=e.computed(()=>p.value?Ae:Pe),y=e.ref(!1),C=A.useVModel(f,"visible",r,{defaultValue:!1}),w=d=>{const h=document.cookie.split(";").find(N=>N.split("=")[0].trim()===encodeURIComponent(d));return h?decodeURIComponent(h.split("=")[1]):null},B=(d,h,N,R)=>{const eo=`; max-age=${N*24*60*60}`;document.cookie=`${encodeURIComponent(d)}=${encodeURIComponent(h)}${eo}; path=/; domain=${R}`},E=(d,h)=>{document.cookie=`${encodeURIComponent(d)}=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; domain=${h}`},_=d=>{typeof d=="boolean"?C.value=d:C.value=!C.value,e.nextTick(()=>{!C.value&&p.value&&w(a.value)!==z&&B(a.value,z,180,location.hostname)})},$=e.ref(!1),S=d=>{typeof d=="boolean"?$.value=d:$.value=!$.value},s=()=>p.value?w(a.value)!==z:(w(a.value)??"0")===ze,b=()=>p.value?w(a.value)===z:w(a.value)===j;e.onMounted(()=>{s()&&_(!0)}),e.watch(l,()=>{_(s())});const g=()=>{y.value=!0,E(a.value,location.hostname),B(a.value,j,180,location.hostname),_(!1)},I=()=>{y.value=!1,E(a.value,location.hostname),B(a.value,Te,180,location.hostname),_(!1)},H=e.computed(()=>[{id:"save",color:"primary",label:c("cookie.saveSetting"),variant:"outline",size:"large",round:"pill",onClick:()=>{y.value?g():I(),S(!1)}},{id:"allowAll",color:"primary",label:c("cookie.acceptAll"),variant:"outline",size:"large",round:"pill",onClick:()=>{y.value=!0,g(),S(!1)}}]),V=d=>{d&&(y.value=b())};return o({check(){b()===C.value&&_()}}),(d,h)=>(e.openBlock(),e.createBlock(e.unref(G),null,{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{to:t.teleportTarget||"#app"},[e.unref(C)?(e.openBlock(),e.createElementBlock("div",he,[e.createElementVNode("div",me,[e.createElementVNode("div",{type:e.unref(l),class:e.normalizeClass({"cookie-notice-wrap-grid":t.enableGrid,"cookie-notice-wrap":!t.enableGrid})},[e.createElementVNode("div",fe,[p.value?(e.openBlock(),e.createElementBlock("p",ke,[e.createTextVNode(e.toDisplayString(e.unref(c)("cookie.desc"))+" ",1),e.createElementVNode("a",{href:t.aboutPathZh,target:"_blank",rel:"noopener noreferrer"},e.toDisplayString(e.unref(c)("cookie.about")),9,ye)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("p",ge,e.toDisplayString(e.unref(c)("cookie.title",[t.community])),1),e.createElementVNode("p",ue,[e.createTextVNode(e.toDisplayString(e.unref(c)("cookie.desc"))+" ",1),e.createElementVNode("a",{href:t.aboutPathEn,target:"_blank",rel:"noopener noreferrer"},e.toDisplayString(e.unref(c)("cookie.about")),9,Ce),h[4]||(h[4]=e.createTextVNode(". ",-1))])],64))]),p.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",_e,[e.createVNode(e.unref(i.OButton),{round:"pill",variant:"outline",color:"primary",onClick:g},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("cookie.acceptAll")),1)]),_:1}),e.createVNode(e.unref(i.OButton),{round:"pill",variant:"outline",color:"primary",onClick:I},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("cookie.rejectAll")),1)]),_:1}),e.createVNode(e.unref(i.OButton),{round:"pill",variant:"outline",color:"primary",onClick:h[0]||(h[0]=N=>S(!0))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("cookie.manage")),1)]),_:1})])),e.createVNode(e.unref(i.OIcon),{class:"cookie-notice-close",type:e.unref(l),onClick:h[1]||(h[1]=N=>_(!1))},{default:e.withCtx(()=>[e.createVNode(e.unref(i.OIconClose))]),_:1},8,["type"])],10,pe)]),e.createVNode(e.unref(i.ODialog),{visible:$.value,"onUpdate:visible":h[3]||(h[3]=N=>$.value=N),size:e.unref(k)?"medium":"large","phone-half-full":e.unref(m),class:"cookie-dlg",actions:H.value,onChange:V},{header:e.withCtx(()=>[e.createElementVNode("span",Ve,e.toDisplayString(e.unref(c)("cookie.manage")),1)]),default:e.withCtx(()=>[e.createElementVNode("div",we,[e.createElementVNode("div",Be,[e.createElementVNode("div",Ne,[e.createElementVNode("span",Ee,e.toDisplayString(e.unref(c)("cookie.necessaryCookie")),1),e.createElementVNode("span",$e,e.toDisplayString(e.unref(c)("cookie.alwaysOn")),1)]),e.createElementVNode("div",be,e.toDisplayString(e.unref(c)("cookie.necessaryCookieDetail")),1)]),e.createElementVNode("div",Se,[e.createElementVNode("div",xe,[e.createElementVNode("span",Ie,e.toDisplayString(e.unref(c)("cookie.analyticalCookie")),1),e.createElementVNode("span",Oe,[e.createVNode(e.unref(i.OSwitch),{modelValue:y.value,"onUpdate:modelValue":h[2]||(h[2]=N=>y.value=N)},null,8,["modelValue"])])]),e.createElementVNode("div",De,e.toDisplayString(e.unref(c)("cookie.analyticalCookieDetail")),1)])])]),_:1},8,["visible","size","phone-half-full","actions"])])):e.createCommentVNode("",!0)],8,["to"]))]),_:1}))}}),[["__scopeId","data-v-5ba95c2f"]]),Me={key:0,class:"cookie-notice"},Ue={class:"cookie-notice-content"},He=["type"],Re={class:"cookie-notice-left"},Le={key:0,class:"cookie-desc",style:{"margin-top":"0"}},Ke=["href"],Ge={class:"cookie-title"},Fe={class:"cookie-desc"},je=["href"],qe={key:0,class:"cookie-notice-right"},Ye={class:"cookie-dlg-content"},Je={class:"content-item"},We={class:"item-header"},Ze={class:"item-title"},Qe={class:"item-extra"},Xe={class:"item-detail"},ve={class:"content-item"},et={class:"item-header"},tt={class:"item-title"},ot={class:"item-extra"},nt={class:"item-detail"},lt="0",Y="1",at="2",T="3",ct="agreed-cookiepolicy-zh",rt="agreed-cookiepolicy-en",J=O(e.defineComponent({__name:"OElCookieNotice",props:{visible:{type:Boolean},enableGrid:{type:Boolean},community:{},aboutPathZh:{},aboutPathEn:{},teleportTarget:{}},emits:["update:visible"],setup(t,{expose:o,emit:n}){const f=t,r=n,{lePadV:m}=D.useScreen(),{locale:k,t:l}=P(),c=e.computed(()=>k.value==="zh"),p=e.computed(()=>c.value?ct:rt),a=e.ref(!1),y=A.useVModel(f,"visible",r,{defaultValue:!1}),C=V=>{const d=document.cookie.split(";").find(h=>h.split("=")[0].trim()===encodeURIComponent(V));return d?decodeURIComponent(d.split("=")[1]):null},w=(V,d,h,N)=>{const R=`; max-age=${h*24*60*60}`;document.cookie=`${encodeURIComponent(V)}=${encodeURIComponent(d)}${R}; path=/; domain=${N}`},B=V=>{typeof V=="boolean"?y.value=V:y.value=!y.value,e.nextTick(()=>{!y.value&&c.value&&C(p.value)!==T&&w(p.value,T,180,location.hostname)})},E=e.ref(!1),_=V=>{typeof V=="boolean"?E.value=V:E.value=!E.value},$=()=>c.value?C(p.value)!==T:(C(p.value)??"0")===lt,S=()=>c.value?C(p.value)===T:C(p.value)===Y;e.onMounted(()=>{$()&&B(!0)}),e.watch(k,()=>{B($())});const s=()=>{a.value=!0,w(p.value,Y,180,location.hostname),B(!1)},b=()=>{a.value=!1,w(p.value,at,180,location.hostname),B(!1)},g=()=>{a.value?s():b(),_(!1)},I=()=>{a.value=!0,s(),_(!1)},H=()=>{a.value=S()};return o({check(){S()===y.value&&B()}}),(V,d)=>(e.openBlock(),e.createBlock(e.unref(G),null,{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{to:t.teleportTarget||"#app"},[e.unref(y)?(e.openBlock(),e.createElementBlock("div",Me,[e.createElementVNode("div",Ue,[e.createElementVNode("div",{type:e.unref(k),class:e.normalizeClass({"cookie-notice-wrap-grid":t.enableGrid,"cookie-notice-wrap":!t.enableGrid})},[e.createElementVNode("div",Re,[c.value?(e.openBlock(),e.createElementBlock("p",Le,[e.createTextVNode(e.toDisplayString(e.unref(l)("cookie.desc"))+" ",1),e.createElementVNode("a",{href:t.aboutPathZh,target:"_blank",rel:"noopener noreferrer"},e.toDisplayString(e.unref(l)("cookie.about")),9,Ke)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("p",Ge,e.toDisplayString(e.unref(l)("cookie.title",[t.community])),1),e.createElementVNode("p",Fe,[e.createTextVNode(e.toDisplayString(e.unref(l)("cookie.desc"))+" ",1),e.createElementVNode("a",{href:t.aboutPathEn,target:"_blank",rel:"noopener noreferrer"},e.toDisplayString(e.unref(l)("cookie.about")),9,je),d[4]||(d[4]=e.createTextVNode(". ",-1))])],64))]),c.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",qe,[e.createVNode(e.unref(x.ElButton),{round:"",type:"primary",onClick:s},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("cookie.acceptAll")),1)]),_:1}),e.createVNode(e.unref(x.ElButton),{round:"",type:"primary",onClick:b},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("cookie.rejectAll")),1)]),_:1}),e.createVNode(e.unref(x.ElButton),{round:"",type:"primary",onClick:d[0]||(d[0]=h=>_(!0))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("cookie.manage")),1)]),_:1})])),e.createVNode(e.unref(x.ElIcon),{class:"cookie-notice-close",type:e.unref(k),onClick:d[1]||(d[1]=h=>B(!1))},{default:e.withCtx(()=>[e.renderSlot(V.$slots,"close-icon",{},()=>[d[5]||(d[5]=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",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"})],-1))],!0)]),_:3},8,["type"])],10,He)]),e.createVNode(e.unref(x.ElDialog),{modelValue:E.value,"onUpdate:modelValue":d[3]||(d[3]=h=>E.value=h),width:e.unref(m)?"90%":"50%",title:e.unref(l)("cookie.manage"),"destroy-on-close":"",onOpen:H},{footer:e.withCtx(()=>[e.createVNode(e.unref(x.ElButton),{round:"",type:"primary",onClick:g,style:{"margin-right":"16px"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("cookie.saveSetting")),1)]),_:1}),e.createVNode(e.unref(x.ElButton),{round:"",type:"primary",onClick:I},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("cookie.acceptAll")),1)]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("div",Ye,[e.createElementVNode("div",Je,[e.createElementVNode("div",We,[e.createElementVNode("span",Ze,e.toDisplayString(e.unref(l)("cookie.necessaryCookie")),1),e.createElementVNode("span",Qe,e.toDisplayString(e.unref(l)("cookie.alwaysOn")),1)]),e.createElementVNode("div",Xe,e.toDisplayString(e.unref(l)("cookie.necessaryCookieDetail")),1)]),e.createElementVNode("div",ve,[e.createElementVNode("div",et,[e.createElementVNode("span",tt,e.toDisplayString(e.unref(l)("cookie.analyticalCookie")),1),e.createElementVNode("span",ot,[e.createVNode(e.unref(x.ElSwitch),{modelValue:a.value,"onUpdate:modelValue":d[2]||(d[2]=h=>a.value=h)},null,8,["modelValue"])])]),e.createElementVNode("div",nt,e.toDisplayString(e.unref(l)("cookie.analyticalCookieDetail")),1)])])]),_:1},8,["modelValue","width","title"])])):e.createCommentVNode("",!0)],8,["to"]))]),_:3}))}}),[["__scopeId","data-v-3840fed3"]]),st={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};function it(t,o){return e.openBlock(),e.createElementBlock("svg",st,[...o[0]||(o[0]=[e.createElementVNode("path",{fill:"currentColor",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"},null,-1)])])}const dt={name:"components-icon-close",render:it},ht={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32"};function mt(t,o){return e.openBlock(),e.createElementBlock("svg",ht,[...o[0]||(o[0]=[e.createElementVNode("path",{opacity:"0.8",fill:"currentColor",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"},null,-1),e.createElementVNode("path",{opacity:"0.8",fill:"currentColor",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"},null,-1)])])}const W={name:"components-icon-header-search",render:mt},pt={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32"};function ft(t,o){return e.openBlock(),e.createElementBlock("svg",pt,[...o[0]||(o[0]=[e.createElementVNode("path",{fill:"currentColor",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"},null,-1)])])}const kt={name:"components-icon-header-delete",render:ft},yt={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};function gt(t,o){return e.openBlock(),e.createElementBlock("svg",yt,[...o[0]||(o[0]=[e.createElementVNode("path",{fill:"currentColor",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"},null,-1)])])}const ut={name:"components-icon-delete",render:gt},Ct={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"36",height:"32",viewBox:"0 0 36 32"};function _t(t,o){return e.openBlock(),e.createElementBlock("svg",Ct,[...o[0]||(o[0]=[e.createElementVNode("path",{fill:"currentColor",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"},null,-1)])])}const Vt={name:"components-icon-header-back",render:_t},wt={class:"o-header-search"},Bt={class:"o-header-search-drawer"},Nt={key:0,class:"o-header-search-recommend-container"},Et=["onClick"],$t={key:1,class:"o-header-search-history-container"},bt={class:"o-header-search-history-header"},St={class:"o-header-search-history-header-title"},xt={class:"o-header-search-history-item-container"},It=["onClick"],Ot={class:"o-header-search-history-item-text"},Dt={key:3,class:"o-header-search-hot-container"},zt={class:"o-header-search-hot-header"},Tt={class:"o-header-search-hot-item-container"},At=["onClick"],Z=O(e.defineComponent({__name:"OHeaderSearch",props:{modelValue:{default:""},placeholder:{},expandedPlaceholder:{},expandDirection:{default:"left"},clearable:{type:Boolean,default:!0},historyItems:{default:()=>[]},maxHistoryCount:{default:6},storeHistory:{type:Boolean,default:!1},historyTitle:{},storageKey:{default:"search-history"},hotItems:{default:()=>[]},hotTitle:{},recommendItems:{default:()=>[]},searchUrl:{},searchUrlOpenBlank:{type:Boolean,default:!0},searchTextMobile:{}},emits:["update:modelValue","update:historyItems","clear","search","delete-history","delete-history-item"],setup(t,{emit:o}){const{lePadV:n}=D.useScreen(),{t:f}=P(),r=t,m=o,k=e.ref(r.modelValue),l=e.ref(r.historyItems),c=e.ref(!1),p=e.ref(),a=e.computed(()=>!n.value&&c.value||n.value&&k.value);e.watch(()=>r.modelValue,s=>{k.value!==s&&(k.value=s)}),e.watch(()=>k.value,s=>{m("update:modelValue",s)}),e.watch(()=>r.historyItems,s=>{l.value!==s&&(l.value=s)}),e.watch(()=>l.value,s=>{m("update:historyItems",s)}),e.onMounted(()=>{if(r.storeHistory&&r.storageKey)try{const s=JSON.parse(localStorage.getItem(r.storageKey)||"[]");Array.isArray(s)&&s.length&&(l.value=Array.from(new Set([...l.value,...s])))}catch{}});const y=()=>{c.value=!0},C=()=>{const s=k.value.trim();s&&(c.value=!1,l.value.unshift(s),l.value=Array.from(new Set(l.value)),l.value.length>r.maxHistoryCount&&l.value.pop(),r.storeHistory&&r.storeHistory&&localStorage.setItem(r.storageKey,JSON.stringify(l.value)),m("search",s),r.searchUrl&&window.open(r.searchUrl+s,r.searchUrlOpenBlank?"_blank":"_self","noopener noreferrer"))},w=()=>{k.value="",m("clear"),n.value||(c.value=!1)},B=()=>{const s=[...l.value];l.value=[],r.storeHistory&&r.storeHistory&&localStorage.removeItem(r.storageKey),m("delete-history",s)},E=s=>{l.value=l.value.filter(b=>b!==s),r.storeHistory&&r.storeHistory&&(l.value.length?localStorage.setItem(r.storageKey,JSON.stringify(l.value)):localStorage.removeItem(r.storageKey)),m("delete-history-item",s)},_=s=>{k.value=s,C()},$=()=>{k.value="",c.value=!1},S=e.ref();return A.onClickOutside(S,w),(s,b)=>(e.openBlock(),e.createElementBlock("div",wt,[e.createElementVNode("div",{ref_key:"posWrapper",ref:S,class:e.normalizeClass({"o-header-search-input-pc-wrapper":!e.unref(n),"o-header-search-input-pc-wrapper-left":!e.unref(n)&&t.expandDirection==="left","o-header-search-input-pc-wrapper-right":!e.unref(n)&&t.expandDirection==="right","o-header-search-input-mobile-wrapper":e.unref(n),focus:c.value})},[e.createElementVNode("div",{class:e.normalizeClass(["o-header-search-input-wrapper",{focus:c.value}])},[e.unref(n)&&c.value?(e.openBlock(),e.createBlock(e.unref(i.OIcon),{key:0,class:"o-header-search-icon",onClick:$},{default:e.withCtx(()=>[e.createVNode(e.unref(Vt))]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(i.OInput),{ref_key:"inputRef",ref:p,modelValue:k.value,"onUpdate:modelValue":b[0]||(b[0]=g=>k.value=g),class:"o-header-search-input",placeholder:c.value?t.expandedPlaceholder??e.unref(f)("search.expandedPlaceholder"):t.placeholder??e.unref(f)("search.placeholder"),onFocus:y,onKeyup:e.withKeys(C,["enter"])},{prefix:e.withCtx(()=>[e.renderSlot(s.$slots,"input-prefix",{},()=>[e.createVNode(e.unref(i.OIcon),{class:"o-header-search-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(W))]),_:1})],!0)]),suffix:e.withCtx(()=>[e.renderSlot(s.$slots,"input-suffix",{},()=>[t.clearable&&a.value?(e.openBlock(),e.createBlock(e.unref(i.OIcon),{key:0,class:"o-header-search-icon close",onClick:w},{default:e.withCtx(()=>[e.createVNode(e.unref(dt))]),_:1})):e.createCommentVNode("",!0)],!0)]),_:3},8,["modelValue","placeholder"]),e.unref(n)&&c.value?(e.openBlock(),e.createElementBlock("span",{key:1,class:"o-header-search-text",onClick:C},e.toDisplayString(t.searchTextMobile??e.unref(f)("search")),1)):e.createCommentVNode("",!0)],2),e.withDirectives(e.createElementVNode("div",Bt,[e.renderSlot(s.$slots,"drawer",{recommendItems:t.recommendItems,historyItems:l.value,hotItems:t.hotItems},()=>[t.recommendItems.length?(e.openBlock(),e.createElementBlock("div",Nt,[e.renderSlot(s.$slots,"recommend-header",{recommend:t.recommendItems},void 0,!0),e.renderSlot(s.$slots,"recommend-content",{recommend:t.recommendItems},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.recommendItems,g=>(e.openBlock(),e.createElementBlock("div",{class:"o-header-search-recommend-item",key:g,onClick:I=>_(g)},e.toDisplayString(g),9,Et))),128))],!0)])):l.value.length?(e.openBlock(),e.createElementBlock("div",$t,[e.renderSlot(s.$slots,"history-header",{history:l.value},()=>[e.createElementVNode("div",bt,[e.createElementVNode("span",St,e.toDisplayString(t.historyTitle??e.unref(f)("search.history")),1),e.createVNode(e.unref(i.OIcon),{class:"o-header-search-icon",onClick:B},{default:e.withCtx(()=>[e.createVNode(e.unref(ut))]),_:1})])],!0),e.renderSlot(s.$slots,"history-content",{history:l.value},()=>[e.createElementVNode("div",xt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,g=>(e.openBlock(),e.createElementBlock("div",{key:g,class:"o-header-search-history-item",onClick:I=>_(g)},[e.createElementVNode("span",Ot,e.toDisplayString(g),1),e.createVNode(e.unref(i.OIcon),{class:"o-header-search-history-item-icon",onClick:e.withModifiers(I=>E(g),["stop"])},{default:e.withCtx(()=>[e.createVNode(e.unref(kt),{class:"icon-delete"})]),_:1},8,["onClick"])],8,It))),128))])],!0)])):e.createCommentVNode("",!0),(t.recommendItems.length||l.value.length)&&t.hotItems.length?(e.openBlock(),e.createBlock(e.unref(i.ODivider),{key:2,class:"o-header-search-drawer-divider"})):e.createCommentVNode("",!0),t.hotItems.length?(e.openBlock(),e.createElementBlock("div",Dt,[e.renderSlot(s.$slots,"hot-header",{hot:t.hotItems},()=>[e.createElementVNode("div",zt,e.toDisplayString(t.hotTitle??e.unref(f)("search.hot")),1)],!0),e.renderSlot(s.$slots,"hot-content",{hot:t.hotItems},()=>[e.createElementVNode("div",Tt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.hotItems,g=>(e.openBlock(),e.createElementBlock("div",{key:g,class:"o-header-search-hot-item",onClick:I=>_(g)},e.toDisplayString(g),9,At))),128))])],!0)])):e.createCommentVNode("",!0)],!0)],512),[[e.vShow,c.value]])],2),e.unref(n)?(e.openBlock(),e.createBlock(e.unref(i.OIcon),{key:0,class:"o-header-search-icon-mobile",onClick:y},{default:e.withCtx(()=>[e.createVNode(e.unref(W))]),_:1})):e.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-cce80de4"]]),Pt={locale:"zh-CN","common.empty":"暂无数据","common.loading":"加载中...","pagination.goto":"前往","pagination.page":"页","pagination.countPerPage":"条/页","pagination.total":"共 {0} 条","upload.buttonLabel":"点击上传","upload.drag":"点击或拖拽文件到此处上传","upload.dragHover":"释放文件并开始上传","upload.retry":"点击重试","upload.delete":"删除","upload.preview":"预览","upload.edit":"编辑","select.cancel":"取消","select.confirm":"确定","input.limit":"<b>{0}</b>/{1}"},Mt={locale:"en-US","common.empty":"No Data","common.loading":"Loading...","pagination.goto":"Go to","pagination.page":"Page","pagination.countPerPage":"/page","pagination.total":"Total: {0}","upload.buttonLabel":"Upload","upload.drag":"Click or drag file to this area to upload","upload.dragHover":"Release to upload","upload.retry":"Click to retry","upload.delete":"Delete","upload.preview":"Preview","upload.edit":"Edit","select.cancel":"Cancel","select.confirm":"Ok","input.limit":"<b>{0}</b>/{1}"},Q=e.defineComponent({__name:"OPlusConfigProvider",props:{locale:{},theme:{default:"light"}},setup(t){const o=t,n=e.reactive({locale:e.computed(()=>o.locale),theme:e.computed(()=>o.theme)});return e.provide(F,n),(f,r)=>(e.openBlock(),e.createBlock(e.unref(i.OConfigProvider),{locale:t.locale==="zh"?e.unref(Pt):e.unref(Mt)},{default:e.withCtx(()=>[e.renderSlot(f.$slots,"default")]),_:3},8,["locale"]))}}),Ut={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};function Ht(t,o){return e.openBlock(),e.createElementBlock("svg",Ut,[...o[0]||(o[0]=[e.createElementVNode("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)])])}const Rt={name:"components-icon-chevron-right",render:Ht},Lt={class:"section-wrapper"},Kt={key:1,class:"section-title"},Gt={key:2,class:"section-subtitle"},Ft={key:1,class:"section-body"},jt={key:2,class:"section-footer"},X=O(e.defineComponent({__name:"OSection",props:{title:{default:void 0},subtitle:{default:void 0},full:{type:Boolean,default:!1},headerJustifyCenter:{type:Boolean,default:!0},footer:{default:void 0},footerHref:{default:void 0}},setup(t){const o=t;return(n,f)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["app-section",{"is-full":o.full}])},[e.createElementVNode("div",Lt,[e.renderSlot(n.$slots,"main",{},()=>[n.$slots.header||o.title||o.subtitle?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["section-header",{"is-left":!o.headerJustifyCenter}])},[e.renderSlot(n.$slots,"header",{},()=>[e.unref(i.isArray)(o.title)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(o.title,r=>(e.openBlock(),e.createElementBlock("h2",{key:r,class:"section-title"},e.toDisplayString(r),1))),128)):n.$slots.title||o.title?(e.openBlock(),e.createElementBlock("h2",Kt,[e.renderSlot(n.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(o.title),1)],!0)])):e.createCommentVNode("",!0),n.$slots.subtitle||o.subtitle?(e.openBlock(),e.createElementBlock("p",Gt,[e.renderSlot(n.$slots,"subtitle",{},()=>[e.createTextVNode(e.toDisplayString(o.subtitle),1)],!0)])):e.createCommentVNode("",!0)],!0)],2)):e.createCommentVNode("",!0),n.$slots.default?(e.openBlock(),e.createElementBlock("div",Ft,[e.renderSlot(n.$slots,"default",{},void 0,!0)])):e.createCommentVNode("",!0),n.$slots.footer||o.footer?(e.openBlock(),e.createElementBlock("div",jt,[e.renderSlot(n.$slots,"footer",{},()=>[e.createVNode(e.unref(i.OLink),{href:o.footerHref,target:"_blank"},{suffix:e.withCtx(()=>[e.createVNode(e.unref(i.OIcon),{class:"footer-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(Rt))]),_:1})]),default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.footer)+" ",1)]),_:1},8,["href"])],!0)])):e.createCommentVNode("",!0)],!0)])],2))}}),[["__scopeId","data-v-57b81782"]]),qt={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};function Yt(t,o){return e.openBlock(),e.createElementBlock("svg",qt,[...o[0]||(o[0]=[e.createElementVNode("path",{opacity:"0.8",fill:"currentColor",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"},null,-1)])])}const M={name:"components-icon-sun",render:Yt},Jt={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};function Wt(t,o){return e.openBlock(),e.createElementBlock("svg",Jt,[...o[0]||(o[0]=[e.createElementVNode("path",{opacity:"0.8",fill:"currentColor",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"},null,-1)])])}const U={name:"components-icon-moon",render:Wt},Zt={class:"o-theme-switcher"},Qt={key:1,class:"o-theme-switcher-mobile"},v=O(e.defineComponent({__name:"OThemeSwitcher",props:{theme:{default:"light"},type:{default:"auto"},lightValue:{default:"light"},darkValue:{default:"dark"},lightIcon:{default:M},darkIcon:{default:U}},emits:["update:theme","change"],setup(t,{emit:o}){const n=t,f=o,{gtPhone:r}=D.useScreen(),m=e.computed({get(){return n.theme},set(c){f("update:theme",c),f("change",c)}}),k=e.computed(()=>n.type==="common"||n.type==="auto"&&r.value),l=()=>{m.value=m.value===n.lightValue?n.darkValue:n.lightValue};return(c,p)=>(e.openBlock(),e.createElementBlock("div",Zt,[k.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"o-theme-switcher-common",onClick:l},[e.createVNode(e.unref(i.OIcon),{class:"o-theme-icon"},{default:e.withCtx(()=>[m.value===t.lightValue?(e.openBlock(),e.createBlock(e.unref(U),{key:0})):(e.openBlock(),e.createBlock(e.unref(M),{key:1}))]),_:1})])):(e.openBlock(),e.createElementBlock("div",Qt,[e.createVNode(e.unref(i.OSwitch),{modelValue:m.value,"onUpdate:modelValue":p[0]||(p[0]=a=>m.value=a),class:"o-theme-switch","checked-value":t.darkValue,"unchecked-value":t.lightValue},{on:e.withCtx(()=>[e.createVNode(e.unref(i.OIcon),{class:"o-theme-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(M))]),_:1})]),off:e.withCtx(()=>[e.createVNode(e.unref(i.OIcon),{class:"o-theme-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(U))]),_:1})]),_:1},8,["modelValue","checked-value","unchecked-value"])]))]))}}),[["__scopeId","data-v-837e14fb"]]),Xt={OBanner:K,OCookieNotice:q,OElCookieNotice:J,OHeaderSearch:Z,OPlusConfigProvider:Q,OSection:X,OThemeSwitcher:v},vt={install:t=>{Object.entries(Xt).forEach(([o,n])=>{t.component(o,n)})}};u.OBanner=K,u.OCookieNotice=q,u.OElCookieNotice=J,u.OHeaderSearch=Z,u.OPlusConfigProvider=Q,u.OSection=X,u.OThemeSwitcher=v,u.default=vt,Object.defineProperties(u,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|