Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ag-grid-react

Package Overview
Dependencies
Maintainers
4
Versions
139
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ag-grid-react - npm Package Compare versions

Comparing version 29.0.0 to 29.1.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,se,ie){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t;var ue="default"in se?se.default:se,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 ce=function(){return(ce=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 ie.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()}),se.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=se.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,N=o),u.prototype.init=function(e){var t=this;return this.eParentElement=this.createParentElement(e),this.params=e,this.createOrUpdatePortal(e),new ie.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=se.createElement(this.reactComponent,ce(ce({},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(se.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 N,k=u;function u(e,t,n){e=N.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 A=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 le(e){var t=se.useRef(e),n=se.useRef(),r=se.useRef(!1),o=se.useRef(!1),a=se.useState(0)[1];r.current&&(o.current=!0),se.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 ee(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(function(e){return null!=e&&""!==e}).join(" ")}var pe=ue.createContext({}),fe=function(e){var t=se.useRef(e),n=se.useRef(),r=se.useRef(!1),o=se.useRef(!1),a=se.useState(0)[1];r.current&&(o.current=!0),se.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=ce({},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 me(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 te(r,o){fe(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=se.forwardRef(function(n,e){var r=se.useContext(pe).context,o=se.useRef(null),t=se.useRef(null),a=se.useRef(null),s=se.useRef(null),i=se.useRef(null),u=se.useState(),c=u[0],l=u[1],u=se.useState(),p=u[0],f=u[1],u=se.useState(),m=u[0],d=u[1],u=se.useState(new P),h=u[0],C=u[1],u=se.useState(new P("ag-hidden")),g=u[0],y=u[1],u=se.useState(new P("ag-hidden")),R=u[0],E=u[1],u=se.useState(new P("ag-invisible")),v=u[0],S=u[1],u=(se.useImperativeHandle(e,function(){return{refresh:function(){return!1}}}),se.useEffect(function(){return _(c,r,t.current)},[c]),fe(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 ie.GroupCellRendererCtrl);return t.init(e,o.current,a.current,s.current,i.current,b,n),function(){r.destroyBean(t)}}),se.useMemo(function(){return"ag-cell-wrapper "+h.toString()},[h])),e=se.useMemo(function(){return"ag-group-expanded "+g.toString()},[g]),w=se.useMemo(function(){return"ag-group-contracted "+R.toString()},[R]),M=se.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=ie._.escapeString(m,!0);return ue.createElement("span",ce({className:u,ref:o},n.colDef?{}:{role:"gridcell"}),ue.createElement("span",{className:e,ref:s}),ue.createElement("span",{className:w,ref:i}),ue.createElement("span",{className:M,ref:a}),ue.createElement("span",{className:"ag-group-value",ref:t},I&&ue.createElement(ue.Fragment,null,m),O&&ue.createElement(T,ce({},c.params))),ue.createElement("span",{className:"ag-group-child-count"},p))}),F=se.memo(function(e){var t=se.useContext(pe).context,n=se.useState(),r=n[0],o=n[1],n=se.useState(),a=n[0],s=n[1],n=se.useState(),i=n[0],u=n[1],n=se.useState(),c=n[0],l=n[1],n=se.useState(),p=n[0],f=n[1],n=se.useState(),m=n[0],d=n[1],h=se.useRef(null),C=se.useRef(null),g=se.useRef(null),y=se.useRef(),R=e.ctrl,E=se.useMemo(function(){return new ie.CssClassManager(function(){return h.current})},[]),n=(le(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)}),se.useEffect(function(){return _(m,t,g.current,y)},[m]),se.useEffect(function(){R.setDragSource(h.current)},[m]),se.useMemo(function(){return{width:r}},[r])),e=se.useMemo(function(){return!!((null==m?void 0:m.componentFromFramework)&&me(m.componentClass))},[m]),v=m&&m.componentFromFramework,S=m&&m.componentClass;return ue.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},ue.createElement("div",{ref:C,className:"ag-header-cell-resize",role:"presentation"}),ue.createElement("div",{ref:g,className:"ag-header-cell-comp-wrapper",role:"presentation"},v&&e&&ue.createElement(S,ce({},m.params)),v&&!e&&ue.createElement(S,ce({},m.params,{ref:y}))))}),x=se.memo(function(e){var t=se.useContext(pe).context,n=se.useState(new P),r=n[0],o=n[1],n=se.useState(new P),a=n[0],s=n[1],n=se.useState("false"),i=n[0],u=n[1],n=se.useState(),c=n[0],l=n[1],n=se.useState(),p=n[0],f=n[1],n=se.useState(),m=n[0],d=n[1],n=se.useState(),h=n[0],C=n[1],n=se.useState(),g=n[0],y=n[1],R=se.useRef(null),E=se.useRef(null),v=e.ctrl,n=(fe(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)}),se.useEffect(function(){return _(g,t,R.current)},[g]),se.useEffect(function(){var t=void 0;R.current.childNodes.forEach(function(e){null!=e&&e!==E.current&&(t=e)}),t&&v.setDragSource(t)},[g]),se.useMemo(function(){return{width:c}},[c])),e=se.useMemo(function(){return"ag-header-group-cell "+r.toString()},[r]),S=se.useMemo(function(){return"ag-header-cell-resize "+a.toString()},[a]),w=g&&g.componentFromFramework,M=g&&g.componentClass;return ue.createElement("div",{ref:R,className:e,style:n,title:p,"col-id":m,role:"columnheader",tabIndex:-1,"aria-expanded":h},w&&ue.createElement(M,ce({},g.params)),ue.createElement("div",{ref:E,"aria-hidden":i,className:S}))}),B=se.memo(function(e){function t(e){R.current||null!=e&&(E.current&&E.current(e),R.current=!0)}var n=se.useContext(pe).context,r=se.useState(new P("ag-header-cell","ag-floating-filter")),o=r[0],a=r[1],r=se.useState(new P),s=r[0],i=r[1],r=se.useState(new P("ag-floating-filter-button","ag-hidden")),u=r[0],c=r[1],r=se.useState("false"),l=r[0],p=r[1],r=se.useState(),f=r[0],m=r[1],r=se.useState(),d=r[0],h=r[1],C=se.useRef(null),g=se.useRef(null),r=se.useRef(null),y=se.useRef(null),R=se.useRef(!1),E=se.useRef(),v=se.useRef(),S=(fe(function(){v.current=new ie.AgPromise(function(e){E.current=e})}),e.ctrl),e=(fe(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)}),se.useEffect(function(){return _(d,n,g.current,t)},[d]),se.useMemo(function(){return{width:f}},[f])),w=se.useMemo(function(){return o.toString()},[o]),M=se.useMemo(function(){return s.toString()},[s]),O=se.useMemo(function(){return u.toString()},[u]),T=se.useMemo(function(){return!!(d&&d.componentFromFramework&&me(d.componentClass))},[d]),I=d&&d.componentFromFramework,b=d&&d.componentClass;return ue.createElement("div",{ref:C,className:w,style:e,role:"gridcell",tabIndex:-1},ue.createElement("div",{ref:g,className:M,role:"presentation"},I&&T&&ue.createElement(b,ce({},d.params)),I&&!T&&ue.createElement(b,ce({},d.params,{ref:t}))),ue.createElement("div",{ref:r,"aria-hidden":l,className:O,role:"presentation"},ue.createElement("button",{ref:y,type:"button","aria-label":"Open Filter Menu",className:"ag-floating-filter-button-button",tabIndex:-1})))}),U=se.memo(function(e){var s=se.useContext(pe).gridOptionsService,t=se.useState(),n=t[0],r=t[1],t=se.useState(),o=t[0],a=t[1],t=se.useState(),i=t[0],u=t[1],t=se.useState(),c=t[0],l=t[1],t=se.useState(),p=t[0],f=t[1],t=se.useState([]),m=t[0],d=t[1],t=se.useRef(null),h=e.ctrl,C=h.getType()===ie.HeaderRowType.COLUMN,g=h.getType()===ie.HeaderRowType.COLUMN_GROUP,y=h.getType()===ie.HeaderRowType.FLOATING_FILTER,R=se.useCallback(function(e,t){var n,r,o=s.is("ensureDomOrder"),a=s.isDomLayout("print");return o||a?t:(n=ie._.mapById(e,function(e){return e.getInstanceId()}),r=ie._.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=(fe(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)}})}),se.useMemo(function(){return{transform:n,height:o,top:i,width:c}},[n,o,i,c])),E=se.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=se.useCallback(function(e){switch(h.getType()){case ie.HeaderRowType.COLUMN_GROUP:return ue.createElement(x,{ctrl:e,key:e.getInstanceId()});case ie.HeaderRowType.FLOATING_FILTER:return ue.createElement(B,{ctrl:e,key:e.getInstanceId()});default:return ue.createElement(F,{ctrl:e,key:e.getInstanceId()})}},[]);return ue.createElement("div",{ref:t,className:E,role:"row",style:e,"aria-rowindex":p},m.map(v))}),p=se.memo(function(n){function e(){return m.map(function(e){return ue.createElement(U,{ctrl:e,key:e.getInstanceId()})})}var t=se.useState(new P),r=t[0],o=t[1],t=se.useState(!1),a=t[0],s=t[1],t=se.useState(),i=t[0],u=t[1],t=se.useState(),c=t[0],l=t[1],t=se.useState(),p=t[0],f=t[1],t=se.useState([]),m=t[0],d=t[1],h=se.useContext(pe).context,C=se.useRef(null),t="left"===n.pinned,g="right"===n.pinned,y=!t&&!g,R=(fe(function(){var e={setDisplayed:function(t){o(function(e){return e.setClass("ag-hidden",!t)}),s(!t)},setCtrls:function(e){return d(e)},setCenterWidth:function(e){return u(e)},setContainerTransform:function(e){return l(e)},setPinnedContainerWidth:function(e){return f(e)}},t=h.createBean(new ie.HeaderRowContainerCtrl(n.pinned));return t.setComp(e,C.current),function(){h.destroyBean(t)}}),se.useMemo(function(){return r.toString()},[r])),E=se.useMemo(function(){return{width:i,transform:c}},[i,c]),v=se.useMemo(function(){return{width:p,minWidth:p,maxWidth:p}},[p]);return ue.createElement(ue.Fragment,null,t&&ue.createElement("div",{ref:C,className:"ag-pinned-left-header "+R,"aria-hidden":a,role:"presentation",style:v},e()),g&&ue.createElement("div",{ref:C,className:"ag-pinned-right-header "+R,"aria-hidden":a,role:"presentation",style:v},e()),y&&ue.createElement("div",{ref:C,className:"ag-header-viewport "+R,role:"presentation"},ue.createElement("div",{className:"ag-header-container",role:"rowgroup",style:E},e())))}),ne=se.memo(function(){var e=se.useState(new P),t=e[0],r=e[1],e=se.useState(),n=e[0],o=e[1],a=se.useContext(pe).context,s=se.useRef(null),e=(fe(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 ie.GridHeaderCtrl);return t.setComp(e,s.current,s.current),function(){a.destroyBean(t)}}),se.useMemo(function(){return"ag-header "+t.toString()},[t])),i=se.useMemo(function(){return{height:n,minHeight:n}},[n]);return ue.createElement("div",{ref:s,className:e,style:i,role:"presentation"},ue.createElement(p,{pinned:"left"}),ue.createElement(p,{pinned:null}),ue.createElement(p,{pinned:"right"}))}),de=se.memo(function(u){var e=se.useState(),t=e[0],c=e[1],e=se.useContext(pe),l=e.context,p=e.popupService,f=e.localeService,m=e.gridOptionsService;return fe(function(){var e=u.editDetails,t=u.cellCtrl,n=u.eParentCell,r=e.compDetails,o=m.is("stopEditingWhenCellsLoseFocus"),a=l.createBean(new ie.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)}}),ue.createElement(ue.Fragment,null,t&&u.wrappedContent&&r.createPortal(u.wrappedContent,t.getGui()))}),L=se.memo(function(e){function t(){return ue.createElement(ue.Fragment,null,null!=E&&(i=S,u=ae,c=O,l=A,p=oe,f=te,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,ue.createElement(ue.Fragment,null,l?ue.createElement("span",{role:"presentation",id:"cell-"+u,className:"ag-cell-value",ref:f},y()):y())),null!=v&&(s=v,l=re,u=ne,f=M.current,e=R,t=Z,n=s.compDetails,r=n.componentClass,o=n.componentFromFramework&&!s.popup,a=n.componentFromFramework&&s.popup,n=!n.componentFromFramework&&s.popup,ue.createElement(ue.Fragment,null,o&&ue.createElement(r,ce({},s.compDetails.params,{ref:l})),a&&ue.createElement(de,{editDetails:s,cellCtrl:e,eParentCell:f,wrappedContent:ue.createElement(r,ce({},s.compDetails.params,{ref:u}))}),n&&t&&ue.createElement(de,{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 ue.createElement(ue.Fragment,null,d&&ue.createElement(ue.Fragment,null,g),h&&!p&&ue.createElement(C,ce({},m.params,{key:i,ref:c})),h&&p&&ue.createElement(C,ce({},m.params,{key:i})))}}var n,r,o,a,s,i,u,c=se.useContext(pe).context,R=e.cellCtrl,l=e.printLayout,p=e.editingRow,e=se.useState(),E=e[0],f=e[1],e=se.useState(),v=e[0],m=e[1],e=se.useState(1),S=e[0],d=e[1],e=se.useState(),_=e[0],x=e[1],e=se.useState(),B=e[0],U=e[1],e=se.useState(),L=e[0],H=e[1],e=se.useState(),W=e[0],j=e[1],e=se.useState(),V=e[0],K=e[1],e=se.useState(),Y=e[0],z=e[1],e=se.useState(!1),h=e[0],q=e[1],e=se.useState(!1),C=e[0],$=e[1],e=se.useState(!1),g=e[0],X=e[1],e=se.useState(),Z=e[0],y=e[1],w=se.useMemo(function(){return R.isForceWrapper()},[]),M=se.useRef(null),O=se.useRef(null),T=se.useRef(),I=se.useRef(),b=se.useRef(),e=se.useState(0),J=e[0],Q=e[1],e=se.useCallback(function(e){b.current=e,Q(function(e){return e+1})},[]),P=se.useRef(),N=se.useState(0),k=N[0],ee=N[1],te=se.useCallback(function(e){P.current=e,ee(function(e){return e+1})},[]),A=w||null!=E&&(h||g||C),G=se.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.",ie._.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.",ie._.doOnce(function(){return console.warn(a)},"jsEditorComp-getPopupPosition-"+r.getColumn().getColId())),t.isCancelBeforeStart)&&t.isCancelBeforeStart()&&setTimeout(function(){R.stopEditing(!0),R.focusCell(!0)})},[]),ne=se.useCallback(function(e){return G(!0,e)},[]),re=se.useCallback(function(e){return G(!1,e)},[]),F=se.useMemo(function(){return new ie.CssClassManager(function(){return M.current})},[]),D=(n=E,r=A,o=P.current,N=k,a=T,s=M,k=se.useContext(pe),i=k.context,k.userComponentFactory,u=se.useCallback(function(){var e,t=a.current;t&&((e=t.getGui())&&e.parentElement&&e.parentElement.removeChild(e),i.destroyBean(t),a.current=void 0)},[]),se.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,N]),fe(function(){return u}),se.useRef()),oe=(se.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]),se.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]),se.useEffect(function(){if(R&&c){var n,e,t="cell-"+R.getInstanceId(),r=[];if(r.push(t),b.current&&A)return n=[],t=function(e){var t;return e&&(t=e.getGui(),b.current.insertAdjacentElement("afterbegin",t),n.push(function(){c.destroyBean(e),ie._.removeFromParent(t)})),e},h&&(e=R.createSelectionCheckbox(),r.push(e.getCheckboxId()),t(e)),g&&t(R.createDndSource()),C&&t(R.createRowDragComp()),H(r.join(" ")),function(){return n.forEach(function(e){return e()})}}},[A,g,C,h,J]),le(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 U(e)},setRole:function(e){return j(e)},setColId:function(e){return K(e)},setTitle:function(e){return z(e)},setIncludeSelection:function(e){return q(e)},setIncludeRowDrag:function(e){return $(e)},setIncludeDndSource:function(e){return X(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))}),se.useMemo(function(){return!!(E&&E.compDetails&&E.compDetails.componentFromFramework&&me(E.compDetails.componentClass))},[E])),ae=(se.useEffect(function(){var e;M.current&&(F.addOrRemoveCssClass("ag-cell-value",!A),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)}),se.useMemo(function(){return R.getInstanceId()},[]));return ue.createElement("div",{ref:M,style:_,tabIndex:B,role:W,"col-id":V,title:Y,"aria-describedby":L},A?ue.createElement("div",{className:"ag-cell-wrapper",role:"presentation","aria-hidden":"true",ref:e},t()):t())}),H=se.memo(function(e){var t=se.useContext(pe).context,n=e.rowCtrl,r=e.containerType,e=se.useState(),o=e[0],a=e[1],e=se.useState(),s=e[0],i=e[1],e=se.useState(),u=e[0],c=e[1],e=se.useState(),l=e[0],p=e[1],e=se.useState(),f=e[0],m=e[1],e=se.useState(),d=e[0],h=e[1],e=se.useState({list:[],instanceIdMap:new Map}),C=e[0],g=e[1],e=se.useState(),y=e[0],R=e[1],e=se.useState(!1),E=e[0],v=e[1],e=se.useState(n.getInitialRowTop(r)),S=e[0],w=e[1],e=se.useState(n.getInitialTransform(r)),M=e[0],O=e[1],T=se.useRef(null),I=se.useRef(),b=se.useRef(!1),e=se.useState(0),P=e[0],N=e[1],k=(se.useEffect(function(){var e;b.current||!y||10<P||((e=null==(e=T.current)?void 0:e.firstChild)?(n.setupDetailRowAutoHeight(e),b.current=!0):N(function(e){return e+1}))},[y,P]),se.useMemo(function(){return new ie.CssClassManager(function(){return T.current})},[])),e=(le(function(){if(n.isAlive())return n.setComp({setTop:function(e){return w(e)},setTransform:function(e){return O(e)},addOrRemoveCssClass:function(e,t){return k.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)}}),se.useEffect(function(){return _(y,t,T.current,I)},[y]),se.useMemo(function(){var e={top:S,transform:M};return Object.assign(e,d),e},[S,M,d])),A=y&&y.componentFromFramework,G=null!=C,F=se.useMemo(function(){return!!((null==y?void 0:y.componentFromFramework)&&me(y.componentClass))},[y]);return ue.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 ue.createElement(L,{cellCtrl:e,editingRow:n.isEditing(),printLayout:n.isPrintLayout(),key:e.getInstanceId()})}),A&&(u=y.componentClass,ue.createElement(ue.Fragment,null,F&&ue.createElement(u,ce({},y.params)),!F&&ue.createElement(u,ce({},y.params,{ref:I})))))}),re=se.memo(function(e){function t(){return ue.createElement("div",{className:E,ref:y,role:u.length?"rowgroup":"presentation",style:O},s.map(function(e){return ue.createElement(H,{rowCtrl:e,containerType:h,key:e.getInstanceId()})}))}var r=se.useContext(pe).context,n=se.useState(""),o=n[0],a=n[1],n=se.useState([]),s=n[0],i=n[1],n=se.useState([]),u=n[0],c=n[1],n=se.useState(!1),l=n[0],p=n[1],n=se.useState(""),f=n[0],m=n[1],d=e.name,h=se.useMemo(function(){return ie.getRowContainerTypeForName(d)},[d]),C=se.useRef(null),g=se.useRef(null),y=se.useRef(null),R=se.useMemo(function(){return ie.RowContainerCtrl.getRowContainerCssClasses(d)},[d]),n=se.useMemo(function(){return ee(R.wrapper)},[]),e=se.useMemo(function(){return ee(R.viewport)},[]),E=se.useMemo(function(){return ee(R.container)},[]),v=d===ie.RowContainerName.CENTER,S=d===ie.RowContainerName.TOP_CENTER||d===ie.RowContainerName.BOTTOM_CENTER||d===ie.RowContainerName.STICKY_TOP_CENTER,w=!v&&!S,M=(te(" AG Row Container "+d+" ",v?C:S?g:y),se.useEffect(function(){i(function(e){var t;return l?u:(t=e.filter(function(e){return 0<=u.indexOf(e)}),e=u.filter(function(e){return t.indexOf(e)<0}),D(t,e))})},[l,u]),fe(function(){var e=[],t={setViewportHeight:a,setRowCtrls:function(e){return c(e)},setDomOrder:function(e){return p(e)},setContainerWidth:function(e){return m(e)}},n=r.createBean(new ie.RowContainerCtrl(d));return e.push(n),n.setComp(t,y.current,g.current,C.current),function(){r.destroyBeans(e)}}),se.useMemo(function(){return{height:o}},[o])),O=se.useMemo(function(){return{width:f}},[f]);return ue.createElement(ue.Fragment,null,v&&ue.createElement("div",{className:n,ref:C,role:"presentation"},ue.createElement("div",{className:e,ref:g,role:"presentation",style:M},t())),S&&ue.createElement("div",{className:e,ref:g,role:"presentation",style:M},t()),w&&t())}),W=se.memo(function(){function o(e){return ue.createElement(re,{name:e,key:e+"-container"})}function e(e){var t=e.section,n=e.children,r=e.className,e=e.style;return ue.createElement("div",{ref:t,className:r,role:"presentation",style:e},n.map(o))}var t=se.useContext(pe),a=t.context,s=t.agStackComponentsRegistry,i=t.resizeObserverService,t=se.useState(""),n=t[0],u=t[1],t=se.useState(0),r=t[0],c=t[1],t=se.useState(0),l=t[0],p=t[1],t=se.useState(0),f=t[0],m=t[1],t=se.useState(0),d=t[0],h=t[1],t=se.useState("0px"),C=t[0],g=t[1],t=se.useState("0px"),y=t[0],R=t[1],t=se.useState("100%"),E=t[0],v=t[1],t=se.useState(""),S=t[0],_=t[1],t=se.useState(""),w=t[0],x=t[1],t=se.useState(""),M=t[0],B=t[1],t=se.useState(null),O=t[0],U=t[1],t=se.useState(null),T=t[0],L=t[1],t=se.useState(""),I=t[0],H=t[1],t=se.useState(null),b=t[0],W=t[1],t=se.useState("ag-layout-normal"),P=t[0],j=t[1],N=se.useRef(null),k=se.useRef(null),A=se.useRef(null),G=se.useRef(null),F=se.useRef(null),D=se.useRef(null),t=(te(" AG Grid Body ",N),te(" AG Pinned Top ",k),te(" AG Sticky Top ",A),te(" AG Middle ",F),te(" AG Pinned Bottom ",D),fe(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},N.current.appendChild(document.createComment(" AG Fake Horizontal Scroll ")),N.current.appendChild(e("AG-FAKE-HORIZONTAL-SCROLL").getGui()),N.current.appendChild(document.createComment(" AG Overlay Wrapper ")),N.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:_,setBottomDisplay:x,setColumnMovingCss:U,updateLayoutClasses:j,setAlwaysVerticalScrollClass:L,setPinnedTopBottomOverflowY:H,setCellSelectableCss:W,setBodyViewportWidth:B,registerBodyViewportResizeListener:function(e){var t=i.observeResize(F.current,e);r.push(function(){return t()})}},t=a.createBean(new ie.GridBodyCtrl),n.push(t),t.setComp(e,N.current,F.current,k.current,D.current,A.current),function(){a.destroyBeans(n),r.forEach(function(e){return e()})}}),se.useMemo(function(){return ee("ag-root","ag-unselectable",O,P)},[O,P])),V=se.useMemo(function(){return ee("ag-body-viewport",n,P,T,b)},[n,P,T,b]),K=se.useMemo(function(){return ee("ag-body",P)},[P]),Y=se.useMemo(function(){return ee("ag-body-clipper",P)},[P]),z=se.useMemo(function(){return ee("ag-floating-top",b)},[b]),q=se.useMemo(function(){return ee("ag-sticky-top",b)},[b]),$=se.useMemo(function(){return ee("ag-floating-bottom",b)},[b]),X=se.useMemo(function(){return{height:f,minHeight:f,display:S,overflowY:I}},[f,S,I]),Z=se.useMemo(function(){return{height:C,top:y,width:E}},[C,y,E]),J=se.useMemo(function(){return{height:d,minHeight:d,display:w,overflowY:I}},[d,w,I]),Q=se.useMemo(function(){return{width:M}},[M]);return ue.createElement("div",{ref:N,className:t,role:"treegrid","aria-colcount":r,"aria-rowcount":l},ue.createElement(ne,null),e({section:k,className:z,style:X,children:[ie.RowContainerName.TOP_LEFT,ie.RowContainerName.TOP_CENTER,ie.RowContainerName.TOP_RIGHT,ie.RowContainerName.TOP_FULL_WIDTH]}),ue.createElement("div",{className:K,ref:G,role:"presentation"},ue.createElement("div",{className:Y,role:"presentation"},e({section:F,className:V,style:Q,children:[ie.RowContainerName.LEFT,ie.RowContainerName.CENTER,ie.RowContainerName.RIGHT,ie.RowContainerName.FULL_WIDTH]}))),e({section:A,className:q,style:Z,children:[ie.RowContainerName.STICKY_TOP_LEFT,ie.RowContainerName.STICKY_TOP_CENTER,ie.RowContainerName.STICKY_TOP_RIGHT,ie.RowContainerName.STICKY_TOP_FULL_WIDTH]}),e({section:D,className:$,style:J,children:[ie.RowContainerName.BOTTOM_LEFT,ie.RowContainerName.BOTTOM_CENTER,ie.RowContainerName.BOTTOM_RIGHT,ie.RowContainerName.BOTTOM_FULL_WIDTH]}))}),o=se.forwardRef(function(e,t){function n(e){return ue.createElement("div",{className:"ag-tab-guard ag-tab-guard-"+e,role:"presentation",tabIndex:p,ref:"top"===e?u:c})}var r=e.children,o=e.eFocusableElement,a=e.onTabKeyDown,s=e.gridCtrl,i=se.useContext(pe).context,u=se.useRef(null),c=se.useRef(null),l=se.useRef(),e=se.useState(),p=e[0],f=e[1];se.useImperativeHandle(t,function(){return{forceFocusOutOfContainer:function(){l.current.forceFocusOutOfContainer()}}}),fe(function(){var e=u.current,t=c.current,n=l.current=i.createBean(new ie.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 ue.createElement(ue.Fragment,null,n("top"),r,n("bottom"))}),j=se.memo(o),V=se.memo(function(e){var p=e.context,e=se.useState(""),t=e[0],n=e[1],e=se.useState(""),r=e[0],o=e[1],e=se.useState(""),a=e[0],s=e[1],e=se.useState(null),i=e[0],u=e[1],e=se.useState(null),c=e[0],l=e[1],e=se.useState(!1),f=e[0],m=e[1],e=se.useState(),d=e[0],h=e[1],C=se.useRef(null),g=se.useRef(null),y=se.useRef(),R=se.useRef(null),E=se.useRef(function(){}),e=se.useCallback(function(){},[]),v=se.useMemo(function(){return p.getBean("beans")},[]),S=(te(" AG Grid ",g),fe(function(){var e=C.current=p.createBean(new ie.GridCtrl);return function(){p.destroyBean(e),C.current=null}}),fe(function(){var e=C.current,t=(E.current=e.focusInnerElement.bind(e),{destroyGridUi:function(){},setRtlClass:n,addOrRemoveKeyboardFocusClass:function(e){return o(e?ie.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");return t&&e.push(t),n&&e.push(n),e},setCursor:u,setUserSelect:l});e.setComp(t,g.current,g.current),m(!0)}),se.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]),se.useMemo(function(){return ee("ag-root-wrapper",t,r,a)},[t,r,a])),w=se.useMemo(function(){return ee("ag-root-wrapper-body","ag-focus-managed",a)},[a]),M=se.useMemo(function(){return{userSelect:null!=c?c:"",WebkitUserSelect:null!=c?c:"",cursor:null!=i?i:""}},[c,i]),O=R.current,T=se.useCallback(function(e){y.current=e,h(!0)},[]);return ue.createElement("div",{ref:g,className:S,style:M,role:"presentation"},ue.createElement("div",{className:w,ref:R,role:"presentation"},f&&O&&ue.createElement(pe.Provider,{value:v},ue.createElement(j,{ref:T,eFocusableElement:O,onTabKeyDown:e,gridCtrl:C.current},ue.createElement(W,null)))))});n(f,K=se.Component),f.prototype.render=function(){return this.state.context,this.state.context&&(this.renderedAfterMount=!0),ue.createElement("div",{style:this.createStyleForDiv(),className:this.props.className,ref:this.eGui},this.state.context&&ue.createElement(V,{context:this.state.context}),this.portalManager.getPortals())},f.prototype.createStyleForDiv=function(){return ce({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=ie.ComponentUtil.copyAttributesToGridOptions(this.gridOptions,this.props),this.checkForDeprecations(this.props),(new ie.GridCoreCreator).create(this.eGui.current,this.gridOptions,function(e){t.setState({context:e}),e.getBean(ie.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(ie.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&&ie._.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){ie.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]})}),ie.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 ie.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=ue.createRef(),t.whenReadyFuncs=[],t.ready=!1,t.renderedAfterMount=!1,t.mounted=!1,t.state={context:void 0},t.portalManager=new A(t,e.componentWrappingElement,e.maxComponentCreationTimeMs),t.destroyFuncs.push(function(){return t.portalManager.destroy()}),t}n(m,Y=ie.BaseComponentWrapper),m.prototype.createWrapper=function(e,t){return new k(e,this.parent,t)};var Y,z=m;function m(e){var t=Y.call(this)||this;return t.parent=e,t}var q,$=se.forwardRef(function(r,e){var t=se.useContext(pe),o=t.ctrlsFactory,a=t.context,s=t.gridOptionsService,i=t.resizeObserverService,u=t.clientSideRowModel,c=t.serverSideRowModel,t=se.useState(new P),n=t[0],l=t[1],t=se.useState(new P),p=t[0],f=t[1],t=se.useState(),m=t[0],d=t[1],t=se.useState(),h=t[0],C=t[1],g=se.useRef(),y=se.useRef(null),t=se.useMemo(function(){return n.toString()+" ag-details-row"},[n]),R=se.useMemo(function(){return p.toString()+" ag-details-grid"},[p]),e=(e&&se.useImperativeHandle(e,function(){return{refresh:function(){return g.current.refresh()}}}),fe(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.")}),fe(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()}}),se.useCallback(function(e,t){g.current.registerDetailWithMaster(e,t)},[]));return ue.createElement("div",{className:t,ref:y},m&&ue.createElement(E,ce({className:R},m,{rowData:h,setGridApi:e})))}),X=(n(d,q=ie.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=se.Component),C.prototype.render=function(){var t=this;return ue.createElement("div",{style:this.createStyleForDiv(),className:this.props.className,ref:function(e){t.eGridDiv=e}},this.portalManager.getPortals())},C.prototype.createStyleForDiv=function(){return ce({height:"100%"},this.props.containerStyle||{})},C.prototype.componentDidMount=function(){var e=this.props.modules||[],e={providedBeanInstances:{agGridReact:this,frameworkComponentWrapper:new Q(this,this.portalManager)},modules:e,frameworkOverrides:new X(!1)},t=this.props.gridOptions||{};this.gridOptions=ie.ComponentUtil.copyAttributesToGridOptions(t,this.props),this.checkForDeprecations(this.props),new ie.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&&ie._.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){ie.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]})}),ie.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=ce({},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&&ie.ComponentUtil.processOnChange(t,this.api),n},C.prototype.processAsynchronousChanges=function(e){var t=this;0<Object.keys(e).length&&window.setTimeout(function(){t.api&&ie.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 A(t,e.componentWrappingElement,e.maxComponentCreationTimeMs),t}function g(e,t){e.forEach(function(e){h[e]=t})}h.propTypes={gridOptions:t.object},g(ie.ComponentUtil.EVENT_CALLBACKS,t.func),g(ie.ComponentUtil.BOOLEAN_PROPERTIES,t.bool),g(ie.ComponentUtil.STRING_PROPERTIES,t.string),g(ie.ComponentUtil.OBJECT_PROPERTIES,t.object),g(ie.ComponentUtil.ARRAY_PROPERTIES,t.array),g(ie.ComponentUtil.NUMBER_PROPERTIES,t.number),g(ie.ComponentUtil.FUNCTION_PROPERTIES,t.func);n(y,J=ie.BaseComponentWrapper),y.prototype.createWrapper=function(e,t){return this.agGridReact.isLegacyComponentRendering()?new I(e,this.agGridReact,this.portalManager,t):new k(e,this.portalManager,t)};var J,Q=y;function y(e,t){var n=J.call(this)||this;return n.agGridReact=e,n.portalManager=t,n}n(v,R=se.Component),v.prototype.render=function(){return this.props.suppressReactUi?ue.createElement(h,ce({},this.props,{setGridApi:this.setGridApi})):ue.createElement(E,ce({},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,S,r,se,ie){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t;var ue="default"in se?se.default:se,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 ce=function(){return(ce=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 ie.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()}),se.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=se.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 ie.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=se.createElement(this.reactComponent,ce(ce({},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(se.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 le(e){var t=se.useRef(e),n=se.useRef(),r=se.useRef(!1),o=se.useRef(!1),a=se.useState(0)[1];r.current&&(o.current=!0),se.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 ee(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(function(e){return null!=e&&""!==e}).join(" ")}var pe=ue.createContext({}),fe=function(e){var t=se.useRef(e),n=se.useRef(),r=se.useRef(!1),o=se.useRef(!1),a=se.useState(0)[1];r.current&&(o.current=!0),se.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=ce({},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 me(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 te(r,o){fe(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=se.forwardRef(function(n,e){var r=se.useContext(pe).context,o=se.useRef(null),t=se.useRef(null),a=se.useRef(null),s=se.useRef(null),i=se.useRef(null),u=se.useState(),c=u[0],l=u[1],u=se.useState(),p=u[0],f=u[1],u=se.useState(),m=u[0],d=u[1],u=se.useState(new P),h=u[0],C=u[1],u=se.useState(new P("ag-hidden")),g=u[0],y=u[1],u=se.useState(new P("ag-hidden")),R=u[0],E=u[1],u=se.useState(new P("ag-invisible")),v=u[0],S=u[1],u=(se.useImperativeHandle(e,function(){return{refresh:function(){return!1}}}),se.useEffect(function(){return _(c,r,t.current)},[c]),fe(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 ie.GroupCellRendererCtrl);return t.init(e,o.current,a.current,s.current,i.current,b,n),function(){r.destroyBean(t)}}),se.useMemo(function(){return"ag-cell-wrapper "+h.toString()},[h])),e=se.useMemo(function(){return"ag-group-expanded "+g.toString()},[g]),w=se.useMemo(function(){return"ag-group-contracted "+R.toString()},[R]),M=se.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=ie._.escapeString(m,!0);return ue.createElement("span",ce({className:u,ref:o},n.colDef?{}:{role:"gridcell"}),ue.createElement("span",{className:e,ref:s}),ue.createElement("span",{className:w,ref:i}),ue.createElement("span",{className:M,ref:a}),ue.createElement("span",{className:"ag-group-value",ref:t},I&&ue.createElement(ue.Fragment,null,m),T&&ue.createElement(O,ce({},c.params))),ue.createElement("span",{className:"ag-group-child-count"},p))}),F=se.memo(function(e){var t=se.useContext(pe).context,n=se.useState(),r=n[0],o=n[1],n=se.useState(),a=n[0],s=n[1],n=se.useState(),i=n[0],u=n[1],n=se.useState(),c=n[0],l=n[1],n=se.useState(),p=n[0],f=n[1],n=se.useState(),m=n[0],d=n[1],h=se.useRef(null),C=se.useRef(null),g=se.useRef(null),y=se.useRef(),R=e.ctrl,E=se.useMemo(function(){return new ie.CssClassManager(function(){return h.current})},[]),n=(le(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)}),se.useEffect(function(){return _(m,t,g.current,y)},[m]),se.useEffect(function(){R.setDragSource(h.current)},[m]),se.useMemo(function(){return{width:r}},[r])),e=se.useMemo(function(){return!!((null==m?void 0:m.componentFromFramework)&&me(m.componentClass))},[m]),v=m&&m.componentFromFramework,S=m&&m.componentClass;return ue.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},ue.createElement("div",{ref:C,className:"ag-header-cell-resize",role:"presentation"}),ue.createElement("div",{ref:g,className:"ag-header-cell-comp-wrapper",role:"presentation"},v&&e&&ue.createElement(S,ce({},m.params)),v&&!e&&ue.createElement(S,ce({},m.params,{ref:y}))))}),x=se.memo(function(e){var t=se.useContext(pe).context,n=se.useState(new P),r=n[0],o=n[1],n=se.useState(new P),a=n[0],s=n[1],n=se.useState("false"),i=n[0],u=n[1],n=se.useState(),c=n[0],l=n[1],n=se.useState(),p=n[0],f=n[1],n=se.useState(),m=n[0],d=n[1],n=se.useState(),h=n[0],C=n[1],n=se.useState(),g=n[0],y=n[1],R=se.useRef(null),E=se.useRef(null),v=e.ctrl,n=(fe(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)}),se.useEffect(function(){return _(g,t,R.current)},[g]),se.useEffect(function(){var t=void 0;R.current.childNodes.forEach(function(e){null!=e&&e!==E.current&&(t=e)}),t&&v.setDragSource(t)},[g]),se.useMemo(function(){return{width:c}},[c])),e=se.useMemo(function(){return"ag-header-group-cell "+r.toString()},[r]),S=se.useMemo(function(){return"ag-header-cell-resize "+a.toString()},[a]),w=g&&g.componentFromFramework,M=g&&g.componentClass;return ue.createElement("div",{ref:R,className:e,style:n,title:p,"col-id":m,role:"columnheader",tabIndex:-1,"aria-expanded":h},w&&ue.createElement(M,ce({},g.params)),ue.createElement("div",{ref:E,"aria-hidden":i,className:S}))}),B=se.memo(function(e){function t(e){R.current||null!=e&&(E.current&&E.current(e),R.current=!0)}var n=se.useContext(pe).context,r=se.useState(new P("ag-header-cell","ag-floating-filter")),o=r[0],a=r[1],r=se.useState(new P),s=r[0],i=r[1],r=se.useState(new P("ag-floating-filter-button","ag-hidden")),u=r[0],c=r[1],r=se.useState("false"),l=r[0],p=r[1],r=se.useState(),f=r[0],m=r[1],r=se.useState(),d=r[0],h=r[1],C=se.useRef(null),g=se.useRef(null),r=se.useRef(null),y=se.useRef(null),R=se.useRef(!1),E=se.useRef(),v=se.useRef(),S=(fe(function(){v.current=new ie.AgPromise(function(e){E.current=e})}),e.ctrl),e=(fe(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)}),se.useEffect(function(){return _(d,n,g.current,t)},[d]),se.useMemo(function(){return{width:f}},[f])),w=se.useMemo(function(){return o.toString()},[o]),M=se.useMemo(function(){return s.toString()},[s]),T=se.useMemo(function(){return u.toString()},[u]),O=se.useMemo(function(){return!!(d&&d.componentFromFramework&&me(d.componentClass))},[d]),I=d&&d.componentFromFramework,b=d&&d.componentClass;return ue.createElement("div",{ref:C,className:w,style:e,role:"gridcell",tabIndex:-1},ue.createElement("div",{ref:g,className:M,role:"presentation"},I&&O&&ue.createElement(b,ce({},d.params)),I&&!O&&ue.createElement(b,ce({},d.params,{ref:t}))),ue.createElement("div",{ref:r,"aria-hidden":l,className:T,role:"presentation"},ue.createElement("button",{ref:y,type:"button","aria-label":"Open Filter Menu",className:"ag-floating-filter-button-button",tabIndex:-1})))}),U=se.memo(function(e){var s=se.useContext(pe).gridOptionsService,t=se.useState(),n=t[0],r=t[1],t=se.useState(),o=t[0],a=t[1],t=se.useState(),i=t[0],u=t[1],t=se.useState(),c=t[0],l=t[1],t=se.useState(),p=t[0],f=t[1],t=se.useState([]),m=t[0],d=t[1],t=se.useRef(null),h=e.ctrl,C=h.getType()===ie.HeaderRowType.COLUMN,g=h.getType()===ie.HeaderRowType.COLUMN_GROUP,y=h.getType()===ie.HeaderRowType.FLOATING_FILTER,R=se.useCallback(function(e,t){var n,r,o=s.is("ensureDomOrder"),a=s.isDomLayout("print");return o||a?t:(n=ie._.mapById(e,function(e){return e.getInstanceId()}),r=ie._.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=(fe(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)}})}),se.useMemo(function(){return{transform:n,height:o,top:i,width:c}},[n,o,i,c])),E=se.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=se.useCallback(function(e){switch(h.getType()){case ie.HeaderRowType.COLUMN_GROUP:return ue.createElement(x,{ctrl:e,key:e.getInstanceId()});case ie.HeaderRowType.FLOATING_FILTER:return ue.createElement(B,{ctrl:e,key:e.getInstanceId()});default:return ue.createElement(F,{ctrl:e,key:e.getInstanceId()})}},[]);return ue.createElement("div",{ref:t,className:E,role:"row",style:e,"aria-rowindex":p},m.map(v))}),p=se.memo(function(n){function e(){return m.map(function(e){return ue.createElement(U,{ctrl:e,key:e.getInstanceId()})})}var t=se.useState(new P),r=t[0],o=t[1],t=se.useState(!1),a=t[0],s=t[1],t=se.useState(),i=t[0],u=t[1],t=se.useState(),c=t[0],l=t[1],t=se.useState(),p=t[0],f=t[1],t=se.useState([]),m=t[0],d=t[1],h=se.useContext(pe).context,C=se.useRef(null),t="left"===n.pinned,g="right"===n.pinned,y=!t&&!g,R=(fe(function(){var e={setDisplayed:function(t){o(function(e){return e.setClass("ag-hidden",!t)}),s(!t)},setCtrls:function(e){return d(e)},setCenterWidth:function(e){return u(e)},setContainerTransform:function(e){return l(e)},setPinnedContainerWidth:function(e){return f(e)}},t=h.createBean(new ie.HeaderRowContainerCtrl(n.pinned));return t.setComp(e,C.current),function(){h.destroyBean(t)}}),se.useMemo(function(){return r.toString()},[r])),E=se.useMemo(function(){return{width:i,transform:c}},[i,c]),v=se.useMemo(function(){return{width:p,minWidth:p,maxWidth:p}},[p]);return ue.createElement(ue.Fragment,null,t&&ue.createElement("div",{ref:C,className:"ag-pinned-left-header "+R,"aria-hidden":a,role:"presentation",style:v},e()),g&&ue.createElement("div",{ref:C,className:"ag-pinned-right-header "+R,"aria-hidden":a,role:"presentation",style:v},e()),y&&ue.createElement("div",{ref:C,className:"ag-header-viewport "+R,role:"presentation"},ue.createElement("div",{className:"ag-header-container",role:"rowgroup",style:E},e())))}),ne=se.memo(function(){var e=se.useState(new P),t=e[0],r=e[1],e=se.useState(),n=e[0],o=e[1],a=se.useContext(pe).context,s=se.useRef(null),e=(fe(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 ie.GridHeaderCtrl);return t.setComp(e,s.current,s.current),function(){a.destroyBean(t)}}),se.useMemo(function(){return"ag-header "+t.toString()},[t])),i=se.useMemo(function(){return{height:n,minHeight:n}},[n]);return ue.createElement("div",{ref:s,className:e,style:i,role:"presentation"},ue.createElement(p,{pinned:"left"}),ue.createElement(p,{pinned:null}),ue.createElement(p,{pinned:"right"}))}),de=se.memo(function(u){var e=se.useState(),t=e[0],c=e[1],e=se.useContext(pe),l=e.context,p=e.popupService,f=e.localeService,m=e.gridOptionsService;return fe(function(){var e=u.editDetails,t=u.cellCtrl,n=u.eParentCell,r=e.compDetails,o=m.is("stopEditingWhenCellsLoseFocus"),a=l.createBean(new ie.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)}}),ue.createElement(ue.Fragment,null,t&&u.wrappedContent&&r.createPortal(u.wrappedContent,t.getGui()))}),L=se.memo(function(e){function t(){return ue.createElement(ue.Fragment,null,null!=E&&(i=S,u=ae,c=T,l=k,p=oe,f=te,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,ue.createElement(ue.Fragment,null,l?ue.createElement("span",{role:"presentation",id:"cell-"+u,className:"ag-cell-value",ref:f},y()):y())),null!=v&&(s=v,l=re,u=ne,f=M.current,e=R,t=Z,n=s.compDetails,r=n.componentClass,o=n.componentFromFramework&&!s.popup,a=n.componentFromFramework&&s.popup,n=!n.componentFromFramework&&s.popup,ue.createElement(ue.Fragment,null,o&&ue.createElement(r,ce({},s.compDetails.params,{ref:l})),a&&ue.createElement(de,{editDetails:s,cellCtrl:e,eParentCell:f,wrappedContent:ue.createElement(r,ce({},s.compDetails.params,{ref:u}))}),n&&t&&ue.createElement(de,{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 ue.createElement(ue.Fragment,null,d&&ue.createElement(ue.Fragment,null,g),h&&!p&&ue.createElement(C,ce({},m.params,{key:i,ref:c})),h&&p&&ue.createElement(C,ce({},m.params,{key:i})))}}var n,r,o,a,s,i,u,c=se.useContext(pe).context,R=e.cellCtrl,l=e.printLayout,p=e.editingRow,e=se.useState(),E=e[0],f=e[1],e=se.useState(),v=e[0],m=e[1],e=se.useState(1),S=e[0],d=e[1],e=se.useState(),_=e[0],x=e[1],e=se.useState(),B=e[0],U=e[1],e=se.useState(),L=e[0],H=e[1],e=se.useState(),W=e[0],j=e[1],e=se.useState(),V=e[0],K=e[1],e=se.useState(),Y=e[0],z=e[1],e=se.useState(!1),h=e[0],q=e[1],e=se.useState(!1),C=e[0],$=e[1],e=se.useState(!1),g=e[0],X=e[1],e=se.useState(),Z=e[0],y=e[1],w=se.useMemo(function(){return R.isForceWrapper()},[]),M=se.useRef(null),T=se.useRef(null),O=se.useRef(),I=se.useRef(),b=se.useRef(),e=se.useState(0),J=e[0],Q=e[1],e=se.useCallback(function(e){b.current=e,Q(function(e){return e+1})},[]),P=se.useRef(),A=se.useState(0),N=A[0],ee=A[1],te=se.useCallback(function(e){P.current=e,ee(function(e){return e+1})},[]),k=w||null!=E&&(h||g||C),G=se.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.",ie._.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.",ie._.doOnce(function(){return console.warn(a)},"jsEditorComp-getPopupPosition-"+r.getColumn().getColId())),t.isCancelBeforeStart)&&t.isCancelBeforeStart()&&setTimeout(function(){R.stopEditing(!0),R.focusCell(!0)})},[]),ne=se.useCallback(function(e){return G(!0,e)},[]),re=se.useCallback(function(e){return G(!1,e)},[]),F=se.useMemo(function(){return new ie.CssClassManager(function(){return M.current})},[]),D=(n=E,r=k,o=P.current,A=N,a=O,s=M,N=se.useContext(pe),i=N.context,N.userComponentFactory,u=se.useCallback(function(){var e,t=a.current;t&&((e=t.getGui())&&e.parentElement&&e.parentElement.removeChild(e),i.destroyBean(t),a.current=void 0)},[]),se.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]),fe(function(){return u}),se.useRef()),oe=(se.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]),se.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]),se.useEffect(function(){if(R&&c){var n,e,t="cell-"+R.getInstanceId(),r=[];if(r.push(t),b.current&&k)return n=[],t=function(e){var t;return e&&(t=e.getGui(),b.current.insertAdjacentElement("afterbegin",t),n.push(function(){c.destroyBean(e),ie._.removeFromParent(t)})),e},h&&(e=R.createSelectionCheckbox(),r.push(e.getCheckboxId()),t(e)),g&&t(R.createDndSource()),C&&t(R.createRowDragComp()),H(r.join(" ")),function(){return n.forEach(function(e){return e()})}}},[k,g,C,h,J]),le(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 U(e)},setRole:function(e){return j(e)},setColId:function(e){return K(e)},setTitle:function(e){return z(e)},setIncludeSelection:function(e){return q(e)},setIncludeRowDrag:function(e){return $(e)},setIncludeDndSource:function(e){return X(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))}),se.useMemo(function(){return!!(E&&E.compDetails&&E.compDetails.componentFromFramework&&me(E.compDetails.componentClass))},[E])),ae=(se.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)}),se.useMemo(function(){return R.getInstanceId()},[]));return ue.createElement("div",{ref:M,style:_,tabIndex:B,role:W,"col-id":V,title:Y,"aria-describedby":L},k?ue.createElement("div",{className:"ag-cell-wrapper",role:"presentation","aria-hidden":"true",ref:e},t()):t())}),H=se.memo(function(e){var t=se.useContext(pe).context,n=e.rowCtrl,r=e.containerType,e=se.useState(),o=e[0],a=e[1],e=se.useState(),s=e[0],i=e[1],e=se.useState(),u=e[0],c=e[1],e=se.useState(),l=e[0],p=e[1],e=se.useState(),f=e[0],m=e[1],e=se.useState(),d=e[0],h=e[1],e=se.useState({list:[],instanceIdMap:new Map}),C=e[0],g=e[1],e=se.useState(),y=e[0],R=e[1],e=se.useState(!1),E=e[0],v=e[1],e=se.useState(n.getInitialRowTop(r)),S=e[0],w=e[1],e=se.useState(n.getInitialTransform(r)),M=e[0],T=e[1],O=se.useRef(null),I=se.useRef(),b=se.useRef(!1),e=se.useState(0),P=e[0],A=e[1],N=(se.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]),se.useMemo(function(){return new ie.CssClassManager(function(){return O.current})},[])),e=(le(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)}}),se.useEffect(function(){return _(y,t,O.current,I)},[y]),se.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=se.useMemo(function(){return!!((null==y?void 0:y.componentFromFramework)&&me(y.componentClass))},[y]);return ue.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 ue.createElement(L,{cellCtrl:e,editingRow:n.isEditing(),printLayout:n.isPrintLayout(),key:e.getInstanceId()})}),k&&(u=y.componentClass,ue.createElement(ue.Fragment,null,F&&ue.createElement(u,ce({},y.params)),!F&&ue.createElement(u,ce({},y.params,{ref:I})))))}),re=se.memo(function(e){function t(){return ue.createElement("div",{className:E,ref:y,role:u.length?"rowgroup":"presentation",style:T},s.map(function(e){return ue.createElement(H,{rowCtrl:e,containerType:h,key:e.getInstanceId()})}))}var r=se.useContext(pe).context,n=se.useState(""),o=n[0],a=n[1],n=se.useState([]),s=n[0],i=n[1],n=se.useState([]),u=n[0],c=n[1],n=se.useState(!1),l=n[0],p=n[1],n=se.useState(""),f=n[0],m=n[1],d=e.name,h=se.useMemo(function(){return ie.getRowContainerTypeForName(d)},[d]),C=se.useRef(null),g=se.useRef(null),y=se.useRef(null),R=se.useMemo(function(){return ie.RowContainerCtrl.getRowContainerCssClasses(d)},[d]),n=se.useMemo(function(){return ee(R.wrapper)},[]),e=se.useMemo(function(){return ee(R.viewport)},[]),E=se.useMemo(function(){return ee(R.container)},[]),v=d===ie.RowContainerName.CENTER,S=d===ie.RowContainerName.TOP_CENTER||d===ie.RowContainerName.BOTTOM_CENTER||d===ie.RowContainerName.STICKY_TOP_CENTER,w=!v&&!S,M=(te(" AG Row Container "+d+" ",v?C:S?g:y),se.useEffect(function(){i(function(e){var t;return l?u:(t=e.filter(function(e){return 0<=u.indexOf(e)}),e=u.filter(function(e){return t.indexOf(e)<0}),D(t,e))})},[l,u]),fe(function(){var e=[],t={setViewportHeight:a,setRowCtrls:function(e){return c(e)},setDomOrder:function(e){return p(e)},setContainerWidth:function(e){return m(e)}},n=r.createBean(new ie.RowContainerCtrl(d));return e.push(n),n.setComp(t,y.current,g.current,C.current),function(){r.destroyBeans(e)}}),se.useMemo(function(){return{height:o}},[o])),T=se.useMemo(function(){return{width:f}},[f]);return ue.createElement(ue.Fragment,null,v&&ue.createElement("div",{className:n,ref:C,role:"presentation"},ue.createElement("div",{className:e,ref:g,role:"presentation",style:M},t())),S&&ue.createElement("div",{className:e,ref:g,role:"presentation",style:M},t()),w&&t())}),W=se.memo(function(){function o(e){return ue.createElement(re,{name:e,key:e+"-container"})}function e(e){var t=e.section,n=e.children,r=e.className,e=e.style;return ue.createElement("div",{ref:t,className:r,role:"presentation",style:e},n.map(o))}var t=se.useContext(pe),a=t.context,s=t.agStackComponentsRegistry,i=t.resizeObserverService,t=se.useState(""),n=t[0],u=t[1],t=se.useState(0),r=t[0],c=t[1],t=se.useState(0),l=t[0],p=t[1],t=se.useState(0),f=t[0],m=t[1],t=se.useState(0),d=t[0],h=t[1],t=se.useState("0px"),C=t[0],g=t[1],t=se.useState("0px"),y=t[0],R=t[1],t=se.useState("100%"),E=t[0],v=t[1],t=se.useState(""),S=t[0],_=t[1],t=se.useState(""),w=t[0],x=t[1],t=se.useState(""),M=t[0],B=t[1],t=se.useState(null),T=t[0],U=t[1],t=se.useState(null),O=t[0],L=t[1],t=se.useState(""),I=t[0],H=t[1],t=se.useState(null),b=t[0],W=t[1],t=se.useState("ag-layout-normal"),P=t[0],j=t[1],A=se.useRef(null),N=se.useRef(null),k=se.useRef(null),G=se.useRef(null),F=se.useRef(null),D=se.useRef(null),t=(te(" AG Grid Body ",A),te(" AG Pinned Top ",N),te(" AG Sticky Top ",k),te(" AG Middle ",F),te(" AG Pinned Bottom ",D),fe(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:_,setBottomDisplay:x,setColumnMovingCss:U,updateLayoutClasses:j,setAlwaysVerticalScrollClass:L,setPinnedTopBottomOverflowY:H,setCellSelectableCss:W,setBodyViewportWidth:B,registerBodyViewportResizeListener:function(e){var t=i.observeResize(F.current,e);r.push(function(){return t()})}},t=a.createBean(new ie.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()})}}),se.useMemo(function(){return ee("ag-root","ag-unselectable",T,P)},[T,P])),V=se.useMemo(function(){return ee("ag-body-viewport",n,P,O,b)},[n,P,O,b]),K=se.useMemo(function(){return ee("ag-body",P)},[P]),Y=se.useMemo(function(){return ee("ag-body-clipper",P)},[P]),z=se.useMemo(function(){return ee("ag-floating-top",b)},[b]),q=se.useMemo(function(){return ee("ag-sticky-top",b)},[b]),$=se.useMemo(function(){return ee("ag-floating-bottom",b)},[b]),X=se.useMemo(function(){return{height:f,minHeight:f,display:S,overflowY:I}},[f,S,I]),Z=se.useMemo(function(){return{height:C,top:y,width:E}},[C,y,E]),J=se.useMemo(function(){return{height:d,minHeight:d,display:w,overflowY:I}},[d,w,I]),Q=se.useMemo(function(){return{width:M}},[M]);return ue.createElement("div",{ref:A,className:t,role:"treegrid","aria-colcount":r,"aria-rowcount":l},ue.createElement(ne,null),e({section:N,className:z,style:X,children:[ie.RowContainerName.TOP_LEFT,ie.RowContainerName.TOP_CENTER,ie.RowContainerName.TOP_RIGHT,ie.RowContainerName.TOP_FULL_WIDTH]}),ue.createElement("div",{className:K,ref:G,role:"presentation"},ue.createElement("div",{className:Y,role:"presentation"},e({section:F,className:V,style:Q,children:[ie.RowContainerName.LEFT,ie.RowContainerName.CENTER,ie.RowContainerName.RIGHT,ie.RowContainerName.FULL_WIDTH]}))),e({section:k,className:q,style:Z,children:[ie.RowContainerName.STICKY_TOP_LEFT,ie.RowContainerName.STICKY_TOP_CENTER,ie.RowContainerName.STICKY_TOP_RIGHT,ie.RowContainerName.STICKY_TOP_FULL_WIDTH]}),e({section:D,className:$,style:J,children:[ie.RowContainerName.BOTTOM_LEFT,ie.RowContainerName.BOTTOM_CENTER,ie.RowContainerName.BOTTOM_RIGHT,ie.RowContainerName.BOTTOM_FULL_WIDTH]}))}),o=se.forwardRef(function(e,t){function n(e){var t="top"===e?ie.TabGuardClassNames.TAB_GUARD_TOP:ie.TabGuardClassNames.TAB_GUARD_BOTTOM;return ue.createElement("div",{className:ie.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=se.useContext(pe).context,u=se.useRef(null),c=se.useRef(null),l=se.useRef(),e=se.useState(),p=e[0],f=e[1];se.useImperativeHandle(t,function(){return{forceFocusOutOfContainer:function(){l.current.forceFocusOutOfContainer()}}}),fe(function(){var e=u.current,t=c.current,n=l.current=i.createBean(new ie.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 ue.createElement(ue.Fragment,null,n("top"),r,n("bottom"))}),j=se.memo(o),V=se.memo(function(e){var p=e.context,e=se.useState(""),t=e[0],n=e[1],e=se.useState(""),r=e[0],o=e[1],e=se.useState(""),a=e[0],s=e[1],e=se.useState(null),i=e[0],u=e[1],e=se.useState(null),c=e[0],l=e[1],e=se.useState(!1),f=e[0],m=e[1],e=se.useState(),d=e[0],h=e[1],C=se.useRef(null),g=se.useRef(null),y=se.useRef(),R=se.useRef(null),E=se.useRef(function(){}),e=se.useCallback(function(){},[]),v=se.useMemo(function(){return p.getBean("beans")},[]),S=(te(" AG Grid ",g),fe(function(){var e=C.current=p.createBean(new ie.GridCtrl);return function(){p.destroyBean(e),C.current=null}}),fe(function(){var e=C.current,t=(E.current=e.focusInnerElement.bind(e),{destroyGridUi:function(){},setRtlClass:n,addOrRemoveKeyboardFocusClass:function(e){return o(e?ie.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)}),se.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]),se.useMemo(function(){return ee("ag-root-wrapper",t,r,a)},[t,r,a])),w=se.useMemo(function(){return ee("ag-root-wrapper-body","ag-focus-managed",a)},[a]),M=se.useMemo(function(){return{userSelect:null!=c?c:"",WebkitUserSelect:null!=c?c:"",cursor:null!=i?i:""}},[c,i]),T=R.current,O=se.useCallback(function(e){y.current=e,h(!0)},[]);return ue.createElement("div",{ref:g,className:S,style:M,role:"presentation"},ue.createElement("div",{className:w,ref:R,role:"presentation"},f&&T&&ue.createElement(pe.Provider,{value:v},ue.createElement(j,{ref:O,eFocusableElement:T,onTabKeyDown:e,gridCtrl:C.current},ue.createElement(W,null)))))});n(f,K=se.Component),f.prototype.render=function(){return this.state.context,this.state.context&&(this.renderedAfterMount=!0),ue.createElement("div",{style:this.createStyleForDiv(),className:this.props.className,ref:this.eGui},this.state.context&&ue.createElement(V,{context:this.state.context}),this.portalManager.getPortals())},f.prototype.createStyleForDiv=function(){return ce({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=ie.ComponentUtil.copyAttributesToGridOptions(this.gridOptions,this.props),this.checkForDeprecations(this.props),(new ie.GridCoreCreator).create(this.eGui.current,this.gridOptions,function(e){t.setState({context:e}),e.getBean(ie.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(ie.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&&ie._.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){ie.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]})}),ie.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 ie.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=ue.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=ie.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,$=se.forwardRef(function(r,e){var t=se.useContext(pe),o=t.ctrlsFactory,a=t.context,s=t.gridOptionsService,i=t.resizeObserverService,u=t.clientSideRowModel,c=t.serverSideRowModel,t=se.useState(new P),n=t[0],l=t[1],t=se.useState(new P),p=t[0],f=t[1],t=se.useState(),m=t[0],d=t[1],t=se.useState(),h=t[0],C=t[1],g=se.useRef(),y=se.useRef(null),t=se.useMemo(function(){return n.toString()+" ag-details-row"},[n]),R=se.useMemo(function(){return p.toString()+" ag-details-grid"},[p]),e=(e&&se.useImperativeHandle(e,function(){return{refresh:function(){return g.current.refresh()}}}),fe(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.")}),fe(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()}}),se.useCallback(function(e,t){g.current.registerDetailWithMaster(e,t)},[]));return ue.createElement("div",{className:t,ref:y},m&&ue.createElement(E,ce({className:R},m,{rowData:h,setGridApi:e})))}),X=(n(d,q=ie.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=se.Component),C.prototype.render=function(){var t=this;return ue.createElement("div",{style:this.createStyleForDiv(),className:this.props.className,ref:function(e){t.eGridDiv=e}},this.portalManager.getPortals())},C.prototype.createStyleForDiv=function(){return ce({height:"100%"},this.props.containerStyle||{})},C.prototype.componentDidMount=function(){var e=this.props.modules||[],e={providedBeanInstances:{agGridReact:this,frameworkComponentWrapper:new Q(this,this.portalManager)},modules:e,frameworkOverrides:new X(!1)},t=this.props.gridOptions||{};this.gridOptions=ie.ComponentUtil.copyAttributesToGridOptions(t,this.props),this.checkForDeprecations(this.props),new ie.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&&ie._.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){ie.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]})}),ie.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=ce({},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&&ie.ComponentUtil.processOnChange(t,this.api),n},C.prototype.processAsynchronousChanges=function(e){var t=this;0<Object.keys(e).length&&window.setTimeout(function(){t.api&&ie.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(ie.ComponentUtil.EVENT_CALLBACKS,t.func),g(ie.ComponentUtil.BOOLEAN_PROPERTIES,t.bool),g(ie.ComponentUtil.STRING_PROPERTIES,t.string),g(ie.ComponentUtil.OBJECT_PROPERTIES,t.object),g(ie.ComponentUtil.ARRAY_PROPERTIES,t.array),g(ie.ComponentUtil.NUMBER_PROPERTIES,t.number),g(ie.ComponentUtil.FUNCTION_PROPERTIES,t.func);n(y,J=ie.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,Q=y;function y(e,t){var n=J.call(this)||this;return n.agGridReact=e,n.portalManager=t,n}n(v,R=se.Component),v.prototype.render=function(){return this.props.suppressReactUi?ue.createElement(h,ce({},this.props,{setGridApi:this.setGridApi})):ue.createElement(E,ce({},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})});

@@ -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,se,ie){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t;var ue="default"in se?se.default:se,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 ce=function(){return(ce=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 ie.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()}),se.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=se.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,N=o),u.prototype.init=function(e){var t=this;return this.eParentElement=this.createParentElement(e),this.params=e,this.createOrUpdatePortal(e),new ie.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=se.createElement(this.reactComponent,ce(ce({},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(se.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 N,k=u;function u(e,t,n){e=N.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 A=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 le(e){var t=se.useRef(e),n=se.useRef(),r=se.useRef(!1),o=se.useRef(!1),a=se.useState(0)[1];r.current&&(o.current=!0),se.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 ee(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(function(e){return null!=e&&""!==e}).join(" ")}var pe=ue.createContext({}),fe=function(e){var t=se.useRef(e),n=se.useRef(),r=se.useRef(!1),o=se.useRef(!1),a=se.useState(0)[1];r.current&&(o.current=!0),se.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=ce({},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 me(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 te(r,o){fe(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=se.forwardRef(function(n,e){var r=se.useContext(pe).context,o=se.useRef(null),t=se.useRef(null),a=se.useRef(null),s=se.useRef(null),i=se.useRef(null),u=se.useState(),c=u[0],l=u[1],u=se.useState(),p=u[0],f=u[1],u=se.useState(),m=u[0],d=u[1],u=se.useState(new P),h=u[0],C=u[1],u=se.useState(new P("ag-hidden")),g=u[0],y=u[1],u=se.useState(new P("ag-hidden")),R=u[0],E=u[1],u=se.useState(new P("ag-invisible")),v=u[0],S=u[1],u=(se.useImperativeHandle(e,function(){return{refresh:function(){return!1}}}),se.useEffect(function(){return _(c,r,t.current)},[c]),fe(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 ie.GroupCellRendererCtrl);return t.init(e,o.current,a.current,s.current,i.current,b,n),function(){r.destroyBean(t)}}),se.useMemo(function(){return"ag-cell-wrapper "+h.toString()},[h])),e=se.useMemo(function(){return"ag-group-expanded "+g.toString()},[g]),w=se.useMemo(function(){return"ag-group-contracted "+R.toString()},[R]),M=se.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=ie._.escapeString(m,!0);return ue.createElement("span",ce({className:u,ref:o},n.colDef?{}:{role:"gridcell"}),ue.createElement("span",{className:e,ref:s}),ue.createElement("span",{className:w,ref:i}),ue.createElement("span",{className:M,ref:a}),ue.createElement("span",{className:"ag-group-value",ref:t},I&&ue.createElement(ue.Fragment,null,m),O&&ue.createElement(T,ce({},c.params))),ue.createElement("span",{className:"ag-group-child-count"},p))}),F=se.memo(function(e){var t=se.useContext(pe).context,n=se.useState(),r=n[0],o=n[1],n=se.useState(),a=n[0],s=n[1],n=se.useState(),i=n[0],u=n[1],n=se.useState(),c=n[0],l=n[1],n=se.useState(),p=n[0],f=n[1],n=se.useState(),m=n[0],d=n[1],h=se.useRef(null),C=se.useRef(null),g=se.useRef(null),y=se.useRef(),R=e.ctrl,E=se.useMemo(function(){return new ie.CssClassManager(function(){return h.current})},[]),n=(le(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)}),se.useEffect(function(){return _(m,t,g.current,y)},[m]),se.useEffect(function(){R.setDragSource(h.current)},[m]),se.useMemo(function(){return{width:r}},[r])),e=se.useMemo(function(){return!!((null==m?void 0:m.componentFromFramework)&&me(m.componentClass))},[m]),v=m&&m.componentFromFramework,S=m&&m.componentClass;return ue.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},ue.createElement("div",{ref:C,className:"ag-header-cell-resize",role:"presentation"}),ue.createElement("div",{ref:g,className:"ag-header-cell-comp-wrapper",role:"presentation"},v&&e&&ue.createElement(S,ce({},m.params)),v&&!e&&ue.createElement(S,ce({},m.params,{ref:y}))))}),x=se.memo(function(e){var t=se.useContext(pe).context,n=se.useState(new P),r=n[0],o=n[1],n=se.useState(new P),a=n[0],s=n[1],n=se.useState("false"),i=n[0],u=n[1],n=se.useState(),c=n[0],l=n[1],n=se.useState(),p=n[0],f=n[1],n=se.useState(),m=n[0],d=n[1],n=se.useState(),h=n[0],C=n[1],n=se.useState(),g=n[0],y=n[1],R=se.useRef(null),E=se.useRef(null),v=e.ctrl,n=(fe(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)}),se.useEffect(function(){return _(g,t,R.current)},[g]),se.useEffect(function(){var t=void 0;R.current.childNodes.forEach(function(e){null!=e&&e!==E.current&&(t=e)}),t&&v.setDragSource(t)},[g]),se.useMemo(function(){return{width:c}},[c])),e=se.useMemo(function(){return"ag-header-group-cell "+r.toString()},[r]),S=se.useMemo(function(){return"ag-header-cell-resize "+a.toString()},[a]),w=g&&g.componentFromFramework,M=g&&g.componentClass;return ue.createElement("div",{ref:R,className:e,style:n,title:p,"col-id":m,role:"columnheader",tabIndex:-1,"aria-expanded":h},w&&ue.createElement(M,ce({},g.params)),ue.createElement("div",{ref:E,"aria-hidden":i,className:S}))}),B=se.memo(function(e){function t(e){R.current||null!=e&&(E.current&&E.current(e),R.current=!0)}var n=se.useContext(pe).context,r=se.useState(new P("ag-header-cell","ag-floating-filter")),o=r[0],a=r[1],r=se.useState(new P),s=r[0],i=r[1],r=se.useState(new P("ag-floating-filter-button","ag-hidden")),u=r[0],c=r[1],r=se.useState("false"),l=r[0],p=r[1],r=se.useState(),f=r[0],m=r[1],r=se.useState(),d=r[0],h=r[1],C=se.useRef(null),g=se.useRef(null),r=se.useRef(null),y=se.useRef(null),R=se.useRef(!1),E=se.useRef(),v=se.useRef(),S=(fe(function(){v.current=new ie.AgPromise(function(e){E.current=e})}),e.ctrl),e=(fe(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)}),se.useEffect(function(){return _(d,n,g.current,t)},[d]),se.useMemo(function(){return{width:f}},[f])),w=se.useMemo(function(){return o.toString()},[o]),M=se.useMemo(function(){return s.toString()},[s]),O=se.useMemo(function(){return u.toString()},[u]),T=se.useMemo(function(){return!!(d&&d.componentFromFramework&&me(d.componentClass))},[d]),I=d&&d.componentFromFramework,b=d&&d.componentClass;return ue.createElement("div",{ref:C,className:w,style:e,role:"gridcell",tabIndex:-1},ue.createElement("div",{ref:g,className:M,role:"presentation"},I&&T&&ue.createElement(b,ce({},d.params)),I&&!T&&ue.createElement(b,ce({},d.params,{ref:t}))),ue.createElement("div",{ref:r,"aria-hidden":l,className:O,role:"presentation"},ue.createElement("button",{ref:y,type:"button","aria-label":"Open Filter Menu",className:"ag-floating-filter-button-button",tabIndex:-1})))}),U=se.memo(function(e){var s=se.useContext(pe).gridOptionsService,t=se.useState(),n=t[0],r=t[1],t=se.useState(),o=t[0],a=t[1],t=se.useState(),i=t[0],u=t[1],t=se.useState(),c=t[0],l=t[1],t=se.useState(),p=t[0],f=t[1],t=se.useState([]),m=t[0],d=t[1],t=se.useRef(null),h=e.ctrl,C=h.getType()===ie.HeaderRowType.COLUMN,g=h.getType()===ie.HeaderRowType.COLUMN_GROUP,y=h.getType()===ie.HeaderRowType.FLOATING_FILTER,R=se.useCallback(function(e,t){var n,r,o=s.is("ensureDomOrder"),a=s.isDomLayout("print");return o||a?t:(n=ie._.mapById(e,function(e){return e.getInstanceId()}),r=ie._.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=(fe(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)}})}),se.useMemo(function(){return{transform:n,height:o,top:i,width:c}},[n,o,i,c])),E=se.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=se.useCallback(function(e){switch(h.getType()){case ie.HeaderRowType.COLUMN_GROUP:return ue.createElement(x,{ctrl:e,key:e.getInstanceId()});case ie.HeaderRowType.FLOATING_FILTER:return ue.createElement(B,{ctrl:e,key:e.getInstanceId()});default:return ue.createElement(F,{ctrl:e,key:e.getInstanceId()})}},[]);return ue.createElement("div",{ref:t,className:E,role:"row",style:e,"aria-rowindex":p},m.map(v))}),p=se.memo(function(n){function e(){return m.map(function(e){return ue.createElement(U,{ctrl:e,key:e.getInstanceId()})})}var t=se.useState(new P),r=t[0],o=t[1],t=se.useState(!1),a=t[0],s=t[1],t=se.useState(),i=t[0],u=t[1],t=se.useState(),c=t[0],l=t[1],t=se.useState(),p=t[0],f=t[1],t=se.useState([]),m=t[0],d=t[1],h=se.useContext(pe).context,C=se.useRef(null),t="left"===n.pinned,g="right"===n.pinned,y=!t&&!g,R=(fe(function(){var e={setDisplayed:function(t){o(function(e){return e.setClass("ag-hidden",!t)}),s(!t)},setCtrls:function(e){return d(e)},setCenterWidth:function(e){return u(e)},setContainerTransform:function(e){return l(e)},setPinnedContainerWidth:function(e){return f(e)}},t=h.createBean(new ie.HeaderRowContainerCtrl(n.pinned));return t.setComp(e,C.current),function(){h.destroyBean(t)}}),se.useMemo(function(){return r.toString()},[r])),E=se.useMemo(function(){return{width:i,transform:c}},[i,c]),v=se.useMemo(function(){return{width:p,minWidth:p,maxWidth:p}},[p]);return ue.createElement(ue.Fragment,null,t&&ue.createElement("div",{ref:C,className:"ag-pinned-left-header "+R,"aria-hidden":a,role:"presentation",style:v},e()),g&&ue.createElement("div",{ref:C,className:"ag-pinned-right-header "+R,"aria-hidden":a,role:"presentation",style:v},e()),y&&ue.createElement("div",{ref:C,className:"ag-header-viewport "+R,role:"presentation"},ue.createElement("div",{className:"ag-header-container",role:"rowgroup",style:E},e())))}),ne=se.memo(function(){var e=se.useState(new P),t=e[0],r=e[1],e=se.useState(),n=e[0],o=e[1],a=se.useContext(pe).context,s=se.useRef(null),e=(fe(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 ie.GridHeaderCtrl);return t.setComp(e,s.current,s.current),function(){a.destroyBean(t)}}),se.useMemo(function(){return"ag-header "+t.toString()},[t])),i=se.useMemo(function(){return{height:n,minHeight:n}},[n]);return ue.createElement("div",{ref:s,className:e,style:i,role:"presentation"},ue.createElement(p,{pinned:"left"}),ue.createElement(p,{pinned:null}),ue.createElement(p,{pinned:"right"}))}),de=se.memo(function(u){var e=se.useState(),t=e[0],c=e[1],e=se.useContext(pe),l=e.context,p=e.popupService,f=e.localeService,m=e.gridOptionsService;return fe(function(){var e=u.editDetails,t=u.cellCtrl,n=u.eParentCell,r=e.compDetails,o=m.is("stopEditingWhenCellsLoseFocus"),a=l.createBean(new ie.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)}}),ue.createElement(ue.Fragment,null,t&&u.wrappedContent&&r.createPortal(u.wrappedContent,t.getGui()))}),L=se.memo(function(e){function t(){return ue.createElement(ue.Fragment,null,null!=E&&(i=S,u=ae,c=O,l=A,p=oe,f=te,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,ue.createElement(ue.Fragment,null,l?ue.createElement("span",{role:"presentation",id:"cell-"+u,className:"ag-cell-value",ref:f},y()):y())),null!=v&&(s=v,l=re,u=ne,f=M.current,e=R,t=Z,n=s.compDetails,r=n.componentClass,o=n.componentFromFramework&&!s.popup,a=n.componentFromFramework&&s.popup,n=!n.componentFromFramework&&s.popup,ue.createElement(ue.Fragment,null,o&&ue.createElement(r,ce({},s.compDetails.params,{ref:l})),a&&ue.createElement(de,{editDetails:s,cellCtrl:e,eParentCell:f,wrappedContent:ue.createElement(r,ce({},s.compDetails.params,{ref:u}))}),n&&t&&ue.createElement(de,{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 ue.createElement(ue.Fragment,null,d&&ue.createElement(ue.Fragment,null,g),h&&!p&&ue.createElement(C,ce({},m.params,{key:i,ref:c})),h&&p&&ue.createElement(C,ce({},m.params,{key:i})))}}var n,r,o,a,s,i,u,c=se.useContext(pe).context,R=e.cellCtrl,l=e.printLayout,p=e.editingRow,e=se.useState(),E=e[0],f=e[1],e=se.useState(),v=e[0],m=e[1],e=se.useState(1),S=e[0],d=e[1],e=se.useState(),_=e[0],x=e[1],e=se.useState(),B=e[0],U=e[1],e=se.useState(),L=e[0],H=e[1],e=se.useState(),W=e[0],j=e[1],e=se.useState(),V=e[0],K=e[1],e=se.useState(),Y=e[0],q=e[1],e=se.useState(!1),h=e[0],z=e[1],e=se.useState(!1),C=e[0],$=e[1],e=se.useState(!1),g=e[0],X=e[1],e=se.useState(),Z=e[0],y=e[1],w=se.useMemo(function(){return R.isForceWrapper()},[]),M=se.useRef(null),O=se.useRef(null),T=se.useRef(),I=se.useRef(),b=se.useRef(),e=se.useState(0),J=e[0],Q=e[1],e=se.useCallback(function(e){b.current=e,Q(function(e){return e+1})},[]),P=se.useRef(),N=se.useState(0),k=N[0],ee=N[1],te=se.useCallback(function(e){P.current=e,ee(function(e){return e+1})},[]),A=w||null!=E&&(h||g||C),G=se.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.",ie._.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.",ie._.doOnce(function(){return console.warn(a)},"jsEditorComp-getPopupPosition-"+r.getColumn().getColId())),t.isCancelBeforeStart)&&t.isCancelBeforeStart()&&setTimeout(function(){R.stopEditing(!0),R.focusCell(!0)})},[]),ne=se.useCallback(function(e){return G(!0,e)},[]),re=se.useCallback(function(e){return G(!1,e)},[]),F=se.useMemo(function(){return new ie.CssClassManager(function(){return M.current})},[]),D=(n=E,r=A,o=P.current,N=k,a=T,s=M,k=se.useContext(pe),i=k.context,k.userComponentFactory,u=se.useCallback(function(){var e,t=a.current;t&&((e=t.getGui())&&e.parentElement&&e.parentElement.removeChild(e),i.destroyBean(t),a.current=void 0)},[]),se.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,N]),fe(function(){return u}),se.useRef()),oe=(se.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]),se.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]),se.useEffect(function(){if(R&&c){var n,e,t="cell-"+R.getInstanceId(),r=[];if(r.push(t),b.current&&A)return n=[],t=function(e){var t;return e&&(t=e.getGui(),b.current.insertAdjacentElement("afterbegin",t),n.push(function(){c.destroyBean(e),ie._.removeFromParent(t)})),e},h&&(e=R.createSelectionCheckbox(),r.push(e.getCheckboxId()),t(e)),g&&t(R.createDndSource()),C&&t(R.createRowDragComp()),H(r.join(" ")),function(){return n.forEach(function(e){return e()})}}},[A,g,C,h,J]),le(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 U(e)},setRole:function(e){return j(e)},setColId:function(e){return K(e)},setTitle:function(e){return q(e)},setIncludeSelection:function(e){return z(e)},setIncludeRowDrag:function(e){return $(e)},setIncludeDndSource:function(e){return X(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))}),se.useMemo(function(){return!!(E&&E.compDetails&&E.compDetails.componentFromFramework&&me(E.compDetails.componentClass))},[E])),ae=(se.useEffect(function(){var e;M.current&&(F.addOrRemoveCssClass("ag-cell-value",!A),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)}),se.useMemo(function(){return R.getInstanceId()},[]));return ue.createElement("div",{ref:M,style:_,tabIndex:B,role:W,"col-id":V,title:Y,"aria-describedby":L},A?ue.createElement("div",{className:"ag-cell-wrapper",role:"presentation","aria-hidden":"true",ref:e},t()):t())}),H=se.memo(function(e){var t=se.useContext(pe).context,n=e.rowCtrl,r=e.containerType,e=se.useState(),o=e[0],a=e[1],e=se.useState(),s=e[0],i=e[1],e=se.useState(),u=e[0],c=e[1],e=se.useState(),l=e[0],p=e[1],e=se.useState(),f=e[0],m=e[1],e=se.useState(),d=e[0],h=e[1],e=se.useState({list:[],instanceIdMap:new Map}),C=e[0],g=e[1],e=se.useState(),y=e[0],R=e[1],e=se.useState(!1),E=e[0],v=e[1],e=se.useState(n.getInitialRowTop(r)),S=e[0],w=e[1],e=se.useState(n.getInitialTransform(r)),M=e[0],O=e[1],T=se.useRef(null),I=se.useRef(),b=se.useRef(!1),e=se.useState(0),P=e[0],N=e[1],k=(se.useEffect(function(){var e;b.current||!y||10<P||((e=null==(e=T.current)?void 0:e.firstChild)?(n.setupDetailRowAutoHeight(e),b.current=!0):N(function(e){return e+1}))},[y,P]),se.useMemo(function(){return new ie.CssClassManager(function(){return T.current})},[])),e=(le(function(){if(n.isAlive())return n.setComp({setTop:function(e){return w(e)},setTransform:function(e){return O(e)},addOrRemoveCssClass:function(e,t){return k.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)}}),se.useEffect(function(){return _(y,t,T.current,I)},[y]),se.useMemo(function(){var e={top:S,transform:M};return Object.assign(e,d),e},[S,M,d])),A=y&&y.componentFromFramework,G=null!=C,F=se.useMemo(function(){return!!((null==y?void 0:y.componentFromFramework)&&me(y.componentClass))},[y]);return ue.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 ue.createElement(L,{cellCtrl:e,editingRow:n.isEditing(),printLayout:n.isPrintLayout(),key:e.getInstanceId()})}),A&&(u=y.componentClass,ue.createElement(ue.Fragment,null,F&&ue.createElement(u,ce({},y.params)),!F&&ue.createElement(u,ce({},y.params,{ref:I})))))}),re=se.memo(function(e){function t(){return ue.createElement("div",{className:E,ref:y,role:u.length?"rowgroup":"presentation",style:O},s.map(function(e){return ue.createElement(H,{rowCtrl:e,containerType:h,key:e.getInstanceId()})}))}var r=se.useContext(pe).context,n=se.useState(""),o=n[0],a=n[1],n=se.useState([]),s=n[0],i=n[1],n=se.useState([]),u=n[0],c=n[1],n=se.useState(!1),l=n[0],p=n[1],n=se.useState(""),f=n[0],m=n[1],d=e.name,h=se.useMemo(function(){return ie.getRowContainerTypeForName(d)},[d]),C=se.useRef(null),g=se.useRef(null),y=se.useRef(null),R=se.useMemo(function(){return ie.RowContainerCtrl.getRowContainerCssClasses(d)},[d]),n=se.useMemo(function(){return ee(R.wrapper)},[]),e=se.useMemo(function(){return ee(R.viewport)},[]),E=se.useMemo(function(){return ee(R.container)},[]),v=d===ie.RowContainerName.CENTER,S=d===ie.RowContainerName.TOP_CENTER||d===ie.RowContainerName.BOTTOM_CENTER||d===ie.RowContainerName.STICKY_TOP_CENTER,w=!v&&!S,M=(te(" AG Row Container "+d+" ",v?C:S?g:y),se.useEffect(function(){i(function(e){var t;return l?u:(t=e.filter(function(e){return 0<=u.indexOf(e)}),e=u.filter(function(e){return t.indexOf(e)<0}),D(t,e))})},[l,u]),fe(function(){var e=[],t={setViewportHeight:a,setRowCtrls:function(e){return c(e)},setDomOrder:function(e){return p(e)},setContainerWidth:function(e){return m(e)}},n=r.createBean(new ie.RowContainerCtrl(d));return e.push(n),n.setComp(t,y.current,g.current,C.current),function(){r.destroyBeans(e)}}),se.useMemo(function(){return{height:o}},[o])),O=se.useMemo(function(){return{width:f}},[f]);return ue.createElement(ue.Fragment,null,v&&ue.createElement("div",{className:n,ref:C,role:"presentation"},ue.createElement("div",{className:e,ref:g,role:"presentation",style:M},t())),S&&ue.createElement("div",{className:e,ref:g,role:"presentation",style:M},t()),w&&t())}),W=se.memo(function(){function o(e){return ue.createElement(re,{name:e,key:e+"-container"})}function e(e){var t=e.section,n=e.children,r=e.className,e=e.style;return ue.createElement("div",{ref:t,className:r,role:"presentation",style:e},n.map(o))}var t=se.useContext(pe),a=t.context,s=t.agStackComponentsRegistry,i=t.resizeObserverService,t=se.useState(""),n=t[0],u=t[1],t=se.useState(0),r=t[0],c=t[1],t=se.useState(0),l=t[0],p=t[1],t=se.useState(0),f=t[0],m=t[1],t=se.useState(0),d=t[0],h=t[1],t=se.useState("0px"),C=t[0],g=t[1],t=se.useState("0px"),y=t[0],R=t[1],t=se.useState("100%"),E=t[0],v=t[1],t=se.useState(""),S=t[0],_=t[1],t=se.useState(""),w=t[0],x=t[1],t=se.useState(""),M=t[0],B=t[1],t=se.useState(null),O=t[0],U=t[1],t=se.useState(null),T=t[0],L=t[1],t=se.useState(""),I=t[0],H=t[1],t=se.useState(null),b=t[0],W=t[1],t=se.useState("ag-layout-normal"),P=t[0],j=t[1],N=se.useRef(null),k=se.useRef(null),A=se.useRef(null),G=se.useRef(null),F=se.useRef(null),D=se.useRef(null),t=(te(" AG Grid Body ",N),te(" AG Pinned Top ",k),te(" AG Sticky Top ",A),te(" AG Middle ",F),te(" AG Pinned Bottom ",D),fe(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},N.current.appendChild(document.createComment(" AG Fake Horizontal Scroll ")),N.current.appendChild(e("AG-FAKE-HORIZONTAL-SCROLL").getGui()),N.current.appendChild(document.createComment(" AG Overlay Wrapper ")),N.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:_,setBottomDisplay:x,setColumnMovingCss:U,updateLayoutClasses:j,setAlwaysVerticalScrollClass:L,setPinnedTopBottomOverflowY:H,setCellSelectableCss:W,setBodyViewportWidth:B,registerBodyViewportResizeListener:function(e){var t=i.observeResize(F.current,e);r.push(function(){return t()})}},t=a.createBean(new ie.GridBodyCtrl),n.push(t),t.setComp(e,N.current,F.current,k.current,D.current,A.current),function(){a.destroyBeans(n),r.forEach(function(e){return e()})}}),se.useMemo(function(){return ee("ag-root","ag-unselectable",O,P)},[O,P])),V=se.useMemo(function(){return ee("ag-body-viewport",n,P,T,b)},[n,P,T,b]),K=se.useMemo(function(){return ee("ag-body",P)},[P]),Y=se.useMemo(function(){return ee("ag-body-clipper",P)},[P]),q=se.useMemo(function(){return ee("ag-floating-top",b)},[b]),z=se.useMemo(function(){return ee("ag-sticky-top",b)},[b]),$=se.useMemo(function(){return ee("ag-floating-bottom",b)},[b]),X=se.useMemo(function(){return{height:f,minHeight:f,display:S,overflowY:I}},[f,S,I]),Z=se.useMemo(function(){return{height:C,top:y,width:E}},[C,y,E]),J=se.useMemo(function(){return{height:d,minHeight:d,display:w,overflowY:I}},[d,w,I]),Q=se.useMemo(function(){return{width:M}},[M]);return ue.createElement("div",{ref:N,className:t,role:"treegrid","aria-colcount":r,"aria-rowcount":l},ue.createElement(ne,null),e({section:k,className:q,style:X,children:[ie.RowContainerName.TOP_LEFT,ie.RowContainerName.TOP_CENTER,ie.RowContainerName.TOP_RIGHT,ie.RowContainerName.TOP_FULL_WIDTH]}),ue.createElement("div",{className:K,ref:G,role:"presentation"},ue.createElement("div",{className:Y,role:"presentation"},e({section:F,className:V,style:Q,children:[ie.RowContainerName.LEFT,ie.RowContainerName.CENTER,ie.RowContainerName.RIGHT,ie.RowContainerName.FULL_WIDTH]}))),e({section:A,className:z,style:Z,children:[ie.RowContainerName.STICKY_TOP_LEFT,ie.RowContainerName.STICKY_TOP_CENTER,ie.RowContainerName.STICKY_TOP_RIGHT,ie.RowContainerName.STICKY_TOP_FULL_WIDTH]}),e({section:D,className:$,style:J,children:[ie.RowContainerName.BOTTOM_LEFT,ie.RowContainerName.BOTTOM_CENTER,ie.RowContainerName.BOTTOM_RIGHT,ie.RowContainerName.BOTTOM_FULL_WIDTH]}))}),o=se.forwardRef(function(e,t){function n(e){return ue.createElement("div",{className:"ag-tab-guard ag-tab-guard-"+e,role:"presentation",tabIndex:p,ref:"top"===e?u:c})}var r=e.children,o=e.eFocusableElement,a=e.onTabKeyDown,s=e.gridCtrl,i=se.useContext(pe).context,u=se.useRef(null),c=se.useRef(null),l=se.useRef(),e=se.useState(),p=e[0],f=e[1];se.useImperativeHandle(t,function(){return{forceFocusOutOfContainer:function(){l.current.forceFocusOutOfContainer()}}}),fe(function(){var e=u.current,t=c.current,n=l.current=i.createBean(new ie.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 ue.createElement(ue.Fragment,null,n("top"),r,n("bottom"))}),j=se.memo(o),V=se.memo(function(e){var p=e.context,e=se.useState(""),t=e[0],n=e[1],e=se.useState(""),r=e[0],o=e[1],e=se.useState(""),a=e[0],s=e[1],e=se.useState(null),i=e[0],u=e[1],e=se.useState(null),c=e[0],l=e[1],e=se.useState(!1),f=e[0],m=e[1],e=se.useState(),d=e[0],h=e[1],C=se.useRef(null),g=se.useRef(null),y=se.useRef(),R=se.useRef(null),E=se.useRef(function(){}),e=se.useCallback(function(){},[]),v=se.useMemo(function(){return p.getBean("beans")},[]),S=(te(" AG Grid ",g),fe(function(){var e=C.current=p.createBean(new ie.GridCtrl);return function(){p.destroyBean(e),C.current=null}}),fe(function(){var e=C.current,t=(E.current=e.focusInnerElement.bind(e),{destroyGridUi:function(){},setRtlClass:n,addOrRemoveKeyboardFocusClass:function(e){return o(e?ie.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");return t&&e.push(t),n&&e.push(n),e},setCursor:u,setUserSelect:l});e.setComp(t,g.current,g.current),m(!0)}),se.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]),se.useMemo(function(){return ee("ag-root-wrapper",t,r,a)},[t,r,a])),w=se.useMemo(function(){return ee("ag-root-wrapper-body","ag-focus-managed",a)},[a]),M=se.useMemo(function(){return{userSelect:null!=c?c:"",WebkitUserSelect:null!=c?c:"",cursor:null!=i?i:""}},[c,i]),O=R.current,T=se.useCallback(function(e){y.current=e,h(!0)},[]);return ue.createElement("div",{ref:g,className:S,style:M,role:"presentation"},ue.createElement("div",{className:w,ref:R,role:"presentation"},f&&O&&ue.createElement(pe.Provider,{value:v},ue.createElement(j,{ref:T,eFocusableElement:O,onTabKeyDown:e,gridCtrl:C.current},ue.createElement(W,null)))))});n(f,K=se.Component),f.prototype.render=function(){return this.state.context,this.state.context&&(this.renderedAfterMount=!0),ue.createElement("div",{style:this.createStyleForDiv(),className:this.props.className,ref:this.eGui},this.state.context&&ue.createElement(V,{context:this.state.context}),this.portalManager.getPortals())},f.prototype.createStyleForDiv=function(){return ce({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=ie.ComponentUtil.copyAttributesToGridOptions(this.gridOptions,this.props),this.checkForDeprecations(this.props),(new ie.GridCoreCreator).create(this.eGui.current,this.gridOptions,function(e){t.setState({context:e}),e.getBean(ie.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(ie.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&&ie._.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){ie.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]})}),ie.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 ie.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=ue.createRef(),t.whenReadyFuncs=[],t.ready=!1,t.renderedAfterMount=!1,t.mounted=!1,t.state={context:void 0},t.portalManager=new A(t,e.componentWrappingElement,e.maxComponentCreationTimeMs),t.destroyFuncs.push(function(){return t.portalManager.destroy()}),t}n(m,Y=ie.BaseComponentWrapper),m.prototype.createWrapper=function(e,t){return new k(e,this.parent,t)};var Y,q=m;function m(e){var t=Y.call(this)||this;return t.parent=e,t}var z,$=se.forwardRef(function(r,e){var t=se.useContext(pe),o=t.ctrlsFactory,a=t.context,s=t.gridOptionsService,i=t.resizeObserverService,u=t.clientSideRowModel,c=t.serverSideRowModel,t=se.useState(new P),n=t[0],l=t[1],t=se.useState(new P),p=t[0],f=t[1],t=se.useState(),m=t[0],d=t[1],t=se.useState(),h=t[0],C=t[1],g=se.useRef(),y=se.useRef(null),t=se.useMemo(function(){return n.toString()+" ag-details-row"},[n]),R=se.useMemo(function(){return p.toString()+" ag-details-grid"},[p]),e=(e&&se.useImperativeHandle(e,function(){return{refresh:function(){return g.current.refresh()}}}),fe(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.")}),fe(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()}}),se.useCallback(function(e,t){g.current.registerDetailWithMaster(e,t)},[]));return ue.createElement("div",{className:t,ref:y},m&&ue.createElement(E,ce({className:R},m,{rowData:h,setGridApi:e})))}),X=(n(d,z=ie.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=se.Component),C.prototype.render=function(){var t=this;return ue.createElement("div",{style:this.createStyleForDiv(),className:this.props.className,ref:function(e){t.eGridDiv=e}},this.portalManager.getPortals())},C.prototype.createStyleForDiv=function(){return ce({height:"100%"},this.props.containerStyle||{})},C.prototype.componentDidMount=function(){var e=this.props.modules||[],e={providedBeanInstances:{agGridReact:this,frameworkComponentWrapper:new Q(this,this.portalManager)},modules:e,frameworkOverrides:new X(!1)},t=this.props.gridOptions||{};this.gridOptions=ie.ComponentUtil.copyAttributesToGridOptions(t,this.props),this.checkForDeprecations(this.props),new ie.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&&ie._.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){ie.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]})}),ie.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=ce({},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&&ie.ComponentUtil.processOnChange(t,this.api),n},C.prototype.processAsynchronousChanges=function(e){var t=this;0<Object.keys(e).length&&window.setTimeout(function(){t.api&&ie.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 A(t,e.componentWrappingElement,e.maxComponentCreationTimeMs),t}function g(e,t){e.forEach(function(e){h[e]=t})}h.propTypes={gridOptions:t.object},g(ie.ComponentUtil.EVENT_CALLBACKS,t.func),g(ie.ComponentUtil.BOOLEAN_PROPERTIES,t.bool),g(ie.ComponentUtil.STRING_PROPERTIES,t.string),g(ie.ComponentUtil.OBJECT_PROPERTIES,t.object),g(ie.ComponentUtil.ARRAY_PROPERTIES,t.array),g(ie.ComponentUtil.NUMBER_PROPERTIES,t.number),g(ie.ComponentUtil.FUNCTION_PROPERTIES,t.func);n(y,J=ie.BaseComponentWrapper),y.prototype.createWrapper=function(e,t){return this.agGridReact.isLegacyComponentRendering()?new I(e,this.agGridReact,this.portalManager,t):new k(e,this.portalManager,t)};var J,Q=y;function y(e,t){var n=J.call(this)||this;return n.agGridReact=e,n.portalManager=t,n}n(v,R=se.Component),v.prototype.render=function(){return this.props.suppressReactUi?ue.createElement(h,ce({},this.props,{setGridApi:this.setGridApi})):ue.createElement(E,ce({},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,S,r,se,ie){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t;var ue="default"in se?se.default:se,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 ce=function(){return(ce=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 ie.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()}),se.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=se.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 ie.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=se.createElement(this.reactComponent,ce(ce({},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(se.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 le(e){var t=se.useRef(e),n=se.useRef(),r=se.useRef(!1),o=se.useRef(!1),a=se.useState(0)[1];r.current&&(o.current=!0),se.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 ee(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(function(e){return null!=e&&""!==e}).join(" ")}var pe=ue.createContext({}),fe=function(e){var t=se.useRef(e),n=se.useRef(),r=se.useRef(!1),o=se.useRef(!1),a=se.useState(0)[1];r.current&&(o.current=!0),se.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=ce({},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 me(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 te(r,o){fe(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=se.forwardRef(function(n,e){var r=se.useContext(pe).context,o=se.useRef(null),t=se.useRef(null),a=se.useRef(null),s=se.useRef(null),i=se.useRef(null),u=se.useState(),c=u[0],l=u[1],u=se.useState(),p=u[0],f=u[1],u=se.useState(),m=u[0],d=u[1],u=se.useState(new P),h=u[0],C=u[1],u=se.useState(new P("ag-hidden")),g=u[0],y=u[1],u=se.useState(new P("ag-hidden")),R=u[0],E=u[1],u=se.useState(new P("ag-invisible")),v=u[0],S=u[1],u=(se.useImperativeHandle(e,function(){return{refresh:function(){return!1}}}),se.useEffect(function(){return _(c,r,t.current)},[c]),fe(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 ie.GroupCellRendererCtrl);return t.init(e,o.current,a.current,s.current,i.current,b,n),function(){r.destroyBean(t)}}),se.useMemo(function(){return"ag-cell-wrapper "+h.toString()},[h])),e=se.useMemo(function(){return"ag-group-expanded "+g.toString()},[g]),w=se.useMemo(function(){return"ag-group-contracted "+R.toString()},[R]),M=se.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=ie._.escapeString(m,!0);return ue.createElement("span",ce({className:u,ref:o},n.colDef?{}:{role:"gridcell"}),ue.createElement("span",{className:e,ref:s}),ue.createElement("span",{className:w,ref:i}),ue.createElement("span",{className:M,ref:a}),ue.createElement("span",{className:"ag-group-value",ref:t},I&&ue.createElement(ue.Fragment,null,m),T&&ue.createElement(O,ce({},c.params))),ue.createElement("span",{className:"ag-group-child-count"},p))}),F=se.memo(function(e){var t=se.useContext(pe).context,n=se.useState(),r=n[0],o=n[1],n=se.useState(),a=n[0],s=n[1],n=se.useState(),i=n[0],u=n[1],n=se.useState(),c=n[0],l=n[1],n=se.useState(),p=n[0],f=n[1],n=se.useState(),m=n[0],d=n[1],h=se.useRef(null),C=se.useRef(null),g=se.useRef(null),y=se.useRef(),R=e.ctrl,E=se.useMemo(function(){return new ie.CssClassManager(function(){return h.current})},[]),n=(le(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)}),se.useEffect(function(){return _(m,t,g.current,y)},[m]),se.useEffect(function(){R.setDragSource(h.current)},[m]),se.useMemo(function(){return{width:r}},[r])),e=se.useMemo(function(){return!!((null==m?void 0:m.componentFromFramework)&&me(m.componentClass))},[m]),v=m&&m.componentFromFramework,S=m&&m.componentClass;return ue.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},ue.createElement("div",{ref:C,className:"ag-header-cell-resize",role:"presentation"}),ue.createElement("div",{ref:g,className:"ag-header-cell-comp-wrapper",role:"presentation"},v&&e&&ue.createElement(S,ce({},m.params)),v&&!e&&ue.createElement(S,ce({},m.params,{ref:y}))))}),x=se.memo(function(e){var t=se.useContext(pe).context,n=se.useState(new P),r=n[0],o=n[1],n=se.useState(new P),a=n[0],s=n[1],n=se.useState("false"),i=n[0],u=n[1],n=se.useState(),c=n[0],l=n[1],n=se.useState(),p=n[0],f=n[1],n=se.useState(),m=n[0],d=n[1],n=se.useState(),h=n[0],C=n[1],n=se.useState(),g=n[0],y=n[1],R=se.useRef(null),E=se.useRef(null),v=e.ctrl,n=(fe(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)}),se.useEffect(function(){return _(g,t,R.current)},[g]),se.useEffect(function(){var t=void 0;R.current.childNodes.forEach(function(e){null!=e&&e!==E.current&&(t=e)}),t&&v.setDragSource(t)},[g]),se.useMemo(function(){return{width:c}},[c])),e=se.useMemo(function(){return"ag-header-group-cell "+r.toString()},[r]),S=se.useMemo(function(){return"ag-header-cell-resize "+a.toString()},[a]),w=g&&g.componentFromFramework,M=g&&g.componentClass;return ue.createElement("div",{ref:R,className:e,style:n,title:p,"col-id":m,role:"columnheader",tabIndex:-1,"aria-expanded":h},w&&ue.createElement(M,ce({},g.params)),ue.createElement("div",{ref:E,"aria-hidden":i,className:S}))}),B=se.memo(function(e){function t(e){R.current||null!=e&&(E.current&&E.current(e),R.current=!0)}var n=se.useContext(pe).context,r=se.useState(new P("ag-header-cell","ag-floating-filter")),o=r[0],a=r[1],r=se.useState(new P),s=r[0],i=r[1],r=se.useState(new P("ag-floating-filter-button","ag-hidden")),u=r[0],c=r[1],r=se.useState("false"),l=r[0],p=r[1],r=se.useState(),f=r[0],m=r[1],r=se.useState(),d=r[0],h=r[1],C=se.useRef(null),g=se.useRef(null),r=se.useRef(null),y=se.useRef(null),R=se.useRef(!1),E=se.useRef(),v=se.useRef(),S=(fe(function(){v.current=new ie.AgPromise(function(e){E.current=e})}),e.ctrl),e=(fe(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)}),se.useEffect(function(){return _(d,n,g.current,t)},[d]),se.useMemo(function(){return{width:f}},[f])),w=se.useMemo(function(){return o.toString()},[o]),M=se.useMemo(function(){return s.toString()},[s]),T=se.useMemo(function(){return u.toString()},[u]),O=se.useMemo(function(){return!!(d&&d.componentFromFramework&&me(d.componentClass))},[d]),I=d&&d.componentFromFramework,b=d&&d.componentClass;return ue.createElement("div",{ref:C,className:w,style:e,role:"gridcell",tabIndex:-1},ue.createElement("div",{ref:g,className:M,role:"presentation"},I&&O&&ue.createElement(b,ce({},d.params)),I&&!O&&ue.createElement(b,ce({},d.params,{ref:t}))),ue.createElement("div",{ref:r,"aria-hidden":l,className:T,role:"presentation"},ue.createElement("button",{ref:y,type:"button","aria-label":"Open Filter Menu",className:"ag-floating-filter-button-button",tabIndex:-1})))}),U=se.memo(function(e){var s=se.useContext(pe).gridOptionsService,t=se.useState(),n=t[0],r=t[1],t=se.useState(),o=t[0],a=t[1],t=se.useState(),i=t[0],u=t[1],t=se.useState(),c=t[0],l=t[1],t=se.useState(),p=t[0],f=t[1],t=se.useState([]),m=t[0],d=t[1],t=se.useRef(null),h=e.ctrl,C=h.getType()===ie.HeaderRowType.COLUMN,g=h.getType()===ie.HeaderRowType.COLUMN_GROUP,y=h.getType()===ie.HeaderRowType.FLOATING_FILTER,R=se.useCallback(function(e,t){var n,r,o=s.is("ensureDomOrder"),a=s.isDomLayout("print");return o||a?t:(n=ie._.mapById(e,function(e){return e.getInstanceId()}),r=ie._.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=(fe(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)}})}),se.useMemo(function(){return{transform:n,height:o,top:i,width:c}},[n,o,i,c])),E=se.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=se.useCallback(function(e){switch(h.getType()){case ie.HeaderRowType.COLUMN_GROUP:return ue.createElement(x,{ctrl:e,key:e.getInstanceId()});case ie.HeaderRowType.FLOATING_FILTER:return ue.createElement(B,{ctrl:e,key:e.getInstanceId()});default:return ue.createElement(F,{ctrl:e,key:e.getInstanceId()})}},[]);return ue.createElement("div",{ref:t,className:E,role:"row",style:e,"aria-rowindex":p},m.map(v))}),p=se.memo(function(n){function e(){return m.map(function(e){return ue.createElement(U,{ctrl:e,key:e.getInstanceId()})})}var t=se.useState(new P),r=t[0],o=t[1],t=se.useState(!1),a=t[0],s=t[1],t=se.useState(),i=t[0],u=t[1],t=se.useState(),c=t[0],l=t[1],t=se.useState(),p=t[0],f=t[1],t=se.useState([]),m=t[0],d=t[1],h=se.useContext(pe).context,C=se.useRef(null),t="left"===n.pinned,g="right"===n.pinned,y=!t&&!g,R=(fe(function(){var e={setDisplayed:function(t){o(function(e){return e.setClass("ag-hidden",!t)}),s(!t)},setCtrls:function(e){return d(e)},setCenterWidth:function(e){return u(e)},setContainerTransform:function(e){return l(e)},setPinnedContainerWidth:function(e){return f(e)}},t=h.createBean(new ie.HeaderRowContainerCtrl(n.pinned));return t.setComp(e,C.current),function(){h.destroyBean(t)}}),se.useMemo(function(){return r.toString()},[r])),E=se.useMemo(function(){return{width:i,transform:c}},[i,c]),v=se.useMemo(function(){return{width:p,minWidth:p,maxWidth:p}},[p]);return ue.createElement(ue.Fragment,null,t&&ue.createElement("div",{ref:C,className:"ag-pinned-left-header "+R,"aria-hidden":a,role:"presentation",style:v},e()),g&&ue.createElement("div",{ref:C,className:"ag-pinned-right-header "+R,"aria-hidden":a,role:"presentation",style:v},e()),y&&ue.createElement("div",{ref:C,className:"ag-header-viewport "+R,role:"presentation"},ue.createElement("div",{className:"ag-header-container",role:"rowgroup",style:E},e())))}),ne=se.memo(function(){var e=se.useState(new P),t=e[0],r=e[1],e=se.useState(),n=e[0],o=e[1],a=se.useContext(pe).context,s=se.useRef(null),e=(fe(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 ie.GridHeaderCtrl);return t.setComp(e,s.current,s.current),function(){a.destroyBean(t)}}),se.useMemo(function(){return"ag-header "+t.toString()},[t])),i=se.useMemo(function(){return{height:n,minHeight:n}},[n]);return ue.createElement("div",{ref:s,className:e,style:i,role:"presentation"},ue.createElement(p,{pinned:"left"}),ue.createElement(p,{pinned:null}),ue.createElement(p,{pinned:"right"}))}),de=se.memo(function(u){var e=se.useState(),t=e[0],c=e[1],e=se.useContext(pe),l=e.context,p=e.popupService,f=e.localeService,m=e.gridOptionsService;return fe(function(){var e=u.editDetails,t=u.cellCtrl,n=u.eParentCell,r=e.compDetails,o=m.is("stopEditingWhenCellsLoseFocus"),a=l.createBean(new ie.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)}}),ue.createElement(ue.Fragment,null,t&&u.wrappedContent&&r.createPortal(u.wrappedContent,t.getGui()))}),L=se.memo(function(e){function t(){return ue.createElement(ue.Fragment,null,null!=E&&(i=S,u=ae,c=T,l=k,p=oe,f=te,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,ue.createElement(ue.Fragment,null,l?ue.createElement("span",{role:"presentation",id:"cell-"+u,className:"ag-cell-value",ref:f},y()):y())),null!=v&&(s=v,l=re,u=ne,f=M.current,e=R,t=Z,n=s.compDetails,r=n.componentClass,o=n.componentFromFramework&&!s.popup,a=n.componentFromFramework&&s.popup,n=!n.componentFromFramework&&s.popup,ue.createElement(ue.Fragment,null,o&&ue.createElement(r,ce({},s.compDetails.params,{ref:l})),a&&ue.createElement(de,{editDetails:s,cellCtrl:e,eParentCell:f,wrappedContent:ue.createElement(r,ce({},s.compDetails.params,{ref:u}))}),n&&t&&ue.createElement(de,{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 ue.createElement(ue.Fragment,null,d&&ue.createElement(ue.Fragment,null,g),h&&!p&&ue.createElement(C,ce({},m.params,{key:i,ref:c})),h&&p&&ue.createElement(C,ce({},m.params,{key:i})))}}var n,r,o,a,s,i,u,c=se.useContext(pe).context,R=e.cellCtrl,l=e.printLayout,p=e.editingRow,e=se.useState(),E=e[0],f=e[1],e=se.useState(),v=e[0],m=e[1],e=se.useState(1),S=e[0],d=e[1],e=se.useState(),_=e[0],x=e[1],e=se.useState(),B=e[0],U=e[1],e=se.useState(),L=e[0],H=e[1],e=se.useState(),W=e[0],j=e[1],e=se.useState(),V=e[0],K=e[1],e=se.useState(),Y=e[0],q=e[1],e=se.useState(!1),h=e[0],z=e[1],e=se.useState(!1),C=e[0],$=e[1],e=se.useState(!1),g=e[0],X=e[1],e=se.useState(),Z=e[0],y=e[1],w=se.useMemo(function(){return R.isForceWrapper()},[]),M=se.useRef(null),T=se.useRef(null),O=se.useRef(),I=se.useRef(),b=se.useRef(),e=se.useState(0),J=e[0],Q=e[1],e=se.useCallback(function(e){b.current=e,Q(function(e){return e+1})},[]),P=se.useRef(),A=se.useState(0),N=A[0],ee=A[1],te=se.useCallback(function(e){P.current=e,ee(function(e){return e+1})},[]),k=w||null!=E&&(h||g||C),G=se.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.",ie._.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.",ie._.doOnce(function(){return console.warn(a)},"jsEditorComp-getPopupPosition-"+r.getColumn().getColId())),t.isCancelBeforeStart)&&t.isCancelBeforeStart()&&setTimeout(function(){R.stopEditing(!0),R.focusCell(!0)})},[]),ne=se.useCallback(function(e){return G(!0,e)},[]),re=se.useCallback(function(e){return G(!1,e)},[]),F=se.useMemo(function(){return new ie.CssClassManager(function(){return M.current})},[]),D=(n=E,r=k,o=P.current,A=N,a=O,s=M,N=se.useContext(pe),i=N.context,N.userComponentFactory,u=se.useCallback(function(){var e,t=a.current;t&&((e=t.getGui())&&e.parentElement&&e.parentElement.removeChild(e),i.destroyBean(t),a.current=void 0)},[]),se.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]),fe(function(){return u}),se.useRef()),oe=(se.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]),se.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]),se.useEffect(function(){if(R&&c){var n,e,t="cell-"+R.getInstanceId(),r=[];if(r.push(t),b.current&&k)return n=[],t=function(e){var t;return e&&(t=e.getGui(),b.current.insertAdjacentElement("afterbegin",t),n.push(function(){c.destroyBean(e),ie._.removeFromParent(t)})),e},h&&(e=R.createSelectionCheckbox(),r.push(e.getCheckboxId()),t(e)),g&&t(R.createDndSource()),C&&t(R.createRowDragComp()),H(r.join(" ")),function(){return n.forEach(function(e){return e()})}}},[k,g,C,h,J]),le(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 U(e)},setRole:function(e){return j(e)},setColId:function(e){return K(e)},setTitle:function(e){return q(e)},setIncludeSelection:function(e){return z(e)},setIncludeRowDrag:function(e){return $(e)},setIncludeDndSource:function(e){return X(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))}),se.useMemo(function(){return!!(E&&E.compDetails&&E.compDetails.componentFromFramework&&me(E.compDetails.componentClass))},[E])),ae=(se.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)}),se.useMemo(function(){return R.getInstanceId()},[]));return ue.createElement("div",{ref:M,style:_,tabIndex:B,role:W,"col-id":V,title:Y,"aria-describedby":L},k?ue.createElement("div",{className:"ag-cell-wrapper",role:"presentation","aria-hidden":"true",ref:e},t()):t())}),H=se.memo(function(e){var t=se.useContext(pe).context,n=e.rowCtrl,r=e.containerType,e=se.useState(),o=e[0],a=e[1],e=se.useState(),s=e[0],i=e[1],e=se.useState(),u=e[0],c=e[1],e=se.useState(),l=e[0],p=e[1],e=se.useState(),f=e[0],m=e[1],e=se.useState(),d=e[0],h=e[1],e=se.useState({list:[],instanceIdMap:new Map}),C=e[0],g=e[1],e=se.useState(),y=e[0],R=e[1],e=se.useState(!1),E=e[0],v=e[1],e=se.useState(n.getInitialRowTop(r)),S=e[0],w=e[1],e=se.useState(n.getInitialTransform(r)),M=e[0],T=e[1],O=se.useRef(null),I=se.useRef(),b=se.useRef(!1),e=se.useState(0),P=e[0],A=e[1],N=(se.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]),se.useMemo(function(){return new ie.CssClassManager(function(){return O.current})},[])),e=(le(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)}}),se.useEffect(function(){return _(y,t,O.current,I)},[y]),se.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=se.useMemo(function(){return!!((null==y?void 0:y.componentFromFramework)&&me(y.componentClass))},[y]);return ue.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 ue.createElement(L,{cellCtrl:e,editingRow:n.isEditing(),printLayout:n.isPrintLayout(),key:e.getInstanceId()})}),k&&(u=y.componentClass,ue.createElement(ue.Fragment,null,F&&ue.createElement(u,ce({},y.params)),!F&&ue.createElement(u,ce({},y.params,{ref:I})))))}),re=se.memo(function(e){function t(){return ue.createElement("div",{className:E,ref:y,role:u.length?"rowgroup":"presentation",style:T},s.map(function(e){return ue.createElement(H,{rowCtrl:e,containerType:h,key:e.getInstanceId()})}))}var r=se.useContext(pe).context,n=se.useState(""),o=n[0],a=n[1],n=se.useState([]),s=n[0],i=n[1],n=se.useState([]),u=n[0],c=n[1],n=se.useState(!1),l=n[0],p=n[1],n=se.useState(""),f=n[0],m=n[1],d=e.name,h=se.useMemo(function(){return ie.getRowContainerTypeForName(d)},[d]),C=se.useRef(null),g=se.useRef(null),y=se.useRef(null),R=se.useMemo(function(){return ie.RowContainerCtrl.getRowContainerCssClasses(d)},[d]),n=se.useMemo(function(){return ee(R.wrapper)},[]),e=se.useMemo(function(){return ee(R.viewport)},[]),E=se.useMemo(function(){return ee(R.container)},[]),v=d===ie.RowContainerName.CENTER,S=d===ie.RowContainerName.TOP_CENTER||d===ie.RowContainerName.BOTTOM_CENTER||d===ie.RowContainerName.STICKY_TOP_CENTER,w=!v&&!S,M=(te(" AG Row Container "+d+" ",v?C:S?g:y),se.useEffect(function(){i(function(e){var t;return l?u:(t=e.filter(function(e){return 0<=u.indexOf(e)}),e=u.filter(function(e){return t.indexOf(e)<0}),D(t,e))})},[l,u]),fe(function(){var e=[],t={setViewportHeight:a,setRowCtrls:function(e){return c(e)},setDomOrder:function(e){return p(e)},setContainerWidth:function(e){return m(e)}},n=r.createBean(new ie.RowContainerCtrl(d));return e.push(n),n.setComp(t,y.current,g.current,C.current),function(){r.destroyBeans(e)}}),se.useMemo(function(){return{height:o}},[o])),T=se.useMemo(function(){return{width:f}},[f]);return ue.createElement(ue.Fragment,null,v&&ue.createElement("div",{className:n,ref:C,role:"presentation"},ue.createElement("div",{className:e,ref:g,role:"presentation",style:M},t())),S&&ue.createElement("div",{className:e,ref:g,role:"presentation",style:M},t()),w&&t())}),W=se.memo(function(){function o(e){return ue.createElement(re,{name:e,key:e+"-container"})}function e(e){var t=e.section,n=e.children,r=e.className,e=e.style;return ue.createElement("div",{ref:t,className:r,role:"presentation",style:e},n.map(o))}var t=se.useContext(pe),a=t.context,s=t.agStackComponentsRegistry,i=t.resizeObserverService,t=se.useState(""),n=t[0],u=t[1],t=se.useState(0),r=t[0],c=t[1],t=se.useState(0),l=t[0],p=t[1],t=se.useState(0),f=t[0],m=t[1],t=se.useState(0),d=t[0],h=t[1],t=se.useState("0px"),C=t[0],g=t[1],t=se.useState("0px"),y=t[0],R=t[1],t=se.useState("100%"),E=t[0],v=t[1],t=se.useState(""),S=t[0],_=t[1],t=se.useState(""),w=t[0],x=t[1],t=se.useState(""),M=t[0],B=t[1],t=se.useState(null),T=t[0],U=t[1],t=se.useState(null),O=t[0],L=t[1],t=se.useState(""),I=t[0],H=t[1],t=se.useState(null),b=t[0],W=t[1],t=se.useState("ag-layout-normal"),P=t[0],j=t[1],A=se.useRef(null),N=se.useRef(null),k=se.useRef(null),G=se.useRef(null),F=se.useRef(null),D=se.useRef(null),t=(te(" AG Grid Body ",A),te(" AG Pinned Top ",N),te(" AG Sticky Top ",k),te(" AG Middle ",F),te(" AG Pinned Bottom ",D),fe(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:_,setBottomDisplay:x,setColumnMovingCss:U,updateLayoutClasses:j,setAlwaysVerticalScrollClass:L,setPinnedTopBottomOverflowY:H,setCellSelectableCss:W,setBodyViewportWidth:B,registerBodyViewportResizeListener:function(e){var t=i.observeResize(F.current,e);r.push(function(){return t()})}},t=a.createBean(new ie.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()})}}),se.useMemo(function(){return ee("ag-root","ag-unselectable",T,P)},[T,P])),V=se.useMemo(function(){return ee("ag-body-viewport",n,P,O,b)},[n,P,O,b]),K=se.useMemo(function(){return ee("ag-body",P)},[P]),Y=se.useMemo(function(){return ee("ag-body-clipper",P)},[P]),q=se.useMemo(function(){return ee("ag-floating-top",b)},[b]),z=se.useMemo(function(){return ee("ag-sticky-top",b)},[b]),$=se.useMemo(function(){return ee("ag-floating-bottom",b)},[b]),X=se.useMemo(function(){return{height:f,minHeight:f,display:S,overflowY:I}},[f,S,I]),Z=se.useMemo(function(){return{height:C,top:y,width:E}},[C,y,E]),J=se.useMemo(function(){return{height:d,minHeight:d,display:w,overflowY:I}},[d,w,I]),Q=se.useMemo(function(){return{width:M}},[M]);return ue.createElement("div",{ref:A,className:t,role:"treegrid","aria-colcount":r,"aria-rowcount":l},ue.createElement(ne,null),e({section:N,className:q,style:X,children:[ie.RowContainerName.TOP_LEFT,ie.RowContainerName.TOP_CENTER,ie.RowContainerName.TOP_RIGHT,ie.RowContainerName.TOP_FULL_WIDTH]}),ue.createElement("div",{className:K,ref:G,role:"presentation"},ue.createElement("div",{className:Y,role:"presentation"},e({section:F,className:V,style:Q,children:[ie.RowContainerName.LEFT,ie.RowContainerName.CENTER,ie.RowContainerName.RIGHT,ie.RowContainerName.FULL_WIDTH]}))),e({section:k,className:z,style:Z,children:[ie.RowContainerName.STICKY_TOP_LEFT,ie.RowContainerName.STICKY_TOP_CENTER,ie.RowContainerName.STICKY_TOP_RIGHT,ie.RowContainerName.STICKY_TOP_FULL_WIDTH]}),e({section:D,className:$,style:J,children:[ie.RowContainerName.BOTTOM_LEFT,ie.RowContainerName.BOTTOM_CENTER,ie.RowContainerName.BOTTOM_RIGHT,ie.RowContainerName.BOTTOM_FULL_WIDTH]}))}),o=se.forwardRef(function(e,t){function n(e){var t="top"===e?ie.TabGuardClassNames.TAB_GUARD_TOP:ie.TabGuardClassNames.TAB_GUARD_BOTTOM;return ue.createElement("div",{className:ie.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=se.useContext(pe).context,u=se.useRef(null),c=se.useRef(null),l=se.useRef(),e=se.useState(),p=e[0],f=e[1];se.useImperativeHandle(t,function(){return{forceFocusOutOfContainer:function(){l.current.forceFocusOutOfContainer()}}}),fe(function(){var e=u.current,t=c.current,n=l.current=i.createBean(new ie.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 ue.createElement(ue.Fragment,null,n("top"),r,n("bottom"))}),j=se.memo(o),V=se.memo(function(e){var p=e.context,e=se.useState(""),t=e[0],n=e[1],e=se.useState(""),r=e[0],o=e[1],e=se.useState(""),a=e[0],s=e[1],e=se.useState(null),i=e[0],u=e[1],e=se.useState(null),c=e[0],l=e[1],e=se.useState(!1),f=e[0],m=e[1],e=se.useState(),d=e[0],h=e[1],C=se.useRef(null),g=se.useRef(null),y=se.useRef(),R=se.useRef(null),E=se.useRef(function(){}),e=se.useCallback(function(){},[]),v=se.useMemo(function(){return p.getBean("beans")},[]),S=(te(" AG Grid ",g),fe(function(){var e=C.current=p.createBean(new ie.GridCtrl);return function(){p.destroyBean(e),C.current=null}}),fe(function(){var e=C.current,t=(E.current=e.focusInnerElement.bind(e),{destroyGridUi:function(){},setRtlClass:n,addOrRemoveKeyboardFocusClass:function(e){return o(e?ie.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)}),se.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]),se.useMemo(function(){return ee("ag-root-wrapper",t,r,a)},[t,r,a])),w=se.useMemo(function(){return ee("ag-root-wrapper-body","ag-focus-managed",a)},[a]),M=se.useMemo(function(){return{userSelect:null!=c?c:"",WebkitUserSelect:null!=c?c:"",cursor:null!=i?i:""}},[c,i]),T=R.current,O=se.useCallback(function(e){y.current=e,h(!0)},[]);return ue.createElement("div",{ref:g,className:S,style:M,role:"presentation"},ue.createElement("div",{className:w,ref:R,role:"presentation"},f&&T&&ue.createElement(pe.Provider,{value:v},ue.createElement(j,{ref:O,eFocusableElement:T,onTabKeyDown:e,gridCtrl:C.current},ue.createElement(W,null)))))});n(f,K=se.Component),f.prototype.render=function(){return this.state.context,this.state.context&&(this.renderedAfterMount=!0),ue.createElement("div",{style:this.createStyleForDiv(),className:this.props.className,ref:this.eGui},this.state.context&&ue.createElement(V,{context:this.state.context}),this.portalManager.getPortals())},f.prototype.createStyleForDiv=function(){return ce({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=ie.ComponentUtil.copyAttributesToGridOptions(this.gridOptions,this.props),this.checkForDeprecations(this.props),(new ie.GridCoreCreator).create(this.eGui.current,this.gridOptions,function(e){t.setState({context:e}),e.getBean(ie.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(ie.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&&ie._.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){ie.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]})}),ie.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 ie.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=ue.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=ie.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,$=se.forwardRef(function(r,e){var t=se.useContext(pe),o=t.ctrlsFactory,a=t.context,s=t.gridOptionsService,i=t.resizeObserverService,u=t.clientSideRowModel,c=t.serverSideRowModel,t=se.useState(new P),n=t[0],l=t[1],t=se.useState(new P),p=t[0],f=t[1],t=se.useState(),m=t[0],d=t[1],t=se.useState(),h=t[0],C=t[1],g=se.useRef(),y=se.useRef(null),t=se.useMemo(function(){return n.toString()+" ag-details-row"},[n]),R=se.useMemo(function(){return p.toString()+" ag-details-grid"},[p]),e=(e&&se.useImperativeHandle(e,function(){return{refresh:function(){return g.current.refresh()}}}),fe(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.")}),fe(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()}}),se.useCallback(function(e,t){g.current.registerDetailWithMaster(e,t)},[]));return ue.createElement("div",{className:t,ref:y},m&&ue.createElement(E,ce({className:R},m,{rowData:h,setGridApi:e})))}),X=(n(d,z=ie.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=se.Component),C.prototype.render=function(){var t=this;return ue.createElement("div",{style:this.createStyleForDiv(),className:this.props.className,ref:function(e){t.eGridDiv=e}},this.portalManager.getPortals())},C.prototype.createStyleForDiv=function(){return ce({height:"100%"},this.props.containerStyle||{})},C.prototype.componentDidMount=function(){var e=this.props.modules||[],e={providedBeanInstances:{agGridReact:this,frameworkComponentWrapper:new Q(this,this.portalManager)},modules:e,frameworkOverrides:new X(!1)},t=this.props.gridOptions||{};this.gridOptions=ie.ComponentUtil.copyAttributesToGridOptions(t,this.props),this.checkForDeprecations(this.props),new ie.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&&ie._.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){ie.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]})}),ie.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=ce({},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&&ie.ComponentUtil.processOnChange(t,this.api),n},C.prototype.processAsynchronousChanges=function(e){var t=this;0<Object.keys(e).length&&window.setTimeout(function(){t.api&&ie.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(ie.ComponentUtil.EVENT_CALLBACKS,t.func),g(ie.ComponentUtil.BOOLEAN_PROPERTIES,t.bool),g(ie.ComponentUtil.STRING_PROPERTIES,t.string),g(ie.ComponentUtil.OBJECT_PROPERTIES,t.object),g(ie.ComponentUtil.ARRAY_PROPERTIES,t.array),g(ie.ComponentUtil.NUMBER_PROPERTIES,t.number),g(ie.ComponentUtil.FUNCTION_PROPERTIES,t.func);n(y,J=ie.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,Q=y;function y(e,t){var n=J.call(this)||this;return n.agGridReact=e,n.portalManager=t,n}n(v,R=se.Component),v.prototype.render=function(){return this.props.suppressReactUi?ue.createElement(h,ce({},this.props,{setGridApi:this.setGridApi})):ue.createElement(E,ce({},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})});

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

// ag-grid-react v29.0.0
// ag-grid-react v29.1.0
import { Component } from 'react';

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

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

// ag-grid-react v29.0.0
// ag-grid-react v29.1.0
"use strict";

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

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

// ag-grid-react v29.0.0
// ag-grid-react v29.1.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.0.0
// ag-grid-react v29.1.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.0.0
// ag-grid-react v29.1.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.0.0
// ag-grid-react v29.1.0
"use strict";

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

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

// ag-grid-react v29.0.0
// ag-grid-react v29.1.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.0.0
// ag-grid-react v29.1.0
"use strict";

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

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

// ag-grid-react v29.0.0
// ag-grid-react v29.1.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.0.0
// ag-grid-react v29.1.0
"use strict";

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

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

// ag-grid-react v29.0.0
// ag-grid-react v29.1.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.0.0
// ag-grid-react v29.1.0
"use strict";

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

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

// ag-grid-react v29.0.0
// ag-grid-react v29.1.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.0.0
// ag-grid-react v29.1.0
"use strict";

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

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

// ag-grid-react v29.0.0
// ag-grid-react v29.1.0
import React from "react";

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

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

// ag-grid-react v29.0.0
// ag-grid-react v29.1.0
"use strict";

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

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

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

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

// ag-grid-react v29.0.0
// ag-grid-react v29.1.0
"use strict";

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

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

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

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

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

// ag-grid-react v29.0.0
// ag-grid-react v29.1.0
"use strict";

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

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

// ag-grid-react v29.0.0
// ag-grid-react v29.1.0
import { CellCtrl } from 'ag-grid-community';

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

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

// ag-grid-react v29.0.0
// ag-grid-react v29.1.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.0.0
// ag-grid-react v29.1.0
import { ICellRendererComp } from 'ag-grid-community';

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

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

// ag-grid-react v29.0.0
// ag-grid-react v29.1.0
"use strict";

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

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

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

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

// ag-grid-react v29.0.0
// ag-grid-react v29.1.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.0.0
// ag-grid-react v29.1.0
import { Context } from 'ag-grid-community';

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

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

// ag-grid-react v29.0.0
// ag-grid-react v29.1.0
"use strict";

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

var gridBodyCompEl = eRootWrapperRef.current.querySelector('.ag-root');
var sideBarEl = eRootWrapperRef.current.querySelector('.ag-side-bar');
var sideBarEl = eRootWrapperRef.current.querySelector('.ag-side-bar:not(.ag-hidden)');
if (gridBodyCompEl) {

@@ -77,0 +77,0 @@ els.push(gridBodyCompEl);

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

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

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

// ag-grid-react v29.0.0
// ag-grid-react v29.1.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.0.0
// ag-grid-react v29.1.0
import React from 'react';

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

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

// ag-grid-react v29.0.0
// ag-grid-react v29.1.0
"use strict";

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

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

// ag-grid-react v29.0.0
// ag-grid-react v29.1.0
import React from 'react';

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

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

// ag-grid-react v29.0.0
// ag-grid-react v29.1.0
"use strict";

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

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

// ag-grid-react v29.0.0
// ag-grid-react v29.1.0
import { HeaderGroupCellCtrl } from 'ag-grid-community';

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

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

// ag-grid-react v29.0.0
// ag-grid-react v29.1.0
"use strict";

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

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

// ag-grid-react v29.0.0
// ag-grid-react v29.1.0
import { HeaderRowCtrl } from 'ag-grid-community';

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

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

// ag-grid-react v29.0.0
// ag-grid-react v29.1.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.0.0
// ag-grid-react v29.1.0
import React from 'react';

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

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

// ag-grid-react v29.0.0
// ag-grid-react v29.1.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.0.0
// ag-grid-react v29.1.0
import { Context, UserCompDetails } from 'ag-grid-community';

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

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

// ag-grid-react v29.0.0
// ag-grid-react v29.1.0
"use strict";

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

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

// ag-grid-react v29.0.0
// ag-grid-react v29.1.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.0.0
// ag-grid-react v29.1.0
"use strict";

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

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

// ag-grid-react v29.0.0
// ag-grid-react v29.1.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.0.0
// ag-grid-react v29.1.0
"use strict";

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

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

// ag-grid-react v29.0.0
// ag-grid-react v29.1.0
import React from 'react';

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

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

// ag-grid-react v29.0.0
// ag-grid-react v29.1.0
"use strict";

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

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

// ag-grid-react v29.0.0
// ag-grid-react v29.1.0
import { RowContainerName } from 'ag-grid-community';

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

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

// ag-grid-react v29.0.0
// ag-grid-react v29.1.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.0.0
// ag-grid-react v29.1.0
import React from 'react';

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

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

// ag-grid-react v29.0.0
// ag-grid-react v29.1.0
"use strict";

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

});
var createTabGuard = function (side) { return (react_1.default.createElement("div", { className: "ag-tab-guard ag-tab-guard-" + side, role: "presentation", tabIndex: tabIndex, ref: side === 'top' ? topTabGuardRef : bottomTabGuardRef })); };
var createTabGuard = function (side) {
var className = side === 'top' ? ag_grid_community_1.TabGuardClassNames.TAB_GUARD_TOP : ag_grid_community_1.TabGuardClassNames.TAB_GUARD_BOTTOM;
return (react_1.default.createElement("div", { className: ag_grid_community_1.TabGuardClassNames.TAB_GUARD + " " + className, role: "presentation", tabIndex: tabIndex, ref: side === 'top' ? topTabGuardRef : bottomTabGuardRef }));
};
return (react_1.default.createElement(react_1.default.Fragment, null,

@@ -60,0 +63,0 @@ createTabGuard('top'),

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

// ag-grid-react v29.0.0
// ag-grid-react v29.1.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.0.0
// ag-grid-react v29.1.0
"use strict";

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

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

// ag-grid-react v29.0.0
// ag-grid-react v29.1.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.0.0
// ag-grid-react v29.1.0
"use strict";

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

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

// ag-grid-react v29.0.0
// ag-grid-react v29.1.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.0.0
// ag-grid-react v29.1.0
"use strict";

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

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

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

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

// ag-grid-react v29.0.0
// ag-grid-react v29.1.0
"use strict";

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

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

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

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

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

// ag-grid-react v29.0.0
// ag-grid-react v29.1.0
"use strict";

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

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

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

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

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

// ag-grid-react v29.0.0
// ag-grid-react v29.1.0
"use strict";

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

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

// ag-grid-react v29.0.0
// ag-grid-react v29.1.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.0.0
// ag-grid-react v29.1.0
"use strict";

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

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

// ag-grid-react v29.0.0
// ag-grid-react v29.1.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.0.0
// ag-grid-react v29.1.0
"use strict";

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

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

// ag-grid-react v29.0.0
// ag-grid-react v29.1.0
import { RefObject } from 'react';

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

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

// ag-grid-react v29.0.0
// ag-grid-react v29.1.0
"use strict";

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

{
"name": "ag-grid-react",
"version": "29.0.0",
"version": "29.1.0",
"description": "AG Grid React Component",

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

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

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

"peerDependencies": {
"ag-grid-community": "~29.0.0",
"ag-grid-community": "~29.1.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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc