1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DxuSJFhS.js","./B7r127EE.js","./DPSUJBQt.js","./entry.Bi2zfOU0.css","./RichTextHelper.C1co_z4L.css","./BF5h8tZL.js","./MarkdownHelper.D7M-Dp28.css","./BiBnD_pJ.js","./JdTd-F2n.js"])))=>i.map(i=>d[i]); 2import{e as F,a,d as c,f as i,j as d,i as r,n as w,W as I,o as e,F as u,r as h,y as o,B as N,b as l,ak as j,x as y,t as p,a0 as O,D as T,au as g,k as R,av as b}from"./DPSUJBQt.js";/* empty css */import{S as C,C as V,N as z,P as U}from"./lupnmuFY.js";import{u as $}from"./BtpXjmIm.js";const M=g(()=>b(()=>import("./DxuSJFhS.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url).then(n=>n.default||n)),W={class:"slider-header relative block"},G={class:"slider-header__img md:absolute md:inset-0 md:w-full md:h-full"},q={class:"slide-container"},J={class:"text-base lg:text-md mb-4 mt-4"},K={key:0},Q={key:1},X=["textContent"],Y={class:"text-left"},Z={key:0,class:"text-theme-primary-dark font-theme-bold text-xl mb-6 md:mb-12"},tt={key:1,class:"flex flex-row justify-center md:justify-between flex-wrap"},et=["href"],at={key:0,class:"slider-header__text--controls relative block"},ut=F({__name:"SliderHeader",props:{itemsToShow:{default:1},wrapAround:{type:Boolean,default:!0},slides:{default:()=>[]},contentful:{},modifiers:{default:()=>[]},hasH1:{type:Boolean,default:!0},fullWidth:{type:Boolean,default:!0}},setup(n,{expose:H}){const S=n,E=g(()=>b(()=>import("./BF5h8tZL.js"),__vite__mapDeps([5,2,3,6]),import.meta.url)),A=g(()=>b(()=>import("./BiBnD_pJ.js"),__vite__mapDeps([7,2,3]),import.meta.url)),P=g(()=>b(()=>import("./JdTd-F2n.js"),__vite__mapDeps([8,2,3]),import.meta.url)),k=R(()=>S.modifiers.includes("cruise-line")?"700":"640"),f=I(0);return $(".carousel__prev, .carousel__next"),H({slideTo:B=>{f.value=B}}),(B,s)=>{const v=N,L=O,D=M;return e(),a("div",W,[c("div",G,[i(r(V),{modelValue:f.value,"onUpdate:modelValue":s[0]||(s[0]=t=>f.value=t),"wrap-around":!0,"items-to-show":1,"touch-drag":n.slides.length>1,"mouse-drag":n.slides.length>1,class:"w-full md:!h-full max-md:mb-4"},{default:d(()=>[(e(!0),a(u,null,h(n.slides,(t,x)=>(e(),o(r(C),{key:x},{default:d(()=>[i(v,{"public-id":t.media,"resource-type":t.mediaType||"image",alt:t.mediaAlt,class:w(["slider-header__image w-full md:h-full object-cover min-h-0",{"md:min-h-[640px]":k.value==="640","md:min-h-[700px]":k.value==="700"}]),"resize-type":"fit",width:"1236",height:k.value},null,8,["public-id","resource-type","alt","class","height"])]),_:2},1024))),128))]),_:1},8,["modelValue","touch-drag","mouse-drag"])]),c("div",{class:w(["relative h-full w-full md:flex md:items-start md:justify-end md:p-16",{"xl:pr-wm":n.fullWidth}])},[i(r(V),{modelValue:f.value,"onUpdate:modelValue":s[1]||(s[1]=t=>f.value=t),"wrap-around":!0,"items-to-show":1,"touch-drag":!1,"mouse-drag":!1,class:"slider-header__text w-full bg-white/90 relative md:max-w-[50%] lg:max-w-[514px]"},{addons:d(({slidesCount:t})=>[t>1?(e(),a("div",at,[i(r(z)),i(r(U))])):l("",!0)]),default:d(()=>[(e(!0),a(u,null,h(n.slides,(t,x)=>(e(),o(r(C),{key:x},{default:d(()=>[c("div",q,[t?.logo?(e(),o(v,{key:0,"public-id":t?.logo,alt:t?.logoAlt,width:"190",class:"my-4 block slider-header__logo mx-auto max-w-[120px] lg:max-w-[190px]"},null,8,["public-id","alt"])):l("",!0),(e(),o(j(x===0&&n.hasH1?"h1":"h2"),{class:w(["font-theme-bold text-2xl lg:text-3xl text-t-primary-dark mb-6",`${t?.contentful?.alignText==="Center"?"text-center":"text-left"}`])},{default:d(()=>[y(p(t.heading),1)]),_:2},1032,["class"])),c("span",J,[t.date?(e(),a("span",K,p(t.date),1)):l("",!0),t.tags&&t.tags.length?(e(),a("span",Q,[s[2]||(s[2]=y(" | ",-1)),(e(!0),a(u,null,h(t.tags,(m,_)=>(e(),a("span",null,[_>=1?(e(),a(u,{key:0},[y(",")],64)):l("",!0),y(" "+p(m),1)]))),256))])):l("",!0)]),t.summary&&t.summary.length?(e(!0),a(u,{key:1},h(t.summary,(m,_)=>(e(),a("p",{key:`summary${_}`,class:"text-md lg:text-lg mt-6 mb-5",textContent:p(m)},null,8,X))),128)):l("",!0),t.ctaBtn?.url?(e(),o(L,{key:2,"btn-type":"link",href:t.ctaBtn.url,label:t.ctaBtn.label,class:"mx-auto"},null,8,["href","label"])):t.contentful?.summary?(e(),a(u,{key:3},[t.contentful.summaryType==="markdown"?(e(),o(r(E),T({key:0,ref_for:!0},{content:t?.contentful?.summary,characterLimit:t?.contentful?.characterLimit,buttonStyle:t?.contentful?.buttonStyle,buttonLabel:t?.contentful?.buttonLabel,alignText:t?.contentful?.alignText}),null,16)):t.contentful.summaryType==="richtext"?(e(),o(D,T({key:1,ref_for:!0},{content:t?.contentful?.summary,characterLimit:t?.contentful?.characterLimit,buttonStyle:t?.contentful?.buttonStyle,buttonLabel:t?.contentful?.buttonLabel,alignText:t?.contentful?.alignText}),null,16)):l("",!0)],64)):l("",!0),c("div",Y,[t.subHeading?(e(),a("h3",Z,p(t.subHeading),
21)):l("",!0),t.popularItems&&t.popularItems.length?(e(),a("div",tt,[(e(!0),a(u,null,h(t.popularItems,(m,_)=>(e(),a("div",{key:`logo_${_}`,class:"md:px-6 lg:px-10 py-2 w-1/2"},[c("a",{href:m.url},[i(v,T({ref_for:!0},m),null,16)],8,et)]))),128))])):l("",!0),t?.goodFor&&t?.goodFor.length?(e(),o(r(P),{key:2,highlights:t?.goodFor,class:"mb-6"},null,8,["highlights"])):l("",!0)]),t?.contentful?.ctaBtn?(e(),o(r(A),{key:4,"content-fields":t.contentful.ctaBtn,class:"mt-5 block"},null,8,["content-fields"])):l("",!0),t.linkUrl?(e(),o(L,{key:5,class:"button text-md lg:text-lg inline-block mt-4",href:t.linkUrl,label:t.linkText,"btn-type":"link"},null,8,["href","label"])):l("",!0)])]),_:2},1024))),128))]),_:1},8,["modelValue"])],2)])}}});export{ut as _};
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.