 mstrmojo.plugins.VitaraCharts||(mstrmojo.plugins.VitaraCharts={}),(()=>{"use strict";mstrmojo.plugins.VitaraCharts.v538208||(mstrmojo.plugins.VitaraCharts.v538208={}),mstrmojo.plugins.VitaraCharts.v538208.dropZones||(mstrmojo.plugins.VitaraCharts.v538208.dropZones={}),mstrmojo.requiresCls("mstrmojo.vi.models.CustomVisDropZones"),mstrmojo.declare(mstrmojo.vi.models.CustomVisDropZones,null,{scriptClass:"mstrmojo.plugins.VitaraCharts.v538208.dropZones.VitaraHCDropZonesBase",getCustomDropZones:function(){var e=mstrmojo.vi.models.CustomVisDropZones.ENUM_ALLOW_DROP_TYPE;return[{name:"Color",title:"Color",maxCapacity:1,allowObjectType:e.ATTRIBUTE,disabled:!1},{name:"Group",title:mstrmojo.desc(13828,"Drag attributes here"),allowObjectType:e.ATTRIBUTE,disabled:!!this.getDropZoneObjectsByIndex(0)&&0===this.getDropZoneObjectsByIndex(0).length},{name:"Size",title:mstrmojo.desc(13827,"Drag metrics here"),maxCapacity:2,allowObjectType:e.METRIC},{name:"Tooltip Metrics",title:mstrmojo.desc(13827,"Drag metrics here"),allowObjectType:e.METRIC}]},shouldAllowObjectsInDropZone:function(e,o,t,s,r){var i=this;return{allowedItems:vitaraLD.filter(o,function(o){var t=i.isMetric(o);switch(e.n){case"Group":return!i.isObjectInZone(o,"Color");case"Size":case"Tooltip":return t;default:return!t}})}},getActionsForObjectsDropped:function(e,o,t,s,r){var i=this,n=[];switch(this.getDropZoneName(e)){case"Color":vitaraLD.each(o,function(e){i.isObjectInZone(e,"Group")&&i.getRemoveDropZoneObjectsActions(n,"Group",e)});break;case"Size":this.getAddDropZoneObjectsActions(n,"Tooltip",o,t,r)}return n},getActionsForObjectsRemoved:function(e,o){},getDropZoneContextMenuItems:function(e,o,t,s){}})})();
