1import{_ as R,i as T,k as z,b as u,Q as F,v as b,o as a,d as n,e as r,t as i,a as o,c as f,w as h,R as $,J as O,l as s,L as P,f as Q,S as Y,F as j,r as q,s as E}from"./ruXfovmV.js";import{a as J,i as M,r as v}from"./BsFIP8P9.js";import S from"./BYKbSRzf.js";import U from"./CcUHjFc8.js";import X from"./BkmRWtTF.js";const A=e=>(q("data-v-e931cc76"),e=e(),E(),e),G={class:"subtitle"},H={key:0,class:"description"},K=A(()=>r("i",null,null,-1)),W=["src","alt"],Z={key:0,class:"common-content description"},_={class:"y-dialog-content"},ee={__name:"Banner",props:{subtitle:{type:String,default:""},title:{type:String,default:""},desc:{type:String,default:""},cover:{type:Object,default:()=>({})},coverVideo:{type:String,default:""},video:{type:String,default:""},btnText:{type:String,default:"æ¥çè§é¢"},alt:{type:String,default:""}},setup(e){const V=e,m=T(),{locale:x}=z(),I=u(()=>J(x.value)),{data:w}=F("/api/ymkd/v1/page-info",{query:{code:m.params.id,locale:I.value}},"$0QIBoMXmVz"),B=u(()=>{var c;return M(m.params.id)&&!((c=w.value)!=null&&c.data)}),D=u(()=>B.value?"p":"h1"),y=b(),l=b(!1),C=u(()=>{var t;return{backgroundImage:`url(${(t=V.cover)==null?void 0:t.url})`}}),L=()=>{var t;l.value=!0,(t=y.value)==null||t.play()},N=()=>{var t;l.value=!1,(t=y.value)==null||t.pause()};return(t,c)=>{var g,p,k;return a(),n(j,null,[r("div",{class:"banner",style:P(o(C))}
1,[r("span",G,i(o(v)(e.subtitle)),1),(a(),f(O(o(D)),{class:"title global-title"},{default:h(()=>[$(i(o(v)(e.title)),1)]),_:1})),e.desc?(a(),n("div",H,i(o(v)(e.desc)),1)):s("",!0),e.video?(a(),n("div",{key:1,class:"check-video-btn",onClick:L},[K,r("span",null,i(e.btnText),1)])):s("",!0),(g=e.cover)!=null&&g.url?(a(),n("img",{key:2,class:"seo-img",src:(p=e.cover)==null?void 0:p.url,alt:e.alt||e.title},null,8,W)):s("",!0),e.coverVideo?(a(),f(S,{key:3,class:"video-bg",src:(k=e.coverVideo)==null?void 0:k.url,autoplay:"",controls:!1,loop:!0,fluid:""},null,8,["src"])):s("",!0)],4),e.desc?(a(),n("div",Z,i(o(v)(e.desc)),1)):s("",!0),e.video?(a(),f(U,{key:1,show:o(l),"onUpdate:show":c[0]||(c[0]=d=>Y(l)?l.value=d:null),style:{background:"transparent"},"body-style":"position: relative;padding: 24px 36px;"},{default:h(()=>{var d;return[Q(X,{class:"y-dialog-close",size:"20",color:"#fff",onClick:N}),r("div",_,[e.video?(a(),f(S,{key:0,ref_key:"yVideoRef",ref:y,class:"video-bg",src:(d=e.video)==null?void 0:d.url,autoplay:!1,controls:!0,loop:!0,muted:!1,fluid:""},null,8,["src"])):s("",!0)])]}),_:1},8,["show"])):s("",!0)],64)}}},ce=R(ee,[["__scopeId","data-v-e931cc76"]]);export{ce as default};
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.