1const __vite__fileDeps=["./All.ExGwJAPY.js","./nuxt-link.MxwpMcB1.js","./entry.CTpwKgbi.js","./entry.Cp9_R03R.css","./Offer.DbKLcLeB.js","./nuxt-img.DmFEFh4T.js","./useImageAlias.CMo4t5lQ.js","./mediaSizes.BGbmvisW.js","./Offer.QAxMNUtK.css","./All.DXIumb8G.css","./Best.DKstusrg.js","./Icon.CvM5FhyE.js","./index.CvPl5tTm.js","./Icon.8lQfE3Ql.css","./Button.CW2g9nYJ.js","./useDigitalData.DiCwC3NI.js","./index.BiOHW2Gi.js","./Button.BbZbxCLq.css","./Scroll.40u3ER-J.js","./formatNumber.DO6heeY6.js","./Scroll.Dkqe13JK.css","./Best.CREO9nUa.css","./Country.CL-16u7q.js","./Country.C61SMdW4.css","./Campaigns.D5nSP75O.js","./EmblaCarousel.DIsy8_yV.js","./EmblaCarousel.CkrapC-5.css","./client-only.CK5yRuxV.js","./slugify.D0fx-7uZ.js","./useBreakpoint.WqhKOicx.js","./campaignPrices.LGxnI2Nh.js","./Campaigns.DhgEkj6e.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); 2import{_ as Ve,j as ze,k as d,l as Fe,i as Ue,E as re,x as i,G as Ne,u as Re,o as m,c as U,b as ae,w as K,m as Be,f as t,g as He,B as x,q as j,s as se,L as E,C as Me,d as Se,t as ie,v as q,F as le,a as Ke,r as je,U as N,V as R}from"./entry.CTpwKgbi.js";import qe from"./AirSearch.MgtmFXGi.js";import Xe from"./Icon.CvM5FhyE.js";import{_ as Ge}from"./nuxt-link.MxwpMcB1.js";import{_ as Je}from"./Breadcrumb.CaDcHGXy.js";import{_ as We}from"./Container.DO1DIq0I.js";import{u as Qe}from"./useMarket.4pyHy0Oi.js";import{_ as Ye}from"./formatNumber.DO6heeY6.js";import{u as Ze}from"./fetch.woMH8MVe.js";import{u as et}from"./useDigitalData.DiCwC3NI.js";import"./client-only.CK5yRuxV.js";import"./useBreakpoint.WqhKOicx.js";import"./index.BiOHW2Gi.js";import"./index.CvPl5tTm.js";const tt=(r={})=>{var y,I;return{version:"2.11.0",digitalTouchpoint:{category:{primaryCategory:"Alpaga",subCategory:"Landing"},touchpointInfo:{language:((y=r.language)==null?void 0:y.toLowerCase())||"NA",market:((I=r.market)==null?void 0:I.toLowerCase())||"NA",airlineCode:r.airlineCode,officeID:r.officeId}},page:{pageInfo:{pageID:"ALPOFFHOME",pageName:"Alpaga Offer Home Page"},category:{primaryCategory:"Landing"}}}},ot=N(()=>R(()=>import("./All.ExGwJAPY.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]),import.meta.url).then(r=>r.default||r)),nt=N(()=>R(()=>import("./Best.DKstusrg.js"),__vite__mapDeps([10,2,3,11,12,13,14,15,16,1,17,18,19,20,4,5,6,7,8,21]),import.meta.url).then(r=>r.default||r)),rt=N(()=>R(()=>import("./Country.CL-16u7q.js"),__vite__mapDeps([22,1,2,3,4,5,6,7,8,23]),import.meta.url).then(r=>r.default||r)),at=N(()=>R(()=>import("./Campaigns.D5nSP75O.js"),__vite__mapDeps([24,5,2,3,25,11,12,13,14,15,16,1,17,26,27,6,28,29,7,30,31]),import.meta.url).then(r=>r.default||r)),st={key:2},it={class:"countries"},lt={__name:"index",async setup(r){var oe;let y,I;const{name:A,portals:B,layers:_}=ze(),u=He(),L=d(()=>u.public.alpagaTrailingSlash==="true"?"/":""),ce=d(()=>u.public.alpagaDraft==="true"),{t:o,locale:h,locales:ue,localeProperties:fe}=Fe(),k=d(()=>{var e;return((e=fe.value)==null?void 0:e.dir)==="rtl"}),{getFlattenMarkets:pe}=Qe(),de=pe(),b=Ue(),a=d(()=>({title:o("offer.title"),description:o("offer.description",{airline:A}),"offers-from":o("offer.offers-from"),"offers-to":o("offer.offers-to"),"offers-for":o("offer.offers-for"),"flights-for":o("offer.flights-for"),"flights-to":o("offer.flights-to"),home:o("offer.home"),back:o("offer.back"),next:o("offer.next"),from:o("offer.from"),to:o("offer.to"),top:o("offer.top"),best:o("offer.best"),price:(e,n)=>o(`currencies.${n}`,{value:Ye(e)}),"from-price":o("offer.from-price"),"no-result":o("offer.no-result"),"trip-type":e=>o("offer.trip-type",{value:e},e),destinations:e=>o("offer.destinations",e,{n:e}),"sales-til":o("offer.sales-til"),"travel-dates":o("offer.travel-dates"),"lets-go":o("offer.lets-go"),"see-conditions":o("offer.see-conditions")})),[X,G]=h.value.split("-"),me=ot,_e=nt,ge=rt,ve=at,J=re("origin"),ye=d(()=>(B==null?void 0:B.includes("air-search"))&&qe),he={instant:!0,focus:!0},w=i(null),T=i(null),W=i([]),Q=i([]),be=i(null),$e=d(()=>u.public.mainUrl),Y=d(()=>[{type:"external",path:$e.value,label:a.value.home},{path:b("offers"),label:a.value.title}]),Ce=i(null),xe=i(null);function Ae(e,n=!0){w.value=(e==null?void 0:e.origin)||e,n&&w.value&&(J.value=w.value)}function ke(e){T.value=(e==null?void 0:e.destination)||e}function we(){const e=T.value;T.value=w.value,w.value=e}function Pe(e){W.value=e}function Ie(e){Q.value=e}function Le(e){be.value=e}const H=re("trip-type"),M=d(()=>[{label:a.value["trip-type"](1),value:"one-way"},{label:a.value["trip-type"](2),value:"roundtrip"}]),Z=i((H.value&&M.value.find(e=>e.value===H.value.value))??M.value[1]);function De(e){Z.value=e,H.value=e}const S=i([]),D=i(null),O=i(null),V=i(null),z=i(null),ee=i([]),$=d(()=>D.value?S.value.filter(e=>e.lowest).map(e=>{const n=D.value[e.origin],s=D.value[e.destination],{fareFamilies:l,lowest:c}=e,f=z.value[O.value[s.city].id];return{origin:{...n,city:O.value[n.city],country:V.value[n.country]},destination:{...s,city:O.value[s.city],country:V.value[s.country]},media:f==null?void 0:f.media,path:f==null?void 0:f.path,fareFamilies:l,from:c}}).filter(e=>e.path).sort((e,n)=>e.from.price.total-n.from.price.total):[]),te=d(()=>{var e,n,s,l,c,f,g,C,ne;if($.value)return(s=(n=(e=_==null?void 0:_.offer)==null?void 0:e.index)==null?void 0:n.best)!=null&&s.filter?_.offer.index.best.filter($.value).reduce((F,p)=>(F.find(v=>v.destination.code===p.destination.code)||F.push(p),F),[]).slice(0,((f=(c=(l=_==null?void 0:_.offer)==null?void 0:l.index)==null?void 0:c.best)==null?void 0:f.max)||3):Object.values($.value.reduce((p,v)=>(p[v.destination.code]||(p[v.destination.code]={code:v.destination.code,n:0}),p[v.destination.code].n+=1,p),{})).sort((p,v)=>v.n-p.n).map(p=>$.value.find(v=>v.destination.code===p.code)).slice(0,((ne=(C=(g=_==null?void 0:_.offer)==null?void 0:g.index)==null?void 0:C.best)==null?void 0:ne.max)||3)}),Oe=d(()=>$.value.filter(e=>!te.value.find(n=>n.destination.code===e.destination.code)).reduce((e,n)=>{const s=e.findIndex(l=>l.code===n.destination.country.code);return s>-1?e[s].offers.push(n):e.push({...n.destination.country,offers:[n]}),e},[]).filter(e=>z.value[e.id])),{data:P,error:Ee,refresh:ct}=([y,I]=Ne(()=>Ze(`${u.public.alpagaApiUrl}/pages/slugs/`,{headers:{authorization:`users API-Key ${u.public.alpagaApiKey}`},query:{organization:u.public.alpagaOrganizationId,locale:X,market:G,types:"offers",draft:ce}},"$7p4neLRhPm")),y=await y,I(),y);if(!Ee.value){S.value=P.value.routes||[],D.value=P.value.airports,O.value=P.value.cities,V.value=P.value.countries,z.value=P.value.pages,ee.value=P.value.campaigns||[];const e=(oe=$.value[0])==null?void 0:oe.from,n=e?` ${a.value["from-price"]} ${a.value.price(e.price.total,e.price.currency)}`:"",s=ue.value.filter(c=>de.includes(c.code)).map(c=>
2({id:`i18n-alt-${c.iso}`,rel:"alternate",href:`${u.public.baseUrl}${b("offers",c.code)}${L.value}`,hreflang:c.iso})),l=`${a.value["flights-for"]}${n.toLowerCase()}`;Re({title:l,titleTemplate:`%s - ${A}`,htmlAttrs:{lang:h.value},link:[{id:"i18n-xd",rel:"alternate",href:`${u.public.baseUrl}${b("offers","en")}${L.value}`,hreflang:"x-default"},{id:"i18n-can",rel:"canonical",href:`${u.public.baseUrl}${b("offers",h.value)}${L.value}`},...s],meta:()=>[{name:"title",content:`${l} - ${A}`},{name:"description",content:a.value.description},{property:"og:type",content:"website"},{property:"og:title",content:`${l} - ${A}`},{property:"og:description",content:a.value.description},{property:"og:url",content:`${u.public.baseUrl}${b("offers",h.value)}${L.value}`},{id:"i18n-og-url",property:"og:url",content:`${u.public.baseUrl}${b("offers",h.value)}${L.value}`},{property:"og:locale",content:h.value.replace("-","_")},{property:"og:site_name",content:A},{property:"twitter:title",content:`${l} - ${A}`},{property:"twitter:description",content:a.value.description},{property:"twitter:card",content:"summary"}]})}const{pageView:Te}=et(tt({language:X,market:G,airlineCode:"XK",officeId:"AJAXK08AB",homeLocation:J.value}));return Te({pageId:"ALPOFFHOME"}),(e,n)=>{const s=Xe,l=Ge,c=Je,f=We;return m(),U("div",{class:Be(["offers-home-page",{rtl:t(k)}])},[ae(f,null,{default:K(()=>[(m(),x(E(t(ve)),j(se({locale:t(h),locales:t(a),rtl:t(k),routes:t(S),campaigns:t(ee),countries:t(V),cities:t(O),airports:t(D),pages:t(z)})),null,16)),ae(c,{items:t(Y),rtl:t(k)},{default:K(({item:g,index:C})=>[C>0?(m(),x(s,{key:0,name:"IconRightCaret"})):Me("",!0),C+1!==t(Y).length?(m(),x(l,{key:1,to:g.type==="external"?g.path:t(b)("offers")+(g.path??""),external:!0,prefetch:""},{default:K(()=>[Se(ie(g.label),1)]),_:2},1032,["to"])):(m(),U("span",st,ie(g.label),1))]),_:1},8,["items","rtl"]),(m(),x(E(t(ye)),q({origin:t(w),destination:t(T),type:t(Z),types:t(M),dates:t(W),passengers:t(Q),options:he},{"onChange:origin":Ae,"onChange:destination":ke,"onChange:type":De,"onChange:dates":Pe,"onChange:passengers":Ie,"onChange:price":Le,"onSwap:itinerary":we}),null,16)),t(Ce)||t(xe)?(m(),x(E(t(me)),j(q({key:0},{locales:t(a),rtl:t(k),offers:t($)})),null,16)):(m(),U(le,{key:1},[(m(),x(E(t(_e)),j(se({locales:t(a),rtl:t(k),items:t(te)})),null,16)),Ke("div",it,[(m(!0),U(le,null,je(t(Oe),(g,C)=>(m(),x(E(t(ge)),q({key:C},{locales:t(a),rtl:t(k),...g}),null,16))),128))])],64))]),_:1})],2)}}},At=Ve(lt,[["__scopeId","data-v-8632abf6"]]);export{At 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.