sd-webui-agent-scheduler/javascript/extension.mjs

33843 lines
1.4 MiB

/**
* @ag-grid-community/all-modules - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
function Ct(n) {
return n == null || n === "" ? null : n;
}
function O(n, t) {
return t === void 0 && (t = !1), n != null && (n !== "" || t);
}
function x(n) {
return !O(n);
}
function Pe(n) {
return n == null || n.length === 0;
}
function Tn(n) {
return n != null && typeof n.toString == "function" ? n.toString() : null;
}
function Ge(n) {
if (n !== void 0) {
if (n === null || n === "")
return null;
if (typeof n == "number")
return isNaN(n) ? void 0 : n;
var t = parseInt(n, 10);
return isNaN(t) ? void 0 : t;
}
}
function qe(n) {
if (n !== void 0)
return n === null || n === "" ? !1 : typeof n == "boolean" ? n : /true/i.test(n);
}
function ql(n) {
if (!(n == null || n === ""))
return n;
}
function Ql(n, t) {
return n == null && t == null ? !0 : n == null && t != null || n != null && t == null ? !1 : n === t;
}
function Xl(n, t) {
var e = n ? JSON.stringify(n) : null, r = t ? JSON.stringify(t) : null;
return e === r;
}
function Jl(n, t, e) {
e === void 0 && (e = !1);
var r = n == null, o = t == null;
if (n && n.toNumber && (n = n.toNumber()), t && t.toNumber && (t = t.toNumber()), r && o)
return 0;
if (r)
return -1;
if (o)
return 1;
function i(s, a) {
return s > a ? 1 : s < a ? -1 : 0;
}
if (typeof n != "string" || !e)
return i(n, t);
try {
return n.localeCompare(t);
} catch {
return i(n, t);
}
}
function Vr(n) {
if (n instanceof Set || n instanceof Map) {
var t = [];
return n.forEach(function(e) {
return t.push(e);
}), t;
}
return Object.values(n);
}
var Zl = /* @__PURE__ */ Object.freeze({
__proto__: null,
makeNull: Ct,
exists: O,
missing: x,
missingOrEmpty: Pe,
toStringOrNull: Tn,
attrToNumber: Ge,
attrToBoolean: qe,
attrToString: ql,
referenceCompare: Ql,
jsonEquals: Xl,
defaultComparator: Jl,
values: Vr
});
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var eu = (
/** @class */
function() {
function n() {
this.existingKeys = {};
}
return n.prototype.addExistingKeys = function(t) {
for (var e = 0; e < t.length; e++)
this.existingKeys[t[e]] = !0;
}, n.prototype.getUniqueKey = function(t, e) {
t = Tn(t);
for (var r = 0; ; ) {
var o = void 0;
if (t ? (o = t, r !== 0 && (o += "_" + r)) : e ? (o = e, r !== 0 && (o += "_" + r)) : o = "" + r, !this.existingKeys[o])
return this.existingKeys[o] = !0, o;
r++;
}
}, n;
}()
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
function J(n, t) {
n != null && (Array.isArray(n) ? n.forEach(function(e, r) {
return t("" + r, e);
}) : Object.keys(n).forEach(function(e) {
return t(e, n[e]);
}));
}
function bn(n) {
for (var t = {}, e = Object.keys(n), r = 0; r < e.length; r++) {
var o = e[r], i = n[o];
t[o] = i;
}
return t;
}
function tu(n) {
return JSON.parse(JSON.stringify(n));
}
function To(n, t) {
if (n) {
var e = n, r = {};
return Object.keys(e).forEach(function(o) {
if (!(t && t.indexOf(o) >= 0)) {
var i = e[o], s = Po(i) && i.constructor === Object;
s ? r[o] = To(i) : r[o] = i;
}
}), r;
}
}
function da(n, t) {
return n[t];
}
function ha(n, t, e) {
n[t] = e;
}
function ru(n, t) {
for (var e = [], r = 2; r < arguments.length; r++)
e[r - 2] = arguments[r];
e.forEach(function(o) {
return fa(n, t, o);
});
}
function fa(n, t, e, r) {
var o = da(n, e);
o !== void 0 && ha(t, e, r ? r(o) : o);
}
function va(n) {
var t = {};
return n.filter(function(e) {
return e != null;
}).forEach(function(e) {
Object.keys(e).forEach(function(r) {
return t[r] = null;
});
}), Object.keys(t);
}
function et(n) {
if (!n)
return [];
var t = Object;
if (typeof t.values == "function")
return t.values(n);
var e = [];
for (var r in n)
n.hasOwnProperty(r) && n.propertyIsEnumerable(r) && e.push(n[r]);
return e;
}
function Re(n, t, e, r) {
e === void 0 && (e = !0), r === void 0 && (r = !1), O(t) && J(t, function(o, i) {
var s = n[o];
if (s !== i) {
if (r) {
var a = s == null && i != null;
if (a) {
var l = typeof i == "object" && i.constructor === Object, u = l;
u && (s = {}, n[o] = s);
}
}
Po(i) && Po(s) && !Array.isArray(s) ? Re(s, i, e, r) : (e || i !== void 0) && (n[o] = i);
}
});
}
function ou(n) {
return x(n) || Object.keys(n).length === 0;
}
function iu(n, t, e) {
if (n == null)
return e;
for (var r = t.split("."), o = n; r.length > 1; )
if (o = o[r.shift()], o == null)
return e;
var i = o[r[0]];
return i ?? e;
}
function nu(n, t, e) {
if (n != null) {
var r = t.split("."), o = n;
r.forEach(function(i, s) {
o[i] || (o[i] = {}), s < r.length - 1 && (o = o[i]);
}), o[r[r.length - 1]] = e;
}
}
function bo(n, t, e) {
if (!(!t || !n)) {
if (!e)
return n[t];
for (var r = t.split("."), o = n, i = 0; i < r.length; i++) {
if (o == null)
return;
o = o[r[i]];
}
return o;
}
}
function ga(n, t) {
Object.keys(n).forEach(function(o) {
var i = n[o];
typeof i == "object" && (n[o] = void 0);
});
var e = Object.getPrototypeOf(n), r = {};
Object.keys(e).forEach(function(o) {
var i = e[o];
if (typeof i == "function") {
var s = function() {
console.warn("AG Grid: " + t + " function " + o + `() cannot be called as the grid has been destroyed.
Please don't call grid API functions on destroyed grids - as a matter of fact you shouldn't
be keeping the API reference, your application has a memory leak! Remove the API reference
when the grid is destroyed.`);
};
r[o] = { value: s, writable: !0 };
}
}), Object.defineProperties(n, r);
}
function Po(n) {
return typeof n == "object" && n !== null;
}
var su = /* @__PURE__ */ Object.freeze({
__proto__: null,
iterateObject: J,
cloneObject: bn,
deepCloneObject: tu,
deepCloneDefinition: To,
getProperty: da,
setProperty: ha,
copyPropertiesIfPresent: ru,
copyPropertyIfPresent: fa,
getAllKeysInObjects: va,
getAllValuesInObject: et,
mergeDeep: Re,
missingOrEmptyObject: ou,
get: iu,
set: nu,
getValueUsingField: bo,
removeAllReferences: ga,
isNonNullObject: Po
});
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var ps = {};
function K(n, t) {
ps[t] || (n(), ps[t] = !0);
}
function Xo(n) {
if (n.name)
return n.name;
var t = /function\s+([^\(]+)/.exec(n.toString());
return t && t.length === 2 ? t[1].trim() : null;
}
function Jo(n) {
return !!(n && n.constructor && n.call && n.apply);
}
function ya(n) {
Ca(n, 400);
}
var si = [], ai = !1;
function sn(n) {
si.push(n), !ai && (ai = !0, window.setTimeout(function() {
var t = si.slice();
si.length = 0, ai = !1, t.forEach(function(e) {
return e();
});
}, 0));
}
function Ca(n, t) {
t === void 0 && (t = 0), n.length > 0 && window.setTimeout(function() {
return n.forEach(function(e) {
return e();
});
}, t);
}
function Je(n, t) {
var e;
return function() {
for (var r = [], o = 0; o < arguments.length; o++)
r[o] = arguments[o];
var i = this;
window.clearTimeout(e), e = window.setTimeout(function() {
n.apply(i, r);
}, t);
};
}
function an(n, t) {
var e = 0;
return function() {
for (var r = [], o = 0; o < arguments.length; o++)
r[o] = arguments[o];
var i = this, s = (/* @__PURE__ */ new Date()).getTime();
s - e < t || (e = s, n.apply(i, r));
};
}
function ma(n, t, e, r) {
e === void 0 && (e = 100);
var o = (/* @__PURE__ */ new Date()).getTime(), i = null, s = !1, a = function() {
var l = (/* @__PURE__ */ new Date()).getTime() - o > e;
(n() || l) && (t(), s = !0, i != null && (window.clearInterval(i), i = null), l && r && console.warn(r));
};
a(), s || (i = window.setInterval(a, 10));
}
function au() {
for (var n = [], t = 0; t < arguments.length; t++)
n[t] = arguments[t];
return function(e) {
return n.reduce(function(r, o) {
return o(r);
}, e);
};
}
function wa(n) {
n && n();
}
var lu = function() {
}, uu = /* @__PURE__ */ Object.freeze({
__proto__: null,
doOnce: K,
getFunctionName: Xo,
isFunction: Jo,
executeInAWhile: ya,
executeNextVMTurn: sn,
executeAfter: Ca,
debounce: Je,
throttle: an,
waitUntil: ma,
compose: au,
callIfPresent: wa,
noop: lu
});
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var cu = function(n, t) {
var e = typeof Symbol == "function" && n[Symbol.iterator];
if (!e)
return n;
var r = e.call(n), o, i = [], s;
try {
for (; (t === void 0 || t-- > 0) && !(o = r.next()).done; )
i.push(o.value);
} catch (a) {
s = { error: a };
} finally {
try {
o && !o.done && (e = r.return) && e.call(r);
} finally {
if (s)
throw s.error;
}
}
return i;
}, pu = function() {
for (var n = [], t = 0; t < arguments.length; t++)
n = n.concat(cu(arguments[t]));
return n;
}, du = (
/** @class */
function() {
function n(t, e) {
if (this.beanWrappers = {}, this.destroyed = !1, !(!t || !t.beanClasses)) {
this.contextParams = t, this.logger = e, this.logger.log(">> creating ag-Application Context"), this.createBeans();
var r = this.getBeanInstances();
this.wireBeans(r), this.logger.log(">> ag-Application Context ready - component is alive");
}
}
return n.prototype.getBeanInstances = function() {
return Vr(this.beanWrappers).map(function(t) {
return t.beanInstance;
});
}, n.prototype.createBean = function(t, e) {
if (!t)
throw Error("Can't wire to bean since it is null");
return this.wireBeans([t], e), t;
}, n.prototype.wireBeans = function(t, e) {
this.autoWireBeans(t), this.methodWireBeans(t), this.callLifeCycleMethods(t, "preConstructMethods"), O(e) && t.forEach(e), this.callLifeCycleMethods(t, "postConstructMethods");
}, n.prototype.createBeans = function() {
var t = this;
this.contextParams.beanClasses.forEach(this.createBeanWrapper.bind(this)), J(this.beanWrappers, function(r, o) {
var i;
o.bean.__agBeanMetaData && o.bean.__agBeanMetaData.autowireMethods && o.bean.__agBeanMetaData.autowireMethods.agConstructor && (i = o.bean.__agBeanMetaData.autowireMethods.agConstructor);
var s = t.getBeansForParameters(i, o.bean.name), a = new (o.bean.bind.apply(o.bean, pu([null], s)))();
o.beanInstance = a;
});
var e = Object.keys(this.beanWrappers).join(", ");
this.logger.log("created beans: " + e);
}, n.prototype.createBeanWrapper = function(t) {
var e = t.__agBeanMetaData;
if (!e) {
var r = void 0;
t.prototype.constructor ? r = Xo(t.prototype.constructor) : r = "" + t, console.error("Context item " + r + " is not a bean");
return;
}
var o = {
bean: t,
beanInstance: null,
beanName: e.beanName
};
this.beanWrappers[e.beanName] = o;
}, n.prototype.autoWireBeans = function(t) {
var e = this;
t.forEach(function(r) {
e.forEachMetaDataInHierarchy(r, function(o, i) {
var s = o.agClassAttributes;
s && s.forEach(function(a) {
var l = e.lookupBeanInstance(i, a.beanName, a.optional);
r[a.attributeName] = l;
});
});
});
}, n.prototype.methodWireBeans = function(t) {
var e = this;
t.forEach(function(r) {
e.forEachMetaDataInHierarchy(r, function(o, i) {
J(o.autowireMethods, function(s, a) {
if (s !== "agConstructor") {
var l = e.getBeansForParameters(a, i);
r[s].apply(r, l);
}
});
});
});
}, n.prototype.forEachMetaDataInHierarchy = function(t, e) {
for (var r = Object.getPrototypeOf(t); r != null; ) {
var o = r.constructor;
if (o.hasOwnProperty("__agBeanMetaData")) {
var i = o.__agBeanMetaData, s = this.getBeanName(o);
e(i, s);
}
r = Object.getPrototypeOf(r);
}
}, n.prototype.getBeanName = function(t) {
if (t.__agBeanMetaData && t.__agBeanMetaData.beanName)
return t.__agBeanMetaData.beanName;
var e = t.toString(), r = e.substring(9, e.indexOf("("));
return r;
}, n.prototype.getBeansForParameters = function(t, e) {
var r = this, o = [];
return t && J(t, function(i, s) {
var a = r.lookupBeanInstance(e, s);
o[Number(i)] = a;
}), o;
}, n.prototype.lookupBeanInstance = function(t, e, r) {
if (r === void 0 && (r = !1), e === "context")
return this;
if (this.contextParams.providedBeanInstances && this.contextParams.providedBeanInstances.hasOwnProperty(e))
return this.contextParams.providedBeanInstances[e];
var o = this.beanWrappers[e];
return o ? o.beanInstance : (r || console.error("AG Grid: unable to find bean reference " + e + " while initialising " + t), null);
}, n.prototype.callLifeCycleMethods = function(t, e) {
var r = this;
t.forEach(function(o) {
return r.callLifeCycleMethodsOnBean(o, e);
});
}, n.prototype.callLifeCycleMethodsOnBean = function(t, e, r) {
var o = {};
this.forEachMetaDataInHierarchy(t, function(s) {
var a = s[e];
a && a.forEach(function(l) {
l != r && (o[l] = !0);
});
});
var i = Object.keys(o);
i.forEach(function(s) {
return t[s]();
});
}, n.prototype.getBean = function(t) {
return this.lookupBeanInstance("getBean", t, !0);
}, n.prototype.destroy = function() {
if (!this.destroyed) {
this.logger.log(">> Shutting down ag-Application Context");
var t = this.getBeanInstances();
this.destroyBeans(t), this.contextParams.providedBeanInstances = null, this.destroyed = !0, this.logger.log(">> ag-Application Context shut down - component is dead");
}
}, n.prototype.destroyBean = function(t) {
t && this.destroyBeans([t]);
}, n.prototype.destroyBeans = function(t) {
var e = this;
return t ? (t.forEach(function(r) {
e.callLifeCycleMethodsOnBean(r, "preDestroyMethods", "destroy");
var o = r;
typeof o.destroy == "function" && o.destroy();
}), []) : [];
}, n;
}()
);
function ds(n, t, e) {
var r = It(n.constructor);
r.preConstructMethods || (r.preConstructMethods = []), r.preConstructMethods.push(t);
}
function b(n, t, e) {
var r = It(n.constructor);
r.postConstructMethods || (r.postConstructMethods = []), r.postConstructMethods.push(t);
}
function fe(n, t, e) {
var r = It(n.constructor);
r.preDestroyMethods || (r.preDestroyMethods = []), r.preDestroyMethods.push(t);
}
function A(n) {
return function(t) {
var e = It(t);
e.beanName = n;
};
}
function h(n) {
return function(t, e, r) {
Sa(t, n, !1, t, e, null);
};
}
function Y(n) {
return function(t, e, r) {
Sa(t, n, !0, t, e, null);
};
}
function Sa(n, t, e, r, o, i) {
if (t === null) {
console.error("AG Grid: Autowired name should not be null");
return;
}
if (typeof i == "number") {
console.error("AG Grid: Autowired should be on an attribute");
return;
}
var s = It(n.constructor);
s.agClassAttributes || (s.agClassAttributes = []), s.agClassAttributes.push({
attributeName: o,
beanName: t,
optional: e
});
}
function Ce(n) {
return function(t, e, r) {
var o = typeof t == "function" ? t : t.constructor, i;
if (typeof r == "number") {
var s = void 0;
e ? (i = It(o), s = e) : (i = It(o), s = "agConstructor"), i.autowireMethods || (i.autowireMethods = {}), i.autowireMethods[s] || (i.autowireMethods[s] = {}), i.autowireMethods[s][r] = n;
}
};
}
function It(n) {
return n.hasOwnProperty("__agBeanMetaData") || (n.__agBeanMetaData = {}), n.__agBeanMetaData;
}
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var hs = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Kr = function(n, t) {
return function(e, r) {
t(e, r, n);
};
}, wt = (
/** @class */
function() {
function n() {
this.allSyncListeners = /* @__PURE__ */ new Map(), this.allAsyncListeners = /* @__PURE__ */ new Map(), this.globalSyncListeners = /* @__PURE__ */ new Set(), this.globalAsyncListeners = /* @__PURE__ */ new Set(), this.asyncFunctionsQueue = [], this.scheduled = !1, this.firedEvents = {};
}
return n.prototype.setBeans = function(t, e, r, o) {
if (o === void 0 && (o = null), this.frameworkOverrides = r, this.gridOptionsService = e, o) {
var i = e.useAsyncEvents();
this.addGlobalListener(o, i);
}
}, n.prototype.getListeners = function(t, e, r) {
var o = e ? this.allAsyncListeners : this.allSyncListeners, i = o.get(t);
return !i && r && (i = /* @__PURE__ */ new Set(), o.set(t, i)), i;
}, n.prototype.noRegisteredListenersExist = function() {
return this.allSyncListeners.size === 0 && this.allAsyncListeners.size === 0 && this.globalSyncListeners.size === 0 && this.globalAsyncListeners.size === 0;
}, n.prototype.addEventListener = function(t, e, r) {
r === void 0 && (r = !1), this.getListeners(t, r, !0).add(e);
}, n.prototype.removeEventListener = function(t, e, r) {
r === void 0 && (r = !1);
var o = this.getListeners(t, r, !1);
if (o && (o.delete(e), o.size === 0)) {
var i = r ? this.allAsyncListeners : this.allSyncListeners;
i.delete(t);
}
}, n.prototype.addGlobalListener = function(t, e) {
e === void 0 && (e = !1), (e ? this.globalAsyncListeners : this.globalSyncListeners).add(t);
}, n.prototype.removeGlobalListener = function(t, e) {
e === void 0 && (e = !1), (e ? this.globalAsyncListeners : this.globalSyncListeners).delete(t);
}, n.prototype.dispatchEvent = function(t) {
var e = t;
if (this.gridOptionsService) {
var r = this.gridOptionsService, o = r.api, i = r.columnApi, s = r.context;
e.api = o, e.columnApi = i, e.context = s;
}
this.dispatchToListeners(e, !0), this.dispatchToListeners(e, !1), this.firedEvents[e.type] = !0;
}, n.prototype.dispatchEventOnce = function(t) {
this.firedEvents[t.type] || this.dispatchEvent(t);
}, n.prototype.dispatchToListeners = function(t, e) {
var r = this, o = t.type;
if (e && "event" in t) {
var i = t.event;
i instanceof Event && (t.eventPath = i.composedPath());
}
var s = function(u) {
return u.forEach(function(c) {
e ? r.dispatchAsync(function() {
return c(t);
}) : c(t);
});
}, a = this.getListeners(o, e, !1);
a && s(a);
var l = e ? this.globalAsyncListeners : this.globalSyncListeners;
l.forEach(function(u) {
e ? r.dispatchAsync(function() {
return r.frameworkOverrides.dispatchEvent(o, function() {
return u(o, t);
}, !0);
}) : r.frameworkOverrides.dispatchEvent(o, function() {
return u(o, t);
}, !0);
});
}, n.prototype.dispatchAsync = function(t) {
this.asyncFunctionsQueue.push(t), this.scheduled || (window.setTimeout(this.flushAsyncQueue.bind(this), 0), this.scheduled = !0);
}, n.prototype.flushAsyncQueue = function() {
this.scheduled = !1;
var t = this.asyncFunctionsQueue.slice();
this.asyncFunctionsQueue = [], t.forEach(function(e) {
return e();
});
}, hs([
Kr(0, Ce("loggerFactory")),
Kr(1, Ce("gridOptionsService")),
Kr(2, Ce("frameworkOverrides")),
Kr(3, Ce("globalEventListener"))
], n.prototype, "setBeans", null), n = hs([
A("eventService")
], n), n;
}()
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var F;
(function(n) {
n.CommunityCoreModule = "@ag-grid-community/core", n.InfiniteRowModelModule = "@ag-grid-community/infinite-row-model", n.ClientSideRowModelModule = "@ag-grid-community/client-side-row-model", n.CsvExportModule = "@ag-grid-community/csv-export", n.EnterpriseCoreModule = "@ag-grid-enterprise/core", n.RowGroupingModule = "@ag-grid-enterprise/row-grouping", n.ColumnsToolPanelModule = "@ag-grid-enterprise/column-tool-panel", n.FiltersToolPanelModule = "@ag-grid-enterprise/filter-tool-panel", n.MenuModule = "@ag-grid-enterprise/menu", n.SetFilterModule = "@ag-grid-enterprise/set-filter", n.MultiFilterModule = "@ag-grid-enterprise/multi-filter", n.StatusBarModule = "@ag-grid-enterprise/status-bar", n.SideBarModule = "@ag-grid-enterprise/side-bar", n.RangeSelectionModule = "@ag-grid-enterprise/range-selection", n.MasterDetailModule = "@ag-grid-enterprise/master-detail", n.RichSelectModule = "@ag-grid-enterprise/rich-select", n.GridChartsModule = "@ag-grid-enterprise/charts", n.ViewportRowModelModule = "@ag-grid-enterprise/viewport-row-model", n.ServerSideRowModelModule = "@ag-grid-enterprise/server-side-row-model", n.ExcelExportModule = "@ag-grid-enterprise/excel-export", n.ClipboardModule = "@ag-grid-enterprise/clipboard", n.SparklinesModule = "@ag-grid-enterprise/sparklines", n.AngularModule = "@ag-grid-community/angular", n.ReactModule = "@ag-grid-community/react", n.VueModule = "@ag-grid-community/vue";
})(F || (F = {}));
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var hu = function(n, t) {
var e = typeof Symbol == "function" && n[Symbol.iterator];
if (!e)
return n;
var r = e.call(n), o, i = [], s;
try {
for (; (t === void 0 || t-- > 0) && !(o = r.next()).done; )
i.push(o.value);
} catch (a) {
s = { error: a };
} finally {
try {
o && !o.done && (e = r.return) && e.call(r);
} finally {
if (s)
throw s.error;
}
}
return i;
}, N = (
/** @class */
function() {
function n() {
}
return n.register = function(t, e) {
e === void 0 && (e = !0), n.runVersionChecks(t), n.modulesMap[t.moduleName] = t, n.setModuleBased(e);
}, n.runVersionChecks = function(t) {
if (n.currentModuleVersion || (n.currentModuleVersion = t.version), t.version ? t.version !== n.currentModuleVersion && console.error("AG Grid: You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. '" + t.moduleName + "' is version " + t.version + " but the other modules are version " + this.currentModuleVersion + ". Please update all modules to the same version.") : console.error("AG Grid: You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. '" + t.moduleName + "' is incompatible. Please update all modules to the same version."), t.validate) {
var e = t.validate();
if (!e.isValid) {
var r = e;
console.error("AG Grid: " + r.message);
}
}
}, n.setModuleBased = function(t) {
n.moduleBased === void 0 ? n.moduleBased = t : n.moduleBased !== t && K(function() {
console.warn("AG Grid: You are mixing modules (i.e. @ag-grid-community/core) and packages (ag-grid-community) - you can only use one or the other of these mechanisms."), console.warn("Please see https://www.ag-grid.com/javascript-grid/packages-modules/ for more information.");
}, "ModulePackageCheck");
}, n.setIsBundled = function() {
n.isBundled = !0;
}, n.registerModules = function(t, e) {
e === void 0 && (e = !0), n.setModuleBased(e), t && t.forEach(function(r) {
return n.register(r, e);
});
}, n.assertRegistered = function(t, e) {
var r;
if (this.isRegistered(t))
return !0;
var o = e + t, i;
if (n.isBundled)
i = "AG Grid: unable to use " + e + ` as 'ag-grid-enterprise' has not been loaded. Check you are using the Enterprise bundle:
<script src="https://cdn.jsdelivr.net/npm/ag-grid-enterprise@AG_GRID_VERSION/dist/ag-grid-enterprise.min.js"><\/script>
For more info see: https://ag-grid.com/javascript-data-grid/getting-started/#getting-started-with-ag-grid-enterprise`;
else if (n.moduleBased || n.moduleBased === void 0) {
var s = (r = Object.entries(F).find(function(a) {
var l = hu(a, 2);
l[0];
var u = l[1];
return u === t;
})) === null || r === void 0 ? void 0 : r[0];
i = "AG Grid: unable to use " + e + " as the " + s + ` is not registered. Check if you have registered the module:
import { ModuleRegistry } from '@ag-grid-community/core';
import { ` + s + " } from '" + t + `';
ModuleRegistry.registerModules([ ` + s + ` ]);
For more info see: https://www.ag-grid.com/javascript-grid/modules/`;
} else
i = "AG Grid: unable to use " + e + ` as package 'ag-grid-enterprise' has not been imported. Check that you have imported the package:
import 'ag-grid-enterprise';
For more info see: https://www.ag-grid.com/javascript-grid/packages/`;
return K(function() {
console.warn(i);
}, o), !1;
}, n.isRegistered = function(t) {
return !!n.modulesMap[t];
}, n.getRegisteredModules = function() {
return Vr(n.modulesMap);
}, n.isPackageBased = function() {
return !n.moduleBased;
}, n.modulesMap = {}, n;
}()
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var $r = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, fu = function(n, t) {
var e = typeof Symbol == "function" && n[Symbol.iterator];
if (!e)
return n;
var r = e.call(n), o, i = [], s;
try {
for (; (t === void 0 || t-- > 0) && !(o = r.next()).done; )
i.push(o.value);
} catch (a) {
s = { error: a };
} finally {
try {
o && !o.done && (e = r.return) && e.call(r);
} finally {
if (s)
throw s.error;
}
}
return i;
}, vu = function() {
for (var n = [], t = 0; t < arguments.length; t++)
n = n.concat(fu(arguments[t]));
return n;
}, gu = 0;
function Ea() {
return gu++;
}
var Z = (
/** @class */
function() {
function n(t, e, r, o) {
this.instanceId = Ea(), this.autoHeaderHeight = null, this.moving = !1, this.menuVisible = !1, this.filterActive = !1, this.eventService = new wt(), this.tooltipEnabled = !1, this.rowGroupActive = !1, this.pivotActive = !1, this.aggregationActive = !1, this.colDef = t, this.userProvidedColDef = e, this.colId = r, this.primary = o, this.setState(t);
}
return n.prototype.getInstanceId = function() {
return this.instanceId;
}, n.prototype.setState = function(t) {
t.sort !== void 0 ? (t.sort === "asc" || t.sort === "desc") && (this.sort = t.sort) : (t.initialSort === "asc" || t.initialSort === "desc") && (this.sort = t.initialSort);
var e = Ge(t.sortIndex), r = Ge(t.initialSortIndex);
e !== void 0 ? e !== null && (this.sortIndex = e) : r !== null && (this.sortIndex = r);
var o = qe(t.hide), i = qe(t.initialHide);
o !== void 0 ? this.visible = !o : this.visible = !i, t.pinned !== void 0 ? this.setPinned(t.pinned) : this.setPinned(t.initialPinned);
var s = Ge(t.flex), a = Ge(t.initialFlex);
s !== void 0 ? this.flex = s : a !== void 0 && (this.flex = a);
}, n.prototype.setColDef = function(t, e) {
this.colDef = t, this.userProvidedColDef = e, this.initMinAndMaxWidths(), this.initDotNotation(), this.eventService.dispatchEvent(this.createColumnEvent("colDefChanged", "api"));
}, n.prototype.getUserProvidedColDef = function() {
return this.userProvidedColDef;
}, n.prototype.setParent = function(t) {
this.parent = t;
}, n.prototype.getParent = function() {
return this.parent;
}, n.prototype.setOriginalParent = function(t) {
this.originalParent = t;
}, n.prototype.getOriginalParent = function() {
return this.originalParent;
}, n.prototype.initialise = function() {
this.initMinAndMaxWidths(), this.resetActualWidth("gridInitializing"), this.initDotNotation(), this.initTooltip(), this.validate();
}, n.prototype.initDotNotation = function() {
var t = this.gridOptionsService.is("suppressFieldDotNotation");
this.fieldContainsDots = O(this.colDef.field) && this.colDef.field.indexOf(".") >= 0 && !t, this.tooltipFieldContainsDots = O(this.colDef.tooltipField) && this.colDef.tooltipField.indexOf(".") >= 0 && !t;
}, n.prototype.initMinAndMaxWidths = function() {
var t = this.colDef;
this.minWidth = this.columnUtils.calculateColMinWidth(t), this.maxWidth = this.columnUtils.calculateColMaxWidth(t);
}, n.prototype.initTooltip = function() {
this.tooltipEnabled = O(this.colDef.tooltipField) || O(this.colDef.tooltipValueGetter) || O(this.colDef.tooltipComponent) || O(this.colDef.tooltipComponentFramework);
}, n.prototype.resetActualWidth = function(t) {
t === void 0 && (t = "api");
var e = this.columnUtils.calculateColInitialWidth(this.colDef);
this.setActualWidth(e, t, !0);
}, n.prototype.isEmptyGroup = function() {
return !1;
}, n.prototype.isRowGroupDisplayed = function(t) {
if (x(this.colDef) || x(this.colDef.showRowGroup))
return !1;
var e = this.colDef.showRowGroup === !0, r = this.colDef.showRowGroup === t;
return e || r;
}, n.prototype.isPrimary = function() {
return this.primary;
}, n.prototype.isFilterAllowed = function() {
var t = !!this.colDef.filter || !!this.colDef.filterFramework;
return t;
}, n.prototype.isFieldContainsDots = function() {
return this.fieldContainsDots;
}, n.prototype.isTooltipEnabled = function() {
return this.tooltipEnabled;
}, n.prototype.isTooltipFieldContainsDots = function() {
return this.tooltipFieldContainsDots;
}, n.prototype.validate = function() {
var t = this.colDef;
function e(u, c, p) {
K(function() {
p ? console.warn(u, p) : K(function() {
return console.warn(u);
}, c);
}, c);
}
var r = this.gridOptionsService.isRowModelType("clientSide");
if (r && !N.isRegistered(F.RowGroupingModule)) {
var o = ["enableRowGroup", "rowGroup", "rowGroupIndex", "enablePivot", "enableValue", "pivot", "pivotIndex", "aggFunc"], i = o.filter(function(u) {
return O(t[u]);
});
i.length > 0 && N.assertRegistered(F.RowGroupingModule, i.map(function(u) {
return "colDef." + u;
}).join(", "));
}
if ((this.colDef.cellEditor === "agRichSelect" || this.colDef.cellEditor === "agRichSelectCellEditor") && N.assertRegistered(F.RichSelectModule, this.colDef.cellEditor), this.gridOptionsService.isTreeData()) {
var s = ["rowGroup", "rowGroupIndex", "pivot", "pivotIndex"], i = s.filter(function(c) {
return O(t[c]);
});
i.length > 0 && e("AG Grid: " + i.join() + " is not possible when doing tree data, your column definition should not have " + i.join(), "TreeDataCannotRowGroup");
}
if (O(t.menuTabs))
if (Array.isArray(t.menuTabs)) {
var a = ["filterMenuTab"], l = ["columnsMenuTab", "generalMenuTab"], i = l.filter(function(c) {
return t.menuTabs.includes(c);
});
i.length > 0 && N.assertRegistered(F.MenuModule, "menuTab(s): " + i.map(function(c) {
return "'" + c + "'";
}).join()), t.menuTabs.forEach(function(c) {
!l.includes(c) && !a.includes(c) && e("AG Grid: '" + c + "' is not valid for 'colDef.menuTabs'. Valid values are: " + vu(a, l).map(function(p) {
return "'" + p + "'";
}).join() + ".", "wrongValue_menuTabs_" + c);
});
} else
e("AG Grid: The typeof 'colDef.menuTabs' should be an array not:" + typeof t.menuTabs, "wrongType_menuTabs");
O(t.columnsMenuParams) && N.assertRegistered(F.MenuModule, "columnsMenuParams"), O(t.columnsMenuParams) && N.assertRegistered(F.ColumnsToolPanelModule, "columnsMenuParams"), O(this.colDef.width) && typeof this.colDef.width != "number" && e("AG Grid: colDef.width should be a number, not " + typeof this.colDef.width, "ColumnCheck"), (t.pinnedRowCellRenderer || t.pinnedRowCellRendererParams || t.pinnedRowCellRendererFramework) && e("AG Grid: pinnedRowCellRenderer[Params,Framework] no longer exist. Use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned.", "colDef.pinnedRowCellRenderer-deprecated"), O(t.columnGroupShow) && t.columnGroupShow !== "closed" && t.columnGroupShow !== "open" && e("AG Grid: '" + t.columnGroupShow + "' is not valid for columnGroupShow. Valid values are 'open', 'closed', undefined, null", "columnGroupShow_invalid");
}, n.prototype.addEventListener = function(t, e) {
this.eventService.addEventListener(t, e);
}, n.prototype.removeEventListener = function(t, e) {
this.eventService.removeEventListener(t, e);
}, n.prototype.createColumnFunctionCallbackParams = function(t) {
return {
node: t,
data: t.data,
column: this,
colDef: this.colDef,
context: this.gridOptionsService.context,
api: this.gridOptionsService.api,
columnApi: this.gridOptionsService.columnApi
};
}, n.prototype.isSuppressNavigable = function(t) {
if (typeof this.colDef.suppressNavigable == "boolean")
return this.colDef.suppressNavigable;
if (typeof this.colDef.suppressNavigable == "function") {
var e = this.createColumnFunctionCallbackParams(t), r = this.colDef.suppressNavigable;
return r(e);
}
return !1;
}, n.prototype.isCellEditable = function(t) {
return t.group && !this.gridOptionsService.is("enableGroupEdit") ? !1 : this.isColumnFunc(t, this.colDef.editable);
}, n.prototype.isSuppressFillHandle = function() {
return !!qe(this.colDef.suppressFillHandle);
}, n.prototype.isAutoHeight = function() {
return !!qe(this.colDef.autoHeight);
}, n.prototype.isAutoHeaderHeight = function() {
return !!qe(this.colDef.autoHeaderHeight);
}, n.prototype.isRowDrag = function(t) {
return this.isColumnFunc(t, this.colDef.rowDrag);
}, n.prototype.isDndSource = function(t) {
return this.isColumnFunc(t, this.colDef.dndSource);
}, n.prototype.isCellCheckboxSelection = function(t) {
return this.isColumnFunc(t, this.colDef.checkboxSelection);
}, n.prototype.isSuppressPaste = function(t) {
return this.isColumnFunc(t, this.colDef ? this.colDef.suppressPaste : null);
}, n.prototype.isResizable = function() {
return !!qe(this.colDef.resizable);
}, n.prototype.isColumnFunc = function(t, e) {
if (typeof e == "boolean")
return e;
if (typeof e == "function") {
var r = this.createColumnFunctionCallbackParams(t), o = e;
return o(r);
}
return !1;
}, n.prototype.setMoving = function(t, e) {
e === void 0 && (e = "api"), this.moving = t, this.eventService.dispatchEvent(this.createColumnEvent("movingChanged", e));
}, n.prototype.createColumnEvent = function(t, e) {
return {
type: t,
column: this,
columns: [this],
source: e,
api: this.gridOptionsService.api,
columnApi: this.gridOptionsService.columnApi,
context: this.gridOptionsService.context
};
}, n.prototype.isMoving = function() {
return this.moving;
}, n.prototype.getSort = function() {
return this.sort;
}, n.prototype.setSort = function(t, e) {
e === void 0 && (e = "api"), this.sort !== t && (this.sort = t, this.eventService.dispatchEvent(this.createColumnEvent("sortChanged", e)));
}, n.prototype.setMenuVisible = function(t, e) {
e === void 0 && (e = "api"), this.menuVisible !== t && (this.menuVisible = t, this.eventService.dispatchEvent(this.createColumnEvent("menuVisibleChanged", e)));
}, n.prototype.isMenuVisible = function() {
return this.menuVisible;
}, n.prototype.isSortAscending = function() {
return this.sort === "asc";
}, n.prototype.isSortDescending = function() {
return this.sort === "desc";
}, n.prototype.isSortNone = function() {
return x(this.sort);
}, n.prototype.isSorting = function() {
return O(this.sort);
}, n.prototype.getSortIndex = function() {
return this.sortIndex;
}, n.prototype.setSortIndex = function(t) {
this.sortIndex = t;
}, n.prototype.setAggFunc = function(t) {
this.aggFunc = t;
}, n.prototype.getAggFunc = function() {
return this.aggFunc;
}, n.prototype.getLeft = function() {
return this.left;
}, n.prototype.getOldLeft = function() {
return this.oldLeft;
}, n.prototype.getRight = function() {
return this.left + this.actualWidth;
}, n.prototype.setLeft = function(t, e) {
e === void 0 && (e = "api"), this.oldLeft = this.left, this.left !== t && (this.left = t, this.eventService.dispatchEvent(this.createColumnEvent("leftChanged", e)));
}, n.prototype.isFilterActive = function() {
return this.filterActive;
}, n.prototype.setFilterActive = function(t, e, r) {
e === void 0 && (e = "api"), this.filterActive !== t && (this.filterActive = t, this.eventService.dispatchEvent(this.createColumnEvent("filterActiveChanged", e)));
var o = this.createColumnEvent("filterChanged", e);
r && Re(o, r), this.eventService.dispatchEvent(o);
}, n.prototype.isHovered = function() {
return this.columnHoverService.isHovered(this);
}, n.prototype.setPinned = function(t) {
t === !0 || t === "left" ? this.pinned = "left" : t === "right" ? this.pinned = "right" : this.pinned = null;
}, n.prototype.setFirstRightPinned = function(t, e) {
e === void 0 && (e = "api"), this.firstRightPinned !== t && (this.firstRightPinned = t, this.eventService.dispatchEvent(this.createColumnEvent("firstRightPinnedChanged", e)));
}, n.prototype.setLastLeftPinned = function(t, e) {
e === void 0 && (e = "api"), this.lastLeftPinned !== t && (this.lastLeftPinned = t, this.eventService.dispatchEvent(this.createColumnEvent("lastLeftPinnedChanged", e)));
}, n.prototype.isFirstRightPinned = function() {
return this.firstRightPinned;
}, n.prototype.isLastLeftPinned = function() {
return this.lastLeftPinned;
}, n.prototype.isPinned = function() {
return this.pinned === "left" || this.pinned === "right";
}, n.prototype.isPinnedLeft = function() {
return this.pinned === "left";
}, n.prototype.isPinnedRight = function() {
return this.pinned === "right";
}, n.prototype.getPinned = function() {
return this.pinned;
}, n.prototype.setVisible = function(t, e) {
e === void 0 && (e = "api");
var r = t === !0;
this.visible !== r && (this.visible = r, this.eventService.dispatchEvent(this.createColumnEvent("visibleChanged", e)));
}, n.prototype.isVisible = function() {
return this.visible;
}, n.prototype.isSpanHeaderHeight = function() {
return !!this.getColDef().spanHeaderHeight;
}, n.prototype.getColDef = function() {
return this.colDef;
}, n.prototype.getColumnGroupShow = function() {
return this.colDef.columnGroupShow;
}, n.prototype.getColId = function() {
return this.colId;
}, n.prototype.getId = function() {
return this.colId;
}, n.prototype.getUniqueId = function() {
return this.colId;
}, n.prototype.getDefinition = function() {
return this.colDef;
}, n.prototype.getActualWidth = function() {
return this.actualWidth;
}, n.prototype.getAutoHeaderHeight = function() {
return this.autoHeaderHeight;
}, n.prototype.setAutoHeaderHeight = function(t) {
var e = t !== this.autoHeaderHeight;
return this.autoHeaderHeight = t, e;
}, n.prototype.createBaseColDefParams = function(t) {
var e = {
node: t,
data: t.data,
colDef: this.colDef,
column: this,
api: this.gridOptionsService.api,
columnApi: this.gridOptionsService.columnApi,
context: this.gridOptionsService.context
};
return e;
}, n.prototype.getColSpan = function(t) {
if (x(this.colDef.colSpan))
return 1;
var e = this.createBaseColDefParams(t), r = this.colDef.colSpan(e);
return Math.max(r, 1);
}, n.prototype.getRowSpan = function(t) {
if (x(this.colDef.rowSpan))
return 1;
var e = this.createBaseColDefParams(t), r = this.colDef.rowSpan(e);
return Math.max(r, 1);
}, n.prototype.setActualWidth = function(t, e, r) {
e === void 0 && (e = "api"), r === void 0 && (r = !1), this.minWidth != null && (t = Math.max(t, this.minWidth)), this.maxWidth != null && (t = Math.min(t, this.maxWidth)), this.actualWidth !== t && (this.actualWidth = t, this.flex && e !== "flex" && e !== "gridInitializing" && (this.flex = null), r || this.fireColumnWidthChangedEvent(e));
}, n.prototype.fireColumnWidthChangedEvent = function(t) {
this.eventService.dispatchEvent(this.createColumnEvent("widthChanged", t));
}, n.prototype.isGreaterThanMax = function(t) {
return this.maxWidth != null ? t > this.maxWidth : !1;
}, n.prototype.getMinWidth = function() {
return this.minWidth;
}, n.prototype.getMaxWidth = function() {
return this.maxWidth;
}, n.prototype.getFlex = function() {
return this.flex || 0;
}, n.prototype.setFlex = function(t) {
this.flex !== t && (this.flex = t);
}, n.prototype.setMinimum = function(t) {
t === void 0 && (t = "api"), O(this.minWidth) && this.setActualWidth(this.minWidth, t);
}, n.prototype.setRowGroupActive = function(t, e) {
e === void 0 && (e = "api"), this.rowGroupActive !== t && (this.rowGroupActive = t, this.eventService.dispatchEvent(this.createColumnEvent("columnRowGroupChanged", e)));
}, n.prototype.isRowGroupActive = function() {
return this.rowGroupActive;
}, n.prototype.setPivotActive = function(t, e) {
e === void 0 && (e = "api"), this.pivotActive !== t && (this.pivotActive = t, this.eventService.dispatchEvent(this.createColumnEvent("columnPivotChanged", e)));
}, n.prototype.isPivotActive = function() {
return this.pivotActive;
}, n.prototype.isAnyFunctionActive = function() {
return this.isPivotActive() || this.isRowGroupActive() || this.isValueActive();
}, n.prototype.isAnyFunctionAllowed = function() {
return this.isAllowPivot() || this.isAllowRowGroup() || this.isAllowValue();
}, n.prototype.setValueActive = function(t, e) {
e === void 0 && (e = "api"), this.aggregationActive !== t && (this.aggregationActive = t, this.eventService.dispatchEvent(this.createColumnEvent("columnValueChanged", e)));
}, n.prototype.isValueActive = function() {
return this.aggregationActive;
}, n.prototype.isAllowPivot = function() {
return this.colDef.enablePivot === !0;
}, n.prototype.isAllowValue = function() {
return this.colDef.enableValue === !0;
}, n.prototype.isAllowRowGroup = function() {
return this.colDef.enableRowGroup === !0;
}, n.prototype.getMenuTabs = function(t) {
var e = this.getColDef().menuTabs;
return e == null && (e = t), e;
}, n.EVENT_MOVING_CHANGED = "movingChanged", n.EVENT_LEFT_CHANGED = "leftChanged", n.EVENT_WIDTH_CHANGED = "widthChanged", n.EVENT_LAST_LEFT_PINNED_CHANGED = "lastLeftPinnedChanged", n.EVENT_FIRST_RIGHT_PINNED_CHANGED = "firstRightPinnedChanged", n.EVENT_VISIBLE_CHANGED = "visibleChanged", n.EVENT_FILTER_CHANGED = "filterChanged", n.EVENT_FILTER_ACTIVE_CHANGED = "filterActiveChanged", n.EVENT_SORT_CHANGED = "sortChanged", n.EVENT_COL_DEF_CHANGED = "colDefChanged", n.EVENT_MENU_VISIBLE_CHANGED = "menuVisibleChanged", n.EVENT_ROW_GROUP_CHANGED = "columnRowGroupChanged", n.EVENT_PIVOT_CHANGED = "columnPivotChanged", n.EVENT_VALUE_CHANGED = "columnValueChanged", $r([
h("gridOptionsService")
], n.prototype, "gridOptionsService", void 0), $r([
h("columnUtils")
], n.prototype, "columnUtils", void 0), $r([
h("columnHoverService")
], n.prototype, "columnHoverService", void 0), $r([
b
], n.prototype, "initialise", null), n;
}()
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var yu = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, re = (
/** @class */
function() {
function n(t, e, r, o) {
this.localEventService = new wt(), this.expandable = !1, this.instanceId = Ea(), this.expandableListenerRemoveCallback = null, this.colGroupDef = t, this.groupId = e, this.expanded = !!t && !!t.openByDefault, this.padding = r, this.level = o;
}
return n.prototype.destroy = function() {
this.expandableListenerRemoveCallback && this.reset(null, void 0);
}, n.prototype.reset = function(t, e) {
this.colGroupDef = t, this.level = e, this.originalParent = null, this.expandableListenerRemoveCallback && this.expandableListenerRemoveCallback(), this.children = void 0, this.expandable = void 0;
}, n.prototype.getInstanceId = function() {
return this.instanceId;
}, n.prototype.setOriginalParent = function(t) {
this.originalParent = t;
}, n.prototype.getOriginalParent = function() {
return this.originalParent;
}, n.prototype.getLevel = function() {
return this.level;
}, n.prototype.isVisible = function() {
return this.children ? this.children.some(function(t) {
return t.isVisible();
}) : !1;
}, n.prototype.isPadding = function() {
return this.padding;
}, n.prototype.setExpanded = function(t) {
this.expanded = t === void 0 ? !1 : t;
var e = {
type: n.EVENT_EXPANDED_CHANGED
};
this.localEventService.dispatchEvent(e);
}, n.prototype.isExpandable = function() {
return this.expandable;
}, n.prototype.isExpanded = function() {
return this.expanded;
}, n.prototype.getGroupId = function() {
return this.groupId;
}, n.prototype.getId = function() {
return this.getGroupId();
}, n.prototype.setChildren = function(t) {
this.children = t;
}, n.prototype.getChildren = function() {
return this.children;
}, n.prototype.getColGroupDef = function() {
return this.colGroupDef;
}, n.prototype.getLeafColumns = function() {
var t = [];
return this.addLeafColumns(t), t;
}, n.prototype.addLeafColumns = function(t) {
this.children && this.children.forEach(function(e) {
e instanceof Z ? t.push(e) : e instanceof n && e.addLeafColumns(t);
});
}, n.prototype.getColumnGroupShow = function() {
var t = this.colGroupDef;
if (t)
return t.columnGroupShow;
}, n.prototype.setupExpandable = function() {
var t = this;
this.setExpandable(), this.expandableListenerRemoveCallback && this.expandableListenerRemoveCallback();
var e = this.onColumnVisibilityChanged.bind(this);
this.getLeafColumns().forEach(function(r) {
return r.addEventListener("visibleChanged", e);
}), this.expandableListenerRemoveCallback = function() {
t.getLeafColumns().forEach(function(r) {
return r.removeEventListener("visibleChanged", e);
}), t.expandableListenerRemoveCallback = null;
};
}, n.prototype.setExpandable = function() {
if (!this.isPadding()) {
for (var t = !1, e = !1, r = !1, o = this.findChildrenRemovingPadding(), i = 0, s = o.length; i < s; i++) {
var a = o[i];
if (a.isVisible()) {
var l = a.getColumnGroupShow();
l === "open" ? (t = !0, r = !0) : l === "closed" ? (e = !0, r = !0) : (t = !0, e = !0);
}
}
var u = t && e && r;
if (this.expandable !== u) {
this.expandable = u;
var c = {
type: n.EVENT_EXPANDABLE_CHANGED
};
this.localEventService.dispatchEvent(c);
}
}
}, n.prototype.findChildrenRemovingPadding = function() {
var t = [], e = function(r) {
r.forEach(function(o) {
var i = o instanceof n && o.isPadding();
i ? e(o.children) : t.push(o);
});
};
return e(this.children), t;
}, n.prototype.onColumnVisibilityChanged = function() {
this.setExpandable();
}, n.prototype.addEventListener = function(t, e) {
this.localEventService.addEventListener(t, e);
}, n.prototype.removeEventListener = function(t, e) {
this.localEventService.removeEventListener(t, e);
}, n.EVENT_EXPANDED_CHANGED = "expandedChanged", n.EVENT_EXPANDABLE_CHANGED = "expandableChanged", yu([
fe
], n.prototype, "destroy", null), n;
}()
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Cu = {
numericColumn: {
headerClass: "ag-right-aligned-header",
cellClass: "ag-right-aligned-cell"
},
rightAligned: {
headerClass: "ag-right-aligned-header",
cellClass: "ag-right-aligned-cell"
}
};
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
function _a() {
for (var n = [], t = 0; t < arguments.length; t++)
n[t] = arguments[t];
for (var e = 0; e < n.length; e++) {
var r = n[e];
if (O(r))
return r;
}
return null;
}
function mu(n) {
return n != null && n.length > 0;
}
function q(n) {
if (!(!n || !n.length))
return n[n.length - 1];
}
function gt(n, t, e) {
return n == null && t == null ? !0 : n != null && t != null && n.length === t.length && n.every(function(r, o) {
return e ? e(r, t[o]) : t[o] === r;
});
}
function wu(n, t) {
return gt(n, t);
}
function Ra(n) {
return n.sort(function(t, e) {
return t - e;
});
}
function Su(n, t) {
if (n)
for (var e = n.length - 2; e >= 0; e--) {
var r = n[e] === t, o = n[e + 1] === t;
r && o && n.splice(e + 1, 1);
}
}
function ge(n, t) {
var e = n.indexOf(t);
e >= 0 && n.splice(e, 1);
}
function Pn(n, t) {
t.forEach(function(e) {
return ge(n, e);
});
}
function Lr(n, t, e) {
n.splice(e, 0, t);
}
function Eu(n, t, e) {
if (!(n == null || t == null))
for (var r = t.length - 1; r >= 0; r--) {
var o = t[r];
Lr(n, o, e);
}
}
function ln(n, t, e) {
Pn(n, t), t.slice().reverse().forEach(function(r) {
return Lr(n, r, e);
});
}
function He(n, t) {
return n.indexOf(t) > -1;
}
function Oa(n) {
return [].concat.apply([], n);
}
function un(n, t) {
t == null || n == null || t.forEach(function(e) {
return n.push(e);
});
}
function _u(n) {
return n.map(Tn);
}
function Ru(n, t) {
if (n != null)
for (var e = n.length - 1; e >= 0; e--)
t(n[e], e);
}
var Ou = /* @__PURE__ */ Object.freeze({
__proto__: null,
firstExistingValue: _a,
existsAndNotEmpty: mu,
last: q,
areEqual: gt,
shallowCompare: wu,
sortNumerically: Ra,
removeRepeatsFromArray: Su,
removeFromArray: ge,
removeAllFromArray: Pn,
insertIntoArray: Lr,
insertArrayIntoArray: Eu,
moveInArray: ln,
includes: He,
flatten: Oa,
pushAll: un,
toStrings: _u,
forEachReverse: Ru
});
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Ta = "__ag_Grid_Stop_Propagation", Tu = ["touchstart", "touchend", "touchmove", "touchcancel", "scroll"], li = {};
function Xt(n) {
n[Ta] = !0;
}
function Ze(n) {
return n[Ta] === !0;
}
var Dn = function() {
var n = {
select: "input",
change: "input",
submit: "form",
reset: "form",
error: "img",
load: "img",
abort: "img"
}, t = function(e) {
if (typeof li[e] == "boolean")
return li[e];
var r = document.createElement(n[e] || "div");
return e = "on" + e, li[e] = e in r;
};
return t;
}();
function Do(n, t, e) {
for (var r = t; r; ) {
var o = n.getDomData(r, e);
if (o)
return o;
r = r.parentElement;
}
return null;
}
function Ao(n, t) {
return !t || !n ? !1 : Pa(t).indexOf(n) >= 0;
}
function ba(n) {
for (var t = [], e = n.target; e; )
t.push(e), e = e.parentElement;
return t;
}
function Pa(n) {
var t = n;
return t.path ? t.path : t.composedPath ? t.composedPath() : ba(t);
}
function Da(n, t, e, r) {
var o = He(Tu, e), i = o ? { passive: !0 } : void 0;
n && n.addEventListener && n.addEventListener(t, e, r, i);
}
var bu = /* @__PURE__ */ Object.freeze({
__proto__: null,
stopPropagationForAgGrid: Xt,
isStopPropagationForAgGrid: Ze,
isEventSupported: Dn,
getCtrlForEventTarget: Do,
isElementInEventPath: Ao,
createEventPath: ba,
getEventPath: Pa,
addSafePassiveEventListener: Da
});
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var _t = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, T = (
/** @class */
function() {
function n() {
var t = this;
this.destroyFunctions = [], this.destroyed = !1, this.__v_skip = !0, this.isAlive = function() {
return !t.destroyed;
};
}
return n.prototype.getFrameworkOverrides = function() {
return this.frameworkOverrides;
}, n.prototype.getContext = function() {
return this.context;
}, n.prototype.destroy = function() {
this.destroyFunctions.forEach(function(t) {
return t();
}), this.destroyFunctions.length = 0, this.destroyed = !0, this.dispatchEvent({ type: n.EVENT_DESTROYED });
}, n.prototype.addEventListener = function(t, e) {
this.localEventService || (this.localEventService = new wt()), this.localEventService.addEventListener(t, e);
}, n.prototype.removeEventListener = function(t, e) {
this.localEventService && this.localEventService.removeEventListener(t, e);
}, n.prototype.dispatchEventAsync = function(t) {
var e = this;
window.setTimeout(function() {
return e.dispatchEvent(t);
}, 0);
}, n.prototype.dispatchEvent = function(t) {
this.localEventService && this.localEventService.dispatchEvent(t);
}, n.prototype.addManagedListener = function(t, e, r) {
var o = this;
if (!this.destroyed) {
t instanceof HTMLElement ? Da(this.getFrameworkOverrides(), t, e, r) : t.addEventListener(e, r);
var i = function() {
return t.removeEventListener(e, r), o.destroyFunctions = o.destroyFunctions.filter(function(s) {
return s !== i;
}), null;
};
return this.destroyFunctions.push(i), i;
}
}, n.prototype.addManagedPropertyListener = function(t, e) {
var r = this;
if (!this.destroyed) {
this.gridOptionsService.addEventListener(t, e);
var o = function() {
return r.gridOptionsService.removeEventListener(t, e), r.destroyFunctions = r.destroyFunctions.filter(function(i) {
return i !== o;
}), null;
};
return this.destroyFunctions.push(o), o;
}
}, n.prototype.addDestroyFunc = function(t) {
this.isAlive() ? this.destroyFunctions.push(t) : t();
}, n.prototype.createManagedBean = function(t, e) {
var r = this.createBean(t, e);
return this.addDestroyFunc(this.destroyBean.bind(this, t, e)), r;
}, n.prototype.createBean = function(t, e, r) {
return (e || this.getContext()).createBean(t, r);
}, n.prototype.destroyBean = function(t, e) {
return (e || this.getContext()).destroyBean(t);
}, n.prototype.destroyBeans = function(t, e) {
var r = this;
return t && t.forEach(function(o) {
return r.destroyBean(o, e);
}), [];
}, n.EVENT_DESTROYED = "destroyed", _t([
h("frameworkOverrides")
], n.prototype, "frameworkOverrides", void 0), _t([
h("context")
], n.prototype, "context", void 0), _t([
h("eventService")
], n.prototype, "eventService", void 0), _t([
h("gridOptionsService")
], n.prototype, "gridOptionsService", void 0), _t([
h("localeService")
], n.prototype, "localeService", void 0), _t([
h("environment")
], n.prototype, "environment", void 0), _t([
fe
], n.prototype, "destroy", null), n;
}()
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Pu = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), ui = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Du = function(n, t) {
return function(e, r) {
t(e, r, n);
};
}, Au = (
/** @class */
function(n) {
Pu(t, n);
function t() {
return n !== null && n.apply(this, arguments) || this;
}
return t.prototype.setBeans = function(e) {
this.logger = e.create("ColumnFactory");
}, t.prototype.createColumnTree = function(e, r, o) {
var i = new eu(), s = this.extractExistingTreeData(o), a = s.existingCols, l = s.existingGroups, u = s.existingColKeys;
i.addExistingKeys(u);
var c = this.recursivelyCreateColumns(e, 0, r, a, i, l), p = this.findMaxDept(c, 0);
this.logger.log("Number of levels for grouped columns is " + p);
var d = this.balanceColumnTree(c, 0, p, i), f = function(g, y) {
g instanceof re && g.setupExpandable(), g.setOriginalParent(y);
};
return this.columnUtils.depthFirstOriginalTreeSearch(null, d, f), {
columnTree: d,
treeDept: p
};
}, t.prototype.extractExistingTreeData = function(e) {
var r = [], o = [], i = [];
return e && this.columnUtils.depthFirstOriginalTreeSearch(null, e, function(s) {
if (s instanceof re) {
var a = s;
o.push(a);
} else {
var l = s;
i.push(l.getId()), r.push(l);
}
}), { existingCols: r, existingGroups: o, existingColKeys: i };
}, t.prototype.createForAutoGroups = function(e, r) {
var o = this;
return e.map(function(i) {
return o.createAutoGroupTreeItem(r, i);
});
}, t.prototype.createAutoGroupTreeItem = function(e, r) {
for (var o = this.findDepth(e), i = r, s = o - 1; s >= 0; s--) {
var a = new re(null, "FAKE_PATH_" + r.getId() + "}_" + s, !0, s);
this.createBean(a), a.setChildren([i]), i.setOriginalParent(a), i = a;
}
return i;
}, t.prototype.findDepth = function(e) {
for (var r = 0, o = e; o && o[0] && o[0] instanceof re; )
r++, o = o[0].getChildren();
return r;
}, t.prototype.balanceColumnTree = function(e, r, o, i) {
for (var s = [], a = 0; a < e.length; a++) {
var l = e[a];
if (l instanceof re) {
var u = l, c = this.balanceColumnTree(u.getChildren(), r + 1, o, i);
u.setChildren(c), s.push(u);
} else {
for (var p = void 0, d = void 0, f = o - 1; f >= r; f--) {
var g = i.getUniqueKey(null, null), y = this.createMergedColGroupDef(null), C = new re(y, g, !0, r);
this.createBean(C), d && d.setChildren([C]), d = C, p || (p = d);
}
if (p && d) {
s.push(p);
var m = e.some(function(w) {
return w instanceof re;
});
if (m) {
d.setChildren([l]);
continue;
} else {
d.setChildren(e);
break;
}
}
s.push(l);
}
}
return s;
}, t.prototype.findMaxDept = function(e, r) {
for (var o = r, i = 0; i < e.length; i++) {
var s = e[i];
if (s instanceof re) {
var a = s, l = this.findMaxDept(a.getChildren(), r + 1);
o < l && (o = l);
}
}
return o;
}, t.prototype.recursivelyCreateColumns = function(e, r, o, i, s, a) {
var l = this;
return (e || []).map(function(u) {
return l.isColumnGroup(u) ? l.createColumnGroup(o, u, r, i, s, a) : l.createColumn(o, u, i, s);
});
}, t.prototype.createColumnGroup = function(e, r, o, i, s, a) {
var l = this.createMergedColGroupDef(r), u = s.getUniqueKey(l.groupId || null, null), c = new re(l, u, !1, o);
this.createBean(c);
var p = this.findExistingGroup(r, a);
p && ge(a, p), p && p.isExpanded() && c.setExpanded(!0);
var d = this.recursivelyCreateColumns(l.children, o + 1, e, i, s, a);
return c.setChildren(d), c;
}, t.prototype.createMergedColGroupDef = function(e) {
var r = {};
return Object.assign(r, this.gridOptionsService.get("defaultColGroupDef")), Object.assign(r, e), r;
}, t.prototype.createColumn = function(e, r, o, i) {
var s = this.mergeColDefs(r), a = this.findExistingColumn(r, o);
if (o && a && ge(o, a), a)
a.setColDef(s, r), this.applyColumnState(a, s);
else {
var l = i.getUniqueKey(s.colId, s.field);
a = new Z(s, r, l, e), this.context.createBean(a);
}
return a;
}, t.prototype.applyColumnState = function(e, r) {
var o = Ge(r.flex);
o !== void 0 && e.setFlex(o);
var i = e.getFlex() <= 0;
if (i) {
var s = Ge(r.width);
if (s != null)
e.setActualWidth(s);
else {
var a = e.getActualWidth();
e.setActualWidth(a);
}
}
r.sort !== void 0 && (r.sort == "asc" || r.sort == "desc" ? e.setSort(r.sort) : e.setSort(void 0));
var l = Ge(r.sortIndex);
l !== void 0 && e.setSortIndex(l);
var u = qe(r.hide);
u !== void 0 && e.setVisible(!u), r.pinned !== void 0 && e.setPinned(r.pinned);
}, t.prototype.findExistingColumn = function(e, r) {
return (r || []).find(function(o) {
var i = o.getUserProvidedColDef();
if (!i)
return !1;
var s = e.colId != null, a = e.field != null;
return s ? o.getId() === e.colId : a ? i.field === e.field : i === e;
});
}, t.prototype.findExistingGroup = function(e, r) {
return r.find(function(o) {
var i = o.getColGroupDef();
if (!i)
return !1;
var s = e.groupId != null;
return s ? o.getId() === e.groupId : !1;
});
}, t.prototype.mergeColDefs = function(e) {
var r = {}, o = this.gridOptionsService.get("defaultColDef");
Re(r, o, !1, !0);
var i = e.type;
i || (i = o && o.type), i && this.assignColumnTypes(i, r), Re(r, e, !1, !0);
var s = this.gridOptionsService.get("autoGroupColumnDef"), a = this.gridOptionsService.isColumnsSortingCoupledToGroup();
return e.rowGroup && s && a && Re(r, { sort: s.sort, initialSort: s.initialSort }, !1, !0), r;
}, t.prototype.assignColumnTypes = function(e, r) {
var o = [];
if (e instanceof Array) {
var i = e.some(function(l) {
return typeof l != "string";
});
i ? console.warn("AG Grid: if colDef.type is supplied an array it should be of type 'string[]'") : o = e;
} else if (typeof e == "string")
o = e.split(",");
else {
console.warn("AG Grid: colDef.type should be of type 'string' | 'string[]'");
return;
}
var s = Object.assign({}, Cu), a = this.gridOptionsService.get("columnTypes") || {};
J(a, function(l, u) {
l in s ? console.warn("AG Grid: the column type '" + l + "' is a default column type and cannot be overridden.") : s[l] = u;
}), o.forEach(function(l) {
var u = s[l.trim()];
u ? Re(r, u, !1, !0) : console.warn("AG Grid: colDef.type '" + l + "' does not correspond to defined gridOptions.columnTypes");
});
}, t.prototype.isColumnGroup = function(e) {
return e.children !== void 0;
}, ui([
h("columnUtils")
], t.prototype, "columnUtils", void 0), ui([
Du(0, Ce("loggerFactory"))
], t.prototype, "setBeans", null), t = ui([
A("columnFactory")
], t), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var fs = (
/** @class */
function() {
function n() {
}
return n.ColDefPropertyMap = {
headerName: void 0,
columnGroupShow: void 0,
headerClass: void 0,
toolPanelClass: void 0,
headerValueGetter: void 0,
pivotKeys: void 0,
groupId: void 0,
colId: void 0,
sort: void 0,
initialSort: void 0,
field: void 0,
type: void 0,
tooltipComponent: void 0,
tooltipField: void 0,
headerTooltip: void 0,
cellClass: void 0,
showRowGroup: void 0,
filter: void 0,
initialAggFunc: void 0,
defaultAggFunc: void 0,
aggFunc: void 0,
pinned: void 0,
initialPinned: void 0,
chartDataType: void 0,
cellEditorPopupPosition: void 0,
headerGroupComponent: void 0,
headerGroupComponentFramework: void 0,
headerGroupComponentParams: void 0,
cellStyle: void 0,
cellRenderer: void 0,
cellRendererParams: void 0,
cellRendererFramework: void 0,
cellEditor: void 0,
cellEditorFramework: void 0,
cellEditorParams: void 0,
filterFramework: void 0,
filterParams: void 0,
pivotValueColumn: void 0,
headerComponent: void 0,
headerComponentFramework: void 0,
headerComponentParams: void 0,
floatingFilterComponent: void 0,
floatingFilterComponentParams: void 0,
floatingFilterComponentFramework: void 0,
tooltipComponentParams: void 0,
tooltipComponentFramework: void 0,
refData: void 0,
columnsMenuParams: void 0,
children: void 0,
sortingOrder: void 0,
allowedAggFuncs: void 0,
menuTabs: void 0,
pivotTotalColumnIds: void 0,
cellClassRules: void 0,
icons: void 0,
sortIndex: void 0,
initialSortIndex: void 0,
flex: void 0,
initialFlex: void 0,
width: void 0,
initialWidth: void 0,
minWidth: void 0,
maxWidth: void 0,
rowGroupIndex: void 0,
initialRowGroupIndex: void 0,
pivotIndex: void 0,
initialPivotIndex: void 0,
suppressCellFlash: void 0,
suppressColumnsToolPanel: void 0,
suppressFiltersToolPanel: void 0,
openByDefault: void 0,
marryChildren: void 0,
stickyLabel: void 0,
hide: void 0,
initialHide: void 0,
rowGroup: void 0,
initialRowGroup: void 0,
pivot: void 0,
initialPivot: void 0,
checkboxSelection: void 0,
showDisabledCheckboxes: void 0,
headerCheckboxSelection: void 0,
headerCheckboxSelectionFilteredOnly: void 0,
headerCheckboxSelectionCurrentPageOnly: void 0,
suppressMenu: void 0,
suppressMovable: void 0,
lockPosition: void 0,
lockVisible: void 0,
lockPinned: void 0,
unSortIcon: void 0,
suppressSizeToFit: void 0,
suppressAutoSize: void 0,
enableRowGroup: void 0,
enablePivot: void 0,
enableValue: void 0,
editable: void 0,
suppressPaste: void 0,
suppressNavigable: void 0,
enableCellChangeFlash: void 0,
rowDrag: void 0,
dndSource: void 0,
autoHeight: void 0,
wrapText: void 0,
sortable: void 0,
resizable: void 0,
singleClickEdit: void 0,
floatingFilter: void 0,
cellEditorPopup: void 0,
suppressFillHandle: void 0,
wrapHeaderText: void 0,
autoHeaderHeight: void 0,
dndSourceOnRowDrag: void 0,
valueGetter: void 0,
valueSetter: void 0,
filterValueGetter: void 0,
keyCreator: void 0,
valueFormatter: void 0,
valueParser: void 0,
comparator: void 0,
equals: void 0,
pivotComparator: void 0,
suppressKeyboardEvent: void 0,
suppressHeaderKeyboardEvent: void 0,
colSpan: void 0,
rowSpan: void 0,
getQuickFilterText: void 0,
onCellValueChanged: void 0,
onCellClicked: void 0,
onCellDoubleClicked: void 0,
onCellContextMenu: void 0,
rowDragText: void 0,
tooltipValueGetter: void 0,
cellRendererSelector: void 0,
cellEditorSelector: void 0,
spanHeaderHeight: void 0
}, n.ALL_PROPERTIES = Object.keys(n.ColDefPropertyMap), n.FRAMEWORK_PROPERTIES = [
"__ob__",
"__v_skip",
"__metadata__",
"mappedColumnProperties",
"hasChildColumns",
"toColDef",
"createColDefFromGridColumn"
], n;
}()
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var v = (
/** @class */
function() {
function n() {
}
return n.EVENT_COLUMN_EVERYTHING_CHANGED = "columnEverythingChanged", n.EVENT_NEW_COLUMNS_LOADED = "newColumnsLoaded", n.EVENT_COLUMN_PIVOT_MODE_CHANGED = "columnPivotModeChanged", n.EVENT_COLUMN_ROW_GROUP_CHANGED = "columnRowGroupChanged", n.EVENT_EXPAND_COLLAPSE_ALL = "expandOrCollapseAll", n.EVENT_COLUMN_PIVOT_CHANGED = "columnPivotChanged", n.EVENT_GRID_COLUMNS_CHANGED = "gridColumnsChanged", n.EVENT_COLUMN_VALUE_CHANGED = "columnValueChanged", n.EVENT_COLUMN_MOVED = "columnMoved", n.EVENT_COLUMN_VISIBLE = "columnVisible", n.EVENT_COLUMN_PINNED = "columnPinned", n.EVENT_COLUMN_GROUP_OPENED = "columnGroupOpened", n.EVENT_COLUMN_RESIZED = "columnResized", n.EVENT_DISPLAYED_COLUMNS_CHANGED = "displayedColumnsChanged", n.EVENT_VIRTUAL_COLUMNS_CHANGED = "virtualColumnsChanged", n.EVENT_ASYNC_TRANSACTIONS_FLUSHED = "asyncTransactionsFlushed", n.EVENT_ROW_GROUP_OPENED = "rowGroupOpened", n.EVENT_ROW_DATA_CHANGED = "rowDataChanged", n.EVENT_ROW_DATA_UPDATED = "rowDataUpdated", n.EVENT_PINNED_ROW_DATA_CHANGED = "pinnedRowDataChanged", n.EVENT_RANGE_SELECTION_CHANGED = "rangeSelectionChanged", n.EVENT_CHART_CREATED = "chartCreated", n.EVENT_CHART_RANGE_SELECTION_CHANGED = "chartRangeSelectionChanged", n.EVENT_CHART_OPTIONS_CHANGED = "chartOptionsChanged", n.EVENT_CHART_DESTROYED = "chartDestroyed", n.EVENT_TOOL_PANEL_VISIBLE_CHANGED = "toolPanelVisibleChanged", n.EVENT_TOOL_PANEL_SIZE_CHANGED = "toolPanelSizeChanged", n.EVENT_INTERNAL_TOOL_PANEL_VISIBLE_CHANGED = "internalToolPanelVisibleChanged", n.EVENT_COLUMN_PANEL_ITEM_DRAG_START = "columnPanelItemDragStart", n.EVENT_COLUMN_PANEL_ITEM_DRAG_END = "columnPanelItemDragEnd", n.EVENT_MODEL_UPDATED = "modelUpdated", n.EVENT_PASTE_START = "pasteStart", n.EVENT_PASTE_END = "pasteEnd", n.EVENT_FILL_START = "fillStart", n.EVENT_FILL_END = "fillEnd", n.EVENT_UNDO_STARTED = "undoStarted", n.EVENT_UNDO_ENDED = "undoEnded", n.EVENT_REDO_STARTED = "redoStarted", n.EVENT_REDO_ENDED = "redoEnded", n.EVENT_KEY_SHORTCUT_CHANGED_CELL_START = "keyShortcutChangedCellStart", n.EVENT_KEY_SHORTCUT_CHANGED_CELL_END = "keyShortcutChangedCellEnd", n.EVENT_CELL_CLICKED = "cellClicked", n.EVENT_CELL_DOUBLE_CLICKED = "cellDoubleClicked", n.EVENT_CELL_MOUSE_DOWN = "cellMouseDown", n.EVENT_CELL_CONTEXT_MENU = "cellContextMenu", n.EVENT_CELL_VALUE_CHANGED = "cellValueChanged", n.EVENT_CELL_EDIT_REQUEST = "cellEditRequest", n.EVENT_ROW_VALUE_CHANGED = "rowValueChanged", n.EVENT_CELL_FOCUSED = "cellFocused", n.EVENT_CELL_FOCUS_CLEARED = "cellFocusCleared", n.EVENT_FULL_WIDTH_ROW_FOCUSED = "fullWidthRowFocused", n.EVENT_ROW_SELECTED = "rowSelected", n.EVENT_SELECTION_CHANGED = "selectionChanged", n.EVENT_CELL_KEY_DOWN = "cellKeyDown", n.EVENT_CELL_KEY_PRESS = "cellKeyPress", n.EVENT_CELL_MOUSE_OVER = "cellMouseOver", n.EVENT_CELL_MOUSE_OUT = "cellMouseOut", n.EVENT_FILTER_CHANGED = "filterChanged", n.EVENT_FILTER_MODIFIED = "filterModified", n.EVENT_FILTER_OPENED = "filterOpened", n.EVENT_SORT_CHANGED = "sortChanged", n.EVENT_VIRTUAL_ROW_REMOVED = "virtualRowRemoved", n.EVENT_ROW_CLICKED = "rowClicked", n.EVENT_ROW_DOUBLE_CLICKED = "rowDoubleClicked", n.EVENT_GRID_READY = "gridReady", n.EVENT_GRID_SIZE_CHANGED = "gridSizeChanged", n.EVENT_VIEWPORT_CHANGED = "viewportChanged", n.EVENT_SCROLLBAR_WIDTH_CHANGED = "scrollbarWidthChanged", n.EVENT_FIRST_DATA_RENDERED = "firstDataRendered", n.EVENT_DRAG_STARTED = "dragStarted", n.EVENT_DRAG_STOPPED = "dragStopped", n.EVENT_CHECKBOX_CHANGED = "checkboxChanged", n.EVENT_ROW_EDITING_STARTED = "rowEditingStarted", n.EVENT_ROW_EDITING_STOPPED = "rowEditingStopped", n.EVENT_CELL_EDITING_STARTED = "cellEditingStarted", n.EVENT_CELL_EDITING_STOPPED = "cellEditingStopped", n.EVENT_BODY_SCROLL = "bodyScroll", n.EVENT_BODY_SCROLL_END = "bodyScrollEnd", n.EVENT_HEIGHT_SCALE_CHANGED = "heightScaleChanged", n.EVENT_PAGINATION_CHANGED = "paginationChanged", n.EVENT_COMPONENT_STATE_CHANGED = "componentStateChanged", n.EVENT_STORE_REFRESHED = "storeRefreshed", n.EVENT_BODY_HEIGHT_CHANGED = "bodyHeightChanged", n.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED = "displayedColumnsWidthChanged", n.EVENT_SCROLL_VISIBILITY_CHANGED = "scrollVisibilityChanged", n.EVENT_COLUMN_HOVER_CHANGED = "columnHoverChanged", n.EVENT_FLASH_CELLS = "flashCells", n.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED = "paginationPixelOffsetChanged", n.EVENT_DISPLAYED_ROWS_CHANGED = "displayedRowsChanged", n.EVENT_LEFT_PINNED_WIDTH_CHANGED = "leftPinnedWidthChanged", n.EVENT_RIGHT_PINNED_WIDTH_CHANGED = "rightPinnedWidthChanged", n.EVENT_ROW_CONTAINER_HEIGHT_CHANGED = "rowContainerHeightChanged", n.EVENT_HEADER_HEIGHT_CHANGED = "headerHeightChanged", n.EVENT_COLUMN_HEADER_HEIGHT_CHANGED = "columnHeaderHeightChanged", n.EVENT_ROW_DRAG_ENTER = "rowDragEnter", n.EVENT_ROW_DRAG_MOVE = "rowDragMove", n.EVENT_ROW_DRAG_LEAVE = "rowDragLeave", n.EVENT_ROW_DRAG_END = "rowDragEnd", n.EVENT_GRID_STYLES_CHANGED = "gridStylesChanged", n.EVENT_POPUP_TO_FRONT = "popupToFront", n.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST = "columnRowGroupChangeRequest", n.EVENT_COLUMN_PIVOT_CHANGE_REQUEST = "columnPivotChangeRequest", n.EVENT_COLUMN_VALUE_CHANGE_REQUEST = "columnValueChangeRequest", n.EVENT_COLUMN_AGG_FUNC_CHANGE_REQUEST = "columnAggFuncChangeRequest", n.EVENT_KEYBOARD_FOCUS = "keyboardFocus", n.EVENT_MOUSE_FOCUS = "mouseFocus", n.EVENT_STORE_UPDATED = "storeUpdated", n.EVENT_FILTER_DESTROYED = "filterDestroyed", n;
}()
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Fu = function(n, t) {
var e = typeof Symbol == "function" && n[Symbol.iterator];
if (!e)
return n;
var r = e.call(n), o, i = [], s;
try {
for (; (t === void 0 || t-- > 0) && !(o = r.next()).done; )
i.push(o.value);
} catch (a) {
s = { error: a };
} finally {
try {
o && !o.done && (e = r.return) && e.call(r);
} finally {
if (s)
throw s.error;
}
}
return i;
}, vs = function() {
for (var n = [], t = 0; t < arguments.length; t++)
n = n.concat(Fu(arguments[t]));
return n;
}, $e = (
/** @class */
function() {
function n() {
}
return n.STRING_PROPERTIES = [
"rowSelection",
"overlayLoadingTemplate",
"overlayNoRowsTemplate",
"quickFilterText",
"rowModelType",
"editType",
"domLayout",
"clipboardDelimiter",
"rowGroupPanelShow",
"multiSortKey",
"pivotColumnGroupTotals",
"pivotRowTotals",
"pivotPanelShow",
"fillHandleDirection",
"serverSideStoreType",
"groupDisplayType",
"treeDataDisplayType",
"colResizeDefault"
], n.OBJECT_PROPERTIES = [
"components",
"frameworkComponents",
"rowStyle",
"context",
"autoGroupColumnDef",
"localeText",
"icons",
"datasource",
"serverSideDatasource",
"viewportDatasource",
"groupRowRendererParams",
"aggFuncs",
"fullWidthCellRendererParams",
"defaultColGroupDef",
"defaultColDef",
"defaultCsvExportParams",
"defaultExcelExportParams",
"columnTypes",
"rowClassRules",
"detailCellRendererParams",
"loadingCellRendererParams",
"loadingOverlayComponentParams",
"noRowsOverlayComponentParams",
"popupParent",
"statusBar",
"sideBar",
"chartThemeOverrides",
"customChartThemes",
"chartToolPanelsDef"
], n.ARRAY_PROPERTIES = [
"sortingOrder",
"alignedGrids",
"rowData",
"columnDefs",
"excelStyles",
"pinnedTopRowData",
"pinnedBottomRowData",
"chartThemes",
"rowClass"
], n.NUMBER_PROPERTIES = [
"rowHeight",
"detailRowHeight",
"rowBuffer",
"headerHeight",
"groupHeaderHeight",
"floatingFiltersHeight",
"pivotHeaderHeight",
"pivotGroupHeaderHeight",
"groupDefaultExpanded",
"viewportRowModelPageSize",
"viewportRowModelBufferSize",
"autoSizePadding",
"maxBlocksInCache",
"maxConcurrentDatasourceRequests",
"tooltipShowDelay",
"tooltipHideDelay",
"cacheOverflowSize",
"paginationPageSize",
"cacheBlockSize",
"infiniteInitialRowCount",
"serverSideInitialRowCount",
"scrollbarWidth",
"asyncTransactionWaitMillis",
"blockLoadDebounceMillis",
"keepDetailRowsCount",
"undoRedoCellEditingLimit",
"cellFlashDelay",
"cellFadeDelay",
"tabIndex"
], n.BOOLEAN_PROPERTIES = [
"suppressMakeColumnVisibleAfterUnGroup",
"suppressRowClickSelection",
"suppressCellSelection",
"suppressCellFocus",
"suppressHorizontalScroll",
"alwaysShowHorizontalScroll",
"alwaysShowVerticalScroll",
"debug",
"enableBrowserTooltips",
"enableCellExpressions",
"groupSelectsChildren",
"groupIncludeFooter",
"groupIncludeTotalFooter",
"groupSuppressBlankHeader",
"suppressMenuHide",
"suppressRowDeselection",
"unSortIcon",
"suppressMultiSort",
"alwaysMultiSort",
"singleClickEdit",
"suppressLoadingOverlay",
"suppressNoRowsOverlay",
"suppressAutoSize",
"skipHeaderOnAutoSize",
"suppressParentsInRowNodes",
"suppressColumnMoveAnimation",
"suppressMovableColumns",
"suppressFieldDotNotation",
"enableRangeSelection",
"enableRangeHandle",
"enableFillHandle",
"suppressClearOnFillReduction",
"deltaSort",
"suppressTouch",
"suppressAsyncEvents",
"allowContextMenuWithControlKey",
"suppressContextMenu",
"rememberGroupStateWhenNewData",
"enableCellChangeFlash",
"suppressDragLeaveHidesColumns",
"suppressRowGroupHidesColumns",
"suppressMiddleClickScrolls",
"suppressPreventDefaultOnMouseWheel",
"suppressCopyRowsToClipboard",
"copyHeadersToClipboard",
"copyGroupHeadersToClipboard",
"pivotMode",
"suppressAggFuncInHeader",
"suppressColumnVirtualisation",
"suppressAggAtRootLevel",
"suppressFocusAfterRefresh",
"functionsPassive",
"functionsReadOnly",
"animateRows",
"groupSelectsFiltered",
"groupRemoveSingleChildren",
"groupRemoveLowestSingleChildren",
"enableRtl",
"suppressClickEdit",
"rowDragEntireRow",
"rowDragManaged",
"suppressRowDrag",
"suppressMoveWhenRowDragging",
"rowDragMultiRow",
"enableGroupEdit",
"embedFullWidthRows",
"suppressPaginationPanel",
"groupHideOpenParents",
"groupAllowUnbalanced",
"pagination",
"paginationAutoPageSize",
"suppressScrollOnNewData",
"suppressScrollWhenPopupsAreOpen",
"purgeClosedRowNodes",
"cacheQuickFilter",
"excludeHiddenColumnsFromQuickFilter",
"ensureDomOrder",
"accentedSort",
"suppressChangeDetection",
"valueCache",
"valueCacheNeverExpires",
"aggregateOnlyChangedColumns",
"suppressAnimationFrame",
"suppressExcelExport",
"suppressCsvExport",
"treeData",
"masterDetail",
"suppressMultiRangeSelection",
"enterMovesDownAfterEdit",
"enterMovesDown",
"suppressPropertyNamesCheck",
"rowMultiSelectWithClick",
"suppressRowHoverHighlight",
"suppressRowTransform",
"suppressClipboardPaste",
"suppressLastEmptyLineOnPaste",
"enableCharts",
"enableChartToolPanelsButton",
"suppressChartToolPanelsButton",
"suppressMaintainUnsortedOrder",
"enableCellTextSelection",
"suppressBrowserResizeObserver",
"suppressMaxRenderedRowRestriction",
"excludeChildrenWhenTreeDataFiltering",
"tooltipMouseTrack",
"keepDetailRows",
"paginateChildRows",
"preventDefaultOnContextMenu",
"undoRedoCellEditing",
"allowDragFromColumnsToolPanel",
"immutableData",
"pivotSuppressAutoColumn",
"suppressExpandablePivotGroups",
"debounceVerticalScrollbar",
"detailRowAutoHeight",
"serverSideFilteringAlwaysResets",
"serverSideSortingAlwaysResets",
"serverSideSortAllLevels",
"serverSideFilterAllLevels",
"serverSideSortOnServer",
"serverSideFilterOnServer",
"suppressAggFilteredOnly",
"showOpenedGroup",
"suppressClipboardApi",
"suppressModelUpdateAfterUpdateTransaction",
"stopEditingWhenCellsLoseFocus",
"maintainColumnOrder",
"groupMaintainOrder",
"columnHoverHighlight",
"reactUi",
"suppressReactUi",
"readOnlyEdit",
"suppressRowVirtualisation",
"enableCellEditingOnBackspace",
"resetRowDataOnUpdate",
"removePivotHeaderRowWhenSingleValueColumn",
"suppressCopySingleCellRanges",
"groupRowsSticky",
"suppressServerSideInfiniteScroll",
"rowGroupPanelSuppressSort",
"allowShowChangeAfterFilter",
"suppressCutToClipboard"
], n.FUNCTIONAL_PROPERTIES = [
"localeTextFunc",
"doesExternalFilterPass",
"groupRowAggNodes",
"isFullWidthCell",
"processSecondaryColDef",
"processSecondaryColGroupDef",
"processPivotResultColDef",
"processPivotResultColGroupDef",
"getBusinessKeyForNode",
"isRowSelectable",
"postSort",
"defaultGroupOrderComparator",
"rowDragText",
"groupRowRenderer",
"groupRowRendererFramework",
"fullWidthCellRenderer",
"fullWidthCellRendererFramework",
"loadingCellRenderer",
"loadingCellRendererFramework",
"loadingOverlayComponent",
"loadingOverlayComponentFramework",
"noRowsOverlayComponent",
"noRowsOverlayComponentFramework",
"detailCellRenderer",
"detailCellRendererFramework"
], n.CALLBACK_PROPERTIES = [
"getLocaleText",
"isExternalFilterPresent",
"getRowHeight",
"getRowClass",
"getRowStyle",
"getContextMenuItems",
"getMainMenuItems",
"processRowPostCreate",
"processCellForClipboard",
"getGroupRowAgg",
"getRowNodeId",
"isFullWidthRow",
"sendToClipboard",
"navigateToNextHeader",
"tabToNextHeader",
"navigateToNextCell",
"tabToNextCell",
"processCellFromClipboard",
"getDocument",
"postProcessPopup",
"getChildCount",
"getDataPath",
"isRowMaster",
"postSortRows",
"processHeaderForClipboard",
"processGroupHeaderForClipboard",
"paginationNumberFormatter",
"processDataFromClipboard",
"getServerSideGroupKey",
"isServerSideGroup",
"createChartContainer",
"getChartToolbarItems",
"fillOperation",
"isApplyServerSideTransaction",
"getServerSideStoreParams",
"getServerSideGroupLevelParams",
"isServerSideGroupOpenByDefault",
"isGroupOpenByDefault",
"initialGroupOrderComparator",
"loadingCellRendererSelector",
"getRowId",
"groupAggFiltering"
], n.FUNCTION_PROPERTIES = vs(n.FUNCTIONAL_PROPERTIES, n.CALLBACK_PROPERTIES), n.ALL_PROPERTIES = vs(n.ARRAY_PROPERTIES, n.OBJECT_PROPERTIES, n.STRING_PROPERTIES, n.NUMBER_PROPERTIES, n.FUNCTION_PROPERTIES, n.BOOLEAN_PROPERTIES), n.FRAMEWORK_PROPERTIES = [
"__ob__",
"__v_skip",
"__metadata__",
"mappedColumnProperties",
"hasChildColumns",
"toColDef",
"createColDefFromGridColumn"
], n;
}()
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var cn = function() {
return cn = Object.assign || function(n) {
for (var t, e = 1, r = arguments.length; e < r; e++) {
t = arguments[e];
for (var o in t)
Object.prototype.hasOwnProperty.call(t, o) && (n[o] = t[o]);
}
return n;
}, cn.apply(this, arguments);
}, Lu = function(n, t) {
var e = typeof Symbol == "function" && n[Symbol.iterator];
if (!e)
return n;
var r = e.call(n), o, i = [], s;
try {
for (; (t === void 0 || t-- > 0) && !(o = r.next()).done; )
i.push(o.value);
} catch (a) {
s = { error: a };
} finally {
try {
o && !o.done && (e = r.return) && e.call(r);
} finally {
if (s)
throw s.error;
}
}
return i;
}, Mu = function() {
for (var n = [], t = 0; t < arguments.length; t++)
n = n.concat(Lu(arguments[t]));
return n;
}, _o = (
/** @class */
function() {
function n() {
}
return n.getCallbackForEvent = function(t) {
return !t || t.length < 2 ? t : "on" + t[0].toUpperCase() + t.substr(1);
}, n.getCoercionLookup = function() {
var t = {};
return Mu(n.ARRAY_PROPERTIES, n.OBJECT_PROPERTIES, n.STRING_PROPERTIES, n.FUNCTION_PROPERTIES, n.EVENT_CALLBACKS).forEach(function(e) {
return t[e] = "none";
}), n.BOOLEAN_PROPERTIES.forEach(function(e) {
return t[e] = "boolean";
}), n.NUMBER_PROPERTIES.forEach(function(e) {
return t[e] = "number";
}), t;
}, n.getValue = function(t, e) {
var r = n.coercionLookup[t];
if (r) {
var o = e;
switch (r) {
case "number": {
o = n.toNumber(e);
break;
}
case "boolean": {
o = n.toBoolean(e);
break;
}
case "none": {
t === "groupAggFiltering" && typeof e != "function" && (o = n.toBoolean(e));
break;
}
}
return o;
}
}, n.getGridOptionKeys = function(t, e) {
return Object.keys(e ? n.coercionLookup : t);
}, n.copyAttributesToGridOptions = function(t, e, r) {
r === void 0 && (r = !1), typeof t != "object" && (t = {});
var o = t, i = n.getGridOptionKeys(e, r);
return i.forEach(function(s) {
var a = e[s];
if (typeof a < "u") {
var l = n.getValue(s, a);
l !== void 0 && (o[s] = l);
}
}), t;
}, n.processOnChange = function(t, e) {
if (!(!t || Object.keys(t).length === 0)) {
var r = cn({}, t);
r.columnTypes && (e.setColumnTypes(r.columnTypes.currentValue, "gridOptionsChanged"), delete r.columnTypes), r.autoGroupColumnDef && (e.setAutoGroupColumnDef(r.autoGroupColumnDef.currentValue, "gridOptionsChanged"), delete r.autoGroupColumnDef), r.defaultColDef && (e.setDefaultColDef(r.defaultColDef.currentValue, "gridOptionsChanged"), delete r.defaultColDef), r.columnDefs && (e.setColumnDefs(r.columnDefs.currentValue, "gridOptionsChanged"), delete r.columnDefs), Object.keys(r).forEach(function(i) {
var s = i, a = n.getValue(s, r[s].currentValue);
e.__setProperty(s, a);
});
var o = {
type: v.EVENT_COMPONENT_STATE_CHANGED
};
J(t, function(i, s) {
o[i] = s;
}), e.dispatchEvent(o);
}
}, n.toBoolean = function(t) {
return typeof t == "boolean" ? t : typeof t == "string" ? t.toUpperCase() === "TRUE" || t == "" : !1;
}, n.toNumber = function(t) {
if (typeof t == "number")
return t;
if (typeof t == "string")
return Number(t);
}, n.EVENTS = Vr(v), n.EXCLUDED_INTERNAL_EVENTS = [
v.EVENT_SCROLLBAR_WIDTH_CHANGED,
v.EVENT_CHECKBOX_CHANGED,
v.EVENT_HEIGHT_SCALE_CHANGED,
v.EVENT_BODY_HEIGHT_CHANGED,
v.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,
v.EVENT_SCROLL_VISIBILITY_CHANGED,
v.EVENT_COLUMN_HOVER_CHANGED,
v.EVENT_FLASH_CELLS,
v.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,
v.EVENT_DISPLAYED_ROWS_CHANGED,
v.EVENT_LEFT_PINNED_WIDTH_CHANGED,
v.EVENT_RIGHT_PINNED_WIDTH_CHANGED,
v.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,
v.EVENT_POPUP_TO_FRONT,
v.EVENT_KEYBOARD_FOCUS,
v.EVENT_MOUSE_FOCUS,
v.EVENT_STORE_UPDATED,
v.EVENT_COLUMN_PANEL_ITEM_DRAG_START,
v.EVENT_COLUMN_PANEL_ITEM_DRAG_END,
v.EVENT_FILL_START,
v.EVENT_FILL_END,
v.EVENT_KEY_SHORTCUT_CHANGED_CELL_START,
v.EVENT_KEY_SHORTCUT_CHANGED_CELL_END,
v.EVENT_FULL_WIDTH_ROW_FOCUSED,
v.EVENT_HEADER_HEIGHT_CHANGED,
v.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,
v.EVENT_INTERNAL_TOOL_PANEL_VISIBLE_CHANGED,
v.EVENT_CELL_FOCUS_CLEARED,
v.EVENT_GRID_STYLES_CHANGED,
v.EVENT_FILTER_DESTROYED
], n.PUBLIC_EVENTS = n.EVENTS.filter(function(t) {
return !He(n.EXCLUDED_INTERNAL_EVENTS, t);
}), n.EVENT_CALLBACKS = n.EVENTS.map(function(t) {
return n.getCallbackForEvent(t);
}), n.STRING_PROPERTIES = $e.STRING_PROPERTIES, n.OBJECT_PROPERTIES = $e.OBJECT_PROPERTIES, n.ARRAY_PROPERTIES = $e.ARRAY_PROPERTIES, n.NUMBER_PROPERTIES = $e.NUMBER_PROPERTIES, n.BOOLEAN_PROPERTIES = $e.BOOLEAN_PROPERTIES, n.FUNCTION_PROPERTIES = $e.FUNCTION_PROPERTIES, n.ALL_PROPERTIES = $e.ALL_PROPERTIES, n.ALL_PROPERTIES_SET = new Set($e.ALL_PROPERTIES), n.coercionLookup = n.getCoercionLookup(), n;
}()
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
function Aa(n, t, e) {
var r = {}, o = n.filter(function(i) {
return !t.some(function(s) {
return s === i;
});
});
return o.length > 0 && o.forEach(function(i) {
return r[i] = An(i, e);
}), r;
}
function An(n, t, e, r) {
var o = t.map(function(a) {
return {
value: a,
relevance: Iu(n.toLowerCase(), a.toLocaleLowerCase())
};
});
if (o.sort(function(a, l) {
return l.relevance - a.relevance;
}), e && (o = o.filter(function(a) {
return a.relevance !== 0;
})), r && r > 0) {
var i = o[0].relevance, s = i * r;
o = o.filter(function(a) {
return s - a.relevance < 0;
});
}
return o.map(function(a) {
return a.value;
});
}
function Iu(n, t) {
for (var e = n.replace(/\s/g, ""), r = t.replace(/\s/g, ""), o = 0, i = -1, s = 0; s < e.length; s++) {
var a = r.indexOf(e[s], i + 1);
a !== -1 && (i = a, o += 100 - i * 100 / 1e4 * 100);
}
return o;
}
var xu = /* @__PURE__ */ Object.freeze({
__proto__: null,
fuzzyCheckStrings: Aa,
fuzzySuggestions: An
});
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Yr = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Fa = function(n, t) {
var e = typeof Symbol == "function" && n[Symbol.iterator];
if (!e)
return n;
var r = e.call(n), o, i = [], s;
try {
for (; (t === void 0 || t-- > 0) && !(o = r.next()).done; )
i.push(o.value);
} catch (a) {
s = { error: a };
} finally {
try {
o && !o.done && (e = r.return) && e.call(r);
} finally {
if (s)
throw s.error;
}
}
return i;
}, ci = function() {
for (var n = [], t = 0; t < arguments.length; t++)
n = n.concat(Fa(arguments[t]));
return n;
};
function se(n, t, e, r) {
var o = e ? "Please use '" + e + "' instead. " : "";
K(function() {
return console.warn("AG Grid: since v" + n + ", '" + t + "' is deprecated. " + o + (r ?? ""));
}, "Deprecated_" + t);
}
var Nu = (
/** @class */
function() {
function n() {
this.deprecatedProperties = {
serverSideInfiniteScroll: { version: "29", message: "Infinite Scrolling is now the default behaviour. This can be suppressed with `suppressServerSideInfiniteScroll`." },
rememberGroupStateWhenNewData: { version: "24", message: "Now that transaction updates are possible and they keep group state, this feature is no longer needed." },
suppressEnterpriseResetOnNewColumns: { version: "25", message: "Now that it is possible to dynamically change columns in the grid, this is no longer needed." },
suppressColumnStateEvents: { version: "25", message: 'Events should be ignored based on the `event.source`, which will be "api" if the event was due to setting column state via the API.' },
defaultExportParams: { version: "25.2", message: "The property `defaultExportParams` has been replaced by `defaultCsvExportParams` and `defaultExcelExportParams`" },
stopEditingWhenGridLosesFocus: { version: "25.2.2", newProp: "stopEditingWhenCellsLoseFocus", copyToNewProp: !0 },
applyColumnDefOrder: { version: "26", message: "The property `applyColumnDefOrder` is no longer needed, as this is the default behaviour. To turn this behaviour off, set maintainColumnOrder=true" },
groupMultiAutoColumn: { version: "26", newProp: "groupDisplayType", copyToNewProp: !0, newPropValue: "multipleColumns" },
groupUseEntireRow: { version: "26", newProp: "groupDisplayType", copyToNewProp: !0, newPropValue: "groupRows" },
defaultGroupSortComparator: { version: "26", newProp: "initialGroupOrderComparator" },
enableMultiRowDragging: { version: "26.1", newProp: "rowDragMultiRow", copyToNewProp: !0 },
colWidth: { version: "26.1", newProp: "defaultColDef.width" },
minColWidth: { version: "26.1", newProp: "defaultColDef.minWidth" },
maxColWidth: { version: "26.1", newProp: "defaultColDef.maxWidth" },
reactUi: { version: "26.1", message: "React UI is on by default, so no need for reactUi=true. To turn it off, set suppressReactUi=true." },
suppressCellSelection: { version: "27", newProp: "suppressCellFocus", copyToNewProp: !0 },
clipboardDeliminator: { version: "27.1", newProp: "clipboardDelimiter", copyToNewProp: !0 },
getRowNodeId: { version: "27.1", newProp: "getRowId", message: "The difference: if getRowId() is implemented then immutable data is enabled by default." },
defaultGroupOrderComparator: { version: "27.2", newProp: "initialGroupOrderComparator" },
groupRowAggNodes: { version: "27.2", newProp: "getGroupRowAgg" },
postSort: { version: "27.2", newProp: "postSortRows" },
isFullWidthCell: { version: "27.2", newProp: "isFullWidthRow" },
localeTextFunc: { version: "27.2", newProp: "getLocaleText" },
serverSideFilteringAlwaysResets: { version: "28.0", newProp: "serverSideFilterAllLevels", copyToNewProp: !0 },
serverSideSortingAlwaysResets: { version: "28.0", newProp: "serverSideSortAllLevels", copyToNewProp: !0 },
suppressReactUi: { version: "28", message: "The legacy React rendering engine is deprecated and will be removed in the next major version of the grid." },
processSecondaryColDef: { version: "28", newProp: "processPivotResultColDef", copyToNewProp: !0 },
processSecondaryColGroupDef: { version: "28", newProp: "processPivotResultColGroupDef", copyToNewProp: !0 },
getServerSideStoreParams: { version: "28", newProp: "getServerSideGroupLevelParams", copyToNewProp: !0 },
enableChartToolPanelsButton: { version: "29", message: "The Chart Tool Panels button is now enabled by default. To hide the Chart Tool Panels button and display the hamburger button instead, set suppressChartToolPanelsButton=true." },
functionsPassive: { version: "29.2" },
onColumnRowGroupChangeRequest: { version: "29.2" },
onColumnPivotChangeRequest: { version: "29.2" },
onColumnValueChangeRequest: { version: "29.2" },
onColumnAggFuncChangeRequest: { version: "29.2" }
};
}
return n.prototype.pickOneWarning = function(t, e) {
console.warn("AG Grid: " + t + " and " + e + " do not work with each other, you need to pick one.");
}, n.prototype.init = function() {
var t = this;
if (this.checkForDeprecated(), this.checkForViolations(), this.gridOptions.suppressPropertyNamesCheck !== !0 && (this.checkGridOptionsProperties(), this.checkColumnDefProperties()), this.checkColumnDefViolations(), this.gridOptionsService.is("groupSelectsChildren") && this.gridOptionsService.is("suppressParentsInRowNodes") && console.warn("AG Grid: 'groupSelectsChildren' does not work with 'suppressParentsInRowNodes', this selection method needs the part in rowNode to work"), this.gridOptionsService.is("groupSelectsChildren") && this.gridOptionsService.get("rowSelection") !== "multiple" && console.warn("AG Grid: rowSelection must be 'multiple' for groupSelectsChildren to make sense"), this.gridOptionsService.is("groupRemoveSingleChildren") && this.gridOptionsService.is("groupHideOpenParents") && this.pickOneWarning("groupRemoveSingleChildren", "groupHideOpenParents"), this.gridOptionsService.get("domLayout") === "autoHeight" && !this.gridOptionsService.isRowModelType("clientSide") && (this.gridOptionsService.is("pagination") || (console.warn("AG Grid: domLayout='autoHeight' was ignored as it is only supported by the Client-Side row model, unless using pagination."), this.gridOptions.domLayout = "normal")), this.gridOptionsService.isRowModelType("serverSide")) {
var e = function(o, i) {
return "AG Grid: '" + o + "' is not supported on the Server-Side Row Model." + (i ? " Please use " + i + " instead." : "");
};
this.gridOptionsService.exists("groupDefaultExpanded") && console.warn(e("groupDefaultExpanded", "isServerSideGroupOpenByDefault callback")), this.gridOptionsService.exists("groupIncludeFooter") && console.warn(e("groupIncludeFooter")), this.gridOptionsService.exists("groupIncludeTotalFooter") && console.warn(e("groupIncludeTotalFooter"));
}
this.gridOptionsService.is("enableRangeSelection") ? N.assertRegistered(F.RangeSelectionModule, "enableRangeSelection") : (this.gridOptionsService.is("enableRangeHandle") || this.gridOptionsService.is("enableFillHandle")) && console.warn("AG Grid: 'enableRangeHandle' or 'enableFillHandle' will not work unless 'enableRangeSelection' is set to true");
var r = function(o, i) {
return t.gridOptionsService.exists(o) && N.assertRegistered(i, o);
};
r("sideBar", F.SideBarModule), r("statusBar", F.StatusBarModule), r("enableCharts", F.GridChartsModule), r("getMainMenuItems", F.MenuModule), r("getContextMenuItems", F.MenuModule), r("allowContextMenuWithControlKey", F.MenuModule), this.gridOptionsService.is("groupRowsSticky") && (this.gridOptionsService.is("groupHideOpenParents") && this.pickOneWarning("groupRowsSticky", "groupHideOpenParents"), this.gridOptionsService.is("masterDetail") && this.pickOneWarning("groupRowsSticky", "masterDetail"), this.gridOptionsService.is("pagination") && this.pickOneWarning("groupRowsSticky", "pagination"));
}, n.prototype.checkColumnDefProperties = function() {
var t = this;
if (this.gridOptions.columnDefs != null) {
var e = ci(fs.ALL_PROPERTIES, fs.FRAMEWORK_PROPERTIES), r = function(o, i) {
var s = Object.getOwnPropertyNames(o);
t.checkProperties(s, e, e, i, "https://www.ag-grid.com/javascript-data-grid/column-properties/"), o.children && o.children.forEach(function(a) {
return r(a, "columnDefs.children");
});
};
this.gridOptions.columnDefs.forEach(function(o) {
return r(o, "columnDefs");
}), this.gridOptions.defaultColDef && r(this.gridOptions.defaultColDef, "defaultColDef");
}
}, n.prototype.checkColumnDefViolations = function() {
var t, e = (t = this.gridOptionsService.get("rowModelType")) !== null && t !== void 0 ? t : "clientSide", r = {
infinite: ["headerCheckboxSelection", "headerCheckboxSelectionFilteredOnly", "headerCheckboxSelectionCurrentPageOnly"],
viewport: ["headerCheckboxSelection", "headerCheckboxSelectionFilteredOnly", "headerCheckboxSelectionCurrentPageOnly"],
serverSide: ["headerCheckboxSelectionFilteredOnly", "headerCheckboxSelectionCurrentPageOnly"],
clientSide: []
}, o = r[e];
if (o != null && o.length) {
var i = function(s) {
o.forEach(function(a) {
a in s && s[a] && console.warn("AG Grid: Column property " + a + " is not supported with the row model type " + e + ".");
});
};
this.gridOptions.columnDefs != null && this.gridOptions.columnDefs.forEach(function(s) {
return i(s);
}), this.gridOptions.autoGroupColumnDef != null && i(this.gridOptions.autoGroupColumnDef), this.gridOptions.defaultColDef != null && i(this.gridOptions.defaultColDef);
}
}, n.prototype.checkGridOptionsProperties = function() {
var t = Object.getOwnPropertyNames(this.gridOptions), e = ci($e.ALL_PROPERTIES, $e.FRAMEWORK_PROPERTIES, _o.EVENT_CALLBACKS), r = ci(e, ["api", "columnApi"], Object.keys(this.deprecatedProperties));
this.checkProperties(t, r, e, "gridOptions", "https://www.ag-grid.com/javascript-data-grid/grid-options/");
}, n.prototype.checkProperties = function(t, e, r, o, i) {
var s = Aa(t, e, r);
J(s, function(a, l) {
K(function() {
return console.warn("AG Grid: invalid " + o + " property '" + a + "' did you mean any of these: " + l.slice(0, 8).join(", "));
}, "invalidProperty" + o + a);
}), Object.keys(s).length > 0 && K(function() {
return console.warn("AG Grid: to see all the valid " + o + " properties please check: " + i);
}, "invalidProperties" + o + i);
}, n.prototype.checkForDeprecated = function() {
var t = this.gridOptions;
if (Object.entries(this.deprecatedProperties).forEach(function(r) {
var o, i = Fa(r, 2), s = i[0], a = i[1], l = t[s];
l && (se(a.version, s, a.newProp, a.message), a.copyToNewProp && a.newProp && t[a.newProp] == null && (t[a.newProp] = (o = a.newPropValue) !== null && o !== void 0 ? o : l));
}), t.groupSuppressAutoColumn) {
var e = t.treeData ? "treeDataDisplayType" : "groupDisplayType";
console.warn("AG Grid: since v26.0, the grid property `groupSuppressAutoColumn` has been replaced by `" + e + " = 'custom'`"), t[e] = "custom";
}
t.immutableData && (t.getRowId ? console.warn("AG Grid: since v27.1, `immutableData` is deprecated. With the `getRowId` callback implemented, immutable data is enabled by default so you can remove `immutableData=true`.") : console.warn("AG Grid: since v27.1, `immutableData` is deprecated. To enable immutable data you must implement the `getRowId()` callback.")), t.serverSideStoreType && (console.warn("AG Grid: since v29.0, `serverSideStoreType` has been replaced by `suppressServerSideInfiniteScroll`. Set to false to use Partial Store, and true to use Full Store."), t.suppressServerSideInfiniteScroll = t.serverSideStoreType !== "partial");
}, n.prototype.checkForViolations = function() {
this.gridOptionsService.is("treeData") && this.treeDataViolations();
}, n.prototype.treeDataViolations = function() {
this.gridOptionsService.isRowModelType("clientSide") && (this.gridOptionsService.exists("getDataPath") || console.warn("AG Grid: property usingTreeData=true with rowModel=clientSide, but you did not provide getDataPath function, please provide getDataPath function if using tree data.")), this.gridOptionsService.isRowModelType("serverSide") && (this.gridOptionsService.exists("isServerSideGroup") || console.warn("AG Grid: property usingTreeData=true with rowModel=serverSide, but you did not provide isServerSideGroup function, please provide isServerSideGroup function if using tree data."), this.gridOptionsService.exists("getServerSideGroupKey") || console.warn("AG Grid: property usingTreeData=true with rowModel=serverSide, but you did not provide getServerSideGroupKey function, please provide getServerSideGroupKey function if using tree data."));
}, Yr([
h("gridOptions")
], n.prototype, "gridOptions", void 0), Yr([
h("gridOptionsService")
], n.prototype, "gridOptionsService", void 0), Yr([
b
], n.prototype, "init", null), n = Yr([
A("gridOptionsValidator")
], n), n;
}()
);
function pn(n, t) {
var e = ["groupRows", "multipleColumns", "custom", "singleColumn"];
return e.indexOf(t) < 0 ? (console.warn("AG Grid: '" + t + "' is not a valid groupDisplayType value - possible values are: '" + e.join("', '") + "'"), !1) : t === n;
}
function Gu(n, t) {
var e = ["auto", "custom"];
return e.indexOf(t) < 0 ? (console.warn("AG Grid: '" + t + "' is not a valid treeDataDisplayType value - possible values are: '" + e.join("', '") + "'"), !1) : t === n;
}
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Hu = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Oe = (
/** @class */
function() {
function n(t, e, r, o) {
this.displayedChildren = [], this.localEventService = new wt(), this.groupId = e, this.partId = r, this.providedColumnGroup = t, this.pinned = o;
}
return n.createUniqueId = function(t, e) {
return t + "_" + e;
}, n.prototype.reset = function() {
this.parent = null, this.children = null, this.displayedChildren = null;
}, n.prototype.getParent = function() {
return this.parent;
}, n.prototype.setParent = function(t) {
this.parent = t;
}, n.prototype.getUniqueId = function() {
return n.createUniqueId(this.groupId, this.partId);
}, n.prototype.isEmptyGroup = function() {
return this.displayedChildren.length === 0;
}, n.prototype.isMoving = function() {
var t = this.getProvidedColumnGroup().getLeafColumns();
return !t || t.length === 0 ? !1 : t.every(function(e) {
return e.isMoving();
});
}, n.prototype.checkLeft = function() {
if (this.displayedChildren.forEach(function(o) {
o instanceof n && o.checkLeft();
}), this.displayedChildren.length > 0)
if (this.gridOptionsService.is("enableRtl")) {
var t = q(this.displayedChildren), e = t.getLeft();
this.setLeft(e);
} else {
var r = this.displayedChildren[0].getLeft();
this.setLeft(r);
}
else
this.setLeft(null);
}, n.prototype.getLeft = function() {
return this.left;
}, n.prototype.getOldLeft = function() {
return this.oldLeft;
}, n.prototype.setLeft = function(t) {
this.oldLeft = t, this.left !== t && (this.left = t, this.localEventService.dispatchEvent(this.createAgEvent(n.EVENT_LEFT_CHANGED)));
}, n.prototype.getPinned = function() {
return this.pinned;
}, n.prototype.createAgEvent = function(t) {
return { type: t };
}, n.prototype.addEventListener = function(t, e) {
this.localEventService.addEventListener(t, e);
}, n.prototype.removeEventListener = function(t, e) {
this.localEventService.removeEventListener(t, e);
}, n.prototype.getGroupId = function() {
return this.groupId;
}, n.prototype.getPartId = function() {
return this.partId;
}, n.prototype.isChildInThisGroupDeepSearch = function(t) {
var e = !1;
return this.children.forEach(function(r) {
t === r && (e = !0), r instanceof n && r.isChildInThisGroupDeepSearch(t) && (e = !0);
}), e;
}, n.prototype.getActualWidth = function() {
var t = 0;
return this.displayedChildren && this.displayedChildren.forEach(function(e) {
t += e.getActualWidth();
}), t;
}, n.prototype.isResizable = function() {
if (!this.displayedChildren)
return !1;
var t = !1;
return this.displayedChildren.forEach(function(e) {
e.isResizable() && (t = !0);
}), t;
}, n.prototype.getMinWidth = function() {
var t = 0;
return this.displayedChildren.forEach(function(e) {
t += e.getMinWidth() || 0;
}), t;
}, n.prototype.addChild = function(t) {
this.children || (this.children = []), this.children.push(t);
}, n.prototype.getDisplayedChildren = function() {
return this.displayedChildren;
}, n.prototype.getLeafColumns = function() {
var t = [];
return this.addLeafColumns(t), t;
}, n.prototype.getDisplayedLeafColumns = function() {
var t = [];
return this.addDisplayedLeafColumns(t), t;
}, n.prototype.getDefinition = function() {
return this.providedColumnGroup.getColGroupDef();
}, n.prototype.getColGroupDef = function() {
return this.providedColumnGroup.getColGroupDef();
}, n.prototype.isPadding = function() {
return this.providedColumnGroup.isPadding();
}, n.prototype.isExpandable = function() {
return this.providedColumnGroup.isExpandable();
}, n.prototype.isExpanded = function() {
return this.providedColumnGroup.isExpanded();
}, n.prototype.setExpanded = function(t) {
this.providedColumnGroup.setExpanded(t);
}, n.prototype.addDisplayedLeafColumns = function(t) {
this.displayedChildren.forEach(function(e) {
e instanceof Z ? t.push(e) : e instanceof n && e.addDisplayedLeafColumns(t);
});
}, n.prototype.addLeafColumns = function(t) {
this.children.forEach(function(e) {
e instanceof Z ? t.push(e) : e instanceof n && e.addLeafColumns(t);
});
}, n.prototype.getChildren = function() {
return this.children;
}, n.prototype.getColumnGroupShow = function() {
return this.providedColumnGroup.getColumnGroupShow();
}, n.prototype.getProvidedColumnGroup = function() {
return this.providedColumnGroup;
}, n.prototype.getOriginalColumnGroup = function() {
return se("27", "getOriginalColumnGroup", "getProvidedColumnGroup"), this.getProvidedColumnGroup();
}, n.prototype.getPaddingLevel = function() {
var t = this.getParent();
return !this.isPadding() || !t || !t.isPadding() ? 0 : 1 + t.getPaddingLevel();
}, n.prototype.calculateDisplayedColumns = function() {
var t = this;
this.displayedChildren = [];
for (var e = this; e != null && e.isPadding(); )
e = e.getParent();
var r = e ? e.providedColumnGroup.isExpandable() : !1;
if (!r) {
this.displayedChildren = this.children, this.localEventService.dispatchEvent(this.createAgEvent(n.EVENT_DISPLAYED_CHILDREN_CHANGED));
return;
}
this.children.forEach(function(o) {
var i = o instanceof n && (!o.displayedChildren || !o.displayedChildren.length);
if (!i) {
var s = o.getColumnGroupShow();
switch (s) {
case "open":
e.providedColumnGroup.isExpanded() && t.displayedChildren.push(o);
break;
case "closed":
e.providedColumnGroup.isExpanded() || t.displayedChildren.push(o);
break;
default:
t.displayedChildren.push(o);
break;
}
}
}), this.localEventService.dispatchEvent(this.createAgEvent(n.EVENT_DISPLAYED_CHILDREN_CHANGED));
}, n.EVENT_LEFT_CHANGED = "leftChanged", n.EVENT_DISPLAYED_CHILDREN_CHANGED = "displayedChildrenChanged", Hu([
h("gridOptionsService")
], n.prototype, "gridOptionsService", void 0), n;
}()
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var La = (
/** @class */
function() {
function n() {
this.existingIds = {};
}
return n.prototype.getInstanceIdForKey = function(t) {
var e = this.existingIds[t], r;
return typeof e != "number" ? r = 0 : r = e + 1, this.existingIds[t] = r, r;
}, n;
}()
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Vu = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), pi = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Mr = "ag-Grid-AutoColumn", Bu = (
/** @class */
function(n) {
Vu(t, n);
function t() {
return n !== null && n.apply(this, arguments) || this;
}
return t.prototype.createAutoGroupColumns = function(e, r) {
var o = this, i = [], s = this.gridOptionsService.isTreeData(), a = this.gridOptionsService.isGroupMultiAutoColumn();
return s && a && (console.warn('AG Grid: you cannot mix groupDisplayType = "multipleColumns" with treeData, only one column can be used to display groups when doing tree data'), a = !1), a ? r.forEach(function(l, u) {
i.push(o.createOneAutoGroupColumn(e, l, u));
}) : i.push(this.createOneAutoGroupColumn(e)), i;
}, t.prototype.createOneAutoGroupColumn = function(e, r, o) {
var i = this.generateDefaultColDef(r), s;
r ? s = Mr + "-" + r.getId() : s = Mr;
var a = this.gridOptionsService.get("autoGroupColumnDef");
if (Re(i, a), i = this.columnFactory.mergeColDefs(i), i.colId = s, !this.gridOptionsService.isTreeData()) {
var l = x(i.field) && x(i.valueGetter) && x(i.filterValueGetter) && i.filter !== "agGroupColumnFilter";
l && (i.filter = !1);
}
o && o > 0 && (i.headerCheckboxSelection = !1);
var u = e.find(function(d) {
return d.getId() == s;
});
if (u)
return u.setColDef(i, null), this.columnFactory.applyColumnState(u, i), u;
var c = this.gridOptionsService.isColumnsSortingCoupledToGroup();
c && (i.sort || i.initialSort) && !i.field && Re(i, { sort: null, initialSort: null }, !0, !0);
var p = new Z(i, null, s, !0);
return this.context.createBean(p), p;
}, t.prototype.generateDefaultColDef = function(e) {
var r = this.gridOptionsService.get("autoGroupColumnDef"), o = this.localeService.getLocaleTextFunc(), i = {
headerName: o("group", "Group")
}, s = r && (r.cellRenderer || r.cellRendererFramework || r.cellRendererSelector);
if (s || (i.cellRenderer = "agGroupCellRenderer"), e) {
var a = e.getColDef();
Object.assign(i, {
// cellRendererParams.groupKey: colDefToCopy.field;
headerName: this.columnModel.getDisplayNameForColumn(e, "header"),
headerValueGetter: a.headerValueGetter
}), (a.cellRenderer || a.cellRendererFramework) && Object.assign(i, {
cellRendererParams: {
innerRenderer: a.cellRenderer,
innerRendererFramework: a.cellRendererFramework,
innerRendererParams: a.cellRendererParams
}
}), i.showRowGroup = e.getColId();
} else
i.showRowGroup = !0;
return i;
}, pi([
h("columnModel")
], t.prototype, "columnModel", void 0), pi([
h("columnFactory")
], t.prototype, "columnFactory", void 0), t = pi([
A("autoGroupColService")
], t), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Wu = /[&<>"']/g, ju = {
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
'"': "&quot;",
"'": "&#39;"
};
function ku(n) {
var t = String.fromCharCode;
function e(p) {
var d = [];
if (!p)
return [];
for (var f = p.length, g = 0, y, C; g < f; )
y = p.charCodeAt(g++), y >= 55296 && y <= 56319 && g < f ? (C = p.charCodeAt(g++), (C & 64512) == 56320 ? d.push(((y & 1023) << 10) + (C & 1023) + 65536) : (d.push(y), g--)) : d.push(y);
return d;
}
function r(p) {
if (p >= 55296 && p <= 57343)
throw Error("Lone surrogate U+" + p.toString(16).toUpperCase() + " is not a scalar value");
}
function o(p, d) {
return t(p >> d & 63 | 128);
}
function i(p) {
if (p >= 0 && p <= 31 && p !== 10) {
var d = p.toString(16).toUpperCase(), f = d.padStart(4, "0");
return "_x" + f + "_";
}
if (!(p & 4294967168))
return t(p);
var g = "";
return p & 4294965248 ? p & 4294901760 ? p & 4292870144 || (g = t(p >> 18 & 7 | 240), g += o(p, 12), g += o(p, 6)) : (r(p), g = t(p >> 12 & 15 | 224), g += o(p, 6)) : g = t(p >> 6 & 31 | 192), g += t(p & 63 | 128), g;
}
for (var s = e(n), a = s.length, l = -1, u, c = ""; ++l < a; )
u = s[l], c += i(u);
return c;
}
function Ma(n) {
return n[0].toUpperCase() + n.substr(1).toLowerCase();
}
function tt(n, t) {
if (n == null)
return null;
var e = n.toString().toString();
return t ? e : e.replace(Wu, function(r) {
return ju[r];
});
}
function Ia(n) {
if (!n || n == null)
return null;
var t = /([a-z])([A-Z])/g, e = /([A-Z]+)([A-Z])([a-z])/g, r = n.replace(t, "$1 $2").replace(e, "$1 $2$3").replace(/\./g, " ").split(" ");
return r.map(function(o) {
return o.substring(0, 1).toUpperCase() + (o.length > 1 ? o.substring(1, o.length) : "");
}).join(" ");
}
var Uu = /* @__PURE__ */ Object.freeze({
__proto__: null,
utf8_encode: ku,
capitalise: Ma,
escapeString: tt,
camelCaseToHumanText: Ia
});
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
function it(n) {
var t = /* @__PURE__ */ new Map();
return n.forEach(function(e) {
return t.set(e[0], e[1]);
}), t;
}
function zu(n, t) {
var e = /* @__PURE__ */ new Map();
return n.forEach(function(r) {
return e.set(t(r), r);
}), e;
}
function Ku(n) {
var t = [];
return n.forEach(function(e, r) {
return t.push(r);
}), t;
}
var $u = /* @__PURE__ */ Object.freeze({
__proto__: null,
convertToMap: it,
mapById: zu,
keys: Ku
});
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Yu = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), ce = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, qu = function(n, t) {
return function(e, r) {
t(e, r, n);
};
}, Qu = function(n, t) {
var e = {};
for (var r in n)
Object.prototype.hasOwnProperty.call(n, r) && t.indexOf(r) < 0 && (e[r] = n[r]);
if (n != null && typeof Object.getOwnPropertySymbols == "function")
for (var o = 0, r = Object.getOwnPropertySymbols(n); o < r.length; o++)
t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(n, r[o]) && (e[r[o]] = n[r[o]]);
return e;
}, gs = function(n) {
var t = typeof Symbol == "function" && Symbol.iterator, e = t && n[t], r = 0;
if (e)
return e.call(n);
if (n && typeof n.length == "number")
return {
next: function() {
return n && r >= n.length && (n = void 0), { value: n && n[r++], done: !n };
}
};
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
}, Xu = function(n, t) {
var e = typeof Symbol == "function" && n[Symbol.iterator];
if (!e)
return n;
var r = e.call(n), o, i = [], s;
try {
for (; (t === void 0 || t-- > 0) && !(o = r.next()).done; )
i.push(o.value);
} catch (a) {
s = { error: a };
} finally {
try {
o && !o.done && (e = r.return) && e.call(r);
} finally {
if (s)
throw s.error;
}
}
return i;
}, lr = function() {
for (var n = [], t = 0; t < arguments.length; t++)
n = n.concat(Xu(arguments[t]));
return n;
}, Ju = (
/** @class */
function(n) {
Yu(t, n);
function t() {
var e = n !== null && n.apply(this, arguments) || this;
return e.primaryHeaderRowCount = 0, e.secondaryHeaderRowCount = 0, e.gridHeaderRowCount = 0, e.displayedColumnsLeft = [], e.displayedColumnsRight = [], e.displayedColumnsCenter = [], e.displayedColumns = [], e.displayedColumnsAndGroupsMap = {}, e.viewportColumns = [], e.viewportColumnsHash = "", e.headerViewportColumns = [], e.viewportColumnsCenter = [], e.headerViewportColumnsCenter = [], e.autoHeightActiveAtLeastOnce = !1, e.rowGroupColumns = [], e.valueColumns = [], e.pivotColumns = [], e.ready = !1, e.autoGroupsNeedBuilding = !1, e.forceRecreateAutoGroups = !1, e.pivotMode = !1, e.bodyWidth = 0, e.leftWidth = 0, e.rightWidth = 0, e.bodyWidthDirty = !0, e;
}
return t.prototype.init = function() {
var e = this;
this.suppressColumnVirtualisation = this.gridOptionsService.is("suppressColumnVirtualisation");
var r = this.gridOptionsService.is("pivotMode");
this.isPivotSettingAllowed(r) && (this.pivotMode = r), this.usingTreeData = this.gridOptionsService.isTreeData(), this.addManagedPropertyListener("groupDisplayType", function() {
return e.onAutoGroupColumnDefChanged();
}), this.addManagedPropertyListener("autoGroupColumnDef", function() {
return e.onAutoGroupColumnDefChanged();
}), this.addManagedPropertyListener("defaultColDef", function(o) {
return e.onSharedColDefChanged(o.source);
}), this.addManagedPropertyListener("columnTypes", function(o) {
return e.onSharedColDefChanged(o.source);
});
}, t.prototype.onAutoGroupColumnDefChanged = function() {
this.autoGroupsNeedBuilding = !0, this.forceRecreateAutoGroups = !0, this.updateGridColumns(), this.updateDisplayedColumns("gridOptionsChanged");
}, t.prototype.onSharedColDefChanged = function(e) {
e === void 0 && (e = "api"), this.forceRecreateAutoGroups = !0, this.createColumnsFromColumnDefs(!0, e);
}, t.prototype.setColumnDefs = function(e, r) {
r === void 0 && (r = "api");
var o = !!this.columnDefs;
this.columnDefs = e, this.createColumnsFromColumnDefs(o, r);
}, t.prototype.destroyOldColumns = function(e, r) {
var o = {};
if (e) {
this.columnUtils.depthFirstOriginalTreeSearch(null, e, function(s) {
o[s.getInstanceId()] = s;
}), r && this.columnUtils.depthFirstOriginalTreeSearch(null, r, function(s) {
o[s.getInstanceId()] = null;
});
var i = Object.values(o).filter(function(s) {
return s != null;
});
this.destroyBeans(i);
}
}, t.prototype.destroyColumns = function() {
this.destroyOldColumns(this.primaryColumnTree), this.destroyOldColumns(this.secondaryBalancedTree), this.destroyOldColumns(this.groupAutoColsBalancedTree);
}, t.prototype.createColumnsFromColumnDefs = function(e, r) {
var o = this;
r === void 0 && (r = "api");
var i = e ? this.compareColumnStatesAndDispatchEvents(r) : void 0;
this.valueCache.expire(), this.autoGroupsNeedBuilding = !0;
var s = this.primaryColumns, a = this.primaryColumnTree, l = this.columnFactory.createColumnTree(this.columnDefs, !0, a);
this.destroyOldColumns(this.primaryColumnTree, l.columnTree), this.primaryColumnTree = l.columnTree, this.primaryHeaderRowCount = l.treeDept + 1, this.primaryColumns = this.getColumnsFromTree(this.primaryColumnTree), this.primaryColumnsMap = {}, this.primaryColumns.forEach(function(p) {
return o.primaryColumnsMap[p.getId()] = p;
}), this.extractRowGroupColumns(r, s), this.extractPivotColumns(r, s), this.extractValueColumns(r, s), this.ready = !0;
var u = this.gridColsArePrimary === void 0, c = this.gridColsArePrimary || u;
c && (this.updateGridColumns(), e && !this.gridOptionsService.is("maintainColumnOrder") && this.orderGridColumnsLikePrimary(), this.updateDisplayedColumns(r), this.checkViewportColumns()), this.dispatchEverythingChanged(r), i && i(), this.dispatchNewColumnsLoaded();
}, t.prototype.dispatchNewColumnsLoaded = function() {
var e = {
type: v.EVENT_NEW_COLUMNS_LOADED
};
this.eventService.dispatchEvent(e);
}, t.prototype.dispatchEverythingChanged = function(e) {
e === void 0 && (e = "api");
var r = {
type: v.EVENT_COLUMN_EVERYTHING_CHANGED,
source: e
};
this.eventService.dispatchEvent(r);
}, t.prototype.orderGridColumnsLikePrimary = function() {
var e = this, r = this.primaryColumns;
r && (this.gridColumns.sort(function(o, i) {
var s = r.indexOf(o), a = r.indexOf(i), l = s >= 0, u = a >= 0;
if (l && u)
return s - a;
if (l)
return 1;
if (u)
return -1;
var c = e.gridColumns.indexOf(o), p = e.gridColumns.indexOf(i);
return c - p;
}), this.gridColumns = this.placeLockedColumns(this.gridColumns));
}, t.prototype.getAllDisplayedAutoHeightCols = function() {
return this.displayedAutoHeightCols;
}, t.prototype.setViewport = function() {
this.gridOptionsService.is("enableRtl") ? (this.viewportLeft = this.bodyWidth - this.scrollPosition - this.scrollWidth, this.viewportRight = this.bodyWidth - this.scrollPosition) : (this.viewportLeft = this.scrollPosition, this.viewportRight = this.scrollWidth + this.scrollPosition);
}, t.prototype.getDisplayedColumnsStartingAt = function(e) {
for (var r = e, o = []; r != null; )
o.push(r), r = this.getDisplayedColAfter(r);
return o;
}, t.prototype.checkViewportColumns = function() {
if (this.displayedColumnsCenter != null) {
var e = this.extractViewport();
if (e) {
var r = {
type: v.EVENT_VIRTUAL_COLUMNS_CHANGED
};
this.eventService.dispatchEvent(r);
}
}
}, t.prototype.setViewportPosition = function(e, r) {
(e !== this.scrollWidth || r !== this.scrollPosition || this.bodyWidthDirty) && (this.scrollWidth = e, this.scrollPosition = r, this.bodyWidthDirty = !0, this.setViewport(), this.ready && this.checkViewportColumns());
}, t.prototype.isPivotMode = function() {
return this.pivotMode;
}, t.prototype.isPivotSettingAllowed = function(e) {
return e && this.gridOptionsService.isTreeData() ? (console.warn("AG Grid: Pivot mode not available in conjunction Tree Data i.e. 'gridOptions.treeData: true'"), !1) : !0;
}, t.prototype.setPivotMode = function(e, r) {
if (r === void 0 && (r = "api"), !(e === this.pivotMode || !this.isPivotSettingAllowed(this.pivotMode))) {
this.pivotMode = e, this.autoGroupsNeedBuilding = !0, this.updateGridColumns(), this.updateDisplayedColumns(r);
var o = {
type: v.EVENT_COLUMN_PIVOT_MODE_CHANGED
};
this.eventService.dispatchEvent(o);
}
}, t.prototype.getSecondaryPivotColumn = function(e, r) {
if (x(this.secondaryColumns))
return null;
var o = this.getPrimaryColumn(r), i = null;
return this.secondaryColumns.forEach(function(s) {
var a = s.getColDef().pivotKeys, l = s.getColDef().pivotValueColumn, u = gt(a, e), c = l === o;
u && c && (i = s);
}), i;
}, t.prototype.setBeans = function(e) {
this.logger = e.create("columnModel");
}, t.prototype.setFirstRightAndLastLeftPinned = function(e) {
var r, o;
this.gridOptionsService.is("enableRtl") ? (r = this.displayedColumnsLeft ? this.displayedColumnsLeft[0] : null, o = this.displayedColumnsRight ? q(this.displayedColumnsRight) : null) : (r = this.displayedColumnsLeft ? q(this.displayedColumnsLeft) : null, o = this.displayedColumnsRight ? this.displayedColumnsRight[0] : null), this.gridColumns.forEach(function(i) {
i.setLastLeftPinned(i === r, e), i.setFirstRightPinned(i === o, e);
});
}, t.prototype.autoSizeColumns = function(e) {
var r = this, o = e.columns, i = e.skipHeader, s = e.skipHeaderGroups, a = e.stopAtGroup, l = e.source, u = l === void 0 ? "api" : l;
this.animationFrameService.flushAllFrames();
for (var c = [], p = -1, d = i ?? this.gridOptionsService.is("skipHeaderOnAutoSize"), f = s ?? d; p !== 0; )
p = 0, this.actionOnGridColumns(o, function(g) {
if (c.indexOf(g) >= 0)
return !1;
var y = r.autoWidthCalculator.getPreferredWidthForColumn(g, d);
if (y > 0) {
var C = r.normaliseColumnWidth(g, y);
g.setActualWidth(C, u), c.push(g), p++;
}
return !0;
}, u);
f || this.autoSizeColumnGroupsByColumns(o, u, a), this.dispatchColumnResizedEvent(c, !0, "autosizeColumns");
}, t.prototype.dispatchColumnResizedEvent = function(e, r, o, i) {
if (i === void 0 && (i = null), e && e.length) {
var s = {
type: v.EVENT_COLUMN_RESIZED,
columns: e,
column: e.length === 1 ? e[0] : null,
flexColumns: i,
finished: r,
source: o
};
this.eventService.dispatchEvent(s);
}
}, t.prototype.dispatchColumnChangedEvent = function(e, r, o) {
var i = {
type: e,
columns: r,
column: r && r.length == 1 ? r[0] : null,
source: o
};
this.eventService.dispatchEvent(i);
}, t.prototype.dispatchColumnMovedEvent = function(e) {
var r = e.movedColumns, o = e.source, i = e.toIndex, s = e.finished, a = {
type: v.EVENT_COLUMN_MOVED,
columns: r,
column: r && r.length === 1 ? r[0] : null,
toIndex: i,
finished: s,
source: o
};
this.eventService.dispatchEvent(a);
}, t.prototype.dispatchColumnPinnedEvent = function(e, r) {
if (e.length) {
var o = e.length === 1 ? e[0] : null, i = this.getCommonValue(e, function(a) {
return a.getPinned();
}), s = {
type: v.EVENT_COLUMN_PINNED,
// mistake in typing, 'undefined' should be allowed, as 'null' means 'not pinned'
pinned: i ?? null,
columns: e,
column: o,
source: r
};
this.eventService.dispatchEvent(s);
}
}, t.prototype.dispatchColumnVisibleEvent = function(e, r) {
if (e.length) {
var o = e.length === 1 ? e[0] : null, i = this.getCommonValue(e, function(a) {
return a.isVisible();
}), s = {
type: v.EVENT_COLUMN_VISIBLE,
visible: i,
columns: e,
column: o,
source: r
};
this.eventService.dispatchEvent(s);
}
}, t.prototype.autoSizeColumn = function(e, r, o) {
o === void 0 && (o = "api"), e && this.autoSizeColumns({ columns: [e], skipHeader: r, skipHeaderGroups: !0, source: o });
}, t.prototype.autoSizeColumnGroupsByColumns = function(e, r, o) {
var i, s, a, l, u = /* @__PURE__ */ new Set(), c = this.getGridColumns(e);
c.forEach(function(E) {
for (var R = E.getParent(); R && R != o; )
R.isPadding() || u.add(R), R = R.getParent();
});
var p, d = [];
try {
for (var f = gs(u), g = f.next(); !g.done; g = f.next()) {
var y = g.value;
try {
for (var C = (a = void 0, gs(this.ctrlsService.getHeaderRowContainerCtrls())), m = C.next(); !m.done; m = C.next()) {
var w = m.value;
if (p = w.getHeaderCtrlForColumn(y), p)
break;
}
} catch (E) {
a = { error: E };
} finally {
try {
m && !m.done && (l = C.return) && l.call(C);
} finally {
if (a)
throw a.error;
}
}
p && p.resizeLeafColumnsToFit(r);
}
} catch (E) {
i = { error: E };
} finally {
try {
g && !g.done && (s = f.return) && s.call(f);
} finally {
if (i)
throw i.error;
}
}
return d;
}, t.prototype.autoSizeAllColumns = function(e, r) {
r === void 0 && (r = "api");
var o = this.getAllDisplayedColumns();
this.autoSizeColumns({ columns: o, skipHeader: e, source: r });
}, t.prototype.getColumnsFromTree = function(e) {
var r = [], o = function(i) {
for (var s = 0; s < i.length; s++) {
var a = i[s];
a instanceof Z ? r.push(a) : a instanceof re && o(a.getChildren());
}
};
return o(e), r;
}, t.prototype.getAllDisplayedTrees = function() {
return this.displayedTreeLeft && this.displayedTreeRight && this.displayedTreeCentre ? this.displayedTreeLeft.concat(this.displayedTreeCentre).concat(this.displayedTreeRight) : null;
}, t.prototype.getPrimaryColumnTree = function() {
return this.primaryColumnTree;
}, t.prototype.getHeaderRowCount = function() {
return this.gridHeaderRowCount;
}, t.prototype.getDisplayedTreeLeft = function() {
return this.displayedTreeLeft;
}, t.prototype.getDisplayedTreeRight = function() {
return this.displayedTreeRight;
}, t.prototype.getDisplayedTreeCentre = function() {
return this.displayedTreeCentre;
}, t.prototype.isColumnDisplayed = function(e) {
return this.getAllDisplayedColumns().indexOf(e) >= 0;
}, t.prototype.getAllDisplayedColumns = function() {
return this.displayedColumns;
}, t.prototype.getViewportColumns = function() {
return this.viewportColumns;
}, t.prototype.getDisplayedLeftColumnsForRow = function(e) {
return this.colSpanActive ? this.getDisplayedColumnsForRow(e, this.displayedColumnsLeft) : this.displayedColumnsLeft;
}, t.prototype.getDisplayedRightColumnsForRow = function(e) {
return this.colSpanActive ? this.getDisplayedColumnsForRow(e, this.displayedColumnsRight) : this.displayedColumnsRight;
}, t.prototype.isColSpanActive = function() {
return this.colSpanActive;
}, t.prototype.getDisplayedColumnsForRow = function(e, r, o, i) {
for (var s = [], a = null, l = function(p) {
var d = r[p], f = r.length - p, g = Math.min(d.getColSpan(e), f), y = [d];
if (g > 1) {
for (var C = g - 1, m = 1; m <= C; m++)
y.push(r[p + m]);
p += C;
}
var w;
if (o ? (w = !1, y.forEach(function(R) {
o(R) && (w = !0);
})) : w = !0, w) {
if (s.length === 0 && a) {
var E = i ? i(d) : !1;
E && s.push(a);
}
s.push(d);
}
a = d, u = p;
}, u, c = 0; c < r.length; c++)
l(c), c = u;
return s;
}, t.prototype.getViewportCenterColumnsForRow = function(e) {
var r = this;
if (!this.colSpanActive)
return this.viewportColumnsCenter;
var o = function(s) {
var a = s.getLeft();
return O(a) && a > r.viewportLeft;
}, i = this.suppressColumnVirtualisation ? null : this.isColumnInRowViewport.bind(this);
return this.getDisplayedColumnsForRow(e, this.displayedColumnsCenter, i, o);
}, t.prototype.getAriaColumnIndex = function(e) {
return this.getAllGridColumns().indexOf(e) + 1;
}, t.prototype.isColumnInHeaderViewport = function(e) {
return e.isAutoHeaderHeight() ? !0 : this.isColumnInRowViewport(e);
}, t.prototype.isColumnInRowViewport = function(e) {
if (e.isAutoHeight())
return !0;
var r = e.getLeft() || 0, o = r + e.getActualWidth(), i = this.viewportLeft - 200, s = this.viewportRight + 200, a = r < i && o < i, l = r > s && o > s;
return !a && !l;
}, t.prototype.getDisplayedColumnsLeftWidth = function() {
return this.getWidthOfColsInList(this.displayedColumnsLeft);
}, t.prototype.getDisplayedColumnsRightWidth = function() {
return this.getWidthOfColsInList(this.displayedColumnsRight);
}, t.prototype.updatePrimaryColumnList = function(e, r, o, i, s, a) {
var l = this;
if (a === void 0 && (a = "api"), !(!e || Pe(e))) {
var u = !1;
if (e.forEach(function(p) {
var d = l.getPrimaryColumn(p);
if (d) {
if (o) {
if (r.indexOf(d) >= 0)
return;
r.push(d);
} else {
if (r.indexOf(d) < 0)
return;
ge(r, d);
}
i(d), u = !0;
}
}), !!u) {
this.autoGroupsNeedBuilding && this.updateGridColumns(), this.updateDisplayedColumns(a);
var c = {
type: s,
columns: r,
column: r.length === 1 ? r[0] : null,
source: a
};
this.eventService.dispatchEvent(c);
}
}
}, t.prototype.setRowGroupColumns = function(e, r) {
r === void 0 && (r = "api"), this.autoGroupsNeedBuilding = !0, this.setPrimaryColumnList(e, this.rowGroupColumns, v.EVENT_COLUMN_ROW_GROUP_CHANGED, this.setRowGroupActive.bind(this), r);
}, t.prototype.setRowGroupActive = function(e, r, o) {
e !== r.isRowGroupActive() && (r.setRowGroupActive(e, o), e && !this.gridOptionsService.is("suppressRowGroupHidesColumns") && this.setColumnVisible(r, !1, o), !e && !this.gridOptionsService.is("suppressMakeColumnVisibleAfterUnGroup") && this.setColumnVisible(r, !0, o));
}, t.prototype.addRowGroupColumn = function(e, r) {
r === void 0 && (r = "api"), e && this.addRowGroupColumns([e], r);
}, t.prototype.addRowGroupColumns = function(e, r) {
r === void 0 && (r = "api"), this.autoGroupsNeedBuilding = !0, this.updatePrimaryColumnList(e, this.rowGroupColumns, !0, this.setRowGroupActive.bind(this, !0), v.EVENT_COLUMN_ROW_GROUP_CHANGED, r);
}, t.prototype.removeRowGroupColumns = function(e, r) {
r === void 0 && (r = "api"), this.autoGroupsNeedBuilding = !0, this.updatePrimaryColumnList(e, this.rowGroupColumns, !1, this.setRowGroupActive.bind(this, !1), v.EVENT_COLUMN_ROW_GROUP_CHANGED, r);
}, t.prototype.removeRowGroupColumn = function(e, r) {
r === void 0 && (r = "api"), e && this.removeRowGroupColumns([e], r);
}, t.prototype.addPivotColumns = function(e, r) {
r === void 0 && (r = "api"), this.updatePrimaryColumnList(e, this.pivotColumns, !0, function(o) {
return o.setPivotActive(!0, r);
}, v.EVENT_COLUMN_PIVOT_CHANGED, r);
}, t.prototype.setPivotColumns = function(e, r) {
r === void 0 && (r = "api"), this.setPrimaryColumnList(e, this.pivotColumns, v.EVENT_COLUMN_PIVOT_CHANGED, function(o, i) {
i.setPivotActive(o, r);
}, r);
}, t.prototype.addPivotColumn = function(e, r) {
r === void 0 && (r = "api"), this.addPivotColumns([e], r);
}, t.prototype.removePivotColumns = function(e, r) {
r === void 0 && (r = "api"), this.updatePrimaryColumnList(e, this.pivotColumns, !1, function(o) {
return o.setPivotActive(!1, r);
}, v.EVENT_COLUMN_PIVOT_CHANGED, r);
}, t.prototype.removePivotColumn = function(e, r) {
r === void 0 && (r = "api"), this.removePivotColumns([e], r);
}, t.prototype.setPrimaryColumnList = function(e, r, o, i, s) {
var a = this;
r.length = 0, O(e) && e.forEach(function(l) {
var u = a.getPrimaryColumn(l);
u && r.push(u);
}), (this.primaryColumns || []).forEach(function(l) {
var u = r.indexOf(l) >= 0;
i(u, l);
}), this.autoGroupsNeedBuilding && this.updateGridColumns(), this.updateDisplayedColumns(s), this.dispatchColumnChangedEvent(o, r, s);
}, t.prototype.setValueColumns = function(e, r) {
r === void 0 && (r = "api"), this.setPrimaryColumnList(e, this.valueColumns, v.EVENT_COLUMN_VALUE_CHANGED, this.setValueActive.bind(this), r);
}, t.prototype.setValueActive = function(e, r, o) {
if (e !== r.isValueActive() && (r.setValueActive(e, o), e && !r.getAggFunc())) {
var i = this.aggFuncService.getDefaultAggFunc(r);
r.setAggFunc(i);
}
}, t.prototype.addValueColumns = function(e, r) {
r === void 0 && (r = "api"), this.updatePrimaryColumnList(e, this.valueColumns, !0, this.setValueActive.bind(this, !0), v.EVENT_COLUMN_VALUE_CHANGED, r);
}, t.prototype.addValueColumn = function(e, r) {
r === void 0 && (r = "api"), e && this.addValueColumns([e], r);
}, t.prototype.removeValueColumn = function(e, r) {
r === void 0 && (r = "api"), this.removeValueColumns([e], r);
}, t.prototype.removeValueColumns = function(e, r) {
r === void 0 && (r = "api"), this.updatePrimaryColumnList(e, this.valueColumns, !1, this.setValueActive.bind(this, !1), v.EVENT_COLUMN_VALUE_CHANGED, r);
}, t.prototype.normaliseColumnWidth = function(e, r) {
var o = e.getMinWidth();
O(o) && r < o && (r = o);
var i = e.getMaxWidth();
return O(i) && e.isGreaterThanMax(r) && (r = i), r;
}, t.prototype.getPrimaryOrGridColumn = function(e) {
var r = this.getPrimaryColumn(e);
return r || this.getGridColumn(e);
}, t.prototype.setColumnWidths = function(e, r, o, i) {
var s = this;
i === void 0 && (i = "api");
var a = [];
e.forEach(function(l) {
var u = s.getPrimaryOrGridColumn(l.key);
if (u) {
a.push({
width: l.newWidth,
ratios: [1],
columns: [u]
});
var c = s.gridOptionsService.get("colResizeDefault") === "shift";
if (c && (r = !r), r) {
var p = s.getDisplayedColAfter(u);
if (!p)
return;
var d = u.getActualWidth() - l.newWidth, f = p.getActualWidth() + d;
a.push({
width: f,
ratios: [1],
columns: [p]
});
}
}
}), a.length !== 0 && this.resizeColumnSets({
resizeSets: a,
finished: o,
source: i
});
}, t.prototype.checkMinAndMaxWidthsForSet = function(e) {
var r = e.columns, o = e.width, i = 0, s = 0, a = !0;
r.forEach(function(c) {
var p = c.getMinWidth();
i += p || 0;
var d = c.getMaxWidth();
O(d) && d > 0 ? s += d : a = !1;
});
var l = o >= i, u = !a || o <= s;
return l && u;
}, t.prototype.resizeColumnSets = function(e) {
var r = this, o = e.resizeSets, i = e.finished, s = e.source, a = !o || o.every(function(g) {
return r.checkMinAndMaxWidthsForSet(g);
});
if (!a) {
if (i) {
var l = o && o.length > 0 ? o[0].columns : null;
this.dispatchColumnResizedEvent(l, i, s);
}
return;
}
var u = [], c = [];
o.forEach(function(g) {
var y = g.width, C = g.columns, m = g.ratios, w = {}, E = {};
C.forEach(function(L) {
return c.push(L);
});
for (var R = !0, D = 0, M = function() {
if (D++, D > 1e3)
return console.error("AG Grid: infinite loop in resizeColumnSets"), "break";
R = !1;
var L = [], H = 0, B = y;
C.forEach(function(U, ue) {
var we = E[U.getId()];
if (we)
B -= w[U.getId()];
else {
L.push(U);
var te = m[ue];
H += te;
}
});
var Q = 1 / H;
L.forEach(function(U, ue) {
var we = ue === L.length - 1, te;
we ? te = B : (te = Math.round(m[ue] * y * Q), B -= te);
var X = U.getMinWidth(), ye = U.getMaxWidth();
O(X) && te < X ? (te = X, E[U.getId()] = !0, R = !0) : O(ye) && ye > 0 && te > ye && (te = ye, E[U.getId()] = !0, R = !0), w[U.getId()] = te;
});
}; R; ) {
var I = M();
if (I === "break")
break;
}
C.forEach(function(L) {
var H = w[L.getId()], B = L.getActualWidth();
B !== H && (L.setActualWidth(H, s), u.push(L));
});
});
var p = u.length > 0, d = [];
p && (d = this.refreshFlexedColumns({ resizingCols: c, skipSetLeft: !0 }), this.setLeftValues(s), this.updateBodyWidths(), this.checkViewportColumns());
var f = c.concat(d);
(p || i) && this.dispatchColumnResizedEvent(f, i, s, d);
}, t.prototype.setColumnAggFunc = function(e, r, o) {
if (o === void 0 && (o = "api"), !!e) {
var i = this.getPrimaryColumn(e);
i && (i.setAggFunc(r), this.dispatchColumnChangedEvent(v.EVENT_COLUMN_VALUE_CHANGED, [i], o));
}
}, t.prototype.moveRowGroupColumn = function(e, r, o) {
o === void 0 && (o = "api");
var i = this.rowGroupColumns[e];
this.rowGroupColumns.splice(e, 1), this.rowGroupColumns.splice(r, 0, i);
var s = {
type: v.EVENT_COLUMN_ROW_GROUP_CHANGED,
columns: this.rowGroupColumns,
column: this.rowGroupColumns.length === 1 ? this.rowGroupColumns[0] : null,
source: o
};
this.eventService.dispatchEvent(s);
}, t.prototype.moveColumns = function(e, r, o, i) {
if (o === void 0 && (o = "api"), i === void 0 && (i = !0), this.columnAnimationService.start(), r > this.gridColumns.length - e.length) {
console.warn("AG Grid: tried to insert columns in invalid location, toIndex = " + r), console.warn("AG Grid: remember that you should not count the moving columns when calculating the new index");
return;
}
var s = this.getGridColumns(e), a = !this.doesMovePassRules(s, r);
a || (ln(this.gridColumns, s, r), this.updateDisplayedColumns(o), this.dispatchColumnMovedEvent({ movedColumns: s, source: o, toIndex: r, finished: i }), this.columnAnimationService.finish());
}, t.prototype.doesMovePassRules = function(e, r) {
var o = this.getProposedColumnOrder(e, r);
return this.doesOrderPassRules(o);
}, t.prototype.doesOrderPassRules = function(e) {
return !(!this.doesMovePassMarryChildren(e) || !this.doesMovePassLockedPositions(e));
}, t.prototype.getProposedColumnOrder = function(e, r) {
var o = this.gridColumns.slice();
return ln(o, e, r), o;
}, t.prototype.sortColumnsLikeGridColumns = function(e) {
var r = this;
if (!(!e || e.length <= 1)) {
var o = e.filter(function(i) {
return r.gridColumns.indexOf(i) < 0;
}).length > 0;
o || e.sort(function(i, s) {
var a = r.gridColumns.indexOf(i), l = r.gridColumns.indexOf(s);
return a - l;
});
}
}, t.prototype.doesMovePassLockedPositions = function(e) {
var r = 0, o = !0, i = function(s) {
return s ? s === !0 || s === "left" ? 0 : 2 : 1;
};
return e.forEach(function(s) {
var a = i(s.getColDef().lockPosition);
a < r && (o = !1), r = a;
}), o;
}, t.prototype.doesMovePassMarryChildren = function(e) {
var r = !0;
return this.columnUtils.depthFirstOriginalTreeSearch(null, this.gridBalancedTree, function(o) {
if (o instanceof re) {
var i = o, s = i.getColGroupDef(), a = s && s.marryChildren;
if (a) {
var l = [];
i.getLeafColumns().forEach(function(f) {
var g = e.indexOf(f);
l.push(g);
});
var u = Math.max.apply(Math, l), c = Math.min.apply(Math, l), p = u - c, d = i.getLeafColumns().length - 1;
p > d && (r = !1);
}
}
}), r;
}, t.prototype.moveColumn = function(e, r, o) {
o === void 0 && (o = "api"), this.moveColumns([e], r, o);
}, t.prototype.moveColumnByIndex = function(e, r, o) {
o === void 0 && (o = "api");
var i = this.gridColumns[e];
this.moveColumn(i, r, o);
}, t.prototype.getColumnDefs = function() {
var e = this;
if (this.primaryColumns) {
var r = this.primaryColumns.slice();
return this.gridColsArePrimary ? r.sort(function(o, i) {
return e.gridColumns.indexOf(o) - e.gridColumns.indexOf(i);
}) : this.lastPrimaryOrder && r.sort(function(o, i) {
return e.lastPrimaryOrder.indexOf(o) - e.lastPrimaryOrder.indexOf(i);
}), this.columnDefFactory.buildColumnDefs(r, this.rowGroupColumns, this.pivotColumns);
}
}, t.prototype.getBodyContainerWidth = function() {
return this.bodyWidth;
}, t.prototype.getContainerWidth = function(e) {
switch (e) {
case "left":
return this.leftWidth;
case "right":
return this.rightWidth;
default:
return this.bodyWidth;
}
}, t.prototype.updateBodyWidths = function() {
var e = this.getWidthOfColsInList(this.displayedColumnsCenter), r = this.getWidthOfColsInList(this.displayedColumnsLeft), o = this.getWidthOfColsInList(this.displayedColumnsRight);
this.bodyWidthDirty = this.bodyWidth !== e;
var i = this.bodyWidth !== e || this.leftWidth !== r || this.rightWidth !== o;
if (i) {
this.bodyWidth = e, this.leftWidth = r, this.rightWidth = o;
var s = {
type: v.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED
};
this.eventService.dispatchEvent(s);
}
}, t.prototype.getValueColumns = function() {
return this.valueColumns ? this.valueColumns : [];
}, t.prototype.getPivotColumns = function() {
return this.pivotColumns ? this.pivotColumns : [];
}, t.prototype.isPivotActive = function() {
return this.pivotColumns && this.pivotColumns.length > 0 && this.pivotMode;
}, t.prototype.getRowGroupColumns = function() {
return this.rowGroupColumns ? this.rowGroupColumns : [];
}, t.prototype.getDisplayedCenterColumns = function() {
return this.displayedColumnsCenter;
}, t.prototype.getDisplayedLeftColumns = function() {
return this.displayedColumnsLeft;
}, t.prototype.getDisplayedRightColumns = function() {
return this.displayedColumnsRight;
}, t.prototype.getDisplayedColumns = function(e) {
switch (e) {
case "left":
return this.getDisplayedLeftColumns();
case "right":
return this.getDisplayedRightColumns();
default:
return this.getDisplayedCenterColumns();
}
}, t.prototype.getAllPrimaryColumns = function() {
return this.primaryColumns ? this.primaryColumns.slice() : null;
}, t.prototype.getSecondaryColumns = function() {
return this.secondaryColumns ? this.secondaryColumns.slice() : null;
}, t.prototype.getAllColumnsForQuickFilter = function() {
return this.columnsForQuickFilter;
}, t.prototype.getAllGridColumns = function() {
return this.gridColumns;
}, t.prototype.isEmpty = function() {
return Pe(this.gridColumns);
}, t.prototype.isRowGroupEmpty = function() {
return Pe(this.rowGroupColumns);
}, t.prototype.setColumnVisible = function(e, r, o) {
o === void 0 && (o = "api"), this.setColumnsVisible([e], r, o);
}, t.prototype.setColumnsVisible = function(e, r, o) {
r === void 0 && (r = !1), o === void 0 && (o = "api"), this.applyColumnState({
state: e.map(function(i) {
return {
colId: typeof i == "string" ? i : i.getColId(),
hide: !r
};
})
}, o);
}, t.prototype.setColumnPinned = function(e, r, o) {
o === void 0 && (o = "api"), e && this.setColumnsPinned([e], r, o);
}, t.prototype.setColumnsPinned = function(e, r, o) {
if (o === void 0 && (o = "api"), this.gridOptionsService.isDomLayout("print")) {
console.warn("AG Grid: Changing the column pinning status is not allowed with domLayout='print'");
return;
}
this.columnAnimationService.start();
var i;
r === !0 || r === "left" ? i = "left" : r === "right" ? i = "right" : i = null, this.actionOnGridColumns(e, function(s) {
return s.getPinned() !== i ? (s.setPinned(i), !0) : !1;
}, o, function() {
var s = {
type: v.EVENT_COLUMN_PINNED,
pinned: i,
column: null,
columns: null,
source: o
};
return s;
}), this.columnAnimationService.finish();
}, t.prototype.actionOnGridColumns = function(e, r, o, i) {
var s = this;
if (!Pe(e)) {
var a = [];
if (e.forEach(function(u) {
var c = s.getGridColumn(u);
if (c) {
var p = r(c);
p !== !1 && a.push(c);
}
}), !!a.length && (this.updateDisplayedColumns(o), O(i) && i)) {
var l = i();
l.columns = a, l.column = a.length === 1 ? a[0] : null, this.eventService.dispatchEvent(l);
}
}
}, t.prototype.getDisplayedColBefore = function(e) {
var r = this.getAllDisplayedColumns(), o = r.indexOf(e);
return o > 0 ? r[o - 1] : null;
}, t.prototype.getDisplayedColAfter = function(e) {
var r = this.getAllDisplayedColumns(), o = r.indexOf(e);
return o < r.length - 1 ? r[o + 1] : null;
}, t.prototype.getDisplayedGroupAfter = function(e) {
return this.getDisplayedGroupAtDirection(e, "After");
}, t.prototype.getDisplayedGroupBefore = function(e) {
return this.getDisplayedGroupAtDirection(e, "Before");
}, t.prototype.getDisplayedGroupAtDirection = function(e, r) {
for (var o = e.getProvidedColumnGroup().getLevel() + e.getPaddingLevel(), i = e.getDisplayedLeafColumns(), s = r === "After" ? q(i) : i[0], a = "getDisplayedCol" + r; ; ) {
var l = this[a](s);
if (!l)
return null;
var u = this.getColumnGroupAtLevel(l, o);
if (u !== e)
return u;
}
}, t.prototype.getColumnGroupAtLevel = function(e, r) {
for (var o = e.getParent(), i, s; ; ) {
var a = o.getProvidedColumnGroup();
if (i = a.getLevel(), s = o.getPaddingLevel(), i + s <= r)
break;
o = o.getParent();
}
return o;
}, t.prototype.isPinningLeft = function() {
return this.displayedColumnsLeft.length > 0;
}, t.prototype.isPinningRight = function() {
return this.displayedColumnsRight.length > 0;
}, t.prototype.getPrimaryAndSecondaryAndAutoColumns = function() {
var e;
return (e = []).concat.apply(e, lr([
this.primaryColumns || [],
this.groupAutoColumns || [],
this.secondaryColumns || []
]));
}, t.prototype.createStateItemFromColumn = function(e) {
var r = e.isRowGroupActive() ? this.rowGroupColumns.indexOf(e) : null, o = e.isPivotActive() ? this.pivotColumns.indexOf(e) : null, i = e.isValueActive() ? e.getAggFunc() : null, s = e.getSort() != null ? e.getSort() : null, a = e.getSortIndex() != null ? e.getSortIndex() : null, l = e.getFlex() != null && e.getFlex() > 0 ? e.getFlex() : null, u = {
colId: e.getColId(),
width: e.getActualWidth(),
hide: !e.isVisible(),
pinned: e.getPinned(),
sort: s,
sortIndex: a,
aggFunc: i,
rowGroup: e.isRowGroupActive(),
rowGroupIndex: r,
pivot: e.isPivotActive(),
pivotIndex: o,
flex: l
};
return u;
}, t.prototype.getColumnState = function() {
if (x(this.primaryColumns) || !this.isAlive())
return [];
var e = this.getPrimaryAndSecondaryAndAutoColumns(), r = e.map(this.createStateItemFromColumn.bind(this));
return this.orderColumnStateList(r), r;
}, t.prototype.orderColumnStateList = function(e) {
var r = it(this.gridColumns.map(function(o, i) {
return [o.getColId(), i];
}));
e.sort(function(o, i) {
var s = r.has(o.colId) ? r.get(o.colId) : -1, a = r.has(i.colId) ? r.get(i.colId) : -1;
return s - a;
});
}, t.prototype.resetColumnState = function(e) {
e === void 0 && (e = "api");
var r = this.getColumnsFromTree(this.primaryColumnTree), o = [], i = 1e3, s = 1e3, a = [];
this.groupAutoColumns && (a = a.concat(this.groupAutoColumns)), r && (a = a.concat(r)), a.forEach(function(l) {
var u = function(I, L) {
return I ?? L ?? null;
}, c = l.getColDef(), p = u(c.sort, c.initialSort), d = u(c.sortIndex, c.initialSortIndex), f = u(c.hide, c.initialHide), g = u(c.pinned, c.initialPinned), y = u(c.width, c.initialWidth), C = u(c.flex, c.initialFlex), m = u(c.rowGroupIndex, c.initialRowGroupIndex), w = u(c.rowGroup, c.initialRowGroup);
m == null && (w == null || w == !1) && (m = null, w = null);
var E = u(c.pivotIndex, c.initialPivotIndex), R = u(c.pivot, c.initialPivot);
E == null && (R == null || R == !1) && (E = null, R = null);
var D = u(c.aggFunc, c.initialAggFunc), M = {
colId: l.getColId(),
sort: p,
sortIndex: d,
hide: f,
pinned: g,
width: y,
flex: C,
rowGroup: w,
rowGroupIndex: m,
pivot: R,
pivotIndex: E,
aggFunc: D
};
x(m) && w && (M.rowGroupIndex = i++), x(E) && R && (M.pivotIndex = s++), o.push(M);
}), this.applyColumnState({ state: o, applyOrder: !0 }, e);
}, t.prototype.applyColumnState = function(e, r) {
var o = this;
if (Pe(this.primaryColumns))
return !1;
if (e && e.state && !e.state.forEach)
return console.warn("AG Grid: applyColumnState() - the state attribute should be an array, however an array was not found. Please provide an array of items (one for each col you want to change) for state."), !1;
var i = function(u, c, p) {
var d = o.compareColumnStatesAndDispatchEvents(r);
o.autoGroupsNeedBuilding = !0;
var f = c.slice(), g = {}, y = {}, C = [], m = [], w = 0, E = o.rowGroupColumns.slice(), R = o.pivotColumns.slice();
u.forEach(function(L) {
var H = L.colId || "", B = H.startsWith(Mr);
if (B) {
C.push(L), m.push(L);
return;
}
var Q = p(H);
Q ? (o.syncColumnWithStateItem(Q, L, e.defaultState, g, y, !1, r), ge(f, Q)) : (m.push(L), w += 1);
});
var D = function(L) {
return o.syncColumnWithStateItem(L, null, e.defaultState, g, y, !1, r);
};
f.forEach(D);
var M = function(L, H, B, Q) {
var U = L[B.getId()], ue = L[Q.getId()], we = U != null, te = ue != null;
if (we && te)
return U - ue;
if (we)
return -1;
if (te)
return 1;
var X = H.indexOf(B), ye = H.indexOf(Q), ut = X >= 0, zr = ye >= 0;
return ut && zr ? X - ye : ut ? -1 : 1;
};
o.rowGroupColumns.sort(M.bind(o, g, E)), o.pivotColumns.sort(M.bind(o, y, R)), o.updateGridColumns();
var I = o.groupAutoColumns ? o.groupAutoColumns.slice() : [];
return C.forEach(function(L) {
var H = o.getAutoColumn(L.colId);
ge(I, H), o.syncColumnWithStateItem(H, L, e.defaultState, null, null, !0, r);
}), I.forEach(D), o.applyOrderAfterApplyState(e), o.updateDisplayedColumns(r), o.dispatchEverythingChanged(r), d(), { unmatchedAndAutoStates: m, unmatchedCount: w };
};
this.columnAnimationService.start();
var s = i(e.state || [], this.primaryColumns || [], function(u) {
return o.getPrimaryColumn(u);
}), a = s.unmatchedAndAutoStates, l = s.unmatchedCount;
return (a.length > 0 || O(e.defaultState)) && (l = i(a, this.secondaryColumns || [], function(u) {
return o.getSecondaryColumn(u);
}).unmatchedCount), this.columnAnimationService.finish(), l === 0;
}, t.prototype.applyOrderAfterApplyState = function(e) {
var r = this;
if (!(!e.applyOrder || !e.state)) {
var o = [], i = {};
e.state.forEach(function(a) {
if (!(!a.colId || i[a.colId])) {
var l = r.gridColumnsMap[a.colId];
l && (o.push(l), i[a.colId] = !0);
}
});
var s = 0;
if (this.gridColumns.forEach(function(a) {
var l = a.getColId(), u = i[l] != null;
if (!u) {
var c = l.startsWith(Mr);
c ? Lr(o, a, s++) : o.push(a);
}
}), o = this.placeLockedColumns(o), !this.doesMovePassMarryChildren(o)) {
console.warn("AG Grid: Applying column order broke a group where columns should be married together. Applying new order has been discarded.");
return;
}
this.gridColumns = o;
}
}, t.prototype.compareColumnStatesAndDispatchEvents = function(e) {
var r = this, o = {
rowGroupColumns: this.rowGroupColumns.slice(),
pivotColumns: this.pivotColumns.slice(),
valueColumns: this.valueColumns.slice()
}, i = this.getColumnState(), s = {};
return i.forEach(function(a) {
s[a.colId] = a;
}), function() {
var a = r.getPrimaryAndSecondaryAndAutoColumns(), l = function(m, w, E, R) {
var D = w.map(R), M = E.map(R), I = gt(D, M);
if (!I) {
var L = {
type: m,
columns: E,
column: E.length === 1 ? E[0] : null,
source: e
};
r.eventService.dispatchEvent(L);
}
}, u = function(m) {
var w = [];
return a.forEach(function(E) {
var R = s[E.getColId()];
R && m(R, E) && w.push(E);
}), w;
}, c = function(m) {
return m.getColId();
};
l(v.EVENT_COLUMN_ROW_GROUP_CHANGED, o.rowGroupColumns, r.rowGroupColumns, c), l(v.EVENT_COLUMN_PIVOT_CHANGED, o.pivotColumns, r.pivotColumns, c);
var p = function(m, w) {
var E = m.aggFunc != null, R = E != w.isValueActive(), D = E && m.aggFunc != w.getAggFunc();
return R || D;
}, d = u(p);
d.length > 0 && r.dispatchColumnChangedEvent(v.EVENT_COLUMN_VALUE_CHANGED, r.valueColumns, e);
var f = function(m, w) {
return m.width != w.getActualWidth();
};
r.dispatchColumnResizedEvent(u(f), !0, e);
var g = function(m, w) {
return m.pinned != w.getPinned();
};
r.dispatchColumnPinnedEvent(u(g), e);
var y = function(m, w) {
return m.hide == w.isVisible();
};
r.dispatchColumnVisibleEvent(u(y), e);
var C = function(m, w) {
return m.sort != w.getSort() || m.sortIndex != w.getSortIndex();
};
u(C).length > 0 && r.sortController.dispatchSortChangedEvents(e), r.normaliseColumnMovedEventForColumnState(i, e);
};
}, t.prototype.getCommonValue = function(e, r) {
if (!(!e || e.length == 0)) {
for (var o = r(e[0]), i = 1; i < e.length; i++)
if (o !== r(e[i]))
return;
return o;
}
}, t.prototype.normaliseColumnMovedEventForColumnState = function(e, r) {
var o = this, i = this.getColumnState(), s = {};
i.forEach(function(p) {
return s[p.colId] = p;
});
var a = {};
e.forEach(function(p) {
s[p.colId] && (a[p.colId] = !0);
});
var l = e.filter(function(p) {
return a[p.colId];
}), u = i.filter(function(p) {
return a[p.colId];
}), c = [];
u.forEach(function(p, d) {
var f = l && l[d];
if (f && f.colId !== p.colId) {
var g = o.getGridColumn(f.colId);
g && c.push(g);
}
}), c.length && this.dispatchColumnMovedEvent({ movedColumns: c, source: r, finished: !0 });
}, t.prototype.syncColumnWithStateItem = function(e, r, o, i, s, a, l) {
if (e) {
var u = function(H, B) {
var Q = { value1: void 0, value2: void 0 }, U = !1;
return r && (r[H] !== void 0 && (Q.value1 = r[H], U = !0), O(B) && r[B] !== void 0 && (Q.value2 = r[B], U = !0)), !U && o && (o[H] !== void 0 && (Q.value1 = o[H]), O(B) && o[B] !== void 0 && (Q.value2 = o[B])), Q;
}, c = u("hide").value1;
c !== void 0 && e.setVisible(!c, l);
var p = u("pinned").value1;
p !== void 0 && e.setPinned(p);
var d = this.columnUtils.calculateColMinWidth(e.getColDef()), f = u("flex").value1;
f !== void 0 && e.setFlex(f);
var g = e.getFlex() <= 0;
if (g) {
var y = u("width").value1;
y != null && d != null && y >= d && e.setActualWidth(y, l);
}
var C = u("sort").value1;
C !== void 0 && (C === "desc" || C === "asc" ? e.setSort(C, l) : e.setSort(void 0, l));
var m = u("sortIndex").value1;
if (m !== void 0 && e.setSortIndex(m), !(a || !e.isPrimary())) {
var w = u("aggFunc").value1;
w !== void 0 && (typeof w == "string" ? (e.setAggFunc(w), e.isValueActive() || (e.setValueActive(!0, l), this.valueColumns.push(e))) : (O(w) && console.warn("AG Grid: stateItem.aggFunc must be a string. if using your own aggregation functions, register the functions first before using them in get/set state. This is because it is intended for the column state to be stored and retrieved as simple JSON."), e.isValueActive() && (e.setValueActive(!1, l), ge(this.valueColumns, e))));
var E = u("rowGroup", "rowGroupIndex"), R = E.value1, D = E.value2;
(R !== void 0 || D !== void 0) && (typeof D == "number" || R ? (e.isRowGroupActive() || (e.setRowGroupActive(!0, l), this.rowGroupColumns.push(e)), i && typeof D == "number" && (i[e.getId()] = D)) : e.isRowGroupActive() && (e.setRowGroupActive(!1, l), ge(this.rowGroupColumns, e)));
var M = u("pivot", "pivotIndex"), I = M.value1, L = M.value2;
(I !== void 0 || L !== void 0) && (typeof L == "number" || I ? (e.isPivotActive() || (e.setPivotActive(!0, l), this.pivotColumns.push(e)), s && typeof L == "number" && (s[e.getId()] = L)) : e.isPivotActive() && (e.setPivotActive(!1, l), ge(this.pivotColumns, e)));
}
}
}, t.prototype.getGridColumns = function(e) {
return this.getColumns(e, this.getGridColumn.bind(this));
}, t.prototype.getColumns = function(e, r) {
var o = [];
return e && e.forEach(function(i) {
var s = r(i);
s && o.push(s);
}), o;
}, t.prototype.getColumnWithValidation = function(e) {
if (e == null)
return null;
var r = this.getGridColumn(e);
return r || console.warn("AG Grid: could not find column " + e), r;
}, t.prototype.getPrimaryColumn = function(e) {
return this.primaryColumns ? this.getColumn(e, this.primaryColumns, this.primaryColumnsMap) : null;
}, t.prototype.getGridColumn = function(e) {
return this.getColumn(e, this.gridColumns, this.gridColumnsMap);
}, t.prototype.getSecondaryColumn = function(e) {
return this.secondaryColumns ? this.getColumn(e, this.secondaryColumns, this.secondaryColumnsMap) : null;
}, t.prototype.getColumn = function(e, r, o) {
if (!e)
return null;
if (typeof e == "string" && o[e])
return o[e];
for (var i = 0; i < r.length; i++)
if (this.columnsMatch(r[i], e))
return r[i];
return this.getAutoColumn(e);
}, t.prototype.getSourceColumnsForGroupColumn = function(e) {
var r = e.getColDef().showRowGroup;
if (!r)
return null;
if (r === !0)
return this.rowGroupColumns.slice(0);
var o = this.getPrimaryColumn(r);
return o ? [o] : null;
}, t.prototype.getAutoColumn = function(e) {
var r = this;
return !this.groupAutoColumns || !O(this.groupAutoColumns) || x(this.groupAutoColumns) ? null : this.groupAutoColumns.find(function(o) {
return r.columnsMatch(o, e);
}) || null;
}, t.prototype.columnsMatch = function(e, r) {
var o = e === r, i = e.getColDef() === r, s = e.getColId() == r;
return o || i || s;
}, t.prototype.getDisplayNameForColumn = function(e, r, o) {
if (o === void 0 && (o = !1), !e)
return null;
var i = this.getHeaderName(e.getColDef(), e, null, null, r);
return o ? this.wrapHeaderNameWithAggFunc(e, i) : i;
}, t.prototype.getDisplayNameForProvidedColumnGroup = function(e, r, o) {
var i = r ? r.getColGroupDef() : null;
return i ? this.getHeaderName(i, null, e, r, o) : null;
}, t.prototype.getDisplayNameForColumnGroup = function(e, r) {
return this.getDisplayNameForProvidedColumnGroup(e, e.getProvidedColumnGroup(), r);
}, t.prototype.getHeaderName = function(e, r, o, i, s) {
var a = e.headerValueGetter;
if (a) {
var l = {
colDef: e,
column: r,
columnGroup: o,
providedColumnGroup: i,
location: s,
api: this.gridOptionsService.api,
columnApi: this.gridOptionsService.columnApi,
context: this.gridOptionsService.context
};
return typeof a == "function" ? a(l) : typeof a == "string" ? this.expressionService.evaluate(a, l) : (console.warn("AG Grid: headerValueGetter must be a function or a string"), "");
} else {
if (e.headerName != null)
return e.headerName;
if (e.field)
return Ia(e.field);
}
return "";
}, t.prototype.wrapHeaderNameWithAggFunc = function(e, r) {
if (this.gridOptionsService.is("suppressAggFuncInHeader"))
return r;
var o = e.getColDef().pivotValueColumn, i = O(o), s = null, a;
if (i) {
var l = this.gridOptionsService.is("removePivotHeaderRowWhenSingleValueColumn") && this.valueColumns.length === 1, u = e.getColDef().pivotTotalColumnIds !== void 0;
if (l && !u)
return r;
s = o ? o.getAggFunc() : null, a = !0;
} else {
var c = e.isValueActive(), p = this.pivotMode || !this.isRowGroupEmpty();
c && p ? (s = e.getAggFunc(), a = !0) : a = !1;
}
if (a) {
var d = typeof s == "string" ? s : "func", f = this.localeService.getLocaleTextFunc(), g = f(d, d);
return g + "(" + r + ")";
}
return r;
}, t.prototype.getColumnGroup = function(e, r) {
if (!e)
return null;
if (e instanceof Oe)
return e;
var o = this.getAllDisplayedTrees(), i = typeof r == "number", s = null;
return this.columnUtils.depthFirstAllColumnTreeSearch(o, function(a) {
if (a instanceof Oe) {
var l = a, u = void 0;
i ? u = e === l.getGroupId() && r === l.getPartId() : u = e === l.getGroupId(), u && (s = l);
}
}), s;
}, t.prototype.isReady = function() {
return this.ready;
}, t.prototype.extractValueColumns = function(e, r) {
this.valueColumns = this.extractColumns(
r,
this.valueColumns,
function(o, i) {
return o.setValueActive(i, e);
},
// aggFunc doesn't have index variant, cos order of value cols doesn't matter, so always return null
function() {
},
function() {
},
// aggFunc is a string, so return it's existence
function(o) {
var i = o.aggFunc;
if (i === null || i === "")
return null;
if (i !== void 0)
return !!i;
},
function(o) {
return o.initialAggFunc != null && o.initialAggFunc != "";
}
), this.valueColumns.forEach(function(o) {
var i = o.getColDef();
i.aggFunc != null && i.aggFunc != "" ? o.setAggFunc(i.aggFunc) : o.getAggFunc() || o.setAggFunc(i.initialAggFunc);
});
}, t.prototype.extractRowGroupColumns = function(e, r) {
this.rowGroupColumns = this.extractColumns(r, this.rowGroupColumns, function(o, i) {
return o.setRowGroupActive(i, e);
}, function(o) {
return o.rowGroupIndex;
}, function(o) {
return o.initialRowGroupIndex;
}, function(o) {
return o.rowGroup;
}, function(o) {
return o.initialRowGroup;
});
}, t.prototype.extractColumns = function(e, r, o, i, s, a, l) {
e === void 0 && (e = []), r === void 0 && (r = []);
var u = [], c = [];
(this.primaryColumns || []).forEach(function(f) {
var g = e.indexOf(f) < 0, y = f.getColDef(), C = qe(a(y)), m = qe(l(y)), w = Ge(i(y)), E = Ge(s(y)), R, D = C !== void 0, M = w !== void 0, I = m !== void 0, L = E !== void 0;
if (D ? R = C : M ? w === null ? R = !1 : R = w >= 0 : g ? I ? R = m : L ? R = E != null && E >= 0 : R = !1 : R = r.indexOf(f) >= 0, R) {
var H = g ? w != null || E != null : w != null;
H ? u.push(f) : c.push(f);
}
});
var p = function(f) {
var g = i(f.getColDef()), y = s(f.getColDef());
return g ?? y;
};
u.sort(function(f, g) {
var y = p(f), C = p(g);
return y === C ? 0 : y < C ? -1 : 1;
});
var d = [].concat(u);
return r.forEach(function(f) {
c.indexOf(f) >= 0 && d.push(f);
}), c.forEach(function(f) {
d.indexOf(f) < 0 && d.push(f);
}), r.forEach(function(f) {
d.indexOf(f) < 0 && o(f, !1);
}), d.forEach(function(f) {
r.indexOf(f) < 0 && o(f, !0);
}), d;
}, t.prototype.extractPivotColumns = function(e, r) {
this.pivotColumns = this.extractColumns(r, this.pivotColumns, function(o, i) {
return o.setPivotActive(i, e);
}, function(o) {
return o.pivotIndex;
}, function(o) {
return o.initialPivotIndex;
}, function(o) {
return o.pivot;
}, function(o) {
return o.initialPivot;
});
}, t.prototype.resetColumnGroupState = function(e) {
e === void 0 && (e = "api");
var r = [];
this.columnUtils.depthFirstOriginalTreeSearch(null, this.primaryColumnTree, function(o) {
if (o instanceof re) {
var i = o.getColGroupDef(), s = {
groupId: o.getGroupId(),
open: i ? i.openByDefault : void 0
};
r.push(s);
}
}), this.setColumnGroupState(r, e);
}, t.prototype.getColumnGroupState = function() {
var e = [];
return this.columnUtils.depthFirstOriginalTreeSearch(null, this.gridBalancedTree, function(r) {
r instanceof re && e.push({
groupId: r.getGroupId(),
open: r.isExpanded()
});
}), e;
}, t.prototype.setColumnGroupState = function(e, r) {
var o = this;
r === void 0 && (r = "api"), this.columnAnimationService.start();
var i = [];
e.forEach(function(s) {
var a = s.groupId, l = s.open, u = o.getProvidedColumnGroup(a);
u && u.isExpanded() !== l && (o.logger.log("columnGroupOpened(" + u.getGroupId() + "," + l + ")"), u.setExpanded(l), i.push(u));
}), this.updateGroupsAndDisplayedColumns(r), this.setFirstRightAndLastLeftPinned(r), i.forEach(function(s) {
var a = {
type: v.EVENT_COLUMN_GROUP_OPENED,
columnGroup: s
};
o.eventService.dispatchEvent(a);
}), this.columnAnimationService.finish();
}, t.prototype.setColumnGroupOpened = function(e, r, o) {
o === void 0 && (o = "api");
var i;
e instanceof re ? i = e.getId() : i = e || "", this.setColumnGroupState([{ groupId: i, open: r }], o);
}, t.prototype.getProvidedColumnGroup = function(e) {
typeof e != "string" && console.error("AG Grid: group key must be a string");
var r = null;
return this.columnUtils.depthFirstOriginalTreeSearch(null, this.gridBalancedTree, function(o) {
o instanceof re && o.getId() === e && (r = o);
}), r;
}, t.prototype.calculateColumnsForDisplay = function() {
var e = this, r;
return this.pivotMode && x(this.secondaryColumns) ? r = this.gridColumns.filter(function(o) {
var i = e.groupAutoColumns && He(e.groupAutoColumns, o), s = e.valueColumns && He(e.valueColumns, o);
return i || s;
}) : r = this.gridColumns.filter(function(o) {
var i = e.groupAutoColumns && He(e.groupAutoColumns, o);
return i || o.isVisible();
}), r;
}, t.prototype.checkColSpanActiveInCols = function(e) {
var r = !1;
return e.forEach(function(o) {
O(o.getColDef().colSpan) && (r = !0);
}), r;
}, t.prototype.calculateColumnsForGroupDisplay = function() {
var e = this;
this.groupDisplayColumns = [], this.groupDisplayColumnsMap = {};
var r = function(o) {
var i = o.getColDef(), s = i.showRowGroup;
i && O(s) && (e.groupDisplayColumns.push(o), typeof s == "string" ? e.groupDisplayColumnsMap[s] = o : s === !0 && e.getRowGroupColumns().forEach(function(a) {
e.groupDisplayColumnsMap[a.getId()] = o;
}));
};
this.gridColumns.forEach(r), this.groupAutoColumns && this.groupAutoColumns.forEach(r);
}, t.prototype.getGroupDisplayColumns = function() {
return this.groupDisplayColumns;
}, t.prototype.getGroupDisplayColumnForGroup = function(e) {
return this.groupDisplayColumnsMap[e];
}, t.prototype.updateDisplayedColumns = function(e) {
var r = this.calculateColumnsForDisplay();
this.buildDisplayedTrees(r), this.calculateColumnsForGroupDisplay(), this.updateGroupsAndDisplayedColumns(e), this.setFirstRightAndLastLeftPinned(e);
}, t.prototype.isSecondaryColumnsPresent = function() {
return O(this.secondaryColumns);
}, t.prototype.setSecondaryColumns = function(e, r) {
var o = this;
r === void 0 && (r = "api");
var i = e && e.length > 0;
if (!(!i && x(this.secondaryColumns))) {
if (i) {
this.processSecondaryColumnDefinitions(e);
var s = this.columnFactory.createColumnTree(e, !1, this.secondaryBalancedTree || this.previousSecondaryColumns || void 0);
this.destroyOldColumns(this.secondaryBalancedTree, s.columnTree), this.secondaryBalancedTree = s.columnTree, this.secondaryHeaderRowCount = s.treeDept + 1, this.secondaryColumns = this.getColumnsFromTree(this.secondaryBalancedTree), this.secondaryColumnsMap = {}, this.secondaryColumns.forEach(function(a) {
return o.secondaryColumnsMap[a.getId()] = a;
}), this.previousSecondaryColumns = null;
} else
this.previousSecondaryColumns = this.secondaryBalancedTree, this.secondaryBalancedTree = null, this.secondaryHeaderRowCount = -1, this.secondaryColumns = null, this.secondaryColumnsMap = {};
this.updateGridColumns(), this.updateDisplayedColumns(r);
}
}, t.prototype.processSecondaryColumnDefinitions = function(e) {
var r = this.gridOptionsService.get("processPivotResultColDef") || this.gridOptionsService.get("processSecondaryColDef"), o = this.gridOptionsService.get("processPivotResultColGroupDef") || this.gridOptionsService.get("processSecondaryColGroupDef");
if (!(!r && !o)) {
var i = function(s) {
s.forEach(function(a) {
var l = O(a.children);
if (l) {
var u = a;
o && o(u), i(u.children);
} else {
var c = a;
r && r(c);
}
});
};
e && i(e);
}
}, t.prototype.updateGridColumns = function() {
var e = this, r = this.gridBalancedTree;
this.gridColsArePrimary ? this.lastPrimaryOrder = this.gridColumns : this.lastSecondaryOrder = this.gridColumns;
var o;
if (this.secondaryColumns && this.secondaryBalancedTree) {
var i = this.secondaryColumns.every(function(u) {
return e.gridColumnsMap[u.getColId()] !== void 0;
});
this.gridBalancedTree = this.secondaryBalancedTree.slice(), this.gridHeaderRowCount = this.secondaryHeaderRowCount, this.gridColumns = this.secondaryColumns.slice(), this.gridColsArePrimary = !1, i && (o = this.lastSecondaryOrder);
} else
this.primaryColumns && (this.gridBalancedTree = this.primaryColumnTree.slice(), this.gridHeaderRowCount = this.primaryHeaderRowCount, this.gridColumns = this.primaryColumns.slice(), this.gridColsArePrimary = !0, o = this.lastPrimaryOrder);
var s = this.createGroupAutoColumnsIfNeeded();
if (s && o) {
var a = it(this.groupAutoColumns.map(function(u) {
return [u, !0];
}));
o = o.filter(function(u) {
return !a.has(u);
}), o = lr(this.groupAutoColumns, o);
}
if (this.addAutoGroupToGridColumns(), this.orderGridColsLike(o), this.gridColumns = this.placeLockedColumns(this.gridColumns), this.refreshQuickFilterColumns(), this.clearDisplayedAndViewportColumns(), this.colSpanActive = this.checkColSpanActiveInCols(this.gridColumns), this.gridColumnsMap = {}, this.gridColumns.forEach(function(u) {
return e.gridColumnsMap[u.getId()] = u;
}), this.setAutoHeightActive(), !gt(r, this.gridBalancedTree)) {
var l = {
type: v.EVENT_GRID_COLUMNS_CHANGED
};
this.eventService.dispatchEvent(l);
}
}, t.prototype.setAutoHeightActive = function() {
if (this.autoHeightActive = this.gridColumns.filter(function(o) {
return o.isAutoHeight();
}).length > 0, this.autoHeightActive) {
this.autoHeightActiveAtLeastOnce = !0;
var e = this.gridOptionsService.isRowModelType("clientSide") || this.gridOptionsService.isRowModelType("serverSide");
if (!e) {
var r = "AG Grid - autoHeight columns only work with Client Side Row Model and Server Side Row Model.";
K(function() {
return console.warn(r);
}, "autoHeightActive.wrongRowModel");
}
}
}, t.prototype.orderGridColsLike = function(e) {
if (!x(e)) {
var r = it(e.map(function(c, p) {
return [c, p];
})), o = !0;
if (this.gridColumns.forEach(function(c) {
r.has(c) && (o = !1);
}), !o) {
var i = it(this.gridColumns.map(function(c) {
return [c, !0];
})), s = e.filter(function(c) {
return i.has(c);
}), a = it(s.map(function(c) {
return [c, !0];
})), l = this.gridColumns.filter(function(c) {
return !a.has(c);
}), u = s.slice();
l.forEach(function(c) {
var p = c.getOriginalParent();
if (!p) {
u.push(c);
return;
}
for (var d = []; !d.length && p; ) {
var f = p.getLeafColumns();
f.forEach(function(C) {
var m = u.indexOf(C) >= 0, w = d.indexOf(C) < 0;
m && w && d.push(C);
}), p = p.getOriginalParent();
}
if (!d.length) {
u.push(c);
return;
}
var g = d.map(function(C) {
return u.indexOf(C);
}), y = Math.max.apply(Math, lr(g));
Lr(u, c, y + 1);
}), this.gridColumns = u;
}
}
}, t.prototype.isPrimaryColumnGroupsPresent = function() {
return this.primaryHeaderRowCount > 1;
}, t.prototype.refreshQuickFilterColumns = function() {
var e, r;
this.groupAutoColumns ? r = ((e = this.primaryColumns) !== null && e !== void 0 ? e : []).concat(this.groupAutoColumns) : this.primaryColumns && (r = this.primaryColumns), r = r ?? [], this.columnsForQuickFilter = this.gridOptionsService.is("excludeHiddenColumnsFromQuickFilter") ? r.filter(function(o) {
return o.isVisible() || o.isRowGroupActive();
}) : r;
}, t.prototype.placeLockedColumns = function(e) {
var r = [], o = [], i = [];
return e.forEach(function(s) {
var a = s.getColDef().lockPosition;
a === "right" ? i.push(s) : a === "left" || a === !0 ? r.push(s) : o.push(s);
}), lr(r, o, i);
}, t.prototype.addAutoGroupToGridColumns = function() {
if (x(this.groupAutoColumns)) {
this.destroyOldColumns(this.groupAutoColsBalancedTree), this.groupAutoColsBalancedTree = null;
return;
}
this.gridColumns = this.groupAutoColumns ? this.groupAutoColumns.concat(this.gridColumns) : this.gridColumns;
var e = this.columnFactory.createForAutoGroups(this.groupAutoColumns, this.gridBalancedTree);
this.destroyOldColumns(this.groupAutoColsBalancedTree, e), this.groupAutoColsBalancedTree = e, this.gridBalancedTree = e.concat(this.gridBalancedTree);
}, t.prototype.clearDisplayedAndViewportColumns = function() {
this.viewportRowLeft = {}, this.viewportRowRight = {}, this.viewportRowCenter = {}, this.displayedColumnsLeft = [], this.displayedColumnsRight = [], this.displayedColumnsCenter = [], this.displayedColumns = [], this.viewportColumns = [], this.headerViewportColumns = [], this.viewportColumnsHash = "";
}, t.prototype.updateGroupsAndDisplayedColumns = function(e) {
this.updateOpenClosedVisibilityInColumnGroups(), this.deriveDisplayedColumns(e), this.refreshFlexedColumns(), this.extractViewport(), this.updateBodyWidths();
var r = {
type: v.EVENT_DISPLAYED_COLUMNS_CHANGED
};
this.eventService.dispatchEvent(r);
}, t.prototype.deriveDisplayedColumns = function(e) {
this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeLeft, this.displayedColumnsLeft), this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeCentre, this.displayedColumnsCenter), this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeRight, this.displayedColumnsRight), this.joinDisplayedColumns(), this.setLeftValues(e), this.displayedAutoHeightCols = this.displayedColumns.filter(function(r) {
return r.isAutoHeight();
});
}, t.prototype.isAutoRowHeightActive = function() {
return this.autoHeightActive;
}, t.prototype.wasAutoRowHeightEverActive = function() {
return this.autoHeightActiveAtLeastOnce;
}, t.prototype.joinDisplayedColumns = function() {
this.gridOptionsService.is("enableRtl") ? this.displayedColumns = this.displayedColumnsRight.concat(this.displayedColumnsCenter).concat(this.displayedColumnsLeft) : this.displayedColumns = this.displayedColumnsLeft.concat(this.displayedColumnsCenter).concat(this.displayedColumnsRight);
}, t.prototype.setLeftValues = function(e) {
this.setLeftValuesOfColumns(e), this.setLeftValuesOfGroups();
}, t.prototype.setLeftValuesOfColumns = function(e) {
var r = this;
if (this.primaryColumns) {
var o = this.primaryColumns.slice(0), i = this.gridOptionsService.is("enableRtl");
[
this.displayedColumnsLeft,
this.displayedColumnsRight,
this.displayedColumnsCenter
].forEach(function(s) {
if (i) {
var a = r.getWidthOfColsInList(s);
s.forEach(function(u) {
a -= u.getActualWidth(), u.setLeft(a, e);
});
} else {
var l = 0;
s.forEach(function(u) {
u.setLeft(l, e), l += u.getActualWidth();
});
}
Pn(o, s);
}), o.forEach(function(s) {
s.setLeft(null, e);
});
}
}, t.prototype.setLeftValuesOfGroups = function() {
[
this.displayedTreeLeft,
this.displayedTreeRight,
this.displayedTreeCentre
].forEach(function(e) {
e.forEach(function(r) {
if (r instanceof Oe) {
var o = r;
o.checkLeft();
}
});
});
}, t.prototype.derivedDisplayedColumnsFromDisplayedTree = function(e, r) {
r.length = 0, this.columnUtils.depthFirstDisplayedColumnTreeSearch(e, function(o) {
o instanceof Z && r.push(o);
});
}, t.prototype.extractViewportColumns = function() {
this.suppressColumnVirtualisation ? (this.viewportColumnsCenter = this.displayedColumnsCenter, this.headerViewportColumnsCenter = this.displayedColumnsCenter) : (this.viewportColumnsCenter = this.displayedColumnsCenter.filter(this.isColumnInRowViewport.bind(this)), this.headerViewportColumnsCenter = this.displayedColumnsCenter.filter(this.isColumnInHeaderViewport.bind(this))), this.viewportColumns = this.viewportColumnsCenter.concat(this.displayedColumnsLeft).concat(this.displayedColumnsRight), this.headerViewportColumns = this.headerViewportColumnsCenter.concat(this.displayedColumnsLeft).concat(this.displayedColumnsRight);
}, t.prototype.getVirtualHeaderGroupRow = function(e, r) {
var o;
switch (e) {
case "left":
o = this.viewportRowLeft[r];
break;
case "right":
o = this.viewportRowRight[r];
break;
default:
o = this.viewportRowCenter[r];
break;
}
return x(o) && (o = []), o;
}, t.prototype.calculateHeaderRows = function() {
this.viewportRowLeft = {}, this.viewportRowRight = {}, this.viewportRowCenter = {};
var e = {};
this.headerViewportColumns.forEach(function(o) {
return e[o.getId()] = !0;
});
var r = function(o, i, s) {
for (var a = !1, l = 0; l < o.length; l++) {
var u = o[l], c = !1;
if (u instanceof Z)
c = e[u.getId()] === !0;
else {
var p = u, d = p.getDisplayedChildren();
d && (c = r(d, i, s + 1));
}
c && (a = !0, i[s] || (i[s] = []), i[s].push(u));
}
return a;
};
r(this.displayedTreeLeft, this.viewportRowLeft, 0), r(this.displayedTreeRight, this.viewportRowRight, 0), r(this.displayedTreeCentre, this.viewportRowCenter, 0);
}, t.prototype.extractViewport = function() {
var e = function(i) {
return i.getId() + "-" + (i.getPinned() || "normal");
};
this.extractViewportColumns();
var r = this.viewportColumns.map(e).join("#"), o = this.viewportColumnsHash !== r;
return o && (this.viewportColumnsHash = r, this.calculateHeaderRows()), o;
}, t.prototype.refreshFlexedColumns = function(e) {
var r = this;
e === void 0 && (e = {});
var o = e.source ? e.source : "flex";
if (e.viewportWidth != null && (this.flexViewportWidth = e.viewportWidth), !this.flexViewportWidth)
return [];
var i = -1;
e.resizingCols && e.resizingCols.forEach(function(R) {
var D = r.displayedColumnsCenter.indexOf(R);
i < D && (i = D);
});
var s = function(R) {
var D = r.displayedColumnsCenter.indexOf(R) > i;
return R.getFlex() && D;
}, a = this.displayedColumnsCenter.filter(function(R) {
return !s(R);
}), l = this.displayedColumnsCenter.filter(function(R) {
return s(R);
}), u = [];
if (!l.length)
return [];
var c = [], p;
e:
for (; ; ) {
var d = l.reduce(function(R, D) {
return R + D.getFlex();
}, 0);
p = this.flexViewportWidth - this.getWidthOfColsInList(a);
for (var f = 0; f < l.length; f++) {
var g = l[f], y = p * g.getFlex() / d, C = 0, m = g.getMinWidth(), w = g.getMaxWidth();
if (O(m) && y < m ? C = m : O(w) && y > w && (C = w), C) {
g.setActualWidth(C, o), ge(l, g), u.push(g), a.push(g);
continue e;
}
c[f] = Math.round(y);
}
break;
}
var E = p;
return l.forEach(function(R, D) {
R.setActualWidth(Math.min(c[D], E), o), u.push(R), E -= c[D];
}), e.skipSetLeft || this.setLeftValues(o), e.updateBodyWidths && this.updateBodyWidths(), e.fireResizedEvent && this.dispatchColumnResizedEvent(u, !0, o, l), l;
}, t.prototype.sizeColumnsToFit = function(e, r, o, i) {
var s, a, l, u, c;
r === void 0 && (r = "sizeColumnsToFit");
var p = {};
i && ((s = i == null ? void 0 : i.columnLimits) === null || s === void 0 || s.forEach(function(X) {
var ye = X.key, ut = Qu(X, ["key"]);
p[typeof ye == "string" ? ye : ye.getColId()] = ut;
}));
var d = this.getAllDisplayedColumns(), f = e === this.getWidthOfColsInList(d);
if (!(e <= 0 || !d.length || f)) {
var g = [], y = [];
d.forEach(function(X) {
X.getColDef().suppressSizeToFit === !0 ? y.push(X) : g.push(X);
});
var C = g.slice(0), m = !1, w = function(X) {
ge(g, X), y.push(X);
};
for (g.forEach(function(X) {
return X.resetActualWidth(r);
}); !m; ) {
m = !0;
var E = e - this.getWidthOfColsInList(y);
if (E <= 0)
g.forEach(function(X) {
var ye, ut, zr = (ut = (ye = p == null ? void 0 : p[X.getId()]) === null || ye === void 0 ? void 0 : ye.minWidth) !== null && ut !== void 0 ? ut : i == null ? void 0 : i.defaultMinWidth;
if (typeof zr == "number") {
X.setActualWidth(zr);
return;
}
X.setMinimum(r);
});
else
for (var R = E / this.getWidthOfColsInList(g), D = E, M = g.length - 1; M >= 0; M--) {
var I = g[M], L = p == null ? void 0 : p[I.getId()], H = (a = L == null ? void 0 : L.minWidth) !== null && a !== void 0 ? a : i == null ? void 0 : i.defaultMinWidth, B = (l = L == null ? void 0 : L.maxWidth) !== null && l !== void 0 ? l : i == null ? void 0 : i.defaultMaxWidth, Q = (u = I.getMinWidth()) !== null && u !== void 0 ? u : 0, U = (c = I.getMaxWidth()) !== null && c !== void 0 ? c : Number.MAX_VALUE, ue = typeof H == "number" && H > Q ? H : I.getMinWidth(), we = typeof B == "number" && B < U ? B : I.getMaxWidth(), te = Math.round(I.getActualWidth() * R);
O(ue) && te < ue ? (te = ue, w(I), m = !1) : O(we) && te > we ? (te = we, w(I), m = !1) : M === 0 && (te = D), I.setActualWidth(te, r, !0), D -= te;
}
}
C.forEach(function(X) {
X.fireColumnWidthChangedEvent(r);
}), this.setLeftValues(r), this.updateBodyWidths(), !o && this.dispatchColumnResizedEvent(C, !0, r);
}
}, t.prototype.buildDisplayedTrees = function(e) {
var r = [], o = [], i = [];
e.forEach(function(a) {
switch (a.getPinned()) {
case "left":
r.push(a);
break;
case "right":
o.push(a);
break;
default:
i.push(a);
break;
}
});
var s = new La();
this.displayedTreeLeft = this.displayedGroupCreator.createDisplayedGroups(r, this.gridBalancedTree, s, "left", this.displayedTreeLeft), this.displayedTreeRight = this.displayedGroupCreator.createDisplayedGroups(o, this.gridBalancedTree, s, "right", this.displayedTreeRight), this.displayedTreeCentre = this.displayedGroupCreator.createDisplayedGroups(i, this.gridBalancedTree, s, null, this.displayedTreeCentre), this.updateDisplayedMap();
}, t.prototype.updateDisplayedMap = function() {
var e = this;
this.displayedColumnsAndGroupsMap = {};
var r = function(o) {
e.displayedColumnsAndGroupsMap[o.getUniqueId()] = o;
};
this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeCentre, r), this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeLeft, r), this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeRight, r);
}, t.prototype.isDisplayed = function(e) {
var r = this.displayedColumnsAndGroupsMap[e.getUniqueId()];
return r === e;
}, t.prototype.updateOpenClosedVisibilityInColumnGroups = function() {
var e = this.getAllDisplayedTrees();
this.columnUtils.depthFirstAllColumnTreeSearch(e, function(r) {
if (r instanceof Oe) {
var o = r;
o.calculateDisplayedColumns();
}
});
}, t.prototype.getGroupAutoColumns = function() {
return this.groupAutoColumns;
}, t.prototype.createGroupAutoColumnsIfNeeded = function() {
if (!this.autoGroupsNeedBuilding)
return !1;
this.autoGroupsNeedBuilding = !1;
var e = this.gridOptionsService.isGroupUseEntireRow(this.pivotMode), r = this.pivotMode ? this.gridOptionsService.is("pivotSuppressAutoColumn") : this.isGroupSuppressAutoColumn(), o = this.rowGroupColumns.length > 0 || this.usingTreeData, i = o && !r && !e;
if (i) {
var s = this.groupAutoColumns || [], a = this.autoGroupColService.createAutoGroupColumns(s, this.rowGroupColumns), l = !this.autoColsEqual(a, this.groupAutoColumns);
if (l || this.forceRecreateAutoGroups)
return this.groupAutoColumns = a, !0;
} else
this.groupAutoColumns = null;
return !1;
}, t.prototype.isGroupSuppressAutoColumn = function() {
var e = this.gridOptionsService.get("groupDisplayType"), r = e ? pn("custom", e) : !1;
if (r)
return !0;
var o = this.gridOptionsService.get("treeDataDisplayType");
return o ? Gu("custom", o) : !1;
}, t.prototype.autoColsEqual = function(e, r) {
return gt(e, r, function(o, i) {
return o.getColId() === i.getColId();
});
}, t.prototype.getWidthOfColsInList = function(e) {
return e.reduce(function(r, o) {
return r + o.getActualWidth();
}, 0);
}, t.prototype.getGridBalancedTree = function() {
return this.gridBalancedTree;
}, t.prototype.hasFloatingFilters = function() {
if (!this.gridColumns)
return !1;
var e = this.gridColumns.some(function(r) {
return r.getColDef().floatingFilter;
});
return e;
}, t.prototype.getFirstDisplayedColumn = function() {
var e = this.gridOptionsService.is("enableRtl"), r = [
"getDisplayedLeftColumns",
"getDisplayedCenterColumns",
"getDisplayedRightColumns"
];
e && r.reverse();
for (var o = 0; o < r.length; o++) {
var i = this[r[o]]();
if (i.length)
return e ? q(i) : i[0];
}
return null;
}, t.prototype.setColumnHeaderHeight = function(e, r) {
var o = e.setAutoHeaderHeight(r);
if (o) {
var i = {
type: v.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,
column: e,
columns: [e],
source: "autosizeColumnHeaderHeight"
};
this.eventService.dispatchEvent(i);
}
}, t.prototype.getColumnGroupHeaderRowHeight = function() {
return this.isPivotMode() ? this.getPivotGroupHeaderHeight() : this.getGroupHeaderHeight();
}, t.prototype.getColumnHeaderRowHeight = function() {
var e = this.isPivotMode() ? this.getPivotHeaderHeight() : this.getHeaderHeight(), r = this.getAllDisplayedColumns().filter(function(o) {
return o.isAutoHeaderHeight();
}).map(function(o) {
return o.getAutoHeaderHeight() || 0;
});
return Math.max.apply(Math, lr([e], r));
}, t.prototype.getHeaderHeight = function() {
var e;
return (e = this.gridOptionsService.getNum("headerHeight")) !== null && e !== void 0 ? e : this.environment.getFromTheme(25, "headerHeight");
}, t.prototype.getFloatingFiltersHeight = function() {
var e;
return (e = this.gridOptionsService.getNum("floatingFiltersHeight")) !== null && e !== void 0 ? e : this.getHeaderHeight();
}, t.prototype.getGroupHeaderHeight = function() {
var e;
return (e = this.gridOptionsService.getNum("groupHeaderHeight")) !== null && e !== void 0 ? e : this.getHeaderHeight();
}, t.prototype.getPivotHeaderHeight = function() {
var e;
return (e = this.gridOptionsService.getNum("pivotHeaderHeight")) !== null && e !== void 0 ? e : this.getHeaderHeight();
}, t.prototype.getPivotGroupHeaderHeight = function() {
var e;
return (e = this.gridOptionsService.getNum("pivotGroupHeaderHeight")) !== null && e !== void 0 ? e : this.getGroupHeaderHeight();
}, ce([
h("expressionService")
], t.prototype, "expressionService", void 0), ce([
h("columnFactory")
], t.prototype, "columnFactory", void 0), ce([
h("displayedGroupCreator")
], t.prototype, "displayedGroupCreator", void 0), ce([
h("ctrlsService")
], t.prototype, "ctrlsService", void 0), ce([
h("autoWidthCalculator")
], t.prototype, "autoWidthCalculator", void 0), ce([
h("columnUtils")
], t.prototype, "columnUtils", void 0), ce([
h("columnAnimationService")
], t.prototype, "columnAnimationService", void 0), ce([
h("autoGroupColService")
], t.prototype, "autoGroupColService", void 0), ce([
Y("aggFuncService")
], t.prototype, "aggFuncService", void 0), ce([
Y("valueCache")
], t.prototype, "valueCache", void 0), ce([
Y("animationFrameService")
], t.prototype, "animationFrameService", void 0), ce([
h("sortController")
], t.prototype, "sortController", void 0), ce([
h("columnDefFactory")
], t.prototype, "columnDefFactory", void 0), ce([
b
], t.prototype, "init", null), ce([
fe
], t.prototype, "destroyColumns", null), ce([
qu(0, Ce("loggerFactory"))
], t.prototype, "setBeans", null), t = ce([
A("columnModel")
], t), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Zu = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), ec = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, tc = (
/** @class */
function(n) {
Zu(t, n);
function t() {
return n !== null && n.apply(this, arguments) || this;
}
return t.prototype.calculateColMinWidth = function(e) {
return e.minWidth != null ? e.minWidth : this.environment.getMinColWidth();
}, t.prototype.calculateColMaxWidth = function(e) {
return e.maxWidth != null ? e.maxWidth : Number.MAX_SAFE_INTEGER;
}, t.prototype.calculateColInitialWidth = function(e) {
var r = this.calculateColMinWidth(e), o = this.calculateColMaxWidth(e), i, s = Ge(e.width), a = Ge(e.initialWidth);
return s != null ? i = s : a != null ? i = a : i = 200, Math.max(Math.min(i, o), r);
}, t.prototype.getOriginalPathForColumn = function(e, r) {
var o = [], i = !1, s = function(a, l) {
for (var u = 0; u < a.length; u++) {
if (i)
return;
var c = a[u];
if (c instanceof re) {
var p = c;
s(p.getChildren(), l + 1), o[l] = c;
} else
c === e && (i = !0);
}
};
return s(r, 0), i ? o : null;
}, t.prototype.depthFirstOriginalTreeSearch = function(e, r, o) {
var i = this;
r && r.forEach(function(s) {
s instanceof re && i.depthFirstOriginalTreeSearch(s, s.getChildren(), o), o(s, e);
});
}, t.prototype.depthFirstAllColumnTreeSearch = function(e, r) {
var o = this;
e && e.forEach(function(i) {
i instanceof Oe && o.depthFirstAllColumnTreeSearch(i.getChildren(), r), r(i);
});
}, t.prototype.depthFirstDisplayedColumnTreeSearch = function(e, r) {
var o = this;
e && e.forEach(function(i) {
i instanceof Oe && o.depthFirstDisplayedColumnTreeSearch(i.getDisplayedChildren(), r), r(i);
});
}, t = ec([
A("columnUtils")
], t), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var rc = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), oc = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, ic = (
/** @class */
function(n) {
rc(t, n);
function t() {
return n !== null && n.apply(this, arguments) || this;
}
return t.prototype.createDisplayedGroups = function(e, r, o, i, s) {
var a = this, l = [], u, c, p = this.mapOldGroupsById(s);
return e.forEach(function(d) {
for (var f = a.getOriginalPathForColumn(r, d), g = [], y = !c, C = 0; C < f.length; C++)
if (y || f[C] !== c[C]) {
var m = a.createColumnGroup(f[C], o, p, i);
g[C] = m, C == 0 ? l.push(m) : g[C - 1].addChild(m);
} else
g[C] = u[C];
var w = g.length === 0;
if (w)
l.push(d);
else {
var E = q(g);
E.addChild(d);
}
u = g, c = f;
}), this.setupParentsIntoColumns(l, null), l;
}, t.prototype.createColumnGroup = function(e, r, o, i) {
var s = e.getGroupId(), a = r.getInstanceIdForKey(s), l = Oe.createUniqueId(s, a), u = o[l];
return u && u.getProvidedColumnGroup() !== e && (u = null), O(u) ? u.reset() : (u = new Oe(e, s, a, i), this.context.createBean(u)), u;
}, t.prototype.mapOldGroupsById = function(e) {
var r = {}, o = function(i) {
i.forEach(function(s) {
if (s instanceof Oe) {
var a = s;
r[s.getUniqueId()] = a, o(a.getChildren());
}
});
};
return e && o(e), r;
}, t.prototype.setupParentsIntoColumns = function(e, r) {
var o = this;
e.forEach(function(i) {
if (i.setParent(r), i instanceof Oe) {
var s = i;
o.setupParentsIntoColumns(s.getChildren(), s);
}
});
}, t.prototype.getOriginalPathForColumn = function(e, r) {
var o = [], i = !1, s = function(a, l) {
for (var u = 0; u < a.length; u++) {
if (i)
return;
var c = a[u];
c instanceof re ? (s(c.getChildren(), l + 1), o[l] = c) : c === r && (i = !0);
}
};
return s(e, 0), i ? o : (console.warn("AG Grid: could not get path"), null);
}, t = oc([
A("displayedGroupCreator")
], t), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var nc = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), sc = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, ac = (
/** @class */
function(n) {
nc(t, n);
function t() {
var e = n !== null && n.apply(this, arguments) || this;
return e.componentsMappedByName = {}, e;
}
return t.prototype.setupComponents = function(e) {
var r = this;
e && e.forEach(function(o) {
return r.addComponent(o);
});
}, t.prototype.addComponent = function(e) {
var r = e.componentName.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(), o = r.toUpperCase();
this.componentsMappedByName[o] = e.componentClass;
}, t.prototype.getComponentClass = function(e) {
return this.componentsMappedByName[e];
}, t = sc([
A("agStackComponentsRegistry")
], t), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
function lt(n, t, e) {
e == null || e == "" ? Fn(n, t) : Be(n, t, e);
}
function Be(n, t, e) {
n.setAttribute(xa(t), e.toString());
}
function Fn(n, t) {
n.removeAttribute(xa(t));
}
function xa(n) {
return "aria-" + n;
}
function le(n, t) {
t ? n.setAttribute("role", t) : n.removeAttribute("role");
}
function Na(n) {
var t;
return n === "asc" ? t = "ascending" : n === "desc" ? t = "descending" : n === "mixed" ? t = "other" : t = "none", t;
}
function Ga(n) {
return parseInt(n.getAttribute("aria-level"), 10);
}
function Ha(n) {
return parseInt(n.getAttribute("aria-posinset"), 10);
}
function lc(n) {
return n.getAttribute("aria-describedby") || "";
}
function xt(n, t) {
lt(n, "label", t);
}
function Ln(n, t) {
lt(n, "labelledby", t);
}
function Va(n, t) {
lt(n, "description", t);
}
function Ba(n, t) {
lt(n, "describedby", t);
}
function uc(n, t) {
lt(n, "live", t);
}
function Wa(n, t) {
lt(n, "level", t);
}
function Mn(n, t) {
lt(n, "disabled", t);
}
function Zo(n, t) {
lt(n, "hidden", t);
}
function ke(n, t) {
Be(n, "expanded", t);
}
function ja(n) {
Fn(n, "expanded");
}
function In(n, t) {
Be(n, "setsize", t);
}
function xn(n, t) {
Be(n, "posinset", t);
}
function ka(n, t) {
Be(n, "multiselectable", t);
}
function Ua(n, t) {
Be(n, "rowcount", t);
}
function Nn(n, t) {
Be(n, "rowindex", t);
}
function za(n, t) {
Be(n, "colcount", t);
}
function Gn(n, t) {
Be(n, "colindex", t);
}
function Ka(n, t) {
Be(n, "colspan", t);
}
function $a(n, t) {
Be(n, "sort", t);
}
function Ya(n) {
Fn(n, "sort");
}
function Jt(n, t) {
lt(n, "selected", t);
}
function qa(n, t) {
Be(n, "checked", t === void 0 ? "mixed" : t);
}
var cc = /* @__PURE__ */ Object.freeze({
__proto__: null,
setAriaRole: le,
getAriaSortState: Na,
getAriaLevel: Ga,
getAriaPosInSet: Ha,
getAriaDescribedBy: lc,
setAriaLabel: xt,
setAriaLabelledBy: Ln,
setAriaDescription: Va,
setAriaDescribedBy: Ba,
setAriaLive: uc,
setAriaLevel: Wa,
setAriaDisabled: Mn,
setAriaHidden: Zo,
setAriaExpanded: ke,
removeAriaExpanded: ja,
setAriaSetSize: In,
setAriaPosInSet: xn,
setAriaMultiSelectable: ka,
setAriaRowCount: Ua,
setAriaRowIndex: Nn,
setAriaColCount: za,
setAriaColIndex: Gn,
setAriaColSpan: Ka,
setAriaSort: $a,
removeAriaSort: Ya,
setAriaSelected: Jt,
setAriaChecked: qa
});
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var di, qr, hi, fi, vi, gi, dn, hn;
function rt() {
return di === void 0 && (di = /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), di;
}
function Hn() {
if (qr === void 0)
if (rt()) {
var n = navigator.userAgent.match(/version\/(\d+)/i);
n && (qr = n[1] != null ? parseFloat(n[1]) : 0);
} else
qr = 0;
return qr;
}
function Br() {
if (hi === void 0) {
var n = window;
hi = !!n.chrome && (!!n.chrome.webstore || !!n.chrome.runtime) || /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor);
}
return hi;
}
function Vn() {
return fi === void 0 && (fi = /(firefox)/i.test(navigator.userAgent)), fi;
}
function Bn() {
return vi === void 0 && (vi = /(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)), vi;
}
function St() {
return gi === void 0 && (gi = /iPad|iPhone|iPod/.test(navigator.platform) || // eslint-disable-next-line
navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1), gi;
}
function ei() {
return !rt() || Hn() >= 15;
}
function Fo(n) {
if (!n)
return null;
var t = n.tabIndex, e = n.getAttribute("tabIndex");
return t === -1 && (e === null || e === "" && !Vn()) ? null : t.toString();
}
function Qa() {
if (!document.body)
return -1;
var n = 1e6, t = navigator.userAgent.toLowerCase().match(/firefox/) ? 6e6 : 1e9, e = document.createElement("div");
for (document.body.appendChild(e); ; ) {
var r = n * 2;
if (e.style.height = r + "px", r > t || e.clientHeight !== r)
break;
n = r;
}
return document.body.removeChild(e), n;
}
function Xa() {
var n, t, e;
return (t = (n = document.body) === null || n === void 0 ? void 0 : n.clientWidth) !== null && t !== void 0 ? t : window.innerHeight || ((e = document.documentElement) === null || e === void 0 ? void 0 : e.clientWidth) || -1;
}
function Ja() {
var n, t, e;
return (t = (n = document.body) === null || n === void 0 ? void 0 : n.clientHeight) !== null && t !== void 0 ? t : window.innerHeight || ((e = document.documentElement) === null || e === void 0 ? void 0 : e.clientHeight) || -1;
}
function Za() {
return hn == null && el(), hn;
}
function el() {
var n = document.body, t = document.createElement("div");
t.style.width = t.style.height = "100px", t.style.opacity = "0", t.style.overflow = "scroll", t.style.msOverflowStyle = "scrollbar", t.style.position = "absolute", n.appendChild(t);
var e = t.offsetWidth - t.clientWidth;
e === 0 && t.clientWidth === 0 && (e = null), t.parentNode && t.parentNode.removeChild(t), e != null && (hn = e, dn = e === 0);
}
function Yt() {
return dn == null && el(), dn;
}
var pc = /* @__PURE__ */ Object.freeze({
__proto__: null,
isBrowserSafari: rt,
getSafariVersion: Hn,
isBrowserChrome: Br,
isBrowserFirefox: Vn,
isMacOsUserAgent: Bn,
isIOSUserAgent: St,
browserSupportsPreventScroll: ei,
getTabIndex: Fo,
getMaxDivHeight: Qa,
getBodyWidth: Xa,
getBodyHeight: Ja,
getScrollbarWidth: Za,
isInvisibleScrollbar: Yt
});
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
function qt(n, t) {
return n.toString().padStart(t, "0");
}
function tl(n, t) {
for (var e = [], r = n; r <= t; r++)
e.push(r);
return e;
}
function dc(n) {
return typeof n == "string" && (n = parseInt(n, 10)), typeof n == "number" ? Math.floor(n) : null;
}
function hc(n, t) {
for (var e = "", r = 0; r < t; r++)
e += String.fromCharCode(n & 255), n >>>= 8;
return e;
}
function fc(n, t, e) {
return typeof n != "number" ? "" : Wn(Math.round(n * 100) / 100, t, e);
}
function Wn(n, t, e) {
return typeof n != "number" ? "" : n.toString().replace(".", e).replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1" + t);
}
function vc(n) {
return n == null ? null : n.reduce(function(t, e) {
return t + e;
}, 0);
}
function gc(n, t) {
return n >= 0 ? n : t;
}
function yc(n, t) {
var e = parseInt(n, 10);
return !isNaN(e) && isFinite(e) && e > 0 ? e : t;
}
var Cc = /* @__PURE__ */ Object.freeze({
__proto__: null,
padStartWidthZeros: qt,
createArrayOfNumbers: tl,
cleanNumber: dc,
decToHex: hc,
formatNumberTwoDecimalPlacesAndCommas: fc,
formatNumberCommas: Wn,
sum: vc,
zeroOrGreater: gc,
oneOrGreater: yc
});
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var yi = function(n, t) {
var e = typeof Symbol == "function" && n[Symbol.iterator];
if (!e)
return n;
var r = e.call(n), o, i = [], s;
try {
for (; (t === void 0 || t-- > 0) && !(o = r.next()).done; )
i.push(o.value);
} catch (a) {
s = { error: a };
} finally {
try {
o && !o.done && (e = r.return) && e.call(r);
} finally {
if (s)
throw s.error;
}
}
return i;
};
function Ir(n, t, e) {
if (t === void 0 && (t = !0), e === void 0 && (e = "-"), !n)
return null;
var r = [n.getFullYear(), n.getMonth() + 1, n.getDate()].map(function(o) {
return qt(o, 2);
}).join(e);
return t && (r += " " + [n.getHours(), n.getMinutes(), n.getSeconds()].map(function(o) {
return qt(o, 2);
}).join(":")), r;
}
var Ci = function(n) {
if (n > 3 && n < 21)
return "th";
var t = n % 10;
switch (t) {
case 1:
return "st";
case 2:
return "nd";
case 3:
return "rd";
}
return "th";
};
function Ro(n, t) {
t === void 0 && (t = "YYYY-MM-DD");
var e = qt(n.getFullYear(), 4), r = [
"January",
"February",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
"December"
], o = [
"Sunday",
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday",
"Saturday"
], i = {
YYYY: function() {
return e.slice(e.length - 4, e.length);
},
YY: function() {
return e.slice(e.length - 2, e.length);
},
Y: function() {
return "" + n.getFullYear();
},
MMMM: function() {
return r[n.getMonth()];
},
MMM: function() {
return r[n.getMonth()].slice(0, 3);
},
MM: function() {
return qt(n.getMonth() + 1, 2);
},
Mo: function() {
return "" + (n.getMonth() + 1) + Ci(n.getMonth() + 1);
},
M: function() {
return "" + (n.getMonth() + 1);
},
Do: function() {
return "" + n.getDate() + Ci(n.getDate());
},
DD: function() {
return qt(n.getDate(), 2);
},
D: function() {
return "" + n.getDate();
},
dddd: function() {
return o[n.getDay()];
},
ddd: function() {
return o[n.getDay()].slice(0, 3);
},
dd: function() {
return o[n.getDay()].slice(0, 2);
},
do: function() {
return "" + n.getDay() + Ci(n.getDay());
},
d: function() {
return "" + n.getDay();
}
}, s = new RegExp(Object.keys(i).join("|"), "g");
return t.replace(s, function(a) {
return a in i ? i[a]() : a;
});
}
function mt(n) {
if (!n)
return null;
var t = yi(n.split(" "), 2), e = t[0], r = t[1];
if (!e)
return null;
var o = e.split("-").map(function(g) {
return parseInt(g, 10);
});
if (o.filter(function(g) {
return !isNaN(g);
}).length !== 3)
return null;
var i = yi(o, 3), s = i[0], a = i[1], l = i[2], u = new Date(s, a - 1, l);
if (u.getFullYear() !== s || u.getMonth() !== a - 1 || u.getDate() !== l)
return null;
if (!r || r === "00:00:00")
return u;
var c = yi(r.split(":").map(function(g) {
return parseInt(g, 10);
}), 3), p = c[0], d = c[1], f = c[2];
return p >= 0 && p < 24 && u.setHours(p), d >= 0 && d < 60 && u.setMinutes(d), f >= 0 && f < 60 && u.setSeconds(f), u;
}
var mc = /* @__PURE__ */ Object.freeze({
__proto__: null,
serialiseDate: Ir,
dateToFormattedString: Ro,
parseDateTimeFromString: mt
});
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var wc = function(n) {
var t = typeof Symbol == "function" && Symbol.iterator, e = t && n[t], r = 0;
if (e)
return e.call(n);
if (n && typeof n.length == "number")
return {
next: function() {
return n && r >= n.length && (n = void 0), { value: n && n[r++], done: !n };
}
};
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
}, Sc = function(n, t) {
var e = typeof Symbol == "function" && n[Symbol.iterator];
if (!e)
return n;
var r = e.call(n), o, i = [], s;
try {
for (; (t === void 0 || t-- > 0) && !(o = r.next()).done; )
i.push(o.value);
} catch (a) {
s = { error: a };
} finally {
try {
o && !o.done && (e = r.return) && e.call(r);
} finally {
if (s)
throw s.error;
}
}
return i;
}, Qr;
function Ec(n, t, e) {
for (var r = n.parentElement, o = r && r.firstChild; o; )
t && o.classList.toggle(t, o === n), e && o.classList.toggle(e, o !== n), o = o.nextSibling;
}
var rl = "[tabindex], input, select, button, textarea, [href]", jn = ".ag-hidden, .ag-hidden *, [disabled], .ag-disabled, .ag-disabled *";
function kn(n) {
var t = Element.prototype.matches || Element.prototype.msMatchesSelector, e = "input, select, button, textarea", r = t.call(n, e), o = t.call(n, jn), i = nr(n), s = r && !o && i;
return s;
}
function k(n, t, e) {
e === void 0 && (e = {});
var r = e.skipAriaHidden;
n.classList.toggle("ag-hidden", !t), r || Zo(n, !t);
}
function ol(n, t, e) {
e === void 0 && (e = {});
var r = e.skipAriaHidden;
n.classList.toggle("ag-invisible", !t), r || Zo(n, !t);
}
function Zt(n, t) {
var e = "disabled", r = t ? function(o) {
return o.setAttribute(e, "");
} : function(o) {
return o.removeAttribute(e);
};
r(n), qn(n.querySelectorAll("input"), function(o) {
return r(o);
});
}
function Dt(n, t, e) {
for (var r = 0; n; ) {
if (n.classList.contains(t))
return !0;
if (n = n.parentElement, typeof e == "number") {
if (++r > e)
break;
} else if (n === e)
break;
}
return !1;
}
function Nt(n) {
var t = window.getComputedStyle(n), e = t.height, r = t.width, o = t.borderTopWidth, i = t.borderRightWidth, s = t.borderBottomWidth, a = t.borderLeftWidth, l = t.paddingTop, u = t.paddingRight, c = t.paddingBottom, p = t.paddingLeft, d = t.marginTop, f = t.marginRight, g = t.marginBottom, y = t.marginLeft, C = t.boxSizing;
return {
height: parseFloat(e),
width: parseFloat(r),
borderTopWidth: parseFloat(o),
borderRightWidth: parseFloat(i),
borderBottomWidth: parseFloat(s),
borderLeftWidth: parseFloat(a),
paddingTop: parseFloat(l),
paddingRight: parseFloat(u),
paddingBottom: parseFloat(c),
paddingLeft: parseFloat(p),
marginTop: parseFloat(d),
marginRight: parseFloat(f),
marginBottom: parseFloat(g),
marginLeft: parseFloat(y),
boxSizing: C
};
}
function Wr(n) {
var t = Nt(n);
return t.boxSizing === "border-box" ? t.height - t.paddingTop - t.paddingBottom : t.height;
}
function ti(n) {
var t = Nt(n);
return t.boxSizing === "border-box" ? t.width - t.paddingLeft - t.paddingRight : t.width;
}
function Un(n) {
var t = Nt(n), e = t.marginBottom + t.marginTop;
return Math.ceil(n.offsetHeight + e);
}
function ri(n) {
var t = Nt(n), e = t.marginLeft + t.marginRight;
return Math.ceil(n.offsetWidth + e);
}
function xr() {
if (typeof Qr == "boolean")
return Qr;
var n = document.createElement("div");
return n.style.direction = "rtl", n.style.width = "1px", n.style.height = "1px", n.style.position = "fixed", n.style.top = "0px", n.style.overflow = "hidden", n.dir = "rtl", n.innerHTML = /* html */
`<div style="width: 2px">
<span style="display: inline-block; width: 1px"></span>
<span style="display: inline-block; width: 1px"></span>
</div>`, document.body.appendChild(n), n.scrollLeft = 1, Qr = Math.floor(n.scrollLeft) === 0, document.body.removeChild(n), Qr;
}
function Nr(n, t) {
var e = n.scrollLeft;
return t && (e = Math.abs(e), Br() && !xr() && (e = n.scrollWidth - n.clientWidth - e)), e;
}
function Lo(n, t, e) {
e && (xr() ? t *= -1 : (rt() || Br()) && (t = n.scrollWidth - n.clientWidth - t)), n.scrollLeft = t;
}
function Ae(n) {
for (; n && n.firstChild; )
n.removeChild(n.firstChild);
}
function _c(n, t) {
st(n.querySelector(t));
}
function st(n) {
n && n.parentNode && n.parentNode.removeChild(n);
}
function nr(n) {
return n.offsetParent !== null;
}
function de(n) {
var t = document.createElement("div");
return t.innerHTML = (n || "").trim(), t.firstChild;
}
function Rc(n, t) {
n.lastChild ? n.insertAdjacentHTML("afterbegin", t) : n.innerHTML = t;
}
function Oc(n, t) {
if (n.attributes && n.attributes[t]) {
var e = n.attributes[t];
return e.value;
}
return null;
}
function fn(n) {
return n && n.clientHeight ? n.clientHeight : 0;
}
function vn(n) {
return n && n.clientWidth ? n.clientWidth : 0;
}
function zn(n, t, e) {
if (!(e && e.nextSibling === t)) {
var r = document.activeElement, o = t.contains(r);
e ? e.nextSibling ? n.insertBefore(t, e.nextSibling) : n.appendChild(t) : n.firstChild && n.firstChild !== t && n.insertAdjacentElement("afterbegin", t), o && r && ei() && r.focus({ preventScroll: !0 });
}
}
function Kn(n, t) {
for (var e = 0; e < t.length; e++) {
var r = t[e], o = n.children[e];
o !== r && n.insertBefore(r, o);
}
}
function il(n, t, e) {
e ? e.insertAdjacentElement("afterend", t) : n.firstChild ? n.insertAdjacentElement("afterbegin", t) : n.appendChild(t);
}
function Tc(n, t) {
O(n.firstChild) ? n.insertBefore(t, n.firstChild) : n.appendChild(t);
}
function $n(n, t) {
var e, r;
if (t)
try {
for (var o = wc(Object.entries(t)), i = o.next(); !i.done; i = o.next()) {
var s = Sc(i.value, 2), a = s[0], l = s[1];
if (!(!a || !a.length || l == null)) {
var u = a.replace(/[A-Z]/g, function(f) {
return "-" + f.toLocaleLowerCase();
}), c = l.toString(), p = c.replace(/\s*!important/g, ""), d = p.length != c.length ? "important" : void 0;
n.style.setProperty(u, l, d);
}
}
} catch (f) {
e = { error: f };
} finally {
try {
i && !i.done && (r = o.return) && r.call(o);
} finally {
if (e)
throw e.error;
}
}
}
function nl(n) {
return n.clientWidth < n.scrollWidth;
}
function sl(n) {
return n.clientHeight < n.scrollHeight;
}
function jr(n, t) {
t === "flex" ? (n.style.removeProperty("width"), n.style.removeProperty("minWidth"), n.style.removeProperty("maxWidth"), n.style.flex = "1 1 auto") : Ve(n, t);
}
function Ve(n, t) {
t = Yn(t), n.style.width = t.toString(), n.style.maxWidth = t.toString(), n.style.minWidth = t.toString();
}
function bc(n, t) {
t === "flex" ? (n.style.removeProperty("height"), n.style.removeProperty("minHeight"), n.style.removeProperty("maxHeight"), n.style.flex = "1 1 auto") : At(n, t);
}
function At(n, t) {
t = Yn(t), n.style.height = t.toString(), n.style.maxHeight = t.toString(), n.style.minHeight = t.toString();
}
function Yn(n) {
return typeof n == "number" ? n + "px" : n;
}
function kr(n) {
return n instanceof Node || n instanceof HTMLElement;
}
function al(n) {
if (n == null)
return [];
var t = [];
return qn(n, function(e) {
return t.push(e);
}), t;
}
function ll(n, t) {
if (n)
for (var e = 0; e < n.length; e++) {
var r = n[e];
t(r.name, r.value);
}
}
function Pr(n, t, e) {
e == null ? n.removeAttribute(t) : n.setAttribute(t, e.toString());
}
function qn(n, t) {
if (n != null)
for (var e = 0; e < n.length; e++)
t(n[e]);
}
var Pc = /* @__PURE__ */ Object.freeze({
__proto__: null,
radioCssClass: Ec,
FOCUSABLE_SELECTOR: rl,
FOCUSABLE_EXCLUDE: jn,
isFocusableFormField: kn,
setDisplayed: k,
setVisible: ol,
setDisabled: Zt,
isElementChildOfClass: Dt,
getElementSize: Nt,
getInnerHeight: Wr,
getInnerWidth: ti,
getAbsoluteHeight: Un,
getAbsoluteWidth: ri,
isRtlNegativeScroll: xr,
getScrollLeft: Nr,
setScrollLeft: Lo,
clearElement: Ae,
removeElement: _c,
removeFromParent: st,
isVisible: nr,
loadTemplate: de,
appendHtml: Rc,
getElementAttribute: Oc,
offsetHeight: fn,
offsetWidth: vn,
ensureDomOrder: zn,
setDomChildOrder: Kn,
insertWithDomOrder: il,
prependDC: Tc,
addStylesToElement: $n,
isHorizontalScrollShowing: nl,
isVerticalScrollShowing: sl,
setElementWidth: jr,
setFixedWidth: Ve,
setElementHeight: bc,
setFixedHeight: At,
formatSize: Yn,
isNodeOrElement: kr,
copyNodeList: al,
iterateNamedNodeMap: ll,
addOrRemoveAttribute: Pr,
nodeListForEach: qn
});
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var ul = {
// header column group shown when expanded (click to contract)
columnGroupOpened: "expanded",
// header column group shown when contracted (click to expand)
columnGroupClosed: "contracted",
// tool panel column group contracted (click to expand)
columnSelectClosed: "tree-closed",
// tool panel column group expanded (click to contract)
columnSelectOpen: "tree-open",
// column tool panel header expand/collapse all button, shown when some children are expanded and
// others are collapsed
columnSelectIndeterminate: "tree-indeterminate",
// shown on ghost icon while dragging column to the side of the grid to pin
columnMovePin: "pin",
// shown on ghost icon while dragging over part of the page that is not a drop zone
columnMoveHide: "eye-slash",
// shown on ghost icon while dragging columns to reorder
columnMoveMove: "arrows",
// animating icon shown when dragging a column to the right of the grid causes horizontal scrolling
columnMoveLeft: "left",
// animating icon shown when dragging a column to the left of the grid causes horizontal scrolling
columnMoveRight: "right",
// shown on ghost icon while dragging over Row Groups drop zone
columnMoveGroup: "group",
// shown on ghost icon while dragging over Values drop zone
columnMoveValue: "aggregation",
// shown on ghost icon while dragging over pivot drop zone
columnMovePivot: "pivot",
// shown on ghost icon while dragging over drop zone that doesn't support it, e.g.
// string column over aggregation drop zone
dropNotAllowed: "not-allowed",
// shown on row group when contracted (click to expand)
groupContracted: "tree-closed",
// shown on row group when expanded (click to contract)
groupExpanded: "tree-open",
// set filter tree list group contracted (click to expand)
setFilterGroupClosed: "tree-closed",
// set filter tree list group expanded (click to contract)
setFilterGroupOpen: "tree-open",
// set filter tree list expand/collapse all button, shown when some children are expanded and
// others are collapsed
setFilterGroupIndeterminate: "tree-indeterminate",
// context menu chart item
chart: "chart",
// chart window title bar
close: "cross",
// X (remove) on column 'pill' after adding it to a drop zone list
cancel: "cancel",
// indicates the currently active pin state in the "Pin column" sub-menu of the column menu
check: "tick",
// "go to first" button in pagination controls
first: "first",
// "go to previous" button in pagination controls
previous: "previous",
// "go to next" button in pagination controls
next: "next",
// "go to last" button in pagination controls
last: "last",
// shown on top right of chart when chart is linked to range data (click to unlink)
linked: "linked",
// shown on top right of chart when chart is not linked to range data (click to link)
unlinked: "unlinked",
// "Choose colour" button on chart settings tab
colorPicker: "color-picker",
// rotating spinner shown by the loading cell renderer
groupLoading: "loading",
// button to launch enterprise column menu
menu: "menu",
// filter tool panel tab
filter: "filter",
// column tool panel tab
columns: "columns",
// button in chart regular size window title bar (click to maximise)
maximize: "maximize",
// button in chart maximised window title bar (click to make regular size)
minimize: "minimize",
// "Pin column" item in column header menu
menuPin: "pin",
// "Value aggregation" column menu item (shown on numeric columns when grouping is active)"
menuValue: "aggregation",
// "Group by {column-name}" item in column header menu
menuAddRowGroup: "group",
// "Un-Group by {column-name}" item in column header menu
menuRemoveRowGroup: "group",
// context menu copy item
clipboardCopy: "copy",
// context menu cut item
clipboardCut: "cut",
// context menu paste item
clipboardPaste: "paste",
// identifies the pivot drop zone
pivotPanel: "pivot",
// "Row groups" drop zone in column tool panel
rowGroupPanel: "group",
// columns tool panel Values drop zone
valuePanel: "aggregation",
// drag handle used to pick up draggable columns
columnDrag: "grip",
// drag handle used to pick up draggable rows
rowDrag: "grip",
// context menu export item
save: "save",
// csv export
csvExport: "csv",
// excel export,
excelExport: "excel",
// icon on dropdown editors
smallDown: "small-down",
// version of small-right used in RTL mode
smallLeft: "small-left",
// separater between column 'pills' when you add multiple columns to the header drop zone
smallRight: "small-right",
smallUp: "small-up",
// show on column header when column is sorted ascending
sortAscending: "asc",
// show on column header when column is sorted descending
sortDescending: "desc",
// show on column header when column has no sort, only when enabled with gridOptions.unSortIcon=true
sortUnSort: "none"
};
function Ie(n, t, e) {
var r = oe(n, t, e);
if (r) {
var o = r.className;
if (typeof o == "string" && o.indexOf("ag-icon") > -1 || typeof o == "object" && o["ag-icon"])
return r;
}
var i = document.createElement("span");
return i.appendChild(r), i;
}
function oe(n, t, e, r) {
var o = null, i = e && e.getColDef().icons;
if (i && (o = i[n]), t && !o) {
var s = t.get("icons");
s && (o = s[n]);
}
if (o) {
var a = void 0;
if (typeof o == "function")
a = o();
else if (typeof o == "string")
a = o;
else
throw new Error("icon from grid options needs to be a string or a function");
if (typeof a == "string")
return de(a);
if (kr(a))
return a;
console.warn("AG Grid: iconRenderer should return back a string or a dom object");
} else {
var l = document.createElement("span"), u = ul[n];
return u || (r ? u = n : (console.warn("AG Grid: Did not find icon " + n), u = "")), l.setAttribute("class", "ag-icon ag-icon-" + u), l.setAttribute("unselectable", "on"), le(l, "presentation"), l;
}
}
var Dc = /* @__PURE__ */ Object.freeze({
__proto__: null,
iconNameClassMap: ul,
createIcon: Ie,
createIconNoSpan: oe
});
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var _ = (
/** @class */
function() {
function n() {
}
return n.BACKSPACE = "Backspace", n.TAB = "Tab", n.ENTER = "Enter", n.ESCAPE = "Escape", n.SPACE = " ", n.LEFT = "ArrowLeft", n.UP = "ArrowUp", n.RIGHT = "ArrowRight", n.DOWN = "ArrowDown", n.DELETE = "Delete", n.F2 = "F2", n.PAGE_UP = "PageUp", n.PAGE_DOWN = "PageDown", n.PAGE_HOME = "Home", n.PAGE_END = "End", n.A = "KeyA", n.C = "KeyC", n.D = "KeyD", n.V = "KeyV", n.X = "KeyX", n.Y = "KeyY", n.Z = "KeyZ", n;
}()
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Ac = 65, Fc = 67, Lc = 86, Mc = 68, Ic = 90, xc = 89;
function cl(n) {
if (n.altKey || n.ctrlKey || n.metaKey)
return !1;
var t = n.key.length === 1;
return t;
}
function Mo(n, t, e, r, o) {
var i = r ? r.getColDef().suppressKeyboardEvent : void 0;
if (!i)
return !1;
var s = {
event: t,
editing: o,
column: r,
api: n.api,
node: e,
data: e.data,
colDef: r.getColDef(),
context: n.context,
columnApi: n.columnApi
};
if (i) {
var a = i(s);
if (a)
return !0;
}
return !1;
}
function pl(n, t, e, r) {
var o = r.getDefinition(), i = o && o.suppressHeaderKeyboardEvent;
if (!O(i))
return !1;
var s = {
api: n.api,
columnApi: n.columnApi,
context: n.context,
colDef: o,
column: r,
headerRowIndex: e,
event: t
};
return !!i(s);
}
function dl(n) {
var t = n.keyCode, e;
switch (t) {
case Ac:
e = _.A;
break;
case Fc:
e = _.C;
break;
case Lc:
e = _.V;
break;
case Mc:
e = _.D;
break;
case Ic:
e = _.Z;
break;
case xc:
e = _.Y;
break;
default:
e = n.code;
}
return e;
}
function hl(n, t) {
return t === void 0 && (t = !1), n === _.DELETE ? !0 : !t && n === _.BACKSPACE ? Bn() : !1;
}
var Nc = /* @__PURE__ */ Object.freeze({
__proto__: null,
isEventFromPrintableCharacter: cl,
isUserSuppressingKeyboardEvent: Mo,
isUserSuppressingHeaderKeyboardEvent: pl,
normaliseQwertyAzerty: dl,
isDeleteKey: hl
});
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
function Qn(n, t, e) {
if (e === 0)
return !1;
var r = Math.abs(n.clientX - t.clientX), o = Math.abs(n.clientY - t.clientY);
return Math.max(r, o) <= e;
}
var Gc = /* @__PURE__ */ Object.freeze({
__proto__: null,
areEventsNear: Qn
});
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
function Hc(n, t) {
if (!n)
return !1;
for (var e = function(a, l) {
var u = t[a.id], c = t[l.id], p = u !== void 0, d = c !== void 0, f = p && d, g = !p && !d;
return f ? u - c : g ? a.__objectId - l.__objectId : p ? 1 : -1;
}, r, o, i = !1, s = 0; s < n.length - 1; s++)
if (r = n[s], o = n[s + 1], e(r, o) > 0) {
i = !0;
break;
}
return i ? (n.sort(e), !0) : !1;
}
function Vc(n, t) {
var e = [];
r(n);
function r(o) {
o && o.forEach(function(i) {
if (i.group || i.hasChildren()) {
e.push(i.key);
var s = e.join("|");
t(i, s), r(i.childrenAfterGroup), e.pop();
}
});
}
}
var Bc = /* @__PURE__ */ Object.freeze({
__proto__: null,
sortRowNodesByOrder: Hc,
traverseNodesWithKey: Vc
});
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
function Xn(n) {
var t = /* @__PURE__ */ new Set();
return n.forEach(function(e) {
return t.add(e);
}), t;
}
var Wc = /* @__PURE__ */ Object.freeze({
__proto__: null,
convertToSet: Xn
});
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var ie = function() {
return ie = Object.assign || function(n) {
for (var t, e = 1, r = arguments.length; e < r; e++) {
t = arguments[e];
for (var o in t)
Object.prototype.hasOwnProperty.call(t, o) && (n[o] = t[o]);
}
return n;
}, ie.apply(this, arguments);
}, jc = ie(ie(ie(ie(ie(ie(ie(ie(ie(ie(ie(ie(ie(ie(ie(ie(ie(ie({}, cc), Ou), pc), mc), Pc), bu), uu), xu), Zl), Dc), Nc), $u), Gc), Cc), su), Bc), Wc), Uu), G = jc;
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var er = (
/** @class */
function() {
function n(t, e) {
t === void 0 && (t = 0), e === void 0 && (e = 1), this.nextValue = t, this.step = e;
}
return n.prototype.next = function() {
var t = this.nextValue;
return this.nextValue += this.step, t;
}, n.prototype.peek = function() {
return this.nextValue;
}, n.prototype.skip = function(t) {
this.nextValue += t;
}, n;
}()
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var kt;
(function(n) {
n[n.IN_PROGRESS = 0] = "IN_PROGRESS", n[n.RESOLVED = 1] = "RESOLVED";
})(kt || (kt = {}));
var Ne = (
/** @class */
function() {
function n(t) {
var e = this;
this.status = kt.IN_PROGRESS, this.resolution = null, this.waiters = [], t(function(r) {
return e.onDone(r);
}, function(r) {
return e.onReject(r);
});
}
return n.all = function(t) {
return new n(function(e) {
var r = t.length, o = new Array(r);
t.forEach(function(i, s) {
i.then(function(a) {
o[s] = a, r--, r === 0 && e(o);
});
});
});
}, n.resolve = function(t) {
return t === void 0 && (t = null), new n(function(e) {
return e(t);
});
}, n.prototype.then = function(t) {
var e = this;
return new n(function(r) {
e.status === kt.RESOLVED ? r(t(e.resolution)) : e.waiters.push(function(o) {
return r(t(o));
});
});
}, n.prototype.resolveNow = function(t, e) {
return this.status === kt.RESOLVED ? e(this.resolution) : t;
}, n.prototype.onDone = function(t) {
this.status = kt.RESOLVED, this.resolution = t, this.waiters.forEach(function(e) {
return e(t);
});
}, n.prototype.onReject = function(t) {
console.warn("TBI");
}, n;
}()
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var kc = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), gn = function() {
return gn = Object.assign || function(n) {
for (var t, e = 1, r = arguments.length; e < r; e++) {
t = arguments[e];
for (var o in t)
Object.prototype.hasOwnProperty.call(t, o) && (n[o] = t[o]);
}
return n;
}, gn.apply(this, arguments);
}, mi = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, je;
(function(n) {
n[n.NOTHING = 0] = "NOTHING", n[n.WAITING_TO_SHOW = 1] = "WAITING_TO_SHOW", n[n.SHOWING = 2] = "SHOWING";
})(je || (je = {}));
var Jn = (
/** @class */
function(n) {
kc(t, n);
function t(e) {
var r = n.call(this) || this;
return r.DEFAULT_SHOW_TOOLTIP_DELAY = 2e3, r.DEFAULT_HIDE_TOOLTIP_DELAY = 1e4, r.SHOW_QUICK_TOOLTIP_DIFF = 1e3, r.FADE_OUT_TOOLTIP_TIMEOUT = 1e3, r.state = je.NOTHING, r.tooltipInstanceCount = 0, r.tooltipMouseTrack = !1, r.parentComp = e, r;
}
return t.prototype.postConstruct = function() {
this.tooltipShowDelay = this.getTooltipDelay("show") || this.DEFAULT_SHOW_TOOLTIP_DELAY, this.tooltipHideDelay = this.getTooltipDelay("hide") || this.DEFAULT_HIDE_TOOLTIP_DELAY, this.tooltipMouseTrack = this.gridOptionsService.is("tooltipMouseTrack");
var e = this.parentComp.getGui();
this.addManagedListener(e, "mouseenter", this.onMouseEnter.bind(this)), this.addManagedListener(e, "mouseleave", this.onMouseLeave.bind(this)), this.addManagedListener(e, "mousemove", this.onMouseMove.bind(this)), this.addManagedListener(e, "mousedown", this.onMouseDown.bind(this)), this.addManagedListener(e, "keydown", this.onKeyDown.bind(this));
}, t.prototype.destroy = function() {
this.setToDoNothing(), n.prototype.destroy.call(this);
}, t.prototype.onMouseEnter = function(e) {
if (!St() && this.state == je.NOTHING) {
var r = this.isLastTooltipHiddenRecently() ? 200 : this.tooltipShowDelay;
this.showTooltipTimeoutId = window.setTimeout(this.showTooltip.bind(this), r), this.lastMouseEvent = e, this.state = je.WAITING_TO_SHOW;
}
}, t.prototype.onMouseLeave = function() {
this.setToDoNothing();
}, t.prototype.onKeyDown = function() {
this.setToDoNothing();
}, t.prototype.setToDoNothing = function() {
this.state === je.SHOWING && this.hideTooltip(), this.clearTimeouts(), this.state = je.NOTHING;
}, t.prototype.onMouseMove = function(e) {
this.lastMouseEvent = e, this.tooltipMouseTrack && this.state === je.SHOWING && this.tooltipComp && this.positionTooltipUnderLastMouseEvent();
}, t.prototype.onMouseDown = function() {
this.setToDoNothing();
}, t.prototype.getTooltipDelay = function(e) {
var r = this.gridOptionsService.getNum("tooltipShowDelay"), o = this.gridOptionsService.getNum("tooltipHideDelay"), i = e === "show" ? r : o, s = Ma(e);
return O(i) ? (i < 0 && K(function() {
return console.warn("AG Grid: tooltip" + s + "Delay should not be lower than 0");
}, "tooltip" + s + "DelayWarn"), Math.max(200, i)) : null;
}, t.prototype.hideTooltip = function() {
this.tooltipComp && (this.destroyTooltipComp(), t.lastTooltipHideTime = (/* @__PURE__ */ new Date()).getTime()), this.state = je.NOTHING;
}, t.prototype.destroyTooltipComp = function() {
var e = this;
this.tooltipComp.getGui().classList.add("ag-tooltip-hiding");
var r = this.tooltipPopupDestroyFunc, o = this.tooltipComp;
window.setTimeout(function() {
r(), e.getContext().destroyBean(o);
}, this.FADE_OUT_TOOLTIP_TIMEOUT), this.tooltipPopupDestroyFunc = void 0, this.tooltipComp = void 0;
}, t.prototype.isLastTooltipHiddenRecently = function() {
var e = (/* @__PURE__ */ new Date()).getTime(), r = t.lastTooltipHideTime;
return e - r < this.SHOW_QUICK_TOOLTIP_DIFF;
}, t.prototype.showTooltip = function() {
var e = gn({}, this.parentComp.getTooltipParams());
if (!O(e.value)) {
this.setToDoNothing();
return;
}
this.state = je.SHOWING, this.tooltipInstanceCount++;
var r = this.newTooltipComponentCallback.bind(this, this.tooltipInstanceCount), o = this.userComponentFactory.getTooltipCompDetails(e);
o.newAgStackInstance().then(r);
}, t.prototype.newTooltipComponentCallback = function(e, r) {
var o = this.state !== je.SHOWING || this.tooltipInstanceCount !== e;
if (o) {
this.getContext().destroyBean(r);
return;
}
var i = r.getGui();
this.tooltipComp = r, i.classList.contains("ag-tooltip") || i.classList.add("ag-tooltip-custom");
var s = this.localeService.getLocaleTextFunc(), a = this.popupService.addPopup({
eChild: i,
ariaLabel: s("ariaLabelTooltip", "Tooltip")
});
a && (this.tooltipPopupDestroyFunc = a.hideFunc), this.positionTooltipUnderLastMouseEvent(), this.hideTooltipTimeoutId = window.setTimeout(this.hideTooltip.bind(this), this.tooltipHideDelay);
}, t.prototype.positionTooltipUnderLastMouseEvent = function() {
this.popupService.positionPopupUnderMouseEvent({
type: "tooltip",
mouseEvent: this.lastMouseEvent,
ePopup: this.tooltipComp.getGui(),
nudgeY: 18,
skipObserver: this.tooltipMouseTrack
});
}, t.prototype.clearTimeouts = function() {
this.showTooltipTimeoutId && (window.clearTimeout(this.showTooltipTimeoutId), this.showTooltipTimeoutId = void 0), this.hideTooltipTimeoutId && (window.clearTimeout(this.hideTooltipTimeoutId), this.hideTooltipTimeoutId = void 0);
}, mi([
h("popupService")
], t.prototype, "popupService", void 0), mi([
h("userComponentFactory")
], t.prototype, "userComponentFactory", void 0), mi([
b
], t.prototype, "postConstruct", null), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Uc = (
/** @class */
function() {
function n(t) {
this.cssClassStates = {}, this.getGui = t;
}
return n.prototype.addCssClass = function(t) {
var e = this, r = (t || "").split(" ");
if (r.length > 1) {
r.forEach(function(s) {
return e.addCssClass(s);
});
return;
}
var o = this.cssClassStates[t] !== !0;
if (o && t.length) {
var i = this.getGui();
i && i.classList.add(t), this.cssClassStates[t] = !0;
}
}, n.prototype.removeCssClass = function(t) {
var e = this, r = (t || "").split(" ");
if (r.length > 1) {
r.forEach(function(s) {
return e.removeCssClass(s);
});
return;
}
var o = this.cssClassStates[t] !== !1;
if (o && t.length) {
var i = this.getGui();
i && i.classList.remove(t), this.cssClassStates[t] = !1;
}
}, n.prototype.containsCssClass = function(t) {
var e = this.getGui();
return e ? e.classList.contains(t) : !1;
}, n.prototype.addOrRemoveCssClass = function(t, e) {
var r = this;
if (t) {
if (t.indexOf(" ") >= 0) {
var o = (t || "").split(" ");
if (o.length > 1) {
o.forEach(function(a) {
return r.addOrRemoveCssClass(a, e);
});
return;
}
}
var i = this.cssClassStates[t] !== e;
if (i && t.length) {
var s = this.getGui();
s && s.classList.toggle(t, e), this.cssClassStates[t] = e;
}
}
}, n;
}()
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var zc = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), wi = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Kc = new er(), W = (
/** @class */
function(n) {
zc(t, n);
function t(e) {
var r = n.call(this) || this;
return r.displayed = !0, r.visible = !0, r.compId = Kc.next(), r.cssClassManager = new Uc(function() {
return r.eGui;
}), e && r.setTemplate(e), r;
}
return t.prototype.preConstructOnComponent = function() {
this.usingBrowserTooltips = this.gridOptionsService.is("enableBrowserTooltips");
}, t.prototype.getCompId = function() {
return this.compId;
}, t.prototype.getTooltipParams = function() {
return {
value: this.tooltipText,
location: "UNKNOWN"
};
}, t.prototype.setTooltip = function(e) {
var r = this, o = function() {
r.usingBrowserTooltips ? r.getGui().removeAttribute("title") : r.tooltipFeature = r.destroyBean(r.tooltipFeature);
}, i = function() {
r.usingBrowserTooltips ? r.getGui().setAttribute("title", r.tooltipText) : r.tooltipFeature = r.createBean(new Jn(r));
};
this.tooltipText != e && (this.tooltipText && o(), e != null && (this.tooltipText = e, this.tooltipText && i()));
}, t.prototype.createChildComponentsFromTags = function(e, r) {
var o = this, i = al(e.childNodes);
i.forEach(function(s) {
if (s instanceof HTMLElement) {
var a = o.createComponentFromElement(s, function(u) {
var c = u.getGui();
c && o.copyAttributesFromNode(s, u.getGui());
}, r);
if (a) {
if (a.addItems && s.children.length) {
o.createChildComponentsFromTags(s, r);
var l = Array.prototype.slice.call(s.children);
a.addItems(l);
}
o.swapComponentForNode(a, e, s);
} else
s.childNodes && o.createChildComponentsFromTags(s, r);
}
});
}, t.prototype.createComponentFromElement = function(e, r, o) {
var i = e.nodeName, s = o ? o[e.getAttribute("ref")] : void 0, a = this.agStackComponentsRegistry.getComponentClass(i);
if (a) {
t.elementGettingCreated = e;
var l = new a(s);
return l.setParentComponent(this), this.createBean(l, null, r), l;
}
return null;
}, t.prototype.copyAttributesFromNode = function(e, r) {
ll(e.attributes, function(o, i) {
return r.setAttribute(o, i);
});
}, t.prototype.swapComponentForNode = function(e, r, o) {
var i = e.getGui();
r.replaceChild(i, o), r.insertBefore(document.createComment(o.nodeName), i), this.addDestroyFunc(this.destroyBean.bind(this, e)), this.swapInComponentForQuerySelectors(e, o);
}, t.prototype.swapInComponentForQuerySelectors = function(e, r) {
var o = this;
this.iterateOverQuerySelectors(function(i) {
o[i.attributeName] === r && (o[i.attributeName] = e);
});
}, t.prototype.iterateOverQuerySelectors = function(e) {
for (var r = Object.getPrototypeOf(this); r != null; ) {
var o = r.__agComponentMetaData, i = Xo(r.constructor);
o && o[i] && o[i].querySelectors && o[i].querySelectors.forEach(function(s) {
return e(s);
}), r = Object.getPrototypeOf(r);
}
}, t.prototype.setTemplate = function(e, r) {
var o = de(e);
this.setTemplateFromElement(o, r);
}, t.prototype.setTemplateFromElement = function(e, r) {
this.eGui = e, this.eGui.__agComponent = this, this.wireQuerySelectors(), this.getContext() && this.createChildComponentsFromTags(this.getGui(), r);
}, t.prototype.createChildComponentsPreConstruct = function() {
this.getGui() && this.createChildComponentsFromTags(this.getGui());
}, t.prototype.wireQuerySelectors = function() {
var e = this;
if (this.eGui) {
var r = this;
this.iterateOverQuerySelectors(function(o) {
var i = function(l) {
return r[o.attributeName] = l;
}, s = o.refSelector && e.eGui.getAttribute("ref") === o.refSelector;
if (s)
i(e.eGui);
else {
var a = e.eGui.querySelector(o.querySelector);
a && i(a.__agComponent || a);
}
});
}
}, t.prototype.getGui = function() {
return this.eGui;
}, t.prototype.getFocusableElement = function() {
return this.eGui;
}, t.prototype.setParentComponent = function(e) {
this.parentComponent = e;
}, t.prototype.getParentComponent = function() {
return this.parentComponent;
}, t.prototype.setGui = function(e) {
this.eGui = e;
}, t.prototype.queryForHtmlElement = function(e) {
return this.eGui.querySelector(e);
}, t.prototype.queryForHtmlInputElement = function(e) {
return this.eGui.querySelector(e);
}, t.prototype.appendChild = function(e, r) {
if (e != null)
if (r || (r = this.eGui), kr(e))
r.appendChild(e);
else {
var o = e;
r.appendChild(o.getGui());
}
}, t.prototype.isDisplayed = function() {
return this.displayed;
}, t.prototype.setVisible = function(e, r) {
if (r === void 0 && (r = {}), e !== this.visible) {
this.visible = e;
var o = r.skipAriaHidden;
ol(this.eGui, e, { skipAriaHidden: o });
}
}, t.prototype.setDisplayed = function(e, r) {
if (r === void 0 && (r = {}), e !== this.displayed) {
this.displayed = e;
var o = r.skipAriaHidden;
k(this.eGui, e, { skipAriaHidden: o });
var i = {
type: t.EVENT_DISPLAYED_CHANGED,
visible: this.displayed
};
this.dispatchEvent(i);
}
}, t.prototype.destroy = function() {
this.tooltipFeature && (this.tooltipFeature = this.destroyBean(this.tooltipFeature)), this.parentComponent && (this.parentComponent = void 0);
var e = this.eGui;
e && e.__agComponent && (e.__agComponent = void 0), n.prototype.destroy.call(this);
}, t.prototype.addGuiEventListener = function(e, r, o) {
var i = this;
this.eGui.addEventListener(e, r, o), this.addDestroyFunc(function() {
return i.eGui.removeEventListener(e, r);
});
}, t.prototype.addCssClass = function(e) {
this.cssClassManager.addCssClass(e);
}, t.prototype.removeCssClass = function(e) {
this.cssClassManager.removeCssClass(e);
}, t.prototype.containsCssClass = function(e) {
return this.cssClassManager.containsCssClass(e);
}, t.prototype.addOrRemoveCssClass = function(e, r) {
this.cssClassManager.addOrRemoveCssClass(e, r);
}, t.prototype.getAttribute = function(e) {
var r = this.eGui;
return r ? r.getAttribute(e) : null;
}, t.prototype.getRefElement = function(e) {
return this.queryForHtmlElement('[ref="' + e + '"]');
}, t.EVENT_DISPLAYED_CHANGED = "displayedChanged", wi([
h("agStackComponentsRegistry")
], t.prototype, "agStackComponentsRegistry", void 0), wi([
ds
], t.prototype, "preConstructOnComponent", null), wi([
ds
], t.prototype, "createChildComponentsPreConstruct", null), t;
}(T)
);
function P(n) {
return $c.bind(this, "[ref=" + n + "]", n);
}
function $c(n, t, e, r, o) {
if (n === null) {
console.error("AG Grid: QuerySelector selector should not be null");
return;
}
if (typeof o == "number") {
console.error("AG Grid: QuerySelector should be on an attribute");
return;
}
Yc(e, "querySelectors", {
attributeName: r,
querySelector: n,
refSelector: t
});
}
function Yc(n, t, e) {
var r = qc(n, Xo(n.constructor));
r[t] || (r[t] = []), r[t].push(e);
}
function qc(n, t) {
return n.__agComponentMetaData || (n.__agComponentMetaData = {}), n.__agComponentMetaData[t] || (n.__agComponentMetaData[t] = {}), n.__agComponentMetaData[t];
}
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Qc = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), ys = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Xc = (
/** @class */
function(n) {
Qc(t, n);
function t() {
return n.call(
this,
/* html */
`
<div class="ag-floating-filter-input" role="presentation">
<ag-input-text-field ref="eFloatingFilterText"></ag-input-text-field>
</div>`
) || this;
}
return t.prototype.destroy = function() {
n.prototype.destroy.call(this);
}, t.prototype.init = function(e) {
this.params = e;
var r = this.columnModel.getDisplayNameForColumn(e.column, "header", !0), o = this.localeService.getLocaleTextFunc();
this.eFloatingFilterText.setDisabled(!0).setInputAriaLabel(r + " " + o("ariaFilterInput", "Filter Input"));
}, t.prototype.onParentModelChanged = function(e) {
var r = this;
if (!e) {
this.eFloatingFilterText.setValue("");
return;
}
this.params.parentFilterInstance(function(o) {
if (o.getModelAsString) {
var i = o.getModelAsString(e);
r.eFloatingFilterText.setValue(i);
}
});
}, ys([
P("eFloatingFilterText")
], t.prototype, "eFloatingFilterText", void 0), ys([
h("columnModel")
], t.prototype, "columnModel", void 0), t;
}(W)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var fl = (
/** @class */
function() {
function n(t, e, r, o) {
var i = this;
this.alive = !0, this.context = t, this.eParent = o;
var s = e.getDateCompDetails(r), a = s.newAgStackInstance();
a.then(function(l) {
if (!i.alive) {
t.destroyBean(l);
return;
}
i.dateComp = l, l && (o.appendChild(l.getGui()), l.afterGuiAttached && l.afterGuiAttached(), i.tempValue && l.setDate(i.tempValue), i.disabled != null && i.setDateCompDisabled(i.disabled));
});
}
return n.prototype.destroy = function() {
this.alive = !1, this.dateComp = this.context.destroyBean(this.dateComp);
}, n.prototype.getDate = function() {
return this.dateComp ? this.dateComp.getDate() : this.tempValue;
}, n.prototype.setDate = function(t) {
this.dateComp ? this.dateComp.setDate(t) : this.tempValue = t;
}, n.prototype.setDisabled = function(t) {
this.dateComp ? this.setDateCompDisabled(t) : this.disabled = t;
}, n.prototype.setDisplayed = function(t) {
k(this.eParent, t);
}, n.prototype.setInputPlaceholder = function(t) {
this.dateComp && this.dateComp.setInputPlaceholder && this.dateComp.setInputPlaceholder(t);
}, n.prototype.setInputAriaLabel = function(t) {
this.dateComp && this.dateComp.setInputAriaLabel && this.dateComp.setInputAriaLabel(t);
}, n.prototype.afterGuiAttached = function(t) {
this.dateComp && typeof this.dateComp.afterGuiAttached == "function" && this.dateComp.afterGuiAttached(t);
}, n.prototype.setDateCompDisabled = function(t) {
this.dateComp != null && this.dateComp.setDisabled != null && this.dateComp.setDisabled(t);
}, n;
}()
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var yn = function() {
return yn = Object.assign || function(n) {
for (var t, e = 1, r = arguments.length; e < r; e++) {
t = arguments[e];
for (var o in t)
Object.prototype.hasOwnProperty.call(t, o) && (n[o] = t[o]);
}
return n;
}, yn.apply(this, arguments);
}, vl = (
/** @class */
function() {
function n() {
this.customFilterOptions = {};
}
return n.prototype.init = function(t, e) {
this.filterOptions = t.filterOptions || e, this.mapCustomOptions(), this.selectDefaultItem(t), this.checkForDeprecatedParams();
}, n.prototype.checkForDeprecatedParams = function() {
this.filterOptions.some(function(t) {
return typeof t != "string" && t.test != null;
}) && console.warn("AG Grid: [IFilterOptionDef] since v26.2.0, test() has been replaced with predicate()."), this.filterOptions.some(function(t) {
return typeof t != "string" && t.hideFilterInput != null;
}) && console.warn("AG Grid: [IFilterOptionDef] since v26.2.0, useOfHideFilterInput has been replaced with numberOfInputs.");
}, n.prototype.getFilterOptions = function() {
return this.filterOptions;
}, n.prototype.mapCustomOptions = function() {
var t = this;
this.filterOptions && this.filterOptions.forEach(function(e) {
if (typeof e != "string") {
var r = [["displayKey"], ["displayName"], ["predicate", "test"]], o = function(a) {
return a.some(function(l) {
return e[l] != null;
}) ? !0 : (console.warn("AG Grid: ignoring FilterOptionDef as it doesn't contain one of '" + a + "'"), !1);
};
if (!r.every(o)) {
t.filterOptions = t.filterOptions.filter(function(a) {
return a === e;
}) || [];
return;
}
var i = e.test, s = yn({}, e);
i != null && e.predicate == null && (s.predicate = function(a, l) {
return i(a[0], l);
}, delete s.test), s.hideFilterInput && s.numberOfInputs == null && (s.numberOfInputs = 0, delete s.hideFilterInput), t.customFilterOptions[e.displayKey] = s;
}
});
}, n.prototype.selectDefaultItem = function(t) {
if (t.defaultOption)
this.defaultOption = t.defaultOption;
else if (this.filterOptions.length >= 1) {
var e = this.filterOptions[0];
typeof e == "string" ? this.defaultOption = e : e.displayKey ? this.defaultOption = e.displayKey : console.warn("AG Grid: invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'");
} else
console.warn("AG Grid: no filter options for filter");
}, n.prototype.getDefaultOption = function() {
return this.defaultOption;
}, n.prototype.getCustomOption = function(t) {
return this.customFilterOptions[t];
}, n;
}()
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var gl = {
applyFilter: "Apply",
clearFilter: "Clear",
resetFilter: "Reset",
cancelFilter: "Cancel",
textFilter: "Text Filter",
numberFilter: "Number Filter",
dateFilter: "Date Filter",
setFilter: "Set Filter",
filterOoo: "Filter...",
empty: "Choose One",
equals: "Equals",
notEqual: "Not equal",
lessThan: "Less than",
greaterThan: "Greater than",
inRange: "In range",
inRangeStart: "From",
inRangeEnd: "To",
lessThanOrEqual: "Less than or equals",
greaterThanOrEqual: "Greater than or equals",
contains: "Contains",
notContains: "Not contains",
startsWith: "Starts with",
endsWith: "Ends with",
blank: "Blank",
notBlank: "Not blank",
andCondition: "AND",
orCondition: "OR",
dateFormatOoo: "yyyy-mm-dd"
};
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Jc = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Cn = function() {
return Cn = Object.assign || function(n) {
for (var t, e = 1, r = arguments.length; e < r; e++) {
t = arguments[e];
for (var o in t)
Object.prototype.hasOwnProperty.call(t, o) && (n[o] = t[o]);
}
return n;
}, Cn.apply(this, arguments);
}, Cs = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Et = (
/** @class */
function(n) {
Jc(t, n);
function t(e, r) {
r === void 0 && (r = {});
var o = n.call(this) || this;
return o.eFocusableElement = e, o.callbacks = r, o.callbacks = Cn({ shouldStopEventPropagation: function() {
return !1;
}, onTabKeyDown: function(i) {
if (!i.defaultPrevented) {
var s = o.focusService.findNextFocusableElement(o.eFocusableElement, !1, i.shiftKey);
s && (s.focus(), i.preventDefault());
}
} }, r), o;
}
return t.prototype.postConstruct = function() {
this.eFocusableElement.classList.add(t.FOCUS_MANAGED_CLASS), this.addKeyDownListeners(this.eFocusableElement), this.callbacks.onFocusIn && this.addManagedListener(this.eFocusableElement, "focusin", this.callbacks.onFocusIn), this.callbacks.onFocusOut && this.addManagedListener(this.eFocusableElement, "focusout", this.callbacks.onFocusOut);
}, t.prototype.addKeyDownListeners = function(e) {
var r = this;
this.addManagedListener(e, "keydown", function(o) {
if (!(o.defaultPrevented || Ze(o))) {
if (r.callbacks.shouldStopEventPropagation(o)) {
Xt(o);
return;
}
o.key === _.TAB ? r.callbacks.onTabKeyDown(o) : r.callbacks.handleKeyDown && r.callbacks.handleKeyDown(o);
}
});
}, t.FOCUS_MANAGED_CLASS = "ag-focus-managed", Cs([
h("focusService")
], t.prototype, "focusService", void 0), Cs([
b
], t.prototype, "postConstruct", null), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Zc = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Si = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, yl = "ag-resizer-wrapper", ep = (
/* html */
'<div class="' + yl + `">
<div ref="eTopLeftResizer" class="ag-resizer ag-resizer-topLeft"></div>
<div ref="eTopResizer" class="ag-resizer ag-resizer-top"></div>
<div ref="eTopRightResizer" class="ag-resizer ag-resizer-topRight"></div>
<div ref="eRightResizer" class="ag-resizer ag-resizer-right"></div>
<div ref="eBottomRightResizer" class="ag-resizer ag-resizer-bottomRight"></div>
<div ref="eBottomResizer" class="ag-resizer ag-resizer-bottom"></div>
<div ref="eBottomLeftResizer" class="ag-resizer ag-resizer-bottomLeft"></div>
<div ref="eLeftResizer" class="ag-resizer ag-resizer-left"></div>
</div>`
), Cl = (
/** @class */
function(n) {
Zc(t, n);
function t(e, r) {
var o = n.call(this) || this;
return o.element = e, o.dragStartPosition = {
x: 0,
y: 0
}, o.position = {
x: 0,
y: 0
}, o.lastSize = {
width: -1,
height: -1
}, o.positioned = !1, o.resizersAdded = !1, o.resizeListeners = [], o.boundaryEl = null, o.isResizing = !1, o.isMoving = !1, o.resizable = {}, o.movable = !1, o.currentResizer = null, o.config = Object.assign({}, { popup: !1 }, r), o;
}
return t.prototype.center = function() {
var e = this.offsetParent, r = e.clientHeight, o = e.clientWidth, i = o / 2 - this.getWidth() / 2, s = r / 2 - this.getHeight() / 2;
this.offsetElement(i, s);
}, t.prototype.initialisePosition = function() {
if (!this.positioned) {
var e = this.config, r = e.centered, o = e.forcePopupParentAsOffsetParent, i = e.minWidth, s = e.width, a = e.minHeight, l = e.height, u = e.x, c = e.y;
this.offsetParent || this.setOffsetParent();
var p = 0, d = 0, f = !!this.element.offsetParent;
if (f) {
var g = this.findBoundaryElement(), y = window.getComputedStyle(g);
if (y.minWidth != null) {
var C = g.offsetWidth - this.element.offsetWidth;
d = parseInt(y.minWidth, 10) - C;
}
if (y.minHeight != null) {
var m = g.offsetHeight - this.element.offsetHeight;
p = parseInt(y.minHeight, 10) - m;
}
}
if (this.minHeight = a || p, this.minWidth = i || d, s && this.setWidth(s), l && this.setHeight(l), (!s || !l) && this.refreshSize(), r)
this.center();
else if (u || c)
this.offsetElement(u, c);
else if (f && o && this.boundaryEl) {
var w = parseFloat(this.boundaryEl.style.top), E = parseFloat(this.boundaryEl.style.left);
this.offsetElement(isNaN(E) ? 0 : E, isNaN(w) ? 0 : w);
}
this.positioned = !!this.offsetParent;
}
}, t.prototype.isPositioned = function() {
return this.positioned;
}, t.prototype.getPosition = function() {
return this.position;
}, t.prototype.setMovable = function(e, r) {
if (!(!this.config.popup || e === this.movable)) {
this.movable = e;
var o = this.moveElementDragListener || {
eElement: r,
onDragStart: this.onMoveStart.bind(this),
onDragging: this.onMove.bind(this),
onDragStop: this.onMoveEnd.bind(this)
};
e ? (this.dragService.addDragSource(o), this.moveElementDragListener = o) : (this.dragService.removeDragSource(o), this.moveElementDragListener = void 0);
}
}, t.prototype.setResizable = function(e) {
var r = this;
if (this.clearResizeListeners(), e ? this.addResizers() : this.removeResizers(), typeof e == "boolean") {
if (e === !1)
return;
e = {
topLeft: e,
top: e,
topRight: e,
right: e,
bottomRight: e,
bottom: e,
bottomLeft: e,
left: e
};
}
Object.keys(e).forEach(function(o) {
var i = e, s = !!i[o], a = r.getResizerElement(o), l = {
dragStartPixels: 0,
eElement: a,
onDragStart: function(u) {
return r.onResizeStart(u, o);
},
onDragging: r.onResize.bind(r),
onDragStop: function(u) {
return r.onResizeEnd(u, o);
}
};
(s || !r.isAlive() && !s) && (s ? (r.dragService.addDragSource(l), r.resizeListeners.push(l), a.style.pointerEvents = "all") : a.style.pointerEvents = "none", r.resizable[o] = s);
});
}, t.prototype.removeSizeFromEl = function() {
this.element.style.removeProperty("height"), this.element.style.removeProperty("width"), this.element.style.removeProperty("flex");
}, t.prototype.restoreLastSize = function() {
this.element.style.flex = "0 0 auto";
var e = this.lastSize, r = e.height, o = e.width;
o !== -1 && (this.element.style.width = o + "px"), r !== -1 && (this.element.style.height = r + "px");
}, t.prototype.getHeight = function() {
return this.element.offsetHeight;
}, t.prototype.setHeight = function(e) {
var r = this.config.popup, o = this.element, i = !1;
if (typeof e == "string" && e.indexOf("%") !== -1)
At(o, e), e = Un(o), i = !0;
else if (this.positioned) {
e = Math.max(this.minHeight, e);
var s = this.getAvailableHeight();
s && e > s && (e = s);
}
this.getHeight() !== e && (i ? (o.style.maxHeight = "unset", o.style.minHeight = "unset") : r ? At(o, e) : (o.style.height = e + "px", o.style.flex = "0 0 auto", this.lastSize.height = typeof e == "number" ? e : parseFloat(e)));
}, t.prototype.getAvailableHeight = function() {
var e = this.config, r = e.popup, o = e.forcePopupParentAsOffsetParent;
this.positioned || this.initialisePosition();
var i = this.offsetParent.clientHeight;
if (!i)
return null;
var s = this.element.getBoundingClientRect(), a = this.offsetParent.getBoundingClientRect(), l = r ? this.position.y : s.top, u = r ? 0 : a.top, c = 0;
if (o) {
var p = this.element.parentElement;
if (p) {
var d = p.getBoundingClientRect().bottom;
c = d - s.bottom;
}
}
var f = i + u - l - c;
return f;
}, t.prototype.getWidth = function() {
return this.element.offsetWidth;
}, t.prototype.setWidth = function(e) {
var r = this.element, o = this.config.popup, i = !1;
if (typeof e == "string" && e.indexOf("%") !== -1)
Ve(r, e), e = ri(r), i = !0;
else if (this.positioned) {
e = Math.max(this.minWidth, e);
var s = this.offsetParent.clientWidth, a = o ? this.position.x : this.element.getBoundingClientRect().left;
s && e + a > s && (e = s - a);
}
this.getWidth() !== e && (i ? (r.style.maxWidth = "unset", r.style.minWidth = "unset") : this.config.popup ? Ve(r, e) : (r.style.width = e + "px", r.style.flex = " unset", this.lastSize.width = typeof e == "number" ? e : parseFloat(e)));
}, t.prototype.offsetElement = function(e, r) {
e === void 0 && (e = 0), r === void 0 && (r = 0);
var o = this.config.forcePopupParentAsOffsetParent ? this.boundaryEl : this.element;
this.popupService.positionPopup({
ePopup: o,
keepWithinBounds: !0,
skipObserver: this.movable || this.isResizable(),
updatePosition: function() {
return { x: e, y: r };
}
}), this.setPosition(parseFloat(o.style.left), parseFloat(o.style.top));
}, t.prototype.constrainSizeToAvailableHeight = function(e) {
var r = this;
if (this.config.forcePopupParentAsOffsetParent) {
var o = function() {
var i = r.getAvailableHeight();
r.element.style.setProperty("max-height", i + "px");
};
e ? this.resizeObserverSubscriber = this.resizeObserverService.observeResize(this.popupService.getPopupParent(), o) : (this.element.style.removeProperty("max-height"), this.resizeObserverSubscriber && (this.resizeObserverSubscriber(), this.resizeObserverSubscriber = void 0));
}
}, t.prototype.setPosition = function(e, r) {
this.position.x = e, this.position.y = r;
}, t.prototype.updateDragStartPosition = function(e, r) {
this.dragStartPosition = { x: e, y: r };
}, t.prototype.calculateMouseMovement = function(e) {
var r = e.e, o = e.isLeft, i = e.isTop, s = e.anywhereWithin, a = e.topBuffer, l = r.clientX - this.dragStartPosition.x, u = r.clientY - this.dragStartPosition.y, c = this.shouldSkipX(r, !!o, !!s, l) ? 0 : l, p = this.shouldSkipY(r, !!i, a, u) ? 0 : u;
return { movementX: c, movementY: p };
}, t.prototype.shouldSkipX = function(e, r, o, i) {
var s = this.element.getBoundingClientRect(), a = this.offsetParent.getBoundingClientRect(), l = this.boundaryEl.getBoundingClientRect(), u = this.config.popup ? this.position.x : s.left, c = u <= 0 && a.left >= e.clientX || a.right <= e.clientX && a.right <= l.right;
return c ? !0 : (r ? c = // skip if we are moving to the left and the cursor
// is positioned to the right of the left side anchor
i < 0 && e.clientX > u + a.left || // skip if we are moving to the right and the cursor
// is positioned to the left of the dialog
i > 0 && e.clientX < u + a.left : o ? c = i < 0 && e.clientX > l.right || i > 0 && e.clientX < u + a.left : c = // if the movement is bound to the right side of the dialog
// we skip if we are moving to the left and the cursor
// is to the right of the dialog
i < 0 && e.clientX > l.right || // or skip if we are moving to the right and the cursor
// is to the left of the right side anchor
i > 0 && e.clientX < l.right, c);
}, t.prototype.shouldSkipY = function(e, r, o, i) {
o === void 0 && (o = 0);
var s = this.element.getBoundingClientRect(), a = this.offsetParent.getBoundingClientRect(), l = this.boundaryEl.getBoundingClientRect(), u = this.config.popup ? this.position.y : s.top, c = u <= 0 && a.top >= e.clientY || a.bottom <= e.clientY && a.bottom <= l.bottom;
return c ? !0 : (r ? c = // skip if we are moving to towards top and the cursor is
// below the top anchor + topBuffer
// note: topBuffer is used when moving the dialog using the title bar
i < 0 && e.clientY > u + a.top + o || // skip if we are moving to the bottom and the cursor is
// above the top anchor
i > 0 && e.clientY < u + a.top : c = // skip if we are moving towards the top and the cursor
// is below the bottom anchor
i < 0 && e.clientY > l.bottom || // skip if we are moving towards the bottom and the cursor
// is above the bottom anchor
i > 0 && e.clientY < l.bottom, c);
}, t.prototype.createResizeMap = function() {
var e = this.element;
this.resizerMap = {
topLeft: { element: e.querySelector("[ref=eTopLeftResizer]") },
top: { element: e.querySelector("[ref=eTopResizer]") },
topRight: { element: e.querySelector("[ref=eTopRightResizer]") },
right: { element: e.querySelector("[ref=eRightResizer]") },
bottomRight: { element: e.querySelector("[ref=eBottomRightResizer]") },
bottom: { element: e.querySelector("[ref=eBottomResizer]") },
bottomLeft: { element: e.querySelector("[ref=eBottomLeftResizer]") },
left: { element: e.querySelector("[ref=eLeftResizer]") }
};
}, t.prototype.addResizers = function() {
if (!this.resizersAdded) {
var e = this.element;
if (e) {
var r = new DOMParser(), o = r.parseFromString(ep, "text/html").body;
e.appendChild(o.firstChild), this.createResizeMap(), this.resizersAdded = !0;
}
}
}, t.prototype.removeResizers = function() {
this.resizerMap = void 0;
var e = this.element.querySelector("." + yl);
e && this.element.removeChild(e), this.resizersAdded = !1;
}, t.prototype.getResizerElement = function(e) {
return this.resizerMap[e].element;
}, t.prototype.onResizeStart = function(e, r) {
this.boundaryEl = this.findBoundaryElement(), this.positioned || this.initialisePosition(), this.currentResizer = {
isTop: !!r.match(/top/i),
isRight: !!r.match(/right/i),
isBottom: !!r.match(/bottom/i),
isLeft: !!r.match(/left/i)
}, this.element.classList.add("ag-resizing"), this.resizerMap[r].element.classList.add("ag-active");
var o = this.config, i = o.popup, s = o.forcePopupParentAsOffsetParent;
!i && !s && this.applySizeToSiblings(this.currentResizer.isBottom || this.currentResizer.isTop), this.isResizing = !0, this.updateDragStartPosition(e.clientX, e.clientY);
}, t.prototype.getSiblings = function() {
var e = this.element, r = e.parentElement;
return r ? Array.prototype.slice.call(r.children).filter(function(o) {
return !o.classList.contains("ag-hidden");
}) : null;
}, t.prototype.getMinSizeOfSiblings = function() {
for (var e = this.getSiblings() || [], r = 0, o = 0, i = 0; i < e.length; i++) {
var s = e[i], a = !!s.style.flex && s.style.flex !== "0 0 auto";
if (s !== this.element) {
var l = this.minHeight || 0, u = this.minWidth || 0;
if (a) {
var c = window.getComputedStyle(s);
c.minHeight && (l = parseInt(c.minHeight, 10)), c.minWidth && (u = parseInt(c.minWidth, 10));
} else
l = s.offsetHeight, u = s.offsetWidth;
r += l, o += u;
}
}
return { height: r, width: o };
}, t.prototype.applySizeToSiblings = function(e) {
var r = null, o = this.getSiblings();
if (o) {
for (var i = 0; i < o.length; i++) {
var s = o[i];
s !== r && (e ? s.style.height = s.offsetHeight + "px" : s.style.width = s.offsetWidth + "px", s.style.flex = "0 0 auto", s === this.element && (r = o[i + 1]));
}
r && (r.style.removeProperty("height"), r.style.removeProperty("min-height"), r.style.removeProperty("max-height"), r.style.flex = "1 1 auto");
}
}, t.prototype.isResizable = function() {
return Object.values(this.resizable).some(function(e) {
return e;
});
}, t.prototype.onResize = function(e) {
if (!(!this.isResizing || !this.currentResizer)) {
var r = this.config, o = r.popup, i = r.forcePopupParentAsOffsetParent, s = this.currentResizer, a = s.isTop, l = s.isRight, u = s.isBottom, c = s.isLeft, p = l || c, d = u || a, f = this.calculateMouseMovement({ e, isLeft: c, isTop: a }), g = f.movementX, y = f.movementY, C = this.position.x, m = this.position.y, w = 0, E = 0;
if (p && g) {
var R = c ? -1 : 1, D = this.getWidth(), M = D + g * R, I = !1;
c && (w = D - M, (C + w <= 0 || M <= this.minWidth) && (I = !0, w = 0)), I || this.setWidth(M);
}
if (d && y) {
var R = a ? -1 : 1, L = this.getHeight(), H = L + y * R, B = !1;
a ? (E = L - H, (m + E <= 0 || H <= this.minHeight) && (B = !0, E = 0)) : !this.config.popup && !this.config.forcePopupParentAsOffsetParent && L < H && this.getMinSizeOfSiblings().height + H > this.element.parentElement.offsetHeight && (B = !0), B || this.setHeight(H);
}
this.updateDragStartPosition(e.clientX, e.clientY), ((o || i) && w || E) && this.offsetElement(C + w, m + E);
}
}, t.prototype.onResizeEnd = function(e, r) {
this.isResizing = !1, this.currentResizer = null, this.boundaryEl = null;
var o = {
type: "resize",
api: this.gridOptionsService.api,
columnApi: this.gridOptionsService.columnApi
};
this.element.classList.remove("ag-resizing"), this.resizerMap[r].element.classList.remove("ag-active"), this.dispatchEvent(o);
}, t.prototype.refreshSize = function() {
var e = this.element;
this.config.popup && (this.config.width || this.setWidth(e.offsetWidth), this.config.height || this.setHeight(e.offsetHeight));
}, t.prototype.onMoveStart = function(e) {
this.boundaryEl = this.findBoundaryElement(), this.positioned || this.initialisePosition(), this.isMoving = !0, this.element.classList.add("ag-moving"), this.updateDragStartPosition(e.clientX, e.clientY);
}, t.prototype.onMove = function(e) {
if (this.isMoving) {
var r = this.position, o = r.x, i = r.y, s;
this.config.calculateTopBuffer && (s = this.config.calculateTopBuffer());
var a = this.calculateMouseMovement({
e,
isTop: !0,
anywhereWithin: !0,
topBuffer: s
}), l = a.movementX, u = a.movementY;
this.offsetElement(o + l, i + u), this.updateDragStartPosition(e.clientX, e.clientY);
}
}, t.prototype.onMoveEnd = function() {
this.isMoving = !1, this.boundaryEl = null, this.element.classList.remove("ag-moving");
}, t.prototype.setOffsetParent = function() {
this.config.forcePopupParentAsOffsetParent ? this.offsetParent = this.popupService.getPopupParent() : this.offsetParent = this.element.offsetParent;
}, t.prototype.findBoundaryElement = function() {
for (var e = this.element; e; ) {
if (window.getComputedStyle(e).position !== "static")
return e;
e = e.parentElement;
}
return this.element;
}, t.prototype.clearResizeListeners = function() {
for (; this.resizeListeners.length; ) {
var e = this.resizeListeners.pop();
this.dragService.removeDragSource(e);
}
}, t.prototype.destroy = function() {
n.prototype.destroy.call(this), this.moveElementDragListener && this.dragService.removeDragSource(this.moveElementDragListener), this.constrainSizeToAvailableHeight(!1), this.clearResizeListeners(), this.removeResizers();
}, Si([
h("popupService")
], t.prototype, "popupService", void 0), Si([
h("resizeObserverService")
], t.prototype, "resizeObserverService", void 0), Si([
h("dragService")
], t.prototype, "dragService", void 0), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var tp = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Ei = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Io = (
/** @class */
function(n) {
tp(t, n);
function t(e) {
var r = n.call(this) || this;
return r.filterNameKey = e, r.applyActive = !1, r.hidePopup = null, r.debouncePending = !1, r.appliedModel = null, r;
}
return t.prototype.postConstruct = function() {
this.resetTemplate(), this.createManagedBean(new Et(this.getFocusableElement(), {
handleKeyDown: this.handleKeyDown.bind(this)
})), this.positionableFeature = new Cl(this.getPositionableElement(), {
forcePopupParentAsOffsetParent: !0
}), this.createBean(this.positionableFeature);
}, t.prototype.handleKeyDown = function(e) {
}, t.prototype.getFilterTitle = function() {
return this.translate(this.filterNameKey);
}, t.prototype.isFilterActive = function() {
return !!this.appliedModel;
}, t.prototype.resetTemplate = function(e) {
var r = this.getGui();
r && r.removeEventListener("submit", this.onFormSubmit);
var o = (
/* html */
`
<form class="ag-filter-wrapper">
<div class="ag-filter-body-wrapper ag-` + this.getCssIdentifier() + `-body-wrapper" ref="eFilterBody">
` + this.createBodyTemplate() + `
</div>
</form>`
);
this.setTemplate(o, e), r = this.getGui(), r && r.addEventListener("submit", this.onFormSubmit);
}, t.prototype.isReadOnly = function() {
return !!this.providedFilterParams.readOnly;
}, t.prototype.init = function(e) {
var r = this;
this.setParams(e), this.resetUiToDefaults(!0).then(function() {
r.updateUiVisibility(), r.setupOnBtApplyDebounce();
});
}, t.prototype.setParams = function(e) {
this.providedFilterParams = e, this.applyActive = t.isUseApplyButton(e), this.createButtonPanel();
}, t.prototype.createButtonPanel = function() {
var e = this, r = this.providedFilterParams.buttons;
if (!(!r || r.length < 1 || this.isReadOnly())) {
var o = document.createElement("div");
o.classList.add("ag-filter-apply-panel");
var i = function(s) {
var a, l;
switch (s) {
case "apply":
a = e.translate("applyFilter"), l = function(p) {
return e.onBtApply(!1, !1, p);
};
break;
case "clear":
a = e.translate("clearFilter"), l = function() {
return e.onBtClear();
};
break;
case "reset":
a = e.translate("resetFilter"), l = function() {
return e.onBtReset();
};
break;
case "cancel":
a = e.translate("cancelFilter"), l = function(p) {
e.onBtCancel(p);
};
break;
default:
console.warn("AG Grid: Unknown button type specified");
return;
}
var u = s === "apply" ? "submit" : "button", c = de(
/* html */
`<button
type="` + u + `"
ref="` + s + `FilterButton"
class="ag-standard-button ag-filter-apply-panel-button"
>` + a + `
</button>`
);
o.appendChild(c), e.addManagedListener(c, "click", l);
};
Xn(r).forEach(function(s) {
return i(s);
}), this.getGui().appendChild(o);
}
}, t.prototype.getDefaultDebounceMs = function() {
return 0;
}, t.prototype.setupOnBtApplyDebounce = function() {
var e = this, r = t.getDebounceMs(this.providedFilterParams, this.getDefaultDebounceMs()), o = Je(this.checkApplyDebounce.bind(this), r);
this.onBtApplyDebounce = function() {
e.debouncePending = !0, o();
};
}, t.prototype.checkApplyDebounce = function() {
this.debouncePending && (this.debouncePending = !1, this.onBtApply());
}, t.prototype.getModel = function() {
return this.appliedModel ? this.appliedModel : null;
}, t.prototype.setModel = function(e) {
var r = this, o = e != null ? this.setModelIntoUi(e) : this.resetUiToDefaults();
return o.then(function() {
r.updateUiVisibility(), r.applyModel("api");
});
}, t.prototype.onBtCancel = function(e) {
var r = this;
this.resetUiToActiveModel(this.getModel(), function() {
r.handleCancelEnd(e);
});
}, t.prototype.handleCancelEnd = function(e) {
this.providedFilterParams.closeOnApply && this.close(e);
}, t.prototype.resetUiToActiveModel = function(e, r) {
var o = this, i = function() {
o.onUiChanged(!1, "prevent"), r == null || r();
};
e != null ? this.setModelIntoUi(e).then(i) : this.resetUiToDefaults().then(i);
}, t.prototype.onBtClear = function() {
var e = this;
this.resetUiToDefaults().then(function() {
return e.onUiChanged();
});
}, t.prototype.onBtReset = function() {
this.onBtClear(), this.onBtApply();
}, t.prototype.applyModel = function(e) {
var r = this.getModelFromUi();
if (!this.isModelValid(r))
return !1;
var o = this.appliedModel;
return this.appliedModel = r, !this.areModelsEqual(o, r);
}, t.prototype.isModelValid = function(e) {
return !0;
}, t.prototype.onFormSubmit = function(e) {
e.preventDefault();
}, t.prototype.onBtApply = function(e, r, o) {
e === void 0 && (e = !1), r === void 0 && (r = !1), o && o.preventDefault(), this.applyModel(r ? "rowDataUpdated" : "ui") && this.providedFilterParams.filterChangedCallback({ afterFloatingFilter: e, afterDataChange: r });
var i = this.providedFilterParams.closeOnApply;
i && this.applyActive && !e && !r && this.close(o);
}, t.prototype.onNewRowsLoaded = function() {
}, t.prototype.close = function(e) {
if (this.hidePopup) {
var r = e, o = r && r.key, i;
(o === "Enter" || o === "Space") && (i = { keyboardEvent: r }), this.hidePopup(i), this.hidePopup = null;
}
}, t.prototype.onUiChanged = function(e, r) {
if (e === void 0 && (e = !1), this.updateUiVisibility(), this.providedFilterParams.filterModifiedCallback(), this.applyActive && !this.isReadOnly()) {
var o = this.isModelValid(this.getModelFromUi());
Zt(this.getRefElement("applyFilterButton"), !o);
}
e && !r || r === "immediately" ? this.onBtApply(e) : (!this.applyActive && !r || r === "debounce") && this.onBtApplyDebounce();
}, t.prototype.afterGuiAttached = function(e) {
e && (this.hidePopup = e.hidePopup), this.refreshFilterResizer(e == null ? void 0 : e.container);
}, t.prototype.refreshFilterResizer = function(e) {
if (!(!this.positionableFeature || e === "toolPanel")) {
var r = e === "floatingFilter", o = this, i = o.positionableFeature, s = o.gridOptionsService;
r ? (i.restoreLastSize(), i.setResizable(s.is("enableRtl") ? { bottom: !0, bottomLeft: !0, left: !0 } : { bottom: !0, bottomRight: !0, right: !0 })) : (this.positionableFeature.removeSizeFromEl(), this.positionableFeature.setResizable(!1)), this.positionableFeature.constrainSizeToAvailableHeight(!0);
}
}, t.prototype.afterGuiDetached = function() {
this.checkApplyDebounce(), this.positionableFeature && this.positionableFeature.constrainSizeToAvailableHeight(!1);
}, t.getDebounceMs = function(e, r) {
return t.isUseApplyButton(e) ? (e.debounceMs != null && console.warn("AG Grid: debounceMs is ignored when apply button is present"), 0) : e.debounceMs != null ? e.debounceMs : r;
}, t.isUseApplyButton = function(e) {
return !!e.buttons && e.buttons.indexOf("apply") >= 0;
}, t.prototype.destroy = function() {
var e = this.getGui();
e && e.removeEventListener("submit", this.onFormSubmit), this.hidePopup = null, this.positionableFeature && (this.positionableFeature = this.destroyBean(this.positionableFeature)), n.prototype.destroy.call(this);
}, t.prototype.translate = function(e) {
var r = this.localeService.getLocaleTextFunc();
return r(e, gl[e]);
}, t.prototype.getCellValue = function(e) {
var r = this.providedFilterParams, o = r.api, i = r.colDef, s = r.column, a = r.columnApi, l = r.context;
return this.providedFilterParams.valueGetter({
api: o,
colDef: i,
column: s,
columnApi: a,
context: l,
data: e.data,
getValue: function(u) {
return e.data[u];
},
node: e
});
}, t.prototype.getPositionableElement = function() {
return this.eFilterBody;
}, Ei([
h("rowModel")
], t.prototype, "rowModel", void 0), Ei([
P("eFilterBody")
], t.prototype, "eFilterBody", void 0), Ei([
b
], t.prototype, "postConstruct", null), t;
}(W)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var rp = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), op = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, ml = (
/** @class */
function(n) {
rp(t, n);
function t(e, r) {
var o = n.call(this, r) || this;
return o.labelSeparator = "", o.labelAlignment = "left", o.disabled = !1, o.label = "", o.config = e || {}, o;
}
return t.prototype.postConstruct = function() {
this.addCssClass("ag-labeled"), this.eLabel.classList.add("ag-label");
var e = this.config, r = e.labelSeparator, o = e.label, i = e.labelWidth, s = e.labelAlignment;
r != null && this.setLabelSeparator(r), o != null && this.setLabel(o), i != null && this.setLabelWidth(i), this.setLabelAlignment(s || this.labelAlignment), this.refreshLabel();
}, t.prototype.refreshLabel = function() {
Ae(this.eLabel), typeof this.label == "string" ? this.eLabel.innerText = this.label + this.labelSeparator : this.label && this.eLabel.appendChild(this.label), this.label === "" ? (k(this.eLabel, !1), le(this.eLabel, "presentation")) : (k(this.eLabel, !0), le(this.eLabel, null));
}, t.prototype.setLabelSeparator = function(e) {
return this.labelSeparator === e ? this : (this.labelSeparator = e, this.label != null && this.refreshLabel(), this);
}, t.prototype.getLabelId = function() {
return this.eLabel.id = this.eLabel.id || "ag-" + this.getCompId() + "-label", this.eLabel.id;
}, t.prototype.getLabel = function() {
return this.label;
}, t.prototype.setLabel = function(e) {
return this.label === e ? this : (this.label = e, this.refreshLabel(), this);
}, t.prototype.setLabelAlignment = function(e) {
var r = this.getGui(), o = r.classList;
return o.toggle("ag-label-align-left", e === "left"), o.toggle("ag-label-align-right", e === "right"), o.toggle("ag-label-align-top", e === "top"), this;
}, t.prototype.setLabelEllipsis = function(e) {
return this.eLabel.classList.toggle("ag-label-ellipsis", e), this;
}, t.prototype.setLabelWidth = function(e) {
return this.label == null ? this : (jr(this.eLabel, e), this);
}, t.prototype.setDisabled = function(e) {
e = !!e;
var r = this.getGui();
return Zt(r, e), r.classList.toggle("ag-disabled", e), this.disabled = e, this;
}, t.prototype.isDisabled = function() {
return !!this.disabled;
}, op([
b
], t.prototype, "postConstruct", null), t;
}(W)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var ip = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), tr = (
/** @class */
function(n) {
ip(t, n);
function t(e, r, o) {
var i = n.call(this, e, r) || this;
return i.className = o, i;
}
return t.prototype.postConstruct = function() {
n.prototype.postConstruct.call(this), this.className && this.addCssClass(this.className);
}, t.prototype.onValueChange = function(e) {
var r = this;
return this.addManagedListener(this, t.EVENT_CHANGED, function() {
return e(r.getValue());
}), this;
}, t.prototype.getWidth = function() {
return this.getGui().clientWidth;
}, t.prototype.setWidth = function(e) {
return Ve(this.getGui(), e), this;
}, t.prototype.getPreviousValue = function() {
return this.previousValue;
}, t.prototype.getValue = function() {
return this.value;
}, t.prototype.setValue = function(e, r) {
return this.value === e ? this : (this.previousValue = this.value, this.value = e, r || this.dispatchEvent({ type: t.EVENT_CHANGED }), this);
}, t.EVENT_CHANGED = "valueChange", t;
}(ml)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var np = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Xr = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, sp = (
/** @class */
function(n) {
np(t, n);
function t(e, r, o, i) {
var s = n.call(
this,
e,
/* html */
`<div class="ag-picker-field" role="presentation">
<div ref="eLabel"></div>
<div ref="eWrapper"
class="ag-wrapper ag-picker-field-wrapper"
tabIndex="-1"
aria-expanded="false"
` + (i ? 'role="' + i + '"' : "") + `
>
<div ref="eDisplayField" class="ag-picker-field-display"></div>
<div ref="eIcon" class="ag-picker-field-icon" aria-hidden="true"></div>
</div>
</div>`,
r
) || this;
return s.pickerIcon = o, s.isPickerDisplayed = !1, s.isDestroyingPicker = !1, s.skipClick = !1, s;
}
return t.prototype.postConstruct = function() {
var e = this;
n.prototype.postConstruct.call(this);
var r = this.getCompId() + "-display";
this.eDisplayField.setAttribute("id", r), Ba(this.eWrapper, r);
var o = function() {
if (e.skipClick) {
e.skipClick = !1;
return;
}
e.isDisabled() || (e.pickerComponent = e.showPicker());
}, i = this.getGui();
if (this.addManagedListener(i, "mousedown", function(a) {
!e.skipClick && e.pickerComponent && e.pickerComponent.isAlive() && nr(e.pickerComponent.getGui()) && i.contains(a.target) && (e.skipClick = !0);
}), this.addManagedListener(i, "keydown", function(a) {
switch (a.key) {
case _.UP:
case _.DOWN:
case _.ENTER:
case _.SPACE:
o();
case _.ESCAPE:
e.isPickerDisplayed && a.preventDefault();
break;
}
}), this.addManagedListener(this.eWrapper, "click", o), this.addManagedListener(this.eLabel, "click", o), this.pickerIcon) {
var s = oe(this.pickerIcon, this.gridOptionsService);
s && this.eIcon.appendChild(s);
}
}, t.prototype.refreshLabel = function() {
O(this.getLabel()) ? Ln(this.eWrapper, this.getLabelId()) : this.eWrapper.removeAttribute("aria-labelledby"), n.prototype.refreshLabel.call(this);
}, t.prototype.setAriaLabel = function(e) {
return xt(this.eWrapper, e), this;
}, t.prototype.setInputWidth = function(e) {
return jr(this.eWrapper, e), this;
}, t.prototype.getFocusableElement = function() {
return this.eWrapper;
}, Xr([
P("eLabel")
], t.prototype, "eLabel", void 0), Xr([
P("eWrapper")
], t.prototype, "eWrapper", void 0), Xr([
P("eDisplayField")
], t.prototype, "eDisplayField", void 0), Xr([
P("eIcon")
], t.prototype, "eIcon", void 0), t;
}(tr)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var ap = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), lp = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, ms = (
/** @class */
function(n) {
ap(t, n);
function t(e) {
e === void 0 && (e = "default");
var r = n.call(
this,
/* html */
'<div class="ag-list ag-' + e + '-list" role="listbox"></div>'
) || this;
return r.cssIdentifier = e, r.options = [], r.itemEls = [], r;
}
return t.prototype.init = function() {
this.addManagedListener(this.getGui(), "keydown", this.handleKeyDown.bind(this));
}, t.prototype.handleKeyDown = function(e) {
var r = e.key;
switch (r) {
case _.ENTER:
if (!this.highlightedEl)
this.setValue(this.getValue());
else {
var o = this.itemEls.indexOf(this.highlightedEl);
this.setValueByIndex(o);
}
break;
case _.DOWN:
case _.UP:
var i = r === _.DOWN, s = void 0;
if (e.preventDefault(), !this.highlightedEl)
s = this.itemEls[i ? 0 : this.itemEls.length - 1];
else {
var a = this.itemEls.indexOf(this.highlightedEl), l = a + (i ? 1 : -1);
l = Math.min(Math.max(l, 0), this.itemEls.length - 1), s = this.itemEls[l];
}
this.highlightItem(s);
break;
}
}, t.prototype.addOptions = function(e) {
var r = this;
return e.forEach(function(o) {
return r.addOption(o);
}), this;
}, t.prototype.addOption = function(e) {
var r = e.value, o = e.text, i = tt(o || r);
return this.options.push({ value: r, text: i }), this.renderOption(r, i), this.updateIndices(), this;
}, t.prototype.updateIndices = function() {
var e = this.getGui().querySelectorAll(".ag-list-item");
e.forEach(function(r, o) {
xn(r, o + 1), In(r, e.length);
});
}, t.prototype.renderOption = function(e, r) {
var o = this, i = document.createElement("div");
le(i, "option"), i.classList.add("ag-list-item", "ag-" + this.cssIdentifier + "-list-item"), i.innerHTML = "<span>" + r + "</span>", i.tabIndex = -1, this.itemEls.push(i), this.addManagedListener(i, "mouseover", function() {
return o.highlightItem(i);
}), this.addManagedListener(i, "mouseleave", function() {
return o.clearHighlighted();
}), this.addManagedListener(i, "click", function() {
return o.setValue(e);
}), this.getGui().appendChild(i);
}, t.prototype.setValue = function(e, r) {
if (this.value === e)
return this.fireItemSelected(), this;
if (e == null)
return this.reset(), this;
var o = this.options.findIndex(function(s) {
return s.value === e;
});
if (o !== -1) {
var i = this.options[o];
this.value = i.value, this.displayValue = i.text != null ? i.text : i.value, this.highlightItem(this.itemEls[o]), r || this.fireChangeEvent();
}
return this;
}, t.prototype.setValueByIndex = function(e) {
return this.setValue(this.options[e].value);
}, t.prototype.getValue = function() {
return this.value;
}, t.prototype.getDisplayValue = function() {
return this.displayValue;
}, t.prototype.refreshHighlighted = function() {
var e = this;
this.clearHighlighted();
var r = this.options.findIndex(function(o) {
return o.value === e.value;
});
r !== -1 && this.highlightItem(this.itemEls[r]);
}, t.prototype.reset = function() {
this.value = null, this.displayValue = null, this.clearHighlighted(), this.fireChangeEvent();
}, t.prototype.highlightItem = function(e) {
e.offsetParent && (this.clearHighlighted(), this.highlightedEl = e, this.highlightedEl.classList.add(t.ACTIVE_CLASS), Jt(this.highlightedEl, !0), this.highlightedEl.focus());
}, t.prototype.clearHighlighted = function() {
!this.highlightedEl || !this.highlightedEl.offsetParent || (this.highlightedEl.classList.remove(t.ACTIVE_CLASS), Jt(this.highlightedEl, !1), this.highlightedEl = null);
}, t.prototype.fireChangeEvent = function() {
this.dispatchEvent({ type: tr.EVENT_CHANGED }), this.fireItemSelected();
}, t.prototype.fireItemSelected = function() {
this.dispatchEvent({ type: t.EVENT_ITEM_SELECTED });
}, t.EVENT_ITEM_SELECTED = "selectedItem", t.ACTIVE_CLASS = "ag-active-item", lp([
b
], t.prototype, "init", null), t;
}(W)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var up = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), ws = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, xo = (
/** @class */
function(n) {
up(t, n);
function t(e) {
return n.call(this, e, "ag-select", "smallDown", "listbox") || this;
}
return t.prototype.init = function() {
var e = this;
this.listComponent = this.createBean(new ms("select")), this.listComponent.setParentComponent(this), this.eWrapper.tabIndex = 0, this.listComponent.addManagedListener(this.listComponent, ms.EVENT_ITEM_SELECTED, function() {
e.hideList && e.hideList(), e.dispatchEvent({ type: t.EVENT_ITEM_SELECTED });
}), this.listComponent.addManagedListener(this.listComponent, tr.EVENT_CHANGED, function() {
e.setValue(e.listComponent.getValue(), !1, !0), e.hideList && e.hideList();
});
}, t.prototype.showPicker = function() {
var e = this, r = this.listComponent.getGui(), o = this.gridOptionsService.getDocument(), i = this.addManagedListener(o.body, "wheel", function(u) {
!r.contains(u.target) && e.hideList && e.hideList();
}), s = this.addManagedListener(r, "focusout", function(u) {
!r.contains(u.relatedTarget) && e.hideList && e.hideList();
}), a = this.localeService.getLocaleTextFunc(), l = this.popupService.addPopup({
modal: !0,
eChild: r,
closeOnEsc: !0,
closedCallback: function() {
e.hideList = null, e.isPickerDisplayed = !1, s(), i(), e.isAlive() && (ke(e.eWrapper, !1), e.getFocusableElement().focus());
},
ariaLabel: a("ariaLabelSelectField", "Select Field")
});
return l && (this.hideList = l.hideFunc), this.isPickerDisplayed = !0, jr(r, ri(this.eWrapper)), ke(this.eWrapper, !0), r.style.maxHeight = Wr(this.popupService.getPopupParent()) + "px", r.style.position = "absolute", this.popupService.positionPopupByComponent({
type: "ag-list",
eventSource: this.eWrapper,
ePopup: r,
position: "under",
keepWithinBounds: !0
}), this.listComponent.refreshHighlighted(), this.listComponent;
}, t.prototype.addOptions = function(e) {
var r = this;
return e.forEach(function(o) {
return r.addOption(o);
}), this;
}, t.prototype.addOption = function(e) {
return this.listComponent.addOption(e), this;
}, t.prototype.setValue = function(e, r, o) {
if (this.value === e)
return this;
o || this.listComponent.setValue(e, !0);
var i = this.listComponent.getValue();
return i === this.getValue() ? this : (this.eDisplayField.innerHTML = this.listComponent.getDisplayValue(), n.prototype.setValue.call(this, e, r));
}, t.prototype.destroy = function() {
this.hideList && this.hideList(), this.destroyBean(this.listComponent), n.prototype.destroy.call(this);
}, t.EVENT_ITEM_SELECTED = "selectedItem", ws([
h("popupService")
], t.prototype, "popupService", void 0), ws([
b
], t.prototype, "init", null), t;
}(sp)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var cp = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), _i = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, nt = (
/** @class */
function(n) {
cp(t, n);
function t(e, r, o, i) {
o === void 0 && (o = "text"), i === void 0 && (i = "input");
var s = n.call(
this,
e,
/* html */
`
<div role="presentation">
<div ref="eLabel" class="ag-input-field-label"></div>
<div ref="eWrapper" class="ag-wrapper ag-input-wrapper" role="presentation">
<` + i + ' ref="eInput" class="ag-input-field-input"></' + i + `>
</div>
</div>`,
r
) || this;
return s.inputType = o, s.displayFieldTag = i, s;
}
return t.prototype.postConstruct = function() {
n.prototype.postConstruct.call(this), this.setInputType(), this.eLabel.classList.add(this.className + "-label"), this.eWrapper.classList.add(this.className + "-input-wrapper"), this.eInput.classList.add(this.className + "-input"), this.addCssClass("ag-input-field"), this.eInput.id = this.eInput.id || "ag-" + this.getCompId() + "-input";
var e = this.config, r = e.width, o = e.value;
r != null && this.setWidth(r), o != null && this.setValue(o), this.addInputListeners();
}, t.prototype.refreshLabel = function() {
O(this.getLabel()) ? Ln(this.eInput, this.getLabelId()) : this.eInput.removeAttribute("aria-labelledby"), n.prototype.refreshLabel.call(this);
}, t.prototype.addInputListeners = function() {
var e = this;
this.addManagedListener(this.eInput, "input", function(r) {
return e.setValue(r.target.value);
});
}, t.prototype.setInputType = function() {
this.displayFieldTag === "input" && this.eInput.setAttribute("type", this.inputType);
}, t.prototype.getInputElement = function() {
return this.eInput;
}, t.prototype.setInputWidth = function(e) {
return jr(this.eWrapper, e), this;
}, t.prototype.setInputName = function(e) {
return this.getInputElement().setAttribute("name", e), this;
}, t.prototype.getFocusableElement = function() {
return this.eInput;
}, t.prototype.setMaxLength = function(e) {
var r = this.eInput;
return r.maxLength = e, this;
}, t.prototype.setInputPlaceholder = function(e) {
return Pr(this.eInput, "placeholder", e), this;
}, t.prototype.setInputAriaLabel = function(e) {
return xt(this.eInput, e), this;
}, t.prototype.setDisabled = function(e) {
return Zt(this.eInput, e), n.prototype.setDisabled.call(this, e);
}, _i([
P("eLabel")
], t.prototype, "eLabel", void 0), _i([
P("eWrapper")
], t.prototype, "eWrapper", void 0), _i([
P("eInput")
], t.prototype, "eInput", void 0), t;
}(tr)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var pp = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Gr = (
/** @class */
function(n) {
pp(t, n);
function t(e, r, o) {
r === void 0 && (r = "ag-checkbox"), o === void 0 && (o = "checkbox");
var i = n.call(this, e, r, o) || this;
return i.labelAlignment = "right", i.selected = !1, i.readOnly = !1, i.passive = !1, i;
}
return t.prototype.addInputListeners = function() {
this.addManagedListener(this.eInput, "click", this.onCheckboxClick.bind(this)), this.addManagedListener(this.eLabel, "click", this.toggle.bind(this));
}, t.prototype.getNextValue = function() {
return this.selected === void 0 ? !0 : !this.selected;
}, t.prototype.setPassive = function(e) {
this.passive = e;
}, t.prototype.isReadOnly = function() {
return this.readOnly;
}, t.prototype.setReadOnly = function(e) {
this.eWrapper.classList.toggle("ag-disabled", e), this.eInput.disabled = e, this.readOnly = e;
}, t.prototype.setDisabled = function(e) {
return this.eWrapper.classList.toggle("ag-disabled", e), n.prototype.setDisabled.call(this, e);
}, t.prototype.toggle = function() {
if (!this.eInput.disabled) {
var e = this.isSelected(), r = this.getNextValue();
this.passive ? this.dispatchChange(r, e) : this.setValue(r);
}
}, t.prototype.getValue = function() {
return this.isSelected();
}, t.prototype.setValue = function(e, r) {
return this.refreshSelectedClass(e), this.setSelected(e, r), this;
}, t.prototype.setName = function(e) {
var r = this.getInputElement();
return r.name = e, this;
}, t.prototype.isSelected = function() {
return this.selected;
}, t.prototype.setSelected = function(e, r) {
this.isSelected() !== e && (this.previousValue = this.isSelected(), e = this.selected = typeof e == "boolean" ? e : void 0, this.eInput.checked = e, this.eInput.indeterminate = e === void 0, r || this.dispatchChange(this.selected, this.previousValue));
}, t.prototype.dispatchChange = function(e, r, o) {
this.dispatchEvent({ type: t.EVENT_CHANGED, selected: e, previousValue: r, event: o });
var i = this.getInputElement(), s = {
type: v.EVENT_CHECKBOX_CHANGED,
id: i.id,
name: i.name,
selected: e,
previousValue: r
};
this.eventService.dispatchEvent(s);
}, t.prototype.onCheckboxClick = function(e) {
if (!(this.passive || this.eInput.disabled)) {
var r = this.isSelected(), o = this.selected = e.target.checked;
this.refreshSelectedClass(o), this.dispatchChange(o, r, e);
}
}, t.prototype.refreshSelectedClass = function(e) {
this.eWrapper.classList.toggle("ag-checked", e === !0), this.eWrapper.classList.toggle("ag-indeterminate", e == null);
}, t;
}(nt)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var dp = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), wl = (
/** @class */
function(n) {
dp(t, n);
function t(e) {
return n.call(this, e, "ag-radio-button", "radio") || this;
}
return t.prototype.isSelected = function() {
return this.eInput.checked;
}, t.prototype.toggle = function() {
this.eInput.disabled || this.isSelected() || this.setValue(!0);
}, t.prototype.addInputListeners = function() {
n.prototype.addInputListeners.call(this), this.addManagedListener(this.eventService, v.EVENT_CHECKBOX_CHANGED, this.onChange.bind(this));
}, t.prototype.onChange = function(e) {
e.selected && e.name && this.eInput.name && this.eInput.name === e.name && e.id && this.eInput.id !== e.id && this.setValue(!1, !0);
}, t;
}(Gr)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var hp = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), fp = function(n, t) {
var e = typeof Symbol == "function" && n[Symbol.iterator];
if (!e)
return n;
var r = e.call(n), o, i = [], s;
try {
for (; (t === void 0 || t-- > 0) && !(o = r.next()).done; )
i.push(o.value);
} catch (a) {
s = { error: a };
} finally {
try {
o && !o.done && (e = r.return) && e.call(r);
} finally {
if (s)
throw s.error;
}
}
return i;
}, vp = function() {
for (var n = [], t = 0; t < arguments.length; t++)
n = n.concat(fp(arguments[t]));
return n;
}, Zn = (
/** @class */
function() {
function n(t, e) {
this.localeService = t, this.optionsFactory = e;
}
return n.prototype.getModelAsString = function(t) {
var e = this;
if (!t)
return null;
var r = t.operator != null, o = this.localeService.getLocaleTextFunc();
if (r) {
var i = t, s = i.conditions;
if (!s) {
var a = i.condition1, l = i.condition2;
s = [a, l];
}
var u = s.map(function(m) {
return e.getModelAsString(m);
}), c = i.operator === "AND" ? "andCondition" : "orCondition";
return u.join(" " + o(c, gl[c]) + " ");
} else {
if (t.type === ee.BLANK || t.type === ee.NOT_BLANK)
return o(t.type, t.type);
var p = t, d = this.optionsFactory.getCustomOption(p.type), f = d || {}, g = f.displayKey, y = f.displayName, C = f.numberOfInputs;
return g && y && C === 0 ? (o(g, y), y) : this.conditionToString(p, d);
}
}, n;
}()
), ee = (
/** @class */
function(n) {
hp(t, n);
function t() {
var e = n !== null && n.apply(this, arguments) || this;
return e.eTypes = [], e.eJoinOperatorPanels = [], e.eJoinOperatorsAnd = [], e.eJoinOperatorsOr = [], e.eConditionBodies = [], e.listener = function() {
return e.onUiChanged();
}, e.lastUiCompletePosition = null, e.joinOperatorId = 0, e;
}
return t.prototype.getNumberOfInputs = function(e) {
var r = this.optionsFactory.getCustomOption(e);
if (r) {
var o = r.numberOfInputs;
return o ?? 1;
}
var i = [
t.EMPTY,
t.NOT_BLANK,
t.BLANK
];
return e && i.indexOf(e) >= 0 ? 0 : e === t.IN_RANGE ? 2 : 1;
}, t.prototype.onFloatingFilterChanged = function(e, r) {
this.setTypeFromFloatingFilter(e), this.setValueFromFloatingFilter(r), this.onUiChanged(!0);
}, t.prototype.setTypeFromFloatingFilter = function(e) {
var r = this;
this.eTypes.forEach(function(o, i) {
i === 0 ? o.setValue(e, !0) : o.setValue(r.optionsFactory.getDefaultOption(), !0);
});
}, t.prototype.getModelFromUi = function() {
var e = this.getUiCompleteConditions();
return e.length === 0 ? null : this.maxNumConditions > 1 && e.length > 1 ? {
filterType: this.getFilterType(),
operator: this.getJoinOperator(),
condition1: e[0],
condition2: e[1],
conditions: e
} : e[0];
}, t.prototype.getConditionTypes = function() {
return this.eTypes.map(function(e) {
return e.getValue();
});
}, t.prototype.getConditionType = function(e) {
return this.eTypes[e].getValue();
}, t.prototype.getJoinOperator = function() {
return this.eJoinOperatorsOr.length === 0 ? this.defaultJoinOperator : this.eJoinOperatorsOr[0].getValue() === !0 ? "OR" : "AND";
}, t.prototype.areModelsEqual = function(e, r) {
var o = this;
if (!e && !r)
return !0;
if (!e && r || e && !r)
return !1;
var i = !e.operator, s = !r.operator, a = !i && s || i && !s;
if (a)
return !1;
var l;
if (i) {
var u = e, c = r;
l = this.areSimpleModelsEqual(u, c);
} else {
var p = e, d = r;
l = p.operator === d.operator && gt(p.conditions, d.conditions, function(f, g) {
return o.areSimpleModelsEqual(f, g);
});
}
return l;
}, t.prototype.setModelIntoUi = function(e) {
var r = this, o = e.operator;
if (o) {
var i = e;
i.conditions || (i.conditions = [
i.condition1,
i.condition2
]);
var s = this.validateAndUpdateConditions(i.conditions), a = this.getNumConditions();
if (s < a)
this.removeConditionsAndOperators(s);
else if (s > a)
for (var l = a; l < s; l++)
this.createJoinOperatorPanel(), this.createOption();
var u = i.operator === "OR";
this.eJoinOperatorsAnd.forEach(function(p) {
return p.setValue(!u, !0);
}), this.eJoinOperatorsOr.forEach(function(p) {
return p.setValue(u, !0);
}), i.conditions.forEach(function(p, d) {
r.eTypes[d].setValue(p.type, !0), r.setConditionIntoUi(p, d);
});
} else {
var c = e;
this.getNumConditions() > 1 && this.removeConditionsAndOperators(1), this.eTypes[0].setValue(c.type, !0), this.setConditionIntoUi(c, 0);
}
return this.lastUiCompletePosition = this.getNumConditions() - 1, this.createMissingConditionsAndOperators(), this.onUiChanged(), Ne.resolve();
}, t.prototype.validateAndUpdateConditions = function(e) {
var r = e.length;
return r > this.maxNumConditions && (e.splice(this.maxNumConditions), K(function() {
return console.warn('AG Grid: Filter Model contains more conditions than "filterParams.maxNumConditions". Additional conditions have been ignored.');
}, "simpleFilterSetModelMaxNumConditions"), r = this.maxNumConditions), r;
}, t.prototype.doesFilterPass = function(e) {
var r = this, o, i = this.getModel();
if (i == null)
return !0;
var s = i.operator, a = [];
if (s) {
var l = i;
a.push.apply(a, vp((o = l.conditions) !== null && o !== void 0 ? o : []));
} else
a.push(i);
var u = s && s === "OR" ? "some" : "every";
return a[u](function(c) {
return r.individualConditionPasses(e, c);
});
}, t.prototype.setParams = function(e) {
n.prototype.setParams.call(this, e), this.setNumConditions(e), this.defaultJoinOperator = this.getDefaultJoinOperator(e.defaultJoinOperator), this.filterPlaceholder = e.filterPlaceholder, this.optionsFactory = new vl(), this.optionsFactory.init(e, this.getDefaultFilterOptions()), this.createOption(), this.createMissingConditionsAndOperators();
}, t.prototype.setNumConditions = function(e) {
var r, o;
e.suppressAndOrCondition != null && K(function() {
return console.warn('AG Grid: Since v29.2 "filterParams.suppressAndOrCondition" is deprecated. Use "filterParams.maxNumConditions = 1" instead.');
}, "simpleFilterSuppressAndOrCondition"), e.alwaysShowBothConditions != null && K(function() {
return console.warn('AG Grid: Since v29.2 "filterParams.alwaysShowBothConditions" is deprecated. Use "filterParams.numAlwaysVisibleConditions = 2" instead.');
}, "simpleFilterAlwaysShowBothConditions"), this.maxNumConditions = (r = e.maxNumConditions) !== null && r !== void 0 ? r : e.suppressAndOrCondition ? 1 : 2, this.maxNumConditions < 1 && (K(function() {
return console.warn('AG Grid: "filterParams.maxNumConditions" must be greater than or equal to zero.');
}, "simpleFilterMaxNumConditions"), this.maxNumConditions = 1), this.numAlwaysVisibleConditions = (o = e.numAlwaysVisibleConditions) !== null && o !== void 0 ? o : e.alwaysShowBothConditions ? 2 : 1, this.numAlwaysVisibleConditions < 1 && (K(function() {
return console.warn('AG Grid: "filterParams.numAlwaysVisibleConditions" must be greater than or equal to zero.');
}, "simpleFilterNumAlwaysVisibleConditions"), this.numAlwaysVisibleConditions = 1), this.numAlwaysVisibleConditions > this.maxNumConditions && (K(function() {
return console.warn('AG Grid: "filterParams.numAlwaysVisibleConditions" cannot be greater than "filterParams.maxNumConditions".');
}, "simpleFilterNumAlwaysVisibleGreaterThanMaxNumConditions"), this.numAlwaysVisibleConditions = this.maxNumConditions);
}, t.prototype.createOption = function() {
var e = this, r = this.createManagedBean(new xo());
this.eTypes.push(r), r.addCssClass("ag-filter-select"), this.eFilterBody.appendChild(r.getGui());
var o = this.createValueElement();
this.eConditionBodies.push(o), this.eFilterBody.appendChild(o), this.putOptionsIntoDropdown(r), this.resetType(r);
var i = this.getNumConditions() - 1;
this.forEachPositionInput(i, function(s) {
return e.resetInput(s);
}), this.addChangedListeners(r, i);
}, t.prototype.createJoinOperatorPanel = function() {
var e = document.createElement("div");
this.eJoinOperatorPanels.push(e), e.classList.add("ag-filter-condition");
var r = this.createJoinOperator(this.eJoinOperatorsAnd, e, "and"), o = this.createJoinOperator(this.eJoinOperatorsOr, e, "or");
this.eFilterBody.appendChild(e);
var i = this.eJoinOperatorPanels.length - 1, s = this.joinOperatorId++;
this.resetJoinOperatorAnd(r, i, s), this.resetJoinOperatorOr(o, i, s), this.isReadOnly() || (r.onValueChange(this.listener), o.onValueChange(this.listener));
}, t.prototype.createJoinOperator = function(e, r, o) {
var i = this.createManagedBean(new wl());
return e.push(i), i.addCssClass("ag-filter-condition-operator"), i.addCssClass("ag-filter-condition-operator-" + o), r.appendChild(i.getGui()), i;
}, t.prototype.getDefaultJoinOperator = function(e) {
return e === "AND" || e === "OR" ? e : "AND";
}, t.prototype.putOptionsIntoDropdown = function(e) {
var r = this, o = this.optionsFactory.getFilterOptions();
o.forEach(function(i) {
var s = typeof i == "string" ? r.createBoilerplateListOption(i) : r.createCustomListOption(i);
e.addOption(s);
}), e.setDisabled(o.length <= 1);
}, t.prototype.createBoilerplateListOption = function(e) {
return { value: e, text: this.translate(e) };
}, t.prototype.createCustomListOption = function(e) {
var r = e.displayKey, o = this.optionsFactory.getCustomOption(e.displayKey);
return {
value: r,
text: o ? this.localeService.getLocaleTextFunc()(o.displayKey, o.displayName) : this.translate(r)
};
}, t.prototype.isAllowTwoConditions = function() {
return this.maxNumConditions >= 2;
}, t.prototype.createBodyTemplate = function() {
return "";
}, t.prototype.getCssIdentifier = function() {
return "simple-filter";
}, t.prototype.updateUiVisibility = function() {
var e = this.getJoinOperator();
this.updateNumConditions(), this.updateConditionStatusesAndValues(this.lastUiCompletePosition, e);
}, t.prototype.updateNumConditions = function() {
for (var e, r = -1, o = !0, i = 0; i < this.getNumConditions(); i++)
this.isConditionUiComplete(i) ? r = i : o = !1;
if (this.shouldAddNewConditionAtEnd(o))
this.createJoinOperatorPanel(), this.createOption();
else {
var s = (e = this.lastUiCompletePosition) !== null && e !== void 0 ? e : this.getNumConditions() - 2;
if (r < s) {
this.removeConditionsAndOperators(s + 1);
var a = r + 1, l = s - a;
l > 0 && this.removeConditionsAndOperators(a, l), this.createMissingConditionsAndOperators();
}
}
this.lastUiCompletePosition = r;
}, t.prototype.updateConditionStatusesAndValues = function(e, r) {
var o = this;
this.eTypes.forEach(function(s, a) {
var l = o.isConditionDisabled(a, e), u = a === 1 ? [s, o.eJoinOperatorPanels[0], o.eJoinOperatorsAnd[0], o.eJoinOperatorsOr[0]] : [s];
u.forEach(function(c) {
c instanceof nt || c instanceof xo ? c.setDisabled(l) : Zt(c, l);
});
}), this.eConditionBodies.forEach(function(s, a) {
k(s, o.isConditionBodyVisible(a));
});
var i = (r ?? this.getJoinOperator()) === "OR";
this.eJoinOperatorsAnd.forEach(function(s, a) {
s.setValue(!i, !0);
}), this.eJoinOperatorsOr.forEach(function(s, a) {
s.setValue(i, !0);
}), this.forEachInput(function(s, a, l, u) {
o.setElementDisplayed(s, a < u), o.setElementDisabled(s, o.isConditionDisabled(l, e));
}), this.resetPlaceholder();
}, t.prototype.shouldAddNewConditionAtEnd = function(e) {
return e && this.getNumConditions() < this.maxNumConditions && !this.isReadOnly();
}, t.prototype.removeConditionsAndOperators = function(e, r) {
if (!(e >= this.getNumConditions())) {
this.removeComponents(this.eTypes, e, r), this.removeElements(this.eConditionBodies, e, r), this.removeValueElements(e, r);
var o = Math.max(e - 1, 0);
this.removeElements(this.eJoinOperatorPanels, o, r), this.removeComponents(this.eJoinOperatorsAnd, o, r), this.removeComponents(this.eJoinOperatorsOr, o, r);
}
}, t.prototype.removeElements = function(e, r, o) {
var i = this.removeItems(e, r, o);
i.forEach(function(s) {
return st(s);
});
}, t.prototype.removeComponents = function(e, r, o) {
var i = this, s = this.removeItems(e, r, o);
s.forEach(function(a) {
st(a.getGui()), i.destroyBean(a);
});
}, t.prototype.removeItems = function(e, r, o) {
return o == null ? e.splice(r) : e.splice(r, o);
}, t.prototype.afterGuiAttached = function(e) {
if (n.prototype.afterGuiAttached.call(this, e), this.resetPlaceholder(), !e || !e.suppressFocus && !this.isReadOnly()) {
var r = this.getInputs(0)[0];
if (!r)
return;
r instanceof nt && r.getInputElement().focus();
}
}, t.prototype.afterGuiDetached = function() {
n.prototype.afterGuiDetached.call(this);
var e = this.getModel();
this.areModelsEqual(e, this.getModelFromUi()) || this.resetUiToActiveModel(e);
for (var r = -1, o = -1, i = !1, s = this.getJoinOperator(), a = this.getNumConditions() - 1; a >= 0; a--)
if (this.isConditionUiComplete(a))
r === -1 && (r = a, o = a);
else {
var l = a >= this.numAlwaysVisibleConditions && !this.isConditionUiComplete(a - 1), u = a < r;
(l || u) && (this.removeConditionsAndOperators(a, 1), i = !0, u && o--);
}
var c = !1;
this.getNumConditions() < this.numAlwaysVisibleConditions && (this.createMissingConditionsAndOperators(), c = !0), this.shouldAddNewConditionAtEnd(o === this.getNumConditions() - 1) && (this.createJoinOperatorPanel(), this.createOption(), c = !0), c && this.updateConditionStatusesAndValues(o, s), i && this.updateJoinOperatorsDisabled(), this.lastUiCompletePosition = o;
}, t.prototype.getPlaceholderText = function(e, r) {
var o = this.translate(e);
if (Jo(this.filterPlaceholder)) {
var i = this.filterPlaceholder, s = this.eTypes[r].getValue(), a = this.translate(s);
o = i({
filterOptionKey: s,
filterOption: a,
placeholder: o
});
} else
typeof this.filterPlaceholder == "string" && (o = this.filterPlaceholder);
return o;
}, t.prototype.resetPlaceholder = function() {
var e = this, r = this.localeService.getLocaleTextFunc();
this.forEachInput(function(o, i, s, a) {
if (o instanceof nt) {
var l = i === 0 && a > 1 ? "inRangeStart" : i === 0 ? "filterOoo" : "inRangeEnd", u = i === 0 && a > 1 ? r("ariaFilterFromValue", "Filter from value") : i === 0 ? r("ariaFilterValue", "Filter Value") : r("ariaFilterToValue", "Filter to Value");
o.setInputPlaceholder(e.getPlaceholderText(l, s)), o.setInputAriaLabel(u);
}
});
}, t.prototype.setElementValue = function(e, r) {
e instanceof nt && e.setValue(r != null ? String(r) : null, !0);
}, t.prototype.setElementDisplayed = function(e, r) {
e instanceof W && k(e.getGui(), r);
}, t.prototype.setElementDisabled = function(e, r) {
e instanceof W && Zt(e.getGui(), r);
}, t.prototype.attachElementOnChange = function(e, r) {
e instanceof nt && e.onValueChange(r);
}, t.prototype.forEachInput = function(e) {
var r = this;
this.getConditionTypes().forEach(function(o, i) {
r.forEachPositionTypeInput(i, o, e);
});
}, t.prototype.forEachPositionInput = function(e, r) {
var o = this.getConditionType(e);
this.forEachPositionTypeInput(e, o, r);
}, t.prototype.forEachPositionTypeInput = function(e, r, o) {
for (var i = this.getNumberOfInputs(r), s = this.getInputs(e), a = 0; a < s.length; a++) {
var l = s[a];
l != null && o(l, a, e, i);
}
}, t.prototype.isConditionDisabled = function(e, r) {
return this.isReadOnly() ? !0 : e === 0 ? !1 : e > r + 1;
}, t.prototype.isConditionBodyVisible = function(e) {
var r = this.getConditionType(e), o = this.getNumberOfInputs(r);
return o > 0;
}, t.prototype.isConditionUiComplete = function(e) {
if (e >= this.getNumConditions())
return !1;
var r = this.getConditionType(e);
return !(r === t.EMPTY || this.getValues(e).some(function(o) {
return o == null;
}));
}, t.prototype.getNumConditions = function() {
return this.eTypes.length;
}, t.prototype.getUiCompleteConditions = function() {
for (var e = [], r = 0; r < this.getNumConditions(); r++)
this.isConditionUiComplete(r) && e.push(this.createCondition(r));
return e;
}, t.prototype.createMissingConditionsAndOperators = function() {
if (!this.isReadOnly())
for (var e = this.getNumConditions(); e < this.numAlwaysVisibleConditions; e++)
this.createJoinOperatorPanel(), this.createOption();
}, t.prototype.resetUiToDefaults = function(e) {
var r = this;
return this.removeConditionsAndOperators(this.isReadOnly() ? 1 : this.numAlwaysVisibleConditions), this.eTypes.forEach(function(o) {
return r.resetType(o);
}), this.eJoinOperatorsAnd.forEach(function(o, i) {
return r.resetJoinOperatorAnd(o, i, r.joinOperatorId + i);
}), this.eJoinOperatorsOr.forEach(function(o, i) {
return r.resetJoinOperatorOr(o, i, r.joinOperatorId + i);
}), this.joinOperatorId++, this.forEachInput(function(o) {
return r.resetInput(o);
}), this.resetPlaceholder(), this.createMissingConditionsAndOperators(), this.lastUiCompletePosition = null, e || this.onUiChanged(), Ne.resolve();
}, t.prototype.resetType = function(e) {
var r = this.localeService.getLocaleTextFunc(), o = r("ariaFilteringOperator", "Filtering operator");
e.setValue(this.optionsFactory.getDefaultOption(), !0).setAriaLabel(o).setDisabled(this.isReadOnly());
}, t.prototype.resetJoinOperatorAnd = function(e, r, o) {
this.resetJoinOperator(e, r, this.isDefaultOperator("AND"), this.translate("andCondition"), o);
}, t.prototype.resetJoinOperatorOr = function(e, r, o) {
this.resetJoinOperator(e, r, this.isDefaultOperator("OR"), this.translate("orCondition"), o);
}, t.prototype.resetJoinOperator = function(e, r, o, i, s) {
this.updateJoinOperatorDisabled(e.setValue(o, !0).setName("ag-simple-filter-and-or-" + this.getCompId() + "-" + s).setLabel(i), r);
}, t.prototype.updateJoinOperatorsDisabled = function() {
var e = this;
this.eJoinOperatorsAnd.forEach(function(r, o) {
return e.updateJoinOperatorDisabled(r, o);
}), this.eJoinOperatorsOr.forEach(function(r, o) {
return e.updateJoinOperatorDisabled(r, o);
});
}, t.prototype.updateJoinOperatorDisabled = function(e, r) {
e.setDisabled(this.isReadOnly() || r > 0);
}, t.prototype.resetInput = function(e) {
this.setElementValue(e, null), this.setElementDisabled(e, this.isReadOnly());
}, t.prototype.setConditionIntoUi = function(e, r) {
var o = this, i = this.mapValuesFromModel(e);
this.forEachInput(function(s, a, l, u) {
l === r && o.setElementValue(s, i[a] != null ? i[a] : null);
});
}, t.prototype.setValueFromFloatingFilter = function(e) {
var r = this;
this.forEachInput(function(o, i, s, a) {
r.setElementValue(o, i === 0 && s === 0 ? e : null);
});
}, t.prototype.isDefaultOperator = function(e) {
return e === this.defaultJoinOperator;
}, t.prototype.addChangedListeners = function(e, r) {
var o = this;
this.isReadOnly() || (e.onValueChange(this.listener), this.forEachPositionInput(r, function(i) {
o.attachElementOnChange(i, o.listener);
}));
}, t.prototype.individualConditionPasses = function(e, r) {
var o = this.getCellValue(e.node), i = this.mapValuesFromModel(r), s = this.optionsFactory.getCustomOption(r.type), a = this.evaluateCustomFilter(s, i, o);
return a ?? (o == null ? this.evaluateNullValue(r.type) : this.evaluateNonNullValue(i, o, r, e));
}, t.prototype.evaluateCustomFilter = function(e, r, o) {
if (e != null) {
var i = e.predicate;
if (i != null && !r.some(function(s) {
return s == null;
}))
return i(r, o);
}
}, t.prototype.isBlank = function(e) {
return e == null || typeof e == "string" && e.trim().length === 0;
}, t.EMPTY = "empty", t.BLANK = "blank", t.NOT_BLANK = "notBlank", t.EQUALS = "equals", t.NOT_EQUAL = "notEqual", t.LESS_THAN = "lessThan", t.LESS_THAN_OR_EQUAL = "lessThanOrEqual", t.GREATER_THAN = "greaterThan", t.GREATER_THAN_OR_EQUAL = "greaterThanOrEqual", t.IN_RANGE = "inRange", t.CONTAINS = "contains", t.NOT_CONTAINS = "notContains", t.STARTS_WITH = "startsWith", t.ENDS_WITH = "endsWith", t;
}(Io)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var gp = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), ae = (
/** @class */
function(n) {
gp(t, n);
function t() {
return n !== null && n.apply(this, arguments) || this;
}
return t.prototype.setParams = function(e) {
n.prototype.setParams.call(this, e), this.scalarFilterParams = e;
}, t.prototype.evaluateNullValue = function(e) {
switch (e) {
case t.EQUALS:
case t.NOT_EQUAL:
if (this.scalarFilterParams.includeBlanksInEquals)
return !0;
break;
case t.GREATER_THAN:
case t.GREATER_THAN_OR_EQUAL:
if (this.scalarFilterParams.includeBlanksInGreaterThan)
return !0;
break;
case t.LESS_THAN:
case t.LESS_THAN_OR_EQUAL:
if (this.scalarFilterParams.includeBlanksInLessThan)
return !0;
break;
case t.IN_RANGE:
if (this.scalarFilterParams.includeBlanksInRange)
return !0;
break;
case t.BLANK:
return !0;
case t.NOT_BLANK:
return !1;
}
return !1;
}, t.prototype.evaluateNonNullValue = function(e, r, o) {
var i = this.comparator(), s = e[0] != null ? i(e[0], r) : 0;
switch (o.type) {
case t.EQUALS:
return s === 0;
case t.NOT_EQUAL:
return s !== 0;
case t.GREATER_THAN:
return s > 0;
case t.GREATER_THAN_OR_EQUAL:
return s >= 0;
case t.LESS_THAN:
return s < 0;
case t.LESS_THAN_OR_EQUAL:
return s <= 0;
case t.IN_RANGE: {
var a = i(e[1], r);
return this.scalarFilterParams.inRangeInclusive ? s >= 0 && a <= 0 : s > 0 && a < 0;
}
case t.BLANK:
return this.isBlank(r);
case t.NOT_BLANK:
return !this.isBlank(r);
default:
return console.warn('AG Grid: Unexpected type of filter "' + o.type + '", it looks like the filter was configured with incorrect Filter Options'), !0;
}
}, t;
}(ee)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Sl = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), mn = function() {
return mn = Object.assign || function(n) {
for (var t, e = 1, r = arguments.length; e < r; e++) {
t = arguments[e];
for (var o in t)
Object.prototype.hasOwnProperty.call(t, o) && (n[o] = t[o]);
}
return n;
}, mn.apply(this, arguments);
}, yp = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Ss = 1e3, Es = 1 / 0, El = (
/** @class */
function(n) {
Sl(t, n);
function t(e, r, o) {
var i = n.call(this, r, o) || this;
return i.dateFilterParams = e, i;
}
return t.prototype.conditionToString = function(e, r) {
var o = e.type, i = (r || {}).numberOfInputs, s = o == ee.IN_RANGE || i === 2, a = mt(e.dateFrom), l = mt(e.dateTo), u = this.dateFilterParams.inRangeFloatingFilterDateFormat;
if (s) {
var c = a !== null ? Ro(a, u) : "null", p = l !== null ? Ro(l, u) : "null";
return c + "-" + p;
}
return a != null ? Ro(a, u) : "" + o;
}, t;
}(Zn)
), _l = (
/** @class */
function(n) {
Sl(t, n);
function t() {
var e = n.call(this, "dateFilter") || this;
return e.eConditionPanelsFrom = [], e.eConditionPanelsTo = [], e.dateConditionFromComps = [], e.dateConditionToComps = [], e.minValidYear = Ss, e.maxValidYear = Es, e;
}
return t.prototype.afterGuiAttached = function(e) {
n.prototype.afterGuiAttached.call(this, e), this.dateConditionFromComps[0].afterGuiAttached(e);
}, t.prototype.mapValuesFromModel = function(e) {
var r = e || {}, o = r.dateFrom, i = r.dateTo, s = r.type;
return [
o && mt(o) || null,
i && mt(i) || null
].slice(0, this.getNumberOfInputs(s));
}, t.prototype.comparator = function() {
return this.dateFilterParams.comparator ? this.dateFilterParams.comparator : this.defaultComparator.bind(this);
}, t.prototype.defaultComparator = function(e, r) {
var o = r;
return r == null || o < e ? -1 : o > e ? 1 : 0;
}, t.prototype.setParams = function(e) {
this.dateFilterParams = e, n.prototype.setParams.call(this, e);
var r = function(o, i) {
if (e[o] != null)
if (isNaN(e[o]))
console.warn("AG Grid: DateFilter " + o + " is not a number");
else
return e[o] == null ? i : Number(e[o]);
return i;
};
this.minValidYear = r("minValidYear", Ss), this.maxValidYear = r("maxValidYear", Es), this.minValidYear > this.maxValidYear && console.warn("AG Grid: DateFilter minValidYear should be <= maxValidYear"), this.filterModelFormatter = new El(this.dateFilterParams, this.localeService, this.optionsFactory);
}, t.prototype.createDateCompWrapper = function(e) {
var r = this, o = new fl(this.getContext(), this.userComponentFactory, {
onDateChanged: function() {
return r.onUiChanged();
},
filterParams: this.dateFilterParams
}, e);
return this.addDestroyFunc(function() {
return o.destroy();
}), o;
}, t.prototype.setElementValue = function(e, r) {
e.setDate(r);
}, t.prototype.setElementDisplayed = function(e, r) {
e.setDisplayed(r);
}, t.prototype.setElementDisabled = function(e, r) {
e.setDisabled(r);
}, t.prototype.getDefaultFilterOptions = function() {
return t.DEFAULT_FILTER_OPTIONS;
}, t.prototype.createValueElement = function() {
var e = document.createElement("div");
return e.classList.add("ag-filter-body"), this.createFromToElement(e, this.eConditionPanelsFrom, this.dateConditionFromComps, "from"), this.createFromToElement(e, this.eConditionPanelsTo, this.dateConditionToComps, "to"), e;
}, t.prototype.createFromToElement = function(e, r, o, i) {
var s = document.createElement("div");
s.classList.add("ag-filter-" + i), s.classList.add("ag-filter-date-" + i), r.push(s), e.appendChild(s), o.push(this.createDateCompWrapper(s));
}, t.prototype.removeValueElements = function(e, r) {
this.removeDateComps(this.dateConditionFromComps, e, r), this.removeDateComps(this.dateConditionToComps, e, r), this.removeItems(this.eConditionPanelsFrom, e, r), this.removeItems(this.eConditionPanelsTo, e, r);
}, t.prototype.removeDateComps = function(e, r, o) {
var i = this.removeItems(e, r, o);
i.forEach(function(s) {
return s.destroy();
});
}, t.prototype.isConditionUiComplete = function(e) {
var r = this;
if (!n.prototype.isConditionUiComplete.call(this, e))
return !1;
var o = function(s) {
return s != null && s.getUTCFullYear() >= r.minValidYear && s.getUTCFullYear() <= r.maxValidYear;
}, i = !0;
return this.forEachInput(function(s, a, l, u) {
l !== e || !i || a >= u || (i = i && o(s.getDate()));
}), i;
}, t.prototype.areSimpleModelsEqual = function(e, r) {
return e.dateFrom === r.dateFrom && e.dateTo === r.dateTo && e.type === r.type;
}, t.prototype.getFilterType = function() {
return "date";
}, t.prototype.createCondition = function(e) {
var r = this.getConditionType(e), o = {}, i = this.getValues(e);
return i.length > 0 && (o.dateFrom = Ir(i[0])), i.length > 1 && (o.dateTo = Ir(i[1])), mn({ dateFrom: null, dateTo: null, filterType: this.getFilterType(), type: r }, o);
}, t.prototype.resetPlaceholder = function() {
var e = this.localeService.getLocaleTextFunc(), r = this.translate("dateFormatOoo"), o = e("ariaFilterValue", "Filter Value");
this.forEachInput(function(i) {
i.setInputPlaceholder(r), i.setInputAriaLabel(o);
});
}, t.prototype.getInputs = function(e) {
return e >= this.dateConditionFromComps.length ? [null, null] : [this.dateConditionFromComps[e], this.dateConditionToComps[e]];
}, t.prototype.getValues = function(e) {
var r = [];
return this.forEachPositionInput(e, function(o, i, s, a) {
i < a && r.push(o.getDate());
}), r;
}, t.prototype.getModelAsString = function(e) {
var r;
return (r = this.filterModelFormatter.getModelAsString(e)) !== null && r !== void 0 ? r : "";
}, t.DEFAULT_FILTER_OPTIONS = [
ae.EQUALS,
ae.GREATER_THAN,
ae.LESS_THAN,
ae.NOT_EQUAL,
ae.IN_RANGE,
ae.BLANK,
ae.NOT_BLANK
], yp([
h("userComponentFactory")
], t.prototype, "userComponentFactory", void 0), t;
}(ae)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Cp = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Rl = (
/** @class */
function(n) {
Cp(t, n);
function t() {
return n !== null && n.apply(this, arguments) || this;
}
return t.prototype.getDefaultDebounceMs = function() {
return 0;
}, t.prototype.destroy = function() {
n.prototype.destroy.call(this);
}, t.prototype.isEventFromFloatingFilter = function(e) {
return e && e.afterFloatingFilter;
}, t.prototype.isEventFromDataChange = function(e) {
return e == null ? void 0 : e.afterDataChange;
}, t.prototype.getLastType = function() {
return this.lastType;
}, t.prototype.isReadOnly = function() {
return this.readOnly;
}, t.prototype.setLastTypeFromModel = function(e) {
if (!e) {
this.lastType = this.optionsFactory.getDefaultOption();
return;
}
var r = e.operator, o;
if (r) {
var i = e;
o = i.conditions[0];
} else
o = e;
this.lastType = o.type;
}, t.prototype.canWeEditAfterModelFromParentFilter = function(e) {
if (!e)
return this.isTypeEditable(this.lastType);
var r = e.operator;
if (r)
return !1;
var o = e;
return this.isTypeEditable(o.type);
}, t.prototype.init = function(e) {
this.optionsFactory = new vl(), this.optionsFactory.init(e.filterParams, this.getDefaultFilterOptions()), this.lastType = this.optionsFactory.getDefaultOption(), this.readOnly = !!e.filterParams.readOnly;
var r = this.isTypeEditable(this.lastType);
this.setEditable(r);
}, t.prototype.doesFilterHaveSingleInput = function(e) {
var r = this.optionsFactory.getCustomOption(e), o = (r || {}).numberOfInputs;
return o == null || o == 1;
}, t.prototype.isTypeEditable = function(e) {
var r = [
ee.IN_RANGE,
ee.EMPTY,
ee.BLANK,
ee.NOT_BLANK
];
return !!e && !this.isReadOnly() && this.doesFilterHaveSingleInput(e) && r.indexOf(e) < 0;
}, t;
}(W)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var mp = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Ri = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, wp = (
/** @class */
function(n) {
mp(t, n);
function t() {
return n.call(
this,
/* html */
`
<div class="ag-floating-filter-input" role="presentation">
<ag-input-text-field ref="eReadOnlyText"></ag-input-text-field>
<div ref="eDateWrapper" style="display: flex;"></div>
</div>`
) || this;
}
return t.prototype.getDefaultFilterOptions = function() {
return _l.DEFAULT_FILTER_OPTIONS;
}, t.prototype.init = function(e) {
n.prototype.init.call(this, e), this.params = e, this.filterParams = e.filterParams, this.createDateComponent();
var r = this.localeService.getLocaleTextFunc();
this.eReadOnlyText.setDisabled(!0).setInputAriaLabel(r("ariaDateFilterInput", "Date Filter Input")), this.filterModelFormatter = new El(this.filterParams, this.localeService, this.optionsFactory);
}, t.prototype.setEditable = function(e) {
k(this.eDateWrapper, e), k(this.eReadOnlyText.getGui(), !e);
}, t.prototype.onParentModelChanged = function(e, r) {
if (!(this.isEventFromFloatingFilter(r) || this.isEventFromDataChange(r))) {
n.prototype.setLastTypeFromModel.call(this, e);
var o = !this.isReadOnly() && this.canWeEditAfterModelFromParentFilter(e);
if (this.setEditable(o), o) {
if (e) {
var i = e;
this.dateComp.setDate(mt(i.dateFrom));
} else
this.dateComp.setDate(null);
this.eReadOnlyText.setValue("");
} else
this.eReadOnlyText.setValue(this.filterModelFormatter.getModelAsString(e)), this.dateComp.setDate(null);
}
}, t.prototype.onDateChanged = function() {
var e = this, r = this.dateComp.getDate(), o = Ir(r);
this.params.parentFilterInstance(function(i) {
if (i) {
var s = mt(o);
i.onFloatingFilterChanged(e.getLastType() || null, s);
}
});
}, t.prototype.createDateComponent = function() {
var e = this, r = Io.getDebounceMs(this.params.filterParams, this.getDefaultDebounceMs()), o = {
onDateChanged: Je(this.onDateChanged.bind(this), r),
filterParams: this.params.column.getColDef().filterParams
};
this.dateComp = new fl(this.getContext(), this.userComponentFactory, o, this.eDateWrapper), this.addDestroyFunc(function() {
return e.dateComp.destroy();
});
}, t.prototype.getFilterModelFormatter = function() {
return this.filterModelFormatter;
}, Ri([
h("userComponentFactory")
], t.prototype, "userComponentFactory", void 0), Ri([
P("eReadOnlyText")
], t.prototype, "eReadOnlyText", void 0), Ri([
P("eDateWrapper")
], t.prototype, "eDateWrapper", void 0), t;
}(Rl)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Sp = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Ep = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, _p = (
/** @class */
function(n) {
Sp(t, n);
function t() {
return n.call(
this,
/* html */
`
<div class="ag-filter-filter">
<ag-input-text-field class="ag-date-filter" ref="eDateInput"></ag-input-text-field>
</div>`
) || this;
}
return t.prototype.destroy = function() {
n.prototype.destroy.call(this);
}, t.prototype.init = function(e) {
var r = this, o = this.gridOptionsService.getDocument(), i = this.eDateInput.getInputElement(), s = this.shouldUseBrowserDatePicker(e);
s && (i.type = "date");
var a = s && rt();
this.addManagedListener(i, "mousedown", function() {
r.eDateInput.isDisabled() || a || i.focus();
}), this.addManagedListener(i, "input", function(p) {
p.target === o.activeElement && (r.eDateInput.isDisabled() || e.onDateChanged());
});
var l = e.filterParams || {}, u = l.minValidYear, c = l.maxValidYear;
u && (i.min = u + "-01-01"), c && (i.max = c + "-12-31");
}, t.prototype.getDate = function() {
return mt(this.eDateInput.getValue());
}, t.prototype.setDate = function(e) {
this.eDateInput.setValue(Ir(e, !1));
}, t.prototype.setInputPlaceholder = function(e) {
this.eDateInput.setInputPlaceholder(e);
}, t.prototype.setDisabled = function(e) {
this.eDateInput.setDisabled(e);
}, t.prototype.afterGuiAttached = function(e) {
(!e || !e.suppressFocus) && this.eDateInput.getInputElement().focus();
}, t.prototype.shouldUseBrowserDatePicker = function(e) {
return e.filterParams && e.filterParams.browserDatePicker != null ? e.filterParams.browserDatePicker : Br() || Vn() || rt() && Hn() >= 14.1;
}, Ep([
P("eDateInput")
], t.prototype, "eDateInput", void 0), t;
}(W)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Rp = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), sr = (
/** @class */
function(n) {
Rp(t, n);
function t(e, r, o) {
return r === void 0 && (r = "ag-text-field"), o === void 0 && (o = "text"), n.call(this, e, r, o) || this;
}
return t.prototype.postConstruct = function() {
n.prototype.postConstruct.call(this), this.config.allowedCharPattern && this.preventDisallowedCharacters();
}, t.prototype.setValue = function(e, r) {
var o = n.prototype.setValue.call(this, e, r);
return this.eInput.value !== e && (this.eInput.value = O(e) ? e : ""), o;
}, t.prototype.preventDisallowedCharacters = function() {
var e = new RegExp("[" + this.config.allowedCharPattern + "]"), r = function(o) {
o.ctrlKey || o.metaKey || o.key && !e.test(o.key) && o.preventDefault();
};
this.addManagedListener(this.eInput, "keypress", r), this.addManagedListener(this.eInput, "paste", function(o) {
var i, s = (i = o.clipboardData) === null || i === void 0 ? void 0 : i.getData("text");
s && s.split("").some(function(a) {
return !e.test(a);
}) && o.preventDefault();
});
}, t;
}(nt)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Op = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), es = (
/** @class */
function(n) {
Op(t, n);
function t(e) {
return n.call(this, e, "ag-number-field", "number") || this;
}
return t.prototype.postConstruct = function() {
var e = this;
n.prototype.postConstruct.call(this), this.addManagedListener(this.eInput, "blur", function() {
var r = parseFloat(e.eInput.value), o = isNaN(r) ? "" : e.normalizeValue(r.toString());
e.value !== o && e.setValue(o);
}), this.addManagedListener(this.eInput, "wheel", this.onWheel.bind(this)), this.eInput.step = "any";
}, t.prototype.onWheel = function(e) {
document.activeElement === this.eInput && e.preventDefault();
}, t.prototype.normalizeValue = function(e) {
if (e === "")
return "";
this.precision && (e = this.adjustPrecision(e));
var r = parseFloat(e);
return this.min != null && r < this.min ? e = this.min.toString() : this.max != null && r > this.max && (e = this.max.toString()), e;
}, t.prototype.adjustPrecision = function(e) {
if (this.precision) {
var r = parseFloat(e).toFixed(this.precision);
e = parseFloat(r).toString();
}
return e;
}, t.prototype.setMin = function(e) {
return this.min === e ? this : (this.min = e, Pr(this.eInput, "min", e), this);
}, t.prototype.setMax = function(e) {
return this.max === e ? this : (this.max = e, Pr(this.eInput, "max", e), this);
}, t.prototype.setPrecision = function(e) {
return this.precision = e, this;
}, t.prototype.setStep = function(e) {
return this.step === e ? this : (this.step = e, Pr(this.eInput, "step", e), this);
}, t.prototype.setValue = function(e, r) {
if (e != null) {
e = this.adjustPrecision(e);
var o = this.normalizeValue(e);
if (e != o)
return this;
}
return n.prototype.setValue.call(this, e, r);
}, t;
}(sr)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Ol = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Tl = (
/** @class */
function(n) {
Ol(t, n);
function t() {
return n !== null && n.apply(this, arguments) || this;
}
return t.prototype.conditionToString = function(e, r) {
var o = (r || {}).numberOfInputs, i = e.type == ee.IN_RANGE || o === 2;
return i ? e.filter + "-" + e.filterTo : e.filter != null ? "" + e.filter : "" + e.type;
}, t;
}(Zn)
);
function bl(n) {
var t = (n ?? {}).allowedCharPattern;
return t || (Br() ? null : "\\d\\-\\.");
}
var Pl = (
/** @class */
function(n) {
Ol(t, n);
function t() {
var e = n.call(this, "numberFilter") || this;
return e.eValuesFrom = [], e.eValuesTo = [], e;
}
return t.prototype.mapValuesFromModel = function(e) {
var r = e || {}, o = r.filter, i = r.filterTo, s = r.type;
return [
this.processValue(o),
this.processValue(i)
].slice(0, this.getNumberOfInputs(s));
}, t.prototype.getDefaultDebounceMs = function() {
return 500;
}, t.prototype.comparator = function() {
return function(e, r) {
return e === r ? 0 : e < r ? 1 : -1;
};
}, t.prototype.setParams = function(e) {
this.numberFilterParams = e, n.prototype.setParams.call(this, e), this.filterModelFormatter = new Tl(this.localeService, this.optionsFactory);
}, t.prototype.getDefaultFilterOptions = function() {
return t.DEFAULT_FILTER_OPTIONS;
}, t.prototype.createValueElement = function() {
var e = bl(this.numberFilterParams), r = document.createElement("div");
return r.classList.add("ag-filter-body"), le(r, "presentation"), this.createFromToElement(r, this.eValuesFrom, "from", e), this.createFromToElement(r, this.eValuesTo, "to", e), r;
}, t.prototype.createFromToElement = function(e, r, o, i) {
var s = this.createManagedBean(i ? new sr({ allowedCharPattern: i }) : new es());
s.addCssClass("ag-filter-" + o), s.addCssClass("ag-filter-filter"), r.push(s), e.appendChild(s.getGui());
}, t.prototype.removeValueElements = function(e, r) {
this.removeComponents(this.eValuesFrom, e, r), this.removeComponents(this.eValuesTo, e, r);
}, t.prototype.getValues = function(e) {
var r = this, o = [];
return this.forEachPositionInput(e, function(i, s, a, l) {
s < l && o.push(r.processValue(r.stringToFloat(i.getValue())));
}), o;
}, t.prototype.areSimpleModelsEqual = function(e, r) {
return e.filter === r.filter && e.filterTo === r.filterTo && e.type === r.type;
}, t.prototype.getFilterType = function() {
return "number";
}, t.prototype.processValue = function(e) {
return e == null || isNaN(e) ? null : e;
}, t.prototype.stringToFloat = function(e) {
if (typeof e == "number")
return e;
var r = Ct(e);
return r != null && r.trim() === "" && (r = null), this.numberFilterParams.numberParser ? this.numberFilterParams.numberParser(r) : r == null || r.trim() === "-" ? null : parseFloat(r);
}, t.prototype.createCondition = function(e) {
var r = this.getConditionType(e), o = {
filterType: this.getFilterType(),
type: r
}, i = this.getValues(e);
return i.length > 0 && (o.filter = i[0]), i.length > 1 && (o.filterTo = i[1]), o;
}, t.prototype.getInputs = function(e) {
return e >= this.eValuesFrom.length ? [null, null] : [this.eValuesFrom[e], this.eValuesTo[e]];
}, t.prototype.getModelAsString = function(e) {
var r;
return (r = this.filterModelFormatter.getModelAsString(e)) !== null && r !== void 0 ? r : "";
}, t.DEFAULT_FILTER_OPTIONS = [
ae.EQUALS,
ae.NOT_EQUAL,
ae.LESS_THAN,
ae.LESS_THAN_OR_EQUAL,
ae.GREATER_THAN,
ae.GREATER_THAN_OR_EQUAL,
ae.IN_RANGE,
ae.BLANK,
ae.NOT_BLANK
], t;
}(ae)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Dl = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), No = function() {
return No = Object.assign || function(n) {
for (var t, e = 1, r = arguments.length; e < r; e++) {
t = arguments[e];
for (var o in t)
Object.prototype.hasOwnProperty.call(t, o) && (n[o] = t[o]);
}
return n;
}, No.apply(this, arguments);
}, Al = (
/** @class */
function(n) {
Dl(t, n);
function t() {
return n !== null && n.apply(this, arguments) || this;
}
return t.prototype.conditionToString = function(e, r) {
var o = (r || {}).numberOfInputs, i = e.type == ee.IN_RANGE || o === 2;
return i ? e.filter + "-" + e.filterTo : e.filter != null ? "" + e.filter : "" + e.type;
}, t;
}(Zn)
), ts = (
/** @class */
function(n) {
Dl(t, n);
function t() {
var e = n.call(this, "textFilter") || this;
return e.eValuesFrom = [], e.eValuesTo = [], e;
}
return t.trimInput = function(e) {
var r = e && e.trim();
return r === "" ? e : r;
}, t.prototype.getDefaultDebounceMs = function() {
return 500;
}, t.prototype.setParams = function(e) {
this.textFilterParams = e, n.prototype.setParams.call(this, e), this.matcher = this.getTextMatcher(), this.formatter = this.textFilterParams.textFormatter || (this.textFilterParams.caseSensitive ? t.DEFAULT_FORMATTER : t.DEFAULT_LOWERCASE_FORMATTER), this.filterModelFormatter = new Al(this.localeService, this.optionsFactory);
}, t.prototype.getTextMatcher = function() {
var e = this.textFilterParams.textCustomComparator;
return e ? (G.doOnce(function() {
return console.warn("AG Grid - textCustomComparator is deprecated, use textMatcher instead.");
}, "textCustomComparator.deprecated"), function(r) {
var o = r.filterOption, i = r.value, s = r.filterText;
return e(o, i, s);
}) : this.textFilterParams.textMatcher || t.DEFAULT_MATCHER;
}, t.prototype.createCondition = function(e) {
var r = this.getConditionType(e), o = {
filterType: this.getFilterType(),
type: r
}, i = this.getValues(e);
return i.length > 0 && (o.filter = i[0]), i.length > 1 && (o.filterTo = i[1]), o;
}, t.prototype.getFilterType = function() {
return "text";
}, t.prototype.areSimpleModelsEqual = function(e, r) {
return e.filter === r.filter && e.filterTo === r.filterTo && e.type === r.type;
}, t.prototype.getInputs = function(e) {
return e >= this.eValuesFrom.length ? [null, null] : [this.eValuesFrom[e], this.eValuesTo[e]];
}, t.prototype.getValues = function(e) {
var r = this, o = [];
return this.forEachPositionInput(e, function(i, s, a, l) {
if (s < l) {
var u = Ct(i.getValue()), c = (r.textFilterParams.trimInput ? t.trimInput(u) : u) || null;
o.push(c), i.setValue(c, !0);
}
}), o;
}, t.prototype.getDefaultFilterOptions = function() {
return t.DEFAULT_FILTER_OPTIONS;
}, t.prototype.createValueElement = function() {
var e = document.createElement("div");
return e.classList.add("ag-filter-body"), le(e, "presentation"), this.createFromToElement(e, this.eValuesFrom, "from"), this.createFromToElement(e, this.eValuesTo, "to"), e;
}, t.prototype.createFromToElement = function(e, r, o) {
var i = this.createManagedBean(new sr());
i.addCssClass("ag-filter-" + o), i.addCssClass("ag-filter-filter"), r.push(i), e.appendChild(i.getGui());
}, t.prototype.removeValueElements = function(e, r) {
this.removeComponents(this.eValuesFrom, e, r), this.removeComponents(this.eValuesTo, e, r);
}, t.prototype.mapValuesFromModel = function(e) {
var r = e || {}, o = r.filter, i = r.filterTo, s = r.type;
return [
o || null,
i || null
].slice(0, this.getNumberOfInputs(s));
}, t.prototype.evaluateNullValue = function(e) {
var r = [
ee.NOT_EQUAL,
ee.NOT_CONTAINS,
ee.BLANK
];
return e ? r.indexOf(e) >= 0 : !1;
}, t.prototype.evaluateNonNullValue = function(e, r, o, i) {
var s = this, a = e.map(function(m) {
return s.formatter(m);
}) || [], l = this.formatter(r), u = this.textFilterParams, c = u.api, p = u.colDef, d = u.column, f = u.columnApi, g = u.context, y = u.textFormatter;
if (o.type === ee.BLANK)
return this.isBlank(r);
if (o.type === ee.NOT_BLANK)
return !this.isBlank(r);
var C = {
api: c,
colDef: p,
column: d,
columnApi: f,
context: g,
node: i.node,
data: i.data,
filterOption: o.type,
value: l,
textFormatter: y
};
return a.some(function(m) {
return s.matcher(No(No({}, C), { filterText: m }));
});
}, t.prototype.getModelAsString = function(e) {
var r;
return (r = this.filterModelFormatter.getModelAsString(e)) !== null && r !== void 0 ? r : "";
}, t.DEFAULT_FILTER_OPTIONS = [
ee.CONTAINS,
ee.NOT_CONTAINS,
ee.EQUALS,
ee.NOT_EQUAL,
ee.STARTS_WITH,
ee.ENDS_WITH,
ee.BLANK,
ee.NOT_BLANK
], t.DEFAULT_FORMATTER = function(e) {
return e;
}, t.DEFAULT_LOWERCASE_FORMATTER = function(e) {
return e == null ? null : e.toString().toLowerCase();
}, t.DEFAULT_MATCHER = function(e) {
var r = e.filterOption, o = e.value, i = e.filterText;
if (i == null)
return !1;
switch (r) {
case t.CONTAINS:
return o.indexOf(i) >= 0;
case t.NOT_CONTAINS:
return o.indexOf(i) < 0;
case t.EQUALS:
return o === i;
case t.NOT_EQUAL:
return o != i;
case t.STARTS_WITH:
return o.indexOf(i) === 0;
case t.ENDS_WITH:
var s = o.lastIndexOf(i);
return s >= 0 && s === o.length - i.length;
default:
return !1;
}
}, t;
}(ee)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Fl = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Oi = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Ll = (
/** @class */
function(n) {
Fl(t, n);
function t(e) {
var r = n.call(this) || this;
return r.params = e, r;
}
return t.prototype.setupGui = function(e) {
this.eFloatingFilterTextInput = this.createManagedBean(new sr(this.params.config)), this.eFloatingFilterTextInput.setInputAriaLabel(this.params.ariaLabel), e.appendChild(this.eFloatingFilterTextInput.getGui());
}, t.prototype.setEditable = function(e) {
this.eFloatingFilterTextInput.setDisabled(!e);
}, t.prototype.getValue = function() {
return this.eFloatingFilterTextInput.getValue();
}, t.prototype.setValue = function(e, r) {
this.eFloatingFilterTextInput.setValue(e, r);
}, t.prototype.addValueChangedListener = function(e) {
var r = this.eFloatingFilterTextInput.getGui();
this.addManagedListener(r, "input", e), this.addManagedListener(r, "keypress", e), this.addManagedListener(r, "keydown", e);
}, t;
}(T)
), Ml = (
/** @class */
function(n) {
Fl(t, n);
function t() {
return n !== null && n.apply(this, arguments) || this;
}
return t.prototype.postConstruct = function() {
this.setTemplate(
/* html */
`
<div class="ag-floating-filter-input" role="presentation" ref="eFloatingFilterInputContainer"></div>
`
);
}, t.prototype.getDefaultDebounceMs = function() {
return 500;
}, t.prototype.onParentModelChanged = function(e, r) {
this.isEventFromFloatingFilter(r) || this.isEventFromDataChange(r) || (this.setLastTypeFromModel(e), this.setEditable(this.canWeEditAfterModelFromParentFilter(e)), this.floatingFilterInputService.setValue(this.getFilterModelFormatter().getModelAsString(e)));
}, t.prototype.init = function(e) {
this.params = e;
var r = this.columnModel.getDisplayNameForColumn(e.column, "header", !0), o = this.localeService.getLocaleTextFunc(), i = r + " " + o("ariaFilterInput", "Filter Input");
if (this.floatingFilterInputService = this.createFloatingFilterInputService(i), this.floatingFilterInputService.setupGui(this.eFloatingFilterInputContainer), n.prototype.init.call(this, e), this.applyActive = Io.isUseApplyButton(this.params.filterParams), !this.isReadOnly()) {
var s = Io.getDebounceMs(this.params.filterParams, this.getDefaultDebounceMs()), a = Je(this.syncUpWithParentFilter.bind(this), s);
this.floatingFilterInputService.addValueChangedListener(a);
}
}, t.prototype.syncUpWithParentFilter = function(e) {
var r = this, o = e.key === _.ENTER;
if (!(this.applyActive && !o)) {
var i = this.floatingFilterInputService.getValue();
this.params.filterParams.trimInput && (i = ts.trimInput(i), this.floatingFilterInputService.setValue(i, !0)), this.params.parentFilterInstance(function(s) {
s && s.onFloatingFilterChanged(r.getLastType() || null, i || null);
});
}
}, t.prototype.setEditable = function(e) {
this.floatingFilterInputService.setEditable(e);
}, Oi([
h("columnModel")
], t.prototype, "columnModel", void 0), Oi([
P("eFloatingFilterInputContainer")
], t.prototype, "eFloatingFilterInputContainer", void 0), Oi([
b
], t.prototype, "postConstruct", null), t;
}(Rl)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Il = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Tp = (
/** @class */
function(n) {
Il(t, n);
function t(e) {
var r = n.call(this) || this;
return r.params = e, r.numberInputActive = !0, r;
}
return t.prototype.setupGui = function(e) {
this.eFloatingFilterNumberInput = this.createManagedBean(new es()), this.eFloatingFilterTextInput = this.createManagedBean(new sr()), this.eFloatingFilterTextInput.setDisabled(!0), this.eFloatingFilterNumberInput.setInputAriaLabel(this.params.ariaLabel), this.eFloatingFilterTextInput.setInputAriaLabel(this.params.ariaLabel), e.appendChild(this.eFloatingFilterNumberInput.getGui()), e.appendChild(this.eFloatingFilterTextInput.getGui());
}, t.prototype.setEditable = function(e) {
this.numberInputActive = e, this.eFloatingFilterNumberInput.setDisplayed(this.numberInputActive), this.eFloatingFilterTextInput.setDisplayed(!this.numberInputActive);
}, t.prototype.getValue = function() {
return this.getActiveInputElement().getValue();
}, t.prototype.setValue = function(e, r) {
this.getActiveInputElement().setValue(e, r);
}, t.prototype.getActiveInputElement = function() {
return this.numberInputActive ? this.eFloatingFilterNumberInput : this.eFloatingFilterTextInput;
}, t.prototype.addValueChangedListener = function(e) {
this.setupListeners(this.eFloatingFilterNumberInput.getGui(), e), this.setupListeners(this.eFloatingFilterTextInput.getGui(), e);
}, t.prototype.setupListeners = function(e, r) {
this.addManagedListener(e, "input", r), this.addManagedListener(e, "keypress", r), this.addManagedListener(e, "keydown", r);
}, t;
}(T)
), bp = (
/** @class */
function(n) {
Il(t, n);
function t() {
return n !== null && n.apply(this, arguments) || this;
}
return t.prototype.init = function(e) {
n.prototype.init.call(this, e), this.filterModelFormatter = new Tl(this.localeService, this.optionsFactory);
}, t.prototype.getDefaultFilterOptions = function() {
return Pl.DEFAULT_FILTER_OPTIONS;
}, t.prototype.getFilterModelFormatter = function() {
return this.filterModelFormatter;
}, t.prototype.createFloatingFilterInputService = function(e) {
var r = bl(this.params.filterParams);
return r ? this.createManagedBean(new Ll({
config: { allowedCharPattern: r },
ariaLabel: e
})) : this.createManagedBean(new Tp({ ariaLabel: e }));
}, t;
}(Ml)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Pp = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Dp = (
/** @class */
function(n) {
Pp(t, n);
function t() {
return n !== null && n.apply(this, arguments) || this;
}
return t.prototype.init = function(e) {
n.prototype.init.call(this, e), this.filterModelFormatter = new Al(this.localeService, this.optionsFactory);
}, t.prototype.getDefaultFilterOptions = function() {
return ts.DEFAULT_FILTER_OPTIONS;
}, t.prototype.getFilterModelFormatter = function() {
return this.filterModelFormatter;
}, t.prototype.createFloatingFilterInputService = function(e) {
return this.createManagedBean(new Ll({
ariaLabel: e
}));
}, t;
}(Ml)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var De = (
/** @class */
function() {
function n(t, e) {
var r = this;
e === void 0 && (e = !1), this.destroyFuncs = [], this.touching = !1, this.eventService = new wt(), this.eElement = t, this.preventMouseClick = e;
var o = this.onTouchStart.bind(this), i = this.onTouchMove.bind(this), s = this.onTouchEnd.bind(this);
this.eElement.addEventListener("touchstart", o, { passive: !0 }), this.eElement.addEventListener("touchmove", i, { passive: !0 }), this.eElement.addEventListener("touchend", s, { passive: !1 }), this.destroyFuncs.push(function() {
r.eElement.removeEventListener("touchstart", o, { passive: !0 }), r.eElement.removeEventListener("touchmove", i, { passive: !0 }), r.eElement.removeEventListener("touchend", s, { passive: !1 });
});
}
return n.prototype.getActiveTouch = function(t) {
for (var e = 0; e < t.length; e++) {
var r = t[e].identifier === this.touchStart.identifier;
if (r)
return t[e];
}
return null;
}, n.prototype.addEventListener = function(t, e) {
this.eventService.addEventListener(t, e);
}, n.prototype.removeEventListener = function(t, e) {
this.eventService.removeEventListener(t, e);
}, n.prototype.onTouchStart = function(t) {
var e = this;
if (!this.touching) {
this.touchStart = t.touches[0], this.touching = !0, this.moved = !1;
var r = this.touchStart;
window.setTimeout(function() {
var o = e.touchStart === r;
if (e.touching && o && !e.moved) {
e.moved = !0;
var i = {
type: n.EVENT_LONG_TAP,
touchStart: e.touchStart,
touchEvent: t
};
e.eventService.dispatchEvent(i);
}
}, 500);
}
}, n.prototype.onTouchMove = function(t) {
if (this.touching) {
var e = this.getActiveTouch(t.touches);
if (e) {
var r = !Qn(e, this.touchStart, 4);
r && (this.moved = !0);
}
}
}, n.prototype.onTouchEnd = function(t) {
if (this.touching) {
if (!this.moved) {
var e = {
type: n.EVENT_TAP,
touchStart: this.touchStart
};
this.eventService.dispatchEvent(e), this.checkForDoubleTap();
}
this.preventMouseClick && t.cancelable && t.preventDefault(), this.touching = !1;
}
}, n.prototype.checkForDoubleTap = function() {
var t = (/* @__PURE__ */ new Date()).getTime();
if (this.lastTapTime && this.lastTapTime > 0) {
var e = t - this.lastTapTime;
if (e > n.DOUBLE_TAP_MILLIS) {
var r = {
type: n.EVENT_DOUBLE_TAP,
touchStart: this.touchStart
};
this.eventService.dispatchEvent(r), this.lastTapTime = null;
} else
this.lastTapTime = t;
} else
this.lastTapTime = t;
}, n.prototype.destroy = function() {
this.destroyFuncs.forEach(function(t) {
return t();
});
}, n.EVENT_TAP = "tap", n.EVENT_DOUBLE_TAP = "doubleTap", n.EVENT_LONG_TAP = "longTap", n.DOUBLE_TAP_MILLIS = 500, n;
}()
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Ap = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Rt = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, rs = (
/** @class */
function(n) {
Ap(t, n);
function t(e) {
var r = n.call(this) || this;
return e || r.setTemplate(t.TEMPLATE), r;
}
return t.prototype.attachCustomElements = function(e, r, o, i, s) {
this.eSortOrder = e, this.eSortAsc = r, this.eSortDesc = o, this.eSortMixed = i, this.eSortNone = s;
}, t.prototype.setupSort = function(e, r) {
var o = this;
r === void 0 && (r = !1), this.column = e, this.suppressOrder = r, this.setupMultiSortIndicator();
var i = !!this.column.getColDef().sortable;
i && (this.addInIcon("sortAscending", this.eSortAsc, e), this.addInIcon("sortDescending", this.eSortDesc, e), this.addInIcon("sortUnSort", this.eSortNone, e), this.addManagedListener(this.eventService, v.EVENT_SORT_CHANGED, function() {
return o.onSortChanged();
}), this.addManagedListener(this.eventService, v.EVENT_COLUMN_ROW_GROUP_CHANGED, function() {
return o.onSortChanged();
}), this.onSortChanged());
}, t.prototype.addInIcon = function(e, r, o) {
if (r != null) {
var i = oe(e, this.gridOptionsService, o);
i && r.appendChild(i);
}
}, t.prototype.onSortChanged = function() {
this.updateIcons(), this.suppressOrder || this.updateSortOrder();
}, t.prototype.updateIcons = function() {
var e = this.sortController.getDisplaySortForColumn(this.column);
if (this.eSortAsc) {
var r = e === "asc";
k(this.eSortAsc, r, { skipAriaHidden: !0 });
}
if (this.eSortDesc) {
var o = e === "desc";
k(this.eSortDesc, o, { skipAriaHidden: !0 });
}
if (this.eSortNone) {
var i = !this.column.getColDef().unSortIcon && !this.gridOptionsService.is("unSortIcon"), s = e == null;
k(this.eSortNone, !i && s, { skipAriaHidden: !0 });
}
}, t.prototype.setupMultiSortIndicator = function() {
var e = this;
this.addInIcon("sortUnSort", this.eSortMixed, this.column);
var r = this.column.getColDef().showRowGroup, o = this.gridOptionsService.isColumnsSortingCoupledToGroup();
o && r && (this.addManagedListener(this.eventService, v.EVENT_SORT_CHANGED, function() {
return e.updateMultiSortIndicator();
}), this.addManagedListener(this.eventService, v.EVENT_COLUMN_ROW_GROUP_CHANGED, function() {
return e.updateMultiSortIndicator();
}), this.updateMultiSortIndicator());
}, t.prototype.updateMultiSortIndicator = function() {
if (this.eSortMixed) {
var e = this.sortController.getDisplaySortForColumn(this.column) === "mixed";
k(this.eSortMixed, e, { skipAriaHidden: !0 });
}
}, t.prototype.updateSortOrder = function() {
var e = this, r;
if (this.eSortOrder) {
var o = this.sortController.getColumnsWithSortingOrdered(), i = (r = this.sortController.getDisplaySortIndexForColumn(this.column)) !== null && r !== void 0 ? r : -1, s = o.some(function(l) {
var u;
return (u = e.sortController.getDisplaySortIndexForColumn(l)) !== null && u !== void 0 ? u : -1 >= 1;
}), a = i >= 0 && s;
k(this.eSortOrder, a, { skipAriaHidden: !0 }), i >= 0 ? this.eSortOrder.innerHTML = (i + 1).toString() : Ae(this.eSortOrder);
}
}, t.TEMPLATE = `<span class="ag-sort-indicator-container">
<span ref="eSortOrder" class="ag-sort-indicator-icon ag-sort-order ag-hidden" aria-hidden="true"></span>
<span ref="eSortAsc" class="ag-sort-indicator-icon ag-sort-ascending-icon ag-hidden" aria-hidden="true"></span>
<span ref="eSortDesc" class="ag-sort-indicator-icon ag-sort-descending-icon ag-hidden" aria-hidden="true"></span>
<span ref="eSortMixed" class="ag-sort-indicator-icon ag-sort-mixed-icon ag-hidden" aria-hidden="true"></span>
<span ref="eSortNone" class="ag-sort-indicator-icon ag-sort-none-icon ag-hidden" aria-hidden="true"></span>
</span>`, Rt([
P("eSortOrder")
], t.prototype, "eSortOrder", void 0), Rt([
P("eSortAsc")
], t.prototype, "eSortAsc", void 0), Rt([
P("eSortDesc")
], t.prototype, "eSortDesc", void 0), Rt([
P("eSortMixed")
], t.prototype, "eSortMixed", void 0), Rt([
P("eSortNone")
], t.prototype, "eSortNone", void 0), Rt([
h("columnModel")
], t.prototype, "columnModel", void 0), Rt([
h("sortController")
], t.prototype, "sortController", void 0), t;
}(W)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Fp = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Te = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Lp = (
/** @class */
function(n) {
Fp(t, n);
function t() {
var e = n !== null && n.apply(this, arguments) || this;
return e.lastMovingChanged = 0, e;
}
return t.prototype.destroy = function() {
n.prototype.destroy.call(this);
}, t.prototype.refresh = function(e) {
return this.params = e, this.workOutTemplate() != this.currentTemplate || this.workOutShowMenu() != this.currentShowMenu || this.workOutSort() != this.currentSort ? !1 : (this.setDisplayName(e), !0);
}, t.prototype.workOutTemplate = function() {
var e = _a(this.params.template, t.TEMPLATE);
return e = e && e.trim ? e.trim() : e, e;
}, t.prototype.init = function(e) {
this.params = e, this.currentTemplate = this.workOutTemplate(), this.setTemplate(this.currentTemplate), this.setupTap(), this.setupIcons(e.column), this.setMenu(), this.setupSort(), this.setupFilterIcon(), this.setDisplayName(e);
}, t.prototype.setDisplayName = function(e) {
if (this.currentDisplayName != e.displayName) {
this.currentDisplayName = e.displayName;
var r = tt(this.currentDisplayName);
this.eText && (this.eText.innerHTML = r);
}
}, t.prototype.setupIcons = function(e) {
this.addInIcon("menu", this.eMenu, e), this.addInIcon("filter", this.eFilter, e);
}, t.prototype.addInIcon = function(e, r, o) {
if (r != null) {
var i = oe(e, this.gridOptionsService, o);
i && r.appendChild(i);
}
}, t.prototype.setupTap = function() {
var e = this, r = this.gridOptionsService;
if (!r.is("suppressTouch")) {
var o = new De(this.getGui(), !0), i = r.is("suppressMenuHide"), s = i && O(this.eMenu), a = s ? new De(this.eMenu, !0) : o;
if (this.params.enableMenu) {
var l = s ? "EVENT_TAP" : "EVENT_LONG_TAP", u = function(p) {
r.api.showColumnMenuAfterMouseClick(e.params.column, p.touchStart);
};
this.addManagedListener(a, De[l], u);
}
if (this.params.enableSorting) {
var c = function(p) {
var d = p.touchStart.target;
i && e.eMenu.contains(d) || e.sortController.progressSort(e.params.column, !1, "uiColumnSorted");
};
this.addManagedListener(o, De.EVENT_TAP, c);
}
this.addDestroyFunc(function() {
return o.destroy();
}), s && this.addDestroyFunc(function() {
return a.destroy();
});
}
}, t.prototype.workOutShowMenu = function() {
var e = !this.gridOptionsService.is("suppressMenuHide"), r = St() && e, o = this.params.enableMenu && !r;
return o;
}, t.prototype.setMenu = function() {
var e = this;
if (this.eMenu) {
if (this.currentShowMenu = this.workOutShowMenu(), !this.currentShowMenu) {
st(this.eMenu);
return;
}
var r = this.gridOptionsService.is("suppressMenuHide");
this.addManagedListener(this.eMenu, "click", function() {
return e.showMenu(e.eMenu);
}), this.eMenu.classList.toggle("ag-header-menu-always-show", r);
}
}, t.prototype.showMenu = function(e) {
e || (e = this.eMenu), this.menuFactory.showMenuAfterButtonClick(this.params.column, e, "columnMenu");
}, t.prototype.workOutSort = function() {
return this.params.enableSorting;
}, t.prototype.setupSort = function() {
var e = this;
if (this.currentSort = this.params.enableSorting, this.eSortIndicator || (this.eSortIndicator = this.context.createBean(new rs(!0)), this.eSortIndicator.attachCustomElements(this.eSortOrder, this.eSortAsc, this.eSortDesc, this.eSortMixed, this.eSortNone)), this.eSortIndicator.setupSort(this.params.column), !!this.currentSort) {
var r = this.gridOptionsService.get("multiSortKey") === "ctrl";
this.addManagedListener(this.params.column, Z.EVENT_MOVING_CHANGED, function() {
e.lastMovingChanged = (/* @__PURE__ */ new Date()).getTime();
}), this.eLabel && this.addManagedListener(this.eLabel, "click", function(i) {
var s = e.params.column.isMoving(), a = (/* @__PURE__ */ new Date()).getTime(), l = a - e.lastMovingChanged < 50, u = s || l;
if (!u) {
var c = r ? i.ctrlKey || i.metaKey : i.shiftKey;
e.params.progressSort(c);
}
});
var o = function() {
if (e.addOrRemoveCssClass("ag-header-cell-sorted-asc", e.params.column.isSortAscending()), e.addOrRemoveCssClass("ag-header-cell-sorted-desc", e.params.column.isSortDescending()), e.addOrRemoveCssClass("ag-header-cell-sorted-none", e.params.column.isSortNone()), e.params.column.getColDef().showRowGroup) {
var i = e.columnModel.getSourceColumnsForGroupColumn(e.params.column), s = i == null ? void 0 : i.every(function(l) {
return e.params.column.getSort() == l.getSort();
}), a = !s;
e.addOrRemoveCssClass("ag-header-cell-sorted-mixed", a);
}
};
this.addManagedListener(this.eventService, v.EVENT_SORT_CHANGED, o), this.addManagedListener(this.eventService, v.EVENT_COLUMN_ROW_GROUP_CHANGED, o);
}
}, t.prototype.setupFilterIcon = function() {
this.eFilter && (this.addManagedListener(this.params.column, Z.EVENT_FILTER_CHANGED, this.onFilterChanged.bind(this)), this.onFilterChanged());
}, t.prototype.onFilterChanged = function() {
var e = this.params.column.isFilterActive();
k(this.eFilter, e, { skipAriaHidden: !0 });
}, t.TEMPLATE = `<div class="ag-cell-label-container" role="presentation">
<span ref="eMenu" class="ag-header-icon ag-header-cell-menu-button" aria-hidden="true"></span>
<div ref="eLabel" class="ag-header-cell-label" role="presentation">
<span ref="eText" class="ag-header-cell-text"></span>
<span ref="eFilter" class="ag-header-icon ag-header-label-icon ag-filter-icon" aria-hidden="true"></span>
<ag-sort-indicator ref="eSortIndicator"></ag-sort-indicator>
</div>
</div>`, Te([
h("sortController")
], t.prototype, "sortController", void 0), Te([
h("menuFactory")
], t.prototype, "menuFactory", void 0), Te([
h("columnModel")
], t.prototype, "columnModel", void 0), Te([
P("eFilter")
], t.prototype, "eFilter", void 0), Te([
P("eSortIndicator")
], t.prototype, "eSortIndicator", void 0), Te([
P("eMenu")
], t.prototype, "eMenu", void 0), Te([
P("eLabel")
], t.prototype, "eLabel", void 0), Te([
P("eText")
], t.prototype, "eText", void 0), Te([
P("eSortOrder")
], t.prototype, "eSortOrder", void 0), Te([
P("eSortAsc")
], t.prototype, "eSortAsc", void 0), Te([
P("eSortDesc")
], t.prototype, "eSortDesc", void 0), Te([
P("eSortMixed")
], t.prototype, "eSortMixed", void 0), Te([
P("eSortNone")
], t.prototype, "eSortNone", void 0), t;
}(W)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Mp = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Ti = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Ip = (
/** @class */
function(n) {
Mp(t, n);
function t() {
return n.call(this, t.TEMPLATE) || this;
}
return t.prototype.destroy = function() {
n.prototype.destroy.call(this);
}, t.prototype.init = function(e) {
this.params = e, this.checkWarnings(), this.setupLabel(), this.addGroupExpandIcon(), this.setupExpandIcons();
}, t.prototype.checkWarnings = function() {
var e = this.params;
if (e.template) {
var r = "AG Grid: A template was provided for Header Group Comp - templates are only supported for Header Comps (not groups)";
K(function() {
return console.warn(r);
}, "HeaderGroupComp.templateNotSupported");
}
}, t.prototype.setupExpandIcons = function() {
var e = this;
this.addInIcon("columnGroupOpened", "agOpened"), this.addInIcon("columnGroupClosed", "agClosed");
var r = function(s) {
if (!Ze(s)) {
var a = !e.params.columnGroup.isExpanded();
e.columnModel.setColumnGroupOpened(e.params.columnGroup.getProvidedColumnGroup(), a, "uiColumnExpanded");
}
};
this.addTouchAndClickListeners(this.eCloseIcon, r), this.addTouchAndClickListeners(this.eOpenIcon, r);
var o = function(s) {
Xt(s);
};
this.addManagedListener(this.eCloseIcon, "dblclick", o), this.addManagedListener(this.eOpenIcon, "dblclick", o), this.addManagedListener(this.getGui(), "dblclick", r), this.updateIconVisibility();
var i = this.params.columnGroup.getProvidedColumnGroup();
this.addManagedListener(i, re.EVENT_EXPANDED_CHANGED, this.updateIconVisibility.bind(this)), this.addManagedListener(i, re.EVENT_EXPANDABLE_CHANGED, this.updateIconVisibility.bind(this));
}, t.prototype.addTouchAndClickListeners = function(e, r) {
var o = new De(e, !0);
this.addManagedListener(o, De.EVENT_TAP, r), this.addDestroyFunc(function() {
return o.destroy();
}), this.addManagedListener(e, "click", r);
}, t.prototype.updateIconVisibility = function() {
var e = this.params.columnGroup;
if (e.isExpandable()) {
var r = this.params.columnGroup.isExpanded();
k(this.eOpenIcon, r), k(this.eCloseIcon, !r);
} else
k(this.eOpenIcon, !1), k(this.eCloseIcon, !1);
}, t.prototype.addInIcon = function(e, r) {
var o = oe(e, this.gridOptionsService, null);
o && this.getRefElement(r).appendChild(o);
}, t.prototype.addGroupExpandIcon = function() {
if (!this.params.columnGroup.isExpandable()) {
k(this.eOpenIcon, !1), k(this.eCloseIcon, !1);
return;
}
}, t.prototype.setupLabel = function() {
var e, r = this.params, o = r.displayName, i = r.columnGroup;
if (O(o)) {
var s = tt(o);
this.getRefElement("agLabel").innerHTML = s;
}
this.addOrRemoveCssClass("ag-sticky-label", !!(!((e = i.getColGroupDef()) === null || e === void 0) && e.stickyLabel));
}, t.TEMPLATE = `<div class="ag-header-group-cell-label" ref="agContainer" role="presentation">
<span ref="agLabel" class="ag-header-group-text" role="presentation"></span>
<span ref="agOpened" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-expanded"></span>
<span ref="agClosed" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-collapsed"></span>
</div>`, Ti([
h("columnModel")
], t.prototype, "columnModel", void 0), Ti([
P("agOpened")
], t.prototype, "eOpenIcon", void 0), Ti([
P("agClosed")
], t.prototype, "eCloseIcon", void 0), t;
}(W)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var xp = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Ur = (
/** @class */
function(n) {
xp(t, n);
function t() {
return n !== null && n.apply(this, arguments) || this;
}
return t.prototype.isPopup = function() {
return !0;
}, t.prototype.setParentComponent = function(e) {
e.addCssClass("ag-has-popup"), n.prototype.setParentComponent.call(this, e);
}, t.prototype.destroy = function() {
var e = this.parentComponent, r = e && e.isAlive();
r && e.getGui().classList.remove("ag-has-popup"), n.prototype.destroy.call(this);
}, t;
}(W)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Np = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Gp = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Hp = (
/** @class */
function(n) {
Np(t, n);
function t() {
return n.call(this, t.TEMPLATE) || this;
}
return t.prototype.init = function(e) {
this.params = e, this.focusAfterAttached = e.cellStartedEdit, this.eTextArea.setMaxLength(e.maxLength || 200).setCols(e.cols || 60).setRows(e.rows || 10), O(e.value, !0) && this.eTextArea.setValue(e.value.toString(), !0), this.addGuiEventListener("keydown", this.onKeyDown.bind(this));
}, t.prototype.onKeyDown = function(e) {
var r = e.key;
(r === _.LEFT || r === _.UP || r === _.RIGHT || r === _.DOWN || e.shiftKey && r === _.ENTER) && e.stopPropagation();
}, t.prototype.afterGuiAttached = function() {
var e = this.localeService.getLocaleTextFunc();
this.eTextArea.setInputAriaLabel(e("ariaInputEditor", "Input Editor")), this.focusAfterAttached && this.eTextArea.getFocusableElement().focus();
}, t.prototype.getValue = function() {
return this.params.parseValue(this.eTextArea.getValue());
}, t.TEMPLATE = `<div class="ag-large-text" tabindex="0">
<ag-input-text-area ref="eTextArea" class="ag-large-text-input"></ag-input-text-area>
</div>`, Gp([
P("eTextArea")
], t.prototype, "eTextArea", void 0), t;
}(Ur)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Vp = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), _s = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Bp = (
/** @class */
function(n) {
Vp(t, n);
function t() {
var e = n.call(this, '<div class="ag-cell-edit-wrapper"><ag-select class="ag-cell-editor" ref="eSelect"></ag-select></div>') || this;
return e.startedByEnter = !1, e;
}
return t.prototype.init = function(e) {
var r = this;
if (this.focusAfterAttached = e.cellStartedEdit, x(e.values)) {
console.warn("AG Grid: no values found for select cellEditor");
return;
}
this.startedByEnter = e.eventKey != null ? e.eventKey === _.ENTER : !1;
var o = !1;
e.values.forEach(function(i) {
var s = { value: i }, a = r.valueFormatterService.formatValue(e.column, null, i), l = a != null;
s.text = l ? a : i, r.eSelect.addOption(s), o = o || e.value === i;
}), o ? this.eSelect.setValue(e.value, !0) : e.values.length && this.eSelect.setValue(e.values[0], !0), this.gridOptionsService.get("editType") !== "fullRow" && this.addManagedListener(this.eSelect, xo.EVENT_ITEM_SELECTED, function() {
return e.stopEditing();
});
}, t.prototype.afterGuiAttached = function() {
this.focusAfterAttached && this.eSelect.getFocusableElement().focus(), this.startedByEnter && this.eSelect.showPicker();
}, t.prototype.focusIn = function() {
this.eSelect.getFocusableElement().focus();
}, t.prototype.getValue = function() {
return this.eSelect.getValue();
}, t.prototype.isPopup = function() {
return !1;
}, _s([
h("valueFormatterService")
], t.prototype, "valueFormatterService", void 0), _s([
P("eSelect")
], t.prototype, "eSelect", void 0), t;
}(Ur)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Wp = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), jp = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Rs = (
/** @class */
function(n) {
Wp(t, n);
function t() {
return n.call(this, t.TEMPLATE) || this;
}
return t.prototype.init = function(e) {
this.params = e;
var r = this.eInput, o;
e.cellStartedEdit ? (this.focusAfterAttached = !0, e.eventKey === _.BACKSPACE || e.eventKey === _.DELETE ? o = "" : e.charPress ? o = e.charPress : (o = this.getStartValue(e), e.eventKey !== _.F2 && (this.highlightAllOnFocus = !0))) : (this.focusAfterAttached = !1, o = this.getStartValue(e)), o != null && r.setValue(o, !0), e.maxLength != null && r.setMaxLength(e.maxLength), this.addManagedListener(r.getGui(), "keydown", function(i) {
var s = i.key;
(s === _.PAGE_UP || s === _.PAGE_DOWN) && i.preventDefault();
});
}, t.prototype.afterGuiAttached = function() {
var e = this.localeService.getLocaleTextFunc(), r = this.eInput;
if (r.setInputAriaLabel(e("ariaInputEditor", "Input Editor")), !!this.focusAfterAttached) {
rt() || r.getFocusableElement().focus();
var o = r.getInputElement();
if (this.highlightAllOnFocus)
o.select();
else {
var i = r.getValue(), s = O(i) && i.length || 0;
s && o.setSelectionRange(s, s);
}
}
}, t.prototype.focusIn = function() {
var e = this.eInput, r = e.getFocusableElement(), o = e.getInputElement();
r.focus(), o.select();
}, t.prototype.getValue = function() {
var e = this.eInput;
return this.params.parseValue(e.getValue());
}, t.prototype.getStartValue = function(e) {
var r = e.useFormatter || e.column.getColDef().refData;
return r ? e.formatValue(e.value) : e.value;
}, t.prototype.isPopup = function() {
return !1;
}, t.TEMPLATE = `<div class="ag-cell-edit-wrapper">
<ag-input-text-field class="ag-cell-editor" ref="eInput"></ag-input-text-field>
</div>`, jp([
P("eInput")
], t.prototype, "eInput", void 0), t;
}(Ur)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var kp = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Up = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, zp = "↑", Kp = "↓", $p = (
/** @class */
function(n) {
kp(t, n);
function t() {
var e = n.call(this, t.TEMPLATE) || this;
return e.refreshCount = 0, e;
}
return t.prototype.init = function(e) {
this.eValue = this.queryForHtmlElement(".ag-value-change-value"), this.eDelta = this.queryForHtmlElement(".ag-value-change-delta"), this.refresh(e);
}, t.prototype.showDelta = function(e, r) {
var o = Math.abs(r), i = e.formatValue(o), s = O(i) ? i : o, a = r >= 0;
a ? this.eDelta.innerHTML = zp + s : this.eDelta.innerHTML = Kp + s, this.eDelta.classList.toggle("ag-value-change-delta-up", a), this.eDelta.classList.toggle("ag-value-change-delta-down", !a);
}, t.prototype.setTimerToRemoveDelta = function() {
var e = this;
this.refreshCount++;
var r = this.refreshCount;
window.setTimeout(function() {
r === e.refreshCount && e.hideDeltaValue();
}, 2e3);
}, t.prototype.hideDeltaValue = function() {
this.eValue.classList.remove("ag-value-change-value-highlight"), Ae(this.eDelta);
}, t.prototype.refresh = function(e) {
var r = e.value;
if (r === this.lastValue || (O(e.valueFormatted) ? this.eValue.innerHTML = e.valueFormatted : O(e.value) ? this.eValue.innerHTML = r : Ae(this.eValue), this.filterManager.isSuppressFlashingCellsBecauseFiltering()))
return !1;
if (typeof r == "number" && typeof this.lastValue == "number") {
var o = r - this.lastValue;
this.showDelta(e, o);
}
return this.lastValue && this.eValue.classList.add("ag-value-change-value-highlight"), this.setTimerToRemoveDelta(), this.lastValue = r, !0;
}, t.TEMPLATE = '<span><span class="ag-value-change-delta"></span><span class="ag-value-change-value"></span></span>', Up([
h("filterManager")
], t.prototype, "filterManager", void 0), t;
}(W)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Yp = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), qp = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Qp = (
/** @class */
function(n) {
Yp(t, n);
function t() {
var e = n.call(this, t.TEMPLATE) || this;
return e.refreshCount = 0, e.eCurrent = e.queryForHtmlElement(".ag-value-slide-current"), e;
}
return t.prototype.init = function(e) {
this.refresh(e);
}, t.prototype.addSlideAnimation = function() {
var e = this;
this.refreshCount++;
var r = this.refreshCount;
this.ePrevious && this.getGui().removeChild(this.ePrevious), this.ePrevious = de('<span class="ag-value-slide-previous ag-value-slide-out"></span>'), this.ePrevious.innerHTML = this.eCurrent.innerHTML, this.getGui().insertBefore(this.ePrevious, this.eCurrent), window.setTimeout(function() {
r === e.refreshCount && e.ePrevious.classList.add("ag-value-slide-out-end");
}, 50), window.setTimeout(function() {
r === e.refreshCount && (e.getGui().removeChild(e.ePrevious), e.ePrevious = null);
}, 3e3);
}, t.prototype.refresh = function(e) {
var r = e.value;
return x(r) && (r = ""), r === this.lastValue || this.filterManager.isSuppressFlashingCellsBecauseFiltering() ? !1 : (this.addSlideAnimation(), this.lastValue = r, O(e.valueFormatted) ? this.eCurrent.innerHTML = e.valueFormatted : O(e.value) ? this.eCurrent.innerHTML = r : Ae(this.eCurrent), !0);
}, t.TEMPLATE = `<span>
<span class="ag-value-slide-current"></span>
</span>`, qp([
h("filterManager")
], t.prototype, "filterManager", void 0), t;
}(W)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Ut = function() {
return Ut = Object.assign || function(n) {
for (var t, e = 1, r = arguments.length; e < r; e++) {
t = arguments[e];
for (var o in t)
Object.prototype.hasOwnProperty.call(t, o) && (n[o] = t[o]);
}
return n;
}, Ut.apply(this, arguments);
}, j = (
/** @class */
function() {
function n(t) {
this.rowIndex = null, this.key = null, this.childrenMapped = {}, this.displayed = !1, this.rowTop = null, this.oldRowTop = null, this.selectable = !0, this.__objectId = n.OBJECT_ID_SEQUENCE++, this.__autoHeights = {}, this.alreadyRendered = !1, this.highlighted = null, this.hovered = !1, this.selected = !1, this.beans = t;
}
return n.prototype.setData = function(t) {
this.setDataCommon(t, !1);
}, n.prototype.updateData = function(t) {
this.setDataCommon(t, !0);
}, n.prototype.setDataCommon = function(t, e) {
var r = this.data;
this.data = t, this.beans.valueCache.onDataChanged(), this.updateDataOnDetailNode(), this.checkRowSelectable(), this.resetQuickFilterAggregateText();
var o = this.createDataChangedEvent(t, r, e);
this.dispatchLocalEvent(o);
}, n.prototype.updateDataOnDetailNode = function() {
this.detailNode && (this.detailNode.data = this.data);
}, n.prototype.createDataChangedEvent = function(t, e, r) {
return {
type: n.EVENT_DATA_CHANGED,
node: this,
oldData: e,
newData: t,
update: r
};
}, n.prototype.createLocalRowEvent = function(t) {
return {
type: t,
node: this
};
}, n.prototype.getRowIndexString = function() {
return this.rowPinned === "top" ? "t-" + this.rowIndex : this.rowPinned === "bottom" ? "b-" + this.rowIndex : this.rowIndex.toString();
}, n.prototype.createDaemonNode = function() {
var t = new n(this.beans);
return t.id = this.id, t.data = this.data, t.__daemon = !0, t.selected = this.selected, t.level = this.level, t;
}, n.prototype.setDataAndId = function(t, e) {
var r = O(this.id) ? this.createDaemonNode() : null, o = this.data;
this.data = t, this.updateDataOnDetailNode(), this.setId(e), this.beans.selectionService.syncInRowNode(this, r), this.checkRowSelectable();
var i = this.createDataChangedEvent(t, o, !1);
this.dispatchLocalEvent(i);
}, n.prototype.checkRowSelectable = function() {
var t = this.beans.gridOptionsService.get("isRowSelectable");
this.setRowSelectable(t ? t(this) : !0);
}, n.prototype.setRowSelectable = function(t) {
if (this.selectable !== t) {
this.selectable = t, this.eventService && this.eventService.dispatchEvent(this.createLocalRowEvent(n.EVENT_SELECTABLE_CHANGED));
var e = this.beans.gridOptionsService.is("groupSelectsChildren");
if (e) {
var r = this.calculateSelectedFromChildren();
this.setSelectedParams({ newValue: r ?? !1, source: "selectableChanged" });
}
}
}, n.prototype.setId = function(t) {
var e = this.beans.gridOptionsService.getRowIdFunc();
if (e)
if (this.data) {
var r = this.getGroupKeys(!0);
this.id = e({
data: this.data,
parentKeys: r.length > 0 ? r : void 0,
level: this.level
}), this.id !== null && typeof this.id == "string" && this.id.startsWith(n.ID_PREFIX_ROW_GROUP) && console.error("AG Grid: Row IDs cannot start with " + n.ID_PREFIX_ROW_GROUP + ", this is a reserved prefix for AG Grid's row grouping feature."), this.id !== null && typeof this.id != "string" && (this.id = "" + this.id);
} else
this.id = void 0;
else
this.id = t;
}, n.prototype.getGroupKeys = function(t) {
t === void 0 && (t = !1);
var e = [], r = this;
for (t && (r = r.parent); r && r.level >= 0; )
e.push(r.key), r = r.parent;
return e.reverse(), e;
}, n.prototype.isPixelInRange = function(t) {
return !O(this.rowTop) || !O(this.rowHeight) ? !1 : t >= this.rowTop && t < this.rowTop + this.rowHeight;
}, n.prototype.setFirstChild = function(t) {
this.firstChild !== t && (this.firstChild = t, this.eventService && this.eventService.dispatchEvent(this.createLocalRowEvent(n.EVENT_FIRST_CHILD_CHANGED)));
}, n.prototype.setLastChild = function(t) {
this.lastChild !== t && (this.lastChild = t, this.eventService && this.eventService.dispatchEvent(this.createLocalRowEvent(n.EVENT_LAST_CHILD_CHANGED)));
}, n.prototype.setChildIndex = function(t) {
this.childIndex !== t && (this.childIndex = t, this.eventService && this.eventService.dispatchEvent(this.createLocalRowEvent(n.EVENT_CHILD_INDEX_CHANGED)));
}, n.prototype.setRowTop = function(t) {
this.oldRowTop = this.rowTop, this.rowTop !== t && (this.rowTop = t, this.eventService && this.eventService.dispatchEvent(this.createLocalRowEvent(n.EVENT_TOP_CHANGED)), this.setDisplayed(t !== null));
}, n.prototype.clearRowTopAndRowIndex = function() {
this.oldRowTop = null, this.setRowTop(null), this.setRowIndex(null);
}, n.prototype.setDisplayed = function(t) {
this.displayed !== t && (this.displayed = t, this.eventService && this.eventService.dispatchEvent(this.createLocalRowEvent(n.EVENT_DISPLAYED_CHANGED)));
}, n.prototype.setDragging = function(t) {
this.dragging !== t && (this.dragging = t, this.eventService && this.eventService.dispatchEvent(this.createLocalRowEvent(n.EVENT_DRAGGING_CHANGED)));
}, n.prototype.setHighlighted = function(t) {
t !== this.highlighted && (this.highlighted = t, this.eventService && this.eventService.dispatchEvent(this.createLocalRowEvent(n.EVENT_HIGHLIGHT_CHANGED)));
}, n.prototype.setHovered = function(t) {
this.hovered !== t && (this.hovered = t);
}, n.prototype.isHovered = function() {
return this.hovered;
}, n.prototype.setAllChildrenCount = function(t) {
this.allChildrenCount !== t && (this.allChildrenCount = t, this.eventService && this.eventService.dispatchEvent(this.createLocalRowEvent(n.EVENT_ALL_CHILDREN_COUNT_CHANGED)));
}, n.prototype.setMaster = function(t) {
this.master !== t && (this.master && !t && (this.expanded = !1), this.master = t, this.eventService && this.eventService.dispatchEvent(this.createLocalRowEvent(n.EVENT_MASTER_CHANGED)));
}, n.prototype.setGroup = function(t) {
this.group !== t && (this.group && !t && (this.expanded = !1), this.group = t, this.updateHasChildren(), this.eventService && this.eventService.dispatchEvent(this.createLocalRowEvent(n.EVENT_GROUP_CHANGED)));
}, n.prototype.setRowHeight = function(t, e) {
e === void 0 && (e = !1), this.rowHeight = t, this.rowHeightEstimated = e, this.eventService && this.eventService.dispatchEvent(this.createLocalRowEvent(n.EVENT_HEIGHT_CHANGED));
}, n.prototype.setRowAutoHeight = function(t, e) {
this.__autoHeights || (this.__autoHeights = {}), this.__autoHeights[e.getId()] = t, t != null && (this.checkAutoHeightsDebounced == null && (this.checkAutoHeightsDebounced = Je(this.checkAutoHeights.bind(this), 1)), this.checkAutoHeightsDebounced());
}, n.prototype.checkAutoHeights = function() {
var t = this, e = !1, r = !0, o = 0, i = this.__autoHeights;
if (i != null) {
var s = this.beans.columnModel.getAllDisplayedAutoHeightCols();
if (s.forEach(function(l) {
var u = i[l.getId()];
if (u == null)
if (t.beans.columnModel.isColSpanActive()) {
var c = [];
switch (l.getPinned()) {
case "left":
c = t.beans.columnModel.getDisplayedLeftColumnsForRow(t);
break;
case "right":
c = t.beans.columnModel.getDisplayedRightColumnsForRow(t);
break;
case null:
c = t.beans.columnModel.getViewportCenterColumnsForRow(t);
break;
}
if (c.includes(l)) {
e = !0;
return;
}
u = -1;
} else {
e = !0;
return;
}
else
r = !1;
u > o && (o = u);
}), !e && ((r || o < 10) && (o = this.beans.gridOptionsService.getRowHeightForNode(this).height), o != this.rowHeight)) {
this.setRowHeight(o);
var a = this.beans.rowModel;
a.onRowHeightChangedDebounced && a.onRowHeightChangedDebounced();
}
}
}, n.prototype.setRowIndex = function(t) {
this.rowIndex !== t && (this.rowIndex = t, this.eventService && this.eventService.dispatchEvent(this.createLocalRowEvent(n.EVENT_ROW_INDEX_CHANGED)));
}, n.prototype.setUiLevel = function(t) {
this.uiLevel !== t && (this.uiLevel = t, this.eventService && this.eventService.dispatchEvent(this.createLocalRowEvent(n.EVENT_UI_LEVEL_CHANGED)));
}, n.prototype.setExpanded = function(t, e) {
if (this.expanded !== t) {
this.expanded = t, this.eventService && this.eventService.dispatchEvent(this.createLocalRowEvent(n.EVENT_EXPANDED_CHANGED));
var r = Object.assign({}, this.createGlobalRowEvent(v.EVENT_ROW_GROUP_OPENED), {
expanded: t,
event: e || null
});
this.beans.rowNodeEventThrottle.dispatchExpanded(r), this.beans.gridOptionsService.is("groupIncludeFooter") && this.beans.rowRenderer.refreshCells({ rowNodes: [this] });
}
}, n.prototype.createGlobalRowEvent = function(t) {
return {
type: t,
node: this,
data: this.data,
rowIndex: this.rowIndex,
rowPinned: this.rowPinned,
context: this.beans.gridOptionsService.context,
api: this.beans.gridOptionsService.api,
columnApi: this.beans.gridOptionsService.columnApi
};
}, n.prototype.dispatchLocalEvent = function(t) {
this.eventService && this.eventService.dispatchEvent(t);
}, n.prototype.setDataValue = function(t, e, r) {
var o = this, i = function() {
var u;
return typeof t != "string" ? t : (u = o.beans.columnModel.getGridColumn(t)) !== null && u !== void 0 ? u : o.beans.columnModel.getPrimaryColumn(t);
}, s = i(), a = this.getValueFromValueService(s);
if (this.beans.gridOptionsService.is("readOnlyEdit"))
return this.dispatchEventForSaveValueReadOnly(s, a, e, r), !1;
var l = this.beans.valueService.setValue(this, s, e, r);
return this.dispatchCellChangedEvent(s, e, a), this.checkRowSelectable(), l;
}, n.prototype.getValueFromValueService = function(t) {
var e = this.leafGroup && this.beans.columnModel.isPivotMode(), r = this.group && this.expanded && !this.footer && !e, o = this.beans.gridOptionsService.is("groupIncludeFooter"), i = this.beans.gridOptionsService.is("groupSuppressBlankHeader"), s = r && o && !i, a = this.beans.valueService.getValue(t, this, !1, s);
return a;
}, n.prototype.dispatchEventForSaveValueReadOnly = function(t, e, r, o) {
var i = {
type: v.EVENT_CELL_EDIT_REQUEST,
event: null,
rowIndex: this.rowIndex,
rowPinned: this.rowPinned,
column: t,
colDef: t.getColDef(),
context: this.beans.gridOptionsService.context,
api: this.beans.gridOptionsService.api,
columnApi: this.beans.gridOptionsService.columnApi,
data: this.data,
node: this,
oldValue: e,
newValue: r,
value: r,
source: o
};
this.beans.eventService.dispatchEvent(i);
}, n.prototype.setGroupValue = function(t, e) {
var r = this.beans.columnModel.getGridColumn(t);
x(this.groupData) && (this.groupData = {});
var o = r.getColId(), i = this.groupData[o];
i !== e && (this.groupData[o] = e, this.dispatchCellChangedEvent(r, e, i));
}, n.prototype.setAggData = function(t) {
var e = this, r = va([this.aggData, t]), o = this.aggData;
this.aggData = t, this.eventService && r.forEach(function(i) {
var s = e.beans.columnModel.getGridColumn(i), a = e.aggData ? e.aggData[i] : void 0, l = o ? o[i] : void 0;
e.dispatchCellChangedEvent(s, a, l);
});
}, n.prototype.updateHasChildren = function() {
var t = this.group && !this.footer || this.childrenAfterGroup && this.childrenAfterGroup.length > 0, e = this.beans.gridOptionsService.isRowModelType("serverSide");
if (e) {
var r = this.beans.gridOptionsService.isTreeData(), o = this.beans.gridOptionsService.get("isServerSideGroup");
t = !this.stub && !this.footer && (r ? !!o && o(this.data) : !!this.group);
}
t !== this.__hasChildren && (this.__hasChildren = !!t, this.eventService && this.eventService.dispatchEvent(this.createLocalRowEvent(n.EVENT_HAS_CHILDREN_CHANGED)));
}, n.prototype.hasChildren = function() {
return this.__hasChildren == null && this.updateHasChildren(), this.__hasChildren;
}, n.prototype.isEmptyRowGroupNode = function() {
return this.group && Pe(this.childrenAfterGroup);
}, n.prototype.dispatchCellChangedEvent = function(t, e, r) {
var o = {
type: n.EVENT_CELL_CHANGED,
node: this,
column: t,
newValue: e,
oldValue: r
};
this.dispatchLocalEvent(o);
}, n.prototype.resetQuickFilterAggregateText = function() {
this.quickFilterAggregateText = null;
}, n.prototype.isExpandable = function() {
return !!(this.hasChildren() && !this.footer || this.master);
}, n.prototype.isSelected = function() {
return this.footer ? this.sibling.isSelected() : this.selected;
}, n.prototype.depthFirstSearch = function(t) {
this.childrenAfterGroup && this.childrenAfterGroup.forEach(function(e) {
return e.depthFirstSearch(t);
}), t(this);
}, n.prototype.calculateSelectedFromChildren = function() {
var t, e = !1, r = !1, o = !1;
if (!(!((t = this.childrenAfterGroup) === null || t === void 0) && t.length))
return this.selectable ? this.selected : null;
for (var i = 0; i < this.childrenAfterGroup.length; i++) {
var s = this.childrenAfterGroup[i], a = s.isSelected();
if (!s.selectable) {
var l = s.calculateSelectedFromChildren();
if (l === null)
continue;
a = l;
}
switch (a) {
case !0:
e = !0;
break;
case !1:
r = !0;
break;
default:
o = !0;
break;
}
}
if (!(o || e && r))
return e ? !0 : r ? !1 : this.selectable ? this.selected : null;
}, n.prototype.setSelectedInitialValue = function(t) {
this.selected = t;
}, n.prototype.selectThisNode = function(t, e, r) {
r === void 0 && (r = "api");
var o = !this.selectable && t, i = this.selected === t;
if (o || i)
return !1;
this.selected = t, this.eventService && this.dispatchLocalEvent(this.createLocalRowEvent(n.EVENT_ROW_SELECTED));
var s = Ut(Ut({}, this.createGlobalRowEvent(v.EVENT_ROW_SELECTED)), { event: e || null, source: r });
return this.beans.eventService.dispatchEvent(s), !0;
}, n.prototype.setSelected = function(t, e, r, o) {
e === void 0 && (e = !1), r === void 0 && (r = !1), o === void 0 && (o = "api"), this.setSelectedParams({
newValue: t,
clearSelection: e,
suppressFinishActions: r,
rangeSelect: !1,
source: o
});
}, n.prototype.setSelectedParams = function(t) {
return this.rowPinned ? (console.warn("AG Grid: cannot select pinned rows"), 0) : this.id === void 0 ? (console.warn("AG Grid: cannot select node until id for node is known"), 0) : this.beans.selectionService.setNodeSelected(Ut(Ut({}, t), { node: this.footer ? this.sibling : this }));
}, n.prototype.isRowPinned = function() {
return this.rowPinned === "top" || this.rowPinned === "bottom";
}, n.prototype.isParentOfNode = function(t) {
for (var e = this.parent; e; ) {
if (e === t)
return !0;
e = e.parent;
}
return !1;
}, n.prototype.addEventListener = function(t, e) {
this.eventService || (this.eventService = new wt()), this.eventService.addEventListener(t, e);
}, n.prototype.removeEventListener = function(t, e) {
this.eventService && (this.eventService.removeEventListener(t, e), this.eventService.noRegisteredListenersExist() && (this.eventService = null));
}, n.prototype.onMouseEnter = function() {
this.dispatchLocalEvent(this.createLocalRowEvent(n.EVENT_MOUSE_ENTER));
}, n.prototype.onMouseLeave = function() {
this.dispatchLocalEvent(this.createLocalRowEvent(n.EVENT_MOUSE_LEAVE));
}, n.prototype.getFirstChildOfFirstChild = function(t) {
for (var e = this, r = !0, o = !1, i = null; r && !o; ) {
var s = e.parent, a = O(s) && e.firstChild;
a ? s.rowGroupColumn === t && (o = !0, i = s) : r = !1, e = s;
}
return o ? i : null;
}, n.prototype.isFullWidthCell = function() {
var t = this.getIsFullWidthCellFunc();
return t ? t({ rowNode: this }) : !1;
}, n.prototype.getIsFullWidthCellFunc = function() {
var t = this.beans.gridOptionsService.getCallback("isFullWidthRow");
if (t)
return t;
var e = this.beans.gridOptionsService.get("isFullWidthCell");
if (e)
return function(r) {
return e(r.rowNode);
};
}, n.prototype.getRoute = function() {
if (this.key != null) {
for (var t = [], e = this; e.key != null; )
t.push(e.key), e = e.parent;
return t.reverse();
}
}, n.prototype.createFooter = function() {
var t = this;
if (!this.sibling) {
var e = new n(this.beans);
Object.keys(this).forEach(function(r) {
e[r] = t[r];
}), e.footer = !0, e.setRowTop(null), e.setRowIndex(null), e.oldRowTop = null, e.id = "rowGroupFooter_" + this.id, e.sibling = this, this.sibling = e;
}
}, n.ID_PREFIX_ROW_GROUP = "row-group-", n.ID_PREFIX_TOP_PINNED = "t-", n.ID_PREFIX_BOTTOM_PINNED = "b-", n.OBJECT_ID_SEQUENCE = 0, n.EVENT_ROW_SELECTED = "rowSelected", n.EVENT_DATA_CHANGED = "dataChanged", n.EVENT_CELL_CHANGED = "cellChanged", n.EVENT_ALL_CHILDREN_COUNT_CHANGED = "allChildrenCountChanged", n.EVENT_MASTER_CHANGED = "masterChanged", n.EVENT_GROUP_CHANGED = "groupChanged", n.EVENT_MOUSE_ENTER = "mouseEnter", n.EVENT_MOUSE_LEAVE = "mouseLeave", n.EVENT_HEIGHT_CHANGED = "heightChanged", n.EVENT_TOP_CHANGED = "topChanged", n.EVENT_DISPLAYED_CHANGED = "displayedChanged", n.EVENT_FIRST_CHILD_CHANGED = "firstChildChanged", n.EVENT_LAST_CHILD_CHANGED = "lastChildChanged", n.EVENT_CHILD_INDEX_CHANGED = "childIndexChanged", n.EVENT_ROW_INDEX_CHANGED = "rowIndexChanged", n.EVENT_EXPANDED_CHANGED = "expandedChanged", n.EVENT_HAS_CHILDREN_CHANGED = "hasChildrenChanged", n.EVENT_SELECTABLE_CHANGED = "selectableChanged", n.EVENT_UI_LEVEL_CHANGED = "uiLevelChanged", n.EVENT_HIGHLIGHT_CHANGED = "rowHighlightChanged", n.EVENT_DRAGGING_CHANGED = "draggingChanged", n;
}()
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Xp = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Go = function() {
return Go = Object.assign || function(n) {
for (var t, e = 1, r = arguments.length; e < r; e++) {
t = arguments[e];
for (var o in t)
Object.prototype.hasOwnProperty.call(t, o) && (n[o] = t[o]);
}
return n;
}, Go.apply(this, arguments);
}, Os = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, xl = (
/** @class */
function(n) {
Xp(t, n);
function t() {
return n.call(
this,
/* html*/
`
<div class="ag-selection-checkbox" role="presentation">
<ag-checkbox role="presentation" ref="eCheckbox"></ag-checkbox>
</div>`
) || this;
}
return t.prototype.postConstruct = function() {
this.eCheckbox.setPassive(!0);
}, t.prototype.getCheckboxId = function() {
return this.eCheckbox.getInputElement().id;
}, t.prototype.onDataChanged = function() {
this.onSelectionChanged();
}, t.prototype.onSelectableChanged = function() {
this.showOrHideSelect();
}, t.prototype.onSelectionChanged = function() {
var e = this.localeService.getLocaleTextFunc(), r = this.rowNode.isSelected(), o = r === void 0 ? e("ariaIndeterminate", "indeterminate") : r === !0 ? e("ariaChecked", "checked") : e("ariaUnchecked", "unchecked"), i = e("ariaRowToggleSelection", "Press Space to toggle row selection");
this.eCheckbox.setValue(r, !0), this.eCheckbox.setInputAriaLabel(i + " (" + o + ")");
}, t.prototype.onCheckedClicked = function(e) {
var r = this.gridOptionsService.is("groupSelectsFiltered"), o = this.rowNode.setSelectedParams({ newValue: !1, rangeSelect: e.shiftKey, groupSelectsFiltered: r, event: e, source: "checkboxSelected" });
return o;
}, t.prototype.onUncheckedClicked = function(e) {
var r = this.gridOptionsService.is("groupSelectsFiltered"), o = this.rowNode.setSelectedParams({ newValue: !0, rangeSelect: e.shiftKey, groupSelectsFiltered: r, event: e, source: "checkboxSelected" });
return o;
}, t.prototype.init = function(e) {
var r = this;
this.rowNode = e.rowNode, this.column = e.column, this.overrides = e.overrides, this.onSelectionChanged(), this.addManagedListener(this.eCheckbox.getInputElement(), "dblclick", function(a) {
Xt(a);
}), this.addManagedListener(this.eCheckbox.getInputElement(), "click", function(a) {
Xt(a);
var l = r.eCheckbox.getValue();
l ? r.onCheckedClicked(a) : r.onUncheckedClicked(a || {});
}), this.addManagedListener(this.rowNode, j.EVENT_ROW_SELECTED, this.onSelectionChanged.bind(this)), this.addManagedListener(this.rowNode, j.EVENT_DATA_CHANGED, this.onDataChanged.bind(this)), this.addManagedListener(this.rowNode, j.EVENT_SELECTABLE_CHANGED, this.onSelectableChanged.bind(this));
var o = this.gridOptionsService.get("isRowSelectable"), i = o || typeof this.getIsVisible() == "function";
if (i) {
var s = this.showOrHideSelect.bind(this);
this.addManagedListener(this.eventService, v.EVENT_DISPLAYED_COLUMNS_CHANGED, s), this.addManagedListener(this.rowNode, j.EVENT_DATA_CHANGED, s), this.addManagedListener(this.rowNode, j.EVENT_CELL_CHANGED, s), this.showOrHideSelect();
}
this.eCheckbox.getInputElement().setAttribute("tabindex", "-1");
}, t.prototype.showOrHideSelect = function() {
var e, r, o, i, s = this.rowNode.selectable, a = this.getIsVisible();
if (s)
if (typeof a == "function") {
var l = (e = this.overrides) === null || e === void 0 ? void 0 : e.callbackParams, u = (r = this.column) === null || r === void 0 ? void 0 : r.createColumnFunctionCallbackParams(this.rowNode);
s = u ? a(Go(Go({}, l), u)) : !1;
} else
s = a ?? !1;
var c = (o = this.column) === null || o === void 0 ? void 0 : o.getColDef().showDisabledCheckboxes;
if (c) {
this.eCheckbox.setDisabled(!s), this.setVisible(!0), this.setDisplayed(!0);
return;
}
if (!((i = this.overrides) === null || i === void 0) && i.removeHidden) {
this.setDisplayed(s);
return;
}
this.setVisible(s);
}, t.prototype.getIsVisible = function() {
var e, r;
return this.overrides ? this.overrides.isVisible : (r = (e = this.column) === null || e === void 0 ? void 0 : e.getColDef()) === null || r === void 0 ? void 0 : r.checkboxSelection;
}, Os([
P("eCheckbox")
], t.prototype, "eCheckbox", void 0), Os([
b
], t.prototype, "postConstruct", null), t;
}(W)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Jp = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Ot = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Jr = function(n) {
var t = typeof Symbol == "function" && Symbol.iterator, e = t && n[t], r = 0;
if (e)
return e.call(n);
if (n && typeof n.length == "number")
return {
next: function() {
return n && r >= n.length && (n = void 0), { value: n && n[r++], done: !n };
}
};
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
}, me;
(function(n) {
n[n.ToolPanel = 0] = "ToolPanel", n[n.HeaderCell = 1] = "HeaderCell", n[n.RowDrag = 2] = "RowDrag", n[n.ChartPanel = 3] = "ChartPanel";
})(me || (me = {}));
var rr;
(function(n) {
n[n.Up = 0] = "Up", n[n.Down = 1] = "Down";
})(rr || (rr = {}));
var Qe;
(function(n) {
n[n.Left = 0] = "Left", n[n.Right = 1] = "Right";
})(Qe || (Qe = {}));
var pe = (
/** @class */
function(n) {
Jp(t, n);
function t() {
var r = n !== null && n.apply(this, arguments) || this;
return r.dragSourceAndParamsList = [], r.dropTargets = [], r;
}
e = t, t.prototype.init = function() {
this.ePinnedIcon = Ie("columnMovePin", this.gridOptionsService, null), this.eHideIcon = Ie("columnMoveHide", this.gridOptionsService, null), this.eMoveIcon = Ie("columnMoveMove", this.gridOptionsService, null), this.eLeftIcon = Ie("columnMoveLeft", this.gridOptionsService, null), this.eRightIcon = Ie("columnMoveRight", this.gridOptionsService, null), this.eGroupIcon = Ie("columnMoveGroup", this.gridOptionsService, null), this.eAggregateIcon = Ie("columnMoveValue", this.gridOptionsService, null), this.ePivotIcon = Ie("columnMovePivot", this.gridOptionsService, null), this.eDropNotAllowedIcon = Ie("dropNotAllowed", this.gridOptionsService, null);
}, t.prototype.addDragSource = function(r, o) {
o === void 0 && (o = !1);
var i = {
eElement: r.eElement,
dragStartPixels: r.dragStartPixels,
onDragStart: this.onDragStart.bind(this, r),
onDragStop: this.onDragStop.bind(this),
onDragging: this.onDragging.bind(this)
};
this.dragSourceAndParamsList.push({ params: i, dragSource: r }), this.dragService.addDragSource(i, o);
}, t.prototype.removeDragSource = function(r) {
var o = this.dragSourceAndParamsList.find(function(i) {
return i.dragSource === r;
});
o && (this.dragService.removeDragSource(o.params), ge(this.dragSourceAndParamsList, o));
}, t.prototype.clearDragSourceParamsList = function() {
var r = this;
this.dragSourceAndParamsList.forEach(function(o) {
return r.dragService.removeDragSource(o.params);
}), this.dragSourceAndParamsList.length = 0, this.dropTargets.length = 0;
}, t.prototype.nudge = function() {
this.dragging && this.onDragging(this.eventLastTime, !0);
}, t.prototype.onDragStart = function(r, o) {
this.dragging = !0, this.dragSource = r, this.eventLastTime = o, this.dragItem = this.dragSource.getDragItem(), this.lastDropTarget = this.dragSource.dragSourceDropTarget, this.dragSource.onDragStarted && this.dragSource.onDragStarted(), this.createGhost();
}, t.prototype.onDragStop = function(r) {
if (this.eventLastTime = null, this.dragging = !1, this.dragSource.onDragStopped && this.dragSource.onDragStopped(), this.lastDropTarget && this.lastDropTarget.onDragStop) {
var o = this.createDropTargetEvent(this.lastDropTarget, r, null, null, !1);
this.lastDropTarget.onDragStop(o);
}
this.lastDropTarget = null, this.dragItem = null, this.removeGhost();
}, t.prototype.onDragging = function(r, o) {
var i = this, s, a, l, u, c = this.getHorizontalDirection(r), p = this.getVerticalDirection(r);
this.eventLastTime = r, this.positionGhost(r);
var d = this.dropTargets.filter(function(y) {
return i.isMouseOnDropTarget(r, y);
}), f = this.findCurrentDropTarget(r, d);
if (f !== this.lastDropTarget)
this.leaveLastTargetIfExists(r, c, p, o), this.lastDropTarget !== null && f === null && ((a = (s = this.dragSource).onGridExit) === null || a === void 0 || a.call(s, this.dragItem)), this.lastDropTarget === null && f !== null && ((u = (l = this.dragSource).onGridEnter) === null || u === void 0 || u.call(l, this.dragItem)), this.enterDragTargetIfExists(f, r, c, p, o), this.lastDropTarget = f;
else if (f && f.onDragging) {
var g = this.createDropTargetEvent(f, r, c, p, o);
f.onDragging(g);
}
}, t.prototype.getAllContainersFromDropTarget = function(r) {
var o = r.getSecondaryContainers ? r.getSecondaryContainers() : null, i = [[r.getContainer()]];
return o ? i.concat(o) : i;
}, t.prototype.allContainersIntersect = function(r, o) {
var i, s;
try {
for (var a = Jr(o), l = a.next(); !l.done; l = a.next()) {
var u = l.value, c = u.getBoundingClientRect();
if (c.width === 0 || c.height === 0)
return !1;
var p = r.clientX >= c.left && r.clientX < c.right, d = r.clientY >= c.top && r.clientY < c.bottom;
if (!p || !d)
return !1;
}
} catch (f) {
i = { error: f };
} finally {
try {
l && !l.done && (s = a.return) && s.call(a);
} finally {
if (i)
throw i.error;
}
}
return !0;
}, t.prototype.isMouseOnDropTarget = function(r, o) {
var i, s, a = this.getAllContainersFromDropTarget(o), l = !1;
try {
for (var u = Jr(a), c = u.next(); !c.done; c = u.next()) {
var p = c.value;
if (this.allContainersIntersect(r, p)) {
l = !0;
break;
}
}
} catch (d) {
i = { error: d };
} finally {
try {
c && !c.done && (s = u.return) && s.call(u);
} finally {
if (i)
throw i.error;
}
}
return o.targetContainsSource && !o.getContainer().contains(this.dragSource.eElement) ? !1 : l && o.isInterestedIn(this.dragSource.type, this.dragSource.eElement);
}, t.prototype.findCurrentDropTarget = function(r, o) {
var i, s, a, l, u = o.length;
if (u === 0)
return null;
if (u === 1)
return o[0];
var c = this.gridOptionsService.getRootNode(), p = c.elementsFromPoint(r.clientX, r.clientY);
try {
for (var d = Jr(p), f = d.next(); !f.done; f = d.next()) {
var g = f.value;
try {
for (var y = (a = void 0, Jr(o)), C = y.next(); !C.done; C = y.next()) {
var m = C.value, w = Oa(this.getAllContainersFromDropTarget(m));
if (w.indexOf(g) !== -1)
return m;
}
} catch (E) {
a = { error: E };
} finally {
try {
C && !C.done && (l = y.return) && l.call(y);
} finally {
if (a)
throw a.error;
}
}
}
} catch (E) {
i = { error: E };
} finally {
try {
f && !f.done && (s = d.return) && s.call(d);
} finally {
if (i)
throw i.error;
}
}
return null;
}, t.prototype.enterDragTargetIfExists = function(r, o, i, s, a) {
if (r) {
if (r.onDragEnter) {
var l = this.createDropTargetEvent(r, o, i, s, a);
r.onDragEnter(l);
}
this.setGhostIcon(r.getIconName ? r.getIconName() : null);
}
}, t.prototype.leaveLastTargetIfExists = function(r, o, i, s) {
if (this.lastDropTarget) {
if (this.lastDropTarget.onDragLeave) {
var a = this.createDropTargetEvent(this.lastDropTarget, r, o, i, s);
this.lastDropTarget.onDragLeave(a);
}
this.setGhostIcon(null);
}
}, t.prototype.addDropTarget = function(r) {
this.dropTargets.push(r);
}, t.prototype.removeDropTarget = function(r) {
this.dropTargets = this.dropTargets.filter(function(o) {
return o.getContainer() !== r.getContainer();
});
}, t.prototype.hasExternalDropZones = function() {
return this.dropTargets.some(function(r) {
return r.external;
});
}, t.prototype.findExternalZone = function(r) {
var o = this.dropTargets.filter(function(i) {
return i.external;
});
return o.find(function(i) {
return i.getContainer() === r.getContainer();
}) || null;
}, t.prototype.getHorizontalDirection = function(r) {
var o = this.eventLastTime && this.eventLastTime.clientX, i = r.clientX;
return o === i ? null : o > i ? Qe.Left : Qe.Right;
}, t.prototype.getVerticalDirection = function(r) {
var o = this.eventLastTime && this.eventLastTime.clientY, i = r.clientY;
return o === i ? null : o > i ? rr.Up : rr.Down;
}, t.prototype.createDropTargetEvent = function(r, o, i, s, a) {
var l = r.getContainer(), u = l.getBoundingClientRect(), c = this, p = c.gridApi, d = c.columnApi, f = c.dragItem, g = c.dragSource, y = o.clientX - u.left, C = o.clientY - u.top;
return { event: o, x: y, y: C, vDirection: s, hDirection: i, dragSource: g, fromNudge: a, dragItem: f, api: p, columnApi: d, dropZoneTarget: l };
}, t.prototype.positionGhost = function(r) {
var o = this.eGhost;
if (o) {
var i = o.getBoundingClientRect(), s = i.height, a = Xa() - 2, l = Ja() - 2, u = r.pageY - s / 2, c = r.pageX - 10, p = this.gridOptionsService.getDocument(), d = p.defaultView || window, f = d.pageYOffset || p.documentElement.scrollTop, g = d.pageXOffset || p.documentElement.scrollLeft;
a > 0 && c + o.clientWidth > a + g && (c = a + g - o.clientWidth), c < 0 && (c = 0), l > 0 && u + o.clientHeight > l + f && (u = l + f - o.clientHeight), u < 0 && (u = 0), o.style.left = c + "px", o.style.top = u + "px";
}
}, t.prototype.removeGhost = function() {
this.eGhost && this.eGhostParent && this.eGhostParent.removeChild(this.eGhost), this.eGhost = null;
}, t.prototype.createGhost = function() {
this.eGhost = de(e.GHOST_TEMPLATE), this.mouseEventService.stampTopLevelGridCompWithGridInstance(this.eGhost);
var r = this.environment.getTheme().theme;
r && this.eGhost.classList.add(r), this.eGhostIcon = this.eGhost.querySelector(".ag-dnd-ghost-icon"), this.setGhostIcon(null);
var o = this.eGhost.querySelector(".ag-dnd-ghost-label"), i = this.dragSource.dragItemName;
Jo(i) && (i = i()), o.innerHTML = tt(i) || "", this.eGhost.style.height = "25px", this.eGhost.style.top = "20px", this.eGhost.style.left = "20px";
var s = this.gridOptionsService.getDocument(), a = null;
try {
a = s.fullscreenElement;
} catch {
} finally {
if (!a) {
var l = this.gridOptionsService.getRootNode(), u = l.querySelector("body");
u ? a = u : l instanceof ShadowRoot ? a = l : a = l == null ? void 0 : l.documentElement;
}
}
this.eGhostParent = a, this.eGhostParent ? this.eGhostParent.appendChild(this.eGhost) : console.warn("AG Grid: could not find document body, it is needed for dragging columns");
}, t.prototype.setGhostIcon = function(r, o) {
o === void 0 && (o = !1), Ae(this.eGhostIcon);
var i = null;
switch (r || (r = this.dragSource.defaultIconName || e.ICON_NOT_ALLOWED), r) {
case e.ICON_PINNED:
i = this.ePinnedIcon;
break;
case e.ICON_MOVE:
i = this.eMoveIcon;
break;
case e.ICON_LEFT:
i = this.eLeftIcon;
break;
case e.ICON_RIGHT:
i = this.eRightIcon;
break;
case e.ICON_GROUP:
i = this.eGroupIcon;
break;
case e.ICON_AGGREGATE:
i = this.eAggregateIcon;
break;
case e.ICON_PIVOT:
i = this.ePivotIcon;
break;
case e.ICON_NOT_ALLOWED:
i = this.eDropNotAllowedIcon;
break;
case e.ICON_HIDE:
i = this.eHideIcon;
break;
}
this.eGhostIcon.classList.toggle("ag-shake-left-to-right", o), !(i === this.eHideIcon && this.gridOptionsService.is("suppressDragLeaveHidesColumns")) && i && this.eGhostIcon.appendChild(i);
};
var e;
return t.ICON_PINNED = "pinned", t.ICON_MOVE = "move", t.ICON_LEFT = "left", t.ICON_RIGHT = "right", t.ICON_GROUP = "group", t.ICON_AGGREGATE = "aggregate", t.ICON_PIVOT = "pivot", t.ICON_NOT_ALLOWED = "notAllowed", t.ICON_HIDE = "hide", t.GHOST_TEMPLATE = `<div class="ag-dnd-ghost ag-unselectable">
<span class="ag-dnd-ghost-icon ag-shake-left-to-right"></span>
<div class="ag-dnd-ghost-label"></div>
</div>`, Ot([
h("dragService")
], t.prototype, "dragService", void 0), Ot([
h("mouseEventService")
], t.prototype, "mouseEventService", void 0), Ot([
h("columnApi")
], t.prototype, "columnApi", void 0), Ot([
h("gridApi")
], t.prototype, "gridApi", void 0), Ot([
b
], t.prototype, "init", null), Ot([
fe
], t.prototype, "clearDragSourceParamsList", null), t = e = Ot([
A("dragAndDropService")
], t), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var oi = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Dr = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Ho = (
/** @class */
function(n) {
oi(t, n);
function t(e, r, o, i, s, a) {
var l = n.call(this) || this;
return l.cellValueFn = e, l.rowNode = r, l.column = o, l.customGui = i, l.dragStartPixels = s, l.suppressVisibilityChange = a, l.dragSource = null, l;
}
return t.prototype.isCustomGui = function() {
return this.customGui != null;
}, t.prototype.postConstruct = function() {
if (this.customGui ? this.setDragElement(this.customGui, this.dragStartPixels) : (this.setTemplate(
/* html */
'<div class="ag-drag-handle ag-row-drag" aria-hidden="true"></div>'
), this.getGui().appendChild(oe("rowDrag", this.beans.gridOptionsService, null)), this.addDragSource()), this.checkCompatibility(), !this.suppressVisibilityChange) {
var e = this.beans.gridOptionsService.is("rowDragManaged") ? new ed(this, this.beans, this.rowNode, this.column) : new Zp(this, this.beans, this.rowNode, this.column);
this.createManagedBean(e, this.beans.context);
}
}, t.prototype.setDragElement = function(e, r) {
this.setTemplateFromElement(e), this.addDragSource(r);
}, t.prototype.getSelectedNodes = function() {
var e = this.beans.gridOptionsService.is("rowDragMultiRow");
if (!e)
return [this.rowNode];
var r = this.beans.selectionService.getSelectedNodes();
return r.indexOf(this.rowNode) !== -1 ? r : [this.rowNode];
}, t.prototype.checkCompatibility = function() {
var e = this.beans.gridOptionsService.is("rowDragManaged"), r = this.beans.gridOptionsService.isTreeData();
r && e && K(function() {
return console.warn("AG Grid: If using row drag with tree data, you cannot have rowDragManaged=true");
}, "RowDragComp.managedAndTreeData");
}, t.prototype.getDragItem = function() {
return {
rowNode: this.rowNode,
rowNodes: this.getSelectedNodes(),
columns: this.column ? [this.column] : void 0,
defaultTextValue: this.cellValueFn()
};
}, t.prototype.getRowDragText = function(e) {
if (e) {
var r = e.getColDef();
if (r.rowDragText)
return r.rowDragText;
}
return this.gridOptionsService.get("rowDragText");
}, t.prototype.addDragSource = function(e) {
var r = this;
e === void 0 && (e = 4), this.dragSource && this.removeDragSource();
var o = this.getRowDragText(this.column), i = this.localeService.getLocaleTextFunc();
this.dragSource = {
type: me.RowDrag,
eElement: this.getGui(),
dragItemName: function() {
var s, a = r.getDragItem(), l = ((s = a.rowNodes) === null || s === void 0 ? void 0 : s.length) || 1;
return o ? o(a, l) : l === 1 ? r.cellValueFn() : l + " " + i("rowDragRows", "rows");
},
getDragItem: function() {
return r.getDragItem();
},
dragStartPixels: e,
dragSourceDomDataKey: this.beans.gridOptionsService.getDomDataKey()
}, this.beans.dragAndDropService.addDragSource(this.dragSource, !0);
}, t.prototype.removeDragSource = function() {
this.dragSource && this.beans.dragAndDropService.removeDragSource(this.dragSource), this.dragSource = null;
}, Dr([
h("beans")
], t.prototype, "beans", void 0), Dr([
b
], t.prototype, "postConstruct", null), Dr([
fe
], t.prototype, "removeDragSource", null), t;
}(W)
), Nl = (
/** @class */
function(n) {
oi(t, n);
function t(e, r, o) {
var i = n.call(this) || this;
return i.parent = e, i.rowNode = r, i.column = o, i;
}
return t.prototype.setDisplayedOrVisible = function(e) {
var r = { skipAriaHidden: !0 };
if (e)
this.parent.setDisplayed(!1, r);
else {
var o = !0, i = !1;
this.column && (o = this.column.isRowDrag(this.rowNode) || this.parent.isCustomGui(), i = Jo(this.column.getColDef().rowDrag)), i ? (this.parent.setDisplayed(!0, r), this.parent.setVisible(o, r)) : (this.parent.setDisplayed(o, r), this.parent.setVisible(!0, r));
}
}, t;
}(T)
), Zp = (
/** @class */
function(n) {
oi(t, n);
function t(e, r, o, i) {
var s = n.call(this, e, o, i) || this;
return s.beans = r, s;
}
return t.prototype.postConstruct = function() {
this.addManagedPropertyListener("suppressRowDrag", this.onSuppressRowDrag.bind(this)), this.addManagedListener(this.rowNode, j.EVENT_DATA_CHANGED, this.workOutVisibility.bind(this)), this.addManagedListener(this.rowNode, j.EVENT_CELL_CHANGED, this.workOutVisibility.bind(this)), this.addManagedListener(this.rowNode, j.EVENT_CELL_CHANGED, this.workOutVisibility.bind(this)), this.addManagedListener(this.beans.eventService, v.EVENT_NEW_COLUMNS_LOADED, this.workOutVisibility.bind(this)), this.workOutVisibility();
}, t.prototype.onSuppressRowDrag = function() {
this.workOutVisibility();
}, t.prototype.workOutVisibility = function() {
var e = this.beans.gridOptionsService.is("suppressRowDrag");
this.setDisplayedOrVisible(e);
}, Dr([
b
], t.prototype, "postConstruct", null), t;
}(Nl)
), ed = (
/** @class */
function(n) {
oi(t, n);
function t(e, r, o, i) {
var s = n.call(this, e, o, i) || this;
return s.beans = r, s;
}
return t.prototype.postConstruct = function() {
this.addManagedListener(this.beans.eventService, v.EVENT_SORT_CHANGED, this.workOutVisibility.bind(this)), this.addManagedListener(this.beans.eventService, v.EVENT_FILTER_CHANGED, this.workOutVisibility.bind(this)), this.addManagedListener(this.beans.eventService, v.EVENT_COLUMN_ROW_GROUP_CHANGED, this.workOutVisibility.bind(this)), this.addManagedListener(this.beans.eventService, v.EVENT_NEW_COLUMNS_LOADED, this.workOutVisibility.bind(this)), this.addManagedListener(this.rowNode, j.EVENT_DATA_CHANGED, this.workOutVisibility.bind(this)), this.addManagedListener(this.rowNode, j.EVENT_CELL_CHANGED, this.workOutVisibility.bind(this)), this.addManagedPropertyListener("suppressRowDrag", this.onSuppressRowDrag.bind(this)), this.workOutVisibility();
}, t.prototype.onSuppressRowDrag = function() {
this.workOutVisibility();
}, t.prototype.workOutVisibility = function() {
var e = this.beans.ctrlsService.getGridBodyCtrl(), r = e.getRowDragFeature(), o = r && r.shouldPreventRowMove(), i = this.beans.gridOptionsService.is("suppressRowDrag"), s = this.beans.dragAndDropService.hasExternalDropZones(), a = o && !s || i;
this.setDisplayedOrVisible(a);
}, Dr([
b
], t.prototype, "postConstruct", null), t;
}(Nl)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var td = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Vo = function() {
return Vo = Object.assign || function(n) {
for (var t, e = 1, r = arguments.length; e < r; e++) {
t = arguments[e];
for (var o in t)
Object.prototype.hasOwnProperty.call(t, o) && (n[o] = t[o]);
}
return n;
}, Vo.apply(this, arguments);
}, ur = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, rd = (
/** @class */
function(n) {
td(t, n);
function t() {
return n !== null && n.apply(this, arguments) || this;
}
return t.prototype.init = function(e, r, o, i, s, a, l) {
this.params = l, this.eGui = r, this.eCheckbox = o, this.eExpanded = i, this.eContracted = s, this.comp = e, this.compClass = a;
var u = this.isTopLevelFooter(), c = this.isEmbeddedRowMismatch(), p = l.value == null && !l.node.master, d = !1;
if (this.gridOptionsService.is("groupIncludeFooter") && this.gridOptionsService.is("groupHideOpenParents")) {
var f = l.node;
if (f.footer) {
var g = l.colDef && l.colDef.showRowGroup, y = f.rowGroupColumn && f.rowGroupColumn.getColId();
d = g !== y;
}
}
this.cellIsBlank = u ? !1 : c || p && !l.node.master || d, !this.cellIsBlank && (this.setupShowingValueForOpenedParent(), this.findDisplayedGroupNode(), this.addFullWidthRowDraggerIfNeeded(), this.addExpandAndContract(), this.addCheckboxIfNeeded(), this.addValueElement(), this.setupIndent(), this.refreshAriaExpanded());
}, t.prototype.destroy = function() {
n.prototype.destroy.call(this), this.expandListener = null;
}, t.prototype.refreshAriaExpanded = function() {
var e = this.params, r = e.node, o = e.eParentOfValue;
if (this.expandListener && (this.expandListener = this.expandListener()), !this.isExpandable()) {
ja(o);
return;
}
var i = function() {
ke(o, !!r.expanded);
};
this.expandListener = this.addManagedListener(r, j.EVENT_EXPANDED_CHANGED, i) || null, i();
}, t.prototype.isTopLevelFooter = function() {
if (!this.gridOptionsService.is("groupIncludeTotalFooter") || this.params.value != null || this.params.node.level != -1)
return !1;
var e = this.params.colDef, r = e == null;
if (r || e.showRowGroup === !0)
return !0;
var o = this.columnModel.getRowGroupColumns();
if (!o || o.length === 0)
return !0;
var i = o[0];
return i.getId() === e.showRowGroup;
}, t.prototype.isEmbeddedRowMismatch = function() {
if (!this.params.fullWidth || !this.gridOptionsService.is("embedFullWidthRows"))
return !1;
var e = this.params.pinned === "left", r = this.params.pinned === "right", o = !e && !r;
return this.gridOptionsService.is("enableRtl") ? this.columnModel.isPinningLeft() ? !r : !o : this.columnModel.isPinningLeft() ? !e : !o;
}, t.prototype.findDisplayedGroupNode = function() {
var e = this.params.column, r = this.params.node;
if (this.showingValueForOpenedParent)
for (var o = r.parent; o != null; ) {
if (o.rowGroupColumn && e.isRowGroupDisplayed(o.rowGroupColumn.getId())) {
this.displayedGroupNode = o;
break;
}
o = o.parent;
}
x(this.displayedGroupNode) && (this.displayedGroupNode = r);
}, t.prototype.setupShowingValueForOpenedParent = function() {
var e = this.params.node, r = this.params.column;
if (!this.gridOptionsService.is("groupHideOpenParents")) {
this.showingValueForOpenedParent = !1;
return;
}
if (!e.groupData) {
this.showingValueForOpenedParent = !1;
return;
}
var o = e.rowGroupColumn != null;
if (o) {
var i = e.rowGroupColumn.getId(), s = r.isRowGroupDisplayed(i);
if (s) {
this.showingValueForOpenedParent = !1;
return;
}
}
var a = e.groupData[r.getId()] != null;
this.showingValueForOpenedParent = a;
}, t.prototype.addValueElement = function() {
this.displayedGroupNode.footer ? this.addFooterValue() : (this.addGroupValue(), this.addChildCount());
}, t.prototype.addGroupValue = function() {
var e = this.adjustParamsWithDetailsFromRelatedColumn(), r = this.getInnerCompDetails(e), o = e.valueFormatted, i = e.value, s = o;
if (s == null)
if (i === "" && this.params.node.group) {
var a = this.localeService.getLocaleTextFunc();
s = a("blanks", "(Blanks)");
} else
s = i ?? null;
this.comp.setInnerRenderer(r, s);
}, t.prototype.adjustParamsWithDetailsFromRelatedColumn = function() {
var e = this.displayedGroupNode.rowGroupColumn, r = this.params.column;
if (!e)
return this.params;
var o = r != null;
if (o) {
var i = r.isRowGroupDisplayed(e.getId());
if (!i)
return this.params;
}
var s = this.params, a = this.params, l = a.value, u = a.node, c = this.valueFormatterService.formatValue(e, u, l), p = Vo(Vo({}, s), { valueFormatted: c });
return p;
}, t.prototype.addFooterValue = function() {
var e = this.params.footerValueGetter, r = "";
if (e) {
var o = bn(this.params);
o.value = this.params.value, typeof e == "function" ? r = e(o) : typeof e == "string" ? r = this.expressionService.evaluate(e, o) : console.warn("AG Grid: footerValueGetter should be either a function or a string (expression)");
} else
r = "Total " + (this.params.value != null ? this.params.value : "");
var i = this.getInnerCompDetails(this.params);
this.comp.setInnerRenderer(i, r);
}, t.prototype.getInnerCompDetails = function(e) {
var r = this;
if (e.fullWidth)
return this.userComponentFactory.getFullWidthGroupRowInnerCellRenderer(this.gridOptionsService.get("groupRowRendererParams"), e);
var o = this.userComponentFactory.getInnerRendererDetails(e, e), i = function(c) {
return c && c.componentClass == r.compClass;
};
if (o && !i(o))
return o;
var s = this.displayedGroupNode.rowGroupColumn, a = s ? s.getColDef() : void 0;
if (a) {
var l = this.userComponentFactory.getCellRendererDetails(a, e);
if (l && !i(l))
return l;
if (i(l) && a.cellRendererParams && a.cellRendererParams.innerRenderer) {
var u = this.userComponentFactory.getInnerRendererDetails(a.cellRendererParams, e);
return u;
}
}
}, t.prototype.addChildCount = function() {
this.params.suppressCount || (this.addManagedListener(this.displayedGroupNode, j.EVENT_ALL_CHILDREN_COUNT_CHANGED, this.updateChildCount.bind(this)), this.updateChildCount());
}, t.prototype.updateChildCount = function() {
var e = this.displayedGroupNode.allChildrenCount, r = this.isShowRowGroupForThisRow(), o = r && e != null && e >= 0, i = o ? "(" + e + ")" : "";
this.comp.setChildCount(i);
}, t.prototype.isShowRowGroupForThisRow = function() {
if (this.gridOptionsService.isTreeData())
return !0;
var e = this.displayedGroupNode.rowGroupColumn;
if (!e)
return !1;
var r = this.params.column, o = r == null || r.isRowGroupDisplayed(e.getId());
return o;
}, t.prototype.addExpandAndContract = function() {
var e, r = this.params, o = oe("groupExpanded", this.gridOptionsService, null), i = oe("groupContracted", this.gridOptionsService, null);
o && this.eExpanded.appendChild(o), i && this.eContracted.appendChild(i);
var s = r.eGridCell, a = ((e = this.params.column) === null || e === void 0 ? void 0 : e.isCellEditable(r.node)) && this.gridOptionsService.is("enableGroupEdit");
!a && this.isExpandable() && !r.suppressDoubleClickExpand && this.addManagedListener(s, "dblclick", this.onCellDblClicked.bind(this)), this.addManagedListener(this.eExpanded, "click", this.onExpandClicked.bind(this)), this.addManagedListener(this.eContracted, "click", this.onExpandClicked.bind(this)), this.addManagedListener(s, "keydown", this.onKeyDown.bind(this)), this.addManagedListener(r.node, j.EVENT_EXPANDED_CHANGED, this.showExpandAndContractIcons.bind(this)), this.showExpandAndContractIcons();
var l = this.onRowNodeIsExpandableChanged.bind(this);
this.addManagedListener(this.displayedGroupNode, j.EVENT_ALL_CHILDREN_COUNT_CHANGED, l), this.addManagedListener(this.displayedGroupNode, j.EVENT_MASTER_CHANGED, l), this.addManagedListener(this.displayedGroupNode, j.EVENT_GROUP_CHANGED, l), this.addManagedListener(this.displayedGroupNode, j.EVENT_HAS_CHILDREN_CHANGED, l);
}, t.prototype.onExpandClicked = function(e) {
Ze(e) || (Xt(e), this.onExpandOrContract(e));
}, t.prototype.onExpandOrContract = function(e) {
var r = this.displayedGroupNode, o = !r.expanded;
!o && r.sticky && this.scrollToStickyNode(r), r.setExpanded(o, e);
}, t.prototype.scrollToStickyNode = function(e) {
var r = this.ctrlsService.getGridBodyCtrl(), o = r.getScrollFeature();
o.setVerticalScrollPosition(e.rowTop - e.stickyRowTop);
}, t.prototype.isExpandable = function() {
if (this.showingValueForOpenedParent)
return !0;
var e = this.displayedGroupNode, r = this.columnModel.isPivotMode() && e.leafGroup, o = e.isExpandable() && !e.footer && !r;
if (!o)
return !1;
var i = this.params.column, s = i != null && typeof i.getColDef().showRowGroup == "string";
if (s) {
var a = this.isShowRowGroupForThisRow();
return a;
}
return !0;
}, t.prototype.showExpandAndContractIcons = function() {
var e = this, r = e.params, o = e.displayedGroupNode, i = e.columnModel, s = r.node, a = this.isExpandable();
if (a) {
var l = this.showingValueForOpenedParent ? !0 : s.expanded;
this.comp.setExpandedDisplayed(l), this.comp.setContractedDisplayed(!l);
} else
this.comp.setExpandedDisplayed(!1), this.comp.setContractedDisplayed(!1);
var u = i.isPivotMode(), c = u && o.leafGroup, p = a && !c, d = s.footer && s.level === -1;
this.comp.addOrRemoveCssClass("ag-cell-expandable", p), this.comp.addOrRemoveCssClass("ag-row-group", p), u ? this.comp.addOrRemoveCssClass("ag-pivot-leaf-group", c) : d || this.comp.addOrRemoveCssClass("ag-row-group-leaf-indent", !p);
}, t.prototype.onRowNodeIsExpandableChanged = function() {
this.showExpandAndContractIcons(), this.setIndent(), this.refreshAriaExpanded();
}, t.prototype.setupIndent = function() {
var e = this.params.node, r = this.params.suppressPadding;
r || (this.addManagedListener(e, j.EVENT_UI_LEVEL_CHANGED, this.setIndent.bind(this)), this.setIndent());
}, t.prototype.setIndent = function() {
if (!this.gridOptionsService.is("groupHideOpenParents")) {
var e = this.params, r = e.node, o = !!e.colDef, i = this.gridOptionsService.isTreeData(), s = !o || i || e.colDef.showRowGroup === !0, a = s ? r.uiLevel : 0;
this.indentClass && this.comp.addOrRemoveCssClass(this.indentClass, !1), this.indentClass = "ag-row-group-indent-" + a, this.comp.addOrRemoveCssClass(this.indentClass, !0);
}
}, t.prototype.addFullWidthRowDraggerIfNeeded = function() {
var e = this;
if (!(!this.params.fullWidth || !this.params.rowDrag)) {
var r = new Ho(function() {
return e.params.value;
}, this.params.node);
this.createManagedBean(r, this.context), this.eGui.insertAdjacentElement("afterbegin", r.getGui());
}
}, t.prototype.isUserWantsSelected = function() {
var e = this.params.checkbox;
return typeof e == "function" || e === !0;
}, t.prototype.addCheckboxIfNeeded = function() {
var e = this, r = this.displayedGroupNode, o = this.isUserWantsSelected() && // footers cannot be selected
!r.footer && // pinned rows cannot be selected
!r.rowPinned && // details cannot be selected
!r.detail;
if (o) {
var i = new xl();
this.getContext().createBean(i), i.init({
rowNode: r,
column: this.params.column,
overrides: {
isVisible: this.params.checkbox,
callbackParams: this.params,
removeHidden: !0
}
}), this.eCheckbox.appendChild(i.getGui()), this.addDestroyFunc(function() {
return e.getContext().destroyBean(i);
});
}
this.comp.setCheckboxVisible(o);
}, t.prototype.onKeyDown = function(e) {
var r = e.key === _.ENTER;
if (!(!r || this.params.suppressEnterExpand)) {
var o = this.params.column && this.params.column.isCellEditable(this.params.node);
o || this.onExpandOrContract(e);
}
}, t.prototype.onCellDblClicked = function(e) {
if (!Ze(e)) {
var r = Ao(this.eExpanded, e) || Ao(this.eContracted, e);
r || this.onExpandOrContract(e);
}
}, ur([
h("expressionService")
], t.prototype, "expressionService", void 0), ur([
h("valueFormatterService")
], t.prototype, "valueFormatterService", void 0), ur([
h("columnModel")
], t.prototype, "columnModel", void 0), ur([
h("userComponentFactory")
], t.prototype, "userComponentFactory", void 0), ur([
h("ctrlsService")
], t.prototype, "ctrlsService", void 0), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var od = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), cr = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Ts = (
/** @class */
function(n) {
od(t, n);
function t() {
return n.call(this, t.TEMPLATE) || this;
}
return t.prototype.init = function(e) {
var r = this, o = {
setInnerRenderer: function(l, u) {
return r.setRenderDetails(l, u);
},
setChildCount: function(l) {
return r.eChildCount.innerHTML = l;
},
addOrRemoveCssClass: function(l, u) {
return r.addOrRemoveCssClass(l, u);
},
setContractedDisplayed: function(l) {
return k(r.eContracted, l);
},
setExpandedDisplayed: function(l) {
return k(r.eExpanded, l);
},
setCheckboxVisible: function(l) {
return r.eCheckbox.classList.toggle("ag-invisible", !l);
}
}, i = this.createManagedBean(new rd()), s = !e.colDef, a = this.getGui();
i.init(o, a, this.eCheckbox, this.eExpanded, this.eContracted, this.constructor, e), s && le(a, "gridcell");
}, t.prototype.setRenderDetails = function(e, r) {
var o = this;
if (e) {
var i = e.newAgStackInstance();
if (!i)
return;
i.then(function(s) {
if (s) {
var a = function() {
return o.context.destroyBean(s);
};
o.isAlive() ? (o.eValue.appendChild(s.getGui()), o.addDestroyFunc(a)) : a();
}
});
} else
this.eValue.innerText = r;
}, t.prototype.destroy = function() {
this.getContext().destroyBean(this.innerCellRenderer), n.prototype.destroy.call(this);
}, t.prototype.refresh = function() {
return !1;
}, t.TEMPLATE = `<span class="ag-cell-wrapper">
<span class="ag-group-expanded" ref="eExpanded"></span>
<span class="ag-group-contracted" ref="eContracted"></span>
<span class="ag-group-checkbox ag-invisible" ref="eCheckbox"></span>
<span class="ag-group-value" ref="eValue"></span>
<span class="ag-group-child-count" ref="eChildCount"></span>
</span>`, cr([
P("eExpanded")
], t.prototype, "eExpanded", void 0), cr([
P("eContracted")
], t.prototype, "eContracted", void 0), cr([
P("eCheckbox")
], t.prototype, "eCheckbox", void 0), cr([
P("eValue")
], t.prototype, "eValue", void 0), cr([
P("eChildCount")
], t.prototype, "eChildCount", void 0), t;
}(W)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var id = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), bs = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, nd = (
/** @class */
function(n) {
id(t, n);
function t() {
return n.call(this, t.TEMPLATE) || this;
}
return t.prototype.init = function(e) {
e.node.failedLoad ? this.setupFailed() : this.setupLoading();
}, t.prototype.setupFailed = function() {
var e = this.localeService.getLocaleTextFunc();
this.eLoadingText.innerText = e("loadingError", "ERR");
}, t.prototype.setupLoading = function() {
var e = oe("groupLoading", this.gridOptionsService, null);
e && this.eLoadingIcon.appendChild(e);
var r = this.localeService.getLocaleTextFunc();
this.eLoadingText.innerText = r("loadingOoo", "Loading");
}, t.prototype.refresh = function(e) {
return !1;
}, t.prototype.destroy = function() {
n.prototype.destroy.call(this);
}, t.TEMPLATE = `<div class="ag-loading">
<span class="ag-loading-icon" ref="eLoadingIcon"></span>
<span class="ag-loading-text" ref="eLoadingText"></span>
</div>`, bs([
P("eLoadingIcon")
], t.prototype, "eLoadingIcon", void 0), bs([
P("eLoadingText")
], t.prototype, "eLoadingText", void 0), t;
}(W)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var sd = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), ad = (
/** @class */
function(n) {
sd(t, n);
function t() {
return n.call(this) || this;
}
return t.prototype.destroy = function() {
n.prototype.destroy.call(this);
}, t.prototype.init = function(e) {
var r, o = (r = this.gridOptionsService.get("overlayLoadingTemplate")) !== null && r !== void 0 ? r : t.DEFAULT_LOADING_OVERLAY_TEMPLATE, i = this.localeService.getLocaleTextFunc(), s = o.replace("[LOADING...]", i("loadingOoo", "Loading..."));
this.setTemplate(s);
}, t.DEFAULT_LOADING_OVERLAY_TEMPLATE = '<span class="ag-overlay-loading-center">[LOADING...]</span>', t;
}(W)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var ld = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), ud = (
/** @class */
function(n) {
ld(t, n);
function t() {
return n.call(this) || this;
}
return t.prototype.destroy = function() {
n.prototype.destroy.call(this);
}, t.prototype.init = function(e) {
var r, o = (r = this.gridOptionsService.get("overlayNoRowsTemplate")) !== null && r !== void 0 ? r : t.DEFAULT_NO_ROWS_TEMPLATE, i = this.localeService.getLocaleTextFunc(), s = o.replace("[NO_ROWS_TO_SHOW]", i("noRowsToShow", "No Rows To Show"));
this.setTemplate(s);
}, t.DEFAULT_NO_ROWS_TEMPLATE = '<span class="ag-overlay-no-rows-center">[NO_ROWS_TO_SHOW]</span>', t;
}(W)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var cd = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), pd = (
/** @class */
function(n) {
cd(t, n);
function t() {
return n.call(
this,
/* html */
'<div class="ag-tooltip"></div>'
) || this;
}
return t.prototype.init = function(e) {
var r = e.value;
this.getGui().innerHTML = tt(r);
}, t;
}(Ur)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var dd = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), bi = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, hd = function(n, t) {
var e = typeof Symbol == "function" && n[Symbol.iterator];
if (!e)
return n;
var r = e.call(n), o, i = [], s;
try {
for (; (t === void 0 || t-- > 0) && !(o = r.next()).done; )
i.push(o.value);
} catch (a) {
s = { error: a };
} finally {
try {
o && !o.done && (e = r.return) && e.call(r);
} finally {
if (s)
throw s.error;
}
}
return i;
}, fd = function() {
for (var n = [], t = 0; t < arguments.length; t++)
n = n.concat(hd(arguments[t]));
return n;
}, vd = (
/** @class */
function(n) {
dd(t, n);
function t() {
var e = n !== null && n.apply(this, arguments) || this;
return e.agGridDefaults = {
//date
agDateInput: _p,
//header
agColumnHeader: Lp,
agColumnGroupHeader: Ip,
agSortIndicator: rs,
//floating filters
agTextColumnFloatingFilter: Dp,
agNumberColumnFloatingFilter: bp,
agDateColumnFloatingFilter: wp,
agReadOnlyFloatingFilter: Xc,
// renderers
agAnimateShowChangeCellRenderer: $p,
agAnimateSlideCellRenderer: Qp,
agGroupCellRenderer: Ts,
agGroupRowRenderer: Ts,
agLoadingCellRenderer: nd,
//editors
agCellEditor: Rs,
agTextCellEditor: Rs,
agSelectCellEditor: Bp,
agLargeTextCellEditor: Hp,
//filter
agTextColumnFilter: ts,
agNumberColumnFilter: Pl,
agDateColumnFilter: _l,
//overlays
agLoadingOverlay: ad,
agNoRowsOverlay: ud,
// tooltips
agTooltipComponent: pd
}, e.enterpriseAgDefaultCompsModule = {
agSetColumnFilter: F.SetFilterModule,
agSetColumnFloatingFilter: F.SetFilterModule,
agMultiColumnFilter: F.MultiFilterModule,
agMultiColumnFloatingFilter: F.MultiFilterModule,
agGroupColumnFilter: F.RowGroupingModule,
agGroupColumnFloatingFilter: F.RowGroupingModule,
agRichSelect: F.RichSelectModule,
agRichSelectCellEditor: F.RichSelectModule,
agDetailCellRenderer: F.MasterDetailModule,
agSparklineCellRenderer: F.SparklinesModule
}, e.deprecatedAgGridDefaults = {
agPopupTextCellEditor: 'AG Grid: Since v27.1 The agPopupTextCellEditor is deprecated. Instead use { cellEditor: "agTextCellEditor", cellEditorPopup: true }',
agPopupSelectCellEditor: 'AG Grid: Since v27.1 the agPopupSelectCellEditor is deprecated. Instead use { cellEditor: "agSelectCellEditor", cellEditorPopup: true }'
}, e.jsComps = {}, e.fwComps = {}, e;
}
return t.prototype.init = function() {
var e = this;
this.gridOptions.components != null && J(this.gridOptions.components, function(r, o) {
return e.registerJsComponent(r, o);
}), this.gridOptions.frameworkComponents != null && J(this.gridOptions.frameworkComponents, function(r, o) {
return e.registerFwComponent(r, o);
});
}, t.prototype.registerDefaultComponent = function(e, r) {
if (this.agGridDefaults[e]) {
console.error("Trying to overwrite a default component. You should call registerComponent");
return;
}
this.agGridDefaults[e] = r;
}, t.prototype.registerJsComponent = function(e, r) {
if (this.fwComps[e]) {
console.error("Trying to register a component that you have already registered for frameworks: " + e);
return;
}
this.jsComps[e] = r;
}, t.prototype.registerFwComponent = function(e, r) {
var o = "AG Grid: As of v27, registering components via grid property frameworkComponents is deprecated. Instead register both JavaScript AND Framework Components via the components property.";
K(function() {
return console.warn(o);
}, "UserComponentRegistry.frameworkComponentsDeprecated"), this.fwComps[e] = r;
}, t.prototype.retrieve = function(e, r) {
var o = this, i = function(d, f) {
return { componentFromFramework: f, component: d };
}, s = this.getFrameworkOverrides().frameworkComponent(r, this.gridOptions.components);
if (s != null)
return i(s, !0);
var a = this.fwComps[r];
if (a)
return i(a, !0);
var l = this.jsComps[r];
if (l) {
var u = this.getFrameworkOverrides().isFrameworkComponent(l);
return i(l, u);
}
var c = this.agGridDefaults[r];
if (c)
return i(c, !1);
var p = this.enterpriseAgDefaultCompsModule[r];
return p ? N.assertRegistered(p, "AG Grid '" + e + "' component: " + r) : this.deprecatedAgGridDefaults[r] ? K(function() {
return console.warn(o.deprecatedAgGridDefaults[r]);
}, r) : K(function() {
o.warnAboutMissingComponent(e, r);
}, "MissingComp" + r), null;
}, t.prototype.warnAboutMissingComponent = function(e, r) {
var o = fd(Object.keys(this.agGridDefaults).filter(function(s) {
return !["agCellEditor", "agGroupRowRenderer", "agSortIndicator"].includes(s);
}), Object.keys(this.jsComps), Object.keys(this.fwComps)), i = An(r, o, !0, 0.8);
console.warn("AG Grid: Could not find '" + r + `' component. It was configured as "` + e + ": '" + r + `'" but it wasn't found in the list of registered components.`), i.length > 0 && console.warn(" Did you mean: [" + i.slice(0, 3) + "]?"), console.warn("If using a custom component check it has been registered as described in: https://ag-grid.com/javascript-data-grid/components/");
}, bi([
h("gridOptions")
], t.prototype, "gridOptions", void 0), bi([
b
], t.prototype, "init", null), t = bi([
A("userComponentRegistry")
], t), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var gd = {
propertyName: "dateComponent",
cellRenderer: !1
}, yd = {
propertyName: "headerComponent",
cellRenderer: !1
}, Cd = {
propertyName: "headerGroupComponent",
cellRenderer: !1
}, Ps = {
propertyName: "cellRenderer",
cellRenderer: !0
}, md = {
propertyName: "cellEditor",
cellRenderer: !1
}, Ds = {
propertyName: "innerRenderer",
cellRenderer: !0
}, wd = {
propertyName: "loadingOverlayComponent",
cellRenderer: !1
}, Sd = {
propertyName: "noRowsOverlayComponent",
cellRenderer: !1
}, Ed = {
propertyName: "tooltipComponent",
cellRenderer: !1
}, wn = {
propertyName: "filter",
cellRenderer: !1
}, _d = {
propertyName: "floatingFilterComponent",
cellRenderer: !1
}, Rd = {
propertyName: "toolPanel",
cellRenderer: !1
}, Od = {
propertyName: "statusPanel",
cellRenderer: !1
}, Td = {
propertyName: "fullWidthCellRenderer",
cellRenderer: !0
}, bd = {
propertyName: "loadingCellRenderer",
cellRenderer: !0
}, Pd = {
propertyName: "groupRowRenderer",
cellRenderer: !0
}, Dd = {
propertyName: "detailCellRenderer",
cellRenderer: !0
};
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Ad = (
/** @class */
function() {
function n() {
}
return n.getFloatingFilterType = function(t) {
return this.filterToFloatingFilterMapping[t];
}, n.filterToFloatingFilterMapping = {
set: "agSetColumnFloatingFilter",
agSetColumnFilter: "agSetColumnFloatingFilter",
multi: "agMultiColumnFloatingFilter",
agMultiColumnFilter: "agMultiColumnFloatingFilter",
group: "agGroupColumnFloatingFilter",
agGroupColumnFilter: "agGroupColumnFloatingFilter",
number: "agNumberColumnFloatingFilter",
agNumberColumnFilter: "agNumberColumnFloatingFilter",
date: "agDateColumnFloatingFilter",
agDateColumnFilter: "agDateColumnFloatingFilter",
text: "agTextColumnFloatingFilter",
agTextColumnFilter: "agTextColumnFloatingFilter"
}, n;
}()
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Fd = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Gt = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Ld = (
/** @class */
function(n) {
Fd(t, n);
function t() {
return n !== null && n.apply(this, arguments) || this;
}
return t.prototype.getHeaderCompDetails = function(e, r) {
return this.getCompDetails(e, yd, "agColumnHeader", r);
}, t.prototype.getHeaderGroupCompDetails = function(e) {
var r = e.columnGroup.getColGroupDef();
return this.getCompDetails(r, Cd, "agColumnGroupHeader", e);
}, t.prototype.getFullWidthCellRendererDetails = function(e) {
return this.getCompDetails(this.gridOptions, Td, null, e, !0);
}, t.prototype.getFullWidthLoadingCellRendererDetails = function(e) {
return this.getCompDetails(this.gridOptions, bd, "agLoadingCellRenderer", e, !0);
}, t.prototype.getFullWidthGroupCellRendererDetails = function(e) {
return this.getCompDetails(this.gridOptions, Pd, "agGroupRowRenderer", e, !0);
}, t.prototype.getFullWidthDetailCellRendererDetails = function(e) {
return this.getCompDetails(this.gridOptions, Dd, "agDetailCellRenderer", e, !0);
}, t.prototype.getInnerRendererDetails = function(e, r) {
return this.getCompDetails(e, Ds, null, r);
}, t.prototype.getFullWidthGroupRowInnerCellRenderer = function(e, r) {
return this.getCompDetails(e, Ds, null, r);
}, t.prototype.getCellRendererDetails = function(e, r) {
return this.getCompDetails(e, Ps, null, r);
}, t.prototype.getCellEditorDetails = function(e, r) {
return this.getCompDetails(e, md, "agCellEditor", r, !0);
}, t.prototype.getFilterDetails = function(e, r, o) {
return this.getCompDetails(e, wn, o, r, !0);
}, t.prototype.getDateCompDetails = function(e) {
return this.getCompDetails(this.gridOptions, gd, "agDateInput", e, !0);
}, t.prototype.getLoadingOverlayCompDetails = function(e) {
return this.getCompDetails(this.gridOptions, wd, "agLoadingOverlay", e, !0);
}, t.prototype.getNoRowsOverlayCompDetails = function(e) {
return this.getCompDetails(this.gridOptions, Sd, "agNoRowsOverlay", e, !0);
}, t.prototype.getTooltipCompDetails = function(e) {
return this.getCompDetails(e.colDef, Ed, "agTooltipComponent", e, !0);
}, t.prototype.getSetFilterCellRendererDetails = function(e, r) {
return this.getCompDetails(e, Ps, null, r);
}, t.prototype.getFloatingFilterCompDetails = function(e, r, o) {
return this.getCompDetails(e, _d, o, r);
}, t.prototype.getToolPanelCompDetails = function(e, r) {
return this.getCompDetails(e, Rd, null, r, !0);
}, t.prototype.getStatusPanelCompDetails = function(e, r) {
return this.getCompDetails(e, Od, null, r, !0);
}, t.prototype.getCompDetails = function(e, r, o, i, s) {
var a = this;
s === void 0 && (s = !1);
var l = r.propertyName, u = r.cellRenderer, c = this.getCompKeys(e, r, i), p = c.compName, d = c.jsComp, f = c.fwComp, g = c.paramsFromSelector, y = c.popupFromSelector, C = c.popupPositionFromSelector, m = function(D) {
var M = a.userComponentRegistry.retrieve(l, D);
M && (d = M.componentFromFramework ? void 0 : M.component, f = M.componentFromFramework ? M.component : void 0);
};
if (p != null && m(p), d == null && f == null && o != null && m(o), d && u && !this.agComponentUtils.doesImplementIComponent(d) && (d = this.agComponentUtils.adaptFunction(l, d)), !d && !f) {
s && console.error("AG Grid: Could not find component " + p + ", did you forget to configure this component?");
return;
}
var w = this.mergeParamsWithApplicationProvidedParams(e, r, i, g), E = d == null, R = d || f;
return {
componentFromFramework: E,
componentClass: R,
params: w,
type: r,
popupFromSelector: y,
popupPositionFromSelector: C,
newAgStackInstance: function() {
return a.newAgStackInstance(R, E, w, r);
}
};
}, t.prototype.getCompKeys = function(e, r, o) {
var i = this, s = r.propertyName, a, l, u, c, p, d;
if (e) {
var f = e, g = f[s + "Selector"], y = g ? g(o) : null, C = function(w, E) {
var R = function() {
var M = "AG Grid: As of v27, the property " + s + "Framework is deprecated. The property " + s + " can now be used for JavaScript AND Framework Components.";
K(function() {
return console.warn(M);
}, "UserComponentFactory." + s + "FrameworkDeprecated");
};
if (typeof w == "string")
a = w;
else if (typeof E == "string")
R(), a = E;
else if (w != null && w !== !0) {
var D = i.getFrameworkOverrides().isFrameworkComponent(w);
D ? u = w : l = w;
} else
E != null && (R(), u = E);
};
if (y) {
if (y.frameworkComponent != null) {
var m = "AG Grid: As of v27, the return for " + s + "Selector has attributes [component, params] only. The attribute frameworkComponent is deprecated. You should now return back Framework Components using the 'component' attribute and the grid works out if it's a framework component or not.";
K(function() {
return console.warn(m);
}, "UserComponentFactory." + s + "FrameworkSelectorDeprecated"), C(y.frameworkComponent, void 0);
} else
C(y.component, void 0);
c = y.params, p = y.popup, d = y.popupPosition;
} else
C(f[s], f[s + "Framework"]);
}
return { compName: a, jsComp: l, fwComp: u, paramsFromSelector: c, popupFromSelector: p, popupPositionFromSelector: d };
}, t.prototype.newAgStackInstance = function(e, r, o, i) {
var s = i.propertyName, a = !r, l;
if (a)
l = new e();
else {
var u = this.componentMetadataProvider.retrieve(s);
l = this.frameworkComponentWrapper.wrap(e, u.mandatoryMethodList, u.optionalMethodList, i);
}
var c = this.initComponent(l, o);
return c == null ? Ne.resolve(l) : c.then(function() {
return l;
});
}, t.prototype.mergeParamsWithApplicationProvidedParams = function(e, r, o, i) {
i === void 0 && (i = null);
var s = {
context: this.gridOptionsService.context,
columnApi: this.gridOptionsService.columnApi,
api: this.gridOptionsService.api
};
Re(s, o);
var a = e, l = a && a[r.propertyName + "Params"];
if (typeof l == "function") {
var u = l(o);
Re(s, u);
} else
typeof l == "object" && Re(s, l);
return Re(s, i), s;
}, t.prototype.initComponent = function(e, r) {
if (this.context.createBean(e), e.init != null)
return e.init(r);
}, t.prototype.getDefaultFloatingFilterType = function(e) {
if (e == null)
return null;
var r = null, o = this.getCompKeys(e, wn), i = o.compName, s = o.jsComp, a = o.fwComp;
if (i)
r = Ad.getFloatingFilterType(i);
else {
var l = s == null && a == null && e.filter === !0;
if (l) {
var u = N.isRegistered(F.SetFilterModule);
r = u ? "agSetColumnFloatingFilter" : "agTextColumnFloatingFilter";
}
}
return r;
}, Gt([
h("gridOptions")
], t.prototype, "gridOptions", void 0), Gt([
h("agComponentUtils")
], t.prototype, "agComponentUtils", void 0), Gt([
h("componentMetadataProvider")
], t.prototype, "componentMetadataProvider", void 0), Gt([
h("userComponentRegistry")
], t.prototype, "userComponentRegistry", void 0), Gt([
Y("frameworkComponentWrapper")
], t.prototype, "frameworkComponentWrapper", void 0), t = Gt([
A("userComponentFactory")
], t), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Bo;
(function(n) {
n[n.SINGLE_SHEET = 0] = "SINGLE_SHEET", n[n.MULTI_SHEET = 1] = "MULTI_SHEET";
})(Bo || (Bo = {}));
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Md = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Pi = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Id = (
/** @class */
function(n) {
Md(t, n);
function t() {
var e = n !== null && n.apply(this, arguments) || this;
return e.dragEndFunctions = [], e.dragSources = [], e;
}
return t.prototype.removeAllListeners = function() {
this.dragSources.forEach(this.removeListener.bind(this)), this.dragSources.length = 0;
}, t.prototype.removeListener = function(e) {
var r = e.dragSource.eElement, o = e.mouseDownListener;
if (r.removeEventListener("mousedown", o), e.touchEnabled) {
var i = e.touchStartListener;
r.removeEventListener("touchstart", i, { passive: !0 });
}
}, t.prototype.removeDragSource = function(e) {
var r = this.dragSources.find(function(o) {
return o.dragSource === e;
});
r && (this.removeListener(r), ge(this.dragSources, r));
}, t.prototype.isDragging = function() {
return this.dragging;
}, t.prototype.addDragSource = function(e, r) {
var o = this;
r === void 0 && (r = !1);
var i = this.onMouseDown.bind(this, e);
e.eElement.addEventListener("mousedown", i);
var s = null, a = this.gridOptionsService.is("suppressTouch");
r && !a && (s = function(l) {
kn(l.target) || (l.cancelable && (l.preventDefault(), l.stopPropagation()), o.onTouchStart(e, l));
}, e.eElement.addEventListener("touchstart", s, { passive: !1 })), this.dragSources.push({
dragSource: e,
mouseDownListener: i,
touchStartListener: s,
touchEnabled: r
});
}, t.prototype.getStartTarget = function() {
return this.startTarget;
}, t.prototype.onTouchStart = function(e, r) {
var o = this;
this.currentDragParams = e, this.dragging = !1;
var i = r.touches[0];
this.touchLastTime = i, this.touchStart = i;
var s = function(p) {
return o.onTouchMove(p, e.eElement);
}, a = function(p) {
return o.onTouchUp(p, e.eElement);
}, l = function(p) {
p.cancelable && p.preventDefault();
}, u = r.target, c = [
// Prevents the page document from moving while we are dragging items around.
// preventDefault needs to be called in the touchmove listener and never inside the
// touchstart, because using touchstart causes the click event to be cancelled on touch devices.
{ target: this.gridOptionsService.getRootNode(), type: "touchmove", listener: l, options: { passive: !1 } },
{ target: u, type: "touchmove", listener: s, options: { passive: !0 } },
{ target: u, type: "touchend", listener: a, options: { passive: !0 } },
{ target: u, type: "touchcancel", listener: a, options: { passive: !0 } }
];
this.addTemporaryEvents(c), e.dragStartPixels === 0 && this.onCommonMove(i, this.touchStart, e.eElement);
}, t.prototype.onMouseDown = function(e, r) {
var o = this, i = r;
if (!(e.skipMouseEvent && e.skipMouseEvent(r)) && !i._alreadyProcessedByDragService && (i._alreadyProcessedByDragService = !0, r.button === 0)) {
this.currentDragParams = e, this.dragging = !1, this.mouseStartEvent = r, this.startTarget = r.target;
var s = function(p) {
return o.onMouseMove(p, e.eElement);
}, a = function(p) {
return o.onMouseUp(p, e.eElement);
}, l = function(p) {
return p.preventDefault();
}, u = this.gridOptionsService.getRootNode(), c = [
{ target: u, type: "mousemove", listener: s },
{ target: u, type: "mouseup", listener: a },
{ target: u, type: "contextmenu", listener: l }
];
this.addTemporaryEvents(c), e.dragStartPixels === 0 && this.onMouseMove(r, e.eElement);
}
}, t.prototype.addTemporaryEvents = function(e) {
e.forEach(function(r) {
var o = r.target, i = r.type, s = r.listener, a = r.options;
o.addEventListener(i, s, a);
}), this.dragEndFunctions.push(function() {
e.forEach(function(r) {
var o = r.target, i = r.type, s = r.listener, a = r.options;
o.removeEventListener(i, s, a);
});
});
}, t.prototype.isEventNearStartEvent = function(e, r) {
var o = this.currentDragParams.dragStartPixels, i = O(o) ? o : 4;
return Qn(e, r, i);
}, t.prototype.getFirstActiveTouch = function(e) {
for (var r = 0; r < e.length; r++)
if (e[r].identifier === this.touchStart.identifier)
return e[r];
return null;
}, t.prototype.onCommonMove = function(e, r, o) {
if (!this.dragging) {
if (!this.dragging && this.isEventNearStartEvent(e, r))
return;
this.dragging = !0;
var i = {
type: v.EVENT_DRAG_STARTED,
target: o
};
this.eventService.dispatchEvent(i), this.currentDragParams.onDragStart(r), this.currentDragParams.onDragging(r);
}
this.currentDragParams.onDragging(e);
}, t.prototype.onTouchMove = function(e, r) {
var o = this.getFirstActiveTouch(e.touches);
o && this.onCommonMove(o, this.touchStart, r);
}, t.prototype.onMouseMove = function(e, r) {
(this.gridOptionsService.is("enableCellTextSelection") || rt()) && // The event type can be `mousedown` when `dragStartPixels=0`
// we should only preventDefault on `mousemove`.
e.type === "mousemove" && e.cancelable && this.mouseEventService.isEventFromThisGrid(e) && // we should not prevent mouseMove when above a form field
// as that would prevent the text in the field from being selected
!this.isOverFormFieldElement(e) && e.preventDefault(), this.onCommonMove(e, this.mouseStartEvent, r);
}, t.prototype.isOverFormFieldElement = function(e) {
var r = e.target, o = r == null ? void 0 : r.tagName.toLocaleLowerCase();
return !!(o != null && o.match("^a$|textarea|input|select|button"));
}, t.prototype.onTouchUp = function(e, r) {
var o = this.getFirstActiveTouch(e.changedTouches);
o || (o = this.touchLastTime), this.onUpCommon(o, r);
}, t.prototype.onMouseUp = function(e, r) {
this.onUpCommon(e, r);
}, t.prototype.onUpCommon = function(e, r) {
if (this.dragging) {
this.dragging = !1, this.currentDragParams.onDragStop(e);
var o = {
type: v.EVENT_DRAG_STOPPED,
target: r
};
this.eventService.dispatchEvent(o);
}
this.mouseStartEvent = null, this.startTarget = null, this.touchStart = null, this.touchLastTime = null, this.currentDragParams = null, this.dragEndFunctions.forEach(function(i) {
return i();
}), this.dragEndFunctions.length = 0;
}, Pi([
h("mouseEventService")
], t.prototype, "mouseEventService", void 0), Pi([
fe
], t.prototype, "removeAllListeners", null), t = Pi([
A("dragService")
], t), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var at;
(function(n) {
n[n.Above = 0] = "Above", n[n.Below = 1] = "Below";
})(at || (at = {}));
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var $;
(function(n) {
n.EVERYTHING = "group", n.FILTER = "filter", n.SORT = "sort", n.MAP = "map", n.AGGREGATE = "aggregate", n.FILTER_AGGREGATES = "filter_aggregates", n.PIVOT = "pivot", n.NOTHING = "nothing";
})($ || ($ = {}));
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var z = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
};
function Pt(n) {
var t = n, e = t != null && t.getFrameworkComponentInstance != null;
return e ? t.getFrameworkComponentInstance() : n;
}
var xd = (
/** @class */
function() {
function n() {
this.detailGridInfoMap = {}, this.destroyCalled = !1;
}
return n.prototype.registerOverlayWrapperComp = function(t) {
this.overlayWrapperComp = t;
}, n.prototype.registerSideBarComp = function(t) {
this.sideBarComp = t;
}, n.prototype.init = function() {
var t = this;
switch (this.rowModel.getType()) {
case "clientSide":
this.clientSideRowModel = this.rowModel;
break;
case "infinite":
this.infiniteRowModel = this.rowModel;
break;
case "serverSide":
this.serverSideRowModel = this.rowModel;
break;
}
this.ctrlsService.whenReady(function() {
t.gridBodyCtrl = t.ctrlsService.getGridBodyCtrl();
});
}, n.prototype.__getAlignedGridService = function() {
return this.alignedGridsService;
}, n.prototype.__getContext = function() {
return this.context;
}, n.prototype.getSetterMethod = function(t) {
return "set" + t.charAt(0).toUpperCase() + t.substring(1);
}, n.prototype.__setProperty = function(t, e) {
this.gridOptionsService.set(t, e);
var r = this.getSetterMethod(t), o = this;
o[r] && o[r](e);
}, n.prototype.addDetailGridInfo = function(t, e) {
this.detailGridInfoMap[t] = e;
}, n.prototype.removeDetailGridInfo = function(t) {
this.detailGridInfoMap[t] = void 0;
}, n.prototype.getDetailGridInfo = function(t) {
return this.detailGridInfoMap[t];
}, n.prototype.forEachDetailGridInfo = function(t) {
var e = 0;
J(this.detailGridInfoMap, function(r, o) {
O(o) && (t(o, e), e++);
});
}, n.prototype.getDataAsCsv = function(t) {
if (N.assertRegistered(F.CsvExportModule, "api.getDataAsCsv"))
return this.csvCreator.getDataAsCsv(t);
}, n.prototype.exportDataAsCsv = function(t) {
N.assertRegistered(F.CsvExportModule, "api.exportDataAsCSv") && this.csvCreator.exportDataAsCsv(t);
}, n.prototype.getExcelExportMode = function(t) {
var e = this.gridOptionsService.get("defaultExcelExportParams"), r = Object.assign({ exportMode: "xlsx" }, e, t);
return r.exportMode;
}, n.prototype.assertNotExcelMultiSheet = function(t, e) {
if (!N.assertRegistered(F.ExcelExportModule, "api." + t))
return !1;
var r = this.getExcelExportMode(e);
return this.excelCreator.getFactoryMode(r) === Bo.MULTI_SHEET ? (console.warn("AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling 'api.getMultipleSheetAsExcel()' or 'api.exportMultipleSheetsAsExcel()'"), !1) : !0;
}, n.prototype.getDataAsExcel = function(t) {
if (this.assertNotExcelMultiSheet("getDataAsExcel", t))
return this.excelCreator.getDataAsExcel(t);
}, n.prototype.exportDataAsExcel = function(t) {
this.assertNotExcelMultiSheet("exportDataAsExcel", t) && this.excelCreator.exportDataAsExcel(t);
}, n.prototype.getSheetDataForExcel = function(t) {
if (N.assertRegistered(F.ExcelExportModule, "api.getSheetDataForExcel")) {
var e = this.getExcelExportMode(t);
return this.excelCreator.setFactoryMode(Bo.MULTI_SHEET, e), this.excelCreator.getSheetDataForExcel(t);
}
}, n.prototype.getMultipleSheetsAsExcel = function(t) {
if (N.assertRegistered(F.ExcelExportModule, "api.getMultipleSheetsAsExcel"))
return this.excelCreator.getMultipleSheetsAsExcel(t);
}, n.prototype.exportMultipleSheetsAsExcel = function(t) {
if (N.assertRegistered(F.ExcelExportModule, "api.exportMultipleSheetsAsExcel"))
return this.excelCreator.exportMultipleSheetsAsExcel(t);
}, n.prototype.setGridAriaProperty = function(t, e) {
if (t) {
var r = this.ctrlsService.getGridBodyCtrl().getGui(), o = "aria-" + t;
e === null ? r.removeAttribute(o) : r.setAttribute(o, e);
}
}, n.prototype.logMissingRowModel = function(t) {
for (var e = [], r = 1; r < arguments.length; r++)
e[r - 1] = arguments[r];
console.error("AG Grid: api." + t + " can only be called when gridOptions.rowModelType is " + e.join(" or "));
}, n.prototype.setServerSideDatasource = function(t) {
this.serverSideRowModel ? this.serverSideRowModel.setDatasource(t) : this.logMissingRowModel("setServerSideDatasource", "serverSide");
}, n.prototype.setCacheBlockSize = function(t) {
this.serverSideRowModel ? (this.gridOptionsService.set("cacheBlockSize", t), this.serverSideRowModel.resetRootStore()) : this.logMissingRowModel("setCacheBlockSize", "serverSide");
}, n.prototype.setDatasource = function(t) {
this.gridOptionsService.isRowModelType("infinite") ? this.rowModel.setDatasource(t) : this.logMissingRowModel("setDatasource", "infinite");
}, n.prototype.setViewportDatasource = function(t) {
this.gridOptionsService.isRowModelType("viewport") ? this.rowModel.setViewportDatasource(t) : this.logMissingRowModel("setViewportDatasource", "viewport");
}, n.prototype.setRowData = function(t) {
var e = this.immutableService == null;
if (e) {
this.logMissingRowModel("setRowData", "clientSide");
return;
}
this.immutableService.isActive() ? this.immutableService.setRowData(t) : (this.selectionService.reset(), this.clientSideRowModel.setRowData(t));
}, n.prototype.setPinnedTopRowData = function(t) {
this.pinnedRowModel.setPinnedTopRowData(t);
}, n.prototype.setPinnedBottomRowData = function(t) {
this.pinnedRowModel.setPinnedBottomRowData(t);
}, n.prototype.getPinnedTopRowCount = function() {
return this.pinnedRowModel.getPinnedTopRowCount();
}, n.prototype.getPinnedBottomRowCount = function() {
return this.pinnedRowModel.getPinnedBottomRowCount();
}, n.prototype.getPinnedTopRow = function(t) {
return this.pinnedRowModel.getPinnedTopRow(t);
}, n.prototype.getPinnedBottomRow = function(t) {
return this.pinnedRowModel.getPinnedBottomRow(t);
}, n.prototype.setColumnDefs = function(t, e) {
e === void 0 && (e = "api"), this.columnModel.setColumnDefs(t, e), this.gridOptionsService.set("columnDefs", t, !0, { source: e });
}, n.prototype.setAutoGroupColumnDef = function(t, e) {
e === void 0 && (e = "api"), this.gridOptionsService.set("autoGroupColumnDef", t, !0, { source: e });
}, n.prototype.setDefaultColDef = function(t, e) {
e === void 0 && (e = "api"), this.gridOptionsService.set("defaultColDef", t, !0, { source: e });
}, n.prototype.setColumnTypes = function(t, e) {
e === void 0 && (e = "api"), this.gridOptionsService.set("columnTypes", t, !0, { source: e });
}, n.prototype.expireValueCache = function() {
this.valueCache.expire();
}, n.prototype.getVerticalPixelRange = function() {
return this.gridBodyCtrl.getScrollFeature().getVScrollPosition();
}, n.prototype.getHorizontalPixelRange = function() {
return this.gridBodyCtrl.getScrollFeature().getHScrollPosition();
}, n.prototype.setAlwaysShowHorizontalScroll = function(t) {
this.gridOptionsService.set("alwaysShowHorizontalScroll", t);
}, n.prototype.setAlwaysShowVerticalScroll = function(t) {
this.gridOptionsService.set("alwaysShowVerticalScroll", t);
}, n.prototype.refreshCells = function(t) {
t === void 0 && (t = {}), this.rowRenderer.refreshCells(t);
}, n.prototype.flashCells = function(t) {
t === void 0 && (t = {}), this.rowRenderer.flashCells(t);
}, n.prototype.redrawRows = function(t) {
t === void 0 && (t = {});
var e = t ? t.rowNodes : void 0;
this.rowRenderer.redrawRows(e);
}, n.prototype.setFunctionsReadOnly = function(t) {
this.gridOptionsService.set("functionsReadOnly", t);
}, n.prototype.refreshHeader = function() {
this.ctrlsService.getHeaderRowContainerCtrls().forEach(function(t) {
return t.refresh();
});
}, n.prototype.isAnyFilterPresent = function() {
return this.filterManager.isAnyFilterPresent();
}, n.prototype.isColumnFilterPresent = function() {
return this.filterManager.isColumnFilterPresent() || this.filterManager.isAggregateFilterPresent();
}, n.prototype.isQuickFilterPresent = function() {
return this.filterManager.isQuickFilterPresent();
}, n.prototype.getModel = function() {
return this.rowModel;
}, n.prototype.setRowNodeExpanded = function(t, e, r) {
t && (r && t.parent && t.parent.level !== -1 && this.setRowNodeExpanded(t.parent, e, r), t.setExpanded(e));
}, n.prototype.onGroupExpandedOrCollapsed = function() {
if (x(this.clientSideRowModel)) {
this.logMissingRowModel("onGroupExpandedOrCollapsed", "clientSide");
return;
}
this.clientSideRowModel.refreshModel({ step: $.MAP });
}, n.prototype.refreshClientSideRowModel = function(t) {
if (x(this.clientSideRowModel)) {
this.logMissingRowModel("refreshClientSideRowModel", "clientSide");
return;
}
this.clientSideRowModel.refreshModel(t);
}, n.prototype.isAnimationFrameQueueEmpty = function() {
return this.animationFrameService.isQueueEmpty();
}, n.prototype.flushAllAnimationFrames = function() {
this.animationFrameService.flushAllFrames();
}, n.prototype.getRowNode = function(t) {
return this.rowModel.getRowNode(t);
}, n.prototype.getSizesForCurrentTheme = function() {
return {
rowHeight: this.gridOptionsService.getRowHeightAsNumber(),
headerHeight: this.columnModel.getHeaderHeight()
};
}, n.prototype.expandAll = function() {
this.clientSideRowModel ? this.clientSideRowModel.expandOrCollapseAll(!0) : this.serverSideRowModel ? this.serverSideRowModel.expandAll(!0) : this.logMissingRowModel("expandAll", "clientSide", "serverSide");
}, n.prototype.collapseAll = function() {
this.clientSideRowModel ? this.clientSideRowModel.expandOrCollapseAll(!1) : this.serverSideRowModel ? this.serverSideRowModel.expandAll(!1) : this.logMissingRowModel("expandAll", "clientSide", "serverSide");
}, n.prototype.addRenderedRowListener = function(t, e, r) {
this.rowRenderer.addRenderedRowListener(t, e, r);
}, n.prototype.getQuickFilter = function() {
return this.gridOptionsService.get("quickFilterText");
}, n.prototype.setQuickFilter = function(t) {
this.gridOptionsService.set("quickFilterText", t);
}, n.prototype.setExcludeHiddenColumnsFromQuickFilter = function(t) {
this.gridOptionsService.set("excludeHiddenColumnsFromQuickFilter", t);
}, n.prototype.selectAll = function(t) {
t === void 0 && (t = "apiSelectAll"), this.selectionService.selectAllRowNodes({ source: t });
}, n.prototype.deselectAll = function(t) {
t === void 0 && (t = "apiSelectAll"), this.selectionService.deselectAllRowNodes({ source: t });
}, n.prototype.selectAllFiltered = function(t) {
t === void 0 && (t = "apiSelectAllFiltered"), this.selectionService.selectAllRowNodes({ source: t, justFiltered: !0 });
}, n.prototype.deselectAllFiltered = function(t) {
t === void 0 && (t = "apiSelectAllFiltered"), this.selectionService.deselectAllRowNodes({ source: t, justFiltered: !0 });
}, n.prototype.getServerSideSelectionState = function() {
return x(this.serverSideRowModel) ? (this.logMissingRowModel("getServerSideSelectionState", "serverSide"), null) : this.selectionService.getServerSideSelectionState();
}, n.prototype.setServerSideSelectionState = function(t) {
if (x(this.serverSideRowModel)) {
this.logMissingRowModel("setServerSideSelectionState", "serverSide");
return;
}
this.selectionService.setServerSideSelectionState(t);
}, n.prototype.selectAllOnCurrentPage = function(t) {
t === void 0 && (t = "apiSelectAllCurrentPage"), this.selectionService.selectAllRowNodes({ source: t, justCurrentPage: !0 });
}, n.prototype.deselectAllOnCurrentPage = function(t) {
t === void 0 && (t = "apiSelectAllCurrentPage"), this.selectionService.deselectAllRowNodes({ source: t, justCurrentPage: !0 });
}, n.prototype.sizeColumnsToFit = function(t) {
this.gridBodyCtrl.sizeColumnsToFit(t);
}, n.prototype.showLoadingOverlay = function() {
this.overlayWrapperComp.showLoadingOverlay();
}, n.prototype.showNoRowsOverlay = function() {
this.overlayWrapperComp.showNoRowsOverlay();
}, n.prototype.hideOverlay = function() {
this.overlayWrapperComp.hideOverlay();
}, n.prototype.getSelectedNodes = function() {
return this.selectionService.getSelectedNodes();
}, n.prototype.getSelectedRows = function() {
return this.selectionService.getSelectedRows();
}, n.prototype.getBestCostNodeSelection = function() {
if (x(this.clientSideRowModel)) {
this.logMissingRowModel("getBestCostNodeSelection", "clientSide");
return;
}
return this.selectionService.getBestCostNodeSelection();
}, n.prototype.getRenderedNodes = function() {
return this.rowRenderer.getRenderedNodes();
}, n.prototype.ensureColumnVisible = function(t, e) {
e === void 0 && (e = "auto"), this.gridBodyCtrl.getScrollFeature().ensureColumnVisible(t, e);
}, n.prototype.ensureIndexVisible = function(t, e) {
this.gridBodyCtrl.getScrollFeature().ensureIndexVisible(t, e);
}, n.prototype.ensureNodeVisible = function(t, e) {
e === void 0 && (e = null), this.gridBodyCtrl.getScrollFeature().ensureNodeVisible(t, e);
}, n.prototype.forEachLeafNode = function(t) {
if (x(this.clientSideRowModel)) {
this.logMissingRowModel("forEachLeafNode", "clientSide");
return;
}
this.clientSideRowModel.forEachLeafNode(t);
}, n.prototype.forEachNode = function(t, e) {
this.rowModel.forEachNode(t, e);
}, n.prototype.forEachNodeAfterFilter = function(t) {
if (x(this.clientSideRowModel)) {
this.logMissingRowModel("forEachNodeAfterFilter", "clientSide");
return;
}
this.clientSideRowModel.forEachNodeAfterFilter(t);
}, n.prototype.forEachNodeAfterFilterAndSort = function(t) {
if (x(this.clientSideRowModel)) {
this.logMissingRowModel("forEachNodeAfterFilterAndSort", "clientSide");
return;
}
this.clientSideRowModel.forEachNodeAfterFilterAndSort(t);
}, n.prototype.getFilterInstance = function(t, e) {
var r = this.getFilterInstanceImpl(t, function(i) {
if (e) {
var s = Pt(i);
e(s);
}
}), o = Pt(r);
return o;
}, n.prototype.getFilterInstanceImpl = function(t, e) {
var r = this.columnModel.getPrimaryColumn(t);
if (r) {
var o = this.filterManager.getFilterComponent(r, "NO_UI"), i = o && o.resolveNow(null, function(s) {
return s;
});
return i ? setTimeout(e, 0, i) : o && o.then(function(s) {
e(s);
}), i;
}
}, n.prototype.destroyFilter = function(t) {
var e = this.columnModel.getPrimaryColumn(t);
if (e)
return this.filterManager.destroyFilter(e, "api");
}, n.prototype.getStatusPanel = function(t) {
if (N.assertRegistered(F.StatusBarModule, "api.getStatusPanel")) {
var e = this.statusBarService.getStatusPanel(t);
return Pt(e);
}
}, n.prototype.getColumnDef = function(t) {
var e = this.columnModel.getPrimaryColumn(t);
return e ? e.getColDef() : null;
}, n.prototype.getColumnDefs = function() {
return this.columnModel.getColumnDefs();
}, n.prototype.onFilterChanged = function() {
this.filterManager.onFilterChanged();
}, n.prototype.onSortChanged = function() {
this.sortController.onSortChanged("api");
}, n.prototype.setFilterModel = function(t) {
this.filterManager.setFilterModel(t);
}, n.prototype.getFilterModel = function() {
return this.filterManager.getFilterModel();
}, n.prototype.getFocusedCell = function() {
return this.focusService.getFocusedCell();
}, n.prototype.clearFocusedCell = function() {
return this.focusService.clearFocusedCell();
}, n.prototype.setFocusedCell = function(t, e, r) {
this.focusService.setFocusedCell({ rowIndex: t, column: e, rowPinned: r, forceBrowserFocus: !0 });
}, n.prototype.setSuppressRowDrag = function(t) {
this.gridOptionsService.set("suppressRowDrag", t);
}, n.prototype.setSuppressMoveWhenRowDragging = function(t) {
this.gridOptionsService.set("suppressMoveWhenRowDragging", t);
}, n.prototype.setSuppressRowClickSelection = function(t) {
this.gridOptionsService.set("suppressRowClickSelection", t);
}, n.prototype.addRowDropZone = function(t) {
this.gridBodyCtrl.getRowDragFeature().addRowDropZone(t);
}, n.prototype.removeRowDropZone = function(t) {
var e = this.dragAndDropService.findExternalZone(t);
e && this.dragAndDropService.removeDropTarget(e);
}, n.prototype.getRowDropZoneParams = function(t) {
return this.gridBodyCtrl.getRowDragFeature().getRowDropZone(t);
}, n.prototype.setHeaderHeight = function(t) {
this.gridOptionsService.set("headerHeight", t);
}, n.prototype.setDomLayout = function(t) {
if (!this.clientSideRowModel && t === "autoHeight" && !this.gridOptionsService.is("pagination")) {
console.error("AG Grid: domLayout can only be set to 'autoHeight' when using the client side row model or when using pagination.");
return;
}
this.gridOptionsService.set("domLayout", t);
}, n.prototype.setEnableCellTextSelection = function(t) {
this.gridBodyCtrl.setCellTextSelection(t);
}, n.prototype.setFillHandleDirection = function(t) {
this.gridOptionsService.set("fillHandleDirection", t);
}, n.prototype.setGroupHeaderHeight = function(t) {
this.gridOptionsService.set("groupHeaderHeight", t);
}, n.prototype.setFloatingFiltersHeight = function(t) {
this.gridOptionsService.set("floatingFiltersHeight", t);
}, n.prototype.setPivotHeaderHeight = function(t) {
this.gridOptionsService.set("pivotHeaderHeight", t);
}, n.prototype.setPivotGroupHeaderHeight = function(t) {
this.gridOptionsService.set("pivotGroupHeaderHeight", t);
}, n.prototype.setPivotMode = function(t) {
this.columnModel.setPivotMode(t);
}, n.prototype.setAnimateRows = function(t) {
this.gridOptionsService.set("animateRows", t);
}, n.prototype.setIsExternalFilterPresent = function(t) {
this.gridOptionsService.set("isExternalFilterPresent", t);
}, n.prototype.setDoesExternalFilterPass = function(t) {
this.gridOptionsService.set("doesExternalFilterPass", t);
}, n.prototype.setNavigateToNextCell = function(t) {
this.gridOptionsService.set("navigateToNextCell", t);
}, n.prototype.setTabToNextCell = function(t) {
this.gridOptionsService.set("tabToNextCell", t);
}, n.prototype.setTabToNextHeader = function(t) {
this.gridOptionsService.set("tabToNextHeader", t);
}, n.prototype.setNavigateToNextHeader = function(t) {
this.gridOptionsService.set("navigateToNextHeader", t);
}, n.prototype.setRowGroupPanelShow = function(t) {
this.gridOptionsService.set("rowGroupPanelShow", t);
}, n.prototype.setGroupRowAggNodes = function(t) {
se("27.2", "setGroupRowAggNodes", "setGetGroupRowAgg"), this.gridOptionsService.set("groupRowAggNodes", t);
}, n.prototype.setGetGroupRowAgg = function(t) {
this.gridOptionsService.set("getGroupRowAgg", t);
}, n.prototype.setGetBusinessKeyForNode = function(t) {
this.gridOptionsService.set("getBusinessKeyForNode", t);
}, n.prototype.setGetChildCount = function(t) {
this.gridOptionsService.set("getChildCount", t);
}, n.prototype.setProcessRowPostCreate = function(t) {
this.gridOptionsService.set("processRowPostCreate", t);
}, n.prototype.setGetRowNodeId = function(t) {
se("27.1", "setGetRowNodeId", "setGetRowId"), this.gridOptionsService.set("getRowNodeId", t);
}, n.prototype.setGetRowId = function(t) {
this.gridOptionsService.set("getRowId", t);
}, n.prototype.setGetRowClass = function(t) {
this.gridOptionsService.set("getRowClass", t);
}, n.prototype.setIsFullWidthCell = function(t) {
se("27.2", "setIsFullWidthCell", "setIsFullWidthRow"), this.gridOptionsService.set("isFullWidthCell", t);
}, n.prototype.setIsFullWidthRow = function(t) {
this.gridOptionsService.set("isFullWidthRow", t);
}, n.prototype.setIsRowSelectable = function(t) {
this.gridOptionsService.set("isRowSelectable", t);
}, n.prototype.setIsRowMaster = function(t) {
this.gridOptionsService.set("isRowMaster", t);
}, n.prototype.setPostSort = function(t) {
se("27.2", "setPostSort", "setPostSortRows"), this.gridOptionsService.set("postSort", t);
}, n.prototype.setPostSortRows = function(t) {
this.gridOptionsService.set("postSortRows", t);
}, n.prototype.setGetDocument = function(t) {
this.gridOptionsService.set("getDocument", t);
}, n.prototype.setGetContextMenuItems = function(t) {
this.gridOptionsService.set("getContextMenuItems", t);
}, n.prototype.setGetMainMenuItems = function(t) {
this.gridOptionsService.set("getMainMenuItems", t);
}, n.prototype.setProcessCellForClipboard = function(t) {
this.gridOptionsService.set("processCellForClipboard", t);
}, n.prototype.setSendToClipboard = function(t) {
this.gridOptionsService.set("sendToClipboard", t);
}, n.prototype.setProcessCellFromClipboard = function(t) {
this.gridOptionsService.set("processCellFromClipboard", t);
}, n.prototype.setProcessSecondaryColDef = function(t) {
se("28.0", "setProcessSecondaryColDef", "setProcessPivotResultColDef"), this.setProcessPivotResultColDef(t);
}, n.prototype.setProcessSecondaryColGroupDef = function(t) {
se("28.0", "setProcessSecondaryColGroupDef", "setProcessPivotResultColGroupDef"), this.setProcessPivotResultColGroupDef(t);
}, n.prototype.setProcessPivotResultColDef = function(t) {
this.gridOptionsService.set("processPivotResultColDef", t);
}, n.prototype.setProcessPivotResultColGroupDef = function(t) {
this.gridOptionsService.set("processPivotResultColGroupDef", t);
}, n.prototype.setPostProcessPopup = function(t) {
this.gridOptionsService.set("postProcessPopup", t);
}, n.prototype.setDefaultGroupOrderComparator = function(t) {
se("27.2", "setDefaultGroupOrderComparator", "setInitialGroupOrderComparator"), this.gridOptionsService.set("defaultGroupOrderComparator", t);
}, n.prototype.setInitialGroupOrderComparator = function(t) {
this.gridOptionsService.set("initialGroupOrderComparator", t);
}, n.prototype.setGetChartToolbarItems = function(t) {
this.gridOptionsService.set("getChartToolbarItems", t);
}, n.prototype.setPaginationNumberFormatter = function(t) {
this.gridOptionsService.set("paginationNumberFormatter", t);
}, n.prototype.setGetServerSideStoreParams = function(t) {
se("28.0", "setGetServerSideStoreParams", "setGetServerSideGroupLevelParams"), this.setGetServerSideGroupLevelParams(t);
}, n.prototype.setGetServerSideGroupLevelParams = function(t) {
this.gridOptionsService.set("getServerSideGroupLevelParams", t);
}, n.prototype.setIsServerSideGroupOpenByDefault = function(t) {
this.gridOptionsService.set("isServerSideGroupOpenByDefault", t);
}, n.prototype.setIsApplyServerSideTransaction = function(t) {
this.gridOptionsService.set("isApplyServerSideTransaction", t);
}, n.prototype.setIsServerSideGroup = function(t) {
this.gridOptionsService.set("isServerSideGroup", t);
}, n.prototype.setGetServerSideGroupKey = function(t) {
this.gridOptionsService.set("getServerSideGroupKey", t);
}, n.prototype.setGetRowStyle = function(t) {
this.gridOptionsService.set("getRowStyle", t);
}, n.prototype.setGetRowHeight = function(t) {
this.gridOptionsService.set("getRowHeight", t);
}, n.prototype.assertSideBarLoaded = function(t) {
return N.assertRegistered(F.SideBarModule, "api." + t);
}, n.prototype.isSideBarVisible = function() {
return this.assertSideBarLoaded("isSideBarVisible") && this.sideBarComp.isDisplayed();
}, n.prototype.setSideBarVisible = function(t) {
this.assertSideBarLoaded("setSideBarVisible") && this.sideBarComp.setDisplayed(t);
}, n.prototype.setSideBarPosition = function(t) {
this.assertSideBarLoaded("setSideBarPosition") && this.sideBarComp.setSideBarPosition(t);
}, n.prototype.openToolPanel = function(t) {
this.assertSideBarLoaded("openToolPanel") && this.sideBarComp.openToolPanel(t, "api");
}, n.prototype.closeToolPanel = function() {
this.assertSideBarLoaded("closeToolPanel") && this.sideBarComp.close("api");
}, n.prototype.getOpenedToolPanel = function() {
return this.assertSideBarLoaded("getOpenedToolPanel") ? this.sideBarComp.openedItem() : null;
}, n.prototype.refreshToolPanel = function() {
this.assertSideBarLoaded("refreshToolPanel") && this.sideBarComp.refresh();
}, n.prototype.isToolPanelShowing = function() {
return this.assertSideBarLoaded("isToolPanelShowing") && this.sideBarComp.isToolPanelShowing();
}, n.prototype.getToolPanelInstance = function(t) {
if (this.assertSideBarLoaded("getToolPanelInstance")) {
var e = this.sideBarComp.getToolPanelInstance(t);
return Pt(e);
}
}, n.prototype.getSideBar = function() {
if (this.assertSideBarLoaded("getSideBar"))
return this.sideBarComp.getDef();
}, n.prototype.setSideBar = function(t) {
this.gridOptionsService.set("sideBar", t);
}, n.prototype.setSuppressClipboardPaste = function(t) {
this.gridOptionsService.set("suppressClipboardPaste", t);
}, n.prototype.resetRowHeights = function() {
if (O(this.clientSideRowModel)) {
if (this.columnModel.isAutoRowHeightActive()) {
console.warn("AG Grid: calling gridApi.resetRowHeights() makes no sense when using Auto Row Height.");
return;
}
this.clientSideRowModel.resetRowHeights();
}
}, n.prototype.setGroupRemoveSingleChildren = function(t) {
this.gridOptionsService.set("groupRemoveSingleChildren", t);
}, n.prototype.setGroupRemoveLowestSingleChildren = function(t) {
this.gridOptionsService.set("groupRemoveLowestSingleChildren", t);
}, n.prototype.setGroupDisplayType = function(t) {
this.gridOptionsService.set("groupDisplayType", t);
}, n.prototype.setRowClass = function(t) {
this.gridOptionsService.set("rowClass", t);
}, n.prototype.setDeltaSort = function(t) {
this.gridOptionsService.set("deltaSort", t);
}, n.prototype.setRowCount = function(t, e) {
if (this.serverSideRowModel) {
if (this.columnModel.isRowGroupEmpty()) {
this.serverSideRowModel.setRowCount(t, e);
return;
}
console.error("AG Grid: setRowCount cannot be used while using row grouping.");
return;
}
if (this.infiniteRowModel) {
this.infiniteRowModel.setRowCount(t, e);
return;
}
this.logMissingRowModel("setRowCount", "infinite", "serverSide");
}, n.prototype.onRowHeightChanged = function() {
this.clientSideRowModel ? this.clientSideRowModel.onRowHeightChanged() : this.serverSideRowModel && this.serverSideRowModel.onRowHeightChanged();
}, n.prototype.getValue = function(t, e) {
var r = this.columnModel.getPrimaryColumn(t);
return x(r) && (r = this.columnModel.getGridColumn(t)), x(r) ? null : this.valueService.getValue(r, e);
}, n.prototype.addEventListener = function(t, e) {
var r = this.gridOptionsService.useAsyncEvents();
this.eventService.addEventListener(t, e, r);
}, n.prototype.addGlobalListener = function(t) {
var e = this.gridOptionsService.useAsyncEvents();
this.eventService.addGlobalListener(t, e);
}, n.prototype.removeEventListener = function(t, e) {
var r = this.gridOptionsService.useAsyncEvents();
this.eventService.removeEventListener(t, e, r);
}, n.prototype.removeGlobalListener = function(t) {
var e = this.gridOptionsService.useAsyncEvents();
this.eventService.removeGlobalListener(t, e);
}, n.prototype.dispatchEvent = function(t) {
this.eventService.dispatchEvent(t);
}, n.prototype.destroy = function() {
if (!this.destroyCalled) {
this.destroyCalled = !0;
var t = this.ctrlsService.getGridCtrl();
t && t.destroyGridUi(), this.context.destroy();
}
}, n.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid = function() {
setTimeout(ga.bind(window, this, "Grid API"), 100);
}, n.prototype.warnIfDestroyed = function(t) {
return this.destroyCalled && console.warn("AG Grid: Grid API method " + t + " was called on a grid that was destroyed."), this.destroyCalled;
}, n.prototype.resetQuickFilter = function() {
this.warnIfDestroyed("resetQuickFilter") || this.filterManager.resetQuickFilterCache();
}, n.prototype.getCellRanges = function() {
return this.rangeService ? this.rangeService.getCellRanges() : (N.assertRegistered(F.RangeSelectionModule, "api.getCellRanges"), null);
}, n.prototype.addCellRange = function(t) {
if (this.rangeService) {
this.rangeService.addCellRange(t);
return;
}
N.assertRegistered(F.RangeSelectionModule, "api.addCellRange");
}, n.prototype.clearRangeSelection = function() {
this.rangeService && this.rangeService.removeAllCellRanges(), N.assertRegistered(F.RangeSelectionModule, "gridApi.clearRangeSelection");
}, n.prototype.undoCellEditing = function() {
this.undoRedoService.undo("api");
}, n.prototype.redoCellEditing = function() {
this.undoRedoService.redo("api");
}, n.prototype.getCurrentUndoSize = function() {
return this.undoRedoService.getCurrentUndoStackSize();
}, n.prototype.getCurrentRedoSize = function() {
return this.undoRedoService.getCurrentRedoStackSize();
}, n.prototype.getChartModels = function() {
if (N.assertRegistered(F.GridChartsModule, "api.getChartModels"))
return this.chartService.getChartModels();
}, n.prototype.getChartRef = function(t) {
if (N.assertRegistered(F.GridChartsModule, "api.getChartRef"))
return this.chartService.getChartRef(t);
}, n.prototype.getChartImageDataURL = function(t) {
if (N.assertRegistered(F.GridChartsModule, "api.getChartImageDataURL"))
return this.chartService.getChartImageDataURL(t);
}, n.prototype.downloadChart = function(t) {
if (N.assertRegistered(F.GridChartsModule, "api.downloadChart"))
return this.chartService.downloadChart(t);
}, n.prototype.openChartToolPanel = function(t) {
if (N.assertRegistered(F.GridChartsModule, "api.openChartToolPanel"))
return this.chartService.openChartToolPanel(t);
}, n.prototype.closeChartToolPanel = function(t) {
if (N.assertRegistered(F.GridChartsModule, "api.closeChartToolPanel"))
return this.chartService.closeChartToolPanel(t.chartId);
}, n.prototype.createRangeChart = function(t) {
if (N.assertRegistered(F.GridChartsModule, "api.createRangeChart"))
return this.chartService.createRangeChart(t);
}, n.prototype.createCrossFilterChart = function(t) {
if (N.assertRegistered(F.GridChartsModule, "api.createCrossFilterChart"))
return this.chartService.createCrossFilterChart(t);
}, n.prototype.restoreChart = function(t, e) {
if (N.assertRegistered(F.GridChartsModule, "api.restoreChart"))
return this.chartService.restoreChart(t, e);
}, n.prototype.createPivotChart = function(t) {
if (N.assertRegistered(F.GridChartsModule, "api.createPivotChart"))
return this.chartService.createPivotChart(t);
}, n.prototype.copyToClipboard = function(t) {
N.assertRegistered(F.ClipboardModule, "api.copyToClipboard") && this.clipboardService.copyToClipboard(t);
}, n.prototype.cutToClipboard = function(t) {
N.assertRegistered(F.ClipboardModule, "api.cutToClipboard") && this.clipboardService.cutToClipboard(t);
}, n.prototype.copySelectedRowsToClipboard = function(t) {
N.assertRegistered(F.ClipboardModule, "api.copySelectedRowsToClipboard") && this.clipboardService.copySelectedRowsToClipboard(t);
}, n.prototype.copySelectedRangeToClipboard = function(t) {
N.assertRegistered(F.ClipboardModule, "api.copySelectedRangeToClipboard") && this.clipboardService.copySelectedRangeToClipboard(t);
}, n.prototype.copySelectedRangeDown = function() {
N.assertRegistered(F.ClipboardModule, "api.copySelectedRangeDown") && this.clipboardService.copyRangeDown();
}, n.prototype.showColumnMenuAfterButtonClick = function(t, e) {
var r = this.columnModel.getGridColumn(t);
this.menuFactory.showMenuAfterButtonClick(r, e, "columnMenu");
}, n.prototype.showColumnMenuAfterMouseClick = function(t, e) {
var r = this.columnModel.getGridColumn(t);
if (r || (r = this.columnModel.getPrimaryColumn(t)), !r) {
console.error("AG Grid: column '" + t + "' not found");
return;
}
this.menuFactory.showMenuAfterMouseEvent(r, e);
}, n.prototype.hidePopupMenu = function() {
this.contextMenuFactory && this.contextMenuFactory.hideActiveMenu(), this.menuFactory.hideActiveMenu();
}, n.prototype.setPopupParent = function(t) {
this.gridOptionsService.set("popupParent", t);
}, n.prototype.tabToNextCell = function(t) {
return this.navigationService.tabToNextCell(!1, t);
}, n.prototype.tabToPreviousCell = function(t) {
return this.navigationService.tabToNextCell(!0, t);
}, n.prototype.getCellRendererInstances = function(t) {
t === void 0 && (t = {});
var e = this.rowRenderer.getCellRendererInstances(t), r = e.map(Pt);
return r;
}, n.prototype.getCellEditorInstances = function(t) {
t === void 0 && (t = {});
var e = this.rowRenderer.getCellEditorInstances(t), r = e.map(Pt);
return r;
}, n.prototype.getEditingCells = function() {
return this.rowRenderer.getEditingCells();
}, n.prototype.stopEditing = function(t) {
t === void 0 && (t = !1), this.rowRenderer.stopEditing(t);
}, n.prototype.startEditingCell = function(t) {
var e = this.columnModel.getGridColumn(t.colKey);
if (!e) {
console.warn("AG Grid: no column found for " + t.colKey);
return;
}
var r = {
rowIndex: t.rowIndex,
rowPinned: t.rowPinned || null,
column: e
}, o = t.rowPinned == null;
o && this.gridBodyCtrl.getScrollFeature().ensureIndexVisible(t.rowIndex);
var i = this.navigationService.getCellByPosition(r);
i && i.startRowOrCellEdit(t.key, t.charPress);
}, n.prototype.addAggFunc = function(t, e) {
this.aggFuncService && this.aggFuncService.addAggFunc(t, e);
}, n.prototype.addAggFuncs = function(t) {
this.aggFuncService && this.aggFuncService.addAggFuncs(t);
}, n.prototype.clearAggFuncs = function() {
this.aggFuncService && this.aggFuncService.clear();
}, n.prototype.applyServerSideTransaction = function(t) {
if (!this.serverSideTransactionManager) {
this.logMissingRowModel("applyServerSideTransaction", "serverSide");
return;
}
return this.serverSideTransactionManager.applyTransaction(t);
}, n.prototype.applyServerSideTransactionAsync = function(t, e) {
if (!this.serverSideTransactionManager) {
this.logMissingRowModel("applyServerSideTransactionAsync", "serverSide");
return;
}
return this.serverSideTransactionManager.applyTransactionAsync(t, e);
}, n.prototype.retryServerSideLoads = function() {
if (!this.serverSideRowModel) {
this.logMissingRowModel("retryServerSideLoads", "serverSide");
return;
}
this.serverSideRowModel.retryLoads();
}, n.prototype.flushServerSideAsyncTransactions = function() {
if (!this.serverSideTransactionManager) {
this.logMissingRowModel("flushServerSideAsyncTransactions", "serverSide");
return;
}
return this.serverSideTransactionManager.flushAsyncTransactions();
}, n.prototype.applyTransaction = function(t) {
if (!this.clientSideRowModel) {
this.logMissingRowModel("applyTransaction", "clientSide");
return;
}
var e = this.clientSideRowModel.updateRowData(t);
return this.gridOptionsService.is("suppressChangeDetection") || this.rowRenderer.refreshCells(), e;
}, n.prototype.applyTransactionAsync = function(t, e) {
if (!this.clientSideRowModel) {
this.logMissingRowModel("applyTransactionAsync", "clientSide");
return;
}
this.clientSideRowModel.batchUpdateRowData(t, e);
}, n.prototype.flushAsyncTransactions = function() {
if (!this.clientSideRowModel) {
this.logMissingRowModel("flushAsyncTransactions", "clientSide");
return;
}
this.clientSideRowModel.flushAsyncTransactions();
}, n.prototype.setSuppressModelUpdateAfterUpdateTransaction = function(t) {
this.gridOptionsService.set("suppressModelUpdateAfterUpdateTransaction", t);
}, n.prototype.refreshInfiniteCache = function() {
this.infiniteRowModel ? this.infiniteRowModel.refreshCache() : this.logMissingRowModel("refreshInfiniteCache", "infinite");
}, n.prototype.purgeInfiniteCache = function() {
this.infiniteRowModel ? this.infiniteRowModel.purgeCache() : this.logMissingRowModel("purgeInfiniteCache", "infinite");
}, n.prototype.refreshServerSide = function(t) {
if (!this.serverSideRowModel) {
this.logMissingRowModel("refreshServerSide", "serverSide");
return;
}
this.serverSideRowModel.refreshStore(t);
}, n.prototype.refreshServerSideStore = function(t) {
return se("28.0", "refreshServerSideStore", "refreshServerSide"), this.refreshServerSide(t);
}, n.prototype.getServerSideStoreState = function() {
return se("28.0", "getServerSideStoreState", "getServerSideGroupLevelState"), this.getServerSideGroupLevelState();
}, n.prototype.getServerSideGroupLevelState = function() {
return this.serverSideRowModel ? this.serverSideRowModel.getStoreState() : (this.logMissingRowModel("getServerSideGroupLevelState", "serverSide"), []);
}, n.prototype.getInfiniteRowCount = function() {
if (this.infiniteRowModel)
return this.infiniteRowModel.getRowCount();
this.logMissingRowModel("getInfiniteRowCount", "infinite");
}, n.prototype.isLastRowIndexKnown = function() {
if (this.infiniteRowModel)
return this.infiniteRowModel.isLastRowIndexKnown();
this.logMissingRowModel("isLastRowIndexKnown", "infinite");
}, n.prototype.getCacheBlockState = function() {
return this.rowNodeBlockLoader.getBlockState();
}, n.prototype.getFirstDisplayedRow = function() {
return this.rowRenderer.getFirstVirtualRenderedRow();
}, n.prototype.getLastDisplayedRow = function() {
return this.rowRenderer.getLastVirtualRenderedRow();
}, n.prototype.getDisplayedRowAtIndex = function(t) {
return this.rowModel.getRow(t);
}, n.prototype.getDisplayedRowCount = function() {
return this.rowModel.getRowCount();
}, n.prototype.setPagination = function(t) {
if (!this.clientSideRowModel && this.gridOptionsService.get("domLayout") === "autoHeight" && !t) {
console.error("AG Grid: Pagination cannot be disabled when using domLayout set to 'autoHeight' unless using the client-side row model.");
return;
}
this.gridOptionsService.set("pagination", t);
}, n.prototype.paginationIsLastPageFound = function() {
return this.paginationProxy.isLastPageFound();
}, n.prototype.paginationGetPageSize = function() {
return this.paginationProxy.getPageSize();
}, n.prototype.paginationSetPageSize = function(t) {
this.gridOptionsService.set("paginationPageSize", t);
}, n.prototype.paginationGetCurrentPage = function() {
return this.paginationProxy.getCurrentPage();
}, n.prototype.paginationGetTotalPages = function() {
return this.paginationProxy.getTotalPages();
}, n.prototype.paginationGetRowCount = function() {
return this.paginationProxy.getMasterRowCount();
}, n.prototype.paginationGoToNextPage = function() {
this.paginationProxy.goToNextPage();
}, n.prototype.paginationGoToPreviousPage = function() {
this.paginationProxy.goToPreviousPage();
}, n.prototype.paginationGoToFirstPage = function() {
this.paginationProxy.goToFirstPage();
}, n.prototype.paginationGoToLastPage = function() {
this.paginationProxy.goToLastPage();
}, n.prototype.paginationGoToPage = function(t) {
this.paginationProxy.goToPage(t);
}, z([
Y("immutableService")
], n.prototype, "immutableService", void 0), z([
Y("csvCreator")
], n.prototype, "csvCreator", void 0), z([
Y("excelCreator")
], n.prototype, "excelCreator", void 0), z([
h("rowRenderer")
], n.prototype, "rowRenderer", void 0), z([
h("navigationService")
], n.prototype, "navigationService", void 0), z([
h("filterManager")
], n.prototype, "filterManager", void 0), z([
h("columnModel")
], n.prototype, "columnModel", void 0), z([
h("selectionService")
], n.prototype, "selectionService", void 0), z([
h("gridOptionsService")
], n.prototype, "gridOptionsService", void 0), z([
h("valueService")
], n.prototype, "valueService", void 0), z([
h("alignedGridsService")
], n.prototype, "alignedGridsService", void 0), z([
h("eventService")
], n.prototype, "eventService", void 0), z([
h("pinnedRowModel")
], n.prototype, "pinnedRowModel", void 0), z([
h("context")
], n.prototype, "context", void 0), z([
h("rowModel")
], n.prototype, "rowModel", void 0), z([
h("sortController")
], n.prototype, "sortController", void 0), z([
h("paginationProxy")
], n.prototype, "paginationProxy", void 0), z([
h("focusService")
], n.prototype, "focusService", void 0), z([
h("dragAndDropService")
], n.prototype, "dragAndDropService", void 0), z([
Y("rangeService")
], n.prototype, "rangeService", void 0), z([
Y("clipboardService")
], n.prototype, "clipboardService", void 0), z([
Y("aggFuncService")
], n.prototype, "aggFuncService", void 0), z([
h("menuFactory")
], n.prototype, "menuFactory", void 0), z([
Y("contextMenuFactory")
], n.prototype, "contextMenuFactory", void 0), z([
h("valueCache")
], n.prototype, "valueCache", void 0), z([
h("animationFrameService")
], n.prototype, "animationFrameService", void 0), z([
Y("statusBarService")
], n.prototype, "statusBarService", void 0), z([
Y("chartService")
], n.prototype, "chartService", void 0), z([
Y("undoRedoService")
], n.prototype, "undoRedoService", void 0), z([
Y("rowNodeBlockLoader")
], n.prototype, "rowNodeBlockLoader", void 0), z([
Y("ssrmTransactionManager")
], n.prototype, "serverSideTransactionManager", void 0), z([
h("ctrlsService")
], n.prototype, "ctrlsService", void 0), z([
b
], n.prototype, "init", null), z([
fe
], n.prototype, "cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid", null), n = z([
A("gridApi")
], n), n;
}()
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Nd = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Wo = function() {
return Wo = Object.assign || function(n) {
for (var t, e = 1, r = arguments.length; e < r; e++) {
t = arguments[e];
for (var o in t)
Object.prototype.hasOwnProperty.call(t, o) && (n[o] = t[o]);
}
return n;
}, Wo.apply(this, arguments);
}, Tt = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Gd = (
/** @class */
function(n) {
Nd(t, n);
function t() {
var r = n !== null && n.apply(this, arguments) || this;
return r.allColumnFilters = /* @__PURE__ */ new Map(), r.activeAggregateFilters = [], r.activeColumnFilters = [], r.quickFilter = null, r.quickFilterParts = null, r.processingFilterChange = !1, r;
}
e = t, t.prototype.init = function() {
var r = this;
this.addManagedListener(this.eventService, v.EVENT_GRID_COLUMNS_CHANGED, function() {
return r.onColumnsChanged();
}), this.addManagedListener(this.eventService, v.EVENT_COLUMN_VALUE_CHANGED, function() {
return r.refreshFiltersForAggregations();
}), this.addManagedListener(this.eventService, v.EVENT_COLUMN_PIVOT_CHANGED, function() {
return r.refreshFiltersForAggregations();
}), this.addManagedListener(this.eventService, v.EVENT_COLUMN_PIVOT_MODE_CHANGED, function() {
r.refreshFiltersForAggregations(), r.resetQuickFilterCache();
}), this.addManagedListener(this.eventService, v.EVENT_NEW_COLUMNS_LOADED, function() {
return r.resetQuickFilterCache();
}), this.addManagedListener(this.eventService, v.EVENT_COLUMN_ROW_GROUP_CHANGED, function() {
return r.resetQuickFilterCache();
}), this.addManagedListener(this.eventService, v.EVENT_COLUMN_VISIBLE, function() {
r.gridOptionsService.is("excludeHiddenColumnsFromQuickFilter") && r.resetQuickFilterCache();
}), this.addManagedPropertyListener("quickFilterText", function(o) {
return r.setQuickFilter(o.currentValue);
}), this.addManagedPropertyListener("excludeHiddenColumnsFromQuickFilter", function() {
return r.onExcludeHiddenColumnsFromQuickFilterChanged();
}), this.quickFilter = this.parseQuickFilter(this.gridOptionsService.get("quickFilterText")), this.setQuickFilterParts(), this.allowShowChangeAfterFilter = this.gridOptionsService.is("allowShowChangeAfterFilter"), this.externalFilterPresent = this.isExternalFilterPresentCallback();
}, t.prototype.isExternalFilterPresentCallback = function() {
var r = this.gridOptionsService.getCallback("isExternalFilterPresent");
return typeof r == "function" ? r({}) : !1;
}, t.prototype.doesExternalFilterPass = function(r) {
var o = this.gridOptionsService.get("doesExternalFilterPass");
return typeof o == "function" ? o(r) : !1;
}, t.prototype.setQuickFilterParts = function() {
this.quickFilterParts = this.quickFilter ? this.quickFilter.split(" ") : null;
}, t.prototype.setFilterModel = function(r) {
var o = this, i = [], s = this.getFilterModel();
if (r) {
var a = Xn(Object.keys(r));
this.allColumnFilters.forEach(function(l, u) {
var c = r[u];
i.push(o.setModelOnFilterWrapper(l.filterPromise, c)), a.delete(u);
}), a.forEach(function(l) {
var u = o.columnModel.getPrimaryColumn(l) || o.columnModel.getGridColumn(l);
if (!u) {
console.warn("AG Grid: setFilterModel() - no column found for colId: " + l);
return;
}
if (!u.isFilterAllowed()) {
console.warn("AG Grid: setFilterModel() - unable to fully apply model, filtering disabled for colId: " + l);
return;
}
var c = o.getOrCreateFilterWrapper(u, "NO_UI");
if (!c) {
console.warn("AG-Grid: setFilterModel() - unable to fully apply model, unable to create filter for colId: " + l);
return;
}
i.push(o.setModelOnFilterWrapper(c.filterPromise, r[l]));
});
} else
this.allColumnFilters.forEach(function(l) {
i.push(o.setModelOnFilterWrapper(l.filterPromise, null));
});
Ne.all(i).then(function() {
var l = o.getFilterModel(), u = [];
o.allColumnFilters.forEach(function(c, p) {
var d = s ? s[p] : null, f = l ? l[p] : null;
G.jsonEquals(d, f) || u.push(c.column);
}), u.length > 0 && o.onFilterChanged({ columns: u });
});
}, t.prototype.setModelOnFilterWrapper = function(r, o) {
return new Ne(function(i) {
r.then(function(s) {
typeof s.setModel != "function" && (console.warn("AG Grid: filter missing setModel method, which is needed for setFilterModel"), i()), (s.setModel(o) || Ne.resolve()).then(function() {
return i();
});
});
});
}, t.prototype.getFilterModel = function() {
var r = {};
return this.allColumnFilters.forEach(function(o, i) {
var s = o.filterPromise, a = s.resolveNow(null, function(u) {
return u;
});
if (a == null)
return null;
if (typeof a.getModel != "function") {
console.warn("AG Grid: filter API missing getModel method, which is needed for getFilterModel");
return;
}
var l = a.getModel();
O(l) && (r[i] = l);
}), r;
}, t.prototype.isColumnFilterPresent = function() {
return this.activeColumnFilters.length > 0;
}, t.prototype.isAggregateFilterPresent = function() {
return !!this.activeAggregateFilters.length;
}, t.prototype.isExternalFilterPresent = function() {
return this.externalFilterPresent;
}, t.prototype.doAggregateFiltersPass = function(r, o) {
return this.doColumnFiltersPass(r, o, !0);
}, t.prototype.updateActiveFilters = function() {
var r = this;
this.activeColumnFilters.length = 0, this.activeAggregateFilters.length = 0;
var o = function(a) {
return a ? a.isFilterActive ? a.isFilterActive() : (console.warn("AG Grid: Filter is missing isFilterActive() method"), !1) : !1;
}, i = !!this.gridOptionsService.getGroupAggFiltering(), s = function(a) {
var l = !a.isPrimary();
if (l)
return !0;
var u = !r.columnModel.isPivotActive(), c = a.isValueActive();
return !c || !u ? !1 : r.columnModel.isPivotMode() ? !0 : i;
};
this.allColumnFilters.forEach(function(a) {
if (a.filterPromise.resolveNow(!1, o)) {
var l = a.filterPromise.resolveNow(null, function(u) {
return u;
});
s(a.column) ? r.activeAggregateFilters.push(l) : r.activeColumnFilters.push(l);
}
});
}, t.prototype.updateFilterFlagInColumns = function(r, o) {
this.allColumnFilters.forEach(function(i) {
var s = i.filterPromise.resolveNow(!1, function(a) {
return a.isFilterActive();
});
i.column.setFilterActive(s, r, o);
});
}, t.prototype.isAnyFilterPresent = function() {
return this.isQuickFilterPresent() || this.isColumnFilterPresent() || this.isAggregateFilterPresent() || this.isExternalFilterPresent();
}, t.prototype.doColumnFiltersPass = function(r, o, i) {
for (var s = r.data, a = r.aggData, l = i ? this.activeAggregateFilters : this.activeColumnFilters, u = i ? a : s, c = 0; c < l.length; c++) {
var p = l[c];
if (!(p == null || p === o)) {
if (typeof p.doesFilterPass != "function")
throw new Error("Filter is missing method doesFilterPass");
if (!p.doesFilterPass({ node: r, data: u }))
return !1;
}
}
return !0;
}, t.prototype.parseQuickFilter = function(r) {
return O(r) ? this.gridOptionsService.isRowModelType("clientSide") ? r.toUpperCase() : (console.warn("AG Grid - Quick filtering only works with the Client-Side Row Model"), null) : null;
}, t.prototype.setQuickFilter = function(r) {
if (r != null && typeof r != "string") {
console.warn("AG Grid - setQuickFilter() only supports string inputs, received: " + typeof r);
return;
}
var o = this.parseQuickFilter(r);
this.quickFilter !== o && (this.quickFilter = o, this.setQuickFilterParts(), this.onFilterChanged());
}, t.prototype.resetQuickFilterCache = function() {
this.rowModel.forEachNode(function(r) {
return r.quickFilterAggregateText = null;
});
}, t.prototype.onExcludeHiddenColumnsFromQuickFilterChanged = function() {
this.columnModel.refreshQuickFilterColumns(), this.resetQuickFilterCache(), this.isQuickFilterPresent() && this.onFilterChanged();
}, t.prototype.refreshFiltersForAggregations = function() {
var r = this.gridOptionsService.getGroupAggFiltering();
r && this.onFilterChanged();
}, t.prototype.callOnFilterChangedOutsideRenderCycle = function(r) {
var o = this;
r === void 0 && (r = {});
var i = function() {
return o.onFilterChanged(r);
};
this.rowRenderer.isRefreshInProgress() ? setTimeout(i, 0) : i();
}, t.prototype.onFilterChanged = function(r) {
r === void 0 && (r = {});
var o = r.filterInstance, i = r.additionalEventAttributes, s = r.columns;
this.updateDependantFilters(), this.updateActiveFilters(), this.updateFilterFlagInColumns("filterChanged", i), this.externalFilterPresent = this.isExternalFilterPresentCallback(), this.allColumnFilters.forEach(function(l) {
l.filterPromise && l.filterPromise.then(function(u) {
u && u !== o && u.onAnyFilterChanged && u.onAnyFilterChanged();
});
});
var a = {
type: v.EVENT_FILTER_CHANGED,
columns: s || []
};
i && Re(a, i), this.processingFilterChange = !0, this.eventService.dispatchEvent(a), this.processingFilterChange = !1;
}, t.prototype.isSuppressFlashingCellsBecauseFiltering = function() {
return !this.allowShowChangeAfterFilter && this.processingFilterChange;
}, t.prototype.isQuickFilterPresent = function() {
return this.quickFilter !== null;
}, t.prototype.doesRowPassOtherFilters = function(r, o) {
return this.doesRowPassFilter({ rowNode: o, filterInstanceToSkip: r });
}, t.prototype.doesRowPassQuickFilterNoCache = function(r, o) {
var i = this, s = this.columnModel.getAllColumnsForQuickFilter();
return s.some(function(a) {
var l = i.getQuickFilterTextForColumn(a, r);
return O(l) && l.indexOf(o) >= 0;
});
}, t.prototype.doesRowPassQuickFilterCache = function(r, o) {
return r.quickFilterAggregateText || this.aggregateRowForQuickFilter(r), r.quickFilterAggregateText.indexOf(o) >= 0;
}, t.prototype.doesRowPassQuickFilter = function(r) {
var o = this, i = this.gridOptionsService.is("cacheQuickFilter");
return this.quickFilterParts.every(function(s) {
return i ? o.doesRowPassQuickFilterCache(r, s) : o.doesRowPassQuickFilterNoCache(r, s);
});
}, t.prototype.doesRowPassAggregateFilters = function(r) {
return !(this.isAggregateFilterPresent() && !this.doAggregateFiltersPass(r.rowNode, r.filterInstanceToSkip));
}, t.prototype.doesRowPassFilter = function(r) {
return !(this.isQuickFilterPresent() && !this.doesRowPassQuickFilter(r.rowNode) || this.isExternalFilterPresent() && !this.doesExternalFilterPass(r.rowNode) || this.isColumnFilterPresent() && !this.doColumnFiltersPass(r.rowNode, r.filterInstanceToSkip));
}, t.prototype.getQuickFilterTextForColumn = function(r, o) {
var i = this.valueService.getValue(r, o, !0), s = r.getColDef();
if (s.getQuickFilterText) {
var a = {
value: i,
node: o,
data: o.data,
column: r,
colDef: s,
api: this.gridOptionsService.api,
columnApi: this.gridOptionsService.columnApi,
context: this.gridOptionsService.context
};
i = s.getQuickFilterText(a);
}
return O(i) ? i.toString().toUpperCase() : null;
}, t.prototype.aggregateRowForQuickFilter = function(r) {
var o = this, i = [], s = this.columnModel.getAllColumnsForQuickFilter();
s.forEach(function(a) {
var l = o.getQuickFilterTextForColumn(a, r);
O(l) && i.push(l);
}), r.quickFilterAggregateText = i.join(e.QUICK_FILTER_SEPARATOR);
}, t.prototype.onNewRowsLoaded = function(r) {
this.allColumnFilters.forEach(function(o) {
o.filterPromise.then(function(i) {
i.onNewRowsLoaded && i.onNewRowsLoaded();
});
}), this.updateFilterFlagInColumns(r, { afterDataChange: !0 }), this.updateActiveFilters();
}, t.prototype.createValueGetter = function(r) {
var o = this;
return function(i) {
var s = i.node;
return o.valueService.getValue(r, s, !0);
};
}, t.prototype.getFilterComponent = function(r, o, i) {
var s;
if (i === void 0 && (i = !0), i)
return ((s = this.getOrCreateFilterWrapper(r, o)) === null || s === void 0 ? void 0 : s.filterPromise) || null;
var a = this.cachedFilter(r);
return a ? a.filterPromise : null;
}, t.prototype.isFilterActive = function(r) {
var o = this.cachedFilter(r);
return !!o && o.filterPromise.resolveNow(!1, function(i) {
return i.isFilterActive();
});
}, t.prototype.getOrCreateFilterWrapper = function(r, o) {
if (!r.isFilterAllowed())
return null;
var i = this.cachedFilter(r);
return i ? o !== "NO_UI" && this.putIntoGui(i, o) : (i = this.createFilterWrapper(r, o), this.allColumnFilters.set(r.getColId(), i)), i;
}, t.prototype.cachedFilter = function(r) {
return this.allColumnFilters.get(r.getColId());
}, t.prototype.createFilterInstance = function(r) {
var o = this, i = N.isRegistered(F.SetFilterModule) ? "agSetColumnFilter" : "agTextColumnFilter", s = r.getColDef(), a, l = Wo(Wo({}, this.createFilterParams(r, s)), { filterModifiedCallback: function() {
var p = {
type: v.EVENT_FILTER_MODIFIED,
column: r,
filterInstance: a
};
o.eventService.dispatchEvent(p);
}, filterChangedCallback: function(p) {
var d = { filterInstance: a, additionalEventAttributes: p, columns: [r] };
o.callOnFilterChangedOutsideRenderCycle(d);
}, doesRowPassOtherFilter: function(p) {
return o.doesRowPassOtherFilters(a, p);
} }), u = this.userComponentFactory.getFilterDetails(s, l, i);
if (!u)
return null;
var c = u.newAgStackInstance();
return c && c.then(function(p) {
return a = p;
}), c;
}, t.prototype.createFilterParams = function(r, o) {
var i = {
column: r,
colDef: bn(o),
rowModel: this.rowModel,
filterChangedCallback: function() {
},
filterModifiedCallback: function() {
},
valueGetter: this.createValueGetter(r),
doesRowPassOtherFilter: function() {
return !0;
},
api: this.gridOptionsService.api,
columnApi: this.gridOptionsService.columnApi,
context: this.gridOptionsService.context
};
return i;
}, t.prototype.createFilterWrapper = function(r, o) {
var i = {
column: r,
filterPromise: null,
compiledElement: null,
guiPromise: Ne.resolve(null)
};
return i.filterPromise = this.createFilterInstance(r), i.filterPromise && this.putIntoGui(i, o), i;
}, t.prototype.putIntoGui = function(r, o) {
var i = this, s = document.createElement("div");
s.className = "ag-filter", r.guiPromise = new Ne(function(a) {
r.filterPromise.then(function(l) {
var u = l.getGui();
O(u) || console.warn("AG Grid: getGui method from filter returned " + u + ", it should be a DOM element or an HTML template string."), typeof u == "string" && (u = de(u)), s.appendChild(u), a(s);
var c = {
type: v.EVENT_FILTER_OPENED,
column: r.column,
source: o,
eGui: s
};
i.eventService.dispatchEvent(c);
});
});
}, t.prototype.onColumnsChanged = function() {
var r = this, o = [];
this.allColumnFilters.forEach(function(i, s) {
var a;
i.column.isPrimary() ? a = r.columnModel.getPrimaryColumn(s) : a = r.columnModel.getGridColumn(s), !a && (o.push(i.column), r.disposeFilterWrapper(i, "columnChanged"));
}), o.length > 0 ? this.onFilterChanged({ columns: o }) : this.updateDependantFilters();
}, t.prototype.updateDependantFilters = function() {
var r = this, o = this.columnModel.getGroupAutoColumns();
o == null || o.forEach(function(i) {
i.getColDef().filter === "agGroupColumnFilter" && r.getOrCreateFilterWrapper(i, "NO_UI");
});
}, t.prototype.isFilterAllowed = function(r) {
var o, i, s = r.isFilterAllowed();
if (!s)
return !1;
var a = this.allColumnFilters.get(r.getColId());
return (i = (o = a == null ? void 0 : a.filterPromise) === null || o === void 0 ? void 0 : o.resolveNow(
!0,
// defer to filter component isFilterAllowed if it exists
function(l) {
var u, c;
return typeof ((u = l) === null || u === void 0 ? void 0 : u.isFilterAllowed) == "function" ? (c = l) === null || c === void 0 ? void 0 : c.isFilterAllowed() : !0;
}
)) !== null && i !== void 0 ? i : !0;
}, t.prototype.getFloatingFilterCompDetails = function(r, o) {
var i = this, s = r.getColDef(), a = this.createFilterParams(r, s), l = this.userComponentFactory.mergeParamsWithApplicationProvidedParams(s, wn, a), u = this.userComponentFactory.getDefaultFloatingFilterType(s);
u == null && (u = "agReadOnlyFloatingFilter");
var c = function(d) {
var f = i.getFilterComponent(r, "NO_UI");
f != null && f.then(function(g) {
d(Pt(g));
});
}, p = {
column: r,
filterParams: l,
currentParentModel: function() {
return i.getCurrentFloatingFilterParentModel(r);
},
parentFilterInstance: c,
showParentFilter: o,
suppressFilterButton: !1
// This one might be overridden from the colDef
};
return this.userComponentFactory.getFloatingFilterCompDetails(s, p, u);
}, t.prototype.getCurrentFloatingFilterParentModel = function(r) {
var o = this.getFilterComponent(r, "NO_UI", !1);
return o ? o.resolveNow(null, function(i) {
return i && i.getModel();
}) : null;
}, t.prototype.destroyFilter = function(r, o) {
o === void 0 && (o = "api");
var i = this.allColumnFilters.get(r.getColId());
i && (this.disposeFilterWrapper(i, o), this.onFilterChanged({ columns: [r] }));
}, t.prototype.disposeFilterWrapper = function(r, o) {
var i = this;
r.filterPromise.then(function(s) {
(s.setModel(null) || Ne.resolve()).then(function() {
i.getContext().destroyBean(s), r.column.setFilterActive(!1, "filterDestroyed"), i.allColumnFilters.delete(r.column.getColId());
var a = {
type: v.EVENT_FILTER_DESTROYED,
source: o,
column: r.column
};
i.eventService.dispatchEvent(a);
});
});
}, t.prototype.destroy = function() {
var r = this;
n.prototype.destroy.call(this), this.allColumnFilters.forEach(function(o) {
return r.disposeFilterWrapper(o, "gridDestroyed");
});
};
var e;
return t.QUICK_FILTER_SEPARATOR = `
`, Tt([
h("valueService")
], t.prototype, "valueService", void 0), Tt([
h("columnModel")
], t.prototype, "columnModel", void 0), Tt([
h("rowModel")
], t.prototype, "rowModel", void 0), Tt([
h("userComponentFactory")
], t.prototype, "userComponentFactory", void 0), Tt([
h("rowRenderer")
], t.prototype, "rowRenderer", void 0), Tt([
b
], t.prototype, "init", null), t = e = Tt([
A("filterManager")
], t), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Hd = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), os = (
/** @class */
function(n) {
Hd(t, n);
function t(e, r) {
var o = n.call(this, e) || this;
return o.ctrl = r, o;
}
return t.prototype.getCtrl = function() {
return this.ctrl;
}, t;
}(W)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Vd = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Zr = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Bd = (
/** @class */
function(n) {
Vd(t, n);
function t(e) {
return n.call(this, t.TEMPLATE, e) || this;
}
return t.prototype.postConstruct = function() {
var e = this, r = this.getGui(), o = {
addOrRemoveCssClass: function(i, s) {
return e.addOrRemoveCssClass(i, s);
},
addOrRemoveBodyCssClass: function(i, s) {
return e.eFloatingFilterBody.classList.toggle(i, s);
},
setButtonWrapperDisplayed: function(i) {
return k(e.eButtonWrapper, i);
},
setCompDetails: function(i) {
return e.setCompDetails(i);
},
getFloatingFilterComp: function() {
return e.compPromise;
},
setWidth: function(i) {
return r.style.width = i;
},
setMenuIcon: function(i) {
return e.eButtonShowMainFilter.appendChild(i);
}
};
this.ctrl.setComp(o, r, this.eButtonShowMainFilter, this.eFloatingFilterBody);
}, t.prototype.setCompDetails = function(e) {
var r = this;
this.compPromise = e.newAgStackInstance(), this.compPromise.then(function(o) {
return r.afterCompCreated(o);
});
}, t.prototype.afterCompCreated = function(e) {
var r = this;
e && (this.addDestroyFunc(function() {
return r.context.destroyBean(e);
}), this.isAlive() && (this.eFloatingFilterBody.appendChild(e.getGui()), e.afterGuiAttached && e.afterGuiAttached()));
}, t.TEMPLATE = `<div class="ag-header-cell ag-floating-filter" role="gridcell" tabindex="-1">
<div ref="eFloatingFilterBody" role="presentation"></div>
<div class="ag-floating-filter-button ag-hidden" ref="eButtonWrapper" role="presentation">
<button type="button" aria-label="Open Filter Menu" class="ag-floating-filter-button-button" ref="eButtonShowMainFilter" tabindex="-1"></button>
</div>
</div>`, Zr([
P("eFloatingFilterBody")
], t.prototype, "eFloatingFilterBody", void 0), Zr([
P("eButtonWrapper")
], t.prototype, "eButtonWrapper", void 0), Zr([
P("eButtonShowMainFilter")
], t.prototype, "eButtonShowMainFilter", void 0), Zr([
b
], t.prototype, "postConstruct", null), t;
}(os)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Wd = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), jd = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, ne;
(function(n) {
n.AUTO_HEIGHT = "ag-layout-auto-height", n.NORMAL = "ag-layout-normal", n.PRINT = "ag-layout-print";
})(ne || (ne = {}));
var is = (
/** @class */
function(n) {
Wd(t, n);
function t(e) {
var r = n.call(this) || this;
return r.view = e, r;
}
return t.prototype.postConstruct = function() {
this.addManagedPropertyListener("domLayout", this.updateLayoutClasses.bind(this)), this.updateLayoutClasses();
}, t.prototype.updateLayoutClasses = function() {
var e = this.getDomLayout(), r = {
autoHeight: e === "autoHeight",
normal: e === "normal",
print: e === "print"
}, o = r.autoHeight ? ne.AUTO_HEIGHT : r.print ? ne.PRINT : ne.NORMAL;
this.view.updateLayoutClasses(o, r);
}, t.prototype.getDomLayout = function() {
var e, r = (e = this.gridOptionsService.get("domLayout")) !== null && e !== void 0 ? e : "normal", o = ["normal", "print", "autoHeight"];
return o.indexOf(r) === -1 ? (K(function() {
return console.warn("AG Grid: " + r + " is not valid for DOM Layout, valid values are 'normal', 'autoHeight', 'print'.");
}, "warn about dom layout values"), "normal") : r;
}, jd([
b
], t.prototype, "postConstruct", null), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var kd = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), jo = function() {
return jo = Object.assign || function(n) {
for (var t, e = 1, r = arguments.length; e < r; e++) {
t = arguments[e];
for (var o in t)
Object.prototype.hasOwnProperty.call(t, o) && (n[o] = t[o]);
}
return n;
}, jo.apply(this, arguments);
}, ct = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Ud = (
/** @class */
function(n) {
kd(t, n);
function t(e) {
var r = n.call(this) || this;
return r.scrollLeft = -1, r.nextScrollTop = -1, r.scrollTop = -1, r.eBodyViewport = e, r.resetLastHScrollDebounced = Je(function() {
return r.eLastHScroll = null;
}, 500), r.resetLastVScrollDebounced = Je(function() {
return r.eLastVScroll = null;
}, 500), r;
}
return t.prototype.postConstruct = function() {
var e = this;
this.enableRtl = this.gridOptionsService.is("enableRtl"), this.addManagedListener(this.eventService, v.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED, this.onDisplayedColumnsWidthChanged.bind(this)), this.ctrlsService.whenReady(function(r) {
e.centerRowContainerCtrl = r.centerRowContainerCtrl, e.onDisplayedColumnsWidthChanged(), e.addScrollListener();
});
}, t.prototype.addScrollListener = function() {
var e = this.ctrlsService.getFakeHScrollComp(), r = this.ctrlsService.getFakeVScrollComp();
this.addManagedListener(this.centerRowContainerCtrl.getViewportElement(), "scroll", this.onHScroll.bind(this)), this.addManagedListener(e.getViewport(), "scroll", this.onFakeHScroll.bind(this));
var o = this.gridOptionsService.is("debounceVerticalScrollbar"), i = o ? Je(this.onVScroll.bind(this), 100) : this.onVScroll.bind(this), s = o ? Je(this.onFakeVScroll.bind(this), 100) : this.onFakeVScroll.bind(this);
this.addManagedListener(this.eBodyViewport, "scroll", i), this.addManagedListener(r.getViewport(), "scroll", s);
}, t.prototype.onDisplayedColumnsWidthChanged = function() {
this.enableRtl && this.horizontallyScrollHeaderCenterAndFloatingCenter();
}, t.prototype.horizontallyScrollHeaderCenterAndFloatingCenter = function(e) {
var r = this.centerRowContainerCtrl == null;
if (!r) {
e === void 0 && (e = this.centerRowContainerCtrl.getCenterViewportScrollLeft());
var o = this.enableRtl ? e : -e, i = this.ctrlsService.getTopCenterRowContainerCtrl(), s = this.ctrlsService.getStickyTopCenterRowContainerCtrl(), a = this.ctrlsService.getBottomCenterRowContainerCtrl(), l = this.ctrlsService.getFakeHScrollComp(), u = this.ctrlsService.getHeaderRowContainerCtrl();
u.setHorizontalScroll(-o), a.setContainerTranslateX(o), i.setContainerTranslateX(o), s.setContainerTranslateX(o);
var c = this.centerRowContainerCtrl.getViewportElement(), p = this.eLastHScroll === c, d = p ? l.getViewport() : this.centerRowContainerCtrl.getViewportElement();
Lo(d, Math.abs(e), this.enableRtl);
}
}, t.prototype.isControllingHScroll = function(e) {
return this.eLastHScroll ? e === this.eLastHScroll : (this.eLastHScroll = e, !0);
}, t.prototype.isControllingVScroll = function(e) {
return this.eLastVScroll ? e === this.eLastVScroll : (this.eLastVScroll = e, !0);
}, t.prototype.onFakeHScroll = function() {
var e = this.ctrlsService.getFakeHScrollComp().getViewport();
this.isControllingHScroll(e) && this.onHScrollCommon(e);
}, t.prototype.onHScroll = function() {
var e = this.centerRowContainerCtrl.getViewportElement();
this.isControllingHScroll(e) && this.onHScrollCommon(e);
}, t.prototype.onHScrollCommon = function(e) {
var r = this.centerRowContainerCtrl.getViewportElement(), o = r.scrollLeft;
this.shouldBlockScrollUpdate("horizontal", o, !0) || (this.doHorizontalScroll(Math.round(Nr(e, this.enableRtl))), this.resetLastHScrollDebounced());
}, t.prototype.onFakeVScroll = function() {
var e = this.ctrlsService.getFakeVScrollComp().getViewport();
this.isControllingVScroll(e) && this.onVScrollCommon(e);
}, t.prototype.onVScroll = function() {
this.isControllingVScroll(this.eBodyViewport) && this.onVScrollCommon(this.eBodyViewport);
}, t.prototype.onVScrollCommon = function(e) {
var r = e.scrollTop;
if (!this.shouldBlockScrollUpdate("vertical", r, !0)) {
if (this.animationFrameService.setScrollTop(r), this.nextScrollTop = r, e === this.eBodyViewport) {
var o = this.ctrlsService.getFakeVScrollComp().getViewport();
o.scrollTop = r;
} else
this.eBodyViewport.scrollTop = r;
this.gridOptionsService.is("suppressAnimationFrame") ? this.scrollGridIfNeeded() : this.animationFrameService.schedule(), this.resetLastVScrollDebounced();
}
}, t.prototype.doHorizontalScroll = function(e) {
var r = this.ctrlsService.getFakeHScrollComp().getViewport(), o = Nr(r, this.enableRtl);
this.scrollLeft === e && e === o || (this.scrollLeft = e, this.fireScrollEvent("horizontal"), this.horizontallyScrollHeaderCenterAndFloatingCenter(e), this.onHorizontalViewportChanged());
}, t.prototype.fireScrollEvent = function(e) {
var r = this, o = {
type: v.EVENT_BODY_SCROLL,
direction: e,
left: this.scrollLeft,
top: this.scrollTop
};
this.eventService.dispatchEvent(o), window.clearTimeout(this.scrollTimer), this.scrollTimer = void 0, this.scrollTimer = window.setTimeout(function() {
var i = jo(jo({}, o), { type: v.EVENT_BODY_SCROLL_END });
r.eventService.dispatchEvent(i);
}, 100);
}, t.prototype.shouldBlockScrollUpdate = function(e, r, o) {
return o === void 0 && (o = !1), o && !St() ? !1 : e === "vertical" ? this.shouldBlockVerticalScroll(r) : this.shouldBlockHorizontalScroll(r);
}, t.prototype.shouldBlockVerticalScroll = function(e) {
var r = Wr(this.eBodyViewport), o = this.eBodyViewport.scrollHeight;
return e < 0 || e + r > o;
}, t.prototype.shouldBlockHorizontalScroll = function(e) {
var r = this.centerRowContainerCtrl.getCenterWidth(), o = this.centerRowContainerCtrl.getViewportElement().scrollWidth;
if (this.enableRtl && xr()) {
if (e > 0)
return !0;
} else if (e < 0)
return !0;
return Math.abs(e) + r > o;
}, t.prototype.redrawRowsAfterScroll = function() {
this.fireScrollEvent("vertical");
}, t.prototype.onHorizontalViewportChanged = function() {
this.centerRowContainerCtrl.onHorizontalViewportChanged();
}, t.prototype.checkScrollLeft = function() {
this.scrollLeft !== this.centerRowContainerCtrl.getCenterViewportScrollLeft() && this.onHScrollCommon(this.centerRowContainerCtrl.getViewportElement());
}, t.prototype.scrollGridIfNeeded = function() {
var e = this.scrollTop != this.nextScrollTop;
return e && (this.scrollTop = this.nextScrollTop, this.redrawRowsAfterScroll()), e;
}, t.prototype.setHorizontalScrollPosition = function(e) {
var r = 0, o = this.centerRowContainerCtrl.getViewportElement().scrollWidth - this.centerRowContainerCtrl.getCenterWidth();
this.shouldBlockScrollUpdate("horizontal", e) && (this.enableRtl && xr() ? e = e > 0 ? 0 : o : e = Math.min(Math.max(e, r), o)), Lo(this.centerRowContainerCtrl.getViewportElement(), Math.abs(e), this.enableRtl), this.doHorizontalScroll(e);
}, t.prototype.setVerticalScrollPosition = function(e) {
this.eBodyViewport.scrollTop = e;
}, t.prototype.getVScrollPosition = function() {
var e = {
top: this.eBodyViewport.scrollTop,
bottom: this.eBodyViewport.scrollTop + this.eBodyViewport.offsetHeight
};
return e;
}, t.prototype.getHScrollPosition = function() {
return this.centerRowContainerCtrl.getHScrollPosition();
}, t.prototype.isHorizontalScrollShowing = function() {
return this.centerRowContainerCtrl.isHorizontalScrollShowing();
}, t.prototype.scrollHorizontally = function(e) {
var r = this.centerRowContainerCtrl.getViewportElement().scrollLeft;
return this.setHorizontalScrollPosition(r + e), this.centerRowContainerCtrl.getViewportElement().scrollLeft - r;
}, t.prototype.scrollToTop = function() {
this.eBodyViewport.scrollTop = 0;
}, t.prototype.ensureNodeVisible = function(e, r) {
r === void 0 && (r = null);
for (var o = this.rowModel.getRowCount(), i = -1, s = 0; s < o; s++) {
var a = this.rowModel.getRow(s);
if (typeof e == "function") {
var l = e;
if (a && l(a)) {
i = s;
break;
}
} else if (e === a || e === a.data) {
i = s;
break;
}
}
i >= 0 && this.ensureIndexVisible(i, r);
}, t.prototype.ensureIndexVisible = function(e, r) {
if (!this.gridOptionsService.isDomLayout("print")) {
var o = this.paginationProxy.getRowCount();
if (typeof e != "number" || e < 0 || e >= o) {
console.warn("AG Grid: Invalid row index for ensureIndexVisible: " + e);
return;
}
var i = this.gridOptionsService.is("pagination"), s = i && !this.gridOptionsService.is("suppressPaginationPanel");
s || this.paginationProxy.goToPageWithIndex(e);
var a = this.ctrlsService.getGridBodyCtrl(), l = a.getStickyTopHeight(), u = this.paginationProxy.getRow(e), c;
do {
var p = u.rowTop, d = u.rowHeight, f = this.paginationProxy.getPixelOffset(), g = u.rowTop - f, y = g + u.rowHeight, C = this.getVScrollPosition(), m = this.heightScaler.getDivStretchOffset(), w = C.top + m, E = C.bottom + m, R = E - w, D = this.heightScaler.getScrollPositionForPixel(g), M = this.heightScaler.getScrollPositionForPixel(y - R), I = Math.min((D + M) / 2, g), L = w + l > g, H = E < y, B = null;
r === "top" ? B = D : r === "bottom" ? B = M : r === "middle" ? B = I : L ? B = D - l : H && (B = M), B !== null && (this.eBodyViewport.scrollTop = B, this.rowRenderer.redrawAfterScroll()), c = p !== u.rowTop || d !== u.rowHeight;
} while (c);
this.animationFrameService.flushAllFrames();
}
}, t.prototype.ensureColumnVisible = function(e, r) {
r === void 0 && (r = "auto");
var o = this.columnModel.getGridColumn(e);
if (o && !o.isPinned() && this.columnModel.isColumnDisplayed(o)) {
var i = this.getPositionedHorizontalScroll(o, r);
i !== null && this.centerRowContainerCtrl.setCenterViewportScrollLeft(i), this.centerRowContainerCtrl.onHorizontalViewportChanged(), this.animationFrameService.flushAllFrames();
}
}, t.prototype.getPositionedHorizontalScroll = function(e, r) {
var o = this.isColumnOutsideViewport(e), i = o.columnBeforeStart, s = o.columnAfterEnd, a = this.centerRowContainerCtrl.getCenterWidth() < e.getActualWidth(), l = this.centerRowContainerCtrl.getCenterWidth(), u = this.enableRtl, c = (u ? i : s) || a, p = u ? s : i;
r !== "auto" && (c = r === "start", p = r === "end");
var d = r === "middle";
if (c || p || d) {
var f = this.getColumnBounds(e), g = f.colLeft, y = f.colMiddle, C = f.colRight;
return d ? y - l / 2 : c ? u ? C : g : u ? g - l : C - l;
}
return null;
}, t.prototype.isColumnOutsideViewport = function(e) {
var r = this.getViewportBounds(), o = r.start, i = r.end, s = this.getColumnBounds(e), a = s.colLeft, l = s.colRight, u = this.enableRtl, c = u ? o > l : i < l, p = u ? i < a : o > a;
return { columnBeforeStart: c, columnAfterEnd: p };
}, t.prototype.getColumnBounds = function(e) {
var r = this.enableRtl, o = this.columnModel.getBodyContainerWidth(), i = e.getActualWidth(), s = e.getLeft(), a = r ? -1 : 1, l = r ? o - s : s, u = l + i * a, c = l + i / 2 * a;
return { colLeft: l, colMiddle: c, colRight: u };
}, t.prototype.getViewportBounds = function() {
var e = this.centerRowContainerCtrl.getCenterWidth(), r = this.centerRowContainerCtrl.getCenterViewportScrollLeft(), o = r, i = e + r;
return { start: o, end: i, width: e };
}, ct([
h("ctrlsService")
], t.prototype, "ctrlsService", void 0), ct([
h("animationFrameService")
], t.prototype, "animationFrameService", void 0), ct([
h("paginationProxy")
], t.prototype, "paginationProxy", void 0), ct([
h("rowModel")
], t.prototype, "rowModel", void 0), ct([
h("rowContainerHeightService")
], t.prototype, "heightScaler", void 0), ct([
h("rowRenderer")
], t.prototype, "rowRenderer", void 0), ct([
h("columnModel")
], t.prototype, "columnModel", void 0), ct([
b
], t.prototype, "postConstruct", null), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var zd = (
/** @class */
function() {
function n(t) {
this.tickingInterval = null, this.onScrollCallback = null, this.scrollContainer = t.scrollContainer, this.scrollHorizontally = t.scrollAxis.indexOf("x") !== -1, this.scrollVertically = t.scrollAxis.indexOf("y") !== -1, this.scrollByTick = t.scrollByTick != null ? t.scrollByTick : 20, t.onScrollCallback && (this.onScrollCallback = t.onScrollCallback), this.scrollVertically && (this.getVerticalPosition = t.getVerticalPosition, this.setVerticalPosition = t.setVerticalPosition), this.scrollHorizontally && (this.getHorizontalPosition = t.getHorizontalPosition, this.setHorizontalPosition = t.setHorizontalPosition), this.shouldSkipVerticalScroll = t.shouldSkipVerticalScroll || function() {
return !1;
}, this.shouldSkipHorizontalScroll = t.shouldSkipHorizontalScroll || function() {
return !1;
};
}
return n.prototype.check = function(t, e) {
e === void 0 && (e = !1);
var r = e || this.shouldSkipVerticalScroll();
if (!(r && this.shouldSkipHorizontalScroll())) {
var o = this.scrollContainer.getBoundingClientRect(), i = this.scrollByTick;
this.tickLeft = t.clientX < o.left + i, this.tickRight = t.clientX > o.right - i, this.tickUp = t.clientY < o.top + i && !r, this.tickDown = t.clientY > o.bottom - i && !r, this.tickLeft || this.tickRight || this.tickUp || this.tickDown ? this.ensureTickingStarted() : this.ensureCleared();
}
}, n.prototype.ensureTickingStarted = function() {
this.tickingInterval === null && (this.tickingInterval = window.setInterval(this.doTick.bind(this), 100), this.tickCount = 0);
}, n.prototype.doTick = function() {
this.tickCount++;
var t;
if (t = this.tickCount > 20 ? 200 : this.tickCount > 10 ? 80 : 40, this.scrollVertically) {
var e = this.getVerticalPosition();
this.tickUp && this.setVerticalPosition(e - t), this.tickDown && this.setVerticalPosition(e + t);
}
if (this.scrollHorizontally) {
var r = this.getHorizontalPosition();
this.tickLeft && this.setHorizontalPosition(r - t), this.tickRight && this.setHorizontalPosition(r + t);
}
this.onScrollCallback && this.onScrollCallback();
}, n.prototype.ensureCleared = function() {
this.tickingInterval && (window.clearInterval(this.tickingInterval), this.tickingInterval = null);
}, n;
}()
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Kd = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Sn = function() {
return Sn = Object.assign || function(n) {
for (var t, e = 1, r = arguments.length; e < r; e++) {
t = arguments[e];
for (var o in t)
Object.prototype.hasOwnProperty.call(t, o) && (n[o] = t[o]);
}
return n;
}, Sn.apply(this, arguments);
}, Fe = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, $d = function(n, t) {
var e = typeof Symbol == "function" && n[Symbol.iterator];
if (!e)
return n;
var r = e.call(n), o, i = [], s;
try {
for (; (t === void 0 || t-- > 0) && !(o = r.next()).done; )
i.push(o.value);
} catch (a) {
s = { error: a };
} finally {
try {
o && !o.done && (e = r.return) && e.call(r);
} finally {
if (s)
throw s.error;
}
}
return i;
}, Yd = function() {
for (var n = [], t = 0; t < arguments.length; t++)
n = n.concat($d(arguments[t]));
return n;
}, qd = (
/** @class */
function(n) {
Kd(t, n);
function t(e) {
var r = n.call(this) || this;
return r.isMultiRowDrag = !1, r.isGridSorted = !1, r.isGridFiltered = !1, r.isRowGroupActive = !1, r.eContainer = e, r;
}
return t.prototype.postConstruct = function() {
var e = this;
this.gridOptionsService.isRowModelType("clientSide") && (this.clientSideRowModel = this.rowModel);
var r = function() {
e.onSortChanged(), e.onFilterChanged(), e.onRowGroupChanged();
};
this.addManagedListener(this.eventService, v.EVENT_SORT_CHANGED, this.onSortChanged.bind(this)), this.addManagedListener(this.eventService, v.EVENT_FILTER_CHANGED, this.onFilterChanged.bind(this)), this.addManagedListener(this.eventService, v.EVENT_COLUMN_ROW_GROUP_CHANGED, this.onRowGroupChanged.bind(this)), this.addManagedListener(this.eventService, v.EVENT_MODEL_UPDATED, function() {
r();
}), r(), this.ctrlsService.whenReady(function() {
var o = e.ctrlsService.getGridBodyCtrl();
e.autoScrollService = new zd({
scrollContainer: o.getBodyViewportElement(),
scrollAxis: "y",
getVerticalPosition: function() {
return o.getScrollFeature().getVScrollPosition().top;
},
setVerticalPosition: function(i) {
return o.getScrollFeature().setVerticalScrollPosition(i);
},
onScrollCallback: function() {
e.onDragging(e.lastDraggingEvent);
}
});
});
}, t.prototype.onSortChanged = function() {
this.isGridSorted = this.sortController.isSortActive();
}, t.prototype.onFilterChanged = function() {
this.isGridFiltered = this.filterManager.isAnyFilterPresent();
}, t.prototype.onRowGroupChanged = function() {
var e = this.columnModel.getRowGroupColumns();
this.isRowGroupActive = !Pe(e);
}, t.prototype.getContainer = function() {
return this.eContainer;
}, t.prototype.isInterestedIn = function(e) {
return e === me.RowDrag;
}, t.prototype.getIconName = function() {
var e = this.gridOptionsService.is("rowDragManaged");
return e && this.shouldPreventRowMove() ? pe.ICON_NOT_ALLOWED : pe.ICON_MOVE;
}, t.prototype.shouldPreventRowMove = function() {
return this.isGridSorted || this.isGridFiltered || this.isRowGroupActive;
}, t.prototype.getRowNodes = function(e) {
var r = this;
if (!this.isFromThisGrid(e))
return e.dragItem.rowNodes || [];
var o = this.gridOptionsService.is("rowDragMultiRow"), i = Yd(this.selectionService.getSelectedNodes()).sort(function(a, l) {
return a.rowIndex == null || l.rowIndex == null ? 0 : r.getRowIndexNumber(a) - r.getRowIndexNumber(l);
}), s = e.dragItem.rowNode;
return o && i.indexOf(s) !== -1 ? (this.isMultiRowDrag = !0, i) : (this.isMultiRowDrag = !1, [s]);
}, t.prototype.onDragEnter = function(e) {
e.dragItem.rowNodes = this.getRowNodes(e), this.dispatchGridEvent(v.EVENT_ROW_DRAG_ENTER, e), this.getRowNodes(e).forEach(function(r) {
r.setDragging(!0);
}), this.onEnterOrDragging(e);
}, t.prototype.onDragging = function(e) {
this.onEnterOrDragging(e);
}, t.prototype.isFromThisGrid = function(e) {
var r = e.dragSource.dragSourceDomDataKey;
return r === this.gridOptionsService.getDomDataKey();
}, t.prototype.isDropZoneWithinThisGrid = function(e) {
var r = this.ctrlsService.getGridBodyCtrl(), o = r.getGui(), i = e.dropZoneTarget;
return !o.contains(i);
}, t.prototype.onEnterOrDragging = function(e) {
this.dispatchGridEvent(v.EVENT_ROW_DRAG_MOVE, e), this.lastDraggingEvent = e;
var r = this.mouseEventService.getNormalisedPosition(e).y, o = this.gridOptionsService.is("rowDragManaged");
o && this.doManagedDrag(e, r), this.autoScrollService.check(e.event);
}, t.prototype.doManagedDrag = function(e, r) {
var o = this.isFromThisGrid(e), i = this.gridOptionsService.is("rowDragManaged"), s = e.dragItem.rowNodes;
i && this.shouldPreventRowMove() || (this.gridOptionsService.is("suppressMoveWhenRowDragging") || !o ? this.isDropZoneWithinThisGrid(e) || this.clientSideRowModel.highlightRowAtPixel(s[0], r) : this.moveRows(s, r));
}, t.prototype.getRowIndexNumber = function(e) {
return parseInt(q(e.getRowIndexString().split("-")), 10);
}, t.prototype.moveRowAndClearHighlight = function(e) {
var r = this, o = this.clientSideRowModel.getLastHighlightedRowNode(), i = o && o.highlighted === at.Below, s = this.mouseEventService.getNormalisedPosition(e).y, a = e.dragItem.rowNodes, l = i ? 1 : 0;
if (this.isFromThisGrid(e))
a.forEach(function(p) {
p.rowTop < s && (l -= 1);
}), this.moveRows(a, s, l);
else {
var u = this.gridOptionsService.getRowIdFunc(), c = this.clientSideRowModel.getRowIndexAtPixel(s) + 1;
this.clientSideRowModel.getHighlightPosition(s) === at.Above && c--, this.clientSideRowModel.updateRowData({
add: a.map(function(p) {
return p.data;
}).filter(function(p) {
return !r.clientSideRowModel.getRowNode(u ? u({ data: p, level: 0 }) : p.id);
}),
addIndex: c
});
}
this.clearRowHighlight();
}, t.prototype.clearRowHighlight = function() {
this.clientSideRowModel.highlightRowAtPixel(null);
}, t.prototype.moveRows = function(e, r, o) {
o === void 0 && (o = 0);
var i = this.clientSideRowModel.ensureRowsAtPixel(e, r, o);
i && (this.focusService.clearFocusedCell(), this.rangeService && this.rangeService.removeAllCellRanges());
}, t.prototype.addRowDropZone = function(e) {
var r = this;
if (!e.getContainer()) {
K(function() {
return console.warn("AG Grid: addRowDropZone - A container target needs to be provided");
}, "add-drop-zone-empty-target");
return;
}
if (this.dragAndDropService.findExternalZone(e)) {
console.warn("AG Grid: addRowDropZone - target already exists in the list of DropZones. Use `removeRowDropZone` before adding it again.");
return;
}
var o = {
getContainer: e.getContainer
};
e.fromGrid ? (e.fromGrid = void 0, o = e) : (e.onDragEnter && (o.onDragEnter = function(i) {
e.onDragEnter(r.draggingToRowDragEvent(v.EVENT_ROW_DRAG_ENTER, i));
}), e.onDragLeave && (o.onDragLeave = function(i) {
e.onDragLeave(r.draggingToRowDragEvent(v.EVENT_ROW_DRAG_LEAVE, i));
}), e.onDragging && (o.onDragging = function(i) {
e.onDragging(r.draggingToRowDragEvent(v.EVENT_ROW_DRAG_MOVE, i));
}), e.onDragStop && (o.onDragStop = function(i) {
e.onDragStop(r.draggingToRowDragEvent(v.EVENT_ROW_DRAG_END, i));
})), this.dragAndDropService.addDropTarget(Sn({ isInterestedIn: function(i) {
return i === me.RowDrag;
}, getIconName: function() {
return pe.ICON_MOVE;
}, external: !0 }, o));
}, t.prototype.getRowDropZone = function(e) {
var r = this, o = this.getContainer.bind(this), i = this.onDragEnter.bind(this), s = this.onDragLeave.bind(this), a = this.onDragging.bind(this), l = this.onDragStop.bind(this);
return e ? {
getContainer: o,
onDragEnter: e.onDragEnter ? function(u) {
i(u), e.onDragEnter(r.draggingToRowDragEvent(v.EVENT_ROW_DRAG_ENTER, u));
} : i,
onDragLeave: e.onDragLeave ? function(u) {
s(u), e.onDragLeave(r.draggingToRowDragEvent(v.EVENT_ROW_DRAG_LEAVE, u));
} : s,
onDragging: e.onDragging ? function(u) {
a(u), e.onDragging(r.draggingToRowDragEvent(v.EVENT_ROW_DRAG_MOVE, u));
} : a,
onDragStop: e.onDragStop ? function(u) {
l(u), e.onDragStop(r.draggingToRowDragEvent(v.EVENT_ROW_DRAG_END, u));
} : l,
fromGrid: !0
/* @private */
} : {
getContainer: o,
onDragEnter: i,
onDragLeave: s,
onDragging: a,
onDragStop: l,
/* @private */
fromGrid: !0
};
}, t.prototype.draggingToRowDragEvent = function(e, r) {
var o = this.mouseEventService.getNormalisedPosition(r).y, i = o > this.paginationProxy.getCurrentPageHeight(), s = -1, a;
i || (s = this.rowModel.getRowIndexAtPixel(o), a = this.rowModel.getRow(s));
var l;
switch (r.vDirection) {
case rr.Down:
l = "down";
break;
case rr.Up:
l = "up";
break;
default:
l = null;
break;
}
var u = {
type: e,
api: this.gridOptionsService.api,
columnApi: this.gridOptionsService.columnApi,
context: this.gridOptionsService.context,
event: r.event,
node: r.dragItem.rowNode,
nodes: r.dragItem.rowNodes,
overIndex: s,
overNode: a,
y: o,
vDirection: l
};
return u;
}, t.prototype.dispatchGridEvent = function(e, r) {
var o = this.draggingToRowDragEvent(e, r);
this.eventService.dispatchEvent(o);
}, t.prototype.onDragLeave = function(e) {
this.dispatchGridEvent(v.EVENT_ROW_DRAG_LEAVE, e), this.stopDragging(e), this.gridOptionsService.is("rowDragManaged") && this.clearRowHighlight(), this.isFromThisGrid(e) && (this.isMultiRowDrag = !1);
}, t.prototype.onDragStop = function(e) {
this.dispatchGridEvent(v.EVENT_ROW_DRAG_END, e), this.stopDragging(e), this.gridOptionsService.is("rowDragManaged") && (this.gridOptionsService.is("suppressMoveWhenRowDragging") || !this.isFromThisGrid(e)) && !this.isDropZoneWithinThisGrid(e) && this.moveRowAndClearHighlight(e);
}, t.prototype.stopDragging = function(e) {
this.autoScrollService.ensureCleared(), this.getRowNodes(e).forEach(function(r) {
r.setDragging(!1);
});
}, Fe([
h("dragAndDropService")
], t.prototype, "dragAndDropService", void 0), Fe([
h("rowModel")
], t.prototype, "rowModel", void 0), Fe([
h("paginationProxy")
], t.prototype, "paginationProxy", void 0), Fe([
h("columnModel")
], t.prototype, "columnModel", void 0), Fe([
h("focusService")
], t.prototype, "focusService", void 0), Fe([
h("sortController")
], t.prototype, "sortController", void 0), Fe([
h("filterManager")
], t.prototype, "filterManager", void 0), Fe([
h("selectionService")
], t.prototype, "selectionService", void 0), Fe([
h("mouseEventService")
], t.prototype, "mouseEventService", void 0), Fe([
h("ctrlsService")
], t.prototype, "ctrlsService", void 0), Fe([
Y("rangeService")
], t.prototype, "rangeService", void 0), Fe([
b
], t.prototype, "postConstruct", null), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Qd = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Le = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, or;
(function(n) {
n.ANIMATION_ON = "ag-row-animation", n.ANIMATION_OFF = "ag-row-no-animation";
})(or || (or = {}));
var Gl = "ag-selectable", Hl = "ag-force-vertical-scroll", Xd = "ag-column-moving", Jd = (
/** @class */
function(n) {
Qd(t, n);
function t() {
var e = n !== null && n.apply(this, arguments) || this;
return e.stickyTopHeight = 0, e;
}
return t.prototype.getScrollFeature = function() {
return this.bodyScrollFeature;
}, t.prototype.getBodyViewportElement = function() {
return this.eBodyViewport;
}, t.prototype.setComp = function(e, r, o, i, s, a) {
this.comp = e, this.eGridBody = r, this.eBodyViewport = o, this.eTop = i, this.eBottom = s, this.eStickyTop = a, this.setCellTextSelection(this.gridOptionsService.is("enableCellTextSelection")), this.createManagedBean(new is(this.comp)), this.bodyScrollFeature = this.createManagedBean(new Ud(this.eBodyViewport)), this.addRowDragListener(), this.setupRowAnimationCssClass(), this.addEventListeners(), this.addFocusListeners([i, o, s, a]), this.onGridColumnsChanged(), this.addBodyViewportListener(), this.setFloatingHeights(), this.disableBrowserDragging(), this.addStopEditingWhenGridLosesFocus(), this.ctrlsService.registerGridBodyCtrl(this);
}, t.prototype.getComp = function() {
return this.comp;
}, t.prototype.addEventListeners = function() {
this.addManagedListener(this.eventService, v.EVENT_GRID_COLUMNS_CHANGED, this.onGridColumnsChanged.bind(this)), this.addManagedListener(this.eventService, v.EVENT_SCROLL_VISIBILITY_CHANGED, this.onScrollVisibilityChanged.bind(this)), this.addManagedListener(this.eventService, v.EVENT_PINNED_ROW_DATA_CHANGED, this.onPinnedRowDataChanged.bind(this)), this.addManagedListener(this.eventService, v.EVENT_HEADER_HEIGHT_CHANGED, this.onHeaderHeightChanged.bind(this));
}, t.prototype.addFocusListeners = function(e) {
var r = this;
e.forEach(function(o) {
r.addManagedListener(o, "focusin", function(i) {
var s = i.target, a = Dt(s, "ag-root", o);
o.classList.toggle("ag-has-focus", !a);
}), r.addManagedListener(o, "focusout", function(i) {
var s = i.target, a = i.relatedTarget, l = o.contains(a), u = Dt(a, "ag-root", o), c = Dt(s, "ag-root", o);
c || (!l || u) && o.classList.remove("ag-has-focus");
});
});
}, t.prototype.setColumnMovingCss = function(e) {
this.comp.setColumnMovingCss(Xd, e);
}, t.prototype.setCellTextSelection = function(e) {
e === void 0 && (e = !1);
var r = e ? Gl : null;
this.comp.setCellSelectableCss(r, e);
}, t.prototype.onScrollVisibilityChanged = function() {
var e = this.scrollVisibleService.isVerticalScrollShowing();
this.setVerticalScrollPaddingVisible(e), this.setStickyTopWidth(e);
var r = e && this.gridOptionsService.getScrollbarWidth() || 0, o = Yt() ? 16 : 0, i = "calc(100% + " + (r + o) + "px)";
this.comp.setBodyViewportWidth(i);
}, t.prototype.onGridColumnsChanged = function() {
var e = this.columnModel.getAllGridColumns();
this.comp.setColumnCount(e ? e.length : 0);
}, t.prototype.disableBrowserDragging = function() {
this.addManagedListener(this.eGridBody, "dragstart", function(e) {
if (e.target instanceof HTMLImageElement)
return e.preventDefault(), !1;
});
}, t.prototype.addStopEditingWhenGridLosesFocus = function() {
var e = this;
if (this.gridOptionsService.is("stopEditingWhenCellsLoseFocus")) {
var r = function(i) {
var s = i.relatedTarget;
if (Fo(s) === null) {
e.rowRenderer.stopEditing();
return;
}
var a = (
// see if click came from inside the viewports
o.some(function(u) {
return u.contains(s);
}) && e.mouseEventService.isElementInThisGrid(s)
);
if (!a) {
var l = e.popupService;
a = l.getActivePopups().some(function(u) {
return u.contains(s);
}) || l.isElementWithinCustomPopup(s);
}
a || e.rowRenderer.stopEditing();
}, o = [this.eBodyViewport, this.eBottom, this.eTop, this.eStickyTop];
o.forEach(function(i) {
return e.addManagedListener(i, "focusout", r);
});
}
}, t.prototype.updateRowCount = function() {
var e = this.headerNavigationService.getHeaderRowCount(), r = this.rowModel.isLastRowIndexKnown() ? this.rowModel.getRowCount() : -1, o = r === -1 ? -1 : e + r;
this.comp.setRowCount(o);
}, t.prototype.registerBodyViewportResizeListener = function(e) {
this.comp.registerBodyViewportResizeListener(e);
}, t.prototype.setVerticalScrollPaddingVisible = function(e) {
var r = e ? "scroll" : "hidden";
this.comp.setPinnedTopBottomOverflowY(r);
}, t.prototype.isVerticalScrollShowing = function() {
var e = this.gridOptionsService.is("alwaysShowVerticalScroll"), r = e ? Hl : null, o = this.gridOptionsService.isDomLayout("normal");
return this.comp.setAlwaysVerticalScrollClass(r, e), e || o && sl(this.eBodyViewport);
}, t.prototype.setupRowAnimationCssClass = function() {
var e = this, r = function() {
var o = e.gridOptionsService.isAnimateRows() && !e.rowContainerHeightService.isStretching(), i = o ? or.ANIMATION_ON : or.ANIMATION_OFF;
e.comp.setRowAnimationCssOnBodyViewport(i, o);
};
r(), this.addManagedListener(this.eventService, v.EVENT_HEIGHT_SCALE_CHANGED, r), this.addManagedPropertyListener("animateRows", r);
}, t.prototype.getGridBodyElement = function() {
return this.eGridBody;
}, t.prototype.addBodyViewportListener = function() {
var e = this.onBodyViewportContextMenu.bind(this);
this.addManagedListener(this.eBodyViewport, "contextmenu", e), this.mockContextMenuForIPad(e), this.addManagedListener(this.eBodyViewport, "wheel", this.onBodyViewportWheel.bind(this)), this.addManagedListener(this.eStickyTop, "wheel", this.onStickyTopWheel.bind(this)), this.addFullWidthContainerWheelListener();
}, t.prototype.addFullWidthContainerWheelListener = function() {
var e = this, r = this.eBodyViewport.querySelector(".ag-full-width-container"), o = this.eBodyViewport.querySelector(".ag-center-cols-viewport");
r && o && this.addManagedListener(r, "wheel", function(i) {
return e.onFullWidthContainerWheel(i, o);
});
}, t.prototype.onFullWidthContainerWheel = function(e, r) {
!e.deltaX || Math.abs(e.deltaY) > Math.abs(e.deltaX) || (e.preventDefault(), r.scrollBy({ left: e.deltaX }));
}, t.prototype.onBodyViewportContextMenu = function(e, r, o) {
if (!(!e && !o)) {
if (this.gridOptionsService.is("preventDefaultOnContextMenu")) {
var i = e || o;
i.preventDefault();
}
var s = (e || r).target;
if (s === this.eBodyViewport || s === this.ctrlsService.getCenterRowContainerCtrl().getViewportElement()) {
if (!this.contextMenuFactory)
return;
e ? this.contextMenuFactory.onContextMenu(e, null, null, null, null, this.eGridBody) : o && this.contextMenuFactory.onContextMenu(null, o, null, null, null, this.eGridBody);
}
}
}, t.prototype.mockContextMenuForIPad = function(e) {
if (St()) {
var r = new De(this.eBodyViewport), o = function(i) {
e(void 0, i.touchStart, i.touchEvent);
};
this.addManagedListener(r, De.EVENT_LONG_TAP, o), this.addDestroyFunc(function() {
return r.destroy();
});
}
}, t.prototype.onBodyViewportWheel = function(e) {
this.gridOptionsService.is("suppressScrollWhenPopupsAreOpen") && this.popupService.hasAnchoredPopup() && e.preventDefault();
}, t.prototype.onStickyTopWheel = function(e) {
e.preventDefault(), e.offsetY && this.scrollVertically(e.deltaY);
}, t.prototype.getGui = function() {
return this.eGridBody;
}, t.prototype.scrollVertically = function(e) {
var r = this.eBodyViewport.scrollTop;
return this.bodyScrollFeature.setVerticalScrollPosition(r + e), this.eBodyViewport.scrollTop - r;
}, t.prototype.addRowDragListener = function() {
this.rowDragFeature = this.createManagedBean(new qd(this.eBodyViewport)), this.dragAndDropService.addDropTarget(this.rowDragFeature);
}, t.prototype.getRowDragFeature = function() {
return this.rowDragFeature;
}, t.prototype.onPinnedRowDataChanged = function() {
this.setFloatingHeights();
}, t.prototype.setFloatingHeights = function() {
var e = this.pinnedRowModel, r = e.getPinnedTopTotalHeight();
r && (r += 1);
var o = e.getPinnedBottomTotalHeight();
o && (o += 1), this.comp.setTopHeight(r), this.comp.setBottomHeight(o), this.comp.setTopDisplay(r ? "inherit" : "none"), this.comp.setBottomDisplay(o ? "inherit" : "none"), this.setStickyTopOffsetTop();
}, t.prototype.setStickyTopHeight = function(e) {
e === void 0 && (e = 0), this.comp.setStickyTopHeight(e + "px"), this.stickyTopHeight = e;
}, t.prototype.getStickyTopHeight = function() {
return this.stickyTopHeight;
}, t.prototype.setStickyTopWidth = function(e) {
if (!e)
this.comp.setStickyTopWidth("100%");
else {
var r = this.gridOptionsService.getScrollbarWidth();
this.comp.setStickyTopWidth("calc(100% - " + r + "px)");
}
}, t.prototype.onHeaderHeightChanged = function() {
this.setStickyTopOffsetTop();
}, t.prototype.setStickyTopOffsetTop = function() {
var e = this.ctrlsService.getGridHeaderCtrl(), r = e.getHeaderHeight(), o = this.pinnedRowModel.getPinnedTopTotalHeight(), i = 0;
r > 0 && (i += r + 1), o > 0 && (i += o + 1), this.comp.setStickyTopTop(i + "px");
}, t.prototype.sizeColumnsToFit = function(e, r) {
var o = this, i = this.isVerticalScrollShowing(), s = i ? this.gridOptionsService.getScrollbarWidth() : 0, a = ti(this.eGridBody), l = a - s;
if (l > 0) {
this.columnModel.sizeColumnsToFit(l, "sizeColumnsToFit", !1, e);
return;
}
r === void 0 ? window.setTimeout(function() {
o.sizeColumnsToFit(e, 100);
}, 0) : r === 100 ? window.setTimeout(function() {
o.sizeColumnsToFit(e, 500);
}, 100) : r === 500 ? window.setTimeout(function() {
o.sizeColumnsToFit(e, -1);
}, 500) : console.warn("AG Grid: tried to call sizeColumnsToFit() but the grid is coming back with zero width, maybe the grid is not visible yet on the screen?");
}, t.prototype.addScrollEventListener = function(e) {
this.eBodyViewport.addEventListener("scroll", e, { passive: !0 });
}, t.prototype.removeScrollEventListener = function(e) {
this.eBodyViewport.removeEventListener("scroll", e);
}, Le([
h("rowContainerHeightService")
], t.prototype, "rowContainerHeightService", void 0), Le([
h("ctrlsService")
], t.prototype, "ctrlsService", void 0), Le([
h("columnModel")
], t.prototype, "columnModel", void 0), Le([
h("scrollVisibleService")
], t.prototype, "scrollVisibleService", void 0), Le([
Y("contextMenuFactory")
], t.prototype, "contextMenuFactory", void 0), Le([
h("headerNavigationService")
], t.prototype, "headerNavigationService", void 0), Le([
h("dragAndDropService")
], t.prototype, "dragAndDropService", void 0), Le([
h("pinnedRowModel")
], t.prototype, "pinnedRowModel", void 0), Le([
h("rowRenderer")
], t.prototype, "rowRenderer", void 0), Le([
h("popupService")
], t.prototype, "popupService", void 0), Le([
h("mouseEventService")
], t.prototype, "mouseEventService", void 0), Le([
h("rowModel")
], t.prototype, "rowModel", void 0), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var ko;
(function(n) {
n[n.FILL = 0] = "FILL", n[n.RANGE = 1] = "RANGE";
})(ko || (ko = {}));
var zt;
(function(n) {
n[n.VALUE = 0] = "VALUE", n[n.DIMENSION = 1] = "DIMENSION";
})(zt || (zt = {}));
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var pr = "ag-cell-range-selected", Zd = "ag-cell-range-chart", eh = "ag-cell-range-single-cell", th = "ag-cell-range-chart-category", rh = "ag-cell-range-handle", oh = "ag-cell-range-top", ih = "ag-cell-range-right", nh = "ag-cell-range-bottom", sh = "ag-cell-range-left", ah = (
/** @class */
function() {
function n(t, e) {
this.beans = t, this.cellCtrl = e;
}
return n.prototype.setComp = function(t, e) {
this.cellComp = t, this.eGui = e, this.onRangeSelectionChanged();
}, n.prototype.onRangeSelectionChanged = function() {
this.cellComp && (this.rangeCount = this.beans.rangeService.getCellRangeCount(this.cellCtrl.getCellPosition()), this.hasChartRange = this.getHasChartRange(), this.cellComp.addOrRemoveCssClass(pr, this.rangeCount !== 0), this.cellComp.addOrRemoveCssClass(pr + "-1", this.rangeCount === 1), this.cellComp.addOrRemoveCssClass(pr + "-2", this.rangeCount === 2), this.cellComp.addOrRemoveCssClass(pr + "-3", this.rangeCount === 3), this.cellComp.addOrRemoveCssClass(pr + "-4", this.rangeCount >= 4), this.cellComp.addOrRemoveCssClass(Zd, this.hasChartRange), Jt(this.eGui, this.rangeCount > 0 ? !0 : void 0), this.cellComp.addOrRemoveCssClass(eh, this.isSingleCell()), this.updateRangeBorders(), this.refreshHandle());
}, n.prototype.updateRangeBorders = function() {
var t = this.getRangeBorders(), e = this.isSingleCell(), r = !e && t.top, o = !e && t.right, i = !e && t.bottom, s = !e && t.left;
this.cellComp.addOrRemoveCssClass(oh, r), this.cellComp.addOrRemoveCssClass(ih, o), this.cellComp.addOrRemoveCssClass(nh, i), this.cellComp.addOrRemoveCssClass(sh, s);
}, n.prototype.isSingleCell = function() {
var t = this.beans.rangeService;
return this.rangeCount === 1 && t && !t.isMoreThanOneCell();
}, n.prototype.getHasChartRange = function() {
var t = this.beans.rangeService;
if (!this.rangeCount || !t)
return !1;
var e = t.getCellRanges();
return e.length > 0 && e.every(function(r) {
return He([zt.DIMENSION, zt.VALUE], r.type);
});
}, n.prototype.updateRangeBordersIfRangeCount = function() {
this.rangeCount > 0 && (this.updateRangeBorders(), this.refreshHandle());
}, n.prototype.getRangeBorders = function() {
var t = this, e = this.beans.gridOptionsService.is("enableRtl"), r = !1, o = !1, i = !1, s = !1, a = this.cellCtrl.getCellPosition().column, l = this.beans, u = l.rangeService, c = l.columnModel, p, d;
e ? (p = c.getDisplayedColAfter(a), d = c.getDisplayedColBefore(a)) : (p = c.getDisplayedColBefore(a), d = c.getDisplayedColAfter(a));
var f = u.getCellRanges().filter(function(w) {
return u.isCellInSpecificRange(t.cellCtrl.getCellPosition(), w);
});
p || (s = !0), d || (o = !0);
for (var g = 0; g < f.length && !(r && o && i && s); g++) {
var y = f[g], C = u.getRangeStartRow(y), m = u.getRangeEndRow(y);
!r && this.beans.rowPositionUtils.sameRow(C, this.cellCtrl.getCellPosition()) && (r = !0), !i && this.beans.rowPositionUtils.sameRow(m, this.cellCtrl.getCellPosition()) && (i = !0), !s && p && y.columns.indexOf(p) < 0 && (s = !0), !o && d && y.columns.indexOf(d) < 0 && (o = !0);
}
return { top: r, right: o, bottom: i, left: s };
}, n.prototype.refreshHandle = function() {
if (this.beans.rangeService) {
var t = this.shouldHaveSelectionHandle();
this.selectionHandle && !t && (this.selectionHandle = this.beans.context.destroyBean(this.selectionHandle)), t && this.addSelectionHandle(), this.cellComp.addOrRemoveCssClass(rh, !!this.selectionHandle);
}
}, n.prototype.shouldHaveSelectionHandle = function() {
var t = this.beans, e = t.gridOptionsService, r = t.rangeService, o = r.getCellRanges(), i = o.length;
if (this.rangeCount < 1 || i < 1)
return !1;
var s = q(o), a = this.cellCtrl.getCellPosition(), l = e.is("enableFillHandle") && !this.cellCtrl.isSuppressFillHandle(), u = e.is("enableRangeHandle"), c = i === 1 && !this.cellCtrl.isEditing() && (l || u);
if (this.hasChartRange) {
var p = o[0].type === zt.DIMENSION, d = p && r.isCellInSpecificRange(a, o[0]);
this.cellComp.addOrRemoveCssClass(th, d), c = s.type === zt.VALUE;
}
return c && s.endRow != null && r.isContiguousRange(s) && r.isBottomRightCell(s, a);
}, n.prototype.addSelectionHandle = function() {
var t = this.beans, e = t.gridOptionsService, r = t.rangeService, o = q(r.getCellRanges()).type, i = e.is("enableFillHandle") && x(o), s = i ? ko.FILL : ko.RANGE;
this.selectionHandle && this.selectionHandle.getType() !== s && (this.selectionHandle = this.beans.context.destroyBean(this.selectionHandle)), this.selectionHandle || (this.selectionHandle = this.beans.selectionHandleFactory.createSelectionHandle(s)), this.selectionHandle.refresh(this.cellCtrl);
}, n.prototype.destroy = function() {
this.beans.context.destroyBean(this.selectionHandle);
}, n;
}()
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var lh = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), uh = (
/** @class */
function(n) {
lh(t, n);
function t(e, r) {
var o = n.call(this) || this;
return o.cellCtrl = e, o.beans = r, o.column = e.getColumn(), o.rowNode = e.getRowNode(), o.setupColSpan(), o.setupRowSpan(), o;
}
return t.prototype.setupRowSpan = function() {
this.rowSpan = this.column.getRowSpan(this.rowNode);
}, t.prototype.setComp = function(e) {
this.eGui = e, this.onLeftChanged(), this.onWidthChanged(), this.applyRowSpan();
}, t.prototype.onDisplayColumnsChanged = function() {
var e = this.getColSpanningList();
gt(this.colsSpanning, e) || (this.colsSpanning = e, this.onWidthChanged(), this.onLeftChanged());
}, t.prototype.setupColSpan = function() {
this.column.getColDef().colSpan != null && (this.colsSpanning = this.getColSpanningList(), this.addManagedListener(this.beans.eventService, v.EVENT_DISPLAYED_COLUMNS_CHANGED, this.onDisplayColumnsChanged.bind(this)), this.addManagedListener(this.beans.eventService, v.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED, this.onWidthChanged.bind(this)));
}, t.prototype.onWidthChanged = function() {
if (this.eGui) {
var e = this.getCellWidth();
this.eGui.style.width = e + "px";
}
}, t.prototype.getCellWidth = function() {
return this.colsSpanning ? this.colsSpanning.reduce(function(e, r) {
return e + r.getActualWidth();
}, 0) : this.column.getActualWidth();
}, t.prototype.getColSpanningList = function() {
var e = this.column.getColSpan(this.rowNode), r = [];
if (e === 1)
r.push(this.column);
else
for (var o = this.column, i = this.column.getPinned(), s = 0; o && s < e && (r.push(o), o = this.beans.columnModel.getDisplayedColAfter(o), !(!o || x(o) || i !== o.getPinned())); s++)
;
return r;
}, t.prototype.onLeftChanged = function() {
if (this.eGui) {
var e = this.modifyLeftForPrintLayout(this.getCellLeft());
this.eGui.style.left = e + "px";
}
}, t.prototype.getCellLeft = function() {
var e;
return this.beans.gridOptionsService.is("enableRtl") && this.colsSpanning ? e = q(this.colsSpanning) : e = this.column, e.getLeft();
}, t.prototype.modifyLeftForPrintLayout = function(e) {
if (!this.cellCtrl.isPrintLayout() || this.column.getPinned() === "left")
return e;
var r = this.beans.columnModel.getDisplayedColumnsLeftWidth();
if (this.column.getPinned() === "right") {
var o = this.beans.columnModel.getBodyContainerWidth();
return r + o + (e || 0);
}
return r + (e || 0);
}, t.prototype.applyRowSpan = function() {
if (this.rowSpan !== 1) {
var e = this.beans.gridOptionsService.getRowHeightAsNumber(), r = e * this.rowSpan;
this.eGui.style.height = r + "px", this.eGui.style.zIndex = "1";
}
}, t.prototype.destroy = function() {
n.prototype.destroy.call(this);
}, t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var ch = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), ph = (
/** @class */
function(n) {
ch(t, n);
function t(e, r) {
var o = n.call(this) || this;
return o.staticClasses = [], o.cellCtrl = e, o.beans = r, o.column = e.getColumn(), o.rowNode = e.getRowNode(), o;
}
return t.prototype.setComp = function(e) {
this.cellComp = e, this.applyUserStyles(), this.applyCellClassRules(), this.applyClassesFromColDef();
}, t.prototype.applyCellClassRules = function() {
var e = this, r = this.column.getColDef(), o = {
value: this.cellCtrl.getValue(),
data: this.rowNode.data,
node: this.rowNode,
colDef: r,
column: this.column,
rowIndex: this.rowNode.rowIndex,
api: this.beans.gridOptionsService.api,
columnApi: this.beans.gridOptionsService.columnApi,
context: this.beans.gridOptionsService.context
};
this.beans.stylingService.processClassRules(r.cellClassRules, o, function(i) {
return e.cellComp.addOrRemoveCssClass(i, !0);
}, function(i) {
return e.cellComp.addOrRemoveCssClass(i, !1);
});
}, t.prototype.applyUserStyles = function() {
var e = this.column.getColDef();
if (e.cellStyle) {
var r;
if (typeof e.cellStyle == "function") {
var o = {
column: this.column,
value: this.cellCtrl.getValue(),
colDef: e,
data: this.rowNode.data,
node: this.rowNode,
rowIndex: this.rowNode.rowIndex,
api: this.beans.gridOptionsService.api,
columnApi: this.beans.gridOptionsService.columnApi,
context: this.beans.gridOptionsService.context
}, i = e.cellStyle;
r = i(o);
} else
r = e.cellStyle;
r && this.cellComp.setUserStyles(r);
}
}, t.prototype.applyClassesFromColDef = function() {
var e = this, r = this.column.getColDef(), o = {
value: this.cellCtrl.getValue(),
data: this.rowNode.data,
node: this.rowNode,
column: this.column,
colDef: r,
rowIndex: this.rowNode.rowIndex,
api: this.beans.gridOptionsService.api,
columnApi: this.beans.gridOptionsService.columnApi,
context: this.beans.gridOptionsService.context
};
this.staticClasses.length && this.staticClasses.forEach(function(i) {
return e.cellComp.addOrRemoveCssClass(i, !1);
}), this.staticClasses = this.beans.stylingService.getStaticCellClasses(r, o), this.staticClasses.length && this.staticClasses.forEach(function(i) {
return e.cellComp.addOrRemoveCssClass(i, !0);
});
}, t.prototype.destroy = function() {
n.prototype.destroy.call(this);
}, t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var dh = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), ns = (
/** @class */
function(n) {
dh(t, n);
function t(e, r) {
var o = n.call(this) || this;
return o.ctrl = e, o.beans = r, o;
}
return t.prototype.setComp = function(e) {
this.comp = e, this.setupTooltip();
}, t.prototype.setupTooltip = function() {
this.browserTooltips = this.beans.gridOptionsService.is("enableBrowserTooltips"), this.updateTooltipText(), this.browserTooltips ? this.comp.setTitle(this.tooltip != null ? this.tooltip : void 0) : this.createTooltipFeatureIfNeeded();
}, t.prototype.updateTooltipText = function() {
this.tooltip = this.ctrl.getTooltipValue();
}, t.prototype.createTooltipFeatureIfNeeded = function() {
var e = this;
if (this.genericTooltipFeature == null) {
var r = {
getTooltipParams: function() {
return e.getTooltipParams();
},
getGui: function() {
return e.ctrl.getGui();
}
};
this.genericTooltipFeature = this.createManagedBean(new Jn(r), this.beans.context);
}
}, t.prototype.refreshToolTip = function() {
this.updateTooltipText(), this.browserTooltips && this.comp.setTitle(this.tooltip != null ? this.tooltip : void 0);
}, t.prototype.getTooltipParams = function() {
var e = this.ctrl, r = e.getColumn ? e.getColumn() : void 0, o = e.getColDef ? e.getColDef() : void 0, i = e.getRowNode ? e.getRowNode() : void 0;
return {
location: e.getLocation(),
colDef: o,
column: r,
rowIndex: e.getRowIndex ? e.getRowIndex() : void 0,
node: i,
data: i ? i.data : void 0,
value: this.getTooltipText(),
valueFormatted: e.getValueFormatted ? e.getValueFormatted() : void 0
};
}, t.prototype.getTooltipText = function() {
return this.tooltip;
}, t.prototype.destroy = function() {
n.prototype.destroy.call(this);
}, t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var V = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Vl = (
/** @class */
function() {
function n() {
}
return n.prototype.postConstruct = function() {
this.doingMasterDetail = this.gridOptionsService.isMasterDetail(), this.gridOptionsService.isRowModelType("clientSide") && (this.clientSideRowModel = this.rowModel), this.gridOptionsService.isRowModelType("serverSide") && (this.serverSideRowModel = this.rowModel);
}, V([
h("resizeObserverService")
], n.prototype, "resizeObserverService", void 0), V([
h("paginationProxy")
], n.prototype, "paginationProxy", void 0), V([
h("context")
], n.prototype, "context", void 0), V([
h("columnApi")
], n.prototype, "columnApi", void 0), V([
h("gridApi")
], n.prototype, "gridApi", void 0), V([
h("gridOptionsService")
], n.prototype, "gridOptionsService", void 0), V([
h("expressionService")
], n.prototype, "expressionService", void 0), V([
h("environment")
], n.prototype, "environment", void 0), V([
h("rowRenderer")
], n.prototype, "rowRenderer", void 0), V([
h("templateService")
], n.prototype, "templateService", void 0), V([
h("valueService")
], n.prototype, "valueService", void 0), V([
h("eventService")
], n.prototype, "eventService", void 0), V([
h("columnModel")
], n.prototype, "columnModel", void 0), V([
h("headerNavigationService")
], n.prototype, "headerNavigationService", void 0), V([
h("navigationService")
], n.prototype, "navigationService", void 0), V([
h("columnAnimationService")
], n.prototype, "columnAnimationService", void 0), V([
Y("rangeService")
], n.prototype, "rangeService", void 0), V([
h("focusService")
], n.prototype, "focusService", void 0), V([
Y("contextMenuFactory")
], n.prototype, "contextMenuFactory", void 0), V([
h("popupService")
], n.prototype, "popupService", void 0), V([
h("valueFormatterService")
], n.prototype, "valueFormatterService", void 0), V([
h("stylingService")
], n.prototype, "stylingService", void 0), V([
h("columnHoverService")
], n.prototype, "columnHoverService", void 0), V([
h("userComponentFactory")
], n.prototype, "userComponentFactory", void 0), V([
h("userComponentRegistry")
], n.prototype, "userComponentRegistry", void 0), V([
h("animationFrameService")
], n.prototype, "animationFrameService", void 0), V([
h("dragService")
], n.prototype, "dragService", void 0), V([
h("dragAndDropService")
], n.prototype, "dragAndDropService", void 0), V([
h("sortController")
], n.prototype, "sortController", void 0), V([
h("filterManager")
], n.prototype, "filterManager", void 0), V([
h("rowContainerHeightService")
], n.prototype, "rowContainerHeightService", void 0), V([
h("frameworkOverrides")
], n.prototype, "frameworkOverrides", void 0), V([
h("cellPositionUtils")
], n.prototype, "cellPositionUtils", void 0), V([
h("rowPositionUtils")
], n.prototype, "rowPositionUtils", void 0), V([
h("selectionService")
], n.prototype, "selectionService", void 0), V([
Y("selectionHandleFactory")
], n.prototype, "selectionHandleFactory", void 0), V([
h("rowCssClassCalculator")
], n.prototype, "rowCssClassCalculator", void 0), V([
h("rowModel")
], n.prototype, "rowModel", void 0), V([
h("ctrlsService")
], n.prototype, "ctrlsService", void 0), V([
h("ctrlsFactory")
], n.prototype, "ctrlsFactory", void 0), V([
h("agStackComponentsRegistry")
], n.prototype, "agStackComponentsRegistry", void 0), V([
h("valueCache")
], n.prototype, "valueCache", void 0), V([
h("rowNodeEventThrottle")
], n.prototype, "rowNodeEventThrottle", void 0), V([
h("localeService")
], n.prototype, "localeService", void 0), V([
b
], n.prototype, "postConstruct", null), n = V([
A("beans")
], n), n;
}()
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var hh = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), fh = (
/** @class */
function(n) {
hh(t, n);
function t(e, r, o) {
var i = n.call(this) || this;
return i.cellCtrl = e, i.beans = r, i.column = o, i;
}
return t.prototype.onMouseEvent = function(e, r) {
if (!Ze(r))
switch (e) {
case "click":
this.onCellClicked(r);
break;
case "mousedown":
case "touchstart":
this.onMouseDown(r);
break;
case "dblclick":
this.onCellDoubleClicked(r);
break;
case "mouseout":
this.onMouseOut(r);
break;
case "mouseover":
this.onMouseOver(r);
break;
}
}, t.prototype.onCellClicked = function(e) {
if (this.isDoubleClickOnIPad()) {
this.onCellDoubleClicked(e), e.preventDefault();
return;
}
var r = this.beans, o = r.eventService, i = r.rangeService, s = r.gridOptionsService, a = e.ctrlKey || e.metaKey;
i && a && i.getCellRangeCount(this.cellCtrl.getCellPosition()) > 1 && i.intersectLastRange(!0);
var l = this.cellCtrl.createEvent(e, v.EVENT_CELL_CLICKED);
o.dispatchEvent(l);
var u = this.column.getColDef();
u.onCellClicked && window.setTimeout(function() {
return u.onCellClicked(l);
}, 0);
var c = (s.is("singleClickEdit") || u.singleClickEdit) && !s.is("suppressClickEdit");
c && this.cellCtrl.startRowOrCellEdit();
}, t.prototype.isDoubleClickOnIPad = function() {
if (!St() || Dn("dblclick"))
return !1;
var e = (/* @__PURE__ */ new Date()).getTime(), r = e - this.lastIPadMouseClickEvent < 200;
return this.lastIPadMouseClickEvent = e, r;
}, t.prototype.onCellDoubleClicked = function(e) {
var r = this.column.getColDef(), o = this.cellCtrl.createEvent(e, v.EVENT_CELL_DOUBLE_CLICKED);
this.beans.eventService.dispatchEvent(o), typeof r.onCellDoubleClicked == "function" && window.setTimeout(function() {
return r.onCellDoubleClicked(o);
}, 0);
var i = !this.beans.gridOptionsService.is("singleClickEdit") && !this.beans.gridOptionsService.is("suppressClickEdit");
i && this.cellCtrl.startRowOrCellEdit(null, null, e);
}, t.prototype.onMouseDown = function(e) {
var r = e.ctrlKey, o = e.metaKey, i = e.shiftKey, s = e.target, a = this.beans, l = a.eventService, u = a.rangeService;
if (!this.isRightClickInExistingRange(e)) {
var c = u && u.getCellRanges().length != 0;
if (!i || !c) {
var p = rt() && !this.cellCtrl.isEditing() && !kn(s);
this.cellCtrl.focusCell(p);
}
if (i && c && e.preventDefault(), !this.containsWidget(s)) {
if (u) {
var d = this.cellCtrl.getCellPosition();
if (i)
u.extendLatestRangeToCell(d);
else {
var f = r || o;
u.setRangeToCell(d, f);
}
}
l.dispatchEvent(this.cellCtrl.createEvent(e, v.EVENT_CELL_MOUSE_DOWN));
}
}
}, t.prototype.isRightClickInExistingRange = function(e) {
var r = this.beans.rangeService;
if (r) {
var o = r.isCellInAnyRange(this.cellCtrl.getCellPosition());
if (o && e.button === 2)
return !0;
}
return !1;
}, t.prototype.containsWidget = function(e) {
return Dt(e, "ag-selection-checkbox", 3);
}, t.prototype.onMouseOut = function(e) {
if (!this.mouseStayingInsideCell(e)) {
var r = this.cellCtrl.createEvent(e, v.EVENT_CELL_MOUSE_OUT);
this.beans.eventService.dispatchEvent(r), this.beans.columnHoverService.clearMouseOver();
}
}, t.prototype.onMouseOver = function(e) {
if (!this.mouseStayingInsideCell(e)) {
var r = this.cellCtrl.createEvent(e, v.EVENT_CELL_MOUSE_OVER);
this.beans.eventService.dispatchEvent(r), this.beans.columnHoverService.setMouseOver([this.column]);
}
}, t.prototype.mouseStayingInsideCell = function(e) {
if (!e.target || !e.relatedTarget)
return !1;
var r = this.cellCtrl.getGui(), o = r.contains(e.target), i = r.contains(e.relatedTarget);
return o && i;
}, t.prototype.destroy = function() {
}, t;
}(Vl)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var vh = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), gh = (
/** @class */
function(n) {
vh(t, n);
function t(e, r, o, i, s) {
var a = n.call(this) || this;
return a.cellCtrl = e, a.beans = r, a.rowNode = i, a.rowCtrl = s, a;
}
return t.prototype.setComp = function(e) {
this.eGui = e;
}, t.prototype.onKeyDown = function(e) {
var r = e.key;
switch (r) {
case _.ENTER:
this.onEnterKeyDown(e);
break;
case _.F2:
this.onF2KeyDown(e);
break;
case _.ESCAPE:
this.onEscapeKeyDown(e);
break;
case _.TAB:
this.onTabKeyDown(e);
break;
case _.BACKSPACE:
case _.DELETE:
this.onBackspaceOrDeleteKeyPressed(r, e);
break;
case _.DOWN:
case _.UP:
case _.RIGHT:
case _.LEFT:
this.onNavigationKeyPressed(e, r);
break;
}
}, t.prototype.onNavigationKeyPressed = function(e, r) {
this.cellCtrl.isEditing() || (e.shiftKey && this.cellCtrl.isRangeSelectionEnabled() ? this.onShiftRangeSelect(e) : this.beans.navigationService.navigateToNextCell(e, r, this.cellCtrl.getCellPosition(), !0), e.preventDefault());
}, t.prototype.onShiftRangeSelect = function(e) {
if (this.beans.rangeService) {
var r = this.beans.rangeService.extendLatestRangeInDirection(e);
r && this.beans.navigationService.ensureCellVisible(r);
}
}, t.prototype.onTabKeyDown = function(e) {
this.beans.navigationService.onTabKeyDown(this.cellCtrl, e);
}, t.prototype.onBackspaceOrDeleteKeyPressed = function(e, r) {
var o = this, i = o.cellCtrl, s = o.beans, a = o.rowNode, l = s.gridOptionsService, u = s.rangeService, c = s.eventService;
i.isEditing() || (c.dispatchEvent({ type: v.EVENT_KEY_SHORTCUT_CHANGED_CELL_START }), hl(e, l.is("enableCellEditingOnBackspace")) ? u && l.isEnableRangeSelection() ? u.clearCellRangeCellValues() : i.isCellEditable() && a.setDataValue(i.getColumn(), null, "cellClear") : i.startRowOrCellEdit(e, void 0, r), c.dispatchEvent({ type: v.EVENT_KEY_SHORTCUT_CHANGED_CELL_END }));
}, t.prototype.onEnterKeyDown = function(e) {
this.cellCtrl.isEditing() || this.rowCtrl.isEditing() ? this.cellCtrl.stopEditingAndFocus() : this.beans.gridOptionsService.is("enterMovesDown") ? this.beans.navigationService.navigateToNextCell(null, _.DOWN, this.cellCtrl.getCellPosition(), !1) : (this.cellCtrl.startRowOrCellEdit(_.ENTER, void 0, e), this.cellCtrl.isEditing() && e.preventDefault());
}, t.prototype.onF2KeyDown = function(e) {
this.cellCtrl.isEditing() || this.cellCtrl.startRowOrCellEdit(_.F2, void 0, e);
}, t.prototype.onEscapeKeyDown = function(e) {
this.cellCtrl.isEditing() && (this.cellCtrl.stopRowOrCellEdit(!0), this.cellCtrl.focusCell(!0));
}, t.prototype.onKeyPress = function(e) {
var r = e.target, o = r !== this.eGui;
if (!(o || this.cellCtrl.isEditing())) {
var i = String.fromCharCode(e.charCode);
i === " " ? this.onSpaceKeyPressed(e) : cl(e) && (this.cellCtrl.startRowOrCellEdit(null, i, e), e.preventDefault());
}
}, t.prototype.onSpaceKeyPressed = function(e) {
var r = this.beans.gridOptionsService;
if (!this.cellCtrl.isEditing() && r.isRowSelection()) {
var o = this.rowNode.isSelected(), i = !o;
if (i || !r.is("suppressRowDeselection")) {
var s = this.beans.gridOptionsService.is("groupSelectsFiltered"), a = this.rowNode.setSelectedParams({
newValue: i,
rangeSelect: e.shiftKey,
groupSelectsFiltered: s,
event: e,
source: "spacePressed"
});
o === void 0 && a === 0 && this.rowNode.setSelectedParams({
newValue: !1,
rangeSelect: e.shiftKey,
groupSelectsFiltered: s,
event: e,
source: "spacePressed"
});
}
}
e.preventDefault();
}, t.prototype.destroy = function() {
n.prototype.destroy.call(this);
}, t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var yh = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Ch = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, mh = (
/** @class */
function(n) {
yh(t, n);
function t(e, r, o, i) {
var s = n.call(this, '<div class="ag-drag-handle ag-row-drag" draggable="true"></div>') || this;
return s.rowNode = e, s.column = r, s.beans = o, s.eCell = i, s;
}
return t.prototype.postConstruct = function() {
var e = this.getGui();
e.appendChild(oe("rowDrag", this.beans.gridOptionsService, null)), this.addGuiEventListener("mousedown", function(r) {
r.stopPropagation();
}), this.addDragSource(), this.checkVisibility();
}, t.prototype.addDragSource = function() {
this.addGuiEventListener("dragstart", this.onDragStart.bind(this));
}, t.prototype.onDragStart = function(e) {
var r = this, o = this.column.getColDef().dndSourceOnRowDrag;
e.dataTransfer.setDragImage(this.eCell, 0, 0);
var i = function() {
try {
var a = JSON.stringify(r.rowNode.data);
e.dataTransfer.setData("application/json", a), e.dataTransfer.setData("text/plain", a);
} catch {
}
};
if (o) {
var s = {
rowNode: this.rowNode,
dragEvent: e,
api: this.gridOptionsService.api,
columnApi: this.gridOptionsService.columnApi,
context: this.gridOptionsService.context
};
o(s);
} else
i();
}, t.prototype.checkVisibility = function() {
var e = this.column.isDndSource(this.rowNode);
this.setDisplayed(e);
}, Ch([
b
], t.prototype, "postConstruct", null), t;
}(W)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var wh = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Uo = function() {
return Uo = Object.assign || function(n) {
for (var t, e = 1, r = arguments.length; e < r; e++) {
t = arguments[e];
for (var o in t)
Object.prototype.hasOwnProperty.call(t, o) && (n[o] = t[o]);
}
return n;
}, Uo.apply(this, arguments);
}, Sh = "ag-cell", Eh = "ag-cell-auto-height", _h = "ag-cell-normal-height", Rh = "ag-cell-focus", Oh = "ag-cell-first-right-pinned", Th = "ag-cell-last-left-pinned", bh = "ag-cell-not-inline-editing", Ph = "ag-column-hover", Dh = "ag-cell-wrap-text", Ah = 0, Ft = (
/** @class */
function(n) {
wh(t, n);
function t(e, r, o, i) {
var s = n.call(this) || this;
return s.cellRangeFeature = null, s.cellPositionFeature = null, s.cellCustomStyleFeature = null, s.tooltipFeature = null, s.cellMouseListenerFeature = null, s.cellKeyboardListenerFeature = null, s.suppressRefreshCell = !1, s.onCellCompAttachedFuncs = [], s.column = e, s.rowNode = r, s.beans = o, s.rowCtrl = i, s.instanceId = e.getId() + "-" + Ah++, s.createCellPosition(), s.addFeatures(), s;
}
return t.prototype.addFeatures = function() {
var e = this;
this.cellPositionFeature = new uh(this, this.beans), this.addDestroyFunc(function() {
var o;
(o = e.cellPositionFeature) === null || o === void 0 || o.destroy(), e.cellPositionFeature = null;
}), this.cellCustomStyleFeature = new ph(this, this.beans), this.addDestroyFunc(function() {
var o;
(o = e.cellCustomStyleFeature) === null || o === void 0 || o.destroy(), e.cellCustomStyleFeature = null;
}), this.cellMouseListenerFeature = new fh(this, this.beans, this.column), this.addDestroyFunc(function() {
var o;
(o = e.cellMouseListenerFeature) === null || o === void 0 || o.destroy(), e.cellMouseListenerFeature = null;
}), this.cellKeyboardListenerFeature = new gh(this, this.beans, this.column, this.rowNode, this.rowCtrl), this.addDestroyFunc(function() {
var o;
(o = e.cellKeyboardListenerFeature) === null || o === void 0 || o.destroy(), e.cellKeyboardListenerFeature = null;
});
var r = this.beans.rangeService && this.beans.gridOptionsService.isEnableRangeSelection();
r && (this.cellRangeFeature = new ah(this.beans, this), this.addDestroyFunc(function() {
var o;
(o = e.cellRangeFeature) === null || o === void 0 || o.destroy(), e.cellRangeFeature = null;
})), this.column.isTooltipEnabled() && this.addTooltipFeature();
}, t.prototype.addTooltipFeature = function() {
var e = this, r = function() {
var i = e.column.getColDef(), s = e.rowNode.data;
if (i.tooltipField && O(s))
return bo(s, i.tooltipField, e.column.isTooltipFieldContainsDots());
var a = i.tooltipValueGetter;
return a ? a({
location: "cell",
api: e.beans.gridOptionsService.api,
columnApi: e.beans.gridOptionsService.columnApi,
context: e.beans.gridOptionsService.context,
colDef: e.column.getColDef(),
column: e.column,
rowIndex: e.cellPosition.rowIndex,
node: e.rowNode,
data: e.rowNode.data,
value: e.value,
valueFormatted: e.valueFormatted
}) : null;
}, o = {
getColumn: function() {
return e.column;
},
getColDef: function() {
return e.column.getColDef();
},
getRowIndex: function() {
return e.cellPosition.rowIndex;
},
getRowNode: function() {
return e.rowNode;
},
getGui: function() {
return e.getGui();
},
getLocation: function() {
return "cell";
},
getTooltipValue: r,
// this makes no sense, why is the cell formatted value passed to the tooltip???
getValueFormatted: function() {
return e.valueFormatted;
}
};
this.tooltipFeature = new ns(o, this.beans), this.addDestroyFunc(function() {
var i;
(i = e.tooltipFeature) === null || i === void 0 || i.destroy(), e.tooltipFeature = null;
});
}, t.prototype.setComp = function(e, r, o, i, s) {
var a, l, u, c;
this.cellComp = e, this.eGui = r, this.printLayout = i, this.updateAndFormatValue(!0), this.addDomData(), this.onCellFocused(), this.applyStaticCssClasses(), this.setWrapText(), this.onFirstRightPinnedChanged(), this.onLastLeftPinnedChanged(), this.onColumnHover(), this.setupControlComps(), o && this.setupAutoHeight(o), this.setAriaColIndex(), this.beans.gridOptionsService.is("suppressCellFocus") || this.cellComp.setTabIndex(-1);
var p = tt(this.column.getId());
this.cellComp.setColId(p), this.cellComp.setRole("gridcell"), (a = this.cellPositionFeature) === null || a === void 0 || a.setComp(r), (l = this.cellCustomStyleFeature) === null || l === void 0 || l.setComp(e), (u = this.tooltipFeature) === null || u === void 0 || u.setComp(e), (c = this.cellKeyboardListenerFeature) === null || c === void 0 || c.setComp(this.eGui), this.cellRangeFeature && this.cellRangeFeature.setComp(e, r), s && this.isCellEditable() ? this.startEditing() : this.showValue(), this.onCellCompAttachedFuncs.length && (this.onCellCompAttachedFuncs.forEach(function(d) {
return d();
}), this.onCellCompAttachedFuncs = []);
}, t.prototype.setupAutoHeight = function(e) {
var r = this;
if (this.column.isAutoHeight()) {
var o = e.parentElement, i = this.beans.gridOptionsService.getRowHeightForNode(this.rowNode).height, s = function(u) {
if (!r.editing && r.isAlive()) {
var c = Nt(o), p = c.paddingTop, d = c.paddingBottom, f = c.borderBottomWidth, g = c.borderTopWidth, y = p + d + f + g, C = e.offsetHeight, m = C + y;
if (u < 5) {
var w = r.beans.gridOptionsService.getDocument(), E = !w || !w.contains(e), R = m == 0;
if (E || R) {
r.beans.frameworkOverrides.setTimeout(function() {
return s(u + 1);
}, 0);
return;
}
}
var D = Math.max(m, i);
r.rowNode.setRowAutoHeight(D, r.column);
}
}, a = function() {
return s(0);
};
a();
var l = this.beans.resizeObserverService.observeResize(e, a);
this.addDestroyFunc(function() {
l(), r.rowNode.setRowAutoHeight(void 0, r.column);
});
}
}, t.prototype.getInstanceId = function() {
return this.instanceId;
}, t.prototype.showValue = function(e) {
e === void 0 && (e = !1);
var r = this.valueFormatted != null ? this.valueFormatted : this.value, o = this.createCellRendererParams(), i = this.beans.userComponentFactory.getCellRendererDetails(this.column.getColDef(), o);
this.cellComp.setRenderDetails(i, r, e), this.refreshHandle();
}, t.prototype.setupControlComps = function() {
var e = this.column.getColDef();
this.includeSelection = this.isIncludeControl(e.checkboxSelection), this.includeRowDrag = this.isIncludeControl(e.rowDrag), this.includeDndSource = this.isIncludeControl(e.dndSource), this.cellComp.setIncludeSelection(this.includeSelection), this.cellComp.setIncludeDndSource(this.includeDndSource), this.cellComp.setIncludeRowDrag(this.includeRowDrag);
}, t.prototype.isForceWrapper = function() {
var e = this.beans.gridOptionsService.is("enableCellTextSelection") || this.column.isAutoHeight();
return e;
}, t.prototype.isIncludeControl = function(e) {
var r = this.rowNode.rowPinned != null, o = typeof e == "function", i = r ? !1 : o || e === !0;
return i;
}, t.prototype.refreshShouldDestroy = function() {
var e = this.column.getColDef(), r = this.includeSelection != this.isIncludeControl(e.checkboxSelection), o = this.includeRowDrag != this.isIncludeControl(e.rowDrag), i = this.includeDndSource != this.isIncludeControl(e.dndSource);
return r || o || i;
}, t.prototype.startEditing = function(e, r, o, i) {
var s = this;
if (e === void 0 && (e = null), r === void 0 && (r = null), o === void 0 && (o = !1), i === void 0 && (i = null), !(!this.isCellEditable() || this.editing)) {
if (!this.cellComp) {
this.onCellCompAttachedFuncs.push(function() {
s.startEditing(e, r, o, i);
});
return;
}
var a = this.createCellEditorParams(e, r, o), l = this.column.getColDef(), u = this.beans.userComponentFactory.getCellEditorDetails(l, a), c = (u == null ? void 0 : u.popupFromSelector) != null ? u.popupFromSelector : !!l.cellEditorPopup, p = (u == null ? void 0 : u.popupPositionFromSelector) != null ? u.popupPositionFromSelector : l.cellEditorPopupPosition;
this.setEditing(!0), this.cellComp.setEditDetails(u, c, p);
var d = this.createEvent(i, v.EVENT_CELL_EDITING_STARTED);
this.beans.eventService.dispatchEvent(d);
}
}, t.prototype.setEditing = function(e) {
this.editing !== e && (this.editing = e, this.refreshHandle());
}, t.prototype.stopRowOrCellEdit = function(e) {
e === void 0 && (e = !1), this.beans.gridOptionsService.get("editType") === "fullRow" ? this.rowCtrl.stopRowEditing(e) : this.stopEditing(e);
}, t.prototype.onPopupEditorClosed = function() {
this.isEditing() && this.stopEditingAndFocus();
}, t.prototype.takeValueFromCellEditor = function(e) {
var r = { newValueExists: !1 };
if (e)
return r;
var o = this.cellComp.getCellEditor();
if (!o)
return r;
var i = o.isCancelAfterEnd && o.isCancelAfterEnd();
if (i)
return r;
var s = o.getValue();
return {
newValue: s,
newValueExists: !0
};
}, t.prototype.saveNewValue = function(e, r) {
if (r === e)
return !1;
this.suppressRefreshCell = !0;
var o = this.rowNode.setDataValue(this.column, r, "edit");
return this.suppressRefreshCell = !1, o;
}, t.prototype.stopEditing = function(e) {
if (e === void 0 && (e = !1), !this.editing)
return !1;
var r = this.takeValueFromCellEditor(e), o = r.newValue, i = r.newValueExists, s = this.rowNode.getValueFromValueService(this.column), a = !1;
return i && (a = this.saveNewValue(s, o)), this.setEditing(!1), this.cellComp.setEditDetails(), this.updateAndFormatValue(), this.refreshCell({ forceRefresh: !0, suppressFlash: !0 }), this.dispatchEditingStoppedEvent(s, o, !e && !!a), a;
}, t.prototype.dispatchEditingStoppedEvent = function(e, r, o) {
var i = Uo(Uo({}, this.createEvent(null, v.EVENT_CELL_EDITING_STOPPED)), {
oldValue: e,
newValue: r,
valueChanged: o
});
this.beans.eventService.dispatchEvent(i);
}, t.prototype.createCellEditorParams = function(e, r, o) {
return {
value: this.rowNode.getValueFromValueService(this.column),
eventKey: e,
charPress: r,
column: this.column,
colDef: this.column.getColDef(),
rowIndex: this.getCellPosition().rowIndex,
node: this.rowNode,
data: this.rowNode.data,
api: this.beans.gridOptionsService.api,
cellStartedEdit: o,
columnApi: this.beans.gridOptionsService.columnApi,
context: this.beans.gridOptionsService.context,
onKeyDown: this.onKeyDown.bind(this),
stopEditing: this.stopEditingAndFocus.bind(this),
eGridCell: this.getGui(),
parseValue: this.parseValue.bind(this),
formatValue: this.formatValue.bind(this)
};
}, t.prototype.createCellRendererParams = function() {
var e = this, r = {
value: this.value,
valueFormatted: this.valueFormatted,
getValue: function() {
return e.rowNode.getValueFromValueService(e.column);
},
setValue: function(o) {
return e.beans.valueService.setValue(e.rowNode, e.column, o);
},
formatValue: this.formatValue.bind(this),
data: this.rowNode.data,
node: this.rowNode,
pinned: this.column.getPinned(),
colDef: this.column.getColDef(),
column: this.column,
rowIndex: this.getCellPosition().rowIndex,
api: this.beans.gridOptionsService.api,
columnApi: this.beans.gridOptionsService.columnApi,
context: this.beans.gridOptionsService.context,
refreshCell: this.refreshCell.bind(this),
eGridCell: this.getGui(),
eParentOfValue: this.cellComp.getParentOfValue(),
registerRowDragger: function(o, i, s, a) {
return e.registerRowDragger(o, i, a);
}
};
return r;
}, t.prototype.parseValue = function(e) {
var r = this.column.getColDef(), o = {
node: this.rowNode,
data: this.rowNode.data,
oldValue: this.getValue(),
newValue: e,
colDef: r,
column: this.column,
api: this.beans.gridOptionsService.api,
columnApi: this.beans.gridOptionsService.columnApi,
context: this.beans.gridOptionsService.context
}, i = r.valueParser;
return O(i) ? typeof i == "function" ? i(o) : this.beans.expressionService.evaluate(i, o) : e;
}, t.prototype.setFocusOutOnEditor = function() {
if (this.editing) {
var e = this.cellComp.getCellEditor();
e && e.focusOut && e.focusOut();
}
}, t.prototype.setFocusInOnEditor = function() {
if (this.editing) {
var e = this.cellComp.getCellEditor();
e && e.focusIn ? e.focusIn() : this.focusCell(!0);
}
}, t.prototype.onCellChanged = function(e) {
if (this.cellComp) {
var r = e.column === this.column;
r && this.refreshCell({});
}
}, t.prototype.refreshCell = function(e) {
var r, o, i;
if (!(this.suppressRefreshCell || this.editing) && this.cellComp) {
var s = this.column.getColDef(), a = e != null && !!e.newData, l = e != null && !!e.suppressFlash || !!s.suppressCellFlash, u = s.field == null && s.valueGetter == null && s.showRowGroup == null, c = e && e.forceRefresh || u || a, p = this.updateAndFormatValue(), d = c || p;
if (d) {
this.showValue(a);
var f = this.beans.filterManager.isSuppressFlashingCellsBecauseFiltering(), g = !l && !f && (this.beans.gridOptionsService.is("enableCellChangeFlash") || s.enableCellChangeFlash);
g && this.flashCell(), (r = this.cellCustomStyleFeature) === null || r === void 0 || r.applyUserStyles(), (o = this.cellCustomStyleFeature) === null || o === void 0 || o.applyClassesFromColDef();
}
this.refreshToolTip(), (i = this.cellCustomStyleFeature) === null || i === void 0 || i.applyCellClassRules();
}
}, t.prototype.stopEditingAndFocus = function(e) {
e === void 0 && (e = !1), this.stopRowOrCellEdit(), this.focusCell(!0), e || this.navigateAfterEdit();
}, t.prototype.navigateAfterEdit = function() {
var e = this.beans.gridOptionsService.get("editType") === "fullRow";
if (!e) {
var r = this.beans.gridOptionsService.is("enterMovesDownAfterEdit");
r && this.beans.navigationService.navigateToNextCell(null, _.DOWN, this.getCellPosition(), !1);
}
}, t.prototype.flashCell = function(e) {
var r = e && e.flashDelay, o = e && e.fadeDelay;
this.animateCell("data-changed", r, o);
}, t.prototype.animateCell = function(e, r, o) {
var i = this, s, a, l = "ag-cell-" + e, u = "ag-cell-" + e + "-animation", c = this.beans.gridOptionsService;
r || (r = (s = c.getNum("cellFlashDelay")) !== null && s !== void 0 ? s : 500), O(o) || (o = (a = c.getNum("cellFadeDelay")) !== null && a !== void 0 ? a : 1e3), this.cellComp.addOrRemoveCssClass(l, !0), this.cellComp.addOrRemoveCssClass(u, !1), window.setTimeout(function() {
i.isAlive() && (i.cellComp.addOrRemoveCssClass(l, !1), i.cellComp.addOrRemoveCssClass(u, !0), i.eGui.style.transition = "background-color " + o + "ms", window.setTimeout(function() {
i.isAlive() && (i.cellComp.addOrRemoveCssClass(u, !1), i.eGui.style.transition = "");
}, o));
}, r);
}, t.prototype.onFlashCells = function(e) {
if (this.cellComp) {
var r = this.beans.cellPositionUtils.createId(this.getCellPosition()), o = e.cells[r];
o && this.animateCell("highlight");
}
}, t.prototype.isCellEditable = function() {
return this.column.isCellEditable(this.rowNode);
}, t.prototype.isSuppressFillHandle = function() {
return this.column.isSuppressFillHandle();
}, t.prototype.formatValue = function(e) {
var r = this.callValueFormatter(e);
return r ?? e;
}, t.prototype.callValueFormatter = function(e) {
return this.beans.valueFormatterService.formatValue(this.column, this.rowNode, e);
}, t.prototype.updateAndFormatValue = function(e) {
e === void 0 && (e = !1);
var r = this.value, o = this.valueFormatted;
this.value = this.rowNode.getValueFromValueService(this.column), this.valueFormatted = this.callValueFormatter(this.value);
var i = e ? !0 : !this.valuesAreEqual(r, this.value) || this.valueFormatted != o;
return i;
}, t.prototype.valuesAreEqual = function(e, r) {
var o = this.column.getColDef();
return o.equals ? o.equals(e, r) : e === r;
}, t.prototype.getComp = function() {
return this.cellComp;
}, t.prototype.getValue = function() {
return this.value;
}, t.prototype.getValueFormatted = function() {
return this.valueFormatted;
}, t.prototype.addDomData = function() {
var e = this, r = this.getGui();
this.beans.gridOptionsService.setDomData(r, t.DOM_DATA_KEY_CELL_CTRL, this), this.addDestroyFunc(function() {
return e.beans.gridOptionsService.setDomData(r, t.DOM_DATA_KEY_CELL_CTRL, null);
});
}, t.prototype.createEvent = function(e, r) {
var o = {
type: r,
node: this.rowNode,
data: this.rowNode.data,
value: this.value,
column: this.column,
colDef: this.column.getColDef(),
context: this.beans.gridOptionsService.context,
api: this.beans.gridApi,
columnApi: this.beans.columnApi,
rowPinned: this.rowNode.rowPinned,
event: e,
rowIndex: this.rowNode.rowIndex
};
return o;
}, t.prototype.onKeyPress = function(e) {
var r;
(r = this.cellKeyboardListenerFeature) === null || r === void 0 || r.onKeyPress(e);
}, t.prototype.onKeyDown = function(e) {
var r;
(r = this.cellKeyboardListenerFeature) === null || r === void 0 || r.onKeyDown(e);
}, t.prototype.onMouseEvent = function(e, r) {
var o;
(o = this.cellMouseListenerFeature) === null || o === void 0 || o.onMouseEvent(e, r);
}, t.prototype.getGui = function() {
return this.eGui;
}, t.prototype.refreshToolTip = function() {
var e;
(e = this.tooltipFeature) === null || e === void 0 || e.refreshToolTip();
}, t.prototype.getColSpanningList = function() {
return this.cellPositionFeature.getColSpanningList();
}, t.prototype.onLeftChanged = function() {
var e;
this.cellComp && ((e = this.cellPositionFeature) === null || e === void 0 || e.onLeftChanged());
}, t.prototype.onDisplayedColumnsChanged = function() {
this.eGui && this.setAriaColIndex();
}, t.prototype.setAriaColIndex = function() {
var e = this.beans.columnModel.getAriaColumnIndex(this.column);
Gn(this.getGui(), e);
}, t.prototype.isSuppressNavigable = function() {
return this.column.isSuppressNavigable(this.rowNode);
}, t.prototype.onWidthChanged = function() {
var e;
return (e = this.cellPositionFeature) === null || e === void 0 ? void 0 : e.onWidthChanged();
}, t.prototype.getColumn = function() {
return this.column;
}, t.prototype.getRowNode = function() {
return this.rowNode;
}, t.prototype.getBeans = function() {
return this.beans;
}, t.prototype.isPrintLayout = function() {
return this.printLayout;
}, t.prototype.appendChild = function(e) {
this.eGui.appendChild(e);
}, t.prototype.refreshHandle = function() {
this.cellRangeFeature && this.cellRangeFeature.refreshHandle();
}, t.prototype.getCellPosition = function() {
return this.cellPosition;
}, t.prototype.isEditing = function() {
return this.editing;
}, t.prototype.startRowOrCellEdit = function(e, r, o) {
o === void 0 && (o = null), this.cellComp && (this.beans.gridOptionsService.get("editType") === "fullRow" ? this.rowCtrl.startRowEditing(e, r, this) : this.startEditing(e, r, !0, o));
}, t.prototype.getRowCtrl = function() {
return this.rowCtrl;
}, t.prototype.getRowPosition = function() {
return {
rowIndex: this.cellPosition.rowIndex,
rowPinned: this.cellPosition.rowPinned
};
}, t.prototype.updateRangeBordersIfRangeCount = function() {
this.cellComp && this.cellRangeFeature && this.cellRangeFeature.updateRangeBordersIfRangeCount();
}, t.prototype.onRangeSelectionChanged = function() {
this.cellComp && this.cellRangeFeature && this.cellRangeFeature.onRangeSelectionChanged();
}, t.prototype.isRangeSelectionEnabled = function() {
return this.cellRangeFeature != null;
}, t.prototype.focusCell = function(e) {
e === void 0 && (e = !1), this.beans.focusService.setFocusedCell({
rowIndex: this.getCellPosition().rowIndex,
column: this.column,
rowPinned: this.rowNode.rowPinned,
forceBrowserFocus: e
});
}, t.prototype.onRowIndexChanged = function() {
this.createCellPosition(), this.onCellFocused(), this.cellRangeFeature && this.cellRangeFeature.onRangeSelectionChanged();
}, t.prototype.onFirstRightPinnedChanged = function() {
if (this.cellComp) {
var e = this.column.isFirstRightPinned();
this.cellComp.addOrRemoveCssClass(Oh, e);
}
}, t.prototype.onLastLeftPinnedChanged = function() {
if (this.cellComp) {
var e = this.column.isLastLeftPinned();
this.cellComp.addOrRemoveCssClass(Th, e);
}
}, t.prototype.onCellFocused = function(e) {
if (!(!this.cellComp || this.beans.gridOptionsService.is("suppressCellFocus"))) {
var r = this.beans.focusService.isCellFocused(this.cellPosition);
if (this.cellComp.addOrRemoveCssClass(Rh, r), r && e && e.forceBrowserFocus) {
var o = this.cellComp.getFocusableElement();
o.focus({ preventScroll: !!e.preventScrollOnBrowserFocus });
}
var i = this.beans.gridOptionsService.get("editType") === "fullRow";
!r && !i && this.editing && this.stopRowOrCellEdit();
}
}, t.prototype.createCellPosition = function() {
this.cellPosition = {
rowIndex: this.rowNode.rowIndex,
rowPinned: Ct(this.rowNode.rowPinned),
column: this.column
};
}, t.prototype.applyStaticCssClasses = function() {
this.cellComp.addOrRemoveCssClass(Sh, !0), this.cellComp.addOrRemoveCssClass(bh, !0);
var e = this.column.isAutoHeight() == !0;
this.cellComp.addOrRemoveCssClass(Eh, e), this.cellComp.addOrRemoveCssClass(_h, !e);
}, t.prototype.onColumnHover = function() {
if (this.cellComp && this.beans.gridOptionsService.is("columnHoverHighlight")) {
var e = this.beans.columnHoverService.isHovered(this.column);
this.cellComp.addOrRemoveCssClass(Ph, e);
}
}, t.prototype.onColDefChanged = function() {
this.cellComp && (this.setWrapText(), this.editing || this.refreshCell({ forceRefresh: !0, suppressFlash: !0 }));
}, t.prototype.setWrapText = function() {
var e = this.column.getColDef().wrapText == !0;
this.cellComp.addOrRemoveCssClass(Dh, e);
}, t.prototype.dispatchCellContextMenuEvent = function(e) {
var r = this.column.getColDef(), o = this.createEvent(e, v.EVENT_CELL_CONTEXT_MENU);
this.beans.eventService.dispatchEvent(o), r.onCellContextMenu && window.setTimeout(function() {
return r.onCellContextMenu(o);
}, 0);
}, t.prototype.getCellRenderer = function() {
return this.cellComp ? this.cellComp.getCellRenderer() : null;
}, t.prototype.getCellEditor = function() {
return this.cellComp ? this.cellComp.getCellEditor() : null;
}, t.prototype.destroy = function() {
this.onCellCompAttachedFuncs = [], n.prototype.destroy.call(this);
}, t.prototype.createSelectionCheckbox = function() {
var e = new xl();
return this.beans.context.createBean(e), e.init({ rowNode: this.rowNode, column: this.column }), e;
}, t.prototype.createDndSource = function() {
var e = new mh(this.rowNode, this.column, this.beans, this.eGui);
return this.beans.context.createBean(e), e;
}, t.prototype.registerRowDragger = function(e, r, o) {
var i = this;
if (this.customRowDragComp) {
this.customRowDragComp.setDragElement(e, r);
return;
}
var s = this.createRowDragComp(e, r, o);
s && (this.customRowDragComp = s, this.addDestroyFunc(function() {
i.beans.context.destroyBean(s), i.customRowDragComp = null;
}));
}, t.prototype.createRowDragComp = function(e, r, o) {
var i = this, s = this.beans.gridOptionsService.is("pagination"), a = this.beans.gridOptionsService.is("rowDragManaged"), l = this.beans.gridOptionsService.isRowModelType("clientSide");
if (a) {
if (!l) {
K(function() {
return console.warn("AG Grid: managed row dragging is only allowed in the Client Side Row Model");
}, "CellComp.addRowDragging");
return;
}
if (s) {
K(function() {
return console.warn("AG Grid: managed row dragging is not possible when doing pagination");
}, "CellComp.addRowDragging");
return;
}
}
var u = new Ho(function() {
return i.value;
}, this.rowNode, this.column, e, r, o);
return this.beans.context.createBean(u), u;
}, t.DOM_DATA_KEY_CELL_CTRL = "cellCtrl", t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Fh = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Lh = function(n) {
var t = typeof Symbol == "function" && Symbol.iterator, e = t && n[t], r = 0;
if (e)
return e.call(n);
if (n && typeof n.length == "number")
return {
next: function() {
return n && r >= n.length && (n = void 0), { value: n && n[r++], done: !n };
}
};
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
}, Mh = function(n, t) {
var e = typeof Symbol == "function" && n[Symbol.iterator];
if (!e)
return n;
var r = e.call(n), o, i = [], s;
try {
for (; (t === void 0 || t-- > 0) && !(o = r.next()).done; )
i.push(o.value);
} catch (a) {
s = { error: a };
} finally {
try {
o && !o.done && (e = r.return) && e.call(r);
} finally {
if (s)
throw s.error;
}
}
return i;
}, Ih = function() {
for (var n = [], t = 0; t < arguments.length; t++)
n = n.concat(Mh(arguments[t]));
return n;
}, _e;
(function(n) {
n.Normal = "Normal", n.FullWidth = "FullWidth", n.FullWidthLoading = "FullWidthLoading", n.FullWidthGroup = "FullWidthGroup", n.FullWidthDetail = "FullWidthDetail";
})(_e || (_e = {}));
var xh = 0, Lt = (
/** @class */
function(n) {
Fh(t, n);
function t(e, r, o, i, s) {
var a = n.call(this) || this;
return a.allRowGuis = [], a.active = !0, a.centerCellCtrls = { list: [], map: {} }, a.leftCellCtrls = { list: [], map: {} }, a.rightCellCtrls = { list: [], map: {} }, a.slideInAnimation = {
left: !1,
center: !1,
right: !1,
fullWidth: !1
}, a.fadeInAnimation = {
left: !1,
center: !1,
right: !1,
fullWidth: !1
}, a.lastMouseDownOnDragger = !1, a.updateColumnListsPending = !1, a.businessKeySanitised = null, a.beans = r, a.rowNode = e, a.paginationPage = a.beans.paginationProxy.getCurrentPage(), a.useAnimationFrameForCreate = i, a.printLayout = s, a.instanceId = e.id + "-" + xh++, a.setAnimateFlags(o), a.initRowBusinessKey(), a.rowFocused = a.beans.focusService.isRowFocused(a.rowNode.rowIndex, a.rowNode.rowPinned), a.rowLevel = a.beans.rowCssClassCalculator.calculateRowLevel(a.rowNode), a.setRowType(), a.addListeners(), a;
}
return t.prototype.initRowBusinessKey = function() {
var e = this.beans.gridOptionsService.get("getBusinessKeyForNode");
if (typeof e == "function") {
var r = e(this.rowNode);
this.businessKeySanitised = tt(r);
}
}, t.prototype.isSticky = function() {
return this.rowNode.sticky;
}, t.prototype.getBeans = function() {
return this.beans;
}, t.prototype.getInstanceId = function() {
return this.instanceId;
}, t.prototype.setComp = function(e, r, o) {
var i = { rowComp: e, element: r, containerType: o };
this.allRowGuis.push(i), o === ve.LEFT ? this.leftGui = i : o === ve.RIGHT ? this.rightGui = i : o === ve.FULL_WIDTH ? this.fullWidthGui = i : this.centerGui = i, this.initialiseRowComp(i), this.rowType !== "FullWidthLoading" && !this.rowNode.rowPinned && this.beans.rowRenderer.dispatchFirstDataRenderedEvent();
}, t.prototype.unsetComp = function(e) {
this.allRowGuis = this.allRowGuis.filter(function(r) {
return r.containerType !== e;
}), e === ve.LEFT ? this.leftGui = void 0 : e === ve.RIGHT ? this.rightGui = void 0 : e === ve.FULL_WIDTH && (this.fullWidthGui = void 0);
}, t.prototype.isCacheable = function() {
return this.rowType === _e.FullWidthDetail && this.beans.gridOptionsService.is("keepDetailRows");
}, t.prototype.setCached = function(e) {
var r = e ? "none" : "";
this.allRowGuis.forEach(function(o) {
return o.element.style.display = r;
});
}, t.prototype.initialiseRowComp = function(e) {
var r = this, o = this.beans.gridOptionsService;
this.onRowHeightChanged(e), this.updateRowIndexes(e), this.setFocusedClasses(e), this.setStylesFromGridOptions(e), o.isRowSelection() && this.rowNode.selectable && this.onRowSelected(e), this.updateColumnLists(!this.useAnimationFrameForCreate);
var i = e.rowComp;
i.setRole("row");
var s = this.getInitialRowClasses(e.containerType);
s.forEach(function(l) {
return i.addOrRemoveCssClass(l, !0);
}), this.executeSlideAndFadeAnimations(e), this.rowNode.group && ke(e.element, this.rowNode.expanded == !0);
var a = tt(this.rowNode.id);
a != null && i.setRowId(a), this.businessKeySanitised != null && i.setRowBusinessKey(this.businessKeySanitised), this.isFullWidth() && !this.beans.gridOptionsService.is("suppressCellFocus") && i.setTabIndex(-1), o.setDomData(e.element, t.DOM_DATA_KEY_ROW_CTRL, this), this.addDestroyFunc(function() {
return o.setDomData(e.element, t.DOM_DATA_KEY_ROW_CTRL, null);
}), this.useAnimationFrameForCreate ? this.beans.animationFrameService.createTask(this.addHoverFunctionality.bind(this, e.element), this.rowNode.rowIndex, "createTasksP2") : this.addHoverFunctionality(e.element), this.isFullWidth() && this.setupFullWidth(e), o.is("rowDragEntireRow") && this.addRowDraggerToRow(e), this.useAnimationFrameForCreate && this.beans.animationFrameService.addDestroyTask(function() {
r.isAlive() && e.rowComp.addOrRemoveCssClass("ag-after-created", !0);
}), this.executeProcessRowPostCreateFunc();
}, t.prototype.executeSlideAndFadeAnimations = function(e) {
var r = this, o = e.containerType, i = this.slideInAnimation[o];
i && (sn(function() {
r.onTopChanged();
}), this.slideInAnimation[o] = !1);
var s = this.fadeInAnimation[o];
s && (sn(function() {
e.rowComp.addOrRemoveCssClass("ag-opacity-zero", !1);
}), this.fadeInAnimation[o] = !1);
}, t.prototype.addRowDraggerToRow = function(e) {
if (this.beans.gridOptionsService.isEnableRangeSelection()) {
K(function() {
console.warn("AG Grid: Setting `rowDragEntireRow: true` in the gridOptions doesn't work with `enableRangeSelection: true`");
}, "rowDragAndRangeSelectionEnabled");
return;
}
var r = this.beans.localeService.getLocaleTextFunc(), o = new Ho(function() {
return "1 " + r("rowDragRow", "row");
}, this.rowNode, void 0, e.element, void 0, !0);
this.createManagedBean(o, this.beans.context);
}, t.prototype.setupFullWidth = function(e) {
var r = this.getPinnedForContainer(e.containerType), o = this.createFullWidthParams(e.element, r);
if (!(this.rowType == _e.FullWidthDetail && !N.assertRegistered(F.MasterDetailModule, "cell renderer 'agDetailCellRenderer' (for master detail)"))) {
var i;
switch (this.rowType) {
case _e.FullWidthDetail:
i = this.beans.userComponentFactory.getFullWidthDetailCellRendererDetails(o);
break;
case _e.FullWidthGroup:
i = this.beans.userComponentFactory.getFullWidthGroupCellRendererDetails(o);
break;
case _e.FullWidthLoading:
i = this.beans.userComponentFactory.getFullWidthLoadingCellRendererDetails(o);
break;
default:
i = this.beans.userComponentFactory.getFullWidthCellRendererDetails(o);
break;
}
e.rowComp.showFullWidth(i);
}
}, t.prototype.isPrintLayout = function() {
return this.printLayout;
}, t.prototype.getFullWidthCellRenderer = function() {
var e, r;
return (r = (e = this.fullWidthGui) === null || e === void 0 ? void 0 : e.rowComp) === null || r === void 0 ? void 0 : r.getFullWidthCellRenderer();
}, t.prototype.getCellElement = function(e) {
var r = this.getCellCtrl(e);
return r ? r.getGui() : null;
}, t.prototype.executeProcessRowPostCreateFunc = function() {
var e, r = this.beans.gridOptionsService.getCallback("processRowPostCreate");
if (!(!r || !this.areAllContainersReady())) {
var o = {
eRow: (e = this.centerGui) === null || e === void 0 ? void 0 : e.element,
ePinnedLeftRow: this.leftGui ? this.leftGui.element : void 0,
ePinnedRightRow: this.rightGui ? this.rightGui.element : void 0,
node: this.rowNode,
rowIndex: this.rowNode.rowIndex,
addRenderedRowListener: this.addEventListener.bind(this)
};
r(o);
}
}, t.prototype.areAllContainersReady = function() {
var e = !!this.leftGui || !this.beans.columnModel.isPinningLeft(), r = !!this.centerGui, o = !!this.rightGui || !this.beans.columnModel.isPinningRight();
return e && r && o;
}, t.prototype.setRowType = function() {
var e = this.rowNode.stub, r = this.rowNode.isFullWidthCell(), o = this.beans.doingMasterDetail && this.rowNode.detail, i = this.beans.columnModel.isPivotMode(), s = !!this.rowNode.group && !this.rowNode.footer, a = s && this.beans.gridOptionsService.isGroupUseEntireRow(i);
e ? this.rowType = _e.FullWidthLoading : o ? this.rowType = _e.FullWidthDetail : r ? this.rowType = _e.FullWidth : a ? this.rowType = _e.FullWidthGroup : this.rowType = _e.Normal;
}, t.prototype.updateColumnLists = function(e, r) {
var o = this;
if (e === void 0 && (e = !1), r === void 0 && (r = !1), !this.isFullWidth()) {
var i = e || this.beans.gridOptionsService.is("suppressAnimationFrame") || this.printLayout;
if (i) {
this.updateColumnListsImpl(r);
return;
}
this.updateColumnListsPending || (this.beans.animationFrameService.createTask(function() {
o.active && o.updateColumnListsImpl(!0);
}, this.rowNode.rowIndex, "createTasksP1"), this.updateColumnListsPending = !0);
}
}, t.prototype.createCellCtrls = function(e, r, o) {
var i = this;
o === void 0 && (o = null);
var s = {
list: [],
map: {}
}, a = function(l, u) {
s.list.push(u), s.map[l] = u;
};
return r.forEach(function(l) {
var u = l.getInstanceId(), c = e.map[u];
c || (c = new Ft(l, i.rowNode, i.beans, i)), a(u, c);
}), e.list.forEach(function(l) {
var u = s.map[l.getColumn().getInstanceId()] != null;
if (!u) {
var c = !i.isCellEligibleToBeRemoved(l, o);
if (c) {
a(l.getColumn().getInstanceId(), l);
return;
}
l.destroy();
}
}), s;
}, t.prototype.updateColumnListsImpl = function(e) {
var r = this;
e === void 0 && (e = !1), this.updateColumnListsPending = !1;
var o = this.beans.columnModel;
if (this.printLayout)
this.centerCellCtrls = this.createCellCtrls(this.centerCellCtrls, o.getAllDisplayedColumns()), this.leftCellCtrls = { list: [], map: {} }, this.rightCellCtrls = { list: [], map: {} };
else {
var i = o.getViewportCenterColumnsForRow(this.rowNode);
this.centerCellCtrls = this.createCellCtrls(this.centerCellCtrls, i);
var s = o.getDisplayedLeftColumnsForRow(this.rowNode);
this.leftCellCtrls = this.createCellCtrls(this.leftCellCtrls, s, "left");
var a = o.getDisplayedRightColumnsForRow(this.rowNode);
this.rightCellCtrls = this.createCellCtrls(this.rightCellCtrls, a, "right");
}
this.allRowGuis.forEach(function(l) {
var u = l.containerType === ve.LEFT ? r.leftCellCtrls : l.containerType === ve.RIGHT ? r.rightCellCtrls : r.centerCellCtrls;
l.rowComp.setCellCtrls(u.list, e);
});
}, t.prototype.isCellEligibleToBeRemoved = function(e, r) {
var o = !0, i = !1, s = e.getColumn();
if (s.getPinned() != r)
return o;
var a = e.isEditing(), l = this.beans.focusService.isCellFocused(e.getCellPosition()), u = a || l;
if (u) {
var c = e.getColumn(), p = this.beans.columnModel.getAllDisplayedColumns(), d = p.indexOf(c) >= 0;
return d ? i : o;
}
return o;
}, t.prototype.setAnimateFlags = function(e) {
if (!(this.isSticky() || !e)) {
var r = O(this.rowNode.oldRowTop), o = this.beans.columnModel.isPinningLeft(), i = this.beans.columnModel.isPinningRight();
r ? (this.slideInAnimation.center = !0, this.slideInAnimation.left = o, this.slideInAnimation.right = i) : (this.fadeInAnimation.center = !0, this.fadeInAnimation.left = o, this.fadeInAnimation.right = i);
}
}, t.prototype.isEditing = function() {
return this.editingRow;
}, t.prototype.stopRowEditing = function(e) {
this.stopEditing(e);
}, t.prototype.isFullWidth = function() {
return this.rowType !== _e.Normal;
}, t.prototype.getRowType = function() {
return this.rowType;
}, t.prototype.refreshFullWidth = function() {
var e = this, r = function(u, c) {
if (!u)
return !0;
var p = u.rowComp.getFullWidthCellRenderer();
if (!p || !p.refresh)
return !1;
var d = e.createFullWidthParams(u.element, c), f = p.refresh(d);
return f;
}, o = r(this.fullWidthGui, null), i = r(this.centerGui, null), s = r(this.leftGui, "left"), a = r(this.rightGui, "right"), l = o && i && s && a;
return l;
}, t.prototype.addListeners = function() {
var e = this;
this.addManagedListener(this.rowNode, j.EVENT_HEIGHT_CHANGED, function() {
return e.onRowHeightChanged();
}), this.addManagedListener(this.rowNode, j.EVENT_ROW_SELECTED, function() {
return e.onRowSelected();
}), this.addManagedListener(this.rowNode, j.EVENT_ROW_INDEX_CHANGED, this.onRowIndexChanged.bind(this)), this.addManagedListener(this.rowNode, j.EVENT_TOP_CHANGED, this.onTopChanged.bind(this)), this.addManagedListener(this.rowNode, j.EVENT_EXPANDED_CHANGED, this.updateExpandedCss.bind(this)), this.addManagedListener(this.rowNode, j.EVENT_HAS_CHILDREN_CHANGED, this.updateExpandedCss.bind(this)), this.addManagedListener(this.rowNode, j.EVENT_DATA_CHANGED, this.onRowNodeDataChanged.bind(this)), this.addManagedListener(this.rowNode, j.EVENT_CELL_CHANGED, this.onRowNodeCellChanged.bind(this)), this.addManagedListener(this.rowNode, j.EVENT_HIGHLIGHT_CHANGED, this.onRowNodeHighlightChanged.bind(this)), this.addManagedListener(this.rowNode, j.EVENT_DRAGGING_CHANGED, this.onRowNodeDraggingChanged.bind(this)), this.addManagedListener(this.rowNode, j.EVENT_UI_LEVEL_CHANGED, this.onUiLevelChanged.bind(this));
var r = this.beans.eventService;
this.addManagedListener(r, v.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED, this.onPaginationPixelOffsetChanged.bind(this)), this.addManagedListener(r, v.EVENT_HEIGHT_SCALE_CHANGED, this.onTopChanged.bind(this)), this.addManagedListener(r, v.EVENT_DISPLAYED_COLUMNS_CHANGED, this.onDisplayedColumnsChanged.bind(this)), this.addManagedListener(r, v.EVENT_VIRTUAL_COLUMNS_CHANGED, this.onVirtualColumnsChanged.bind(this)), this.addManagedListener(r, v.EVENT_CELL_FOCUSED, this.onCellFocused.bind(this)), this.addManagedListener(r, v.EVENT_CELL_FOCUS_CLEARED, this.onCellFocusCleared.bind(this)), this.addManagedListener(r, v.EVENT_PAGINATION_CHANGED, this.onPaginationChanged.bind(this)), this.addManagedListener(r, v.EVENT_MODEL_UPDATED, this.onModelUpdated.bind(this)), this.addManagedListener(r, v.EVENT_COLUMN_MOVED, this.onColumnMoved.bind(this)), this.addListenersForCellComps();
}, t.prototype.onColumnMoved = function() {
this.updateColumnLists();
}, t.prototype.addListenersForCellComps = function() {
var e = this;
this.addManagedListener(this.rowNode, j.EVENT_ROW_INDEX_CHANGED, function() {
e.getAllCellCtrls().forEach(function(r) {
return r.onRowIndexChanged();
});
}), this.addManagedListener(this.rowNode, j.EVENT_CELL_CHANGED, function(r) {
e.getAllCellCtrls().forEach(function(o) {
return o.onCellChanged(r);
});
});
}, t.prototype.onRowNodeDataChanged = function(e) {
if (this.rowNode.detailNode && this.beans.rowRenderer.refreshFullWidthRow(this.rowNode.detailNode), this.isFullWidth()) {
this.beans.rowRenderer.refreshFullWidthRow(this.rowNode);
return;
}
this.getAllCellCtrls().forEach(function(r) {
return r.refreshCell({
suppressFlash: !e.update,
newData: !e.update
});
}), this.onRowSelected(), this.postProcessCss();
}, t.prototype.onRowNodeCellChanged = function() {
this.postProcessCss();
}, t.prototype.postProcessCss = function() {
this.setStylesFromGridOptions(), this.postProcessClassesFromGridOptions(), this.postProcessRowClassRules(), this.postProcessRowDragging();
}, t.prototype.onRowNodeHighlightChanged = function() {
var e = this.rowNode.highlighted;
this.allRowGuis.forEach(function(r) {
var o = e === at.Above, i = e === at.Below;
r.rowComp.addOrRemoveCssClass("ag-row-highlight-above", o), r.rowComp.addOrRemoveCssClass("ag-row-highlight-below", i);
});
}, t.prototype.onRowNodeDraggingChanged = function() {
this.postProcessRowDragging();
}, t.prototype.postProcessRowDragging = function() {
var e = this.rowNode.dragging;
this.allRowGuis.forEach(function(r) {
return r.rowComp.addOrRemoveCssClass("ag-row-dragging", e);
});
}, t.prototype.updateExpandedCss = function() {
var e = this.rowNode.isExpandable(), r = this.rowNode.expanded == !0;
this.allRowGuis.forEach(function(o) {
o.rowComp.addOrRemoveCssClass("ag-row-group", e), o.rowComp.addOrRemoveCssClass("ag-row-group-expanded", e && r), o.rowComp.addOrRemoveCssClass("ag-row-group-contracted", e && !r), ke(o.element, e && r);
});
}, t.prototype.onDisplayedColumnsChanged = function() {
this.updateColumnLists(!0), this.beans.columnModel.wasAutoRowHeightEverActive() && this.rowNode.checkAutoHeights();
}, t.prototype.onVirtualColumnsChanged = function() {
this.updateColumnLists(!1, !0);
}, t.prototype.getRowPosition = function() {
return {
rowPinned: Ct(this.rowNode.rowPinned),
rowIndex: this.rowNode.rowIndex
};
}, t.prototype.onKeyboardNavigate = function(e) {
var r = this.allRowGuis.find(function(u) {
return u.element.contains(e.target);
}), o = r ? r.element : null, i = o === e.target;
if (i) {
var s = this.rowNode, a = this.beans.focusService.getFocusedCell(), l = {
rowIndex: s.rowIndex,
rowPinned: s.rowPinned,
column: a && a.column
};
this.beans.navigationService.navigateToNextCell(e, e.key, l, !0), e.preventDefault();
}
}, t.prototype.onTabKeyDown = function(e) {
if (!(e.defaultPrevented || Ze(e))) {
var r = this.allRowGuis.find(function(a) {
return a.element.contains(e.target);
}), o = r ? r.element : null, i = o === e.target, s = null;
i || (s = this.beans.focusService.findNextFocusableElement(o, !1, e.shiftKey)), (this.isFullWidth() && i || !s) && this.beans.navigationService.onTabKeyDown(this, e);
}
}, t.prototype.onFullWidthRowFocused = function(e) {
var r, o = this.rowNode, i = e ? this.isFullWidth() && e.rowIndex === o.rowIndex && e.rowPinned == o.rowPinned : !1, s = this.fullWidthGui ? this.fullWidthGui.element : (r = this.centerGui) === null || r === void 0 ? void 0 : r.element;
s && (s.classList.toggle("ag-full-width-focus", i), i && s.focus({ preventScroll: !0 }));
}, t.prototype.refreshCell = function(e) {
this.centerCellCtrls = this.removeCellCtrl(this.centerCellCtrls, e), this.leftCellCtrls = this.removeCellCtrl(this.leftCellCtrls, e), this.rightCellCtrls = this.removeCellCtrl(this.rightCellCtrls, e), this.updateColumnLists();
}, t.prototype.removeCellCtrl = function(e, r) {
var o = {
list: [],
map: {}
};
return e.list.forEach(function(i) {
i !== r && (o.list.push(i), o.map[i.getInstanceId()] = i);
}), o;
}, t.prototype.onMouseEvent = function(e, r) {
switch (e) {
case "dblclick":
this.onRowDblClick(r);
break;
case "click":
this.onRowClick(r);
break;
case "touchstart":
case "mousedown":
this.onRowMouseDown(r);
break;
}
}, t.prototype.createRowEvent = function(e, r) {
return {
type: e,
node: this.rowNode,
data: this.rowNode.data,
rowIndex: this.rowNode.rowIndex,
rowPinned: this.rowNode.rowPinned,
context: this.beans.gridOptionsService.context,
api: this.beans.gridOptionsService.api,
columnApi: this.beans.gridOptionsService.columnApi,
event: r
};
}, t.prototype.createRowEventWithSource = function(e, r) {
var o = this.createRowEvent(e, r);
return o.source = this, o;
}, t.prototype.onRowDblClick = function(e) {
if (!Ze(e)) {
var r = this.createRowEventWithSource(v.EVENT_ROW_DOUBLE_CLICKED, e);
this.beans.eventService.dispatchEvent(r);
}
}, t.prototype.onRowMouseDown = function(e) {
if (this.lastMouseDownOnDragger = Dt(e.target, "ag-row-drag", 3), !!this.isFullWidth()) {
var r = this.rowNode, o = this.beans.columnModel;
this.beans.rangeService && this.beans.rangeService.removeAllCellRanges(), this.beans.focusService.setFocusedCell({
rowIndex: r.rowIndex,
column: o.getAllDisplayedColumns()[0],
rowPinned: r.rowPinned,
forceBrowserFocus: !0
});
}
}, t.prototype.onRowClick = function(e) {
var r = Ze(e) || this.lastMouseDownOnDragger;
if (!r) {
var o = this.createRowEventWithSource(v.EVENT_ROW_CLICKED, e);
this.beans.eventService.dispatchEvent(o);
var i = e.ctrlKey || e.metaKey, s = e.shiftKey, a = this.beans.gridOptionsService.is("groupSelectsChildren");
if (
// we do not allow selecting groups by clicking (as the click here expands the group), or if it's a detail row,
// so return if it's a group row
!(a && this.rowNode.group || // this is needed so we don't unselect other rows when we click this row, eg if this row is not selectable,
// and we click it, the selection should not change (ie any currently selected row should stay selected)
!this.rowNode.selectable || // we also don't allow selection of pinned rows
this.rowNode.rowPinned || // if no selection method enabled, do nothing
!this.beans.gridOptionsService.isRowSelection() || // if click selection suppressed, do nothing
this.beans.gridOptionsService.is("suppressRowClickSelection"))
) {
var l = this.beans.gridOptionsService.is("rowMultiSelectWithClick"), u = !this.beans.gridOptionsService.is("suppressRowDeselection"), c = "rowClicked";
if (this.rowNode.isSelected())
l ? this.rowNode.setSelectedParams({ newValue: !1, event: e, source: c }) : i ? u && this.rowNode.setSelectedParams({ newValue: !1, event: e, source: c }) : this.rowNode.setSelectedParams({ newValue: !0, clearSelection: !s, rangeSelect: s, event: e, source: c });
else {
var p = l ? !1 : !i;
this.rowNode.setSelectedParams({ newValue: !0, clearSelection: p, rangeSelect: s, event: e, source: c });
}
}
}
}, t.prototype.setupDetailRowAutoHeight = function(e) {
var r = this;
if (this.rowType === _e.FullWidthDetail && this.beans.gridOptionsService.is("detailRowAutoHeight")) {
var o = function() {
var s = e.clientHeight;
if (s != null && s > 0) {
var a = function() {
r.rowNode.setRowHeight(s), r.beans.clientSideRowModel ? r.beans.clientSideRowModel.onRowHeightChanged() : r.beans.serverSideRowModel && r.beans.serverSideRowModel.onRowHeightChanged();
};
r.beans.frameworkOverrides.setTimeout(a, 0);
}
}, i = this.beans.resizeObserverService.observeResize(e, o);
this.addDestroyFunc(i), o();
}
}, t.prototype.createFullWidthParams = function(e, r) {
var o = this, i = {
fullWidth: !0,
data: this.rowNode.data,
node: this.rowNode,
value: this.rowNode.key,
valueFormatted: this.rowNode.key,
rowIndex: this.rowNode.rowIndex,
api: this.beans.gridOptionsService.api,
columnApi: this.beans.gridOptionsService.columnApi,
context: this.beans.gridOptionsService.context,
// these need to be taken out, as part of 'afterAttached' now
eGridCell: e,
eParentOfValue: e,
pinned: r,
addRenderedRowListener: this.addEventListener.bind(this),
registerRowDragger: function(s, a, l, u) {
return o.addFullWidthRowDragging(s, a, l, u);
}
};
return i;
}, t.prototype.addFullWidthRowDragging = function(e, r, o, i) {
if (o === void 0 && (o = ""), !!this.isFullWidth()) {
var s = new Ho(function() {
return o;
}, this.rowNode, void 0, e, r, i);
this.createManagedBean(s, this.beans.context);
}
}, t.prototype.onUiLevelChanged = function() {
var e = this.beans.rowCssClassCalculator.calculateRowLevel(this.rowNode);
if (this.rowLevel != e) {
var r = "ag-row-level-" + e, o = "ag-row-level-" + this.rowLevel;
this.allRowGuis.forEach(function(i) {
i.rowComp.addOrRemoveCssClass(r, !0), i.rowComp.addOrRemoveCssClass(o, !1);
});
}
this.rowLevel = e;
}, t.prototype.isFirstRowOnPage = function() {
return this.rowNode.rowIndex === this.beans.paginationProxy.getPageFirstRow();
}, t.prototype.isLastRowOnPage = function() {
return this.rowNode.rowIndex === this.beans.paginationProxy.getPageLastRow();
}, t.prototype.onModelUpdated = function() {
this.refreshFirstAndLastRowStyles();
}, t.prototype.refreshFirstAndLastRowStyles = function() {
var e = this.isFirstRowOnPage(), r = this.isLastRowOnPage();
this.firstRowOnPage !== e && (this.firstRowOnPage = e, this.allRowGuis.forEach(function(o) {
return o.rowComp.addOrRemoveCssClass("ag-row-first", e);
})), this.lastRowOnPage !== r && (this.lastRowOnPage = r, this.allRowGuis.forEach(function(o) {
return o.rowComp.addOrRemoveCssClass("ag-row-last", r);
}));
}, t.prototype.stopEditing = function(e) {
var r, o;
if (e === void 0 && (e = !1), !this.stoppingRowEdit) {
var i = this.getAllCellCtrls(), s = this.editingRow;
this.stoppingRowEdit = !0;
var a = !1;
try {
for (var l = Lh(i), u = l.next(); !u.done; u = l.next()) {
var c = u.value, p = c.stopEditing(e);
s && !e && !a && p && (a = !0);
}
} catch (f) {
r = { error: f };
} finally {
try {
u && !u.done && (o = l.return) && o.call(l);
} finally {
if (r)
throw r.error;
}
}
if (a) {
var d = this.createRowEvent(v.EVENT_ROW_VALUE_CHANGED);
this.beans.eventService.dispatchEvent(d);
}
s && this.setEditingRow(!1), this.stoppingRowEdit = !1;
}
}, t.prototype.setInlineEditingCss = function(e) {
this.allRowGuis.forEach(function(r) {
r.rowComp.addOrRemoveCssClass("ag-row-inline-editing", e), r.rowComp.addOrRemoveCssClass("ag-row-not-inline-editing", !e);
});
}, t.prototype.setEditingRow = function(e) {
this.editingRow = e, this.allRowGuis.forEach(function(o) {
return o.rowComp.addOrRemoveCssClass("ag-row-editing", e);
});
var r = e ? this.createRowEvent(v.EVENT_ROW_EDITING_STARTED) : this.createRowEvent(v.EVENT_ROW_EDITING_STOPPED);
this.beans.eventService.dispatchEvent(r);
}, t.prototype.startRowEditing = function(e, r, o, i) {
if (e === void 0 && (e = null), r === void 0 && (r = null), o === void 0 && (o = null), i === void 0 && (i = null), !this.editingRow) {
var s = this.getAllCellCtrls().reduce(function(a, l) {
var u = l === o;
return u ? l.startEditing(e, r, u, i) : l.startEditing(null, null, u, i), a ? !0 : l.isEditing();
}, !1);
s && this.setEditingRow(!0);
}
}, t.prototype.getAllCellCtrls = function() {
if (this.leftCellCtrls.list.length === 0 && this.rightCellCtrls.list.length === 0)
return this.centerCellCtrls.list;
var e = Ih(this.centerCellCtrls.list, this.leftCellCtrls.list, this.rightCellCtrls.list);
return e;
}, t.prototype.postProcessClassesFromGridOptions = function() {
var e = this, r = this.beans.rowCssClassCalculator.processClassesFromGridOptions(this.rowNode);
!r || !r.length || r.forEach(function(o) {
e.allRowGuis.forEach(function(i) {
return i.rowComp.addOrRemoveCssClass(o, !0);
});
});
}, t.prototype.postProcessRowClassRules = function() {
var e = this;
this.beans.rowCssClassCalculator.processRowClassRules(this.rowNode, function(r) {
e.allRowGuis.forEach(function(o) {
return o.rowComp.addOrRemoveCssClass(r, !0);
});
}, function(r) {
e.allRowGuis.forEach(function(o) {
return o.rowComp.addOrRemoveCssClass(r, !1);
});
});
}, t.prototype.setStylesFromGridOptions = function(e) {
var r = this.processStylesFromGridOptions();
this.forEachGui(e, function(o) {
return o.rowComp.setUserStyles(r);
});
}, t.prototype.getPinnedForContainer = function(e) {
var r = e === ve.LEFT ? "left" : e === ve.RIGHT ? "right" : null;
return r;
}, t.prototype.getInitialRowClasses = function(e) {
var r = this.getPinnedForContainer(e), o = {
rowNode: this.rowNode,
rowFocused: this.rowFocused,
fadeRowIn: this.fadeInAnimation[e],
rowIsEven: this.rowNode.rowIndex % 2 === 0,
rowLevel: this.rowLevel,
fullWidthRow: this.isFullWidth(),
firstRowOnPage: this.isFirstRowOnPage(),
lastRowOnPage: this.isLastRowOnPage(),
printLayout: this.printLayout,
expandable: this.rowNode.isExpandable(),
pinned: r
};
return this.beans.rowCssClassCalculator.getInitialRowClasses(o);
}, t.prototype.processStylesFromGridOptions = function() {
var e = this.beans.gridOptionsService.get("rowStyle");
if (e && typeof e == "function") {
console.warn("AG Grid: rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead");
return;
}
var r = this.beans.gridOptionsService.getCallback("getRowStyle"), o;
if (r) {
var i = {
data: this.rowNode.data,
node: this.rowNode,
rowIndex: this.rowNode.rowIndex
};
o = r(i);
}
return Object.assign({}, e, o);
}, t.prototype.onRowSelected = function(e) {
var r = this, o = !!this.rowNode.isSelected();
this.forEachGui(e, function(i) {
i.rowComp.addOrRemoveCssClass("ag-row-selected", o), Jt(i.element, o ? !0 : void 0);
var s = r.createAriaLabel();
xt(i.element, s ?? "");
});
}, t.prototype.createAriaLabel = function() {
var e = this.rowNode.isSelected();
if (!(e && this.beans.gridOptionsService.is("suppressRowDeselection"))) {
var r = this.beans.localeService.getLocaleTextFunc(), o = r(e ? "ariaRowDeselect" : "ariaRowSelect", "Press SPACE to " + (e ? "deselect" : "select") + " this row.");
return o;
}
}, t.prototype.isUseAnimationFrameForCreate = function() {
return this.useAnimationFrameForCreate;
}, t.prototype.addHoverFunctionality = function(e) {
var r = this;
this.active && (this.addManagedListener(e, "mouseenter", function() {
return r.rowNode.onMouseEnter();
}), this.addManagedListener(e, "mouseleave", function() {
return r.rowNode.onMouseLeave();
}), this.addManagedListener(this.rowNode, j.EVENT_MOUSE_ENTER, function() {
!r.beans.dragService.isDragging() && !r.beans.gridOptionsService.is("suppressRowHoverHighlight") && (e.classList.add("ag-row-hover"), r.rowNode.setHovered(!0));
}), this.addManagedListener(this.rowNode, j.EVENT_MOUSE_LEAVE, function() {
e.classList.remove("ag-row-hover"), r.rowNode.setHovered(!1);
}));
}, t.prototype.roundRowTopToBounds = function(e) {
var r = this.beans.ctrlsService.getGridBodyCtrl(), o = r.getScrollFeature().getVScrollPosition(), i = this.applyPaginationOffset(o.top, !0) - 100, s = this.applyPaginationOffset(o.bottom, !0) + 100;
return Math.min(Math.max(i, e), s);
}, t.prototype.getFrameworkOverrides = function() {
return this.beans.frameworkOverrides;
}, t.prototype.forEachGui = function(e, r) {
var o = e ? [e] : this.allRowGuis;
o.forEach(r);
}, t.prototype.onRowHeightChanged = function(e) {
if (this.rowNode.rowHeight != null) {
var r = this.rowNode.rowHeight, o = this.beans.environment.getDefaultRowHeight(), i = this.beans.gridOptionsService.isGetRowHeightFunction(), s = i ? this.beans.gridOptionsService.getRowHeightForNode(this.rowNode).height : void 0, a = s ? Math.min(o, s) - 2 + "px" : void 0;
this.forEachGui(e, function(l) {
l.element.style.height = r + "px", a && l.element.style.setProperty("--ag-line-height", a);
});
}
}, t.prototype.addEventListener = function(e, r) {
n.prototype.addEventListener.call(this, e, r);
}, t.prototype.removeEventListener = function(e, r) {
n.prototype.removeEventListener.call(this, e, r);
}, t.prototype.destroyFirstPass = function() {
this.active = !1, this.beans.gridOptionsService.isAnimateRows() && this.setupRemoveAnimation(), this.rowNode.setHovered(!1);
var e = this.createRowEvent(v.EVENT_VIRTUAL_ROW_REMOVED);
this.dispatchEvent(e), this.beans.eventService.dispatchEvent(e), n.prototype.destroy.call(this);
}, t.prototype.setupRemoveAnimation = function() {
if (!this.isSticky()) {
var e = this.rowNode.rowTop != null;
if (e) {
var r = this.roundRowTopToBounds(this.rowNode.rowTop);
this.setRowTop(r);
} else
this.allRowGuis.forEach(function(o) {
return o.rowComp.addOrRemoveCssClass("ag-opacity-zero", !0);
});
}
}, t.prototype.destroySecondPass = function() {
this.allRowGuis.length = 0;
var e = function(r) {
return r.list.forEach(function(o) {
return o.destroy();
}), { list: [], map: {} };
};
this.centerCellCtrls = e(this.centerCellCtrls), this.leftCellCtrls = e(this.leftCellCtrls), this.rightCellCtrls = e(this.rightCellCtrls);
}, t.prototype.setFocusedClasses = function(e) {
var r = this;
this.forEachGui(e, function(o) {
o.rowComp.addOrRemoveCssClass("ag-row-focus", r.rowFocused), o.rowComp.addOrRemoveCssClass("ag-row-no-focus", !r.rowFocused);
});
}, t.prototype.onCellFocused = function() {
this.onCellFocusChanged();
}, t.prototype.onCellFocusCleared = function() {
this.onCellFocusChanged();
}, t.prototype.onCellFocusChanged = function() {
var e = this.beans.focusService.isRowFocused(this.rowNode.rowIndex, this.rowNode.rowPinned);
e !== this.rowFocused && (this.rowFocused = e, this.setFocusedClasses()), !e && this.editingRow && this.stopEditing(!1);
}, t.prototype.onPaginationChanged = function() {
var e = this.beans.paginationProxy.getCurrentPage();
this.paginationPage !== e && (this.paginationPage = e, this.onTopChanged()), this.refreshFirstAndLastRowStyles();
}, t.prototype.onTopChanged = function() {
this.setRowTop(this.rowNode.rowTop);
}, t.prototype.onPaginationPixelOffsetChanged = function() {
this.onTopChanged();
}, t.prototype.applyPaginationOffset = function(e, r) {
if (r === void 0 && (r = !1), this.rowNode.isRowPinned())
return e;
var o = this.beans.paginationProxy.getPixelOffset(), i = r ? 1 : -1;
return e + o * i;
}, t.prototype.setRowTop = function(e) {
if (!this.printLayout && O(e)) {
var r = this.applyPaginationOffset(e), o = this.rowNode.isRowPinned() ? r : this.beans.rowContainerHeightService.getRealPixelPosition(r), i = o + "px";
this.setRowTopStyle(i);
}
}, t.prototype.getInitialRowTop = function(e) {
var r = this.beans.gridOptionsService.is("suppressRowTransform");
return r ? this.getInitialRowTopShared(e) : void 0;
}, t.prototype.getInitialTransform = function(e) {
var r = this.beans.gridOptionsService.is("suppressRowTransform");
return r ? void 0 : "translateY(" + this.getInitialRowTopShared(e) + ")";
}, t.prototype.getInitialRowTopShared = function(e) {
if (this.printLayout)
return "";
var r;
if (this.isSticky())
r = this.rowNode.stickyRowTop;
else {
var o = this.slideInAnimation[e] ? this.roundRowTopToBounds(this.rowNode.oldRowTop) : this.rowNode.rowTop, i = this.applyPaginationOffset(o);
r = this.rowNode.isRowPinned() ? i : this.beans.rowContainerHeightService.getRealPixelPosition(i);
}
return r + "px";
}, t.prototype.setRowTopStyle = function(e) {
var r = this.beans.gridOptionsService.is("suppressRowTransform");
this.allRowGuis.forEach(function(o) {
return r ? o.rowComp.setTop(e) : o.rowComp.setTransform("translateY(" + e + ")");
});
}, t.prototype.getRowNode = function() {
return this.rowNode;
}, t.prototype.getCellCtrl = function(e) {
var r = null;
return this.getAllCellCtrls().forEach(function(o) {
o.getColumn() == e && (r = o);
}), r != null || this.getAllCellCtrls().forEach(function(o) {
o.getColSpanningList().indexOf(e) >= 0 && (r = o);
}), r;
}, t.prototype.onRowIndexChanged = function() {
this.rowNode.rowIndex != null && (this.onCellFocusChanged(), this.updateRowIndexes(), this.postProcessCss());
}, t.prototype.updateRowIndexes = function(e) {
var r = this.rowNode.getRowIndexString(), o = this.beans.headerNavigationService.getHeaderRowCount(), i = this.rowNode.rowIndex % 2 === 0, s = o + this.rowNode.rowIndex + 1;
this.forEachGui(e, function(a) {
a.rowComp.setRowIndex(r), a.rowComp.addOrRemoveCssClass("ag-row-even", i), a.rowComp.addOrRemoveCssClass("ag-row-odd", !i), Nn(a.element, s);
});
}, t.prototype.getPinnedLeftRowElement = function() {
return this.leftGui ? this.leftGui.element : void 0;
}, t.prototype.getPinnedRightRowElement = function() {
return this.rightGui ? this.rightGui.element : void 0;
}, t.prototype.getBodyRowElement = function() {
return this.centerGui ? this.centerGui.element : void 0;
}, t.prototype.getFullWidthRowElement = function() {
return this.fullWidthGui ? this.fullWidthGui.element : void 0;
}, t.DOM_DATA_KEY_ROW_CTRL = "renderedRow", t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Nh = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), be = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Gh = function(n, t) {
var e = typeof Symbol == "function" && n[Symbol.iterator];
if (!e)
return n;
var r = e.call(n), o, i = [], s;
try {
for (; (t === void 0 || t-- > 0) && !(o = r.next()).done; )
i.push(o.value);
} catch (a) {
s = { error: a };
} finally {
try {
o && !o.done && (e = r.return) && e.call(r);
} finally {
if (s)
throw s.error;
}
}
return i;
}, Hh = (
/** @class */
function(n) {
Nh(t, n);
function t(e) {
var r = n.call(this) || this;
return r.element = e, r;
}
return t.prototype.postConstruct = function() {
this.addMouseListeners(), this.mockContextMenuForIPad(), this.addKeyboardEvents();
}, t.prototype.addKeyboardEvents = function() {
var e = this, r = ["keydown", "keypress"];
r.forEach(function(o) {
var i = e.processKeyboardEvent.bind(e, o);
e.addManagedListener(e.element, o, i);
});
}, t.prototype.addMouseListeners = function() {
var e = this, r = Dn("touchstart") ? "touchstart" : "mousedown", o = ["dblclick", "contextmenu", "mouseover", "mouseout", "click", r];
o.forEach(function(i) {
var s = e.processMouseEvent.bind(e, i);
e.addManagedListener(e.element, i, s);
});
}, t.prototype.processMouseEvent = function(e, r) {
if (!(!this.mouseEventService.isEventFromThisGrid(r) || Ze(r))) {
var o = this.getRowForEvent(r), i = this.mouseEventService.getRenderedCellForEvent(r);
e === "contextmenu" ? this.handleContextMenuMouseEvent(r, null, o, i) : (i && i.onMouseEvent(e, r), o && o.onMouseEvent(e, r));
}
}, t.prototype.mockContextMenuForIPad = function() {
var e = this;
if (St()) {
var r = new De(this.element), o = function(i) {
var s = e.getRowForEvent(i.touchEvent), a = e.mouseEventService.getRenderedCellForEvent(i.touchEvent);
e.handleContextMenuMouseEvent(null, i.touchEvent, s, a);
};
this.addManagedListener(r, De.EVENT_LONG_TAP, o), this.addDestroyFunc(function() {
return r.destroy();
});
}
}, t.prototype.getRowForEvent = function(e) {
for (var r = e.target; r; ) {
var o = this.gridOptionsService.getDomData(r, Lt.DOM_DATA_KEY_ROW_CTRL);
if (o)
return o;
r = r.parentElement;
}
return null;
}, t.prototype.handleContextMenuMouseEvent = function(e, r, o, i) {
var s = o ? o.getRowNode() : null, a = i ? i.getColumn() : null, l = null;
if (a) {
var u = e || r;
i.dispatchCellContextMenuEvent(u), l = this.valueService.getValue(a, s);
}
var c = this.ctrlsService.getGridBodyCtrl(), p = i ? i.getGui() : c.getGridBodyElement();
this.contextMenuFactory && this.contextMenuFactory.onContextMenu(e, r, s, a, l, p);
}, t.prototype.processKeyboardEvent = function(e, r) {
var o = Do(this.gridOptionsService, r.target, Ft.DOM_DATA_KEY_CELL_CTRL), i = Do(this.gridOptionsService, r.target, Lt.DOM_DATA_KEY_ROW_CTRL);
r.defaultPrevented || (o ? this.processCellKeyboardEvent(o, e, r) : i && i.isFullWidth() && this.processFullWidthRowKeyboardEvent(i, e, r));
}, t.prototype.processCellKeyboardEvent = function(e, r, o) {
var i = e.getRowNode(), s = e.getColumn(), a = e.isEditing(), l = !Mo(this.gridOptionsService, o, i, s, a);
if (l)
switch (r) {
case "keydown":
var u = !a && this.navigationService.handlePageScrollingKey(o);
u || e.onKeyDown(o), this.doGridOperations(o, e.isEditing());
break;
case "keypress":
e.onKeyPress(o);
break;
}
if (r === "keydown") {
var c = e.createEvent(o, v.EVENT_CELL_KEY_DOWN);
this.eventService.dispatchEvent(c);
}
if (r === "keypress") {
var p = e.createEvent(o, v.EVENT_CELL_KEY_PRESS);
this.eventService.dispatchEvent(p);
}
}, t.prototype.processFullWidthRowKeyboardEvent = function(e, r, o) {
var i = e.getRowNode(), s = this.focusService.getFocusedCell(), a = s && s.column, l = !Mo(this.gridOptionsService, o, i, a, !1);
if (l) {
var u = o.key;
if (r === "keydown")
switch (u) {
case _.PAGE_HOME:
case _.PAGE_END:
this.navigationService.handlePageScrollingKey(o);
break;
case _.UP:
case _.DOWN:
e.onKeyboardNavigate(o);
break;
case _.TAB:
e.onTabKeyDown(o);
break;
}
}
if (r === "keydown") {
var c = e.createRowEvent(v.EVENT_CELL_KEY_DOWN, o);
this.eventService.dispatchEvent(c);
}
if (r === "keypress") {
var p = e.createRowEvent(v.EVENT_CELL_KEY_PRESS, o);
this.eventService.dispatchEvent(p);
}
}, t.prototype.doGridOperations = function(e, r) {
if (!(!e.ctrlKey && !e.metaKey) && !r && this.mouseEventService.isEventFromThisGrid(e)) {
var o = dl(e);
if (o === _.A)
return this.onCtrlAndA(e);
if (o === _.C)
return this.onCtrlAndC(e);
if (o === _.X)
return this.onCtrlAndX(e);
if (o === _.V)
return this.onCtrlAndV();
if (o === _.D)
return this.onCtrlAndD(e);
if (o === _.Z)
return this.onCtrlAndZ(e);
if (o === _.Y)
return this.onCtrlAndY();
}
}, t.prototype.onCtrlAndA = function(e) {
var r = this, o = r.pinnedRowModel, i = r.paginationProxy, s = r.rangeService;
if (s && i.isRowsToRender()) {
var a = Gh([
o.isEmpty("top"),
o.isEmpty("bottom")
], 2), l = a[0], u = a[1], c = l ? null : "top", p = void 0, d = void 0;
u ? (p = null, d = this.paginationProxy.getRowCount() - 1) : (p = "bottom", d = o.getPinnedBottomRowData().length - 1);
var f = this.columnModel.getAllDisplayedColumns();
if (Pe(f))
return;
s.setCellRange({
rowStartIndex: 0,
rowStartPinned: c,
rowEndIndex: d,
rowEndPinned: p,
columnStart: f[0],
columnEnd: q(f)
});
}
e.preventDefault();
}, t.prototype.onCtrlAndC = function(e) {
!this.clipboardService || this.gridOptionsService.is("enableCellTextSelection") || (this.clipboardService.copyToClipboard(), e.preventDefault());
}, t.prototype.onCtrlAndX = function(e) {
!this.clipboardService || this.gridOptionsService.is("enableCellTextSelection") || this.gridOptionsService.is("suppressCutToClipboard") || (this.clipboardService.cutToClipboard(), e.preventDefault());
}, t.prototype.onCtrlAndV = function() {
N.isRegistered(F.ClipboardModule) && !this.gridOptionsService.is("suppressClipboardPaste") && this.clipboardService.pasteFromClipboard();
}, t.prototype.onCtrlAndD = function(e) {
N.isRegistered(F.ClipboardModule) && !this.gridOptionsService.is("suppressClipboardPaste") && this.clipboardService.copyRangeDown(), e.preventDefault();
}, t.prototype.onCtrlAndZ = function(e) {
this.gridOptionsService.is("undoRedoCellEditing") && (e.preventDefault(), e.shiftKey ? this.undoRedoService.redo("ui") : this.undoRedoService.undo("ui"));
}, t.prototype.onCtrlAndY = function() {
this.undoRedoService.redo("ui");
}, be([
h("mouseEventService")
], t.prototype, "mouseEventService", void 0), be([
h("valueService")
], t.prototype, "valueService", void 0), be([
Y("contextMenuFactory")
], t.prototype, "contextMenuFactory", void 0), be([
h("ctrlsService")
], t.prototype, "ctrlsService", void 0), be([
h("navigationService")
], t.prototype, "navigationService", void 0), be([
h("focusService")
], t.prototype, "focusService", void 0), be([
h("undoRedoService")
], t.prototype, "undoRedoService", void 0), be([
h("columnModel")
], t.prototype, "columnModel", void 0), be([
h("paginationProxy")
], t.prototype, "paginationProxy", void 0), be([
h("pinnedRowModel")
], t.prototype, "pinnedRowModel", void 0), be([
Y("rangeService")
], t.prototype, "rangeService", void 0), be([
Y("clipboardService")
], t.prototype, "clipboardService", void 0), be([
b
], t.prototype, "postConstruct", null), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Vh = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), eo = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Bh = (
/** @class */
function(n) {
Vh(t, n);
function t(e) {
var r = n.call(this) || this;
return r.centerContainerCtrl = e, r;
}
return t.prototype.postConstruct = function() {
var e = this;
this.ctrlsService.whenReady(function() {
e.gridBodyCtrl = e.ctrlsService.getGridBodyCtrl(), e.listenForResize();
}), this.addManagedListener(this.eventService, v.EVENT_SCROLLBAR_WIDTH_CHANGED, this.onScrollbarWidthChanged.bind(this));
}, t.prototype.listenForResize = function() {
var e = this, r = function() {
return e.onCenterViewportResized();
};
this.centerContainerCtrl.registerViewportResizeListener(r), this.gridBodyCtrl.registerBodyViewportResizeListener(r);
}, t.prototype.onScrollbarWidthChanged = function() {
this.checkViewportAndScrolls();
}, t.prototype.onCenterViewportResized = function() {
if (this.centerContainerCtrl.isViewportVisible()) {
this.checkViewportAndScrolls();
var e = this.centerContainerCtrl.getCenterWidth();
e !== this.centerWidth && (this.centerWidth = e, this.columnModel.refreshFlexedColumns({ viewportWidth: this.centerWidth, updateBodyWidths: !0, fireResizedEvent: !0 }));
} else
this.bodyHeight = 0;
}, t.prototype.checkViewportAndScrolls = function() {
this.updateScrollVisibleService(), this.checkBodyHeight(), this.onHorizontalViewportChanged(), this.gridBodyCtrl.getScrollFeature().checkScrollLeft();
}, t.prototype.getBodyHeight = function() {
return this.bodyHeight;
}, t.prototype.checkBodyHeight = function() {
var e = this.gridBodyCtrl.getBodyViewportElement(), r = Wr(e);
if (this.bodyHeight !== r) {
this.bodyHeight = r;
var o = {
type: v.EVENT_BODY_HEIGHT_CHANGED
};
this.eventService.dispatchEvent(o);
}
}, t.prototype.updateScrollVisibleService = function() {
this.updateScrollVisibleServiceImpl(), setTimeout(this.updateScrollVisibleServiceImpl.bind(this), 500);
}, t.prototype.updateScrollVisibleServiceImpl = function() {
var e = {
horizontalScrollShowing: this.isHorizontalScrollShowing(),
verticalScrollShowing: this.gridBodyCtrl.isVerticalScrollShowing()
};
this.scrollVisibleService.setScrollsVisible(e);
}, t.prototype.isHorizontalScrollShowing = function() {
return this.centerContainerCtrl.isHorizontalScrollShowing();
}, t.prototype.onHorizontalViewportChanged = function() {
var e = this.centerContainerCtrl.getCenterWidth(), r = this.centerContainerCtrl.getViewportScrollLeft();
this.columnModel.setViewportPosition(e, r);
}, eo([
h("ctrlsService")
], t.prototype, "ctrlsService", void 0), eo([
h("columnModel")
], t.prototype, "columnModel", void 0), eo([
h("scrollVisibleService")
], t.prototype, "scrollVisibleService", void 0), eo([
b
], t.prototype, "postConstruct", null), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Wh = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), As = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, jh = (
/** @class */
function(n) {
Wh(t, n);
function t(e) {
var r = n.call(this) || this;
return r.element = e, r;
}
return t.prototype.postConstruct = function() {
this.addManagedListener(this.eventService, v.EVENT_LEFT_PINNED_WIDTH_CHANGED, this.onPinnedLeftWidthChanged.bind(this));
}, t.prototype.onPinnedLeftWidthChanged = function() {
var e = this.pinnedWidthService.getPinnedLeftWidth(), r = e > 0;
k(this.element, r), Ve(this.element, e);
}, t.prototype.getWidth = function() {
return this.pinnedWidthService.getPinnedLeftWidth();
}, As([
h("pinnedWidthService")
], t.prototype, "pinnedWidthService", void 0), As([
b
], t.prototype, "postConstruct", null), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var kh = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Fs = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Uh = (
/** @class */
function(n) {
kh(t, n);
function t(e) {
var r = n.call(this) || this;
return r.element = e, r;
}
return t.prototype.postConstruct = function() {
this.addManagedListener(this.eventService, v.EVENT_RIGHT_PINNED_WIDTH_CHANGED, this.onPinnedRightWidthChanged.bind(this));
}, t.prototype.onPinnedRightWidthChanged = function() {
var e = this.pinnedWidthService.getPinnedRightWidth(), r = e > 0;
k(this.element, r), Ve(this.element, e);
}, t.prototype.getWidth = function() {
return this.pinnedWidthService.getPinnedRightWidth();
}, Fs([
h("pinnedWidthService")
], t.prototype, "pinnedWidthService", void 0), Fs([
b
], t.prototype, "postConstruct", null), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var zh = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Ls = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Bl = (
/** @class */
function(n) {
zh(t, n);
function t(e, r) {
var o = n.call(this) || this;
return o.eContainer = e, o.eWrapper = r, o;
}
return t.prototype.postConstruct = function() {
this.addManagedListener(this.eventService, v.EVENT_ROW_CONTAINER_HEIGHT_CHANGED, this.onHeightChanged.bind(this));
}, t.prototype.onHeightChanged = function() {
var e = this.maxDivHeightScaler.getUiContainerHeight(), r = e != null ? e + "px" : "";
this.eContainer.style.height = r, this.eWrapper && (this.eWrapper.style.height = r);
}, Ls([
h("rowContainerHeightService")
], t.prototype, "maxDivHeightScaler", void 0), Ls([
b
], t.prototype, "postConstruct", null), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Kh = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Di = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, $h = (
/** @class */
function(n) {
Kh(t, n);
function t(e) {
var r = n.call(this) || this;
return r.eContainer = e, r;
}
return t.prototype.postConstruct = function() {
var e = this;
if (!(!this.gridOptionsService.isEnableRangeSelection() || // no range selection if no property
x(this.rangeService))) {
var r = {
eElement: this.eContainer,
onDragStart: this.rangeService.onDragStart.bind(this.rangeService),
onDragStop: this.rangeService.onDragStop.bind(this.rangeService),
onDragging: this.rangeService.onDragging.bind(this.rangeService)
};
this.dragService.addDragSource(r), this.addDestroyFunc(function() {
return e.dragService.removeDragSource(r);
});
}
}, Di([
Y("rangeService")
], t.prototype, "rangeService", void 0), Di([
h("dragService")
], t.prototype, "dragService", void 0), Di([
b
], t.prototype, "postConstruct", null), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Yh = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Ai = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, ss = (
/** @class */
function(n) {
Yh(t, n);
function t(e, r) {
r === void 0 && (r = !1);
var o = n.call(this) || this;
return o.callback = e, o.addSpacer = r, o;
}
return t.prototype.postConstruct = function() {
var e = this.setWidth.bind(this);
this.addManagedPropertyListener("domLayout", e), this.addManagedListener(this.eventService, v.EVENT_DISPLAYED_COLUMNS_CHANGED, e), this.addManagedListener(this.eventService, v.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED, e), this.addManagedListener(this.eventService, v.EVENT_LEFT_PINNED_WIDTH_CHANGED, e), this.addSpacer && (this.addManagedListener(this.eventService, v.EVENT_RIGHT_PINNED_WIDTH_CHANGED, e), this.addManagedListener(this.eventService, v.EVENT_SCROLL_VISIBILITY_CHANGED, e), this.addManagedListener(this.eventService, v.EVENT_SCROLLBAR_WIDTH_CHANGED, e)), this.setWidth();
}, t.prototype.setWidth = function() {
var e = this.columnModel, r = this.gridOptionsService.isDomLayout("print"), o = e.getBodyContainerWidth(), i = e.getDisplayedColumnsLeftWidth(), s = e.getDisplayedColumnsRightWidth(), a;
if (r)
a = o + i + s;
else if (a = o, this.addSpacer) {
var l = this.gridOptionsService.is("enableRtl") ? i : s;
l === 0 && this.scrollVisibleService.isVerticalScrollShowing() && (a += this.gridOptionsService.getScrollbarWidth());
}
this.callback(a);
}, Ai([
h("columnModel")
], t.prototype, "columnModel", void 0), Ai([
h("scrollVisibleService")
], t.prototype, "scrollVisibleService", void 0), Ai([
b
], t.prototype, "postConstruct", null), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var qh = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), bt = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Qh = function(n, t) {
var e = typeof Symbol == "function" && n[Symbol.iterator];
if (!e)
return n;
var r = e.call(n), o, i = [], s;
try {
for (; (t === void 0 || t-- > 0) && !(o = r.next()).done; )
i.push(o.value);
} catch (a) {
s = { error: a };
} finally {
try {
o && !o.done && (e = r.return) && e.call(r);
} finally {
if (s)
throw s.error;
}
}
return i;
}, Xh = function() {
for (var n = [], t = 0; t < arguments.length; t++)
n = n.concat(Qh(arguments[t]));
return n;
}, S;
(function(n) {
n.LEFT = "left", n.RIGHT = "right", n.CENTER = "center", n.FULL_WIDTH = "fullWidth", n.TOP_LEFT = "topLeft", n.TOP_RIGHT = "topRight", n.TOP_CENTER = "topCenter", n.TOP_FULL_WIDTH = "topFullWidth", n.STICKY_TOP_LEFT = "stickyTopLeft", n.STICKY_TOP_RIGHT = "stickyTopRight", n.STICKY_TOP_CENTER = "stickyTopCenter", n.STICKY_TOP_FULL_WIDTH = "stickyTopFullWidth", n.BOTTOM_LEFT = "bottomLeft", n.BOTTOM_RIGHT = "bottomRight", n.BOTTOM_CENTER = "bottomCenter", n.BOTTOM_FULL_WIDTH = "bottomFullWidth";
})(S || (S = {}));
var ve;
(function(n) {
n.LEFT = "left", n.RIGHT = "right", n.CENTER = "center", n.FULL_WIDTH = "fullWidth";
})(ve || (ve = {}));
function Jh(n) {
switch (n) {
case S.CENTER:
case S.TOP_CENTER:
case S.STICKY_TOP_CENTER:
case S.BOTTOM_CENTER:
return ve.CENTER;
case S.LEFT:
case S.TOP_LEFT:
case S.STICKY_TOP_LEFT:
case S.BOTTOM_LEFT:
return ve.LEFT;
case S.RIGHT:
case S.TOP_RIGHT:
case S.STICKY_TOP_RIGHT:
case S.BOTTOM_RIGHT:
return ve.RIGHT;
case S.FULL_WIDTH:
case S.TOP_FULL_WIDTH:
case S.STICKY_TOP_FULL_WIDTH:
case S.BOTTOM_FULL_WIDTH:
return ve.FULL_WIDTH;
default:
throw Error("Invalid Row Container Type");
}
}
var Zh = it([
[S.CENTER, "ag-center-cols-container"],
[S.LEFT, "ag-pinned-left-cols-container"],
[S.RIGHT, "ag-pinned-right-cols-container"],
[S.FULL_WIDTH, "ag-full-width-container"],
[S.TOP_CENTER, "ag-floating-top-container"],
[S.TOP_LEFT, "ag-pinned-left-floating-top"],
[S.TOP_RIGHT, "ag-pinned-right-floating-top"],
[S.TOP_FULL_WIDTH, "ag-floating-top-full-width-container"],
[S.STICKY_TOP_CENTER, "ag-sticky-top-container"],
[S.STICKY_TOP_LEFT, "ag-pinned-left-sticky-top"],
[S.STICKY_TOP_RIGHT, "ag-pinned-right-sticky-top"],
[S.STICKY_TOP_FULL_WIDTH, "ag-sticky-top-full-width-container"],
[S.BOTTOM_CENTER, "ag-floating-bottom-container"],
[S.BOTTOM_LEFT, "ag-pinned-left-floating-bottom"],
[S.BOTTOM_RIGHT, "ag-pinned-right-floating-bottom"],
[S.BOTTOM_FULL_WIDTH, "ag-floating-bottom-full-width-container"]
]), ef = it([
[S.CENTER, "ag-center-cols-viewport"],
[S.TOP_CENTER, "ag-floating-top-viewport"],
[S.STICKY_TOP_CENTER, "ag-sticky-top-viewport"],
[S.BOTTOM_CENTER, "ag-floating-bottom-viewport"]
]), tf = it([
[S.CENTER, "ag-center-cols-clipper"]
]), Wl = (
/** @class */
function(n) {
qh(t, n);
function t(e) {
var r = n.call(this) || this;
return r.visible = !0, r.EMPTY_CTRLS = [], r.name = e, r.isFullWithContainer = r.name === S.TOP_FULL_WIDTH || r.name === S.STICKY_TOP_FULL_WIDTH || r.name === S.BOTTOM_FULL_WIDTH || r.name === S.FULL_WIDTH, r;
}
return t.getRowContainerCssClasses = function(e) {
var r = Zh.get(e), o = ef.get(e), i = tf.get(e);
return { container: r, viewport: o, wrapper: i };
}, t.getPinned = function(e) {
switch (e) {
case S.BOTTOM_LEFT:
case S.TOP_LEFT:
case S.STICKY_TOP_LEFT:
case S.LEFT:
return "left";
case S.BOTTOM_RIGHT:
case S.TOP_RIGHT:
case S.STICKY_TOP_RIGHT:
case S.RIGHT:
return "right";
default:
return null;
}
}, t.prototype.postConstruct = function() {
var e = this;
this.enableRtl = this.gridOptionsService.is("enableRtl"), this.embedFullWidthRows = this.gridOptionsService.is("embedFullWidthRows"), this.forContainers([S.CENTER], function() {
return e.viewportSizeFeature = e.createManagedBean(new Bh(e));
});
}, t.prototype.registerWithCtrlsService = function() {
switch (this.name) {
case S.CENTER:
this.ctrlsService.registerCenterRowContainerCtrl(this);
break;
case S.LEFT:
this.ctrlsService.registerLeftRowContainerCtrl(this);
break;
case S.RIGHT:
this.ctrlsService.registerRightRowContainerCtrl(this);
break;
case S.TOP_CENTER:
this.ctrlsService.registerTopCenterRowContainerCtrl(this);
break;
case S.TOP_LEFT:
this.ctrlsService.registerTopLeftRowContainerCon(this);
break;
case S.TOP_RIGHT:
this.ctrlsService.registerTopRightRowContainerCtrl(this);
break;
case S.STICKY_TOP_CENTER:
this.ctrlsService.registerStickyTopCenterRowContainerCtrl(this);
break;
case S.STICKY_TOP_LEFT:
this.ctrlsService.registerStickyTopLeftRowContainerCon(this);
break;
case S.STICKY_TOP_RIGHT:
this.ctrlsService.registerStickyTopRightRowContainerCtrl(this);
break;
case S.BOTTOM_CENTER:
this.ctrlsService.registerBottomCenterRowContainerCtrl(this);
break;
case S.BOTTOM_LEFT:
this.ctrlsService.registerBottomLeftRowContainerCtrl(this);
break;
case S.BOTTOM_RIGHT:
this.ctrlsService.registerBottomRightRowContainerCtrl(this);
break;
}
}, t.prototype.forContainers = function(e, r) {
e.indexOf(this.name) >= 0 && r();
}, t.prototype.getContainerElement = function() {
return this.eContainer;
}, t.prototype.getViewportSizeFeature = function() {
return this.viewportSizeFeature;
}, t.prototype.setComp = function(e, r, o, i) {
var s = this;
this.comp = e, this.eContainer = r, this.eViewport = o, this.eWrapper = i, this.createManagedBean(new Hh(this.eContainer)), this.addPreventScrollWhileDragging(), this.listenOnDomOrder(), this.stopHScrollOnPinnedRows();
var a = [S.TOP_CENTER, S.TOP_LEFT, S.TOP_RIGHT], l = [S.STICKY_TOP_CENTER, S.STICKY_TOP_LEFT, S.STICKY_TOP_RIGHT], u = [S.BOTTOM_CENTER, S.BOTTOM_LEFT, S.BOTTOM_RIGHT], c = [S.CENTER, S.LEFT, S.RIGHT], p = Xh(a, u, c, l), d = [S.CENTER, S.LEFT, S.RIGHT, S.FULL_WIDTH], f = [S.CENTER, S.TOP_CENTER, S.STICKY_TOP_CENTER, S.BOTTOM_CENTER], g = [S.LEFT, S.BOTTOM_LEFT, S.TOP_LEFT, S.STICKY_TOP_LEFT], y = [S.RIGHT, S.BOTTOM_RIGHT, S.TOP_RIGHT, S.STICKY_TOP_RIGHT];
this.forContainers(g, function() {
s.pinnedWidthFeature = s.createManagedBean(new jh(s.eContainer)), s.addManagedListener(s.eventService, v.EVENT_LEFT_PINNED_WIDTH_CHANGED, function() {
return s.onPinnedWidthChanged();
});
}), this.forContainers(y, function() {
s.pinnedWidthFeature = s.createManagedBean(new Uh(s.eContainer)), s.addManagedListener(s.eventService, v.EVENT_RIGHT_PINNED_WIDTH_CHANGED, function() {
return s.onPinnedWidthChanged();
});
}), this.forContainers(d, function() {
return s.createManagedBean(new Bl(s.eContainer, s.eWrapper));
}), this.forContainers(p, function() {
return s.createManagedBean(new $h(s.eContainer));
}), this.forContainers(f, function() {
return s.createManagedBean(new ss(function(C) {
return s.comp.setContainerWidth(C + "px");
}));
}), Yt() && (this.forContainers([S.CENTER], function() {
var C = s.enableRtl ? v.EVENT_LEFT_PINNED_WIDTH_CHANGED : v.EVENT_RIGHT_PINNED_WIDTH_CHANGED;
s.addManagedListener(s.eventService, C, function() {
return s.refreshPaddingForFakeScrollbar();
});
}), this.refreshPaddingForFakeScrollbar()), this.addListeners(), this.registerWithCtrlsService();
}, t.prototype.refreshPaddingForFakeScrollbar = function() {
var e = this, r = e.enableRtl, o = e.columnModel, i = e.name, s = e.eWrapper, a = e.eContainer, l = r ? S.LEFT : S.RIGHT;
this.forContainers([S.CENTER, l], function() {
var u = o.getContainerWidth(l), c = r ? "marginLeft" : "marginRight";
i === S.CENTER ? s.style[c] = u ? "0px" : "16px" : a.style[c] = u ? "16px" : "0px";
});
}, t.prototype.addListeners = function() {
var e = this;
this.addManagedListener(this.eventService, v.EVENT_SCROLL_VISIBILITY_CHANGED, function() {
return e.onScrollVisibilityChanged();
}), this.addManagedListener(this.eventService, v.EVENT_DISPLAYED_COLUMNS_CHANGED, function() {
return e.onDisplayedColumnsChanged();
}), this.addManagedListener(this.eventService, v.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED, function() {
return e.onDisplayedColumnsWidthChanged();
}), this.addManagedListener(this.eventService, v.EVENT_DISPLAYED_ROWS_CHANGED, function(r) {
return e.onDisplayedRowsChanged(r.afterScroll);
}), this.onScrollVisibilityChanged(), this.onDisplayedColumnsChanged(), this.onDisplayedColumnsWidthChanged(), this.onDisplayedRowsChanged();
}, t.prototype.listenOnDomOrder = function() {
var e = this, r = [S.STICKY_TOP_CENTER, S.STICKY_TOP_LEFT, S.STICKY_TOP_RIGHT, S.STICKY_TOP_FULL_WIDTH], o = r.indexOf(this.name) >= 0;
if (o) {
this.comp.setDomOrder(!0);
return;
}
var i = function() {
var s = e.gridOptionsService.is("ensureDomOrder"), a = e.gridOptionsService.isDomLayout("print");
e.comp.setDomOrder(s || a);
};
this.addManagedPropertyListener("domLayout", i), i();
}, t.prototype.stopHScrollOnPinnedRows = function() {
var e = this;
this.forContainers([S.TOP_CENTER, S.STICKY_TOP_CENTER, S.BOTTOM_CENTER], function() {
var r = function() {
return e.eViewport.scrollLeft = 0;
};
e.addManagedListener(e.eViewport, "scroll", r);
});
}, t.prototype.onDisplayedColumnsChanged = function() {
var e = this;
this.forContainers([S.CENTER], function() {
return e.onHorizontalViewportChanged();
});
}, t.prototype.onDisplayedColumnsWidthChanged = function() {
var e = this;
this.forContainers([S.CENTER], function() {
return e.onHorizontalViewportChanged();
});
}, t.prototype.onScrollVisibilityChanged = function() {
var e = this.gridOptionsService.getScrollbarWidth() || 0;
if (this.name === S.CENTER) {
var r = this.scrollVisibleService.isHorizontalScrollShowing(), o = r ? e : 0, i = o == 0 ? "100%" : "calc(100% + " + o + "px)";
this.comp.setViewportHeight(i);
}
if (this.name === S.FULL_WIDTH) {
var s = Yt() ? 16 : 0, i = "calc(100% - " + s + "px)";
this.eContainer.style.setProperty("width", i);
}
}, t.prototype.addPreventScrollWhileDragging = function() {
var e = this, r = function(o) {
e.dragService.isDragging() && o.cancelable && o.preventDefault();
};
this.eContainer.addEventListener("touchmove", r, { passive: !1 }), this.addDestroyFunc(function() {
return e.eContainer.removeEventListener("touchmove", r);
});
}, t.prototype.onHorizontalViewportChanged = function() {
var e = this.getCenterWidth(), r = this.getCenterViewportScrollLeft();
this.columnModel.setViewportPosition(e, r);
}, t.prototype.getCenterWidth = function() {
return ti(this.eViewport);
}, t.prototype.getCenterViewportScrollLeft = function() {
return Nr(this.eViewport, this.enableRtl);
}, t.prototype.registerViewportResizeListener = function(e) {
var r = this.resizeObserverService.observeResize(this.eViewport, e);
this.addDestroyFunc(function() {
return r();
});
}, t.prototype.isViewportVisible = function() {
return nr(this.eViewport);
}, t.prototype.getViewportScrollLeft = function() {
return Nr(this.eViewport, this.enableRtl);
}, t.prototype.isHorizontalScrollShowing = function() {
var e = this.gridOptionsService.is("alwaysShowHorizontalScroll");
return e || nl(this.eViewport);
}, t.prototype.getViewportElement = function() {
return this.eViewport;
}, t.prototype.setContainerTranslateX = function(e) {
this.eContainer.style.transform = "translateX(" + e + "px)";
}, t.prototype.getHScrollPosition = function() {
var e = {
left: this.eViewport.scrollLeft,
right: this.eViewport.scrollLeft + this.eViewport.offsetWidth
};
return e;
}, t.prototype.setCenterViewportScrollLeft = function(e) {
Lo(this.eViewport, e, this.enableRtl);
}, t.prototype.isContainerVisible = function() {
var e = t.getPinned(this.name);
return !e || !!this.pinnedWidthFeature && this.pinnedWidthFeature.getWidth() > 0;
}, t.prototype.onPinnedWidthChanged = function() {
var e = this.isContainerVisible();
this.visible != e && (this.visible = e, this.onDisplayedRowsChanged()), Yt() && this.refreshPaddingForFakeScrollbar();
}, t.prototype.onDisplayedRowsChanged = function(e) {
var r = this;
if (e === void 0 && (e = !1), this.visible) {
var o = this.gridOptionsService.isDomLayout("print"), i = function(a) {
var l = a.isFullWidth(), u = r.embedFullWidthRows || o, c = r.isFullWithContainer ? !u && l : u || !l;
return c;
}, s = this.getRowCtrls().filter(i);
this.comp.setRowCtrls(s, e);
} else
this.comp.setRowCtrls(this.EMPTY_CTRLS, !1);
}, t.prototype.getRowCtrls = function() {
switch (this.name) {
case S.TOP_CENTER:
case S.TOP_LEFT:
case S.TOP_RIGHT:
case S.TOP_FULL_WIDTH:
return this.rowRenderer.getTopRowCtrls();
case S.STICKY_TOP_CENTER:
case S.STICKY_TOP_LEFT:
case S.STICKY_TOP_RIGHT:
case S.STICKY_TOP_FULL_WIDTH:
return this.rowRenderer.getStickyTopRowCtrls();
case S.BOTTOM_CENTER:
case S.BOTTOM_LEFT:
case S.BOTTOM_RIGHT:
case S.BOTTOM_FULL_WIDTH:
return this.rowRenderer.getBottomRowCtrls();
default:
return this.rowRenderer.getRowCtrls();
}
}, bt([
h("scrollVisibleService")
], t.prototype, "scrollVisibleService", void 0), bt([
h("dragService")
], t.prototype, "dragService", void 0), bt([
h("ctrlsService")
], t.prototype, "ctrlsService", void 0), bt([
h("columnModel")
], t.prototype, "columnModel", void 0), bt([
h("resizeObserverService")
], t.prototype, "resizeObserverService", void 0), bt([
h("rowRenderer")
], t.prototype, "rowRenderer", void 0), bt([
b
], t.prototype, "postConstruct", null), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var rf = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Ue = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, of = (
/* html */
`<div class="ag-root ag-unselectable" role="treegrid">
<ag-header-root ref="gridHeader"></ag-header-root>
<div class="ag-floating-top" ref="eTop" role="presentation">
<ag-row-container ref="topLeftContainer" name="` + S.TOP_LEFT + `"></ag-row-container>
<ag-row-container ref="topCenterContainer" name="` + S.TOP_CENTER + `"></ag-row-container>
<ag-row-container ref="topRightContainer" name="` + S.TOP_RIGHT + `"></ag-row-container>
<ag-row-container ref="topFullWidthContainer" name="` + S.TOP_FULL_WIDTH + `"></ag-row-container>
</div>
<div class="ag-body" ref="eBody" role="presentation">
<div class="ag-body-clipper" ref="eBodyClipper" role="presentation">
<div class="ag-body-viewport" ref="eBodyViewport" role="presentation">
<ag-row-container ref="leftContainer" name="` + S.LEFT + `"></ag-row-container>
<ag-row-container ref="centerContainer" name="` + S.CENTER + `"></ag-row-container>
<ag-row-container ref="rightContainer" name="` + S.RIGHT + `"></ag-row-container>
<ag-row-container ref="fullWidthContainer" name="` + S.FULL_WIDTH + `"></ag-row-container>
</div>
</div>
<ag-fake-vertical-scroll></ag-fake-vertical-scroll>
</div>
<div class="ag-sticky-top" ref="eStickyTop" role="presentation">
<ag-row-container ref="stickyTopLeftContainer" name="` + S.STICKY_TOP_LEFT + `"></ag-row-container>
<ag-row-container ref="stickyTopCenterContainer" name="` + S.STICKY_TOP_CENTER + `"></ag-row-container>
<ag-row-container ref="stickyTopRightContainer" name="` + S.STICKY_TOP_RIGHT + `"></ag-row-container>
<ag-row-container ref="stickyTopFullWidthContainer" name="` + S.STICKY_TOP_FULL_WIDTH + `"></ag-row-container>
</div>
<div class="ag-floating-bottom" ref="eBottom" role="presentation">
<ag-row-container ref="bottomLeftContainer" name="` + S.BOTTOM_LEFT + `"></ag-row-container>
<ag-row-container ref="bottomCenterContainer" name="` + S.BOTTOM_CENTER + `"></ag-row-container>
<ag-row-container ref="bottomRightContainer" name="` + S.BOTTOM_RIGHT + `"></ag-row-container>
<ag-row-container ref="bottomFullWidthContainer" name="` + S.BOTTOM_FULL_WIDTH + `"></ag-row-container>
</div>
<ag-fake-horizontal-scroll></ag-fake-horizontal-scroll>
<ag-overlay-wrapper></ag-overlay-wrapper>
</div>`
), nf = (
/** @class */
function(n) {
rf(t, n);
function t() {
return n.call(this, of) || this;
}
return t.prototype.init = function() {
var e = this, r = function(i, s) {
var a = i + "px";
s.style.minHeight = a, s.style.height = a;
}, o = {
setRowAnimationCssOnBodyViewport: function(i, s) {
return e.setRowAnimationCssOnBodyViewport(i, s);
},
setColumnCount: function(i) {
return za(e.getGui(), i);
},
setRowCount: function(i) {
return Ua(e.getGui(), i);
},
setTopHeight: function(i) {
return r(i, e.eTop);
},
setBottomHeight: function(i) {
return r(i, e.eBottom);
},
setTopDisplay: function(i) {
return e.eTop.style.display = i;
},
setBottomDisplay: function(i) {
return e.eBottom.style.display = i;
},
setStickyTopHeight: function(i) {
return e.eStickyTop.style.height = i;
},
setStickyTopTop: function(i) {
return e.eStickyTop.style.top = i;
},
setStickyTopWidth: function(i) {
return e.eStickyTop.style.width = i;
},
setColumnMovingCss: function(i, s) {
return e.addOrRemoveCssClass(i, s);
},
updateLayoutClasses: function(i, s) {
var a = [
e.eBodyViewport.classList,
e.eBodyClipper.classList,
e.eBody.classList
];
a.forEach(function(l) {
l.toggle(ne.AUTO_HEIGHT, s.autoHeight), l.toggle(ne.NORMAL, s.normal), l.toggle(ne.PRINT, s.print);
}), e.addOrRemoveCssClass(ne.AUTO_HEIGHT, s.autoHeight), e.addOrRemoveCssClass(ne.NORMAL, s.normal), e.addOrRemoveCssClass(ne.PRINT, s.print);
},
setAlwaysVerticalScrollClass: function(i, s) {
return e.eBodyViewport.classList.toggle(Hl, s);
},
registerBodyViewportResizeListener: function(i) {
var s = e.resizeObserverService.observeResize(e.eBodyViewport, i);
e.addDestroyFunc(function() {
return s();
});
},
setPinnedTopBottomOverflowY: function(i) {
return e.eTop.style.overflowY = e.eBottom.style.overflowY = i;
},
setCellSelectableCss: function(i, s) {
[e.eTop, e.eBodyViewport, e.eBottom].forEach(function(a) {
return a.classList.toggle(Gl, s);
});
},
setBodyViewportWidth: function(i) {
return e.eBodyViewport.style.width = i;
}
};
this.ctrl = this.createManagedBean(new Jd()), this.ctrl.setComp(o, this.getGui(), this.eBodyViewport, this.eTop, this.eBottom, this.eStickyTop), (this.rangeService || this.gridOptionsService.get("rowSelection") === "multiple") && ka(this.getGui(), !0);
}, t.prototype.setRowAnimationCssOnBodyViewport = function(e, r) {
var o = this.eBodyViewport.classList;
o.toggle(or.ANIMATION_ON, r), o.toggle(or.ANIMATION_OFF, !r);
}, t.prototype.getFloatingTopBottom = function() {
return [this.eTop, this.eBottom];
}, Ue([
h("resizeObserverService")
], t.prototype, "resizeObserverService", void 0), Ue([
Y("rangeService")
], t.prototype, "rangeService", void 0), Ue([
P("eBodyViewport")
], t.prototype, "eBodyViewport", void 0), Ue([
P("eStickyTop")
], t.prototype, "eStickyTop", void 0), Ue([
P("eTop")
], t.prototype, "eTop", void 0), Ue([
P("eBottom")
], t.prototype, "eBottom", void 0), Ue([
P("gridHeader")
], t.prototype, "headerRootComp", void 0), Ue([
P("eBodyClipper")
], t.prototype, "eBodyClipper", void 0), Ue([
P("eBody")
], t.prototype, "eBody", void 0), Ue([
b
], t.prototype, "init", null), t;
}(W)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var sf = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Fi = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, af = (
/** @class */
function(n) {
sf(t, n);
function t() {
return n !== null && n.apply(this, arguments) || this;
}
return t.prototype.postConstruct = function() {
this.addManagedListener(this.eventService, v.EVENT_DISPLAYED_COLUMNS_CHANGED, this.onDisplayedColumnsChanged.bind(this)), this.addManagedListener(this.eventService, v.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED, this.onDisplayedColumnsWidthChanged.bind(this));
}, t.prototype.onDisplayedColumnsChanged = function() {
this.update();
}, t.prototype.onDisplayedColumnsWidthChanged = function() {
this.update();
}, t.prototype.update = function() {
this.updateImpl(), setTimeout(this.updateImpl.bind(this), 500);
}, t.prototype.updateImpl = function() {
var e = this.ctrlsService.getCenterRowContainerCtrl();
if (e) {
var r = {
horizontalScrollShowing: e.isHorizontalScrollShowing(),
verticalScrollShowing: this.isVerticalScrollShowing()
};
this.setScrollsVisible(r);
}
}, t.prototype.setScrollsVisible = function(e) {
var r = this.horizontalScrollShowing !== e.horizontalScrollShowing || this.verticalScrollShowing !== e.verticalScrollShowing;
if (r) {
this.horizontalScrollShowing = e.horizontalScrollShowing, this.verticalScrollShowing = e.verticalScrollShowing;
var o = {
type: v.EVENT_SCROLL_VISIBILITY_CHANGED
};
this.eventService.dispatchEvent(o);
}
}, t.prototype.isHorizontalScrollShowing = function() {
return this.horizontalScrollShowing;
}, t.prototype.isVerticalScrollShowing = function() {
return this.verticalScrollShowing;
}, Fi([
h("ctrlsService")
], t.prototype, "ctrlsService", void 0), Fi([
b
], t.prototype, "postConstruct", null), t = Fi([
A("scrollVisibleService")
], t), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var lf = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Ms = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, uf = (
/** @class */
function(n) {
lf(t, n);
function t() {
var r = n !== null && n.apply(this, arguments) || this;
return r.gridInstanceId = e.gridInstanceSequence.next(), r;
}
e = t, t.prototype.stampTopLevelGridCompWithGridInstance = function(r) {
r[e.GRID_DOM_KEY] = this.gridInstanceId;
}, t.prototype.getRenderedCellForEvent = function(r) {
return Do(this.gridOptionsService, r.target, Ft.DOM_DATA_KEY_CELL_CTRL);
}, t.prototype.isEventFromThisGrid = function(r) {
var o = this.isElementInThisGrid(r.target);
return o;
}, t.prototype.isElementInThisGrid = function(r) {
for (var o = r; o; ) {
var i = o[e.GRID_DOM_KEY];
if (O(i)) {
var s = i === this.gridInstanceId;
return s;
}
o = o.parentElement;
}
return !1;
}, t.prototype.getCellPositionForEvent = function(r) {
var o = this.getRenderedCellForEvent(r);
return o ? o.getCellPosition() : null;
}, t.prototype.getNormalisedPosition = function(r) {
var o = this.gridOptionsService.isDomLayout("normal"), i = r, s, a;
if (i.clientX != null || i.clientY != null ? (s = i.clientX, a = i.clientY) : (s = i.x, a = i.y), o) {
var l = this.ctrlsService.getGridBodyCtrl(), u = l.getScrollFeature().getVScrollPosition(), c = l.getScrollFeature().getHScrollPosition();
s += c.left, a += u.top;
}
return { x: s, y: a };
};
var e;
return t.gridInstanceSequence = new er(), t.GRID_DOM_KEY = "__ag_grid_instance", Ms([
h("ctrlsService")
], t.prototype, "ctrlsService", void 0), t = e = Ms([
A("mouseEventService")
], t), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var cf = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), zo = function() {
return zo = Object.assign || function(n) {
for (var t, e = 1, r = arguments.length; e < r; e++) {
t = arguments[e];
for (var o in t)
Object.prototype.hasOwnProperty.call(t, o) && (n[o] = t[o]);
}
return n;
}, zo.apply(this, arguments);
}, Se = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, pf = (
/** @class */
function(n) {
cf(t, n);
function t() {
var e = n.call(this) || this;
return e.onPageDown = an(e.onPageDown, 100), e.onPageUp = an(e.onPageUp, 100), e;
}
return t.prototype.postConstruct = function() {
var e = this;
this.ctrlsService.whenReady(function(r) {
e.gridBodyCon = r.gridBodyCtrl;
});
}, t.prototype.handlePageScrollingKey = function(e) {
var r = e.key, o = e.altKey, i = e.ctrlKey || e.metaKey, s = !!this.rangeService && e.shiftKey, a = this.mouseEventService.getCellPositionForEvent(e), l = !1;
switch (r) {
case _.PAGE_HOME:
case _.PAGE_END:
!i && !o && (this.onHomeOrEndKey(r), l = !0);
break;
case _.LEFT:
case _.RIGHT:
case _.UP:
case _.DOWN:
if (!a)
return !1;
i && !o && !s && (this.onCtrlUpDownLeftRight(r, a), l = !0);
break;
case _.PAGE_DOWN:
if (!a)
return !1;
!i && !o && (this.onPageDown(a), l = !0);
break;
case _.PAGE_UP:
if (!a)
return !1;
!i && !o && (this.onPageUp(a), l = !0);
break;
}
return l && e.preventDefault(), l;
}, t.prototype.navigateTo = function(e) {
var r = e.scrollIndex, o = e.scrollType, i = e.scrollColumn, s = e.focusIndex, a = e.focusColumn;
if (O(i) && !i.isPinned() && this.gridBodyCon.getScrollFeature().ensureColumnVisible(i), O(r) && this.gridBodyCon.getScrollFeature().ensureIndexVisible(r, o), e.isAsync || this.gridBodyCon.getScrollFeature().ensureIndexVisible(s), this.focusService.setFocusedCell({ rowIndex: s, column: a, rowPinned: null, forceBrowserFocus: !0 }), this.rangeService) {
var l = { rowIndex: s, rowPinned: null, column: a };
this.rangeService.setRangeToCell(l);
}
}, t.prototype.onPageDown = function(e) {
var r = this.ctrlsService.getGridBodyCtrl(), o = r.getScrollFeature().getVScrollPosition(), i = this.getViewportHeight(), s = this.paginationProxy.getPixelOffset(), a = o.top + i, l = this.paginationProxy.getRowIndexAtPixel(a + s);
this.columnModel.isAutoRowHeightActive() ? this.navigateToNextPageWithAutoHeight(e, l) : this.navigateToNextPage(e, l);
}, t.prototype.onPageUp = function(e) {
var r = this.ctrlsService.getGridBodyCtrl(), o = r.getScrollFeature().getVScrollPosition(), i = this.paginationProxy.getPixelOffset(), s = o.top, a = this.paginationProxy.getRowIndexAtPixel(s + i);
this.columnModel.isAutoRowHeightActive() ? this.navigateToNextPageWithAutoHeight(e, a, !0) : this.navigateToNextPage(e, a, !0);
}, t.prototype.navigateToNextPage = function(e, r, o) {
o === void 0 && (o = !1);
var i = this.getViewportHeight(), s = this.paginationProxy.getPageFirstRow(), a = this.paginationProxy.getPageLastRow(), l = this.paginationProxy.getPixelOffset(), u = this.paginationProxy.getRow(e.rowIndex), c = o ? (u == null ? void 0 : u.rowHeight) - i - l : i - l, p = (u == null ? void 0 : u.rowTop) + c, d = this.paginationProxy.getRowIndexAtPixel(p + l);
if (d === e.rowIndex) {
var f = o ? -1 : 1;
r = d = e.rowIndex + f;
}
var g;
o ? (g = "bottom", d < s && (d = s), r < s && (r = s)) : (g = "top", d > a && (d = a), r > a && (r = a)), this.isRowTallerThanView(d) && (r = d, g = "top"), this.navigateTo({
scrollIndex: r,
scrollType: g,
scrollColumn: null,
focusIndex: d,
focusColumn: e.column
});
}, t.prototype.navigateToNextPageWithAutoHeight = function(e, r, o) {
var i = this;
o === void 0 && (o = !1), this.navigateTo({
scrollIndex: r,
scrollType: o ? "bottom" : "top",
scrollColumn: null,
focusIndex: r,
focusColumn: e.column
}), setTimeout(function() {
var s = i.getNextFocusIndexForAutoHeight(e, o);
i.navigateTo({
scrollIndex: r,
scrollType: o ? "bottom" : "top",
scrollColumn: null,
focusIndex: s,
focusColumn: e.column,
isAsync: !0
});
}, 50);
}, t.prototype.getNextFocusIndexForAutoHeight = function(e, r) {
var o;
r === void 0 && (r = !1);
for (var i = r ? -1 : 1, s = this.getViewportHeight(), a = this.paginationProxy.getPageLastRow(), l = 0, u = e.rowIndex; u >= 0 && u <= a; ) {
var c = this.paginationProxy.getRow(u);
if (c) {
var p = (o = c.rowHeight) !== null && o !== void 0 ? o : 0;
if (l + p > s)
break;
l += p;
}
u += i;
}
return Math.max(0, Math.min(u, a));
}, t.prototype.getViewportHeight = function() {
var e = this.ctrlsService.getGridBodyCtrl(), r = e.getScrollFeature().getVScrollPosition(), o = this.gridOptionsService.getScrollbarWidth(), i = r.bottom - r.top;
return this.ctrlsService.getCenterRowContainerCtrl().isHorizontalScrollShowing() && (i -= o), i;
}, t.prototype.isRowTallerThanView = function(e) {
var r = this.paginationProxy.getRow(e);
if (!r)
return !1;
var o = r.rowHeight;
return typeof o != "number" ? !1 : o > this.getViewportHeight();
}, t.prototype.onCtrlUpDownLeftRight = function(e, r) {
var o = this.cellNavigationService.getNextCellToFocus(e, r, !0), i = o.rowIndex, s = o.column;
this.navigateTo({
scrollIndex: i,
scrollType: null,
scrollColumn: s,
focusIndex: i,
focusColumn: s
});
}, t.prototype.onHomeOrEndKey = function(e) {
var r = e === _.PAGE_HOME, o = this.columnModel.getAllDisplayedColumns(), i = r ? o[0] : q(o), s = r ? this.paginationProxy.getPageFirstRow() : this.paginationProxy.getPageLastRow();
this.navigateTo({
scrollIndex: s,
scrollType: null,
scrollColumn: i,
focusIndex: s,
focusColumn: i
});
}, t.prototype.onTabKeyDown = function(e, r) {
var o = r.shiftKey, i = this.tabToNextCellCommon(e, o, r);
if (i) {
r.preventDefault();
return;
}
if (o) {
var s = e.getRowPosition(), a = s.rowIndex, l = s.rowPinned, u = l ? a === 0 : a === this.paginationProxy.getPageFirstRow();
u && (this.gridOptionsService.getNum("headerHeight") === 0 ? this.focusService.focusNextGridCoreContainer(!0, !0) : (r.preventDefault(), this.focusService.focusLastHeader(r)));
} else
e instanceof Ft && e.focusCell(!0), this.focusService.focusNextGridCoreContainer(o) && r.preventDefault();
}, t.prototype.tabToNextCell = function(e, r) {
var o = this.focusService.getFocusedCell();
if (!o)
return !1;
var i = this.getCellByPosition(o);
return !i && (i = this.rowRenderer.getRowByPosition(o), !i || !i.isFullWidth()) ? !1 : this.tabToNextCellCommon(i, e, r);
}, t.prototype.tabToNextCellCommon = function(e, r, o) {
var i = e.isEditing();
if (!i && e instanceof Ft) {
var s = e, a = s.getRowCtrl();
a && (i = a.isEditing());
}
var l;
return i ? this.gridOptionsService.get("editType") === "fullRow" ? l = this.moveToNextEditingRow(e, r, o) : l = this.moveToNextEditingCell(e, r, o) : l = this.moveToNextCellNotEditing(e, r), l || !!this.focusService.getFocusedHeader();
}, t.prototype.moveToNextEditingCell = function(e, r, o) {
o === void 0 && (o = null);
var i = e.getCellPosition();
e.getGui().focus(), e.stopEditing();
var s = this.findNextCellToFocusOn(i, r, !0);
return s == null ? !1 : (s.startEditing(null, null, !0, o), s.focusCell(!1), !0);
}, t.prototype.moveToNextEditingRow = function(e, r, o) {
o === void 0 && (o = null);
var i = e.getCellPosition(), s = this.findNextCellToFocusOn(i, r, !0);
if (s == null)
return !1;
var a = s.getCellPosition(), l = this.isCellEditable(i), u = this.isCellEditable(a), c = a && i.rowIndex === a.rowIndex && i.rowPinned === a.rowPinned;
if (l && e.setFocusOutOnEditor(), !c) {
var p = e.getRowCtrl();
p.stopEditing();
var d = s.getRowCtrl();
d.startRowEditing(void 0, void 0, void 0, o);
}
return u ? (s.setFocusInOnEditor(), s.focusCell()) : s.focusCell(!0), !0;
}, t.prototype.moveToNextCellNotEditing = function(e, r) {
var o = this.columnModel.getAllDisplayedColumns(), i;
e instanceof Lt ? i = zo(zo({}, e.getRowPosition()), { column: r ? o[0] : q(o) }) : i = e.getCellPosition();
var s = this.findNextCellToFocusOn(i, r, !1);
if (s instanceof Ft)
s.focusCell(!0);
else if (s)
return this.tryToFocusFullWidthRow(s.getRowPosition(), r);
return O(s);
}, t.prototype.findNextCellToFocusOn = function(e, r, o) {
for (var i = e; ; ) {
e !== i && (e = i), r || (i = this.getLastCellOfColSpan(i)), i = this.cellNavigationService.getNextTabbedCell(i, r);
var s = this.gridOptionsService.getCallback("tabToNextCell");
if (O(s)) {
var a = {
backwards: r,
editing: o,
previousCellPosition: e,
nextCellPosition: i || null
}, l = s(a);
O(l) ? (l.floating && (K(function() {
console.warn("AG Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?");
}, "no floating in userCell"), l.rowPinned = l.floating), i = {
rowIndex: l.rowIndex,
column: l.column,
rowPinned: l.rowPinned
}) : i = null;
}
if (!i)
return null;
if (i.rowIndex < 0) {
var u = this.headerNavigationService.getHeaderRowCount();
return this.focusService.focusHeaderPosition({
headerPosition: {
headerRowIndex: u + i.rowIndex,
column: i.column
}
}), null;
}
var c = this.gridOptionsService.get("editType") === "fullRow";
if (o && !c) {
var p = this.isCellEditable(i);
if (!p)
continue;
}
this.ensureCellVisible(i);
var d = this.getCellByPosition(i);
if (!d) {
var f = this.rowRenderer.getRowByPosition(i);
if (!f || !f.isFullWidth() || o)
continue;
return f;
}
if (!d.isSuppressNavigable())
return this.rangeService && this.rangeService.setRangeToCell(i), d;
}
}, t.prototype.isCellEditable = function(e) {
var r = this.lookupRowNodeForCell(e);
return r ? e.column.isCellEditable(r) : !1;
}, t.prototype.getCellByPosition = function(e) {
var r = this.rowRenderer.getRowByPosition(e);
return r ? r.getCellCtrl(e.column) : null;
}, t.prototype.lookupRowNodeForCell = function(e) {
return e.rowPinned === "top" ? this.pinnedRowModel.getPinnedTopRow(e.rowIndex) : e.rowPinned === "bottom" ? this.pinnedRowModel.getPinnedBottomRow(e.rowIndex) : this.paginationProxy.getRow(e.rowIndex);
}, t.prototype.navigateToNextCell = function(e, r, o, i) {
for (var s = o, a = !1; s && (s === o || !this.isValidNavigateCell(s)); )
this.gridOptionsService.is("enableRtl") ? r === _.LEFT && (s = this.getLastCellOfColSpan(s)) : r === _.RIGHT && (s = this.getLastCellOfColSpan(s)), s = this.cellNavigationService.getNextCellToFocus(r, s), a = x(s);
if (a && e && e.key === _.UP && (s = {
rowIndex: -1,
rowPinned: null,
column: o.column
}), i) {
var l = this.gridOptionsService.getCallback("navigateToNextCell");
if (O(l)) {
var u = {
key: r,
previousCellPosition: o,
nextCellPosition: s || null,
event: e
}, c = l(u);
O(c) ? (c.floating && (K(function() {
console.warn("AG Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?");
}, "no floating in userCell"), c.rowPinned = c.floating), s = {
rowPinned: c.rowPinned,
rowIndex: c.rowIndex,
column: c.column
}) : s = null;
}
}
if (s) {
if (s.rowIndex < 0) {
var p = this.headerNavigationService.getHeaderRowCount();
this.focusService.focusHeaderPosition({
headerPosition: { headerRowIndex: p + s.rowIndex, column: o.column },
event: e || void 0
});
return;
}
var d = this.getNormalisedPosition(s);
d ? this.focusPosition(d) : this.tryToFocusFullWidthRow(s);
}
}, t.prototype.getNormalisedPosition = function(e) {
this.ensureCellVisible(e);
var r = this.getCellByPosition(e);
return r ? (e = r.getCellPosition(), this.ensureCellVisible(e), e) : null;
}, t.prototype.tryToFocusFullWidthRow = function(e, r) {
r === void 0 && (r = !1);
var o = this.columnModel.getAllDisplayedColumns(), i = this.rowRenderer.getRowByPosition(e);
if (!i || !i.isFullWidth())
return !1;
var s = this.focusService.getFocusedCell(), a = {
rowIndex: e.rowIndex,
rowPinned: e.rowPinned,
column: e.column || (r ? q(o) : o[0])
};
this.focusPosition(a);
var l = s != null ? this.rowPositionUtils.before(a, s) : !1, u = {
type: v.EVENT_FULL_WIDTH_ROW_FOCUSED,
rowIndex: a.rowIndex,
rowPinned: a.rowPinned,
column: a.column,
isFullWidthCell: !0,
floating: a.rowPinned,
fromBelow: l
};
return this.eventService.dispatchEvent(u), !0;
}, t.prototype.focusPosition = function(e) {
this.focusService.setFocusedCell({
rowIndex: e.rowIndex,
column: e.column,
rowPinned: e.rowPinned,
forceBrowserFocus: !0
}), this.rangeService && this.rangeService.setRangeToCell(e);
}, t.prototype.isValidNavigateCell = function(e) {
var r = this.rowPositionUtils.getRowNode(e);
return !!r;
}, t.prototype.getLastCellOfColSpan = function(e) {
var r = this.getCellByPosition(e);
if (!r)
return e;
var o = r.getColSpanningList();
return o.length === 1 ? e : {
rowIndex: e.rowIndex,
column: q(o),
rowPinned: e.rowPinned
};
}, t.prototype.ensureCellVisible = function(e) {
var r = this.gridOptionsService.is("groupRowsSticky"), o = this.rowModel.getRow(e.rowIndex), i = r && (o == null ? void 0 : o.sticky);
!i && x(e.rowPinned) && this.gridBodyCon.getScrollFeature().ensureIndexVisible(e.rowIndex), e.column.isPinned() || this.gridBodyCon.getScrollFeature().ensureColumnVisible(e.column);
}, Se([
h("mouseEventService")
], t.prototype, "mouseEventService", void 0), Se([
h("paginationProxy")
], t.prototype, "paginationProxy", void 0), Se([
h("focusService")
], t.prototype, "focusService", void 0), Se([
Y("rangeService")
], t.prototype, "rangeService", void 0), Se([
h("columnModel")
], t.prototype, "columnModel", void 0), Se([
h("rowModel")
], t.prototype, "rowModel", void 0), Se([
h("ctrlsService")
], t.prototype, "ctrlsService", void 0), Se([
h("rowRenderer")
], t.prototype, "rowRenderer", void 0), Se([
h("headerNavigationService")
], t.prototype, "headerNavigationService", void 0), Se([
h("rowPositionUtils")
], t.prototype, "rowPositionUtils", void 0), Se([
h("cellNavigationService")
], t.prototype, "cellNavigationService", void 0), Se([
h("pinnedRowModel")
], t.prototype, "pinnedRowModel", void 0), Se([
b
], t.prototype, "postConstruct", null), t = Se([
A("navigationService")
], t), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var df = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), hf = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, ff = (
/** @class */
function(n) {
df(t, n);
function t(e) {
var r = n.call(
this,
/* html */
'<div class="ag-popup-editor" tabindex="-1"/>'
) || this;
return r.params = e, r;
}
return t.prototype.postConstruct = function() {
this.gridOptionsService.setDomData(this.getGui(), t.DOM_KEY_POPUP_EDITOR_WRAPPER, !0), this.addKeyDownListener();
}, t.prototype.addKeyDownListener = function() {
var e = this, r = this.getGui(), o = this.params, i = function(s) {
Mo(e.gridOptionsService, s, o.node, o.column, !0) || o.onKeyDown(s);
};
this.addManagedListener(r, "keydown", i);
}, t.DOM_KEY_POPUP_EDITOR_WRAPPER = "popupEditorWrapper", hf([
b
], t.prototype, "postConstruct", null), t;
}(Ur)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var vf = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), gf = (
/** @class */
function(n) {
vf(t, n);
function t(e, r, o, i, s) {
var a = n.call(this) || this;
a.rendererVersion = 0, a.editorVersion = 0, a.beans = e, a.column = r.getColumn(), a.rowNode = r.getRowNode(), a.rowCtrl = r.getRowCtrl(), a.eRow = i, a.setTemplate(
/* html */
'<div comp-id="' + a.getCompId() + '"/>'
);
var l = a.getGui();
a.forceWrapper = r.isForceWrapper(), a.refreshWrapper(!1);
var u = function(p, d, f) {
var g = f || l;
d != null && d != "" ? g.setAttribute(p, d) : g.removeAttribute(p);
}, c = {
addOrRemoveCssClass: function(p, d) {
return a.addOrRemoveCssClass(p, d);
},
setUserStyles: function(p) {
return $n(l, p);
},
getFocusableElement: function() {
return a.getFocusableElement();
},
setTabIndex: function(p) {
return u("tabindex", p.toString());
},
setRole: function(p) {
return le(l, p);
},
setColId: function(p) {
return u("col-id", p);
},
setTitle: function(p) {
return u("title", p);
},
setIncludeSelection: function(p) {
return a.includeSelection = p;
},
setIncludeRowDrag: function(p) {
return a.includeRowDrag = p;
},
setIncludeDndSource: function(p) {
return a.includeDndSource = p;
},
setRenderDetails: function(p, d, f) {
return a.setRenderDetails(p, d, f);
},
setEditDetails: function(p, d, f) {
return a.setEditDetails(p, d, f);
},
getCellEditor: function() {
return a.cellEditor || null;
},
getCellRenderer: function() {
return a.cellRenderer || null;
},
getParentOfValue: function() {
return a.getParentOfValue();
}
};
return a.cellCtrl = r, r.setComp(c, a.getGui(), a.eCellWrapper, o, s), a;
}
return t.prototype.getParentOfValue = function() {
return this.eCellValue ? this.eCellValue : this.eCellWrapper ? this.eCellWrapper : this.getGui();
}, t.prototype.setRenderDetails = function(e, r, o) {
var i = this.cellEditor && !this.cellEditorPopupWrapper;
if (!i) {
this.firstRender = this.firstRender == null;
var s = this.refreshWrapper(!1);
if (this.refreshEditStyles(!1), e) {
var a = o || s, l = a ? !1 : this.refreshCellRenderer(e);
l || (this.destroyRenderer(), this.createCellRendererInstance(e));
} else
this.destroyRenderer(), this.insertValueWithoutCellRenderer(r);
}
}, t.prototype.setEditDetails = function(e, r, o) {
e ? this.createCellEditorInstance(e, r, o) : this.destroyEditor();
}, t.prototype.removeControls = function() {
this.checkboxSelectionComp = this.beans.context.destroyBean(this.checkboxSelectionComp), this.dndSourceComp = this.beans.context.destroyBean(this.dndSourceComp), this.rowDraggingComp = this.beans.context.destroyBean(this.rowDraggingComp);
}, t.prototype.refreshWrapper = function(e) {
var r = this.includeRowDrag || this.includeDndSource || this.includeSelection, o = r || this.forceWrapper, i = o && this.eCellWrapper == null;
i && (this.eCellWrapper = de(
/* html */
'<div class="ag-cell-wrapper" role="presentation"></div>'
), this.getGui().appendChild(this.eCellWrapper));
var s = !o && this.eCellWrapper != null;
s && (st(this.eCellWrapper), this.eCellWrapper = void 0), this.addOrRemoveCssClass("ag-cell-value", !o);
var a = !e && o, l = a && this.eCellValue == null;
l && (this.eCellValue = de(
/* html */
'<span class="ag-cell-value" role="presentation"></span>'
), this.eCellWrapper.appendChild(this.eCellValue));
var u = !a && this.eCellValue != null;
u && (st(this.eCellValue), this.eCellValue = void 0);
var c = i || s || l || u;
return c && this.removeControls(), e || r && this.addControls(), c;
}, t.prototype.addControls = function() {
this.includeRowDrag && this.rowDraggingComp == null && (this.rowDraggingComp = this.cellCtrl.createRowDragComp(), this.rowDraggingComp && this.eCellWrapper.insertBefore(this.rowDraggingComp.getGui(), this.eCellValue)), this.includeDndSource && this.dndSourceComp == null && (this.dndSourceComp = this.cellCtrl.createDndSource(), this.eCellWrapper.insertBefore(this.dndSourceComp.getGui(), this.eCellValue)), this.includeSelection && this.checkboxSelectionComp == null && (this.checkboxSelectionComp = this.cellCtrl.createSelectionCheckbox(), this.eCellWrapper.insertBefore(this.checkboxSelectionComp.getGui(), this.eCellValue));
}, t.prototype.createCellEditorInstance = function(e, r, o) {
var i = this, s = this.editorVersion, a = e.newAgStackInstance();
if (a) {
var l = e.params;
a.then(function(c) {
return i.afterCellEditorCreated(s, c, l, r, o);
});
var u = x(this.cellEditor);
u && l.cellStartedEdit && this.cellCtrl.focusCell(!0);
}
}, t.prototype.insertValueWithoutCellRenderer = function(e) {
var r = this.getParentOfValue();
Ae(r);
var o = e != null ? tt(e) : null;
o != null && (r.innerHTML = o);
}, t.prototype.destroyEditorAndRenderer = function() {
this.destroyRenderer(), this.destroyEditor();
}, t.prototype.destroyRenderer = function() {
var e = this.beans.context;
this.cellRenderer = e.destroyBean(this.cellRenderer), st(this.cellRendererGui), this.cellRendererGui = null, this.rendererVersion++;
}, t.prototype.destroyEditor = function() {
var e = this.beans.context;
this.hideEditorPopup && this.hideEditorPopup(), this.hideEditorPopup = void 0, this.cellEditor = e.destroyBean(this.cellEditor), this.cellEditorPopupWrapper = e.destroyBean(this.cellEditorPopupWrapper), st(this.cellEditorGui), this.cellEditorGui = null, this.editorVersion++;
}, t.prototype.refreshCellRenderer = function(e) {
if (this.cellRenderer == null || this.cellRenderer.refresh == null || this.cellRendererClass !== e.componentClass)
return !1;
var r = this.cellRenderer.refresh(e.params);
return r === !0 || r === void 0;
}, t.prototype.createCellRendererInstance = function(e) {
var r = this, o = this.beans.gridOptionsService.is("suppressAnimationFrame"), i = !o, s = this.rendererVersion, a = e.componentClass, l = function() {
var u = r.rendererVersion !== s || !r.isAlive();
if (!u) {
var c = e.newAgStackInstance(), p = r.afterCellRendererCreated.bind(r, s, a);
c && c.then(p);
}
};
i && this.firstRender ? this.beans.animationFrameService.createTask(l, this.rowNode.rowIndex, "createTasksP2") : l();
}, t.prototype.getCtrl = function() {
return this.cellCtrl;
}, t.prototype.getRowCtrl = function() {
return this.rowCtrl;
}, t.prototype.getCellRenderer = function() {
return this.cellRenderer;
}, t.prototype.getCellEditor = function() {
return this.cellEditor;
}, t.prototype.afterCellRendererCreated = function(e, r, o) {
var i = !this.isAlive() || e !== this.rendererVersion;
if (i) {
this.beans.context.destroyBean(o);
return;
}
if (this.cellRenderer = o, this.cellRendererClass = r, this.cellRendererGui = this.cellRenderer.getGui(), this.cellRendererGui != null) {
var s = this.getParentOfValue();
Ae(s), s.appendChild(this.cellRendererGui);
}
}, t.prototype.afterCellEditorCreated = function(e, r, o, i, s) {
var a = e !== this.editorVersion;
if (a) {
this.beans.context.destroyBean(r);
return;
}
var l = r.isCancelBeforeStart && r.isCancelBeforeStart();
if (l) {
this.beans.context.destroyBean(r), this.cellCtrl.stopEditing(!0);
return;
}
if (!r.getGui) {
console.warn("AG Grid: cellEditor for column " + this.column.getId() + " is missing getGui() method"), this.beans.context.destroyBean(r);
return;
}
this.cellEditor = r, this.cellEditorGui = r.getGui();
var u = i || r.isPopup !== void 0 && r.isPopup();
u ? this.addPopupCellEditor(o, s) : this.addInCellEditor(), this.refreshEditStyles(!0, u), r.afterGuiAttached && r.afterGuiAttached();
}, t.prototype.refreshEditStyles = function(e, r) {
var o;
this.addOrRemoveCssClass("ag-cell-inline-editing", e && !r), this.addOrRemoveCssClass("ag-cell-popup-editing", e && !!r), this.addOrRemoveCssClass("ag-cell-not-inline-editing", !e || !!r), (o = this.rowCtrl) === null || o === void 0 || o.setInlineEditingCss(e);
}, t.prototype.addInCellEditor = function() {
var e = this.getGui(), r = this.beans.gridOptionsService.getDocument();
if (e.contains(r.activeElement) && e.focus(), this.destroyRenderer(), this.refreshWrapper(!0), this.clearParentOfValue(), this.cellEditorGui) {
var o = this.getParentOfValue();
o.appendChild(this.cellEditorGui);
}
}, t.prototype.addPopupCellEditor = function(e, r) {
var o = this;
this.beans.gridOptionsService.get("editType") === "fullRow" && console.warn("AG Grid: popup cellEditor does not work with fullRowEdit - you cannot use them both - either turn off fullRowEdit, or stop using popup editors.");
var i = this.cellEditor;
this.cellEditorPopupWrapper = this.beans.context.createBean(new ff(e));
var s = this.cellEditorPopupWrapper.getGui();
this.cellEditorGui && s.appendChild(this.cellEditorGui);
var a = this.beans.popupService, l = this.beans.gridOptionsService.is("stopEditingWhenCellsLoseFocus"), u = r ?? (i.getPopupPosition ? i.getPopupPosition() : "over"), c = this.beans.gridOptionsService.is("enableRtl"), p = {
ePopup: s,
column: this.column,
rowNode: this.rowNode,
type: "popupCellEditor",
eventSource: this.getGui(),
position: u,
alignSide: c ? "right" : "left",
keepWithinBounds: !0
}, d = a.positionPopupByComponent.bind(a, p), f = this.beans.localeService.getLocaleTextFunc(), g = a.addPopup({
modal: l,
eChild: s,
closeOnEsc: !0,
closedCallback: function() {
o.cellCtrl.onPopupEditorClosed();
},
anchorToElement: this.getGui(),
positionCallback: d,
ariaLabel: f("ariaLabelCellEditor", "Cell Editor")
});
g && (this.hideEditorPopup = g.hideFunc);
}, t.prototype.detach = function() {
this.eRow.removeChild(this.getGui());
}, t.prototype.destroy = function() {
this.cellCtrl.stopEditing(), this.destroyEditorAndRenderer(), this.removeControls(), n.prototype.destroy.call(this);
}, t.prototype.clearParentOfValue = function() {
var e = this.getGui(), r = this.beans.gridOptionsService.getDocument();
e.contains(r.activeElement) && ei() && e.focus({ preventScroll: !0 }), Ae(this.getParentOfValue());
}, t;
}(W)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var yf = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Cf = (
/** @class */
function(n) {
yf(t, n);
function t(e, r, o) {
var i = n.call(this) || this;
i.cellComps = {}, i.beans = r, i.rowCtrl = e, i.setTemplate(
/* html */
'<div comp-id="' + i.getCompId() + '" style="' + i.getInitialStyle(o) + '"/>'
);
var s = i.getGui(), a = s.style, l = {
setDomOrder: function(u) {
return i.domOrder = u;
},
setCellCtrls: function(u) {
return i.setCellCtrls(u);
},
showFullWidth: function(u) {
return i.showFullWidth(u);
},
getFullWidthCellRenderer: function() {
return i.getFullWidthCellRenderer();
},
addOrRemoveCssClass: function(u, c) {
return i.addOrRemoveCssClass(u, c);
},
setUserStyles: function(u) {
return $n(s, u);
},
setTop: function(u) {
return a.top = u;
},
setTransform: function(u) {
return a.transform = u;
},
setRowIndex: function(u) {
return s.setAttribute("row-index", u);
},
setRole: function(u) {
return le(s, u);
},
setRowId: function(u) {
return s.setAttribute("row-id", u);
},
setRowBusinessKey: function(u) {
return s.setAttribute("row-business-key", u);
},
setTabIndex: function(u) {
return s.setAttribute("tabindex", u.toString());
}
};
return e.setComp(l, i.getGui(), o), i.addDestroyFunc(function() {
e.unsetComp(o);
}), i;
}
return t.prototype.getInitialStyle = function(e) {
var r = this.rowCtrl.getInitialTransform(e), o = this.rowCtrl.getInitialRowTop(e);
return r ? "transform: " + r : "top: " + o;
}, t.prototype.showFullWidth = function(e) {
var r = this, o = function(s) {
if (r.isAlive()) {
var a = s.getGui();
r.getGui().appendChild(a), r.rowCtrl.setupDetailRowAutoHeight(a), r.setFullWidthRowComp(s);
} else
r.beans.context.destroyBean(s);
}, i = e.newAgStackInstance();
i && i.then(o);
}, t.prototype.setCellCtrls = function(e) {
var r = this, o = Object.assign({}, this.cellComps);
e.forEach(function(s) {
var a = s.getInstanceId(), l = r.cellComps[a];
l == null ? r.newCellComp(s) : o[a] = null;
});
var i = et(o).filter(function(s) {
return s != null;
});
this.destroyCells(i), this.ensureDomOrder(e);
}, t.prototype.ensureDomOrder = function(e) {
var r = this;
if (this.domOrder) {
var o = [];
e.forEach(function(i) {
var s = r.cellComps[i.getInstanceId()];
s && o.push(s.getGui());
}), Kn(this.getGui(), o);
}
}, t.prototype.newCellComp = function(e) {
var r = new gf(this.beans, e, this.rowCtrl.isPrintLayout(), this.getGui(), this.rowCtrl.isEditing());
this.cellComps[e.getInstanceId()] = r, this.getGui().appendChild(r.getGui());
}, t.prototype.destroy = function() {
n.prototype.destroy.call(this), this.destroyAllCells();
}, t.prototype.destroyAllCells = function() {
var e = et(this.cellComps).filter(function(r) {
return r != null;
});
this.destroyCells(e);
}, t.prototype.setFullWidthRowComp = function(e) {
var r = this;
this.fullWidthCellRenderer && console.error("AG Grid - should not be setting fullWidthRowComponent twice"), this.fullWidthCellRenderer = e, this.addDestroyFunc(function() {
r.fullWidthCellRenderer = r.beans.context.destroyBean(r.fullWidthCellRenderer);
});
}, t.prototype.getFullWidthCellRenderer = function() {
return this.fullWidthCellRenderer;
}, t.prototype.destroyCells = function(e) {
var r = this;
e.forEach(function(o) {
if (o) {
var i = o.getCtrl().getInstanceId();
r.cellComps[i] === o && (o.detach(), o.destroy(), r.cellComps[i] = null);
}
});
}, t;
}(W)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var mf = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), En = function() {
return En = Object.assign || function(n) {
for (var t, e = 1, r = arguments.length; e < r; e++) {
t = arguments[e];
for (var o in t)
Object.prototype.hasOwnProperty.call(t, o) && (n[o] = t[o]);
}
return n;
}, En.apply(this, arguments);
}, Ht = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
};
function wf() {
var n = W.elementGettingCreated.getAttribute("name"), t = Wl.getRowContainerCssClasses(n), e, r = n === S.CENTER, o = n === S.TOP_CENTER || n === S.STICKY_TOP_CENTER || n === S.BOTTOM_CENTER;
return r ? e = /* html */
'<div class="' + t.wrapper + `" ref="eWrapper" role="presentation">
<div class="` + t.viewport + `" ref="eViewport" role="presentation">
<div class="` + t.container + `" ref="eContainer"></div>
</div>
</div>` : o ? e = /* html */
'<div class="' + t.viewport + `" ref="eViewport" role="presentation">
<div class="` + t.container + `" ref="eContainer"></div>
</div>` : e = /* html */
'<div class="' + t.container + '" ref="eContainer"></div>', e;
}
var Sf = (
/** @class */
function(n) {
mf(t, n);
function t() {
var e = n.call(this, wf()) || this;
return e.rowComps = {}, e.name = W.elementGettingCreated.getAttribute("name"), e.type = Jh(e.name), e;
}
return t.prototype.postConstruct = function() {
var e = this, r = {
setViewportHeight: function(i) {
return e.eViewport.style.height = i;
},
setRowCtrls: function(i) {
return e.setRowCtrls(i);
},
setDomOrder: function(i) {
e.domOrder = i;
},
setContainerWidth: function(i) {
return e.eContainer.style.width = i;
}
}, o = this.createManagedBean(new Wl(this.name));
o.setComp(r, this.eContainer, this.eViewport, this.eWrapper);
}, t.prototype.preDestroy = function() {
this.setRowCtrls([]);
}, t.prototype.setRowCtrls = function(e) {
var r = this, o = En({}, this.rowComps);
this.rowComps = {}, this.lastPlacedElement = null;
var i = function(s) {
var a = s.getInstanceId(), l = o[a];
if (l)
r.rowComps[a] = l, delete o[a], r.ensureDomOrder(l.getGui());
else {
var u = new Cf(s, r.beans, r.type);
r.rowComps[a] = u, r.appendRow(u.getGui());
}
};
e.forEach(i), et(o).forEach(function(s) {
r.eContainer.removeChild(s.getGui()), s.destroy();
}), le(this.eContainer, e.length ? "rowgroup" : "presentation");
}, t.prototype.appendRow = function(e) {
this.domOrder ? il(this.eContainer, e, this.lastPlacedElement) : this.eContainer.appendChild(e), this.lastPlacedElement = e;
}, t.prototype.ensureDomOrder = function(e) {
this.domOrder && (zn(this.eContainer, e, this.lastPlacedElement), this.lastPlacedElement = e);
}, Ht([
h("beans")
], t.prototype, "beans", void 0), Ht([
P("eViewport")
], t.prototype, "eViewport", void 0), Ht([
P("eContainer")
], t.prototype, "eContainer", void 0), Ht([
P("eWrapper")
], t.prototype, "eWrapper", void 0), Ht([
b
], t.prototype, "postConstruct", null), Ht([
fe
], t.prototype, "preDestroy", null), t;
}(W)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Is = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Ef = (
/** @class */
function() {
function n(t) {
this.columnsToAggregate = [], this.columnsToGroup = [], this.columnsToPivot = [], this.pinned = t;
}
return n.prototype.onDragEnter = function(t) {
var e = this;
if (this.clearColumnsList(), !this.gridOptionsService.is("functionsReadOnly")) {
var r = t.dragItem.columns;
r && r.forEach(function(o) {
o.isPrimary() && (o.isAnyFunctionActive() || (o.isAllowValue() ? e.columnsToAggregate.push(o) : o.isAllowRowGroup() ? e.columnsToGroup.push(o) : o.isAllowPivot() && e.columnsToPivot.push(o)));
});
}
}, n.prototype.getIconName = function() {
var t = this.columnsToAggregate.length + this.columnsToGroup.length + this.columnsToPivot.length;
return t > 0 ? this.pinned ? pe.ICON_PINNED : pe.ICON_MOVE : null;
}, n.prototype.onDragLeave = function(t) {
this.clearColumnsList();
}, n.prototype.clearColumnsList = function() {
this.columnsToAggregate.length = 0, this.columnsToGroup.length = 0, this.columnsToPivot.length = 0;
}, n.prototype.onDragging = function(t) {
}, n.prototype.onDragStop = function(t) {
this.columnsToAggregate.length > 0 && this.columnModel.addValueColumns(this.columnsToAggregate, "toolPanelDragAndDrop"), this.columnsToGroup.length > 0 && this.columnModel.addRowGroupColumns(this.columnsToGroup, "toolPanelDragAndDrop"), this.columnsToPivot.length > 0 && this.columnModel.addPivotColumns(this.columnsToPivot, "toolPanelDragAndDrop");
}, Is([
h("columnModel")
], n.prototype, "columnModel", void 0), Is([
h("gridOptionsService")
], n.prototype, "gridOptionsService", void 0), n;
}()
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var dr = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, _f = function(n, t) {
var e = typeof Symbol == "function" && n[Symbol.iterator];
if (!e)
return n;
var r = e.call(n), o, i = [], s;
try {
for (; (t === void 0 || t-- > 0) && !(o = r.next()).done; )
i.push(o.value);
} catch (a) {
s = { error: a };
} finally {
try {
o && !o.done && (e = r.return) && e.call(r);
} finally {
if (s)
throw s.error;
}
}
return i;
}, Rf = (
/** @class */
function() {
function n(t, e) {
this.needToMoveLeft = !1, this.needToMoveRight = !1, this.lastMovedInfo = null, this.pinned = t, this.eContainer = e, this.centerContainer = !O(t);
}
return n.prototype.init = function() {
var t = this;
this.ctrlsService.whenReady(function() {
t.gridBodyCon = t.ctrlsService.getGridBodyCtrl();
});
}, n.prototype.getIconName = function() {
return this.pinned ? pe.ICON_PINNED : pe.ICON_MOVE;
}, n.prototype.onDragEnter = function(t) {
var e = t.dragItem.columns, r = t.dragSource.type === me.ToolPanel;
if (r)
this.setColumnsVisible(e, !0, "uiColumnDragged");
else {
var o = t.dragItem.visibleState, i = (e || []).filter(function(s) {
return o[s.getId()];
});
this.setColumnsVisible(i, !0, "uiColumnDragged");
}
this.setColumnsPinned(e, this.pinned, "uiColumnDragged"), this.onDragging(t, !0, !0);
}, n.prototype.onDragLeave = function() {
this.ensureIntervalCleared(), this.lastMovedInfo = null;
}, n.prototype.setColumnsVisible = function(t, e, r) {
if (r === void 0 && (r = "api"), t) {
var o = t.filter(function(i) {
return !i.getColDef().lockVisible;
});
this.columnModel.setColumnsVisible(o, e, r);
}
}, n.prototype.setColumnsPinned = function(t, e, r) {
if (r === void 0 && (r = "api"), t) {
var o = t.filter(function(i) {
return !i.getColDef().lockPinned;
});
this.columnModel.setColumnsPinned(o, e, r);
}
}, n.prototype.onDragStop = function() {
this.onDragging(this.lastDraggingEvent, !1, !0, !0), this.ensureIntervalCleared(), this.lastMovedInfo = null;
}, n.prototype.normaliseX = function(t) {
if (this.gridOptionsService.is("enableRtl")) {
var e = this.eContainer.clientWidth;
t = e - t;
}
return this.centerContainer && (t += this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft()), t;
}, n.prototype.checkCenterForScrolling = function(t) {
if (this.centerContainer) {
var e = this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft(), r = e + this.ctrlsService.getCenterRowContainerCtrl().getCenterWidth();
this.gridOptionsService.is("enableRtl") ? (this.needToMoveRight = t < e + 50, this.needToMoveLeft = t > r - 50) : (this.needToMoveLeft = t < e + 50, this.needToMoveRight = t > r - 50), this.needToMoveLeft || this.needToMoveRight ? this.ensureIntervalStarted() : this.ensureIntervalCleared();
}
}, n.prototype.onDragging = function(t, e, r, o) {
var i = this, s;
if (t === void 0 && (t = this.lastDraggingEvent), e === void 0 && (e = !1), r === void 0 && (r = !1), o === void 0 && (o = !1), o) {
if (this.lastMovedInfo) {
var a = this.lastMovedInfo, l = a.columns, u = a.toIndex;
this.moveColumns(l, u, "uiColumnMoved", !0);
}
return;
}
if (this.lastDraggingEvent = t, !x(t.hDirection)) {
var c = this.normaliseX(t.x);
e || this.checkCenterForScrolling(c);
var p = this.normaliseDirection(t.hDirection), d = t.dragSource.type, f = ((s = t.dragSource.getDragItem().columns) === null || s === void 0 ? void 0 : s.filter(function(g) {
return g.getColDef().lockPinned ? g.getPinned() == i.pinned : !0;
})) || [];
this.attemptMoveColumns({ dragSourceType: d, allMovingColumns: f, hDirection: p, mouseX: c, fromEnter: e, fakeEvent: r });
}
}, n.prototype.normaliseDirection = function(t) {
if (this.gridOptionsService.is("enableRtl"))
switch (t) {
case Qe.Left:
return Qe.Right;
case Qe.Right:
return Qe.Left;
default:
console.error("AG Grid: Unknown direction " + t);
}
else
return t;
}, n.prototype.attemptMoveColumns = function(t) {
var e = t.dragSourceType, r = t.hDirection, o = t.mouseX, i = t.fromEnter, s = t.fakeEvent, a = r === Qe.Left, l = r === Qe.Right, u = t.allMovingColumns;
if (e === me.HeaderCell) {
var c = [];
u.forEach(function(L) {
for (var H = null, B = L.getParent(); B != null && B.getDisplayedLeafColumns().length === 1; )
H = B, B = B.getParent();
H != null ? H.getLeafColumns().forEach(function(Q) {
c.includes(Q) || c.push(Q);
}) : c.includes(L) || c.push(L);
}), u = c;
}
var p = u.slice();
this.columnModel.sortColumnsLikeGridColumns(p);
var d = this.calculateValidMoves(p, l, o), f = this.calculateOldIndex(p);
if (d.length !== 0) {
var g = d[0], y = f !== null && !i;
if (e == me.HeaderCell && (y = f !== null), !(y && !s && (a && g >= f || l && g <= f))) {
for (var C = this.columnModel.getAllDisplayedColumns(), m = [], w = null, E = 0; E < d.length; E++) {
var R = d[E], D = this.columnModel.getProposedColumnOrder(p, R);
if (this.columnModel.doesOrderPassRules(D)) {
var M = D.filter(function(L) {
return C.includes(L);
});
if (w === null)
w = M;
else if (!G.areEqual(M, w))
break;
var I = this.groupFragCount(D);
m.push({ move: R, fragCount: I });
}
}
m.length !== 0 && (m.sort(function(L, H) {
return L.fragCount - H.fragCount;
}), this.moveColumns(u, m[0].move, "uiColumnMoved", !1));
}
}
}, n.prototype.calculateOldIndex = function(t) {
var e = this.columnModel.getAllGridColumns(), r = Ra(t.map(function(l) {
return e.indexOf(l);
})), o = r[0], i = q(r), s = i - o, a = s !== r.length - 1;
return a ? null : o;
}, n.prototype.moveColumns = function(t, e, r, o) {
this.columnModel.moveColumns(t, e, r, o), this.lastMovedInfo = o ? null : { columns: t, toIndex: e };
}, n.prototype.groupFragCount = function(t) {
function e(s) {
for (var a = [], l = s.getOriginalParent(); l != null; )
a.push(l), l = l.getOriginalParent();
return a;
}
for (var r = 0, o = function(s) {
var a, l = e(t[s]), u = e(t[s + 1]);
a = _f(l.length > u.length ? [l, u] : [u, l], 2), l = a[0], u = a[1], l.forEach(function(c) {
u.indexOf(c) === -1 && r++;
});
}, i = 0; i < t.length - 1; i++)
o(i);
return r;
}, n.prototype.calculateValidMoves = function(t, e, r) {
var o = this.gridOptionsService.is("suppressMovableColumns") || t.some(function(I) {
return I.getColDef().suppressMovable;
});
if (o)
return [];
var i = this.columnModel.getDisplayedColumns(this.pinned), s = this.columnModel.getAllGridColumns(), a = i.filter(function(I) {
return He(t, I);
}), l = i.filter(function(I) {
return !He(t, I);
}), u = s.filter(function(I) {
return !He(t, I);
}), c = 0, p = r;
if (e) {
var d = 0;
a.forEach(function(I) {
return d += I.getActualWidth();
}), p -= d;
}
if (p > 0) {
for (var f = 0; f < l.length; f++) {
var g = l[f];
if (p -= g.getActualWidth(), p < 0)
break;
c++;
}
e && c++;
}
var y;
if (c > 0) {
var C = l[c - 1];
y = u.indexOf(C) + 1;
} else
y = u.indexOf(l[0]), y === -1 && (y = 0);
var m = [y], w = function(I, L) {
return I - L;
};
if (e) {
for (var E = y + 1, R = s.length - 1; E <= R; )
m.push(E), E++;
m.sort(w);
} else {
for (var E = y, R = s.length - 1, D = s[E]; E <= R && this.isColumnHidden(i, D); )
E++, m.push(E), D = s[E];
E = y - 1;
for (var M = 0; E >= M; )
m.push(E), E--;
m.sort(w).reverse();
}
return m;
}, n.prototype.isColumnHidden = function(t, e) {
return t.indexOf(e) < 0;
}, n.prototype.ensureIntervalStarted = function() {
this.movingIntervalId || (this.intervalCount = 0, this.failedMoveAttempts = 0, this.movingIntervalId = window.setInterval(this.moveInterval.bind(this), 100), this.needToMoveLeft ? this.dragAndDropService.setGhostIcon(pe.ICON_LEFT, !0) : this.dragAndDropService.setGhostIcon(pe.ICON_RIGHT, !0));
}, n.prototype.ensureIntervalCleared = function() {
this.movingIntervalId && (window.clearInterval(this.movingIntervalId), this.movingIntervalId = null, this.dragAndDropService.setGhostIcon(pe.ICON_MOVE));
}, n.prototype.moveInterval = function() {
var t;
this.intervalCount++, t = 10 + this.intervalCount * 5, t > 100 && (t = 100);
var e = null, r = this.gridBodyCon.getScrollFeature();
if (this.needToMoveLeft ? e = r.scrollHorizontally(-t) : this.needToMoveRight && (e = r.scrollHorizontally(t)), e !== 0)
this.onDragging(this.lastDraggingEvent), this.failedMoveAttempts = 0;
else {
this.failedMoveAttempts++;
var o = this.lastDraggingEvent.dragItem.columns, i = o.filter(function(a) {
return !a.getColDef().lockPinned;
});
if (i.length > 0 && (this.dragAndDropService.setGhostIcon(pe.ICON_PINNED), this.failedMoveAttempts > 7)) {
var s = this.needToMoveLeft ? "left" : "right";
this.setColumnsPinned(i, s, "uiColumnDragged"), this.dragAndDropService.nudge();
}
}
}, dr([
h("columnModel")
], n.prototype, "columnModel", void 0), dr([
h("dragAndDropService")
], n.prototype, "dragAndDropService", void 0), dr([
h("gridOptionsService")
], n.prototype, "gridOptionsService", void 0), dr([
h("ctrlsService")
], n.prototype, "ctrlsService", void 0), dr([
b
], n.prototype, "init", null), n;
}()
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Of = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), hr = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Tf = (
/** @class */
function(n) {
Of(t, n);
function t(e, r) {
var o = n.call(this) || this;
return o.pinned = e, o.eContainer = r, o;
}
return t.prototype.postConstruct = function() {
var e = this;
this.ctrlsService.whenReady(function(r) {
switch (e.pinned) {
case "left":
e.eSecondaryContainers = [
[r.gridBodyCtrl.getBodyViewportElement(), r.leftRowContainerCtrl.getContainerElement()],
[r.bottomLeftRowContainerCtrl.getContainerElement()],
[r.topLeftRowContainerCtrl.getContainerElement()]
];
break;
case "right":
e.eSecondaryContainers = [
[r.gridBodyCtrl.getBodyViewportElement(), r.rightRowContainerCtrl.getContainerElement()],
[r.bottomRightRowContainerCtrl.getContainerElement()],
[r.topRightRowContainerCtrl.getContainerElement()]
];
break;
default:
e.eSecondaryContainers = [
[r.gridBodyCtrl.getBodyViewportElement(), r.centerRowContainerCtrl.getViewportElement()],
[r.bottomCenterRowContainerCtrl.getViewportElement()],
[r.topCenterRowContainerCtrl.getViewportElement()]
];
break;
}
});
}, t.prototype.isInterestedIn = function(e) {
return e === me.HeaderCell || e === me.ToolPanel && this.gridOptionsService.is("allowDragFromColumnsToolPanel");
}, t.prototype.getSecondaryContainers = function() {
return this.eSecondaryContainers;
}, t.prototype.getContainer = function() {
return this.eContainer;
}, t.prototype.init = function() {
this.moveColumnFeature = this.createManagedBean(new Rf(this.pinned, this.eContainer)), this.bodyDropPivotTarget = this.createManagedBean(new Ef(this.pinned)), this.dragAndDropService.addDropTarget(this);
}, t.prototype.getIconName = function() {
return this.currentDropListener.getIconName();
}, t.prototype.isDropColumnInPivotMode = function(e) {
return this.columnModel.isPivotMode() && e.dragSource.type === me.ToolPanel;
}, t.prototype.onDragEnter = function(e) {
this.currentDropListener = this.isDropColumnInPivotMode(e) ? this.bodyDropPivotTarget : this.moveColumnFeature, this.currentDropListener.onDragEnter(e);
}, t.prototype.onDragLeave = function(e) {
this.currentDropListener.onDragLeave(e);
}, t.prototype.onDragging = function(e) {
this.currentDropListener.onDragging(e);
}, t.prototype.onDragStop = function(e) {
this.currentDropListener.onDragStop(e);
}, hr([
h("dragAndDropService")
], t.prototype, "dragAndDropService", void 0), hr([
h("columnModel")
], t.prototype, "columnModel", void 0), hr([
h("ctrlsService")
], t.prototype, "ctrlsService", void 0), hr([
b
], t.prototype, "postConstruct", null), hr([
b
], t.prototype, "init", null), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var bf = function(n, t) {
var e = typeof Symbol == "function" && n[Symbol.iterator];
if (!e)
return n;
var r = e.call(n), o, i = [], s;
try {
for (; (t === void 0 || t-- > 0) && !(o = r.next()).done; )
i.push(o.value);
} catch (a) {
s = { error: a };
} finally {
try {
o && !o.done && (e = r.return) && e.call(r);
} finally {
if (s)
throw s.error;
}
}
return i;
}, Pf = function() {
for (var n = [], t = 0; t < arguments.length; t++)
n = n.concat(bf(arguments[t]));
return n;
}, jl = (
/** @class */
function() {
function n() {
}
return n.getHeaderClassesFromColDef = function(t, e, r, o) {
return x(t) ? [] : this.getColumnClassesFromCollDef(t.headerClass, t, e, r, o);
}, n.getToolPanelClassesFromColDef = function(t, e, r, o) {
return x(t) ? [] : this.getColumnClassesFromCollDef(t.toolPanelClass, t, e, r, o);
}, n.getClassParams = function(t, e, r, o) {
return {
// bad naming, as colDef here can be a group or a column,
// however most people won't appreciate the difference,
// so keeping it as colDef to avoid confusion.
colDef: t,
column: r,
columnGroup: o,
api: e.api,
columnApi: e.columnApi,
context: e.context
};
}, n.getColumnClassesFromCollDef = function(t, e, r, o, i) {
if (x(t))
return [];
var s;
if (typeof t == "function") {
var a = this.getClassParams(e, r, o, i);
s = t(a);
} else
s = t;
return typeof s == "string" ? [s] : Array.isArray(s) ? Pf(s) : [];
}, n;
}()
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Df = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), to = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Af = (
/** @class */
function(n) {
Df(t, n);
function t(e) {
var r = n.call(this, t.TEMPLATE, e) || this;
return r.headerCompVersion = 0, r.column = e.getColumnGroupChild(), r.pinned = e.getPinned(), r;
}
return t.prototype.postConstruct = function() {
var e = this, r = this.getGui(), o = function(a, l, u) {
var c = u || r;
l != null && l != "" ? c.setAttribute(a, l) : c.removeAttribute(a);
}, i = {
setWidth: function(a) {
return r.style.width = a;
},
addOrRemoveCssClass: function(a, l) {
return e.addOrRemoveCssClass(a, l);
},
setColId: function(a) {
return o("col-id", a);
},
setTitle: function(a) {
return o("title", a);
},
setAriaDescription: function(a) {
return Va(r, a);
},
setAriaSort: function(a) {
return a ? $a(r, a) : Ya(r);
},
setUserCompDetails: function(a) {
return e.setUserCompDetails(a);
},
getUserCompInstance: function() {
return e.headerComp;
}
};
this.ctrl.setComp(i, this.getGui(), this.eResize, this.eHeaderCompWrapper);
var s = this.ctrl.getSelectAllGui();
this.eResize.insertAdjacentElement("afterend", s);
}, t.prototype.destroyHeaderComp = function() {
this.headerComp && (this.eHeaderCompWrapper.removeChild(this.headerCompGui), this.headerComp = this.destroyBean(this.headerComp), this.headerCompGui = void 0);
}, t.prototype.setUserCompDetails = function(e) {
var r = this;
this.headerCompVersion++;
var o = this.headerCompVersion;
e.newAgStackInstance().then(function(i) {
return r.afterCompCreated(o, i);
});
}, t.prototype.afterCompCreated = function(e, r) {
if (e != this.headerCompVersion || !this.isAlive()) {
this.destroyBean(r);
return;
}
this.destroyHeaderComp(), this.headerComp = r, this.headerCompGui = r.getGui(), this.eHeaderCompWrapper.appendChild(this.headerCompGui), this.ctrl.setDragSource(this.getGui());
}, t.TEMPLATE = `<div class="ag-header-cell" role="columnheader" tabindex="-1">
<div ref="eResize" class="ag-header-cell-resize" role="presentation"></div>
<div ref="eHeaderCompWrapper" class="ag-header-cell-comp-wrapper" role="presentation"></div>
</div>`, to([
P("eResize")
], t.prototype, "eResize", void 0), to([
P("eHeaderCompWrapper")
], t.prototype, "eHeaderCompWrapper", void 0), to([
b
], t.prototype, "postConstruct", null), to([
fe
], t.prototype, "destroyHeaderComp", null), t;
}(os)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Ff = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Li = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Lf = (
/** @class */
function(n) {
Ff(t, n);
function t(e) {
return n.call(this, t.TEMPLATE, e) || this;
}
return t.prototype.postConstruct = function() {
var e = this, r = this.getGui(), o = function(s, a) {
return a != null ? r.setAttribute(s, a) : r.removeAttribute(s);
}, i = {
addOrRemoveCssClass: function(s, a) {
return e.addOrRemoveCssClass(s, a);
},
setResizableDisplayed: function(s) {
return k(e.eResize, s);
},
setWidth: function(s) {
return r.style.width = s;
},
setColId: function(s) {
return r.setAttribute("col-id", s);
},
setAriaExpanded: function(s) {
return o("aria-expanded", s);
},
setTitle: function(s) {
return o("title", s);
},
setUserCompDetails: function(s) {
return e.setUserCompDetails(s);
}
};
this.ctrl.setComp(i, r, this.eResize);
}, t.prototype.setUserCompDetails = function(e) {
var r = this;
e.newAgStackInstance().then(function(o) {
return r.afterHeaderCompCreated(o);
});
}, t.prototype.afterHeaderCompCreated = function(e) {
var r = this, o = function() {
return r.destroyBean(e);
};
if (!this.isAlive()) {
o();
return;
}
this.getGui().appendChild(e.getGui()), this.addDestroyFunc(o), this.ctrl.setDragSource(e.getGui());
}, t.TEMPLATE = `<div class="ag-header-group-cell" role="columnheader" tabindex="-1">
<div ref="eResize" class="ag-header-cell-resize" role="presentation"></div>
</div>`, Li([
h("userComponentFactory")
], t.prototype, "userComponentFactory", void 0), Li([
P("eResize")
], t.prototype, "eResize", void 0), Li([
b
], t.prototype, "postConstruct", null), t;
}(os)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Mf = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), xs = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, he;
(function(n) {
n.COLUMN_GROUP = "group", n.COLUMN = "column", n.FLOATING_FILTER = "filter";
})(he || (he = {}));
var If = (
/** @class */
function(n) {
Mf(t, n);
function t(e) {
var r = n.call(this) || this;
r.headerComps = {};
var o = e.getType() == he.COLUMN_GROUP ? "ag-header-row-column-group" : e.getType() == he.FLOATING_FILTER ? "ag-header-row-column-filter" : "ag-header-row-column";
return r.setTemplate(
/* html */
'<div class="ag-header-row ' + o + '" role="row"></div>'
), r.ctrl = e, r;
}
return t.prototype.init = function() {
var e = this, r = {
setTransform: function(o) {
return e.getGui().style.transform = o;
},
setHeight: function(o) {
return e.getGui().style.height = o;
},
setTop: function(o) {
return e.getGui().style.top = o;
},
setHeaderCtrls: function(o) {
return e.setHeaderCtrls(o);
},
setWidth: function(o) {
return e.getGui().style.width = o;
},
setAriaRowIndex: function(o) {
return Nn(e.getGui(), o);
}
};
this.ctrl.setComp(r);
}, t.prototype.destroyHeaderCtrls = function() {
this.setHeaderCtrls([]);
}, t.prototype.setHeaderCtrls = function(e) {
var r = this;
if (this.isAlive()) {
var o = this.headerComps;
this.headerComps = {}, e.forEach(function(u) {
var c = u.getInstanceId(), p = o[c];
delete o[c], p == null && (p = r.createHeaderComp(u), r.getGui().appendChild(p.getGui())), r.headerComps[c] = p;
}), J(o, function(u, c) {
r.getGui().removeChild(c.getGui()), r.destroyBean(c);
});
var i = this.gridOptionsService.is("ensureDomOrder"), s = this.gridOptionsService.isDomLayout("print");
if (i || s) {
var a = et(this.headerComps);
a.sort(function(u, c) {
var p = u.getCtrl().getColumnGroupChild().getLeft(), d = c.getCtrl().getColumnGroupChild().getLeft();
return p - d;
});
var l = a.map(function(u) {
return u.getGui();
});
Kn(this.getGui(), l);
}
}
}, t.prototype.createHeaderComp = function(e) {
var r;
switch (this.ctrl.getType()) {
case he.COLUMN_GROUP:
r = new Lf(e);
break;
case he.FLOATING_FILTER:
r = new Bd(e);
break;
default:
r = new Af(e);
break;
}
return this.createBean(r), r.setParentComponent(this), r;
}, xs([
b
], t.prototype, "init", null), xs([
fe
], t.prototype, "destroyHeaderCtrls", null), t;
}(W)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var xf = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Mi = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Nf = 0, ii = (
/** @class */
function(n) {
xf(t, n);
function t(e, r) {
var o = n.call(this) || this;
return o.lastFocusEvent = null, o.columnGroupChild = e, o.parentRowCtrl = r, o.instanceId = e.getUniqueId() + "-" + Nf++, o;
}
return t.prototype.shouldStopEventPropagation = function(e) {
var r = this.focusService.getFocusedHeader(), o = r.headerRowIndex, i = r.column;
return pl(this.gridOptionsService, e, o, i);
}, t.prototype.getWrapperHasFocus = function() {
var e = this.gridOptionsService.getDocument(), r = e.activeElement;
return r === this.eGui;
}, t.prototype.setGui = function(e) {
this.eGui = e, this.addDomData();
}, t.prototype.handleKeyDown = function(e) {
var r = this.getWrapperHasFocus();
switch (e.key) {
case _.PAGE_DOWN:
case _.PAGE_UP:
case _.PAGE_HOME:
case _.PAGE_END:
r && e.preventDefault();
}
}, t.prototype.addDomData = function() {
var e = this, r = t.DOM_DATA_KEY_HEADER_CTRL;
this.gridOptionsService.setDomData(this.eGui, r, this), this.addDestroyFunc(function() {
return e.gridOptionsService.setDomData(e.eGui, r, null);
});
}, t.prototype.getGui = function() {
return this.eGui;
}, t.prototype.focus = function(e) {
return this.eGui ? (this.lastFocusEvent = e || null, this.eGui.focus(), !0) : !1;
}, t.prototype.getRowIndex = function() {
return this.parentRowCtrl.getRowIndex();
}, t.prototype.getParentRowCtrl = function() {
return this.parentRowCtrl;
}, t.prototype.getPinned = function() {
return this.parentRowCtrl.getPinned();
}, t.prototype.getInstanceId = function() {
return this.instanceId;
}, t.prototype.getColumnGroupChild = function() {
return this.columnGroupChild;
}, t.DOM_DATA_KEY_HEADER_CTRL = "headerCtrl", Mi([
h("focusService")
], t.prototype, "focusService", void 0), Mi([
h("beans")
], t.prototype, "beans", void 0), Mi([
h("userComponentFactory")
], t.prototype, "userComponentFactory", void 0), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Gf = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Hf = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, as = (
/** @class */
function(n) {
Gf(t, n);
function t(e, r, o, i) {
var s = n.call(this) || this;
return s.columnOrGroup = e, s.eCell = r, s.ariaEl = s.eCell.querySelector("[role=columnheader]") || s.eCell, s.colsSpanning = i, s.beans = o, s;
}
return t.prototype.setColsSpanning = function(e) {
this.colsSpanning = e, this.onLeftChanged();
}, t.prototype.getColumnOrGroup = function() {
return this.beans.gridOptionsService.is("enableRtl") && this.colsSpanning ? q(this.colsSpanning) : this.columnOrGroup;
}, t.prototype.postConstruct = function() {
this.addManagedListener(this.columnOrGroup, Z.EVENT_LEFT_CHANGED, this.onLeftChanged.bind(this)), this.setLeftFirstTime(), this.addManagedListener(this.eventService, v.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED, this.onLeftChanged.bind(this)), this.addManagedPropertyListener("domLayout", this.onLeftChanged.bind(this));
}, t.prototype.setLeftFirstTime = function() {
var e = this.beans.gridOptionsService.is("suppressColumnMoveAnimation"), r = O(this.columnOrGroup.getOldLeft()), o = this.beans.columnAnimationService.isActive() && r && !e;
o ? this.animateInLeft() : this.onLeftChanged();
}, t.prototype.animateInLeft = function() {
var e = this, r = this.getColumnOrGroup(), o = r.getLeft(), i = r.getOldLeft(), s = this.modifyLeftForPrintLayout(r, i), a = this.modifyLeftForPrintLayout(r, o);
this.setLeft(s), this.actualLeft = a, this.beans.columnAnimationService.executeNextVMTurn(function() {
e.actualLeft === a && e.setLeft(a);
});
}, t.prototype.onLeftChanged = function() {
var e = this.getColumnOrGroup(), r = e.getLeft();
this.actualLeft = this.modifyLeftForPrintLayout(e, r), this.setLeft(this.actualLeft);
}, t.prototype.modifyLeftForPrintLayout = function(e, r) {
var o = this.beans.gridOptionsService.isDomLayout("print");
if (!o || e.getPinned() === "left")
return r;
var i = this.beans.columnModel.getDisplayedColumnsLeftWidth();
if (e.getPinned() === "right") {
var s = this.beans.columnModel.getBodyContainerWidth();
return i + s + r;
}
return i + r;
}, t.prototype.setLeft = function(e) {
O(e) && (this.eCell.style.left = e + "px");
var r;
if (this.columnOrGroup instanceof Z)
r = this.columnOrGroup;
else {
var o = this.columnOrGroup, i = o.getLeafColumns();
if (!i.length)
return;
i.length > 1 && Ka(this.ariaEl, i.length), r = i[0];
}
var s = this.beans.columnModel.getAriaColumnIndex(r);
Gn(this.ariaEl, s);
}, Hf([
b
], t.prototype, "postConstruct", null), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Vf = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Ns = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, ls = (
/** @class */
function(n) {
Vf(t, n);
function t(e, r) {
var o = n.call(this) || this;
return o.columns = e, o.element = r, o;
}
return t.prototype.postConstruct = function() {
this.gridOptionsService.is("columnHoverHighlight") && this.addMouseHoverListeners();
}, t.prototype.addMouseHoverListeners = function() {
this.addManagedListener(this.element, "mouseout", this.onMouseOut.bind(this)), this.addManagedListener(this.element, "mouseover", this.onMouseOver.bind(this));
}, t.prototype.onMouseOut = function() {
this.columnHoverService.clearMouseOver();
}, t.prototype.onMouseOver = function() {
this.columnHoverService.setMouseOver(this.columns);
}, Ns([
h("columnHoverService")
], t.prototype, "columnHoverService", void 0), Ns([
b
], t.prototype, "postConstruct", null), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Bf = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Ii = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Wf = (
/** @class */
function(n) {
Bf(t, n);
function t(e, r) {
var o = n.call(this, e, r) || this;
return o.column = e, o;
}
return t.prototype.setComp = function(e, r, o, i) {
n.prototype.setGui.call(this, r), this.comp = e, this.eButtonShowMainFilter = o, this.eFloatingFilterBody = i;
var s = this.column.getColDef(), a = !!s.filter || !!s.filterFramework, l = !!s.floatingFilter;
this.active = a && l, this.setupWidth(), this.setupLeft(), this.setupHover(), this.setupFocus(), this.setupUserComp(), this.setupSyncWithFilter(), this.setupUi(), this.addManagedListener(this.eButtonShowMainFilter, "click", this.showParentFilter.bind(this)), this.active && this.addManagedListener(this.column, Z.EVENT_FILTER_CHANGED, this.updateFilterButton.bind(this));
}, t.prototype.setupUi = function() {
if (this.comp.setButtonWrapperDisplayed(!this.suppressFilterButton && this.active), !!this.active) {
this.comp.addOrRemoveBodyCssClass("ag-floating-filter-full-body", this.suppressFilterButton), this.comp.addOrRemoveBodyCssClass("ag-floating-filter-body", !this.suppressFilterButton);
var e = oe("filter", this.gridOptionsService, this.column);
e && this.eButtonShowMainFilter.appendChild(e);
}
}, t.prototype.setupFocus = function() {
this.createManagedBean(new Et(this.eGui, {
shouldStopEventPropagation: this.shouldStopEventPropagation.bind(this),
onTabKeyDown: this.onTabKeyDown.bind(this),
handleKeyDown: this.handleKeyDown.bind(this),
onFocusIn: this.onFocusIn.bind(this)
}));
}, t.prototype.onTabKeyDown = function(e) {
var r = this.gridOptionsService.getDocument(), o = r.activeElement, i = o === this.eGui;
if (!i) {
var s = this.focusService.findNextFocusableElement(this.eGui, null, e.shiftKey);
if (s) {
this.beans.headerNavigationService.scrollToColumn(this.column), e.preventDefault(), s.focus();
return;
}
var a = this.findNextColumnWithFloatingFilter(e.shiftKey);
a && this.focusService.focusHeaderPosition({
headerPosition: {
headerRowIndex: this.getParentRowCtrl().getRowIndex(),
column: a
},
event: e
}) && e.preventDefault();
}
}, t.prototype.findNextColumnWithFloatingFilter = function(e) {
var r = this.beans.columnModel, o = this.column;
do
if (o = e ? r.getDisplayedColBefore(o) : r.getDisplayedColAfter(o), !o)
break;
while (!o.getColDef().filter || !o.getColDef().floatingFilter);
return o;
}, t.prototype.handleKeyDown = function(e) {
n.prototype.handleKeyDown.call(this, e);
var r = this.getWrapperHasFocus();
switch (e.key) {
case _.UP:
case _.DOWN:
r || e.preventDefault();
case _.LEFT:
case _.RIGHT:
if (r)
return;
e.stopPropagation();
case _.ENTER:
r && this.focusService.focusInto(this.eGui) && e.preventDefault();
break;
case _.ESCAPE:
r || this.eGui.focus();
}
}, t.prototype.onFocusIn = function(e) {
var r = this.eGui.contains(e.relatedTarget);
if (!r) {
var o = !!e.relatedTarget && !e.relatedTarget.classList.contains("ag-floating-filter"), i = !!e.relatedTarget && Dt(e.relatedTarget, "ag-floating-filter");
if (o && i && e.target === this.eGui) {
var s = this.lastFocusEvent, a = !!(s && s.key === _.TAB);
if (s && a) {
var l = s.shiftKey;
this.focusService.focusInto(this.eGui, l);
}
}
var u = this.getRowIndex();
this.beans.focusService.setFocusedHeader(u, this.column);
}
}, t.prototype.setupHover = function() {
var e = this;
this.createManagedBean(new ls([this.column], this.eGui));
var r = function() {
if (e.gridOptionsService.is("columnHoverHighlight")) {
var o = e.columnHoverService.isHovered(e.column);
e.comp.addOrRemoveCssClass("ag-column-hover", o);
}
};
this.addManagedListener(this.eventService, v.EVENT_COLUMN_HOVER_CHANGED, r), r();
}, t.prototype.setupLeft = function() {
var e = new as(this.column, this.eGui, this.beans);
this.createManagedBean(e);
}, t.prototype.setupUserComp = function() {
var e = this;
if (this.active) {
var r = this.column.getColDef();
this.suppressFilterButton = r.floatingFilterComponentParams ? !!r.floatingFilterComponentParams.suppressFilterButton : !1;
var o = this.filterManager.getFloatingFilterCompDetails(this.column, function() {
return e.showParentFilter();
});
o && this.comp.setCompDetails(o);
}
}, t.prototype.showParentFilter = function() {
var e = this.suppressFilterButton ? this.eFloatingFilterBody : this.eButtonShowMainFilter;
this.menuFactory.showMenuAfterButtonClick(this.column, e, "floatingFilter", "filterMenuTab", ["filterMenuTab"]);
}, t.prototype.setupSyncWithFilter = function() {
var e = this;
if (this.active) {
var r = function(o) {
var i = e.comp.getFloatingFilterComp();
if (i) {
var s = e.filterManager.getCurrentFloatingFilterParentModel(e.column);
i.then(function(a) {
a && a.onParentModelChanged(s, o);
});
}
};
this.addManagedListener(this.column, Z.EVENT_FILTER_CHANGED, r), this.filterManager.isFilterActive(this.column) && r(null);
}
}, t.prototype.setupWidth = function() {
var e = this, r = function() {
var o = e.column.getActualWidth() + "px";
e.comp.setWidth(o);
};
this.addManagedListener(this.column, Z.EVENT_WIDTH_CHANGED, r), r();
}, t.prototype.updateFilterButton = function() {
!this.suppressFilterButton && this.comp && this.comp.setButtonWrapperDisplayed(this.filterManager.isFilterAllowed(this.column));
}, Ii([
h("filterManager")
], t.prototype, "filterManager", void 0), Ii([
h("columnHoverService")
], t.prototype, "columnHoverService", void 0), Ii([
h("menuFactory")
], t.prototype, "menuFactory", void 0), t;
}(ii)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var jf = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), xi = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, kf = (
/** @class */
function(n) {
jf(t, n);
function t(e, r, o, i, s) {
var a = n.call(this) || this;
return a.pinned = e, a.column = r, a.eResize = o, a.comp = i, a.ctrl = s, a;
}
return t.prototype.postConstruct = function() {
var e = this, r = this.column.getColDef(), o = [], i, s, a = function() {
if (k(e.eResize, i), !!i) {
var c = e.horizontalResizeService.addResizeBar({
eResizeBar: e.eResize,
onResizeStart: e.onResizeStart.bind(e),
onResizing: e.onResizing.bind(e, !1),
onResizeEnd: e.onResizing.bind(e, !0)
});
if (o.push(c), s) {
var p = e.gridOptionsService.is("skipHeaderOnAutoSize"), d = function() {
e.columnModel.autoSizeColumn(e.column, p, "uiColumnResized");
};
e.eResize.addEventListener("dblclick", d);
var f = new De(e.eResize);
f.addEventListener(De.EVENT_DOUBLE_TAP, d), e.addDestroyFunc(function() {
e.eResize.removeEventListener("dblclick", d), f.removeEventListener(De.EVENT_DOUBLE_TAP, d), f.destroy();
});
}
}
}, l = function() {
o.forEach(function(c) {
return c();
}), o.length = 0;
}, u = function() {
var c = e.column.isResizable(), p = !e.gridOptionsService.is("suppressAutoSize") && !r.suppressAutoSize, d = c !== i || p !== s;
d && (i = c, s = p, l(), a());
};
u(), this.addDestroyFunc(l), this.ctrl.addRefreshFunction(u);
}, t.prototype.onResizing = function(e, r) {
var o = this.normaliseResizeAmount(r), i = [{ key: this.column, newWidth: this.resizeStartWidth + o }];
this.columnModel.setColumnWidths(i, this.resizeWithShiftKey, e, "uiColumnResized"), e && this.comp.addOrRemoveCssClass("ag-column-resizing", !1);
}, t.prototype.onResizeStart = function(e) {
this.resizeStartWidth = this.column.getActualWidth(), this.resizeWithShiftKey = e, this.comp.addOrRemoveCssClass("ag-column-resizing", !0);
}, t.prototype.normaliseResizeAmount = function(e) {
var r = e, o = this.pinned !== "left", i = this.pinned === "right";
return this.gridOptionsService.is("enableRtl") ? o && (r *= -1) : i && (r *= -1), r;
}, xi([
h("horizontalResizeService")
], t.prototype, "horizontalResizeService", void 0), xi([
h("columnModel")
], t.prototype, "columnModel", void 0), xi([
b
], t.prototype, "postConstruct", null), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Uf = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), ro = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, zf = (
/** @class */
function(n) {
Uf(t, n);
function t(e) {
var r = n.call(this) || this;
r.cbSelectAllVisible = !1, r.processingEventFromCheckbox = !1, r.column = e;
var o = e.getColDef();
return r.filteredOnly = !!(o != null && o.headerCheckboxSelectionFilteredOnly), r.currentPageOnly = !!(o != null && o.headerCheckboxSelectionCurrentPageOnly), r;
}
return t.prototype.onSpaceKeyPressed = function(e) {
var r = this.cbSelectAll, o = this.gridOptionsService.getDocument();
r.isDisplayed() && !r.getGui().contains(o.activeElement) && (e.preventDefault(), r.setValue(!r.getValue()));
}, t.prototype.getCheckboxGui = function() {
return this.cbSelectAll.getGui();
}, t.prototype.setComp = function(e) {
this.headerCellCtrl = e, this.cbSelectAll = this.createManagedBean(new Gr()), this.cbSelectAll.addCssClass("ag-header-select-all"), le(this.cbSelectAll.getGui(), "presentation"), this.showOrHideSelectAll(), this.addManagedListener(this.eventService, v.EVENT_NEW_COLUMNS_LOADED, this.showOrHideSelectAll.bind(this)), this.addManagedListener(this.eventService, v.EVENT_DISPLAYED_COLUMNS_CHANGED, this.showOrHideSelectAll.bind(this)), this.addManagedListener(this.eventService, v.EVENT_SELECTION_CHANGED, this.onSelectionChanged.bind(this)), this.addManagedListener(this.eventService, v.EVENT_PAGINATION_CHANGED, this.onSelectionChanged.bind(this)), this.addManagedListener(this.eventService, v.EVENT_MODEL_UPDATED, this.onModelChanged.bind(this)), this.addManagedListener(this.cbSelectAll, Gr.EVENT_CHANGED, this.onCbSelectAll.bind(this)), Zo(this.cbSelectAll.getGui(), !0), this.cbSelectAll.getInputElement().setAttribute("tabindex", "-1"), this.refreshSelectAllLabel();
}, t.prototype.showOrHideSelectAll = function() {
this.cbSelectAllVisible = this.isCheckboxSelection(), this.cbSelectAll.setDisplayed(this.cbSelectAllVisible, { skipAriaHidden: !0 }), this.cbSelectAllVisible && (this.checkRightRowModelType("selectAllCheckbox"), this.updateStateOfCheckbox()), this.refreshSelectAllLabel();
}, t.prototype.onModelChanged = function() {
this.cbSelectAllVisible && this.updateStateOfCheckbox();
}, t.prototype.onSelectionChanged = function() {
this.cbSelectAllVisible && this.updateStateOfCheckbox();
}, t.prototype.updateStateOfCheckbox = function() {
if (!this.processingEventFromCheckbox) {
this.processingEventFromCheckbox = !0;
var e = this.selectionService.getSelectAllState(this.filteredOnly, this.currentPageOnly);
this.cbSelectAll.setValue(e), this.refreshSelectAllLabel(), this.processingEventFromCheckbox = !1;
}
}, t.prototype.refreshSelectAllLabel = function() {
if (!this.cbSelectAllVisible)
this.headerCellCtrl.setAriaDescriptionProperty("selectAll", null), this.cbSelectAll.setInputAriaLabel(null);
else {
var e = this.localeService.getLocaleTextFunc(), r = this.cbSelectAll.getValue(), o = r ? e("ariaChecked", "checked") : e("ariaUnchecked", "unchecked"), i = e("ariaRowSelectAll", "Press Space to toggle all rows selection");
this.headerCellCtrl.setAriaDescriptionProperty("selectAll", i + " (" + o + ")"), this.cbSelectAll.setInputAriaLabel(i + " (" + o + ")");
}
this.headerCellCtrl.refreshAriaDescription();
}, t.prototype.checkRightRowModelType = function(e) {
var r = this.rowModel.getType(), o = r === "clientSide" || r === "serverSide";
return o ? !0 : (console.warn("AG Grid: " + e + " is only available if using 'clientSide' or 'serverSide' rowModelType, you are using " + r + "."), !1);
}, t.prototype.onCbSelectAll = function() {
if (!this.processingEventFromCheckbox && this.cbSelectAllVisible) {
var e = this.cbSelectAll.getValue(), r = "uiSelectAll";
this.currentPageOnly ? r = "uiSelectAllCurrentPage" : this.filteredOnly && (r = "uiSelectAllFiltered");
var o = {
source: r,
justFiltered: this.filteredOnly,
justCurrentPage: this.currentPageOnly
};
e ? this.selectionService.selectAllRowNodes(o) : this.selectionService.deselectAllRowNodes(o);
}
}, t.prototype.isCheckboxSelection = function() {
var e = this.column.getColDef().headerCheckboxSelection;
if (typeof e == "function") {
var r = e, o = {
column: this.column,
colDef: this.column.getColDef(),
columnApi: this.columnApi,
api: this.gridApi,
context: this.gridOptionsService.context
};
e = r(o);
}
return e ? this.checkRightRowModelType("headerCheckboxSelection") : !1;
}, ro([
h("gridApi")
], t.prototype, "gridApi", void 0), ro([
h("columnApi")
], t.prototype, "columnApi", void 0), ro([
h("rowModel")
], t.prototype, "rowModel", void 0), ro([
h("selectionService")
], t.prototype, "selectionService", void 0), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Kf = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), ot = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, $f = (
/** @class */
function(n) {
Kf(t, n);
function t(e, r) {
var o = n.call(this, e, r) || this;
return o.refreshFunctions = [], o.userHeaderClasses = /* @__PURE__ */ new Set(), o.ariaDescriptionProperties = /* @__PURE__ */ new Map(), o.column = e, o;
}
return t.prototype.setComp = function(e, r, o, i) {
var s = this;
n.prototype.setGui.call(this, r), this.comp = e, this.updateState(), this.setupWidth(), this.setupMovingCss(), this.setupMenuClass(), this.setupSortableClass(), this.setupWrapTextClass(), this.refreshSpanHeaderHeight(), this.setupAutoHeight(i), this.addColumnHoverListener(), this.setupFilterCss(), this.setupColId(), this.setupClassesFromColDef(), this.setupTooltip(), this.addActiveHeaderMouseListeners(), this.setupSelectAll(), this.setupUserComp(), this.refreshAria(), this.createManagedBean(new kf(this.getPinned(), this.column, o, e, this)), this.createManagedBean(new ls([this.column], r)), this.createManagedBean(new as(this.column, r, this.beans)), this.createManagedBean(new Et(r, {
shouldStopEventPropagation: function(a) {
return s.shouldStopEventPropagation(a);
},
onTabKeyDown: function() {
return null;
},
handleKeyDown: this.handleKeyDown.bind(this),
onFocusIn: this.onFocusIn.bind(this),
onFocusOut: this.onFocusOut.bind(this)
})), this.addManagedListener(this.column, Z.EVENT_COL_DEF_CHANGED, this.onColDefChanged.bind(this)), this.addManagedListener(this.eventService, v.EVENT_COLUMN_VALUE_CHANGED, this.onColumnValueChanged.bind(this)), this.addManagedListener(this.eventService, v.EVENT_COLUMN_ROW_GROUP_CHANGED, this.onColumnRowGroupChanged.bind(this)), this.addManagedListener(this.eventService, v.EVENT_COLUMN_PIVOT_CHANGED, this.onColumnPivotChanged.bind(this)), this.addManagedListener(this.eventService, v.EVENT_HEADER_HEIGHT_CHANGED, this.onHeaderHeightChanged.bind(this));
}, t.prototype.setupUserComp = function() {
var e = this.lookupUserCompDetails();
this.setCompDetails(e);
}, t.prototype.setCompDetails = function(e) {
this.userCompDetails = e, this.comp.setUserCompDetails(e);
}, t.prototype.lookupUserCompDetails = function() {
var e = this.createParams(), r = this.column.getColDef();
return this.userComponentFactory.getHeaderCompDetails(r, e);
}, t.prototype.createParams = function() {
var e = this, r = this.column.getColDef(), o = {
column: this.column,
displayName: this.displayName,
enableSorting: r.sortable,
enableMenu: this.menuEnabled,
showColumnMenu: function(i) {
e.gridApi.showColumnMenuAfterButtonClick(e.column, i);
},
progressSort: function(i) {
e.sortController.progressSort(e.column, !!i, "uiColumnSorted");
},
setSort: function(i, s) {
e.sortController.setSortForColumn(e.column, i, !!s, "uiColumnSorted");
},
api: this.gridApi,
columnApi: this.columnApi,
context: this.gridOptionsService.context,
eGridHeader: this.getGui()
};
return o;
}, t.prototype.setupSelectAll = function() {
this.selectAllFeature = this.createManagedBean(new zf(this.column)), this.selectAllFeature.setComp(this);
}, t.prototype.getSelectAllGui = function() {
return this.selectAllFeature.getCheckboxGui();
}, t.prototype.handleKeyDown = function(e) {
n.prototype.handleKeyDown.call(this, e), e.key === _.SPACE && this.selectAllFeature.onSpaceKeyPressed(e), e.key === _.ENTER && this.onEnterKeyPressed(e);
}, t.prototype.onEnterKeyPressed = function(e) {
var r = this.comp.getUserCompInstance();
if (r) {
if (e.ctrlKey || e.metaKey)
this.menuEnabled && r.showMenu && (e.preventDefault(), r.showMenu());
else if (this.sortable) {
var o = e.shiftKey;
this.sortController.progressSort(this.column, o, "uiColumnSorted");
}
}
}, t.prototype.isMenuEnabled = function() {
return this.menuEnabled;
}, t.prototype.onFocusIn = function(e) {
if (!this.getGui().contains(e.relatedTarget)) {
var r = this.getRowIndex();
this.focusService.setFocusedHeader(r, this.column);
}
this.setActiveHeader(!0);
}, t.prototype.onFocusOut = function(e) {
this.getGui().contains(e.relatedTarget) || this.setActiveHeader(!1);
}, t.prototype.setupTooltip = function() {
var e = this, r = {
getColumn: function() {
return e.column;
},
getColDef: function() {
return e.column.getColDef();
},
getGui: function() {
return e.eGui;
},
getLocation: function() {
return "header";
},
getTooltipValue: function() {
var i = e.column.getColDef().headerTooltip;
return i;
}
}, o = this.createManagedBean(new ns(r, this.beans));
o.setComp(this.comp), this.refreshFunctions.push(function() {
return o.refreshToolTip();
});
}, t.prototype.setupClassesFromColDef = function() {
var e = this, r = function() {
var o = e.column.getColDef(), i = jl.getHeaderClassesFromColDef(o, e.gridOptionsService, e.column, null), s = e.userHeaderClasses;
e.userHeaderClasses = new Set(i), i.forEach(function(a) {
s.has(a) ? s.delete(a) : e.comp.addOrRemoveCssClass(a, !0);
}), s.forEach(function(a) {
return e.comp.addOrRemoveCssClass(a, !1);
});
};
this.refreshFunctions.push(r), r();
}, t.prototype.setDragSource = function(e) {
var r = this;
if (this.dragSourceElement = e, this.removeDragSource(), !!e && this.draggable) {
var o = !this.gridOptionsService.is("suppressDragLeaveHidesColumns");
this.moveDragSource = {
type: me.HeaderCell,
eElement: e,
defaultIconName: o ? pe.ICON_HIDE : pe.ICON_NOT_ALLOWED,
getDragItem: function() {
return r.createDragItem();
},
dragItemName: this.displayName,
onDragStarted: function() {
return r.column.setMoving(!0, "uiColumnMoved");
},
onDragStopped: function() {
return r.column.setMoving(!1, "uiColumnMoved");
},
onGridEnter: function(i) {
var s;
if (o) {
var a = ((s = i == null ? void 0 : i.columns) === null || s === void 0 ? void 0 : s.filter(function(l) {
return !l.getColDef().lockVisible;
})) || [];
r.columnModel.setColumnsVisible(a, !0, "uiColumnMoved");
}
},
onGridExit: function(i) {
var s;
if (o) {
var a = ((s = i == null ? void 0 : i.columns) === null || s === void 0 ? void 0 : s.filter(function(l) {
return !l.getColDef().lockVisible;
})) || [];
r.columnModel.setColumnsVisible(a, !1, "uiColumnMoved");
}
}
}, this.dragAndDropService.addDragSource(this.moveDragSource, !0);
}
}, t.prototype.createDragItem = function() {
var e = {};
return e[this.column.getId()] = this.column.isVisible(), {
columns: [this.column],
visibleState: e
};
}, t.prototype.removeDragSource = function() {
this.moveDragSource && (this.dragAndDropService.removeDragSource(this.moveDragSource), this.moveDragSource = void 0);
}, t.prototype.onColDefChanged = function() {
this.refresh();
}, t.prototype.updateState = function() {
var e = this.column.getColDef();
this.menuEnabled = this.menuFactory.isMenuEnabled(this.column) && !e.suppressMenu, this.sortable = e.sortable, this.displayName = this.calculateDisplayName(), this.draggable = this.workOutDraggable();
}, t.prototype.addRefreshFunction = function(e) {
this.refreshFunctions.push(e);
}, t.prototype.refresh = function() {
this.updateState(), this.refreshHeaderComp(), this.refreshAria(), this.refreshFunctions.forEach(function(e) {
return e();
});
}, t.prototype.refreshHeaderComp = function() {
var e = this.lookupUserCompDetails(), r = this.comp.getUserCompInstance(), o = r != null && this.userCompDetails.componentClass == e.componentClass, i = o ? this.attemptHeaderCompRefresh(e.params) : !1;
i ? this.setDragSource(this.dragSourceElement) : this.setCompDetails(e);
}, t.prototype.attemptHeaderCompRefresh = function(e) {
var r = this.comp.getUserCompInstance();
if (!r || !r.refresh)
return !1;
var o = r.refresh(e);
return o;
}, t.prototype.calculateDisplayName = function() {
return this.columnModel.getDisplayNameForColumn(this.column, "header", !0);
}, t.prototype.checkDisplayName = function() {
this.displayName !== this.calculateDisplayName() && this.refresh();
}, t.prototype.workOutDraggable = function() {
var e = this.column.getColDef(), r = this.gridOptionsService.is("suppressMovableColumns"), o = !r && !e.suppressMovable && !e.lockPosition;
return !!o || !!e.enableRowGroup || !!e.enablePivot;
}, t.prototype.onColumnRowGroupChanged = function() {
this.checkDisplayName();
}, t.prototype.onColumnPivotChanged = function() {
this.checkDisplayName();
}, t.prototype.onColumnValueChanged = function() {
this.checkDisplayName();
}, t.prototype.setupWidth = function() {
var e = this, r = function() {
var o = e.column.getActualWidth();
e.comp.setWidth(o + "px");
};
this.addManagedListener(this.column, Z.EVENT_WIDTH_CHANGED, r), r();
}, t.prototype.setupMovingCss = function() {
var e = this, r = function() {
e.comp.addOrRemoveCssClass("ag-header-cell-moving", e.column.isMoving());
};
this.addManagedListener(this.column, Z.EVENT_MOVING_CHANGED, r), r();
}, t.prototype.setupMenuClass = function() {
var e = this, r = function() {
e.comp.addOrRemoveCssClass("ag-column-menu-visible", e.column.isMenuVisible());
};
this.addManagedListener(this.column, Z.EVENT_MENU_VISIBLE_CHANGED, r), r();
}, t.prototype.setupSortableClass = function() {
var e = this, r = function() {
e.comp.addOrRemoveCssClass("ag-header-cell-sortable", !!e.sortable);
};
r(), this.addRefreshFunction(r), this.addManagedListener(this.eventService, Z.EVENT_SORT_CHANGED, this.refreshAriaSort.bind(this));
}, t.prototype.setupWrapTextClass = function() {
var e = this, r = function() {
var o = !!e.column.getColDef().wrapHeaderText;
e.comp.addOrRemoveCssClass("ag-header-cell-wrap-text", o);
};
r(), this.addRefreshFunction(r);
}, t.prototype.onHeaderHeightChanged = function() {
this.refreshSpanHeaderHeight();
}, t.prototype.refreshSpanHeaderHeight = function() {
var e = this, r = e.eGui, o = e.column, i = e.comp, s = e.columnModel, a = e.gridOptionsService;
if (o.isSpanHeaderHeight()) {
var l = this.getColumnGroupPaddingInfo(), u = l.numberOfParents, c = l.isSpanningTotal;
if (i.addOrRemoveCssClass("ag-header-span-height", u > 0), u !== 0) {
i.addOrRemoveCssClass("ag-header-span-total", c);
var p = a.is("pivotMode"), d = p ? s.getPivotGroupHeaderHeight() : s.getGroupHeaderHeight(), f = s.getColumnHeaderRowHeight(), g = u * d;
r.style.setProperty("top", -g + "px"), r.style.setProperty("height", f + g + "px");
}
}
}, t.prototype.getColumnGroupPaddingInfo = function() {
var e = this.column.getParent();
if (!e || !e.isPadding())
return { numberOfParents: 0, isSpanningTotal: !1 };
for (var r = e.getPaddingLevel() + 1, o = !0; e; ) {
if (!e.isPadding()) {
o = !1;
break;
}
e = e.getParent();
}
return { numberOfParents: r, isSpanningTotal: o };
}, t.prototype.setupAutoHeight = function(e) {
var r = this, o = function(c) {
if (r.isAlive()) {
var p = Nt(r.getGui()), d = p.paddingTop, f = p.paddingBottom, g = p.borderBottomWidth, y = p.borderTopWidth, C = d + f + g + y, m = e.offsetHeight, w = m + C;
if (c < 5) {
var E = r.beans.gridOptionsService.getDocument(), R = !E || !E.contains(e), D = w == 0;
if (R || D) {
r.beans.frameworkOverrides.setTimeout(function() {
return o(c + 1);
}, 0);
return;
}
}
r.columnModel.setColumnHeaderHeight(r.column, w);
}
}, i = !1, s, a = function() {
var c = r.column.isSpanHeaderHeight(), p = r.column.isAutoHeaderHeight();
if (c) {
if (u(), p) {
var d = "AG Grid: The properties `spanHeaderHeight` and `autoHeaderHeight` cannot be used together in the same column.";
K(function() {
return console.warn(d);
}, "HeaderCellCtrl.spanHeaderHeightAndAutoHeaderHeight");
}
return;
}
p && !i && l(), !p && i && u();
}, l = function() {
i = !0, o(0), r.comp.addOrRemoveCssClass("ag-header-cell-auto-height", !0), s = r.resizeObserverService.observeResize(e, function() {
return o(0);
});
}, u = function() {
i = !1, s && s(), r.comp.addOrRemoveCssClass("ag-header-cell-auto-height", !1), s = void 0;
};
a(), this.addDestroyFunc(function() {
return u();
}), this.addManagedListener(this.column, Z.EVENT_WIDTH_CHANGED, function() {
return i && o(0);
}), this.addManagedListener(this.eventService, Z.EVENT_SORT_CHANGED, function() {
i && r.beans.frameworkOverrides.setTimeout(function() {
return o(0);
});
}), this.addRefreshFunction(a);
}, t.prototype.refreshAriaSort = function() {
if (this.sortable) {
var e = this.localeService.getLocaleTextFunc(), r = this.sortController.getDisplaySortForColumn(this.column) || null;
this.comp.setAriaSort(Na(r)), this.setAriaDescriptionProperty("sort", e("ariaSortableColumn", "Press ENTER to sort."));
} else
this.comp.setAriaSort(), this.setAriaDescriptionProperty("sort", null);
}, t.prototype.refreshAriaMenu = function() {
if (this.menuEnabled) {
var e = this.localeService.getLocaleTextFunc();
this.setAriaDescriptionProperty("menu", e("ariaMenuColumn", "Press CTRL ENTER to open column menu."));
} else
this.setAriaDescriptionProperty("menu", null);
}, t.prototype.setAriaDescriptionProperty = function(e, r) {
r != null ? this.ariaDescriptionProperties.set(e, r) : this.ariaDescriptionProperties.delete(e);
}, t.prototype.refreshAriaDescription = function() {
var e = Array.from(this.ariaDescriptionProperties.values());
this.comp.setAriaDescription(e.length ? e.join(" ") : void 0);
}, t.prototype.refreshAria = function() {
this.refreshAriaSort(), this.refreshAriaMenu(), this.refreshAriaDescription();
}, t.prototype.addColumnHoverListener = function() {
var e = this, r = function() {
if (e.gridOptionsService.is("columnHoverHighlight")) {
var o = e.columnHoverService.isHovered(e.column);
e.comp.addOrRemoveCssClass("ag-column-hover", o);
}
};
this.addManagedListener(this.eventService, v.EVENT_COLUMN_HOVER_CHANGED, r), r();
}, t.prototype.setupFilterCss = function() {
var e = this, r = function() {
e.comp.addOrRemoveCssClass("ag-header-cell-filtered", e.column.isFilterActive());
};
this.addManagedListener(this.column, Z.EVENT_FILTER_ACTIVE_CHANGED, r), r();
}, t.prototype.setupColId = function() {
this.comp.setColId(this.column.getColId());
}, t.prototype.addActiveHeaderMouseListeners = function() {
var e = this, r = function(o) {
return e.setActiveHeader(o.type === "mouseenter");
};
this.addManagedListener(this.getGui(), "mouseenter", r), this.addManagedListener(this.getGui(), "mouseleave", r);
}, t.prototype.setActiveHeader = function(e) {
this.comp.addOrRemoveCssClass("ag-header-active", e);
}, ot([
h("columnModel")
], t.prototype, "columnModel", void 0), ot([
h("columnHoverService")
], t.prototype, "columnHoverService", void 0), ot([
h("sortController")
], t.prototype, "sortController", void 0), ot([
h("menuFactory")
], t.prototype, "menuFactory", void 0), ot([
h("dragAndDropService")
], t.prototype, "dragAndDropService", void 0), ot([
h("resizeObserverService")
], t.prototype, "resizeObserverService", void 0), ot([
h("gridApi")
], t.prototype, "gridApi", void 0), ot([
h("columnApi")
], t.prototype, "columnApi", void 0), ot([
fe
], t.prototype, "removeDragSource", null), t;
}(ii)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Yf = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), oo = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, qf = (
/** @class */
function(n) {
Yf(t, n);
function t(e, r, o, i) {
var s = n.call(this) || this;
return s.eResize = r, s.comp = e, s.pinned = o, s.columnGroup = i, s;
}
return t.prototype.postConstruct = function() {
var e = this;
if (!this.columnGroup.isResizable()) {
this.comp.setResizableDisplayed(!1);
return;
}
var r = this.horizontalResizeService.addResizeBar({
eResizeBar: this.eResize,
onResizeStart: this.onResizeStart.bind(this),
onResizing: this.onResizing.bind(this, !1),
onResizeEnd: this.onResizing.bind(this, !0)
});
if (this.addDestroyFunc(r), !this.gridOptionsService.is("suppressAutoSize")) {
var o = this.gridOptionsService.is("skipHeaderOnAutoSize");
this.eResize.addEventListener("dblclick", function() {
var i = [], s = e.columnGroup.getDisplayedLeafColumns();
s.forEach(function(a) {
a.getColDef().suppressAutoSize || i.push(a.getColId());
}), i.length > 0 && e.columnModel.autoSizeColumns({
columns: i,
skipHeader: o,
stopAtGroup: e.columnGroup,
source: "uiColumnResized"
}), e.resizeLeafColumnsToFit("uiColumnResized");
});
}
}, t.prototype.onResizeStart = function(e) {
var r = this;
this.calculateInitialValues();
var o = null;
if (e && (o = this.columnModel.getDisplayedGroupAfter(this.columnGroup)), o) {
var i = o.getDisplayedLeafColumns();
this.resizeTakeFromCols = i.filter(function(s) {
return s.isResizable();
}), this.resizeTakeFromStartWidth = 0, this.resizeTakeFromCols.forEach(function(s) {
return r.resizeTakeFromStartWidth += s.getActualWidth();
}), this.resizeTakeFromRatios = [], this.resizeTakeFromCols.forEach(function(s) {
return r.resizeTakeFromRatios.push(s.getActualWidth() / r.resizeTakeFromStartWidth);
});
} else
this.resizeTakeFromCols = null, this.resizeTakeFromStartWidth = null, this.resizeTakeFromRatios = null;
this.comp.addOrRemoveCssClass("ag-column-resizing", !0);
}, t.prototype.onResizing = function(e, r, o) {
o === void 0 && (o = "uiColumnResized");
var i = this.normaliseDragChange(r), s = this.resizeStartWidth + i;
this.resizeColumns(s, o, e);
}, t.prototype.resizeLeafColumnsToFit = function(e) {
var r = this.autoWidthCalculator.getPreferredWidthForColumnGroup(this.columnGroup);
this.calculateInitialValues(), r > this.resizeStartWidth && this.resizeColumns(r, e, !0);
}, t.prototype.resizeColumns = function(e, r, o) {
o === void 0 && (o = !0);
var i = [];
if (i.push({
columns: this.resizeCols,
ratios: this.resizeRatios,
width: e
}), this.resizeTakeFromCols) {
var s = e - this.resizeStartWidth;
i.push({
columns: this.resizeTakeFromCols,
ratios: this.resizeTakeFromRatios,
width: this.resizeTakeFromStartWidth - s
});
}
this.columnModel.resizeColumnSets({
resizeSets: i,
finished: o,
source: r
}), o && this.comp.addOrRemoveCssClass("ag-column-resizing", !1);
}, t.prototype.calculateInitialValues = function() {
var e = this, r = this.columnGroup.getDisplayedLeafColumns();
this.resizeCols = r.filter(function(o) {
return o.isResizable();
}), this.resizeStartWidth = 0, this.resizeCols.forEach(function(o) {
return e.resizeStartWidth += o.getActualWidth();
}), this.resizeRatios = [], this.resizeCols.forEach(function(o) {
return e.resizeRatios.push(o.getActualWidth() / e.resizeStartWidth);
});
}, t.prototype.normaliseDragChange = function(e) {
var r = e;
return this.gridOptionsService.is("enableRtl") ? this.pinned !== "left" && (r *= -1) : this.pinned === "right" && (r *= -1), r;
}, oo([
h("horizontalResizeService")
], t.prototype, "horizontalResizeService", void 0), oo([
h("autoWidthCalculator")
], t.prototype, "autoWidthCalculator", void 0), oo([
h("columnModel")
], t.prototype, "columnModel", void 0), oo([
b
], t.prototype, "postConstruct", null), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Qf = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Xf = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Jf = (
/** @class */
function(n) {
Qf(t, n);
function t(e, r) {
var o = n.call(this) || this;
return o.removeChildListenersFuncs = [], o.columnGroup = r, o.comp = e, o;
}
return t.prototype.postConstruct = function() {
this.addListenersToChildrenColumns(), this.addManagedListener(this.columnGroup, Oe.EVENT_DISPLAYED_CHILDREN_CHANGED, this.onDisplayedChildrenChanged.bind(this)), this.onWidthChanged(), this.addDestroyFunc(this.removeListenersOnChildrenColumns.bind(this));
}, t.prototype.addListenersToChildrenColumns = function() {
var e = this;
this.removeListenersOnChildrenColumns();
var r = this.onWidthChanged.bind(this);
this.columnGroup.getLeafColumns().forEach(function(o) {
o.addEventListener("widthChanged", r), o.addEventListener("visibleChanged", r), e.removeChildListenersFuncs.push(function() {
o.removeEventListener("widthChanged", r), o.removeEventListener("visibleChanged", r);
});
});
}, t.prototype.removeListenersOnChildrenColumns = function() {
this.removeChildListenersFuncs.forEach(function(e) {
return e();
}), this.removeChildListenersFuncs = [];
}, t.prototype.onDisplayedChildrenChanged = function() {
this.addListenersToChildrenColumns(), this.onWidthChanged();
}, t.prototype.onWidthChanged = function() {
var e = this.columnGroup.getActualWidth();
this.comp.setWidth(e + "px"), this.comp.addOrRemoveCssClass("ag-hidden", e === 0);
}, Xf([
b
], t.prototype, "postConstruct", null), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Zf = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), io = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, ev = (
/** @class */
function(n) {
Zf(t, n);
function t(e, r) {
var o = n.call(this, e, r) || this;
return o.columnGroup = e, o;
}
return t.prototype.setComp = function(e, r, o) {
n.prototype.setGui.call(this, r), this.comp = e, this.displayName = this.columnModel.getDisplayNameForColumnGroup(this.columnGroup, "header"), this.addClasses(), this.addAttributes(), this.setupMovingCss(), this.setupExpandable(), this.setupTooltip(), this.setupUserComp();
var i = this.getParentRowCtrl().getPinned(), s = this.columnGroup.getProvidedColumnGroup().getLeafColumns();
this.createManagedBean(new ls(s, r)), this.createManagedBean(new as(this.columnGroup, r, this.beans)), this.createManagedBean(new Jf(e, this.columnGroup)), this.groupResizeFeature = this.createManagedBean(new qf(e, o, i, this.columnGroup)), this.createManagedBean(new Et(r, {
shouldStopEventPropagation: this.shouldStopEventPropagation.bind(this),
onTabKeyDown: function() {
},
handleKeyDown: this.handleKeyDown.bind(this),
onFocusIn: this.onFocusIn.bind(this)
}));
}, t.prototype.resizeLeafColumnsToFit = function(e) {
var r, o;
(r = this.groupResizeFeature) === null || r === void 0 || r.onResizeStart(!1), (o = this.groupResizeFeature) === null || o === void 0 || o.resizeLeafColumnsToFit(e);
}, t.prototype.setupUserComp = function() {
var e = this, r = this.displayName, o = {
displayName: this.displayName,
columnGroup: this.columnGroup,
setExpanded: function(u) {
e.columnModel.setColumnGroupOpened(e.columnGroup.getProvidedColumnGroup(), u, "gridInitializing");
},
api: this.gridApi,
columnApi: this.columnApi,
context: this.gridOptionsService.context
};
if (!r) {
for (var i = this.columnGroup, s = i.getLeafColumns(); i.getParent() && i.getParent().getLeafColumns().length === s.length; )
i = i.getParent();
var a = i.getColGroupDef();
a && (r = a.headerName), r || (r = s ? this.columnModel.getDisplayNameForColumn(s[0], "header", !0) : "");
}
var l = this.userComponentFactory.getHeaderGroupCompDetails(o);
this.comp.setUserCompDetails(l);
}, t.prototype.setupTooltip = function() {
var e = this, r = this.columnGroup.getColGroupDef(), o = {
getColumn: function() {
return e.columnGroup;
},
getGui: function() {
return e.eGui;
},
getLocation: function() {
return "headerGroup";
},
getTooltipValue: function() {
return r && r.headerTooltip;
}
};
r && (o.getColDef = function() {
return r;
});
var i = this.createManagedBean(new ns(o, this.beans));
i.setComp(this.comp);
}, t.prototype.setupExpandable = function() {
var e = this.columnGroup.getProvidedColumnGroup();
this.refreshExpanded(), this.addManagedListener(e, re.EVENT_EXPANDABLE_CHANGED, this.refreshExpanded.bind(this)), this.addManagedListener(e, re.EVENT_EXPANDED_CHANGED, this.refreshExpanded.bind(this));
}, t.prototype.refreshExpanded = function() {
var e = this.columnGroup;
this.expandable = e.isExpandable();
var r = e.isExpanded();
this.expandable ? this.comp.setAriaExpanded(r ? "true" : "false") : this.comp.setAriaExpanded(void 0);
}, t.prototype.addAttributes = function() {
this.comp.setColId(this.columnGroup.getUniqueId());
}, t.prototype.addClasses = function() {
var e = this, r = this.columnGroup.getColGroupDef(), o = jl.getHeaderClassesFromColDef(r, this.gridOptionsService, null, this.columnGroup);
if (this.columnGroup.isPadding()) {
o.push("ag-header-group-cell-no-group");
var i = this.columnGroup.getLeafColumns();
i.every(function(s) {
return s.isSpanHeaderHeight();
}) && o.push("ag-header-span-height");
} else
o.push("ag-header-group-cell-with-group");
o.forEach(function(s) {
return e.comp.addOrRemoveCssClass(s, !0);
});
}, t.prototype.setupMovingCss = function() {
var e = this, r = this.columnGroup.getProvidedColumnGroup(), o = r.getLeafColumns(), i = function() {
return e.comp.addOrRemoveCssClass("ag-header-cell-moving", e.columnGroup.isMoving());
};
o.forEach(function(s) {
e.addManagedListener(s, Z.EVENT_MOVING_CHANGED, i);
}), i();
}, t.prototype.onFocusIn = function(e) {
if (!this.eGui.contains(e.relatedTarget)) {
var r = this.getRowIndex();
this.beans.focusService.setFocusedHeader(r, this.columnGroup);
}
}, t.prototype.handleKeyDown = function(e) {
n.prototype.handleKeyDown.call(this, e);
var r = this.getWrapperHasFocus();
if (!(!this.expandable || !r) && e.key === _.ENTER) {
var o = this.columnGroup, i = !o.isExpanded();
this.columnModel.setColumnGroupOpened(o.getProvidedColumnGroup(), i, "uiColumnExpanded");
}
}, t.prototype.setDragSource = function(e) {
var r = this;
if (!this.isSuppressMoving()) {
var o = this.columnGroup.getProvidedColumnGroup().getLeafColumns(), i = !this.gridOptionsService.is("suppressDragLeaveHidesColumns"), s = {
type: me.HeaderCell,
eElement: e,
defaultIconName: i ? pe.ICON_HIDE : pe.ICON_NOT_ALLOWED,
dragItemName: this.displayName,
// we add in the original group leaf columns, so we move both visible and non-visible items
getDragItem: this.getDragItemForGroup.bind(this),
onDragStarted: function() {
return o.forEach(function(a) {
return a.setMoving(!0, "uiColumnDragged");
});
},
onDragStopped: function() {
return o.forEach(function(a) {
return a.setMoving(!1, "uiColumnDragged");
});
},
onGridEnter: function(a) {
var l;
if (i) {
var u = ((l = a == null ? void 0 : a.columns) === null || l === void 0 ? void 0 : l.filter(function(c) {
return !c.getColDef().lockVisible;
})) || [];
r.columnModel.setColumnsVisible(u, !0, "uiColumnMoved");
}
},
onGridExit: function(a) {
var l;
if (i) {
var u = ((l = a == null ? void 0 : a.columns) === null || l === void 0 ? void 0 : l.filter(function(c) {
return !c.getColDef().lockVisible;
})) || [];
r.columnModel.setColumnsVisible(u, !1, "uiColumnMoved");
}
}
};
this.dragAndDropService.addDragSource(s, !0), this.addDestroyFunc(function() {
return r.dragAndDropService.removeDragSource(s);
});
}
}, t.prototype.getDragItemForGroup = function() {
var e = this.columnGroup.getProvidedColumnGroup().getLeafColumns(), r = {};
e.forEach(function(i) {
return r[i.getId()] = i.isVisible();
});
var o = [];
return this.columnModel.getAllDisplayedColumns().forEach(function(i) {
e.indexOf(i) >= 0 && (o.push(i), ge(e, i));
}), e.forEach(function(i) {
return o.push(i);
}), {
columns: o,
visibleState: r
};
}, t.prototype.isSuppressMoving = function() {
var e = !1;
this.columnGroup.getLeafColumns().forEach(function(o) {
(o.getColDef().suppressMovable || o.getColDef().lockPosition) && (e = !0);
});
var r = e || this.gridOptionsService.is("suppressMovableColumns");
return r;
}, io([
h("columnModel")
], t.prototype, "columnModel", void 0), io([
h("dragAndDropService")
], t.prototype, "dragAndDropService", void 0), io([
h("gridApi")
], t.prototype, "gridApi", void 0), io([
h("columnApi")
], t.prototype, "columnApi", void 0), t;
}(ii)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var tv = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Gs = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, rv = 0, Ni = (
/** @class */
function(n) {
tv(t, n);
function t(e, r, o) {
var i = n.call(this) || this;
return i.instanceId = rv++, i.headerCellCtrls = {}, i.rowIndex = e, i.pinned = r, i.type = o, i;
}
return t.prototype.getInstanceId = function() {
return this.instanceId;
}, t.prototype.setComp = function(e) {
this.comp = e, this.onRowHeightChanged(), this.onVirtualColumnsChanged(), this.setWidth(), this.addEventListeners(), rt() && this.comp.setTransform("translateZ(0)"), e.setAriaRowIndex(this.rowIndex + 1);
}, t.prototype.addEventListeners = function() {
this.addManagedListener(this.eventService, v.EVENT_COLUMN_RESIZED, this.onColumnResized.bind(this)), this.addManagedListener(this.eventService, v.EVENT_DISPLAYED_COLUMNS_CHANGED, this.onDisplayedColumnsChanged.bind(this)), this.addManagedListener(this.eventService, v.EVENT_VIRTUAL_COLUMNS_CHANGED, this.onVirtualColumnsChanged.bind(this)), this.addManagedListener(this.eventService, v.EVENT_COLUMN_HEADER_HEIGHT_CHANGED, this.onRowHeightChanged.bind(this)), this.addManagedListener(this.eventService, v.EVENT_GRID_STYLES_CHANGED, this.onRowHeightChanged.bind(this)), this.addManagedPropertyListener("domLayout", this.onDisplayedColumnsChanged.bind(this)), this.addManagedPropertyListener("headerHeight", this.onRowHeightChanged.bind(this)), this.addManagedPropertyListener("pivotHeaderHeight", this.onRowHeightChanged.bind(this)), this.addManagedPropertyListener("groupHeaderHeight", this.onRowHeightChanged.bind(this)), this.addManagedPropertyListener("pivotGroupHeaderHeight", this.onRowHeightChanged.bind(this)), this.addManagedPropertyListener("floatingFiltersHeight", this.onRowHeightChanged.bind(this));
}, t.prototype.getHeaderCellCtrl = function(e) {
return Vr(this.headerCellCtrls).find(function(r) {
return r.getColumnGroupChild() === e;
});
}, t.prototype.onDisplayedColumnsChanged = function() {
this.onVirtualColumnsChanged(), this.setWidth(), this.onRowHeightChanged();
}, t.prototype.getType = function() {
return this.type;
}, t.prototype.onColumnResized = function() {
this.setWidth();
}, t.prototype.setWidth = function() {
var e = this.getWidthForRow();
this.comp.setWidth(e + "px");
}, t.prototype.getWidthForRow = function() {
var e = this.gridOptionsService.isDomLayout("print");
if (e) {
var r = this.pinned != null;
return r ? 0 : this.columnModel.getContainerWidth("right") + this.columnModel.getContainerWidth("left") + this.columnModel.getContainerWidth(null);
}
return this.columnModel.getContainerWidth(this.pinned);
}, t.prototype.onRowHeightChanged = function() {
var e = this.columnModel.getHeaderRowCount(), r = [], o = 0;
this.columnModel.hasFloatingFilters() && (e++, o = 1);
for (var i = this.columnModel.getColumnGroupHeaderRowHeight(), s = this.columnModel.getColumnHeaderRowHeight(), a = 1 + o, l = e - a, u = 0; u < l; u++)
r.push(i);
r.push(s);
for (var u = 0; u < o; u++)
r.push(this.columnModel.getFloatingFiltersHeight());
for (var c = 0, u = 0; u < this.rowIndex; u++)
c += r[u];
var p = r[this.rowIndex] + "px";
this.comp.setTop(c + "px"), this.comp.setHeight(p);
}, t.prototype.getPinned = function() {
return this.pinned;
}, t.prototype.getRowIndex = function() {
return this.rowIndex;
}, t.prototype.onVirtualColumnsChanged = function() {
var e = this, r = this.headerCellCtrls;
this.headerCellCtrls = {};
var o = this.getColumnsInViewport();
o.forEach(function(a) {
if (!a.isEmptyGroup()) {
var l = a.getUniqueId(), u = r[l];
delete r[l];
var c = u && u.getColumnGroupChild() != a;
if (c && (e.destroyBean(u), u = void 0), u == null)
switch (e.type) {
case he.FLOATING_FILTER:
u = e.createBean(new Wf(a, e));
break;
case he.COLUMN_GROUP:
u = e.createBean(new ev(a, e));
break;
default:
u = e.createBean(new $f(a, e));
break;
}
e.headerCellCtrls[l] = u;
}
});
var i = function(a) {
var l = e.focusService.isHeaderWrapperFocused(a);
if (!l)
return !1;
var u = e.columnModel.isDisplayed(a.getColumnGroupChild());
return u;
};
J(r, function(a, l) {
var u = i(l);
u ? e.headerCellCtrls[a] = l : e.destroyBean(l);
});
var s = et(this.headerCellCtrls);
this.comp.setHeaderCtrls(s);
}, t.prototype.getColumnsInViewport = function() {
var e = this.gridOptionsService.isDomLayout("print");
return e ? this.getColumnsInViewportPrintLayout() : this.getColumnsInViewportNormalLayout();
}, t.prototype.getColumnsInViewportPrintLayout = function() {
var e = this;
if (this.pinned != null)
return [];
var r = [], o = this.getActualDepth();
return ["left", null, "right"].forEach(function(i) {
var s = e.columnModel.getVirtualHeaderGroupRow(i, o);
r = r.concat(s);
}), r;
}, t.prototype.getActualDepth = function() {
return this.type == he.FLOATING_FILTER ? this.rowIndex - 1 : this.rowIndex;
}, t.prototype.getColumnsInViewportNormalLayout = function() {
return this.columnModel.getVirtualHeaderGroupRow(this.pinned, this.getActualDepth());
}, t.prototype.focusHeader = function(e, r) {
var o = et(this.headerCellCtrls), i = o.find(function(s) {
return s.getColumnGroupChild() == e;
});
return i ? (i.focus(r), !0) : !1;
}, t.prototype.destroy = function() {
var e = this;
J(this.headerCellCtrls, function(r, o) {
e.destroyBean(o);
}), this.headerCellCtrls = {}, n.prototype.destroy.call(this);
}, Gs([
h("columnModel")
], t.prototype, "columnModel", void 0), Gs([
h("focusService")
], t.prototype, "focusService", void 0), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var ov = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), fr = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, iv = function(n, t) {
var e = typeof Symbol == "function" && n[Symbol.iterator];
if (!e)
return n;
var r = e.call(n), o, i = [], s;
try {
for (; (t === void 0 || t-- > 0) && !(o = r.next()).done; )
i.push(o.value);
} catch (a) {
s = { error: a };
} finally {
try {
o && !o.done && (e = r.return) && e.call(r);
} finally {
if (s)
throw s.error;
}
}
return i;
}, nv = function() {
for (var n = [], t = 0; t < arguments.length; t++)
n = n.concat(iv(arguments[t]));
return n;
}, sv = (
/** @class */
function(n) {
ov(t, n);
function t(e) {
var r = n.call(this) || this;
return r.hidden = !1, r.groupsRowCtrls = [], r.pinned = e, r;
}
return t.prototype.setComp = function(e, r) {
this.comp = e, this.eViewport = r, this.setupCenterWidth(), this.setupPinnedWidth(), this.setupDragAndDrop(this.eViewport), this.addManagedListener(this.eventService, v.EVENT_GRID_COLUMNS_CHANGED, this.onGridColumnsChanged.bind(this)), this.ctrlsService.registerHeaderContainer(this, this.pinned), this.columnModel.isReady() && this.refresh();
}, t.prototype.setupDragAndDrop = function(e) {
var r = new Tf(this.pinned, e);
this.createManagedBean(r);
}, t.prototype.refresh = function(e) {
var r = this;
e === void 0 && (e = !1);
var o = new er(), i = this.focusService.getFocusHeaderToUseAfterRefresh(), s = function() {
var c = r.columnModel.getHeaderRowCount() - 1;
r.groupsRowCtrls = r.destroyBeans(r.groupsRowCtrls);
for (var p = 0; p < c; p++) {
var d = r.createBean(new Ni(o.next(), r.pinned, he.COLUMN_GROUP));
r.groupsRowCtrls.push(d);
}
}, a = function() {
var c = o.next(), p = !r.hidden && (r.columnsRowCtrl == null || !e || r.columnsRowCtrl.getRowIndex() !== c), d = p || r.hidden;
d && (r.columnsRowCtrl = r.destroyBean(r.columnsRowCtrl)), p && (r.columnsRowCtrl = r.createBean(new Ni(c, r.pinned, he.COLUMN)));
}, l = function() {
var c = r.columnModel.hasFloatingFilters() && !r.hidden, p = function() {
r.filtersRowCtrl = r.destroyBean(r.filtersRowCtrl);
};
if (!c) {
p();
return;
}
var d = o.next();
if (r.filtersRowCtrl) {
var f = r.filtersRowCtrl.getRowIndex() !== d;
(!e || f) && p();
}
r.filtersRowCtrl || (r.filtersRowCtrl = r.createBean(new Ni(d, r.pinned, he.FLOATING_FILTER)));
};
s(), a(), l();
var u = this.getAllCtrls();
this.comp.setCtrls(u), this.restoreFocusOnHeader(i);
}, t.prototype.restoreFocusOnHeader = function(e) {
e == null || e.column.getPinned() != this.pinned || this.focusService.focusHeaderPosition({ headerPosition: e });
}, t.prototype.getAllCtrls = function() {
var e = nv(this.groupsRowCtrls);
return this.columnsRowCtrl && e.push(this.columnsRowCtrl), this.filtersRowCtrl && e.push(this.filtersRowCtrl), e;
}, t.prototype.onGridColumnsChanged = function() {
this.refresh(!0);
}, t.prototype.setupCenterWidth = function() {
var e = this;
this.pinned == null && this.createManagedBean(new ss(function(r) {
return e.comp.setCenterWidth(r + "px");
}, !0));
}, t.prototype.setHorizontalScroll = function(e) {
this.comp.setViewportScrollLeft(e);
}, t.prototype.setupPinnedWidth = function() {
var e = this;
if (this.pinned != null) {
var r = this.pinned === "left", o = this.pinned === "right";
this.hidden = !0;
var i = function() {
var s = r ? e.pinnedWidthService.getPinnedLeftWidth() : e.pinnedWidthService.getPinnedRightWidth();
if (s != null) {
var a = s == 0, l = e.hidden !== a, u = e.gridOptionsService.is("enableRtl"), c = e.gridOptionsService.getScrollbarWidth(), p = e.scrollVisibleService.isVerticalScrollShowing() && (u && r || !u && o), d = p ? s + c : s;
e.comp.setPinnedContainerWidth(d + "px"), e.comp.setDisplayed(!a), l && (e.hidden = a, e.refresh());
}
};
this.addManagedListener(this.eventService, v.EVENT_LEFT_PINNED_WIDTH_CHANGED, i), this.addManagedListener(this.eventService, v.EVENT_RIGHT_PINNED_WIDTH_CHANGED, i), this.addManagedListener(this.eventService, v.EVENT_SCROLL_VISIBILITY_CHANGED, i), this.addManagedListener(this.eventService, v.EVENT_SCROLLBAR_WIDTH_CHANGED, i);
}
}, t.prototype.getHeaderCtrlForColumn = function(e) {
if (e instanceof Z)
return this.columnsRowCtrl ? this.columnsRowCtrl.getHeaderCellCtrl(e) : void 0;
if (this.groupsRowCtrls.length !== 0)
for (var r = 0; r < this.groupsRowCtrls.length; r++) {
var o = this.groupsRowCtrls[r].getHeaderCellCtrl(e);
if (o)
return o;
}
}, t.prototype.getHtmlElementForColumnHeader = function(e) {
var r = this.getHeaderCtrlForColumn(e);
return r ? r.getGui() : null;
}, t.prototype.getRowType = function(e) {
var r = this.getAllCtrls(), o = r[e];
return o ? o.getType() : void 0;
}, t.prototype.focusHeader = function(e, r, o) {
var i = this.getAllCtrls(), s = i[e];
return s ? s.focusHeader(r, o) : !1;
}, t.prototype.getRowCount = function() {
return this.groupsRowCtrls.length + (this.columnsRowCtrl ? 1 : 0) + (this.filtersRowCtrl ? 1 : 0);
}, t.prototype.destroy = function() {
this.filtersRowCtrl && (this.filtersRowCtrl = this.destroyBean(this.filtersRowCtrl)), this.columnsRowCtrl && (this.columnsRowCtrl = this.destroyBean(this.columnsRowCtrl)), this.groupsRowCtrls && this.groupsRowCtrls.length && (this.groupsRowCtrls = this.destroyBeans(this.groupsRowCtrls)), n.prototype.destroy.call(this);
}, fr([
h("ctrlsService")
], t.prototype, "ctrlsService", void 0), fr([
h("scrollVisibleService")
], t.prototype, "scrollVisibleService", void 0), fr([
h("pinnedWidthService")
], t.prototype, "pinnedWidthService", void 0), fr([
h("columnModel")
], t.prototype, "columnModel", void 0), fr([
h("focusService")
], t.prototype, "focusService", void 0), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var av = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Gi = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Hi = (
/** @class */
function(n) {
av(t, n);
function t(e) {
var r = n.call(this) || this;
return r.headerRowComps = {}, r.rowCompsList = [], r.pinned = e, r;
}
return t.prototype.init = function() {
var e = this;
this.selectAndSetTemplate();
var r = {
setDisplayed: function(i) {
return e.setDisplayed(i);
},
setCtrls: function(i) {
return e.setCtrls(i);
},
// only gets called for center section
setCenterWidth: function(i) {
return e.eCenterContainer.style.width = i;
},
setViewportScrollLeft: function(i) {
return e.getGui().scrollLeft = i;
},
// only gets called for pinned sections
setPinnedContainerWidth: function(i) {
var s = e.getGui();
s.style.width = i, s.style.maxWidth = i, s.style.minWidth = i;
}
}, o = this.createManagedBean(new sv(this.pinned));
o.setComp(r, this.getGui());
}, t.prototype.selectAndSetTemplate = function() {
var e = this.pinned == "left", r = this.pinned == "right", o = e ? t.PINNED_LEFT_TEMPLATE : r ? t.PINNED_RIGHT_TEMPLATE : t.CENTER_TEMPLATE;
this.setTemplate(o), this.eRowContainer = this.eCenterContainer ? this.eCenterContainer : this.getGui();
}, t.prototype.destroyRowComps = function() {
this.setCtrls([]);
}, t.prototype.destroyRowComp = function(e) {
this.destroyBean(e), this.eRowContainer.removeChild(e.getGui());
}, t.prototype.setCtrls = function(e) {
var r = this, o = this.headerRowComps;
this.headerRowComps = {}, this.rowCompsList = [];
var i, s = function(a) {
var l = a.getGui(), u = l.parentElement != r.eRowContainer;
u && r.eRowContainer.appendChild(l), i && zn(r.eRowContainer, l, i), i = l;
};
e.forEach(function(a) {
var l = a.getInstanceId(), u = o[l];
delete o[l];
var c = u || r.createBean(new If(a));
r.headerRowComps[l] = c, r.rowCompsList.push(c), s(c);
}), et(o).forEach(function(a) {
return r.destroyRowComp(a);
});
}, t.PINNED_LEFT_TEMPLATE = '<div class="ag-pinned-left-header" role="presentation"></div>', t.PINNED_RIGHT_TEMPLATE = '<div class="ag-pinned-right-header" role="presentation"></div>', t.CENTER_TEMPLATE = `<div class="ag-header-viewport" role="presentation">
<div class="ag-header-container" ref="eCenterContainer" role="rowgroup"></div>
</div>`, Gi([
P("eCenterContainer")
], t.prototype, "eCenterContainer", void 0), Gi([
b
], t.prototype, "init", null), Gi([
fe
], t.prototype, "destroyRowComps", null), t;
}(W)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var lv = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), vr = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Xe;
(function(n) {
n[n.UP = 0] = "UP", n[n.DOWN = 1] = "DOWN", n[n.LEFT = 2] = "LEFT", n[n.RIGHT = 3] = "RIGHT";
})(Xe || (Xe = {}));
var uv = (
/** @class */
function(n) {
lv(t, n);
function t() {
return n !== null && n.apply(this, arguments) || this;
}
return t.prototype.postConstruct = function() {
var e = this;
this.ctrlsService.whenReady(function(r) {
e.gridBodyCon = r.gridBodyCtrl;
});
}, t.prototype.getHeaderRowCount = function() {
var e = this.ctrlsService.getHeaderRowContainerCtrl();
return e ? e.getRowCount() : 0;
}, t.prototype.navigateVertically = function(e, r, o) {
if (r || (r = this.focusService.getFocusedHeader()), !r)
return !1;
var i = r.headerRowIndex, s = r.column, a = this.getHeaderRowCount(), l = e === Xe.UP, u = l ? this.headerPositionUtils.getColumnVisibleParent(s, i) : this.headerPositionUtils.getColumnVisibleChild(s, i), c = u.nextRow, p = u.nextFocusColumn, d = !1;
return c < 0 && (c = 0, p = s, d = !0), c >= a && (c = -1), !d && !p ? !1 : this.focusService.focusHeaderPosition({
headerPosition: { headerRowIndex: c, column: p },
allowUserOverride: !0,
event: o
});
}, t.prototype.navigateHorizontally = function(e, r, o) {
r === void 0 && (r = !1);
var i = this.focusService.getFocusedHeader(), s = e === Xe.LEFT, a = this.gridOptionsService.is("enableRtl"), l, u;
return s !== a ? (u = "Before", l = this.headerPositionUtils.findHeader(i, u)) : (u = "After", l = this.headerPositionUtils.findHeader(i, u)), l || !r ? this.focusService.focusHeaderPosition({
headerPosition: l,
direction: u,
fromTab: r,
allowUserOverride: !0,
event: o
}) : this.focusNextHeaderRow(i, u, o);
}, t.prototype.focusNextHeaderRow = function(e, r, o) {
var i = e.headerRowIndex, s = null, a;
return r === "Before" ? i > 0 && (a = i - 1, s = this.headerPositionUtils.findColAtEdgeForHeaderRow(a, "end")) : (a = i + 1, s = this.headerPositionUtils.findColAtEdgeForHeaderRow(a, "start")), this.focusService.focusHeaderPosition({
headerPosition: s,
direction: r,
fromTab: !0,
allowUserOverride: !0,
event: o
});
}, t.prototype.scrollToColumn = function(e, r) {
if (r === void 0 && (r = "After"), !e.getPinned()) {
var o;
if (e instanceof Oe) {
var i = e.getDisplayedLeafColumns();
o = r === "Before" ? q(i) : i[0];
} else
o = e;
this.gridBodyCon.getScrollFeature().ensureColumnVisible(o);
}
}, vr([
h("focusService")
], t.prototype, "focusService", void 0), vr([
h("headerPositionUtils")
], t.prototype, "headerPositionUtils", void 0), vr([
h("ctrlsService")
], t.prototype, "ctrlsService", void 0), vr([
b
], t.prototype, "postConstruct", null), t = vr([
A("headerNavigationService")
], t), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var cv = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), no = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, pv = (
/** @class */
function(n) {
cv(t, n);
function t() {
return n !== null && n.apply(this, arguments) || this;
}
return t.prototype.setComp = function(e, r, o) {
this.comp = e, this.eGui = r, this.createManagedBean(new Et(o, {
onTabKeyDown: this.onTabKeyDown.bind(this),
handleKeyDown: this.handleKeyDown.bind(this),
onFocusOut: this.onFocusOut.bind(this)
})), this.addManagedListener(this.eventService, v.EVENT_COLUMN_PIVOT_MODE_CHANGED, this.onPivotModeChanged.bind(this)), this.addManagedListener(this.eventService, v.EVENT_DISPLAYED_COLUMNS_CHANGED, this.onDisplayedColumnsChanged.bind(this)), this.onPivotModeChanged(), this.setupHeaderHeight(), this.ctrlsService.registerGridHeaderCtrl(this);
}, t.prototype.setupHeaderHeight = function() {
var e = this.setHeaderHeight.bind(this);
e(), this.addManagedPropertyListener("headerHeight", e), this.addManagedPropertyListener("pivotHeaderHeight", e), this.addManagedPropertyListener("groupHeaderHeight", e), this.addManagedPropertyListener("pivotGroupHeaderHeight", e), this.addManagedPropertyListener("floatingFiltersHeight", e), this.addManagedListener(this.eventService, v.EVENT_DISPLAYED_COLUMNS_CHANGED, e), this.addManagedListener(this.eventService, v.EVENT_COLUMN_HEADER_HEIGHT_CHANGED, e), this.addManagedListener(this.eventService, v.EVENT_GRID_STYLES_CHANGED, e);
}, t.prototype.getHeaderHeight = function() {
return this.headerHeight;
}, t.prototype.setHeaderHeight = function() {
var e = this.columnModel, r = 0, o = e.getHeaderRowCount(), i, s = e.hasFloatingFilters();
s && (o++, r = 1);
var a = this.columnModel.getColumnGroupHeaderRowHeight(), l = this.columnModel.getColumnHeaderRowHeight(), u = 1 + r, c = o - u;
if (i = r * e.getFloatingFiltersHeight(), i += c * a, i += l, this.headerHeight !== i) {
this.headerHeight = i;
var p = i + 1 + "px";
this.comp.setHeightAndMinHeight(p), this.eventService.dispatchEvent({
type: v.EVENT_HEADER_HEIGHT_CHANGED
});
}
}, t.prototype.onPivotModeChanged = function() {
var e = this.columnModel.isPivotMode();
this.comp.addOrRemoveCssClass("ag-pivot-on", e), this.comp.addOrRemoveCssClass("ag-pivot-off", !e);
}, t.prototype.onDisplayedColumnsChanged = function() {
var e = this.columnModel.getAllDisplayedColumns(), r = e.some(function(o) {
return o.isSpanHeaderHeight();
});
this.comp.addOrRemoveCssClass("ag-header-allow-overflow", r);
}, t.prototype.onTabKeyDown = function(e) {
var r = this.gridOptionsService.is("enableRtl"), o = e.shiftKey !== r ? Xe.LEFT : Xe.RIGHT;
(this.headerNavigationService.navigateHorizontally(o, !0, e) || this.focusService.focusNextGridCoreContainer(e.shiftKey)) && e.preventDefault();
}, t.prototype.handleKeyDown = function(e) {
var r = null;
switch (e.key) {
case _.LEFT:
r = Xe.LEFT;
case _.RIGHT:
O(r) || (r = Xe.RIGHT), this.headerNavigationService.navigateHorizontally(r, !1, e);
break;
case _.UP:
r = Xe.UP;
case _.DOWN:
O(r) || (r = Xe.DOWN), this.headerNavigationService.navigateVertically(r, null, e) && e.preventDefault();
break;
default:
return;
}
}, t.prototype.onFocusOut = function(e) {
var r = this.gridOptionsService.getDocument(), o = e.relatedTarget;
!o && this.eGui.contains(r.activeElement) || this.eGui.contains(o) || this.focusService.clearFocusedHeader();
}, no([
h("headerNavigationService")
], t.prototype, "headerNavigationService", void 0), no([
h("focusService")
], t.prototype, "focusService", void 0), no([
h("columnModel")
], t.prototype, "columnModel", void 0), no([
h("ctrlsService")
], t.prototype, "ctrlsService", void 0), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var dv = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), hv = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, fv = (
/** @class */
function(n) {
dv(t, n);
function t() {
return n.call(this, t.TEMPLATE) || this;
}
return t.prototype.postConstruct = function() {
var e = this, r = {
addOrRemoveCssClass: function(s, a) {
return e.addOrRemoveCssClass(s, a);
},
setHeightAndMinHeight: function(s) {
e.getGui().style.height = s, e.getGui().style.minHeight = s;
}
}, o = this.createManagedBean(new pv());
o.setComp(r, this.getGui(), this.getFocusableElement());
var i = function(s) {
e.createManagedBean(s), e.appendChild(s);
};
i(new Hi("left")), i(new Hi(null)), i(new Hi("right"));
}, t.TEMPLATE = '<div class="ag-header" role="presentation"/>', hv([
b
], t.prototype, "postConstruct", null), t;
}(W)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var vv = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Vi = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, gv = (
/** @class */
function(n) {
vv(t, n);
function t() {
return n !== null && n.apply(this, arguments) || this;
}
return t.prototype.addResizeBar = function(e) {
var r = this, o = {
dragStartPixels: e.dragStartPixels || 0,
eElement: e.eResizeBar,
onDragStart: this.onDragStart.bind(this, e),
onDragStop: this.onDragStop.bind(this, e),
onDragging: this.onDragging.bind(this, e)
};
this.dragService.addDragSource(o, !0);
var i = function() {
return r.dragService.removeDragSource(o);
};
return i;
}, t.prototype.onDragStart = function(e, r) {
this.dragStartX = r.clientX, this.setResizeIcons();
var o = r instanceof MouseEvent && r.shiftKey === !0;
e.onResizeStart(o);
}, t.prototype.setResizeIcons = function() {
var e = this.ctrlsService.getGridCtrl();
e.setResizeCursor(!0), e.disableUserSelect(!0);
}, t.prototype.onDragStop = function(e, r) {
e.onResizeEnd(this.resizeAmount), this.resetIcons();
}, t.prototype.resetIcons = function() {
var e = this.ctrlsService.getGridCtrl();
e.setResizeCursor(!1), e.disableUserSelect(!1);
}, t.prototype.onDragging = function(e, r) {
this.resizeAmount = r.clientX - this.dragStartX, e.onResizing(this.resizeAmount);
}, Vi([
h("dragService")
], t.prototype, "dragService", void 0), Vi([
h("ctrlsService")
], t.prototype, "ctrlsService", void 0), t = Vi([
A("horizontalResizeService")
], t), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var yv = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), gr = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Cv = (
/** @class */
function(n) {
yv(t, n);
function t() {
return n !== null && n.apply(this, arguments) || this;
}
return t.prototype.hideActiveMenu = function() {
this.hidePopup && this.hidePopup();
}, t.prototype.showMenuAfterMouseEvent = function(e, r) {
var o = this;
this.showPopup(e, function(i) {
o.popupService.positionPopupUnderMouseEvent({
column: e,
type: "columnMenu",
mouseEvent: r,
ePopup: i
});
}, "columnMenu", r.target);
}, t.prototype.showMenuAfterButtonClick = function(e, r, o) {
var i = this;
this.showPopup(e, function(s) {
i.popupService.positionPopupByComponent({
type: o,
eventSource: r,
ePopup: s,
keepWithinBounds: !0,
position: "under",
column: e
});
}, o, r);
}, t.prototype.showPopup = function(e, r, o, i) {
var s = this, a = this.filterManager.getOrCreateFilterWrapper(e, "COLUMN_MENU");
if (!a)
throw new Error("AG Grid - unable to show popup filter, filter instantiation failed");
var l = document.createElement("div");
le(l, "presentation"), l.classList.add("ag-menu"), this.tabListener = this.addManagedListener(l, "keydown", function(y) {
return s.trapFocusWithin(y, l);
}), a.guiPromise.then(function(y) {
return l.appendChild(y);
});
var u, c = function() {
var y;
return (y = a.filterPromise) === null || y === void 0 ? void 0 : y.then(function(C) {
var m;
return (m = C == null ? void 0 : C.afterGuiDetached) === null || m === void 0 ? void 0 : m.call(C);
});
}, p = i || this.ctrlsService.getGridBodyCtrl().getGui(), d = function(y) {
e.setMenuVisible(!1, "contextMenu");
var C = y instanceof KeyboardEvent;
if (s.tabListener && (s.tabListener = s.tabListener()), C && i && nr(i)) {
var m = s.focusService.findTabbableParent(i);
m && m.focus();
}
c();
}, f = this.localeService.getLocaleTextFunc(), g = this.popupService.addPopup({
modal: !0,
eChild: l,
closeOnEsc: !0,
closedCallback: d,
positionCallback: function() {
return r(l);
},
anchorToElement: p,
ariaLabel: f("ariaLabelColumnMenu", "Column Menu")
});
g && (this.hidePopup = u = g.hideFunc), a.filterPromise.then(function(y) {
r(l), y.afterGuiAttached && y.afterGuiAttached({ container: o, hidePopup: u });
}), e.setMenuVisible(!0, "contextMenu");
}, t.prototype.trapFocusWithin = function(e, r) {
e.key !== _.TAB || e.defaultPrevented || this.focusService.findNextFocusableElement(r, !1, e.shiftKey) || (e.preventDefault(), this.focusService.focusInto(r, e.shiftKey));
}, t.prototype.isMenuEnabled = function(e) {
return e.isFilterAllowed() && e.getMenuTabs(["filterMenuTab"]).includes("filterMenuTab");
}, gr([
h("filterManager")
], t.prototype, "filterManager", void 0), gr([
h("popupService")
], t.prototype, "popupService", void 0), gr([
h("focusService")
], t.prototype, "focusService", void 0), gr([
h("ctrlsService")
], t.prototype, "ctrlsService", void 0), t = gr([
A("menuFactory")
], t), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var mv = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), so = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
};
(function(n) {
mv(t, n);
function t(e) {
var r = n.call(this, t.getTemplate(e.cssClass)) || this;
return r.items = [], r.tabbedItemScrollMap = /* @__PURE__ */ new Map(), r.params = e, e.items && e.items.forEach(function(o) {
return r.addItem(o);
}), r;
}
return t.prototype.postConstruct = function() {
var e = this;
this.createManagedBean(new Et(this.getFocusableElement(), {
onTabKeyDown: this.onTabKeyDown.bind(this),
handleKeyDown: this.handleKeyDown.bind(this)
})), this.addDestroyFunc(function() {
var r, o, i;
return (i = (o = (r = e.activeItem) === null || r === void 0 ? void 0 : r.tabbedItem) === null || o === void 0 ? void 0 : o.afterDetachedCallback) === null || i === void 0 ? void 0 : i.call(o);
});
}, t.getTemplate = function(e) {
return (
/* html */
'<div class="ag-tabs ' + e + `">
<div ref="eHeader" role="tablist" class="ag-tabs-header ` + (e ? e + "-header" : "") + `"></div>
<div ref="eBody" role="presentation" class="ag-tabs-body ` + (e ? e + "-body" : "") + `"></div>
</div>`
);
}, t.prototype.handleKeyDown = function(e) {
var r = this.gridOptionsService.getDocument();
switch (e.key) {
case _.RIGHT:
case _.LEFT:
if (!this.eHeader.contains(r.activeElement))
return;
var o = e.key === _.RIGHT, i = this.gridOptionsService.is("enableRtl"), s = this.items.indexOf(this.activeItem), a = o !== i ? Math.min(s + 1, this.items.length - 1) : Math.max(s - 1, 0);
if (s === a)
return;
e.preventDefault();
var l = this.items[a];
this.showItemWrapper(l), l.eHeaderButton.focus();
break;
case _.UP:
case _.DOWN:
e.stopPropagation();
break;
}
}, t.prototype.onTabKeyDown = function(e) {
if (!e.defaultPrevented) {
var r = this, o = r.focusService, i = r.eHeader, s = r.eBody, a = r.activeItem, l = this.gridOptionsService.getDocument(), u = l.activeElement, c = e.target;
if (e.preventDefault(), i.contains(u)) {
o.focusInto(s, e.shiftKey);
return;
}
var p = null;
o.isTargetUnderManagedComponent(s, c) && (e.shiftKey && (p = this.focusService.findFocusableElementBeforeTabGuard(s, c)), p || (p = a.eHeaderButton)), !p && s.contains(u) && (p = o.findNextFocusableElement(s, !1, e.shiftKey), p || (p = a.eHeaderButton)), p && p.focus();
}
}, t.prototype.setAfterAttachedParams = function(e) {
this.afterAttachedParams = e;
}, t.prototype.showFirstItem = function() {
this.items.length > 0 && this.showItemWrapper(this.items[0]);
}, t.prototype.addItem = function(e) {
var r = document.createElement("span");
le(r, "tab"), r.setAttribute("tabIndex", "-1"), r.appendChild(e.title), r.classList.add("ag-tab"), this.eHeader.appendChild(r), xt(r, e.titleLabel);
var o = {
tabbedItem: e,
eHeaderButton: r
};
this.items.push(o), r.addEventListener("click", this.showItemWrapper.bind(this, o));
}, t.prototype.showItem = function(e) {
var r = this.items.find(function(o) {
return o.tabbedItem === e;
});
r && this.showItemWrapper(r);
}, t.prototype.showItemWrapper = function(e) {
var r = this, o, i, s = e.tabbedItem, a = e.eHeaderButton;
if (this.params.onItemClicked && this.params.onItemClicked({ item: s }), this.activeItem === e) {
wa(this.params.onActiveItemClicked);
return;
}
this.lastScrollListener && (this.lastScrollListener = this.lastScrollListener()), Ae(this.eBody), s.bodyPromise.then(function(l) {
r.eBody.appendChild(l);
var u = !r.focusService.isKeyboardMode();
if (r.focusService.focusInto(r.eBody, !1, u), s.afterAttachedCallback && s.afterAttachedCallback(r.afterAttachedParams), r.params.keepScrollPosition) {
var c = s.getScrollableContainer && s.getScrollableContainer() || l;
r.lastScrollListener = r.addManagedListener(c, "scroll", function() {
r.tabbedItemScrollMap.set(s.name, c.scrollTop);
});
var p = r.tabbedItemScrollMap.get(s.name);
p !== void 0 && setTimeout(function() {
c.scrollTop = p;
}, 0);
}
}), this.activeItem && (this.activeItem.eHeaderButton.classList.remove("ag-tab-selected"), (i = (o = this.activeItem.tabbedItem).afterDetachedCallback) === null || i === void 0 || i.call(o)), a.classList.add("ag-tab-selected"), this.activeItem = e;
}, so([
h("focusService")
], t.prototype, "focusService", void 0), so([
P("eHeader")
], t.prototype, "eHeader", void 0), so([
P("eBody")
], t.prototype, "eBody", void 0), so([
b
], t.prototype, "postConstruct", null), t;
})(W);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var wv = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Sv = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Ev = 50, _v = (
/** @class */
function(n) {
wv(t, n);
function t() {
var e = n !== null && n.apply(this, arguments) || this;
return e.polyfillFunctions = [], e;
}
return t.prototype.observeResize = function(e, r) {
var o = this, i = this.gridOptionsService.getDocument(), s = i.defaultView || window, a = function() {
var p = new s.ResizeObserver(r);
return p.observe(e), function() {
return p.disconnect();
};
}, l = function() {
var p = vn(e), d = fn(e), f = !0, g = function() {
if (f) {
var y = vn(e), C = fn(e), m = y !== p || C !== d;
m && (p = y, d = C, r()), o.doNextPolyfillTurn(g);
}
};
return g(), function() {
return f = !1;
};
}, u = this.gridOptionsService.is("suppressBrowserResizeObserver"), c = !!s.ResizeObserver;
return c && !u ? a() : l();
}, t.prototype.doNextPolyfillTurn = function(e) {
this.polyfillFunctions.push(e), this.schedulePolyfill();
}, t.prototype.schedulePolyfill = function() {
var e = this;
if (!this.polyfillScheduled) {
var r = function() {
var o = e.polyfillFunctions;
e.polyfillScheduled = !1, e.polyfillFunctions = [], o.forEach(function(i) {
return i();
});
};
this.polyfillScheduled = !0, this.getFrameworkOverrides().setTimeout(r, Ev);
}
}, t = Sv([
A("resizeObserverService")
], t), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Rv = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), ao = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Ov = (
/** @class */
function(n) {
Rv(t, n);
function t() {
var e = n !== null && n.apply(this, arguments) || this;
return e.createTasksP1 = { list: [], sorted: !1 }, e.createTasksP2 = { list: [], sorted: !1 }, e.destroyTasks = [], e.ticking = !1, e.scrollGoingDown = !0, e.lastPage = 0, e.lastScrollTop = 0, e.taskCount = 0, e.cancelledTasks = /* @__PURE__ */ new Set(), e;
}
return t.prototype.setScrollTop = function(e) {
var r = this.gridOptionsService.is("pagination");
if (this.scrollGoingDown = e >= this.lastScrollTop, r && e === 0) {
var o = this.paginationProxy.getCurrentPage();
o !== this.lastPage && (this.lastPage = o, this.scrollGoingDown = !0);
}
this.lastScrollTop = e;
}, t.prototype.init = function() {
this.useAnimationFrame = !this.gridOptionsService.is("suppressAnimationFrame");
}, t.prototype.isOn = function() {
return this.useAnimationFrame;
}, t.prototype.verifyAnimationFrameOn = function(e) {
this.useAnimationFrame === !1 && console.warn("AG Grid: AnimationFrameService." + e + " called but animation frames are off");
}, t.prototype.createTask = function(e, r, o) {
this.verifyAnimationFrameOn(o);
var i = { task: e, index: r, createOrder: ++this.taskCount };
this.addTaskToList(this[o], i), this.schedule();
}, t.prototype.cancelTask = function(e) {
this.cancelledTasks.add(e);
}, t.prototype.addTaskToList = function(e, r) {
e.list.push(r), e.sorted = !1;
}, t.prototype.sortTaskList = function(e) {
if (!e.sorted) {
var r = this.scrollGoingDown ? 1 : -1;
e.list.sort(function(o, i) {
return o.index !== i.index ? r * (i.index - o.index) : i.createOrder - o.createOrder;
}), e.sorted = !0;
}
}, t.prototype.addDestroyTask = function(e) {
this.verifyAnimationFrameOn("createTasksP3"), this.destroyTasks.push(e), this.schedule();
}, t.prototype.executeFrame = function(e) {
this.verifyAnimationFrameOn("executeFrame");
for (var r = this.createTasksP1, o = r.list, i = this.createTasksP2, s = i.list, a = this.destroyTasks, l = (/* @__PURE__ */ new Date()).getTime(), u = (/* @__PURE__ */ new Date()).getTime() - l, c = e <= 0, p = this.ctrlsService.getGridBodyCtrl(); c || u < e; ) {
var d = p.getScrollFeature().scrollGridIfNeeded();
if (!d) {
var f = void 0;
if (o.length)
this.sortTaskList(r), f = o.pop().task;
else if (s.length)
this.sortTaskList(i), f = s.pop().task;
else if (a.length)
f = a.pop();
else {
this.cancelledTasks.clear();
break;
}
this.cancelledTasks.has(f) || f();
}
u = (/* @__PURE__ */ new Date()).getTime() - l;
}
o.length || s.length || a.length ? this.requestFrame() : this.stopTicking();
}, t.prototype.stopTicking = function() {
this.ticking = !1;
}, t.prototype.flushAllFrames = function() {
this.useAnimationFrame && this.executeFrame(-1);
}, t.prototype.schedule = function() {
this.useAnimationFrame && (this.ticking || (this.ticking = !0, this.requestFrame()));
}, t.prototype.requestFrame = function() {
var e = this.executeFrame.bind(this, 60), r = this.gridOptionsService.getDocument(), o = r.defaultView || window;
o.requestAnimationFrame ? o.requestAnimationFrame(e) : o.webkitRequestAnimationFrame ? o.webkitRequestAnimationFrame(e) : o.setTimeout(e, 0);
}, t.prototype.isQueueEmpty = function() {
return !this.ticking;
}, t.prototype.debounce = function(e) {
var r = this, o = !1;
return function() {
if (!r.isOn()) {
r.getFrameworkOverrides().setTimeout(e, 0);
return;
}
o || (o = !0, r.addDestroyTask(function() {
o = !1, e();
}));
};
}, ao([
h("ctrlsService")
], t.prototype, "ctrlsService", void 0), ao([
h("paginationProxy")
], t.prototype, "paginationProxy", void 0), ao([
b
], t.prototype, "init", null), t = ao([
A("animationFrameService")
], t), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Tv = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), yr = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, bv = (
/** @class */
function(n) {
Tv(t, n);
function t() {
return n !== null && n.apply(this, arguments) || this;
}
return t.prototype.postConstruct = function() {
var e = this;
this.ctrlsService.whenReady(function(r) {
e.centerRowContainerCtrl = r.centerRowContainerCtrl;
});
}, t.prototype.getPreferredWidthForColumn = function(e, r) {
var o = this.getHeaderCellForColumn(e);
if (!o)
return -1;
var i = this.rowRenderer.getAllCellsForColumn(e);
return r || i.push(o), this.addElementsToContainerAndGetWidth(i);
}, t.prototype.getPreferredWidthForColumnGroup = function(e) {
var r = this.getHeaderCellForColumn(e);
return r ? this.addElementsToContainerAndGetWidth([r]) : -1;
}, t.prototype.addElementsToContainerAndGetWidth = function(e) {
var r = this, o = document.createElement("form");
o.style.position = "fixed";
var i = this.centerRowContainerCtrl.getContainerElement();
i.appendChild(o), e.forEach(function(l) {
return r.cloneItemIntoDummy(l, o);
});
var s = o.offsetWidth;
i.removeChild(o);
var a = this.getAutoSizePadding();
return s + a;
}, t.prototype.getAutoSizePadding = function() {
var e = this.gridOptionsService.getNum("autoSizePadding");
return e != null && e >= 0 ? e : 20;
}, t.prototype.getHeaderCellForColumn = function(e) {
var r = null;
return this.ctrlsService.getHeaderRowContainerCtrls().forEach(function(o) {
var i = o.getHtmlElementForColumnHeader(e);
i != null && (r = i);
}), r;
}, t.prototype.cloneItemIntoDummy = function(e, r) {
var o = e.cloneNode(!0);
o.style.width = "", o.style.position = "static", o.style.left = "";
var i = document.createElement("div"), s = i.classList, a = ["ag-header-cell", "ag-header-group-cell"].some(function(d) {
return o.classList.contains(d);
});
a ? (s.add("ag-header", "ag-header-row"), i.style.position = "static") : s.add("ag-row");
for (var l = e.parentElement; l; ) {
var u = ["ag-header-row", "ag-row"].some(function(d) {
return l.classList.contains(d);
});
if (u) {
for (var c = 0; c < l.classList.length; c++) {
var p = l.classList[c];
p != "ag-row-position-absolute" && s.add(p);
}
break;
}
l = l.parentElement;
}
i.appendChild(o), r.appendChild(i);
}, yr([
h("rowRenderer")
], t.prototype, "rowRenderer", void 0), yr([
h("ctrlsService")
], t.prototype, "ctrlsService", void 0), yr([
h("rowCssClassCalculator")
], t.prototype, "rowCssClassCalculator", void 0), yr([
b
], t.prototype, "postConstruct", null), t = yr([
A("autoWidthCalculator")
], t), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Pv = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), lo = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Dv = function(n) {
var t = typeof Symbol == "function" && Symbol.iterator, e = t && n[t], r = 0;
if (e)
return e.call(n);
if (n && typeof n.length == "number")
return {
next: function() {
return n && r >= n.length && (n = void 0), { value: n && n[r++], done: !n };
}
};
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
}, Av = function(n, t) {
var e = typeof Symbol == "function" && n[Symbol.iterator];
if (!e)
return n;
var r = e.call(n), o, i = [], s;
try {
for (; (t === void 0 || t-- > 0) && !(o = r.next()).done; )
i.push(o.value);
} catch (a) {
s = { error: a };
} finally {
try {
o && !o.done && (e = r.return) && e.call(r);
} finally {
if (s)
throw s.error;
}
}
return i;
}, Fv = function() {
for (var n = [], t = 0; t < arguments.length; t++)
n = n.concat(Av(arguments[t]));
return n;
}, Lv = (
/** @class */
function(n) {
Pv(t, n);
function t(e, r) {
var o = n.call(this) || this;
return o.createRowCon = e, o.destroyRowCtrls = r, o.stickyRowCtrls = [], o.containerHeight = 0, o;
}
return t.prototype.postConstruct = function() {
var e = this;
this.isClientSide = this.rowModel.getType() === "clientSide", this.ctrlsService.whenReady(function(r) {
e.gridBodyCtrl = r.gridBodyCtrl;
});
}, t.prototype.getStickyRowCtrls = function() {
return this.stickyRowCtrls;
}, t.prototype.checkStickyRows = function() {
var e = this, r = 0;
if (!this.gridOptionsService.is("groupRowsSticky")) {
this.refreshNodesAndContainerHeight([], r);
return;
}
for (var o = [], i = this.rowRenderer.getFirstVisibleVerticalPixel(), s = function(f) {
var g, y, C;
o.push(f);
var m;
if (e.isClientSide) {
for (var w = f; w.expanded; )
if (w.master)
w = w.detailNode;
else if (w.childrenAfterSort) {
if (w.childrenAfterSort.length === 0)
break;
w = q(w.childrenAfterSort);
}
m = w.rowTop + w.rowHeight;
} else {
var E = (g = f.childStore) === null || g === void 0 ? void 0 : g.getStoreBounds();
m = ((y = E == null ? void 0 : E.heightPx) !== null && y !== void 0 ? y : 0) + ((C = E == null ? void 0 : E.topPx) !== null && C !== void 0 ? C : 0);
}
var R = i + r + f.rowHeight;
m < R ? f.stickyRowTop = r + (m - R) : f.stickyRowTop = r, r = 0, o.forEach(function(D) {
var M = D.stickyRowTop + D.rowHeight;
r < M && (r = M);
});
}; ; ) {
var a = i + r, l = this.rowModel.getRowIndexAtPixel(a), u = this.rowModel.getRow(l);
if (u == null || u.level < 0)
break;
for (var c = [], p = u.parent; p.level >= 0; )
c.push(p), p = p.parent;
var d = c.reverse().find(function(f) {
return o.indexOf(f) < 0 && f.displayed;
});
if (d) {
s(d);
continue;
}
if (u.isExpandable() && u.expanded && u.rowTop < a) {
s(u);
continue;
}
break;
}
this.refreshNodesAndContainerHeight(o, r);
}, t.prototype.refreshStickyNode = function(e) {
for (var r = [], o = 0; o < this.stickyRowCtrls.length; o++) {
var i = this.stickyRowCtrls[o].getRowNode();
i !== e && r.push(i);
}
this.refreshNodesAndContainerHeight(r, this.containerHeight), this.checkStickyRows();
}, t.prototype.refreshNodesAndContainerHeight = function(e, r) {
var o, i, s, a = this, l = this.stickyRowCtrls.filter(function(y) {
return e.indexOf(y.getRowNode()) === -1;
}), u = e.filter(function(y) {
return a.stickyRowCtrls.findIndex(function(C) {
return C.getRowNode() === y;
}) === -1;
}), c = {};
l.forEach(function(y) {
c[y.getRowNode().id] = y, a.stickyRowCtrls = a.stickyRowCtrls.filter(function(C) {
return C !== y;
});
});
try {
for (var p = Dv(Object.values(c)), d = p.next(); !d.done; d = p.next()) {
var f = d.value;
f.getRowNode().sticky = !1;
}
} catch (y) {
o = { error: y };
} finally {
try {
d && !d.done && (i = p.return) && i.call(p);
} finally {
if (o)
throw o.error;
}
}
this.destroyRowCtrls(c, !1);
var g = u.map(function(y) {
return y.sticky = !0, a.createRowCon(y, !1, !1);
});
(s = this.stickyRowCtrls).push.apply(s, Fv(g)), this.stickyRowCtrls.forEach(function(y) {
return y.setRowTop(y.getRowNode().stickyRowTop);
}), this.stickyRowCtrls.sort(function(y, C) {
return C.getRowNode().rowIndex - y.getRowNode().rowIndex;
}), this.containerHeight !== r && (this.containerHeight = r, this.gridBodyCtrl.setStickyTopHeight(r));
}, lo([
h("rowModel")
], t.prototype, "rowModel", void 0), lo([
h("rowRenderer")
], t.prototype, "rowRenderer", void 0), lo([
h("ctrlsService")
], t.prototype, "ctrlsService", void 0), lo([
b
], t.prototype, "postConstruct", null), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Mv = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), We = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Iv = function(n, t) {
var e = typeof Symbol == "function" && n[Symbol.iterator];
if (!e)
return n;
var r = e.call(n), o, i = [], s;
try {
for (; (t === void 0 || t-- > 0) && !(o = r.next()).done; )
i.push(o.value);
} catch (a) {
s = { error: a };
} finally {
try {
o && !o.done && (e = r.return) && e.call(r);
} finally {
if (s)
throw s.error;
}
}
return i;
}, Bi = function() {
for (var n = [], t = 0; t < arguments.length; t++)
n = n.concat(Iv(arguments[t]));
return n;
}, xv = function(n) {
var t = typeof Symbol == "function" && Symbol.iterator, e = t && n[t], r = 0;
if (e)
return e.call(n);
if (n && typeof n.length == "number")
return {
next: function() {
return n && r >= n.length && (n = void 0), { value: n && n[r++], done: !n };
}
};
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
}, Nv = 10, Gv = (
/** @class */
function(n) {
Mv(t, n);
function t() {
var e = n !== null && n.apply(this, arguments) || this;
return e.destroyFuncsForColumnListeners = [], e.rowCtrlsByRowIndex = {}, e.zombieRowCtrls = {}, e.allRowCtrls = [], e.topRowCtrls = [], e.bottomRowCtrls = [], e.refreshInProgress = !1, e.dataFirstRenderedFired = !1, e;
}
return t.prototype.postConstruct = function() {
var e = this;
this.ctrlsService.whenReady(function() {
e.gridBodyCtrl = e.ctrlsService.getGridBodyCtrl(), e.initialise();
});
}, t.prototype.initialise = function() {
if (this.addManagedListener(this.eventService, v.EVENT_PAGINATION_CHANGED, this.onPageLoaded.bind(this)), this.addManagedListener(this.eventService, v.EVENT_PINNED_ROW_DATA_CHANGED, this.onPinnedRowDataChanged.bind(this)), this.addManagedListener(this.eventService, v.EVENT_DISPLAYED_COLUMNS_CHANGED, this.onDisplayedColumnsChanged.bind(this)), this.addManagedListener(this.eventService, v.EVENT_BODY_SCROLL, this.onBodyScroll.bind(this)), this.addManagedListener(this.eventService, v.EVENT_BODY_HEIGHT_CHANGED, this.redrawAfterScroll.bind(this)), this.addManagedPropertyListener("domLayout", this.onDomLayoutChanged.bind(this)), this.addManagedPropertyListener("rowClass", this.redrawRows.bind(this)), this.gridOptionsService.is("groupRowsSticky")) {
var e = this.rowModel.getType();
e != "clientSide" && e != "serverSide" ? K(function() {
return console.warn("AG Grid: The feature Sticky Row Groups only works with the Client Side or Server Side Row Model");
}, "rowRenderer.stickyWorksWithCsrmOnly") : this.stickyRowFeature = this.createManagedBean(new Lv(this.createRowCon.bind(this), this.destroyRowCtrls.bind(this)));
}
this.registerCellEventListeners(), this.initialiseCache(), this.printLayout = this.gridOptionsService.isDomLayout("print"), this.embedFullWidthRows = this.printLayout || this.gridOptionsService.is("embedFullWidthRows"), this.redrawAfterModelUpdate();
}, t.prototype.initialiseCache = function() {
if (this.gridOptionsService.is("keepDetailRows")) {
var e = this.getKeepDetailRowsCount(), r = e ?? 3;
this.cachedRowCtrls = new Hv(r);
}
}, t.prototype.getKeepDetailRowsCount = function() {
var e = this.gridOptionsService.getNum("keepDetailRowsCount");
return O(e) && e > 0 ? e : Nv;
}, t.prototype.getRowCtrls = function() {
return this.allRowCtrls;
}, t.prototype.getStickyTopRowCtrls = function() {
return this.stickyRowFeature ? this.stickyRowFeature.getStickyRowCtrls() : [];
}, t.prototype.updateAllRowCtrls = function() {
var e = et(this.rowCtrlsByRowIndex), r = this.gridOptionsService.is("ensureDomOrder"), o = this.gridOptionsService.isDomLayout("print");
(r || o) && e.sort(function(a, l) {
return a.getRowNode().rowIndex - l.getRowNode.rowIndex;
});
var i = et(this.zombieRowCtrls), s = this.cachedRowCtrls ? this.cachedRowCtrls.getEntries() : [];
this.allRowCtrls = Bi(e, i, s);
}, t.prototype.onCellFocusChanged = function(e) {
this.getAllCellCtrls().forEach(function(r) {
return r.onCellFocused(e);
}), this.getFullWidthRowCtrls().forEach(function(r) {
return r.onFullWidthRowFocused(e);
});
}, t.prototype.registerCellEventListeners = function() {
var e = this;
this.addManagedListener(this.eventService, v.EVENT_CELL_FOCUSED, function(o) {
e.onCellFocusChanged(o);
}), this.addManagedListener(this.eventService, v.EVENT_CELL_FOCUS_CLEARED, function() {
e.onCellFocusChanged();
}), this.addManagedListener(this.eventService, v.EVENT_FLASH_CELLS, function(o) {
e.getAllCellCtrls().forEach(function(i) {
return i.onFlashCells(o);
});
}), this.addManagedListener(this.eventService, v.EVENT_COLUMN_HOVER_CHANGED, function() {
e.getAllCellCtrls().forEach(function(o) {
return o.onColumnHover();
});
}), this.addManagedListener(this.eventService, v.EVENT_DISPLAYED_COLUMNS_CHANGED, function() {
e.getAllCellCtrls().forEach(function(o) {
return o.onDisplayedColumnsChanged();
});
}), this.addManagedListener(this.eventService, v.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED, function() {
e.printLayout && e.getAllCellCtrls().forEach(function(o) {
return o.onLeftChanged();
});
});
var r = this.gridOptionsService.isEnableRangeSelection();
r && (this.addManagedListener(this.eventService, v.EVENT_RANGE_SELECTION_CHANGED, function() {
e.getAllCellCtrls().forEach(function(o) {
return o.onRangeSelectionChanged();
});
}), this.addManagedListener(this.eventService, v.EVENT_COLUMN_MOVED, function() {
e.getAllCellCtrls().forEach(function(o) {
return o.updateRangeBordersIfRangeCount();
});
}), this.addManagedListener(this.eventService, v.EVENT_COLUMN_PINNED, function() {
e.getAllCellCtrls().forEach(function(o) {
return o.updateRangeBordersIfRangeCount();
});
}), this.addManagedListener(this.eventService, v.EVENT_COLUMN_VISIBLE, function() {
e.getAllCellCtrls().forEach(function(o) {
return o.updateRangeBordersIfRangeCount();
});
})), this.refreshListenersToColumnsForCellComps(), this.addManagedListener(this.eventService, v.EVENT_GRID_COLUMNS_CHANGED, this.refreshListenersToColumnsForCellComps.bind(this)), this.addDestroyFunc(this.removeGridColumnListeners.bind(this));
}, t.prototype.removeGridColumnListeners = function() {
this.destroyFuncsForColumnListeners.forEach(function(e) {
return e();
}), this.destroyFuncsForColumnListeners.length = 0;
}, t.prototype.refreshListenersToColumnsForCellComps = function() {
var e = this;
this.removeGridColumnListeners();
var r = this.columnModel.getAllGridColumns();
r && r.forEach(function(o) {
var i = function(p) {
e.getAllCellCtrls().forEach(function(d) {
d.getColumn() === o && p(d);
});
}, s = function() {
i(function(p) {
return p.onLeftChanged();
});
}, a = function() {
i(function(p) {
return p.onWidthChanged();
});
}, l = function() {
i(function(p) {
return p.onFirstRightPinnedChanged();
});
}, u = function() {
i(function(p) {
return p.onLastLeftPinnedChanged();
});
}, c = function() {
i(function(p) {
return p.onColDefChanged();
});
};
o.addEventListener("leftChanged", s), o.addEventListener("widthChanged", a), o.addEventListener("firstRightPinnedChanged", l), o.addEventListener("lastLeftPinnedChanged", u), o.addEventListener("colDefChanged", c), e.destroyFuncsForColumnListeners.push(function() {
o.removeEventListener("leftChanged", s), o.removeEventListener("widthChanged", a), o.removeEventListener("firstRightPinnedChanged", l), o.removeEventListener("lastLeftPinnedChanged", u), o.removeEventListener("colDefChanged", c);
});
});
}, t.prototype.onDomLayoutChanged = function() {
var e = this.gridOptionsService.isDomLayout("print"), r = e || this.gridOptionsService.is("embedFullWidthRows"), o = r !== this.embedFullWidthRows || this.printLayout !== e;
this.printLayout = e, this.embedFullWidthRows = r, o && this.redrawAfterModelUpdate({ domLayoutChanged: !0 });
}, t.prototype.datasourceChanged = function() {
this.firstRenderedRow = 0, this.lastRenderedRow = -1;
var e = Object.keys(this.rowCtrlsByRowIndex);
this.removeRowCtrls(e);
}, t.prototype.onPageLoaded = function(e) {
var r = {
recycleRows: e.keepRenderedRows,
animate: e.animate,
newData: e.newData,
newPage: e.newPage,
// because this is a model updated event (not pinned rows), we
// can skip updating the pinned rows. this is needed so that if user
// is doing transaction updates, the pinned rows are not getting constantly
// trashed - or editing cells in pinned rows are not refreshed and put into read mode
onlyBody: !0
};
this.redrawAfterModelUpdate(r);
}, t.prototype.getAllCellsForColumn = function(e) {
var r = [];
return this.getAllRowCtrls().forEach(function(o) {
var i = o.getCellElement(e);
i && r.push(i);
}), r;
}, t.prototype.refreshFloatingRowComps = function() {
this.refreshFloatingRows(this.topRowCtrls, this.pinnedRowModel.getPinnedTopRowData()), this.refreshFloatingRows(this.bottomRowCtrls, this.pinnedRowModel.getPinnedBottomRowData());
}, t.prototype.getTopRowCtrls = function() {
return this.topRowCtrls;
}, t.prototype.getBottomRowCtrls = function() {
return this.bottomRowCtrls;
}, t.prototype.refreshFloatingRows = function(e, r) {
var o = this;
e.forEach(function(i) {
i.destroyFirstPass(), i.destroySecondPass();
}), e.length = 0, r && r.forEach(function(i) {
var s = new Lt(i, o.beans, !1, !1, o.printLayout);
e.push(s);
});
}, t.prototype.onPinnedRowDataChanged = function() {
var e = {
recycleRows: !0
};
this.redrawAfterModelUpdate(e);
}, t.prototype.getRenderedIndexesForRowNodes = function(e) {
var r = [];
return x(e) || J(this.rowCtrlsByRowIndex, function(o, i) {
var s = i.getRowNode();
e.indexOf(s) >= 0 && r.push(o);
}), r;
}, t.prototype.redrawRows = function(e) {
var r = e != null && e.length > 0;
if (r) {
var o = this.getRenderedIndexesForRowNodes(e);
this.removeRowCtrls(o);
}
this.redrawAfterModelUpdate({
recycleRows: r
});
}, t.prototype.getCellToRestoreFocusToAfterRefresh = function(e) {
var r = e != null && e.suppressKeepFocus ? null : this.focusService.getFocusCellToUseAfterRefresh();
if (r == null)
return null;
var o = this.gridOptionsService.getDocument(), i = o.activeElement, s = this.gridOptionsService.getDomData(i, Ft.DOM_DATA_KEY_CELL_CTRL), a = this.gridOptionsService.getDomData(i, Lt.DOM_DATA_KEY_ROW_CTRL), l = s || a;
return l ? r : null;
}, t.prototype.redrawAfterModelUpdate = function(e) {
e === void 0 && (e = {}), this.getLockOnRefresh();
var r = this.getCellToRestoreFocusToAfterRefresh(e);
this.updateContainerHeights(), this.scrollToTopIfNewData(e);
var o = !e.domLayoutChanged && !!e.recycleRows, i = e.animate && this.gridOptionsService.isAnimateRows(), s = o ? this.recycleRows() : null;
o || this.removeAllRowComps(), this.redraw(s, i), this.gridBodyCtrl.updateRowCount(), e.onlyBody || this.refreshFloatingRowComps(), this.dispatchDisplayedRowsChanged(), r != null && this.restoreFocusedCell(r), this.releaseLockOnRefresh();
}, t.prototype.scrollToTopIfNewData = function(e) {
var r = e.newData || e.newPage, o = this.gridOptionsService.is("suppressScrollOnNewData");
r && !o && this.gridBodyCtrl.getScrollFeature().scrollToTop();
}, t.prototype.updateContainerHeights = function() {
if (this.printLayout) {
this.rowContainerHeightService.setModelHeight(null);
return;
}
var e = this.paginationProxy.getCurrentPageHeight();
e === 0 && (e = 1), this.rowContainerHeightService.setModelHeight(e);
}, t.prototype.getLockOnRefresh = function() {
if (this.refreshInProgress)
throw new Error("AG Grid: cannot get grid to draw rows when it is in the middle of drawing rows. Your code probably called a grid API method while the grid was in the render stage. To overcome this, put the API call into a timeout, e.g. instead of api.redrawRows(), call setTimeout(function() { api.redrawRows(); }, 0). To see what part of your code that caused the refresh check this stacktrace.");
this.refreshInProgress = !0;
}, t.prototype.releaseLockOnRefresh = function() {
this.refreshInProgress = !1;
}, t.prototype.isRefreshInProgress = function() {
return this.refreshInProgress;
}, t.prototype.restoreFocusedCell = function(e) {
e && this.onCellFocusChanged({
rowIndex: e.rowIndex,
column: e.column,
rowPinned: e.rowPinned,
forceBrowserFocus: !0,
preventScrollOnBrowserFocus: !0,
api: this.beans.gridApi,
columnApi: this.beans.columnApi,
context: this.beans.gridOptionsService.context,
type: "mock"
});
}, t.prototype.stopEditing = function(e) {
e === void 0 && (e = !1), this.getAllRowCtrls().forEach(function(r) {
r.stopEditing(e);
});
}, t.prototype.getAllCellCtrls = function() {
for (var e = [], r = this.getAllRowCtrls(), o = r.length, i = 0; i < o; i++)
for (var s = r[i].getAllCellCtrls(), a = s.length, l = 0; l < a; l++)
e.push(s[l]);
return e;
}, t.prototype.getAllRowCtrls = function() {
var e, r, o = this.stickyRowFeature && this.stickyRowFeature.getStickyRowCtrls() || [], i = Bi(this.topRowCtrls, this.bottomRowCtrls, o);
try {
for (var s = xv(Object.keys(this.rowCtrlsByRowIndex)), a = s.next(); !a.done; a = s.next()) {
var l = a.value;
i.push(this.rowCtrlsByRowIndex[l]);
}
} catch (u) {
e = { error: u };
} finally {
try {
a && !a.done && (r = s.return) && r.call(s);
} finally {
if (e)
throw e.error;
}
}
return i;
}, t.prototype.addRenderedRowListener = function(e, r, o) {
var i = this.rowCtrlsByRowIndex[r];
i && i.addEventListener(e, o);
}, t.prototype.flashCells = function(e) {
e === void 0 && (e = {});
var r = e.flashDelay, o = e.fadeDelay;
this.getCellCtrls(e.rowNodes, e.columns).forEach(function(i) {
return i.flashCell({ flashDelay: r, fadeDelay: o });
});
}, t.prototype.refreshCells = function(e) {
e === void 0 && (e = {});
var r = {
forceRefresh: e.force,
newData: !1,
suppressFlash: e.suppressFlash
};
this.getCellCtrls(e.rowNodes, e.columns).forEach(function(o) {
if (o.refreshShouldDestroy()) {
var i = o.getRowCtrl();
i && i.refreshCell(o);
} else
o.refreshCell(r);
}), this.getFullWidthRowCtrls(e.rowNodes).forEach(function(o) {
o.refreshFullWidth();
});
}, t.prototype.getCellRendererInstances = function(e) {
var r = this, o, i = this.getCellCtrls(e.rowNodes, e.columns).map(function(l) {
return l.getCellRenderer();
}).filter(function(l) {
return l != null;
});
if (!((o = e.columns) === null || o === void 0) && o.length)
return i;
var s = [], a = this.mapRowNodes(e.rowNodes);
return this.getAllRowCtrls().forEach(function(l) {
if (!(a && !r.isRowInMap(l.getRowNode(), a)) && l.isFullWidth()) {
var u = l.getFullWidthCellRenderer();
u && s.push(u);
}
}), Bi(s, i);
}, t.prototype.getCellEditorInstances = function(e) {
var r = [];
return this.getCellCtrls(e.rowNodes, e.columns).forEach(function(o) {
var i = o.getCellEditor();
i && r.push(i);
}), r;
}, t.prototype.getEditingCells = function() {
var e = [];
return this.getAllCellCtrls().forEach(function(r) {
if (r.isEditing()) {
var o = r.getCellPosition();
e.push(o);
}
}), e;
}, t.prototype.mapRowNodes = function(e) {
if (e) {
var r = {
top: {},
bottom: {},
normal: {}
};
return e.forEach(function(o) {
var i = o.id;
o.rowPinned === "top" ? r.top[i] = o : o.rowPinned === "bottom" ? r.bottom[i] = o : r.normal[i] = o;
}), r;
}
}, t.prototype.isRowInMap = function(e, r) {
var o = e.id, i = e.rowPinned;
return i === "bottom" ? r.bottom[o] != null : i === "top" ? r.top[o] != null : r.normal[o] != null;
}, t.prototype.getCellCtrls = function(e, r) {
var o = this, i = this.mapRowNodes(e), s = [], a;
O(r) && (a = {}, r.forEach(function(u) {
var c = o.columnModel.getGridColumn(u);
O(c) && (a[c.getId()] = !0);
}));
var l = function(u) {
var c = u.getRowNode();
i != null && !o.isRowInMap(c, i) || u.getAllCellCtrls().forEach(function(p) {
var d = p.getColumn().getId(), f = a && !a[d];
f || s.push(p);
});
};
return this.getAllRowCtrls().forEach(function(u) {
return l(u);
}), s;
}, t.prototype.destroy = function() {
this.removeAllRowComps(), n.prototype.destroy.call(this);
}, t.prototype.removeAllRowComps = function() {
var e = Object.keys(this.rowCtrlsByRowIndex);
this.removeRowCtrls(e);
}, t.prototype.recycleRows = function() {
var e = [];
J(this.rowCtrlsByRowIndex, function(o, i) {
var s = i.getRowNode().id == null;
s && e.push(o);
}), this.removeRowCtrls(e);
var r = {};
return J(this.rowCtrlsByRowIndex, function(o, i) {
var s = i.getRowNode();
r[s.id] = i;
}), this.rowCtrlsByRowIndex = {}, r;
}, t.prototype.removeRowCtrls = function(e) {
var r = this;
e.forEach(function(o) {
var i = r.rowCtrlsByRowIndex[o];
i && (i.destroyFirstPass(), i.destroySecondPass()), delete r.rowCtrlsByRowIndex[o];
});
}, t.prototype.onBodyScroll = function(e) {
e.direction === "vertical" && this.redrawAfterScroll();
}, t.prototype.redrawAfterScroll = function() {
var e;
if (this.stickyRowFeature && ei() && (e = this.getCellToRestoreFocusToAfterRefresh() || void 0), this.getLockOnRefresh(), this.redraw(null, !1, !0), this.releaseLockOnRefresh(), this.dispatchDisplayedRowsChanged(!0), e != null) {
var r = this.getCellToRestoreFocusToAfterRefresh();
e != null && r == null && (this.animationFrameService.flushAllFrames(), this.restoreFocusedCell(e));
}
}, t.prototype.removeRowCompsNotToDraw = function(e) {
var r = {};
e.forEach(function(s) {
return r[s] = !0;
});
var o = Object.keys(this.rowCtrlsByRowIndex), i = o.filter(function(s) {
return !r[s];
});
this.removeRowCtrls(i);
}, t.prototype.calculateIndexesToDraw = function(e) {
var r = this, o = tl(this.firstRenderedRow, this.lastRenderedRow), i = function(s, a) {
var l = a.getRowNode().rowIndex;
l != null && (l < r.firstRenderedRow || l > r.lastRenderedRow) && r.doNotUnVirtualiseRow(a) && o.push(l);
};
return J(this.rowCtrlsByRowIndex, i), J(e, i), o.sort(function(s, a) {
return s - a;
}), o = o.filter(function(s) {
var a = r.paginationProxy.getRow(s);
return a && !a.sticky;
}), o;
}, t.prototype.redraw = function(e, r, o) {
var i = this;
r === void 0 && (r = !1), o === void 0 && (o = !1), this.rowContainerHeightService.updateOffset(), this.workOutFirstAndLastRowsToRender(), this.stickyRowFeature && this.stickyRowFeature.checkStickyRows();
var s = this.calculateIndexesToDraw(e);
if (this.removeRowCompsNotToDraw(s), this.printLayout && (r = !1), s.forEach(function(l) {
var u = i.createOrUpdateRowCtrl(l, e, r, o);
O(u);
}), e) {
var a = o && !this.gridOptionsService.is("suppressAnimationFrame") && !this.printLayout;
a ? this.beans.animationFrameService.addDestroyTask(function() {
i.destroyRowCtrls(e, r), i.updateAllRowCtrls(), i.dispatchDisplayedRowsChanged();
}) : this.destroyRowCtrls(e, r);
}
this.updateAllRowCtrls();
}, t.prototype.dispatchDisplayedRowsChanged = function(e) {
e === void 0 && (e = !1);
var r = { type: v.EVENT_DISPLAYED_ROWS_CHANGED, afterScroll: e };
this.eventService.dispatchEvent(r);
}, t.prototype.onDisplayedColumnsChanged = function() {
var e = this.columnModel.isPinningLeft(), r = this.columnModel.isPinningRight(), o = this.pinningLeft !== e || r !== this.pinningRight;
o && (this.pinningLeft = e, this.pinningRight = r, this.embedFullWidthRows && this.redrawFullWidthEmbeddedRows());
}, t.prototype.redrawFullWidthEmbeddedRows = function() {
var e = [];
this.getFullWidthRowCtrls().forEach(function(r) {
var o = r.getRowNode().rowIndex;
e.push(o.toString());
}), this.refreshFloatingRowComps(), this.removeRowCtrls(e), this.redrawAfterScroll();
}, t.prototype.getFullWidthRowCtrls = function(e) {
var r = this, o = this.mapRowNodes(e);
return this.getAllRowCtrls().filter(function(i) {
if (!i.isFullWidth())
return !1;
var s = i.getRowNode();
return !(o != null && !r.isRowInMap(s, o));
});
}, t.prototype.refreshFullWidthRow = function(e) {
var r = this.getFullWidthRowCtrls().find(function(i) {
return i.getRowNode() === e;
});
if (r) {
var o = r.refreshFullWidth();
o || (e.sticky ? this.stickyRowFeature.refreshStickyNode(e) : this.removeRowCtrls([e.rowIndex]), this.redrawAfterScroll());
}
}, t.prototype.createOrUpdateRowCtrl = function(e, r, o, i) {
var s, a = this.rowCtrlsByRowIndex[e];
a || (s = this.paginationProxy.getRow(e), O(s) && O(r) && r[s.id] && s.alreadyRendered && (a = r[s.id], r[s.id] = null));
var l = !a;
if (l)
if (s || (s = this.paginationProxy.getRow(e)), O(s))
a = this.createRowCon(s, o, i);
else
return;
return s && (s.alreadyRendered = !0), this.rowCtrlsByRowIndex[e] = a, a;
}, t.prototype.destroyRowCtrls = function(e, r) {
var o = this, i = [];
J(e, function(s, a) {
if (a) {
if (o.cachedRowCtrls && a.isCacheable()) {
o.cachedRowCtrls.addRow(a);
return;
}
a.destroyFirstPass(), r ? (o.zombieRowCtrls[a.getInstanceId()] = a, i.push(function() {
a.destroySecondPass(), delete o.zombieRowCtrls[a.getInstanceId()];
})) : a.destroySecondPass();
}
}), r && (i.push(function() {
o.updateAllRowCtrls(), o.dispatchDisplayedRowsChanged();
}), ya(i));
}, t.prototype.getRowBuffer = function() {
var e = this.gridOptionsService.getNum("rowBuffer");
return typeof e == "number" ? e < 0 && (K(function() {
return console.warn("AG Grid: rowBuffer should not be negative");
}, "warn rowBuffer negative"), e = 0, this.gridOptionsService.set("rowBuffer", 0)) : e = 10, e;
}, t.prototype.getRowBufferInPixels = function() {
var e = this.getRowBuffer(), r = this.gridOptionsService.getRowHeightAsNumber();
return e * r;
}, t.prototype.workOutFirstAndLastRowsToRender = function() {
var e, r;
if (!this.paginationProxy.isRowsToRender())
e = 0, r = -1;
else if (this.printLayout)
e = this.paginationProxy.getPageFirstRow(), r = this.paginationProxy.getPageLastRow();
else {
var o = this.getRowBufferInPixels(), i = this.ctrlsService.getGridBodyCtrl(), s = this.gridOptionsService.is("suppressRowVirtualisation"), a = !1, l = void 0, u = void 0;
do {
var c = this.paginationProxy.getPixelOffset(), p = this.paginationProxy.getCurrentPagePixelRange(), d = p.pageFirstPixel, f = p.pageLastPixel, g = this.rowContainerHeightService.getDivStretchOffset(), y = i.getScrollFeature().getVScrollPosition(), C = y.top, m = y.bottom;
s ? (l = d + g, u = f + g) : (l = Math.max(C + c - o, d) + g, u = Math.min(m + c + o, f) + g), this.firstVisibleVPixel = Math.max(C + c, d) + g, a = this.ensureAllRowsInRangeHaveHeightsCalculated(l, u);
} while (a);
var w = this.paginationProxy.getRowIndexAtPixel(l), E = this.paginationProxy.getRowIndexAtPixel(u), R = this.paginationProxy.getPageFirstRow(), D = this.paginationProxy.getPageLastRow();
w < R && (w = R), E > D && (E = D), e = w, r = E;
}
var M = this.gridOptionsService.isDomLayout("normal"), I = this.gridOptionsService.is("suppressMaxRenderedRowRestriction"), L = Math.max(this.getRowBuffer(), 500);
M && !I && r - e > L && (r = e + L);
var H = e !== this.firstRenderedRow, B = r !== this.lastRenderedRow;
if (H || B) {
this.firstRenderedRow = e, this.lastRenderedRow = r;
var Q = {
type: v.EVENT_VIEWPORT_CHANGED,
firstRow: e,
lastRow: r
};
this.eventService.dispatchEvent(Q);
}
}, t.prototype.dispatchFirstDataRenderedEvent = function() {
var e = this;
if (!this.dataFirstRenderedFired) {
this.dataFirstRenderedFired = !0;
var r = {
type: v.EVENT_FIRST_DATA_RENDERED,
firstRow: this.firstRenderedRow,
lastRow: this.lastRenderedRow
};
window.requestAnimationFrame(function() {
e.beans.eventService.dispatchEvent(r);
});
}
}, t.prototype.ensureAllRowsInRangeHaveHeightsCalculated = function(e, r) {
var o = this.paginationProxy.ensureRowHeightsValid(e, r, -1, -1);
return o && this.updateContainerHeights(), o;
}, t.prototype.getFirstVisibleVerticalPixel = function() {
return this.firstVisibleVPixel;
}, t.prototype.getFirstVirtualRenderedRow = function() {
return this.firstRenderedRow;
}, t.prototype.getLastVirtualRenderedRow = function() {
return this.lastRenderedRow;
}, t.prototype.doNotUnVirtualiseRow = function(e) {
var r = !1, o = !0, i = e.getRowNode(), s = this.focusService.isRowNodeFocused(i), a = e.isEditing(), l = i.detail, u = s || a || l;
if (!u)
return r;
var c = this.paginationProxy.isRowPresent(i);
return c ? o : r;
}, t.prototype.createRowCon = function(e, r, o) {
var i = this.cachedRowCtrls ? this.cachedRowCtrls.getRow(e) : null;
if (i)
return i;
var s = this.gridOptionsService.is("suppressAnimationFrame"), a = o && !s && !this.printLayout, l = new Lt(e, this.beans, r, a, this.printLayout);
return l;
}, t.prototype.getRenderedNodes = function() {
var e = this.rowCtrlsByRowIndex;
return Object.keys(e).map(function(r) {
return e[r].getRowNode();
});
}, t.prototype.getRowByPosition = function(e) {
var r, o = e.rowIndex;
switch (e.rowPinned) {
case "top":
r = this.topRowCtrls[o];
break;
case "bottom":
r = this.bottomRowCtrls[o];
break;
default:
r = this.rowCtrlsByRowIndex[o], r || (r = this.getStickyTopRowCtrls().find(function(i) {
return i.getRowNode().rowIndex === o;
}) || null);
break;
}
return r;
}, t.prototype.getRowNode = function(e) {
switch (e.rowPinned) {
case "top":
return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];
case "bottom":
return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];
default:
return this.rowModel.getRow(e.rowIndex);
}
}, t.prototype.isRangeInRenderedViewport = function(e, r) {
var o = e == null || r == null;
if (o)
return !1;
var i = e > this.lastRenderedRow, s = r < this.firstRenderedRow, a = !s && !i;
return a;
}, We([
h("animationFrameService")
], t.prototype, "animationFrameService", void 0), We([
h("paginationProxy")
], t.prototype, "paginationProxy", void 0), We([
h("columnModel")
], t.prototype, "columnModel", void 0), We([
h("pinnedRowModel")
], t.prototype, "pinnedRowModel", void 0), We([
h("rowModel")
], t.prototype, "rowModel", void 0), We([
h("focusService")
], t.prototype, "focusService", void 0), We([
h("beans")
], t.prototype, "beans", void 0), We([
h("rowContainerHeightService")
], t.prototype, "rowContainerHeightService", void 0), We([
h("ctrlsService")
], t.prototype, "ctrlsService", void 0), We([
b
], t.prototype, "postConstruct", null), t = We([
A("rowRenderer")
], t), t;
}(T)
), Hv = (
/** @class */
function() {
function n(t) {
this.entriesMap = {}, this.entriesList = [], this.maxCount = t;
}
return n.prototype.addRow = function(t) {
if (this.entriesMap[t.getRowNode().id] = t, this.entriesList.push(t), t.setCached(!0), this.entriesList.length > this.maxCount) {
var e = this.entriesList[0];
e.destroyFirstPass(), e.destroySecondPass(), this.removeFromCache(e);
}
}, n.prototype.getRow = function(t) {
if (t == null || t.id == null)
return null;
var e = this.entriesMap[t.id];
if (!e)
return null;
this.removeFromCache(e), e.setCached(!1);
var r = e.getRowNode() != t;
return r ? null : e;
}, n.prototype.removeFromCache = function(t) {
var e = t.getRowNode().id;
delete this.entriesMap[e], ge(this.entriesList, t);
}, n.prototype.getEntries = function() {
return this.entriesList;
}, n;
}()
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Vv = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Hs = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Bv = (
/** @class */
function(n) {
Vv(t, n);
function t() {
return n !== null && n.apply(this, arguments) || this;
}
return t.prototype.formatValue = function(e, r, o, i, s) {
s === void 0 && (s = !0);
var a = null, l, u = e.getColDef();
if (i ? l = i : s && (l = u.valueFormatter), l) {
var c = {
value: o,
node: r,
data: r ? r.data : null,
colDef: u,
column: e,
api: this.gridOptionsService.api,
columnApi: this.gridOptionsService.columnApi,
context: this.gridOptionsService.context
};
typeof l == "function" ? a = l(c) : a = this.expressionService.evaluate(l, c);
} else if (u.refData)
return u.refData[o] || "";
return a == null && Array.isArray(o) && (a = o.join(", ")), a;
}, Hs([
h("expressionService")
], t.prototype, "expressionService", void 0), t = Hs([
A("valueFormatterService")
], t), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Wv = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Wi = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, jv = (
/** @class */
function(n) {
Wv(t, n);
function t() {
return n !== null && n.apply(this, arguments) || this;
}
return t.prototype.init = function() {
this.setPinnedTopRowData(this.gridOptionsService.get("pinnedTopRowData")), this.setPinnedBottomRowData(this.gridOptionsService.get("pinnedBottomRowData"));
}, t.prototype.isEmpty = function(e) {
var r = e === "top" ? this.pinnedTopRows : this.pinnedBottomRows;
return Pe(r);
}, t.prototype.isRowsToRender = function(e) {
return !this.isEmpty(e);
}, t.prototype.getRowAtPixel = function(e, r) {
var o = r === "top" ? this.pinnedTopRows : this.pinnedBottomRows;
if (Pe(o))
return 0;
for (var i = 0; i < o.length; i++) {
var s = o[i], a = s.rowTop + s.rowHeight - 1;
if (a >= e)
return i;
}
return o.length - 1;
}, t.prototype.setPinnedTopRowData = function(e) {
this.pinnedTopRows = this.createNodesFromData(e, !0);
var r = {
type: v.EVENT_PINNED_ROW_DATA_CHANGED
};
this.eventService.dispatchEvent(r);
}, t.prototype.setPinnedBottomRowData = function(e) {
this.pinnedBottomRows = this.createNodesFromData(e, !1);
var r = {
type: v.EVENT_PINNED_ROW_DATA_CHANGED
};
this.eventService.dispatchEvent(r);
}, t.prototype.createNodesFromData = function(e, r) {
var o = this, i = [];
if (e) {
var s = 0;
e.forEach(function(a, l) {
var u = new j(o.beans);
u.data = a;
var c = r ? j.ID_PREFIX_TOP_PINNED : j.ID_PREFIX_BOTTOM_PINNED;
u.id = c + l, u.rowPinned = r ? "top" : "bottom", u.setRowTop(s), u.setRowHeight(o.gridOptionsService.getRowHeightForNode(u).height), u.setRowIndex(l), s += u.rowHeight, i.push(u);
});
}
return i;
}, t.prototype.getPinnedTopRowData = function() {
return this.pinnedTopRows;
}, t.prototype.getPinnedBottomRowData = function() {
return this.pinnedBottomRows;
}, t.prototype.getPinnedTopTotalHeight = function() {
return this.getTotalHeight(this.pinnedTopRows);
}, t.prototype.getPinnedTopRowCount = function() {
return this.pinnedTopRows ? this.pinnedTopRows.length : 0;
}, t.prototype.getPinnedBottomRowCount = function() {
return this.pinnedBottomRows ? this.pinnedBottomRows.length : 0;
}, t.prototype.getPinnedTopRow = function(e) {
return this.pinnedTopRows[e];
}, t.prototype.getPinnedBottomRow = function(e) {
return this.pinnedBottomRows[e];
}, t.prototype.forEachPinnedTopRow = function(e) {
Pe(this.pinnedTopRows) || this.pinnedTopRows.forEach(e);
}, t.prototype.forEachPinnedBottomRow = function(e) {
Pe(this.pinnedBottomRows) || this.pinnedBottomRows.forEach(e);
}, t.prototype.getPinnedBottomTotalHeight = function() {
return this.getTotalHeight(this.pinnedBottomRows);
}, t.prototype.getTotalHeight = function(e) {
if (!e || e.length === 0)
return 0;
var r = q(e);
return r.rowTop + r.rowHeight;
}, Wi([
h("beans")
], t.prototype, "beans", void 0), Wi([
b
], t.prototype, "init", null), t = Wi([
A("pinnedRowModel")
], t), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Vs;
(function(n) {
n.Applied = "Applied", n.StoreNotFound = "StoreNotFound", n.StoreLoading = "StoreLoading", n.StoreWaitingToLoad = "StoreWaitingToLoad", n.StoreLoadingFailed = "StoreLoadingFailed", n.StoreWrongType = "StoreWrongType", n.Cancelled = "Cancelled";
})(Vs || (Vs = {}));
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var us = (
/** @class */
function() {
function n(t, e) {
this.active = !0, this.nodeIdsToColumns = {}, this.mapToItems = {}, this.keepingColumns = t, this.pathRoot = {
rowNode: e,
children: null
}, this.mapToItems[e.id] = this.pathRoot;
}
return n.prototype.setInactive = function() {
this.active = !1;
}, n.prototype.isActive = function() {
return this.active;
}, n.prototype.depthFirstSearchChangedPath = function(t, e) {
if (t.children)
for (var r = 0; r < t.children.length; r++)
this.depthFirstSearchChangedPath(t.children[r], e);
e(t.rowNode);
}, n.prototype.depthFirstSearchEverything = function(t, e, r) {
if (t.childrenAfterGroup)
for (var o = 0; o < t.childrenAfterGroup.length; o++) {
var i = t.childrenAfterGroup[o];
i.childrenAfterGroup ? this.depthFirstSearchEverything(t.childrenAfterGroup[o], e, r) : r && e(i);
}
e(t);
}, n.prototype.forEachChangedNodeDepthFirst = function(t, e, r) {
e === void 0 && (e = !1), r === void 0 && (r = !1), this.active && !r ? this.depthFirstSearchChangedPath(this.pathRoot, t) : this.depthFirstSearchEverything(this.pathRoot.rowNode, t, e);
}, n.prototype.executeFromRootNode = function(t) {
t(this.pathRoot.rowNode);
}, n.prototype.createPathItems = function(t) {
for (var e = t, r = 0; !this.mapToItems[e.id]; ) {
var o = {
rowNode: e,
children: null
};
this.mapToItems[e.id] = o, r++, e = e.parent;
}
return r;
}, n.prototype.populateColumnsMap = function(t, e) {
var r = this;
if (!(!this.keepingColumns || !e))
for (var o = t; o; )
this.nodeIdsToColumns[o.id] || (this.nodeIdsToColumns[o.id] = {}), e.forEach(function(i) {
return r.nodeIdsToColumns[o.id][i.getId()] = !0;
}), o = o.parent;
}, n.prototype.linkPathItems = function(t, e) {
for (var r = t, o = 0; o < e; o++) {
var i = this.mapToItems[r.id], s = this.mapToItems[r.parent.id];
s.children || (s.children = []), s.children.push(i), r = r.parent;
}
}, n.prototype.addParentNode = function(t, e) {
if (!(!t || t.isRowPinned())) {
var r = this.createPathItems(t);
this.linkPathItems(t, r), this.populateColumnsMap(t, e);
}
}, n.prototype.canSkip = function(t) {
return this.active && !this.mapToItems[t.id];
}, n.prototype.getValueColumnsForNode = function(t, e) {
if (!this.keepingColumns)
return e;
var r = this.nodeIdsToColumns[t.id], o = e.filter(function(i) {
return r[i.getId()];
});
return o;
}, n.prototype.getNotValueColumnsForNode = function(t, e) {
if (!this.keepingColumns)
return null;
var r = this.nodeIdsToColumns[t.id], o = e.filter(function(i) {
return !r[i.getId()];
});
return o;
}, n;
}()
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var kv = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), _n = (
/** @class */
function(n) {
kv(t, n);
function t(e) {
var r = n.call(this) || this;
return r.state = t.STATE_WAITING_TO_LOAD, r.version = 0, r.id = e, r;
}
return t.prototype.getId = function() {
return this.id;
}, t.prototype.load = function() {
this.state = t.STATE_LOADING, this.loadFromDatasource();
}, t.prototype.getVersion = function() {
return this.version;
}, t.prototype.setStateWaitingToLoad = function() {
this.version++, this.state = t.STATE_WAITING_TO_LOAD;
}, t.prototype.getState = function() {
return this.state;
}, t.prototype.pageLoadFailed = function(e) {
var r = this.isRequestMostRecentAndLive(e);
r && (this.state = t.STATE_FAILED, this.processServerFail()), this.dispatchLoadCompleted(!1);
}, t.prototype.success = function(e, r) {
this.successCommon(e, r);
}, t.prototype.pageLoaded = function(e, r, o) {
this.successCommon(e, { rowData: r, rowCount: o });
}, t.prototype.isRequestMostRecentAndLive = function(e) {
var r = e === this.version, o = this.isAlive();
return r && o;
}, t.prototype.successCommon = function(e, r) {
this.dispatchLoadCompleted();
var o = this.isRequestMostRecentAndLive(e);
o && (this.state = t.STATE_LOADED, this.processServerResult(r));
}, t.prototype.dispatchLoadCompleted = function(e) {
e === void 0 && (e = !0);
var r = {
type: t.EVENT_LOAD_COMPLETE,
success: e,
block: this
};
this.dispatchEvent(r);
}, t.EVENT_LOAD_COMPLETE = "loadComplete", t.STATE_WAITING_TO_LOAD = "needsLoading", t.STATE_LOADING = "loading", t.STATE_LOADED = "loaded", t.STATE_FAILED = "failed", t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Uv = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), uo = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, zv = function(n, t) {
return function(e, r) {
t(e, r, n);
};
}, Kv = (
/** @class */
function(n) {
Uv(t, n);
function t() {
var r = n !== null && n.apply(this, arguments) || this;
return r.activeBlockLoadsCount = 0, r.blocks = [], r.active = !0, r;
}
e = t, t.prototype.postConstruct = function() {
this.maxConcurrentRequests = this.getMaxConcurrentDatasourceRequests();
var r = this.gridOptionsService.getNum("blockLoadDebounceMillis");
r && r > 0 && (this.checkBlockToLoadDebounce = G.debounce(this.performCheckBlocksToLoad.bind(this), r));
}, t.prototype.setBeans = function(r) {
this.logger = r.create("RowNodeBlockLoader");
}, t.prototype.getMaxConcurrentDatasourceRequests = function() {
var r = this.gridOptionsService.getNum("maxConcurrentDatasourceRequests");
if (r == null)
return 2;
if (!(r <= 0))
return r;
}, t.prototype.addBlock = function(r) {
this.blocks.push(r), r.addEventListener(_n.EVENT_LOAD_COMPLETE, this.loadComplete.bind(this)), this.checkBlockToLoad();
}, t.prototype.removeBlock = function(r) {
G.removeFromArray(this.blocks, r);
}, t.prototype.destroy = function() {
n.prototype.destroy.call(this), this.active = !1;
}, t.prototype.loadComplete = function() {
this.activeBlockLoadsCount--, this.checkBlockToLoad(), this.dispatchEvent({ type: e.BLOCK_LOADED_EVENT }), this.activeBlockLoadsCount == 0 && this.dispatchEvent({ type: e.BLOCK_LOADER_FINISHED_EVENT });
}, t.prototype.checkBlockToLoad = function() {
this.checkBlockToLoadDebounce ? this.checkBlockToLoadDebounce() : this.performCheckBlocksToLoad();
}, t.prototype.performCheckBlocksToLoad = function() {
if (this.active) {
if (this.printCacheStatus(), this.maxConcurrentRequests != null && this.activeBlockLoadsCount >= this.maxConcurrentRequests) {
this.logger.log("checkBlockToLoad: max loads exceeded");
return;
}
var r = this.getAvailableLoadingCount(), o = this.blocks.filter(function(i) {
return i.getState() === _n.STATE_WAITING_TO_LOAD;
}).slice(0, r);
this.registerLoads(o.length), o.forEach(function(i) {
return i.load();
}), this.printCacheStatus();
}
}, t.prototype.getBlockState = function() {
if (this.gridOptionsService.isRowModelType("serverSide")) {
var r = this.rowModel;
return r.getBlockStates();
}
var o = {};
return this.blocks.forEach(function(i) {
var s = i.getBlockStateJson(), a = s.id, l = s.state;
o[a] = l;
}), o;
}, t.prototype.printCacheStatus = function() {
this.logger.isLogging() && this.logger.log("printCacheStatus: activePageLoadsCount = " + this.activeBlockLoadsCount + "," + (" blocks = " + JSON.stringify(this.getBlockState())));
}, t.prototype.isLoading = function() {
return this.activeBlockLoadsCount > 0;
}, t.prototype.registerLoads = function(r) {
this.activeBlockLoadsCount += r;
}, t.prototype.getAvailableLoadingCount = function() {
return this.maxConcurrentRequests !== void 0 ? this.maxConcurrentRequests - this.activeBlockLoadsCount : void 0;
};
var e;
return t.BLOCK_LOADED_EVENT = "blockLoaded", t.BLOCK_LOADER_FINISHED_EVENT = "blockLoaderFinished", uo([
h("rowModel")
], t.prototype, "rowModel", void 0), uo([
b
], t.prototype, "postConstruct", null), uo([
zv(0, Ce("loggerFactory"))
], t.prototype, "setBeans", null), t = e = uo([
A("rowNodeBlockLoader")
], t), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var $v = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), ji = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Yv = (
/** @class */
function(n) {
$v(t, n);
function t() {
var e = n !== null && n.apply(this, arguments) || this;
return e.currentPage = 0, e.topDisplayedRowIndex = 0, e.bottomDisplayedRowIndex = 0, e.pixelOffset = 0, e.masterRowCount = 0, e;
}
return t.prototype.postConstruct = function() {
this.active = this.gridOptionsService.is("pagination"), this.paginateChildRows = this.isPaginateChildRows(), this.addManagedListener(this.eventService, v.EVENT_MODEL_UPDATED, this.onModelUpdated.bind(this)), this.addManagedPropertyListener("pagination", this.onPaginationPageSizeChanged.bind(this)), this.addManagedPropertyListener("paginationPageSize", this.onPaginationPageSizeChanged.bind(this)), this.onModelUpdated();
}, t.prototype.ensureRowHeightsValid = function(e, r, o, i) {
var s = this.rowModel.ensureRowHeightsValid(e, r, this.getPageFirstRow(), this.getPageLastRow());
return s && this.calculatePages(), s;
}, t.prototype.isPaginateChildRows = function() {
var e = this.gridOptionsService.is("groupRemoveSingleChildren") || this.gridOptionsService.is("groupRemoveLowestSingleChildren");
return e ? !0 : this.gridOptionsService.is("paginateChildRows");
}, t.prototype.onModelUpdated = function(e) {
this.calculatePages();
var r = {
type: v.EVENT_PAGINATION_CHANGED,
animate: e ? e.animate : !1,
newData: e ? e.newData : !1,
newPage: e ? e.newPage : !1,
keepRenderedRows: e ? e.keepRenderedRows : !1
};
this.eventService.dispatchEvent(r);
}, t.prototype.onPaginationPageSizeChanged = function() {
this.active = this.gridOptionsService.is("pagination"), this.calculatePages();
var e = {
type: v.EVENT_PAGINATION_CHANGED,
animate: !1,
newData: !1,
newPage: !1,
// important to keep rendered rows, otherwise every time grid is resized,
// we would destroy all the rows.
keepRenderedRows: !0
};
this.eventService.dispatchEvent(e);
}, t.prototype.goToPage = function(e) {
if (!(!this.active || this.currentPage === e || typeof this.currentPage != "number")) {
this.currentPage = e;
var r = {
type: v.EVENT_MODEL_UPDATED,
animate: !1,
keepRenderedRows: !1,
newData: !1,
newPage: !0
};
this.onModelUpdated(r);
}
}, t.prototype.getPixelOffset = function() {
return this.pixelOffset;
}, t.prototype.getRow = function(e) {
return this.rowModel.getRow(e);
}, t.prototype.getRowNode = function(e) {
return this.rowModel.getRowNode(e);
}, t.prototype.getRowIndexAtPixel = function(e) {
return this.rowModel.getRowIndexAtPixel(e);
}, t.prototype.getCurrentPageHeight = function() {
return x(this.topRowBounds) || x(this.bottomRowBounds) ? 0 : Math.max(this.bottomRowBounds.rowTop + this.bottomRowBounds.rowHeight - this.topRowBounds.rowTop, 0);
}, t.prototype.getCurrentPagePixelRange = function() {
var e = this.topRowBounds ? this.topRowBounds.rowTop : 0, r = this.bottomRowBounds ? this.bottomRowBounds.rowTop + this.bottomRowBounds.rowHeight : 0;
return { pageFirstPixel: e, pageLastPixel: r };
}, t.prototype.isRowPresent = function(e) {
if (!this.rowModel.isRowPresent(e))
return !1;
var r = e.rowIndex >= this.topDisplayedRowIndex && e.rowIndex <= this.bottomDisplayedRowIndex;
return r;
}, t.prototype.isEmpty = function() {
return this.rowModel.isEmpty();
}, t.prototype.isRowsToRender = function() {
return this.rowModel.isRowsToRender();
}, t.prototype.forEachNode = function(e) {
return this.rowModel.forEachNode(e);
}, t.prototype.forEachNodeOnPage = function(e) {
for (var r = this.getPageFirstRow(), o = this.getPageLastRow(), i = r; i <= o; i++) {
var s = this.getRow(i);
s && e(s);
}
}, t.prototype.getType = function() {
return this.rowModel.getType();
}, t.prototype.getRowBounds = function(e) {
var r = this.rowModel.getRowBounds(e);
return r.rowIndex = e, r;
}, t.prototype.getPageFirstRow = function() {
return this.topRowBounds ? this.topRowBounds.rowIndex : -1;
}, t.prototype.getPageLastRow = function() {
return this.bottomRowBounds ? this.bottomRowBounds.rowIndex : -1;
}, t.prototype.getRowCount = function() {
return this.rowModel.getRowCount();
}, t.prototype.getPageForIndex = function(e) {
return Math.floor(e / this.pageSize);
}, t.prototype.goToPageWithIndex = function(e) {
if (this.active) {
var r = this.getPageForIndex(e);
this.goToPage(r);
}
}, t.prototype.isRowInPage = function(e) {
if (!this.active)
return !0;
var r = this.getPageForIndex(e.rowIndex);
return r === this.currentPage;
}, t.prototype.isLastPageFound = function() {
return this.rowModel.isLastRowIndexKnown();
}, t.prototype.getCurrentPage = function() {
return this.currentPage;
}, t.prototype.goToNextPage = function() {
this.goToPage(this.currentPage + 1);
}, t.prototype.goToPreviousPage = function() {
this.goToPage(this.currentPage - 1);
}, t.prototype.goToFirstPage = function() {
this.goToPage(0);
}, t.prototype.goToLastPage = function() {
var e = this.rowModel.getRowCount(), r = Math.floor(e / this.pageSize);
this.goToPage(r);
}, t.prototype.getPageSize = function() {
return this.pageSize;
}, t.prototype.getTotalPages = function() {
return this.totalPages;
}, t.prototype.setPageSize = function() {
this.pageSize = this.gridOptionsService.getNum("paginationPageSize"), (this.pageSize == null || this.pageSize < 1) && (this.pageSize = 100);
}, t.prototype.calculatePages = function() {
this.active ? (this.setPageSize(), this.paginateChildRows ? this.calculatePagesAllRows() : this.calculatePagesMasterRowsOnly()) : this.calculatedPagesNotActive(), this.topRowBounds = this.rowModel.getRowBounds(this.topDisplayedRowIndex), this.topRowBounds && (this.topRowBounds.rowIndex = this.topDisplayedRowIndex), this.bottomRowBounds = this.rowModel.getRowBounds(this.bottomDisplayedRowIndex), this.bottomRowBounds && (this.bottomRowBounds.rowIndex = this.bottomDisplayedRowIndex), this.setPixelOffset(O(this.topRowBounds) ? this.topRowBounds.rowTop : 0);
}, t.prototype.setPixelOffset = function(e) {
this.pixelOffset !== e && (this.pixelOffset = e, this.eventService.dispatchEvent({ type: v.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED }));
}, t.prototype.setZeroRows = function() {
this.masterRowCount = 0, this.topDisplayedRowIndex = 0, this.bottomDisplayedRowIndex = -1, this.currentPage = 0, this.totalPages = 0;
}, t.prototype.adjustCurrentPageIfInvalid = function() {
this.currentPage >= this.totalPages && (this.currentPage = this.totalPages - 1), (!isFinite(this.currentPage) || isNaN(this.currentPage) || this.currentPage < 0) && (this.currentPage = 0);
}, t.prototype.calculatePagesMasterRowsOnly = function() {
if (this.masterRowCount = this.rowModel.getTopLevelRowCount(), this.masterRowCount <= 0) {
this.setZeroRows();
return;
}
var e = this.masterRowCount - 1;
this.totalPages = Math.floor(e / this.pageSize) + 1, this.adjustCurrentPageIfInvalid();
var r = this.pageSize * this.currentPage, o = this.pageSize * (this.currentPage + 1) - 1;
if (o > e && (o = e), this.topDisplayedRowIndex = this.rowModel.getTopLevelRowDisplayedIndex(r), o === e)
this.bottomDisplayedRowIndex = this.rowModel.getRowCount() - 1;
else {
var i = this.rowModel.getTopLevelRowDisplayedIndex(o + 1);
this.bottomDisplayedRowIndex = i - 1;
}
}, t.prototype.getMasterRowCount = function() {
return this.masterRowCount;
}, t.prototype.calculatePagesAllRows = function() {
if (this.masterRowCount = this.rowModel.getRowCount(), this.masterRowCount === 0) {
this.setZeroRows();
return;
}
var e = this.masterRowCount - 1;
this.totalPages = Math.floor(e / this.pageSize) + 1, this.adjustCurrentPageIfInvalid(), this.topDisplayedRowIndex = this.pageSize * this.currentPage, this.bottomDisplayedRowIndex = this.pageSize * (this.currentPage + 1) - 1, this.bottomDisplayedRowIndex > e && (this.bottomDisplayedRowIndex = e);
}, t.prototype.calculatedPagesNotActive = function() {
this.pageSize = this.rowModel.getRowCount(), this.totalPages = 1, this.currentPage = 0, this.topDisplayedRowIndex = 0, this.bottomDisplayedRowIndex = this.rowModel.getRowCount() - 1;
}, ji([
h("rowModel")
], t.prototype, "rowModel", void 0), ji([
b
], t.prototype, "postConstruct", null), t = ji([
A("paginationProxy")
], t), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var qv = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Bs = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Qv = (
/** @class */
function(n) {
qv(t, n);
function t() {
return n !== null && n.apply(this, arguments) || this;
}
return t.prototype.processAllCellClasses = function(e, r, o, i) {
this.processClassRules(e.cellClassRules, r, o, i), this.processStaticCellClasses(e, r, o);
}, t.prototype.processClassRules = function(e, r, o, i) {
if (e != null) {
for (var s = Object.keys(e), a = {}, l = {}, u = function(d) {
var f = s[d], g = e[f], y;
typeof g == "string" ? y = c.expressionService.evaluate(g, r) : typeof g == "function" && (y = g(r)), f.split(" ").forEach(function(C) {
C == null || C.trim() == "" || (y ? a[C] = !0 : l[C] = !0);
});
}, c = this, p = 0; p < s.length; p++)
u(p);
i && Object.keys(l).forEach(i), Object.keys(a).forEach(o);
}
}, t.prototype.getStaticCellClasses = function(e, r) {
var o = e.cellClass;
if (!o)
return [];
var i;
if (typeof o == "function") {
var s = o;
i = s(r);
} else
i = o;
return typeof i == "string" && (i = [i]), i || [];
}, t.prototype.processStaticCellClasses = function(e, r, o) {
var i = this.getStaticCellClasses(e, r);
i.forEach(function(s) {
o(s);
});
}, Bs([
h("expressionService")
], t.prototype, "expressionService", void 0), t = Bs([
A("stylingService")
], t), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Xv = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Jv = (
/** @class */
function(n) {
Xv(t, n);
function t(e) {
return n.call(this, e, "ag-toggle-button") || this;
}
return t.prototype.setValue = function(e, r) {
return n.prototype.setValue.call(this, e, r), this.addOrRemoveCssClass("ag-selected", this.getValue()), this;
}, t;
}(Gr)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Zv = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), eg = (
/** @class */
function(n) {
Zv(t, n);
function t(e) {
return n.call(this, e, "ag-text-area", null, "textarea") || this;
}
return t.prototype.setValue = function(e, r) {
var o = n.prototype.setValue.call(this, e, r);
return this.eInput.value = e, o;
}, t.prototype.setCols = function(e) {
return this.eInput.cols = e, this;
}, t.prototype.setRows = function(e) {
return this.eInput.rows = e, this;
}, t;
}(nt)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var tg = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), rg = (
/** @class */
function(n) {
tg(t, n);
function t(e) {
return n.call(this, e, "ag-range-field", "range") || this;
}
return t.prototype.postConstruct = function() {
n.prototype.postConstruct.call(this);
var e = this.config, r = e.min, o = e.max, i = e.step;
r != null && this.setMinValue(r), o != null && this.setMaxValue(o), this.setStep(i || 1);
}, t.prototype.addInputListeners = function() {
var e = this;
this.addManagedListener(this.eInput, "input", function(r) {
var o = r.target.value;
e.setValue(o);
});
}, t.prototype.setMinValue = function(e) {
return this.min = e, this.eInput.setAttribute("min", e.toString()), this;
}, t.prototype.setMaxValue = function(e) {
return this.max = e, this.eInput.setAttribute("max", e.toString()), this;
}, t.prototype.setStep = function(e) {
return this.eInput.setAttribute("step", e.toString()), this;
}, t.prototype.setValue = function(e, r) {
this.min != null && (e = Math.max(parseFloat(e), this.min).toString()), this.max != null && (e = Math.min(parseFloat(e), this.max).toString());
var o = n.prototype.setValue.call(this, e, r);
return this.eInput.value = e, o;
}, t;
}(nt)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var og = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), co = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, ig = (
/** @class */
function(n) {
og(t, n);
function t(e) {
var r = n.call(this, e, t.TEMPLATE) || this;
return r.labelAlignment = "top", r;
}
return t.prototype.init = function() {
this.eSlider.addCssClass("ag-slider-field");
}, t.prototype.onValueChange = function(e) {
var r = this, o = tr.EVENT_CHANGED;
return this.addManagedListener(this.eText, o, function() {
var i = parseFloat(r.eText.getValue());
r.eSlider.setValue(i.toString(), !0), e(i || 0);
}), this.addManagedListener(this.eSlider, o, function() {
var i = r.eSlider.getValue();
r.eText.setValue(i, !0), e(parseFloat(i));
}), this;
}, t.prototype.setSliderWidth = function(e) {
return this.eSlider.setWidth(e), this;
}, t.prototype.setTextFieldWidth = function(e) {
return this.eText.setWidth(e), this;
}, t.prototype.setMinValue = function(e) {
return this.eSlider.setMinValue(e), this.eText.setMin(e), this;
}, t.prototype.setMaxValue = function(e) {
return this.eSlider.setMaxValue(e), this.eText.setMax(e), this;
}, t.prototype.getValue = function() {
return this.eText.getValue();
}, t.prototype.setValue = function(e) {
return this.getValue() === e ? this : (this.eText.setValue(e, !0), this.eSlider.setValue(e, !0), this.dispatchEvent({ type: tr.EVENT_CHANGED }), this);
}, t.prototype.setStep = function(e) {
return this.eSlider.setStep(e), this.eText.setStep(e), this;
}, t.TEMPLATE = `<div class="ag-slider">
<label ref="eLabel"></label>
<div class="ag-wrapper ag-slider-wrapper">
<ag-input-range ref="eSlider"></ag-input-range>
<ag-input-number-field ref="eText"></ag-input-number-field>
</div>
</div>`, co([
P("eLabel")
], t.prototype, "eLabel", void 0), co([
P("eSlider")
], t.prototype, "eSlider", void 0), co([
P("eText")
], t.prototype, "eText", void 0), co([
b
], t.prototype, "init", null), t;
}(ml)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var ng = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), pt = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, sg = (
/** @class */
function(n) {
ng(t, n);
function t(e) {
e === void 0 && (e = {});
var r = n.call(this, t.getTemplate(e)) || this;
r.suppressEnabledCheckbox = !0, r.suppressOpenCloseIcons = !1;
var o = e.title, i = e.enabled, s = e.items, a = e.suppressEnabledCheckbox, l = e.suppressOpenCloseIcons;
return r.title = o, r.cssIdentifier = e.cssIdentifier || "default", r.enabled = i ?? !0, r.items = s || [], r.alignItems = e.alignItems || "center", a != null && (r.suppressEnabledCheckbox = a), l != null && (r.suppressOpenCloseIcons = l), r;
}
return t.getTemplate = function(e) {
var r = e.cssIdentifier || "default", o = e.direction || "vertical";
return (
/* html */
'<div class="ag-group ag-' + r + `-group" role="presentation">
<div class="ag-group-title-bar ag-` + r + `-group-title-bar ag-unselectable" ref="eTitleBar" role="button">
<span class="ag-group-title-bar-icon ag-` + r + `-group-title-bar-icon" ref="eGroupOpenedIcon" role="presentation"></span>
<span class="ag-group-title-bar-icon ag-` + r + `-group-title-bar-icon" ref="eGroupClosedIcon" role="presentation"></span>
<span ref="eTitle" class="ag-group-title ag-` + r + `-group-title"></span>
</div>
<div ref="eToolbar" class="ag-group-toolbar ag-` + r + `-group-toolbar">
<ag-checkbox ref="cbGroupEnabled"></ag-checkbox>
</div>
<div ref="eContainer" class="ag-group-container ag-group-container-` + o + " ag-" + r + `-group-container"></div>
</div>`
);
}, t.prototype.postConstruct = function() {
if (this.items.length) {
var e = this.items;
this.items = [], this.addItems(e);
}
var r = this.localeService.getLocaleTextFunc();
this.cbGroupEnabled.setLabel(r("enabled", "Enabled")), this.title && this.setTitle(this.title), this.enabled && this.setEnabled(this.enabled), this.setAlignItems(this.alignItems), this.hideEnabledCheckbox(this.suppressEnabledCheckbox), this.hideOpenCloseIcons(this.suppressOpenCloseIcons), this.setupExpandContract(), this.refreshAriaStatus(), this.refreshChildDisplay();
}, t.prototype.setupExpandContract = function() {
var e = this;
this.eGroupClosedIcon.appendChild(Ie("columnSelectClosed", this.gridOptionsService, null)), this.eGroupOpenedIcon.appendChild(Ie("columnSelectOpen", this.gridOptionsService, null)), this.addManagedListener(this.eTitleBar, "click", function() {
return e.toggleGroupExpand();
}), this.addManagedListener(this.eTitleBar, "keydown", function(r) {
switch (r.key) {
case _.ENTER:
case _.SPACE:
r.preventDefault(), e.toggleGroupExpand();
break;
case _.RIGHT:
case _.LEFT:
r.preventDefault(), e.toggleGroupExpand(r.key === _.RIGHT);
break;
}
});
}, t.prototype.refreshAriaStatus = function() {
this.suppressOpenCloseIcons || ke(this.eTitleBar, this.expanded);
}, t.prototype.refreshChildDisplay = function() {
var e = !this.suppressOpenCloseIcons;
k(this.eToolbar, this.expanded && !this.suppressEnabledCheckbox), k(this.eGroupOpenedIcon, e && this.expanded), k(this.eGroupClosedIcon, e && !this.expanded);
}, t.prototype.isExpanded = function() {
return this.expanded;
}, t.prototype.setAlignItems = function(e) {
this.alignItems !== e && this.removeCssClass("ag-group-item-alignment-" + this.alignItems), this.alignItems = e;
var r = "ag-group-item-alignment-" + this.alignItems;
return this.addCssClass(r), this;
}, t.prototype.toggleGroupExpand = function(e) {
return this.suppressOpenCloseIcons ? (this.expanded = !0, this.refreshChildDisplay(), k(this.eContainer, !0), this) : (e = e ?? !this.expanded, this.expanded === e ? this : (this.expanded = e, this.refreshAriaStatus(), this.refreshChildDisplay(), k(this.eContainer, e), this.dispatchEvent({ type: this.expanded ? t.EVENT_EXPANDED : t.EVENT_COLLAPSED }), this));
}, t.prototype.addItems = function(e) {
var r = this;
e.forEach(function(o) {
return r.addItem(o);
});
}, t.prototype.addItem = function(e) {
var r = this.eContainer, o = e instanceof W ? e.getGui() : e;
o.classList.add("ag-group-item", "ag-" + this.cssIdentifier + "-group-item"), r.appendChild(o), this.items.push(o);
}, t.prototype.hideItem = function(e, r) {
var o = this.items[r];
k(o, !e);
}, t.prototype.setTitle = function(e) {
return this.eTitle.innerText = e, this;
}, t.prototype.addCssClassToTitleBar = function(e) {
this.eTitleBar.classList.add(e);
}, t.prototype.setEnabled = function(e, r) {
return this.enabled = e, this.refreshDisabledStyles(), this.toggleGroupExpand(e), r || this.cbGroupEnabled.setValue(e), this;
}, t.prototype.isEnabled = function() {
return this.enabled;
}, t.prototype.onEnableChange = function(e) {
var r = this;
return this.cbGroupEnabled.onValueChange(function(o) {
r.setEnabled(o, !0), e(o);
}), this;
}, t.prototype.hideEnabledCheckbox = function(e) {
return this.suppressEnabledCheckbox = e, this.refreshChildDisplay(), this.refreshDisabledStyles(), this;
}, t.prototype.hideOpenCloseIcons = function(e) {
return this.suppressOpenCloseIcons = e, e && this.toggleGroupExpand(!0), this;
}, t.prototype.refreshDisabledStyles = function() {
this.addOrRemoveCssClass("ag-disabled", !this.enabled), this.suppressEnabledCheckbox && !this.enabled ? (this.eTitleBar.classList.add("ag-disabled-group-title-bar"), this.eTitleBar.removeAttribute("tabindex")) : (this.eTitleBar.classList.remove("ag-disabled-group-title-bar"), this.eTitleBar.setAttribute("tabindex", "0")), this.eContainer.classList.toggle("ag-disabled-group-container", !this.enabled);
}, t.EVENT_EXPANDED = "expanded", t.EVENT_COLLAPSED = "collapsed", pt([
P("eTitleBar")
], t.prototype, "eTitleBar", void 0), pt([
P("eGroupOpenedIcon")
], t.prototype, "eGroupOpenedIcon", void 0), pt([
P("eGroupClosedIcon")
], t.prototype, "eGroupClosedIcon", void 0), pt([
P("eToolbar")
], t.prototype, "eToolbar", void 0), pt([
P("cbGroupEnabled")
], t.prototype, "cbGroupEnabled", void 0), pt([
P("eTitle")
], t.prototype, "eTitle", void 0), pt([
P("eContainer")
], t.prototype, "eContainer", void 0), pt([
b
], t.prototype, "postConstruct", null), t;
}(W)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var ag = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Ws = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Qt;
(function(n) {
n.TAB_GUARD = "ag-tab-guard", n.TAB_GUARD_TOP = "ag-tab-guard-top", n.TAB_GUARD_BOTTOM = "ag-tab-guard-bottom";
})(Qt || (Qt = {}));
var lg = (
/** @class */
function(n) {
ag(t, n);
function t(e) {
var r = n.call(this) || this;
r.skipTabGuardFocus = !1;
var o = e.comp, i = e.eTopGuard, s = e.eBottomGuard, a = e.focusInnerElement, l = e.onFocusIn, u = e.onFocusOut, c = e.shouldStopEventPropagation, p = e.onTabKeyDown, d = e.handleKeyDown, f = e.eFocusableElement;
return r.comp = o, r.eTopGuard = i, r.eBottomGuard = s, r.providedFocusInnerElement = a, r.eFocusableElement = f, r.providedFocusIn = l, r.providedFocusOut = u, r.providedShouldStopEventPropagation = c, r.providedOnTabKeyDown = p, r.providedHandleKeyDown = d, r;
}
return t.prototype.postConstruct = function() {
var e = this;
this.createManagedBean(new Et(this.eFocusableElement, {
shouldStopEventPropagation: function() {
return e.shouldStopEventPropagation();
},
onTabKeyDown: function(r) {
return e.onTabKeyDown(r);
},
handleKeyDown: function(r) {
return e.handleKeyDown(r);
},
onFocusIn: function(r) {
return e.onFocusIn(r);
},
onFocusOut: function(r) {
return e.onFocusOut(r);
}
})), this.activateTabGuards(), [this.eTopGuard, this.eBottomGuard].forEach(function(r) {
return e.addManagedListener(r, "focus", e.onFocus.bind(e));
});
}, t.prototype.handleKeyDown = function(e) {
this.providedHandleKeyDown && this.providedHandleKeyDown(e);
}, t.prototype.tabGuardsAreActive = function() {
return !!this.eTopGuard && this.eTopGuard.hasAttribute("tabIndex");
}, t.prototype.shouldStopEventPropagation = function() {
return this.providedShouldStopEventPropagation ? this.providedShouldStopEventPropagation() : !1;
}, t.prototype.activateTabGuards = function() {
this.comp.setTabIndex(this.getGridTabIndex());
}, t.prototype.deactivateTabGuards = function() {
this.comp.setTabIndex();
}, t.prototype.onFocus = function(e) {
if (this.skipTabGuardFocus) {
this.skipTabGuardFocus = !1;
return;
}
var r = e.target === this.eBottomGuard;
this.providedFocusInnerElement ? this.providedFocusInnerElement(r) : this.focusInnerElement(r);
}, t.prototype.onFocusIn = function(e) {
this.providedFocusIn && this.providedFocusIn(e) || this.deactivateTabGuards();
}, t.prototype.onFocusOut = function(e) {
this.providedFocusOut && this.providedFocusOut(e) || this.eFocusableElement.contains(e.relatedTarget) || this.activateTabGuards();
}, t.prototype.onTabKeyDown = function(e) {
var r = this;
if (this.providedOnTabKeyDown) {
this.providedOnTabKeyDown(e);
return;
}
if (!e.defaultPrevented) {
var o = this.tabGuardsAreActive();
o && this.deactivateTabGuards();
var i = this.getNextFocusableElement(e.shiftKey);
o && setTimeout(function() {
return r.activateTabGuards();
}, 0), i && (i.focus(), e.preventDefault());
}
}, t.prototype.getGridTabIndex = function() {
return (this.gridOptionsService.getNum("tabIndex") || 0).toString();
}, t.prototype.focusInnerElement = function(e) {
e === void 0 && (e = !1);
var r = this.focusService.findFocusableElements(this.eFocusableElement);
this.tabGuardsAreActive() && (r.splice(0, 1), r.splice(r.length - 1, 1)), r.length && r[e ? r.length - 1 : 0].focus({ preventScroll: !0 });
}, t.prototype.getNextFocusableElement = function(e) {
return this.focusService.findNextFocusableElement(this.eFocusableElement, !1, e);
}, t.prototype.forceFocusOutOfContainer = function(e) {
e === void 0 && (e = !1);
var r = e ? this.eTopGuard : this.eBottomGuard;
this.activateTabGuards(), this.skipTabGuardFocus = !0, r.focus();
}, Ws([
h("focusService")
], t.prototype, "focusService", void 0), Ws([
b
], t.prototype, "postConstruct", null), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var ug = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), cg = function(n, t) {
var e = typeof Symbol == "function" && n[Symbol.iterator];
if (!e)
return n;
var r = e.call(n), o, i = [], s;
try {
for (; (t === void 0 || t-- > 0) && !(o = r.next()).done; )
i.push(o.value);
} catch (a) {
s = { error: a };
} finally {
try {
o && !o.done && (e = r.return) && e.call(r);
} finally {
if (s)
throw s.error;
}
}
return i;
}, pg = function() {
for (var n = [], t = 0; t < arguments.length; t++)
n = n.concat(cg(arguments[t]));
return n;
}, ni = (
/** @class */
function(n) {
ug(t, n);
function t() {
return n !== null && n.apply(this, arguments) || this;
}
return t.prototype.initialiseTabGuard = function(e) {
this.eTopGuard = this.createTabGuard("top"), this.eBottomGuard = this.createTabGuard("bottom"), this.eFocusableElement = this.getFocusableElement();
var r = [this.eTopGuard, this.eBottomGuard], o = {
setTabIndex: function(i) {
r.forEach(function(s) {
return i != null ? s.setAttribute("tabIndex", i) : s.removeAttribute("tabIndex");
});
}
};
this.addTabGuards(this.eTopGuard, this.eBottomGuard), this.tabGuardCtrl = this.createManagedBean(new lg({
comp: o,
eTopGuard: this.eTopGuard,
eBottomGuard: this.eBottomGuard,
eFocusableElement: this.eFocusableElement,
onFocusIn: e.onFocusIn,
onFocusOut: e.onFocusOut,
focusInnerElement: e.focusInnerElement,
handleKeyDown: e.handleKeyDown,
onTabKeyDown: e.onTabKeyDown,
shouldStopEventPropagation: e.shouldStopEventPropagation
}));
}, t.prototype.createTabGuard = function(e) {
var r = document.createElement("div"), o = e === "top" ? Qt.TAB_GUARD_TOP : Qt.TAB_GUARD_BOTTOM;
return r.classList.add(Qt.TAB_GUARD, o), le(r, "presentation"), r;
}, t.prototype.addTabGuards = function(e, r) {
this.eFocusableElement.insertAdjacentElement("afterbegin", e), this.eFocusableElement.insertAdjacentElement("beforeend", r);
}, t.prototype.removeAllChildrenExceptTabGuards = function() {
var e = [this.eTopGuard, this.eBottomGuard];
Ae(this.getFocusableElement()), this.addTabGuards.apply(this, pg(e));
}, t.prototype.forceFocusOutOfContainer = function(e) {
e === void 0 && (e = !1), this.tabGuardCtrl.forceFocusOutOfContainer(e);
}, t.prototype.appendChild = function(e, r) {
kr(e) || (e = e.getGui());
var o = this.eBottomGuard;
o ? o.insertAdjacentElement("beforebegin", e) : n.prototype.appendChild.call(this, e, r);
}, t;
}(W)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var dg = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Ko = function() {
return Ko = Object.assign || function(n) {
for (var t, e = 1, r = arguments.length; e < r; e++) {
t = arguments[e];
for (var o in t)
Object.prototype.hasOwnProperty.call(t, o) && (n[o] = t[o]);
}
return n;
}, Ko.apply(this, arguments);
}, js = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, hg = (
/** @class */
function(n) {
dg(t, n);
function t(e) {
e === void 0 && (e = 1);
var r = n.call(
this,
/* html */
'<div class="ag-menu-list" role="tree"></div>'
) || this;
return r.level = e, r.menuItems = [], r;
}
return t.prototype.postConstruct = function() {
var e = this;
this.initialiseTabGuard({
onTabKeyDown: function(r) {
return e.onTabKeyDown(r);
},
handleKeyDown: function(r) {
return e.handleKeyDown(r);
}
});
}, t.prototype.onTabKeyDown = function(e) {
var r = this.getParentComponent(), o = r && r.getGui(), i = o && o.classList.contains("ag-focus-managed");
i || e.preventDefault(), e.shiftKey && this.closeIfIsChild(e);
}, t.prototype.handleKeyDown = function(e) {
switch (e.key) {
case _.UP:
case _.RIGHT:
case _.DOWN:
case _.LEFT:
e.preventDefault(), this.handleNavKey(e.key);
break;
case _.ESCAPE:
var r = this.findTopMenu();
r && this.focusService.focusInto(r.getGui());
break;
}
}, t.prototype.clearActiveItem = function() {
this.activeMenuItem && (this.activeMenuItem.deactivate(), this.activeMenuItem = null);
}, t.prototype.addMenuItems = function(e) {
var r = this;
e != null && e.forEach(function(o) {
o === "separator" ? r.addSeparator() : typeof o == "string" ? console.warn("AG Grid: unrecognised menu item " + o) : r.addItem(o);
});
}, t.prototype.addItem = function(e) {
var r = this, o = this.createManagedBean(new Cr(Ko(Ko({}, e), { isAnotherSubMenuOpen: function() {
return r.menuItems.some(function(i) {
return i.isSubMenuOpen();
});
} })));
o.setParentComponent(this), Wa(o.getGui(), this.level), this.menuItems.push(o), this.appendChild(o.getGui()), this.addManagedListener(o, Cr.EVENT_MENU_ITEM_SELECTED, function(i) {
r.dispatchEvent(i);
}), this.addManagedListener(o, Cr.EVENT_MENU_ITEM_ACTIVATED, function(i) {
r.activeMenuItem && r.activeMenuItem !== i.menuItem && r.activeMenuItem.deactivate(), r.activeMenuItem = i.menuItem;
});
}, t.prototype.activateFirstItem = function() {
var e = this.menuItems.filter(function(r) {
return !r.isDisabled();
})[0];
e && e.activate();
}, t.prototype.addSeparator = function() {
var e = (
/* html */
`
<div class="ag-menu-separator" aria-hidden="true">
<div class="ag-menu-separator-part"></div>
<div class="ag-menu-separator-part"></div>
<div class="ag-menu-separator-part"></div>
<div class="ag-menu-separator-part"></div>
</div>`
);
this.appendChild(de(e));
}, t.prototype.findTopMenu = function() {
var e = this.getParentComponent();
if (!e && this instanceof t)
return this;
for (; ; ) {
var r = e && e.getParentComponent && e.getParentComponent();
if (!r || !(r instanceof t || r instanceof Cr))
break;
e = r;
}
return e instanceof t ? e : void 0;
}, t.prototype.handleNavKey = function(e) {
switch (e) {
case _.UP:
case _.DOWN:
var r = this.findNextItem(e === _.UP);
r && r !== this.activeMenuItem && r.activate();
return;
}
var o = this.gridOptionsService.is("enableRtl") ? _.RIGHT : _.LEFT;
e === o ? this.closeIfIsChild() : this.openChild();
}, t.prototype.closeIfIsChild = function(e) {
var r = this.getParentComponent();
r && r instanceof Cr && (e && e.preventDefault(), r.closeSubMenu(), r.getGui().focus());
}, t.prototype.openChild = function() {
this.activeMenuItem && this.activeMenuItem.openSubMenu(!0);
}, t.prototype.findNextItem = function(e) {
var r = this.menuItems.filter(function(l) {
return !l.isDisabled();
});
if (r.length) {
if (!this.activeMenuItem)
return e ? q(r) : r[0];
e && r.reverse();
for (var o, i = !1, s = 0; s < r.length; s++) {
var a = r[s];
if (!i) {
a === this.activeMenuItem && (i = !0);
continue;
}
o = a;
break;
}
return o || this.activeMenuItem;
}
}, t.prototype.destroy = function() {
this.clearActiveItem(), n.prototype.destroy.call(this);
}, js([
h("focusService")
], t.prototype, "focusService", void 0), js([
b
], t.prototype, "postConstruct", null), t;
}(ni)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var fg = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), vg = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, gg = (
/** @class */
function(n) {
fg(t, n);
function t(e) {
var r = n.call(this) || this;
return r.wrappedComponent = e, r.setTemplateFromElement(e.getGui()), r;
}
return t.prototype.postConstruct = function() {
var e = this;
this.initialiseTabGuard({
onTabKeyDown: function(r) {
return e.onTabKeyDown(r);
},
handleKeyDown: function(r) {
return e.handleKeyDown(r);
}
});
}, t.prototype.handleKeyDown = function(e) {
e.key === _.ESCAPE && this.closePanel();
}, t.prototype.onTabKeyDown = function(e) {
e.defaultPrevented || (this.closePanel(), e.preventDefault());
}, t.prototype.closePanel = function() {
var e = this.parentComponent;
e.closeSubMenu(), setTimeout(function() {
return e.getGui().focus();
}, 0);
}, vg([
b
], t.prototype, "postConstruct", null), t;
}(ni)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var yg = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), ks = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Cr = (
/** @class */
function(n) {
yg(t, n);
function t(e) {
var r = n.call(this) || this;
return r.params = e, r.isActive = !1, r.subMenuIsOpen = !1, r.setTemplate(
/* html */
'<div class="' + r.getClassName() + '" tabindex="-1" role="treeitem"></div>'
), r;
}
return t.prototype.init = function() {
var e = this;
this.addIcon(), this.addName(), this.addShortcut(), this.addSubMenu(), this.addTooltip();
var r = this.getGui();
this.params.disabled ? (this.addCssClass(this.getClassName("disabled")), Mn(r, !0)) : (this.addGuiEventListener("click", function(o) {
return e.onItemSelected(o);
}), this.addGuiEventListener("keydown", function(o) {
(o.key === _.ENTER || o.key === _.SPACE) && (o.preventDefault(), e.onItemSelected(o));
}), this.addGuiEventListener("mousedown", function(o) {
o.stopPropagation(), o.preventDefault();
}), this.addGuiEventListener("mouseenter", function() {
return e.onMouseEnter();
}), this.addGuiEventListener("mouseleave", function() {
return e.onMouseLeave();
})), this.params.cssClasses && this.params.cssClasses.forEach(function(o) {
return e.addCssClass(o);
});
}, t.prototype.isDisabled = function() {
return !!this.params.disabled;
}, t.prototype.openSubMenu = function(e) {
var r = this;
if (e === void 0 && (e = !1), this.closeSubMenu(), !!this.params.subMenu) {
var o = de(
/* html */
'<div class="ag-menu" role="presentation"></div>'
), i;
if (this.params.subMenu instanceof Array) {
var s = Ga(this.getGui()), a = isNaN(s) ? 1 : s + 1, l = this.createBean(new hg(a));
l.setParentComponent(this), l.addMenuItems(this.params.subMenu), o.appendChild(l.getGui()), this.addManagedListener(l, t.EVENT_MENU_ITEM_SELECTED, function(w) {
return r.dispatchEvent(w);
}), l.addGuiEventListener("mouseenter", function() {
return r.cancelDeactivate();
}), i = function() {
return r.destroyBean(l);
}, e && setTimeout(function() {
return l.activateFirstItem();
}, 0);
} else {
var u = this.params.subMenu, c = this.createBean(new gg(u));
c.setParentComponent(this);
var p = c.getGui(), d = "mouseenter", f = function() {
return r.cancelDeactivate();
};
p.addEventListener(d, f), i = function() {
return p.removeEventListener(d, f);
}, o.appendChild(p), u.afterGuiAttached && setTimeout(function() {
return u.afterGuiAttached();
}, 0);
}
var g = this.getGui(), y = this.popupService.positionPopupForMenu.bind(this.popupService, { eventSource: g, ePopup: o }), C = this.localeService.getLocaleTextFunc(), m = this.popupService.addPopup({
modal: !0,
eChild: o,
positionCallback: y,
anchorToElement: g,
ariaLabel: C("ariaLabelSubMenu", "SubMenu")
});
this.subMenuIsOpen = !0, ke(g, !0), this.hideSubMenu = function() {
m && m.hideFunc(), r.subMenuIsOpen = !1, ke(g, !1), i();
};
}
}, t.prototype.closeSubMenu = function() {
this.hideSubMenu && (this.hideSubMenu(), this.hideSubMenu = null, ke(this.getGui(), !1));
}, t.prototype.isSubMenuOpen = function() {
return this.subMenuIsOpen;
}, t.prototype.activate = function(e) {
var r = this;
this.cancelActivate(), !this.params.disabled && (this.isActive = !0, this.addCssClass(this.getClassName("active")), this.getGui().focus(), e && this.params.subMenu && window.setTimeout(function() {
r.isAlive() && r.isActive && r.openSubMenu();
}, 300), this.onItemActivated());
}, t.prototype.deactivate = function() {
this.cancelDeactivate(), this.removeCssClass(this.getClassName("active")), this.isActive = !1, this.subMenuIsOpen && this.hideSubMenu();
}, t.prototype.addIcon = function() {
if (!(!this.params.checked && !this.params.icon && this.params.isCompact)) {
var e = de(
/* html */
'<span ref="eIcon" class="' + this.getClassName("part") + " " + this.getClassName("icon") + '" role="presentation"></span>'
);
this.params.checked ? e.appendChild(oe("check", this.gridOptionsService)) : this.params.icon && (kr(this.params.icon) ? e.appendChild(this.params.icon) : typeof this.params.icon == "string" ? e.innerHTML = this.params.icon : console.warn("AG Grid: menu item icon must be DOM node or string")), this.getGui().appendChild(e);
}
}, t.prototype.addName = function() {
if (!(!this.params.name && this.params.isCompact)) {
var e = de(
/* html */
'<span ref="eName" class="' + this.getClassName("part") + " " + this.getClassName("text") + '">' + (this.params.name || "") + "</span>"
);
this.getGui().appendChild(e);
}
}, t.prototype.addTooltip = function() {
this.params.tooltip && (this.tooltip = this.params.tooltip, this.gridOptionsService.is("enableBrowserTooltips") ? this.getGui().setAttribute("title", this.tooltip) : this.createManagedBean(new Jn(this)));
}, t.prototype.getTooltipParams = function() {
return {
location: "menu",
value: this.tooltip
};
}, t.prototype.addShortcut = function() {
if (!(!this.params.shortcut && this.params.isCompact)) {
var e = de(
/* html */
'<span ref="eShortcut" class="' + this.getClassName("part") + " " + this.getClassName("shortcut") + '">' + (this.params.shortcut || "") + "</span>"
);
this.getGui().appendChild(e);
}
}, t.prototype.addSubMenu = function() {
if (!(!this.params.subMenu && this.params.isCompact)) {
var e = de(
/* html */
'<span ref="ePopupPointer" class="' + this.getClassName("part") + " " + this.getClassName("popup-pointer") + '"></span>'
), r = this.getGui();
if (this.params.subMenu) {
var o = this.gridOptionsService.is("enableRtl") ? "smallLeft" : "smallRight";
ke(r, !1), e.appendChild(oe(o, this.gridOptionsService));
}
r.appendChild(e);
}
}, t.prototype.onItemSelected = function(e) {
if (this.params.action ? this.params.action() : this.openSubMenu(e && e.type === "keydown"), !(this.params.subMenu && !this.params.action)) {
var r = {
type: t.EVENT_MENU_ITEM_SELECTED,
action: this.params.action,
checked: this.params.checked,
cssClasses: this.params.cssClasses,
disabled: this.params.disabled,
icon: this.params.icon,
name: this.params.name,
shortcut: this.params.shortcut,
subMenu: this.params.subMenu,
tooltip: this.params.tooltip,
event: e
};
this.dispatchEvent(r);
}
}, t.prototype.onItemActivated = function() {
var e = {
type: t.EVENT_MENU_ITEM_ACTIVATED,
menuItem: this
};
this.dispatchEvent(e);
}, t.prototype.cancelActivate = function() {
this.activateTimeoutId && (window.clearTimeout(this.activateTimeoutId), this.activateTimeoutId = 0);
}, t.prototype.cancelDeactivate = function() {
this.deactivateTimeoutId && (window.clearTimeout(this.deactivateTimeoutId), this.deactivateTimeoutId = 0);
}, t.prototype.onMouseEnter = function() {
var e = this;
this.cancelDeactivate(), this.params.isAnotherSubMenuOpen() ? this.activateTimeoutId = window.setTimeout(function() {
return e.activate(!0);
}, t.ACTIVATION_DELAY) : this.activate(!0);
}, t.prototype.onMouseLeave = function() {
var e = this;
this.cancelActivate(), this.isSubMenuOpen() ? this.deactivateTimeoutId = window.setTimeout(function() {
return e.deactivate();
}, t.ACTIVATION_DELAY) : this.deactivate();
}, t.prototype.getClassName = function(e) {
var r = this.params.isCompact ? "ag-compact-menu-option" : "ag-menu-option";
return e ? r + "-" + e : r;
}, t.EVENT_MENU_ITEM_SELECTED = "menuItemSelected", t.EVENT_MENU_ITEM_ACTIVATED = "menuItemActivated", t.ACTIVATION_DELAY = 80, ks([
h("popupService")
], t.prototype, "popupService", void 0), ks([
b
], t.prototype, "init", null), t;
}(W)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Cg = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), mr = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, kl = (
/** @class */
function(n) {
Cg(t, n);
function t(e) {
var r = n.call(this, t.getTemplate(e)) || this;
return r.closable = !0, r.config = e, r;
}
return t.getTemplate = function(e) {
var r = e && e.cssIdentifier || "default";
return (
/* html */
'<div class="ag-panel ag-' + r + `-panel" tabindex="-1">
<div ref="eTitleBar" class="ag-panel-title-bar ag-` + r + `-panel-title-bar ag-unselectable">
<span ref="eTitle" class="ag-panel-title-bar-title ag-` + r + `-panel-title-bar-title"></span>
<div ref="eTitleBarButtons" class="ag-panel-title-bar-buttons ag-` + r + `-panel-title-bar-buttons"></div>
</div>
<div ref="eContentWrapper" class="ag-panel-content-wrapper ag-` + r + `-panel-content-wrapper"></div>
</div>`
);
}, t.prototype.postConstruct = function() {
var e = this, r = this.config, o = r.component, i = r.closable, s = r.hideTitleBar, a = r.title, l = r.minWidth, u = l === void 0 ? 250 : l, c = r.width, p = r.minHeight, d = p === void 0 ? 250 : p, f = r.height, g = r.centered, y = r.popup, C = r.x, m = r.y;
this.positionableFeature = new Cl(this.getGui(), {
minWidth: u,
width: c,
minHeight: d,
height: f,
centered: g,
x: C,
y: m,
popup: y,
calculateTopBuffer: function() {
return e.positionableFeature.getHeight() - e.getBodyHeight();
}
}), this.createManagedBean(this.positionableFeature);
var w = this.getGui();
o && this.setBodyComponent(o), s ? k(this.eTitleBar, !1) : (a && this.setTitle(a), this.setClosable(i ?? this.closable)), this.addManagedListener(this.eTitleBar, "mousedown", function(E) {
var R = e.gridOptionsService.getDocument();
if (w.contains(E.relatedTarget) || w.contains(R.activeElement) || e.eTitleBarButtons.contains(E.target)) {
E.preventDefault();
return;
}
var D = e.eContentWrapper.querySelector("button, [href], input, select, textarea, [tabindex]");
D && D.focus();
}), !(y && this.positionableFeature.isPositioned()) && (this.renderComponent && this.renderComponent(), this.positionableFeature.initialisePosition(), this.eContentWrapper.style.height = "0");
}, t.prototype.renderComponent = function() {
var e = this, r = this.getGui();
r.focus(), this.close = function() {
r.parentElement.removeChild(r), e.destroy();
};
}, t.prototype.getHeight = function() {
return this.positionableFeature.getHeight();
}, t.prototype.setHeight = function(e) {
this.positionableFeature.setHeight(e);
}, t.prototype.getWidth = function() {
return this.positionableFeature.getWidth();
}, t.prototype.setWidth = function(e) {
this.positionableFeature.setWidth(e);
}, t.prototype.setClosable = function(e) {
if (e !== this.closable && (this.closable = e), e) {
var r = this.closeButtonComp = new W(t.CLOSE_BTN_TEMPLATE);
this.getContext().createBean(r);
var o = r.getGui(), i = oe("close", this.gridOptionsService);
i.classList.add("ag-panel-title-bar-button-icon"), o.appendChild(i), this.addTitleBarButton(r), r.addManagedListener(o, "click", this.onBtClose.bind(this));
} else if (this.closeButtonComp) {
var o = this.closeButtonComp.getGui();
o.parentElement.removeChild(o), this.closeButtonComp = this.destroyBean(this.closeButtonComp);
}
}, t.prototype.setBodyComponent = function(e) {
e.setParentComponent(this), this.eContentWrapper.appendChild(e.getGui());
}, t.prototype.addTitleBarButton = function(e, r) {
var o = this.eTitleBarButtons, i = o.children, s = i.length;
r == null && (r = s), r = Math.max(0, Math.min(r, s)), e.addCssClass("ag-panel-title-bar-button");
var a = e.getGui();
r === 0 ? o.insertAdjacentElement("afterbegin", a) : r === s ? o.insertAdjacentElement("beforeend", a) : i[r - 1].insertAdjacentElement("afterend", a), e.setParentComponent(this);
}, t.prototype.getBodyHeight = function() {
return Wr(this.eContentWrapper);
}, t.prototype.getBodyWidth = function() {
return ti(this.eContentWrapper);
}, t.prototype.setTitle = function(e) {
this.eTitle.innerText = e;
}, t.prototype.onBtClose = function() {
this.close();
}, t.prototype.destroy = function() {
this.closeButtonComp && (this.closeButtonComp = this.destroyBean(this.closeButtonComp));
var e = this.getGui();
e && e.offsetParent && this.close(), n.prototype.destroy.call(this);
}, t.CLOSE_BTN_TEMPLATE = '<div class="ag-button"></div>', mr([
P("eContentWrapper")
], t.prototype, "eContentWrapper", void 0), mr([
P("eTitleBar")
], t.prototype, "eTitleBar", void 0), mr([
P("eTitleBarButtons")
], t.prototype, "eTitleBarButtons", void 0), mr([
P("eTitle")
], t.prototype, "eTitle", void 0), mr([
b
], t.prototype, "postConstruct", null), t;
}(W)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var mg = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), $o = function() {
return $o = Object.assign || function(n) {
for (var t, e = 1, r = arguments.length; e < r; e++) {
t = arguments[e];
for (var o in t)
Object.prototype.hasOwnProperty.call(t, o) && (n[o] = t[o]);
}
return n;
}, $o.apply(this, arguments);
}, wg = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Sg = (
/** @class */
function(n) {
mg(t, n);
function t(e) {
var r = n.call(this, $o($o({}, e), { popup: !0 })) || this;
return r.isMaximizable = !1, r.isMaximized = !1, r.maximizeListeners = [], r.resizeListenerDestroy = null, r.lastPosition = {
x: 0,
y: 0,
width: 0,
height: 0
}, r;
}
return t.prototype.postConstruct = function() {
var e = this, r = this.getGui(), o = this.config, i = o.movable, s = o.resizable, a = o.maximizable;
this.addCssClass("ag-dialog"), n.prototype.postConstruct.call(this), this.addManagedListener(r, "focusin", function(l) {
r.contains(l.relatedTarget) || e.popupService.bringPopupToFront(r);
}), i && this.setMovable(i), a && this.setMaximizable(a), s && this.setResizable(s);
}, t.prototype.renderComponent = function() {
var e = this.getGui(), r = this.config, o = r.alwaysOnTop, i = r.modal, s = r.title, a = this.localeService.getLocaleTextFunc(), l = this.popupService.addPopup({
modal: i,
eChild: e,
closeOnEsc: !0,
closedCallback: this.destroy.bind(this),
alwaysOnTop: o,
ariaLabel: s || a("ariaLabelDialog", "Dialog")
});
l && (this.close = l.hideFunc);
}, t.prototype.toggleMaximize = function() {
var e = this.positionableFeature.getPosition();
if (this.isMaximized) {
var r = this.lastPosition, o = r.x, i = r.y, s = r.width, a = r.height;
this.setWidth(s), this.setHeight(a), this.positionableFeature.offsetElement(o, i);
} else
this.lastPosition.width = this.getWidth(), this.lastPosition.height = this.getHeight(), this.lastPosition.x = e.x, this.lastPosition.y = e.y, this.positionableFeature.offsetElement(0, 0), this.setHeight("100%"), this.setWidth("100%");
this.isMaximized = !this.isMaximized, this.refreshMaximizeIcon();
}, t.prototype.refreshMaximizeIcon = function() {
k(this.maximizeIcon, !this.isMaximized), k(this.minimizeIcon, this.isMaximized);
}, t.prototype.clearMaximizebleListeners = function() {
this.maximizeListeners.length && (this.maximizeListeners.forEach(function(e) {
return e();
}), this.maximizeListeners.length = 0), this.resizeListenerDestroy && (this.resizeListenerDestroy(), this.resizeListenerDestroy = null);
}, t.prototype.destroy = function() {
this.maximizeButtonComp = this.destroyBean(this.maximizeButtonComp), this.clearMaximizebleListeners(), n.prototype.destroy.call(this);
}, t.prototype.setResizable = function(e) {
this.positionableFeature.setResizable(e);
}, t.prototype.setMovable = function(e) {
this.positionableFeature.setMovable(e, this.eTitleBar);
}, t.prototype.setMaximizable = function(e) {
var r = this;
if (!e) {
this.clearMaximizebleListeners(), this.maximizeButtonComp && (this.destroyBean(this.maximizeButtonComp), this.maximizeButtonComp = this.maximizeIcon = this.minimizeIcon = void 0);
return;
}
var o = this.eTitleBar;
if (!(!o || e === this.isMaximizable)) {
var i = this.buildMaximizeAndMinimizeElements();
this.refreshMaximizeIcon(), i.addManagedListener(i.getGui(), "click", this.toggleMaximize.bind(this)), this.addTitleBarButton(i, 0), this.maximizeListeners.push(this.addManagedListener(o, "dblclick", this.toggleMaximize.bind(this))), this.resizeListenerDestroy = this.addManagedListener(this, "resize", function() {
r.isMaximized = !1, r.refreshMaximizeIcon();
});
}
}, t.prototype.buildMaximizeAndMinimizeElements = function() {
var e = this.maximizeButtonComp = this.createBean(new W(
/* html */
'<div class="ag-dialog-button"></span>'
)), r = e.getGui();
return this.maximizeIcon = oe("maximize", this.gridOptionsService), r.appendChild(this.maximizeIcon), this.maximizeIcon.classList.add("ag-panel-title-bar-button-icon"), this.minimizeIcon = oe("minimize", this.gridOptionsService), r.appendChild(this.minimizeIcon), this.minimizeIcon.classList.add("ag-panel-title-bar-button-icon"), e;
}, wg([
h("popupService")
], t.prototype, "popupService", void 0), t;
}(kl)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Eg = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Ar = function() {
return Ar = Object.assign || function(n) {
for (var t, e = 1, r = arguments.length; e < r; e++) {
t = arguments[e];
for (var o in t)
Object.prototype.hasOwnProperty.call(t, o) && (n[o] = t[o]);
}
return n;
}, Ar.apply(this, arguments);
}, ze = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, _g = function(n, t) {
var e = typeof Symbol == "function" && n[Symbol.iterator];
if (!e)
return n;
var r = e.call(n), o, i = [], s;
try {
for (; (t === void 0 || t-- > 0) && !(o = r.next()).done; )
i.push(o.value);
} catch (a) {
s = { error: a };
} finally {
try {
o && !o.done && (e = r.return) && e.call(r);
} finally {
if (s)
throw s.error;
}
}
return i;
}, Rg = function() {
for (var n = [], t = 0; t < arguments.length; t++)
n = n.concat(_g(arguments[t]));
return n;
}, Fr = (
/** @class */
function(n) {
Eg(t, n);
function t() {
return n !== null && n.apply(this, arguments) || this;
}
e = t, t.addKeyboardModeEvents = function(r, o) {
var i = e.instancesMonitored.get(r);
i && i.length > 0 ? i.indexOf(o) === -1 && i.push(o) : (e.instancesMonitored.set(r, [o]), r.addEventListener("keydown", e.toggleKeyboardMode), r.addEventListener("mousedown", e.toggleKeyboardMode));
}, t.removeKeyboardModeEvents = function(r, o) {
var i = e.instancesMonitored.get(r), s = [];
i && i.length && (s = Rg(i).filter(function(a) {
return a !== o;
}), e.instancesMonitored.set(r, s)), s.length === 0 && (r.removeEventListener("keydown", e.toggleKeyboardMode), r.removeEventListener("mousedown", e.toggleKeyboardMode));
}, t.toggleKeyboardMode = function(r) {
var o = e.keyboardModeActive, i = r.type === "keydown";
if (!(i && (r.ctrlKey || r.metaKey || r.altKey)) && !(o && i || !o && !i)) {
e.keyboardModeActive = i;
var s = r.target.ownerDocument;
if (s) {
var a = e.instancesMonitored.get(s);
a && a.forEach(function(l) {
l.dispatchEvent({ type: i ? v.EVENT_KEYBOARD_FOCUS : v.EVENT_MOUSE_FOCUS });
});
}
}
}, t.prototype.init = function() {
var r = this, o = this.clearFocusedCell.bind(this);
this.addManagedListener(this.eventService, v.EVENT_COLUMN_PIVOT_MODE_CHANGED, o), this.addManagedListener(this.eventService, v.EVENT_NEW_COLUMNS_LOADED, this.onColumnEverythingChanged.bind(this)), this.addManagedListener(this.eventService, v.EVENT_COLUMN_GROUP_OPENED, o), this.addManagedListener(this.eventService, v.EVENT_COLUMN_ROW_GROUP_CHANGED, o), this.ctrlsService.whenReady(function(i) {
r.gridCtrl = i.gridCtrl;
var s = r.gridOptionsService.getDocument();
e.addKeyboardModeEvents(s, r.gridCtrl), r.addDestroyFunc(function() {
return r.unregisterGridCompController(r.gridCtrl);
});
});
}, t.prototype.unregisterGridCompController = function(r) {
var o = this.gridOptionsService.getDocument();
e.removeKeyboardModeEvents(o, r);
}, t.prototype.onColumnEverythingChanged = function() {
if (this.focusedCellPosition) {
var r = this.focusedCellPosition.column, o = this.columnModel.getGridColumn(r.getId());
r !== o && this.clearFocusedCell();
}
}, t.prototype.isKeyboardMode = function() {
return e.keyboardModeActive;
}, t.prototype.getFocusCellToUseAfterRefresh = function() {
var r = this.gridOptionsService.getDocument();
return this.gridOptionsService.is("suppressFocusAfterRefresh") || !this.focusedCellPosition || this.isDomDataMissingInHierarchy(r.activeElement, Lt.DOM_DATA_KEY_ROW_CTRL) ? null : this.focusedCellPosition;
}, t.prototype.getFocusHeaderToUseAfterRefresh = function() {
var r = this.gridOptionsService.getDocument();
return this.gridOptionsService.is("suppressFocusAfterRefresh") || !this.focusedHeaderPosition || this.isDomDataMissingInHierarchy(r.activeElement, ii.DOM_DATA_KEY_HEADER_CTRL) ? null : this.focusedHeaderPosition;
}, t.prototype.isDomDataMissingInHierarchy = function(r, o) {
for (var i = r; i; ) {
var s = this.gridOptionsService.getDomData(i, o);
if (s)
return !1;
i = i.parentNode;
}
return !0;
}, t.prototype.getFocusedCell = function() {
return this.focusedCellPosition;
}, t.prototype.getFocusEventParams = function() {
var r = this.focusedCellPosition, o = r.rowIndex, i = r.rowPinned, s = r.column, a = {
rowIndex: o,
rowPinned: i,
column: s,
isFullWidthCell: !1
}, l = this.rowRenderer.getRowByPosition({ rowIndex: o, rowPinned: i });
return l && (a.isFullWidthCell = l.isFullWidth()), a;
}, t.prototype.clearFocusedCell = function() {
if (this.focusedCellPosition != null) {
var r = Ar({ type: v.EVENT_CELL_FOCUS_CLEARED }, this.getFocusEventParams());
this.focusedCellPosition = null, this.eventService.dispatchEvent(r);
}
}, t.prototype.setFocusedCell = function(r) {
var o = r.column, i = r.rowIndex, s = r.rowPinned, a = r.forceBrowserFocus, l = a === void 0 ? !1 : a, u = r.preventScrollOnBrowserFocus, c = u === void 0 ? !1 : u, p = this.columnModel.getGridColumn(o);
if (!p) {
this.focusedCellPosition = null;
return;
}
this.focusedCellPosition = p ? {
rowIndex: i,
rowPinned: Ct(s),
column: p
} : null;
var d = Ar(Ar({ type: v.EVENT_CELL_FOCUSED }, this.getFocusEventParams()), {
forceBrowserFocus: l,
preventScrollOnBrowserFocus: c,
floating: null
});
this.eventService.dispatchEvent(d);
}, t.prototype.isCellFocused = function(r) {
return this.focusedCellPosition == null ? !1 : this.focusedCellPosition.column === r.column && this.isRowFocused(r.rowIndex, r.rowPinned);
}, t.prototype.isRowNodeFocused = function(r) {
return this.isRowFocused(r.rowIndex, r.rowPinned);
}, t.prototype.isHeaderWrapperFocused = function(r) {
if (this.focusedHeaderPosition == null)
return !1;
var o = r.getColumnGroupChild(), i = r.getRowIndex(), s = r.getPinned(), a = this.focusedHeaderPosition, l = a.column, u = a.headerRowIndex;
return o === l && i === u && s == l.getPinned();
}, t.prototype.clearFocusedHeader = function() {
this.focusedHeaderPosition = null;
}, t.prototype.getFocusedHeader = function() {
return this.focusedHeaderPosition;
}, t.prototype.setFocusedHeader = function(r, o) {
this.focusedHeaderPosition = { headerRowIndex: r, column: o };
}, t.prototype.focusHeaderPosition = function(r) {
var o = r.direction, i = r.fromTab, s = r.allowUserOverride, a = r.event, l = r.headerPosition;
if (s) {
var u = this.getFocusedHeader(), c = this.headerNavigationService.getHeaderRowCount();
if (i) {
var p = this.gridOptionsService.getCallback("tabToNextHeader");
if (p) {
var d = {
backwards: o === "Before",
previousHeaderPosition: u,
nextHeaderPosition: l,
headerRowCount: c
};
l = p(d);
}
} else {
var p = this.gridOptionsService.getCallback("navigateToNextHeader");
if (p && a) {
var f = {
key: a.key,
previousHeaderPosition: u,
nextHeaderPosition: l,
headerRowCount: c,
event: a
};
l = p(f);
}
}
}
if (!l)
return !1;
if (l.headerRowIndex === -1)
return this.focusGridView(l.column);
this.headerNavigationService.scrollToColumn(l.column, o);
var g = this.ctrlsService.getHeaderRowContainerCtrl(l.column.getPinned()), y = g.focusHeader(l.headerRowIndex, l.column, a);
return y;
}, t.prototype.focusFirstHeader = function() {
var r = this.columnModel.getAllDisplayedColumns()[0];
return r ? (r.getParent() && (r = this.columnModel.getColumnGroupAtLevel(r, 0)), this.focusHeaderPosition({
headerPosition: { headerRowIndex: 0, column: r }
})) : !1;
}, t.prototype.focusLastHeader = function(r) {
var o = this.headerNavigationService.getHeaderRowCount() - 1, i = q(this.columnModel.getAllDisplayedColumns());
return this.focusHeaderPosition({
headerPosition: { headerRowIndex: o, column: i },
event: r
});
}, t.prototype.isAnyCellFocused = function() {
return !!this.focusedCellPosition;
}, t.prototype.isRowFocused = function(r, o) {
return this.focusedCellPosition == null ? !1 : this.focusedCellPosition.rowIndex === r && this.focusedCellPosition.rowPinned === Ct(o);
}, t.prototype.findFocusableElements = function(r, o, i) {
i === void 0 && (i = !1);
var s = rl, a = jn;
o && (a += ", " + o), i && (a += ', [tabindex="-1"]');
var l = Array.prototype.slice.apply(r.querySelectorAll(s)), u = Array.prototype.slice.apply(r.querySelectorAll(a));
if (!u.length)
return l;
var c = function(p, d) {
return p.filter(function(f) {
return d.indexOf(f) === -1;
});
};
return c(l, u);
}, t.prototype.focusInto = function(r, o, i) {
o === void 0 && (o = !1), i === void 0 && (i = !1);
var s = this.findFocusableElements(r, null, i), a = o ? q(s) : s[0];
return a ? (a.focus({ preventScroll: !0 }), !0) : !1;
}, t.prototype.findFocusableElementBeforeTabGuard = function(r, o) {
if (!o)
return null;
var i = this.findFocusableElements(r), s = i.indexOf(o);
if (s === -1)
return null;
for (var a = -1, l = s - 1; l >= 0; l--)
if (i[l].classList.contains(Qt.TAB_GUARD_TOP)) {
a = l;
break;
}
return a <= 0 ? null : i[a - 1];
}, t.prototype.findNextFocusableElement = function(r, o, i) {
r === void 0 && (r = this.eGridDiv);
var s = this.findFocusableElements(r, o ? ':not([tabindex="-1"])' : null), a = this.gridOptionsService.getDocument(), l = a.activeElement, u;
o ? u = s.findIndex(function(p) {
return p.contains(l);
}) : u = s.indexOf(l);
var c = u + (i ? -1 : 1);
return c < 0 || c >= s.length ? null : s[c];
}, t.prototype.isTargetUnderManagedComponent = function(r, o) {
if (!o)
return !1;
var i = r.querySelectorAll("." + Et.FOCUS_MANAGED_CLASS);
if (!i.length)
return !1;
for (var s = 0; s < i.length; s++)
if (i[s].contains(o))
return !0;
return !1;
}, t.prototype.findTabbableParent = function(r, o) {
o === void 0 && (o = 5);
for (var i = 0; r && Fo(r) === null && ++i <= o; )
r = r.parentElement;
return Fo(r) === null ? null : r;
}, t.prototype.focusGridView = function(r, o) {
if (this.gridOptionsService.is("suppressCellFocus"))
return o ? this.focusLastHeader() : this.focusNextGridCoreContainer(!1);
var i = o ? this.rowPositionUtils.getLastRow() : this.rowPositionUtils.getFirstRow();
if (!i)
return !1;
var s = i.rowIndex, a = i.rowPinned, l = this.getFocusedHeader();
if (!r && l && (r = l.column), s == null || !r)
return !1;
if (this.navigationService.ensureCellVisible({ rowIndex: s, column: r, rowPinned: a }), this.setFocusedCell({
rowIndex: s,
column: r,
rowPinned: Ct(a),
forceBrowserFocus: !0
}), this.rangeService) {
var u = { rowIndex: s, rowPinned: a, column: r };
this.rangeService.setRangeToCell(u);
}
return !0;
}, t.prototype.focusNextGridCoreContainer = function(r, o) {
return o === void 0 && (o = !1), !o && this.gridCtrl.focusNextInnerContainer(r) ? !0 : ((o || !r && !this.gridCtrl.isDetailGrid()) && this.gridCtrl.forceFocusOutOfContainer(r), !1);
};
var e;
return t.AG_KEYBOARD_FOCUS = "ag-keyboard-focus", t.keyboardModeActive = !1, t.instancesMonitored = /* @__PURE__ */ new Map(), ze([
h("eGridDiv")
], t.prototype, "eGridDiv", void 0), ze([
h("columnModel")
], t.prototype, "columnModel", void 0), ze([
h("headerNavigationService")
], t.prototype, "headerNavigationService", void 0), ze([
h("rowRenderer")
], t.prototype, "rowRenderer", void 0), ze([
h("rowPositionUtils")
], t.prototype, "rowPositionUtils", void 0), ze([
Y("rangeService")
], t.prototype, "rangeService", void 0), ze([
h("navigationService")
], t.prototype, "navigationService", void 0), ze([
h("ctrlsService")
], t.prototype, "ctrlsService", void 0), ze([
b
], t.prototype, "init", null), t = e = ze([
A("focusService")
], t), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Og = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), wr = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Tg = function(n, t) {
var e = typeof Symbol == "function" && n[Symbol.iterator];
if (!e)
return n;
var r = e.call(n), o, i = [], s;
try {
for (; (t === void 0 || t-- > 0) && !(o = r.next()).done; )
i.push(o.value);
} catch (a) {
s = { error: a };
} finally {
try {
o && !o.done && (e = r.return) && e.call(r);
} finally {
if (s)
throw s.error;
}
}
return i;
}, bg = function() {
for (var n = [], t = 0; t < arguments.length; t++)
n = n.concat(Tg(arguments[t]));
return n;
}, vt;
(function(n) {
n[n.vertical = 0] = "vertical", n[n.horizontal = 1] = "horizontal";
})(vt || (vt = {}));
var Pg = 0, Dg = (
/** @class */
function(n) {
Og(t, n);
function t() {
var r = n !== null && n.apply(this, arguments) || this;
return r.popupList = [], r;
}
e = t, t.prototype.postConstruct = function() {
var r = this;
this.ctrlsService.whenReady(function(o) {
r.gridCtrl = o.gridCtrl, r.addManagedListener(r.gridCtrl, v.EVENT_KEYBOARD_FOCUS, function() {
r.popupList.forEach(function(i) {
return i.element.classList.add(Fr.AG_KEYBOARD_FOCUS);
});
}), r.addManagedListener(r.gridCtrl, v.EVENT_MOUSE_FOCUS, function() {
r.popupList.forEach(function(i) {
return i.element.classList.remove(Fr.AG_KEYBOARD_FOCUS);
});
});
});
}, t.prototype.getPopupParent = function() {
var r = this.gridOptionsService.get("popupParent");
return r || this.gridCtrl.getGui();
}, t.prototype.positionPopupForMenu = function(r) {
var o = r.eventSource.getBoundingClientRect(), i = this.getParentRect(), s = this.keepXYWithinBounds(r.ePopup, o.top - i.top, vt.vertical), a = r.ePopup.clientWidth > 0 ? r.ePopup.clientWidth : 200;
r.ePopup.style.minWidth = a + "px";
var l = i.right - i.left, u = l - a, c;
this.gridOptionsService.is("enableRtl") ? (c = d(), c < 0 && (c = p()), c > u && (c = 0)) : (c = p(), c > u && (c = d()), c < 0 && (c = 0)), r.ePopup.style.left = c + "px", r.ePopup.style.top = s + "px";
function p() {
return o.right - i.left - 2;
}
function d() {
return o.left - i.left - a;
}
}, t.prototype.positionPopupUnderMouseEvent = function(r) {
var o = this, i = r.ePopup, s = r.nudgeX, a = r.nudgeY, l = r.skipObserver;
this.positionPopup({
ePopup: i,
nudgeX: s,
nudgeY: a,
keepWithinBounds: !0,
skipObserver: l,
updatePosition: function() {
return o.calculatePointerAlign(r.mouseEvent);
},
postProcessCallback: function() {
return o.callPostProcessPopup(r.type, r.ePopup, null, r.mouseEvent, r.column, r.rowNode);
}
});
}, t.prototype.calculatePointerAlign = function(r) {
var o = this.getParentRect();
return {
x: r.clientX - o.left,
y: r.clientY - o.top
};
}, t.prototype.positionPopupByComponent = function(r) {
var o = this, i = r.eventSource.getBoundingClientRect(), s = r.alignSide || "left", a = r.position || "over", l = this.getParentRect(), u = function() {
var c = i.left - l.left;
s === "right" && (c -= r.ePopup.offsetWidth - i.width);
var p = a === "over" ? i.top - l.top : i.top - l.top + i.height;
return { x: c, y: p };
};
this.positionPopup({
ePopup: r.ePopup,
nudgeX: r.nudgeX,
nudgeY: r.nudgeY,
keepWithinBounds: r.keepWithinBounds,
updatePosition: u,
postProcessCallback: function() {
return o.callPostProcessPopup(r.type, r.ePopup, r.eventSource, null, r.column, r.rowNode);
}
});
}, t.prototype.callPostProcessPopup = function(r, o, i, s, a, l) {
var u = this.gridOptionsService.getCallback("postProcessPopup");
if (u) {
var c = {
column: a,
rowNode: l,
ePopup: o,
type: r,
eventSource: i,
mouseEvent: s
};
u(c);
}
}, t.prototype.positionPopup = function(r) {
var o = this, i = r.ePopup, s = r.keepWithinBounds, a = r.nudgeX, l = r.nudgeY, u = r.skipObserver, c = r.updatePosition, p = { width: 0, height: 0 }, d = function(g) {
g === void 0 && (g = !1);
var y = c(), C = y.x, m = y.y;
g && i.clientWidth === p.width && i.clientHeight === p.height || (p.width = i.clientWidth, p.height = i.clientHeight, a && (C += a), l && (m += l), s && (C = o.keepXYWithinBounds(i, C, vt.horizontal), m = o.keepXYWithinBounds(i, m, vt.vertical)), i.style.left = C + "px", i.style.top = m + "px", r.postProcessCallback && r.postProcessCallback());
};
if (d(), !u) {
var f = this.resizeObserverService.observeResize(i, function() {
return d(!0);
});
setTimeout(function() {
return f();
}, e.WAIT_FOR_POPUP_CONTENT_RESIZE);
}
}, t.prototype.getActivePopups = function() {
return this.popupList.map(function(r) {
return r.element;
});
}, t.prototype.getPopupList = function() {
return this.popupList;
}, t.prototype.getParentRect = function() {
var r = this.gridOptionsService.getDocument(), o = this.getPopupParent();
o === r.body ? o = r.documentElement : getComputedStyle(o).position === "static" && (o = o.offsetParent);
var i = getComputedStyle(o), s = o.getBoundingClientRect();
return {
top: s.top + parseFloat(i.borderTopWidth) || 0,
left: s.left + parseFloat(i.borderLeftWidth) || 0,
right: s.right + parseFloat(i.borderRightWidth) || 0,
bottom: s.bottom + parseFloat(i.borderBottomWidth) || 0
};
}, t.prototype.keepXYWithinBounds = function(r, o, i) {
var s = i === vt.vertical, a = s ? "clientHeight" : "clientWidth", l = s ? "top" : "left", u = s ? "offsetHeight" : "offsetWidth", c = s ? "scrollTop" : "scrollLeft", p = this.gridOptionsService.getDocument(), d = p.documentElement, f = this.getPopupParent(), g = f.getBoundingClientRect(), y = p.documentElement.getBoundingClientRect(), C = f === p.body, m = r[u], w = s ? Un : ri, E = C ? w(d) + d[c] : f[a];
C && (E -= Math.abs(y[l] - g[l]));
var R = E - m;
return Math.min(Math.max(o, 0), Math.abs(R));
}, t.prototype.keepPopupPositionedRelativeTo = function(r) {
var o = this, i = this.getPopupParent(), s = i.getBoundingClientRect(), a = r.element.getBoundingClientRect(), l = s.top - a.top, u = s.left - a.left, c = l, p = u, d = r.ePopup.style.top, f = parseInt(d.substring(0, d.length - 1), 10), g = r.ePopup.style.left, y = parseInt(g.substring(0, g.length - 1), 10);
return new Ne(function(C) {
o.getFrameworkOverrides().setInterval(function() {
var m = i.getBoundingClientRect(), w = r.element.getBoundingClientRect(), E = w.top == 0 && w.left == 0 && w.height == 0 && w.width == 0;
if (E) {
r.hidePopup();
return;
}
var R = m.top - w.top;
if (R != c) {
var D = o.keepXYWithinBounds(r.ePopup, f + l - R, vt.vertical);
r.ePopup.style.top = D + "px";
}
c = R;
var M = m.left - w.left;
if (M != p) {
var I = o.keepXYWithinBounds(r.ePopup, y + u - M, vt.horizontal);
r.ePopup.style.left = I + "px";
}
p = M;
}, 200).then(function(m) {
var w = function() {
m != null && window.clearInterval(m);
};
C(w);
});
});
}, t.prototype.addPopup = function(r) {
var o, i = this, s = r.modal, a = r.eChild, l = r.closeOnEsc, u = r.closedCallback, c = r.click, p = r.alwaysOnTop, d = r.afterGuiAttached, f = r.positionCallback, g = r.anchorToElement, y = r.ariaLabel, C = this.gridOptionsService.getDocument(), m = new Ne(function(U) {
return U(function() {
});
});
if (!C)
return console.warn("AG Grid: could not find the document, document is empty"), { hideFunc: function() {
}, stopAnchoringPromise: m };
var w = this.popupList.findIndex(function(U) {
return U.element === a;
});
if (w !== -1) {
var E = this.popupList[w];
return { hideFunc: E.hideFunc, stopAnchoringPromise: E.stopAnchoringPromise };
}
var R = this.getPopupParent();
a.style.top == null && (a.style.top = "0px"), a.style.left == null && (a.style.left = "0px");
var D = document.createElement("div"), M = this.environment.getTheme().allThemes;
M.length && (o = D.classList).add.apply(o, bg(M)), D.classList.add("ag-popup"), a.classList.add(this.gridOptionsService.is("enableRtl") ? "ag-rtl" : "ag-ltr", "ag-popup-child"), a.hasAttribute("role") || le(a, "dialog"), xt(a, y), this.focusService.isKeyboardMode() && a.classList.add(Fr.AG_KEYBOARD_FOCUS), D.appendChild(a), R.appendChild(D), p ? this.setAlwaysOnTop(D, !0) : this.bringPopupToFront(D);
var I = !1, L = function(U) {
if (D.contains(C.activeElement)) {
var ue = U.key;
ue === _.ESCAPE && Q({ keyboardEvent: U });
}
}, H = function(U) {
return Q({ mouseEvent: U });
}, B = function(U) {
return Q({ touchEvent: U });
}, Q = function(U) {
U === void 0 && (U = {});
var ue = U.mouseEvent, we = U.touchEvent, te = U.keyboardEvent;
// we don't hide popup if the event was on the child, or any
// children of this child
i.isEventFromCurrentPopup({ mouseEvent: ue, touchEvent: we }, a) || // if the event to close is actually the open event, then ignore it
i.isEventSameChainAsOriginalEvent({ originalMouseEvent: c, mouseEvent: ue, touchEvent: we }) || // this method should only be called once. the client can have different
// paths, each one wanting to close, so this method may be called multiple times.
I || (I = !0, R.removeChild(D), C.removeEventListener("keydown", L), C.removeEventListener("mousedown", H), C.removeEventListener("touchstart", B), C.removeEventListener("contextmenu", H), i.eventService.removeEventListener(v.EVENT_DRAG_STARTED, H), u && u(ue || we || te), i.popupList = i.popupList.filter(function(X) {
return X.element !== a;
}), m && m.then(function(X) {
return X && X();
}));
};
return d && d({ hidePopup: Q }), window.setTimeout(function() {
l && C.addEventListener("keydown", L), s && (C.addEventListener("mousedown", H), i.eventService.addEventListener(v.EVENT_DRAG_STARTED, H), C.addEventListener("touchstart", B), C.addEventListener("contextmenu", H));
}, 0), f && f(), g && (m = this.keepPopupPositionedRelativeTo({
element: g,
ePopup: a,
hidePopup: Q
})), this.popupList.push({
element: a,
wrapper: D,
hideFunc: Q,
stopAnchoringPromise: m,
instanceId: Pg++,
isAnchored: !!g
}), {
hideFunc: Q,
stopAnchoringPromise: m
};
}, t.prototype.hasAnchoredPopup = function() {
return this.popupList.some(function(r) {
return r.isAnchored;
});
}, t.prototype.isEventFromCurrentPopup = function(r, o) {
var i = r.mouseEvent, s = r.touchEvent, a = i || s;
if (!a)
return !1;
var l = this.popupList.findIndex(function(p) {
return p.element === o;
});
if (l === -1)
return !1;
for (var u = l; u < this.popupList.length; u++) {
var c = this.popupList[u];
if (Ao(c.element, a))
return !0;
}
return this.isElementWithinCustomPopup(a.target);
}, t.prototype.isElementWithinCustomPopup = function(r) {
for (var o = this.gridOptionsService.getDocument(); r && r !== o.body; ) {
if (r.classList.contains("ag-custom-component-popup") || r.parentElement === null)
return !0;
r = r.parentElement;
}
return !1;
}, t.prototype.isEventSameChainAsOriginalEvent = function(r) {
var o = r.originalMouseEvent, i = r.mouseEvent, s = r.touchEvent, a = null;
if (i ? a = i : s && (a = s.touches[0]), a && o) {
var l = i ? i.screenX : 0, u = i ? i.screenY : 0, c = Math.abs(o.screenX - l) < 5, p = Math.abs(o.screenY - u) < 5;
if (c && p)
return !0;
}
return !1;
}, t.prototype.getWrapper = function(r) {
for (; !r.classList.contains("ag-popup") && r.parentElement; )
r = r.parentElement;
return r.classList.contains("ag-popup") ? r : null;
}, t.prototype.setAlwaysOnTop = function(r, o) {
var i = this.getWrapper(r);
i && (i.classList.toggle("ag-always-on-top", !!o), o && this.bringPopupToFront(i));
}, t.prototype.bringPopupToFront = function(r) {
var o = this.getPopupParent(), i = Array.prototype.slice.call(o.querySelectorAll(".ag-popup")), s = i.length, a = Array.prototype.slice.call(o.querySelectorAll(".ag-popup.ag-always-on-top")), l = a.length, u = this.getWrapper(r);
if (!(!u || s <= 1 || !o.contains(r))) {
var c = i.indexOf(u), p = u.querySelectorAll("div"), d = [];
if (p.forEach(function(C) {
C.scrollTop !== 0 && d.push([C, C.scrollTop]);
}), l) {
var f = u.classList.contains("ag-always-on-top");
f ? c !== s - 1 && q(a).insertAdjacentElement("afterend", u) : c !== s - l - 1 && a[0].insertAdjacentElement("beforebegin", u);
} else
c !== s - 1 && q(i).insertAdjacentElement("afterend", u);
for (; d.length; ) {
var g = d.pop();
g[0].scrollTop = g[1];
}
var y = {
type: "popupToFront",
api: this.gridOptionsService.api,
columnApi: this.gridOptionsService.columnApi,
eWrapper: u
};
this.eventService.dispatchEvent(y);
}
};
var e;
return t.WAIT_FOR_POPUP_CONTENT_RESIZE = 200, wr([
h("focusService")
], t.prototype, "focusService", void 0), wr([
h("ctrlsService")
], t.prototype, "ctrlsService", void 0), wr([
h("resizeObserverService")
], t.prototype, "resizeObserverService", void 0), wr([
b
], t.prototype, "postConstruct", null), t = e = wr([
A("popupService")
], t), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Ag = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), ki = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
};
(function(n) {
Ag(t, n);
function t(e, r, o) {
e === void 0 && (e = "default"), r === void 0 && (r = "listbox");
var i = n.call(this, t.getTemplate(e)) || this;
return i.cssIdentifier = e, i.ariaRole = r, i.listName = o, i.renderedRows = /* @__PURE__ */ new Map(), i.rowHeight = 20, i;
}
return t.prototype.postConstruct = function() {
var e = this;
this.addScrollListener(), this.rowHeight = this.getItemHeight(), this.addResizeObserver(), this.initialiseTabGuard({
onFocusIn: function(r) {
return e.onFocusIn(r);
},
onFocusOut: function(r) {
return e.onFocusOut(r);
},
focusInnerElement: function(r) {
return e.focusInnerElement(r);
},
onTabKeyDown: function(r) {
return e.onTabKeyDown(r);
},
handleKeyDown: function(r) {
return e.handleKeyDown(r);
}
}), this.setAriaProperties(), this.addManagedListener(this.eventService, v.EVENT_GRID_STYLES_CHANGED, this.onGridStylesChanged.bind(this));
}, t.prototype.onGridStylesChanged = function() {
this.rowHeight = this.getItemHeight(), this.refresh();
}, t.prototype.setAriaProperties = function() {
var e = this.localeService.getLocaleTextFunc(), r = e("ariaDefaultListName", this.listName || "List"), o = this.eContainer;
le(o, this.ariaRole), xt(o, r);
}, t.prototype.addResizeObserver = function() {
var e = this, r = function() {
return e.drawVirtualRows();
}, o = this.resizeObserverService.observeResize(this.getGui(), r);
this.addDestroyFunc(o);
}, t.prototype.focusInnerElement = function(e) {
this.focusRow(e ? this.model.getRowCount() - 1 : 0);
}, t.prototype.onFocusIn = function(e) {
var r = e.target;
return r.classList.contains("ag-virtual-list-item") && (this.lastFocusedRowIndex = Ha(r) - 1), !1;
}, t.prototype.onFocusOut = function(e) {
return this.getFocusableElement().contains(e.relatedTarget) || (this.lastFocusedRowIndex = null), !1;
}, t.prototype.handleKeyDown = function(e) {
switch (e.key) {
case _.UP:
case _.DOWN:
this.navigate(e.key === _.UP) && e.preventDefault();
break;
}
}, t.prototype.onTabKeyDown = function(e) {
this.navigate(e.shiftKey) ? e.preventDefault() : this.forceFocusOutOfContainer(e.shiftKey);
}, t.prototype.navigate = function(e) {
if (this.lastFocusedRowIndex == null)
return !1;
var r = this.lastFocusedRowIndex + (e ? -1 : 1);
return r < 0 || r >= this.model.getRowCount() ? !1 : (this.focusRow(r), !0);
}, t.prototype.getLastFocusedRow = function() {
return this.lastFocusedRowIndex;
}, t.prototype.focusRow = function(e) {
var r = this;
this.ensureIndexVisible(e), window.setTimeout(function() {
if (r.isAlive()) {
var o = r.renderedRows.get(e);
o && o.eDiv.focus();
}
}, 10);
}, t.prototype.getComponentAt = function(e) {
var r = this.renderedRows.get(e);
return r && r.rowComponent;
}, t.prototype.forEachRenderedRow = function(e) {
this.renderedRows.forEach(function(r, o) {
return e(r.rowComponent, o);
});
}, t.getTemplate = function(e) {
return (
/* html */
`
<div class="ag-virtual-list-viewport ag-` + e + `-virtual-list-viewport" role="presentation">
<div class="ag-virtual-list-container ag-` + e + `-virtual-list-container" ref="eContainer"></div>
</div>`
);
}, t.prototype.getItemHeight = function() {
return this.environment.getListItemHeight();
}, t.prototype.ensureIndexVisible = function(e) {
var r = this.model.getRowCount();
if (typeof e != "number" || e < 0 || e >= r) {
console.warn("AG Grid: invalid row index for ensureIndexVisible: " + e);
return;
}
var o = e * this.rowHeight, i = o + this.rowHeight, s = this.getGui(), a = s.scrollTop, l = s.offsetHeight, u = a + l, c = a > o, p = u < i;
if (c)
s.scrollTop = o;
else if (p) {
var d = i - l;
s.scrollTop = d;
}
}, t.prototype.setComponentCreator = function(e) {
this.componentCreator = e;
}, t.prototype.setComponentUpdater = function(e) {
this.componentUpdater = e;
}, t.prototype.getRowHeight = function() {
return this.rowHeight;
}, t.prototype.getScrollTop = function() {
return this.getGui().scrollTop;
}, t.prototype.setRowHeight = function(e) {
this.rowHeight = e, this.refresh();
}, t.prototype.refresh = function(e) {
var r = this;
if (!(this.model == null || !this.isAlive())) {
var o = this.model.getRowCount();
this.eContainer.style.height = o * this.rowHeight + "px", ma(function() {
return r.eContainer.clientHeight >= o * r.rowHeight;
}, function() {
r.isAlive() && (r.canSoftRefresh(e) ? r.drawVirtualRows(!0) : (r.clearVirtualRows(), r.drawVirtualRows()));
});
}
}, t.prototype.canSoftRefresh = function(e) {
return !!(e && this.renderedRows.size && typeof this.model.areRowsEqual == "function" && this.componentUpdater);
}, t.prototype.clearVirtualRows = function() {
var e = this;
this.renderedRows.forEach(function(r, o) {
return e.removeRow(o);
});
}, t.prototype.drawVirtualRows = function(e) {
if (this.isAlive()) {
var r = this.getGui(), o = r.scrollTop, i = o + r.offsetHeight, s = Math.floor(o / this.rowHeight), a = Math.floor(i / this.rowHeight);
this.ensureRowsRendered(s, a, e);
}
}, t.prototype.ensureRowsRendered = function(e, r, o) {
var i = this;
this.renderedRows.forEach(function(a, l) {
(l < e || l > r) && l !== i.lastFocusedRowIndex && i.removeRow(l);
}), o && this.refreshRows();
for (var s = e; s <= r; s++)
this.renderedRows.has(s) || s < this.model.getRowCount() && this.insertRow(s);
}, t.prototype.insertRow = function(e) {
var r = this, o = this.model.getRow(e), i = document.createElement("div");
if (i.classList.add("ag-virtual-list-item", "ag-" + this.cssIdentifier + "-virtual-list-item"), le(i, this.ariaRole === "tree" ? "treeitem" : "option"), In(i, this.model.getRowCount()), xn(i, e + 1), i.setAttribute("tabindex", "-1"), typeof this.model.isRowSelected == "function") {
var s = this.model.isRowSelected(e);
Jt(i, !!s), qa(i, s);
}
i.style.height = this.rowHeight + "px", i.style.top = this.rowHeight * e + "px";
var a = this.componentCreator(o, i);
a.addGuiEventListener("focusin", function() {
return r.lastFocusedRowIndex = e;
}), i.appendChild(a.getGui()), this.renderedRows.has(e - 1) ? this.renderedRows.get(e - 1).eDiv.insertAdjacentElement("afterend", i) : this.renderedRows.has(e + 1) ? this.renderedRows.get(e + 1).eDiv.insertAdjacentElement("beforebegin", i) : this.eContainer.appendChild(i), this.renderedRows.set(e, { rowComponent: a, eDiv: i, value: o });
}, t.prototype.removeRow = function(e) {
var r = this.renderedRows.get(e);
this.eContainer.removeChild(r.eDiv), this.destroyBean(r.rowComponent), this.renderedRows.delete(e);
}, t.prototype.refreshRows = function() {
var e = this, r = this.model.getRowCount();
this.renderedRows.forEach(function(o, i) {
var s, a;
if (i >= r)
e.removeRow(i);
else {
var l = e.model.getRow(i);
!((a = (s = e.model).areRowsEqual) === null || a === void 0) && a.call(s, o.value, l) ? e.componentUpdater(l, o.rowComponent) : e.removeRow(i);
}
});
}, t.prototype.addScrollListener = function() {
var e = this;
this.addGuiEventListener("scroll", function() {
return e.drawVirtualRows();
}, { passive: !0 });
}, t.prototype.setModel = function(e) {
this.model = e;
}, t.prototype.destroy = function() {
this.isAlive() && (this.clearVirtualRows(), n.prototype.destroy.call(this));
}, ki([
h("resizeObserverService")
], t.prototype, "resizeObserverService", void 0), ki([
P("eContainer")
], t.prototype, "eContainer", void 0), ki([
b
], t.prototype, "postConstruct", null), t;
})(ni);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Fg = ["mouseover", "mouseout", "mouseenter", "mouseleave"], Lg = ["touchstart", "touchend", "touchmove", "touchcancel"], Mg = (
/** @class */
function() {
function n() {
this.isOutsideAngular = function(t) {
return He(Fg, t);
};
}
return n.prototype.setTimeout = function(t, e) {
window.setTimeout(t, e);
}, n.prototype.setInterval = function(t, e) {
return new Ne(function(r) {
r(window.setInterval(t, e));
});
}, n.prototype.addEventListener = function(t, e, r, o) {
var i = He(Lg, e);
t.addEventListener(e, r, { capture: !!o, passive: i });
}, n.prototype.dispatchEvent = function(t, e, r) {
e();
}, n.prototype.frameworkComponent = function(t) {
return null;
}, n.prototype.isFrameworkComponent = function(t) {
return !1;
}, n;
}()
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Ig = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Vt = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, xg = function(n, t) {
var e = typeof Symbol == "function" && n[Symbol.iterator];
if (!e)
return n;
var r = e.call(n), o, i = [], s;
try {
for (; (t === void 0 || t-- > 0) && !(o = r.next()).done; )
i.push(o.value);
} catch (a) {
s = { error: a };
} finally {
try {
o && !o.done && (e = r.return) && e.call(r);
} finally {
if (s)
throw s.error;
}
}
return i;
}, Ng = function() {
for (var n = [], t = 0; t < arguments.length; t++)
n = n.concat(xg(arguments[t]));
return n;
}, Gg = (
/** @class */
function(n) {
Ig(t, n);
function t() {
return n !== null && n.apply(this, arguments) || this;
}
return t.prototype.getNextCellToFocus = function(e, r, o) {
return o === void 0 && (o = !1), o ? this.getNextCellToFocusWithCtrlPressed(e, r) : this.getNextCellToFocusWithoutCtrlPressed(e, r);
}, t.prototype.getNextCellToFocusWithCtrlPressed = function(e, r) {
var o = e === _.UP, i = e === _.DOWN, s = e === _.LEFT, a, l;
if (o || i)
l = o ? this.paginationProxy.getPageFirstRow() : this.paginationProxy.getPageLastRow(), a = r.column;
else {
var u = this.columnModel.getAllDisplayedColumns(), c = this.gridOptionsService.is("enableRtl");
l = r.rowIndex, a = s !== c ? u[0] : q(u);
}
return {
rowIndex: l,
rowPinned: null,
column: a
};
}, t.prototype.getNextCellToFocusWithoutCtrlPressed = function(e, r) {
for (var o = r, i = !1; !i; ) {
switch (e) {
case _.UP:
o = this.getCellAbove(o);
break;
case _.DOWN:
o = this.getCellBelow(o);
break;
case _.RIGHT:
this.gridOptionsService.is("enableRtl") ? o = this.getCellToLeft(o) : o = this.getCellToRight(o);
break;
case _.LEFT:
this.gridOptionsService.is("enableRtl") ? o = this.getCellToRight(o) : o = this.getCellToLeft(o);
break;
default:
o = null, console.warn("AG Grid: unknown key for navigation " + e);
break;
}
o ? i = this.isCellGoodToFocusOn(o) : i = !0;
}
return o;
}, t.prototype.isCellGoodToFocusOn = function(e) {
var r = e.column, o;
switch (e.rowPinned) {
case "top":
o = this.pinnedRowModel.getPinnedTopRow(e.rowIndex);
break;
case "bottom":
o = this.pinnedRowModel.getPinnedBottomRow(e.rowIndex);
break;
default:
o = this.rowModel.getRow(e.rowIndex);
break;
}
if (!o)
return !1;
var i = r.isSuppressNavigable(o);
return !i;
}, t.prototype.getCellToLeft = function(e) {
if (!e)
return null;
var r = this.columnModel.getDisplayedColBefore(e.column);
return r ? {
rowIndex: e.rowIndex,
column: r,
rowPinned: e.rowPinned
} : null;
}, t.prototype.getCellToRight = function(e) {
if (!e)
return null;
var r = this.columnModel.getDisplayedColAfter(e.column);
return r ? {
rowIndex: e.rowIndex,
column: r,
rowPinned: e.rowPinned
} : null;
}, t.prototype.getRowBelow = function(e) {
var r = e.rowIndex, o = e.rowPinned;
if (this.isLastRowInContainer(e))
switch (o) {
case "bottom":
return null;
case "top":
return this.rowModel.isRowsToRender() ? { rowIndex: this.paginationProxy.getPageFirstRow(), rowPinned: null } : this.pinnedRowModel.isRowsToRender("bottom") ? { rowIndex: 0, rowPinned: "bottom" } : null;
default:
return this.pinnedRowModel.isRowsToRender("bottom") ? { rowIndex: 0, rowPinned: "bottom" } : null;
}
var i = this.rowModel.getRow(e.rowIndex), s = this.getNextStickyPosition(i);
return s || { rowIndex: r + 1, rowPinned: o };
}, t.prototype.getNextStickyPosition = function(e, r) {
if (!(!this.gridOptionsService.is("groupRowsSticky") || !e || !e.sticky)) {
var o = Ng(this.rowRenderer.getStickyTopRowCtrls()).sort(function(l, u) {
return l.getRowNode().rowIndex - u.getRowNode().rowIndex;
}), i = r ? -1 : 1, s = o.findIndex(function(l) {
return l.getRowNode().rowIndex === e.rowIndex;
}), a = o[s + i];
if (a)
return { rowIndex: a.getRowNode().rowIndex, rowPinned: null };
}
}, t.prototype.getCellBelow = function(e) {
if (!e)
return null;
var r = this.getRowBelow(e);
return r ? {
rowIndex: r.rowIndex,
column: e.column,
rowPinned: r.rowPinned
} : null;
}, t.prototype.isLastRowInContainer = function(e) {
var r = e.rowPinned, o = e.rowIndex;
if (r === "top") {
var i = this.pinnedRowModel.getPinnedTopRowData().length - 1;
return i <= o;
}
if (r === "bottom") {
var s = this.pinnedRowModel.getPinnedBottomRowData().length - 1;
return s <= o;
}
var a = this.paginationProxy.getPageLastRow();
return a <= o;
}, t.prototype.getRowAbove = function(e) {
var r = e.rowIndex, o = e.rowPinned, i = o ? r === 0 : r === this.paginationProxy.getPageFirstRow();
if (i)
return o === "top" ? null : o ? this.rowModel.isRowsToRender() ? this.getLastBodyCell() : this.pinnedRowModel.isRowsToRender("top") ? this.getLastFloatingTopRow() : null : this.pinnedRowModel.isRowsToRender("top") ? this.getLastFloatingTopRow() : null;
var s = this.rowModel.getRow(e.rowIndex), a = this.getNextStickyPosition(s, !0);
return a || { rowIndex: r - 1, rowPinned: o };
}, t.prototype.getCellAbove = function(e) {
if (!e)
return null;
var r = this.getRowAbove({ rowIndex: e.rowIndex, rowPinned: e.rowPinned });
return r ? {
rowIndex: r.rowIndex,
column: e.column,
rowPinned: r.rowPinned
} : null;
}, t.prototype.getLastBodyCell = function() {
var e = this.paginationProxy.getPageLastRow();
return { rowIndex: e, rowPinned: null };
}, t.prototype.getLastFloatingTopRow = function() {
var e = this.pinnedRowModel.getPinnedTopRowData().length - 1;
return { rowIndex: e, rowPinned: "top" };
}, t.prototype.getNextTabbedCell = function(e, r) {
return r ? this.getNextTabbedCellBackwards(e) : this.getNextTabbedCellForwards(e);
}, t.prototype.getNextTabbedCellForwards = function(e) {
var r = this.columnModel.getAllDisplayedColumns(), o = e.rowIndex, i = e.rowPinned, s = this.columnModel.getDisplayedColAfter(e.column);
if (!s) {
s = r[0];
var a = this.getRowBelow(e);
if (x(a) || !a.rowPinned && !this.paginationProxy.isRowInPage(a))
return null;
o = a ? a.rowIndex : null, i = a ? a.rowPinned : null;
}
return { rowIndex: o, column: s, rowPinned: i };
}, t.prototype.getNextTabbedCellBackwards = function(e) {
var r = this.columnModel.getAllDisplayedColumns(), o = e.rowIndex, i = e.rowPinned, s = this.columnModel.getDisplayedColBefore(e.column);
if (!s) {
s = q(r);
var a = this.getRowAbove({ rowIndex: e.rowIndex, rowPinned: e.rowPinned });
if (x(a) || !a.rowPinned && !this.paginationProxy.isRowInPage(a))
return null;
o = a ? a.rowIndex : null, i = a ? a.rowPinned : null;
}
return { rowIndex: o, column: s, rowPinned: i };
}, Vt([
h("columnModel")
], t.prototype, "columnModel", void 0), Vt([
h("rowModel")
], t.prototype, "rowModel", void 0), Vt([
h("rowRenderer")
], t.prototype, "rowRenderer", void 0), Vt([
h("pinnedRowModel")
], t.prototype, "pinnedRowModel", void 0), Vt([
h("paginationProxy")
], t.prototype, "paginationProxy", void 0), t = Vt([
A("cellNavigationService")
], t), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Hg = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Sr = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Vg = function(n, t) {
return function(e, r) {
t(e, r, n);
};
}, Bg = (
/** @class */
function(n) {
Hg(t, n);
function t() {
var e = n !== null && n.apply(this, arguments) || this;
return e.consuming = !1, e;
}
return t.prototype.setBeans = function(e) {
this.logger = e.create("AlignedGridsService");
}, t.prototype.init = function() {
this.addManagedListener(this.eventService, v.EVENT_COLUMN_MOVED, this.fireColumnEvent.bind(this)), this.addManagedListener(this.eventService, v.EVENT_COLUMN_VISIBLE, this.fireColumnEvent.bind(this)), this.addManagedListener(this.eventService, v.EVENT_COLUMN_PINNED, this.fireColumnEvent.bind(this)), this.addManagedListener(this.eventService, v.EVENT_COLUMN_GROUP_OPENED, this.fireColumnEvent.bind(this)), this.addManagedListener(this.eventService, v.EVENT_COLUMN_RESIZED, this.fireColumnEvent.bind(this)), this.addManagedListener(this.eventService, v.EVENT_BODY_SCROLL, this.fireScrollEvent.bind(this));
}, t.prototype.fireEvent = function(e) {
if (!this.consuming) {
var r = this.gridOptionsService.get("alignedGrids");
r && r.forEach(function(o) {
if (o.api) {
var i = o.api.__getAlignedGridService();
e(i);
}
});
}
}, t.prototype.onEvent = function(e) {
this.consuming = !0, e(), this.consuming = !1;
}, t.prototype.fireColumnEvent = function(e) {
this.fireEvent(function(r) {
r.onColumnEvent(e);
});
}, t.prototype.fireScrollEvent = function(e) {
e.direction === "horizontal" && this.fireEvent(function(r) {
r.onScrollEvent(e);
});
}, t.prototype.onScrollEvent = function(e) {
var r = this;
this.onEvent(function() {
var o = r.ctrlsService.getGridBodyCtrl();
o.getScrollFeature().setHorizontalScrollPosition(e.left);
});
}, t.prototype.getMasterColumns = function(e) {
var r = [];
return e.columns ? e.columns.forEach(function(o) {
r.push(o);
}) : e.column && r.push(e.column), r;
}, t.prototype.getColumnIds = function(e) {
var r = [];
return e.columns ? e.columns.forEach(function(o) {
r.push(o.getColId());
}) : e.column && r.push(e.column.getColId()), r;
}, t.prototype.onColumnEvent = function(e) {
var r = this;
this.onEvent(function() {
switch (e.type) {
case v.EVENT_COLUMN_MOVED:
case v.EVENT_COLUMN_VISIBLE:
case v.EVENT_COLUMN_PINNED:
case v.EVENT_COLUMN_RESIZED:
var o = e;
r.processColumnEvent(o);
break;
case v.EVENT_COLUMN_GROUP_OPENED:
var i = e;
r.processGroupOpenedEvent(i);
break;
case v.EVENT_COLUMN_PIVOT_CHANGED:
console.warn("AG Grid: pivoting is not supported with aligned grids. You can only use one of these features at a time in a grid.");
break;
}
});
}, t.prototype.processGroupOpenedEvent = function(e) {
var r = e.columnGroup, o = null;
if (r) {
var i = r.getGroupId();
o = this.columnModel.getProvidedColumnGroup(i);
}
r && !o || (this.logger.log("onColumnEvent-> processing " + e + " expanded = " + r.isExpanded()), this.columnModel.setColumnGroupOpened(o, r.isExpanded(), "alignedGridChanged"));
}, t.prototype.processColumnEvent = function(e) {
var r = this, o, i = e.column, s = null;
if (i && (s = this.columnModel.getPrimaryColumn(i.getColId())), !(i && !s)) {
var a = this.getMasterColumns(e);
switch (e.type) {
case v.EVENT_COLUMN_MOVED:
{
var l = e, u = e.columnApi.getColumnState(), c = u.map(function(w) {
return { colId: w.colId };
});
this.columnModel.applyColumnState({ state: c, applyOrder: !0 }, "alignedGridChanged"), this.logger.log("onColumnEvent-> processing " + e.type + " toIndex = " + l.toIndex);
}
break;
case v.EVENT_COLUMN_VISIBLE:
{
var p = e, u = e.columnApi.getColumnState(), c = u.map(function(R) {
return { colId: R.colId, hide: R.hide };
});
this.columnModel.applyColumnState({ state: c }, "alignedGridChanged"), this.logger.log("onColumnEvent-> processing " + e.type + " visible = " + p.visible);
}
break;
case v.EVENT_COLUMN_PINNED:
{
var d = e, u = e.columnApi.getColumnState(), c = u.map(function(R) {
return { colId: R.colId, pinned: R.pinned };
});
this.columnModel.applyColumnState({ state: c }, "alignedGridChanged"), this.logger.log("onColumnEvent-> processing " + e.type + " pinned = " + d.pinned);
}
break;
case v.EVENT_COLUMN_RESIZED:
var f = e, g = {};
a.forEach(function(w) {
r.logger.log("onColumnEvent-> processing " + e.type + " actualWidth = " + w.getActualWidth()), g[w.getId()] = { key: w.getColId(), newWidth: w.getActualWidth() };
}), (o = f.flexColumns) === null || o === void 0 || o.forEach(function(w) {
g[w.getId()] && delete g[w.getId()];
}), this.columnModel.setColumnWidths(Object.values(g), !1, f.finished, "alignedGridChanged");
break;
}
var y = this.ctrlsService.getGridBodyCtrl(), C = y.isVerticalScrollShowing(), m = this.gridOptionsService.get("alignedGrids");
m && m.forEach(function(w) {
w.api && w.api.setAlwaysShowVerticalScroll(C);
});
}
}, Sr([
h("columnModel")
], t.prototype, "columnModel", void 0), Sr([
h("ctrlsService")
], t.prototype, "ctrlsService", void 0), Sr([
Vg(0, Ce("loggerFactory"))
], t.prototype, "setBeans", null), Sr([
b
], t.prototype, "init", null), t = Sr([
A("alignedGridsService")
], t), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Wg = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Yo = function() {
return Yo = Object.assign || function(n) {
for (var t, e = 1, r = arguments.length; e < r; e++) {
t = arguments[e];
for (var o in t)
Object.prototype.hasOwnProperty.call(t, o) && (n[o] = t[o]);
}
return n;
}, Yo.apply(this, arguments);
}, Er = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, jg = function(n, t) {
return function(e, r) {
t(e, r, n);
};
}, kg = function(n, t) {
var e = typeof Symbol == "function" && n[Symbol.iterator];
if (!e)
return n;
var r = e.call(n), o, i = [], s;
try {
for (; (t === void 0 || t-- > 0) && !(o = r.next()).done; )
i.push(o.value);
} catch (a) {
s = { error: a };
} finally {
try {
o && !o.done && (e = r.return) && e.call(r);
} finally {
if (s)
throw s.error;
}
}
return i;
}, Ug = (
/** @class */
function(n) {
Wg(t, n);
function t() {
return n !== null && n.apply(this, arguments) || this;
}
return t.prototype.setBeans = function(e) {
this.logger = e.create("selectionService"), this.reset();
}, t.prototype.init = function() {
var e = this;
this.groupSelectsChildren = this.gridOptionsService.is("groupSelectsChildren"), this.addManagedPropertyListener("groupSelectsChildren", function(r) {
return e.groupSelectsChildren = r.currentValue;
}), this.rowSelection = this.gridOptionsService.get("rowSelection"), this.addManagedPropertyListener("rowSelection", function(r) {
return e.rowSelection = r.currentValue;
}), this.addManagedListener(this.eventService, v.EVENT_ROW_SELECTED, this.onRowSelected.bind(this));
}, t.prototype.isMultiselect = function() {
return this.rowSelection === "multiple";
}, t.prototype.setNodeSelected = function(e) {
var r, o = e.newValue, i = e.clearSelection, s = e.suppressFinishActions, a = e.rangeSelect;
e.event;
var l = e.node, u = e.source, c = u === void 0 ? "api" : u, p = this.groupSelectsChildren && e.groupSelectsFiltered === !0;
if (l.id === void 0)
return console.warn("AG Grid: cannot select node until id for node is known"), 0;
if (l.rowPinned)
return console.warn("AG Grid: cannot select pinned rows"), 0;
if (l.footer)
return this.setNodeSelected(Yo(Yo({}, e), { node: l.sibling }));
var d = this.getLastSelectedNode();
if (a && d) {
var f = d !== l;
if (f && this.isMultiselect()) {
var g = this.selectRange(l, d, e.newValue, c);
return this.setLastSelectedNode(l), g;
}
}
var y = p && l.group, C = 0;
if (!y) {
var m = l.selectThisNode(o, e.event, c);
m && C++;
}
if (this.groupSelectsChildren && (!((r = l.childrenAfterGroup) === null || r === void 0) && r.length) && (C += this.selectChildren(l, o, p, c)), !s) {
var w = o && (i || !this.isMultiselect());
if (w && (C += this.clearOtherNodes(l, c)), C > 0) {
this.updateGroupsFromChildrenSelections(c);
var E = {
type: v.EVENT_SELECTION_CHANGED,
source: c
};
this.eventService.dispatchEvent(E);
}
o && this.setLastSelectedNode(l);
}
return C;
}, t.prototype.selectRange = function(e, r, o, i) {
var s = this;
o === void 0 && (o = !0);
var a = this.rowModel.getNodesInRangeForSelection(e, r), l = 0;
a.forEach(function(c) {
if (!(c.group && s.groupSelectsChildren || o === !1 && e === c)) {
var p = c.selectThisNode(o, void 0, i);
p && l++;
}
}), this.updateGroupsFromChildrenSelections(i);
var u = {
type: v.EVENT_SELECTION_CHANGED,
source: i
};
return this.eventService.dispatchEvent(u), l;
}, t.prototype.selectChildren = function(e, r, o, i) {
var s = o ? e.childrenAfterAggFilter : e.childrenAfterGroup;
if (G.missing(s))
return 0;
for (var a = 0, l = 0; l < s.length; l++)
a += s[l].setSelectedParams({
newValue: r,
clearSelection: !1,
suppressFinishActions: !0,
groupSelectsFiltered: o,
source: i
});
return a;
}, t.prototype.setLastSelectedNode = function(e) {
this.lastSelectedNode = e;
}, t.prototype.getLastSelectedNode = function() {
return this.lastSelectedNode;
}, t.prototype.getSelectedNodes = function() {
var e = [];
return J(this.selectedNodes, function(r, o) {
o && e.push(o);
}), e;
}, t.prototype.getSelectedRows = function() {
var e = [];
return J(this.selectedNodes, function(r, o) {
o && o.data && e.push(o.data);
}), e;
}, t.prototype.getSelectionCount = function() {
return Object.values(this.selectedNodes).length;
}, t.prototype.filterFromSelection = function(e) {
var r = {};
Object.entries(this.selectedNodes).forEach(function(o) {
var i = kg(o, 2), s = i[0], a = i[1], l = a && e(a);
l && (r[s] = a);
}), this.selectedNodes = r;
}, t.prototype.updateGroupsFromChildrenSelections = function(e, r) {
if (!this.groupSelectsChildren || this.rowModel.getType() !== "clientSide")
return !1;
var o = this.rowModel, i = o.getRootNode();
r || (r = new us(!0, i), r.setInactive());
var s = !1;
return r.forEachChangedNodeDepthFirst(function(a) {
if (a !== i) {
var l = a.calculateSelectedFromChildren();
s = a.selectThisNode(l === null ? !1 : l, void 0, e) || s;
}
}), s;
}, t.prototype.clearOtherNodes = function(e, r) {
var o = this, i = {}, s = 0;
return J(this.selectedNodes, function(a, l) {
if (l && l.id !== e.id) {
var u = o.selectedNodes[l.id];
s += u.setSelectedParams({
newValue: !1,
clearSelection: !1,
suppressFinishActions: !0,
source: r
}), o.groupSelectsChildren && l.parent && (i[l.parent.id] = l.parent);
}
}), J(i, function(a, l) {
var u = l.calculateSelectedFromChildren();
l.selectThisNode(u === null ? !1 : u, void 0, r);
}), s;
}, t.prototype.onRowSelected = function(e) {
var r = e.node;
this.groupSelectsChildren && r.group || (r.isSelected() ? this.selectedNodes[r.id] = r : delete this.selectedNodes[r.id]);
}, t.prototype.syncInRowNode = function(e, r) {
this.syncInOldRowNode(e, r), this.syncInNewRowNode(e);
}, t.prototype.syncInOldRowNode = function(e, r) {
var o = O(r) && e.id !== r.id;
if (o && r) {
var i = r.id, s = this.selectedNodes[i] == e;
s && (this.selectedNodes[r.id] = r);
}
}, t.prototype.syncInNewRowNode = function(e) {
O(this.selectedNodes[e.id]) ? (e.setSelectedInitialValue(!0), this.selectedNodes[e.id] = e) : e.setSelectedInitialValue(!1);
}, t.prototype.reset = function() {
this.logger.log("reset"), this.selectedNodes = {}, this.lastSelectedNode = null;
}, t.prototype.getBestCostNodeSelection = function() {
if (this.rowModel.getType() !== "clientSide")
return;
var e = this.rowModel, r = e.getTopLevelNodes();
if (r === null)
return;
var o = [];
function i(s) {
for (var a = 0, l = s.length; a < l; a++) {
var u = s[a];
if (u.isSelected())
o.push(u);
else {
var c = u;
c.group && c.children && i(c.children);
}
}
}
return i(r), o;
}, t.prototype.isEmpty = function() {
var e = 0;
return J(this.selectedNodes, function(r, o) {
o && e++;
}), e === 0;
}, t.prototype.deselectAllRowNodes = function(e) {
var r = function(u) {
return u.selectThisNode(!1, void 0, i);
}, o = this.rowModel.getType() === "clientSide", i = e.source, s = e.justFiltered, a = e.justCurrentPage;
if (a || s) {
if (!o) {
console.error("AG Grid: selecting just filtered only works when gridOptions.rowModelType='clientSide'");
return;
}
this.getNodesToSelect(s, a).forEach(r);
} else
J(this.selectedNodes, function(u, c) {
c && r(c);
}), this.reset();
o && this.groupSelectsChildren && this.updateGroupsFromChildrenSelections(i);
var l = {
type: v.EVENT_SELECTION_CHANGED,
source: i
};
this.eventService.dispatchEvent(l);
}, t.prototype.getSelectAllState = function(e, r) {
var o = this, i = 0, s = 0, a = function(l) {
o.groupSelectsChildren && l.group || (l.isSelected() ? i++ : l.selectable && s++);
};
return this.getNodesToSelect(e, r).forEach(a), i === 0 && s === 0 ? !1 : i > 0 && s > 0 ? null : i > 0;
}, t.prototype.getNodesToSelect = function(e, r) {
var o = this;
if (e === void 0 && (e = !1), r === void 0 && (r = !1), this.rowModel.getType() !== "clientSide")
throw new Error("selectAll only available when rowModelType='clientSide', ie not " + this.rowModel.getType());
var i = [];
if (r)
return this.paginationProxy.forEachNodeOnPage(function(a) {
if (!a.group) {
i.push(a);
return;
}
if (!a.expanded) {
var l = function(u) {
var c;
i.push(u), !((c = u.childrenAfterFilter) === null || c === void 0) && c.length && u.childrenAfterFilter.forEach(l);
};
l(a);
return;
}
o.groupSelectsChildren || i.push(a);
}), i;
var s = this.rowModel;
return e ? (s.forEachNodeAfterFilter(function(a) {
i.push(a);
}), i) : (s.forEachNode(function(a) {
i.push(a);
}), i);
}, t.prototype.selectAllRowNodes = function(e) {
if (this.rowModel.getType() !== "clientSide")
throw new Error("selectAll only available when rowModelType='clientSide', ie not " + this.rowModel.getType());
var r = e.source, o = e.justFiltered, i = e.justCurrentPage, s = function(l) {
return l.selectThisNode(!0, void 0, r);
};
this.getNodesToSelect(o, i).forEach(s), this.rowModel.getType() === "clientSide" && this.groupSelectsChildren && this.updateGroupsFromChildrenSelections(r);
var a = {
type: v.EVENT_SELECTION_CHANGED,
source: r
};
this.eventService.dispatchEvent(a);
}, t.prototype.getServerSideSelectionState = function() {
return null;
}, t.prototype.setServerSideSelectionState = function(e) {
}, Er([
h("rowModel")
], t.prototype, "rowModel", void 0), Er([
h("paginationProxy")
], t.prototype, "paginationProxy", void 0), Er([
jg(0, Ce("loggerFactory"))
], t.prototype, "setBeans", null), Er([
b
], t.prototype, "init", null), t = Er([
A("selectionService")
], t), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Ui = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, zg = (
/** @class */
function() {
function n() {
}
return n.prototype.sizeColumnsToFit = function(t) {
typeof t > "u" && console.error("AG Grid: missing parameter to columnApi.sizeColumnsToFit(gridWidth)"), this.columnModel.sizeColumnsToFit(t, "api");
}, n.prototype.setColumnGroupOpened = function(t, e) {
this.columnModel.setColumnGroupOpened(t, e, "api");
}, n.prototype.getColumnGroup = function(t, e) {
return this.columnModel.getColumnGroup(t, e);
}, n.prototype.getProvidedColumnGroup = function(t) {
return this.columnModel.getProvidedColumnGroup(t);
}, n.prototype.getDisplayNameForColumn = function(t, e) {
return this.columnModel.getDisplayNameForColumn(t, e) || "";
}, n.prototype.getDisplayNameForColumnGroup = function(t, e) {
return this.columnModel.getDisplayNameForColumnGroup(t, e) || "";
}, n.prototype.getColumn = function(t) {
return this.columnModel.getPrimaryColumn(t);
}, n.prototype.getColumns = function() {
return this.columnModel.getAllPrimaryColumns();
}, n.prototype.applyColumnState = function(t) {
return this.columnModel.applyColumnState(t, "api");
}, n.prototype.getColumnState = function() {
return this.columnModel.getColumnState();
}, n.prototype.resetColumnState = function() {
this.columnModel.resetColumnState("api");
}, n.prototype.getColumnGroupState = function() {
return this.columnModel.getColumnGroupState();
}, n.prototype.setColumnGroupState = function(t) {
this.columnModel.setColumnGroupState(t, "api");
}, n.prototype.resetColumnGroupState = function() {
this.columnModel.resetColumnGroupState("api");
}, n.prototype.isPinning = function() {
return this.columnModel.isPinningLeft() || this.columnModel.isPinningRight();
}, n.prototype.isPinningLeft = function() {
return this.columnModel.isPinningLeft();
}, n.prototype.isPinningRight = function() {
return this.columnModel.isPinningRight();
}, n.prototype.getDisplayedColAfter = function(t) {
return this.columnModel.getDisplayedColAfter(t);
}, n.prototype.getDisplayedColBefore = function(t) {
return this.columnModel.getDisplayedColBefore(t);
}, n.prototype.setColumnVisible = function(t, e) {
this.columnModel.setColumnVisible(t, e, "api");
}, n.prototype.setColumnsVisible = function(t, e) {
this.columnModel.setColumnsVisible(t, e, "api");
}, n.prototype.setColumnPinned = function(t, e) {
this.columnModel.setColumnPinned(t, e, "api");
}, n.prototype.setColumnsPinned = function(t, e) {
this.columnModel.setColumnsPinned(t, e, "api");
}, n.prototype.getAllGridColumns = function() {
return this.columnModel.getAllGridColumns();
}, n.prototype.getDisplayedLeftColumns = function() {
return this.columnModel.getDisplayedLeftColumns();
}, n.prototype.getDisplayedCenterColumns = function() {
return this.columnModel.getDisplayedCenterColumns();
}, n.prototype.getDisplayedRightColumns = function() {
return this.columnModel.getDisplayedRightColumns();
}, n.prototype.getAllDisplayedColumns = function() {
return this.columnModel.getAllDisplayedColumns();
}, n.prototype.getAllDisplayedVirtualColumns = function() {
return this.columnModel.getViewportColumns();
}, n.prototype.moveColumn = function(t, e) {
this.columnModel.moveColumn(t, e, "api");
}, n.prototype.moveColumnByIndex = function(t, e) {
this.columnModel.moveColumnByIndex(t, e, "api");
}, n.prototype.moveColumns = function(t, e) {
this.columnModel.moveColumns(t, e, "api");
}, n.prototype.moveRowGroupColumn = function(t, e) {
this.columnModel.moveRowGroupColumn(t, e);
}, n.prototype.setColumnAggFunc = function(t, e) {
this.columnModel.setColumnAggFunc(t, e);
}, n.prototype.setColumnWidth = function(t, e, r, o) {
r === void 0 && (r = !0), this.columnModel.setColumnWidths([{ key: t, newWidth: e }], !1, r, o);
}, n.prototype.setColumnWidths = function(t, e, r) {
e === void 0 && (e = !0), this.columnModel.setColumnWidths(t, !1, e, r);
}, n.prototype.setPivotMode = function(t) {
this.columnModel.setPivotMode(t);
}, n.prototype.isPivotMode = function() {
return this.columnModel.isPivotMode();
}, n.prototype.getPivotResultColumn = function(t, e) {
return this.columnModel.getSecondaryPivotColumn(t, e);
}, n.prototype.setValueColumns = function(t) {
this.columnModel.setValueColumns(t, "api");
}, n.prototype.getValueColumns = function() {
return this.columnModel.getValueColumns();
}, n.prototype.removeValueColumn = function(t) {
this.columnModel.removeValueColumn(t, "api");
}, n.prototype.removeValueColumns = function(t) {
this.columnModel.removeValueColumns(t, "api");
}, n.prototype.addValueColumn = function(t) {
this.columnModel.addValueColumn(t, "api");
}, n.prototype.addValueColumns = function(t) {
this.columnModel.addValueColumns(t, "api");
}, n.prototype.setRowGroupColumns = function(t) {
this.columnModel.setRowGroupColumns(t, "api");
}, n.prototype.removeRowGroupColumn = function(t) {
this.columnModel.removeRowGroupColumn(t, "api");
}, n.prototype.removeRowGroupColumns = function(t) {
this.columnModel.removeRowGroupColumns(t, "api");
}, n.prototype.addRowGroupColumn = function(t) {
this.columnModel.addRowGroupColumn(t, "api");
}, n.prototype.addRowGroupColumns = function(t) {
this.columnModel.addRowGroupColumns(t, "api");
}, n.prototype.getRowGroupColumns = function() {
return this.columnModel.getRowGroupColumns();
}, n.prototype.setPivotColumns = function(t) {
this.columnModel.setPivotColumns(t, "api");
}, n.prototype.removePivotColumn = function(t) {
this.columnModel.removePivotColumn(t, "api");
}, n.prototype.removePivotColumns = function(t) {
this.columnModel.removePivotColumns(t, "api");
}, n.prototype.addPivotColumn = function(t) {
this.columnModel.addPivotColumn(t, "api");
}, n.prototype.addPivotColumns = function(t) {
this.columnModel.addPivotColumns(t, "api");
}, n.prototype.getPivotColumns = function() {
return this.columnModel.getPivotColumns();
}, n.prototype.getLeftDisplayedColumnGroups = function() {
return this.columnModel.getDisplayedTreeLeft();
}, n.prototype.getCenterDisplayedColumnGroups = function() {
return this.columnModel.getDisplayedTreeCentre();
}, n.prototype.getRightDisplayedColumnGroups = function() {
return this.columnModel.getDisplayedTreeRight();
}, n.prototype.getAllDisplayedColumnGroups = function() {
return this.columnModel.getAllDisplayedTrees();
}, n.prototype.autoSizeColumn = function(t, e) {
return this.columnModel.autoSizeColumn(t, e, "api");
}, n.prototype.autoSizeColumns = function(t, e) {
this.columnModel.autoSizeColumns({ columns: t, skipHeader: e });
}, n.prototype.autoSizeAllColumns = function(t) {
this.columnModel.autoSizeAllColumns(t, "api");
}, n.prototype.setPivotResultColumns = function(t) {
this.columnModel.setSecondaryColumns(t, "api");
}, n.prototype.getPivotResultColumns = function() {
return this.columnModel.getSecondaryColumns();
}, n.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid = function() {
setTimeout(G.removeAllReferences.bind(window, this, "Column API"), 100);
}, n.prototype.getAllColumns = function() {
return se("28.0", "getAllColumns", "getColumns"), this.getColumns();
}, n.prototype.getOriginalColumnGroup = function(t) {
return se("27.0", "getOriginalColumnGroup", "getProvidedColumnGroup"), this.columnModel.getProvidedColumnGroup(t);
}, n.prototype.getPrimaryColumns = function() {
return se("28.0", "getPrimaryColumns", "getColumns"), this.getColumns();
}, n.prototype.getSecondaryColumns = function() {
return se("28.0", "getSecondaryColumns", "getPivotResultColumns"), this.getPivotResultColumns();
}, n.prototype.setSecondaryColumns = function(t) {
se("28.0", "setSecondaryColumns", "setPivotResultColumns"), this.setPivotResultColumns(t);
}, n.prototype.getSecondaryPivotColumn = function(t, e) {
return se("28.0", "getSecondaryPivotColumn", "getPivotResultColumn"), this.getPivotResultColumn(t, e);
}, Ui([
h("columnModel")
], n.prototype, "columnModel", void 0), Ui([
fe
], n.prototype, "cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid", null), n = Ui([
A("columnApi")
], n), n;
}()
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Kg = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), _r = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, $g = (
/** @class */
function(n) {
Kg(t, n);
function t() {
var e = n !== null && n.apply(this, arguments) || this;
return e.initialised = !1, e;
}
return t.prototype.init = function() {
var e = this;
this.cellExpressions = this.gridOptionsService.is("enableCellExpressions"), this.isTreeData = this.gridOptionsService.is("treeData"), this.initialised = !0, this.eventService.addEventListener(v.EVENT_CELL_VALUE_CHANGED, function(r) {
return e.callColumnCellValueChangedHandler(r);
}, this.gridOptionsService.useAsyncEvents()), this.addManagedPropertyListener("treeData", function(r) {
return e.isTreeData = r.currentValue;
});
}, t.prototype.getValue = function(e, r, o, i) {
if (o === void 0 && (o = !1), i === void 0 && (i = !1), this.initialised || this.init(), !!r) {
var s = e.getColDef(), a = s.field, l = e.getColId(), u = r.data, c, p = r.groupData && r.groupData[l] !== void 0, d = !i && r.aggData && r.aggData[l] !== void 0;
if (o && s.filterValueGetter ? c = this.executeFilterValueGetter(s.filterValueGetter, u, e, r) : this.isTreeData && d ? c = r.aggData[l] : this.isTreeData && s.valueGetter ? c = this.executeValueGetter(s.valueGetter, u, e, r) : this.isTreeData && a && u ? c = bo(u, a, e.isFieldContainsDots()) : p ? c = r.groupData[l] : d ? c = r.aggData[l] : s.valueGetter ? c = this.executeValueGetter(s.valueGetter, u, e, r) : a && u && (c = bo(u, a, e.isFieldContainsDots())), this.cellExpressions && typeof c == "string" && c.indexOf("=") === 0) {
var f = c.substring(1);
c = this.executeValueGetter(f, u, e, r);
}
if (c == null) {
var g = this.getOpenedGroup(r, e);
if (g != null)
return g;
}
return c;
}
}, t.prototype.getOpenedGroup = function(e, r) {
if (this.gridOptionsService.is("showOpenedGroup")) {
var o = r.getColDef();
if (o.showRowGroup)
for (var i = r.getColDef().showRowGroup, s = e.parent; s != null; ) {
if (s.rowGroupColumn && (i === !0 || i === s.rowGroupColumn.getColId()))
return s.key;
s = s.parent;
}
}
}, t.prototype.setValue = function(e, r, o, i) {
var s = this.columnModel.getPrimaryColumn(r);
if (!e || !s)
return !1;
x(e.data) && (e.data = {});
var a = s.getColDef(), l = a.field, u = a.valueSetter;
if (x(l) && x(u))
return console.warn("AG Grid: you need either field or valueSetter set on colDef for editing to work"), !1;
var c = {
node: e,
data: e.data,
oldValue: this.getValue(s, e),
newValue: o,
colDef: s.getColDef(),
column: s,
api: this.gridOptionsService.api,
columnApi: this.gridOptionsService.columnApi,
context: this.gridOptionsService.context
};
c.newValue = o;
var p;
if (O(u) ? typeof u == "function" ? p = u(c) : p = this.expressionService.evaluate(u, c) : p = this.setValueUsingField(e.data, l, o, s.isFieldContainsDots()), p === void 0 && (p = !0), !p)
return !1;
e.resetQuickFilterAggregateText(), this.valueCache.onDataChanged(), c.newValue = this.getValue(s, e);
var d = {
type: v.EVENT_CELL_VALUE_CHANGED,
event: null,
rowIndex: e.rowIndex,
rowPinned: e.rowPinned,
column: c.column,
api: c.api,
columnApi: c.columnApi,
colDef: c.colDef,
context: c.context,
data: e.data,
node: e,
oldValue: c.oldValue,
newValue: c.newValue,
value: c.newValue,
source: i
};
return this.eventService.dispatchEvent(d), !0;
}, t.prototype.callColumnCellValueChangedHandler = function(e) {
var r = e.colDef.onCellValueChanged;
typeof r == "function" && r({
node: e.node,
data: e.data,
oldValue: e.oldValue,
newValue: e.newValue,
colDef: e.colDef,
column: e.column,
api: e.api,
columnApi: e.columnApi,
context: e.context
});
}, t.prototype.setValueUsingField = function(e, r, o, i) {
if (!r)
return !1;
var s = !1;
if (!i)
s = e[r] == o, s || (e[r] = o);
else
for (var a = r.split("."), l = e; a.length > 0 && l; ) {
var u = a.shift();
a.length === 0 ? (s = l[u] == o, s || (l[u] = o)) : l = l[u];
}
return !s;
}, t.prototype.executeFilterValueGetter = function(e, r, o, i) {
var s = {
data: r,
node: i,
column: o,
colDef: o.getColDef(),
api: this.gridOptionsService.api,
columnApi: this.gridOptionsService.columnApi,
context: this.gridOptionsService.context,
getValue: this.getValueCallback.bind(this, i)
};
return typeof e == "function" ? e(s) : this.expressionService.evaluate(e, s);
}, t.prototype.executeValueGetter = function(e, r, o, i) {
var s = o.getColId(), a = this.valueCache.getValue(i, s);
if (a !== void 0)
return a;
var l = {
data: r,
node: i,
column: o,
colDef: o.getColDef(),
api: this.gridOptionsService.api,
columnApi: this.gridOptionsService.columnApi,
context: this.gridOptionsService.context,
getValue: this.getValueCallback.bind(this, i)
}, u;
return typeof e == "function" ? u = e(l) : u = this.expressionService.evaluate(e, l), this.valueCache.setValue(i, s, u), u;
}, t.prototype.getValueCallback = function(e, r) {
var o = this.columnModel.getPrimaryColumn(r);
return o ? this.getValue(o, e) : null;
}, t.prototype.getKeyForNode = function(e, r) {
var o = this.getValue(e, r), i = e.getColDef().keyCreator, s = o;
if (i) {
var a = {
value: o,
colDef: e.getColDef(),
column: e,
node: r,
data: r.data,
api: this.gridOptionsService.api,
columnApi: this.gridOptionsService.columnApi,
context: this.gridOptionsService.context
};
s = i(a);
}
return typeof s == "string" || s == null || (s = String(s), s === "[object Object]" && K(function() {
console.warn("AG Grid: a column you are grouping or pivoting by has objects as values. If you want to group by complex objects then either a) use a colDef.keyCreator (se AG Grid docs) or b) to toString() on the object to return a key");
}, "getKeyForNode - warn about [object,object]")), s;
}, _r([
h("expressionService")
], t.prototype, "expressionService", void 0), _r([
h("columnModel")
], t.prototype, "columnModel", void 0), _r([
h("valueCache")
], t.prototype, "valueCache", void 0), _r([
b
], t.prototype, "init", null), t = _r([
A("valueService")
], t), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Yg = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Us = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, qg = function(n, t) {
return function(e, r) {
t(e, r, n);
};
}, Qg = (
/** @class */
function(n) {
Yg(t, n);
function t() {
var e = n !== null && n.apply(this, arguments) || this;
return e.expressionToFunctionCache = {}, e;
}
return t.prototype.setBeans = function(e) {
this.logger = e.create("ExpressionService");
}, t.prototype.evaluate = function(e, r) {
if (typeof e == "string")
return this.evaluateExpression(e, r);
console.error("AG Grid: value should be either a string or a function", e);
}, t.prototype.evaluateExpression = function(e, r) {
try {
var o = this.createExpressionFunction(e), i = o(r.value, r.context, r.oldValue, r.newValue, r.value, r.node, r.data, r.colDef, r.rowIndex, r.api, r.columnApi, r.getValue, r.column, r.columnGroup);
return i;
} catch (s) {
return console.log("Processing of the expression failed"), console.log("Expression = " + e), console.log("Params =", r), console.log("Exception = " + s), null;
}
}, t.prototype.createExpressionFunction = function(e) {
if (this.expressionToFunctionCache[e])
return this.expressionToFunctionCache[e];
var r = this.createFunctionBody(e), o = new Function("x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, columnApi, getValue, column, columnGroup", r);
return this.expressionToFunctionCache[e] = o, o;
}, t.prototype.createFunctionBody = function(e) {
return e.indexOf("return") >= 0 ? e : "return " + e + ";";
}, Us([
qg(0, Ce("loggerFactory"))
], t.prototype, "setBeans", null), t = Us([
A("expressionService")
], t), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Xg = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Jg = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Zg = (
/** @class */
function(n) {
Xg(t, n);
function t() {
var e = n !== null && n.apply(this, arguments) || this;
return e.templateCache = {}, e.waitingCallbacks = {}, e;
}
return t.prototype.getTemplate = function(e, r) {
var o = this.templateCache[e];
if (o)
return o;
var i = this.waitingCallbacks[e], s = this;
if (!i) {
i = [], this.waitingCallbacks[e] = i;
var a = new XMLHttpRequest();
a.onload = function() {
s.handleHttpResult(this, e);
}, a.open("GET", e), a.send();
}
return r && i.push(r), null;
}, t.prototype.handleHttpResult = function(e, r) {
if (e.status !== 200 || e.response === null) {
console.warn("AG Grid: Unable to get template error " + e.status + " - " + r);
return;
}
this.templateCache[r] = e.response || e.responseText;
for (var o = this.waitingCallbacks[r], i = 0; i < o.length; i++) {
var s = o[i];
s();
}
}, t = Jg([
A("templateService")
], t), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var ey = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), zs = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, ty = function(n, t) {
return function(e, r) {
t(e, r, n);
};
}, ry = (
/** @class */
function(n) {
ey(t, n);
function t() {
return n !== null && n.apply(this, arguments) || this;
}
return t.prototype.setBeans = function(e) {
this.logging = e.is("debug");
}, t.prototype.create = function(e) {
return new Rn(e, this.isLogging.bind(this));
}, t.prototype.isLogging = function() {
return this.logging;
}, zs([
ty(0, Ce("gridOptionsService"))
], t.prototype, "setBeans", null), t = zs([
A("loggerFactory")
], t), t;
}(T)
), Rn = (
/** @class */
function() {
function n(t, e) {
this.name = t, this.isLoggingFunc = e;
}
return n.prototype.isLogging = function() {
return this.isLoggingFunc();
}, n.prototype.log = function(t) {
this.isLoggingFunc() && console.log("AG Grid." + this.name + ": " + t);
}, n;
}()
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var oy = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Bt = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, iy = (
/** @class */
function(n) {
oy(t, n);
function t() {
return n !== null && n.apply(this, arguments) || this;
}
return t.prototype.setComp = function(e, r, o) {
var i = this;
this.view = e, this.eGridHostDiv = r, this.eGui = o, this.dragAndDropService.addDropTarget({
getContainer: function() {
return i.eGui;
},
isInterestedIn: function(a) {
return a === me.HeaderCell || a === me.ToolPanel;
},
getIconName: function() {
return pe.ICON_NOT_ALLOWED;
}
}), this.mouseEventService.stampTopLevelGridCompWithGridInstance(r), this.createManagedBean(new is(this.view)), this.addRtlSupport(), this.addManagedListener(this, v.EVENT_KEYBOARD_FOCUS, function() {
i.view.addOrRemoveKeyboardFocusClass(!0);
}), this.addManagedListener(this, v.EVENT_MOUSE_FOCUS, function() {
i.view.addOrRemoveKeyboardFocusClass(!1);
});
var s = this.resizeObserverService.observeResize(this.eGridHostDiv, this.onGridSizeChanged.bind(this));
this.addDestroyFunc(function() {
return s();
}), this.ctrlsService.registerGridCtrl(this);
}, t.prototype.isDetailGrid = function() {
var e, r = this.focusService.findTabbableParent(this.getGui());
return ((e = r == null ? void 0 : r.getAttribute("row-id")) === null || e === void 0 ? void 0 : e.startsWith("detail")) || !1;
}, t.prototype.showDropZones = function() {
return N.isRegistered(F.RowGroupingModule);
}, t.prototype.showSideBar = function() {
return N.isRegistered(F.SideBarModule);
}, t.prototype.showStatusBar = function() {
return N.isRegistered(F.StatusBarModule);
}, t.prototype.showWatermark = function() {
return N.isRegistered(F.EnterpriseCoreModule);
}, t.prototype.onGridSizeChanged = function() {
var e = {
type: v.EVENT_GRID_SIZE_CHANGED,
clientWidth: this.eGridHostDiv.clientWidth,
clientHeight: this.eGridHostDiv.clientHeight
};
this.eventService.dispatchEvent(e);
}, t.prototype.addRtlSupport = function() {
var e = this.gridOptionsService.is("enableRtl") ? "ag-rtl" : "ag-ltr";
this.view.setRtlClass(e);
}, t.prototype.destroyGridUi = function() {
this.view.destroyGridUi();
}, t.prototype.getGui = function() {
return this.eGui;
}, t.prototype.setResizeCursor = function(e) {
this.view.setCursor(e ? "ew-resize" : null);
}, t.prototype.disableUserSelect = function(e) {
this.view.setUserSelect(e ? "none" : null);
}, t.prototype.focusNextInnerContainer = function(e) {
var r = this.gridOptionsService.getDocument(), o = this.view.getFocusableContainers(), i = o.findIndex(function(a) {
return a.contains(r.activeElement);
}), s = i + (e ? -1 : 1);
return s <= 0 || s >= o.length ? !1 : this.focusService.focusInto(o[s]);
}, t.prototype.focusInnerElement = function(e) {
var r = this.view.getFocusableContainers(), o = this.columnModel.getAllDisplayedColumns();
if (e) {
if (r.length > 1)
return this.focusService.focusInto(q(r), !0);
var i = q(o);
if (this.focusService.focusGridView(i, !0))
return !0;
}
return this.gridOptionsService.getNum("headerHeight") === 0 ? this.focusService.focusGridView(o[0]) : this.focusService.focusFirstHeader();
}, t.prototype.forceFocusOutOfContainer = function(e) {
e === void 0 && (e = !1), this.view.forceFocusOutOfContainer(e);
}, Bt([
h("focusService")
], t.prototype, "focusService", void 0), Bt([
h("resizeObserverService")
], t.prototype, "resizeObserverService", void 0), Bt([
h("columnModel")
], t.prototype, "columnModel", void 0), Bt([
h("ctrlsService")
], t.prototype, "ctrlsService", void 0), Bt([
h("mouseEventService")
], t.prototype, "mouseEventService", void 0), Bt([
h("dragAndDropService")
], t.prototype, "dragAndDropService", void 0), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var ny = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Rr = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, sy = (
/** @class */
function(n) {
ny(t, n);
function t(e) {
var r = n.call(this) || this;
return r.eGridDiv = e, r;
}
return t.prototype.postConstruct = function() {
var e = this;
this.logger = this.loggerFactory.create("GridComp");
var r = {
destroyGridUi: function() {
return e.destroyBean(e);
},
setRtlClass: function(i) {
return e.addCssClass(i);
},
addOrRemoveKeyboardFocusClass: function(i) {
return e.addOrRemoveCssClass(Fr.AG_KEYBOARD_FOCUS, i);
},
forceFocusOutOfContainer: this.forceFocusOutOfContainer.bind(this),
updateLayoutClasses: this.updateLayoutClasses.bind(this),
getFocusableContainers: this.getFocusableContainers.bind(this),
setUserSelect: function(i) {
e.getGui().style.userSelect = i ?? "", e.getGui().style.webkitUserSelect = i ?? "";
},
setCursor: function(i) {
e.getGui().style.cursor = i ?? "";
}
};
this.ctrl = this.createManagedBean(new iy());
var o = this.createTemplate();
this.setTemplate(o), this.ctrl.setComp(r, this.eGridDiv, this.getGui()), this.insertGridIntoDom(), this.initialiseTabGuard({
// we want to override the default behaviour to do nothing for onTabKeyDown
onTabKeyDown: function() {
},
focusInnerElement: function(i) {
return e.ctrl.focusInnerElement(i);
}
});
}, t.prototype.insertGridIntoDom = function() {
var e = this, r = this.getGui();
this.eGridDiv.appendChild(r), this.addDestroyFunc(function() {
e.eGridDiv.removeChild(r), e.logger.log("Grid removed from DOM");
});
}, t.prototype.updateLayoutClasses = function(e, r) {
var o = this.eRootWrapperBody.classList;
o.toggle(ne.AUTO_HEIGHT, r.autoHeight), o.toggle(ne.NORMAL, r.normal), o.toggle(ne.PRINT, r.print), this.addOrRemoveCssClass(ne.AUTO_HEIGHT, r.autoHeight), this.addOrRemoveCssClass(ne.NORMAL, r.normal), this.addOrRemoveCssClass(ne.PRINT, r.print);
}, t.prototype.createTemplate = function() {
var e = this.ctrl.showDropZones() ? "<ag-grid-header-drop-zones></ag-grid-header-drop-zones>" : "", r = this.ctrl.showSideBar() ? '<ag-side-bar ref="sideBar"></ag-side-bar>' : "", o = this.ctrl.showStatusBar() ? '<ag-status-bar ref="statusBar"></ag-status-bar>' : "", i = this.ctrl.showWatermark() ? "<ag-watermark></ag-watermark>" : "", s = (
/* html */
`<div class="ag-root-wrapper" role="presentation">
` + e + `
<div class="ag-root-wrapper-body" ref="rootWrapperBody" role="presentation">
<ag-grid-body ref="gridBody"></ag-grid-body>
` + r + `
</div>
` + o + `
<ag-pagination></ag-pagination>
` + i + `
</div>`
);
return s;
}, t.prototype.getFocusableElement = function() {
return this.eRootWrapperBody;
}, t.prototype.getFocusableContainers = function() {
var e = [
this.gridBodyComp.getGui()
];
return this.sideBarComp && e.push(this.sideBarComp.getGui()), e.filter(function(r) {
return nr(r);
});
}, Rr([
h("loggerFactory")
], t.prototype, "loggerFactory", void 0), Rr([
P("gridBody")
], t.prototype, "gridBodyComp", void 0), Rr([
P("sideBar")
], t.prototype, "sideBarComp", void 0), Rr([
P("rootWrapperBody")
], t.prototype, "eRootWrapperBody", void 0), Rr([
b
], t.prototype, "postConstruct", null), t;
}(ni)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var ay = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Ks = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Oo = function(n, t) {
var e = typeof Symbol == "function" && n[Symbol.iterator];
if (!e)
return n;
var r = e.call(n), o, i = [], s;
try {
for (; (t === void 0 || t-- > 0) && !(o = r.next()).done; )
i.push(o.value);
} catch (a) {
s = { error: a };
} finally {
try {
o && !o.done && (e = r.return) && e.call(r);
} finally {
if (s)
throw s.error;
}
}
return i;
}, Or = function() {
for (var n = [], t = 0; t < arguments.length; t++)
n = n.concat(Oo(arguments[t]));
return n;
}, ly = (
/** @class */
function(n) {
ay(t, n);
function t() {
return n !== null && n.apply(this, arguments) || this;
}
e = t, t.prototype.progressSort = function(r, o, i) {
var s = this.getNextSortDirection(r);
this.setSortForColumn(r, s, o, i);
}, t.prototype.setSortForColumn = function(r, o, i, s) {
o !== "asc" && o !== "desc" && (o = null);
var a = this.gridOptionsService.isColumnsSortingCoupledToGroup(), l = [r];
if (a && r.getColDef().showRowGroup) {
r.getColDef().field || (l = []);
var u = this.columnModel.getSourceColumnsForGroupColumn(r), c = u == null ? void 0 : u.filter(function(d) {
return d.getColDef().sortable;
});
c && (l = Or(l, c));
}
l.forEach(function(d) {
return d.setSort(o, s);
});
var p = (i || this.gridOptionsService.is("alwaysMultiSort")) && !this.gridOptionsService.is("suppressMultiSort");
p || this.clearSortBarTheseColumns(l, s), this.updateSortIndex(r), this.dispatchSortChangedEvents(s);
}, t.prototype.updateSortIndex = function(r) {
var o = this.gridOptionsService.isColumnsSortingCoupledToGroup(), i = this.columnModel.getGroupDisplayColumnForGroup(r.getId()), s = o && i || r, a = this.getColumnsWithSortingOrdered(!0);
this.columnModel.getPrimaryAndSecondaryAndAutoColumns().forEach(function(c) {
return c.setSortIndex(null);
});
var l = a.filter(function(c) {
return c !== s;
}), u = s.getSort() ? Or(l, [s]) : l;
u.forEach(function(c, p) {
return c.setSortIndex(p);
});
}, t.prototype.onSortChanged = function(r) {
this.dispatchSortChangedEvents(r);
}, t.prototype.isSortActive = function() {
var r = this.columnModel.getPrimaryAndSecondaryAndAutoColumns(), o = r.filter(function(i) {
return !!i.getSort();
});
return o && o.length > 0;
}, t.prototype.dispatchSortChangedEvents = function(r) {
var o = {
type: v.EVENT_SORT_CHANGED,
source: r
};
this.eventService.dispatchEvent(o);
}, t.prototype.clearSortBarTheseColumns = function(r, o) {
this.columnModel.getPrimaryAndSecondaryAndAutoColumns().forEach(function(i) {
r.includes(i) || i.setSort(void 0, o);
});
}, t.prototype.getNextSortDirection = function(r) {
var o;
if (r.getColDef().sortingOrder ? o = r.getColDef().sortingOrder : this.gridOptionsService.get("sortingOrder") ? o = this.gridOptionsService.get("sortingOrder") : o = e.DEFAULT_SORTING_ORDER, !Array.isArray(o) || o.length <= 0)
return console.warn("AG Grid: sortingOrder must be an array with at least one element, currently it's " + o), null;
var i = r.getColDef().field ? r.getSort() : this.getDisplaySortForColumn(r), s = o[0];
if (i !== "mixed") {
var a = o.indexOf(i), l = a < 0, u = a == o.length - 1;
l || u ? s = o[0] : s = o[a + 1];
}
return e.DEFAULT_SORTING_ORDER.indexOf(s) < 0 ? (console.warn("AG Grid: invalid sort type " + s), null) : s;
}, t.prototype.getIndexedSortMap = function(r) {
var o = this;
r === void 0 && (r = !1);
var i = this.columnModel.getPrimaryAndSecondaryAndAutoColumns().filter(function(c) {
return !!c.getSort();
});
!r && this.columnModel.isPivotMode() && (i = i.filter(function(c) {
return !!c.getAggFunc() || !c.isPrimary() || o.columnModel.getGroupDisplayColumnForGroup(c.getId());
}));
var s = this.columnModel.getRowGroupColumns().filter(function(c) {
return !!c.getSort();
}), a = this.gridOptionsService.isColumnsSortingCoupledToGroup() && !!s.length;
a && (i = Or(new Set(
// if linked sorting, replace all columns with the display group column for index purposes, and ensure uniqueness
i.map(function(c) {
var p;
return (p = o.columnModel.getGroupDisplayColumnForGroup(c.getId())) !== null && p !== void 0 ? p : c;
})
)));
var l = {};
i.forEach(function(c, p) {
return l[c.getId()] = p;
}), i.sort(function(c, p) {
var d = c.getSortIndex(), f = p.getSortIndex();
if (d != null && f != null)
return d - f;
if (d == null && f == null) {
var g = l[c.getId()], y = l[p.getId()];
return g > y ? 1 : -1;
} else
return f == null ? -1 : 1;
});
var u = /* @__PURE__ */ new Map();
return i.forEach(function(c, p) {
return u.set(c, p);
}), a && s.forEach(function(c) {
var p = o.columnModel.getGroupDisplayColumnForGroup(c.getId());
u.set(c, u.get(p));
}), u;
}, t.prototype.getColumnsWithSortingOrdered = function(r) {
return r === void 0 && (r = !1), Or(this.getIndexedSortMap(r).entries()).sort(function(o, i) {
var s = Oo(o, 2);
s[0];
var a = s[1], l = Oo(i, 2);
l[0];
var u = l[1];
return a - u;
}).map(function(o) {
var i = Oo(o, 1), s = i[0];
return s;
});
}, t.prototype.getSortModel = function() {
return this.getColumnsWithSortingOrdered(!0).map(function(r) {
return {
sort: r.getSort(),
colId: r.getId()
};
});
}, t.prototype.getSortOptions = function() {
return this.getColumnsWithSortingOrdered().map(function(r) {
return {
sort: r.getSort(),
column: r
};
});
}, t.prototype.canColumnDisplayMixedSort = function(r) {
var o = this.gridOptionsService.isColumnsSortingCoupledToGroup(), i = !!r.getColDef().showRowGroup;
return o && i;
}, t.prototype.getDisplaySortForColumn = function(r) {
var o = this.columnModel.getSourceColumnsForGroupColumn(r);
if (!this.canColumnDisplayMixedSort(r) || !(o != null && o.length))
return r.getSort();
var i = !!r.getColDef().field, s = i ? Or([r], o) : o, a = s[0].getSort(), l = s.every(function(u) {
return u.getSort() == a;
});
return l ? a : "mixed";
}, t.prototype.getDisplaySortIndexForColumn = function(r) {
return this.getIndexedSortMap().get(r);
};
var e;
return t.DEFAULT_SORTING_ORDER = ["asc", "desc", null], Ks([
h("columnModel")
], t.prototype, "columnModel", void 0), t = e = Ks([
A("sortController")
], t), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var uy = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), cy = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, py = (
/** @class */
function(n) {
uy(t, n);
function t() {
return n !== null && n.apply(this, arguments) || this;
}
return t.prototype.setMouseOver = function(e) {
this.selectedColumns = e;
var r = {
type: v.EVENT_COLUMN_HOVER_CHANGED
};
this.eventService.dispatchEvent(r);
}, t.prototype.clearMouseOver = function() {
this.selectedColumns = null;
var e = {
type: v.EVENT_COLUMN_HOVER_CHANGED
};
this.eventService.dispatchEvent(e);
}, t.prototype.isHovered = function(e) {
return !!this.selectedColumns && this.selectedColumns.indexOf(e) >= 0;
}, t = cy([
A("columnHoverService")
], t), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var dy = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), zi = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, hy = (
/** @class */
function(n) {
dy(t, n);
function t() {
var e = n !== null && n.apply(this, arguments) || this;
return e.executeNextFuncs = [], e.executeLaterFuncs = [], e.active = !1, e.animationThreadCount = 0, e;
}
return t.prototype.postConstruct = function() {
var e = this;
this.ctrlsService.whenReady(function(r) {
return e.gridBodyCtrl = r.gridBodyCtrl;
});
}, t.prototype.isActive = function() {
return this.active;
}, t.prototype.start = function() {
this.active || this.gridOptionsService.is("suppressColumnMoveAnimation") || this.gridOptionsService.is("enableRtl") || (this.ensureAnimationCssClassPresent(), this.active = !0);
}, t.prototype.finish = function() {
this.active && (this.flush(), this.active = !1);
}, t.prototype.executeNextVMTurn = function(e) {
this.active ? this.executeNextFuncs.push(e) : e();
}, t.prototype.executeLaterVMTurn = function(e) {
this.active ? this.executeLaterFuncs.push(e) : e();
}, t.prototype.ensureAnimationCssClassPresent = function() {
var e = this;
this.animationThreadCount++;
var r = this.animationThreadCount;
this.gridBodyCtrl.setColumnMovingCss(!0), this.executeLaterFuncs.push(function() {
e.animationThreadCount === r && e.gridBodyCtrl.setColumnMovingCss(!1);
});
}, t.prototype.flush = function() {
var e = this.executeNextFuncs;
this.executeNextFuncs = [];
var r = this.executeLaterFuncs;
this.executeLaterFuncs = [], !(e.length === 0 && r.length === 0) && (window.setTimeout(function() {
return e.forEach(function(o) {
return o();
});
}, 0), window.setTimeout(function() {
return r.forEach(function(o) {
return o();
});
}, 300));
}, zi([
h("ctrlsService")
], t.prototype, "ctrlsService", void 0), zi([
b
], t.prototype, "postConstruct", null), t = zi([
A("columnAnimationService")
], t), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var fy = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Ki = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, vy = (
/** @class */
function(n) {
fy(t, n);
function t() {
return n !== null && n.apply(this, arguments) || this;
}
return t.prototype.postConstruct = function() {
var e = this;
this.ctrlsService.whenReady(function(r) {
e.centerRowContainerCon = r.centerRowContainerCtrl, e.addManagedListener(e.eventService, v.EVENT_BODY_HEIGHT_CHANGED, e.checkPageSize.bind(e)), e.addManagedListener(e.eventService, v.EVENT_SCROLL_VISIBILITY_CHANGED, e.checkPageSize.bind(e)), e.checkPageSize();
});
}, t.prototype.notActive = function() {
return !this.gridOptionsService.is("paginationAutoPageSize") || this.centerRowContainerCon == null;
}, t.prototype.checkPageSize = function() {
var e = this;
if (!this.notActive()) {
var r = this.centerRowContainerCon.getViewportSizeFeature().getBodyHeight();
if (r > 0) {
var o = function() {
var i = e.gridOptionsService.getRowHeightAsNumber(), s = Math.floor(r / i);
e.gridOptionsService.set("paginationPageSize", s);
};
this.isBodyRendered ? Je(function() {
return o();
}, 50)() : (o(), this.isBodyRendered = !0);
} else
this.isBodyRendered = !1;
}
}, Ki([
h("ctrlsService")
], t.prototype, "ctrlsService", void 0), Ki([
b
], t.prototype, "postConstruct", null), t = Ki([
A("paginationAutoPageSizeService")
], t), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var gy = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), $s = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, yy = (
/** @class */
function(n) {
gy(t, n);
function t() {
var e = n !== null && n.apply(this, arguments) || this;
return e.cacheVersion = 0, e;
}
return t.prototype.init = function() {
this.active = this.gridOptionsService.is("valueCache"), this.neverExpires = this.gridOptionsService.is("valueCacheNeverExpires");
}, t.prototype.onDataChanged = function() {
this.neverExpires || this.expire();
}, t.prototype.expire = function() {
this.cacheVersion++;
}, t.prototype.setValue = function(e, r, o) {
this.active && (e.__cacheVersion !== this.cacheVersion && (e.__cacheVersion = this.cacheVersion, e.__cacheData = {}), e.__cacheData[r] = o);
}, t.prototype.getValue = function(e, r) {
if (!(!this.active || e.__cacheVersion !== this.cacheVersion))
return e.__cacheData[r];
}, $s([
b
], t.prototype, "init", null), t = $s([
A("valueCache")
], t), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Cy = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), po = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, my = "paste", wy = (
/** @class */
function(n) {
Cy(t, n);
function t() {
return n !== null && n.apply(this, arguments) || this;
}
return t.prototype.init = function() {
this.rowModel.getType() === "clientSide" && (this.clientSideRowModel = this.rowModel), this.addManagedListener(this.eventService, v.EVENT_CELL_VALUE_CHANGED, this.onCellValueChanged.bind(this));
}, t.prototype.onCellValueChanged = function(e) {
e.source !== my && this.doChangeDetection(e.node, e.column);
}, t.prototype.doChangeDetection = function(e, r) {
if (!this.gridOptionsService.is("suppressChangeDetection")) {
if (this.clientSideRowModel && !e.isRowPinned()) {
var o = this.gridOptionsService.is("aggregateOnlyChangedColumns"), i = new us(o, this.clientSideRowModel.getRootNode());
i.addParentNode(e.parent, [r]), this.clientSideRowModel.doAggregate(i);
}
this.rowRenderer.refreshCells();
}
}, po([
h("rowModel")
], t.prototype, "rowModel", void 0), po([
h("rowRenderer")
], t.prototype, "rowRenderer", void 0), po([
b
], t.prototype, "init", null), t = po([
A("changeDetectionService")
], t), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Sy = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Ys = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Ey = (
/** @class */
function(n) {
Sy(t, n);
function t() {
return n !== null && n.apply(this, arguments) || this;
}
return t.prototype.adaptFunction = function(e, r) {
var o = this.componentMetadataProvider.retrieve(e);
return o && o.functionAdapter ? o.functionAdapter(r) : null;
}, t.prototype.adaptCellRendererFunction = function(e) {
var r = (
/** @class */
function() {
function o() {
}
return o.prototype.refresh = function(i) {
return !1;
}, o.prototype.getGui = function() {
return this.eGui;
}, o.prototype.init = function(i) {
var s = e(i), a = typeof s;
if (a === "string" || a === "number" || a === "boolean") {
this.eGui = de("<span>" + s + "</span>");
return;
}
if (s == null) {
this.eGui = de("<span></span>");
return;
}
this.eGui = s;
}, o;
}()
);
return r;
}, t.prototype.doesImplementIComponent = function(e) {
return e ? e.prototype && "getGui" in e.prototype : !1;
}, Ys([
h("componentMetadataProvider")
], t.prototype, "componentMetadataProvider", void 0), t = Ys([
A("agComponentUtils")
], t), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var _y = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), $i = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Ry = (
/** @class */
function(n) {
_y(t, n);
function t() {
return n !== null && n.apply(this, arguments) || this;
}
return t.prototype.postConstruct = function() {
this.componentMetaData = {
dateComponent: {
mandatoryMethodList: ["getDate", "setDate"],
optionalMethodList: ["afterGuiAttached", "setInputPlaceholder", "setInputAriaLabel"]
},
detailCellRenderer: {
mandatoryMethodList: [],
optionalMethodList: ["refresh"],
functionAdapter: this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)
},
headerComponent: {
mandatoryMethodList: [],
optionalMethodList: ["refresh"]
},
headerGroupComponent: {
mandatoryMethodList: [],
optionalMethodList: []
},
loadingCellRenderer: {
mandatoryMethodList: [],
optionalMethodList: []
},
loadingOverlayComponent: {
mandatoryMethodList: [],
optionalMethodList: []
},
noRowsOverlayComponent: {
mandatoryMethodList: [],
optionalMethodList: []
},
floatingFilterComponent: {
mandatoryMethodList: ["onParentModelChanged"],
optionalMethodList: ["afterGuiAttached"]
},
floatingFilterWrapperComponent: {
mandatoryMethodList: [],
optionalMethodList: []
},
cellRenderer: {
mandatoryMethodList: [],
optionalMethodList: ["refresh", "afterGuiAttached"],
functionAdapter: this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)
},
cellEditor: {
mandatoryMethodList: ["getValue"],
optionalMethodList: ["isPopup", "isCancelBeforeStart", "isCancelAfterEnd", "getPopupPosition", "focusIn", "focusOut", "afterGuiAttached"]
},
innerRenderer: {
mandatoryMethodList: [],
optionalMethodList: ["afterGuiAttached"],
functionAdapter: this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)
},
fullWidthCellRenderer: {
mandatoryMethodList: [],
optionalMethodList: ["refresh", "afterGuiAttached"],
functionAdapter: this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)
},
groupRowRenderer: {
mandatoryMethodList: [],
optionalMethodList: ["afterGuiAttached"],
functionAdapter: this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)
},
filter: {
mandatoryMethodList: ["isFilterActive", "doesFilterPass", "getModel", "setModel"],
optionalMethodList: ["afterGuiAttached", "afterGuiDetached", "onNewRowsLoaded", "getModelAsString", "onFloatingFilterChanged", "onAnyFilterChanged"]
},
filterComponent: {
mandatoryMethodList: ["isFilterActive", "doesFilterPass", "getModel", "setModel"],
optionalMethodList: ["afterGuiAttached", "afterGuiDetached", "onNewRowsLoaded", "getModelAsString", "onFloatingFilterChanged", "onAnyFilterChanged"]
},
statusPanel: {
mandatoryMethodList: [],
optionalMethodList: ["afterGuiAttached"]
},
toolPanel: {
mandatoryMethodList: [],
optionalMethodList: ["refresh", "afterGuiAttached"]
},
tooltipComponent: {
mandatoryMethodList: [],
optionalMethodList: []
}
};
}, t.prototype.retrieve = function(e) {
return this.componentMetaData[e];
}, $i([
h("agComponentUtils")
], t.prototype, "agComponentUtils", void 0), $i([
b
], t.prototype, "postConstruct", null), t = $i([
A("componentMetadataProvider")
], t), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Oy = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Yi = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Ty = function(n, t) {
var e = typeof Symbol == "function" && n[Symbol.iterator];
if (!e)
return n;
var r = e.call(n), o, i = [], s;
try {
for (; (t === void 0 || t-- > 0) && !(o = r.next()).done; )
i.push(o.value);
} catch (a) {
s = { error: a };
} finally {
try {
o && !o.done && (e = r.return) && e.call(r);
} finally {
if (s)
throw s.error;
}
}
return i;
}, by = function() {
for (var n = [], t = 0; t < arguments.length; t++)
n = n.concat(Ty(arguments[t]));
return n;
}, Py = 25, qs = 10, qi = 8, Dy = 4, Qi = 4, Xi = 6, Ay = {
// this item is required for custom themes
"ag-theme-custom": {
headerHeight: 25,
headerCellMinWidth: 24,
listItemHeight: Dy * 5,
rowHeight: 25,
chartMenuPanelWidth: 220
},
"ag-theme-material": {
headerHeight: qi * 7,
headerCellMinWidth: 48,
listItemHeight: qi * 4,
rowHeight: qi * 6,
chartMenuPanelWidth: 240
},
"ag-theme-balham": {
headerHeight: Qi * 8,
headerCellMinWidth: 24,
listItemHeight: Qi * 6,
rowHeight: Qi * 7,
chartMenuPanelWidth: 220
},
"ag-theme-alpine": {
headerHeight: Xi * 8,
headerCellMinWidth: 36,
listItemHeight: Xi * 4,
rowHeight: Xi * 7,
chartMenuPanelWidth: 240
}
}, Qs = {
headerHeight: ["ag-header-row"],
headerCellMinWidth: ["ag-header-cell"],
listItemHeight: ["ag-virtual-list-item"],
rowHeight: ["ag-row"],
chartMenuPanelWidth: ["ag-chart-docked-container"]
}, Fy = (
/** @class */
function(n) {
Oy(t, n);
function t() {
var e = n !== null && n.apply(this, arguments) || this;
return e.calculatedSizes = {}, e;
}
return t.prototype.postConstruct = function() {
var e = this, r, o = (r = this.getTheme().el) !== null && r !== void 0 ? r : this.eGridDiv;
this.mutationObserver = new MutationObserver(function() {
e.calculatedSizes = {}, e.fireGridStylesChangedEvent();
}), this.mutationObserver.observe(o || this.eGridDiv, {
attributes: !0,
attributeFilter: ["class"]
});
}, t.prototype.fireGridStylesChangedEvent = function() {
var e = {
type: v.EVENT_GRID_STYLES_CHANGED
};
this.eventService.dispatchEvent(e);
}, t.prototype.getSassVariable = function(e) {
var r = this.getTheme(), o = r.themeFamily, i = r.el;
if (!(!o || o.indexOf("ag-theme") !== 0)) {
this.calculatedSizes || (this.calculatedSizes = {}), this.calculatedSizes[o] || (this.calculatedSizes[o] = {});
var s = this.calculatedSizes[o][e];
return s ?? (this.calculatedSizes[o][e] = this.calculateValueForSassProperty(e, o, i), this.calculatedSizes[o][e]);
}
}, t.prototype.calculateValueForSassProperty = function(e, r, o) {
var i, s = "ag-theme-" + (r.match("material") ? "material" : r.match("balham") ? "balham" : r.match("alpine") ? "alpine" : "custom"), a = Ay[s][e], l = this.gridOptionsService.getDocument();
if (o || (o = this.eGridDiv), !Qs[e])
return a;
var u = Qs[e], c = l.createElement("div"), p = Array.from(o.classList);
(i = c.classList).add.apply(i, by([r], p)), c.style.position = "absolute";
var d = u.reduce(function(y, C) {
var m = l.createElement("div");
return m.style.position = "static", m.classList.add(C), y.appendChild(m), m;
}, c), f = 0;
if (l.body) {
l.body.appendChild(c);
var g = e.toLowerCase().indexOf("height") !== -1 ? "height" : "width";
f = parseInt(window.getComputedStyle(d)[g], 10), l.body.removeChild(c);
}
return f || a;
}, t.prototype.isThemeDark = function() {
var e = this.getTheme().theme;
return !!e && e.indexOf("dark") >= 0;
}, t.prototype.chartMenuPanelWidth = function() {
return this.getSassVariable("chartMenuPanelWidth");
}, t.prototype.getTheme = function() {
for (var e = /\bag-(material|(?:theme-([\w\-]*)))\b/g, r = this.eGridDiv, o = null, i = []; r; )
if (o = e.exec(r.className), !o)
r = r.parentElement || void 0;
else {
var s = r.className.match(e);
s && (i = s);
break;
}
if (!o)
return { allThemes: i };
var a = o[0];
return { theme: a, el: r, themeFamily: a.replace(/-dark$/, ""), allThemes: i };
}, t.prototype.getFromTheme = function(e, r) {
var o;
return (o = this.getSassVariable(r)) !== null && o !== void 0 ? o : e;
}, t.prototype.getDefaultRowHeight = function() {
return this.getFromTheme(Py, "rowHeight");
}, t.prototype.getListItemHeight = function() {
return this.getFromTheme(20, "listItemHeight");
}, t.prototype.setRowHeightVariable = function(e) {
var r = this.eGridDiv.style.getPropertyValue("--ag-line-height").trim(), o = e + "px";
r != o && this.eGridDiv.style.setProperty("--ag-line-height", o);
}, t.prototype.getMinColWidth = function() {
var e = this.getFromTheme(null, "headerCellMinWidth");
return O(e) ? Math.max(e, qs) : qs;
}, t.prototype.destroy = function() {
this.calculatedSizes = null, this.mutationObserver && this.mutationObserver.disconnect(), n.prototype.destroy.call(this);
}, Yi([
h("eGridDiv")
], t.prototype, "eGridDiv", void 0), Yi([
b
], t.prototype, "postConstruct", null), t = Yi([
A("environment")
], t), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Ly = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), ho = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, My = function(n, t) {
return function(e, r) {
t(e, r, n);
};
}, Iy = (
/** @class */
function(n) {
Ly(t, n);
function t() {
var e = n !== null && n.apply(this, arguments) || this;
return e.scrollY = 0, e.uiBodyHeight = 0, e;
}
return t.prototype.agWire = function(e) {
this.logger = e.create("RowContainerHeightService");
}, t.prototype.postConstruct = function() {
this.addManagedListener(this.eventService, v.EVENT_BODY_HEIGHT_CHANGED, this.updateOffset.bind(this)), this.maxDivHeight = Qa(), this.logger.log("maxDivHeight = " + this.maxDivHeight);
}, t.prototype.isStretching = function() {
return this.stretching;
}, t.prototype.getDivStretchOffset = function() {
return this.divStretchOffset;
}, t.prototype.updateOffset = function() {
if (this.stretching) {
var e = this.ctrlsService.getGridBodyCtrl(), r = e.getScrollFeature().getVScrollPosition().top, o = this.getUiBodyHeight(), i = r !== this.scrollY || o !== this.uiBodyHeight;
i && (this.scrollY = r, this.uiBodyHeight = o, this.calculateOffset());
}
}, t.prototype.calculateOffset = function() {
this.setUiContainerHeight(this.maxDivHeight), this.pixelsToShave = this.modelHeight - this.uiContainerHeight, this.maxScrollY = this.uiContainerHeight - this.uiBodyHeight;
var e = this.scrollY / this.maxScrollY, r = e * this.pixelsToShave;
this.logger.log("Div Stretch Offset = " + r + " (" + this.pixelsToShave + " * " + e + ")"), this.setDivStretchOffset(r);
}, t.prototype.setUiContainerHeight = function(e) {
e !== this.uiContainerHeight && (this.uiContainerHeight = e, this.eventService.dispatchEvent({ type: v.EVENT_ROW_CONTAINER_HEIGHT_CHANGED }));
}, t.prototype.clearOffset = function() {
this.setUiContainerHeight(this.modelHeight), this.pixelsToShave = 0, this.setDivStretchOffset(0);
}, t.prototype.setDivStretchOffset = function(e) {
var r = typeof e == "number" ? Math.floor(e) : null;
this.divStretchOffset !== r && (this.divStretchOffset = r, this.eventService.dispatchEvent({ type: v.EVENT_HEIGHT_SCALE_CHANGED }));
}, t.prototype.setModelHeight = function(e) {
this.modelHeight = e, this.stretching = e != null && this.maxDivHeight > 0 && e > this.maxDivHeight, this.stretching ? this.calculateOffset() : this.clearOffset();
}, t.prototype.getUiContainerHeight = function() {
return this.uiContainerHeight;
}, t.prototype.getRealPixelPosition = function(e) {
return e - this.divStretchOffset;
}, t.prototype.getUiBodyHeight = function() {
var e = this.ctrlsService.getGridBodyCtrl(), r = e.getScrollFeature().getVScrollPosition();
return r.bottom - r.top;
}, t.prototype.getScrollPositionForPixel = function(e) {
if (this.pixelsToShave <= 0)
return e;
var r = this.modelHeight - this.getUiBodyHeight(), o = e / r, i = this.maxScrollY * o;
return i;
}, ho([
h("ctrlsService")
], t.prototype, "ctrlsService", void 0), ho([
My(0, Ce("loggerFactory"))
], t.prototype, "agWire", null), ho([
b
], t.prototype, "postConstruct", null), t = ho([
A("rowContainerHeightService")
], t), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var xy = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Xs = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Ny = (
/** @class */
function(n) {
xy(t, n);
function t() {
return n !== null && n.apply(this, arguments) || this;
}
return t.prototype.init = function() {
this.groupSelectsChildren = this.gridOptionsService.is("groupSelectsChildren"), this.isRowSelectableFunc = this.gridOptionsService.get("isRowSelectable");
}, t.prototype.updateSelectableAfterGrouping = function(e) {
if (this.isRowSelectableFunc) {
var r = function(o) {
return o.childrenAfterGroup;
};
this.recurseDown(e.childrenAfterGroup, r);
}
}, t.prototype.recurseDown = function(e, r) {
var o = this;
e && e.forEach(function(i) {
if (i.group) {
i.hasChildren() && o.recurseDown(r(i), r);
var s;
if (o.groupSelectsChildren) {
var a = (r(i) || []).find(function(l) {
return l.selectable === !0;
});
s = O(a);
} else
s = o.isRowSelectableFunc ? o.isRowSelectableFunc(i) : !1;
i.setRowSelectable(s);
}
});
}, Xs([
b
], t.prototype, "init", null), t = Xs([
A("selectableService")
], t), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Gy = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Me = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Hy = (
/** @class */
function(n) {
Gy(t, n);
function t() {
var e = n.call(this) || this;
return e.previousAndFirstButtonsDisabled = !1, e.nextButtonDisabled = !1, e.lastButtonDisabled = !1, e.areListenersSetup = !1, e;
}
return t.prototype.postConstruct = function() {
var e = this.gridOptionsService.is("enableRtl");
this.setTemplate(this.getTemplate()), this.btFirst.insertAdjacentElement("afterbegin", oe(e ? "last" : "first", this.gridOptionsService)), this.btPrevious.insertAdjacentElement("afterbegin", oe(e ? "next" : "previous", this.gridOptionsService)), this.btNext.insertAdjacentElement("afterbegin", oe(e ? "previous" : "next", this.gridOptionsService)), this.btLast.insertAdjacentElement("afterbegin", oe(e ? "first" : "last", this.gridOptionsService)), this.addManagedPropertyListener("pagination", this.onPaginationChanged.bind(this)), this.addManagedPropertyListener("suppressPaginationPanel", this.onPaginationChanged.bind(this)), this.onPaginationChanged();
}, t.prototype.onPaginationChanged = function() {
var e = this.gridOptionsService.is("pagination"), r = e && !this.gridOptionsService.is("suppressPaginationPanel");
this.setDisplayed(r), r && (this.setupListeners(), this.enableOrDisableButtons(), this.updateRowLabels(), this.setCurrentPageLabel(), this.setTotalLabels());
}, t.prototype.setupListeners = function() {
var e = this;
this.areListenersSetup || (this.addManagedListener(this.eventService, v.EVENT_PAGINATION_CHANGED, this.onPaginationChanged.bind(this)), [
{ el: this.btFirst, fn: this.onBtFirst.bind(this) },
{ el: this.btPrevious, fn: this.onBtPrevious.bind(this) },
{ el: this.btNext, fn: this.onBtNext.bind(this) },
{ el: this.btLast, fn: this.onBtLast.bind(this) }
].forEach(function(r) {
var o = r.el, i = r.fn;
e.addManagedListener(o, "click", i), e.addManagedListener(o, "keydown", function(s) {
(s.key === _.ENTER || s.key === _.SPACE) && (s.preventDefault(), i());
});
}), this.areListenersSetup = !0);
}, t.prototype.onBtFirst = function() {
this.previousAndFirstButtonsDisabled || this.paginationProxy.goToFirstPage();
}, t.prototype.setCurrentPageLabel = function() {
var e = this.paginationProxy.getTotalPages() > 0, r = this.paginationProxy.getCurrentPage(), o = e ? r + 1 : 0;
this.lbCurrent.innerHTML = this.formatNumber(o);
}, t.prototype.formatNumber = function(e) {
var r = this.gridOptionsService.getCallback("paginationNumberFormatter");
if (r) {
var o = { value: e };
return r(o);
}
var i = this.localeService.getLocaleTextFunc(), s = i("thousandSeparator", ","), a = i("decimalSeparator", ".");
return Wn(e, s, a);
}, t.prototype.getTemplate = function() {
var e = this.localeService.getLocaleTextFunc(), r = e("page", "Page"), o = e("to", "to"), i = e("of", "of"), s = e("firstPage", "First Page"), a = e("previousPage", "Previous Page"), l = e("nextPage", "Next Page"), u = e("lastPage", "Last Page"), c = this.getCompId();
return (
/* html */
'<div class="ag-paging-panel ag-unselectable" id="ag-' + c + `">
<span class="ag-paging-row-summary-panel" role="status">
<span id="ag-` + c + `-first-row" ref="lbFirstRowOnPage" class="ag-paging-row-summary-panel-number"></span>
<span id="ag-` + c + '-to">' + o + `</span>
<span id="ag-` + c + `-last-row" ref="lbLastRowOnPage" class="ag-paging-row-summary-panel-number"></span>
<span id="ag-` + c + '-of">' + i + `</span>
<span id="ag-` + c + `-row-count" ref="lbRecordCount" class="ag-paging-row-summary-panel-number"></span>
</span>
<span class="ag-paging-page-summary-panel" role="presentation">
<div ref="btFirst" class="ag-paging-button" role="button" aria-label="` + s + `"></div>
<div ref="btPrevious" class="ag-paging-button" role="button" aria-label="` + a + `"></div>
<span class="ag-paging-description" role="status">
<span id="ag-` + c + '-start-page">' + r + `</span>
<span id="ag-` + c + `-start-page-number" ref="lbCurrent" class="ag-paging-number"></span>
<span id="ag-` + c + '-of-page">' + i + `</span>
<span id="ag-` + c + `-of-page-number" ref="lbTotal" class="ag-paging-number"></span>
</span>
<div ref="btNext" class="ag-paging-button" role="button" aria-label="` + l + `"></div>
<div ref="btLast" class="ag-paging-button" role="button" aria-label="` + u + `"></div>
</span>
</div>`
);
}, t.prototype.onBtNext = function() {
this.nextButtonDisabled || this.paginationProxy.goToNextPage();
}, t.prototype.onBtPrevious = function() {
this.previousAndFirstButtonsDisabled || this.paginationProxy.goToPreviousPage();
}, t.prototype.onBtLast = function() {
this.lastButtonDisabled || this.paginationProxy.goToLastPage();
}, t.prototype.enableOrDisableButtons = function() {
var e = this.paginationProxy.getCurrentPage(), r = this.paginationProxy.isLastPageFound(), o = this.paginationProxy.getTotalPages();
this.previousAndFirstButtonsDisabled = e === 0, this.toggleButtonDisabled(this.btFirst, this.previousAndFirstButtonsDisabled), this.toggleButtonDisabled(this.btPrevious, this.previousAndFirstButtonsDisabled);
var i = this.isZeroPagesToDisplay(), s = r && e === o - 1;
this.nextButtonDisabled = s || i, this.lastButtonDisabled = !r || i || e === o - 1, this.toggleButtonDisabled(this.btNext, this.nextButtonDisabled), this.toggleButtonDisabled(this.btLast, this.lastButtonDisabled);
}, t.prototype.toggleButtonDisabled = function(e, r) {
Mn(e, r), e.classList.toggle("ag-disabled", r), r ? e.removeAttribute("tabindex") : e.setAttribute("tabindex", "0");
}, t.prototype.updateRowLabels = function() {
var e = this.paginationProxy.getCurrentPage(), r = this.paginationProxy.getPageSize(), o = this.paginationProxy.isLastPageFound(), i = this.paginationProxy.isLastPageFound() ? this.paginationProxy.getMasterRowCount() : null, s, a;
if (this.isZeroPagesToDisplay() ? s = a = 0 : (s = r * e + 1, a = s + r - 1, o && a > i && (a = i)), this.lbFirstRowOnPage.innerHTML = this.formatNumber(s), this.rowNodeBlockLoader.isLoading()) {
var l = this.localeService.getLocaleTextFunc();
this.lbLastRowOnPage.innerHTML = l("pageLastRowUnknown", "?");
} else
this.lbLastRowOnPage.innerHTML = this.formatNumber(a);
}, t.prototype.isZeroPagesToDisplay = function() {
var e = this.paginationProxy.isLastPageFound(), r = this.paginationProxy.getTotalPages();
return e && r === 0;
}, t.prototype.setTotalLabels = function() {
var e = this.paginationProxy.isLastPageFound(), r = this.paginationProxy.getTotalPages(), o = e ? this.paginationProxy.getMasterRowCount() : null;
if (o === 1) {
var i = this.paginationProxy.getRow(0), s = i && i.group && !(i.groupData || i.aggData);
if (s) {
this.setTotalLabelsToZero();
return;
}
}
if (e)
this.lbTotal.innerHTML = this.formatNumber(r), this.lbRecordCount.innerHTML = this.formatNumber(o);
else {
var a = this.localeService.getLocaleTextFunc()("more", "more");
this.lbTotal.innerHTML = a, this.lbRecordCount.innerHTML = a;
}
}, t.prototype.setTotalLabelsToZero = function() {
this.lbFirstRowOnPage.innerHTML = this.formatNumber(0), this.lbCurrent.innerHTML = this.formatNumber(0), this.lbLastRowOnPage.innerHTML = this.formatNumber(0), this.lbTotal.innerHTML = this.formatNumber(0), this.lbRecordCount.innerHTML = this.formatNumber(0);
}, Me([
h("paginationProxy")
], t.prototype, "paginationProxy", void 0), Me([
h("rowNodeBlockLoader")
], t.prototype, "rowNodeBlockLoader", void 0), Me([
P("btFirst")
], t.prototype, "btFirst", void 0), Me([
P("btPrevious")
], t.prototype, "btPrevious", void 0), Me([
P("btNext")
], t.prototype, "btNext", void 0), Me([
P("btLast")
], t.prototype, "btLast", void 0), Me([
P("lbRecordCount")
], t.prototype, "lbRecordCount", void 0), Me([
P("lbFirstRowOnPage")
], t.prototype, "lbFirstRowOnPage", void 0), Me([
P("lbLastRowOnPage")
], t.prototype, "lbLastRowOnPage", void 0), Me([
P("lbCurrent")
], t.prototype, "lbCurrent", void 0), Me([
P("lbTotal")
], t.prototype, "lbTotal", void 0), Me([
b
], t.prototype, "postConstruct", null), t;
}(W)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Vy = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Wt = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Kt;
(function(n) {
n[n.Loading = 0] = "Loading", n[n.NoRows = 1] = "NoRows";
})(Kt || (Kt = {}));
var By = (
/** @class */
function(n) {
Vy(t, n);
function t() {
var e = n.call(this, t.TEMPLATE) || this;
return e.inProgress = !1, e.destroyRequested = !1, e.manuallyDisplayed = !1, e;
}
return t.prototype.updateLayoutClasses = function(e, r) {
var o = this.eOverlayWrapper.classList;
o.toggle(ne.AUTO_HEIGHT, r.autoHeight), o.toggle(ne.NORMAL, r.normal), o.toggle(ne.PRINT, r.print);
}, t.prototype.postConstruct = function() {
this.createManagedBean(new is(this)), this.setDisplayed(!1, { skipAriaHidden: !0 }), this.addManagedListener(this.eventService, v.EVENT_ROW_DATA_UPDATED, this.onRowDataUpdated.bind(this)), this.addManagedListener(this.eventService, v.EVENT_NEW_COLUMNS_LOADED, this.onNewColumnsLoaded.bind(this)), this.gridOptionsService.isRowModelType("clientSide") && !this.gridOptionsService.get("rowData") && this.showLoadingOverlay(), this.gridApi.registerOverlayWrapperComp(this);
}, t.prototype.setWrapperTypeClass = function(e) {
var r = this.eOverlayWrapper.classList;
r.toggle("ag-overlay-loading-wrapper", e === Kt.Loading), r.toggle("ag-overlay-no-rows-wrapper", e === Kt.NoRows);
}, t.prototype.showLoadingOverlay = function() {
if (!this.gridOptionsService.is("suppressLoadingOverlay")) {
var e = {}, r = this.userComponentFactory.getLoadingOverlayCompDetails(e), o = r.newAgStackInstance();
this.showOverlay(o, Kt.Loading);
}
}, t.prototype.showNoRowsOverlay = function() {
if (!this.gridOptionsService.is("suppressNoRowsOverlay")) {
var e = {}, r = this.userComponentFactory.getNoRowsOverlayCompDetails(e), o = r.newAgStackInstance();
this.showOverlay(o, Kt.NoRows);
}
}, t.prototype.showOverlay = function(e, r) {
var o = this;
this.inProgress || (this.setWrapperTypeClass(r), this.destroyActiveOverlay(), this.inProgress = !0, e && e.then(function(i) {
o.inProgress = !1, o.eOverlayWrapper.appendChild(i.getGui()), o.activeOverlay = i, o.destroyRequested && (o.destroyRequested = !1, o.destroyActiveOverlay());
}), this.manuallyDisplayed = this.columnModel.isReady() && !this.paginationProxy.isEmpty(), this.setDisplayed(!0, { skipAriaHidden: !0 }));
}, t.prototype.destroyActiveOverlay = function() {
if (this.inProgress) {
this.destroyRequested = !0;
return;
}
this.activeOverlay && (this.activeOverlay = this.getContext().destroyBean(this.activeOverlay), Ae(this.eOverlayWrapper));
}, t.prototype.hideOverlay = function() {
this.manuallyDisplayed = !1, this.destroyActiveOverlay(), this.setDisplayed(!1, { skipAriaHidden: !0 });
}, t.prototype.destroy = function() {
this.destroyActiveOverlay(), n.prototype.destroy.call(this);
}, t.prototype.showOrHideOverlay = function() {
var e = this.paginationProxy.isEmpty(), r = this.gridOptionsService.is("suppressNoRowsOverlay");
e && !r ? this.showNoRowsOverlay() : this.hideOverlay();
}, t.prototype.onRowDataUpdated = function() {
this.showOrHideOverlay();
}, t.prototype.onNewColumnsLoaded = function() {
this.columnModel.isReady() && !this.paginationProxy.isEmpty() && !this.manuallyDisplayed && this.hideOverlay();
}, t.TEMPLATE = `
<div class="ag-overlay" aria-hidden="true">
<div class="ag-overlay-panel">
<div class="ag-overlay-wrapper" ref="eOverlayWrapper"></div>
</div>
</div>`, Wt([
h("userComponentFactory")
], t.prototype, "userComponentFactory", void 0), Wt([
h("paginationProxy")
], t.prototype, "paginationProxy", void 0), Wt([
h("gridApi")
], t.prototype, "gridApi", void 0), Wt([
h("columnModel")
], t.prototype, "columnModel", void 0), Wt([
P("eOverlayWrapper")
], t.prototype, "eOverlayWrapper", void 0), Wt([
b
], t.prototype, "postConstruct", null), t;
}(W)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Wy = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), fo = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, jy = (
/** @class */
function(n) {
Wy(t, n);
function t() {
return n !== null && n.apply(this, arguments) || this;
}
return t.prototype.getFirstRow = function() {
var e = 0, r;
return this.pinnedRowModel.getPinnedTopRowCount() ? r = "top" : this.rowModel.getRowCount() ? (r = null, e = this.paginationProxy.getPageFirstRow()) : this.pinnedRowModel.getPinnedBottomRowCount() && (r = "bottom"), r === void 0 ? null : { rowIndex: e, rowPinned: r };
}, t.prototype.getLastRow = function() {
var e, r = null, o = this.pinnedRowModel.getPinnedBottomRowCount(), i = this.pinnedRowModel.getPinnedTopRowCount();
return o ? (r = "bottom", e = o - 1) : this.rowModel.getRowCount() ? (r = null, e = this.paginationProxy.getPageLastRow()) : i && (r = "top", e = i - 1), e === void 0 ? null : { rowIndex: e, rowPinned: r };
}, t.prototype.getRowNode = function(e) {
switch (e.rowPinned) {
case "top":
return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];
case "bottom":
return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];
default:
return this.rowModel.getRow(e.rowIndex);
}
}, t.prototype.sameRow = function(e, r) {
return !e && !r ? !0 : e && !r || !e && r ? !1 : e.rowIndex === r.rowIndex && e.rowPinned == r.rowPinned;
}, t.prototype.before = function(e, r) {
switch (e.rowPinned) {
case "top":
if (r.rowPinned !== "top")
return !0;
break;
case "bottom":
if (r.rowPinned !== "bottom")
return !1;
break;
default:
if (O(r.rowPinned))
return r.rowPinned !== "top";
break;
}
return e.rowIndex < r.rowIndex;
}, t.prototype.rowMax = function(e) {
var r = this, o;
return e.forEach(function(i) {
(o === void 0 || r.before(o, i)) && (o = i);
}), o;
}, t.prototype.rowMin = function(e) {
var r = this, o;
return e.forEach(function(i) {
(o === void 0 || r.before(i, o)) && (o = i);
}), o;
}, fo([
h("rowModel")
], t.prototype, "rowModel", void 0), fo([
h("pinnedRowModel")
], t.prototype, "pinnedRowModel", void 0), fo([
h("paginationProxy")
], t.prototype, "paginationProxy", void 0), t = fo([
A("rowPositionUtils")
], t), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var ky = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Uy = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, zy = (
/** @class */
function(n) {
ky(t, n);
function t() {
return n !== null && n.apply(this, arguments) || this;
}
return t.prototype.createId = function(e) {
var r = e.rowIndex, o = e.rowPinned, i = e.column;
return this.createIdFromValues({ rowIndex: r, column: i, rowPinned: o });
}, t.prototype.createIdFromValues = function(e) {
var r = e.rowIndex, o = e.rowPinned, i = e.column;
return r + "." + (o ?? "null") + "." + i.getId();
}, t.prototype.equals = function(e, r) {
var o = e.column === r.column, i = e.rowPinned === r.rowPinned, s = e.rowIndex === r.rowIndex;
return o && i && s;
}, t = Uy([
A("cellPositionUtils")
], t), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Ky = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), br = (
/** @class */
function() {
function n(t) {
this.cellValueChanges = t;
}
return n;
}()
), Ji = (
/** @class */
function(n) {
Ky(t, n);
function t(e, r, o, i) {
var s = n.call(this, e) || this;
return s.initialRange = r, s.finalRange = o, s.ranges = i, s;
}
return t;
}(br)
), Js = (
/** @class */
function() {
function n(t) {
this.actionStack = [], this.maxStackSize = t || n.DEFAULT_STACK_SIZE, this.actionStack = new Array(this.maxStackSize);
}
return n.prototype.pop = function() {
return this.actionStack.pop();
}, n.prototype.push = function(t) {
var e = t.cellValueChanges && t.cellValueChanges.length > 0;
e && (this.actionStack.length === this.maxStackSize && this.actionStack.shift(), this.actionStack.push(t));
}, n.prototype.clear = function() {
this.actionStack = [];
}, n.prototype.getCurrentStackSize = function() {
return this.actionStack.length;
}, n.DEFAULT_STACK_SIZE = 10, n;
}()
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var $y = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), qo = function() {
return qo = Object.assign || function(n) {
for (var t, e = 1, r = arguments.length; e < r; e++) {
t = arguments[e];
for (var o in t)
Object.prototype.hasOwnProperty.call(t, o) && (n[o] = t[o]);
}
return n;
}, qo.apply(this, arguments);
}, Ke = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Yy = function(n, t) {
var e = typeof Symbol == "function" && n[Symbol.iterator];
if (!e)
return n;
var r = e.call(n), o, i = [], s;
try {
for (; (t === void 0 || t-- > 0) && !(o = r.next()).done; )
i.push(o.value);
} catch (a) {
s = { error: a };
} finally {
try {
o && !o.done && (e = r.return) && e.call(r);
} finally {
if (s)
throw s.error;
}
}
return i;
}, qy = function() {
for (var n = [], t = 0; t < arguments.length; t++)
n = n.concat(Yy(arguments[t]));
return n;
}, Qy = (
/** @class */
function(n) {
$y(t, n);
function t() {
var e = n !== null && n.apply(this, arguments) || this;
return e.cellValueChanges = [], e.activeCellEdit = null, e.activeRowEdit = null, e.isPasting = !1, e.isRangeInAction = !1, e.onCellValueChanged = function(r) {
var o = { column: r.column, rowIndex: r.rowIndex, rowPinned: r.rowPinned }, i = e.activeCellEdit !== null && e.cellPositionUtils.equals(e.activeCellEdit, o), s = e.activeRowEdit !== null && e.rowPositionUtils.sameRow(e.activeRowEdit, o), a = i || s || e.isPasting || e.isRangeInAction;
if (a) {
var l = r.rowPinned, u = r.rowIndex, c = r.column, p = r.oldValue, d = r.value, f = {
rowPinned: l,
rowIndex: u,
columnId: c.getColId(),
newValue: d,
oldValue: p
};
e.cellValueChanges.push(f);
}
}, e.clearStacks = function() {
e.undoStack.clear(), e.redoStack.clear();
}, e;
}
return t.prototype.init = function() {
var e = this;
if (this.gridOptionsService.is("undoRedoCellEditing")) {
var r = this.gridOptionsService.getNum("undoRedoCellEditingLimit");
r <= 0 || (this.undoStack = new Js(r), this.redoStack = new Js(r), this.addRowEditingListeners(), this.addCellEditingListeners(), this.addPasteListeners(), this.addFillListeners(), this.addCellKeyListeners(), this.addManagedListener(this.eventService, v.EVENT_CELL_VALUE_CHANGED, this.onCellValueChanged), this.addManagedListener(this.eventService, v.EVENT_MODEL_UPDATED, function(o) {
o.keepUndoRedoStack || e.clearStacks();
}), this.addManagedListener(this.eventService, v.EVENT_COLUMN_PIVOT_MODE_CHANGED, this.clearStacks), this.addManagedListener(this.eventService, v.EVENT_NEW_COLUMNS_LOADED, this.clearStacks), this.addManagedListener(this.eventService, v.EVENT_COLUMN_GROUP_OPENED, this.clearStacks), this.addManagedListener(this.eventService, v.EVENT_COLUMN_ROW_GROUP_CHANGED, this.clearStacks), this.addManagedListener(this.eventService, v.EVENT_COLUMN_MOVED, this.clearStacks), this.addManagedListener(this.eventService, v.EVENT_COLUMN_PINNED, this.clearStacks), this.addManagedListener(this.eventService, v.EVENT_COLUMN_VISIBLE, this.clearStacks), this.addManagedListener(this.eventService, v.EVENT_ROW_DRAG_END, this.clearStacks), this.ctrlsService.whenReady(function() {
e.gridBodyCtrl = e.ctrlsService.getGridBodyCtrl();
}));
}
}, t.prototype.getCurrentUndoStackSize = function() {
return this.undoStack ? this.undoStack.getCurrentStackSize() : 0;
}, t.prototype.getCurrentRedoStackSize = function() {
return this.redoStack ? this.redoStack.getCurrentStackSize() : 0;
}, t.prototype.undo = function(e) {
var r = {
type: v.EVENT_UNDO_STARTED,
source: e
};
this.eventService.dispatchEvent(r);
var o = this.undoRedo(this.undoStack, this.redoStack, "initialRange", "oldValue", "undo"), i = {
type: v.EVENT_UNDO_ENDED,
source: e,
operationPerformed: o
};
this.eventService.dispatchEvent(i);
}, t.prototype.redo = function(e) {
var r = {
type: v.EVENT_REDO_STARTED,
source: e
};
this.eventService.dispatchEvent(r);
var o = this.undoRedo(this.redoStack, this.undoStack, "finalRange", "newValue", "redo"), i = {
type: v.EVENT_REDO_ENDED,
source: e,
operationPerformed: o
};
this.eventService.dispatchEvent(i);
}, t.prototype.undoRedo = function(e, r, o, i, s) {
if (!e)
return !1;
var a = e.pop();
return !a || !a.cellValueChanges ? !1 : (this.processAction(a, function(l) {
return l[i];
}, s), a instanceof Ji ? this.processRange(a.ranges || [a[o]]) : this.processCell(a.cellValueChanges), r.push(a), !0);
}, t.prototype.processAction = function(e, r, o) {
var i = this;
e.cellValueChanges.forEach(function(s) {
var a = s.rowIndex, l = s.rowPinned, u = s.columnId, c = { rowIndex: a, rowPinned: l }, p = i.getRowNode(c);
p.displayed && p.setDataValue(u, r(s), o);
});
}, t.prototype.processRange = function(e) {
var r = this, o;
this.rangeService.removeAllCellRanges(!0), e.forEach(function(i, s) {
if (i) {
var a = i.startRow, l = i.endRow;
s === e.length - 1 && (o = {
rowPinned: a.rowPinned,
rowIndex: a.rowIndex,
columnId: i.startColumn.getColId()
}, r.setLastFocusedCell(o));
var u = {
rowStartIndex: a.rowIndex,
rowStartPinned: a.rowPinned,
rowEndIndex: l.rowIndex,
rowEndPinned: l.rowPinned,
columnStart: i.startColumn,
columns: i.columns
};
r.rangeService.addCellRange(u);
}
});
}, t.prototype.processCell = function(e) {
var r = e[0], o = r.rowIndex, i = r.rowPinned, s = { rowIndex: o, rowPinned: i }, a = this.getRowNode(s), l = {
rowPinned: r.rowPinned,
rowIndex: a.rowIndex,
columnId: r.columnId
};
this.setLastFocusedCell(l, !!this.rangeService);
}, t.prototype.setLastFocusedCell = function(e, r) {
var o = e.rowIndex, i = e.columnId, s = e.rowPinned, a = this.gridBodyCtrl.getScrollFeature(), l = this.columnModel.getGridColumn(i);
if (l) {
a.ensureIndexVisible(o), a.ensureColumnVisible(l);
var u = { rowIndex: o, column: l, rowPinned: s };
this.focusService.setFocusedCell(qo(qo({}, u), { forceBrowserFocus: !0 })), r && this.rangeService.setRangeToCell(u);
}
}, t.prototype.addRowEditingListeners = function() {
var e = this;
this.addManagedListener(this.eventService, v.EVENT_ROW_EDITING_STARTED, function(r) {
e.activeRowEdit = { rowIndex: r.rowIndex, rowPinned: r.rowPinned };
}), this.addManagedListener(this.eventService, v.EVENT_ROW_EDITING_STOPPED, function() {
var r = new br(e.cellValueChanges);
e.pushActionsToUndoStack(r), e.activeRowEdit = null;
});
}, t.prototype.addCellEditingListeners = function() {
var e = this;
this.addManagedListener(this.eventService, v.EVENT_CELL_EDITING_STARTED, function(r) {
e.activeCellEdit = { column: r.column, rowIndex: r.rowIndex, rowPinned: r.rowPinned };
}), this.addManagedListener(this.eventService, v.EVENT_CELL_EDITING_STOPPED, function(r) {
e.activeCellEdit = null;
var o = r.valueChanged && !e.activeRowEdit && !e.isPasting && !e.isRangeInAction;
if (o) {
var i = new br(e.cellValueChanges);
e.pushActionsToUndoStack(i);
}
});
}, t.prototype.addPasteListeners = function() {
var e = this;
this.addManagedListener(this.eventService, v.EVENT_PASTE_START, function() {
e.isPasting = !0;
}), this.addManagedListener(this.eventService, v.EVENT_PASTE_END, function() {
var r = new br(e.cellValueChanges);
e.pushActionsToUndoStack(r), e.isPasting = !1;
});
}, t.prototype.addFillListeners = function() {
var e = this;
this.addManagedListener(this.eventService, v.EVENT_FILL_START, function() {
e.isRangeInAction = !0;
}), this.addManagedListener(this.eventService, v.EVENT_FILL_END, function(r) {
var o = new Ji(e.cellValueChanges, r.initialRange, r.finalRange);
e.pushActionsToUndoStack(o), e.isRangeInAction = !1;
});
}, t.prototype.addCellKeyListeners = function() {
var e = this;
this.addManagedListener(this.eventService, v.EVENT_KEY_SHORTCUT_CHANGED_CELL_START, function() {
e.isRangeInAction = !0;
}), this.addManagedListener(this.eventService, v.EVENT_KEY_SHORTCUT_CHANGED_CELL_END, function() {
var r;
e.rangeService && e.gridOptionsService.isEnableRangeSelection() ? r = new Ji(e.cellValueChanges, void 0, void 0, qy(e.rangeService.getCellRanges())) : r = new br(e.cellValueChanges), e.pushActionsToUndoStack(r), e.isRangeInAction = !1;
});
}, t.prototype.pushActionsToUndoStack = function(e) {
this.undoStack.push(e), this.cellValueChanges = [], this.redoStack.clear();
}, t.prototype.getRowNode = function(e) {
switch (e.rowPinned) {
case "top":
return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];
case "bottom":
return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];
default:
return this.rowModel.getRow(e.rowIndex);
}
}, Ke([
h("focusService")
], t.prototype, "focusService", void 0), Ke([
h("ctrlsService")
], t.prototype, "ctrlsService", void 0), Ke([
h("rowModel")
], t.prototype, "rowModel", void 0), Ke([
h("pinnedRowModel")
], t.prototype, "pinnedRowModel", void 0), Ke([
h("cellPositionUtils")
], t.prototype, "cellPositionUtils", void 0), Ke([
h("rowPositionUtils")
], t.prototype, "rowPositionUtils", void 0), Ke([
h("columnModel")
], t.prototype, "columnModel", void 0), Ke([
Y("rangeService")
], t.prototype, "rangeService", void 0), Ke([
b
], t.prototype, "init", null), t = Ke([
A("undoRedoService")
], t), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Xy = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Zi = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Jy = (
/** @class */
function(n) {
Xy(t, n);
function t() {
return n !== null && n.apply(this, arguments) || this;
}
return t.prototype.findHeader = function(e, r) {
var o, i, s;
if (e.column instanceof Oe ? (i = "getDisplayedGroup" + r, o = this.columnModel[i](e.column)) : (s = "getDisplayedCol" + r, o = this.columnModel[s](e.column)), !!o) {
var a = e.headerRowIndex, l = this.getHeaderRowType(a);
if (l === he.COLUMN_GROUP) {
var u = o;
if (u.isPadding() && this.isAnyChildSpanningHeaderHeight(u)) {
var c = this.getColumnVisibleChild(u, a, r), p = c.nextFocusColumn, d = c.nextRow;
p && (o = p, a = d);
}
}
return {
column: o,
headerRowIndex: a
};
}
}, t.prototype.isAnyChildSpanningHeaderHeight = function(e) {
return e ? e.getLeafColumns().some(function(r) {
return r.isSpanHeaderHeight();
}) : !1;
}, t.prototype.getColumnVisibleParent = function(e, r) {
var o = this.getHeaderRowType(r), i = o === he.FLOATING_FILTER, s = o === he.COLUMN, a = i ? e : e.getParent(), l = r - 1;
if (s && this.isAnyChildSpanningHeaderHeight(e.getParent())) {
for (; a && a.isPadding(); )
a = a.getParent(), l--;
l < 0 && (a = e, l = r);
}
return { nextFocusColumn: a, nextRow: l };
}, t.prototype.getColumnVisibleChild = function(e, r, o) {
o === void 0 && (o = "After");
var i = this.getHeaderRowType(r), s = e, a = r + 1;
if (i === he.COLUMN_GROUP) {
var l = e.getLeafColumns(), u = o === "After" ? l[0] : q(l);
if (this.isAnyChildSpanningHeaderHeight(u.getParent())) {
s = u;
for (var c = u.getParent(); c && c !== e; )
c = c.getParent(), a++;
} else
s = e.getDisplayedChildren()[0];
}
return { nextFocusColumn: s, nextRow: a };
}, t.prototype.getHeaderRowType = function(e) {
var r = this.ctrlsService.getHeaderRowContainerCtrl();
if (r)
return r.getRowType(e);
}, t.prototype.findColAtEdgeForHeaderRow = function(e, r) {
var o = this.columnModel.getAllDisplayedColumns(), i = o[r === "start" ? 0 : o.length - 1];
if (i) {
var s = this.ctrlsService.getHeaderRowContainerCtrl(i.getPinned()), a = s.getRowType(e);
if (a == he.COLUMN_GROUP) {
var l = this.columnModel.getColumnGroupAtLevel(i, e);
return {
headerRowIndex: e,
column: l
};
}
return {
// if type==null, means the header level didn't exist
headerRowIndex: a == null ? -1 : e,
column: i
};
}
}, Zi([
h("columnModel")
], t.prototype, "columnModel", void 0), Zi([
h("ctrlsService")
], t.prototype, "ctrlsService", void 0), t = Zi([
A("headerPositionUtils")
], t), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var Zy = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, eC = (
/** @class */
function() {
function n() {
}
return n.prototype.buildColumnDefs = function(t, e, r) {
var o = this, i = [], s = {};
return t.forEach(function(a) {
for (var l = o.createDefFromColumn(a, e, r), u = !0, c = l, p = a.getOriginalParent(); p; ) {
var d = null;
if (p.isPadding()) {
p = p.getOriginalParent();
continue;
}
var f = s[p.getGroupId()];
if (f) {
f.children.push(c), u = !1;
break;
}
d = o.createDefFromGroup(p), d && (d.children = [c], s[d.groupId] = d, c = d, p = p.getOriginalParent());
}
u && i.push(c);
}), i;
}, n.prototype.createDefFromGroup = function(t) {
var e = To(t.getColGroupDef(), ["children"]);
return e && (e.groupId = t.getGroupId()), e;
}, n.prototype.createDefFromColumn = function(t, e, r) {
var o = To(t.getColDef());
return o.colId = t.getColId(), o.width = t.getActualWidth(), o.rowGroup = t.isRowGroupActive(), o.rowGroupIndex = t.isRowGroupActive() ? e.indexOf(t) : null, o.pivot = t.isPivotActive(), o.pivotIndex = t.isPivotActive() ? r.indexOf(t) : null, o.aggFunc = t.isValueActive() ? t.getAggFunc() : null, o.hide = t.isVisible() ? void 0 : !0, o.pinned = t.isPinned() ? t.getPinned() : null, o.sort = t.getSort() ? t.getSort() : null, o.sortIndex = t.getSortIndex() != null ? t.getSortIndex() : null, o;
}, n = Zy([
A("columnDefFactory")
], n), n;
}()
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var en = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, tC = (
/** @class */
function() {
function n() {
}
return n.prototype.getInitialRowClasses = function(t) {
var e = [];
return O(t.extraCssClass) && e.push(t.extraCssClass), e.push("ag-row"), e.push(t.rowFocused ? "ag-row-focus" : "ag-row-no-focus"), t.fadeRowIn && e.push("ag-opacity-zero"), e.push(t.rowIsEven ? "ag-row-even" : "ag-row-odd"), t.rowNode.isRowPinned() && e.push("ag-row-pinned"), t.rowNode.isSelected() && e.push("ag-row-selected"), t.rowNode.footer && e.push("ag-row-footer"), e.push("ag-row-level-" + t.rowLevel), t.rowNode.stub && e.push("ag-row-loading"), t.fullWidthRow && e.push("ag-full-width-row"), t.expandable && (e.push("ag-row-group"), e.push(t.rowNode.expanded ? "ag-row-group-expanded" : "ag-row-group-contracted")), t.rowNode.dragging && e.push("ag-row-dragging"), un(e, this.processClassesFromGridOptions(t.rowNode)), un(e, this.preProcessRowClassRules(t.rowNode)), e.push(t.printLayout ? "ag-row-position-relative" : "ag-row-position-absolute"), t.firstRowOnPage && e.push("ag-row-first"), t.lastRowOnPage && e.push("ag-row-last"), t.fullWidthRow && (t.pinned === "left" && e.push("ag-cell-last-left-pinned"), t.pinned === "right" && e.push("ag-cell-first-right-pinned")), e;
}, n.prototype.processClassesFromGridOptions = function(t) {
var e = [], r = function(l) {
typeof l == "string" ? e.push(l) : Array.isArray(l) && l.forEach(function(u) {
return e.push(u);
});
}, o = this.gridOptionsService.get("rowClass");
if (o) {
if (typeof o == "function")
return console.warn("AG Grid: rowClass should not be a function, please use getRowClass instead"), [];
r(o);
}
var i = this.gridOptionsService.getCallback("getRowClass");
if (i) {
var s = {
data: t.data,
node: t,
rowIndex: t.rowIndex
}, a = i(s);
r(a);
}
return e;
}, n.prototype.preProcessRowClassRules = function(t) {
var e = [];
return this.processRowClassRules(t, function(r) {
e.push(r);
}, function(r) {
}), e;
}, n.prototype.processRowClassRules = function(t, e, r) {
var o = {
data: t.data,
node: t,
rowIndex: t.rowIndex,
api: this.gridOptionsService.api,
columnApi: this.gridOptionsService.columnApi,
context: this.gridOptionsService.context
};
this.stylingService.processClassRules(this.gridOptionsService.get("rowClassRules"), o, e, r);
}, n.prototype.calculateRowLevel = function(t) {
return t.group ? t.level : t.parent ? t.parent.level + 1 : 0;
}, en([
h("stylingService")
], n.prototype, "stylingService", void 0), en([
h("gridOptionsService")
], n.prototype, "gridOptionsService", void 0), n = en([
A("rowCssClassCalculator")
], n), n;
}()
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var rC = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), vo = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, oC = (
/** @class */
function(n) {
rC(t, n);
function t() {
return n !== null && n.apply(this, arguments) || this;
}
return t.prototype.init = function() {
var e = this;
this.isAccentedSort = this.gridOptionsService.is("accentedSort"), this.primaryColumnsSortGroups = this.gridOptionsService.isColumnsSortingCoupledToGroup(), this.addManagedPropertyListener("accentedSort", function(r) {
return e.isAccentedSort = r.currentValue;
}), this.addManagedPropertyListener("autoGroupColumnDef", function() {
return e.primaryColumnsSortGroups = e.gridOptionsService.isColumnsSortingCoupledToGroup();
});
}, t.prototype.doFullSort = function(e, r) {
var o = function(s, a) {
return { currentPos: a, rowNode: s };
}, i = e.map(o);
return i.sort(this.compareRowNodes.bind(this, r)), i.map(function(s) {
return s.rowNode;
});
}, t.prototype.compareRowNodes = function(e, r, o) {
for (var i = r.rowNode, s = o.rowNode, a = 0, l = e.length; a < l; a++) {
var u = e[a], c = u.sort === "desc", p = this.getValue(i, u.column), d = this.getValue(s, u.column), f = void 0, g = this.getComparator(u, i);
g ? f = g(p, d, i, s, c) : f = G.defaultComparator(p, d, this.isAccentedSort);
var y = !isNaN(f);
if (y && f !== 0)
return u.sort === "asc" ? f : f * -1;
}
return r.currentPos - o.currentPos;
}, t.prototype.getComparator = function(e, r) {
var o = e.column, i = o.getColDef().comparator;
if (i != null)
return i;
if (o.getColDef().showRowGroup) {
var s = !r.group && o.getColDef().field;
if (s) {
var a = this.columnModel.getPrimaryColumn(s);
if (a)
return a.getColDef().comparator;
}
}
}, t.prototype.getValue = function(e, r) {
var o, i;
if (!this.primaryColumnsSortGroups)
return this.valueService.getValue(r, e, !1, !1);
var s = e.rowGroupColumn === r;
if (s) {
var a = this.gridOptionsService.isGroupUseEntireRow(this.columnModel.isPivotActive());
if (a) {
var l = r.getColDef().keyCreator;
if (l)
return e.key;
var u = (o = e.allLeafChildren) === null || o === void 0 ? void 0 : o[0];
return u ? this.valueService.getValue(r, u, !1, !1) : void 0;
}
var c = this.columnModel.getGroupDisplayColumnForGroup(r.getId());
return c ? (i = e.groupData) === null || i === void 0 ? void 0 : i[c.getId()] : void 0;
}
if (!(e.group && r.getColDef().showRowGroup))
return this.valueService.getValue(r, e, !1, !1);
}, vo([
h("valueService")
], t.prototype, "valueService", void 0), vo([
h("columnModel")
], t.prototype, "columnModel", void 0), vo([
b
], t.prototype, "init", null), t = vo([
A("rowNodeSorter")
], t), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var iC = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), nC = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, sC = (
/** @class */
function(n) {
iC(t, n);
function t() {
var r = n !== null && n.apply(this, arguments) || this;
return r.ready = !1, r.readyCallbacks = [], r;
}
e = t, t.prototype.checkReady = function() {
if (this.ready = this.gridCtrl != null && this.gridBodyCtrl != null && this.centerRowContainerCtrl != null && this.leftRowContainerCtrl != null && this.rightRowContainerCtrl != null && this.bottomCenterRowContainerCtrl != null && this.bottomLeftRowContainerCtrl != null && this.bottomRightRowContainerCtrl != null && this.topCenterRowContainerCtrl != null && this.topLeftRowContainerCtrl != null && this.topRightRowContainerCtrl != null && this.stickyTopCenterRowContainerCtrl != null && this.stickyTopLeftRowContainerCtrl != null && this.stickyTopRightRowContainerCtrl != null && this.centerHeaderRowContainerCtrl != null && this.leftHeaderRowContainerCtrl != null && this.rightHeaderRowContainerCtrl != null && this.fakeHScrollComp != null && this.fakeVScrollComp != null && this.gridHeaderCtrl != null, this.ready) {
var r = this.createReadyParams();
this.readyCallbacks.forEach(function(o) {
return o(r);
}), this.readyCallbacks.length = 0;
}
}, t.prototype.whenReady = function(r) {
this.ready ? r(this.createReadyParams()) : this.readyCallbacks.push(r);
}, t.prototype.createReadyParams = function() {
return {
centerRowContainerCtrl: this.centerRowContainerCtrl,
leftRowContainerCtrl: this.leftRowContainerCtrl,
rightRowContainerCtrl: this.rightRowContainerCtrl,
bottomCenterRowContainerCtrl: this.bottomCenterRowContainerCtrl,
bottomLeftRowContainerCtrl: this.bottomLeftRowContainerCtrl,
bottomRightRowContainerCtrl: this.bottomRightRowContainerCtrl,
topCenterRowContainerCtrl: this.topCenterRowContainerCtrl,
topLeftRowContainerCtrl: this.topLeftRowContainerCtrl,
topRightRowContainerCtrl: this.topRightRowContainerCtrl,
stickyTopCenterRowContainerCtrl: this.stickyTopCenterRowContainerCtrl,
stickyTopLeftRowContainerCtrl: this.stickyTopLeftRowContainerCtrl,
stickyTopRightRowContainerCtrl: this.stickyTopRightRowContainerCtrl,
centerHeaderRowContainerCtrl: this.centerHeaderRowContainerCtrl,
leftHeaderRowContainerCtrl: this.leftHeaderRowContainerCtrl,
rightHeaderRowContainerCtrl: this.rightHeaderRowContainerCtrl,
fakeHScrollComp: this.fakeHScrollComp,
fakeVScrollComp: this.fakeVScrollComp,
gridBodyCtrl: this.gridBodyCtrl,
gridCtrl: this.gridCtrl,
gridHeaderCtrl: this.gridHeaderCtrl
};
}, t.prototype.registerFakeHScrollComp = function(r) {
this.fakeHScrollComp = r, this.checkReady();
}, t.prototype.registerFakeVScrollComp = function(r) {
this.fakeVScrollComp = r, this.checkReady();
}, t.prototype.registerGridHeaderCtrl = function(r) {
this.gridHeaderCtrl = r, this.checkReady();
}, t.prototype.registerCenterRowContainerCtrl = function(r) {
this.centerRowContainerCtrl = r, this.checkReady();
}, t.prototype.registerLeftRowContainerCtrl = function(r) {
this.leftRowContainerCtrl = r, this.checkReady();
}, t.prototype.registerRightRowContainerCtrl = function(r) {
this.rightRowContainerCtrl = r, this.checkReady();
}, t.prototype.registerTopCenterRowContainerCtrl = function(r) {
this.topCenterRowContainerCtrl = r, this.checkReady();
}, t.prototype.registerTopLeftRowContainerCon = function(r) {
this.topLeftRowContainerCtrl = r, this.checkReady();
}, t.prototype.registerTopRightRowContainerCtrl = function(r) {
this.topRightRowContainerCtrl = r, this.checkReady();
}, t.prototype.registerStickyTopCenterRowContainerCtrl = function(r) {
this.stickyTopCenterRowContainerCtrl = r, this.checkReady();
}, t.prototype.registerStickyTopLeftRowContainerCon = function(r) {
this.stickyTopLeftRowContainerCtrl = r, this.checkReady();
}, t.prototype.registerStickyTopRightRowContainerCtrl = function(r) {
this.stickyTopRightRowContainerCtrl = r, this.checkReady();
}, t.prototype.registerBottomCenterRowContainerCtrl = function(r) {
this.bottomCenterRowContainerCtrl = r, this.checkReady();
}, t.prototype.registerBottomLeftRowContainerCtrl = function(r) {
this.bottomLeftRowContainerCtrl = r, this.checkReady();
}, t.prototype.registerBottomRightRowContainerCtrl = function(r) {
this.bottomRightRowContainerCtrl = r, this.checkReady();
}, t.prototype.registerHeaderContainer = function(r, o) {
switch (o) {
case "left":
this.leftHeaderRowContainerCtrl = r;
break;
case "right":
this.rightHeaderRowContainerCtrl = r;
break;
default:
this.centerHeaderRowContainerCtrl = r;
break;
}
this.checkReady();
}, t.prototype.registerGridBodyCtrl = function(r) {
this.gridBodyCtrl = r, this.checkReady();
}, t.prototype.registerGridCtrl = function(r) {
this.gridCtrl = r, this.checkReady();
}, t.prototype.getFakeHScrollComp = function() {
return this.fakeHScrollComp;
}, t.prototype.getFakeVScrollComp = function() {
return this.fakeVScrollComp;
}, t.prototype.getGridHeaderCtrl = function() {
return this.gridHeaderCtrl;
}, t.prototype.getGridCtrl = function() {
return this.gridCtrl;
}, t.prototype.getCenterRowContainerCtrl = function() {
return this.centerRowContainerCtrl;
}, t.prototype.getTopCenterRowContainerCtrl = function() {
return this.topCenterRowContainerCtrl;
}, t.prototype.getBottomCenterRowContainerCtrl = function() {
return this.bottomCenterRowContainerCtrl;
}, t.prototype.getStickyTopCenterRowContainerCtrl = function() {
return this.stickyTopCenterRowContainerCtrl;
}, t.prototype.getGridBodyCtrl = function() {
return this.gridBodyCtrl;
}, t.prototype.getHeaderRowContainerCtrls = function() {
return [this.leftHeaderRowContainerCtrl, this.rightHeaderRowContainerCtrl, this.centerHeaderRowContainerCtrl];
}, t.prototype.getHeaderRowContainerCtrl = function(r) {
switch (r) {
case "left":
return this.leftHeaderRowContainerCtrl;
case "right":
return this.rightHeaderRowContainerCtrl;
default:
return this.centerHeaderRowContainerCtrl;
}
};
var e;
return t.NAME = "ctrlsService", t = e = nC([
A(e.NAME)
], t), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var aC = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), lC = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, uC = (
/** @class */
function(n) {
aC(t, n);
function t() {
var e = n !== null && n.apply(this, arguments) || this;
return e.registry = {}, e;
}
return t.prototype.register = function(e) {
this.registry[e.controllerName] = e.controllerClass;
}, t.prototype.getInstance = function(e) {
var r = this.registry[e];
if (r != null)
return new r();
}, t = lC([
A("ctrlsFactory")
], t), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var cC = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), go = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Ul = (
/** @class */
function(n) {
cC(t, n);
function t(e, r) {
var o = n.call(this, e) || this;
return o.direction = r, o.hideTimeout = null, o;
}
return t.prototype.postConstruct = function() {
this.addManagedListener(this.eventService, v.EVENT_SCROLL_VISIBILITY_CHANGED, this.onScrollVisibilityChanged.bind(this)), this.onScrollVisibilityChanged(), this.addOrRemoveCssClass("ag-apple-scrollbar", Bn() || St());
}, t.prototype.initialiseInvisibleScrollbar = function() {
this.invisibleScrollbar === void 0 && (this.invisibleScrollbar = Yt(), this.invisibleScrollbar && (this.hideAndShowInvisibleScrollAsNeeded(), this.addActiveListenerToggles()));
}, t.prototype.addActiveListenerToggles = function() {
var e = this, r = ["mouseenter", "mousedown", "touchstart"], o = ["mouseleave", "touchend"], i = this.getGui();
r.forEach(function(s) {
return e.addManagedListener(i, s, function() {
return e.addOrRemoveCssClass("ag-scrollbar-active", !0);
});
}), o.forEach(function(s) {
return e.addManagedListener(i, s, function() {
return e.addOrRemoveCssClass("ag-scrollbar-active", !1);
});
});
}, t.prototype.onScrollVisibilityChanged = function() {
this.invisibleScrollbar === void 0 && this.initialiseInvisibleScrollbar(), this.setScrollVisible();
}, t.prototype.hideAndShowInvisibleScrollAsNeeded = function() {
var e = this;
this.addManagedListener(this.eventService, v.EVENT_BODY_SCROLL, function(r) {
r.direction === e.direction && (e.hideTimeout !== null && (window.clearTimeout(e.hideTimeout), e.hideTimeout = null), e.addOrRemoveCssClass("ag-scrollbar-scrolling", !0));
}), this.addManagedListener(this.eventService, v.EVENT_BODY_SCROLL_END, function() {
e.hideTimeout = window.setTimeout(function() {
e.addOrRemoveCssClass("ag-scrollbar-scrolling", !1), e.hideTimeout = null;
}, 400);
});
}, t.prototype.getViewport = function() {
return this.eViewport;
}, t.prototype.getContainer = function() {
return this.eContainer;
}, go([
P("eViewport")
], t.prototype, "eViewport", void 0), go([
P("eContainer")
], t.prototype, "eContainer", void 0), go([
h("scrollVisibleService")
], t.prototype, "scrollVisibleService", void 0), go([
h("ctrlsService")
], t.prototype, "ctrlsService", void 0), t;
}(W)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var pC = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Tr = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, dC = (
/** @class */
function(n) {
pC(t, n);
function t() {
return n.call(this, t.TEMPLATE, "horizontal") || this;
}
return t.prototype.postConstruct = function() {
var e = this;
n.prototype.postConstruct.call(this);
var r = this.setFakeHScrollSpacerWidths.bind(this);
this.addManagedListener(this.eventService, v.EVENT_DISPLAYED_COLUMNS_CHANGED, r), this.addManagedListener(this.eventService, v.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED, r), this.addManagedListener(this.eventService, v.EVENT_PINNED_ROW_DATA_CHANGED, this.onPinnedRowDataChanged.bind(this)), this.addManagedPropertyListener("domLayout", r), this.ctrlsService.registerFakeHScrollComp(this), this.createManagedBean(new ss(function(o) {
return e.eContainer.style.width = o + "px";
}));
}, t.prototype.initialiseInvisibleScrollbar = function() {
this.invisibleScrollbar === void 0 && (this.enableRtl = this.gridOptionsService.is("enableRtl"), n.prototype.initialiseInvisibleScrollbar.call(this), this.invisibleScrollbar && this.refreshCompBottom());
}, t.prototype.onPinnedRowDataChanged = function() {
this.refreshCompBottom();
}, t.prototype.refreshCompBottom = function() {
if (this.invisibleScrollbar) {
var e = this.pinnedRowModel.getPinnedBottomTotalHeight();
this.getGui().style.bottom = e + "px";
}
}, t.prototype.onScrollVisibilityChanged = function() {
n.prototype.onScrollVisibilityChanged.call(this), this.setFakeHScrollSpacerWidths();
}, t.prototype.setFakeHScrollSpacerWidths = function() {
var e = this.scrollVisibleService.isVerticalScrollShowing(), r = this.columnModel.getDisplayedColumnsRightWidth(), o = !this.enableRtl && e, i = this.gridOptionsService.getScrollbarWidth();
o && (r += i), Ve(this.eRightSpacer, r), this.eRightSpacer.classList.toggle("ag-scroller-corner", r <= i);
var s = this.columnModel.getDisplayedColumnsLeftWidth(), a = this.enableRtl && e;
a && (s += i), Ve(this.eLeftSpacer, s), this.eLeftSpacer.classList.toggle("ag-scroller-corner", s <= i);
}, t.prototype.setScrollVisible = function() {
var e = this.scrollVisibleService.isHorizontalScrollShowing(), r = this.invisibleScrollbar, o = this.gridOptionsService.is("suppressHorizontalScroll"), i = e && this.gridOptionsService.getScrollbarWidth() || 0, s = i === 0 && r ? 16 : i, a = o ? 0 : s;
this.addOrRemoveCssClass("ag-scrollbar-invisible", r), At(this.getGui(), a), At(this.eViewport, a), At(this.eContainer, a), this.setDisplayed(e, { skipAriaHidden: !0 });
}, t.TEMPLATE = `<div class="ag-body-horizontal-scroll" aria-hidden="true">
<div class="ag-horizontal-left-spacer" ref="eLeftSpacer"></div>
<div class="ag-body-horizontal-scroll-viewport" ref="eViewport">
<div class="ag-body-horizontal-scroll-container" ref="eContainer"></div>
</div>
<div class="ag-horizontal-right-spacer" ref="eRightSpacer"></div>
</div>`, Tr([
P("eLeftSpacer")
], t.prototype, "eLeftSpacer", void 0), Tr([
P("eRightSpacer")
], t.prototype, "eRightSpacer", void 0), Tr([
h("columnModel")
], t.prototype, "columnModel", void 0), Tr([
h("pinnedRowModel")
], t.prototype, "pinnedRowModel", void 0), Tr([
b
], t.prototype, "postConstruct", null), t;
}(Ul)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var hC = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), tn = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, fC = (
/** @class */
function(n) {
hC(t, n);
function t() {
return n !== null && n.apply(this, arguments) || this;
}
return t.prototype.postConstruct = function() {
var e = this.checkContainerWidths.bind(this);
this.addManagedListener(this.eventService, v.EVENT_DISPLAYED_COLUMNS_CHANGED, e), this.addManagedListener(this.eventService, v.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED, e), this.addManagedPropertyListener("domLayout", e);
}, t.prototype.checkContainerWidths = function() {
var e = this.gridOptionsService.isDomLayout("print"), r = e ? 0 : this.columnModel.getDisplayedColumnsLeftWidth(), o = e ? 0 : this.columnModel.getDisplayedColumnsRightWidth();
r != this.leftWidth && (this.leftWidth = r, this.eventService.dispatchEvent({ type: v.EVENT_LEFT_PINNED_WIDTH_CHANGED })), o != this.rightWidth && (this.rightWidth = o, this.eventService.dispatchEvent({ type: v.EVENT_RIGHT_PINNED_WIDTH_CHANGED }));
}, t.prototype.getPinnedRightWidth = function() {
return this.rightWidth;
}, t.prototype.getPinnedLeftWidth = function() {
return this.leftWidth;
}, tn([
h("columnModel")
], t.prototype, "columnModel", void 0), tn([
b
], t.prototype, "postConstruct", null), t = tn([
A("pinnedWidthService")
], t), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var vC = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), yo = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, gC = (
/** @class */
function(n) {
vC(t, n);
function t() {
var e = n !== null && n.apply(this, arguments) || this;
return e.events = [], e;
}
return t.prototype.postConstruct = function() {
this.rowModel.getType() == "clientSide" && (this.clientSideRowModel = this.rowModel);
}, t.prototype.dispatchExpanded = function(e) {
var r = this;
if (this.clientSideRowModel == null) {
this.eventService.dispatchEvent(e);
return;
}
this.events.push(e);
var o = function() {
r.clientSideRowModel && r.clientSideRowModel.onRowGroupOpened(), r.events.forEach(function(i) {
return r.eventService.dispatchEvent(i);
}), r.events = [];
};
this.dispatchExpandedDebounced == null && (this.dispatchExpandedDebounced = this.animationFrameService.debounce(o)), this.dispatchExpandedDebounced();
}, yo([
h("animationFrameService")
], t.prototype, "animationFrameService", void 0), yo([
h("rowModel")
], t.prototype, "rowModel", void 0), yo([
b
], t.prototype, "postConstruct", null), t = yo([
A("rowNodeEventThrottle")
], t), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var On = function() {
return On = Object.assign || function(n) {
for (var t, e = 1, r = arguments.length; e < r; e++) {
t = arguments[e];
for (var o in t)
Object.prototype.hasOwnProperty.call(t, o) && (n[o] = t[o]);
}
return n;
}, On.apply(this, arguments);
}, dt = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, Zs = function(n, t) {
return function(e, r) {
t(e, r, n);
};
}, yC = function(n, t) {
var e = typeof Symbol == "function" && n[Symbol.iterator];
if (!e)
return n;
var r = e.call(n), o, i = [], s;
try {
for (; (t === void 0 || t-- > 0) && !(o = r.next()).done; )
i.push(o.value);
} catch (a) {
s = { error: a };
} finally {
try {
o && !o.done && (e = r.return) && e.call(r);
} finally {
if (s)
throw s.error;
}
}
return i;
}, CC = function() {
for (var n = [], t = 0; t < arguments.length; t++)
n = n.concat(yC(arguments[t]));
return n;
};
function mC(n) {
if (typeof n == "number")
return n;
if (typeof n == "string")
return parseInt(n, 10);
}
function ea(n) {
return n === !0 || n === "true";
}
var wC = (
/** @class */
function() {
function n() {
this.destroyed = !1, this.domDataKey = "__AG_" + Math.random().toString(), this.propertyEventService = new wt();
}
return Object.defineProperty(n.prototype, "context", {
// This is quicker then having code call gridOptionsService.get('context')
get: function() {
return this.gridOptions.context;
},
enumerable: !1,
configurable: !0
}), n.prototype.agWire = function(t, e) {
this.gridOptions.api = t, this.gridOptions.columnApi = e, this.api = t, this.columnApi = e;
}, n.prototype.init = function() {
this.gridOptionLookup = new Set(CC(_o.ALL_PROPERTIES, _o.EVENT_CALLBACKS));
var t = !this.is("suppressAsyncEvents");
this.eventService.addGlobalListener(this.globalEventHandler.bind(this), t), this.getScrollbarWidth();
}, n.prototype.destroy = function() {
this.gridOptions.api = null, this.gridOptions.columnApi = null, this.destroyed = !0;
}, n.prototype.is = function(t) {
return ea(this.gridOptions[t]);
}, n.prototype.get = function(t) {
return this.gridOptions[t];
}, n.prototype.getNum = function(t) {
return mC(this.gridOptions[t]);
}, n.prototype.getCallback = function(t) {
return this.mergeGridCommonParams(this.gridOptions[t]);
}, n.prototype.exists = function(t) {
return O(this.gridOptions[t]);
}, n.prototype.mergeGridCommonParams = function(t) {
var e = this;
if (t) {
var r = function(o) {
var i = o;
return i.api = e.api, i.columnApi = e.columnApi, i.context = e.context, t(i);
};
return r;
}
return t;
}, n.prototype.set = function(t, e, r, o) {
if (r === void 0 && (r = !1), o === void 0 && (o = {}), this.gridOptionLookup.has(t)) {
var i = this.gridOptions[t];
if (r || i !== e) {
this.gridOptions[t] = e;
var s = On({ type: t, currentValue: e, previousValue: i }, o);
this.propertyEventService.dispatchEvent(s);
}
}
}, n.prototype.addEventListener = function(t, e) {
this.propertyEventService.addEventListener(t, e);
}, n.prototype.removeEventListener = function(t, e) {
this.propertyEventService.removeEventListener(t, e);
}, n.prototype.globalEventHandler = function(t, e) {
if (!this.destroyed) {
var r = _o.getCallbackForEvent(t);
typeof this.gridOptions[r] == "function" && this.gridOptions[r](e);
}
}, n.prototype.getScrollbarWidth = function() {
if (this.scrollbarWidth == null) {
var t = typeof this.gridOptions.scrollbarWidth == "number" && this.gridOptions.scrollbarWidth >= 0, e = t ? this.gridOptions.scrollbarWidth : Za();
e != null && (this.scrollbarWidth = e, this.eventService.dispatchEvent({
type: v.EVENT_SCROLLBAR_WIDTH_CHANGED
}));
}
return this.scrollbarWidth;
}, n.prototype.isRowModelType = function(t) {
return this.gridOptions.rowModelType === t || t === "clientSide" && x(this.gridOptions.rowModelType);
}, n.prototype.isDomLayout = function(t) {
var e, r = (e = this.gridOptions.domLayout) !== null && e !== void 0 ? e : "normal";
return r === t;
}, n.prototype.isRowSelection = function() {
return this.gridOptions.rowSelection === "single" || this.gridOptions.rowSelection === "multiple";
}, n.prototype.useAsyncEvents = function() {
return !this.is("suppressAsyncEvents");
}, n.prototype.isGetRowHeightFunction = function() {
return typeof this.gridOptions.getRowHeight == "function";
}, n.prototype.getRowHeightForNode = function(t, e, r) {
if (e === void 0 && (e = !1), r == null && (r = this.environment.getDefaultRowHeight()), this.isGetRowHeightFunction()) {
if (e)
return { height: r, estimated: !0 };
var o = {
node: t,
data: t.data
}, i = this.getCallback("getRowHeight")(o);
if (this.isNumeric(i))
return i === 0 && K(function() {
return console.warn("AG Grid: The return of `getRowHeight` cannot be zero. If the intention is to hide rows, use a filter instead.");
}, "invalidRowHeight"), { height: Math.max(1, i), estimated: !1 };
}
if (t.detail && this.is("masterDetail"))
return this.getMasterDetailRowHeight();
var s = this.gridOptions.rowHeight && this.isNumeric(this.gridOptions.rowHeight) ? this.gridOptions.rowHeight : r;
return { height: s, estimated: !1 };
}, n.prototype.getMasterDetailRowHeight = function() {
return this.is("detailRowAutoHeight") ? { height: 1, estimated: !1 } : this.isNumeric(this.gridOptions.detailRowHeight) ? { height: this.gridOptions.detailRowHeight, estimated: !1 } : { height: 300, estimated: !1 };
}, n.prototype.getRowHeightAsNumber = function() {
if (!this.gridOptions.rowHeight || x(this.gridOptions.rowHeight))
return this.environment.getDefaultRowHeight();
var t = this.gridOptions.rowHeight;
return t && this.isNumeric(t) ? (this.environment.setRowHeightVariable(t), t) : (console.warn("AG Grid row height must be a number if not using standard row model"), this.environment.getDefaultRowHeight());
}, n.prototype.isNumeric = function(t) {
return !isNaN(t) && typeof t == "number" && isFinite(t);
}, n.prototype.getDomDataKey = function() {
return this.domDataKey;
}, n.prototype.getDomData = function(t, e) {
var r = t[this.getDomDataKey()];
return r ? r[e] : void 0;
}, n.prototype.setDomData = function(t, e, r) {
var o = this.getDomDataKey(), i = t[o];
x(i) && (i = {}, t[o] = i), i[e] = r;
}, n.prototype.getDocument = function() {
var t = null;
return this.gridOptions.getDocument && O(this.gridOptions.getDocument) ? t = this.gridOptions.getDocument() : this.eGridDiv && (t = this.eGridDiv.ownerDocument), t && O(t) ? t : document;
}, n.prototype.getRootNode = function() {
return this.eGridDiv.getRootNode();
}, n.prototype.getRowIdFunc = function() {
var t = this.getCallback("getRowId");
if (t)
return t;
var e = this.gridOptions.getRowNodeId;
if (e)
return function(r) {
return e(r.data);
};
}, n.prototype.getAsyncTransactionWaitMillis = function() {
return O(this.gridOptions.asyncTransactionWaitMillis) ? this.gridOptions.asyncTransactionWaitMillis : 50;
}, n.prototype.isAnimateRows = function() {
return this.is("ensureDomOrder") ? !1 : this.is("animateRows");
}, n.prototype.isTreeData = function() {
return this.is("treeData") && N.assertRegistered(F.RowGroupingModule, "Tree Data");
}, n.prototype.isMasterDetail = function() {
return this.is("masterDetail") && N.assertRegistered(F.MasterDetailModule, "masterDetail");
}, n.prototype.isEnableRangeSelection = function() {
return this.is("enableRangeSelection") && N.isRegistered(F.RangeSelectionModule);
}, n.prototype.isColumnsSortingCoupledToGroup = function() {
var t = this.gridOptions.autoGroupColumnDef, e = this.isRowModelType("clientSide");
return e && !(t != null && t.comparator) && !this.isTreeData();
}, n.prototype.getGroupAggFiltering = function() {
var t = this.gridOptions.groupAggFiltering;
if (typeof t == "function")
return this.getCallback("groupAggFiltering");
if (ea(t))
return function() {
return !0;
};
}, n.prototype.isGroupMultiAutoColumn = function() {
return this.gridOptions.groupDisplayType ? pn("multipleColumns", this.gridOptions.groupDisplayType) : this.is("groupHideOpenParents");
}, n.prototype.isGroupUseEntireRow = function(t) {
return t ? !1 : this.gridOptions.groupDisplayType ? pn("groupRows", this.gridOptions.groupDisplayType) : !1;
}, dt([
h("gridOptions")
], n.prototype, "gridOptions", void 0), dt([
h("eventService")
], n.prototype, "eventService", void 0), dt([
h("environment")
], n.prototype, "environment", void 0), dt([
h("eGridDiv")
], n.prototype, "eGridDiv", void 0), dt([
Zs(0, Ce("gridApi")),
Zs(1, Ce("columnApi"))
], n.prototype, "agWire", null), dt([
b
], n.prototype, "init", null), dt([
fe
], n.prototype, "destroy", null), n = dt([
A("gridOptionsService")
], n), n;
}()
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var SC = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), EC = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, _C = (
/** @class */
function(n) {
SC(t, n);
function t() {
return n !== null && n.apply(this, arguments) || this;
}
return t.prototype.getLocaleTextFunc = function() {
var e = this.gridOptionsService.getCallback("getLocaleText");
if (e)
return function(i, s, a) {
var l = {
key: i,
defaultValue: s,
variableValues: a
};
return e(l);
};
var r = this.gridOptionsService.get("localeTextFunc");
if (r)
return r;
var o = this.gridOptionsService.get("localeText");
return function(i, s, a) {
var l = o && o[i];
if (l && a && a.length)
for (var u = 0; !(u >= a.length); ) {
var c = l.indexOf("${variable}");
if (c === -1)
break;
l = l.replace("${variable}", a[u++]);
}
return l ?? s;
};
}, t = EC([
A("localeService")
], t), t;
}(T)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var RC = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), OC = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, TC = (
/** @class */
function(n) {
RC(t, n);
function t() {
return n.call(this, t.TEMPLATE, "vertical") || this;
}
return t.prototype.postConstruct = function() {
n.prototype.postConstruct.call(this), this.createManagedBean(new Bl(this.eContainer)), this.ctrlsService.registerFakeVScrollComp(this);
}, t.prototype.setScrollVisible = function() {
var e = this.scrollVisibleService.isVerticalScrollShowing(), r = this.invisibleScrollbar, o = e && this.gridOptionsService.getScrollbarWidth() || 0, i = o === 0 && r ? 16 : o;
this.addOrRemoveCssClass("ag-scrollbar-invisible", r), Ve(this.getGui(), i), Ve(this.eViewport, i), Ve(this.eContainer, i), this.setDisplayed(e, { skipAriaHidden: !0 });
}, t.TEMPLATE = `<div class="ag-body-vertical-scroll" aria-hidden="true">
<div class="ag-body-vertical-scroll-viewport" ref="eViewport">
<div class="ag-body-vertical-scroll-container" ref="eContainer"></div>
</div>
</div>`, OC([
b
], t.prototype, "postConstruct", null), t;
}(Ul)
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var bC = function(n, t) {
var e = typeof Symbol == "function" && n[Symbol.iterator];
if (!e)
return n;
var r = e.call(n), o, i = [], s;
try {
for (; (t === void 0 || t-- > 0) && !(o = r.next()).done; )
i.push(o.value);
} catch (a) {
s = { error: a };
} finally {
try {
o && !o.done && (e = r.return) && e.call(r);
} finally {
if (s)
throw s.error;
}
}
return i;
}, ta = function() {
for (var n = [], t = 0; t < arguments.length; t++)
n = n.concat(bC(arguments[t]));
return n;
}, zl = (
/** @class */
function() {
function n(t, e, r) {
if (!e) {
console.error("AG Grid: no gridOptions provided to the grid");
return;
}
this.gridOptions = e, new PC().create(t, e, function(o) {
var i = new sy(t);
o.createBean(i);
}, void 0, r);
}
return n.prototype.destroy = function() {
this.gridOptions && this.gridOptions.api && this.gridOptions.api.destroy();
}, n;
}()
), PC = (
/** @class */
function() {
function n() {
}
return n.prototype.create = function(t, e, r, o, i) {
var s = this, a = !!e.debug, l = this.getRegisteredModules(i), u = this.createBeansList(e.rowModelType, l), c = this.createProvidedBeans(t, e, i);
if (u) {
var p = {
providedBeanInstances: c,
beanClasses: u,
debug: a
}, d = new Rn("AG Grid", function() {
return e.debug;
}), f = new Rn("Context", function() {
return p.debug;
}), g = new du(p, f), y = g.getBean("beans");
this.registerModuleUserComponents(y, l), this.registerStackComponents(y, l), this.registerControllers(y, l), r(g), y.ctrlsService.whenReady(function() {
s.setColumnsAndData(y), s.dispatchGridReadyEvent(y);
var C = N.isRegistered(F.EnterpriseCoreModule);
d.log("initialised successfully, enterprise = " + C);
}), o && o(g);
}
}, n.prototype.registerControllers = function(t, e) {
e.forEach(function(r) {
r.controllers && r.controllers.forEach(function(o) {
return t.ctrlsFactory.register(o);
});
});
}, n.prototype.registerStackComponents = function(t, e) {
var r = this.createAgStackComponentsList(e);
t.agStackComponentsRegistry.setupComponents(r);
}, n.prototype.getRegisteredModules = function(t) {
var e = t ? t.modules : null, r = N.getRegisteredModules(), o = [], i = {};
function s(a, l) {
function u(c) {
i[c.moduleName] || (i[c.moduleName] = !0, o.push(c), N.register(c, a));
}
u(l), l.dependantModules && l.dependantModules.forEach(s.bind(null, a));
}
return e && e.forEach(s.bind(null, !0)), r && r.forEach(s.bind(null, !N.isPackageBased())), o;
}, n.prototype.registerModuleUserComponents = function(t, e) {
var r = this.extractModuleEntity(e, function(o) {
return o.userComponents ? o.userComponents : [];
});
r.forEach(function(o) {
t.userComponentRegistry.registerDefaultComponent(o.componentName, o.componentClass);
});
}, n.prototype.createProvidedBeans = function(t, e, r) {
var o = r ? r.frameworkOverrides : null;
x(o) && (o = new Mg());
var i = {
gridOptions: e,
eGridDiv: t,
globalEventListener: r ? r.globalEventListener : null,
frameworkOverrides: o
};
return r && r.providedBeanInstances && Object.assign(i, r.providedBeanInstances), i;
}, n.prototype.createAgStackComponentsList = function(t) {
var e = [
{ componentName: "AgCheckbox", componentClass: Gr },
{ componentName: "AgRadioButton", componentClass: wl },
{ componentName: "AgToggleButton", componentClass: Jv },
{ componentName: "AgInputTextField", componentClass: sr },
{ componentName: "AgInputTextArea", componentClass: eg },
{ componentName: "AgInputNumberField", componentClass: es },
{ componentName: "AgInputRange", componentClass: rg },
{ componentName: "AgSelect", componentClass: xo },
{ componentName: "AgSlider", componentClass: ig },
{ componentName: "AgGridBody", componentClass: nf },
{ componentName: "AgHeaderRoot", componentClass: fv },
{ componentName: "AgSortIndicator", componentClass: rs },
{ componentName: "AgPagination", componentClass: Hy },
{ componentName: "AgOverlayWrapper", componentClass: By },
{ componentName: "AgGroupComponent", componentClass: sg },
{ componentName: "AgPanel", componentClass: kl },
{ componentName: "AgDialog", componentClass: Sg },
{ componentName: "AgRowContainer", componentClass: Sf },
{ componentName: "AgFakeHorizontalScroll", componentClass: dC },
{ componentName: "AgFakeVerticalScroll", componentClass: TC }
], r = this.extractModuleEntity(t, function(o) {
return o.agStackComponents ? o.agStackComponents : [];
});
return e = e.concat(r), e;
}, n.prototype.createBeansList = function(t, e) {
t === void 0 && (t = "clientSide");
var r = e.filter(function(l) {
return !l.rowModel || l.rowModel === t;
}), o = {
clientSide: F.ClientSideRowModelModule,
infinite: F.InfiniteRowModelModule,
serverSide: F.ServerSideRowModelModule,
viewport: F.ViewportRowModelModule
};
if (!o[t]) {
console.error("AG Grid: could not find row model for rowModelType = " + t);
return;
}
if (N.assertRegistered(o[t], "rowModelType = '" + t + "'")) {
var i = [
Vl,
jy,
zy,
Jy,
vy,
xd,
vd,
Ey,
Ry,
_v,
Ld,
Iy,
gv,
_C,
Nu,
jv,
Id,
ic,
wt,
wC,
Dg,
Ug,
Gd,
Ju,
uv,
Yv,
Gv,
Qg,
Au,
Zg,
Bg,
pf,
yy,
$g,
ry,
tc,
bv,
Cv,
pe,
zg,
Fr,
uf,
Fy,
Gg,
Bv,
Qv,
af,
ly,
py,
hy,
Ny,
Bu,
wy,
Ov,
Qy,
ac,
eC,
tC,
Kv,
oC,
sC,
fC,
gC,
uC
], s = this.extractModuleEntity(r, function(l) {
return l.beans ? l.beans : [];
});
i.push.apply(i, ta(s));
var a = [];
return i.forEach(function(l) {
a.indexOf(l) < 0 && a.push(l);
}), a;
}
}, n.prototype.extractModuleEntity = function(t, e) {
return [].concat.apply([], ta(t.map(e)));
}, n.prototype.setColumnsAndData = function(t) {
var e = t.gridOptionsService.get("columnDefs");
t.columnModel.setColumnDefs(e || [], "gridInitializing"), t.rowModel.start();
}, n.prototype.dispatchGridReadyEvent = function(t) {
var e = {
type: v.EVENT_GRID_READY
};
t.eventService.dispatchEvent(e);
}, n;
}()
);
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var ra;
(function(n) {
n.InsideBase = "insideBase", n.InsideEnd = "insideEnd", n.Center = "center", n.OutsideEnd = "outsideEnd";
})(ra || (ra = {}));
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.3.5
* @link https://www.ag-grid.com/
* @license MIT
*/
var ar = typeof global > "u" ? {} : global;
ar.HTMLElement = typeof HTMLElement > "u" ? {} : HTMLElement;
ar.HTMLButtonElement = typeof HTMLButtonElement > "u" ? {} : HTMLButtonElement;
ar.HTMLSelectElement = typeof HTMLSelectElement > "u" ? {} : HTMLSelectElement;
ar.HTMLInputElement = typeof HTMLInputElement > "u" ? {} : HTMLInputElement;
ar.Node = typeof Node > "u" ? {} : Node;
ar.MouseEvent = typeof MouseEvent > "u" ? {} : MouseEvent;
var DC = function(n, t) {
var e = typeof Symbol == "function" && n[Symbol.iterator];
if (!e)
return n;
var r = e.call(n), o, i = [], s;
try {
for (; (t === void 0 || t-- > 0) && !(o = r.next()).done; )
i.push(o.value);
} catch (a) {
s = { error: a };
} finally {
try {
o && !o.done && (e = r.return) && e.call(r);
} finally {
if (s)
throw s.error;
}
}
return i;
}, oa = function() {
for (var n = [], t = 0; t < arguments.length; t++)
n = n.concat(DC(arguments[t]));
return n;
}, AC = (
/** @class */
function() {
function n(t, e, r, o, i, s) {
this.nextId = 0, this.allNodesMap = {}, this.rootNode = t, this.gridOptionsService = e, this.eventService = r, this.columnModel = o, this.beans = s, this.selectionService = i, this.rootNode.group = !0, this.rootNode.level = -1, this.rootNode.id = n.ROOT_NODE_ID, this.rootNode.allLeafChildren = [], this.rootNode.childrenAfterGroup = [], this.rootNode.childrenAfterSort = [], this.rootNode.childrenAfterAggFilter = [], this.rootNode.childrenAfterFilter = [], this.postConstruct();
}
return n.prototype.postConstruct = function() {
this.suppressParentsInRowNodes = this.gridOptionsService.is("suppressParentsInRowNodes"), this.isRowMasterFunc = this.gridOptionsService.get("isRowMaster"), this.doingTreeData = this.gridOptionsService.isTreeData(), this.doingMasterDetail = this.gridOptionsService.isMasterDetail();
}, n.prototype.getCopyOfNodesMap = function() {
return G.cloneObject(this.allNodesMap);
}, n.prototype.getRowNode = function(t) {
return this.allNodesMap[t];
}, n.prototype.setRowData = function(t) {
var e = this;
if (typeof t == "string") {
console.warn("AG Grid: rowData must be an array, however you passed in a string. If you are loading JSON, make sure you convert the JSON string to JavaScript objects first");
return;
}
var r = this.rootNode, o = this.rootNode.sibling;
r.childrenAfterFilter = null, r.childrenAfterGroup = null, r.childrenAfterAggFilter = null, r.childrenAfterSort = null, r.childrenMapped = null, r.updateHasChildren(), this.nextId = 0, this.allNodesMap = {}, t ? r.allLeafChildren = t.map(function(i) {
return e.createNode(i, e.rootNode, n.TOP_LEVEL);
}) : (r.allLeafChildren = [], r.childrenAfterGroup = []), o && (o.childrenAfterFilter = r.childrenAfterFilter, o.childrenAfterGroup = r.childrenAfterGroup, o.childrenAfterAggFilter = r.childrenAfterAggFilter, o.childrenAfterSort = r.childrenAfterSort, o.childrenMapped = r.childrenMapped, o.allLeafChildren = r.allLeafChildren);
}, n.prototype.updateRowData = function(t, e) {
var r = {
remove: [],
update: [],
add: []
}, o = [];
return this.executeRemove(t, r, o), this.executeUpdate(t, r, o), this.executeAdd(t, r), this.updateSelection(o, "rowDataChanged"), e && G.sortRowNodesByOrder(this.rootNode.allLeafChildren, e), r;
}, n.prototype.updateSelection = function(t, e) {
var r = t.length > 0;
if (r && t.forEach(function(i) {
i.setSelected(!1, !1, !0, e);
}), this.selectionService.updateGroupsFromChildrenSelections(e), r) {
var o = {
type: v.EVENT_SELECTION_CHANGED,
source: e
};
this.eventService.dispatchEvent(o);
}
}, n.prototype.executeAdd = function(t, e) {
var r = this, o, i = t.add, s = t.addIndex;
if (!G.missingOrEmpty(i)) {
var a = i.map(function(g) {
return r.createNode(g, r.rootNode, n.TOP_LEVEL);
});
if (typeof s == "number" && s >= 0) {
var l = this.rootNode.allLeafChildren, u = l.length, c = s;
if (this.doingTreeData && s > 0 && u > 0) {
for (var p = 0; p < u; p++)
if (((o = l[p]) === null || o === void 0 ? void 0 : o.rowIndex) == s - 1) {
c = p + 1;
break;
}
}
var d = l.slice(0, c), f = l.slice(c, l.length);
this.rootNode.allLeafChildren = oa(d, a, f);
} else
this.rootNode.allLeafChildren = oa(this.rootNode.allLeafChildren, a);
this.rootNode.sibling && (this.rootNode.sibling.allLeafChildren = this.rootNode.allLeafChildren), e.add = a;
}
}, n.prototype.executeRemove = function(t, e, r) {
var o = this, i = t.remove;
if (!G.missingOrEmpty(i)) {
var s = {};
i.forEach(function(a) {
var l = o.lookupRowNode(a);
l && (l.isSelected() && r.push(l), l.clearRowTopAndRowIndex(), s[l.id] = !0, delete o.allNodesMap[l.id], e.remove.push(l));
}), this.rootNode.allLeafChildren = this.rootNode.allLeafChildren.filter(function(a) {
return !s[a.id];
}), this.rootNode.sibling && (this.rootNode.sibling.allLeafChildren = this.rootNode.allLeafChildren);
}
}, n.prototype.executeUpdate = function(t, e, r) {
var o = this, i = t.update;
G.missingOrEmpty(i) || i.forEach(function(s) {
var a = o.lookupRowNode(s);
a && (a.updateData(s), !a.selectable && a.isSelected() && r.push(a), o.setMasterForRow(a, s, n.TOP_LEVEL, !1), e.update.push(a));
});
}, n.prototype.lookupRowNode = function(t) {
var e = this.gridOptionsService.getRowIdFunc(), r;
if (e) {
var o = e({ data: t, level: 0 });
if (r = this.allNodesMap[o], !r)
return console.error("AG Grid: could not find row id=" + o + ", data item was not found for this id"), null;
} else if (r = this.rootNode.allLeafChildren.find(function(i) {
return i.data === t;
}), !r)
return console.error("AG Grid: could not find data item as object was not found", t), console.error("Consider using getRowId to help the Grid find matching row data"), null;
return r || null;
}, n.prototype.createNode = function(t, e, r) {
var o = new j(this.beans);
return o.group = !1, this.setMasterForRow(o, t, r, !0), e && !this.suppressParentsInRowNodes && (o.parent = e), o.level = r, o.setDataAndId(t, this.nextId.toString()), this.allNodesMap[o.id] && console.warn("AG Grid: duplicate node id '" + o.id + "' detected from getRowId callback, this could cause issues in your grid."), this.allNodesMap[o.id] = o, this.nextId++, o;
}, n.prototype.setMasterForRow = function(t, e, r, o) {
if (this.doingTreeData)
t.setMaster(!1), o && (t.expanded = !1);
else if (this.doingMasterDetail ? this.isRowMasterFunc ? t.setMaster(this.isRowMasterFunc(e)) : t.setMaster(!0) : t.setMaster(!1), o) {
var i = this.columnModel.getRowGroupColumns(), s = i ? i.length : 0, a = r + s;
t.expanded = t.master ? this.isExpanded(a) : !1;
}
}, n.prototype.isExpanded = function(t) {
var e = this.gridOptionsService.getNum("groupDefaultExpanded");
return e === -1 ? !0 : t < e;
}, n.TOP_LEVEL = 0, n.ROOT_NODE_ID = "ROOT_NODE_ID", n;
}()
), FC = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Ee = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, LC = function(n, t) {
var e = typeof Symbol == "function" && n[Symbol.iterator];
if (!e)
return n;
var r = e.call(n), o, i = [], s;
try {
for (; (t === void 0 || t-- > 0) && !(o = r.next()).done; )
i.push(o.value);
} catch (a) {
s = { error: a };
} finally {
try {
o && !o.done && (e = r.return) && e.call(r);
} finally {
if (s)
throw s.error;
}
}
return i;
}, Co = function() {
for (var n = [], t = 0; t < arguments.length; t++)
n = n.concat(LC(arguments[t]));
return n;
}, Ye;
(function(n) {
n[n.Normal = 0] = "Normal", n[n.AfterFilter = 1] = "AfterFilter", n[n.AfterFilterAndSort = 2] = "AfterFilterAndSort", n[n.PivotNodes = 3] = "PivotNodes";
})(Ye || (Ye = {}));
var MC = (
/** @class */
function(n) {
FC(t, n);
function t() {
var e = n !== null && n.apply(this, arguments) || this;
return e.onRowHeightChanged_debounced = G.debounce(e.onRowHeightChanged.bind(e), 100), e.rowsToDisplay = [], e;
}
return t.prototype.init = function() {
var e = this.refreshModel.bind(this, { step: $.EVERYTHING }), r = !this.gridOptionsService.is("suppressAnimationFrame"), o = this.refreshModel.bind(this, {
step: $.EVERYTHING,
afterColumnsChanged: !0,
keepRenderedRows: !0,
animate: r
});
this.addManagedListener(this.eventService, v.EVENT_NEW_COLUMNS_LOADED, o), this.addManagedListener(this.eventService, v.EVENT_COLUMN_ROW_GROUP_CHANGED, e), this.addManagedListener(this.eventService, v.EVENT_COLUMN_VALUE_CHANGED, this.onValueChanged.bind(this)), this.addManagedListener(this.eventService, v.EVENT_COLUMN_PIVOT_CHANGED, this.refreshModel.bind(this, { step: $.PIVOT })), this.addManagedListener(this.eventService, v.EVENT_FILTER_CHANGED, this.onFilterChanged.bind(this)), this.addManagedListener(this.eventService, v.EVENT_SORT_CHANGED, this.onSortChanged.bind(this)), this.addManagedListener(this.eventService, v.EVENT_COLUMN_PIVOT_MODE_CHANGED, e), this.addManagedListener(this.eventService, v.EVENT_GRID_STYLES_CHANGED, this.onGridStylesChanges.bind(this));
var i = this.refreshModel.bind(this, {
step: $.MAP,
keepRenderedRows: !0,
animate: r
});
this.addManagedPropertyListener("groupRemoveSingleChildren", i), this.addManagedPropertyListener("groupRemoveLowestSingleChildren", i), this.rootNode = new j(this.beans), this.nodeManager = new AC(this.rootNode, this.gridOptionsService, this.eventService, this.columnModel, this.selectionService, this.beans);
}, t.prototype.start = function() {
var e = this.gridOptionsService.get("rowData");
e && this.setRowData(e);
}, t.prototype.ensureRowHeightsValid = function(e, r, o, i) {
var s, a = !1;
do {
s = !1;
for (var l = this.getRowIndexAtPixel(e), u = this.getRowIndexAtPixel(r), c = Math.max(l, o), p = Math.min(u, i), d = c; d <= p; d++) {
var f = this.getRow(d);
if (f.rowHeightEstimated) {
var g = this.gridOptionsService.getRowHeightForNode(f);
f.setRowHeight(g.height), s = !0, a = !0;
}
}
s && this.setRowTopAndRowIndex();
} while (s);
return a;
}, t.prototype.setRowTopAndRowIndex = function() {
for (var e = this.environment.getDefaultRowHeight(), r = 0, o = /* @__PURE__ */ new Set(), i = this.gridOptionsService.isDomLayout("normal"), s = 0; s < this.rowsToDisplay.length; s++) {
var a = this.rowsToDisplay[s];
if (a.id != null && o.add(a.id), a.rowHeight == null) {
var l = this.gridOptionsService.getRowHeightForNode(a, i, e);
a.setRowHeight(l.height, l.estimated);
}
a.setRowTop(r), a.setRowIndex(s), r += a.rowHeight;
}
return o;
}, t.prototype.clearRowTopAndRowIndex = function(e, r) {
var o = e.isActive(), i = function(a) {
a && a.id != null && !r.has(a.id) && a.clearRowTopAndRowIndex();
}, s = function(a) {
if (i(a), i(a.detailNode), i(a.sibling), a.hasChildren() && a.childrenAfterGroup) {
var l = a.level == -1, u = o && !l && !a.expanded;
u || a.childrenAfterGroup.forEach(s);
}
};
s(this.rootNode);
}, t.prototype.ensureRowsAtPixel = function(e, r, o) {
var i = this;
o === void 0 && (o = 0);
var s = this.getRowIndexAtPixel(r), a = this.getRow(s), l = !this.gridOptionsService.is("suppressAnimationFrame");
return a === e[0] ? !1 : (e.forEach(function(u) {
G.removeFromArray(i.rootNode.allLeafChildren, u);
}), e.forEach(function(u, c) {
G.insertIntoArray(i.rootNode.allLeafChildren, u, Math.max(s + o, 0) + c);
}), this.refreshModel({
step: $.EVERYTHING,
keepRenderedRows: !0,
keepEditingRows: !0,
animate: l
}), !0);
}, t.prototype.highlightRowAtPixel = function(e, r) {
var o = r != null ? this.getRowIndexAtPixel(r) : null, i = o != null ? this.getRow(o) : null;
if (!i || !e || i === e || r == null) {
this.lastHighlightedRow && (this.lastHighlightedRow.setHighlighted(null), this.lastHighlightedRow = null);
return;
}
var s = this.getHighlightPosition(r, i);
this.lastHighlightedRow && this.lastHighlightedRow !== i && (this.lastHighlightedRow.setHighlighted(null), this.lastHighlightedRow = null), i.setHighlighted(s), this.lastHighlightedRow = i;
}, t.prototype.getHighlightPosition = function(e, r) {
if (!r) {
var o = this.getRowIndexAtPixel(e);
if (r = this.getRow(o || 0), !r)
return at.Below;
}
var i = r.rowTop, s = r.rowHeight;
return e - i < s / 2 ? at.Above : at.Below;
}, t.prototype.getLastHighlightedRowNode = function() {
return this.lastHighlightedRow;
}, t.prototype.isLastRowIndexKnown = function() {
return !0;
}, t.prototype.getRowCount = function() {
return this.rowsToDisplay ? this.rowsToDisplay.length : 0;
}, t.prototype.getTopLevelRowCount = function() {
var e = this.rowsToDisplay && this.rowsToDisplay[0] === this.rootNode;
if (e)
return 1;
var r = this.rootNode.childrenAfterAggFilter;
return r ? r.length : 0;
}, t.prototype.getTopLevelRowDisplayedIndex = function(e) {
var r = this.rowsToDisplay && this.rowsToDisplay[0] === this.rootNode;
if (r)
return e;
var o = this.rootNode.childrenAfterSort[e];
if (this.gridOptionsService.is("groupHideOpenParents"))
for (; o.expanded && o.childrenAfterSort && o.childrenAfterSort.length > 0; )
o = o.childrenAfterSort[0];
return o.rowIndex;
}, t.prototype.getRowBounds = function(e) {
if (G.missing(this.rowsToDisplay))
return null;
var r = this.rowsToDisplay[e];
return r ? {
rowTop: r.rowTop,
rowHeight: r.rowHeight
} : null;
}, t.prototype.onRowGroupOpened = function() {
var e = this.gridOptionsService.isAnimateRows();
this.refreshModel({ step: $.MAP, keepRenderedRows: !0, animate: e });
}, t.prototype.onFilterChanged = function(e) {
if (!e.afterDataChange) {
var r = this.gridOptionsService.isAnimateRows(), o = e.columns.length === 0 || e.columns.some(function(s) {
return s.isPrimary();
}), i = o ? $.FILTER : $.FILTER_AGGREGATES;
this.refreshModel({ step: i, keepRenderedRows: !0, animate: r });
}
}, t.prototype.onSortChanged = function() {
var e = this.gridOptionsService.isAnimateRows();
this.refreshModel({ step: $.SORT, keepRenderedRows: !0, animate: e, keepEditingRows: !0 });
}, t.prototype.getType = function() {
return "clientSide";
}, t.prototype.onValueChanged = function() {
this.columnModel.isPivotActive() ? this.refreshModel({ step: $.PIVOT }) : this.refreshModel({ step: $.AGGREGATE });
}, t.prototype.createChangePath = function(e) {
var r = G.missingOrEmpty(e), o = new us(!1, this.rootNode);
return (r || this.gridOptionsService.isTreeData()) && o.setInactive(), o;
}, t.prototype.isSuppressModelUpdateAfterUpdateTransaction = function(e) {
if (!this.gridOptionsService.is("suppressModelUpdateAfterUpdateTransaction") || e.rowNodeTransactions == null)
return !1;
var r = e.rowNodeTransactions.filter(function(i) {
return i.add != null && i.add.length > 0 || i.remove != null && i.remove.length > 0;
}), o = r == null || r.length == 0;
return o;
}, t.prototype.buildRefreshModelParams = function(e) {
var r = $.EVERYTHING, o = {
everything: $.EVERYTHING,
group: $.EVERYTHING,
filter: $.FILTER,
map: $.MAP,
aggregate: $.AGGREGATE,
sort: $.SORT,
pivot: $.PIVOT
};
if (G.exists(e) && (r = o[e]), G.missing(r)) {
console.error("AG Grid: invalid step " + e + ", available steps are " + Object.keys(o).join(", "));
return;
}
var i = !this.gridOptionsService.is("suppressAnimationFrame"), s = {
step: r,
keepRenderedRows: !0,
keepEditingRows: !0,
animate: i
};
return s;
}, t.prototype.refreshModel = function(e) {
var r = typeof e == "object" && "step" in e ? e : this.buildRefreshModelParams(e);
if (r && !this.isSuppressModelUpdateAfterUpdateTransaction(r)) {
var o = this.createChangePath(r.rowNodeTransactions);
switch (r.step) {
case $.EVERYTHING:
this.doRowGrouping(r.groupState, r.rowNodeTransactions, r.rowNodeOrder, o, !!r.afterColumnsChanged);
case $.FILTER:
this.doFilter(o);
case $.PIVOT:
this.doPivot(o);
case $.AGGREGATE:
this.doAggregate(o);
case $.FILTER_AGGREGATES:
this.doFilterAggregates(o);
case $.SORT:
this.doSort(r.rowNodeTransactions, o);
case $.MAP:
this.doRowsToDisplay();
}
var i = this.setRowTopAndRowIndex();
this.clearRowTopAndRowIndex(o, i);
var s = {
type: v.EVENT_MODEL_UPDATED,
animate: r.animate,
keepRenderedRows: r.keepRenderedRows,
newData: r.newData,
newPage: !1,
keepUndoRedoStack: r.keepUndoRedoStack
};
this.eventService.dispatchEvent(s);
}
}, t.prototype.isEmpty = function() {
var e = G.missing(this.rootNode.allLeafChildren) || this.rootNode.allLeafChildren.length === 0;
return G.missing(this.rootNode) || e || !this.columnModel.isReady();
}, t.prototype.isRowsToRender = function() {
return G.exists(this.rowsToDisplay) && this.rowsToDisplay.length > 0;
}, t.prototype.getNodesInRangeForSelection = function(e, r) {
var o = !r, i = !1, s, a = [], l = this.gridOptionsService.is("groupSelectsChildren");
return this.forEachNodeAfterFilterAndSort(function(u) {
var c = o && !i;
o || (u === r || u === e) && (o = !0);
var p = u.group && l;
if (!p) {
var d = o && !i, f = u.isParentOfNode(s);
(d || f) && a.push(u);
}
c && (u === r || u === e) && (i = !0, u === r ? s = r : s = e);
}), a;
}, t.prototype.setDatasource = function(e) {
console.error("AG Grid: should never call setDatasource on clientSideRowController");
}, t.prototype.getTopLevelNodes = function() {
return this.rootNode ? this.rootNode.childrenAfterGroup : null;
}, t.prototype.getRootNode = function() {
return this.rootNode;
}, t.prototype.getRow = function(e) {
return this.rowsToDisplay[e];
}, t.prototype.isRowPresent = function(e) {
return this.rowsToDisplay.indexOf(e) >= 0;
}, t.prototype.getRowIndexAtPixel = function(e) {
if (this.isEmpty() || this.rowsToDisplay.length === 0)
return -1;
var r = 0, o = this.rowsToDisplay.length - 1;
if (e <= 0)
return 0;
var i = G.last(this.rowsToDisplay);
if (i.rowTop <= e)
return this.rowsToDisplay.length - 1;
for (var s = -1, a = -1; ; ) {
var l = Math.floor((r + o) / 2), u = this.rowsToDisplay[l];
if (this.isRowInPixel(u, e))
return l;
u.rowTop < e ? r = l + 1 : u.rowTop > e && (o = l - 1);
var c = s === r && a === o;
if (c)
return l;
s = r, a = o;
}
}, t.prototype.isRowInPixel = function(e, r) {
var o = e.rowTop, i = e.rowTop + e.rowHeight, s = o <= r && i > r;
return s;
}, t.prototype.forEachLeafNode = function(e) {
this.rootNode.allLeafChildren && this.rootNode.allLeafChildren.forEach(function(r, o) {
return e(r, o);
});
}, t.prototype.forEachNode = function(e, r) {
r === void 0 && (r = !1), this.recursivelyWalkNodesAndCallback({
nodes: Co(this.rootNode.childrenAfterGroup || []),
callback: e,
recursionType: Ye.Normal,
index: 0,
includeFooterNodes: r
});
}, t.prototype.forEachNodeAfterFilter = function(e, r) {
r === void 0 && (r = !1), this.recursivelyWalkNodesAndCallback({
nodes: Co(this.rootNode.childrenAfterAggFilter || []),
callback: e,
recursionType: Ye.AfterFilter,
index: 0,
includeFooterNodes: r
});
}, t.prototype.forEachNodeAfterFilterAndSort = function(e, r) {
r === void 0 && (r = !1), this.recursivelyWalkNodesAndCallback({
nodes: Co(this.rootNode.childrenAfterSort || []),
callback: e,
recursionType: Ye.AfterFilterAndSort,
index: 0,
includeFooterNodes: r
});
}, t.prototype.forEachPivotNode = function(e, r) {
r === void 0 && (r = !1), this.recursivelyWalkNodesAndCallback({
nodes: [this.rootNode],
callback: e,
recursionType: Ye.PivotNodes,
index: 0,
includeFooterNodes: r
});
}, t.prototype.recursivelyWalkNodesAndCallback = function(e) {
var r, o = e.nodes, i = e.callback, s = e.recursionType, a = e.includeFooterNodes, l = e.index, u = o[0];
a && (!((r = u == null ? void 0 : u.parent) === null || r === void 0) && r.sibling) && o.push(u.parent.sibling);
for (var c = 0; c < o.length; c++) {
var p = o[c];
if (i(p, l++), p.hasChildren() && !p.footer) {
var d = null;
switch (s) {
case Ye.Normal:
d = p.childrenAfterGroup;
break;
case Ye.AfterFilter:
d = p.childrenAfterAggFilter;
break;
case Ye.AfterFilterAndSort:
d = p.childrenAfterSort;
break;
case Ye.PivotNodes:
d = p.leafGroup ? null : p.childrenAfterSort;
break;
}
d && (l = this.recursivelyWalkNodesAndCallback({
nodes: Co(d),
callback: i,
recursionType: s,
index: l,
includeFooterNodes: a
}));
}
}
return l;
}, t.prototype.doAggregate = function(e) {
this.aggregationStage && this.aggregationStage.execute({ rowNode: this.rootNode, changedPath: e });
}, t.prototype.doFilterAggregates = function(e) {
this.filterAggregatesStage ? this.filterAggregatesStage.execute({ rowNode: this.rootNode, changedPath: e }) : this.rootNode.childrenAfterAggFilter = this.rootNode.childrenAfterFilter;
}, t.prototype.expandOrCollapseAll = function(e) {
var r = this.gridOptionsService.isTreeData(), o = this.columnModel.isPivotActive(), i = function(l) {
l && l.forEach(function(u) {
var c = function() {
u.expanded = e, i(u.childrenAfterGroup);
};
if (r) {
var p = G.exists(u.childrenAfterGroup);
p && c();
return;
}
if (o) {
var d = !u.leafGroup;
d && c();
return;
}
var f = u.group;
f && c();
});
};
this.rootNode && i(this.rootNode.childrenAfterGroup), this.refreshModel({ step: $.MAP });
var s = e ? "expandAll" : "collapseAll", a = {
type: v.EVENT_EXPAND_COLLAPSE_ALL,
source: s
};
this.eventService.dispatchEvent(a);
}, t.prototype.doSort = function(e, r) {
this.sortStage.execute({
rowNode: this.rootNode,
rowNodeTransactions: e,
changedPath: r
});
}, t.prototype.doRowGrouping = function(e, r, o, i, s) {
if (this.groupStage) {
if (r ? this.groupStage.execute({
rowNode: this.rootNode,
rowNodeTransactions: r,
rowNodeOrder: o,
changedPath: i
}) : (this.groupStage.execute({
rowNode: this.rootNode,
changedPath: i,
afterColumnsChanged: s
}), this.restoreGroupState(e)), this.gridOptionsService.is("groupSelectsChildren")) {
var a = this.selectionService.updateGroupsFromChildrenSelections("rowGroupChanged", i);
if (a) {
var l = {
type: v.EVENT_SELECTION_CHANGED,
source: "rowGroupChanged"
};
this.eventService.dispatchEvent(l);
}
}
} else
this.rootNode.childrenAfterGroup = this.rootNode.allLeafChildren, this.rootNode.sibling && (this.rootNode.sibling.childrenAfterGroup = this.rootNode.childrenAfterGroup), this.rootNode.updateHasChildren();
}, t.prototype.restoreGroupState = function(e) {
e && G.traverseNodesWithKey(this.rootNode.childrenAfterGroup, function(r, o) {
typeof e[o] == "boolean" && (r.expanded = e[o]);
});
}, t.prototype.doFilter = function(e) {
this.filterStage.execute({ rowNode: this.rootNode, changedPath: e });
}, t.prototype.doPivot = function(e) {
this.pivotStage && this.pivotStage.execute({ rowNode: this.rootNode, changedPath: e });
}, t.prototype.getGroupState = function() {
if (!this.rootNode.childrenAfterGroup || !this.gridOptionsService.is("rememberGroupStateWhenNewData"))
return null;
var e = {};
return G.traverseNodesWithKey(this.rootNode.childrenAfterGroup, function(r, o) {
return e[o] = r.expanded;
}), e;
}, t.prototype.getCopyOfNodesMap = function() {
return this.nodeManager.getCopyOfNodesMap();
}, t.prototype.getRowNode = function(e) {
var r = typeof e == "string" && e.indexOf(j.ID_PREFIX_ROW_GROUP) == 0;
if (r) {
var o = void 0;
return this.forEachNode(function(i) {
i.id === e && (o = i);
}), o;
}
return this.nodeManager.getRowNode(e);
}, t.prototype.setRowData = function(e) {
var r = this.getGroupState();
this.nodeManager.setRowData(e), this.selectionService.reset(), this.filterManager.onNewRowsLoaded("rowDataUpdated");
var o = {
type: v.EVENT_ROW_DATA_UPDATED
};
this.eventService.dispatchEvent(o), this.refreshModel({
step: $.EVERYTHING,
groupState: r,
newData: !0
});
}, t.prototype.batchUpdateRowData = function(e, r) {
var o = this;
if (this.applyAsyncTransactionsTimeout == null) {
this.rowDataTransactionBatch = [];
var i = this.gridOptionsService.getAsyncTransactionWaitMillis();
this.applyAsyncTransactionsTimeout = window.setTimeout(function() {
o.executeBatchUpdateRowData();
}, i);
}
this.rowDataTransactionBatch.push({ rowDataTransaction: e, callback: r });
}, t.prototype.flushAsyncTransactions = function() {
this.applyAsyncTransactionsTimeout != null && (clearTimeout(this.applyAsyncTransactionsTimeout), this.executeBatchUpdateRowData());
}, t.prototype.executeBatchUpdateRowData = function() {
var e = this;
this.valueCache.onDataChanged();
var r = [], o = [], i = !1;
if (this.rowDataTransactionBatch && this.rowDataTransactionBatch.forEach(function(a) {
var l = e.nodeManager.updateRowData(a.rowDataTransaction, void 0);
o.push(l), a.callback && r.push(a.callback.bind(null, l)), typeof a.rowDataTransaction.addIndex == "number" && (i = !0);
}), this.commonUpdateRowData(o, void 0, i), r.length > 0 && window.setTimeout(function() {
r.forEach(function(a) {
return a();
});
}, 0), o.length > 0) {
var s = {
type: v.EVENT_ASYNC_TRANSACTIONS_FLUSHED,
results: o
};
this.eventService.dispatchEvent(s);
}
this.rowDataTransactionBatch = null, this.applyAsyncTransactionsTimeout = void 0;
}, t.prototype.updateRowData = function(e, r) {
this.valueCache.onDataChanged();
var o = this.nodeManager.updateRowData(e, r), i = typeof e.addIndex == "number";
return this.commonUpdateRowData([o], r, i), o;
}, t.prototype.createRowNodeOrder = function() {
var e = this.gridOptionsService.is("suppressMaintainUnsortedOrder");
if (!e) {
var r = {};
if (this.rootNode && this.rootNode.allLeafChildren)
for (var o = 0; o < this.rootNode.allLeafChildren.length; o++) {
var i = this.rootNode.allLeafChildren[o];
r[i.id] = o;
}
return r;
}
}, t.prototype.commonUpdateRowData = function(e, r, o) {
var i = !this.gridOptionsService.is("suppressAnimationFrame");
o && (r = this.createRowNodeOrder()), this.refreshModel({
step: $.EVERYTHING,
rowNodeTransactions: e,
rowNodeOrder: r,
keepRenderedRows: !0,
keepEditingRows: !0,
animate: i
}), this.filterManager.onNewRowsLoaded("rowDataUpdated");
var s = {
type: v.EVENT_ROW_DATA_UPDATED
};
this.eventService.dispatchEvent(s);
}, t.prototype.doRowsToDisplay = function() {
this.rowsToDisplay = this.flattenStage.execute({ rowNode: this.rootNode });
}, t.prototype.onRowHeightChanged = function() {
this.refreshModel({ step: $.MAP, keepRenderedRows: !0, keepEditingRows: !0, keepUndoRedoStack: !0 });
}, t.prototype.onRowHeightChangedDebounced = function() {
this.onRowHeightChanged_debounced();
}, t.prototype.resetRowHeights = function() {
var e = this.resetRowHeightsForAllRowNodes();
this.rootNode.setRowHeight(this.rootNode.rowHeight, !0), e && this.onRowHeightChanged();
}, t.prototype.resetRowHeightsForAllRowNodes = function() {
var e = !1;
return this.forEachNode(function(r) {
r.setRowHeight(r.rowHeight, !0);
var o = r.detailNode;
o && o.setRowHeight(o.rowHeight, !0), e = !0;
}), e;
}, t.prototype.onGridStylesChanges = function() {
this.columnModel.isAutoRowHeightActive() || this.resetRowHeights();
}, Ee([
h("columnModel")
], t.prototype, "columnModel", void 0), Ee([
h("selectionService")
], t.prototype, "selectionService", void 0), Ee([
h("filterManager")
], t.prototype, "filterManager", void 0), Ee([
h("valueCache")
], t.prototype, "valueCache", void 0), Ee([
h("beans")
], t.prototype, "beans", void 0), Ee([
h("filterStage")
], t.prototype, "filterStage", void 0), Ee([
h("sortStage")
], t.prototype, "sortStage", void 0), Ee([
h("flattenStage")
], t.prototype, "flattenStage", void 0), Ee([
Y("groupStage")
], t.prototype, "groupStage", void 0), Ee([
Y("aggregationStage")
], t.prototype, "aggregationStage", void 0), Ee([
Y("pivotStage")
], t.prototype, "pivotStage", void 0), Ee([
Y("filterAggregatesStage")
], t.prototype, "filterAggregatesStage", void 0), Ee([
b
], t.prototype, "init", null), t = Ee([
A("rowModel")
], t), t;
}(T)
), IC = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), ia = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, xC = (
/** @class */
function(n) {
IC(t, n);
function t() {
return n !== null && n.apply(this, arguments) || this;
}
return t.prototype.execute = function(e) {
var r = e.changedPath;
this.filterService.filter(r);
}, ia([
h("filterService")
], t.prototype, "filterService", void 0), t = ia([
A("filterStage")
], t), t;
}(T)
), NC = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), mo = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, GC = (
/** @class */
function(n) {
NC(t, n);
function t() {
return n !== null && n.apply(this, arguments) || this;
}
return t.prototype.execute = function(e) {
var r = this, o = this.sortController.getSortOptions(), i = G.exists(o) && o.length > 0, s = i && G.exists(e.rowNodeTransactions) && this.gridOptionsService.is("deltaSort"), a = o.some(function(l) {
return !!r.columnModel.getGroupDisplayColumnForGroup(l.column.getId());
});
this.sortService.sort(o, i, s, e.rowNodeTransactions, e.changedPath, a);
}, mo([
h("sortService")
], t.prototype, "sortService", void 0), mo([
h("sortController")
], t.prototype, "sortController", void 0), mo([
h("columnModel")
], t.prototype, "columnModel", void 0), t = mo([
A("sortStage")
], t), t;
}(T)
), HC = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), rn = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, VC = (
/** @class */
function(n) {
HC(t, n);
function t() {
return n !== null && n.apply(this, arguments) || this;
}
return t.prototype.execute = function(e) {
var r = e.rowNode, o = [], i = { value: 0 }, s = this.columnModel.isPivotMode(), a = s && r.leafGroup, l = a ? [r] : r.childrenAfterSort;
this.recursivelyAddToRowsToDisplay(l, o, i, s, 0);
var u = o.length > 0, c = !a && u && this.gridOptionsService.is("groupIncludeTotalFooter");
return c && (r.createFooter(), this.addRowNodeToRowsToDisplay(r.sibling, o, i, 0)), o;
}, t.prototype.recursivelyAddToRowsToDisplay = function(e, r, o, i, s) {
if (!G.missingOrEmpty(e))
for (var a = this.gridOptionsService.is("groupHideOpenParents"), l = this.gridOptionsService.is("groupRemoveSingleChildren"), u = !l && this.gridOptionsService.is("groupRemoveLowestSingleChildren"), c = 0; c < e.length; c++) {
var p = e[c], d = p.hasChildren(), f = i && !d, g = l && d && p.childrenAfterGroup.length === 1, y = u && d && p.leafGroup && p.childrenAfterGroup.length === 1, C = i && p.leafGroup, m = a && p.expanded && !p.master && !C, w = !f && !m && !g && !y;
if (w && this.addRowNodeToRowsToDisplay(p, r, o, s), !(i && p.leafGroup)) {
if (d) {
var E = g || y;
if (p.expanded || E) {
var R = E ? s : s + 1;
this.recursivelyAddToRowsToDisplay(p.childrenAfterSort, r, o, i, R), this.gridOptionsService.is("groupIncludeFooter") && this.addRowNodeToRowsToDisplay(p.sibling, r, o, s);
}
} else if (p.master && p.expanded) {
var D = this.createDetailNode(p);
this.addRowNodeToRowsToDisplay(D, r, o, s);
}
}
}
}, t.prototype.addRowNodeToRowsToDisplay = function(e, r, o, i) {
var s = this.gridOptionsService.isGroupMultiAutoColumn();
r.push(e), e.setUiLevel(s ? 0 : i);
}, t.prototype.createDetailNode = function(e) {
if (G.exists(e.detailNode))
return e.detailNode;
var r = new j(this.beans);
return r.detail = !0, r.selectable = !1, r.parent = e, G.exists(e.id) && (r.id = "detail_" + e.id), r.data = e.data, r.level = e.level + 1, e.detailNode = r, r;
}, rn([
h("columnModel")
], t.prototype, "columnModel", void 0), rn([
h("beans")
], t.prototype, "beans", void 0), t = rn([
A("flattenStage")
], t), t;
}(T)
), BC = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), wo = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, WC = (
/** @class */
function(n) {
BC(t, n);
function t() {
return n !== null && n.apply(this, arguments) || this;
}
return t.prototype.init = function() {
this.postSortFunc = this.getPostSortFunc();
}, t.prototype.sort = function(e, r, o, i, s, a) {
var l = this, u = this.gridOptionsService.is("groupMaintainOrder"), c = this.columnModel.getAllGridColumns().some(function(g) {
return g.isRowGroupActive();
}), p = {};
o && i && (p = this.calculateDirtyNodes(i));
var d = this.columnModel.isPivotMode(), f = function(g) {
l.pullDownGroupDataForHideOpenParents(g.childrenAfterAggFilter, !0);
var y = d && g.leafGroup, C = u && c && !g.leafGroup && !a;
if (C) {
var m = g.childrenAfterAggFilter.slice(0);
if (g.childrenAfterSort) {
var w = {};
g.childrenAfterSort.forEach(function(R, D) {
w[R.id] = D;
}), m.sort(function(R, D) {
var M, I;
return ((M = w[R.id]) !== null && M !== void 0 ? M : 0) - ((I = w[D.id]) !== null && I !== void 0 ? I : 0);
});
}
g.childrenAfterSort = m;
} else
!r || y ? g.childrenAfterSort = g.childrenAfterAggFilter.slice(0) : o ? g.childrenAfterSort = l.doDeltaSort(g, p, s, e) : g.childrenAfterSort = l.rowNodeSorter.doFullSort(g.childrenAfterAggFilter, e);
if (g.sibling && (g.sibling.childrenAfterSort = g.childrenAfterSort), l.updateChildIndexes(g), l.postSortFunc) {
var E = { nodes: g.childrenAfterSort };
l.postSortFunc(E);
}
};
s && s.forEachChangedNodeDepthFirst(f), this.updateGroupDataForHideOpenParents(s);
}, t.prototype.getPostSortFunc = function() {
var e = this.gridOptionsService.getCallback("postSortRows");
if (e)
return e;
var r = this.gridOptionsService.get("postSort");
if (r)
return function(o) {
return r(o.nodes);
};
}, t.prototype.calculateDirtyNodes = function(e) {
var r = {}, o = function(i) {
i && i.forEach(function(s) {
return r[s.id] = !0;
});
};
return e && e.forEach(function(i) {
o(i.add), o(i.update), o(i.remove);
}), r;
}, t.prototype.doDeltaSort = function(e, r, o, i) {
var s = this, a = e.childrenAfterAggFilter, l = e.childrenAfterSort;
if (!l)
return this.rowNodeSorter.doFullSort(a, i);
var u = {}, c = [];
a.forEach(function(g) {
r[g.id] || !o.canSkip(g) ? c.push(g) : u[g.id] = !0;
});
var p = l.filter(function(g) {
return u[g.id];
}), d = function(g, y) {
return { currentPos: y, rowNode: g };
}, f = c.map(d).sort(function(g, y) {
return s.rowNodeSorter.compareRowNodes(i, g, y);
});
return this.mergeSortedArrays(i, f, p.map(d)).map(function(g) {
var y = g.rowNode;
return y;
});
}, t.prototype.mergeSortedArrays = function(e, r, o) {
for (var i = [], s = 0, a = 0; s < r.length && a < o.length; ) {
var l = this.rowNodeSorter.compareRowNodes(e, r[s], o[a]);
l < 0 ? i.push(r[s++]) : i.push(o[a++]);
}
for (; s < r.length; )
i.push(r[s++]);
for (; a < o.length; )
i.push(o[a++]);
return i;
}, t.prototype.updateChildIndexes = function(e) {
if (!G.missing(e.childrenAfterSort))
for (var r = e.childrenAfterSort, o = 0; o < r.length; o++) {
var i = r[o], s = o === 0, a = o === e.childrenAfterSort.length - 1;
i.setFirstChild(s), i.setLastChild(a), i.setChildIndex(o);
}
}, t.prototype.updateGroupDataForHideOpenParents = function(e) {
var r = this;
if (this.gridOptionsService.is("groupHideOpenParents")) {
if (this.gridOptionsService.isTreeData()) {
var o = "AG Grid: The property hideOpenParents dose not work with Tree Data. This is because Tree Data has values at the group level, it doesn't make sense to hide them (as opposed to Row Grouping, which only has Aggregated Values at the group level).";
return G.doOnce(function() {
return console.warn(o);
}, "sortService.hideOpenParentsWithTreeData"), !1;
}
var i = function(s) {
r.pullDownGroupDataForHideOpenParents(s.childrenAfterSort, !1), s.childrenAfterSort.forEach(function(a) {
a.hasChildren() && i(a);
});
};
e && e.executeFromRootNode(function(s) {
return i(s);
});
}
}, t.prototype.pullDownGroupDataForHideOpenParents = function(e, r) {
var o = this;
!this.gridOptionsService.is("groupHideOpenParents") || G.missing(e) || e.forEach(function(i) {
var s = o.columnModel.getGroupDisplayColumns();
s.forEach(function(a) {
var l = a.getColDef().showRowGroup;
if (typeof l != "string") {
console.error("AG Grid: groupHideOpenParents only works when specifying specific columns for colDef.showRowGroup");
return;
}
var u = l, c = o.columnModel.getPrimaryColumn(u), p = c === i.rowGroupColumn;
if (!p)
if (r)
i.setGroupValue(a.getId(), void 0);
else {
var d = i.getFirstChildOfFirstChild(c);
d && i.setGroupValue(a.getId(), d.key);
}
});
});
}, wo([
h("columnModel")
], t.prototype, "columnModel", void 0), wo([
h("rowNodeSorter")
], t.prototype, "rowNodeSorter", void 0), wo([
b
], t.prototype, "init", null), t = wo([
A("sortService")
], t), t;
}(T)
), jC = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), na = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, kC = (
/** @class */
function(n) {
jC(t, n);
function t() {
return n !== null && n.apply(this, arguments) || this;
}
return t.prototype.filter = function(e) {
var r = this.filterManager.isColumnFilterPresent() || this.filterManager.isQuickFilterPresent() || this.filterManager.isExternalFilterPresent();
this.filterNodes(r, e);
}, t.prototype.filterNodes = function(e, r) {
var o = this, i = function(u, c) {
u.hasChildren() && e && !c ? u.childrenAfterFilter = u.childrenAfterGroup.filter(function(p) {
var d = p.childrenAfterFilter && p.childrenAfterFilter.length > 0, f = p.data && o.filterManager.doesRowPassFilter({ rowNode: p });
return d || f;
}) : u.childrenAfterFilter = u.childrenAfterGroup, u.sibling && (u.sibling.childrenAfterFilter = u.childrenAfterFilter);
};
if (this.doingTreeDataFiltering()) {
var s = function(u, c) {
if (u.childrenAfterGroup)
for (var p = 0; p < u.childrenAfterGroup.length; p++) {
var d = u.childrenAfterGroup[p], f = c || o.filterManager.doesRowPassFilter({ rowNode: d });
d.childrenAfterGroup ? s(u.childrenAfterGroup[p], f) : i(d, f);
}
i(u, c);
}, a = function(u) {
return s(u, !1);
};
r.executeFromRootNode(a);
} else {
var l = function(u) {
return i(u, !1);
};
r.forEachChangedNodeDepthFirst(l, !0);
}
}, t.prototype.doingTreeDataFiltering = function() {
return this.gridOptionsService.isTreeData() && !this.gridOptionsService.is("excludeChildrenWhenTreeDataFiltering");
}, na([
h("filterManager")
], t.prototype, "filterManager", void 0), t = na([
A("filterService")
], t), t;
}(T)
), UC = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), So = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, zC = function(n, t) {
var e = typeof Symbol == "function" && n[Symbol.iterator];
if (!e)
return n;
var r = e.call(n), o, i = [], s;
try {
for (; (t === void 0 || t-- > 0) && !(o = r.next()).done; )
i.push(o.value);
} catch (a) {
s = { error: a };
} finally {
try {
o && !o.done && (e = r.return) && e.call(r);
} finally {
if (s)
throw s.error;
}
}
return i;
}, KC = (
/** @class */
function(n) {
UC(t, n);
function t() {
return n !== null && n.apply(this, arguments) || this;
}
return t.prototype.postConstruct = function() {
this.rowModel.getType() === "clientSide" && (this.clientSideRowModel = this.rowModel);
}, t.prototype.isActive = function() {
var e = this.gridOptionsService.exists("getRowId"), r = this.gridOptionsService.is("immutableData"), o = this.gridOptionsService.is("resetRowDataOnUpdate");
return o ? !1 : e || r;
}, t.prototype.setRowData = function(e) {
var r = this.createTransactionForRowData(e);
if (r) {
var o = zC(r, 2), i = o[0], s = o[1];
this.clientSideRowModel.updateRowData(i, s);
}
}, t.prototype.createTransactionForRowData = function(e) {
if (G.missing(this.clientSideRowModel)) {
console.error("AG Grid: ImmutableService only works with ClientSideRowModel");
return;
}
var r = this.gridOptionsService.getRowIdFunc();
if (r == null) {
console.error("AG Grid: ImmutableService requires getRowId() callback to be implemented, your row data needs IDs!");
return;
}
var o = {
remove: [],
update: [],
add: []
}, i = this.clientSideRowModel.getCopyOfNodesMap(), s = this.gridOptionsService.is("suppressMaintainUnsortedOrder"), a = s ? void 0 : {};
return G.exists(e) && e.forEach(function(l, u) {
var c = r({ data: l, level: 0 }), p = i[c];
if (a && (a[c] = u), p) {
var d = p.data !== l;
d && o.update.push(l), i[c] = void 0;
} else
o.add.push(l);
}), G.iterateObject(i, function(l, u) {
u && o.remove.push(u.data);
}), [o, a];
}, So([
h("rowModel")
], t.prototype, "rowModel", void 0), So([
h("rowRenderer")
], t.prototype, "rowRenderer", void 0), So([
b
], t.prototype, "postConstruct", null), t = So([
A("immutableService")
], t), t;
}(T)
), $C = "29.3.5", YC = {
version: $C,
moduleName: F.ClientSideRowModelModule,
rowModel: "clientSide",
beans: [MC, xC, GC, VC, WC, kC, KC]
}, qC = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), on = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, sa = (
/** @class */
function(n) {
qC(t, n);
function t(e, r, o) {
var i = n.call(this, e) || this;
return i.parentCache = r, i.params = o, i.startRow = e * o.blockSize, i.endRow = i.startRow + o.blockSize, i;
}
return t.prototype.postConstruct = function() {
this.createRowNodes();
}, t.prototype.getBlockStateJson = function() {
return {
id: "" + this.getId(),
state: {
blockNumber: this.getId(),
startRow: this.getStartRow(),
endRow: this.getEndRow(),
pageStatus: this.getState()
}
};
}, t.prototype.setDataAndId = function(e, r, o) {
!e.id && e.alreadyRendered && (e.alreadyRendered = !1), G.exists(r) ? e.setDataAndId(r, o.toString()) : e.setDataAndId(void 0, void 0);
}, t.prototype.loadFromDatasource = function() {
var e = this, r = this.createLoadParams();
if (G.missing(this.params.datasource.getRows)) {
console.warn("AG Grid: datasource is missing getRows method");
return;
}
window.setTimeout(function() {
e.params.datasource.getRows(r);
}, 0);
}, t.prototype.processServerFail = function() {
}, t.prototype.createLoadParams = function() {
var e = {
startRow: this.getStartRow(),
endRow: this.getEndRow(),
successCallback: this.pageLoaded.bind(this, this.getVersion()),
failCallback: this.pageLoadFailed.bind(this, this.getVersion()),
sortModel: this.params.sortModel,
filterModel: this.params.filterModel,
context: this.gridOptionsService.context
};
return e;
}, t.prototype.forEachNode = function(e, r, o) {
var i = this;
this.rowNodes.forEach(function(s, a) {
var l = i.startRow + a;
l < o && e(s, r.next());
});
}, t.prototype.getLastAccessed = function() {
return this.lastAccessed;
}, t.prototype.getRow = function(e, r) {
r === void 0 && (r = !1), r || (this.lastAccessed = this.params.lastAccessedSequence.next());
var o = e - this.startRow;
return this.rowNodes[o];
}, t.prototype.getStartRow = function() {
return this.startRow;
}, t.prototype.getEndRow = function() {
return this.endRow;
}, t.prototype.createRowNodes = function() {
this.rowNodes = [];
for (var e = 0; e < this.params.blockSize; e++) {
var r = this.startRow + e, o = new j(this.beans);
o.setRowHeight(this.params.rowHeight), o.uiLevel = 0, o.setRowIndex(r), o.setRowTop(this.params.rowHeight * r), this.rowNodes.push(o);
}
}, t.prototype.processServerResult = function(e) {
var r = this;
this.rowNodes.forEach(function(i, s) {
var a = e.rowData ? e.rowData[s] : void 0;
r.setDataAndId(i, a, r.startRow + s);
});
var o = e.rowCount != null && e.rowCount >= 0 ? e.rowCount : void 0;
this.parentCache.pageLoaded(this, o);
}, t.prototype.destroyRowNodes = function() {
this.rowNodes.forEach(function(e) {
e.clearRowTopAndRowIndex();
});
}, on([
h("beans")
], t.prototype, "beans", void 0), on([
b
], t.prototype, "postConstruct", null), on([
fe
], t.prototype, "destroyRowNodes", null), t;
}(_n)
), QC = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), Eo = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, XC = function(n, t) {
return function(e, r) {
t(e, r, n);
};
}, JC = (
/** @class */
function(n) {
QC(t, n);
function t(e) {
var r = n.call(this) || this;
return r.lastRowIndexKnown = !1, r.blocks = {}, r.blockCount = 0, r.rowCount = e.initialRowCount, r.params = e, r;
}
return t.prototype.setBeans = function(e) {
this.logger = e.create("InfiniteCache");
}, t.prototype.getRow = function(e, r) {
r === void 0 && (r = !1);
var o = Math.floor(e / this.params.blockSize), i = this.blocks[o];
if (!i) {
if (r)
return;
i = this.createBlock(o);
}
return i.getRow(e);
}, t.prototype.createBlock = function(e) {
var r = this.createBean(new sa(e, this, this.params));
return this.blocks[r.getId()] = r, this.blockCount++, this.purgeBlocksIfNeeded(r), this.params.rowNodeBlockLoader.addBlock(r), r;
}, t.prototype.refreshCache = function() {
var e = this.blockCount == 0;
if (e) {
this.purgeCache();
return;
}
this.getBlocksInOrder().forEach(function(r) {
return r.setStateWaitingToLoad();
}), this.params.rowNodeBlockLoader.checkBlockToLoad();
}, t.prototype.destroyAllBlocks = function() {
var e = this;
this.getBlocksInOrder().forEach(function(r) {
return e.destroyBlock(r);
});
}, t.prototype.getRowCount = function() {
return this.rowCount;
}, t.prototype.isLastRowIndexKnown = function() {
return this.lastRowIndexKnown;
}, t.prototype.pageLoaded = function(e, r) {
this.isAlive() && (this.logger.log("onPageLoaded: page = " + e.getId() + ", lastRow = " + r), this.checkRowCount(e, r), this.onCacheUpdated());
}, t.prototype.purgeBlocksIfNeeded = function(e) {
var r = this, o = this.getBlocksInOrder().filter(function(u) {
return u != e;
}), i = function(u, c) {
return c.getLastAccessed() - u.getLastAccessed();
};
o.sort(i);
var s = this.params.maxBlocksInCache > 0, a = s ? this.params.maxBlocksInCache - 1 : null, l = t.MAX_EMPTY_BLOCKS_TO_KEEP - 1;
o.forEach(function(u, c) {
var p = u.getState() === sa.STATE_WAITING_TO_LOAD && c >= l, d = s ? c >= a : !1;
if (p || d) {
if (r.isBlockCurrentlyDisplayed(u) || r.isBlockFocused(u))
return;
r.removeBlockFromCache(u);
}
});
}, t.prototype.isBlockFocused = function(e) {
var r = this.focusService.getFocusCellToUseAfterRefresh();
if (!r || r.rowPinned != null)
return !1;
var o = e.getStartRow(), i = e.getEndRow(), s = r.rowIndex >= o && r.rowIndex < i;
return s;
}, t.prototype.isBlockCurrentlyDisplayed = function(e) {
var r = e.getStartRow(), o = e.getEndRow() - 1;
return this.rowRenderer.isRangeInRenderedViewport(r, o);
}, t.prototype.removeBlockFromCache = function(e) {
e && this.destroyBlock(e);
}, t.prototype.checkRowCount = function(e, r) {
if (typeof r == "number" && r >= 0)
this.rowCount = r, this.lastRowIndexKnown = !0;
else if (!this.lastRowIndexKnown) {
var o = (e.getId() + 1) * this.params.blockSize, i = o + this.params.overflowSize;
this.rowCount < i && (this.rowCount = i);
}
}, t.prototype.setRowCount = function(e, r) {
this.rowCount = e, G.exists(r) && (this.lastRowIndexKnown = r), this.lastRowIndexKnown || this.rowCount % this.params.blockSize === 0 && this.rowCount++, this.onCacheUpdated();
}, t.prototype.forEachNodeDeep = function(e) {
var r = this, o = new er();
this.getBlocksInOrder().forEach(function(i) {
return i.forEachNode(e, o, r.rowCount);
});
}, t.prototype.getBlocksInOrder = function() {
var e = function(o, i) {
return o.getId() - i.getId();
}, r = G.getAllValuesInObject(this.blocks).sort(e);
return r;
}, t.prototype.destroyBlock = function(e) {
delete this.blocks[e.getId()], this.destroyBean(e), this.blockCount--, this.params.rowNodeBlockLoader.removeBlock(e);
}, t.prototype.onCacheUpdated = function() {
if (this.isAlive()) {
this.destroyAllBlocksPastVirtualRowCount();
var e = {
type: v.EVENT_STORE_UPDATED
};
this.eventService.dispatchEvent(e);
}
}, t.prototype.destroyAllBlocksPastVirtualRowCount = function() {
var e = this, r = [];
this.getBlocksInOrder().forEach(function(o) {
var i = o.getId() * e.params.blockSize;
i >= e.rowCount && r.push(o);
}), r.length > 0 && r.forEach(function(o) {
return e.destroyBlock(o);
});
}, t.prototype.purgeCache = function() {
var e = this;
this.getBlocksInOrder().forEach(function(r) {
return e.removeBlockFromCache(r);
}), this.lastRowIndexKnown = !1, this.rowCount === 0 && (this.rowCount = this.params.initialRowCount), this.onCacheUpdated();
}, t.prototype.getRowNodesInRange = function(e, r) {
var o = this, i = [], s = -1, a = !1, l = new er();
G.missing(e) && (a = !0);
var u = !1;
this.getBlocksInOrder().forEach(function(p) {
if (!u) {
if (a && s + 1 !== p.getId()) {
u = !0;
return;
}
s = p.getId(), p.forEachNode(function(d) {
var f = d === e || d === r;
(a || f) && i.push(d), f && (a = !a);
}, l, o.rowCount);
}
});
var c = u || a;
return c ? [] : i;
}, t.MAX_EMPTY_BLOCKS_TO_KEEP = 2, Eo([
h("rowRenderer")
], t.prototype, "rowRenderer", void 0), Eo([
h("focusService")
], t.prototype, "focusService", void 0), Eo([
XC(0, Ce("loggerFactory"))
], t.prototype, "setBeans", null), Eo([
fe
], t.prototype, "destroyAllBlocks", null), t;
}(T)
), ZC = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), ht = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, em = (
/** @class */
function(n) {
ZC(t, n);
function t() {
return n !== null && n.apply(this, arguments) || this;
}
return t.prototype.getRowBounds = function(e) {
return {
rowHeight: this.rowHeight,
rowTop: this.rowHeight * e
};
}, t.prototype.ensureRowHeightsValid = function(e, r, o, i) {
return !1;
}, t.prototype.init = function() {
var e = this;
this.gridOptionsService.isRowModelType("infinite") && (this.rowHeight = this.gridOptionsService.getRowHeightAsNumber(), this.addEventListeners(), this.addDestroyFunc(function() {
return e.destroyCache();
}), this.verifyProps());
}, t.prototype.verifyProps = function() {
if (this.gridOptionsService.exists("initialGroupOrderComparator") || this.gridOptionsService.exists("defaultGroupOrderComparator")) {
var e = "AG Grid: initialGroupOrderComparator cannot be used with Infinite Row Model. If using Infinite Row Model, then sorting is done on the server side, nothing to do with the client.";
G.doOnce(function() {
return console.warn(e);
}, "IRM.InitialGroupOrderComparator");
}
}, t.prototype.start = function() {
this.setDatasource(this.gridOptionsService.get("datasource"));
}, t.prototype.destroyDatasource = function() {
this.datasource && (this.getContext().destroyBean(this.datasource), this.rowRenderer.datasourceChanged(), this.datasource = null);
}, t.prototype.addEventListeners = function() {
this.addManagedListener(this.eventService, v.EVENT_FILTER_CHANGED, this.onFilterChanged.bind(this)), this.addManagedListener(this.eventService, v.EVENT_SORT_CHANGED, this.onSortChanged.bind(this)), this.addManagedListener(this.eventService, v.EVENT_NEW_COLUMNS_LOADED, this.onColumnEverything.bind(this)), this.addManagedListener(this.eventService, v.EVENT_STORE_UPDATED, this.onCacheUpdated.bind(this));
}, t.prototype.onFilterChanged = function() {
this.reset();
}, t.prototype.onSortChanged = function() {
this.reset();
}, t.prototype.onColumnEverything = function() {
var e;
this.cacheParams ? e = this.isSortModelDifferent() : e = !0, e && this.reset();
}, t.prototype.isSortModelDifferent = function() {
return !G.jsonEquals(this.cacheParams.sortModel, this.sortController.getSortModel());
}, t.prototype.getType = function() {
return "infinite";
}, t.prototype.setDatasource = function(e) {
this.destroyDatasource(), this.datasource = e, e && this.reset();
}, t.prototype.isEmpty = function() {
return !this.infiniteCache;
}, t.prototype.isRowsToRender = function() {
return !!this.infiniteCache;
}, t.prototype.getNodesInRangeForSelection = function(e, r) {
return this.infiniteCache ? this.infiniteCache.getRowNodesInRange(e, r) : [];
}, t.prototype.reset = function() {
if (this.datasource) {
var e = this.gridOptionsService.getRowIdFunc(), r = e != null;
r || this.selectionService.reset(), this.resetCache();
var o = this.createModelUpdatedEvent();
this.eventService.dispatchEvent(o);
}
}, t.prototype.createModelUpdatedEvent = function() {
return {
type: v.EVENT_MODEL_UPDATED,
// not sure if these should all be false - noticed if after implementing,
// maybe they should be true?
newPage: !1,
newData: !1,
keepRenderedRows: !0,
animate: !1
};
}, t.prototype.resetCache = function() {
this.destroyCache(), this.cacheParams = {
// the user provided datasource
datasource: this.datasource,
// sort and filter model
filterModel: this.filterManager.getFilterModel(),
sortModel: this.sortController.getSortModel(),
rowNodeBlockLoader: this.rowNodeBlockLoader,
// properties - this way we take a snapshot of them, so if user changes any, they will be
// used next time we create a new cache, which is generally after a filter or sort change,
// or a new datasource is set
initialRowCount: this.defaultIfInvalid(this.gridOptionsService.getNum("infiniteInitialRowCount"), 1),
maxBlocksInCache: this.gridOptionsService.getNum("maxBlocksInCache"),
rowHeight: this.gridOptionsService.getRowHeightAsNumber(),
// if user doesn't provide overflow, we use default overflow of 1, so user can scroll past
// the current page and request first row of next page
overflowSize: this.defaultIfInvalid(this.gridOptionsService.getNum("cacheOverflowSize"), 1),
// page size needs to be 1 or greater. having it at 1 would be silly, as you would be hitting the
// server for one page at a time. so the default if not specified is 100.
blockSize: this.defaultIfInvalid(this.gridOptionsService.getNum("cacheBlockSize"), 100),
// the cache could create this, however it is also used by the pages, so handy to create it
// here as the settings are also passed to the pages
lastAccessedSequence: new er()
}, this.infiniteCache = this.createBean(new JC(this.cacheParams));
}, t.prototype.defaultIfInvalid = function(e, r) {
return e > 0 ? e : r;
}, t.prototype.destroyCache = function() {
this.infiniteCache && (this.infiniteCache = this.destroyBean(this.infiniteCache));
}, t.prototype.onCacheUpdated = function() {
var e = this.createModelUpdatedEvent();
this.eventService.dispatchEvent(e);
}, t.prototype.getRow = function(e) {
if (this.infiniteCache && !(e >= this.infiniteCache.getRowCount()))
return this.infiniteCache.getRow(e);
}, t.prototype.getRowNode = function(e) {
var r;
return this.forEachNode(function(o) {
o.id === e && (r = o);
}), r;
}, t.prototype.forEachNode = function(e) {
this.infiniteCache && this.infiniteCache.forEachNodeDeep(e);
}, t.prototype.getTopLevelRowCount = function() {
return this.getRowCount();
}, t.prototype.getTopLevelRowDisplayedIndex = function(e) {
return e;
}, t.prototype.getRowIndexAtPixel = function(e) {
if (this.rowHeight !== 0) {
var r = Math.floor(e / this.rowHeight), o = this.getRowCount() - 1;
return r > o ? o : r;
}
return 0;
}, t.prototype.getRowCount = function() {
return this.infiniteCache ? this.infiniteCache.getRowCount() : 0;
}, t.prototype.isRowPresent = function(e) {
var r = this.getRowNode(e.id);
return !!r;
}, t.prototype.refreshCache = function() {
this.infiniteCache && this.infiniteCache.refreshCache();
}, t.prototype.purgeCache = function() {
this.infiniteCache && this.infiniteCache.purgeCache();
}, t.prototype.isLastRowIndexKnown = function() {
return this.infiniteCache ? this.infiniteCache.isLastRowIndexKnown() : !1;
}, t.prototype.setRowCount = function(e, r) {
this.infiniteCache && this.infiniteCache.setRowCount(e, r);
}, ht([
h("filterManager")
], t.prototype, "filterManager", void 0), ht([
h("sortController")
], t.prototype, "sortController", void 0), ht([
h("selectionService")
], t.prototype, "selectionService", void 0), ht([
h("rowRenderer")
], t.prototype, "rowRenderer", void 0), ht([
h("rowNodeBlockLoader")
], t.prototype, "rowNodeBlockLoader", void 0), ht([
b
], t.prototype, "init", null), ht([
fe
], t.prototype, "destroyDatasource", null), t = ht([
A("rowModel")
], t), t;
}(T)
), tm = "29.3.5", rm = {
version: tm,
moduleName: F.InfiniteRowModelModule,
rowModel: "infinite",
beans: [em]
}, om = (
/** @class */
function() {
function n() {
}
return n.prototype.setBeans = function(t) {
this.beans = t;
}, n.prototype.getFileName = function(t) {
var e = this.getDefaultFileExtension();
return (t == null || !t.length) && (t = this.getDefaultFileName()), t.indexOf(".") === -1 ? t + "." + e : t;
}, n.prototype.getData = function(t) {
var e = this.createSerializingSession(t), r = this.beans.gridSerializer.serialize(e, t);
return r;
}, n;
}()
), im = (
/** @class */
function() {
function n(t) {
this.groupColumns = [];
var e = t.columnModel, r = t.valueService, o = t.gridOptionsService, i = t.processCellCallback, s = t.processHeaderCallback, a = t.processGroupHeaderCallback, l = t.processRowGroupCallback;
this.columnModel = e, this.valueService = r, this.gridOptionsService = o, this.processCellCallback = i, this.processHeaderCallback = s, this.processGroupHeaderCallback = a, this.processRowGroupCallback = l;
}
return n.prototype.prepare = function(t) {
this.groupColumns = t.filter(function(e) {
return !!e.getColDef().showRowGroup;
});
}, n.prototype.extractHeaderValue = function(t) {
var e = this.getHeaderName(this.processHeaderCallback, t);
return e ?? "";
}, n.prototype.extractRowCellValue = function(t, e, r, o, i) {
var s = this.gridOptionsService.is("groupHideOpenParents"), a = (!s || i.footer) && this.shouldRenderGroupSummaryCell(i, t, e) ? this.createValueForGroupNode(i) : this.valueService.getValue(t, i), l = this.processCell({
accumulatedRowIndex: r,
rowNode: i,
column: t,
value: a,
processCellCallback: this.processCellCallback,
type: o
});
return l ?? "";
}, n.prototype.shouldRenderGroupSummaryCell = function(t, e, r) {
var o, i = t && t.group;
if (!i)
return !1;
var s = this.groupColumns.indexOf(e);
if (s !== -1) {
if (!((o = t.groupData) === null || o === void 0) && o[e.getId()])
return !0;
if (t.footer && t.level === -1) {
var a = e.getColDef(), l = a == null || a.showRowGroup === !0;
return l || a.showRowGroup === this.columnModel.getRowGroupColumns()[0].getId();
}
}
var u = this.gridOptionsService.isGroupUseEntireRow(this.columnModel.isPivotMode());
return r === 0 && u;
}, n.prototype.getHeaderName = function(t, e) {
return t ? t({
column: e,
api: this.gridOptionsService.api,
columnApi: this.gridOptionsService.columnApi,
context: this.gridOptionsService.context
}) : this.columnModel.getDisplayNameForColumn(e, "csv", !0);
}, n.prototype.createValueForGroupNode = function(t) {
if (this.processRowGroupCallback)
return this.processRowGroupCallback({
node: t,
api: this.gridOptionsService.api,
columnApi: this.gridOptionsService.columnApi,
context: this.gridOptionsService.context
});
var e = t.footer, r = [t.key];
if (!this.gridOptionsService.isGroupMultiAutoColumn())
for (; t.parent; )
t = t.parent, r.push(t.key);
var o = r.reverse().join(" -> ");
return e ? "Total " + o : o;
}, n.prototype.processCell = function(t) {
var e = t.accumulatedRowIndex, r = t.rowNode, o = t.column, i = t.value, s = t.processCellCallback, a = t.type;
return s ? s({
accumulatedRowIndex: e,
column: o,
node: r,
value: i,
api: this.gridOptionsService.api,
columnApi: this.gridOptionsService.columnApi,
context: this.gridOptionsService.context,
type: a
}) : i ?? "";
}, n;
}()
), nm = (
/** @class */
function() {
function n() {
}
return n.download = function(t, e) {
var r = document.defaultView || window;
if (!r) {
console.warn("AG Grid: There is no `window` associated with the current `document`");
return;
}
var o = document.createElement("a"), i = r.URL.createObjectURL(e);
o.setAttribute("href", i), o.setAttribute("download", t), o.style.display = "none", document.body.appendChild(o), o.dispatchEvent(new MouseEvent("click", {
bubbles: !1,
cancelable: !0,
view: r
})), document.body.removeChild(o), r.setTimeout(function() {
r.URL.revokeObjectURL(i);
}, 0);
}, n;
}()
), sm = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), aa = `\r
`, am = (
/** @class */
function(n) {
sm(t, n);
function t(e) {
var r = n.call(this, e) || this;
r.isFirstLine = !0, r.result = "";
var o = e.suppressQuotes, i = e.columnSeparator;
return r.suppressQuotes = o, r.columnSeparator = i, r;
}
return t.prototype.addCustomContent = function(e) {
var r = this;
e && (typeof e == "string" ? (/^\s*\n/.test(e) || this.beginNewLine(), e = e.replace(/\r?\n/g, aa), this.result += e) : e.forEach(function(o) {
r.beginNewLine(), o.forEach(function(i, s) {
s !== 0 && (r.result += r.columnSeparator), r.result += r.putInQuotes(i.data.value || ""), i.mergeAcross && r.appendEmptyCells(i.mergeAcross);
});
}));
}, t.prototype.onNewHeaderGroupingRow = function() {
return this.beginNewLine(), {
onColumn: this.onNewHeaderGroupingRowColumn.bind(this)
};
}, t.prototype.onNewHeaderGroupingRowColumn = function(e, r, o, i) {
o != 0 && (this.result += this.columnSeparator), this.result += this.putInQuotes(r), this.appendEmptyCells(i);
}, t.prototype.appendEmptyCells = function(e) {
for (var r = 1; r <= e; r++)
this.result += this.columnSeparator + this.putInQuotes("");
}, t.prototype.onNewHeaderRow = function() {
return this.beginNewLine(), {
onColumn: this.onNewHeaderRowColumn.bind(this)
};
}, t.prototype.onNewHeaderRowColumn = function(e, r) {
r != 0 && (this.result += this.columnSeparator), this.result += this.putInQuotes(this.extractHeaderValue(e));
}, t.prototype.onNewBodyRow = function() {
return this.beginNewLine(), {
onColumn: this.onNewBodyRowColumn.bind(this)
};
}, t.prototype.onNewBodyRowColumn = function(e, r, o) {
r != 0 && (this.result += this.columnSeparator), this.result += this.putInQuotes(this.extractRowCellValue(e, r, r, "csv", o));
}, t.prototype.putInQuotes = function(e) {
if (this.suppressQuotes)
return e;
if (e == null)
return '""';
var r;
typeof e == "string" ? r = e : typeof e.toString == "function" ? r = e.toString() : (console.warn("AG Grid: unknown value type during csv conversion"), r = "");
var o = r.replace(/"/g, '""');
return '"' + o + '"';
}, t.prototype.parse = function() {
return this.result;
}, t.prototype.beginNewLine = function() {
this.isFirstLine || (this.result += aa), this.isFirstLine = !1;
}, t;
}(im)
), lm = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), jt = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, um = (
/** @class */
function(n) {
lm(t, n);
function t() {
return n !== null && n.apply(this, arguments) || this;
}
return t.prototype.postConstruct = function() {
this.setBeans({
gridSerializer: this.gridSerializer,
gridOptionsService: this.gridOptionsService
});
}, t.prototype.getMergedParams = function(e) {
var r = this.gridOptionsService.get("defaultCsvExportParams");
return Object.assign({}, r, e);
}, t.prototype.export = function(e) {
if (this.isExportSuppressed())
return console.warn("AG Grid: Export cancelled. Export is not allowed as per your configuration."), "";
var r = this.getMergedParams(e), o = this.getData(r), i = new Blob(["\uFEFF", o], { type: "text/plain" });
return nm.download(this.getFileName(r.fileName), i), o;
}, t.prototype.exportDataAsCsv = function(e) {
return this.export(e);
}, t.prototype.getDataAsCsv = function(e, r) {
r === void 0 && (r = !1);
var o = r ? Object.assign({}, e) : this.getMergedParams(e);
return this.getData(o);
}, t.prototype.getDefaultFileName = function() {
return "export.csv";
}, t.prototype.getDefaultFileExtension = function() {
return "csv";
}, t.prototype.createSerializingSession = function(e) {
var r = this, o = r.columnModel, i = r.valueService, s = r.gridOptionsService, a = e, l = a.processCellCallback, u = a.processHeaderCallback, c = a.processGroupHeaderCallback, p = a.processRowGroupCallback, d = a.suppressQuotes, f = a.columnSeparator;
return new am({
columnModel: o,
valueService: i,
gridOptionsService: s,
processCellCallback: l || void 0,
processHeaderCallback: u || void 0,
processGroupHeaderCallback: c || void 0,
processRowGroupCallback: p || void 0,
suppressQuotes: d || !1,
columnSeparator: f || ","
});
}, t.prototype.isExportSuppressed = function() {
return this.gridOptionsService.is("suppressCsvExport");
}, jt([
h("columnModel")
], t.prototype, "columnModel", void 0), jt([
h("valueService")
], t.prototype, "valueService", void 0), jt([
h("gridSerializer")
], t.prototype, "gridSerializer", void 0), jt([
h("gridOptionsService")
], t.prototype, "gridOptionsService", void 0), jt([
b
], t.prototype, "postConstruct", null), t = jt([
A("csvCreator")
], t), t;
}(om)
), cm = function() {
var n = function(t, e) {
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
r.__proto__ = o;
} || function(r, o) {
for (var i in o)
Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
}, n(t, e);
};
return function(t, e) {
n(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
};
}(), ft = function(n, t, e, r) {
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
i = Reflect.decorate(n, t, e, r);
else
for (var a = n.length - 1; a >= 0; a--)
(s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i);
return o > 3 && i && Object.defineProperty(t, e, i), i;
}, la;
(function(n) {
n[n.HEADER_GROUPING = 0] = "HEADER_GROUPING", n[n.HEADER = 1] = "HEADER", n[n.BODY = 2] = "BODY";
})(la || (la = {}));
var pm = (
/** @class */
function(n) {
cm(t, n);
function t() {
return n !== null && n.apply(this, arguments) || this;
}
return t.prototype.serialize = function(e, r) {
r === void 0 && (r = {});
var o = this.getColumnsToExport(r.allColumns, r.columnKeys), i = G.compose(
// first pass, put in the header names of the cols
this.prepareSession(o),
this.prependContent(r),
this.exportColumnGroups(r, o),
this.exportHeaders(r, o),
this.processPinnedTopRows(r, o),
this.processRows(r, o),
this.processPinnedBottomRows(r, o),
this.appendContent(r)
);
return i(e).parse();
}, t.prototype.processRow = function(e, r, o, i) {
var s = r.shouldRowBeSkipped || function() {
return !1;
}, a = this.gridOptionsService.context, l = this.gridOptionsService.api, u = this.gridOptionsService.columnApi, c = this.gridOptionsService.is("groupRemoveSingleChildren"), p = this.gridOptionsService.is("groupRemoveLowestSingleChildren"), d = r.rowPositions != null, f = d || !!r.onlySelected, g = this.gridOptionsService.is("groupHideOpenParents") && !f, y = this.columnModel.isPivotMode() ? i.leafGroup : !i.group, C = !!i.footer, m = r.skipGroups || r.skipRowGroups, w = p && i.leafGroup, E = i.allChildrenCount === 1 && (c || w);
if (m && r.skipGroups && G.doOnce(function() {
return console.warn("AG Grid: Since v25.2 `skipGroups` has been renamed to `skipRowGroups`.");
}, "gridSerializer-skipGroups"), !(!y && !C && (r.skipRowGroups || E || g) || r.onlySelected && !i.isSelected() || r.skipPinnedTop && i.rowPinned === "top" || r.skipPinnedBottom && i.rowPinned === "bottom")) {
var R = i.level === -1;
if (!(R && !y && !C)) {
var D = s({ node: i, api: l, columnApi: u, context: a });
if (!D) {
var M = e.onNewBodyRow();
if (o.forEach(function(L, H) {
M.onColumn(L, H, i);
}), r.getCustomContentBelowRow) {
var I = r.getCustomContentBelowRow({ node: i, api: l, columnApi: u, context: a });
I && e.addCustomContent(I);
}
}
}
}
}, t.prototype.appendContent = function(e) {
return function(r) {
var o = e.customFooter || e.appendContent;
return o && (e.customFooter && G.doOnce(function() {
return console.warn("AG Grid: Since version 25.2.0 the `customFooter` param has been deprecated. Use `appendContent` instead.");
}, "gridSerializer-customFooter"), r.addCustomContent(o)), r;
};
}, t.prototype.prependContent = function(e) {
return function(r) {
var o = e.customHeader || e.prependContent;
return o && (e.customHeader && G.doOnce(function() {
return console.warn("AG Grid: Since version 25.2.0 the `customHeader` param has been deprecated. Use `prependContent` instead.");
}, "gridSerializer-customHeader"), r.addCustomContent(o)), r;
};
}, t.prototype.prepareSession = function(e) {
return function(r) {
return r.prepare(e), r;
};
}, t.prototype.exportColumnGroups = function(e, r) {
var o = this;
return function(i) {
if (e.skipColumnGroupHeaders)
e.columnGroups && G.doOnce(function() {
return console.warn("AG Grid: Since v25.2 the `columnGroups` param has deprecated, and groups are exported by default.");
}, "gridSerializer-columnGroups");
else {
var s = new La(), a = o.displayedGroupCreator.createDisplayedGroups(r, o.columnModel.getGridBalancedTree(), s, null);
o.recursivelyAddHeaderGroups(a, i, e.processGroupHeaderCallback);
}
return i;
};
}, t.prototype.exportHeaders = function(e, r) {
return function(o) {
if (!e.skipHeader && !e.skipColumnHeaders) {
var i = o.onNewHeaderRow();
r.forEach(function(s, a) {
i.onColumn(s, a, void 0);
});
} else
e.skipHeader && G.doOnce(function() {
return console.warn("AG Grid: Since v25.2 the `skipHeader` param has been renamed to `skipColumnHeaders`.");
}, "gridSerializer-skipHeader");
return o;
};
}, t.prototype.processPinnedTopRows = function(e, r) {
var o = this;
return function(i) {
var s = o.processRow.bind(o, i, e, r);
return e.rowPositions ? e.rowPositions.filter(function(a) {
return a.rowPinned === "top";
}).sort(function(a, l) {
return a.rowIndex - l.rowIndex;
}).map(function(a) {
return o.pinnedRowModel.getPinnedTopRow(a.rowIndex);
}).forEach(s) : o.pinnedRowModel.forEachPinnedTopRow(s), i;
};
}, t.prototype.processRows = function(e, r) {
var o = this;
return function(i) {
var s = o.rowModel, a = s.getType(), l = a === "clientSide", u = a === "serverSide", c = !l && e.onlySelected, p = o.processRow.bind(o, i, e, r), d = e.exportedRows, f = d === void 0 ? "filteredAndSorted" : d;
if (e.rowPositions)
e.rowPositions.filter(function(y) {
return y.rowPinned == null;
}).sort(function(y, C) {
return y.rowIndex - C.rowIndex;
}).map(function(y) {
return s.getRow(y.rowIndex);
}).forEach(p);
else if (o.columnModel.isPivotMode())
l ? s.forEachPivotNode(p, !0) : s.forEachNode(p);
else if (e.onlySelectedAllPages || c) {
var g = o.selectionService.getSelectedNodes();
o.replicateSortedOrder(g), g.forEach(p);
} else
f === "all" ? s.forEachNode(p) : l ? s.forEachNodeAfterFilterAndSort(p, !0) : u ? s.forEachNodeAfterFilterAndSort(p) : s.forEachNode(p);
return i;
};
}, t.prototype.replicateSortedOrder = function(e) {
var r = this, o = this.sortController.getSortOptions(), i = function(s, a) {
var l, u, c, p;
return s.rowIndex != null && a.rowIndex != null ? s.rowIndex - a.rowIndex : s.level === a.level ? ((l = s.parent) === null || l === void 0 ? void 0 : l.id) === ((u = a.parent) === null || u === void 0 ? void 0 : u.id) ? r.rowNodeSorter.compareRowNodes(o, {
rowNode: s,
currentPos: (c = s.rowIndex) !== null && c !== void 0 ? c : -1
}, {
rowNode: a,
currentPos: (p = a.rowIndex) !== null && p !== void 0 ? p : -1
}) : i(s.parent, a.parent) : s.level > a.level ? i(s.parent, a) : i(s, a.parent);
};
e.sort(i);
}, t.prototype.processPinnedBottomRows = function(e, r) {
var o = this;
return function(i) {
var s = o.processRow.bind(o, i, e, r);
return e.rowPositions ? e.rowPositions.filter(function(a) {
return a.rowPinned === "bottom";
}).sort(function(a, l) {
return a.rowIndex - l.rowIndex;
}).map(function(a) {
return o.pinnedRowModel.getPinnedBottomRow(a.rowIndex);
}).forEach(s) : o.pinnedRowModel.forEachPinnedBottomRow(s), i;
};
}, t.prototype.getColumnsToExport = function(e, r) {
e === void 0 && (e = !1);
var o = this.columnModel.isPivotMode();
if (r && r.length)
return this.columnModel.getGridColumns(r);
if (e && !o) {
var i = this.gridOptionsService.isTreeData() ? this.columnModel.getGridColumns([Mr]) : [];
return i.concat(this.columnModel.getAllPrimaryColumns() || []);
}
return this.columnModel.getAllDisplayedColumns();
}, t.prototype.recursivelyAddHeaderGroups = function(e, r, o) {
var i = [];
e.forEach(function(s) {
var a = s;
a.getChildren && a.getChildren().forEach(function(l) {
return i.push(l);
});
}), e.length > 0 && e[0] instanceof Oe && this.doAddHeaderHeader(r, e, o), i && i.length > 0 && this.recursivelyAddHeaderGroups(i, r, o);
}, t.prototype.doAddHeaderHeader = function(e, r, o) {
var i = this, s = e.onNewHeaderGroupingRow(), a = 0;
r.forEach(function(l) {
var u = l, c;
o ? c = o({
columnGroup: u,
api: i.gridOptionsService.api,
columnApi: i.gridOptionsService.columnApi,
context: i.gridOptionsService.context
}) : c = i.columnModel.getDisplayNameForColumnGroup(u, "header");
var p = u.getLeafColumns().reduce(function(d, f, g, y) {
var C = G.last(d), m = f.getColumnGroupShow() === "open";
return m ? (!C || C[1] != null) && (C = [g], d.push(C)) : C && C[1] == null && (C[1] = g - 1), g === y.length - 1 && C && C[1] == null && (C[1] = g), d;
}, []);
s.onColumn(u, c || "", a++, u.getLeafColumns().length - 1, p);
});
}, ft([
h("displayedGroupCreator")
], t.prototype, "displayedGroupCreator", void 0), ft([
h("columnModel")
], t.prototype, "columnModel", void 0), ft([
h("rowModel")
], t.prototype, "rowModel", void 0), ft([
h("pinnedRowModel")
], t.prototype, "pinnedRowModel", void 0), ft([
h("selectionService")
], t.prototype, "selectionService", void 0), ft([
h("rowNodeSorter")
], t.prototype, "rowNodeSorter", void 0), ft([
h("sortController")
], t.prototype, "sortController", void 0), t = ft([
A("gridSerializer")
], t), t;
}(T)
), dm = "29.3.5", hm = {
version: dm,
moduleName: F.CsvExportModule,
beans: [um, pm]
}, fm = [YC, rm, hm];
N.registerModules(fm);
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var xe = function() {
return xe = Object.assign || function(t) {
for (var e, r = 1, o = arguments.length; r < o; r++) {
e = arguments[r];
for (var i in e)
Object.prototype.hasOwnProperty.call(e, i) && (t[i] = e[i]);
}
return t;
}, xe.apply(this, arguments);
}, vm = (
/** @class */
function() {
function n(t) {
this.options = t, this.listeners = {};
}
return n.prototype.on = function(t, e) {
var r = this.listeners[t] || [];
this.listeners[t] = r.concat([e]);
}, n.prototype.triggerEvent = function(t, e) {
var r = this, o = this.listeners[t] || [];
o.forEach(function(i) {
return i({ target: r, event: e });
});
}, n;
}()
), ir;
(function(n) {
n[n.Add = 0] = "Add", n[n.Remove = 1] = "Remove";
})(ir || (ir = {}));
var gm = (
/** @class */
function() {
function n() {
this.notifications = [];
}
return n.prototype.push = function(t) {
this.notifications.push(t), this.updateFn(t, ir.Add, this.notifications);
}, n.prototype.splice = function(t, e) {
var r = this.notifications.splice(t, e)[0];
return this.updateFn(r, ir.Remove, this.notifications), r;
}, n.prototype.indexOf = function(t) {
return this.notifications.indexOf(t);
}, n.prototype.onUpdate = function(t) {
this.updateFn = t;
}, n;
}()
), yt;
(function(n) {
n.Dismiss = "dismiss", n.Click = "click";
})(yt || (yt = {}));
var ua = {
types: [
{
type: "success",
className: "notyf__toast--success",
backgroundColor: "#3dc763",
icon: {
className: "notyf__icon--success",
tagName: "i"
}
},
{
type: "error",
className: "notyf__toast--error",
backgroundColor: "#ed3d3d",
icon: {
className: "notyf__icon--error",
tagName: "i"
}
}
],
duration: 2e3,
ripple: !0,
position: {
x: "right",
y: "bottom"
},
dismissible: !1
}, ym = (
/** @class */
function() {
function n() {
this.notifications = [], this.events = {}, this.X_POSITION_FLEX_MAP = {
left: "flex-start",
center: "center",
right: "flex-end"
}, this.Y_POSITION_FLEX_MAP = {
top: "flex-start",
center: "center",
bottom: "flex-end"
};
var t = document.createDocumentFragment(), e = this._createHTMLElement({ tagName: "div", className: "notyf" });
t.appendChild(e), document.body.appendChild(t), this.container = e, this.animationEndEventName = this._getAnimationEndEventName(), this._createA11yContainer();
}
return n.prototype.on = function(t, e) {
var r;
this.events = xe(xe({}, this.events), (r = {}, r[t] = e, r));
}, n.prototype.update = function(t, e) {
e === ir.Add ? this.addNotification(t) : e === ir.Remove && this.removeNotification(t);
}, n.prototype.removeNotification = function(t) {
var e = this, r = this._popRenderedNotification(t), o;
if (r) {
o = r.node, o.classList.add("notyf__toast--disappear");
var i;
o.addEventListener(this.animationEndEventName, i = function(s) {
s.target === o && (o.removeEventListener(e.animationEndEventName, i), e.container.removeChild(o));
});
}
}, n.prototype.addNotification = function(t) {
var e = this._renderNotification(t);
this.notifications.push({ notification: t, node: e }), this._announce(t.options.message || "Notification");
}, n.prototype._renderNotification = function(t) {
var e, r = this._buildNotificationCard(t), o = t.options.className;
return o && (e = r.classList).add.apply(e, o.split(" ")), this.container.appendChild(r), r;
}, n.prototype._popRenderedNotification = function(t) {
for (var e = -1, r = 0; r < this.notifications.length && e < 0; r++)
this.notifications[r].notification === t && (e = r);
if (e !== -1)
return this.notifications.splice(e, 1)[0];
}, n.prototype.getXPosition = function(t) {
var e;
return ((e = t == null ? void 0 : t.position) === null || e === void 0 ? void 0 : e.x) || "right";
}, n.prototype.getYPosition = function(t) {
var e;
return ((e = t == null ? void 0 : t.position) === null || e === void 0 ? void 0 : e.y) || "bottom";
}, n.prototype.adjustContainerAlignment = function(t) {
var e = this.X_POSITION_FLEX_MAP[this.getXPosition(t)], r = this.Y_POSITION_FLEX_MAP[this.getYPosition(t)], o = this.container.style;
o.setProperty("justify-content", r), o.setProperty("align-items", e);
}, n.prototype._buildNotificationCard = function(t) {
var e = this, r = t.options, o = r.icon;
this.adjustContainerAlignment(r);
var i = this._createHTMLElement({ tagName: "div", className: "notyf__toast" }), s = this._createHTMLElement({ tagName: "div", className: "notyf__ripple" }), a = this._createHTMLElement({ tagName: "div", className: "notyf__wrapper" }), l = this._createHTMLElement({ tagName: "div", className: "notyf__message" });
l.innerHTML = r.message || "";
var u = r.background || r.backgroundColor;
if (o) {
var c = this._createHTMLElement({ tagName: "div", className: "notyf__icon" });
if ((typeof o == "string" || o instanceof String) && (c.innerHTML = new String(o).valueOf()), typeof o == "object") {
var p = o.tagName, d = p === void 0 ? "i" : p, f = o.className, g = o.text, y = o.color, C = y === void 0 ? u : y, m = this._createHTMLElement({ tagName: d, className: f, text: g });
C && (m.style.color = C), c.appendChild(m);
}
a.appendChild(c);
}
if (a.appendChild(l), i.appendChild(a), u && (r.ripple ? (s.style.background = u, i.appendChild(s)) : i.style.background = u), r.dismissible) {
var w = this._createHTMLElement({ tagName: "div", className: "notyf__dismiss" }), E = this._createHTMLElement({
tagName: "button",
className: "notyf__dismiss-btn"
});
w.appendChild(E), a.appendChild(w), i.classList.add("notyf__toast--dismissible"), E.addEventListener("click", function(D) {
var M, I;
(I = (M = e.events)[yt.Dismiss]) === null || I === void 0 || I.call(M, { target: t, event: D }), D.stopPropagation();
});
}
i.addEventListener("click", function(D) {
var M, I;
return (I = (M = e.events)[yt.Click]) === null || I === void 0 ? void 0 : I.call(M, { target: t, event: D });
});
var R = this.getYPosition(r) === "top" ? "upper" : "lower";
return i.classList.add("notyf__toast--" + R), i;
}, n.prototype._createHTMLElement = function(t) {
var e = t.tagName, r = t.className, o = t.text, i = document.createElement(e);
return r && (i.className = r), i.textContent = o || null, i;
}, n.prototype._createA11yContainer = function() {
var t = this._createHTMLElement({ tagName: "div", className: "notyf-announcer" });
t.setAttribute("aria-atomic", "true"), t.setAttribute("aria-live", "polite"), t.style.border = "0", t.style.clip = "rect(0 0 0 0)", t.style.height = "1px", t.style.margin = "-1px", t.style.overflow = "hidden", t.style.padding = "0", t.style.position = "absolute", t.style.width = "1px", t.style.outline = "0", document.body.appendChild(t), this.a11yContainer = t;
}, n.prototype._announce = function(t) {
var e = this;
this.a11yContainer.textContent = "", setTimeout(function() {
e.a11yContainer.textContent = t;
}, 100);
}, n.prototype._getAnimationEndEventName = function() {
var t = document.createElement("_fake"), e = {
MozTransition: "animationend",
OTransition: "oAnimationEnd",
WebkitTransition: "webkitAnimationEnd",
transition: "animationend"
}, r;
for (r in e)
if (t.style[r] !== void 0)
return e[r];
return "animationend";
}, n;
}()
), Cm = (
/** @class */
function() {
function n(t) {
var e = this;
this.dismiss = this._removeNotification, this.notifications = new gm(), this.view = new ym();
var r = this.registerTypes(t);
this.options = xe(xe({}, ua), t), this.options.types = r, this.notifications.onUpdate(function(o, i) {
return e.view.update(o, i);
}), this.view.on(yt.Dismiss, function(o) {
var i = o.target, s = o.event;
e._removeNotification(i), i.triggerEvent(yt.Dismiss, s);
}), this.view.on(yt.Click, function(o) {
var i = o.target, s = o.event;
return i.triggerEvent(yt.Click, s);
});
}
return n.prototype.error = function(t) {
var e = this.normalizeOptions("error", t);
return this.open(e);
}, n.prototype.success = function(t) {
var e = this.normalizeOptions("success", t);
return this.open(e);
}, n.prototype.open = function(t) {
var e = this.options.types.find(function(i) {
var s = i.type;
return s === t.type;
}) || {}, r = xe(xe({}, e), t);
this.assignProps(["ripple", "position", "dismissible"], r);
var o = new vm(r);
return this._pushNotification(o), o;
}, n.prototype.dismissAll = function() {
for (; this.notifications.splice(0, 1); )
;
}, n.prototype.assignProps = function(t, e) {
var r = this;
t.forEach(function(o) {
e[o] = e[o] == null ? r.options[o] : e[o];
});
}, n.prototype._pushNotification = function(t) {
var e = this;
this.notifications.push(t);
var r = t.options.duration !== void 0 ? t.options.duration : this.options.duration;
r && setTimeout(function() {
return e._removeNotification(t);
}, r);
}, n.prototype._removeNotification = function(t) {
var e = this.notifications.indexOf(t);
e !== -1 && this.notifications.splice(e, 1);
}, n.prototype.normalizeOptions = function(t, e) {
var r = { type: t };
return typeof e == "string" ? r.message = e : typeof e == "object" && (r = xe(xe({}, r), e)), r;
}, n.prototype.registerTypes = function(t) {
var e = (t && t.types || []).slice(), r = ua.types.map(function(o) {
var i = -1;
e.forEach(function(a, l) {
a.type === o.type && (i = l);
});
var s = i !== -1 ? e.splice(i, 1)[0] : {};
return xe(xe({}, o), s);
});
return r.concat(e);
}, n;
}()
);
const ca = (n) => {
let t;
const e = /* @__PURE__ */ new Set(), r = (l, u) => {
const c = typeof l == "function" ? l(t) : l;
if (!Object.is(c, t)) {
const p = t;
t = u ?? typeof c != "object" ? c : Object.assign({}, t, c), e.forEach((d) => d(t, p));
}
}, o = () => t, a = { setState: r, getState: o, subscribe: (l) => (e.add(l), () => e.delete(l)), destroy: () => {
({ BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && console.warn(
"[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."
), e.clear();
} };
return t = n(r, o, a), a;
}, cs = (n) => n ? ca(n) : ca, mm = (n) => {
const t = cs()(() => n), { getState: e, setState: r, subscribe: o } = t, i = {
refresh: async () => fetch("/agent-scheduler/v1/queue?limit=1000").then((s) => s.json()).then((s) => {
r(s);
}),
pauseQueue: async () => fetch("/agent-scheduler/v1/pause", { method: "POST" }).then((s) => s.json()).then((s) => (i.refresh(), s)),
resumeQueue: async () => fetch("/agent-scheduler/v1/resume", { method: "POST" }).then((s) => s.json()).then((s) => (i.refresh(), s)),
runTask: async (s) => fetch(`/agent-scheduler/v1/run/${s}`, { method: "POST" }).then((a) => a.json()).then((a) => (i.refresh(), a)),
requeueTask: async (s) => fetch(`/agent-scheduler/v1/requeue/${s}`, { method: "POST" }).then((a) => a.json()).then((a) => (i.refresh(), a)),
moveTask: async (s, a) => fetch(`/agent-scheduler/v1/move/${s}/${a}`, { method: "POST" }).then((l) => l.json()).then((l) => (i.refresh(), l)),
deleteTask: async (s) => fetch(`/agent-scheduler/v1/delete/${s}`, { method: "POST" }).then(
(a) => a.json()
)
};
return { getState: e, setState: r, subscribe: o, ...i };
}, Kl = (n, t = 300) => {
let e;
return function(...r) {
clearTimeout(e), e = setTimeout(() => n.apply(this, r), t);
};
}, wm = (n) => (n + "").replace(/[/][/].*$/gm, "").replace(/\s+/g, "").replace(/[/][*][^/*]*[*][/]/g, "").split("){", 1)[0].replace(/^[^(]*[(]/, "").replace(/=[^,]+/g, "").split(",").filter(Boolean), Sm = (n) => {
const t = cs()(() => n), { getState: e, setState: r, subscribe: o } = t, i = {
refresh: async (s) => {
const { limit: a = 1e3, offset: l = 0 } = s ?? {}, u = e().status ?? "";
return fetch(`/agent-scheduler/v1/history?status=${u}&limit=${a}&offset=${l}`).then((c) => c.json()).then((c) => (r({ ...c }), c));
},
onFilterStatus: (s) => {
r({ status: s }), i.refresh();
},
bookmarkTask: async (s, a) => fetch(`/agent-scheduler/v1/${a ? "bookmark" : "unbookmark"}/${s}`, {
method: "POST"
}).then((l) => l.json()),
renameTask: async (s, a) => fetch(`/agent-scheduler/v1/rename/${s}?name=${encodeURIComponent(a)}`, {
method: "POST",
headers: { "Content-Type": "application/json" }
}).then((l) => l.json())
};
return { getState: e, setState: r, subscribe: o, ...i };
}, Em = (n) => {
const t = cs(() => n), { getState: e, setState: r, subscribe: o } = t;
return { getState: e, setState: r, subscribe: o, ...{
selectSelectedTab: (s) => {
r({ selectedTab: s });
}
} };
}, $l = `<svg width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M4 7l16 0"/>
<path d="M10 11l0 6"/>
<path d="M14 11l0 6"/>
<path d="M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12"/>
<path d="M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3"/>
</svg>`, _m = `<svg width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M18 6l-12 12"/>
<path d="M6 6l12 12"/>
</svg>`, Rm = `<svg width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"/>
<path d="M21 21l-6 -6"/>
</svg>`, Om = `<svg
width="24"
height="24"
viewBox="0 0 24 24"
stroke-width="2"
stroke="currentColor"
fill="none"
stroke-linecap="round"
stroke-linejoin="round"
>
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
<path d="M7 4v16l13 -8z" />
</svg>
`, Tm = `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
<path d="M9 4.55a8 8 0 0 1 6 14.9m0 -4.45v5h5"></path>
<path d="M5.63 7.16l0 .01"></path>
<path d="M4.06 11l0 .01"></path>
<path d="M4.63 15.1l0 .01"></path>
<path d="M7.16 18.37l0 .01"></path>
<path d="M11 19.94l0 .01"></path>
</svg>`, bm = `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
<path d="M9 4h6a2 2 0 0 1 2 2v14l-5 -3l-5 3v-14a2 2 0 0 1 2 -2"></path>
</svg>`, Pm = `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
<path d="M15 3a3 3 0 0 1 2.995 2.824l.005 .176v14a1 1 0 0 1 -1.413 .911l-.101 -.054l-4.487 -2.691l-4.485 2.691a1 1 0 0 1 -1.508 -.743l-.006 -.114v-14a3 3 0 0 1 2.824 -2.995l.176 -.005h6z" stroke-width="0" fill="currentColor"></path>
</svg>`, pa = new Cm(), nn = Em({
selectedTab: "pending"
}), Hr = mm({
current_task_id: null,
total_pending_tasks: 0,
pending_tasks: [],
paused: !1
}), Qo = Sm({
total: 0,
tasks: []
}), $t = {
// default col def properties get applied to all columns
defaultColDef: {
sortable: !1,
filter: !0,
resizable: !0,
suppressMenu: !0
},
// each entry here represents one column
columnDefs: [
{
field: "name",
headerName: "Task Id",
minWidth: 240,
maxWidth: 240,
pinned: "left",
rowDrag: !0,
editable: !0,
valueGetter: ({ data: n }) => (n == null ? void 0 : n.name) ?? (n == null ? void 0 : n.id),
cellClass: ({ data: n }) => [
"cursor-pointer",
(n == null ? void 0 : n.status) === "pending" ? "task-pending" : "",
(n == null ? void 0 : n.status) === "running" ? "task-running" : "",
(n == null ? void 0 : n.status) === "done" ? "task-done" : "",
(n == null ? void 0 : n.status) === "failed" ? "task-failed" : "",
(n == null ? void 0 : n.status) === "interrupted" ? "task-interrupted" : ""
]
},
{
field: "type",
headerName: "Type",
minWidth: 80,
maxWidth: 80
},
{
headerName: "Params",
children: [
{
field: "params.prompt",
headerName: "Prompt",
minWidth: 400,
autoHeight: !0,
wrapText: !0,
cellStyle: { "line-height": "24px", "padding-top": "8px", "padding-bottom": "8px" }
},
{
field: "params.negative_prompt",
headerName: "Negative Prompt",
minWidth: 400,
autoHeight: !0,
wrapText: !0,
cellStyle: { "line-height": "24px", "padding-top": "8px", "padding-bottom": "8px" }
},
{
field: "params.checkpoint",
headerName: "Checkpoint",
minWidth: 150,
maxWidth: 300,
valueFormatter: ({ value: n }) => n || "System"
},
{
field: "params.sampler_name",
headerName: "Sampler",
width: 150,
minWidth: 150
},
{
field: "params.steps",
headerName: "Steps",
minWidth: 80,
maxWidth: 80,
filter: "agNumberColumnFilter"
},
{
field: "params.cfg_scale",
headerName: "CFG Scale",
width: 100,
minWidth: 100,
filter: "agNumberColumnFilter"
},
{
field: "params.size",
headerName: "Size",
minWidth: 110,
maxWidth: 110,
valueGetter: ({ data: n }) => n ? `${n.params.width}x${n.params.height}` : ""
},
{
field: "params.batch",
headerName: "Batching",
minWidth: 100,
maxWidth: 100,
valueGetter: ({ data: n }) => n ? `${n.params.n_iter}x${n.params.batch_size}` : "1x1"
}
]
},
{ field: "created_at", headerName: "Date", minWidth: 200 }
],
getRowId: ({ data: n }) => n.id,
rowSelection: "single",
// allow rows to be selected
animateRows: !0,
// have rows animate to new positions when sorted
pagination: !0,
paginationAutoPageSize: !0,
suppressCopyRowsToClipboard: !0,
suppressRowTransform: !0,
enableBrowserTooltips: !0,
readOnlyEdit: !0,
onCellEditRequest: ({ data: n, newValue: t, api: e, colDef: r }) => {
r.field === "name" && t && (e.showLoadingOverlay(), Qo.renameTask(n.id, t).then((o) => {
Mt(o);
const s = {
update: [{ ...n, name: t }]
};
e.applyTransaction(s), e.hideOverlay();
}));
}
};
function Yl(n) {
const t = gradioApp().querySelector(n);
if (!t)
throw new Error(`search container ${n} not found`);
return t.className = "ts-search", t.innerHTML = `
<div class="ts-search-icon">
${Rm}
</div>
<input type="text" class="ts-search-input" placeholder="Search" required>
`, t;
}
function Mt(n) {
n.success ? pa.success(n.message) : pa.error(n.message);
}
function Dm(n, t) {
var o;
const e = wm(requestProgress), r = gradioApp().querySelector(
"#agent_scheduler_current_task_images"
);
if (e.includes("progressbarContainer"))
requestProgress(n, r, r, t);
else {
const i = document.createElement("div");
i.className = "progressDiv", (o = r.parentNode) == null || o.insertBefore(i, r), requestProgress(
n,
r,
r,
() => {
var s;
(s = r.parentNode) == null || s.removeChild(i), t();
},
(s) => {
if (!s)
return;
const a = s ? `${Math.round(((s == null ? void 0 : s.progress) || 0) * 100)}%` : "", l = s != null && s.paused ? " Paused" : ` ETA: ${Math.round((s == null ? void 0 : s.eta) || 0)}s`;
i.innerText = `${a}${l}`, i.style.background = s ? `linear-gradient(to right, var(--primary-500) 0%, var(--primary-800) ${a}, var(--neutral-700) ${a})` : "var(--button-primary-background-fill)";
}
);
}
}
function Am() {
const n = new MutationObserver(function(t) {
t.forEach((e) => {
const r = e.target;
r.style.display === "block" && (r.id === "tab_agent_scheduler" ? nn.getState().selectedTab === "pending" ? Hr.refresh() : Qo.refresh() : r.id === "agent_scheduler_pending_tasks_tab" ? (nn.selectSelectedTab("pending"), Hr.refresh()) : r.id === "agent_scheduler_history_tab" && (nn.selectSelectedTab("history"), Qo.refresh()));
});
});
n.observe(document.getElementById("tab_agent_scheduler"), { attributeFilter: ["style"] }), n.observe(document.getElementById("agent_scheduler_pending_tasks_tab"), {
attributeFilter: ["style"]
}), n.observe(document.getElementById("agent_scheduler_history_tab"), {
attributeFilter: ["style"]
});
}
function Fm() {
const n = Hr;
window.submit_enqueue = function() {
var u = randomId(), c = create_submit_args(arguments);
c[0] = u;
const p = document.querySelector("#txt2img_enqueue");
return p && (p.innerHTML = "Queued", setTimeout(() => {
p.innerHTML = "Enqueue";
}, 1e3)), c;
}, window.submit_enqueue_img2img = function() {
var u = randomId(), c = create_submit_args(arguments);
c[0] = u, c[1] = get_tab_index("mode_img2img");
const p = document.querySelector("#img2img_enqueue");
return p && (p.innerHTML = "Queued", setTimeout(() => {
p.innerHTML = "Enqueue";
}, 1e3)), c;
};
const t = gradioApp().querySelector(".interrogate-col");
t.childElementCount > 2 && t.classList.add("has-queue-button");
const e = gradioApp().querySelector("#agent_scheduler_action_refresh"), r = gradioApp().querySelector("#agent_scheduler_action_pause"), o = gradioApp().querySelector("#agent_scheduler_action_resume");
e.addEventListener("click", n.refresh), r.addEventListener("click", () => n.pauseQueue().then(Mt)), o.addEventListener("click", () => n.resumeQueue().then(Mt));
const i = (l) => {
l && Dm(l, n.refresh);
};
n.subscribe((l, u) => {
u.current_task_id !== l.current_task_id && i(l.current_task_id), l.paused ? (r.classList.add("hide"), o.classList.remove("hide")) : (r.classList.remove("hide"), o.classList.add("hide"));
});
const s = {
...$t,
// each entry here represents one column
columnDefs: [
{
field: "priority",
hide: !0,
sort: "asc"
},
...$t.columnDefs || [],
{
headerName: "Action",
pinned: "right",
minWidth: 110,
maxWidth: 110,
resizable: !1,
valueGetter: ({ data: l }) => l == null ? void 0 : l.id,
cellRenderer: ({ api: l, value: u, data: c }) => {
if (!c)
return;
const p = `
<div class="inline-flex rounded-md shadow-sm mt-1.5" role="group">
<button type="button" title="Run" ${c.status === "running" ? "disabled" : ""} class="ts-btn-action ts-btn-run">
${Om}
</button>
<button type="button" title="Delete" class="ts-btn-action ts-btn-delete">
${c.status === "pending" ? $l : _m}
</button>
</div>
`, d = document.createElement("div");
d.innerHTML = p;
const f = d.firstElementChild;
return f.querySelector("button.ts-btn-run").addEventListener("click", () => {
l.showLoadingOverlay(), n.runTask(u).then(() => l.hideOverlay());
}), f.querySelector("button.ts-btn-delete").addEventListener("click", () => {
l.showLoadingOverlay(), n.deleteTask(u).then((C) => {
Mt(C), l.applyTransaction({
remove: [c]
}), l.hideOverlay();
});
}), f;
}
}
],
onGridReady: ({ api: l }) => {
Yl("#agent_scheduler_action_search").querySelector("input.ts-search-input").addEventListener(
"keyup",
Kl((p) => {
l.setQuickFilter(p.target.value);
}, 200)
), n.subscribe((p) => {
if (l.setRowData(p.pending_tasks), p.current_task_id) {
const d = l.getRowNode(p.current_task_id);
d && l.refreshCells({ rowNodes: [d], force: !0 });
}
l.sizeColumnsToFit();
});
},
onRowDragEnd: ({ api: l, node: u, overNode: c }) => {
var f, g;
const p = (f = u.data) == null ? void 0 : f.id, d = (g = c == null ? void 0 : c.data) == null ? void 0 : g.id;
p && d && p !== d && (l.showLoadingOverlay(), n.moveTask(p, d).then(() => l.hideOverlay()));
}
}, a = gradioApp().querySelector(
"#agent_scheduler_pending_tasks_grid"
);
document.querySelector(".dark") && (a.className = "ag-theme-alpine-dark"), a.style.height = "calc(100vh - 300px)", new zl(a, s);
}
function Lm() {
const n = Qo;
gradioApp().querySelector("#agent_scheduler_action_refresh_history").addEventListener("click", () => {
n.refresh();
});
const e = gradioApp().querySelector(
"#agent_scheduler_history_selected_task textarea"
), r = gradioApp().querySelector(
"#agent_scheduler_history_selected_image textarea"
);
gradioApp().querySelector(
"#agent_scheduler_history_gallery"
).addEventListener("click", (a) => {
var u, c;
const l = a.target;
if (l.tagName === "IMG") {
const p = Array.prototype.indexOf.call(
((c = (u = l.parentNode) == null ? void 0 : u.parentNode) == null ? void 0 : c.childNodes) ?? [],
l.parentNode
);
r.value = p.toString(), r.dispatchEvent(new Event("input", { bubbles: !0 }));
}
}), window.agent_scheduler_status_filter_changed = function(a) {
n.onFilterStatus(a == null ? void 0 : a.toLowerCase());
};
const i = {
...$t,
defaultColDef: {
...$t.defaultColDef,
sortable: !0
},
// each entry here represents one column
columnDefs: [
{
headerName: "",
field: "bookmarked",
minWidth: 55,
maxWidth: 55,
pinned: "left",
sort: "desc",
cellClass: "cursor-pointer pt-3",
cellRenderer: ({ data: a, value: l }) => {
if (a)
return l ? `<span class="!text-yellow-400">${Pm}</span>` : `<span class="!text-gray-400">${bm}</span>`;
},
onCellClicked: ({ data: a, event: l, api: u }) => {
a && (l == null || l.stopPropagation(), l == null || l.preventDefault(), n.bookmarkTask(a.id, !a.bookmarked).then((c) => {
Mt(c), u.applyTransaction({
update: [{ ...a, bookmarked: !a.bookmarked }]
});
}));
}
},
{
field: "priority",
hide: !0,
sort: "desc"
},
{
...($t.columnDefs || [])[0],
rowDrag: !1
},
...($t.columnDefs || []).slice(1),
{
headerName: "Action",
pinned: "right",
minWidth: 110,
maxWidth: 110,
resizable: !1,
valueGetter: ({ data: a }) => a == null ? void 0 : a.id,
cellRenderer: ({ api: a, data: l, value: u }) => {
if (!l)
return;
const c = `
<div class="inline-flex rounded-md shadow-sm mt-1.5" role="group">
<button type="button" title="Requeue" class="ts-btn-action ts-btn-run">
${Tm}
</button>
<button type="button" title="Delete" class="ts-btn-action ts-btn-delete">
${$l}
</button>
</div>
`, p = document.createElement("div");
p.innerHTML = c;
const d = p.firstElementChild;
return d.querySelector("button.ts-btn-run").addEventListener("click", (y) => {
y.preventDefault(), y.stopPropagation(), a.showLoadingOverlay(), Hr.requeueTask(u).then((C) => {
Mt(C), a.hideOverlay();
});
}), d.querySelector("button.ts-btn-delete").addEventListener("click", (y) => {
y.preventDefault(), y.stopPropagation(), a.showLoadingOverlay(), Hr.deleteTask(u).then((C) => {
Mt(C), a.applyTransaction({
remove: [l]
}), a.hideOverlay();
});
}), d;
}
}
],
rowSelection: "single",
suppressRowDeselection: !0,
onGridReady: ({ api: a }) => {
Yl("#agent_scheduler_action_search_history").querySelector("input.ts-search-input").addEventListener(
"keyup",
Kl((c) => {
a.setQuickFilter(c.target.value);
}, 200)
), n.subscribe((c) => {
a.setRowData(c.tasks), a.sizeColumnsToFit();
});
},
onSelectionChanged: (a) => {
const [l] = a.api.getSelectedRows();
l && (e.value = l.id, e.dispatchEvent(new Event("input", { bubbles: !0 })));
}
}, s = gradioApp().querySelector(
"#agent_scheduler_history_tasks_grid"
);
document.querySelector(".dark") && (s.className = "ag-theme-alpine-dark"), s.style.height = "calc(100vh - 300px)", new zl(s, i);
}
onUiLoaded(() => {
Am(), Fm(), Lm();
});