PageSourceSearch

https://assets-thesaurus.ie.edu/pro-ie-edu/template---src-TeachersList-de3d46702bef6d6deed2.js

js ie.edu collected 2026-09-24 08:29:44 UTC 10,695 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_griddo_cx=self.webpackChunk_griddo_cx||[]).push([[2118],{23620:function(e,t,l){l.r(t);var a=l(18134),r=l(26322),n=l(52343),i=l(70278),o=l(32356),s=l(94584),u=l(81816),d=l(37411),c=l(37447),g=l(60218),m=l(64209),p=l(52296);const{Module:f,ListFilters:h,Pagination:b}=c.A,E={unitsFilter:"UNIT",schoolsFilter:"SCHOOLS",pathwaysFilter:"PATHWAYS",subpathwaysExecutiveFilter:"SUBPATHWAYS_EXECUTIVE",programFilter:"PROGRAMS",subjectFilter:"SUBJECT_AREA",genderFilter:"GENDER",regionFilter:"REGION",facultyCategoryFilter:"FACULTY_CATEGORY",academicAreaFilter:"ACADEMIC_AREA",topicFilter:"TOPIC"},y=n.default.ul.withConfig({displayName:"TeachersList__FeaturedCardsList",componentId:"sc-k7yckw-0"})(["display:grid;grid-template-columns:",";grid-column-gap:",";grid-row-gap:",";"],e=>1===e.$featuredTeachersCards||e.$isMobile?"1fr":"1fr 1fr",e=>e.$isSmall?"24px":e.$isMobile?"48px":"64px",e=>e.$cardBackground?e.$isSmall?"24px":e.$isMobile?"48px":"64px":"0px"),v=n.default.ul.withConfig({displayName:"TeachersList__RegularCardsList",componentId:"sc-k7yckw-1"})(["display:grid;grid-template-columns:",";grid-column-gap:",";grid-row-gap:",";"],e=>e.$isSmall?"1fr":e.$isMobile?"1fr 1fr":"1fr 1fr 1fr",e=>e.$isSmall?"24px":e.$isMobile?"48px":"64px",e=>e.$cardBackground?e.$isSmall?"24px":e.$isMobile?"48px":"64px":"0px");t.default=({templateOptions:e,heroSection:t,detail:l,itemsPerPage:n,teachersData:x,featuredTeachers:A,titleForFeaturedTeachers:w,data:S,relatedContent:L,queriedItems:T,unitsLabel:C,schoolsLabel:O,pathwaysLabel:k,subpathwaysExecutiveLabel:I,programsLabel:R,subjectLabel:P,genderLabel:$,regionLabel:B,facultyCategoryLabel:N,academicAreaLabel:F,topicLabel:_,searchbarPlaceholder:U,filtersType:j,showDataAllCards:M,cardBackground:Y,usePersonImageAsBg:H,cardTitleTag:D})=>{var G,q,J,W,Q;const{getNestedTranslation:X}=(0,o.s9)(),V=X("filters.noResultsTextLists","Can’t find what you need? Try refining your search."),z=r.useRef(null),K=r.useRef(null),Z=(0,o.kI)("m"),ee=(0,o.kI)("s"),[{query:te,isLoading:le},ae]=(0,o.jA)(),[re,ne]=r.useState({}),ie="undefined"!=typeof window&&(null===(G=window)||void 0===G||null===(q=G.location)||void 0===q?void 0:q.search),oe=new URLSearchParams(ie||""),se=(()=>{let e=1;if("undefined"!=typeof window){const t=oe.get("page");t&&(e=Number(t))}return e})(),[ue,de]=r.useState(se),[ce,ge]=r.useState([]),[me,pe]=r.useState((()=>{let e=[];for(const[t,l]of oe)if("page"!==t&&"QUERY"!==t){const t=l.split(",").map(e=>Number(e.trim()));e=[].concat((0,a.A)(e),(0,a.A)(t))}return e})()),[fe,he]=r.useState(oe.get("QUERY")||""),[be,Ee]=r.useState(null),[ye,ve]=r.useState(null),[{query:xe,isLoading:Ae,isError:we,msg:Se},Le]=(0,o.UH)(),[{query:Te,isLoading:Ce,isError:Oe,msg:ke},Ie]=(0,o.jA)(),Re=!(!Y||!H),Pe={UNIT:C,SCHOOLS:O,PATHWAYS:k,SUBPATHWAYS_EXECUTIVE:I,PROGRAMS:R,SUBJECT_AREA:P,GENDER:$,REGION:B,FACULTY_CATEGORY:N,ACADEMIC_AREA:F,TOPIC:_},$e=e=>{const t=new Set,l=e=>{if(e)if("number"!=typeof e){if("string"==typeof e){const l=parseInt(e);return void(isNaN(l)||l.toString()!==e||t.add(l))}if(Array.isArray(e))e.forEach(e=>l(e));else if("object"==typeof e){if(void 0!==e.id){const l="string"==typeof e.id?parseInt(e.id):e.id;isNaN(l)||t.add(l)}Object.values(e).forEach(e=>l(e))}}else t.add(e)};return l(e),Array.from(t)},Be=(e,t,l)=>{if(!e)return[];let r=(0,a.A)(e);if(l&&(r=r.filter(e=>{var t;return e.title.toLowerCase().includes(l.toLowerCase())||(null===(t=e.position)||void 0===t?void 0:t.toLowerCase().includes(l.toLowerCase()))})),t&&t.length>0&&re){const e={};Object.keys(re).forEach(l=>{var a;const r=l;e[r]=[],null===(a=re[l].items)||void 0===a||a.forEach(l=>{const a="string"==typeof l.id?parseInt(l.id):l.id;t.map(e=>"string"==typeof e?parseInt(e):e).includes(a)&&e[r].push(a)}),0===e[r].length&&delete e[r]}),r=r.filter(t=>{const l=$e(t);return Object.entries(e).map(([e,t])=>t.some(e=>l.includes(e))).every(e=>!0===e)})}return r},Ne=r.useMemo(()=>{const e="manual"===x.mode?be:ye,t=Be(e,me,fe);return Math.max(1,Math.ceil(t.length/n))},[x.mode,be,ye,me,fe,n]),Fe=(0,o.RI)(S),_e=T||Fe;r.useEffect(()=>{ae({data:{...x,filter:[],related:[],allLanguages:x.allLanguages,order:"title-asc"}}),void 0!==typeof window&&window.scrollTo({top:0,left:0,behavior:"smooth"})},[]);r.useEffect(()=>{if(!le&&te&&"auto"===x.mode){const e={data:{...x,sources:x.sources?x.sources.map(e=>({...e,filters:(0,p._j)([],e.filters,te)})):null},items:999,page:1,relations:"full",filterOperator:"OR",globalOperator:"AN
1D",filterIds:void 0,allLanguages:x.allLanguages,preferenceLanguage:x.preferenceLanguage};Le(e)}},[x,te,x.mode]),r.useEffect(()=>{"manual"===x.mode&&te&&(()=>{if(x&&"manual"===x.mode){const e={data:{...x,sources:null!=x&&x.sources?x.sources.map(e=>{const t=e.filters&&Array.isArray(e.filters)?e.filters.map(e=>"number"==typeof e?{id:e,label:""}:e):[];return{...e,filters:te&&(0,p._j)([],t,te)}}):null},relations:"full",filterOperator:"OR",globalOperator:"AND",filterIds:void 0,allLanguages:x.allLanguages,preferenceLanguage:x.preferenceLanguage};Le(e)}})()},[x,te]);r.useEffect(()=>{var e;const t=[];x.sources&&x.sources.map(e=>{e.filters&&e.filters.map(e=>t.push(e.id))}),Ie({data:{...x,sources:null!=x&&x.sources?null==x||null===(e=x.sources)||void 0===e?void 0:e.map(e=>({...e,filterOperator:"OR",globalOperator:e.globalOperator||"AND"})):null,related:t,order:"title-asc"},groupingCategories:!0})},[x]),r.useEffect(()=>{(()=>{const e="manual"===x.mode?be:ye;if((null==e?void 0:e.length)>0&&Te&&Object.keys(Te).length>0){const t=new Set;e.forEach(e=>{$e(e).forEach(e=>t.add(e))});const l={};Object.keys(Te).forEach(e=>{var a;const r=Te[e],n=null===(a=r.items)||void 0===a?void 0:a.filter(e=>{const l="string"==typeof e.id?parseInt(e.id):e.id;return t.has(l)});n&&n.length>0&&(l[e]={...r,items:n})}),ne(l)}else Te&&ne(Te)})()},[Te,be,ye]),r.useEffect(()=>{"undefined"!=typeof window&&(oe.set("page",String(ue)),window.history.replaceState({},"",`${window.location.pathname}?${oe}`))},[ue]),(0,o.pX)(ue,[K,z]),r.useEffect(()=>{var e;null!=xe&&null!==(e=xe.items)&&void 0!==e&&e.length&&("manual"===x.mode?Ee(xe.items):ve(xe.items))},[xe,x.mode]),r.useEffect(()=>{we&&Se&&console.error(JSON.stringify(Se,null,2)),"manual"!==x.mode&&Oe&&ke&&console.error(JSON.stringify(ke,null,2))},[we,Oe]),r.useEffect(()=>{e&&ge(e.map(e=>E[e]||e))},[null==e?void 0:e.length]),r.useEffect(()=>{Ee(null),ve(null),pe([]),he(""),de(1)},[null==x?void 0:x.mode]);const Ue=r.useMemo(()=>{const e="manual"===x.mode?be:ye,t=Be(e,me,fe);if(t){const e=(ue-1)*n,l=e+n;return t.slice(e,l)}return[]},[be,ye,me,fe,ue,n,x.mode,re]);return r.createElement(g.A,null,r.createElement(i.Box,{id:"TeachersList_Hero"},null==t||null===(J=t.modules)||void 0===J?void 0:J.map((e,t)=>r.createElement(c.B,Object.assign({},e,{key:t})))),l&&r.createElement(f,{bg:"ui02"},r.createElement(i.Box,{mt:"m",mb:null!=ce&&ce.length?"0px":"m"},r.createElement(i.Text,{textStyle:"body",color:"text02",as:"div"},r.createElement(m.o,{allowAllTypes:!0,source:l})))),(null==ce?void 0:ce.length)>0&&!Oe&&!Ce&&re&&r.createElement(i.Box,{bg:"ui02",ref:K},r.createElement(s.A,null,r.createElement(h,{showSearchBar:ce.includes("searchbar"),searchbarPlaceholder:U,filters:ce.filter(e=>{var t,l;return"searchbar"!==e&&(null===(t=re[e])||void 0===t||null===(l=t.items)||void 0===l?void 0:l.length)}),options:re,labels:Pe,onFiltersUpdate:e=>(e=>{e.filter(e=>!me.includes(e)).concat(me.filter(t=>!e.includes(t))).length&&(pe(e),de(1))})(e),onSearchUpdate:e=>(e=>{fe!==e&&(he(e),de(1))})(e),resetPagination:e=>e&&de(1),addAllOption:!0,filtersType:j,results:"manual"===x.mode&&be||"auto"===x.mode&&ye?Be(be||ye,me,fe).length:(null==xe?void 0:xe.totalItems)||0,initialSelected:()=>(()=>{const e={};for(const[t,l]of oe)if("page"!==t&&"QUERY"!==t&&te){const t=l.split(",").map(e=>Number(e.trim()));Object.keys(te).forEach(l=>{var a;if(null!==(a=te[l])&&void 0!==a&&a.items){const a=te[l].items.filter(e=>t.includes("string"==typeof e.id?parseInt(e.id):e.id));a&&a.length&&(e[l]=a)}})}return e})()}))),!Ae&&!le&&"global"!==S.site&&(null!=xe&&null!==(W=xe.items)&&void 0!==W&&W.length||null!=be&&be.length||null!=ye&&ye.length)&&null!=me&&me.length?r.createElement(f,{bg:"ui02",pb:"s",pt:"xxs"},r.createElement(i.Text,{color:"text01",textStyle:"subtitle01","aria-live":"polite"},`${X("templates.results","Results")}: ${"manual"===x.mode&&be||"auto"===x.mode&&ye?Be(be||ye,me,fe).length:(null==xe?void 0:xe.totalItems)||0}`)):null,A&&r.createElement(i.Box,{bg:"ui02",bleed:!0},w&&r.createElement(s.A,{pt:{default:"m",xl:"l"}},r.createElement(i.Text,{textStyle:"headingxl",color:"text01"},w)),0!==(null==_e?void 0:_e.length)&&r.createElement(s.A,{bg:"ui02",py:Re&&"l"},r.createElement(y,{height:"100%",width:"100%",$featuredTeachersCards:null==_e?void 0:_e.length,$isMobile:Z,$isSmall:ee,$cardBackgroun
1d:Y,mb:Y?ee?"24px":Z?"48px":"64px":"0px"},null==_e?void 0:_e.map((e,t)=>{var l,a,n,i;return r.createElement(u.wU,{key:t,featured:!0,cardTitleTag:D,relatedPage:e.relatedPage,image:null===(l=e.content)||void 0===l?void 0:l.image,imageBackground:Y?null===(a=e.content)||void 0===a?void 0:a.imageBackground:null,usePersonImage:Re,name:{content:e.content.title,tag:D||"h3"},linkedin:null!==(n=e.content)&&void 0!==n&&null!==(i=n.linkedin)&&void 0!==i&&i.href?e.content.linkedin:null,position:e.content.position,cardHeight:Re?"418px":"auto",width:"100%",py:"m",bg:"ui02",altbg:!0})})))),(Ae||le)&&r.createElement(i.Flex,{justifyContent:"center",width:"100%",bg:"ui02",py:"s"},r.createElement(d.A,null)),!Ae&&!le&&!we&&Ue.length>0&&r.createElement(i.Box,{bleed:!0,ref:z,bg:"ui02"},r.createElement(s.A,{bg:"ui02",pb:"l",pt:!Y||null!=_e&&_e.length?"0px":ee?"24px":Z?"48px":"64px"},r.createElement(v,{height:"100%",width:"100%",$isMobile:Z,$isSmall:ee,$cardBackground:Y},Ue.map((e,t)=>r.createElement(u.wU,Object.assign({key:t},e,{relatedPage:e.relatedPage||e,cardTitleTag:D,imageBackground:Y?e.imageBackground:null,alignItems:"stretch",usePersonImage:Re,cardHeight:Re?"418px":"auto",name:{content:e.title,tag:D||"h3"},position:M?e.position:null,linkedin:M?e.linkedin:null,bg:"ui02",altbg:!0,py:"m",px:"m",size:ee&&"medium"})))))),!Ae&&!le&&0===Ue.length&&r.createElement(i.Box,{bg:"ui02",bleed:!0},r.createElement(s.A,{bg:"ui02"},r.createElement(i.Text,{my:"l",crop:!0,color:"text01",textStyle:"quote"},V))),!we&&Ne>1&&ue&&r.createElement(b,{totalPages:Ne,activePage:ue,onSetPage:de,disabled:Ae||le,bg:"ui02"}),r.createElement(i.Box,{bg:"ui01",id:"TeachersList_RelatedContent",mt:"l"},null==L||null===(Q=L.modules)||void 0===Q?void 0:Q.map((e,t)=>r.createElement(c.B,Object.assign({},e,{height:"FeaturedAudiovisual"===(null==e?void 0:e.component)?{default:"320px",l:"380px",xl:"570px"}:null,key:t})))))}}}]);

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.