1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1996],{28504:function(e,t,n){"use strict";var r=n(71600);t.Z=void 0;var s=r(n(68671)),a=n(52322),i=(0,s.default)((0,a.jsx)("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"}),"ArrowBack");t.Z=i},76055:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/learning-pathways/organisations/[organisationId]",function(){return n(35264)}])},23835:function(e,t,n){"use strict";var r=n(52322),s=n(67550),a=n(62197);let i=["#951445","#F26299","#FFA138","#F0785B","#3F958F","#33B239","#26608B","#2765E2","#623997","#9832D3","#951445","#BE5B80","#DD759D","#E1A35E","#E5907C","#68A4A0","#6DB370","#8A9AA6","#7DA3EE","#7B609F","#AD71D0"],l=(e,t)=>{let n=(e.charCodeAt(0)+t.charCodeAt(0))%i.length;return i[n]};t.Z=e=>{let{firstName:t,lastName:n,...i}=e,o=l(t[0],n[0]);return(0,r.jsx)(s.Z,{sx:{width:"65px",height:"60px",borderRadius:"2px",backgroundColor:o,display:"flex",justifyContent:"center",alignItems:"center"},...i,children:(0,r.jsxs)(a.Z,{fontSize:32,fontWeight:"bold",color:"white",mb:1,children:[t[0].toUpperCase(),n[0].toUpperCase()]})})}},17448:function(e,t,n){"use strict";var r=n(52322),s=n(2784),a=n(67550),i=n(72841),l=n(62197),o=n(33927),c=n(83249),d=n(38200);t.Z=e=>{let{pathways:t,isLoading:n,isFetchingNextPage:h,hasNextPage:u,fetchNextPage:x,hasResults:p,isFiltered:j,transparent:g}=e,y=(0,s.useRef)(null);return((0,s.useEffect)(()=>{if(!u||!y.current)return;let e=new IntersectionObserver(e=>{e[0].isIntersecting&&u&&!h&&x()},{threshold:.1});return e.observe(y.current),()=>e.disconnect()},[u,h,x]),n)?(0,r.jsx)(a.Z,{display:"flex",justifyContent:"center",py:8,children:(0,r.jsx)(i.Z,{})}):p?(0,r.jsxs)(o.Z,{gap:3,children:[t.map(e=>(0,r.jsx)(d.Z,{pathway:e,transparent:g},e.id)),(0,r.jsx)(a.Z,{ref:y}),u&&(0,r.jsx)(a.Z,{display:"flex",justifyContent:"center",py:2,children:(0,r.jsx)(c.Z,{variant:"outlined",onClick:x,disabled:h,startIcon:h?(0,r.jsx)(i.Z,{size:16}):void 0,children:h?"Loading...":"Load more"})})]}):j?(0,r.jsx)(a.Z,{py:8,textAlign:"center",children:(0,r.jsx)(l.Z,{variant:"body1",color:"text.secondary",children:"No results match your filter criteria. You can adjust your filters to broaden your search and explore more content."})}):(0,r.jsx)(a.Z,{py:8,textAlign:"center",children:(0,r.jsx)(l.Z,{variant:"body1",color:"text.secondary",children:"There are currently no Learning Pathways added."})})}},35264:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return v}});var r=n(52322),s=n(28504),a=n(67550),i=n(83249),l=n(72841),o=n(33927),c=n(62197),d=n(56961),h=n(5632),u=n(33787),x=n(89955),p=n(38471),j=n(23835),g=n(84822),y=e=>{var t;let{name:n,logoImageKey:s,...a}=e;if(s)return(0,r.jsx)(g.Z,{src:(0,p.Jn)(s),alt:n,width:65,height:60,style:{objectFit:"contain",borderRadius:2}});let i=n.trim().split(/\s+/),l=null!==(t=i[0])&&void 0!==t?t:n,o=i.length>1?i[i.length-1]:n;return(0,r.jsx)(j.Z,{firstName:l,lastName:o,...a})},f=n(64304),Z=n(17448),w=n(84116),v=()=>{var e,t;let n=(0,h.useRouter)(),{organisationId:p}=n.query,{data:j,isLoading:g}=(0,w.cZ)(p),{data:v,fetchNextPage:m,hasNextPage:A,isFetchingNextPage:b,isLoading:C}=(0,w.$V)({ownedByOrganisationIds:p?[p]:void 0,sort:"createdAt",direction:"desc"}),E=null!==(e=null==v?void 0:v.pages.flatMap(e=>e.learningPathways))&&void 0!==e?e:[];return(0,r.jsxs)(x.LN,{title:null!==(t=null==j?void 0:j.name)&&void 0!==t?t:"Organisation Pathways",children:[(0,r.jsx)(a.Z,{sx:{px:4,pt:4,mb:2},children:(0,r.jsx)(f.Z,{px:0})}),(0,r.jsxs)(u.xJ,{gap:4,pt:5,children:[(0,r.jsx)(i.Z,{startIcon:(0,r.jsx)(s.Z,{}),onClick:()=>n.push("/learning-pathways"),sx:{mb:1,alignSelf:"flex-start"},children:"Back to all pathways"}),g?(0,r.jsx)(a.Z,{display:"flex",justifyContent:"center",py:4,children:(0,r.jsx)(l.Z,{})}):j?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(o.Z,{direction:"row",gap:2,alignItems:"center",children:[(0,r.jsx)(y,{name:j.name,logoImageKey:j.logoImageKey}),(0,r.jsxs)(o.Z,{children:[(0,r.jsx)(c.Z,{variant:"h5",fontWeight:"bold",children:j.name}),(0,r.jsxs)(c.Z,{variant:"body2",sx:{color:"#A2AAAD"},children:[j.pathwayCount," pathway",1!==j.pathwayCount?"s":""," published"]})]})]}),(0,r.jsx)(d.Z,{})]}):null,(0,r.jsx)(Z.Z,{pathways:E,isLoading:C,isFetchingNextPage:b,hasNextPage:!!A,fetchNextPage:m,hasResults:E.length>0,isFiltered:!1})]})]})}}},function(e){e.O(0,[9782,9525,2742,942,1605,8194,9955,5473,8200,2888,9774,179],function(){return e(e.s=76055)}),_N_E=e.O()}]);
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.