1import y from"./BWsXo3tB.js";import w from"./Bsf0mxQV.js";import C from"./DaIngsXz.js";import f from"./CQ61DbPQ.js";import v from"./YpzxG479.js";import{d as S,e as H,g as A,s as D,h as L}from"./CVCOafgd.js";import{_ as W,c as a,l as h,e as r,n as s,a as c,j as l,F as B,x as I,w as z,r as F,u as j,o,t as T}from"./C_VzGqEg.js";import{a as N}from"./JR_dtwf4.js";import"./DtfDc6gd.js";import"./z53ZjBTY.js";import"./mgMoQjWH.js";import"./BamlxnDL.js";import"./BLuxgZ3F.js";import"./Dsxsh6sg.js";import"./BhyboY_X.js";import"./NnXrcQGe.js";import"./BJ8DeCX5.js";import"./BVIQdDd4.js";import"./SLKFLf4j.js";import"./C-9dbQSY.js";import"./C4fTG6EF.js";import"./CIfc6IQW.js";import"./BSy4JHtP.js";import"./DKeVZpFc.js";import"./DY4SgOtO.js";import"./BA3S9Qb4.js";import"./CkEu89z3.js";import"./B3iim-KL.js";import"./BXUykJ2C.js";import"./Chyz3EDp.js";import"./2h_uk5DF.js";import"./8JGrCZUO.js";import"./Bw2cPcki.js";import"./BDmGCnhJ.js";import"./BuQBOjcE.js";import"./s3_Otaqs.js";import"./B-yGqZyG.js";import"./LfmN3RZR.js";import"./CY0PcdZl.js";import"./ZwuLzPRm.js";import"./BjYxkQw3.js";import"./Dj2vd1FS.js";import"./Cz7YsKok.js";import"./B0hBdtTj.js";import"./CqXCemgF.js";import"./DLPSkQwF.js";import"./BEsDnUJP.js";import"./BXbTEqmD.js";import"./JB-VHAAP.js";import"./C1G0POQs.js";import"./Bc1rArTd.js";import"./alWqIy3s.js";import"./Crr0GwaG.js";import"./XKaySTwn.js";import"./CtcVRfPe.js";import"./BmVA1Fhd.js";import"./B5UfoBF-.js";import"./C9R0TS7U.js";import"./BXGXhy4c.js";import"./BFCiwhB7.js";import"./aOjMXEfI.js";import"./BoBHCbwg.js";import"./GmToSYe4.js";import"./qd73kTeZ.js";import"./Bqsy2Yht.js";import"./B8KuNCeR.js";import"./CEvt6g13.js";import"./C7KChRbo.js";import"./CsxoMG-j.js";import"./cCsmyXn7.js";import"./pvNInfal.js";import"./DNtRt3-K.js";import"./CTtN8_V5.js";import"./C-UI_2aN.js";import"./DL61D00e.js";import"./CUsQ5_4I.js";import"./C666d358.js";import"./DWfGYNrX.js";import"./NUoIgR6R.js";import"./DrwGJLjZ.js";import"./DHu45RgR.js";import"./DCEUJu9Z.js";import"./BDVHwxPm.js";import"./BHKnQFBo.js";import"./C9yiaWcE.js";import"./CclBFLue.js";const V={name:"HeroSection",components:{SweepstakesCard:f},props:{content:{type:Object,required:!0},breadcrumbs:{type:Array,default:()=>[]}},data(){return{backgroundImage:"hero-bg.svg"}},created(){this.backgroundImage=this.content?.backgroundImage||"hero-bg.svg"},setup(){j({link:[{rel:"preload",as:"image",href:"/images/hero/default-hero-bg.svg"},{rel:"preload",as:"image",href:"/images/hero/hero-bg.svg"}]})},computed:{contentAlignment(){const n=this.content?.alignment||"center";return["left","center"].includes(n)?n:"center"},isLeftAligned(){return this.contentAlignment==="left"},isDescriptionFullWidth(){return this.content?.descriptionFullWidth===!0},isDefaultDescriptionColor(){return typeof this.content?.descriptionColor>"u"||typeof this.content?.descriptionColor=="boolean"&&this.content?.descriptionColor===!0},countryHubLocation(){return N().countryHubLocation},showSweepstakesCard(){const n=this.content?.sweepstakesCard;if(!n?.casinoSlug||S())return!1;const m=H();if(!m)return!0;const t=A(m);return D(t)&&L(t).has(n.casinoSlug)},descriptionContent(){const n=this.content?.description&&this.content?.description.length?this.content.description:null;let m=null;if(n){const t=this.content?.type==="home"?"font-bold ":"",u=this.isDefaultDescriptionColor?"text-foreground-3":"text-foreground-2",p={p:`${t}${u}`},e=typeof n=="string"?[{componentName:"p",html:n}]:n,d=this.isLeftAligned?"flex flex-col gap-md items-start":"flex flex-col gap-md items-center";m={container:!1,elementsClasses:p,contentWrapClasses:d,components:e}}return m},isHeroWithAbsoluteBg(){return this.content?.emptyHero||this.content?.overlapHero}}},O={key:2,class:"bg-hero-gradient absolute inset-0 z-10"},P={class:"w-7 h-xl md:w-3xl lg:w-5xl md:h-13 lg:h-19.5 md:mx-auto flex00auto"},R={key:0,class:"text-2xs lg:text-xs whitespace-nowrap"};function q(n,m,t,u,p,e){const d=y,x=w,g=C,b=f,_=v;return o(),a("div",{class:s(["relative bg-no-repeat pt-14 md:pt-3xl",[t.content.emptyHero?"lg:pt-16":"lg:pt-35"]])},[e.isHeroWithAbsoluteBg?r("",!0):(o(),a("div",{key:0,class:"absolute inset-0 w-full h-full z-10 bg-cover bg-no-repeat bg-center",style:h({backgroundImage:`url('/images/hero/${p.backgroundImage}')`}),"aria-hidden":"true"},null,4)),e.isHeroWithAbsoluteBg?(o(),a("div",{key:1,class:s(["absolute w-full top-0 left-0 pointer-events-none z-0",[t.content.type==="home"?"bg-center":"",t.content.emptyHero&&"h-[288px] md:h-[325px] lg:h-[520px]",t.content.overlapHero&&"h-50 md:h-[268px] lg:h-[364px]"]]),style:{overflow:"hidden"}},[c("div",{class:"absolute inset-0 w-full h-full bg-cover bg-no-repeat bg-center",style:h({backgroundImage:`url('/images/hero/${p.backgroundImage}')`}),"aria-hidden":"true"},null,4)],2)):r("",!0),t.content.type==="home"||t.content.type==="blacklist"?(o(),a("div",O)):r("",!0),t.breadcrumbs!==null?(o(),l(d,{key:3,"static-breadcrumbs":t.breadcrumbs,class:s(t.content.emptyHero&&"!absolute")},null,8,["static-breadcrumbs","class"])):r("",!0),c("div",{class:s(["container container_mob-px z-40 relative",[{"!p-0":e.isHeroWithAbsoluteBg,"pb-xl md:pb-2xl lg:pb-4xl":t.content.type!=="home"&&t.content.type!=="blacklist","text-center":!t.content.sweepstakesCard&&!e.isLeftAligned,"text-left":!t.content.sweepstakesCard&&e.isLeftAligned}]])},[c("div",{class:s(["w-full",[t.content.sweepstakesCard?"flex flex-col md:flex-row justify-between gap-lg items-center":e.isLeftAligned?"max-w-190":"max-w-190 mx-auto"]])},[c("div",{class:s(t.content.sweepstakesCard?"flex-1 max-w-[700px]":"")},[t.content&&t.content.title?(o(),l(x,{key:0,content:t.content.title,"root-tag":"h1"},null,8,["content"])):r("",!0),e.descriptionContent&&!e.isDescriptionFullWidth?(o(),l(g,{key:1,content:e.descriptionContent},null,8,["content"])):r("",!0)],2),e.showSweepstakesCard?(o(),l(b,{key:0,"casino-slug":t.content.sweepstakesCard.casinoSlug,description:t.content.sweepstakesCard.description,animated:t.content.sweepstakesCard.animated!==!1,"custom-timer":t.content.sweepstakesCard.customTimer},null,8,["casino-slug","description","animated","custom-timer"])):r("",!0)],2),e.descriptionContent&&e.isDescriptionFullWidth?(o(),l(g,{key:0,content:e.descriptionContent},null,8,["content"])):r("",!0),t.content.navigation&&t.content.navigation.length?(o(),a("div",{key:1,class:s(["flex gap-xs md:gap-md max-w-190 text-foreground-1 font-bold overflow-x-auto no-scrollbar mt-sm lg:mt-md",e.isLeftAligned?"-mr-md":"-mr-md md:mx-auto"])},[(o(!0),a(B,null,I(t.content.navigation,(i,k)=>(o(),l(F(i.link?"nuxt-link":"div"),{key:k,to:i.link,class:s([{"hover:opacity-80 curs
1or-pointer":i.link},"no-underline hover:no-underline transition-opacity background-elevation-3 color-stroke-elevation rounded-md py-xs px-md md:p-md lg:py-md lg:px-sm flex md:flex-col md:justify-center gap-fluid-xs text-sm w-full md:text-center items-center last:mr-md md:last:mr-0"])},{default:z(()=>[c("div",P,[i.image?(o(),l(_,{key:0,width:"81",height:"76",src:`/images/hero/navigation/${i.image}`,alt:i.title,class:"w-7 h-xl md:w-3xl lg:w-5xl md:h-13 lg:h-19.5",lazy:!1},null,8,["src","alt"])):r("",!0)]),i.title?(o(),a("span",R,T(i.title),1)):r("",!0)]),_:2},1032,["to","class"]))),128))],2)):r("",!0)],2)],2)}const ye=Object.assign(W(V,[["render",q]]),{__name:"HeroSection"});export{ye 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.