_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[53],{"37f1":function(e,t,n){"use strict";var r=n("rePB"),a=n("q1tI"),i=n.n(a),o=n("UB5X"),c=n.n(o),s=n("gLav"),u=n.n(s),l=n("cZi2"),p=n("u2yT"),f=u.a.div.withConfig({displayName:"styles__NavigationOuterWrapper",componentId:"sc-6nv2lw-0"})(["overflow:hidden;padding-bottom:50px;","{padding-bottom:20px;}"],p.a.MOBILE),m=u.a.div.withConfig({displayName:"styles__NavigationWrapper",componentId:"sc-6nv2lw-1"})(["border-bottom:1px solid ",";box-shadow:0 0 10px 0 #ccc;display:flex;overflow-x:auto;overflow-y:hidden;","{overflow:auto;}","{overflow:auto;}","{overflow:auto;}"],l.o.gray200,p.a.MOBILE,p.a.TABLET,p.a.LAPTOP),h=u.a.p.withConfig({displayName:"styles__Step",componentId:"sc-6nv2lw-2"})(["padding:9px 7px;margin-bottom:-1px;",";cursor:pointer;text-align:center;white-space:nowrap;margin-right:25px;color:",";font-family:",";text-transform:uppercase;font-weight:",";font-size:",";line-height:21px;"],(function(e){return e.isActive&&"border-bottom: 4px solid ".concat(l.o.primary,";")}),(function(e){return e.isActive?l.o.black:l.o.blue900}),l.q.montserrat,(function(e){return e.isActive?700:400}),l.q.size.small),g=n("nOHt"),d=n("OcKJ"),y=i.a.createElement;function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.a=function(e){var t=e.steps,n=e.children,r=Object(g.useRouter)(),a=r.push,o=r.query,s=r.pathname,u=r.asPath,l=function(e){return function(){var t=Object(d.a)(void 0,b(b({},o),{},{step:e.name}),u),n=t.params,r=t.asPath;a({pathname:s,query:n},{pathname:r,query:n},{shallow:!0})}},p=(t||[]).find((function(e){return e.name===o.step}))||t[0];return y(i.a.Fragment,null,y(f,null,y(m,null,t.map((function(e){return y(h,{isActive:e.name===p.name,onClick:l(e),key:e.name},"".concat(e.name," ").concat(c()(e.count)?"("+e.count+")":""))})))),n(p))}},"4WXO":function(e,t,n){"use strict";var r=n("q1tI"),a=n.n(r),i=n("jkUL"),o=n.n(i),c=n("cZi2"),s=n("TLC/"),u=a.a.createElement,l=function(e){var t=e.showPlaceholder,n=e.type,r=e.text,i=e.children;return t?u(c.c,{height:"calc(100vh - 72px - 190px)",justifyContent:"center",alignItems:"center",flexDirection:"column"},u(a.a.Fragment,null,"string"===n&&u(s.a,null,r),"loader"===n&&u(o.a,{visible:!0,type:"ThreeDots",color:c.o.gray150,height:"15",width:"auto"}))):u(a.a.Fragment,null,i)};l.defaultProps={type:"string",text:"No results"},t.a=l},"5kZN":function(e,t,n){"use strict";n.r(t),n.d(t,"__N_SSG",(function(){return se}));var r,a=n("o0o1"),i=n.n(a),o=n("HaE+"),c=n("q1tI"),s=n.n(c),u=n("q08V"),l=n("E+oP"),p=n.n(l),f=n("KQm4"),m=n("Z0cm"),h=n.n(m),g=n("37f1"),d=n("ScUc"),y=n("sEfC"),w=n.n(y),b=n("KJde"),O=n.n(b),x=n("gLav"),v=n.n(x),j=n("cZi2"),_=v.a.p.withConfig({displayName:"styles__Title",componentId:"sc-1g4tejs-0"})(["color:",";font-family:",";font-weight:600;font-size:14px;line-height:20px;display:flex;align-items:center;"],j.o.blue900,j.q.montserrat),S=v.a.p.withConfig({displayName:"styles__Location",componentId:"sc-1g4tejs-1"})(["color:",";font-family:",";font-size:14px;line-height:21px;margin-right:5px;"],j.o.blue900,j.q.openSans),k=v.a.div.withConfig({displayName:"styles__Text",componentId:"sc-1g4tejs-2"})(["color:",";font-family:",";font-size:14px;line-height:21px;"],j.o.gray600,j.q.openSans),E=(v.a.div.withConfig({displayName:"styles__ImgWrapper",componentId:"sc-1g4tejs-3"})(["position:relative;background-color:",";display:flex;justify-content:center;align-items:center;min-width:140px;width:140px;height:140px;"],j.o.gray180),n("00x5")),I=n("V11O"),q=s.a.createElement,C=function(e){var t=e.onCardClick,n=e.logo,r=e.name,a=e.description,i=e.location;return q(j.c,{onClick:t,cursor:"pointer",alignItems:"unset"},q(I.a,{logo:n,name:r}),q(j.c,{margin:"0 0 0 25px",flexDirection:"column",alignItems:"flex-start"},!p()(i)&&q(S,null,i.name),q(_,null,r),q(O.a,{text:Object(E.a)(a||""),maxLine:"3",ellipsis:"...",trimRight:!0,basedOn:"letters",component:k})))},N=n("pKld"),P=n("4WXO"),T=n("gWjb"),L=n("6AvA"),A=n("nOHt"),F=n("l7C+"),D=n("TLC/"),z=s.a.createElement,R=Object(c.memo)((function(){var e=Object(A.useRouter)(),t=Object(L.p)(),n=t.getOrganizations,r=t.getOrganizationsCount,a=Object(L.q)().urlToViewOrganization,u=Object(c.useState)(!0),l=u[0],f=u[1],m=Object(c.useState)(0),h=m[0],g=m[1],d=Object(c.useState)([]),y=d[0],b=d[1],O=Object(c.useCallback)(w()(function(){var e=Object(o.a)(i.a.mark((function e(t){var a,o,c,s,u;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.text,o=t.start,f(!0),c="_limit=10&_sort=name:ASC",a&&(c+="&name_contains=".concat(a)),o&&(c+="&_start=".concat(o)),e.next=7,n(c);case 7:return s=e.sent,e.next=10,r(c);case 10:u=e.sent,b(s),g(u),f(!1);case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),300),[]);return Object(c.useEffect)((function(){var t=e.query._start?e.query._start:0,n=e.query.search?e.query.search:"";O({start:t,text:n})}),[]),Object(c.useEffect)((function(){var t=e.query._start?e.query._start:0,n=e.query.search?e.query.search:"";O({start:t,text:n})}),[e.query]),z(s.a.Fragment,null,!l&&h>0&&z(F.a,null,z("b",null,h)," result",h>1&&"s"),z(P.a,{showPlaceholder:!l&&p()(y)},l&&z(j.c,{width:"100%",justifyContent:"center",height:"200px"},z(D.a,null,"Loading...")),!l&&y.map((function(e){return z(c.Fragment,{key:e.id},z(j.m,{height:"40px"}),z(T.a,a(e.id.toString()),z(C,e)))})),z(j.c,{justifyContent:"center",margin:"20px 0 0 0"},z(N.a,{totalCount:h,marginPagesDisplayed:1,pageRangeDisplayed:3}))))})),V=n("Y+p1"),Z=n.n(V),B=n("mwIZ"),W=n.n(B),H=v.a.div.withConfig({displayName:"styles__Wrapper",componentId:"bupcy-0"})(["position:relative;cursor:pointer;display:flex;"]),U=v.a.p.withConfig({displayName:"styles__Title",componentId:"bupcy-1"})(["color:",";font-family:",";font-weight:600;font-size:14px;line-height:20px;display:flex;align-items:center;"],j.o.blue900,j.q.montserrat),G=v.a.div.withConfig({displayName:"styles__Text",componentId:"bupcy-2"})(["color:",";font-family:",";font-size:14px;line-height:21px;"],j.o.gray600,j.q.openSans),J=s.a.createElement,K=function(e){var t=e.name,n=e.description;return J(H,null,J(j.c,{margin:"0 0 0 25px",flexDirection:"column",alignItems:"flex-start"},J(U,null,t),J(O.a,{text:Object(E.a)(n||""),maxLine:"3",ellipsis:"...",trimRight:!0,basedOn:"letters",component:G})))},X=s.a.createElement,M=Object(c.memo)((function(e){var t=e.framework,n=Object(A.useRouter)(),r=Object(L.q)().urlToViewFrameworkElement,a=Object(L.h)(),u=a.getFrameworkElements,l=a.getFrameworkElementsCount,f=Object(c.useState)(!0),m=f[0],h=f[1],g=Object(c.useState)(0),d=g[0],y=g[1],b=Object(c.useState)([]),O=b[0],x=b[1],v=Object(c.useCallback)(w()(function(){var e=Object(o.a)(i.a.mark((function e(n){var r,a,o,c,s;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.start,a=n.text,h(!0),o="_limit=10&_sort=name:ASC&framework.name=".concat(t.name),a&&(o+="&name_contains=".concat(a)),r&&(o+="&_start=".concat(r)),e.next=7,u(o);case 7:return c=e.sent,e.next=10,l(o);case 10:s=e.sent,x(c),y(s),h(!1);case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),300),[t]);return Object(c.useEffect)((function(){var e=n.query._start?n.query._start:0,t=n.query.search?n.query.search:"";v({start:e,text:t})}),[]),Object(c.useEffect)((function(){var e=n.query.search?n.query.search:"";v({start:0,text:e})}),[t]),Object(c.useEffect)((function(){var e=n.query._start?n.query._start:0,t=n.query.search?n.query.search:"";v({start:e,text:t})}),[n.query]),X(s.a.Fragment,null,!m&&d>0&&X(F.a,null,X("b",null,d)," result",d>1&&"s"),X(P.a,{showPlaceholder:!m&&p()(O)},m&&X(j.c,{width:"100%",justifyContent:"center",height:"200px"},X(D.a,null,"Loading...")),!m&&O.map((function(e){return X(c.Fragment,{key:e.id},X(j.m,{height:"40px"}),X(T.a,r(e.id.toString(),W()(e,"framework.id","")),X(K,e)))})),X(j.c,{justifyContent:"center",margin:"20px 0 0 0"},X(N.a,{totalCount:d,marginPagesDisplayed:1,pageRangeDisplayed:3}))))}),Z.a),Y=n("ctsw"),Q=n("mVLl"),$=n("x4NY"),ee=n("IJh6"),te=s.a.createElement;!function(e){e.CASE_STUDIES="Case studies",e.ORGANIZATIONS="Organisations",e.INDICATORS="Indicators"}(r||(r={}));var ne=[{name:r.CASE_STUDIES},{name:r.ORGANIZATIONS}],re=function(e){var t=e.frameworks,n=h()(t)&&!p()(t)&&[].concat(ne,Object(f.a)(t.map((function(e){return{name:e.name}}))));return te(j.a,null,te(Q.i,null,"Search"),te(Y.a,null),te(j.m,{height:"15px"}),h()(n)&&te(g.a,{steps:n},(function(e){var n=e.name===r.CASE_STUDIES,a=e.name===r.ORGANIZATIONS,i=e.name===r.INDICATORS,o=!n&&!a&&!i,c=t.find((function(t){return t.name===e.name}));return te(s.a.Fragment,null,n&&te(d.a,null),a&&te(R,null),o&&te(M,{framework:c}),i&&te($.a,{isFilterTag:!1}),i&&te(ee.a,null))})))},ae=n("kGv1"),ie=n("lkfV"),oe=n("TrOb"),ce=s.a.createElement,se=!0;t.default=Object(ie.e)((function(e){var t=Object(L.i)(),n=Object(c.useState)(e.frameworks),r=n[0],a=n[1],l=Object(L.k)(),f=l.getFilter,m=l.getHashFilter,h=Object(c.useState)(e.filters),g=h[0],d=h[1],y=Object(c.useState)(e.hashFilter),w=y[0],b=y[1],O=function(){var e=Object(o.a)(i.a.mark((function e(){var n;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.loadLandingFrameworks();case 2:n=e.sent,a(n);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),x=g,v=w;Object(c.useEffect)((function(){p()(e.frameworks)&&O()}),[]);var j=Object(c.useState)(1)[0];return Object(c.useEffect)((function(){Object(o.a)(i.a.mark((function e(){var t,n;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,f();case 2:return t=e.sent,e.next=5,m();case 5:n=e.sent,d(t),b(n);case 8:case"end":return e.stop()}}),e)})))()}),[j]),ce(s.a.Fragment,null,ce(u.a,{title:"Search results - Knowledge Hub | Circle Economy Foundation"}),ce(oe.a.Provider,{value:{filter:x,hashFilter:v}},ce(ae.a,null,ce(re,{frameworks:r}))))}))},ScUc:function(e,t,n){"use strict";var r=n("q1tI"),a=n.n(r),i=n("qgVr"),o=a.a.createElement;t.a=function(){return o(i.a,{elasticsearchObj:{filtered:{is_draft_ne:!0}}})}},V11O:function(e,t,n){"use strict";var r=n("q1tI"),a=n.n(r),i=n("gLav"),o=n.n(i).a.img.withConfig({displayName:"styles__LogoImage",componentId:"sc-17uc39t-0"})(["width:",";height:",";border-radius:4px;position:relative;"],(function(e){return e.width}),(function(e){return e.height})),c=a.a.createElement,s=function(e){return c("svg",e,c("rect",{x:"10",y:"10",width:"44",height:"44",rx:"10",fill:"#53B9B0"}),c("path",{d:"M27.554 24.632V42m0 0H42V27.921L27.554 22v5.921H21V42h6.554z",stroke:"#fff",strokeOpacity:".7",strokeWidth:"1.829",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}))};s.defaultProps={width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var u=function(e){var t=e.logo,n=e.name,r=e.size;return t?c(o,{width:r,height:r,src:t.url,alt:n}):c(s,{width:64,height:64})};u.defaultProps={size:65};t.a=u},wlSL:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/search",function(){return n("5kZN")}])}},[["wlSL",1,0,2,3,4,5,6,7,8,9,10,11,13,12,15,20,24]]]);