PageSourceSearch

https://app2.mapmycustomers.com/static/js/3739.2994228a.chunk.js

js mapmycustomers.com collected 2026-09-24 22:58:48 UTC 37,916 bytes, 8 lines download raw bytes

1"use strict";(self.webpackChunk_mapmycustomers_web_app=self.webpackChunk_mapmycustomers_web_app||[]).push([[3739],{83739(e,t,n){n.d(t,{M:()=>L});var r,o,i,a,s,u,p=n(94998),c=n(19055),l=(r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e){function t(t){var n=e.call(this,void 0,!0)||this;return n.wrappedComponent=t,n.setTemplateFromElement(t.getGui()),n}return l(t,e),t.prototype.handleKeyDown=function(e){e.keyCode===p.KeyCode.ESCAPE&&this.closePanel()},t.prototype.onTabKeyDown=function(t){e.prototype.onTabKeyDown.call(this,t),t.defaultPrevented||(this.closePanel(),t.preventDefault())},t.prototype.closePanel=function(){var e=this.parentComponent;e.closeSubMenu(),setTimeout(function(){return e.getGui().focus()},0)},t}(p.ManagedFocusComponent),h=(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),m=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},f=function(e){function t(t){var n=e.call(this)||this;return n.params=t,n.isActive=!1,n.subMenuIsOpen=!1,n.setTemplate('<div class="'+n.getClassName()+'" tabindex="-1" role="treeitem"></div>'),n}return h(t,e),t.prototype.init=function(){var e=this;this.addIcon(),this.addName(),this.addShortcut(),this.addSubMenu(),this.addTooltip();var t=this.getGui();this.params.disabled?(this.addCssClass(this.getClassName("disabled")),p._.setAriaDisabled(t,!0)):(this.addGuiEventListener("click",function(t){return e.onItemSelected(t)}),this.addGuiEventListener("keydown",function(t){(t.keyCode===p.KeyCode.ENTER||t.keyCode===p.KeyCode.SPACE)&&e.onItemSelected(t)}),this.addGuiEventListener("mouseenter",function(){return e.onMouseEnter()}),this.addGuiEventListener("mouseleave",function(){return e.onMouseLeave()})),this.params.cssClasses&&this.params.cssClasses.forEach(function(e){return p._.addCssClass(t,e)})},t.prototype.isDisabled=function(){return!!this.params.disabled},t.prototype.openSubMenu=function(e){var n,r=this;if(void 0===e&&(e=!1),this.closeSubMenu(),this.params.subMenu){var o=p._.loadTemplate('<div class="ag-menu" role="presentation"></div>');if(this.params.subMenu instanceof Array){var i=p._.getAriaLevel(this.getGui()),a=isNaN(i)?1:i+1,s=this.createBean(new y(a));s.setParentComponent(this),s.addMenuItems(this.params.subMenu),o.appendChild(s.getGui()),this.addManagedListener(s,t.EVENT_MENU_ITEM_SELECTED,function(e){return r.dispatchEvent(e)}),s.addGuiEventListener("mouseenter",function(){return r.cancelDeactivate()}),n=function(){return r.destroyBean(s)},e&&setTimeout(function(){return s.activateFirstItem()},0)}else{var u=this.params.subMenu,c=this.createBean(new d(u));c.setParentComponent(this);var l=c.getGui(),h="mouseenter",m=function(){return r.cancelDeactivate()};l.addEventListener(h,m),n=function(){return l.removeEventListener(h,m)},o.appendChild(l),u.afterGuiAttached&&setTimeout(function(){return u.afterGuiAttached()},0)}var f=this.getGui(),C=this.popupService.positionPopupForMenu.bind(this.popupService,{eventSource:f,ePopup:o}),g=this.popupService.addPopup({modal:!0,eChild:o,positionCallback:C,anchorToElement:f});this.subMenuIsOpen=!0,p._.setAriaExpanded(f,!0),this.hideSubMenu=function(){g(),r.subMenuIsOpen=!1,p._.setAriaExpanded(f,!1),n()}}},t.prototype.closeSubMenu=function(){this.hideSubMenu&&(this.hideSubMenu(),this.hideSubMenu=null,p._.setAriaExpanded(this.getGui(),!1))},t.prototype.isSubMenuOpen=function(){return this.subMenuIsOpen},t.prototype.activate=function(e){var t=this;this.cancelActivate(),this.params.disabled||(this.isActive=!0,this.addCssClass(this.getClassName("active")),this.getGui().focus(),e&&this.params.subMenu&&window.setTimeout(function(){t.isAlive()&&t.isActive&&t.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=p._.loadTemplate('<span ref="eIcon" class="'+this.getClassName("part")+" "+this.getClassName("icon")+'" role="presentation"></span>');this.params.checked?e.appendChild(p._.createIconNoSpan("check",this.gridOptionsWrapper)):this.params.icon&&(p._.
1isNodeOrElement(this.params.icon)?e.appendChild(this.params.icon):"string"==typeof this.params.icon?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=p._.loadTemplate('<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.gridOptionsWrapper.isEnableBrowserTooltips()?this.getGui().setAttribute("title",this.tooltip):this.createManagedBean(new p.TooltipFeature(this)))},t.prototype.getTooltipParams=function(){return{location:"menu",value:this.tooltip}},t.prototype.addShortcut=function(){if(this.params.shortcut||!this.params.isCompact){var e=p._.loadTemplate('<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=p._.loadTemplate('<span ref="ePopupPointer" class="'+this.getClassName("part")+" "+this.getClassName("popup-pointer")+'"></span>'),t=this.getGui();if(this.params.subMenu){var n=this.gridOptionsWrapper.isEnableRtl()?"smallLeft":"smallRight";p._.setAriaExpanded(t,!1),e.appendChild(p._.createIconNoSpan(n,this.gridOptionsWrapper))}t.appendChild(e)}},t.prototype.onItemSelected=function(e){if(this.params.action?this.params.action():this.openSubMenu(e&&"keydown"===e.type),!this.params.subMenu||this.params.action){var n={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(n)}},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 t=this.params.isCompact?"ag-compact-menu-option":"ag-menu-option";return e?t+"-"+e:t},t.EVENT_MENU_ITEM_SELECTED="menuItemSelected",t.EVENT_MENU_ITEM_ACTIVATED="menuItemActivated",t.ACTIVATION_DELAY=80,m([(0,p.Autowired)("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),m([(0,p.Autowired)("popupService")],t.prototype,"popupService",void 0),m([p.PostConstruct],t.prototype,"init",null),t}(p.Component),C=(i=function(e,t){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),g=function(){return(g=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},v=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},y=function(e){function t(t){void 0===t&&(t=1);var n=e.call(this,'<div class="ag-menu-list" role="tree"></div>',!0)||this;return n.level=t,n.menuItems=[],n}return C(t,e),t.prototype.onTabKeyDown=function(e){var t=this.getParentComponent();t&&t instanceof p.ManagedFocusComponent||e.preventDefault(),e.shiftKey&&this.closeIfIsChild(e)},t.prototype.handleKeyDown=function(e){switch(e.keyCode){case p.KeyCode.UP:case p.KeyCode.RIGHT:case p.KeyCode.DOWN:case p.KeyCode.LEFT:e.preventDefault(),this.handleNavKey(e.ke
1yCode);break;case p.KeyCode.ESCAPE:var t=this.findTopMenu();t&&this.focusController.focusInto(t.getGui())}},t.prototype.clearActiveItem=function(){this.activeMenuItem&&(this.activeMenuItem.deactivate(),this.activeMenuItem=null)},t.prototype.addMenuItems=function(e){var t=this;null!=e&&e.forEach(function(e){"separator"===e?t.addSeparator():"string"==typeof e?console.warn("ag-Grid: unrecognised menu item "+e):t.addItem(e)})},t.prototype.addItem=function(e){var t=this,n=this.createManagedBean(new f(g(g({},e),{isAnotherSubMenuOpen:function(){return p._.some(t.menuItems,function(e){return e.isSubMenuOpen()})}})));n.setParentComponent(this),p._.setAriaLevel(n.getGui(),this.level),this.menuItems.push(n),this.appendChild(n.getGui()),this.addManagedListener(n,f.EVENT_MENU_ITEM_SELECTED,function(e){t.dispatchEvent(e)}),this.addManagedListener(n,f.EVENT_MENU_ITEM_ACTIVATED,function(e){t.activeMenuItem&&t.activeMenuItem!==e.menuItem&&t.activeMenuItem.deactivate(),t.activeMenuItem=e.menuItem})},t.prototype.activateFirstItem=function(){var e=this.menuItems.filter(function(e){return!e.isDisabled()})[0];e&&e.activate()},t.prototype.addSeparator=function(){var e=`
2            <div class="ag-menu-separator" aria-hidden="true">
3                <div class="ag-menu-separator-part"></div>
4                <div class="ag-menu-separator-part"></div>
5                <div class="ag-menu-separator-part"></div>
6                <div class="ag-menu-separator-part"></div>
7            </div>`;this.appendChild(p._.loadTemplate(e))},t.prototype.findTopMenu=function(){var e=this.getParentComponent();if(!e&&this instanceof t)return this;for(;;){var n=e&&e.getParentComponent&&e.getParentComponent();if(!n||!(n instanceof t||n instanceof f))break;e=n}return e instanceof t?e:void 0},t.prototype.handleNavKey=function(e){switch(e){case p.KeyCode.UP:case p.KeyCode.DOWN:var t=this.findNextItem(e===p.KeyCode.UP);t&&t!==this.activeMenuItem&&t.activate();return}e===(this.gridOptionsWrapper.isEnableRtl()?p.KeyCode.RIGHT:p.KeyCode.LEFT)?this.closeIfIsChild():this.openChild()},t.prototype.closeIfIsChild=function(e){var t=this.getParentComponent();t&&t instanceof f&&(e&&e.preventDefault(),t.closeSubMenu(),t.getGui().focus())},t.prototype.openChild=function(){this.activeMenuItem&&this.activeMenuItem.openSubMenu(!0)},t.prototype.findNextItem=function(e){var t,n=this.menuItems.filter(function(e){return!e.isDisabled()});if(n.length){if(!this.activeMenuItem)return e?p._.last(n):n[0];e&&n.reverse();for(var r=!1,o=0;o<n.length;o++){var i=n[o];if(!r){i===this.activeMenuItem&&(r=!0);continue}t=i;break}return t||this.activeMenuItem}},t.prototype.destroy=function(){this.clearActiveItem(),e.prototype.destroy.call(this)},v([(0,p.Autowired)("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),t}(p.ManagedFocusComponent),M=n(32357),b=(a=function(e,t){return(a=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),A=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},E=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return b(t,e),t.prototype.registerGridComp=function(e){this.gridPanel=e},t.prototype.hideActiveMenu=function(){this.destroyBean(this.activeMenu)},t.prototype.showMenuAfterMouseEvent=function(e,t,n){var r=this;this.showMenu(e,function(o){var i=o.getGui();r.popupService.positionPopupUnderMouseEvent({type:"columnMenu",column:e,mouseEvent:t,ePopup:i}),n&&o.showTab(n)},n,void 0,t.target)},t.prototype.showMenuAfterButtonClick=function(e,t,n,r){var o=this,i=-1,a="left";this.gridOptionsWrapper.isEnableRtl()&&(i=1,a="right"),this.showMenu(e,function(r){var s=r.getMinDimensions(),u=s.width,p=s.height,c=r.getGui();o.popupService.positionPopupUnderComponent({type:"columnMenu",column:e,eventSource:t,ePopup:c,minWidth:u,minHeight:p,alignSide:a,nudgeX:9*i,nudgeY:-23,keepWithinBounds:!0}),n&&r.showTab(n)},n,r,t)},t.prototype.showMenu=function(e,t,n,r,o){var i=this,a=this.createBean(new T(e,this.lastSelectedTab,r)),s=a.getGui(),u=this.popupService.addPopup({modal:!0,e
7Child:s,closeOnEsc:!0,closedCallback:function(t){if(i.destroyBean(a),e.setMenuVisible(!1,"contextMenu"),t instanceof KeyboardEvent&&o&&p._.isVisible(o)){var n=i.focusController.findTabbableParent(o);n&&n.focus()}},positionCallback:function(){t(a)},anchorToElement:this.gridPanel.getGui()});a.afterGuiAttached({hidePopup:u}),n||a.showTabBasedOnPreviousSelection(),a.addEventListener(T.EVENT_TAB_SELECTED,function(e){i.lastSelectedTab=e.key}),e.setMenuVisible(!0,"contextMenu"),this.activeMenu=a,a.addEventListener(p.BeanStub.EVENT_DESTROYED,function(){i.activeMenu===a&&(i.activeMenu=null)})},t.prototype.isMenuEnabled=function(e){return e.getMenuTabs(T.TABS_DEFAULT).length>0},A([(0,p.Autowired)("popupService")],t.prototype,"popupService",void 0),A([(0,p.Autowired)("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),A([(0,p.Autowired)("focusController")],t.prototype,"focusController",void 0),t=A([(0,p.Bean)("menuFactory")],t)}(p.BeanStub),T=function(e){function t(n,r,o){var i=e.call(this)||this;return i.tabFactories={},i.includeChecks={},i.timeOfLastColumnChange=Date.now(),i.column=n,i.initialSelection=r,i.tabFactories[t.TAB_GENERAL]=i.createMainPanel.bind(i),i.tabFactories[t.TAB_FILTER]=i.createFilterPanel.bind(i),i.tabFactories[t.TAB_COLUMNS]=i.createColumnsPanel.bind(i),i.includeChecks[t.TAB_GENERAL]=function(){return!0},i.includeChecks[t.TAB_FILTER]=function(){return n.isFilterAllowed()},i.includeChecks[t.TAB_COLUMNS]=function(){return!0},i.restrictTo=o,i}return b(t,e),t.prototype.getMinDimensions=function(){return this.tabbedLayout.getMinDimensions()},t.prototype.init=function(){var e=this,t=this.getTabsToCreate().map(function(t){return e.createTab(t)});this.tabbedLayout=new p.TabbedLayout({items:t,cssClass:"ag-menu",onActiveItemClicked:this.onHidePopup.bind(this),onItemClicked:this.onTabItemClicked.bind(this)}),this.createBean(this.tabbedLayout),this.mainMenuList&&this.mainMenuList.setParentComponent(this.tabbedLayout),this.addManagedListener(this.eventService,p.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this))},t.prototype.getTabsToCreate=function(){var e=this;return this.restrictTo?this.restrictTo:this.column.getMenuTabs(t.TABS_DEFAULT).filter(function(t){return e.isValidMenuTabItem(t)}).filter(function(t){return e.isNotSuppressed(t)}).filter(function(t){return e.isModuleLoaded(t)})},t.prototype.isModuleLoaded=function(e){return e!==t.TAB_COLUMNS||p.ModuleRegistry.isRegistered(p.ModuleNames.ColumnToolPanelModule)},t.prototype.isValidMenuTabItem=function(e){var n=!0,r=t.TABS_DEFAULT;return null!=this.restrictTo&&(n=this.restrictTo.indexOf(e)>-1,r=this.restrictTo),(n=n&&t.TABS_DEFAULT.indexOf(e)>-1)||console.warn("Trying to render an invalid menu item '"+e+"'. Check that your 'menuTabs' contains one of ["+r+"]"),n},t.prototype.isNotSuppressed=function(e){return this.includeChecks[e]()},t.prototype.createTab=function(e){return this.tabFactories[e]()},t.prototype.showTabBasedOnPreviousSelection=function(){this.showTab(this.initialSelection)},t.prototype.showTab=function(e){this.tabItemColumns&&e===t.TAB_COLUMNS?this.tabbedLayout.showItem(this.tabItemColumns):this.tabItemFilter&&e===t.TAB_FILTER?this.tabbedLayout.showItem(this.tabItemFilter):this.tabItemGeneral&&e===t.TAB_GENERAL?this.tabbedLayout.showItem(this.tabItemGeneral):this.tabbedLayout.showFirstItem()},t.prototype.onTabItemClicked=function(e){var n=null;switch(e.item){case this.tabItemColumns:n=t.TAB_COLUMNS;break;case this.tabItemFilter:n=t.TAB_FILTER;break;case this.tabItemGeneral:n=t.TAB_GENERAL}n&&this.activateTab(n)},t.prototype.activateTab=function(e){var n={type:t.EVENT_TAB_SELECTED,key:e};this.dispatchEvent(n)},t.prototype.getMenuItems=function(){var e,n=this.getDefaultMenuOptions(),r=this.gridOptionsWrapper.getMainMenuItemsFunc();return e=r?r({column:this.column,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),defaultItems:n}):n,p._.removeRepeatsFromArray(e,t.MENU_ITEM_SEPARATOR),e},t.prototype.getDefaultMenuOptions=function(){var e=[],n=!this.column.getColDef().lockPinned,r=this.columnController.getRowGroupColumns().length,o=this.columnController.getRowGroupColumns().indexOf(this.column)>=0,i=this.column.isAllowValue(),a=this.column.isAllowRowGroup(),s=this.column.isPrimary(),u=this.columnController.isPivotMode(),c=this.rowModel.getType()===p.Constants.ROW_MODEL_TYPE_CLIENT_SIDE,l=this.gridOptionsWrapper.isTreeData(),d=s&&r>0&&i||!s;return n&&e.push("pinSubMenu"),d&&e.push("valueAggSubMenu"),(n||d)&&e.push(t.MENU_ITEM_SEPARATOR),e.push("autoSizeThis"),e.push("autoSizeAll"),e.push(t.MENU_ITEM_SEPARATOR),a&&this.column.isPrimary()&&(o?e.push("rowUnGroup"):e.push("rowGroup")),e.push(t.MENU_ITEM_SEPARATOR),e.push("resetColumns"),c&&(l||r>+!!u)&&(e.push("expandAll"),e.push("contractAll")),e},t.prototype.createMainPanel=function(){this.mainMenuList=this.createManagedBean(new y);var e=this.getMenuItems(),n=this.menuItemMapper.mapWithStockItems(e,this.column);return this.mainMenuList.addMenuItems(n),this.mainMenuList.addEventListener(f.EVENT_MENU_ITEM_SELECTED,this.onHidePopup.bind(this)),this.tabItemGeneral={title:p._.createIconNoSpan("menu",this.gridOptionsWrapper,this.column),titleLabel:t.TAB_GENERAL.replace("MenuTab",""),bodyPromise:p.Promise.resolve(this.mainMenuList.getGui()),name:t.TAB_GENERAL},this.tabItemGeneral},t.prototype.onHidePopup=function(){this.hidePopupFunc();var e=this.focusController.getFocusedCell();if(e){var t=e.rowIndex,n=e.rowPinned,r=e.column;this.focusController.setFocusedCell(t,r,n,!0)}},t.prototype.createFilterPanel=function(){var e=this.filterManager.getOrCreateFilterWrapper(this.column,"COLUMN_MENU");return this.tabItemFilter={title:p._.createIconNoSpan("filter",this.gridOptionsWrapper,this.column),titleLabel:t.TAB_FILTER.replace("MenuTab",""),bodyPromise:e.guiPromise,afterAttachedCallback:function(t){e.filterPromise&&e.filterPromise.then(function(e){e.afterGuiAttached&&e.afterGuiAttached(t)})},name:t.TAB_FILTER},this.tabItemFilter},t.prototype.createColumnsPanel=function(){var e=document.createElement("div");p._.addCssClass(e,"ag-menu-column-select-wrapper"),this.columnSelectPanel=this.createManagedBean(new M.PrimaryColsPanel);var n=this.column.getColDef().columnsMenuParams;return n||(n={}),this.columnSelectPanel.init(!1,{suppressValues:!1,suppressPivots:!1,suppressRowGroups:!1,suppressPivotMode:!1,contractColumnSelection:!!n.contractColumnSelection,suppressColumnExpandAll:!!n.suppressColumnExpandAll,suppressColumnFilter:!!n.suppressColumnFilter,suppressColumnSelectAll:!!n.suppressColumnSelectAll,suppressSideButtons:!1,suppressSyncLayoutWithGri
7d:!!n.suppressSyncLayoutWithGrid,api:this.gridApi,columnApi:this.columnApi},"columnMenu"),p._.addCssClass(this.columnSelectPanel.getGui(),"ag-menu-column-select"),e.appendChild(this.columnSelectPanel.getGui()),this.tabItemColumns={title:p._.createIconNoSpan("columns",this.gridOptionsWrapper,this.column),titleLabel:t.TAB_COLUMNS.replace("MenuTab",""),bodyPromise:p.Promise.resolve(e),name:t.TAB_COLUMNS},this.tabItemColumns},t.prototype.afterGuiAttached=function(e){var t=this;this.tabbedLayout.setAfterAttachedParams({container:"columnMenu",hidePopup:e.hidePopup}),this.hidePopupFunc=e.hidePopup;var n=this.gridApi.getHorizontalPixelRange().left;this.addDestroyFunc(e.hidePopup),this.addManagedListener(this.eventService,"bodyScroll",function(r){!(Date.now()-t.timeOfLastColumnChange<500)&&"horizontal"===r.direction&&Math.abs(t.gridApi.getHorizontalPixelRange().left-n)>t.gridOptionsWrapper.getScrollbarWidth()&&e.hidePopup()})},t.prototype.getGui=function(){return this.tabbedLayout.getGui()},t.prototype.onDisplayedColumnsChanged=function(){this.timeOfLastColumnChange=Date.now()},t.EVENT_TAB_SELECTED="tabSelected",t.TAB_FILTER="filterMenuTab",t.TAB_GENERAL="generalMenuTab",t.TAB_COLUMNS="columnsMenuTab",t.TABS_DEFAULT=[t.TAB_GENERAL,t.TAB_FILTER,t.TAB_COLUMNS],t.MENU_ITEM_SEPARATOR="separator",A([(0,p.Autowired)("columnController")],t.prototype,"columnController",void 0),A([(0,p.Autowired)("filterManager")],t.prototype,"filterManager",void 0),A([(0,p.Autowired)("gridApi")],t.prototype,"gridApi",void 0),A([(0,p.Autowired)("columnApi")],t.prototype,"columnApi",void 0),A([(0,p.Autowired)("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),A([(0,p.Autowired)("menuItemMapper")],t.prototype,"menuItemMapper",void 0),A([(0,p.Autowired)("rowModel")],t.prototype,"rowModel",void 0),A([(0,p.Autowired)("focusController")],t.prototype,"focusController",void 0),A([p.PostConstruct],t.prototype,"init",null),t}(p.BeanStub),S=(s=function(e,t){return(s=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),_=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},I=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return S(t,e),t.prototype.registerGridComp=function(e){this.gridPanel=e},t.prototype.hideActiveMenu=function(){this.destroyBean(this.activeMenu)},t.prototype.getMenuItems=function(e,t,n){var r=[];if(p._.exists(e)&&p.ModuleRegistry.isRegistered(p.ModuleNames.ClipboardModule)&&t&&r.push("copy","copyWithHeaders","paste","separator"),this.gridOptionsWrapper.isEnableCharts()&&p.ModuleRegistry.isRegistered(p.ModuleNames.RangeSelectionModule)&&p.ModuleRegistry.isRegistered(p.ModuleNames.GridChartsModule)&&(this.columnController.isPivotMode()&&r.push("pivotChart"),this.rangeController&&!this.rangeController.isEmpty()&&r.push("chartRange")),p._.exists(e)){var o=!p.ModuleRegistry.isRegistered(p.ModuleNames.CsvExportModule),i=!p.ModuleRegistry.isRegistered(p.ModuleNames.ExcelExportModule),a=this.gridOptionsWrapper.isSuppressExcelExport()||i,s=this.gridOptionsWrapper.isSuppressCsvExport()||o;p._.isIOSUserAgent()||a&&s||r.push("export")}if(this.gridOptionsWrapper.getContextMenuItemsFunc()){var u=this.gridOptionsWrapper.getContextMenuItemsFunc(),c={node:e,column:t,value:n,defaultItems:r.length?r:void 0,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};return u?u(c):void 0}return r},t.prototype.showMenu=function(e,t,n,r){var o=this,i=this.getMenuItems(e,t,n);if(void 0===i||p._.missingOrEmpty(i))return!1;var a=new P(i);this.createBean(a);var s=a.getGui(),u=this.popupService.positionPopupUnderMouseEvent.bind(this.popupService,{column:t,rowNode:e,type:"contextMenu",mouseEvent:r,ePopup:s,nudgeX:1,nudgeY:1}
7),c=this.popupService.addPopup({modal:!0,eChild:s,closeOnEsc:!0,closedCallback:function(){o.destroyBean(a)},click:r,positionCallback:u,anchorToElement:this.gridPanel.getGui()});return a.afterGuiAttached({container:"contextMenu",hidePopup:c}),this.activeMenu&&this.hideActiveMenu(),this.activeMenu=a,a.addEventListener(p.BeanStub.EVENT_DESTROYED,function(){o.activeMenu===a&&(o.activeMenu=null)}),!0},_([(0,p.Autowired)("popupService")],t.prototype,"popupService",void 0),_([(0,p.Autowired)("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),_([(0,p.Optional)("rangeController")],t.prototype,"rangeController",void 0),_([(0,p.Autowired)("columnController")],t.prototype,"columnController",void 0),t=_([(0,p.Bean)("contextMenuFactory")],t)}(p.BeanStub),P=function(e){function t(t){var n=e.call(this,'<div class="ag-menu" role="presentation"></div>')||this;return n.menuList=null,n.focusedCell=null,n.menuItems=t,n}return S(t,e),t.prototype.addMenuItems=function(){var e=this.createBean(new y),t=this.menuItemMapper.mapWithStockItems(this.menuItems,null);e.addMenuItems(t),this.appendChild(e),this.menuList=e,e.addEventListener(f.EVENT_MENU_ITEM_SELECTED,this.destroy.bind(this))},t.prototype.afterGuiAttached=function(e){e.hidePopup&&this.addDestroyFunc(e.hidePopup),this.focusedCell=this.focusController.getFocusedCell(),this.menuList&&this.focusController.focusInto(this.menuList.getGui()),this.addManagedListener(this.eventService,"bodyScroll",this.destroy.bind(this))},t.prototype.destroy=function(){var t=this.focusController.getFocusedCell();if(t&&this.focusedCell&&this.cellPositionUtils.equals(t,this.focusedCell)){var n=this.focusedCell,r=n.rowIndex,o=n.rowPinned,i=n.column;this.focusController.setFocusedCell(r,i,o,!0)}e.prototype.destroy.call(this)},_([(0,p.Autowired)("menuItemMapper")],t.prototype,"menuItemMapper",void 0),_([(0,p.Autowired)("focusController")],t.prototype,"focusController",void 0),_([(0,p.Autowired)("cellPositionUtils")],t.prototype,"cellPositionUtils",void 0),_([p.PostConstruct],t.prototype,"addMenuItems",null),t}(p.Component),O=(u=function(e,t){return(u=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}u(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),N=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return O(t,e),t.prototype.mapWithStockItems=function(e,t){var n=this;if(!e)return[];var r=[];return e.forEach(function(e){if(o="string"==typeof e?n.getStockMenuItem(e,t):e){var o,i=o.subMenu;i&&i instanceof Array&&(o.subMenu=n.mapWithStockItems(o.subMenu,t)),null!=o&&r.push(o)}}),r},t.prototype.getStockMenuItem=function(e,t){var n=this,r=this.gridOptionsWrapper.getLocaleTextFunc(),o=this.gridOptionsWrapper.isSkipHeaderOnAutoSize();switch(e){case"pinSubMenu":return{name:r("pinColumn","Pin Column"),icon:p._.createIconNoSpan("menuPin",this.gridOptionsWrapper,null),subMenu:["pinLeft","pinRight","clearPinned"]};case"pinLeft":return{name:r("pinLeft","Pin Left"),action:function(){return n.columnController.setColumnPinned(t,p.Constants.PINNED_LEFT,"contextMenu")},checked:t.isPinnedLeft()};case"pinRight":return{name:r("pinRight","Pin Right"),action:function(){return n.columnController.setColumnPinned(t,p.Constants.PINNED_RIGHT,"contextMenu")},checked:t.isPinnedRight()};case"clearPinned":return{name:r("noPin","No Pin"),action:function(){return n.columnController.setColumnPinned(t,null,"contextMenu")},checked:!t.isPinned()};case"valueAggSubMenu":if(p.ModuleRegistry.assertRegistered(p.ModuleNames.RowGroupingModule,"Aggregation from Menu"))return{name:r("valueAggregation","Value Aggregation"),icon:p._.createIconNoSpan("menuValue",this.gridOptionsWrapper,null),subMenu:this.createAggregationSubMenu(t)};return null;case"autoSizeThis":return{name:r("autosizeThiscolumn","Autosize This Column"),action:function(){return n.columnController.autoSizeColumn(t,o,"contextMenu")}};case"autoSizeAll":return{name:r("autosizeAllColumns","Autosize All Columns"),action:function(){return n.columnController.autoSizeAllColumns(o,"contextMenu")}};case"rowGroup":return{name:r("groupBy","Group by")+" "+p._.escapeString(this.columnController.getDisplayNameForColumn(t,"header")),action:function(){return n.columnController.addRowGroupColumn(t,"contextMenu")},icon:p._.createIconNoSpan("menuAddRowGroup",this.gridOptionsWrapper,null)};case"rowUnGroup":return{name:r("ungroupBy","Un-Group by")+" "+p._.escapeString(this.columnController.getDisplayNameForColumn(t,"header")),action:function(){return n.columnController.removeRowGroupColumn(t,"contextMenu")},icon:p._.createIconNoSpan("menuRemoveRowGroup",this.gridOptionsWrapper,null)};case"resetColumns":return{name:r("resetColumns","Reset Columns"),action:function(){return n.columnController.resetColumnState(!1,"contextMenu")}};
7case"expandAll":return{name:r("expandAll","Expand All"),action:function(){return n.gridApi.expandAll()}};case"contractAll":return{name:r("collapseAll","Collapse All"),action:function(){return n.gridApi.collapseAll()}};case"copy":if(p.ModuleRegistry.assertRegistered(p.ModuleNames.ClipboardModule,"Copy from Menu"))return{name:r("copy","Copy"),shortcut:r("ctrlC","Ctrl+C"),icon:p._.createIconNoSpan("clipboardCopy",this.gridOptionsWrapper,null),action:function(){return n.clipboardService.copyToClipboard(!1)}};return null;case"copyWithHeaders":if(p.ModuleRegistry.assertRegistered(p.ModuleNames.ClipboardModule,"Copy with Headers from Menu"))return{name:r("copyWithHeaders","Copy with Headers"),icon:p._.createIconNoSpan("clipboardCopy",this.gridOptionsWrapper,null),action:function(){return n.clipboardService.copyToClipboard(!0)}};return null;case"paste":if(p.ModuleRegistry.assertRegistered(p.ModuleNames.ClipboardModule,"Copy with Headers from Menu"))return{name:r("paste","Paste"),shortcut:r("ctrlV","Ctrl+V"),disabled:!0,icon:p._.createIconNoSpan("clipboardPaste",this.gridOptionsWrapper,null),action:function(){return n.clipboardService.pasteFromClipboard()}};return null;case"export":var i=[],a=p.ModuleRegistry.isRegistered(p.ModuleNames.CsvExportModule),s=p.ModuleRegistry.isRegistered(p.ModuleNames.ExcelExportModule);return!this.gridOptionsWrapper.isSuppressCsvExport()&&a&&i.push("csvExport"),!this.gridOptionsWrapper.isSuppressExcelExport()&&s&&(i.push("excelExport"),i.push("excelXmlExport")),{name:r("export","Export"),subMenu:i,icon:p._.createIconNoSpan("save",this.gridOptionsWrapper,null)};case"csvExport":return{name:r("csvExport","CSV Export"),action:function(){return n.gridApi.exportDataAsCsv({})}};case"excelExport":return{name:r("excelExport","Excel Export (.xlsx)&lrm;"),action:function(){return n.gridApi.exportDataAsExcel({exportMode:"xlsx"})}};case"excelXmlExport":return{name:r("excelXmlExport","Excel Export (.xml)&lrm;"),action:function(){return n.gridApi.exportDataAsExcel({exportMode:"xml"})}};case"separator":return"separator";default:var u=this.getChartItems(e);if(u)return u;return console.warn("ag-Grid: unknown menu item type "+e),null}},t.prototype.getChartItems=function(e){var t=this,n=this.gridOptionsWrapper.getLocaleTextFunc(),r=function(e,r,o){return{name:n(e,r),action:function(){return t.chartService.createPivotChart({chartType:o})}}},o=function(e,r,o){return{name:n(e,r),action:function(){return t.chartService.createChartFromCurrentRange(o)}}};switch(e){case"pivotChart":return{name:n("pivotChart","Pivot Chart"),subMenu:["pivotColumnChart","pivotBarChart","pivotPieChart","pivotLineChart","pivotXYChart","pivotAreaChart"],icon:p._.createIconNoSpan("chart",this.gridOptionsWrapper,null)};case"chartRange":return{name:n("chartRange","Chart Range"),subMenu:["rangeColumnChart","rangeBarChart","rangePieChart","rangeLineChart","rangeXYChart","rangeAreaChart","rangeHistogramChart"],icon:p._.createIconNoSpan("chart",this.gridOptionsWrapper,null)};case"pivotColumnChart":return{name:n("columnChart","Column"),subMenu:["pivotGroupedColumn","pivotStackedColumn","pivotNormalizedColumn"]};case"pivotGroupedColumn":return r("groupedColumn","Grouped&lrm;",p.ChartType.GroupedColumn);case"pivotStackedColumn":return r("stackedColumn","Stacked&lrm;",p.ChartType.StackedColumn);case"pivotNormalizedColumn":return r("normalizedColumn","100% Stacked&lrm;",p.ChartType.NormalizedColumn);case"rangeColumnChart":return{name:n("columnChart","Column"),subMenu:["rangeGroupedColumn","rangeStackedColumn","rangeNormalizedColumn"]};case"rangeGroupedColumn":return o("groupedColumn","Grouped&lrm;",p.ChartType.GroupedColumn);case"rangeStackedColumn":return o("stackedColumn","Stacked&lrm;",p.ChartType.StackedColumn);case"rangeNormalizedColumn":return o("normalizedColumn","100% Stacked&lrm;",p.ChartType.NormalizedColumn);case"pivotBarChart":return{name:n("barChart","Bar"),subMenu:["pivotGroupedBar","pivotStackedBar","pivotNormalizedBar"]};case"pivotGroupedBar":return r("groupedBar","Grouped&lrm;",p.ChartType.GroupedBar);case"pivotStackedBar":return r("stackedBar","Stacked&lrm;",p.ChartType.StackedBar);case"pivotNormalizedBar":return r("normalizedBar","100% Stacked&lrm;
7",p.ChartType.NormalizedBar);case"rangeBarChart":return{name:n("barChart","Bar"),subMenu:["rangeGroupedBar","rangeStackedBar","rangeNormalizedBar"]};case"rangeGroupedBar":return o("groupedBar","Grouped&lrm;",p.ChartType.GroupedBar);case"rangeStackedBar":return o("stackedBar","Stacked&lrm;",p.ChartType.StackedBar);case"rangeNormalizedBar":return o("normalizedBar","100% Stacked&lrm;",p.ChartType.NormalizedBar);case"pivotPieChart":return{name:n("pieChart","Pie"),subMenu:["pivotPie","pivotDoughnut"]};case"pivotPie":return r("pie","Pie&lrm;",p.ChartType.Pie);case"pivotDoughnut":return r("doughnut","Doughnut&lrm;",p.ChartType.Doughnut);case"rangePieChart":return{name:n("pieChart","Pie"),subMenu:["rangePie","rangeDoughnut"]};case"rangePie":return o("pie","Pie&lrm;",p.ChartType.Pie);case"rangeDoughnut":return o("doughnut","Doughnut&lrm;",p.ChartType.Doughnut);case"pivotLineChart":return r("line","Line&lrm;",p.ChartType.Line);case"rangeLineChart":return o("line","Line&lrm;",p.ChartType.Line);case"pivotXYChart":return{name:n("xyChart","X Y (Scatter)"),subMenu:["pivotScatter","pivotBubble"]};case"pivotScatter":return r("scatter","Scatter&lrm;",p.ChartType.Scatter);case"pivotBubble":return r("bubble","Bubble&lrm;",p.ChartType.Bubble);case"rangeXYChart":return{name:n("xyChart","X Y (Scatter)"),subMenu:["rangeScatter","rangeBubble"]};case"rangeScatter":return o("scatter","Scatter&lrm;",p.ChartType.Scatter);case"rangeBubble":return o("bubble","Bubble&lrm;",p.ChartType.Bubble);case"pivotAreaChart":return{name:n("areaChart","Area"),subMenu:["pivotArea","pivotStackedArea","pivotNormalizedArea"]};case"pivotArea":return r("area","Area&lrm;",p.ChartType.Area);case"pivotStackedArea":return r("stackedArea","Stacked&lrm;",p.ChartType.StackedArea);case"pivotNormalizedArea":return r("normalizedArea","100% Stacked&lrm;",p.ChartType.NormalizedArea);case"rangeAreaChart":return{name:n("areaChart","Area"),subMenu:["rangeArea","rangeStackedArea","rangeNormalizedArea"]};case"rangeArea":return o("area","Area&lrm;",p.ChartType.Area);case"rangeStackedArea":return o("stackedArea","Stacked&lrm;",p.ChartType.StackedArea);case"rangeNormalizedArea":return o("normalizedArea","100% Stacked&lrm;",p.ChartType.NormalizedArea);case"rangeHistogramChart":return o("histogramChart","Histogram&lrm;",p.ChartType.Histogram);default:return null}},t.prototype.createAggregationSubMenu=function(e){var t,n=this,r=this.gridOptionsWrapper.getLocaleTextFunc(),o=e.isValueActive(),i=this.aggFuncService.getFuncNames(e);if(e.isPrimary())t=e;else{var a=e.getColDef().pivotValueColumn;t=p._.exists(a)?a:void 0}var s=[];return i.forEach(function(e){s.push({name:r(e,e),action:function(){n.columnController.setColumnAggFunc(t,e,"contextMenu"),n.columnController.addValueColumn(t,"contextMenu")},checked:o&&t.getAggFunc()===e})}),s},N([(0,p.Autowired)("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),N([(0,p.Autowired)("columnController")],t.prototype,"columnController",void 0),N([(0,p.Autowired)("gridApi")],t.prototype,"gridApi",void 0),N([(0,p.Optional)("clipboardService")],t.prototype,"clipboardService",void 0),N([(0,p.Optional)("aggFuncService")],t.prototype,"aggFuncService",void 0),N([(0,p.Optional)("chartService")],t.prototype,"chartService",void 0),t=N([(0,p.Bean)("menuItemMapper")],t)}(p.BeanStub),L={moduleName:p.ModuleNames.MenuModule,beans:[E,I,w],dependantModules:[c.EnterpriseCoreModule]}}}]);
8//# sourceMappingURL=3739.2994228a.chunk.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.