1import{_ as g}from"./DSYEmw4O.js";import{d as b,u as x,y as r,Z as T,w as C,z as E,o as O,K as i,S as P,j as t,k as c,t as o,m as l,F as B,L as R,q as _,E as y,v as u,D as S,_ as A}from"./CjSs_pdA.js";import{u as I}from"./D2O22flf.js";import"./LAp_2Svk.js";import"./BVOHCPzX.js";import"./DL83gLVV.js";import"./B-YVwB4U.js";const N={class:"all-access-page info-page"},W={class:"container main"},F={class:"section"},U={key:0,class:"flex-row center-horizontally"},V={class:"flex-col-7"},Y=b({__name:"reactivate",async setup($){let a,p;const{$api:v}=x(),m=r(!1),n=r(T().query.platform==="ios"),d=r(),{data:h}=([a,p]=C(()=>E("/api/v3/users/me/winback/")),a=await a,p(),a);O(async()=>{try{await v("/api/v3/users/me/winback/view/",{method:"POST",body:{platform:i.WEBSITE}})}catch(s){P(s)}});const k=()=>{const s=d.value.getReturnPath();setTimeout(async()=>{m.value=!0,S("Redeemed Winback Offer",{device_platform:n.value?i.APP_STORE:i.WEBSITE}),n.value||(window.location.href=s)})};return I({title:"Reactivate - Trails Offroad",link:[{rel:"canonical",href:"https://www.trailsoffroad.com/all-access/reactivate"}]}),(s,e)=>{const w=g,f=A;return t(),c("div",N,[o("div",W,[o("div",F,[l(m)?(t(),_(f,{key:1,type:"success"},{default:y(()=>[...e[3]||(e[3]=[u(" Payment success! You may now close this window. ",-1)])]),_:1})):(t(),c(B,{key:0},[l(h)?.winback_eligible?(t(),c("div",U,[o("div",V,[e[1]||(e[1]=o("h1",null,"Reactivate Trails Offroad for Only $19.99",-1)),R(w,{ref_key:"userCheckout",ref:d,"is-reactivate":!0,"disable-navigation":!0,"hide-google-pay":l(n),onOncomplete:e[0]||(e[0]=j=>k())},null,8,["hide-google-pay"])])])):(t(),_(f,{key:1,type:"warning"},{default:y(()=>[...e[2]||(e[2]=[u(" We're sorry, but you are not eligible for this offer. Please ",-1),o("a",{href:"/contact-us"},"Contact Us",-1),u(" if you think this is a bug. ",-1)])]),_:1}))],64))])])])}}});export{Y as default}; 2//# sourceMappingURL=BhYswuFY.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.