PageSourceSearch

https://www.morningstar.cn/ssr-assets/BfvroekS.js

js morningstar.cn collected 2026-10-04 23:23:51 UTC 25,860 bytes, 1 lines download raw bytes

1import{At as e,B as t,F as n,G as r,J as i,K as a,N as o,Ot as s,P as c,R as l,Y as u,_ as d,ct as f,d as p,f as m,i as h,kt as g,l as _,nt as v,p as y,tt as b,u as x,v as S,z as C}from"./B_0xQieE.js";import{s as w}from"./OcaYvGO1.js";import{B as T,I as E,It as D,L as O,Lt as k,Mt as A,N as j,P as M,Q as N,U as P,_ as F,b as I,d as L,f as R,g as z,l as B,m as V,o as H,ot as U,p as W,rt as ee,tt as G,v as te,vt as K,w as q,x as ne,y as re}from"#entry";var ie={class:`wh-popover-body`},ae={key:0,class:`wh-popover-header`},oe=[`textContent`],se={class:`wh-popover-content`},J={__name:`popover`,props:{title:{type:String,default:``},target:{validator:e=>!0,default:``},autoClose:{type:Boolean,default:!0},bindResize:{type:[String,Boolean],default:`close`},bindScroll:{type:[String,Boolean],default:`close`},width:{type:[String,Number],default:150},minHeight:{type:[String,Number],default:20},maxHeight:{type:[String,Number],default:800},positions:{type:[String,Array],default:null},borderColor:{type:String,default:``},bgColor:{type:String,default:``},color:{type:String,default:``},container:{validator:e=>!0,default:``},nonreactive:{type:Boolean,default:!1},arrow:{type:Boolean,default:!0},borderRadius:{type:String,default:``},padding:{type:String,default:``},fixed:{type:Boolean,default:!1},appendToBody:{type:[Boolean,String],default:!1},zIndex:{type:[String,Number],default:``},visible:{type:Boolean,default:!1},modelValue:{type:Boolean,default:null}},emits:[`update:modelValue`,`open`,`update`,`beforeClose`,`close`],setup(i,{expose:l,emit:d}){let p=P(`WhPopover`),h=i,S=v(null),T,E=d,D=b({visible:!1,left:0,top:0,background:``}),O=_(()=>{let e=[`wh-popover`];return h.nonreactive&&e.push(`wh-popover-nonreactive`),e}),A=_(()=>{let e={top:`${D.top}px`,left:`${D.left}px`,padding:`5px`};return h.arrow?(e.background=D.background,e.padding=D.padding):(e[`background-color`]=h.bgColor||`#fff`,e.border=`1px solid ${h.borderColor||`#ccc`}`,e[`border-radius`]=h.borderRadius||`5px`),h.color&&(e[`--wh-popover-color`]=h.color),h.width&&(e[`--wh-popover-width`]=M(h.width)),h.minHeight&&(e[`--wh-popover-min-height`]=M(h.minHeight)),h.maxHeight&&(e[`--wh-popover-max-height`]=M(h.maxHeight)),h.padding&&(e[`--wh-popover-padding`]=h.padding),h.zIndex&&(e[`--wh-popover-z-index`]=h.zIndex),e}),j=()=>{D.visible&&=!1},N=()=>{E(`beforeClose`),D.timeIdClose=setTimeout(()=>{j()},10)},L,R=w(()=>
1{if(!D.visible)return;let e=h.container||window,t=I(e);e===window&&(t.width=document.body.clientWidth);let n=I(h.target,h.fixed),r=I(`[cid=${p}]`),i=h.positions;if(L=F(t,n,r,i,L),L.changed&&(D.left=L.left,D.top=L.top),h.arrow){let e=re(L,{bgColor:h.bgColor,borderColor:h.borderColor,arrowSize:10,borderRadius:h.borderRadius?ee(h.borderRadius):5});D.background=e.background,D.padding=e.padding}E(`update`,L)}),z=()=>{if(!D.visible){V();return}T&&(E(`open`,T),B(),R())},B=()=>{H(),G(),ne()},V=()=>{U(),K(),J()},H=()=>{h.bindResize&&(U(),window.addEventListener(`resize`,W))},U=()=>{window.removeEventListener(`resize`,W)},W=()=>{if(h.bindResize===`close`){N();return}R()},G=()=>{h.bindScroll&&(K(),window.addEventListener(`scroll`,q,!0))},K=()=>{window.removeEventListener(`scroll`,q,!0)},q=e=>{if(!Z(e.target)&&ce(e.target)){if(h.bindScroll===`close`){N();return}R()}},ne=()=>{J(),h.autoClose&&D.visible&&(D.timeIdBindClose=setTimeout(()=>{window.addEventListener(`click`,Y,!0),window.addEventListener(`keydown`,X)},300))},J=()=>{clearTimeout(D.timeIdClose),clearTimeout(D.timeIdBindClose),window.removeEventListener(`click`,Y,!0),window.removeEventListener(`keydown`,X)},Y=e=>{Z(e.target)||N()},X=e=>{e.code===`Escape`&&N()},Z=e=>!!(T===e||T.contains(e)),ce=e=>{let t=te(h.target)||T;if(!t)return!1;let n=t.parentNode;for(;n;){if(n===e)return!0;n=n.parentNode}return!1},Q,le=()=>{Q=new ResizeObserver(e=>{R()}),Q.observe(T)},$=()=>{Q&&=(Q.disconnect(),null)};return a(()=>{D.visible=h.modelValue===null?h.visible:h.modelValue}),r(()=>D.visible,e=>{z(),E(`update:modelValue`,e),e||E(`close`)}),r([()=>h.target,()=>h.container],()=>{R()}),o(()=>{T=S.value,h.appendToBody&&document.body.appendChild(T),le(),z()}),c(()=>{T&&T.parentNode&&T.parentNode.removeChild(T),$(),V(),T=null,L=null}),l({update:R,cid:p}),(r,i)=>{let a=t(`init`);return u((n(),y(`div`,{ref_key:`el`,ref:S,class:s(O.value),style:g(A.value)},[x(`div`,ie,[h.title?(n(),y(`div`,ae,[C(r.$slots,`header`,{},()=>[x(`div`,{class:`wh-popover-title`,textContent:e(h.title)},null,8,oe)])])):m(``,!0),x(`div`,se,[C(r.$slots,`default`)])])],6)),[[k,D.visible],[a,{cid:f(p)}]])}}},Y={class:`search-button`},X=[`placeholder`],Z={key:0,class:`search-results-loading`},ce={key:1,class:`search-results-error`},Q={class:`search-results-title`},le=[`onClick`],$={class:`search-results-list`},ue=[`onClick`],de=[`innerHTML`],fe={key:0,class:`item-desc`},pe={key:1,class:`item-desc`},me={key:0,class:`item-category-name`},he={key:2,class:`item-desc`},ge={key:0,class:`item-category-name`},_e={key:3,class:`search-no-results`},ve=H({__name:`search`,props:{fixed:{type:Boolean,default:!0}},setup(t){let r=_(()=>{let e=K.windowHeight-150;return e>750?750:e}),a=_(()=>({maxHeight:`${r.value}px`,overflowY:`auto`})),o=v(null),s=t,c=b({keywords:``,placeholder:`输入基金名称,经理,代码...`,width:320,target:null}),f=e=>{j(`fundClassId`,e.fundClassId),j(`fundName`,e.fundName),window.open(`/fund/${e.symbol}.html`)},p=e=>{window.open(`/page.html#/fund-manager/${e.managerId}`)},C=e=>{j(`articleId`,e.articleId),j(`articleTitle`,e.title),e.tag?j(`articleTag`,e.tag):j(`articleTag`,`#`),window.open(`https://www.morningstar.cn${e.s3ContentUrl}`)},w=(e,t)=>{let n=e===`fund`?t.fundNameArr:t.title;if(e===`manager`&&(n=t.managerName),!n||!c.keywords)return T(n||``);let r=T(n),i=T(c.keywords);return r.split(i).join(`<span>${i}</span>`)},E=e=>{if(!e)return``;typeof e!=`string`&&(e=`${e}`);let t=e.trim();return t?t.split(`T`)[0].split(` `)[0]:``},O=(e,t)=>{c.searchResultsVisible=!1,c.searchResultsError=null,c.searchResultsList=null,e===`fund`?f(t):e===`manager`?p(t):C(t)},k=e=>{let t=e.list.length+e.pageSize;e.list=e.listAll.slice(0,t),t>=e.listAll.length&&(e.hideMore=!0)},A,M=e=>{clearTimeout(A),A=setTimeout(()=>{F()},500)},P=e=>{c.keywords&&(e.target.select(),M())},F=async()=>{let e=`${c.keywords}`.trim();if(c.keywords=e,!e){c.searchResultsVisible=!1;return}c.searchResultsVisible=!0,c.searchResultsError=null,c.searchResultsList=null;let t=o.value,n=I(t,s.fixed);c.target={x:n.left+c.width/2,y:n.top+n.height,width:0,height:0},c.searchResultsLoading=!0;let r=encodeURIComponent(e),[i,a,l]=await Promise.all([B(`/cn-api/public/v1/fund-cache?match=${r}`,{loadingDisabled:!0}),B(`/cn-api/public/v2/fund-cache?match=${r}&target=manager`,{loadingDisabled:!0}),B(`/cn-api/official/article-search?match=${r}`,{loadingDisabled:!0})]);if(c.searchResultsLoading=!1,R(i,a,l)){c.searchResultsError=i.error||a.error||l.error;return}let u=i.data,d=a.data,f=l.data,p=L(u,d,f);N(p)&&(c.searchResultsList=p)};function L(e,t,n){let r=[];return N(e)&&r.push({name:`基金`,type:`fund`,pageSize:5,listAll:e,list:e.slice(0,5),hideMore:e.length<=5}),N(t)&&r.push({name:`基金经理`,type:`manager`,pageSize:5,listAll:t,list:t.slice(0,3),hideMore:t.length<=3}),N(n)&&r.push({name:`文章`,type:`article`,pageSize:3,listAll:n,list:n.slice(0,3),hideMore:n.length<=3}),r}function R(e,t,n){return e.error||t.error||n.error}return(t,r)=>(n(),y(`div`,{ref_key:`search`,ref:o,class:`search`},[x(`div`,Y,[S(z,{icon:`search`}),u(x(`input`,{"onUpdate:modelValue":r[0]||=e=>c.keywords=e,placeholder:c.placeholder,onFocus:P,onInput:M},null,40,X),[[D,c.keywords]])]),S(J,{modelValue:c.searchResultsVisible,"onUpdate:modelValue":r[1]||=e=>c.searchResultsVisible=e,class:`search-results-popover`,target:c.target,width:c.width,arrow:!1,"bind-scroll":!1,"append-to-body":!0,positions:`bottom`,padding:`0px`},{default:i(()=>[c.searchResultsLoading?(n(),y(`div`,Z,[S(q)])):c.searchResultsError?(n(),y(`div`,ce,e(c.searchResultsError),1)):c.searchResultsList?(n(),y(`div`,{key:2,class:`search-results-groups`,style:g(a.value)},[(n(!0),y(h,null,l(c.searchResultsList,(t,r)=>(n(),y(`div`,{key:r,class:`search-results-group`},[x(`div`,Q,[d(e(t.name)+` `,1),t.hideMore?m(``,!0):(n(),y(`div`,{key:0,class:`search-results-more`,onClick:e=>k(t)},` 更多结果 `,8,le))]),x(`div`,$,[(n(!0),y(h,null,l(t.list,(r,i)=>(n(),y(`div`,{key:i,class:`search-results-item`,onClick:e=>O(t.type,r)},[x(`div`,{innerHTML:w(t.type,r)},null,8,de),r.publishTime?(n(),y(`div`,fe,e(E(r.publishTime)),1)):m(``,!0),r.symbol?(n(),y(`div`,pe,[x(`div`,null,e
1(r.symbol),1),r.fundType?(n(),y(`div`,me,e(r.fundType),1)):m(``,!0)])):m(``,!0),r.companyName?(n(),y(`div`,he,[x(`div`,null,e(r.companyName),1),r.aumText?(n(),y(`div`,ge,` 管理规模:`+e(r.aumText),1)):m(``,!0)])):m(``,!0)],8,ue))),128))])]))),128))],4)):(n(),y(`div`,_e,` 无搜索结果 `))]),_:1},8,[`modelValue`,`target`,`width`])],512))}},[[`__scopeId`,`data-v-b0a46232`]]),ye={key:0,class:`user-menu`},be=[`tooltip`,`onClick`],xe={key:0,class:`user-avatar`},Se=[`src`],Ce={key:1,class:`user-login`},we={class:`user-menu-list`},Te=[`onClick`],Ee=H({__name:`user-entry`,setup(r){let a=()=>{W()},c=P(`UserMenu`),m=b({loading:!0,userMenuPopoverTarget:`[cid=${c}]`,loginDisabled:!1,userMenuVisible:!1,userMenuList:[],userDropDownMenuList:[],avatarVisible:!0}),g=_(()=>{let e=K.pageWidth||1024;return e>=1024?`breakpoint-md`:e>=768?`breakpoint-sm`:`breakpoint-xs`}),v=()=>{m.userMenuVisible=!0},C=e=>{m.userMenuVisible=!1,window.location.href=`/page.html#/user`},w=e=>{if(m.userMenuVisible=!1,e.path){window.location.href=`/page.html#${e.path}`;return}e.handler&&e.handler()},T=async e=>{m.loginDisabled=!0,await R(),m.loginDisabled=!1};return o(async()=>{if(K.userInfo||await L(),m.loading=!1,K.userInfo&&!K.userInfo.hasWechat){window.location.href=`/page.html#/bind-wechat?url=${encodeURIComponent(window.location.href)}`;return}let e=[{icon:`user-watch`,name:`观察列表`,path:`/user-watch`},{icon:`user-portfolio`,name:`我的组合`,path:`/user-portfolio`}],t=[{icon:`user`,name:`个人中心`,path:`/user`},{icon:`user-watch`,name:`观察列表`,path:`/user-watch`},{icon:`user-portfolio`,name:`我的组合`,path:`/user-portfolio`},{icon:`user-logout`,name:`退出登录`,handler:a}];K.isDev||(e=e.filter(e=>!e.isDev)),m.userMenuList=e,m.userDropDownMenuList=t,V()}),(r,a)=>{let o=t(`init`);return n(),y(`div`,{class:s([`user-entry`,g.value])},[m.loading?(n(),p(q,{key:0})):(n(),y(h,{key:1},[f(K).userInfo?(n(),y(`div`,ye,[(n(!0),y(h,null,l(m.userMenuList,(e,t)=>(n(),y(`div`,{key:t,class:s([`user-menu-item`,e.icon]),tooltip:e.name,onClick:t=>w(e,t)},[S(z,{width:`23px`,height:`23px`,icon:e.icon,color:`#5E5E5E`},null,8,[`icon`])],10,be))),128)),u((n(),y(`div`,{class:`user-menu-item`,tooltip:`个人中心`,onClick:v},[f(K).avatarUrl&&f(K).avatarVisible?(n(),y(`div`,xe,[x(`img`,{class:`user-avatar-img`,src:f(K).avatarUrl,onError:a[0]||=e=>f(K).avatarVisible=!1},null,40,Se)])):(n(),p(z,{key:1,width:`23px`,height:`23px`,icon:`user`,color:`#5E5E5E`}))])),[[o,{cid:f(c)}]])])):(n(),y(`div`,Ce,[S(ne,{disabled:m.loginDisabled,onClick:T},{default:i(()=>[S(z,{icon:`user`}),a[2]||=d(` 登录 `,-1)]),_:1},8,[`disabled`])]))],64)),S(J,{modelValue:m.userMenuVisible,"onUpdate:modelValue":a[1]||=e=>m.userMenuVisible=e,target:m.userMenuPopoverTarget,fixed:!0,arrow:!1,positions:`bottom`,class:`user-menu-popover`},{default:i(()=>[x(`div`,{class:`user-menu-name`,onClick:C},e(f(K).userInfo?.nickName||`晨星用户`),1),x(`div`,we,[(n(!0),y(h,null,l(m.userDropDownMenuList,(t,r)=>(n(),y(`div`,{key:r,class:s([`user-menu-item user-dropdown-menu-item`,t.icon]),onClick:e=>w(t,e)},[S(z,{icon:t.icon,color:`#5E5E5E`},null,8,[`icon`]),x(`span`,null,e(t.name),1)],10,Te))),128))])]),_:1},8,[`modelValue`,`target`])],2)}}},[[`__scopeId`,`data-v-24fce49d`]]),De={key:0,class:`wh-flyover-resizer`},Oe={__name:`flyover`,props:{position:{type:String,default:`right`,validator(e){return[`right`,`left`].includes(e)}},width:{type:[String,Number],default:`50%`},minWidth:{type:[String,Number],default:`10%`},maxWidth:{type:[String,Number],default:`100%`},resizable:{type:Boolean,default:!0},visible:{type:Boolean,default:!1},modelValue:{type:Boolean,default:null}},emits:[`update:modelValue`,`start`,`end`,`resize`],setup(e,{emit:i}){let l=P(`VuiFlyover`),d=e,p=i,h=b({visible:d.visible,position:d.position,width:d.width,resizable:d.resizable,hasStarted:!1,resizeInfo:null});a(()=>{h.visible=d.modelValue===null?d.visible:d.modelValue}),r(()=>h.visible,(e,t)=>{k(t,e),p(`update:modelValue`,e)}),a(()=>{h.position=d.position}),a(()=>{h.width=d.width}),a(()=>{h.resizable=d.resizable}),r(()=>h.resizable,()=>{W()});let x=v(null),S,T=_(()=>{let e=[`wh-flyover`,`wh-flyover-${d.position}`];return S&&S.classList.contains(`wh-flyover-show`)&&e.push(`wh-flyover-show`),e}),D=_(()=>({width:M(h.width)})),k=(e,t)=>{if(t===e)return;h.hasStarted&&A(e),F();let n=S.classList;t?(n.add(`wh-slide-in-${d.position}`,`wh-flyover-show`),h.width=d.width):n.add(`wh-slide-out-${d.position}`),h.hasStarted=!0,N(),p(`start`,t)},A=e=>{h.hasStarted=!1,F();let t=S.classList;e?t.remove(`wh-slide-in-${d.position}`):(t.remove(`wh-slide-out-${d.position}`,`wh-flyover-show`),h.width=`0`),p(`end`,e)},j={animationend:{handler:e=>{A(h.visible)}}},N=()=>{E(j,S)},F=()=>{U(j)},I=(e,t,n)=>{let r=M(e);(typeof r!=`string`||!r)&&(r=n);let i=parseFloat(r),a=`px`;return r.endsWith(`%`)&&(a=`%`,i=i/100*t),{width:i,unit:a}},L=e=>{G(e);let t=window.innerWidth,n=I(h.width,t,`50%`),r=I(d.minWidth,t,`10%`);r.width=O(r.width,0,n.width);let i=I(d.maxWidth,t,`100%`);i.width=O(i.width,n.width,t),h.resizeInfo={maxWidth:t,startX:e.pageX,startWidth:n,startMinWidth:r,startMaxWidth:i},E(V,window)},R=function(e){if(G(e),!e.buttons){B(e);return}z(e)},z=e=>{let{startWidth:t,startMinWidth:n,startMaxWidth:r,startX:i}=h.resizeInfo,a=h.position===`right`?-1:1,o=(e.pageX-i)*a,s=window.innerWidth,c=O(t.width+o,n.width,r.width);if(t.unit===`%`){let e=(c/s*100).toFixed(2);h.width=`${e}%`}else h.width=`${Math.round(c)}px`;p(`resize`,h.width)},B=function(e){G(e),U(V)},V={mousemove:{handler:e=>{R(e)},options:!0},mouseup:{handler:e=>{B(e)},options:{once:!0}}},H={mousedown:{handler:e=>{L(e)}}},W=()=>{U(H),h.resizable&&ee()},ee=w(()=>{let e=S.querySelector(`.wh-flyover-resizer`);E(H,e)});return o(()=>{S=x.value,h.visible&&k(!1,!0),W()}),c(()=>{F(),U(H)}),(e,r)=>{let i=t(`init`);return u((n(),y(`div`,{ref_key:`el`,ref:x,class:s(T.value),style:g(D.value)},[h.resizable?(n(),y(`div`,De)):m(``,!0),C(e.$slots,`default`)],6)),[[i,{cid:f(l)}]])}}},ke={class:`search-button`},Ae=[`placeholder`],je={key:0,class:`search-results-loading`},Me={key:1,class:`search-results-error`},Ne={key:2,class:`search-results-groups`},Pe={class:`search-results-title`},Fe=[`onClick`],Ie={class:`search-results-list`},Le=[`onClick`],Re=[`innerHTML`],ze={key:0,class:`item-desc`},Be={key:1,class:`item-desc`},Ve={key:0,class:`item-category-name`},He={key:2,class:`item-desc`},Ue={key:0,class:`item-category-name`},We={key:3,class:`search-no-results`},Ge=H({__name:`search-mobile`,props:{fixed:{type:Boolean,default:!0},searchResultsAppendToBody:{type:Boolean,default:!0}},setup(t){let r=v(null),i=t,a=b({keywords:``,placeholder:`输入基金名称,经理,代码...`,width:320,target:null}),o=e=>{j(`fundClassId`,e.fundClassId),j(`fundName`,e.fundName),window.open(`/fund/${e.symbol}.html`)},s=e=>{window.open(`/page.html#/fund-manager/${e.managerId}`)},c=e=>{j(`articleId`,e.articleId),j(`articleTitle`,e.title),e.tag?j(`articleTag`,e.tag):j(`articleTag`,`#`),window.open(`https://www.morningstar.cn${e.s3ContentUrl}`)},f=(e,t)=>{let n=e===`fund`?t.fundNameArr:t.title;if(e===`manager`&&(n=t.managerName),!n||!a.keywords)return T(n||``);let r=T(n),i=T(a.keywords);return r.split(i).join(`<span>${i}</span>`)},p=e=>{if(!e)return``;if(typeof e!=`string`){let t=e.trim();return t?t.split(`T`)[0].split(` `)[0]:``}let t=e.trim();return t?t.split(`T`)[0].split(` `)[0]:``},g=(e,t)=>{a.searchResultsVisible=!1,a.searchResultsError=null,a.searchResultsList=null,e===`fund`?o(t):e===`manager`?s(t):c(t)},_=e=>{let t=e.list.length+e.pageSize;e.list=e.listAll.slice(0,t),t>=e.listAll.length&&(e.hideMore=!0)},C,w=e=>{clearTimeout(C),C=setTimeout(()=>{O()},500)},E=e=>{a.keywords&&(e.target.select(),w())},O=async()=>{let e=`${a.keywords}`.trim();if(a.keywords=e,!e){a.searchResultsVisible=!1;return}a.searchResultsVisible=!0,a.searchResultsError=null,a.searchResultsList=null;let t=r.value,n=I(t,i.fixed);a.target={x:n.left+a.width/2,y:n.top+n.height,width:0,height:0},a.searchResultsLoading=!0;let o=encodeURIComponent(e),[s,c,l]=await Promise.all([B(`/cn-api/public/v1/fund-cache?match=${o}`,{loadingDisabled:!0}),B(`/cn-api/public/v2/fund-cache?match=${o}&target=manager`,{loadingDisabled:!0}),B(`/cn-api/official/article-search?match=${o}`,{loadingDisabled:!0})]);if(a.searchResultsLoading=!1,A(s,c,l)){a.searchResultsError=s.error||c.error||l.error;return}let u=s.data,d=c.data,f=l.data,p=k(u,d,f);N(p)&&(a.searchResultsList=p)};
1function k(e,t,n){let r=[];return N(e)&&r.push({name:`基金`,type:`fund`,pageSize:5,listAll:e,list:e.slice(0,5),hideMore:e.length<=5}),N(t)&&r.push({name:`基金经理`,type:`manager`,pageSize:5,listAll:t,list:t.slice(0,3),hideMore:t.length<=3}),N(n)&&r.push({name:`文章`,type:`article`,pageSize:3,listAll:n,list:n.slice(0,3),hideMore:n.length<=3}),r}function A(e,t,n){return e.error||t.error||n.error}return(t,i)=>(n(),y(`div`,{ref_key:`search`,ref:r,class:`search`},[x(`div`,ke,[S(z,{icon:`search`}),u(x(`input`,{"onUpdate:modelValue":i[0]||=e=>a.keywords=e,placeholder:a.placeholder,onFocus:E,onInput:w},null,40,Ae),[[D,a.keywords]]),S(z,{icon:`close`,onClick:i[1]||=e=>{a.keywords=``,a.searchResultsList=[],a.searchResultsError=null}})]),a.searchResultsLoading?(n(),y(`div`,je,[S(q)])):a.searchResultsError&&a.keywords?(n(),y(`div`,Me,e(a.searchResultsError),1)):a.searchResultsList&&a.keywords?(n(),y(`div`,Ne,[(n(!0),y(h,null,l(a.searchResultsList,(t,r)=>(n(),y(`div`,{key:r,class:`search-results-group`},[x(`div`,Pe,[d(e(t.name)+` `,1),t.hideMore?m(``,!0):(n(),y(`div`,{key:0,class:`search-results-more`,onClick:e=>_(t)},` 更多结果 `,8,Fe))]),x(`div`,Ie,[(n(!0),y(h,null,l(t.list,(r,i)=>(n(),y(`div`,{key:i,class:`search-results-item`,onClick:e=>g(t.type,r)},[x(`div`,{innerHTML:f(t.type,r)},null,8,Re),r.publishTime?(n(),y(`div`,ze,e(p(r.publishTime)),1)):m(``,!0),r.symbol?(n(),y(`div`,Be,[x(`div`,null,e(r.symbol),1),r.fundType?(n(),y(`div`,Ve,e(r.fundType),1)):m(``,!0)])):m(``,!0),r.companyName?(n(),y(`div`,He,[x(`div`,null,e(r.companyName),1),r.aumText?(n(),y(`div`,Ue,` 管理规模:`+e(r.aumText),1)):m(``,!0)])):m(``,!0)],8,Le))),128))])]))),128))])):a.keywords&&(!a.searchResultsList||a.searchResultsList.length===0)?(n(),y(`div`,We,` 无搜索结果 `)):m(``,!0)],512))}},[[`__scopeId`,`data-v-2a4f83aa`]]),Ke={class:`header page-inner header-center-inner`},qe={class:`header-left`},Je={class:`header-action-list`},Ye={class:`header-right`},Xe={class:`header-action-list`},Ze={class:`search-action-main`},Qe={class:`side-nav`},$e={class:`side-group`},et={class:`icon`},tt={class:`side-group`},nt={class:`icon`},rt={class:`side-item side-expand`},it=[`onClick`],at=[`onClick`],ot=[`onClick`],st={class:`side-sub-list`},ct=[`onClick`],lt={class:`expand-arrow`},ut=H({__name:`cn-header-mobile`,setup(t){let r=b({menuActionVisible:!1,productsPopoverMenuVisible:!1,productsPopoverMenuHover:!1,productsPopoverOverlayHover:!1,toolsPopoverMenuVisible:!1,toolsPopoverMenuHover:!1,toolsPopoverOverlayHover:!1,aboutPopoverMenuVisible:!1,aboutPopoverMenuHover:!1,aboutPopoverOverlayHover:!1,popoverMenuVisible:!1,popoverMenuTarget:null,popoverMenuData:null}),a=[{icon:`tools-fund-selection`,title:`基金筛选`,desc:`利用晨星星级、分类以及其它指标选择基金`,path:`/screener`},{icon:`tools-cb-wmc`,title:`跨境基金专题`,desc:`利用晨星星级、分类以及其它指标选择跨境基金产品`,path:`/wmc`},{icon:`tools-fund-company`,title:`基金公司`,external:!0,desc:`了解基金公司的整体规模、基金经理数量`,path:`https://www.morningstar.cn/fundcompany/default.aspx`},{icon:`tools-fund-manager`,title:`基金经理`,desc:`查看基金经理当前及历史的在管产品`,path:`/fund-manager`},{icon:`tools-fund-compare`,title:`基金对比`,external:!0,desc:`比较两只基金的业绩、持仓及投资团队等`,path:`https://www.morningstar.cn/fundcompare/compare.aspx`},{icon:`tools-e-account`,title:`E账户诊断`,desc:`同步基金E账户,诊断个人全平台持仓`,path:`/e-account`},{icon:`tools-investor-return`,title:`投资者回报`,desc:`查询全市场基金的投资者回报数据`,path:`/investor-return`},{icon:`tools-comprehensive-fee`,title:`综合费率`,desc:`查询全市场基金的综合费率情况`,path:`/comprehensive-fee`}],c=()=>{window.location=`/`},d=()=>{j(`fundTool`,`旧版晨星网`),window.open(`https://www.morningstar.cn/origin/default.aspx`)},g=(e,t)=>{if(G(t),e){if(r.menuActionVisible=!1,e.external&&e.path){window.open(e.path);return}e.path&&(window.location.href=e.path.startsWith(`/page/`)?e.path:`/page.html#${e.path}`)}},_=()=>{let e=document.querySelector(`.header-xs`);return e?Math.ceil(e.getBoundingClientRect().width):K.windowWidth},v=e=>{r.searchActionVisible=!0;let t=K.windowWidth<=430?20:32;r.searchActionWidth=_()-t*2,console.log(`search action width:`,r.searchActionWidth),r.searchActionTarget={x:t,y:54,width:0,height:0}},C=e=>{r.searchActionVisible=!1;let t=[];
1r.menuList.forEach(e=>{e.list?t.push(e.list):t.push(e)}),r.menuActionList=t.flat(),r.menuActionVisible=!0,r.menuActionTarget={x:K.windowWidth*.5,y:65,width:0,height:0}},w=e=>{r.searchActionVisible=!1,r.menuActionVisible=!1},T=()=>[{text:`观点`,path:`/page/insights.html`},{text:`工具`,path:`/tools`,icon:`collapse-down`,list:a},{text:`市场`,path:`/markets`},{text:`数据`,path:`/data`}].filter(e=>!e.hide),E=()=>[{text:`观点`,icon:`nav-eye`,path:`/page/insights.html`},{text:`工具`,path:`/tools`,icon:`nav-tool`,expand:!0,list:[{text:`基金筛选`,needLogin:!0,path:`/screener`},{text:`跨境基金专题`,needLogin:!0,path:`/wmc`},{text:`基金公司`,external:!0,needLogin:!0,path:`https://www.morningstar.cn/fundcompany/default.aspx`},{text:`基金经理`,needLogin:!0,path:`/fund-manager`},{text:`基金对比`,external:!0,needLogin:!0,path:`https://www.morningstar.cn/fundcompare/compare.aspx`},{text:`E 账户诊断`,needLogin:!0,path:`/e-account`},{text:`投资者回报`,needLogin:!0,path:`/investor-return`},{text:`综合费率`,needLogin:!0,path:`/comprehensive-fee`}]},{text:`市场`,icon:`nav-market`,path:`/markets`},{text:`数据`,icon:`nav-data`,path:`/data`},{path:`/products`,text:`产品与服务`,expand:!0,icon:`nav-product`,list:[{text:`Morningstar Direct 终端`,path:`/direct`},{text:`基金数据`,path:`/feedback/fund`},{text:`全球数据`,path:`/feedback/globalMarket`},{text:`晨星AI解决方案`,path:`/ai-solutions`},{text:`跨境基金解决方案`,path:`/cross-border`},{text:`投顾业务解决方案`,path:`/advisor-solution`},{text:`销售适当性`,path:`/feedback/suitability`}]},{path:`/company`,text:`关于晨星`,expand:!0,icon:`nav-morningstar-m`,list:[{text:`投资峰会`,path:`/mic`},{text:`晨星故事`,path:`/company`},{text:`信息披露`,path:`/evaluation`},{text:`联系我们`,path:`/contact-us`}]}].filter(e=>!e.hide);return o(()=>{r.menuList=T(),r.mobileMenuList=E(),window.addEventListener(`resize`,()=>{r.menuList=T()})}),(t,a)=>(n(),y(h,null,[x(`div`,Ke,[x(`div`,qe,[x(`div`,Je,[S(z,{class:`header-action-item`,icon:`menu`,size:`23px`,color:`#5E5E5E`,onClick:C})]),x(`div`,{class:`header-logo`,onClick:c},[S(z,{icon:`logo`,width:`126px`,height:`28px`,color:`red`})])]),x(`div`,Ye,[x(`div`,Xe,[r.searchActionVisible?(n(),p(z,{key:0,class:`header-action-item`,icon:`close`,size:`30px`,color:`#5E5E5E`,onClick:w})):(n(),p(z,{key:1,class:`header-action-item`,icon:`search`,size:`23px`,color:`#5E5E5E`,onClick:v}))]),S(Ee)])]),S(J,{modelValue:r.searchActionVisible,"onUpdate:modelValue":a[0]||=e=>r.searchActionVisible=e,target:r.searchActionTarget,positions:`bottom,start`,arrow:!1,width:r.searchActionWidth,"auto-close":!1,"bind-scroll":!1,"bind-resize":!1,"border-radius":`0`,padding:`0px`,"append-to-body":!0,class:`popover-action popover-action-search`},{default:i(()=>[x(`div`,Ze,[S(Ge)])]),_:1},8,[`modelValue`,`target`,`width`]),S(Oe,{modelValue:r.menuActionVisible,"onUpdate:modelValue":a[3]||=e=>r.menuActionVisible=e,position:`left`,width:`300px`,class:`side-nav-popover`},{default:i(()=>[x(`div`,{class:`overlay`,onClick:a[1]||=e=>r.menuActionVisible=!1}),x(`nav`,Qe,[x(`div`,$e,[x(`div`,{class:`side-item top-action`,onClick:a[2]||=e=>{r.menuActionVisible=!1}},[x(`span`,et,[S(z,{icon:`nav-left`,size:`15px`})]),a[4]||=x(`span`,{class:`label muted`},`收起`,-1)])]),x(`div`,tt,[x(`div`,{class:`side-item`,onClick:d},[x(`span`,nt,[S(z,{icon:`nav-history`,size:`15px`})]),a[5]||=x(`span`,{class:`label`},`旧版晨星网`,-1)])]),(n(!0),y(h,null,l(r.mobileMenuList,(t,r)=>(n(),y(`div`,{key:r,class:`side-group`},[x(`div`,rt,[x(`span`,{class:`icon`,onClick:e=>g(t,e)},[S(z,{icon:t.icon,size:`15px`},null,8,[`icon`])],8,it),x(`span`,{class:`label`,onClick:e=>g(t,e)},e(t.text),9,at),t.list?(n(),y(`span`,{key:0,class:s([`expand-arrow`,{open:t.expand}]),onClick:e=>t.expand=!t.expand},[S(z,{icon:`collapse-down`,size:`15px`})],10,ot)):m(``,!0)]),t.list?(n(),p(A,{key:0,name:`expand-fade`},{default:i(()=>[u(x(`div`,st,[(n(!0),y(h,null,l(t.list,(t,r)=>(n(),y(`div`,{key:r,class:`side-sub-item`,onClick:e=>g(t,e)},[x(`span`,null,e(t.text),1),u(x(`span`,lt,[S(z,{icon:`nav-lock`,size:`15px`})],512),[[k,!f(K).userInfo&&t.needLogin]])],8,ct))),128))],512),[[k,t.expand]])]),_:2},1024)):m(``,!0)]))),128))])]),_:1},8,[`modelValue`])],64))}},[[`__scopeId`,`data-v-b54deccf`]]);export{J as i,Ee as n,ve as r,ut as t};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.