PageSourceSearch

https://www.gclegal.com.au/_next/static/chunks/pages/insights-8163b351ba2d39e9.js

js gclegal.com.au collected 2026-10-04 03:01:23 UTC 21,722 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4210],{3301:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/insights",function(){return n(60706)}])},9377:function(e,t,n){"use strict";var o=n(85893),i=n(45697),r=n.n(i),l=n(10107),s=n(67294),a=n(73091);let c=e=>{let{capabilities:t,title:n,onSelected:i,setSelected:r,selected:c,onInteracted:u}=e,[d,p]=(0,s.useState)(!1),f=(0,s.useRef)(),[v,h]=(0,s.useState)(0),[m,y]=(0,s.useState)(!1),[b,g]=(0,a.mY)(),x=e=>{e.stopPropagation(),r(void 0)};return(0,s.useEffect)(()=>{var e;let t=null===(e=f.current)||void 0===e?void 0:e.scrollHeight;h(t)},[f.current]),(0,s.useEffect)(()=>{i(c)},[c]),(0,s.useEffect)(()=>{y(!0)},[]),(0,o.jsxs)("div",{className:"relative max-md:w-full md:flex-1 md:ml-12 mb-6",children:[(0,o.jsxs)("button",{className:"bg-mid-grey px-7 uppercase font-mono flex justify-between items-center text-left py-2 w-full ".concat(d?"rounded-t-3xl":"rounded-3xl"," overflow-ellipsis"),onClick:()=>p(!d),children:[m&&(0,o.jsx)("span",{className:"mr-2 lg:mr-8 whitespace-nowrap overflow-hidden",children:c?(e=>{let n=t.find(t=>t.slug.current===e);return n.title})(c):n}),(0,o.jsxs)("div",{className:"flex items-center",children:[m&&c&&(0,o.jsx)("div",{tabIndex:"0",onClick:e=>x(e),children:(0,o.jsx)(l.X1,{className:"mr-3"})}),(0,o.jsx)(l._M,{className:"".concat(d?"rotate-180":"rotate-0"," transition-transform")})]})]}),(0,o.jsx)("div",{className:"absolute bg-mid-grey rounded-b-3xl px-7 uppercase font-mono text-left py-4 w-full ".concat(d?"opacity-100 pointer-events-auto":"opacity-0 pointer-events-none"," text-").concat(b.palette," z-50"),children:(0,o.jsx)("div",{className:"".concat(v>180?"scrollbar-container overflow-y-scroll":"overflow-y-hidden"," max-h-44"),ref:f,children:null==t?void 0:t.map(e=>(0,o.jsx)("button",{className:"mb-3 text-black text-left w-full uppercase",onClick:()=>(r(e.slug.current),p(!1),u&&u()),children:e.title},e.slug.current))})})]})};c.propTypes={capabilities:r().array,title:r().string,onSelected:r().func,selected:r().string,setSelected:r().func,onInteracted:r().func},t.Z=c},6537:function(e,t,n){"use strict";var o=n(85893),i=n(45697),r=n.n(i),l=n(65370),s=n(67294);let a=e=>{let{placeholder:t,items:n,onSearched:i,onInteracted:r}
1=e,[a,c]=(0,s.useState)(void 0),[u,d]=(0,s.useState)([]),[p,f]=(0,s.useState)();(0,s.useEffect)(()=>{d(n)},[n]);let v=new l.Z({fields:["title"],storeFields:["title","_key","_type","_id","image","slug","thumbnail","position","contentType","capabilities","practiceAreas","phoneNumber","email","location","jobType","shortText","category","date"]});(0,s.useEffect)(()=>{v&&(null==u?void 0:u.length)>0&&(null==v||v.addAll(u))},[u,v]);let h=e=>{r(),c(e.target.value)};return(0,s.useEffect)(()=>{if((null==a?void 0:a.length)>0){let e=null==v?void 0:v.search(a,{prefix:!0});f(e)}else f(u)},[a,u]),(0,s.useEffect)(()=>{i(p)},[p]),(0,o.jsx)("div",{className:"col-span-12 md:col-span-9",children:(0,o.jsx)("input",{type:"text",placeholder:t,className:"w-full placeholder:text-black border-b-[1.5px] border-black py-1",onChange:e=>h(e)})})};a.propTypes={placeholder:r().string,items:r().array,onSearched:r().func,practiceArea:r().string,location:r().string,onInteracted:r().func},t.Z=a},17288:function(e,t,n){"use strict";var o=n(85893),i=n(67294),r=n(45697),l=n.n(r),s=n(44931),a=n(39925),c=n(73091),u=n(11163);let d=e=>{let{content:t}=e,[n,r]=(0,c.mY)(),l=(0,u.useRouter)();return(0,o.jsxs)(i.Fragment,{children:[(0,o.jsx)("div",{className:"pt-32 lg:pt-60 bg-pale-".concat(n.palette)}),(0,o.jsxs)("section",{className:"relative mb-12 lg:mb-24",children:[(0,o.jsxs)("div",{className:"col-span-12 lg:col-start-2 lg:col-end-12 relative z-10",children:[(0,o.jsx)("div",{className:"relative md:absolute top-0 left-0 w-full h-full text-white grid gap-x-2 lg:gap-x-9 grid-cols-10 items-center z-20 ",children:(0,o.jsxs)("div",{className:"col-start-2 col-end-10 lg:col-end-7 max-md:py-8",children:[(0,o.jsx)("h1",{className:"h2",children:null==t?void 0:t.title}),(null==t?void 0:t.text)&&(0,o.jsx)("div",{className:"mt-8 lg:mt-10 max-w-[400px] font-[500]",children:(0,o.jsx)(a.Z,{content:null==t?void 0:t.text})})]})}),(0,o.jsx)("div",{className:"max-md:absolute inset-0 w-full h-full ",children:(0,o.jsx)(s.Z,{asset:null==t?void 0:t.banner,cover:!0,sizes:"90vw",quality:100})})]}),(0,o.jsx)("div",{className:"bg-pale-".concat(n.palette," h-1/2 top-0 left-0 absolute w-full")})]}),((null==t?void 0:t.introduction)||(null==t?void 0:t.introductionTitle))&&(0,o.jsx)("section",{className:"mb-12 lg:mb-24",children:(0,o.jsxs)("div",{className:"col-start-2 col-end-12 lg:col-start-3 lg:col-end-11",children:[(null==t?void 0:t.introductionTitle)&&(0,o.jsx)("h4",{className:"mb-8",children:null==t?void 0:t.introductionTitle}),(0,o.jsx)(a.Z,{content:null==t?void 0:t.introduction})]})})]},l.asPath)};d.propTypes={content:l().object},t.Z=d},60508:function(e,t,n){"use strict";var o=n(85893),i=n(45697),r=n.n(i),l=n(10107),s=n(67294),a=n(73091);let c=e=>{var t;let{options:n,title:i,onSelected:r,setSelected:c,selected:u,onInteracted:d}=e,[p,f]=(0,s.useState)(!1),v=(0,s.useRef)(),[h,m]=(0,s.useState)(0),[y,b]=(0,s.useState)(!1),[g,x]=(0,a.mY)(),j=e=>{e.stopPropagation(),c(void 0)};(0,s.useEffect)(()=>{var e;let t=null===(e=v.current)||void 0===e?void 0:e.scrollHeight;m(t)},[v.current]),(0,s.useEffect)(()=>{r(u)},[u]),(0,s.useEffect)(()=>{b(!0)},[]);let O=e=>e.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ").replace(/([A-Z])/g," $1").trim();return(0,o.jsxs)("div",{className:"relative max-md:w-full md:flex-1 md:ml-12 mb-6",children:[(0,o.jsxs)("button",{className:"bg-mid-grey px-7 uppercase font-mono flex justify-between items-center text-left py-2 w-full ".concat(p?"rounded-t-3xl":"rounded-3xl"),onClick:()=>f(!p),children:[y&&(0,o.jsx)("span",{className:"mr-2 lg:mr-8 whitespace-nowrap overflow-hidden",children:u?O(u):i}),(0,o.jsxs)("div",{className:"flex items-center",children:[y&&u&&(0,o.jsx)("div",{tabIndex:"0",onClick:e=>j(e),children:(0,o.jsx)(l.X1,{className:"mr-3"})}),(0,o.jsx)(l._M,{className:"".concat(p?"rotate-180":"rotate-0"," transition-transform")})]})]}),(0,o.jsx)("div",{className:"absolute bg-mid-grey rounded-b-3xl px-7 uppercase font-mono text-left py-4 w-full ".concat(p?"opacity-100 pointer-events-auto":"opacity-0 pointer-events-none"," text-").concat(g.palette," z-50"),children:(0,o.jsx)("div",{className:"".concat(h>180?"scrollbar-container overflow-y-scroll":"overflow-y-hidden"," max-h-44"),ref:v,children:null==n?void 0:n.map(e=>(0,o.jsx)("button",{className:"mb-3 text-black text-left w-full uppercase",onClick:()=>(c(e),f(!1),d&&d()),children:null!==(t=e.title)&&void 0!==t?t:O(e)},e))})})]})};
1c.propTypes={options:r().array,title:r().string,onSelected:r().func,selected:r().string,setSelected:r().func},t.Z=c},60706:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return N},default:function(){return P}});var o=n(85893),i=n(81222),r=n(45697),l=n.n(r),s=n(71945),a=n(987);n(73091);var c=n(17288),u=n(91588),d=n(53272),p=n(67294),f=n(60508),v=n(9377),h=n(6537);let m=e=>{let{capabilities:t,authors:n,contentTypes:i,onFilteredAndSearched:r,insights:l,onInteracted:s}=e,[a,c]=(0,p.useState)([]),[u,m]=(0,d.useQueryParam)("cap",d.StringParam),[y,b]=(0,d.useQueryParam)("auth",d.StringParam),[g,x]=(0,d.useQueryParam)("type",d.StringParam),[j,O]=(0,p.useState)(!1),[w,S]=(0,p.useState)(!1),N=(0,p.useMemo)(()=>{var e,t,n;let o=l;return u&&(o=null===(e=o)||void 0===e?void 0:e.filter(e=>{var t;return null===(t=e.capabilities)||void 0===t?void 0:t.some(e=>{var t;return(null==e?void 0:null===(t=e.slug)||void 0===t?void 0:t.current)===u})}),S(!0)),y&&(o=null===(t=o)||void 0===t?void 0:t.filter(e=>{var t;return null===(t=e.authors)||void 0===t?void 0:t.some(e=>e.slug.current===y)}),S(!0)),g&&(o=null===(n=o)||void 0===n?void 0:n.filter(e=>{var t;return null===(t=e.contentType)||void 0===t?void 0:t.some(e=>{var t;return(null===(t=e.slug)||void 0===t?void 0:t.current)===g})}),S(!0)),o},[u,y,g,l]);return(0,p.useEffect)(()=>{j&&r(a),O(!0)},[a]),(0,p.useEffect)(()=>{w&&s()},[w]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("section",{className:"mb-10",children:[(0,o.jsx)("h5",{className:"col-span-12 max-md:mb-5 md:col-span-3 font-bold",children:"Search"}),(0,o.jsx)(h.Z,{placeholder:"What are you looking for?",items:N,onSearched:e=>c(e),onInteracted:()=>S(!0)})]}),(0,o.jsx)("section",{className:"mb-14 lg:mb-28 relative z-40",children:(0,o.jsxs)("div",{className:"col-span-12 flex flex-wrap",children:[(0,o.jsx)(v.Z,{title:"Capability",capabilities:t,selected:u,setSelected:m,onSelected:e=>m(e),onInteracted:()=>S(!0)}),(0,o.jsx)(f.Z,{title:"Author",options:n,selected:y,setSelected:b,onSelected:e=>b(e),onInteracted:()=>S(!0)}),(0,o.jsx)(f.Z,{title:"Content Type",options:i,selected:g,setSelected:x,onSelected:e=>x(e),onInteracted:()=>S(!0)})]})})]})};m.propTypes={capabilities:l().array,authors:l().array,contentTypes:l().array,insights:l().array,onFilteredAndSearched:l().func};var y=n(65260),b=n(66261);let g=e=>{var t,n,i,r,l,f;let{data:v}=e,h=null==v?void 0:v.page,[g,x]=(0,p.useState)([]),[j,O]=(0,d.useQueryParam)("page",d.NumberParam),[w,S]=(0,p.useState)(!1),N=(0,p.useRef)(null),P=null==h?void 0:null===(t=h.insights)||void 0===t?void 0:t.map(e=>null==e?void 0:e.capabilities).flat().filter(e=>null!=e).sort((e,t)=>null==e?void 0:e.title.localeCompare(null==t?void 0:t.title)).reduce((e,t)=>(e.some(e=>{var n,o;return(null==e?void 0:null===(n=e.slug)||void 0===n?void 0:n.current)===(null==t?void 0:null===(o=t.slug)||void 0===o?void 0:o.current)})||e.push(t),e),[]),R=null==h?void 0:null===(n=h.insights)||void 0===n?void 0:n.map(e=>{var t;return null==e?void 0:null===(t=e.authors)||void 0===t?void 0:t.map(e=>null==e?void 0:e.slug.current)}).flat().filter(e=>null!=e).reduce((e,t)=>e.includes(t)?e:[...e,t],[]),_=null==h?void 0:null===(i=h.insights)||void 0===i?void 0:i.map(e=>{var t;return null==e?void 0:null===(t=e.contentType)||void 0===t?void 0:t.map(e=>{var t;return null==e?void 0:null===(t=e.slug)||void 0===t?void 0:t.current})}).flat().filter(e=>null!=e).reduce((e,t)=>e.includes(t)?e:[...e,t],[]),k=()=>{var e;b.NY.scrollTo((null===(e=N.current)||void 0===e?void 0:e.offsetTop)-40,{duration:1e3,smooth:!0,offset:0}),j&&j>2?O(j-1):O(1)},C=()=>{var e;b.NY.scrollTo((null===(e=N.current)||void 0===e?void 0:e.offsetTop)-40,{duration:1e3,smooth:!0,offset:0}),j&&9*j<=(null==g?void 0:g.length)?O(j+1):O(2)},T=(0,p.useMemo)(()=>{let e=j?9*j<(null==g?void 0:g.length):(null==g?void 0:g.length)>9;return(0,o.jsx)("section",{className:"mt-10",children:(0,o.jsx)("div",{className:"col-span-12 justify-center flex",children:(0,o.jsxs)("div",{className:"flex",children:[j&&j>1&&(0,o.jsx)("button",{className:"button uppercase mx-4 bg-bright-lime hover:bg-deep-lime hover:text-bright-lime",onClick:()=>k(),children:"Prev"}),e&&(0,o.jsx)("button",{className:"button uppercase mx-4 bg-bright-lime hover:bg-deep-lime hover:text-bright-lime",onClick:()=>C(),children:"Next"})]})})})},[null==g?void 0:g.length,j]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(a.Z,{title:null==h?void 0:h.title,metaTitle:null==h?void 0:null===(r=h.seo)||void 0===r?void 0:r.metaTitle,de
1scription:null==h?void 0:null===(l=h.seo)||void 0===l?void 0:l.metaDescription,image:null==h?void 0:null===(f=h.seo)||void 0===f?void 0:f.socialImage}),(0,o.jsxs)("div",{children:[(0,o.jsx)(c.Z,{content:null==h?void 0:h.pageHeader}),(0,o.jsx)("div",{ref:N}),(0,o.jsx)(m,{capabilities:P,authors:R,contentTypes:_,insights:null==h?void 0:h.insights,onFilteredAndSearched:e=>x(e),onInteracted:()=>S(!0)}),w?(0,o.jsxs)("div",{className:"mb-12 lg:mb-24",children:[(0,o.jsx)("section",{className:"gap-y-5 lg:gap-y-10",children:null==g?void 0:g.slice(j?(j-1)*9:0,(null!=j?j:1)*9).map(e=>(0,o.jsx)("div",{className:"col-span-12 md:col-span-6 lg:col-span-4",children:(0,o.jsx)(y.Z,{insight:e,fullHeight:!0,grid:!0})},null==e?void 0:e.id))}),T]}):(0,o.jsx)(u.Z,{modules:null==h?void 0:h.initialLayout}),(0,o.jsx)(u.Z,{modules:null==h?void 0:h.modules})]}),(0,o.jsx)(s.Z,{data:v,name:"data"})]})};g.propTypes={data:l().object};var x=n(5152),j=n.n(x),O=n(6120);let w=j()(()=>Promise.all([n.e(1963),n.e(4553),n.e(3911)]).then(n.bind(n,93911)),{loadableGenerated:{webpack:()=>[93911]},ssr:!1}),S=e=>{let{preview:t,data:n}=e;return t?(0,o.jsx)(w,{children:(0,o.jsx)(O.Z,{renderTemplate:e=>(0,o.jsx)(g,{data:e}),initialData:n,query:i.uF})}):(0,o.jsx)(g,{data:n})};S.propTypes={data:l().object,preview:l().bool};var N=!0,P=S},97295:function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.Collapse=void 0;var i,r=(i=n(67294))&&i.__esModule?i:{default:i};function l(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(p,e);var t,n,i,d=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=c(p);if(t){var i=c(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return a(e)}(this,e)});function p(e){var t;return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,p),u(a(t=d.call(this,e)),"timeout",void 0),u(a(t),"container",void 0),u(a(t),"content",void 0),u(a(t),"onResize",function(){if(clearTimeout(t.timeout),t.container&&t.content){var e=t.props,n=e.isOpened,o=e.checkTimeout,i=Math.floor(t.container.clientHeight),r=Math.floor(t.content.clientHeight),l=n&&1>=Math.abs(r-i),s=!n&&1>=Math.abs(i);l||s?t.onRest({isFullyOpened:l,isFullyClosed:s,isOpened:n,containerHeight:i,contentHeight:r}):(t.onWork({isFullyOpened:l,isFullyClosed:s,isOpened:n,containerHeight:i,contentHeight:r}),t.timeout=setTimeout(function(){return t.onResize()},o))}}),u(a(t),"onRest",function(e){var n=e.isFullyOpened,o=e.isFullyClosed,i=e.isOpened,r=e.containerHeight,l=e.contentHeight;if(t.container&&t.content){var s=i&&t.container.style.height==="".concat(l,"px"),a=!i&&"0px"===t.container.style.height;if(s||a){t.container.style.overflow=i?"initial":"hidden",t.container.style.height=i?"auto":"0px";var c=t.props.onRest;c&&c({isFullyOpened:n,isFullyClosed:o,isOpened:i,containerHeight:r,contentHeight:l})}}}),u(a(t),"onWork",function(e){var n=e.isFullyOpened,o=e.isFullyClosed,i=e.isOpened,r=e.containerHeight,l=e.contentHeight;if(t.container&&t.content){var s=i&&t.container.style.height==="".concat(l,"px"),a=!i&&"0px"===t.container.style.height;if(!s&&!a){t.container.style.overflow="hidden",t.container.style.height=i?"".concat(l,"px"):"0px";var c=t.props.onWork;c&&c({isFullyOpened:n,isFullyClosed:o,isOpened:i,containerHeight:r,contentHeight:l})}}}),u(a(t),"onRefContainer",function(e){t.container=e}),u(a(t),"onRefContent",function(e){t.content=e}),e.initialStyle?t.initialStyle=e.initialStyle:t.initialStyle=e.isOpened?{height:"auto",overflow:"initial"}:{height:"0px",overflow:"hidden"},t}return n=[{key:"componentDidMount",value:function(){this.onResize()}},{key:"shouldComponentUpdate",value:function(e){var t=this.props,n=t.theme,o=t.isOpened;return t.children!==e.children||o!==e.isOpened||Object.keys(n).some(function(t){return n[t]!==e.theme[t]})}},{key:"getSnapshotBeforeUpdate",value:function(){if(!this.container||!this.content)return null;if("auto"===this.container.style.height){var e=this.content.clientHeight;this.container.style.height="".concat(e,"px")}return null}},{key:"componentDidUpdate",value:function(){this.onResize()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout)}},{key:"render",value:function(){var e=this.props,t=e.theme,n=e.children,o=e.isOpened;return r.default.createElement("div",{ref:this.onRefContainer,className:t.collapse,style:this.initialStyle,"aria-hidden":!o},r.default.createElement("div",{ref:this.onRefContent,className:t.content},n))}}],l(p.prototype,n),i&&l(p,i),p}(r.default.Component);t.Collapse=d,u(d,"defaultProps",{theme:{collapse:"ReactCollapse--collapse",content:"ReactCollapse--content"},initialStyle:void 0,onRest:void 0,onWork:void 0,checkTimeout:50})},17619:function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
1Object.defineProperty(t,"__esModule",{value:!0}),t.UnmountClosed=void 0;var i,r=(i=n(67294))&&i.__esModule?i:{default:i},l=n(97295),s=["isOpened"],a=["isOpened"];function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(e,t){if(null==e)return{};var n,o,i=function(e,t){if(null==e)return{};var n,o,i={},r=Object.keys(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)n=r[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function f(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(b,e);var t,n,i,u=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=m(b);if(t){var i=m(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return h(e)}(this,e)});function b(e){var t;return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,b),y(h(t=u.call(this,e)),"onWork",function(e){var n=e.isOpened,o=p(e,s);t.setState({isResting:!1,isOpened:n});var i=t.props.onWork;i&&i(d({isOpened:n},o))}),y(h(t),"onRest",function(e){var n=e.isOpened,o=p(e,a);t.setState({isResting:!0,isOpened:n,isInitialRender:!1});var i=t.props.onRest;i&&i(d({isOpened:n},o))}),y(h(t),"getInitialStyle",function(){var e=t.state,n=e.isOpened;return e.isInitialRender&&n?{height:"auto",overflow:"initial"}:{height:"0px",overflow:"hidden"}}),t.state={isResting:!0,isOpened:e.isOpened,isInitialRender:!0},t}return n=[{key:"componentDidUpdate",value:function(e){var t=this.props.isOpened;e.isOpened!==t&&this.setState({isResting:!1,isOpened:t,isInitialRender:!1})}},{key:"render",value:function(){var e=this.state,t=e.isResting,n=e.isOpened;return t&&!n?null:r.default.createElement(l.Collapse,c({},this.props,{initialStyle:this.getInitialStyle(),onWork:this.onWork,onRest:this.onRest}))}}],f(b.prototype,n),i&&f(b,i),b}(r.default.PureComponent);t.UnmountClosed=b,y(b,"defaultProps",{onWork:void 0,onRest:void 0})},56180:function(e,t,n){"use strict";var o=n(97295).Collapse,i=n(17619).UnmountClosed;e.exports=i,i.Collapse=o,i.UnmountClosed=i}},function(e){e.O(0,[5393,9382,6261,5370,5739,6016,1588,9774,2888,179],function(){return e(e.s=3301)}),_N_E=e.O()}]);

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.