PageSourceSearch

https://foodcovery.co/_nuxt/DZUilr5p.js

js foodcovery.co collected 2026-10-06 19:09:04 UTC 2,136 bytes, 1 lines download raw bytes

1import{aC as g,c2 as y,aB as _,c3 as v}from"./DY7Zfkau.js";import{bz as k,aY as a,a$ as N,bj as s,z as t,al as o,bc as r,I as C,b0 as Y,H as c,aZ as i}from"./BeU03QY-.js";const b={key:0,class:"error"},w={key:1,class:"profile-container"},x={class:"header"},B={class:"title"},I={class:"main-content"},A={class:"profile-section"},D={class:"profile-info"},V={class:"footer"},P={__name:"index",async setup(z){let l,u;const d=new Date().getFullYear(),{data:n,error:m,refresh:f}=([l,u]=k(async()=>y("userData",async()=>{const p=_("token").value,{data:e}=await v("http://127.0.0.1:8000/user/me/",{headers:{Authorization:`Bearer ${p}`,"Content-Type":"application/json"}},"$oY7svUMk5c");return e.value},{server:!1})),l=await l,u(),l);return(p,e)=>(i(),a(c,null,[t(m)?(i(),a("div",b,e[0]||(e[0]=[s("p",null,"Error loading profile data. Please try again.",-1)]))):t(n)?(i(),a("div",w,[s("header",x,[s("h1",B,"Welcome, "+o(t(n).first_name)+"!",1),e[1]||(e[1]=s("p",{class:"subtitle"},"Your Profile Information",-1))]),s("main",I,[s("section",A,[s("div",D,[s("p",null,[e[2]||(e[2]=s("strong",null,"Username:",-1)),r(" "+o(t(n).username),1)]),s("p",null,[e[3]||(e[3]=s("strong",null,"Email:",-1)),r(" "+o(t(n).email),1)]),s("p",null,[e[4]||(e[4]=s("strong",null,"Company:",-1)),r(" "+o(t(n).company_set.name),1)]),s("p",null,[e[5]||(e[5]=s("strong",null,"Gender:",-1)),r(" "+o(t(n).gender),1)]),s("p",null,[e[6]||(e[6]=s("strong",null,"Is Active:",-1)),r(" "+o(t(n).is_active?"Yes":"No"),1)]),s("p",null,[e[7]||(e[7]=s("strong",null,"Is Owner:",-1)),r(" "+o(t(n).is_owner?"Yes":"No"),1)]),s("p",null,[e[8]||(e[8]=s("strong",null,"Is Staff:",-1)),r(" "+o(t(n).is_staff?"Yes":"No"),1)]),s("p",null,[e[9]||(e[9]=s("strong",null,"Is Superuser:",-1)),r(" "+o(t(n).is_superuser?"Yes":"No"),1)]),s("p",null,[e[10]||(e[10]=s("strong",null,"Phone Number:",-1)),r(" "+o(t(n).phone_number||"Not provided"),1)])])])]),s("footer",V,[s("p",null," © "+o(t(d))+" "+o(t(n).company_set.name)+". All rights reserved. p ",1)])])):N("",!0),s("div",null,[C(g,{onClick:t(f)},{default:Y(()=>e[11]||(e[11]=[r("Refresh")])),_:1},8,["onClick"])])],64))}};export{P 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.