PageSourceSearch

https://www.e-flux.com/_next/static/chunks/8841.7a860da446c8f3f0.js

js e-flux.com collected 2026-10-01 08:32:15 UTC 42,954 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8841],{1388:function(e){var t;t=function(){"use strict";var e={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(i,s,a){var r,n=function(e,i,s){void 0===s&&(s={});var a,r,n,l,o=new Date(e);return(void 0===(a=s)&&(a={}),(l=t[n=i+"|"+(r=a.timeZoneName||"short")])||(l=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:i,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:r}),t[n]=l),l).formatToParts(o)},l=function(t,i){for(var s=n(t,i),r=[],l=0;l<s.length;l+=1){var o=s[l],h=o.type,c=o.value,d=e[h];d>=0&&(r[d]=parseInt(c,10))}var u=r[3],m=r[0]+"-"+r[1]+"-"+r[2]+" "+(24===u?0:u)+":"+r[4]+":"+r[5]+":000",p=+t;return(a.utc(m).valueOf()-(p-=p%1e3))/6e4},o=s.prototype;o.tz=function(e,t){void 0===e&&(e=r);var i=this.utcOffset(),s=this.toDate(),n=s.toLocaleString("en-US",{timeZone:e}),l=Math.round((s-new Date(n))/1e3/60),o=a(n,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(-(15*Math.round(s.getTimezoneOffset()/15))-l,!0);if(t){var h=o.utcOffset();o=o.add(i-h,"minute")}return o.$x.$timezone=e,o},o.offsetName=function(e){var t=this.$x.$timezone||a.tz.guess(),i=n(this.valueOf(),t,{timeZoneName:e}).find(function(e){return"timezonename"===e.type.toLowerCase()});return i&&i.value};var h=o.startOf;o.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return h.call(this,e,t);var i=a(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return h.call(i,e,t).tz(this.$x.$timezone,!0)},a.tz=function(e,t,i){var s=i&&t,n=i||t||r,o=l(+a(),n);if("string"!=typeof e)return a(e).tz(n);var h=function(e,t,i){var s=e-60*t*1e3,a=l(s,i);if(t===a)return[s,t];var r=l(s-=60*(a-t)*1e3,i);return a===r?[s,a]:[e-60*Math.min(a,r)*1e3,Math.max(a,r)]}(a.utc(e,s).valueOf(),o,n),c=h[0],d=h[1],u=a(c).utcOffset(d);return u.$x.$timezone=n,u},a.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},a.tz.setDefault=function(e){r=e}}},e.exports=t()},8558:function(e){var t;t=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(s,a,r){var n=a.prototype;r.utc=function(e){var t={date:e,utc:!0,args:arguments};return new a(t)},n.utc=function(t){var i=r(this.toDate(),{locale:this.$L,utc:!0});return t?i.add(this.utcOffset(),e):i},n.local=function(){return r(this.toDate(),{locale:this.$L,utc:!1})};var l=n.parse;n.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),l.call(this,e)};var o=n.init;n.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else o.call(this)};var h=n.utcOffset;n.utcOffset=function(s,a){var r=this.$utils().u;if(r(s))return this.$u?0:r(this.$offset)?h.call(this):this.$offset;if("string"==typeof s&&null===(s=function(e){void 0===e&&(e="");var s=e.match(t);if(!s)return null;var a=(""+s[0]).match(i)||["-",0,0],r=a[0],n=60*+a[1]+ +a[2];return 0===n?0:"+"===r?n:-n}(s)))return this;var n=16>=Math.abs(s)?60*s:s,l=this;if(a)return l.$offset=n,l.$u=0===s,l;if(0!==s){var o=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(l=this.local().add(n+o,e)).$offset=n,l.$x.$localOffset=o}else l=this.utc();return l};var c=n.format;n.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return c.call(this,t)},n.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},n.isUTC=function(){return!!this.$u},n.toISOString=function(){return this.toDate().toISOString()},n.toString=function(){return this.toDate().toUTCString()};var d=n.toDate;n.toDate=function(e){return"s"===e&&this.$offset?r(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var u=n.diff;n.diff=function(e,t,i){if(e&&this.$u===e.$u)return u.call(this,e,t,i);var s=this.local(),a=r(e).local();return u.call(s,a,t,i)}}},e.exports=t()},25150:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return r}});var s=i(57437),a=i(2265);function r(e){try{var t,i;let[r,n]=(0,a.useState)(!0),l="".concat("https://images-eflux.b-cdn.net/assets","/").concat(e.file.id);"https://backend-api.e-flux-systems.com/images/tools/thumbnail.php?file_name=".concat(e.file.id,"&extension=").concat(null===(i=e.file.type)||void 0===i?void 0:i.substring((null===(t=e.file.type)||void 0===t?void 0:t.indexOf("/"))+1,e.file.type.length),"&w=300&h=300&ht=true");let o={};!e.fill&&(e.file.width&&(o.width=e.file.width),e.file.height&&(o.height=e.file.height));let h="";switch(e.file.type){case"image/png":h=".png";break;case"image/jpeg":h=".jpg";break;case"image/gif":h=".gif";break;case"image/tiff":h=".tif";break;default:console.log(123,e.file.type)}return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("img",{style:e.style,alt:e.alt||"",src:l+h+"?"+(e.dontResize&&(e.width||e.height)?"&".concat(e.width?"width=".concat(e.width):"").
1concat(e.height?"&height=".concat(e.height):"","&modified=").concat(e.file.modified_on):"&modified=".concat(e.file.modified_on))+"".concat(".tif"==h?"&key=system-large-contain":""),className:"lazyload js-lazyload lazyimage lazyloaded js-dont-resize"+(e.dontResize?" js-dont-resize":""),...o})})}catch(e){return(0,s.jsx)(s.Fragment,{})}}},2495:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return P}});var s=i(57437),a=i(55903),r=i(84853),n=i(12133),l=i(58057),o=i(80268),h=i(37042),c=i(26052);class d{static sanitize(e){return(0,c.Wr)(e).filter(e=>e)}static sanitizeIndexList(e){return d.sanitize(e).flatMap(e=>e.split(","))}static extractDates(e){return e.map(e=>e.split(",")).filter(e=>2===e.length&&e[0].match(/^\d{4}-\d{2}-\d{2}$/)&&e[1].match(/^\d{4}-\d{2}-\d{2}$/)?e:null)}static fromSearchParams(e){let t=new d;t.q=e.q||"",t.t=d.sanitizeIndexList(e.t||e["t[]"]),t.y=d.sanitize(e.y||e["y[]"]),t.f=d.sanitize(e.f||e["f[]"]),t.a=d.sanitize(e.a||e["a[]"]),t.r=d.sanitize(e.r||e["r[]"]),t.ap=d.sanitize(e.ap||e["ap[]"]),t.l=d.sanitize(e.l||e["l[]"]),t.c=d.sanitize(e.c||e["c[]"]),t.s=d.sanitize(e.s||e["s[]"]),t.i=d.sanitize(e.i||e["i[]"]),t.p=d.sanitize(e.p||e["p[]"]),t.it=d.sanitize(e.it||e["it[]"]),t.is=d.sanitize(e.is||e["is[]"]),t.cp=d.sanitize(e.cp||e["cp[]"]),t.et=d.sanitize(e.et||e["et[]"]),t.v=d.sanitize(e.v||e["v[]"]),t.cv=d.sanitize(e.cv||e["cv[]"]),t.cl=d.sanitize(e.cl||e["cl[]"]),t.ct=d.sanitize(e.ct||e["ct[]"]),t.cst=d.sanitize(e.cst||e["cst[]"]),t.dg=d.sanitize(e.dg||e["dg[]"]),t.pr=d.sanitize(e.pr||e["pr[]"]),t.ed=d.extractDates(d.sanitize(e.ed||e["ed[]"])),e.id&&"string"==typeof e.id&&(t.id=parseInt(e.id)),t.page=Number(e.page)||1,t.firstdate=e.firstdate,t.lastdate=e.lastdate;let i=e.order;return t.empty=0===Object.keys(t).filter(e=>{let i=t[e];return Array.isArray(i)&&i.length>0}).length,t.order=["relevance","newest","oldest"].includes(i)?i:"relevance",t}static fromURLSearchParams(e){let t=t=>{let i=e.getAll(t);return i.length>0?i:void 0},i=new d;i.q=e.get("q")||"",i.t=d.sanitizeIndexList(t("t")||t("t[]")),i.y=d.sanitize(t("y")||t("y[]")),i.f=d.sanitize(t("f")||t("f[]")),i.a=d.sanitize(t("a")||t("a[]")),i.r=d.sanitize(t("r")||t("r[]")),i.ap=d.sanitize(t("ap")||t("ap[]")),i.l=d.sanitize(t("l")||t("l[]")),i.c=d.sanitize(t("c")||t("c[]")),i.s=d.sanitize(t("s")||t("s[]")),i.i=d.sanitize(t("i")||t("i[]")),i.p=d.sanitize(t("p")||t("p[]")),i.it=d.sanitize(t("it")||t("it[]")),i.is=d.sanitize(t("is")||t("is[]")),i.cp=d.sanitize(t("cp")||t("cp[]")),i.et=d.sanitize(t("et")||t("et[]")),i.v=d.sanitize(t("v")||t("v[]")),i.cv=d.sanitize(t("cv")||t("cv[]")),i.cl=d.sanitize(t("cl")||t("cl[]")),i.ct=d.sanitize(t("ct")||t("ct[]")),i.cst=d.sanitize(t("cst")||t("cst")),i.dg=d.sanitize(t("dg")||t("dg[]")),i.pr=d.sanitize(t("pr")||t("pr[]")),i.ed=d.extractDates(d.sanitize(t("ed")||t("ed[]"))),i.page=Number(e.get("page"))||1;let s=e.get("id");"string"==typeof s&&(i.id=parseInt(s)),i.firstdate=e.get("firstdate"),i.lastdate=e.get("lastdate");let a=e.get("order")||"";return i.empty=0===Object.keys(i).filter(e=>{let t=i[e];return Array.isArray(t)&&t.length>0}).length,i.order=["relevance","newest","oldest"].includes(a)?a:"relevance",i}}var u=i(26498),m=i(77107),p=i(65856),g=i(56286),f=i(33054),_=i(22981);class v{getSlug(){return(0,c.qi)(this.title)}static make(e,t){let i=new v(e);return i.extend(t),i}static makeFromES(e){return new v({id:e.id,_order:e._order,_type:e.item_type,title:e.title_en,previewImage:e.previewImage?_.Z.make(e.previewImage):e.image&&e.image.width&&e.image.height?_.Z.make(e.image):void 0,previewText:e.previewtext_en,editors:e.editors.map(e=>m.Z.makeFromES(e)),contributors:e.allContributors.map(e=>m.Z.makeFromES(e)).sort((e,t)=>e<t?-1:e>t?1:0),allContributors:e.allContributors.map(e=>m.Z.makeFromES(e)),urlslug:e.urlslug,badgetitle:e.badgetitle_en,text:e.text_en})}getUrl(e){return(0,c.sb)(e)+"architecture/"+this.urlslug}extend(e){var t,i,s;this.editors_new&&(this.editors=null===(i=this.editors_new)||void 0===i?void 0:i.map(e=>m.Z.make(e.persons_id))),e&&(this.allContributors=[],this.articles=e,e.forEach(e=>{var t;"Editorial"!==e.title_en&&(null===(t=e.authors_new)||void 0===t||t.forEach(e
1=>{var t;let i=m.Z.make(e.persons_id);null===(t=this.allContributors)||void 0===t||t.push(i)}))})),this.image_new&&this.image_new[0]&&(this.image=this.image_new[0].directus_files_id,!this.previewImage&&this.image&&this.image.width&&this.image.height&&(this.previewImage=_.Z.make(this.image))),this.title=this.title_en,this.tags_arr=null===(t=this.tags_new)||void 0===t?void 0:t.map(e=>e.tags_id),this.tags_arr&&(this.categories=this.tags_arr.filter(e=>(null==e?void 0:e.type)==="category").map(e=>p.Z.fromJson(e)),this.subjects=null!==(s=this.tags_arr.filter(e=>(null==e?void 0:e.type)==="subject").map(e=>p.Z.fromJson(e)))&&void 0!==s?s:void 0),this.copyrightstext=this.copyrightstext_en}toJson(){return JSON.parse(JSON.stringify(this))}format(){var e,t,i;return{id:this.id,_order:this._order,_type:this._type||"",title:this.title||"",previewImage:this.previewImage?this.previewImage.props():void 0,url:this.getUrl(),clients:[],articlesCount:(null===(e=this.articles)||void 0===e?void 0:e.length)||0,previewtext:this.previewText||"",badgetitle:this.badgetitle,editors:(null===(t=this.editors)||void 0===t?void 0:t.map(e=>e.format()))||[],contributors:(null===(i=this.contributors)||void 0===i?void 0:i.map(e=>e.format()))||[]}}constructor(e){Object.assign(this,e),this.text||(this.text=this.text_en)}}var y=i(54714),w=i(48646),x=i(21432),j=i(80764),b=i(72845);class k extends u.Z{static make(e){let t=e.articles_new.map(e=>{var t,i;let s=null===(t=e.journalarticles_id.issues[0])||void 0===t?void 0:t.journalissues_id,a=new T({id:s.id,_type:s._type,title_en:s.title_en,number:s.number}),r=R.make(a,e.journalarticles_id);return"journalarticle"===r._type?(r.source="Journal #".concat(null===(i=r.journal)||void 0===i?void 0:i.number),r.hideShowMore=!0):"architecturearticle"===r._type&&(r.source="Architecture"),r}),i=e.image_new.map(e=>_.Z.make(e.directus_files_id))[0],s=e.image2_new.map(e=>_.Z.make(e.directus_files_id))[0],a=e.tags_new.map(e=>p.Z.fromJson(e.tags_id)),r=[],n=[];a&&a.length>0&&(r=a.filter(e=>"category"===e.type).map(e=>p.Z.fromJson(e)),n=a.filter(e=>"subject"===e.type).map(e=>p.Z.fromJson(e)));let l=t.length,o=t.map(e=>{var t;return null===(t=e.authors_arr)||void 0===t?void 0:t.map(e=>(null==e?void 0:e.displayname)?e.displayname:"".concat(null==e?void 0:e.firstname," ").concat(null==e?void 0:e.lastname)).join(", ")}).join(", ");return new k({id:e.id,_type:e._type,_tag:e._tag,articles:t,author:e.author,image2:s,image:i,tags:a,categories:r,subjects:n,text_en:e.text_en,title_en:e.title_en,articlesCount:l,articlesAuthors:o,date:e.date})}getSlug(){return(0,c.qi)(this.title_en)}getUrl(e){return(0,c.sb)(e)+"readers/"+this.id+"/"+this.getSlug()}static makeFromES(e){return new k({id:e.id,_type:"articlecollection",title_en:e.title_en,text_en:e.text_en,date:e.date,image:e.image?_.Z.make(e.image):void 0,image2:e.image2?_.Z.make(e.image2):void 0,articlesCount:e.articlescount,articlesAuthors:e.articlesauthors,author:e.author})}format(){var e,t;return{id:this.id,_type:this._type,title:this.title_en,url:this.getUrl(),date:(0,b.TT)(this.date),articlesCount:this.articlesCount,author:this.author,articlesAuthors:this.articlesAuthors,image:null===(e=this.image)||void 0===e?void 0:e.props(),image2:null===(t=this.image2)||void 0===t?void 0:t.props()}}constructor(e){if(!e.id||!e._type)throw Error("ArticleCollectionModel: id and _type are required");super(e.id,e._type),Object.assign(this,e),"0000-00-00"===this.date&&(this.date="")}}var S=i(62737),N=i.n(S),z=i(8558),I=i.n(z),Z=i(1388),$=i.n(Z);function C(){let e=(0,w._)(['\n  query getReader {\n    articlecollections(search: "','") {\n      id\n      _type\n      _tag\n      articles_new {\n        journalarticles_id {\n          _tag\n          _type\n          id\n          _owner\n          Pdfpath_new {\n                directus_files_id {\n              modified_on\n\n              height\n              id\n              width\n              description\n              metadata\n              location\n              title\n              type\n            }\n          }\n          authorbio_en\n          conversationid\n          copyrightstext_en\n          emailtext_en\n          headercolor\n          heroimages\n          heroimageszoomable\n          metadescription_en\n          noxlbannerad\n          pdfpath\n          pdftext_en\n          previewimage\n          tags\n          text_en\n          title_en\n          titlehtml_en\n          excerpt_en\n          tags_new {\n            tags_id {\n              title_en\n              type\n              _type\n              id\n            }\n          }\n          authors_new {\n            persons_id {\n              _tag\n              city\n              country\n              displayname\n              firstname\n              gender\n              id\n              lastname\n              portrait\n              role\n              state\n              text_en\n            }\n          }\n          previewimage_new{\n            id\n                directus_files_id {\n              modified_on\n\n              height\n              id\n              width\n              description\n              metadata\n              location\n              title\n              type\n            }\n          }\n          heroimages_new{\n            id\n                directus_files_id {\n              modified_on\n\n              height\n              id\n              width\n              description\n              metadata\n              location\n              title\n              type\n            }\n          }\n          issues {\n            journalissues_id {\n              id\n              _type\n              title_en\n              number\n            }\n          }\n        }\n      }\n      author\n      image2_new {\n            directus_files_id {\n              modified_on\n\n          height\n          id\n          width\n          description\n          metadata\n          location\n          title\n          type\n        }\n      }\n      image_new {\n            directus_files_id {\n              modified_on\n\n          height\n          id\n          width\n          description\n          metadata\n          location\n          title\n          type\n        }\n      }\n      tags_new {\n        tags_id {\n          id\n          type\n          title_en\n        }\n      }\n      text_en\n      title_en\n    }\n  }\n']);return C=function(){return e},e}N().extend(I()),N().extend($());let O=e=>(0,x.Ps)(C(),e);async function U(e){return j.Z.query({query:O(e)}).then(e=>e.data.articlecollections?e.data.articlecollections.map(e=>new k(e)):[])}class R extends u.Z{getSlug(){return(0,c.qi)(this.title_en)}static make(e,t){var i;let s=new R(t),a=null===(i=t.tags_new)||void 0===i?void 0:i.filter(e=>e.tags_id).map(e=>new p.Z(e.tags_id.id,e.tags_id.title_en,e.tags_id.type));return a&&(s.categories=a.filter(e=>"category"==e.type),s.categories_arr=s.categories,s.subjects=a.filter(e=>"subject"==e.type)),e&&s.extend(e),s}async collectReaders(){this.readers=await U(this.id.toString())}static makeFromES(e){var t,i,s,a;let r=T.makeFromES(e.journal),n=e.tags.map(p.Z.makeFromES),l=null!==(s=null===(t=e.authors)||void 0===t?void 0:t.filter((e,t,i)=>i.findIndex(t=>t.id===e.id)===t).map(m.Z.makeFromES))&&void 0!==s?s:[],o=e.previewImage,h=e.previewImage?_.Z.make(e.previewImage):void 0;return o.image&&(h=_.Z.make(o.image)),new R({id:e.id,_type:e.item_type,_tag:e._tag,_order:e._order,title_en:e.title_en,text_en:e.text_en,excerpt_en:e.excerpt_en,date:e.date,journal:r,categories:n.filter(e=>"category"==e.type),categories_arr:n.filter(e=>"category"==e.type),subjects:n.filter(e=>"subject"==e.type),participants:null!==(a=null===(i=e.participants)||void 0===i?void 0:i.map(m.Z.makeFromES))&&void 0!==a?a:[],previewImage:h,authors:l,authors_arr:l,authorshtml_en:e.authorshtml_en})}format(){var e,t,i;return{id:this.id,_type:this._type,title:this.title||"",url:this.getUrl(),date:this.date,excerpt:(0,y.oN)(this.excerpt||"").trim(),text:(0,y.oN)((0,y.KI)((0,y.$G)(this.text||"",500))),previewImage:null===(e=this.previewImage)||void 0===e?void 0:e.props(),journal:this.journal?{number:this.journal.number}:void 0,authors:null!==(i=null===(t=this.authors)||void 0===t?void 0:t.map(e=>e.format()))&&void 0!==i?i:[],authorNames:this.authorNames()}}authorNames(){var e;let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null===(e=this.authorshtml_en)||void 0===e?void 0:e.trim()){let e=(0,y.TR)(this.authorshtml_en.replace(/<br \/>/g,"<br>").replace(/&nbsp;/g," ").replace(/<p>/,"").replace(/<\/p>/,""),[" ","	","\n","\r","\0","\v","<br>"]);return t||(e=e.replace(/ {2,}/g," ").replace(/<br>/g," / ").replace(/\n|\r/g," ")),e}return m.Z.displayNamesList(this.authors)}getUrl(e){var t;return(0,c.sb)(e)+"journal/"+(null===(t=this.journal)||void 0===t?void 0:t.number)+"/"+this.id+"/"+(0,c.qi)(this.title_en)+("drafting"==this._tag?"?preview":"")}extend(e){var t,i,s,a;let r,n;this.journal=e,this.copyrightstext=this.copyrightstext_en,this.authorbio=this.authorbio_en,this.journal&&(this.date=this.journal.date),this.heroImages=null===(t=this.heroimages_new)||void 0===t?void 0:t.map(e=>e.directus_files_id),this.authors_new?(this.authors_arr=null===(s=this.authors_new)||void 0===s?void 0:s.map(e=>m.Z.make(e.persons_id)).filter((e,t,i)=>i.findIndex(t=>t.id===e.id)===t),this.authors=this.authors_arr.filter((e,t,i)=>i.findIndex(t=>t.id===e.id)===t),this.firstAuthor=this.authors_arr?this.authors_arr[0]:null):(this.authors_arr=[],this.firstAuthor=null),this.heroImages&&this.heroImages.length&&this.heroImages&&this.heroImages[0]&&(null===(a=this.heroImages[0])||void 0===a?void 0:a.type)==="video"&&(this.heroVideo=this.heroImages[0]),this.previewimage_new&&(r=this.previewimage_new.map(e=>e.directus_files_id),this.previewImage=_.Z.make(r[0])),this.shareimage_new&&(n=this.shareimage_new.map(e=>e.directus_files_id)),this.shareImage=n&&n[0],"journalarticle"===this._type&&(this.archiveURL=this.getUrl()),this.relatedTitle=this.firstAuthor?"".concat(this.firstAuthor.firstname," ").concat(this.firstAuthor.lastname):this.title_en,this.participants_arr=null===(i=this.participants_new)||void 0===i?void 0:i.map(e=>m.Z.make(e.persons_id)),this.participants=this.participants_arr,this.journal&&this.journal.logoblockimage&&(this.firstLogo={type:"block",image:this.journal.logoblockimage,logoblockwidth:this.journal.logoblockwidth,url:this.journal.logoblockurl})}
1toJson(){return JSON.parse(JSON.stringify(this))}constructor(e){var t;if(null==e||!e.id||!e._type)throw Error("JournalArticle must have an id and a type");super(e.id,e._type),Object.assign(this,e),this.title=this.title||this.title_en,this.text=this.text||this.text_en,this.text=null===(t=this.text)||void 0===t?void 0:t.replaceAll(/style=\"[^"]*\"/g,""),this.text=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=0!==i?"text"+i:"text";if(void 0===e[s]||null===e[s])return"";let a=[],r=e[s].replace(/\[footnote(.*?)\]/g,(e,i)=>{let s=a.length+1;return(a.push({index:s,text:i}),t)?'<sup><a id="_ftnref'.concat(s,'" href="#_ftn').concat(s,'">').concat(s,"</a></sup>"):'<span id="footnote-'.concat(s,'-reference" class="footnote-reference" data-index="').concat(s,'">').concat(s,"</span>")});return e[0!==i?"footnotes"+i:"footnotes"]=a,e[s]=r,r}(this),this.excerpt=this.excerpt||this.excerpt_en}}class T extends u.Z{getSlug(){return(0,c.qi)(this.title_en)}static make(e){let t=new T(e);return t.extend(!0),t}static makeFromES(e){var t,i;return new T({id:e.id,_type:"journalissue",date:e.date,title_en:e.title_en,titlenew_en:e.titlenew_en,number:e.number,pdf:e.pdf,previewImage:(null===(t=e.previewImage)||void 0===t?void 0:t.image)?_.Z.make(null===(i=e.previewImage)||void 0===i?void 0:i.image):void 0,authors:e.authors&&e.authors.sort((e,t)=>e.sort<t.sort?-1:1).map(e=>m.Z.makeFromES(e))})}getUrl(e){return(0,c.sb)(e)+"journal/"+this.number+("drafting"==this._tag?"?preview":"")}getYear(){return new Date(this.date).getFullYear().toString()}extend(){var e,t,i;let s=arguments.length>0&&void 0!==arguments[0]&&arguments[0],a=null===(e=this.pdf_new)||void 0===e?void 0:e.filter(e=>{if(e.directus_files_id)return!0}).map(e=>e?e.directus_files_id.id:"");if(this.pdf=a&&a[0],this.pdftwo=void 0,this.Thumbnail_new&&this.Thumbnail_new[0]&&this.Thumbnail_new[0].directus_files_id&&(this.previewImage=_.Z.make(this.Thumbnail_new[0].directus_files_id)),s){if(new Date().toISOString().split("T")[0],this.articles_arr=null===(t=this.articles)||void 0===t?void 0:t.map(e=>{let t=R.make(this,e.journalarticles_id);return e.sort&&(t._order=e.sort),t}).filter(e=>"drafting"!=e._tag).sort((e,t)=>e._order-t._order),this.authors=[],null===(i=this.articles_arr)||void 0===i||i.map(e=>{var t;e&&(null===(t=e.authors_arr)||void 0===t||t.forEach(e=>{var t,i;!e||(null===(t=this.authors)||void 0===t?void 0:t.some(t=>t.id===e.id))||null===(i=this.authors)||void 0===i||i.push(e)}))}),this.articles_arr&&this.articles_arr.length>0){if(!this.articles_arr[0])return;this.articles_arr[0].previewImage=this.previewImage}this.authors=[...this.authors]}}toJson(){return JSON.parse(JSON.stringify(this))}authorNames(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return m.Z.displayNamesList(this.authors||[],e)}format(){var e,t,i,s;let a=[];return void 0!=this.articles_arr&&this.articles_arr.filter(e=>void 0!=e).map(e=>{if(e){var t,i;a.push({url:"/journal/"+this.number+"/"+e.id,title:e.title_en,authors:null!==(i=null===(t=e.authors_arr)||void 0===t?void 0:t.filter((e,t,i)=>i.findIndex(t=>t.id===e.id)===t).map(e=>null==e?void 0:e.displayname).join(" and "))&&void 0!==i?i:""})}}),this.authors=null===(e=this.authors)||void 0===e?void 0:e.map(e=>new m.Z(e.id,e._type,e.displayname,e.firstname,e.lastname,e.text,e.longbio,e.sort)),{pdf:null!==(i=this.pdf)&&void 0!==i?i:"",_type:this._type,articles_arr:a,number:this.number,id:this.id,date:(0,b.TT)(this.date),title:this.title_en,titlenew:this.titlenew,url:this.getUrl(),previewImage:this.previewImage?{type:this.previewImage.type,id:this.previewImage.id,src:"".concat("https://images-eflux.b-cdn.net/assets","/").concat(this.previewImage.id),width:this.previewImage.width,height:this.previewImage.height,title:this.previewImage.title,modified_on:this.previewImage.modified_on}:void 0,authors:null!==(s=null===(t=this.authors)||void 0===t?void 0:t.map(e=>({id:this.id,firstname:e.firstname,lastname:e.lastname,displayname:e.displayname})))&&void 0!==s?s:[],authorNames:this.authorNames()}}constructor(e){if(!e.id||!e._type)throw Error("JournalModel: id and _type are required");super(e.id,e._type),Object.assign(this,e),e.journalissuetopics&&e.journalissuetopics.length>0&&(this.topics=e.journalissuetopics.map(e=>{let t=e.journalissuetopics_id,i=[];t.previewimage_new&&(i=t.previewimage_new.map(e=>g.Z.make(e.directus_files_id)));let s=[];return t.articles_new&&(s=t.articles_new.map(e=>R.make(this,e.journalarticles_id))),{id:t.id,_owner:t._owner,_type:t._type,_list:t._list,_order:t._order,_tag:t._tag,_search:t._search,_search_valid:t._search_valid,authors:t.authors_en,title:t.title_en,previewimage:i,articles:s,_rev:t._rev}})),this.title=this.title_en,this.titlenew=this.titlenew_en}}class F extends u.Z{getSlug(){return(0,c.qi)(this.title)}getUrl(e){if(!this.permalink)switch(void 0==this._type&&void 0!=this.type&&(this._type=this.t
1ype),this._type){case"efarchitectureeditorials":this.permalink="/architecture/"+this.id+"/"+this.getSlug();break;case"efprojectprojects":this.permalink="/projects/"+this.id+"/"+this.getSlug();break;case"efprogramevents":this.permalink="/events/"+this.id+"/"+this.getSlug();break;case"efnotesnotes":this.permalink="/notes/"+this.id+"/"+this.getSlug();break;case"aeschoolwatch":this.permalink="/education/features/"+this.id+"/"+this.getSlug();break;case"articles":this.permalink=this.archiveURL+this.id+"/"+this.getSlug();break;case"features":case"Reviews":this.permalink="/criticism/"+this.id+"/"+this.getSlug();break;case"efjournalissues":this.permalink="/journal/"+this.number;break;case"eftvitems":case"tvitem":this.permalink="/film/"+this.id+"/"+this.getSlug();break;case"efpodcastsitems":this.permalink="/podcasts/"+this.id+"/"+this.getSlug();break;case"efbooksbooks":this.permalink="/books/"+this.id+"/"+this.getSlug();break;case"efarchitectureprojects":this.permalink="/architecture/"+this.getSlug();break;case"aelegacyannouncements":case"aalegacyannouncements":case"eflegacyannouncements":case"tvannouncement":case"efannouncement":case"arannouncement":case"aaannouncement":case"aeannouncement":case"graduate exhibitions":case"announcements":this.permalink="/announcements/"+this.id+"/"+this.getSlug();break;case"eftvprograms":this.permalink="/film/programs/"+this.id+"/"+this.getSlug();break;case"efcollectionscollections":this.permalink="/readers/"+this.id+"/"+this.getSlug()}return this.permalink}static make(e){var t,i,s,a,r,n,l,o,h;let d,u,_,y,w,x,j,b,k,S;e.tag&&!e._tag&&(d=e.tag),!e.tag&&e._tag&&(d=e._tag);let N="";e.urlslug&&(N=e.urlslug),e.previewimage&&"number"!=typeof e.previewimage&&"string"!=typeof e.previewimage?u=g.Z.make(e.previewimage):e.previewImage&&((null===(a=e.previewImage)||void 0===a?void 0:a.image)?"number"!=typeof e.previewImage.image&&"string"!=typeof e.previewImage.image&&(u=g.Z.make(e.previewImage.image)):"number"!=typeof e.previewImage&&"string"!=typeof e.previewImage&&(u=g.Z.make(e.previewImage))),!u&&(e.topimages&&e.topimages[0]?u=g.Z.make(e.topimages[0]):e.heroCarousel&&e.heroCarousel[0]&&(u=g.Z.make(e.heroCarousel[0]))),e.image&&"number"!=typeof e.image&&"string"!=typeof e.image&&(_=g.Z.make(e.image)),e.image2&&"number"!=typeof e.image2&&"string"!=typeof e.image2&&(y=g.Z.make(e.image2)),e.author&&(w=e.author),e.number&&(x=e.number),e.articlesauthors&&(j=e.articlesauthors),e.articlescount&&(b=e.articlescount),e.subline_en&&(k=e.subline_en),e.supertitle_en&&(S=e.supertitle_en);let z=e.text_en?(0,c.oN)(e.text_en):e.text?(0,c.oN)(e.text):"",I=null!==(r=e.excerpt_en)&&void 0!==r?r:"",Z=e.blurb_en,$=e.project?new v({id:e.project.id,badgetitle:e.project.badgetitle_en,urlslug:e.project.urlslug}):void 0,C=e.journal?new T(e.journal):void 0,O=e.tags&&"string"!=typeof e.tags?e.tags.map(e=>new p.Z(e.id,e.title_en,e.type)):[],U=O.filter(e=>"subject"==e.type),R=[];void 0!=e.images&&"string"!=typeof e.images&&(R=e.images.map(e=>g.Z.make(e)));let D=[];e.heroCarousel&&(D=e.heroCarousel.map(e=>g.Z.make(e)));let E=[];e.heroImages&&e.heroImages[0]&&(E=e.heroImages.map(e=>g.Z.make(e)));let q=e.urls_en,L=e.participants&&"string"!=typeof e.participants?null===(t=e.participants)||void 0===t?void 0:t.map(e=>m.Z.make(e)):[],A=null===(i=e.authors)||void 0===i?void 0:i.map(e=>m.Z.make(e));A&&0!=A.length||(A=null===(n=e.allContributors)||void 0===n?void 0:n.map(e=>m.Z.make(e))),A&&0!=A.length||"efBooksBooks"==e._list||(A=e.participants&&"string"!=typeof e.participants?e.participants.map(e=>m.Z.make(e)):void 0);let M=[];return e.clients&&(M=e.clients.filter(e=>e.id).map(e=>(e.locationid_new=e.location,f.Z.makeFromES(e)))),e.series&&e.series,new F(e.id,null!==(l=e._list)&&void 0!==l?l:e.type,e._list,null===(s=e.list)||void 0===s?void 0:s.toLowerCase(),e._order,d,e._search,e._search_valid,e.client,e.publishdate,e.publishtime,e.materialduedate,e.commentsduedate,e.suggestedtitle,e.suggestedtype,e.startdate,e.enddate,e.time,e.locationid,q,z,e.text_en,e.textafterproof_en,e.rsvp,A,L,O,e.twitterdate,e.twittertime,e.shareimage,e.efannouncement_service,e.arannouncement_service,e.tvannouncement_service,e.aeannouncement_service,e.aeannouncement_artists_en,e.aeannouncement_degrees,e.aaannouncement_service,e.service,e.degrees,e.programs,O.filter(e=>"category"==e.type),e.status,e._rev,e._updated,e.title_en,null!==(o=e.title)&&void 0!==o?o:e.title_en,e.titlesingleline,e.permalink,e.exhibitions,e.events,e.date_range,M,e.clientname,R,e.logos,e.locationRecords,U[0],e.starttime,D,u,U,e.archiveURL,e.date,e.type,e.series,null!==(h=e.shoplinks)&&void 0!==h?h:[],$,C,m.Z.displayNamesList(A||[],0),Z,I,_,y,w,j,b,x,S,
1k,E,e.buybuttonlabel_en,N)}toJson(){return JSON.parse(JSON.stringify(this))}constructor(e,t,i,s,a,r,n,l,o,h,c,d,u,m,p,g,f,_,v,y,w,x,j,b,k,S,N,z,I,Z,$,C,O,U,R,T,F,D,E,q,L,A,M,P,J,Y,H,B,W,G,K,V,X,Q,ee,et,ei,es,ea,er,en,el,eo,eh,ec,ed,eu,em,ep,eg,ef,e_,ev,ey,ew,ex,ej,eb,ek,eS,eN,ez){super(e,eh),this.id=e,this._type=t,this._list=i,this.list=s,this._order=a,this._tag=r,this._search=n,this._search_valid=l,this.client=o,this.publishdate=h,this.publishtime=c,this.materialduedate=d,this.commentsduedate=u,this.suggestedtitle=m,this.suggestedtype=p,this.startdate=g,this.enddate=f,this.time=_,this.locationid=v,this.urls_en=y,this.text=w,this.text_en=x,this.textafterproof=j,this.rsvp=b,this.authors=k,this.participants=S,this.tags=N,this.twitterdate=z,this.twittertime=I,this.shareimage=Z,this.efannouncement_service=$,this.arannouncement_service=C,this.tvannouncement_service=O,this.aeannouncement_service=U,this.aeannouncement_artists=R,this.aeannouncement_degrees=T,this.aaannouncement_service=F,this.service=D,this.degrees=E,this.programs=q,this.categories=L,this.status=A,this._rev=M,this._updated=P,this.title_en=J,this.title=Y,this.titlesingleline=H,this.permalink=B,this.exhibitions=W,this.events=G,this.date_range=K,this.clients=V,this.clientname=X,this.images=Q,this.logos=ee,this.locationRecords=et,this.subject=ei,this.starttime=es,this.heroCarousel=ea,this.previewImage=er,this.subjects=en,this.archiveURL=el,this.date=eo,this.type=eh,this.series=ec,this.shoplinks=ed,this.project=eu,this.journal=em,this.authorNames=ep,this.blurb=eg,this.excerpt=ef,this.image=e_,this.image2=ev,this.author=ey,this.articlesauthors=ew,this.articlescount=ex,this.number=ej,this.supertitle=eb,this.subline=ek,this.heroImages=eS,this.buybuttonlabel_en=eN,this.urlslug=ez,er&&(this.previewimages_new=[{directus_files_id:er}
1]),void 0==this._type&&void 0!=this.type&&(this._type=this.type),this.series_new=ec}}var D=i(2265),E=i(16463);function q(e){var t;let{dropdown:i,searchTypes:a,hideResultCounts:r,changeFiltering:n}=e,l=(0,E.useSearchParams)(),[o,h]=(0,D.useState)(i.items),[c,d]=(0,D.useState)([]),[u,m]=(0,D.useState)(!1);function p(e){let t=new Map;return null==e||e.forEach(e=>{let i=e.title;if(t.has(i)){let s=t.get(i);t.set(i,{...s,...e})}else t.set(i,{...e})}),Array.from(t.values())}function g(e){d(null==e?void 0:e.filter(e=>e.selected))}let f=(0,D.useCallback)(e=>{let t=[];l.forEach((e,s)=>{s.includes(i.name)&&t.push(e)});let s=new URLSearchParams(null==l?void 0:l.toString());return Object.entries(e).map(e=>{let[t,i]=e;return s.set(t,i)}),a.map(e=>s.append("t[]",e)),i.additionalSearchParams&&Object.entries(i.additionalSearchParams).map(e=>{let[t,i]=e;Array.isArray(i)?i.map(e=>s.append(t,e)):s.append(t,i)}),s.toString()},[a,l,i.additionalSearchParams]);return(0,D.useEffect)(()=>{if(!i.list)throw Error("Dropdown list is not defined");fetch("/api/filter?"+f({list:i.list})).then(e=>e.json()).then(e=>{if(h(p(e.items)),e.items&&e.items.length){let t=new URLSearchParams(null!=l?l:void 0);d(p(e.items.filter(e=>{if(e.value)return t.getAll(i.name+"[]").includes(e.value)})))}})},[l]),(0,s.jsxs)("div",{className:"filter-category no-fix",children:[(0,s.jsx)("div",{className:"filter-category__title js-filter-category-toggle",children:i.title}),(0,s.jsxs)("div",{className:"filter-category__dropdown",children:[(0,s.jsx)("div",{className:"filter-category__search",children:(0,s.jsx)("input",{type:"text",name:"filter",className:"filter-category__input js-filter-input",placeholder:"Search",autoComplete:"off"})}),(0,s.jsxs)("div",{className:"filter-items-wrap",children:[i.link&&(0,s.jsx)("ul",{className:"filter-items",style:{marginBottom:"10px"},children:null===(t=i.items)||void 0===t?void 0:t.map((e,t)=>(0,s.jsx)("li",{className:"filter-item",children:(0,s.jsx)("a",{href:e.url||"",children:e.title})},t))}),(0,s.jsx)("ul",{className:"filter-items",style:{marginBottom:"10px"},children:null==o?void 0:o.map((e,t)=>(0,s.jsx)(s.Fragment,{children:!e.selected&&(0,s.jsx)("li",{className:"filter-item",style:{display:"block"},children:(0,s.jsx)("span",{"data-filter":e.value,"data-id":t,"data-name":i.name,className:"filter-item-clickable",onClick:async()=>{o[t].selected=!o[t].selected;let s={};s[i.name+"[]"]=e.value,await n(s),g(o)},children:(0,s.jsx)("span",{className:"filter-item__title",children:e.title})})},t)}))})]})]}),o&&c&&c.length>0&&(0,s.jsx)("div",{className:"filter-category__selected filter-category__selected--visible",children:c.map((e,t)=>e.selected&&(0,s.jsx)("div",{className:"filter-category__selected-item manual",onClick:async()=>{e.selected=!1;let t={};t[i.name+"[]"]=e.value,await n(t),g(o)},"data-id":t,children:e.title},t))})]})}function L(e){let{dropdowns:t,searchTypes:i,withDatePicker:a,notopborder:r,backtotop:n,sortdirection:l,sortAlphabetical:o,allowRelevanceSorting:h,hideResultCounts:c,searchChanged:d}=e,[u,m]=(0,D.useState)({name:""}),p=(0,E.useSearchParams)(),g=(0,E.usePathname)(),f=(0,E.useRouter)(),_=async e=>{let t=new URLSearchParams(p);Object.keys(e).forEach(i=>{if(-1==i.indexOf("[]"))e[i]?t.set(i,e[i]):t.delete(i);else{let s=t.getAll(i);t.delete(i),s.includes(e[i])?s.splice(s.indexOf(e[i]),1):s.push(e[i]),s.forEach(e=>t.append(i,e.toString()))}});let i=t.toString(),s=i?"".concat(g,"?").concat(i):g;s&&f.push(s),await d(s)};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"filter js-for-scrollbar ".concat(r?"filter--no-top-border":""," ").concat(n?"filter--with-bottom":""),children:(0,s.jsxs)("div",{className:"filter__inner",style:{maxHeight:"100vh",overflowY:"auto",overflowX:"hidden",padding:"6px"},children:[t.map(e=>(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(q,{changeFiltering:_,hideResultCounts:c,searchTypes:i,dropdown:e},e.name)})),(l||o)&&(0,s.jsxs)("div",{className:"filter-sort",children:[(0,s.jsx)("div",{className:"filter-sort__title",children:"Sort by:"}),(0,s.jsxs)("div",{className:"filter-sort__items",children:[h&&(0,s.jsxs)("div",{className:"filter-sort__item",children:[(0,s.jsx)("input",{id:"rv1",type:"radio",name:"sort",className:"filter-sort__input",value:"relevance",onClick:()=>_({order:"relevance"}),defaultChecked:(null==p?void 0:p.get("order"))=="relevance"}),(0,s.jsx)("label",{htmlFor:"rv1",className:"filter-sort__label",children:"Most Relevant"})]}),(0,s.jsxs)("div",{className:"filter-sort__item",children:[(0,s.jsx)("input",{id:"rv2",type:"radio",name:"sort",className:"filter-sort__input",value:"newest",onClick:()=>_({order:"newest"}),defaultChecked:(null==p?void 0:p.get("order"))=="newest"||(null==p?void 0:p.get("order"))==void 0}),(0,s.jsx)("label",{htmlFor:"rv2",className:"filter-sort__label",children:"Newest"})]}),(0,s.jsxs)("div",{className:"filter-sort__item",children:[(0,s.jsx)("input",{id:"rv3",type:"radio",name:"sort",className:"filter-sort__input",value:"oldest",onClick:()=>_({order:"oldest"}),defaultChecked:(null==p?void 0:p.get("order"))=="oldest"}),(0,s.jsx)("label",{htmlFor:"rv3",className:"filter-sort__label",children:"Oldest"})]}),o&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"filter-sort__item",children:[(0,s.jsx)("input",{id:"rv4",type:"radio",name:"sort",className:"filter-sort__input js-search-order-changed",value:"alphabeticalup"}),(0,s.jsx)("label",{htmlFor:"rv4",className:"filter-sort__label",children:"AZ"})]}),(0,s.jsxs)("div",{className:"filter-sort__item",children:[(0,s.jsx)("input",{id:"rv5",type:"radio",name:"sort",className:"filter-sort__input js-search-order-changed",value:"alphabeticaldown"}),(0,s.jsx)("label",{htmlFor:"rv5",className:"filter-sort__label",children:"ZA"})]})]})]})]}),n&&(0,s.jsx)("div",{className:"filter__bottom",children:(0,s.jsx)("div",{className:"filter__bottom-backtotop js-backtotop",children:"Back to top"})})]})}),(0,s.jsx)("div",{className:"filter__toggle",children:(0,s.jsxs)("div",{className:"filter__toggle-button js-filter__toggle",children:[(0,s.jsx)("div",{className:"filter__toggle-button-more",children:"Filter"}),(0,s.jsx)("div",{className:"filter__toggle-button-less",children:"Done"})]})})]})}i(90894);var A=i(29550);let M=(0,D.memo)(h.Z);function P(){var e,t,i;let h=(0,E.useSearchParams)(),c=(0,E.useRouter)(),u=new d;h&&(u=d.fromURLSearchParams(h));let[m,p]=(0,D.useState)([]),[g,f]=(0,D.useState)(!1),[_,v]=(0,D.useState)(!1),[y,w]=(0,D.useState)([]),[x,j]=(0,D.useState)(!1),[b,k]=(0,D.useState)(null!==(i=null==h?void 0:h.get("q"))&&void 0!==i?i:""),[S,N]=(0,D.useState)(2),[z,I]=(0,D.useState)({text:"",term:""}),[Z,$]=(0,D.useState)(u.toString),[C,O]=(0,D.useState)(),[U,R]=(0,D.useState)(),T=(0,D.useRef)(null),q=(0,D.useRef)([]),P=(0,D.useRef)(!1),J=(0,D.useRef)(!1),Y=(0,D.useRef)(!1);function H(e){let t;if(P.current)return;let i=!!e;if(i)N(1),t=e,v(!1),J.current=!1,p([]),q.current=[];else{let e=new URLSearchParams(null!=h?h:void 0);e.set("page",(q.current.length+1).toString()),t="search?"+e.toString()}-1==t.indexOf("order")&&(t+=(-1==t.indexOf("?")?"?":"&")+"order=newest"),P.current=!0,(0,D.startTransition)(()=>f(!0)),fetch("/api/"+t).then(e=>e.json()).then(e=>{let t=e.results.map(e=>F.make(e._source));i?q.current=[{page:t}]:t.length&&(q.current=[...q.current,{page:t}]),e.results.length<15&&(J.current=!0),P.current=!1,(0,D.startTransition)(()=>{i?p([{page:t}]):t.length&&p(e=>[...e,{page:t}]),e.results.length<15&&v(!0),(i||t.length)&&(O(e.searchAuthorBio),I(e.searchInfo),R(e.didYouMean)),f(!1)})})}return(0,D.useEffect)(()=>
1{if(!T.current)return;let e=new IntersectionObserver(e=>{let[t]=e;!t.isIntersecting||J.current||P.current||(0,D.startTransition)(()=>N(e=>e+1))},{root:null,rootMargin:"0px",threshold:.1});return e.observe(T.current),()=>e.disconnect()},[m.length,_]),x||0!=y.length||(j(!0),fetch("/api/aggregations").then(e=>e.json()).then(e=>{w(e),j(!1)})),(0,D.useEffect)(()=>{if(Y.current)H();else{var e;Y.current=!0,H("search?"+(null!==(e=null==h?void 0:h.toString())&&void 0!==e?e:""))}},[S,Z]),(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"main {if $marquee} with--marquee{/if}",children:[(0,s.jsx)(a.Z,{}),(0,s.jsx)(r.Z,{overview:!0,border:!0,fixed:!0,buttonsearchmenu:!0,shortanimation:!0,showSearchResults:!0,searchChanged:()=>{N(1),k("");let e=new URLSearchParams(null!=h?h:void 0);e.delete("q"),H("/search?"+e.toString()),c.push("/search?"+e.toString())},searchInfo:z}),(0,s.jsx)(n.default,{searchTerm:b,searchChanged:e=>{N(1);let t=new URLSearchParams;t.set("q",e),H("/search?"+t.toString()),c.push("/search?"+t.toString())},short:!0}),(0,s.jsx)(l.Z,{}),(0,s.jsx)("div",{className:"main__inner",children:(0,s.jsxs)("div",{className:"search",style:{pointerEvents:g?"none":"auto",opacity:g?".7":"1"},children:[(0,s.jsx)(L,{searchChanged:e=>{N(1),H(e)},sortdirection:!0,notopborder:!0,dropdowns:y,searchTypes:["*"],hideResultCounts:!0,allowRelevanceSorting:!1}),(0,s.jsxs)("div",{className:"overview__list",children:[(0,s.jsx)("input",{type:"hidden",id:"search-form-input",value:b}),z&&(0,s.jsxs)("div",{className:"mobile-search-threm",children:[z.text,z.term&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("br",{}),(0,s.jsx)("strong",{children:z.term})]}),C&&(0,s.jsx)(A.Z,{right:!0})]}),(0,s.jsxs)("div",{className:"search-results ",children:[" ",C&&(0,s.jsx)("div",{className:"search-results__bio",children:C}),U&&!(m&&(null===(e=m[0])||void 0===e?void 0:e.page.length))&&_&&(0,s.jsxs)("div",{className:"search-results__did-you-mean",children:["Did you mean"," ",(0,s.jsx)("a",{href:"/search?q=".concat(encodeURIComponent(U)),onClick:e=>{e.preventDefault(),function(e){N(1),k(e);let t=new URLSearchParams(null!=h?h:void 0);t.set("q",e),H("/search?"+t.toString()),c.push("/search?"+t.toString())}(U)},children:U}),"?"]}),m&&(null===(t=m[0])||void 0===t?void 0:t.page.length)?(0,s.jsxs)(s.Fragment,{children:[m.flatMap((e,t)=>e.page.filter(e=>"published"==e._tag||"migrated"==e._tag||"taggedandfixed"==e._tag||"tagged"==e._tag||void 0==e._tag).map((e,i)=>(0,s.jsx)(M,{item:e},"".concat(e.id,"-").concat(t,"-").concat(i)))),!_&&(0,s.jsx)("div",{ref:T,className:"infinite-loading",style:{opacity:g?"1":"0"},children:(0,s.jsx)("div",{className:"infinite-loading__spinner infinite-loading__spinner--active"})})]}):(0,s.jsx)(s.Fragment,{children:_?(0,s.jsx)(s.Fragment,{children:u.s&&u.s.length>0&&u.q&&u.q.trim().length>0?(0,s.jsx)("div",{className:"search-results__no-results",children:(0,s.jsxs)("span",{children:['No results for "',u.q,'" in ',u.s.join(", "),"."," ",(0,s.jsxs)("a",{href:"/search?".concat((()=>{let e=new URLSearchParams(null!=h?h:void 0);return e.delete("s"),e.delete("s[]"),e.toString()})()),onClick:e=>{e.preventDefault(),function(){N(1);let e=new URLSearchParams(null!=h?h:void 0);e.delete("s"),e.delete("s[]"),H("/search?"+e.toString()),c.push("/search?"+e.toString())}()},children:['Search all subjects for "',u.q,'"']}),"."]})}):u.s&&u.s.length>0&&(!u.q||0===u.q.trim().length)?(0,s.jsx)("div",{className:"search-results__no-results",children:(0,s.jsxs)("span",{children:['No subject called "',u.s.join(", "),'".'," ",(0,s.jsxs)("a",{href:"/search?q=".concat(encodeURIComponent(u.s.join(", "))),onClick:e=>{e.preventDefault(),function(e){N(1),k(e);let t=new URLSearchParams;t.set("q",e),H("/search?"+t.toString()),c.push("/search?"+t.toString())}(u.s.join(", "))},children:['Search the site for "',u.s.join(", "),'"']}),"."]})}):(0,s.jsx)("div",{className:"search-results__no-results",children:(0,s.jsxs)("span",{children:["No matches found.",(0,s.jsx)("br",{}),"Try another search term."]})})}):(0,s.jsx)("div",{className:"infinite-loading",style:{opacity:g?"1":"0"},children:(0,s.jsx)("div",{className:"infinite-loading__spinner infinite-loading__spinner--active"})})})]})]})]})}),(0,s.jsx)(o.Z,{mobilespace:!0})]})})}},90894:function(){}}]);

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.