PageSourceSearch

https://www.premierholidays.co.uk/_nuxt/DOLhXbk_.js

js premierholidays.co.uk collected 2026-09-24 23:37:11 UTC 4,442 bytes, 1 lines download raw bytes

1import{_ as C}from"./DPLf-UgY.js";import{_ as k,c as P,d as N,u as F,a as S}from"./lTr7RkzU.js";import{_ as T}from"./CSZFMloa.js";import{U as A,V as y,W as b,a0 as s,X as n,O as w,M as E,I as V,a9 as I,a7 as H,Q as U,aa as q,d as x,m as L}from"./BfJgI-1u.js";import"./Nhks_TqP.js";import"./BJcvxiDA.js";const O={__name:"assets",props:{assets:Array},async setup(h,{expose:e}){e();let i,t;const m=N(),c=h,{data:p}=([i,t]=q(()=>F("/api/ports","$mS65hp2f2b")),i=await i,t(),i),o=x({airport:m.query.airport||"ALL",type:m.query.type||"ALL"}),u=L(()=>c.assets.docs.filter(l=>(l.campaign?.name==o.value.campaign||o.value.campaign=="ALL")&&(l.localPort==o.value.airport||o.value.airport=="ALL")&&(l.assetType==o.value.type||o.value.type=="ALL"))),f=()=>{o.value.airport="ALL",o.value.type="ALL",o.value.campaign="ALL"},_=L(()=>{const d=[];return p.value.data.forEach(l=>{d.push({label:l.name,value:l.code})}),[{label:"All departure points",value:"ALL"},...d].sort((l,r)=>l.label.localeCompare(r.label.toLowerCase()))}),a=x([{label:"All asssets",value:"ALL"},{label:"Long-Haul",value:"LONGHAUL"},{label:"Short-Haul",value:"SHORTHAUL"},{label:"Generic",value:"GENERIC"},{label:"Flyers",value:"FLYERS"},{label:"Landscape",value:"LANDSCAPE"},{label:"Video",value:"VIDEO"}]),v=L(()=>{const d=c.assets.docs,l=[...new Set(d.map(r=>r.campaign?.name))];return[{label:"All campaigns",value:"ALL"},...l.filter(r=>r).map(r=>({label:r,value:r}))]}),g={route:m,props:c,airports:p,filters:o,filteredPosters:u,resetFilters:f,airportList:_,posterTypesList:a,campaignNames:v,ref:x};return Object.defineProperty(g,"__isScriptSetup",{enumerable:!1,value:!0}),g}},R={class:"py-12 bg-white"},B={class:"w-full md:w-3/12 md:pr-4 mb-8 lg:mb-0 lg:h-screen"},W={class:"text-3xl mb-2"},j={class:"w-full flex flex-wrap justify-between md:w-9/12"},D={key:0,class:"bg-white p-4 h-fit rounded-2xl ml-12 w-full text-center text-xl"};function G(h,e,i,t,m,c){const p=C,o=P,u=E("FormKit"),f=T,_=S;return y(),A(_,{name:"wrapper",isTrade:!0},{default:b(()=>[s("div",R,[n(p,{class:""},{default:b(()=>e[4]||(e[4]=[s("h1",{class:"text-4xl"},"Promotional assets",-1),s("p",{class:"text-lg my-2"}," Window posters, flyers and videos available to download and put straight into your shop window or order in A1, A2 or A3. ",-1),s("div",{class:"bg-white rounded-2xl p-4 my-8"},[s("h3",{class:"text-2xl"},"We can personalise your posters for you"),s("p",{class:"text-lg my-2"},[w(" If you are running a promotional day and would like us to put your details on one of our posters, or if you would like us to send you a supply, please email "),s("a",{class:"text-ph-blue cursor-pointer",href:"mailto:[email protected]"}," [email protected] "),w(" with what you would like. ")]),s("p",{class:"text-lg my-2 font-bold bg-red-600 text-white px-4 py-1"}," Please always advise which sizes you require on your request ")],-1)])),_:1,__:[4]}),n(p,{class:"flex flex-wrap w-full justify-between my-8"},{default:b(()=>[s("div",B,[s("h3",W,[n(o,{name:"mi:filter"}),e[5]||(e[5]=w(" Filter your results "))]),n(u,{type:"select",label:"Campaign",name:"posterType",options:t.campaignNames,modelValue:t.filters.campaign,"onUpdate:modelValue":e[0]||(e[0]=a=>t.filters.campaign=a),"inner-classes":"bg-white"},null,8,["options","modelValue"]),n(u,{type:"select",label:"Departure Point",name:"airport",options:t.airportList,modelValue:t.filters.airport,"onUpdate:modelValue":e[1]||(e[1]=a=>t.filters.airport=a),"inner-classes":"bg-white"},null,8,["options","modelValue"]),n(u,{type:"select",label:"Asset Type",name:"posterType",options:t.posterTypesList,modelValue:t.filters.type,"onUpdate:modelValue":e[2]||(e[2]=a=>t.filters.type=a),"inner-classes":"bg-white"},null,8,["options","modelValue"]),s("div",{onClick:e[3]||(e[3]=a=>t.resetFilters()),class:"bg-ph-blue rounded-full w-fit text-sm text-white hover:bg-yellow-500 hover:text-blue-950 hover:scale-105 px-4 py-2 cursor-pointer"},e[6]||(e[6]=[s("p",null,"Reset filters",-1)]))]),s("div",j,[(y(!0),V(U,null,H(t.filteredPosters,(a,v)=>(y(),A(f,{key:v,poster:a},null,8,["poster"]))),128)),t.filteredPosters.length==0?(y(),V("div",D,e[7]||(e[7]=[s("p",null," Sorry, we do not have any promotional assets that match your selected criteria. ",-1),s("p",null,"Please amend the filters to try another search.",-1)]))):I("",!0)])]),_:1})])]),_:1})}const J=k(O,[["render",G],["__scopeId","data-v-dc313285"],["__file","assets.vue"]]);export{J 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.