1import{_ as G}from"./DvsRewjl.js";import{T as I}from"./DCdFM7oI.js";import{_ as O,A as Z,r as V,E as $,g as J,h as g,c as n,o as r,b as _,a as o,m as N,w as v,t,F as E,j as K,n as Q,u as W,d as l,i as B}from"./BGbhA71I.js";import{u as X}from"./CU7tUVwF.js";const Y={class:"event_management_details"},a={class:"admin_container"},ss={key:0,class:"back_wrapper flex"},es={key:1,class:"container"},os={class:"printSection p-t-20"},ts={class:"p-b-10"},ns={class:"p-b-3"},rs={class:"p-b-3"},ls={class:"p-b-3"},is={class:"p-b-3"},us={key:0},ps={class:"p-b-3"},_s={class:"p-b-3"},cs={class:"p-b-3"},ms={class:"p-b-3"},gs={class:"p-b-3"},vs={key:0},fs={key:1},bs={class:"p-b-3"},hs={class:"p-b-3",style:{"font-weight":"600","text-transform":"capitalize"}},ys={key:2,class:"container text-center p-t-50 p-b-50"},xs={__name:"user-progress-details",setup(ks){const m=Z(),u=V([]),f=V(22),{calculateAge:R,formatDate:T}=$(),z=W(),F=p=>(p/f.value*100).toFixed(0),H=async()=>{var p;try{const e=Q("adminUser",{sameSite:"Strict",secure:!0,maxAge:86400}),i=await $fetch("/stream/list",{baseURL:z.public.baseURL,method:"POST",headers:{Authorization:e.value},body:{filterData:{user_id:(p=m==null?void 0:m.query)==null?void 0:p.id}}});i!=null&&i.message&&(u.value=i==null?void 0:i.data)}catch(e){console.error("Error User Progress List",e)}};return J(async()=>{await H()}),X(()=>({title:"Past Event Details | Admin"})),(p,e)=>{var b,h;const i=G,M=g("v-col"),j=g("v-row"),q=g("v-progress-circular");return r(),n(E,null,[_(I,{"toolbar-title":"User Progress Details"}),o("div",Y,[o("div",a,[((b=u.value)==null?void 0:b.length)>0?(r(),n("div",ss,[_(i,{to:"/admin/sku/user-progress-list",class:"back flex flex-ai-c"},{default:v(()=>{var s,c;return[e[0]||(e[0]=o("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[o("path",{d:"M7.82843 10.9999H20V12.9999H7.82843L13.1924 18.3638L11.7782 19.778L4 11.9999L11.7782 4.22168L13.1924 5.63589L7.82843 10.9999Z",fill:"#333333"})],-1)),o("span",null,t((c=(s=u.value[0])==null?void 0:s.user)==null?void 0:c.name),1)]}),_:1,__:[0]})])):N("",!0),((h=u.value)==null?void 0:h.length)>0?(r(),n("div",es,[o("div",os,[(r(!0),n(E,null,K([u.value[0]],(s,c)=>(r(),n("div",{key:c,class:""},[_(j,{class:"event_details"},{default:v(()=>[_(M,{cols:"12",md:"12",lg:"12"},{default:v(()=>{var y,x,k,w,L,d,P,C,S,A,D,U;return[o("div",ts,[e[12]||(e[12]=o("h4",{style:{"text-transform":"uppercase"},class:"m-b-10"}," Progress Details ",-1)),o("p",ns,[e[1]||(e[1]=o("strong",null,"Person Name: ",-1)),l(" "+t((y=s==null?void 0:s.user)==null?void 0:y.name),1)]),o("p",rs,[e[2]||(e[2]=o("strong",null,"Email Address: ",-1)),l(" "+t((x=s==null?void 0:s.user)==null?void 0:x.email),1)]),o("p",ls,[e[3]||(e[3]=o("strong",null,"Contact Number: ",-1)),l(" "+t((k=s==null?void 0:s.user)==null?void 0:k.phone),1)]),o("p",is,[e[4]||(e[4]=o("strong",null,"Age: ",-1)),(w=s==null?void 0:s.user)!=null&&w.birth_date?(r(),n("span",us,t(B(R)((L=s==null?void 0:s.user)==null?void 0:L.birth_date)),1)):N("",!0)]),o("p",ps,[e[5]||(e[5]=o("strong",null,"Gender: ",-1)),l(" "+t((d=s==null?void 0:s.user)==null?void 0:d.gender),1)]),o("p",_s,[e[6]||(e[6]=o("strong",null,"City: ",-1)),l(" "+t((P=s==null?void 0:s.user)==null?void 0:P.city),1)]),o("p",cs,[e[7]||(e[7]=o("strong",null,"State: ",-1)),l(" "+t((C=s==null?void 0:s.user)==null?void 0:C.state),1)]),o("p",ms,[e[8]||(e[8]=o("strong",null,"Country: ",-1)),l(" "+t((S=s==null?void 0:s.user)==null?void 0:S.country),1)]),o("p",gs,[e[9]||(e[9]=o("strong",null,"Started listening: ",-1)),s!=null&&s.started_at?(r(),n("span",vs,t(B(T)(s.started_at)),1)):(r(),n("span",fs,"--"))]),o("p",bs,[e[10]||(e[10]=o("strong",null,"Videos: ",-1)),l(" "+t((A=s==null?void 0:s.finished_videos)==null?void 0:A.length)+" / "+t(f.value)+" "+t((D=s==null?void 0:s.user)==null?void 0:D.country),1)]),o("p",hs,[e[11]||(e[11]=o("strong",null,"Progress Status: ",-1)),l(" "+t(F((U=s==null?void 0:s.finished_videos)==null?void 0:U.length))+"% ",1)])])]}),_:2},1024)]),_:2},1024)]))),128))])])):(r(),n("div",ys,[_(q,{indeterminate:"",color:"amber",size:30,width:3}
1)]))])])],64)}}},Cs=O(xs,[["__scopeId","data-v-d3e420aa"]]);export{Cs 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.