PageSourceSearch

https://tapekids.org/ClientApp/assets/Profile-BgDspI4K.js

js tapekids.org collected 2026-10-10 00:29:39 UTC 14,927 bytes, 1 lines download raw bytes

1import{f as Q,u as X,h as J,g as ee,W as te,I as $,H as b,j as l,c as r,a as s,d as e,t as p,l as d,B as x,X as se,w as y,C as K,b as I,F as z,k as U,A as v,m as oe,e as ie,Y as re,o,s as a,z as ae,p as le,O as ne}from"./index-DnckmsVO.js";import{_ as pe}from"./BannerLogo.vue_vue_type_style_index_0_lang-BE6pTG3Z.js";import{M as ce}from"./MountainColorBlock-Do5s1uFg.js";const O=114587,de={key:0,class:"profile-page"},_e={class:"profile-content"},he={class:"profile-hero"},fe={class:"profile-hero-info"},ue={class:"profile-welcome"},ye={class:"profile-name"},ve={key:0,class:"profile-yf-id"},ge={class:"profile-status"},me={class:"profile-hero-photo"},ke=["src","alt"],we=["href"],be={key:0,class:"profile-dashboard"},xe={key:0,class:"points-stack"},ze={class:"points-box points-box-current"},qe={class:"points-box-label"},Te={class:"points-box-value"},Pe={class:"points-box points-box-lifetime"},De={class:"points-box-label"},Me={class:"points-box-value"},Ne={class:"profile-nav"},Se={class:"profile-info"},Ce={class:"profile-info-title"},Be={class:"profile-info-card"},Ve={class:"profile-info-list"},Ae={key:0,class:"profile-info-row"},He={key:1,class:"profile-info-row"},Ze={key:2,class:"profile-info-row"},Le={class:"profile-actions"},$e=["href"],Ke={href:"/api/v1/account/vgr/logout",class:"profile-btn profile-btn-logout"},Ie={class:"profile-main"},Ue={key:0,class:"profile-yf-required"},Oe={key:0,class:"quiz-history-section"},Ge={class:"quiz-history-header"},Re={class:"trophy-section-title"},je={class:"quiz-history-list"},Fe={class:"quiz-history-info"},Ee={class:"quiz-history-title"},Ye={class:"quiz-history-date"},We={key:0},Qe={class:"quiz-history-score"},Xe={class:"quiz-score-value"},Je={key:0,class:"quiz-score-points"},et={key:1,class:"quiz-history-section"},tt={class:"quiz-history-header"},st={class:"trophy-section-title"},ot={class:"quiz-history-empty"},it={key:2,class:"trophy-section"},rt={class:"trophy-section-title"},at={class:"trophy-grid"},lt={class:"trophy-card-top"},nt=["src","alt"],pt={class:"trophy-icon-wrapper"},ct={key:0,xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",class:"trophy-icon trophy-icon-gold"},dt={key:1,xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",class:"trophy-icon trophy-icon-pending"},_t={class:"trophy-card-body"},ht={class:"trophy-child-name"},ft={key:0,class:"trophy-points"},ut={class:"points-item"},yt={class:"points-value"},vt={class:"points-label"},gt={class:"points-item"},mt={class:"points-value"},kt={class:"points-label"},wt={key:1,class:"profile-page profile-empty"},Tt=Q({__name:"Profile",async setup(bt){let h,g;const q=le(),f=v(()=>q.params.lng||"en"),_=X();J(()=>{_.loadPageListKeyed(O)}),ee(()=>q.params.lng,()=>{_.loadPageListKeyed(O)});const T=te($()),{fetchUser:G,fetchQuizResults:R}=$();[h,g]=b(()=>G()),await h,g(),[h,g]=b(()=>R()),await h,g();const t=T.vgrUser.value,P=T.quizResults,m=oe(null);m.value=([h,g]=b(()=>re.getSsoProfileUrl()),h=await h,g(),h);const k=v(()=>(t==null?void 0:t.accountType)===ne.YfUserAccount),D=v(()=>(t==null?void 0:t.inPrimaryGroup)===!0),w=v(()=>{var c;return((c=t==null?void 0:t.branhamOrgData)==null?void 0:c.children)??[]}),M=v(()=>{var c;return((c=t==null?void 0:t.yfData)==null?void 0:c.trophyStatus)===!0}),N=c=>{if(!c)return"";const i=new Date(c);return Number.isNaN(i.getTime())?"":i.toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})},j=v(()=>(_.getKeyedText("profile_yf_id_label")??"YF ID : {userName}").replace("{userName}",(t==null?void 0:t.userName)??"")),F=v(()=>{const c=M.value?_.getKeyedText("profile_status_trophy_holder")??"Trophy Holder":_.getKeyedText("profile_status_working_toward")??"Working Toward a Trophy";return(_.getKeyedText("profile_status_label")??"Status: {status}").replace("{status}",c)}),E=c=>{const i=N(c);return i?(_.getKeyedText("profile_quiz_history_taken_date")??"Taken {date}").replace("{date}",i):""},Y=c=>(_.getKeyedText("profile_quiz_history_score_points")??"+{points} pts").replace("{points}",String(c)),W=c=>c?_.getKeyedText("profile_trophy_earned_badge")??"Trophy Earned":_.getKeyedText("profile_trophy_in_progress_badge")??"In Progress";return(c,i)=>{var S,C;const u=ie("router-link");return l(t)?(o(),r("div",de,[s(ce),i[9]||(i[9]=e("div",{class:"profile-mountain-anchor hero-behind-header","aria-hidden":"true"},[e("img",{src:"/images/Home/TK-HomeDivider-1.svg",alt:"",class:"profile-mountain"})],-1)),s(pe),e("div",_e,[e("section",he,[e("div",fe,[e("p",ue,[s(a,{"reference-key":"profile_welcome"})]),e("h1",ye,p(l(t).firstName)+" "+p(l(t).lastName),1),l(t).userName?(o(),r("p",ve,p(j.value),1)):d("",!0),(o(),r("svg",{class:x(["profile-trophy",{"profile-trophy-earned":M.value}]),xmlns:"http://www.w3.org/2000/svg",width:"88",height:"114",viewBox:"0 0 612 792","aria-hidden":"true"},[...i[0]||(i[0]=[se('<defs><filter id="profile-trophy-drop-shadow" x=".84" y="53.64" width="624.24" height="698.64" filterUnits="userSpaceOnUse"><feOffset dx="7" dy="7"></feOffset><feGaussianBlur result="blur" stdDeviation="5"></feGaussianBlur><feFlood flood-color="#231f20" flood-opacity=".5"></feFlood><feComposite in2="blur" operator="in"></feComposite><feComposite in="SourceGraphic"></feComposite></filter></defs><g class="st0"><path class="st1" d="M602.09,152.24c-2.16-16.9-11.22-33.05-25.4-42.72-18.77-12.37-43.81-13.51-64.41-5.22-11.99,4.57-21.21,13.89-29.2,23.59.56-20.49.75-41.04.21-61.53.03-4.43-5.54-4.58-8.72-4.46-112.92.09-225.86,0-338.79.07-3.68-.53-8.01,1.76-7.2,6.04.09,20.17-.48,40.36.82,60.49-4.17-3.61-7.24-8.31-11.53-11.79
1-16.11-14.71-39.4-20.37-60.66-16.39-17.09,3.22-32.32,14.71-40.24,30.19-7.73,15.05-9.37,32.69-6.89,49.27,5.53,34.11,24.65,64.44,47.47,89.74,37.1,40.32,84.71,70.04,135.47,90.09,7.48,3.05,15.19,5.59,23.08,7.44,4.4,1.06,9.14,1.86,12.71,4.91,10.93,8.72,23.78,14.64,36.95,19.14,3.99,1.56,8.59,1.73,12.13,4.36-14.52,2.63-22.48,20.73-15.45,33.5,2.38,7,9.27,10.21,15.23,13.58,2.98,21.21.19,43.37-7.94,63.21-8.33,20.67-25.46,38.08-46.82,45.04-4.64,1.71-9.53,3.3-13.28,6.65-5.63,5.63-7.75,14.35-5.15,21.93,67.79.1,135.59.21,203.38-.05.89-6.89.72-14.56-3.73-20.27-4.28-5.71-11.68-7.2-18.05-9.44-14.81-4.84-27.49-15.19-36.03-28.14-15.6-22.58-19.95-51.41-16.73-78.21,3.7-2.53,8.18-4.04,11.22-7.48,7.41-8.04,10.14-21.55,3.03-30.66-2.91-4.98-8.18-7.49-13.33-9.44l.26-.86c16.15-5.3,33.08-10.61,46.1-22.07,3.51-3.63,8.67-3.88,13.31-5,22.24-4.82,42.96-14.61,63.07-24.96,49.58-26.24,96.06-61.88,125.26-110.6,13.87-23.97,23.9-51.92,19.84-79.97ZM87.77,254.54c-18.89-19.13-35.29-41.52-43.57-67.35-3.58-11.84-5.97-25.06-1.28-36.93,3.58-9.58,11.79-17.24,21.71-19.84,16.29-4.38,34.45,4.46,41.76,19.5,4.35,7.27,2.91,17.76,10.74,22.8,4.86,3.76,11.15,2.94,16.8,1.97,1.45,3.47,1.83,7.27,2.6,10.97,8.4,45.33,23.54,89.9,48.4,128.95,2.5,3.95,5.99,7.27,7.78,11.63-38.63-17.76-75.36-40.85-104.93-71.7ZM571.4,173.66c-4.14,25.15-18.01,47.47-33.92,66.89-32.23,37.04-73.63,65.45-118.16,85.67,3.01-6.18,7.99-11.12,11.21-17.21,23.73-40.83,39.07-86.36,46.43-132.96,6.47-.63,13.91.39,19.13-4.4,4.57-3.32,5.17-9.24,6.62-14.23,3.71-13.36,15.12-24.34,28.76-27.17,9-1.78,18.95-.75,26.45,4.96,11.74,8.64,15.96,24.53,13.5,38.44Z"></path><path class="st1" d="M204.47,579.39c-8.66.07-17.3-.03-25.93.1-7.83-.07-14.2,7.73-13.5,15.36.07,28.67-.12,57.35.34,86.02h280.69c.21,0,.42.01.63.02.06-29.26,0-58.53-.11-87.78.12-7.65-7.3-14.46-14.88-13.81-7.95-.17-15.91-.09-23.85.03-67.79.26-135.59.15-203.38.05Z"></path><path class="st1" d="M165.38,680.87h-.31c-21.38,0-38.72,17.33-38.72,38.72v.42c0,2.41,1.21,9.63,1.21,9.63l355.9.48s1.33-6.61,1.33-10.11v-.42c0-21.17-17-38.37-38.09-38.7-.21,0-.42-.02-.63-.02H165.38Z"></path></g>',2)])],2)),e("p",ge,p(F.value),1),s(u,{to:`/${f.value}/faq`,class:"profile-trophy-link"},{default:y(()=>[s(a,{"reference-key":"profile_trophy_link"})]),_:1},8,["to"])]),e("div",me,[l(t).profilePhotoPath?(o(),r("img",{key:0,src:l(K)(l(t).profilePhotoPath,600),alt:`${l(t).firstName} ${l(t).lastName}`,class:"profile-photo"},null,8,ke)):d("",!0),m.value?(o(),r("a",{key:1,href:m.value,class:"profile-photo-btn"},[s(a,{"reference-key":"profile_upload_photo_button"})],8,we)):d("",!0)])]),k.value?(o(),r("div",be,[l(t).yfData?(o(),r("section",xe,[e("div",ze,[e("span",qe,[s(a,{"reference-key":"profile_current_points_label"})]),e("span",Te,p(((S=l(t).yfData.currentPoints)==null?void 0:S.toLocaleString())??0),1)]),e("div",Pe,[e("span",De,[s(a,{"reference-key":"profile_lifetime_points_label"})]),e("span",Me,p(((C=l(t).yfData.lifetimePoints)==null?void 0:C.toLocaleString())??0),1)])])):d("",!0),e("nav",Ne,[D.value?(o(),I(u,{key:0,to:`/${f.value}/profile/rewards`,class:"profile-nav-btn profile-nav-btn-pale"},{default:y(()=>[s(a,{"reference-key":"profile_redeem_points_nav"})]),_:1},8,["to"])):d("",!0),s(u,{to:`/${f.value}/quizzes/all`,class:"profile-nav-btn profile-nav-btn-mid"},{default:y(()=>[s(a,{"reference-key":"profile_tape_quizzes_nav"})]),_:1},8,["to"]),D.value?(o(),I(u,{key:1,to:`/${f.value}/profile/rewards/history`,class:"profile-nav-btn profile-nav-btn-mid"},{default:y(()=>[s(a,{"reference-key":"profile_rewards_history_nav"})]),_:1},8,["to"])):d("",!0)])])):d("",!0),e("section",Se,[e("h2",Ce,[s(a,{"reference-key":"profile_info_title"})]),e("div",Be,[e("dl",Ve,[l(t).userName?(o(),r("div",Ae,[e("dt",null,[s(a,{"reference-key":"profile_username_label"})]),e("dd",null,p(l(t).userName),1)])):d("",!0),l(t).email?(o(),r("div",He,[e("dt",null,[s(a,{"reference-key":"profile_email_label"})]),e("dd",null,p(l(t).email),1)])):d("",!0),l(t).age?(o(),r("div",Ze,[e("dt",null,[s(a,{"reference-key":"profile_age_label"})]),e("dd",null,p(l(t).age),1)])):d("",!0)]),e("div",Le,[m.value?(o(),r("a",{key:0,href:m.value,class:"profile-btn profile-btn-edit"},[i[1]||(i[1]=e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z"}),e("path",{d:"m15 5 4 4"})],-1)),s(a,{"reference-key":"profile_edit_profile_button"})],8,$e)):d("",!0),e("a",Ke,[i[2]||(i[2]=e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"}),e("polyline",{points:"16 17 21 12 16 7"}),e("line",{x1:"21",x2:"9",y1:"12",y2:"12"})],-1)),s(a,{"reference-key":"profile_logout_button"})])])])]),e("div",Ie,[k.value?d("",!0):(o(),r("p",Ue,[s(a,{"reference-key":"profile_yf_required_message"})])),k.value?(o(),r(z,{key:1},[l(P).length>0?(o(),r("div",Oe,[e("div",Ge,[e("h2",Re,[s(a,{"reference-key":"profile_quiz_history_title"})]),s(u,{to:`/${f.value}
1/quizzes/all`,class:"quiz-history-view-all"},{default:y(()=>[s(a,{"reference-key":"profile_quiz_history_view_all"}),i[3]||(i[3]=e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"m9 18 6-6-6-6"})],-1))]),_:1},8,["to"])]),e("div",je,[(o(!0),r(z,null,U(l(P),n=>(o(),r("div",{key:n.qamScoreId,class:"quiz-history-item"},[e("div",Fe,[e("p",Ee,p(n.tapeTitle),1),e("p",Ye,[ae(p(n.tapeDate)+" ",1),N(n.dateTaken)?(o(),r("span",We," · "+p(E(n.dateTaken)),1)):d("",!0)])]),e("div",Qe,[e("span",Xe,p(n.score)+"%",1),n.scorePoints?(o(),r("span",Je,p(Y(n.scorePoints)),1)):d("",!0)])]))),128))]),s(u,{to:`/${f.value}/quizzes/all`,class:"quiz-history-link-btn"},{default:y(()=>[i[4]||(i[4]=e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M12 20h9"}),e("path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z"})],-1)),s(a,{"reference-key":"profile_browse_quizzes_button"})]),_:1},8,["to"])])):(o(),r("div",et,[e("div",tt,[e("h2",st,[s(a,{"reference-key":"profile_quiz_history_title"})])]),e("div",ot,[e("p",null,[s(a,{"reference-key":"profile_quiz_history_empty"})]),s(u,{to:`/${f.value}/quizzes/all`,class:"quiz-history-link-btn"},{default:y(()=>[i[5]||(i[5]=e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M12 20h9"}),e("path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z"})],-1)),s(a,{"reference-key":"profile_browse_quizzes_button"})]),_:1},8,["to"])])])),w.value&&w.value.length>0?(o(),r("div",it,[e("h2",rt,[s(a,{"reference-key":"profile_trophy_status_title"})]),e("div",at,[(o(!0),r(z,null,U(w.value,n=>{var B,V,A,H,Z,L;return o(),r("div",{key:n.nameId,class:x(["trophy-card",{"trophy-earned":(B=n.yfData)==null?void 0:B.trophyStatus}])},[e("div",lt,[e("img",{src:l(K)(n.profilePhotoPath,128),alt:`${n.firstName}`,class:"trophy-child-avatar"},null,8,nt),e("div",pt,[(V=n.yfData)!=null&&V.trophyStatus?(o(),r("svg",ct,[...i[6]||(i[6]=[e("path",{d:"M6.5 2H3a1 1 0 0 0-1 1v2.5a4.5 4.5 0 0 0 4.04 4.478A5.991 5.991 0 0 0 9.5 12.95V16H8a1 1 0 0 0-1 1v2h10v-2a1 1 0 0 0-1-1h-1.5v-3.05a5.991 5.991 0 0 0 3.46-2.972A4.5 4.5 0 0 0 22 5.5V3a1 1 0 0 0-1-1h-3.5a1 1 0 0 0-1 1v4.5a4 4 0 0 1-9 0V3a1 1 0 0 0-1-1ZM4 5.5V4h1.5v2.5a4.013 4.013 0 0 1-.065.5A2.5 2.5 0 0 1 4 5.5ZM20 5.5a2.5 2.5 0 0 1-1.435 1.5 3.952 3.952 0 0 1-.065-.5V4H20v1.5ZM7 21h10v1H7v-1Z"},null,-1)])])):(o(),r("svg",dt,[...i[7]||(i[7]=[e("path",{d:"M6.5 2H3a1 1 0 0 0-1 1v2.5a4.5 4.5 0 0 0 4.04 4.478A5.991 5.991 0 0 0 9.5 12.95V16H8a1 1 0 0 0-1 1v2h10v-2a1 1 0 0 0-1-1h-1.5v-3.05a5.991 5.991 0 0 0 3.46-2.972A4.5 4.5 0 0 0 22 5.5V3a1 1 0 0 0-1-1h-3.5a1 1 0 0 0-1 1v4.5a4 4 0 0 1-9 0V3a1 1 0 0 0-1-1ZM4 5.5V4h1.5v2.5a4.013 4.013 0 0 1-.065.5A2.5 2.5 0 0 1 4 5.5ZM20 5.5a2.5 2.5 0 0 1-1.435 1.5 3.952 3.952 0 0 1-.065-.5V4H20v1.5ZM7 21h10v1H7v-1Z"},null,-1)])]))])]),e("div",_t,[e("h3",ht,p(n.firstName),1),e("span",{class:x(["trophy-badge",(A=n.yfData)!=null&&A.trophyStatus?"trophy-badge-gold":"trophy-badge-pending"])},p(W((H=n.yfData)==null?void 0:H.trophyStatus)),3),n.yfData?(o(),r("div",ft,[e("div",ut,[e("span",yt,p(((Z=n.yfData.currentPoints)==null?void 0:Z.toLocaleString())??0),1),e("span",vt,[s(a,{"reference-key":"profile_current_pts_label"})])]),i[8]||(i[8]=e("div",{class:"points-divider"},null,-1)),e("div",gt,[e("span",mt,p(((L=n.yfData.lifetimePoints)==null?void 0:L.toLocaleString())??0),1),e("span",kt,[s(a,{"reference-key":"profile_lifetime_pts_label"})])])])):d("",!0)])],2)}),128))])])):d("",!0)],64)):d("",!0)])])])):(o(),r("div",wt,[e("p",null,[s(a,{"reference-key":"profile_not_logged_in"})])]))}}});
1export{Tt 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.