1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5377],{77303:function(e,t,r){"use strict";r(67294);var n=r(41120),i=r(12388),o=r(22318),s=r(11163),c=r(12470),a=r(10770),l=r(4234),u=r(85893),d=(0,n.Z)((function(e){return{breadcrumb:{fontFamily:"GothamNarrow-Medium",fontSize:"16px"},breadcrumbIcon:{width:"16.25px",height:"12px"},row:{display:"flex",cursor:"pointer",alignItems:"center"}}}));t.Z=function(e){var t=e.title,r=e.backgroundColor,n=void 0===r?"transparent":r,m=e.route,p=void 0===m?"/":m,h=e.children,b=d(),f=(0,s.useRouter)(),v=f.locale,y=(0,l.$G)().t;return(0,u.jsx)(i.Z,{style:{backgroundColor:n},children:(0,u.jsxs)(c.J,{children:[(0,u.jsx)(i.Z,{pt:4}),(0,u.jsxs)(a.Z,{separator:">",classkey:"breadcrumbs",color:"inherit",children:[(0,u.jsx)("div",{className:b.row,children:(0,u.jsxs)("div",{className:b.row,onClick:function(){t==y("Home")?f.push("/"+v):t==y("Search")?f.back():"/"!==p?f.push(p):f.back()},children:[(0,u.jsx)("img",{src:"/assets/icons/arrow-left-black.svg",className:b.breadcrumbIcon}),(0,u.jsx)(i.Z,{px:1}),(0,u.jsx)(o.Z,{variant:"h4",className:b.breadcrumb,children:t})]})}),h]})]})})}},67858:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSP:function(){return N}});var n=r(29439),i=r(4942),o=r(22318),s=r(12388),c=r(43832),a=r(41749),l=r(41120),u=r(9008),d=r(67294),m=r(95376),p=r(11163),h=r(26793),b=r(77303),f=r(12470),v=r(27135),y=r(85893);function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function j(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach((function(t){(0,i.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var x=(0,l.Z)((function(e){return{root:{display:"flex"},container:{marginTop:e.spacing(5),marginBottom:e.spacing(10)},title:{marginBottom:"60px","& h1":{fontSize:"40px"}},productsContainer:{alignItems:"baseline",justifyContent:"space-evenly",display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(17.5rem, 1fr))",justifyItems:"center"},productTile:{minWidth:"15rem",maxWidth:"20rem"}}})),N=!0;t.default=function(e){var t=e.collectionList,r=e.collectionInfo,i=((0,p.useRouter)(),"collectionSearchOptions"),l=(0,h.$)().t,g=x(),N=["publishDate","Title"],O=function(){var e,t={sortByType:"desc",sortBy:"publishDate"},r=JSON.parse(localStorage.getItem(i));return N.includes(null===(e=r)||void 0===e?void 0:e.sortBy)||(r=t),r||t},w=(0,d.useState)(O().sortBy),S=w[0],Z=(w[1],(0,d.useState)(O().sortByType)),P=Z[0],k=(Z[1],(0,d.useState)("")),_=(k[0],k[1]);(0,d.useEffect)((function(){var e=S||"relevance";_("desc"==P?"-"+e:e),function(){var e={sortByType:P,sortBy:S};localStorage.setItem(i,JSON.stringify(e))}()}),[S,P]),(0,d.useEffect)((function(){if("relevance"!=S){var e=[];"volumeNumber"==S&&(e=C.sort((function(e,t){return(isNaN(e.volumeNumber)?0:e.volumeNumber)-(isNaN(t.volumeNumber)?0:t.volumeNumber)}))),"Title"!=S&&"publishDate"!=S||(e=C.sort(m.dynamicSort(S))),B("asc"==P?e:e.reverse())}else B(T)}),[S,P]);var T=Object.keys(t).map((function(e,r){var n,i,o,s,c,a,u=t[e],d={};d.id=e,d.Title=u.name,d.isbn=null!==(n=null!==(i=u.isbn)&&void 0!==i?i:u.eisbn)&&void 0!==n?n:u.pisbn;var p=m.getProductPublishDate(u,r,l,"mmmm yyyy"),h=p.date;p.isPublished,p.isNew;return d.publishDate=h,d.imageUrl=u.coverImage,d.year=m.getWPYearOnly((null===u||void 0===u||null===(o=u.PublishingDetail)||void 0===o||null===(s=o.CopyrightStatement)||void 0===s?void 0:s.CopyrightYear)||(null===u||void 0===u||null===(c=u.PublishingDetail)||void 0===c||null===(a=c.PublishingDate)||void 0===a?void 0:a.publishDate)),d=j(j({},d),u)})),D=(0,d.useState)(T),C=D[0],B=D[1],I=(Math.ceil(C.length/8),d.useState(0)),E=(0,n.Z)(I,2);E[0],E[1],o.Z,C.length<=8||y.Fragment,m.translateWithCount(l,"x books",C.length),s.Z;return(0,y.jsxs)("div",{children:[(0,y.jsx)(u.default,{children:(0,y.jsx)("title",{children:r.collectionName})}),(0,y.jsx)(b.Z,{title:l("Home")}),(0,y.jsx)(f.J,{children:(0,y.jsx)("section",{className:g.root,children:(0,y.jsxs)(c.Z,{className:g.container,children:[(0,y.jsx)(a.Z,{container:!0,alignItems:"center",className:g.title,children:(0,y.jsx)(a.Z,{item:!0,xs:12,md:8,children:(0,y.jsx)(o.Z,{variant:"h2",component:"h1",children:r.collectionName})})}),(0,y.jsx)(a.Z,{container:!0,className:g.productsContainer,children:null===C||void 0===C?void 0:C.map((function(e,t){return e.packageType="BOOK",(0,y.jsx)("div",{className:g.productTile,children:(0,y.jsx)(v.Z,{product:e,backButtonTitle:r.collectionName})},"prod-".concat(t))}))})]})})})]})}},15444:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/collection/[id]",function(){return r(67858)}])}},function(e){e.O(0,[9533,8191,7135,9774,2888,179],(function(){return t=15444,e(e.s=t);var t}));var t=e.O();_N_E=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.