1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9485],{62479:function(e,l,n){n.d(l,{q:function(){return a}});var t=n(85893);n(67294);var s=n(36860),i=n(36190),o=n(93562);let a=e=>{let{children:l,extraClass:n="",extraImgClass:a="",extraInnerClass:c="",clickHandler:d=e=>console.log("Avatar clickHandler",e),premium:r=!1,size:u="md",src_url:m,useNext:v=!1,...x}=e,p="",h="",g=0;switch(u){case"sm":p="sm",g=32,h="16";break;case"md":p="sm",g=43,h="30";break;case"lg":p="md",g=150,h="36";break;case"xl":p="md",g=180,h="48"}let f=e=>"lg"===e||"md"===e?"rounded":"rounded".concat("xl"!==e?"-"+e:""),j="avatar-container shadow-sm ".concat(n," ").concat(f(u)),b="size-".concat(u," ").concat(a," overflow-hidden");return(0,t.jsxs)("div",{className:j,children:[(0,t.jsx)("div",{className:"avatar ".concat(c," ").concat(f(u)),children:m?(0,t.jsx)(o.c,{alt:"User Avatar",clickHandler:d?()=>d():null,extraClass:b,lazy:!1,height:g,src:m,useNext:v,width:g}):(0,t.jsx)("div",{className:"".concat(b," d-flex align-items-center justify-content-center"),onClick:d?()=>d():null,children:(0,t.jsx)(i.J,{icon:"user-plus",iconClass:"font-size-".concat(h)})})}),r&&(0,t.jsx)(s.l,{size:p}),l&&l]})}},49485:function(e,l,n){n.r(l),n.d(l,{Home:function(){return C}});var t=n(85893),s=n(67294),i=n(46050),o=n(23003),a=n(10914),c=n(28624),d=n(8785),r=n(62479),u=n(74582),m=n(42633),v=n(59508),x=n(33219),p=n(93860),h=n(71118),g=n(36190),f=n(93562),j=n(45301),b=n(31),w=n(919),N=n(14031),y=n(60748),k=n(46290);let C=e=>{var l,n,C,D,z,S,T;let{accountUsers:P=[],disableDiscoverFeed:_=!1,disableMaterialDownload:H=!1,discoverFeed:U=null,enableActivityTrend:A=!1,fadeOut:L=!1,handleFileDownload:F=(e,l)=>console.log("handleFileDownload()",{file:e,user:l}),handleGetPremium:E,handleUnitDownload:R=e=>console.log("handleUnitDownload(): ",e),loading:q=!1,selectableDateRange:O=[c.qI[0]],useNext:G=!0,user:I,...M}=e;(null===(n=document)||void 0===n?void 0:null===(l=n.cookie)||void 0===l?void 0:l.indexOf("ha_dev_test"))===1&&console.log("props",M);let V=(0,t.jsx)(i.default,{loading:!0,spinnerClass:"loading position-relative d-inline-block p-5 w-100 mt-10vh mb-10vh bg-transparent"});if(!I)return console.error("Ack! No user",I),V;let[W,J]=(0,s.useState)(O[0]),B=(0,s.useRef)(null),[Y,Z]=(0,s.useState)(null),[K,Q]=(0,s.use
1State)(null),[X,$]=(0,s.useState)(!1);(0,s.useEffect)(()=>{if(!X){let e=setTimeout(()=>{Q(null)},w.D8);return()=>clearTimeout(e)}},[X]),(0,s.useEffect)(()=>{let e=null!==Y;setTimeout(()=>e=!1,100);let l=l=>{if(e){e=!1;return}null!==Y&&B.current&&!B.current.contains(l.target)&&Z(null)};return document.addEventListener("click",l),()=>{document.removeEventListener("click",l)}},[Y]);let ee="text-uppercase font-weight-bolder body-small text-gray align-self-center justify-content-around",el=(e,l)=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"d-none d-lg-block",children:e}),(0,t.jsxs)("div",{className:"d-block d-lg-none",children:[(0,t.jsx)("div",{children:l[0]}),(0,t.jsx)("div",{children:l[1]})]})]}),en=el("Active Days",["Active","Days"]),et=el("Video Minutes",["Video","Minutes"]),es=el("Practice Sessions",["Practice","Sessions"]),ei=el("Game Plays",["Game","Plays"]),eo=()=>{I||console.error("Ack! DiscoveryFeed needs a user to filter roles");let e=I?U:null;return!_&&(null==e?void 0:e.length)>0?{title:y.gr.FOR_YOU,content:(0,t.jsx)(x.u,{items:e})}:null},ea=function(e,l,n,s,i,o){let a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"",d=arguments.length>8&&void 0!==arguments[8]?arguments[8]:"",r=arguments.length>9?arguments[9]:void 0,u="col px-2 px-sm-0 py-2 py-sm-0 text-center ".concat(d);return(0,t.jsxs)("div",{className:"d-flex flex-column flex-sm-row font-weight-bolder align-items-center border-purple-15 py-3 py-sm-1 px-sm-0 ".concat(a?"border-top ":""," ").concat(c),children:[(0,t.jsx)("div",{className:"col col-sm-3 col-lg-2 pr-sm-0 pl-sm-2 pl-lg-3",children:e}),(0,t.jsx)("div",{className:"col col-sm-6 col-lg-7 ".concat(ee," px-3 pl-3"),children:(0,t.jsxs)("div",{className:"row",children:[(0,t.jsx)("div",{className:u,children:l}),(0,t.jsx)("div",{className:u,children:n}),(0,t.jsx)("div",{className:u,children:s}),(0,t.jsx)("div",{className:u,children:i})]})}),(0,t.jsx)("div",{className:"col col-sm-3 px-sm-2 px-lg-3",children:o})]},r)},ec=(e,l)=>{var n,s,i,o;let c=function(e,l){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return l?(0,t.jsxs)("div",{className:"py-2 pl-2 pr-1 ".concat(n?"border-bottom border-purple-15":""),children:[(0,t.jsxs)("div",{className:"text-uppercase font-weight-bolder body-small text-gray mb-1",children:[e,":"]}),(0,t.jsxs)("div",{className:"font-weight-bolder text-purple w-100 d-flex flex-row align-items-center line-height-20 font-size-16 letter-spacing-0-32",children:[(0,t.jsx)(a.A,{className:"badge-activity m-0 p-0",hideText:!0,type:null==l?void 0:l.type,backgroundColor:"bg-green",icon:"chart-simple"}),null==l?void 0:l.title]})]}):null};return(0,t.jsxs)("div",{className:"p-0 w-100 position-relative mx-2 mx-lg-3",children:[(0,t.jsx)(N.k,{progressContainerBgClass:"bg-purple-15",percentComplete:null!==(s=null==e?void 0:null===(n=e.unit)||void 0===n?void 0:n.progress)&&void 0!==s?s:0}),(0,t.jsx)(d.r,{trigger:l,direction:"top",children:(0,t.jsx)(h.v,{isOpen:!0,showTriangle:!0,dropdownItemClass:"p-0",dropdownClass:"position-absolute position-left mt-1 mr-2",items:[(0,t.jsxs)("div",{className:"d-flex flex-column text-left w-100",children:[c("Recently completed",null!==(i=null==e?void 0:e.lastLesson)&&void 0!==i?i:null,(null==e?void 0:e.nextLesson)&&(null==e?void 0:e.nextLesson)!==void 0),c("Next Up",null!==(o=null==e?void 0:e.nextLesson)&&void 0!==o?o:null)]})],width:"VW"})})]})};return(0,t.jsxs)("section",{className:"main-section user text-neutral-cool overflow-hidden bg-purple-vivid",children:[(0,t.jsx)("div",{className:"billboard-dashboard-owner container-lg px-lg-0 text-center transition-opacity ".concat(L?"opacity-0":""),children:q?V:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"d-flex flex-column flex-sm-row justify-content-between align-items-center w-100 mb-4",children:[(0,t.jsxs)("div",{className:"text-sm-left text-tan-light pb-3 pb-md-0",children:[(0,t.jsxs)("div",{className:"h3 mb-0",children:["Welcome back, ",null!==(z=null==I?void 0:I.name)&&void 0!==z?z:"Human","!"]}),(0,t.jsx)("div",{className:"body-small",children:"Below is a recap of your recent student activity."})]}),(0,t.jsx)("div",{className:"text-tan-light text-left",children:(0,t.jsxs)(b.N,{extraClass:"btn btn-secondary text-neutral-warm px-sm-2 px-md-3 px-lg-4",href:k.m.accountStudents,useNext:G,children:[(0,t.jsx)(g.J,{icon:"repeat",iconClass:"mr-2"}),"Switch to Student"]})})]}),(0,t.jsx)("div",{className:"card-simple overflow-unset mb-5",children:(0,t.jsxs)("div",{className:"w-100 h-100 pt-2 pb-0",children:[ea((0,t.jsx)(v.o,{dateRange:O,handleSelectedRange:J}),en,et,es,ei,"",!1,"mb-1","d-none d-sm-block"),null==I?void 0:null===(T=I.children)||void 0===T?void 0:T.map((e,l)=>{var n,s,i,o,a,c,d;let v=m.H.isUserNew(P,null==e?void 0:e.id),x=null==e?void 0:e.lessonTracking,p=!x||void 0===x,h=m.H.getTrendString(null==e?void 0:e.activities,null==e?void 0:e.name,"parent",v),b=!H&&Object.keys((null==e?void 0:e.unitDownloads)||{}).length>0,w=(0,t.jsxs)("div",{className:"d-flex flex-row align-items-center",children:[(0,t.jsx)(r.q,{premium:null==e?void 0:e.premium,size:"sm",src_url:(null==e?void 0:null===(n=e.avatar)||void 0===n?void 0:n.src_url)?null==e?void 0:null===(s=e.avatar)||void 0===s?void 0:s.src_url:""}),(0,t.jsx)("div",{className:"font-primary text-neutral-dark font-size-18 pl-3 w-100 text-left text-truncate",title:null==e?void 0:e.name,children:null==e?void 0:e.name})]}),N=(l,n,s)=>(0,t.jsxs)("span",{title:s,children:[(0,t.jsx)("span",{className:"d-sm-none ".concat(ee),children:n}),m.H.getCountForRange(null==e?void 0:e.activities,l,W)]}),y=(0,t.jsxs)("div",{className:"d-flex flex-row align-items-center justify-content-between",children:[A&&(0,t.jsx)("div",{className:"col px-0 mx-0 trend-icon-parent",children:(0,t.jsx)(f.c,{alt:h,lazy:!1,src:m.H.getTrendIcon(null==e?void 0:e.activities,"parent",v),title:h})}),(0,t.jsxs)("div",{className:"student-progress short d-flex flex-row justify-content-between align-items-center my-1 w-100",ref:B,children:[(0,t.jsx)(u.z,{className:"btn btn-sm text-transform-unset font-secondary w-100 d-flex flex-row justify-content-between align-items-center px-0 ".concat(b?"btn-square-right":""," ").concat(p?"pointer-events-none":""),onClick:()=>{Y===l?Z(null):Z(l)},tabIndex:p?-1:null,variant:"light",children:(0,t.jsxs)("div",{className:"w-100 d-flex flex-row justify-content-between align-items-center",children:[(0,t.jsx)("div",{className:"col-auto font-size-15 font-weight-bolder pl-2 pl-lg-3 pr-0 d-block d-sm-none d-md-block",children:null!==(c=null==x?void 0:null===(i=x.unit)||void 0===i?void 0:i.title)&&void 0!==c?c:"Unit 1"}),(0,t.jsx)("div",{className:"col-auto font-size-15 font-weight-bolder pl-3 pl-sm-2 pr-0 d-none d-sm-block d-md-none",children:null!==(d=j.l.getUnitNumber(null==x?void 0:null===(o=x.unit)||void 0===o?void 0:o.title))&&void 0!==d?d:"1"}),ec(x,l===Y)]})}),b?(0,t.jsx)(u.z,{className:"btn btn-sm px-2 btn-square-left border-left border-darken",onClick:()=>{$(!0),Q(e)},title:"Download ".concat(null==x?void 0:null===(a=x.unit)||void 0===a?void 0:a.title," materials"),variant:"light",children:(0,t.jsx)(g.J,{icon:"file-arrow-down",iconClass:"scale-1-1"})}):null]})]});return ea(w,N("activeDays",en,"Active Days"),N("videoMinutesWatched",et,"Video Minutes Watched"),N("practiceTasksCompleted",es,"Practice Sessions Completed"),N("gamePlays",ei,"Game Plays"),y,!0,"py-4 py-sm-2","text-purple body-large py-3 py-sm-1",l)})]})}),(0,t.jsx)(o.Z,{colorText:"neutral-cool",elements:eo()?[eo()]:[]})]})}),(0,t.jsx)(p.f,{active:X,downloadLimit:null!==(S=null==K?void 0:K.unitDownloadLimit)&&void 0!==S?S:null,handleGetPremium:E,handleFileDownload:e=>{F(e,K)},notPremium:!(null==K?void 0:K.premium),premiumUrl:m.H.dashboardPremiumUrl(I),title:null==K?void 0:null===(D=K.lessonTracking)||void 0===D?void 0:null===(C=D.unit)||void 0===C?void 0:C.title,toggle:()=>$(!1),unitDownloads:null==K?void 0:K.unitDownloads,useNext:G})]})};l.default=C}}]);
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.