Socket
Socket
Sign inDemoInstall

ag-grid-react

Package Overview
Dependencies
9
Maintainers
4
Versions
128
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 29.2.0 to 29.3.0

2

bundles/ag-grid-react.amd.min.js

@@ -1,1 +0,1 @@

define(["exports","prop-types","react-dom/server","react-dom","react","agGrid"],function(e,t,S,r,oe,ae){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t;var se="default"in oe?oe.default:oe,w=function(e,t){return(w=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}))(e,t)};function n(e,t){function n(){this.constructor=e}w(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var ie=function(){return(ie=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function D(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),o=0,t=0;t<n;t++)for(var a=arguments[t],s=0,i=a.length;s<i;s++,o++)r[o]=a[s];return r}n(a,M=function(){}),a.prototype.getGui=function(){return this.eParentElement},a.prototype.destroy=function(){return this.componentInstance&&"function"==typeof this.componentInstance.destroy&&this.componentInstance.destroy(),this.portalManager.destroyPortal(this.portal)},a.prototype.createParentElement=function(e){var t=this.portalManager.getComponentWrappingElement(),t=document.createElement(t||"div");return t.classList.add("ag-react-container"),e.reactContainer=t},a.prototype.addParentContainerStyleAndClasses=function(){var t=this;this.componentInstance&&(this.componentInstance.getReactContainerStyle&&this.componentInstance.getReactContainerStyle()&&Object.assign(this.eParentElement.style,this.componentInstance.getReactContainerStyle()),this.componentInstance.getReactContainerClasses)&&this.componentInstance.getReactContainerClasses()&&this.componentInstance.getReactContainerClasses().forEach(function(e){return t.eParentElement.classList.add(e)})},a.prototype.statelessComponentRendered=function(){return 0<this.eParentElement.childElementCount||0<this.eParentElement.childNodes.length},a.prototype.getFrameworkComponentInstance=function(){return this.componentInstance},a.prototype.isStatelessComponent=function(){return this.statelessComponent},a.prototype.getReactComponentName=function(){return this.reactComponent.name},a.prototype.getMemoType=function(){return this.hasSymbol()?Symbol.for("react.memo"):60115},a.prototype.hasSymbol=function(){return"function"==typeof Symbol&&Symbol.for},a.prototype.isStateless=function(e){return"function"==typeof e&&!(e.prototype&&e.prototype.isReactComponent)||"object"==typeof e&&e.$$typeof===this.getMemoType()},a.prototype.hasMethod=function(e){var t=this.getFrameworkComponentInstance();return!!t&&null!==t[e]||this.fallbackMethodAvailable(e)},a.prototype.callMethod=function(e,t){var n,r=this,o=this.getFrameworkComponentInstance();return this.isStatelessComponent()?this.fallbackMethod(e,t&&t[0]?t[0]:{}):o?(n=o[e])?n.apply(o,t):this.fallbackMethodAvailable(e)?this.fallbackMethod(e,t&&t[0]?t[0]:{}):void 0:void setTimeout(function(){return r.callMethod(e,t)})},a.prototype.addMethod=function(e,t){this[e]=t};var M,o=a;function a(e,t,n){var r=M.call(this)||this;return r.portal=null,r.reactComponent=e,r.portalManager=t,r.componentType=n,r.statelessComponent=r.isStateless(r.reactComponent),r}var T=0;function s(){return"agPortalKey_"+ ++T}n(i,O=o),i.prototype.init=function(t){var n=this;return this.eParentElement=this.createParentElement(t),this.renderStaticMarkup(t),new ae.AgPromise(function(e){return n.createReactComponent(t,e)})},i.prototype.createReactComponent=function(e,t){var n=this,e=(this.isStatelessComponent()||(e.ref=function(e){n.componentInstance=e,n.addParentContainerStyleAndClasses(),n.removeStaticMarkup()}),oe.createElement(this.reactComponent,e)),e=r.createPortal(e,this.eParentElement,s());this.portal=e,this.portalManager.mountReactPortal(e,this,function(e){t(e),n.isStatelessComponent()&&(n.isSlowRenderer()&&n.removeStaticMarkup(),setTimeout(function(){n.removeStaticMarkup()}))})},i.prototype.fallbackMethodAvailable=function(e){return!1},i.prototype.fallbackMethod=function(e,t){},i.prototype.isSlowRenderer=function(){return this.staticRenderTime>=i.SLOW_RENDERING_THRESHOLD},i.prototype.isNullValue=function(){return""===this.staticMarkup},i.prototype.renderStaticMarkup=function(e){if(!this.parentComponent.isDisableStaticMarkup()&&this.componentType.cellRenderer){var t=console.error,e=oe.createElement(this.reactComponent,e);try{console.error=function(){};var n=Date.now(),r=S.renderToStaticMarkup(e);this.staticRenderTime=Date.now()-n,console.error=t,""===r?this.staticMarkup=r:r&&(this.staticMarkup=document.createElement("span"),this.staticMarkup.innerHTML=r,this.eParentElement.appendChild(this.staticMarkup))}catch(e){}finally{console.error=t}}},i.prototype.removeStaticMarkup=function(){!this.parentComponent.isDisableStaticMarkup()&&this.componentType.cellRenderer&&this.staticMarkup&&(this.staticMarkup.remove?(this.staticMarkup.remove(),this.staticMarkup=null):this.eParentElement.removeChild&&(this.eParentElement.removeChild(this.staticMarkup),this.staticMarkup=null))},i.prototype.rendered=function(){return this.isNullValue()||!!this.staticMarkup||this.isStatelessComponent()&&this.statelessComponentRendered()||!(this.isStatelessComponent()||!this.getFrameworkComponentInstance())},i.SLOW_RENDERING_THRESHOLD=3;var O,I=i;function i(e,t,n,r){e=O.call(this,e,n,r)||this;return e.staticMarkup=null,e.staticRenderTime=0,e.parentComponent=t,e}n(u,A=o),u.prototype.init=function(e){var t=this;return this.eParentElement=this.createParentElement(e),this.params=e,this.createOrUpdatePortal(e),new ae.AgPromise(function(e){return t.createReactComponent(e)})},u.prototype.createOrUpdatePortal=function(e){var t=this;this.isStatelessComponent()||(e.ref=function(e){t.componentInstance=e,t.addParentContainerStyleAndClasses()}),this.reactElement=oe.createElement(this.reactComponent,ie(ie({},e),{key:this.key})),this.portal=r.createPortal(this.reactElement,this.eParentElement,this.portalKey)},u.prototype.createReactComponent=function(t){this.portalManager.mountReactPortal(this.portal,this,function(e){t(e)})},u.prototype.isNullValue=function(){return this.valueRenderedIsNull(this.params)},u.prototype.rendered=function(){return this.isStatelessComponent()&&this.statelessComponentRendered()||!(this.isStatelessComponent()||!this.getFrameworkComponentInstance())},u.prototype.valueRenderedIsNull=function(e){if(this.componentType.cellRenderer){var t=console.error;try{return console.error=function(){},""===S.renderToStaticMarkup(oe.createElement(this.reactComponent,e))}catch(e){}finally{console.error=t}}return!1},u.prototype.refreshComponent=function(e){this.oldPortal=this.portal,this.createOrUpdatePortal(e),this.portalManager.updateReactPortal(this.oldPortal,this.portal)},u.prototype.fallbackMethod=function(e,t){e=this[e+"Component"];if(e)return e.bind(this)(t)},u.prototype.fallbackMethodAvailable=function(e){return!!this[e+"Component"]};var A,N=u;function u(e,t,n){e=A.call(this,e,t,n)||this;return e.oldPortal=null,e.key=s(),e.portalKey=s(),e}c.prototype.getPortals=function(){return this.portals},c.prototype.destroy=function(){this.destroyed=!0},c.prototype.destroyPortal=function(t){this.portals=this.portals.filter(function(e){return e!==t}),this.batchUpdate()},c.prototype.getComponentWrappingElement=function(){return this.wrappingElement},c.prototype.mountReactPortal=function(e,t,n){this.portals=D(this.portals,[e]),this.waitForInstance(t,n),this.batchUpdate()},c.prototype.updateReactPortal=function(e,t){this.portals[this.portals.indexOf(e)]=t,this.batchUpdate()},c.prototype.batchUpdate=function(){var e=this;this.hasPendingPortalUpdate||(setTimeout(function(){e.destroyed||e.parent.forceUpdate(function(){e.hasPendingPortalUpdate=!1})}),this.hasPendingPortalUpdate=!0)},c.prototype.waitForInstance=function(e,t,n){var r=this;if(void 0===n&&(n=Date.now()),this.destroyed)t(null);else if(e.rendered())t(e);else{if(Date.now()-n>=this.maxComponentCreationTimeMs&&!this.hasPendingPortalUpdate)return e.isNullValue()?void t(e):void console.error("AG Grid: React Component '"+e.getReactComponentName()+"' not created within "+this.maxComponentCreationTimeMs+"ms");window.setTimeout(function(){r.waitForInstance(e,t,n)})}},c.MAX_COMPONENT_CREATION_TIME_IN_MS=1e3;var k=c;function c(e,t,n){this.destroyed=!1,this.portals=[],this.hasPendingPortalUpdate=!1,this.wrappingElement=t||"div",this.parent=e,this.maxComponentCreationTimeMs=n||c.MAX_COMPONENT_CREATION_TIME_IN_MS}function _(e,t,n,r){var o=!e||e.componentFromFramework;if(!o){var a,s,i,o=e.newAgStackInstance();if(o)return i=!1,o.then(function(e){i?t.destroyBean(e):(s=(a=e).getGui(),n.appendChild(s),G(r,a))}),function(){i=!0,a&&(s&&s.parentElement&&s.parentElement.removeChild(s),t.destroyBean(a),r)&&G(r,void 0)}}}function G(e,t){e&&(e instanceof Function?e(t):e.current=t)}function ue(e){var t=oe.useRef(e),n=oe.useRef(),r=oe.useRef(!1),o=oe.useRef(!1),a=oe.useState(0)[1];r.current&&(o.current=!0),oe.useLayoutEffect(function(){return r.current||(n.current=t.current(),r.current=!0),a(function(e){return e+1}),function(){o.current&&n.current&&n.current()}},[])}function Q(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(function(e){return null!=e&&""!==e}).join(" ")}var ce=se.createContext({}),le=function(e){var t=oe.useRef(e),n=oe.useRef(),r=oe.useRef(!1),o=oe.useRef(!1),a=oe.useState(0)[1];r.current&&(o.current=!0),oe.useEffect(function(){return r.current||(n.current=t.current(),r.current=!0),a(function(e){return e+1}),function(){o.current&&n.current&&n.current()}},[])},P=(l.prototype.setClass=function(e,t){var n;return!!this.classesMap[e]==t?this:((n=new l).classesMap=ie({},this.classesMap),n.classesMap[e]=t,n)},l.prototype.toString=function(){var t=this;return Object.keys(this.classesMap).filter(function(e){return t.classesMap[e]}).join(" ")},l);function l(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this.classesMap={},e.forEach(function(e){t.classesMap[e]=!0})}function pe(e){return"function"==typeof e&&!(e.prototype&&e.prototype.isReactComponent)||"object"==typeof e&&e.$$typeof===("function"==typeof Symbol&&Symbol.for?Symbol.for("react.memo"):60115)}function ee(r,o){le(function(){var e,t=o.current,n=t.parentElement;if(n)return e=document.createComment(r),n.insertBefore(e,t),function(){n.removeChild(e)}})}var b=oe.forwardRef(function(n,e){var r=oe.useContext(ce).context,o=oe.useRef(null),t=oe.useRef(null),a=oe.useRef(null),s=oe.useRef(null),i=oe.useRef(null),u=oe.useState(),c=u[0],l=u[1],u=oe.useState(),p=u[0],f=u[1],u=oe.useState(),m=u[0],d=u[1],u=oe.useState(new P),h=u[0],C=u[1],u=oe.useState(new P("ag-hidden")),g=u[0],y=u[1],u=oe.useState(new P("ag-hidden")),R=u[0],E=u[1],u=oe.useState(new P("ag-invisible")),v=u[0],S=u[1],u=(oe.useImperativeHandle(e,function(){return{refresh:function(){return!1}}}),oe.useLayoutEffect(function(){return _(c,r,t.current)},[c]),ue(function(){var e={setInnerRenderer:function(e,t){l(e),d(t)},setChildCount:function(e){return f(e)},addOrRemoveCssClass:function(t,n){return C(function(e){return e.setClass(t,n)})},setContractedDisplayed:function(t){return E(function(e){return e.setClass("ag-hidden",!t)})},setExpandedDisplayed:function(t){return y(function(e){return e.setClass("ag-hidden",!t)})},setCheckboxVisible:function(t){return S(function(e){return e.setClass("ag-invisible",!t)})}},t=r.createBean(new ae.GroupCellRendererCtrl);return t.init(e,o.current,a.current,s.current,i.current,b,n),function(){r.destroyBean(t)}}),oe.useMemo(function(){return"ag-cell-wrapper "+h.toString()},[h])),e=oe.useMemo(function(){return"ag-group-expanded "+g.toString()},[g]),w=oe.useMemo(function(){return"ag-group-contracted "+R.toString()},[R]),M=oe.useMemo(function(){return"ag-group-checkbox "+v.toString()},[v]),T=c&&c.componentFromFramework,O=T?c.componentClass:void 0,I=null==c&&null!=m,m=ae._.escapeString(m,!0);return se.createElement("span",ie({className:u,ref:o},n.colDef?{}:{role:"gridcell"}),se.createElement("span",{className:e,ref:s}),se.createElement("span",{className:w,ref:i}),se.createElement("span",{className:M,ref:a}),se.createElement("span",{className:"ag-group-value",ref:t},I&&se.createElement(se.Fragment,null,m),T&&se.createElement(O,ie({},c.params))),se.createElement("span",{className:"ag-group-child-count"},p))}),F=oe.memo(function(e){var t=oe.useContext(ce).context,n=oe.useState(),r=n[0],o=n[1],n=oe.useState(),a=n[0],s=n[1],n=oe.useState(),i=n[0],u=n[1],n=oe.useState(),c=n[0],l=n[1],n=oe.useState(),p=n[0],f=n[1],n=oe.useState(),m=n[0],d=n[1],h=oe.useRef(null),C=oe.useRef(null),g=oe.useRef(null),y=oe.useRef(),R=e.ctrl,E=oe.useMemo(function(){return new ae.CssClassManager(function(){return h.current})},[]),n=(ue(function(){R.setComp({setWidth:function(e){return o(e)},addOrRemoveCssClass:function(e,t){return E.addOrRemoveCssClass(e,t)},setColId:function(e){return u(e)},setTitle:function(e){return s(e)},setAriaDescription:function(e){return f(e)},setAriaSort:function(e){return l(e)},setUserCompDetails:function(e){return d(e)},getUserCompInstance:function(){return y.current||void 0}},h.current,C.current,g.current);var e=R.getSelectAllGui();C.current.insertAdjacentElement("afterend",e)}),oe.useLayoutEffect(function(){return _(m,t,g.current,y)},[m]),oe.useEffect(function(){R.setDragSource(h.current)},[m]),oe.useMemo(function(){return{width:r}},[r])),e=oe.useMemo(function(){return!!((null==m?void 0:m.componentFromFramework)&&pe(m.componentClass))},[m]),v=m&&m.componentFromFramework,S=m&&m.componentClass;return se.createElement("div",{ref:h,className:"ag-header-cell",style:n,title:a,"col-id":i,"aria-sort":c,role:"columnheader",tabIndex:-1,"aria-description":p},se.createElement("div",{ref:C,className:"ag-header-cell-resize",role:"presentation"}),se.createElement("div",{ref:g,className:"ag-header-cell-comp-wrapper",role:"presentation"},v&&e&&se.createElement(S,ie({},m.params)),v&&!e&&se.createElement(S,ie({},m.params,{ref:y}))))}),B=oe.memo(function(e){var t=oe.useContext(ce).context,n=oe.useState(new P),r=n[0],o=n[1],n=oe.useState(new P),a=n[0],s=n[1],n=oe.useState("false"),i=n[0],u=n[1],n=oe.useState(),c=n[0],l=n[1],n=oe.useState(),p=n[0],f=n[1],n=oe.useState(),m=n[0],d=n[1],n=oe.useState(),h=n[0],C=n[1],n=oe.useState(),g=n[0],y=n[1],R=oe.useRef(null),E=oe.useRef(null),v=e.ctrl,n=(ue(function(){v.setComp({setWidth:function(e){return l(e)},addOrRemoveCssClass:function(t,n){return o(function(e){return e.setClass(t,n)})},setColId:function(e){return d(e)},setTitle:function(e){return f(e)},setUserCompDetails:function(e){return y(e)},setResizableDisplayed:function(t){s(function(e){return e.setClass("ag-hidden",!t)}),u(t?"false":"true")},setAriaExpanded:function(e){return C(e)}},R.current,E.current)}),oe.useLayoutEffect(function(){return _(g,t,R.current)},[g]),oe.useEffect(function(){var t=void 0;R.current.childNodes.forEach(function(e){null!=e&&e!==E.current&&(t=e)}),t&&v.setDragSource(t)},[g]),oe.useMemo(function(){return{width:c}},[c])),e=oe.useMemo(function(){return"ag-header-group-cell "+r.toString()},[r]),S=oe.useMemo(function(){return"ag-header-cell-resize "+a.toString()},[a]),w=g&&g.componentFromFramework,M=g&&g.componentClass;return se.createElement("div",{ref:R,className:e,style:n,title:p,"col-id":m,role:"columnheader",tabIndex:-1,"aria-expanded":h},w&&se.createElement(M,ie({},g.params)),se.createElement("div",{ref:E,"aria-hidden":i,className:S}))}),x=oe.memo(function(e){function t(e){R.current||null!=e&&(E.current&&E.current(e),R.current=!0)}var n=oe.useContext(ce).context,r=oe.useState(new P("ag-header-cell","ag-floating-filter")),o=r[0],a=r[1],r=oe.useState(new P),s=r[0],i=r[1],r=oe.useState(new P("ag-floating-filter-button","ag-hidden")),u=r[0],c=r[1],r=oe.useState("false"),l=r[0],p=r[1],r=oe.useState(),f=r[0],m=r[1],r=oe.useState(),d=r[0],h=r[1],C=oe.useRef(null),g=oe.useRef(null),r=oe.useRef(null),y=oe.useRef(null),R=oe.useRef(!1),E=oe.useRef(),v=oe.useRef(),S=(ue(function(){v.current=new ae.AgPromise(function(e){E.current=e})}),e.ctrl),e=(ue(function(){S.setComp({addOrRemoveCssClass:function(t,n){return a(function(e){return e.setClass(t,n)})},addOrRemoveBodyCssClass:function(t,n){return i(function(e){return e.setClass(t,n)})},setButtonWrapperDisplayed:function(t){c(function(e){return e.setClass("ag-hidden",!t)}),p(t?"false":"true")},setWidth:function(e){return m(e)},setCompDetails:function(e){return h(e)},getFloatingFilterComp:function(){return v.current||null},setMenuIcon:function(e){return y.current.appendChild(e)}},C.current,y.current,g.current)}),oe.useLayoutEffect(function(){return _(d,n,g.current,t)},[d]),oe.useMemo(function(){return{width:f}},[f])),w=oe.useMemo(function(){return o.toString()},[o]),M=oe.useMemo(function(){return s.toString()},[s]),T=oe.useMemo(function(){return u.toString()},[u]),O=oe.useMemo(function(){return!!(d&&d.componentFromFramework&&pe(d.componentClass))},[d]),I=d&&d.componentFromFramework,b=d&&d.componentClass;return se.createElement("div",{ref:C,className:w,style:e,role:"gridcell",tabIndex:-1},se.createElement("div",{ref:g,className:M,role:"presentation"},I&&O&&se.createElement(b,ie({},d.params)),I&&!O&&se.createElement(b,ie({},d.params,{ref:t}))),se.createElement("div",{ref:r,"aria-hidden":l,className:T,role:"presentation"},se.createElement("button",{ref:y,type:"button","aria-label":"Open Filter Menu",className:"ag-floating-filter-button-button",tabIndex:-1})))}),L=oe.memo(function(e){var s=oe.useContext(ce).gridOptionsService,t=oe.useState(),n=t[0],r=t[1],t=oe.useState(),o=t[0],a=t[1],t=oe.useState(),i=t[0],u=t[1],t=oe.useState(),c=t[0],l=t[1],t=oe.useState(),p=t[0],f=t[1],t=oe.useState([]),m=t[0],d=t[1],t=oe.useRef(null),h=e.ctrl,C=h.getType()===ae.HeaderRowType.COLUMN,g=h.getType()===ae.HeaderRowType.COLUMN_GROUP,y=h.getType()===ae.HeaderRowType.FLOATING_FILTER,R=oe.useCallback(function(e,t){var n,r,o=s.is("ensureDomOrder"),a=s.isDomLayout("print");return o||a?t:(n=ae._.mapById(e,function(e){return e.getInstanceId()}),r=ae._.mapById(t,function(e){return e.getInstanceId()}),D(e.filter(function(e){return r.has(e.getInstanceId())}),t.filter(function(e){return!n.has(e.getInstanceId())})))},[]),e=(ue(function(){h.setComp({setTransform:function(e){return r(e)},setHeight:function(e){return a(e)},setTop:function(e){return u(e)},setHeaderCtrls:function(t){return d(function(e){return R(e,t)})},setWidth:function(e){return l(e)},setAriaRowIndex:function(e){return f(e)}})}),oe.useMemo(function(){return{transform:n,height:o,top:i,width:c}},[n,o,i,c])),E=oe.useMemo(function(){var e=["ag-header-row"];return C&&e.push("ag-header-row-column"),g&&e.push("ag-header-row-column-group"),y&&e.push("ag-header-row-column-filter"),e.join(" ")},[]),v=oe.useCallback(function(e){switch(h.getType()){case ae.HeaderRowType.COLUMN_GROUP:return se.createElement(B,{ctrl:e,key:e.getInstanceId()});case ae.HeaderRowType.FLOATING_FILTER:return se.createElement(x,{ctrl:e,key:e.getInstanceId()});default:return se.createElement(F,{ctrl:e,key:e.getInstanceId()})}},[]);return se.createElement("div",{ref:t,className:E,role:"row",style:e,"aria-rowindex":p},m.map(v))}),p=oe.memo(function(n){function e(){return i.map(function(e){return se.createElement(L,{ctrl:e,key:e.getInstanceId()})})}var t=oe.useState(new P),r=t[0],o=t[1],t=oe.useState(!1),a=t[0],s=t[1],t=oe.useState([]),i=t[0],u=t[1],c=oe.useContext(ce).context,l=oe.useRef(null),p=oe.useRef(null),t="left"===n.pinned,f="right"===n.pinned,m=!t&&!f,d=(ue(function(){var e={setDisplayed:function(t){o(function(e){return e.setClass("ag-hidden",!t)}),s(!t)},setCtrls:function(e){return u(e)},setCenterWidth:function(e){p.current&&(p.current.style.width=e)},setContainerTransform:function(e){p.current&&(p.current.style.transform=e)},setPinnedContainerWidth:function(e){l.current.style.width=e,l.current.style.minWidth=e,l.current.style.maxWidth=e}},t=c.createBean(new ae.HeaderRowContainerCtrl(n.pinned));return t.setComp(e,l.current),function(){c.destroyBean(t)}}),oe.useMemo(function(){return r.toString()},[r]));return se.createElement(se.Fragment,null,t&&se.createElement("div",{ref:l,className:"ag-pinned-left-header "+d,"aria-hidden":a,role:"presentation"},e()),f&&se.createElement("div",{ref:l,className:"ag-pinned-right-header "+d,"aria-hidden":a,role:"presentation"},e()),m&&se.createElement("div",{ref:l,className:"ag-header-viewport "+d,role:"presentation"},se.createElement("div",{ref:p,className:"ag-header-container",role:"rowgroup"},e())))}),te=oe.memo(function(){var e=oe.useState(new P),t=e[0],r=e[1],e=oe.useState(),n=e[0],o=e[1],a=oe.useContext(ce).context,s=oe.useRef(null),e=(ue(function(){var e={addOrRemoveCssClass:function(t,n){return r(function(e){return e.setClass(t,n)})},setHeightAndMinHeight:function(e){return o(e)}},t=a.createBean(new ae.GridHeaderCtrl);return t.setComp(e,s.current,s.current),function(){a.destroyBean(t)}}),oe.useMemo(function(){return"ag-header "+t.toString()},[t])),i=oe.useMemo(function(){return{height:n,minHeight:n}},[n]);return se.createElement("div",{ref:s,className:e,style:i,role:"presentation"},se.createElement(p,{pinned:"left"}),se.createElement(p,{pinned:null}),se.createElement(p,{pinned:"right"}))}),fe=oe.memo(function(u){var e=oe.useState(),t=e[0],c=e[1],e=oe.useContext(ce),l=e.context,p=e.popupService,f=e.localeService,m=e.gridOptionsService;return le(function(){var e=u.editDetails,t=u.cellCtrl,n=u.eParentCell,r=e.compDetails,o=m.is("stopEditingWhenCellsLoseFocus"),a=l.createBean(new ae.PopupEditorWrapper(r.params)),r=a.getGui(),s=(u.jsChildComp&&(s=u.jsChildComp.getGui())&&r.appendChild(s),{column:t.getColumn(),rowNode:t.getRowNode(),type:"popupCellEditor",eventSource:n,ePopup:r,position:e.popupPosition,keepWithinBounds:!0}),e=p.positionPopupByComponent.bind(p,s),s=f.getLocaleTextFunc(),o=p.addPopup({modal:o,eChild:r,closeOnEsc:!0,closedCallback:function(){t.onPopupEditorClosed()},anchorToElement:n,positionCallback:e,ariaLabel:s("ariaLabelCellEditor","Cell Editor")}),i=o?o.hideFunc:void 0;return c(a),u.jsChildComp&&u.jsChildComp.afterGuiAttached&&u.jsChildComp.afterGuiAttached(),function(){null!=i&&i(),l.destroyBean(a)}}),se.createElement(se.Fragment,null,t&&u.wrappedContent&&r.createPortal(u.wrappedContent,t.getGui()))}),U=oe.memo(function(e){function t(){return se.createElement(se.Fragment,null,null!=E&&(i=S,u=re,c=T,l=k,p=ne,f=Q,m=(s=E).compDetails,s=s.value,d=!m,h=m&&m.componentFromFramework,C=m&&m.componentClass,g=null!=s&&s.toString?s.toString():s,se.createElement(se.Fragment,null,l?se.createElement("span",{role:"presentation",id:"cell-"+u,className:"ag-cell-value",ref:f},y()):y())),null!=v&&(s=v,l=te,u=ee,f=M.current,e=R,t=$,n=s.compDetails,r=n.componentClass,o=n.componentFromFramework&&!s.popup,a=n.componentFromFramework&&s.popup,n=!n.componentFromFramework&&s.popup,se.createElement(se.Fragment,null,o&&se.createElement(r,ie({},s.compDetails.params,{ref:l})),a&&se.createElement(fe,{editDetails:s,cellCtrl:e,eParentCell:f,wrappedContent:se.createElement(r,ie({},s.compDetails.params,{ref:u}))}),n&&t&&se.createElement(fe,{editDetails:s,cellCtrl:e,eParentCell:f,jsChildComp:t}))));var e,t,n,r,o,a,s,i,u,c,l,p,f,m,d,h,C,g;function y(){return se.createElement(se.Fragment,null,d&&se.createElement(se.Fragment,null,g),h&&!p&&se.createElement(C,ie({},m.params,{key:i,ref:c})),h&&p&&se.createElement(C,ie({},m.params,{key:i})))}}var n,r,o,a,s,i,u,c=oe.useContext(ce).context,R=e.cellCtrl,l=e.printLayout,p=e.editingRow,e=oe.useState(),E=e[0],f=e[1],e=oe.useState(),v=e[0],m=e[1],e=oe.useState(1),S=e[0],d=e[1],e=oe.useState(),_=e[0],B=e[1],e=oe.useState(),x=e[0],L=e[1],e=oe.useState(),U=e[0],H=e[1],e=oe.useState(),W=e[0],j=e[1],e=oe.useState(),V=e[0],K=e[1],e=oe.useState(!1),h=e[0],Y=e[1],e=oe.useState(!1),C=e[0],z=e[1],e=oe.useState(!1),g=e[0],q=e[1],e=oe.useState(),$=e[0],y=e[1],w=oe.useMemo(function(){return R.isForceWrapper()},[]),M=oe.useRef(null),T=oe.useRef(null),O=oe.useRef(),I=oe.useRef(),b=oe.useRef(),e=oe.useState(0),X=e[0],Z=e[1],e=oe.useCallback(function(e){b.current=e,Z(function(e){return e+1})},[]),P=oe.useRef(),A=oe.useState(0),N=A[0],J=A[1],Q=oe.useCallback(function(e){P.current=e,J(function(e){return e+1})},[]),k=w||null!=E&&(h||g||C),G=oe.useCallback(function(e,t){var n,r,o,a,s;(I.current=t)&&(e=e,n=t,s=(r=R).getColumn(),!e&&n.isPopup&&n.isPopup()&&(o="AG Grid: Found an issue in column "+s.getColId()+". If using React, specify an editor is a popup using colDef.cellEditorPopup=true. AG Grid React cannot depend on the editor component specifying if it's in a popup (via the isPopup() method on the editor), as React needs to know this information BEFORE the component is created.",ae._.doOnce(function(){return console.warn(o)},"jsEditorComp-isPopup-"+r.getColumn().getColId())),e&&n.getPopupPosition&&null!=n.getPopupPosition()&&(a="AG Grid: Found an issue in column "+s.getColId()+". If using React, specify an editor popup position using colDef.cellEditorPopupPosition=true. AG Grid React cannot depend on the editor component specifying it's position (via the getPopupPosition() method on the editor), as React needs to know this information BEFORE the component is created.",ae._.doOnce(function(){return console.warn(a)},"jsEditorComp-getPopupPosition-"+r.getColumn().getColId())),t.isCancelBeforeStart)&&t.isCancelBeforeStart()&&setTimeout(function(){R.stopEditing(!0),R.focusCell(!0)})},[]),ee=oe.useCallback(function(e){return G(!0,e)},[]),te=oe.useCallback(function(e){return G(!1,e)},[]),F=oe.useMemo(function(){return new ae.CssClassManager(function(){return M.current})},[]),D=(n=E,r=k,o=P.current,A=N,a=O,s=M,N=oe.useContext(ce),i=N.context,N.userComponentFactory,u=oe.useCallback(function(){var e,t=a.current;t&&((e=t.getGui())&&e.parentElement&&e.parentElement.removeChild(e),i.destroyBean(t),a.current=void 0)},[]),oe.useEffect(function(){var e=n&&n.compDetails&&!n.compDetails.componentFromFramework;if(null!=n&&e&&!(r&&null==o)){e=n.compDetails;if(a.current){var t=a.current,t=null!=t.refresh&&0==n.force&&t.refresh(e.params);if(!0===t||void 0===t)return;u()}t=e.newAgStackInstance();t&&(e=t.resolveNow(null,function(e){return e}))&&(t=e.getGui())&&((r?o:s.current).appendChild(t),a.current=e)}else u()},[n,r,A]),le(function(){return u}),oe.useRef()),ne=(oe.useEffect(function(){var e=D.current,t=E;D.current=E,null!=e&&null!=e.compDetails&&null!=t&&null!=t.compDetails&&(e=e.compDetails,t=t.compDetails,e.componentClass==t.componentClass)&&null!=T.current&&null!=T.current.refresh&&1!=T.current.refresh(t.params)&&d(function(e){return e+1})},[E]),oe.useEffect(function(){if(v&&!v.compDetails.componentFromFramework){var e,t=v.compDetails,n=!0===v.popup,r=function(e){e=e.newAgStackInstance();if(e)return e.resolveNow(null,function(e){return e})}(t);if(r)return e=r.getGui(),G(n,r),n||(null!=(t=(w?b:M).current)&&t.appendChild(e),r.afterGuiAttached&&r.afterGuiAttached()),y(r),function(){c.destroyBean(r),G(n,void 0),y(void 0),e&&e.parentElement&&e.parentElement.removeChild(e)}}},[v]),oe.useEffect(function(){var n,e;if(R&&c&&(b.current&&k))return n=[],e=function(e){var t;return e&&(t=e.getGui(),b.current.insertAdjacentElement("afterbegin",t),n.push(function(){c.destroyBean(e),ae._.removeFromParent(t)})),e},h&&e(R.createSelectionCheckbox()),g&&e(R.createDndSource()),C&&e(R.createRowDragComp()),function(){return n.forEach(function(e){return e()})}},[k,g,C,h,X]),ue(function(){var e;R&&(e=b.current||void 0,R.setComp({addOrRemoveCssClass:function(e,t){return F.addOrRemoveCssClass(e,t)},setUserStyles:function(e){return B(e)},getFocusableElement:function(){return M.current},setTabIndex:function(e){return L(e)},setRole:function(e){return H(e)},setColId:function(e){return j(e)},setTitle:function(e){return K(e)},setIncludeSelection:function(e){return Y(e)},setIncludeRowDrag:function(e){return z(e)},setIncludeDndSource:function(e){return q(e)},getCellEditor:function(){return I.current||null},getCellRenderer:function(){return T.current||O.current},getParentOfValue:function(){return P.current||b.current||M.current},setRenderDetails:function(e,t,n){f({value:t,compDetails:e,force:n})},setEditDetails:function(e,t,n){e?(m({compDetails:e,popup:t,popupPosition:n}),t||f(void 0)):m(void 0)}},M.current,e,l,p))}),oe.useMemo(function(){return!!(E&&E.compDetails&&E.compDetails.componentFromFramework&&pe(E.compDetails.componentClass))},[E])),re=(oe.useEffect(function(){var e;M.current&&(F.addOrRemoveCssClass("ag-cell-value",!k),F.addOrRemoveCssClass("ag-cell-inline-editing",!!v&&!v.popup),F.addOrRemoveCssClass("ag-cell-popup-editing",!!v&&!!v.popup),F.addOrRemoveCssClass("ag-cell-not-inline-editing",!v||!!v.popup),null!=(e=R.getRowCtrl()))&&e.setInlineEditingCss(!!v)}),oe.useMemo(function(){return R.getInstanceId()},[]));return se.createElement("div",{ref:M,style:_,tabIndex:x,role:U,"col-id":W,title:V},k?se.createElement("div",{className:"ag-cell-wrapper",role:"presentation",ref:e},t()):t())}),H=oe.memo(function(e){var t=oe.useContext(ce).context,n=e.rowCtrl,r=e.containerType,e=oe.useState(),o=e[0],a=e[1],e=oe.useState(),s=e[0],i=e[1],e=oe.useState(),u=e[0],c=e[1],e=oe.useState(),l=e[0],p=e[1],e=oe.useState(),f=e[0],m=e[1],e=oe.useState(),d=e[0],h=e[1],e=oe.useState({list:[],instanceIdMap:new Map}),C=e[0],g=e[1],e=oe.useState(),y=e[0],R=e[1],e=oe.useState(!1),E=e[0],v=e[1],e=oe.useState(n.getInitialRowTop(r)),S=e[0],w=e[1],e=oe.useState(n.getInitialTransform(r)),M=e[0],T=e[1],O=oe.useRef(null),I=oe.useRef(),b=oe.useRef(!1),e=oe.useState(0),P=e[0],A=e[1],N=(oe.useEffect(function(){var e;b.current||!y||10<P||((e=null==(e=O.current)?void 0:e.firstChild)?(n.setupDetailRowAutoHeight(e),b.current=!0):A(function(e){return e+1}))},[y,P]),oe.useMemo(function(){return new ae.CssClassManager(function(){return O.current})},[])),e=(ue(function(){if(n.isAlive())return n.setComp({setTop:function(e){return w(e)},setTransform:function(e){return T(e)},addOrRemoveCssClass:function(e,t){return N.addOrRemoveCssClass(e,t)},setDomOrder:function(e){return v(e)},setRowIndex:function(e){return a(e)},setRowId:function(e){return i(e)},setRowBusinessKey:function(e){return p(e)},setTabIndex:function(e){return m(e)},setUserStyles:function(e){return h(e)},setRole:function(e){return c(e)},setCellCtrls:function(i){return g(function(e){return n=e,e=i,E?(t={list:e,instanceIdMap:new Map},e.forEach(function(e){return t.instanceIdMap.set(e.getInstanceId(),e)}),t):(r=[],o=[],a=new Map,s=new Map,e.forEach(function(e){return s.set(e.getInstanceId(),e)}),n.list.forEach(function(e){var t=e.getInstanceId();s.has(t)&&(r.push(e),a.set(t,e))}),e.forEach(function(e){var t=e.getInstanceId();n.instanceIdMap.has(t)||(o.push(e),a.set(t,e))}),{list:D(r,o),instanceIdMap:a});var n,t,r,o,a,s})},showFullWidth:function(e){return R(e)},getFullWidthCellRenderer:function(){return I.current}},O.current,r),function(){n.unsetComp(r)}}),oe.useLayoutEffect(function(){return _(y,t,O.current,I)},[y]),oe.useMemo(function(){var e={top:S,transform:M};return Object.assign(e,d),e},[S,M,d])),k=y&&y.componentFromFramework,G=null!=C,F=oe.useMemo(function(){return!!((null==y?void 0:y.componentFromFramework)&&pe(y.componentClass))},[y]);return se.createElement("div",{ref:O,role:u,style:e,"row-index":o,"row-id":s,"row-business-key":l,tabIndex:f},G&&C.list.map(function(e){return se.createElement(U,{cellCtrl:e,editingRow:n.isEditing(),printLayout:n.isPrintLayout(),key:e.getInstanceId()})}),k&&(u=y.componentClass,se.createElement(se.Fragment,null,F&&se.createElement(u,ie({},y.params)),!F&&se.createElement(u,ie({},y.params,{ref:I})))))}),ne=oe.memo(function(e){var r=oe.useContext(ce).context,t=oe.useState(""),n=t[0],o=t[1],t=oe.useState([]),a=t[0],s=t[1],t=oe.useState(""),i=t[0],u=t[1],c=e.name,l=oe.useMemo(function(){return ae.getRowContainerTypeForName(c)},[c]),p=oe.useRef(null),f=oe.useRef(null),m=oe.useRef(null),d=oe.useRef([]),h=oe.useRef(!1),C=oe.useMemo(function(){return ae.RowContainerCtrl.getRowContainerCssClasses(c)},[c]),t=oe.useMemo(function(){return Q(C.wrapper)},[]),e=oe.useMemo(function(){return Q(C.viewport)},[]),g=oe.useMemo(function(){return Q(C.container)},[]),y=c===ae.RowContainerName.CENTER,R=c===ae.RowContainerName.TOP_CENTER||c===ae.RowContainerName.BOTTOM_CENTER||c===ae.RowContainerName.STICKY_TOP_CENTER,E=!y&&!R;function v(){s(function(e){var t,n=d.current;return h.current?n:(t=e.filter(function(e){return 0<=n.indexOf(e)}),e=n.filter(function(e){return t.indexOf(e)<0}),D(t,e))})}ee(" AG Row Container "+c+" ",y?p:R?f:m),ue(function(){var e=[],t={setViewportHeight:o,setRowCtrls:function(e){d.current!==e&&(d.current=e,v())},setDomOrder:function(e){h.current!=e&&(h.current=e,v())},setContainerWidth:function(e){return u(e)}},n=r.createBean(new ae.RowContainerCtrl(c));return e.push(n),n.setComp(t,m.current,f.current,p.current),function(){r.destroyBeans(e)}});function S(){return se.createElement("div",{className:g,ref:m,role:a.length?"rowgroup":"presentation",style:M},a.map(function(e){return se.createElement(H,{rowCtrl:e,containerType:l,key:e.getInstanceId()})}))}var w=oe.useMemo(function(){return{height:n}},[n]),M=oe.useMemo(function(){return{width:i}},[i]);return se.createElement(se.Fragment,null,y&&se.createElement("div",{className:t,ref:p,role:"presentation"},se.createElement("div",{className:e,ref:f,role:"presentation",style:w},S())),R&&se.createElement("div",{className:e,ref:f,role:"presentation",style:w},S()),E&&S())}),W=oe.memo(function(){function o(e){return se.createElement(ne,{name:e,key:e+"-container"})}function e(e){var t=e.section,n=e.children,r=e.className,e=e.style;return se.createElement("div",{ref:t,className:r,role:"presentation",style:e},n.map(o))}var t=oe.useContext(ce),a=t.context,s=t.agStackComponentsRegistry,i=t.resizeObserverService,t=oe.useState(""),n=t[0],u=t[1],t=oe.useState(0),r=t[0],c=t[1],t=oe.useState(0),l=t[0],p=t[1],t=oe.useState(0),f=t[0],m=t[1],t=oe.useState(0),d=t[0],h=t[1],t=oe.useState("0px"),C=t[0],g=t[1],t=oe.useState("0px"),y=t[0],R=t[1],t=oe.useState("100%"),E=t[0],v=t[1],t=oe.useState(""),S=t[0],w=t[1],t=oe.useState(""),M=t[0],_=t[1],t=oe.useState(""),T=t[0],B=t[1],t=oe.useState(null),O=t[0],x=t[1],t=oe.useState(""),I=t[0],L=t[1],t=oe.useState(null),b=t[0],U=t[1],t=oe.useState("ag-layout-normal"),P=t[0],H=t[1],W=oe.useMemo(function(){return new ae.CssClassManager(function(){return A.current})},[]),A=oe.useRef(null),N=oe.useRef(null),k=oe.useRef(null),G=oe.useRef(null),F=oe.useRef(null),D=oe.useRef(null),t=(ee(" AG Grid Body ",A),ee(" AG Pinned Top ",N),ee(" AG Sticky Top ",k),ee(" AG Middle ",F),ee(" AG Pinned Bottom ",D),le(function(){var e,t,n=[],r=[];if(a)return e=function(e){e=s.getComponentClass(e),e=a.createBean(new e);return n.push(e),e},A.current.appendChild(document.createComment(" AG Fake Horizontal Scroll ")),A.current.appendChild(e("AG-FAKE-HORIZONTAL-SCROLL").getGui()),A.current.appendChild(document.createComment(" AG Overlay Wrapper ")),A.current.appendChild(e("AG-OVERLAY-WRAPPER").getGui()),G.current.appendChild(document.createComment(" AG Fake Vertical Scroll ")),G.current.appendChild(e("AG-FAKE-VERTICAL-SCROLL").getGui()),e={setRowAnimationCssOnBodyViewport:u,setColumnCount:c,setRowCount:p,setTopHeight:m,setBottomHeight:h,setStickyTopHeight:g,setStickyTopTop:R,setStickyTopWidth:v,setTopDisplay:w,setBottomDisplay:_,setColumnMovingCss:function(e,t){return W.addOrRemoveCssClass(e,t)},updateLayoutClasses:H,setAlwaysVerticalScrollClass:x,setPinnedTopBottomOverflowY:L,setCellSelectableCss:U,setBodyViewportWidth:B,registerBodyViewportResizeListener:function(e){var t=i.observeResize(F.current,e);r.push(function(){return t()})}},t=a.createBean(new ae.GridBodyCtrl),n.push(t),t.setComp(e,A.current,F.current,N.current,D.current,k.current),function(){a.destroyBeans(n),r.forEach(function(e){return e()})}}),oe.useMemo(function(){return Q("ag-root","ag-unselectable",P)},[P])),j=oe.useMemo(function(){return Q("ag-body-viewport",n,P,O,b)},[n,P,O,b]),V=oe.useMemo(function(){return Q("ag-body",P)},[P]),K=oe.useMemo(function(){return Q("ag-body-clipper",P)},[P]),Y=oe.useMemo(function(){return Q("ag-floating-top",b)},[b]),z=oe.useMemo(function(){return Q("ag-sticky-top",b)},[b]),q=oe.useMemo(function(){return Q("ag-floating-bottom",b)},[b]),$=oe.useMemo(function(){return{height:f,minHeight:f,display:S,overflowY:I}},[f,S,I]),X=oe.useMemo(function(){return{height:C,top:y,width:E}},[C,y,E]),Z=oe.useMemo(function(){return{height:d,minHeight:d,display:M,overflowY:I}},[d,M,I]),J=oe.useMemo(function(){return{width:T}},[T]);return se.createElement("div",{ref:A,className:t,role:"treegrid","aria-colcount":r,"aria-rowcount":l},se.createElement(te,null),e({section:N,className:Y,style:$,children:[ae.RowContainerName.TOP_LEFT,ae.RowContainerName.TOP_CENTER,ae.RowContainerName.TOP_RIGHT,ae.RowContainerName.TOP_FULL_WIDTH]}),se.createElement("div",{className:V,ref:G,role:"presentation"},se.createElement("div",{className:K,role:"presentation"},e({section:F,className:j,style:J,children:[ae.RowContainerName.LEFT,ae.RowContainerName.CENTER,ae.RowContainerName.RIGHT,ae.RowContainerName.FULL_WIDTH]}))),e({section:k,className:z,style:X,children:[ae.RowContainerName.STICKY_TOP_LEFT,ae.RowContainerName.STICKY_TOP_CENTER,ae.RowContainerName.STICKY_TOP_RIGHT,ae.RowContainerName.STICKY_TOP_FULL_WIDTH]}),e({section:D,className:q,style:Z,children:[ae.RowContainerName.BOTTOM_LEFT,ae.RowContainerName.BOTTOM_CENTER,ae.RowContainerName.BOTTOM_RIGHT,ae.RowContainerName.BOTTOM_FULL_WIDTH]}))}),o=oe.forwardRef(function(e,t){function n(e){var t="top"===e?ae.TabGuardClassNames.TAB_GUARD_TOP:ae.TabGuardClassNames.TAB_GUARD_BOTTOM;return se.createElement("div",{className:ae.TabGuardClassNames.TAB_GUARD+" "+t,role:"presentation",tabIndex:p,ref:"top"===e?u:c})}var r=e.children,o=e.eFocusableElement,a=e.onTabKeyDown,s=e.gridCtrl,i=oe.useContext(ce).context,u=oe.useRef(null),c=oe.useRef(null),l=oe.useRef(),e=oe.useState(),p=e[0],f=e[1];oe.useImperativeHandle(t,function(){return{forceFocusOutOfContainer:function(){l.current.forceFocusOutOfContainer()}}}),le(function(){var e=u.current,t=c.current,n=l.current=i.createBean(new ae.TabGuardCtrl({comp:{setTabIndex:function(e){return f(null==e?void 0:parseInt(e,10))}},eTopGuard:e,eBottomGuard:t,eFocusableElement:o,onTabKeyDown:a,focusInnerElement:function(e){return s.focusInnerElement(e)}}));return function(){i.destroyBean(n)}});return se.createElement(se.Fragment,null,n("top"),r,n("bottom"))}),j=oe.memo(o),V=oe.memo(function(e){var p=e.context,e=oe.useState(""),t=e[0],n=e[1],e=oe.useState(""),r=e[0],o=e[1],e=oe.useState(""),a=e[0],s=e[1],e=oe.useState(null),i=e[0],u=e[1],e=oe.useState(null),c=e[0],l=e[1],e=oe.useState(!1),f=e[0],m=e[1],e=oe.useState(),d=e[0],h=e[1],C=oe.useRef(null),g=oe.useRef(null),y=oe.useRef(),R=oe.useRef(null),E=oe.useRef(function(){}),e=oe.useCallback(function(){},[]),v=oe.useMemo(function(){return p.getBean("beans")},[]),S=(ee(" AG Grid ",g),le(function(){var e=C.current=p.createBean(new ae.GridCtrl);return function(){p.destroyBean(e),C.current=null}}),le(function(){var e=C.current,t=(E.current=e.focusInnerElement.bind(e),{destroyGridUi:function(){},setRtlClass:n,addOrRemoveKeyboardFocusClass:function(e){return o(e?ae.FocusService.AG_KEYBOARD_FOCUS:"")},forceFocusOutOfContainer:function(){y.current.forceFocusOutOfContainer()},updateLayoutClasses:s,getFocusableContainers:function(){var e=[],t=g.current.querySelector(".ag-root"),n=g.current.querySelector(".ag-side-bar:not(.ag-hidden)");return t&&e.push(t),n&&e.push(n),e},setCursor:u,setUserSelect:l});e.setComp(t,g.current,g.current),m(!0)}),oe.useEffect(function(){var e,t,n,r,o,a,s,i,u,c,l;if(d)return e=C.current,t=[],c=(o=v.agStackComponentsRegistry).getComponentClass("AG-GRID-HEADER-DROP-ZONES"),u=o.getComponentClass("AG-SIDE-BAR"),n=o.getComponentClass("AG-STATUS-BAR"),r=o.getComponentClass("AG-WATERMARK"),o=o.getComponentClass("AG-PAGINATION"),a=[],s=g.current,i=R.current,e.showDropZones()&&c&&(l=(c=p.createBean(new c)).getGui(),s.insertAdjacentElement("afterbegin",l),a.push(l),t.push(c)),e.showSideBar()&&u&&(l=(c=p.createBean(new u)).getGui(),(u=i.querySelector(".ag-tab-guard-bottom"))&&(u.insertAdjacentElement("beforebegin",l),a.push(l)),t.push(c)),e.showStatusBar()&&n&&(l=(i=p.createBean(new n)).getGui(),s.insertAdjacentElement("beforeend",l),a.push(l),t.push(i)),o&&(l=(u=p.createBean(new o)).getGui(),s.insertAdjacentElement("beforeend",l),a.push(l),t.push(u)),e.showWatermark()&&r&&(l=(c=p.createBean(new r)).getGui(),s.insertAdjacentElement("beforeend",l),a.push(l),t.push(c)),function(){p.destroyBeans(t),a.forEach(function(e){e.parentElement&&e.parentElement.removeChild(e)})}},[d]),oe.useMemo(function(){return Q("ag-root-wrapper",t,r,a)},[t,r,a])),w=oe.useMemo(function(){return Q("ag-root-wrapper-body","ag-focus-managed",a)},[a]),M=oe.useMemo(function(){return{userSelect:null!=c?c:"",WebkitUserSelect:null!=c?c:"",cursor:null!=i?i:""}},[c,i]),T=R.current,O=oe.useCallback(function(e){y.current=e,h(!0)},[]);return se.createElement("div",{ref:g,className:S,style:M,role:"presentation"},se.createElement("div",{className:w,ref:R,role:"presentation"},f&&T&&se.createElement(ce.Provider,{value:v},se.createElement(j,{ref:O,eFocusableElement:T,onTabKeyDown:e,gridCtrl:C.current},se.createElement(W,null)))))});n(f,K=oe.Component),f.prototype.render=function(){return this.state.context,this.state.context&&(this.renderedAfterMount=!0),se.createElement("div",{style:this.createStyleForDiv(),className:this.props.className,ref:this.eGui},this.state.context&&se.createElement(V,{context:this.state.context}),this.portalManager.getPortals())},f.prototype.createStyleForDiv=function(){return ie({height:"100%"},this.props.containerStyle||{})},f.prototype.componentDidMount=function(){var e,t=this;this.mounted||(this.mounted=!0,e=this.props.modules||[],e={providedBeanInstances:{frameworkComponentWrapper:new z(this.portalManager)},modules:e,frameworkOverrides:new X(!0)},this.gridOptions=this.props.gridOptions||{},this.gridOptions=ae.ComponentUtil.copyAttributesToGridOptions(this.gridOptions,this.props),this.checkForDeprecations(this.props),(new ae.GridCoreCreator).create(this.eGui.current,this.gridOptions,function(e){t.setState({context:e}),e.getBean(ae.CtrlsService.NAME).whenReady(function(){t.api=t.gridOptions.api,t.columnApi=t.gridOptions.columnApi,t.props.setGridApi(t.api,t.columnApi),t.destroyFuncs.push(function(){return t.api.destroy()})})},function(e){e.getBean(ae.CtrlsService.NAME).whenReady(function(){t.whenReadyFuncs.forEach(function(e){return e()}),t.whenReadyFuncs.length=0,t.ready=!0})},e))},f.prototype.checkForDeprecations=function(e){e.rowDataChangeDetectionStrategy&&ae._.doOnce(function(){return console.warn("AG Grid: Since v29 rowDataChangeDetectionStrategy has been deprecated. Row data property changes will be compared by reference via triple equals ===. See https://ag-grid.com/react-data-grid/react-hooks/")},"rowDataChangeDetectionStrategy_Deprecation")},f.prototype.componentWillUnmount=function(){this.renderedAfterMount&&(this.destroyFuncs.forEach(function(e){return e()}),this.destroyFuncs.length=0)},f.prototype.componentDidUpdate=function(e){this.processPropsChanges(e,this.props)},f.prototype.processPropsChanges=function(e,t){var n={};this.extractGridPropertyChanges(e,t,n),this.processChanges(n)},f.prototype.extractGridPropertyChanges=function(t,n,r){var o=!!n.debug;Object.keys(n).forEach(function(e){ae.ComponentUtil.ALL_PROPERTIES_SET.has(e)&&t[e]!==n[e]&&(o&&console.log("agGridReact: ["+e+"] property changed"),r[e]={previousValue:t[e],currentValue:n[e]})}),ae.ComponentUtil.EVENT_CALLBACKS.forEach(function(e){t[e]!==n[e]&&(o&&console.log("agGridReact: ["+e+"] event callback changed"),r[e]={previousValue:t[e],currentValue:n[e]})})},f.prototype.processChanges=function(e){var t=this;this.processWhenReady(function(){return ae.ComponentUtil.processOnChange(e,t.api)})},f.prototype.processWhenReady=function(e){this.ready?e():this.whenReadyFuncs.push(e)};var K,E=f;function f(e){var t=K.call(this,e)||this;return t.props=e,t.destroyFuncs=[],t.eGui=se.createRef(),t.whenReadyFuncs=[],t.ready=!1,t.renderedAfterMount=!1,t.mounted=!1,t.state={context:void 0},t.portalManager=new k(t,e.componentWrappingElement,e.maxComponentCreationTimeMs),t.destroyFuncs.push(function(){return t.portalManager.destroy()}),t}n(m,Y=ae.BaseComponentWrapper),m.prototype.createWrapper=function(e,t){return new N(e,this.parent,t)};var Y,z=m;function m(e){var t=Y.call(this)||this;return t.parent=e,t}var q,$=oe.forwardRef(function(r,e){var t=oe.useContext(ce),o=t.ctrlsFactory,a=t.context,s=t.gridOptionsService,i=t.resizeObserverService,u=t.clientSideRowModel,c=t.serverSideRowModel,t=oe.useState(new P),n=t[0],l=t[1],t=oe.useState(new P),p=t[0],f=t[1],t=oe.useState(),m=t[0],d=t[1],t=oe.useState(),h=t[0],C=t[1],g=oe.useRef(),y=oe.useRef(null),t=oe.useMemo(function(){return n.toString()+" ag-details-row"},[n]),R=oe.useMemo(function(){return p.toString()+" ag-details-grid"},[p]),e=(e&&oe.useImperativeHandle(e,function(){return{refresh:function(){return g.current.refresh()}}}),le(function(){r.template&&"string"==typeof r.template&&console.warn("AG Grid: detailCellRendererParams.template is not supported by React - this only works with frameworks that work against String templates. To change the template, please provide your own React Detail Cell Renderer.")}),le(function(){var e,t={addOrRemoveCssClass:function(t,n){return l(function(e){return e.setClass(t,n)})},addOrRemoveDetailGridCssClass:function(t,n){return f(function(e){return e.setClass(t,n)})},setDetailGrid:function(e){return d(e)},setRowData:function(e){return C(e)},getGui:function(){return y.current}},n=o.getInstance("detailCellRenderer");if(n)return a.createBean(n),n.init(t,r),g.current=n,s.is("detailRowAutoHeight")&&(e=i.observeResize(y.current,t=function(){var e;null!=y.current&&null!=(e=y.current.clientHeight)&&0<e&&setTimeout(function(){r.node.setRowHeight(e),u?u.onRowHeightChanged():c&&c.onRowHeightChanged()},0)}),t()),function(){a.destroyBean(n),e&&e()}}),oe.useCallback(function(e,t){g.current.registerDetailWithMaster(e,t)},[]));return se.createElement("div",{className:t,ref:y},m&&se.createElement(E,ie({className:R},m,{rowData:h,setGridApi:e})))}),X=(n(d,q=ae.VanillaFrameworkOverrides),d.prototype.frameworkComponent=function(e){if(this.reactUi)return this.frameworkComponents[e]},d.prototype.isFrameworkComponent=function(e){return!(!e||(e=e.prototype)&&"getGui"in e)},d);function d(e){var t=q.call(this)||this;return t.frameworkComponents={agGroupCellRenderer:b,agGroupRowRenderer:b,agDetailCellRenderer:$},t.reactUi=e,t}n(C,Z=oe.Component),C.prototype.render=function(){var t=this;return se.createElement("div",{style:this.createStyleForDiv(),className:this.props.className,ref:function(e){t.eGridDiv=e}},this.portalManager.getPortals())},C.prototype.createStyleForDiv=function(){return ie({height:"100%"},this.props.containerStyle||{})},C.prototype.componentDidMount=function(){var e=this.props.modules||[],e={providedBeanInstances:{agGridReact:this,frameworkComponentWrapper:new re(this,this.portalManager)},modules:e,frameworkOverrides:new X(!1)},t=this.props.gridOptions||{};this.gridOptions=ae.ComponentUtil.copyAttributesToGridOptions(t,this.props),this.checkForDeprecations(this.props),new ae.Grid(this.eGridDiv,this.gridOptions,e),this.api=this.gridOptions.api,this.columnApi=this.gridOptions.columnApi,this.props.setGridApi(this.api,this.columnApi)},C.prototype.checkForDeprecations=function(e){e.rowDataChangeDetectionStrategy&&ae._.doOnce(function(){return console.warn("AG Grid: Since v29 rowDataChangeDetectionStrategy has been deprecated. Row data property changes will be compared by reference via triple equals ===. See https://ag-grid.com/react-data-grid/react-hooks/")},"rowDataChangeDetectionStrategy_Deprecation")},C.prototype.shouldComponentUpdate=function(e){return this.processPropsChanges(this.props,e),!1},C.prototype.componentDidUpdate=function(e){this.processPropsChanges(e,this.props)},C.prototype.processPropsChanges=function(e,t){var n={};this.extractGridPropertyChanges(e,t,n),this.processSynchronousChanges(n),this.processAsynchronousChanges(n)},C.prototype.extractGridPropertyChanges=function(t,n,r){var o=!!n.debug;Object.keys(n).forEach(function(e){ae.ComponentUtil.ALL_PROPERTIES_SET.has(e)&&t[e]!==n[e]&&(o&&console.log("agGridReact: ["+e+"] property changed"),r[e]={previousValue:t[e],currentValue:n[e]})}),ae.ComponentUtil.EVENT_CALLBACKS.forEach(function(e){t[e]!==n[e]&&(o&&console.log("agGridReact: ["+e+"] event callback changed"),r[e]={previousValue:t[e],currentValue:n[e]})})},C.prototype.componentWillUnmount=function(){this.api&&(this.api.destroy(),this.api=null),this.destroyed=!0,this.portalManager.destroy()},C.prototype.isDisableStaticMarkup=function(){return!0===this.props.disableStaticMarkup},C.prototype.isLegacyComponentRendering=function(){return!0===this.props.legacyComponentRendering},C.prototype.processSynchronousChanges=function(e){var t,n=ie({},e);return 0<Object.keys(n).length&&(t={},this.SYNCHRONOUS_CHANGE_PROPERTIES.forEach(function(e){n[e]&&(t[e]=n[e],delete n[e])}),0<Object.keys(t).length)&&this.api&&ae.ComponentUtil.processOnChange(t,this.api),n},C.prototype.processAsynchronousChanges=function(e){var t=this;0<Object.keys(e).length&&window.setTimeout(function(){t.api&&ae.ComponentUtil.processOnChange(e,t.api)})},C.defaultProps={legacyComponentRendering:!1,disableStaticMarkup:!1,maxComponentCreationTimeMs:C.MAX_COMPONENT_CREATION_TIME_IN_MS=1e3};var Z,h=C;function C(e){var t=Z.call(this,e)||this;return t.props=e,t.api=null,t.destroyed=!1,t.SYNCHRONOUS_CHANGE_PROPERTIES=["context"],t.portalManager=new k(t,e.componentWrappingElement,e.maxComponentCreationTimeMs),t}function g(e,t){e.forEach(function(e){h[e]=t})}h.propTypes={gridOptions:t.object},g(ae.ComponentUtil.EVENT_CALLBACKS,t.func),g(ae.ComponentUtil.BOOLEAN_PROPERTIES,t.bool),g(ae.ComponentUtil.STRING_PROPERTIES,t.string),g(ae.ComponentUtil.OBJECT_PROPERTIES,t.object),g(ae.ComponentUtil.ARRAY_PROPERTIES,t.array),g(ae.ComponentUtil.NUMBER_PROPERTIES,t.number),g(ae.ComponentUtil.FUNCTION_PROPERTIES,t.func);n(y,J=ae.BaseComponentWrapper),y.prototype.createWrapper=function(e,t){return this.agGridReact.isLegacyComponentRendering()?new I(e,this.agGridReact,this.portalManager,t):new N(e,this.portalManager,t)};var J,re=y;function y(e,t){var n=J.call(this)||this;return n.agGridReact=e,n.portalManager=t,n}n(v,R=oe.Component),v.prototype.render=function(){return this.props.suppressReactUi?se.createElement(h,ie({},this.props,{setGridApi:this.setGridApi})):se.createElement(E,ie({},this.props,{setGridApi:this.setGridApi}))};var R,o=v;function v(){var n=null!==R&&R.apply(this,arguments)||this;return n.setGridApi=function(e,t){n.api=e,n.columnApi=t},n}e.AgGridReact=o,e.AgGridReactLegacy=h,e.AgGridReactFire=E,Object.defineProperty(e,"__esModule",{value:!0})});
define(["exports","prop-types","react-dom/server","react-dom","react","agGrid"],function(e,t,o,r,oe,ae){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t;var se="default"in oe?oe.default:oe,w=function(e,t){return(w=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}))(e,t)};function n(e,t){function n(){this.constructor=e}w(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var ie=function(){return(ie=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function D(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),o=0,t=0;t<n;t++)for(var a=arguments[t],s=0,i=a.length;s<i;s++,o++)r[o]=a[s];return r}n(s,M=function(){}),s.prototype.getGui=function(){return this.eParentElement},s.prototype.destroy=function(){return this.componentInstance&&"function"==typeof this.componentInstance.destroy&&this.componentInstance.destroy(),this.portalManager.destroyPortal(this.portal)},s.prototype.createParentElement=function(e){var t=this.portalManager.getComponentWrappingElement(),t=document.createElement(t||"div");return t.classList.add("ag-react-container"),e.reactContainer=t},s.prototype.addParentContainerStyleAndClasses=function(){var t=this;this.componentInstance&&(this.componentInstance.getReactContainerStyle&&this.componentInstance.getReactContainerStyle()&&Object.assign(this.eParentElement.style,this.componentInstance.getReactContainerStyle()),this.componentInstance.getReactContainerClasses)&&this.componentInstance.getReactContainerClasses()&&this.componentInstance.getReactContainerClasses().forEach(function(e){return t.eParentElement.classList.add(e)})},s.prototype.statelessComponentRendered=function(){return 0<this.eParentElement.childElementCount||0<this.eParentElement.childNodes.length},s.prototype.getFrameworkComponentInstance=function(){return this.componentInstance},s.prototype.isStatelessComponent=function(){return this.statelessComponent},s.prototype.getReactComponentName=function(){return this.reactComponent.name},s.prototype.getMemoType=function(){return this.hasSymbol()?Symbol.for("react.memo"):60115},s.prototype.hasSymbol=function(){return"function"==typeof Symbol&&Symbol.for},s.prototype.isStateless=function(e){return"function"==typeof e&&!(e.prototype&&e.prototype.isReactComponent)||"object"==typeof e&&e.$$typeof===this.getMemoType()},s.prototype.hasMethod=function(e){var t=this.getFrameworkComponentInstance();return!!t&&null!==t[e]||this.fallbackMethodAvailable(e)},s.prototype.callMethod=function(e,t){var n,r=this,o=this.getFrameworkComponentInstance();return this.isStatelessComponent()?this.fallbackMethod(e,t&&t[0]?t[0]:{}):o?(n=o[e])?n.apply(o,t):this.fallbackMethodAvailable(e)?this.fallbackMethod(e,t&&t[0]?t[0]:{}):void 0:void setTimeout(function(){return r.callMethod(e,t)})},s.prototype.addMethod=function(e,t){this[e]=t};var M,a=s;function s(e,t,n){var r=M.call(this)||this;return r.portal=null,r.reactComponent=e,r.portalManager=t,r.componentType=n,r.statelessComponent=r.isStateless(r.reactComponent),r}var O=0;function i(){return"agPortalKey_"+ ++O}n(u,T=a),u.prototype.init=function(t){var n=this;return this.eParentElement=this.createParentElement(t),this.renderStaticMarkup(t),new ae.AgPromise(function(e){return n.createReactComponent(t,e)})},u.prototype.createReactComponent=function(e,t){var n=this,e=(this.isStatelessComponent()||(e.ref=function(e){n.componentInstance=e,n.addParentContainerStyleAndClasses(),n.removeStaticMarkup()}),oe.createElement(this.reactComponent,e)),e=r.createPortal(e,this.eParentElement,i());this.portal=e,this.portalManager.mountReactPortal(e,this,function(e){t(e),n.isStatelessComponent()&&(n.isSlowRenderer()&&n.removeStaticMarkup(),setTimeout(function(){n.removeStaticMarkup()}))})},u.prototype.fallbackMethodAvailable=function(e){return!1},u.prototype.fallbackMethod=function(e,t){},u.prototype.isSlowRenderer=function(){return this.staticRenderTime>=u.SLOW_RENDERING_THRESHOLD},u.prototype.isNullValue=function(){return""===this.staticMarkup},u.prototype.renderStaticMarkup=function(e){if(!this.parentComponent.isDisableStaticMarkup()&&this.componentType.cellRenderer){var t=console.error,e=oe.createElement(this.reactComponent,e);try{console.error=function(){};var n=Date.now(),r=o.renderToStaticMarkup(e);this.staticRenderTime=Date.now()-n,console.error=t,""===r?this.staticMarkup=r:r&&(this.staticMarkup=document.createElement("span"),this.staticMarkup.innerHTML=r,this.eParentElement.appendChild(this.staticMarkup))}catch(e){}finally{console.error=t}}},u.prototype.removeStaticMarkup=function(){!this.parentComponent.isDisableStaticMarkup()&&this.componentType.cellRenderer&&this.staticMarkup&&(this.staticMarkup.remove?(this.staticMarkup.remove(),this.staticMarkup=null):this.eParentElement.removeChild&&(this.eParentElement.removeChild(this.staticMarkup),this.staticMarkup=null))},u.prototype.rendered=function(){return this.isNullValue()||!!this.staticMarkup||this.isStatelessComponent()&&this.statelessComponentRendered()||!(this.isStatelessComponent()||!this.getFrameworkComponentInstance())},u.SLOW_RENDERING_THRESHOLD=3;var T,I=u;function u(e,t,n,r){e=T.call(this,e,n,r)||this;return e.staticMarkup=null,e.staticRenderTime=0,e.parentComponent=t,e}n(c,A=a),c.prototype.init=function(e){var t=this;return this.eParentElement=this.createParentElement(e),this.params=e,this.createOrUpdatePortal(e),new ae.AgPromise(function(e){return t.createReactComponent(e)})},c.prototype.createOrUpdatePortal=function(e){var t=this;this.isStatelessComponent()||(e.ref=function(e){t.componentInstance=e,t.addParentContainerStyleAndClasses()}),this.reactElement=oe.createElement(this.reactComponent,ie(ie({},e),{key:this.key})),this.portal=r.createPortal(this.reactElement,this.eParentElement,this.portalKey)},c.prototype.createReactComponent=function(t){this.portalManager.mountReactPortal(this.portal,this,function(e){t(e)})},c.prototype.isNullValue=function(){return this.valueRenderedIsNull(this.params)},c.prototype.rendered=function(){return this.isStatelessComponent()&&this.statelessComponentRendered()||!(this.isStatelessComponent()||!this.getFrameworkComponentInstance())},c.prototype.valueRenderedIsNull=function(e){if(this.componentType.cellRenderer){var t=console.error;try{return console.error=function(){},""===o.renderToStaticMarkup(oe.createElement(this.reactComponent,e))}catch(e){}finally{console.error=t}}return!1},c.prototype.refreshComponent=function(e){this.oldPortal=this.portal,this.createOrUpdatePortal(e),this.portalManager.updateReactPortal(this.oldPortal,this.portal)},c.prototype.fallbackMethod=function(e,t){e=this[e+"Component"];if(e)return e.bind(this)(t)},c.prototype.fallbackMethodAvailable=function(e){return!!this[e+"Component"]};var A,N=c;function c(e,t,n){e=A.call(this,e,t,n)||this;return e.oldPortal=null,e.key=i(),e.portalKey=i(),e}l.prototype.getPortals=function(){return this.portals},l.prototype.destroy=function(){this.destroyed=!0},l.prototype.destroyPortal=function(t){this.portals=this.portals.filter(function(e){return e!==t}),this.batchUpdate()},l.prototype.getComponentWrappingElement=function(){return this.wrappingElement},l.prototype.mountReactPortal=function(e,t,n){this.portals=D(this.portals,[e]),this.waitForInstance(t,n),this.batchUpdate()},l.prototype.updateReactPortal=function(e,t){this.portals[this.portals.indexOf(e)]=t,this.batchUpdate()},l.prototype.batchUpdate=function(){var e=this;this.hasPendingPortalUpdate||(setTimeout(function(){e.destroyed||e.parent.forceUpdate(function(){e.hasPendingPortalUpdate=!1})}),this.hasPendingPortalUpdate=!0)},l.prototype.waitForInstance=function(e,t,n){var r=this;if(void 0===n&&(n=Date.now()),this.destroyed)t(null);else if(e.rendered())t(e);else{if(Date.now()-n>=this.maxComponentCreationTimeMs&&!this.hasPendingPortalUpdate)return e.isNullValue()?void t(e):void console.error("AG Grid: React Component '"+e.getReactComponentName()+"' not created within "+this.maxComponentCreationTimeMs+"ms");window.setTimeout(function(){r.waitForInstance(e,t,n)})}},l.MAX_COMPONENT_CREATION_TIME_IN_MS=1e3;var k=l;function l(e,t,n){this.destroyed=!1,this.portals=[],this.hasPendingPortalUpdate=!1,this.wrappingElement=t||"div",this.parent=e,this.maxComponentCreationTimeMs=n||l.MAX_COMPONENT_CREATION_TIME_IN_MS}function _(e,t,n,r){var o=!e||e.componentFromFramework;if(!o){var a,s,i,o=e.newAgStackInstance();if(o)return i=!1,o.then(function(e){i?t.destroyBean(e):(s=(a=e).getGui(),n.appendChild(s),G(r,a))}),function(){i=!0,a&&(s&&s.parentElement&&s.parentElement.removeChild(s),t.destroyBean(a),r)&&G(r,void 0)}}}function G(e,t){e&&(e instanceof Function?e(t):e.current=t)}function ue(e){var t=oe.useRef(e),n=oe.useRef(),r=oe.useRef(!1),o=oe.useRef(!1),a=oe.useState(0)[1];r.current&&(o.current=!0),oe.useLayoutEffect(function(){return r.current||(n.current=t.current(),r.current=!0),a(function(e){return e+1}),function(){o.current&&n.current&&n.current()}},[])}function Y(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(function(e){return null!=e&&""!==e}).join(" ")}var ce=se.createContext({}),pe=function(e){var t=oe.useRef(e),n=oe.useRef(),r=oe.useRef(!1),o=oe.useRef(!1),a=oe.useState(0)[1];r.current&&(o.current=!0),oe.useEffect(function(){return r.current||(n.current=t.current(),r.current=!0),a(function(e){return e+1}),function(){o.current&&n.current&&n.current()}},[])},b=(p.prototype.setClass=function(e,t){var n;return!!this.classesMap[e]==t?this:((n=new p).classesMap=ie({},this.classesMap),n.classesMap[e]=t,n)},p.prototype.toString=function(){var t=this;return Object.keys(this.classesMap).filter(function(e){return t.classesMap[e]}).join(" ")},p);function p(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this.classesMap={},e.forEach(function(e){t.classesMap[e]=!0})}function le(e){return"function"==typeof e&&!(e.prototype&&e.prototype.isReactComponent)||"object"==typeof e&&e.$$typeof===("function"==typeof Symbol&&Symbol.for?Symbol.for("react.memo"):60115)}function z(r,o){pe(function(){var e,t=o.current,n=t.parentElement;if(n)return e=document.createComment(r),n.insertBefore(e,t),function(){n.removeChild(e)}})}var P=oe.forwardRef(function(n,e){var r=oe.useContext(ce).context,o=oe.useRef(null),t=oe.useRef(null),a=oe.useRef(null),s=oe.useRef(null),i=oe.useRef(null),u=oe.useState(),c=u[0],l=u[1],u=oe.useState(),p=u[0],f=u[1],u=oe.useState(),m=u[0],d=u[1],u=oe.useState(new b),h=u[0],C=u[1],u=oe.useState(new b("ag-hidden")),g=u[0],y=u[1],u=oe.useState(new b("ag-hidden")),R=u[0],E=u[1],u=oe.useState(new b("ag-invisible")),v=u[0],S=u[1],u=(oe.useImperativeHandle(e,function(){return{refresh:function(){return!1}}}),oe.useLayoutEffect(function(){return _(c,r,t.current)},[c]),ue(function(){var e={setInnerRenderer:function(e,t){l(e),d(t)},setChildCount:function(e){return f(e)},addOrRemoveCssClass:function(t,n){return C(function(e){return e.setClass(t,n)})},setContractedDisplayed:function(t){return E(function(e){return e.setClass("ag-hidden",!t)})},setExpandedDisplayed:function(t){return y(function(e){return e.setClass("ag-hidden",!t)})},setCheckboxVisible:function(t){return S(function(e){return e.setClass("ag-invisible",!t)})}},t=r.createBean(new ae.GroupCellRendererCtrl);return t.init(e,o.current,a.current,s.current,i.current,P,n),function(){r.destroyBean(t)}}),oe.useMemo(function(){return"ag-cell-wrapper "+h.toString()},[h])),e=oe.useMemo(function(){return"ag-group-expanded "+g.toString()},[g]),w=oe.useMemo(function(){return"ag-group-contracted "+R.toString()},[R]),M=oe.useMemo(function(){return"ag-group-checkbox "+v.toString()},[v]),O=c&&c.componentFromFramework,T=O?c.componentClass:void 0,I=null==c&&null!=m,m=ae._.escapeString(m,!0);return se.createElement("span",ie({className:u,ref:o},n.colDef?{}:{role:"gridcell"}),se.createElement("span",{className:e,ref:s}),se.createElement("span",{className:w,ref:i}),se.createElement("span",{className:M,ref:a}),se.createElement("span",{className:"ag-group-value",ref:t},I&&se.createElement(se.Fragment,null,m),O&&se.createElement(T,ie({},c.params))),se.createElement("span",{className:"ag-group-child-count"},p))}),F=oe.memo(function(e){var t=oe.useContext(ce).context,n=oe.useState(),r=n[0],o=n[1],n=oe.useState(),a=n[0],s=n[1],n=oe.useState(),i=n[0],u=n[1],n=oe.useState(),c=n[0],l=n[1],n=oe.useState(),p=n[0],f=n[1],m=oe.useRef(null),d=oe.useRef(null),h=oe.useRef(null),C=oe.useRef(),g=e.ctrl,y=oe.useMemo(function(){return new ae.CssClassManager(function(){return m.current})},[]),n=(ue(function(){g.setComp({setWidth:function(e){return m.current.style.width=e},addOrRemoveCssClass:function(e,t){return y.addOrRemoveCssClass(e,t)},setColId:function(e){return s(e)},setTitle:function(e){return o(e)},setAriaDescription:function(e){return l(e)},setAriaSort:function(e){return u(e)},setUserCompDetails:function(e){return f(e)},getUserCompInstance:function(){return C.current||void 0}},m.current,d.current,h.current);var e=g.getSelectAllGui();d.current.insertAdjacentElement("afterend",e)}),oe.useLayoutEffect(function(){return _(p,t,h.current,C)},[p]),oe.useEffect(function(){g.setDragSource(m.current)},[p]),oe.useMemo(function(){return!!((null==p?void 0:p.componentFromFramework)&&le(p.componentClass))},[p])),e=p&&p.componentFromFramework,R=p&&p.componentClass;return se.createElement("div",{ref:m,className:"ag-header-cell",title:r,"col-id":a,"aria-sort":i,role:"columnheader",tabIndex:-1,"aria-description":c},se.createElement("div",{ref:d,className:"ag-header-cell-resize",role:"presentation"}),se.createElement("div",{ref:h,className:"ag-header-cell-comp-wrapper",role:"presentation"},e&&n&&se.createElement(R,ie({},p.params)),e&&!n&&se.createElement(R,ie({},p.params,{ref:C}))))}),B=oe.memo(function(e){var t=oe.useContext(ce).context,n=oe.useState(new b),r=n[0],o=n[1],n=oe.useState(new b),a=n[0],s=n[1],n=oe.useState("false"),i=n[0],u=n[1],n=oe.useState(),c=n[0],l=n[1],n=oe.useState(),p=n[0],f=n[1],n=oe.useState(),m=n[0],d=n[1],n=oe.useState(),h=n[0],C=n[1],g=oe.useRef(null),y=oe.useRef(null),R=e.ctrl,n=(ue(function(){R.setComp({setWidth:function(e){return g.current.style.width=e},addOrRemoveCssClass:function(t,n){return o(function(e){return e.setClass(t,n)})},setColId:function(e){return f(e)},setTitle:function(e){return l(e)},setUserCompDetails:function(e){return C(e)},setResizableDisplayed:function(t){s(function(e){return e.setClass("ag-hidden",!t)}),u(t?"false":"true")},setAriaExpanded:function(e){return d(e)}},g.current,y.current)}),oe.useLayoutEffect(function(){return _(h,t,g.current)},[h]),oe.useEffect(function(){var t=void 0;g.current.childNodes.forEach(function(e){null!=e&&e!==y.current&&(t=e)}),t&&R.setDragSource(t)},[h]),oe.useMemo(function(){return"ag-header-group-cell "+r.toString()},[r])),e=oe.useMemo(function(){return"ag-header-cell-resize "+a.toString()},[a]),E=h&&h.componentFromFramework,v=h&&h.componentClass;return se.createElement("div",{ref:g,className:n,title:c,"col-id":p,role:"columnheader",tabIndex:-1,"aria-expanded":m},E&&se.createElement(v,ie({},h.params)),se.createElement("div",{ref:y,"aria-hidden":i,className:e}))}),x=oe.memo(function(e){function t(e){g.current||null!=e&&(y.current&&y.current(e),g.current=!0)}var n=oe.useContext(ce).context,r=oe.useState(new b("ag-header-cell","ag-floating-filter")),o=r[0],a=r[1],r=oe.useState(new b),s=r[0],i=r[1],r=oe.useState(new b("ag-floating-filter-button","ag-hidden")),u=r[0],c=r[1],r=oe.useState("false"),l=r[0],p=r[1],r=oe.useState(),f=r[0],m=r[1],d=oe.useRef(null),h=oe.useRef(null),r=oe.useRef(null),C=oe.useRef(null),g=oe.useRef(!1),y=oe.useRef(),R=oe.useRef(),E=(ue(function(){R.current=new ae.AgPromise(function(e){y.current=e})}),e.ctrl),e=(ue(function(){E.setComp({addOrRemoveCssClass:function(t,n){return a(function(e){return e.setClass(t,n)})},addOrRemoveBodyCssClass:function(t,n){return i(function(e){return e.setClass(t,n)})},setButtonWrapperDisplayed:function(t){c(function(e){return e.setClass("ag-hidden",!t)}),p(t?"false":"true")},setWidth:function(e){return d.current.style.width=e},setCompDetails:function(e){return m(e)},getFloatingFilterComp:function(){return R.current||null},setMenuIcon:function(e){return C.current.appendChild(e)}},d.current,C.current,h.current)}),oe.useLayoutEffect(function(){return _(f,n,h.current,t)},[f]),oe.useMemo(function(){return o.toString()},[o])),v=oe.useMemo(function(){return s.toString()},[s]),S=oe.useMemo(function(){return u.toString()},[u]),w=oe.useMemo(function(){return!!(f&&f.componentFromFramework&&le(f.componentClass))},[f]),M=f&&f.componentFromFramework,O=f&&f.componentClass;return se.createElement("div",{ref:d,className:e,role:"gridcell",tabIndex:-1},se.createElement("div",{ref:h,className:v,role:"presentation"},M&&w&&se.createElement(O,ie({},f.params)),M&&!w&&se.createElement(O,ie({},f.params,{ref:t}))),se.createElement("div",{ref:r,"aria-hidden":l,className:S,role:"presentation"},se.createElement("button",{ref:C,type:"button","aria-label":"Open Filter Menu",className:"ag-floating-filter-button-button",tabIndex:-1})))}),L=oe.memo(function(e){var s=oe.useContext(ce).gridOptionsService,t=oe.useState(),n=t[0],r=t[1],t=oe.useState(),o=t[0],a=t[1],t=oe.useState(),i=t[0],u=t[1],t=oe.useState(),c=t[0],l=t[1],t=oe.useState([]),p=t[0],f=t[1],m=oe.useRef(null),d=e.ctrl,h=d.getType()===ae.HeaderRowType.COLUMN,C=d.getType()===ae.HeaderRowType.COLUMN_GROUP,g=d.getType()===ae.HeaderRowType.FLOATING_FILTER,y=oe.useCallback(function(e,t){var n,r,o=s.is("ensureDomOrder"),a=s.isDomLayout("print");return o||a?t:(n=ae._.mapById(e,function(e){return e.getInstanceId()}),r=ae._.mapById(t,function(e){return e.getInstanceId()}),D(e.filter(function(e){return r.has(e.getInstanceId())}),t.filter(function(e){return!n.has(e.getInstanceId())})))},[]),t=(ue(function(){d.setComp({setTransform:function(e){return r(e)},setHeight:function(e){return a(e)},setTop:function(e){return u(e)},setHeaderCtrls:function(t){return f(function(e){return y(e,t)})},setWidth:function(e){return m.current.style.width=e},setAriaRowIndex:function(e){return l(e)}})}),oe.useMemo(function(){return{transform:n,height:o,top:i}},[n,o,i])),e=oe.useMemo(function(){var e=["ag-header-row"];return h&&e.push("ag-header-row-column"),C&&e.push("ag-header-row-column-group"),g&&e.push("ag-header-row-column-filter"),e.join(" ")},[]),R=oe.useCallback(function(e){switch(d.getType()){case ae.HeaderRowType.COLUMN_GROUP:return se.createElement(B,{ctrl:e,key:e.getInstanceId()});case ae.HeaderRowType.FLOATING_FILTER:return se.createElement(x,{ctrl:e,key:e.getInstanceId()});default:return se.createElement(F,{ctrl:e,key:e.getInstanceId()})}},[]);return se.createElement("div",{ref:m,className:e,role:"row",style:t,"aria-rowindex":c},p.map(R))}),f=oe.memo(function(n){function e(){return i.map(function(e){return se.createElement(L,{ctrl:e,key:e.getInstanceId()})})}var t=oe.useState(new b),r=t[0],o=t[1],t=oe.useState(!1),a=t[0],s=t[1],t=oe.useState([]),i=t[0],u=t[1],c=oe.useContext(ce).context,l=oe.useRef(null),p=oe.useRef(null),t="left"===n.pinned,f="right"===n.pinned,m=!t&&!f,d=(ue(function(){var e={setDisplayed:function(t){o(function(e){return e.setClass("ag-hidden",!t)}),s(!t)},setCtrls:function(e){return u(e)},setCenterWidth:function(e){p.current&&(p.current.style.width=e)},setViewportScrollLeft:function(e){l.current&&(l.current.scrollLeft=e)},setPinnedContainerWidth:function(e){l.current.style.width=e,l.current.style.minWidth=e,l.current.style.maxWidth=e}},t=c.createBean(new ae.HeaderRowContainerCtrl(n.pinned));return t.setComp(e,l.current),function(){c.destroyBean(t)}}),oe.useMemo(function(){return r.toString()},[r]));return se.createElement(se.Fragment,null,t&&se.createElement("div",{ref:l,className:"ag-pinned-left-header "+d,"aria-hidden":a,role:"presentation"},e()),f&&se.createElement("div",{ref:l,className:"ag-pinned-right-header "+d,"aria-hidden":a,role:"presentation"},e()),m&&se.createElement("div",{ref:l,className:"ag-header-viewport "+d,role:"presentation"},se.createElement("div",{ref:p,className:"ag-header-container",role:"rowgroup"},e())))}),q=oe.memo(function(){var e=oe.useState(new b),t=e[0],r=e[1],e=oe.useState(),n=e[0],o=e[1],a=oe.useContext(ce).context,s=oe.useRef(null),e=(ue(function(){var e={addOrRemoveCssClass:function(t,n){return r(function(e){return e.setClass(t,n)})},setHeightAndMinHeight:function(e){return o(e)}},t=a.createBean(new ae.GridHeaderCtrl);return t.setComp(e,s.current,s.current),function(){a.destroyBean(t)}}),oe.useMemo(function(){return"ag-header "+t.toString()},[t])),i=oe.useMemo(function(){return{height:n,minHeight:n}},[n]);return se.createElement("div",{ref:s,className:e,style:i,role:"presentation"},se.createElement(f,{pinned:"left"}),se.createElement(f,{pinned:null}),se.createElement(f,{pinned:"right"}))}),fe=oe.memo(function(u){var e=oe.useState(),t=e[0],c=e[1],e=oe.useContext(ce),l=e.context,p=e.popupService,f=e.localeService,m=e.gridOptionsService;return ue(function(){var e=u.editDetails,t=u.cellCtrl,n=u.eParentCell,r=e.compDetails,o=m.is("stopEditingWhenCellsLoseFocus"),a=l.createBean(new ae.PopupEditorWrapper(r.params)),r=a.getGui(),s=(u.jsChildComp&&(s=u.jsChildComp.getGui())&&r.appendChild(s),{column:t.getColumn(),rowNode:t.getRowNode(),type:"popupCellEditor",eventSource:n,ePopup:r,position:e.popupPosition,keepWithinBounds:!0}),e=p.positionPopupByComponent.bind(p,s),s=f.getLocaleTextFunc(),o=p.addPopup({modal:o,eChild:r,closeOnEsc:!0,closedCallback:function(){t.onPopupEditorClosed()},anchorToElement:n,positionCallback:e,ariaLabel:s("ariaLabelCellEditor","Cell Editor")}),i=o?o.hideFunc:void 0;return c(a),u.jsChildComp&&u.jsChildComp.afterGuiAttached&&u.jsChildComp.afterGuiAttached(),function(){null!=i&&i(),l.destroyBean(a)}}),se.createElement(se.Fragment,null,t&&u.wrappedContent&&r.createPortal(u.wrappedContent,t.getGui()))}),U=oe.memo(function(e){function t(){return se.createElement(se.Fragment,null,null!=E&&(i=S,u=re,c=O,l=k,p=ne,f=Q,m=(s=E).compDetails,s=s.value,d=!m,h=m&&m.componentFromFramework,C=m&&m.componentClass,g=null!=s&&s.toString?s.toString():s,se.createElement(se.Fragment,null,l?se.createElement("span",{role:"presentation",id:"cell-"+u,className:"ag-cell-value",ref:f},y()):y())),null!=v&&(s=v,l=te,u=ee,f=M.current,e=R,t=$,n=s.compDetails,r=n.componentClass,o=n.componentFromFramework&&!s.popup,a=n.componentFromFramework&&s.popup,n=!n.componentFromFramework&&s.popup,se.createElement(se.Fragment,null,o&&se.createElement(r,ie({},s.compDetails.params,{ref:l})),a&&se.createElement(fe,{editDetails:s,cellCtrl:e,eParentCell:f,wrappedContent:se.createElement(r,ie({},s.compDetails.params,{ref:u}))}),n&&t&&se.createElement(fe,{editDetails:s,cellCtrl:e,eParentCell:f,jsChildComp:t}))));var e,t,n,r,o,a,s,i,u,c,l,p,f,m,d,h,C,g;function y(){return se.createElement(se.Fragment,null,d&&se.createElement(se.Fragment,null,g),h&&!p&&se.createElement(C,ie({},m.params,{key:i,ref:c})),h&&p&&se.createElement(C,ie({},m.params,{key:i})))}}var n,r,o,a,s,i,u,c=oe.useContext(ce).context,R=e.cellCtrl,l=e.printLayout,p=e.editingRow,e=oe.useState(),E=e[0],f=e[1],e=oe.useState(),v=e[0],m=e[1],e=oe.useState(1),S=e[0],d=e[1],e=oe.useState(),_=e[0],B=e[1],e=oe.useState(),x=e[0],L=e[1],e=oe.useState(),U=e[0],H=e[1],e=oe.useState(),W=e[0],j=e[1],e=oe.useState(),V=e[0],K=e[1],e=oe.useState(!1),h=e[0],Y=e[1],e=oe.useState(!1),C=e[0],z=e[1],e=oe.useState(!1),g=e[0],q=e[1],e=oe.useState(),$=e[0],y=e[1],w=oe.useMemo(function(){return R.isForceWrapper()},[]),M=oe.useRef(null),O=oe.useRef(null),T=oe.useRef(),I=oe.useRef(),b=oe.useRef(),e=oe.useState(0),X=e[0],Z=e[1],e=oe.useCallback(function(e){b.current=e,Z(function(e){return e+1})},[]),P=oe.useRef(),A=oe.useState(0),N=A[0],J=A[1],Q=oe.useCallback(function(e){P.current=e,J(function(e){return e+1})},[]),k=w||null!=E&&(h||g||C),G=oe.useCallback(function(e,t){var n,r,o,a,s;(I.current=t)&&(e=e,n=t,s=(r=R).getColumn(),!e&&n.isPopup&&n.isPopup()&&(o="AG Grid: Found an issue in column "+s.getColId()+". If using React, specify an editor is a popup using colDef.cellEditorPopup=true. AG Grid React cannot depend on the editor component specifying if it's in a popup (via the isPopup() method on the editor), as React needs to know this information BEFORE the component is created.",ae._.doOnce(function(){return console.warn(o)},"jsEditorComp-isPopup-"+r.getColumn().getColId())),e&&n.getPopupPosition&&null!=n.getPopupPosition()&&(a="AG Grid: Found an issue in column "+s.getColId()+". If using React, specify an editor popup position using colDef.cellEditorPopupPosition=true. AG Grid React cannot depend on the editor component specifying it's position (via the getPopupPosition() method on the editor), as React needs to know this information BEFORE the component is created.",ae._.doOnce(function(){return console.warn(a)},"jsEditorComp-getPopupPosition-"+r.getColumn().getColId())),t.isCancelBeforeStart)&&t.isCancelBeforeStart()&&setTimeout(function(){R.stopEditing(!0),R.focusCell(!0)})},[]),ee=oe.useCallback(function(e){return G(!0,e)},[]),te=oe.useCallback(function(e){return G(!1,e)},[]),F=oe.useMemo(function(){return new ae.CssClassManager(function(){return M.current})},[]),D=(n=E,r=k,o=P.current,A=N,a=T,s=M,N=oe.useContext(ce),i=N.context,N.userComponentFactory,u=oe.useCallback(function(){var e,t=a.current;t&&((e=t.getGui())&&e.parentElement&&e.parentElement.removeChild(e),i.destroyBean(t),a.current=void 0)},[]),oe.useEffect(function(){var e=n&&n.compDetails&&!n.compDetails.componentFromFramework;if(null!=n&&e&&!(r&&null==o)){e=n.compDetails;if(a.current){var t=a.current,t=null!=t.refresh&&0==n.force&&t.refresh(e.params);if(!0===t||void 0===t)return;u()}t=e.newAgStackInstance();t&&(e=t.resolveNow(null,function(e){return e}))&&(t=e.getGui())&&((r?o:s.current).appendChild(t),a.current=e)}else u()},[n,r,A]),pe(function(){return u}),oe.useRef()),ne=(oe.useLayoutEffect(function(){var e=D.current,t=E;D.current=E,null!=e&&null!=e.compDetails&&null!=t&&null!=t.compDetails&&(e=e.compDetails,t=t.compDetails,e.componentClass==t.componentClass)&&null!=O.current&&null!=O.current.refresh&&1!=O.current.refresh(t.params)&&d(function(e){return e+1})},[E]),oe.useLayoutEffect(function(){if(v&&!v.compDetails.componentFromFramework){var e,t=v.compDetails,n=!0===v.popup,r=function(e){e=e.newAgStackInstance();if(e)return e.resolveNow(null,function(e){return e})}(t);if(r)return e=r.getGui(),G(n,r),n||(null!=(t=(w?b:M).current)&&t.appendChild(e),r.afterGuiAttached&&r.afterGuiAttached()),y(r),function(){c.destroyBean(r),G(n,void 0),y(void 0),e&&e.parentElement&&e.parentElement.removeChild(e)}}},[v]),oe.useLayoutEffect(function(){var n,e;if(R&&c&&(b.current&&k))return n=[],e=function(e){var t;return e&&(t=e.getGui(),b.current.insertAdjacentElement("afterbegin",t),n.push(function(){c.destroyBean(e),ae._.removeFromParent(t)})),e},h&&e(R.createSelectionCheckbox()),g&&e(R.createDndSource()),C&&e(R.createRowDragComp()),function(){return n.forEach(function(e){return e()})}},[k,g,C,h,X]),ue(function(){var e;R&&(e=b.current||void 0,R.setComp({addOrRemoveCssClass:function(e,t){return F.addOrRemoveCssClass(e,t)},setUserStyles:function(e){return B(e)},getFocusableElement:function(){return M.current},setTabIndex:function(e){return L(e)},setRole:function(e){return H(e)},setColId:function(e){return j(e)},setTitle:function(e){return K(e)},setIncludeSelection:function(e){return Y(e)},setIncludeRowDrag:function(e){return z(e)},setIncludeDndSource:function(e){return q(e)},getCellEditor:function(){return I.current||null},getCellRenderer:function(){return O.current||T.current},getParentOfValue:function(){return P.current||b.current||M.current},setRenderDetails:function(e,t,n){f({value:t,compDetails:e,force:n})},setEditDetails:function(e,t,n){e?(m({compDetails:e,popup:t,popupPosition:n}),t||f(void 0)):m(void 0)}},M.current,e,l,p))}),oe.useMemo(function(){return!!(E&&E.compDetails&&E.compDetails.componentFromFramework&&le(E.compDetails.componentClass))},[E])),re=(oe.useEffect(function(){var e;M.current&&(F.addOrRemoveCssClass("ag-cell-value",!k),F.addOrRemoveCssClass("ag-cell-inline-editing",!!v&&!v.popup),F.addOrRemoveCssClass("ag-cell-popup-editing",!!v&&!!v.popup),F.addOrRemoveCssClass("ag-cell-not-inline-editing",!v||!!v.popup),null!=(e=R.getRowCtrl()))&&e.setInlineEditingCss(!!v)}),oe.useMemo(function(){return R.getInstanceId()},[]));return se.createElement("div",{ref:M,style:_,tabIndex:x,role:U,"col-id":W,title:V},k?se.createElement("div",{className:"ag-cell-wrapper",role:"presentation",ref:e},t()):t())}),H=oe.memo(function(e){var t=oe.useContext(ce).context,n=e.rowCtrl,r=e.containerType,e=oe.useState(),o=e[0],a=e[1],e=oe.useState(),s=e[0],i=e[1],e=oe.useState(),u=e[0],c=e[1],e=oe.useState(),l=e[0],p=e[1],e=oe.useState(),f=e[0],m=e[1],e=oe.useState(),d=e[0],h=e[1],e=oe.useState({list:[],instanceIdMap:new Map}),C=e[0],g=e[1],e=oe.useState(),y=e[0],R=e[1],e=oe.useState(!1),E=e[0],v=e[1],e=oe.useState(n.getInitialRowTop(r)),S=e[0],w=e[1],e=oe.useState(n.getInitialTransform(r)),M=e[0],O=e[1],T=oe.useRef(null),I=oe.useRef(),b=oe.useRef(!1),e=oe.useState(0),P=e[0],A=e[1],N=(oe.useEffect(function(){var e;b.current||!y||10<P||((e=null==(e=T.current)?void 0:e.firstChild)?(n.setupDetailRowAutoHeight(e),b.current=!0):A(function(e){return e+1}))},[y,P]),oe.useMemo(function(){return new ae.CssClassManager(function(){return T.current})},[])),e=(ue(function(){if(n.isAlive())return n.setComp({setTop:function(e){return w(e)},setTransform:function(e){return O(e)},addOrRemoveCssClass:function(e,t){return N.addOrRemoveCssClass(e,t)},setDomOrder:function(e){return v(e)},setRowIndex:function(e){return a(e)},setRowId:function(e){return i(e)},setRowBusinessKey:function(e){return p(e)},setTabIndex:function(e){return m(e)},setUserStyles:function(e){return h(e)},setRole:function(e){return c(e)},setCellCtrls:function(i){return g(function(e){return n=e,e=i,E?(t={list:e,instanceIdMap:new Map},e.forEach(function(e){return t.instanceIdMap.set(e.getInstanceId(),e)}),t):(r=[],o=[],a=new Map,s=new Map,e.forEach(function(e){return s.set(e.getInstanceId(),e)}),n.list.forEach(function(e){var t=e.getInstanceId();s.has(t)&&(r.push(e),a.set(t,e))}),e.forEach(function(e){var t=e.getInstanceId();n.instanceIdMap.has(t)||(o.push(e),a.set(t,e))}),{list:D(r,o),instanceIdMap:a});var n,t,r,o,a,s})},showFullWidth:function(e){return R(e)},getFullWidthCellRenderer:function(){return I.current}},T.current,r),function(){n.unsetComp(r)}}),oe.useLayoutEffect(function(){return _(y,t,T.current,I)},[y]),oe.useMemo(function(){var e={top:S,transform:M};return Object.assign(e,d),e},[S,M,d])),k=y&&y.componentFromFramework,G=null!=C,F=oe.useMemo(function(){return!!((null==y?void 0:y.componentFromFramework)&&le(y.componentClass))},[y]);return se.createElement("div",{ref:T,role:u,style:e,"row-index":o,"row-id":s,"row-business-key":l,tabIndex:f},G&&C.list.map(function(e){return se.createElement(U,{cellCtrl:e,editingRow:n.isEditing(),printLayout:n.isPrintLayout(),key:e.getInstanceId()})}),k&&(u=y.componentClass,se.createElement(se.Fragment,null,F&&se.createElement(u,ie({},y.params)),!F&&se.createElement(u,ie({},y.params,{ref:I})))))}),$=oe.memo(function(e){var r=oe.useContext(ce).context,t=oe.useState([]),n=t[0],o=t[1],a=e.name,s=oe.useMemo(function(){return ae.getRowContainerTypeForName(a)},[a]),i=oe.useRef(null),u=oe.useRef(null),c=oe.useRef(null),l=oe.useRef([]),p=oe.useRef(!1),f=oe.useMemo(function(){return ae.RowContainerCtrl.getRowContainerCssClasses(a)},[a]),t=oe.useMemo(function(){return Y(f.wrapper)},[]),e=oe.useMemo(function(){return Y(f.viewport)},[]),m=oe.useMemo(function(){return Y(f.container)},[]),d=a===ae.RowContainerName.CENTER,h=a===ae.RowContainerName.TOP_CENTER||a===ae.RowContainerName.BOTTOM_CENTER||a===ae.RowContainerName.STICKY_TOP_CENTER,C=!d&&!h;function g(){o(function(e){var t,n=l.current;return p.current?n:(t=e.filter(function(e){return 0<=n.indexOf(e)}),e=n.filter(function(e){return t.indexOf(e)<0}),D(t,e))})}z(" AG Row Container "+a+" ",d?i:h?u:c),ue(function(){var e=[],t={setViewportHeight:function(e){return u.current.style.height=e},setRowCtrls:function(e){l.current!==e&&(l.current=e,g())},setDomOrder:function(e){p.current!=e&&(p.current=e,g())},setContainerWidth:function(e){return c.current.style.width=e}},n=r.createBean(new ae.RowContainerCtrl(a));return e.push(n),n.setComp(t,c.current,u.current,i.current),function(){r.destroyBeans(e)}});function y(){return se.createElement("div",{className:m,ref:c,role:n.length?"rowgroup":"presentation"},n.map(function(e){return se.createElement(H,{rowCtrl:e,containerType:s,key:e.getInstanceId()})}))}return se.createElement(se.Fragment,null,d&&se.createElement("div",{className:t,ref:i,role:"presentation"},se.createElement("div",{className:e,ref:u,role:"presentation"},y())),h&&se.createElement("div",{className:e,ref:u,role:"presentation"},y()),C&&y())}),W=oe.memo(function(){function o(e){return se.createElement($,{name:e,key:e+"-container"})}function e(e){var t=e.section,n=e.children,r=e.className,e=e.style;return se.createElement("div",{ref:t,className:r,role:"presentation",style:e},n.map(o))}var t=oe.useContext(ce),a=t.context,s=t.agStackComponentsRegistry,i=t.resizeObserverService,t=oe.useState(""),n=t[0],u=t[1],t=oe.useState(0),r=t[0],c=t[1],t=oe.useState(0),l=t[0],p=t[1],t=oe.useState("0px"),f=t[0],m=t[1],t=oe.useState("0px"),d=t[0],h=t[1],t=oe.useState("100%"),C=t[0],g=t[1],t=oe.useState(""),y=t[0],R=t[1],t=oe.useState(""),E=t[0],v=t[1],t=oe.useState(null),S=t[0],w=t[1],t=oe.useState(""),M=t[0],O=t[1],t=oe.useState(null),T=t[0],I=t[1],t=oe.useState("ag-layout-normal"),b=t[0],P=t[1],_=oe.useMemo(function(){return new ae.CssClassManager(function(){return A.current})},[]),A=oe.useRef(null),N=oe.useRef(null),k=oe.useRef(null),G=oe.useRef(null),F=oe.useRef(null),D=oe.useRef(null),t=(z(" AG Grid Body ",A),z(" AG Pinned Top ",N),z(" AG Sticky Top ",k),z(" AG Middle ",F),z(" AG Pinned Bottom ",D),ue(function(){var e,t,n=[],r=[];if(a)return e=function(e){e=s.getComponentClass(e),e=a.createBean(new e);return n.push(e),e},A.current.appendChild(document.createComment(" AG Fake Horizontal Scroll ")),A.current.appendChild(e("AG-FAKE-HORIZONTAL-SCROLL").getGui()),A.current.appendChild(document.createComment(" AG Overlay Wrapper ")),A.current.appendChild(e("AG-OVERLAY-WRAPPER").getGui()),G.current.appendChild(document.createComment(" AG Fake Vertical Scroll ")),G.current.appendChild(e("AG-FAKE-VERTICAL-SCROLL").getGui()),e={setRowAnimationCssOnBodyViewport:u,setColumnCount:function(e){return ae._.setAriaColCount(A.current,e)},setRowCount:function(e){return ae._.setAriaRowCount(A.current,e)},setTopHeight:c,setBottomHeight:p,setStickyTopHeight:m,setStickyTopTop:h,setStickyTopWidth:g,setTopDisplay:R,setBottomDisplay:v,setColumnMovingCss:function(e,t){return _.addOrRemoveCssClass(e,t)},updateLayoutClasses:P,setAlwaysVerticalScrollClass:w,setPinnedTopBottomOverflowY:O,setCellSelectableCss:I,setBodyViewportWidth:function(e){return F.current.style.width=e},registerBodyViewportResizeListener:function(e){var t=i.observeResize(F.current,e);r.push(function(){return t()})}},t=a.createBean(new ae.GridBodyCtrl),n.push(t),t.setComp(e,A.current,F.current,N.current,D.current,k.current),function(){a.destroyBeans(n),r.forEach(function(e){return e()})}}),oe.useMemo(function(){return Y("ag-root","ag-unselectable",b)},[b])),B=oe.useMemo(function(){return Y("ag-body-viewport",n,b,S,T)},[n,b,S,T]),x=oe.useMemo(function(){return Y("ag-body",b)},[b]),L=oe.useMemo(function(){return Y("ag-body-clipper",b)},[b]),U=oe.useMemo(function(){return Y("ag-floating-top",T)},[T]),H=oe.useMemo(function(){return Y("ag-sticky-top",T)},[T]),W=oe.useMemo(function(){return Y("ag-floating-bottom",T)},[T]),j=oe.useMemo(function(){return{height:r,minHeight:r,display:y,overflowY:M}},[r,y,M]),V=oe.useMemo(function(){return{height:f,top:d,width:C}},[f,d,C]),K=oe.useMemo(function(){return{height:l,minHeight:l,display:E,overflowY:M}},[l,E,M]);return se.createElement("div",{ref:A,className:t,role:"treegrid"},se.createElement(q,null),e({section:N,className:U,style:j,children:[ae.RowContainerName.TOP_LEFT,ae.RowContainerName.TOP_CENTER,ae.RowContainerName.TOP_RIGHT,ae.RowContainerName.TOP_FULL_WIDTH]}),se.createElement("div",{className:x,ref:G,role:"presentation"},se.createElement("div",{className:L,role:"presentation"},e({section:F,className:B,children:[ae.RowContainerName.LEFT,ae.RowContainerName.CENTER,ae.RowContainerName.RIGHT,ae.RowContainerName.FULL_WIDTH]}))),e({section:k,className:H,style:V,children:[ae.RowContainerName.STICKY_TOP_LEFT,ae.RowContainerName.STICKY_TOP_CENTER,ae.RowContainerName.STICKY_TOP_RIGHT,ae.RowContainerName.STICKY_TOP_FULL_WIDTH]}),e({section:D,className:W,style:K,children:[ae.RowContainerName.BOTTOM_LEFT,ae.RowContainerName.BOTTOM_CENTER,ae.RowContainerName.BOTTOM_RIGHT,ae.RowContainerName.BOTTOM_FULL_WIDTH]}))}),a=oe.forwardRef(function(e,t){function n(e){var t="top"===e?ae.TabGuardClassNames.TAB_GUARD_TOP:ae.TabGuardClassNames.TAB_GUARD_BOTTOM;return se.createElement("div",{className:ae.TabGuardClassNames.TAB_GUARD+" "+t,role:"presentation",tabIndex:p,ref:"top"===e?u:c})}var r=e.children,o=e.eFocusableElement,a=e.onTabKeyDown,s=e.gridCtrl,i=oe.useContext(ce).context,u=oe.useRef(null),c=oe.useRef(null),l=oe.useRef(),e=oe.useState(),p=e[0],f=e[1];oe.useImperativeHandle(t,function(){return{forceFocusOutOfContainer:function(){l.current.forceFocusOutOfContainer()}}}),ue(function(){var e=u.current,t=c.current,n=l.current=i.createBean(new ae.TabGuardCtrl({comp:{setTabIndex:function(e){return f(null==e?void 0:parseInt(e,10))}},eTopGuard:e,eBottomGuard:t,eFocusableElement:o,onTabKeyDown:a,focusInnerElement:function(e){return s.focusInnerElement(e)}}));return function(){i.destroyBean(n)}});return se.createElement(se.Fragment,null,n("top"),r,n("bottom"))}),j=oe.memo(a),V=oe.memo(function(e){var p=e.context,e=oe.useState(""),t=e[0],n=e[1],e=oe.useState(""),r=e[0],o=e[1],e=oe.useState(""),a=e[0],s=e[1],e=oe.useState(null),i=e[0],u=e[1],e=oe.useState(null),c=e[0],l=e[1],e=oe.useState(!1),f=e[0],m=e[1],e=oe.useState(),d=e[0],h=e[1],C=oe.useRef(null),g=oe.useRef(null),y=oe.useRef(),R=oe.useRef(null),E=oe.useRef(function(){}),e=oe.useCallback(function(){},[]),v=oe.useMemo(function(){return p.getBean("beans")},[]),S=(z(" AG Grid ",g),ue(function(){var e=C.current=p.createBean(new ae.GridCtrl);return function(){p.destroyBean(e),C.current=null}}),ue(function(){var e=C.current,t=(E.current=e.focusInnerElement.bind(e),{destroyGridUi:function(){},setRtlClass:n,addOrRemoveKeyboardFocusClass:function(e){return o(e?ae.FocusService.AG_KEYBOARD_FOCUS:"")},forceFocusOutOfContainer:function(){y.current.forceFocusOutOfContainer()},updateLayoutClasses:s,getFocusableContainers:function(){var e=[],t=g.current.querySelector(".ag-root"),n=g.current.querySelector(".ag-side-bar:not(.ag-hidden)");return t&&e.push(t),n&&e.push(n),e},setCursor:u,setUserSelect:l});e.setComp(t,g.current,g.current),m(!0)}),oe.useEffect(function(){var e,t,n,r,o,a,s,i,u,c,l;if(d)return e=C.current,t=[],c=(o=v.agStackComponentsRegistry).getComponentClass("AG-GRID-HEADER-DROP-ZONES"),u=o.getComponentClass("AG-SIDE-BAR"),n=o.getComponentClass("AG-STATUS-BAR"),r=o.getComponentClass("AG-WATERMARK"),o=o.getComponentClass("AG-PAGINATION"),a=[],s=g.current,i=R.current,e.showDropZones()&&c&&(l=(c=p.createBean(new c)).getGui(),s.insertAdjacentElement("afterbegin",l),a.push(l),t.push(c)),e.showSideBar()&&u&&(l=(c=p.createBean(new u)).getGui(),(u=i.querySelector(".ag-tab-guard-bottom"))&&(u.insertAdjacentElement("beforebegin",l),a.push(l)),t.push(c)),e.showStatusBar()&&n&&(l=(i=p.createBean(new n)).getGui(),s.insertAdjacentElement("beforeend",l),a.push(l),t.push(i)),o&&(l=(u=p.createBean(new o)).getGui(),s.insertAdjacentElement("beforeend",l),a.push(l),t.push(u)),e.showWatermark()&&r&&(l=(c=p.createBean(new r)).getGui(),s.insertAdjacentElement("beforeend",l),a.push(l),t.push(c)),function(){p.destroyBeans(t),a.forEach(function(e){e.parentElement&&e.parentElement.removeChild(e)})}},[d]),oe.useMemo(function(){return Y("ag-root-wrapper",t,r,a)},[t,r,a])),w=oe.useMemo(function(){return Y("ag-root-wrapper-body","ag-focus-managed",a)},[a]),M=oe.useMemo(function(){return{userSelect:null!=c?c:"",WebkitUserSelect:null!=c?c:"",cursor:null!=i?i:""}},[c,i]),O=R.current,T=oe.useCallback(function(e){y.current=e,h(!0)},[]);return se.createElement("div",{ref:g,className:S,style:M,role:"presentation"},se.createElement("div",{className:w,ref:R,role:"presentation"},f&&O&&se.createElement(ce.Provider,{value:v},se.createElement(j,{ref:T,eFocusableElement:O,onTabKeyDown:e,gridCtrl:C.current},se.createElement(W,null)))))});n(m,K=oe.Component),m.prototype.render=function(){return this.state.context,this.state.context&&(this.renderedAfterMount=!0),se.createElement("div",{style:this.createStyleForDiv(),className:this.props.className,ref:this.eGui},this.state.context&&se.createElement(V,{context:this.state.context}),this.portalManager.getPortals())},m.prototype.createStyleForDiv=function(){return ie({height:"100%"},this.props.containerStyle||{})},m.prototype.componentDidMount=function(){var e,t=this;this.mounted||(this.mounted=!0,e=this.props.modules||[],e={providedBeanInstances:{frameworkComponentWrapper:new Z(this.portalManager)},modules:e,frameworkOverrides:new ee(!0)},this.gridOptions=this.props.gridOptions||{},this.gridOptions=ae.ComponentUtil.copyAttributesToGridOptions(this.gridOptions,this.props),this.checkForDeprecations(this.props),(new ae.GridCoreCreator).create(this.eGui.current,this.gridOptions,function(e){t.setState({context:e}),e.getBean(ae.CtrlsService.NAME).whenReady(function(){t.api=t.gridOptions.api,t.columnApi=t.gridOptions.columnApi,t.props.setGridApi(t.api,t.columnApi),t.destroyFuncs.push(function(){return t.api.destroy()})})},function(e){e.getBean(ae.CtrlsService.NAME).whenReady(function(){t.whenReadyFuncs.forEach(function(e){return e()}),t.whenReadyFuncs.length=0,t.ready=!0})},e))},m.prototype.checkForDeprecations=function(e){e.rowDataChangeDetectionStrategy&&ae._.doOnce(function(){return console.warn("AG Grid: Since v29 rowDataChangeDetectionStrategy has been deprecated. Row data property changes will be compared by reference via triple equals ===. See https://ag-grid.com/react-data-grid/react-hooks/")},"rowDataChangeDetectionStrategy_Deprecation")},m.prototype.componentWillUnmount=function(){this.renderedAfterMount&&(this.destroyFuncs.forEach(function(e){return e()}),this.destroyFuncs.length=0)},m.prototype.componentDidUpdate=function(e){this.processPropsChanges(e,this.props)},m.prototype.processPropsChanges=function(e,t){var n={};this.extractGridPropertyChanges(e,t,n),this.processChanges(n)},m.prototype.extractGridPropertyChanges=function(t,n,r){var o=!!n.debug;Object.keys(n).forEach(function(e){ae.ComponentUtil.ALL_PROPERTIES_SET.has(e)&&t[e]!==n[e]&&(o&&console.log("agGridReact: ["+e+"] property changed"),r[e]={previousValue:t[e],currentValue:n[e]})}),ae.ComponentUtil.EVENT_CALLBACKS.forEach(function(e){t[e]!==n[e]&&(o&&console.log("agGridReact: ["+e+"] event callback changed"),r[e]={previousValue:t[e],currentValue:n[e]})})},m.prototype.processChanges=function(e){var t=this;this.processWhenReady(function(){return ae.ComponentUtil.processOnChange(e,t.api)})},m.prototype.processWhenReady=function(e){this.ready?e():this.whenReadyFuncs.push(e)};var K,E=m;function m(e){var t=K.call(this,e)||this;return t.props=e,t.destroyFuncs=[],t.eGui=se.createRef(),t.whenReadyFuncs=[],t.ready=!1,t.renderedAfterMount=!1,t.mounted=!1,t.state={context:void 0},t.portalManager=new k(t,e.componentWrappingElement,e.maxComponentCreationTimeMs),t.destroyFuncs.push(function(){return t.portalManager.destroy()}),t}n(d,X=ae.BaseComponentWrapper),d.prototype.createWrapper=function(e,t){return new N(e,this.parent,t)};var X,Z=d;function d(e){var t=X.call(this)||this;return t.parent=e,t}var J,Q=oe.forwardRef(function(r,e){var t=oe.useContext(ce),o=t.ctrlsFactory,a=t.context,s=t.gridOptionsService,i=t.resizeObserverService,u=t.clientSideRowModel,c=t.serverSideRowModel,t=oe.useState(new b),n=t[0],l=t[1],t=oe.useState(new b),p=t[0],f=t[1],t=oe.useState(),m=t[0],d=t[1],t=oe.useState(),h=t[0],C=t[1],g=oe.useRef(),y=oe.useRef(null),t=oe.useMemo(function(){return n.toString()+" ag-details-row"},[n]),R=oe.useMemo(function(){return p.toString()+" ag-details-grid"},[p]),e=(e&&oe.useImperativeHandle(e,function(){return{refresh:function(){return g.current.refresh()}}}),ue(function(){r.template&&"string"==typeof r.template&&console.warn("AG Grid: detailCellRendererParams.template is not supported by React - this only works with frameworks that work against String templates. To change the template, please provide your own React Detail Cell Renderer.")}),ue(function(){var e,t={addOrRemoveCssClass:function(t,n){return l(function(e){return e.setClass(t,n)})},addOrRemoveDetailGridCssClass:function(t,n){return f(function(e){return e.setClass(t,n)})},setDetailGrid:function(e){return d(e)},setRowData:function(e){return C(e)},getGui:function(){return y.current}},n=o.getInstance("detailCellRenderer");if(n)return a.createBean(n),n.init(t,r),g.current=n,s.is("detailRowAutoHeight")&&(e=i.observeResize(y.current,t=function(){var e;null!=y.current&&null!=(e=y.current.clientHeight)&&0<e&&setTimeout(function(){r.node.setRowHeight(e),u?u.onRowHeightChanged():c&&c.onRowHeightChanged()},0)}),t()),function(){a.destroyBean(n),e&&e()}}),oe.useCallback(function(e,t){g.current.registerDetailWithMaster(e,t)},[]));return se.createElement("div",{className:t,ref:y},m&&se.createElement(E,ie({className:R},m,{rowData:h,setGridApi:e})))}),ee=(n(h,J=ae.VanillaFrameworkOverrides),h.prototype.frameworkComponent=function(e){if(this.reactUi)return this.frameworkComponents[e]},h.prototype.isFrameworkComponent=function(e){return!(!e||(e=e.prototype)&&"getGui"in e)},h);function h(e){var t=J.call(this)||this;return t.frameworkComponents={agGroupCellRenderer:P,agGroupRowRenderer:P,agDetailCellRenderer:Q},t.reactUi=e,t}n(g,te=oe.Component),g.prototype.render=function(){var t=this;return se.createElement("div",{style:this.createStyleForDiv(),className:this.props.className,ref:function(e){t.eGridDiv=e}},this.portalManager.getPortals())},g.prototype.createStyleForDiv=function(){return ie({height:"100%"},this.props.containerStyle||{})},g.prototype.componentDidMount=function(){var e=this.props.modules||[],e={providedBeanInstances:{agGridReact:this,frameworkComponentWrapper:new re(this,this.portalManager)},modules:e,frameworkOverrides:new ee(!1)},t=this.props.gridOptions||{};this.gridOptions=ae.ComponentUtil.copyAttributesToGridOptions(t,this.props),this.checkForDeprecations(this.props),new ae.Grid(this.eGridDiv,this.gridOptions,e),this.api=this.gridOptions.api,this.columnApi=this.gridOptions.columnApi,this.props.setGridApi(this.api,this.columnApi)},g.prototype.checkForDeprecations=function(e){e.rowDataChangeDetectionStrategy&&ae._.doOnce(function(){return console.warn("AG Grid: Since v29 rowDataChangeDetectionStrategy has been deprecated. Row data property changes will be compared by reference via triple equals ===. See https://ag-grid.com/react-data-grid/react-hooks/")},"rowDataChangeDetectionStrategy_Deprecation")},g.prototype.shouldComponentUpdate=function(e){return this.processPropsChanges(this.props,e),!1},g.prototype.componentDidUpdate=function(e){this.processPropsChanges(e,this.props)},g.prototype.processPropsChanges=function(e,t){var n={};this.extractGridPropertyChanges(e,t,n),this.processSynchronousChanges(n),this.processAsynchronousChanges(n)},g.prototype.extractGridPropertyChanges=function(t,n,r){var o=!!n.debug;Object.keys(n).forEach(function(e){ae.ComponentUtil.ALL_PROPERTIES_SET.has(e)&&t[e]!==n[e]&&(o&&console.log("agGridReact: ["+e+"] property changed"),r[e]={previousValue:t[e],currentValue:n[e]})}),ae.ComponentUtil.EVENT_CALLBACKS.forEach(function(e){t[e]!==n[e]&&(o&&console.log("agGridReact: ["+e+"] event callback changed"),r[e]={previousValue:t[e],currentValue:n[e]})})},g.prototype.componentWillUnmount=function(){this.api&&(this.api.destroy(),this.api=null),this.destroyed=!0,this.portalManager.destroy()},g.prototype.isDisableStaticMarkup=function(){return!0===this.props.disableStaticMarkup},g.prototype.isLegacyComponentRendering=function(){return!0===this.props.legacyComponentRendering},g.prototype.processSynchronousChanges=function(e){var t,n=ie({},e);return 0<Object.keys(n).length&&(t={},this.SYNCHRONOUS_CHANGE_PROPERTIES.forEach(function(e){n[e]&&(t[e]=n[e],delete n[e])}),0<Object.keys(t).length)&&this.api&&ae.ComponentUtil.processOnChange(t,this.api),n},g.prototype.processAsynchronousChanges=function(e){var t=this;0<Object.keys(e).length&&window.setTimeout(function(){t.api&&ae.ComponentUtil.processOnChange(e,t.api)})},g.defaultProps={legacyComponentRendering:!1,disableStaticMarkup:!1,maxComponentCreationTimeMs:g.MAX_COMPONENT_CREATION_TIME_IN_MS=1e3};var te,C=g;function g(e){var t=te.call(this,e)||this;return t.props=e,t.api=null,t.destroyed=!1,t.SYNCHRONOUS_CHANGE_PROPERTIES=["context"],t.portalManager=new k(t,e.componentWrappingElement,e.maxComponentCreationTimeMs),t}function y(e,t){e.forEach(function(e){C[e]=t})}C.propTypes={gridOptions:t.object},y(ae.ComponentUtil.EVENT_CALLBACKS,t.func),y(ae.ComponentUtil.BOOLEAN_PROPERTIES,t.bool),y(ae.ComponentUtil.STRING_PROPERTIES,t.string),y(ae.ComponentUtil.OBJECT_PROPERTIES,t.object),y(ae.ComponentUtil.ARRAY_PROPERTIES,t.array),y(ae.ComponentUtil.NUMBER_PROPERTIES,t.number),y(ae.ComponentUtil.FUNCTION_PROPERTIES,t.func);n(R,ne=ae.BaseComponentWrapper),R.prototype.createWrapper=function(e,t){return this.agGridReact.isLegacyComponentRendering()?new I(e,this.agGridReact,this.portalManager,t):new N(e,this.portalManager,t)};var ne,re=R;function R(e,t){var n=ne.call(this)||this;return n.agGridReact=e,n.portalManager=t,n}n(S,v=oe.Component),S.prototype.render=function(){return this.props.suppressReactUi?se.createElement(C,ie({},this.props,{setGridApi:this.setGridApi})):se.createElement(E,ie({},this.props,{setGridApi:this.setGridApi}))};var v,a=S;function S(){var n=null!==v&&v.apply(this,arguments)||this;return n.setGridApi=function(e,t){n.api=e,n.columnApi=t},n}e.AgGridReact=a,e.AgGridReactLegacy=C,e.AgGridReactFire=E,Object.defineProperty(e,"__esModule",{value:!0})});

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("prop-types"),require("react-dom/server"),require("react-dom"),require("react"),require("ag-grid-community")):"function"==typeof define&&define.amd?define(["exports","prop-types","react-dom/server","react-dom","react","ag-grid-community"],t):t(e.AgGridReact={},e.PropTypes,e.ReactDOMServer,e.ReactDOM,e.React,e.agGrid)}(this,function(e,t,S,r,oe,ae){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t;var se="default"in oe?oe.default:oe,w=function(e,t){return(w=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}))(e,t)};function n(e,t){function n(){this.constructor=e}w(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var ie=function(){return(ie=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function D(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),o=0,t=0;t<n;t++)for(var a=arguments[t],s=0,i=a.length;s<i;s++,o++)r[o]=a[s];return r}n(a,M=function(){}),a.prototype.getGui=function(){return this.eParentElement},a.prototype.destroy=function(){return this.componentInstance&&"function"==typeof this.componentInstance.destroy&&this.componentInstance.destroy(),this.portalManager.destroyPortal(this.portal)},a.prototype.createParentElement=function(e){var t=this.portalManager.getComponentWrappingElement(),t=document.createElement(t||"div");return t.classList.add("ag-react-container"),e.reactContainer=t},a.prototype.addParentContainerStyleAndClasses=function(){var t=this;this.componentInstance&&(this.componentInstance.getReactContainerStyle&&this.componentInstance.getReactContainerStyle()&&Object.assign(this.eParentElement.style,this.componentInstance.getReactContainerStyle()),this.componentInstance.getReactContainerClasses)&&this.componentInstance.getReactContainerClasses()&&this.componentInstance.getReactContainerClasses().forEach(function(e){return t.eParentElement.classList.add(e)})},a.prototype.statelessComponentRendered=function(){return 0<this.eParentElement.childElementCount||0<this.eParentElement.childNodes.length},a.prototype.getFrameworkComponentInstance=function(){return this.componentInstance},a.prototype.isStatelessComponent=function(){return this.statelessComponent},a.prototype.getReactComponentName=function(){return this.reactComponent.name},a.prototype.getMemoType=function(){return this.hasSymbol()?Symbol.for("react.memo"):60115},a.prototype.hasSymbol=function(){return"function"==typeof Symbol&&Symbol.for},a.prototype.isStateless=function(e){return"function"==typeof e&&!(e.prototype&&e.prototype.isReactComponent)||"object"==typeof e&&e.$$typeof===this.getMemoType()},a.prototype.hasMethod=function(e){var t=this.getFrameworkComponentInstance();return!!t&&null!==t[e]||this.fallbackMethodAvailable(e)},a.prototype.callMethod=function(e,t){var n,r=this,o=this.getFrameworkComponentInstance();return this.isStatelessComponent()?this.fallbackMethod(e,t&&t[0]?t[0]:{}):o?(n=o[e])?n.apply(o,t):this.fallbackMethodAvailable(e)?this.fallbackMethod(e,t&&t[0]?t[0]:{}):void 0:void setTimeout(function(){return r.callMethod(e,t)})},a.prototype.addMethod=function(e,t){this[e]=t};var M,o=a;function a(e,t,n){var r=M.call(this)||this;return r.portal=null,r.reactComponent=e,r.portalManager=t,r.componentType=n,r.statelessComponent=r.isStateless(r.reactComponent),r}var O=0;function s(){return"agPortalKey_"+ ++O}n(i,T=o),i.prototype.init=function(t){var n=this;return this.eParentElement=this.createParentElement(t),this.renderStaticMarkup(t),new ae.AgPromise(function(e){return n.createReactComponent(t,e)})},i.prototype.createReactComponent=function(e,t){var n=this,e=(this.isStatelessComponent()||(e.ref=function(e){n.componentInstance=e,n.addParentContainerStyleAndClasses(),n.removeStaticMarkup()}),oe.createElement(this.reactComponent,e)),e=r.createPortal(e,this.eParentElement,s());this.portal=e,this.portalManager.mountReactPortal(e,this,function(e){t(e),n.isStatelessComponent()&&(n.isSlowRenderer()&&n.removeStaticMarkup(),setTimeout(function(){n.removeStaticMarkup()}))})},i.prototype.fallbackMethodAvailable=function(e){return!1},i.prototype.fallbackMethod=function(e,t){},i.prototype.isSlowRenderer=function(){return this.staticRenderTime>=i.SLOW_RENDERING_THRESHOLD},i.prototype.isNullValue=function(){return""===this.staticMarkup},i.prototype.renderStaticMarkup=function(e){if(!this.parentComponent.isDisableStaticMarkup()&&this.componentType.cellRenderer){var t=console.error,e=oe.createElement(this.reactComponent,e);try{console.error=function(){};var n=Date.now(),r=S.renderToStaticMarkup(e);this.staticRenderTime=Date.now()-n,console.error=t,""===r?this.staticMarkup=r:r&&(this.staticMarkup=document.createElement("span"),this.staticMarkup.innerHTML=r,this.eParentElement.appendChild(this.staticMarkup))}catch(e){}finally{console.error=t}}},i.prototype.removeStaticMarkup=function(){!this.parentComponent.isDisableStaticMarkup()&&this.componentType.cellRenderer&&this.staticMarkup&&(this.staticMarkup.remove?(this.staticMarkup.remove(),this.staticMarkup=null):this.eParentElement.removeChild&&(this.eParentElement.removeChild(this.staticMarkup),this.staticMarkup=null))},i.prototype.rendered=function(){return this.isNullValue()||!!this.staticMarkup||this.isStatelessComponent()&&this.statelessComponentRendered()||!(this.isStatelessComponent()||!this.getFrameworkComponentInstance())},i.SLOW_RENDERING_THRESHOLD=3;var T,I=i;function i(e,t,n,r){e=T.call(this,e,n,r)||this;return e.staticMarkup=null,e.staticRenderTime=0,e.parentComponent=t,e}n(u,A=o),u.prototype.init=function(e){var t=this;return this.eParentElement=this.createParentElement(e),this.params=e,this.createOrUpdatePortal(e),new ae.AgPromise(function(e){return t.createReactComponent(e)})},u.prototype.createOrUpdatePortal=function(e){var t=this;this.isStatelessComponent()||(e.ref=function(e){t.componentInstance=e,t.addParentContainerStyleAndClasses()}),this.reactElement=oe.createElement(this.reactComponent,ie(ie({},e),{key:this.key})),this.portal=r.createPortal(this.reactElement,this.eParentElement,this.portalKey)},u.prototype.createReactComponent=function(t){this.portalManager.mountReactPortal(this.portal,this,function(e){t(e)})},u.prototype.isNullValue=function(){return this.valueRenderedIsNull(this.params)},u.prototype.rendered=function(){return this.isStatelessComponent()&&this.statelessComponentRendered()||!(this.isStatelessComponent()||!this.getFrameworkComponentInstance())},u.prototype.valueRenderedIsNull=function(e){if(this.componentType.cellRenderer){var t=console.error;try{return console.error=function(){},""===S.renderToStaticMarkup(oe.createElement(this.reactComponent,e))}catch(e){}finally{console.error=t}}return!1},u.prototype.refreshComponent=function(e){this.oldPortal=this.portal,this.createOrUpdatePortal(e),this.portalManager.updateReactPortal(this.oldPortal,this.portal)},u.prototype.fallbackMethod=function(e,t){e=this[e+"Component"];if(e)return e.bind(this)(t)},u.prototype.fallbackMethodAvailable=function(e){return!!this[e+"Component"]};var A,N=u;function u(e,t,n){e=A.call(this,e,t,n)||this;return e.oldPortal=null,e.key=s(),e.portalKey=s(),e}c.prototype.getPortals=function(){return this.portals},c.prototype.destroy=function(){this.destroyed=!0},c.prototype.destroyPortal=function(t){this.portals=this.portals.filter(function(e){return e!==t}),this.batchUpdate()},c.prototype.getComponentWrappingElement=function(){return this.wrappingElement},c.prototype.mountReactPortal=function(e,t,n){this.portals=D(this.portals,[e]),this.waitForInstance(t,n),this.batchUpdate()},c.prototype.updateReactPortal=function(e,t){this.portals[this.portals.indexOf(e)]=t,this.batchUpdate()},c.prototype.batchUpdate=function(){var e=this;this.hasPendingPortalUpdate||(setTimeout(function(){e.destroyed||e.parent.forceUpdate(function(){e.hasPendingPortalUpdate=!1})}),this.hasPendingPortalUpdate=!0)},c.prototype.waitForInstance=function(e,t,n){var r=this;if(void 0===n&&(n=Date.now()),this.destroyed)t(null);else if(e.rendered())t(e);else{if(Date.now()-n>=this.maxComponentCreationTimeMs&&!this.hasPendingPortalUpdate)return e.isNullValue()?void t(e):void console.error("AG Grid: React Component '"+e.getReactComponentName()+"' not created within "+this.maxComponentCreationTimeMs+"ms");window.setTimeout(function(){r.waitForInstance(e,t,n)})}},c.MAX_COMPONENT_CREATION_TIME_IN_MS=1e3;var G=c;function c(e,t,n){this.destroyed=!1,this.portals=[],this.hasPendingPortalUpdate=!1,this.wrappingElement=t||"div",this.parent=e,this.maxComponentCreationTimeMs=n||c.MAX_COMPONENT_CREATION_TIME_IN_MS}function _(e,t,n,r){var o=!e||e.componentFromFramework;if(!o){var a,s,i,o=e.newAgStackInstance();if(o)return i=!1,o.then(function(e){i?t.destroyBean(e):(s=(a=e).getGui(),n.appendChild(s),k(r,a))}),function(){i=!0,a&&(s&&s.parentElement&&s.parentElement.removeChild(s),t.destroyBean(a),r)&&k(r,void 0)}}}function k(e,t){e&&(e instanceof Function?e(t):e.current=t)}function ue(e){var t=oe.useRef(e),n=oe.useRef(),r=oe.useRef(!1),o=oe.useRef(!1),a=oe.useState(0)[1];r.current&&(o.current=!0),oe.useLayoutEffect(function(){return r.current||(n.current=t.current(),r.current=!0),a(function(e){return e+1}),function(){o.current&&n.current&&n.current()}},[])}function Q(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(function(e){return null!=e&&""!==e}).join(" ")}var ce=se.createContext({}),le=function(e){var t=oe.useRef(e),n=oe.useRef(),r=oe.useRef(!1),o=oe.useRef(!1),a=oe.useState(0)[1];r.current&&(o.current=!0),oe.useEffect(function(){return r.current||(n.current=t.current(),r.current=!0),a(function(e){return e+1}),function(){o.current&&n.current&&n.current()}},[])},P=(l.prototype.setClass=function(e,t){var n;return!!this.classesMap[e]==t?this:((n=new l).classesMap=ie({},this.classesMap),n.classesMap[e]=t,n)},l.prototype.toString=function(){var t=this;return Object.keys(this.classesMap).filter(function(e){return t.classesMap[e]}).join(" ")},l);function l(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this.classesMap={},e.forEach(function(e){t.classesMap[e]=!0})}function pe(e){return"function"==typeof e&&!(e.prototype&&e.prototype.isReactComponent)||"object"==typeof e&&e.$$typeof===("function"==typeof Symbol&&Symbol.for?Symbol.for("react.memo"):60115)}function ee(r,o){le(function(){var e,t=o.current,n=t.parentElement;if(n)return e=document.createComment(r),n.insertBefore(e,t),function(){n.removeChild(e)}})}var b=oe.forwardRef(function(n,e){var r=oe.useContext(ce).context,o=oe.useRef(null),t=oe.useRef(null),a=oe.useRef(null),s=oe.useRef(null),i=oe.useRef(null),u=oe.useState(),c=u[0],l=u[1],u=oe.useState(),p=u[0],f=u[1],u=oe.useState(),m=u[0],d=u[1],u=oe.useState(new P),h=u[0],C=u[1],u=oe.useState(new P("ag-hidden")),g=u[0],y=u[1],u=oe.useState(new P("ag-hidden")),R=u[0],E=u[1],u=oe.useState(new P("ag-invisible")),v=u[0],S=u[1],u=(oe.useImperativeHandle(e,function(){return{refresh:function(){return!1}}}),oe.useLayoutEffect(function(){return _(c,r,t.current)},[c]),ue(function(){var e={setInnerRenderer:function(e,t){l(e),d(t)},setChildCount:function(e){return f(e)},addOrRemoveCssClass:function(t,n){return C(function(e){return e.setClass(t,n)})},setContractedDisplayed:function(t){return E(function(e){return e.setClass("ag-hidden",!t)})},setExpandedDisplayed:function(t){return y(function(e){return e.setClass("ag-hidden",!t)})},setCheckboxVisible:function(t){return S(function(e){return e.setClass("ag-invisible",!t)})}},t=r.createBean(new ae.GroupCellRendererCtrl);return t.init(e,o.current,a.current,s.current,i.current,b,n),function(){r.destroyBean(t)}}),oe.useMemo(function(){return"ag-cell-wrapper "+h.toString()},[h])),e=oe.useMemo(function(){return"ag-group-expanded "+g.toString()},[g]),w=oe.useMemo(function(){return"ag-group-contracted "+R.toString()},[R]),M=oe.useMemo(function(){return"ag-group-checkbox "+v.toString()},[v]),O=c&&c.componentFromFramework,T=O?c.componentClass:void 0,I=null==c&&null!=m,m=ae._.escapeString(m,!0);return se.createElement("span",ie({className:u,ref:o},n.colDef?{}:{role:"gridcell"}),se.createElement("span",{className:e,ref:s}),se.createElement("span",{className:w,ref:i}),se.createElement("span",{className:M,ref:a}),se.createElement("span",{className:"ag-group-value",ref:t},I&&se.createElement(se.Fragment,null,m),O&&se.createElement(T,ie({},c.params))),se.createElement("span",{className:"ag-group-child-count"},p))}),F=oe.memo(function(e){var t=oe.useContext(ce).context,n=oe.useState(),r=n[0],o=n[1],n=oe.useState(),a=n[0],s=n[1],n=oe.useState(),i=n[0],u=n[1],n=oe.useState(),c=n[0],l=n[1],n=oe.useState(),p=n[0],f=n[1],n=oe.useState(),m=n[0],d=n[1],h=oe.useRef(null),C=oe.useRef(null),g=oe.useRef(null),y=oe.useRef(),R=e.ctrl,E=oe.useMemo(function(){return new ae.CssClassManager(function(){return h.current})},[]),n=(ue(function(){R.setComp({setWidth:function(e){return o(e)},addOrRemoveCssClass:function(e,t){return E.addOrRemoveCssClass(e,t)},setColId:function(e){return u(e)},setTitle:function(e){return s(e)},setAriaDescription:function(e){return f(e)},setAriaSort:function(e){return l(e)},setUserCompDetails:function(e){return d(e)},getUserCompInstance:function(){return y.current||void 0}},h.current,C.current,g.current);var e=R.getSelectAllGui();C.current.insertAdjacentElement("afterend",e)}),oe.useLayoutEffect(function(){return _(m,t,g.current,y)},[m]),oe.useEffect(function(){R.setDragSource(h.current)},[m]),oe.useMemo(function(){return{width:r}},[r])),e=oe.useMemo(function(){return!!((null==m?void 0:m.componentFromFramework)&&pe(m.componentClass))},[m]),v=m&&m.componentFromFramework,S=m&&m.componentClass;return se.createElement("div",{ref:h,className:"ag-header-cell",style:n,title:a,"col-id":i,"aria-sort":c,role:"columnheader",tabIndex:-1,"aria-description":p},se.createElement("div",{ref:C,className:"ag-header-cell-resize",role:"presentation"}),se.createElement("div",{ref:g,className:"ag-header-cell-comp-wrapper",role:"presentation"},v&&e&&se.createElement(S,ie({},m.params)),v&&!e&&se.createElement(S,ie({},m.params,{ref:y}))))}),x=oe.memo(function(e){var t=oe.useContext(ce).context,n=oe.useState(new P),r=n[0],o=n[1],n=oe.useState(new P),a=n[0],s=n[1],n=oe.useState("false"),i=n[0],u=n[1],n=oe.useState(),c=n[0],l=n[1],n=oe.useState(),p=n[0],f=n[1],n=oe.useState(),m=n[0],d=n[1],n=oe.useState(),h=n[0],C=n[1],n=oe.useState(),g=n[0],y=n[1],R=oe.useRef(null),E=oe.useRef(null),v=e.ctrl,n=(ue(function(){v.setComp({setWidth:function(e){return l(e)},addOrRemoveCssClass:function(t,n){return o(function(e){return e.setClass(t,n)})},setColId:function(e){return d(e)},setTitle:function(e){return f(e)},setUserCompDetails:function(e){return y(e)},setResizableDisplayed:function(t){s(function(e){return e.setClass("ag-hidden",!t)}),u(t?"false":"true")},setAriaExpanded:function(e){return C(e)}},R.current,E.current)}),oe.useLayoutEffect(function(){return _(g,t,R.current)},[g]),oe.useEffect(function(){var t=void 0;R.current.childNodes.forEach(function(e){null!=e&&e!==E.current&&(t=e)}),t&&v.setDragSource(t)},[g]),oe.useMemo(function(){return{width:c}},[c])),e=oe.useMemo(function(){return"ag-header-group-cell "+r.toString()},[r]),S=oe.useMemo(function(){return"ag-header-cell-resize "+a.toString()},[a]),w=g&&g.componentFromFramework,M=g&&g.componentClass;return se.createElement("div",{ref:R,className:e,style:n,title:p,"col-id":m,role:"columnheader",tabIndex:-1,"aria-expanded":h},w&&se.createElement(M,ie({},g.params)),se.createElement("div",{ref:E,"aria-hidden":i,className:S}))}),B=oe.memo(function(e){function t(e){R.current||null!=e&&(E.current&&E.current(e),R.current=!0)}var n=oe.useContext(ce).context,r=oe.useState(new P("ag-header-cell","ag-floating-filter")),o=r[0],a=r[1],r=oe.useState(new P),s=r[0],i=r[1],r=oe.useState(new P("ag-floating-filter-button","ag-hidden")),u=r[0],c=r[1],r=oe.useState("false"),l=r[0],p=r[1],r=oe.useState(),f=r[0],m=r[1],r=oe.useState(),d=r[0],h=r[1],C=oe.useRef(null),g=oe.useRef(null),r=oe.useRef(null),y=oe.useRef(null),R=oe.useRef(!1),E=oe.useRef(),v=oe.useRef(),S=(ue(function(){v.current=new ae.AgPromise(function(e){E.current=e})}),e.ctrl),e=(ue(function(){S.setComp({addOrRemoveCssClass:function(t,n){return a(function(e){return e.setClass(t,n)})},addOrRemoveBodyCssClass:function(t,n){return i(function(e){return e.setClass(t,n)})},setButtonWrapperDisplayed:function(t){c(function(e){return e.setClass("ag-hidden",!t)}),p(t?"false":"true")},setWidth:function(e){return m(e)},setCompDetails:function(e){return h(e)},getFloatingFilterComp:function(){return v.current||null},setMenuIcon:function(e){return y.current.appendChild(e)}},C.current,y.current,g.current)}),oe.useLayoutEffect(function(){return _(d,n,g.current,t)},[d]),oe.useMemo(function(){return{width:f}},[f])),w=oe.useMemo(function(){return o.toString()},[o]),M=oe.useMemo(function(){return s.toString()},[s]),O=oe.useMemo(function(){return u.toString()},[u]),T=oe.useMemo(function(){return!!(d&&d.componentFromFramework&&pe(d.componentClass))},[d]),I=d&&d.componentFromFramework,b=d&&d.componentClass;return se.createElement("div",{ref:C,className:w,style:e,role:"gridcell",tabIndex:-1},se.createElement("div",{ref:g,className:M,role:"presentation"},I&&T&&se.createElement(b,ie({},d.params)),I&&!T&&se.createElement(b,ie({},d.params,{ref:t}))),se.createElement("div",{ref:r,"aria-hidden":l,className:O,role:"presentation"},se.createElement("button",{ref:y,type:"button","aria-label":"Open Filter Menu",className:"ag-floating-filter-button-button",tabIndex:-1})))}),L=oe.memo(function(e){var s=oe.useContext(ce).gridOptionsService,t=oe.useState(),n=t[0],r=t[1],t=oe.useState(),o=t[0],a=t[1],t=oe.useState(),i=t[0],u=t[1],t=oe.useState(),c=t[0],l=t[1],t=oe.useState(),p=t[0],f=t[1],t=oe.useState([]),m=t[0],d=t[1],t=oe.useRef(null),h=e.ctrl,C=h.getType()===ae.HeaderRowType.COLUMN,g=h.getType()===ae.HeaderRowType.COLUMN_GROUP,y=h.getType()===ae.HeaderRowType.FLOATING_FILTER,R=oe.useCallback(function(e,t){var n,r,o=s.is("ensureDomOrder"),a=s.isDomLayout("print");return o||a?t:(n=ae._.mapById(e,function(e){return e.getInstanceId()}),r=ae._.mapById(t,function(e){return e.getInstanceId()}),D(e.filter(function(e){return r.has(e.getInstanceId())}),t.filter(function(e){return!n.has(e.getInstanceId())})))},[]),e=(ue(function(){h.setComp({setTransform:function(e){return r(e)},setHeight:function(e){return a(e)},setTop:function(e){return u(e)},setHeaderCtrls:function(t){return d(function(e){return R(e,t)})},setWidth:function(e){return l(e)},setAriaRowIndex:function(e){return f(e)}})}),oe.useMemo(function(){return{transform:n,height:o,top:i,width:c}},[n,o,i,c])),E=oe.useMemo(function(){var e=["ag-header-row"];return C&&e.push("ag-header-row-column"),g&&e.push("ag-header-row-column-group"),y&&e.push("ag-header-row-column-filter"),e.join(" ")},[]),v=oe.useCallback(function(e){switch(h.getType()){case ae.HeaderRowType.COLUMN_GROUP:return se.createElement(x,{ctrl:e,key:e.getInstanceId()});case ae.HeaderRowType.FLOATING_FILTER:return se.createElement(B,{ctrl:e,key:e.getInstanceId()});default:return se.createElement(F,{ctrl:e,key:e.getInstanceId()})}},[]);return se.createElement("div",{ref:t,className:E,role:"row",style:e,"aria-rowindex":p},m.map(v))}),p=oe.memo(function(n){function e(){return i.map(function(e){return se.createElement(L,{ctrl:e,key:e.getInstanceId()})})}var t=oe.useState(new P),r=t[0],o=t[1],t=oe.useState(!1),a=t[0],s=t[1],t=oe.useState([]),i=t[0],u=t[1],c=oe.useContext(ce).context,l=oe.useRef(null),p=oe.useRef(null),t="left"===n.pinned,f="right"===n.pinned,m=!t&&!f,d=(ue(function(){var e={setDisplayed:function(t){o(function(e){return e.setClass("ag-hidden",!t)}),s(!t)},setCtrls:function(e){return u(e)},setCenterWidth:function(e){p.current&&(p.current.style.width=e)},setContainerTransform:function(e){p.current&&(p.current.style.transform=e)},setPinnedContainerWidth:function(e){l.current.style.width=e,l.current.style.minWidth=e,l.current.style.maxWidth=e}},t=c.createBean(new ae.HeaderRowContainerCtrl(n.pinned));return t.setComp(e,l.current),function(){c.destroyBean(t)}}),oe.useMemo(function(){return r.toString()},[r]));return se.createElement(se.Fragment,null,t&&se.createElement("div",{ref:l,className:"ag-pinned-left-header "+d,"aria-hidden":a,role:"presentation"},e()),f&&se.createElement("div",{ref:l,className:"ag-pinned-right-header "+d,"aria-hidden":a,role:"presentation"},e()),m&&se.createElement("div",{ref:l,className:"ag-header-viewport "+d,role:"presentation"},se.createElement("div",{ref:p,className:"ag-header-container",role:"rowgroup"},e())))}),te=oe.memo(function(){var e=oe.useState(new P),t=e[0],r=e[1],e=oe.useState(),n=e[0],o=e[1],a=oe.useContext(ce).context,s=oe.useRef(null),e=(ue(function(){var e={addOrRemoveCssClass:function(t,n){return r(function(e){return e.setClass(t,n)})},setHeightAndMinHeight:function(e){return o(e)}},t=a.createBean(new ae.GridHeaderCtrl);return t.setComp(e,s.current,s.current),function(){a.destroyBean(t)}}),oe.useMemo(function(){return"ag-header "+t.toString()},[t])),i=oe.useMemo(function(){return{height:n,minHeight:n}},[n]);return se.createElement("div",{ref:s,className:e,style:i,role:"presentation"},se.createElement(p,{pinned:"left"}),se.createElement(p,{pinned:null}),se.createElement(p,{pinned:"right"}))}),fe=oe.memo(function(u){var e=oe.useState(),t=e[0],c=e[1],e=oe.useContext(ce),l=e.context,p=e.popupService,f=e.localeService,m=e.gridOptionsService;return le(function(){var e=u.editDetails,t=u.cellCtrl,n=u.eParentCell,r=e.compDetails,o=m.is("stopEditingWhenCellsLoseFocus"),a=l.createBean(new ae.PopupEditorWrapper(r.params)),r=a.getGui(),s=(u.jsChildComp&&(s=u.jsChildComp.getGui())&&r.appendChild(s),{column:t.getColumn(),rowNode:t.getRowNode(),type:"popupCellEditor",eventSource:n,ePopup:r,position:e.popupPosition,keepWithinBounds:!0}),e=p.positionPopupByComponent.bind(p,s),s=f.getLocaleTextFunc(),o=p.addPopup({modal:o,eChild:r,closeOnEsc:!0,closedCallback:function(){t.onPopupEditorClosed()},anchorToElement:n,positionCallback:e,ariaLabel:s("ariaLabelCellEditor","Cell Editor")}),i=o?o.hideFunc:void 0;return c(a),u.jsChildComp&&u.jsChildComp.afterGuiAttached&&u.jsChildComp.afterGuiAttached(),function(){null!=i&&i(),l.destroyBean(a)}}),se.createElement(se.Fragment,null,t&&u.wrappedContent&&r.createPortal(u.wrappedContent,t.getGui()))}),U=oe.memo(function(e){function t(){return se.createElement(se.Fragment,null,null!=E&&(i=S,u=re,c=O,l=G,p=ne,f=Q,m=(s=E).compDetails,s=s.value,d=!m,h=m&&m.componentFromFramework,C=m&&m.componentClass,g=null!=s&&s.toString?s.toString():s,se.createElement(se.Fragment,null,l?se.createElement("span",{role:"presentation",id:"cell-"+u,className:"ag-cell-value",ref:f},y()):y())),null!=v&&(s=v,l=te,u=ee,f=M.current,e=R,t=$,n=s.compDetails,r=n.componentClass,o=n.componentFromFramework&&!s.popup,a=n.componentFromFramework&&s.popup,n=!n.componentFromFramework&&s.popup,se.createElement(se.Fragment,null,o&&se.createElement(r,ie({},s.compDetails.params,{ref:l})),a&&se.createElement(fe,{editDetails:s,cellCtrl:e,eParentCell:f,wrappedContent:se.createElement(r,ie({},s.compDetails.params,{ref:u}))}),n&&t&&se.createElement(fe,{editDetails:s,cellCtrl:e,eParentCell:f,jsChildComp:t}))));var e,t,n,r,o,a,s,i,u,c,l,p,f,m,d,h,C,g;function y(){return se.createElement(se.Fragment,null,d&&se.createElement(se.Fragment,null,g),h&&!p&&se.createElement(C,ie({},m.params,{key:i,ref:c})),h&&p&&se.createElement(C,ie({},m.params,{key:i})))}}var n,r,o,a,s,i,u,c=oe.useContext(ce).context,R=e.cellCtrl,l=e.printLayout,p=e.editingRow,e=oe.useState(),E=e[0],f=e[1],e=oe.useState(),v=e[0],m=e[1],e=oe.useState(1),S=e[0],d=e[1],e=oe.useState(),_=e[0],x=e[1],e=oe.useState(),B=e[0],L=e[1],e=oe.useState(),U=e[0],H=e[1],e=oe.useState(),W=e[0],j=e[1],e=oe.useState(),V=e[0],K=e[1],e=oe.useState(!1),h=e[0],Y=e[1],e=oe.useState(!1),C=e[0],q=e[1],e=oe.useState(!1),g=e[0],z=e[1],e=oe.useState(),$=e[0],y=e[1],w=oe.useMemo(function(){return R.isForceWrapper()},[]),M=oe.useRef(null),O=oe.useRef(null),T=oe.useRef(),I=oe.useRef(),b=oe.useRef(),e=oe.useState(0),X=e[0],Z=e[1],e=oe.useCallback(function(e){b.current=e,Z(function(e){return e+1})},[]),P=oe.useRef(),A=oe.useState(0),N=A[0],J=A[1],Q=oe.useCallback(function(e){P.current=e,J(function(e){return e+1})},[]),G=w||null!=E&&(h||g||C),k=oe.useCallback(function(e,t){var n,r,o,a,s;(I.current=t)&&(e=e,n=t,s=(r=R).getColumn(),!e&&n.isPopup&&n.isPopup()&&(o="AG Grid: Found an issue in column "+s.getColId()+". If using React, specify an editor is a popup using colDef.cellEditorPopup=true. AG Grid React cannot depend on the editor component specifying if it's in a popup (via the isPopup() method on the editor), as React needs to know this information BEFORE the component is created.",ae._.doOnce(function(){return console.warn(o)},"jsEditorComp-isPopup-"+r.getColumn().getColId())),e&&n.getPopupPosition&&null!=n.getPopupPosition()&&(a="AG Grid: Found an issue in column "+s.getColId()+". If using React, specify an editor popup position using colDef.cellEditorPopupPosition=true. AG Grid React cannot depend on the editor component specifying it's position (via the getPopupPosition() method on the editor), as React needs to know this information BEFORE the component is created.",ae._.doOnce(function(){return console.warn(a)},"jsEditorComp-getPopupPosition-"+r.getColumn().getColId())),t.isCancelBeforeStart)&&t.isCancelBeforeStart()&&setTimeout(function(){R.stopEditing(!0),R.focusCell(!0)})},[]),ee=oe.useCallback(function(e){return k(!0,e)},[]),te=oe.useCallback(function(e){return k(!1,e)},[]),F=oe.useMemo(function(){return new ae.CssClassManager(function(){return M.current})},[]),D=(n=E,r=G,o=P.current,A=N,a=T,s=M,N=oe.useContext(ce),i=N.context,N.userComponentFactory,u=oe.useCallback(function(){var e,t=a.current;t&&((e=t.getGui())&&e.parentElement&&e.parentElement.removeChild(e),i.destroyBean(t),a.current=void 0)},[]),oe.useEffect(function(){var e=n&&n.compDetails&&!n.compDetails.componentFromFramework;if(null!=n&&e&&!(r&&null==o)){e=n.compDetails;if(a.current){var t=a.current,t=null!=t.refresh&&0==n.force&&t.refresh(e.params);if(!0===t||void 0===t)return;u()}t=e.newAgStackInstance();t&&(e=t.resolveNow(null,function(e){return e}))&&(t=e.getGui())&&((r?o:s.current).appendChild(t),a.current=e)}else u()},[n,r,A]),le(function(){return u}),oe.useRef()),ne=(oe.useEffect(function(){var e=D.current,t=E;D.current=E,null!=e&&null!=e.compDetails&&null!=t&&null!=t.compDetails&&(e=e.compDetails,t=t.compDetails,e.componentClass==t.componentClass)&&null!=O.current&&null!=O.current.refresh&&1!=O.current.refresh(t.params)&&d(function(e){return e+1})},[E]),oe.useEffect(function(){if(v&&!v.compDetails.componentFromFramework){var e,t=v.compDetails,n=!0===v.popup,r=function(e){e=e.newAgStackInstance();if(e)return e.resolveNow(null,function(e){return e})}(t);if(r)return e=r.getGui(),k(n,r),n||(null!=(t=(w?b:M).current)&&t.appendChild(e),r.afterGuiAttached&&r.afterGuiAttached()),y(r),function(){c.destroyBean(r),k(n,void 0),y(void 0),e&&e.parentElement&&e.parentElement.removeChild(e)}}},[v]),oe.useEffect(function(){var n,e;if(R&&c&&(b.current&&G))return n=[],e=function(e){var t;return e&&(t=e.getGui(),b.current.insertAdjacentElement("afterbegin",t),n.push(function(){c.destroyBean(e),ae._.removeFromParent(t)})),e},h&&e(R.createSelectionCheckbox()),g&&e(R.createDndSource()),C&&e(R.createRowDragComp()),function(){return n.forEach(function(e){return e()})}},[G,g,C,h,X]),ue(function(){var e;R&&(e=b.current||void 0,R.setComp({addOrRemoveCssClass:function(e,t){return F.addOrRemoveCssClass(e,t)},setUserStyles:function(e){return x(e)},getFocusableElement:function(){return M.current},setTabIndex:function(e){return L(e)},setRole:function(e){return H(e)},setColId:function(e){return j(e)},setTitle:function(e){return K(e)},setIncludeSelection:function(e){return Y(e)},setIncludeRowDrag:function(e){return q(e)},setIncludeDndSource:function(e){return z(e)},getCellEditor:function(){return I.current||null},getCellRenderer:function(){return O.current||T.current},getParentOfValue:function(){return P.current||b.current||M.current},setRenderDetails:function(e,t,n){f({value:t,compDetails:e,force:n})},setEditDetails:function(e,t,n){e?(m({compDetails:e,popup:t,popupPosition:n}),t||f(void 0)):m(void 0)}},M.current,e,l,p))}),oe.useMemo(function(){return!!(E&&E.compDetails&&E.compDetails.componentFromFramework&&pe(E.compDetails.componentClass))},[E])),re=(oe.useEffect(function(){var e;M.current&&(F.addOrRemoveCssClass("ag-cell-value",!G),F.addOrRemoveCssClass("ag-cell-inline-editing",!!v&&!v.popup),F.addOrRemoveCssClass("ag-cell-popup-editing",!!v&&!!v.popup),F.addOrRemoveCssClass("ag-cell-not-inline-editing",!v||!!v.popup),null!=(e=R.getRowCtrl()))&&e.setInlineEditingCss(!!v)}),oe.useMemo(function(){return R.getInstanceId()},[]));return se.createElement("div",{ref:M,style:_,tabIndex:B,role:U,"col-id":W,title:V},G?se.createElement("div",{className:"ag-cell-wrapper",role:"presentation",ref:e},t()):t())}),H=oe.memo(function(e){var t=oe.useContext(ce).context,n=e.rowCtrl,r=e.containerType,e=oe.useState(),o=e[0],a=e[1],e=oe.useState(),s=e[0],i=e[1],e=oe.useState(),u=e[0],c=e[1],e=oe.useState(),l=e[0],p=e[1],e=oe.useState(),f=e[0],m=e[1],e=oe.useState(),d=e[0],h=e[1],e=oe.useState({list:[],instanceIdMap:new Map}),C=e[0],g=e[1],e=oe.useState(),y=e[0],R=e[1],e=oe.useState(!1),E=e[0],v=e[1],e=oe.useState(n.getInitialRowTop(r)),S=e[0],w=e[1],e=oe.useState(n.getInitialTransform(r)),M=e[0],O=e[1],T=oe.useRef(null),I=oe.useRef(),b=oe.useRef(!1),e=oe.useState(0),P=e[0],A=e[1],N=(oe.useEffect(function(){var e;b.current||!y||10<P||((e=null==(e=T.current)?void 0:e.firstChild)?(n.setupDetailRowAutoHeight(e),b.current=!0):A(function(e){return e+1}))},[y,P]),oe.useMemo(function(){return new ae.CssClassManager(function(){return T.current})},[])),e=(ue(function(){if(n.isAlive())return n.setComp({setTop:function(e){return w(e)},setTransform:function(e){return O(e)},addOrRemoveCssClass:function(e,t){return N.addOrRemoveCssClass(e,t)},setDomOrder:function(e){return v(e)},setRowIndex:function(e){return a(e)},setRowId:function(e){return i(e)},setRowBusinessKey:function(e){return p(e)},setTabIndex:function(e){return m(e)},setUserStyles:function(e){return h(e)},setRole:function(e){return c(e)},setCellCtrls:function(i){return g(function(e){return n=e,e=i,E?(t={list:e,instanceIdMap:new Map},e.forEach(function(e){return t.instanceIdMap.set(e.getInstanceId(),e)}),t):(r=[],o=[],a=new Map,s=new Map,e.forEach(function(e){return s.set(e.getInstanceId(),e)}),n.list.forEach(function(e){var t=e.getInstanceId();s.has(t)&&(r.push(e),a.set(t,e))}),e.forEach(function(e){var t=e.getInstanceId();n.instanceIdMap.has(t)||(o.push(e),a.set(t,e))}),{list:D(r,o),instanceIdMap:a});var n,t,r,o,a,s})},showFullWidth:function(e){return R(e)},getFullWidthCellRenderer:function(){return I.current}},T.current,r),function(){n.unsetComp(r)}}),oe.useLayoutEffect(function(){return _(y,t,T.current,I)},[y]),oe.useMemo(function(){var e={top:S,transform:M};return Object.assign(e,d),e},[S,M,d])),G=y&&y.componentFromFramework,k=null!=C,F=oe.useMemo(function(){return!!((null==y?void 0:y.componentFromFramework)&&pe(y.componentClass))},[y]);return se.createElement("div",{ref:T,role:u,style:e,"row-index":o,"row-id":s,"row-business-key":l,tabIndex:f},k&&C.list.map(function(e){return se.createElement(U,{cellCtrl:e,editingRow:n.isEditing(),printLayout:n.isPrintLayout(),key:e.getInstanceId()})}),G&&(u=y.componentClass,se.createElement(se.Fragment,null,F&&se.createElement(u,ie({},y.params)),!F&&se.createElement(u,ie({},y.params,{ref:I})))))}),ne=oe.memo(function(e){var r=oe.useContext(ce).context,t=oe.useState(""),n=t[0],o=t[1],t=oe.useState([]),a=t[0],s=t[1],t=oe.useState(""),i=t[0],u=t[1],c=e.name,l=oe.useMemo(function(){return ae.getRowContainerTypeForName(c)},[c]),p=oe.useRef(null),f=oe.useRef(null),m=oe.useRef(null),d=oe.useRef([]),h=oe.useRef(!1),C=oe.useMemo(function(){return ae.RowContainerCtrl.getRowContainerCssClasses(c)},[c]),t=oe.useMemo(function(){return Q(C.wrapper)},[]),e=oe.useMemo(function(){return Q(C.viewport)},[]),g=oe.useMemo(function(){return Q(C.container)},[]),y=c===ae.RowContainerName.CENTER,R=c===ae.RowContainerName.TOP_CENTER||c===ae.RowContainerName.BOTTOM_CENTER||c===ae.RowContainerName.STICKY_TOP_CENTER,E=!y&&!R;function v(){s(function(e){var t,n=d.current;return h.current?n:(t=e.filter(function(e){return 0<=n.indexOf(e)}),e=n.filter(function(e){return t.indexOf(e)<0}),D(t,e))})}ee(" AG Row Container "+c+" ",y?p:R?f:m),ue(function(){var e=[],t={setViewportHeight:o,setRowCtrls:function(e){d.current!==e&&(d.current=e,v())},setDomOrder:function(e){h.current!=e&&(h.current=e,v())},setContainerWidth:function(e){return u(e)}},n=r.createBean(new ae.RowContainerCtrl(c));return e.push(n),n.setComp(t,m.current,f.current,p.current),function(){r.destroyBeans(e)}});function S(){return se.createElement("div",{className:g,ref:m,role:a.length?"rowgroup":"presentation",style:M},a.map(function(e){return se.createElement(H,{rowCtrl:e,containerType:l,key:e.getInstanceId()})}))}var w=oe.useMemo(function(){return{height:n}},[n]),M=oe.useMemo(function(){return{width:i}},[i]);return se.createElement(se.Fragment,null,y&&se.createElement("div",{className:t,ref:p,role:"presentation"},se.createElement("div",{className:e,ref:f,role:"presentation",style:w},S())),R&&se.createElement("div",{className:e,ref:f,role:"presentation",style:w},S()),E&&S())}),W=oe.memo(function(){function o(e){return se.createElement(ne,{name:e,key:e+"-container"})}function e(e){var t=e.section,n=e.children,r=e.className,e=e.style;return se.createElement("div",{ref:t,className:r,role:"presentation",style:e},n.map(o))}var t=oe.useContext(ce),a=t.context,s=t.agStackComponentsRegistry,i=t.resizeObserverService,t=oe.useState(""),n=t[0],u=t[1],t=oe.useState(0),r=t[0],c=t[1],t=oe.useState(0),l=t[0],p=t[1],t=oe.useState(0),f=t[0],m=t[1],t=oe.useState(0),d=t[0],h=t[1],t=oe.useState("0px"),C=t[0],g=t[1],t=oe.useState("0px"),y=t[0],R=t[1],t=oe.useState("100%"),E=t[0],v=t[1],t=oe.useState(""),S=t[0],w=t[1],t=oe.useState(""),M=t[0],_=t[1],t=oe.useState(""),O=t[0],x=t[1],t=oe.useState(null),T=t[0],B=t[1],t=oe.useState(""),I=t[0],L=t[1],t=oe.useState(null),b=t[0],U=t[1],t=oe.useState("ag-layout-normal"),P=t[0],H=t[1],W=oe.useMemo(function(){return new ae.CssClassManager(function(){return A.current})},[]),A=oe.useRef(null),N=oe.useRef(null),G=oe.useRef(null),k=oe.useRef(null),F=oe.useRef(null),D=oe.useRef(null),t=(ee(" AG Grid Body ",A),ee(" AG Pinned Top ",N),ee(" AG Sticky Top ",G),ee(" AG Middle ",F),ee(" AG Pinned Bottom ",D),le(function(){var e,t,n=[],r=[];if(a)return e=function(e){e=s.getComponentClass(e),e=a.createBean(new e);return n.push(e),e},A.current.appendChild(document.createComment(" AG Fake Horizontal Scroll ")),A.current.appendChild(e("AG-FAKE-HORIZONTAL-SCROLL").getGui()),A.current.appendChild(document.createComment(" AG Overlay Wrapper ")),A.current.appendChild(e("AG-OVERLAY-WRAPPER").getGui()),k.current.appendChild(document.createComment(" AG Fake Vertical Scroll ")),k.current.appendChild(e("AG-FAKE-VERTICAL-SCROLL").getGui()),e={setRowAnimationCssOnBodyViewport:u,setColumnCount:c,setRowCount:p,setTopHeight:m,setBottomHeight:h,setStickyTopHeight:g,setStickyTopTop:R,setStickyTopWidth:v,setTopDisplay:w,setBottomDisplay:_,setColumnMovingCss:function(e,t){return W.addOrRemoveCssClass(e,t)},updateLayoutClasses:H,setAlwaysVerticalScrollClass:B,setPinnedTopBottomOverflowY:L,setCellSelectableCss:U,setBodyViewportWidth:x,registerBodyViewportResizeListener:function(e){var t=i.observeResize(F.current,e);r.push(function(){return t()})}},t=a.createBean(new ae.GridBodyCtrl),n.push(t),t.setComp(e,A.current,F.current,N.current,D.current,G.current),function(){a.destroyBeans(n),r.forEach(function(e){return e()})}}),oe.useMemo(function(){return Q("ag-root","ag-unselectable",P)},[P])),j=oe.useMemo(function(){return Q("ag-body-viewport",n,P,T,b)},[n,P,T,b]),V=oe.useMemo(function(){return Q("ag-body",P)},[P]),K=oe.useMemo(function(){return Q("ag-body-clipper",P)},[P]),Y=oe.useMemo(function(){return Q("ag-floating-top",b)},[b]),q=oe.useMemo(function(){return Q("ag-sticky-top",b)},[b]),z=oe.useMemo(function(){return Q("ag-floating-bottom",b)},[b]),$=oe.useMemo(function(){return{height:f,minHeight:f,display:S,overflowY:I}},[f,S,I]),X=oe.useMemo(function(){return{height:C,top:y,width:E}},[C,y,E]),Z=oe.useMemo(function(){return{height:d,minHeight:d,display:M,overflowY:I}},[d,M,I]),J=oe.useMemo(function(){return{width:O}},[O]);return se.createElement("div",{ref:A,className:t,role:"treegrid","aria-colcount":r,"aria-rowcount":l},se.createElement(te,null),e({section:N,className:Y,style:$,children:[ae.RowContainerName.TOP_LEFT,ae.RowContainerName.TOP_CENTER,ae.RowContainerName.TOP_RIGHT,ae.RowContainerName.TOP_FULL_WIDTH]}),se.createElement("div",{className:V,ref:k,role:"presentation"},se.createElement("div",{className:K,role:"presentation"},e({section:F,className:j,style:J,children:[ae.RowContainerName.LEFT,ae.RowContainerName.CENTER,ae.RowContainerName.RIGHT,ae.RowContainerName.FULL_WIDTH]}))),e({section:G,className:q,style:X,children:[ae.RowContainerName.STICKY_TOP_LEFT,ae.RowContainerName.STICKY_TOP_CENTER,ae.RowContainerName.STICKY_TOP_RIGHT,ae.RowContainerName.STICKY_TOP_FULL_WIDTH]}),e({section:D,className:z,style:Z,children:[ae.RowContainerName.BOTTOM_LEFT,ae.RowContainerName.BOTTOM_CENTER,ae.RowContainerName.BOTTOM_RIGHT,ae.RowContainerName.BOTTOM_FULL_WIDTH]}))}),o=oe.forwardRef(function(e,t){function n(e){var t="top"===e?ae.TabGuardClassNames.TAB_GUARD_TOP:ae.TabGuardClassNames.TAB_GUARD_BOTTOM;return se.createElement("div",{className:ae.TabGuardClassNames.TAB_GUARD+" "+t,role:"presentation",tabIndex:p,ref:"top"===e?u:c})}var r=e.children,o=e.eFocusableElement,a=e.onTabKeyDown,s=e.gridCtrl,i=oe.useContext(ce).context,u=oe.useRef(null),c=oe.useRef(null),l=oe.useRef(),e=oe.useState(),p=e[0],f=e[1];oe.useImperativeHandle(t,function(){return{forceFocusOutOfContainer:function(){l.current.forceFocusOutOfContainer()}}}),le(function(){var e=u.current,t=c.current,n=l.current=i.createBean(new ae.TabGuardCtrl({comp:{setTabIndex:function(e){return f(null==e?void 0:parseInt(e,10))}},eTopGuard:e,eBottomGuard:t,eFocusableElement:o,onTabKeyDown:a,focusInnerElement:function(e){return s.focusInnerElement(e)}}));return function(){i.destroyBean(n)}});return se.createElement(se.Fragment,null,n("top"),r,n("bottom"))}),j=oe.memo(o),V=oe.memo(function(e){var p=e.context,e=oe.useState(""),t=e[0],n=e[1],e=oe.useState(""),r=e[0],o=e[1],e=oe.useState(""),a=e[0],s=e[1],e=oe.useState(null),i=e[0],u=e[1],e=oe.useState(null),c=e[0],l=e[1],e=oe.useState(!1),f=e[0],m=e[1],e=oe.useState(),d=e[0],h=e[1],C=oe.useRef(null),g=oe.useRef(null),y=oe.useRef(),R=oe.useRef(null),E=oe.useRef(function(){}),e=oe.useCallback(function(){},[]),v=oe.useMemo(function(){return p.getBean("beans")},[]),S=(ee(" AG Grid ",g),le(function(){var e=C.current=p.createBean(new ae.GridCtrl);return function(){p.destroyBean(e),C.current=null}}),le(function(){var e=C.current,t=(E.current=e.focusInnerElement.bind(e),{destroyGridUi:function(){},setRtlClass:n,addOrRemoveKeyboardFocusClass:function(e){return o(e?ae.FocusService.AG_KEYBOARD_FOCUS:"")},forceFocusOutOfContainer:function(){y.current.forceFocusOutOfContainer()},updateLayoutClasses:s,getFocusableContainers:function(){var e=[],t=g.current.querySelector(".ag-root"),n=g.current.querySelector(".ag-side-bar:not(.ag-hidden)");return t&&e.push(t),n&&e.push(n),e},setCursor:u,setUserSelect:l});e.setComp(t,g.current,g.current),m(!0)}),oe.useEffect(function(){var e,t,n,r,o,a,s,i,u,c,l;if(d)return e=C.current,t=[],c=(o=v.agStackComponentsRegistry).getComponentClass("AG-GRID-HEADER-DROP-ZONES"),u=o.getComponentClass("AG-SIDE-BAR"),n=o.getComponentClass("AG-STATUS-BAR"),r=o.getComponentClass("AG-WATERMARK"),o=o.getComponentClass("AG-PAGINATION"),a=[],s=g.current,i=R.current,e.showDropZones()&&c&&(l=(c=p.createBean(new c)).getGui(),s.insertAdjacentElement("afterbegin",l),a.push(l),t.push(c)),e.showSideBar()&&u&&(l=(c=p.createBean(new u)).getGui(),(u=i.querySelector(".ag-tab-guard-bottom"))&&(u.insertAdjacentElement("beforebegin",l),a.push(l)),t.push(c)),e.showStatusBar()&&n&&(l=(i=p.createBean(new n)).getGui(),s.insertAdjacentElement("beforeend",l),a.push(l),t.push(i)),o&&(l=(u=p.createBean(new o)).getGui(),s.insertAdjacentElement("beforeend",l),a.push(l),t.push(u)),e.showWatermark()&&r&&(l=(c=p.createBean(new r)).getGui(),s.insertAdjacentElement("beforeend",l),a.push(l),t.push(c)),function(){p.destroyBeans(t),a.forEach(function(e){e.parentElement&&e.parentElement.removeChild(e)})}},[d]),oe.useMemo(function(){return Q("ag-root-wrapper",t,r,a)},[t,r,a])),w=oe.useMemo(function(){return Q("ag-root-wrapper-body","ag-focus-managed",a)},[a]),M=oe.useMemo(function(){return{userSelect:null!=c?c:"",WebkitUserSelect:null!=c?c:"",cursor:null!=i?i:""}},[c,i]),O=R.current,T=oe.useCallback(function(e){y.current=e,h(!0)},[]);return se.createElement("div",{ref:g,className:S,style:M,role:"presentation"},se.createElement("div",{className:w,ref:R,role:"presentation"},f&&O&&se.createElement(ce.Provider,{value:v},se.createElement(j,{ref:T,eFocusableElement:O,onTabKeyDown:e,gridCtrl:C.current},se.createElement(W,null)))))});n(f,K=oe.Component),f.prototype.render=function(){return this.state.context,this.state.context&&(this.renderedAfterMount=!0),se.createElement("div",{style:this.createStyleForDiv(),className:this.props.className,ref:this.eGui},this.state.context&&se.createElement(V,{context:this.state.context}),this.portalManager.getPortals())},f.prototype.createStyleForDiv=function(){return ie({height:"100%"},this.props.containerStyle||{})},f.prototype.componentDidMount=function(){var e,t=this;this.mounted||(this.mounted=!0,e=this.props.modules||[],e={providedBeanInstances:{frameworkComponentWrapper:new q(this.portalManager)},modules:e,frameworkOverrides:new X(!0)},this.gridOptions=this.props.gridOptions||{},this.gridOptions=ae.ComponentUtil.copyAttributesToGridOptions(this.gridOptions,this.props),this.checkForDeprecations(this.props),(new ae.GridCoreCreator).create(this.eGui.current,this.gridOptions,function(e){t.setState({context:e}),e.getBean(ae.CtrlsService.NAME).whenReady(function(){t.api=t.gridOptions.api,t.columnApi=t.gridOptions.columnApi,t.props.setGridApi(t.api,t.columnApi),t.destroyFuncs.push(function(){return t.api.destroy()})})},function(e){e.getBean(ae.CtrlsService.NAME).whenReady(function(){t.whenReadyFuncs.forEach(function(e){return e()}),t.whenReadyFuncs.length=0,t.ready=!0})},e))},f.prototype.checkForDeprecations=function(e){e.rowDataChangeDetectionStrategy&&ae._.doOnce(function(){return console.warn("AG Grid: Since v29 rowDataChangeDetectionStrategy has been deprecated. Row data property changes will be compared by reference via triple equals ===. See https://ag-grid.com/react-data-grid/react-hooks/")},"rowDataChangeDetectionStrategy_Deprecation")},f.prototype.componentWillUnmount=function(){this.renderedAfterMount&&(this.destroyFuncs.forEach(function(e){return e()}),this.destroyFuncs.length=0)},f.prototype.componentDidUpdate=function(e){this.processPropsChanges(e,this.props)},f.prototype.processPropsChanges=function(e,t){var n={};this.extractGridPropertyChanges(e,t,n),this.processChanges(n)},f.prototype.extractGridPropertyChanges=function(t,n,r){var o=!!n.debug;Object.keys(n).forEach(function(e){ae.ComponentUtil.ALL_PROPERTIES_SET.has(e)&&t[e]!==n[e]&&(o&&console.log("agGridReact: ["+e+"] property changed"),r[e]={previousValue:t[e],currentValue:n[e]})}),ae.ComponentUtil.EVENT_CALLBACKS.forEach(function(e){t[e]!==n[e]&&(o&&console.log("agGridReact: ["+e+"] event callback changed"),r[e]={previousValue:t[e],currentValue:n[e]})})},f.prototype.processChanges=function(e){var t=this;this.processWhenReady(function(){return ae.ComponentUtil.processOnChange(e,t.api)})},f.prototype.processWhenReady=function(e){this.ready?e():this.whenReadyFuncs.push(e)};var K,E=f;function f(e){var t=K.call(this,e)||this;return t.props=e,t.destroyFuncs=[],t.eGui=se.createRef(),t.whenReadyFuncs=[],t.ready=!1,t.renderedAfterMount=!1,t.mounted=!1,t.state={context:void 0},t.portalManager=new G(t,e.componentWrappingElement,e.maxComponentCreationTimeMs),t.destroyFuncs.push(function(){return t.portalManager.destroy()}),t}n(m,Y=ae.BaseComponentWrapper),m.prototype.createWrapper=function(e,t){return new N(e,this.parent,t)};var Y,q=m;function m(e){var t=Y.call(this)||this;return t.parent=e,t}var z,$=oe.forwardRef(function(r,e){var t=oe.useContext(ce),o=t.ctrlsFactory,a=t.context,s=t.gridOptionsService,i=t.resizeObserverService,u=t.clientSideRowModel,c=t.serverSideRowModel,t=oe.useState(new P),n=t[0],l=t[1],t=oe.useState(new P),p=t[0],f=t[1],t=oe.useState(),m=t[0],d=t[1],t=oe.useState(),h=t[0],C=t[1],g=oe.useRef(),y=oe.useRef(null),t=oe.useMemo(function(){return n.toString()+" ag-details-row"},[n]),R=oe.useMemo(function(){return p.toString()+" ag-details-grid"},[p]),e=(e&&oe.useImperativeHandle(e,function(){return{refresh:function(){return g.current.refresh()}}}),le(function(){r.template&&"string"==typeof r.template&&console.warn("AG Grid: detailCellRendererParams.template is not supported by React - this only works with frameworks that work against String templates. To change the template, please provide your own React Detail Cell Renderer.")}),le(function(){var e,t={addOrRemoveCssClass:function(t,n){return l(function(e){return e.setClass(t,n)})},addOrRemoveDetailGridCssClass:function(t,n){return f(function(e){return e.setClass(t,n)})},setDetailGrid:function(e){return d(e)},setRowData:function(e){return C(e)},getGui:function(){return y.current}},n=o.getInstance("detailCellRenderer");if(n)return a.createBean(n),n.init(t,r),g.current=n,s.is("detailRowAutoHeight")&&(e=i.observeResize(y.current,t=function(){var e;null!=y.current&&null!=(e=y.current.clientHeight)&&0<e&&setTimeout(function(){r.node.setRowHeight(e),u?u.onRowHeightChanged():c&&c.onRowHeightChanged()},0)}),t()),function(){a.destroyBean(n),e&&e()}}),oe.useCallback(function(e,t){g.current.registerDetailWithMaster(e,t)},[]));return se.createElement("div",{className:t,ref:y},m&&se.createElement(E,ie({className:R},m,{rowData:h,setGridApi:e})))}),X=(n(d,z=ae.VanillaFrameworkOverrides),d.prototype.frameworkComponent=function(e){if(this.reactUi)return this.frameworkComponents[e]},d.prototype.isFrameworkComponent=function(e){return!(!e||(e=e.prototype)&&"getGui"in e)},d);function d(e){var t=z.call(this)||this;return t.frameworkComponents={agGroupCellRenderer:b,agGroupRowRenderer:b,agDetailCellRenderer:$},t.reactUi=e,t}n(C,Z=oe.Component),C.prototype.render=function(){var t=this;return se.createElement("div",{style:this.createStyleForDiv(),className:this.props.className,ref:function(e){t.eGridDiv=e}},this.portalManager.getPortals())},C.prototype.createStyleForDiv=function(){return ie({height:"100%"},this.props.containerStyle||{})},C.prototype.componentDidMount=function(){var e=this.props.modules||[],e={providedBeanInstances:{agGridReact:this,frameworkComponentWrapper:new re(this,this.portalManager)},modules:e,frameworkOverrides:new X(!1)},t=this.props.gridOptions||{};this.gridOptions=ae.ComponentUtil.copyAttributesToGridOptions(t,this.props),this.checkForDeprecations(this.props),new ae.Grid(this.eGridDiv,this.gridOptions,e),this.api=this.gridOptions.api,this.columnApi=this.gridOptions.columnApi,this.props.setGridApi(this.api,this.columnApi)},C.prototype.checkForDeprecations=function(e){e.rowDataChangeDetectionStrategy&&ae._.doOnce(function(){return console.warn("AG Grid: Since v29 rowDataChangeDetectionStrategy has been deprecated. Row data property changes will be compared by reference via triple equals ===. See https://ag-grid.com/react-data-grid/react-hooks/")},"rowDataChangeDetectionStrategy_Deprecation")},C.prototype.shouldComponentUpdate=function(e){return this.processPropsChanges(this.props,e),!1},C.prototype.componentDidUpdate=function(e){this.processPropsChanges(e,this.props)},C.prototype.processPropsChanges=function(e,t){var n={};this.extractGridPropertyChanges(e,t,n),this.processSynchronousChanges(n),this.processAsynchronousChanges(n)},C.prototype.extractGridPropertyChanges=function(t,n,r){var o=!!n.debug;Object.keys(n).forEach(function(e){ae.ComponentUtil.ALL_PROPERTIES_SET.has(e)&&t[e]!==n[e]&&(o&&console.log("agGridReact: ["+e+"] property changed"),r[e]={previousValue:t[e],currentValue:n[e]})}),ae.ComponentUtil.EVENT_CALLBACKS.forEach(function(e){t[e]!==n[e]&&(o&&console.log("agGridReact: ["+e+"] event callback changed"),r[e]={previousValue:t[e],currentValue:n[e]})})},C.prototype.componentWillUnmount=function(){this.api&&(this.api.destroy(),this.api=null),this.destroyed=!0,this.portalManager.destroy()},C.prototype.isDisableStaticMarkup=function(){return!0===this.props.disableStaticMarkup},C.prototype.isLegacyComponentRendering=function(){return!0===this.props.legacyComponentRendering},C.prototype.processSynchronousChanges=function(e){var t,n=ie({},e);return 0<Object.keys(n).length&&(t={},this.SYNCHRONOUS_CHANGE_PROPERTIES.forEach(function(e){n[e]&&(t[e]=n[e],delete n[e])}),0<Object.keys(t).length)&&this.api&&ae.ComponentUtil.processOnChange(t,this.api),n},C.prototype.processAsynchronousChanges=function(e){var t=this;0<Object.keys(e).length&&window.setTimeout(function(){t.api&&ae.ComponentUtil.processOnChange(e,t.api)})},C.defaultProps={legacyComponentRendering:!1,disableStaticMarkup:!1,maxComponentCreationTimeMs:C.MAX_COMPONENT_CREATION_TIME_IN_MS=1e3};var Z,h=C;function C(e){var t=Z.call(this,e)||this;return t.props=e,t.api=null,t.destroyed=!1,t.SYNCHRONOUS_CHANGE_PROPERTIES=["context"],t.portalManager=new G(t,e.componentWrappingElement,e.maxComponentCreationTimeMs),t}function g(e,t){e.forEach(function(e){h[e]=t})}h.propTypes={gridOptions:t.object},g(ae.ComponentUtil.EVENT_CALLBACKS,t.func),g(ae.ComponentUtil.BOOLEAN_PROPERTIES,t.bool),g(ae.ComponentUtil.STRING_PROPERTIES,t.string),g(ae.ComponentUtil.OBJECT_PROPERTIES,t.object),g(ae.ComponentUtil.ARRAY_PROPERTIES,t.array),g(ae.ComponentUtil.NUMBER_PROPERTIES,t.number),g(ae.ComponentUtil.FUNCTION_PROPERTIES,t.func);n(y,J=ae.BaseComponentWrapper),y.prototype.createWrapper=function(e,t){return this.agGridReact.isLegacyComponentRendering()?new I(e,this.agGridReact,this.portalManager,t):new N(e,this.portalManager,t)};var J,re=y;function y(e,t){var n=J.call(this)||this;return n.agGridReact=e,n.portalManager=t,n}n(v,R=oe.Component),v.prototype.render=function(){return this.props.suppressReactUi?se.createElement(h,ie({},this.props,{setGridApi:this.setGridApi})):se.createElement(E,ie({},this.props,{setGridApi:this.setGridApi}))};var R,o=v;function v(){var n=null!==R&&R.apply(this,arguments)||this;return n.setGridApi=function(e,t){n.api=e,n.columnApi=t},n}e.AgGridReact=o,e.AgGridReactLegacy=h,e.AgGridReactFire=E,Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("prop-types"),require("react-dom/server"),require("react-dom"),require("react"),require("ag-grid-community")):"function"==typeof define&&define.amd?define(["exports","prop-types","react-dom/server","react-dom","react","ag-grid-community"],t):t(e.AgGridReact={},e.PropTypes,e.ReactDOMServer,e.ReactDOM,e.React,e.agGrid)}(this,function(e,t,o,r,oe,ae){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t;var se="default"in oe?oe.default:oe,w=function(e,t){return(w=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}))(e,t)};function n(e,t){function n(){this.constructor=e}w(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var ie=function(){return(ie=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function D(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),o=0,t=0;t<n;t++)for(var a=arguments[t],s=0,i=a.length;s<i;s++,o++)r[o]=a[s];return r}n(s,M=function(){}),s.prototype.getGui=function(){return this.eParentElement},s.prototype.destroy=function(){return this.componentInstance&&"function"==typeof this.componentInstance.destroy&&this.componentInstance.destroy(),this.portalManager.destroyPortal(this.portal)},s.prototype.createParentElement=function(e){var t=this.portalManager.getComponentWrappingElement(),t=document.createElement(t||"div");return t.classList.add("ag-react-container"),e.reactContainer=t},s.prototype.addParentContainerStyleAndClasses=function(){var t=this;this.componentInstance&&(this.componentInstance.getReactContainerStyle&&this.componentInstance.getReactContainerStyle()&&Object.assign(this.eParentElement.style,this.componentInstance.getReactContainerStyle()),this.componentInstance.getReactContainerClasses)&&this.componentInstance.getReactContainerClasses()&&this.componentInstance.getReactContainerClasses().forEach(function(e){return t.eParentElement.classList.add(e)})},s.prototype.statelessComponentRendered=function(){return 0<this.eParentElement.childElementCount||0<this.eParentElement.childNodes.length},s.prototype.getFrameworkComponentInstance=function(){return this.componentInstance},s.prototype.isStatelessComponent=function(){return this.statelessComponent},s.prototype.getReactComponentName=function(){return this.reactComponent.name},s.prototype.getMemoType=function(){return this.hasSymbol()?Symbol.for("react.memo"):60115},s.prototype.hasSymbol=function(){return"function"==typeof Symbol&&Symbol.for},s.prototype.isStateless=function(e){return"function"==typeof e&&!(e.prototype&&e.prototype.isReactComponent)||"object"==typeof e&&e.$$typeof===this.getMemoType()},s.prototype.hasMethod=function(e){var t=this.getFrameworkComponentInstance();return!!t&&null!==t[e]||this.fallbackMethodAvailable(e)},s.prototype.callMethod=function(e,t){var n,r=this,o=this.getFrameworkComponentInstance();return this.isStatelessComponent()?this.fallbackMethod(e,t&&t[0]?t[0]:{}):o?(n=o[e])?n.apply(o,t):this.fallbackMethodAvailable(e)?this.fallbackMethod(e,t&&t[0]?t[0]:{}):void 0:void setTimeout(function(){return r.callMethod(e,t)})},s.prototype.addMethod=function(e,t){this[e]=t};var M,a=s;function s(e,t,n){var r=M.call(this)||this;return r.portal=null,r.reactComponent=e,r.portalManager=t,r.componentType=n,r.statelessComponent=r.isStateless(r.reactComponent),r}var O=0;function i(){return"agPortalKey_"+ ++O}n(u,T=a),u.prototype.init=function(t){var n=this;return this.eParentElement=this.createParentElement(t),this.renderStaticMarkup(t),new ae.AgPromise(function(e){return n.createReactComponent(t,e)})},u.prototype.createReactComponent=function(e,t){var n=this,e=(this.isStatelessComponent()||(e.ref=function(e){n.componentInstance=e,n.addParentContainerStyleAndClasses(),n.removeStaticMarkup()}),oe.createElement(this.reactComponent,e)),e=r.createPortal(e,this.eParentElement,i());this.portal=e,this.portalManager.mountReactPortal(e,this,function(e){t(e),n.isStatelessComponent()&&(n.isSlowRenderer()&&n.removeStaticMarkup(),setTimeout(function(){n.removeStaticMarkup()}))})},u.prototype.fallbackMethodAvailable=function(e){return!1},u.prototype.fallbackMethod=function(e,t){},u.prototype.isSlowRenderer=function(){return this.staticRenderTime>=u.SLOW_RENDERING_THRESHOLD},u.prototype.isNullValue=function(){return""===this.staticMarkup},u.prototype.renderStaticMarkup=function(e){if(!this.parentComponent.isDisableStaticMarkup()&&this.componentType.cellRenderer){var t=console.error,e=oe.createElement(this.reactComponent,e);try{console.error=function(){};var n=Date.now(),r=o.renderToStaticMarkup(e);this.staticRenderTime=Date.now()-n,console.error=t,""===r?this.staticMarkup=r:r&&(this.staticMarkup=document.createElement("span"),this.staticMarkup.innerHTML=r,this.eParentElement.appendChild(this.staticMarkup))}catch(e){}finally{console.error=t}}},u.prototype.removeStaticMarkup=function(){!this.parentComponent.isDisableStaticMarkup()&&this.componentType.cellRenderer&&this.staticMarkup&&(this.staticMarkup.remove?(this.staticMarkup.remove(),this.staticMarkup=null):this.eParentElement.removeChild&&(this.eParentElement.removeChild(this.staticMarkup),this.staticMarkup=null))},u.prototype.rendered=function(){return this.isNullValue()||!!this.staticMarkup||this.isStatelessComponent()&&this.statelessComponentRendered()||!(this.isStatelessComponent()||!this.getFrameworkComponentInstance())},u.SLOW_RENDERING_THRESHOLD=3;var T,I=u;function u(e,t,n,r){e=T.call(this,e,n,r)||this;return e.staticMarkup=null,e.staticRenderTime=0,e.parentComponent=t,e}n(c,A=a),c.prototype.init=function(e){var t=this;return this.eParentElement=this.createParentElement(e),this.params=e,this.createOrUpdatePortal(e),new ae.AgPromise(function(e){return t.createReactComponent(e)})},c.prototype.createOrUpdatePortal=function(e){var t=this;this.isStatelessComponent()||(e.ref=function(e){t.componentInstance=e,t.addParentContainerStyleAndClasses()}),this.reactElement=oe.createElement(this.reactComponent,ie(ie({},e),{key:this.key})),this.portal=r.createPortal(this.reactElement,this.eParentElement,this.portalKey)},c.prototype.createReactComponent=function(t){this.portalManager.mountReactPortal(this.portal,this,function(e){t(e)})},c.prototype.isNullValue=function(){return this.valueRenderedIsNull(this.params)},c.prototype.rendered=function(){return this.isStatelessComponent()&&this.statelessComponentRendered()||!(this.isStatelessComponent()||!this.getFrameworkComponentInstance())},c.prototype.valueRenderedIsNull=function(e){if(this.componentType.cellRenderer){var t=console.error;try{return console.error=function(){},""===o.renderToStaticMarkup(oe.createElement(this.reactComponent,e))}catch(e){}finally{console.error=t}}return!1},c.prototype.refreshComponent=function(e){this.oldPortal=this.portal,this.createOrUpdatePortal(e),this.portalManager.updateReactPortal(this.oldPortal,this.portal)},c.prototype.fallbackMethod=function(e,t){e=this[e+"Component"];if(e)return e.bind(this)(t)},c.prototype.fallbackMethodAvailable=function(e){return!!this[e+"Component"]};var A,N=c;function c(e,t,n){e=A.call(this,e,t,n)||this;return e.oldPortal=null,e.key=i(),e.portalKey=i(),e}l.prototype.getPortals=function(){return this.portals},l.prototype.destroy=function(){this.destroyed=!0},l.prototype.destroyPortal=function(t){this.portals=this.portals.filter(function(e){return e!==t}),this.batchUpdate()},l.prototype.getComponentWrappingElement=function(){return this.wrappingElement},l.prototype.mountReactPortal=function(e,t,n){this.portals=D(this.portals,[e]),this.waitForInstance(t,n),this.batchUpdate()},l.prototype.updateReactPortal=function(e,t){this.portals[this.portals.indexOf(e)]=t,this.batchUpdate()},l.prototype.batchUpdate=function(){var e=this;this.hasPendingPortalUpdate||(setTimeout(function(){e.destroyed||e.parent.forceUpdate(function(){e.hasPendingPortalUpdate=!1})}),this.hasPendingPortalUpdate=!0)},l.prototype.waitForInstance=function(e,t,n){var r=this;if(void 0===n&&(n=Date.now()),this.destroyed)t(null);else if(e.rendered())t(e);else{if(Date.now()-n>=this.maxComponentCreationTimeMs&&!this.hasPendingPortalUpdate)return e.isNullValue()?void t(e):void console.error("AG Grid: React Component '"+e.getReactComponentName()+"' not created within "+this.maxComponentCreationTimeMs+"ms");window.setTimeout(function(){r.waitForInstance(e,t,n)})}},l.MAX_COMPONENT_CREATION_TIME_IN_MS=1e3;var G=l;function l(e,t,n){this.destroyed=!1,this.portals=[],this.hasPendingPortalUpdate=!1,this.wrappingElement=t||"div",this.parent=e,this.maxComponentCreationTimeMs=n||l.MAX_COMPONENT_CREATION_TIME_IN_MS}function _(e,t,n,r){var o=!e||e.componentFromFramework;if(!o){var a,s,i,o=e.newAgStackInstance();if(o)return i=!1,o.then(function(e){i?t.destroyBean(e):(s=(a=e).getGui(),n.appendChild(s),k(r,a))}),function(){i=!0,a&&(s&&s.parentElement&&s.parentElement.removeChild(s),t.destroyBean(a),r)&&k(r,void 0)}}}function k(e,t){e&&(e instanceof Function?e(t):e.current=t)}function ue(e){var t=oe.useRef(e),n=oe.useRef(),r=oe.useRef(!1),o=oe.useRef(!1),a=oe.useState(0)[1];r.current&&(o.current=!0),oe.useLayoutEffect(function(){return r.current||(n.current=t.current(),r.current=!0),a(function(e){return e+1}),function(){o.current&&n.current&&n.current()}},[])}function Y(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(function(e){return null!=e&&""!==e}).join(" ")}var ce=se.createContext({}),pe=function(e){var t=oe.useRef(e),n=oe.useRef(),r=oe.useRef(!1),o=oe.useRef(!1),a=oe.useState(0)[1];r.current&&(o.current=!0),oe.useEffect(function(){return r.current||(n.current=t.current(),r.current=!0),a(function(e){return e+1}),function(){o.current&&n.current&&n.current()}},[])},b=(p.prototype.setClass=function(e,t){var n;return!!this.classesMap[e]==t?this:((n=new p).classesMap=ie({},this.classesMap),n.classesMap[e]=t,n)},p.prototype.toString=function(){var t=this;return Object.keys(this.classesMap).filter(function(e){return t.classesMap[e]}).join(" ")},p);function p(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this.classesMap={},e.forEach(function(e){t.classesMap[e]=!0})}function le(e){return"function"==typeof e&&!(e.prototype&&e.prototype.isReactComponent)||"object"==typeof e&&e.$$typeof===("function"==typeof Symbol&&Symbol.for?Symbol.for("react.memo"):60115)}function q(r,o){pe(function(){var e,t=o.current,n=t.parentElement;if(n)return e=document.createComment(r),n.insertBefore(e,t),function(){n.removeChild(e)}})}var P=oe.forwardRef(function(n,e){var r=oe.useContext(ce).context,o=oe.useRef(null),t=oe.useRef(null),a=oe.useRef(null),s=oe.useRef(null),i=oe.useRef(null),u=oe.useState(),c=u[0],l=u[1],u=oe.useState(),p=u[0],f=u[1],u=oe.useState(),m=u[0],d=u[1],u=oe.useState(new b),h=u[0],C=u[1],u=oe.useState(new b("ag-hidden")),g=u[0],y=u[1],u=oe.useState(new b("ag-hidden")),R=u[0],E=u[1],u=oe.useState(new b("ag-invisible")),v=u[0],S=u[1],u=(oe.useImperativeHandle(e,function(){return{refresh:function(){return!1}}}),oe.useLayoutEffect(function(){return _(c,r,t.current)},[c]),ue(function(){var e={setInnerRenderer:function(e,t){l(e),d(t)},setChildCount:function(e){return f(e)},addOrRemoveCssClass:function(t,n){return C(function(e){return e.setClass(t,n)})},setContractedDisplayed:function(t){return E(function(e){return e.setClass("ag-hidden",!t)})},setExpandedDisplayed:function(t){return y(function(e){return e.setClass("ag-hidden",!t)})},setCheckboxVisible:function(t){return S(function(e){return e.setClass("ag-invisible",!t)})}},t=r.createBean(new ae.GroupCellRendererCtrl);return t.init(e,o.current,a.current,s.current,i.current,P,n),function(){r.destroyBean(t)}}),oe.useMemo(function(){return"ag-cell-wrapper "+h.toString()},[h])),e=oe.useMemo(function(){return"ag-group-expanded "+g.toString()},[g]),w=oe.useMemo(function(){return"ag-group-contracted "+R.toString()},[R]),M=oe.useMemo(function(){return"ag-group-checkbox "+v.toString()},[v]),O=c&&c.componentFromFramework,T=O?c.componentClass:void 0,I=null==c&&null!=m,m=ae._.escapeString(m,!0);return se.createElement("span",ie({className:u,ref:o},n.colDef?{}:{role:"gridcell"}),se.createElement("span",{className:e,ref:s}),se.createElement("span",{className:w,ref:i}),se.createElement("span",{className:M,ref:a}),se.createElement("span",{className:"ag-group-value",ref:t},I&&se.createElement(se.Fragment,null,m),O&&se.createElement(T,ie({},c.params))),se.createElement("span",{className:"ag-group-child-count"},p))}),F=oe.memo(function(e){var t=oe.useContext(ce).context,n=oe.useState(),r=n[0],o=n[1],n=oe.useState(),a=n[0],s=n[1],n=oe.useState(),i=n[0],u=n[1],n=oe.useState(),c=n[0],l=n[1],n=oe.useState(),p=n[0],f=n[1],m=oe.useRef(null),d=oe.useRef(null),h=oe.useRef(null),C=oe.useRef(),g=e.ctrl,y=oe.useMemo(function(){return new ae.CssClassManager(function(){return m.current})},[]),n=(ue(function(){g.setComp({setWidth:function(e){return m.current.style.width=e},addOrRemoveCssClass:function(e,t){return y.addOrRemoveCssClass(e,t)},setColId:function(e){return s(e)},setTitle:function(e){return o(e)},setAriaDescription:function(e){return l(e)},setAriaSort:function(e){return u(e)},setUserCompDetails:function(e){return f(e)},getUserCompInstance:function(){return C.current||void 0}},m.current,d.current,h.current);var e=g.getSelectAllGui();d.current.insertAdjacentElement("afterend",e)}),oe.useLayoutEffect(function(){return _(p,t,h.current,C)},[p]),oe.useEffect(function(){g.setDragSource(m.current)},[p]),oe.useMemo(function(){return!!((null==p?void 0:p.componentFromFramework)&&le(p.componentClass))},[p])),e=p&&p.componentFromFramework,R=p&&p.componentClass;return se.createElement("div",{ref:m,className:"ag-header-cell",title:r,"col-id":a,"aria-sort":i,role:"columnheader",tabIndex:-1,"aria-description":c},se.createElement("div",{ref:d,className:"ag-header-cell-resize",role:"presentation"}),se.createElement("div",{ref:h,className:"ag-header-cell-comp-wrapper",role:"presentation"},e&&n&&se.createElement(R,ie({},p.params)),e&&!n&&se.createElement(R,ie({},p.params,{ref:C}))))}),x=oe.memo(function(e){var t=oe.useContext(ce).context,n=oe.useState(new b),r=n[0],o=n[1],n=oe.useState(new b),a=n[0],s=n[1],n=oe.useState("false"),i=n[0],u=n[1],n=oe.useState(),c=n[0],l=n[1],n=oe.useState(),p=n[0],f=n[1],n=oe.useState(),m=n[0],d=n[1],n=oe.useState(),h=n[0],C=n[1],g=oe.useRef(null),y=oe.useRef(null),R=e.ctrl,n=(ue(function(){R.setComp({setWidth:function(e){return g.current.style.width=e},addOrRemoveCssClass:function(t,n){return o(function(e){return e.setClass(t,n)})},setColId:function(e){return f(e)},setTitle:function(e){return l(e)},setUserCompDetails:function(e){return C(e)},setResizableDisplayed:function(t){s(function(e){return e.setClass("ag-hidden",!t)}),u(t?"false":"true")},setAriaExpanded:function(e){return d(e)}},g.current,y.current)}),oe.useLayoutEffect(function(){return _(h,t,g.current)},[h]),oe.useEffect(function(){var t=void 0;g.current.childNodes.forEach(function(e){null!=e&&e!==y.current&&(t=e)}),t&&R.setDragSource(t)},[h]),oe.useMemo(function(){return"ag-header-group-cell "+r.toString()},[r])),e=oe.useMemo(function(){return"ag-header-cell-resize "+a.toString()},[a]),E=h&&h.componentFromFramework,v=h&&h.componentClass;return se.createElement("div",{ref:g,className:n,title:c,"col-id":p,role:"columnheader",tabIndex:-1,"aria-expanded":m},E&&se.createElement(v,ie({},h.params)),se.createElement("div",{ref:y,"aria-hidden":i,className:e}))}),B=oe.memo(function(e){function t(e){g.current||null!=e&&(y.current&&y.current(e),g.current=!0)}var n=oe.useContext(ce).context,r=oe.useState(new b("ag-header-cell","ag-floating-filter")),o=r[0],a=r[1],r=oe.useState(new b),s=r[0],i=r[1],r=oe.useState(new b("ag-floating-filter-button","ag-hidden")),u=r[0],c=r[1],r=oe.useState("false"),l=r[0],p=r[1],r=oe.useState(),f=r[0],m=r[1],d=oe.useRef(null),h=oe.useRef(null),r=oe.useRef(null),C=oe.useRef(null),g=oe.useRef(!1),y=oe.useRef(),R=oe.useRef(),E=(ue(function(){R.current=new ae.AgPromise(function(e){y.current=e})}),e.ctrl),e=(ue(function(){E.setComp({addOrRemoveCssClass:function(t,n){return a(function(e){return e.setClass(t,n)})},addOrRemoveBodyCssClass:function(t,n){return i(function(e){return e.setClass(t,n)})},setButtonWrapperDisplayed:function(t){c(function(e){return e.setClass("ag-hidden",!t)}),p(t?"false":"true")},setWidth:function(e){return d.current.style.width=e},setCompDetails:function(e){return m(e)},getFloatingFilterComp:function(){return R.current||null},setMenuIcon:function(e){return C.current.appendChild(e)}},d.current,C.current,h.current)}),oe.useLayoutEffect(function(){return _(f,n,h.current,t)},[f]),oe.useMemo(function(){return o.toString()},[o])),v=oe.useMemo(function(){return s.toString()},[s]),S=oe.useMemo(function(){return u.toString()},[u]),w=oe.useMemo(function(){return!!(f&&f.componentFromFramework&&le(f.componentClass))},[f]),M=f&&f.componentFromFramework,O=f&&f.componentClass;return se.createElement("div",{ref:d,className:e,role:"gridcell",tabIndex:-1},se.createElement("div",{ref:h,className:v,role:"presentation"},M&&w&&se.createElement(O,ie({},f.params)),M&&!w&&se.createElement(O,ie({},f.params,{ref:t}))),se.createElement("div",{ref:r,"aria-hidden":l,className:S,role:"presentation"},se.createElement("button",{ref:C,type:"button","aria-label":"Open Filter Menu",className:"ag-floating-filter-button-button",tabIndex:-1})))}),L=oe.memo(function(e){var s=oe.useContext(ce).gridOptionsService,t=oe.useState(),n=t[0],r=t[1],t=oe.useState(),o=t[0],a=t[1],t=oe.useState(),i=t[0],u=t[1],t=oe.useState(),c=t[0],l=t[1],t=oe.useState([]),p=t[0],f=t[1],m=oe.useRef(null),d=e.ctrl,h=d.getType()===ae.HeaderRowType.COLUMN,C=d.getType()===ae.HeaderRowType.COLUMN_GROUP,g=d.getType()===ae.HeaderRowType.FLOATING_FILTER,y=oe.useCallback(function(e,t){var n,r,o=s.is("ensureDomOrder"),a=s.isDomLayout("print");return o||a?t:(n=ae._.mapById(e,function(e){return e.getInstanceId()}),r=ae._.mapById(t,function(e){return e.getInstanceId()}),D(e.filter(function(e){return r.has(e.getInstanceId())}),t.filter(function(e){return!n.has(e.getInstanceId())})))},[]),t=(ue(function(){d.setComp({setTransform:function(e){return r(e)},setHeight:function(e){return a(e)},setTop:function(e){return u(e)},setHeaderCtrls:function(t){return f(function(e){return y(e,t)})},setWidth:function(e){return m.current.style.width=e},setAriaRowIndex:function(e){return l(e)}})}),oe.useMemo(function(){return{transform:n,height:o,top:i}},[n,o,i])),e=oe.useMemo(function(){var e=["ag-header-row"];return h&&e.push("ag-header-row-column"),C&&e.push("ag-header-row-column-group"),g&&e.push("ag-header-row-column-filter"),e.join(" ")},[]),R=oe.useCallback(function(e){switch(d.getType()){case ae.HeaderRowType.COLUMN_GROUP:return se.createElement(x,{ctrl:e,key:e.getInstanceId()});case ae.HeaderRowType.FLOATING_FILTER:return se.createElement(B,{ctrl:e,key:e.getInstanceId()});default:return se.createElement(F,{ctrl:e,key:e.getInstanceId()})}},[]);return se.createElement("div",{ref:m,className:e,role:"row",style:t,"aria-rowindex":c},p.map(R))}),f=oe.memo(function(n){function e(){return i.map(function(e){return se.createElement(L,{ctrl:e,key:e.getInstanceId()})})}var t=oe.useState(new b),r=t[0],o=t[1],t=oe.useState(!1),a=t[0],s=t[1],t=oe.useState([]),i=t[0],u=t[1],c=oe.useContext(ce).context,l=oe.useRef(null),p=oe.useRef(null),t="left"===n.pinned,f="right"===n.pinned,m=!t&&!f,d=(ue(function(){var e={setDisplayed:function(t){o(function(e){return e.setClass("ag-hidden",!t)}),s(!t)},setCtrls:function(e){return u(e)},setCenterWidth:function(e){p.current&&(p.current.style.width=e)},setViewportScrollLeft:function(e){l.current&&(l.current.scrollLeft=e)},setPinnedContainerWidth:function(e){l.current.style.width=e,l.current.style.minWidth=e,l.current.style.maxWidth=e}},t=c.createBean(new ae.HeaderRowContainerCtrl(n.pinned));return t.setComp(e,l.current),function(){c.destroyBean(t)}}),oe.useMemo(function(){return r.toString()},[r]));return se.createElement(se.Fragment,null,t&&se.createElement("div",{ref:l,className:"ag-pinned-left-header "+d,"aria-hidden":a,role:"presentation"},e()),f&&se.createElement("div",{ref:l,className:"ag-pinned-right-header "+d,"aria-hidden":a,role:"presentation"},e()),m&&se.createElement("div",{ref:l,className:"ag-header-viewport "+d,role:"presentation"},se.createElement("div",{ref:p,className:"ag-header-container",role:"rowgroup"},e())))}),z=oe.memo(function(){var e=oe.useState(new b),t=e[0],r=e[1],e=oe.useState(),n=e[0],o=e[1],a=oe.useContext(ce).context,s=oe.useRef(null),e=(ue(function(){var e={addOrRemoveCssClass:function(t,n){return r(function(e){return e.setClass(t,n)})},setHeightAndMinHeight:function(e){return o(e)}},t=a.createBean(new ae.GridHeaderCtrl);return t.setComp(e,s.current,s.current),function(){a.destroyBean(t)}}),oe.useMemo(function(){return"ag-header "+t.toString()},[t])),i=oe.useMemo(function(){return{height:n,minHeight:n}},[n]);return se.createElement("div",{ref:s,className:e,style:i,role:"presentation"},se.createElement(f,{pinned:"left"}),se.createElement(f,{pinned:null}),se.createElement(f,{pinned:"right"}))}),fe=oe.memo(function(u){var e=oe.useState(),t=e[0],c=e[1],e=oe.useContext(ce),l=e.context,p=e.popupService,f=e.localeService,m=e.gridOptionsService;return ue(function(){var e=u.editDetails,t=u.cellCtrl,n=u.eParentCell,r=e.compDetails,o=m.is("stopEditingWhenCellsLoseFocus"),a=l.createBean(new ae.PopupEditorWrapper(r.params)),r=a.getGui(),s=(u.jsChildComp&&(s=u.jsChildComp.getGui())&&r.appendChild(s),{column:t.getColumn(),rowNode:t.getRowNode(),type:"popupCellEditor",eventSource:n,ePopup:r,position:e.popupPosition,keepWithinBounds:!0}),e=p.positionPopupByComponent.bind(p,s),s=f.getLocaleTextFunc(),o=p.addPopup({modal:o,eChild:r,closeOnEsc:!0,closedCallback:function(){t.onPopupEditorClosed()},anchorToElement:n,positionCallback:e,ariaLabel:s("ariaLabelCellEditor","Cell Editor")}),i=o?o.hideFunc:void 0;return c(a),u.jsChildComp&&u.jsChildComp.afterGuiAttached&&u.jsChildComp.afterGuiAttached(),function(){null!=i&&i(),l.destroyBean(a)}}),se.createElement(se.Fragment,null,t&&u.wrappedContent&&r.createPortal(u.wrappedContent,t.getGui()))}),U=oe.memo(function(e){function t(){return se.createElement(se.Fragment,null,null!=E&&(i=S,u=re,c=O,l=G,p=ne,f=Q,m=(s=E).compDetails,s=s.value,d=!m,h=m&&m.componentFromFramework,C=m&&m.componentClass,g=null!=s&&s.toString?s.toString():s,se.createElement(se.Fragment,null,l?se.createElement("span",{role:"presentation",id:"cell-"+u,className:"ag-cell-value",ref:f},y()):y())),null!=v&&(s=v,l=te,u=ee,f=M.current,e=R,t=$,n=s.compDetails,r=n.componentClass,o=n.componentFromFramework&&!s.popup,a=n.componentFromFramework&&s.popup,n=!n.componentFromFramework&&s.popup,se.createElement(se.Fragment,null,o&&se.createElement(r,ie({},s.compDetails.params,{ref:l})),a&&se.createElement(fe,{editDetails:s,cellCtrl:e,eParentCell:f,wrappedContent:se.createElement(r,ie({},s.compDetails.params,{ref:u}))}),n&&t&&se.createElement(fe,{editDetails:s,cellCtrl:e,eParentCell:f,jsChildComp:t}))));var e,t,n,r,o,a,s,i,u,c,l,p,f,m,d,h,C,g;function y(){return se.createElement(se.Fragment,null,d&&se.createElement(se.Fragment,null,g),h&&!p&&se.createElement(C,ie({},m.params,{key:i,ref:c})),h&&p&&se.createElement(C,ie({},m.params,{key:i})))}}var n,r,o,a,s,i,u,c=oe.useContext(ce).context,R=e.cellCtrl,l=e.printLayout,p=e.editingRow,e=oe.useState(),E=e[0],f=e[1],e=oe.useState(),v=e[0],m=e[1],e=oe.useState(1),S=e[0],d=e[1],e=oe.useState(),_=e[0],x=e[1],e=oe.useState(),B=e[0],L=e[1],e=oe.useState(),U=e[0],H=e[1],e=oe.useState(),W=e[0],j=e[1],e=oe.useState(),V=e[0],K=e[1],e=oe.useState(!1),h=e[0],Y=e[1],e=oe.useState(!1),C=e[0],q=e[1],e=oe.useState(!1),g=e[0],z=e[1],e=oe.useState(),$=e[0],y=e[1],w=oe.useMemo(function(){return R.isForceWrapper()},[]),M=oe.useRef(null),O=oe.useRef(null),T=oe.useRef(),I=oe.useRef(),b=oe.useRef(),e=oe.useState(0),X=e[0],Z=e[1],e=oe.useCallback(function(e){b.current=e,Z(function(e){return e+1})},[]),P=oe.useRef(),A=oe.useState(0),N=A[0],J=A[1],Q=oe.useCallback(function(e){P.current=e,J(function(e){return e+1})},[]),G=w||null!=E&&(h||g||C),k=oe.useCallback(function(e,t){var n,r,o,a,s;(I.current=t)&&(e=e,n=t,s=(r=R).getColumn(),!e&&n.isPopup&&n.isPopup()&&(o="AG Grid: Found an issue in column "+s.getColId()+". If using React, specify an editor is a popup using colDef.cellEditorPopup=true. AG Grid React cannot depend on the editor component specifying if it's in a popup (via the isPopup() method on the editor), as React needs to know this information BEFORE the component is created.",ae._.doOnce(function(){return console.warn(o)},"jsEditorComp-isPopup-"+r.getColumn().getColId())),e&&n.getPopupPosition&&null!=n.getPopupPosition()&&(a="AG Grid: Found an issue in column "+s.getColId()+". If using React, specify an editor popup position using colDef.cellEditorPopupPosition=true. AG Grid React cannot depend on the editor component specifying it's position (via the getPopupPosition() method on the editor), as React needs to know this information BEFORE the component is created.",ae._.doOnce(function(){return console.warn(a)},"jsEditorComp-getPopupPosition-"+r.getColumn().getColId())),t.isCancelBeforeStart)&&t.isCancelBeforeStart()&&setTimeout(function(){R.stopEditing(!0),R.focusCell(!0)})},[]),ee=oe.useCallback(function(e){return k(!0,e)},[]),te=oe.useCallback(function(e){return k(!1,e)},[]),F=oe.useMemo(function(){return new ae.CssClassManager(function(){return M.current})},[]),D=(n=E,r=G,o=P.current,A=N,a=T,s=M,N=oe.useContext(ce),i=N.context,N.userComponentFactory,u=oe.useCallback(function(){var e,t=a.current;t&&((e=t.getGui())&&e.parentElement&&e.parentElement.removeChild(e),i.destroyBean(t),a.current=void 0)},[]),oe.useEffect(function(){var e=n&&n.compDetails&&!n.compDetails.componentFromFramework;if(null!=n&&e&&!(r&&null==o)){e=n.compDetails;if(a.current){var t=a.current,t=null!=t.refresh&&0==n.force&&t.refresh(e.params);if(!0===t||void 0===t)return;u()}t=e.newAgStackInstance();t&&(e=t.resolveNow(null,function(e){return e}))&&(t=e.getGui())&&((r?o:s.current).appendChild(t),a.current=e)}else u()},[n,r,A]),pe(function(){return u}),oe.useRef()),ne=(oe.useLayoutEffect(function(){var e=D.current,t=E;D.current=E,null!=e&&null!=e.compDetails&&null!=t&&null!=t.compDetails&&(e=e.compDetails,t=t.compDetails,e.componentClass==t.componentClass)&&null!=O.current&&null!=O.current.refresh&&1!=O.current.refresh(t.params)&&d(function(e){return e+1})},[E]),oe.useLayoutEffect(function(){if(v&&!v.compDetails.componentFromFramework){var e,t=v.compDetails,n=!0===v.popup,r=function(e){e=e.newAgStackInstance();if(e)return e.resolveNow(null,function(e){return e})}(t);if(r)return e=r.getGui(),k(n,r),n||(null!=(t=(w?b:M).current)&&t.appendChild(e),r.afterGuiAttached&&r.afterGuiAttached()),y(r),function(){c.destroyBean(r),k(n,void 0),y(void 0),e&&e.parentElement&&e.parentElement.removeChild(e)}}},[v]),oe.useLayoutEffect(function(){var n,e;if(R&&c&&(b.current&&G))return n=[],e=function(e){var t;return e&&(t=e.getGui(),b.current.insertAdjacentElement("afterbegin",t),n.push(function(){c.destroyBean(e),ae._.removeFromParent(t)})),e},h&&e(R.createSelectionCheckbox()),g&&e(R.createDndSource()),C&&e(R.createRowDragComp()),function(){return n.forEach(function(e){return e()})}},[G,g,C,h,X]),ue(function(){var e;R&&(e=b.current||void 0,R.setComp({addOrRemoveCssClass:function(e,t){return F.addOrRemoveCssClass(e,t)},setUserStyles:function(e){return x(e)},getFocusableElement:function(){return M.current},setTabIndex:function(e){return L(e)},setRole:function(e){return H(e)},setColId:function(e){return j(e)},setTitle:function(e){return K(e)},setIncludeSelection:function(e){return Y(e)},setIncludeRowDrag:function(e){return q(e)},setIncludeDndSource:function(e){return z(e)},getCellEditor:function(){return I.current||null},getCellRenderer:function(){return O.current||T.current},getParentOfValue:function(){return P.current||b.current||M.current},setRenderDetails:function(e,t,n){f({value:t,compDetails:e,force:n})},setEditDetails:function(e,t,n){e?(m({compDetails:e,popup:t,popupPosition:n}),t||f(void 0)):m(void 0)}},M.current,e,l,p))}),oe.useMemo(function(){return!!(E&&E.compDetails&&E.compDetails.componentFromFramework&&le(E.compDetails.componentClass))},[E])),re=(oe.useEffect(function(){var e;M.current&&(F.addOrRemoveCssClass("ag-cell-value",!G),F.addOrRemoveCssClass("ag-cell-inline-editing",!!v&&!v.popup),F.addOrRemoveCssClass("ag-cell-popup-editing",!!v&&!!v.popup),F.addOrRemoveCssClass("ag-cell-not-inline-editing",!v||!!v.popup),null!=(e=R.getRowCtrl()))&&e.setInlineEditingCss(!!v)}),oe.useMemo(function(){return R.getInstanceId()},[]));return se.createElement("div",{ref:M,style:_,tabIndex:B,role:U,"col-id":W,title:V},G?se.createElement("div",{className:"ag-cell-wrapper",role:"presentation",ref:e},t()):t())}),H=oe.memo(function(e){var t=oe.useContext(ce).context,n=e.rowCtrl,r=e.containerType,e=oe.useState(),o=e[0],a=e[1],e=oe.useState(),s=e[0],i=e[1],e=oe.useState(),u=e[0],c=e[1],e=oe.useState(),l=e[0],p=e[1],e=oe.useState(),f=e[0],m=e[1],e=oe.useState(),d=e[0],h=e[1],e=oe.useState({list:[],instanceIdMap:new Map}),C=e[0],g=e[1],e=oe.useState(),y=e[0],R=e[1],e=oe.useState(!1),E=e[0],v=e[1],e=oe.useState(n.getInitialRowTop(r)),S=e[0],w=e[1],e=oe.useState(n.getInitialTransform(r)),M=e[0],O=e[1],T=oe.useRef(null),I=oe.useRef(),b=oe.useRef(!1),e=oe.useState(0),P=e[0],A=e[1],N=(oe.useEffect(function(){var e;b.current||!y||10<P||((e=null==(e=T.current)?void 0:e.firstChild)?(n.setupDetailRowAutoHeight(e),b.current=!0):A(function(e){return e+1}))},[y,P]),oe.useMemo(function(){return new ae.CssClassManager(function(){return T.current})},[])),e=(ue(function(){if(n.isAlive())return n.setComp({setTop:function(e){return w(e)},setTransform:function(e){return O(e)},addOrRemoveCssClass:function(e,t){return N.addOrRemoveCssClass(e,t)},setDomOrder:function(e){return v(e)},setRowIndex:function(e){return a(e)},setRowId:function(e){return i(e)},setRowBusinessKey:function(e){return p(e)},setTabIndex:function(e){return m(e)},setUserStyles:function(e){return h(e)},setRole:function(e){return c(e)},setCellCtrls:function(i){return g(function(e){return n=e,e=i,E?(t={list:e,instanceIdMap:new Map},e.forEach(function(e){return t.instanceIdMap.set(e.getInstanceId(),e)}),t):(r=[],o=[],a=new Map,s=new Map,e.forEach(function(e){return s.set(e.getInstanceId(),e)}),n.list.forEach(function(e){var t=e.getInstanceId();s.has(t)&&(r.push(e),a.set(t,e))}),e.forEach(function(e){var t=e.getInstanceId();n.instanceIdMap.has(t)||(o.push(e),a.set(t,e))}),{list:D(r,o),instanceIdMap:a});var n,t,r,o,a,s})},showFullWidth:function(e){return R(e)},getFullWidthCellRenderer:function(){return I.current}},T.current,r),function(){n.unsetComp(r)}}),oe.useLayoutEffect(function(){return _(y,t,T.current,I)},[y]),oe.useMemo(function(){var e={top:S,transform:M};return Object.assign(e,d),e},[S,M,d])),G=y&&y.componentFromFramework,k=null!=C,F=oe.useMemo(function(){return!!((null==y?void 0:y.componentFromFramework)&&le(y.componentClass))},[y]);return se.createElement("div",{ref:T,role:u,style:e,"row-index":o,"row-id":s,"row-business-key":l,tabIndex:f},k&&C.list.map(function(e){return se.createElement(U,{cellCtrl:e,editingRow:n.isEditing(),printLayout:n.isPrintLayout(),key:e.getInstanceId()})}),G&&(u=y.componentClass,se.createElement(se.Fragment,null,F&&se.createElement(u,ie({},y.params)),!F&&se.createElement(u,ie({},y.params,{ref:I})))))}),$=oe.memo(function(e){var r=oe.useContext(ce).context,t=oe.useState([]),n=t[0],o=t[1],a=e.name,s=oe.useMemo(function(){return ae.getRowContainerTypeForName(a)},[a]),i=oe.useRef(null),u=oe.useRef(null),c=oe.useRef(null),l=oe.useRef([]),p=oe.useRef(!1),f=oe.useMemo(function(){return ae.RowContainerCtrl.getRowContainerCssClasses(a)},[a]),t=oe.useMemo(function(){return Y(f.wrapper)},[]),e=oe.useMemo(function(){return Y(f.viewport)},[]),m=oe.useMemo(function(){return Y(f.container)},[]),d=a===ae.RowContainerName.CENTER,h=a===ae.RowContainerName.TOP_CENTER||a===ae.RowContainerName.BOTTOM_CENTER||a===ae.RowContainerName.STICKY_TOP_CENTER,C=!d&&!h;function g(){o(function(e){var t,n=l.current;return p.current?n:(t=e.filter(function(e){return 0<=n.indexOf(e)}),e=n.filter(function(e){return t.indexOf(e)<0}),D(t,e))})}q(" AG Row Container "+a+" ",d?i:h?u:c),ue(function(){var e=[],t={setViewportHeight:function(e){return u.current.style.height=e},setRowCtrls:function(e){l.current!==e&&(l.current=e,g())},setDomOrder:function(e){p.current!=e&&(p.current=e,g())},setContainerWidth:function(e){return c.current.style.width=e}},n=r.createBean(new ae.RowContainerCtrl(a));return e.push(n),n.setComp(t,c.current,u.current,i.current),function(){r.destroyBeans(e)}});function y(){return se.createElement("div",{className:m,ref:c,role:n.length?"rowgroup":"presentation"},n.map(function(e){return se.createElement(H,{rowCtrl:e,containerType:s,key:e.getInstanceId()})}))}return se.createElement(se.Fragment,null,d&&se.createElement("div",{className:t,ref:i,role:"presentation"},se.createElement("div",{className:e,ref:u,role:"presentation"},y())),h&&se.createElement("div",{className:e,ref:u,role:"presentation"},y()),C&&y())}),W=oe.memo(function(){function o(e){return se.createElement($,{name:e,key:e+"-container"})}function e(e){var t=e.section,n=e.children,r=e.className,e=e.style;return se.createElement("div",{ref:t,className:r,role:"presentation",style:e},n.map(o))}var t=oe.useContext(ce),a=t.context,s=t.agStackComponentsRegistry,i=t.resizeObserverService,t=oe.useState(""),n=t[0],u=t[1],t=oe.useState(0),r=t[0],c=t[1],t=oe.useState(0),l=t[0],p=t[1],t=oe.useState("0px"),f=t[0],m=t[1],t=oe.useState("0px"),d=t[0],h=t[1],t=oe.useState("100%"),C=t[0],g=t[1],t=oe.useState(""),y=t[0],R=t[1],t=oe.useState(""),E=t[0],v=t[1],t=oe.useState(null),S=t[0],w=t[1],t=oe.useState(""),M=t[0],O=t[1],t=oe.useState(null),T=t[0],I=t[1],t=oe.useState("ag-layout-normal"),b=t[0],P=t[1],_=oe.useMemo(function(){return new ae.CssClassManager(function(){return A.current})},[]),A=oe.useRef(null),N=oe.useRef(null),G=oe.useRef(null),k=oe.useRef(null),F=oe.useRef(null),D=oe.useRef(null),t=(q(" AG Grid Body ",A),q(" AG Pinned Top ",N),q(" AG Sticky Top ",G),q(" AG Middle ",F),q(" AG Pinned Bottom ",D),ue(function(){var e,t,n=[],r=[];if(a)return e=function(e){e=s.getComponentClass(e),e=a.createBean(new e);return n.push(e),e},A.current.appendChild(document.createComment(" AG Fake Horizontal Scroll ")),A.current.appendChild(e("AG-FAKE-HORIZONTAL-SCROLL").getGui()),A.current.appendChild(document.createComment(" AG Overlay Wrapper ")),A.current.appendChild(e("AG-OVERLAY-WRAPPER").getGui()),k.current.appendChild(document.createComment(" AG Fake Vertical Scroll ")),k.current.appendChild(e("AG-FAKE-VERTICAL-SCROLL").getGui()),e={setRowAnimationCssOnBodyViewport:u,setColumnCount:function(e){return ae._.setAriaColCount(A.current,e)},setRowCount:function(e){return ae._.setAriaRowCount(A.current,e)},setTopHeight:c,setBottomHeight:p,setStickyTopHeight:m,setStickyTopTop:h,setStickyTopWidth:g,setTopDisplay:R,setBottomDisplay:v,setColumnMovingCss:function(e,t){return _.addOrRemoveCssClass(e,t)},updateLayoutClasses:P,setAlwaysVerticalScrollClass:w,setPinnedTopBottomOverflowY:O,setCellSelectableCss:I,setBodyViewportWidth:function(e){return F.current.style.width=e},registerBodyViewportResizeListener:function(e){var t=i.observeResize(F.current,e);r.push(function(){return t()})}},t=a.createBean(new ae.GridBodyCtrl),n.push(t),t.setComp(e,A.current,F.current,N.current,D.current,G.current),function(){a.destroyBeans(n),r.forEach(function(e){return e()})}}),oe.useMemo(function(){return Y("ag-root","ag-unselectable",b)},[b])),x=oe.useMemo(function(){return Y("ag-body-viewport",n,b,S,T)},[n,b,S,T]),B=oe.useMemo(function(){return Y("ag-body",b)},[b]),L=oe.useMemo(function(){return Y("ag-body-clipper",b)},[b]),U=oe.useMemo(function(){return Y("ag-floating-top",T)},[T]),H=oe.useMemo(function(){return Y("ag-sticky-top",T)},[T]),W=oe.useMemo(function(){return Y("ag-floating-bottom",T)},[T]),j=oe.useMemo(function(){return{height:r,minHeight:r,display:y,overflowY:M}},[r,y,M]),V=oe.useMemo(function(){return{height:f,top:d,width:C}},[f,d,C]),K=oe.useMemo(function(){return{height:l,minHeight:l,display:E,overflowY:M}},[l,E,M]);return se.createElement("div",{ref:A,className:t,role:"treegrid"},se.createElement(z,null),e({section:N,className:U,style:j,children:[ae.RowContainerName.TOP_LEFT,ae.RowContainerName.TOP_CENTER,ae.RowContainerName.TOP_RIGHT,ae.RowContainerName.TOP_FULL_WIDTH]}),se.createElement("div",{className:B,ref:k,role:"presentation"},se.createElement("div",{className:L,role:"presentation"},e({section:F,className:x,children:[ae.RowContainerName.LEFT,ae.RowContainerName.CENTER,ae.RowContainerName.RIGHT,ae.RowContainerName.FULL_WIDTH]}))),e({section:G,className:H,style:V,children:[ae.RowContainerName.STICKY_TOP_LEFT,ae.RowContainerName.STICKY_TOP_CENTER,ae.RowContainerName.STICKY_TOP_RIGHT,ae.RowContainerName.STICKY_TOP_FULL_WIDTH]}),e({section:D,className:W,style:K,children:[ae.RowContainerName.BOTTOM_LEFT,ae.RowContainerName.BOTTOM_CENTER,ae.RowContainerName.BOTTOM_RIGHT,ae.RowContainerName.BOTTOM_FULL_WIDTH]}))}),a=oe.forwardRef(function(e,t){function n(e){var t="top"===e?ae.TabGuardClassNames.TAB_GUARD_TOP:ae.TabGuardClassNames.TAB_GUARD_BOTTOM;return se.createElement("div",{className:ae.TabGuardClassNames.TAB_GUARD+" "+t,role:"presentation",tabIndex:p,ref:"top"===e?u:c})}var r=e.children,o=e.eFocusableElement,a=e.onTabKeyDown,s=e.gridCtrl,i=oe.useContext(ce).context,u=oe.useRef(null),c=oe.useRef(null),l=oe.useRef(),e=oe.useState(),p=e[0],f=e[1];oe.useImperativeHandle(t,function(){return{forceFocusOutOfContainer:function(){l.current.forceFocusOutOfContainer()}}}),ue(function(){var e=u.current,t=c.current,n=l.current=i.createBean(new ae.TabGuardCtrl({comp:{setTabIndex:function(e){return f(null==e?void 0:parseInt(e,10))}},eTopGuard:e,eBottomGuard:t,eFocusableElement:o,onTabKeyDown:a,focusInnerElement:function(e){return s.focusInnerElement(e)}}));return function(){i.destroyBean(n)}});return se.createElement(se.Fragment,null,n("top"),r,n("bottom"))}),j=oe.memo(a),V=oe.memo(function(e){var p=e.context,e=oe.useState(""),t=e[0],n=e[1],e=oe.useState(""),r=e[0],o=e[1],e=oe.useState(""),a=e[0],s=e[1],e=oe.useState(null),i=e[0],u=e[1],e=oe.useState(null),c=e[0],l=e[1],e=oe.useState(!1),f=e[0],m=e[1],e=oe.useState(),d=e[0],h=e[1],C=oe.useRef(null),g=oe.useRef(null),y=oe.useRef(),R=oe.useRef(null),E=oe.useRef(function(){}),e=oe.useCallback(function(){},[]),v=oe.useMemo(function(){return p.getBean("beans")},[]),S=(q(" AG Grid ",g),ue(function(){var e=C.current=p.createBean(new ae.GridCtrl);return function(){p.destroyBean(e),C.current=null}}),ue(function(){var e=C.current,t=(E.current=e.focusInnerElement.bind(e),{destroyGridUi:function(){},setRtlClass:n,addOrRemoveKeyboardFocusClass:function(e){return o(e?ae.FocusService.AG_KEYBOARD_FOCUS:"")},forceFocusOutOfContainer:function(){y.current.forceFocusOutOfContainer()},updateLayoutClasses:s,getFocusableContainers:function(){var e=[],t=g.current.querySelector(".ag-root"),n=g.current.querySelector(".ag-side-bar:not(.ag-hidden)");return t&&e.push(t),n&&e.push(n),e},setCursor:u,setUserSelect:l});e.setComp(t,g.current,g.current),m(!0)}),oe.useEffect(function(){var e,t,n,r,o,a,s,i,u,c,l;if(d)return e=C.current,t=[],c=(o=v.agStackComponentsRegistry).getComponentClass("AG-GRID-HEADER-DROP-ZONES"),u=o.getComponentClass("AG-SIDE-BAR"),n=o.getComponentClass("AG-STATUS-BAR"),r=o.getComponentClass("AG-WATERMARK"),o=o.getComponentClass("AG-PAGINATION"),a=[],s=g.current,i=R.current,e.showDropZones()&&c&&(l=(c=p.createBean(new c)).getGui(),s.insertAdjacentElement("afterbegin",l),a.push(l),t.push(c)),e.showSideBar()&&u&&(l=(c=p.createBean(new u)).getGui(),(u=i.querySelector(".ag-tab-guard-bottom"))&&(u.insertAdjacentElement("beforebegin",l),a.push(l)),t.push(c)),e.showStatusBar()&&n&&(l=(i=p.createBean(new n)).getGui(),s.insertAdjacentElement("beforeend",l),a.push(l),t.push(i)),o&&(l=(u=p.createBean(new o)).getGui(),s.insertAdjacentElement("beforeend",l),a.push(l),t.push(u)),e.showWatermark()&&r&&(l=(c=p.createBean(new r)).getGui(),s.insertAdjacentElement("beforeend",l),a.push(l),t.push(c)),function(){p.destroyBeans(t),a.forEach(function(e){e.parentElement&&e.parentElement.removeChild(e)})}},[d]),oe.useMemo(function(){return Y("ag-root-wrapper",t,r,a)},[t,r,a])),w=oe.useMemo(function(){return Y("ag-root-wrapper-body","ag-focus-managed",a)},[a]),M=oe.useMemo(function(){return{userSelect:null!=c?c:"",WebkitUserSelect:null!=c?c:"",cursor:null!=i?i:""}},[c,i]),O=R.current,T=oe.useCallback(function(e){y.current=e,h(!0)},[]);return se.createElement("div",{ref:g,className:S,style:M,role:"presentation"},se.createElement("div",{className:w,ref:R,role:"presentation"},f&&O&&se.createElement(ce.Provider,{value:v},se.createElement(j,{ref:T,eFocusableElement:O,onTabKeyDown:e,gridCtrl:C.current},se.createElement(W,null)))))});n(m,K=oe.Component),m.prototype.render=function(){return this.state.context,this.state.context&&(this.renderedAfterMount=!0),se.createElement("div",{style:this.createStyleForDiv(),className:this.props.className,ref:this.eGui},this.state.context&&se.createElement(V,{context:this.state.context}),this.portalManager.getPortals())},m.prototype.createStyleForDiv=function(){return ie({height:"100%"},this.props.containerStyle||{})},m.prototype.componentDidMount=function(){var e,t=this;this.mounted||(this.mounted=!0,e=this.props.modules||[],e={providedBeanInstances:{frameworkComponentWrapper:new Z(this.portalManager)},modules:e,frameworkOverrides:new ee(!0)},this.gridOptions=this.props.gridOptions||{},this.gridOptions=ae.ComponentUtil.copyAttributesToGridOptions(this.gridOptions,this.props),this.checkForDeprecations(this.props),(new ae.GridCoreCreator).create(this.eGui.current,this.gridOptions,function(e){t.setState({context:e}),e.getBean(ae.CtrlsService.NAME).whenReady(function(){t.api=t.gridOptions.api,t.columnApi=t.gridOptions.columnApi,t.props.setGridApi(t.api,t.columnApi),t.destroyFuncs.push(function(){return t.api.destroy()})})},function(e){e.getBean(ae.CtrlsService.NAME).whenReady(function(){t.whenReadyFuncs.forEach(function(e){return e()}),t.whenReadyFuncs.length=0,t.ready=!0})},e))},m.prototype.checkForDeprecations=function(e){e.rowDataChangeDetectionStrategy&&ae._.doOnce(function(){return console.warn("AG Grid: Since v29 rowDataChangeDetectionStrategy has been deprecated. Row data property changes will be compared by reference via triple equals ===. See https://ag-grid.com/react-data-grid/react-hooks/")},"rowDataChangeDetectionStrategy_Deprecation")},m.prototype.componentWillUnmount=function(){this.renderedAfterMount&&(this.destroyFuncs.forEach(function(e){return e()}),this.destroyFuncs.length=0)},m.prototype.componentDidUpdate=function(e){this.processPropsChanges(e,this.props)},m.prototype.processPropsChanges=function(e,t){var n={};this.extractGridPropertyChanges(e,t,n),this.processChanges(n)},m.prototype.extractGridPropertyChanges=function(t,n,r){var o=!!n.debug;Object.keys(n).forEach(function(e){ae.ComponentUtil.ALL_PROPERTIES_SET.has(e)&&t[e]!==n[e]&&(o&&console.log("agGridReact: ["+e+"] property changed"),r[e]={previousValue:t[e],currentValue:n[e]})}),ae.ComponentUtil.EVENT_CALLBACKS.forEach(function(e){t[e]!==n[e]&&(o&&console.log("agGridReact: ["+e+"] event callback changed"),r[e]={previousValue:t[e],currentValue:n[e]})})},m.prototype.processChanges=function(e){var t=this;this.processWhenReady(function(){return ae.ComponentUtil.processOnChange(e,t.api)})},m.prototype.processWhenReady=function(e){this.ready?e():this.whenReadyFuncs.push(e)};var K,E=m;function m(e){var t=K.call(this,e)||this;return t.props=e,t.destroyFuncs=[],t.eGui=se.createRef(),t.whenReadyFuncs=[],t.ready=!1,t.renderedAfterMount=!1,t.mounted=!1,t.state={context:void 0},t.portalManager=new G(t,e.componentWrappingElement,e.maxComponentCreationTimeMs),t.destroyFuncs.push(function(){return t.portalManager.destroy()}),t}n(d,X=ae.BaseComponentWrapper),d.prototype.createWrapper=function(e,t){return new N(e,this.parent,t)};var X,Z=d;function d(e){var t=X.call(this)||this;return t.parent=e,t}var J,Q=oe.forwardRef(function(r,e){var t=oe.useContext(ce),o=t.ctrlsFactory,a=t.context,s=t.gridOptionsService,i=t.resizeObserverService,u=t.clientSideRowModel,c=t.serverSideRowModel,t=oe.useState(new b),n=t[0],l=t[1],t=oe.useState(new b),p=t[0],f=t[1],t=oe.useState(),m=t[0],d=t[1],t=oe.useState(),h=t[0],C=t[1],g=oe.useRef(),y=oe.useRef(null),t=oe.useMemo(function(){return n.toString()+" ag-details-row"},[n]),R=oe.useMemo(function(){return p.toString()+" ag-details-grid"},[p]),e=(e&&oe.useImperativeHandle(e,function(){return{refresh:function(){return g.current.refresh()}}}),ue(function(){r.template&&"string"==typeof r.template&&console.warn("AG Grid: detailCellRendererParams.template is not supported by React - this only works with frameworks that work against String templates. To change the template, please provide your own React Detail Cell Renderer.")}),ue(function(){var e,t={addOrRemoveCssClass:function(t,n){return l(function(e){return e.setClass(t,n)})},addOrRemoveDetailGridCssClass:function(t,n){return f(function(e){return e.setClass(t,n)})},setDetailGrid:function(e){return d(e)},setRowData:function(e){return C(e)},getGui:function(){return y.current}},n=o.getInstance("detailCellRenderer");if(n)return a.createBean(n),n.init(t,r),g.current=n,s.is("detailRowAutoHeight")&&(e=i.observeResize(y.current,t=function(){var e;null!=y.current&&null!=(e=y.current.clientHeight)&&0<e&&setTimeout(function(){r.node.setRowHeight(e),u?u.onRowHeightChanged():c&&c.onRowHeightChanged()},0)}),t()),function(){a.destroyBean(n),e&&e()}}),oe.useCallback(function(e,t){g.current.registerDetailWithMaster(e,t)},[]));return se.createElement("div",{className:t,ref:y},m&&se.createElement(E,ie({className:R},m,{rowData:h,setGridApi:e})))}),ee=(n(h,J=ae.VanillaFrameworkOverrides),h.prototype.frameworkComponent=function(e){if(this.reactUi)return this.frameworkComponents[e]},h.prototype.isFrameworkComponent=function(e){return!(!e||(e=e.prototype)&&"getGui"in e)},h);function h(e){var t=J.call(this)||this;return t.frameworkComponents={agGroupCellRenderer:P,agGroupRowRenderer:P,agDetailCellRenderer:Q},t.reactUi=e,t}n(g,te=oe.Component),g.prototype.render=function(){var t=this;return se.createElement("div",{style:this.createStyleForDiv(),className:this.props.className,ref:function(e){t.eGridDiv=e}},this.portalManager.getPortals())},g.prototype.createStyleForDiv=function(){return ie({height:"100%"},this.props.containerStyle||{})},g.prototype.componentDidMount=function(){var e=this.props.modules||[],e={providedBeanInstances:{agGridReact:this,frameworkComponentWrapper:new re(this,this.portalManager)},modules:e,frameworkOverrides:new ee(!1)},t=this.props.gridOptions||{};this.gridOptions=ae.ComponentUtil.copyAttributesToGridOptions(t,this.props),this.checkForDeprecations(this.props),new ae.Grid(this.eGridDiv,this.gridOptions,e),this.api=this.gridOptions.api,this.columnApi=this.gridOptions.columnApi,this.props.setGridApi(this.api,this.columnApi)},g.prototype.checkForDeprecations=function(e){e.rowDataChangeDetectionStrategy&&ae._.doOnce(function(){return console.warn("AG Grid: Since v29 rowDataChangeDetectionStrategy has been deprecated. Row data property changes will be compared by reference via triple equals ===. See https://ag-grid.com/react-data-grid/react-hooks/")},"rowDataChangeDetectionStrategy_Deprecation")},g.prototype.shouldComponentUpdate=function(e){return this.processPropsChanges(this.props,e),!1},g.prototype.componentDidUpdate=function(e){this.processPropsChanges(e,this.props)},g.prototype.processPropsChanges=function(e,t){var n={};this.extractGridPropertyChanges(e,t,n),this.processSynchronousChanges(n),this.processAsynchronousChanges(n)},g.prototype.extractGridPropertyChanges=function(t,n,r){var o=!!n.debug;Object.keys(n).forEach(function(e){ae.ComponentUtil.ALL_PROPERTIES_SET.has(e)&&t[e]!==n[e]&&(o&&console.log("agGridReact: ["+e+"] property changed"),r[e]={previousValue:t[e],currentValue:n[e]})}),ae.ComponentUtil.EVENT_CALLBACKS.forEach(function(e){t[e]!==n[e]&&(o&&console.log("agGridReact: ["+e+"] event callback changed"),r[e]={previousValue:t[e],currentValue:n[e]})})},g.prototype.componentWillUnmount=function(){this.api&&(this.api.destroy(),this.api=null),this.destroyed=!0,this.portalManager.destroy()},g.prototype.isDisableStaticMarkup=function(){return!0===this.props.disableStaticMarkup},g.prototype.isLegacyComponentRendering=function(){return!0===this.props.legacyComponentRendering},g.prototype.processSynchronousChanges=function(e){var t,n=ie({},e);return 0<Object.keys(n).length&&(t={},this.SYNCHRONOUS_CHANGE_PROPERTIES.forEach(function(e){n[e]&&(t[e]=n[e],delete n[e])}),0<Object.keys(t).length)&&this.api&&ae.ComponentUtil.processOnChange(t,this.api),n},g.prototype.processAsynchronousChanges=function(e){var t=this;0<Object.keys(e).length&&window.setTimeout(function(){t.api&&ae.ComponentUtil.processOnChange(e,t.api)})},g.defaultProps={legacyComponentRendering:!1,disableStaticMarkup:!1,maxComponentCreationTimeMs:g.MAX_COMPONENT_CREATION_TIME_IN_MS=1e3};var te,C=g;function g(e){var t=te.call(this,e)||this;return t.props=e,t.api=null,t.destroyed=!1,t.SYNCHRONOUS_CHANGE_PROPERTIES=["context"],t.portalManager=new G(t,e.componentWrappingElement,e.maxComponentCreationTimeMs),t}function y(e,t){e.forEach(function(e){C[e]=t})}C.propTypes={gridOptions:t.object},y(ae.ComponentUtil.EVENT_CALLBACKS,t.func),y(ae.ComponentUtil.BOOLEAN_PROPERTIES,t.bool),y(ae.ComponentUtil.STRING_PROPERTIES,t.string),y(ae.ComponentUtil.OBJECT_PROPERTIES,t.object),y(ae.ComponentUtil.ARRAY_PROPERTIES,t.array),y(ae.ComponentUtil.NUMBER_PROPERTIES,t.number),y(ae.ComponentUtil.FUNCTION_PROPERTIES,t.func);n(R,ne=ae.BaseComponentWrapper),R.prototype.createWrapper=function(e,t){return this.agGridReact.isLegacyComponentRendering()?new I(e,this.agGridReact,this.portalManager,t):new N(e,this.portalManager,t)};var ne,re=R;function R(e,t){var n=ne.call(this)||this;return n.agGridReact=e,n.portalManager=t,n}n(S,v=oe.Component),S.prototype.render=function(){return this.props.suppressReactUi?se.createElement(C,ie({},this.props,{setGridApi:this.setGridApi})):se.createElement(E,ie({},this.props,{setGridApi:this.setGridApi}))};var v,a=S;function S(){var n=null!==v&&v.apply(this,arguments)||this;return n.setGridApi=function(e,t){n.api=e,n.columnApi=t},n}e.AgGridReact=a,e.AgGridReactLegacy=C,e.AgGridReactFire=E,Object.defineProperty(e,"__esModule",{value:!0})});

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
import { Component } from 'react';

@@ -3,0 +3,0 @@ import { AgGridReactProps, AgReactUiProps } from './shared/interfaces';

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
"use strict";

@@ -3,0 +3,0 @@ var __extends = (this && this.__extends) || (function () {

@@ -1,3 +0,3 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
import '@ag-grid-community/styles/ag-grid.css';
import '@ag-grid-community/styles/ag-theme-alpine.css';

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
"use strict";

@@ -40,17 +40,13 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {

var App = function () {
var _a = react_1.useState(null), gridApi = _a[0], setGridApi = _a[1];
var _b = react_1.useState(null), gridColumnApi = _b[0], setGridColumnApi = _b[1];
var _c = react_1.useState([
var _a = react_1.useState([
{ make: 'Toyota', model: 'Celica', price: 35000 },
{ make: 'Ford', model: 'Mondeo', price: 32000 },
{ make: 'Porsche', model: 'Boxster', price: 72000 }
]), rowData = _c[0], setRowData = _c[1];
var _d = react_1.useState([
]), rowData = _a[0], setRowData = _a[1];
var _b = react_1.useState([
{ field: 'make' },
{ field: 'model' },
{ field: 'price' },
]), colDefs = _d[0], setColDefs = _d[1];
]), colDefs = _b[0], setColDefs = _b[1];
var onGridReady = function (params) {
setGridApi(params.api);
setGridColumnApi(params.columnApi);
setTimeout(function () { return setRowData(__spreadArrays(rowData, rowData)); }, 2000);

@@ -57,0 +53,0 @@ };

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
import { ColumnApi, GridApi, GridOptions } from 'ag-grid-community';

@@ -3,0 +3,0 @@ import React, { Component } from 'react';

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
"use strict";

@@ -3,0 +3,0 @@ var __extends = (this && this.__extends) || (function () {

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
import { AgPromise, ComponentType } from 'ag-grid-community';

@@ -3,0 +3,0 @@ import { ReactComponent } from '../shared/reactComponent';

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
"use strict";

@@ -3,0 +3,0 @@ var __extends = (this && this.__extends) || (function () {

@@ -1,4 +0,4 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
export { AgGridReact } from './agGridReact';
export { AgGridReactLegacy } from './legacy/agGridReactLegacy';
export { AgGridReactUi as AgGridReactFire } from './reactUi/agGridReactUi';

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
"use strict";

@@ -3,0 +3,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
import { ColumnApi, Context, GridApi } from 'ag-grid-community';

@@ -3,0 +3,0 @@ import { Component } from 'react';

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
"use strict";

@@ -3,0 +3,0 @@ var __extends = (this && this.__extends) || (function () {

@@ -1,4 +0,4 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
import React from 'react';
import { Beans } from 'ag-grid-community';
export declare const BeansContext: React.Context<Beans>;

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
"use strict";

@@ -3,0 +3,0 @@ var __importDefault = (this && this.__importDefault) || function (mod) {

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
import React from "react";

@@ -3,0 +3,0 @@ import { IDetailCellRendererParams } from "ag-grid-community";

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
"use strict";

@@ -54,3 +54,3 @@ var __assign = (this && this.__assign) || function () {

}
useEffectOnce_1.useEffectOnce(function () {
useEffectOnce_1.useLayoutEffectOnce(function () {
if (props.template && typeof props.template === 'string') {

@@ -60,3 +60,3 @@ console.warn('AG Grid: detailCellRendererParams.template is not supported by React - this only works with frameworks that work against String templates. To change the template, please provide your own React Detail Cell Renderer.');

});
useEffectOnce_1.useEffectOnce(function () {
useEffectOnce_1.useLayoutEffectOnce(function () {
var compProxy = {

@@ -63,0 +63,0 @@ addOrRemoveCssClass: function (name, on) { return setCssClasses(function (prev) { return prev.setClass(name, on); }); },

@@ -1,4 +0,4 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
import React from 'react';
declare const GroupCellRenderer: React.ForwardRefExoticComponent<import("ag-grid-community").IGroupCellRendererParams<any, any> & import("ag-grid-community").ICellRendererParams<any, any, any> & import("ag-grid-community").IGroupCellRendererFullRowParams & React.RefAttributes<unknown>>;
export default GroupCellRenderer;

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
"use strict";

@@ -3,0 +3,0 @@ var __assign = (this && this.__assign) || function () {

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
import { CellCtrl, UserCompDetails } from 'ag-grid-community';

@@ -3,0 +3,0 @@ import React from 'react';

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
"use strict";

@@ -153,3 +153,3 @@ var __assign = (this && this.__assign) || function () {

var lastRenderDetails = react_1.useRef();
react_1.useEffect(function () {
react_1.useLayoutEffect(function () {
var oldDetails = lastRenderDetails.current;

@@ -185,3 +185,3 @@ var newDetails = renderDetails;

}, [renderDetails]);
react_1.useEffect(function () {
react_1.useLayoutEffect(function () {
var doingJsEditor = editDetails && !editDetails.compDetails.componentFromFramework;

@@ -215,3 +215,3 @@ if (!doingJsEditor) {

// tool widgets effect
react_1.useEffect(function () {
react_1.useLayoutEffect(function () {
if (!cellCtrl || !context) {

@@ -218,0 +218,0 @@ return;

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
import { CellCtrl } from 'ag-grid-community';

@@ -3,0 +3,0 @@ import React from 'react';

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
"use strict";

@@ -31,3 +31,3 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {

var _b = react_1.useContext(beansContext_1.BeansContext), context = _b.context, popupService = _b.popupService, localeService = _b.localeService, gridOptionsService = _b.gridOptionsService;
useEffectOnce_1.useEffectOnce(function () {
useEffectOnce_1.useLayoutEffectOnce(function () {
var editDetails = props.editDetails, cellCtrl = props.cellCtrl, eParentCell = props.eParentCell;

@@ -34,0 +34,0 @@ var compDetails = editDetails.compDetails;

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
import { ICellRendererComp } from 'ag-grid-community';

@@ -3,0 +3,0 @@ import { MutableRefObject } from 'react';

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
"use strict";

@@ -3,0 +3,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

@@ -1,4 +0,4 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
import React from 'react';
declare const _default: React.MemoExoticComponent<() => JSX.Element>;
export default _default;

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
"use strict";

@@ -37,15 +37,12 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {

var _b = react_1.useState(''), rowAnimationClass = _b[0], setRowAnimationClass = _b[1];
var _c = react_1.useState(0), ariaColCount = _c[0], setAriaColCount = _c[1];
var _d = react_1.useState(0), ariaRowCount = _d[0], setAriaRowCount = _d[1];
var _e = react_1.useState(0), topHeight = _e[0], setTopHeight = _e[1];
var _f = react_1.useState(0), bottomHeight = _f[0], setBottomHeight = _f[1];
var _g = react_1.useState('0px'), stickyTopHeight = _g[0], setStickyTopHeight = _g[1];
var _h = react_1.useState('0px'), stickyTopTop = _h[0], setStickyTopTop = _h[1];
var _j = react_1.useState('100%'), stickyTopWidth = _j[0], setStickyTopWidth = _j[1];
var _k = react_1.useState(''), topDisplay = _k[0], setTopDisplay = _k[1];
var _l = react_1.useState(''), bottomDisplay = _l[0], setBottomDisplay = _l[1];
var _m = react_1.useState(''), bodyViewportWidth = _m[0], setBodyViewportWidth = _m[1];
var _o = react_1.useState(null), forceVerticalScrollClass = _o[0], setForceVerticalScrollClass = _o[1];
var _p = react_1.useState(''), topAndBottomOverflowY = _p[0], setTopAndBottomOverflowY = _p[1];
var _q = react_1.useState(null), cellSelectableCss = _q[0], setCellSelectableCss = _q[1];
var _c = react_1.useState(0), topHeight = _c[0], setTopHeight = _c[1];
var _d = react_1.useState(0), bottomHeight = _d[0], setBottomHeight = _d[1];
var _e = react_1.useState('0px'), stickyTopHeight = _e[0], setStickyTopHeight = _e[1];
var _f = react_1.useState('0px'), stickyTopTop = _f[0], setStickyTopTop = _f[1];
var _g = react_1.useState('100%'), stickyTopWidth = _g[0], setStickyTopWidth = _g[1];
var _h = react_1.useState(''), topDisplay = _h[0], setTopDisplay = _h[1];
var _j = react_1.useState(''), bottomDisplay = _j[0], setBottomDisplay = _j[1];
var _k = react_1.useState(null), forceVerticalScrollClass = _k[0], setForceVerticalScrollClass = _k[1];
var _l = react_1.useState(''), topAndBottomOverflowY = _l[0], setTopAndBottomOverflowY = _l[1];
var _m = react_1.useState(null), cellSelectableCss = _m[0], setCellSelectableCss = _m[1];
// we initialise layoutClass to 'ag-layout-normal', because if we don't, the comp will initially

@@ -56,3 +53,3 @@ // render with no width (as ag-layout-normal sets width to 0, which is needed for flex) which

// problem as the UI will finish initialising before we set data.
var _r = react_1.useState('ag-layout-normal'), layoutClass = _r[0], setLayoutClass = _r[1];
var _o = react_1.useState('ag-layout-normal'), layoutClass = _o[0], setLayoutClass = _o[1];
var cssClassManager = react_1.useMemo(function () { return new ag_grid_community_1.CssClassManager(function () { return eRoot.current; }); }, []);

@@ -70,3 +67,3 @@ var eRoot = react_1.useRef(null);

reactComment_1.default(' AG Pinned Bottom ', eBottom);
useEffectOnce_1.useEffectOnce(function () {
useEffectOnce_1.useLayoutEffectOnce(function () {
var beansToDestroy = [];

@@ -91,4 +88,4 @@ var destroyFuncs = [];

setRowAnimationCssOnBodyViewport: setRowAnimationClass,
setColumnCount: setAriaColCount,
setRowCount: setAriaRowCount,
setColumnCount: function (count) { return ag_grid_community_1._.setAriaColCount(eRoot.current, count); },
setRowCount: function (count) { return ag_grid_community_1._.setAriaRowCount(eRoot.current, count); },
setTopHeight: setTopHeight,

@@ -106,3 +103,3 @@ setBottomHeight: setBottomHeight,

setCellSelectableCss: setCellSelectableCss,
setBodyViewportWidth: setBodyViewportWidth,
setBodyViewportWidth: function (width) { return eBodyViewport.current.style.width = width; },
registerBodyViewportResizeListener: function (listener) {

@@ -159,5 +156,2 @@ var unsubscribeFromResize = resizeObserverService.observeResize(eBodyViewport.current, listener);

}); }, [bottomHeight, bottomDisplay, topAndBottomOverflowY]);
var bodyViewportStyle = react_1.useMemo(function () { return ({
width: bodyViewportWidth
}); }, [bodyViewportWidth]);
var createRowContainer = function (container) { return react_1.default.createElement(rowContainerComp_1.default, { name: container, key: container + "-container" }); };

@@ -168,3 +162,3 @@ var createSection = function (_a) {

};
return (react_1.default.createElement("div", { ref: eRoot, className: rootClasses, role: "treegrid", "aria-colcount": ariaColCount, "aria-rowcount": ariaRowCount },
return (react_1.default.createElement("div", { ref: eRoot, className: rootClasses, role: "treegrid" },
react_1.default.createElement(gridHeaderComp_1.default, null),

@@ -179,3 +173,3 @@ createSection({ section: eTop, className: topClasses, style: topStyle, children: [

react_1.default.createElement("div", { className: bodyClipperClasses, role: "presentation" }, createSection({ section: eBodyViewport, className: bodyViewportClasses,
style: bodyViewportStyle, children: [
children: [
ag_grid_community_1.RowContainerName.LEFT,

@@ -182,0 +176,0 @@ ag_grid_community_1.RowContainerName.CENTER,

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
import { Context } from 'ag-grid-community';

@@ -3,0 +3,0 @@ import React from 'react';

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
"use strict";

@@ -52,3 +52,3 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {

// create shared controller.
useEffectOnce_1.useEffectOnce(function () {
useEffectOnce_1.useLayoutEffectOnce(function () {
var currentController = gridCtrlRef.current = context.createBean(new ag_grid_community_1.GridCtrl());

@@ -61,3 +61,3 @@ return function () {

// initialise the UI
useEffectOnce_1.useEffectOnce(function () {
useEffectOnce_1.useLayoutEffectOnce(function () {
var gridCtrl = gridCtrlRef.current;

@@ -64,0 +64,0 @@ focusInnerElementRef.current = gridCtrl.focusInnerElement.bind(gridCtrl);

@@ -1,4 +0,4 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
import React from 'react';
declare const _default: React.MemoExoticComponent<() => JSX.Element>;
export default _default;

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
"use strict";

@@ -3,0 +3,0 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
import React from 'react';

@@ -3,0 +3,0 @@ import { HeaderCellCtrl } from 'ag-grid-community';

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
"use strict";

@@ -42,8 +42,7 @@ var __assign = (this && this.__assign) || function () {

var context = react_1.useContext(beansContext_1.BeansContext).context;
var _a = react_1.useState(), width = _a[0], setWidth = _a[1];
var _b = react_1.useState(), title = _b[0], setTitle = _b[1];
var _c = react_1.useState(), colId = _c[0], setColId = _c[1];
var _d = react_1.useState(), ariaSort = _d[0], setAriaSort = _d[1];
var _e = react_1.useState(), ariaDescription = _e[0], setAriaDescription = _e[1];
var _f = react_1.useState(), userCompDetails = _f[0], setUserCompDetails = _f[1];
var _a = react_1.useState(), title = _a[0], setTitle = _a[1];
var _b = react_1.useState(), colId = _b[0], setColId = _b[1];
var _c = react_1.useState(), ariaSort = _c[0], setAriaSort = _c[1];
var _d = react_1.useState(), ariaDescription = _d[0], setAriaDescription = _d[1];
var _e = react_1.useState(), userCompDetails = _e[0], setUserCompDetails = _e[1];
var eGui = react_1.useRef(null);

@@ -57,3 +56,3 @@ var eResize = react_1.useRef(null);

var compProxy = {
setWidth: function (width) { return setWidth(width); },
setWidth: function (width) { return eGui.current.style.width = width; },
addOrRemoveCssClass: function (name, on) { return cssClassManager.addOrRemoveCssClass(name, on); },

@@ -77,3 +76,2 @@ setColId: function (id) { return setColId(id); },

}, [userCompDetails]);
var style = react_1.useMemo(function () { return ({ width: width }); }, [width]);
var userCompStateless = react_1.useMemo(function () {

@@ -85,3 +83,3 @@ var res = (userCompDetails === null || userCompDetails === void 0 ? void 0 : userCompDetails.componentFromFramework) && utils_1.isComponentStateless(userCompDetails.componentClass);

var UserCompClass = userCompDetails && userCompDetails.componentClass;
return (react_1.default.createElement("div", { ref: eGui, className: "ag-header-cell", style: style, title: title, "col-id": colId, "aria-sort": ariaSort, role: "columnheader", tabIndex: -1, "aria-description": ariaDescription },
return (react_1.default.createElement("div", { ref: eGui, className: "ag-header-cell", title: title, "col-id": colId, "aria-sort": ariaSort, role: "columnheader", tabIndex: -1, "aria-description": ariaDescription },
react_1.default.createElement("div", { ref: eResize, className: "ag-header-cell-resize", role: "presentation" }),

@@ -88,0 +86,0 @@ react_1.default.createElement("div", { ref: eHeaderCompWrapper, className: "ag-header-cell-comp-wrapper", role: "presentation" },

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
import React from 'react';

@@ -3,0 +3,0 @@ import { HeaderFilterCellCtrl } from 'ag-grid-community';

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
"use strict";

@@ -46,4 +46,3 @@ var __assign = (this && this.__assign) || function () {

var _d = react_1.useState("false"), buttonWrapperAriaHidden = _d[0], setButtonWrapperAriaHidden = _d[1];
var _e = react_1.useState(), width = _e[0], setWidth = _e[1];
var _f = react_1.useState(), userCompDetails = _f[0], setUserCompDetails = _f[1];
var _e = react_1.useState(), userCompDetails = _e[0], setUserCompDetails = _e[1];
var eGui = react_1.useRef(null);

@@ -85,3 +84,3 @@ var eFloatingFilterBody = react_1.useRef(null);

},
setWidth: function (width) { return setWidth(width); },
setWidth: function (width) { return eGui.current.style.width = width; },
setCompDetails: function (compDetails) { return setUserCompDetails(compDetails); },

@@ -95,5 +94,2 @@ getFloatingFilterComp: function () { return userCompPromise.current ? userCompPromise.current : null; },

react_1.useLayoutEffect(function () { return jsComp_1.showJsComp(userCompDetails, context, eFloatingFilterBody.current, userCompRef); }, [userCompDetails]);
var style = react_1.useMemo(function () { return ({
width: width
}); }, [width]);
var className = react_1.useMemo(function () { return cssClasses.toString(); }, [cssClasses]);

@@ -110,3 +106,3 @@ var bodyClassName = react_1.useMemo(function () { return cssBodyClasses.toString(); }, [cssBodyClasses]);

var UserCompClass = userCompDetails && userCompDetails.componentClass;
return (react_1.default.createElement("div", { ref: eGui, className: className, style: style, role: "gridcell", tabIndex: -1 },
return (react_1.default.createElement("div", { ref: eGui, className: className, role: "gridcell", tabIndex: -1 },
react_1.default.createElement("div", { ref: eFloatingFilterBody, className: bodyClassName, role: "presentation" },

@@ -113,0 +109,0 @@ reactUserComp && userCompStateless && react_1.default.createElement(UserCompClass, __assign({}, userCompDetails.params)),

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
import { HeaderGroupCellCtrl } from 'ag-grid-community';

@@ -3,0 +3,0 @@ import React from 'react';

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
"use strict";

@@ -44,7 +44,6 @@ var __assign = (this && this.__assign) || function () {

var _c = react_1.useState("false"), resizableAriaHidden = _c[0], setResizableAriaHidden = _c[1];
var _d = react_1.useState(), width = _d[0], setWidth = _d[1];
var _e = react_1.useState(), title = _e[0], setTitle = _e[1];
var _f = react_1.useState(), colId = _f[0], setColId = _f[1];
var _g = react_1.useState(), ariaExpanded = _g[0], setAriaExpanded = _g[1];
var _h = react_1.useState(), userCompDetails = _h[0], setUserCompDetails = _h[1];
var _d = react_1.useState(), title = _d[0], setTitle = _d[1];
var _e = react_1.useState(), colId = _e[0], setColId = _e[1];
var _f = react_1.useState(), ariaExpanded = _f[0], setAriaExpanded = _f[1];
var _g = react_1.useState(), userCompDetails = _g[0], setUserCompDetails = _g[1];
var eGui = react_1.useRef(null);

@@ -55,3 +54,3 @@ var eResize = react_1.useRef(null);

var compProxy = {
setWidth: function (width) { return setWidth(width); },
setWidth: function (width) { return eGui.current.style.width = width; },
addOrRemoveCssClass: function (name, on) { return setCssClasses(function (prev) { return prev.setClass(name, on); }); },

@@ -81,5 +80,2 @@ setColId: function (id) { return setColId(id); },

}, [userCompDetails]);
var style = react_1.useMemo(function () { return ({
width: width
}); }, [width]);
var className = react_1.useMemo(function () { return 'ag-header-group-cell ' + cssClasses.toString(); }, [cssClasses]);

@@ -89,3 +85,3 @@ var resizableClassName = react_1.useMemo(function () { return 'ag-header-cell-resize ' + cssResizableClasses.toString(); }, [cssResizableClasses]);

var UserCompClass = userCompDetails && userCompDetails.componentClass;
return (react_1.default.createElement("div", { ref: eGui, className: className, style: style, title: title, "col-id": colId, role: "columnheader", tabIndex: -1, "aria-expanded": ariaExpanded },
return (react_1.default.createElement("div", { ref: eGui, className: className, title: title, "col-id": colId, role: "columnheader", tabIndex: -1, "aria-expanded": ariaExpanded },
reactUserComp && react_1.default.createElement(UserCompClass, __assign({}, userCompDetails.params)),

@@ -92,0 +88,0 @@ react_1.default.createElement("div", { ref: eResize, "aria-hidden": resizableAriaHidden, className: resizableClassName })));

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
import { HeaderRowCtrl } from 'ag-grid-community';

@@ -3,0 +3,0 @@ import React from 'react';

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
"use strict";

@@ -45,5 +45,4 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {

var _c = react_1.useState(), top = _c[0], setTop = _c[1];
var _d = react_1.useState(), width = _d[0], setWidth = _d[1];
var _e = react_1.useState(), ariaRowIndex = _e[0], setAriaRowIndex = _e[1];
var _f = react_1.useState([]), cellCtrls = _f[0], setCellCtrls = _f[1];
var _d = react_1.useState(), ariaRowIndex = _d[0], setAriaRowIndex = _d[1];
var _e = react_1.useState([]), cellCtrls = _e[0], setCellCtrls = _e[1];
var eGui = react_1.useRef(null);

@@ -75,3 +74,3 @@ var ctrl = props.ctrl;

setHeaderCtrls: function (ctrls) { return setCellCtrls(function (prev) { return setCellCtrlsMaintainOrder(prev, ctrls); }); },
setWidth: function (width) { return setWidth(width); },
setWidth: function (width) { return eGui.current.style.width = width; },
setAriaRowIndex: function (rowIndex) { return setAriaRowIndex(rowIndex); }

@@ -85,4 +84,3 @@ };

top: top,
width: width
}); }, [transform, height, top, width]);
}); }, [transform, height, top]);
var className = react_1.useMemo(function () {

@@ -89,0 +87,0 @@ var res = ["ag-header-row"];

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
import React from 'react';

@@ -3,0 +3,0 @@ import { ColumnPinnedType } from 'ag-grid-community';

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
"use strict";

@@ -55,5 +55,5 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {

},
setContainerTransform: function (transform) {
if (eCenterContainer.current) {
eCenterContainer.current.style.transform = transform;
setViewportScrollLeft: function (left) {
if (eGui.current) {
eGui.current.scrollLeft = left;
}

@@ -60,0 +60,0 @@ },

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
import { Context, UserCompDetails } from 'ag-grid-community';

@@ -3,0 +3,0 @@ import { MutableRefObject } from 'react';

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
"use strict";

@@ -3,0 +3,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

@@ -1,4 +0,4 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
import { RefObject } from 'react';
declare const useReactCommentEffect: (comment: string, eForCommentRef: RefObject<HTMLElement>) => void;
export default useReactCommentEffect;

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
"use strict";

@@ -3,0 +3,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
import { VanillaFrameworkOverrides } from "ag-grid-community";

@@ -3,0 +3,0 @@ export declare class ReactFrameworkOverrides extends VanillaFrameworkOverrides {

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
"use strict";

@@ -3,0 +3,0 @@ var __extends = (this && this.__extends) || (function () {

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
import React from 'react';

@@ -3,0 +3,0 @@ import { RowContainerType, RowCtrl } from 'ag-grid-community';

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
"use strict";

@@ -3,0 +3,0 @@ var __assign = (this && this.__assign) || function () {

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
import { RowContainerName } from 'ag-grid-community';

@@ -3,0 +3,0 @@ import React from 'react';

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
"use strict";

@@ -42,5 +42,3 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {

var context = react_1.useContext(beansContext_1.BeansContext).context;
var _a = react_1.useState(''), viewportHeight = _a[0], setViewportHeight = _a[1];
var _b = react_1.useState([]), rowCtrlsOrdered = _b[0], setRowCtrlsOrdered = _b[1];
var _c = react_1.useState(''), containerWidth = _c[0], setContainerWidth = _c[1];
var _a = react_1.useState([]), rowCtrlsOrdered = _a[0], setRowCtrlsOrdered = _a[1];
var name = params.name;

@@ -83,3 +81,3 @@ var containerType = react_1.useMemo(function () { return ag_grid_community_1.getRowContainerTypeForName(name); }, [name]);

var compProxy = {
setViewportHeight: setViewportHeight,
setViewportHeight: function (height) { return eViewport.current.style.height = height; },
setRowCtrls: function (rowCtrls) {

@@ -97,3 +95,3 @@ if (rowCtrlsRef.current !== rowCtrls) {

},
setContainerWidth: function (width) { return setContainerWidth(width); }
setContainerWidth: function (width) { return eContainer.current.style.width = width; }
};

@@ -107,9 +105,3 @@ var ctrl = context.createBean(new ag_grid_community_1.RowContainerCtrl(name));

});
var viewportStyle = react_1.useMemo(function () { return ({
height: viewportHeight
}); }, [viewportHeight]);
var containerStyle = react_1.useMemo(function () { return ({
width: containerWidth
}); }, [containerWidth]);
var buildContainer = function () { return (react_1.default.createElement("div", { className: containerClasses, ref: eContainer, role: rowCtrlsOrdered.length ? "rowgroup" : "presentation", style: containerStyle }, rowCtrlsOrdered.map(function (rowCtrl) {
var buildContainer = function () { return (react_1.default.createElement("div", { className: containerClasses, ref: eContainer, role: rowCtrlsOrdered.length ? "rowgroup" : "presentation" }, rowCtrlsOrdered.map(function (rowCtrl) {
return react_1.default.createElement(rowComp_1.default, { rowCtrl: rowCtrl, containerType: containerType, key: rowCtrl.getInstanceId() });

@@ -120,7 +112,7 @@ }))); };

react_1.default.createElement("div", { className: wrapperClasses, ref: eWrapper, role: "presentation" },
react_1.default.createElement("div", { className: viewportClasses, ref: eViewport, role: "presentation", style: viewportStyle }, buildContainer())),
react_1.default.createElement("div", { className: viewportClasses, ref: eViewport, role: "presentation" }, buildContainer())),
template2 &&
react_1.default.createElement("div", { className: viewportClasses, ref: eViewport, role: "presentation", style: viewportStyle }, buildContainer()),
react_1.default.createElement("div", { className: viewportClasses, ref: eViewport, role: "presentation" }, buildContainer()),
template3 && buildContainer()));
};
exports.default = react_1.memo(RowContainerComp);

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
import React from 'react';

@@ -3,0 +3,0 @@ import { GridCtrl } from 'ag-grid-community';

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
"use strict";

@@ -39,3 +39,3 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {

}); });
useEffectOnce_1.useEffectOnce(function () {
useEffectOnce_1.useLayoutEffectOnce(function () {
var eTopGuard = topTabGuardRef.current;

@@ -42,0 +42,0 @@ var eBottomGuard = bottomTabGuardRef.current;

@@ -1,3 +0,3 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
export declare const useEffectOnce: (effect: () => void | (() => void)) => void;
export declare const useLayoutEffectOnce: (effect: () => void | (() => void)) => void;

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
"use strict";

@@ -3,0 +3,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
export declare const classesList: (...list: (string | null | undefined)[]) => string;

@@ -3,0 +3,0 @@ export declare class CssClasses {

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
"use strict";

@@ -3,0 +3,0 @@ var __assign = (this && this.__assign) || function () {

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
import { ColumnApi, GridApi, GridOptions, ICellEditor, ICellRenderer, IDate, IFilter, IFloatingFilter, IHeader, IHeaderGroup, IStatusPanel, IToolPanel, Module } from 'ag-grid-community';

@@ -3,0 +3,0 @@ /** @deprecated v29 ChangeDetectionStrategyType has been deprecated. IdentityCheck will always be used now for a more consistent approach. */

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
"use strict";

@@ -3,0 +3,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
export default function generateNewKey(): string;

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
"use strict";

@@ -3,0 +3,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
import { ComponentType, AgPromise } from 'ag-grid-community';

@@ -3,0 +3,0 @@ import { ReactComponent } from './reactComponent';

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
"use strict";

@@ -3,0 +3,0 @@ var __extends = (this && this.__extends) || (function () {

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
import { Component, ReactPortal } from "react";

@@ -3,0 +3,0 @@ import { ReactComponent } from "./reactComponent";

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
"use strict";

@@ -3,0 +3,0 @@ var __spreadArrays = (this && this.__spreadArrays) || function () {

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
import { ReactPortal } from 'react';

@@ -3,0 +3,0 @@ import { ComponentType, IComponent, WrappableInterface } from 'ag-grid-community';

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
"use strict";

@@ -3,0 +3,0 @@ var __extends = (this && this.__extends) || (function () {

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
import { VanillaFrameworkOverrides } from "ag-grid-community";

@@ -3,0 +3,0 @@ export declare class ReactFrameworkOverrides extends VanillaFrameworkOverrides {

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
"use strict";

@@ -3,0 +3,0 @@ var __extends = (this && this.__extends) || (function () {

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
import { RefObject } from 'react';

@@ -3,0 +3,0 @@ import { ColumnApi, GridApi } from 'ag-grid-community';

@@ -1,2 +0,2 @@

// ag-grid-react v29.2.0
// ag-grid-react v29.3.0
"use strict";

@@ -3,0 +3,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

{
"name": "ag-grid-react",
"version": "29.2.0",
"version": "29.3.0",
"description": "AG Grid React Component",

@@ -41,6 +41,6 @@ "main": "main.js",

"prop-types": "^15.6.2",
"ag-grid-community": "~29.2.0",
"@ag-grid-community/react": "~29.2.0",
"@ag-grid-community/client-side-row-model": "~29.2.0",
"@ag-grid-community/core": "~29.2.0",
"ag-grid-community": "~29.3.0",
"@ag-grid-community/react": "~29.3.0",
"@ag-grid-community/client-side-row-model": "~29.3.0",
"@ag-grid-community/core": "~29.3.0",
"gulp": "^4.0.0",

@@ -83,3 +83,3 @@ "gulp-clean": "^0.4.0",

"peerDependencies": {
"ag-grid-community": "~29.2.0",
"ag-grid-community": "~29.3.0",
"react": "^16.3.0 || ^17.0.0 || ^18.0.0",

@@ -86,0 +86,0 @@ "react-dom": "^16.3.0 || ^17.0.0 || ^18.0.0"

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc