1"use strict";(self.rspackChunk_pathwright_mainclient=self.rspackChunk_pathwright_mainclient||[]).push([["t"],{jb(e,n,r){r.d(n,{A:()=>tT});var t=r("r"),i=r("B"),s=r("PT"),o=r("BZ"),l=r("Eu"),c=r("xE"),a=r.n(c),d=r("C"),u=r.n(d),p=r("l3"),h=r("ux"),x=r("KY"),m=r("vu7"),f=r("Gk"),y=r.n(f),g=r("dx"),_=r("D"),j=r("YL"),A=r("Zy8");let b=y()((0,A.RC)(h.s0,"schoolId","school.id"),(0,m.U)(_.tL0,{options:e=>({fetchPolicy:e.fetchPolicy,variables:{id:e.id,school_id:e.schoolId,include_publisher:!!e.includePublisher,include_school_license:!!e.includeSchoolLicense,include_license_offerings:!!e.includeLicenseOfferings,licensee_school_id:e.licenseeSchoolId||e.schoolId,licenseeIdFilter:e.licenseeSchoolId||e.schoolId?{eq:e.licenseeSchoolId||e.schoolId}:null}}),props:e=>{let{data:n}=e,r=a()(n,"context.school.resource");return{error:n.error,loading:n.loading,resource:r&&(0,i._)((0,t._)({},r),{total_author_count:a()(r,"authors.total",0),total_group_count:a()(r,"groups.total",0),license_offering:a()(r,"license_offerings.edges.0.node"),school_license:a()(r,"school_licenses.edges.0.node"),categories:(0,j.x2)(a()(r,"categories")),authors:(0,j.x2)(a()(r,"authors")),groups:(0,j.x2)(a()(r,"groups")),group:(0,j.x2)(a()(r,"group"))})}}}));class v extends g.Component{shouldComponentUpdate(e,n,r){return e.error!==this.props.error||e.loading!==this.props.loading||!this.props.resource||!e.resource||e.resource.id!==this.props.resource.id||!!e.shouldUpdate&&e.shouldUpdate({props:this.props,nextProps:e})}render(){let e=this.props,{children:n}=e;return n((0,x._)(e,["children"]))||null}}v.displayName="StoreResourceQuery",v.propTypes={id:u().number.isRequired,schoolId:u().number,includePublisher:u().bool,includeSchoolLicense:u().bool,includeLicenseOfferings:u().bool,licenseeSchoolId:u().number};var w=b(v),C=r("l"),R=r("TdL"),T=r("T"),S=r("ny"),I=r("ha"),k=r("HS"),L=r("L4"),N=r("Eh");function P(){let e=(0,T._)(["\n position: relative;\n width: 100%;\n padding: 20px 0;\n /* transform necessary to prevent flickering on scroll when in modal */\n transform: translate3d(0, 0, 0);\n"]);return P=function(){return e},e}function H(){let e=(0,T._)(["\n position: relative;\n display: flex;\n justify-content: center;\n flex-wrap: wrap;\n"]);return H=function(){return e},e}function E(){let e=(0,T._)(["\n position: relative;\n margin: 0 auto;\n padding: 20px 20px 0;\n width: 100%;\n max-width: 1000px;\n"]);return E=function(){return e},e}function B(){let e=(0,T._)(["\n padding: 20px 0;\n width: 100%;\n"]);return B=function(){return e},e}function z(){let e=(0,T._)(["\n position: relative;\n text-align: center;\n width: 100%;\n"]);return z=function(){return e},e}let O=(0,I.Ay)(R.Ay)(P()),q=(0,I.Ay)(R.Ay)(H()),M=(0,I.Ay)(R.Ay)(E()),D=(0,I.Ay)(R.Ay)(B()),G=(0,I.Ay)(l.A.H5)(z());var V=function(e){let{children:n,emphasis:r,image:o,overlay:l,heading:c,sidescroll:a}=e,d=(0,x._)(e,["children","emphasis","image","overlay","heading","sidescroll"]);return a?(0,s.jsx)(O,(0,i._)((0,t._)({},d),{emphasis:r,children:(0,s.jsxs)(q,{children:[o&&(0,s.jsx)(L.A,{image:o,overlay:l}),c&&(0,s.jsx)(G,{children:c}),(0,s.jsx)(N.Ay,{vertical:!1,horizontal:!0,children:(0,s.jsx)(D,{children:n})})]})})):(0,s.jsxs)(O,(0,i._)((0,t._)({},d),{emphasis:r,children:[o&&(0,s.jsx)(L.A,{image:o,overlay:l}),c&&(0,s.jsx)(G,{children:c}),(0,s.jsx)(M,{children:n})]}))};function Q(){let e=(0,T._)(["\n & > *:first-child {\n margin-top: 0;\n }\n & > *:last-child {\n margin-bottom: 0;\n }\n & img {\n max-width: 100%;\n }\n"]);return Q=function(){return e},e}function F(){let e=(0,T._)(["\n height: 1em;\n width: ","%;\n margin: 10px 0;\n"]);return F=function(){return e},e}let U=(0,I.Ay)(l.A)(Q()),W=(0,I.Ay)(S.A)(F(),e=>e.width),$=e=>{let{loading:n,resource:r}=e;return n?(0,s.jsxs)(V,{emphasis:"primary",children:[(0,s.jsx)(W,{width:90}),(0,s.jsx)(W,{width:100}),(0,s.jsx)(W,{width:80}),(0,s.jsx)(W,{width:90})]}):r&&r.description?(0,s.jsx)(V,{heading:"Course Description",emphasis:"primary",children:(0,s.jsx)(U,{className:"Text Text--theme",typography:"body",emphasis:"secondary",dangerouslySetInnerHTML:{__html:(0,k.P)(r.description)}})}):null};$.displayName="ResourceDescription",$.propTypes={loading:u().bool,resource:u().shape({description:u().string})};let Y=e=>(0,s.jsx)(w,(0,i._)((0,t._)({},e),{children:e=>{let{loading:n,resource:r}=e;return(0,s.jsx)($,{loading:n,resource:r})}}));Y.displayName="ResourceDescriptionContainer",Y.propTypes={resourceQueryOptions:u().shape(w.propTypes)};var J=r("Y7"),K=r("hl"),Z=r.n(K),X=r("Qq");function ee(){let e=(0,T._)(["\n width: 100%;\n display: flex;\n align-items: flex-start;\n padding: 20px;\n border-radius: 10px;\n"]);return ee=function(){return e},e}function en(){let e=(0,T._)(["\n flex-shrink: 0;\n overflow: hidden;\n width: 50px;\n height: 50px;\n border-radius: 25px;\n margin-right: 10px;\n img {\n width: 50px;\n height: 50px;\n }\n"]);return en=function(){return e},e}function er(){let e=(0,T._)(["\n min-height: 50px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n"]);return er=function(){return e},e}function et(){let e=(0,T._)(["\n margin-top: 5px;\n display: block;\n position: relative;\n overflow: hidden;\n max-height: ",";\n * {\n margin: 0;\n }\n a {\n color: inherit;\n text-decoration: underline;\n }\n"]);return et=function(){return e},e}function ei(){let e=(0,T._)(["\n position: absolute;\n top: 2.6em;\n right: 0;\n padding-left: 100px;\n cursor: pointer;\n background: linear-gradient(\n to right,\n rgba(255, 255, 255, 0),\
1n "," 100px\n );\n"]);return ei=function(){return e},e}let es=(0,I.Ay)(R.Ay.Secondary)(ee()),eo=(0,I.Ay)(R.Ay.Tertiary)(en()),el=(0,I.Ay)(R.Ay)(er()),ec=(0,I.Ay)(l.A)(et(),e=>e.expand?"3.9em":"none"),ea=(0,I.Ay)(l.A.Meta)(ei(),e=>e.backgroundColor);function ed(e){let{author:n}=e,[r,t]=(0,g.useState)(!1),[i,c]=(0,g.useState)(!1),a=(0,g.useRef)(null),d=()=>{t(!0)},u=(0,g.useCallback)(()=>{let e=a.current,n=e.offsetHeight;c(e.firstChild.offsetHeight>n)},[]);return(0,g.useEffect)(()=>{u()},[]),(0,s.jsxs)(es,{children:[(0,s.jsx)(eo,{children:(0,s.jsx)(X.A,{src:n.image})}),(0,s.jsxs)(el,{children:[(0,s.jsx)(l.A.H4,{children:n.full_name}),(0,s.jsxs)(ec,{ref:a,typography:"meta",emphasis:"tertiary",expand:!r,children:[(0,s.jsx)(l.A,{el:"div",typography:"meta",emphasis:"tertiary",dangerouslySetInnerHTML:{__html:n.bio}}),i&&!r&&(0,s.jsx)(o.Ay.Consumer,{children:e=>{let{backgroundColor:n}=e;return(0,s.jsx)(ea,{onClick:d,backgroundColor:n,children:"More"})}})]})]})]})}function eu(){let e=(0,T._)(["\n margin: -10px;\n padding: 0;\n display: flex;\n flex-wrap: wrap;\n list-style-type: none;\n"]);return eu=function(){return e},e}function ep(){let e=(0,T._)(["\n width: 100%;\n "]);return ep=function(){return e},e}function eh(){let e=(0,T._)(["\n width: 50%;\n display: flex;\n padding: 10px;\n &:only-child {\n width: 100%;\n }\n ",";\n"]);return eh=function(){return e},e}function ex(){let e=(0,T._)(["\n display: flex;\n padding: 20px;\n border-radius: 10px;\n"]);return ex=function(){return e},e}function em(){let e=(0,T._)(["\n height: 50px;\n width: 50px;\n border-radius: 25px;\n margin-right: 10px;\n"]);return em=function(){return e},e}function ef(){let e=(0,T._)(["\n height: 1.25em;\n width: 30%;\n min-width: 150px;\n"]);return ef=function(){return e},e}ed.displayName="Author",ed.propTypes={author:u().shape({full_name:u().string.isRequired,image:u().string,bio:u().string}).isRequired};let ey=I.Ay.ul(eu()),eg=I.Ay.li(eh(),J.$_.max.tablet(ep())),e_=(0,I.Ay)(R.Ay.Secondary)(ex()),ej=(0,I.Ay)(S.A)(em()),eA=(0,I.Ay)(S.A)(ef()),eb=e=>{let{loading:n,resource:r}=e;return n?(0,s.jsx)(V,{emphasis:"primary",children:(0,s.jsx)(ey,{children:(0,s.jsx)(eg,{children:(0,s.jsxs)(e_,{children:[(0,s.jsx)(ej,{}),(0,s.jsx)(eA,{})]})})})}):r&&r.authors&&r.authors.length?(0,s.jsx)(V,{emphasis:"primary",heading:"About the ".concat(Z()("Contributor",r.total_author_count)),children:(0,s.jsx)(ey,{children:r.authors.map(e=>(0,s.jsx)(eg,{children:(0,s.jsx)(ed,{author:e},e.id)},e.id))})}):null};eb.displayName="ResourceAuthors",eb.propTypes={loading:u().bool,resource:u().shape({total_author_count:u().number.isRequired,authors:u().array.isRequired})};let ev=e=>(0,s.jsx)(w,(0,i._)((0,t._)({},e),{children:e=>{let{loading:n,resource:r}=e;return(0,s.jsx)(eb,{loading:n,resource:r})}}));ev.displayName="ResourceAuthorsContainer",ev.propTypes={resourceQueryOptions:u().shape(w.propTypes)};var ew=r("cN"),eC=r("QVO"),eR=r("RF"),eT=r("Vj");function eS(){let e=(0,T._)(["\n height: 1em;\n width: ","%;\n margin: 10px 0;\n"]);return eS=function(){return e},e}(0,I.Ay)(S.A)(eS(),e=>e.width);let eI=e=>{let{loading:n,resource:r}=e;return r&&r.short_description?(0,s.jsx)(l.A.Body,{inverted:!0,children:r.short_description}):null};eI.displayName="ResourceSummary",eI.propTypes={loading:u().bool,resource:u().shape({short_description:u().string})};var ek=r("b2"),eL=r("To"),eN=r("ji"),eP=r("VT");function eH(){let e=(0,T._)(["\n flex-direction: column;\n "]);return eH=function(){return e},e}function eE(){let e=(0,T._)(["\n display: flex;\n align-items: center;\n ",";\n"]);return eE=function(){return e},e}function eB(){let e=(0,T._)(["\n margin-left: 0px;\n margin-top: 5px;\n "]);return eB=function(){return e},e}function ez(){let e=(0,T._)(["\n margin-left: 10px;\n ",";\n"]);return ez=function(){return e},e}let eO=I.Ay.div(eE(),J.$_.max.phone(eH())),eq=I.Ay.div(ez(),J.$_.max.phone(eB())),eM=e=>{let{label:n,processing:r,to:t,onClick:i}=e;return(0,s.jsx)(eR.Ay.Consumer,{children:e=>(0,s.jsx)(ek.A,{to:t,onClick:i,type:"button",styleType:"primary",submitting:r,inverted:!0,size:eR.Ay.select({lg:"large",md:"medium"})({screensize:e}),children:n})})},eD=e=>{let{school:n}=(0,h.RS)(),{currencyFormatter:r}=(0,p.J9)();if(e.error)return(0,s.jsx)(eL.Ay,{heading:"Something went wrong.",body:"You could not license ".concat(e.resource.name,"."),onConfirm:e.onClearError,hideCancel:!0});if(e.resource&&e.resource.license_offering){if(e.licencedResource?e.licencedResource.id:a()(e,"resource.school_license.group.resource_id"))return(0,s.jsx)(eM,{processing:e.processing,label:"View in your Library",to:"/h
1ome/teach/"});let n=a()(e,"resource.license_offering.include_in_school_curriculum_subscriptions.total");return(0,s.jsxs)(eO,{children:[(0,s.jsx)(eM,{processing:e.processing,onClick:()=>e.onLicense(e.resource.license_offering.id),label:"Get Curriculum"}),!n&&(0,s.jsx)(eq,{children:(0,s.jsxs)(l.A.Meta,{emphasis:"primary",inverted:!0,children:[(0,s.jsx)("strong",{children:r.customFormat((0,eP.jv)(e.resource.license_offering))}),(0,eP.LT)(e.resource.license_offering,e.t)]})})]})}return 13279===n.id?(0,s.jsx)(l.A.H5,{inverted:!0,children:"Coming soon..."}):null};eD.displayName="ResourceHeaderAction",eD.propTypes={error:u().any,processing:u().bool,onLicense:u().func,onClearError:u().func,resource:u().shape({image:u().string,name:u().string.isRequired,school_license:u().object}).isRequired,licencedResource:u().shape({id:u().number})};var eG=(0,eN.A)(eD);class eV extends g.Component{render(){return this.props.resource?(0,s.jsx)(eG,(0,i._)((0,t._)({},this.props),{error:this.state.error,processing:this.state.processing,licencedResource:this.state.licencedResource,onClearError:()=>this.setState({error:null}),onLicense:this.handleLicense,resource:this.props.resource})):null}constructor(...e){super(...e),(0,C._)(this,"state",{error:null,processing:!1,licencedResource:null}),(0,C._)(this,"licenseWithoutPurchase",()=>(this.setState({processing:!0,error:null}),this.props.licenseResource({variables:{license_offering_id:this.props.resource.license_offering.id,resource_id:this.props.resource.id,name:this.props.resource.name,role:"teacher"},refetchQueries:["StoreResourceQuery","Cohorts"]}).then(e=>{this.setState({processing:!1,licencedResource:e.data.licenseResource.group.resource})}).catch(e=>{this.setState({error:e,processing:!1})}
1))),(0,C._)(this,"handleLicense",()=>{let{license_offering:e}=this.props.resource;return(e.cost_per_seat&&e.cost_per_seat,e.include_in_curriculum_plans.total>0&&e.include_in_school_curriculum_subscriptions.total)?void this.licenseWithoutPurchase():this.props.onLicense(e)})}}eV.displayName="ResourceHeaderActionContainer",eV.propTypes={resource:u().object.isRequired,onLicense:u().func};var eQ=(0,m.U)(_.zNV,{name:"licenseResource"})(eV);function eF(){let e=(0,T._)(["\n position: relative;\n overflow: hidden;\n border-radius: 10px;\n width: ","px;\n height: ","px;\n img {\n width: 100%;\n height: 100%;\n }\n"]);return eF=function(){return e},e}function eU(){let e=(0,T._)(["\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n html.no-touch &:hover {\n background-color: rgba(0, 0, 0, 0.3);\n }\n .Pathicon {\n color: white;\n font-size: 28px;\n }\n"]);return eU=function(){return e},e}function eW(){let e=(0,T._)(["\n border-radius: 10px;\n width: ","px;\n height: ","px;\n"]);return eW=function(){return e},e}function e$(){let e=(0,T._)(["\n grid-template-columns: 1fr;\n justify-items: center;\n "]);return e$=function(){return e},e}function eY(){let e=(0,T._)(["\n display: grid;\n grid-template-columns: ","px 1fr;\n\n ",";\n"]);return eY=function(){return e},e}function eJ(){let e=(0,T._)(["\n margin-top: 30px;\n"]);return eJ=function(){return e},e}function eK(){let e=(0,T._)(["\n width: 1em;\n height: 1em;\n margin-right: 5px;\n border-radius: 4px;\n"]);return eK=function(){return e},e}function eZ(){let e=(0,T._)(["\n align-items: center;\n padding-left: 0px;\n "]);return eZ=function(){return e},e}function eX(){let e=(0,T._)(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: space-between;\n padding-left: 15px;\n overflow: hidden;\n ",";\n"]);return eX=function(){return e},e}function e0(){let e=(0,T._)(["\n margin: 10px 0;\n align-items: center;\n text-align: center;\n "]);return e0=function(){return e},e}function e1(){let e=(0,T._)(["\n display: flex;\n flex-direction: column;\n ",";\n"]);return e1=function(){return e},e}function e5(){let e=(0,T._)(["\n position: absolute;\n top: 12px;\n right: 12px;\n"]);return e5=function(){return e},e}let e2=I.Ay.div(eF(),eR.Ay.select({lg:200,md:186,sm:160}),eR.Ay.select({lg:150,md:140,sm:120}));(0,I.Ay)(eC.A)(eU());let e4=(0,I.Ay)(S.A)(eW(),eR.Ay.select({lg:200,md:186,sm:160}),eR.Ay.select({lg:150,md:140,sm:120})),e9=(0,I.Ay)(R.Ay)(eY(),eR.Ay.select({lg:200,md:186,sm:160}),J.$_.max.phone(e$())),e3=(0,I.Ay)(R.Ay)(eJ()),e8=(0,I.Ay)(X.A)(eK()),e6=(0,I.Ay)(R.Ay)(eX(),J.$_.max.phone(eZ())),e7=(0,I.Ay)(R.Ay)(e1(),J.$_.max.phone(e0())),ne=(0,I.Ay)(ew.A)(e5()),nn=e=>{let{loading:n,resource:r,onLicense:t,isLicenseContext:i}=e,{me:o}=(0,h.RS)();return n?(0,s.jsx)(eR.Ay.Consumer,{children:e=>(0,s.jsx)(V,{emphasis:"primary",children:(0,s.jsx)(e9,{screensize:e,children:(0,s.jsx)(e4,{screensize:e})})})}):r?(0,s.jsx)(eR.Ay.Consumer,{children:e=>(0,s.jsxs)(V,{emphasis:"primary",image:r.background_image,overlay:r.background_overlay,children:[(0,s.jsxs)(e9,{screensize:e,children:[(0,s.jsx)(e2,{screensize:e,children:(0,s.jsx)(X.A,{src:r.image})}),(0,s.jsxs)(e6,{children:[(0,s.jsxs)(e7,{children:[r.publisher&&(0,s.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,s.jsx)(e8,{src:r.publisher.image}),(0,s.jsx)(l.A,{inverted:!0,children:r.publisher.name})]}),(0,s.jsx)(l.A.H2,{inverted:!0,children:r.name})]}),(0,s.jsx)(eQ,{resource:r,onLicense:t})]}),!i&&a()(o,"permissions.has_pathwright_staff_access")&&(0,s.jsx)(ne,{inverted:!0,icon:"gear",to:{pathname:(0,eT.zP)(r.id),state:{setResourceLaunchedFrom:!0}}})]}),(0,s.jsx)(e3,{children:(0,s.jsx)(eI,{loading:n,resource:r})})]})}):null};nn.displayName="ResourceHeader",nn.propTypes={loading:u().bool,resource:u().object,onLicense:u().func};let nr=e=>{let{props:n,nextProps:r}=e;return a()(n,"resource.school_license.id")!==a()(r,"resource.school_license.id")},nt=e=>{let{onLicense:n,isLicenseContext:r}=e,o=(0,x._)(e,["onLicense","isLicenseContext"]);return(0,s.jsx)(w,(0,i._)((0,t._)({},o),{shouldUpdate:nr,children:e=>{let{loading:t,resource:i}=e;return(0,s.jsx)(nn,{loading:t,resource:i,onLicense:n,isLicenseContext:r})}}))};function ni(){let e=(0,T._)(["\n & > *:not(:first-child) {\n display: none;\n }\n "]);return ni=function(){return e},e}function ns(){let e=(0,T._)(["\n position: relative;\n overflow: hidden;\n width: ",";\n display: flex;\n align-items: stretch;\n flex-direction: ",";\n border-radius: 10px;\n box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.1);\n & > * + * {\n padding-top: 20px;\n }\n ",";\n"]);return ns=function(){return e},e}function no(){let e=(0,T._)(["\n padding: 20px;\n width: 150%;\n max-width: 100%;\n display: flex;\n flex-direction: column;\n"]);return no=function(){return e},e}function nl(){let e=(0,T._)(["\n width: 100%;\n padding: 20px;\n"]);return nl=function(){return e},e}function nc(){let e=(0,T._)(["\n display: flex;\n align-items: baseline;\n justify-content: space-between;\n h5 {\n text-transform: uppercase;\n }\n"]);return nc=function(){return e},e}function na(){let e=(0,T._)(["\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex !important;\n align-items: flex-end;\n justify-content: center;
1\n cursor: pointer;\n"]);return na=function(){return e},e}function nd(){let e=(0,T._)(["\n position: absolute;\n top: 15px;\n right: 15px;\n"]);return nd=function(){return e},e}nt.displayName="ResourceHeaderContainer",nt.propTypes={resourceQueryOptions:u().shape(w.propTypes),onLicense:u().func};let nu=(0,I.Ay)(R.Ay.Primary)(ns(),eR.Ay.select({xl:"300px",lg:"300px",md:"280px",sm:"100%"}),e=>"sm"!==e.screensize&&"md"!==e.screensize&&e.fullWidth?"row":"column",e=>!e.expand&&"sm"===e.screensize&&(0,I.AH)(ni())),np=I.Ay.div(no()),nh=(0,I.Ay)(R.Ay.Secondary)(nl()),nx=I.Ay.header(nc()),nm=I.Ay.div(na()),nf=(0,I.Ay)(ew.A)(nd());class ny extends g.Component{render(){let{name:e,meta:n,summary:r,body:t,cta:i,fullWidth:o,toEdit:c}=this.props;return(0,s.jsx)(eR.Ay.Consumer,{children:n=>(0,s.jsxs)(nu,{expand:this.state.expand,fullWidth:o,screensize:n,children:[(0,s.jsxs)(np,{children:[(0,s.jsxs)(R.Ay,{children:[(0,s.jsx)(nx,{children:(0,s.jsx)(l.A.H5,{children:e})}),(0,s.jsx)(l.A.Body,{children:r})]}),!this.state.expand&&"sm"===n&&(0,s.jsx)(nm,{onClick:this.handleExpand,children:(0,s.jsx)(ew.A,{icon:"chevron-down"})}),t]}),(0,s.jsx)(nh,{children:i}),c&&(0,s.jsx)(nf,{to:c,icon:"gear",color:"#aaa"})]})})}constructor(...e){super(...e),(0,C._)(this,"state",{expand:!!this.props.initialExpand}),(0,C._)(this,"handleExpand",()=>{this.setState({expand:!0})})}}function ng(){let e=(0,T._)(['\n p {\n margin-bottom: 0;\n }\n ul {\n margin: 0;\n padding: 0;\n }\n li {\n list-style-type: disc;\n margin: 2px 2px 5px 25px;\n &[class^="pwai-"] {\n list-style-type: none;\n font-family: inherit !important;\n font-weight: 400;\n line-height: 1.3em;\n &:before {\n margin-left: -25px;\n margin-right: 10px;\n font-family: "pathicons";\n }\n }\n }\n']);return ng=function(){return e},e}ny.displayName="OfferingCard",ny.propTypes={name:u().string,summary:u().string,meta:u().node,body:u().node,cta:u().node};let n_=(0,I.Ay)(l.A.Body)(ng());function nj(e){let{group:n}=e;return(0,s.jsx)(n_,{dangerouslySetInnerHTML:{__html:n.description}})}nj.displayName="GroupOfferingDescription";var nA=r("TC"),nb=r("q"),nv=r.n(nb),nw=r("tj5"),nC=r("yC");function nR(){let e=(0,T._)(["\n display: flex;\n align-items: baseline;\n margin-bottom: 10px;\n input {\n flex-shrink: 0;\n margin-right: 10px;\n }\n"]);return nR=function(){return e},e}function nT(){let e=(0,T._)(["\n margin-top: 10px;\n display: flex;\n align-items: baseline;\n .Button {\n margin-right: 5px;\n }\n"]);return nT=function(){return e},e}let nS=I.Ay.label(nR()),nI=I.Ay.footer(nT());function nk(e){let{group:n}=e,r=(0,o.k)(),{currencyFormatter:t}=(0,p.J9)();{let e=(0,eP.OQ)(n.include_in_plans);return(0,s.jsxs)(R.Ay,{children:[e&&(0,s.jsxs)(nS,{children:[!n.is_subscription_only&&(0,s.jsx)("input",{name:"group",type:"radio",checked:!0}),(0,s.jsxs)(l.A.Body,{children:[(0,s.jsx)("b",{style:{color:r.primaryBrandColor},children:t.customFormat((0,eP.BG)(e.subscription_plan))}),(0,eP.aH)(e.subscription_plan)," ","with subscription that includes 40+ courses."]})]}),!n.is_subscription_only&&(0,s.jsxs)(nS,{children:[e&&(0,s.jsx)("input",{name:"group",type:"radio"}),(0,s.jsxs)(l.A.Body,{children:[(0,s.jsx)("b",{style:{color:r.primaryBrandColor},children:t.customFormat((0,eP.jv)(n))})," ","for one registration in this course"]})]}),(0,s.jsx)(nI,{children:(0,s.jsx)(nw.Ay,{styleType:"primary",size:"large",children:"Get Course"})})]})}}function nL(e){let{group:n}=e;return n.user_registration&&n.user_registration.id?(0,s.jsx)(l.A.Body,{children:"You are registered."}):n.registration_started?n.registration_ended?(0,s.jsx)(l.A.Body,{children:(0,s.jsxs)(nA.A,{title:"Closed ".concat(nv()(n.registration_ends).format("LLL")),children:["Registration closed ",nv()(n.registration_ends).fromNow(),"."]})}):(0,s.jsx)(nk,{group:n}):(0,s.jsx)(l.A.Body,{children:(0,s.jsxs)(nA.A,{title:"Opens ".concat(nv()(n.registration_starts).format("LLL")),children:["Registration will open ",nv()(n.registration_starts).fromNow(),"."]})})}function nN(e){let{group:n}=e;return(0,s.jsxs)(R.Ay,{children:[n.access_starts&&(0,s.jsxs)(l.A.Meta,{children:[(0,s.jsx)(nC.A,{icon:"calendar"})," Starts"," ",nv()(n.access_starts).local().format("MMMM Do")]}),n.registration_ends&&(0,s.jsxs)(l.A.Meta,{children:["Registration closes"," ",nv()(n.registration_ends).local().format("MMMM Do")]}),n.seats_available>-1?(0,s.jsxs)(l.A.Meta,{children:[(0,s.jsx)(nC.A,{icon:"group-2"})," ",Z()("seats",n.seats_available,!0),"/",n.seats," left"]}):n.seats_filled>0?(0,s.jsxs)(l.A.Meta,{children:[(0,s.jsx)(nC.A,{icon:"group-2"})," ",Z()("seats",n.seats_filled,!0)," filled"]}):null]})}function nP(e){let{group:n,standalone:r,initialExpand:t}=e;return(0,s.jsx)(ny,{name:n.name,fullWidth:r,initialExpand:t,summary:"Lorem ipsum dolor sit amet, consectetur adipisicing elit",body:[(0,s.jsx)(nN,{group:n},"status"),(0,s.jsx)(nj,{group:n},"description")],cta:(0,s.jsx)(nL,{group:n})})}function nH(){let e=(0,T._)(['\n p {\n margin-bottom: 0;\n }\n ul {\n margin: 0;\n padding: 0;\n }\n li {\n list-style-type: disc;\n margin: 2px 2px 5px 25px;\n &[class^="pwai-"] {\n list-style-type: none;\n font-family: inherit !important;\n font-weight: 400;\n line-height: 1.3em;\n &:before {\n margin-left: -25px;\n margin-right: 10px;\n font-family: "pathicons";\n }\n }\n }\n']);return nH=function(){return e},e}nk.displayName="GroupOfferingRegistrationOptions",nL.displayName="GroupOfferingRegistration",nN.displayName="GroupOfferingStatus",nP.displayName="GroupOffering";let nE=(0,I.Ay)(l.A)(nH());function nB(e){let{license_offering:n}=e;return(0,s.jsx)(nE,{typography:"body",emphasis:"secondary",dangerouslySetInnerHTML:{__html:n.description}})}nB.displayName="LicenseOfferingDescription";var nz=r("Jq");function nO(e){let{license_offering:n,onLicense:r,t,tc:i}=e,c=(0,o.k)(),{currencyFormatter:a}=(0,p.J9)();return(0,s.jsx)(eR.Ay.Consumer,{children:e=>(0,s.jsxs)(R.Ay,{children:[(0,s.jsx)(R.Ay,{style:{marginBottom:10},children:(0,s.jsxs)(l.A.Body,{children:[(0,s.jsx)("b",{style:{color:c.primaryBrandColor},children:a.customFormat((0,eP.jv)(n))}),(0,eP.LT)(n,t)," ",n.include_in_subscription_plans.length>0&&"for non-subscribers"]}
1)}),n.licensing_mode===nz.rk?n.school_license?(0,s.jsx)(nw.Ay,{to:"/home/teach/",styleType:"primary",size:eR.Ay.select({lg:"large",md:"medium"})({screensize:e}),children:"View in my Library"}):(0,s.jsx)(nw.Ay,{onClick:e=>r(n),styleType:"primary",size:eR.Ay.select({lg:"large",md:"medium"})({screensize:e}),children:"Get Curriculum"}):(0,s.jsxs)(nw.Ay,{styleType:"primary",children:["Create ",i("cohort.label")]})]})})}nO.displayName="LicenseOfferingRegistration";var nq=(0,eN.A)(nO);function nM(e){let{resource:n,license_offering:r,initialExpand:t,standalone:i,onLicense:o,isLicenseContext:l}=e,{me:c}=(0,h.RS)(),d=!l&&a()(c,"permissions.has_pathwright_staff_access");return(0,s.jsx)(ny,{toEdit:d&&(0,eT.EW)(n.id),fullWidth:i,initialExpand:t,body:(0,s.jsx)(nB,{license_offering:r}),cta:(0,s.jsx)(nq,{license_offering:r,onLicense:o})})}function nD(){let e=(0,T._)(["\n align-items: center;\n flex-direction: column;\n "," {\n padding-left: 0 !important;\n padding-right: 0 !important;\n & + "," {\n margin-top: 20px;\n }\n }\n "]);return nD=function(){return e},e}function nG(){let e=(0,T._)(["\n margin: 0;\n padding: 0;\n display: flex;\n align-items: stretch;\n list-style-type: none;\n ",";\n"]);return nG=function(){return e},e}function nV(){let e=(0,T._)(["\n flex-shrink: 0;\n display: flex;\n align-items: stretch;\n padding-right: 20px;\n max-width: 100%;\n &:first-child {\n padding-left: 20px;\n }\n &:only-child > div {\n width: 960px;\n max-width: 100%;\n }\n"]);return nV=function(){return e},e}nM.displayName="LicenseOffering";let nQ=I.Ay.ul(nG(),e=>"sm"===e.screensize&&(0,I.AH)(nD(),nF,nF)),nF=I.Ay.li(nV()),nU=e=>{let{loading:n,resource:r,group_offerings:t,license_offerings:i,isLicenseContext:o,onLicense:l}=e,c=t?t.length:0,a=i?i.length:0;return c||a?(0,s.jsx)(eR.Ay.Consumer,{children:e=>
1(0,s.jsx)(V,{heading:"Use this curriculum in your next group study",emphasis:"secondary",sidescroll:"sm"!==e&&i&&i.length>1,children:(0,s.jsxs)(nQ,{screensize:e,children:[t&&t.map((e,n)=>(0,s.jsx)(nF,{children:(0,s.jsx)(nP,{group:e,initialExpand:0===n,standalone:a+c===1})},e.id)),i&&i.map((e,n)=>(0,s.jsx)(nF,{children:(0,s.jsx)(nM,{license_offering:e,isLicenseContext:o,initialExpand:0===c&&0===n,standalone:a+c===1,onLicense:l,resource:r})},e.id))]})})}):null};nU.displayName="ResourceOfferings",nU.propTypes={group_offerings:u().array,license_offerings:u().array,onLicense:u().func};let nW=y()((0,A.RC)(h.s0,"schoolId","school.id"),(0,m.U)(_.PBT,{options:e=>({variables:{id:e.id,school_id:e.schoolId,licensee_school_id:e.licenseeSchoolId||e.schoolId,licenseeIdFilter:e.licenseeSchoolId||e.schoolId?{eq:e.licenseeSchoolId||e.schoolId}:null,licensing_mode:nz.rk,include_school_license:!0,skip_license_offerings:!1,skip_group_offerings:!0}}),props:e=>{let{data:n}=e;return{error:n.error,loading:n.loading,resource:a()(n,"context.school.resource"),group_offerings:(0,j.x2)(a()(n,"context.school.resource.group_offerings")),license_offerings:((0,j.x2)(a()(n,"context.school.resource.license_offerings"))||[]).filter(e=>!a()(e,"include_in_school_curriculum_subscriptions.total"))}}}))(nU);nW.displayName="ResourceOfferingsContainer",nW.propTypes={onLicense:u().func};var n$=r("Pf"),nY=r("Pc"),nJ=r("klm"),nK=r("DQ");let nZ=e=>{let{children:n,background:r,preventInteraction:t,porting:i,setPorting:o}=e,l=(0,eR.iy)(),{useSizeRef:c}=(0,nK.yC)(),a=c("lesson-animator",()=>window);return(0,s.jsx)(eR.Ay.Provider,{screensize:i?l:"sm",children:(0,s.jsxs)(J.g1,{as:R.Ay.Primary,ref:a,onClick:()=>{i||o(!0)},css:(0,J.pV)({[n0.wrapper]:!0,[n0.fullsize]:!0,[n0.wrapperFixed]:i,[n0.wrapperReveal]:!i}),children:[r,(0,s.jsx)(J.g1,{css:(0,J.pV)({[n0.fullsize]:!0,[n0.preventInteraction]:t&&!i}),children:n})]})})};nZ.displayName="FauxEmbed",nZ.propTypes={background:u().node,preventInteraction:u().bool};var nX=e=>(0,s.jsx)(J.g1,{as:nJ.A,css:n0.fullsize,children:n=>(0,s.jsx)(nK.D6,{children:(0,s.jsx)(nZ,(0,t._)({},e,n))})});let n0={fullsize:"\n min-height: 100%;\n width: 100%;\n ",wrapper:"\n position: relative;\n box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.1);\n border-radius: 10px;\n ",wrapperReveal:"\n cursor: pointer;\n html.no-touch & :not(:hover) > .IconButton {\n opacity: 0;\n }\n ",wrapperFixed:"\n border-radius: 0;\n ",preventInteraction:"\n &,\n & * {\n pointer-events: none !important;\n }\n "};var n1=r("mRC"),n5=r("V9"),n2=r("jK"),n4=r("ic"),n9=r("Ir");function n3(){let e=(0,T._)(["\n display: flex;\n align-items: center;\n height: 40px;\n "]);return n3=function(){return e},e}function n8(){let e=(0,T._)(["\n position: absolute;\n left: 30px;\n right: 30px;\n height: 40px;\n width: calc(100% - 60px);\n display: flex;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n "]);return n8=function(){return e},e}function n6(){let e=(0,T._)(["\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n text-align: center;\n line-height: 1.2em !important;\n "]);return n6=function(){return e},e}function n7(){let e=(0,T._)(["\n display: flex;\n height: 5px;\n padding: 0;\n margin-top: 5px;\n margin-bottom: 0;\n list-style-type: none;\n "]);return n7=function(){return e},e}function re(){let e=(0,T._)(["\n width: 30px;\n height: 5px;\n margin: 0 1px;\n cursor: pointer;\n "]);return re=function(){return e},e}let rn=e=>{let{lesson:n,stepSourceId:r,onChangeStep:t,inverted:i}=e;return(0,s.jsxs)(J.g1,{as:R.Ay,css:rr.container,children:[t&&(0,s.jsx)(ew.A,{onClick:e=>t(null),icon:"x",inverted:i}),(0,s.jsxs)(J.g1,{as:"header",css:rr.header,children:[(0,s.jsx)(J.g1,{as:l.A.H5,css:rr.title,inverted:i,children:n.name}),t&&(0,s.jsx)(o.Ay.Consumer,{children:e=>{let{backgroundColor:o}=e;return(0,s.jsx)(J.g1,{as:"ul",css:rr.nav,children:n.items.map(e=>(0,s.jsx)(J.g1,{as:"li",css:rr.nav_button,style:{backgroundColor:l.A.getColor({inverted:i,backgroundColor:o,emphasis:r===e.source_id?"primary":"tertiary"})},onClick:n=>t(e.source_id)},e.source_id))})}})]})]})};rn.displayName="LessonHeader",rn.propTypes={onChangeStep:u().func};let rr={container:(0,I.AH)(n3()),header:(0,I.AH)(n8()),title:(0,I.AH)(n6()),nav:(0,I.AH)(n7()),nav_button:(0,I.AH)(re())};r("K9");var rt=r("qs"),ri=r("W"),rs=r("Q1"),ro=r("RJf"),rl=r("Tuv");let rc=e=>{let{content:n}=e,{method:r,embed_code:t,external_instructions:i}=n;return(0,s.jsxs)("div",{children:["embed"===r&&(0,s.jsx)(ro.A,{code:n.embed_code,executeScripts:!0}),"assessment_editor"===r&&(0,s.jsx)("div",{}),"assessment_listing"===r&&(0,s.jsx)(rl.A,{html:n.external_instructions,theme:!0,latex:!0})]})};rc.displayName="ContentAssessment";
1let ra=e=>{let{src:n,autoPlay:r=!1,preload:o="metadata",onPlay:l,useDefaultControls:c=!0,className:a}=e,d=(0,x._)(e,["src","autoPlay","preload","onPlay","useDefaultControls","className"]);return(0,s.jsx)("audio",(0,i._)((0,t._)({},d),{className:"AudioPlayer ".concat(a),autoPlay:r,preload:o,onPlay:l,src:n,controls:c}))};ra.displayName="AudioPlayer";let rd=e=>{let{content:n}=e,{method:r,audio_url:t,embed_code:i,audio_embed_code:o,content_embed_code:l,listed_instructions:c}=n;return(0,s.jsxs)("div",{children:["embed"===r&&(0,s.jsx)(ro.A,{code:l||o||i,executeScripts:!0}),"listed"===r&&(0,s.jsx)(rl.A,{html:c,katex:!0,theme:!0}),"upload"===r&&(0,s.jsx)(ra,{src:t})]})};rd.displayName="Audio";let ru=e=>{let{content:n}=e,{task:r,method:t}=n;return(0,s.jsx)("div",{children:"task"===t&&(0,s.jsx)(rl.A,{html:r,interceptLink:!0,katex:!0,theme:!0})})};ru.displayName="ContentCompletion";let rp=e=>{let{content:n}=e,{method:r,listed_instructions:t}=n;return(0,s.jsx)("div",{children:"listed"===r&&(0,s.jsx)(rl.A,{html:t,katex:!0,theme:!0})})};rp.displayName="ContentEvent";let rh=(e,n)=>{let{content:r}=e,{method:t,embed_code:i,reading_text:o,content_embed_code:l,reading_embed_code:c,listed_instructions:a}=r;return(0,s.jsxs)("div",{children:["rt"===t&&(0,s.jsx)(rl.A,{html:o,templateContext:n,interceptLink:!0,theme:!0,latex:!0}),"listed"===t&&(0,s.jsx)(rl.A,{html:a,templateContext:n,interceptLink:!0,theme:!0,latex:!0}),"embed"===t&&(0,s.jsx)(ro.A,{code:l||c||i,executeScripts:!0})]})};rh.displayName="ContentReading";let rx={executeScripts:!0,theme:!0,latex:!0},rm=e=>{let{content:n,completion:r}=e,{method:o,submission_instructions:l,submit_elsewhere_instructions:c}=n;return(0,s.jsxs)("div",{children:["submit_file"===o&&(0,s.jsx)("div",{children:(0,s.jsx)(rl.A,(0,i._)((0,t._)({},rx),{html:l}))}),"submit_elsewhere"===o&&(0,s.jsx)(rl.A,(0,i._)((0,t._)({},rx),{html:c})),"submit_text"===o&&(0,s.jsx)("div",{children:(0,s.jsx)(rl.A,(0,i._)((0,t._)({},rx),{html:l}))})]})};rm.displayName="ContentSubmission";var rf=r("LM");let ry=e=>{let{content:n}=e,{method:r,embed_code:t,video_embed_code:i,content_embed_code:o,listed_instructions:c}=n;return(0,s.jsxs)("div",{children:["embed"===r&&(0,s.jsx)(rf.A,{embed:o||i||t,fitvid:!0}),"listed"===r&&(0,s.jsx)(l.A,{html:c,katex:!0,theme:!0})]})};ry.displayName=ry;var rg=r("LTa");let r_=e=>{let{type:n,content:r}=e;switch(n){case"assessment":return(0,s.jsx)(rc,{content:r});case"audio":return(0,s.jsx)(rd,{content:r});case"completion":return(0,s.jsx)(ru,{content:r});case"event":return(0,s.jsx)(rp,{content:r});case"reading":return(0,s.jsx)(rh,{content:r});case"submission":return(0,s.jsx)(rm,{content:r});case"video":return(0,s.jsx)(ry,{content:r});default:return null}},rj=eR.Ay.select({sm:"10px",md:"20px",lg:"20px 40px"}),rA=e=>{let{type:n,loading:r,error:i,content:o,contentType:c,stepSourceId:a}=e;return r?(0,s.jsx)(rt.A,{}):i?(0,s.jsx)(l.A,{children:"An unexpected error occurred"}):o?(0,s.jsx)(eR.Ay.Consumer,{children:e=>(0,s.jsx)("div",{style:{padding:"video"!==n&&rj({screensize:e})},children:164===c?(0,s.jsx)(rs.A,(0,t._)({},{contextKey:"/".concat(a),mode:"VIEW",templateVariables:{},theme:{}})):(0,s.jsx)(r_,{type:n,content:o})})}):null};rA.propTypes={id:d.PropTypes.number.isRequired,type:d.PropTypes.string.isRequired,contentType:d.PropTypes.number.isRequired,stepSourceId:d.PropTypes.number.isRequired},rA.displayName="ContentContainer";var rb=e=>{if(164===e.contentType)return(0,s.jsx)(rA,(0,i._)((0,t._)({},e),{content:!0}));let n=(0,rg.A)(rA);return(0,s.jsx)(n,(0,t._)({},e))},rv=r("YzN");function rw(){let e=(0,T._)(["\n min-height: 40px;\n "]);return rw=function(){return e},e}var rC=()=>(0,s.jsx)(J.g1,{as:"footer",css:(0,I.AH)(rw())});function rR(){let e=(0,T._)(["\n fragment Step on PathItem {\n id\n name\n verb\n source_id\n description\n content_id\n assignment_type\n item_content_type_id\n }\n"]);return rR=function(){return e},e}let rT=e=>{let{step:n,showContent:r}=e;return(0,s.jsxs)(R.Ay.Primary,{style:{position:"relative"},children:[(0,s.jsx)(rv.A,{step:n}),r&&(0,s.jsx)(rb,{stepId:n.id,stepSourceId:n.source_id,id:n.content_id,type:n.assignment_type,contentType:n.item_content_type_id}),(0,s.jsx)(rC,{})]})};rT.displayName="Step",rT.fragment=(0,ri.Ay)(rR());var rS=r("IC"),rI=r("tY");let rk=e=>n=>{let r=(0,rS.xB)(n.items,n.stepSourceId);return(0,s.jsx)(e,(0,i._)((0,t._)({},n),{step:r,parent:n.items.find(e=>r&&e.id===r.parent_id)}))};rk.displayName="withStep";var rL=y()(rI.A,rk);let rN=e=>{let{error:n,loading:r,step:o,inverted:c}=e,a=(0,x._)(e,["error","loading","step","inverted"]);return r?(0,s.jsx)(rt.A,{inverted:c}):n?(0,s.jsx)(l.A,{children:"An unexpected error occurred"}):o?(0,s.jsx)(rT,(0,i._)((0,t._)({},a),{step:o})):null};
1rN.displayName="StepContainer";var rP=rL(rN);function rH(){let e=(0,T._)(["\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n padding: 5px;\n padding-bottom: 50px;\n height: calc(100vh - 40px);\n "]);return rH=function(){return e},e}function rE(){let e=(0,T._)(["\n overflow: hidden;\n margin: 0 auto;\n width: 100%;\n max-width: 800px;\n border-radius: 10px;\n min-height: calc(100vh - 80px);\n "]);return rE=function(){return e},e}function rB(){let e=(0,T._)(['\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n height: 15px;\n padding: 0 5px;\n overflow: hidden;\n .BackgroundImage {\n position: absolute;\n top: -45px;\n left: 0;\n right: 0;\n height: 100vh;\n &:after {\n content: "";\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.05);\n }\n }\n ']);return rB=function(){return e},e}function rz(){let e=(0,T._)(["\n position: relative;\n margin: 5px auto;\n height: 20px;\n width: 100%;\n max-width: 800px;\n border-top-left-radius: 10px;\n border-top-right-radius: 10px;\n "]);return rz=function(){return e},e}let rO=e=>{let{lesson:n,schoolId:r,pathId:t,stepSourceId:i,showContent:o,onChangeStep:l}=e;return(0,s.jsx)(J.g1,{as:N.Ay,css:rq.wrapper,children:(0,s.jsxs)(J.g1,{as:R.Ay.Primary,css:rq.container,children:[(0,s.jsx)(rP,{stepSourceId:i,pathId:t,schoolId:r,showContent:o},i),!1]})})};rO.displayName="LessonSteps",rO.propTypes={lesson:u().object.isRequired,pathId:u().number.isRequired,schoolId:u().number.isRequired,stepSourceId:u().number.isRequired};let rq={wrapper:(0,I.AH)(rH()),container:(0,I.AH)(rE()),maskContainer:(0,I.AH)(rB()),stepMask:(0,I.AH)(rz())};function rM(){let e=(0,T._)(["\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n "]);return rM=function(){return e},e}function rD(){let e=(0,T._)(["\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.05);\n "]);return rD=function(){return e},e}let rG={type:"spring",stiffness:10,damping:7};function rV(e){let{lesson:n,stepSourceId:r,pathId:t,schoolId:i,background:o,onChangeStep:l,inverted:c}=e,a=(0,n1.d)(0),[d,u]=(0,g.useState)(!1);(0,g.useEffect)(()=>{n&&(a.set(1),u(!0))},[]);let p=(0,n9.A)(n);(0,g.useEffect)(()=>{if(p&&p!==n){let e=(0,n5.i)(a,+!!n,rG);return e.then(()=>u(!0)),()=>e.stop()}},[n,p,a]);let{getRectValue:h}=(0,nK.yC)();function x(e){return h("lesson-animator.".concat(e))}let m={width:x("width")||window.innerWidth,height:x("height")||window.innerHeight},f={top:0,left:0,width:m.width,height:m.height},y=(0,n2.G)(a,[0,.7],[0,1]),_=(0,n2.G)(a,[.5,.8],[f.top,0]),j=(0,n2.G)(a,[.5,.8],[f.left,0]),A=(0,n2.G)(a,[.5,.8],[f.width,m.width]),b=(0,n2.G)(a,[.5,.8],[f.height,m.height]),v=(0,n2.G)(a,[.9,1],[0,1]),w=(0,n2.G)(a,[.8,.9],[0,1]),C=(0,n2.G)(a,[.8,1],[20,0]);return(0,s.jsxs)(n4.P.div,{style:{zIndex:9e3,position:"absolute",overflow:"hidden",pointerEvents:n?"auto":"none",opacity:y,top:_,left:j,width:A,height:b},children:[o||(0,s.jsx)(J.g1,{as:R.Ay.Secondary,css:(0,I.AH)(rM())}),(0,s.jsxs)(J.g1,{css:(0,I.AH)(rD()),children:[(0,s.jsx)(n4.P.div,{style:{opacity:v},children:n&&(0,s.jsx)(rn,{stepSourceId:r,lesson:n,onChangeStep:l,inverted:c})}),n&&n.items.length>0&&(0,s.jsx)(n4.P.div,{style:{position:"relative",opacity:w,y:C},children:(0,s.jsx)(rO,{lesson:n,stepSourceId:r,pathId:t,schoolId:n.context.school_id,onChangeStep:l,showContent:d})})]})]})}rV.displayName="LessonAnimator";let rQ=e=>{let{lesson:n,stepSourceId:r,pathId:t,schoolId:i,background:o,onChangeStep:l,inverted:c}=e;return(0,s.jsx)(rV,{lesson:n,stepSourceId:r,pathId:t,schoolId:i,onChangeStep:l,background:o,inverted:c})};rQ.displayName="Lesson",rQ.propTypes={lesson:u().object,stepSourceId:u().number,pathId:u().number,schoolId:u().number};let rF=e=>n=>{let r=(0,rS.xB)(n.items,n.stepSourceId);return(0,s.jsx)(e,(0,i._)((0,t._)({},n),{step:r,lesson:n.items.find(e=>r&&e.id===r.parent_id)}))};rF.displayName="withStepAndLesson";var rU=y()(rI.A,rF);let rW=e=>{let{step:n,lesson:r,pathId:t,schoolId:i,background:o,onChangeStep:l,inverted:c}=e,d=a()(n,"source_id");return(0,s.jsx)(rQ,{lesson:r,schoolId:i,pathId:t,stepSourceId:d,background:o,onChangeStep:l,inverted:c})};rW.displayName="LessonStepContainer",rW.propTypes={stepSourceId:u().number,pathId:u().number,schoolId:u().number};var r$=rU(rW),rY=r("t4i");let rJ=g.memo(e=>{let[n,r]=(0,g.useState)(),{useScroll:o}=(0,N.C4)();o({onScrollBottom:()=>{let{hasMore:t,loadMore:i}=e;!n&&t&&(r(!0),i().then(()=>{r(!1)}))}});let{items:c,error:a,loading:d,inverted:u}=e,p=(0,x._)(e,["items","error","loading","inverted"]);return d?(0,s.jsx)(rt.A,{inverted:u}):a?(0,s.jsx)(l.A,{children:"An unexpected error occurred"}):c?(0,s.jsx)(R.Ay,{children:(0,s.jsx)(rY.A,(0,i._)((0,t._)({},p),{inverted:u,items:c}))}):null},(e,n)=>n.preventUpdate);rJ.displayName="PathContainer",rJ.propTypes={pathId:u().number.isRequired,schoolId:u().number.isRequired,preventUpdate:u().bool};var rK=(0,rI.A)(rJ);function rZ(){let e=(0,T._)(["\n .ScrollView {\n width: 100%;\n }\n\n .Carousel .Carousel__animated-div {\n margin: 0 auto;\n }\n"]);return rZ=function(){return e},e}function rX(){let e=(0,T._)(["\n margin: 0 10px;\n position: relative;\n overflow: hidden;\n height: ","px;\n width: calc(100% - 20px);\n border-radius: 10px;\n box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.1);\n transform-style: preserve-3d; /* hack for border-radius to apply */\n .Embed iframe {\n max-width: 100%;\n }\n .Embed > div > div {\n padding-top: 380px !important;\n }\n .ScrollView {\n max-height: ","px;\n }\n"]);return rX=function(){return e},e}function r0(){let e=(0,T._)(["\n width: 100%;\n height: 100%;\n iframe {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n width: 100%;\n height: 100%;\n border-radius: 10px;\n transform-style: preserve-3d;\n }\n"]);return r0=function(){return e},e}function r1(){let e=(0,T._)(["\n height: 100%;\n width: 100%;\n"]);return r1=function(){return e},e}function r5(){let e=(0,T._)(["\n position: absolute;\n z-index: 999999;\n ",": 0;\n top: 0;\n width: calc(\n 50% - ","px /\n 2\n );\n height: 100%;\n pointer-events: none;\n background: linear-gradient(\n to ",",\n rgba(255, 255, 255, 0),\
1n ","\n );\n"]);return r5=function(){return e},e}let r2=eR.Ay.select({sm:9/16*450+20,xl:16/9*450+20}),r4=(0,I.Ay)(V)(rZ()),r9=(0,I.Ay)(R.Ay.Tertiary)(rX(),450,450),r3=I.Ay.div(r0()),r8=(0,I.Ay)(S.A)(r1()),r6=I.Ay.div(r5(),e=>e.side,e=>r2({screensize:e.screensize}),e=>e.side,e=>e.fadeColor);function r7(e){let{loading:n,resource:r}=e;if(n)return(0,s.jsx)(r4,{emphasis:"secondary",sidescroll:!0,children:(0,s.jsx)(eR.Ay.Consumer,{children:e=>(0,s.jsx)("div",{style:{width:r2({screensize:e}),margin:"0 auto"},children:(0,s.jsx)(r9,{children:(0,s.jsx)(r8,{})})})})});if(!a()(r,"group.path"))return null;let t=[];return r.trailer_embed_code&&t.push({type:"trailer",id:"foo1"}),t.push({type:"path",id:"foo2"}),r.group.path.previewable_steps.filter(e=>"assessment"!==e.assignment_type&&"submission"!==e.assignment_type).forEach(e=>{t.push({type:"step",id:e.id,step:e})}),(0,s.jsx)(r4,{heading:"Preview whatâs inside this curriculum",emphasis:"secondary",sidescroll:!0,children:(0,s.jsx)(eR.Ay.Consumer,{children:e=>(0,s.jsx)(nY.Ay,{items:t,itemWidth:r2({screensize:e}),renderItem:n=>{let{item:t,index:i}=n;return(0,s.jsx)(r9,{screensize:e,children:"trailer"===t.type?(0,s.jsx)(r3,{dangerouslySetInnerHTML:{__html:r.trailer_embed_code}}):"path"===t.type?(0,s.jsx)(nX,{preventInteraction:!0,background:(0,s.jsx)(n$.A,{resource:r,forceBlur:!0}),children:(0,s.jsx)(rK,{pathId:r.group.path.id,schoolId:r.school.id,inverted:!0})}):"step"===t.type?(0,s.jsx)(nX,{preventInteraction:!0,children:(0,s.jsx)(r$,{background:(0,s.jsx)(n$.A,{resource:r,forceBlur:!0}),stepSourceId:t.step.source_id,pathId:r.group.path.id,schoolId:r.school.id,inverted:!0})}):null})},renderControls:n=>{let{activeIndex:r}=n;return(0,s.jsx)(o.Ay.Consumer,{children:n=>{let{backgroundColor:i}=n;return(0,s.jsxs)("div",{children:[r>0&&(0,s.jsx)(r6,{side:"left",screensize:e,fadeColor:i,children:(0,s.jsx)(nY.M5,{dir:"prev"})}),r<t.length-1&&(0,s.jsx)(r6,{side:"right",screensize:e,fadeColor:i,children:(0,s.jsx)(nY.M5,{dir:"next"})})]})}})},renderFooter:e=>{let{activeItem:n,activeIndex:t}=e;return(0,s.jsx)("footer",{style:{textAlign:"center",marginTop:10},children:"trailer"===n.type?(0,s.jsxs)(l.A.Body,{children:[r.name," Trailer"]}):"path"===n.type?(0,s.jsxs)(l.A.Body,{children:[r.name," Path Preview"]}):"step"===n.type?(0,s.jsxs)(l.A.Body,{children:[n.step.name," Step Preview"]}):null})}})})})}r7.displayName="ResourcePreview",r7.propTypes={loading:u().bool,resource:u().shape({group:u().shape({path:u().shape({id:u().number,previewable_steps:u().array})})})};let te=e=>(0,s.jsx)(w,(0,i._)((0,t._)({},e),{children:e=>{let{loading:n,resource:r}=e;return(0,s.jsx)(r7,{loading:n,resource:r})}}));function tn(){let e=(0,T._)(["\n flex-direction: column;\n align-items: center;\n "]);return tn=function(){return e},e}function tr(){let e=(0,T._)(["\n display: flex;\n align-items: stretch;\n padding: 20px;\n border-radius: 10px;\n ",";\n"]);return tr=function(){return e},e}function tt(){let e=(0,T._)(["\n width: 75px;\n height: 75px;\n "]);return tt=function(){return e},e}function ti(){let e=(0,T._)(["\n flex-shrink: 0;\n width: 150px;\n height: 150px;\n border-radius: 12px;\n ",";\n"]);return ti=function(){return e},e}function ts(){let e=(0,T._)(["\n align-items: center;\n padding-left: 0px;\n padding-top: 20px;\n "]);return ts=function(){return e},e}function to(){let e=(0,T._)(["\n display: flex;\n align-items: flex-start;\n flex-direction: column;\n padding-left: 20px;\n ",";\n .Button {\n margin-top: auto;\n }\n"]);return to=function(){return e},e}function tl(){let e=(0,T._)(["\n margin: 10px 0 !important;\n & > *:first-child {\n margin-top: 0;\n }\n & > *:last-child {\n margin-bottom: 0;\n }\n a {\n color: inherit;\n text-decoration: underline;\n }\n"]);return tl=function(){return e},e}te.displayName="ResourcePreviewContainer",te.propTypes={resourceQueryOptions:u().shape(w.propTypes)};let tc=(0,I.Ay)(R.Ay.Secondary)(tr(),J.$_.max.phone(tn())),ta=(0,I.Ay)(X.A)(ti(),J.$_.max.phone(tt())),td=(0,I.Ay)(R.Ay)(to(),J.$_.max.phone(ts())),tu=(0,I.Ay)(l.A)(tl());function tp(e){let{loading:n,resource:r}=e,t=(0,o.k)();return r&&r.publisher?(0,s.jsx)(V,{heading:"About the Publisher",emphasis:"primary",children:(0,s.jsxs)(tc,{children:[(0,s.jsx)(ta,{src:r.publisher.image}),(0,s.jsxs)(td,{children:[(0,s.jsx)(l.A.H3,{children:r.publisher.name}),r.publisher.website&&(0,s.jsx)(l.A.Body,{children:(0,s.jsx)("a",{target:"_blank",href:r.publisher.website,style:{color:t.primaryBrandColor},children:r.publisher.website})}),(0,s.jsx)(tu,{typography:"body",dangerouslySetInnerHTML:{__html:r.publisher.about}})]})]})}):null}tp.displayName="ResourcePublisher",tp.propTypes={loading:u().bool,resource:u().object};let th=e=>(0,s.jsx)(w,(0,i._)((0,t._)({},e),{children:e=>{let{loading:n,resource:r}=e;return(0,s.jsx)(tp,{loading:n,resource:r})}}));th.displayName="ResourcePublisherContainer",th.propTypes={resourceQueryOptions:u().shape(w.propTypes)};var tx=r("QY"),tm=r("NZ"),tf=r("qF"),ty=r.n(tf);function tg(){let e=(0,T._)(["\n margin: 0;\n padding: 0;\n display: flex;\n list-style-type: none;\n"]);return tg=function(){return e},e}function t_(){let e=(0,T._)(["\n flex-shrink: 0;\n padding-right: ","px;\n &:first-child {\n padding-left: ","px;\n }\n"]);return t_=function(){return e},e}let tj=eR.Ay.select({sm:140,lg:176}),tA=I.Ay.ul(tg()),tb=I.Ay.li(t_(),20,20);function tv(e){let{loading:n,resources:r,browseTo:t}=e;
1return n?(0,s.jsx)(V,{emphasis:"tertiary",sidescroll:!0,children:(0,s.jsx)(eR.Ay.Consumer,{children:e=>(0,s.jsx)(tA,{children:ty()(5).map(n=>(0,s.jsx)(tb,{children:(0,s.jsx)(R.Ay,{style:{width:tj({screensize:e})},children:(0,s.jsx)(tm.A,{loading:!0})})},n))})})}):r.length>0?(0,s.jsx)(V,{heading:"Related Courses",emphasis:"tertiary",sidescroll:!0,children:(0,s.jsx)(eR.Ay.Consumer,{children:e=>(0,s.jsx)(tA,{children:r.slice(0,5).map(n=>(0,s.jsx)(tb,{children:(0,s.jsx)(R.Ay,{style:{width:tj({screensize:e})},children:(0,s.jsx)(tm.A,{course:n,to:t(n)})})},n.id))})})}):null}tv.displayName="ResourceRelated",tv.propTypes={loading:u().bool,resources:u().array,browseTo:u().func.isRequired};let tw=e=>{let{id:n,slug:r,schoolId:t,publisherId:i,browseTo:o}=e,{school:l}=(0,h.RS)();return(0,s.jsx)(tx.A,{schoolId:t,publisherId:i,licenseeSchoolId:l.id,includeSchoolLicense:!!t,userRegistered:{nin:[-1]},licensingMode:nz.rk,first:6,children:e=>{let{loading:t,resources:i=[]}=e;return(0,s.jsx)(tv,{loading:t,browseTo:o,resources:i.filter(e=>e.id!==n&&e.slug!==r)})}})};tw.displayName="ResourceRelatedContainer",tw.propTypes={schoolId:u().number,browseTo:u().func};class tC extends g.Component{componentDidMount(){this.scrollToTop()}componentDidUpdate(e){e.resourceQueryOptions.id!==this.props.resourceQueryOptions.id&&this.scrollToTop()}render(){return(0,s.jsx)(R.Ay,{children:this.props.structure.map(this.renderBlock)})}constructor(...e){super(...e),(0,C._)(this,"scrollToTop",()=>{let e=document.querySelector(".App__primary");e&&(e.scrollTop=0)}),(0,C._)(this,"renderBlock",(e,n)=>{let{resource:r,browseTo:s,onLicense:o,isLicenseContext:l,resourceQueryOptions:c}=this.props;switch(e){case"ResourceHeader":return(0,g.createElement)(nt,(0,i._)((0,t._)({},c),{isLicenseContext:l,onLicense:o,key:n}));case"ResourcePreview":return(0,g.createElement)(te,(0,i._)((0,t._)({},c),{key:n}));case"ResourceDescription":return(0,g.createElement)(Y,(0,i._)((0,t._)({},c),{key:n}));case"ResourceAuthors":return(0,g.createElement)(ev,(0,i._)((0,t._)({},c),{key:n}));case"ResourceOfferings":return(0,g.createElement)(nW,(0,i._)((0,t._)({},c),{isLicenseContext:l,onLicense:o,key:n}));case"ResourceRelated":return(0,g.createElement)(tw,(0,i._)((0,t._)({},c),{publisherId:a()(r,"publisher.id"),browseTo:s,key:n}));case"ResourcePublisher":return(0,g.createElement)(th,(0,i._)((0,t._)({},c),{key:n}));default:return null}})}}tC.propTypes={structure:u().arrayOf(u().oneOf(["ResourceHeader","ResourcePreview","ResourceDescription","ResourceAuthors","ResourcePublisher","ResourceOfferings","ResourceRelated"])).isRequired,onLicense:u().func.isRequired,browseTo:u().func.isRequired};let tR=e=>{let{school:n}=(0,h.RS)(),{id:r,schoolId:c,structure:d,browseTo:u,onLicense:x}=e,m={id:r,schoolId:c,fetchPolicy:"network-only",includePublisher:!0,skipGroupOfferings:!0,includeLicenseOfferings:!0,includeSchoolLicense:!!c,licenseeSchoolId:n.id,onlyLicenseOfferingsFor:"school"},f=c&&c!==n.id;return(0,s.jsx)(w,(0,i._)((0,t._)({},m),{children:e=>{let{error:n,loading:r,resource:t}=e;return(0,s.jsx)(o.Ay.Provider,{emphasis:"primary",value:a()(t,"publisher.theme"),children:(0,s.jsx)(p.Ay,{school:a()(t,"school"),children:n?(0,s.jsx)(l.A,{children:"An unexpected error occurred"}):(0,s.jsx)(tC,{isLicenseContext:f,resourceQueryOptions:m,structure:d,resource:t,browseTo:u,onLicense:x})})})}}))};tR.displayName="ResourceContainer",tR.propTypes={id:u().number.isRequired,schoolId:u().number,structure:u().array.isRequired,browseTo:u().func,onLicense:u().func};var tT=tR},HS(e,n,r){var t=r("cJ");let i={ADD_TAGS:["iframe"],ADD_ATTR:["allow","allowfullscreen","frameborder","referrerpolicy","scrolling"],FORBID_ATTR:["srcdoc"],FORBID_TAGS:["embed","object","script","style"]};r.d(n,{},{P:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.A.sanitize(e)},w:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.A.sanitize(e,i)}})},LM(e,n,r){r.d(n,{A:()=>h});var t=r("PT"),i=r("zc"),s=r.n(i),o=r("dx"),l=r("RJf"),c=r("Cc"),a=r.n(c),d=r("xE"),u=r.n(d);let p=e=>{let n=(0,o.useRef)(null);(0,o.useEffect)(()=>{var r;let t;e.fitvid&&n.current&&(r=n.current,(t=document.querySelectorAll('iframe[src*="player.vimeo.com"],iframe[src*="youtube.com"],iframe[src*="youtube-nocookie.com"],iframe[src*="kickstarter.com"][src*="video.html"],object,embed')).length>
10&&[...t].forEach(e=>{let n=e.parentNode,t=window.getComputedStyle(n)["padding-top"];t&&!(u()(t.match(/\d+/),"[0]")>0)&&a()(r,{ignore:".embed-container, #mediaplayer_wrapper, #media-player, object"})}))},[e.fitvid]);let r=s()("Video",{"Video--embed":e.embed,"Video--fitvid":e.fitvid},e.className);return(0,t.jsx)("div",{ref:n,className:r,children:(0,t.jsx)(l.A,{code:e.embed,executeScripts:!0})})};p.displayName="VideoEmbedded";var h=p}}]); 2//# sourceMappingURL=t.1ab9090a9d.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.