ag-grid-react
Advanced tools
Comparing version 29.1.0 to 29.2.0
@@ -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 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})}); | ||
define(["exports","prop-types","react-dom/server","react-dom","react","agGrid"],function(e,t,S,r,oe,ae){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t;var se="default"in oe?oe.default:oe,w=function(e,t){return(w=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}))(e,t)};function n(e,t){function n(){this.constructor=e}w(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var ie=function(){return(ie=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function D(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),o=0,t=0;t<n;t++)for(var a=arguments[t],s=0,i=a.length;s<i;s++,o++)r[o]=a[s];return r}n(a,M=function(){}),a.prototype.getGui=function(){return this.eParentElement},a.prototype.destroy=function(){return this.componentInstance&&"function"==typeof this.componentInstance.destroy&&this.componentInstance.destroy(),this.portalManager.destroyPortal(this.portal)},a.prototype.createParentElement=function(e){var t=this.portalManager.getComponentWrappingElement(),t=document.createElement(t||"div");return t.classList.add("ag-react-container"),e.reactContainer=t},a.prototype.addParentContainerStyleAndClasses=function(){var t=this;this.componentInstance&&(this.componentInstance.getReactContainerStyle&&this.componentInstance.getReactContainerStyle()&&Object.assign(this.eParentElement.style,this.componentInstance.getReactContainerStyle()),this.componentInstance.getReactContainerClasses)&&this.componentInstance.getReactContainerClasses()&&this.componentInstance.getReactContainerClasses().forEach(function(e){return t.eParentElement.classList.add(e)})},a.prototype.statelessComponentRendered=function(){return 0<this.eParentElement.childElementCount||0<this.eParentElement.childNodes.length},a.prototype.getFrameworkComponentInstance=function(){return this.componentInstance},a.prototype.isStatelessComponent=function(){return this.statelessComponent},a.prototype.getReactComponentName=function(){return this.reactComponent.name},a.prototype.getMemoType=function(){return this.hasSymbol()?Symbol.for("react.memo"):60115},a.prototype.hasSymbol=function(){return"function"==typeof Symbol&&Symbol.for},a.prototype.isStateless=function(e){return"function"==typeof e&&!(e.prototype&&e.prototype.isReactComponent)||"object"==typeof e&&e.$$typeof===this.getMemoType()},a.prototype.hasMethod=function(e){var t=this.getFrameworkComponentInstance();return!!t&&null!==t[e]||this.fallbackMethodAvailable(e)},a.prototype.callMethod=function(e,t){var n,r=this,o=this.getFrameworkComponentInstance();return this.isStatelessComponent()?this.fallbackMethod(e,t&&t[0]?t[0]:{}):o?(n=o[e])?n.apply(o,t):this.fallbackMethodAvailable(e)?this.fallbackMethod(e,t&&t[0]?t[0]:{}):void 0:void setTimeout(function(){return r.callMethod(e,t)})},a.prototype.addMethod=function(e,t){this[e]=t};var M,o=a;function a(e,t,n){var r=M.call(this)||this;return r.portal=null,r.reactComponent=e,r.portalManager=t,r.componentType=n,r.statelessComponent=r.isStateless(r.reactComponent),r}var T=0;function s(){return"agPortalKey_"+ ++T}n(i,O=o),i.prototype.init=function(t){var n=this;return this.eParentElement=this.createParentElement(t),this.renderStaticMarkup(t),new ae.AgPromise(function(e){return n.createReactComponent(t,e)})},i.prototype.createReactComponent=function(e,t){var n=this,e=(this.isStatelessComponent()||(e.ref=function(e){n.componentInstance=e,n.addParentContainerStyleAndClasses(),n.removeStaticMarkup()}),oe.createElement(this.reactComponent,e)),e=r.createPortal(e,this.eParentElement,s());this.portal=e,this.portalManager.mountReactPortal(e,this,function(e){t(e),n.isStatelessComponent()&&(n.isSlowRenderer()&&n.removeStaticMarkup(),setTimeout(function(){n.removeStaticMarkup()}))})},i.prototype.fallbackMethodAvailable=function(e){return!1},i.prototype.fallbackMethod=function(e,t){},i.prototype.isSlowRenderer=function(){return this.staticRenderTime>=i.SLOW_RENDERING_THRESHOLD},i.prototype.isNullValue=function(){return""===this.staticMarkup},i.prototype.renderStaticMarkup=function(e){if(!this.parentComponent.isDisableStaticMarkup()&&this.componentType.cellRenderer){var t=console.error,e=oe.createElement(this.reactComponent,e);try{console.error=function(){};var n=Date.now(),r=S.renderToStaticMarkup(e);this.staticRenderTime=Date.now()-n,console.error=t,""===r?this.staticMarkup=r:r&&(this.staticMarkup=document.createElement("span"),this.staticMarkup.innerHTML=r,this.eParentElement.appendChild(this.staticMarkup))}catch(e){}finally{console.error=t}}},i.prototype.removeStaticMarkup=function(){!this.parentComponent.isDisableStaticMarkup()&&this.componentType.cellRenderer&&this.staticMarkup&&(this.staticMarkup.remove?(this.staticMarkup.remove(),this.staticMarkup=null):this.eParentElement.removeChild&&(this.eParentElement.removeChild(this.staticMarkup),this.staticMarkup=null))},i.prototype.rendered=function(){return this.isNullValue()||!!this.staticMarkup||this.isStatelessComponent()&&this.statelessComponentRendered()||!(this.isStatelessComponent()||!this.getFrameworkComponentInstance())},i.SLOW_RENDERING_THRESHOLD=3;var O,I=i;function i(e,t,n,r){e=O.call(this,e,n,r)||this;return e.staticMarkup=null,e.staticRenderTime=0,e.parentComponent=t,e}n(u,A=o),u.prototype.init=function(e){var t=this;return this.eParentElement=this.createParentElement(e),this.params=e,this.createOrUpdatePortal(e),new ae.AgPromise(function(e){return t.createReactComponent(e)})},u.prototype.createOrUpdatePortal=function(e){var t=this;this.isStatelessComponent()||(e.ref=function(e){t.componentInstance=e,t.addParentContainerStyleAndClasses()}),this.reactElement=oe.createElement(this.reactComponent,ie(ie({},e),{key:this.key})),this.portal=r.createPortal(this.reactElement,this.eParentElement,this.portalKey)},u.prototype.createReactComponent=function(t){this.portalManager.mountReactPortal(this.portal,this,function(e){t(e)})},u.prototype.isNullValue=function(){return this.valueRenderedIsNull(this.params)},u.prototype.rendered=function(){return this.isStatelessComponent()&&this.statelessComponentRendered()||!(this.isStatelessComponent()||!this.getFrameworkComponentInstance())},u.prototype.valueRenderedIsNull=function(e){if(this.componentType.cellRenderer){var t=console.error;try{return console.error=function(){},""===S.renderToStaticMarkup(oe.createElement(this.reactComponent,e))}catch(e){}finally{console.error=t}}return!1},u.prototype.refreshComponent=function(e){this.oldPortal=this.portal,this.createOrUpdatePortal(e),this.portalManager.updateReactPortal(this.oldPortal,this.portal)},u.prototype.fallbackMethod=function(e,t){e=this[e+"Component"];if(e)return e.bind(this)(t)},u.prototype.fallbackMethodAvailable=function(e){return!!this[e+"Component"]};var A,N=u;function u(e,t,n){e=A.call(this,e,t,n)||this;return e.oldPortal=null,e.key=s(),e.portalKey=s(),e}c.prototype.getPortals=function(){return this.portals},c.prototype.destroy=function(){this.destroyed=!0},c.prototype.destroyPortal=function(t){this.portals=this.portals.filter(function(e){return e!==t}),this.batchUpdate()},c.prototype.getComponentWrappingElement=function(){return this.wrappingElement},c.prototype.mountReactPortal=function(e,t,n){this.portals=D(this.portals,[e]),this.waitForInstance(t,n),this.batchUpdate()},c.prototype.updateReactPortal=function(e,t){this.portals[this.portals.indexOf(e)]=t,this.batchUpdate()},c.prototype.batchUpdate=function(){var e=this;this.hasPendingPortalUpdate||(setTimeout(function(){e.destroyed||e.parent.forceUpdate(function(){e.hasPendingPortalUpdate=!1})}),this.hasPendingPortalUpdate=!0)},c.prototype.waitForInstance=function(e,t,n){var r=this;if(void 0===n&&(n=Date.now()),this.destroyed)t(null);else if(e.rendered())t(e);else{if(Date.now()-n>=this.maxComponentCreationTimeMs&&!this.hasPendingPortalUpdate)return e.isNullValue()?void t(e):void console.error("AG Grid: React Component '"+e.getReactComponentName()+"' not created within "+this.maxComponentCreationTimeMs+"ms");window.setTimeout(function(){r.waitForInstance(e,t,n)})}},c.MAX_COMPONENT_CREATION_TIME_IN_MS=1e3;var k=c;function c(e,t,n){this.destroyed=!1,this.portals=[],this.hasPendingPortalUpdate=!1,this.wrappingElement=t||"div",this.parent=e,this.maxComponentCreationTimeMs=n||c.MAX_COMPONENT_CREATION_TIME_IN_MS}function _(e,t,n,r){var o=!e||e.componentFromFramework;if(!o){var a,s,i,o=e.newAgStackInstance();if(o)return i=!1,o.then(function(e){i?t.destroyBean(e):(s=(a=e).getGui(),n.appendChild(s),G(r,a))}),function(){i=!0,a&&(s&&s.parentElement&&s.parentElement.removeChild(s),t.destroyBean(a),r)&&G(r,void 0)}}}function G(e,t){e&&(e instanceof Function?e(t):e.current=t)}function ue(e){var t=oe.useRef(e),n=oe.useRef(),r=oe.useRef(!1),o=oe.useRef(!1),a=oe.useState(0)[1];r.current&&(o.current=!0),oe.useLayoutEffect(function(){return r.current||(n.current=t.current(),r.current=!0),a(function(e){return e+1}),function(){o.current&&n.current&&n.current()}},[])}function Q(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(function(e){return null!=e&&""!==e}).join(" ")}var ce=se.createContext({}),le=function(e){var t=oe.useRef(e),n=oe.useRef(),r=oe.useRef(!1),o=oe.useRef(!1),a=oe.useState(0)[1];r.current&&(o.current=!0),oe.useEffect(function(){return r.current||(n.current=t.current(),r.current=!0),a(function(e){return e+1}),function(){o.current&&n.current&&n.current()}},[])},P=(l.prototype.setClass=function(e,t){var n;return!!this.classesMap[e]==t?this:((n=new l).classesMap=ie({},this.classesMap),n.classesMap[e]=t,n)},l.prototype.toString=function(){var t=this;return Object.keys(this.classesMap).filter(function(e){return t.classesMap[e]}).join(" ")},l);function l(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this.classesMap={},e.forEach(function(e){t.classesMap[e]=!0})}function pe(e){return"function"==typeof e&&!(e.prototype&&e.prototype.isReactComponent)||"object"==typeof e&&e.$$typeof===("function"==typeof Symbol&&Symbol.for?Symbol.for("react.memo"):60115)}function ee(r,o){le(function(){var e,t=o.current,n=t.parentElement;if(n)return e=document.createComment(r),n.insertBefore(e,t),function(){n.removeChild(e)}})}var b=oe.forwardRef(function(n,e){var r=oe.useContext(ce).context,o=oe.useRef(null),t=oe.useRef(null),a=oe.useRef(null),s=oe.useRef(null),i=oe.useRef(null),u=oe.useState(),c=u[0],l=u[1],u=oe.useState(),p=u[0],f=u[1],u=oe.useState(),m=u[0],d=u[1],u=oe.useState(new P),h=u[0],C=u[1],u=oe.useState(new P("ag-hidden")),g=u[0],y=u[1],u=oe.useState(new P("ag-hidden")),R=u[0],E=u[1],u=oe.useState(new P("ag-invisible")),v=u[0],S=u[1],u=(oe.useImperativeHandle(e,function(){return{refresh:function(){return!1}}}),oe.useLayoutEffect(function(){return _(c,r,t.current)},[c]),ue(function(){var e={setInnerRenderer:function(e,t){l(e),d(t)},setChildCount:function(e){return f(e)},addOrRemoveCssClass:function(t,n){return C(function(e){return e.setClass(t,n)})},setContractedDisplayed:function(t){return E(function(e){return e.setClass("ag-hidden",!t)})},setExpandedDisplayed:function(t){return y(function(e){return e.setClass("ag-hidden",!t)})},setCheckboxVisible:function(t){return S(function(e){return e.setClass("ag-invisible",!t)})}},t=r.createBean(new ae.GroupCellRendererCtrl);return t.init(e,o.current,a.current,s.current,i.current,b,n),function(){r.destroyBean(t)}}),oe.useMemo(function(){return"ag-cell-wrapper "+h.toString()},[h])),e=oe.useMemo(function(){return"ag-group-expanded "+g.toString()},[g]),w=oe.useMemo(function(){return"ag-group-contracted "+R.toString()},[R]),M=oe.useMemo(function(){return"ag-group-checkbox "+v.toString()},[v]),T=c&&c.componentFromFramework,O=T?c.componentClass:void 0,I=null==c&&null!=m,m=ae._.escapeString(m,!0);return se.createElement("span",ie({className:u,ref:o},n.colDef?{}:{role:"gridcell"}),se.createElement("span",{className:e,ref:s}),se.createElement("span",{className:w,ref:i}),se.createElement("span",{className:M,ref:a}),se.createElement("span",{className:"ag-group-value",ref:t},I&&se.createElement(se.Fragment,null,m),T&&se.createElement(O,ie({},c.params))),se.createElement("span",{className:"ag-group-child-count"},p))}),F=oe.memo(function(e){var t=oe.useContext(ce).context,n=oe.useState(),r=n[0],o=n[1],n=oe.useState(),a=n[0],s=n[1],n=oe.useState(),i=n[0],u=n[1],n=oe.useState(),c=n[0],l=n[1],n=oe.useState(),p=n[0],f=n[1],n=oe.useState(),m=n[0],d=n[1],h=oe.useRef(null),C=oe.useRef(null),g=oe.useRef(null),y=oe.useRef(),R=e.ctrl,E=oe.useMemo(function(){return new ae.CssClassManager(function(){return h.current})},[]),n=(ue(function(){R.setComp({setWidth:function(e){return o(e)},addOrRemoveCssClass:function(e,t){return E.addOrRemoveCssClass(e,t)},setColId:function(e){return u(e)},setTitle:function(e){return s(e)},setAriaDescription:function(e){return f(e)},setAriaSort:function(e){return l(e)},setUserCompDetails:function(e){return d(e)},getUserCompInstance:function(){return y.current||void 0}},h.current,C.current,g.current);var e=R.getSelectAllGui();C.current.insertAdjacentElement("afterend",e)}),oe.useLayoutEffect(function(){return _(m,t,g.current,y)},[m]),oe.useEffect(function(){R.setDragSource(h.current)},[m]),oe.useMemo(function(){return{width:r}},[r])),e=oe.useMemo(function(){return!!((null==m?void 0:m.componentFromFramework)&&pe(m.componentClass))},[m]),v=m&&m.componentFromFramework,S=m&&m.componentClass;return se.createElement("div",{ref:h,className:"ag-header-cell",style:n,title:a,"col-id":i,"aria-sort":c,role:"columnheader",tabIndex:-1,"aria-description":p},se.createElement("div",{ref:C,className:"ag-header-cell-resize",role:"presentation"}),se.createElement("div",{ref:g,className:"ag-header-cell-comp-wrapper",role:"presentation"},v&&e&&se.createElement(S,ie({},m.params)),v&&!e&&se.createElement(S,ie({},m.params,{ref:y}))))}),B=oe.memo(function(e){var t=oe.useContext(ce).context,n=oe.useState(new P),r=n[0],o=n[1],n=oe.useState(new P),a=n[0],s=n[1],n=oe.useState("false"),i=n[0],u=n[1],n=oe.useState(),c=n[0],l=n[1],n=oe.useState(),p=n[0],f=n[1],n=oe.useState(),m=n[0],d=n[1],n=oe.useState(),h=n[0],C=n[1],n=oe.useState(),g=n[0],y=n[1],R=oe.useRef(null),E=oe.useRef(null),v=e.ctrl,n=(ue(function(){v.setComp({setWidth:function(e){return l(e)},addOrRemoveCssClass:function(t,n){return o(function(e){return e.setClass(t,n)})},setColId:function(e){return d(e)},setTitle:function(e){return f(e)},setUserCompDetails:function(e){return y(e)},setResizableDisplayed:function(t){s(function(e){return e.setClass("ag-hidden",!t)}),u(t?"false":"true")},setAriaExpanded:function(e){return C(e)}},R.current,E.current)}),oe.useLayoutEffect(function(){return _(g,t,R.current)},[g]),oe.useEffect(function(){var t=void 0;R.current.childNodes.forEach(function(e){null!=e&&e!==E.current&&(t=e)}),t&&v.setDragSource(t)},[g]),oe.useMemo(function(){return{width:c}},[c])),e=oe.useMemo(function(){return"ag-header-group-cell "+r.toString()},[r]),S=oe.useMemo(function(){return"ag-header-cell-resize "+a.toString()},[a]),w=g&&g.componentFromFramework,M=g&&g.componentClass;return se.createElement("div",{ref:R,className:e,style:n,title:p,"col-id":m,role:"columnheader",tabIndex:-1,"aria-expanded":h},w&&se.createElement(M,ie({},g.params)),se.createElement("div",{ref:E,"aria-hidden":i,className:S}))}),x=oe.memo(function(e){function t(e){R.current||null!=e&&(E.current&&E.current(e),R.current=!0)}var n=oe.useContext(ce).context,r=oe.useState(new P("ag-header-cell","ag-floating-filter")),o=r[0],a=r[1],r=oe.useState(new P),s=r[0],i=r[1],r=oe.useState(new P("ag-floating-filter-button","ag-hidden")),u=r[0],c=r[1],r=oe.useState("false"),l=r[0],p=r[1],r=oe.useState(),f=r[0],m=r[1],r=oe.useState(),d=r[0],h=r[1],C=oe.useRef(null),g=oe.useRef(null),r=oe.useRef(null),y=oe.useRef(null),R=oe.useRef(!1),E=oe.useRef(),v=oe.useRef(),S=(ue(function(){v.current=new ae.AgPromise(function(e){E.current=e})}),e.ctrl),e=(ue(function(){S.setComp({addOrRemoveCssClass:function(t,n){return a(function(e){return e.setClass(t,n)})},addOrRemoveBodyCssClass:function(t,n){return i(function(e){return e.setClass(t,n)})},setButtonWrapperDisplayed:function(t){c(function(e){return e.setClass("ag-hidden",!t)}),p(t?"false":"true")},setWidth:function(e){return m(e)},setCompDetails:function(e){return h(e)},getFloatingFilterComp:function(){return v.current||null},setMenuIcon:function(e){return y.current.appendChild(e)}},C.current,y.current,g.current)}),oe.useLayoutEffect(function(){return _(d,n,g.current,t)},[d]),oe.useMemo(function(){return{width:f}},[f])),w=oe.useMemo(function(){return o.toString()},[o]),M=oe.useMemo(function(){return s.toString()},[s]),T=oe.useMemo(function(){return u.toString()},[u]),O=oe.useMemo(function(){return!!(d&&d.componentFromFramework&&pe(d.componentClass))},[d]),I=d&&d.componentFromFramework,b=d&&d.componentClass;return se.createElement("div",{ref:C,className:w,style:e,role:"gridcell",tabIndex:-1},se.createElement("div",{ref:g,className:M,role:"presentation"},I&&O&&se.createElement(b,ie({},d.params)),I&&!O&&se.createElement(b,ie({},d.params,{ref:t}))),se.createElement("div",{ref:r,"aria-hidden":l,className:T,role:"presentation"},se.createElement("button",{ref:y,type:"button","aria-label":"Open Filter Menu",className:"ag-floating-filter-button-button",tabIndex:-1})))}),L=oe.memo(function(e){var s=oe.useContext(ce).gridOptionsService,t=oe.useState(),n=t[0],r=t[1],t=oe.useState(),o=t[0],a=t[1],t=oe.useState(),i=t[0],u=t[1],t=oe.useState(),c=t[0],l=t[1],t=oe.useState(),p=t[0],f=t[1],t=oe.useState([]),m=t[0],d=t[1],t=oe.useRef(null),h=e.ctrl,C=h.getType()===ae.HeaderRowType.COLUMN,g=h.getType()===ae.HeaderRowType.COLUMN_GROUP,y=h.getType()===ae.HeaderRowType.FLOATING_FILTER,R=oe.useCallback(function(e,t){var n,r,o=s.is("ensureDomOrder"),a=s.isDomLayout("print");return o||a?t:(n=ae._.mapById(e,function(e){return e.getInstanceId()}),r=ae._.mapById(t,function(e){return e.getInstanceId()}),D(e.filter(function(e){return r.has(e.getInstanceId())}),t.filter(function(e){return!n.has(e.getInstanceId())})))},[]),e=(ue(function(){h.setComp({setTransform:function(e){return r(e)},setHeight:function(e){return a(e)},setTop:function(e){return u(e)},setHeaderCtrls:function(t){return d(function(e){return R(e,t)})},setWidth:function(e){return l(e)},setAriaRowIndex:function(e){return f(e)}})}),oe.useMemo(function(){return{transform:n,height:o,top:i,width:c}},[n,o,i,c])),E=oe.useMemo(function(){var e=["ag-header-row"];return C&&e.push("ag-header-row-column"),g&&e.push("ag-header-row-column-group"),y&&e.push("ag-header-row-column-filter"),e.join(" ")},[]),v=oe.useCallback(function(e){switch(h.getType()){case ae.HeaderRowType.COLUMN_GROUP:return se.createElement(B,{ctrl:e,key:e.getInstanceId()});case ae.HeaderRowType.FLOATING_FILTER:return se.createElement(x,{ctrl:e,key:e.getInstanceId()});default:return se.createElement(F,{ctrl:e,key:e.getInstanceId()})}},[]);return se.createElement("div",{ref:t,className:E,role:"row",style:e,"aria-rowindex":p},m.map(v))}),p=oe.memo(function(n){function e(){return i.map(function(e){return se.createElement(L,{ctrl:e,key:e.getInstanceId()})})}var t=oe.useState(new P),r=t[0],o=t[1],t=oe.useState(!1),a=t[0],s=t[1],t=oe.useState([]),i=t[0],u=t[1],c=oe.useContext(ce).context,l=oe.useRef(null),p=oe.useRef(null),t="left"===n.pinned,f="right"===n.pinned,m=!t&&!f,d=(ue(function(){var e={setDisplayed:function(t){o(function(e){return e.setClass("ag-hidden",!t)}),s(!t)},setCtrls:function(e){return u(e)},setCenterWidth:function(e){p.current&&(p.current.style.width=e)},setContainerTransform:function(e){p.current&&(p.current.style.transform=e)},setPinnedContainerWidth:function(e){l.current.style.width=e,l.current.style.minWidth=e,l.current.style.maxWidth=e}},t=c.createBean(new ae.HeaderRowContainerCtrl(n.pinned));return t.setComp(e,l.current),function(){c.destroyBean(t)}}),oe.useMemo(function(){return r.toString()},[r]));return se.createElement(se.Fragment,null,t&&se.createElement("div",{ref:l,className:"ag-pinned-left-header "+d,"aria-hidden":a,role:"presentation"},e()),f&&se.createElement("div",{ref:l,className:"ag-pinned-right-header "+d,"aria-hidden":a,role:"presentation"},e()),m&&se.createElement("div",{ref:l,className:"ag-header-viewport "+d,role:"presentation"},se.createElement("div",{ref:p,className:"ag-header-container",role:"rowgroup"},e())))}),te=oe.memo(function(){var e=oe.useState(new P),t=e[0],r=e[1],e=oe.useState(),n=e[0],o=e[1],a=oe.useContext(ce).context,s=oe.useRef(null),e=(ue(function(){var e={addOrRemoveCssClass:function(t,n){return r(function(e){return e.setClass(t,n)})},setHeightAndMinHeight:function(e){return o(e)}},t=a.createBean(new ae.GridHeaderCtrl);return t.setComp(e,s.current,s.current),function(){a.destroyBean(t)}}),oe.useMemo(function(){return"ag-header "+t.toString()},[t])),i=oe.useMemo(function(){return{height:n,minHeight:n}},[n]);return se.createElement("div",{ref:s,className:e,style:i,role:"presentation"},se.createElement(p,{pinned:"left"}),se.createElement(p,{pinned:null}),se.createElement(p,{pinned:"right"}))}),fe=oe.memo(function(u){var e=oe.useState(),t=e[0],c=e[1],e=oe.useContext(ce),l=e.context,p=e.popupService,f=e.localeService,m=e.gridOptionsService;return le(function(){var e=u.editDetails,t=u.cellCtrl,n=u.eParentCell,r=e.compDetails,o=m.is("stopEditingWhenCellsLoseFocus"),a=l.createBean(new ae.PopupEditorWrapper(r.params)),r=a.getGui(),s=(u.jsChildComp&&(s=u.jsChildComp.getGui())&&r.appendChild(s),{column:t.getColumn(),rowNode:t.getRowNode(),type:"popupCellEditor",eventSource:n,ePopup:r,position:e.popupPosition,keepWithinBounds:!0}),e=p.positionPopupByComponent.bind(p,s),s=f.getLocaleTextFunc(),o=p.addPopup({modal:o,eChild:r,closeOnEsc:!0,closedCallback:function(){t.onPopupEditorClosed()},anchorToElement:n,positionCallback:e,ariaLabel:s("ariaLabelCellEditor","Cell Editor")}),i=o?o.hideFunc:void 0;return c(a),u.jsChildComp&&u.jsChildComp.afterGuiAttached&&u.jsChildComp.afterGuiAttached(),function(){null!=i&&i(),l.destroyBean(a)}}),se.createElement(se.Fragment,null,t&&u.wrappedContent&&r.createPortal(u.wrappedContent,t.getGui()))}),U=oe.memo(function(e){function t(){return se.createElement(se.Fragment,null,null!=E&&(i=S,u=re,c=T,l=k,p=ne,f=Q,m=(s=E).compDetails,s=s.value,d=!m,h=m&&m.componentFromFramework,C=m&&m.componentClass,g=null!=s&&s.toString?s.toString():s,se.createElement(se.Fragment,null,l?se.createElement("span",{role:"presentation",id:"cell-"+u,className:"ag-cell-value",ref:f},y()):y())),null!=v&&(s=v,l=te,u=ee,f=M.current,e=R,t=$,n=s.compDetails,r=n.componentClass,o=n.componentFromFramework&&!s.popup,a=n.componentFromFramework&&s.popup,n=!n.componentFromFramework&&s.popup,se.createElement(se.Fragment,null,o&&se.createElement(r,ie({},s.compDetails.params,{ref:l})),a&&se.createElement(fe,{editDetails:s,cellCtrl:e,eParentCell:f,wrappedContent:se.createElement(r,ie({},s.compDetails.params,{ref:u}))}),n&&t&&se.createElement(fe,{editDetails:s,cellCtrl:e,eParentCell:f,jsChildComp:t}))));var e,t,n,r,o,a,s,i,u,c,l,p,f,m,d,h,C,g;function y(){return se.createElement(se.Fragment,null,d&&se.createElement(se.Fragment,null,g),h&&!p&&se.createElement(C,ie({},m.params,{key:i,ref:c})),h&&p&&se.createElement(C,ie({},m.params,{key:i})))}}var n,r,o,a,s,i,u,c=oe.useContext(ce).context,R=e.cellCtrl,l=e.printLayout,p=e.editingRow,e=oe.useState(),E=e[0],f=e[1],e=oe.useState(),v=e[0],m=e[1],e=oe.useState(1),S=e[0],d=e[1],e=oe.useState(),_=e[0],B=e[1],e=oe.useState(),x=e[0],L=e[1],e=oe.useState(),U=e[0],H=e[1],e=oe.useState(),W=e[0],j=e[1],e=oe.useState(),V=e[0],K=e[1],e=oe.useState(!1),h=e[0],Y=e[1],e=oe.useState(!1),C=e[0],z=e[1],e=oe.useState(!1),g=e[0],q=e[1],e=oe.useState(),$=e[0],y=e[1],w=oe.useMemo(function(){return R.isForceWrapper()},[]),M=oe.useRef(null),T=oe.useRef(null),O=oe.useRef(),I=oe.useRef(),b=oe.useRef(),e=oe.useState(0),X=e[0],Z=e[1],e=oe.useCallback(function(e){b.current=e,Z(function(e){return e+1})},[]),P=oe.useRef(),A=oe.useState(0),N=A[0],J=A[1],Q=oe.useCallback(function(e){P.current=e,J(function(e){return e+1})},[]),k=w||null!=E&&(h||g||C),G=oe.useCallback(function(e,t){var n,r,o,a,s;(I.current=t)&&(e=e,n=t,s=(r=R).getColumn(),!e&&n.isPopup&&n.isPopup()&&(o="AG Grid: Found an issue in column "+s.getColId()+". If using React, specify an editor is a popup using colDef.cellEditorPopup=true. AG Grid React cannot depend on the editor component specifying if it's in a popup (via the isPopup() method on the editor), as React needs to know this information BEFORE the component is created.",ae._.doOnce(function(){return console.warn(o)},"jsEditorComp-isPopup-"+r.getColumn().getColId())),e&&n.getPopupPosition&&null!=n.getPopupPosition()&&(a="AG Grid: Found an issue in column "+s.getColId()+". If using React, specify an editor popup position using colDef.cellEditorPopupPosition=true. AG Grid React cannot depend on the editor component specifying it's position (via the getPopupPosition() method on the editor), as React needs to know this information BEFORE the component is created.",ae._.doOnce(function(){return console.warn(a)},"jsEditorComp-getPopupPosition-"+r.getColumn().getColId())),t.isCancelBeforeStart)&&t.isCancelBeforeStart()&&setTimeout(function(){R.stopEditing(!0),R.focusCell(!0)})},[]),ee=oe.useCallback(function(e){return G(!0,e)},[]),te=oe.useCallback(function(e){return G(!1,e)},[]),F=oe.useMemo(function(){return new ae.CssClassManager(function(){return M.current})},[]),D=(n=E,r=k,o=P.current,A=N,a=O,s=M,N=oe.useContext(ce),i=N.context,N.userComponentFactory,u=oe.useCallback(function(){var e,t=a.current;t&&((e=t.getGui())&&e.parentElement&&e.parentElement.removeChild(e),i.destroyBean(t),a.current=void 0)},[]),oe.useEffect(function(){var e=n&&n.compDetails&&!n.compDetails.componentFromFramework;if(null!=n&&e&&!(r&&null==o)){e=n.compDetails;if(a.current){var t=a.current,t=null!=t.refresh&&0==n.force&&t.refresh(e.params);if(!0===t||void 0===t)return;u()}t=e.newAgStackInstance();t&&(e=t.resolveNow(null,function(e){return e}))&&(t=e.getGui())&&((r?o:s.current).appendChild(t),a.current=e)}else u()},[n,r,A]),le(function(){return u}),oe.useRef()),ne=(oe.useEffect(function(){var e=D.current,t=E;D.current=E,null!=e&&null!=e.compDetails&&null!=t&&null!=t.compDetails&&(e=e.compDetails,t=t.compDetails,e.componentClass==t.componentClass)&&null!=T.current&&null!=T.current.refresh&&1!=T.current.refresh(t.params)&&d(function(e){return e+1})},[E]),oe.useEffect(function(){if(v&&!v.compDetails.componentFromFramework){var e,t=v.compDetails,n=!0===v.popup,r=function(e){e=e.newAgStackInstance();if(e)return e.resolveNow(null,function(e){return e})}(t);if(r)return e=r.getGui(),G(n,r),n||(null!=(t=(w?b:M).current)&&t.appendChild(e),r.afterGuiAttached&&r.afterGuiAttached()),y(r),function(){c.destroyBean(r),G(n,void 0),y(void 0),e&&e.parentElement&&e.parentElement.removeChild(e)}}},[v]),oe.useEffect(function(){var n,e;if(R&&c&&(b.current&&k))return n=[],e=function(e){var t;return e&&(t=e.getGui(),b.current.insertAdjacentElement("afterbegin",t),n.push(function(){c.destroyBean(e),ae._.removeFromParent(t)})),e},h&&e(R.createSelectionCheckbox()),g&&e(R.createDndSource()),C&&e(R.createRowDragComp()),function(){return n.forEach(function(e){return e()})}},[k,g,C,h,X]),ue(function(){var e;R&&(e=b.current||void 0,R.setComp({addOrRemoveCssClass:function(e,t){return F.addOrRemoveCssClass(e,t)},setUserStyles:function(e){return B(e)},getFocusableElement:function(){return M.current},setTabIndex:function(e){return L(e)},setRole:function(e){return H(e)},setColId:function(e){return j(e)},setTitle:function(e){return K(e)},setIncludeSelection:function(e){return Y(e)},setIncludeRowDrag:function(e){return z(e)},setIncludeDndSource:function(e){return q(e)},getCellEditor:function(){return I.current||null},getCellRenderer:function(){return T.current||O.current},getParentOfValue:function(){return P.current||b.current||M.current},setRenderDetails:function(e,t,n){f({value:t,compDetails:e,force:n})},setEditDetails:function(e,t,n){e?(m({compDetails:e,popup:t,popupPosition:n}),t||f(void 0)):m(void 0)}},M.current,e,l,p))}),oe.useMemo(function(){return!!(E&&E.compDetails&&E.compDetails.componentFromFramework&&pe(E.compDetails.componentClass))},[E])),re=(oe.useEffect(function(){var e;M.current&&(F.addOrRemoveCssClass("ag-cell-value",!k),F.addOrRemoveCssClass("ag-cell-inline-editing",!!v&&!v.popup),F.addOrRemoveCssClass("ag-cell-popup-editing",!!v&&!!v.popup),F.addOrRemoveCssClass("ag-cell-not-inline-editing",!v||!!v.popup),null!=(e=R.getRowCtrl()))&&e.setInlineEditingCss(!!v)}),oe.useMemo(function(){return R.getInstanceId()},[]));return se.createElement("div",{ref:M,style:_,tabIndex:x,role:U,"col-id":W,title:V},k?se.createElement("div",{className:"ag-cell-wrapper",role:"presentation",ref:e},t()):t())}),H=oe.memo(function(e){var t=oe.useContext(ce).context,n=e.rowCtrl,r=e.containerType,e=oe.useState(),o=e[0],a=e[1],e=oe.useState(),s=e[0],i=e[1],e=oe.useState(),u=e[0],c=e[1],e=oe.useState(),l=e[0],p=e[1],e=oe.useState(),f=e[0],m=e[1],e=oe.useState(),d=e[0],h=e[1],e=oe.useState({list:[],instanceIdMap:new Map}),C=e[0],g=e[1],e=oe.useState(),y=e[0],R=e[1],e=oe.useState(!1),E=e[0],v=e[1],e=oe.useState(n.getInitialRowTop(r)),S=e[0],w=e[1],e=oe.useState(n.getInitialTransform(r)),M=e[0],T=e[1],O=oe.useRef(null),I=oe.useRef(),b=oe.useRef(!1),e=oe.useState(0),P=e[0],A=e[1],N=(oe.useEffect(function(){var e;b.current||!y||10<P||((e=null==(e=O.current)?void 0:e.firstChild)?(n.setupDetailRowAutoHeight(e),b.current=!0):A(function(e){return e+1}))},[y,P]),oe.useMemo(function(){return new ae.CssClassManager(function(){return O.current})},[])),e=(ue(function(){if(n.isAlive())return n.setComp({setTop:function(e){return w(e)},setTransform:function(e){return T(e)},addOrRemoveCssClass:function(e,t){return N.addOrRemoveCssClass(e,t)},setDomOrder:function(e){return v(e)},setRowIndex:function(e){return a(e)},setRowId:function(e){return i(e)},setRowBusinessKey:function(e){return p(e)},setTabIndex:function(e){return m(e)},setUserStyles:function(e){return h(e)},setRole:function(e){return c(e)},setCellCtrls:function(i){return g(function(e){return n=e,e=i,E?(t={list:e,instanceIdMap:new Map},e.forEach(function(e){return t.instanceIdMap.set(e.getInstanceId(),e)}),t):(r=[],o=[],a=new Map,s=new Map,e.forEach(function(e){return s.set(e.getInstanceId(),e)}),n.list.forEach(function(e){var t=e.getInstanceId();s.has(t)&&(r.push(e),a.set(t,e))}),e.forEach(function(e){var t=e.getInstanceId();n.instanceIdMap.has(t)||(o.push(e),a.set(t,e))}),{list:D(r,o),instanceIdMap:a});var n,t,r,o,a,s})},showFullWidth:function(e){return R(e)},getFullWidthCellRenderer:function(){return I.current}},O.current,r),function(){n.unsetComp(r)}}),oe.useLayoutEffect(function(){return _(y,t,O.current,I)},[y]),oe.useMemo(function(){var e={top:S,transform:M};return Object.assign(e,d),e},[S,M,d])),k=y&&y.componentFromFramework,G=null!=C,F=oe.useMemo(function(){return!!((null==y?void 0:y.componentFromFramework)&&pe(y.componentClass))},[y]);return se.createElement("div",{ref:O,role:u,style:e,"row-index":o,"row-id":s,"row-business-key":l,tabIndex:f},G&&C.list.map(function(e){return se.createElement(U,{cellCtrl:e,editingRow:n.isEditing(),printLayout:n.isPrintLayout(),key:e.getInstanceId()})}),k&&(u=y.componentClass,se.createElement(se.Fragment,null,F&&se.createElement(u,ie({},y.params)),!F&&se.createElement(u,ie({},y.params,{ref:I})))))}),ne=oe.memo(function(e){var r=oe.useContext(ce).context,t=oe.useState(""),n=t[0],o=t[1],t=oe.useState([]),a=t[0],s=t[1],t=oe.useState(""),i=t[0],u=t[1],c=e.name,l=oe.useMemo(function(){return ae.getRowContainerTypeForName(c)},[c]),p=oe.useRef(null),f=oe.useRef(null),m=oe.useRef(null),d=oe.useRef([]),h=oe.useRef(!1),C=oe.useMemo(function(){return ae.RowContainerCtrl.getRowContainerCssClasses(c)},[c]),t=oe.useMemo(function(){return Q(C.wrapper)},[]),e=oe.useMemo(function(){return Q(C.viewport)},[]),g=oe.useMemo(function(){return Q(C.container)},[]),y=c===ae.RowContainerName.CENTER,R=c===ae.RowContainerName.TOP_CENTER||c===ae.RowContainerName.BOTTOM_CENTER||c===ae.RowContainerName.STICKY_TOP_CENTER,E=!y&&!R;function v(){s(function(e){var t,n=d.current;return h.current?n:(t=e.filter(function(e){return 0<=n.indexOf(e)}),e=n.filter(function(e){return t.indexOf(e)<0}),D(t,e))})}ee(" AG Row Container "+c+" ",y?p:R?f:m),ue(function(){var e=[],t={setViewportHeight:o,setRowCtrls:function(e){d.current!==e&&(d.current=e,v())},setDomOrder:function(e){h.current!=e&&(h.current=e,v())},setContainerWidth:function(e){return u(e)}},n=r.createBean(new ae.RowContainerCtrl(c));return e.push(n),n.setComp(t,m.current,f.current,p.current),function(){r.destroyBeans(e)}});function S(){return se.createElement("div",{className:g,ref:m,role:a.length?"rowgroup":"presentation",style:M},a.map(function(e){return se.createElement(H,{rowCtrl:e,containerType:l,key:e.getInstanceId()})}))}var w=oe.useMemo(function(){return{height:n}},[n]),M=oe.useMemo(function(){return{width:i}},[i]);return se.createElement(se.Fragment,null,y&&se.createElement("div",{className:t,ref:p,role:"presentation"},se.createElement("div",{className:e,ref:f,role:"presentation",style:w},S())),R&&se.createElement("div",{className:e,ref:f,role:"presentation",style:w},S()),E&&S())}),W=oe.memo(function(){function o(e){return se.createElement(ne,{name:e,key:e+"-container"})}function e(e){var t=e.section,n=e.children,r=e.className,e=e.style;return se.createElement("div",{ref:t,className:r,role:"presentation",style:e},n.map(o))}var t=oe.useContext(ce),a=t.context,s=t.agStackComponentsRegistry,i=t.resizeObserverService,t=oe.useState(""),n=t[0],u=t[1],t=oe.useState(0),r=t[0],c=t[1],t=oe.useState(0),l=t[0],p=t[1],t=oe.useState(0),f=t[0],m=t[1],t=oe.useState(0),d=t[0],h=t[1],t=oe.useState("0px"),C=t[0],g=t[1],t=oe.useState("0px"),y=t[0],R=t[1],t=oe.useState("100%"),E=t[0],v=t[1],t=oe.useState(""),S=t[0],w=t[1],t=oe.useState(""),M=t[0],_=t[1],t=oe.useState(""),T=t[0],B=t[1],t=oe.useState(null),O=t[0],x=t[1],t=oe.useState(""),I=t[0],L=t[1],t=oe.useState(null),b=t[0],U=t[1],t=oe.useState("ag-layout-normal"),P=t[0],H=t[1],W=oe.useMemo(function(){return new ae.CssClassManager(function(){return A.current})},[]),A=oe.useRef(null),N=oe.useRef(null),k=oe.useRef(null),G=oe.useRef(null),F=oe.useRef(null),D=oe.useRef(null),t=(ee(" AG Grid Body ",A),ee(" AG Pinned Top ",N),ee(" AG Sticky Top ",k),ee(" AG Middle ",F),ee(" AG Pinned Bottom ",D),le(function(){var e,t,n=[],r=[];if(a)return e=function(e){e=s.getComponentClass(e),e=a.createBean(new e);return n.push(e),e},A.current.appendChild(document.createComment(" AG Fake Horizontal Scroll ")),A.current.appendChild(e("AG-FAKE-HORIZONTAL-SCROLL").getGui()),A.current.appendChild(document.createComment(" AG Overlay Wrapper ")),A.current.appendChild(e("AG-OVERLAY-WRAPPER").getGui()),G.current.appendChild(document.createComment(" AG Fake Vertical Scroll ")),G.current.appendChild(e("AG-FAKE-VERTICAL-SCROLL").getGui()),e={setRowAnimationCssOnBodyViewport:u,setColumnCount:c,setRowCount:p,setTopHeight:m,setBottomHeight:h,setStickyTopHeight:g,setStickyTopTop:R,setStickyTopWidth:v,setTopDisplay:w,setBottomDisplay:_,setColumnMovingCss:function(e,t){return W.addOrRemoveCssClass(e,t)},updateLayoutClasses:H,setAlwaysVerticalScrollClass:x,setPinnedTopBottomOverflowY:L,setCellSelectableCss:U,setBodyViewportWidth:B,registerBodyViewportResizeListener:function(e){var t=i.observeResize(F.current,e);r.push(function(){return t()})}},t=a.createBean(new ae.GridBodyCtrl),n.push(t),t.setComp(e,A.current,F.current,N.current,D.current,k.current),function(){a.destroyBeans(n),r.forEach(function(e){return e()})}}),oe.useMemo(function(){return Q("ag-root","ag-unselectable",P)},[P])),j=oe.useMemo(function(){return Q("ag-body-viewport",n,P,O,b)},[n,P,O,b]),V=oe.useMemo(function(){return Q("ag-body",P)},[P]),K=oe.useMemo(function(){return Q("ag-body-clipper",P)},[P]),Y=oe.useMemo(function(){return Q("ag-floating-top",b)},[b]),z=oe.useMemo(function(){return Q("ag-sticky-top",b)},[b]),q=oe.useMemo(function(){return Q("ag-floating-bottom",b)},[b]),$=oe.useMemo(function(){return{height:f,minHeight:f,display:S,overflowY:I}},[f,S,I]),X=oe.useMemo(function(){return{height:C,top:y,width:E}},[C,y,E]),Z=oe.useMemo(function(){return{height:d,minHeight:d,display:M,overflowY:I}},[d,M,I]),J=oe.useMemo(function(){return{width:T}},[T]);return se.createElement("div",{ref:A,className:t,role:"treegrid","aria-colcount":r,"aria-rowcount":l},se.createElement(te,null),e({section:N,className:Y,style:$,children:[ae.RowContainerName.TOP_LEFT,ae.RowContainerName.TOP_CENTER,ae.RowContainerName.TOP_RIGHT,ae.RowContainerName.TOP_FULL_WIDTH]}),se.createElement("div",{className:V,ref:G,role:"presentation"},se.createElement("div",{className:K,role:"presentation"},e({section:F,className:j,style:J,children:[ae.RowContainerName.LEFT,ae.RowContainerName.CENTER,ae.RowContainerName.RIGHT,ae.RowContainerName.FULL_WIDTH]}))),e({section:k,className:z,style:X,children:[ae.RowContainerName.STICKY_TOP_LEFT,ae.RowContainerName.STICKY_TOP_CENTER,ae.RowContainerName.STICKY_TOP_RIGHT,ae.RowContainerName.STICKY_TOP_FULL_WIDTH]}),e({section:D,className:q,style:Z,children:[ae.RowContainerName.BOTTOM_LEFT,ae.RowContainerName.BOTTOM_CENTER,ae.RowContainerName.BOTTOM_RIGHT,ae.RowContainerName.BOTTOM_FULL_WIDTH]}))}),o=oe.forwardRef(function(e,t){function n(e){var t="top"===e?ae.TabGuardClassNames.TAB_GUARD_TOP:ae.TabGuardClassNames.TAB_GUARD_BOTTOM;return se.createElement("div",{className:ae.TabGuardClassNames.TAB_GUARD+" "+t,role:"presentation",tabIndex:p,ref:"top"===e?u:c})}var r=e.children,o=e.eFocusableElement,a=e.onTabKeyDown,s=e.gridCtrl,i=oe.useContext(ce).context,u=oe.useRef(null),c=oe.useRef(null),l=oe.useRef(),e=oe.useState(),p=e[0],f=e[1];oe.useImperativeHandle(t,function(){return{forceFocusOutOfContainer:function(){l.current.forceFocusOutOfContainer()}}}),le(function(){var e=u.current,t=c.current,n=l.current=i.createBean(new ae.TabGuardCtrl({comp:{setTabIndex:function(e){return f(null==e?void 0:parseInt(e,10))}},eTopGuard:e,eBottomGuard:t,eFocusableElement:o,onTabKeyDown:a,focusInnerElement:function(e){return s.focusInnerElement(e)}}));return function(){i.destroyBean(n)}});return se.createElement(se.Fragment,null,n("top"),r,n("bottom"))}),j=oe.memo(o),V=oe.memo(function(e){var p=e.context,e=oe.useState(""),t=e[0],n=e[1],e=oe.useState(""),r=e[0],o=e[1],e=oe.useState(""),a=e[0],s=e[1],e=oe.useState(null),i=e[0],u=e[1],e=oe.useState(null),c=e[0],l=e[1],e=oe.useState(!1),f=e[0],m=e[1],e=oe.useState(),d=e[0],h=e[1],C=oe.useRef(null),g=oe.useRef(null),y=oe.useRef(),R=oe.useRef(null),E=oe.useRef(function(){}),e=oe.useCallback(function(){},[]),v=oe.useMemo(function(){return p.getBean("beans")},[]),S=(ee(" AG Grid ",g),le(function(){var e=C.current=p.createBean(new ae.GridCtrl);return function(){p.destroyBean(e),C.current=null}}),le(function(){var e=C.current,t=(E.current=e.focusInnerElement.bind(e),{destroyGridUi:function(){},setRtlClass:n,addOrRemoveKeyboardFocusClass:function(e){return o(e?ae.FocusService.AG_KEYBOARD_FOCUS:"")},forceFocusOutOfContainer:function(){y.current.forceFocusOutOfContainer()},updateLayoutClasses:s,getFocusableContainers:function(){var e=[],t=g.current.querySelector(".ag-root"),n=g.current.querySelector(".ag-side-bar:not(.ag-hidden)");return t&&e.push(t),n&&e.push(n),e},setCursor:u,setUserSelect:l});e.setComp(t,g.current,g.current),m(!0)}),oe.useEffect(function(){var e,t,n,r,o,a,s,i,u,c,l;if(d)return e=C.current,t=[],c=(o=v.agStackComponentsRegistry).getComponentClass("AG-GRID-HEADER-DROP-ZONES"),u=o.getComponentClass("AG-SIDE-BAR"),n=o.getComponentClass("AG-STATUS-BAR"),r=o.getComponentClass("AG-WATERMARK"),o=o.getComponentClass("AG-PAGINATION"),a=[],s=g.current,i=R.current,e.showDropZones()&&c&&(l=(c=p.createBean(new c)).getGui(),s.insertAdjacentElement("afterbegin",l),a.push(l),t.push(c)),e.showSideBar()&&u&&(l=(c=p.createBean(new u)).getGui(),(u=i.querySelector(".ag-tab-guard-bottom"))&&(u.insertAdjacentElement("beforebegin",l),a.push(l)),t.push(c)),e.showStatusBar()&&n&&(l=(i=p.createBean(new n)).getGui(),s.insertAdjacentElement("beforeend",l),a.push(l),t.push(i)),o&&(l=(u=p.createBean(new o)).getGui(),s.insertAdjacentElement("beforeend",l),a.push(l),t.push(u)),e.showWatermark()&&r&&(l=(c=p.createBean(new r)).getGui(),s.insertAdjacentElement("beforeend",l),a.push(l),t.push(c)),function(){p.destroyBeans(t),a.forEach(function(e){e.parentElement&&e.parentElement.removeChild(e)})}},[d]),oe.useMemo(function(){return Q("ag-root-wrapper",t,r,a)},[t,r,a])),w=oe.useMemo(function(){return Q("ag-root-wrapper-body","ag-focus-managed",a)},[a]),M=oe.useMemo(function(){return{userSelect:null!=c?c:"",WebkitUserSelect:null!=c?c:"",cursor:null!=i?i:""}},[c,i]),T=R.current,O=oe.useCallback(function(e){y.current=e,h(!0)},[]);return se.createElement("div",{ref:g,className:S,style:M,role:"presentation"},se.createElement("div",{className:w,ref:R,role:"presentation"},f&&T&&se.createElement(ce.Provider,{value:v},se.createElement(j,{ref:O,eFocusableElement:T,onTabKeyDown:e,gridCtrl:C.current},se.createElement(W,null)))))});n(f,K=oe.Component),f.prototype.render=function(){return this.state.context,this.state.context&&(this.renderedAfterMount=!0),se.createElement("div",{style:this.createStyleForDiv(),className:this.props.className,ref:this.eGui},this.state.context&&se.createElement(V,{context:this.state.context}),this.portalManager.getPortals())},f.prototype.createStyleForDiv=function(){return ie({height:"100%"},this.props.containerStyle||{})},f.prototype.componentDidMount=function(){var e,t=this;this.mounted||(this.mounted=!0,e=this.props.modules||[],e={providedBeanInstances:{frameworkComponentWrapper:new z(this.portalManager)},modules:e,frameworkOverrides:new X(!0)},this.gridOptions=this.props.gridOptions||{},this.gridOptions=ae.ComponentUtil.copyAttributesToGridOptions(this.gridOptions,this.props),this.checkForDeprecations(this.props),(new ae.GridCoreCreator).create(this.eGui.current,this.gridOptions,function(e){t.setState({context:e}),e.getBean(ae.CtrlsService.NAME).whenReady(function(){t.api=t.gridOptions.api,t.columnApi=t.gridOptions.columnApi,t.props.setGridApi(t.api,t.columnApi),t.destroyFuncs.push(function(){return t.api.destroy()})})},function(e){e.getBean(ae.CtrlsService.NAME).whenReady(function(){t.whenReadyFuncs.forEach(function(e){return e()}),t.whenReadyFuncs.length=0,t.ready=!0})},e))},f.prototype.checkForDeprecations=function(e){e.rowDataChangeDetectionStrategy&&ae._.doOnce(function(){return console.warn("AG Grid: Since v29 rowDataChangeDetectionStrategy has been deprecated. Row data property changes will be compared by reference via triple equals ===. See https://ag-grid.com/react-data-grid/react-hooks/")},"rowDataChangeDetectionStrategy_Deprecation")},f.prototype.componentWillUnmount=function(){this.renderedAfterMount&&(this.destroyFuncs.forEach(function(e){return e()}),this.destroyFuncs.length=0)},f.prototype.componentDidUpdate=function(e){this.processPropsChanges(e,this.props)},f.prototype.processPropsChanges=function(e,t){var n={};this.extractGridPropertyChanges(e,t,n),this.processChanges(n)},f.prototype.extractGridPropertyChanges=function(t,n,r){var o=!!n.debug;Object.keys(n).forEach(function(e){ae.ComponentUtil.ALL_PROPERTIES_SET.has(e)&&t[e]!==n[e]&&(o&&console.log("agGridReact: ["+e+"] property changed"),r[e]={previousValue:t[e],currentValue:n[e]})}),ae.ComponentUtil.EVENT_CALLBACKS.forEach(function(e){t[e]!==n[e]&&(o&&console.log("agGridReact: ["+e+"] event callback changed"),r[e]={previousValue:t[e],currentValue:n[e]})})},f.prototype.processChanges=function(e){var t=this;this.processWhenReady(function(){return ae.ComponentUtil.processOnChange(e,t.api)})},f.prototype.processWhenReady=function(e){this.ready?e():this.whenReadyFuncs.push(e)};var K,E=f;function f(e){var t=K.call(this,e)||this;return t.props=e,t.destroyFuncs=[],t.eGui=se.createRef(),t.whenReadyFuncs=[],t.ready=!1,t.renderedAfterMount=!1,t.mounted=!1,t.state={context:void 0},t.portalManager=new k(t,e.componentWrappingElement,e.maxComponentCreationTimeMs),t.destroyFuncs.push(function(){return t.portalManager.destroy()}),t}n(m,Y=ae.BaseComponentWrapper),m.prototype.createWrapper=function(e,t){return new N(e,this.parent,t)};var Y,z=m;function m(e){var t=Y.call(this)||this;return t.parent=e,t}var q,$=oe.forwardRef(function(r,e){var t=oe.useContext(ce),o=t.ctrlsFactory,a=t.context,s=t.gridOptionsService,i=t.resizeObserverService,u=t.clientSideRowModel,c=t.serverSideRowModel,t=oe.useState(new P),n=t[0],l=t[1],t=oe.useState(new P),p=t[0],f=t[1],t=oe.useState(),m=t[0],d=t[1],t=oe.useState(),h=t[0],C=t[1],g=oe.useRef(),y=oe.useRef(null),t=oe.useMemo(function(){return n.toString()+" ag-details-row"},[n]),R=oe.useMemo(function(){return p.toString()+" ag-details-grid"},[p]),e=(e&&oe.useImperativeHandle(e,function(){return{refresh:function(){return g.current.refresh()}}}),le(function(){r.template&&"string"==typeof r.template&&console.warn("AG Grid: detailCellRendererParams.template is not supported by React - this only works with frameworks that work against String templates. To change the template, please provide your own React Detail Cell Renderer.")}),le(function(){var e,t={addOrRemoveCssClass:function(t,n){return l(function(e){return e.setClass(t,n)})},addOrRemoveDetailGridCssClass:function(t,n){return f(function(e){return e.setClass(t,n)})},setDetailGrid:function(e){return d(e)},setRowData:function(e){return C(e)},getGui:function(){return y.current}},n=o.getInstance("detailCellRenderer");if(n)return a.createBean(n),n.init(t,r),g.current=n,s.is("detailRowAutoHeight")&&(e=i.observeResize(y.current,t=function(){var e;null!=y.current&&null!=(e=y.current.clientHeight)&&0<e&&setTimeout(function(){r.node.setRowHeight(e),u?u.onRowHeightChanged():c&&c.onRowHeightChanged()},0)}),t()),function(){a.destroyBean(n),e&&e()}}),oe.useCallback(function(e,t){g.current.registerDetailWithMaster(e,t)},[]));return se.createElement("div",{className:t,ref:y},m&&se.createElement(E,ie({className:R},m,{rowData:h,setGridApi:e})))}),X=(n(d,q=ae.VanillaFrameworkOverrides),d.prototype.frameworkComponent=function(e){if(this.reactUi)return this.frameworkComponents[e]},d.prototype.isFrameworkComponent=function(e){return!(!e||(e=e.prototype)&&"getGui"in e)},d);function d(e){var t=q.call(this)||this;return t.frameworkComponents={agGroupCellRenderer:b,agGroupRowRenderer:b,agDetailCellRenderer:$},t.reactUi=e,t}n(C,Z=oe.Component),C.prototype.render=function(){var t=this;return se.createElement("div",{style:this.createStyleForDiv(),className:this.props.className,ref:function(e){t.eGridDiv=e}},this.portalManager.getPortals())},C.prototype.createStyleForDiv=function(){return ie({height:"100%"},this.props.containerStyle||{})},C.prototype.componentDidMount=function(){var e=this.props.modules||[],e={providedBeanInstances:{agGridReact:this,frameworkComponentWrapper:new re(this,this.portalManager)},modules:e,frameworkOverrides:new X(!1)},t=this.props.gridOptions||{};this.gridOptions=ae.ComponentUtil.copyAttributesToGridOptions(t,this.props),this.checkForDeprecations(this.props),new ae.Grid(this.eGridDiv,this.gridOptions,e),this.api=this.gridOptions.api,this.columnApi=this.gridOptions.columnApi,this.props.setGridApi(this.api,this.columnApi)},C.prototype.checkForDeprecations=function(e){e.rowDataChangeDetectionStrategy&&ae._.doOnce(function(){return console.warn("AG Grid: Since v29 rowDataChangeDetectionStrategy has been deprecated. Row data property changes will be compared by reference via triple equals ===. See https://ag-grid.com/react-data-grid/react-hooks/")},"rowDataChangeDetectionStrategy_Deprecation")},C.prototype.shouldComponentUpdate=function(e){return this.processPropsChanges(this.props,e),!1},C.prototype.componentDidUpdate=function(e){this.processPropsChanges(e,this.props)},C.prototype.processPropsChanges=function(e,t){var n={};this.extractGridPropertyChanges(e,t,n),this.processSynchronousChanges(n),this.processAsynchronousChanges(n)},C.prototype.extractGridPropertyChanges=function(t,n,r){var o=!!n.debug;Object.keys(n).forEach(function(e){ae.ComponentUtil.ALL_PROPERTIES_SET.has(e)&&t[e]!==n[e]&&(o&&console.log("agGridReact: ["+e+"] property changed"),r[e]={previousValue:t[e],currentValue:n[e]})}),ae.ComponentUtil.EVENT_CALLBACKS.forEach(function(e){t[e]!==n[e]&&(o&&console.log("agGridReact: ["+e+"] event callback changed"),r[e]={previousValue:t[e],currentValue:n[e]})})},C.prototype.componentWillUnmount=function(){this.api&&(this.api.destroy(),this.api=null),this.destroyed=!0,this.portalManager.destroy()},C.prototype.isDisableStaticMarkup=function(){return!0===this.props.disableStaticMarkup},C.prototype.isLegacyComponentRendering=function(){return!0===this.props.legacyComponentRendering},C.prototype.processSynchronousChanges=function(e){var t,n=ie({},e);return 0<Object.keys(n).length&&(t={},this.SYNCHRONOUS_CHANGE_PROPERTIES.forEach(function(e){n[e]&&(t[e]=n[e],delete n[e])}),0<Object.keys(t).length)&&this.api&&ae.ComponentUtil.processOnChange(t,this.api),n},C.prototype.processAsynchronousChanges=function(e){var t=this;0<Object.keys(e).length&&window.setTimeout(function(){t.api&&ae.ComponentUtil.processOnChange(e,t.api)})},C.defaultProps={legacyComponentRendering:!1,disableStaticMarkup:!1,maxComponentCreationTimeMs:C.MAX_COMPONENT_CREATION_TIME_IN_MS=1e3};var Z,h=C;function C(e){var t=Z.call(this,e)||this;return t.props=e,t.api=null,t.destroyed=!1,t.SYNCHRONOUS_CHANGE_PROPERTIES=["context"],t.portalManager=new k(t,e.componentWrappingElement,e.maxComponentCreationTimeMs),t}function g(e,t){e.forEach(function(e){h[e]=t})}h.propTypes={gridOptions:t.object},g(ae.ComponentUtil.EVENT_CALLBACKS,t.func),g(ae.ComponentUtil.BOOLEAN_PROPERTIES,t.bool),g(ae.ComponentUtil.STRING_PROPERTIES,t.string),g(ae.ComponentUtil.OBJECT_PROPERTIES,t.object),g(ae.ComponentUtil.ARRAY_PROPERTIES,t.array),g(ae.ComponentUtil.NUMBER_PROPERTIES,t.number),g(ae.ComponentUtil.FUNCTION_PROPERTIES,t.func);n(y,J=ae.BaseComponentWrapper),y.prototype.createWrapper=function(e,t){return this.agGridReact.isLegacyComponentRendering()?new I(e,this.agGridReact,this.portalManager,t):new N(e,this.portalManager,t)};var J,re=y;function y(e,t){var n=J.call(this)||this;return n.agGridReact=e,n.portalManager=t,n}n(v,R=oe.Component),v.prototype.render=function(){return this.props.suppressReactUi?se.createElement(h,ie({},this.props,{setGridApi:this.setGridApi})):se.createElement(E,ie({},this.props,{setGridApi:this.setGridApi}))};var R,o=v;function v(){var n=null!==R&&R.apply(this,arguments)||this;return n.setGridApi=function(e,t){n.api=e,n.columnApi=t},n}e.AgGridReact=o,e.AgGridReactLegacy=h,e.AgGridReactFire=E,Object.defineProperty(e,"__esModule",{value:!0})}); |
@@ -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 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})}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("prop-types"),require("react-dom/server"),require("react-dom"),require("react"),require("ag-grid-community")):"function"==typeof define&&define.amd?define(["exports","prop-types","react-dom/server","react-dom","react","ag-grid-community"],t):t(e.AgGridReact={},e.PropTypes,e.ReactDOMServer,e.ReactDOM,e.React,e.agGrid)}(this,function(e,t,S,r,oe,ae){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t;var se="default"in oe?oe.default:oe,w=function(e,t){return(w=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}))(e,t)};function n(e,t){function n(){this.constructor=e}w(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var ie=function(){return(ie=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function D(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),o=0,t=0;t<n;t++)for(var a=arguments[t],s=0,i=a.length;s<i;s++,o++)r[o]=a[s];return r}n(a,M=function(){}),a.prototype.getGui=function(){return this.eParentElement},a.prototype.destroy=function(){return this.componentInstance&&"function"==typeof this.componentInstance.destroy&&this.componentInstance.destroy(),this.portalManager.destroyPortal(this.portal)},a.prototype.createParentElement=function(e){var t=this.portalManager.getComponentWrappingElement(),t=document.createElement(t||"div");return t.classList.add("ag-react-container"),e.reactContainer=t},a.prototype.addParentContainerStyleAndClasses=function(){var t=this;this.componentInstance&&(this.componentInstance.getReactContainerStyle&&this.componentInstance.getReactContainerStyle()&&Object.assign(this.eParentElement.style,this.componentInstance.getReactContainerStyle()),this.componentInstance.getReactContainerClasses)&&this.componentInstance.getReactContainerClasses()&&this.componentInstance.getReactContainerClasses().forEach(function(e){return t.eParentElement.classList.add(e)})},a.prototype.statelessComponentRendered=function(){return 0<this.eParentElement.childElementCount||0<this.eParentElement.childNodes.length},a.prototype.getFrameworkComponentInstance=function(){return this.componentInstance},a.prototype.isStatelessComponent=function(){return this.statelessComponent},a.prototype.getReactComponentName=function(){return this.reactComponent.name},a.prototype.getMemoType=function(){return this.hasSymbol()?Symbol.for("react.memo"):60115},a.prototype.hasSymbol=function(){return"function"==typeof Symbol&&Symbol.for},a.prototype.isStateless=function(e){return"function"==typeof e&&!(e.prototype&&e.prototype.isReactComponent)||"object"==typeof e&&e.$$typeof===this.getMemoType()},a.prototype.hasMethod=function(e){var t=this.getFrameworkComponentInstance();return!!t&&null!==t[e]||this.fallbackMethodAvailable(e)},a.prototype.callMethod=function(e,t){var n,r=this,o=this.getFrameworkComponentInstance();return this.isStatelessComponent()?this.fallbackMethod(e,t&&t[0]?t[0]:{}):o?(n=o[e])?n.apply(o,t):this.fallbackMethodAvailable(e)?this.fallbackMethod(e,t&&t[0]?t[0]:{}):void 0:void setTimeout(function(){return r.callMethod(e,t)})},a.prototype.addMethod=function(e,t){this[e]=t};var M,o=a;function a(e,t,n){var r=M.call(this)||this;return r.portal=null,r.reactComponent=e,r.portalManager=t,r.componentType=n,r.statelessComponent=r.isStateless(r.reactComponent),r}var O=0;function s(){return"agPortalKey_"+ ++O}n(i,T=o),i.prototype.init=function(t){var n=this;return this.eParentElement=this.createParentElement(t),this.renderStaticMarkup(t),new ae.AgPromise(function(e){return n.createReactComponent(t,e)})},i.prototype.createReactComponent=function(e,t){var n=this,e=(this.isStatelessComponent()||(e.ref=function(e){n.componentInstance=e,n.addParentContainerStyleAndClasses(),n.removeStaticMarkup()}),oe.createElement(this.reactComponent,e)),e=r.createPortal(e,this.eParentElement,s());this.portal=e,this.portalManager.mountReactPortal(e,this,function(e){t(e),n.isStatelessComponent()&&(n.isSlowRenderer()&&n.removeStaticMarkup(),setTimeout(function(){n.removeStaticMarkup()}))})},i.prototype.fallbackMethodAvailable=function(e){return!1},i.prototype.fallbackMethod=function(e,t){},i.prototype.isSlowRenderer=function(){return this.staticRenderTime>=i.SLOW_RENDERING_THRESHOLD},i.prototype.isNullValue=function(){return""===this.staticMarkup},i.prototype.renderStaticMarkup=function(e){if(!this.parentComponent.isDisableStaticMarkup()&&this.componentType.cellRenderer){var t=console.error,e=oe.createElement(this.reactComponent,e);try{console.error=function(){};var n=Date.now(),r=S.renderToStaticMarkup(e);this.staticRenderTime=Date.now()-n,console.error=t,""===r?this.staticMarkup=r:r&&(this.staticMarkup=document.createElement("span"),this.staticMarkup.innerHTML=r,this.eParentElement.appendChild(this.staticMarkup))}catch(e){}finally{console.error=t}}},i.prototype.removeStaticMarkup=function(){!this.parentComponent.isDisableStaticMarkup()&&this.componentType.cellRenderer&&this.staticMarkup&&(this.staticMarkup.remove?(this.staticMarkup.remove(),this.staticMarkup=null):this.eParentElement.removeChild&&(this.eParentElement.removeChild(this.staticMarkup),this.staticMarkup=null))},i.prototype.rendered=function(){return this.isNullValue()||!!this.staticMarkup||this.isStatelessComponent()&&this.statelessComponentRendered()||!(this.isStatelessComponent()||!this.getFrameworkComponentInstance())},i.SLOW_RENDERING_THRESHOLD=3;var T,I=i;function i(e,t,n,r){e=T.call(this,e,n,r)||this;return e.staticMarkup=null,e.staticRenderTime=0,e.parentComponent=t,e}n(u,A=o),u.prototype.init=function(e){var t=this;return this.eParentElement=this.createParentElement(e),this.params=e,this.createOrUpdatePortal(e),new ae.AgPromise(function(e){return t.createReactComponent(e)})},u.prototype.createOrUpdatePortal=function(e){var t=this;this.isStatelessComponent()||(e.ref=function(e){t.componentInstance=e,t.addParentContainerStyleAndClasses()}),this.reactElement=oe.createElement(this.reactComponent,ie(ie({},e),{key:this.key})),this.portal=r.createPortal(this.reactElement,this.eParentElement,this.portalKey)},u.prototype.createReactComponent=function(t){this.portalManager.mountReactPortal(this.portal,this,function(e){t(e)})},u.prototype.isNullValue=function(){return this.valueRenderedIsNull(this.params)},u.prototype.rendered=function(){return this.isStatelessComponent()&&this.statelessComponentRendered()||!(this.isStatelessComponent()||!this.getFrameworkComponentInstance())},u.prototype.valueRenderedIsNull=function(e){if(this.componentType.cellRenderer){var t=console.error;try{return console.error=function(){},""===S.renderToStaticMarkup(oe.createElement(this.reactComponent,e))}catch(e){}finally{console.error=t}}return!1},u.prototype.refreshComponent=function(e){this.oldPortal=this.portal,this.createOrUpdatePortal(e),this.portalManager.updateReactPortal(this.oldPortal,this.portal)},u.prototype.fallbackMethod=function(e,t){e=this[e+"Component"];if(e)return e.bind(this)(t)},u.prototype.fallbackMethodAvailable=function(e){return!!this[e+"Component"]};var A,N=u;function u(e,t,n){e=A.call(this,e,t,n)||this;return e.oldPortal=null,e.key=s(),e.portalKey=s(),e}c.prototype.getPortals=function(){return this.portals},c.prototype.destroy=function(){this.destroyed=!0},c.prototype.destroyPortal=function(t){this.portals=this.portals.filter(function(e){return e!==t}),this.batchUpdate()},c.prototype.getComponentWrappingElement=function(){return this.wrappingElement},c.prototype.mountReactPortal=function(e,t,n){this.portals=D(this.portals,[e]),this.waitForInstance(t,n),this.batchUpdate()},c.prototype.updateReactPortal=function(e,t){this.portals[this.portals.indexOf(e)]=t,this.batchUpdate()},c.prototype.batchUpdate=function(){var e=this;this.hasPendingPortalUpdate||(setTimeout(function(){e.destroyed||e.parent.forceUpdate(function(){e.hasPendingPortalUpdate=!1})}),this.hasPendingPortalUpdate=!0)},c.prototype.waitForInstance=function(e,t,n){var r=this;if(void 0===n&&(n=Date.now()),this.destroyed)t(null);else if(e.rendered())t(e);else{if(Date.now()-n>=this.maxComponentCreationTimeMs&&!this.hasPendingPortalUpdate)return e.isNullValue()?void t(e):void console.error("AG Grid: React Component '"+e.getReactComponentName()+"' not created within "+this.maxComponentCreationTimeMs+"ms");window.setTimeout(function(){r.waitForInstance(e,t,n)})}},c.MAX_COMPONENT_CREATION_TIME_IN_MS=1e3;var G=c;function c(e,t,n){this.destroyed=!1,this.portals=[],this.hasPendingPortalUpdate=!1,this.wrappingElement=t||"div",this.parent=e,this.maxComponentCreationTimeMs=n||c.MAX_COMPONENT_CREATION_TIME_IN_MS}function _(e,t,n,r){var o=!e||e.componentFromFramework;if(!o){var a,s,i,o=e.newAgStackInstance();if(o)return i=!1,o.then(function(e){i?t.destroyBean(e):(s=(a=e).getGui(),n.appendChild(s),k(r,a))}),function(){i=!0,a&&(s&&s.parentElement&&s.parentElement.removeChild(s),t.destroyBean(a),r)&&k(r,void 0)}}}function k(e,t){e&&(e instanceof Function?e(t):e.current=t)}function ue(e){var t=oe.useRef(e),n=oe.useRef(),r=oe.useRef(!1),o=oe.useRef(!1),a=oe.useState(0)[1];r.current&&(o.current=!0),oe.useLayoutEffect(function(){return r.current||(n.current=t.current(),r.current=!0),a(function(e){return e+1}),function(){o.current&&n.current&&n.current()}},[])}function Q(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(function(e){return null!=e&&""!==e}).join(" ")}var ce=se.createContext({}),le=function(e){var t=oe.useRef(e),n=oe.useRef(),r=oe.useRef(!1),o=oe.useRef(!1),a=oe.useState(0)[1];r.current&&(o.current=!0),oe.useEffect(function(){return r.current||(n.current=t.current(),r.current=!0),a(function(e){return e+1}),function(){o.current&&n.current&&n.current()}},[])},P=(l.prototype.setClass=function(e,t){var n;return!!this.classesMap[e]==t?this:((n=new l).classesMap=ie({},this.classesMap),n.classesMap[e]=t,n)},l.prototype.toString=function(){var t=this;return Object.keys(this.classesMap).filter(function(e){return t.classesMap[e]}).join(" ")},l);function l(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this.classesMap={},e.forEach(function(e){t.classesMap[e]=!0})}function pe(e){return"function"==typeof e&&!(e.prototype&&e.prototype.isReactComponent)||"object"==typeof e&&e.$$typeof===("function"==typeof Symbol&&Symbol.for?Symbol.for("react.memo"):60115)}function ee(r,o){le(function(){var e,t=o.current,n=t.parentElement;if(n)return e=document.createComment(r),n.insertBefore(e,t),function(){n.removeChild(e)}})}var b=oe.forwardRef(function(n,e){var r=oe.useContext(ce).context,o=oe.useRef(null),t=oe.useRef(null),a=oe.useRef(null),s=oe.useRef(null),i=oe.useRef(null),u=oe.useState(),c=u[0],l=u[1],u=oe.useState(),p=u[0],f=u[1],u=oe.useState(),m=u[0],d=u[1],u=oe.useState(new P),h=u[0],C=u[1],u=oe.useState(new P("ag-hidden")),g=u[0],y=u[1],u=oe.useState(new P("ag-hidden")),R=u[0],E=u[1],u=oe.useState(new P("ag-invisible")),v=u[0],S=u[1],u=(oe.useImperativeHandle(e,function(){return{refresh:function(){return!1}}}),oe.useLayoutEffect(function(){return _(c,r,t.current)},[c]),ue(function(){var e={setInnerRenderer:function(e,t){l(e),d(t)},setChildCount:function(e){return f(e)},addOrRemoveCssClass:function(t,n){return C(function(e){return e.setClass(t,n)})},setContractedDisplayed:function(t){return E(function(e){return e.setClass("ag-hidden",!t)})},setExpandedDisplayed:function(t){return y(function(e){return e.setClass("ag-hidden",!t)})},setCheckboxVisible:function(t){return S(function(e){return e.setClass("ag-invisible",!t)})}},t=r.createBean(new ae.GroupCellRendererCtrl);return t.init(e,o.current,a.current,s.current,i.current,b,n),function(){r.destroyBean(t)}}),oe.useMemo(function(){return"ag-cell-wrapper "+h.toString()},[h])),e=oe.useMemo(function(){return"ag-group-expanded "+g.toString()},[g]),w=oe.useMemo(function(){return"ag-group-contracted "+R.toString()},[R]),M=oe.useMemo(function(){return"ag-group-checkbox "+v.toString()},[v]),O=c&&c.componentFromFramework,T=O?c.componentClass:void 0,I=null==c&&null!=m,m=ae._.escapeString(m,!0);return se.createElement("span",ie({className:u,ref:o},n.colDef?{}:{role:"gridcell"}),se.createElement("span",{className:e,ref:s}),se.createElement("span",{className:w,ref:i}),se.createElement("span",{className:M,ref:a}),se.createElement("span",{className:"ag-group-value",ref:t},I&&se.createElement(se.Fragment,null,m),O&&se.createElement(T,ie({},c.params))),se.createElement("span",{className:"ag-group-child-count"},p))}),F=oe.memo(function(e){var t=oe.useContext(ce).context,n=oe.useState(),r=n[0],o=n[1],n=oe.useState(),a=n[0],s=n[1],n=oe.useState(),i=n[0],u=n[1],n=oe.useState(),c=n[0],l=n[1],n=oe.useState(),p=n[0],f=n[1],n=oe.useState(),m=n[0],d=n[1],h=oe.useRef(null),C=oe.useRef(null),g=oe.useRef(null),y=oe.useRef(),R=e.ctrl,E=oe.useMemo(function(){return new ae.CssClassManager(function(){return h.current})},[]),n=(ue(function(){R.setComp({setWidth:function(e){return o(e)},addOrRemoveCssClass:function(e,t){return E.addOrRemoveCssClass(e,t)},setColId:function(e){return u(e)},setTitle:function(e){return s(e)},setAriaDescription:function(e){return f(e)},setAriaSort:function(e){return l(e)},setUserCompDetails:function(e){return d(e)},getUserCompInstance:function(){return y.current||void 0}},h.current,C.current,g.current);var e=R.getSelectAllGui();C.current.insertAdjacentElement("afterend",e)}),oe.useLayoutEffect(function(){return _(m,t,g.current,y)},[m]),oe.useEffect(function(){R.setDragSource(h.current)},[m]),oe.useMemo(function(){return{width:r}},[r])),e=oe.useMemo(function(){return!!((null==m?void 0:m.componentFromFramework)&&pe(m.componentClass))},[m]),v=m&&m.componentFromFramework,S=m&&m.componentClass;return se.createElement("div",{ref:h,className:"ag-header-cell",style:n,title:a,"col-id":i,"aria-sort":c,role:"columnheader",tabIndex:-1,"aria-description":p},se.createElement("div",{ref:C,className:"ag-header-cell-resize",role:"presentation"}),se.createElement("div",{ref:g,className:"ag-header-cell-comp-wrapper",role:"presentation"},v&&e&&se.createElement(S,ie({},m.params)),v&&!e&&se.createElement(S,ie({},m.params,{ref:y}))))}),x=oe.memo(function(e){var t=oe.useContext(ce).context,n=oe.useState(new P),r=n[0],o=n[1],n=oe.useState(new P),a=n[0],s=n[1],n=oe.useState("false"),i=n[0],u=n[1],n=oe.useState(),c=n[0],l=n[1],n=oe.useState(),p=n[0],f=n[1],n=oe.useState(),m=n[0],d=n[1],n=oe.useState(),h=n[0],C=n[1],n=oe.useState(),g=n[0],y=n[1],R=oe.useRef(null),E=oe.useRef(null),v=e.ctrl,n=(ue(function(){v.setComp({setWidth:function(e){return l(e)},addOrRemoveCssClass:function(t,n){return o(function(e){return e.setClass(t,n)})},setColId:function(e){return d(e)},setTitle:function(e){return f(e)},setUserCompDetails:function(e){return y(e)},setResizableDisplayed:function(t){s(function(e){return e.setClass("ag-hidden",!t)}),u(t?"false":"true")},setAriaExpanded:function(e){return C(e)}},R.current,E.current)}),oe.useLayoutEffect(function(){return _(g,t,R.current)},[g]),oe.useEffect(function(){var t=void 0;R.current.childNodes.forEach(function(e){null!=e&&e!==E.current&&(t=e)}),t&&v.setDragSource(t)},[g]),oe.useMemo(function(){return{width:c}},[c])),e=oe.useMemo(function(){return"ag-header-group-cell "+r.toString()},[r]),S=oe.useMemo(function(){return"ag-header-cell-resize "+a.toString()},[a]),w=g&&g.componentFromFramework,M=g&&g.componentClass;return se.createElement("div",{ref:R,className:e,style:n,title:p,"col-id":m,role:"columnheader",tabIndex:-1,"aria-expanded":h},w&&se.createElement(M,ie({},g.params)),se.createElement("div",{ref:E,"aria-hidden":i,className:S}))}),B=oe.memo(function(e){function t(e){R.current||null!=e&&(E.current&&E.current(e),R.current=!0)}var n=oe.useContext(ce).context,r=oe.useState(new P("ag-header-cell","ag-floating-filter")),o=r[0],a=r[1],r=oe.useState(new P),s=r[0],i=r[1],r=oe.useState(new P("ag-floating-filter-button","ag-hidden")),u=r[0],c=r[1],r=oe.useState("false"),l=r[0],p=r[1],r=oe.useState(),f=r[0],m=r[1],r=oe.useState(),d=r[0],h=r[1],C=oe.useRef(null),g=oe.useRef(null),r=oe.useRef(null),y=oe.useRef(null),R=oe.useRef(!1),E=oe.useRef(),v=oe.useRef(),S=(ue(function(){v.current=new ae.AgPromise(function(e){E.current=e})}),e.ctrl),e=(ue(function(){S.setComp({addOrRemoveCssClass:function(t,n){return a(function(e){return e.setClass(t,n)})},addOrRemoveBodyCssClass:function(t,n){return i(function(e){return e.setClass(t,n)})},setButtonWrapperDisplayed:function(t){c(function(e){return e.setClass("ag-hidden",!t)}),p(t?"false":"true")},setWidth:function(e){return m(e)},setCompDetails:function(e){return h(e)},getFloatingFilterComp:function(){return v.current||null},setMenuIcon:function(e){return y.current.appendChild(e)}},C.current,y.current,g.current)}),oe.useLayoutEffect(function(){return _(d,n,g.current,t)},[d]),oe.useMemo(function(){return{width:f}},[f])),w=oe.useMemo(function(){return o.toString()},[o]),M=oe.useMemo(function(){return s.toString()},[s]),O=oe.useMemo(function(){return u.toString()},[u]),T=oe.useMemo(function(){return!!(d&&d.componentFromFramework&&pe(d.componentClass))},[d]),I=d&&d.componentFromFramework,b=d&&d.componentClass;return se.createElement("div",{ref:C,className:w,style:e,role:"gridcell",tabIndex:-1},se.createElement("div",{ref:g,className:M,role:"presentation"},I&&T&&se.createElement(b,ie({},d.params)),I&&!T&&se.createElement(b,ie({},d.params,{ref:t}))),se.createElement("div",{ref:r,"aria-hidden":l,className:O,role:"presentation"},se.createElement("button",{ref:y,type:"button","aria-label":"Open Filter Menu",className:"ag-floating-filter-button-button",tabIndex:-1})))}),L=oe.memo(function(e){var s=oe.useContext(ce).gridOptionsService,t=oe.useState(),n=t[0],r=t[1],t=oe.useState(),o=t[0],a=t[1],t=oe.useState(),i=t[0],u=t[1],t=oe.useState(),c=t[0],l=t[1],t=oe.useState(),p=t[0],f=t[1],t=oe.useState([]),m=t[0],d=t[1],t=oe.useRef(null),h=e.ctrl,C=h.getType()===ae.HeaderRowType.COLUMN,g=h.getType()===ae.HeaderRowType.COLUMN_GROUP,y=h.getType()===ae.HeaderRowType.FLOATING_FILTER,R=oe.useCallback(function(e,t){var n,r,o=s.is("ensureDomOrder"),a=s.isDomLayout("print");return o||a?t:(n=ae._.mapById(e,function(e){return e.getInstanceId()}),r=ae._.mapById(t,function(e){return e.getInstanceId()}),D(e.filter(function(e){return r.has(e.getInstanceId())}),t.filter(function(e){return!n.has(e.getInstanceId())})))},[]),e=(ue(function(){h.setComp({setTransform:function(e){return r(e)},setHeight:function(e){return a(e)},setTop:function(e){return u(e)},setHeaderCtrls:function(t){return d(function(e){return R(e,t)})},setWidth:function(e){return l(e)},setAriaRowIndex:function(e){return f(e)}})}),oe.useMemo(function(){return{transform:n,height:o,top:i,width:c}},[n,o,i,c])),E=oe.useMemo(function(){var e=["ag-header-row"];return C&&e.push("ag-header-row-column"),g&&e.push("ag-header-row-column-group"),y&&e.push("ag-header-row-column-filter"),e.join(" ")},[]),v=oe.useCallback(function(e){switch(h.getType()){case ae.HeaderRowType.COLUMN_GROUP:return se.createElement(x,{ctrl:e,key:e.getInstanceId()});case ae.HeaderRowType.FLOATING_FILTER:return se.createElement(B,{ctrl:e,key:e.getInstanceId()});default:return se.createElement(F,{ctrl:e,key:e.getInstanceId()})}},[]);return se.createElement("div",{ref:t,className:E,role:"row",style:e,"aria-rowindex":p},m.map(v))}),p=oe.memo(function(n){function e(){return i.map(function(e){return se.createElement(L,{ctrl:e,key:e.getInstanceId()})})}var t=oe.useState(new P),r=t[0],o=t[1],t=oe.useState(!1),a=t[0],s=t[1],t=oe.useState([]),i=t[0],u=t[1],c=oe.useContext(ce).context,l=oe.useRef(null),p=oe.useRef(null),t="left"===n.pinned,f="right"===n.pinned,m=!t&&!f,d=(ue(function(){var e={setDisplayed:function(t){o(function(e){return e.setClass("ag-hidden",!t)}),s(!t)},setCtrls:function(e){return u(e)},setCenterWidth:function(e){p.current&&(p.current.style.width=e)},setContainerTransform:function(e){p.current&&(p.current.style.transform=e)},setPinnedContainerWidth:function(e){l.current.style.width=e,l.current.style.minWidth=e,l.current.style.maxWidth=e}},t=c.createBean(new ae.HeaderRowContainerCtrl(n.pinned));return t.setComp(e,l.current),function(){c.destroyBean(t)}}),oe.useMemo(function(){return r.toString()},[r]));return se.createElement(se.Fragment,null,t&&se.createElement("div",{ref:l,className:"ag-pinned-left-header "+d,"aria-hidden":a,role:"presentation"},e()),f&&se.createElement("div",{ref:l,className:"ag-pinned-right-header "+d,"aria-hidden":a,role:"presentation"},e()),m&&se.createElement("div",{ref:l,className:"ag-header-viewport "+d,role:"presentation"},se.createElement("div",{ref:p,className:"ag-header-container",role:"rowgroup"},e())))}),te=oe.memo(function(){var e=oe.useState(new P),t=e[0],r=e[1],e=oe.useState(),n=e[0],o=e[1],a=oe.useContext(ce).context,s=oe.useRef(null),e=(ue(function(){var e={addOrRemoveCssClass:function(t,n){return r(function(e){return e.setClass(t,n)})},setHeightAndMinHeight:function(e){return o(e)}},t=a.createBean(new ae.GridHeaderCtrl);return t.setComp(e,s.current,s.current),function(){a.destroyBean(t)}}),oe.useMemo(function(){return"ag-header "+t.toString()},[t])),i=oe.useMemo(function(){return{height:n,minHeight:n}},[n]);return se.createElement("div",{ref:s,className:e,style:i,role:"presentation"},se.createElement(p,{pinned:"left"}),se.createElement(p,{pinned:null}),se.createElement(p,{pinned:"right"}))}),fe=oe.memo(function(u){var e=oe.useState(),t=e[0],c=e[1],e=oe.useContext(ce),l=e.context,p=e.popupService,f=e.localeService,m=e.gridOptionsService;return le(function(){var e=u.editDetails,t=u.cellCtrl,n=u.eParentCell,r=e.compDetails,o=m.is("stopEditingWhenCellsLoseFocus"),a=l.createBean(new ae.PopupEditorWrapper(r.params)),r=a.getGui(),s=(u.jsChildComp&&(s=u.jsChildComp.getGui())&&r.appendChild(s),{column:t.getColumn(),rowNode:t.getRowNode(),type:"popupCellEditor",eventSource:n,ePopup:r,position:e.popupPosition,keepWithinBounds:!0}),e=p.positionPopupByComponent.bind(p,s),s=f.getLocaleTextFunc(),o=p.addPopup({modal:o,eChild:r,closeOnEsc:!0,closedCallback:function(){t.onPopupEditorClosed()},anchorToElement:n,positionCallback:e,ariaLabel:s("ariaLabelCellEditor","Cell Editor")}),i=o?o.hideFunc:void 0;return c(a),u.jsChildComp&&u.jsChildComp.afterGuiAttached&&u.jsChildComp.afterGuiAttached(),function(){null!=i&&i(),l.destroyBean(a)}}),se.createElement(se.Fragment,null,t&&u.wrappedContent&&r.createPortal(u.wrappedContent,t.getGui()))}),U=oe.memo(function(e){function t(){return se.createElement(se.Fragment,null,null!=E&&(i=S,u=re,c=O,l=G,p=ne,f=Q,m=(s=E).compDetails,s=s.value,d=!m,h=m&&m.componentFromFramework,C=m&&m.componentClass,g=null!=s&&s.toString?s.toString():s,se.createElement(se.Fragment,null,l?se.createElement("span",{role:"presentation",id:"cell-"+u,className:"ag-cell-value",ref:f},y()):y())),null!=v&&(s=v,l=te,u=ee,f=M.current,e=R,t=$,n=s.compDetails,r=n.componentClass,o=n.componentFromFramework&&!s.popup,a=n.componentFromFramework&&s.popup,n=!n.componentFromFramework&&s.popup,se.createElement(se.Fragment,null,o&&se.createElement(r,ie({},s.compDetails.params,{ref:l})),a&&se.createElement(fe,{editDetails:s,cellCtrl:e,eParentCell:f,wrappedContent:se.createElement(r,ie({},s.compDetails.params,{ref:u}))}),n&&t&&se.createElement(fe,{editDetails:s,cellCtrl:e,eParentCell:f,jsChildComp:t}))));var e,t,n,r,o,a,s,i,u,c,l,p,f,m,d,h,C,g;function y(){return se.createElement(se.Fragment,null,d&&se.createElement(se.Fragment,null,g),h&&!p&&se.createElement(C,ie({},m.params,{key:i,ref:c})),h&&p&&se.createElement(C,ie({},m.params,{key:i})))}}var n,r,o,a,s,i,u,c=oe.useContext(ce).context,R=e.cellCtrl,l=e.printLayout,p=e.editingRow,e=oe.useState(),E=e[0],f=e[1],e=oe.useState(),v=e[0],m=e[1],e=oe.useState(1),S=e[0],d=e[1],e=oe.useState(),_=e[0],x=e[1],e=oe.useState(),B=e[0],L=e[1],e=oe.useState(),U=e[0],H=e[1],e=oe.useState(),W=e[0],j=e[1],e=oe.useState(),V=e[0],K=e[1],e=oe.useState(!1),h=e[0],Y=e[1],e=oe.useState(!1),C=e[0],q=e[1],e=oe.useState(!1),g=e[0],z=e[1],e=oe.useState(),$=e[0],y=e[1],w=oe.useMemo(function(){return R.isForceWrapper()},[]),M=oe.useRef(null),O=oe.useRef(null),T=oe.useRef(),I=oe.useRef(),b=oe.useRef(),e=oe.useState(0),X=e[0],Z=e[1],e=oe.useCallback(function(e){b.current=e,Z(function(e){return e+1})},[]),P=oe.useRef(),A=oe.useState(0),N=A[0],J=A[1],Q=oe.useCallback(function(e){P.current=e,J(function(e){return e+1})},[]),G=w||null!=E&&(h||g||C),k=oe.useCallback(function(e,t){var n,r,o,a,s;(I.current=t)&&(e=e,n=t,s=(r=R).getColumn(),!e&&n.isPopup&&n.isPopup()&&(o="AG Grid: Found an issue in column "+s.getColId()+". If using React, specify an editor is a popup using colDef.cellEditorPopup=true. AG Grid React cannot depend on the editor component specifying if it's in a popup (via the isPopup() method on the editor), as React needs to know this information BEFORE the component is created.",ae._.doOnce(function(){return console.warn(o)},"jsEditorComp-isPopup-"+r.getColumn().getColId())),e&&n.getPopupPosition&&null!=n.getPopupPosition()&&(a="AG Grid: Found an issue in column "+s.getColId()+". If using React, specify an editor popup position using colDef.cellEditorPopupPosition=true. AG Grid React cannot depend on the editor component specifying it's position (via the getPopupPosition() method on the editor), as React needs to know this information BEFORE the component is created.",ae._.doOnce(function(){return console.warn(a)},"jsEditorComp-getPopupPosition-"+r.getColumn().getColId())),t.isCancelBeforeStart)&&t.isCancelBeforeStart()&&setTimeout(function(){R.stopEditing(!0),R.focusCell(!0)})},[]),ee=oe.useCallback(function(e){return k(!0,e)},[]),te=oe.useCallback(function(e){return k(!1,e)},[]),F=oe.useMemo(function(){return new ae.CssClassManager(function(){return M.current})},[]),D=(n=E,r=G,o=P.current,A=N,a=T,s=M,N=oe.useContext(ce),i=N.context,N.userComponentFactory,u=oe.useCallback(function(){var e,t=a.current;t&&((e=t.getGui())&&e.parentElement&&e.parentElement.removeChild(e),i.destroyBean(t),a.current=void 0)},[]),oe.useEffect(function(){var e=n&&n.compDetails&&!n.compDetails.componentFromFramework;if(null!=n&&e&&!(r&&null==o)){e=n.compDetails;if(a.current){var t=a.current,t=null!=t.refresh&&0==n.force&&t.refresh(e.params);if(!0===t||void 0===t)return;u()}t=e.newAgStackInstance();t&&(e=t.resolveNow(null,function(e){return e}))&&(t=e.getGui())&&((r?o:s.current).appendChild(t),a.current=e)}else u()},[n,r,A]),le(function(){return u}),oe.useRef()),ne=(oe.useEffect(function(){var e=D.current,t=E;D.current=E,null!=e&&null!=e.compDetails&&null!=t&&null!=t.compDetails&&(e=e.compDetails,t=t.compDetails,e.componentClass==t.componentClass)&&null!=O.current&&null!=O.current.refresh&&1!=O.current.refresh(t.params)&&d(function(e){return e+1})},[E]),oe.useEffect(function(){if(v&&!v.compDetails.componentFromFramework){var e,t=v.compDetails,n=!0===v.popup,r=function(e){e=e.newAgStackInstance();if(e)return e.resolveNow(null,function(e){return e})}(t);if(r)return e=r.getGui(),k(n,r),n||(null!=(t=(w?b:M).current)&&t.appendChild(e),r.afterGuiAttached&&r.afterGuiAttached()),y(r),function(){c.destroyBean(r),k(n,void 0),y(void 0),e&&e.parentElement&&e.parentElement.removeChild(e)}}},[v]),oe.useEffect(function(){var n,e;if(R&&c&&(b.current&&G))return n=[],e=function(e){var t;return e&&(t=e.getGui(),b.current.insertAdjacentElement("afterbegin",t),n.push(function(){c.destroyBean(e),ae._.removeFromParent(t)})),e},h&&e(R.createSelectionCheckbox()),g&&e(R.createDndSource()),C&&e(R.createRowDragComp()),function(){return n.forEach(function(e){return e()})}},[G,g,C,h,X]),ue(function(){var e;R&&(e=b.current||void 0,R.setComp({addOrRemoveCssClass:function(e,t){return F.addOrRemoveCssClass(e,t)},setUserStyles:function(e){return x(e)},getFocusableElement:function(){return M.current},setTabIndex:function(e){return L(e)},setRole:function(e){return H(e)},setColId:function(e){return j(e)},setTitle:function(e){return K(e)},setIncludeSelection:function(e){return Y(e)},setIncludeRowDrag:function(e){return q(e)},setIncludeDndSource:function(e){return z(e)},getCellEditor:function(){return I.current||null},getCellRenderer:function(){return O.current||T.current},getParentOfValue:function(){return P.current||b.current||M.current},setRenderDetails:function(e,t,n){f({value:t,compDetails:e,force:n})},setEditDetails:function(e,t,n){e?(m({compDetails:e,popup:t,popupPosition:n}),t||f(void 0)):m(void 0)}},M.current,e,l,p))}),oe.useMemo(function(){return!!(E&&E.compDetails&&E.compDetails.componentFromFramework&&pe(E.compDetails.componentClass))},[E])),re=(oe.useEffect(function(){var e;M.current&&(F.addOrRemoveCssClass("ag-cell-value",!G),F.addOrRemoveCssClass("ag-cell-inline-editing",!!v&&!v.popup),F.addOrRemoveCssClass("ag-cell-popup-editing",!!v&&!!v.popup),F.addOrRemoveCssClass("ag-cell-not-inline-editing",!v||!!v.popup),null!=(e=R.getRowCtrl()))&&e.setInlineEditingCss(!!v)}),oe.useMemo(function(){return R.getInstanceId()},[]));return se.createElement("div",{ref:M,style:_,tabIndex:B,role:U,"col-id":W,title:V},G?se.createElement("div",{className:"ag-cell-wrapper",role:"presentation",ref:e},t()):t())}),H=oe.memo(function(e){var t=oe.useContext(ce).context,n=e.rowCtrl,r=e.containerType,e=oe.useState(),o=e[0],a=e[1],e=oe.useState(),s=e[0],i=e[1],e=oe.useState(),u=e[0],c=e[1],e=oe.useState(),l=e[0],p=e[1],e=oe.useState(),f=e[0],m=e[1],e=oe.useState(),d=e[0],h=e[1],e=oe.useState({list:[],instanceIdMap:new Map}),C=e[0],g=e[1],e=oe.useState(),y=e[0],R=e[1],e=oe.useState(!1),E=e[0],v=e[1],e=oe.useState(n.getInitialRowTop(r)),S=e[0],w=e[1],e=oe.useState(n.getInitialTransform(r)),M=e[0],O=e[1],T=oe.useRef(null),I=oe.useRef(),b=oe.useRef(!1),e=oe.useState(0),P=e[0],A=e[1],N=(oe.useEffect(function(){var e;b.current||!y||10<P||((e=null==(e=T.current)?void 0:e.firstChild)?(n.setupDetailRowAutoHeight(e),b.current=!0):A(function(e){return e+1}))},[y,P]),oe.useMemo(function(){return new ae.CssClassManager(function(){return T.current})},[])),e=(ue(function(){if(n.isAlive())return n.setComp({setTop:function(e){return w(e)},setTransform:function(e){return O(e)},addOrRemoveCssClass:function(e,t){return N.addOrRemoveCssClass(e,t)},setDomOrder:function(e){return v(e)},setRowIndex:function(e){return a(e)},setRowId:function(e){return i(e)},setRowBusinessKey:function(e){return p(e)},setTabIndex:function(e){return m(e)},setUserStyles:function(e){return h(e)},setRole:function(e){return c(e)},setCellCtrls:function(i){return g(function(e){return n=e,e=i,E?(t={list:e,instanceIdMap:new Map},e.forEach(function(e){return t.instanceIdMap.set(e.getInstanceId(),e)}),t):(r=[],o=[],a=new Map,s=new Map,e.forEach(function(e){return s.set(e.getInstanceId(),e)}),n.list.forEach(function(e){var t=e.getInstanceId();s.has(t)&&(r.push(e),a.set(t,e))}),e.forEach(function(e){var t=e.getInstanceId();n.instanceIdMap.has(t)||(o.push(e),a.set(t,e))}),{list:D(r,o),instanceIdMap:a});var n,t,r,o,a,s})},showFullWidth:function(e){return R(e)},getFullWidthCellRenderer:function(){return I.current}},T.current,r),function(){n.unsetComp(r)}}),oe.useLayoutEffect(function(){return _(y,t,T.current,I)},[y]),oe.useMemo(function(){var e={top:S,transform:M};return Object.assign(e,d),e},[S,M,d])),G=y&&y.componentFromFramework,k=null!=C,F=oe.useMemo(function(){return!!((null==y?void 0:y.componentFromFramework)&&pe(y.componentClass))},[y]);return se.createElement("div",{ref:T,role:u,style:e,"row-index":o,"row-id":s,"row-business-key":l,tabIndex:f},k&&C.list.map(function(e){return se.createElement(U,{cellCtrl:e,editingRow:n.isEditing(),printLayout:n.isPrintLayout(),key:e.getInstanceId()})}),G&&(u=y.componentClass,se.createElement(se.Fragment,null,F&&se.createElement(u,ie({},y.params)),!F&&se.createElement(u,ie({},y.params,{ref:I})))))}),ne=oe.memo(function(e){var r=oe.useContext(ce).context,t=oe.useState(""),n=t[0],o=t[1],t=oe.useState([]),a=t[0],s=t[1],t=oe.useState(""),i=t[0],u=t[1],c=e.name,l=oe.useMemo(function(){return ae.getRowContainerTypeForName(c)},[c]),p=oe.useRef(null),f=oe.useRef(null),m=oe.useRef(null),d=oe.useRef([]),h=oe.useRef(!1),C=oe.useMemo(function(){return ae.RowContainerCtrl.getRowContainerCssClasses(c)},[c]),t=oe.useMemo(function(){return Q(C.wrapper)},[]),e=oe.useMemo(function(){return Q(C.viewport)},[]),g=oe.useMemo(function(){return Q(C.container)},[]),y=c===ae.RowContainerName.CENTER,R=c===ae.RowContainerName.TOP_CENTER||c===ae.RowContainerName.BOTTOM_CENTER||c===ae.RowContainerName.STICKY_TOP_CENTER,E=!y&&!R;function v(){s(function(e){var t,n=d.current;return h.current?n:(t=e.filter(function(e){return 0<=n.indexOf(e)}),e=n.filter(function(e){return t.indexOf(e)<0}),D(t,e))})}ee(" AG Row Container "+c+" ",y?p:R?f:m),ue(function(){var e=[],t={setViewportHeight:o,setRowCtrls:function(e){d.current!==e&&(d.current=e,v())},setDomOrder:function(e){h.current!=e&&(h.current=e,v())},setContainerWidth:function(e){return u(e)}},n=r.createBean(new ae.RowContainerCtrl(c));return e.push(n),n.setComp(t,m.current,f.current,p.current),function(){r.destroyBeans(e)}});function S(){return se.createElement("div",{className:g,ref:m,role:a.length?"rowgroup":"presentation",style:M},a.map(function(e){return se.createElement(H,{rowCtrl:e,containerType:l,key:e.getInstanceId()})}))}var w=oe.useMemo(function(){return{height:n}},[n]),M=oe.useMemo(function(){return{width:i}},[i]);return se.createElement(se.Fragment,null,y&&se.createElement("div",{className:t,ref:p,role:"presentation"},se.createElement("div",{className:e,ref:f,role:"presentation",style:w},S())),R&&se.createElement("div",{className:e,ref:f,role:"presentation",style:w},S()),E&&S())}),W=oe.memo(function(){function o(e){return se.createElement(ne,{name:e,key:e+"-container"})}function e(e){var t=e.section,n=e.children,r=e.className,e=e.style;return se.createElement("div",{ref:t,className:r,role:"presentation",style:e},n.map(o))}var t=oe.useContext(ce),a=t.context,s=t.agStackComponentsRegistry,i=t.resizeObserverService,t=oe.useState(""),n=t[0],u=t[1],t=oe.useState(0),r=t[0],c=t[1],t=oe.useState(0),l=t[0],p=t[1],t=oe.useState(0),f=t[0],m=t[1],t=oe.useState(0),d=t[0],h=t[1],t=oe.useState("0px"),C=t[0],g=t[1],t=oe.useState("0px"),y=t[0],R=t[1],t=oe.useState("100%"),E=t[0],v=t[1],t=oe.useState(""),S=t[0],w=t[1],t=oe.useState(""),M=t[0],_=t[1],t=oe.useState(""),O=t[0],x=t[1],t=oe.useState(null),T=t[0],B=t[1],t=oe.useState(""),I=t[0],L=t[1],t=oe.useState(null),b=t[0],U=t[1],t=oe.useState("ag-layout-normal"),P=t[0],H=t[1],W=oe.useMemo(function(){return new ae.CssClassManager(function(){return A.current})},[]),A=oe.useRef(null),N=oe.useRef(null),G=oe.useRef(null),k=oe.useRef(null),F=oe.useRef(null),D=oe.useRef(null),t=(ee(" AG Grid Body ",A),ee(" AG Pinned Top ",N),ee(" AG Sticky Top ",G),ee(" AG Middle ",F),ee(" AG Pinned Bottom ",D),le(function(){var e,t,n=[],r=[];if(a)return e=function(e){e=s.getComponentClass(e),e=a.createBean(new e);return n.push(e),e},A.current.appendChild(document.createComment(" AG Fake Horizontal Scroll ")),A.current.appendChild(e("AG-FAKE-HORIZONTAL-SCROLL").getGui()),A.current.appendChild(document.createComment(" AG Overlay Wrapper ")),A.current.appendChild(e("AG-OVERLAY-WRAPPER").getGui()),k.current.appendChild(document.createComment(" AG Fake Vertical Scroll ")),k.current.appendChild(e("AG-FAKE-VERTICAL-SCROLL").getGui()),e={setRowAnimationCssOnBodyViewport:u,setColumnCount:c,setRowCount:p,setTopHeight:m,setBottomHeight:h,setStickyTopHeight:g,setStickyTopTop:R,setStickyTopWidth:v,setTopDisplay:w,setBottomDisplay:_,setColumnMovingCss:function(e,t){return W.addOrRemoveCssClass(e,t)},updateLayoutClasses:H,setAlwaysVerticalScrollClass:B,setPinnedTopBottomOverflowY:L,setCellSelectableCss:U,setBodyViewportWidth:x,registerBodyViewportResizeListener:function(e){var t=i.observeResize(F.current,e);r.push(function(){return t()})}},t=a.createBean(new ae.GridBodyCtrl),n.push(t),t.setComp(e,A.current,F.current,N.current,D.current,G.current),function(){a.destroyBeans(n),r.forEach(function(e){return e()})}}),oe.useMemo(function(){return Q("ag-root","ag-unselectable",P)},[P])),j=oe.useMemo(function(){return Q("ag-body-viewport",n,P,T,b)},[n,P,T,b]),V=oe.useMemo(function(){return Q("ag-body",P)},[P]),K=oe.useMemo(function(){return Q("ag-body-clipper",P)},[P]),Y=oe.useMemo(function(){return Q("ag-floating-top",b)},[b]),q=oe.useMemo(function(){return Q("ag-sticky-top",b)},[b]),z=oe.useMemo(function(){return Q("ag-floating-bottom",b)},[b]),$=oe.useMemo(function(){return{height:f,minHeight:f,display:S,overflowY:I}},[f,S,I]),X=oe.useMemo(function(){return{height:C,top:y,width:E}},[C,y,E]),Z=oe.useMemo(function(){return{height:d,minHeight:d,display:M,overflowY:I}},[d,M,I]),J=oe.useMemo(function(){return{width:O}},[O]);return se.createElement("div",{ref:A,className:t,role:"treegrid","aria-colcount":r,"aria-rowcount":l},se.createElement(te,null),e({section:N,className:Y,style:$,children:[ae.RowContainerName.TOP_LEFT,ae.RowContainerName.TOP_CENTER,ae.RowContainerName.TOP_RIGHT,ae.RowContainerName.TOP_FULL_WIDTH]}),se.createElement("div",{className:V,ref:k,role:"presentation"},se.createElement("div",{className:K,role:"presentation"},e({section:F,className:j,style:J,children:[ae.RowContainerName.LEFT,ae.RowContainerName.CENTER,ae.RowContainerName.RIGHT,ae.RowContainerName.FULL_WIDTH]}))),e({section:G,className:q,style:X,children:[ae.RowContainerName.STICKY_TOP_LEFT,ae.RowContainerName.STICKY_TOP_CENTER,ae.RowContainerName.STICKY_TOP_RIGHT,ae.RowContainerName.STICKY_TOP_FULL_WIDTH]}),e({section:D,className:z,style:Z,children:[ae.RowContainerName.BOTTOM_LEFT,ae.RowContainerName.BOTTOM_CENTER,ae.RowContainerName.BOTTOM_RIGHT,ae.RowContainerName.BOTTOM_FULL_WIDTH]}))}),o=oe.forwardRef(function(e,t){function n(e){var t="top"===e?ae.TabGuardClassNames.TAB_GUARD_TOP:ae.TabGuardClassNames.TAB_GUARD_BOTTOM;return se.createElement("div",{className:ae.TabGuardClassNames.TAB_GUARD+" "+t,role:"presentation",tabIndex:p,ref:"top"===e?u:c})}var r=e.children,o=e.eFocusableElement,a=e.onTabKeyDown,s=e.gridCtrl,i=oe.useContext(ce).context,u=oe.useRef(null),c=oe.useRef(null),l=oe.useRef(),e=oe.useState(),p=e[0],f=e[1];oe.useImperativeHandle(t,function(){return{forceFocusOutOfContainer:function(){l.current.forceFocusOutOfContainer()}}}),le(function(){var e=u.current,t=c.current,n=l.current=i.createBean(new ae.TabGuardCtrl({comp:{setTabIndex:function(e){return f(null==e?void 0:parseInt(e,10))}},eTopGuard:e,eBottomGuard:t,eFocusableElement:o,onTabKeyDown:a,focusInnerElement:function(e){return s.focusInnerElement(e)}}));return function(){i.destroyBean(n)}});return se.createElement(se.Fragment,null,n("top"),r,n("bottom"))}),j=oe.memo(o),V=oe.memo(function(e){var p=e.context,e=oe.useState(""),t=e[0],n=e[1],e=oe.useState(""),r=e[0],o=e[1],e=oe.useState(""),a=e[0],s=e[1],e=oe.useState(null),i=e[0],u=e[1],e=oe.useState(null),c=e[0],l=e[1],e=oe.useState(!1),f=e[0],m=e[1],e=oe.useState(),d=e[0],h=e[1],C=oe.useRef(null),g=oe.useRef(null),y=oe.useRef(),R=oe.useRef(null),E=oe.useRef(function(){}),e=oe.useCallback(function(){},[]),v=oe.useMemo(function(){return p.getBean("beans")},[]),S=(ee(" AG Grid ",g),le(function(){var e=C.current=p.createBean(new ae.GridCtrl);return function(){p.destroyBean(e),C.current=null}}),le(function(){var e=C.current,t=(E.current=e.focusInnerElement.bind(e),{destroyGridUi:function(){},setRtlClass:n,addOrRemoveKeyboardFocusClass:function(e){return o(e?ae.FocusService.AG_KEYBOARD_FOCUS:"")},forceFocusOutOfContainer:function(){y.current.forceFocusOutOfContainer()},updateLayoutClasses:s,getFocusableContainers:function(){var e=[],t=g.current.querySelector(".ag-root"),n=g.current.querySelector(".ag-side-bar:not(.ag-hidden)");return t&&e.push(t),n&&e.push(n),e},setCursor:u,setUserSelect:l});e.setComp(t,g.current,g.current),m(!0)}),oe.useEffect(function(){var e,t,n,r,o,a,s,i,u,c,l;if(d)return e=C.current,t=[],c=(o=v.agStackComponentsRegistry).getComponentClass("AG-GRID-HEADER-DROP-ZONES"),u=o.getComponentClass("AG-SIDE-BAR"),n=o.getComponentClass("AG-STATUS-BAR"),r=o.getComponentClass("AG-WATERMARK"),o=o.getComponentClass("AG-PAGINATION"),a=[],s=g.current,i=R.current,e.showDropZones()&&c&&(l=(c=p.createBean(new c)).getGui(),s.insertAdjacentElement("afterbegin",l),a.push(l),t.push(c)),e.showSideBar()&&u&&(l=(c=p.createBean(new u)).getGui(),(u=i.querySelector(".ag-tab-guard-bottom"))&&(u.insertAdjacentElement("beforebegin",l),a.push(l)),t.push(c)),e.showStatusBar()&&n&&(l=(i=p.createBean(new n)).getGui(),s.insertAdjacentElement("beforeend",l),a.push(l),t.push(i)),o&&(l=(u=p.createBean(new o)).getGui(),s.insertAdjacentElement("beforeend",l),a.push(l),t.push(u)),e.showWatermark()&&r&&(l=(c=p.createBean(new r)).getGui(),s.insertAdjacentElement("beforeend",l),a.push(l),t.push(c)),function(){p.destroyBeans(t),a.forEach(function(e){e.parentElement&&e.parentElement.removeChild(e)})}},[d]),oe.useMemo(function(){return Q("ag-root-wrapper",t,r,a)},[t,r,a])),w=oe.useMemo(function(){return Q("ag-root-wrapper-body","ag-focus-managed",a)},[a]),M=oe.useMemo(function(){return{userSelect:null!=c?c:"",WebkitUserSelect:null!=c?c:"",cursor:null!=i?i:""}},[c,i]),O=R.current,T=oe.useCallback(function(e){y.current=e,h(!0)},[]);return se.createElement("div",{ref:g,className:S,style:M,role:"presentation"},se.createElement("div",{className:w,ref:R,role:"presentation"},f&&O&&se.createElement(ce.Provider,{value:v},se.createElement(j,{ref:T,eFocusableElement:O,onTabKeyDown:e,gridCtrl:C.current},se.createElement(W,null)))))});n(f,K=oe.Component),f.prototype.render=function(){return this.state.context,this.state.context&&(this.renderedAfterMount=!0),se.createElement("div",{style:this.createStyleForDiv(),className:this.props.className,ref:this.eGui},this.state.context&&se.createElement(V,{context:this.state.context}),this.portalManager.getPortals())},f.prototype.createStyleForDiv=function(){return ie({height:"100%"},this.props.containerStyle||{})},f.prototype.componentDidMount=function(){var e,t=this;this.mounted||(this.mounted=!0,e=this.props.modules||[],e={providedBeanInstances:{frameworkComponentWrapper:new q(this.portalManager)},modules:e,frameworkOverrides:new X(!0)},this.gridOptions=this.props.gridOptions||{},this.gridOptions=ae.ComponentUtil.copyAttributesToGridOptions(this.gridOptions,this.props),this.checkForDeprecations(this.props),(new ae.GridCoreCreator).create(this.eGui.current,this.gridOptions,function(e){t.setState({context:e}),e.getBean(ae.CtrlsService.NAME).whenReady(function(){t.api=t.gridOptions.api,t.columnApi=t.gridOptions.columnApi,t.props.setGridApi(t.api,t.columnApi),t.destroyFuncs.push(function(){return t.api.destroy()})})},function(e){e.getBean(ae.CtrlsService.NAME).whenReady(function(){t.whenReadyFuncs.forEach(function(e){return e()}),t.whenReadyFuncs.length=0,t.ready=!0})},e))},f.prototype.checkForDeprecations=function(e){e.rowDataChangeDetectionStrategy&&ae._.doOnce(function(){return console.warn("AG Grid: Since v29 rowDataChangeDetectionStrategy has been deprecated. Row data property changes will be compared by reference via triple equals ===. See https://ag-grid.com/react-data-grid/react-hooks/")},"rowDataChangeDetectionStrategy_Deprecation")},f.prototype.componentWillUnmount=function(){this.renderedAfterMount&&(this.destroyFuncs.forEach(function(e){return e()}),this.destroyFuncs.length=0)},f.prototype.componentDidUpdate=function(e){this.processPropsChanges(e,this.props)},f.prototype.processPropsChanges=function(e,t){var n={};this.extractGridPropertyChanges(e,t,n),this.processChanges(n)},f.prototype.extractGridPropertyChanges=function(t,n,r){var o=!!n.debug;Object.keys(n).forEach(function(e){ae.ComponentUtil.ALL_PROPERTIES_SET.has(e)&&t[e]!==n[e]&&(o&&console.log("agGridReact: ["+e+"] property changed"),r[e]={previousValue:t[e],currentValue:n[e]})}),ae.ComponentUtil.EVENT_CALLBACKS.forEach(function(e){t[e]!==n[e]&&(o&&console.log("agGridReact: ["+e+"] event callback changed"),r[e]={previousValue:t[e],currentValue:n[e]})})},f.prototype.processChanges=function(e){var t=this;this.processWhenReady(function(){return ae.ComponentUtil.processOnChange(e,t.api)})},f.prototype.processWhenReady=function(e){this.ready?e():this.whenReadyFuncs.push(e)};var K,E=f;function f(e){var t=K.call(this,e)||this;return t.props=e,t.destroyFuncs=[],t.eGui=se.createRef(),t.whenReadyFuncs=[],t.ready=!1,t.renderedAfterMount=!1,t.mounted=!1,t.state={context:void 0},t.portalManager=new G(t,e.componentWrappingElement,e.maxComponentCreationTimeMs),t.destroyFuncs.push(function(){return t.portalManager.destroy()}),t}n(m,Y=ae.BaseComponentWrapper),m.prototype.createWrapper=function(e,t){return new N(e,this.parent,t)};var Y,q=m;function m(e){var t=Y.call(this)||this;return t.parent=e,t}var z,$=oe.forwardRef(function(r,e){var t=oe.useContext(ce),o=t.ctrlsFactory,a=t.context,s=t.gridOptionsService,i=t.resizeObserverService,u=t.clientSideRowModel,c=t.serverSideRowModel,t=oe.useState(new P),n=t[0],l=t[1],t=oe.useState(new P),p=t[0],f=t[1],t=oe.useState(),m=t[0],d=t[1],t=oe.useState(),h=t[0],C=t[1],g=oe.useRef(),y=oe.useRef(null),t=oe.useMemo(function(){return n.toString()+" ag-details-row"},[n]),R=oe.useMemo(function(){return p.toString()+" ag-details-grid"},[p]),e=(e&&oe.useImperativeHandle(e,function(){return{refresh:function(){return g.current.refresh()}}}),le(function(){r.template&&"string"==typeof r.template&&console.warn("AG Grid: detailCellRendererParams.template is not supported by React - this only works with frameworks that work against String templates. To change the template, please provide your own React Detail Cell Renderer.")}),le(function(){var e,t={addOrRemoveCssClass:function(t,n){return l(function(e){return e.setClass(t,n)})},addOrRemoveDetailGridCssClass:function(t,n){return f(function(e){return e.setClass(t,n)})},setDetailGrid:function(e){return d(e)},setRowData:function(e){return C(e)},getGui:function(){return y.current}},n=o.getInstance("detailCellRenderer");if(n)return a.createBean(n),n.init(t,r),g.current=n,s.is("detailRowAutoHeight")&&(e=i.observeResize(y.current,t=function(){var e;null!=y.current&&null!=(e=y.current.clientHeight)&&0<e&&setTimeout(function(){r.node.setRowHeight(e),u?u.onRowHeightChanged():c&&c.onRowHeightChanged()},0)}),t()),function(){a.destroyBean(n),e&&e()}}),oe.useCallback(function(e,t){g.current.registerDetailWithMaster(e,t)},[]));return se.createElement("div",{className:t,ref:y},m&&se.createElement(E,ie({className:R},m,{rowData:h,setGridApi:e})))}),X=(n(d,z=ae.VanillaFrameworkOverrides),d.prototype.frameworkComponent=function(e){if(this.reactUi)return this.frameworkComponents[e]},d.prototype.isFrameworkComponent=function(e){return!(!e||(e=e.prototype)&&"getGui"in e)},d);function d(e){var t=z.call(this)||this;return t.frameworkComponents={agGroupCellRenderer:b,agGroupRowRenderer:b,agDetailCellRenderer:$},t.reactUi=e,t}n(C,Z=oe.Component),C.prototype.render=function(){var t=this;return se.createElement("div",{style:this.createStyleForDiv(),className:this.props.className,ref:function(e){t.eGridDiv=e}},this.portalManager.getPortals())},C.prototype.createStyleForDiv=function(){return ie({height:"100%"},this.props.containerStyle||{})},C.prototype.componentDidMount=function(){var e=this.props.modules||[],e={providedBeanInstances:{agGridReact:this,frameworkComponentWrapper:new re(this,this.portalManager)},modules:e,frameworkOverrides:new X(!1)},t=this.props.gridOptions||{};this.gridOptions=ae.ComponentUtil.copyAttributesToGridOptions(t,this.props),this.checkForDeprecations(this.props),new ae.Grid(this.eGridDiv,this.gridOptions,e),this.api=this.gridOptions.api,this.columnApi=this.gridOptions.columnApi,this.props.setGridApi(this.api,this.columnApi)},C.prototype.checkForDeprecations=function(e){e.rowDataChangeDetectionStrategy&&ae._.doOnce(function(){return console.warn("AG Grid: Since v29 rowDataChangeDetectionStrategy has been deprecated. Row data property changes will be compared by reference via triple equals ===. See https://ag-grid.com/react-data-grid/react-hooks/")},"rowDataChangeDetectionStrategy_Deprecation")},C.prototype.shouldComponentUpdate=function(e){return this.processPropsChanges(this.props,e),!1},C.prototype.componentDidUpdate=function(e){this.processPropsChanges(e,this.props)},C.prototype.processPropsChanges=function(e,t){var n={};this.extractGridPropertyChanges(e,t,n),this.processSynchronousChanges(n),this.processAsynchronousChanges(n)},C.prototype.extractGridPropertyChanges=function(t,n,r){var o=!!n.debug;Object.keys(n).forEach(function(e){ae.ComponentUtil.ALL_PROPERTIES_SET.has(e)&&t[e]!==n[e]&&(o&&console.log("agGridReact: ["+e+"] property changed"),r[e]={previousValue:t[e],currentValue:n[e]})}),ae.ComponentUtil.EVENT_CALLBACKS.forEach(function(e){t[e]!==n[e]&&(o&&console.log("agGridReact: ["+e+"] event callback changed"),r[e]={previousValue:t[e],currentValue:n[e]})})},C.prototype.componentWillUnmount=function(){this.api&&(this.api.destroy(),this.api=null),this.destroyed=!0,this.portalManager.destroy()},C.prototype.isDisableStaticMarkup=function(){return!0===this.props.disableStaticMarkup},C.prototype.isLegacyComponentRendering=function(){return!0===this.props.legacyComponentRendering},C.prototype.processSynchronousChanges=function(e){var t,n=ie({},e);return 0<Object.keys(n).length&&(t={},this.SYNCHRONOUS_CHANGE_PROPERTIES.forEach(function(e){n[e]&&(t[e]=n[e],delete n[e])}),0<Object.keys(t).length)&&this.api&&ae.ComponentUtil.processOnChange(t,this.api),n},C.prototype.processAsynchronousChanges=function(e){var t=this;0<Object.keys(e).length&&window.setTimeout(function(){t.api&&ae.ComponentUtil.processOnChange(e,t.api)})},C.defaultProps={legacyComponentRendering:!1,disableStaticMarkup:!1,maxComponentCreationTimeMs:C.MAX_COMPONENT_CREATION_TIME_IN_MS=1e3};var Z,h=C;function C(e){var t=Z.call(this,e)||this;return t.props=e,t.api=null,t.destroyed=!1,t.SYNCHRONOUS_CHANGE_PROPERTIES=["context"],t.portalManager=new G(t,e.componentWrappingElement,e.maxComponentCreationTimeMs),t}function g(e,t){e.forEach(function(e){h[e]=t})}h.propTypes={gridOptions:t.object},g(ae.ComponentUtil.EVENT_CALLBACKS,t.func),g(ae.ComponentUtil.BOOLEAN_PROPERTIES,t.bool),g(ae.ComponentUtil.STRING_PROPERTIES,t.string),g(ae.ComponentUtil.OBJECT_PROPERTIES,t.object),g(ae.ComponentUtil.ARRAY_PROPERTIES,t.array),g(ae.ComponentUtil.NUMBER_PROPERTIES,t.number),g(ae.ComponentUtil.FUNCTION_PROPERTIES,t.func);n(y,J=ae.BaseComponentWrapper),y.prototype.createWrapper=function(e,t){return this.agGridReact.isLegacyComponentRendering()?new I(e,this.agGridReact,this.portalManager,t):new N(e,this.portalManager,t)};var J,re=y;function y(e,t){var n=J.call(this)||this;return n.agGridReact=e,n.portalManager=t,n}n(v,R=oe.Component),v.prototype.render=function(){return this.props.suppressReactUi?se.createElement(h,ie({},this.props,{setGridApi:this.setGridApi})):se.createElement(E,ie({},this.props,{setGridApi:this.setGridApi}))};var R,o=v;function v(){var n=null!==R&&R.apply(this,arguments)||this;return n.setGridApi=function(e,t){n.api=e,n.columnApi=t},n}e.AgGridReact=o,e.AgGridReactLegacy=h,e.AgGridReactFire=E,Object.defineProperty(e,"__esModule",{value:!0})}); |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v29.1.0 | ||
// ag-grid-react v29.2.0 | ||
import { Component } from 'react'; | ||
@@ -3,0 +3,0 @@ import { AgGridReactProps, AgReactUiProps } from './shared/interfaces'; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v29.1.0 | ||
// ag-grid-react v29.2.0 | ||
"use strict"; | ||
@@ -3,0 +3,0 @@ var __extends = (this && this.__extends) || (function () { |
@@ -1,3 +0,3 @@ | ||
// ag-grid-react v29.1.0 | ||
// ag-grid-react v29.2.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.1.0 | ||
// ag-grid-react v29.2.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.1.0 | ||
// ag-grid-react v29.2.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.1.0 | ||
// ag-grid-react v29.2.0 | ||
"use strict"; | ||
@@ -3,0 +3,0 @@ var __extends = (this && this.__extends) || (function () { |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v29.1.0 | ||
// ag-grid-react v29.2.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.1.0 | ||
// ag-grid-react v29.2.0 | ||
"use strict"; | ||
@@ -3,0 +3,0 @@ var __extends = (this && this.__extends) || (function () { |
@@ -1,4 +0,4 @@ | ||
// ag-grid-react v29.1.0 | ||
// ag-grid-react v29.2.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.1.0 | ||
// ag-grid-react v29.2.0 | ||
"use strict"; | ||
@@ -3,0 +3,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v29.1.0 | ||
// ag-grid-react v29.2.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.1.0 | ||
// ag-grid-react v29.2.0 | ||
"use strict"; | ||
@@ -3,0 +3,0 @@ var __extends = (this && this.__extends) || (function () { |
@@ -1,4 +0,4 @@ | ||
// ag-grid-react v29.1.0 | ||
// ag-grid-react v29.2.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.1.0 | ||
// ag-grid-react v29.2.0 | ||
"use strict"; | ||
@@ -3,0 +3,0 @@ var __importDefault = (this && this.__importDefault) || function (mod) { |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v29.1.0 | ||
// ag-grid-react v29.2.0 | ||
import React from "react"; | ||
@@ -3,0 +3,0 @@ import { IDetailCellRendererParams } from "ag-grid-community"; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v29.1.0 | ||
// ag-grid-react v29.2.0 | ||
"use strict"; | ||
@@ -3,0 +3,0 @@ var __assign = (this && this.__assign) || function () { |
@@ -1,4 +0,4 @@ | ||
// ag-grid-react v29.1.0 | ||
// ag-grid-react v29.2.0 | ||
import React from 'react'; | ||
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>>; | ||
declare const GroupCellRenderer: React.ForwardRefExoticComponent<import("ag-grid-community").IGroupCellRendererParams<any, any> & import("ag-grid-community").ICellRendererParams<any, any, any> & import("ag-grid-community").IGroupCellRendererFullRowParams & React.RefAttributes<unknown>>; | ||
export default GroupCellRenderer; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v29.1.0 | ||
// ag-grid-react v29.2.0 | ||
"use strict"; | ||
@@ -60,6 +60,6 @@ var __assign = (this && this.__assign) || function () { | ||
}); | ||
react_1.useEffect(function () { | ||
react_1.useLayoutEffect(function () { | ||
return jsComp_1.showJsComp(innerCompDetails, context, eValueRef.current); | ||
}, [innerCompDetails]); | ||
useEffectOnce_1.useEffectOnce(function () { | ||
useEffectOnce_1.useLayoutEffectOnce(function () { | ||
var compProxy = { | ||
@@ -66,0 +66,0 @@ setInnerRenderer: function (details, valueToDisplay) { |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v29.1.0 | ||
// ag-grid-react v29.2.0 | ||
import { CellCtrl, UserCompDetails } from 'ag-grid-community'; | ||
@@ -3,0 +3,0 @@ import React from 'react'; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v29.1.0 | ||
// ag-grid-react v29.2.0 | ||
"use strict"; | ||
@@ -103,10 +103,9 @@ var __assign = (this && this.__assign) || function () { | ||
var _e = react_1.useState(), tabIndex = _e[0], setTabIndex = _e[1]; | ||
var _f = react_1.useState(), ariaDescribedBy = _f[0], setAriaDescribedBy = _f[1]; | ||
var _g = react_1.useState(), role = _g[0], setRole = _g[1]; | ||
var _h = react_1.useState(), colId = _h[0], setColId = _h[1]; | ||
var _j = react_1.useState(), title = _j[0], setTitle = _j[1]; | ||
var _k = react_1.useState(false), includeSelection = _k[0], setIncludeSelection = _k[1]; | ||
var _l = react_1.useState(false), includeRowDrag = _l[0], setIncludeRowDrag = _l[1]; | ||
var _m = react_1.useState(false), includeDndSource = _m[0], setIncludeDndSource = _m[1]; | ||
var _o = react_1.useState(), jsEditorComp = _o[0], setJsEditorComp = _o[1]; | ||
var _f = react_1.useState(), role = _f[0], setRole = _f[1]; | ||
var _g = react_1.useState(), colId = _g[0], setColId = _g[1]; | ||
var _h = react_1.useState(), title = _h[0], setTitle = _h[1]; | ||
var _j = react_1.useState(false), includeSelection = _j[0], setIncludeSelection = _j[1]; | ||
var _k = react_1.useState(false), includeRowDrag = _k[0], setIncludeRowDrag = _k[1]; | ||
var _l = react_1.useState(false), includeDndSource = _l[0], setIncludeDndSource = _l[1]; | ||
var _m = react_1.useState(), jsEditorComp = _m[0], setJsEditorComp = _m[1]; | ||
var forceWrapper = react_1.useMemo(function () { return cellCtrl.isForceWrapper(); }, []); | ||
@@ -119,3 +118,3 @@ var eGui = react_1.useRef(null); | ||
var eCellWrapper = react_1.useRef(); | ||
var _p = react_1.useState(0), cellWrapperVersion = _p[0], setCellWrapperVersion = _p[1]; | ||
var _o = react_1.useState(0), cellWrapperVersion = _o[0], setCellWrapperVersion = _o[1]; | ||
var setCellWrapperRef = react_1.useCallback(function (ref) { | ||
@@ -127,3 +126,3 @@ eCellWrapper.current = ref; | ||
var eCellValue = react_1.useRef(); | ||
var _q = react_1.useState(0), cellValueVersion = _q[0], setCellValueVersion = _q[1]; | ||
var _p = react_1.useState(0), cellValueVersion = _p[0], setCellValueVersion = _p[1]; | ||
var setCellValueRef = react_1.useCallback(function (ref) { | ||
@@ -221,5 +220,2 @@ eCellValue.current = ref; | ||
} | ||
var cellId = "cell-" + cellCtrl.getInstanceId(); | ||
var describedByIds = []; | ||
describedByIds.push(cellId); | ||
if (!eCellWrapper.current || !showCellWrapper) { | ||
@@ -242,3 +238,2 @@ return; | ||
var checkboxSelectionComp = cellCtrl.createSelectionCheckbox(); | ||
describedByIds.push(checkboxSelectionComp.getCheckboxId()); | ||
addComp(checkboxSelectionComp); | ||
@@ -252,3 +247,2 @@ } | ||
} | ||
setAriaDescribedBy(describedByIds.join(' ')); | ||
return function () { return destroyFuncs.forEach(function (f) { return f(); }); }; | ||
@@ -326,6 +320,6 @@ }, [showCellWrapper, includeDndSource, includeRowDrag, includeSelection, cellWrapperVersion]); | ||
(editDetails != null && jsxEditValue(editDetails, setInlineCellEditorRef, setPopupCellEditorRef, eGui.current, cellCtrl, jsEditorComp)))); }; | ||
return (react_1.default.createElement("div", { ref: eGui, style: userStyles, tabIndex: tabIndex, role: role, "col-id": colId, title: title, "aria-describedby": ariaDescribedBy }, showCellWrapper | ||
? (react_1.default.createElement("div", { className: "ag-cell-wrapper", role: "presentation", "aria-hidden": "true", ref: setCellWrapperRef }, showContents())) | ||
return (react_1.default.createElement("div", { ref: eGui, style: userStyles, tabIndex: tabIndex, role: role, "col-id": colId, title: title }, showCellWrapper | ||
? (react_1.default.createElement("div", { className: "ag-cell-wrapper", role: "presentation", ref: setCellWrapperRef }, showContents())) | ||
: showContents())); | ||
}; | ||
exports.default = react_1.memo(CellComp); |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v29.1.0 | ||
// ag-grid-react v29.2.0 | ||
import { CellCtrl } from 'ag-grid-community'; | ||
@@ -3,0 +3,0 @@ import React from 'react'; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v29.1.0 | ||
// ag-grid-react v29.2.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.1.0 | ||
// ag-grid-react v29.2.0 | ||
import { ICellRendererComp } from 'ag-grid-community'; | ||
@@ -3,0 +3,0 @@ import { MutableRefObject } from 'react'; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v29.1.0 | ||
// ag-grid-react v29.2.0 | ||
"use strict"; | ||
@@ -3,0 +3,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -1,4 +0,4 @@ | ||
// ag-grid-react v29.1.0 | ||
// ag-grid-react v29.2.0 | ||
import React from 'react'; | ||
declare const _default: React.MemoExoticComponent<() => JSX.Element>; | ||
export default _default; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v29.1.0 | ||
// ag-grid-react v29.2.0 | ||
"use strict"; | ||
@@ -47,6 +47,5 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
var _m = react_1.useState(''), bodyViewportWidth = _m[0], setBodyViewportWidth = _m[1]; | ||
var _o = react_1.useState(null), movingCss = _o[0], setMovingCss = _o[1]; | ||
var _p = react_1.useState(null), forceVerticalScrollClass = _p[0], setForceVerticalScrollClass = _p[1]; | ||
var _q = react_1.useState(''), topAndBottomOverflowY = _q[0], setTopAndBottomOverflowY = _q[1]; | ||
var _r = react_1.useState(null), cellSelectableCss = _r[0], setCellSelectableCss = _r[1]; | ||
var _o = react_1.useState(null), forceVerticalScrollClass = _o[0], setForceVerticalScrollClass = _o[1]; | ||
var _p = react_1.useState(''), topAndBottomOverflowY = _p[0], setTopAndBottomOverflowY = _p[1]; | ||
var _q = react_1.useState(null), cellSelectableCss = _q[0], setCellSelectableCss = _q[1]; | ||
// we initialise layoutClass to 'ag-layout-normal', because if we don't, the comp will initially | ||
@@ -57,3 +56,4 @@ // render with no width (as ag-layout-normal sets width to 0, which is needed for flex) which | ||
// problem as the UI will finish initialising before we set data. | ||
var _s = react_1.useState('ag-layout-normal'), layoutClass = _s[0], setLayoutClass = _s[1]; | ||
var _r = react_1.useState('ag-layout-normal'), layoutClass = _r[0], setLayoutClass = _r[1]; | ||
var cssClassManager = react_1.useMemo(function () { return new ag_grid_community_1.CssClassManager(function () { return eRoot.current; }); }, []); | ||
var eRoot = react_1.useRef(null); | ||
@@ -99,3 +99,3 @@ var eTop = react_1.useRef(null); | ||
setBottomDisplay: setBottomDisplay, | ||
setColumnMovingCss: setMovingCss, | ||
setColumnMovingCss: function (cssClass, flag) { return cssClassManager.addOrRemoveCssClass(cssClass, flag); }, | ||
updateLayoutClasses: setLayoutClass, | ||
@@ -120,4 +120,4 @@ setAlwaysVerticalScrollClass: setForceVerticalScrollClass, | ||
var rootClasses = react_1.useMemo(function () { | ||
return utils_1.classesList('ag-root', 'ag-unselectable', movingCss, layoutClass); | ||
}, [movingCss, layoutClass]); | ||
return utils_1.classesList('ag-root', 'ag-unselectable', layoutClass); | ||
}, [layoutClass]); | ||
var bodyViewportClasses = react_1.useMemo(function () { | ||
@@ -124,0 +124,0 @@ return utils_1.classesList('ag-body-viewport', rowAnimationClass, layoutClass, forceVerticalScrollClass, cellSelectableCss); |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v29.1.0 | ||
// ag-grid-react v29.2.0 | ||
import { Context } from 'ag-grid-community'; | ||
@@ -3,0 +3,0 @@ import React from 'react'; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v29.1.0 | ||
// ag-grid-react v29.2.0 | ||
"use strict"; | ||
@@ -3,0 +3,0 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { |
@@ -1,4 +0,4 @@ | ||
// ag-grid-react v29.1.0 | ||
// ag-grid-react v29.2.0 | ||
import React from 'react'; | ||
declare const _default: React.MemoExoticComponent<() => JSX.Element>; | ||
export default _default; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v29.1.0 | ||
// ag-grid-react v29.2.0 | ||
"use strict"; | ||
@@ -37,3 +37,3 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
var eGui = react_1.useRef(null); | ||
useEffectOnce_1.useEffectOnce(function () { | ||
useEffectOnce_1.useLayoutEffectOnce(function () { | ||
var compProxy = { | ||
@@ -40,0 +40,0 @@ addOrRemoveCssClass: function (name, on) { return setCssClasses(function (prev) { return prev.setClass(name, on); }); }, |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v29.1.0 | ||
// ag-grid-react v29.2.0 | ||
import React from 'react'; | ||
@@ -3,0 +3,0 @@ import { HeaderCellCtrl } from 'ag-grid-community'; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v29.1.0 | ||
// ag-grid-react v29.2.0 | ||
"use strict"; | ||
@@ -70,3 +70,3 @@ var __assign = (this && this.__assign) || function () { | ||
// js comps | ||
react_1.useEffect(function () { return jsComp_1.showJsComp(userCompDetails, context, eHeaderCompWrapper.current, userCompRef); }, [userCompDetails]); | ||
react_1.useLayoutEffect(function () { return jsComp_1.showJsComp(userCompDetails, context, eHeaderCompWrapper.current, userCompRef); }, [userCompDetails]); | ||
// add drag handling, must be done after component is added to the dom | ||
@@ -73,0 +73,0 @@ react_1.useEffect(function () { |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v29.1.0 | ||
// ag-grid-react v29.2.0 | ||
import React from 'react'; | ||
@@ -3,0 +3,0 @@ import { HeaderFilterCellCtrl } from 'ag-grid-community'; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v29.1.0 | ||
// ag-grid-react v29.2.0 | ||
"use strict"; | ||
@@ -55,3 +55,3 @@ var __assign = (this && this.__assign) || function () { | ||
var userCompPromise = react_1.useRef(); | ||
useEffectOnce_1.useEffectOnce(function () { | ||
useEffectOnce_1.useLayoutEffectOnce(function () { | ||
userCompPromise.current = new ag_grid_community_1.AgPromise(function (resolve) { | ||
@@ -77,3 +77,3 @@ userCompResolve.current = resolve; | ||
var ctrl = props.ctrl; | ||
useEffectOnce_1.useEffectOnce(function () { | ||
useEffectOnce_1.useLayoutEffectOnce(function () { | ||
var compProxy = { | ||
@@ -94,5 +94,3 @@ addOrRemoveCssClass: function (name, on) { return setCssClasses(function (prev) { return prev.setClass(name, on); }); }, | ||
// js comps | ||
react_1.useEffect(function () { | ||
return jsComp_1.showJsComp(userCompDetails, context, eFloatingFilterBody.current, userCompRef); | ||
}, [userCompDetails]); | ||
react_1.useLayoutEffect(function () { return jsComp_1.showJsComp(userCompDetails, context, eFloatingFilterBody.current, userCompRef); }, [userCompDetails]); | ||
var style = react_1.useMemo(function () { return ({ | ||
@@ -99,0 +97,0 @@ width: width |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v29.1.0 | ||
// ag-grid-react v29.2.0 | ||
import { HeaderGroupCellCtrl } from 'ag-grid-community'; | ||
@@ -3,0 +3,0 @@ import React from 'react'; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v29.1.0 | ||
// ag-grid-react v29.2.0 | ||
"use strict"; | ||
@@ -52,3 +52,3 @@ var __assign = (this && this.__assign) || function () { | ||
var ctrl = props.ctrl; | ||
useEffectOnce_1.useEffectOnce(function () { | ||
useEffectOnce_1.useLayoutEffectOnce(function () { | ||
var compProxy = { | ||
@@ -69,5 +69,3 @@ setWidth: function (width) { return setWidth(width); }, | ||
// js comps | ||
react_1.useEffect(function () { | ||
return jsComp_1.showJsComp(userCompDetails, context, eGui.current); | ||
}, [userCompDetails]); | ||
react_1.useLayoutEffect(function () { return jsComp_1.showJsComp(userCompDetails, context, eGui.current); }, [userCompDetails]); | ||
// add drag handling, must be done after component is added to the dom | ||
@@ -74,0 +72,0 @@ react_1.useEffect(function () { |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v29.1.0 | ||
// ag-grid-react v29.2.0 | ||
import { HeaderRowCtrl } from 'ag-grid-community'; | ||
@@ -3,0 +3,0 @@ import React from 'react'; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v29.1.0 | ||
// ag-grid-react v29.2.0 | ||
"use strict"; | ||
@@ -68,3 +68,3 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
}, []); | ||
useEffectOnce_1.useEffectOnce(function () { | ||
useEffectOnce_1.useLayoutEffectOnce(function () { | ||
var compProxy = { | ||
@@ -103,5 +103,4 @@ setTransform: function (transform) { return setTransform(transform); }, | ||
}, []); | ||
// below, we are not doing floating filters, not yet | ||
return (react_1.default.createElement("div", { ref: eGui, className: className, role: "row", style: style, "aria-rowindex": ariaRowIndex }, cellCtrls.map(createCellJsx))); | ||
}; | ||
exports.default = react_1.memo(HeaderRowComp); |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v29.1.0 | ||
// ag-grid-react v29.2.0 | ||
import React from 'react'; | ||
@@ -3,0 +3,0 @@ import { ColumnPinnedType } from 'ag-grid-community'; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v29.1.0 | ||
// ag-grid-react v29.2.0 | ||
"use strict"; | ||
@@ -35,12 +35,10 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
var _b = react_1.useState(false), ariaHidden = _b[0], setAriaHidden = _b[1]; | ||
var _c = react_1.useState(), centerContainerWidth = _c[0], setCenterContainerWidth = _c[1]; | ||
var _d = react_1.useState(), centerContainerTransform = _d[0], setCenterContainerTransform = _d[1]; | ||
var _e = react_1.useState(), pinnedContainerWidth = _e[0], setPinnedContainerWidth = _e[1]; | ||
var _f = react_1.useState([]), headerRowCtrls = _f[0], setHeaderRowCtrls = _f[1]; | ||
var _c = react_1.useState([]), headerRowCtrls = _c[0], setHeaderRowCtrls = _c[1]; | ||
var context = react_1.useContext(beansContext_1.BeansContext).context; | ||
var eGui = react_1.useRef(null); | ||
var eCenterContainer = react_1.useRef(null); | ||
var pinnedLeft = props.pinned === 'left'; | ||
var pinnedRight = props.pinned === 'right'; | ||
var centre = !pinnedLeft && !pinnedRight; | ||
useEffectOnce_1.useEffectOnce(function () { | ||
useEffectOnce_1.useLayoutEffectOnce(function () { | ||
var compProxy = { | ||
@@ -53,6 +51,18 @@ setDisplayed: function (displayed) { | ||
// centre only | ||
setCenterWidth: function (width) { return setCenterContainerWidth(width); }, | ||
setContainerTransform: function (transform) { return setCenterContainerTransform(transform); }, | ||
setCenterWidth: function (width) { | ||
if (eCenterContainer.current) { | ||
eCenterContainer.current.style.width = width; | ||
} | ||
}, | ||
setContainerTransform: function (transform) { | ||
if (eCenterContainer.current) { | ||
eCenterContainer.current.style.transform = transform; | ||
} | ||
}, | ||
// pinned only | ||
setPinnedContainerWidth: function (width) { return setPinnedContainerWidth(width); } | ||
setPinnedContainerWidth: function (width) { | ||
eGui.current.style.width = width; | ||
eGui.current.style.minWidth = width; | ||
eGui.current.style.maxWidth = width; | ||
} | ||
}; | ||
@@ -67,20 +77,11 @@ var ctrl = context.createBean(new ag_grid_community_1.HeaderRowContainerCtrl(props.pinned)); | ||
var insertRowsJsx = function () { return headerRowCtrls.map(function (ctrl) { return react_1.default.createElement(headerRowComp_1.default, { ctrl: ctrl, key: ctrl.getInstanceId() }); }); }; | ||
var eCenterContainerStyle = react_1.useMemo(function () { return ({ | ||
width: centerContainerWidth, | ||
transform: centerContainerTransform | ||
}); }, [centerContainerWidth, centerContainerTransform]); | ||
var ePinnedStyle = react_1.useMemo(function () { return ({ | ||
width: pinnedContainerWidth, | ||
minWidth: pinnedContainerWidth, | ||
maxWidth: pinnedContainerWidth, | ||
}); }, [pinnedContainerWidth]); | ||
return (react_1.default.createElement(react_1.default.Fragment, null, | ||
pinnedLeft && | ||
react_1.default.createElement("div", { ref: eGui, className: "ag-pinned-left-header " + className, "aria-hidden": ariaHidden, role: "presentation", style: ePinnedStyle }, insertRowsJsx()), | ||
react_1.default.createElement("div", { ref: eGui, className: "ag-pinned-left-header " + className, "aria-hidden": ariaHidden, role: "presentation" }, insertRowsJsx()), | ||
pinnedRight && | ||
react_1.default.createElement("div", { ref: eGui, className: "ag-pinned-right-header " + className, "aria-hidden": ariaHidden, role: "presentation", style: ePinnedStyle }, insertRowsJsx()), | ||
react_1.default.createElement("div", { ref: eGui, className: "ag-pinned-right-header " + className, "aria-hidden": ariaHidden, role: "presentation" }, insertRowsJsx()), | ||
centre && | ||
react_1.default.createElement("div", { ref: eGui, className: "ag-header-viewport " + className, role: "presentation" }, | ||
react_1.default.createElement("div", { className: "ag-header-container", role: "rowgroup", style: eCenterContainerStyle }, insertRowsJsx())))); | ||
react_1.default.createElement("div", { ref: eCenterContainer, className: "ag-header-container", role: "rowgroup" }, insertRowsJsx())))); | ||
}; | ||
exports.default = react_1.memo(HeaderRowContainerComp); |
@@ -1,5 +0,9 @@ | ||
// ag-grid-react v29.1.0 | ||
// ag-grid-react v29.2.0 | ||
import { Context, UserCompDetails } from 'ag-grid-community'; | ||
import { MutableRefObject } from 'react'; | ||
/** | ||
* Show a JS Component | ||
* @returns Effect Cleanup function | ||
*/ | ||
export declare const showJsComp: (compDetails: UserCompDetails | undefined, context: Context, eParent: HTMLElement, ref?: MutableRefObject<any> | ((ref: any) => void)) => () => void; | ||
export declare const createSyncJsComp: (compDetails: UserCompDetails) => any; |
@@ -1,5 +0,9 @@ | ||
// ag-grid-react v29.1.0 | ||
// ag-grid-react v29.2.0 | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createSyncJsComp = exports.showJsComp = void 0; | ||
/** | ||
* Show a JS Component | ||
* @returns Effect Cleanup function | ||
*/ | ||
exports.showJsComp = function (compDetails, context, eParent, ref) { | ||
@@ -6,0 +10,0 @@ var doNothing = !compDetails || compDetails.componentFromFramework; |
@@ -1,4 +0,4 @@ | ||
// ag-grid-react v29.1.0 | ||
// ag-grid-react v29.2.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.1.0 | ||
// ag-grid-react v29.2.0 | ||
"use strict"; | ||
@@ -3,0 +3,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v29.1.0 | ||
// ag-grid-react v29.2.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.1.0 | ||
// ag-grid-react v29.2.0 | ||
"use strict"; | ||
@@ -3,0 +3,0 @@ var __extends = (this && this.__extends) || (function () { |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v29.1.0 | ||
// ag-grid-react v29.2.0 | ||
import React from 'react'; | ||
@@ -3,0 +3,0 @@ import { RowContainerType, RowCtrl } from 'ag-grid-community'; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v29.1.0 | ||
// ag-grid-react v29.2.0 | ||
"use strict"; | ||
@@ -133,3 +133,3 @@ var __assign = (this && this.__assign) || function () { | ||
useEffectOnce_1.useLayoutEffectOnce(function () { | ||
// because React is asychronous, it's possible the RowCtrl is no longer a valid RowCtrl. This can | ||
// because React is asynchronous, it's possible the RowCtrl is no longer a valid RowCtrl. This can | ||
// happen if user calls two API methods one after the other, with the second API invalidating the rows | ||
@@ -166,3 +166,3 @@ // the first call created. Thus the rows for the first call could still get created even though no longer needed. | ||
}); | ||
react_1.useEffect(function () { return jsComp_1.showJsComp(fullWidthCompDetails, context, eGui.current, fullWidthCompRef); }, [fullWidthCompDetails]); | ||
react_1.useLayoutEffect(function () { return jsComp_1.showJsComp(fullWidthCompDetails, context, eGui.current, fullWidthCompRef); }, [fullWidthCompDetails]); | ||
var rowStyles = react_1.useMemo(function () { | ||
@@ -169,0 +169,0 @@ var res = { top: top, transform: transform }; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v29.1.0 | ||
// ag-grid-react v29.2.0 | ||
import { RowContainerName } from 'ag-grid-community'; | ||
@@ -3,0 +3,0 @@ import React from 'react'; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v29.1.0 | ||
// ag-grid-react v29.2.0 | ||
"use strict"; | ||
@@ -44,5 +44,3 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
var _b = react_1.useState([]), rowCtrlsOrdered = _b[0], setRowCtrlsOrdered = _b[1]; | ||
var _c = react_1.useState([]), rowCtrls = _c[0], setRowCtrls = _c[1]; | ||
var _d = react_1.useState(false), domOrder = _d[0], setDomOrder = _d[1]; | ||
var _e = react_1.useState(''), containerWidth = _e[0], setContainerWidth = _e[1]; | ||
var _c = react_1.useState(''), containerWidth = _c[0], setContainerWidth = _c[1]; | ||
var name = params.name; | ||
@@ -53,2 +51,4 @@ var containerType = react_1.useMemo(function () { return ag_grid_community_1.getRowContainerTypeForName(name); }, [name]); | ||
var eContainer = react_1.useRef(null); | ||
var rowCtrlsRef = react_1.useRef([]); | ||
var domOrderRef = react_1.useRef(false); | ||
var cssClasses = react_1.useMemo(function () { return ag_grid_community_1.RowContainerCtrl.getRowContainerCssClasses(name); }, [name]); | ||
@@ -68,5 +68,6 @@ var wrapperClasses = react_1.useMemo(function () { return utils_1.classesList(cssClasses.wrapper); }, []); | ||
// however if false, then we need to keep the order as they are in the dom, otherwise rowAnimation breaks | ||
react_1.useEffect(function () { | ||
function updateRowCtrlsOrdered() { | ||
setRowCtrlsOrdered(function (prev) { | ||
if (domOrder) { | ||
var rowCtrls = rowCtrlsRef.current; | ||
if (domOrderRef.current) { | ||
return rowCtrls; | ||
@@ -78,12 +79,21 @@ } | ||
var newRows = rowCtrls.filter(function (r) { return oldRows.indexOf(r) < 0; }); | ||
var next = __spreadArrays(oldRows, newRows); | ||
return next; | ||
return __spreadArrays(oldRows, newRows); | ||
}); | ||
}, [domOrder, rowCtrls]); | ||
useEffectOnce_1.useEffectOnce(function () { | ||
} | ||
useEffectOnce_1.useLayoutEffectOnce(function () { | ||
var beansToDestroy = []; | ||
var compProxy = { | ||
setViewportHeight: setViewportHeight, | ||
setRowCtrls: function (rowCtrls) { return setRowCtrls(rowCtrls); }, | ||
setDomOrder: function (domOrder) { return setDomOrder(domOrder); }, | ||
setRowCtrls: function (rowCtrls) { | ||
if (rowCtrlsRef.current !== rowCtrls) { | ||
rowCtrlsRef.current = rowCtrls; | ||
updateRowCtrlsOrdered(); | ||
} | ||
}, | ||
setDomOrder: function (domOrder) { | ||
if (domOrderRef.current != domOrder) { | ||
domOrderRef.current = domOrder; | ||
updateRowCtrlsOrdered(); | ||
} | ||
}, | ||
setContainerWidth: function (width) { return setContainerWidth(width); } | ||
@@ -104,3 +114,3 @@ }; | ||
}); }, [containerWidth]); | ||
var buildContainer = function () { return (react_1.default.createElement("div", { className: containerClasses, ref: eContainer, role: rowCtrls.length ? "rowgroup" : "presentation", style: containerStyle }, rowCtrlsOrdered.map(function (rowCtrl) { | ||
var buildContainer = function () { return (react_1.default.createElement("div", { className: containerClasses, ref: eContainer, role: rowCtrlsOrdered.length ? "rowgroup" : "presentation", style: containerStyle }, rowCtrlsOrdered.map(function (rowCtrl) { | ||
return react_1.default.createElement(rowComp_1.default, { rowCtrl: rowCtrl, containerType: containerType, key: rowCtrl.getInstanceId() }); | ||
@@ -107,0 +117,0 @@ }))); }; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v29.1.0 | ||
// ag-grid-react v29.2.0 | ||
import React from 'react'; | ||
@@ -3,0 +3,0 @@ import { GridCtrl } from 'ag-grid-community'; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v29.1.0 | ||
// ag-grid-react v29.2.0 | ||
"use strict"; | ||
@@ -3,0 +3,0 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { |
@@ -1,3 +0,3 @@ | ||
// ag-grid-react v29.1.0 | ||
// ag-grid-react v29.2.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.1.0 | ||
// ag-grid-react v29.2.0 | ||
"use strict"; | ||
@@ -3,0 +3,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v29.1.0 | ||
// ag-grid-react v29.2.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.1.0 | ||
// ag-grid-react v29.2.0 | ||
"use strict"; | ||
@@ -3,0 +3,0 @@ var __assign = (this && this.__assign) || function () { |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v29.1.0 | ||
// ag-grid-react v29.2.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.1.0 | ||
// ag-grid-react v29.2.0 | ||
"use strict"; | ||
@@ -3,0 +3,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v29.1.0 | ||
// ag-grid-react v29.2.0 | ||
export default function generateNewKey(): string; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v29.1.0 | ||
// ag-grid-react v29.2.0 | ||
"use strict"; | ||
@@ -3,0 +3,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v29.1.0 | ||
// ag-grid-react v29.2.0 | ||
import { ComponentType, AgPromise } from 'ag-grid-community'; | ||
@@ -3,0 +3,0 @@ import { ReactComponent } from './reactComponent'; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v29.1.0 | ||
// ag-grid-react v29.2.0 | ||
"use strict"; | ||
@@ -3,0 +3,0 @@ var __extends = (this && this.__extends) || (function () { |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v29.1.0 | ||
// ag-grid-react v29.2.0 | ||
import { Component, ReactPortal } from "react"; | ||
@@ -3,0 +3,0 @@ import { ReactComponent } from "./reactComponent"; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v29.1.0 | ||
// ag-grid-react v29.2.0 | ||
"use strict"; | ||
@@ -3,0 +3,0 @@ var __spreadArrays = (this && this.__spreadArrays) || function () { |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v29.1.0 | ||
// ag-grid-react v29.2.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.1.0 | ||
// ag-grid-react v29.2.0 | ||
"use strict"; | ||
@@ -3,0 +3,0 @@ var __extends = (this && this.__extends) || (function () { |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v29.1.0 | ||
// ag-grid-react v29.2.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.1.0 | ||
// ag-grid-react v29.2.0 | ||
"use strict"; | ||
@@ -3,0 +3,0 @@ var __extends = (this && this.__extends) || (function () { |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v29.1.0 | ||
// ag-grid-react v29.2.0 | ||
import { RefObject } from 'react'; | ||
@@ -3,0 +3,0 @@ import { ColumnApi, GridApi } from 'ag-grid-community'; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v29.1.0 | ||
// ag-grid-react v29.2.0 | ||
"use strict"; | ||
@@ -3,0 +3,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
{ | ||
"name": "ag-grid-react", | ||
"version": "29.1.0", | ||
"version": "29.2.0", | ||
"description": "AG Grid React Component", | ||
@@ -41,6 +41,6 @@ "main": "main.js", | ||
"prop-types": "^15.6.2", | ||
"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", | ||
"ag-grid-community": "~29.2.0", | ||
"@ag-grid-community/react": "~29.2.0", | ||
"@ag-grid-community/client-side-row-model": "~29.2.0", | ||
"@ag-grid-community/core": "~29.2.0", | ||
"gulp": "^4.0.0", | ||
@@ -83,3 +83,3 @@ "gulp-clean": "^0.4.0", | ||
"peerDependencies": { | ||
"ag-grid-community": "~29.1.0", | ||
"ag-grid-community": "~29.2.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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4252
309148