1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4929],{25804:function(e,t,a){a.d(t,{L:function(){return i}});var l=a(73413),o=a(57267);let n=async(e,t)=>{var a,n,i;try{let a=await (0,l.b)({url:"/engagement-api/v1/hrmodule/job/".concat("onlyTrainees"===t?"GetTranieByOrganizationShortName?shortName=".concat(e):"GetJobsByOrganizationShortName?shortName=".concat(e,"&includeTranees=").concat("includeTrainees"===t)),method:"GET"});return null==a?void 0:a.data}catch(t){let e=null!==(i=null==t?void 0:null===(n=t.response)||void 0===n?void 0:null===(a=n.data)||void 0===a?void 0:a.message)&&void 0!==i?i:t;throw o.Z.error("Catalog retrieval failed: ".concat(e)),e}},i=async(e,t)=>{var a,l,o;let i=await n(e,t),r=[...new Set(null==i?void 0:null===(a=i.optionalFilterLocations)||void 0===a?void 0:a.map(e=>null==e?void 0:e.name).filter(e=>e).sort())],s=[...new Set(null==i?void 0:null===(l=i.optionalFilterCategories)||void 0===l?void 0:l.map(e=>null==e?void 0:e.name).filter(e=>e).sort())];return{jobs:null==i?void 0:null===(o=i.jobItems)||void 0===o?void 0:o.map(e=>{var t,a;return{heading:e.name,link:{url:e.advertisementUrl,title:e.name,target:"_blank"},additionalInfo:{date:e.applicationDue,location:e.workPlace},location:null===(t=e.positionLocation)||void 0===t?void 0:t.name,category:null===(a=e.positionCategory)||void 0===a?void 0:a.name}}),locations:r,categories:s}}},84929:function(e,t,a){a.r(t),a.d(t,{JobCatalogPageFeature:function(){return p}});var l=a(85893),o=a(16740),n=a(25623),i=a(25804),r=a(4406),s=a(80305),u=a(95564),d=a(73312),g=a(31873),c=a(21703),v=a(67294);let p=e=>{var t,a,p;let{properties:b,additionalTop:m,additionalPageContent:h}=e,{heading:L,teaser:f,department:x,traineesOption:C,catalogContent:S,alertContent:T,bannerContent:w}=null!=b?b:{},P=(0,o.S)(),k=(0,n.lO)(),[y,j]=(0,v.useState)(null),[A,I]=(0,v.useState)(null),[F,O]=(0,v.useState)(null),[B,N]=(0,v.useState)(null),[E,_]=(0,v.useState)(A),z={properties:{moduleMarginBottom:k.moduleMarginBottom}},R=null==w?void 0:null===(t=w.items)||void 0===t?void 0:t[0],W=null==R?void 0:R.content.properties.fullWidthImage;return(0,v.useEffect)(()=>{(async()=>{let e=await (0,i.L)(x,C);O(e.locations),N(e.categories),I(e.jobs.map(e=>({...e,link:(0,l.jsx)(g.H,{...e.link,target:"_blank"})})))})()},[x,C]),(0,v.useEffect)(()=>{let e=null==y?void 0:y.map(e=>e.value),t=A;(null==e?void 0:e.some(e=>B.includes(e)))&&(t=t.filter(t=>e.includes(t.category))),(null==e?void 0:e.some(e=>F.includes(e)))&&(t=t.filter(t=>e.includes(t.location))),_(t)},[y,B,F,A]),(0,l.jsx)(s.h,{alerts:(null==T?void 0:null===(a=T.items)||void 0===a?void 0:a.length)>0&&(0,l.jsx)(u.K,{alertContent:T}),additionalTop:m,additionalTopSettings:{fullWidth:{hasFullWidthLanguageBar:W,hasFullWidthBanner:W,hasFullWidthHeader:!1}},additionalPageContent:h,heading:L,teaser:f,moduleContainerSettings:z,noItemsMessage:P.getServiceInfo("NoJobs"),filters:(0,l.jsx)(r.u,{filters:[{groupId:"area",label:P.getLabel("Area"),options:F},{groupId:"jobCategory",label:P.getLabel("JobCategory"),options:B}],removeFilter:P.getAction("RemoveFilter"),choosenDropdownFilters:e=>j(e),historicCheckboxLabel:P.getLabel("HistoricalArchive")}),catalogList:E,pageSizeOptions:[10,20],pageSizeAllOption:P.getLabel("All"),pageSizeOptionsDefaultValueIndex:1,paginationErrorText:P.getError("CatalogPagination"),paginationTexts:{totalResultsText:P.getLabel("TotalResults"),showText:P.getAction("Show").toLowerCase(),resultsPerPageText:P.getLabel("ResultsPerPage").toLowerCase(),pageText:P.getLabel("Page"),outOfText:P.getLabel("OutOf").toLowerCase(),pagesText:P.getLabel("Pages").toLowerCase()},paginationAriaLabels:{selectInputAriaLabel:P.getLabel("NumberOfResultsPerPage"),textInputAriaLabel:P.getLabel("CurrentPage"),prevButtonAriaLabel:P.getLabel("PreviousPage"),nextButtonAriaLabel:P.getLabel("NextPage")},topBanner:(null==w?void 0:null===(p=w.items)||void 0===p?void 0:p.length)>0&&(0,l.jsx)(c.k,{bannerContent:w}),catalogContent:null==S?void 0:S.items.map((e,t)=>(0,l.jsx)(d.E,{contentModule:e},t)),loadingText:P.getServiceInfo("FetchingData")})}}}]); 2//# sourceMappingURL=4929.a4f81f0ad6096bf8.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.