1import{a2 as W,b as Z,B as tt,u as et,w as f,d as A,c as v,e as i,f as d,M as B,i as t,F as m,g as h,h as c,j as p,k as g,l as y,a3 as ot,_ as st,a4 as at,Q as lt,o as a,a5 as it,t as N,a6 as rt,O as _t,X as R,m as C,a7 as nt,R as dt}from"./ClacqbRY.js";import{_ as ct}from"./1oQZJejQ.js";import{_ as ut}from"./DwvWvEiY.js";import{_ as pt}from"./BoJImBp-.js";import{_ as gt}from"./DSmKgZyW.js";import{_ as mt}from"./DcBmaWqh.js";import{_ as bt}from"./CuDyVDQg.js";import{d as kt}from"./DzaFSpr9.js";import{u as ft}from"./Bv5FkNjV.js";import{u as vt}from"./ClNVASDZ.js";import"./C2r6ZntD.js";const ht={id:"blogsingle"},yt={class:"mt-16 border-t-4 border-t-current"},xt={class:"flex gap-13 justify-between"},wt={key:0,class:"text-5xl md:text-7.5xl font-normal mb-8"},$t={key:1,class:"text-2lg text-right whitespace-nowrap uppercase font-bold"},qt={class:"border-t-4 border-t-current"},Bt={class:"mb-32"},Nt={class:"mb-0 font-medium text-3xl"},Rt={key:0,class:"grid grid-cols-1 gap-13"},Ct={key:0,class:"col-span-3 border-t-4 border-t-dkblue"},Mt={class:"grid gap-5 lg:gap-13 grid-cols-1 lg:grid-cols-3 my-16"},_="posts",M=3,It={__name:"[blog]",async setup(St){var L;let o,r;const{$directus:b,$readItems:k}
1=Z(),I=lt("navHeight"),V=tt("darkmode",()=>!1),j=et();let S=ft(j,"blog");const z=`blog_${S}`,{data:e,status:Dt,error:Ft}=([o,r]=f(()=>y(z,()=>{try{return b.request(k(_,{filter:{slug:{_eq:S},status:v()},fields:["*","seo.*","image.*","category.title","category.slug","tags.adventure_tags_id.title","promos.blog_promos_id.id","promos.blog_promos_id.image.*","promos.blog_promos_id.link.*.*.*",{blocks:["id","collection",{item:{block_columns_repeater:["columns","column.column_repeater_id.*"],block_4_column_offset:["*"],block_curated_hero:["*","dropdown_categories.categories_id.*","image.*","foreground.*"],block_title_and_text:["*"],block_popout_cards_3_col:["*","cards.popout_card_1_col_id.*","cards.popout_card_1_col_id.image.*","cards.popout_card_1_col_id.icon.*","cards.popout_card_1_col_id.link.*.*.*.*"],block_4_col_icon_text:["*","column.*","column.icon_description_id.*","column.icon_description_id.icon.*"],block_text_img_carousel:["*","carousel_background.*","slides.slides_id.*","slides.slides_id.image.*"],block_script_banner:["title"],block_season_slides:["title","slides.block_season_slide_id.*","slides.block_season_slide_id.images.directus_files_id.*","slides.block_season_slide_id.image.*"],block_popout_cards_left_right:["popout_card.block_popout_cards_id.*","popout_card.block_popout_cards_id.image.*","popout_card.block_popout_cards_id.icon.*","popout_card.block_popout_cards_id.link.*","popout_card.block_popout_cards_id.link.link.*","popout_card.block_popout_cards_id.link.link.page.slug","popout_card.block_popout_cards_id.link.link.page.category.slug","popout_card.block_popout_cards_id.link.link.blog.slug","popout_card.block_popout_cards_id.link.link.file.*","popout_card.block_popout_cards_id.link.link.adventures.slug","popout_card.block_popout_cards_id.link.link.adventures.cat.slug","popout_card.block_popout_cards_id.link.link.category.slug"],block_adventure_seasons_and_temps:["adv_category.categories_id.*","adv_category.categories_id.icon.*"],block_adv_hero:["*.*","images_videos.directus_files_id.*"],block_adv_2_column_text_and_buttons:["*","faqs.*","buttons.*","buttons.button_id.*","buttons.button_id.link.*","buttons.button_id.link.page.slug","buttons.button_id.link.page.category.slug","buttons.button_id.link.blog.slug","buttons.button_id.link.file.*","buttons.button_id.link.adventures.slug","buttons.button_id.link.adventures.cat.slug","buttons.button_id.link.category.slug"],block_hero:["*.*.*"],block_logocloud:["*.*.*"],block_adventure_cards:["*","adventure_categories.categories_id.*","adventure_categories.categories_id.vertical_image.*","adventure_categories.categories_id.icon.*"],block_collage_a:["*","hero_image.*","hero_video.*","secondary_image.*","button.*.*.*"],block_tour_cards:["*","adventure_cards.adventures_id.*","adventure_cards.adventures_id.icon.*","adventure_cards.adventures_id.horizontal_image.*","adventure_cards.adventures_id.cat.slug","adventure_cards.adventures_id.pricing_includes"],block_media_articles:["title","subtitle"],block_promos:["title","promo_cards.promo_cards_id.*","promo_cards.promo_cards_id.image.*","promo_cards.promo_cards_id.link.*.*","promo_cards.promo_cards_id.link.*.link.*.*","promo_cards.promo_cards_id.link.*.link.page.slug","promo_cards.promo_cards_id.link.*.link.page.category.slug"],block_testimonials:["*","background_image.*","hide_text_navigation","testimonials.testimonials_id.*.*"],block_richtext:["*.*.*.*.*.*.*.*"],block_quote:["*.*.*.*.*.*.*.*"],block_divider:["Style"],block_button_group:["*.*.*.*.*.*.*.*"],block_html:["*.*.*.*.*.*.*.*"],block_short_hero:["*.*"],block_image_text_2_column:["*.*"],block_3_column_linked_feature:["*","image.*","link.*.*.*"],block_related_articles:["*","category.slug","manual.posts_id.*","manual.posts_id.image.*","manual.posts_id.category.slug"],block_photo_video_duo_trio:["*.*.*"],block_fullwidth_callout:["*","image.*","link.*.*.*","link.*.*.category.slug","background_colour"],block_image_text_left_right:["*","image.*","infographic.*"],block_left_right_repeater:["*","sections.*","sections.image.*","sections.infographic.*"],block_3_column_image_offset:["*","image.*","small_image.*"],block_2_column_offset_text_c
1arousel:["*.*"],block_photo_carousel:["*.directus_files_id.*"]}}]}]}))}catch{throw console.error(errors),A({statusCode:404,statusMessage:"Page Not Found",fatal:!0})}},{transform:s=>s[0]})),o=await o,r(),o);if(dt("page",e),!e.value)throw A({statusCode:404,statusMessage:"Page Not Found"});let w=[e.value.id];const D=((L=e.value.category)==null?void 0:L.slug)||null;let F={status:v(),id:{_neq:e.value.id}};D&&(F.category={slug:{_eq:D}});const{data:u}=([o,r]=f(()=>y(`related_${_}`,()=>b.request(k(_,{filter:F,sort:["date_published"],limit:M,fields:["*","image.*","category.slug"]})))),o=await o,r(),o);if(u.value&&u.value.length>0&&(w=w.concat(u.value.map(s=>s.id))),w.length<M+1){const{data:s}=([o,r]=f(()=>y(`more_related_${_}`,()=>b.request(k(_,{filter:{status:v(),id:{_nin:w}},sort:["date_published"],limit:M-u.value.length,fields:["*","image.*","category.slug"]})))),o=await o,r(),o);u.value=u.value?u.value.concat(s.value):s.value}const{data:E}=([o,r]=f(()=>y(`top_posts${_}`,()=>b.request(k(_,{filter:{status:v(),id:{_nin:e.id}},sort:["date_published"],limit:5,fields:["title","slug"]})))),o=await o,r(),o),{data:T}=([o,r]=f(()=>y(`prev_${_}`,()=>b.request(k(_,{sort:["-date_published"],limit:1,filter:{status:v(),date_published:{_lt:e.value.date_published}},fields:["slug"]})),{transform:s=>s[0].slug||null})),o=await o,r(),o),{data:U}=([o,r]=f(()=>y(`next_${_}`,()=>b.request(k(_,{sort:["date_published"],limit:1,filter:{status:v(),date_published:{_gt:e.value.date_published}},fields:["slug"]})),{transform:s=>s[0].slug||null})),o=await o,r(),o);return e.value.type="article",vt(e),(s,l)=>{var Y;const H=ot,O=ct,P=_t,K=ut,$=st,Q=pt,X=gt,q=at,G=mt,J=bt;return a(),i("article",ht,[d(H,{style:B(t(V)?null:`background: url(${t(it)("56233210-351a-4204-b5bb-3e526b0682ad")}) no-repeat top center; background-size: contain;`)},null,8,["style"]),t(e)?(a(),i(m,{key:0},[d($,{tag:"header",style:B(`padding-top:${t(I)}px`)},{default:p(()=>[g("div",yt,[g("div",xt,[t(e).title?(a(),i("h1",wt,N(t(e).title),1)):c("",!0),t(e).date_published?(a(),i("p",$t,N(t(rt)(t(e).date_published,"MMM D, YYYY")),1)):c("",!0)]),t(e).image?(a(),i(m,{key:0},[d(O,{img:t(e).image},null,8,["img"]),d(K,{src:t(e).image,image:t(e).image,class:"mt-8 mb-16"},{default:p(()=>[d(P,{src:t(e).image,class:"w-full",width:1220},null,8,["src"])]),_:1},8,["src","image"])],64)):c("",!0)])]),_:1},8,["style"]),t(e).content?(a(),h($,{key:0,tag:"div"},{default:p(()=>[d(Q,{html:t(e).content,class:"[ blog-content ] max-w-4xl mx-auto [&_picture]:w-full [&_img]:w-full prose"},null,8,["html"])]),_:1})):c("",!0),(Y=t(e))!=null&&Y.blocks?(a(),h(X,{key:1,blocks:t(e).blocks},null,8,["blocks"])):c("",!0),t(e)?(a(),h($,{key:2,class:"lg:grid gap-x-13 grid-cols-4",tag:"aside",style:B(`padding-top:${t(I)}px`)},{default:p(()=>[g("section",qt,[g("div",Bt,[l[1]||(l[1]=g("h2",{class:"text-2lg font-normal uppercase"},"Top Posts",-1)),(a(!0),i(m,null,R(t(E),(n,x)=>(a(),i("section",{key:`toppost${x}`},[g("h3",Nt,N(n.title),1),d(q,{to:`/inspiration/blog/${n.slug}`,class:"font-bold text-2lg text-green uppercase hover:text-dkblue duration-200"},{default:p(()=>[...l[0]||(l[0]=[C("Read More",-1)])]),_:1},8,["to"])]))),128))]),t(e).promos&&t(e).promos.length?(a(),i("div",Rt,[(a(!0),i(m,null,R(("dirRelationship"in s?s.dirRelationship:t(kt))(t(e).promos,"blog_promos_id"),(n,x)=>(a(),i(m,{key:`promo${n.id||x}`},[n.link?(a(),h(q,{key:0,to:("getURL"in s?s.getURL:t(nt))(n.link),class:"hover:opacity-75 duration-200"},{default:p(()=>[n.image?(a(),h(P,{key:0,src:n.image,class:"w-full",width:279,height:279},null,8,["src"])):c("",!0)]),_:2},1032,["to"])):c("",!0)],64))),128))])):c("",!0)]),t(u)?(a(),i("section",Ct,[l[2]||(l[2]=g("h2",{class:"font-medium text-5xl"},"You may also be interested in:",-1)),g("div",Mt,[(a(!0),i(m,null,R(t(u),(n,x)=>(a(),h(G,{key:`post${x}`,post:n},null,8,["post"]))),128))])])):c("",!0)]),_:1},8,["style"])):c("",!0),d($,{tag:"div"},{default:p(()=>[d(J,{prev:t(T),next:t(U),archive:"/inspiration/blog"},{default:p(()=>[...l[3]||(l[3]=[C("All Posts",-1)])]),_:1},8,["prev","next"])]),_:1})],64)):(a(),i(m,{key:1},[l[5]||(l[5]=g("pre",null,"no data",-1)),d(q,{to:"/inspiration/blog"},{default:p(()=>[...l[4]||(l[4]=[C("Blog",-1)])]),_:1})],64))])}}},Ot=W(It,[["__scopeId","data-v-513cd52b"]]);export{Ot 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.