1import{_ as Z}from"./Bi3fk9WE.js";import{_ as ee}from"./DLCxDBBs.js";import te from"./VfBYkUIW.js";import{B as j,C as oe,c as ne}from"./D-eEHrja.js";import{u as se}from"./BPEHEqNZ.js";import{d as ae,aA as re,r as q,c as B,h as w,o as ie,a8 as o,a9 as n,aa as s,u as a,an as y,aj as c,ao as r,at as d,b as le,af as C,F as E,ar as S,ae as u,ab as ce,G as de,ap as pe,aq as ue}from"./D-im9cEu.js";import{A as me,a as ve,b as he}from"./B9v24tLn.js";import"./Dwq9GVxT.js";import"./BosuxZz1.js";import"./auPu19wV.js";import"./Z9lxgbwJ.js";const _e=p=>(pe("data-v-29fdc066"),p=p(),ue(),p),ge={class:"sb-container"},ke={class:"slide-content-section"},we={key:0,class:"slide-content-tag h5 mb-16"},ye={style:{"text-wrap":"wrap","white-space":"pre-wrap",overflow:"visible"}},be={style:{"text-wrap":"wrap","white-space":"pre-wrap",overflow:"visible"}},fe={class:"slide-image"},Be={class:"slide-content-section"},Ce={key:0,class:"slide-content-tag h5 mb-16"},Ee={style:{"text-wrap":"wrap","white-space":"pre-wrap",overflow:"visible"}},Se={style:{"text-wrap":"wrap","white-space":"pre-wrap",overflow:"visible"}},Ie={class:"bottom-entrance-content"},Re={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ae=["stroke"],Le=["onClick"],Ve=_e(()=>s("div",{class:"pagination-layout-item-dot"},null,-1)),$e=[Ve],Te=ae({__name:"SwiperBanner",props:{slides:{},contentAlign:{},positionTop:{type:Boolean},bottomEntrance:{},bottomEntranceColor:{},bottomEntranceBackground:{},bottomEntranceLink:{}},setup(p){re(e=>({72479526:a(J),"51a7ffcf":a(K)}));const{breakpoint:D}=se(),G=q([me]),m=p,O=B(()=>D.value==="desktop"?8e3:6e3),J=B(()=>{var e;return((e=m.bottomEntranceBackground)==null?void 0:e.hex)||"unset"}),K=B(()=>{var e,i,l;return`rgba(${(e=m.bottomEntranceBackground)==null?void 0:e.red}, ${(i=m.bottomEntranceBackground)==null?void 0:i.green}, ${(l=m.bottomEntranceBackground)==null?void 0:l.blue}, 0.8)`||"unset"}),v=q({isBeginning:!1,isEnd:!1,activeIndex:0}),Q=({isBeginning:e,isEnd:i,realIndex:l})=>{v.isBeginning=e,v.isEnd=i,v.activeIndex=l},I=w(null),U=(e,i,l)=>{var _,g;const b=((1-l)*100).toFixed(2);(g=(_=I.value)==null?void 0:_.style)==null||g.setProperty("--progress",`${b}%`)},R=w(null),A=w(!1),W=e=>{R.value=e,A.value=!0},X=e=>{var i;(i=R.value)==null||i.slideTo(e)},L=w("100vh"),h=e=>typeof e=="string"?e.trim():"";return ie(()=>{L.value=`${window.innerHeight}px`}),(e,i)=>{var V,$,T,H,M,N,x;const l=Z,b=ee,_=te,g=oe;return o(),n("section",{class:"sb",ref_key:"SwiperBanner",ref:I,style:d({height:a(L)})},[s("div",ge,[!a(A)&&(($=(V=e.slides)==null?void 0:V[0])!=null&&$.title)?(o(),n("div",{key:0,class:y(["slide-content",e.contentAlign,{"lcp-prerender":!0}])},[s("section",ke,[e.slides[0].tag?(o(),n("div",we,c(e.slides[0].tag),1)):r("",!0),s("div",{class:"slide-content-title h2",style:d({color:(T=e.slides[0].titleColor)==null?void 0:T.hex})},[s("pre",ye,c(h(e.slides[0].title)),1)],4),e.slides[0].description?(o(),n("div",{key:1,class:"slide-content-description body3",style:d({color:(H=e.slides[0].descriptionColor)==null?void 0:H.hex})},[s("pre",be,c(h(e.slides[0].description)),1)],4)):r("",!0)])],2)):r("",!0),le(a(he),{class:"swiper",speed:700,"allow-touch-move":!0,loop:((M=e.slides)==null?void 0:M.length)>1,modules:a(G),onInit:W,onSlideChange:Q,onAutoplayTimeLeft:U,autoplay:{delay:a(O),disableOnInteraction:!1}},{default:C(()=>[(o(!0),n(E,null,S(e.slides,(t,k)=>(o(),u(a(ve),{class:"slide"},{default:C(()=>{var f,z,F,P;return[s("div",fe,[t.__typename==="SlideRecord"?(o(),u(l,{key:0,data:t.image,preload:k===0},null,8,["data","preload"])):t.__typename==="VideoSlideRecord"?(o(),u(b,{key:1,data:t.video},null,8,["data"])):r("",!0)]),s("div",{class:y(["slide-content",e.contentAlign])},[s("section",Be,[t.tag?(o(),n("div",Ce,c(t.tag),1)):r("",!0),s("div",{class:"slide-content-title h2",style:d({color:(f=t.titleColor)==null?void 0:f.hex})},[s("pre",Ee,c(h(t.title)),1)],4),t.description?(o(),n("div",{key:1,class:"slide-content-description body3",style:d({color:(z=t.descriptionColor)==null?void 0:z.hex})},[s("pre",Se,c(h(t.description))+` 2 `,1)],4)):r("",!0)]),((F=t==null?void 0:t.buttons)==null?void 0:F.length)>0?(o(),n("div",{key:0,class:"slide-content-buttons",style:d({"--count":(P=t.buttons)==null?void 0:P.length})},[(o(!0),n(E,null,S(t.buttons,Y=>(o(),u(_,ce({ref_for:!0},Y,{linkResolver:"linkResolver"in e?e.linkResolver:a(j)}),null,16,["linkResolver"]))),256))],4)):r("",!0)],2)]}),_:2},1024))),256))]),_:1}
2,8,["loop","modules","autoplay"]),e.bottomEntrance?(o(),n("div",{key:1,class:"bottom-entrance body5",style:d({color:(N=e.bottomEntranceColor)==null?void 0:N.hex})},[e.bottomEntranceLink?(o(),u(g,{key:0,field:e.bottomEntranceLink,"link-resolver":"linkResolver"in e?e.linkResolver:a(j)},{default:C(()=>{var t;return[s("div",Ie,[de(c(e.bottomEntrance)+" ",1),(o(),n("svg",Re,[s("path",{d:"M9.5 16L15.5 10M15.5 10L9.5 4M15.5 10H3.5",stroke:(t=e.bottomEntranceColor)==null?void 0:t.hex,"stroke-width":"1.07143"},null,8,Ae)]))])]}),_:1},8,["field","link-resolver"])):r("",!0)],4)):r("",!0),((x=e.slides)==null?void 0:x.length)>1?(o(),n("div",{key:2,class:y(["pagination-layout",{"show-bottom-entrance":!!e.bottomEntrance}])},[(o(!0),n(E,null,S(e.slides,(t,k)=>(o(),n("div",{class:y(["pagination-layout-item",{active:a(v).activeIndex===k}]),key:t.title,onClick:f=>X(k)},$e,10,Le))),128))],2)):r("",!0)])],4)}}}),Oe=ne(Te,[["__scopeId","data-v-29fdc066"]]);export{Oe 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.