PageSourceSearch

https://www.ikon-gallery.org/_next/static/chunks/8251-2a301788594ceacf.js

js ikon-gallery.org collected 2026-10-02 04:56:13 UTC 9,585 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8251],{48251:function(e,n,t){t.d(n,{M9:function(){return Z},QG:function(){return A},p$:function(){return S}});var i=t(26042),o=t(7297),r=t(85893),a=t(67294),d=t(11163),c=t(23925),l=t(23279),u=t.n(l),s=t(87182),p=t(96578),v=t(26779),g=t(36202),h=t(12253),m=t(61663),f=t(41168),y=t(25547),T=t(35580),C=t(5301),x=t(80746),I=t(16169);function E(){var e=(0,o.Z)(["\n  width: 100%;\n  overflow: hidden;\n  position: relative;\n  align-self: center;\n  padding-left: 20px;\n  display: flex;\n  flex-direction: column;\n  justify-content: flex-end;\n  ","\n"]);return E=function(){return e},e}function j(){var e=(0,o.Z)(["\n  width: 100%;\n  height: 100%;\n  border: none;\n  flex-shrink: 0;\n  color: ",";\n  vertical-align: top;\n\n  &::placeholder {\n    color: #999 !important;\n  }\n\n  ","\n"]);return j=function(){return e},e}function w(){var e=(0,o.Z)(["\n  position: absolute;\n  top: 50%;\n  right: 0;\n  transform: translateY(-50%);\n  opacity: ",";\n  transition: filter 0.3s, opacity 0.3s;\n\n  & > span {\n    transition: filter 0.3s;\n  }\n  &:active,\n  &:focus-within {\n    & > span {\n      filter: invert(33.33%);\n    }\n  }\n\n  @media (any-pointer: fine) {\n    &:hover {\n      & > span {\n        filter: invert(33.33%);\n      }\n    }\n  }\n\n  ","\n"]);return w=function(){return e},e}var k=c.ZP.div.withConfig({componentId:"sc-3deb3c67-0"})(E(),(function(e){return e.theme.apply("default",(function(n){return"\n        height: ".concat(e.theme.spacePx(n,7),";\n        ").concat(e.theme.textStyle(n,"h3Heading"),";\n      ")}))})),b=(0,c.ZP)(T.Z).withConfig({componentId:"sc-3deb3c67-1"})(j(),(function(e){return e.isError?"#f00":"#000"}),(function(e){return e.theme.apply("default",(function(n){return"\n        ".concat(e.theme.textStyle(n,"h3Heading"),";\n        ")}))})),M=(0,c.ZP)(C.Z).withConfig({componentId:"sc-3deb3c67-2"})(w(),(function(e){return e.active?1:0}),(function(e){return e.theme.apply("default",(function(n){return"\n        ".concat(e.theme.textStyle(n,"h3Heading"),";\n        width: ").concat(e.theme.spacePx(n,7),";\n        height: ").concat(e.theme.spacePx(n,7),";\n        ")}))})),P=["exhibition","event"],Z={type:P,programmeCategoryId:[],resourceMediaTypeId:[],resourceType:[],page:1,dateBegin:"",dateEnd:"",keyword:""},A="/archive/database",B=[{id:"3D",name:"3D Visit"},{id:"audio",name:"Audio"},{id:"documents",name:"Document"},,{id:"images",name:"Image"},{id:"video",name:"Video"}],S=function(e){var n,t,o,c,l,T=e.id,C=e.filterBase,E=void 0===C?A:C,j=e.types,w=void 0===j?P:j,S=e.isFilterOpen,D=e.initiallyOpen,R=e.filterData,Y=e.setFilterData,O=e.filterQuery,q=e.setFilterQuery,F=(e.firstYear,(0,s.K)()),U=(0,d.useRouter)(),_=(0,y.q)(),H=(0,a.useRef)(),K=(0,a.useState)(!1),N=K[0],Q=K[1],V="".concat(_.baseUrl).concat(E),G=function(e){var n,t,i,o,r,a=[];return(null===e||void 0===e||null===(n=e.programmeCategoryId)||void 0===n?void 0:n.length)&&a.push("programmeCategoryId=".concat(e.programmeCategoryId.join(","))),(null===e||void 0===e||null===(t=e.resourceMediaTypeId)||void 0===t?void 0:t.length)&&a.push("resourceMediaTypeId=".concat(e.resourceMediaTypeId.join(","))),(null===e||void 0===e||null===(i=e.resourceType)||void 0===i?void 0:i.length)&&a.push("resourceType=".concat(e.resourceType.join(","))),(null===e||void 0===e?void 0:e.dateBegin)&&a.push("dateBegin=".concat(e.dateBegin,"&dateBeginCompare=gte")),(null===e||void 0===e?void 0:e.dateEnd)&&a.push("dateEnd=".concat(e.dateEnd,"&dateEndCompare=lte")),(null===e||void 0===e||null===(o=e.keyword)||void 0===o?void 0:o.trim().length)>2&&a.push("s=".concat(null===(r=e.keyword)||void 0===r?void 0:r.trim())),a.push("type=".concat(e.type.join(","))),a.push("archived=1"),a.push("order=desc"),a.push("orderby=meta.date_begin.date"),a.push("perPage=24"),a.push("page=".concat(e.page)),"?".concat(a.join("&"))},W=(0,a.useCallback)((function(e){var n=(0,i.Z)({},R);Array.isArray(n.resourceMediaTypeId)&&(n.resourceMediaTypeId.includes("".concat(e))?n.resourceMediaTypeId=n.resourceMediaTypeId.filter((function(n){return"".concat(n)!=="".concat(e)})):n.resourceMediaTypeId.push("".concat(e)),n.page=1,U.push("".concat(V).concat(G(n)),void 0,{shallow:!0}))}),[V,R,U]),L=(0,a.useCallback)((function(e){var n=(0,i.Z)({},R);Array.isArray(n.programmeCategoryId)&&(n.programmeCategoryId.includes("".concat(e))?n.programmeCategoryId=n.programmeCategoryId.filter((function(n){return"".concat(n)!=="".concat(e)})):n.programmeCategoryId.push("".concat(e)),n.page=1,U.push("".concat(V).concat(G(n)),void 0,{shallow:!0}))}),[V,R,U]),$=(0,a.useCallback)((function(e){var n=(0,i.Z)({},R);Array.isArray(n.resourceType)&&(n.resourceType.includes("".concat(e))?n.resourceType=n.resourceType.filter((function(n){return"".concat(n)!=="".concat(e)})):n.resourceType.push("".concat(e)),n.page=1,U.push("".concat(V).concat(G(n)),void 0,{shallow:!0}))}),[V,R,U]),z=(0,a.useCallback)((function(e){var n=(0,i.Z)({},R),t=e.trim();t!==n.keyword&&(n.keyword=t,n.page=1,U.push("".concat(V).concat(G(n)),void 0,{shallow:!0}))}),[V,R,U]),J=u()(z,400);return(0,a.useEffect)((function(){var e=function(){var e,n,t,o=new URLSearchParams(document.location.search),r=(0,i.Z)({},Z),a=null!==(e=o.get("programmeCategoryId"))&&void 0!==e?e:"";a?r.programmeCategoryId=null!==(n=a.split(","))&&void 0!==n?n:[]:r.programmeCategoryId=[];var d,c,l=null!==(t=o.get("resourceMediaTypeId"))&&void 0!==t?t:"";l?r.resourceMediaTypeId=null!==(d=l.split(","))&&void 0!==d?d:[]:r.resourceMediaTypeId=[];var u,s,p=null!==(c=o.get("resourceType"))&&void 0!==c?c:"";p?r.resourceType=null!==(u=p.split(","))&&void 0!==u?u:[]:r.resourceType=[];var v,g,h=null!==(s=o.get("type"))&&void 0!==s?s:"";r.type=h?h.split(","):w,r.keyword=null!==(v=o.get("s"))&&void 0!==v?v:"";var m,f,y=null!==(g=o.get("page"))&&void 0!==g?g:"1";y&&(r.page=parseInt(y)),o.get("dateBegin")&&(r.dateBegin=null!==(m=o.get("dateBegin"))&&void 0!==m?m:""),o.get("dateEnd")&&(r.dateEnd=null!==(f=o.get("dateEnd"))&&void 0!==f?f:""),Y(r),q(G(r))};return""===O&&e(),U.events.on("routeChangeComplete",e),function(){U.events.off("routeChangeComplete",e)}}),[O,U.events,q,Y,w]),(0,r.jsx)(h.Z,{children:(0,r.jsxs)("form",{action:A,method:"GET",onSubmit:function(e){var n,t;e.preventDefault(),J(null===H||void 0===H||null===(n=H.current)||void 0===n||null===(t=n.value)||void 0===t?void 0:t.trim())},children:[(0,r.jsxs)(m.U,{id:T,open:S,role:"form",initiallyOpen:D,children:[(0,r.jsx)(I.d,{id:"listing",children:"skip filters"}),(null===F||void 0===F||null===(n=F.taxonomies)||void 0===n||null===(t=n.programmeCategory)||void 0===t?void 0:t.length)>0&&(0,r.jsxs)(g.q,{addPaddingTop:!0,children:[(0,r.jsx)(g.m,{children:"Programme TYPE"}),["exhibitions","event","events","off-site","international"].reduce((function(e,n){var t,i=null===F||void 0===F||null===(t=F.taxonomies)||void 0===t?void 0:t.programmeCategory.find((function(e){return e.slug===n}));return i&&e.push(i),e}),[]).map((function(e,n){return(0,r.jsx)(v.h,{defaultChecked:Array.isArray(R.programmeCategoryId)&&R.programmeCategoryId.includes("".concat(e.id)),name:"programmeCategoryId",id:"filter-cat-".concat(e.id),value:e.id,label:e.name,onClick:function(){L(e.id)}},"filter-cat-".concat(e.id))}))]}),(null===F||void 0===F||null===(o=F.taxonomies)||void 0===o||null===(c=o.resourceMediaType)||void 0===c?void 0:c.length)>0&&(0,r.jsxs)(g.q,{addPaddingTop:!0,children:[(0,r.jsx)(g.m,{children:"MEDIA TYPE"}),(0,p.w)(null===F||void 0===F||null===(l=F.taxonomies)||void 0===l?void 0:l.resourceMediaType).map((function(e,n){return(0,r.jsx)(v.h,{defaultChecked:Array.isArray(R.resourceMediaTypeId)&&R.resourceMediaTypeId.includes("".concat(e.id)),name:"resourceMediaTypeId",id:"filter-rmt-".concat(e.id),value:e.id,label:e.name,onClick:function(){W(e.id)}},"filter-rmt-".concat(e.id))}))]}),(0,r.jsxs)(g.q,{addPaddingTop:!0,children:[(0,r.jsx)(g.m,{children:"RESOURCE TYPE"}),B.map((function(e,n){return(0,r.jsx)(v.h,{defaultChecked:R.resourceType.includes("".concat(e.id)),name:"resourceType",id:"filter-cat-".concat(e.id),value:e.id,label:e.name,onClick:function(){$(e.id)}},"filter-cat-".concat(e.id))}))]}),(0,r.jsxs)(g.q,{addPaddingTop:!0,children:[(0,r.jsx)(g.m,{children:"DATES BETWEEN"}),(0,r.jsx)(f.c,{firstMonth:0,firstYear:1990,addUntilYears:1,from:R.dateBegin,until:R.dateEnd,onRangeChange:function(e,n){var t,o,r,a,d,c,l=(0,i.Z)({},R);(null===e||void 0===e?void 0:e.getTime())&&(null===n||void 0===n?void 0:n.getTime())?(l.dateBegin=null!==(d=null===(o=null===(t=e.toISOString())||void 0===t?void 0:t.split("T"))||void 0===o?void 0:o[0])&&void 0!==d?d:"",l.dateEnd=null!==(c=null===(a=null===(r=new Date(n.getFullYear(),n.getMonth()+1,0).toISOString())||void 0===r?void 0:r.split("T"))||void 0===a?void 0:a[0])&&void 0!==c?c:""):(l.dateBegin="",l.dateEnd="");l.page=1,U.push("".concat(V).concat(G(l)),void 0,{shallow:!0})}})]})]}),(0,r.jsxs)(g.q,{addPaddingTop:!0,grid:!0,children:[(0,r.jsx)(g.m,{children:"SEARCH FOR"}),(0,r.jsxs)(k,{children:[(0,r.jsx)(b,{placeholder:"KEYWORD",isError:!1,ref:H,defaultValue:R.keyword,onChange:function(){var e,n,t,i,o;(null===(t=null===H||void 0===H||null===(e=H.current)||void 0===e||null===(n=e.value)||void 0===n?void 0:n.trim())||void 0===t?void 0:t.length)>2?Q(!0):Q(!1),J(null===H||void 0===H||null===(i=H.current)||void 0===i||null===(o=i.value)||void 0===o?void 0:o.trim())}}),(0,r.jsx)(M,{"aria-label":"search",active:N,children:(0,r.jsx)(x.K,{type:"arrow",position:"center center",width:"100%",height:"100%"})})]})]})]})})}}}]);
2//# sourceMappingURL=8251-2a301788594ceacf.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.