ag-grid-enterprise
Version:
AG Grid Enterprise Features
12 lines (11 loc) • 1.62 MB
JavaScript
/**
* ag-grid-enterprise - AG Grid Enterprise Features * @version v30.2.1
* @link https://www.ag-grid.com/
' * @license Commercial
*/
/**
* ag-grid-enterprise - AG Grid Enterprise Features * @version v30.2.1
* @link https://www.ag-grid.com/
' * @license Commercial
*/
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("ag-grid-community"),t=function(){function e(){this.ieCompatibility=!1}return e.prototype.init=function(){this.ieCompatibility="5d41402abc4b2a76b9719d911017c592"!=this.md5("hello")},e.prototype.md5cycle=function(e,t){var r=e[0],n=e[1],o=e[2],i=e[3];r=this.ff(r,n,o,i,t[0],7,-680876936),i=this.ff(i,r,n,o,t[1],12,-389564586),o=this.ff(o,i,r,n,t[2],17,606105819),n=this.ff(n,o,i,r,t[3],22,-1044525330),r=this.ff(r,n,o,i,t[4],7,-176418897),i=this.ff(i,r,n,o,t[5],12,1200080426),o=this.ff(o,i,r,n,t[6],17,-1473231341),n=this.ff(n,o,i,r,t[7],22,-45705983),r=this.ff(r,n,o,i,t[8],7,1770035416),i=this.ff(i,r,n,o,t[9],12,-1958414417),o=this.ff(o,i,r,n,t[10],17,-42063),n=this.ff(n,o,i,r,t[11],22,-1990404162),r=this.ff(r,n,o,i,t[12],7,1804603682),i=this.ff(i,r,n,o,t[13],12,-40341101),o=this.ff(o,i,r,n,t[14],17,-1502002290),n=this.ff(n,o,i,r,t[15],22,1236535329),r=this.gg(r,n,o,i,t[1],5,-165796510),i=this.gg(i,r,n,o,t[6],9,-1069501632),o=this.gg(o,i,r,n,t[11],14,643717713),n=this.gg(n,o,i,r,t[0],20,-373897302),r=this.gg(r,n,o,i,t[5],5,-701558691),i=this.gg(i,r,n,o,t[10],9,38016083),o=this.gg(o,i,r,n,t[15],14,-660478335),n=this.gg(n,o,i,r,t[4],20,-405537848),r=this.gg(r,n,o,i,t[9],5,568446438),i=this.gg(i,r,n,o,t[14],9,-1019803690),o=this.gg(o,i,r,n,t[3],14,-187363961),n=this.gg(n,o,i,r,t[8],20,1163531501),r=this.gg(r,n,o,i,t[13],5,-1444681467),i=this.gg(i,r,n,o,t[2],9,-51403784),o=this.gg(o,i,r,n,t[7],14,1735328473),n=this.gg(n,o,i,r,t[12],20,-1926607734),r=this.hh(r,n,o,i,t[5],4,-378558),i=this.hh(i,r,n,o,t[8],11,-2022574463),o=this.hh(o,i,r,n,t[11],16,1839030562),n=this.hh(n,o,i,r,t[14],23,-35309556),r=this.hh(r,n,o,i,t[1],4,-1530992060),i=this.hh(i,r,n,o,t[4],11,1272893353),o=this.hh(o,i,r,n,t[7],16,-155497632),n=this.hh(n,o,i,r,t[10],23,-1094730640),r=this.hh(r,n,o,i,t[13],4,681279174),i=this.hh(i,r,n,o,t[0],11,-358537222),o=this.hh(o,i,r,n,t[3],16,-722521979),n=this.hh(n,o,i,r,t[6],23,76029189),r=this.hh(r,n,o,i,t[9],4,-640364487),i=this.hh(i,r,n,o,t[12],11,-421815835),o=this.hh(o,i,r,n,t[15],16,530742520),n=this.hh(n,o,i,r,t[2],23,-995338651),r=this.ii(r,n,o,i,t[0],6,-198630844),i=this.ii(i,r,n,o,t[7],10,1126891415),o=this.ii(o,i,r,n,t[14],15,-1416354905),n=this.ii(n,o,i,r,t[5],21,-57434055),r=this.ii(r,n,o,i,t[12],6,1700485571),i=this.ii(i,r,n,o,t[3],10,-1894986606),o=this.ii(o,i,r,n,t[10],15,-1051523),n=this.ii(n,o,i,r,t[1],21,-2054922799),r=this.ii(r,n,o,i,t[8],6,1873313359),i=this.ii(i,r,n,o,t[15],10,-30611744),o=this.ii(o,i,r,n,t[6],15,-1560198380),n=this.ii(n,o,i,r,t[13],21,1309151649),r=this.ii(r,n,o,i,t[4],6,-145523070),i=this.ii(i,r,n,o,t[11],10,-1120210379),o=this.ii(o,i,r,n,t[2],15,718787259),n=this.ii(n,o,i,r,t[9],21,-343485551),e[0]=this.add32(r,e[0]),e[1]=this.add32(n,e[1]),e[2]=this.add32(o,e[2]),e[3]=this.add32(i,e[3])},e.prototype.cmn=function(e,t,r,n,o,i){return t=this.add32(this.add32(t,e),this.add32(n,i)),this.add32(t<<o|t>>>32-o,r)},e.prototype.ff=function(e,t,r,n,o,i,a){return this.cmn(t&r|~t&n,e,t,o,i,a)},e.prototype.gg=function(e,t,r,n,o,i,a){return this.cmn(t&n|r&~n,e,t,o,i,a)},e.prototype.hh=function(e,t,r,n,o,i,a){return this.cmn(t^r^n,e,t,o,i,a)},e.prototype.ii=function(e,t,r,n,o,i,a){return this.cmn(r^(t|~n),e,t,o,i,a)},e.prototype.md51=function(e){var t,r=e.length,n=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)this.md5cycle(n,this.md5blk(e.substring(t-64,t)));e=e.substring(t-64);var o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<e.length;t++)o[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(this.md5cycle(n,o),t=0;t<16;t++)o[t]=0;return o[14]=8*r,this.md5cycle(n,o),n},e.prototype.md5blk=function(e){for(var t=[],r=0;r<64;r+=4)t[r>>2]=e.charCodeAt(r)+(e.charCodeAt(r+1)<<8)+(e.charCodeAt(r+2)<<16)+(e.charCodeAt(r+3)<<24);return t},e.prototype.rhex=function(e){for(var t="0123456789abcdef".split(""),r="",n=0;n<4;n++)r+=t[e>>8*n+4&15]+t[e>>8*n&15];return r},e.prototype.hex=function(e){for(var t=0;t<e.length;t++)e[t]=this.rhex(e[t]);return e.join("")},e.prototype.md5=function(e){return this.hex(this.md51(e))},e.prototype.add32=function(e,t){return this.ieCompatibility?this.add32Compat(e,t):this.add32Std(e,t)},e.prototype.add32Std=function(e,t){return e+t&4294967295},e.prototype.add32Compat=function(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r},e}(),r=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};function n(e){return null==e||0===e.length}var o,i=function(){function e(e){this.watermarkMessage=void 0,this.document=e,this.md5=new t,this.md5.init()}return e.prototype.validateLicense=function(){if(n(e.licenseKey))this.isWebsiteUrl()&&!this.isForceWatermark()||this.outputMissingLicenseKey();else if(e.licenseKey.length>32)if(-1!==e.licenseKey.indexOf("For_Trialing_ag-Grid_Only"))this.outputInvalidLicenseKey();else{var t=e.extractLicenseComponents(e.licenseKey),r=t.md5,o=t.license,i=t.version,a=t.isTrial;r===this.md5.md5(o)?(void 0===l&&(l=!1),null!=(s=i)&&(""!==s||l)&&i?this.validateLicenseKeyForVersion(i,!!a,o):this.validateLegacyKey(o)):this.outputInvalidLicenseKey()}else this.outputInvalidLicenseKey();var s,l},e.extractExpiry=function(t){var r=t.substring(t.lastIndexOf("_")+1,t.length);return new Date(parseInt(e.decode(r),10))},e.extractLicenseComponents=function(t){var n=t.replace(/[\u200B-\u200D\uFEFF]/g,""),o=(n=n.replace(/\r?\n|\r/g,"")).length-32,i=n.substring(o),a=n.substring(0,o),s=r(e.extractBracketedInformation(n),2);return{md5:i,license:a,version:s[0],isTrial:s[1]}},e.prototype.getLicenseDetails=function(t){var r=e.extractLicenseComponents(t),n=r.md5,o=r.license,i=r.version,a=r.isTrial,s=n===this.md5.md5(o)&&-1===t.indexOf("For_Trialing_ag-Grid_Only"),l=null,u=null;s&&(u=e.extractExpiry(o),s=!isNaN(u.getTime()),a&&(l=u<new Date));return{licenseKey:t,valid:s,expiry:s?e.formatDate(u):null,version:i||"legacy",isTrial:a,trialExpired:l}},e.prototype.isDisplayWatermark=function(){return this.isForceWatermark()||!this.isLocalhost()&&!this.isWebsiteUrl()&&!n(this.watermarkMessage)},e.prototype.getWatermarkMessage=function(){return this.watermarkMessage||""},e.prototype.getHostname=function(){var e=(this.document.defaultView||window).location.hostname;return void 0===e?"":e},e.prototype.isForceWatermark=function(){var e=(this.document.defaultView||window).location.pathname;return!!e&&-1!==e.indexOf("forceWatermark")},e.prototype.isWebsiteUrl=function(){return null!==this.getHostname().match(/^((?:\w+\.)?ag-grid\.com)$/)},e.prototype.isLocalhost=function(){return null!==this.getHostname().match(/^(?:127\.0\.0\.1|localhost)$/)},e.formatDate=function(e){var t=e.getDate(),r=e.getMonth(),n=e.getFullYear();return t+" "+["January","February","March","April","May","June","July","August","September","October","November","December"][r]+" "+n},e.getGridReleaseDate=function(){return new Date(parseInt(e.decode(e.RELEASE_INFORMATION),10))},e.decode=function(t){for(var r,n,o,i,a,s,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",u="",c=0,p=t.replace(/[^A-Za-z0-9+/=]/g,"");c<p.length;)r=l.indexOf(p.charAt(c++))<<2|(i=l.indexOf(p.charAt(c++)))>>4,n=(15&i)<<4|(a=l.indexOf(p.charAt(c++)))>>2,o=(3&a)<<6|(s=l.indexOf(p.charAt(c++))),u+=String.fromCharCode(r),64!=a&&(u+=String.fromCharCode(n)),64!=s&&(u+=String.fromCharCode(o));return u=e.utf8_decode(u)},e.utf8_decode=function(e){e=e.replace(/rn/g,"n");for(var t="",r=0;r<e.length;r++){var n=e.charCodeAt(r);n<128?t+=String.fromCharCode(n):n>127&&n<2048?(t+=String.fromCharCode(n>>6|192),t+=String.fromCharCode(63&n|128)):(t+=String.fromCharCode(n>>12|224),t+=String.fromCharCode(n>>6&63|128),t+=String.fromCharCode(63&n|128))}return t},e.setLicenseKey=function(e){this.licenseKey=e},e.extractBracketedInformation=function(e){var t=e.split("[").filter((function(e){return e.indexOf("]")>-1})).map((function(e){return e.split("]")[0]}));if(!t||0===t.length)return[null,null];var r=1===t.filter((function(e){return"TRIAL"===e})).length;return[t.filter((function(e){return 0===e.indexOf("v")})).map((function(e){return e.replace(/^v/,"")}))[0],r]},e.prototype.validateLicenseKeyForVersion=function(e,t,r){"2"===e&&(t?this.validateForTrial(r):this.validateLegacyKey(r))},e.prototype.validateLegacyKey=function(t){var r=e.getGridReleaseDate(),n=e.extractExpiry(t),o=!1,i=!1;if(isNaN(n.getTime())||(o=!0,i=r<n),o){if(!i){var a=e.formatDate(n),s=e.formatDate(r);this.outputIncompatibleVersion(a,s)}}else this.outputInvalidLicenseKey()},e.prototype.validateForTrial=function(t){var r=e.extractExpiry(t),n=new Date,o=!1,i=!1;if(isNaN(r.getTime())||(o=!0,i=r>n),o){if(!i){var a=e.formatDate(r);this.outputExpiredTrialKey(a)}}else this.outputInvalidLicenseKey()},e.prototype.outputInvalidLicenseKey=function(){console.error("*****************************************************************************************************************"),console.error("***************************************** AG Grid Enterprise License ********************************************"),console.error("********************************************* Invalid License ***************************************************"),console.error("* Your license for AG Grid Enterprise is not valid - please contact info@ag-grid.com to obtain a valid license. *"),console.error("*****************************************************************************************************************"),console.error("*****************************************************************************************************************"),this.watermarkMessage="Invalid License"},e.prototype.outputExpiredTrialKey=function(e){console.error("****************************************************************************************************************"),console.error("***************************************** AG Grid Enterprise License *******************************************"),console.error("***************************************** Trial Period Expired. *******************************************"),console.error("* Your license for AG Grid Enterprise expired on "+e+". *"),console.error("* Please email info@ag-grid.com to purchase a license. *"),console.error("****************************************************************************************************************"),console.error("****************************************************************************************************************"),this.watermarkMessage="Trial Period Expired"},e.prototype.outputMissingLicenseKey=function(){console.error("****************************************************************************************************************"),console.error("***************************************** AG Grid Enterprise License *******************************************"),console.error("****************************************** License Key Not Found ***********************************************"),console.error("* All AG Grid Enterprise features are unlocked. *"),console.error("* This is an evaluation only version, it is not licensed for development projects intended for production. *"),console.error("* If you want to hide the watermark, please email info@ag-grid.com for a trial license. *"),console.error("****************************************************************************************************************"),console.error("****************************************************************************************************************"),this.watermarkMessage="For Trial Use Only"},e.prototype.outputIncompatibleVersion=function(e,t){console.error("****************************************************************************************************************************"),console.error("****************************************************************************************************************************"),console.error("* AG Grid Enterprise License *"),console.error("* License not compatible with installed version of AG Grid Enterprise. *"),console.error("* *"),console.error("* Your AG Grid License entitles you to all versions of AG Grid that we release within the time covered by your license *"),console.error("* - typically we provide one year licenses which entitles you to all releases / updates of AG Grid within that year. *"),console.error("* Your license has an end (expiry) date which stops the license key working with versions of AG Grid released after the *"),console.error("* license end date. The license key that you have expires on "+e+", however the version of AG Grid you *"),console.error("* are trying to use was released on "+t+". *"),console.error("* *"),console.error("* Please contact info@ag-grid.com to renew your subscription to new versions and get a new license key to work with this *"),console.error("* version of AG Grid. *"),console.error("****************************************************************************************************************************"),console.error("****************************************************************************************************************************"),this.watermarkMessage="License Expired"},e.RELEASE_INFORMATION="MTY5ODkxNzc1MzgxNA==",e}(),a=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},l=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return a(r,t),r.prototype.validateLicense=function(){this.licenseManager=new i(this.gridOptionsService.getDocument()),this.licenseManager.validateLicense()},r.getLicenseDetails=function(e){return new i(null).getLicenseDetails(e)},r.prototype.isDisplayWatermark=function(){return this.licenseManager.isDisplayWatermark()},r.prototype.getWatermarkMessage=function(){return this.licenseManager.getWatermarkMessage()},r.setLicenseKey=function(e){i.setLicenseKey(e)},s([e.PreConstruct],r.prototype,"validateLicense",null),r=s([e.Bean("licenseManager")],r)}(e.BeanStub),u=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),c=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},p=function(t){function r(){return t.call(this,'<div class="ag-watermark">\n <div ref="eLicenseTextRef" class="ag-watermark-text"></div>\n </div>')||this}return u(r,t),r.prototype.postConstruct=function(){var e=this,t=this.shouldDisplayWatermark();this.setDisplayed(t),t&&(this.eLicenseTextRef.innerText=this.licenseManager.getWatermarkMessage(),window.setTimeout((function(){return e.addCssClass("ag-opacity-zero")}),0),window.setTimeout((function(){return e.setDisplayed(!1)}),5e3))},r.prototype.shouldDisplayWatermark=function(){return this.licenseManager.isDisplayWatermark()},c([e.Autowired("licenseManager")],r.prototype,"licenseManager",void 0),c([e.RefSelector("eLicenseTextRef")],r.prototype,"eLicenseTextRef",void 0),c([e.PostConstruct],r.prototype,"postConstruct",null),r}(e.Component),d={version:"30.2.1",moduleName:e.ModuleNames.EnterpriseCoreModule,beans:[l],agStackComponents:[{componentName:"AgWatermark",componentClass:p}]},h=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),f=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},v=function(t){function r(e){var r=t.call(this,'\n <div class="ag-advanced-filter-header" role="row">\n </div>')||this;return r.enabled=e,r}return h(r,t),r.prototype.postConstruct=function(){var t=this;this.setupAdvancedFilter(this.enabled),this.addDestroyFunc((function(){return t.destroyBean(t.eAdvancedFilter)})),this.addManagedListener(this.eventService,e.Events.EVENT_GRID_COLUMNS_CHANGED,(function(){return t.onGridColumnsChanged()})),this.addGuiEventListener("keydown",(function(e){return t.onKeyDown(e)})),this.addGuiEventListener("focusout",(function(e){t.getFocusableElement().contains(e.relatedTarget)||t.focusService.clearAdvancedFilterColumn()}))},r.prototype.getFocusableElement=function(){var e,t;return null!==(t=null===(e=this.eAdvancedFilter)||void 0===e?void 0:e.getGui())&&void 0!==t?t:this.getGui()},r.prototype.setEnabled=function(e){e!==this.enabled&&this.setupAdvancedFilter(e)},r.prototype.refresh=function(){var e;null===(e=this.eAdvancedFilter)||void 0===e||e.refresh()},r.prototype.getHeight=function(){return this.height},r.prototype.setInputDisabled=function(e){var t;null===(t=this.eAdvancedFilter)||void 0===t||t.setInputDisabled(e)},r.prototype.setupAdvancedFilter=function(t){var r=this.getGui();if(t){this.eAdvancedFilter=this.createBean(new ne);var n=this.eAdvancedFilter.getGui();this.eAdvancedFilter.addCssClass("ag-advanced-filter-header-cell"),this.height=this.columnModel.getFloatingFiltersHeight();var o=this.height+"px";r.style.height=o,r.style.minHeight=o,this.setAriaRowIndex(),e._.setAriaRole(n,"gridcell"),e._.setAriaColIndex(n,1),this.setAriaColumnCount(n),r.appendChild(n)}else e._.clearElement(r),this.destroyBean(this.eAdvancedFilter),this.height=0;e._.setDisplayed(r,t),this.enabled=t},r.prototype.setAriaColumnCount=function(t){var r,n;e._.setAriaColSpan(t,null!==(n=null===(r=this.columnModel.getAllGridColumns())||void 0===r?void 0:r.length)&&void 0!==n?n:0)},r.prototype.setAriaRowIndex=function(){e._.setAriaRowIndex(this.getGui(),this.headerNavigationService.getHeaderRowCount())},r.prototype.onGridColumnsChanged=function(){this.eAdvancedFilter&&(this.setAriaColumnCount(this.eAdvancedFilter.getGui()),this.setAriaRowIndex())},r.prototype.onKeyDown=function(t){switch(t.key){case e.KeyCode.ENTER:this.hasFocus()&&this.focusService.focusInto(this.getFocusableElement())&&t.preventDefault();break;case e.KeyCode.ESCAPE:this.hasFocus()||this.getFocusableElement().focus();break;case e.KeyCode.UP:this.navigateUpDown(!0,t);break;case e.KeyCode.DOWN:this.navigateUpDown(!1,t);break;case e.KeyCode.TAB:if(this.hasFocus())this.navigateLeftRight(t);else{var r=this.focusService.findNextFocusableElement(this.getFocusableElement(),null,t.shiftKey);r?(t.preventDefault(),r.focus()):this.navigateLeftRight(t)}}},r.prototype.navigateUpDown=function(e,t){this.hasFocus()&&this.focusService.focusNextFromAdvancedFilter(e)&&t.preventDefault()},r.prototype.navigateLeftRight=function(e){(e.shiftKey?this.focusService.focusLastHeader():this.focusService.focusNextFromAdvancedFilter(!1,!0))&&e.preventDefault()},r.prototype.hasFocus=function(){return this.gridOptionsService.getDocument().activeElement===this.getFocusableElement()},f([e.Autowired("columnModel")],r.prototype,"columnModel",void 0),f([e.Autowired("focusService")],r.prototype,"focusService",void 0),f([e.Autowired("headerNavigationService")],r.prototype,"headerNavigationService",void 0),f([e.PostConstruct],r.prototype,"postConstruct",null),r}(e.Component),y=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),g=function(){return(g=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},m=function(t){function r(e){var r=t.call(this,g(g({},e),{template:'\n <div class="ag-picker-field" role="presentation">\n <div ref="eLabel"></div>\n <div ref="eWrapper" class="ag-wrapper ag-picker-collapsed">\n <div ref="eDisplayField" class="ag-picker-field-display"></div>\n <ag-input-text-field ref="eInput" class="ag-rich-select-field-input"></ag-input-text-field>\n <div ref="eIcon" class="ag-picker-field-icon" aria-hidden="true"></div>\n </div>\n </div>'}))||this;return r.params=e,r}return y(r,t),r.prototype.showPicker=function(){var e=this;setTimeout((function(){return t.prototype.showPicker.call(e)}))},r.prototype.hidePicker=function(){var e=this;setTimeout((function(){return t.prototype.hidePicker.call(e)}))},r.prototype.postConstruct=function(){t.prototype.postConstruct.call(this);var r=this.params,n=r.wrapperClassName,o=r.ariaLabel;e._.setDisplayed(this.eDisplayField,!1),n&&this.eWrapper.classList.add(n),e._.setAriaLabelledBy(this.eWrapper,""),e._.setAriaLabel(this.eWrapper,o)},r.prototype.onEnterKeyDown=function(r){e._.stopPropagationForAgGrid(r),this.isPickerDisplayed?t.prototype.onEnterKeyDown.call(this,r):(r.preventDefault(),this.showPicker())},r}(e.AgRichSelect),b=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),C=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},S=function(t){function r(e,r){var n=t.call(this)||this;return n.comp=e,n.virtualList=r,n}return b(r,t),r.prototype.postConstruct=function(){var t=this;this.createManagedBean(new e.VirtualListDragFeature(this.comp,this.virtualList,{dragSourceType:e.DragSourceType.AdvancedFilterBuilder,listItemDragStartEvent:r.EVENT_DRAG_STARTED,listItemDragEndEvent:r.EVENT_DRAG_ENDED,eventSource:this,getCurrentDragValue:function(e){return t.getCurrentDragValue(e)},isMoveBlocked:function(){return!1},getNumRows:function(e){return e.getNumItems()},moveItem:function(e,r){return t.moveItem(e,r)}}))},r.prototype.getCurrentDragValue=function(e){return e.item},r.prototype.moveItem=function(e,t){this.comp.moveItem(e,t)},r.EVENT_DRAG_STARTED="advancedFilterBuilderDragStarted",r.EVENT_DRAG_ENDED="advancedFilterBuilderDragEnded",C([e.PostConstruct],r.prototype,"postConstruct",null),r}(e.BeanStub),w=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),x=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},O=function(t){function r(e,r,n){var o=t.call(this)||this;return o.eGui=e,o.focusWrapper=r,o.eFocusableComp=n,o}return w(r,t),r.prototype.postConstruct=function(){var t=this;this.addManagedListener(this.eGui,"keydown",(function(r){switch(r.key){case e.KeyCode.TAB:r.defaultPrevented||e._.stopPropagationForAgGrid(r);break;case e.KeyCode.UP:case e.KeyCode.DOWN:e._.stopPropagationForAgGrid(r);break;case e.KeyCode.ESCAPE:if(e._.isStopPropagationForAgGrid(r))return;var n=t.gridOptionsService.getDocument();t.eGui.contains(n.activeElement)&&(r.preventDefault(),e._.stopPropagationForAgGrid(r),t.focusWrapper.focus())}})),this.addManagedListener(this.focusWrapper,"keydown",(function(r){switch(r.key){case e.KeyCode.ENTER:if(e._.isStopPropagationForAgGrid(r))return;t.gridOptionsService.getDocument().activeElement===t.focusWrapper&&(r.preventDefault(),e._.stopPropagationForAgGrid(r),t.eFocusableComp.getFocusableElement().focus())}})),this.addManagedListener(this.focusWrapper,"focusin",(function(){t.focusWrapper.classList.add("ag-advanced-filter-builder-virtual-list-item-highlight")})),this.addManagedListener(this.focusWrapper,"focusout",(function(e){t.focusWrapper.contains(e.relatedTarget)||t.focusWrapper.classList.remove("ag-advanced-filter-builder-virtual-list-item-highlight")}))},x([e.PostConstruct],r.prototype,"postConstruct",null),r}(e.BeanStub);function E(e,t){return{pickerAriaLabelKey:"ariaLabelAdvancedFilterBuilderAddField",pickerAriaLabelValue:"Advanced Filter Builder Add Field",pickerType:"ag-list",valueList:[{key:"condition",displayValue:e("advancedFilterBuilderAddCondition")},{key:"join",displayValue:e("advancedFilterBuilderAddJoin")}],valueFormatter:function(e){var t;return null==e?null:null!==(t=e.displayValue)&&void 0!==t?t:e.key},pickerIcon:"advancedFilterBuilderAdd",maxPickerWidth:(null!=t?t:120)+"px",wrapperClassName:"ag-advanced-filter-builder-item-button",ariaLabel:e("advancedFilterBuilderAddButtonTooltip")}}var P=function(){function e(){}return e.EVENT_ADDED="advancedFilterBuilderAdded",e.EVENT_MOVED="advancedFilterBuilderMoved",e.EVENT_REMOVED="advancedFilterBuilderRemoved",e.EVENT_VALUE_CHANGED="advancedFilterBuilderValueChanged",e.EVENT_VALID_CHANGED="advancedFilterBuilderValidChanged",e}(),A=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),T=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},_=function(t){function r(){var e=t.call(this,'\n <div class="ag-advanced-filter-builder-item-condition" role="presentation"></div>\n ')||this;return e.validationMessage=null,e}return A(r,t),r.prototype.init=function(e){var t=this,r=e.item,n=e.createPill;this.item=r,this.createPill=n,this.filterModel=r.filterModel,this.setupColumnCondition(this.filterModel),this.validate(),this.addDestroyFunc((function(){return t.destroyBeans([t.eColumnPill,t.eOperatorPill,t.eOperandPill])}))},r.prototype.getDragName=function(){return this.filterModel.colId?this.advancedFilterExpressionService.parseColumnFilterModel(this.filterModel):this.getDefaultColumnDisplayValue()},r.prototype.getAriaLabel=function(){return this.advancedFilterExpressionService.translate("ariaAdvancedFilterBuilderFilterItem")+" "+this.getDragName()},r.prototype.getValidationMessage=function(){return this.validationMessage},r.prototype.getFocusableElement=function(){return this.eColumnPill.getFocusableElement()},r.prototype.setupColumnCondition=function(t){var r,n,o=this,i=this.advancedFilterExpressionService.getColumnDetails(t.colId);this.baseCellDataType=null!==(r=null==i?void 0:i.baseCellDataType)&&void 0!==r?r:"text",this.column=null==i?void 0:i.column,this.numOperands=this.getNumOperands(this.getOperatorKey()),this.eColumnPill=this.createPill({key:this.getColumnKey(),displayValue:null!==(n=this.getColumnDisplayValue())&&void 0!==n?n:this.getDefaultColumnDisplayValue(),cssClass:"ag-advanced-filter-builder-column-pill",isSelect:!0,getEditorParams:function(){return{values:o.advancedFilterExpressionService.getColumnAutocompleteEntries()}},update:function(e){return o.setColumnKey(e)},pickerAriaLabelKey:"ariaLabelAdvancedFilterBuilderColumnSelectField",pickerAriaLabelValue:"Advanced Filter Builder Column Select Field",ariaLabel:this.advancedFilterExpressionService.translate("ariaAdvancedFilterBuilderColumn")}),this.getGui().appendChild(this.eColumnPill.getGui()),e._.exists(this.getColumnKey())&&(this.createOperatorPill(),this.hasOperand()&&this.createOperandPill())},r.prototype.createOperatorPill=function(){var e,t=this;this.eOperatorPill=this.createPill({key:this.getOperatorKey(),displayValue:null!==(e=this.getOperatorDisplayValue())&&void 0!==e?e:this.getDefaultOptionSelectValue(),cssClass:"ag-advanced-filter-builder-option-pill",isSelect:!0,getEditorParams:function(){return{values:t.getOperatorAutocompleteEntries()}},update:function(e){return t.setOperatorKey(e)},pickerAriaLabelKey:"ariaLabelAdvancedFilterBuilderOptionSelectField",pickerAriaLabelValue:"Advanced Filter Builder Option Select Field",ariaLabel:this.advancedFilterExpressionService.translate("ariaAdvancedFilterBuilderOption")}),this.eColumnPill.getGui().insertAdjacentElement("afterend",this.eOperatorPill.getGui())},r.prototype.createOperandPill=function(){var e,t=this,r=null!==(e=this.getOperandDisplayValue())&&void 0!==e?e:"";this.eOperandPill=this.createPill({key:r,displayValue:r,baseCellDataType:this.baseCellDataType,cssClass:"ag-advanced-filter-builder-value-pill",isSelect:!1,update:function(e){return t.setOperand(e)},ariaLabel:this.advancedFilterExpressionService.translate("ariaAdvancedFilterBuilderValue")}),this.getGui().appendChild(this.eOperandPill.getGui())},r.prototype.getColumnKey=function(){return this.filterModel.colId},r.prototype.getColumnDisplayValue=function(){return this.advancedFilterExpressionService.getColumnDisplayValue(this.filterModel)},r.prototype.getOperatorKey=function(){return this.filterModel.type},r.prototype.getOperatorDisplayValue=function(){return this.advancedFilterExpressionService.getOperatorDisplayValue(this.filterModel)},r.prototype.getOperandDisplayValue=function(){return this.advancedFilterExpressionService.getOperandDisplayValue(this.filterModel,!0)},r.prototype.hasOperand=function(){return this.numOperands>0},r.prototype.getOperatorAutocompleteEntries=function(){return this.column?this.advancedFilterExpressionService.getOperatorAutocompleteEntries(this.column,this.baseCellDataType):[]},r.prototype.setColumnKey=function(t){var r;this.eOperatorPill||this.createOperatorPill();var n=this.advancedFilterExpressionService.getColumnDetails(t);this.column=null==n?void 0:n.column;var o=null!==(r=null==n?void 0:n.baseCellDataType)&&void 0!==r?r:"text";this.baseCellDataType!==o&&(this.baseCellDataType=o,this.setOperatorKey(void 0),this.eOperatorPill&&(e._.removeFromParent(this.eOperatorPill.getGui()),this.destroyBean(this.eOperatorPill),this.createOperatorPill()),this.validate()),this.filterModel.colId=t,this.filterModel.filterType=this.baseCellDataType},r.prototype.setOperatorKey=function(e){var t=this.getNumOperands(e);t!==this.numOperands&&(this.numOperands=t,0===t?this.destroyOperandPill():(this.createOperandPill(),"number"!==this.baseCellDataType&&this.setOperand(""))),this.filterModel.type=e,this.validate()},r.prototype.setOperand=function(e){var t,r=e;this.column&&(r=null!==(t=this.advancedFilterExpressionService.getOperandModelValue(e,this.baseCellDataType,this.column))&&void 0!==t?t:""),this.filterModel.filter=r,this.validate()},r.prototype.getNumOperands=function(e){var t,r;return null!==(r=null===(t=this.advancedFilterExpressionService.getExpressionOperator(this.baseCellDataType,e))||void 0===t?void 0:t.numOperands)&&void 0!==r?r:0},r.prototype.destroyOperandPill=function(){delete this.filterModel.filter,this.getGui().removeChild(this.eOperandPill.getGui()),this.destroyBean(this.eOperandPill),this.eOperandPill=void 0},r.prototype.validate=function(){var t=null;e._.exists(this.getColumnKey())?e._.exists(this.getOperatorKey())?this.numOperands>0&&!e._.exists(this.getOperandDisplayValue())&&(t=this.advancedFilterExpressionService.translate("advancedFilterBuilderValidationEnterValue")):t=this.advancedFilterExpressionService.translate("advancedFilterBuilderValidationSelectOption"):t=this.advancedFilterExpressionService.translate("advancedFilterBuilderValidationSelectColumn"),this.item.valid=!t,t!==this.validationMessage&&(this.validationMessage=t,this.dispatchEvent({type:P.EVENT_VALID_CHANGED}))},r.prototype.getDefaultColumnDisplayValue=function(){return this.advancedFilterExpressionService.translate("advancedFilterBuilderSelectColumn")},r.prototype.getDefaultOptionSelectValue=function(){return this.advancedFilterExpressionService.translate("advancedFilterBuilderSelectOption")},T([e.Autowired("advancedFilterExpressionService")],r.prototype,"advancedFilterExpressionService",void 0),T([e.Autowired("valueParserService")],r.prototype,"valueParserService",void 0),r}(e.Component),D=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),R=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},M=function(t){function r(e){var r=t.call(this,'\n <div class="ag-advanced-filter-builder-pill-wrapper" role="presentation">\n <div ref="ePill" class="ag-advanced-filter-builder-pill" role="button">\n <span ref="eLabel" class="ag-advanced-filter-builder-pill-display"></span>\n </div>\n </div>\n ')||this;return r.params=e,r.value=e.value,r}return D(r,t),r.prototype.postConstruct=function(){var t=this,r=this.params,n=r.cssClass,o=r.ariaLabel;this.ePill.classList.add(n),this.activateTabIndex([this.ePill]),this.eLabel.id=""+this.getCompId(),e._.setAriaDescribedBy(this.ePill,this.eLabel.id),e._.setAriaLabel(this.ePill,o),this.renderValue(),this.addManagedListener(this.ePill,"click",(function(e){e.preventDefault(),t.showEditor()})),this.addManagedListener(this.ePill,"keydown",(function(r){switch(r.key){case e.KeyCode.ENTER:r.preventDefault(),e._.stopPropagationForAgGrid(r),t.showEditor()}})),this.addDestroyFunc((function(){return t.destroyBean(t.eEditor)}))},r.prototype.getFocusableElement=function(){return this.ePill},r.prototype.showEditor=function(){var t=this;if(!this.eEditor){e._.setDisplayed(this.ePill,!1),this.eEditor=this.createEditorComp(this.params.type),this.eEditor.setValue(this.value);var r=this.eEditor.getGui();this.eEditor.addManagedListener(r,"keydown",(function(r){switch(r.key){case e.KeyCode.ENTER:r.preventDefault(),e._.stopPropagationForAgGrid(r),t.updateValue(!0);break;case e.KeyCode.ESCAPE:r.preventDefault(),e._.stopPropagationForAgGrid(r),t.hideEditor(!0)}})),this.eEditor.addManagedListener(r,"focusout",(function(){t.updateValue(!1)})),this.getGui().appendChild(r),this.eEditor.getFocusableElement().focus()}},r.prototype.createEditorComp=function(t){var r;switch(t){case"text":r=new e.AgInputTextField;break;case"number":r=new e.AgInputNumberField;break;case"date":r=new e.AgInputDateField}return this.createBean(r)},r.prototype.hideEditor=function(t){var r=this.eEditor;r&&(this.eEditor=void 0,this.getGui().removeChild(r.getGui()),this.destroyBean(r),e._.setDisplayed(this.ePill,!0),t&&this.ePill.focus())},r.prototype.renderValue=function(){var t;this.eLabel.classList.remove("ag-advanced-filter-builder-value-empty","ag-advanced-filter-builder-value-number","ag-advanced-filter-builder-value-text"),e._.exists(this.value)?"number"===this.params.type?(t=this.value,this.eLabel.classList.add("ag-advanced-filter-builder-value-number")):(t='"'+this.value+'"',this.eLabel.classList.add("ag-advanced-filter-builder-value-text")):(t=this.advancedFilterExpressionService.translate("advancedFilterBuilderEnterValue"),this.eLabel.classList.add("ag-advanced-filter-builder-value-empty")),this.eLabel.innerText=t},r.prototype.updateValue=function(t){var r;if(this.eEditor){var n=null!==(r=this.eEditor.getValue())&&void 0!==r?r:"";this.dispatchEvent({type:e.Events.EVENT_FIELD_VALUE_CHANGED,value:n}),this.value=n,this.renderValue(),this.hideEditor(t)}},R([e.RefSelector("ePill")],r.prototype,"ePill",void 0),R([e.RefSelector("eLabel")],r.prototype,"eLabel",void 0),R([e.Autowired("advancedFilterExpressionService")],r.prototype,"advancedFilterExpressionService",void 0),R([e.PostConstruct],r.prototype,"postConstruct",null),r}(e.Component),k=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),F=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},I=function(t){function r(){return t.call(this,'\n <div class="ag-advanced-filter-builder-item-condition" role="presentation"></div>\n ')||this}return k(r,t),r.prototype.init=function(e){var t=this,r=e.item,n=e.createPill,o=r.filterModel;this.filterModel=o,this.ePill=n({key:o.type,displayValue:this.advancedFilterExpressionService.parseJoinOperator(o),cssClass:"ag-advanced-filter-builder-join-pill",isSelect:!0,getEditorParams:function(){return{values:t.advancedFilterExpressionService.getJoinOperatorAutocompleteEntries()}},update:function(e){return o.type=e},pickerAriaLabelKey:"ariaLabelAdvancedFilterBuilderJoinSelectField",pickerAriaLabelValue:"Advanced Filter Builder Join Operator Select Field",ariaLabel:this.advancedFilterExpressionService.translate("ariaAdvancedFilterBuilderJoinOperator")}),this.getGui().appendChild(this.ePill.getGui()),this.addDestroyFunc((function(){return t.destroyBean(t.ePill)}))},r.prototype.getDragName=function(){return this.advancedFilterExpressionService.parseJoinOperator(this.filterModel)},r.prototype.getAriaLabel=function(){return this.advancedFilterExpressionService.translate("ariaAdvancedFilterBuilderGroupItem")+" "+this.getDragName()},r.prototype.getValidationMessage=function(){return null},r.prototype.getFocusableElement=function(){return this.ePill.getFocusableElement()},F([e.Autowired("advancedFilterExpressionService")],r.prototype,"advancedFilterExpressionService",void 0),r}(e.Component),L=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),N=function(){return(N=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},G=function(t){function r(e){var r=t.call(this,N(N({},e),{template:'\n <div class="ag-picker-field ag-advanced-filter-builder-pill-wrapper" role="presentation">\n <div ref="eLabel"></div>\n <div ref="eWrapper" class="ag-wrapper ag-advanced-filter-builder-pill ag-picker-collapsed">\n <div ref="eDisplayField" class="ag-picker-field-display ag-advanced-filter-builder-pill-display"></div>\n <ag-input-text-field ref="eInput" class="ag-rich-select-field-input"></ag-input-text-field>\n <div ref="eIcon" class="ag-picker-field-icon" aria-hidden="true"></div>\n </div>\n </div>'}))||this;return r.params=e,r}return L(r,t),r.prototype.getFocusableElement=function(){return this.eWrapper},r.prototype.showPicker=function(){var e=this;setTimeout((function(){return t.prototype.showPicker.call(e)}))},r.prototype.hidePicker=function(){var e=this;setTimeout((function(){return t.prototype.hidePicker.call(e)}))},r.prototype.postConstruct=function(){t.prototype.postConstruct.call(this);var r=this.params,n=r.wrapperClassName,o=r.ariaLabel;this.eWrapper.classList.add(n),e._.setAriaLabelledBy(this.eWrapper,""),e._.setAriaLabel(this.eWrapper,o)},r.prototype.createPickerComponent=function(){var e;if(!this.values){var r=this.params.getEditorParams().values;this.values=r;var n=this.value.key,o=null!==(e=r.find((function(e){return e.key===n})))&&void 0!==e?e:{key:n,displayValue:this.value.displayValue};this.value=o}return t.prototype.createPickerComponent.call(this)},r.prototype.onEnterKeyDown=function(r){e._.stopPropagationForAgGrid(r),this.isPickerDisplayed?t.prototype.onEnterKeyDown.call(this,r):(r.preventDefault(),this.showPicker())},r}(e.AgRichSelect),j=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),B=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},V=function(t){function r(e,r,n){var o=t.call(this,'\n <div class="ag-advanced-filter-builder-item-wrapper" role="presentation">\n <div ref="eItem" class="ag-advanced-filter-builder-item" role="presentation">\n <div ref="eTreeLines" class="ag-advanced-filter-builder-item-tree-lines" aria-hidden="true"></div>\n <span ref="eDragHandle" class="ag-drag-handle" aria-hidden="true"></span>\n <span ref="eValidation" class="ag-advanced-filter-builder-item-button ag-advanced-filter-builder-invalid" aria-hidden="true"></span>\n </div>\n <div ref="eButtons" class="ag-advanced-filter-builder-item-buttons">\n <span ref="eMoveUpButton" class="ag-advanced-filter-builder-item-button" role="button"></span>\n <span ref="eMoveDownButton" class="ag-advanced-filter-builder-item-button" role="button"></span>\n <div ref="eAddButton" role="presentation"></div>\n <span ref="eRemoveButton" class="ag-advanced-filter-builder-item-button" role="button"></span>\n </div>\n </div>\n ')||this;return o.item=e,o.dragFeature=r,o.focusWrapper=n,o.moveUpDisabled=!1,o.moveDownDisabled=!1,o}return j(r,t),r.prototype.postConstruct=function(){var t=this,r=this.item,n=r.filterModel,o=r.level,i=r.showMove,a="join"===n.filterType;if(this.ePillWrapper=this.createManagedBean(a?new I:new _),this.ePillWrapper.init({item:this.item,createPill:function(e){return t.createPill(e)}}),this.eDragHandle.insertAdjacentElement("afterend",this.ePillWrapper.getGui()),0===o){var s=document.createElement("div");s.classList.add("ag-advanced-filter-builder-item-tree-line-vertical-bottom"),s.classList.add("ag-advanced-filter-builder-item-tree-line-root"),this.eTreeLines.appendChild(s),e._.setDisplayed(this.eDragHandle,!1),e._.setDisplayed(this.eButtons,!1),e._.setAriaExpanded(this.focusWrapper,!0)}else this.setupTreeLines(o),this.eDragHandle.appendChild(e._.createIconNoSpan("advancedFilterBuilderDrag",this.gridOptionsService)),this.setupValidation(),this.setupMoveButtons(i),this.setupAddButton(),this.setupRemoveButton(),this.setupDragging(),this.updateAriaExpanded();e._.setAriaLevel(this.focusWrapper,o+1),this.initialiseTabGuard({}),this.createManagedBean(new O(this.getGui(),this.focusWrapper,this.ePillWrapper)),this.updateAriaLabel(),this.addManagedListener(this.ePillWrapper,P.EVENT_VALUE_CHANGED,(function(){return t.dispatchEvent({type:P.EVENT_VALUE_CHANGED})})),this.addManagedListener(this.ePillWrapper,P.EVENT_VALID_CHANGED,(function(){return t.updateValidity()}))},r.prototype.setState=function(t){if(0!==this.item.level){var r=this.item.showMove,n=t.disableMoveUp,o=t.disableMoveDown,i=t.treeLines,a=t.showStartTreeLine;this.updateTreeLines(i,a),this.updateAriaExpanded(),r&&(this.moveUpDisabled=!!n,this.moveDownDisabled=!!o,this.eMoveUpButton.classList.toggle("ag-advanced-filter-builder-item-button-disabled",n),this.eMoveDownButton.classList.toggle("ag-advanced-filter-builder-item-button-disabled",o),e._.setAriaDisabled(this.eMoveUpButton,!!n),e._.setAriaDisabled(this.eMoveDownButton,!!o),this.moveUpTooltipFeature.refreshToolTip(),this.moveDownTooltipFeature.refreshToolTip())}},r.prototype.focusMoveButton=function(e){(e?this.eMoveUpButton:this.eMoveDownButton).focus()},r.prototype.afterAdd=function(){this.ePillWrapper.getFocusableElement().focus()},r.prototype.setupTreeLines=function(e){for(var t=0;t<e;t++){var r=document.createElement("div");this.eTreeLines.appendChild(r)}},r.prototype.updateTreeLines=function(e,t){for(var r=e.length-1,n=this.eTreeLines.children,o=0;o<r;o++){var i=n.item(o);i&&i.classList.toggle("ag-advanced-filter-builder-item-tree-line-vertical",!e[o])}var a=n.item(r);if(a){a.classList.add("ag-advanced-filter-builder-item-tree-line-horizontal");var s=e[r];a.classList.toggle("ag-advanced-filter-builder-item-tree-line-vertical-top",s),a.classList.toggle("ag-advanced-filter-builder-item-tree-line-vertical",!s)}this.eDragHandle.classList.toggle("ag-advanced-filter-builder-item-tree-line-vertical-bottom",t)},r.prototype.setupValidation=function(){var t=this;this.eValidation.appendChild(e._.createIconNoSpan("advancedFilterBuilderInvalid",this.gridOptionsService)),this.validationTooltipFeature=this.createManagedBean(new e.Toolti