1import{_ as y,P as w}from"./CXUGrcvR.js";import{u as P,a as k,b,c as h,o as v,w as I,d as D,e as u,f as S,T as x,g as d,h as p,i as B,j as E}from"./CU33Wv7L.js";import{u as O}from"./0vWQR-tb.js";import"./BnMb2lfH.js";import"./Bdpyoj06.js";import"./BHB4tfhp.js";import"./D3c64K-t.js";import"./CHw9h4Ez.js";import"./smWsnnad.js";import"./DXoTgIh8.js";import"./BAwWGvDA.js";import"./DA5P3-py.js";import"./DPz026HA.js";import"./Dtl2kvJ2.js";import"./D1nJZHrb.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="fade7d52-8a06-4768-8112-f8054733620b",e._sentryDebugIdIdentifier="sentry-dbid-fade7d52-8a06-4768-8112-f8054733620b")}catch{}})();{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};t._sentryModuleMetadata=t._sentryModuleMetadata||{},t._sentryModuleMetadata[new t.Error().stack]=Object.assign({},t._sentryModuleMetadata[new t.Error().stack],{"_sentryBundlerPluginAppKey:pwa-fitness":!0})}const R={key:1},M={__name:"index",setup(e){const o=P(),s=k(),c=b(),{program:i,loadProgram:f,isLoading:m,programState:l,isOwnProgram:g}=O(o.params.programId);return h({title:"Program"}),v(async()=>{if(await f(),m.value&&await new Promise(r=>{const n=I(m,a=>{a||(n(),r())})}),!i.value&&["pending","completed","none"].includes(l.value)){const r=s.getRoutes().some(a=>String(a.name||"").split("___")[0]==="my-plan"),n=g.value&&r?{name:"my-plan"}:{name:"category",params:{category:o.params.category}};D().isDrawerOpen=!1,document.body.style.overflow="auto",await s.replace(c(n));return}}),(r,n)=>{const a=y,_=w;return d(),u(x,{name:"fade",mode:"out-in"},{default:S(()=>[p(i)&&!p(m)?(d(),u(a,{key:0,item:p(i)},null,8,["item"])):(d(),B("div",R,[E(_)]))]),_:1})}}};export{M 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.