PageSourceSearch

https://www.mactancebuairport.com/_nuxt/Bj1SsIEE.js

js mactancebuairport.com collected 2026-10-02 18:10:38 UTC 6,560 bytes, 1 lines download raw bytes

1import K from"./CJi4lRGv.js";import P from"./Dfx_EAXJ.js";import V from"./iFXRiwc5.js";import M from"./BEJ38cgL.js";import{i as T,r as D,f as R,e as H,d as E,w as I,o as p,c as w,h as n,y as W,E as J,u as r,G as Q,K as X,k as v,a as C,j as A,F as Y,l as Z,m as ee,_ as te,g as oe,q as N,s as ae,t as z}from"./BEqYq2zc.js";import se from"./z85ZjV8R.js";import{u as re}from"./BDmehfRx.js";import{_ as ne}from"./BpAap3Ul.js";import{_ as le}from"./tZLX1EWK.js";import{u as ce}from"./snhOgwty.js";import{u as pe}from"./CAg87e2m.js";import{u as ie}from"./CGbicpdP.js";import"./BDIFhIVY.js";import"./DlAUqK2U.js";import"./GqfJukIP.js";const de={class:"main-container pb-[86px] md:pb-[119px]"},ue={class:"section relative z-10 mt-[48px]"},me={class:"relative mt-[25px] px-[15px] rounded-full border-[#ECEFF1] border-[1px] border-solid h-[40px] flex items-center gap-x-[10px] w-full max-w-[400px] md:max-w-[554px] md:h-[49px] md:gap-x-[15px] md:mt-[64px] md:mx-auto"},_e=n("img",{src:ne,alt:"search",loading:"eager",class:"size-[14.42px] md:size-[16px]"},null,-1),xe={class:"mt-[32px] flex flex-col gap-y-[24px] sm:flex-row sm:justify-between md:mt-[33px]"},ge={class:"relative z-[21] flex flex-col gap-y-[8px] sm:flex-row sm:items-center sm:gap-x-[9px]"},ye=n("span",{class:"text-[16px] tracking-[0px] opacity-80"},"Filter by:",-1),he={class:"flex flex-col gap-y-[8px] sm:flex-row sm:items-center sm:gap-x-[9px]"},fe=n("span",{class:"text-[16px] tracking-[0px] opacity-80"},"Sort by:",-1),we={key:1},ve={class:"mt-[32px] grid grid-cols-1 gap-y-[24px] sm:mt-[24px] sm:grid-cols-2 sm:gap-x-[16px] sm:gap-y-[32px] lg:grid-cols-3"},De={key:2,class:"pt-[50px] h-[300px] text-center flex flex-col gap-y-[10px] max-w-[506px] mx-auto justify-center"},ke=n("span",{class:"text-[18px] tracking-[0px] font-semibold md:text-[20px]"}," Uh-oh! No Results Found ",-1),qe=n("p",{class:"text-[16px] opacity-80 tracking-[0px] leading-[24px]"}," We couldn’t find what you're looking for. Try adjusting your search. ",-1),Ce=[ke,qe],be={__name:"GreatDealsList",props:{show_loader:{type:Boolean,default:!1}},setup(y){const{applySlugify:l}=re(),i=T("great_deals_list"),m=D("All Category"),k=["All Category","Ongoing Deals","Upcoming Deals"],_=D("Latest to Oldest"),O=["Latest to Oldest","Oldest to Latest"],c=T("greatDealsData"),h=R(()=>c.value||{}),t=D(""),q=D(null),u=H(),f=E(),B=e=>{m.value=e;const s=f.query,d=e==="All Category"?void 0:e;u.push({query:{...s,category:d}})},F=e=>{_.value=e;const s=e==="Latest to Oldest"?void 0:"asc",d=f.query;u.push({query:{...d,sort:s}})},G=()=>{var s;const e=t.value?t.value:null;(s=q.value)==null||s.blur(),u.push({query:e?{keyword:e}:{}})},U=()=>{t.value="",u.push({query:{}})};return I(()=>f.query,()=>{const{category:e,sort:s}=f.query;m.value=e||"All Category",_.value=s==="asc"?"Oldest to Latest":"Latest to Oldest"},{immediate:!0}),(e,s)=>{const d=P,b=V,L=M,S=te,$=se;return p(),w("section",de,[n("div",ue,[n("div",me,[_e,W(n("input",{ref_key:"searchInput",ref:q,type:"text",name:"search-flights-main",id:"search-flights-main",autocomplete:"off",placeholder:"Search for Deals",class:"w-full outline-none text-[12px] tracking-[0px] leading-[7px] placeholder:text-[#A2A2A2] md:text-[16px]","onUpdate:modelValue":s[0]||(s[0]=x=>Q(t)?t.value=x:null),onKeydown:X(G,["enter"])},null,544),[[J,r(t)]]),r(t)?(p(),w("img",{key:0,onClick:U,src:le,alt:"x-icon",loading:"lazy",class:"cursor-pointer size-[9.18px] absolute top-1/2 -translate-y-1/2 right-[15px] md:right-[20px]"})):v("",!0)]),n("div",xe,[n("div",ge,[ye,C(d,{current_value:r(m),dropdown_list:k,"onUpdate:current_active":B,class:"max-w-[333px] sm:w-[190px]"},null,8,["current_value"])]),n("div",he,[fe,C(d,{current_value:r(_),dropdown_list:O,"onUpdate:current_active":F,class:"max-w-[333px] sm:w-[190px]"},null,8,["current_value"])])])]),y.show_loader?(p(),A(b,{key:0})):v("",!0),!y.show_loader&&r(i).length>0?(p(),w("div",we,[n("div",ve,[(p(!0),w(Y,null,Z(r(i),(x,o)=>(p(),A(S,{to:`/shop-and-dine/great-deals/${r(l)(x.slug)}`,key:o,class:"cards"},{default:ee(()=>[C(L,{payload:x},null,8,["payload"])]),_:2},1032,["to"]))),128))]),r(h).last_page>1?(p(),A($,{key:0,payload:r(h)},null,8,["payload"])):v("",!0)])):v("",!0),r(i).length===0&&!y.show_loader?(p(),w("div",De,Ce)):v("",!0)])}}},Le={__name:"PageContent",props:{show_loader:{type:Boolean,default:!1}},setup(y){const{reveal:l}=ce();return oe(()=>{l(".cards",{interval:100}),l(".section")}),(i,m)=>{const k=K,_=be;return p(),w("main",null,[C(k),C(_,{show_loader:y.show_loader},null,8,["show_loader"])])}}},Ke={__name:"index",async setup(y){var d,b,L,S,$,x;let l,i;const m=pe(),{is_loading:k,showLoader:_,hideLoader:O}=ie(),c=E();_();const h=D([]),{data:t}=([l,i]=N(()=>
1m.post("web/page/page-data/shop-and-dine",{page_type:"landing",site:"airport-site"})),l=await l,i(),l),q=async()=>{const{data:o}=await m.get(`web/dealsData${c.query.sort?"?sort="+c.query.sort:"?sort=desc"}${c.query.category?"&category="+encodeURIComponent(c.query.category):""}${c.query.keyword?"&keyword="+c.query.keyword:""}${c.query.page?"&page="+c.query.page:""}`);h.value=o.value};[l,i]=N(()=>q()),await l,i(),O();const u=D(!1),f=o=>o?new Date(o).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"}):"October 18, 2023",B=(o=[],a)=>{const g=o.find(j=>(j==null?void 0:j.category)===a)??{};return{path:g.path??"images/temp/placeholder/card_placeholder.jpg",alt:g.alt??"placeholder"}},F=o=>o.map(a=>({status:a.status_id||"",title:(a==null?void 0:a.title)||"",slug:a.title||"",published_date:f(a.date)||"",image:B(a.images,"main_image")})),G={title:"Our Great Deals",button:{title:"Back to Shop & Dine",link:"/shop-and-dine"}},U=R(()=>{var a,g;const o=((g=(a=h.value)==null?void 0:a.records)==null?void 0:g.data)||[];return o?F(o):null}),e=R(()=>h.value.records),s=()=>{window.scrollTo({top:0,behavior:"smooth"})};return z("banner",G),z("great_deals_list",U),z("greatDealsData",e),I(()=>c.query,async()=>{u.value=!0,s(),await q(),u.value=!1}),ae({title:"Great Deals",meta:[{property:"og:title",content:"Great Deals"},{name:"description",content:(L=(b=(d=t==null?void 0:t.value)==null?void 0:d.record)==null?void 0:b.metadata)==null?void 0:L.meta_description},{property:"og:description",content:(x=($=(S=t==null?void 0:t.value)==null?void 0:S.record)==null?void 0:$.metadata)==null?void 0:x.meta_description},{property:"og:image",content:"/images/permanent/og-img.png"},{name:"twitter:card",content:"summary_large_image"}]}),(o,a)=>{const g=Le;return r(k)?v("",!0):(p(),A(g,{key:0,show_loader:r(u)},null,8,["show_loader"]))}}};export{Ke 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.