1import{H as F,t as E,o as s,C as v,c as w,f as o,v as h,I as d,h as e,L as x,F as $,B as V,y as J,g as R,R as W,J as q}from"./tP_neK1T.js";import{_ as A}from"./BLRUKKk8.js";import{s as k}from"./DjxsCAPF.js";const D={__name:"CurrentColorSvg",props:["svg"],setup(f){return(n,y)=>{const l=E("inline-svg");return s(),v(l,{src:f.svg,class:"currentColor"},null,8,["src"])}}},G=F(D,[["__scopeId","data-v-70c527c7"]]),K={class:"lg:self-end text-white space-y-4"},O=["innerHTML"],P=["innerHTML"],Q=["innerHTML"],U={key:0,autoHeight:"true","slides-per-view":"1",loop:"",speed:"800","autoplay-delay":"4000",effect:"fade",class:"overflow-hidden h-[calc(100svh-3.75rem)]"},X=["src"],Y={__name:"Banner",props:["content","title","defaultImg","size"],setup(f){const n=f,y=w(()=>{var r,m,p,c,i,g;if(n.title)return n.title;let t=((p=(m=(r=n.content)==null?void 0:r.acf)==null?void 0:m.hero_section)==null?void 0:p.title)||((c=n==null?void 0:n.content)==null?void 0:c.name);return t?t.replace(/\r?\n/g,"<br>"):(g=(i=n==null?void 0:n.content)==null?void 0:i.title)==null?void 0:g.rendered}),l=w(()=>{var t,r;return((r=(t=n.content)==null?void 0:t.acf)==null?void 0:r.hero_section)||{}}),b=w(()=>{var t;return(((t=l.value)==null?void 0:t.gallery)||[]).length===0||!l.value.size?n.size||"half":l.value.size});return(t,r)=>{var i,g,z,T,j,C,L,H,B,M,I;const m=G,p=q,c=A;return s(),o("div",{class:d(["relative mt-15 max-h-screen overflow-hidden hero-section",{"lg:h-[calc(100svh-3.75rem)] lg:max-h-[55rem]":e(b)==="full","lg:h-[31.25rem]":e(b)==="half"}])},[h("div",{class:d(["absolute flex justify-center w-full h-[calc(100svh-3.75rem)] lg:max-h-[55rem] z-10",{"lg:bg-[linear-gradient(180deg,rgba(0,0,0,0.00)_64.47%,#000_100%)]":e(l).gallery,"lg:h-full lg:max-h-[31.25rem]":e(b)==="half"}])},[h("div",{class:d(["relative flex flex-col lg:flex-row justify-between max-w-screen w-full h-[calc(100svh-3.75rem)] lg:h-full px-5 pt-20 pb-5 lg:py-15",(i=e(l))!=null&&i.links?"justify-between":"justify-end"])},[h("div",K,[e(y)?(s(),o("h1",{key:0,class:d(["text-3xl lg:text-5xl font-bold hero-title",{"txt-shadow":(z=(g=e(l))==null?void 0:g.links)==null?void 0:z.length}]),innerHTML:("sanitizeTitle"in t?t.sanitizeTitle:e(k))(e(y))},null,10,O)):x("",!0),(C=(j=(T=n.content)==null?void 0:T.acf)==null?void 0:j.hero_section)!=null&&C.subtitle?(s(),o("h2",{key:1,class:"text-xl lg:text-3xl",innerHTML:("sanitizeTitle"in t?t.sanitizeTitle:e(k))(n.content.acf.hero_section.subtitle)},null,8,P)):x("",!0)]),(L=e(l).items)!=null&&L.length?(s(),o("div",{key:0,class:d(["flex flex-col gap-2.5 lg:gap-15",e(l).items.length===2?"lg:my-auto":"lg:mt-15 lg:justify-around"])},[(s(!0),o($,null,V(e(l).items,a=>{var u;return s(),v(p,{class:"banner-button flex lg:flex-col items-center gap-2.5 lg:max-w-64 bg-black/30 hover:bg-orange-bright/80 drop-shadow-[0_3px_3px_rgba(0,0,0,0.260)] rounded-2.5xl p-2.5 transition-colors",to:(u=a==null?void 0:a.page)==null?void 0:u.url},{default:J(()=>{var _,N,S;return[(N=(_=a.page)==null?void 0:_.page_link_data)!=null&&N.icon?(s(),v(m,{key:0,svg:a.page.page_link_data.icon.url,alt:"",class:"size-10 lg:size-15 text-white drop-shadow-[0_3px_3px_rgba(0,0,0,0.60)]"},null,8,["svg"])):x("",!0),h("p",{class:"text-2xl lg:text-3xl text-white text-center font-bold btn-shadow",innerHTML:("sanitizeTitle"in t?t.sanitizeTitle:e(k))((S=a==null?void 0:a.page)==null?void 0:S.title)},null,8,Q)]}),_:2},1032,["to"])}),256))],2)):x("",!0)],2)],2),((B=(H=e(l))==null?void 0:H.gallery)==null?void 0:B.length)>1?(s(),o("swiper-container",U,[(s(!0),o($,null,V(e(l).gallery,a=>(s(),o("swiper-slide",null,[R(c,{image:a,"img-class":"h-[calc(100svh-3.75rem)] w-full object-cover",mode:"full_height_gallery"},null,8,["image"])]))),256))])):((I=(M=e(l))==null?void 0:M.gallery)==null?void 0:I.length)===1?(s(),v(c,{key:1,image:e(l).gallery[0],"img-class":"h-[calc(100svh-3.75rem)] lg:h-full w-full object-cover",mode:"full_height_gallery"},null,8,["image"])):W(t.$slots,"default-image",{key:2},()=>{var a,u,_;return[h("img",{src:(((_=(u=(a=f.content)==null?void 0:a.acf)==null?void 0:u.page_defaults)==null?void 0:_.color_theme)!=="trade","/img/banner_default.jpg"),alt:"",class:"h-[calc(100svh-3.75rem)] lg:h-full w-full object-cover"},null,8,X)]},!0)],2)}}},le=F(Y,[["__scopeId","data-v-ac3c0742"]]);export{le as _,G as a};
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.