_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[52],{"3du8":function(t,e,n){"use strict";var o=n("q1tI"),i=n.n(o),r=n("KJde"),a=n.n(r),s=n("mwIZ"),l=n.n(s),c=n("E+oP"),p=n.n(c),u=n("Wgwc"),f=n.n(u),d=n("lVqX"),h=n("u2yT"),g=n("gLav"),m=n.n(g),x=n("cZi2"),y=m.a.div.withConfig({displayName:"styles__Wrapper",componentId:"sc-13f21bx-0"})(["display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:0px 16px 0px 0px;position:relative;height:220px;left:0px;top:0px;margin-bottom:23px;border-left:6px solid transparent;:hover{background:#ffffff;position:static;box-shadow:0px 5px 20px rgba(0,0,0,0.15);border-radius:6px;flex:none;order:0;flex-grow:0;border-left:6px solid ",";}"],x.o.primary),b=m.a.div.withConfig({displayName:"styles__ImageContainer",componentId:"sc-13f21bx-1"})(["position:static;min-width:222px;height:188px;left:521px;top:16px;border-radius:6px;background-image:url(",");background-repeat:no-repeat;background-size:cover;background-position:center;","{min-width:150px;}"],(function(t){var e=t.background;return e||"/public/icons/article.png"}),h.a.MOBILE),w=m.a.div.withConfig({displayName:"styles__WrapperDetail",componentId:"sc-13f21bx-2"})(["display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:0px;height:192.92px;background:#ffffff;margin:0px 18px;"]),v=m.a.div.withConfig({displayName:"styles__TagTextWrapper",componentId:"sc-13f21bx-3"})(["display:flex;flex-direction:row;align-items:center;padding:4px 8px;justify-content:flex-start;border-radius:50px;flex:none;height:32px;margin-right:9px;position:static;left:0px;top:0px;"," ",""],(function(t){return!t.isContentType&&Object(g.css)(["background:",";"],x.o.blue20)}),(function(t){return t.isContentType&&Object(g.css)(["border:1px solid ",";"],x.o.gray900)})),O=m.a.p.withConfig({displayName:"styles__TagText",componentId:"sc-13f21bx-4"})(["color:",";font-family:",";font-size:",";line-height:18px;padding:3px 2px;text-align:center;letter-spacing:0.01em;"],x.o.gray900,x.q.openSans,x.q.size.small),_=m.a.p.withConfig({displayName:"styles__Title",componentId:"sc-13f21bx-5"})(["color:",";font-family:",";font-weight:600;font-size:",";position:static;height:49px;left:0px;top:0px;font-style:normal;font-weight:600;line-height:26px;color:#283237;flex:none;order:0;flex-grow:0;"],x.o.gray900,x.q.montserrat,x.q.size.large),j=m.a.div.withConfig({displayName:"styles__BodyText",componentId:"sc-13f21bx-6"})(["font-family:",";font-size:",";color:",";font-style:normal;font-weight:normal;line-height:24px;letter-spacing:0.011em;flex:auto;order:0;flex-grow:0;margin-top:12px;"],x.q.openSans,x.q.size.normal,x.o.gray900),T=m.a.div.withConfig({displayName:"styles__ContainerBody",componentId:"sc-13f21bx-7"})(["display:flex;flex-direction:column;align-items:flex-start;padding:0px;position:static;height:108px;left:0px;top:34px;flex:none;align-self:stretch;flex-grow:0;margin:12px 0px;"]),E=m.a.p.withConfig({displayName:"styles__Content",componentId:"sc-13f21bx-8"})(["display:flex;","{display:none;}"],h.a.MOBILE),C=(m.a.div.withConfig({displayName:"styles__Text",componentId:"sc-13f21bx-9"})(["color:",";font-family:",";font-size:",";line-height:24px;margin-bottom:10px;"],x.o.gray900,x.q.openSans,x.q.size.normal),m.a.p.withConfig({displayName:"styles__Location",componentId:"sc-13f21bx-10"})(["color:",";font-family:",";font-size:",";line-height:17px;margin:4px 25px 4px 0;display:flex;"],x.o.gray600,x.q.openSans,x.q.size.small),n("00x5")),I=(m.a.div.withConfig({displayName:"styles__CheckboxWrapper",componentId:"ydtkzs-0"})(["width:50px;min-width:50px;"]),m.a.p.withConfig({displayName:"styles__Title",componentId:"ydtkzs-1"})(["color:",";font-family:",";font-style:normal;font-weight:600;font-size:16px;line-height:26px;"],x.o.blue900,x.q.montserrat),m.a.p.withConfig({displayName:"styles__UpdatedText",componentId:"ydtkzs-2"})(["color:",";font-family:",";font-style:normal;font-weight:normal;font-size:12px;line-height:21px;padding-right:16px;"],x.o.gray900,x.q.openSans)),k=i.a.createElement;e.a=function(t){var e=t.main_image,n=t.updated_at,o=t.contenttype,r=t.title,s=t.summary,c=t.locations,u=!!t.curatedBy,h=l()(e,"url",""),g=Object(C.a)(s||""),m=g.length<70?g:g.slice(0,70)+"...";return k(y,null,k(w,null,k(x.c,null,u&&k(d.a,{hasRightPadding:!1}),u&&k(i.a.Fragment,null,"・"),k(I,null,"Last Updated ",f()(n).format("MMMM D, YYYY"))),k(T,null,k(a.a,{text:Object(C.a)(r||""),maxLine:"2",ellipsis:"...",trimRight:!0,basedOn:"letters",component:_}),k(E,null,k(a.a,{text:m,maxLine:"1",ellipsis:"...",trimRight:!0,basedOn:"letters",component:j}))),k(x.c,{width:"479px",height:"34px",alignItems:"flex-start",flexDirection:"row"},o&&k(v,{isContentType:!0},k(O,null,l()(o,"name",""))),!p()(c)&&k(x.c,{flexWrap:"wrap"},k(v,null,k(O,null,"".concat(l()(c[0],"name","")," ")," ",c.length>2&&", ".concat(c.length-1+"+ More")," "))))),k(b,{background:h}))}},FE77:function(t,e,n){"use strict";n.d(e,"a",(function(){return E})),n.d(e,"b",(function(){return o}));var o,i=n("wx14"),r=n("Ff2n"),a=n("q1tI"),s=n.n(a),l=n("jkUL"),c=n.n(l),p=n("gLav"),u=n.n(p),f=n("cZi2"),d=n("u2yT"),h=Object(p.css)(["box-shadow:0 5px 20px rgba(0,0,0,0.15);:active{box-shadow:none;}"]),g=Object(p.css)(["border:none;background-color:",";",";"],f.o.primary,h),m=Object(p.css)(["border:2px solid ",";background-color:",";",";"],f.o.primary,f.o.white,h),x=Object(p.css)(["border:none;background-color:",";",";"],f.o.white,h),y=Object(p.css)(["border:none;background-color:",";"],f.o.white),b=Object(p.css)(["border:none;background:none;"]),w=Object(p.css)(["border:none;background-color:",";"],f.o.gray200),v=Object(p.css)(["border:2px solid ",";background-color:",";"],f.o.gray200,f.o.white),O=Object(p.css)(["border:none;background-color:",";"],f.o.white),_=u.a.button.withConfig({displayName:"styles__StyledButton",componentId:"pib3sh-0"})(["display:flex;justify-content:center;align-items:center;box-sizing:border-box;border-radius:4px;outline:0;user-select:none;color:",";font-family:",";font-weight:bold;font-size:14px;line-height:24px;letter-spacing:1.2px;cursor:pointer;svg{height:100%;}","{padding:4px 12px;}","{padding:6px 18px;}","{padding:8px 22px;}","{padding:8px 22px;}","{padding:8px 22px;}",""],f.o.gray900,f.q.notoSans,d.a.MOBILE,d.a.TABLET,d.a.LAPTOP,d.a.DESKTOP,d.a.LARGE,(function(t){var e=t.layoutStyles;return e&&e}));!function(t){t.PRIMARY="PRIMARY",t.SECONDARY="SECONDARY",t.TERTIARY="TERTIARY",t.TERTIARY_NO_SHADOW="TERTIARY_NO_SHADOW",t.GHOST="GHOST"}(o||(o={}));var j=s.a.createElement,T=function(t){var e=t.children,n=t.layout,a=t.disabled,s=t.isLoading,l=t.loaderProps,p=t.color,u=Object(r.a)(t,["children","layout","disabled","isLoading","loaderProps","color"]),d=a?function(t){switch(t){case o.PRIMARY:return w;case o.SECONDARY:return v;case o.TERTIARY:case o.TERTIARY_NO_SHADOW:default:return O}}(n):function(t){switch(t){case o.PRIMARY:return g;case o.SECONDARY:return m;case o.TERTIARY:return x;case o.TERTIARY_NO_SHADOW:return y;case o.GHOST:return b;default:return x}}(n);return j(_,Object(i.a)({layoutStyles:d,disabled:a||s},u),s?j(c.a,Object(i.a)({height:"15px",visible:!0,type:"ThreeDots",color:"yellow"===p?f.o.loader:f.o.white},l)):e)};T.defaultProps={loaderProps:{}};var E=T},KJde:function(t,e,n){"use strict";function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){return(i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}function r(t,e){if(null==t)return{};var n,o,i=function(t,e){if(null==t)return{};var n,o,i={},r=Object.keys(t);for(o=0;o<r.length;o++)n=r[o],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(o=0;o<r.length;o++)n=r[o],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function a(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function s(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function l(t,e,n){return(l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var o=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=c(t)););return t}(t,e);if(o){var i=Object.getOwnPropertyDescriptor(o,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function p(t,e){return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var u=n("q1tI"),f=n("LH3R"),d=f.canvasStyle,h=f.mirrorProps,g=n("jZVV").omit;function m(t,e){for(;t&&e--;)t=t.previousElementSibling;return t}var x={basedOn:void 0,className:"",component:"div",ellipsis:"…",maxLine:1,onReflow:function(){},text:"",trimRight:!0,winWidth:void 0},y=Object.keys(x),b=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=s(this,c(e).call(this,t))).state={text:t.text,clamped:!1},n.units=[],n.maxLine=0,n.canvas=null,n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}(e,t),function(t,e,n){e&&a(t.prototype,e),n&&a(t,n)}(e,[{key:"componentDidMount",value:function(){this.initCanvas(),this.reflow(this.props)}},{key:"componentDidUpdate",value:function(t){t.winWidth!==this.props.winWidth&&this.copyStyleToCanvas(),this.props!==t&&this.reflow(this.props)}},{key:"componentWillUnmount",value:function(){this.canvas.parentNode.removeChild(this.canvas)}},{key:"setState",value:function(t,n){return void 0!==t.clamped&&(this.clamped=t.clamped),l(c(e.prototype),"setState",this).call(this,t,n)}},{key:"initCanvas",value:function(){if(!this.canvas){var t=this.canvas=document.createElement("div");t.className="LinesEllipsis-canvas ".concat(this.props.className),t.setAttribute("aria-hidden","true"),this.copyStyleToCanvas(),Object.keys(d).forEach((function(e){t.style[e]=d[e]})),document.body.appendChild(t)}}},{key:"copyStyleToCanvas",value:function(){var t=this,e=window.getComputedStyle(this.target);h.forEach((function(n){t.canvas.style[n]=e[n]}))}},{key:"reflow",value:function(t){var e=t.basedOn||(/^[\x00-\x7F]+$/.test(t.text)?"words":"letters");switch(e){case"words":this.units=t.text.split(/\b|(?=\W)/);break;case"letters":this.units=Array.from(t.text);break;default:throw new Error("Unsupported options basedOn: ".concat(e))}this.maxLine=+t.maxLine||1,this.canvas.innerHTML=this.units.map((function(t){return"<span class='LinesEllipsis-unit'>".concat(t,"</span>")})).join("");var n=this.putEllipsis(this.calcIndexes()),o=n>-1,i={clamped:o,text:o?this.units.slice(0,n).join(""):t.text};this.setState(i,t.onReflow.bind(this,i))}},{key:"calcIndexes",value:function(){var t=[0],e=this.canvas.firstElementChild;if(!e)return t;for(var n=0,o=1,i=e.offsetTop;(e=e.nextElementSibling)&&(e.offsetTop>i&&(o++,t.push(n),i=e.offsetTop),n++,!(o>this.maxLine)););return t}},{key:"putEllipsis",value:function(t){if(t.length<=this.maxLine)return-1;var e=t[this.maxLine],n=this.units.slice(0,e),o=this.canvas.children[e].offsetTop;this.canvas.innerHTML=n.map((function(t,e){return"<span class='LinesEllipsis-unit'>".concat(t,"</span>")})).join("")+"<wbr><span class='LinesEllipsis-ellipsis'>".concat(this.props.ellipsis,"</span>");for(var i=this.canvas.lastElementChild,r=m(i,2);r&&(i.offsetTop>o||i.offsetHeight>r.offsetHeight||i.offsetTop>r.offsetTop);)this.canvas.removeChild(r),r=m(i,2),n.pop();return n.length}},{key:"isClamped",value:function(){return this.clamped}},{key:"render",value:function(){var t=this,e=this.state,n=e.text,o=e.clamped,a=this.props,s=a.component,l=a.ellipsis,c=a.trimRight,p=a.className,f=r(a,["component","ellipsis","trimRight","className"]);return u.createElement(s,i({className:"LinesEllipsis ".concat(o?"LinesEllipsis--clamped":""," ").concat(p),ref:function(e){return t.target=e}},g(f,y)),o&&c?n.replace(/[\s\uFEFF\xA0]+$/,""):n,u.createElement("wbr",null),o&&u.createElement("span",{className:"LinesEllipsis-ellipsis"},l))}}]),e}(u.Component);b.defaultProps=x,t.exports=b},LH3R:function(t,e,n){"use strict";t.exports={canvasStyle:{position:"absolute",bottom:0,left:0,height:0,overflow:"hidden","padding-top":0,"padding-bottom":0,border:"none"},mirrorProps:["box-sizing","width","font-size","font-weight","font-family","font-style","letter-spacing","text-indent","white-space","word-break","overflow-wrap","padding-left","padding-right"]}},Sxd8:function(t,e,n){var o=n("ZCgT");t.exports=function(t){var e=o(t),n=e%1;return e==e?n?e-n:e:0}},"TLC/":function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var o=n("gLav"),i=n.n(o),r=n("cZi2"),a=i.a.p.withConfig({displayName:"styles__Text",componentId:"kzuktk-0"})(["color:",";font-family:",";font-weight:400;font-size:16px;line-height:24px;letter-spacing:1.2px;"],r.o.gray450,r.q.openSans)},V11O:function(t,e,n){"use strict";var o=n("q1tI"),i=n.n(o),r=n("gLav"),a=n.n(r).a.img.withConfig({displayName:"styles__LogoImage",componentId:"sc-17uc39t-0"})(["width:",";height:",";border-radius:4px;position:relative;"],(function(t){return t.width}),(function(t){return t.height})),s=i.a.createElement,l=function(t){return s("svg",t,s("rect",{x:"10",y:"10",width:"44",height:"44",rx:"10",fill:"#53B9B0"}),s("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"}))};l.defaultProps={width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var c=function(t){var e=t.logo,n=t.name,o=t.size;return e?s(a,{width:o,height:o,src:e.url,alt:n}):s(l,{width:64,height:64})};c.defaultProps={size:65};e.a=c},ZCgT:function(t,e,n){var o=n("tLB3"),i=1/0;t.exports=function(t){return t?(t=o(t))===i||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},jZVV:function(t,e,n){"use strict";function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports={omit:function(t,e){if(!t||"object"!==o(t))return t;var n={};return Object.keys(t).forEach((function(o){e.indexOf(o)>-1||(n[o]=t[o])})),n}}},lDVs:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/organization/[id]",function(){return n("nCSr")}])},lVqX:function(t,e,n){"use strict";var o=n("q1tI"),i=n.n(o),r=n("gLav"),a=n.n(r),s=n("cZi2"),l=i.a.createElement,c=function(t){return l("svg",t,l("path",{d:"M6.5 0c-.93 0-1.691.512-2.188 1.219-.847-.149-1.753.027-2.406.683v.004h-.004c-.656.653-.832 1.559-.683 2.407C.512 4.809 0 5.57 0 6.5c0 .93.512 1.691 1.219 2.188-.149.847.027 1.75.687 2.406.653.656 1.555.836 2.407.687C4.809 12.488 5.57 13 6.5 13c.93 0 1.691-.512 2.188-1.219.847.149 1.75-.027 2.406-.687.656-.653.836-1.555.687-2.406C12.488 8.19 13 7.43 13 6.5c0-.93-.512-1.691-1.219-2.188.149-.847-.027-1.75-.687-2.406v-.004c-.653-.656-1.559-.832-2.406-.683C8.19.512 7.43 0 6.5 0zm0 1c.676 0 1.246.383 1.54.945l.194.367.399-.124a1.749 1.749 0 0 1 1.758.421c.476.48.609 1.153.421 1.758l-.124.399.37.195c.56.293.942.863.942 1.539a1.73 1.73 0 0 1-.941 1.54l-.371.194.124.399a1.74 1.74 0 0 1-.421 1.758 1.74 1.74 0 0 1-1.758.421l-.399-.124-.195.37A1.73 1.73 0 0 1 6.5 12a1.73 1.73 0 0 1-1.54-.941l-.194-.371-.399.124a1.74 1.74 0 0 1-1.758-.421 1.74 1.74 0 0 1-.421-1.758l.124-.399-.367-.195A1.727 1.727 0 0 1 1 6.5c0-.676.383-1.246.945-1.54l.367-.194-.124-.399a1.738 1.738 0 0 1 .421-1.758 1.74 1.74 0 0 1 1.758-.421l.399.124.195-.367A1.727 1.727 0 0 1 6.5 1zm2.645 3.148L5.5 7.793 3.852 6.148l-.704.704L5.5 9.207l4.355-4.355-.71-.704z",fill:"#53B9B0"}))};c.defaultProps={width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var p=a.a.div.withConfig({displayName:"ApprovedByCurator__Wrapper",componentId:"sc-1lebsld-0"})(["display:flex;align-items:center;padding-right:",";"],(function(t){return t.hasRightPadding?"16px":"0"})),u=a.a.p.withConfig({displayName:"ApprovedByCurator__Text",componentId:"sc-1lebsld-1"})(["color:",";margin-left:4px;font-family:",";font-size:",";line-height:18px;letter-spacing:0.01em;"],s.o.blue900,s.q.openSans,s.q.size.small);e.a=function(t){var e=t.hasRightPadding;return l(p,{hasRightPadding:void 0===e||e},l(c,{width:17.06,height:17.06}),l(u,null,"Approved by curator"))}},nCSr:function(t,e,n){"use strict";n.r(e),n.d(e,"__N_SSG",(function(){return D}));var o=n("o0o1"),i=n.n(o),r=n("HaE+"),a=n("q1tI"),s=n.n(a),l=n("q08V"),c=n("E+oP"),p=n.n(c),u=n("mwIZ"),f=n.n(u),d=n("wx14"),h=n("V11O"),g=n("3du8"),m=n("gWjb"),x=n("FE77"),y=n("6AvA"),b=n("gLav"),w=n.n(b),v=n("cZi2"),O=n("mVLl"),_=n("u2yT"),j=w()(O.c).withConfig({displayName:"styles__OrgName",componentId:"sr9w0d-0"})(["color:",";line-height:65px;padding-left:20px;","{font-style:normal;font-weight:600;font-size:18px;line-height:21px;}","{font-style:normal;font-weight:600;font-size:18px;line-height:21px;}","{font-style:normal;font-weight:600;font-size:18px;line-height:21px;}"],v.o.gray900,_.a.MOBILE,_.a.TABLET,_.a.LAPTOP),T=w.a.div.withConfig({displayName:"styles__OrganizationCases",componentId:"sr9w0d-1"})(["max-width:700px;"]),E=(w.a.div.withConfig({displayName:"styles__CardWrapper",componentId:"sr9w0d-2"})(["margin:20px 0;"]),n("00x5")),C=s.a.createElement,I=function(t){var e=t.organization,n=t.articles,o=t.updateOrganization,i=e.name,r=e.logo,a=e.website,s=e.description,l=Object(y.q)().urlToViewCase;return C(v.a,null,C(v.c,null,C(h.a,{logo:r,name:i,size:42}),C(j,null,i)),C(v.m,{height:"60px"}),C(x.a,{layout:x.b.SECONDARY,onClick:o},"Edit"),C(v.m,{height:"60px"}),C(O.b,{href:(null==a?void 0:a.includes("http"))?a:"http://".concat(a),target:"_blank"},a),C(v.m,{height:"40px"}),C(O.a,{dangerouslySetInnerHTML:{__html:Object(E.c)(s)}}),C(v.m,{height:"80px"}),C(O.h,null,"Case studies and reports"),C(T,null,!p()(n)&&n.map((function(t){return C(m.a,Object(d.a)({key:t.id},l(t.id.toString())),C(g.a,t))}))))},k=n("4WXO"),S=n("IfH1"),N=n("b01a"),L=n("kGv1"),R=n("lkfV"),z=n("nOHt"),A=n("/MKj"),P=n("Fk2I"),q=n("3jpb"),M=s.a.createElement,D=!0;e.default=Object(R.e)((function(t){var e=Object(z.useRouter)(),n=Object(y.p)().getOrganization,o=Object(y.b)().getArticles,s=Object(y.o)().openModal,c=Object(y.a)().signIn,u=Object(A.useSelector)((function(t){return{isAuthorized:t.auth.isAuthorized}})).isAuthorized,d=Object(a.useState)(!t.organization),h=d[0],g=d[1],m=Object(a.useState)(t.organization||{}),x=m[0],b=m[1],w=Object(a.useState)(t.articles||[]),v=w[0],O=w[1],_=function(){var t=Object(r.a)(i.a.mark((function t(){var o;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n(e.query.id);case 2:o=t.sent,b(o),g(!1),Object(q.a)(e,o.name);case 6:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),j=function(){var t=Object(r.a)(i.a.mark((function t(){var n;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,o("is_draft_ne=true&organizations.id_in=".concat(e.query.id,"&reports_null=true"));case 2:n=t.sent,O(n);case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();Object(a.useEffect)((function(){p()(t.organization)?_():Object(q.a)(e,t.organization.name),p()(t.articles)&&j()}),[]),Object(a.useEffect)((function(){u&&e.query.modal===P.ORGANIZATION_MODAL&&T()}),[u]);var T=function(){s(P.ORGANIZATION_MODAL,{id:x.id,name:x.name,logo:x.logo,website:x.website,description:x.description,successCallback:function(t){t&&b(t)}})};return M(L.a,null,M(k.a,{showPlaceholder:h,text:"Loading..."},M(l.a,{title:"".concat(f()(x,"name","Unknown organization")," - Knowledge Hub | Circle Economy Foundation")}),M(k.a,{showPlaceholder:p()(x),text:"Oops, this organisation is not found in the Knowledge Hub"},M(I,{organization:x,articles:v,updateOrganization:function(){u?T():c("&modal=".concat(P.ORGANIZATION_MODAL))}}))),M(S.a,null),M(N.a,null))}))},tLB3:function(t,e,n){var o=n("GoyQ"),i=n("/9aa"),r=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return NaN;if(o(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=o(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(r,"");var n=s.test(t);return n||l.test(t)?c(t.slice(2),n?2:8):a.test(t)?NaN:+t}}},[["lDVs",1,0,2,3,4,5,6,7,8,9,14,16,18,19]]]);