PageSourceSearch

https://www.cacareerzone.org/js/app/admin.e6add13e.chunk.js

js cacareerzone.org collected 2026-10-01 13:10:11 UTC 286,825 bytes, 6 lines download raw bytes

1"use strict";(self.webpackChunkheaded2=self.webpackChunkheaded2||[]).push([[9884],{5513(e,s,t){t.d(s,{H:()=>d});var r=t(6527),i=t(30532),n=t(5021),l=t(62488);function a(e,s){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);s&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,r)}return t}function o(e){for(var s=1;s<arguments.length;s++){var t=null!=arguments[s]?arguments[s]:{};s%2?a(Object(t),!0).forEach(function(s){c(e,s,t[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(t,s))})}return e}function c(e,s,t){return(s=function(e){var s=function(e,s){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,s||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===s?String:Number)(e)}(e,"string");return"symbol"==typeof s?s:s+""}(s))in e?Object.defineProperty(e,s,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[s]=t,e}const d=(0,r.connect)(e=>o(o({collectionId:"profileadmin"},e.documentation),{},{modalOpen:!0}),(e,s)=>({modalClose:()=>{const e=(null==s?void 0:s.version3)?"/management/localopportunities":"/admin/profiles/manage";l.N.push(e)},selectSection:s=>e((0,i.Ow)(s))}))(n.g)},78209(e,s,t){t.r(s);t.d(s,{default:()=>yn});var r=t(56347),i=t(53209),n=t(75942),l=t(96540),a=t(38267),o=t(98407),c=t(36657),d=t(57886),h=t(21808),u=t(26715),m=t(95567),p=t(74848);function x(e,s){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);s&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,r)}return t}function j(e){for(var s=1;s<arguments.length;s++){var t=null!=arguments[s]?arguments[s]:{};s%2?x(Object(t),!0).forEach(function(s){f(e,s,t[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):x(Object(t)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(t,s))})}return e}function f(e,s,t){return(s=function(e){var s=function(e,s){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,s||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===s?String:Number)(e)}(e,"string");return"symbol"==typeof s?s:s+""}(s))in e?Object.defineProperty(e,s,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[s]=t,e}const g=(0,a.Ay)(m.s).withConfig({displayName:"generate__Actions",componentId:"sc-pon6sw-0"})(["justify-content:flex-end;> button{min-width:100px;}"]),v=a.Ay.form.withConfig({displayName:"generate__Form",componentId:"sc-pon6sw-1"})(["> div:nth-child(n + 2){margin-top:15px;}> ",":last-child{margin-top:30px;}"],g),b=()=>{const e=1e3,s=(e,s,t)=>{if(null==e||!e.trim())return`${s} is required`;if(isNaN(e))return`${s} must be a number`;if(e<0)return`${s} must be positive`;if(e>t)return`${s} cannot exceed ${t}`;else return},{register:t,handleOnSubmit:r,setValidation:a,error:m,isInvalid:x,required:f,value:b}=(0,h.m)({validators:{studentCount:t=>s(t.studentCount,"Students",e),managerCount:t=>s(t.managerCount,"Managers",e),schoolAdminCount:t=>s(t.schoolAdminCount,"School Administrators",e),adminCount:t=>s(t.adminCount,"Administrators",e),minGrade:e=>s(e.minGrade,"Minimum Grade",12),maxGrade:e=>s(e.maxGrade,"Maximum Grade",12),pctIP:e=>s(e.pctIP,"% Interest Profiler",100),pctWIP:e=>s(e.pctWIP,"% Work Importance Profiler",100),pctSKIP:e=>s(e.pctSKIP,"% Skills Profiler",100),pctBudget:e=>s(e.pctBudget,"% Budget",100)},initialValues:{studentCount:"100",managerCount:"20",schoolAdminCount:"10",adminCount:"5",minGrade:"0",maxGrade:"12",pctIP:"80",pctWIP:"80",pctSKIP:"80",pctBudget:"80"}}),{mutate:y,isLoading:N}=(0,n.useMutation)(e=>c.F.fetch("/admin/maintenance/demo/populate",{version:"v1",method:"POST",body:JSON.stringify(e)}),{onSuccess:(0,l.useCallback)(e=>{},[]),onError:(0,l.useCallback)(e=>{const s=c.s.getValidation(e);if(s)a(s)},[a])});return(0,p.jsx)("div",{className:"container",children:(0,p.jsxs)(v,{onSubmit:r(y),noValidate:!0,children:[(0,p.jsx)(o.D,{isRequired:!0,desc:m.studentCount,status:m.studentCount?"error":"default",label:"Number of Students",children:(0,p.jsx)(d.k,j({},t("studentCount",{required:!0})))}),(0,p.jsx)(o.D,{isRequired:!0,desc:m.managerCount,status:m.managerCount?"error":"default",label:"Number of Managers",children:(0,p.jsx)(d.k,j({},t("managerCount",{required:!0})))}
1),(0,p.jsx)(o.D,{isRequired:!0,desc:m.schoolAdminCount,status:m.schoolAdminCount?"error":"default",label:"Number of School Administrators",children:(0,p.jsx)(d.k,j({},t("schoolAdminCount",{required:!0})))}),(0,p.jsx)(o.D,{isRequired:!0,desc:m.adminCount,status:m.adminCount?"error":"default",label:"Number of Administrators",children:(0,p.jsx)(d.k,j({},t("adminCount",{required:!0})))}),(0,p.jsx)(o.D,{isRequired:!0,desc:m.minGrade,status:m.minGrade?"error":"default",label:"Minimum Grade (0 for KG)",children:(0,p.jsx)(d.k,j({},t("minGrade",{required:!0})))}),(0,p.jsx)(o.D,{isRequired:!0,desc:m.maxGrade,status:m.maxGrade?"error":"default",label:"Maximum Grade (0 for KG)",children:(0,p.jsx)(d.k,j({},t("maxGrade",{required:!0})))}),(0,p.jsx)(o.D,{isRequired:!0,desc:m.pctIP,status:m.pctIP?"error":"default",label:"% of Users with Interest Profiler",children:(0,p.jsx)(d.k,j({},t("pctIP",{required:!0})))}),(0,p.jsx)(o.D,{isRequired:!0,desc:m.pctWIP,status:m.pctWIP?"error":"default",label:"% of Users with Work Importance Profiler",children:(0,p.jsx)(d.k,j({},t("pctWIP",{required:!0})))}),(0,p.jsx)(o.D,{isRequired:!0,desc:m.pctSKIP,status:m.pctSKIP?"error":"default",label:"% of Users with Skills Profiler",children:(0,p.jsx)(d.k,j({},t("pctSKIP",{required:!0})))}),(0,p.jsx)(o.D,{isRequired:!0,desc:m.pctBudget,status:m.pctBudget?"error":"default",label:"% of Users with Budget",children:(0,p.jsx)(d.k,j({},t("pctBudget",{required:!0})))}),(0,p.jsx)(g,{children:(0,p.jsx)(u.$n,{type:"submit",size:"large",align:"center",isLoading:N,isDisabled:x||N,children:i.t`Create Users`})})]})})},y=(0,a.Ay)(m.s).withConfig({displayName:"reset__Actions",componentId:"sc-db6rh2-0"})(["justify-content:flex-end;> button{min-width:100px;}"]),N=a.Ay.form.withConfig({displayName:"reset__Form",componentId:"sc-db6rh2-1"})(["> div:nth-child(n + 2){margin-top:15px;}> ",":last-child{margin-top:30px;}"],y),w=()=>{const{register:e,handleOnSubmit:s,setValidation:t,error:r,isInvalid:a,required:o,value:d}=(0,h.m)({validators:{}}),{mutate:m,isLoading:x}=(0,n.useMutation)(e=>c.F.fetch("/admin/maintenance/demo/reset",{version:"v1",method:"POST",body:JSON.stringify(e)}),{onSuccess:(0,l.useCallback)(e=>{},[]),onError:(0,l.useCallback)(e=>{const s=c.s.getValidation(e);if(s)t(s)},[t])});return(0,p.jsx)("div",{className:"container",children:(0,p.jsx)(N,{onSubmit:s(m),noValidate:!0,children:(0,p.jsx)(y,{children:(0,p.jsx)(u.$n,{type:"submit",size:"large",align:"center",isLoading:x,isDisabled:a||x,children:i.t`Reset Users`})})})})};var A=t(6527),O=t(78340),S=t(41368),C=t(54625),P=t(80437),k=t(46418),D=t(44113),q=t(56944),F=t(26023);function R(e,s){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);s&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,r)}return t}function T(e){for(var s=1;s<arguments.length;s++){var t=null!=arguments[s]?arguments[s]:{};s%2?R(Object(t),!0).forEach(function(s){E(e,s,t[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):R(Object(t)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(t,s))})}return e}function E(e,s,t){return(s=function(e){var s=function(e,s){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,s||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===s?String:Number)(e)}(e,"string");return"symbol"==typeof s?s:s+""}(s))in e?Object.defineProperty(e,s,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[s]=t,e}const L=F.gp,I=(0,A.connect)(e=>{const{admin:{maintenance:s}}=e,t=(0,O.E1)(e,F.LU()),r=dynamicValues&&dynamicValues.tenants||[],i=t.tenantId,n=r.find(e=>e.id===i),l=n&&n.subTenants||[];return T(T({},s),{},{tenant:n,tenants:r,subTenants:l})},e=>({dispatch:e}))(({dispatch:e,index:s,wageCacheRequest:t,templateCacheRequest:i,jobOpeningResetRequest:n,jobOpeningRetrieveRequest:a,aeriesSyncUsersRequest:o,aeriesSyncCoursesRequest:c,s3RosterRequest:d,tenants:h,subTenants:u,psrArchiveRequest:m,reprocessSurveyResponsesRequest:x})=>{const j="root_extra",f=(0,l.useMemo)(()=>"true"==new URLSearchParams((0,r.zy)().search).get("showDestructiveIndexOps"),[]),g=()=>"all"===S.A.get(j);return(0,p.jsxs)("div",{className:"container",children:[(0,p.jsx)("style",{children:"\n                #indexactions li {\n                  list-style: none;\n                  margin: 0;\n                  padding: 10px;\n                }\n                #indexactions ul {\n                  padding : 0;\n                  margin : 0;\n                }\n            "}),(0,p.jsxs)("div",{className:"container",id:"indexactions",children:[(0,p.jsx)("h2",{children:"Indexes"}),(0,p.jsx)(k.A,{model:F.LU(),onSubmit:s=>e(F.kC(s)),children:t=>(0,p.jsxs)("div",{children:[f&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("h3",{style:{marginTop:"20px"},children:"Index Deletion"}),(0,p.jsx)("ul",{children:L.map(t=>(0,p.jsx)("li",{className:"col-xs-12 col-sm-6 col-md-3",children:(0,p.jsxs)(P.A,{onClick:()=>e(F.kD(t.kind)),className:"btn btn-danger col-xs-12 no-style",request:s.requests[t.kind].drop,success:null,children:["Drop ",t.name]})},t.kind))}),(0,p.jsx)("br",{className:"clear"}),(0,p.jsx)("h3",{style:{marginTop:"20px"},children:"Index Creation"}),(0,p.jsx)("ul",{children:L.map(t=>(0,p.jsx)("li",{className:"col-xs-12 col-sm-6 col-md-3",children:(0,p.jsxs)(P.A,{onClick:()=>e(F.zi(t.kind)),className:"btn btn-primary col-xs-12 no-style",request:s.requests[t.kind].create,success:null,children:["Create ",t.name]})},t.kind))}),(0,p.jsx)("br",{className:"clear"})]}),(0,p.jsx)("h3",{style:{marginTop:"20px"},children:"Index Population"}),(0,p.jsxs)(D.A,{model:F.LU("tenantId"),form:t,label:"Tenant",type:"select",children:[(0,p.jsx)("option",{value:"",children:"Please choose one"}),h.map(e=>(0,p.jsx)("option",{value:e.id,children:e.name},e.id))]}),(0,p.jsxs)(D.A,{model:F.LU("subTenantId"),form:t,label:"Sub Tenant",type:"select",children:[(0,p.jsx)("option",{value:"",children:"Please choose one"}),u.map(e=>(0,p.jsx)("option",{value:e.id,children:e.name},e.id))]}),(0,p.jsx)("ul",{children:L.map(t=>{let r=[(0,p.jsx)("li",{className:"col-xs-12 col-sm-6 col-md-3",children:(0,p.jsxs)(P.A,{onClick:()=>e(F.Qm(t.kind,"_")),className:"btn btn-success col-xs-12 no-style",request:s.requests[t.kind].index._,success:null,children:["Index ",t.name," ",t.subKinds&&" (base only)"]}
1)},`${t.kind}.base`)];if(t.subKinds){let i=t.subKinds.map(r=>(0,p.jsx)("li",{className:"col-xs-12 col-sm-6 col-md-3",children:(0,p.jsxs)(P.A,{onClick:()=>e(F.Qm(t.kind,r.kind)),className:"btn btn-success col-xs-12 no-style",request:s.requests[t.kind].index[r.kind],success:null,children:["Index ",t.name," (",r.name,")"]})},`${t.kind}.${r.kind}`));i=[...i,(0,p.jsx)("li",{className:"col-xs-12 col-sm-6 col-md-3",children:(0,p.jsxs)(P.A,{onClick:()=>e(F.Qm(t.kind,"*")),className:"btn btn-success col-xs-12 no-style",request:s.requests[t.kind].index["*"],success:null,children:["Index ",t.name," (all)"]})},`${t.kind}."all"`)];r=[...r,...i]}return r})}),(0,p.jsx)("br",{className:"clear"}),(0,p.jsx)("h3",{style:{marginTop:"20px"},children:"Index Maintenance"}),(0,p.jsx)("ul",{children:(0,p.jsx)("li",{className:"col-xs-12 col-sm-6 col-md-3",children:(0,p.jsx)(P.A,{onClick:()=>e(F.Y2()),className:"btn btn-danger col-xs-12 no-style",request:s.requests.user.clear,success:null,children:"Clear Users"})})}),(0,p.jsx)("br",{className:"clear"}),(0,p.jsx)("h3",{style:{marginTop:"20px"},children:"Survey Maintenance"}),(0,p.jsx)("ul",{children:(0,p.jsx)("li",{className:"col-xs-12 col-sm-6 col-md-3",children:(0,p.jsxs)("div",{children:[(0,p.jsx)("div",{style:{marginBottom:"10px"},children:(0,p.jsx)(D.A,{form:t,model:F.LU("surveyReprocessDryRun"),label:"Dry Run Preview",type:"checkbox",help:"Preview changes only"})}),(0,p.jsxs)(P.A,{className:"btn btn-success col-xs-12 no-style",onClick:()=>e(F.nh({tenantId:t.tenantId,subTenantId:t.subTenantId||null,dryRun:!!t.surveyReprocessDryRun})),request:x,success:null,children:["Reprocess Survey Responses",t.surveyReprocessDryRun?" (Dry Run)":""]})]})})})]})}),(0,p.jsx)("br",{className:"clear"}),(0,p.jsx)("h2",{style:{marginTop:"20px"},children:"Aeries"}),(0,p.jsxs)("ul",{children:[(0,p.jsx)("li",{className:"col-xs-12 col-sm-6 col-md-3",children:(0,p.jsx)(P.A,{className:"btn btn-primary col-xs-12 no-style",onClick:()=>e(F.rO()),request:o,success:null,children:"Aeries Sync Students"})}),(0,p.jsx)("li",{className:"col-xs-12 col-sm-6 col-md-3",children:(0,p.jsx)(P.A,{className:"btn btn-primary col-xs-12 no-style",onClick:()=>e(F.X3()),request:c,success:null,children:"Aeries Sync Courses"})})]}),(0,p.jsxs)("div",{children:[q.L$(o)&&(0,p.jsx)("pre",{children:JSON.stringify(o.result,null,2)}),q.L$(c)&&(0,p.jsx)("pre",{children:JSON.stringify(c.result,null,2)})]}),(0,p.jsx)("br",{className:"clear"}),(0,p.jsx)("h2",{style:{marginTop:"20px"},children:"S3 Manual Roster"}),(0,p.jsx)("div",{children:(0,p.jsx)(k.A,{model:"admin.maintenance.forms.s3Roster",onSubmit:s=>e(F.Yv(s)),children:e=>(0,p.jsxs)("div",{children:[(0,p.jsx)(D.A,{form:e,model:"admin.maintenance.forms.s3Roster.location",label:"Location",type:"text",required:!0,help:"Path within the s3 rostering bucket, no leading slash"}),(0,p.jsx)(P.A,{className:"btn btn-primary no-style",type:"submit",request:d,success:null,children:"Roster by S3"})]})})}),(0,p.jsx)("h2",{style:{marginTop:"20px"},children:"Direct Employers"}),(0,p.jsxs)("ul",{children:[(0,p.jsx)("li",{className:"col-xs-12 col-sm-6 col-md-3",children:(0,p.jsx)(P.A,{className:"btn btn-primary col-xs-12 no-style",onClick:()=>e(F.bN()),request:a,success:null,children:"Retrieve Jobs"})}),(0,p.jsx)("li",{className:"col-xs-12 col-sm-6 col-md-3",children:(0,p.jsx)(P.A,{className:"btn btn-primary col-xs-12 no-style",onClick:()=>e(F.IZ()),request:n,success:null,children:"Expire Old Jobs"})})]}),(0,p.jsx)("br",{className:"clear"}),(0,p.jsx)("div",{children:q.L$(x)&&(0,p.jsxs)("div",{style:{marginTop:"20px"},children:[(0,p.jsx)("h4",{children:"Survey Reprocessing Results"}),(0,p.jsx)("pre",{style:{backgroundColor:"#f8f9fa",padding:"10px",border:"1px solid #dee2e6",borderRadius:"4px",fontSize:"12px"},children:JSON.stringify(x.result,null,2)})]})}),(0,p.jsx)("br",{className:"clear"}),(0,p.jsx)("h2",{style:{marginTop:"20px"},children:"Other Maintenance"}),(0,p.jsxs)("ul",{children:[(0,p.jsx)("li",{className:"col-xs-12 col-sm-6 col-md-3",children:(0,p.jsx)(P.A,{className:"btn btn-primary col-xs-12 no-style",onClick:()=>e(F.YH()),request:i,success:null,children:"Drop Template Cache"})}),(0,p.jsx)("li",{className:"col-xs-12 col-sm-6 col-md-3",children:(0,p.jsx)(P.A,{className:"btn btn-primary col-xs-12 no-style",onClick:()=>e(F.tU()),request:m,success:null,children:"Create Portfolio Summary Archive"})}),(0,p.jsx)("li",{className:"col-xs-12 col-sm-6 col-md-3",children:(0,p.jsx)(P.A,{className:"btn btn-primary col-xs-12 no-style",onClick:()=>e(F.n3()),request:t,success:null,children:"Cache Wages"})})]}),(0,p.jsx)("br",{className:"clear"}),(0,p.jsx)("h2",{style:{marginTop:"20px"},children:"Demo User Management"}),(0,p.jsxs)("ul",{children:[(0,p.jsx)("li",{className:"col-xs-12 col-sm-6 col-md-3",children:(0,p.jsx)(C.N_,{to:"/admin/maintenance/demo/generate",className:"btn btn-primary col-xs-12 no-style",children:"Generate Users"})}),(0,p.jsx)("li",{className:"col-xs-12 col-sm-6 col-md-3",children:(0,p.jsx)(C.N_,{to:"/admin/maintenance/demo/reset",className:"btn btn-danger col-xs-12 no-style",children:"Reset Users"})})]})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)("h2",{style:{marginTop:"20px"},children:"Other Tools"}),(0,p.jsxs)("ul",{children:[(0,p.jsx)("li",{children:(0,p.jsx)("a",{onClick:()=>{let e={};if(dynamicValues.isProduction){const s=dynamicValues.defaultUrl.split(".").reverse();if(s&&s.length>0)e={domain:`.${s[1]}.${s[0]}`.replaceAll("/","")}}else{if(`${window.location.hostname}`.includes(".headed2"))e={domain:".headed2"}}if(g())S.A.remove(j,e);else S.A.set(j,"all",e)},children:g()?"Disable Root Extra Cookie":"Enable Root Extra Cookie"})}),(0,p.jsx)("li",{children:(0,p.jsx)("a",{href:"/admin/guide/",children:"Documentation"})}),(0,p.jsx)("li",{children:(0,p.jsx)("a",{href:"/reports/admin/exceptions",children:"Exceptions"})}),(0,p.jsx)("li",{children:(0,p.jsx)("a",{href:"/admin/training/",children:"Training"})}),(0,p.jsx)("li",{children:(0,p.jsx)("a",{href:"/admin/profiles/",children:"Profiles (old)"})}),(0,p.jsx)("li",{children:(0,p.jsx)("a",{href:"/admin/root/usagereport",children:"Usage Report"})}),(0,p.jsx)("li",{children:(0,p.jsx)("a",{href:"/admin/announcement/",children:"Manage Announcements"})}),(0,p.jsx)("li",{children:(0,p.jsx)("a",{href:"/admin/cms/",children:"Manage CMS (Old Functionality)"})}),(0,p.jsx)("li",{children:(0,p.jsx)("a",{href:"/admin/calendar/",children:"Manage Calendar Events (Old Functionality)"})})]})]})]})});var M=t(29253),z=t(54573),V=t(62473),H=t(62488),B=t(15091);function U(e,s){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);s&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,r)}return t}function _(e,s,t){return(s=function(e){var s=function(e,s){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,s||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===s?String:Number)(e)}(e,"string");return"symbol"==typeof s?s:s+""}(s))in e?Object.defineProperty(e,s,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[s]=t,e}const G=(0,A.connect)(e=>function(e){for(var s=1;s<arguments.length;s++){var t=null!=arguments[s]?arguments[s]:{};
1s%2?U(Object(t),!0).forEach(function(s){_(e,s,t[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):U(Object(t)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(t,s))})}return e}({isUserPremium:(e.authenticationState&&e.authenticationState.userProfile||{isPremium:!1}).isPremium},e.survey.adminListing),e=>({dispatch:e}))(e=>{(0,B.Ug)(i.t`Surveys`);(0,B.es)((0,V.UD)());const[s,t]=(0,l.useState)(!1),r=()=>{const r=!s;if(r)e.dispatch(O.o1.reset("survey.surveyForms.createSurveyForm"));t(r)},{listing:n}=e;return(0,p.jsxs)("div",{className:"container",children:[(0,p.jsxs)("table",{className:"table tbl",children:[(0,p.jsx)("thead",{children:(0,p.jsxs)("tr",{children:[(0,p.jsx)("th",{children:i.t`Survey Name`}),(0,p.jsx)("th",{children:i.t`Expires`}),(0,p.jsx)("th",{children:i.t`Action`})]})}),(0,p.jsx)("tbody",{children:(()=>{if(n)return n.map((s,t)=>(0,p.jsxs)("tr",{className:t%2==0?"even":"odd",children:[(0,p.jsx)("td",{children:(0,p.jsx)(C.N_,{to:`/admin/survey/edit/${s.id}`,children:s.name})}),(0,p.jsx)("td",{children:s.expires&&s.expires.toLocaleDateString()}),(0,p.jsxs)("td",{children:[(0,p.jsx)(C.N_,{to:`/admin/survey/responses/${s.id}`,className:"btn btn-sm btn-default no-style",children:i.t`Results`})," ",(0,p.jsx)("button",{className:"btn btn-sm btn-warning no-style",onClick:()=>
1e.dispatch((0,V.GA)(s.id)),children:i.t`Duplicate`})]})]},s.id));else return(0,p.jsx)("tr",{children:(0,p.jsx)("td",{colSpan:"5",className:"text-center",children:i.t`No Surveys defined`})})})()}),(0,p.jsx)("tfoot",{children:(0,p.jsx)("tr",{children:(0,p.jsx)("td",{colSpan:"5",className:"text-center",children:(0,p.jsx)("button",{className:"btn btn-submit",onClick:r,children:i.t`Add New Survey`})})})})]}),(0,p.jsxs)(M.A,{bsSize:"large",backdrop:"static",show:s,onHide:r,children:[(0,p.jsx)(M.A.Header,{closeButton:!0,children:(0,p.jsx)("h2",{children:i.t`Create Survey`})}),(0,p.jsx)(M.A.Body,{children:(0,p.jsx)(z.A,{onCancel:r,canCreateShared:!e.isUserPremium,onSave:s=>{e.dispatch((0,V.Om)(s)).then(e=>H.N.push(`/admin/survey/edit/${e.id}`))}})})]})]})});var W=t(98555),K=t(91355),Q=t(37902);function Y(e,s){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);s&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,r)}return t}function Z(e,s,t){return(s=function(e){var s=function(e,s){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,s||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===s?String:Number)(e)}(e,"string");return"symbol"==typeof s?s:s+""}(s))in e?Object.defineProperty(e,s,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[s]=t,e}const J=e=>{const{forEdit:s,selectedQuestion:t,onMoveQuestion:n,originalTitle:a,handleSurveyNameChange:o,onSelectSurveyToRename:c,onSaveQuestion:d,onSelectQuestion:h,onDeleteQuestion:u,onCancelRenameSurvey:m,onRenameSurvey:x,dispatch:j}=e,f=(0,r.g)();(0,l.useEffect)(()=>j((0,V.M6)(f.surveyId)).then(e=>{j((0,K.hL)(i.t`Surveys :: ${e.name}`))}),[f.surveyId]);if(!s)return(0,p.jsx)(Q.A,{newSiteLook:!0});else return(0,p.jsx)("div",{className:"container",children:(0,p.jsx)(W.A,{selected:s,unselectForEdit:()=>H.N.push("/admin/survey"),onMoveQuestion:n,onDeleteQuestion:u,onSelectSurveyToRename:c,selectedQuestion:t,onSelectQuestion:h,onRenameSurvey:x,onCancelRenameSurvey:m,handleSurveyNameChange:o,renameTitleActive:!!a,onSaveQuestion:d,onMoveInArray:(e,s,t,r)=>j((0,V.Dh)(e,s,t,r)),onGetModel:s=>(0,O.E1)(e.state,s),onAddToArray:(e,s)=>j((0,V.hi)(e,s)),onRemoveFromArray:(e,s,t)=>j((0,V.iI)(e,s,t))})})};J.propTypes={};J.defaultProps={};const X=(0,A.connect)(e=>function(e){for(var s=1;s<arguments.length;s++){var t=null!=arguments[s]?arguments[s]:{};s%2?Y(Object(t),!0).forEach(function(s){Z(e,s,t[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Y(Object(t)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(t,s))})}return e}({state:e},e.surveyEdit),e=>({dispatch:e,onSelectSurveyToRename:s=>{e((0,V.ib)(s))},onRenameSurvey:s=>{e((0,V.EU)(s))},handleSurveyNameChange:s=>{e((0,V.tm)(s.target.value))},onMoveQuestion:(s,t,r)=>e((0,V.s3)(s,t,r)),onSaveQuestion:(s,t)=>{e((0,V.M5)(s,t))},onSelectQuestion:s=>{e((0,V.e7)(s))},onCancelRenameSurvey:()=>{e((0,V.Z)())},onDeleteQuestion:(s,t)=>{e((0,V.KY)(s,t))}}))(J),ee=(0,A.connect)(e=>e.survey.surveyResults,e=>({dispatch:e}))(e=>{var s,t,n,a;const o=e.dispatch,[c,d]=(0,l.useState)(null),h=(0,r.g)().surveyId;(0,l.useEffect)(()=>o((0,V.p8)(h)).then(e=>{o((0,K.hL)(i.t`Surveys :: ${e.name}`))}),[h]);const u=e=>{var s;if(!e)return"";const t="function"==typeof e.value[Symbol.iterator]&&"string"!=typeof e.value,r=e=>{if(!e)return"";if("string"==typeof e)return e;if(e.hasOwnProperty("title")&&e.hasOwnProperty("url"))return(0,p.jsx)("a",{href:e.url,children:e.title});if(e.hasOwnProperty("name")&&e.hasOwnProperty("url"))return(0,p.jsx)("a",{href:e.url,children:e.hasOwnProperty("thumb")?(0,p.jsxs)("span",{children:[(0,p.jsx)("img",{src:e.thumb,alt:e.name}),(0,p.jsx)("br",{}),e.name]}):e.name});if(e.hasOwnProperty("title"))return e.title;if(e.hasOwnProperty("name"))return e.name;else return""};return t?null===(s=e.value)||void 0===s?void 0:s.map(e=>r(e)).join(", "):r(e.value)};return(0,p.jsxs)("div",{className:"container",id:"surveyresult",children:[(0,p.jsxs)("div",{children:[(0,p.jsx)("h3",{children:i.t`Question Summaries`}),null===(s=e.multipleChoiceSummary)||void 0===s?void 0:s.map(e=>{var s;return(0,p.jsxs)("div",{className:"multisummary col-sm-6",children:[(0,p.jsx)("b",{children:(0,p.jsx)("div",{className:"quest",children:e.question.text})}),(0,p.jsx)("table",{className:"noround table table-striped",children:(0,p.jsx)("tbody",{children:null===(s=e.responses)||void 0===s?void 0:s.map((e,s)=>(0,p.jsxs)("tr",{children:[(0,p.jsx)("td",{className:"val",children:e.hasOwnProperty("url")?(0,p.jsx)("a",{href:e.url,children:e.name}):e.name}),(0,p.jsx)("td",{className:"cnt",children:e.responseCount})]},`ms-${s}`))})})]},`mqid-${e.question.id}`)}),null===(t=e.ratingSummary)||void 0===t?void 0:t.map(e=>{var s;return(0,p.jsxs)("div",{className:"ratingsummary col-sm-6",children:[(0,p.jsx)("b",{children:(0,p.jsx)("div",{className:"quest",children:e.question.text})}),(0,p.jsx)("table",{className:"noround table table-striped",children:(0,p.jsx)("tbody",{children:null===(s=e.responses)||void 0===s?void 0:s.map((e,s)=>(0,p.jsxs)("tr",{children:[(0,p.jsx)("td",{className:"val",children:e.rating}),(0,p.jsx)("td",{className:"cnt",children:e.responseCount})]},`rq-${s}`))})})]},`rqid-${e.question.id}`)})]}),(0,p.jsxs)("div",{className:"clear",children:[(0,p.jsx)("h3",{children:i.t`Individual Responses`}),(0,p.jsx)("p",{children:i.t`Click a user to view their responses`}),(0,p.jsxs)("div",{className:"list container",id:"F151360556249FWCXJ4",children:[(0,p.jsxs)("table",{className:"tbl table tbl-striped ",children:[(0,p.jsx)("thead",{children:(0,p.jsxs)("tr",{children:[(0,p.jsx)("th",{className:"list-header column-0 user",children:(0,p.jsx)("a",{href:"javascript://",children:i.t`User`})}),(0,p.jsx)("th",{className:"list-header column-1 profile",children:(0,p.jsx)("a",{href:"javascript://",children:i.t`Profile`})}),(0,p.jsx)("th",{className:"list-header column-2 date",children:(0,p.jsx)("a",{href:"javascript://",children:i.t`Date`})})]})}),(0,p.jsx)("tbody",{children:null===(n=e.responses)||void 0===n?void 0:n.sort((e,s)=>{const t=s.completed.localeCompare(e.completed);return 0===t?s.id-e.id:t}).map((e,s)=>(0,p.jsxs)("tr",{className:"list-item "+(s%2==0?"even":"odd"),children:[(0,p.jsx)("td",{className:"list-cell",children:(0,p.jsx)("a",{href:"javascript://",onClick:()=>d(e),children:e.user?e.user.name:i.t`anonymous`})}),(0,p.jsx)("td",{className:"list-cell"}),(0,p.jsx)("td",{className:"list-cell",children:new Date(e.completed).toLocaleDateString()})]},`user-response-${e.id}`))}),(0,p.jsx)("tfoot",{children:(0,p.jsx)("tr",{children:(0,p.jsx)("th",{colSpan:"3",className:"list-footer",children:(0,p.jsx)("div",{className:"actions",style:{padding:"5px 0"},children:(0,p.jsx)("a",{href:`/api/v1/survey/${h}/responses/output.xls`,title:i.t`Export as Microsoft Excel (XLS) Format`,className:"xls pull-right",children:(0,p.jsx)("span",{children:i.t`Export to Microsoft Excel`})})})})})})]}),(0,p.jsxs)(M.A,{show:!!c,onHide:()=>d(null),dialogClassName:"fullscreen-modal",children:[(0,p.jsxs)(M.A.Header,{style:{color:"white",fontWeight:"bold"},children:[(0,p.jsx)("button",{type:"button",className:"close","aria-label":"Close",onClick:()=>d(null),children:(0,p.jsx)("span",{"aria-hidden":"true",children:"×"})}),(0,p.jsx)(M.A.Title,{children:(()=>{const e=c&&c.user?c.user.name:i.t`Anonymous User`;return i.t`Survey Results for ${e}`})()})]}),(0,p.jsx)(M.A.Body,{children:(0,p.jsx)("div",{id:"responses",children:(0,p.jsxs)("table",{className:"table table-striped",children:[(0,p.jsx)("thead",{children:(0,p.jsxs)("tr",{children:[(0,p.jsx)("th",{children:i.t`Question`}),(0,p.jsx)("th",{children:i.t`Response`})]})}),(0,p.jsx)("tbody",{children:c&&(null===(a=e.questions)||void 0===a?void 0:a.map(e=>{const s=c.responses.find(s=>s.questionId===e.id);return(0,p.jsxs)("tr",{className:"question",children:[(0,p.jsx)("td",{children:(0,p.jsx)("span",{className:"questiontext",children:e.text})}),(0,p.jsx)("td",{children:(0,p.jsx)("span",{className:"userresponse",children:u(s)})})]},`${c.id}-${e.id}`)}))})]})})})]})]})]})]})});var se=t(40950);function te(e){return(0,p.jsx)(r.qh,{path:"/admin/survey",children:(0,p.jsx)(se.A,{name:i.t`Surveys`,adminOnly:!0,includePremium:!0,includeManager:!0,includeSc
1hoolAdmin:!0,children:(0,p.jsxs)(r.dO,{children:[(0,p.jsx)(r.qh,{path:"/admin/survey",exact:!0,children:(0,p.jsx)(G,{})}),(0,p.jsx)(r.qh,{path:"/admin/survey/edit/:surveyId",children:(0,p.jsx)(X,{})}),(0,p.jsx)(r.qh,{path:"/admin/survey/responses/:surveyId",children:(0,p.jsx)(ee,{})})]})})})}te.propTypes={};te.defaultProps={};const re=te;var ie=t(26110),ne=t(46839),le=t(45852),ae=t(35346),oe=t(41238),ce=t(4750),de=t(27887);function he(e,s){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);s&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,r)}return t}function ue(e){for(var s=1;s<arguments.length;s++){var t=null!=arguments[s]?arguments[s]:{};s%2?he(Object(t),!0).forEach(function(s){me(e,s,t[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):he(Object(t)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(t,s))})}return e}function me(e,s,t){return(s=function(e){var s=function(e,s){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,s||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===s?String:Number)(e)}(e,"string");return"symbol"==typeof s?s:s+""}(s))in e?Object.defineProperty(e,s,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[s]=t,e}const pe=[i.t`Seniors`,i.t`Juniors`,i.t`Sophomores`,i.t`Freshmen`,i.t`8th Graders`,i.t`7th Graders`,i.t`6th Graders`,i.t`5th Graders`,i.t`4th Graders`,i.t`3rd Graders`,i.t`2nd Graders`,i.t`1st Graders`,i.t`Kindergarteners`],xe=e=>{const s=dynamicValues.seniorYear;if(!Number.isInteger(e)||e<1900||e>s+19)return null;if(e>=s&&e-s<pe.length){const t=pe[e-s];return i.t`Class of ${e} (${t})`}return i.t`Class of ${e}`},je=e=>{const s=dynamicValues.seniorYear;if(!Number.isInteger(e)||e<1900||e>s+19)return null;if(e>=s&&e-s<pe.length){return`${pe[e-s]}: ${e}`}return`${e}`},fe=(()=>{const e=dynamicValues.seniorYear;let s=[e];for(let t=1;t<=12;t++)s=[...s,e+t];return s.map(e=>({label:xe(e),value:e}))})(),ge={border:"none",backgroundColor:"transparent"},ve=()=>{const e=(0,A.useDispatch)(),s=s=>e((0,oe.e7)(s));(0,l.useEffect)(()=>{var e;if(null!==(e=dynamicValues.schools)&&void 0!==e&&e.length)s("")},[dynamicValues.schools]);const t=(0,A.useSelector)(e=>ue(ue({},e.admin.users.list.search.criteria),{},{selections:e.admin.users.list.search.criteria.selections.map(e=>({name:e.name,value:e}))})),r=(0,A.useSelector)(e=>e.admin.users.list.search.suggestions.map(e=>({name:e.name,value:e}))),n=s=>e((0,de.RY)(s)),a=(s,t)=>e((0,de.Al)(s,t)),o=(0,A.useSelector)(e=>{var s;null===(s=e.profileCommon.schoolSuggestions.result)||void 0===s||s.filter(e=>"district"!==e.type).map(e=>({label:e.label,value:ue(ue({},e),{},{id:e.value,type:e.type,name:e.label})}));return{schoolSuggestions:o}});return(0,p.jsxs)("div",{className:"filter",style:{marginBottom:".25em"},children:[(0,p.jsxs)("div",{className:"row",style:{marginBottom:".5em"},children:[(0,p.jsx)("div",{className:"col-sm-8",children:(0,p.jsx)(ie.MultiSelect,{placeholder:i.t`Users & Groups`,theme:"bootstrap3",hideResetButton:!0,style:{width:"100%"},values:t.selections.map(e=>({label:e.name,value:e.value})),options:r.map(e=>({label:e.name,value:e.value})),onSearchChange:s=>{return t=s,e((0,de.yB)(t));var t},onValuesChange:s=>{t=s.map(e=>e.value),e((0,de.Xy)(t));var t},renderOption:e=>{if("USER"===e.value.kind)return(0,p.jsxs)("div",{style:{padding:"1em"},children:[(0,p.jsx)("b",{children:i.t`User`}),": ",e.value.name]});else return(0,p.jsxs)("div",{style:{padding:"1em"},children:[(0,p.jsx)("b",{children:i.t`Group`}),": ",e.value.name]})},renderValue:e=>{if("USER"===e.value.kind)return(0,p.jsxs)("div",{className:"simple-value",children:[(0,p.jsxs)("span",{children:[(0,p.jsx)("img",{alt:i.t`Avatar for ${e.value.name}`,"aria-hidden":!0,src:ne,className:"avatar"})," ",e.value.name]}),(0,p.jsx)("button",{style:ge,onClick:s=>{n(e.value);s.target.blur()},children:(0,p.jsx)("img",{alt:i.t`Remove Selection of ${e.value.name}`,src:le,style:{height:"15px",marginLeft:"4px"}})})]});else return(0,p.jsxs)("div",{className:"simple-value",children:[(0,p.jsxs)("span",{children:[(0,p.jsx)("img",{src:ae,className:"avatar"})," ",e.value.name]}),(0,p.jsx)("button",{style:ge,onClick:s=>{n(e.value);s.target.blur()},children:(0,p.jsx)("img",{alt:i.t`Remove Selection of ${e.value.name}`,src:le,style:{height:"15px",marginLeft:"4px"}})})]})},renderNoResultsFound:(e,s)=>{const t=s&&s.trim();return(0,p.jsx)("div",{className:"no-results-found",children:function(){if(0===t.length)return i.t`Start typing to find matches`;else return i.t`No results found`}()})}})}),(0,p.jsx)("div",{className:"col-md-4 col-sm-4",children:(0,p.jsx)(ie.MultiSelect,{theme:"bootstrap3",hideResetButton:!0,style:{width:"100%"},placeholder:i.t`All Roles`,values:t.users.map(e=>{switch(e){case 1:return{label:i.t`Users`,value:1};case 2:return{label:i.t`Managers`,value:2};case 3:return{label:i.t`School Administrators`,value:3};case 4:return{label:i.t`Administrators`,value:4}}}),onValuesChange:e=>{a("users",e.map(e=>e.value))},renderValue:s=>(0,p.jsxs)("div",{className:"simple-value",children:[(0,p.jsx)("span",{children:s.label}),(0,p.jsx)("button",{style:ge,onClick:t=>{r=s.value,e((0,de.k2)(r));var r;t.target.blur()},children:(0,p.jsx)("img",{alt:i.t`Remove Selection of ${s.value.name}`,src:le,style:{height:"15px",marginLeft:"4px"}})})]}),options:[{label:i.t`Users`,value:1},{label:i.t`Managers`,value:2},{label:i.t`School Administrators`,value:3},{label:i.t`Administrators`,value:4}]})})]}),(0,p.jsxs)("div",{className:"row",children:[(0,p.jsx)("div",{className:"col-lg-2 col-sm-3",children:(0,p.jsx)(ie.SimpleSelect,{style:{width:"100%"},hideResetButton:!0,placeholder:i.t`Sort By`,theme:"bootstrap3",renderValue:e=>(0,p.jsx)("div",{style:{fontSize:".8rem",whiteSpace:"nowrap"},children:e.label}),value:function(){switch(t.sort){case 1:return{label:i.t`Sort: Created`,value:1};case 4:return{label:i.t`Sort: Last Login`,value:4};case 2:return{label:i.t`Sort: User Name`,value:2};case 3:return{label:i.t`Sort: Last Name`,value:3}}}(),onValueChange:e=>a("sort",e.value),options:[{label:i.t`Sort By: Created`,value:1},{label:i.t`Sort By: User Name`,value:2},{label:i.t`Sort By: Last Name`,value:3}]})}),(0,p.jsx)("div",{className:"col-lg-6 col-md-5 col-sm-5",children:(0,p.jsx)(ie.MultiSelect,{style:{width:"100%"},theme:"bootstrap3",hideResetButton:!0,placeholder:i.t`All Schools`,options:o,values:t.schools.map(e=>({label:e.name,value:e})),renderValue:s=>(0,p.jsxs)("div",{className:"simple-value",children:[(0,p.jsx)("span",{children:s.label}),(0,p.jsx)("button",{style:ge,onClick:t=>{r=s.value,e((0,de.Fg)(r));var r;t.target.blur()},children:(0,p.jsx)("img",{alt:i.t`Remove Selection of ${s.value.name}`,src:le,style:{height:"15px",marginLeft:"4px"}})})]}),onValuesChange:e=>{a("schools",e.map(e=>e.value))},onSearchChange:s})}),(0,p.jsx)("div",{className:"col-md-4 col-sm-4",children:(0,p.jsx)(ie.MultiSelect,{theme:"bootstrap3",style:{width:"100%"},hideResetButton:!0,placeholder:i.t`All Graduation Years`,values:t.graduation.map(e=>({label:xe(e)||e,value:e})),renderValue:s=>(0,p.jsxs)("div",{className:"simple-value",children:[(0,p.jsx)("span",{children:je(s.value)}),(0,p.jsx)("a",{href:"javascript:void(0)",onClick:t=>{r=s.value,e((0,de.OA)(r));var r;t.target.blur()},children:(0,p.jsx)("img",{alt:i.t`Remove Selection of ${item.value.name}`,src:le,style:{height:"15px",marginLeft:"4px"}})})]}),onValuesChange:e=>{a("graduation",e.map(e=>e.value))},uid:e=>e.value,options:fe,createFromSearch:(e,s,t)=>{if(!ce.ZY(t))return null;if(0===[...e,...s].filter(e=>-1!==e.label.toLowerCase().indexOf(t.toLowerCase())).length){const e=Number(t),s=xe(e);if(s)return{label:s,value:e}}}})})]})]})};var be=t(30798),ye=t(57139),Ne=t(80677),we=t(98935),Ae=t(34843);const Oe=({user:e,reportId:s,clearProfile:t,saveAction:r})=>{const n=e?`${e.firstName||""} ${e.lastName||""}
1`:i.t`n/a`,l=e?e.ssoName||e.userName||e.name:i.t`n/a`;return(0,p.jsxs)(M.A,{show:!!e,onHide:t,backdrop:!1,dialogClassName:"fullscreen-modal",children:[(0,p.jsxs)(M.A.Header,{style:{color:"white",fontWeight:"bold"},children:[(0,p.jsx)("button",{type:"button",className:"close","aria-label":"Close",onClick:t,children:(0,p.jsx)("span",{"aria-hidden":"true",children:"×"})}),(0,p.jsx)(M.A.Title,{children:e&&(0,p.jsx)("span",{children:i.t`User Profile for ${n} (${l})`})}),(0,p.jsxs)("div",{className:"modal-actions",children:[(0,p.jsx)(be.A,{placement:"bottom",overlay:(0,p.jsx)(ye.A,{placement:"bottom",id:"tooltip",children:i.t`Click here to open a printable PDF of this report`}),children:(0,p.jsx)("a",{href:"javascript:void(0)",onClick:e=>{e.preventDefault();document.getElementById("userReportPrintForm").submit()},children:(0,p.jsx)("i",{className:"print boxed-icon"})})}),(t=>{if(dynamicValues&&(null!==(t=dynamicValues.userProfile)&&void 0!==t&&t.isRoot||dynamicValues.isSubscriber))return(0,p.jsx)(be.A,{placement:"bottom",overlay:(0,p.jsx)(ye.A,{placement:"bottom",id:"tooltip",children:i.t`Click here to save the PDF to the user's files`}),children:(0,p.jsx)("a",{href:"javascript:void(0)",onClick:t=>{t.preventDefault();r(s,e)},children:(0,p.jsx)("i",{className:"save boxed-icon"})})})})()]})]}),(0,p.jsx)(M.A.Body,{children:(()=>{switch(s){case 3:return(0,p.jsx)(Ae.A,{userId:e&&e.id,hideControls:!0});case 2:return(0,p.jsx)(we.A,{userId:e&&e.id});case 1:return(0,p.jsx)(Ne.A,{userId:e&&e.id});default:return(0,p.jsx)("div",{})}})()})]})};var Se=t(16210);var Ce=t(87818),Pe=t(68686),ke=t(18673);var De=t(83856),qe=t(10253),Fe=t(1726),Re=t(5021),Te=t(30532);function Ee(e,s){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);s&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,r)}return t}function Le(e){for(var s=1;s<arguments.length;s++){var t=null!=arguments[s]?arguments[s]:{};s%2?Ee(Object(t),!0).forEach(function(s){Ie(e,s,t[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ee(Object(t)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(t,s))})}return e}function Ie(e,s,t){return(s=function(e){var s=function(e,s){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,s||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===s?String:Number)(e)}(e,"string");return"symbol"==typeof s?s:s+""}(s))in e?Object.defineProperty(e,s,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[s]=t,e}class Me extends l.Component{constructor(e){super(e);this.state={lastName:this.props.username,lastNameResp:!1}}render(){const e=e=>{const s=this.state,t=s.lastName,r=s.lastNameResp;if(e===t)return Promise.resolve(r);else return ce.yS(e).then(s=>{this.setState(t=>Le(Le({},t),{},{lastNameResp:s,lastName:e}));return s})},s=this.props.model,t=this.props.username,r=!!t&&!t.startsWith("___");return(0,p.jsx)("div",{children:(0,p.jsx)(k.A,{model:s,validate:{confirm:[ce.YW({field:"confirm",against:"password"})]},onSubmit:e=>this.props.onResetPassword(e),children:t=>(0,p.jsxs)("div",{children:[(0,p.jsx)(D.A,{model:`${s}.username`,form:t,largeTextInput:!0,validate:[ce.Bp({length:4}),e],label:i.t`User Name`,required:!r,readOnly:r}),(0,p.jsx)(D.A,{model:`${s}.password`,form:t,largeTextInput:!0,type:"password",label:i.t`Password`,required:!0,validate:[ce.Bp({length:6})]}),(0,p.jsx)(D.A,{model:`${s}.confirm`,form:t,largeTextInput:!0,type:"password",label:i.t`Confirm Password`,required:!0}),(0,p.jsx)(P.A,{className:"btn btn-success",loading:this.props.request.loading,error:this.props.request.error,success:(0,q.L$)(this.props.request)&&i.t`Updated`,children:i.t`Change Password`})]})})})}}const $e=(0,A.connect)(e=>({resetPassword:e.resetPassword}))(Me),ze=({user:e,updateRequest:s,clearProfile:t,resetPasswordAction:r,onCancel:n})=>(0,p.jsxs)(M.A,{show:!!e,onHide:t,dialogClassName:"fullscreen-modal",children:[(0,p.jsxs)(M.A.Header,{style:{color:"white",fontWeight:"bold"},children:[(0,p.jsx)("button",{type:"button",className:"close","aria-label":i.t`Close`,onClick:n,children:(0,p.jsx)("span",{"aria-hidden":"true",children:"×"})}),(0,p.jsx)(M.A.Title,{children:e&&(0,p.jsxs)("span",{children:["User Name / Password for ",e.firstName||""," ",e.lastName||""," (",e.ssoName||e.name,")"]})})]}),(0,p.jsx)(M.A.Body,{children:(0,p.jsx)($e,{model:"admin.users.passwordReset.form",username:e&&e.name,request:s,onResetPassword:s=>{r(e.id,s)}})})]});var Ve=t(26629),He=t(45711),Be=t(71720);class Ue extends l.Component{render(){const{title:e,user:s,groupFn:t,searchFn:r,searchResultsFn:n,addFn:l,removeFn:a}=this.props,o=this;return(0,p.jsx)(ie.MultiSelect,{className:"groupselect",ref:"select",style:{width:"100%"},placeholder:e,theme:"bootstrap3",hideResetButton:!0,values:t(s).map(e=>({label:e.name,value:e})),options:(n(s)||[]).map(e=>({label:e.description,value:e.group})),onSearchChange:e=>r({userId:s.id,term:e}),onFocus:e=>r({userId:s.id,term:""}),createFromSearch:(e,t,r)=>{t.map(function(e){return e.label.toLowerCase()});const i=r.trim(),n=i.toLowerCase(),l=(s.groupSearchResults||[]).find(e=>e.group.name.toLowerCase()===n);if(i.length<2||l)return null;else return{label:i,value:{name:i}}},onValuesChange:e=>{const r=t(s);r.filter(s=>-1===e.findIndex(e=>
1s.id===e.value.id)).forEach(e=>{a({groupId:e.id,userId:s.id})});e.forEach(e=>{if(!e.value.id||-1===r.findIndex(s=>s.id===e.value.id))l({groupId:e.value.id,groupName:e.value.name,userId:s.id}).then(()=>{o.refs.select.blur()})})},renderOption:s=>{if(!s.value.id)return(0,p.jsxs)("div",{style:{padding:"1em"},children:[`${e} `," ",(0,p.jsx)("b",{children:"new group"}),": ",s.value.name]});else return(0,p.jsxs)("div",{style:{padding:"1em"},children:[`${e} `," group: ",s.value.name]})},renderValue:e=>{if(!e.value.id)return(0,p.jsx)("i",{className:"fal fa-spinner fa-spin"});else return(0,p.jsx)("div",{className:"simple-value",children:(0,p.jsx)("span",{children:e.value.name})})},renderNoResultsFound:(e,s)=>{const t=s.trim(),r=t.toLowerCase();return(0,p.jsx)("div",{className:"no-results-found",children:function(){if(0===t.length)return i.t`Start typing to find, or create, a group`;if(-1!==e.map(e=>e.label.toLowerCase()).indexOf(r))return i.t`User is already assigned to ${s}`;else return i.t`No results found`}()})}})}}const _e=({user:e,searchGroups:s,addGroupOwner:t,removeGroupOwner:r})=>(0,p.jsx)(Ue,{title:i.t`Owner of`,user:e,groupFn:e=>e.groupsOwned,searchFn:s,searchResultsFn:e=>e.groupSearchResults,addFn:t,removeFn:r}),Ge=({user:e,searchGroups:s,addGroupMember:t,removeGroupMember:r})=>(0,p.jsx)(Ue,{title:i.t`Member of`,user:e,groupFn:e=>e.groups,searchFn:s,searchResultsFn:e=>e.groupSearchResults,addFn:t,removeFn:r}),We=(0,A.connect)(e=>({userProfile:e.authenticationState.userProfile}),e=>({dispatch:e}))(({dispatch:e,user:s,searchGroups:t,openMessageDialog:r,addGroupMember:n,removeGroupMember:l,onOpenFileWizard:a,addGroupOwner:o,removeGroupOwner:c,passwordReset:d,viewProfile:h,editProfile:u,viewClusterReport:m,viewCourseSchedule:x,userProfile:j})=>{var f,g,v;const b=S.A.get("root_extra");return(0,p.jsxs)("div",{className:"user-card",style:{height:"100px",padding:"0.5em",marginRight:"5px",borderBottom:"1px solid #ccc"},children:[(0,p.jsx)("div",{className:"media-left hidden-xs",children:(0,p.jsx)("a",{href:"#",children:(0,p.jsx)("img",{className:"media-object img-responsive img-circle","aria-hidden":"true",alt:i.t`Avatar or image of user displayed in row`,style:{width:"75px",height:"75px",maxWidth:"75px",maxHeight:"75px",marginRight:"25px"},src:s.image||Be,onError:e=>e.target.src=Be})})}),(0,p.jsxs)("div",{className:"media-body",style:{overflow:"visible"},children:[(0,p.jsxs)("h4",{className:"media-heading",style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",height:"1.2em"},children:[s.firstName||""," ",s.lastName||""," (",s.ssoName||s.name,")"]}),(0,p.jsxs)("div",{className:"row",children:[(0,p.jsxs)("div",{className:"col-sm-4 col-md-4 col-xs-12",children:[(0,p.jsxs)("div",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",height:"1.2em"},children:[i.t`School:`,s.publicSchool&&s.publicSchool.name||s.privateSchool&&s.privateSchool.name||"N/A"]}),(0,p.jsx)("span",{className:"pull-left",children:(0,p.jsxs)("div",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",height:"1.2em"},children:[i.t`Created:`," ",s.created?(0,He.A)(new Date(s.created),new Date,{addSuffix:!0}):"N/A"]})})]}),(0,p.jsx)("div",{className:"col-sm-8 col-md-8 hidden-xs",children:((e,r)=>{if(null!==(r=e.userProfile)&&void 0!==r&&r.hasSchoolAdmin)return(0,p.jsx)("div",{children:s.root||s.manager||s.admin||s.schoolAdmin?(0,p.jsx)(_e,{user:s,searchGroups:t,addGroupOwner:o,removeGroupOwner:c}):(0,p.jsx)(Ge,{user:s,searchGroups:t,addGroupMember:n,removeGroupMember:l})})})(dynamicValues)})]}),(0,p.jsx)("br",{className:"clear"})]}),(0,p.jsxs)("div",{className:"media-right text-right",style:{minWidth:"110px"},children:[(0,p.jsx)("h4",{children:(0,p.jsx)("span",{className:"pull-right",children:s.admin?i.t`Administrator`:s.schoolAdmin?i.t`School Admin`:!dynamicValues.isSubscriber&&s.freeNavigator?s.premium?"PEA":"FEA":s.manager?i.t`Manager`:i.t`User`})}),(0,p.jsx)("div",{className:"pull-right",style:{width:"110px",marginTop:"7px",whiteSpace:"nowrap",position:"relative"},children:(0,p.jsxs)("div",{className:"btn-group",children:[(0,p.jsxs)("button",{type:"button",className:"btn no-style btn-default dropdown-toggle","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",children:[(0,p.jsx)("i",{className:"useraction fa-lg","aria-hidden":"true"})," ",i.t`Actions`,(0,p.jsx)("span",{className:"caret",style:{marginLeft:"4px",marginRight:"5px"}}),(0,p.jsx)("span",{className:"sr-only",children:i.t`Toggle Dropdown`})]}),(0,p.jsx)("div",{className:"dropdown-menu dropdown-menu-right",style:{backgroundColor:"#f6f6f6"},children:(0,p.jsxs)("div",{className:"container-fluid",style:{minWidth:"401px"},children:[(0,p.jsxs)("ul",{className:"col-sm-6",style:{listStyle:"none"},children:[(0,p.jsx)("li",{className:"dropdown-header",style:{fontWeight:"bold",color:"black",fontSize:"1.2em",paddingLeft:"0",borderBottom:"1px solid #ddd",marginBottom:"5px"},children:i.t`Interact`}),(0,p.jsx)("li",{className:"clear",style:{paddingLeft:"0"},children:(0,p.jsxs)("a",{label:"Edit",href:"javascript:void(0)",onClick:()=>{u(s.id)},children:[(0,p.jsx)("i",{className:"edit"})," ",i.t`Edit User`]})}),(0,p.jsx)("li",{className:"clear",style:{paddingLeft:"0"},children:(0,p.jsxs)("a",{label:"User Name / Password",onClick:()=>{d(s)},children:[(0,p.jsx)("i",{className:"password"})," ",i.t`User Name / Password`]})}),((null===(f=dynamicValues.userProfile)||void 0===f?void 0:f.isRoot)||dynamicValues.isSubscriber)&&(0,p.jsx)("li",{className:"clear",style:{paddingLeft:"0"},children:(0,p.jsxs)("a",{label:"Manage Files",onClick:()=>{a(s)},children:[(0,p.jsx)("i",{className:"save"})," ",i.t`Manage Files`]})}),((null===(g=dynamicValues.userProfile)||void 0===g?void 0:g.isRoot)||dynamicValues.isSubscriber)&&(0,p.jsx)("li",{className:"clear",style:{paddingLeft:"0"},children:(0,p.jsxs)("a",{label:"Download ZIP Archive",target:"_blank",href:`/api/v1/user/${s.id}/files/archive`,rel:"noreferrer",children:[(0,p.jsx)("i",{className:"save"})," ",i.t`Download ZIP Archive`]})}),(0,p.jsx)("li",{className:"clear",style:{paddingLeft:"0"},children:(0,p.jsxs)("a",{label:"Send Message",href:"javascript:void(0)",onClick:()=>{r(s)},children:[(0,p.jsx)("i",{className:"message"})," ",i.t`Send Message`]})})]}),(0,p.jsxs)("ul",{className:"col-sm-6",style:{listStyle:"none"},children:[(0,p.jsx)("li",{className:"dropdown-header",style:{fontWeight:"bold",color:"black",fontSize:"1.2em",paddingLeft:"0",borderBottom:"1px solid #ddd",marginBottom:"5px"},children:i.t`Report`}),(0,p.jsx)("li",{className:"clear",style:{paddingLeft:"0"},children:(0,p.jsxs)("a",{label:"Profile",href:"javascript:void(0)",onClick:()=>{h(s.id)},children:[(0,p.jsx)("i",{className:"report"})," ",i.t`View Summary Report`]})}),(0,p.jsx)("li",{className:"clear",style:{paddingLeft:"0"},children:(0,p.jsxs)("a",{label:"Cluster Report",href:"javascript:void(0)",onClick:()=>{m(s.id)},children:[(0,p.jsx)("i",{className:"report"})," ",i.t`View Cluster Report`]})}),(0,p.jsx)("li",{className:"clear",style:{paddingLeft:"0"},children:(0,p.jsxs)("a",{label:"Course Schedule",href:"javascript:void(0)",onClick:()=>{x(s.id)},children:[(0,p.jsx)("i",{className:"report"})," ",i.t`View Course Schedule`]})})]}),(0,p.jsx)("div",{className:"col-xs-12",children:(0,p.jsxs)("ul",{style:{listStyle:"none",padding:"0"},children:[(j.hasSchoolAdmin||s.groups.find(e=>
1e.defaultFor===j.id))&&(0,p.jsx)("li",{className:"divider"}),s.groups.find(e=>e.defaultFor===j.id)&&(0,p.jsx)("li",{style:{paddingLeft:"0",marginLeft:"0"},children:(0,p.jsxs)("a",{className:"clear pull-left",style:{color:"maroon"},href:"javascript:void(0)",onClick:()=>{e((0,de.I9)({user:s,scope:"management"}));H.N.push("/admin/users/remove")},children:[(0,p.jsx)("i",{className:"fal fa-user-times"})," ",i.t`Remove User From Management`]})}),j.hasSchoolAdmin&&(0,p.jsx)("li",{style:{paddingLeft:"0",marginLeft:"0"},children:(0,p.jsxs)("a",{className:"clear pull-left",style:{color:"maroon"},href:"javascript:void(0)",onClick:()=>{e((0,de.I9)({user:s,scope:"site"}));H.N.push("/admin/users/remove")},children:[(0,p.jsx)("i",{className:"delete"})," ",i.t`Remove User From Site`]})})]})}),(null===(v=dynamicValues.userProfile)||void 0===v?void 0:v.isRoot)&&"all"===b&&(0,p.jsx)("div",{children:(0,p.jsxs)("ul",{style:{listStyle:"none",padding:"0"},children:[(0,p.jsx)("li",{className:"divider col-xs-12"}),(0,p.jsx)("li",{className:"col-xs-4",children:(0,p.jsxs)("a",{className:"clear pull-left btn btn-default btn-sm no-style",style:{color:"red"},onClick:()=>{e((0,de.I9)({user:s,scope:"delete"}));H.N.push("/admin/users/remove")},children:[(0,p.jsx)("i",{className:"times"})," ","DELETE"]})}),(0,p.jsx)("li",{className:"col-xs-4",children:(0,p.jsxs)("a",{className:"clear pull-right btn btn-default btn-sm no-style",style:{color:"red"},onClick:()=>{window.location.href=`/api/v1/user/changeLoginTo/${s.id}`},children:[(0,p.jsx)("i",{className:"swapitem"})," ","SIGN IN"]})}),(0,p.jsx)("li",{className:"col-xs-4",children:(0,p.jsxs)("a",{className:"clear pull-right btn btn-default btn-sm no-style",style:{color:"red"},onClick:()=>{e((0,de.lC)(s));H.N.push("/admin/users/combine")},children:[(0,p.jsx)("i",{className:"useraction"})," ","MERGE"]})})]})})]})})]})})]})]})});function Ke(e,s){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);s&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,r)}return t}function Qe(e){for(var s=1;s<arguments.length;s++){var t=null!=arguments[s]?arguments[s]:{};s%2?Ke(Object(t),!0).forEach(function(s){Ye(e,s,t[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ke(Object(t)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(t,s))})}return e}function Ye(e,s,t){return(s=function(e){var s=function(e,s){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,s||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===s?String:Number)(e)}(e,"string");return"symbol"==typeof s?s:s+""}(s))in e?Object.defineProperty(e,s,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[s]=t,e}class Ze extends l.Component{constructor(e){super(e);this.state={top:0,bottom:0}}rowRenderer({index:e,isScrolling:s,isVisible:t,key:r,parent:i,style:n}){const{searchGroups:l,viewProfile:a,editProfile:o,addGroupMember:c,removeGroupMember:d,viewClusterReport:h,viewCourseSchedule:u,addGroupOwner:m,removeGroupOwner:x,openMessageDialog:j,onOpenFileWizard:f,openPasswordReset:g,users:v}=this.props;if(e<v.length){const s=v[e];return(0,p.jsx)("div",{style:n,className:t&&e>this.state.top+(this.state.bottom-this.state.top)/2?"dropup":"",children:(0,p.jsx)(We,{user:s,onOpenFileWizard:f,openMessageDialog:j,searchGroups:l,viewProfile:a,editProfile:o,viewCourseSchedule:u,viewClusterReport:h,addGroupMember:c,removeGroupMember:d,addGroupOwner:m,passwordReset:g,removeGroupOwner:x})},r)}return(0,p.jsx)("div",{})}isRowLoaded({index:e}){const{users:s}=this.props;return s.length>e}loadMoreRows({startIndex:e,stopIndex:s}){const{loadMoreUsers:t}=this.props;return t(e,s)}render(){const{users:e,renderTrigger:s}=this.props,t=e.length;return(0,p.jsxs)("div",{className:"user-scroll-list",style:{minHeight:"30vh",height:"calc(100vh - 430px)",focus:"none"},id:"resizeComponent",children:[(0,p.jsx)("style",{type:"text/css",children:"div.user-scroll-list .ReactVirtualized__Grid__innerScrollC
1ontainer,\n                     div.user-scroll-list  .ReactVirtualized__List { overflow: visible !important}\n                     .groupselect .react-selectize-search-field-and-selected-values { height: 36px; overflow: auto }"}),(0,p.jsx)(Ve.t$,{disableHeight:!0,children:({width:e})=>(0,p.jsx)(Ve.wK,{isRowLoaded:e=>this.isRowLoaded(e),loadMoreRows:e=>this.loadMoreRows(e),minimumBatchSize:250,rowCount:this.props.resultCount,threshold:50,children:({onRowsRendered:r,registerChild:i})=>(0,p.jsx)(Ve.PG,{children:({height:n,isScrolling:l,onChildScroll:a,scrollTop:o})=>(0,p.jsx)(Ve.B8,{width:e,height:n,autoHeight:!0,isScrolling:l,onScroll:a,scrollTop:o,style:{outline:"none"},overscanRowCount:5,rowCount:t,rowHeight:100,rowRenderer:this.rowRenderer.bind(this),onRowsRendered:e=>{const{startIndex:s,stopIndex:t}=e;this.setState(Qe(Qe({},this.state),{},{top:s,bottom:t}));r(e)},ref:i,renderTrigger:s})})})})]})}}var Je=t(56130),Xe=t(9257),es=t(3885);const ss=({recentGroups:e,handleGroupSelection:s,selectReport:t,resultCount:r,isPremium:n,messageUsers:l,quota:a})=>{const o=a&&a.usage&&a.usage/a.limit*100||0;let c="success";if(o>75)c="danger";else if(o>1)c="warning";return(0,p.jsx)("div",{id:"actionbar",children:(0,p.jsxs)("div",{className:"row",children:[(0,p.jsx)("div",{className:"col-xs-12 col-md-3 col-lg-4",children:(0,p.jsx)(es.A,{progress:o,isPremium:n,quota:a,noQuotaContent:(0,p.jsxs)("h3",{style:{marginBottom:"0",lineHeight:"50px"},className:"section-heading",children:[(0,p.jsx)("img",{src:ae,alt:i.t`Manage Groups icon`,style:{height:"50px",float:"left",marginRight:"5px"}})," ",i.t`Manage Users`]})})}),(0,p.jsxs)("div",{className:"col-xs-12 col-md-9 col-lg-8",children:[(0,p.jsxs)(C.N_,{to:"/admin/users/help",style:{marginLeft:"10px",color:"white"},className:"action-icons btn btn-primary small pull-right",children:[(0,p.jsx)("i",{style:{color:"white"},className:"help fa-lg"})," ",i.t`Help`]}),(0,p.jsxs)(C.N_,{to:"/admin/users/groups",style:{marginLeft:"5px"},className:"action-icons btn btn-default btn-default small pull-right",children:[(0,p.jsx)("i",{style:{color:"black"},className:"groups","aria-hidden":"true"})," ",i.t`Manage Groups`]}),dynamicValues&&dynamicValues.managementShowRequestLink&&(0,p.jsxs)(C.N_,{to:"/admin/users/invite",style:{marginLeft:"5px"},className:"action-icons btn btn-default small pull-right",children:[(0,p.jsx)("i",{style:{color:"black"},className:"adduser","aria-hidden":"true"})," ",i.t`Invite Users`]}),(0,p.jsxs)(C.N_,{to:"/admin/users/importer",style:{marginLeft:"5px"},className:"action-icons btn btn-default btn-default small pull-right",children:[(0,p.jsx)("i",{style:{color:"black"},className:"import","aria-hidden":"true"})," ",i.t`Import Users`]})]})]})})};function ts(e,s){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);s&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,r)}return t}function rs(e){for(var s=1;s<arguments.length;s++){var t=null!=arguments[s]?arguments[s]:{};s%2?ts(Object(t),!0).forEach(function(s){is(e,s,t[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ts(Object(t)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(t,s))})}return e}function is(e,s,t){return(s=function(e){var s=function(e,s){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,s||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===s?String:Number)(e)}(e,"string");return"symbol"==typeof s?s:s+""}(s))in e?Object.defineProperty(e,s,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[s]=t,e}class ns extends l.Component{constructor(e){super(e);this.state={scrollTop:0,menuTop:0}}componentDidMount(){$("#nocontent").addClass("hide-foot");const e=$(".footerBar").offset().top;this.setState(rs(rs({},this.state),{},{menuTop:e}));window.addEventListener("scroll",this.handleScroll(this))}componentWillUnmount(){$("#nocontent").removeClass("hide-foot");window.removeEventListener("scroll",this.handleScroll(this))}handleScroll(e){return s=>{const t=$(window).scrollTop();e.setState(rs(rs({},e.state),{},{scrollTop:t}))}}render(){return(0,p.jsx)("div",{className:this.state.menuTop-this.state.scrollTop<0?"scrollable fix-top":"scrollable",children:this.props.children})}}
1const ls=ns,as="data:image/svg+xml,%3Csvg%20data-name%3D%22Layer%201%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20300%20300%22%3E%3Cpath%20d%3D%22m75.5%20166.8%2019%204.2v93.5a6.9%206.9%200%200%201-6.9%206.9h-5.1a6.9%206.9%200%200%201-7-6.9v-97.7m-10-12.5v110.2a17%2017%200%200%200%2017%2016.9h5.1a16.9%2016.9%200%200%200%2016.9-16.9V163l-7.8-1.7-19-4.3-12.2-2.7z%22%20style%3D%22fill%3A%231d1d1b%22%2F%3E%3Cpath%20d%3D%22M241.6%20155.8c-55.3-21.6-110.7%2021.6-166%200V47.9c55.3%2021.6%20110.7-21.6%20166%200z%22%20style%3D%22fill%3A%23ff9015%22%2F%3E%3Cpath%20d%3D%22M206.5%2041.7a94.3%2094.3%200%200%201%2035.1%206.2v107.9a94.4%2094.4%200%200%200-35.1-6.3c-31.9%200-63.9%2012.5-95.8%2012.5a96.4%2096.4%200%200%201-35.1-6.2V47.9a96.4%2096.4%200%200%200%2035.1%206.2c31.9%200%2063.9-12.4%2095.8-12.4m0-10c-16.9%200-33.7%203.2-49.8%206.4s-31%206-46%206a86.1%2086.1%200%200%201-31.5-5.5%208.9%208.9%200%200%200-3.6-.7%2010.2%2010.2%200%200%200-5.6%201.7%2010%2010%200%200%200-4.4%208.3v107.9a9.9%209.9%200%200%200%206.4%209.3%20105.7%20105.7%200%200%200%2038.7%206.9c16.9%200%2033.6-3.3%2049.8-6.4s31-6.1%2046-6.1a85.2%2085.2%200%200%201%2031.4%205.6%209.4%209.4%200%200%200%203.7.7%209.6%209.6%200%200%200%205.6-1.8%209.9%209.9%200%200%200%204.4-8.2V47.9a10.1%2010.1%200%200%200-6.4-9.3c-11.9-4.7-24.6-6.9-38.7-6.9zm-107.2%20185a4.7%204.7%200%200%201-3.5-1.5l-27.6-27.6a4.9%204.9%200%200%201%207-7l27.6%2027.6a4.8%204.8%200%200%201%200%207%204.7%204.7%200%200%201-3.5%201.5zm0%2039.6a4.7%204.7%200%200%201-3.5-1.5l-27.6-27.6a5%205%200%200%201%200-7.1%205%205%200%200%201%207%200l27.6%2027.6a5%205%200%200%201%200%207.1%204.7%204.7%200%200%201-3.5%201.5z%22%20style%3D%22fill%3A%231d1d1b%22%2F%3E%3C%2Fsvg%3E";var os=t(17595),cs=t(91327);const ds=({visible:e,onCompleteTutorial:s})=>(0,p.jsxs)(cs.A,{isActive:e,onComplete:s,children:[(0,p.jsxs)(os.A,{children:[(0,p.jsxs)("div",{className:"pull-left",children:[(0,p.jsx)("img",{src:as,style:{width:"150px",marginTop:"-10px"}})," "]}),(0,p.jsx)("h2",{children:i.t`We've Made a Few Improvements`}),(0,p.jsx)("p",{className:"clear",children:i.t`Based on feedback from our users, we've made a few improvements that we think you will find helpful.`})]}),(0,p.jsxs)(os.A,{children:[(0,p.jsx)("h2",{children:i.t`More Visible Actions`}),(0,p.jsx)("div",{children:(0,p.jsx)("img",{src:"/images/headed2/new/tutorials/admin/topbar.png",style:{width:"90%",margin:"15px 5% 25px 5%"}})}),(0,p.jsx)("p",{className:"clear",children:i.t`You will see that all of the actions available have now been moved to the top, with larger, more readable buttons.`})]}),(0,p.jsxs)(os.A,{children:[(0,p.jsx)("h2",{children:i.t`More Space for Users`}),(0,p.jsx)("div",{children:(0,p.jsx)("img",{src:"/images/headed2/new/tutorials/admin/menu.gif",style:{width:"70%",margin:"25px 15% 25px 15%"}})}),(0,p.jsx)("p",{className:"clear",children:i.t`We tweaked how the user listing is displayed. When you scroll down, the important actions will be in a small bar at the top giving you more space to see your user list.`})]}),(0,p.jsxs)(os.A,{children:[(0,p.jsx)("h2",{children:i.t`Clearer Labels`}),(0,p.jsx)("div",{children:(0,p.jsx)("img",{src:"/images/headed2/new/tutorials/admin/reports.gif",style:{width:"70%",margin:"25px 15% 25px 15%"}})}),(0,p.jsx)("p",{className:"clear",children:i.t`Buttons for reports and actions have updated labels with more natural language, so it should be easier to see exactly what is going to happen. `})]}),(0,p.jsxs)(os.A,{children:[(0,p.jsx)("h2",{style:{marginBottom:"25px"},children:i.t`Give it a Shot`}),(0,p.jsx)("p",{className:"clear",children:i.t`Take a look around and give it a shot. We think you'll find it a big improvement over the previous version. As always, if you have any comments or suggestions, please let us know.`})]})]});var hs=t(63501),us=t(47709),ms=t(6047),ps=t(41013);function xs(e,s){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);s&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,r)}return t}function js(e){for(var s=1;s<arguments.length;s++){var t=null!=arguments[s]?arguments[s]:{};
1s%2?xs(Object(t),!0).forEach(function(s){fs(e,s,t[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):xs(Object(t)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(t,s))})}return e}function fs(e,s,t){return(s=function(e){var s=function(e,s){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,s||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===s?String:Number)(e)}(e,"string");return"symbol"==typeof s?s:s+""}(s))in e?Object.defineProperty(e,s,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[s]=t,e}const gs=(0,A.connect)(e=>js(js({},e.messageDialog),{},{state:e.messageDialog}),e=>({onSendMessage:()=>{e((0,qe._z)())},onCancelMessage:()=>{e((0,qe.c6)())},onChangeMessageFormField:(s,t)=>{e((0,qe.Kb)(s,t))}}))(({state:e,onSendMessage:s,onCancelMessage:t,onChangeMessageFormField:r})=>{const n=e;if(!n.isOpened)return(0,p.jsx)("span",{});const l=(0,p.jsx)("button",{className:"btn btn-submit",onClick:s,disabled:!n.subject||0==n.subject.length,children:i.t`Send Message`}),a=(0,p.jsx)("button",{className:"btn btn-danger",onClick:t,children:e.isSent?i.t`Close`:i.t`Cancel`}),o=e.profile.firstName?e.profile.firstName:e.profile.name;return(0,p.jsxs)(M.A,{show:e.isOpened,modal:!0,onHide:t,children:[(0,p.jsxs)(M.A.Header,{style:{color:"white",fontWeight:"bold"},children:[(0,p.jsx)("button",{type:"button",className:"close","aria-label":i.t`Close`,onClick:t,children:(0,p.jsx)("span",{"aria-hidden":"true",children:"×"})}),(0,p.jsx)("h2",{children:i.t`Send a message to ${o}`})]}),(0,p.jsx)(M.A.Body,{children:(()=>{if(n.isSent)return(0,p.jsx)("h4",{style:{marginTop:"15px"},children:i.t`Message Sent`});else return(0,p.jsxs)("div",{children:[(0,p.jsxs)(us.A,{controlId:name,children:[(0,p.jsx)(ms.A,{children:i.t`Subject`}),(0,p.jsx)(ps.A,{className:"text-input",type:"text",required:!0,value:n.subject,onChange:e=>{r("subject",e.target.value)}})]}),(0,p.jsxs)(us.A,{controlId:name,children:[(0,p.jsx)(ms.A,{children:i.t`Message`}),(0,p.jsx)(ps.A,{className:"text-input",type:"text",componentClass:"textarea",value:n.body,onChange:e=>{r("body",e.target.value)}})]})]})})()}),(0,p.jsx)(M.A.Footer,{children:e.isSent?[a]:[l,a]})]})});var vs=t(56024),bs=t(47399),ys=t(23995),Ns=t(92398),ws=t(22912),As=t(57453);const Os="data:image/svg+xml,%3Csvg%20data-name%3D%22Layer%201%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20300%20300%22%3E%3Cpath%20d%3D%22M246.4%2092.2a21.6%2021.6%200%200%201%206.4%2015.6v123a21.9%2021.9%200%200%201-22%2022H69.2a21.9%2021.9%200%200%201-22-22V69.2a21.9%2021.9%200%200%201%2022-22h123a21.6%2021.6%200%200%201%2015.6%206.4z%22%20style%3D%22fill%3A%23ededed%22%2F%3E%3Cpath%20d%3D%22M192.2%2047.2a21.6%2021.6%200%200%201%2015.6%206.4l38.6%2038.6a21.6%2021.6%200%200%201%206.4%2015.6v123a21.9%2021.9%200%200%201-22%2022H69.2a21.9%2021.9%200%200%201-22-22V69.2a21.9%2021.9%200%200%201%2022-22h123m0-10h-123a32.1%2032.1%200%200%200-32%2032v161.6a32.1%2032.1%200%200%200%2032%2032h161.6a32.1%2032.1%200%200%200%2032-32v-123a31.6%2031.6%200%200%200-9.4-22.7l-38.5-38.5a31.6%2031.6%200%200%200-22.7-9.4z%22%20style%3D%22fill%3A%23b2b2b2%22%2F%3E%3Cpath%20d%3D%22M150%20208.4a28.1%2028.1%200%200%200%2020.5-8.6%2028.9%2028.9%200%200%200%200-40.9%2029%2029%200%200%200-49.5%2020.5%2027.8%2027.8%200%200%200%208.5%2020.4%2028.1%2028.1%200%200%200%2020.5%208.6z%22%20style%3D%22fill%3A%23fff%22%2F%3E%3Cpath%20d%3D%22M150%20150.3a29.2%2029.2%200%200%201%2029%2029.1%2027.8%2027.8%200%200%201-8.5%2020.4%2028.7%2028.7%200%200%201-41%200%2028.9%2028.9%200%200%201%200-40.9%2028.1%2028.1%200%200%201%2020.5-8.6m0-10a39.3%2039.3%200%200%200-39%2039.1%2039.3%2039.3%200%200%200%2039%2039%2039.3%2039.3%200%200%200%2039-39%2039.3%2039.3%200%200%200-39-39.1z%22%20style%3D%22fill%3A%23b2b2b2%22%2F%3E%3Cpath%20style%3D%22fill%3A%23fff%22%20d%3D%22M80.2%2047.2H188v57.99H80.2z%22%2F%3E%3Cpath%20d%3D%22M188%2047.2v58H80.2v-58H188m0-9.3H80.2a9.3%209.3%200%200%200-9.3%209.3v58a9.3%209.3%200%200%200%209.3%209.3H188a9.3%209.3%200%200%200%209.3-9.3v-58a9.3%209.3%200%200%200-9.3-9.3z%22%20style%3D%22fill%3A%23b2b2b2%22%2F%3
1E%3Cpath%20d%3D%22M261.1%2090a3.2%203.2%200%200%200-.9-2.4%203.4%203.4%200%200%200-2.4-.9h-71.5a3.2%203.2%200%200%200-2.3.9%203.2%203.2%200%200%200-.9%202.4v39a3.1%203.1%200%200%200%203.2%203.2h71.5a3.4%203.4%200%200%200%202.4-.9%203.2%203.2%200%200%200%20.9-2.3z%22%20style%3D%22fill%3A%23ef8975%22%2F%3E%3Cpath%20d%3D%22M267.8%20129a9.7%209.7%200%200%201-9.8%209.7h-71.5a9.6%209.6%200%200%201-9.7-9.7V90a9.7%209.7%200%200%201%209.7-9.8h3.3v-13A32.9%2032.9%200%200%201%20206%2039.1a32.2%2032.2%200%200%201%2016.4-4.4%2030.4%2030.4%200%200%201%2016.2%204.5%2033.1%2033.1%200%200%201%2011.8%2012%2031.8%2031.8%200%200%201%204.4%2016.2v12.8h3.2a9.9%209.9%200%200%201%209.8%209.8zm-6.5-39a3.2%203.2%200%200%200-.9-2.4%203.4%203.4%200%200%200-2.4-.9h-71.5a3.2%203.2%200%200%200-2.3.9%203.2%203.2%200%200%200-.9%202.4v39a3.1%203.1%200%200%200%203.2%203.2H258a3.4%203.4%200%200%200%202.4-.9%203.2%203.2%200%200%200%20.9-2.3zm-13-9.8v-13a26%2026%200%200%200-3.5-13.1%2025%2025%200%200%200-9.4-9.4%2026%2026%200%200%200-13.1-3.5%2025.7%2025.7%200%200%200-13.1%203.5%2025.2%2025.2%200%200%200-9.5%209.4%2025.9%2025.9%200%200%200-3.4%2013.1v13zm-28.9%2038.6a3.9%203.9%200%200%201-1.2-2.8v-13a4%204%200%200%201%201.2-2.9%204.2%204.2%200%200%201%202.9-1.2%203.8%203.8%200%200%201%202.8%201.2%204%204%200%200%201%201.2%202.9v13a3.9%203.9%200%200%201-1.2%202.8%203.8%203.8%200%200%201-2.8%201.2%204.2%204.2%200%200%201-2.9-1.2z%22%20style%3D%22fill%3A%231d1d1b%22%2F%3E%3Cpath%20d%3D%22M248.3%2080.2v-13a26%2026%200%200%200-3.5-13.1%2025%2025%200%200%200-9.4-9.4%2026%2026%200%200%200-13.1-3.5%2025.7%2025.7%200%200%200-13.1%203.5%2025.2%2025.2%200%200%200-9.5%209.4%2025.9%2025.9%200%200%200-3.4%2013.1v13z%22%20style%3D%22fill%3A%23fff%22%2F%3E%3C%2Fsvg%3E";var Ss=t(62801),Cs=t(62344);function Ps(e,s,t){return(s=function(e){var s=function(e,s){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,s||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===s?String:Number)(e)}(e,"string");return"symbol"==typeof s?s:s+""}(s))in e?Object.defineProperty(e,s,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[s]=t,e}class ks extends l.Component{constructor(e){super(e);Ps(this,"handleDrag",e=>{e.preventDefault();e.stopPropagation()});Ps(this,"handleDragIn",e=>{var s;e.preventDefault();e.stopPropagation();this.dragCounter++;if((dynamicValues.isSubscriber||(null===(s=dynamicValues.userProfile)||void 0===s?void 0:s.isRoot)||dynamicValues.allowUserFiles)&&e.dataTransfer.types&&e.dataTransfer.types.includes("Files"))this.setState({dragging:!0,numFiles:e.dataTransfer.items.length})});Ps(this,"handleDragOut",e=>{e.preventDefault();e.stopPropagation();this.dragCounter--;if(0===this.dragCounter)this.setState({dragging:!1,numFiles:0})});Ps(this,"handleDrop",e=>{e.preventDefault();e.stopPropagation();if(e.dataTransfer.items&&e.dataTransfer.items.length>0){const s=[...e.dataTransfer.items].filter(e=>{var s;return!(null!==(s=e.webkitGetAsEntry())&&void 0!==s&&s.isDirectory)}).map(e=>e.getAsFile());if(s.length>0)this.props.handleDrop(s).then(()=>this.setState({dragging:!1,numFiles:0})).catch(()=>this.setState({dragging:!1,numFiles:0}));else this.setState({dragging:!1,numFiles:0})}else if(e.dataTransfer.files&&e.dataTransfer.files.length>0)this.props.handleDrop(e.dataTransfer.files).then(()=>this.setState({dragging:!1,numFiles:0})).catch(()=>this.setState({dragging:!1,numFiles:0}));e.dataTransfer.clearData();this.dragCounter=0});Ps(this,"uploadProgressBar",()=>{const e=this.props.uploadProgress||{};if(e.active)return(0,p.jsx)("div",{style:{padding:"0 25px"},children:(0,p.jsx)(ws.A,{active:!0,now:e.pctComplete,style:{marginBottom:0}})});else return(0,p.jsx)("div",{})});this.dragCounter=0;this.state={dragging:!1,numFiles:null}}componentDidMount(){const e=this.dropRef;e.addEventListener("dragenter",this.handleDragIn);e.addEventListener("dragleave",this.handleDragOut);e.addEventListener("dragover",this.handleDrag);e.addEventListener("drop",this.handleDrop)}componentWillUnmount(){const e=this.dropRef;e.removeEventListener("dragenter",this.handleDragIn);e.removeEventListener("dragleave",this.handleDragOut);e.removeEventListener("dragover",this.handleDrag);e.removeEventListener("drop",this.handleDrop)}render(){const e=this.state.numFiles>1?i.t`Your ${this.state.numFiles} Files`:i.t`Your File`,s=this.state.numFiles>1?i.t`They`:i.t`It`;return(0,p.jsxs)("div",{style:{position:"relative"},ref:e=>{this.dropRef=e},children:[this.state.dragging&&(0,p.jsx)("div",{style:{border:"dashed #000 4px",backgroundColor:"rgba(243,236,220,.9)",position:"absolute",top:0,bottom:0,left:0,right:0,zIndex:9999},children:(0,p.jsxs)("div",{style:{position:"absolute",top:"50%",transform:"translateY(-50%)",right:0,left:0,textAlign:"center",color:"grey",fontSize:36},children:[(0,p.jsx)("h2",{style:{color:"#000"},children:i.t`Drop ${e} Here`}),(0,p.jsx)("p",{children:i.t`${s} will be uploaded and added to your files`}),this.uploadProgressBar()]})}),this.props.children]})}}const Ds=ks;function qs(e,s){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);s&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,r)}return t}function Fs(e){for(var s=1;s<arguments.length;s++){var t=null!=arguments[s]?arguments[s]:{};
1s%2?qs(Object(t),!0).forEach(function(s){Rs(e,s,t[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):qs(Object(t)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(t,s))})}return e}function Rs(e,s,t){return(s=function(e){var s=function(e,s){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,s||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===s?String:Number)(e)}(e,"string");return"symbol"==typeof s?s:s+""}(s))in e?Object.defineProperty(e,s,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[s]=t,e}class Ts extends l.PureComponent{constructor(e){super(e);Rs(this,"onChangeSort",e=>{this.setState(Fs(Fs({},this.state),{},{sortOrder:e}))});Rs(this,"onSelectForShare",e=>{if(e)this.props.dispatch((0,Cs.FJ)(e.id));this.setState(Fs(Fs({},this.state),{},{selectedForShare:e}))});this.state={selectedForShare:null,selectedForEdit:null,sortOrder:"date",searchTerm:""}}onFieldChange(e){this.setState(Fs(Fs({},this.state),{},{selectedForEdit:Fs(Fs({},this.state.selectedForEdit),{},{fileName:e})}))}actionMenu(e){const s=this.props.profileInfo;if(e.mimeType.indexOf("image")>=0){var t;return(0,p.jsxs)(Ce.A,{title:"Use For",id:"bg-nested-dropdown",className:"tbl-btn no-style",style:{marginRight:"3px"},children:[this.addIf((0,p.jsx)(Pe.A,{eventKey:"1",onClick:()=>this.props.onUseImage(e,1,s),children:i.t`Masthead`}),s&&this.hasMasthead(this.props.profileType)),(0,p.jsx)(Pe.A,{eventKey:"2",onClick:()=>this.props.onUseImage(e,2,s),children:"user"==this.props.profileType?i.t`Avatar`:i.t`Logo`}),this.addIf((0,p.jsx)(Pe.A,{eventKey:"3",onClick:()=>this.props.onUseImage(e,3,s),children:i.t`Thumbnail`}),null===(t=dynamicValues.userProfile)||void 0===t?void 0:t.isRoot)]})}return(0,p.jsx)("span",{})}hasMasthead(e){return e&&"user"!=e}addIf(e,s){if(s)return e;else return(0,p.jsx)("span",{})}sortFiles(e){const s=this.state.searchTerm.toLowerCase(),t=(this.state.searchTerm.length>0?e.filter(e=>e.fileName.toLowerCase().includes(s)):e)||[];if("date"==this.state.sortOrder)return t.sort((e,s)=>new Date(s.date)-new Date(e.date));else return t.sort((e,s)=>e.fileName.localeCompare(s.fileName))}selectForEdit(e){this.setState(Fs(Fs({},this.state),{},{selectedForEdit:e}))}thumbNailFn(e){if(e.hasOwnProperty("thumbnailUrl"))return(0,p.jsx)(As.A,{src:e.thumbnailUrl,fallbackImage:"/images/common/file.png",initialImage:"/images/common/file.png",alt:i.t`File Preview`,className:"img-responsive",style:{maxHeight:"130px"}});else return null}editibleField(e,s,t,r,i,n){if(this.state.selectedForEdit&&this.state.selectedForEdit.id===e.id)return(0,p.jsxs)(vs.A,{children:[(0,p.jsx)(ps.A,{required:!0,className:"text-input",type:"text",value:this.state.selectedForEdit.fileName,onChange:e=>{this.onFieldChange(e.target.value)}}),(0,p.jsxs)(vs.A.Button,{children:[(0,p.jsx)("input",{type:"button",onClick:()=>this.selectForEdit(null),className:"btn btn-danger no-style",value:"Cancel"}),(0,p.jsx)("input",{type:"button",onClick:()=>i(this.state.selectedForEdit,n).then(()=>{this.selectForEdit(null)}),className:"btn btn-success no-style",disabled:this.state.selectedForEdit.fileName===e.fileName||this.state.selectedForEdit.fileName.length<2,value:"Rename"})]})]});return(0,p.jsxs)(p.Fragment,{children:[this.hasMasthead(this.props.profileType)?e.fileName:(0,p.jsx)("div",{className:"file-name-link",children:(0,p.jsx)("a",{href:`/userfiles/download/${e.id}`,children:e.fileName})}),(()=>{var i;if(null!==(i=dynamicValues.userProfile)&&void 0!==i&&i.hasManager)return(0,p.jsx)(Ss.R,{f:e,tags:s,onTagFile:t,onDeleteFileTag:r});if(e.tags.length>0)return(0,p.jsx)("div",{children:(0,p.jsxs)("i",{className:"tag-list",children:[(0,p.jsx)("i",{className:"fal fa-tags","aria-hidden":"true"})," ",e.tags.map(e=>e.name).join(", ")]})});else return null})()]})}render(){const{isPopupOpened:e,files:s,fullScreen:t,onCancel:r,meta:n,uploadProgress:l,onUploadFile:a,onDeleteFile:o,profileInfo:c,tags:d,onTagFile:h,onDeleteFileTag:u,onRename:m,removeLogo:x,removeThumb:j,removeMasthead:f,fileRequests:g,fileRequestsRequest:v,dispatch:b,profileType:y,modalDisplay:N=!0}=this.props,w=e=>{if(!e||0==e.length)return(0,p.jsx)("div",{className:"alert-info",children:i.t`No files have been added`});else return[e.map(e=>{var s;return(0,p.jsx)("div",{className:"col-xs-12 col-sm-6 clear-card-fix",children:(0,p.jsxs)("div",{className:"file-card",children:[(0,p.jsx)("div",{className:"file-thumbnail",children:(0,p.jsx)("a",{href:`/userfiles/download/${e.id}`,children:this.thumbNailFn(e)})}),this.editibleField(e,d,h,u,m,c),(0,p.jsxs)("div",{className:"row",children:[(0,p.jsx)("div",{className:"date-uploaded col-xs-6",children:(0,He.A)(new Date(e.date),new Date,{addSuffix:!0})}),(0,p.jsx)("div",{className:"file-size col-xs-6 text-right",children:`${e.size.toLocaleStr
1ing()}kb`})]}),(0,p.jsxs)("div",{className:"actions",children:[this.actionMenu(e),(0,p.jsxs)("button",{className:"pull-right btn btn-default no-style",style:{marginLeft:"1px"},onClick:()=>this.selectForEdit(e),children:[(0,p.jsx)("i",{className:"edit"})," ",(0,p.jsx)("span",{className:"sr-only",children:i.t`Rename`})]}),dynamicValues.fileApproval&&(null===(s=dynamicValues.userProfile)||void 0===s?void 0:s.hasManager)&&(0,p.jsxs)("button",{className:"pull-right  btn btn-default no-style",style:{marginLeft:"1px"},onClick:()=>this.onSelectForShare(e),children:[(0,p.jsx)("i",{className:"share"})," ",(0,p.jsx)("span",{className:"sr-only",children:i.t`Approval`})]}),e.userCanDelete?(0,p.jsxs)("button",{className:"pull-right  btn btn-default no-style",style:{marginLeft:"1px"},href:"javascript:void(0)",disabled:!e.userCanDelete,onClick:()=>{o(e,c)},children:[(0,p.jsx)("i",{className:"delete"})," ",(0,p.jsx)("span",{className:"sr-only",children:i.t`Delete`})]}):(0,p.jsx)(be.A,{placement:"top",trigger:["hover","focus","click"],overlay:(0,p.jsx)(ye.A,{placement:"top",style:{zIndex:"10000000"},id:"tooltip",children:i.t`This file can not be deleted because it has either been assigned a tag, or it is being used in an assignment.`}),children:(0,p.jsx)("img",{src:Os,className:"pull-right  ",style:{width:"40px"}})}),(0,p.jsx)("br",{className:"clear"})]})]})},e.id)})]},A=t?{dialogClassName:"fullscreen-modal"}:{dialogClassName:"file-list-modal",backdropClassName:"file-list-backdrop modal-backdrop",bsSize:"lg"},S="user"==y?i.t`Avatar`:i.t`Logo`,C=this.state.selectedForShare?this.state.selectedForShare.fileName:"",q=this.sortFiles(s),F=q.length.toLocaleString(),R=(this.state.sortOrder,this.state.sortOrder,()=>{var e;return(0,p.jsx)("form",{onSubmit:e=>e.preventDefault(),children:(0,p.jsxs)("div",{style:{marginTop:"15px"},children:[(0,p.jsx)("div",{className:"col-xs-12",children:(0,p.jsxs)(us.A,{controlId:"formControlsFile",className:"resorts row",style:{marginTop:"0",marginBottom:"20px"},children:[(0,p.jsx)(ms.A,{className:"sr-only",children:i.t`Select a File to Upload`}),(0,p.jsx)(ps.A,{className:"col-xs-8",multiple:!0,type:"file",value:l.selected,onChange:e=>{e.preventDefault();a(e.target,c)}}),this.statusBar()]})}),(0,p.jsx)("br",{}),(0,p.jsxs)("div",{style:{},children:[(0,p.jsx)("div",{className:"col-xs-12",children:(0,p.jsxs)("div",{className:"row resorts",style:{marginTop:"10px",marginBottom:"10px"},children:[(0,p.jsx)("div",{className:"col-xs-8 col-sm-9",children:(0,p.jsx)("input",{type:"text",onChange:e=>this.setState(Fs(Fs({},this.state),{},{searchTerm:e.target.value})),placeholder:i.t`Enter a few letters of the filename to filter file listing`,className:"form-control"})}),(0,p.jsx)("div",{className:"col-xs-4 col-sm-3 text-right",children:(0,p.jsx)(bs.A,{className:"pull-right",children:(0,p.jsxs)(ys.A,{type:"radio",name:"sortOrder",defaultValue:this.state.sortOrder,children:[(0,p.jsxs)(Ns.A,{className:"btn btn-default no-style btn-sm",onClick:()=>this.onChangeSort("date"),value:"date",children:[(0,p.jsx)("i",{className:"fal fa-sort-amount-desc","aria-hidden":"true"})," ",i.t`By Date`]}),(0,p.jsxs)(Ns.A,{className:"btn btn-default no-style btn-sm",onClick:()=>this.onChangeSort("title"),value:"title",children:[(0,p.jsx)("i",{className:"fal fa-sort-alpha-asc","aria-hidden":"true"})," ",i.t`By Title`]})]})})})]})}),(0,p.jsx)("div",{className:"row text-center",children:(0,p.jsx)("h4",{className:"clear",children:i.t`${F} files`})}),(0,p.jsx)("div",{className:"row",children:w(q)}),(0,p.jsxs)("div",{className:"nav",children:[this.addIf((0,p.jsx)("button",{onClick:()=>f(c),className:"btn btn-danger small no-style",children:i.t`Remove Masthead`}),n&&this.hasMasthead(y)&&n.headerImageId),this.addIf((0,p.jsx)("button",{onClick:()=>x(c),className:"btn btn-danger small no-style",children:i.t`Remove ${S}`}),n&&n.logoId),this.addIf((0,p.jsx)("button",{onClick:()=>j(c),className:"btn btn-danger small no-style",children:i.t`Remove Thumb`}),n&&n.listingThumbnailId&&(null===(e=dynamicValues.userProfile)||void 0===e?void 0:e.isRoot))]})]})]})})});return(0,p.jsxs)("div",{children:[N?(()=>(0,p.jsxs)(M.A,Fs(Fs({backdrop:"static",show:e,onHide:r},A),{},{children:[(0,p.jsx)(M.A.Header,{closeButton:!0,children:(0,p.jsx)("h2",{children:i.t`File Management`})}),(0,p.jsx)(Ds,{handleDrop:e=>this.props.dispatch(Je.QM(e,c)),uploadProgress:this.props.fileState.data.uploadProgress,children:(0,p.jsx)(M.A.Body,{style:{minHeight:"50vh",maxHeight:"70vh",overflow:"scroll"},children:R()})}),(0,p.jsx)(M.A.Footer,{children:this.renderLowerButtons()})]})))():(()=>(0,p.jsx)(Ds,{handleDrop:e=>this.props.dispatch(Je.QM(e,c)),uploadProgress:this.props.fileState.data.uploadProgress,children:R()}))(),(0,p.jsxs)(M.A,{show:this.state.selectedForShare,onHide:()=>this.onSelectForShare(null),children:[(0,p.jsx)(M.A.Header,{closeButton:!0,children:(0,p.jsx)("h2",{children:i.t`Share ${C}`})}),(0,p.jsxs)(M.A.Body,{children:[g.allForFile&&(0,p.jsxs)("div",{children:[(0,p.jsx)("h3",{children:i.t`Review History`}),(0,p.jsxs)("table",{className:"table tbl",children:[(0,p.jsx)("thead",{children:(0,p.jsxs)("tr",{children:[(0,p.jsx)("th",{children:i.t`Last Viewed`}),(0,p.jsx)("th",{children:i.t`Times Seen`}),(0,p.jsx)("th",{children:i.t`Approved`}),(0,p.jsx)("th",{children:i.t`Approved By`})]})}),(0,p.jsx)("tbody",{children:(g.allForFile.result||[]).map((e,s)=>{const t=[(0,p.jsxs)("tr",{className:s%2==0?"even":"odd",children:[(0,p.jsx)("td",{children:e.lastViewed?new Date(e.lastViewed).toLocaleDateString():i.t`n/a`}),(0,p.jsx)("td",{children:e.timesViewed}),(0,p.jsx)("td",{children:e.approvedBy&&(0,p.jsx)("i",{className:"check"})}),(0,p.jsx)("td",{children:e.approvedBy})]})];if(e.comments)t.push((0,p.jsx)("tr",{className:s%2==0?"even":"odd",children:(0,p.jsxs)("td",{colSpan:"4",style:{padding:"0 15px 15px 15px",fontSize:".9em"},children:[i.t`Comments: `," ",e.comments]})}));return t})})]}),(0,p.jsx)("hr",{})]}),(0,p.jsx)("h3",{children:i.t`Request New Approval`}),(0,p.jsx)(k.A,{model:"review.requestFileReviewForm",onSubmit:e=>
1b((0,Cs.Gf)(this.state.selectedForShare.id,e)).then(()=>this.onSelectForShare(null)),children:e=>(0,p.jsxs)("div",{children:[(0,p.jsxs)(D.A,{model:"review.requestFileReviewForm.contactType",form:e,label:"Address Type",control:O.Ec.select,children:[(0,p.jsx)("option",{value:"1",children:i.t`E-Mail`}),(0,p.jsx)("option",{value:"2",children:i.t`SMS`})]}),(0,p.jsx)(D.A,{id:"address",label:i.t`Address`,required:!0,model:"review.requestFileReviewForm.contactAddress",form:e}),(0,p.jsx)(D.A,{id:"comments",label:i.t`Comments`,model:"review.requestFileReviewForm.comments",type:"textarea",form:e}),(0,p.jsxs)("div",{style:{margin:"20px 0"},children:[(0,p.jsx)("button",{onClick:()=>this.onSelectForShare(null),type:"button",className:"btn btn-danger",children:i.t`Cancel`}),(0,p.jsx)(P.A,{loading:v.loading,error:v.error,type:"submit",className:"btn btn-success pull-right",children:i.t`Send Request`})]})]})}),(0,p.jsx)("br",{className:"clear"})]})]})]})}renderLowerButtons(){const e=this.props.quota,s=!!e&&e.hasOwnProperty("total");return(0,p.jsxs)("div",{className:"row mid",children:[(0,p.jsx)("div",{className:"col-sm-6 text-left",children:s?(0,p.jsx)("span",{style:{fontWeight:"bold"},children:i.t`Quota: ${e.used}MB / ${e.total}MB (${e.percentageUsed}%)`}):s.used?(0,p.jsx)("span",{style:{fontWeight:"bold"},children:i.t`Total Files: ${e.used}MB`}):null}),(0,p.jsx)("div",{className:"col-sm-6 text-right",children:(0,p.jsx)("button",{className:"btn btn-danger pull-right",onClick:this.props.onCancel,children:i.t`Close`})})]})}statusBar(){if(this.props.uploadProgress.active)return(0,p.jsx)("div",{className:"col-xs-4",children:(0,p.jsx)(ws.A,{active:!0,now:this.props.uploadProgress.pctComplete,style:{marginBottom:0}})});else return(0,p.jsx)("div",{className:"col-xs-4"})}}const Es=(0,A.connect)(e=>Fs(Fs({},e.fileManagementWizard.data),{},{state:e.fileManagementWizard.data,fileState:e.fileManagementWizard,fileRequestsRequest:e.review.fileRequestsRequest,fileRequests:e.review.fileRequests}),e=>({onTagFile:(s,t)=>e((0,Je.LZ)(s,t)),onDeleteFileTag:(s,t)=>{e((0,Je.O_)(s,t))},onCancel:()=>{e(Je.Pm())},onUploadFile:(s,t)=>{e(Je.QM(s.files,t))},onDeleteFile:(s,t)=>{if(!s.userCanDelete)if(s.tags&&s.tags.length>0)alert(i.t`You can only delete untagged files. Tags must be removed before proceeding.`);else alert(i.t`This file is currently used in an assignment and therefore can not be removed.`);else if(confirm(i.t`Are you sure you want to delete ${s.fileName}?`))e(Je.Ww(s,t))},onRename:(s,t)=>e((0,Je.H5)(s,t)),onUseImage:(s,t,r)=>{e(Je.lK(s,t,r))},removeLogo:s=>{e(Je.vS(2,s))},removeThumb:s=>{e(Je.vS(3,s))},removeMasthead:s=>{e(Je.vS(1,s))},dispatch:e}))(Ts);function Ls(e,s){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);s&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,r)}return t}function Is(e){for(var s=1;s<arguments.length;s++){var t=null!=arguments[s]?arguments[s]:{};s%2?Ls(Object(t),!0).forEach(function(s){Ms(e,s,t[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ls(Object(t)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(t,s))})}return e}function Ms(e,s,t){return(s=function(e){var s=function(e,s){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,s||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===s?String:Number)(e)}(e,"string");return"symbol"==typeof s?s:s+""}(s))in e?Object.defineProperty(e,s,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[s]=t,e}const $s=(0,A.connect)(e=>({users:e.admin.users.list.cards.value,resultCount:e.admin.users.list.cards.resultCount,renderTrigger:e.admin.users.list.cards.renderTrigger}),e=>({dispatch:e,loadMoreUsers:(s,t)=>e((0,de.ED)(s,t)),searchUsers:s=>e((0,de.x5)(s)),searchGroups:s=>e((0,de.N_)(s)),addGroupMember:s=>e((0,de.zr)(s)),removeGroupMember:s=>e((0,de.A0)(s)),addGroupOwner:s=>e((0,de.Um)(s)),removeGroupOwner:s=>e((0,de.xR)(s)),viewProfile:s=>{e((0,de.E$)(s))},onOpenFileWizard:s=>e((0,Je.li)(s,"user",!0)),viewClusterReport:s=>{e((0,Fe.f3)(s)).then(()=>e((0,de.Nz)(s,2)))},viewCourseSchedule:s=>{e((0,de.Nz)(s,3))},openMessageDialog:s=>{e((0,qe._c)(s,!0))},openPasswordReset:s=>{e(q.$L({type:de.Sj}));e(O.o1.reset("admin.users.passwordReset.form"));let t=s.name;if(t.startsWith("___"))t="";e(O.o1.merge("admin.users.passwordReset.form",{username:t}));e((0,de.Zk)(s.id))},editProfile:s=>{e((0,de.ws)(s))}}))(Ze),zs=(0,A.connect)(e=>{const s=e.admin.users.view.profileFor,t=s&&(s.hasOwnProperty("id")?s:e.admin.users.list.cards.value.find(e=>e.id===s));return{reportId:e.admin.users.view.reportId,user:t}},e=>({clearProfile:()=>e((0,de.Nr)()),saveAction:(s,t)=>{switch(s){case 3:e((0,Xe.wu)(t));break;case 2:e((0,Fe.aG)(t));break;case 1:e(save(t,{}))}}}))(Oe),Vs=(0,A.connect)(e=>{const s=e.admin.users.edit.profileFor;return{user:s&&e.admin.users.list.cards.value.find(e=>e.id===s),updateRequest:e.admin.users.edit.updateRequest}})(({user:e})=>{const[s,t]=(0,l.useState)(null),r=(0,A.useDispatch)();(0,l.useEffect)(()=>
1{if(null!=e&&e.id)c.F.fetch(`/personalProfile/${e.id}`,{method:"GET"}).then(e=>{t(e)});else t(null)},[null==e?void 0:e.id]);return(0,p.jsxs)(M.A,{show:s,dialogClassName:"fullscreen-modal",children:[(0,p.jsxs)(M.A.Header,{style:{color:"white",fontWeight:"bold"},children:[(0,p.jsx)("button",{type:"button",className:"close","aria-label":i.t`Close`,onClick:()=>r((0,de.Vp)()),children:(0,p.jsx)("span",{"aria-hidden":"true",children:"×"})}),(0,p.jsx)(M.A.Title,{children:e&&(0,p.jsxs)("span",{children:[i.t`Edit User Profile for `," ",e.firstName||""," ",e.lastName||""," (",e.ssoName||e.name,")"]})})]}),(0,p.jsx)(M.A.Body,{children:s&&(0,p.jsx)(Se.f,{user:s,onSuccess:async()=>{await r((0,de.x5)(!0));r((0,de.Vp)())}})})]})}),Hs=(0,A.connect)(e=>{const s=e.admin.users.passwordReset.profileFor;return{user:s&&e.admin.users.list.cards.value.find(e=>e.id===s),updateRequest:e.admin.users.passwordReset.updateRequest}},e=>({onCancel:()=>{e((0,de.VO)());e((0,de.x5)())},resetPasswordAction:(s,t)=>{e((0,de.I_)(s,t)).then(()=>{e((0,de.x5)())})}}))(ze),Bs=e=>Is(Is({},e.admin.users.list.search),{},{isPremium:e.authenticationState.userProfile.isPremium,quota:e.admin.users.quotaRequest.result,resultCount:e.admin.users.list.cards.resultCount}),Us=e=>({messageUsers:s=>{const t=(s||0).toLocaleString();e((0,qe._c)({name:i.t`${t} Selected Users`},!1,!0))},onReportSelect:()=>{e({})},dismissGroupList:()=>{e((0,de.kK)())},selectReport:(s,t)=>{e((0,de.rK)(s,t));e((0,de.$u)(s,t))},handleGroupSelection:s=>e((0,de.an)(s))}),_s=(0,A.connect)(Bs,Us)(({selectReport:e,resultCount:s,messageUsers:t})=>{var r,n,l;const a=(0,p.jsx)("b",{children:(s||0).toLocaleString()},"formatted-result-count");return(0,p.jsx)("div",{className:"footerBar",children:(0,p.jsx)("div",{className:"commonBar",children:(0,p.jsx)("div",{id:"adminReportBar",className:"container",children:(0,p.jsxs)("div",{className:"flex",style:{width:"100%"},children:[(0,p.jsx)("span",{children:i.jt`For the ${a} users below:`}),(0,p.jsxs)(Ce.A,{id:"split-button-dropup",className:"no-style",title:(0,p.jsxs)("span",{style:{paddingRight:"5px"},children:[(0,p.jsx)("i",{className:"report fa-lg","aria-hidden":"true"})," ",i.t`Run a report`]}),style:{marginLeft:"15px"},onSelect:(o="COMMON",s=>{e(s,o)}),children:[(0,p.jsx)(Pe.A,{eventKey:"1",children:i.t`Dashboard Report`},"evtkey1"),(0,p.jsx)(Pe.A,{eventKey:"6",children:i.t`Budget Report`},"evtkey6"),(0,p.jsx)(Pe.A,{eventKey:"2",children:i.t`Interest Profiler Report`},"evtkey2"),(0,p.jsx)(Pe.A,{eventKey:"4",children:i.t`Skills Profiler Report`},"evtkey4"),(0,p.jsx)(Pe.A,{eventKey:"3",children:i.t`Work Importance Profiler Report`},"evtkey3"),(0,p.jsx)(Pe.A,{eventKey:"10",children:i.t`Assignment Status Report`},"evtkey10"),((null===(r=dynamicValues.userProfile)||void 0===r?void 0:r.isRoot)||dynamicValues.isSubscriber)&&(0,p.jsx)(Pe.A,{eventKey:"7",children:i.t`Tagging Report`},"evtkey7"),(0,p.jsx)(Pe.A,{eventKey:"5",children:i.t`Utilization Report`},"evtkey5"),((null===(n=dynamicValues.userProfile)||void 0===n?void 0:n.isRoot)||dynamicValues.upTheLadder)&&(0,p.jsx)(Pe.A,{eventKey:"8",children:i.t`Up The Ladder Report`},"evtkey8"),((null===(l=dynamicValues.userProfile)||void 0===l?void 0:l.isRoot)||dynamicValues.coursePlanEnabled)&&(0,p.jsx)(Pe.A,{eventKey:"9",children:i.t`Course Planner Report`},"evtkey9")]}),(0,p.jsxs)(C.N_,{className:"btn no-style btn-default",to:"/admin/users/assignLesson/1",children:[(0,p.jsx)("i",{className:"lesson","aria-hidden":"true"})," ",i.t`Assign a Lesson`]}),(0,p.jsxs)("button",{className:"btn no-style btn-default",onClick:()=>t(s),children:[(0,p.jsx)("i",{className:"message fa-lg"})," ",i.t`Send a Message`]}),(0,p.jsx)("button",{onClick:ke.Fc,style:{flexGrow:1,textAlign:"right"},className:"backtop btn no-style btn-link pull-right",children:(0,p.jsx)("span",{children:i.t`back to top`})})]})})})});var o}),Gs=(0,A.connect)(Bs,Us)(ss),Ws=(0,A.connect)(e=>({visible:e.admin.users.list.showTutorial}),e=>({onCompleteTutorial:()=>{e((0,hs.jz)(hs.ZU))}}))(ds),Ks=(0,A.connect)(e=>Is(Is({collectionId:"useradmin"},e.documentation),{},{modalOpen:!0}),e=>({modalClose:()=>{H.N.push("/management/users")},selectSection:s=>e((0,Te.Ow)(s))}))(Re.g),Qs=({children:e})=>{(0,B.Zk)();(0,B.es)((0,hs.XK)(hs.ZU));(0,B.es)((0,de.x5)(!0));(0,B.es)((0,de.wW)());(0,B.es)((0,de.uu)());return(0,p.jsxs)("div",{className:"container",children:[(0,p.jsx)(Gs,{}),(0,p.jsx)(ve,{}),(0,p.jsx)(ls,{children:(0,p.jsx)(_s,{})}),(0,p.jsx)($s,{}),(0,p.jsx)(Vs,{}),(0,p.jsx)(Hs,{}),(0,p.jsx)(De.U,{}),(0,p.jsx)(zs,{}),(0,p.jsx)(Ws,{}),(0,p.jsx)(gs,{}),(0,p.jsx)(Es,{}),e]})};
1var Ys=t(29744),Zs=t(59399),Js=t.n(Zs),Xs=t(37685),et=t(11880);function st(e,s){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);s&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,r)}return t}function tt(e){for(var s=1;s<arguments.length;s++){var t=null!=arguments[s]?arguments[s]:{};s%2?st(Object(t),!0).forEach(function(s){rt(e,s,t[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):st(Object(t)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(t,s))})}return e}function rt(e,s,t){return(s=function(e){var s=function(e,s){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,s||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===s?String:Number)(e)}(e,"string");return"symbol"==typeof s?s:s+""}(s))in e?Object.defineProperty(e,s,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[s]=t,e}function it(e){(0,B.es)((0,Xs.QC)());const{dispatch:s}=e,t=e=>{if(e)return`${e.baseURL}/request/${e.path}/${e.code}`},r=t(e.changeCodeRequest.result)||t(e.getCodeRequest.result),n=e.inviteRequest.result,l=e.quota,a=(0,p.jsx)("a",{href:dynamicValues&&dynamicValues.subscriptionPage,children:i.t`upgrades`});return(0,p.jsxs)(M.A,{show:!0,dialogClassName:"fullscreen-modal",onHide:()=>H.N.push("/management/users"),children:[(0,p.jsxs)(M.A.Header,{style:{color:"white",fontWeight:"bold"},children:[(0,p.jsx)("button",{type:"button",className:"close","aria-label":"Close",onClick:()=>H.N.push("/management/users"),children:(0,p.jsx)("span",{"aria-hidden":"true",children:"×"})}),(0,p.jsx)("h2",{className:"modal-title",children:i.t`Managed Users`})]}),(0,p.jsxs)(M.A.Body,{children:[(0,p.jsx)(et.A,{}),(0,p.jsx)("h4",{children:i.t`You can add managed users two ways. You can send them a special link, or send a message to an existing user with a request that they can sign in and accept.`}),(0,p.jsxs)("div",{className:"row",children:[(0,p.jsxs)("div",{className:"col-sm-6",children:[(0,p.jsx)("h2",{children:i.t`Add users with your magic link`}),(0,p.jsx)("p",{children:i.t`The easiest way to get started is to send users your magic link. To send it, you can:`}),(0,p.jsxs)("ul",{children:[(0,p.jsx)("li",{children:i.t`copy and paste it into an e-mail`}),(0,p.jsx)("li",{children:i.t`post it on a website or social media`}),(0,p.jsx)("li",{children:i.t`distribute it in any other way that works for you`})]}),(0,p.jsx)("p",{children:i.t`After accessing your link, users will be asked to sign in or register so they can accept you as their account manager.`}),(0,p.jsxs)("div",{className:"resorts",style:{marginBottom:"10px"},children:[(0,p.jsx)(Js(),{text:null==r?void 0:r.toUpperCase(),children:(0,p.jsx)("h3",{style:{marginBottom:"10px"},children:r})}),(0,p.jsx)("div",{className:"text-right",children:(0,p.jsx)(Js(),{text:null==r?void 0:r.toUpperCase(),children:(0,p.jsxs)("button",{className:"btn btn-default no-style",children:[(0,p.jsx)("i",{className:"copy","aria-hidden":"true"})," ",i.t`Copy to clipboard`]})})})]}),(0,p.jsx)("p",{style:{marginTop:"30px"},children:i.t`If you wish to change your code, and disable the current one, use the button below.`}),(0,p.jsx)("button",{className:"btn btn-danger pull-right btn-sm no-style",onClick:()=>s((0,Xs.X5)()),children:i.t`Change Code`})]}),(0,p.jsxs)("div",{className:"col-sm-5 col-sm-offset-1",children:[(0,p.jsx)("h2",{children:i.t`Send a management request`}),(0,p.jsx)("p",{children:i.t`To send a request to one or more users who already have accounts, you can also use the dialog below.`}),(0,p.jsxs)("ol",{children:[(0,p.jsx)("li",{children:i.t`Start by entering the usernames or email addresses of the users you want to invite, one per line.`}),(0,p.jsx)("li",{children:i.t`The next time those users sign in, they will see a new message indicator at the top of their screen. The message will explain that you have requested to manage their
2                            account and provide them with the option to accept or deny your request.`})]}),n&&n.success&&(0,p.jsx)("div",{className:"alert alert-success",children:i.t`Invitations sent`}),n&&n.error&&(0,p.jsx)("div",{className:"alert alert-danger",children:n.error}),(0,p.jsx)(k.A,{model:"admin.users.invite.forms.inviteForm",onSubmit:e=>{s((0,Xs.rq)(e))},children:s=>(0,p.jsxs)("div",{children:[(0,p.jsx)(D.A,{model:"admin.users.invite.forms.inviteForm.users",form:s,required:!0,style:{height:"10em"},label:i.t`Usernames or Email Addresses`,type:"textarea"}),(0,p.jsx)(P.A,{request:e.inviteRequest,disabled:l&&l.usage>=l.limit,className:"btn btn-primary no-style btn-lg",children:i.t`Send Invites`})]})}),(0,p.jsx)("br",{}),dynamicValues&&!dynamicValues.isSubscriber&&(0,p.jsx)("p",{children:(0,p.jsx)("strong",{children:i.jt`Want an easier way to connect with your users? Check out our ${a}  that allow users to register directly with your site and include single sign on through
3                    Google or Microsoft Office 365 accounts.`})})]})]})]})]})}it.propTypes={};it.defaultProps={};const nt=(0,A.connect)(e=>tt(tt({},e.admin.users.invite),{},{quota:e.admin.users.quotaRequest.result}),e=>({dispatch:e}))(it);var lt=t(140),at=t(68232);function ot(e,s){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);s&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,r)}return t}function ct(e){for(var s=1;s<arguments.length;s++){var t=null!=arguments[s]?arguments[s]:{};
3s%2?ot(Object(t),!0).forEach(function(s){dt(e,s,t[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ot(Object(t)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(t,s))})}return e}function dt(e,s,t){return(s=function(e){var s=function(e,s){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,s||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===s?String:Number)(e)}(e,"string");return"symbol"==typeof s?s:s+""}(s))in e?Object.defineProperty(e,s,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[s]=t,e}class ht extends l.PureComponent{constructor(e){super(e);dt(this,"onPageChange",e=>{this.setState(ct(ct({},this.state),{},{start:e}))});dt(this,"editIfUnselected",e=>{if(this.props.groupSelected&&this.props.groupSelected.id===e.id){const e=e=>{e.preventDefault();this.props.updateTitle()};return(0,p.jsxs)("form",{style:{display:"inline-block"},onSubmit:e,children:[(0,p.jsx)("input",{required:!0,type:"text",className:"inline-edit",value:this.props.groupSelected.name,onChange:e=>this.props.onTitleChanged(e.target.value)}),(0,p.jsx)("input",{type:"submit",value:i.t`Update`,className:"btn btn-success no-style btn-sm"})]})}return(0,p.jsx)("span",{className:"white",children:e.name})});dt(this,"filterGroups",e=>e.filter(e=>e.name.toLowerCase().indexOf(this.state.searchTerm.toLowerCase())>=0)||[]);dt(this,"render",()=>{if(!q.L$(this.props.groupingsRequest))return(0,p.jsx)(Q.A,{newSiteLook:!0});const e=this.props.groups;if(!e||0===e.length)return(0,p.jsx)("h2",{className:"text-center",style:{lineHeight:"20vh"},children:i.t`No Groups Defined`});const s=Math.floor(this.filterGroups(e).length/this.state.numPerPage),t={};if(0==this.state.start)t.disabled=!0;const r={};if(this.state.start>=s)r.disabled=!0;const n=this.state.start*this.state.numPerPage,l=this.state.start*this.state.numPerPage+this.state.numPerPage;return(0,p.jsxs)("div",{children:[(0,p.jsxs)("div",{className:"filter",style:{minHeight:"initial"},children:[(0,p.jsx)("img",{src:at,alt:i.t`Filter icon`,className:"pull-left",style:{maxWidth:"30px",marginLeft:"-15px"}}),(0,p.jsx)("input",{type:"text",className:"form-control",style:{width:"calc(100% - 15px)"},value:this.state.searchTerm,onChange:e=>this.setState(ct(ct({},this.state),{},{start:0,searchTerm:e.target.value})),placeholder:i.t`Enter a few characters from the group name to refine the listing below`})]}),this.filterGroups(e).slice(n,l).map(e=>{var s;return(0,p.jsxs)("div",{className:"row group-row",children:[(0,p.jsxs)("h3",{className:"group-heading",children:[(0,p.jsx)("i",{style:{color:"white"},className:"groups group-icon","aria-hidden":"true"}),this.editIfUnselected(e),(null===(s=dynamicValues.userProfile)||void 0===s?void 0:s.hasSchoolAdmin)&&(0,p.jsxs)("span",{children:[(0,p.jsx)("a",{onClick:()=>{if(confirm(i.t`Are you sure you want to remove the group: ${e.name}`))this.props.removeGroup(e.id)},className:"remove-group delete",style:{marginRight:"1em"},children:(0,p.jsx)("span",{className:"sr-only",children:i.t`Delete Group`})}),(0,p.jsx)("a",{style:{visibility:this.props.groupSelected&&this.props.groupSelected.id===e.id?"hidden":"visible",marginRight:"0.5em"},className:"rename-group edit",onClick:()=>this.props.toggleEdit(e),children:(0,p.jsx)("span",{className:"sr-only",children:i.t`Rename Group`})})]})]}),(0,p.jsx)("div",{className:"col-sm-6",children:(0,p.jsxs)("table",{className:"tbl table",children:[(0,p.jsxs)("thead",{children:[(0,p.jsx)("tr",{children:(0,p.jsx)("th",{colSpan:"4",className:"title",children:i.t`Members`})}),(0,p.jsxs)("tr",{children:[(0,p.jsx)("th",{children:i.t`Last`}),(0,p.jsx)("th",{children:i.t`First`}),(0,p.jsx)("th",{children:i.t`Username`}),(0,p.jsx)("th",{children:i.t`Action`})]})]}),(0,p.jsx)("tbody",{children:(e.members||[]).map((s,t)=>(0,p.jsxs)("tr",{className:t%2==0?"even":"odd",children:[(0,p.jsx)("td",{children:s.lastName||""}),(0,p.jsx)("td",{children:s.firstName||""}),(0,p.jsx)("td",{children:s.ssoName||s.name}),(0,p.jsx)("td",{className:"text-center",children:(0,p.jsx)("a",{href:"#",className:"delete",onClick:()=>{const t=s.ssoName||s.name;if(confirm(i.t`Are you sure you want to remove ${t} as a member of ${e.name}`))this.props.removeMemberFromGroup(e.id,s.id)},children:(0,p.jsx)("span",{className:"sr-only",children:i.t`Delete`})})})]},`t1.row${t}`))})]})}),(0,p.jsx)("div",{className:"col-sm-6",children:(0,p.jsxs)("table",{className:"tbl table",children:[(0,p.jsxs)("thead",{children:[(0,p.jsx)("tr",{children:(0,p.jsx)("th",{colSpan:"4",className:"title",children:i.t`Owners`})}),(0,p.jsxs)("tr",{children:[(0,p.jsx)("th",{children:i.t`Last`}),(0,p.jsx)("th",{children:i.t`First`}),(0,p.jsx)("th",{children:i.t`Username`}),(0,p.jsx)("th",{children:i.t`Action`})]})]}),(0,p.jsx)("tbody",{children:(e.owners||[]).map((s,t)=>{var r;return(0,p.jsxs)("tr",{className:t%2==0?"even":"odd",children:[(0,p.jsx)("td",{children:s.lastName||""}),(0,p.jsx)("td",{children:s.firstName||""}),(0,p.jsx)("td",{children:s.ssoName||s.name}),(0,p.jsx)("td",{className:"text-center",children:(null===(r=dynamicValues.userProfile)||void 0===r?void 0:r.hasSchoolAdmin)&&s.id!==e.defaultFor&&(0,p.jsx)("a",{className:"delete",onClick:()=>{const t=s.ssoName||s.name;if(confirm(i.t`Are you sure you want to remove ${t} as an owner of ${e.name}`))this.props.removeOwnerFromGroup(e.id,s.id)},children:(0,p.jsx)("span",{className:"sr-only",children:i.t`Delete`})})})]},`t2.row${t}`)})})]})})]},`group${e.id}`)}),s>0&&(0,p.jsx)("div",{className:"text-center",style:{marginTop:"25px"},children:(0,p.jsxs)(lt.A,{children:[(0,p.jsx)(lt.A.First,ct({onClick:()=>this.onPageChange(0)},t)),(0,p.jsx)(lt.A.Prev,ct({onClick:()=>this.onPageChange(Math.max(0,this.state.start-1))},t)),(0,p.jsx)(lt.A.Item,{disabled:!0,children:i.t`page `+(this.state.start+1)+i.t` of `+(s+1)}),(0,p.jsx)(lt.A.Next,ct({onClick:()=>this.onPageChange(Math.min(s,this.state.start+1))},r)),(0,p.jsx)(lt.A.Last,ct({onClick:()=>this.onPageChange(s)},r))]})})]})});this.editIfUnselected=this.editIfUnselected.bind(this);this.onPageChange=this.onPageChange.bind(this);this.state={start:0,numPerPage:10,searchTerm:""}}componentDidMount(){this.props.dispatch((0,de.P$)())}}const ut=(0,A.connect)(e=>ct(ct({},e.admin.users.groupings),{},{groupingsRequest:e.admin.users.groupingsRequest}),e=>({dispatch:e,clearGroupModal:()=>{H.N.push("/admin/users")},removeMemberFromGroup:(s,t)=>e((0,de.A0)({groupId:s,userId:t})).then(s=>{e((0,de.uu)());setTimeout(()=>e((0,de.x5)(!0)),1e3);return s}),removeOwnerFromGroup:(s,t)=>e((0,de.xR)({groupId:s,userId:t})).then(s=>{e((0,de.uu)());setTimeout(()=>e((0,de.x5)(!0)),1e3);return s}),removeGroup:s=>e((0,de.Ni)({groupId:s})).then(s=>{e((0,de.uu)());setTimeout(()=>e((0,de.x5)(!0)),1e3);return s}),toggleEdit:s=>e((0,de.Fn)(s)),updateTitle:()=>e((0,de.so)()),onTitleChanged:s=>e((0,de.Lm)("name",s))}
3))(e=>{var s;const{dispatch:t,groups:r,clearGroupModal:n,removeOwnerFromGroup:l,removeMemberFromGroup:a,removeGroup:o,toggleEdit:c,updateTitle:d,groupSelected:h,onTitleChanged:u}=e;return(0,p.jsxs)(M.A,{show:!0,onHide:n,dialogClassName:"fullscreen-modal uncontained",children:[(0,p.jsxs)(M.A.Header,{style:{color:"white",fontWeight:"bold"},children:[(0,p.jsx)("button",{type:"button",className:"close","aria-label":i.t`Close`,onClick:n,children:(0,p.jsx)("span",{"aria-hidden":"true",children:"×"})}),(0,p.jsx)("div",{className:"container",children:(0,p.jsx)("h2",{className:"modal-title",children:i.t`Groups`})})]}),(0,p.jsx)(M.A.Body,{className:"with-scroll",children:(0,p.jsxs)("div",{className:"container",children:[(0,p.jsx)(et.A,{}),(0,p.jsx)(ht,ct({},e))]})}),(0,p.jsx)(M.A.Footer,{children:(0,p.jsx)("div",{className:"container",children:dynamicValues.isSubscriber&&(null===(s=dynamicValues.userProfile)||void 0===s?void 0:s.hasSchoolAdmin)&&(0,p.jsxs)(C.N_,{to:"/admin/users/importer",className:"btn btn-default small btn-sm",children:[(0,p.jsx)("i",{style:{color:"black"},className:"import","aria-hidden":"true"})," ",i.t`Import Groups`]})})})]})});var mt=t(54632),pt=t(91623),xt=t(12882);function jt(e){return(0,p.jsx)("div",{children:(0,p.jsx)(r.qh,{path:"/admin/users",children:(0,p.jsxs)(Qs,{children:[(0,p.jsx)(r.qh,{path:"/admin/users/assignLesson/:page",component:Ys.s}),(0,p.jsx)(r.qh,{path:"/admin/users/invite",component:nt}),(0,p.jsx)(r.qh,{path:"/admin/users/help",component:Ks}),(0,p.jsx)(r.qh,{path:"/admin/users/groups",component:ut}),(0,p.jsx)(r.qh,{path:"/admin/users/remove",component:mt.A}),(0,p.jsx)(r.qh,{path:"/admin/users/combine",component:pt.A}),(0,p.jsx)(r.qh,{path:"/admin/users/importer",children:(0,p.jsx)(xt.A,{})})]})})})}jt.propTypes={};jt.defaultProps={};const ft=jt;var gt=t(15954),vt=t(17347);const bt=({profile:e,dispatch:s,deleteRequest:t,toggleActive:r,pagination:n,toggleActiveRequest:l})=>{return(0,p.jsxs)("div",{className:"user-card",style:{height:"100px",padding:"0.5em",marginRight:"5px",borderBottom:"1px solid #ccc"},children:[(0,p.jsx)("div",{className:"media-left hidden-xs",children:(0,p.jsx)("a",{href:`/profiles/${e.type}/${e.id}`,children:(0,p.jsx)("img",{className:"media-object img-responsive img-circle",style:{width:"75px",height:"75px",maxWidth:"75px",maxHeight:"75px",marginRight:"25px"},src:(0,vt.C2)(e.type),alt:"user avatar"})})}),(0,p.jsxs)("div",{className:"media-body",style:{overflow:"visible"},children:[(0,p.jsx)("h4",{className:"media-heading",style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",height:"1.2em"},children:(0,p.jsx)("a",{href:`/profiles/${e.type}/${e.id}`,children:e.name||i.t`Untitled`})}),(0,p.jsxs)("div",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",height:"1.2em"},children:[i.t`Created:`," ",e.created?(0,He.A)(new Date(e.created),new Date,{addSuffix:!0}):"N/A"]})]}),(0,p.jsxs)("div",{className:"media-right text-right",style:{minWidth:"110px"},children:[(0,p.jsxs)("div",{style:{fontSize:".8em"},children:[(0,p.jsxs)("span",{className:"pull-right",children:[i.t`Approved:`," ",e.approved&&(0,p.jsx)("i",{className:"fal fa-check-square"})||(0,p.jsx)("i",{className:"fal fa-square"})]}),(0,p.jsxs)("span",{className:"pull-right",children:[i.t`Published:`," ",e.active&&(0,p.jsx)("i",{className:"fal fa-check-square"})||(0,p.jsx)("i",{className:"fal fa-square"})]})]}),(0,p.jsx)("div",{className:"pull-right",style:{width:"110px",marginTop:"6px",whiteSpace:"nowrap",position:"relative"},children:(0,p.jsxs)("div",{className:"btn-group",children:[(0,p.jsxs)("button",{type:"button",className:"btn no-style btn-default dropdown-toggle","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",children:[(0,p.jsx)("i",{className:"useraction fa-lg","aria-hidden":"true"})," ",i.t`Actions`,(0,p.jsx)("span",{className:"caret",style:{marginLeft:"4px",marginRight:"5px"}}),(0,p.jsx)("span",{className:"sr-only",children:i.t`Toggle Dropdown`})]}),(0,p.jsx)("div",{className:"dropdown-menu dropdown-menu-right",style:{backgroundColor:"#f6f6f6"},children:(0,p.jsxs)("div",{className:"container-fluid",style:{minWidth:"200px"},children:[(0,p.jsx)("div",{className:"col-xs-12",children:(0,p.jsxs)("ul",{style:{listStyle:"none",paddingLeft:"0",marginLeft:"0"},children:[(0,p.jsx)("li",{className:"dropdown-header",style:{fontWeight:"bold",color:"black",fontSize:"1.2em",paddingLeft:"0px",borderBottom:"1px solid rgb(221, 221, 221)",marginBottom:"5px"},children:i.t`Interact`}),(0,p.jsx)("li",{className:"clear",style:{paddingLeft:"0"},children:(0,p.jsxs)(C.N_,{to:`/profiles/${e.type}/${e.id}`,className:"",children:[(0,p.jsx)("i",{className:"back"})," ",i.t`View`]})}),!e.approved&&(null===(a=dynamicValues.userProfile)||void 0===a?void 0:a.isRoot)&&(0,p.jsx)("li",{className:"clear",style:{paddingLeft:"0"},children:(0,p.jsxs)(C.N_,{to:`/admin/profiles/manage/approval/${e.id}`,className:"",children:[(0,p.jsx)("i",{className:"check"}
3)," ",i.t`Approval`]})}),(0,p.jsx)("li",{className:"clear",style:{paddingLeft:"0"},children:e.active&&(0,p.jsxs)("a",{href:"javascript:void(0)",onClick:()=>s(r(e,n.current)),className:"",children:[(0,p.jsx)("i",{className:"eye-closed"})," ",i.t`Unpublish`]})||(0,p.jsxs)("a",{href:"javascript:void(0)",onClick:()=>s(r(e,n.current)),className:"",children:[(0,p.jsx)("i",{className:"eye"})," ",i.t`Publish`]})}),(0,p.jsx)("li",{className:"clear",style:{paddingLeft:"0"},children:(0,p.jsxs)(C.N_,{to:`/admin/profiles/manage/notes/${e.id}`,className:"",children:[(0,p.jsx)("i",{className:"edit"})," ",i.t`Contact Notes`]})}),(0,p.jsx)("li",{className:"clear",style:{paddingLeft:"0"},children:(0,p.jsxs)(C.N_,{to:`/admin/profiles/manage/contacts/${e.id}`,className:"",children:[(0,p.jsx)("i",{className:"message"})," ",i.t`Contacts`]})})]})}),(0,p.jsx)("div",{className:"col-xs-12",children:(0,p.jsxs)("ul",{style:{listStyle:"none",marginRight:"10px"},children:[(0,p.jsx)("li",{className:"divider"}),(0,p.jsx)("li",{style:{paddingLeft:"0",marginLeft:"0"},children:(0,p.jsxs)("a",{label:"Remove Profile",className:"pull-right",style:{color:"maroon"},href:"javascript:void(0)",onClick:()=>{if(confirm(i.t`Are you sure you want to delete this profile?  This action cannot be undone.`))s((0,gt.lp)(e,n.current))},children:[(0,p.jsx)("i",{className:"delete"})," ",i.t`Delete Profile`]})})]})})]})})]})})]})]});var a};var yt=t(82346);function Nt(e,s){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);s&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,r)}return t}function wt(e){for(var s=1;s<arguments.length;s++){var t=null!=arguments[s]?arguments[s]:{};s%2?Nt(Object(t),!0).forEach(function(s){At(e,s,t[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Nt(Object(t)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(t,s))})}return e}function At(e,s,t){return(s=function(e){var s=function(e,s){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,s||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===s?String:Number)(e)}(e,"string");return"symbol"==typeof s?s:s+""}(s))in e?Object.defineProperty(e,s,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[s]=t,e}class Ot extends l.Component{constructor(e){super(e);At(this,"toggleModal",()=>{this.setState(wt(wt({},this.state),{},{modalOpen:!this.state.modalOpen,copied:!1}))});this.state={modalOpen:!1}}render(){if(!dynamicValues.intakeform)return null;else return(0,p.jsxs)("div",{children:[(0,p.jsxs)("a",{href:"javascript:void(0)",onClick:()=>{this.toggleModal()},style:{marginLeft:"5px"},className:"action-icons btn btn-default btn-default small pull-right",children:[(0,p.jsx)("i",{style:{color:"black"},className:"share","aria-hidden":"true"})," ",i.t`Share Intake Form`]}),(0,p.jsxs)(M.A,{show:this.state.modalOpen,bsSize:"large",onHide:this.toggleModal,children:[(0,p.jsxs)(M.A.Header,{style:{color:"white",fontWeight:"bold"},children:[(0,p.jsx)("button",{type:"button",className:"close","aria-label":"Close",onClick:this.toggleModal,children:(0,p.jsx)("span",{"aria-hidden":"true",children:"×"})}),(0,p.jsx)("h2",{children:i.t`Share Intake Form`})]}),(0,p.jsxs)(M.A.Body,{children:[(0,p.jsx)("h4",{children:i.t`Share the link below to invite area partners into the system.`}),(0,p.jsx)("p",{children:i.t`You can click on the link to copy it to the clipboard, and when done you can share the link via e-mail, social media, or even SMS. Whatever works best for you.`}),(0,p.jsx)("p",{children:i.t`When they receive the link, they will be able to enter information about their organization. When submitted, you will be able to approve their submission before it appears for general consumption.`}),(0,p.jsx)(Js(),{text:dynamicValues.intakeform.url,onCopy:()=>this.setState(wt(wt({},this.state),{},{copied:!0})),children:(0,p.jsxs)("div",{className:"text-center",children:[(0,p.jsx)("a",{href:dynamicValues.intakeform.url,onClick:e=>e.preventDefault(),children:(0,p.jsx)("h3",{style:{marginBottom:"10px"},children:dynamicValues.intakeform.url})}),this.state.copied&&(0,p.jsxs)("div",{className:"alert alert-success",children:[(0,p.jsx)("i",{className:"fal fa-check"})," ",i.t`Copied to Clipboard`]})]})})]})]})]})}}const St=(0,A.connect)(e=>e.admin.localOpportunities,e=>({dispatch:e,showAddProfileModal:()=>{e((0,gt.FD)(!0))}}))(({openHelp:e,dispatch:s,intakeForms:t,showAddProfileModal:r})=>(0,p.jsx)("div",{id:"actionbar",children:(0,p.jsxs)("div",{className:"row",children:[(0,p.jsx)("div",{className:"col-xs-12 col-md-6",children:(0,p.jsxs)("h3",{style:{marginBottom:"0",lineHeight:"50px"},className:"section-heading",children:[(0,p.jsx)("img",{src:yt,style:{height:"50px",float:"left",marginRight:"5px"}})," ",i.t`Local Opportunities`]})}),(0,p.jsxs)("div",{className:"col-xs-12 col-md-6",children:[(0,p.jsxs)(C.N_,{to:"/admin/profiles/manage/help",style:{marginLeft:"10px",color:"white"},className:"action-icons btn btn-primary small pull-right",children:[(0,p.jsx)("i",{style:{color:"white"},className:"help fa-lg"})," ",i.t`Help`]}),!1,(0,p.jsxs)(C.N_,{to:"/localopportunities/admin/queue",style:{marginLeft:"10px"},className:"action-icons btn btn-default small pull-right",children:[(0,p.jsx)("i",{style:{color:"black"},className:"check fa-lg"}
3)," ",i.t`Approval Queue`]}),(0,p.jsx)(Ot,{dispatch:s,intakeForms:t}),(0,p.jsxs)("a",{href:"javascript:void(0)",onClick:r,style:{marginLeft:"5px"},className:"action-icons btn btn-default btn-default small pull-right",children:[(0,p.jsx)("i",{style:{color:"black"},className:"add","aria-hidden":"true"})," ",i.t`Create Profile`]})]})]})})),Ct=({resultCount:e,dispatch:s})=>{const t=(0,p.jsx)("b",{children:(e||0).toLocaleString()});return(0,p.jsx)("div",{className:"footerBar",children:(0,p.jsx)("div",{className:"commonBar",children:(0,p.jsxs)("div",{className:"container",children:[i.jt`For the ${t} profiles below:`,(0,p.jsx)(Ce.A,{id:"split-button-dropup",className:"no-style",title:(0,p.jsxs)("span",{children:[(0,p.jsx)("i",{className:"report fa-lg","aria-hidden":"true"})," ",i.t`Run a report`]}),style:{marginLeft:"15px"},onSelect:e=>s((0,gt._A)(e)),children:(0,p.jsx)(Pe.A,{eventKey:"contact",children:i.t`Contact Report`})})]})})})};var Pt=t(18568);const kt=({data:e})=>{if(!e)return(0,p.jsx)(Pt.A,{});else return(0,p.jsx)("div",{children:(0,p.jsxs)("table",{className:"tbl tbl-striped",children:[(0,p.jsx)("thead",{children:(0,p.jsxs)("tr",{children:[(0,p.jsx)("th",{className:"list-header date",children:i.t`Company`}),(0,p.jsx)("th",{className:"list-header",children:i.t`First Name`}),(0,p.jsx)("th",{className:"list-header",children:i.t`Last Name`}),(0,p.jsx)("th",{className:"list-header",children:i.t`Position`}),(0,p.jsx)("th",{className:"list-header",children:i.t`Email`}),(0,p.jsx)("th",{className:"list-header",children:i.t`Address`}),(0,p.jsx)("th",{className:"list-header",children:i.t`City`}),(0,p.jsx)("th",{className:"list-header",children:i.t`State`}),(0,p.jsx)("th",{className:"list-header",children:i.t`Zip`})]})}),(0,p.jsx)("tbody",{children:e.map((e,s)=>(0,p.jsxs)("tr",{className:"list-item "+(s%2==0?"even":"odd"),children:[(0,p.jsx)("td",{className:"list-cell",children:(0,p.jsx)("a",{href:e.profileURL||"#",children:e.company})}),(0,p.jsx)("td",{className:"list-cell",children:e.firstName}),(0,p.jsx)("td",{className:"list-cell",children:e.lastName}),(0,p.jsx)("td",{className:"list-cell",children:e.position}),(0,p.jsx)("td",{className:"list-cell",children:e.email}),(0,p.jsx)("td",{className:"list-cell",children:e.address}),(0,p.jsx)("td",{className:"list-cell",children:e.city}),(0,p.jsx)("td",{className:"list-cell",children:e.state}),(0,p.jsx)("td",{className:"list-cell",children:e.zip})]},`row-${s}`))})]})})};function Dt(e,s){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);s&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,r)}return t}function qt(e){for(var s=1;s<arguments.length;s++){var t=null!=arguments[s]?arguments[s]:{};s%2?Dt(Object(t),!0).forEach(function(s){Ft(e,s,t[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Dt(Object(t)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(t,s))})}return e}function Ft(e,s,t){return(s=function(e){var s=function(e,s){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,s||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===s?String:Number)(e)}(e,"string");return"symbol"==typeof s?s:s+""}(s))in e?Object.defineProperty(e,s,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[s]=t,e}const Rt=({reportId:e,data:s,closeModal:t,dispatch:r})=>{const n=(e,s,t)=>{const n=r((0,gt._V)());return(0,p.jsx)(be.A,{placement:"bottom",overlay:(0,p.jsx)(ye.A,{placement:"bottom",id:"tooltip",children:i.t`Click here to download this report as a ${t} `}),children:(0,p.jsxs)("form",{action:e,method:"POST",target:"_blank",style:{display:"inline-block"},children:[(0,p.jsx)("input",{type:"hidden",name:"json",value:JSON.stringify(qt({},n))}),(0,p.jsx)("button",{type:"submit",style:{background:"transparent",border:"none"},children:(0,p.jsx)("i",{className:s})})]})})};return(0,p.jsxs)(M.A,{show:!!e,onHide:t,dialogClassName:"fullscreen-modal",children:[(0,p.jsxs)(M.A.Header,{style:{color:"white",fontWeight:"bold"},children:[(0,p.jsx)("button",{type:"button",className:"close","aria-label":i.t`Close`,onClick:t,children:(0,p.jsx)("span",{"aria-hidden":"true",children:"×"})}),(0,p.jsx)(M.A.Title,{children:(0,p.jsx)("span",{children:(()=>
3{if("contact"===e)return i.t`Contact Report`;else return i.t`Report`})()})}),(()=>{const s=`/export/admin/localopportunities/report/${e}`;if(!s)return null;return(0,p.jsx)("div",{className:"modal-actions",children:(()=>{const e=[];e.push(n(`${s}.pdf`,"save boxed-icon",i.t`PDF file`));e.push(n(`${s}.xls`,"xls boxed-icon",i.t`Microsoft Excel (XLS) file`));e.push(n(`${s}.csv`,"report boxed-icon",i.t`CSV File`));return e})()})})()]}),(0,p.jsx)(M.A.Body,{children:(()=>{if("contact"===e)return(0,p.jsx)(kt,{data:s});else return null})()})]})},Tt=(0,A.connect)(e=>e.admin.localOpportunities,e=>({dispatch:e,onFieldChange:(s,t)=>{const r={};r[s]=t;e((0,gt.bt)(r,s,t))},onCreationFieldChange:(s,t)=>{const r={};r[s]=t;e((0,gt.ok)(r,s,t))},reloadList:()=>{e((0,gt.K1)())},onUpdateSearch:(s,t)=>{e((0,gt.YX)(s,t))},onSave:()=>{e((0,gt.SH)())},onPageChange:s=>{e((0,gt.XA)(s))},hideAddProfileModal:()=>{e((0,gt.FD)(!1))}}))(({other:{profiles:e,filters:s,report:t,selectedReportId:r,intakeForms:n,totalResults:l,pagination:a,companyProfileFieldValues:o,addProfileModalShown:c,filter:d},dispatch:h,createRequest:u,reloadList:m,deleteRequest:x,toggleActiveRequest:j,onSave:f,children:g,onCreationFieldChange:v,onPageChange:b,onFieldChange:y,onUpdateSearch:N,hideAddProfileModal:w})=>{var A,O,S,C,k,D;(0,B.es)((0,gt.$8)());(0,B.es)((0,gt.K1)());if(!e)return(0,p.jsx)(Q.A,{newSiteLook:!0});return(0,p.jsxs)("div",{className:"container",children:[(0,p.jsx)(St,{intakeForms:n,dispatch:h}),(0,p.jsx)("div",{className:"filter",style:{marginBottom:".25em"},children:(0,p.jsxs)("form",{onSubmit:e=>{e.preventDefault();m()},children:[(0,p.jsxs)("fieldset",{children:[(0,p.jsx)("div",{className:"row",children:(0,p.jsxs)("div",{className:"col-xs-12",children:[(0,p.jsx)("label",{htmlFor:"searchterm",children:i.t`Search for Term`}),(0,p.jsx)("input",{type:"text",className:"form-control text-input",id:"searchterm",value:d.searchTerm,onChange:e=>N("searchTerm",e.target.value),placeholder:i.t`enter a term to search`})]})}),(0,p.jsxs)("div",{className:"row",children:[(0,p.jsx)("div",{className:"col-xs-4",children:(0,p.jsxs)(us.A,{children:[(0,p.jsx)("label",{htmlFor:"profiletypeselect",children:i.t`Profile Type`}),(0,p.jsxs)(ps.A,{componentClass:"select",id:"profiletypeselect",value:d.includeProfileType,onChange:e=>N("includeProfileType",e.target.value),style:{borderRadius:0},children:[(0,p.jsx)("option",{value:"",children:i.t`Any Type`}),(0,p.jsx)("option",{value:"company",children:i.t`Company`}),(0,p.jsx)("option",{value:"program",children:i.t`Education & Training`}),(0,p.jsx)("option",{value:"institution",children:i.t`Institution`}),(0,p.jsx)("option",{value:"offeringtype",children:i.t`Work Based Learning Type`})]})]})}),(0,p.jsxs)("div",{className:"col-xs-4",children:[(0,p.jsx)("label",{htmlFor:"searchterm",children:i.t`Published`}),(0,p.jsx)("br",{}),(0,p.jsxs)(ps.A,{componentClass:"select",id:"includeUnpublished",value:d.includeUnpublished,onChange:e=>N("includeUnpublished",e.target.value),style:{borderRadius:0},children:[(0,p.jsx)("option",{value:"",children:i.t`Show All`}),(0,p.jsx)("option",{value:"true",children:i.t`Only Published`}),(0,p.jsx)("option",{value:"false",children:i.t`Only Unpublished`})]})]}),(0,p.jsxs)("div",{className:"col-xs-4",children:[(0,p.jsx)("label",{htmlFor:"searchterm",children:i.t`Approved`}),(0,p.jsx)("br",{}),(0,p.jsxs)(ps.A,{componentClass:"select",id:"includeUnapproved",value:d.includeUnapproved,onChange:e=>N("includeUnapproved",e.target.value),style:{borderRadius:0},children:[(0,p.jsx)("option",{value:"",children:i.t`Show All`}),(0,p.jsx)("option",{value:"true",children:i.t`Only Approved`}),(0,p.jsx)("option",{value:"false",children:i.t`Only Unapproved`})]})]})]}),(0,p.jsxs)("div",{className:"row",children:[(0,p.jsx)("div",{className:"col-xs-4",children:(0,p.jsxs)(us.A,{children:[(0,p.jsx)("label",{htmlFor:"clusterType",children:i.t`Cluster`}),(0,p.jsxs)(ps.A,{componentClass:"select",id:"clusterType",value:d.clusterType,onChange:e=>N("clusterType",e.target.value),style:{borderRadius:0},children:[(0,p.jsx)("option",{value:"",children:i.t`Any Cluster`}),null==s?void 0:null===(A=s.result)||void 0===A?void 0:null===(O=A.clusters)||void 0===O?void 0:O.map(e=>(0,p.jsx)("option",{value:e.id,children:e.name}))]})]})}),null==s?void 0:null===(S=s.result)||void 0===S?void 0:null===(C=S.cluster
3s)||void 0===C?void 0:null===(k=C.tags)||void 0===k?void 0:k.map((e,s)=>(0,p.jsx)("div",{className:"col-xs-4",children:(0,p.jsxs)(us.A,{children:[(0,p.jsx)("label",{htmlFor:`tg-${s}`,children:e.name}),(0,p.jsxs)(ps.A,{componentClass:"select",id:`tg-${s}`,value:d[e.id],onChange:s=>N(e.id,s.target.value),style:{borderRadius:0},children:[(0,p.jsx)("option",{value:"",children:i.t`Any ${e.name}`}),(e.options||[]).map(e=>(0,p.jsx)("option",{value:e.id,children:e.name}))]})]})}))]})]}),(0,p.jsx)("div",{className:"nav",style:{marginTop:"1em"},children:(0,p.jsx)("input",{className:"btn btn-gray small",type:"submit",value:i.t`Filter`})})]})}),(0,p.jsx)(Ct,{resultCount:l,dispatch:h}),(0,p.jsxs)("div",{className:"",style:{marginTop:"10px"},children:[e.map((e,s)=>(0,p.jsx)(bt,{profile:e,dispatch:h,deleteRequest:x,pagination:a,toggleActive:gt.PM,toggleActiveRequest:j})),(0,p.jsx)("div",{className:"row text-center",children:(0,ke._B)(a,b)})]}),g,(0,p.jsx)(Rt,{data:t.result,closeModal:()=>h((0,gt.G0)()),dispatch:h,reportId:r}),(0,p.jsxs)(M.A,{show:c,bsSize:"large",onHide:w,children:[(0,p.jsxs)(M.A.Header,{style:{color:"white",fontWeight:"bold"},children:[(0,p.jsx)("button",{type:"button",className:"close","aria-label":"Close",onClick:w,children:(0,p.jsx)("span",{"aria-hidden":"true",children:"×"})}),(0,p.jsx)("h2",{children:i.t`Add Opportunity`})]}),(0,p.jsx)(M.A.Body,{children:(0,p.jsxs)("form",{onSubmit:e=>e.preventDefault(),children:[(0,p.jsxs)("div",{className:"row profile-type-button",children:[(0,p.jsx)("div",{className:"col-xs-12",children:(0,p.jsx)("h3",{children:i.t`First select the type of opportunity to create`})}),(0,p.jsx)("div",{className:"col-xs-4",children:(0,p.jsxs)("a",{href:"javascript:void(0)",className:"company"===o.profileType?"selected":"unselected",onClick:()=>v("profileType","company"),children:[(0,p.jsx)("img",{src:(0,vt.C2)("company"),alt:"Img for company"}),i.t`Company`]})}),(0,p.jsx)("div",{className:"col-xs-4",children:(0,p.jsxs)("a",{href:"javascript:void(0)",className:"program"===o.profileType?"selected":"unselected",onClick:()=>v("profileType","program"),children:[(0,p.jsx)("img",{src:(0,vt.C2)("program"),alt:"Img for program"}),i.t`Education & Training`]})}),(0,p.jsx)("div",{className:"col-xs-4",children:(0,p.jsxs)("a",{href:"javascript:void(0)",className:"institution"===o.profileType?"selected":"unselected",onClick:()=>v("profileType","institution"),children:[(0,p.jsx)("img",{src:(0,vt.C2)("institution"),alt:"Img for institution"}),i.t`Institution`]})})]}),(0,p.jsxs)("div",{className:!o.profileType?"add-step inactive-step":"add-step",children:[(0,p.jsx)("h3",{children:i.t`Now, what should the profile be called?`}),(0,p.jsxs)(us.A,{controlId:"companyName",validationState:o.profileType&&o.companyName.length<1?"error":"",children:[(0,p.jsx)(ms.A,{className:"sr-only",children:i.t`Name`}),(0,p.jsx)(ps.A,{required:!0,className:"text-input input-lg",type:"text",value:o.companyName,onChange:e=>{v("companyName",e.target.value)},placeholder:i.t`Profile Name`})]}),(null===(D=dynamicValues.userProfile)||void 0===D?void 0:D.isRoot)&&(0,p.jsxs)(us.A,{controlId:"companyName",style:{marginTop:"15px"},validationState:o.profileType&&o.companyName.length<1?"error":"",children:[(0,p.jsx)(ms.A,{children:i.t`Number of Columns`}),(0,p.jsxs)(ps.A,{required:!1,className:"text-input input-lg",componentClass:"select",value:o.numColumns,onChange:e=>{v("numColumns",e.target.value)},placeholder:i.t`Profile Name`,children:[(0,p.jsx)("option",{value:"-1",children:i.t`Default`}),(0,p.jsx)("option",{value:"1",children:1}),(0,p.jsx)("option",{value:"2",children:2}),(0,p.jsx)("option",{value:"3",children:3}),(0,p.jsx)("option",{value:"4",children:4})]})]}),(0,p.jsx)("div",{className:"actions text-center",style:{marginTop:"25px"},children:(0,p.jsx)(P.A,{className:"btn btn-primary",request:u,disabled:o.companyName.length<1||o.profileType.length<2,onClick:f,children:i.t`Create Opportunity`})})]})]})})]})]})});var Et=t(22208);const Lt=(0,A.connect)(e=>e.admin.certifications,e=>({dispatch:e}))(e=>{(0,B.es)((0,Et.p_)());const{dispatch:s,listRequest:{result:{profiles:t=[],pagination:r={}}},promotionRequest:n}=e;return(0,p.jsx)("div",{className:"container",children:(0,p.jsxs)("table",{className:"tbl table table-striped",style:{marginTop:"10px"},children:[(0,p.jsx)("thead",{children:(0,p.jsxs)("tr",{children:[(0,p.jsx)("th",{children:i.t`Name`}),(0,p.jsx)("th",{style:{textAlign:"center"},children:i.t`Active`}),(0,p.jsx)("th",{style:{textAlign:"center"},children:i.t`Promoted`}),(0,p.jsx)("th",{children:i.t`Created`}),(0,p.jsx)("th",{style:{textAlign:"center"},children:i.t`Actions`})]})}),(0,p.jsx)("tbody",{children:t.map(e=>{return(0,p.jsxs)("tr",{children:[(0,p.jsx)("td",{children:(0,p.jsx)("a",{href:`/profiles/${e.type}/${e.id}`,children:e.name})}),(0,p.jsx)("td",{style:{textAlign:"center"},children:e.active&&(0,p.jsx)("i",{className:"fal fa-check-square"})||(0,p.jsx)("i",{className:"fal fa-square"})}),(0,p.jsx)("td",{style:{textAlign:"center"},children:e.promoted&&(0,p.jsx)("i",{className:"fal fa-check-square"})||(0,p.jsx)("i",{className:"fal fa-square"})}),(0,p.jsx)("td",{children:(t=e.created,new Date(t).toLocaleDateString())}),(0,p.jsx)("td",{style:{textAlign:"center"},children:(0,p.jsx)(P.A,{request:n,loadOnly:!0,requestMatch:s=>s.origin.profileId===e.id,onClick:()=>s(Et.YQ(e)).then(()=>s(Et.p_(r.current))),className:"btn btn-default no-style",children:i.t`Toggle Promotion`})})]},e.id);var t})}),(0,p.jsx)("tfoot",{children:(0,p.jsx)("tr",{children:(0,p.jsx)("th",{colSpan:"5",className:"list-footer",children:(0,ke._B)(r,e=>s(Et.p_(e)))})})})]})})});var It=t(5513),Mt=t(46332),$t=t(46596);function zt(e,s){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);s&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,r)}return t}function Vt(e){for(var s=1;s<arguments.length;s++){var t=null!=arguments[s]?arguments[s]:{};
3s%2?zt(Object(t),!0).forEach(function(s){Ht(e,s,t[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):zt(Object(t)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(t,s))})}return e}function Ht(e,s,t){return(s=function(e){var s=function(e,s){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,s||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===s?String:Number)(e)}(e,"string");return"symbol"==typeof s?s:s+""}(s))in e?Object.defineProperty(e,s,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[s]=t,e}const Bt=(0,A.connect)(e=>Vt(Vt({},e.localOpportunities.approval),{},{surveyResponse:e.surveys.surveyResponse}),e=>({dispatch:e}))(e=>{const s=(0,r.g)();(0,B.es)((0,Mt.kQ)(s.profileId),[s.profileId]);const{result:t,dispatch:n,surveyResponse:l}=e,a=()=>H.N.push("/admin/profiles/manage"),{profile:o,intake:c}=t;if(!o)return null;else return(0,p.jsxs)(M.A,{show:!0,onHide:a,dialogClassName:"fullscreen-modal",children:[(0,p.jsxs)(M.A.Header,{style:{color:"white",fontWeight:"bold"},children:[(0,p.jsx)("button",{type:"button",className:"close","aria-label":"Close",onClick:a,children:(0,p.jsx)("span",{"aria-hidden":"true",children:"×"})}),(0,p.jsx)("h2",{className:"modal-title",children:"Approval Queue"})]}),(0,p.jsxs)(M.A.Body,{children:[(0,p.jsxs)("a",{className:"btn btn-default pull-right",href:`/profiles/company/${o.id}`,children:[(0,p.jsx)("i",{className:"eye"})," ",i.t`View Profile`]}),(0,p.jsx)("h3",{children:o.title}),(0,p.jsxs)("p",{children:["Created: ",new Date(o.created).toLocaleDateString()]}),c.survey?(0,p.jsx)($t.A,{onSubmitSurvey:()=>{},validateResponse:()=>{},response:l,onRespond:()=>{},survey:c.survey},`survey-${c.survey.id}`):(0,p.jsx)("div",{children:i.t`To approve this profile, click on the button below`})]}),(0,p.jsx)(M.A.Footer,{children:(0,p.jsx)("div",{className:"container",children:(0,p.jsx)("input",{type:"button",value:"Approve",onClick:()=>n((0,Mt.FP)(o.id)).then(a),className:"btn btn-success pull-right"})})})]})});var Ut=t(84791);function _t(e,s){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);s&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,r)}return t}function Gt(e){for(var s=1;s<arguments.length;s++){var t=null!=arguments[s]?arguments[s]:{};s%2?_t(Object(t),!0).forEach(function(s){Wt(e,s,t[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):_t(Object(t)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(t,s))})}return e}function Wt(e,s,t){return(s=function(e){var s=function(e,s){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,s||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===s?String:Number)(e)}(e,"string");return"symbol"==typeof s?s:s+""}(s))in e?Object.defineProperty(e,s,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[s]=t,e}const Kt=(0,A.connect)(e=>Gt(Gt({},e.localOpportunities.notes),{},{noteFormRequest:e.localOpportunities.noteFormRequest}),e=>({dispatch:e}))(e=>{const s=(0,r.g)().profileId;(0,B.es)((0,gt.Qm)(s),[s]);const{result:t,dispatch:n,noteFormRequest:l}=e;if(!t)return(0,p.jsx)(Q.A,{newSiteLook:!0});const a=()=>H.N.push("/admin/profiles/manage"),o="localOpportunities.noteCreationForm";return(0,p.jsxs)(M.A,{show:!0,onHide:a,dialogClassName:"fullscreen-modal",children:[(0,p.jsxs)(M.A.Header,{style:{color:"white",fontWeight:"bold"},children:[(0,p.jsx)("button",{type:"button",className:"close","aria-label":"Close",onClick:a,children:(0,p.jsx)("span",{"aria-hidden":"true",children:"×"})}),(0,p.jsx)("h2",{className:"modal-title",children:"Notes"})]}),(0,p.jsxs)(M.A.Body,{children:[t.map((e,s)=>(0,p.jsxs)("div",{className:"row",style:s%2==0?{borderBottom:"1px dotted #ddd",backgroundColor:"#fafafa"}:{},children:[(0,p.jsxs)("div",{className:"col-xs-2",style:{paddingTop:"5px",paddingBottom:"5px"},children:[e.user?e.user.name:"user",(0,p.jsx)("br",{}),new Date(e.dateEntered).toLocaleDateString()]}
3),(0,p.jsxs)("div",{className:"col-xs-10",style:{paddingTop:"5px",paddingBottom:"5px"},children:[e.content,e.file?(0,p.jsx)("div",{children:(0,p.jsxs)("a",{href:e.file.url,children:[(0,p.jsx)("i",{className:"save"})," ",e.file.fileName]})}):null]})]})),(0,p.jsx)(k.A,{model:o,encType:"multipart/form-data",style:{marginTop:"25px",backgroundColor:"#eee",padding:"15px"},onSubmit:e=>{n((0,gt.p4)(s,e)).then(e=>{n({type:gt.hG,result:e})})},children:e=>(0,p.jsxs)("div",{children:[(0,p.jsx)(Ut.A,{model:`${o}.note`,form:e,required:!0,type:"textarea",label:"Note"}),(0,p.jsx)(Ut.A,{model:`${o}.file`,form:e,type:"file",label:"File Attachment"}),(0,p.jsx)("div",{children:(0,p.jsx)("div",{children:(0,p.jsx)(P.A,{className:"btn btn-success",loading:l.loading,error:l.error,success:(0,q.L$)(l)&&i.t`Added`,children:i.t`Add Note`})})})]})},"intake-form")]})]})});function Qt(e,s){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);s&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,r)}return t}function Yt(e){for(var s=1;s<arguments.length;s++){var t=null!=arguments[s]?arguments[s]:{};s%2?Qt(Object(t),!0).forEach(function(s){Zt(e,s,t[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Qt(Object(t)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(t,s))})}return e}function Zt(e,s,t){return(s=function(e){var s=function(e,s){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,s||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===s?String:Number)(e)}(e,"string");return"symbol"==typeof s?s:s+""}(s))in e?Object.defineProperty(e,s,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[s]=t,e}const Jt=(0,A.connect)(e=>Yt(Yt({},e.localOpportunities.contacts),{},{contactFormRequest:e.localOpportunities.contactFormRequest}),e=>({dispatch:e}))(e=>{const s=(0,r.g)().profileId;(0,B.es)((0,gt.um)(s),[s]);const[t,n]=(0,l.useState)({editing:!1,selectedId:null}),{result:a,dispatch:o,contactFormRequest:c}=e,d="localOpportunities.contactCreationForm";if(!a)return(0,p.jsx)(Q.A,{newSiteLook:!0});const h=()=>H.N.push("/admin/profiles/manage");return(0,p.jsxs)(M.A,{show:!0,onHide:h,dialogClassName:"fullscreen-modal",children:[(0,p.jsxs)(M.A.Header,{style:{color:"white",fontWeight:"bold"},children:[(0,p.jsx)("button",{type:"button",className:"close","aria-label":"Close",onClick:h,children:(0,p.jsx)("span",{"aria-hidden":"true",children:"×"})}),(0,p.jsx)("h2",{className:"modal-title",children:i.t`Contacts`})]}),(0,p.jsxs)(M.A.Body,{children:[(0,p.jsxs)("table",{className:"table tbl",children:[(0,p.jsxs)("thead",{children:[(0,p.jsx)("th",{children:i.t`First`}),(0,p.jsx)("th",{children:i.t`Last`}),(0,p.jsx)("th",{children:i.t`Position`}),(0,p.jsx)("th",{children:i.t`Email`}),(0,p.jsx)("th",{children:i.t`Phone`}),(0,p.jsx)("th",{children:i.t`Mobile`}),(0,p.jsx)("th",{children:i.t`Address`}),(0,p.jsx)("th",{children:i.t`City`}),(0,p.jsx)("th",{children:i.t`State`}),(0,p.jsx)("th",{children:i.t`Zip`}),(0,p.jsx)("th",{children:i.t`Actions`})]}),(0,p.jsxs)("tbody",{children:[a.map((e,s)=>(0,p.jsxs)("tr",{className:""+(s%2==0?"even":"odd"),style:t.selectedId==e.id?{backgroundColor:"#ccffce",borderLeft:"3px solid #757575"}:{},children:[(0,p.jsx)("td",{children:e.firstName}),(0,p.jsx)("td",{children:e.lastName}),(0,p.jsx)("td",{children:e.position}),(0,p.jsx)("td",{children:e.email}),(0,p.jsx)("td",{children:e.officePhone}),(0,p.jsx)("td",{children:e.mobilePhone}),(0,p.jsx)("td",{children:e.address}),(0,p.jsx)("td",{children:e.city}),(0,p.jsx)("td",{children:e.state}),(0,p.jsx)("td",{children:e.zip}),(0,p.jsx)("td",{children:(0,p.jsxs)("button",{className:"btn btn-default no-style btn-sm",onClick:()=>{n({editing:!0,selectedId:e.id});o((0,gt.AQ)(e,d))},children:[(0,p.jsx)("i",{className:"edit"})," ",i.t`Edit`]})})]})),0==a.length?(0,p.jsx)("tr",{children:(0,p.jsx)("td",{colSpan:"11",className:"text-center",children:i.t`No Contacts`})}):null]}),(0,p.jsx)("tfoot",{children:(0,p.jsx)("tr",{children:(0,p.jsx)("td",{colSpan:"11",className:"text-center",children:(0,p.jsxs)("button",{className:"btn btn-default no-style btn-sm",onClick:()=>{n({editing:!0,selectedId:null});o((0,gt.AQ)(gt.wO,d))},children:[(0,p.jsx)("i",{className:"edit"})," ",i.t`Create New`]})})})})]}),t.editing&&(0,p.jsx)(k.A,{model:d,style:{marginTop:"25px",backgroundColor:"#eee",padding:"15px"},onSubmit:e=>{const r=t.selectedId;n({editing:!1,selectedId:null});if(r)o((0,gt.CI)(s,r,e)).then(e=>{o({type:gt.$b,result:e})});else o((0,gt.vY)(s,e)).then(e=>{o({type:gt.e0,result:e})})},children:e=>(0,p.jsxs)("div",{children:[(0,p.jsx)("div",{className:"col-sm-6",children:(0,p.jsx)(Ut.A,{model:`${d}.firstName`,form:e,required:!0,type:"text",label:i.t`First Name`})}),(0,p.jsx)("div",{className:"col-sm-6",children:(0,p.jsx)(Ut.A,{model:`${d}.lastName`,form:e,required:!0,type:"text",label:i.t`Last Name`})}),(0,p.jsx)("div",{className:"col-sm-12",children:(0,p.jsx)(Ut.A,{model:`${d}.position`,form:e,required:!1,type:"text",label:i.t`Position`})}),(0,p.jsx)("div",{className:"col-sm-6",children:(0,p.jsx)(Ut.A,{model:`${d}.officePhone`,form:e,required:!1,type:"text",label:i.t`Office Phone`})}),(0,p.jsx)("div",{className:"col-sm-6",children:(0,p.jsx)(Ut.A,{model:`${d}.mobilePhone`,form:e,required:!1,type:"text",label:i.t`Mobile Phone`})}),(0,p.jsx)("div",{className:"col-sm-12",children:(0,p.jsx)(Ut.A,{model:`${d}.email`,form:e,required:!1,type:"text",label:i.t`Email Address`})}),(0,p.jsx)("div",{className:"col-sm-12",children:(0,p.jsx)(Ut.A,{model:`${d}.address`,form:e,required:!1,type:"text",label:i.t`Address`})}),(0,p.jsx)("div",{className:"col-sm-6",children:(0,p.jsx)(Ut.A,{model:`${d}.city`,form:e,required:!1,type:"text",label:i.t`City`})}),(0,p.jsx)("div",{className:"col-sm-3",children:(0,p.jsx)(Ut.A,{model:`${d}.state`,form:e,required:!1,type:"text",label:i.t`State`})}),(0,p.jsx)("div",{className:"col-sm-3",children:(0,p.jsx)(Ut.A,{model:`${d}.zip`,form:e,required:!1,type:"text",label:i.t`Zip`})}),(0,p.jsx)("div",{children:(0,p.jsxs)("div",{children:[(0,p.jsx)(P.A,{className:"btn btn-success",loading:c.loading,error:c.error,success:(0,q.L$)(c)&&i.t`Added`,children:i.t`Add Contact`}),(0,p.jsx)("button",{className:"btn btn-danger",onClick:()=>{n({editing:!1,selectedId:null});o((0,gt.AQ)(gt.wO,d))}
3,children:i.t`Cancel`})]})})]})},"contact-form")]})]})});function Xt(e){return(0,p.jsx)(r.qh,{path:"/admin/profiles",children:(0,p.jsx)(se.A,{name:i.t`Profiles`,adminOnly:!0,includePremium:!0,includeManager:!0,includeSchoolAdmin:!0,children:(0,p.jsxs)(r.dO,{children:[(0,p.jsx)(r.qh,{path:"/admin/profiles/manage",exact:!0,children:(0,p.jsx)(Tt,{})}),(0,p.jsx)(r.qh,{path:"/admin/profiles/manage/help",component:It.H,children:(0,p.jsx)(It.H,{version3:!0,collectionId:"profileadmin"})}),(0,p.jsx)(r.qh,{path:"/admin/profiles/manage/approval/:profileId",children:(0,p.jsx)(Bt,{})}),(0,p.jsx)(r.qh,{path:"/admin/profiles/manage/notes/:profileId",children:(0,p.jsx)(Kt,{})}),(0,p.jsx)(r.qh,{path:"/admin/profiles/manage/contacts/:profileId",children:(0,p.jsx)(Jt,{})}),(0,p.jsx)(r.qh,{path:"/admin/profiles/certifications",children:(0,p.jsx)(Lt,{})})]})})})}Xt.propTypes={};Xt.defaultProps={};const er=Xt;var sr=t(8618);var tr=t(30706);var rr=t(62842);const ir=()=>(0,p.jsxs)("div",{children:[(0,p.jsx)("h2",{children:i.t`An Upgrade Lets You:`}),(0,p.jsx)("div",{children:(0,p.jsxs)("div",{id:"cta",className:"row",children:[(0,p.jsxs)("div",{className:"col-xs-6 col-sm-2 text-center",children:[(0,p.jsx)("img",{alt:i.t`Images of addition students that can be managed`,"aria-hidden":"true",src:"/images/arkansas/marketing/icons/Headed2-Arkansas-Icons-0419-v1_Student.svg",style:{maxWidth:"75px"}}),(0,p.jsx)("p",{children:i.t`Manage Additional Students`})]}),(0,p.jsxs)("div",{className:"col-xs-6 col-sm-2 text-center",children:[(0,p.jsx)("img",{alt:i.t`Image of SSO providers`,"aria-hidden":"true",src:"/images/arkansas/marketing/icons/Headed2-Arkansas-Icons-0419-v1_SingleSignOn.svg",style:{maxWidth:"75px"}}),(0,p.jsx)("p",{children:i.t`Single Sign-On with Google, Clever, MS365`})]}),(0,p.jsx)("br",{style:{clear:"left"},className:"visible-xs"}),(0,p.jsxs)("div",{className:"col-xs-6 col-sm-2 text-center",children:[(0,p.jsx)("img",{alt:i.t`Image of hard drive to illustrate file storage`,"aria-hidden":"true",src:"/images/arkansas/marketing/icons/Headed2-Arkansas-Icons-0419-v1_FileStorage.svg",style:{maxWidth:"75px"}}),(0,p.jsx)("p",{children:i.t`Unlimited File Storage`})]}),(0,p.jsx)("br",{style:{clear:"left"},className:"visible-xs"}),(0,p.jsxs)("div",{className:"col-xs-6 col-sm-2 text-center",children:[(0,p.jsx)("img",{alt:i.t`Images of reports to illustrate additional reporting`,"aria-hidden":"true",src:"data:image/svg+xml,%3Csvg%20data-name%3D%22Layer%201%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20300%20300%22%3E%3Cpath%20d%3D%22M235.5%20261.7V98.9l-68.6-68.7H72.6a8.2%208.2%200%200%200-8.5%207.9v223.6a8.3%208.3%200%200%200%207.9%208.6h154.9a8.2%208.2%200%200%200%208.6-7.9z%22%20style%3D%22fill%3A%23f4c223%22%2F%3E%3Cpath%20d%3D%22M72.3%2030.2h94.6l68.6%2068.7v163.4a8.2%208.2%200%200%201-8.2%207.9H72a8.3%208.3%200%200%201-7.9-8.6V38.1a8.2%208.2%200%200%201%208.2-7.9m0-10a18.2%2018.2%200%200%200-18.2%2017.5v223.8a18%2018%200%200%200%204.8%2012.9%2017.6%2017.6%200%200%200%2012.7%205.8h155.7a18.2%2018.2%200%200%200%2018.2-17.5V98.9a9.9%209.9%200%200%200-2.9-7.1L174%2023.2a10%2010%200%200%200-7.1-3H72.3z%22%20style%3D%22fill%3A%231d1d1b%22%2F%3E%3Cpath%20d%3D%22M204.9%20158H94.7a5.1%205.1%200%200%201-5-5%205%205%200%200%201%205-5h110.2a5%205%200%200%201%205%205%205.1%205.1%200%200%201-5%205zm-31.7%2054.8H94.7a5.1%205.1%200%200%201-5-5%205%205%200%200%201%205-5h78.5a5%205%200%200%201%205%205%205%205%200%200%201-5%205zm31.7-27.4H94.7a5.1%205.1%200%200%201-5-5%205%205%200%200%201%205-5h110.2a5%205%200%200%201%205%205%205.1%205.1%200%200%201-5%205z%22%20style%3D%22fill%3A%231d1d1b%22%2F%3E%3Cpath%20style%3D%22fill%3A%23fff%22%20d%3D%22M170.8%2027.2v67.7h67.7l-67.7-67.7z%22%2F%3E%3Cpath%20d%3D%22M238.5%2099.9h-67.7a5%205%200%200%201-5-5V27.2a5%205%200%200%201%203.1-4.6%204.8%204.8%200%200%201%205.4%201.1l67.8%2067.7a5%205%200%200%201-3.6%208.5zm-62.7-10h50.6l-50.6-50.6z%22%20style%3D%22fill%3A%231d1d1b%22%2F%3E%3C%2Fsvg%3E",style:{maxWidth:"75px"}}),(0,p.jsx)("p",{children:i.t`Enhanced Reporting`})]}),(0,p.jsxs)("div",{className:"col-xs-6 col-sm-2 text-center",children:[(0,p.jsx)("img",{alt:i.t`Images of work based learning`,"aria-hidden":"true",src:rr,style:{maxWidth:"75px"}}),(0,p.jsx)("p",{children:i.t`Work-Based Learning Ready`})]}),(0,p.jsxs)("div",{className:"col-xs-6 col-sm-2 text-center",children:[(0,p.jsx)("img",{alt:i.t`Images of a badge to illustrate enhanced customer service`,"aria-hidden":"true",src:"/images/arkansas/marketing/icons/Headed2-Arkansas-Icons-0419-v1_GoldLevel.svg",style:{maxWidth:"75px"}}),(0,p.jsx)("p",{children:i.t`Gold-level Customer Service`})]})]})}),(0,p.jsx)("div",{className:"text-center",children:(0,p.jsx)("h4",{children:i.t`Plus Many Other Features...`})}),(0,p.jsx)("br",{}),(0,p.jsx)("br",{}),(0,p.jsx)("div",{className:"text-center",children:(0,p.jsx)("a",{className:"btn btn-primary",target:"_blank",href:dynamicValues&&dynamicValues.subscriptionPage,rel:"noreferrer",children:i.t`Learn More`})})]}),nr=({show:e,closeAction:s})=>(0,p.jsxs)(M.A,{show:e,bsSize:"lg",onHide:s,children:[(0,p.jsxs)(M.A.Header,{style:{color:"white",fontWeight:"bold"},children:[(0,p.jsx)("button",{type:"button",className:"close","aria-label":"Close",style:{color:"white"},onClick:s,children:(0,p.jsx)("span",{"aria-hidden":"true",children:"×"})}),(0,p.jsx)("h2",{children:i.t`This Lesson Requires a Subscription`})]}),(0,p.jsxs)(M.A.Body,{children:[(0,p.jsxs)("p",{style:{lineHeight:"40px",fontSize:"1.5rem",marginBottom:"25px"},children:[(0,p.jsx)("img",{src:tr,style:{height:"80px",marginRight:"10px",float:"left"}})," ",i.t`${dynamicValues.systemName} includes turnkey curriculum and lessons that were designed to address specific education standards.`]}),(0,p.jsx)("hr",{}),(0,p.jsx)(ir,{})]}),(0,p.jsx)(M.A.Footer,{children:(0,p.jsx)("button",{className:"btn btn-danger",onClick:s,children:i.t`Close`})})]}),lr=({show:e,closeAction:s,needsSubscription:t})=>(0,p.jsxs)(M.A,{show:e,bsSize:"lg",onHide:s,children:[(0,p.jsxs)(M.A.Header,{style:{color:"white",fontWeight:"bold"},children:[(0,p.jsx)("button",{type:"button",className:"close","aria-label":"Close",style:{color:"white"},onClick:s,children:(0,p.jsx)("span",{"aria-hidden":"true",children:"×"})}),(0,p.jsx)("h2",{children:i.t`What is Headed2 Curriculum?`})]}),(0,p.jsxs)(M.A.Body,{children:[(0,p.jsx)("img",{src:"/images/www/new
3/advantage/CareerExploration-Workflow.svg",style:{float:"left",maxWidth:"40%",marginRight:"15px",marginBottom:"15px"}}),(0,p.jsx)("p",{style:{fontSize:"1.2rem"},children:i.t`Headed2 Curriculum consists of pre-built lesson that you can use with your students to get them started on their
4                career planning journey. Built with state-standards in mind, and with lessons designed for students of all age groups, 
5                Headed2 Curriculum can help you make the most of your ${dynamicValues.systemName} subscription.`}),t?(0,p.jsxs)("div",{children:[(0,p.jsx)("p",{style:{fontSize:"1.2rem",clear:"left"},className:"alert alert-info",children:i.t`You will need to upgrade in order to access the Headed2 Curriculum.`}),(0,p.jsx)(ir,{})]}):null,(0,p.jsx)("br",{className:"clear"})]}),(0,p.jsx)(M.A.Footer,{children:(0,p.jsx)("button",{className:"btn btn-danger",onClick:s,children:i.t`Close`})})]});var ar=t(52555);function or(e){return[(0,p.jsx)("div",{className:"alert alert-warning",children:i.t`You will need to upgrade in order to access this lesson`},"subscribe-alert"),(0,p.jsx)(ir,{},"subscribe-benefits")]}or.propTypes={};or.defaultProps={};const cr=or;var dr=t(85700);const hr=e=>{const{lesson:s,close:t,canEdit:r,edit:n,preview:l,actions:a}=e;return(0,p.jsxs)(M.A,{show:!!s,onHide:t,bsSize:"large",children:[(0,p.jsxs)(M.A.Header,{style:{color:"white",fontWeight:"bold"},children:[(0,p.jsx)("button",{type:"button",className:"close","aria-label":"Close",style:{color:"white"},onClick:t,children:(0,p.jsx)("span",{"aria-hidden":"true",children:"×"})}),(0,p.jsxs)("h2",{children:[(0,p.jsx)("div",{style:{height:"38px",width:"38px",borderRadius:"19px",display:"inline-block",backgroundColor:"#fff",float:"left",marginRight:"10px",padding:"3px"},children:(0,p.jsx)("img",{src:ar,style:{maxWidth:"100%"}})}),i.t`Learn More`]})]}),(0,p.jsxs)(M.A.Body,{style:{maxHeight:"calc(100vh  - 250px)",overflow:"scroll"},children:[(0,p.jsx)("a",{href:(()=>{if("sequence"===s.type)return`/pdfs/plan/sequence/administration/${s.id}.pdf`;else return`/pdfs/plan/administration/${s.id}.pdf`})(),target:"_blank",className:"pull-right",rel:"noreferrer",children:(0,p.jsx)("i",{className:"print"})}),(0,p.jsx)("h2",{children:(0,dr.qk)(s.name)}),(e=>{if(!e.canUse)return(0,p.jsx)(cr,{});else return[(0,p.jsx)("div",{dangerouslySetInnerHTML:{__html:(0,dr.qk)(e.educatorDescription||"")}},"educator-preview-description"),(0,p.jsxs)("div",{className:"resorts",children:[(0,p.jsx)("h4",{children:i.t`Materials Needed`}),(0,p.jsx)("div",{dangerouslySetInnerHTML:{__html:(0,dr.qk)(e.materialsNeeded||i.t`not provided`)}})]},"educator-preview-materials-needed")]})(s)]}),(0,p.jsx)(M.A.Footer,{children:(0,p.jsxs)("div",{className:"row",children:[(0,p.jsxs)("div",{className:"col-xs-6 text-left",children:[r&&(0,p.jsx)("button",{className:"btn btn-default no-style pull-left small",onClick:n,style:{marginRight:"10px"},children:(0,p.jsxs)("span",{children:[(0,p.jsx)("i",{className:"edit","aria-hidden":"true"})," ",i.t`Edit`]})},"lesson-preview-edit-btn"),(0,p.jsx)("button",{className:"btn btn-default no-style pull-left small",onClick:l,style:{marginRight:"10px"},children:(0,p.jsxs)("span",{children:[(0,p.jsx)("i",{className:"eye","aria-hidden":"true"})," ",i.t`Preview`]})}),a]}),(0,p.jsx)("div",{className:"col-xs-6 text-right",children:(0,p.jsx)("button",{className:"btn btn-danger",onClick:t,children:i.t`Close`})})]})})]})};hr.propTypes={};hr.defaultProps={};const ur=hr;var mr=t(47826),pr=t(63545),xr=t(77903),jr=t(5556),fr=t.n(jr);const gr="data:image/svg+xml,%3Csvg%20data-name%3D%22Layer%201%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20300%20300%22%3E%3Cpath%20style%3D%22fill%3A%23b7cd65%22%20d%3D%22M22.3%20115.9h62.8v62.77H22.3z%22%2F%3E%3Cpath%20d%3D%22M75%20125.9v42.8H32.3v-42.8H75m10-10H22.3v62.8H85v-62.8z%22%20style%3D%22fill%3A%231d1d1b%22%2F%3E%3Cpath%20d%3D%22M67.8%20139.3a1.3%201.3%200%200%201-.5%201.2l-13.2%2013.3-2.5%202.5a2.1%202.1%200%200%201-1.3.5%201.8%201.8%200%200%201-1.2-.5l-2.5-2.5-6.6-6.7a1.7%201.7%200%200%201%200-2.4l2.5-2.5a1.3%201.3%200%200%201%201.2-.5%201.7%201.7%200%200%201%201.3.5l5.3%205.4%2012-12.1a2.1%202.1%200%200%201%201.3-.5%201.7%201.7%200%200%201%201.2.5l2.5%202.5a1.7%201.7%200%200%201%20.5%201.3z%22%20style%3D%22fill%3A%231d1d1b%22%2F%3
5E%3Crect%20x%3D%22148.1%22%20y%3D%2285.8%22%20width%3D%22123%22%20height%3D%22123.04%22%20rx%3D%2261.5%22%20style%3D%22fill%3A%231d1d1b%22%2F%3E%3Cpath%20d%3D%22M209.6%2098.2a49.1%2049.1%200%201%201-49.1%2049.1%2049.3%2049.3%200%200%201%2049.1-49.1m0-12.4a61.5%2061.5%200%200%200-61.5%2061.5%2061.5%2061.5%200%200%200%20123%200%2061.5%2061.5%200%200%200-61.5-61.5z%22%20style%3D%22fill%3A%231d1d1b%22%2F%3E%3Cpath%20style%3D%22fill%3A%23b7cd65%22%20d%3D%22M61.2%20202.2H124v62.77H61.2z%22%2F%3E%3Cpath%20d%3D%22M114%20212.2V255H71.2v-42.8H114m10-10H61.2V265H124v-62.8z%22%20style%3D%22fill%3A%231d1d1b%22%2F%3E%3Cpath%20d%3D%22M106.8%20225.6a1.7%201.7%200%200%201-.5%201.2L93%20240.1l-2.5%202.4a1.5%201.5%200%200%201-2.4%200l-2.5-2.4-6.7-6.7a1.7%201.7%200%200%201-.5-1.2%202.1%202.1%200%200%201%20.5-1.3l2.5-2.4a1.8%201.8%200%200%201%201.3-.6%201.4%201.4%200%200%201%201.2.6l5.4%205.4%2012-12.1a1.8%201.8%200%200%201%201.2-.5%202.1%202.1%200%200%201%201.3.5l2.5%202.5a2.1%202.1%200%200%201%20.5%201.3z%22%20style%3D%22fill%3A%231d1d1b%22%2F%3E%3Cpath%20style%3D%22fill%3A%23b7cd65%22%20d%3D%22M61.2%2029.6H124v62.77H61.2z%22%2F%3E%3Cpath%20d%3D%22M114%2039.6v42.8H71.2V39.6H114m10-10H61.2v62.8H124V29.6z%22%20style%3D%22fill%3A%231d1d1b%22%2F%3E%3Cpath%20d%3D%22M106.8%2053a1.7%201.7%200%200%201-.5%201.2L93%2067.5%2090.5%2070a1.7%201.7%200%200%201-2.4%200l-2.5-2.5-6.7-6.6a2.1%202.1%200%200%201-.5-1.3%201.7%201.7%200%200%201%20.5-1.2l2.5-2.5a1.7%201.7%200%200%201%201.3-.5%201.3%201.3%200%200%201%201.2.5l5.4%205.4%2012-12a1.6%201.6%200%200%201%201.2-.6%201.8%201.8%200%200%201%201.3.6l2.5%202.4a2.1%202.1%200%200%201%20.5%201.3zm-29.5%2089.3h127.5v10H77.3z%22%20style%3D%22fill%3A%231d1d1b%22%2F%3E%3Cpath%20d%3D%22M161.3%20152.3c-41.5%200-73.7-34.7-73.7-64.6h10c0%2024.8%2028.4%2054.6%2063.7%2054.6z%22%20style%3D%22fill%3A%231d1d1b%22%2F%3E%3Cpath%20d%3D%22M97.6%20206.9h-10c0-29.9%2032.2-64.6%2073.7-64.6v10c-35.3%200-63.7%2029.9-63.7%2054.6z%22%20style%3D%22fill%3A%231d1d1b%22%2F%3E%3C%2Fsvg%3E",vr=({closeAction:e,isShown:s})=>(0,p.jsxs)(M.A,{show:s,bsSize:"lg",onHide:e,children:[(0,p.jsxs)(M.A.Header,{style:{color:"white",fontWeight:"bold"},children:[(0,p.jsx)("button",{type:"button",className:"close","aria-label":"Close",style:{color:"white"},onClick:e,children:(0,p.jsx)("span",{"aria-hidden":"true",children:"×"})}),(0,p.jsx)("h2",{children:i.t`Create Lessons and Units`})]}),(0,p.jsxs)(M.A.Body,{children:[(0,p.jsx)("h3",{children:i.t`Choose an option below:`}),(0,p.jsx)("p",{children:i.t`To create a new lesson which can be assigned to users, select the Create Lesson link. If you wish to create a collection of lessons to form an instructional unit, select Create Unit.`}),(0,p.jsxs)("div",{className:"row",children:[(0,p.jsx)("div",{className:"col-xs-6",children:(0,p.jsxs)(C.N_,{className:"btn btn-full text-center btn-default",to:"/admin/assignments/wizard",children:[(0,p.jsx)("img",{alt:i.t`Images indicating lessons and assignments`,"aria-hidden":!0,src:xr,style:{height:"60px",marginBottom:"10px"}}),(0,p.jsx)("br",{}),i.t`Create Lesson`]})}),(0,p.jsx)("div",{className:"col-xs-6",children:(0,p.jsxs)(C.N_,{className:"btn btn-full text-center btn-default",to:"/admin/assignments/sequence/wizard",children:[(0,p.jsx)("img",{alt:i.t`Images indicating lessons and assignments`,"aria-hidden":!0,src:gr,style:{height:"60px",marginBottom:"10px"}}),(0,p.jsx)("br",{}),i.t`Create Unit`]})})]})]})]});vr.propTypes={isShown:fr().bool,closeAction:fr().func.isRequired};const br=()=>{const[e,s]=(0,l.useState)(!1);return(0,p.jsxs)("div",{id:"actionbar",children:[(0,p.jsxs)("div",{className:"row",children:[(0,p.jsx)("div",{className:"col-xs-12 col-md-6",children:(0,p.jsxs)("h3",{style:{marginBottom:"0",lineHeight:"40px"},className:"section-heading",children:[(0,p.jsx)("img",{alt:i.t`Images indicating lessons and assignments`,"aria-hidden":!0,src:xr,style:{height:"40px",float:"left",marginRight:"5px"}})," ",i.t`Lessons and Assignments`]})}),(0,p.jsxs)("div",{className:"col-xs-12 col-md-6",children:[(0,p.jsxs)(C.N_,{to:"/admin/assignments/help",style:{marginLeft:"10px",color:"white"},className:"action-icons btn btn-primary small pull-right",children:[(0,p.jsx)("i",{style:{color:"white"},className:"help fa-lg"})," ",i.t`Help`]}),(()=>{if(dynamicValues.allowLessonSequences)return(0,p.jsxs)("button",{onClick:()=>s(!0),style:{marginLeft:"5px"},className:"action-icons btn btn-default btn-default small pull-right",children:[(0,p.jsx)("i",{style:{color:"black"},className:"add","aria-hidden":"true"})," ",i.t`Create`]});else return(0,p.jsxs)(C.N_,{to:"/admin/assignments/wizard",style:{marginLeft:"5px"},className:"action-icons btn btn-default btn-default small pull-right",children:[(0,p.jsx)("i",{style:{color:"black"},className:"add","aria-hidden":"true"})," ",i.t`Create Lesson`]})})()]})]}),(0,p.jsx)(vr,{isShown:e,closeAction:()=>s(!1)})]})},yr=(0,A.connect)(e=>({visible:e.admin.lessons.viewState.showTutorial}),e=>({onCompleteTutorial:()=>{e((0,hs.jz)(hs.qk))}}))(({visible:e,onCompleteTutorial:s})=>(0,p.jsxs)(cs.A,{isActive:e,onComplete:s,children:[(0,p.jsxs)(os.A,{children:[(0,p.jsxs)("div",{className:"pull-left",children:[(0,p.jsx)("img",{src:as,style:{width:"150px",marginTop:"-10px"}})," "]}
5),(0,p.jsx)("h2",{children:i.t`We've Made a Few Improvements`}),(0,p.jsx)("p",{className:"clear",children:i.t`Based on feedback from our users, we've made a few improvements that we think you will find helpful.`})]}),(0,p.jsxs)(os.A,{children:[(0,p.jsx)("h2",{children:i.t`Consistent Display`}),(0,p.jsx)("div",{children:(0,p.jsx)("img",{src:"/images/headed2/new/tutorials/lessons/interface.png",style:{width:"70%",margin:"25px 15% 25px 15%"}})}),(0,p.jsx)("p",{className:"clear",children:i.t`We've made all of our educator and administrator facing pages utilize the same format. We hope the consistent interface will make it easier to find what you are looking for.`})]}),(0,p.jsxs)(os.A,{children:[(0,p.jsx)("h2",{children:i.t`Simpler Creation`}),(0,p.jsx)("div",{children:(0,p.jsx)("img",{src:"/images/headed2/new/tutorials/lessons/creation.gif",style:{width:"90%",margin:"15px 5% 25px 5%"}})}),(0,p.jsx)("p",{className:"clear",children:i.t`Creating lessons and tasks have been greatly streamlined, with a more graphical and intuitive display.`})]}),(0,p.jsxs)(os.A,{children:[(0,p.jsx)("h2",{children:i.t`Approval Queue`}),(0,p.jsx)("div",{children:(0,p.jsx)("img",{src:"/images/headed2/new/tutorials/lessons/approval.gif",style:{width:"70%",margin:"25px 15% 25px 15%"}})}),(0,p.jsx)("p",{className:"clear",children:i.t`As users complete assignments, you'll be able to view and approve them from one place, with the simple and easy-to-use approval queue.. `})]}),(0,p.jsxs)(os.A,{children:[(0,p.jsx)("h2",{style:{marginBottom:"25px"},children:i.t`Give it a Shot`}),(0,p.jsx)("p",{className:"clear",children:i.t`Take a look around and give it a shot. We think you'll find it a big improvement over the previous version. As always, if you have any comments or suggestions, please let us know.`})]})]})),Nr=({lesson:e,actions:s,toggleAboutSystemLessons:t,onRowClick:r,toggleSubscriptionNotice:n})=>{const l=e.canUse;return(0,p.jsxs)("div",{className:"user-card",style:{height:"100px",padding:"0.5em",marginRight:"5px",borderBottom:"1px solid #ccc"},children:[(0,p.jsx)("div",{className:"media-left hidden-xs",children:(0,p.jsx)("a",{onClick:()=>{if(!l)n();else r()},children:(0,p.jsx)("img",{className:"media-object img-responsive img-circle",style:{width:"75px",height:"75px",maxWidth:"75px",maxHeight:"75px",marginRight:"25px",border:"2px solid #000",padding:"8px"},src:(()=>{if("sequence"===e.type)return gr;else if(l)return"data:image/svg+xml,%3Csvg%20data-name%3D%22Layer%201%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20300%20300%22%3E%3Cpath%20d%3D%22M257.5%20261.4h-215A16.5%2016.5%200%200%201%2026.1%20245V55a16.5%2016.5%200%200%201%2016.4-16.4h215A16.5%2016.5%200%200%201%20273.9%2055v190a16.5%2016.5%200%200%201-16.4%2016.4zM42.5%2046.6a8.5%208.5%200%200%200-8.4%208.4v190a8.5%208.5%200%200%200%208.4%208.4h215a8.5%208.5%200%200%200%208.4-8.4V55a8.5%208.5%200%200%200-8.4-8.4z%22%20style%3D%22fill%3A%231d1d1b%22%2F%3E%3Cpath%20d%3D%22M269.9%2081.7V54.6a12%2012%200%200%200-12-12H42.1a12%2012%200%200%200-12%2012v27.1z%22%20style%3D%22fill%3A%231d1d1b%22%2F%3E%3Cpath%20style%3D%22fill%3A%23b7cd65%22%20d%3D%22M46.5%2097.5h37.3v37.34H46.5z%22%2F%3E%3Cpath%20d%3D%22M78.2%20103.2v26h-26v-26h26m5.7-5.7H46.5v37.4h37.4V97.5zm-5.7%2055.1v26h-26v-26h26m5.7-5.7H46.5v37.3h37.4v-37.3zm-5.7%2055v26h-26v-26h26m5.7-5.7H46.5v37.4h37.4v-37.4zm50.8-93v26h-26v-26h26m5.7-5.7h-37.3v37.4h37.3V97.5z%22%20style%3D%22fill%3A%231d1d1b%22%2F%3E%3Cpath%20style%3D%22fill%3A%23b7cd65%22%20d%3D%22M103.1%20146.9h37.3v37.34h-37.3z%22%2F%3E%3Cpath%20d%3D%22M134.7%20152.6v26h-26v-26h26m5.7-5.7h-37.3v37.3h37.3v-37.3zm-5.7%2055v26h-26v-26h26m5.7-5.7h-37.3v37.4h37.3v-37.4zm50.9-93v26h-26v-26h26m5.6-5.7h-37.3v37.4h37.3V97.5z%22%20style%3D%22fill%3A%231d1d1b%22%2F%3E%3Cpath%20style%3D%22fill%3A%23b7cd65%22%20d%3D%22M159.6%20146.9h37.3v37.34h-37.3z%22%2F%3E%3Cpath%20d%3D%22M191.3%20152.6v26h-26v-26h26m5.6-5.7h-37.3v37.3h37.3v-37.3z%22%20style%3D%22fill%3A%231d1d1b%22%2F%3E%3Cpath%20style%3D%22fill%3A%23b7cd65%22%20d%3D%22M159.6%20196.2h37.3v37.34h-37.3z%22%2F%3E%3Cpath%20d%3D%22M191.3%20201.9v26h-26v-26h26m5.6-5.7h-37.3v37.4h37.3v-37.4z%22%20style%3D%22fill%3A%231d1d1b%22%2F%3
5E%3Cpath%20style%3D%22fill%3A%23b7cd65%22%20d%3D%22M216.1%2097.5h37.3v37.34h-37.3z%22%2F%3E%3Cpath%20d%3D%22M247.8%20103.2v26h-26v-26h26m5.7-5.7h-37.4v37.4h37.4V97.5zm-5.7%2055.1v26h-26v-26h26m5.7-5.7h-37.4v37.3h37.4v-37.3zm-5.7%2055v26h-26v-26h26m5.7-5.7h-37.4v37.4h37.4v-37.4zm-123.6-34.9a.9.9%200%200%201-.3.7l-7.9%207.9-1.5%201.5a.9.9%200%200%201-.7.3%201.1%201.1%200%200%201-.8-.3l-1.4-1.5-4-3.9a1.1%201.1%200%200%201-.3-.8.9.9%200%200%201%20.3-.7l1.5-1.5a.9.9%200%200%201%20.7-.3%201.1%201.1%200%200%201%20.8.3l3.2%203.2%207.1-7.1a1.1%201.1%200%200%201%20.8-.3%201.1%201.1%200%200%201%20.7.3l1.5%201.4a1.1%201.1%200%200%201%20.3.8zm56.8%2048.7a.9.9%200%200%201-.3.7l-7.9%207.9-1.5%201.5a.9.9%200%200%201-.7.3%201.1%201.1%200%200%201-.8-.3l-1.4-1.5-4-3.9a1.1%201.1%200%200%201-.3-.8.9.9%200%200%201%20.3-.7l1.5-1.5a.9.9%200%200%201%20.7-.3%201.1%201.1%200%200%201%20.8.3l3.2%203.2%207.1-7.1a1.1%201.1%200%200%201%20.8-.3%201.1%201.1%200%200%201%20.7.3l1.5%201.4a1.1%201.1%200%200%201%20.3.8z%22%20style%3D%22fill%3A%231d1d1b%22%2F%3E%3Cpath%20d%3D%22M243.2%20111.3a.9.9%200%200%201-.3.7l-7.9%207.9-1.4%201.5a1.1%201.1%200%200%201-.8.3.9.9%200%200%201-.7-.3l-1.5-1.5-3.9-3.9a1.1%201.1%200%200%201-.3-.8.9.9%200%200%201%20.3-.7l1.4-1.5a1.1%201.1%200%200%201%20.8-.3.9.9%200%200%201%20.7.3l3.2%203.2%207.2-7.1a1%201%200%200%201%201.4%200l1.5%201.4a1.1%201.1%200%200%201%20.3.8zm-56.5%2049.3a1.1%201.1%200%200%201-.3.8l-7.9%207.8-1.5%201.5a.9.9%200%200%201-.7.3%201.1%201.1%200%200%201-.8-.3l-1.4-1.5-4-3.9a.9.9%200%200%201-.3-.7%201.1%201.1%200%200%201%20.3-.8l1.5-1.5a.9.9%200%200%201%20.7-.3%201.1%201.1%200%200%201%20.8.3l3.2%203.3%207.1-7.2a1.1%201.1%200%200%201%20.8-.3%201.1%201.1%200%200%201%20.7.3l1.5%201.5a.9.9%200%200%201%20.3.7zM73.6%20111.4a1.1%201.1%200%200%201-.3.8l-7.9%207.8-1.4%201.5a1.3%201.3%200%200%201-.8.3.9.9%200%200%201-.7-.3L61%20120l-3.9-3.9a.8.8%200%200%201-.4-.7.9.9%200%200%201%20.4-.8l1.4-1.5a1.1%201.1%200%200%201%20.8-.3.9.9%200%200%201%20.7.3l3.2%203.3%207.2-7.2a1%201%200%200%201%201.4%200l1.5%201.5a.9.9%200%200%201%20.3.7z%22%20style%3D%22fill%3A%231d1d1b%22%2F%3E%3C%2Fsvg%3E";else return"data:image/svg+xml,%3Csvg%20data-name%3D%22Layer%201%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20300%20300%22%3E%3Cpath%20d%3D%22M257.5%20261.4h-215A16.5%2016.5%200%200%201%2026.1%20245V55a16.5%2016.5%200%200%201%2016.4-16.4h215A16.5%2016.5%200%200%201%20273.9%2055v190a16.5%2016.5%200%200%201-16.4%2016.4zM42.5%2046.6a8.5%208.5%200%200%200-8.4%208.4v190a8.5%208.5%200%200%200%208.4%208.4h215a8.5%208.5%200%200%200%208.4-8.4V55a8.5%208.5%200%200%200-8.4-8.4z%22%20style%3D%22fill%3A%23b2b2b2%22%2F%3E%3Cpath%20d%3D%22M269.9%2081.7V54.6a12%2012%200%200%200-12-12H42.1a12%2012%200%200%200-12%2012v27.1z%22%20style%3D%22fill%3A%23b2b2b2%22%2F%3E%3Cpath%20style%3D%22fill%3A%23ededed%22%20d%3D%22M46.5%2097.5h37.3v37.34H46.5z%22%2F%3E%3Cpath%20d%3D%22M78.2%20103.2v26h-26v-26h26m5.7-5.7H46.5v37.4h37.4V97.5z%22%20style%3D%22fill%3A%23b2b2b2%22%2F%3E%3Cpath%20style%3D%22fill%3A%23ededed%22%20d%3D%22M46.5%20146.9h37.3v37.34H46.5z%22%2F%3E%3Cpath%20d%3D%22M78.2%20152.6v26h-26v-26h26m5.7-5.7H46.5v37.3h37.4v-37.3z%22%20style%3D%22fill%3A%23b2b2b2%22%2F%3E%3Cpath%20style%3D%22fill%3A%23ededed%22%20d%3D%22M46.5%20196.2h37.3v37.34H46.5z%22%2F%3E%3Cpath%20d%3D%22M78.2%20201.9v26h-26v-26h26m5.7-5.7H46.5v37.4h37.4v-37.4z%22%20style%3D%22fill%3A%23b2b2b2%22%2F%3E%3Cpath%20style%3D%22fill%3A%23ededed%22%20d%3D%22M103.1%2097.5h37.3v37.34h-37.3z%22%2F%3E%3Cpath%20d%3D%22M134.7%20103.2v26h-26v-26h26m5.7-5.7h-37.3v37.4h37.3V97.5z%22%20style%3D%22fill%3A%23b2b2b2%22%2F%3E%3Cpath%20style%3D%22fill%3A%23ededed%22%20d%3D%22M103.1%20146.9h37.3v37.34h-37.3z%22%2F%3E%3Cpath%20d%3D%22M134.7%20152.6v26h-26v-26h26m5.7-5.7h-37.3v37.3h37.3v-37.3z%22%20style%3D%22fill%3A%23b2b2b2%22%2F%3E%3Cpath%20style%3D%22fill%3A%23ededed%22%20d%3D%22M103.1%20196.2h37.3v37.34h-37.3z%22%2F%3E%3Cpath%20d%3D%22M134.7%20201.9v26h-26v-26h26m5.7-5.7h-37.3v37.4h37.3v-37.4z%22%20style%3D%22fill%3A%23b2b2b2%22%2F%3E%3Cpath%20style%3D%22fill%3A%23ededed%22%20d%3D%22M159.6%2097.5h37.3v37.34h-37.3z%22%2F%3
5E%3Cpath%20d%3D%22M191.3%20103.2v26h-26v-26h26m5.6-5.7h-37.3v37.4h37.3V97.5z%22%20style%3D%22fill%3A%23b2b2b2%22%2F%3E%3Cpath%20style%3D%22fill%3A%23ededed%22%20d%3D%22M159.6%20146.9h37.3v37.34h-37.3z%22%2F%3E%3Cpath%20d%3D%22M191.3%20152.6v26h-26v-26h26m5.6-5.7h-37.3v37.3h37.3v-37.3z%22%20style%3D%22fill%3A%23b2b2b2%22%2F%3E%3Cpath%20style%3D%22fill%3A%23ededed%22%20d%3D%22M159.6%20196.2h37.3v37.34h-37.3z%22%2F%3E%3Cpath%20d%3D%22M191.3%20201.9v26h-26v-26h26m5.6-5.7h-37.3v37.4h37.3v-37.4z%22%20style%3D%22fill%3A%23b2b2b2%22%2F%3E%3Cpath%20style%3D%22fill%3A%23ededed%22%20d%3D%22M216.1%2097.5h37.3v37.34h-37.3z%22%2F%3E%3Cpath%20d%3D%22M247.8%20103.2v26h-26v-26h26m5.7-5.7h-37.4v37.4h37.4V97.5z%22%20style%3D%22fill%3A%23b2b2b2%22%2F%3E%3Cpath%20style%3D%22fill%3A%23ededed%22%20d%3D%22M216.1%20146.9h37.3v37.34h-37.3z%22%2F%3E%3Cpath%20d%3D%22M247.8%20152.6v26h-26v-26h26m5.7-5.7h-37.4v37.3h37.4v-37.3z%22%20style%3D%22fill%3A%23b2b2b2%22%2F%3E%3Cpath%20style%3D%22fill%3A%23ededed%22%20d%3D%22M216.1%20196.2h37.3v37.34h-37.3z%22%2F%3E%3Cpath%20d%3D%22M247.8%202
501.9v26h-26v-26h26m5.7-5.7h-37.4v37.4h37.4v-37.4z%22%20style%3D%22fill%3A%23b2b2b2%22%2F%3E%3Cpath%20d%3D%22M271.3%2079.3a3.2%203.2%200%200%200-.9-2.3%203.2%203.2%200%200%200-2.4-.9h-71.4a3.2%203.2%200%200%200-2.4.9%203.2%203.2%200%200%200-.9%202.3v39a3.2%203.2%200%200%200%20.9%202.3%203.3%203.3%200%200%200%202.4%201H268a3.3%203.3%200%200%200%202.4-1%203.2%203.2%200%200%200%20.9-2.3zm-13-9.7v-13a25.7%2025.7%200%200%200-3.5-13.1%2025.2%2025.2%200%200%200-9.4-9.5%2026.9%2026.9%200%200%200-26.2%200%2025.2%2025.2%200%200%200-9.4%209.5%2025.7%2025.7%200%200%200-3.5%2013.1v13z%22%20style%3D%22fill%3A%23fff%22%2F%3E%3Cpath%20d%3D%22M271.3%2079.3a3.2%203.2%200%200%200-.9-2.3%203.2%203.2%200%200%200-2.4-.9h-71.4a3.2%203.2%200%200%200-2.4.9%203.2%203.2%200%200%200-.9%202.3v39a3.2%203.2%200%200%200%20.9%202.3%203.3%203.3%200%200%200%202.4%201H268a3.3%203.3%200%200%200%202.4-1%203.2%203.2%200%200%200%20.9-2.3z%22%20style%3D%22fill%3A%23ef8975%22%2F%3E%3Cpath%20d%3D%22M277.8%20118.3a9.7%209.7%200%200%201-9.8%209.7h-71.4a9.4%209.4%200%200%201-7-2.8%209.8%209.8%200%200%201-2.8-6.9v-39a9.8%209.8%200%200%201%202.8-6.9%209.4%209.4%200%200%201%207-2.8h3.2v-13a32.1%2032.1%200%200%201%204.4-16.3%2032.5%2032.5%200%200%201%2028.2-16.2%2030.4%2030.4%200%200%201%2016.2%204.5%2032.9%2032.9%200%200%201%2016.2%2028.2v12.8h3.2a9.7%209.7%200%200%201%209.8%209.7zm-6.5-39a3.2%203.2%200%200%200-.9-2.3%203.2%203.2%200%200%200-2.4-.9h-71.4a3.2%203.2%200%200%200-2.4.9%203.2%203.2%200%200%200-.9%202.3v39a3.2%203.2%200%200%200%20.9%202.3%203.3%203.3%200%200%200%202.4%201H268a3.3%203.3%200%200%200%202.4-1%203.2%203.2%200%200%200%20.9-2.3zm-13-9.7v-13a25.7%2025.7%200%200%200-3.5-13.1%2025.2%2025.2%200%200%200-9.4-9.5%2026.9%2026.9%200%200%200-26.2%200%2025.2%2025.2%200%200%200-9.4%209.5%2025.7%2025.7%200%200%200-3.5%2013.1v13zm-28.9%2038.5a3.8%203.8%200%200%201-1.2-2.8v-13a3.8%203.8%200%200%201%201.2-2.8%204.2%204.2%200%200%201%202.9-1.2%203.8%203.8%200%200%201%202.8%201.2%203.9%203.9%200%200%201%201.3%202.8v13a3.9%203.9%200%200%201-1.3%202.8%203.5%203.5%200%200%201-2.8%201.3%203.9%203.9%200%200%201-2.9-1.3z%22%20style%3D%22fill%3A%231d1d1b%22%2F%3E%3C%2Fsvg%3E"})(),alt:"user avatar"})})}),(0,p.jsxs)("div",{className:"media-body",style:{overflow:"visible"},children:[(0,p.jsx)("h4",{className:"media-heading",style:{overflow:"hidden",textOverflow:"ellipsis",height:"1.2em"},children:(0,dr.qk)(e.name)}),(0,p.jsxs)("div",{className:"row",children:[(0,p.jsxs)("div",{className:"col-sm-4 col-md-4 col-xs-12",children:[(0,p.jsx)("div",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",height:"1.2em"},children:(()=>{if("sequence"===e.type)return"";else{if(!isNaN(e.gradeLevelMin)&&!isNaN(e.gradeLevelMax))return`${(0,mr.vK)(e.gradeLevelMin)} - ${(0,mr.vK)(e.gradeLevelMax)}`;if(!isNaN(e.gradeLevelMin))return(0,mr.vK)(e.gradeLevelMin);if(!isNaN(e.gradeLevelMax))return(0,mr.vK)(e.gradeLevelMax);else return i.t`Any Grade`}})()}),(0,p.jsx)("span",{className:"pull-left",children:(0,p.jsxs)("div",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",height:"1.2em"},children:[i.t`Created:`," ",e.created?(0,He.A)(new Date(e.created),new Date,{addSuffix:!0}):"N/A"]})})]}),(0,p.jsx)("div",{className:"col-sm-8 col-md-8 hidden-xs"})]}),(0,p.jsx)("br",{className:"clear"})]}),(0,p.jsxs)("div",{className:"media-right text-right",style:{minWidth:"110px"},children:[e.system?(0,p.jsx)("button",{onClick:t,className:"headed2-system-lesson",children:i.t`by Headed2`}):(0,p.jsxs)("div",{style:{fontSize:".8em"},children:[(0,p.jsxs)("span",{className:"pull-right",children:[i.t`Owned by you:`," ",e.owned&&(0,p.jsx)("i",{className:"fal fa-check-square"})||(0,p.jsx)("i",{className:"fal fa-square"})]}),(0,p.jsxs)("span",{className:"pull-right "+(e.lessonInCurrentTenant?"":" unselectable-option"),children:[i.t`Shared:`," ",e.shared&&(0,p.jsx)("i",{className:"fal fa-check-square"})||(0,p.jsx)("i",{className:"fal fa-square"})]})]}),(0,p.jsx)("div",{className:"pull-right",style:{width:"110px",marginTop:"10px",whiteSpace:"nowrap",position:"relative"},children:s})]})]})},wr=({resultCount:e})=>
5{const s=(0,p.jsx)("b",{children:(e||0).toLocaleString()},"result-count-status");return(0,p.jsx)("div",{className:"footerBar",children:(0,p.jsx)("div",{className:"commonBar",children:(0,p.jsxs)("div",{className:"container",children:[i.jt`For the ${s} lessons below:`,(0,p.jsx)(C.N_,{to:"/admin/assignments/approval",className:"no-style btn btn-default",style:{marginLeft:"15px"},children:(0,p.jsxs)("span",{children:[(0,p.jsx)("i",{className:"report fa-lg","aria-hidden":"true"})," ",i.t`Open Approve Queue`]})})]})})})};wr.propTypes={resultCount:fr().number};const Ar=wr,Or=({show:e,closeAction:s})=>(0,p.jsxs)(M.A,{bsSize:"lg",show:e,onHide:s,children:[(0,p.jsxs)(M.A.Header,{style:{color:"white",fontWeight:"bold"},children:[(0,p.jsx)("button",{type:"button",className:"close","aria-label":"Close",style:{color:"white"},onClick:s,children:(0,p.jsx)("span",{"aria-hidden":"true",children:"×"})}),(0,p.jsx)("h2",{children:i.t`Assign Lesson`})]}),(0,p.jsxs)(M.A.Body,{children:[(0,p.jsx)("p",{children:i.t`To assign lessons to a user, you must first visit the user management page and select the users to which you wish to assign the lesson.`}),(0,p.jsx)("p",{children:(0,p.jsx)("img",{src:"/images/documentation/common/admin_assign_lesson.gif",className:"img-responsive",style:{maxHeight:"50px"}})}),(0,p.jsx)("p",{children:i.t`Once you have made your selection, you can assign lessons using the Assign a Lesson button as shown above.`}),(0,p.jsx)("div",{className:"actions text-center",children:(0,p.jsx)(C.N_,{to:"/admin/users",className:"btn btn-primary",children:i.t`Take me to the User Management page`})})]})]}),Sr=({dispatch:e,lesson:s,closeAction:t,request:r})=>{const n="admin.lessons.copyForm",l=s&&(0,dr.qk)(s.name)||i.t`untitled`;return(0,p.jsx)(M.A,{show:s,bsSize:"lg",onHide:t,children:(0,p.jsx)(k.A,{model:n,onSubmit:t=>{e((0,mr.cz)(s.id,t)).then(()=>e(O.o1.reset("admin.lessons.copyForm")))},children:e=>(0,p.jsxs)("div",{children:[(0,p.jsxs)(M.A.Header,{style:{color:"white",fontWeight:"bold"},children:[(0,p.jsx)("button",{type:"button",className:"close","aria-label":"Close",style:{color:"white"},onClick:t,children:(0,p.jsx)("span",{"aria-hidden":"true",children:"×"})}),(0,p.jsx)("h2",{children:i.t`Copying ${l}`})]}),(0,p.jsxs)(M.A.Body,{children:[(0,p.jsx)("img",{src:"data:image/svg+xml,%3Csvg%20data-name%3D%22Layer%201%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20300%20300%22%3E%3Cpath%20d%3D%22M59%2076.9h70.8l51.4%2051.3v122.3a6.3%206.3%200%200%201-6.2%206H58.8a6.1%206.1%200%200%201-5.9-6.4V82.8a6.1%206.1%200%200%201%206.1-5.9m0-10a16%2016%200%200%200-16.1%2015.5v167.5a16.2%2016.2%200%200%200%2015.5%2016.6H175a16.3%2016.3%200%200%200%2016.2-15.6V128.2a9.8%209.8%200%200%200-3-7l-51.3-51.4a9.9%209.9%200%200%200-7.1-2.9H59z%22%20style%3D%22fill%3A%231d1d1b%22%2F%3E%3Cpath%20d%3D%22M250.1%20208.5V86.6l-51.3-51.3h-70.6a6.1%206.1%200%200%200-6.4%205.9v167.3a6.1%206.1%200%200%200%205.9%206.4h116a6.2%206.2%200%200%200%206.4-5.9z%22%20style%3D%22fill%3A%23b1ce5f%22%2F%3E%3Cpath%20d%3D%22M127.9%2035.3h70.9l51.3%2051.3V209a6.2%206.2%200%200%201-6.2%205.9H127.7a6.1%206.1%200%200%201-5.9-6.4V41.2a6.1%206.1%200%200%201%206.1-5.9m0-10a16.1%2016.1%200%200%200-16.1%2015.5v167.5a16.2%2016.2%200%200%200%2015.5%2016.6h116.6a16.2%2016.2%200%200%200%2016.2-15.6V86.6a9.9%209.9%200%200%200-3-7l-51.3-51.4a9.7%209.7%200%200%200-7-2.9h-70.9z%22%20style%3D%22fill%3A%231d1d1b%22%2F%3E%3Cpath%20style%3D%22fill%3A%23fff%22%20d%3D%22M201.6%2033v50.7h50.7L201.6%2033z%22%2F%3E%3Cpath%20d%3D%22M252.3%2088.7h-50.7a5%205%200%200%201-5-5V33a5%205%200%200%201%208.6-3.5l50.6%2050.7a4.8%204.8%200%200%201%201.1%205.4%204.9%204.9%200%200%201-4.6%203.1zm-45.7-10h33.6l-33.6-33.6z%22%20style%3D%22fill%3A%231d1d1b%22%2F%3E%3C%2Fsvg%3E",style:{maxWidth:"100px",marginRight:"10px"},className:"pull-left"}),(0,p.jsx)("p",{children:i.t`You are about to make a copy of ${l}, which can be updated and customized without changing the original.`}),(0,p.jsx)("p",{children:i.t`The duplicate version will be owned by you, so you can assign it to your students.`}),(0,p.jsx)("br",{}),(0,p.jsx)(D.A,{model:`${n}.name`,form:e,required:!0,className:"input-lg form-control",label:i.t`What should the new lesson be titled?`})]}),(0,p.jsxs)(M.A.Footer,{children:[(0,p.jsx)(P.A,{loading:r.loading,error:r.error,className:"btn btn-success",style:{marginRight:"1em"},type:"submit",children:i.t`Make Copy`}),(0,p.jsx)("button",{className:"btn btn-default btn-danger",onClick:t,children:i.t`C
5ancel`})]})]})})})},Cr=(0,A.connect)((e,s)=>{var t,r,i;const{admin:{lessons:{listRequest:{result:{lessons:n,pageCount:l,totalResults:a}},selectRequest:o,copyRequest:c,saveRequest:d,deleteRequest:h,assignRequest:u,unassignRequest:m},users:{list:{search:{criteria:p}}}}}=e;return{isSubscriber:dynamicValues&&((null===(t=dynamicValues.userProfile)||void 0===t?void 0:t.isRoot)||dynamicValues.isSubscriber),lessons:n,totalResults:a,pageBase:s.pageBase||"/admin/assignments",request:d,pageCount:l,page:parseInt(s.page||(null===(r=s.match)||void 0===r?void 0:null===(i=r.params)||void 0===i?void 0:i.page))||1,userSearchCriteria:p,selectRequest:o,copyRequest:c,deleteRequest:h,saveRequest:d,assignRequest:u,unassignRequest:m}},e=>({dispatch:e}))(e=>{const{dispatch:s,assignMode:t,lessons:n,page:a,pageCount:o,pageBase:c,userSearchCriteria:d,saveRequest:h,copyRequest:u,assignRequest:m,unassignRequest:x,resultCount:j,isSubscriber:f,children:g,totalResults:v}=e,b=(0,r.g)();(0,B.es)(mr.wq({numPerPage:100,page:parseInt(b.page)}),[b.page]);(0,B.es)((0,hs.XK)(hs.qk));const[y,N]=(0,l.useState)(!1),[w,A]=(0,l.useState)(!1),[S,P]=(0,l.useState)(!1),[k,D]=(0,l.useState)(null),[q,F]=(0,l.useState)(null),R=t=>(0,p.jsxs)("div",{className:"btn-group",children:[(0,p.jsxs)("button",{type:"button",className:"btn btn-default no-style dropdown-toggle","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",children:[(0,p.jsx)("i",{className:"useraction fa-lg"})," ",i.t`Actions`," ",(0,p.jsx)("span",{className:"caret"})]}),(()=>{if("sequence"===t.type)return(0,p.jsx)("div",{className:"dropdown-menu dropdown-menu-right",style:{backgroundColor:"#f6f6f6"},children:(0,p.jsxs)("div",{className:"container-fluid",style:{minWidth:"401px"},children:[(0,p.jsxs)("ul",{className:"col-sm-6",style:{listStyle:"none"},children:[(0,p.jsx)("li",{className:"dropdown-header",style:{fontWeight:"bold",color:"black",fontSize:"1.2em",paddingLeft:"0",borderBottom:"1px solid #ddd",marginBottom:"5px"},children:i.t`Utilize`}),(0,p.jsx)("li",{className:"clear",style:{paddingLeft:"0"},children:(0,p.jsxs)(C.N_,{to:`/admin/assignments/${t.id}/preview`,children:[(0,p.jsx)("i",{className:"eye",style:{width:"2em",textAlign:"center"}}),i.t`Preview`]})}),(0,p.jsx)("li",{className:"clear",style:{paddingLeft:"0"},children:(0,p.jsxs)(C.N_,{to:`/pdfs/plan/administration/${t.id}.pdf`,children:[(0,p.jsx)("i",{className:"print",style:{width:"2em",textAlign:"center"}}),i.t`Print Educator Guide`]})})]}),(0,p.jsxs)("ul",{className:"col-sm-6",style:{listStyle:"none"},children:[(0,p.jsx)("li",{className:"dropdown-header",style:{fontWeight:"bold",color:"black",fontSize:"1.2em",paddingLeft:"0",borderBottom:"1px solid #ddd",marginBottom:"5px"},children:i.t`Modify`}),t.canEdit&&(0,p.jsx)("li",{className:"clear",style:{paddingLeft:"0"},children:(0,p.jsxs)(C.N_,{to:`/admin/assignments/edit/${t.id}`,children:[(0,p.jsx)("i",{className:"edit",style:{width:"2em",textAlign:"center"}}),i.t`Edit`]})})]}),(0,p.jsx)("div",{className:"col-xs-12",children:(0,p.jsx)("ul",{style:{listStyle:"none"},children:t.canEdit&&[(0,p.jsx)("li",{role:"separator",className:"divider"},"lessonDeleteSep"),(0,p.jsx)("li",{children:(0,p.jsxs)("a",{className:"pull-right",style:{color:"maroon"},onClick:()=>{if(confirm(i.t`Confirm you wish to delete ${t.name}?`))s((0,mr.C9)(e.page,t.id))},children:[(0,p.jsx)("i",{className:"delete",style:{width:"2em",textAlign:"center"}}),i.t`Delete`]})},"lessonDelete")]})})]})});else return(0,p.jsx)("div",{className:"dropdown-menu dropdown-menu-right",style:{backgroundColor:"#f6f6f6"},children:(0,p.jsxs)("div",{className:"container-fluid",style:{minWidth:"401px"},children:[(0,p.jsxs)("ul",{className:"col-sm-6",style:{listStyle:"none"},children:[(0,p.jsx)("li",{className:"dropdown-header",style:{fontWeight:"bold",color:"black",fontSize:"1.2em",paddingLeft:"0",borderBottom:"1px solid #ddd",marginBottom:"5px"},children:i.t`Utilize`}),(0,p.jsx)("li",{className:"clear",style:{paddingLeft:"0"},children:(0,p.jsxs)("a",{onClick:()=>s((0,mr.rg)(t.id)).then(e=>F(e)),children:[(0,p.jsx)("i",{className:"bulb",style:{width:"2em",textAlign:"center"}}),i.t`Learn`]})}),(0,p.jsx)("li",{className:"clear",style:{paddingLeft:"0"},children:(0,p.jsxs)(C.N_,{to:`/admin/assignments/${t.id}/preview`,children:[(0,p.jsx)("i",{className:"eye",style:{width:"2em",textAlign:"center"}}),i.t`Preview`]})}),(0,p.jsx)("li",{className:"clear",style:{paddingLeft:"0"},children:(0,p.jsxs)(C.N_,{to:`/pdfs/plan/administration/${t.id}.pdf`,children:[(0,p.jsx)("i",{className:"print",style:{width:"2em",textAlign:"center"}}),i.t`Print Educator Guide`]})}),t.canUse&&(0,p.jsx)("li",{className:"clear",style:{paddingLeft:"0"},children:(0,p.jsxs)("a",{onClick:()=>A(!0),children:[(0,p.jsx)("i",{className:"adduser",style:{width:"2em",textAlign:"center"}}),i.t`Assign`]})})]}),(0,p.jsxs)("ul",{className:"col-sm-6",style:{listStyle:"none"},children:[(0,p.jsx)("li",{className:"dropdown-header",style:{fontWeight:"bold",color:"black",fontSize:"1.2em",paddingLeft:"0",borderBottom:"1px solid #ddd",marginBottom:"5px"},children:i.t`Modify`}),t.canEdit&&(0,p.jsx)("li",{className:"clear",style:{paddingLeft:"0"},children:(0,p.jsxs)(C.N_,{to:`/admin/assignments/edit/${t.id}`,children:[(0,p.jsx)("i",{className:"edit",style:{width:"2em",textAlign:"center"}}),i.t`Edit`]})}),t.canUse&&(0,p.jsx)("li",{className:"clear",style:{paddingLeft:"0"},children:(0,p.jsxs)("a",{onClick:()=>{const e=(0,dr.qk)(t.name);s(O.o1.change("admin.lessons.copyForm.name",i.t`Copy of ${e}`));D(t)},children:[(0,p.jsx)("i",{className:"copy",style:{width:"2em",textAlign:"center"}}),i.t`Duplicate`]})}),t.canUse&&(0,p.jsx)("li",{className:"clear",style:{paddingLeft:"0"},children:(0,p.jsxs)(C.N_,{to:`/admin/assignments/${t.id}/users`,children:[(0,p.jsx)("i",{className:"groups",style:{width:"2em",textAlign:"center"}}),i.t`Manage Assignments`]})})]}),(0,p.jsx)("div",{className:"col-xs-12",children:(0,p.jsx)("ul",{style:{listStyle:"none"},children:t.canEdit&&[(0,p.jsx)("li",{role:"separator",className:"divider"},"lessonDeleteSep"),(0,p.jsx)("li",{children:(0,p.jsxs)("a",{className:"pull-right",style:{color:"maroon"},onClick:()=>
5{if(confirm(i.t`Confirm you wish to delete ${t.name}?`))s((0,mr.C9)(e.page,t.id))},children:[(0,p.jsx)("i",{className:"delete",style:{width:"2em",textAlign:"center"}}),i.t`Delete`]})},"lessonDelete")]})})]})})})()]});return(0,p.jsxs)("div",{className:"container",children:[(0,p.jsx)(br,{}),(0,p.jsx)(pr.A,{}),(0,p.jsx)(Ar,{resultCount:v}),(()=>{const{dispatch:s,lessons:t}=e;if(!t||0==t.length)return null;else return(0,p.jsx)("div",{className:"user-scroll-list",children:t.map(e=>{let t=null;if("lesson"===e.type)t=R(e);return(0,p.jsx)(Nr,{toggleAboutSystemLessons:()=>P(e),toggleSubscriptionNotice:()=>N(!0),onRowClick:()=>{if("sequence"===e.type)s((0,mr.af)(e.id)).then(e=>{F(e)});else s((0,mr.rg)(e.id)).then(e=>F(e))},actions:t,dispatch:s,lesson:e},e.id)})})})(),(!n||0===n.length)&&(0,p.jsx)("div",{className:"empty",children:i.t`No lessons available yet! `}),q&&(0,p.jsx)(ur,{lesson:q,canEdit:(null==q?void 0:q.canEdit)??!1,actions:R(q),preview:()=>{const e=`${"sequence"==(null==q?void 0:q.type)?"/admin/assignments/sequence":"/admin/assignments"}/${null==q?void 0:q.id}/preview`;H.N.push(e)},edit:()=>{const e=`${"sequence"==(null==q?void 0:q.type)?"/admin/assignments/sequence":"/admin/assignments"}/edit/${null==q?void 0:q.id}`;H.N.push(e)},close:()=>F(null)}),(0,p.jsx)(Sr,{dispatch:s,lesson:k,closeAction:()=>{D(null);s(O.o1.reset("admin.lessons.copyForm"))},request:u}),(0,p.jsx)(nr,{show:y,closeAction:()=>N(!1)}),(0,p.jsx)(lr,{show:S,needsSubscription:!(null==S?void 0:S.canUse),closeAction:()=>P(!1)}),(0,p.jsx)(Or,{show:w,closeAction:()=>A(!1)}),(0,p.jsx)(yr,{}),g]})});var Pr=t(67697);function kr(e,s){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);s&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,r)}return t}function Dr(e,s,t){return(s=function(e){var s=function(e,s){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,s||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===s?String:Number)(e)}(e,"string");return"symbol"==typeof s?s:s+""}(s))in e?Object.defineProperty(e,s,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[s]=t,e}const qr=(0,A.connect)((e,s)=>function(e){for(var s=1;s<arguments.length;s++){var t=null!=arguments[s]?arguments[s]:{};s%2?kr(Object(t),!0).forEach(function(s){Dr(e,s,t[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):kr(Object(t)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(t,s))})}return e}({modalOpen:!0},e.planning.assignmentUsers),e=>({modalClose:()=>{H.N.push("/admin/assignments")},dispatch:e}))(e=>{const s=(0,r.g)();(0,B.es)((0,mr.A$)(s.planId),[s.planId]);const[t,n]=(0,l.useState)(!1);if(!q.L$(e.data))return(0,p.jsx)(Q.A,{newSiteLook:!0});const{modalOpen:a,modalClose:o,dispatch:c,data:{result:{lesson:d,assignments:h}}}=e,u=(0,dr.qk)(d.name),m=(0,p.jsx)(Pr.A,{title:i.t`This is the latest version`,children:i.t`The lesson that the user is assigned is the latest version available. If the original lesson is modified, this checkbox will disappear. To protect against users losing data, changes are not automatically reflected in assigned plans -- and, therefore, must be manually reassigned for changes to show up.`});return[(0,p.jsxs)(M.A,{show:a,onHide:o,dialogClassName:"fullscreen-modal",children:[(0,p.jsxs)(M.A.Header,{style:{color:"white",fontWeight:"bold"},children:[(0,p.jsx)("button",{type:"button",className:"close","aria-label":"Close",onClick:o,children:(0,p.jsx)("span",{"aria-hidden":"true",children:"×"})}),(0,p.jsx)(M.A.Title,{children:i.t`Users Assigned: ${u}`})]}),(0,p.jsx)(M.A.Body,{children:((e,s)=>{if(0==(e||[]).length)return(0,p.jsx)("div",{className:"alert alert-warning text-center",children:(0,p.jsx)("h3",{children:i.t`This lesson has not been assigned yet`})});else return(0,p.jsxs)("table",{className:"table tbl",children:[(0,p.jsx)("thead",{children:(0,p.jsxs)("tr",{children:[(0,p.jsx)("th",{children:i.t`User`}),(0,p.jsx)("th",{children:i.t`Date Assigned`}),(0,p.jsx)("th",{children:i.t`Assigned Latest`}),(0,p.jsx)("th",{children:i.t`Actions`})]})}),(0,p.jsx)("tbody",{children:(e||[]).map((e,t)=>(0,p.jsxs)("tr",{className:t%2==0?"even":"odd",children:[(0,p.jsx)("td",{children:e.user.name}),(0,p.jsx)("td",{children:new Date(e.dateAssigned).toLocaleDateString()}),(0,p.jsx)("td",{children:e.latestVersion&&(0,p.jsx)(be.A,{trigger:["hover","focus"],placement:"right",overlay:m,rootClose:!0,children:(0,p.jsx)("i",{className:"check"})})}),(0,p.jsx)("td",{children:(0,p.jsx)("button",{className:"btn btn-danger no-style btn-sm",onClick:()=>
5{if(confirm(i.t`Are you sure you want to unassign ${s.name} from ${e.user.name}? This will remove the lesson from their account and delete any work that may have been completed.`))c((0,mr.NZ)(s.id,e.user.id)).then(t=>c({type:mr.nB,lessonId:s.id,userId:e.user.id}))},type:"button",children:i.t`Unassign`})})]}))})]})})(h,d)}),(0,p.jsx)(M.A.Footer,{children:(0,p.jsx)("div",{className:"container",children:(0,p.jsxs)("a",{className:"btn btn-default no-style",onClick:()=>n(!0),children:[(0,p.jsx)("i",{className:"adduser",style:{width:"2em",textAlign:"center"}}),i.t`Assign to More Users`]})})})]}),(0,p.jsx)(Or,{show:t,closeAction:()=>n(!1)})]});function Fr(e,s){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);s&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,r)}return t}function Rr(e){for(var s=1;s<arguments.length;s++){var t=null!=arguments[s]?arguments[s]:{};s%2?Fr(Object(t),!0).forEach(function(s){Tr(e,s,t[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Fr(Object(t)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(t,s))})}return e}function Tr(e,s,t){return(s=function(e){var s=function(e,s){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,s||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===s?String:Number)(e)}(e,"string");return"symbol"==typeof s?s:s+""}(s))in e?Object.defineProperty(e,s,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[s]=t,e}const Er=(0,A.connect)(e=>Rr(Rr({collectionId:"assignmentadmin"},e.documentation),{},{modalOpen:!0}),e=>({modalClose:()=>{H.N.push("/admin/assignments")},selectSection:s=>e((0,Te.Ow)(s))}))(Re.g);var Lr=t(49790),Ir=t(4805),Mr=t(72753);function $r(e,s){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);s&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,r)}return t}function zr(e){for(var s=1;s<arguments.length;s++){var t=null!=arguments[s]?arguments[s]:{};s%2?$r(Object(t),!0).forEach(function(s){Vr(e,s,t[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):$r(Object(t)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(t,s))})}return e}function Vr(e,s,t){return(s=function(e){var s=function(e,s){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,s||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===s?String:Number)(e)}(e,"string");return"symbol"==typeof s?s:s+""}(s))in e?Object.defineProperty(e,s,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[s]=t,e}class Hr extends l.Component{constructor(e){super(e);Vr(this,"selectedItems",()=>Object.keys(this.state.items).filter(e=>this.state.items[e]));Vr(this,"handleApproval",(e=!1)=>{if(this.selectedItems().length>0)this.props.dispatch((0,mr.F5)(this.selectedItems(),{savePDF:e})).then(()=>{this.props.dispatch((0,mr.cI)()).then(()=>{this.setState(zr(zr({},this.state),{},{items:{}}))})})});this.state={items:{}}}render(){var e,s,t;return this.props.items.loading?(0,p.jsx)(Q.A,{unContained:!0,newSiteLook:!0}):(0,p.jsxs)("div",{style:{padding:"15px"},children:[(0,p.jsx)("h3",{className:"section-heading",children:i.t`Choose an item from the queue below:`}),(0,p.jsxs)("table",{className:"table tbl tbl-striped",children:[(0,p.jsx)("thead",{children:(0,p.jsxs)("tr",{children:[(0,p.jsx)("th",{}),(0,p.jsx)("th",{children:i.t`Assignment Name`}),(0,p.jsx)("th",{children:i.t`User`}),(0,p.jsx)("th",{children:i.t`Date Submitted`})]})}),(0,p.jsx)("tbody",{children:null===(e=this.props.items)||void 0===e?void 0:null===(s=e.result)||void 0===s?void 0:null===(t=s.items)||void 0===t?void 0:t.map((e,s)=>(0,p.jsxs)("tr",{className:s%2==0?"even":"odd",children:[(0,p.jsx)("td",{children:(0,p.jsx)("input",{type:"checkbox",value:e.id,checked:this.state.items[e.id],onChange:s=>{this.setState({items:zr(zr({},this.state.items),{},{[e.id]:s.target.checked})})}})}),(0,p.jsx)("td",{children:(0,p.jsx)("a",{onClick:()=>{H.N.replace("/admin/assignments/approval");this.props.dispatch((0,mr.Ej)(e.id)).then(()=>this.props.closeQueueList(s))},children:(0,dr.qk)(e.name)})}),(0,p.jsx)("td",{children:e.user}),(0,p.jsx)("td",{children:new Date(e.completed).toLocaleDateString()})]},s))})]}),(0,p.jsxs)("div",{className:"text-center",children:[(0,p.jsxs)("div",{className:"btn-group",style:{display:"flex",opacity:this.selectedItems().length>0?"1":"0",transition:"opacity .3s ease-in-out"},children:[(0,p.jsx)(P.A,{internal:!0,className:"btn btn-success no-style",onClick:()=>this.handleApproval(!1),loading:this.props.queueRequest.loading,error:this.props.queueRequest.error,disabled:0==this.selectedItems().length,children:i.t`Approve`}),(0,p.jsxs)("button",{type:"button",className:"btn btn-default dropdown-toggle no-style","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",children:[(0,p.jsx)("span",{className:"caret"}),(0,p.jsx)("span",{className:"sr-only",children:i.t`Toggle Dropdown`})]}),(0,p.jsx)("ul",{className:"dropdown-menu",children:(0,p.jsx)("li",{children:(0,p.jsx)("a",{onClick:()=>this.handleApproval(!0),children:(0,p.jsx)("span",{children:i.t`Approve and Save PDF to User's Files`})})})})]}),(0,p.jsx)("button",{onClick:this.props.closeQueueList,className:"btn btn-primary",children:i.t`Close List`})]})]})}}class Br extends l.PureComponent{constructor(e){super(e);Vr(this,"setAsyncState",e=>new Promise(s=>this.setState(e,()=>s())));Vr(this,"fetchAssignment",()=>this.props.dispatch((0,Je.cB)()).then(()=>this.props.dispatch((0,mr.rI)(this.state.currentOffset))));Vr(this,"approvalActions",(e,s,t,r)=>{const n=this.props.fileTags||[];return(0,p.jsxs)("div",{className:"resorts",children:[(0,p.jsx)("h3",{className:"text-center",children:i.t`Approval Actions`}),(0,p.jsx)("div",{className:"col-xs-6",style:{borderRight:"2px dotted #aaa"},children:(0,p.jsx)(k.A,{model:s,onSubmit:s=>{this.props.dispatch((0,mr.K5)(r.id,s)).then(()=>{this.props.dispatch((0,mr.rI)()).then(()=>{this.setAsyncState(zr(zr({},this.state),{},{currentOffset:0}));this.props.dispatch(O.o1.reset(`${e}.comment`));H.N.replace("/admin/assignments/approval")})})},children:e=>(0,p.jsxs)("div",{className:"row",children:[this.props.userProfile.hasFileAccess?(0,p.jsx)("div",{className:"col-xs-12",children:(0,p.jsx)(D.A,{model:`${s}.savePDF`,form:e,type:"checkbox",label:i.t`Save Approved PDF to User's Files`})}):null,this.props.userProfile.hasFileAccess?(0,p.jsx)("div",{className:"col-xs-12 fade "+(t.savePDF?"in":""),children:(0,p.jsxs)("div",{className:"row",children:[(0,p.jsx)("div",{className:"col-xs-11",children:(0,p.jsx)(D.A,{model:`${s}.tagId`,theme:"bootstrap3",hideResetButton:!0,form:e,options:(n||[]).map(e=>({label:e.name,value:e})),renderValue:e=>(0,p.jsx)("div",{children:(0,p.jsx)("b",{children:e.label})}),renderOption:e=>(0,p.jsx)("div",{style:{padding:"1em"},children:(0,p.jsx)("b",{children:e.label})}),createFromSearch:()=>null,createFromValue:e=>({label:e.name,value:e}),label:i.t`Tag File With:`,type:"simpleselect"})}),(0,p.jsx)("div",{className:"col-xs-1",style:{paddingTop:"25px"},children:t.tagId&&(0,p.jsxs)("a",{onClick:()=>this.props.dispatch(O.o1.reset(`${s}.tagId`)),children:[" ",(0,p.jsx)("i",{className:"times pull-right"})]})})]})}):null,(0,p.jsxs)("div",{className:"col-xs-12 text-center",children:[(0,p.jsx)("br",{}),(0,p.jsx)("button",{className:"btn btn-success",children:i.t`Approve`})]})]})})}),(0,p.jsx)("div",{className:"col-xs-6",children:(0,p.jsx)(k.A,{model:e,onSubmit:s=>{this.props.dispatch((0,mr.K7)(r.id,s.comment)).then(()=>{this.props.dispatch((0,mr.rI)()).then(()=>{this.setAsyncState(zr(zr({},this.state),{},{currentOffset:0}));this.props.dispatch(O.o1.reset(`${e}.comment`));H.N.replace("/admin/assignments/approval")})})},children:s=>(0,p.jsxs)("div",{className:"row",children:[(0,p.jsx)("div",{className:"col-xs-12",children:(0,p.jsx)(D.A,{model:`${e}.comment`,form:s,type:"textarea",style:{minHeight:"90px"},label:i.t`Rejection Reason`,required:!0})}),(0,p.jsxs)("div",{className:"col-xs-12 text-center",children:[(0,p.jsx)("br",{}),(0,p.jsx)("button",{type:"submit",className:"btn btn-danger no-style",children:i.t`Reject`})]})]})})}),(0,p.jsx)("br",{className:"clear"})]})});Vr(this,"alreadyApproved",e=>{const s=new Date(e.dateApproved).toLocaleDateString();return(0,p.jsx)("div",{className:"resorts",children:(0,p.jsx)("h3",{className:"alert alert-success text-center",children:i.t`This assignment was approved on ${s}`})})});Vr(this,"outputAssignment",e=>{const s=this.props.lessonApprovalModel,t=this.props.lessonApprovalModelName;if(!e)return(0,p.jsx)(Q.A,{newSiteLook:dynamicValues.newSiteLook,unContained:!0});const r=e.result,n=q.L$(e);
5if(n&&r&&r.nextItem){const e=r.nextItem,n=`${e.user.firstName} ${e.user.lastName} (${e.user.ssoName||e.user.name})`,l=new Date(e.dateCompleted).toLocaleDateString();return(0,p.jsxs)("div",{className:"row",children:[(0,p.jsx)("h2",{className:"text-center",children:(0,dr.qk)(e.name)}),e.user&&(0,p.jsx)("h4",{className:"text-center",children:i.t`Submitted by ${n} on ${l}`}),(0,p.jsx)("hr",{style:{background:"transparent",borderBottom:"1px dashed #ccc"}}),(0,p.jsx)(Mr.S,{assignment:e,dispatch:this.props.dispatch,hidePrint:!0,readOnlyPreview:!0}),e.dateApproved?this.alreadyApproved(e):this.approvalActions("admin.lessons.approvalRejectionForm",t,s,e)]})}if(!n)return(0,p.jsx)(Q.A,{newSiteLook:dynamicValues.newSiteLook,unContained:!0});else return(0,p.jsx)("h2",{className:"text-center",children:i.t`There are no assignments to approve at this time`})});Vr(this,"findLessonById",e=>{this.props.dispatch((0,mr.cI)()).then(s=>{this.props.dispatch((0,mr.Ej)(e)).then(t=>{var r;const i=null==s?void 0:null===(r=s.items)||void 0===r?void 0:r.map(e=>e.id);if(i){const s=i.indexOf(parseInt(e));if(s)this.setState(zr(zr({},this.state),{},{currentOffset:s}))}})})});Vr(this,"hasNext",()=>{const e=this.props.queueRequest.result?this.props.queueRequest.result.queueCount:1;return this.state.currentOffset+1<e});Vr(this,"moveToNext",()=>{if(this.hasNext()){H.N.replace("/admin/assignments/approval");this.setAsyncState(zr(zr({},this.state),{},{currentOffset:this.state.currentOffset+1})).then(()=>this.fetchAssignment())}});Vr(this,"hasPrev",()=>this.state.currentOffset-1>=0);Vr(this,"moveToPrev",()=>{if(this.hasPrev()){H.N.replace("/admin/assignments/approval");this.setAsyncState(zr(zr({},this.state),{},{currentOffset:this.state.currentOffset-1})).then(()=>this.fetchAssignment())}});Vr(this,"toggleQueue",e=>{if(!this.state.showingQueueList)this.props.dispatch((0,mr.cI)());const s=zr(zr({},this.state),{},{showingQueueList:!this.state.showingQueueList});if(e)s.currentOffset=e;this.setState(s)});Vr(this,"innerContent",()=>{const e=this.props.queueRequest.result?this.props.queueRequest.result.queueCount:1,s=Math.min(e,this.state.currentOffset+1);if(this.state.showingQueueList)return(0,p.jsx)("div",{className:"lesson-approval-queue-list",style:{padding:"15px",marginTop:"-15px",backgroundColor:"#57ad65"},children:(0,p.jsxs)("div",{style:{minHeight:"100%",backgroundColor:"white"},children:[(0,p.jsx)(Hr,{items:this.props.queueEntriesRequest,queueRequest:this.props.queueRequest,dispatch:this.props.dispatch,closeQueueList:this.toggleQueue}),(0,p.jsx)("br",{className:"clear"})]})});else return(0,p.jsxs)("div",{style:{backgroundColor:"white",minHeight:"60vh"},children:[(0,p.jsx)("div",{className:"paging-nav",style:{border:"1px solid #ddd",borderRadius:"4px",backgroundColor:"#57ad65",minHeight:"10px",padding:"6px",marginTop:"-15px",marginBottom:"20px"},children:(0,p.jsxs)("div",{className:"row",children:[(0,p.jsx)("div",{className:"col-xs-1",children:this.hasPrev()?(0,p.jsx)("a",{onClick:this.moveToPrev,children:(0,p.jsx)("img",{src:Ir,className:"arrowimg lft",style:{maxHeight:"30px"},alt:i.t`Previous Entry`})}):null}),(0,p.jsx)("div",{className:"col-xs-10 text-center",children:(0,p.jsxs)("h4",{style:{lineHeight:"30px",marginBottom:"0"},children:[(0,p.jsx)("a",{style:{color:"white"},onClick:this.toggleQueue,children:i.t`Assignment ${s} of ${e}`}),(0,p.jsx)(be.A,{trigger:["hover","focus","click"],placement:"bottom",overlay:(0,p.jsx)(ye.A,{style:{zIndex:"100000"},placement:"bottom",children:i.t`Open to see all items in the approval queue`}),children:(0,p.jsxs)("a",{style:{color:"black"},className:"pull-right",onClick:this.toggleQueue,children:[(0,p.jsx)("i",{className:"fal fa-list-ol","aria-hidden":"true"})," ",(0,p.jsx)("i",{className:"fal fa-chevron-down","aria-hidden":"true",style:{color:"black"}})]})})]})}),(0,p.jsx)("div",{className:"col-xs-1",children:this.hasNext()?(0,p.jsx)("a",{onClick:this.moveToNext,children:(0,p.jsx)("img",{src:Ir,className:"arrowimg rgt",style:{maxHeight:"30px"},alt:i.t`Next Entry`})}):null})]})}),this.outputAssignment(this.props.queueRequest)]})});this.state={currentOffset:0,showingQueueList:!1}}componentDidMount(){var e,s;const t=null===(e=this.props)||void 0===e?void 0:null===(s=e.routeParam
5s)||void 0===s?void 0:s.taskId;if(t)this.findLessonById(t);else this.fetchAssignment()}render(){return(0,p.jsxs)(M.A,{show:!0,onHide:()=>H.N.push("/admin/assignments"),dialogClassName:"fullscreen-modal",children:[(0,p.jsxs)(M.A.Header,{style:{color:"white",fontWeight:"bold"},children:[(0,p.jsx)("button",{type:"button",className:"close","aria-label":i.t`Close`,onClick:()=>H.N.replace("/admin/assignments"),children:(0,p.jsx)("span",{"aria-hidden":"true",children:"×"})}),(0,p.jsx)("h2",{className:"modal-title",children:i.t`Lesson Approval Queue`})]}),(0,p.jsx)(M.A.Body,{children:(0,p.jsx)(Lr.CSSTransitionGroup,{component:"div",transitionName:this.state.showingQueueList?"h2animate":"h2animate-home",transitionEnterTimeout:400,transitionLeaveTimeout:400,children:l.cloneElement(this.innerContent(),{key:this.state.showingQueueList})})})]})}}const Ur=(0,A.connect)(e=>{const{fileManagementWizard:{data:{tags:s}}}=e,t="admin.lessons.approvalApprovalForm",r=(0,O.E1)(e,t);return zr(zr({},e.admin.lessons),{},{userProfile:e.authenticationState.userProfile,lessonApprovalModelName:t,lessonApprovalModel:r,fileTags:s})},e=>({dispatch:e}))(Br);var _r=t(87690),Gr=t(16038),Wr=t(79649),Kr=t(64259),Qr=t(13263),Yr=t(24257),Zr=t(32743),Jr=t(15977),Xr=t(1208),ei=t(85023),si=t(75340),ti=t(6300),ri=t(26044),ii=t(41612),ni=t(35527);function li(e,s){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);s&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,r)}return t}function ai(e){for(var s=1;s<arguments.length;s++){var t=null!=arguments[s]?arguments[s]:{};s%2?li(Object(t),!0).forEach(function(s){oi(e,s,t[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):li(Object(t)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(t,s))})}return e}function oi(e,s,t){return(s=function(e){var s=function(e,s){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,s||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===s?String:Number)(e)}(e,"string");return"symbol"==typeof s?s:s+""}(s))in e?Object.defineProperty(e,s,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[s]=t,e}const ci=(0,A.connect)((e,s)=>{const t=(0,O.E1)(e,"admin.lessons.lessonForm"),r=e.admin.lessons.adminEdit.selected;return{tasks:t.tasks,lesson:r}},e=>({dispatch:e}))(e=>{var s,t;const{dispatch:n,tasks:l,lesson:a,children:o}=e,c=(0,r.g)().lessonId;if(!a)return(0,p.jsx)(Q.A,{newSiteLook:!0});const d=e=>{switch(e){case 19:return ti;case 18:return _r;case 17:return Gr;case 16:return Wr;case 15:return xr;case 14:return Kr;case 13:return Qr;case 12:return Yr;case 11:return Zr;case 10:return Jr;case 9:return Xr;case 4:return ei;case 3:return si;case 2:return ri;case 1:return ii;default:return ni}};return(0,p.jsxs)("div",{className:"container",children:[(0,p.jsx)("div",{className:"row",id:"pageaction",children:(0,p.jsxs)("div",{className:"col-xs-12",children:[(0,p.jsxs)("a",{href:`/pdfs/plan/administration/${c}.pdf`,target:"_blank",className:"pull-right expandable-button small action-print",rel:"noreferrer",children:[(0,p.jsx)("span",{className:"icon",children:(0,p.jsx)("span",{className:"sr-only",children:"+"})}),(0,p.jsx)("div",{children:i.t`Print Educator Guide`})]}),(0,p.jsxs)(C.N_,{to:`/admin/assignments/${c}/preview`,className:"pull-right expandable-button small action-preview",children:[(0,p.jsx)("span",{className:"icon",children:(0,p.jsx)("span",{className:"sr-only",children:"+"})}),(0,p.jsx)("div",{children:i.t`Preview Lesson`})]}),(0,p.jsx)("br",{className:"clear"})]})}),(0,p.jsxs)("div",{className:"with-border note-color",style:{marginTop:"15px"},children:[(0,p.jsxs)(C.N_,{className:"btn btn-default no-style pull-right",to:`/admin/assignments/edit/${c}/update`,children:[(0,p.jsx)("i",{className:"edit"}),"Edit"]}),(0,p.jsx)("h3",{children:i.t`About This Lesson`}),(0,p.jsxs)("div",{children:[(0,p.jsx)("b",{children:i.t`Recommended Grade Level:`})," ",!isNaN(a.gradeLevelMin)&&!isNaN(a.gradeLevelMax)&&`${(0,mr.vK)(a.gradeLevelMin)} - ${(0,mr.vK)(a.gradeLevelMax)}`||!isNaN(a.gradeLevelMin)&&(0,mr.vK)(a.gradeLevelMin)||!isNaN(a.gradeLevelMax)&&(0,mr.vK)(a.gradeLevelMax)||i.t`Any Grade`]}),(0,p.jsxs)("div",{children:[(0,p.jsx)("b",{children:i.t`Total Time Required:`})," ",(null===(s=a.totalTimeRequired)||void 0===s?void 0:s.toLocaleStr
5ing())??i.t`not provided`," ",a.totalTimeRequired?i.t`minutes`:null]}),(0,p.jsxs)("div",{children:[(0,p.jsx)("b",{children:i.t`Description`})," ",(0,p.jsx)("span",{dangerouslySetInnerHTML:{__html:(0,dr.qk)(a.educatorDescription)}})]})]}),(0,p.jsx)("br",{}),(0,p.jsx)("h3",{children:i.t`Introduction and Instructions`}),(0,p.jsxs)("ul",{className:"task-listing-list",children:[(0,p.jsx)("p",{children:i.t`The introduction page is the first thing a user sees in a lesson, use this to add instructions or an overview of what they are about to do.`}),(0,p.jsx)("li",{className:"hoverable",children:(0,p.jsxs)(C.N_,{to:`/admin/assignments/edit/${c}/instructions`,className:"task-btn",style:{width:"100%",maxHeight:"250px",overflow:"scroll",marginBottom:"25px",paddingTop:"10px"},children:[(0,p.jsxs)("div",{className:"btn btn-default no-style pull-right hover-only",children:[(0,p.jsx)("i",{className:"edit"}),i.t`Edit`]}),(0,p.jsx)("span",{dangerouslySetInnerHTML:{__html:(0,dr.qk)(a.description)||i.t`Select this to add an introduction`}})]})},"intro"),(0,p.jsx)("p",{children:i.t`Materials needed provides a listing of what supplies will be needed to implement this lesson in the classroom.`}),(0,p.jsx)("li",{className:"hoverable",children:(0,p.jsxs)(C.N_,{to:`/admin/assignments/edit/${c}/materials`,className:"task-btn",style:{width:"100%",maxHeight:"250px",overflow:"scroll",marginBottom:"25px",paddingTop:"10px"},children:[(0,p.jsxs)("div",{className:"btn btn-default no-style pull-right hover-only",children:[(0,p.jsx)("i",{className:"edit"}),i.t`Edit`]}),(0,p.jsx)("span",{dangerouslySetInnerHTML:{__html:(0,dr.qk)(a.materialsNeeded)||i.t`Select this to add materials required`}})]})},"materialsneeded"),(0,p.jsx)("p",{children:i.t`Learning standards provide a summary of the standards that will be addressed when assigning this lesson.`}),(0,p.jsx)("li",{className:"hoverable",children:(0,p.jsxs)(C.N_,{to:`/admin/assignments/edit/${c}/standards`,className:"task-btn",style:{width:"100%",maxHeight:"250px",overflow:"scroll",marginBottom:"25px",paddingTop:"10px"},children:[(0,p.jsxs)("div",{className:"btn btn-default no-style pull-right hover-only",children:[(0,p.jsx)("i",{className:"edit"}),i.t`Edit`]}),a.learningStandards?(0,p.jsx)("ul",{children:null===(t=a.learningStandards)||void 0===t?void 0:t.map(e=>(0,p.jsx)("li",{children:e.name},`lesson-learning-standard-${e.id}`))}):(0,p.jsx)("span",{children:i.t`Select this to add learning standards`})]})},"intro")]}),(0,p.jsx)("br",{className:"clear"}),(0,p.jsx)("h3",{children:i.t`Tasks`}),(0,p.jsx)("p",{children:i.t`The tasks below represent steps in a lesson. Each task is a discrete activity that the user should perform, such as take an assessment, write a reflection, or view a video. Click on a task to edit it, or select the New Task button to add more.`}),(()=>{const e=(0,p.jsx)(Pr.A,{id:"move-question-up-popover",children:i.t`Move this question up one`}),s=(0,p.jsx)(Pr.A,{id:"move-question-down-popover",children:i.t`Move this question down one`}),t=(e,s,t)=>{if(s)return(0,p.jsx)(be.A,{trigger:["hover","focus"],placement:"right",overlay:e,rootClose:!0,children:t});else return t};return(0,p.jsxs)("ul",{className:"task-listing-list",children:[l.map((r,a)=>{const o=0===a?{disabled:!0,style:{opacity:.3}}:{},h=a+2>l.length?{disabled:!0,style:{opacity:.3}}:{};return(0,p.jsxs)("li",{className:"hoverable",children:[(0,p.jsxs)("div",{className:"pos",children:[t(s,a+2<=l.length,(0,p.jsx)("a",ai(ai({},h),{},{onClick:e=>{e.preventDefault();n((0,mr.NG)(c,r.id,a+2))},children:(0,p.jsx)("img",{src:Ir,alt:i.t`Down facing arrow to go to move item down`,style:{width:"15px",marginTop:"1rem",marginLeft:"10px",transform:"rotate(90deg)"}})}))),t(e,0!==a,(0,p.jsx)("a",ai(ai({},o),{},{onClick:e=>{e.preventDefault();n((0,mr.NG)(c,r.id,a))},children:(0,p.jsx)("img",{src:Ir,alt:i.t`Up facing arrow to go to move item up`,style:{width:"15px",marginTop:"1rem",marginLeft:"10px",transform:"rotate(270deg)"}})})))]}),(0,p.jsxs)(C.N_,{className:"task-btn",to:`/admin/assignments/edit/${c}/task/${r.id}`,children:[(0,p.jsx)("div",{className:"col-xs-1",children:(0,p.jsx)("img",{src:d(r.type),style:{maxWidth:"30px",marginTop:".5rem"},className:"img-responsive"})}),(0,p.jsxs)("div",{className:"col-xs-11",style:{maxHeight:"200px",overflow:"scroll"},children:[(0,p.jsxs)("div",{children:[(0,dr.qk)(r.title)," ",(0,p.jsxs)("div",{style:{display:"inline-block",fontSize:".9rem"},className:"pull-right",children:["(",r.timeRequired," ",r.timeRequired?i.t`minutes`:null,")"]})]}),(0,p.jsx)("div",{children:(0,p.jsx)("span",{dangerouslySetInnerHTML:{__html:(0,dr.qk)(r.description)}})})]})]}),(0,p.jsx)("div",{className:"actn",children:(0,p.jsx)("a",{onClick:e=>{e.preventDefault();if(confirm(i.t`Are you sure you want to delete this task?`))n((0,mr.vC)(c,r.id))},className:"delete",children:(0,p.jsx)("span",{children:i.t`Delete`})})}),(0,p.jsx)("br",{className:"clear"})]},`task-listing-${r.id}`)}),(0,p.jsx)("li",{style:{marginTop:"25px"},className:"text-center",children:(0,p.jsxs)(C.N_,{className:"btn btn-default btn-lg no-style",to:`/admin/assignments/edit/${c}
5/task/new`,children:[(0,p.jsx)("i",{className:"add"})," ",i.t`New Task`]})})]})})(),(0,p.jsx)("br",{}),(0,p.jsx)("br",{}),o,(0,p.jsx)(C.N_,{className:"btn btn-primary no-style",to:"/admin/assignments",children:i.t`Back to list`})]})}),di="data:image/svg+xml,%3Csvg%20data-name%3D%22Layer%201%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20300%20300%22%3E%3Cpath%20d%3D%22M231.2%20226.3a40.3%2040.3%200%200%200%2040.6-40.6%2039%2039%200%200%200-9.7-26.4%2040.1%2040.1%200%200%200-24.6-13.7%2032.3%2032.3%200%200%200%207.2-20.8A33.8%2033.8%200%200%200%20210.5%2091c-9.6%200-17.8%203.7-24.6%2011A60.2%2060.2%200%200%200%20164%2074.5a60.5%2060.5%200%200%200-64.8-2.3A62.1%2062.1%200%200%200%2077%2094.4a58.5%2058.5%200%200%200-8.2%2030.4%2053.9%2053.9%200%200%200%20.4%207.2A47.3%2047.3%200%200%200%2040%20147.9%2045.2%2045.2%200%200%200%2028.2%20179a47.3%2047.3%200%200%200%206.3%2023.7%2047.5%2047.5%200%200%200%2041.1%2023.6z%22%20style%3D%22fill%3A%23ededed%22%2F%3E%3Cpath%20d%3D%22M129.7%2063.9A59.2%2059.2%200%200%201%20164%2074.5a60.2%2060.2%200%200%201%2021.9%2027.5c6.8-7.3%2015-11%2024.6-11a33.8%2033.8%200%200%201%2034.2%2033.8%2032.3%2032.3%200%200%201-7.2%2020.8%2040.1%2040.1%200%200%201%2024.6%2013.7%2040.9%2040.9%200%200%201-2.1%2055.2%2039.2%2039.2%200%200%201-28.8%2011.8H75.6a46.7%2046.7%200%200%201-23.7-6.3%2046.1%2046.1%200%200%201-17.4-17.4%2046.6%2046.6%200%200%201-6.3-23.6A45.2%2045.2%200%200%201%2040%20147.9%2047.3%2047.3%200%200%201%2069.2%20132a53.9%2053.9%200%200%201-.4-7.2A58.5%2058.5%200%200%201%2077%2094.4a62.1%2062.1%200%200%201%2022.2-22.2%2059.2%2059.2%200%200%201%2030.5-8.3m0-10a68.6%2068.6%200%200%200-35.5%209.7%2072.2%2072.2%200%200%200-25.8%2025.7%2069.2%2069.2%200%200%200-9.6%2034.8%2057.3%2057.3%200%200%200-26.2%2017.1A55.3%2055.3%200%200%200%2018.2%20179a57.7%2057.7%200%200%200%2028.7%2049.7%2057.6%2057.6%200%200%200%2028.7%207.6h155.6a50.4%2050.4%200%200%200%2050.6-50.6%2049.2%2049.2%200%200%200-12.2-33%2050.3%2050.3%200%200%200-17.4-13.1%2044.1%2044.1%200%200%200-10.3-45.7A42.8%2042.8%200%200%200%20210.5%2081a41.2%2041.2%200%200%200-21.2%205.6%2071.4%2071.4%200%200%200-19.6-20.3%2068.9%2068.9%200%200%200-40-12.4z%22%20style%3D%22fill%3A%23b2b2b2%22%2F%3E%3Cpath%20style%3D%22fill%3A%23fff%22%20d%3D%22M109.4%20145.1h67.7l-33.9-30.4-33.8%2030.4z%22%2F%3E%3Cpath%20d%3D%22m143.2%20114.7%2033.9%2030.4h-67.7l33.8-30.4m0-10a10%2010%200%200%200-6.7%202.5l-33.8%2030.5a10%2010%200%200%200%206.7%2017.4h67.7a9.9%209.9%200%200%200%209.3-6.4%2010.1%2010.1%200%200%200-2.6-11l-33.9-30.5a10%2010%200%200%200-6.7-2.5z%22%20style%3D%22fill%3A%23b2b2b2%22%2F%3E%3Cpath%20d%3D%22M141.2%20197.9a5%205%200%200%201-5-5v-41.8a5%205%200%200%201%205-5%205%205%200%200%201%205%205v41.8a5%205%200%200%201-5%205zm116.9-6.5h-.5a3.5%203.5%200%200%201-2.9-4%2027.8%2027.8%200%200%200%20.4-5.1%203.5%203.5%200%200%201%207%200%2042.1%2042.1%200%200%201-.5%206.2%203.5%203.5%200%200%201-3.5%202.9zm-31.6%2026.5H200a3.5%203.5%200%200%201-3.5-3.5%203.4%203.4%200%200%201%203.5-3.5h26.5a27.5%2027.5%200%200%200%2020.3-8.3%2025.4%2025.4%200%200%200%203.6-4.5%203.5%203.5%200%201%201%205.8%204%2037.9%2037.9%200%200%201-4.5%205.4%2034.3%2034.3%200%200%201-25.2%2010.4z%22%20style%3D%22fill%3A%23b2b2b2%22%2F%3E%3Cpath%20d%3D%22M264.7%2086.9a3.1%203.1%200%200%200-3.2-3.2H190a3.1%203.1%200%200%200-3.2%203.2v39a3.2%203.2%200%200%200%20.9%202.4%203.2%203.2%200%200%200%202.3.9h71.5a3.2%203.2%200%200%200%202.3-.9%203.2%203.2%200%200%200%20.9-2.4z%22%20style%3D%22fill%3A%23ef8975%22%2F%3E%3Cpath%20d%3D%22M270.2%20125.7a9.6%209.6%200%200%201-9.7%209.7H189a9.6%209.6%200%200%201-9.7-9.7v-39a9.7%209.7%200%200%201%209.7-9.8h3.2v-13a31.8%2031.8%200%200%201%204.4-16.2%2032.3%2032.3%200%200%201%2011.9-11.9%2031.9%2031.9%200%200%201%2016.3-4.4%2031%2031%200%200%201%2016.3%204.5%2034.8%2034.8%200%200%201%2011.8%2012%2031.7%2031.7%200%200%201%204.3%2016.2v12.8h3.3a9.7%209.7%200%200%201%209.7%209.8zm-6.5-39a3.2%203.2%200%200%200-.9-2.4%203.2%203.2%200%200%200-2.3-.9H189a3.2%203.2%200%200%200-2.3.9%203.2%203.2%200%200%200-.9%202.4v39a3.1%203.1%200%200%200%203.2%203.2h71.5a3.1%203.1%200%200%200%203.2-3.2zm-13-9.8v-13a25.9%2025.9%200%200%200-3.4-13.1%2025.2%2025.2%200%200%200-9.5-9.4%2025.7%2025.7%200%200%200-13.1-3.5%2026%2026%200%200%200-13.1%203.5%2025%2025%200%200%200-9.4%209.4%2026%2026%200%200%200-3.5%2013.1v13zm-28.8%2038.6a3.9%203.9%200%200%201-1.2-2.8v-13a4%204%200%200%201%201.2-2.9%203.9%203.9%200%200%201%202.8-1.2%204.1%204.1%200%200%201%204.1%204.1v13a3.9%2
503.9%200%200%201-1.2%202.8%204%204%200%200%201-2.9%201.2%203.9%203.9%200%200%201-2.8-1.2z%22%20style%3D%22fill%3A%231d1d1b%22%2F%3E%3C%2Fsvg%3E";var hi=t(11582),ui=t(52970);const mi="admin.lessons.taskForm",pi=(0,A.connect)((e,s)=>{const{admin:{lessons:{taskTypesRequest:{result:t},lessonForm:r,taskForm:i,updateTaskRequest:n,saveTaskRequest:l}},fileManagementWizard:{data:{tags:a}}}=e,{survey:{adminListing:{listing:o}}}=e,{id:c,type:d}=i,h=!c;return{taskTypes:t,taskType:d,taskIndex:s.taskIndex,taskId:c,createMode:h,taskModel:(0,O.E1)(e,mi),surveyListing:o,fileTags:a,userProfile:e.authenticationState.userProfile,submitType:h?"create":"update",submitTask:h?mr.fd:mr.lC,submitRequest:h?l:n}},e=>({dispatch:e}))(e=>{var s;const t=(0,r.g)(),n=t.lessonId;(0,B.es)((0,Je.cB)());(0,B.es)(mr.OE(t.taskId),[t.taskId]);(0,B.es)((0,V.UD)());const{dispatch:l,createMode:a,taskIndex:o,taskId:c,taskModel:d,surveyListing:h,fileTags:u,taskCount:m,taskTypes:x,taskType:j,submitTask:f,submitRequest:g,userProfile:v}=e,b=[{id:0,subscriptionOnly:!1,thumb:ni,name:i.t`Text / Reflection`,timeRequired:"",description:i.t`Users will be asked to enter a free-form, text based response. You can restrict the minimum and maximum number of words required to complete the task.`},{id:1,subscriptionOnly:!1,thumb:ii,name:i.t`Interest Profiler`,timeRequired:20,description:i.t`The user will be asked to perform an Interest Profiler to complete a task. If they have previously done one, they will be allowed to select it - or perform a new one.`},{id:2,subscriptionOnly:!1,thumb:ri,name:i.t`Work Importance Profiler`,timeRequired:20,description:i.t`The user will be asked to perform a Work Importance Profiler to complete a task. If they have previously done one, they will be allowed to select it - or perform a new one.`},{id:3,subscriptionOnly:!1,thumb:si,name:i.t`Skills Profiler`,timeRequired:20,description:i.t`The user will be asked to perform a Skills Profiler to complete a task. If they have previously done one, they will be allowed to select it - or perform a new one.`},{id:19,subscriptionOnly:!0,thumb:ti,lockedThumb:di,name:i.t`Skills Decoder`,timeRequired:25,description:i.t`The user will be asked to perform a Skills Decoder to complete a task. If they have previously done one, they will be allowed to select it - or perform a new one.`},{id:4,subscriptionOnly:!1,thumb:ei,name:i.t`Budget`,timeRequired:20,description:i.t`The user will be asked to perform a Budget to complete a task. If they have previously done one, they will be allowed to select it - or perform a new one.`},{id:14,subscriptionOnly:!1,thumb:Kr,name:i.t`Resume`,timeRequired:30,description:i.t`The user will be required to a create a resume. If they have previously done one, they will be allowed to select it - or create a new one.`},{id:15,subscriptionOnly:!1,thumb:xr,name:i.t`Write a Letter`,timeRequired:20,description:i.t`The user will be required to a write a letter. If they have previously done one, they will be allowed to select it - or create a new one.`},{id:16,subscriptionOnly:!1,thumb:Wr,name:i.t`Reference List`,timeRequired:20,description:i.t`The user will be required to a create a reference list. If they have previously done one, they will be allowed to select it - or create a new one.`},{id:17,subscriptionOnly:!1,thumb:Gr,name:i.t`College Preferences`,timeRequired:15,description:i.t`The user will be required to complete the college preferences module. If they have previously completed it, that one will be used.`},{id:13,subscriptionOnly:!1,thumb:Qr,lockedThumb:Qr,name:i.t`Link`,timeRequired:"",description:i.t`The user will be required to visit an external site.`},{id:9,subscriptionOnly:!0,thumb:Xr,lockedThumb:"data:image/svg+xml,%3Csvg%20data-name%3D%22Layer%201%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20300%20300%22%3E%3Cpath%20d%3D%22M240.7%20261.7V98.9l-68.6-68.7H67.8a8.2%208.2%200%200%200-8.5%207.9v223.6a8.3%208.3%200%200%200%207.9%208.6h165a8.2%208.2%200%200%200%208.5-7.9z%22%20style%3D%22fill%3A%23ededed%22%2F%3E%3Cpath%20d%3D%22M67.5%2030.2h104.6l68.6%2068.7v163.4a8.2%208.2%200%200%201-8.2%207.9H67.2a8.3%208.3%200%200%201-7.9-8.6V38.1a8.2%208.2%200%200%201%208.2-7.9m0-10a18.2%2018.2%200%200%200-18.2%2017.5v223.8a18.5%2018.5%200%200%200%204.8%2012.9%2017.6%2017.6%200%200%200%2012.7%205.8h165.7a18.2%2018.2%200%200%200%2018.2-17.5V98.9a9.9%209.9%200%200%200-2.9-7.1l-68.6-68.6a10%2010%200%200%200-7.1-3H67.5z%22%20style%3D%22fill%3A%23b2b2b2%22%2F%3
5E%3Cpath%20style%3D%22fill%3A%23fff%22%20d%3D%22M176.7%2028.2v67.7h67.8l-67.8-67.7z%22%2F%3E%3Cpath%20d%3D%22M244.5%20100.9h-67.8a5%205%200%200%201-5-5V28.2a5.1%205.1%200%200%201%203.1-4.6%204.9%204.9%200%200%201%205.5%201.1L248%2092.4a5.1%205.1%200%200%201%201.1%205.4%205%205%200%200%201-4.6%203.1zm-62.8-10h50.7l-50.7-50.6zM101%20164.4v-12.2a6.1%206.1%200%200%201%206.2-6.1h12.2a6.1%206.1%200%200%201%206.1%206.1v12.2a6.1%206.1%200%200%201-6.1%206.1h-12.2a6.1%206.1%200%200%201-6.2-6.1zm.7%2045.9a2.1%202.1%200%200%201%200-2.9l4.8-4.9a2.2%202.2%200%200%201%203%200l7.8%208%2018.2-18a2.1%202.1%200%200%201%202.9%200l4.9%204.8a2.2%202.2%200%200%201%200%203l-24.6%2024.3a2.1%202.1%200%200%201-2.9%200zm36.1-45.9v-12.2a3%203%200%200%201%203-3.1h55.1a3.1%203.1%200%200%201%203.1%203.1v12.2a3.1%203.1%200%200%201-3.1%203.1h-55.1a3%203%200%200%201-3-3.1zm61.2%2042.4v12.3a3%203%200%200%201-3.1%203h-57.3l13.3-13.2a13%2013%200%200%200%203.2-5.1h40.8a3%203%200%200%201%203.1%203z%22%20style%3D%22fill%3A%23b2b2b2%22%2F%3E%3Cpath%20d%3D%22M250.7%2078.8a3.2%203.2%200%200%200-.9-2.4%203.2%203.2%200%200%200-2.3-.9H176a3.4%203.4%200%200%200-2.4.9%203.2%203.2%200%200%200-.9%202.4v39a3.2%203.2%200%200%200%20.9%202.3%203.4%203.4%200%200%200%202.4.9h71.5a3.1%203.1%200%200%200%203.2-3.2z%22%20style%3D%22fill%3A%23fff%22%2F%3E%3Cpath%20d%3D%22M250.7%2078.8a3.2%203.2%200%200%200-.9-2.4%203.2%203.2%200%200%200-2.3-.9H176a3.4%203.4%200%200%200-2.4.9%203.2%203.2%200%200%200-.9%202.4v39a3.2%203.2%200%200%200%20.9%202.3%203.4%203.4%200%200%200%202.4.9h71.5a3.1%203.1%200%200%200%203.2-3.2z%22%20style%3D%22fill%3A%23ef8975%22%2F%3E%3Cpath%20d%3D%22M257.2%20117.8a9.6%209.6%200%200%201-9.7%209.7H176a9.7%209.7%200%200%201-9.8-9.7v-39A9.9%209.9%200%200%201%20176%2069h3.2V56a31.8%2031.8%200%200%201%204.4-16.2%2032.3%2032.3%200%200%201%2011.9-11.9%2031.9%2031.9%200%200%201%2016.3-4.4%2031%2031%200%200%201%2016.3%204.5%2033.6%2033.6%200%200%201%2011.7%2012%2030.8%2030.8%200%200%201%204.4%2016.2V69h3.3a9.7%209.7%200%200%201%209.7%209.8zm-6.5-39a3.2%203.2%200%200%200-.9-2.4%203.2%203.2%200%200%200-2.3-.9H176a3.4%203.4%200%200%200-2.4.9%203.2%203.2%200%200%200-.9%202.4v39a3.2%203.2%200%200%200%20.9%202.3%203.4%203.4%200%200%200%202.4.9h71.5a3.1%203.1%200%200%200%203.2-3.2zm-13-9.8V56a25.9%2025.9%200%200%200-3.4-13.1%2025.2%2025.2%200%200%200-9.5-9.4%2025.7%2025.7%200%200%200-13.1-3.5%2026%2026%200%200%200-13.1%203.5%2025%2025%200%200%200-9.4%209.4%2026%2026%200%200%200-3.5%2013.1v13zm-28.8%2038.6a3.9%203.9%200%200%201-1.2-2.8v-13a4%204%200%200%201%201.2-2.9%203.8%203.8%200%200%201%202.8-1.2%204.2%204.2%200%200%201%202.9%201.2%204%204%200%200%201%201.2%202.9v13a3.9%203.9%200%200%201-1.2%202.8%204.2%204.2%200%200%201-2.9%201.2%203.8%203.8%200%200%201-2.8-1.2z%22%20style%3D%22fill%3A%231d1d1b%22%2F%3E%3Cpath%20d%3D%22M237.7%2069V56a25.9%2025.9%200%200%200-3.4-13.1%2025.2%2025.2%200%200%200-9.5-9.4%2025.7%2025.7%200%200%200-13.1-3.5%2026%2026%200%200%200-13.1%203.5%2025%2025%200%200%200-9.4%209.4%2026%2026%200%200%200-3.5%2013.1v13z%22%20style%3D%22fill%3A%23fff%22%2F%3E%3C%2Fsvg%3E",name:i.t`Survey`,timeRequired:"",description:i.t`The user will be asked to complete a survey in order to complete the task.`},{id:10,subscriptionOnly:!0,thumb:Jr,lockedThumb:Os,name:i.t`Download File`,timeRequired:"",description:i.t`Have the user download a file to complete the task`},{id:11,subscriptionOnly:!0,thumb:Zr,lockedThumb:"data:image/svg+xml,%3Csvg%20data-name%3D%22Layer%201%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20300%20300%22%3E%3Cpath%20d%3D%22M229.3%2054.7H70.8a17.2%2017.2%200%200%200-17.1%2017.1v158.5a17.2%2017.2%200%200%200%2017.1%2017.1h158.5a17.2%2017.2%200%200%200%2017.1-17.1V71.8a17.2%2017.2%200%200%200-17.1-17.1zM103.8%20208.1V94a2.9%202.9%200%200%201%204.3-2.5l98.8%2057.1a2.8%202.8%200%200%201%200%204.9l-98.8%2057.1a2.9%202.9%200%200%201-4.3-2.5z%22%20style%3D%22fill%3A%23ededed%22%2F%3E%3Cpath%20d%3D%22M229.3%2054.7a17.2%2017.2%200%200%201%2017.1%2017.1v158.5a17.2%2017.2%200%200%201-17.1%2017.1H70.8a17.2%2017.2%200%200%201-17.1-17.1V71.8a17.2%2017.2%200%200%201%2017.1-17.1h158.5M106.7%20210.9l1.4-.3%2098.8-57.1a2.8%202.8%200%200%200%200-4.9l-98.8-57.1-1.4-.3a2.8%202.8%200%200%200-2.9%202.8v114.1a2.8%202.8%200%200%200%202.9%202.8M229.3%2044.7H70.8a27.1%2027.1%200%200%200-27.1%2027.1v158.5a27.1%2027.1%200%200%200%2027.1%2027.1h158.5a27.2%2027.2%200%200%200%2027.1-27.1V71.8a27.2%2027.2%200%200%200-27.1-27.1zm-115.5%20151v-89.3l77.3%2
5044.7-77.3%2044.6z%22%20style%3D%22fill%3A%23b2b2b2%22%2F%3E%3Cpath%20d%3D%22M252.3%2076.9v-13a25.9%2025.9%200%200%200-3.4-13.1%2026.2%2026.2%200%200%200-22.5-12.9%2025.7%2025.7%200%200%200-13.1%203.5%2025.2%2025.2%200%200%200-9.5%209.4%2025.9%2025.9%200%200%200-3.4%2013.1v13z%22%20style%3D%22fill%3A%23fff%22%2F%3E%3Cpath%20d%3D%22M265.3%2087a3.2%203.2%200%200%200-.9-2.4%203.2%203.2%200%200%200-2.3-.9h-71.5a3.2%203.2%200%200%200-2.3.9%203.2%203.2%200%200%200-.9%202.4v39a3.1%203.1%200%200%200%203.2%203.2h71.5a3.1%203.1%200%200%200%203.2-3.2z%22%20style%3D%22fill%3A%23ef8975%22%2F%3E%3Cpath%20d%3D%22M271.8%20125.7a9.6%209.6%200%200%201-9.7%209.7h-71.5a9.6%209.6%200%200%201-9.7-9.7v-39a9.7%209.7%200%200%201%209.7-9.8h3.3v-13a31.7%2031.7%200%200%201%204.3-16.2%2032.7%2032.7%200%200%201%2028.3-16.3%2030.7%2030.7%200%200%201%2016.2%204.5%2033.9%2033.9%200%200%201%2011.8%2012%2031.7%2031.7%200%200%201%204.3%2016.2v12.8h3.3a9.7%209.7%200%200%201%209.7%209.8zm-6.5-39a3.2%203.2%200%200%200-.9-2.4%203.2%203.2%200%200%200-2.3-.9h-71.5a3.2%203.2%200%200%200-2.3.9%203.2%203.2%200%200%200-.9%202.4v39a3.1%203.1%200%200%200%203.2%203.2h71.5a3.1%203.1%200%200%200%203.2-3.2zm-13-9.8v-13a25.9%2025.9%200%200%200-3.4-13.1%2026.2%2026.2%200%200%200-22.5-12.9%2025.7%2025.7%200%200%200-13.1%203.5%2025.2%2025.2%200%200%200-9.5%209.4%2025.9%2025.9%200%200%200-3.4%2013.1v13zm-28.8%2038.6a3.9%203.9%200%200%201-1.2-2.8v-13a4.1%204.1%200%200%201%204.1-4.1%203.9%203.9%200%200%201%202.8%201.2%204%204%200%200%201%201.2%202.9v13a4.1%204.1%200%200%201-4%204%204%204%200%200%201-2.9-1.2z%22%20style%3D%22fill%3A%231d1d1b%22%2F%3E%3C%2Fsvg%3E",name:i.t`Video`,timeRequired:"",description:i.t`The user will be required to watch a video to complete the task.`},{id:12,subscriptionOnly:!0,thumb:Yr,lockedThumb:di,name:i.t`Submit Work`,timeRequired:5,description:i.t`The user will be required to a submit a file.`},{id:18,subscriptionOnly:!0,thumb:_r,lockedThumb:di,name:i.t`Instructor Notes`,timeRequired:5,description:i.t`Directions for the administrator of the lesson. Tasks of this type will not be visible to the user when they are assigned this lesson.`}],y=()=>{const e=(()=>{switch(j){case 0:return{img:ni,title:i.t`Text / Reflection`};case 1:return{img:ii,title:i.t`Interest Profiler`};case 2:return{img:ri,title:i.t`Work Importance Profiler`};case 3:return{img:si,title:i.t`Skills Profiler`};case 4:return{img:ei,title:i.t`Budget`};case 9:return{img:Xr,title:i.t`Survey`};case 10:return{img:Jr,title:i.t`File`};case 11:return{img:Zr,title:i.t`Video`};case 12:return{img:Yr,title:i.t`Submit Work`};case 13:return{img:Qr,title:i.t`Links`};case 14:return{img:Kr,title:i.t`Resume Builder`};case 15:return{img:xr,title:i.t`Letter Builder`};case 16:return{img:Wr,title:i.t`Reference List Maker`};case 17:return{img:Gr,title:i.t`College Preferences`};case 18:return{img:_r,title:i.t`Instructor Notes`};case 19:return{img:ti,title:i.t`Skills Decoder`};default:return{img:hi,title:i.t`Unknown`}}})();return[(0,p.jsx)("img",{src:e.img,className:"pull-left",style:{maxHeight:"60px",width:"60px",marginRight:"6px"}}),(0,p.jsx)("h3",{style:{lineHeight:"30px",marginBottom:"8px"},children:e.title})]},N=(e,s)=>{const t=(0,p.jsx)("div",{className:"col-xs-12",children:(0,p.jsx)(D.A,{model:`${s}.requiredFromProgramYear`,form:e,largeTextInput:!0,label:i.t`Require to be performed in current program year`,type:"checkbox"})});switch(j){case 1:case 2:case 3:case 4:case 14:case 15:case 16:return[t];case 0:return[(0,p.jsx)("div",{className:"col-xs-6",children:(0,p.jsx)(D.A,{model:`${s}.minWords`,form:e,largeTextInput:!0,label:i.t`Minimum number of words required`,required:!0})}),(0,p.jsx)("div",{className:"col-xs-6",children:(0,p.jsx)(D.A,{model:`${s}.maxWords`,form:e,largeTextInput:!0,label:i.t`Maximum number of words required`,required:!1})})];case 10:return[(0,p.jsxs)("div",{className:"col-xs-12",children:[d.fileId?(0,p.jsxs)("p",{children:[i.t`Current File: `," ",(0,p.jsx)("a",{href:d.fileId.url,children:d.fileId.fileName})]}):null,(0,p.jsx)(D.A,{model:`${s}.file`,form:e,required:!0,largeTextInput:!0,label:i.t`File to Download`,type:"file"})]})];case 11:return[(0,p.jsxs)("div",{className:"col-xs-12",children:[d.fileId?(0,p.jsxs)("div",{className:"row",style:{backgroundColor:"#fafafa",padding:"25px",marginBottom:"25px"},children:[(0,p.jsxs)("div",{className:"col-xs-3",children:[(0,p.jsx)("b",{children:i.t`Current Video: `}),(0,p.jsx)("br",{}),d.fileId.fileName]}),(0,p.jsx)("div",{className:"col-xs-9",children:(0,p.jsx)("div",{style:{backgroundColor:"#fff"},children:(0,p.jsx)(ui.A,{children:(0,p.jsx)("source",{src:d.fileId.url,type:"video/mp4"})})})})]}):null,(0,p.jsx)(D.A,{model:`${s}.file`,form:e,required:!0,largeTextInput:!0,label:d.fileId?i.t`New Video`:i.t`Video`,type:"file"})]})];case 9:return[(0,p.jsx)("div",{className:"col-xs-12",children:(0,p.jsxs)(D.A,{model:`${s}.surveyId`,required:!0,largeTextInput:!0,form:e,label:i.t`Survey`,type:"select",children:[(0,p.jsx)("option",{value:"",children:i.t`Please choose one`}),(h||[]).map(e=>(0,p.jsx)("option",{value:e.id,children:e.name},e.id))]})})];case 12:return[(0,p.jsx)("div",{className:"col-xs-12",children:(0,p.jsx)(D.A,{model:`${s}.submittedFileAutoTagId`,form:e,theme:"bootstrap3",largeTextInput:!0,options:(u||[]).map(e=>({label:e.name,value:e})),renderOption:e=>(0,p.jsx)("div",{style:{padding:"1em"},children:(0,p.jsx)("b",{children:e.label})}),createFromSearch:()=>null,createFromValue:e=>({label:e.name,value:e}),label:i.t`Auto Tag File With:`,type:"simpleselect"})})];case 13:return[(0,p.jsx)("div",{className:"col-xs-12",children:(0,p.jsx)(D.A,{model:`${s}.link`,form:e,required:!0,largeTextInput:!0,validate:[ce.OZ()],label:i.t`URL To Visit`,type:"text"})})];default:return null}},w=((b||[]).find(e=>e.id===j)||{}).description||null,A=((b||[]).find(e=>e.id===j)||{}).subscriptionOnly,S=dynamicValues.isSubscriber||v.isPremium||(null===(s=dynamicValues.userProfile)||void 0===s?void 0:s.isRoot),C=e=>{if(A&&!S)return(0,p.jsx)("div",{className:"col-xs-12",children:(0,p.jsxs)("div",{className:"with-border note-color",children:[(0,p.jsxs)("p",{style:{lineHeight:"40px",fontSize:"1.5rem",marginBottom:"25px"},children:[(0,p.jsx)("img",{src:tr,style:{height:"40px",marginRight:"10px",float:"left"}})," ",i.t`This task type is not available to free educator accounts, it requires an upgrade. `]}),(0,p.jsx)("hr",{}),(0,p.jsx)(ir,{})]})},"sub-task-type-unavailabke");else return(0,p.jsxs)("div",{children:[(0,p.jsx)("div",{className:"col-xs-12",children:(0,p.jsx)(D.A,{model:`${mi}.title`,form:e,label:i.t`Title of Task`,largeTextInput:!0,required:!0})}),(0,p.jsx)("div",{className:"col-xs-12",children:(0,p.jsx)(D.A,{model:`${mi}.description`,form:e,largeTextInput:!0,label:i.t`Description / Instru
5ctions`,type:"tinymce",renderKey:`${j}.${o}.${c}`,required:!0})}),(0,p.jsx)("div",{className:"col-xs-12",children:(0,p.jsx)(D.A,{model:`${mi}.timeRequired`,form:e,label:i.t`Time Suggested (minutes)`,largeTextInput:!0,required:!1})}),N(e,mi),(0,p.jsx)("div",{className:"col-xs-12",children:(0,p.jsx)(P.A,{loading:g.loading,error:g.error,success:(0,q.L$)(g)&&(a?i.t`Task Saved`:i.t`Task Updated`),className:"btn btn-success",type:"submit",children:a?i.t`Save Task`:i.t`Update Task`})})]},"task-type-availabke")};return(0,p.jsxs)(M.A,{show:!0,enforceFocus:!1,onHide:()=>H.N.push(`/admin/assignments/edit/${n}`),dialogClassName:"fullscreen-modal",children:[(0,p.jsxs)(M.A.Header,{style:{color:"white",fontWeight:"bold"},children:[(0,p.jsx)("button",{type:"button",className:"close","aria-label":i.t`Close`,onClick:()=>H.N.replace(`/admin/assignments/edit/${n}`),children:(0,p.jsx)("span",{"aria-hidden":"true",children:"×"})}),(0,p.jsx)("h2",{className:"modal-title",children:i.t`Edit Task`})]}),(0,p.jsxs)(M.A.Body,{children:[!a&&(0,p.jsxs)("a",{className:"btn btn-default btn-sm pull-right no-style",href:"javascript:void(0)",onClick:e=>{e.preventDefault();if(confirm(i.t`Are you sure you want to delete this task?`))l((0,mr.vq)(n,c))},children:[(0,p.jsx)("i",{className:"delete"})," ",i.t`Delete Task`]}),(0,p.jsx)("div",{style:{paddingTop:"1em"},children:(0,p.jsx)(k.A,{model:mi,onSubmit:e=>l(f(n,e)).then(e=>{H.N.push(`/admin/assignments/edit/${n}`);return e}),children:e=>(0,p.jsxs)("div",{className:"row",children:[a?(0,p.jsx)("div",{className:"col-xs-12",children:(0,p.jsxs)("div",{children:[(0,p.jsxs)("div",{className:"row with-border note-color",children:[(0,p.jsx)("div",{className:"col-xs-12",children:(0,p.jsx)("h3",{className:"section-heading",children:i.t`First, Choose the Type of Question`})}),b.map(e=>{const s=d.type==e.id?{border:"1px solid #fdd1a5",borderRadius:"3px",backgroundColor:"#fffefb",minHeight:"100px",marginBottom:"10px"}:{marginBottom:"10px",minHeight:"100px"};return(0,p.jsx)("a",{className:"col-xs-3 col-sm-2 text-center task-type-selection-item",onClick:()=>{l(O.o1.omit(mi,"file"));l(O.o1.omit(mi,"surveyId"));l(O.o1.omit(mi,"link"));l(O.o1.omit(mi,"minWords"));l(O.o1.omit(mi,"maxWords"));l(O.o1.omit(mi,"notesRequired"));if(10===e.id||11===e.id)l(O.o1.change(`${mi}.file`,[]));else if(0===e.id)l(O.o1.change(`${mi}.minWords`,0));else if(9===e.id)l(O.o1.change(`${mi}.surveyId`,""));else if(12===e.id)l(O.o1.change(`${mi}.submittedFileAutoTagId`,-1));else if(13===e.id)l(O.o1.change(`${mi}.link`,""));else if(14===e.id)l(O.o1.change(`${mi}.resumeId`,""));else if(15===e.id)l(O.o1.change(`${mi}.letterId`,""));else if(16===e.id)l(O.o1.change(`${mi}.referenceListId`,""));l(O.o1.change(`${mi}.timeRequired`,e.timeRequired));l(O.o1.change(`${mi}.type`,e.id))},children:(0,p.jsxs)("div",{className:d.type==e.id?"selected":"unselected",style:s,children:[(0,p.jsx)("img",{src:e.subscriptionOnly&&!S?e.lockedThumb:e.thumb,style:{maxWidth:"50px",paddingTop:"5px",margin:"auto"},className:"img-responsive"}),(0,p.jsx)("div",{children:e.name})]})},`itm-${e.id}`)}),(0,p.jsx)("br",{className:"clear"})]}),(0,p.jsx)("hr",{})]})}):null,(0,p.jsxs)("div",{className:"col-xs-12",children:[y(),(0,p.jsx)("p",{children:w}),(0,p.jsx)("hr",{})]}),C(e)]},"assignment-edit-form")})})]})]})}),xi=(0,A.connect)((e,s)=>{var t,r,i,n,l,a,o,c,d,h;const{admin:{lessons:{saveRequest:u,updateRequest:m,privilegedRequest:p}}}=e;return{isSubscriber:dynamicValues&&((null===(t=dynamicValues.userProfile)||void 0===t?void 0:t.isRoot)||dynamicValues.isSubscriber),lessonModelName:"admin.lessons.lessonForm",lessonCanBeShared:null===(r=e.admin.lessons)||void 0===r?void 0:null===(i=r.adminEdit)||void 0===i?void 0:null===(n=i.selected)||void 0===n?void 0:n.lessonInCurrentTenant,systemLesson:null===(l=e.admin.lessons)||void 0===l?void 0:null===(a=l.adminEdit)||void 0===a?void 0:null===(o=a.selected)||void 0===o?void 0:o.system,lessonTenantAndSubTenant:null===(c=e.admin.lessons)||void 0===c?void 0:null===(d=c.adminEdit)||void 0===d?void 0:null===(h=d.selected)||void 0===h?void 0:h.tenant,saveRequest:u,updateRequest:m}},e=>({dispatch:e}))(({dispatch:e,saveRequest:s,updateRequest:t,lessonModelName:n,isSubscriber:l,lessonCanBeShared:a,lessonTenantAndSubTenant:o,systemLesson:c})=>{var d;const h=(0,r.g)().lessonId,u=!h?s:t,m=!h?mr.eO:mr.Wm,x=(0,p.jsx)("a",{target:"_blank",href:dynamicValues.subscriptionPage,rel:"noreferrer",children:i.t`Learn More`}),j=(null==o?void 0:o.tenantName)??i.t`unknown`,f=null!=o&&o.subTenantName?i.t` for ${o.subTenantName}`:"";return(0,p.jsxs)(M.A,{bsSize:"large",enforceFocus:!1,show:!0,onHide:()=>{H.N.push(`/admin/assignments/edit/${h}`)},dialogClassName:"fullscreen-modal",children:[(0,p.jsx)(M.A.Header,{closeButton:!0,children:(0,p.jsx)("h2",{className:"modal-title",children:i.t`Edit Lesson Info`})}),(0,p.jsxs)(M.A.Body,{children:[(null===(d=dynamicValues.userProfile)||void 0===d?void 0:d.isRoot)&&(0,p.jsxs)("div",{children:[(0,p.jsxs)(C.N_,{to:`/admin/assignments/edit/${h}/privileged`,className:"pull-right btn btn-small btn-default no-style",children:[(0,p.jsx)("i",{className:"edit"})," ",i.t`Edit Privileged Fields`]}),(0,p.jsx)("br",{className:"clear"})]}),(0,p.jsx)("div",{style:{paddingTop:"1em"},children:(0,p.jsx)(k.A,{model:n,onSubmit:s=>{e(m(s)).then(()=>H.N.push(`/admin/assignments/edit/${h}`))},children:e=>(0,p.jsxs)("div",{className:"row",children:[(0,p.jsx)("div",{className:"col-xs-12",children:(0,p.jsx)(D.A,{model:`${n}.name`,form:e,label:i.t`Lesson Name`,required:!0})}),(0,p.jsx)("div",{className:"col-xs-6",children:(0,p.jsxs)(D.A,{model:`${n}.gradeLevelMin`,form:e,label:i.t`Minimum Suggested Grade`,control:O.Ec.select,children:[(0,p.jsx)("option",{value:"",children:i.t`Please choose one`}),mr.DR.map(({name:e,value:s})=>(0,p.jsx)("option",{value:s,children:e},s.toString()))]})}),(0,p.jsx)("div",{className:"col-xs-6",children:(0,p.jsxs)(D.A,{model:`${n}.gradeLevelMax`,form:e,label:i.t`Maximum Suggested Grade`,control:O.Ec.select,children:[(0,p.jsx)("option",{value:"",children:i.t`Please choose one`}),mr.DR.map(({name:e,value:s})=>(0,p.jsx)("option",{value:s,children:e},s.toString()))]})}),(0,p.jsx)("div",{className:"col-xs-12",children:(0,p.jsx)(D.A,{model:`${n}.educatorDescription`,form:e,label:i.t`Educator Description`,type:"tinymce",required:!0})}),!c?(0,p.jsx)("div",{className:"col-xs-12",style:{marginBottom:"20px"},children:!a?(0,p.jsx)("div",{className:"alert alert-warning",children:i.t`This lesson can only be shared within the ${j}${f} site.`}):(0,p.jsx)(D.A,{model:`${n}.shared`,form:e,label:i.t`Shared`,type:"checkbox",disabled:!l,help:!l&&(0,p.jsx)("span",{children:i.jt`Sharing lessons between educators is only available for subscribers, ${x}`})})}):null,(0,p.jsx)("div",{className:"col-xs-12",children:(0,p.jsx)(P.A,{loading:u.loading,error:u.error,success:(0,q.L$)(u)&&(!h?i.t`Saved!`:i.t`Updated!`),className:"btn btn-success",type:"submit",children:h?i.t`Update Lesson`:i.t`Save Lesson`})})]})})})]})]})}),ji=(0,A.connect)((e,s)=>{const{admin:{lessons:{saveRequest:t,updateRequest:r}}}=e;return{lessonModelName:"admin.lessons.lessonForm",saveRequest:t,updateRequest:r}},e=>({dispatch:e}))(({dispatch:e,lessonModelName:s,saveRequest:t,updateRequest:n})=>{const l=(0,r.g)().lessonId,a=!l?t:n,o=!l?mr.eO:mr.Wm;return(0,p.jsxs)(M.A,{bsSize:"large",show:!0,enforceFocus:!1,onHide:()=>{H.N.push(`/admin/assignments/edit/${l}`)},dialogClassName:"fullscreen-modal",children:[(0,p.jsx)(M.A.Header,{closeButton:!0,children:(0,p.jsx)("h2",{className:"modal-title",children:i.t`Edit Introduction and Instructions`})}),(0,p.jsx)(M.A.Body,{children:(0,p.jsx)("div",{style:{paddingTop:"1em"},children:(0,p.jsx)(k.A,{model:s,onSubmit:s=>{e(o(s)).then(()=>H.N.push(`/admin/assignments/edit/${l}`))},children:e=>(0,p.jsxs)("div",{className:"row",children:[(0,p.jsx)("div",{className:"col-xs-12",children:(0,p.jsx)(D.A,{model:`${s}.description`,form:e,label:i.t`Introduction and Instructions`,type:"tinymce",required:!0})}),(0,p.jsx)("div",{className:"col-xs-12",children:(0,p.jsx)(P.A,{loading:a.loading,error:a.error,success:(0,q.L$)(a)&&(!l?"Saved!":"Updated!"),className:"btn btn-success",type:"submit",children:l?"Update Lesson":"Save Lesson"})})]})})})})]})}),fi=(0,A.connect)((e,s)=>{var t;const r="admin.lessons.lessonForm",i="admin.lessons.privilegedForm",n=dynamicValues&&dynamicValues.tenants||[],l=(0,O.E1)(e,r),a=(0,O.E1)(e,i).segment,o=s.match.params.lessonId,c=n.find(e=>e.id===a),d=c&&c.subTenants||[],{admin:{lessons:{saveRequest:h,updateRequest:u,privilegedRequest:m}}}=e,p=parseInt(s.match.params.taskIndex)||0,x=dynamicValues&&((null===(t=dynamicValues.userProfile)||void 0===t?void 0:t.isRoot)||dynamicValues.isSubscriber),j=p?"tasks":s.privileged?"privileged":"lesson";return{isSubscriber:x,lessonModelName:r,privilegedModelName:i,lessonId:o,tenants:n,subTenants:d,request:!o?h:u,privilegedRequest:m,tasks:l.tasks,taskIndex:p,onComplete:!o?mr.eO:mr.Wm,tenantId:c?c.id:null,mode:j}},e=>({dispatch:e}))(({dispatch:e,privilegedModelName:s,lessonId:t,tenants:r,subTenants:n,privilegedRequest:l,tenantId:a})=>{var o,c;if(null===(o=dynamicValues.userProfile)||void 0===o||!o.isRoot)return null;else return(0,p.jsxs)(M.A,{bsSize:"large",show:!0,onHide:()=>{H.N.push(`/admin/assignments/edit/${t}`)},dialogClassName:"fullscreen-modal",children:[(0,p.jsx)(M.A.Header,{closeButton:!0,children:(0,p.jsx)("h2",{className:"modal-title",children:i.t`Edit Privileged Fields`})}),(0,p.jsxs)(M.A.Body,{children:[(null===(c=dynamicValues.userProfile)||void 0===c?void 0:c.isRoot)&&(0,p.jsxs)("div",{children:[(0,p.jsxs)(C.N_,{to:`/admin/assignments/edit/${t}/update`,className:"pull-right btn btn-small btn-default no-style",children:[(0,p.jsx)("i",{className:"edit"})," ",i.t`Edit Lesson Info`]}
5),(0,p.jsx)("br",{className:"clear"})]}),(0,p.jsx)("div",{style:{paddingTop:"1em"},children:(0,p.jsx)(k.A,{model:s,onSubmit:s=>{e((0,mr.pI)(s))},children:e=>(0,p.jsxs)("div",{children:[(0,p.jsxs)(D.A,{model:`${s}.segment`,form:e,label:"Tenant",required:!1,control:O.Ec.select,children:[(0,p.jsx)("option",{value:"",children:"None"}),r.map(e=>(0,p.jsx)("option",{value:e.id,children:e.name},e.id))]}),(0,p.jsxs)(D.A,{model:`${s}.subSegment`,form:e,label:"Sub Tenant",disabled:!a,required:!1,control:O.Ec.select,children:[(0,p.jsx)("option",{value:"",children:"All Sub Tenants"}),n.map(e=>(0,p.jsx)("option",{value:e.id,children:e.name},e.id))]}),(0,p.jsx)(D.A,{model:`${s}.group`,form:e,label:"Group Name",disabled:!!a,help:"Lesson groups can be shared with more than one tenant (don't set a Tenant if you want to use this)"}),(0,p.jsx)(D.A,{model:`${s}.system`,form:e,label:"System Lesson",type:"checkbox",help:"System lessons aren't owned, so they won't follow you from site to site"}),(0,p.jsx)(D.A,{model:`${s}.weight`,form:e,label:"Weight",type:"number",help:"Lessons with a lower weight will rise to the top of the listing"}),(0,p.jsx)(D.A,{model:`${s}.subscriptionOnly`,form:e,label:"Subscription Only",type:"checkbox"}),(0,p.jsx)(P.A,{loading:l.loading,error:l.error,success:(0,q.L$)(l)&&"Updated!",className:"btn btn-primary",type:"submit",children:"Update"})]})})})]})]})});var gi=t(32086);const vi=(0,A.connect)((e,s)=>{const{admin:{lessons:{saveRequest:t,updateRequest:r}}}=e;return{lessonModelName:"admin.lessons.lessonForm",saveRequest:t,updateRequest:r}},e=>({dispatch:e}))(({dispatch:e,lessonModelName:s,saveRequest:t,updateRequest:n})=>{const l=(0,r.g)().lessonId,a=!l?t:n,o=!l?mr.eO:mr.Wm;return(0,p.jsxs)(M.A,{bsSize:"large",show:!0,enforceFocus:!1,onHide:()=>{H.N.push(`/admin/assignments/edit/${l}`)},dialogClassName:"fullscreen-modal",children:[(0,p.jsx)(M.A.Header,{closeButton:!0,children:(0,p.jsx)("h2",{className:"modal-title",children:i.t`Edit Materials Needed`})}),(0,p.jsx)(M.A.Body,{children:(0,p.jsx)("div",{style:{paddingTop:"1em"},children:(0,p.jsx)(k.A,{model:s,onSubmit:s=>{e(o(s)).then(()=>H.N.push(`/admin/assignments/edit/${l}`))},children:e=>(0,p.jsxs)("div",{className:"row",children:[(0,p.jsx)("div",{className:"col-xs-12",children:(0,p.jsx)(D.A,{model:`${s}.materialsNeeded`,form:e,label:i.t`Materials Needed`,type:"tinymce",required:!0})}),(0,p.jsx)("div",{className:"col-xs-12",children:(0,p.jsx)(P.A,{loading:a.loading,error:a.error,success:(0,q.L$)(a)&&(!l?"Saved!":"Updated!"),className:"btn btn-success",type:"submit",children:l?"Update Lesson":"Save Lesson"})})]})})})})]})});var bi=t(76782);const yi=()=>{const e=(0,A.useDispatch)(),s=(0,r.g)().lessonId,t=!s?mr.eO:mr.Wm,n="admin.lessons.lessonForm",l=(0,A.useSelector)(e=>{const{admin:{lessons:{saveRequest:t,updateRequest:r}}}=e;return!s?t:r});return(0,p.jsxs)(M.A,{bsSize:"large",show:!0,enforceFocus:!1,onHide:()=>{H.N.push(`/admin/assignments/edit/${s}`)},dialogClassName:"fullscreen-modal",children:[(0,p.jsx)(M.A.Header,{closeButton:!0,children:(0,p.jsx)("h2",{className:"modal-title",children:i.t`Edit Standards Addressed`})}),(0,p.jsx)(M.A.Body,{children:(0,p.jsx)("div",{style:{paddingTop:"1em"},children:(0,p.jsx)(k.A,{model:n,onSubmit:r=>{e(t(r)).then(()=>H.N.push(`/admin/assignments/edit/${s}`))},children:e=>(0,p.jsxs)("div",{className:"row",children:[(0,p.jsx)("div",{className:"col-xs-12",children:(0,p.jsx)(bi.J,{form:e,modelName:n})}),(0,p.jsx)("div",{className:"col-xs-12",children:(0,p.jsx)(P.A,{loading:l.loading,error:l.error,success:(0,q.L$)(l)&&(!s?i.t`Saved`:i.t`Updated`),className:"btn btn-success",type:"submit",children:s?i.t`Update Lesson`:i.t`Save Lesson`})})]})})})})]})};var Ni=t(16464);const wi=e=>{const s=(0,r.g)(),t=(0,A.useDispatch)();(0,l.useEffect)(()=>{t(q.$L({type:mr.ZM}));t(mr.AX(s.sequenceId)).then(e=>{const s=(0,dr.qk)(e.name);t((0,K.hL)(i.t`Unit :: ${s}`));t(mr.hU())});return()=>{t((0,K.hL)(null))}},[s.lessonId]);return e.children};var Ai=t(92773);function Oi(e,s){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);s&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,r)}return t}function Si(e){for(var s=1;s<arguments.length;s++){var t=null!=arguments[s]?arguments[s]:{};
5s%2?Oi(Object(t),!0).forEach(function(s){Ci(e,s,t[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Oi(Object(t)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(t,s))})}return e}function Ci(e,s,t){return(s=function(e){var s=function(e,s){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,s||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===s?String:Number)(e)}(e,"string");return"symbol"==typeof s?s:s+""}(s))in e?Object.defineProperty(e,s,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[s]=t,e}const Pi=e=>{var s;const{children:t}=e,r=(0,A.useDispatch)(),n=(0,A.useSelector)(e=>e.admin.lessons.loadSequenceRequest),[a,o]=(0,l.useState)(""),[c,d]=(0,l.useState)([]),h=null==n?void 0:n.result;(0,l.useEffect)(()=>{d((null==h?void 0:h.lessons)??[])},[h]);if(!h)return(0,p.jsx)(Q.A,{newSiteLook:!0});const u=e=>{if(!e)return null;else return(0,p.jsx)("div",{style:{textAlign:"left"},children:(0,p.jsx)("a",{onClick:(s=e,()=>{r((0,mr.Wo)(h.id,s.id)).then(()=>{d([...c,s])})}),children:(0,dr.qk)(e.name)})});var s};return(0,p.jsxs)("div",{className:"container",children:[(0,p.jsx)("div",{className:"row",id:"pageaction",children:(0,p.jsxs)("div",{className:"col-xs-12",children:[(0,p.jsxs)("a",{href:`/pdfs/plan/sequence/administration/${h.id}.pdf`,target:"_blank",className:"pull-right expandable-button small action-print",rel:"noreferrer",children:[(0,p.jsx)("span",{className:"icon",children:(0,p.jsx)("span",{className:"sr-only",children:"+"})}),(0,p.jsx)("div",{children:i.t`Print Educator Guide`})]}),(0,p.jsxs)(C.N_,{to:`/admin/assignments/sequence/${h.id}/preview`,className:"pull-right expandable-button small action-preview",children:[(0,p.jsx)("span",{className:"icon",children:(0,p.jsx)("span",{className:"sr-only",children:"+"})}),(0,p.jsx)("div",{children:i.t`Preview Lesson`})]}),(0,p.jsx)("br",{className:"clear"})]})}),(0,p.jsxs)("div",{className:"with-border note-color",style:{marginTop:"15px"},children:[(0,p.jsxs)(C.N_,{className:"btn btn-default no-style pull-right",to:`/admin/assignments/sequence/edit/${h.id}/update`,children:[(0,p.jsx)("i",{className:"edit"}),"Edit"]}),(0,p.jsx)("h3",{children:i.t`About This Unit`}),(0,p.jsxs)("div",{children:[(0,p.jsx)("b",{children:i.t`Recommended Grade Level:`})," ",!isNaN(h.gradeLevelMin)&&!isNaN(h.gradeLevelMax)&&`${(0,mr.vK)(h.gradeLevelMin)} - ${(0,mr.vK)(h.gradeLevelMax)}`||!isNaN(h.gradeLevelMin)&&(0,mr.vK)(h.gradeLevelMin)||!isNaN(h.gradeLevelMax)&&(0,mr.vK)(h.gradeLevelMax)||i.t`Any Grade`]}),(0,p.jsxs)("div",{children:[(0,p.jsx)("b",{children:i.t`Total Time Required:`})," ",(null===(s=h.totalTimeRequired)||void 0===s?void 0:s.toLocaleString())??i.t`not provided`," ",h.totalTimeRequired?i.t`minutes`:null]}),(0,p.jsxs)("div",{children:[(0,p.jsx)("b",{children:i.t`Description`})," ",(0,p.jsx)("span",{dangerouslySetInnerHTML:{__html:(0,dr.qk)(h.description)}})]})]}),(0,p.jsx)("h3",{children:i.t`Lessons`}),(0,p.jsx)("p",{children:i.t`The lessons below comprise the unit. Each task is a discrete activity that the user should perform, such as take an assessment, write a reflection, or view a video. Click on a task to edit it, or select the New Task button to add more.`}),(()=>{const e=(0,p.jsx)(Pr.A,{id:"move-question-up-popover",children:i.t`Move this lesson up one`}),s=(0,p.jsx)(Pr.A,{id:"move-question-down-popover",children:i.t`Move this lesson down one`}),t=(e,s,t)=>{if(s)return(0,p.jsx)(be.A,{trigger:["hover","focus"],placement:"right",overlay:e,rootClose:!0,children:t});else return t};return(0,p.jsxs)("ul",{className:"task-listing-list",children:[null==c?void 0:c.map((n,l)=>{var a;const o=(null===(a=h.lessons)||void 0===a?void 0:a.length)??0,u=0===l?{disabled:!0,style:{opacity:.3}}:{},m=l+2>o?{disabled:!0,style:{opacity:.3}}:{};return(0,p.jsxs)("li",{className:"hoverable",children:[(0,p.jsxs)("div",{className:"pos",children:[t(s,l+2<=o,(0,p.jsx)("a",Si(Si({},m),{},{onClick:e=>{e.preventDefault();r((0,mr.NG)(h.id,n.id,l+2))},children:(0,p.jsx)("img",{src:Ir,alt:i.t`Down facing arrow to go to move item down`,style:{width:"15px",marginTop:"1rem",marginLeft:"10px",transform:"rotate(90deg)"}})}))),t(e,0!==l,(0,p.jsx)("a",Si(Si({},u),{},{onClick:e=>{e.preventDefault();r((0,mr.NG)(h.id,n.id,l))},children:(0,p.jsx)("img",{src:Ir,alt:i.t`Up facing arrow to go to move item up`,style:{width:"15px",marginTop:"1rem",marginLeft:"10px",transform:"rotate(270deg)"}})})))]}),(0,p.jsxs)(C.N_,{to:`/admin/assignments/edit/${n.id}`,className:"task-btn",children:[(0,p.jsx)("div",{className:"col-xs-1",children:(0,p.jsx)("img",{alt:i.t`Generated thumbnail of lesson`,"aria-hidden":!0,src:(n.id,_r),style:{maxWidth:"30px",marginTop:".5rem"},className:"img-responsive"})}),(0,p.jsxs)("div",{className:"col-xs-11",style:{maxHeight:"200px",overflow:"scroll"},children:[(0,p.jsxs)("div",{children:[(0,p.jsxs)("b",{children:[l+1,": ",(0,dr.qk)(n.name)," "]}),(0,p.jsxs)("div",{style:{display:"inline-block",fontSize:".9rem"},className:"pull-right",children:["(",n.timeRequired," ",n.timeRequired?i.t`minutes`:null,")"]})]}),(0,p.jsx)("div",{children:(0,p.jsx)("span",{dangerouslySetInnerHTML:{__html:(0,dr.qk)(n.description)}})})]})]}),(0,p.jsx)("div",{className:"actn",children:(0,p.jsx)("a",{onClick:e=>{e.preventDefault();if(confirm(i.t`Are you sure you want to delete this lesson from the unit?`))r((0,mr.Xe)(h.id,n.id)).then(()=>d(c.filter(e=>
5e.id!=n.id)))},className:"delete",children:(0,p.jsx)("span",{children:i.t`Delete`})})}),(0,p.jsx)("br",{className:"clear"})]},`lesson-listing-${n.id}`)}),(0,p.jsx)("div",{className:"row",style:{marginTop:"25px"},children:(0,p.jsxs)("div",{className:"col-xs-12 resorts",children:[(0,p.jsx)("h3",{children:i.t`Add Lesson to Unit`}),(0,p.jsx)("p",{children:i.t`To add a lesson to this unit, you can search for it by typing a few letters in the box below`}),(0,p.jsx)(Ai.p,{itemAsString:e=>null==e?void 0:e.name,outputItem:u,searchTerm:a,setSearchTerm:o})]})})]})})(),(0,p.jsx)("br",{}),(0,p.jsx)("br",{}),t,(0,p.jsx)(C.N_,{className:"btn btn-primary no-style",to:"/admin/assignments",children:i.t`Back to list`})]})};Pi.propTypes={children:fr().object};const ki=()=>{var e,s;const t=(0,r.g)(),n=(0,A.useDispatch)(),l=t.sequenceId,a="admin.lessons.lessonSequenceForm",{saveSequenceRequest:o,updateSequenceRequest:c}=(0,A.useSelector)(e=>e.admin.lessons),d=(0,A.useSelector)(e=>(0,O.E1)(e,a)),h=d.system,u=d.lessonInCurrentTenant,m=d.tenant,x=dynamicValues&&((null===(e=dynamicValues.userProfile)||void 0===e?void 0:e.isRoot)||dynamicValues.isSubscriber),j=!l?o:c,f=!l?mr.JT:mr.Zk,g=(0,p.jsx)("a",{target:"_blank",href:dynamicValues.subscriptionPage,rel:"noreferrer",children:i.t`Learn More`}),v=(null==m?void 0:m.tenantName)??i.t`unknown`,b=null!=m&&m.subTenantName?i.t` for ${m.subTenantName}`:"",y=()=>H.N.push(`/admin/assignments/sequence/edit/${l}`);return(0,p.jsxs)(M.A,{bsSize:"large",show:!0,enforceFocus:!1,onHide:y,dialogClassName:"fullscreen-modal",children:[(0,p.jsx)(M.A.Header,{closeButton:!0,children:(0,p.jsx)("h2",{className:"modal-title",children:i.t`Edit Unit Information`})}),(0,p.jsx)(M.A.Body,{children:(0,p.jsxs)("div",{style:{paddingTop:"1em"},children:[(null===(s=dynamicValues.userProfile)||void 0===s?void 0:s.isRoot)&&(0,p.jsxs)("div",{children:[(0,p.jsxs)(C.N_,{to:`/admin/assignments/sequence/edit/${l}/privileged`,className:"pull-right btn btn-small btn-default no-style",children:[(0,p.jsx)("i",{className:"edit"})," ",i.t`Edit Privileged Fields`]}),(0,p.jsx)("br",{className:"clear"})]}),(0,p.jsx)(k.A,{model:a,onSubmit:e=>{n(f(e)).then(y)},children:e=>(0,p.jsxs)("div",{className:"row",children:[(0,p.jsx)("div",{className:"col-xs-12",children:(0,p.jsx)(D.A,{model:`${a}.name`,form:e,label:i.t`Lesson Name`,required:!0})}),(0,p.jsx)("div",{className:"col-xs-12",children:(0,p.jsx)(D.A,{model:`${a}.description`,form:e,label:i.t`Introduction and Instructions`,type:"tinymce",required:!0})}),!h?(0,p.jsx)("div",{className:"col-xs-12",style:{marginBottom:"20px"},children:!u?(0,p.jsx)("div",{className:"alert alert-warning",children:i.t`This lesson can only be shared within the ${v}${b} site.`}):(0,p.jsx)(D.A,{model:`${a}.shared`,form:e,label:i.t`Shared`,type:"checkbox",disabled:!x,help:!x&&(0,p.jsx)("span",{children:i.jt`Sharing lessons between educators is only available for subscribers, ${g}`})})}):null,(0,p.jsx)("div",{className:"col-xs-12",children:(0,p.jsx)(P.A,{loading:j.loading,error:j.error,success:(0,q.L$)(j)&&(!l?"Saved!":"Updated!"),className:"btn btn-success",type:"submit",children:l?"Update Lesson":"Save Lesson"})})]})})]})})]})},Di=()=>{var e,s;if(null===(e=dynamicValues.userProfile)||void 0===e||!e.isRoot)return null;const t=(0,A.useDispatch)(),n="admin.lessons.privilegedForm",l=dynamicValues&&dynamicValues.tenants||[],a=(0,A.useSelector)(e=>(0,O.E1)(e,n)).segment,o=(0,r.g)().sequenceId,c=l.find(e=>e.id===a),d=c&&c.subTenants||[],{privilegedRequest:h}=(0,A.useSelector)(e=>e.admin.lessons);return(0,p.jsxs)(M.A,{bsSize:"large",show:!0,onHide:()=>H.N.push(`/admin/assignments/sequence/edit/${o}`),dialogClassName:"fullscreen-modal",children:[(0,p.jsx)(M.A.Header,{closeButton:!0,children:(0,p.jsx)("h2",{className:"modal-title",children:i.t`Edit Privileged Fields`})}),(0,p.jsxs)(M.A.Body,{children:[(null===(s=dynamicValues.userProfile)||void 0===s?void 0:s.isRoot)&&(0,p.jsxs)("div",{children:[(0,p.jsxs)(C.N_,{to:`/admin/assignments/sequence/edit/${o}/update`,className:"pull-right btn btn-small btn-default no-style",children:[(0,p.jsx)("i",{className:"edit"})," ",i.t`Edit Unit Info`]}),(0,p.jsx)("br",{className:"clear"})]}),(0,p.jsx)("div",{style:{paddingTop:"1em"},children:(0,p.jsx)(k.A,{model:n,onSubmit:e=>{t((0,mr.g9)(e))},children:e=>(0,p.jsxs)("div",{children:[(0,p.jsxs)(D.A,{model:`${n}.segment`,form:e,label:"Tenant",required:!1,control:O.Ec.select,children:[(0,p.jsx)("option",{value:"",children:"None"}),l.map(e=>(0,p.jsx)("option",{value:e.id,children:e.name},e.id))]}),(0,p.jsxs)(D.A,{model:`${n}.subSegment`,form:e,label:"Sub Tenant",disabled:!a,required:!1,control:O.Ec.select,children:[(0,p.jsx)("option",{value:"",children:"All Sub Tenants"}),d.map(e=>(0,p.jsx)("option",{value:e.id,children:e.name},e.id))]}),(0,p.jsx)(D.A,{model:`${n}.group`,form:e,label:"Group Name",disabled:!!a,help:"Groups can be shared with more than one tenant (don't set a Tenant if you want to use this)"}),(0,p.jsx)(D.A,{model:`${n}.system`,form:e,label:"System Lesson",type:"checkbox",help:"System units aren't owned, so they won't follow you from site to site"}),(0,p.jsx)(D.A,{model:`${n}.weight`,form:e,label:"Weight",type:"number",help:"Units with a lower weight will rise to the top of the listing"}),(0,p.jsx)(D.A,{model:`${n}.subscriptionOnly`,form:e,label:"Subscription Only",type:"checkbox"}),(0,p.jsx)(P.A,{loading:h.loading,error:h.error,success:(0,q.L$)(h)&&"Updated!",className:"btn btn-primary",type:"submit",children:"Update"})]})})})]})]})},qi=({children:e})=>{const{lessonId:s}=(0,r.g)(),t=(0,A.useDispatch)();(0,l.useEffect)(async()=>{await t(q.$L({type:mr.ZM}));await t(mr.d8(s)).then(e=>{const s=(0,dr.qk)(e.name);t((0,K.hL)(i.t`Lesson :: ${s}`));t(mr.hU())})},[s]);return e};var Fi=t(47359);function Ri(e,s){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);s&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,r)}return t}function Ti(e){for(var s=1;s<arguments.length;s++){var t=null!=arguments[s]?arguments[s]:{};
5s%2?Ri(Object(t),!0).forEach(function(s){Ei(e,s,t[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ri(Object(t)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(t,s))})}return e}function Ei(e,s,t){return(s=function(e){var s=function(e,s){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,s||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===s?String:Number)(e)}(e,"string");return"symbol"==typeof s?s:s+""}(s))in e?Object.defineProperty(e,s,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[s]=t,e}const Li=e=>{var s;const t=(0,A.useDispatch)(),n=(0,r.g)();(0,l.useEffect)(()=>{t(e.loadAssignmentFn(n.sequenceId))},[]);const a=(0,A.useSelector)(e=>e.planning.lessonSequencePreviewRequest);if(!q.L$(a))return(0,p.jsx)(Q.A,{newSiteLook:!0});const o=null==a?void 0:a.result,c=o.imageUrl?{backgroundImage:`url('${o.imageUrl}')`}:{backgroundColor:"#96ccea"};return(0,p.jsxs)("div",{className:"container",children:[(0,p.jsxs)("div",{className:"alert alert-warning",children:[(0,p.jsxs)("div",{className:"btn-group pull-right",style:{display:"flex"},children:[(0,p.jsxs)(C.N_,{to:`/management/lessons/sequence/${n.sequenceId}`,className:"btn btn-default no-style",children:[(0,p.jsx)("i",{className:"lesson"})," ",i.t`Back to Lessons and Assignments`]}),(0,p.jsxs)("button",{type:"button",className:"btn btn-default dropdown-toggle no-style","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",children:[(0,p.jsx)("span",{className:"caret"}),(0,p.jsx)("span",{className:"sr-only",children:i.t`Toggle Dropdown`})]}),(0,p.jsxs)("ul",{className:"dropdown-menu",children:[(0,p.jsx)("li",{children:(0,p.jsx)(C.N_,{to:`/admin/assignments/sequence/edit/${n.sequenceId}`,children:(0,p.jsx)("span",{children:i.t`Edit Unit`})})}),(0,p.jsx)("li",{children:(0,p.jsx)("a",{href:`/pdfs/plan/sequence/administration/${n.sequenceId}`,children:(0,p.jsx)("span",{children:i.t`Download PDF`})})})]})]}),(0,p.jsxs)("h3",{style:{lineHeight:"35px",marginBottom:"0"},children:[(0,p.jsx)("img",{src:Fi,className:"pull-left",alt:i.t`Thumbnail image indicating preview`,style:{maxWidth:"35px",marginRight:"7px"}})," ",i.t`Navigator Preview Mode`]})]}),(0,p.jsx)("div",{style:Ti(Ti({},c),{},{padding:"25px",marginBottom:"25px",backgroundSize:"cover",height:"150px",width:"100%"}),children:(0,p.jsx)("h3",{style:{backgroundColor:"rgba(255, 255, 255, .5)",color:"#000",padding:"10px"},className:"section-heading ",children:o.name})}),(0,p.jsxs)("div",{style:{display:"flex"},children:[(0,p.jsxs)("div",{className:"col-xs-7",children:[(0,p.jsx)("h3",{children:i.t`About`}),(0,p.jsx)("p",{dangerouslySetInnerHTML:{__html:o.description}}),(0,p.jsx)("h3",{children:i.t`Materials Needed`}),(0,p.jsx)("p",{dangerouslySetInnerHTML:{__html:o.materialsNeeded}}),(0,p.jsx)("h3",{children:i.t`Learning Standards`}),(0,p.jsx)("ul",{children:o.learningStandards.map(e=>(0,p.jsx)("li",{children:e.name},`ls-${e.id}`))})]}),(0,p.jsxs)("div",{className:"col-xs-5",style:{backgroundColor:"#eee",padding:"15px"},children:[(0,p.jsx)("h3",{children:i.t`Lessons in Unit`}),(0,p.jsx)("ul",{children:null===(s=o.lessons)||void 0===s?void 0:s.map(e=>(0,p.jsx)("li",{children:(0,p.jsxs)(C.N_,{to:`/admin/assignments/${e.id}/preview`,children:[e.name," ",(0,p.jsx)("span",{className:"pull-right",children:e.totalTime})]})},`lesson-${e.id}`))})]})]})]})};Li.propTypes={loadAssignmentFn:fr().func.isRequired};const Ii=Li;function Mi(e){return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(r.qh,{path:"/admin/assignments",exact:!0,children:(0,p.jsx)(Cr,{})}),(0,p.jsx)(r.qh,{path:"/admin/assignments/new",exact:!0,children:(0,p.jsx)(vr,{isShown:!0,closeAction:()=>(0,p.jsx)(r.rd,{to:"/admin/assignments"})})}),(0,p.jsx)(r.qh,{path:"/admin/assignments/:planId/users",children:(0,p.jsx)(qr,{})}),(0,p.jsx)(r.qh,{path:"/admin/assignments/help",children:(0,p.jsx)(Er,{})}),(0,p.jsx)(r.qh,{path:"/admin/assignments/approval/:taskId?",children:(0,p.jsx)(Ur,{})}),(0,p.jsx)(r.qh,{path:"/admin/assignments/sequence/:sequenceId/preview",children:(0,p.jsx)(Ii,{readOnlyPreview:!0,loadAssignmentFn:dr.Jg})}),(0,p.jsx)(r.qh,{path:"/admin/assignments/:assignmentId/preview/:taskNumber?",children:(0,p.jsx)(sr.b,{readOnlyPreview:!0})}),(0,p.jsx)(r.qh,{path:"/admin/assignments/wizard",children:(0,p.jsx)(gi.A,{})}),(0,p.jsx)(r.qh,{path:"/admin/assignments/sequence/wizard",children:(0,p.jsx)(Ni.A,{})}),(0,p.jsx)(r.qh,{path:"/admin/assignments/sequence/edit/:sequenceId",children:(0,p.jsx)(wi,{children:(0,p.jsxs)(r.dO,{children:[(0,p.jsx)(r.qh,{path:"/admin/assignments/sequence/edit/:sequenceId",exact:!0,children:(0,p.jsx)(Pi,{})}),(0,p.jsx)(r.qh,{path:"/admin/assignments/sequence/edit/:sequenceId/update",children:(0,p.jsx)(ki,{})}),(0,p.jsx)(r.qh,{path:"/admin/assignments/sequence/edit/:sequenceId/privileged",children:(0,p.jsx)(Di,{})})]})})}),(0,p.jsx)(r.qh,{path:"/admin/assignments/edit/:lessonId",children:(0,p.jsx)(qi,{children:(0,p.jsxs)(r.dO,{children:[(0,p.jsx)(r.qh,{path:"/admin/assignments/edit/:lessonId",exact:!0,children:(0,p.jsx)(ci,{})}),(0,p.jsx)(r.qh,{path:"/admin/assignments/edit/:lessonId/task/:taskId",children:(0,p.jsx)(pi,{})}),(0,p.jsx)(r.qh,{path:"/admin/assignments/edit/:lessonId/task/ne
5w",exact:!0,children:(0,p.jsx)(xi,{})}),(0,p.jsx)(r.qh,{path:"/admin/assignments/edit/:lessonId/instructions",children:(0,p.jsx)(ji,{})}),(0,p.jsx)(r.qh,{path:"/admin/assignments/edit/:lessonId/privileged",children:(0,p.jsx)(fi,{})}),(0,p.jsx)(r.qh,{path:"/admin/assignments/edit/:lessonId/standards",children:(0,p.jsx)(yi,{})}),(0,p.jsx)(r.qh,{path:"/admin/assignments/edit/:lessonId/materials",children:(0,p.jsx)(vi,{})}),(0,p.jsx)(r.qh,{path:"/admin/assignments/edit/:lessonId/update",children:(0,p.jsx)(xi,{})})]})})})]})}Mi.propTypes={};Mi.defaultProps={};const $i=Mi;var zi=t(36848);const Vi=["tenants"];function Hi(e,s){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);s&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,r)}return t}function Bi(e){for(var s=1;s<arguments.length;s++){var t=null!=arguments[s]?arguments[s]:{};s%2?Hi(Object(t),!0).forEach(function(s){Ui(e,s,t[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Hi(Object(t)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(t,s))})}return e}function Ui(e,s,t){return(s=function(e){var s=function(e,s){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,s||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===s?String:Number)(e)}(e,"string");return"symbol"==typeof s?s:s+""}(s))in e?Object.defineProperty(e,s,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[s]=t,e}class _i extends l.PureComponent{constructor(e){super(e);Ui(this,"setSort",e=>()=>{this.setState(Bi(Bi({},this.state),{},{sortOn:e}))});this.state={sortOn:1}}componentDidMount(){this.props.dispatch((0,F.Sv)());this.props.dispatch((0,K.hL)(i.t`30 Day Tenant Registration Report`))}render(){const e=this.props.usageReportRequest;if(!q.L$(e))return(0,p.jsx)(Q.A,{newSiteLook:!0});const s=null==e?void 0:e.result,{tenants:t}=s,r=function(e,s){if(null==e)return{};var t,r,i=function(e,s){if(null==e)return{};var t={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==s.indexOf(r))continue;t[r]=e[r]}return t}(e,s);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)t=n[r],-1===s.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(s,Vi);return(0,p.jsxs)("div",{children:[(0,p.jsx)("div",{className:"col-xs-12",children:(0,p.jsx)(C.N_,{to:"/admin/root/schoolreport",className:"pull-right btn btn-default no-style btn-sm",children:i.t`Schools Registration`})}),(0,p.jsxs)("div",{className:"container text-center",style:{marginBottom:"15px"},children:[(0,p.jsx)("button",{onClick:this.setSort(1),className:`btn no-style ${1==this.state.sortOn?"btn-default":"btn-primary"} `,children:i.t`Alphabetical`})," ",(0,p.jsx)("button",{onClick:this.setSort(2),className:`btn no-style ${2==this.state.sortOn?"btn-default":"btn-primary"} `,children:i.t`Recent Signup`})," ",(0,p.jsx)("button",{onClick:this.setSort(3),className:`btn no-style ${3==this.state.sortOn?"btn-default":"btn-primary"} `,children:i.t`Total Signup`})," ",(0,p.jsx)("button",{onClick:this.setSort(4),className:`btn no-style ${4==this.state.sortOn?"btn-default":"btn-primary"} `,children:i.t`Recent FEA`})," ",(0,p.jsx)("button",{onClick:this.setSort(5),className:`btn no-style ${5==this.state.sortOn?"btn-default":"btn-primary"} `,children:i.t`Total FEA`})]}),(0,p.jsx)("ul",{style:{margin:0,padding:0,listStyle:"none"},children:[...t].sort((e,s)=>{switch(this.state.sortOn){case 5:return(r.allDataFea[s.id]||0)-(r.allDataFea[e.id]||0);case 4:return(r.recentDataFea[s.id]||0)-(r.recentDataFea[e.id]||0);case 3:return(r.allData[s.id]||0)-(r.allData[e.id]||0);case 2:return(r.recentData[s.id]||0)-(r.recentData[e.id]||0);default:return e.name.localeCompare(s.name)}}).map(e=>{var s,t,n;const l=(r.allData[e.id]||0).toLocaleString(),a=(r.recentData[e.id]||0).toLocaleString(),o=(r.recentDataFea[e.id]||0).toLocaleString(),c=(r.allDataFea[e.id]||0).toLocaleStr
5ing(),d=r.managees[e.id],h=(null==d?void 0:null===(s=d.minimum)||void 0===s?void 0:s.toLocaleString())??0,u=(null==d?void 0:null===(t=d.maximum)||void 0===t?void 0:t.toLocaleString())??0,m=(null==d?void 0:null===(n=d.avg)||void 0===n?void 0:n.toLocaleString())??0;return(0,p.jsx)("li",{className:"col-sm-6 col-md-4 col-lg-3",style:{margin:0,marginBottom:"10px"},children:(0,p.jsxs)("div",{style:{border:"1px solid #ddd",minHeight:"210px",padding:"10px",boxShadow:"1px 1px 4px #eee"},children:[(0,p.jsxs)("div",{style:{lineHeight:"30px"},children:[(0,p.jsx)("img",{src:e.thumb,className:"pull-left",style:{maxWidth:"30px",marginRight:"7px"}})," ",(0,p.jsx)("b",{children:e.name})]}),(0,p.jsxs)("div",{className:"text-center",children:[(0,p.jsx)("span",{style:{fontSize:"4rem",lineHeight:"4rem"},children:a}),(0,p.jsx)("br",{}),(0,p.jsx)("i",{children:`${l} total`})]}),(0,p.jsxs)("div",{style:{color:"#888",marginTop:".75em",fontSize:".9rem"},children:[i.t`FEAs:`," ",o,(0,p.jsxs)("span",{style:{fontSize:".8rem"},children:[" ",(0,p.jsxs)("i",{children:["(",i.t`${c} total`,")"]})]}),(0,p.jsx)("br",{}),i.t`FEA Users Managed: min: ${h} / max: ${u} / avg: ${m}`]}),(0,p.jsxs)("div",{className:"text-right",style:{fontSize:".8rem"},children:[e.id," ",(0,p.jsx)("a",{href:e.defaultURL,target:"_blank",rel:"noreferrer",children:(0,p.jsx)("img",{src:zi,style:{maxHeight:".8rem",maxWidth:"20px"}})})]})]})})})})]})}}const Gi=(0,A.connect)(e=>{const{admin:{maintenance:s}}=e;return Bi({},s)},e=>({dispatch:e}))(_i);
5function Wi(e,s){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);s&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,r)}return t}function Ki(e){for(var s=1;s<arguments.length;s++){var t=null!=arguments[s]?arguments[s]:{};s%2?Wi(Object(t),!0).forEach(function(s){Qi(e,s,t[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Wi(Object(t)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(t,s))})}return e}function Qi(e,s,t){return(s=function(e){var s=function(e,s){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,s||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===s?String:Number)(e)}(e,"string");return"symbol"==typeof s?s:s+""}(s))in e?Object.defineProperty(e,s,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[s]=t,e}class Yi extends l.PureComponent{constructor(e){super(e);Qi(this,"setSort",e=>()=>{this.setState(Ki(Ki({},this.state),{},{sortOn:e}))});this.state={sortOn:1}}componentDidMount(){this.props.dispatch((0,F.ar)());this.props.dispatch((0,K.hL)(i.t`School Registered User Report`))}render(){const e=this.props.schoolRegistrationReportRequest;if(!q.L$(e))return(0,p.jsx)(Q.A,{newSiteLook:!0});else return(0,p.jsxs)("div",{children:[(0,p.jsx)("div",{className:"col-xs-12",children:(0,p.jsx)(C.N_,{to:"/admin/root/usagereport",className:"pull-right btn btn-default no-style btn-sm",children:i.t`30 Day Usage Report`})}),(0,p.jsxs)("table",{className:"table tbl",children:[(0,p.jsx)("thead",{children:(0,p.jsxs)("tr",{children:[(0,p.jsx)("th",{children:i.t`Domain`}),(0,p.jsx)("th",{children:i.t`Registrations`}),(0,p.jsx)("th",{children:"FEA"}),(0,p.jsx)("th",{children:"PEA"}),(0,p.jsx)("th",{children:i.t`Sites`}),(0,p.jsx)("th",{children:i.t`State`}),(0,p.jsx)("th",{children:i.t`Zip`}),(0,p.jsx)("th",{children:"LEA ID"}),(0,p.jsx)("th",{children:i.t`LEA Name`}),(0,p.jsx)("th",{children:i.t`Phone`})]})}),(0,p.jsx)("tbody",{children:null==e?void 0:e.result.map(e=>(0,p.jsxs)("tr",{children:[(0,p.jsx)("td",{children:e.domain}),(0,p.jsx)("td",{children:e.registrations.toLocaleString()}),(0,p.jsx)("td",{children:e.educatorAccounts.toLocaleString()}),(0,p.jsx)("td",{children:e.premiumAccounts.toLocaleString()}),(0,p.jsx)("td",{children:e.sites}),(0,p.jsx)("td",{children:e.state}),(0,p.jsx)("td",{children:e.zip}),(0,p.jsx)("td",{children:e.leaId}),(0,p.jsx)("td",{children:e.leaName}),(0,p.jsx)("td",{children:e.phone})]}))})]})]})}}const Zi=(0,A.connect)(e=>{const{admin:{maintenance:s}}=e;return Ki({},s)},e=>({dispatch:e}))(Yi);var Ji=t(59386),Xi=t.n(Ji),en=t(36500),sn=t(97731);function tn(e,s){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);s&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,r)}return t}function rn(e){for(var s=1;s<arguments.length;s++){var t=null!=arguments[s]?arguments[s]:{};s%2?tn(Object(t),!0).forEach(function(s){nn(e,s,t[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):tn(Object(t)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(t,s))})}return e}function nn(e,s,t){return(s=function(e){var s=function(e,s){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,s||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===s?String:Number)(e)}(e,"string");return"symbol"==typeof s?s:s+""}(s))in e?Object.defineProperty(e,s,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[s]=t,e}const ln=(0,A.connect)(e=>e.admin.reporting,e=>({onUpdateDate:(s,t)=>{e((0,en.cP)(s,t))},onRunFilter:s=>{e((0,en.yN)(s))}}))((0,sn.A)(({data:e,filter:s,onUpdateDate:t,onRunFilter:r,recharts:n})=>{(0,B.es)((0,en.yN)());const{Cell:l,Pie:a,PieChart:o,ResponsiveContainer:c,Tooltip:d}=n,h=()=>{const s=e.accountTypes.map(e=>({name:e.typeName,value:e.count}));return(0,p.jsx)(c,{aspect:1.5,width:"100%",children:(0,p.jsxs)(o,{width:300,height:200,isAnimationActive:!1,children:[(0,p.jsx)(a,{data:(0,ke.v9)(s),label:e=>(0,p.jsx)("text",rn(rn({},e),{},{fill:"black",children:e.payload.name})),children:s.map((e,s)=>(0,p.jsx)(l,{fill:dynamicValues.plotColors[s%dynamicValues.plotColors.length]},s))}),(0,p.jsx)(d,{})]})})},u=()=>{const s=e.graduation.map(e=>({name:e.type,value:e.count}));return(0,p.jsx)(c,{aspect:1.5,width:"100%",children:(0,p.jsxs)(o,{width:300,height:200,isAnimationActive:!1,children:[(0,p.jsx)(a,{data:(0,ke.v9)(s),label:e=>(0,p.jsx)("text",rn(rn({},e),{},{fill:"black",children:e.payload.name})),children:s.map((e,s)=>(0,p.jsx)(l,{fill:dynamicValues.plotColors[s%dynamicValues.plotColors.length]},s))}),(0,p.jsx)(d,{})]})})},m=()=>{const s=[{name:i.t`Public School`,value:e.publicSchool.count},{name:i.t`Private School`,value:e.privateSchool.count},{name:i.t`College`,value:e.college.count}];return(0,p.jsx)(c,{aspect:1.5,width:"100%",children:(0,p.jsxs)(o,{width:300,height:200,isAnimationActive:!1,children:[(0,p.jsx)(a,{data:(0,ke.v9)(s),label:e=>(0,p.jsx)("text",rn(rn({},e),{},{textAnchor:e.textAnchor,fill:"black",children:e.payload.name})),children:s.map((e,s)=>(0,p.jsx)(l,{fill:dynamicValues.plotColors[s%dynamicValues.plotColors.length]},s))}),(0,p.jsx)(d,{})]})})};return(0,p.jsxs)("div",{id:"reportform",className:"container",children:[(0,p.jsxs)("div",{className:"list-filter filter",style:{marginBottom:"25px"},children:[(0,p.jsx)("div",{className:"col-xs-4",children:(0,p.jsx)(Xi(),{timeFormat:!1,selected:s.startDate,className:"form-control",onChange:e=>{if("string"!=typeof e)t("startDate",e)}})}),(0,p.jsx)("div",{className:"col-xs-4",children:(0,p.jsx)(Xi(),{timeFormat:!1,selected:s.endDate,className:"form-control",onChange:e=>{if("string"!=typeof e)t("startDate",e)}})}),(0,p.jsx)("div",{className:"nav",children:(0,p.jsx)("button",{className:"submit",onClick:()=>r(s),children:i.t`Filter`})})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)("h2",{children:"Demographics"}),(0,p.jsxs)("div",{className:"col-sm-6",children:[(0,p.jsx)("h3",{children:i.t`Users by Antici
5pated Graduation Year`}),u()]}),(0,p.jsxs)("div",{className:"col-sm-6",children:[(0,p.jsx)("h3",{children:i.t`Users by School Type`}),m()]}),(0,p.jsxs)("div",{className:"col-sm-6",children:[(0,p.jsx)("h3",{children:i.t`Users by Account Type`}),h()]})]})]})})),an=(0,A.connect)(e=>e.admin.reporting,e=>({onUpdateDate:(s,t)=>{e((0,en.cP)(s,t))},onRunFilter:s=>{e((0,en.$u)(s))}}))((0,sn.A)(({data:e,stats:s,filter:t,onUpdateDate:r,onRunFilter:n,recharts:a})=>{(0,B.es)((0,en.$u)());const{Bar:o,BarChart:c,Legend:d,ResponsiveContainer:h,XAxis:u,YAxis:m}=a;class x extends l.Component{render(){const{x:e,y:s,stroke:t,payload:r}=this.props;return(0,p.jsx)("g",{transform:`translate(${e},${s})`,children:(0,p.jsx)("text",{x:0,y:0,dy:16,textAnchor:"end",fill:"#666",transform:"rotate(-35)",children:r.value})})}}const j=e=>i.t`${e} all time`;return(0,p.jsxs)("div",{className:"container",children:[(0,p.jsxs)("div",{className:"list-filter filter",style:{marginBottom:"25px"},children:[(0,p.jsx)("div",{className:"col-xs-5",children:(0,p.jsx)(Xi(),{timeFormat:!1,selected:t.startDate,className:"form-control",onChange:e=>{if("string"!=typeof e)r("startDate",e)}})}),(0,p.jsx)("div",{className:"col-xs-5",children:(0,p.jsx)(Xi(),{timeFormat:!1,selected:t.endDate,className:"form-control",onChange:e=>{if("string"!=typeof e)r("endDate",e)}})}),(0,p.jsx)("div",{className:"col-xs-2",children:(0,p.jsx)("button",{className:"submit",onClick:()=>n(t),children:i.t`Filter`})})]}),(0,p.jsx)("br",{className:"clear"}),(0,p.jsxs)("div",{className:"result-summary",id:"reportform",children:[(0,p.jsxs)("ul",{id:"summary-items",children:[(0,p.jsxs)("li",{style:{textAlign:"left"},children:[i.t`Logins:`," ",(0,p.jsx)("span",{id:"total-logins",children:(s.loginsFiltered||0).toLocaleString()})," ",(0,p.jsxs)("i",{children:["(",j((s.logins||0).toLocaleString()),")"]})]}),(0,p.jsxs)("li",{style:{textAlign:"left"},children:[i.t`Accounts Created:`," ",(0,p.jsx)("span",{id:"total-accounts",children:(s.creationsFiltered||0).toLocaleString()})," ",(0,p.jsxs)("i",{children:["(",j((s.creations||0).toLocaleString()),")"]})]})]}),(0,p.jsx)("br",{className:"clear"})]}),(0,p.jsx)("br",{className:"clear"}),(0,p.jsx)(h,{aspect:16/9,width:"100%",children:(0,p.jsxs)(c,{width:160,height:90,data:e,margin:{top:5,right:30,left:20,bottom:25},children:[(0,p.jsx)(u,{dataKey:"date",tick:(0,p.jsx)(x,{})}),(0,p.jsx)(m,{}),(0,p.jsx)(o,{dataKey:"creations",fill:dynamicValues.plotColors[0]}),(0,p.jsx)(o,{dataKey:"logins",fill:dynamicValues.plotColors[1]}
5),(0,p.jsx)(d,{wrapperStyle:{top:0},align:"right"})]})}),(0,p.jsx)("br",{}),(0,p.jsxs)("table",{className:"table tbl",children:[(0,p.jsx)("thead",{children:(0,p.jsxs)("tr",{children:[(0,p.jsx)("th",{className:"list-header date",style:{width:"80%"},children:i.t`Date`}),(0,p.jsx)("th",{className:"list-header number_of_logins",children:i.t`Number of Logins`}),(0,p.jsx)("th",{className:"list-header number_of_creations",children:i.t`Number of Creations`})]})}),(0,p.jsx)("tbody",{children:e.map((e,s)=>(0,p.jsxs)("tr",{className:"list-item "+(s%2==0?"even":"odd"),children:[(0,p.jsx)("td",{className:"list-cell",children:(0,p.jsx)("span",{className:"location",children:e.date})}),(0,p.jsx)("td",{className:"list-cell",children:(0,p.jsx)("span",{className:"views",children:(e.logins||0).toLocaleString()})}),(0,p.jsx)("td",{className:"list-cell",children:(0,p.jsx)("span",{children:(e.creations||0).toLocaleString()})})]},e.date))})]})]})}));var on=t(13355),cn=t(79347);function dn(e,s){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);s&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,r)}return t}function hn(e){for(var s=1;s<arguments.length;s++){var t=null!=arguments[s]?arguments[s]:{};s%2?dn(Object(t),!0).forEach(function(s){un(e,s,t[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):dn(Object(t)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(t,s))})}return e}function un(e,s,t){return(s=function(e){var s=function(e,s){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,s||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===s?String:Number)(e)}(e,"string");return"symbol"==typeof s?s:s+""}(s))in e?Object.defineProperty(e,s,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[s]=t,e}const mn=(0,A.connect)(e=>e.admin.reporting,e=>({onUpdateField:(s,t)=>{e((0,en.cP)(s,t))},onRunFilter:s=>{if(s.kind)e((0,en.QV)(s));else e((0,en.B3)(s))}}))((0,sn.A)(e=>{var s,t;const{match:r,data:n,filter:a,onUpdateField:o,visibleTypes:c,onRunFilter:d,recharts:h}=e,u=(0,A.useDispatch)(),{Cell:m,Pie:x,PieChart:j,ResponsiveContainer:f}=h;return(0,p.jsx)(cn.A,{action:()=>{const e=r.params.objectType;return u((0,en.MR)(e)).then(e=>u((0,en.B3)(e)))},children:(0,p.jsxs)("div",{className:"container",children:[(0,p.jsxs)("div",{className:"list-filter filter",style:{marginBottom:"25px"},children:[(0,p.jsxs)("div",{className:"row",children:[(0,p.jsxs)("div",{className:"col-xs-4",children:[(0,p.jsx)("label",{children:i.t`Start Date`}),(0,p.jsx)(Xi(),{timeFormat:!1,selected:a.startDate,className:"form-control",onChange:e=>{if("string"!=typeof e)o("startDate",e)}})]}),(0,p.jsxs)("div",{className:"col-xs-4",children:[(0,p.jsx)("label",{children:i.t`End Date`}),(0,p.jsx)(Xi(),{timeFormat:!1,selected:a.endDate,className:"form-control",onChange:e=>{if("string"!=typeof e)o("endDate",e)}})]}),(0,p.jsx)("div",{className:"col-xs-4",children:(0,p.jsxs)("label",{children:[i.t`Logged In Only`,(0,p.jsx)(on.A,{value:a.loggedIn,onChange:e=>o("loggedIn",e.target.checked)})," "]})}),(()=>{if(c)return(0,p.jsxs)("div",{className:"col-xs-4",children:[(0,p.jsx)("label",{children:i.t`View Type`}),(0,p.jsx)("select",{className:"form-control",onChange:e=>o("kind",e.target.value),value:a.kind,defaultValue:a.kind,children:c.map(e=>(0,p.jsx)("option",{value:e.id,children:e.name},e.id))})]});else return null})()]}),(0,p.jsx)("div",{className:"nav",style:{marginTop:"15px"},children:(0,p.jsx)("button",{className:"submit",onClick:()=>d(a),children:i.t`Filter`})})]}),(0,p.jsx)("br",{className:"clear"}),(0,p.jsx)(f,{aspect:16/9,width:"100%",children:(0,p.jsx)(j,{height:800,children:(0,p.jsx)(x,{data:n.current?(0,ke.v9)(n.current.slice(0,25)):[],label:e=>(0,l.createElement)("text",hn(hn({},e),{},{key:`text-${e.key}`,fill:"#000000"}),e.payload.name),children:null===(s=n.current)||void 0===s?void 0:s.slice(0,25).map((e,s)=>(0,p.jsx)(m,{fill:dynamicValues.plotColors[s%dynamicValues.plotColors.length]},`cell-${s}`))})})}),(0,p.jsx)("br",{}),(0,p.jsxs)("table",{className:"tbl tbl-striped reports-admin",children:[(0,p.jsx)("thead",{children:(0,p.jsxs)("tr",{children:[(0,p.jsx)("th",{className:"list-header date",style:{width:"80%"},children:i.t`Type`}),(0,p.jsx)("th",{className:"list-header number_of_creations",children:i.t`Number of Views`}),(0,p.jsx)("th",{className:"list-header number_of_creations",children:i.t`Previous Per
5iod Views`}),(0,p.jsx)("th",{className:"list-header number_of_creations",children:i.t`Change`})]})}),(0,p.jsx)("tbody",{children:null===(t=n.current)||void 0===t?void 0:t.map((e,s)=>{const t=n.previous.find(s=>s.hasOwnProperty("key")?s.key===e.key:s.objectId===e.objectId),r=t?t.value:0,i=e.value,l=0!=r?(i-r)/r*100:0,a=0!=r?`${l.toFixed(0)}%`:"n/a";return(0,p.jsxs)("tr",{className:"list-item "+(s%2==0?"even":"odd"),children:[(0,p.jsx)("td",{className:"list-cell",children:(0,p.jsx)("span",{className:"location",children:e.hasOwnProperty("key")?(0,p.jsx)(C.N_,{to:`/admin/reporting/usagebytype/${e.key}`,children:e.name}):e.name})}),(0,p.jsx)("td",{className:"list-cell",children:(0,p.jsx)("span",{children:i.toLocaleString()})}),(0,p.jsx)("td",{className:"list-cell",children:(0,p.jsx)("span",{children:r.toLocaleString()})}),(0,p.jsx)("td",{className:"list-cell",children:(0,p.jsx)("span",{className:l>0?"pos-change":l<0?"neg-change":"",children:a})})]},e.hasOwnProperty("key")?e.key:e.objectId)})})]})]})})}));function pn(e){return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(r.qh,{path:"/admin/reporting/demographic",component:ln}),(0,p.jsx)(r.qh,{path:"/admin/reporting/logins",component:an}),(0,p.jsx)(r.qh,{path:"/admin/reporting/usagebytype/:objectType?",component:mn}),(0,p.jsx)(r.qh,{path:"/admin/root/usagereport",component:Gi}),(0,p.jsx)(r.qh,{path:"/admin/root/schoolreport",component:Zi})]})}pn.propTypes={};pn.defaultProps={};const xn=pn;t(1882);const jn=e=>{const s="admin.loader.loaderForm",t=(0,A.useDispatch)(),r=(0,A.useSelector)(e=>e.admin.loader.loaderRequest);return(0,p.jsx)("div",{className:"container",children:(0,p.jsx)(k.A,{onSubmit:s=>t(e.onSubmit(s)),model:s,encType:"multipart/form-data",children:e=>(0,p.jsxs)("div",{className:"row",children:[(0,p.jsx)("div",{className:"col-xs-12",children:(0,p.jsx)(D.A,{model:`${s}.year`,required:!0,largeTextInput:!0,label:i.t`Year`,form:e})}),(0,p.jsx)("div",{className:"col-xs-12",children:(0,p.jsx)(D.A,{model:`${s}.file`,required:!0,largeTextInput:!0,type:"file",label:i.t`File`,form:e})}),(0,p.jsx)("div",{style:{marginTop:"1rem"},className:"nav",children:(0,p.jsx)(P.A,{loading:r.loading,error:r.error,className:"btn btn-primary",type:"submit",children:i.t`Load Data`})})]})},s)})};var fn=t(23644);function gn(e){return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(r.qh,{path:"/admin/loaders/wages",exact:!0,children:(0,p.jsx)(jn,{onSubmit:fn.MG})}),(0,p.jsx)(r.qh,{path:"/admin/loaders/outlook",exact:!0,children:(0,p.jsx)(jn,{onSubmit:fn.NO})})]})}gn.propTypes={};gn.defaultProps={};const vn=gn;function bn(){return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(ft,{}),(0,p.jsx)(er,{}),(0,p.jsx)($i,{}),(0,p.jsx)(re,{}),(0,p.jsx)(xn,{}),(0,p.jsx)(vn,{}),(0,p.jsx)(r.qh,{path:"/admin/maintenance",exact:!0,children:(0,p.jsx)(se.A,{name:i.t`Maintenance`,adminOnly:!0,includePremium:!0,includeManager:!0,includeSchoolAdmin:!0,children:(0,p.jsx)(I,{})})}),(0,p.jsx)(r.qh,{path:"/admin/maintenance/demo/generate",exact:!0,children:(0,p.jsx)(se.A,{name:i.t`Maintenance - Generate Demo Users`,adminOnly:!0,children:(0,p.jsx)(b,{})})}),(0,p.jsx)(r.qh,{path:"/admin/maintenance/demo/reset",exact:!0,children:(0,p.jsx)(se.A,{name:i.t`Maintenance - Reset Demo Users`,adminOnly:!0,children:(0,p.jsx)(w,{})})})]})}bn.propTypes={};bn.defaultProps={};const yn=bn},84791(e,s,t){t.d(s,{A:()=>f});var r=t(96540),i=t(6527),n=t(78340),l=t(5556),a=t.n(l),o=t(53209);const c=e=>null!=e&&("string"!=typeof e||e.trim().length>0),d=(e={})=>s=>{const{unless:t}=e;if(!t)return!c(s)&&{required:o.t`Required`}};var h=t(74848);const u=["id","label","model","type","required","showRequired","placeholder","errors","showValidationErrors","help","control","children","description"];function m(e,s){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);s&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,r)}return t}function p(e){for(var s=1;s<arguments.length;s++){var t=null!=arguments[s]?arguments[s]:{};s%2?m(Object(t),!0).forEach(function(s){x(e,s,t[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):m(Object(t)).forEac
5h(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(t,s))})}return e}function x(e,s,t){return(s=function(e){var s=function(e,s){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,s||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===s?String:Number)(e)}(e,"string");return"symbol"==typeof s?s:s+""}(s))in e?Object.defineProperty(e,s,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[s]=t,e}class j extends r.Component{constructor(e){super(e)}componentDidMount(){j.updateValidations(this.props.form,this.props)}componentWillUnmount(){this.props.form.setFieldValidations(this.props.model,null)}componentDidUpdate(e,s,t){const r=s=>e[s]!==this.props[s],i=(e.validate||[]).length!==(this.props.validate||[]).length,n=r("type"),l=r("control"),a=r("required"),o=e.model,c=o!==this.props.model,d=this.props.form;if(d&&(c||i||n||l||a)){if(c)d.setFieldValidations(o,null);j.updateValidations(d,this.props)}}static updateValidations(e,s){let t=s.validate?[...s.validate]:[];if(s.required)t=[d(),...t];e.setFieldValidations(s.model,t)}render(){const e=this.props,{id:s,label:t,model:r,type:i,required:l,showRequired:a,placeholder:o,errors:c,showValidationErrors:d,help:m,control:x,children:j,description:f}=e,g=function(e,s){if(null==e)return{};var t,r,i=function(e,s){if(null==e)return{};var t={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==s.indexOf(r))continue;t[r]=e[r]}return t}(e,s);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)t=n[r],-1===s.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,u);let v;for(const e in c){const s=c[e];if("string"==typeof s){v=s;break}}const b=d?"has-error":"",y=(s||r).replace(/\./g,"_"),N=e=>(0,h.jsxs)("label",{className:"control-label",htmlFor:y,children:[e,t,t&&(l||a)&&"*"]},t),w=(()=>{switch(i&&i.toLowerCase()){case"radio":case"checkbox":return"";case"datetime":return"input-lg";default:return"form-control input-lg"}})(),A=x||(()=>{switch(i&&i.toLowerCase()){case"checkbox":return n.Ec.checkbox;case"select":return n.Ec.select;case"textarea":return n.Ec.textarea;case"file":return n.Ec.file;default:return n.Ec}})(),O=p({},g);delete O.control;delete O.validateAction;delete O.validate;delete O.form;const S=(0,h.jsx)(A,p({id:y,type:i,model:r,className:w,children:j,placeholder:o&&`${o} ${l||a?" *":""}`},O),y);return(0,h.jsxs)("div",{className:`${(()=>{switch(i&&i.toLowerCase()){case"checkbox":return"checkbox";case"radio":return"radio";default:return"form-group"}})()} ${b}`,children:[(()=>{switch(i){case"radio":case"checkbox":return N(S);default:return(0,h.jsxs)("div",{children:[N(),f?(0,h.jsx)("div",{className:"text-muted",children:(0,h.jsx)("i",{children:f})}):null,S]})}})(),(0,h.jsx)("div",{className:"help-block",children:d&&v&&(0,h.jsx)("span",{children:v})||m})]})}}j.propTypes={form:a().object.isRequired};const f=(0,i.connect)(function(e,{model:s}){const t=s.substring(0,s.lastIndexOf(".")),r=(0,n.VI)(e,t),i=(0,n.VI)(e,s);return{errors:i&&i.errors,showValidationErrors:i&&!i.pending&&(!i.pristine||i.touched||r.submitted||r.submitFailed)&&!i.valid}},e=>({dispatch:e}))(j)}}]);
6//# sourceMappingURL=admin.e6add13e.chunk.js.map

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.