1import{_ as O}from"./9fHxamns.js";import{d as A,a as E,B as H,a5 as B,b as P,w as n,z as R,aa as S,n as C,aZ as p,a_ as m,aY as F,ag as N,o as U,E as z,T as G,j as l,k as c,t as e,m as i,H as f,a0 as L,r as $,M as J,y as M,x as V,Z as j}from"./B_l_-w4o.js";import{u as D}from"./DNR-fDXs.js";import"./Cn6U-Yec.js";import"./c6hZZwdR.js";import"./DxCYBjJ2.js";import"./DgTSKJ-G.js";import"./BIRZtdBd.js";import"./BhCVuOqv.js";import"./CParVJuh.js";import"./B7gOClm8.js";const W={class:"jeep info-page"},Y={class:"container double"},q={class:"top-padding half-bottom-padding"},Z={class:"align-items-stretch",style:{"z-index":"1"}},K={key:0},Q={key:1},X={class:"container double"},ee={class:"section-2x"},te={class:"flex-row center-horizontally"},oe={class:"flex-col-7"},ae=["innerHTML"],se=A({__name:"badge-of-honor",async setup(re){let t,a;const{isLoggedIn:g}=E(),{fullPath:h,path:v,query:d}=H(),{previewCount:b,getPreviewCount:y}=B(),{public:{homeImage:x}}=P();[t,a]=n(()=>y()),await t,a();const T=M('Your <span class="orange-text">FREE</span> perk from Jeep® Badge of Honor and Trails Offroadâ¢');let u;const{data:o,refresh:k}=([t,a]=n(()=>R(`/api/v2/trails/${d.trail_id}/boh-preview/`,{immediate:!1})),t=await t,a(),t);if(d.trail_id){[t,a]=n(()=>k()),await t,a();const r=o.value?.state;r&&(u=`/${r.country_code}/${o.value.state.slug}/trails/${S(o.value.id,o.value.title)}?boh=true`)}const w=V(()=>o.value?.photo_file_name||x);return g?([t,a]=n(()=>C(u||"/")),await t,a()):(p(m.TO_SIGNUP_RETURN_URL).value=h,p(m.TO_AFFILIATE_ORIGIN,{maxAge:3600*24*90}).value=F.BADGE_OF_HONOR,N().replace({path:v,query:{...d,return_url:u}}).catch(()=>{})),U(()=>{let r;if(o.value){const{title:s,state:_,id:I}=o.value;r={trail_name:s,state_name:_.title,trail_id:I}}z(G.VIEW_BOH_SIGNUP_PAGE,r)}),D({title:"Welcome to Trails Offroad!"}),(r,s)=>{const _=O;return l(),c("div",W,[e("div",{class:"flex center-vertically center-horizontally background-hero bp-center gradient full p-relative",style:L({backgroundImage:`url(${i(w)})`,minHeight:"400px"})},[e("div",Y,[e("div",q,[e("div",Z,[i(o)?(l(),c("h2",K,f(i(o).title)+" is one of "+f(i(b))+" Free Trail Guides ",1)):(l(),c("h2",Q,"Welcome to Trails Offroadâ¢")),s[0]||(s[0]=e("h4",null," Access all of the Jeep® Badge of Honor trails plus over 140 more with a Free Trails Offroad⢠Account. ",-1))])])]),s[1]||(s[1]=e("img",{class:"p-absolute boh-logo ab-test",src:"https://images-prod.trailsoffroad.com/static/sign-up/boh_logo.png",alt:"Jeep Badge of Honor Logo",loading:"lazy"},null,-1))],4),e("div",X,[e("div",ee,[e("div",te,[e("div",oe,[i(o)?(l(),c("h3",{key:0,innerHTML:i(T)},null,8,ae)):$("",!0),s[2]||(s[2]=e("div",{class:"big-text bold space-under"}," Create Your Free Account ",-1)),J(_,{"hide-header":!0,"initial-data":{vehicle_make:"Jeep"}})])])])])])}}}),he=j(se,[["__scopeId","data-v-15e4cb66"]]);export{he as default}; 2//# sourceMappingURL=DmcOJnMC.js.map
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.