PageSourceSearch

https://assets-thesaurus.ie.edu/pro-ie-edu/component---src-AccordionElement-js-c9af15afe93f3861c7cb.js

js ie.edu collected 2026-10-01 08:50:23 UTC 11,454 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_griddo_cx=self.webpackChunk_griddo_cx||[]).push([[7198],{38640:function(e,t,l){l.r(t),l.d(t,{default:function(){return R}});var n=l(26322),a=l(70278),i=l(52343),r=l(87855),o=l(82086),c=l(58379),s=l(99054),d=l(37447),m=l(81816),u=l(62423),x=l(32356);const p=["title","relatedPage"];var h=e=>{const{data:t}=e,[{query:l},i]=(0,u.UH)(),{isEditor:r}=(0,x.J5)(),o=(0,x.RI)(t);n.useEffect(()=>{!r&&i({data:t,fields:p})},[t]);const c=r?o:null==l?void 0:l.items;return n.createElement(a.Box,null,c&&Array.isArray(c)?null==c?void 0:c.map((e,t)=>{var l,i;return n.createElement(a.Box,{key:t},n.createElement(m.N_,{linkToURL:(null==e||null===(l=e.relatedPage)||void 0===l?void 0:l.url)||(null==e?void 0:e.url),appearance:"link",internal:!1,newTab:!0,title:"Teacher's detail"},(null==e||null===(i=e.content)||void 0===i?void 0:i.title)||(null==e?void 0:e.title)))}):null)};const g=i.default.div.withConfig({displayName:"StudyPlanSemester__MobileGridContainer",componentId:"sc-lqa7iw-0"})(["padding:0px;"]),E=i.default.div.withConfig({displayName:"StudyPlanSemester__DesktopGridContainer",componentId:"sc-lqa7iw-1"})(["padding:0px;"]),y=i.default.div.withConfig({displayName:"StudyPlanSemester__DesktopGrid",componentId:"sc-lqa7iw-2"})(["margin-top:24px;margin-bottom:24px;display:grid;align-items:center;grid-template-columns:",";> div{padding-right:",";&:last-child{padding-right:0;}}","{> div{padding-right:",";}}"],e=>`35% ${e.showProfessors?"20%":""} 20% ${e.anySyllabus?"12.5% 12.5%":"20%"}`,e=>e.theme.spacing.xxs,e=>e.theme.mq.l,e=>e.theme.spacing.xs),b=i.default.div.withConfig({displayName:"StudyPlanSemester__MobileGrid",componentId:"sc-lqa7iw-3"})(["margin-top:18px;margin-bottom:18px;display:grid;align-items:center;grid-template-columns:30% 70%;> div:first-child{padding-right:",";}"],e=>e.theme.spacing.xxs),f=i.default.div.withConfig({displayName:"StudyPlanSemester__GridItem",componentId:"sc-lqa7iw-4"})(["text-align:",";"],e=>e.right?"right":"left"),w=i.default.div.withConfig({displayName:"StudyPlanSemester__MobileGridItem",componentId:"sc-lqa7iw-5"})(["text-align:left;display:",";align-items:",";"],e=>e.flex&&"flex",e=>e.flex&&"center"),v=i.default.div.withConfig({displayName:"StudyPlanSemester__PDFBox",componentId:"sc-lqa7iw-6"})(["display:flex;align-items:center;"]),S=i.default.hr.withConfig({displayName:"StudyPlanSemester__HeaderHr",componentId:"sc-lqa7iw-7"})(["border:0;height:1px;background-color:rgba(0,0,0,0.3);"]),T=i.default.hr.withConfig({displayName:"StudyPlanSemester__ElmHr",componentId:"sc-lqa7iw-8"})(["border:0;height:1px;background-color:rgba(0,0,0,0.1);"]),C=i.default.div.withConfig({displayName:"StudyPlanSemester__PDFItem",componentId:"sc-lqa7iw-9"})([""]);var _=e=>{const{semTitle:t,subjects:l,showProfessors:i,yearSubtitle:r,showYearDescription:o,yearDescription:s}=e,d=(0,x.Ub)("(min-width: 600px)"),{getNestedTranslation:u}=(0,x.s9)(),p=u("icons.actions.aDownload","Download"),_=u("icons.actions.downloadDocument","Download document"),D=e=>{var t;return e.subjDocumentFile?null==e||null===(t=e.subjDocumentFile)||void 0===t?void 0:t.url:null!=e&&e.subjDocumentUrl?null==e?void 0:e.subjDocumentUrl:""},P=e=>{var t;return(null==e||null===(t=e.subjDocumentFile)||void 0===t?void 0:t.url)||(null==e?void 0:e.subjDocumentUrl)},I=null==l?void 0:l.some(e=>P(e));return n.createElement(a.Box,{py:"xs",pt:{default:"xs",m:r||o&&s?"l":"s"}},n.createElement(a.Box,{py:"xs"},n.createElement(a.Text,{textStyle:"headingxs",color:"text01",style:{borderBottom:"1px solid rgba(0, 0, 0, 0.5)",paddingBottom:"0px"}}
1,t)),d?n.createElement(E,null,n.createElement(y,{showProfessors:i,anySyllabus:I},n.createElement(f,{left:!0},n.createElement(a.Text,{textStyle:"subtitle03",color:"text01"},"Courses")),i&&n.createElement(f,null,n.createElement(a.Text,{textStyle:"subtitle03",color:"text01"},"Professors")),n.createElement(f,null,n.createElement(a.Text,{textStyle:"subtitle03",color:"text01"},"Type")),n.createElement(f,null,n.createElement(a.Text,{textStyle:"subtitle03",color:"text01"},"ECTS")),I&&n.createElement(f,null,n.createElement(a.Text,{textStyle:"subtitle03",color:"text01"},"Syllabus"))),n.createElement(S,null),null==l?void 0:l.map((e,t)=>n.createElement(n.Fragment,{key:t},n.createElement(y,{showProfessors:i,anySyllabus:I},n.createElement(f,null,n.createElement(a.Text,{textStyle:"heading3xs",color:"text01"},e.subjTitle)),i&&n.createElement(f,null,(null==e?void 0:e.subjTeachers)&&n.createElement(h,{data:null==e?void 0:e.subjTeachers})),n.createElement(f,null,e.subjType),n.createElement(f,null,e.subjCredits),P(e)&&n.createElement(f,null,n.createElement(m.N_,{href:D(e),appearance:"link",newTab:!0,title:"PDF",external:!1,internal:!1},n.createElement(v,null,n.createElement(C,null,"PDF"),n.createElement(c.A,{name:"aDownload",title:p,height:"18px",fill:"text01",ml:"xxs",role:"img","aria-label":_}))))),n.createElement(T,null)))):n.createElement(n.Fragment,null,null==l?void 0:l.map((e,t)=>n.createElement(g,{key:t},n.createElement(b,null,n.createElement(w,null,n.createElement(a.Text,{textStyle:"subtitle03",color:"text01"},"Courses")),n.createElement(w,null,n.createElement(a.Text,{textStyle:"heading3xs",color:"text01"},null==e?void 0:e.subjTitle))),i&&n.createElement(b,null,n.createElement(w,null,n.createElement(a.Text,{textStyle:"subtitle03",color:"text01"},"Professors")),n.createElement(w,null,i&&(null==e?void 0:e.subjTeachers)&&n.createElement(h,{data:null==e?void 0:e.subjTeachers}))),n.createElement(b,null,n.createElement(w,null,n.createElement(a.Text,{textStyle:"subtitle03",color:"text01"},"Type")),n.createElement(w,null,e.subjType)),n.createElement(b,null,n.createElement(w,null,n.createElement(a.Text,{textStyle:"subtitle03",color:"text01"},"ECTS")),n.createElement(w,null,e.subjCredits)),I&&n.createElement(b,null,n.createElement(w,{right:!0},n.createElement(a.Text,{textStyle:"subtitle03",color:"text01"},"Syllabus")),P(e)&&n.createElement(w,{right:!0},n.createElement(m.N_,{href:D(e),appearance:"link",newTab:!0,title:"PDF",external:!1,internal:!1},n.createElement(w,{flex:!0},n.createElement(C,null,"PDF"),n.createElement(c.A,{name:"aDownload",title:p,height:"18px",fill:"text01",ml:"xxs",role:"img","aria-label":_}))))),n.createElement(S,null)))))},D=l(64209),P=l(19491);const I=(0,i.default)(u.eI).withConfig({displayName:"StudyPlanYear__GriddoImageExpCustom",componentId:"sc-s6f0hr-0"})(["object-fit:cover;"]);var $=e=>{const{yearSubtitle:t,yearDescription:l,yearImg:i,yearVideo:r,automaticSubtitles:o,semesters:c,showProfessors:s,showYearDescription:d}=e;return n.createElement(a.Box,{py:"m"},t&&n.createElement(a.Box,{pt:"xxs"},n.createElement(a.Text,{textStyle:"headings",color:"text01"},t)),d&&l&&n.createElement(a.Box,{pt:"s"},n.createElement(a.Text,{textStyle:"body",color:"text01"},n.createElement(D.B,{allowAllTypes:!0,source:d&&l}))),(null==i?void 0:i.url)&&!r&&n.createElement(a.Box,{mt:"s",width:{default:"100%",m:"569px",l:"910px"},height:{default:"300px",m:"400px",l:"572px"}},n.createElement(I,{quality:100,image:i,widths:P.Uo,sizes:"(min-width: 600px) 641px, (min-width: 1000px) 910px, 378px",sources:[{media:"(max-width: 699px)",width:"378",height:"300"},{media:"(min-width: 700px)",width:"641",height:"400"},{media:"(min-width: 1215px)",width:"910",height:"572"}]})),r&&n.createElement(a.Box,{pt:"s"},n.createElement(m.do,{url:r,automaticSubtitles:o,ratio:16/9,thumbnail:{file:i&&i},title:{content:"",tag:""},iconAnimation:{scale:!0}})),c&&(null==c?void 0:c.map((e,a)=>n.createElement(_,Object.assign({},e,{key:a,showProfessors:s,yearSubtitle:t,showYearDescription:d,yearDescription:l})))))};const{CardCollection:A,BasicContent:B,IntroTextCard:j,Wysiwyg:k,ScholarshipsDistributor:N,Table:H}=d.A,q=(0,s.w1)({CardCollection:A,EventRow:m.z1,BasicContent:B,BasicCard:m.l3,IntroTextCard:j,Wysiwyg:k,StudyPlanYear:$,ScholarshipsDistributor:N,Table:H});var F=e=>n.createElement(s.uA,Object.assign({libComponents:q},e,{fromAccordion:!0})),M=l(73991);const G=d.A.Module;l(21598);const U={s:"heading2xs",xl:"headingl"},W=(0,i.default)(G).withConfig({displayName:"AccordionElement__ModuleStyled",componentId:"sc-1em
114u7-0"})(["border-bottom:",";"],e=>e.$noBorder?`1px solid ${e.theme.colors.ui05}`:"none"),O=i.default.div.withConfig({displayName:"AccordionElement__Content",componentId:"sc-1em14u7-1"})(["transition:all ","s ease-in-out;max-height:",";opacity:",";overflow:hidden;"],e=>(e.$finalHeight/1800).toFixed(2),e=>e.$active?e.$vHeight+"px":"0px",e=>e.$active?1:0),Y=(0,i.default)(a.Flex).withConfig({displayName:"AccordionElement__BarWrapper",componentId:"sc-1em14u7-2"})(["cursor:pointer;padding:",";border-bottom:",";"],e=>e.$noBorder?"16px 0":"defaultAlt"!==e.$moduleTheme&&e.$innerModule?"16px 32px":"16px 0",e=>e.$noBorder?"none":`1px solid ${e.theme.colors.ui05}`),z=(0,i.default)(c.A).withConfig({displayName:"AccordionElement__IconStyled",componentId:"sc-1em14u7-3"})(["transition:all 0.2s ease;transform:rotateZ(0deg);",";"],e=>e.$setActive?"transform: rotateZ(-180deg)":"transform: rotateZ(0deg)");var R=({title:e,titleSize:t,active:l,label:i,icon:c,elements:s,componentModules:d,innerModule:m,extraProps:p={},noHeaderPadding:h,accordionElementActive:g,onAccordionElementChange:E,bg:y,moduleTheme:b,noBorder:f=!1})=>{const w=s?Object.values(s).filter(e=>!(0,M.bW)(e)):d?Object.values(d).filter(e=>!(0,M.bW)(e)):[],{getNestedTranslation:v}=(0,x.s9)(),S=v("icons.navigation.downArrow","More information below"),T="icons.actions.",C=v(`${T}closeAccordion`,"Collapse more information"),_=v(`${T}openAccordion`,"Display more information"),[D,I]=n.useState(""),[$,A]=n.useState("0px"),[B,j]=n.useState("0px"),k=()=>{const e=""===D?"active":"",t="active"===D?"0px":`${N.current.scrollHeight}`;I(e),A(t),j(N.current.scrollHeight),E&&E(e,t)};(0,r.G4)((0,r.OG)(e=>{var t;A("active"===D?"0px":`${null==N||null===(t=N.current)||void 0===t?void 0:t.scrollHeight}`)})),n.useEffect(()=>{null!=N&&N.current&&(A("active"===D?"0px":`${N.current.scrollHeight}`),j(N.current.scrollHeight))},[s]);const N=n.useRef(null);return n.useEffect(()=>{void 0!==g&&(I(g?"active":""),A(g?`${N.current.scrollHeight}`:"0px"),j(N.current.scrollHeight))},[g]),n.createElement(W,{$noBorder:f,width:"100%",noMaxWidth:!0,bleed:!0,bg:y||"ui01"},n.createElement(G,Object.assign({onClick:()=>k(),onKeyDown:e=>"Enter"===e.key&&k(),tabIndex:0,width:"100%",bleed:(h||m)&&!0,"data-testid":"accordionHeader",bg:y||"ui01"},p),n.createElement(Y,{role:"button","aria-expanded":D?"true":"false",alignItems:"center",$moduleTheme:b,$innerModule:m,$noBorder:f},n.createElement(a.Stack,{hs:"s",alignItems:"center"},(null==c?void 0:c.url)&&n.createElement(a.Box,{width:"48px",height:"48px",minWidth:"48px",minHeight:"48px"},n.createElement(u.eI,{image:c,quality:95,width:"48",height:"48",sizes:"48px",widths:P.Uo})),i&&n.createElement(a.Text,{crop:!0,color:"brand01",textStyle:U[t]||"headingxl"},i),(null==e?void 0:e.content)&&n.createElement(a.Text,{as:e.tag,color:"text01",crop:!0,textStyle:U[t]||"headingl"},n.createElement(o.A,{allowAllTypes:!0,source:e.content}))),n.createElement(z,{name:"downArrow",title:S,height:"48px",minHeight:"48px",minWidth:"48px",ml:"auto",fill:"text01",role:"img","aria-label":D?C:_,$setActive:D}))),n.createElement(O,{ref:N,$active:l?"active":D,$vHeight:$,$finalHeight:B,"data-testid":"accordionContent"},w&&w.map((e,t)=>n.createElement(a.Box,{key:t},n.createElement(F,Object.assign({},e,p,{inAccordion:!0,innerModule:m,previousTheme:b,bg:y||"ui01"}))))))}}}]);

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.