1import{_ as D}from"./B68zg1hi.js";import{_ as F}from"./CllkQZpm.js";import{d as J,a_ as M,J as N,O as Q,o as w,c as L,b as O,w as R,F as U,i as A,aI as K,j as P,as as V,bl as W,aq as X,a as Y,u as r,n as S,Q as Z,m as ee,L as te,r as i,l as f,N as ae,T as le}from"./DpS1Vpq_.js";import"./C3ckHzJT.js";const se=J({name:"HeroSlide",__name:"index",props:{widget:{}},setup(a){const l=a,s=i(0),v=i(),{isMobile:p}=M(),y=i(),$={short:5e3,medium:8e3,long:1e4},h=i(null),x=i(null),d=i(!1),g=i(!1),c=()=>{var e,t;if(p){const o=(e=h.value)==null?void 0:e.getBoundingClientRect(),b=(t=x.value)==null?void 0:t.offsetHeight,u=window.innerHeight;o.top<u-96&&o.bottom>u-b?(d.value=!0,g.value=!1):(d.value=!1,g.value=o.top<u-96)}},G=f(()=>{var e;return(e=l.widget.contents)==null?void 0:e.map((t,o)=>({index:o,label:t==null?void 0:t.tabTitle,image:t==null?void 0:t.tabImage}))}),q=f(()=>({"flex-col":n.value==="bottom","flex-col-reverse":n.value==="top","flex-row":n.value==="right","flex-row-reverse":n.value==="left"})),n=f(()=>p.value&&["left","right"].includes(l.widget.layout.position)?"bottom":l.widget.layout.position||"bottom"),_=()=>{v.value&&clearInterval(v.value),l.widget.contents&&l.widget.pagination&&(v.value=ae(()=>{const e=l.widget.contents.length-1;I(s.value>=e?0:s.value+=1)},$[l.widget.paginationDelay||"short"]))},I=e=>{B(s.value>e?"right":"left"),s.value=e,window.dispatchEvent(new Event("resize")),_()},B=e=>{y.value=`${l.widget.transition}-${e}`};return N(()=>{window.addEventListener("scroll",c),c(),_()}),Q(()=>{clearInterval(v.value),window.removeEventListener("scroll",c)}),(e,t)=>{var u,k,z,E,H,T,j;const o=D,b=F;return w(),L("div",{ref_key:"slideHero",ref:h,class:S(["relative z-20 flex w-full bg-cover text-clear slide-hero group",[r(q),a.widget.layout.style,r(n),(u=a.widget.style)==null?void 0:u.theme,("useStyleObject"in e?e.useStyleObject:r(te))(a.widget.style),{"bg-surface":(k=a.widget.style)==null?void 0:k.theme}]]),style:Z({backgroundImage:`url('${("useGCImage"in e?e.useGCImage:r(ee))(!0,1600,1600,(T=(H=(E=(z=a.widget)==null?void 0:z.style)==null?void 0:E.background)==null?void 0:H.image)==null?void 0:T.image)}')`})},[O(X,{name:y.value||"fade",mode:"out-in",tag:"article",class:"relative w-full h-[743px] lg:min-h-[800px] overflow-hidden"},{default:R(()=>[(w(!0),L(U,null,A(a.widget.contents,(m,C)=>K((w(),P(o,V({key:m.uuid,ref_for:!0},m,{active:s.value===C}),null,16,["active"])),[[W,s.value===C]])),128))]),_:1},8,["name"]),Y("div",{ref_key:"stickyTabs",ref:x,class:S(["z-50 w-full sm:absolute sm:bottom-0 sm:left-0",{"fixed bottom-0 left-0":d.value,"absolute left-0":!d.value,"bottom-0":g.value,"top-24":!g.value&&!d.value}])},[O(b,{class:"z-20","tab-style":a.widget.layout.style||"expanding","tab-position":r(n),"tab-border":a.widget.layout.border||"rounded","active-tab":s.value,items:r(G),theme:((j=a.widget.style)==null?void 0:j.theme)||"light",onTabUpdated:t[0]||(t[0]=m=>I(m))},null,8,["tab-style","tab-position","tab-border","active-tab","items","theme"])],2)],6)}}}),re=le(se,[["__scopeId","data-v-a57f1d73"]]);export{re 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.