1import{b as H,c as s,o as l,e as t,d as W,u as O,m,p as q,i as o,g as Q,n as $,h as j,k as i,f as b,y as G,z as g,A as y,t as C,F as J,v as K,a as X}from"./DJPgbf56.js";import{a as Y}from"./D4ynfKJ7.js";import{F as w}from"./2z-woo9n.js";import{S as E}from"./BC5mRJcJ.js";import{S as Z,a as ee}from"./wWMkbp1h.js";const ne={},re={class:"msi"};function ie(k,d){return l(),s("div",re,d[0]||(d[0]=[t("div",{class:"msi__mouse"},[t("div",{class:"msi__scroller"})],-1)]))}const ae=H(ne,[["render",ie],["__scopeId","data-v-cffcc996"]]),te={key:0},se=["autoplay"],le=["src"],oe=["autoplay"],de=["src"],ue=["src","allow"],ce={key:2,class:"mhb__content-bg"},me=["src"],_e=["src"],be={class:"mhb__content"},ve={class:"mhb__content-panel"},pe=["innerHTML"],fe={key:1},he=["innerHTML"],ge=["innerHTML"],ye={class:"mhb__sns"},we={class:"mhb__sns-inner"},ke=["href"],xe={class:"mhb__scroll"},Te={class:"mhb__flex"},Me={class:"mhb__scroll-label"},Ie=W({__name:"MainHeroBanner",props:{isVisibleSocial:{type:Boolean},isPreview:{type:Boolean},previewMedias:{},previewTitle:{},previewSubTitle:{},previewLinkType:{}},async setup(k){let d,x;const{locale:T}=O(),a=k,M=m(null),I=m(null),U=m(null),_=m(!1),v=m(null),{data:n}=([d,x]=q(()=>Y(`/v2/content/banner/herobanner?lang=${T.value}`,{pick:["banner"],transform:e=>!e._embedded.banner||e._embedded.banner.length<1?{banner:{}}:{banner:e._embedded.banner[0]}})),d=await d,x(),d),V=o(()=>T.value!=="zh-cn"),D=o(()=>V.value?Z:ee),S=o(()=>{if(a.isPreview){const e=a.previewMedias.findIndex(r=>r.key==="image");return e<0?"":a.previewMedias[e].imageUrl}if(n.value&&n.value.banner&&n.value.banner.medias&&n.value.banner.medias.length>0){const e=n.value.banner.medias.findIndex(r=>r.key==="image");return e<0?"":n.value.banner.medias[e].imageUrl}return""}),P=o(()=>{if(a.isPreview){const e=a.previewMedias.findIndex(r=>r.key==="image_mobile");return e<0?"":a.previewMedias[e].imageUrl}if(n.value&&n.value.banner&&n.value.banner.medias&&n.value.banner.medias.length>0){const e=n.value.banner.medias.findIndex(r=>r.key==="image_mobile");return e<0?"":n.value.banner.medias[e].imageUrl}return""}),p=o(()=>{if(a.isPreview){const e=a.previewMedias.findIndex(r=>r.key==="movie");return e<0?"":a.previewMedias[e].videoUrl}if(n.value&&n.value.banner&&n.value.banner.medias&&n.value.banner.medias.length>0){const e=n.value.banner.medias.findIndex(r=>r.key==="movie");return e<0?"":n.value.banner.medias[e].videoUrl}return""}),N=o(()=>{if(n.value&&n.value.banner&&n.value.banner.medias&&n.value.banner.medias.length>0){const e=n.value.banner.medias.findIndex(r=>r.key==="movie");return e<0?!1:n.value.banner.medias[e].playType==="AUTO"}return!1}),f=o(()=>{if(a.isPreview){const e=a.previewMedias.findIndex(r=>r.key==="movie_mobile");return e<0?"":a.previewMedias[e].videoUrl}if(n.value&&n.value.banner&&n.value.banner.medias&&n.value.banner.medias.length>0){const e=n.value.banner.medias.findIndex(r=>r.key==="movie_mobile");return e<0?"":n.value.banner.medias[e].videoUrl}return""}),c=o(()=>{if(a.isPreview){const e=a.previewMedias.findIndex(r=>r.key==="embed");return e<0?"":E.getVideoEmbedUrl(a.previewMedias[e].embedUrl,a.previewMedias[e].embedPlatformType)}if(n.value&&n.value.banner&&n.value.banner.medias&&n.value.banner.medias.length>0){const e=n.value.banner.medias.findIndex(r=>r.key==="embed");return e<0?"":E.getVideoEmbedUrl(n.value.banner.medias[e].embedUrl,n.value.banner.medias[e].embedPlatformType)}return""}),F=o(()=>{if(!v.value)return"100%";if(c.value){const e=Number.parseInt(A(c.value).width),r=Number.parseInt(A(c.value).height);return Number.isNaN(e)?"100%":`${v.value.getBoundingClientRect().height*(e/r)}%`}return"100%"}),A=e=>{const r={},u=e.split("&");for(let h=0;h<u.length;h++){const R=u[h].split("=");r[R[0]]=R[1]||""}return r},z=o(()=>{if(n.value&&n.value.banner&&n.value.banner.medias&&n.value.banner.medias.length>0){const e=n.value.banner.medias.findIndex(r=>r.key==="embed");return e<0?!1:n.value.banner.medias[e].playType==="AUTO"}return!1}),B=o(()=>{var e,r;return a.isPreview?a.previewTitle.replaceAll(` 2`,"<br>"):(r=(e=n.value)==null?void 0:e.banner)!=null&&r.title?n.value.banner.title.replaceAll(` 3`,"<br>"):""}),L=o(()=>{var e,r;return a.isPreview?a.previewSubTitle.replaceAll(` 4`,"<br>"):(r=(e=n.value)==null?void 0:e.banner)!=null&&r.subTitle?n.value.banner.subTitle.replaceAll(` 5`,"<br>"):""});return Q(()=>{_.value=!0,!a.isPreview&&(w.RegistElementSimpleRevealNoTriggerWithDelay(M.value,100),w.RegistElementSimpleRevealNoTriggerWithDelay(U.value,200),w.RegistElementSimpleRevealNoTriggerWithDelay(I.value,300))}),(e,r)=>(l(),s("div",{class:$(["mhb-wrap",{"mhb-wrap--preview":a.isPreview}])},[t("div",{ref_key:"mhbRef",ref:v,class:"mhb"},[i(p)||i(f)?(l(),s("div",te,[i(p)?(l(),s("video",{key:0,class:"mhb__content-bg mhb__content-bg--pc",preload:"metadata",muted:"",loop:"",playsinline:"",autoplay:i(N)},[t("source",{src:i(p),type:"video/mp4"},null,8,le)],8,se)):b("",!0),i(f)?(l(),s("video",{key:1,class:"mhb__content-bg mhb__content-bg--mobile",preload:"metadata",muted:"",loop:"",playsinline:"",autoplay:i(N)},[t("source",{src:i(f),type:"video/mp4"},null,8,de)],8,oe)):b("",!0)])):i(c)?(l(),s("iframe",{key:1,class:"mhb__content-bg mgb__content-bg--flex",src:i(c),style:G({width:i(F),height:"100%"}),modestbranding:"0",controls:"0",frameborder:"0",allow:`accelerometer;
5 ${i(z)?"autoplay;":""}encrypted-media; gyroscope; picture-in-picture`,allowfullscreen:""},null,12,ue)):(l(),s("div",ce,[i(S)?(l(),s("img",{key:0,class:"mhb__content-bg mhb__content-bg--pc",src:i(S)},null,8,me)):b("",!0),i(P)?(l(),s("img",{key:1,class:"mhb__content-bg mhb__content-bg--mobile",src:i(P)},null,8,_e)):b("",!0)])),t("div",be,[t("div",ve,[g(t("div",{ref_key:"topTitle",ref:M,class:"mhb__top-title"},[i(B)?(l(),s("span",{key:0,innerHTML:i(B)},null,8,pe)):(l(),s("span",fe,C(e.$t("main__hero__subtitle")),1))],512),[[y,i(_)]]),g(t("div",{ref_key:"logo",ref:U,class:"mhb__logo"},r[0]||(r[0]=[t("div",{class:"mhb__logo-image-gradient"},null,-1),t("div",{class:"mhb__logo-image"},null,-1)]),512),[[y,i(_)]]),g(t("div",{ref_key:"bottomTitle",ref:I,class:"mhb__bottom-title"},[i(L)?(l(),s("span",{key:0,innerHTML:i(L)},null,8,he)):(l(),s("span",{key:1,innerHTML:e.$t("main__hero__description")},null,8,ge))],512),[[y,i(_)]])]),t("div",ye,[t("div",we,[(l(!0),s(J,null,K(i(D),u=>(l(),s("a",{key:u.name,class:$(["mhb__sns-icon",`mhb__sns-icon--${u.name}`]),href:u.url,target:"_blank"},null,10,ke))),128))])])]),t("div",xe,[t("div",null,[t("div",Te,[X(ae)]),t("div",Me,C(e.$t("main__hero__scroll")),1)])])],512),j(e.$slots,"xsollaButton",{},void 0,!0)],2))}}),Be=H(Ie,[["__scopeId","data-v-a8c90532"]]);export{Be as M};
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.