1import{a as N}from"./3yVUN-v7.js";import{C as u,K as k,L as M,M as V,P as d,U as j,c as f,d as L,f as m,g as R,l as _,lt as s,nt as w,r as I,u as O,w as P,wt as T}from"./C89sYm7w.js";import{t as Z}from"./C93sbNpY.js";import{r as z}from"./B1NkGjfw.js";import{t as A}from"./K9rsuiWd.js";import{n as E}from"./B7ZUQniG.js";var F={style:{overflow:"hidden"}},K=["srcset","media","type","width","height"],U={__name:"MainBanner",props:{preloaded:{type:Object,default:()=>({})},alt:{type:String,default:"Offer"},to:{type:String,default:""},href:{type:String,default:""},soft:{type:String,default:""},nick:{type:String,default:""},brandnick:{type:String,default:""},geo:{type:Array,default:()=>[]}},setup(o){const C=z("card.borderRadius"),p=(i,n)=>{const t={...i};return t.img&&(t.img={...t.img},t.img.src&&(t.img.src=t.img.src.replace(/https?:\/\/[^/]+/,n))),t.sources&&(t.sources=t.sources.map(r=>r.srcset?{...r,srcset:r.srcset.replace(/https?:\/\/[^/]+/g,n)}:r)),t},e=o,g=N().public.s3path,l=u("navigatorCountry"),c=u("friendlyCountryBanner"),h=u("friendlyCountries"),a=w(p(e.preloaded||{},g)),y=w(e.nick||e.brandnick),B=f(()=>a.value?.img?.style||"width:100%;height:auto;"),S=f(()=>{if(!a.value?.img)return{};const{style:i,...n}=a.value.img;return n}),v=()=>{let i=e.preloaded||{},n=e.nick||e.brandnick;h.value?.includes(l.value)&&e.geo.includes(l.value)&&!e.geo.includes("ZZ")&&c.value?.preloaded&&(i=c.value.preloaded,n=c.value.nick),a.value=i,a.value=p(a.value,g),y.value=n};V(v),j([()=>e,c,l,h],v,{deep:!0});const b=f(()=>a.value&&(!!e.nick||!!e.brandnick||!!e.soft||!!e.to||!!e.href));return(i,n)=>{const t=E;return d(),m("div",F,[R(Z,{name:"slide-left",mode:"out-in"},{default:k(()=>[s(b)?(d(),O(t,{key:s(a)?.img?.src,to:o.to,href:o.href,nick:s(y),soft:o.soft},{default:k(()=>[_("picture",{class:T(["flex justify-center items-center overflow-hidden",s(C)])},[(d(!0),m(I,null,M(s(a).sources,(r,x)=>(d(),m("source",{key:x,srcset:r.srcset,media:r.media,type:r.type,width:r.width,height:r.height},null,8,K))),128)),_("img",P(s(S),{style:s(B),decoding:"async",fetchpriority:"high"}),null,16)],2)]),_:1},8,["to","href","nick","soft"])):L("",!0)]),_:1})])}}},Q=A(U,[["__scopeId","data-v-c67772ec"]]);export{Q 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.