PageSourceSearch

https://www.hetgoedemoment.org/assets/StravaAuth-U0OuEaMG.js

js hetgoedemoment.org collected 2026-10-04 01:26:09 UTC 3,398 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/AppSpinner-DDG9gVUD.js","assets/index-MSa8avpS.js","assets/index-DY-sP-Wx.css","assets/AppSpinner-CO7qFeDR.css"])))=>i.map(i=>d[i]);
2import{C as J,_ as O,aa as W,U as Y,W as Z,u as K,F as Q,j as X,bp as ee,r as te,b as t,o as a,g as n,H as ae,h as v,e as se,a as oe,l as c,Y as m,Z as f,d as z,n as E,c as u,f as N,t as I,m as k,I as ne,J as re,p as ie,q as r}from"./index-MSa8avpS.js";import{m as T,a as le}from"./map-state-DicELeIM.js";const U=J("StravaStore",{state:()=>({loader:!1,error:{}}),actions:{fetchExchangeCode({query:g}){return this.$fetchItem({endpoint:"/api/v1/strava/exchange_code",query:g})},postDeauthorizeUser(){return this.$postItem({endpoint:"/api/v1/strava/deauthorize_user"})}}}),ce={key:0},ue={key:0,class:"athlete d-flex align-items-center"},de=["innerHTML"],_e=["disabled"],he=["disabled"],L="read,activity:read_all",pe="https://www.strava.com/oauth/",ve={__name:"StravaAuth",emits:["beforeLeave"],setup(g,{emit:P}){const b=ne(()=>re(()=>import("./AppSpinner-DDG9gVUD.js"),__vite__mapDeps([0,1,2,3]))),R=P,V=W(),{replace:q}=Y(),{query:d}=Z(),{t:_}=K(),{fetchExchangeCode:B,postDeauthorizeUser:D}=U(),{loader:i}=Q(U()),{postSideNotification:y}=X(),{allowedSportingActivitiesProvider:F}=ee(),{client:H}=T("client"),{user:M,isAuthenticated:j}=T("auth"),{fetchAuthUser:S}=le("auth"),s=ie(!1),A=k(()=>r.get(H.value,"integrations.strava.client_id")),o=k(()=>r.get(M.value,"integrations.strava.athlete",!1)),C=k(()=>o.value?r.get(o.value,"firstname","")+" "+r.get(o.value,"lastname","").charAt(0)+".":""),h=e=>!!V[e],w=()=>{s.value=!0,R("beforeLeave"),setTimeout(()=>window.location=`${pe}authorize?client_id=${A.value}&response_type=code&redirect_uri=${window.location.href}&scope=${L}`,100)},G=e=>{B({query:{code:e}}).then(()=>S()).catch(l=>x(l))},$=()=>{D().then(()=>S()).catch(e=>x(e))},x=e=>r.get(e,"data.errors",[]).forEach(l=>y({text:`errors.${l}`,type:"error",delay:0}));return d.code&&(L===d.scope?G(d.code):y({text:"errors.strava_invalid_scope",type:"error",delay:0}),q({query:{}})),(e,l)=>{const p=te("fa-icon");return t(j)&&t(F)("strava")&&A.value?(a(),n("div",ce,[o.value?(a(),n(ae,{key:0},[v(e.$slots,"athlete",m(f({athlete:o.value,athleteName:C.value})),()=>[h("athlete")?c("",!0):(a(),n("p",ue,[se(p,{class:"margin__r--6",icon:["fab","strava"]}),oe("span",{innerHTML:t(_)("literal.linked_with_strava_as_x",{x:`<strong class='bold'>${C.value}</strong>`})},null,8,de)]))],!0),v(e.$slots,"unlink",m(f({loader:t(i),handleClickUnlink:$})),()=>[h("unlink")?c("",!0):(a(),n("button",{key:0,class:E(["unlink align--left margin__t--18",{"unlink--disabled":t(i)}]),onClick:z($,["prevent"]),disabled:t(i)},[t(i)?(a(),u(t(b),{key:0,class:"margin__r--6",size:"2"})):(a(),u(p,{key:1,class:"margin__r--6",icon:["fal","unlink"]})),N(" "+I(t(_)("literal.unlink")),1)],10,_e))],!0)],64)):v(e.$slots,"auth",m(f
2({loader:s.value,handleClickAuth:w})),()=>[h("auth")?c("",!0):(a(),n("button",{key:0,class:E(["btn align--left btn__container btn__size--classic btn__color--secondary",{"btn--disabled":s.value}]),disabled:s.value,onClick:z(w,["prevent"])},[s.value?(a(),u(t(b),{key:1,class:"margin__r--6",size:"2"})):(a(),u(p,{key:0,class:"margin__r--6",icon:["fab","strava"]})),N(" "+I(t(_)("literal.link_strava_account")),1)],10,he))],!0,1)])):c("",!0)}}},ke=O(ve,[["__scopeId","data-v-e67a08d1"]]);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.