featuresBundle.js 1.5 MB

12345678910111213141516171819202122232425262728293031323334
  1. /**
  2. * IBM Confidential OCO Source Materials IBM Business Platform: Dashboards
  3. * (C) Copyright IBM Corp. 2016, 2020
  4. *
  5. * The source code for this program is not published or otherwise divested of
  6. * its trade secrets, irrespective of what has been deposited with the U.S.
  7. * Copyright Office
  8. */
  9. function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function _possibleConstructorReturn(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var _extends=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(t[i]=o[i])}return t},_createClass=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function _objectWithoutProperties(t,e){var o={};for(var i in t)e.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(t,i)&&(o[i]=t[i]);return o}define("dashboard-analytics/lib/@waca/dashboard-common/dist/ui/dialogs/Format/FormatConstants",["../../../utils/ObjectHelper"],(function(t){return t.deepFreezeObject({FORMAT_DEFAULT_VALUE:"FORMAT_DEFAULTVALUE",FORMAT_LENGTH_SHORT:"short",FORMAT_FRACTION_DIGITS_ABBREV:"abbrev",FORMAT_TYPES:{TEXT:"text",NUMBER:"number",PERCENT:"percent",CURRENCY:"currency",DATE:"date",DATETIME:"datetime"}})})),define("dashboard-analytics/features/content/slotActions/api/SlotActionsProviderAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.getSlotActionList=function(){},t}()})),define("dashboard-analytics/features/content/dataPointActions/api/DataPointActionsProviderAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.getDataPointActionList=function(){},t}()})),define("dashboard-analytics/lib/@waca/dashboard-common/dist/api/PropertiesProviderAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.getPropertyLayoutList=function(){},t.prototype.getPropertyList=function(){},t}()})),define("dashboard-analytics/lib/@waca/dashboard-common/dist/api/ContentActionsProviderAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.getContentActionList=function(){},t}()})),define("dashboard-analytics/features/content/common/formatAction/FormatAction",["underscore","../../../../widgets/livewidget/nls/StringResources","ca-modeller/shaping","../../../../lib/@waca/core-client/js/core-client/i18n/V5Formatter","../../../../lib/@waca/dashboard-common/dist/ui/dialogs/Format/FormatConstants","../../../../lib/@waca/dashboard-common/dist/core/APIFactory","../../../content/slotActions/api/SlotActionsProviderAPI","../../../content/dataPointActions/api/DataPointActionsProviderAPI","../../../../lib/@waca/dashboard-common/dist/api/PropertiesProviderAPI","../../../../lib/@waca/dashboard-common/dist/api/ContentActionsProviderAPI"],(function(t,e,o,i,n,r,a,s,l,u){return function(){function c(t){var e=t.features,o=t.content;_classCallCheck(this,c),this.dashboard=e.API?e.API:e["Dashboard.API"],this.icons=e["Dashboard.Icons"]||e.Icons,this.content=o,this._dataPointActions=e.DataPointActions,this._slotActions=e.SlotActions,this._properties=e.Properties,this._dashboardState=e.DashboardState,this._contentActions=e.ContentActions,this.locale=this._getPreferences("contentLocale"),this.timezone=this._getPreferences("timeZoneID"),this.textInputFields=["defaultValue"]}return c.prototype.initialize=function(){this.content?(this._dataPointActions.registerProvider("formatAction",this.getAPI()),this._slotActions.registerProvider("formatAction",this.getAPI()),this._properties.registerProvider(this.getAPI())):this._contentActions.registerProvider("formatAction",this.getAPI())},c.prototype._supportAction=function(t,e,o){if(!t||!o.getDefinition().getProperty("supportsFormatAction"))return!1;e||(e=0);var i=t.getDataItemList()[e];if(!i)return!1;var n=i.getMetadataColumn();return!(!n||n.isMissing())&&this.dashboard.getMode()===this.dashboard.MODES.EDIT},c.prototype._supportDataPointAction=function(e,o){if(this.dashboard.getMode()===this.dashboard.MODES.EDIT){var i=e&&e.dataPoints;if(t.pluck(i,"facts").length>0)return"Crosstab"!==o||"cell_edge_row"!==e.area&&"cell_edge_column"!==e.area}return!1},c.prototype.getDataPointActionList=function(o){var i=[],n=this.content.getFeature("Visualization");if(this._supportDataPointAction(o,n.getType())){var r=o.dataPoints||[],a=r.length&&t.flatten(t.without(t.pluck(r,"categories"),void 0),!0),s=a.length>0&&a[0]&&n.getSlots().getMappingInfo(a[0].dataItemId).dataItem,l=this._getViewOptions(s,!0,this.content),u=this.icons.getIcon("format16");i.push({name:"formatAction",label:e.get("toolbarActionFormat"),icon:u.id,text:e.get("toolbarActionFormat"),type:"NextView",view:{module:"dashboard-analytics/lib/@waca/dashboard-common/dist/ui/dialogs/Format/FormatDialog",state:l},actions:{apply:this.applyFormat.bind(this,this.content,o)}})}return i},c.prototype.getContentActionList=function(e){if(1===e.length){var o=e[0],i=this.dashboard.getCanvas().getContent(o),n=i.getFeature("Visualization");if(n){var r=this._dashboardState.getUiState(),a=n.getDefinition().getProperty("actions"),s=t.find(a,(function(t){return"FormatAction"===t.id}));if(s&&r.authoring&&!r.eventGroups)return this._getContribution(i,s.slot)}}return[]},c.prototype._getContribution=function(t,o,i){var n=t.getFeature("Visualization"),r=n.getSlots().getSlot(o);if(!this._supportAction(r,i,n))return[];i=void 0===i?0:parseInt(i);var a=r.getDataItemList()[i];this.metadataFormat=this.getMetadataFormat(a);var s=this._getViewOptions(a,!1,t),l=this.icons.getIcon("format16");return[{name:"formatAction",label:e.get("toolbarActionFormat"),icon:l.id,type:"NextView",view:{module:"dashboard-analytics/lib/@waca/dashboard-common/dist/ui/dialogs/Format/FormatDialog",state:s},actions:{apply:this.applyFormat.bind(this,t,o,i)}}]},c.prototype.getSlotActionList=function(t,e){var o=this.content.getFeature("Visualization"),i=o.getSlots().getSlot(t);return this._supportAction(i,e,o)?this._getContribution(this.content,t,e):[]},c.prototype._getFormatHelper=function(){var e=this;if(void 0!==this._formatHelper)return this._formatHelper;this._formatHelper={types:{},properties:{}};var n=o.formatUtils.getFormatTypes(),r=i.getSupportedV5Types();t.each(r,(function(o){e._formatHelper.types[o]=t.find(n.options,(function(t){return o===t.value}))}));var a=o.formatUtils.getFormatProperties(),s=i.getSupportedV5Props();return t.each(s,(function(o){e._formatHelper.properties[o]=t.find(a,(function(t){return o===t.property}))})),this._formatHelper},c.prototype._getPreferences=function(t){var e=this.dashboard.getGlassCoreSvc(".UserProfile").preferences;return"contentLocale"===t?e.contentLocale||"en-us":"timeZoneID"===t?e.timeZoneID:null},c.prototype._getViewOptions=function(t,e,o){var i=this._getViewState(t);return i.getMetadataFormat=this.getMetadataFormat.bind(this,t),i.getDisabledItems=this.getDisabledItems.bind(this,t),i.formatHelper=this._getFormatHelper(),i.getDataItemFormat=this.getDataItemFormat.bind(this,t),i.suppressSelectionLabel=e,i.visScope=e,i.format=o.getPropertyValue("format")||{},i},c.prototype._getViewState=function(t){var o=null,i=null;if("object"===(void 0===t?"undefined":_typeof(t))){var n=t.getBinning&&t.getBinning()||null;o=n&&n.label?n.label:t.getLabel(),i=t.getDataType()}return{height:140,width:140,itemLabel:o,autoDescription:e.get("formatAutoDescription"),defaultDescription:e.get("formatDefaultDescription"),dataType:i}},c.prototype.getDisabledItems=function(t){return t.getBinning&&t.getBinning()?["formatAbbreviate"]:[]},c.prototype.getMetadataFormat=function(t){var e=t.getMetadataColumn();return e&&e.getFormat()||{}},c.prototype.getDataItemFormat=function(e){var o=e.getFormat&&e.getFormat()||null;return o&&!t.isEmpty(o)?(o.local="none"!==o.selectedFormat,o):"none"},c.prototype._getOfType=function(t,e){return t+"_"+e},c.prototype._getUseGrouping=function(e,o){var i=this._getOfType(o,"useGrouping");return t.isUndefined(e[i])?{}:{useGrouping:e[i]}},c.prototype._getDecimalSizeSpecForType=function(e,o,i){var n=this._getOfType(o,"decimalFormatLength"),r=this._getOfType(o,"maximumFractionDigits"),a=this._getOfType(o,"minimumFractionDigits"),s=t.pick(e,n,r,a),l={};return l=0===t.keys(s).length?e:t.extend(e,{decimalFormatLength:s[n],maximumFractionDigits:s[r],minimumFractionDigits:s[a]}),this._getOldDecimalSizeSpec(l,i)},c.prototype._getOldDecimalSizeSpec=function(t,e){var o={};if(t.decimalFormatLength===n.FORMAT_LENGTH_SHORT||t.maximumFractionDigits===n.FORMAT_FRACTION_DIGITS_ABBREV)o={decimalFormatLength:n.FORMAT_LENGTH_SHORT};else if("auto"===t.maximumFractionDigits){var i=this.getMetadataFormat(e);o={maximumFractionDigits:i.maximumFractionDigits,minimumFractionDigits:i.minimumFractionDigits}}else{if(this._formatHelper.properties.decimalSize&&isNaN(parseInt(t.maximumFractionDigits)))return o;o={maximumFractionDigits:parseInt(t.maximumFractionDigits),minimumFractionDigits:parseInt(t.maximumFractionDigits)}}return o},c.prototype._getDecimalSizeSpec=function(t,e){return this._getDecimalSizeSpecForType(t.properties,t.type,e)},c.prototype._getCurrencySpec=function(t){var e={};this._isDefaultFormat(t.currencyCode)||(e.currencyCode=t.currencyCode),this._isDefaultFormat(t.currencyDisplay)||(e.currencyDisplay="false"===t.currencyDisplay?"symbol":"code"),t.currencySymbol&&(e.currencySymbol=t.currencySymbol);var o=this._getOfType(n.FORMAT_TYPES.CURRENCY,"decimalFormatLength");return t[o]&&t[o]===n.FORMAT_LENGTH_SHORT&&(e.decimalFormatLength=n.FORMAT_LENGTH_SHORT),e},c.prototype._getNumberLabelSpec=function(t){var e={};return t.numberLabel&&(e.numberLabel=t.numberLabel,e.numberLabelPosition=t.numberLabelPosition),e},c.prototype._isDefaultFormat=function(t){return t===n.FORMAT_DEFAULT_VALUE},c.prototype._getPercentSpec=function(t){return{convertPercent:void 0!==t.properties.convertPercent?t.properties.convertPercent:t.convertPercent}},c.prototype._getDateTimeSpec=function(t){return{dateStyle:t.dateTimeStyle}},c.prototype._getDateSpec=function(t){return{dateStyle:t.dateStyle}},c.prototype._getTextSpec=function(t){return{defaultValue:t.defaultValue}},c.prototype._getFormatSpec=function(e,o){var i={local:e.local,type:e.type,timezone:this.timezone,locale:this.locale};if(void 0===this._formatHelper&&this._getFormatHelper(),e.properties)switch(e.type){case n.FORMAT_TYPES.TEXT:t.extend(i,this._getTextSpec(e.properties,e.type));break;case n.FORMAT_TYPES.NUMBER:t.extend(i,this._getDecimalSizeSpec(e,o),this._getUseGrouping(e.properties,e.type),this._getTextSpec(e.properties,e.type),this._getNumberLabelSpec(e.properties));break;case n.FORMAT_TYPES.CURRENCY:t.extend(i,this._getDecimalSizeSpec(e,o),this._getCurrencySpec(e.properties),this._getUseGrouping(e.properties,e.type),this._getTextSpec(e.properties,e.type),this._getNumberLabelSpec(e.properties));break;case n.FORMAT_TYPES.PERCENT:t.extend(i,this._getDecimalSizeSpec(e,o),this._getPercentSpec(e),this._getUseGrouping(e.properties,e.type),this._getTextSpec(e.properties,e.type));break;case n.FORMAT_TYPES.DATETIME:t.extend(i,this._getDateTimeSpec(e.properties),this._getTextSpec(e.properties,e.type));break;case n.FORMAT_TYPES.DATE:t.extend(i,this._getDateSpec(e.properties),this._getTextSpec(e.properties,e.type))}return i},c.prototype._handleClearedTextInput=function(e,o){e&&o&&t.each(this.textInputFields,(function(t){!e[t]&&o[t]&&(e[t]=o[t])}))},c.prototype.applyFormat=function(e,o,i,n){var r=void 0;if(n){var a=e.getFeature("Visualization").getSlots().getSlot(o).getDataItemList()[i];r=n.local?this._getFormatSpec(n,a):null,this._handleClearedTextInput(r,this.metadataFormat),a.setFormat(r)}else{n=i;var s=!0;t.each(this.textInputFields,(function(t){n.properties[t]&&n.local&&(s=!1)})),r=s?null:this._getFormatSpec(n),e.setPropertyValue("format",{formatSpec:r})}},c.prototype.getPropertyList=function(){return[{id:"format",onPropertyChange:{refresh:{data:!0}}}]},c.prototype.getPropertyLayoutList=function(){return[]},c.prototype.getAPI=function(){return this._api||(this._contentActions?this._api=r.createAPI(this,[u]):this._api=r.createAPI(this,[s,a,l])),this._api},c}()})),define("dashboard-analytics/features/content/dataQueryExecution/api/QueryProviderAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.getQuerySpecList=function(){},t.prototype.getType=function(){},t}()})),define("dashboard-analytics/filters/FilterQuerySpec",["underscore","./FilterEntry","./FilterSpecHelper"],(function(t,e,o){return function(){function i(t){_classCallCheck(this,i),this._queryFilterSpec=[],this._dataSource=t&&t.getDataSource(),this._initializeDataItemMap(t)}return i.prototype._initializeDataItemMap=function(e){var i=this;if(this._dataItemsMap={},e){var n=e.getSlots().getMappingInfoList();t.each(n,(function(t){var e=t.dataItem.getColumnId(),n=t.dataItem.getBinning()?e:o.getFilterId(e,t.dataItem.getAggregation());i._dataItemsMap[n]||(i._dataItemsMap[n]=[]);var r=t.slot.getDefinition().getDatasetIdList();r.length>1?r.forEach((function(e){i._dataItemsMap[n].push({dataItem:t.dataItem,datasetId:e})})):i._dataItemsMap[n].push({dataItem:t.dataItem,datasetId:r[0]})}))}},i.prototype._shouldApplyIsNullValueExpression=function(t){if(!t||!this._dataSource)return!1;var e=this._dataSource.getMetadataColumn(t);return e&&!e.isOlapColumn()},i.prototype.addFiltersToSpec=function(t,e){e=e||{},this.addColumnFiltersToSpec(this._mergeEdgeAndPointFiltersOnSameColumns(t,e),e)},i.prototype.addColumnFiltersToSpec=function(t,e){var o;(o=this._queryFilterSpec).push.apply(o,this._toSpec(t,e))},i.prototype.getFilterSpec=function(){return this._queryFilterSpec},i.prototype.hasFilterSpec=function(){return this._queryFilterSpec.length>0},i.prototype._isFilterException=function(e,i,n,r){if(o.isEmpty(e))return!0;if(o.isOrdinal(e)){var a=this._dataItemsMap[e.id];if(a){if(!t.find(a,(function(t){return t.datasetId===r.layerId}))&&!r.projectInAllLayers)return!0}else if(r.excludeNonProjectedRangeFilters)return!0}return i[e.columnId]||i[e.id]||n&&o.isCompound(e)&&e.compoundFilterMatches(i)},i.prototype._mergeEdgeAndPointFiltersOnSameColumns=function(e,i){var n=this,r=this._prepareDataToMergeEdgeAndPointFiltersIfNeeded(e,i);if(!r)return e;var a=[];return t.each(e,(function(t){if(o.isCompound(t)){var i=n._createFinalCompoundFilter(e,t,r);a.push(i)}})),t.each(e,(function(t){if(o.isOrdinal(t)||!o.isCompound(t)&&r.unprocessedSimpleColumnIdMap[t.columnId]){var e=JSON.parse(JSON.stringify(t));a.push(e)}})),a},i.prototype._createFilter=function(t){var o=new e(t);return o._compoundFilterFromJSON(),o},i.prototype._createFinalCompoundFilter=function(e,i,n){var r=this._createFilter(i);return"or"===i.operator&&t.each(n.compoundFilterColumnIds,(function(t){var i=o.getFilterId(t),a=e.find((function(t){return t.visualizationId&&t.id===i}));if(a){n.unprocessedSimpleColumnIdMap[t]=void 0;var s=JSON.parse(JSON.stringify(a));r.values.add(s,{silent:!0})}})),r.toJSON()},i.prototype._prepareDataToMergeEdgeAndPointFiltersIfNeeded=function(e,i){var n=o.getSelectedCompoundFilterColumnIds(e);if(0===n.length)return null;var r=o.getSelectedSimpleFilterColumnIds(e,!0);if(0===r.length)return null;var a=t.intersection(r,n);if(0===a.length)return null;if(i.edgeFilterExceptions&&0===t.difference(a,i.edgeFilterExceptions).length)return null;var s={},l=o.getSelectedSimpleFilterColumnIds(e);return t.each(l,(function(t){s[t]=t})),{simpleColumnIds:l,compoundFilterColumnIds:n,unprocessedSimpleColumnIdMap:s}},i.prototype._getAssociatedDataItem=function(e,i){var n=null;return!e.filterBins&&o.isRange(e)&&this._dataItemsMap[e.id]?n=t.find(this._dataItemsMap[e.id],(function(t){return t.datasetId===i&&t.dataItem.getAggregation()===e.aggregationType})):e.filterBins&&(n=t.find(this._dataItemsMap[e.columnId],(function(t){return t.dataItem.getBinning()&&t.datasetId===i&&-1!==e.id.indexOf(t.dataItem.getId())}))),n&&n.dataItem||null},i.prototype._toQueryFilterSpec=function(e,i){var n=this;if(i=i||{},o.isCompound(e)){var r={};void 0===i.isDataPointExclude&&(i.isDataPointExclude="not"===e.operator);var a=i.isSubExpression?r:{type:e.preOrPost||"pre",expression:r};r[e.operator]=[];var s=o.containsNumber(e);return t.each(e.values,(function(o){if(!o.filterBins){var a=t.extend(i,{isSubExpression:!0,tupleContainsNumber:s}),l=n._toQueryFilterSpec(o,a);t.isEmpty(l)||(r[e.operator]=r[e.operator].concat(l),"and"===e.operator&&i.isDataPointExclude&&!i.nullIncludedInValueList&&n._shouldApplyIsNullValueExpression(o.columnId)&&(r[e.operator]=r[e.operator].concat(n._buildNullValueExpressionQuerySpec(o,i))))}})),"not"===e.operator?(i.isSubExpression?r[e.operator]=r[e.operator][0]:a.expression.not=a.expression.not[0],a.expression&&void 0===a.expression.not&&(a.expression={})):r[e.operator]&&!r[e.operator].length&&delete r[e.operator],a}return void 0===i.isEdgeExclude&&(i.isEdgeExclude="notin"===e.operator),this._leafToQuerySpec(e,i)},i.prototype._leafToQuerySpec=function(t,e){if(o.isModel(t))return{type:"pre",expression:{filterId:t.columnId}};if(t.conditions)return this._buildConditionsQuerySpec(t,e);var i={operator:t.operator};if(e.associatedDataItemAPI?i.dataItem=e.associatedDataItemAPI.getId():t.filterBins?i.dataItem=t.id:i.itemId=t.columnId,e.tupleContainsNumber&&(i.valueType="display"),t.values&&t.values.length>0){if(t.type)i.valueType=t.type;else if(i.itemId){var n=this._dataSource&&this._dataSource.getMetadataColumn(i.itemId);n&&n.isProperty()&&(i.valueType="display")}i=this._buildNullValuesQuerySpec(t,i,t.values,e)}else t.valueDataItem&&(i.valueDataItem=t.valueDataItem);var r=this._buildEdgeNullValueExpressionQuerySpec(t,i,e);r&&(i=r);var a=o.isRange(t)?"post":"pre",s=t.preOrPost||e.type||a;return e.isSubExpression?i:{type:s,expression:i}},i.prototype._buildNullValueExpressionQuerySpec=function(t,e){var i=void 0;if(e.isDataPointExclude?i="isnotnull":e.isEdgeExclude&&(i="isnull"),i){var n={itemId:t.columnId,operator:i};return o.setBinningItemId(t,n),n}},i.prototype._buildEdgeNullValueExpressionQuerySpec=function(t,e,o){if(!t.filterBins&&!e.valueDataItem&&"notin"===t.operator&&o.isEdgeExclude&&!o.nullIncludedInValueList&&this._shouldApplyIsNullValueExpression(t.columnId)){var i={};return i.or=[this._buildNullValueExpressionQuerySpec(t,o),e],i}return null},i.prototype._buildNullValuesQuerySpec=function(e,i,n,r){(r=r||{}).nullIncludedInValueList=!1;var a=0!==e.operator.indexOf("not"),s=t.without(n,null,"null");if(s=t.filter(s,(function(t){return null!==t.u&&null!==t.d&&"null"!==t.u&&"null"!==t.d})),s=t.map(s,(function(t){return"object"===(void 0===t?"undefined":_typeof(t))?"display"===i.valueType||r.tupleContainsNumber?t.d:t.u:t})),i.values=s,s.length<n.length){r.nullIncludedInValueList=!0;var l={itemId:e.columnId,operator:a?"isnull":"isnotnull"};if(o.setBinningItemId(e,l),e.type&&(l.valueType=e.type),s.length>0){var u={};u[a?"or":"and"]=[l,i],i=u}else i=l}return i},i.prototype._buildConditionsQuerySpec=function(e,i){var n=void 0;if(e.values&&e.values.length){var r=e.values,a=t.pluck(r,"display"===e.type?"d":"u");n={valueType:e.type,operator:"in",itemId:e.columnId,values:a},o.setBinningItemId(e,n)}var s=void 0;if(e.excludedValues&&e.excludedValues.length){var l=e.excludedValues,u=t.pluck(l,"display"===e.type?"d":"u");s={valueType:e.type,operator:"notin",itemId:e.columnId,values:u},o.setBinningItemId(e,s)}var c=n?{or:[e.conditions,n]}:e.conditions,d=s?{and:[c,s]}:c;return"notin"===e.operator&&(d={not:d}),i.isSubExpression?d:{type:i.type||"pre",expression:d}},i.prototype._toSpec=function(e,i){var n=this,r=this._prepareFilterExceptionsMap(i),a=[];return t.each(e,(function(e){if(e.id=e.id||o.getFilterId(e.columnId,e.aggregationType),!n._isFilterException(e,r,!(!i||!i.filterExceptions),i)){var s=n._toQueryFilterSpec(e,{associatedDataItemAPI:n._getAssociatedDataItem(e,i.layerId)});t.isEmpty(s.expression)||(i&&i.dsf&&(s.dsf=i.dsf),a.push(s))}})),a},i.prototype._prepareFilterExceptionsMap=function(e){var o={},i=e&&(e.filterExceptions||e.edgeFilterExceptions)||[];return t.each(i,(function(t){o[t]=[]})),o},i}()})),define("dashboard-analytics/features/content/dataQueryExecution/postProcess/LocalAggregateSortInfo",["../../../../visualizations/vipr/VIPRUtils","underscore"],(function(t,e){return function(){function o(t){_classCallCheck(this,o),this.visualization=t}return o.prototype.getSortInfo=function(){return this._doesVisualizationSupportOperation()?this._getAggregateSortInfo():null},o.prototype._doesVisualizationSupportOperation=function(){return t.aggregateAndSortOnClient(this.visualization.getDefinition().getId())},o.prototype._getSlotSortInfo=function(t){var o=t.getDefinition().getAggregatedSortInfo();if(o){var i=t.getDataItemList()[0],n=i&&!i.hasDefaultSort()&&i.getSort();if(n&&this._areRequiredSlotsForSortingMapped(o)){var r=this.visualization.getSlots(),a=r.getSlot(o.groupOnColumnId),s=a&&a.getDataItemList();if(s&&s.length)if(!(s[0]&&!s[0].hasDefaultSort()&&s[0].getSort())){var l=e.map(s,(function(t){return t.getId()})),u=t.getDataItemList()[0].getId(),c=r.getSlot(o.mappedSlotCondition[0]);return{order:n.type,groupDataItemIds:l,aggregateDataItemId:u,mappedSlotConditionDataItemUid:c.getDataItemList()[0].getId()}}}}},o.prototype._getAggregateSortInfo=function(){for(var t=this.visualization.getSlots().getMappedSlotList(),e=null,o=0;o<t.length&&!e;o++)e=this._getSlotSortInfo(t[o]);return e},o.prototype._areRequiredSlotsForSortingMapped=function(t){var e=t.mappedSlotCondition;if(!e)return!0;for(var o=this.visualization.getSlots(),i=0;i<e.length;i++){var n=e[i],r=o.getSlot(n);if(!r||!r.getDataItemList().length)return!1}return!0},o}()})),define("dashboard-analytics/features/dashboard/queryService/QuerySelectionBuilder",["underscore"],(function(t){return function(){function e(){_classCallCheck(this,e)}return e.prototype.build=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments[2],i=[];return t.getBinning()?(i.push.apply(i,this._buildSelectionsFromFiltersForOLAPDataItems(t,e)),i.push.apply(i,this._buildSelectionsForSort(t))):(i.push.apply(i,this._buildSelectionsFromDrillStateForHierarchyOrSet(t,e,o)),i.push.apply(i,this._buildSelectionsFromFiltersForOLAPDataItems(t,e)),i.push.apply(i,this._buildSelectionsForTopBottom(t)),i.push.apply(i,this._buildSelectionsForSort(t))),i},e.prototype._buildSelectionsFromDrillStateForHierarchyOrSet=function(e,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=[];if(i.find((function(t){return t.columnId===e.getColumnId()})))return n;var r=t.find(o,(function(t){return t.columnId===e.getColumnId()})),a=r&&r.overrideHierarchyDefaultSelection,s=e.getMetadataColumn();if(s.isHierarchy()||s.isNamedSet())if(this._isExistingDrillSelection(e)){var l=e.getDrillDownValue(),u=e.getDrillUpValue();l?n.push({operation:"add",children:l}):u&&n.push({operation:"add",drillUp:u})}else s.isHierarchy()&&!a&&(s.isSingleRootHierarchy()?n.push({operation:"add",children:s.getRootMember()}):n.push({operation:"add",rootMembers:!0}));return n},e.prototype._buildSelectionsForTopBottom=function(t){var e=t.getTopBottom();if(!e)return[];var o={operation:"keep",topBottom:{type:e.type,value:e.value}};return e.context&&(o.context=[e.context]),e.rank&&(o.topBottom.rank=e.rank),[o]},e.prototype._isExistingDrillSelection=function(t){return!!(t.getDrillDownValue()||t.getDrillUpValue())},e.prototype._convertFilterEntryToSelection=function(t){var e=this._convertFilterOperatorToSetOperation(t.operator),o=null;if(e){var i=t.values;o={operation:e},"containsignorecase"===t.operator?o.filter={operator:t.operator,values:i.map((function(t){return t.u}))}:o.set=i.map((function(t){return t.u}))}return o},e.prototype._convertFilterOperatorToSetOperation=function(t){switch(t){case"in":case"containsignorecase":return"keep";case"notin":return"remove";default:return}},e.prototype._buildSelectionsFromFiltersForOLAPDataItems=function(t,e,o){var i=this,n=t.getMetadataColumn();if(!n.isOlapColumn()||n.isProperty())return[];var r=e.filter((function(e){return e.columnId===t.getColumnId()})),a=[];return r.forEach((function(t){if(t&&t.values.length>0&&!t.conditions){var e=i._convertFilterEntryToSelection(t);e&&a.push(e)}})),a.length>0&&o&&o.push(t.getColumnId()),a},e.prototype._buildSelectionsForSort=function(e){var o=e.getSort();return o?[{operation:"order",sort:t.extend({},t.pick(o,"type","by","priority"))}]:[]},e}()})),define("dashboard-analytics/features/content/dataQueryExecution/VisQuerySelectionBuilder",["./postProcess/LocalAggregateSortInfo","../../dashboard/queryService/QuerySelectionBuilder","underscore"],(function(t,e,o){return function(e){function i(o){var n=o.internalVisualization,r=o.layerToQuerySlotsMap,a=o.applyServerSort;_classCallCheck(this,i);var s=_possibleConstructorReturn(this,e.call(this));return s.internalVisualization=n,s._querySlotSortPriority=0,s._serverSort=a,s._localAggregateSortInfo=new t(n),s._querySlotSortPriority=s._getDataItemsHighestSortPriority(r)+1,s}return _inherits(i,e),i.prototype._forEachQuerySlotDataItem=function(t,e){t.forEach((function(t){t.forEach((function(t){t.getDataItemList().forEach((function(o){e(o,t)}))}))}))},i.prototype.build=function(t,e,o){var i=[];return t.getBinning()?(i.push.apply(i,this._buildSelectionsFromLocalFiltersForOLAPDataItems(t,o)),i.push.apply(i,this._buildSelectionsFromSearchFiltersForOLAPDataItems(t,o)),i.push.apply(i,this._buildSelectionsForSort(t,e))):(i.push.apply(i,this._buildSelectionsFromDrillStateForHierarchyOrSet(t)),i.push.apply(i,this._buildSelectionsFromLocalFiltersForOLAPDataItems(t,o)),i.push.apply(i,this._buildSelectionsFromSearchFiltersForOLAPDataItems(t,o)),i.push.apply(i,this._buildSelectionsForTopBottom(t)),i.push.apply(i,this._buildSelectionsForSort(t,e))),i},i.prototype._buildSelectionsFromDrillStateForHierarchyOrSet=function(t){var o=this.internalVisualization.getLocalFilters(),i=o&&o.getFilterList()||[];return e.prototype._buildSelectionsFromDrillStateForHierarchyOrSet.call(this,t,i)},i.prototype._buildSelectionsFromSearchFiltersForOLAPDataItems=function(t,o){var i=this.internalVisualization.getSearchFilterList();return e.prototype._buildSelectionsFromFiltersForOLAPDataItems.call(this,t,i,o)},i.prototype._buildSelectionsFromLocalFiltersForOLAPDataItems=function(t,o){var i=this.internalVisualization.getLocalFilters().getFilterList();return e.prototype._buildSelectionsFromFiltersForOLAPDataItems.call(this,t,i,o)},i.prototype._buildSelectionsForSort=function(t,e){var i=[];if(!(!this._serverSort&&this._isClientSideSortEnabledForDataItem(t))){var n=t.getSort(),r=!t.hasDefaultSort()&&n,a=(r=r||t.hasModelSort()&&n)&&r.type?r:null,s=this._ignoreDefaultSlotSort(t);if(a||s||(a=this._getDefaultSort(e,t))&&(a.priority=this._querySlotSortPriority++),a){var l={operation:"order",sort:o.pick(a,"type","by","priority")};a.context&&(l.context=[{itemId:a.context}]),i=[l]}}return i},i.prototype._isClientSideSortEnabledForDataItem=function(t){var e=this._localAggregateSortInfo.getSortInfo();return!!e&&e.aggregateDataItemId===t.getId()},i.prototype._getDefaultSort=function(t,e){var o=null,i=void 0,n=e.getTopBottom();if(n){var r=n.type;o={type:i="topcount"===r||"toppercent"===r?"desc":"asc"},n.context&&(o.by="value",o.context=n.context.itemId)}else!(i=t.getDefinition().getSort())&&e.getBinning()&&(i="asc"),i&&(o={type:i});return o},i.prototype._ignoreDefaultSlotSort=function(t){var e=this.internalVisualization.getSlots().getMappingInfoList(),i=-1;o.find(e,(function(e,o){return e.dataItem.getId()===t.getId()&&(i=o,!0)}));var n=t.getTopBottom();return t.getMetadataColumn().isOlapColumn()||t.getMetadataColumn().isNamedSet()?!n||!n.rank:!this._hasPreviousTopBottom(e,i)&&!n&&this._hasFollowedTopBottom(e,i)},i.prototype._hasPreviousTopBottom=function(t,e){for(var o=!1,i=0;i<e;i++)if(t[i].dataItem.getTopBottom()){o=!0;break}return o},i.prototype._hasFollowedTopBottom=function(t,e){for(var o=!1,i=e+1;i<t.length;i++)if(t[i].dataItem.getTopBottom()){o=!0;break}return o},i.prototype._getDataItemsHighestSortPriority=function(t){var e=0;return this._forEachQuerySlotDataItem(t,(function(t){var o=t.getSort();o&&e<o.priority&&(e=o.priority)})),e},i}(e)})),define("dashboard-analytics/features/content/dataQueryExecution/QueryDataItemBuilder",["./VisQuerySelectionBuilder"],(function(t){return function(){function e(o){var i=o.internalVisualization,n=o.layerToQuerySlotsMap,r=o.applyServerSort;_classCallCheck(this,e),this.internalVisualization=i,this.visQuerySelectionBuilder=new t({internalVisualization:i,layerToQuerySlotsMap:n,applyServerSort:r})}return e.prototype._isExistingDrillSelection=function(t){return!!(t.getDrillDownValue()||t.getDrillUpValue())},e.prototype.build=function(t,e,o){var i={id:t.getId(),itemId:t.getColumnId()};!t.getBinning()&&this._isExistingDrillSelection(t)&&t.getMetadataColumn().isNamedSet()&&(i.itemId=t.getMetadataColumn().getReferencedHierarchyId()),"fact"===t.getType()&&(i.aggregate=t.getAggregation());var n=this.visQuerySelectionBuilder.build(t,e,o);n.length&&(i.selection=n);var r=this._buildAutoBinningSpec(t);return r&&(n.length||delete i.selection,delete i.aggregate,i.binning=r),i},e.prototype._buildAutoBinningSpec=function(t){var e=t.getBinning();if(e){var o={auto:{numberOfBins:e.bins,maxDecPlaces:2}},i=t.getFormat();return i&&Number.isInteger(i.maximumFractionDigits)&&(o.auto.maxDecPlaces=i.maximumFractionDigits),o}return null},e}()})),define("dashboard-analytics/features/content/dataQueryExecution/QueryProvider",["../../../lib/@waca/dashboard-common/dist/core/APIFactory","./api/QueryProviderAPI","../../../filters/FilterQuerySpec","../../../apiHelpers/SlotAPIHelper","./QueryDataItemBuilder","./DataQueryUtils","../../../lib/@waca/core-client/js/core-client/utils/BrowserUtils","../../../widgets/livewidget/query/CommonQueryBuilder","underscore"],(function(t,e,o,i,n,r,a,s,l){var u,c;return c=u=function(){function u(t){var e=t.content,o=t.dashboardAPI;_classCallCheck(this,u),this.content=e,this.dashboard=o,this.content.getFeature("DataQueryExecution").registerQueryProvider(this.getAPI())}return u.prototype.getAPI=function(){return this.api||(this.api=t.createAPI(this,[e])),this.api},u.prototype.getType=function(){return"main"},u.prototype.getQuerySpecList=function(){for(var t=this,e=this.content.getFeature("Visualization"),o=e.getDataSource(),i=o&&o.getId(),n=e.getSlots().getMappedSlotList(),r=new Map,a=this._getMappingCompleteLayers()||[],s=function(e){var o=n[e];t._canQuery(o)&&o.getDefinition().getDatasetIdList().forEach((function(t){-1!==a.indexOf(t)&&(r.has(t)||r.set(t,[]),r.get(t).push(o))}))},l=0;l<n.length;l++)s(l);var u=[],c=this._getMainQuerySpecList(r);u.push.apply(u,c),u.push.apply(u,this._getMinMaxQuerySpecList(r,c));for(var d=0;d<u.length;d++)u[d].dataSourceId=i;return u},u.prototype._getMappingCompleteLayers=function(){var t=this.content.getFeature("Visualization"),e=t.getDefinition().getDatasetList().map((function(t){return t.id})),o=t.getSlots();return e.filter((function(t){return o.isMappingComplete(t)}))},u.prototype._getQuerySpecLimit=function(){var t=u.DEFAULT_ROWLIMIT,e=this.content.getFeature("Visualization").getDefinition();return e.getProperty("dataRowLimit")&&(t=e.getProperty("dataRowLimit"),a.isIE()&&e.getProperty("dataRowLimitIE")&&(t=e.getProperty("dataRowLimitIE"))),t},u.prototype._getMainQuerySpecList=function(t){var e=this,o=this._getQueryDataItemBuilder(t),i=[],n=[],a=this._getQueryHints(t);return t.forEach((function(s,l){var u={id:l,type:"main",spec:{version:"1",dataItems:[],projections:[],limit:e._getQuerySpecLimit()}};s.forEach((function(t){var i,r;(i=u.spec.projections).push.apply(i,e._getProjectionsForSlot(t)),(r=u.spec.dataItems).push.apply(r,e._getDataItemsForSlot(t,o,n))}));var c=r.shouldExcludeNonProjectedRangeFilters(t,l),d=e._getFilters(l,n,c);d&&d.length&&(u.spec.filters=d),u.spec.queryHints=a;var p=e._getSuppression();p&&(u.spec.suppress=[p]),i.push(u)})),i},u.prototype._findDataItemInSlotsById=function(t,e){var o=void 0;return t.forEach((function(t){t.getDataItemList().forEach((function(t){t.getId()===e&&(o=t)}))})),o},u.prototype._getMinMaxQuerySpecList=function(t,e){var o=this,i=[],n=this.content.getPropertyValue("maintainAxisScales");return t.forEach((function(t,r){var a=!!t.find((function(t){return"attribute"===t.getDataItemList()[0].getType()}));if(n&&a){var l=e.find((function(t){return t.id===r})),u={dataItems:l.spec.dataItems,limit:l.spec.limit},c=JSON.parse(JSON.stringify(l.spec.projections));if((c=c.filter((function(e){var i=o._findDataItemInSlotsById(t,e);return i&&"fact"===i.getType()})))&&c.length){u.projections=c;var d=[];t.forEach((function(t){!1===t.getDefinition().getProperty("useInTopBottomQueries")?d=d.concat(t.getDataItemList().map((function(t){return t.getId()}))):t.isStacked()&&(d=d.concat(t.getId()))}));var p=s.buildMinMaxQueryFromDataItems(u,{itemsToExclude:d},o.dashboard.getGlassCoreSvc(".Logger"));i.push({id:r,type:"minmax",spec:p})}}})),i},u.prototype._canQuery=function(t){return!(i.isMultiMeasuresSeriesSlot(t)&&!t.isStacked())},u.prototype._isSlotWithStackedProjection=function(t){var e=i.getValidDataItems(t);return t.isStacked()&&e.length>1},u.prototype._getProjectionsForSlot=function(t){return this._isSlotWithStackedProjection(t)?[t.getId()]:i.getValidDataItems(t).map((function(t){return t.getId()}))},u.prototype._getDataItemsForSlot=function(t,e,o){var n=i.getValidDataItems(t),r=n.map((function(i){return e.build(i,t,o)}));return this._isSlotWithStackedProjection(t)&&r.push({id:t.getId(),nest:n.map((function(t){return t.getId()}))}),r},u.prototype._getQueryDataItemBuilder=function(t){var e=this.content.getFeature("Visualization.internal"),o=e.getSlots().getDataItemList(),i=o&&void 0!==l.find(o,(function(t){return"_multiMeasuresSeries"===t.getColumnId()}));return new n({internalVisualization:e,layerToQuerySlotsMap:t,applyServerSort:i})},u.prototype._getFilters=function(t,e,i){var n=this.content.getFeature("Visualization.internal"),a=n.getLocalFilters().getFilterList(),s=r.convertExcludeEmptyValuesFilters(a,n.getDataSource()),l=n.getSearchFilterList(),u=new o(n),c=!!n.getDefinition().getSlotList().find((function(t){return t.getDatasetIdList().length>1}));return u.addFiltersToSpec(s,{layerId:t,edgeFilterExceptions:e,excludeNonProjectedRangeFilters:i,projectInAllLayers:c}),u.addFiltersToSpec(l,{layerId:t}),u.hasFilterSpec()?u.getFilterSpec():null},u.prototype._isMultiEdgeSortNeeded=function(t){if(!this.content.getFeature("Visualization").getDefinition().getMultiEdgeSort())return!1;var e=0;return t.forEach((function(t){t.forEach((function(t){var o=t.getDataItemList();o.length>0&&"fact"!==o[0].getType()&&e++}))})),e>1},u.prototype._getSuppression=function(){if(this.content.getPropertyValue("suppression")===u.SUPPRESSION_NONE)return u.SUPPRESSION_NONE},u.prototype._getQueryHints=function(t){var e={},o=this._getSuppression();o&&(e.suppress=o),this._isMultiEdgeSortNeeded(t)&&(e.multiEdgeSort=!0);var i=this.content.getPropertyValue("queryRefresh");if(i&&i.autoRefresh){var n=i.value,r=void 0;switch(i.unit){case"seconds":r=parseInt(4*n/10)||1;break;case"minutes":r=parseInt(60*n*4/10)||1;break;case"hours":r=parseInt(3600*n*4/10)||1;break;default:r=1}e.dataCacheExpiry=r.toString(),e.autoRefreshTime=""+Date.now()}return e},u}(),u.DEFAULT_ROWLIMIT=3e3,u.SUPPRESSION_NONE="none",c})),define("dashboard-analytics/features/content/dataQueryExecution/api/QueryDefinitionProviderAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.supports=function(){},t.prototype.getQueryDefinitionList=function(){},t.prototype.getType=function(){},t}()})),define("dashboard-analytics/features/content/dataQueryExecution/QueryDefinitionProvider",["../../../lib/@waca/dashboard-common/dist/core/APIFactory","./api/QueryDefinitionProviderAPI"],(function(t,e){var o,i;return i=o=function(){function o(t){var e=t.content,i=t.features;_classCallCheck(this,o),this.content=e,this.features=i}return o.prototype.initialize=function(){this.features.DataQueryExecution.registerQueryDefinitionProvider(this.getAPI())},o.prototype.supports=function(){return!0},o.prototype.getAPI=function(){return this.api||(this.api=t.createAPI(this,[e])),this.api},o.prototype.getType=function(){return"main"},o.prototype.getQueryDefinitionList=function(){var t=this,e=[],i=this.features["Dashboard.QueryService2"],n=this.features.Visualization,r=!this.content.getPropertyValue("hideSummaries"),a=this.content.getPropertyValue("expandCollapse"),s=this.content.getPropertyValue("suppression")!==o.SUPPRESSION_NONE,l=this._getSlotsByDataset(n),u=this.features["Visualization.internal"],c=[];n&&(c=[].concat(n.getLocalFilters().getFilterList(),u.getSearchFilterList()));var d=function(o){var u=i.createQueryDefinition(o,t.getType());u.setSummariesEnabled(r),u.setExpandEnabled(a),u.setSuppressionEnabled(s),u.setDataSource(n.getDataSource()),l[o].forEach((function(e){var o=e.getDataItemList();return e.getDefinition().isStackItems()?t._nestDataItems({definition:u,dataItems:o}):t._composeDataItems({definition:u,dataItems:o})})),c&&c.length>0&&u.addFilters(c),e.push(u)};for(var p in l)d(p);return Promise.resolve(e)},o.prototype._getSlotsByDataset=function(t){var e={};return(t&&t.getSlots().getMappedSlotList()||[]).forEach((function(t){(t.getDefinition().getDatasetIdList()||[]).forEach((function(o){e[o]?e[o].push(t):e[o]=[t]}))})),e},o.prototype._composeDataItems=function(t){var e=t.definition,o=t.dataItems;e.createDataItemSet(o)},o.prototype._nestDataItems=function(t){var e=t.definition,o=t.dataItems,i=e;o.forEach((function(t){i=i.createDataItemSet([t])}))},o}(),o.DEFAULT_ROWLIMIT=3e3,o.SUPPRESSION_NONE="none",i})),define("dashboard-analytics/features/content/dataQueryExecution/api/QueryDefinitionModifierAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.modifyQueryDefinitionList=function(){},t.prototype.getType=function(){},t}()})),define("dashboard-analytics/features/content/dataQueryExecution/QueryDefinitionModifier",["../../../lib/@waca/dashboard-common/dist/core/APIFactory","./api/QueryDefinitionModifierAPI","./DataQueryUtils"],(function(t,e,o){return function(){function i(t){var e=t.content,o=t.dashboardAPI;_classCallCheck(this,i),this.content=e,this.dashboard=o,this.content.getFeature("DataQueryExecution").registerQueryDefinitionModifier(this.getAPI())}return i.prototype.getAPI=function(){return this.api||(this.api=t.createAPI(this,[e])),this.api},i.prototype.getType=function(){return"main"},i.prototype.modifyQueryDefinitionList=function(t){for(var e=this.content.getFeature("Visualization"),i=o.getFilterSpecListByVisualization(this.content,this.dashboard),n=o.convertExcludeEmptyValuesFilters(i,e.getDataSource()),r=o.getRelatedModelItemsForQueryHint(this.content,this.dashboard),a=this.content.getPropertyValue("queryRefresh"),s=0;s<t.length;s++){var l=t[s];l.addFilters(n),this._modifyQueryHints(l,r,a)}return t},i.prototype._modifyQueryHints=function(t,e,i){if(e||(e=o.getRelatedModelItemsForQueryHint(this.content,this.dashboard)),e.length&&t.addQueryHint({key:"preferredModelItems",spec:{preferredModelItems:e}}),i||(i=this.content.getPropertyValue("queryRefresh")),i&&i.autoRefresh)t.addQueryHint({key:"autoRefreshTime",spec:{autoRefreshTime:""+Date.now()}});else{var n=this.dashboard.getCanvas().getPropertyValue("dataCache");"automatic"!==n&&t.addQueryHint({key:"dataCacheExpiry",spec:{dataCacheExpiry:"yes"===n?"3600":"0"}})}},i}()})),define("dashboard-analytics/features/content/dataQueryExecution/api/QueryModifierAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.modifyQuerySpecList=function(){},t.prototype.getType=function(){},t}()})),define("dashboard-analytics/features/content/dataQueryExecution/DetailQueryProvider",["../../../lib/@waca/dashboard-common/dist/core/APIFactory","./api/QueryProviderAPI","./api/QueryModifierAPI","underscore"],(function(t,e,o,i){return function(){function n(t){_classCallCheck(this,n);var e=t&&t.features;e&&(this._mainProvider=e.QueryProvider,this._mainModifier=e.QueryModifier);var o=e&&e.DataQueryExecution;o&&(o.registerQueryProvider(this.getAPI()),o.registerQueryModifier(this.getAPI()))}return n.prototype.getAPI=function(){return this.api||(this.api=t.createAPI(this,[e,o])),this.api},n.prototype.getType=function(){return"detail"},n.prototype.getQuerySpecList=function(){var t=this._mainProvider&&this._mainProvider.getQuerySpecList();return i.chain(t).filter((function(t){return"main"===t.type})).map((function(t){return i.extend(t.spec,{type:"detail"}),t})).value()},n.prototype.modifyQuerySpecList=function(t){return this._mainModifier&&this._mainModifier.modifyQuerySpecList(t)},n}()})),define("dashboard-analytics/features/content/dataQueryExecution/QueryModifier",["underscore","../../../lib/@waca/dashboard-common/dist/core/APIFactory","./api/QueryModifierAPI","./DataQueryUtils","../../../filters/FilterQuerySpec"],(function(t,e,o,i,n){return function(){function r(t){var e=t.content,o=t.dashboardAPI;_classCallCheck(this,r),this.content=e,this.dashboard=o,this.eventGroups=this.dashboard.getFeature("EventGroups"),this.globalFilters=this.dashboard.getFeature("GlobalFilters"),this.content.getFeature("DataQueryExecution").registerQueryModifier(this.getAPI())}return r.prototype.getAPI=function(){return this.api||(this.api=e.createAPI(this,[o])),this.api},r.prototype.getType=function(){return"main"},r.prototype.modifyQuerySpecListForQueryHint=function(t){var e=this;return t.forEach((function(t){t.type===e.getType()&&e._addQueryHintToSpec(t.spec)})),t},r.prototype.modifyQuerySpecList=function(t){return t=this.modifyQuerySpecListForFilters(t),t=this.modifyQuerySpecListForQueryHint(t)},r.prototype.modifyQuerySpecListForFilters=function(e){var o=this,n=this.content.getFeature("Visualization"),r=i.getFilterSpecListByVisualization(this.content,this.dashboard),a=i.convertExcludeEmptyValuesFilters(r,n.getDataSource()),s=this._getFilterQuerySpecList(a,n);return s&&s.length&&t.each(e,(function(t){var e;t.type===o.getType()&&(t.spec.filters||(t.spec.filters=[]),(e=t.spec.filters).push.apply(e,s))})),e},r.prototype._getFilterQuerySpecList=function(t,e){var o=new n(e);return o.addFiltersToSpec(t),o.hasFilterSpec()?o.getFilterSpec():[]},r.prototype._addValueToQueryHints=function(t,e,o){t.queryHints||(t.queryHints={}),t.queryHints[e]=o},r.prototype._addQueryHintToSpec=function(t){var e=i.getRelatedModelItemsForQueryHint(this.content,this.dashboard);e.length&&this._addValueToQueryHints(t,"preferredModelItems",e);var o=this.content.getPropertyValue("queryRefresh");if(!o||!o.autoRefresh){var n=this.dashboard.getCanvas().getPropertyValue("dataCache");"yes"===n?this._addValueToQueryHints(t,"dataCacheExpiry","3600"):"no"===n&&this._addValueToQueryHints(t,"dataCacheExpiry","0")}},r}()})),define("dashboard-analytics/features/content/dataQueryExecution/postProcess/QueryPostProcessor",[],(function(){return function(){function t(e){_classCallCheck(this,t),this._processInfo=null,this._queryResultData=e.queryResultData}return t.prototype.destroy=function(){for(var t in this)Object.prototype.hasOwnProperty.call(this,t)&&this[t]&&delete this[t]},t.prototype._processData=function(){return this._setProcessInfo(null),this._queryResultData},t.prototype._getProcessInfo=function(){return this._processInfo},t.prototype._setProcessInfo=function(t){this._processInfo=t},t.prototype.processData=function(){return{result:this._processData(),info:this._getProcessInfo()}},t}()})),define("dashboard-analytics/features/content/dataQueryExecution/postProcess/PostProcessMeasuresAsSeries",["jquery","underscore","./QueryPostProcessor","../../../../widgets/livewidget/nls/StringResources","../../../../widgets/livewidget/query/QueryResultDataUtils","../../../../apiHelpers/SlotAPIHelper"],(function(t,e,o,i,n,r){return function(o){function a(t){_classCallCheck(this,a);var e=_possibleConstructorReturn(this,o.call(this,t));return e.visualization=t.visualization,e.queryDefinition=t.queryDefinition,e}return _inherits(a,o),a.prototype._processData=function(){if(this._queryResultData&&this._queryResultData.data&&this._canProcess()){var t=this._categorizeDataItems();this._processDataItems(t),this._processDataPoints(t)}return this._queryResultData},a.prototype._canProcess=function(){var t=this._getDatasetSlotList(),o=!1,i=!1;return e.each(t,(function(t){o=o||r.isMultiMeasuresSeriesSlot(t),i=i||r.isMultiMeasuresValueSlot(t)})),o&&i},a.prototype._getQueryProjectionId=function(t,o){if(r.isMultiMeasuresSeriesOrValue(t,o))return null;var i=t.getDataItemList(),n=e.filter(i,(function(e,o){return!r.isMultiMeasuresSeriesOrValue(t,o)}));return t.isStacked()&&n.length>1?t.getId():i[o].getId()},a.prototype._categorizeDataItems=function(){for(var t={cats:[],ords:[],commonIndices:{},mappedIndices:{},extraDataItems:[]},o=this._queryResultData.dataItems,i=e.map(o,(function(t){return t.itemClass.id})),n=[],r=this._getDatasetSlotList(),a=0;a<r.length;a++)for(var s=r[a],l=s.getDataItemList(),u=0;u<l.length;u++){var c=this._getQueryProjectionId(s,u);if(c){var d=l[u].getType(),p=i.indexOf(c),f={item:-1!==p?o[p]:void 0,slotId:s.getId(),index:-1!==p?p:void 0};void 0!==f.index&&(t.mappedIndices[f.index]=!0,"fact"!==d||s.getDefinition().isMultiMeasureSupported()||(t.commonIndices[f.index]=!0)),("attribute"===d?t.cats:t.ords).push(f),n.push(c)}}var h=e.difference(i,n);return o.forEach((function(e,o){-1!==h.indexOf(e.itemClass.id)&&(t.commonIndices[o]=!0,t.extraDataItems.push({dataItem:e}))})),t},a.prototype._processDataItems=function(t){var o=this,i=this._queryResultData,n=this._getDatasetSlotList();i.dataItems.length=0;for(var a=0;a<n.length;a++){var s=n[a],l=void 0;if("attribute"===s.getDataItemList()[0].getType())if(r.isMultiMeasuresSeriesSlot(s)){var u=e.map(t.ords,(function(t){var e=o.visualization.getDefinition().getSlot(t.slotId).getProperty("multiMeasure");if(t&&t.item&&t.item.itemClass&&e)return t.item.itemClass.h[0]}));u=e.compact(u),l=this._getSeriesDataItemforMultipleMeasures(t.cats,u,s)}else l=this._getDataItem(t.cats,s);else if(r.isMultiMeasuresValueSlot(s))l=this._getValueDataItemForMultipleMeasures(s);else{var c=this._getDataItem(t.ords,s,!0);i.dataItems.push.apply(i.dataItems,c)}l&&i.dataItems.push(l)}t.extraDataItems.forEach((function(t){t.index=i.dataItems.length,i.dataItems.push(t.dataItem)}))},a.prototype._getDataItem=function(t,e,o){var i=[];return t.forEach((function(t){t.slotId===e.getId()&&i.push(t.item)})),o?i:i[0]},a.prototype._getCategoryDataItemValues=function(t,o){if(o>-1){var i={};e.each(t.items,(function(t){i[t.t[o].u]=t.t[o]}));var n=Object.keys(i);return e.map(n,(function(t){return i[t]}))}return[]},a.prototype._getSeriesDataItemforMultipleMeasures=function(t,e,o){return{itemClass:this._getSeriesDataItemClass(t,o),items:this._getSeriesTupleItems(t,e,o)}},a.prototype._getSlotColumnIds=function(t){return e.map(t.getDataItemList(),(function(t){return t.getColumnId()}))},a.prototype._getSeriesDataItemClass=function(t,o){var n=this._getSlotColumnIds(o),a=this._getDataItem(t,o);return{id:o.getId(),h:e.map(n,(function(t,n){return r.isMultiMeasuresSeriesOrValue(o,n)?{u:r.MULTI_MEASURES_SERIES,d:i.get("MeasuresCaption")}:a&&a.itemClass?e.find(a.itemClass.h,(function(e){return e.u===t})):void 0}))}},a.prototype._getSeriesTupleItems=function(o,i,n){for(var a=this,s=[],l=[],u=this._getDataItem(o,n),c=u?e.map(u.itemClass.h,(function(t){return t.u})):[],d=this._getSlotColumnIds(n),p=function(o){var p=d[o],f=r.isMultiMeasuresSeriesOrValue(n,o),h=f?i:a._getCategoryDataItemValues(u,c.indexOf(p));if(0!=s.length&&(l=s),s=[],l.length>0)if(h.length>0)for(var g=0;g<l.length;g++)for(var m=l[g],_=h.slice(),y=0;y<_.length;y++){var v=_[y],b=0===y?m:t.extend(!0,{},m);b.t[o]=f?{u:a._getMultiMeasureMun(y),d:v.d,aggregate:v.aggregate}:v,s.push(b)}else l.forEach((function(t){t.t[o]={u:null,d:null}}));else l.push.apply(l,e.map(h,(function(t,e){return{t:[f?{u:t&&t.u?a._getMultiMeasureMun(e):"undefined",d:t&&t.d?t.d:"undefined",aggregate:t.aggregate}:t]}})))},f=0;f<d.length;f++)p(f);return u||0!==s.length||s.push.apply(s,l.slice()),s},a.prototype._getValueDataItemForMultipleMeasures=function(t){return{itemClass:{id:t.getId(),h:[{u:r.MULTI_MEASURES_VALUE,d:i.get("ValuesCaption")}]}}},a.prototype._processDataPoints=function(t){for(var e=this._allocateDataPointIndices(t.extraDataItems),o=[],i=this._queryResultData,n=this._getMultiMeasureSeriesId(),r=i.data,a=0;a<r.length;a++){var s=r[a];this._restructureDataPoint(t,s,e,o,n)}i.data=o},a.prototype._allocateDataPointIndices=function(t){var e=0,o=0,i=this._getDatasetSlotList(),n={seriesIndex:-1,valueIndex:-1,commonIndices:[],catIndices:[]};return i.forEach((function(t,i){"attribute"===t.getDataItemList()[0].getType()?r.isMultiMeasuresSeriesSlot(t)?n.seriesIndex=i:n.catIndices[e++]=i:r.isMultiMeasuresValueSlot(t)?n.valueIndex=i:t.getDataItemList().forEach((function(t,e){n.commonIndices[o++]=i+e}))})),t.forEach((function(t){return n.commonIndices[o++]=t.index})),n},a.prototype._restructureDataPoint=function(t,e,o,i,n){for(var a=0,s=0,l=[],u=[],c=void 0,d=0,p=this._getDatasetSlotList(),f=0;f<e.pt.length;f++){for(var h=e.pt[f],g=void 0,m=0;m<t.cats.length;m++)if(t.cats[m].index===f){g=t.cats[m];break}if(g){for(var _=void 0,y=0;y<p.length;y++)if(p[y].getId()===g.slotId){_=p[y];break}r.isMultiMeasuresSeriesSlot(_)?(c=g.item,d=h):l[o.catIndices[a++]]=h}else t.commonIndices[f]?l[o.commonIndices[s++]]=h:t.mappedIndices[f]&&u.push(h)}for(var v=[],b=0;b<u.length;b++){var I=u[b],S=0===b?l:l.slice();S[o.seriesIndex]=this._getSeriesIndex(t,b,c,d,v,n),S[o.valueIndex]=I,i.push({pt:S}),v.push(b)}},a.prototype._getSeriesIndex=function(t,e,o,i,r,a){var s=this._queryResultData&&this._queryResultData.dataItems&&this._queryResultData.dataItems[n.getDataItemIndex(this._queryResultData,a)],l=this._getMultiMeasureMun(e),u=o&&o.items[i].t.map((function(t){return t.u}))||[];u.push(l);var c=-1;if(0!==s.items.length)for(var d=0;d<s.items.length;d++){var p=s.items[d];if(this._isMatched(p,u,r,d)){c=d;break}}return c},a.prototype._foundInTarget=function(t,e){for(var o=!1,i=0;i<e.length;i++)if(e[i]===t){o=!0;break}return o},a.prototype._isMatched=function(t,e,o,i){if(!1===(-1!==o.indexOf(i))){for(var n=0,r=t.t.length,a=0;a<r;a++)this._foundInTarget(t.t[a].u,e)&&n++;if(n===t.t.length)return!0}return!1},a.prototype._getMultiMeasureMun=function(t){if(!this._multiMeasureSlotAPI)for(var e=this._getDatasetSlotList(),o=0;o<e.length;o++){var i=e[o];if(r.isMultiMeasuresValueSlot(i)){this._multiMeasureSlotAPI=i;break}}return this._multiMeasureSlotAPI.getDataItemList()[t].getId()},a.prototype._getMultiMeasureSeriesId=function(){var t=this._getDatasetSlotList(),o=e.find(t,(function(t){return r.isMultiMeasuresSeriesSlot(t)}));return o&&o.getId()},a.prototype._getDatasetSlotList=function(){var t=this;if(!this._datasetSlotList){var e=this.visualization.getSlots().getMappedSlotList();this._datasetSlotList=e.filter((function(e){return-1!==e.getDefinition().getDatasetIdList().indexOf(t.queryDefinition.getId())}))}return this._datasetSlotList},a}(o)})),define("dashboard-analytics/features/content/dataQueryExecution/postProcess/GroupedRows",["underscore"],(function(t){return function(){function e(t,o){_classCallCheck(this,e),this.groupIndex=t,this.aggregateIndex=o,this.bins={},this.binKeys=[]}return e.prototype._rowToKey=function(t){return t.pt[this.groupIndex]},e.prototype._getBin=function(t){var e=this.bins;return e[t]||(e[t]={}),(e=e[t]).rows||(e.rows=[],e.aggregate=0,this.binKeys.push(t)),e},e.prototype._aggregate=function(t,e){var o=e.pt[this.aggregateIndex],i=o&&o.v;i=null===i||isNaN(i)?0:Number(i),t.aggregate+=i,t.rows.push(e)},e.prototype.addRow=function(t){var e=this._rowToKey(t),o=this._getBin(e);this._aggregate(o,t)},e.prototype.sort=function(e){var o=this;this.binKeys=t.sortBy(this.binKeys,(function(t){var i=o._getBin(t);return e(i.aggregate)}))},e.prototype._reIndex=function(t,e,o){t.rows.forEach((function(t){t.pt[e]=o}))},e.prototype.flatten=function(){var e=this;return t.chain(this.binKeys).map((function(t,o){var i=e._getBin(t);return e._reIndex(i,e.groupIndex,o),i.rows})).flatten().value()},e}()})),define("dashboard-analytics/features/content/dataQueryExecution/postProcess/PostProcessLocalSort",["underscore","./QueryPostProcessor","./LocalAggregateSortInfo","./GroupedRows","../../../../widgets/livewidget/query/QueryResultDataUtils"],(function(t,e,o,i,n){return function(e){function r(t){_classCallCheck(this,r);var i=_possibleConstructorReturn(this,e.call(this,t));return i.visualization=t.visualization,i.localAggregateSortInfo=t.localAggregateSortInfo||new o(t.visualization),i}return _inherits(r,e),r.prototype._processData=function(){var t=this.localAggregateSortInfo.getSortInfo();if(this._queryResultData&&this._queryResultData.data&&t){var e=this._computeGroupedRows(t);this._processDataPoints(e),this._processDataItems(e)}return this._queryResultData},r.prototype._computeGroupedRows=function(t){for(var e=this._getGroupDataItemRefId(t.groupDataItemIds),o=n.getDataItemIndex(this._queryResultData,e),r=this._getDataItemRefId(t.aggregateDataItemId),a=n.getDataItemIndex(this._queryResultData,r),s=new i(o,a),l=this._queryResultData&&this._queryResultData.data?this._queryResultData.data.length:0,u=0;u<l;u++){var c=this._queryResultData.data[u];s.addRow(c)}s.sort((function(e){return"asc"===t.order?e:-e}));var d=n.getDataItemIndex(this._queryResultData,t.mappedSlotConditionDataItemUid);for(var p in s.bins){s.bins[p].rows.sort((function(t,e){for(var o=0;o<t.pt.length;o++)if(o===d)return t.pt[o]-e.pt[o]}))}return s},r.prototype._getDataItemRefId=function(t){var e=this.visualization.getSlots().getMappingInfo(t),o=void 0;return e&&(o=e.slot.isStacked()?e.slot.getId():t),o},r.prototype._getGroupDataItemRefId=function(e){var o=this,i=[];return t.each(e,(function(t){var e=o._getDataItemRefId(t);e&&-1===i.indexOf(e)&&i.push(e)})),i[0]},r.prototype._processDataPoints=function(t){this._queryResultData.data=t.flatten()},r.prototype._processDataItems=function(e){var o=this._queryResultData.dataItems[e.groupIndex].items,i=t.map(e.binKeys,(function(t){return o[t]}));this._queryResultData.dataItems[e.groupIndex].items=i},r}(e)})),define("dashboard-analytics/features/content/dataQueryExecution/postProcess/PostProcessCustomSort",["./QueryPostProcessor","underscore"],(function(t,e){return function(t){function o(e){_classCallCheck(this,o);var i=_possibleConstructorReturn(this,t.call(this,e));return i.visualization=e.visualization,i.visDataItems=i.visualization.getSlots().getDataItemList()||[],i.data=i._queryResultData.data,i.dataItems=i._queryResultData.edges||i._queryResultData.dataItems,i}return _inherits(o,t),o.prototype._processData=function(){var t=this;this.dataItemsMapping={},this.visDataItems.forEach((function(e){t.dataItemsMapping[e.getId()]=e}));var e=!1;return this.dataItems.forEach((function(o,i){if(o.items&&o.items.length){var n=t._getOverrides(o);-1!==t._findIndex(n,(function(t){return t.length}))&&(e=!0,o.items=t._updateDataItemWithOverrides(o,i,n))}})),!0===e&&this._queryResultData.data.sort((function(e,o){if(!e.pt||!o.pt)return 0;for(var i=0;i<t.visDataItems.length;i++){var n=e.pt[i],r=o.pt[i];if(!isNaN(n)&&!isNaN(r)&&n!==r)return n<r?-1:1;if(!isNaN(n.v)&&!isNaN(r.v)&&n.v!==r.v){var a=t.visDataItems[i].getSort();if(a&&"desc"===a.type)return n.v<r.v?1:-1;if(a&&"asc"===a.type)return n.v<r.v?-1:1}}return 0})),this._queryResultData},o.prototype._getItemPriority=function(t,e){for(var o=0,i=0;i<e.length;i++){var n=e[i],r=n.indexOf(t);-1!==r&&(o+=e.length-i+n.length-r)}return o},o.prototype._getDescendantOverrides=function(t,e){var o=this,i=[];return t.identifiers&&Object.values(t.identifiers).forEach((function(n){if(n.pu===e){i.push(n.u);var r=o._getDescendantOverrides(t,n.u);r.length&&i.push.apply(i,r)}})),i},o.prototype._getOverrides=function(t){var e=this;return(t.itemClass||t.itemClasses[0]).h.map((function(o,i){var n=e._getMatchingItem(t,i),r=n?n.getSort():void 0,a=!!(r&&r.custom&&r.custom.enabled&&r.custom.top&&r.custom.top.length),s=[];if(n&&a&&(s=r.custom.top),t.identifiers){var l=[];return s.forEach((function(o){l.push(o);var i=e._getDescendantOverrides(t,o);i&&i.length&&l.push.apply(l,i)})),l}return s}))},o.prototype._getMatchingItem=function(t,e){var o=void 0;if(t.itemClass)if(t.itemClass.h.length>1){var i=this.visualization.getSlots().getSlot(t.itemClass.id).getDataItemList();o=this.dataItemsMapping[i[e].getId()]}else o=this.dataItemsMapping[t.itemClass.id];else o=this.dataItemsMapping[t.itemClasses[0].h[e].di];return o},o.prototype._updateDataItemWithOverrides=function(t,o,i){var n=this,r={},a=t.identifiers,s=e.chain(t.items).filter((function(t){return Array.isArray(t.t)})).map((function(t,e){return t.originalIndex=e,t})).value().sort((function(t,e){for(var o=0,r=0;r<t.t.length;r++){var s=t.t[r].u||a[t.t[r].rId].u,l=e.t[r].u||a[e.t[r].rId].u;if(s!==l){var u=n._getItemPriority(s,i),c=n._getItemPriority(l,i);u!==c&&(o=c-u);break}}return o||t.originalIndex-e.originalIndex}));return s.forEach((function(t,e){r[t.originalIndex]=e,delete t.originalIndex})),this.data.forEach((function(t){t.pt&&(t.pt[o]=r[t.pt[o]])})),s},o.prototype._findIndex=function(t,e){for(var o=t.length,i=0;i<o;){var n=t[i];if(e.call(this,n,i,t))return i;i++}return-1},o}(t)})),define("dashboard-analytics/features/content/dataQueryExecution/postProcess/PostProcessMultiEdgeShowNulls",[],(function(){"use strict";return function(){function t(e){var o=e.queryResultDataPoints,i=e.queryResultData;_classCallCheck(this,t),this.multiEdgeData=o,this._queryResultData=i;var n=this._queryResultData.edges;this.firstEdgeSize=o.getFirstEdgeSize(n),this.secondEdgeSize=this.multiEdgeData.getSecondEdgeSize(n);var r=this._queryResultData.data,a=r&&r.length-1;this.clipMarker=a>0&&r[a]&&r[a].hasNext?r[a]:null,this._CELL_OUTPUT_LIMIT=3e3}return t.prototype._processData=function(){if(this._queryResultData.edges&&this._queryResultData.edges.length>1){var t=this._queryResultData.edges.length;if(2===t)this._showNulls_2Edges();else{if(3!==t)throw new Error("only 2 and 3 edge responses are supported for zero suppression disabled");this._showNulls_3Edges()}this.clipMarker&&this._queryResultData.data.push(this.clipMarker)}return this._queryResultData},t.prototype._showNulls_2Edges=function(){var t=[];return this._addFirstEdgeCellsToOutput(t),this._queryResultData.data=t,this._queryResultData},t.prototype._showNulls_3Edges=function(){for(var t=[],e=0,o=0;o<this.secondEdgeSize&&(e=this._addFirstEdgeCellsToOutput(t,e,o),!(t.length>=this._CELL_OUTPUT_LIMIT));++o);return this._queryResultData.data=t,this._queryResultData},t.prototype._addFirstEdgeCellsToOutput=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=0;i<this.firstEdgeSize;++i)if(t.push(this.multiEdgeData.getPtByEdgeIds(i,o)),t.length>=this._CELL_OUTPUT_LIMIT){this._addClipMarker(t);break}return e},t.prototype._addClipMarker=function(t){t.push({hasNext:!0})},t}()})),define("dashboard-analytics/features/content/dataQueryExecution/postProcess/QueryResultDataPoints.v2",[],(function(){"use strict";return function(){function t(e,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];_classCallCheck(this,t),this._edgeCount=e,this._measureCount=o,this._measureEdgeIdx=i,this.missingValue=n?"":null,this._measureMap={},this._createNullValueTemplate(),this._nullMeasureArray=this._createNullMeasureArray()}return t.prototype.getPtByEdgeIds=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=this._measureMap[this._getPointKey(t,e)];return!o||o[0]!==t||null!==e&&o[1]!==e?this._newNullValue(t,e):{pt:o}},t.prototype.loadPoints=function(t){for(var e={},o=0;o<t.length;++o){var i=t[o];if(i.pt){var n=i.pt[this._measureEdgeIdx],r=this._buildPointKey(i.pt,this._measureEdgeIdx),a=i.pt.length-1,s=i.pt[a];if(e[r])e[r][a+n]=s;else if(1===this._measureCount)e[r]=i.pt;else{var l=this._nullMeasureArray.slice(0);l[n]=s;var u=i.pt.slice(0,a);u=u.concat(l),e[r]=u}}}this._measureMap=e},t.prototype.getMeasureCount=function(){return this._measureCount},t.prototype.getMeasureEdgeIndex=function(){return this._measureEdgeIndex},t.prototype.getFirstEdgeSize=function(t){return this._getEdgeSize(t,this._getFirstEdgeIndex())},t.prototype.getSecondEdgeSize=function(t){var e=this._getSecondEdgeIndex();return null!==e?this._getEdgeSize(t,e):null},t.prototype._buildPointKey=function(t,e){var o=[];return t.forEach((function(i,n){n!==e&&n<t.length-1&&o.push(t[n])})),o.join(",")},t.prototype._getPointKey=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t+(null!==e?","+e:"")},t.prototype._newNullValue=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=this._nullValueTemplate.slice(0);return o[this._getFirstEdgeIndex()]=t,null!==e&&(o[this._getSecondEdgeIndex()]=e),{pt:o}},t.prototype._createNullValueTemplate=function(){this._nullValueTemplate=[];for(var t=0;t<this._edgeCount;++t)this._nullValueTemplate.push(0);this._nullValueTemplate=this._nullValueTemplate.concat(this._createNullMeasureArray())},t.prototype._createNullMeasureArray=function(){for(var t=[],e=0;e<this._measureCount;++e)t.push({v:this.missingValue});return t},t.prototype._getEdgeSize=function(t,e){var o=t[e]&&t[e].items,i=o&&o.length;return i&&o[i-1].hasNext&&i--,i},t.prototype._getFirstEdgeIndex=function(){return 0===this.getMeasureEdgeIndex()?1:0},t.prototype._getSecondEdgeIndex=function(){return 3===this._edgeCount?this._getFirstEdgeIndex()+1:null},t}()})),define("dashboard-analytics/features/content/dataQueryExecution/postProcess/PostProcessMultiEdgeMeasures",["./QueryPostProcessor","./PostProcessMultiEdgeShowNulls","./QueryResultDataPoints.v2"],(function(t,e,o){"use strict";return function(t){function i(e){var o=e.queryResultData,n=e.queryDefinition,r=e.suppressionEnabled;_classCallCheck(this,i);var a=_possibleConstructorReturn(this,t.call(this,{queryResultData:o}));return a.queryDefinition=n,a.data=a._queryResultData.data,a.dataItems=a._queryResultData.dataItems,a.suppressionEnabled=r,a}return _inherits(i,t),i.prototype._processData=function(){if(this._queryResultData.edges&&this._queryResultData.edges.length>1&&this._queryResultData.data&&this._queryResultData.data.length>0){var t=this._buildQueryResultDataPoints();if(t){var o=new e({queryResultDataPoints:t,queryResultData:this._queryResultData});this._queryResultData=o._processData()}}return this._queryResultData},i.prototype._buildQueryResultDataPoints=function(){var t=this.queryDefinition&&this.queryDefinition.getDataItemSetList().length&&this.queryDefinition.getDataItemSetList().findIndex((function(t){return t.isMeasureItemSet()}));if(-1!==t){var e=0;return this.queryDefinition.getDataItemSetList().forEach((function(t){t.isMeasureItemSet()&&(e+=t.getDataItemList().length+t.getCalculationList().length)})),this._loadQueryResultDataPoints(e,t)}return null},i.prototype._loadQueryResultDataPoints=function(t,e){var i=this._queryResultData.edges&&this._queryResultData.edges.length,n=new o(i,t,e,this.suppressionEnabled);return n.loadPoints(this.data),n},i}(t)})),define("dashboard-analytics/features/content/dataQueryExecution/postProcess/PostProcessOlapProperties",["./QueryPostProcessor"],(function(t){return function(t){function e(o){var i=o.queryResultData,n=o.visualization;_classCallCheck(this,e);var r=_possibleConstructorReturn(this,t.call(this,{queryResultData:i}));return r.visualization=n,r.visDataItems=r.visualization.getSlots().getDataItemList()||[],r.edges=r._queryResultData.edges,r}return _inherits(e,t),e.prototype._processData=function(){if(this.edges){var t={};this.visDataItems.forEach((function(e){var o=e.getMetadataColumn();o&&o.isProperty()&&(t[e.getId()]=o.getLabel())}));var e=Object.keys(t),o=-1;if(e.length){var i={};this.edges.forEach((function(n){n.itemClasses.forEach((function(n){n.h.forEach((function(n){-1!==(o=e.indexOf(n.di))&&(i[n.ihId]=t[e[o]])}))}));var r=Object.keys(i);r.length&&(r.forEach((function(t){n.identifiers&&Object.values(n.identifiers).forEach((function(e){if(e.ihId===parseInt(t)){var o=i[t];e[o]&&(e.d=e[o].v,delete e[o])}}))})),i={})}))}}return this._queryResultData},e}(t)})),define("dashboard-analytics/features/content/dataQueryExecution/postProcess/QueryPostProcessHelper",["./PostProcessMeasuresAsSeries","./PostProcessLocalSort","./PostProcessCustomSort","./PostProcessMultiEdgeMeasures","./PostProcessOlapProperties"],(function(t,e,o,i,n){return function(){function r(){_classCallCheck(this,r)}return r.postProcessMeasuresAsSeries=function(e,o,i){if(e){var n=new t({queryResultData:e,visualization:o,queryDefinition:i});n.processData(),n.destroy()}},r.postProcessAggregatedSort=function(t,o){if(t){var i=new e({queryResultData:t,visualization:o});i.processData(),i.destroy()}},r.postProcessCustomSort=function(t,e){if(t){var i=new o({queryResultData:t,visualization:e});i.processData(),i.destroy()}},r.postProcessMultiEdgeMeasures=function(t,e){var o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(e&&t&&t.edges&&t.edges.length>1){var n=new i({queryResultData:t,queryDefinition:e,suppressionEnabled:o});n.processData(),n.destroy()}},r.postProcessOlapProperties=function(t,e){if(t){var o=new n({queryResultData:t,visualization:e});o.processData(),o.destroy()}},r}()})),define("dashboard-analytics/features/content/dataQueryExecution/api/DataQueryExecutionAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.addRequestOptions=function(){},t.prototype.removeRequestOptions=function(){},t.prototype.resetRequestOptions=function(){},t.prototype.executeQueries=function(){},t.prototype.getCurrentQueryResults=function(){},t.prototype.registerQueryProvider=function(){},t.prototype.registerQueryModifier=function(){},t.prototype.registerQueryDefinitionProvider=function(){},t.prototype.registerQueryDefinitionModifier=function(){},t.prototype.registerQueryPostProcessor=function(){},t}()})),define("dashboard-analytics/features/content/dataQueryExecution/api/InternalDataQueryExecutionAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.queryChanged=function(){},t.prototype.getRawResult=function(){},t.prototype.setMinMaxQueryResults=function(){},t}()})),define("dashboard-analytics/features/dashboard/prompts/PromptsState",[],(function(){return function(){function t(){_classCallCheck(this,t),this._promptsState={}}return t.prototype.destroy=function(){this._promptsState=null},t.prototype.reset=function(){this._promptsState={}},t.prototype.updatePromptsState=function(t){var e=this;t&&t.forEach((function(t){e._promptsState[t.name]||(e._promptsState[t.name]=0),e._promptsState[t.name]++}))},t.prototype.hasInProgressPrompts=function(){return Object.keys(this._promptsState).length>0},t.prototype.hasInValidState=function(t){var e=this;return!t||void 0!==t.find((function(t){return e._promptsState[t.name]&&e._promptsState[t.name]>=3}))},t}()})),define("dashboard-analytics/features/content/dataQueryExecution/DataQueryExecution",["../../../lib/@waca/dashboard-common/dist/core/APIFactory","./postProcess/QueryPostProcessHelper","./api/DataQueryExecutionAPI","./api/InternalDataQueryExecutionAPI","./api/QueryResultsAPI","./QueryResults","./DataQueryResult","../../../widgets/livewidget/nls/StringResources","../../dashboard/prompts/PromptsState","underscore"],(function(t,e,o,i,n,r,a,s,l,u){var c,d;return d=c=function(){function c(t){_classCallCheck(this,c),this.MAIN="main",this.content=t.content,this.dashboard=t.dashboardAPI,this.logger=this.dashboard.getGlassCoreSvc(".Logger"),this._queryProviders={},this._queryModifiers={},this._queryDefinitionProviders={},this._queryDefinitionModifiers={},this._queryPostProcessors=[],this._queryResults=null,this._rawResults={},this._cachedDefinitionList=null,this._requestOptions={},this._queryKeyValuePair={},this._promptsState=new l}return c.prototype.getAPI=function(e){return"internal"===e?(this.internalAPI||(this.internalAPI=t.createAPI(this,[o,i])),this.internalAPI):(this.api||(this.api=t.createAPI(this,[o])),this.api)},c.prototype.destroy=function(){this.content=null,this.dashboard=null,this.logger=null,this._queryProviders=null,this._queryModifiers=null,this._queryDefinitionProviders=null,this._queryDefinitionModifiers=null,this._rawResults=null,this._cachedDefinitionList=null,this.api=null,this._queryResults&&(this._queryResults.destroy(),this._queryResults=null),this._promptsState.destroy(),this._promptsState=null},c.prototype.addRequestOptions=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._requestOptions=_extends({},this._requestOptions,t)},c.prototype.removeRequestOptions=function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=void 0,o=0;o<t.length;o++)e=t[o],this._requestOptions[e]&&delete this._requestOptions[e]},c.prototype.resetRequestOptions=function(){this._requestOptions={}},c.prototype._isValidOption=function(t){return this._requestOptionWhiteList&&-1!==this._requestOptionWhiteList.indexOf(t)},c.prototype.registerQueryProvider=function(t){if(t&&t.getQuerySpecList){var e=t.getType();this._queryProviders[e]||(this._queryProviders[e]=[]),this._queryProviders[e].push(t)}},c.prototype.registerQueryDefinitionProvider=function(t){if(!t.getQueryDefinitionList)throw new Error("Invalid QueryDefinitionProvider");var e=t.getType();this._queryDefinitionProviders[e]||(this._queryDefinitionProviders[e]=[]),this._queryDefinitionProviders[e].push(t)},c.prototype.getCurrentQueryResults=function(){var t=this._queryResults&&this._queryResults.getAPI();t||(t=this.content.getFeature("RenderSequence.internal").getCurrentRenderContext("data").getData("data"));return t},c.prototype.getRawResult=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data";return this._rawResults&&this._rawResults[t]},c.prototype.setMinMaxQueryResults=function(t){var e=this;if(t){var o={};u.each(t,(function(t,e){var i=t.layerId,n={itemClass:{h:[{u:t.columnId,aggregate:t.aggregate}],id:e}};o[i]?(o[i].pt.push({v:t.min},{v:t.max}),o[i].dataItems.push(n,n)):o[i]={pt:[{v:t.min},{v:t.max}],dataItems:[n,n]}})),u.each(o,(function(t,o){var i={dataItems:t.dataItems,data:[{pt:t.pt}]},r=new a(i,e._getVisualization().getSlots());e._queryResults.addResult(r,o,n.QUERY_RESULT_TYPE.MINMAX)}))}else{var i=this._queryResults.getQueryResultIdList();u.each(i,(function(t){e._queryResults.removeResult(t,n.QUERY_RESULT_TYPE.MINMAX)}))}return this._queryResults.getAPI()},c.prototype.registerQueryModifier=function(t){var e=this;if(t&&t.modifyQuerySpecList){var o=t.getType();return this._queryModifiers[o]||(this._queryModifiers[o]=[]),this._queryModifiers[o].push(t),{remove:function(){return e._queryModifiers[o].splice(e._queryModifiers[o].indexOf(t),1)}}}},c.prototype.registerQueryDefinitionModifier=function(t){var e=this;if(!t.modifyQueryDefinitionList)throw new Error("Invalid QueryDefinitionModifier");var o=t.getType();return this._queryDefinitionModifiers[o]||(this._queryDefinitionModifiers[o]=[]),this._queryDefinitionModifiers[o].push(t),{remove:function(){return e._queryDefinitionModifiers[o].splice(e._queryDefinitionModifiers[o].indexOf(t),1)}}},c.prototype.registerQueryPostProcessor=function(t){var e=this;if(t)return this._queryPostProcessors.push(t),{remove:function(){return e._queryPostProcessors.splice(e._queryPostProcessors.indexOf(t),1)}}},c.prototype.executeQueries=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.MAIN;return this._skipDataQuery()?this._buildEmptyData():this._getQueryDefinitionList(e).then((function(o){if(t._setDefinitionListCache(),t._currentV2Specs=null,o&&o.length)return t._executeQueries(o).then((function(e){return t.resetRequestOptions(),t._resetPromptState(),e}));var i=t._getQuerySpecList(e);return i?t._doExecute(i,e).then((function(e){return t.resetRequestOptions(),t._resetPromptState(),e})):Promise.reject()}))},c.prototype._resetPromptState=function(){this._promptsState.hasInProgressPrompts()?this._promptsState.reset():this._getVisualization().getSavedPrompts().reset()},c.prototype._getQuerySpecList=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.MAIN,e=this._queryProviders[t],o=this._queryModifiers[t];if(e&&e.length>0){for(var i=[],n=0;n<e.length;n++)for(var r=e[n],a=r.getQuerySpecList(),s=0;s<a.length;s++){var l=a[s];i.push(l)}if(o&&o.length>0)for(var u=0;u<o.length;u++){var c=o[u];i=c.modifyQuerySpecList(i)}return i}this.logger.error("Required query queryProvider is not registered")},c.prototype._getQueryDefinitionList=function(t){var e=this,o=this._getDefinitionListCache();if(o)return Promise.resolve(o);var i=(this._queryDefinitionProviders[t]||[]).filter((function(t){return t.supports(e.content)}));if(i.length){var n=this._queryDefinitionModifiers[t]||[];return Promise.all(i.map((function(t){return t.getQueryDefinitionList()}))).then((function(t){var o=u.flatten(t);return n.forEach((function(t){return o=t.modifyQueryDefinitionList(o)})),e._setDefinitionListCache(o)}))}return Promise.resolve(null)},c.prototype._setDefinitionListCache=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this._cachedDefinitionList=t,this._cachedDefinitionList},c.prototype._getDefinitionListCache=function(){return this._cachedDefinitionList},c.prototype._doExecute=function(t,e){var o=this,i=this._getVisualization().getSlots(),s=this.dashboard.getFeature("QueryService.internal");this.currentSpecList=[];for(var l=this._getRequestOptions(),c=0;c<t.length;c++){var d=t[c];this.currentSpecList.push(JSON.stringify(d.spec)),d.result=s.executeQuery(d.dataSourceId,d.spec,this.constructor.name,l)}var p=u.pluck(t,"result");return Promise.all(p).then((function(s){o._rawResults={},o._buildQueryTag(t,s);var l=new r(o._queryKeyValuePair.value);e===o.MAIN&&(o._queryResults=l);for(var u=function(r){var u=s[r],c=t[r].id,d=t[r].type,p=new a(u.data,i);if((e===o.MAIN||"detail"===e)&&d===n.QUERY_RESULT_TYPE.MAIN){e===o.MAIN&&(p.setPropertyValue("QuerySpec.internal",JSON.stringify(t[r].spec)),p.setPropertyValue("RawData.internal",JSON.stringify(u.data)),p.setPropertyValue("RequestTime.internal",u.requestTime||null),u.data.meta&&u.data.meta.messages&&o._setQueryFeedbackResult(u.data.meta.messages,p),o._rawResults[c]=u.data);var f={getId:function(){return c}};o._postProcess(u.data,f)}l.addResult(p,c,d)},c=0;c<s.length;c++)u(c);return l.getAPI()})).catch((function(i){var n=o._getVisualization().getDataSource();return o._handleQueryError({dataSource:n,error:i}).then((function(i){if(i&&i.length)return t.forEach((function(t){t.spec.parameterValues=i})),o._doExecute(t,e)}))}))},c.prototype._setQueryFeedbackResult=function(t,e){for(var o=0;o<t.length;o++){var i,n=void 0;if((i=t[o])[c.QUERY_LANGUAGE_PROP_NAMES.QUERY_LANGUAGE])n=c.QUERY_LANGUAGE_PROP_NAMES.QUERY_LANGUAGE;else{if(!i[c.QUERY_LANGUAGE_PROP_NAMES.TYPE])return;n=c.QUERY_LANGUAGE_PROP_NAMES.TYPE}var r=i[n];-1!==c.COGNOS_QUERY_LANGUAGE.indexOf(r)?e.setPropertyValue("QueryFeedback.cognosSQL",i.message):-1!==c.NATIVE_QUERY_LANGUAGE.indexOf(r)?e.setPropertyValue("QueryFeedback.nativeSQL",i.message):-1!==c.MDX_QUERY_LANGUAGE.indexOf(r)&&e.setPropertyValue("QueryFeedback.MDX",i.message)}},c.prototype._getRequestOptions=function(){return this._requestOptions},c.prototype._handleQueryError=function(t){var e=this,o=t.dataSource,i=t.error,n=this.dashboard.getFeature("Prompts"),r=n.isPromptFault(i),a=r&&n.getPromptSpecList(i);return r&&!this._promptsState.hasInValidState(a)?(this._promptsState.updatePromptsState(a),n.openPromptView(a,this._getVisualization()).then((function(t){return e._resolvePromptValues(t)})).catch((function(t){return Promise.reject(t)}))):o.getLocalizedName().then((function(t){return Promise.reject(e._queryFailed(t,i))})).catch((function(t){return Promise.reject(t)}))},c.prototype._executeQueries=function(t){var e=this,o=this.dashboard.getFeature("QueryService2").createQuery(t);o.registerFaultHandler(this._handleQueryError.bind(this)),o.registerPostProcessor(this._postProcess.bind(this));var i={};o.registerSaveRawDataHandler((function(t,e){i[e]={meta:t.meta,result:JSON.stringify(t)}})),this._currentV2Specs=JSON.stringify(o.getSpecList());var n=this._getRequestOptions();return o.execute(void 0,n).then((function(n){e._buildQueryDefinitionTag(o,n);var a=new r(e._queryKeyValuePair.value,o.getWarningList());return n.forEach((function(o,n){var r=t[n],s=r.getId(),l=r.getType(),u=i[s];o.setPropertyValue("QuerySpec.internal",e._currentV2Specs),u&&(o.setPropertyValue("RawData.internal",u.result),u.meta&&u.meta.messages&&e._setQueryFeedbackResult(u.meta.messages,o)),a.addResult(o,s,l)})),a.getAPI()}))},c.prototype._skipDataQuery=function(){return!!this._getVisualization().getDefinition().getProperty("noDataQuery")},c.prototype._buildEmptyData=function(){var t=this._getVisualization().getSlots(),e=t.getMappingInfoList(),o=u.pluck(e,"dataItem"),i={dataItems:u.map(o,(function(t){var e={itemClass:{h:[{u:t.getColumnId(),d:t.getLabel()}],id:t.getId()}},o=t.getAggregation();return!t.hasDefaultAggregation()&&o?e.itemClass.h[0].aggregate=o:e.items=[],e})),data:[]},n=new a(i,t),s=new r;return s.addResult(n),Promise.resolve(s.getAPI())},c.prototype._resolvePromptValues=function(t){var e=[],o=["name","values","dataType","capabilities","modelFilterItem"];u.each(t,(function(t){var i=u.pick(t,o);e.push(i)})),this._resetSavedPrompts(e);var i=JSON.parse(JSON.stringify(e));return u.each(i,(function(t){if(!t.capabilities.optional){var e=void 0;e=t.values[0].u?"memberUniqueName"===t.dataType||"hierarchyUniqueName"===t.dataType?"u":"d":"memberUniqueName"===t.dataType||"hierarchyUniqueName"===t.dataType?"value":"label",t.values=u.pluck(t.values,e)}})),i},c.prototype._resetSavedPrompts=function(t){var e=this._getVisualization().getSavedPrompts(),o=null;t&&t.length&&(o={},t.forEach((function(t){o[t.name]=t}))),e.reset(o)},c.prototype._postProcess=function(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this._invokeRegisteredPostProcessors(t),e.postProcessMeasuresAsSeries(t,this._getVisualization(),o);var i="none"!==this.content.getPropertyValue("suppression");e.postProcessMultiEdgeMeasures(t,o,i),e.postProcessAggregatedSort(t,this._getVisualization()),e.postProcessCustomSort(t,this._getVisualization()),e.postProcessOlapProperties(t,this._getVisualization())},c.prototype._invokeRegisteredPostProcessors=function(t){this._queryPostProcessors.forEach((function(e){return e.process(t)}))},c.prototype._buildGenericQueryTag=function(t,e){var o="",i=!1;t.forEach((function(t,n){t&&(o=o.concat(JSON.stringify(t)));var r=e[n];r.ETag?o=o.concat(r.ETag):i=!0})),u.isEmpty(this._queryKeyValuePair)?(this._queryKeyValuePair.key=o,this._queryKeyValuePair.value=100):(this._queryKeyValuePair.key!==o||i)&&(this._queryKeyValuePair.key=o,this._queryKeyValuePair.value++)},c.prototype._buildQueryTag=function(t,e){this._buildGenericQueryTag(t.map((function(t){return t.spec})),e)},c.prototype._buildQueryDefinitionTag=function(t,e){this._buildGenericQueryTag(t.getSpecList(),e)},c.prototype._queryFailed=function(t,e){var o=!1;if("promptingIsDisabled"===e.message)return e;var i="dwErrorRunningQuery",n=void 0;if("staleRequest"===e.reason)i="dwErrorStaleRequest";else if("geoQueryFail"===e.reason)i="dwErrorGeoData";else if("cancelPromptSignon"===e.reason)i="dwPromptSignonCancelWarning";else if("unSupportedPromptType"===e.reason)i=e.reason;else if(e.responseJSON&&e.responseJSON.errors){var r=e.responseJSON.errors[0];"DSS-GEN-0002"===(n=r&&r.code)?o=!0:"DSS-GEN-0001"===n?i=s.get("errorSourceNotFound",{sourceName:t}):"XQE-PLN-0226"===n?i=s.get("errorActionNotSupported",{sourceName:t}):"XQE-PLN-0214"===n?i=s.get("errorMeasureNotSupportedOnMultiEdges"):"XQE-MDX-0020"===n?i=s.get("errorExceedAllowableValue"):r&&r.message&&(i=r.message)}"staleRequest"!==e.reason&&this.content.getFeature("state.internal").setError(Object.assign(new Error,{msg:i,code:n}));var a={datasetName:t};return Object.assign(new Error,{msg:i,param:a,hasUnavailableMetadataColumns:o,errorInfo:e})},c.prototype.queryChanged=function(){return this._getVisualization().getSlots().isMappingComplete()?this._queryChanged():Promise.resolve(!1)},c.prototype._queryChanged=function(){var t=this;return this._getQueryDefinitionList(this.MAIN).then((function(e){var o=!1;if(e&&e.length){var i=t.dashboard.getFeature("QueryService2").createQuery(e,"v2"),n=i&&i.getSpecList();(o=JSON.stringify(n)!==t._currentV2Specs)||t._setDefinitionListCache()}else{var r=t._getQuerySpecList();r||t.logger.error("Could not build query spec"),o=!t._queryResults||u.some(t.currentSpecList,(function(t,e){var o=r[e]&&r[e].spec;return JSON.stringify(o)!==t}))}return o}))},c.prototype._getVisualization=function(){return this._visualization||(this._visualization=this.content.getFeature("Visualization.internal")),this._visualization},c}(),c.QUERY_LANGUAGE_PROP_NAMES={TYPE:"type",QUERY_LANGUAGE:"queryLanguage"},c.COGNOS_QUERY_LANGUAGE=["cognosSQL"],c.NATIVE_QUERY_LANGUAGE=["SQL","nativeSQL"],c.MDX_QUERY_LANGUAGE=["MDX"],d})),define("dashboard-analytics/features/content/dataQueryExecution/api/SummaryQueryModifierAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.addDataItemIdList=function(){},t.prototype.resetDataItemIdList=function(){},t}()})),define("dashboard-analytics/features/content/dataQueryExecution/SummaryQueryModifier",["../../../lib/@waca/dashboard-common/dist/core/APIFactory","../dataQueryExecution/api/QueryModifierAPI","./api/SummaryQueryModifierAPI","underscore"],(function(t,e,o,i){return function(){function n(t){_classCallCheck(this,n);var e=t&&t.features;e&&(this._mainModifier=e.QueryModifier);var o=e&&e.DataQueryExecution;o&&o.registerQueryModifier(this.getAPI()),this._dataItemLists=[]}return n.prototype.getAPI=function(){return this.api||(this.api=t.createAPI(this,[e,o])),this.api},n.prototype.getType=function(){return"summary"},n.prototype.resetDataItemIdList=function(){this._dataItemLists=[]},n.prototype.addDataItemIdList=function(t){this._dataItemLists.push(t)},n.prototype.modifyQuerySpecList=function(t){var e=this;t=this._mainModifier&&this._mainModifier.modifyQuerySpecList(t);var o=[],n=this._dataItemLists.shift();return t.forEach((function(t){if(t.spec.dataItems=i.filter(t.spec.dataItems,(function(t){if(n.indexOf(t.id)<0){var i=e._getSummaryExtraFilter(t);return!!i&&(o.push(i),!0)}return!0})),t.spec.projections=i.filter(t.spec.projections,(function(t){return n.indexOf(t)>-1})),o.length){t.spec.filters=t.spec.filters?(r=t.spec.filters,a=o,r.push.apply(r,a),r):o}var r,a})),t},n.prototype._getSummaryExtraFilter=function(t){var e=null;return i.each(t.selection,(function(o){"order"!==o.operation&&(e={type:"pre",expression:{operator:"in",itemId:t.itemId,valueDataItem:t.id}})})),e},n}()})),define("dashboard-analytics/features/content/dataQueryExecution/SummaryQueryProvider",["../../../lib/@waca/dashboard-common/dist/core/APIFactory","./api/QueryProviderAPI","underscore"],(function(t,e,o){return function(){function i(t){_classCallCheck(this,i);var e=t&&t.features;e&&(this._mainProvider=e.QueryProvider);var o=e&&e.DataQueryExecution;o&&o.registerQueryProvider(this.getAPI())}return i.prototype.getAPI=function(){return this.api||(this.api=t.createAPI(this,[e])),this.api},i.prototype.getType=function(){return"summary"},i.prototype.getQuerySpecList=function(){var t=this._mainProvider&&this._mainProvider.getQuerySpecList();return o.chain(t).filter((function(t){return"main"===t.type})).map((function(t){return o.extend(t.spec,{type:"summary"}),t})).value()},i}()})),define("dashboard-analytics/features/content/dataQueryExecution/V2QueryDefinitionModifier",["../../../lib/@waca/dashboard-common/dist/core/APIFactory","./api/QueryDefinitionModifierAPI"],(function(t,e){return function(){function o(t){var e=t.content,i=t.dashboardAPI,n=t.features;_classCallCheck(this,o),this.content=e,this.dashboard=i,n.DataQueryExecution.registerQueryDefinitionModifier(this.getAPI())}return o.prototype.getAPI=function(){return this.api||(this.api=t.createAPI(this,[e])),this.api},o.prototype.getType=function(){return"main"},o.prototype.modifyQueryDefinitionList=function(t){var e=!1;return"Crosstab"===this.content.getFeature("Visualization").getType()&&(e=!0),this.dashboard.getGlassCoreSvc(".FeatureChecker").checkValue("dashboard","expandCollapse","disabled")&&(e=!1),e?t:[]},o}()})),define("dashboard-analytics/features/content/slotActions/autoBinAction/BinAction",["../../../../lib/@waca/dashboard-common/dist/core/APIFactory","../../../../widgets/livewidget/nls/StringResources","../api/SlotActionsProviderAPI","../../../../apiHelpers/SlotAPIHelper"],(function(t,e,o,i){return function(){function n(t){var e=t.content,o=t.dashboardAPI,i=t.features;_classCallCheck(this,n),this.content=e,this.dashboard=o,this.icons=i&&i["Dashboard.Icons"],this.content.getFeature("SlotActions").registerProvider("autoBinAction",this.getAPI())}return n.prototype.getAPI=function(){return this.api||(this.api=t.createAPI(this,[o])),this.api},n.prototype._isOlap=function(t,e){return!!(t.isOlapPackage()||e&&e.getMetadataColumn().isOlapColumn())},n.prototype._supportAction=function(t,e){var o=this.content.getFeature("Visualization"),n=o.getDataSource(),r=t.getDataItemList()[e],a=this._isOlap(n,r),s=!n||a,l=o.getDefinition();return void 0!==e&&l&&l.getProperty("canApplyBinning")&&!s&&!(i.isMultiMeasuresSeriesSlot(t)||i.isMultiMeasuresValueSlot(t))&&i.doesDataItemSupportBinning(t,r)},n.prototype._getViewState=function(t,e){var o=this.content.getFeature("Visualization").getDefinition();if(t){var i=t.getDataItemList()[e];if(i)return{height:280,width:400,defaultNumberOfBins:o.getProperty("binningConfig").defaultNumberOfBins,binningStateCb:i.getBinning.bind(i)}}return null},n.prototype._findDataItemIndex=function(t){var e=void 0;t.getDataItemList().length>0&&t.getDataItemList().find((function(t,o){var i=t.getMetadataColumn();if(i&&"fact"===i.getType())return e=o,!0}));return e},n.prototype.getSlotActionList=function(t,o){var i=this.content.getFeature("Visualization").getSlots().getSlot(t);if(null==o&&(o=this._findDataItemIndex(i)),i&&this._supportAction(i,o)){var n=this._getViewState(i,o),r=this.icons.getIcon("dashboard-autobin");return[{name:"autoBinAction",label:e.get("autoBinActionText"),icon:r.id,type:"NextView",view:{module:"dashboard-analytics/dialogs/AutobinDialog",state:n},actions:{apply:this._applyBinning.bind(this,i,o)}}]}return[]},n.prototype._applyBinning=function(t,e,o){var i=t.getDataItemList()[e];o?i.setBinning({bins:o.numberOfBins}):i.setBinning(null)},n}()})),define("dashboard-analytics/features/content/visIndicators/api/VisIndicatorsAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.registerProvider=function(){},t.prototype.getIndicatorList=function(){},t}()})),define("dashboard-analytics/features/content/visIndicators/VisIndicators",["../../../lib/@waca/dashboard-common/dist/core/APIFactory","./api/VisIndicatorsAPI","underscore"],(function(t,e,o){return function(){function i(){_classCallCheck(this,i),this.api=t.createAPI(this,[e]),this.providers=[]}return i.prototype.registerProvider=function(t){this.providers.push(t)},i.prototype.getIndicatorList=function(){var t=[];return o.each(this.providers,(function(e){e.getIndicatorList&&t.push.apply(t,e.getIndicatorList())})),t},i.prototype.getAPI=function(){return this.api},i}()})),define("dashboard-analytics/features/content/visIndicators/api/VisIndicatorsProviderAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.getIndicatorList=function(){},t}()})),define("dashboard-analytics/features/content/visIndicators/conditionalViewIndicator/api/ConditionalViewIndicatorAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.update=function(){},t}()})),define("text!dashboard-analytics/features/content/visIndicators/conditionalViewIndicator/templates/conditionalViewIndicator.html",[],(function(){return'<div role="button" class="dataWidgetIcon widgetConditionalView" tabindex="0" title="{{=it.buttonTitle}}" aria-label="{{=it.ariaLabel}}">\n\t<div class ="{{=it.buttonClass}}">\n\t</div>\n</div>'})),define("text!dashboard-analytics/visualizations/renderer/conditions/templates/ConditionalFlyoutView.html",[],(function(){return'<div class="toolbarIcon toolbarItem">\n\t<button title="{{=it.remove_slider_handle}}">\n\t\t<svg class="svgIcon conditionalFormattingIcon">\n\t\t\t<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#{{=it.trashIcon}}"></use>\n\t\t</svg>\n\t</button>\n</div>\n'})),define("dashboard-analytics/visualizations/renderer/conditions/ConditionalFlyoutView",["jquery","doT","../../../widgets/livewidget/nls/StringResources","../../../lib/@waca/dashboard-common/dist/utils/FlyoutContentBase","../../../data/models/ConditionalPalette","text!./templates/ConditionalFlyoutView.html"],(function(t,e,o,i,n,r){"use strict";var a=e.template(r),s=i.extend({init:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s.inherited("init",this,arguments),this.visModel=t.visModel||t.viewOptions.visModel,this.widget=t.widget||t.viewOptions.widget,this.palette=t.palette||t.viewOptions.palette,this.slider=t.slider||t.viewOptions.slider,this.icons=t.viewOptions.icons,this.handlePosition=t.handlePosition||t.viewOptions.handlePosition,this.isVisible=!1},setFocus:function(){t(".conditionalFormattingIcon").parent().focus()},onPopupShown:function(){this.isVisible=!0},onPopupClosed:function(){this.isVisible=!1},onDeleteClicked:function(){this.popupParent.close();var t=n.createUndoRedoTransactionOptionsId("removeStyle");this.palette.removeStyle(this.handlePosition,t),this.visModel.updateConditionalPalette().then(function(){this.slider.removeHandle(this.handlePosition)}.bind(this))},getRenderedHtml:function(){var e=this.icons.getIcon("common-remove-trash"),i=a({remove_slider_handle:o.get("remove_slider_handle"),trashIcon:e.id}),n=t(i).on("primaryaction",this.onDeleteClicked.bind(this));return t('<div class="toolbar"></div>').append(n)[0]}});return s})),define("dashboard-analytics/visualizations/renderer/conditions/ConditionalPalettePicker",["jquery","underscore","../../../lib/@waca/core-client/js/core-client/ui/core/View","../../../util/DashboardFormatter","../../../lib/@waca/core-client/js/core-client/ui/MultiHandleSlider","../../../lib/@waca/dashboard-common/dist/utils/Flyout","../../../data/models/ConditionalPalette","./ConditionalFlyoutView","jquery-ui","touch-punch"],(function(t,e,o,i,n,r,a,s){"use strict";var l=o.extend({init:function(t){l.inherited("init",this,arguments),e.extend(this,t)},render:function(t){var e=this,o=this.slider;return this._createSlider().then((function(){e.slider.render(),!o&&e._setEvents(),t&&e._resize(t)}))},_createSlider:function(){var t=this;return this.slider&&this.slider.$slider&&this.slider.$slider.slider("instance")?Promise.resolve():(0===this.palette.getSize()&&this.widget?this.visModel.createDefaultConditionalPalette(this.min,this.max):Promise.resolve()).then((function(){t._values=[];for(var e=t.palette.getSize(),o=0;o<e;o++){var r=t.palette.getColor(o);t._values.push(r.getValue())}t.processNext=!0,t.hasSlid=!1,t.canAddHandle=!1,t.slider=new n({$el:t.$el,min:t.min,max:t.max,maxHandles:t.visModel.getConditionalPaletteLength()+1,values:t._values,format:function(t){return i.format(t,this.format)}.bind(t),styles:t.palette.getColors().models,addHandleTrack:!0,sliderClasses:"ConditionalPalettePicker",refreshSlider:function(t,e){this.$slider&&this.$slider.slider("instance")&&(this.$slider.slider("values",t),this._createSliderElements({target:this.$slider[0]}),e&&e.length>0&&(this.styles=e,this._createRangeDivs(this.$slider)))},sliderCallback:{slidechange:function(t){var e=a.createUndoRedoTransactionOptionsId("updateStyleValues");this.palette.updateStyleValues(t,e),this.slider.maxValue.original===this.slider.maxValue.value&&this.slider.minValue.original===this.slider.minValue.value||this.palette.trigger("palette:refreshSlider",t)}.bind(t)},sliderEvents:[{event:"slide",callback:function(){this.hasSlid=!0}.bind(t)},{event:"mousedown touchstart",element:"div.ui-slider-handle",callback:t._slideHandleMousedownEvent.bind(t)},{event:"mouseup touchend",element:"div.ui-slider-handle",callback:t._slideHandleMouseupEvent.bind(t)},{event:"mousedown touchstart",element:"div.sliderBarAddTrack, div.slider-handle-value",callback:function(t){this.flyout&&this.flyout.close(),this.canAddHandle=!0,t.stopPropagation()}.bind(t)},{event:"mouseup touchend",element:"div.sliderBarAddTrack",callback:t._sliderAddHandle.bind(t)},{event:"mousemove mouseout touchmove",element:"div.sliderBarAddTrack",callback:t._sliderGhostHandle.bind(t)}]})}))},_resize:function(t){var e=this.$el.find(".ConditionalPalettePicker");e.css("left",t.x1+"px"),e.css("width",t.x2-t.x1+"px")},remove:function(){this._deleteFlyout(),this.slider&&this.slider.remove(),this.palette&&this.palette.off("palette:refreshSlider"),l.inherited("remove",this,arguments)},_setEvents:function(){this.palette.on("palette:refreshSlider",function(){var t=this.palette.getColors().models,o=e.map(t,(function(t){return t.value}))||[];this.slider.reRender({styles:t,values:o})}.bind(this))},_createFlyout:function(t){var e=this.slider.$handles.index(t.currentTarget),o={container:document.body,selector:t.currentTarget,popoverClass:"actionToolbarPopover",viewport:"body",viewClass:s,viewOptions:{visModel:this.visModel,widget:this.widget,palette:this.palette,slider:this.slider,icons:this.icons,handlePosition:e}};this.flyout=new r(o),this.flyout.open(t.currentTarget)},_deleteFlyout:function(){this.flyout&&(this.flyout.close(),this.flyout.remove(),delete this.flyout)},_slideHandleMousedownEvent:function(t){this.hasSlid=!1,this.slider.getHandleCount()>this.slider.minHandles&&this.flyout&&(this.flyout.selector===t.currentTarget&&this.processNext?this.processNext=!1:this.processNext=!0,this.flyout.view.isVisible?this.flyout.close():this.processNext=!0)},_slideHandleMouseupEvent:function(t){this.slider.getHandleCount()>this.slider.minHandles&&!this.hasSlid&&(this.flyout?this.flyout.selector===t.currentTarget&&!this.flyout.view.isVisible&&this.processNext?this.flyout.open(t.currentTarget):this.flyout.selector!==t.currentTarget&&this.flyout.destroy().then(this._deleteFlyout.bind(this)).then(this._createFlyout.bind(this,t)):this.flyout||this._createFlyout(t))},_calculateSliderValue:function(e){var o=e.clientX;"touchend"!==e.type&&"touchmove"!==e.type||(o=e.originalEvent.changedTouches[0].clientX);var i=t(e.target),n=i.width(),r=i.offset(),a=this.slider.$slider.slider("option"),s=(o-r.left)/n*(a.max-a.min)+a.min;return 1===a.step&&(s=Math.round(s)),s},_sliderAddHandle:function(t){if(!0===this.canAddHandle&&this.slider.getHandleCount()<this.slider.maxHandles){var e=this._calculateSliderValue(t),o={value:e,color:"",bgcolor:"",pattern:""},i=a.createUndoRedoTransactionOptionsId("addColor");this.palette.addColor(o,i),this.visModel.updateConditionalPalette().then(function(){this.slider.styles=this.palette.getColors().models,this.slider.addHandle(e),this.slider.$slider.addClass("ConditionalPalettePicker"),this.canAddHandle=!1}.bind(this)),t.stopPropagation(),t.preventDefault()}},_sliderGhostHandle:function(t){if("mouseout"===t.type)this.slider.removeGhostHandle();else if(this.slider.getHandleCount()<this.slider.maxHandles){var e=this._calculateSliderValue(t);e>=this.slider.min&&e<=this.slider.max&&this.slider.displayGhostHandle(t,e)}}});return l})),define("dashboard-analytics/lib/@waca/dashboard-common/dist/utils/Rave2RenderHelper",["../lib/@waca/core-client/js/core-client/ui/core/Class","underscore"],(function(t,e){return t.extend({_raveView:null,init:function(t){this._raveView=t.raveView},applyProps:function(){this._applyNativePros(),this._applyRAVE2VisProps()},_applyNativePros:function(){this._raveView&&this._raveView.visModel&&this._setOrdinalSlotDomain()},_applyRAVE2VisProps:function(){var t=this._raveView._rave2Vis;this.getPropertiesToSet().forEach((function(e){t.property(e.id,e.value)}))},getPropertiesToSet:function(){if(!this._raveView||!this._raveView._rave2Vis)return[];var t=[];return e.each(this._raveView.visModel.properties.getModels(),function(e){if(e.mapValuesFunction){var o=e.mapValuesFunction(e,this._raveView.visModel,{maxDomainValue:this._maxDomainValue});o&&o.forEach((function(e){t.push(e)}))}else"colorPalette"!==e.id&&void 0!==e.value&&null!==e.value&&t.push({id:e.id,value:e.value})}.bind(this)),t},getVisId:function(){return this._raveView.visModel.definition.id},_setOrdinalSlotDomain:function(){this.isDomainInformationNeededForVisuzalition()?e.each(this._raveView.visModel.getDataSlots(),function(t){if(this.isDomainSupportedForSlot(t)){var e=this.getDomainForSlot(t),o=this.getRAVE2DataSet().slot(t.definition.id);if(!o)return;var i=o.entry();i&&i.domain(e)}}.bind(this)):this._maxDomainValue=null},isDomainInformationNeededForVisuzalition:function(){var t=this._raveView.visModel.getPropertyById("maintainAxisScales");return null!==t&&!0===t.getValue()},isDomainSupportedForSlot:function(t){return"ordinal"===t.getDefinition().type},getRAVE2DataSet:function(){if(this._raveView._rave2Vis){var t=this.getDefaultDataModel();if(t){var e=t.dataSets();if(e&&e.length>=1)return this._raveView._visDataModel.dataset(e[0].id())}}return null},getDefaultDataModel:function(){if(this._raveView._rave2Vis){var t=this._raveView._rave2Vis.getDataModels();return t&&t.length>=1?t[0]:null}},getDomainForSlot:function(t){var e=this._raveView.visModel,o=e.getQueryResults();if(e.definition.useOrdinalNamesAsCategoryValues)return[o.minSeriesRange,o.maxSeriesRange];if(t.getMapping()&&"ordinal"===t.definition.type){var i=this.getFactSpecField(t,o.getFieldValues(t.getId())),n=i.min===i.max?i.min+1:i.max;return this._maxDomainValue=this._maxDomainValue&&this._maxDomainValue>n?this._maxDomainValue:n,[i.min,n]}return[]},getFactSpecField:function(t,e){this._trimXAndYAxisRange(t.getId(),e);var o="yAxis"===t.getId()&&"log"===this.yAxisScale||"xAxis"===t.getId()&&"log"===this.xAxisScale,i=e?e.min:0;i=0===i&&o?.01:i;var n=e?e.max:0;return n=n===i?i+1:n,{format:{scientific:"never",fitMethod:"none"},id:t.getId(),label:t.getLabel(),min:i,max:n}},_trimYAxisRange:function(t){void 0!==this.yMin&&(t.min=this.yMin),void 0!==this.yMax&&this.yMax!==this.yMin&&(t.max=this.yMax),t.max<this.preferredYMin&&(t.max=this.preferredYMin)},_trimXAxisRange:function(t){void 0!==this.xMin&&(t.min=this.xMin),void 0!==this.xMax&&this.xMax!==this.xMin&&(t.max=this.xMax),t.max<this.preferredXMin&&(t.max=this.preferredXMin)},_trimXAndYAxisRange:function(t,e){"yAxis"===t?this._trimYAxisRange(e):"xAxis"===t&&this._trimXAxisRange(e)}})})),define("text!dashboard-analytics/visualizations/renderer/conditions/templates/HistogramView.html",[],(function(){return'<div class="resizeEdge border borderRight" style="display:{{= it.select ? \'block\' : \'none\'}}"></div>\n<div class="resizeEdge border borderBottom" style="display:{{= it.select ? \'block\' : \'none\'}}"></div>\n<div class="resizeEdge border borderLeft" style="display:{{= it.select ? \'block\' : \'none\'}}"></div>\n<div class="histogramTitle">{{= it.title}}</div>'})),define("dashboard-analytics/visualizations/renderer/conditions/HistogramView",["../../../lib/@waca/core-client/js/core-client/ui/core/View","../../../widgets/livewidget/nls/StringResources","./ConditionalPalettePicker","jquery","underscore","rave","../../../lib/@waca/dashboard-common/dist/utils/Rave2RenderHelper","text!./templates/HistogramView.html","../../../widgets/livewidget/query/VisQueryBuilder","../../../DynamicFileLoader"],(function(t,e,o,i,n,r,a,s,l,u){"use strict";var c=t.extend({templateString:s,_isRendering:!1,init:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};c.inherited("init",this,arguments),this.visualization=t.visualization,this.data=this._getConditionalData(this.visualization.getSlots().getMappedSlotList(),t.data),this.visModel=t.visModel,this.heatDataItem=this.visualization.getSlots().getSlot("heat").getDataItemList()[0],this.visQueryBuilder=new l({visAPI:t.visModel}),this.icons=t.icons,this._renderHelper=new a({raveView:this}),this.$el.addClass("conditionalFormatView")},render:function(t){var e=this;if(!this._isRendering)return this._isRendering=!0,t=t||{select:!0},this.visModel.getConditionalMinMaxValue().then((function(o){return e._setMinMax(o.min,o.max),e._initHistogram(t).then(function(t){var e=this._renderHistogram(t);return this._renderConditionalPicker(e)}.bind(e))})).catch((function(t){return e._isRendering=!1,Promise.reject(t)}))},remove:function(){this.palettePicker&&this.palettePicker.remove(),this.visQueryBuilder=null,this._renderHelper=null,this.$el&&this.$el.parent()&&this.$el.parent().off("mousedown.histogramView dragstart.histogramView touchstart.histogramView touchmove.histogramView"),c.inherited("remove",this,arguments)},_setMinMax:function(t,e){var o=this._getConditionalPalette();if(o){var i=o.getSize();i>0?(this.min=Math.min(t,o.getColor(0).getValue()),this.max=Math.max(e,o.getColor(i-1).getValue())):(this.min=t,this.max=e),this.min=Math.floor(this.min),this.max=Math.ceil(this.max)}},refresh:function(t){return(t=t||{}).force||this.width===this.$el.width()&&!this._hasPaletteColorCountChanged()||(t.force=!0),t.force||t.data?(t.data&&(this.data=this._getConditionalData(this.visualization.getSlots().getMappedSlotList(),t.data)),t.force||this._dataChanged?(this.$el.empty(),this.render(t)):Promise.resolve(this)):(this._toggleBorders(t.select),Promise.resolve(this))},_hasPaletteColorCountChanged:function(){return!!(this.palettePicker&&this.palettePicker.slider&&this.visModel)&&this.palettePicker.slider.maxHandles!==this.visModel.getConditionalPaletteLength()+1},getVisModel:function(){return this.visModel},_toggleBorders:function(t){t?this.$el.find(".border").show():this.$el.find(".border").hide()},_getConditionalData:function(t,e){var o=this;this._dataChanged=!1;var i=-1,r=void 0,a=0,s=e.getResult(),l=s.getRowCount();this.data&&l===this.data.length||(this._dataChanged=!0),n.each(t,(function(t){"heat"===t.getId()?r=++i:t.getDefinition().getProperty("repeats")?i+=t.getDataItemList().length:i++,a+=o._getRankColumnCount(t)}));var u=[];if((r+=a)>-1)for(var c=0;c<l;c++){var d=s.getValue(c,r);!this._dataChanged&&this.data&&(this._dataChanged=d.value!==this.data[c]),u.push(d.value)}return u},_getRankColumnCount:function(t){var e=0,o=t.getDataItemList();return n.each(o,(function(t){var o=t.getTopBottom();o&&o.rank&&e++})),e},_getConditionalMapping:function(t){return n.find(t,(function(t){return"heat"===t.getId()}))},_shapeHistogramData:function(){for(var t=[],e=(this.max-this.min)/10,o=0;o<10;o++)t[o]=[String(o*e),0];return n.each(this.data,function(o){if(null!=o){var i=Math.min(9,Math.floor((o-this.min)/e));t[i=i<0?0:i][1]++}}.bind(this)),t},_setHistogramProps:function(t){var o=[{name:"axis.x.title.display",value:!1},{name:"axis.x.line.display",value:!1},{name:"axis.x.labels.display",value:!1},{name:"axis.x.gridlines.display",value:!1},{name:"axis.x.scale.includeZero",value:!0},{name:"axis.y.title.display",value:!0},{name:"axis.y.line.display",value:!1},{name:"axis.y.labels.display",value:!1},{name:"axis.y.gridlines.display",value:!0},{name:"axis.y.scale.includeZero",value:!0},{name:"axis.y.title.text",value:e.get("HistogramYAxisTitle")},{name:"axis.y.title.style.font-size",value:"11px"},{name:"layout.axissize.left.preferred",value:"0"},{name:"layout.axissize.left.min",value:"0"},{name:"layout.axissize.bottom.preferred",value:"0"},{name:"layout.axissize.bottom.min",value:"0"},{name:"layout.legendsize.preferred",value:"0"},{name:"layout.legendsize.min",value:"0"},{name:"layout.padding",value:"0"},{name:"layout.chart.padding.top",value:"0"},{name:"layout.chart.padding.left",value:"0"},{name:"layout.chart.padding.bottom",value:"1"},{name:"layout.chart.padding.right",value:"0"},{name:"legend.display",value:!1},{name:"lineWithPoints.interpolate",value:"basis"},{name:"lineWithPoints.display",value:"line"}];n.each(o,function(e){t.property(e.name,e.value)}.bind(this))},_initCanvas:function(t){this.$el.empty(),t.title=e.get("conditionalPalettePickerLabel",{title:this.heatDataItem.getLabel()}),this.$el.append(this.dotTemplate(t)),this.$el.parent().on("mousedown.histogramView dragstart.histogramView touchstart.histogramView touchmove.histogramView",(function(t){i(".popover").popover("hide"),t.stopPropagation(),t.preventDefault()})),this.width=this.$el.width()},_initHistogram:function(t){var e=this;return u.load(["rave-library-line"]).then((function(o){var i=o[0];return e._rave2Vis=i.create("line"),e._visDataModel=e._rave2Vis.createDataModel(e._renderHelper.getDefaultDataModel().id()),e._disableRaveActions(e._rave2Vis),e._setHistogramProps(e._rave2Vis),e._initCanvas(t),e._rave2Vis}))},_renderHistogram:function(t){var e=this._shapeHistogramData(),o=this._renderHelper.getRAVE2DataSet();return o.data(e),o.slot("x").push().type("string").accessor((function(t){return t[0]})),o.slot("y").push().type("numeric").accessor((function(t){return t[1]})),t.node(r.select(this.$el[0]).append("svg:svg").attr("class","rave-svg histogram-svg")),t.render(),this._calculateHistogramCoordinate()},_getHistogramChartElement:function(){return this.$el.find(".element-shape")},_calculateHistogramCoordinate:function(){var t=this._getHistogramChartElement();if(t.length>0){var e=t.attr("d");if(e){var o=e.split(/[CML]+/),i=o[1].split(","),n=o[o.length-1].split(",");return{x1:parseFloat(i[0]),y1:parseFloat(i[1]),x2:parseFloat(n[0]),y2:parseFloat(n[1])}}}return{x1:0,y1:0,x2:0,y2:0}},_disableRaveActions:function(t){t.action("highlight").autoBind(!1),t.action("unhighlight").autoBind(!1),t.action("toggleSelect").autoBind(!1),t.action("zoom").autoBind(!1)},_conditionalPickerCallback:function(){this.refresh({force:!0})},_renderConditionalPicker:function(t){var e=this;return this.palettePicker?(this.palettePicker.min=this.min,this.palettePicker.max=this.max):this.palettePicker=new o({el:this.el,min:this.min,max:this.max,palette:this._getConditionalPalette(),format:this.heatDataItem.getFormat(),widget:this.visModel.ownerWidget,visModel:this.visModel,icons:this.icons,callback:this._conditionalPickerCallback.bind(this)}),this.palettePicker.render(t).then((function(){e._isRendering=!1}))},_getConditionalPalette:function(){var t=this.visModel.getConditions();return t?t.palette:null}});return c})),define("dashboard-analytics/features/content/visIndicators/conditionalViewIndicator/ConditionalViewIndicator",["../../../../lib/@waca/dashboard-common/dist/core/APIFactory","../api/VisIndicatorsProviderAPI","./api/ConditionalViewIndicatorAPI","jquery","doT","text!./templates/conditionalViewIndicator.html","../../../../visualizations/renderer/conditions/HistogramView","../../../../widgets/livewidget/nls/StringResources"],(function(t,e,o,i,n,r,a,s){var l=n.template(r);return function(){function n(t){var e=t.content,o=t.dashboardAPI,i=t.features;_classCallCheck(this,n),this.content=e,this.dashboardApi=o,this.viewIsOpen=!1,this.isVisible=!1,this.inExpandedMode=!1,this._isNewConditionalFormatFeature()||(i.VisIndicators.registerProvider(this.getAPI()),this.init())}return n.prototype._isNewConditionalFormatFeature=function(){return!this.dashboardApi.getGlassCoreSvc(".FeatureChecker").checkValue("dashboard","xtabcondFormat","disabled")},n.prototype.init=function(){this.$el=i(l({buttonClass:"colorPaletteIcon",buttonTitle:s.get("widgetConditionalFormatTitle"),ariaLabel:s.get("widgetConditionalFormatLabel")}))},n.prototype.initEvents=function(){if(!this._eventsInitialized){this.$el.on("mousedown tap keydown",this.onClick.bind(this)),this.dashboardApi.on("widget:maximize",this.onMaximize,this),this.dashboardApi.on("widget:restore",this.onRestore,this);var t=this.getWidgetChromeEventRouter();t&&(t.trigger("widget:onHideAttachedView"),t.on("widgetchrome:selected",this.select,this),t.on("widgetchrome:deselected",this.deselect,this),this._eventsInitialized=!0)}},n.prototype.removeEvents=function(){this.$el.off(),this.dashboardApi.off("widget:maximize",this.onMaximize,this),this.dashboardApi.off("widget:restore",this.onRestore,this);var t=this.getWidgetChromeEventRouter();t&&(t.off("widgetchrome:selected",this.select,this),t.off("widgetchrome:deselected",this.deselect,this))},n.prototype.getAPI=function(){return this._isNewConditionalFormatFeature()?void 0:(this.api||(this.api=t.createAPI(this,[o,e])),this.api)},n.prototype.getVisualization=function(){return this.content.getFeature("Visualization")},n.prototype.getVisApi=function(){var t=this.content.getFeature("WidgetAPI.deprecated");return t&&t.getVisApi&&t.getVisApi()},n.prototype.getOwnerWidget=function(){var t=this.getVisApi();return t&&t.ownerWidget},n.prototype.getWidgetChromeEventRouter=function(){var t=this.getOwnerWidget();return t&&t.widgetChromeEventRouter},n.prototype.getIndicatorList=function(){return this.initEvents(),[{name:"conditionalViewIcon",icon:this.$el}]},n.prototype.destroy=function(){this._isNewConditionalFormatFeature()||(this.removeEvents(),this.hideAttachedView(),this.content=null,this.dashboardApi=null,this.histogramView&&this.histogramView.remove(),this.histogramView=null)},n.prototype.update=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.updatePalette();var e=this.getVisApi(),o=this.getVisualization().getSlots();if(e.hasHeatByItem()&&o.isMappingComplete()?(this.$el.removeClass("hideIndicator"),this.isVisible=!0,this.inExpandedMode&&this.$el.addClass("disableConditionalIndicator")):(this.$el.addClass("hideIndicator"),this.isVisible=!1,this.viewIsOpen=!1,this.hideAttachedView()),t.refresh||t.data){var i=t.refresh||{};t.data&&(i.visModel=this.getVisApi(),i.data=t.data,this.data=t.data),this.histogramView&&this.histogramView.refresh(i)}},n.prototype.updatePalette=function(){var t=this.getVisApi().getConditions(),e=t&&t.palette;if(e&&this.palette!==e){this.palette=e;var o=e.getColors().toArray().slice(0,5),i=100/o.length,n=o.map((function(t){return'<div style="height:'+i+"%;background-color:"+t.getBackgroundColor()+';"></div>'}));this.$el.find(".colorPaletteIcon").html(n.join(""))}},n.prototype.onClick=function(t){if(this.inExpandedMode)return Promise.resolve();if("keydown"===t.type){t.stopPropagation();var e=t.key||t.keyCode||t.which||"";if("Enter"!==e&&13!==e)return Promise.resolve()}return t.gesture&&t.gesture.preventDefault(),t.cancelable&&t.preventDefault(),this.toggleAttachedView()},n.prototype.close=function(){return this.isVisible&&this.viewIsOpen?this.toggleAttachedView():Promise.resolve()},n.prototype.select=function(){this.histogramView&&this.histogramView.refresh({select:!0})},n.prototype.deselect=function(){this.histogramView&&this.histogramView.refresh({select:!1})},n.prototype.onMaximize=function(t){return t.id===this.content.getId()?(this.inExpandedMode=!0,this.$el.addClass("disableConditionalIndicator"),this.close()):Promise.resolve()},n.prototype.onRestore=function(t){return t.id===this.content.getId()&&(this.inExpandedMode=!1,this.$el.removeClass("disableConditionalIndicator")),Promise.resolve()},n.prototype.renderHistogramView=function(){var t=this.getOwnerWidget();return this.histogramView=new a({model:t.model,visualization:this.getVisualization(),visModel:this.getVisApi(),data:this.data,icons:this.dashboardApi.getFeature("Icons")}),this.getWidgetChromeEventRouter().trigger("widget:onShowAttachedView",this.histogramView),this.histogramView.render()},n.prototype.toggleAttachedView=function(){var t=this;return this._togglePromise||(this._togglePromise=new Promise((function(t){setTimeout((function(){return t()}),0)})).then((function(){return t.viewIsOpen?t.hideAttachedView():t.showAttachedView()})),this._togglePromise.catch((function(){})).then((function(){return t._togglePromise=null}))),this._togglePromise},n.prototype.showAttachedView=function(){return this.viewIsOpen=!0,this.getWidgetChromeEventRouter()?this.renderHistogramView():Promise.resolve()},n.prototype.hideAttachedView=function(){this.viewIsOpen=!1;var t=this.getWidgetChromeEventRouter();return t&&this.histogramView&&(this.histogramView.remove(),t.trigger("widget:onHideAttachedView",this.histogramView.$el.clone()),delete this.histogramView),Promise.resolve()},n}()})),define("dashboard-analytics/features/content/dataPointActions/api/DataPointActionsAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.registerProvider=function(){},t.prototype.getDataPointActionList=function(){},t}()})),define("dashboard-analytics/features/content/dataPointActions/DataPointActions",["../../../lib/@waca/dashboard-common/dist/core/APIFactory","./api/DataPointActionsAPI","underscore"],(function(t,e,o){return function(){function i(){_classCallCheck(this,i),this.api=t.createAPI(this,[e]),this.providers={}}return i.prototype.registerProvider=function(t,e){this.providers[t]=e},i.prototype.getDataPointActionList=function(t,e){var i=[];for(var n in this.providers){var r=this.providers[n];if(r.getDataPointActionList){var a=null;try{a=r.getDataPointActionList(t,e)}catch(t){console.log(t)}o.isEmpty(a)||i.push.apply(i,a)}}return i},i.prototype.getAPI=function(){return this.api},i}()})),define("dashboard-analytics/features/content/selections/dataPointSelections/api/DataPointSelectionsAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.select=function(){},t.prototype.deselect=function(){},t.prototype.clearAll=function(){},t.prototype.getSelections=function(){},t.prototype.isSelected=function(){},t}()})),define("dashboard-analytics/features/content/selections/dataPointSelections/api/deprecated/DataPointSelectionsAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.getSelection=function(){},t}()})),define("dashboard-analytics/features/content/selections/dataPointSelections/api/DataPointSelectionsAPISpec",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.getAPISpec=function(){var t=this;return this.apiSpec||(this.apiSpec={name:"dataPointSelections API",events:{propagationInfo:{namespace:"selections",info:{name:"DataPointSelections"},callStack:{name:"getFeature",params:["DataPointSelections"]}},actions:{select:{eventName:"select",getUndoActions:function(t){return[{name:"deselect",params:[t[0]]}]}},deselect:{eventName:"deselect",getUndoActions:function(t){return[{name:"select",params:[t[0]]}]}},clearAll:{eventName:"clearAll",getUndoActions:function(){return[{name:"select",params:[t.getSelections()]}]}}}}}),this.apiSpec},t}()})),define("dashboard-analytics/features/content/selections/dataPointSelections/api/SelectedAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.isSelected=function(){},t}()})),define("dashboard-analytics/features/content/selections/dataPointSelections/VisSelected",["../../../../lib/@waca/dashboard-common/dist/core/APIFactory","./api/SelectedAPI","../../../../util/EventUtils","underscore"],(function(t,e,o,i){return function(){function n(t){var e=this;_classCallCheck(this,n),this._includeParents=t.includeParents,this._ignoreEdgeSelections=t.ignoreEdgeSelections,this._edgeSelections=[],this._pointSelections={},this._selectedParents={},this._pageContextAPI=t.pageContextAPI,this._itemIds=t.itemIds,this._sourceId=t.sourceId,this.synchronizeData=t.synchronizeData;var o={origin:"visualization",scope:t.scope,eventGroupId:t.eventGroupId};this._ignoreEdgeSelections||i.each(this._itemIds,(function(t){var n=e.synchronizeData.getPageContextItem(e._sourceId,e._pageContextAPI,t,o);if(n&&n.getValueCount()){var r={},a=[];i.each(n.getValueIds(),(function(t){r[t]=1,a.push(t)})),e._edgeSelections.push(r)}else e._edgeSelections.push({})}));for(var r=i.map(this._itemIds,(function(t){return{hierarchyUniqueName:t}})),a=this._itemIds.length;a>1;--a)this._addDataPointSelections(i.head(r,a),o,t.includeParents);for(var s=0;s<this._itemIds.length-1;++s)for(var l=this._itemIds.length;l>s+1;--l)this._addDataPointSelections(r.slice(s,l),o,!1)}return n.prototype.getAPI=function(){return this._api||(this._api=t.createAPI(this,[e])),this._api},n.prototype._addDataPointSelections=function(t,e,o){var n=this._pageContextAPI.getPageContextItem(i.extend({hierarchies:t},e));n&&n.getValueCount()&&i.each(n.getDataPoints(),function(t){this._pointSelections[this._getDataPointKey(t)]=1,o&&this._addSelectedParents(this._itemIds,t)}.bind(this))},n.prototype._addSelectedParents=function(t,e){for(var o=t,n=e;o.length>0;){for(var r=1;r<o.length;++r)this._selectedParents[this._getParentKey(i.first(o,o.length),i.first(n,r))]=1;o=i.rest(o),n=i.rest(n)}},n.prototype._getMaxPointSelectionLength=function(){for(var t=0,e=Object.getOwnPropertyNames(this._pointSelections),i=0;i<e.length;i++)t=Math.max(e[i].split(o.SEPARATOR).length,t);return t},n.prototype.isSelected=function(t){for(var e=0;e<t.length;++e)if(t[e]&&i.isObject(this._edgeSelections[e])&&this._edgeSelections[e][t[e].u||t[e]])return!0;if(this._pointSelections[this._getDataPointKey(t)])return!0;for(var o=this._getMaxPointSelectionLength(),n=0;n<t.length;++n)for(var r=t.length;r>=n;--r){var a=t.slice(n,r);if(a.length<=o&&this._pointSelections[this._getDataPointKey(a)])return!0}return!1},n.prototype.isSelectedParent=function(t,e){return!!this._selectedParents[this._getParentKey(t,e)]},n.prototype.isValueSelected=function(t){return this.isSelected([t])},n.prototype.hasSelections=function(){return!(!i.find(this._edgeSelections,(function(t){return i.keys(t).length>0}))&&!i.keys(this._pointSelections).length)},n.prototype._getDataPointKey=function(t){return o.getDataPointKey(t)},n.prototype._getParentKey=function(t,e){var n="",r=i.clone(e).sort(o.compareDataPointKey);return i.each(r,(function(e,i){n+=t[i]+"="+e.u+o.SEPARATOR})),n.slice(0,-1)},n.prototype.getSelectedKeys=function(){var t=[];return i.each(this._edgeSelections,(function(e){t=t.concat(i.keys(e))})),t=t.concat(i.keys(this._pointSelections))},n}()})),define("dashboard-analytics/features/content/selections/dataPointSelections/PendingSelections",["underscore","../../../../apiHelpers/SlotAPIHelper"],(function(t,e){return function(){function o(){_classCallCheck(this,o),this._pendingSelections=[]}return o.prototype.select=function(e){var o=this;t.each(e,(function(e){t.find(o._pendingSelections,(function(o){return t.isEqual(o,e)}))||o._pendingSelections.push(e)}))},o.prototype.deselect=function(e){var o=this;t.each(e,(function(e){var i=t.findIndex(o._pendingSelections,(function(o){return t.isEqual(o,e)}));i>-1&&o._pendingSelections.splice(i,1)}))},o.prototype.clearAll=function(){this._pendingSelections.length=0},o.prototype.getSelections=function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=t.filter(o,(function(t){return"attribute"===t.getType()&&e.MULTI_MEASURES_SERIES!==t.getColumnId()})),n=t.map(i,(function(t){return t.getId()}));return t.filter(this._pendingSelections,(function(e){return t.every(n,(function(o){return t.find(e.categories,(function(t){return t.dataItemId===o}))}))}))},o.prototype.isSelected=function(e){var o=this;return!!t.every(e,(function(e){return!!t.find(o._pendingSelections,(function(o){return t.isEqual(o,e)}))}))},o}()})),define("dashboard-analytics/features/content/selections/dataPointSelections/DataPointSelections",["underscore","../../../../lib/@waca/dashboard-common/dist/core/APIFactory","./api/DataPointSelectionsAPI","./api/deprecated/DataPointSelectionsAPI","./api/DataPointSelectionsAPISpec","../../../../util/ContentUtil","../../../../lib/@waca/dashboard-common/dist/utils/ContentUtil","./VisSelected","./PendingSelections"],(function(t,e,o,i,n,r,a,s,l){return function(n){function u(t){_classCallCheck(this,u);var e=_possibleConstructorReturn(this,n.call(this,t));return e.content=t.content,e.dashboard=t.dashboardAPI,e}return _inherits(u,n),u.prototype.getAPI=function(t){if("deprecated"===t)return this._deprecatedApi||(this._deprecatedApi=e.createAPI(this,[o,i])),this._deprecatedApi;if("pending"===t){if(!this._pending){var n=new l;this._pending=e.createAPI(n,[o])}return this._pending}return this._api||(this._api=e.createAPI(this,[o])),this._api},u.prototype.select=function(t,e){var o=this._getLegacySelection(t),i=t&&t.length>1;this._getController().select({itemIds:o.columnIds,tuple:o.tuple,command:"update",slotsToClear:[],pending:!1,edgeSelect:o.edgeSelect,multiTuple:i},e)},u.prototype.deselect=function(t,e){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=this._getLegacySelection(t),n=t&&t.length>1,r=this.content.getFeature("Visualization"),a=this._getController(),s=o?r.getSlots().getMappedSlotList():this._getSlotsToClear(t);return a.select({itemIds:i.columnIds,tuple:i.tuple,command:"remove",slotsToClear:s,pending:!1,edgeSelect:i.edgeSelect,multiTuple:n},e)},u.prototype._getSelectionValues=function(e){return t.chain(e||this.getSelections()).map((function(t){return t.categories})).flatten().map((function(t){return t.value})).value()},u.prototype._getSlotsToClear=function(e){var o=this._getSelectionValues(e),i=this._getSelectionValues();return o.length!==i.length||t.difference(o,i).length?[]:this.content.getFeature("Visualization").getSlots().getMappedSlotList()},u.prototype.clearAll=function(t){var e=this._buildSelections([],!1)||[];return this.deselect(e,t,!0)},u.prototype._getVisualization=function(){return this.visualization||(this.visualization=this.content.getFeature("Visualization")),this.visualization},u.prototype._getController=function(){return this.controller||(this.controller=this.content.getFeature("SelectionController.deprecated")),this.controller},u.prototype._getLegacySelection=function(e){var o={columnIds:[],tuple:[],edgeSelect:!!t.find(e,(function(t){return t.edgeSelect}))};return e.forEach((function(t){var e=[],i=[];t.categories.forEach((function(t){-1===o.columnIds.indexOf(t.columnId)&&o.columnIds.push(t.columnId),-1===i.indexOf(t.columnId+t.value)&&(e.push({u:t.value,d:t.label}),i.push(t.columnId+t.value))})),e.length&&o.tuple.push(e)})),o},u.prototype.getSelections=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return this._buildSelections(t)},u.prototype._getScope=function(){var t=this.dashboard.getAppConfig("pageContainerType"),e=a.getPageContent(this.content,t);return e&&e.getId()},u.prototype._getEventGroupId=function(){return this.dashboard.getFeature("EventGroups").getGroupId(this.content.getId())},u.prototype._getPageContext=function(){return this._pageContext||(this._pageContext=r.getPageContext(this.dashboard)),this._pageContext},u.prototype._buildSelections=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=[],i=this._getVisualization().getDataSource(),n=i&&i.getId();if(n){var r,a={scope:this._getScope(),eventGroupId:this._getEventGroupId(),sourceId:n,origin:"visualization",eventSourceId:this.content.getId(),_strictMatch:e},s=this._getVisualization().getSlots(),l=s.getDataItemList(),u=this._getPageContext().getNetPageContextItems(a);(r=o).push.apply(r,this._getValues(u,t,l)),o.length&&(o=this._uniqueValues(o))}return o},u.prototype._getValues=function(t,e,o){var i=this,n=[],r=null,a=null;return t&&t.length&&t.forEach((function(t){var s=t.getItemIds();if(t.isDataPointType()){var l=[];t.getDataPoints().forEach((function(t){var n=[];t.forEach((function(t,l){(a=i._getDataItem(s[l],e,o))&&"attribute"===a.getType()&&(r=i._toPayLoadValue(t,s[l],a.getId()),n.push(r))})),l.push({categories:n})})),n.push.apply(n,l)}else{t.getValues().forEach((function(t){(a=i._getDataItem(s[0],e,o))&&"attribute"===a.getType()&&(r=i._toPayLoadValue(t,s[0],a.getId()),n.push({categories:[r]}))}))}})),n},u.prototype._getDataItem=function(e,o,i){var n=t.find(o,(function(t){return t.getColumnId()===e}));return n||(n=t.find(i,(function(t){return t.getColumnId()===e}))),n},u.prototype._toPayLoadValue=function(t,e,o){var i={dataItemId:o,columnId:e,value:t.u,label:t.d};return t.p&&(i.parentId=t.p.u),i},u.prototype._uniqueValues=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=[],i={};return e.forEach((function(e){var n=t.pluck(e.categories,"value").join();i[n]||(i[n]=1,o.push(e))})),o},u.prototype.isSelected=function(t){var e=this._getLegacySelection(t);return e.edgeSelect?this._isEdgeSelected(t):this._isDataPointSelected(e)},u.prototype._isDataPointSelected=function(e){var o=this.getSelection(e.columnIds);return!!o&&o.isSelected(t.flatten(e.tuple))},u.prototype._isEdgeSelected=function(e){var o=this,i=t.chain(t.map(this._getVisualization().getSlots().getDataItemList(),(function(e){var i=e.getColumnId(),n=function(t){return o._getController().getSelectedTuples([t])}(i);return t.map(n,(function(e){return e.label=t.isUndefined(e.label)?e.d:e.label,e.value=t.isUndefined(e.value)?e.u:e.value,{columnId:i,tupleItem:e}}))}))).flatten().filter((function(t){return!!t.tupleItem})).value(),n=!0,r=t.pluck(e,"categories");return t.each(r,(function(e){t.each(e,(function(e){n=!!n&&!!t.find(i,(function(t){return t.columnId===e.columnId&&t.tupleItem.u===e.value}))}))})),n},u.prototype.getSelection=function(t,e){return t||(t=r.getColumnIdList(this._getVisualization().getSlots().getMappedSlotList(),"attribute")),this._getSelected(t,e)},u.prototype._getSelected=function(t,e){if(!this._getVisualization().getDataSource())return null;var o=this._getVisualization().getDataSource(),i=new s({pageContextAPI:this._getPageContext(),itemIds:Array.isArray(t)?t:[t],scope:this._getScope(),eventGroupId:this._getEventGroupId(),sourceId:o&&o.getId(),includeParents:!(!e||!0!==e.includeParents),ignoreEdgeSelections:!(!e||!0!==e.ignoreEdgeSelections),synchronizeData:this._getController().synchronizeData});return i.hasSelections()?i.getAPI():null},u}(n)})),define("dashboard-analytics/features/content/visDnD/api/VisDnDAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.registerProviders=function(){},t.prototype.accepts=function(){},t.prototype.onDrop=function(){},t}()})),define("dashboard-analytics/features/content/visDnD/VisDnDProviderSet",[],(function(){return function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.dashboardAPI=e.dashboardAPI,this.dashboardDnD=e.dashboardDnD,this.content=e.content,this.targetType=e.targetType,this.dndProviderList=e.dndProviderList||[],this.containedTargetsToIgnore=e.containedTargetsToIgnore||[],this._setupDnD()}return t.prototype.addProviders=function(t){var e;(e=this.dndProviderList).push.apply(e,t)},t.prototype.destroy=function(){this.dashboardAPI=null,this.content=null,this.dashboardDnD.deregisterDropHandler(this.dropHandler.id),this.dashboardDnD=null,this.dndProviderList.forEach((function(t){return t.destroy()})),this.dndProviderList=null,this.containedTargetsToIgnore=null},t.prototype._setupDnD=function(){var t=this;this.dropHandler=this.dashboardDnD.registerDropHandler({accepts:function(e,o){return t.accepts(e,o)},onDrop:function(e,o){t.onDrop(e,o)}})},t.prototype._containedTargetsToIgnore=function(t){return!(!t||!t.type)&&-1!==this.containedTargetsToIgnore.indexOf(t.type)},t.prototype.accepts=function(t,e){if(this._containedTargetsToIgnore(e))return!1;var o=!1;if(e.type===this.targetType&&e.info.contentId===this.content.getId()){var i=this.dndProviderList.find((function(o){return o.supports(t,e)}));i&&(o=i.accepts(t,e),o&&e.info.onDragEnter&&(e.info.onDragEnter(e),this.currentTarget=e))}return o&&e===this.currentTarget||this._clearHighlighting(e),this.currentTarget=e,o},t.prototype._clearHighlighting=function(t){this.currentTarget&&this.currentTarget.info&&this.currentTarget.info.onDragLeave&&this.currentTarget.info.onDragLeave(t)},t.prototype.onDrop=function(t,e){if(this._clearHighlighting(e),this.currentTarget=null,e.type===this.targetType&&e.info.contentId===this.content.getId()){var o=this.dndProviderList.find((function(o){return o.supports(t,e)}));if(o)return o.onDrop(t,e)}return!1},t}()})),define("dashboard-analytics/features/content/visDnD/VisDnD",["./api/VisDnDAPI","../../../lib/@waca/dashboard-common/dist/core/APIFactory","./VisDnDProviderSet"],(function(t,e,o){return function(){function i(t){var e=t.content,o=t.features;_classCallCheck(this,i),this.content=e,this.dashboardAPI=o.API,this.dashboardDnD=o["Dashboard.DashboardDnd"],this.visualization=o.Visualization,this.providerSets={}}return i.prototype.initialize=function(){},i.prototype.getAPI=function(){return this.api||(this.api=e.createAPI(this,[t])),this.api},i.prototype.destroy=function(){var t=this;this.dashboardAPI=null,this.content=null,this.utils&&this.utils.destroy(),this.utilsApi=null,this.api=null,Object.keys(this.providerSets).forEach((function(e){t.providerSets[e].destroy()})),this.providerSets=null},i.prototype.registerProviders=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(t&&e&&e.length){var n=this.providerSets[t];n?n.addProviders(e):this.providerSets[t]=new o({dashboardAPI:this.dashboardAPI,dashboardDnD:this.dashboardDnD,content:this.content,targetType:t,dndProviderList:e,containedTargetsToIgnore:i})}},i.prototype.accepts=function(t,e){return!(!this.providerSets[e.type]||!this.providerSets[e.type].accepts)&&this.providerSets[e.type].accepts(t,e)},i.prototype.onDrop=function(t,e){this.providerSets[e.type]&&this.providerSets[e.type].onDrop&&this.providerSets[e.type].onDrop(t,e)},i}()})),define("dashboard-analytics/features/content/slotActions/api/SlotActionsAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.registerProvider=function(){},t.prototype.getSlotActionList=function(){},t}()})),define("dashboard-analytics/features/content/slotActions/SlotActions",["../../../lib/@waca/dashboard-common/dist/core/APIFactory","./api/SlotActionsAPI","underscore"],(function(t,e,o){return function(){function i(){_classCallCheck(this,i),this.api=t.createAPI(this,[e]),this.providers=[]}return i.prototype.registerProvider=function(t,e){this.providers[t]=e},i.prototype.getSlotActionList=function(t,e,i){var n=i&&i.actionOptions||{},r=i&&i.actionsToKeep||[],a=[];for(var s in this.providers){var l=this.providers[s];if(l.getSlotActionList){var u,c=null;try{c=l.getSlotActionList(t,e,n[s])}catch(t){console.log(t)}if(!o.isEmpty(c))(u=a).push.apply(u,c)}}return r.length&&(a=a.filter((function(t){return o.contains(r,t.id||t.group||t.name)||"delete"===t.name}))),a},i.prototype.getAPI=function(){return this.api},i}()})),define("dashboard-analytics/features/content/common/contextualGridAction/ContextualGridAction",["../../../../lib/@waca/dashboard-common/dist/core/APIFactory","../../../../widgets/livewidget/nls/StringResources","../../dataPointActions/api/DataPointActionsProviderAPI","../../../../lib/@waca/dashboard-common/dist/api/ContentActionsProviderAPI"],(function(t,e,o,i){return function(){function n(t){var e=t.dashboardAPI,o=t.content,i=t.features;_classCallCheck(this,n),this.dashboard=e||i&&i.API,this.icons=i.Icons||i["Dashboard.Icons"],o?(this.content=o,i&&i.DataPointActions.registerProvider("contextualGridAction",this.getAPI())):i&&i.ContentActions.registerProvider("contextualGridAction",this.getAPI())}return n.prototype.getDataPointActionList=function(t,e){var o=this.content;return!e.noFilters&&this.dashboard.getMode()===this.dashboard.MODES.EDIT?this._getContributionList(o,!0):[]},n.prototype._supportAction=function(t,e){var o=this._isInteractionEnabled("showData")&&this.dashboard.getMode()===this.dashboard.MODES.EDIT;return!(t&&t.length>1||!o)&&!e.getFeature("state").getError()},n.prototype.getContentActionList=function(t){var e=t[0],o=this.dashboard.getCanvas().getContent(e);return this._supportAction(t,o)?this._getContributionList(o,!1):[]},n.prototype._isSupportedFromVisDefinition=function(t){var e=t.getFeature("Visualization");if(!e)return!1;var o=e.getDefinition();return!o.getProperty("isMultilayersWidget")&&!o.getProperty("noDataQuery")&&"dashboardTemplate"!==this.dashboard.getApplicationName()},n.prototype._popUpDataTray=function(){var t=this.dashboard.getDashboardCoreSvc(".CanvasExtensions");if(t){var e=t.splitPaneView.getSplitter(),o="story"===this.dashboard.getApplicationName()?1:0;return e.toggleItem(o,!0,{sender:"showDataBehindVisAction"})}return Promise.resolve()},n.prototype._getContributionList=function(t,o){if(this._isSupportedFromVisDefinition(t)){var i=this.icons.getIcon("common-querySubject");return[{name:"contextualGridAction",label:e.get("showDataBehindVizLabel"),icon:i.id,type:"Button",group:"ShowDataBehindVizAction",closeOnActionApplied:o,actions:{apply:this._popUpDataTray.bind(this)}}]}return[]},n.prototype._isInteractionEnabled=function(t){var e=this.dashboard.getAppConfig("interactions")||{};return!e.hasOwnProperty(t)||-1===[!1,"false"].indexOf(e[t])},n.prototype.getAPI=function(){return t.createAPI(this,[o,i])},n}()})),define("dashboard-analytics/features/content/common/textAction/TextAction",["underscore","dashboard-analytics/visualizations/vipr/VIPRUtils","../../../../widgets/livewidget/nls/StringResources","dashboard-analytics/util/FontFamilyOptions","../../../../lib/@waca/dashboard-common/dist/core/APIFactory","../../../content/slotActions/api/SlotActionsProviderAPI","../../../../util/ContentUtil"],(function(t,e,o,i,n,r,a){return function(){function s(t){_classCallCheck(this,s),this.initialState={fontSize:null,font:null,bold:!1,italic:!1,underline:!1,justifyLeft:!1,justifyCenter:!1,justifyRight:!1,color:null,textAlign:"",textWrap:!1},this.localVisSuffix={color:"Color",fontSize:"FontSize",font:"FontFace",bold:"FontBold",italic:"FontItalic",underline:"FontUnderline",textAlign:"FontAlign",textWrap:"TextWrap"},this.vidaVisSuffix={color:".color",fontSize:"size",font:"family",bold:"weight",italic:"style"},this.booleanProperty=["weight","style"],this.selectedAreaPrefix="selectedArea",this.dashboard=t.dashboardAPI,this.content=t.content,this.icons=t.features["Dashboard.Icons"],this.colorsService=this.dashboard.getFeature("Colors"),this.content.getFeature("DataPointActions").registerProvider("TextAction",this),this.content.getFeature("SlotActions").registerProvider("TextAction",this.getAPI())}return s.prototype.getDataPointActionList=function(t,e){if(this._supportDataPointAction()){if(e.isAreaSelected){if(this.selectedArea=a.getContextFromSelection(this.content,this.dashboard),!this.selectedArea.length)return[];this.isAreaSelected=!0}else this.isAreaSelected=!1,this.selectedArea=null;return this.getContribution(null,t.area)}return[]},s.prototype._supportDataPointAction=function(){return this.dashboard.getMode()===this.dashboard.MODES.EDIT},s.prototype.getSlotActionList=function(t,e,o){if(this._supportSlotAction(e)){if(o&&o.isAreaSelected){if(this.selectedArea=this._getContextFromSlot(t,e),!this.selectedArea.length)return[];this.isAreaSelected=!0}else this.isAreaSelected=!1,this.selectedArea=null;return this.getContribution(t,o&&o.area)}return[]},s.prototype._getContextFromSlot=function(t,e){var o=this.content.getFeature("Visualization").getSlots().getSlot(t),i=o&&o.getDataItemList(),n=i&&i[e]&&i[e].getLabel();if(n)return[n]},s.prototype._supportSlotAction=function(t){return"summary"!==this.content.getFeature("Visualization").getDefinition().getId()&&(this.dashboard.getMode()===this.dashboard.MODES.EDIT&&(!(!Array.isArray(t)||1!=t.length)||void 0===t))},s.prototype._supportsTextWrap=function(t,e){var o=this.content.getFeature("Visualization").getDefinition().getProperty("supportsTextWrap");return!!o&&(o[e]||o[t])},s.prototype.getContribution=function(e,n){var r=this;if(this.propertyPrefix=this.isAreaSelected?this.selectedAreaPrefix:this.constructPropertyPrefix(e,n),this.groupedProperty=this.content.getFeature("Visualization").getDefinition().getProperty("groupedProperty"),this.propertyPrefix){this.currentProps=this.content.getPropertyNameList().map((function(t){return{id:t,value:r.content.getPropertyValue(t)}}));var a={};this.isLocalVis=this._isLocalVis(this.content.getFeature("Visualization").getDefinition().getId()),this.propertySuffix=this.isLocalVis?this.localVisSuffix:this.vidaVisSuffix,t.each(this.propertySuffix,(function(t,e){a[e]=r.findCurrentProperties(r.currentProps,t)}));var s=this.content.getFeature("Visualization").getDefinition().getProperty("supportsAdvancedProperties")?"default":"simpleTextEdit",l=this._getTextColorOptions(),u=this._getAppropriateFontSizes(n),c=this._supportsTextWrap(e,n),d={height:140,width:140,initialState:this.initialState,currentState:a,properties:{colors:l,fontSizes:u,fonts:i},elementListType:s,supportsTextWrap:c},p=this.icons.getIcon("common-text-edit");return[{name:"text",text:o.get("toolbarTextActionText"),label:o.get("toolbarTextActionText"),icon:p.id,type:"NextView",view:{module:"dashboard-analytics/lib/@waca/dashboard-common/dist/ui/dialogs/TextToolbarCompactDialog",state:d},actions:{apply:this.onStateChange.bind(this)},showCaption:!1}]}},s.prototype._getAppropriateFontSizes=function(t){return"legend"===t?[{value:"11px",label:"11px"},{value:"14px",label:"14px"},{value:"16px",label:"16px"}]:[{value:"12px",label:"12px"},{value:"14px",label:"14px"},{value:"16px",label:"16px"},{value:"24px",label:"24px"}]},s.prototype.constructPropertyPrefix=function(t,e){var o=this.content.getFeature("Visualization").getDefinition().getProperty("propertyPrefixes"),i=void 0;if(o){if(i=o[e])return i;if(!t&&"visualization"===e)return o.dataPoint;if(t)return o[t]}},s.prototype._isLocalVis=function(e){return t.contains(["summary","list","crosstab","JQGrid"],e)},s.prototype.findCurrentProperties=function(o,i){var n=!1===this.isLocalVis&&".color"!==i,r=".color"===i||"Color"===i;if(i){var a=this.propertyPrefix+(n?".font":i),s=this.findPropertyById(o,a);if(void 0===o||void 0===s){var l=t.invert(this.propertySuffix)[i];return this.initialState[l]}return s?n?e.getVidaFontPropertiesPart(i,s.value):(this.isAreaSelected&&(s.value=s.value&&s.value[this.selectedArea[0]]&&s.value[this.selectedArea[0]].value),r&&null!==s.value&&"string"==typeof s.value&&!this._isHexColor(s.value)?this.colorsService.getHexColorFromDashboardColorSet(s.value):s.value):void 0}},s.prototype._isHexColor=function(t){return 0===t.indexOf("#")&&7===t.length},s.prototype.findPropertyById=function(e,o){return t.find(e,(function(t){return t.id===o}))},s.prototype._getTextColorOptions=function(){var e=this.colorsService.getDashboardColorSet().filter((function(t){return"transparent"!==t.id})),o=[];return t.each(e,(function(t){o.push(t.hexValue)})),o},s.prototype.onStateChange=function(t){var e=[];this.propertyPrefix&&(e=this.isLocalVis?this._buildLocalVisPropertyList(t,e):this._buildVidaVisPropertyList(t,e)),this.editProperties(e)},s.prototype._buildLocalVisPropertyList=function(e,o){var i=this,n=Object.keys(e);return t.each(n,(function(n){if(i.propertySuffix[n]){var r=i.propertyPrefix+i.propertySuffix[n],a="color"===n&&null!==e[n]?i._findColorIdFromHex(e[n]):e[n];if(i.isAreaSelected){var s=JSON.parse(JSON.stringify(i.content.getPropertyValue(r)||{}));t.each(i.selectedArea,(function(t){s[t]={value:a,weight:Date.now()}})),a=s}o.push({id:r,value:a}),i.groupedProperty&&t.has(i.groupedProperty,r)&&t.each(i.groupedProperty[r],(function(t){o.push({id:t,value:a})}))}})),o},s.prototype._buildVidaVisPropertyList=function(o,i){var n=this,r=[],a=t.pick(o,"font","fontSize"),s=t.pick(o,"color");if(!t.isEmpty(a)){var l=this.propertyPrefix+".font",u=this.content.getPropertyValue(l),c=e.buildVidaFontPropertiesFromParts(a,u);r.push({id:l,value:c})}if(!t.isEmpty(s)){var d=this.propertyPrefix+".color",p=null!==s.color?this._findColorIdFromHex(s.color):s.color;r.push({id:d,value:p})}return r.forEach((function(e){n.groupedProperty&&t.has(n.groupedProperty,e.id)&&t.each(n.groupedProperty[e.id],(function(t){return r.push({id:t,value:e.value})}))})),i.concat(r)},s.prototype._findColorIdFromHex=function(e){var o=this.colorsService.getDashboardColorSet().filter((function(t){return"transparent"!==t.id})),i=t.find(o,(function(t){return t.hexValue.toUpperCase()===e.toUpperCase()}));return i?i.id:this.colorsService.getColorClassName(e)},s.prototype.editProperties=function(t){var e=this,o=this.dashboard.getFeature("Transaction").startTransaction();t.forEach((function(t){e.content.setPropertyValue(t.id,t.value,o)})),this.dashboard.getFeature("Transaction").endTransaction(o)},s.prototype.getAPI=function(){return this._api||(this._api=n.createAPI(this,[r])),this._api},s}()})),define("dashboard-analytics/features/content/expandCollapse/api/ExpandCollapseAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.expand=function(){},t.prototype.collapse=function(){},t}()})),define("dashboard-analytics/features/content/expandCollapse/ExpandCollapse",["underscore","../../../lib/@waca/dashboard-common/dist/core/APIFactory","./api/ExpandCollapseAPI"],(function(t,e,o){return function(){function t(e){_classCallCheck(this,t),this.dashboard=e.dashboardAPI,this.content=e.content}return t.prototype.getAPI=function(){return this._api||(this._api=e.createAPI(this,[o])),this._api},t.prototype.expand=function(t,e,o){var i=this._getDataItem(t),n=this.dashboard.getFeature("Transaction"),r=n.startTransaction(),a=void 0;(a=i.getUnion().getDataItemList().length&&this._findNestedDataItem(i.getUnion().getDataItemList(),e)||i).getUnion().getDataItemList().find((function(t){return t.getDrillDownValue()===o}))||a.getUnion().addDataItem({itemId:i.getColumnId()},r).drillDown(o,r);n.endTransaction(r)},t.prototype.collapse=function(t,e,o){var i=this._getDataItem(t),n=this.dashboard.getFeature("Transaction"),r=n.startTransaction(),a=this._findNestedDataItem(i.getUnion().getDataItemList(),e)||i,s=this._findNestedDataItem(a.getUnion().getDataItemList(),o);a&&s&&(s.clearDrill(r),a.getUnion().removeDataItem(s.getId(),r)),n.endTransaction(r)},t.prototype._getDataItem=function(t){var e=this.content.getFeature("Visualization").getSlots().getDataItemList().find((function(e){return e.getId()===t}));if(!e)throw new Error("Expand Failed, Invalid DataItem");return e},t.prototype._findNestedDataItem=function(t,e){for(var o=Array.from(t),i=null;o.length>0&&!i;){var n=o.shift(),r=n.getUnion().getDataItemList();o.push.apply(o,r||[]),n.getDrillDownValue()===e&&(i=n)}return i},t}()})),define("dashboard-analytics/features//widget/renderSequence/api/RenderStepProviderAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.getRenderStepList=function(){},t}()})),define("dashboard-analytics/features/content/keyDrivers/KeyDriversProvider",["../..//widget/renderSequence/api/RenderStepProviderAPI","../../../lib/@waca/dashboard-common/dist/core/APIFactory","../../../visualizations/renderer/sequence/KeyDriversTask"],(function(t,e,o){return function(){function i(t){_classCallCheck(this,i),t.features.RenderSequence.registerRenderStepProvider(this.getAPI())}return i.prototype.destroy=function(){},i.prototype.getAPI=function(){return this.api||(this.api=e.createAPI(this,[t])),this.api},i.prototype.getRenderStepList=function(){return[{id:"keyDrivers",dependencies:["visSpec"],blocks:["data"],module:o}]},i}()})),define("dashboard-analytics/features/widget/renderSequence/api/RenderStepProviderAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.getRenderStepList=function(){},t}()})),define("dashboard-analytics/features/content/vis-smartcolormap/SmartColorRenderStep",["dashboard-analytics/visualizations/renderer/sequence/BaseTask"],(function(t){"use strict";var e=t.extend({init:function(t,o){e.inherited("init",this,arguments),this.smartColorMapAPI=o.smartColorMapAPI},process:function(t){var e=this;return this._isStepComplete(t,"smartColorMapRenderStep")?Promise.resolve(t):this._setupColorMap(t).then((function(o){return e._completeStep(t,"smartColorMapRenderStep",o),t})).catch((function(){return t}))},_setupColorMap:function(){var t=this.content.getFeature("Visualization"),e=t&&t.getDataSource(),o=e&&e.getAssetId();return o?this.smartColorMapAPI.setupColorMap(o,t.getDataSource().getType()):Promise.resolve(!0)},_hasColorSlot:function(){var t=this.content.getFeature("Visualization"),e=t&&t.getSlots(),o=e&&e.getMappedSlotList();return o&&o.some((function(t){var e=t.getDefinition();return(e&&e.getTags()||[]).includes("canUseToColor")}))}});return e})),define("dashboard-analytics/features/content/vis-smartcolormap/SmartColorRenderStepProvider",["dashboard-analytics/features/widget/renderSequence/api/RenderStepProviderAPI","gemini/lib/@waca/dashboard-common/dist/core/APIFactory","./SmartColorRenderStep"],(function(t,e,o){return function(){function i(t){_classCallCheck(this,i),t.features.RenderSequence.registerRenderStepProvider(this.getAPI()),this.smartColorMapAPI=t.features["Dashboard.SmartColorMap"]}return _createClass(i,[{key:"destroy",value:function(){}},{key:"getAPI",value:function(){return this.api||(this.api=e.createAPI(this,[t])),this.api}},{key:"getRenderStepList",value:function(){return[{id:"smartColorMapRenderStep",dependencies:["data"],blocks:["render"],module:o,moduleOptions:{smartColorMapAPI:this.smartColorMapAPI}}]}}]),i}()})),define("dashboard-analytics/features/content/viprPropertyProvider/ViprPropertyProvider",["underscore","../../../lib/@waca/dashboard-common/dist/core/APIFactory","../../../lib/@waca/dashboard-common/dist/api/PropertiesProviderAPI","../../../visualizations/vipr/properties/VIPRProperties","../../../util/TransactionUtil"],(function(t,e,o,i,n){return function(){function r(t){_classCallCheck(this,r),this.content=t.content,this.dashboard=t.dashboardAPI,this.features=t.features,t.features.Properties.registerProvider(this.getAPI()),this.model=this.content.getFeature("Models.internal").getWidgetModel(),this.content.on("change:visualization:type",this.onVisualizationChange,this),this.content.on("change:visualization:slots",this.onVisualizationChange,this),this.content.on("change:property",this.onVisualizationChange,this),this.VisDefinitions=this.dashboard.getFeature("VisDefinitions"),this.VisDefinitions.on("refresh:definition",this.onVisualizationChange,this),this.state=this.content.getFeature("state"),this.visualization=t.features.Visualization,this.content.on("change:state:status",this.onRenderStateChange,this),this._isChanged=!0}return r.prototype.getAPI=function(){return this._api||(this._api=e.createAPI(this,[o])),this._api},r.prototype.destroy=function(){this.content.off("change:state:status",this.onRenderStateChange,this),this.content.off("change:type",this.onVisualizationChange,this),this.content.off("change:property",this.onVisualizationChange,this),this.VisDefinitions.off("refresh:definition",this.onVisualizationChange,this),this.content=null},r.prototype.onRenderStateChange=function(t){this._isChanged&&"rendered"===t.info.value&&(this._isChanged=!1,this._propertyList=null,this._propertyLayoutList=null)},r.prototype.onVisualizationChange=function(){this._isChanged=!0},r.prototype._getLivewidgetInternal=function(){return this.livewidgetInternal||(this.livewidgetInternal=this.content.getFeature("livewidget.internal")),this.livewidgetInternal},r.prototype._getView=function(){var t=this._getLivewidgetInternal();return t&&t.getVisView()},r.prototype._isVIPR=function(){var t=this.visualization.getDefinition().getProperty("renderer");return t&&-1!==t.indexOf("VIPRView")},r.prototype.modifyPropertyWithSetterAndGetter=function(e){var o=this,i=this.content.getFeature("Visualization.legacy").getLegacyManagers().visPropertySupport;t.extend(e,{getPropertyValue:function(){return i.getPropertyValue(e.id)},setPropertyValue:function(t,i){o.updateProperty({id:e.id,value:t},i)},supportsUndoRedo:!0})},r.prototype.isAnOverridableVisProperty=function(t){return!{fillColor:!0,borderColor:!0,transparency:!0,showTitle:!0,saveTitle:!0,queryRefresh:!0}[t]},r.prototype.updateProperty=function(e,o){if(this.isAnOverridableVisProperty(e.id)){var i=this.dashboard.getFeature("internal").getBoardModel(),r=n.transactionTokenToOptions(o),a=t.extend({},r,i.getLanguageModelOptions(!0)),s=this.content.getFeature("Models.internal").getWidgetModel();e.id.indexOf("colorPalette")>-1&&this.features.LiveWidgetSegment&&this.features.LiveWidgetSegment.track({category:"colorPalette",visualization:this.content.getFeature("Visualization"),content:this.content,info:{propertyId:e.id,previousValue:this.content.getPropertyValue(e.id),newValue:e.value}}),s.properties.set(e,t.extend({merge:!0,remove:!1,silent:!0},a))}},r.prototype.getPropertyList=function(){var e=this;if(!this._propertyList&&this._isVIPR()){var o=void 0,n=this._getView();if(n&&this.state.getStatus()===this.state.STATUS.RENDERED)o=n.getPropertyList();else{var r=this.visualization.getSlots().getSlotList(),a=this.visualization.getDefinition().getProperty("vizDefProperties");o=i.getInstance().getPropertyList(a,r,this.content)}if(o){var s=t.map(o,(function(o){var i=t.extend({},o);if(e.modifyPropertyWithSetterAndGetter(i),i.editor&&i.editor.uiControl&&i.editor.uiControl.multilingual){var n=e.dashboard.getFeature("TranslationService");if(n){var r=(e.model.getMultilingualAttribute(i.id)||{}).multilingualProperty;n.processMultilingualProperty(i,r)}}return i}));this._propertyList=s}}return this._propertyList},r.prototype.getPropertyLayoutList=function(){if(!this._propertyLayoutList&&this._isVIPR()){this._propertyLayoutList=[];var t=this._getView();if(t&&this.state.getStatus()===this.state.STATUS.RENDERED)this._propertyLayoutList=t.getPropertyLayoutList();else{var e=this.visualization.getSlots().getSlotList(),o=this.visualization.getDefinition().getProperty("vizDefProperties");this._propertyLayoutList=i.getInstance().getPropertyLayoutList(o,e,this.content,this.dashboard)}}return this._propertyLayoutList},r}()})),define("dashboard-analytics/features/content/visPropertyProvider/VisPropertyProvider",["underscore","../../../lib/@waca/dashboard-common/dist/core/APIFactory","../../../lib/@waca/dashboard-common/dist/api/PropertiesProviderAPI","../../../util/TransactionUtil"],(function(t,e,o,i){return function(){function n(t){_classCallCheck(this,n),this.content=t.content,this.dashboard=t.dashboardAPI,t.features.Properties.registerProvider(this.getAPI()),this.model=this.content.getFeature("Models.internal").getWidgetModel(),this.content.on("change:visualization:type",this.onVisualizationTypeChange,this)}return n.prototype.getAPI=function(){return this._api||(this._api=e.createAPI(this,[o])),this._api},n.prototype.destroy=function(){this.content.off("change:visualization:type",this.onVisualizationTypeChange,this),this.content=null},n.prototype.onVisualizationTypeChange=function(){this._propertyList=null,this._propertyLayoutList=null},n.prototype.getWidget=function(){return this.content},n.prototype._getPropertyFromRawDefinition=function(t){var e=this.content.getFeature("Visualization").getDefinition(),o=e&&e.getProperty(t);if(o)return JSON.parse(JSON.stringify(o))},n.prototype.modifyPropertyWithSetterAndGetter=function(e,o){var i=this,n=o.visModelManager.propertySupport;t.extend(e,{getPropertyValue:function(){return n.getPropertyValue(e.id)},setPropertyValue:function(t,o){i.updateProperty({id:e.id,value:t},o)}})},n.prototype.isAnOverridableVisProperty=function(t){return!{fillColor:!0,borderColor:!0,transparency:!0,showTitle:!0,saveTitle:!0,queryRefresh:!0,"datagrid.viewOption":!0,"value.graphic.content":!0,"value.graphic.currentScaleOption":!0,"value.graphic.fillColor":!0,"value.graphic.borderColor":!0}[t]},n.prototype.updateProperty=function(e,o){if(this.isAnOverridableVisProperty(e.id)){var n=this.dashboard.getFeature("internal").getBoardModel(),r=i.transactionTokenToOptions(o),a=t.extend({},r,n.getLanguageModelOptions(!0));a.payloadData||(a.payloadData={}),a.payloadData.skipUndoRedo=!0,this.content.getFeature("Models.internal").getWidgetModel().properties.set(e,t.extend({merge:!0,remove:!1},a))}},n.prototype._getWidget=function(){return this.content.getFeature("livewidget.internal").getWidget()},n.prototype.getPropertyList=function(){var t=this;if(!this._propertyList){var e=this._getPropertyFromRawDefinition("propertyList");e&&e.length>0?e.forEach((function(e){if(t.isAnOverridableVisProperty(e.id)&&(t.modifyPropertyWithSetterAndGetter(e,t._getWidget()),e.editor&&e.editor.uiControl&&e.editor.uiControl.multilingual)){var o=t.dashboard.getFeature("TranslationService");if(o){var i=(t.model.getMultilingualAttribute(e.id)||{}).multilingualProperty;o.processMultilingualProperty(e,i)}}})):e=[],this._propertyList=e}return this._isNewConditionalFormatFeature()&&(this._isCrosstab()||this._isTable())&&(this._propertyList=this._propertyList.filter((function(t){return!(t.editor&&"visualization.colorPalette"===t.editor.sectionId)}))),this._propertyList},n.prototype.getPropertyLayoutList=function(){if(!this._propertyLayoutList){var t=this._getPropertyFromRawDefinition("propertyLayoutList");this._propertyLayoutList=t||[]}return this._isNewConditionalFormatFeature()&&(this._isCrosstab()||this._isTable())&&(this._propertyLayoutList=this._propertyLayoutList.filter((function(t){return"colorPalette"!==t.id}))),this._propertyLayoutList},n.prototype._isNewConditionalFormatFeature=function(){return!this.dashboard.getGlassCoreSvc(".FeatureChecker").checkValue("dashboard","xtabcondFormat","disabled")},n.prototype._isCrosstab=function(){return"Crosstab"===this.content.getFeature("Visualization").getType()},n.prototype._isTable=function(){return"List"===this.content.getFeature("Visualization").getType()},n}()})),function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("react"),require("ca-ui-toolkit"),require("mobx-react"),require("mobx-state-tree"),require("underscore"),require("react-dom"),require("jquery"),require("authoring-common"),require("corsair_ship/ba-react-html5-dnd"),require("baglass/core-client/js/core-client/ui/properties/PropertyUIControl"),require("gemini/lib/@waca/dashboard-common/dist/core/APIFactory"),require("baglass/core-client/js/core-client/i18n/Formatter"),require("gemini/lib/@waca/dashboard-common/dist/utils/ContentUtil"));else if("function"==typeof define&&define.amd)define("dashboard-analytics/features/content/conditionalFormatting/ConditionalFormatting",["react","ca-ui-toolkit","mobx-react","mobx-state-tree","underscore","react-dom","jquery","authoring-common","corsair_ship/ba-react-html5-dnd","baglass/core-client/js/core-client/ui/properties/PropertyUIControl","gemini/lib/@waca/dashboard-common/dist/core/APIFactory","baglass/core-client/js/core-client/i18n/Formatter","gemini/lib/@waca/dashboard-common/dist/utils/ContentUtil"],e);else{var o="object"==typeof exports?e(require("react"),require("ca-ui-toolkit"),require("mobx-react"),require("mobx-state-tree"),require("underscore"),require("react-dom"),require("jquery"),require("authoring-common"),require("corsair_ship/ba-react-html5-dnd"),require("baglass/core-client/js/core-client/ui/properties/PropertyUIControl"),require("gemini/lib/@waca/dashboard-common/dist/core/APIFactory"),require("baglass/core-client/js/core-client/i18n/Formatter"),require("gemini/lib/@waca/dashboard-common/dist/utils/ContentUtil")):e(t.react,t["ca-ui-toolkit"],t["mobx-react"],t["mobx-state-tree"],t.underscore,t["react-dom"],t.jquery,t["authoring-common"],t["corsair_ship/ba-react-html5-dnd"],t["baglass/core-client/js/core-client/ui/properties/PropertyUIControl"],t["gemini/lib/@waca/dashboard-common/dist/core/APIFactory"],t["baglass/core-client/js/core-client/i18n/Formatter"],t["gemini/lib/@waca/dashboard-common/dist/utils/ContentUtil"]);for(var i in o)("object"==typeof exports?exports:t)[i]=o[i]}}(window,(function(__WEBPACK_EXTERNAL_MODULE__0__,__WEBPACK_EXTERNAL_MODULE__2__,__WEBPACK_EXTERNAL_MODULE__3__,__WEBPACK_EXTERNAL_MODULE__9__,__WEBPACK_EXTERNAL_MODULE__12__,__WEBPACK_EXTERNAL_MODULE__14__,__WEBPACK_EXTERNAL_MODULE__43__,__WEBPACK_EXTERNAL_MODULE__52__,__WEBPACK_EXTERNAL_MODULE__227__,__WEBPACK_EXTERNAL_MODULE__236__,__WEBPACK_EXTERNAL_MODULE__242__,__WEBPACK_EXTERNAL_MODULE__250__,__WEBPACK_EXTERNAL_MODULE__253__){return function(t){var e={};function o(i){if(e[i])return e[i].exports;var n=e[i]={i:i,l:!1,exports:{}};return t[i].call(n.exports,n,n.exports,o),n.l=!0,n.exports}return o.m=t,o.c=e,o.d=function(t,e,i){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(o.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)o.d(i,n,function(e){return t[e]}.bind(null,n));return i},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="/dist/conditionalFormatting",o(o.s=78)}([function(t,e){t.exports=__WEBPACK_EXTERNAL_MODULE__0__},function(t,e,o){"use strict";e.__esModule=!0,e.default=void 0;var i=r(o(82)),n=r(o(83));function r(t){return t&&t.__esModule?t:{default:t}}var a=new(function(){function t(){this.polyglot=new n.default({phrases:i.default})}return t.prototype.get=function(t,e){return this.polyglot.t(t,e)},t}());e.default=a},function(t,e){t.exports=__WEBPACK_EXTERNAL_MODULE__2__},function(t,e){t.exports=__WEBPACK_EXTERNAL_MODULE__3__},function(t,e,o){"use strict";t.exports=function(t,e,o,i,n,r,a,s){if(!t){var l;if(void 0===e)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[o,i,n,r,a,s],c=0;(l=new Error(e.replace(/%s/g,(function(){return u[c++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},function(t,e,o){"use strict";var i,n=function(){var t={};return function(e){if(void 0===t[e]){var o=document.querySelector(e);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}t[e]=o}return t[e]}}(),r=[];function a(t){for(var e=-1,o=0;o<r.length;o++)if(r[o].identifier===t){e=o;break}return e}function s(t,e){for(var o={},i=[],n=0;n<t.length;n++){var s=t[n],l=e.base?s[0]+e.base:s[0],u=o[l]||0,c="".concat(l," ").concat(u);o[l]=u+1;var d=a(c),p={css:s[1],media:s[2],sourceMap:s[3]};-1!==d?(r[d].references++,r[d].updater(p)):r.push({identifier:c,updater:g(p,e),references:1}),i.push(c)}return i}function l(t){var e=document.createElement("style"),i=t.attributes||{};if(void 0===i.nonce){var r=o.nc;r&&(i.nonce=r)}if(Object.keys(i).forEach((function(t){e.setAttribute(t,i[t])})),"function"==typeof t.insert)t.insert(e);else{var a=n(t.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(e)}return e}var u,c=(u=[],function(t,e){return u[t]=e,u.filter(Boolean).join("\n")});function d(t,e,o,i){var n=o?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(t.styleSheet)t.styleSheet.cssText=c(e,n);else{var r=document.createTextNode(n),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(r,a[e]):t.appendChild(r)}}function p(t,e,o){var i=o.css,n=o.media,r=o.sourceMap;if(n?t.setAttribute("media",n):t.removeAttribute("media"),r&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleSheet)t.styleSheet.cssText=i;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(i))}}var f=null,h=0;function g(t,e){var o,i,n;if(e.singleton){var r=h++;o=f||(f=l(e)),i=d.bind(null,o,r,!1),n=d.bind(null,o,r,!0)}else o=l(e),i=p.bind(null,o,e),n=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(o)};return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else n()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=(void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i));var o=s(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var i=0;i<o.length;i++){var n=a(o[i]);r[n].references--}for(var l=s(t,e),u=0;u<o.length;u++){var c=a(o[u]);0===r[c].references&&(r[c].updater(),r.splice(c,1))}o=l}}}},function(t,e,o){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var o=function(t,e){var o,i,n,r=t[1]||"",a=t[3];if(!a)return r;if(e&&"function"==typeof btoa){var s=(o=a,i=btoa(unescape(encodeURIComponent(JSON.stringify(o)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(i),"/*# ".concat(n," */")),l=a.sources.map((function(t){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(t," */")}));return[r].concat(l).concat([s]).join("\n")}return[r].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(o,"}"):o})).join("")},e.i=function(t,o,i){"string"==typeof t&&(t=[[null,t,""]]);var n={};if(i)for(var r=0;r<this.length;r++){var a=this[r][0];null!=a&&(n[a]=!0)}for(var s=0;s<t.length;s++){var l=[].concat(t[s]);i&&n[l[0]]||(o&&(l[2]?l[2]="".concat(o," and ").concat(l[2]):l[2]=o),e.push(l))}},e}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t.and="&&",t.none="none"}(e.RangeOperators||(e.RangeOperators={})),function(t){t.greaterThan=">",t.greaterThanOrEqualTo=">=",t.lessThan="<",t.lessThanOrEqualTo="<=",t.equalTo="==",t.inTop="inTop",t.inBottom="inBottom",t.missing="missing"}(e.RULE_OPERATORS||(e.RULE_OPERATORS={})),function(t){t.GTE="GTE",t.LTE="LTE",t.GT="GT",t.LT="LT",t.ET="ET",t.IT="IT",t.IB="IB",t.MI="MI"}(e.CONDITION_TYPES||(e.CONDITION_TYPES={})),function(t){t.PERCENTAGE="%",t.NUMERIC="#"}(e.RULE_SCALES||(e.RULE_SCALES={})),function(t){t.THRESHOLD="threshold",t.RANGE="range"}(e.RULE_TYPES||(e.RULE_TYPES={})),function(t){t.upArrow="upArrow",t.rightArrow="rightArrow",t.downArrow="downArrow",t.upCaret="upCaret",t.dash="dash",t.downCaret="downCaret",t.checkmark="checkmark",t.warning="warning",t.xSymbol="xSymbol",t.circle="circle",t.triangle="triangle",t.diamond="diamond",t.satisfied="satisfied",t.neutral="neutral",t.dissatisfied="dissatisfied",t.none="none"}(e.RULE_STYLE_SHAPE||(e.RULE_STYLE_SHAPE={})),e.RULE_KPI_LIMIT=3,e.RULE_CONDITION_MAXIMUM_FRACTION_DIGITS=2,e.RULE_DEFAULT_MIN_VALUE=0,e.RULE_DEFAULT_MAX_VALUE=100},function(t,e,o){var i=o(30),n=o(125),r=o(20),a=Function.prototype,s=Object.prototype,l=a.toString,u=s.hasOwnProperty,c=l.call(Object);t.exports=function(t){if(!r(t)||"[object Object]"!=i(t))return!1;var e=n(t);if(null===e)return!0;var o=u.call(e,"constructor")&&e.constructor;return"function"==typeof o&&o instanceof o&&l.call(o)==c}},function(t,e){t.exports=__WEBPACK_EXTERNAL_MODULE__9__},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(){}return t.getHexColorOrFillFromColorId=function(e,o,i){void 0===o&&(o=[]);var n=t.NoIdOrHexValue;if(i&&i.length)if(e.isCustomColor(i))n=e.getHexColorFromClassName(i);else{var r=t._findPaletteFromColorId(o,i);r?n=r.hexValue:o.length>0&&(n=o[o.length-1].hexValue)}return n},t.getColorIdFromHexColor=function(e,o,i){void 0===o&&(o=[]);var n=t.NoIdOrHexValue;if(i&&i.length){var r=t._findPaletteFromHexColor(o,i);if(r)n=r.name;else{var a=e.getCustomPaletteDefinition(),s=a.fills,l=a.ids;s.find((function(t,e){var o=t===i;return o&&(n=l[e]),o})),!n&&o.length>0&&(n=o[o.length-1].name)}}return n},t.getColorStyle=function(t,e,o){var i={},n=[];return t&&(i.color=t),e&&n.push(e),o&&(n.push("url('dashboard-core/images/patterns/"+o+".svg')"),i.backgroundRepeat="repeat",i["text-shadow"]=[[2,2,2],[2,-2,2],[2,0,2],[-2,2,2],[-2,-2,2],[-2,0,2],[0,2,2],[0,-2,2],[0,0,2]].map((function(t){return t.join("px ")+"px #ffffff"})).join(",")),n.length>0&&(o?i.background=n.join(" "):i.backgroundColor=n[0]),i},t.getOrCreateColorIdFromHexColor=function(e,o,i){void 0===o&&(o=[]);var n=t._findPaletteFromHexColor(o,i);return n||(n=t._createCustomColor(e,i)),n?n.name:void 0},t.getRgbaColorFromHexColor=function(t,e){if(t.startsWith("#")){for(var o=[],i=1;i<t.length;)o.push(parseInt(t.charAt(i++)+t.charAt(i++),16));return e>1&&(e/=100),o.push(e),"rgba("+o.join(",")+")"}return null},t._createCustomColor=function(t,e){var o=t.addCustomColor(e);return t.createColorDefinition(o,e,e)},t._findPaletteFromColorId=function(t,e){return t.find((function(t){return t.name===e}))},t._findPaletteFromHexColor=function(t,e){return t.find((function(t){var o=t.hexValue;return o.pattern&&o.pattern===e.pattern||o===e}))},t.NoIdOrHexValue="",t}();e.default=i},function(t,e){var o=Array.isArray;t.exports=o},function(t,e){t.exports=__WEBPACK_EXTERNAL_MODULE__12__},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(28),n=o(74),r=o(7);e.DEFAULT_FORMAT="defaultFormat",e.DEFAULT_PALETTE_ID="condColorPalette0";var a=["summaryFillColor","fillColor","backgroundOpacity"],s=function(){function t(){}return t.isKpiVis=function(t){return"KPI"===t},t.getDefaultFormat=function(e,o){var i=t.getDefaultConditionalFormat(e,o);return t.createConditionalFormatSpec(i,o)},t.createConditionalFormatSpec=function(t,e){if(!t)return null;var o=t.dataItemId,r=t.paletteId,a=t.colorBy,s=t.backgroundOpacity,l=t.scale,u=t.heatId,c=new n.ConditionalFormatSpec({dataItemId:o,paletteId:r,colorBy:a,backgroundOpacity:s,scale:l,rules:[],heatId:u},e);return t.rules&&t.rules.length>0&&t.rules.forEach((function(t){var o=t.ruleType,n=t.startCondition?new i.Condition(t.startCondition):void 0,r=t.endCondition?new i.Condition(t.endCondition,!1):void 0,a=new i.RuleStyle(t.ruleStyle,e),s=t.operator,l=new i.Rule({ruleType:o,startCondition:n,endCondition:r,ruleStyle:a,operator:s});c.addRule(-1,l)})),c},t.getDefaultConditionalFormat=function(e,o){var i=t.isKpiVis(o),n={dataItemId:e,paletteId:"condColorPalette0",colorBy:i?void 0:e,backgroundOpacity:i?void 0:50,scale:r.RULE_SCALES.PERCENTAGE,rules:[]};if(i){var a=t.getDefaultRuleThreshold(o,r.RULE_OPERATORS.lessThan,"color4",r.RULE_STYLE_SHAPE.downArrow),s=t.getDefaultRuleThreshold(o,r.RULE_OPERATORS.greaterThanOrEqualTo);n.rules.push(a),n.rules.push(s)}return n},t.createNewRule=function(t,e){void 0===t&&(t={});var o=t.ruleType,n=new i.Condition(t.startCondition),r=t.endCondition?new i.Condition(t.endCondition,!1):void 0,a=new i.RuleStyle(t.ruleStyle,e),s=t.operator,l=t.expand||!1;return new i.Rule({ruleType:o,startCondition:n,endCondition:r,ruleStyle:a,operator:s,expand:l})},t.getDefaultRuleThreshold=function(e,o,i,n){void 0===o&&(o=void 0),void 0===i&&(i="color0"),void 0===n&&(n=r.RULE_STYLE_SHAPE.upArrow);var a=t.isKpiVis(e);return{ruleType:r.RULE_TYPES.THRESHOLD,operator:r.RangeOperators.none,startCondition:{type:o},ruleStyle:{textColor:i,fillColor:a?void 0:"",shape:n}}},t.getDefaultRuleRange=function(e,o,i){void 0===o&&(o="color1"),void 0===i&&(i=r.RULE_STYLE_SHAPE.upArrow);var n=t.isKpiVis(e);return{ruleType:r.RULE_TYPES.RANGE,operator:r.RangeOperators.and,startCondition:{type:r.RULE_OPERATORS.greaterThanOrEqualTo},endCondition:{type:r.RULE_OPERATORS.lessThanOrEqualTo},ruleStyle:{textColor:o,fillColor:n?void 0:"",shape:i}}},t.getConditionTypeFromRuleOperator=function(t){switch(t){case r.RULE_OPERATORS.greaterThan:return r.CONDITION_TYPES.GT;case r.RULE_OPERATORS.greaterThanOrEqualTo:return r.CONDITION_TYPES.GTE;case r.RULE_OPERATORS.lessThan:return r.CONDITION_TYPES.LT;case r.RULE_OPERATORS.lessThanOrEqualTo:return r.CONDITION_TYPES.LTE;case r.RULE_OPERATORS.equalTo:return r.CONDITION_TYPES.ET;case r.RULE_OPERATORS.inTop:return r.CONDITION_TYPES.IT;case r.RULE_OPERATORS.inBottom:return r.CONDITION_TYPES.IB;case r.RULE_OPERATORS.missing:return r.CONDITION_TYPES.MI;default:throw new Error("Invalid RULE_OPERATORS")}},t.getRuleOperatorFromConditionType=function(t){switch(t){case r.CONDITION_TYPES.GT:return r.RULE_OPERATORS.greaterThan;case r.CONDITION_TYPES.GTE:return r.RULE_OPERATORS.greaterThanOrEqualTo;case r.CONDITION_TYPES.LT:return r.RULE_OPERATORS.lessThan;case r.CONDITION_TYPES.LTE:return r.RULE_OPERATORS.lessThanOrEqualTo;case r.CONDITION_TYPES.ET:return r.RULE_OPERATORS.equalTo;case r.CONDITION_TYPES.IT:return r.RULE_OPERATORS.inTop;case r.CONDITION_TYPES.IB:return r.RULE_OPERATORS.inBottom;case r.CONDITION_TYPES.MI:return r.RULE_OPERATORS.missing;default:throw new Error("Invalid CONDITION_TYPES")}},t.isPercentScale=function(t){return t===r.RULE_SCALES.PERCENTAGE},t.getDefaultConditionValue=function(e,o,i,n){return e?t.isPercentScale(o)?r.RULE_DEFAULT_MAX_VALUE:n:t.isPercentScale(o)?r.RULE_DEFAULT_MIN_VALUE:i},t.updateBlackListedAttrBaseOnVisType=function(e,o,i){if(void 0===i&&(i=[]),!a.includes(o))throw new Error("Invalid attribute: "+o+" to be blacklisted");var n=i.indexOf(o);-1===n?t.isKpiVis(e)&&i.push(o):i.splice(n,1)},t.updateConditionalFormatSpecBasedOnVisType=function(e,o){return t.isKpiVis(e)?(o.setColorBy(void 0),o.setBackgroundOpacity(void 0)):(o.getColorBy()||o.setColorBy(o.getDataItemId()),o.getBackgroundOpacity()||o.setBackgroundOpacity(50)),o},t}();e.ConditionalFormatSpecHelper=s,e.default=s},function(t,e){t.exports=__WEBPACK_EXTERNAL_MODULE__14__},function(t,e,o){"use strict";var i=SyntaxError,n=Function,r=TypeError,a=function(t){try{return n('"use strict"; return ('+t+").constructor;")()}catch(t){}},s=Object.getOwnPropertyDescriptor;if(s)try{s({},"")}catch(t){s=null}var l=function(){throw new r},u=s?function(){try{return l}catch(t){try{return s(arguments,"callee").get}catch(t){return l}}}():l,c=o(89)(),d=Object.getPrototypeOf||function(t){return t.__proto__},p={},f="undefined"==typeof Uint8Array?void 0:d(Uint8Array),h={"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":c?d([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":n,"%GeneratorFunction%":p,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":c?d(d([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&c?d((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&c?d((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":c?d(""[Symbol.iterator]()):void 0,"%Symbol%":c?Symbol:void 0,"%SyntaxError%":i,"%ThrowTypeError%":u,"%TypedArray%":f,"%TypeError%":r,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet},g={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},m=o(29),_=o(45),y=m.call(Function.call,Array.prototype.concat),v=m.call(Function.apply,Array.prototype.splice),b=m.call(Function.call,String.prototype.replace),I=m.call(Function.call,String.prototype.slice),S=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,C=/\\(\\)?/g,E=function(t){var e=I(t,0,1),o=I(t,-1);if("%"===e&&"%"!==o)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===o&&"%"!==e)throw new i("invalid intrinsic syntax, expected opening `%`");var n=[];return b(t,S,(function(t,e,o,i){n[n.length]=o?b(i,C,"$1"):e||t})),n},F=function(t,e){var o,n=t;if(_(g,n)&&(n="%"+(o=g[n])[0]+"%"),_(h,n)){var s=h[n];if(s===p&&(s=function t(e){var o;if("%AsyncFunction%"===e)o=a("async function () {}");else if("%GeneratorFunction%"===e)o=a("function* () {}");else if("%AsyncGeneratorFunction%"===e)o=a("async function* () {}");else if("%AsyncGenerator%"===e){var i=t("%AsyncGeneratorFunction%");i&&(o=i.prototype)}else if("%AsyncIteratorPrototype%"===e){var n=t("%AsyncGenerator%");n&&(o=d(n.prototype))}return h[e]=o,o}(n)),void 0===s&&!e)throw new r("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:s}}throw new i("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new r("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new r('"allowMissing" argument must be a boolean');var o=E(t),n=o.length>0?o[0]:"",a=F("%"+n+"%",e),l=a.name,u=a.value,c=!1,d=a.alias;d&&(n=d[0],v(o,y([0,1],d)));for(var p=1,f=!0;p<o.length;p+=1){var g=o[p],m=I(g,0,1),b=I(g,-1);if(('"'===m||"'"===m||"`"===m||'"'===b||"'"===b||"`"===b)&&m!==b)throw new i("property names with quotes must have matching quotes");if("constructor"!==g&&f||(c=!0),_(h,l="%"+(n+="."+g)+"%"))u=h[l];else if(null!=u){if(!(g in u)){if(!e)throw new r("base intrinsic for "+t+" exists, but the property is not available.");return}if(s&&p+1>=o.length){var S=s(u,g);u=(f=!!S)&&"get"in S&&!("originalValue"in S.get)?S.get:u[g]}else f=_(u,g),u=u[g];f&&!c&&(h[l]=u)}}return u}},function(t,e){var o;o=function(){return this}();try{o=o||new Function("return this")()}catch(t){"object"==typeof window&&(o=window)}t.exports=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.NUM0=48]="NUM0",t[t.NUM1=49]="NUM1",t[t.NUM2=50]="NUM2",t[t.NUM3=51]="NUM3",t[t.NUM4=52]="NUM4",t[t.NUM5=53]="NUM5",t[t.NUM6=54]="NUM6",t[t.NUM7=55]="NUM7",t[t.NUM8=56]="NUM8",t[t.NUM9=57]="NUM9",t[t.A=65]="A",t[t.B=66]="B",t[t.C=67]="C",t[t.D=68]="D",t[t.E=69]="E",t[t.F=70]="F",t[t.G=71]="G",t[t.H=72]="H",t[t.I=73]="I",t[t.J=74]="J",t[t.K=75]="K",t[t.L=76]="L",t[t.M=77]="M",t[t.N=78]="N",t[t.O=79]="O",t[t.P=80]="P",t[t.Q=81]="Q",t[t.R=82]="R",t[t.S=83]="S",t[t.T=84]="T",t[t.U=85]="U",t[t.V=86]="V",t[t.W=87]="W",t[t.X=88]="X",t[t.Y=89]="Y",t[t.Z=90]="Z",t[t.NUMPAD0=96]="NUMPAD0",t[t.NUMPAD1=97]="NUMPAD1",t[t.NUMPAD2=98]="NUMPAD2",t[t.NUMPAD3=99]="NUMPAD3",t[t.NUMPAD4=100]="NUMPAD4",t[t.NUMPAD5=101]="NUMPAD5",t[t.NUMPAD6=102]="NUMPAD6",t[t.NUMPAD7=103]="NUMPAD7",t[t.NUMPAD8=104]="NUMPAD8",t[t.NUMPAD9=105]="NUMPAD9",t[t.F1=112]="F1",t[t.F2=113]="F2",t[t.F3=114]="F3",t[t.F4=115]="F4",t[t.F5=116]="F5",t[t.F6=117]="F6",t[t.F7=118]="F7",t[t.F8=119]="F8",t[t.F9=120]="F9",t[t.F10=121]="F10",t[t.F11=122]="F11",t[t.F12=123]="F12",t[t.BACKSPACE=8]="BACKSPACE",t[t.TAB=9]="TAB",t[t.ENTER=13]="ENTER",t[t.SHIFT=16]="SHIFT",t[t.CTRL=17]="CTRL",t[t.ALT=18]="ALT",t[t.PAUSEBREAK=19]="PAUSEBREAK",t[t.CAPSLOCK=20]="CAPSLOCK",t[t.ESCAPE=27]="ESCAPE",t[t.SPACE=32]="SPACE",t[t.PAGEUP=33]="PAGEUP",t[t.PAGEDOWN=34]="PAGEDOWN",t[t.END=35]="END",t[t.HOME=36]="HOME",t[t.LEFT_ARROW=37]="LEFT_ARROW",t[t.UP_ARROW=38]="UP_ARROW",t[t.RIGHT_ARROW=39]="RIGHT_ARROW",t[t.DOWN_ARROW=40]="DOWN_ARROW",t[t.INSERT=45]="INSERT",t[t.DELETE=46]="DELETE",t[t.SECOND=50]="SECOND",t[t.LEFT_WINDOW_KEY=91]="LEFT_WINDOW_KEY",t[t.RIGHT_WINDOW_KEY=92]="RIGHT_WINDOW_KEY",t[t.SELECT_KEY=93]="SELECT_KEY",t[t.MULTIPLY=106]="MULTIPLY",t[t.ADD=107]="ADD",t[t.SUBTRACT=109]="SUBTRACT",t[t.DECIMAL_POINT=110]="DECIMAL_POINT",t[t.DIVIDE=111]="DIVIDE",t[t.NUM_LOCK=144]="NUM_LOCK",t[t.SCROLL_LOCK=145]="SCROLL_LOCK",t[t.SEMI_COLON=186]="SEMI_COLON",t[t.EQUAL=187]="EQUAL",t[t.COMMA=188]="COMMA",t[t.DASH=189]="DASH",t[t.PERIOD=190]="PERIOD",t[t.FORWARDSLASH=191]="FORWARDSLASH",t[t.GRAVE_ACCENT=192]="GRAVE_ACCENT",t[t.OPEN_BRACKET=219]="OPEN_BRACKET",t[t.BACKSLASH=220]="BACKSLASH",t[t.CLOSE_BRACKET=221]="CLOSE_BRACKET",t[t.SINGLE_QUOTE=222]="SINGLE_QUOTE"}(e.KeyCodes||(e.KeyCodes={}))},function(t,e,o){t.exports=o(117)()},function(t,e,o){var i=o(122),n="object"==typeof self&&self&&self.Object===Object&&self,r=i||n||Function("return this")();t.exports=r},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.END_DRAG=e.DROP=e.HOVER=e.PUBLISH_DRAG_SOURCE=e.BEGIN_DRAG=void 0;var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(t[i]=o[i])}return t};e.beginDrag=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{publishSource:!0,clientOffset:null},o=e.publishSource,i=e.clientOffset,s=e.getSourceClientOffset;(0,n.default)((0,r.default)(t),"Expected sourceIds to be an array.");var l=this.getMonitor(),c=this.getRegistry();(0,n.default)(!l.isDragging(),"Cannot call beginDrag while dragging.");for(var d=0;d<t.length;d++)(0,n.default)(c.getSource(t[d]),"Expected sourceIds to be registered.");for(var p=null,f=t.length-1;f>=0;f--)if(l.canDragSource(t[f])){p=t[f];break}if(null!==p){var h=null;i&&((0,n.default)("function"==typeof s,"When clientOffset is provided, getSourceClientOffset must be a function."),h=s(p));var g=c.getSource(p),m=g.beginDrag(l,p);(0,n.default)((0,a.default)(m),"Item must be an object."),c.pinSource(p);var _=c.getSourceType(p);return{type:u,itemType:_,item:m,sourceId:p,clientOffset:i,sourceClientOffset:h,isSourcePublic:o}}},e.publishDragSource=function(){if(this.getMonitor().isDragging())return{type:c}},e.hover=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=e.clientOffset,i=void 0===o?null:o;(0,n.default)((0,r.default)(t),"Expected targetIds to be an array.");var a=t.slice(0),l=this.getMonitor(),u=this.getRegistry();(0,n.default)(l.isDragging(),"Cannot call hover while not dragging."),(0,n.default)(!l.didDrop(),"Cannot call hover after drop.");for(var c=0;c<a.length;c++){var p=a[c];(0,n.default)(a.lastIndexOf(p)===c,"Expected targetIds to be unique in the passed array.");var f=u.getTarget(p);(0,n.default)(f,"Expected targetIds to be registered.")}for(var h=l.getItemType(),g=a.length-1;g>=0;g--){var m=a[g],_=u.getTargetType(m);(0,s.default)(_,h)||a.splice(g,1)}for(var y=0;y<a.length;y++){var v=a[y],b=u.getTarget(v);b.hover(l,v)}return{type:d,targetIds:a,clientOffset:i}},e.drop=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=this.getMonitor(),r=this.getRegistry();(0,n.default)(o.isDragging(),"Cannot call drop while not dragging."),(0,n.default)(!o.didDrop(),"Cannot call drop twice during one drag operation.");var s=o.getTargetIds().filter(o.canDropOnTarget,o);s.reverse(),s.forEach((function(s,l){var u=r.getTarget(s).drop(o,s);(0,n.default)(void 0===u||(0,a.default)(u),"Drop result must either be an object or undefined."),void 0===u&&(u=0===l?{}:o.getDropResult()),t.store.dispatch({type:p,dropResult:i({},e,u)})}))},e.endDrag=function(){var t=this.getMonitor(),e=this.getRegistry();(0,n.default)(t.isDragging(),"Cannot call endDrag while not dragging.");var o=t.getSourceId();return e.getSource(o,!0).endDrag(t,o),e.unpinSource(),{type:f}};var n=l(o(4)),r=l(o(11)),a=l(o(32)),s=l(o(56));function l(t){return t&&t.__esModule?t:{default:t}}var u=e.BEGIN_DRAG="dnd-core/BEGIN_DRAG",c=e.PUBLISH_DRAG_SOURCE="dnd-core/PUBLISH_DRAG_SOURCE",d=e.HOVER="dnd-core/HOVER",p=e.DROP="dnd-core/DROP",f=e.END_DRAG="dnd-core/END_DRAG"},function(t,e,o){var i=o(23)(Object,"create");t.exports=i},function(t,e,o){var i=o(136),n=o(140);t.exports=function(t,e){var o=n(t,e);return i(o)?o:void 0}},function(t,e,o){var i=o(148);t.exports=function(t,e){for(var o=t.length;o--;)if(i(t[o][0],e))return o;return-1}},function(t,e,o){var i=o(154);t.exports=function(t,e){var o=t.__data__;return i(e)?o["string"==typeof e?"string":"hash"]:o.map}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.addSource=function(t){return{type:i,sourceId:t}},e.addTarget=function(t){return{type:n,targetId:t}},e.removeSource=function(t){return{type:r,sourceId:t}},e.removeTarget=function(t){return{type:a,targetId:t}};var i=e.ADD_SOURCE="dnd-core/ADD_SOURCE",n=e.ADD_TARGET="dnd-core/ADD_TARGET",r=e.REMOVE_SOURCE="dnd-core/REMOVE_SOURCE",a=e.REMOVE_TARGET="dnd-core/REMOVE_TARGET"},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){}},function(t,e,o){"use strict";var i,n=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),r=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var a=o(12),s=r(o(73)),l=o(7),u=r(o(72)),c=o(13),d=function(t){function e(e,o){void 0===e&&(e={}),void 0===o&&(o=!0);var i=t.call(this)||this;i.type=e.type,i.isStartCondition=o;var n=e.value;return"number"==typeof n?i.value=n:"string"==typeof n&&(i.value=parseInt(n,10)),i}return n(e,t),e.prototype.setDefaultValue=function(t,e,o){this.defaultValue=c.ConditionalFormatSpecHelper.getDefaultConditionValue(this.isStartCondition,t,e,o)},e.prototype.getType=function(){return this.type},e.prototype.setType=function(t){this.type=t},e.prototype.getValue=function(){return this._getValue()},e.prototype.setValue=function(t){this.value=t!==this.defaultValue?t:void 0},e.prototype.hasValue=function(){return a.isNumber(this.value)},e.prototype.toJSON=function(t){var e=!!a.isBoolean(t)&&t,o={type:this.type};return e?a.isNumber(this.value)&&(o.value=this.value):o.value=this._getValue(),o},e.prototype._getValue=function(){return a.isNumber(this.value)?this.value:this.defaultValue},e}(s.default);e.Condition=d;var p=function(t){function e(e){void 0===e&&(e={});var o=t.call(this)||this;return o.ruleType=e.ruleType,e.startCondition&&(o.startCondition=e.startCondition),e.endCondition&&(o.endCondition=e.endCondition),o.ruleStyle=e.ruleStyle,o.operator=e.operator,o.expand=e.expand||!1,o}return n(e,t),e.prototype.getRuleType=function(){return this.ruleType},e.prototype.setRuleType=function(t){this.ruleType=t},e.prototype.getStartCondition=function(){return this.startCondition},e.prototype.getRuleStartConditionType=function(){return this.startCondition.getType()},e.prototype.setRuleStartConditionType=function(t){return this.startCondition.setType(t)},e.prototype.getRuleStartConditionValue=function(){return this.startCondition.getValue()},e.prototype.setRuleStartConditionValue=function(t){this.startCondition.setValue(t)},e.prototype.getRuleEndConditionType=function(){return this.endCondition.getType()},e.prototype.setRuleEndConditionType=function(t){return this.endCondition.setType(t)},e.prototype.getRuleEndConditionValue=function(){return this.endCondition.getValue()},e.prototype.setRuleEndConditionValue=function(t){this.endCondition.setValue(t)},e.prototype.getRuleStyleTextColor=function(){return this.ruleStyle.getTextColor()},e.prototype.setRuleStyleTextColor=function(t){this.ruleStyle.setTextColor(t)},e.prototype.getRuleStyleFillColor=function(){return this.ruleStyle.getFillColor()},e.prototype.setRuleStyleFillColor=function(t){this.ruleStyle.setFillColor(t)},e.prototype.getRuleStyleShape=function(){return this.ruleStyle.getShape()},e.prototype.setRuleStyleShape=function(t){this.ruleStyle.setShape(t)},e.prototype.setStartCondition=function(t){this.startCondition=t},e.prototype.hasEndCondition=function(){return!!this.endCondition},e.prototype.getEndCondition=function(){return this.endCondition},e.prototype.setEndCondition=function(t){this.endCondition=t},e.prototype.getRuleStyle=function(){return this.ruleStyle},e.prototype.setRuleStyle=function(t){this.ruleStyle=t},e.prototype.getOperator=function(){return this.operator},e.prototype.setOperator=function(t){this.operator=t},e.prototype.setRangeOperator=function(t){if(this.operator=t,this._hasValidOperator())if(this.operator===l.RangeOperators.and){this.ruleType=l.RULE_TYPES.RANGE;var e={type:u.default.getEndConditionTypeBaseOnStartCondtionType(this.startCondition.getType())};this.endCondition=new d(e,!1)}else this.ruleType=l.RULE_TYPES.THRESHOLD,delete this.endCondition;else console.log("Unsupported rule operator: "+this.operator);return this.endCondition},e.prototype.setExpand=function(t){this.expand=t},e.prototype.updateVisType=function(t){this.ruleStyle.updateVisType(t)},e.prototype.toJSON=function(e){var o=!!a.isBoolean(e)&&e,i=t.prototype.toJSON.call(this,o);return o&&delete i.expand,i},e.prototype._hasValidOperator=function(){return this.operator===l.RangeOperators.and||this.operator===l.RangeOperators.none},e}(s.default);e.Rule=p;var f=function(t){function e(e,o){void 0===e&&(e={});var i=t.call(this)||this;return i.fillColor=e.fillColor,i.textColor=e.textColor,i.shape=e.shape,c.ConditionalFormatSpecHelper.isKpiVis(o)&&i._blackListedAttr.push("fillColor"),i}return n(e,t),e.prototype.getFillColor=function(){return this.fillColor},e.prototype.setFillColor=function(t){this.fillColor=t},e.prototype.getTextColor=function(){return this.textColor},e.prototype.setTextColor=function(t){this.textColor=t},e.prototype.getShape=function(){return this.shape},e.prototype.setShape=function(t){this.shape=t},e.prototype.updateVisType=function(t){c.ConditionalFormatSpecHelper.updateBlackListedAttrBaseOnVisType(t,"fillColor",this._blackListedAttr)},e}(s.default);e.RuleStyle=f},function(t,e,o){"use strict";var i=o(87);t.exports=Function.prototype.bind||i},function(t,e,o){var i=o(31),n=o(123),r=o(124),a=i?i.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":(t=Object(t),a&&a in t?n(t):r(t))}},function(t,e,o){var i=o(19).Symbol;t.exports=i},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,o){var i=o(132),n=o(158),r=o(159);function a(t){var e=-1,o=null==t?0:t.length;for(this.__data__=new i;++e<o;)this.add(t[e])}a.prototype.add=a.prototype.push=n,a.prototype.has=r,t.exports=a},function(t,e,o){var i=o(160);t.exports=function(t,e){return!(null==t||!t.length)&&i(t,e,0)>-1}},function(t,e){t.exports=function(t,e,o){for(var i=-1,n=null==t?0:t.length;++i<n;)if(o(e,t[i]))return!0;return!1}},function(t,e){t.exports=function(t,e){for(var o=-1,i=null==t?0:t.length,n=Array(i);++o<i;)n[o]=e(t[o],o,t);return n}},function(t,e){t.exports=function(t,e){return t.has(e)}},function(t,e,o){var i=o(60),n=o(164),r=o(166);t.exports=function(t,e){return r(n(t,e,i),t+"")}},function(t,e,o){var i=o(171),n=o(20);t.exports=function(t){return n(t)&&i(t)}},function(t,e,o){"use strict";var i={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r=Object.defineProperty,a=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,l=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,c=u&&u(Object);t.exports=function t(e,o,d){if("string"!=typeof o){if(c){var p=u(o);p&&p!==c&&t(e,p,d)}var f=a(o);s&&(f=f.concat(s(o)));for(var h=0;h<f.length;++h){var g=f[h];if(!(i[g]||n[g]||d&&d[g])){var m=l(o,g);try{r(e,g,m)}catch(t){}}}return e}return e}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(t===e)return!0;var o=Object.keys(t),i=Object.keys(e);if(o.length!==i.length)return!1;for(var n=Object.prototype.hasOwnProperty,r=0;r<o.length;r+=1){if(!n.call(e,o[r])||t[o[r]]!==e[o[r]])return!1;if(t[o[r]]!==e[o[r]])return!1}return!0}},function(t,e,o){"use strict";e.__esModule=!0,e.default=function(t){return Boolean(t&&"function"==typeof t.dispose)},t.exports=e.default},function(t,e){t.exports=__WEBPACK_EXTERNAL_MODULE__43__},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t){void 0===t&&(t={}),this.dataItemId=t.dataItemId,this.label=t.label}return t.prototype.getDataItemId=function(){return this.dataItemId},t.prototype.getLabel=function(){return this.label},t.getPlaceHolderMeaureColumnId=function(){return"placeHolderMeasure"},t.getPlaceHolderMeasureDataItem=function(){return new t({dataItemId:"placeHolderMeasure",label:"placeHolderMeasure"})},t}();e.default=i},function(t,e,o){"use strict";var i=o(29);t.exports=i.call(Function.call,Object.prototype.hasOwnProperty)},function(t,e,o){"use strict";var i=o(29),n=o(15),r=n("%Function.prototype.apply%"),a=n("%Function.prototype.call%"),s=n("%Reflect.apply%",!0)||i.call(a,r),l=n("%Object.getOwnPropertyDescriptor%",!0),u=n("%Object.defineProperty%",!0),c=n("%Math.max%");if(u)try{u({},"a",{value:1})}catch(t){u=null}t.exports=function(t){var e=s(i,a,arguments);if(l&&u){var o=l(e,"length");o.configurable&&u(e,"length",{value:1+c(0,t.length-(arguments.length-1))})}return e};var d=function(){return s(i,r,arguments)};u?u(t.exports,"apply",{value:d}):t.exports.apply=d},function(t,e,o){"use strict";var i=o(91),n="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),r=Object.prototype.toString,a=Array.prototype.concat,s=Object.defineProperty,l=s&&function(){var t={};try{for(var e in s(t,"x",{enumerable:!1,value:t}),t)return!1;return t.x===t}catch(t){return!1}}(),u=function(t,e,o,i){var n;(!(e in t)||"function"==typeof(n=i)&&"[object Function]"===r.call(n)&&i())&&(l?s(t,e,{configurable:!0,enumerable:!1,value:o,writable:!0}):t[e]=o)},c=function(t,e){var o=arguments.length>2?arguments[2]:{},r=i(e);n&&(r=a.call(r,Object.getOwnPropertySymbols(e)));for(var s=0;s<r.length;s+=1)u(t,r[s],e[r[s]],o[r[s]])};c.supportsDescriptors=!!l,t.exports=c},function(t,e,o){"use strict";var i=Object.prototype.toString;t.exports=function(t){var e=i.call(t),o="[object Arguments]"===e;return o||(o="[object Array]"!==e&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===i.call(t.callee)),o}},function(t,e,o){"use strict";var i=o(93),n=o(95),r=o(96)("String.prototype.replace"),a=/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,s=/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;t.exports=function(){var t=n(i(this));return r(r(t,a,""),s,"")}},function(t,e,o){"use strict";var i=o(49);t.exports=function(){return String.prototype.trim&&"​"==="​".trim()?String.prototype.trim:i}},function(t,e,o){"use strict";var i,n=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),r=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}(o(0)),s=o(3),l=o(2),u=r(o(100)),c=r(o(103)),d=r(o(106)),p=r(o(112)),f=r(o(115));o(228);var h=r(o(1)),g=r(o(43)),m=function(t){function e(e){var o=t.call(this,e)||this;return o._rulesComponentRef=a.default.createRef(),o._colorByComponentRef=a.default.createRef(),o}return n(e,t),e.prototype.componentDidUpdate=function(){var t=this.props.mstForUIPanels;if(this.updateTopBannerLabel){if(t.isChildCFPanel){var e=g.default(".dashboardAuthoringToolsPane");if(e.length){var o=e.find(".slideout__contributions__item");if("PropertiesPane"===o.data("contribution-id")&&o[0].childNodes.length>1){var i=g.default(o[0].childNodes[0]);if(i.data("child-panel-id")){var n=h.default.get("conditionalColor")+": "+t.getDataItemLabel();i.attr("aria-label",n),(i=i.find(".propertiesBannerLabel")).empty().html(n)}}}}this.updateTopBannerLabel=!1}},e.prototype.componentDidMount=function(){var t=this.props.uiContext;t.setRulesComponentReactRef(this._rulesComponentRef),t.setConditionalColorPanelComponent(this)},e.prototype.render=function(){var t=this.props,e=t.uiContext,o=t.mstForUIPanels,i=o.getMeasureDataItem(),n=o.getMSTConditionalFormatModel(),r=o.isDisabled;return this.updateTopBannerLabel=this.topBannerLabel&&this.topBannerLabel!==o.getDataItemLabel(),this.topBannerLabel=o.getDataItemLabel(),a.default.createElement(l.Container,{className:l.classnames("vis-cf-panelContainer",{disabled:r})},a.default.createElement(l.Container,{className:l.classnames("vis-cf-panelContainer-inner",{disabled:r})},a.default.createElement(u.default,{uiContext:e,conditionalFormatModel:n}),!e.isKpiVis()&&a.default.createElement(d.default,{ref:this._colorByComponentRef,uiContext:e,currentDataItem:i}),a.default.createElement(c.default,{conditionalFormatModel:n}),a.default.createElement(f.default,{disabled:r,ref:this._rulesComponentRef,conditionalFormatModel:n,uiContext:e}),!e.isKpiVis()&&a.default.createElement(l.Separator,{hMargin:0,className:"vis-cf-background-opacity-separator",orientation:"horizontal"}),!e.isKpiVis()&&a.default.createElement(p.default,{conditionalFormatModel:n})))},e.prototype.onSlideoutMounted=function(){this._colorByComponentRef&&this._colorByComponentRef.current&&this._colorByComponentRef.current.onSlideoutMounted()},e}(a.Component);e.default=s.observer(m)},function(t,e){t.exports=__WEBPACK_EXTERNAL_MODULE__52__},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(54);Object.defineProperty(e,"DragDropContext",{enumerable:!0,get:function(){return l(i).default}});var n=o(197);Object.defineProperty(e,"DragDropContextProvider",{enumerable:!0,get:function(){return l(n).default}});var r=o(198);Object.defineProperty(e,"DragLayer",{enumerable:!0,get:function(){return l(r).default}});var a=o(199);Object.defineProperty(e,"DragSource",{enumerable:!0,get:function(){return l(a).default}});var s=o(209);function l(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"DropTarget",{enumerable:!0,get:function(){return l(s).default}})},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unpackBackendForEs5Users=e.createChildContext=e.CHILD_CONTEXT_TYPES=void 0;var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(t[i]=o[i])}return t},n=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.default=function(t){p.default.apply(void 0,["DragDropContext","backend"].concat(Array.prototype.slice.call(arguments)));var e=v(t),o=y(e);return function(t){var e,r,l=t.displayName||t.name||"Component",u=(r=e=function(e){function r(){return h(this,r),g(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return m(r,e),n(r,[{key:"getDecoratedComponentInstance",value:function(){return(0,c.default)(this.child,"In order to access an instance of the decorated component it can not be a stateless component."),this.child}},{key:"getManager",value:function(){return o.dragDropManager}},{key:"getChildContext",value:function(){return o}},{key:"render",value:function(){var e=this;return s.default.createElement(t,i({},this.props,{ref:function(t){e.child=t}}))}}]),r}(a.Component),e.DecoratedComponent=t,e.displayName="DragDropContext("+l+")",e.childContextTypes=_,r);return(0,d.default)(u,t)}};var a=o(0),s=f(a),l=f(o(18)),u=o(119),c=f(o(4)),d=f(o(40)),p=f(o(27));function f(t){return t&&t.__esModule?t:{default:t}}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function m(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var _=e.CHILD_CONTEXT_TYPES={dragDropManager:l.default.object.isRequired},y=e.createChildContext=function(t,e){return{dragDropManager:new u.DragDropManager(t,e)}},v=e.unpackBackendForEs5Users=function(t){var e=t;return"object"===(void 0===e?"undefined":r(e))&&"function"==typeof e.default&&(e=e.default),(0,c.default)("function"==typeof e,"Expected the backend to be a function or an ES6 module exporting a default function. Read more: http://react-dnd.github.io/react-dnd/docs-drag-drop-context.html"),e}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(t[i]=o[i])}return t};e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,e=arguments[1];switch(e.type){case n.BEGIN_DRAG:return{initialSourceClientOffset:e.sourceClientOffset,initialClientOffset:e.clientOffset,clientOffset:e.clientOffset};case n.HOVER:return a(t.clientOffset,e.clientOffset)?t:i({},t,{clientOffset:e.clientOffset});case n.END_DRAG:case n.DROP:return r;default:return t}},e.getSourceClientOffset=function(t){var e=t.clientOffset,o=t.initialClientOffset,i=t.initialSourceClientOffset;return e&&o&&i?{x:e.x+i.x-o.x,y:e.y+i.y-o.y}:null},e.getDifferenceFromInitialOffset=function(t){var e=t.clientOffset,o=t.initialClientOffset;return e&&o?{x:e.x-o.x,y:e.y-o.y}:null};var n=o(21),r={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function a(t,e){return t===e||t&&e&&t.x===e.x&&t.y===e.y}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return(0,n.default)(t)?t.some((function(t){return t===e})):t===e};var i,n=(i=o(11))&&i.__esModule?i:{default:i}},function(t,e,o){var i=o(33),n=o(34),r=o(35),a=o(36),s=o(59),l=o(37);t.exports=function(t,e,o,u){var c=-1,d=n,p=!0,f=t.length,h=[],g=e.length;if(!f)return h;o&&(e=a(e,s(o))),u?(d=r,p=!1):e.length>=200&&(d=l,p=!1,e=new i(e));t:for(;++c<f;){var m=t[c],_=null==o?m:o(m);if(m=u||0!==m?m:0,p&&_==_){for(var y=g;y--;)if(e[y]===_)continue t;h.push(m)}else d(e,_,u)||h.push(m)}return h}},function(t,e,o){var i=o(30),n=o(32);t.exports=function(t){if(!n(t))return!1;var e=i(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e){t.exports=function(t){return t}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=arguments[1],e=arguments[2];switch(t.type){case r.HOVER:break;case a.ADD_SOURCE:case a.ADD_TARGET:case a.REMOVE_TARGET:case a.REMOVE_SOURCE:return l;case r.BEGIN_DRAG:case r.PUBLISH_DRAG_SOURCE:case r.END_DRAG:case r.DROP:default:return u}var o=t.targetIds,n=e.targetIds,s=(0,i.default)(o,n),c=!1;if(0===s.length){for(var d=0;d<o.length;d++)if(o[d]!==n[d]){c=!0;break}}else c=!0;if(!c)return l;var p=n[n.length-1],f=o[o.length-1];return p!==f&&(p&&s.push(p),f&&s.push(f)),s},e.areDirty=function(t,e){return t!==l&&(t===u||void 0===e||(0,n.default)(e,t).length>0)};var i=s(o(174)),n=s(o(185)),r=o(21),a=o(26);function s(t){return t&&t.__esModule?t:{default:t}}var l=[],u=[]},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t){var e=-1,o=Array(t.size);return t.forEach((function(t){o[++e]=t})),o}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.default=function(t,e){if(t===e)return!0;if("object"!==(void 0===t?"undefined":i(t))||null===t||"object"!==(void 0===e?"undefined":i(e))||null===e)return!1;var o=Object.keys(t),n=Object.keys(e);if(o.length!==n.length)return!1;for(var r=Object.prototype.hasOwnProperty,a=0;a<o.length;a+=1){if(!r.call(e,o[a]))return!1;var s=t[o[a]],l=e[o[a]];if(s!==l||"object"===(void 0===s?"undefined":i(s))||"object"===(void 0===l?"undefined":i(l)))return!1}return!0}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(t[i]=o[i])}return t},n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();e.default=function(t){var e,o,h=t.DecoratedComponent,m=t.createHandler,_=t.createMonitor,y=t.createConnector,v=t.registerHandler,b=t.containerDisplayName,I=t.getType,S=t.collect,C=t.options.arePropsEqual,E=void 0===C?f.default:C,F=h.displayName||h.name||"Component",D=(o=e=function(t){function e(t,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,o));return i.handleChange=i.handleChange.bind(i),i.handleChildRef=i.handleChildRef.bind(i),(0,c.default)("object"===n(i.context.dragDropManager),"Could not find the drag and drop manager in the context of %s. Make sure to wrap the top-level component of your app with DragDropContext. Read more: http://react-dnd.github.io/react-dnd/docs-troubleshooting.html#could-not-find-the-drag-and-drop-manager-in-the-context",F,F),i.manager=i.context.dragDropManager,i.handlerMonitor=_(i.manager),i.handlerConnector=y(i.manager.getBackend()),i.handler=m(i.handlerMonitor),i.disposable=new u.SerialDisposable,i.receiveProps(t),i.state=i.getCurrentState(),i.dispose(),i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"getHandlerId",value:function(){return this.handlerId}},{key:"getDecoratedComponentInstance",value:function(){return this.decoratedComponentInstance}},{key:"shouldComponentUpdate",value:function(t,e){return!E(t,this.props)||!(0,p.default)(e,this.state)}}]),r(e,[{key:"componentDidMount",value:function(){this.isCurrentlyMounted=!0,this.disposable=new u.SerialDisposable,this.currentType=null,this.receiveProps(this.props),this.handleChange()}},{key:"componentWillReceiveProps",value:function(t){E(t,this.props)||(this.receiveProps(t),this.handleChange())}},{key:"componentWillUnmount",value:function(){this.dispose(),this.isCurrentlyMounted=!1}},{key:"receiveProps",value:function(t){this.handler.receiveProps(t),this.receiveType(I(t))}},{key:"receiveType",value:function(t){if(t!==this.currentType){this.currentType=t;var e=v(t,this.handler,this.manager),o=e.handlerId,i=e.unregister;this.handlerId=o,this.handlerMonitor.receiveHandlerId(o),this.handlerConnector.receiveHandlerId(o);var n=this.manager.getMonitor().subscribeToStateChange(this.handleChange,{handlerIds:[o]});this.disposable.setDisposable(new u.CompositeDisposable(new u.Disposable(n),new u.Disposable(i)))}}},{key:"handleChange",value:function(){if(this.isCurrentlyMounted){var t=this.getCurrentState();(0,p.default)(t,this.state)||this.setState(t)}}},{key:"dispose",value:function(){this.disposable.dispose(),this.handlerConnector.receiveHandlerId(null)}},{key:"handleChildRef",value:function(t){this.decoratedComponentInstance=t,this.handler.receiveComponent(t)}},{key:"getCurrentState",value:function(){return S(this.handlerConnector.hooks,this.handlerMonitor)}},{key:"render",value:function(){return s.default.createElement(h,i({},this.props,this.state,{ref:g(h)?this.handleChildRef:null}))}}]),e}(a.Component),e.DecoratedComponent=h,e.displayName=b+"("+F+")",e.contextTypes={dragDropManager:l.default.object.isRequired},o);return(0,d.default)(D,h)};var a=o(0),s=h(a),l=h(o(18)),u=o(200),c=(h(o(8)),h(o(4))),d=h(o(40)),p=h(o(41)),f=h(o(64));function h(t){return t&&t.__esModule?t:{default:t}}var g=function(t){return Boolean(t&&t.prototype&&"function"==typeof t.prototype.render)}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e={};return Object.keys(t).forEach((function(o){var i=function(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if((0,n.isValidElement)(e)){var i=e;a(i);var s=o?function(e){return t(e,o)}:t;return(0,r.default)(i,s)}var l=e;t(l,o)}}(t[o]);e[o]=function(){return i}})),e};var i,n=o(0),r=(i=o(208))&&i.__esModule?i:{default:i};function a(t){if("string"!=typeof t.type){var e=t.type.displayName||t.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors.You can either wrap "+e+" into a <div>, or turn it into a drag source or a drop target itself.")}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return e===t||null!==e&&null!==t&&(0,n.default)(e,t)};var i,n=(i=o(41))&&i.__esModule?i:{default:i}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.default=function t(e,o){return"string"==typeof e||"symbol"===(void 0===e?"undefined":i(e))||o&&(0,r.default)(e)&&e.every((function(e){return t(e,!1)}))};var n,r=(n=o(11))&&n.__esModule?n:{default:n}},function(t,e,o){"use strict";var i,n=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),r=function(){return(r=Object.assign||function(t){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)},a=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}(o(0)),l=o(3),u=o(2),c=o(17),d=a(o(1));o(218);var p=o(52),f=a(o(10)),h=u.lodash.uniqueId,g=function(t){function e(o,i){var n=t.call(this,o,i)||this;return n.state=r({},e.defaultProps),n.triggerButton=s.default.createRef(),n.attachRef=s.default.createRef(),n}return n(e,t),e.prototype.componentDidMount=function(){this.props.colorPickerModel.loadColors()},e.prototype.render=function(){var t=this,e=this.state,o=e.colorFlyoutOpen,i=e.customColorDialogOpen,n=this.props,a=n.selectedColor,l=n.className,c=n.style,d=n.flyoutExtraOptions,p=this.props.orientation;return void 0===p&&(p="rtl"===document.body.dir?"bottomLeft":"bottomRight"),s.default.createElement("div",{className:"vis-cf-colorPicker "+l,ref:this.attachRef,style:c},i&&this._renderCustomColor(),s.default.createElement(u.Button,{ref:this.triggerButton,tabIndex:0,variant:"frameless",onClick:function(){t.setState({colorFlyoutOpen:!o})},style:a&&f.default.getColorStyle(a.color,a.fill,a.pattern),className:"vis-cf-colorPicker_button"}),o&&s.default.createElement(u.Flyout,r({id:h("vis-cf-colorPicker")+"__flyout","data-tid":h("vis-cf-colorPicker")+"__flyout"},d,{"aria-hidden":o,placement:p,domNodeToAttachTo:this.attachRef.current,hideArrow:!0,offset:2,onClose:this._handleClose.bind(this),className:"vis-cf-colorPicker__flyout"}),this._displayFlyout()))},e.prototype._displayFlyout=function(){var t=this.props,e=t.colorPickerModel,o=t.hasDefaultFillColor,i=t.useSystemPalettes?e.getSystemPaletteColors():e.getPaletteColors(o),n=e.getFavoriteColors();return s.default.createElement(u.FlexLayout,{direction:"column",className:"vis-cf-colorPickerContainer"},s.default.createElement(u.FlexItem,{className:"vis-cf-paletteColorContainer",tabIndex:0},s.default.createElement(u.FlexLayout,{direction:"column"},s.default.createElement(u.FlexItem,null,s.default.createElement(u.Label,{label:d.default.get("conditionalFormattingPaletteColors"),className:"vis-cf-paletteColorLabel"})),s.default.createElement(u.FlexItem,{className:"vis-cf-paletteColorOptions"},s.default.createElement(u.FlexLayout,{direction:"row",className:"vis-cf-ColorOptionsContainer"},i.map(this._displayColors.bind(this,"paletteColor")))))),n.length>1&&s.default.createElement(u.FlexItem,{className:"vis-cf-favoriteColorContainer",tabIndex:0},s.default.createElement(u.FlexLayout,{direction:"column"},s.default.createElement(u.FlexItem,null,s.default.createElement(u.Label,{label:d.default.get("conditionalFormattingFavoriteColors"),className:"vis-cf-favoriteColorLabel"})),s.default.createElement(u.FlexItem,{className:"vis-cf-favoriteColorOptions"},s.default.createElement(u.FlexLayout,{direction:"row",className:"vis-cf-ColorOptionsContainer"},n.map(this._displayColors.bind(this,"favoriteColor")))))),s.default.createElement(u.FlexItem,{className:"vis-cf-customColorContainer",tabIndex:0},s.default.createElement(u.Label,{className:"vis-cf-customColor",label:d.default.get("conditionalFormattingCustomColor"),onClick:this._showCustomColor.bind(this,!0)})))},e.prototype._displayColors=function(t,e,o){var i=this,n={};return e&&(n=f.default.getColorStyle(e.color,e.fill||e,e.pattern))&&!e.pattern&&(n.background=n.backgroundColor),s.default.createElement(u.FlexItem,{className:"vis-cf-colorPicker-"+t+"__colorOptions",style:e&&n,key:o,tabIndex:0,"datat-index":o,"data-value":e&&(e.pattern||e.color||e),onClick:this._handleSelect.bind(this,e,t),onKeyDown:function(o){return i._handleKey(o,e,t)}})},e.prototype._handleClose=function(){this.state.customColorDialogOpen||this.setState({colorFlyoutOpen:!1})},e.prototype._showCustomColor=function(t){this.setState({customColorDialogOpen:t})},e.prototype._renderCustomColor=function(){var t=this.props.uiContext;return s.default.createElement(p.CustomColorDialog,{key:"colorDialog",paletteService:t.getPaletteService(),isDialogOpen:!0,paletteType:"ConditionalPalette",onChange:this._handleSelect.bind(this),onCloseDialog:this._showCustomColor.bind(this,!1)})},e.prototype._handleSelect=function(t,e){this.props.onColorSelected(t,e),this.setState({colorFlyoutOpen:!1})},e.prototype._handleKey=function(t,e,o){t.keyCode!==c.KeyCodes.ENTER&&t.keyCode!==c.KeyCodes.SPACE||(this._handleSelect(e,o),t.preventDefault())},e.defaultProps={colorFlyoutOpen:!1,customColorDialogOpen:!1,hasDefaultFillColor:!1},e}(s.Component);e.default=l.observer(g)},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,n=function(t){return t&&t.__esModule?t:{default:t}}(o(1)),r=[{shapeId:"upArrow",iconId:"conditionalFormatting-arrow-up_16",label:n.default.get("conditionalFormattingIconArrowUp")},{shapeId:"rightArrow",iconId:"conditionalFormatting-arrow-right_16",label:n.default.get("conditionalFormattingIconArrowRight")},{shapeId:"downArrow",iconId:"conditionalFormatting-arrow-down_16",label:n.default.get("conditionalFormattingIconArrowDown")},{shapeId:"upCaret",iconId:"conditionalFormatting-caret-up_16",label:n.default.get("conditionalFormattingIconCaretUp")},{shapeId:"dash",iconId:"conditionalFormatting-dash_16",label:n.default.get("conditionalFormattingIconDash")},{shapeId:"downCaret",iconId:"conditionalFormatting-caret-down_16",label:n.default.get("conditionalFormattingIconCaretDown")},{shapeId:"checkmark",iconId:"conditionalFormatting-checkmark_16",label:n.default.get("conditionalFormattingIconCheckmark")},{shapeId:"warning",iconId:"conditionalFormatting-warning_16",label:n.default.get("conditionalFormattingIconWarning")},{shapeId:"xSymbol",iconId:"conditionalFormatting-x-symbol_16",label:n.default.get("conditionalFormattingIconXSymbol")},{shapeId:"circle",iconId:"conditionalFormatting-circle_16",label:n.default.get("conditionalFormattingIconCircle")},{shapeId:"triangle",iconId:"conditionalFormatting-triangle_16",label:n.default.get("conditionalFormattingIconTriangle")},{shapeId:"diamond",iconId:"conditionalFormatting-diamond_16",label:n.default.get("conditionalFormattingIconDiamond")},{shapeId:"satisfied",iconId:"conditionalFormatting-face-satisfied_16",label:n.default.get("conditionalFormattingIconFaceSatisfied")},{shapeId:"neutral",iconId:"conditionalFormatting-face-neutral_16",label:n.default.get("conditionalFormattingIconFaceNeutral")},{shapeId:"dissatisfied",iconId:"conditionalFormatting-face-dissatisfied_16",label:n.default.get("conditionalFormattingIconFaceDissatisfied")},{shapeId:"none",iconId:"conditionalFormatting-noshape_16",label:n.default.get("conditionalFormattingIconNone")}],a=new Map,s=function(){function t(){}return t.getIconDefinitions=function(e){return t._loadIconDefinitions(e),i},t.getShapeDefinition=function(e,o){return t._loadIconDefinitions(e),a.get(o)||null},t._loadIconDefinitions=function(t){i||(i=[],r.forEach((function(t){var e={iconId:t.iconId,label:t.label,shapeId:t.shapeId};i.push(e),a.set(t.shapeId,e)})))},t}();e.default=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t.SET_SCALE="setScale",t.SET_PALETTE_ID="setPaletteId",t.SET_BACKGROUND_OPACITY="setBackgroundOpacity",t.ADD_RULE="addRule",t.DELETE_RULE="deleteRule",t.MOVE_RULE="moveRule",t.SET_RANGE_OPERATOR="setRangeOperator",t.SET_START_CONDITION_TYPE="setStartConditionType",t.SET_START_CONDITION_VALUE="setStartConditionValue",t.SET_END_CONDITION_TYPE="setEndConditionType",t.SET_END_CONDITION_VALUE="setEndConditionValue",t.SET_RULE_STYLE_TEXT_COLOR="setRuleStyleTextColor",t.SET_RULE_STYLE_FILL_COLOR="setRuleStyleFillColor",t.SET_RULE_STYLE_SHAPE="setRuleStyleShape",t.SET_SUMMARY_FILL_COLOR="setSummaryFillColor",t.SET_COLOR_BY="setColorBy",t.SET_HAS_MIN_MAX="setHasMinMax"}(e.ACTIONS||(e.ACTIONS={}))},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(7),n=[{value:i.CONDITION_TYPES.GTE,paired:["LT","LTE"]},{value:i.CONDITION_TYPES.LTE,paired:["GT","GTE"]},{value:i.CONDITION_TYPES.GT,paired:["LT","LTE"]},{value:i.CONDITION_TYPES.LT,paired:["GT","GTE"]}],r={value:void 0,paired:["LT","LTE","GT","GTE","ET"]},a={value:void 0,paired:["LT","LTE","GT","GTE","ET","IT","IB"]},s=function(){function t(){}return t.getRuleOptionsBaseOnVisType=function(t,e){var o=e===i.RULE_SCALES.NUMERIC;return function(){for(var t=0,e=0,o=arguments.length;e<o;e++)t+=arguments[e].length;var i=Array(t),n=0;for(e=0;e<o;e++)for(var r=arguments[e],a=0,s=r.length;a<s;a++,n++)i[n]=r[a];return i}(n,[t||o?r:a])},t.getEndConditionTypeBaseOnStartCondtionType=function(t){var e;return[i.RULE_OPERATORS.lessThan,i.RULE_OPERATORS.lessThanOrEqualTo].includes(t)?e=i.RULE_OPERATORS.greaterThanOrEqualTo:[i.RULE_OPERATORS.greaterThan,i.RULE_OPERATORS.greaterThanOrEqualTo].includes(t)&&(e=i.RULE_OPERATORS.lessThanOrEqualTo),e},t}();e.default=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(){this._blackListedAttr=["_blackListedAttr"]}return t.prototype.getContentModelJsonSpec=function(){return this.toJSON(!0)},t.prototype.getMSTJsonSpec=function(){return this.toJSON(!1)},t.prototype.asString=function(){return JSON.stringify(this)},t.prototype.toJSON=function(e){var o=this,i={};return Object.keys(this).forEach((function(n){o._blackListedAttr.includes(n)||(o[n]instanceof Array?(i[n]=[],o[n].forEach((function(o){var r=o instanceof t?o.toJSON(e):o;r&&i[n].push(r)}))):o[n]instanceof t?i[n]=o[n].toJSON(e):void 0!==o[n]&&(i[n]=o[n]))})),i},t}();e.default=i},function(t,e,o){"use strict";var i,n=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),r=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var a=o(12),s=r(o(73)),l=o(28),u=r(o(44)),c=o(7),d=o(13),p=function(t){function e(o,i){var n,r;void 0===o&&(o={});var a=t.call(this)||this;(n=a._blackListedAttr).push.apply(n,e._ignoreAttr),d.ConditionalFormatSpecHelper.isKpiVis(i)&&a._blackListedAttr.push("backgroundOpacity"),a._visType=i,a.dataItemId=o.dataItemId,a.paletteId=o.paletteId,a.colorBy=o.colorBy,a.scale=o.scale,a.rules=new Array,(r=a.rules).push.apply(r,o.rules);var s=o.backgroundOpacity;return"number"==typeof s?a.backgroundOpacity=s:"string"==typeof s&&(a.backgroundOpacity=parseInt(s,10)),a.heatId=o.heatId,a._active=!0,a}return n(e,t),e.prototype.getDataItemId=function(){return this.dataItemId},e.prototype.setDataItemId=function(t){this.dataItemId=t},e.prototype.getPaletteId=function(){return this.paletteId},e.prototype.setPaletteId=function(t){this.paletteId=t},e.prototype.getColorBy=function(){return this.colorBy},e.prototype.setColorBy=function(t){this.colorBy=t},e.prototype.getBackgroundOpacity=function(){return this.backgroundOpacity},e.prototype.setBackgroundOpacity=function(t){this.backgroundOpacity=t},e.prototype.getScale=function(){return this.scale},e.prototype.setScale=function(t){this.scale=t},e.prototype.getRules=function(){return this.rules},e.prototype.setRules=function(t){var e=this;void 0===t&&(t=[]),this.rules.length=0,t.forEach((function(t){var o=t instanceof l.Rule?t:d.ConditionalFormatSpecHelper.createNewRule(t,e._visType);e._setDefaultRuleConditionValues(o),e.rules.push(o)}))},e.prototype.getRule=function(t){return t<this.rules.length?this.rules[t]:null},e.prototype.addRule=function(t,e){t=this.isValidRuleIndex(t)?t:this.rules.length;var o=e instanceof l.Rule?e:null;if(!o){var i=a.isObject(e)?e:e===c.RULE_TYPES.THRESHOLD?d.ConditionalFormatSpecHelper.getDefaultRuleThreshold(this._visType):d.ConditionalFormatSpecHelper.getDefaultRuleRange(this._visType);o=d.ConditionalFormatSpecHelper.createNewRule(i,this._visType)}return this._setDefaultRuleConditionValues(o),this.rules.splice(t,0,o),o},e.prototype.deleteRule=function(t){return!!this.isValidRuleIndex(t)&&(this.rules.splice(t,1),!0)},e.prototype.moveRule=function(t,e){return!(!this.isValidRuleIndex(t)||!this.isValidRuleIndex(e)||(this.rules.splice(e,0,this.rules.splice(t,1)[0]),0))},e.prototype.getNumberOfRules=function(){return this.rules.length},e.prototype.getRangeOperator=function(t){var e=this.getRule(t);return e?e.getOperator():null},e.prototype.setRangeOperator=function(t,e){var o,i=this.getRule(t);return i&&(o=i.setRangeOperator(e))&&this._setDefaultRuleConditionValues(i),o},e.prototype.isValidRuleIndex=function(t){return t>=0&&t<=this.rules.length-1},e.prototype.setMinMaxValues=function(t,e){this._minValue=t,this._maxValue=e,this._resetDefaultRuleConditionValues()},e.prototype.resetMinMaxValues=function(){this._minValue=void 0,this._maxValue=void 0,this._resetDefaultRuleConditionValues()},e.prototype.hasMinMaxValues=function(){return void 0!==this._minValue&&void 0!==this._maxValue},e.prototype.getMaxValue=function(){return this._maxValue},e.prototype.getMinValue=function(){return this._minValue},e.prototype.setActive=function(t){this._active=t},e.prototype.isActive=function(){return this._active},e.prototype.setHeatId=function(t){this.heatId=t},e.prototype.getHeatId=function(){return this.heatId},e.prototype.updateVisType=function(t){this._visType!==t&&(this._visType=t,d.ConditionalFormatSpecHelper.updateBlackListedAttrBaseOnVisType(t,"backgroundOpacity",this._blackListedAttr),this.rules.forEach((function(e){e.updateVisType(t)})))},e.prototype.toJSON=function(e){var o=t.prototype.toJSON.call(this,e);return e?delete o.colorBy:delete o.heatId,o},e.prototype._resetDefaultRuleConditionValues=function(){var t=this;this.rules.forEach((function(e){t._setDefaultRuleConditionValues(e)}))},e.prototype._setDefaultRuleConditionValues=function(t){t.getStartCondition()&&t.getStartCondition().setDefaultValue(this.scale,this._minValue,this._maxValue),t.getEndCondition()&&t.getEndCondition().setDefaultValue(this.scale,this._minValue,this._maxValue)},e._ignoreAttr=["_visType","_minValue","_maxValue"],e}(s.default);e.ConditionalFormatSpec=p;var f=function(t){function e(e,o){var i,n=t.call(this)||this;if((i=n._blackListedAttr).push.apply(i,["_defaultFormatAsString","_visType"]),n._visType=o,n.conditionalFormats=new Array,d.ConditionalFormatSpecHelper.isKpiVis(o)&&n._blackListedAttr.push("summaryFillColor"),n._createKpiPlaceHolderSpec(),e){var r=e.conditionalFormats;n.summaryFillColor=e.summaryFillColor,r.forEach((function(t){var e=d.ConditionalFormatSpecHelper.createConditionalFormatSpec(t,n._visType);n.conditionalFormats.push(e);var o=d.ConditionalFormatSpecHelper.getDefaultFormat(t.dataItemId,n._visType);n._setDefaultFormatString(o)}))}return n}return n(e,t),e.prototype.hasConditionalFormat=function(t){return!(!t||!this.conditionalFormats.find((function(e){return e.getDataItemId()===t})))},e.prototype.hasDefaultOnlyConditionalFormat=function(){return 1===this.conditionalFormats.length&&this.conditionalFormats[0].getDataItemId()===d.DEFAULT_FORMAT},e.prototype.getConditionalFormats=function(){return this.conditionalFormats.filter((function(t){return t.getDataItemId()!==u.default.getPlaceHolderMeaureColumnId()}))},e.prototype.getConditionalFormatById=function(t,e){void 0===e&&(e=!1);var o=this.conditionalFormats.find((function(e){return e.getDataItemId()===t}));if(!o&&e&&(o=d.ConditionalFormatSpecHelper.getDefaultFormat(t,this._visType),this.conditionalFormats.push(o)),!o)throw new Error("Conditional Format not found for "+t+" during getConditionalFormatById call");return this._setDefaultFormatString(o),o},e.prototype.removeConditionalFormatById=function(t){if(!t)return null;var e=this.conditionalFormats.findIndex((function(e){return e.getDataItemId()===t}));-1!==e&&this.conditionalFormats.splice(e,1)},e.prototype.setSummaryFillColor=function(t){this.summaryFillColor=t&&t.toUpperCase()},e.prototype.getSummaryFillColor=function(){return this.summaryFillColor},e.prototype.updateVisType=function(t){this._visType!==t&&(this._visType=t,delete this._defaultFormatAsString,d.ConditionalFormatSpecHelper.updateBlackListedAttrBaseOnVisType(t,"summaryFillColor",this._blackListedAttr),this.conditionalFormats.forEach((function(e){e.updateVisType(t)})))},e.prototype.getContentModelJsonSpec=function(){var e=t.prototype.getContentModelJsonSpec.call(this);return this._purgeDefaultFormats(e.conditionalFormats),e.conditionalFormats.length>0||!d.ConditionalFormatSpecHelper.isKpiVis(this._visType)&&e.summaryFillColor?e:void 0},e.prototype.toJSON=function(e){var o=t.prototype.toJSON.call(this,e),i=o.conditionalFormats;return i&&(o.conditionalFormats=i.filter((function(t){return t.dataItemId!==u.default.getPlaceHolderMeaureColumnId()}))),o},e.prototype._setDefaultFormatString=function(t){if(t&&!this._defaultFormatAsString){var e=t.getContentModelJsonSpec();delete e.dataItemId,this._defaultFormatAsString=JSON.stringify(e)}},e.prototype._purgeDefaultFormats=function(t){var e=this;void 0===t&&(t=[]);var o=[];t.forEach((function(t){var i=JSON.parse(JSON.stringify(t));i._active&&(delete i.dataItemId,i.heatId&&"defaultHeatId"===i.heatId&&delete i.heatId,JSON.stringify(i)!==e._defaultFormatAsString&&(delete i._active,i.dataItemId=t.dataItemId,o.push(i)))})),t.length=0,t.push.apply(t,o)},e.prototype._createKpiPlaceHolderSpec=function(){var t=this.conditionalFormats.find((function(t){return t.getDataItemId()===u.default.getPlaceHolderMeaureColumnId()}));t||(t=d.ConditionalFormatSpecHelper.getDefaultFormat(u.default.getPlaceHolderMeaureColumnId(),this._visType),this.conditionalFormats.push(t))},e}(s.default);e.ConditionalFormattingSpec=f},function(t,e,o){"use strict";var i=function(){for(var t=0,e=0,o=arguments.length;e<o;e++)t+=arguments[e].length;var i=Array(t),n=0;for(e=0;e<o;e++)for(var r=arguments[e],a=0,s=r.length;a<s;a++,n++)i[n]=r[a];return i};Object.defineProperty(e,"__esModule",{value:!0});var n=o(9),r=function(t){return t&&t.__esModule?t:{default:t}}(o(10)),a=o(76),s=n.types.model("ColorPickerModel",{paletteId:n.types.optional(n.types.string,r.default.NoIdOrHexValue),paletteColors:n.types.optional(n.types.array(a.FillModel),[]),favoriteColors:n.types.optional(n.types.array(n.types.string),[]),ancestorLevel:n.types.number}).actions((function(t){return{setPaletteColors:function(e){var o;void 0===e&&(e=[]),t.paletteColors.length=0,(o=t.paletteColors).push.apply(o,e)},setFavoriteColors:function(e){var o;void 0===e&&(e=[]),t.favoriteColors.length=0,(o=t.favoriteColors).push.apply(o,e)}}})).actions((function(t){return{loadColors:function(){return n.getParent(t,t.ancestorLevel).loadColors(t.paletteId).then((function(e){var o=e[0],i=e[1];return t.setPaletteColors(o),t.setFavoriteColors(i),Promise.resolve(null)}))}}})).actions((function(t){return{setPaletteId:function(e){e!==t.paletteId&&(t.paletteId=e,t.loadColors())}}})).views((function(t){return{getPaletteColors:function(e){return void 0===e&&(e=!1),e?i([r.default.NoIdOrHexValue],t.paletteColors):i(t.paletteColors)},getFavoriteColors:function(){return t.favoriteColors},getSystemPaletteColors:function(){return n.getParent(t,t.ancestorLevel).getDashboardColorSet().filter((function(t){return"transparent"!==t.hexValue})).map((function(t){return t.hexValue}))}}}));e.default=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(9),n=i.types.model({fill:i.types.optional(i.types.string,""),pattern:i.types.optional(i.types.string,""),color:i.types.optional(i.types.string,"")}),r=i.types.union(n,i.types.string);e.FillModel=r},function(t,e,o){"use strict";function i(t){var e,o=t.Symbol;return"function"==typeof o?o.observable?e=o.observable:(e=o("observable"),o.observable=e):e="@@observable",e}o.d(e,"a",(function(){return i}))},function(t,e,o){t.exports=o(79)},function(t,e,o){"use strict";e.__esModule=!0,e.default=void 0;var i=a(o(80));e.ConditionalColor=i.default;var n=a(o(233));e.ConditionalColorPanel=n.default;var r=a(o(234));function a(t){return t&&t.__esModule?t:{default:t}}e.CurrentConditionalPalette=r.default;var s=a(o(237)).default;e.default=s},function(t,e,o){"use strict";var i=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var n=i(o(0)),r=i(o(14)),a=i(o(81)),s=function(){function t(t){void 0===t&&(t={}),this.el=t.el,this.uiContext=t.uiContext,this.conditionalFormatsModel=t.uiContext.getConditionalFormatsModel(),this.uiContext.registerUIConditionalColor(this),this.containerEl=null}return t.prototype.render=function(){var t=this;return this.uiContext.paletteServiceIsReady().then((function(){r.default.render(n.default.createElement(a.default,{uiContext:t.uiContext,conditionalFormatsModel:t.conditionalFormatsModel}),t._createContainer())}))},t.prototype.remove=function(){this.containerEl&&($(this.containerEl).hide(),r.default.unmountComponentAtNode(this.containerEl),this.containerEl=null)},t.prototype._createContainer=function(){return this.containerEl=document.createElement("div"),this.containerEl.className="propertyRow property_conditionalColor",this.el.appendChild(this.containerEl),this.containerEl},t}();e.default=s},function(t,e,o){"use strict";var i,n=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),r=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}(o(0)),s=o(3),l=o(2),u=r(o(1));o(98);var c=r(o(51)),d=r(o(230)),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.render=function(){if(this.props.uiContext.isKpiVis())return this._getConditionalColorPanelForKPI();var t=this.props,e=t.uiContext,o=t.conditionalFormatsModel,i=this._getMstForUIPanels().getMeasures().length>0;return a.default.createElement(l.FlexLayout,{className:"vis-color-properties",direction:"column"},a.default.createElement(d.default,{uiContext:e,conditionalFormatsModel:o}),a.default.createElement(l.VSpacer,{size:3}),i&&a.default.createElement(l.Separator,{hMargin:0,className:"vis-cf-summary-conditional-separator",orientation:"horizontal"}),i&&a.default.createElement(l.FlexItem,null,this._getMeasureCondFormatLinks()))},e.prototype._getConditionalColorPanelForKPI=function(){var t=this.props.uiContext,e=t.getConditionalFormattingState().getConditionalFormattingApi().getConditionalFormatMeasures(),o=this._getMstForUIPanels();return o.setMeasureDataItem(e[0]),a.default.createElement(c.default,{uiContext:t,mstForUIPanels:o})},e.prototype._handleOnClick=function(t){this.props.uiContext.displayChildPanelForMeasure(t)},e.prototype._getMeasureCondFormatLinks=function(){var t=this,e=[],o=this._getMstForUIPanels().getMeasures();return o.length&&(e=[a.default.createElement(l.VSpacer,{size:1,key:"vspacer-before-conditional-color"}),a.default.createElement(l.Label,{className:"vis-conditional-color",label:u.default.get("conditionalColor"),key:"conditionalColor"}),a.default.createElement(l.VSpacer,{size:2,key:"vspacer-after-conditional-color"}),a.default.createElement(l.LabelSection,{className:"vis-cf-availableData",label:u.default.get("conditionalFormatttingAvailableData"),rtl:!1,key:"availableData"}),a.default.createElement(l.VSpacer,{size:1,key:"vspacer-available-data"})]).push.apply(e,o.map((function(e,o){return a.default.createElement(l.LinkSection,{className:"vis-cf-measureIndividualCondFormatLink","data-id":e.getDataItemId(),label:e.getLabel(),rtl:!1,disabled:!1,onClick:t._handleOnClick.bind(t,e),key:o})}))),e},e.prototype._getMstForUIPanels=function(){return this.props.uiContext.getConditionalFormattingState().getMstForUIPanels()},e}(a.Component);e.default=s.observer(p)},function(t,e){var o={__root:{colorBy:"Color By",conditionalFormattingIconNone:"No shape",conditionalFormattingIconArrowUp:"Arrow up",conditionalFormattingIconArrowRight:"Arrow right",conditionalFormattingIconArrowDown:"Arrow down",conditionalFormattingIconCaretUp:"Caret up",conditionalFormattingIconDash:"Dash",conditionalFormattingIconCaretDown:"Caret down",conditionalFormattingIconCheckmark:"Check mark",conditionalFormattingIconWarning:"Warning",conditionalFormattingIconXSymbol:"X symbol",conditionalFormattingIconCircle:"Circle",conditionalFormattingIconTriangle:"Triangle",conditionalFormattingIconDiamond:"Diamond",conditionalFormattingIconFaceSatisfied:"Face satisfied",conditionalFormattingIconFaceNeutral:"Face neutral",conditionalFormattingIconFaceDissatisfied:"Face dissatisfied",sectionName_colorPalette:"Color",sectionName_range:"Set range",conditionalColor:"Conditional color",conditionalFormatttingAvailableData:"Available data",conditionalFormattingSelectRule:"Select a rule",conditionalFormattingRules:"Rules",conditionalFormattingAddRule:"Add rule",conditionalFormattingIfValueIs:"If value is",conditionalFormattingAND:"AND",conditionalFormattingRuleStyle:"Rule style",conditionalFormattingTextColor:"Text color",conditionalFormattingFillColor:"Fill color",conditionalFormattingNoColor:"No color",conditionalFormattingShape:"Indicator",conditionalFormattingDeleteRule:"Delete rule",conditionalFormattingMove:"Move",conditionalFormattingGTE:"Greater than or equal to",conditionalFormattingLTE:"Less than or equal to",conditionalFormattingGT:"Greater than",conditionalFormattingLT:"Less than",conditionalFormattingET:"Equal to",conditionalFormattingIT:"In top",conditionalFormattingIB:"In bottom",conditionalFormattingMI:"Missing",conditionalFromattingCurrentPalette:"Current conditional palette",conditionalFromattingCreateNewPalette:"Create a custom dashboard palette",conditionalFromattingChangePalette:"Change palette",conditionalFormattingPaletteColors:"Palette colors",conditionalFormattingFavoriteColors:"Favorites",conditionalFormattingCustomColor:"Custom color",conditionalFormattingBackgroundOpacity:"Background opacity (%)",conditionalFormattingPercentage:"Percentage",conditionalFormattingNumeric:"Numeric",conditionalFormattingScale:"Scale",conditionalFormattingSummaryFillColor:"Summary fill color",conditionalFormattingRuleLimitNotification:"Limit of %{ruleNumber} rules",conditionalFormattingRuleConditionLabel:"%{type} %{value}",conditionalFormattingAndRuleConditionLabel:"%{startType} %{startValue} and %{endType} %{endValue}",conditionalFormattingInvalidRuleConditionValue:"Invalid value",conditionalFormattingInvalidRule:"Reopen to complete rule definition",conditionalFormattingInvalidRuleConditionValueForTopAndBottom:"Limited to 0 - 100",conditionalFormattingNoDataForColorBy:"No data available (min/max values) for %{colorById}"},__cs:{colorBy:"Barva podle",conditionalFormattingIconNone:"Bez tvaru",conditionalFormattingIconArrowUp:"Šipka nahoru",conditionalFormattingIconArrowRight:"Šipka vpravo",conditionalFormattingIconArrowDown:"Šipka dolů",conditionalFormattingIconCaretUp:"Stříška nahoru",conditionalFormattingIconDash:"Přerušovaná",conditionalFormattingIconCaretDown:"Stříška dolů",conditionalFormattingIconCheckmark:"Zaškrtnutí",conditionalFormattingIconWarning:"Varování",conditionalFormattingIconXSymbol:"Symbol X",conditionalFormattingIconCircle:"Kruh",conditionalFormattingIconTriangle:"Trojúhelník",conditionalFormattingIconDiamond:"Kosočtverec",conditionalFormattingIconFaceSatisfied:"Spokojený obličej",conditionalFormattingIconFaceNeutral:"Neutrální obličej",conditionalFormattingIconFaceDissatisfied:"Nespokojený obličej",sectionName_colorPalette:"Barva",sectionName_range:"Nastavit rozsah",conditionalColor:"Podmíněná barva",conditionalFormatttingAvailableData:"Dostupná data",conditionalFormattingSelectRule:"Vybrat pravidlo",conditionalFormattingRules:"Pravidla",conditionalFormattingAddRule:"Přidat pravidlo",conditionalFormattingIfValueIs:"Je-li hodnota",conditionalFormattingAND:"A",conditionalFormattingRuleStyle:"Styl pravidla",conditionalFormattingTextColor:"Barva textu",conditionalFormattingFillColor:"Barva výplně",conditionalFormattingNoColor:"Bez barvy",conditionalFormattingShape:"Indikátor",conditionalFormattingDeleteRule:"Odstranit pravidlo",conditionalFormattingMove:"Přesunout",conditionalFormattingGTE:"Větší nebo rovno",conditionalFormattingLTE:"Menší nebo rovno",conditionalFormattingGT:"Větší než",conditionalFormattingLT:"Menší než",conditionalFormattingET:"Rovno",conditionalFormattingIT:"V horních",conditionalFormattingIB:"Ve spodních",conditionalFormattingMI:"Chybějící",conditionalFromattingCurrentPalette:"Aktuální podmíněná paleta",conditionalFromattingCreateNewPalette:"Vytvořit vlastní paletu panelu dashboard",conditionalFromattingChangePalette:"Změnit paletu",conditionalFormattingPaletteColors:"Barvy palety",conditionalFormattingFavoriteColors:"Oblíbené položky",conditionalFormattingCustomColor:"Vlastní barva",conditionalFormattingBackgroundOpacity:"Opacita pozadí (%)",conditionalFormattingPercentage:"Procentní",conditionalFormattingNumeric:"Číselné",conditionalFormattingScale:"Měřítko",conditionalFormattingSummaryFillColor:"Barva výplně souhrnu",conditionalFormattingRuleLimitNotification:"Limit %{ruleNumber} pravidel",conditionalFormattingRuleConditionLabel:"%{type} %{value}",conditionalFormattingAndRuleConditionLabel:"%{startType} %{startValue} a %{endType} %{endValue}",conditionalFormattingInvalidRuleConditionValue:"Neplatná hodnota",conditionalFormattingInvalidRule:"Znovu otevřít a dokončit definici pravidla",conditionalFormattingInvalidRuleConditionValueForTopAndBottom:"Omezeno na 0 - 100"},__da:{colorBy:"Farve efter",conditionalFormattingIconNone:"Ingen figur",conditionalFormattingIconArrowUp:"Pil op",conditionalFormattingIconArrowRight:"Pil mod højre",conditionalFormattingIconArrowDown:"Pil ned",conditionalFormattingIconCaretUp:"Cirkumfleks op",conditionalFormattingIconDash:"Stiplet",conditionalFormattingIconCaretDown:"Cirkumfleks ned",conditionalFormattingIconCheckmark:"Hak",conditionalFormattingIconWarning:"Advarsel",conditionalFormattingIconXSymbol:"X-symbol",conditionalFormattingIconCircle:"Cirkel",conditionalFormattingIconTriangle:"Trekant",conditionalFormattingIconDiamond:"Rombe",conditionalFormattingIconFaceSatisfied:"Ansigt, tilfreds",conditionalFormattingIconFaceNeutral:"Ansigt, neutral",conditionalFormattingIconFaceDissatisfied:"Ansigt, utilfreds",sectionName_colorPalette:"Farve",sectionName_range:"Angiv interval",conditionalColor:"Betinget farve",conditionalFormatttingAvailableData:"Tilgængelige data",conditionalFormattingSelectRule:"Vælg en regel",conditionalFormattingRules:"Regler",conditionalFormattingAddRule:"Tilføj regel",conditionalFormattingIfValueIs:"Hvis værdi er",conditionalFormattingAND:"AND",conditionalFormattingRuleStyle:"Regeltypografi",conditionalFormattingTextColor:"Tekstfarve",conditionalFormattingFillColor:"Udfyldningsfarve",conditionalFormattingNoColor:"Ingen farve",conditionalFormattingShape:"Indikator",conditionalFormattingDeleteRule:"Slet regel",conditionalFormattingMove:"Flyt",conditionalFormattingGTE:"Større end eller lig med",conditionalFormattingLTE:"Mindre end eller lig med",conditionalFormattingGT:"Større end",conditionalFormattingLT:"Mindre end",conditionalFormattingET:"Lig med",conditionalFormattingIT:"Øverst",conditionalFormattingIB:"Nederst",conditionalFormattingMI:"Mangler",conditionalFromattingCurrentPalette:"Aktuel betinget palet",conditionalFromattingCreateNewPalette:"Opret en tilpasset dashboardpalet",conditionalFromattingChangePalette:"Skift palet",conditionalFormattingPaletteColors:"Paletfarver",conditionalFormattingFavoriteColors:"Favoritter",conditionalFormattingCustomColor:"Tilpasset farve",conditionalFormattingBackgroundOpacity:"Baggrundsuigennemsigtighed (%)",conditionalFormattingPercentage:"Procent",conditionalFormattingNumeric:"Numerisk",conditionalFormattingScale:"Skala",conditionalFormattingSummaryFillColor:"Udfyldningsfarve til opsummering",conditionalFormattingRuleLimitNotification:"Grænse på %{ruleNumber} regler",conditionalFormattingRuleConditionLabel:"%{type} %{value}",conditionalFormattingAndRuleConditionLabel:"%{startType} %{startValue} og %{endType} %{endValue}",conditionalFormattingInvalidRuleConditionValue:"Ugyldig værdi",conditionalFormattingInvalidRule:"Åbn igen for at færdiggøre regeldefinitionen",conditionalFormattingInvalidRuleConditionValueForTopAndBottom:"Begrænset til 0 - 100"},__de:{colorBy:"Farbe nach",conditionalFormattingIconNone:"Keine Form",conditionalFormattingIconArrowUp:"Aufwärtspfeil",conditionalFormattingIconArrowRight:"Rechtspfeil",conditionalFormattingIconArrowDown:"Abwärtspfeil",conditionalFormattingIconCaretUp:"Winkelzeichen nach oben",conditionalFormattingIconDash:"Gedankenstrich",conditionalFormattingIconCaretDown:"Winkelzeichen nach unten",conditionalFormattingIconCheckmark:"Häkchen",conditionalFormattingIconWarning:"Warnung",conditionalFormattingIconXSymbol:"X-Symbol",conditionalFormattingIconCircle:"Kreis",conditionalFormattingIconTriangle:"Dreieck",conditionalFormattingIconDiamond:"Raute",conditionalFormattingIconFaceSatisfied:"Zufriedenes Gesicht",conditionalFormattingIconFaceNeutral:"Neutrales Gesicht",conditionalFormattingIconFaceDissatisfied:"Unzufriedenes Gesicht",sectionName_colorPalette:"Farbe",sectionName_range:"Bereich festlegen",conditionalColor:"Farbe für bedingte Werte",conditionalFormatttingAvailableData:"Verfügbare Daten",conditionalFormattingSelectRule:"Regel auswählen",conditionalFormattingRules:"Regeln",conditionalFormattingAddRule:"Regel hinzufügen",conditionalFormattingIfValueIs:"Bei einem Wert von",conditionalFormattingAND:"UND",conditionalFormattingRuleStyle:"Regelstil",conditionalFormattingTextColor:"Textfarbe",conditionalFormattingFillColor:"Füllfarbe",conditionalFormattingNoColor:"Keine Farbe",conditionalFormattingShape:"Indikator",conditionalFormattingDeleteRule:"Regel löschen",conditionalFormattingMove:"Verschieben",conditionalFormattingGTE:"Größer-gleich",conditionalFormattingLTE:"Kleiner-gleich",conditionalFormattingGT:"Größer als",conditionalFormattingLT:"Kleiner als",conditionalFormattingET:"Gleich",conditionalFormattingIT:"In oberen Werten",conditionalFormattingIB:"In unteren Werten",conditionalFormattingMI:"Nicht vorhanden",conditionalFromattingCurrentPalette:"Aktuelle bedingte Palette",conditionalFromattingCreateNewPalette:"Benutzerdefinierte Dashboardpalette erstellen",conditionalFromattingChangePalette:"Palette ändern",conditionalFormattingPaletteColors:"Palettenfarben",conditionalFormattingFavoriteColors:"Favoriten",conditionalFormattingCustomColor:"Benutzerdefinierte Farbe",conditionalFormattingBackgroundOpacity:"Deckkraft für Hintergrund (%)",conditionalFormattingPercentage:"Prozentsatz",conditionalFormattingNumeric:"Numerisch",conditionalFormattingScale:"Skalierung",conditionalFormattingSummaryFillColor:"Füllfarbe für Zusammenfassung",conditionalFormattingRuleLimitNotification:"Grenzwert für Regeln des Typs %{ruleNumber}",conditionalFormattingRuleConditionLabel:"%{type} %{value}",conditionalFormattingAndRuleConditionLabel:"%{startType} %{startValue} und %{endType} %{endValue}",conditionalFormattingInvalidRuleConditionValue:"Ungültiger Wert",conditionalFormattingInvalidRule:"Zum Abschließen der Regeldefinition erneut öffnen",conditionalFormattingInvalidRuleConditionValueForTopAndBottom:"Begrenzt auf 0 - 100"},__es:{colorBy:"Color por",conditionalFormattingIconNone:"Sin forma",conditionalFormattingIconArrowUp:"Flecha arriba",conditionalFormattingIconArrowRight:"Flecha derecha",conditionalFormattingIconArrowDown:"Flecha abajo",conditionalFormattingIconCaretUp:"Signo de intercalación arriba",conditionalFormattingIconDash:"Guión",conditionalFormattingIconCaretDown:"Signo de intercalación abajo",conditionalFormattingIconCheckmark:"Marca de selección",conditionalFormattingIconWarning:"Aviso",conditionalFormattingIconXSymbol:"Símbolo X",conditionalFormattingIconCircle:"Círculo",conditionalFormattingIconTriangle:"Triángulo",conditionalFormattingIconDiamond:"Rombo",conditionalFormattingIconFaceSatisfied:"Cara de satisfacción",conditionalFormattingIconFaceNeutral:"Cara neutral",conditionalFormattingIconFaceDissatisfied:"Cara de no satisfecho",sectionName_colorPalette:"Color",sectionName_range:"Establecer rango",conditionalColor:"Color condicional",conditionalFormatttingAvailableData:"Datos disponibles",conditionalFormattingSelectRule:"Seleccionar una regla",conditionalFormattingRules:"Reglas",conditionalFormattingAddRule:"Añadir regla",conditionalFormattingIfValueIs:"Si el valor es",conditionalFormattingAND:"AND",conditionalFormattingRuleStyle:"Estilo de regla",conditionalFormattingTextColor:"Color del texto",conditionalFormattingFillColor:"Color de relleno",conditionalFormattingNoColor:"Sin color",conditionalFormattingShape:"Indicador",conditionalFormattingDeleteRule:"Suprimir regla",conditionalFormattingMove:"Mover",conditionalFormattingGTE:"Mayor o igual que",conditionalFormattingLTE:"Menor o igual que",conditionalFormattingGT:"Mayor que",conditionalFormattingLT:"Menor que",conditionalFormattingET:"Igual a",conditionalFormattingIT:"En la parte superior",conditionalFormattingIB:"En la parte inferior",conditionalFormattingMI:"Falta",conditionalFromattingCurrentPalette:"Paleta condicional actual",conditionalFromattingCreateNewPalette:"Crear una paleta de panel de control personalizada",conditionalFromattingChangePalette:"Cambiar paleta",conditionalFormattingPaletteColors:"Colores de la paleta",conditionalFormattingFavoriteColors:"Favoritos",conditionalFormattingCustomColor:"Color personalizado",conditionalFormattingBackgroundOpacity:"Opacidad de fondo (%)",conditionalFormattingPercentage:"Porcentaje",conditionalFormattingNumeric:"Numérico",conditionalFormattingScale:"Escala",conditionalFormattingSummaryFillColor:"Color de relleno de resumen",conditionalFormattingRuleLimitNotification:"Límite de %{ruleNumber} de reglas",conditionalFormattingRuleConditionLabel:"%{type} %{value}",conditionalFormattingAndRuleConditionLabel:"%{startType} %{startValue} y %{endType} %{endValue}",conditionalFormattingInvalidRuleConditionValue:"Valor no válido",conditionalFormattingInvalidRule:"Volver a abrir para completar la definición de regla ",conditionalFormattingInvalidRuleConditionValueForTopAndBottom:"Limitado a 0 - 100"},__fi:{colorBy:"Värin peruste",conditionalFormattingIconNone:"Ei muotoa",conditionalFormattingIconArrowUp:"Ylänuoli",conditionalFormattingIconArrowRight:"Nuoli oikealle",conditionalFormattingIconArrowDown:"Alanuoli",conditionalFormattingIconCaretUp:"Sirkumfleksi",conditionalFormattingIconDash:"Katkoviiva",conditionalFormattingIconCaretDown:"Hattu",conditionalFormattingIconCheckmark:"Valintamerkki",conditionalFormattingIconWarning:"Varoitus",conditionalFormattingIconXSymbol:"X-symboli",conditionalFormattingIconCircle:"Ympyrä",conditionalFormattingIconTriangle:"Kolmio",conditionalFormattingIconDiamond:"Vinoneliö",conditionalFormattingIconFaceSatisfied:"Tyytyväiset kasvot",conditionalFormattingIconFaceNeutral:"Neutraalit kasvot",conditionalFormattingIconFaceDissatisfied:"Tyytymättömät kasvot",sectionName_colorPalette:"Väri",sectionName_range:"Määritä alue",conditionalColor:"Ehdollinen väri",conditionalFormatttingAvailableData:"Käytettävissä olevat tiedot",conditionalFormattingSelectRule:"Valitse sääntö",conditionalFormattingRules:"Säännöt",conditionalFormattingAddRule:"Lisää sääntö",conditionalFormattingIfValueIs:"Jos arvo on",conditionalFormattingAND:"AND",conditionalFormattingRuleStyle:"Säännön tyyli",conditionalFormattingTextColor:"Tekstin väri",conditionalFormattingFillColor:"Täyttöväri",conditionalFormattingNoColor:"Ei väriä",conditionalFormattingShape:"Ilmaisin",conditionalFormattingDeleteRule:"Poista sääntö",conditionalFormattingMove:"Siirrä",conditionalFormattingGTE:"Suurempi tai yhtä suuri kuin",conditionalFormattingLTE:"Pienempi tai yhtä suuri kuin",conditionalFormattingGT:"Suurempi kuin",conditionalFormattingLT:"Pienempi kuin",conditionalFormattingET:"Yhtä suuri kuin",conditionalFormattingIT:"Ylimpänä",conditionalFormattingIB:"Alimpana",conditionalFormattingMI:"Puuttuu",conditionalFromattingCurrentPalette:"Nykyinen ehdollinen paletti",conditionalFromattingCreateNewPalette:"Luo mukautettu mittatietotaulun paletti",conditionalFromattingChangePalette:"Vaihda valikoimaa",conditionalFormattingPaletteColors:"Valikoiman värit",conditionalFormattingFavoriteColors:"Suosikit",conditionalFormattingCustomColor:"Mukautettu väri",conditionalFormattingBackgroundOpacity:"Taustan läpinäkyvyys (%)",conditionalFormattingPercentage:"Prosenttiosuus",conditionalFormattingNumeric:"Numeerinen",conditionalFormattingScale:"Mittakaava",conditionalFormattingSummaryFillColor:"Tiivistelmän täyttöväri",conditionalFormattingRuleLimitNotification:"Sääntöjä %{ruleNumber} koskeva rajoitus",conditionalFormattingRuleConditionLabel:"%{type} %{value}",conditionalFormattingAndRuleConditionLabel:"%{startType} %{startValue} and %{endType} %{endValue}",conditionalFormattingInvalidRuleConditionValue:"Virheellinen arvo",conditionalFormattingInvalidRule:"Avaa ja viimeistele sääntömääritys",conditionalFormattingInvalidRuleConditionValueForTopAndBottom:"Sallitus arvot: 0 - 100"},__fr:{colorBy:"Couleur par",conditionalFormattingIconNone:"Aucune forme",conditionalFormattingIconArrowUp:"Flèche vers le haut",conditionalFormattingIconArrowRight:"Flèche vers la droite",conditionalFormattingIconArrowDown:"Flèche vers le bas",conditionalFormattingIconCaretUp:"Caret vers le haut",conditionalFormattingIconDash:"Tiret",conditionalFormattingIconCaretDown:"Caret vers le bas",conditionalFormattingIconCheckmark:"Coche",conditionalFormattingIconWarning:"Avertissement",conditionalFormattingIconXSymbol:"Symbole X",conditionalFormattingIconCircle:"Cercle",conditionalFormattingIconTriangle:"Triangle",conditionalFormattingIconDiamond:"Losange",conditionalFormattingIconFaceSatisfied:"Conforme au type de police",conditionalFormattingIconFaceNeutral:"Indépendant du type de police",conditionalFormattingIconFaceDissatisfied:"Non conforme au type de police",sectionName_colorPalette:"Couleur",sectionName_range:"Définir la plage",conditionalColor:"Couleur conditionnelle",conditionalFormatttingAvailableData:"Données disponibles",conditionalFormattingSelectRule:"Sélectionner une règle",conditionalFormattingRules:"Règles",conditionalFormattingAddRule:"Ajouter une règle",conditionalFormattingIfValueIs:"Si la valeur est",conditionalFormattingAND:"AND",conditionalFormattingRuleStyle:"Style de la règle",conditionalFormattingTextColor:"Couleur du texte",conditionalFormattingFillColor:"Couleur de remplissage",conditionalFormattingNoColor:"Sans couleur",conditionalFormattingShape:"Indicateur",conditionalFormattingDeleteRule:"Supprimer la règle",conditionalFormattingMove:"Déplacer",conditionalFormattingGTE:"Supérieur ou égal à",conditionalFormattingLTE:"Inférieur ou égal à",conditionalFormattingGT:"Supérieur à",conditionalFormattingLT:"Inférieur à",conditionalFormattingET:"Egal à",conditionalFormattingIT:"En haut",conditionalFormattingIB:"En bas",conditionalFormattingMI:"Manquant",conditionalFromattingCurrentPalette:"Palette conditionnelle en cours",conditionalFromattingCreateNewPalette:"Création d'une palette de tableaux de bord personnalisée",conditionalFromattingChangePalette:"Modifier la palette",conditionalFormattingPaletteColors:"Couleurs de la palette",conditionalFormattingFavoriteColors:"Favoris",conditionalFormattingCustomColor:"Couleur personnalisée",conditionalFormattingBackgroundOpacity:"Opacité de l'arrière-plan (%)",conditionalFormattingPercentage:"Pourcentage",conditionalFormattingNumeric:"Numérique",conditionalFormattingScale:"Echelle",conditionalFormattingSummaryFillColor:"Couleur de remplissage récapitulative",conditionalFormattingRuleLimitNotification:"Limite de %{ruleNumber} règles",conditionalFormattingRuleConditionLabel:"%{type} %{value}",conditionalFormattingAndRuleConditionLabel:"%{startType} %{startValue} et %{endType} %{endValue}",conditionalFormattingInvalidRuleConditionValue:"Valeur non valide",conditionalFormattingInvalidRule:"Rouvrir pour compléter la définition de règles",conditionalFormattingInvalidRuleConditionValueForTopAndBottom:"Limité de 0 à 100"},__hr:{colorBy:"Boja po",conditionalFormattingIconNone:"Nema oblik",conditionalFormattingIconArrowUp:"Strelica gore",conditionalFormattingIconArrowRight:"Strelica desno",conditionalFormattingIconArrowDown:"Strelica dolje",conditionalFormattingIconCaretUp:"Karet gore",conditionalFormattingIconDash:"Crtica",conditionalFormattingIconCaretDown:"Karet dolje",conditionalFormattingIconCheckmark:"Kvačica",conditionalFormattingIconWarning:"Upozorenje",conditionalFormattingIconXSymbol:"Znak X",conditionalFormattingIconCircle:"Krug",conditionalFormattingIconTriangle:"Trokut",conditionalFormattingIconDiamond:"Romb",conditionalFormattingIconFaceSatisfied:"Zadovoljno lice",conditionalFormattingIconFaceNeutral:"Neutralno lice",conditionalFormattingIconFaceDissatisfied:"Nezadovoljno lice",sectionName_colorPalette:"Boja",sectionName_range:"Postavi raspon",conditionalColor:"Uvjetna boja",conditionalFormatttingAvailableData:"Dostupni podaci",conditionalFormattingSelectRule:"Izaberite pravilo",conditionalFormattingRules:"Pravila",conditionalFormattingAddRule:"Dodaj pravilo",conditionalFormattingIfValueIs:"Ako je vrijednost",conditionalFormattingAND:"AND",conditionalFormattingRuleStyle:"Stil pravila",conditionalFormattingTextColor:"Boja teksta",conditionalFormattingFillColor:"Boja za ispunu",conditionalFormattingNoColor:"Bez boje",conditionalFormattingShape:"Indikator",conditionalFormattingDeleteRule:"Izbriši pravilo",conditionalFormattingMove:"Premjesti",conditionalFormattingGTE:"Veće od ili jednako",conditionalFormattingLTE:"Manje od ili jednako",conditionalFormattingGT:"Veće od",conditionalFormattingLT:"Manje od",conditionalFormattingET:"Jednako",conditionalFormattingIT:"Na vrh",conditionalFormattingIB:"Na dno",conditionalFormattingMI:"Nedostaje",conditionalFromattingCurrentPalette:"Trenutna uvjetna paleta",conditionalFromattingCreateNewPalette:"Kreiraj prilagođenu paletu kontrolne ploče",conditionalFromattingChangePalette:"Promijeni paletu",conditionalFormattingPaletteColors:"Boje palete",conditionalFormattingFavoriteColors:"Favoriti",conditionalFormattingCustomColor:"Prilagođena boja",conditionalFormattingBackgroundOpacity:"Pozadinska neprozirnost (%)",conditionalFormattingPercentage:"Postotak",conditionalFormattingNumeric:"Numerički",conditionalFormattingScale:"Skala",conditionalFormattingSummaryFillColor:"Boja ispune sažetka",conditionalFormattingRuleLimitNotification:"Ograničenje od %{ruleNumber} pravila",conditionalFormattingRuleConditionLabel:"%{type} %{value}",conditionalFormattingAndRuleConditionLabel:"%{startType} %{startValue} i %{endType} %{endValue}",conditionalFormattingInvalidRuleConditionValue:"Pogrešna vrijednost",conditionalFormattingInvalidRule:"Ponovno otvori za dovršenje definicije pravila",conditionalFormattingInvalidRuleConditionValueForTopAndBottom:"Ograničeno na 0 - 100"},__hu:{colorBy:"Szín:",conditionalFormattingIconNone:"Nincs jelző",conditionalFormattingIconArrowUp:"Felfelé mutató nyíl",conditionalFormattingIconArrowRight:"Jobbra mutató nyíl",conditionalFormattingIconArrowDown:"Lefelé mutató nyíl",conditionalFormattingIconCaretUp:"Felfelé mutató kalap",conditionalFormattingIconDash:"Kötőjel",conditionalFormattingIconCaretDown:"Lefelé mutató kalap",conditionalFormattingIconCheckmark:"Pipa",conditionalFormattingIconWarning:"Figyelmeztetés",conditionalFormattingIconXSymbol:"X szimbólum",conditionalFormattingIconCircle:"Kör",conditionalFormattingIconTriangle:"Háromszög",conditionalFormattingIconDiamond:"Rombusz",conditionalFormattingIconFaceSatisfied:"Elégedett arc",conditionalFormattingIconFaceNeutral:"Semleges arc",conditionalFormattingIconFaceDissatisfied:"Elégedetlen arc",sectionName_colorPalette:"Szín",sectionName_range:"Tartomány beállítása",conditionalColor:"Feltételes szín",conditionalFormatttingAvailableData:"Elérhető adatok",conditionalFormattingSelectRule:"Szabály kiválasztása",conditionalFormattingRules:"Szabályok",conditionalFormattingAddRule:"Szabály hozzáadása",conditionalFormattingIfValueIs:"Ha az érték",conditionalFormattingAND:"ÉS",conditionalFormattingRuleStyle:"Szabálystílus",conditionalFormattingTextColor:"Szöveg színe",conditionalFormattingFillColor:"Kitöltés színe",conditionalFormattingNoColor:"Nincs szín",conditionalFormattingShape:"Jelzés",conditionalFormattingDeleteRule:"Szabály törlése",conditionalFormattingMove:"Áthelyezés",conditionalFormattingGTE:"Nagyobb, mint vagy egyenlő",conditionalFormattingLTE:"Kisebb-egyenlő, mint",conditionalFormattingGT:"nagyobb mint",conditionalFormattingLT:"Kisebb, mint",conditionalFormattingET:"Egyenlő",conditionalFormattingIT:"Felül",conditionalFormattingIB:"Alul",conditionalFormattingMI:"Hiányzik",conditionalFromattingCurrentPalette:"Aktuális feltételes paletta",conditionalFromattingCreateNewPalette:"Egyéni műszerfal paletta létrehozása",conditionalFromattingChangePalette:"Paletta módosítása",conditionalFormattingPaletteColors:"Paletta színek",conditionalFormattingFavoriteColors:"Kedvencek",conditionalFormattingCustomColor:"Egyéni szín",conditionalFormattingBackgroundOpacity:"Háttér átlátszósága (%)",conditionalFormattingPercentage:"Százalék",conditionalFormattingNumeric:"Numerikus",conditionalFormattingScale:"Skála",conditionalFormattingSummaryFillColor:"Összegzés kitöltési színe",conditionalFormattingRuleLimitNotification:"%{ruleNumber} szabályok korlátja",conditionalFormattingRuleConditionLabel:"%{type} %{value}",conditionalFormattingAndRuleConditionLabel:"%{startType} %{startValue} és %{endType} %{endValue}",conditionalFormattingInvalidRuleConditionValue:"Érvénytelen érték",conditionalFormattingInvalidRule:"Nyissa meg újra a szabálymeghatározás befejezéséhez",conditionalFormattingInvalidRuleConditionValueForTopAndBottom:"Korlát: 0 - 100"},__it:{colorBy:"Colore per",conditionalFormattingIconNone:"Nessuna forma",conditionalFormattingIconArrowUp:"Freccia su",conditionalFormattingIconArrowRight:"Freccia a destra",conditionalFormattingIconArrowDown:"Freccia giù",conditionalFormattingIconCaretUp:"Cursore su",conditionalFormattingIconDash:"Trattino",conditionalFormattingIconCaretDown:"Cursore giù",conditionalFormattingIconCheckmark:"Segno di spunta",conditionalFormattingIconWarning:"Avviso",conditionalFormattingIconXSymbol:"Simbolo X",conditionalFormattingIconCircle:"Circhio",conditionalFormattingIconTriangle:"Triangolo",conditionalFormattingIconDiamond:"Rombo",conditionalFormattingIconFaceSatisfied:"Espressione soddisfatta",conditionalFormattingIconFaceNeutral:"Espressione neutra",conditionalFormattingIconFaceDissatisfied:"Espressione non soddisfatta",sectionName_colorPalette:"Colore",sectionName_range:"Intervallo impostato",conditionalColor:"Colore condizionale",conditionalFormatttingAvailableData:"Dati disponibili",conditionalFormattingSelectRule:"Selezionare una regola",conditionalFormattingRules:"Regole",conditionalFormattingAddRule:"Aggiungi regola",conditionalFormattingIfValueIs:"Se il valore è",conditionalFormattingAND:"AND",conditionalFormattingRuleStyle:"Stile regola",conditionalFormattingTextColor:"Colore testo",conditionalFormattingFillColor:"Colore riempimento",conditionalFormattingNoColor:"Nessun colore",conditionalFormattingShape:"Indicatore",conditionalFormattingDeleteRule:"Elimina regola",conditionalFormattingMove:"Sposta",conditionalFormattingGTE:"Maggiore di o uguale a",conditionalFormattingLTE:"Minore di o uguale a",conditionalFormattingGT:"Maggiore di",conditionalFormattingLT:"Minore di",conditionalFormattingET:"Uguale a",conditionalFormattingIT:"In alto",conditionalFormattingIB:"In basso",conditionalFormattingMI:"Mancante",conditionalFromattingCurrentPalette:"Tavolozza condizionale corrente",conditionalFromattingCreateNewPalette:"Crea una tavolozza dashboard personalizzata",conditionalFromattingChangePalette:"Cambia tavolozza",conditionalFormattingPaletteColors:"Colori tavolozza",conditionalFormattingFavoriteColors:"Preferiti",conditionalFormattingCustomColor:"Colore personalizzato",conditionalFormattingBackgroundOpacity:"Opacità sfondo (%)",conditionalFormattingPercentage:"Percentuale",conditionalFormattingNumeric:"Numerico",conditionalFormattingScale:"Scala",conditionalFormattingSummaryFillColor:"Colori riempimento riepilogo",conditionalFormattingRuleLimitNotification:"Limite delle regole %{ruleNumber} ",conditionalFormattingRuleConditionLabel:"%{type} %{value}",conditionalFormattingAndRuleConditionLabel:"%{startType} %{startValue} e %{endType} %{endValue}",conditionalFormattingInvalidRuleConditionValue:"Valore non valido",conditionalFormattingInvalidRule:"Riapri a definizione di regola completa ",conditionalFormattingInvalidRuleConditionValueForTopAndBottom:"Limitato a 0 - 100"},__ja:{colorBy:"色分け",conditionalFormattingIconNone:"形状なし",conditionalFormattingIconArrowUp:"上矢印",conditionalFormattingIconArrowRight:"右矢印",conditionalFormattingIconArrowDown:"下矢印",conditionalFormattingIconCaretUp:"上向きキャレット",conditionalFormattingIconDash:"破線",conditionalFormattingIconCaretDown:"下向きキャレット",conditionalFormattingIconCheckmark:"チェック・マーク",conditionalFormattingIconWarning:"警告",conditionalFormattingIconXSymbol:"X シンボル",conditionalFormattingIconCircle:"円",conditionalFormattingIconTriangle:"三角形",conditionalFormattingIconDiamond:"ひし形",conditionalFormattingIconFaceSatisfied:"満足顔",conditionalFormattingIconFaceNeutral:"普通の顔",conditionalFormattingIconFaceDissatisfied:"不満顔",sectionName_colorPalette:"色",sectionName_range:"範囲の設定",conditionalColor:"条件付きの色",conditionalFormatttingAvailableData:"使用可能なデータ",conditionalFormattingSelectRule:"規則の選択",conditionalFormattingRules:"規則",conditionalFormattingAddRule:"規則の追加",conditionalFormattingIfValueIs:"値が次の場合: ",conditionalFormattingAND:"AND",conditionalFormattingRuleStyle:"規則のスタイル",conditionalFormattingTextColor:"テキストの色",conditionalFormattingFillColor:"塗りつぶし色",conditionalFormattingNoColor:"色なし",conditionalFormattingShape:"インディケーター",conditionalFormattingDeleteRule:"規則の削除",conditionalFormattingMove:"移動",conditionalFormattingGTE:"以上",conditionalFormattingLTE:"以下",conditionalFormattingGT:"より大きい",conditionalFormattingLT:"より小さい",conditionalFormattingET:"等しい",conditionalFormattingIT:"上位",conditionalFormattingIB:"下位",conditionalFormattingMI:"欠落",conditionalFromattingCurrentPalette:"現在の条件付きパレット",conditionalFromattingCreateNewPalette:"カスタム・ダッシュボード・パレットの作成",conditionalFromattingChangePalette:"パレットの変更",conditionalFormattingPaletteColors:"パレットの色",conditionalFormattingFavoriteColors:"お気に入り",conditionalFormattingCustomColor:"カスタム色",conditionalFormattingBackgroundOpacity:"背景の不透明度 (%)",conditionalFormattingPercentage:"パーセンテージ",conditionalFormattingNumeric:"数値",conditionalFormattingScale:"スケール",conditionalFormattingSummaryFillColor:"集計を塗りつぶす色",conditionalFormattingRuleLimitNotification:"%{ruleNumber} 規則の限度",conditionalFormattingRuleConditionLabel:"%{type} %{value}",conditionalFormattingAndRuleConditionLabel:"%{startType} %{startValue} および %{endType} %{endValue}",conditionalFormattingInvalidRuleConditionValue:"無効な値",conditionalFormattingInvalidRule:"再オープンして規則定義を入力",conditionalFormattingInvalidRuleConditionValueForTopAndBottom:"0 から 100 に制限"},__kk:{colorBy:"Түс арқылы",conditionalFormattingIconNone:"Пішіні жоқ",conditionalFormattingIconArrowUp:"Жоғарғы көрсеткі",conditionalFormattingIconArrowRight:"Оң жақ көрсеткі",conditionalFormattingIconArrowDown:"Төменгі көрсеткі",conditionalFormattingIconCaretUp:"Жоғарыға енгізу белгісі",conditionalFormattingIconDash:"Тире",conditionalFormattingIconCaretDown:"Төменге енгізу белгісі",conditionalFormattingIconCheckmark:"Тексеру белгісі",conditionalFormattingIconWarning:"Ескерту",conditionalFormattingIconXSymbol:"X таңбасы",conditionalFormattingIconCircle:"Шеңбер",conditionalFormattingIconTriangle:"Үшбұрыш",conditionalFormattingIconDiamond:"Гауһар тас",conditionalFormattingIconFaceSatisfied:"Риза болған бет",conditionalFormattingIconFaceNeutral:"Бейтарап бет",conditionalFormattingIconFaceDissatisfied:"Риза емес бет",sectionName_colorPalette:"Түс",sectionName_range:"Ауқымды орнату",conditionalColor:"Шартты түс",conditionalFormatttingAvailableData:"Қол жетімді деректер",conditionalFormattingSelectRule:"Ереже таңдау",conditionalFormattingRules:"Ережелер",conditionalFormattingAddRule:"Ереже қосу",conditionalFormattingIfValueIs:"Егер мәні болса",conditionalFormattingAND:"ЖӘНЕ",conditionalFormattingRuleStyle:"Ереже мәнері",conditionalFormattingTextColor:"Мәтін түсі",conditionalFormattingFillColor:"Түспен толтыру",conditionalFormattingNoColor:"Түсі жоқ",conditionalFormattingShape:"Көрсеткіш",conditionalFormattingDeleteRule:"Ережені жою",conditionalFormattingMove:"Жылжыту",conditionalFormattingGTE:"Келесіден артық немесе оған тең",conditionalFormattingLTE:"келесіден кем немесе оған тең",conditionalFormattingGT:"артығырақ",conditionalFormattingLT:"кемірек",conditionalFormattingET:"Келесіге тең",conditionalFormattingIT:"Жоғарыда",conditionalFormattingIB:"Төменде",conditionalFormattingMI:"Жоқ",conditionalFromattingCurrentPalette:"Ағымдағы шартты бояғыш",conditionalFromattingCreateNewPalette:"Теңшелетін бақылау тақтасының палитрасын жасаңыз",conditionalFromattingChangePalette:"Бояғышты өзгертіңіз",conditionalFormattingPaletteColors:"Бояғыш түстер",conditionalFormattingFavoriteColors:"Таңдаулылар",conditionalFormattingCustomColor:"Өзгертпелі түс",conditionalFormattingBackgroundOpacity:"Фонның мөлдірлігі (%)",conditionalFormattingPercentage:"Пайызы",conditionalFormattingNumeric:"Сандық",conditionalFormattingScale:"Масштабтау",conditionalFormattingSummaryFillColor:"Қысқаша толтыру түсі",conditionalFormattingRuleLimitNotification:"%{ruleNumber} ережелерінің шегі",conditionalFormattingRuleConditionLabel:"%{type} %{value}",conditionalFormattingAndRuleConditionLabel:"%{startType} %{startValue} және %{endType} %{endValue}",conditionalFormattingInvalidRuleConditionValue:"Жарамсыз мән",conditionalFormattingInvalidRule:"Ережені анықтау үшін қайта ашыңыз",conditionalFormattingInvalidRuleConditionValueForTopAndBottom:"0 100 дейін шектелген"},__ko:{colorBy:"색상 기준",conditionalFormattingIconNone:"모양 없음",conditionalFormattingIconArrowUp:"위쪽 화살표",conditionalFormattingIconArrowRight:"오른쪽 화살표",conditionalFormattingIconArrowDown:"아래쪽 화살표",conditionalFormattingIconCaretUp:"위쪽 캐럿",conditionalFormattingIconDash:"대시",conditionalFormattingIconCaretDown:"아래쪽 캐럿",conditionalFormattingIconCheckmark:"체크 표시",conditionalFormattingIconWarning:"경고",conditionalFormattingIconXSymbol:"X 기호",conditionalFormattingIconCircle:"원",conditionalFormattingIconTriangle:"삼각형",conditionalFormattingIconDiamond:"다이아몬드",conditionalFormattingIconFaceSatisfied:"만족스러운 얼굴",conditionalFormattingIconFaceNeutral:"감정 없는 얼굴",conditionalFormattingIconFaceDissatisfied:"불만스러운 얼굴",sectionName_colorPalette:"색상",sectionName_range:"범위 설정",conditionalColor:"조건부 색상",conditionalFormatttingAvailableData:"사용 가능한 데이터",conditionalFormattingSelectRule:"규칙 선택",conditionalFormattingRules:"규칙",conditionalFormattingAddRule:"규칙 추가",conditionalFormattingIfValueIs:"값이 다음과 같은 경우",conditionalFormattingAND:"AND",conditionalFormattingRuleStyle:"규칙 스타일",conditionalFormattingTextColor:"텍스트 색상",conditionalFormattingFillColor:"채우기 색상",conditionalFormattingNoColor:"색 없음",conditionalFormattingShape:"표시기",conditionalFormattingDeleteRule:"규칙 삭제",conditionalFormattingMove:"이동",conditionalFormattingGTE:"보다 크거나 같음",conditionalFormattingLTE:"보다 작거나 같음",conditionalFormattingGT:"보다 큼",conditionalFormattingLT:"보다 작음",conditionalFormattingET:"같음",conditionalFormattingIT:"맨 위",conditionalFormattingIB:"맨 아래",conditionalFormattingMI:"누락",conditionalFromattingCurrentPalette:"현재 조건부 색상표",conditionalFromattingCreateNewPalette:"사용자 정의 대시보드 색상표 작성",conditionalFromattingChangePalette:"색상표 변경",conditionalFormattingPaletteColors:"색상표 색상",conditionalFormattingFavoriteColors:"즐겨찾기",conditionalFormattingCustomColor:"사용자 정의 색상",conditionalFormattingBackgroundOpacity:"배경 불투명도(%)",conditionalFormattingPercentage:"백분율",conditionalFormattingNumeric:"숫자",conditionalFormattingScale:"스케일",conditionalFormattingSummaryFillColor:"요약 채우기 색상",conditionalFormattingRuleLimitNotification:"%{ruleNumber} 규칙의 한계",conditionalFormattingRuleConditionLabel:"%{type} %{value}",conditionalFormattingAndRuleConditionLabel:"%{startType} %{startValue} 및 %{endType} %{endValue}",conditionalFormattingInvalidRuleConditionValue:"올바르지 않은 값",conditionalFormattingInvalidRule:"규칙 정의를 완료하기 위해 다시 열기",conditionalFormattingInvalidRuleConditionValueForTopAndBottom:"0 - 100으로 제한됨"},__nb:{colorBy:"Farge etter",conditionalFormattingIconNone:"Ingen form",conditionalFormattingIconArrowUp:"Pil opp",conditionalFormattingIconArrowRight:"Pil høyre",conditionalFormattingIconArrowDown:"Pil ned",conditionalFormattingIconCaretUp:"Cirkumfleks opp",conditionalFormattingIconDash:"Strek",conditionalFormattingIconCaretDown:"Cirkumfleks ned",conditionalFormattingIconCheckmark:"Hake",conditionalFormattingIconWarning:"Advarsel",conditionalFormattingIconXSymbol:"X-symbol",conditionalFormattingIconCircle:"Sirkel",conditionalFormattingIconTriangle:"Triangel",conditionalFormattingIconDiamond:"Rombe",conditionalFormattingIconFaceSatisfied:"Ansikt fornøyd",conditionalFormattingIconFaceNeutral:"Ansikt nøytralt",conditionalFormattingIconFaceDissatisfied:"Ansikt misfornøyd",sectionName_colorPalette:"Farge",sectionName_range:"Definer område",conditionalColor:"Betinget farge",conditionalFormatttingAvailableData:"Tilgjengelige data",conditionalFormattingSelectRule:"Velg en regel",conditionalFormattingRules:"Regler",conditionalFormattingAddRule:"Legg til regel",conditionalFormattingIfValueIs:"Hvis verdien er",conditionalFormattingAND:"OG",conditionalFormattingRuleStyle:"Regelstil",conditionalFormattingTextColor:"Tekstfarge",conditionalFormattingFillColor:"Fyllfarge",conditionalFormattingNoColor:"Ingen farge",conditionalFormattingShape:"Indikator",conditionalFormattingDeleteRule:"Slett regel",conditionalFormattingMove:"Flytt",conditionalFormattingGTE:"Større enn eller lik",conditionalFormattingLTE:"Mindre enn eller lik",conditionalFormattingGT:"Større enn",conditionalFormattingLT:"Mindre enn",conditionalFormattingET:"Lik",conditionalFormattingIT:"I topp",conditionalFormattingIB:"I bunn",conditionalFormattingMI:"Mangler",conditionalFromattingCurrentPalette:"Gjeldende betinget palett",conditionalFromattingCreateNewPalette:"Opprett en tilpasset dashbordpalett",conditionalFromattingChangePalette:"Endre palett",conditionalFormattingPaletteColors:"Palettfarger",conditionalFormattingFavoriteColors:"Favoritter",conditionalFormattingCustomColor:"Tilpasset farge",conditionalFormattingBackgroundOpacity:"Ugjennomsiktighet for bakgrunn (%)",conditionalFormattingPercentage:"Prosent",conditionalFormattingNumeric:"Numerisk",conditionalFormattingScale:"Skala",conditionalFormattingSummaryFillColor:"Utfyllingsfarge for sammendrag",conditionalFormattingRuleLimitNotification:"Begrensning på %{ruleNumber} regler",conditionalFormattingRuleConditionLabel:"%{type} %{value}",conditionalFormattingAndRuleConditionLabel:"%{startType} %{startValue} og %{endType} %{endValue}",conditionalFormattingInvalidRuleConditionValue:"Ugyldig verdi",conditionalFormattingInvalidRule:"Åpne på nytt for å fullføre regeldefinisjon",conditionalFormattingInvalidRuleConditionValueForTopAndBottom:"Begrenset til 0 - 100"},__nl:{colorBy:"Kleur op",conditionalFormattingIconNone:"Geen vorm",conditionalFormattingIconArrowUp:"Pijl omhoog",conditionalFormattingIconArrowRight:"Pijl naar rechts",conditionalFormattingIconArrowDown:"Pijl omlaag",conditionalFormattingIconCaretUp:"Caret omhoog",conditionalFormattingIconDash:"Streepje",conditionalFormattingIconCaretDown:"Caret omlaag",conditionalFormattingIconCheckmark:"Vinkje",conditionalFormattingIconWarning:"Waarschuwing",conditionalFormattingIconXSymbol:"X-symbool",conditionalFormattingIconCircle:"Cirkel",conditionalFormattingIconTriangle:"Driehoek",conditionalFormattingIconDiamond:"Ruit",conditionalFormattingIconFaceSatisfied:"Tevreden gezicht",conditionalFormattingIconFaceNeutral:"Neutraal gezicht",conditionalFormattingIconFaceDissatisfied:"Ontevreden gezicht",sectionName_colorPalette:"Kleur",sectionName_range:"Bereik instellen",conditionalColor:"Voorwaardelijke kleur",conditionalFormatttingAvailableData:"Beschikbare gegevens",conditionalFormattingSelectRule:"Regel selecteren",conditionalFormattingRules:"Regels",conditionalFormattingAddRule:"Regel toevoegen",conditionalFormattingIfValueIs:"Als waarde is",conditionalFormattingAND:"AND",conditionalFormattingRuleStyle:"Regelstijl",conditionalFormattingTextColor:"Tekstkleur",conditionalFormattingFillColor:"Opvulkleur",conditionalFormattingNoColor:"Geen kleur",conditionalFormattingShape:"Indicator",conditionalFormattingDeleteRule:"Regel wissen",conditionalFormattingMove:"Verplaatsen",conditionalFormattingGTE:"Groter dan of gelijk aan",conditionalFormattingLTE:"Kleiner dan of gelijk aan",conditionalFormattingGT:"Groter dan",conditionalFormattingLT:"Kleiner dan",conditionalFormattingET:"Gelijk aan",conditionalFormattingIT:"Bovenaan",conditionalFormattingIB:"Onderaan",conditionalFormattingMI:"Ontbrekend",conditionalFromattingCurrentPalette:"Huidig voorwaardelijk palet",conditionalFromattingCreateNewPalette:"Aangepast dashboardpalet maken",conditionalFromattingChangePalette:"Palet wijzigen",conditionalFormattingPaletteColors:"Paletkleuren",conditionalFormattingFavoriteColors:"Favorieten",conditionalFormattingCustomColor:"Aangepaste kleur",conditionalFormattingBackgroundOpacity:"Ondoorzichtigheid achtergrond (%)",conditionalFormattingPercentage:"Percentage",conditionalFormattingNumeric:"Numeriek",conditionalFormattingScale:"Schaal",conditionalFormattingSummaryFillColor:"Vulkleur samenvatting",conditionalFormattingRuleLimitNotification:"Limiet van %{ruleNumber} regels",conditionalFormattingRuleConditionLabel:"%{type} %{value}",conditionalFormattingAndRuleConditionLabel:"%{startType} %{startValue} en %{endType} %{endValue}",conditionalFormattingInvalidRuleConditionValue:"Ongeldige waarde",conditionalFormattingInvalidRule:"Heropenen om de regeldefinitie te voltooien",conditionalFormattingInvalidRuleConditionValueForTopAndBottom:"Begrensd tussen 0 - 100"},__no:{colorBy:"Farge etter",conditionalFormattingIconNone:"Ingen form",conditionalFormattingIconArrowUp:"Pil opp",conditionalFormattingIconArrowRight:"Pil høyre",conditionalFormattingIconArrowDown:"Pil ned",conditionalFormattingIconCaretUp:"Cirkumfleks opp",conditionalFormattingIconDash:"Strek",conditionalFormattingIconCaretDown:"Cirkumfleks ned",conditionalFormattingIconCheckmark:"Hake",conditionalFormattingIconWarning:"Advarsel",conditionalFormattingIconXSymbol:"X-symbol",conditionalFormattingIconCircle:"Sirkel",conditionalFormattingIconTriangle:"Triangel",conditionalFormattingIconDiamond:"Rombe",conditionalFormattingIconFaceSatisfied:"Ansikt fornøyd",conditionalFormattingIconFaceNeutral:"Ansikt nøytralt",conditionalFormattingIconFaceDissatisfied:"Ansikt misfornøyd",sectionName_colorPalette:"Farge",sectionName_range:"Definer område",conditionalColor:"Betinget farge",conditionalFormatttingAvailableData:"Tilgjengelige data",conditionalFormattingSelectRule:"Velg en regel",conditionalFormattingRules:"Regler",conditionalFormattingAddRule:"Legg til regel",conditionalFormattingIfValueIs:"Hvis verdien er",conditionalFormattingAND:"OG",conditionalFormattingRuleStyle:"Regelstil",conditionalFormattingTextColor:"Tekstfarge",conditionalFormattingFillColor:"Fyllfarge",conditionalFormattingNoColor:"Ingen farge",conditionalFormattingShape:"Indikator",conditionalFormattingDeleteRule:"Slett regel",conditionalFormattingMove:"Flytt",conditionalFormattingGTE:"Større enn eller lik",conditionalFormattingLTE:"Mindre enn eller lik",conditionalFormattingGT:"Større enn",conditionalFormattingLT:"Mindre enn",conditionalFormattingET:"Lik",conditionalFormattingIT:"I topp",conditionalFormattingIB:"I bunn",conditionalFormattingMI:"Mangler",conditionalFromattingCurrentPalette:"Gjeldende betinget palett",conditionalFromattingCreateNewPalette:"Opprett en tilpasset dashbordpalett",conditionalFromattingChangePalette:"Endre palett",conditionalFormattingPaletteColors:"Palettfarger",conditionalFormattingFavoriteColors:"Favoritter",conditionalFormattingCustomColor:"Tilpasset farge",conditionalFormattingBackgroundOpacity:"Ugjennomsiktighet for bakgrunn (%)",conditionalFormattingPercentage:"Prosent",conditionalFormattingNumeric:"Numerisk",conditionalFormattingScale:"Skala",conditionalFormattingSummaryFillColor:"Utfyllingsfarge for sammendrag",conditionalFormattingRuleLimitNotification:"Begrensning på %{ruleNumber} regler",conditionalFormattingRuleConditionLabel:"%{type} %{value}",conditionalFormattingAndRuleConditionLabel:"%{startType} %{startValue} og %{endType} %{endValue}",conditionalFormattingInvalidRuleConditionValue:"Ugyldig verdi",conditionalFormattingInvalidRule:"Åpne på nytt for å fullføre regeldefinisjon",conditionalFormattingInvalidRuleConditionValueForTopAndBottom:"Begrenset til 0 - 100"},__pl:{colorBy:"Kolor wg",conditionalFormattingIconNone:"Brak kształtu",conditionalFormattingIconArrowUp:"Strzałka w górę",conditionalFormattingIconArrowRight:"Strzałka w prawo",conditionalFormattingIconArrowDown:"Strzałka w dół",conditionalFormattingIconCaretUp:"Kursor w górę",conditionalFormattingIconDash:"Kreska",conditionalFormattingIconCaretDown:"Kursor w dół",conditionalFormattingIconCheckmark:"Znacznik wyboru",conditionalFormattingIconWarning:"Ostrzeżenie",conditionalFormattingIconXSymbol:"Symbol X",conditionalFormattingIconCircle:"Okrąg",conditionalFormattingIconTriangle:"Trójkąt",conditionalFormattingIconDiamond:"Romb",conditionalFormattingIconFaceSatisfied:"Twarz zadowolona",conditionalFormattingIconFaceNeutral:"Twarz neutralna",conditionalFormattingIconFaceDissatisfied:"Twarz niezadowolona",sectionName_colorPalette:"Kolor",sectionName_range:"Ustaw zakres",conditionalColor:"Kolor warunkowy",conditionalFormatttingAvailableData:"Dostępne dane",conditionalFormattingSelectRule:"Wybierz regułę",conditionalFormattingRules:"Reguły",conditionalFormattingAddRule:"Dodaj regułę",conditionalFormattingIfValueIs:"Jeśli wartość jest",conditionalFormattingAND:"I",conditionalFormattingRuleStyle:"Styl reguły",conditionalFormattingTextColor:"Kolor tekstu",conditionalFormattingFillColor:"Kolor wypełnienia",conditionalFormattingNoColor:"Brak koloru",conditionalFormattingShape:"Wskaźnik",conditionalFormattingDeleteRule:"Usuń regułę",conditionalFormattingMove:"Przesuń",conditionalFormattingGTE:"Większe lub równe",conditionalFormattingLTE:"Mniejsze lub równe",conditionalFormattingGT:"Większe niż",conditionalFormattingLT:"Mniejsze niż",conditionalFormattingET:"Równe",conditionalFormattingIT:"Wśród najwyższych",conditionalFormattingIB:"Wśród najniższych",conditionalFormattingMI:"Brak",conditionalFromattingCurrentPalette:"Bieżąca paleta warunkowa",conditionalFromattingCreateNewPalette:"Utwórz niestandardową paletę kokpitu",conditionalFromattingChangePalette:"Zmień paletę",conditionalFormattingPaletteColors:"Kolory palety",conditionalFormattingFavoriteColors:"Ulubione",conditionalFormattingCustomColor:"Kolor niestandardowy",conditionalFormattingBackgroundOpacity:"Krycie tła (%)",conditionalFormattingPercentage:"Procentowe",conditionalFormattingNumeric:"Liczbowe",conditionalFormattingScale:"Skala",conditionalFormattingSummaryFillColor:"Kolor wypełnienia podsumowania",conditionalFormattingRuleLimitNotification:"Limit %{ruleNumber} reguł",conditionalFormattingRuleConditionLabel:"%{type} %{value}",conditionalFormattingAndRuleConditionLabel:"%{startType} %{startValue} i %{endType} %{endValue}",conditionalFormattingInvalidRuleConditionValue:"Niepoprawna wartość",conditionalFormattingInvalidRule:"Otwórz ponownie, aby dokończyć definiowanie reguły",conditionalFormattingInvalidRuleConditionValueForTopAndBottom:"Ograniczenie do 0-100"},__pt:{colorBy:"Cor por",conditionalFormattingIconNone:"Sem forma",conditionalFormattingIconArrowUp:"Seta para cima",conditionalFormattingIconArrowRight:"Seta para a direita",conditionalFormattingIconArrowDown:"Seta para baixo",conditionalFormattingIconCaretUp:"Indicador para cima",conditionalFormattingIconDash:"Travessão",conditionalFormattingIconCaretDown:"Indicador para baixo",conditionalFormattingIconCheckmark:"Marca de seleção",conditionalFormattingIconWarning:"Aviso",conditionalFormattingIconXSymbol:"Símbolo X",conditionalFormattingIconCircle:"Círculo",conditionalFormattingIconTriangle:"Triângulo",conditionalFormattingIconDiamond:"Losango",conditionalFormattingIconFaceSatisfied:"Expressão de satisfeito",conditionalFormattingIconFaceNeutral:"Expressão neutra",conditionalFormattingIconFaceDissatisfied:"Expressão de insatisfeito",sectionName_colorPalette:"Cor",sectionName_range:"Configurar o intervalo",conditionalColor:"Cor condicional",conditionalFormatttingAvailableData:"dados disponíveis",conditionalFormattingSelectRule:"Selecionar uma regra",conditionalFormattingRules:"Regras",conditionalFormattingAddRule:"Incluir regra",conditionalFormattingIfValueIs:"Se o valor for",conditionalFormattingAND:"E",conditionalFormattingRuleStyle:"Estilo de regra",conditionalFormattingTextColor:"Cor do texto",conditionalFormattingFillColor:"Cor de preenchimento",conditionalFormattingNoColor:"Nenhuma cor",conditionalFormattingShape:"Indicador",conditionalFormattingDeleteRule:"Excluir Regra",conditionalFormattingMove:"Mover",conditionalFormattingGTE:"Maior ou igual a",conditionalFormattingLTE:"Menor ou igual a",conditionalFormattingGT:"Maior que",conditionalFormattingLT:"Menor que",conditionalFormattingET:"Igual a",conditionalFormattingIT:"Na parte superior",conditionalFormattingIB:"Na parte inferior",conditionalFormattingMI:"Ausente",conditionalFromattingCurrentPalette:"Paleta condicional atual",conditionalFromattingCreateNewPalette:"Criar uma Paleta de Painel Customizado",conditionalFromattingChangePalette:"Paleta de mudança",conditionalFormattingPaletteColors:"Cores da paleta",conditionalFormattingFavoriteColors:"Destaques",conditionalFormattingCustomColor:"Cor customizada",conditionalFormattingBackgroundOpacity:"Opacidade do plano de fundo (%)",conditionalFormattingPercentage:"Percentual",conditionalFormattingNumeric:"Numérico",conditionalFormattingScale:"Escala",conditionalFormattingSummaryFillColor:"Cor de preenchimento do resumo",conditionalFormattingRuleLimitNotification:"Limite de %{ruleNumber} regras",conditionalFormattingRuleConditionLabel:"%{type} %{value}",conditionalFormattingAndRuleConditionLabel:"%{startType} %{startValue} e %{endType} %{endValue}",conditionalFormattingInvalidRuleConditionValue:"Valor inválido",conditionalFormattingInvalidRule:"Reabrir para concluir a definição de regra",conditionalFormattingInvalidRuleConditionValueForTopAndBottom:"Limite de 0 a 100"},"__pt-br":{colorBy:"Cor por",conditionalFormattingIconNone:"Sem forma",conditionalFormattingIconArrowUp:"Seta para cima",conditionalFormattingIconArrowRight:"Seta para a direita",conditionalFormattingIconArrowDown:"Seta para baixo",conditionalFormattingIconCaretUp:"Indicador para cima",conditionalFormattingIconDash:"Travessão",conditionalFormattingIconCaretDown:"Indicador para baixo",conditionalFormattingIconCheckmark:"Marca de seleção",conditionalFormattingIconWarning:"Aviso",conditionalFormattingIconXSymbol:"Símbolo X",conditionalFormattingIconCircle:"Círculo",conditionalFormattingIconTriangle:"Triângulo",conditionalFormattingIconDiamond:"Losango",conditionalFormattingIconFaceSatisfied:"Expressão de satisfeito",conditionalFormattingIconFaceNeutral:"Expressão neutra",conditionalFormattingIconFaceDissatisfied:"Expressão de insatisfeito",sectionName_colorPalette:"Cor",sectionName_range:"Configurar o intervalo",conditionalColor:"Cor condicional",conditionalFormatttingAvailableData:"dados disponíveis",conditionalFormattingSelectRule:"Selecionar uma regra",conditionalFormattingRules:"Regras",conditionalFormattingAddRule:"Incluir regra",conditionalFormattingIfValueIs:"Se o valor for",conditionalFormattingAND:"E",conditionalFormattingRuleStyle:"Estilo de regra",conditionalFormattingTextColor:"Cor do texto",conditionalFormattingFillColor:"Cor de preenchimento",conditionalFormattingNoColor:"Nenhuma cor",conditionalFormattingShape:"Indicador",conditionalFormattingDeleteRule:"Excluir Regra",conditionalFormattingMove:"Mover",conditionalFormattingGTE:"Maior ou igual a",conditionalFormattingLTE:"Menor ou igual a",conditionalFormattingGT:"Maior que",conditionalFormattingLT:"Menor que",conditionalFormattingET:"Igual a",conditionalFormattingIT:"Na parte superior",conditionalFormattingIB:"Na parte inferior",conditionalFormattingMI:"Ausente",conditionalFromattingCurrentPalette:"Paleta condicional atual",conditionalFromattingCreateNewPalette:"Criar uma Paleta de Painel Customizado",conditionalFromattingChangePalette:"Paleta de mudança",conditionalFormattingPaletteColors:"Cores da paleta",conditionalFormattingFavoriteColors:"Destaques",conditionalFormattingCustomColor:"Cor customizada",conditionalFormattingBackgroundOpacity:"Opacidade do plano de fundo (%)",conditionalFormattingPercentage:"Percentual",conditionalFormattingNumeric:"Numérico",conditionalFormattingScale:"Escala",conditionalFormattingSummaryFillColor:"Cor de preenchimento do resumo",conditionalFormattingRuleLimitNotification:"Limite de %{ruleNumber} regras",conditionalFormattingRuleConditionLabel:"%{type} %{value}",conditionalFormattingAndRuleConditionLabel:"%{startType} %{startValue} e %{endType} %{endValue}",conditionalFormattingInvalidRuleConditionValue:"Valor inválido",conditionalFormattingInvalidRule:"Reabrir para concluir a definição de regra",conditionalFormattingInvalidRuleConditionValueForTopAndBottom:"Limite de 0 a 100"},__ro:{colorBy:"Culoare după",conditionalFormattingIconNone:"Fără formă",conditionalFormattingIconArrowUp:"Săgeată în sus",conditionalFormattingIconArrowRight:"Săgeată la dreapta",conditionalFormattingIconArrowDown:"Săgeată în jos",conditionalFormattingIconCaretUp:"Accent circumflex în sus",conditionalFormattingIconDash:"Liniuţă",conditionalFormattingIconCaretDown:"Accent circumflex în jos",conditionalFormattingIconCheckmark:"Marcaj de bifare",conditionalFormattingIconWarning:"Avertisment",conditionalFormattingIconXSymbol:"Simbol X",conditionalFormattingIconCircle:"Cerc",conditionalFormattingIconTriangle:"Triunghi",conditionalFormattingIconDiamond:"Romb",conditionalFormattingIconFaceSatisfied:"Faţă veselă",conditionalFormattingIconFaceNeutral:"Faţă neutră",conditionalFormattingIconFaceDissatisfied:"Faţă tristă",sectionName_colorPalette:"Culoare",sectionName_range:"Setare interval",conditionalColor:"Culoare condiţională",conditionalFormatttingAvailableData:"Date disponibile",conditionalFormattingSelectRule:"Selectare regulă",conditionalFormattingRules:"Reguli",conditionalFormattingAddRule:"Adăugare regulă",conditionalFormattingIfValueIs:"Dacă valoarea este",conditionalFormattingAND:"AND",conditionalFormattingRuleStyle:"Stil regulă",conditionalFormattingTextColor:"Culoare text",conditionalFormattingFillColor:"Culoare de umplere",conditionalFormattingNoColor:"Fără culoare",conditionalFormattingShape:"Indicator",conditionalFormattingDeleteRule:"Ştergere regulă",conditionalFormattingMove:"Mutare",conditionalFormattingGTE:"Mai mare sau egal cu",conditionalFormattingLTE:"Mai mic sau egal cu",conditionalFormattingGT:"Mai mare ca",conditionalFormattingLT:"Mai mic ca",conditionalFormattingET:"Egal cu",conditionalFormattingIT:"În partea superioară",conditionalFormattingIB:"În partea inferioară",conditionalFormattingMI:"Lipseşte",conditionalFromattingCurrentPalette:"Paletă condiţională curentă",conditionalFromattingCreateNewPalette:"Creare paletă tablou de bord personalizată",conditionalFromattingChangePalette:"Modificare paletă",conditionalFormattingPaletteColors:"Culori paletă",conditionalFormattingFavoriteColors:"Favorite",conditionalFormattingCustomColor:"Culoare personalizată",conditionalFormattingBackgroundOpacity:"Opacitate fundal (%)",conditionalFormattingPercentage:"Procentaj",conditionalFormattingNumeric:"Numeric",conditionalFormattingScale:"Scară",conditionalFormattingSummaryFillColor:"Culoare umplere sumar",conditionalFormattingRuleLimitNotification:"Reguli limită %{ruleNumber} ",conditionalFormattingRuleConditionLabel:"%{type} %{value}",conditionalFormattingAndRuleConditionLabel:"%{startType} %{startValue} şi %{endType} %{endValue}",conditionalFormattingInvalidRuleConditionValue:"Valoare invalidă",conditionalFormattingInvalidRule:"Redeschidere pentru finalizare definiţie de regulă",conditionalFormattingInvalidRuleConditionValueForTopAndBottom:"Limitare la 0 - 100"},__ru:{colorBy:"Цвет по",conditionalFormattingIconNone:"Без формы",conditionalFormattingIconArrowUp:"Стрелка вверх",conditionalFormattingIconArrowRight:"Стрелка вправо",conditionalFormattingIconArrowDown:"Стрелка вниз",conditionalFormattingIconCaretUp:"Знак вставки вверх",conditionalFormattingIconDash:"Штриховая",conditionalFormattingIconCaretDown:"Знак вставки вниз",conditionalFormattingIconCheckmark:"Галочка",conditionalFormattingIconWarning:"Предупреждение",conditionalFormattingIconXSymbol:"Символ X",conditionalFormattingIconCircle:"Круг",conditionalFormattingIconTriangle:"Треугольник",conditionalFormattingIconDiamond:"Ромб",conditionalFormattingIconFaceSatisfied:"Удовлетворенное лицо",conditionalFormattingIconFaceNeutral:"Нейтральное лицо",conditionalFormattingIconFaceDissatisfied:"Неудовлетворенное лицо",sectionName_colorPalette:"Цвет",sectionName_range:"Задать диапазон",conditionalColor:"Условный цвет",conditionalFormatttingAvailableData:"Доступные данные",conditionalFormattingSelectRule:"Выбрать правило",conditionalFormattingRules:"Правила",conditionalFormattingAddRule:"Добавить правило",conditionalFormattingIfValueIs:"Если значение равно",conditionalFormattingAND:"И",conditionalFormattingRuleStyle:"Стиль правила",conditionalFormattingTextColor:"Цвет текста",conditionalFormattingFillColor:"Цвет заливки",conditionalFormattingNoColor:"Нет цвета",conditionalFormattingShape:"Индикатор",conditionalFormattingDeleteRule:"Удалить правило",conditionalFormattingMove:"Переместить",conditionalFormattingGTE:"Больше или равно",conditionalFormattingLTE:"Меньше или равно",conditionalFormattingGT:"Больше",conditionalFormattingLT:"Меньше",conditionalFormattingET:"Равно",conditionalFormattingIT:"Сверху",conditionalFormattingIB:"Снизу",conditionalFormattingMI:"Отсутствует",conditionalFromattingCurrentPalette:"Текущая условная палитра",conditionalFromattingCreateNewPalette:"Создать пользовательскую палитру сводных панелей",conditionalFromattingChangePalette:"Изменить палитру",conditionalFormattingPaletteColors:"Цвета палитры",conditionalFormattingFavoriteColors:"Избранное",conditionalFormattingCustomColor:"Пользовательский цвет",conditionalFormattingBackgroundOpacity:"Непрозрачность фона (%)",conditionalFormattingPercentage:"Проценты",conditionalFormattingNumeric:"Числовое",conditionalFormattingScale:"Масштаб",conditionalFormattingSummaryFillColor:"Цвет заливки сводной информации",conditionalFormattingRuleLimitNotification:"Предельное число правил - {ruleNumber}%",conditionalFormattingRuleConditionLabel:"%{type} %{value}",conditionalFormattingAndRuleConditionLabel:"%{startType} %{startValue}% и %{endType} %{endValue}",conditionalFormattingInvalidRuleConditionValue:"Недопустимое значение",conditionalFormattingInvalidRule:"Откройте снова для завершения определения правила",conditionalFormattingInvalidRuleConditionValueForTopAndBottom:"Предельное значение: 0 - 100"},__sl:{colorBy:"Pobarvaj po",conditionalFormattingIconNone:"Brez oblike",conditionalFormattingIconArrowUp:"Puščica navzgor",conditionalFormattingIconArrowRight:"Puščica desno",conditionalFormattingIconArrowDown:"Puščica navzdol",conditionalFormattingIconCaretUp:"Korektorski znak navzgor",conditionalFormattingIconDash:"Črtkano",conditionalFormattingIconCaretDown:"Korektorski znak navzdol",conditionalFormattingIconCheckmark:"Kljukica",conditionalFormattingIconWarning:"Opozorilo",conditionalFormattingIconXSymbol:"Simbol X",conditionalFormattingIconCircle:"Krog",conditionalFormattingIconTriangle:"Trikotnik",conditionalFormattingIconDiamond:"Diamant",conditionalFormattingIconFaceSatisfied:"Zadovoljen obraz",conditionalFormattingIconFaceNeutral:"Nevtralen obraz",conditionalFormattingIconFaceDissatisfied:"Nezadovoljen obraz",sectionName_colorPalette:"Barva",sectionName_range:"Nastavi obseg",conditionalColor:"Pogojna barva",conditionalFormatttingAvailableData:"Razpoložljivi podatki",conditionalFormattingSelectRule:"Izberite pravilo",conditionalFormattingRules:"Pravila",conditionalFormattingAddRule:"Dodaj pravilo",conditionalFormattingIfValueIs:"Če je vrednost",conditionalFormattingAND:"AND",conditionalFormattingRuleStyle:"Slog pravila",conditionalFormattingTextColor:"Barva besedila",conditionalFormattingFillColor:"Barva polnila",conditionalFormattingNoColor:"Brez barve",conditionalFormattingShape:"Indikator",conditionalFormattingDeleteRule:"Izbriši pravilo",conditionalFormattingMove:"Premakni",conditionalFormattingGTE:"Večje od ali enako",conditionalFormattingLTE:"Manjše od ali enako",conditionalFormattingGT:"Večje od",conditionalFormattingLT:"Manjše od",conditionalFormattingET:"Enako",conditionalFormattingIT:"Na vrhu",conditionalFormattingIB:"Na dnu",conditionalFormattingMI:"Manjka",conditionalFromattingCurrentPalette:"Trenutna pogojna paleta",conditionalFromattingCreateNewPalette:"Ustvari paleto delovne table po meri",conditionalFromattingChangePalette:"Spremeni paleto",conditionalFormattingPaletteColors:"Barve palete",conditionalFormattingFavoriteColors:"Priljubljene",conditionalFormattingCustomColor:"Barva po meri",conditionalFormattingBackgroundOpacity:"Neprosojnost ozadja (%)",conditionalFormattingPercentage:"Odstotek",conditionalFormattingNumeric:"Številsko",conditionalFormattingScale:"Merilo",conditionalFormattingSummaryFillColor:"Barva polnila povzetka",conditionalFormattingRuleLimitNotification:"Omejitev pravil za %{ruleNumber}",conditionalFormattingRuleConditionLabel:"%{type} %{value}",conditionalFormattingAndRuleConditionLabel:"%{startType} %{startValue} in %{endType} %{endValue}",conditionalFormattingInvalidRuleConditionValue:"Neveljavna vrednost",conditionalFormattingInvalidRule:"Znova odprite, da dokončate definicijo pravila",conditionalFormattingInvalidRuleConditionValueForTopAndBottom:"Omejeno na 0-100"},__sv:{colorBy:"Färg efter",conditionalFormattingIconNone:"Ingen form",conditionalFormattingIconArrowUp:"Pil upp",conditionalFormattingIconArrowRight:"Pil höger",conditionalFormattingIconArrowDown:"Pil ned",conditionalFormattingIconCaretUp:"Tak upp",conditionalFormattingIconDash:"Streck",conditionalFormattingIconCaretDown:"Tak ned",conditionalFormattingIconCheckmark:"Bockmarkering",conditionalFormattingIconWarning:"Varning",conditionalFormattingIconXSymbol:"X-symbol",conditionalFormattingIconCircle:"Cirkel",conditionalFormattingIconTriangle:"Triangel",conditionalFormattingIconDiamond:"Romb",conditionalFormattingIconFaceSatisfied:"Nöjd",conditionalFormattingIconFaceNeutral:"Neutral",conditionalFormattingIconFaceDissatisfied:"Missnöjd",sectionName_colorPalette:"Färg",sectionName_range:"Ange intervall",conditionalColor:"Villkorlig färg",conditionalFormatttingAvailableData:"Tillgängliga data",conditionalFormattingSelectRule:"Välj en regel",conditionalFormattingRules:"Regler",conditionalFormattingAddRule:"Lägg till regel",conditionalFormattingIfValueIs:"Om värdet är",conditionalFormattingAND:"AND",conditionalFormattingRuleStyle:"Regelformat",conditionalFormattingTextColor:"Textfärg",conditionalFormattingFillColor:"Fyllningsfärg",conditionalFormattingNoColor:"Ingen färg",conditionalFormattingShape:"Indikator",conditionalFormattingDeleteRule:"Ta bort regel",conditionalFormattingMove:"Flytta",conditionalFormattingGTE:"Större än eller lika med",conditionalFormattingLTE:"Mindre än eller lika med",conditionalFormattingGT:"Större än",conditionalFormattingLT:"Mindre än",conditionalFormattingET:"Lika med",conditionalFormattingIT:"Överst",conditionalFormattingIB:"Nederst",conditionalFormattingMI:"Saknas",conditionalFromattingCurrentPalette:"Aktuell villkorspalett",conditionalFromattingCreateNewPalette:"Skapa en anpassad kontrollpanelpalett",conditionalFromattingChangePalette:"Ändra palett",conditionalFormattingPaletteColors:"Palettfärger",conditionalFormattingFavoriteColors:"Favoriter",conditionalFormattingCustomColor:"Anpassad färg",conditionalFormattingBackgroundOpacity:"Bakgrundsopacitet (%)",conditionalFormattingPercentage:"Procent",conditionalFormattingNumeric:"Numerisk",conditionalFormattingScale:"Skala",conditionalFormattingSummaryFillColor:"Fyllningsfärg för sammanfattning",conditionalFormattingRuleLimitNotification:"Gräns på %{ruleNumber} regler",conditionalFormattingRuleConditionLabel:"%{type} %{value}",conditionalFormattingAndRuleConditionLabel:"%{startType} %{startValue} och %{endType} %{endValue}",conditionalFormattingInvalidRuleConditionValue:"Ogiltigt värde",conditionalFormattingInvalidRule:"Öppna igen för att slutföra regeldefinition",conditionalFormattingInvalidRuleConditionValueForTopAndBottom:"Begränsat till 0 - 100"},__th:{colorBy:"สีตาม",conditionalFormattingIconNone:"ไม่มีรูปร่าง",conditionalFormattingIconArrowUp:"ลูกศรชี้ขึ้น",conditionalFormattingIconArrowRight:"ลูกศรชี้ขวา",conditionalFormattingIconArrowDown:"ลูกศรชี้ลง",conditionalFormattingIconCaretUp:"คาเร็ตชี้ขึ้น",conditionalFormattingIconDash:"ขีด",conditionalFormattingIconCaretDown:"คาเร็ตชี้ลง",conditionalFormattingIconCheckmark:"ทำเครื่องหมาย",conditionalFormattingIconWarning:"คำเตือน",conditionalFormattingIconXSymbol:"สัญลักษณ์ X",conditionalFormattingIconCircle:"วงกลม",conditionalFormattingIconTriangle:"สามเหลี่ยม",conditionalFormattingIconDiamond:"เพชร",conditionalFormattingIconFaceSatisfied:"หน้าแสดงความพึงพอใจ",conditionalFormattingIconFaceNeutral:"หน้าธรรมชาติ",conditionalFormattingIconFaceDissatisfied:"หน้าแสดงความไม่พึงพอใจ",sectionName_colorPalette:"สี",sectionName_range:"ตั้งค่าช่วง",conditionalColor:"สีแบบเงื่อนไข",conditionalFormatttingAvailableData:"ข้อมูลที่มี",conditionalFormattingSelectRule:"เลือกกฎ",conditionalFormattingRules:"กฎ",conditionalFormattingAddRule:"เพิ่มกฎ",conditionalFormattingIfValueIs:"หากค่าคือ",conditionalFormattingAND:"AND",conditionalFormattingRuleStyle:"สไตล์ของกฎ",conditionalFormattingTextColor:"สีข้อความ",conditionalFormattingFillColor:"เติมสี",conditionalFormattingNoColor:"ไม่มีสี",conditionalFormattingShape:"ตัวบ่งชี้",conditionalFormattingDeleteRule:"ลบกฎ",conditionalFormattingMove:"ย้าย",conditionalFormattingGTE:"มากกว่าหรือเท่ากับ",conditionalFormattingLTE:"น้อยกว่าหรือเท่ากับ",conditionalFormattingGT:"มากกว่า",conditionalFormattingLT:"น้อยกว่า",conditionalFormattingET:"เท่ากับ",conditionalFormattingIT:"ด้านบน",conditionalFormattingIB:"ด้านล่าง",conditionalFormattingMI:"หายไป",conditionalFromattingCurrentPalette:"พาเล็ตแบบมีเงื่อนไขปัจจุบัน",conditionalFromattingCreateNewPalette:"สร้างพาเล็ตแดชบอร์ดที่กำหนดเอง",conditionalFromattingChangePalette:"เปลี่ยนพาเล็ต",conditionalFormattingPaletteColors:"สีพาเล็ต",conditionalFormattingFavoriteColors:"รายการโปรด",conditionalFormattingCustomColor:"สีแบบกำหนดเอง",conditionalFormattingBackgroundOpacity:"ความทึบแสงของพื้นหลัง (%)",conditionalFormattingPercentage:"เปอร์เซ็นต์",conditionalFormattingNumeric:"ตัวเลข",conditionalFormattingScale:"สเกล",conditionalFormattingSummaryFillColor:"สีเติมของสรุป",conditionalFormattingRuleLimitNotification:"ค่าจำกัดของกฎ %{ruleNumber}",conditionalFormattingRuleConditionLabel:"%{type} %{value}",conditionalFormattingAndRuleConditionLabel:"%{startType} %{startValue} และ %{endType} %{endValue}",conditionalFormattingInvalidRuleConditionValue:"ค่าไม่ถูกต้อง",conditionalFormattingInvalidRule:"เปิดใหม่เพื่อดำเนินการนิยามกฎให้เสร็จสมบูรณ์",conditionalFormattingInvalidRuleConditionValueForTopAndBottom:"จำกัดที่ 0 - 100"},__tr:{colorBy:"Renk",conditionalFormattingIconNone:"Şekil Yok",conditionalFormattingIconArrowUp:"Yukarı ok",conditionalFormattingIconArrowRight:"Sağa ok",conditionalFormattingIconArrowDown:"Aşağı ok",conditionalFormattingIconCaretUp:"Düzeltme işareti - yukarı",conditionalFormattingIconDash:"Tire",conditionalFormattingIconCaretDown:"Düzeltme işareti - aşağı",conditionalFormattingIconCheckmark:"Onay işareti",conditionalFormattingIconWarning:"Uyarı",conditionalFormattingIconXSymbol:"X simgesi",conditionalFormattingIconCircle:"Daire",conditionalFormattingIconTriangle:"Üçgen",conditionalFormattingIconDiamond:"Baklava",conditionalFormattingIconFaceSatisfied:"Memnun surat",conditionalFormattingIconFaceNeutral:"Nötr surat",conditionalFormattingIconFaceDissatisfied:"Memnuniyetsiz surat",sectionName_colorPalette:"Renk",sectionName_range:"Aralık belirleyin",conditionalColor:"Koşullu renk",conditionalFormatttingAvailableData:"Kullanılabilir veriler",conditionalFormattingSelectRule:"Bir kural seçin",conditionalFormattingRules:"Kurallar",conditionalFormattingAddRule:"Kural ekle",conditionalFormattingIfValueIs:"Değer",conditionalFormattingAND:"AND",conditionalFormattingRuleStyle:"Kural stili",conditionalFormattingTextColor:"Metin rengi",conditionalFormattingFillColor:"Dolgu rengi",conditionalFormattingNoColor:"Renk yok",conditionalFormattingShape:"Gösterge",conditionalFormattingDeleteRule:"Kuralı sil",conditionalFormattingMove:"Taşı",conditionalFormattingGTE:"Büyük veya eşit",conditionalFormattingLTE:"Küçük veya eşit",conditionalFormattingGT:"Büyüktür",conditionalFormattingLT:"Küçüktür",conditionalFormattingET:"Eşittir",conditionalFormattingIT:"Üstte",conditionalFormattingIB:"Altta",conditionalFormattingMI:"Eksik",conditionalFromattingCurrentPalette:"Geçerli koşullu palet",conditionalFromattingCreateNewPalette:"Özel gösterge panosu paleti oluştur",conditionalFromattingChangePalette:"Paleti değiştir",conditionalFormattingPaletteColors:"Palet renkleri",conditionalFormattingFavoriteColors:"Sık kullanılanlar",conditionalFormattingCustomColor:"Özel renk",conditionalFormattingBackgroundOpacity:"Arka plan opaklığı (%)",conditionalFormattingPercentage:"Yüzde",conditionalFormattingNumeric:"Sayısal",conditionalFormattingScale:"Ölçek",conditionalFormattingSummaryFillColor:"Özet dolgu rengi",conditionalFormattingRuleLimitNotification:"%{ruleNumber} kuralları limiti",conditionalFormattingRuleConditionLabel:"%{type} %{value}",conditionalFormattingAndRuleConditionLabel:"%{startType} %{startValue} ve %{endType} %{endValue}",conditionalFormattingInvalidRuleConditionValue:"Geçersiz değer",conditionalFormattingInvalidRule:"Kural tanımını tamamlamak için yeniden aç",conditionalFormattingInvalidRuleConditionValueForTopAndBottom:"0 - 100 ile sınırlı"},__zh:{colorBy:"着色依据",conditionalFormattingIconNone:"无形状",conditionalFormattingIconArrowUp:"向上箭头",conditionalFormattingIconArrowRight:"向右箭头",conditionalFormattingIconArrowDown:"向下箭头",conditionalFormattingIconCaretUp:"向上插入",conditionalFormattingIconDash:"短划线",conditionalFormattingIconCaretDown:"向下插入",conditionalFormattingIconCheckmark:"复选标记",conditionalFormattingIconWarning:"警告",conditionalFormattingIconXSymbol:"X 符号",conditionalFormattingIconCircle:"圆圈",conditionalFormattingIconTriangle:"三角形",conditionalFormattingIconDiamond:"菱形",conditionalFormattingIconFaceSatisfied:"满意脸",conditionalFormattingIconFaceNeutral:"平静脸",conditionalFormattingIconFaceDissatisfied:"不满意脸",sectionName_colorPalette:"颜色",sectionName_range:"设置范围",conditionalColor:"条件颜色",conditionalFormatttingAvailableData:"可用数据",conditionalFormattingSelectRule:"选择规则",conditionalFormattingRules:"规则",conditionalFormattingAddRule:"添加规则",conditionalFormattingIfValueIs:"如果值为",conditionalFormattingAND:"AND",conditionalFormattingRuleStyle:"规则样式",conditionalFormattingTextColor:"文本颜色",conditionalFormattingFillColor:"填充颜色",conditionalFormattingNoColor:"无颜色",conditionalFormattingShape:"指示器",conditionalFormattingDeleteRule:"删除规则",conditionalFormattingMove:"移动",conditionalFormattingGTE:"大于或等于",conditionalFormattingLTE:"小于或等于",conditionalFormattingGT:"大于",conditionalFormattingLT:"小于",conditionalFormattingET:"等于",conditionalFormattingIT:"最高",conditionalFormattingIB:"最低",conditionalFormattingMI:"缺少",conditionalFromattingCurrentPalette:"当前有条件调色板",conditionalFromattingCreateNewPalette:"创建自定义仪表板调色板",conditionalFromattingChangePalette:"更改调色板",conditionalFormattingPaletteColors:"调色板颜色",conditionalFormattingFavoriteColors:"收藏夹",conditionalFormattingCustomColor:"自定义颜色",conditionalFormattingBackgroundOpacity:"背景不透明度 (%)",conditionalFormattingPercentage:"百分比",conditionalFormattingNumeric:"数字",conditionalFormattingScale:"小数位",conditionalFormattingSummaryFillColor:"摘要填充颜色",conditionalFormattingRuleLimitNotification:"%{ruleNumber} 个规则的限制",conditionalFormattingRuleConditionLabel:"%{type} %{value}",conditionalFormattingAndRuleConditionLabel:"%{startType} %{startValue} 和 %{endType} %{endValue}",conditionalFormattingInvalidRuleConditionValue:"无效值",conditionalFormattingInvalidRule:"重新打开以完成规则定义",conditionalFormattingInvalidRuleConditionValueForTopAndBottom:"限制为 0 - 100"},"__zh-cn":{colorBy:"着色依据",conditionalFormattingIconNone:"无形状",conditionalFormattingIconArrowUp:"向上箭头",conditionalFormattingIconArrowRight:"向右箭头",conditionalFormattingIconArrowDown:"向下箭头",conditionalFormattingIconCaretUp:"向上插入",conditionalFormattingIconDash:"短划线",conditionalFormattingIconCaretDown:"向下插入",conditionalFormattingIconCheckmark:"复选标记",conditionalFormattingIconWarning:"警告",conditionalFormattingIconXSymbol:"X 符号",conditionalFormattingIconCircle:"圆圈",conditionalFormattingIconTriangle:"三角形",conditionalFormattingIconDiamond:"菱形",conditionalFormattingIconFaceSatisfied:"满意脸",conditionalFormattingIconFaceNeutral:"平静脸",conditionalFormattingIconFaceDissatisfied:"不满意脸",sectionName_colorPalette:"颜色",sectionName_range:"设置范围",conditionalColor:"条件颜色",conditionalFormatttingAvailableData:"可用数据",conditionalFormattingSelectRule:"选择规则",conditionalFormattingRules:"规则",conditionalFormattingAddRule:"添加规则",conditionalFormattingIfValueIs:"如果值为",conditionalFormattingAND:"AND",conditionalFormattingRuleStyle:"规则样式",conditionalFormattingTextColor:"文本颜色",conditionalFormattingFillColor:"填充颜色",conditionalFormattingNoColor:"无颜色",conditionalFormattingShape:"指示器",conditionalFormattingDeleteRule:"删除规则",conditionalFormattingMove:"移动",conditionalFormattingGTE:"大于或等于",conditionalFormattingLTE:"小于或等于",conditionalFormattingGT:"大于",conditionalFormattingLT:"小于",conditionalFormattingET:"等于",conditionalFormattingIT:"最高",conditionalFormattingIB:"最低",conditionalFormattingMI:"缺少",conditionalFromattingCurrentPalette:"当前有条件调色板",conditionalFromattingCreateNewPalette:"创建自定义仪表板调色板",conditionalFromattingChangePalette:"更改调色板",conditionalFormattingPaletteColors:"调色板颜色",conditionalFormattingFavoriteColors:"收藏夹",conditionalFormattingCustomColor:"自定义颜色",conditionalFormattingBackgroundOpacity:"背景不透明度 (%)",conditionalFormattingPercentage:"百分比",conditionalFormattingNumeric:"数字",conditionalFormattingScale:"小数位",conditionalFormattingSummaryFillColor:"摘要填充颜色",conditionalFormattingRuleLimitNotification:"%{ruleNumber} 个规则的限制",conditionalFormattingRuleConditionLabel:"%{type} %{value}",conditionalFormattingAndRuleConditionLabel:"%{startType} %{startValue} 和 %{endType} %{endValue}",conditionalFormattingInvalidRuleConditionValue:"无效值",conditionalFormattingInvalidRule:"重新打开以完成规则定义",conditionalFormattingInvalidRuleConditionValueForTopAndBottom:"限制为 0 - 100"},"__zh-hk":{colorBy:"顏色依據",conditionalFormattingIconNone:"沒有形狀",conditionalFormattingIconArrowUp:"向上鍵",conditionalFormattingIconArrowRight:"向右鍵",conditionalFormattingIconArrowDown:"向下鍵",conditionalFormattingIconCaretUp:"脫字符號 (^) 向上",conditionalFormattingIconDash:"虛線",conditionalFormattingIconCaretDown:"脫字符號 (^) 向下",conditionalFormattingIconCheckmark:"勾號",conditionalFormattingIconWarning:"警告",conditionalFormattingIconXSymbol:"X 符號",conditionalFormattingIconCircle:"圓形",conditionalFormattingIconTriangle:"三角形",conditionalFormattingIconDiamond:"菱形",conditionalFormattingIconFaceSatisfied:"滿意的臉",conditionalFormattingIconFaceNeutral:"中立的臉",conditionalFormattingIconFaceDissatisfied:"不滿意的臉",sectionName_colorPalette:"顏色",sectionName_range:"設定範圍",conditionalColor:"條件式顏色",conditionalFormatttingAvailableData:"可用的資料",conditionalFormattingSelectRule:"選取規則",conditionalFormattingRules:"規則",conditionalFormattingAddRule:"新增規則",conditionalFormattingIfValueIs:"若值為",conditionalFormattingAND:"AND",conditionalFormattingRuleStyle:"規則",conditionalFormattingTextColor:"文字顏色",conditionalFormattingFillColor:"填入顏色",conditionalFormattingNoColor:"沒有顏色",conditionalFormattingShape:"指標",conditionalFormattingDeleteRule:"刪除規則",conditionalFormattingMove:"移動",conditionalFormattingGTE:"大於或等於",conditionalFormattingLTE:"小於或等於",conditionalFormattingGT:"大於",conditionalFormattingLT:"小於",conditionalFormattingET:"等於",conditionalFormattingIT:"最高",conditionalFormattingIB:"最低",conditionalFormattingMI:"遺漏",conditionalFromattingCurrentPalette:"現行條件式選用區",conditionalFromattingCreateNewPalette:"建立自訂儀表板選用區",conditionalFromattingChangePalette:"變更選用區",conditionalFormattingPaletteColors:"選用區顏色",conditionalFormattingFavoriteColors:"我的最愛",conditionalFormattingCustomColor:"自訂顏色",conditionalFormattingBackgroundOpacity:"背景不透明度 (%)",conditionalFormattingPercentage:"百分比",conditionalFormattingNumeric:"數值",conditionalFormattingScale:"小數位數",conditionalFormattingSummaryFillColor:"摘要填入顏色",conditionalFormattingRuleLimitNotification:"%{ruleNumber} 規則的限制",conditionalFormattingRuleConditionLabel:"%{type} %{value}",conditionalFormattingAndRuleConditionLabel:"%{startType} %{startValue} 和 %{endType} %{endValue}",conditionalFormattingInvalidRuleConditionValue:"無效的值",conditionalFormattingInvalidRule:"重新開啟以完成規則定義",conditionalFormattingInvalidRuleConditionValueForTopAndBottom:"限制為 0 - 100"},"__zh-mo":{colorBy:"顏色依據",conditionalFormattingIconNone:"沒有形狀",conditionalFormattingIconArrowUp:"向上鍵",conditionalFormattingIconArrowRight:"向右鍵",conditionalFormattingIconArrowDown:"向下鍵",conditionalFormattingIconCaretUp:"脫字符號 (^) 向上",conditionalFormattingIconDash:"虛線",conditionalFormattingIconCaretDown:"脫字符號 (^) 向下",conditionalFormattingIconCheckmark:"勾號",conditionalFormattingIconWarning:"警告",conditionalFormattingIconXSymbol:"X 符號",conditionalFormattingIconCircle:"圓形",conditionalFormattingIconTriangle:"三角形",conditionalFormattingIconDiamond:"菱形",conditionalFormattingIconFaceSatisfied:"滿意的臉",conditionalFormattingIconFaceNeutral:"中立的臉",conditionalFormattingIconFaceDissatisfied:"不滿意的臉",sectionName_colorPalette:"顏色",sectionName_range:"設定範圍",conditionalColor:"條件式顏色",conditionalFormatttingAvailableData:"可用的資料",conditionalFormattingSelectRule:"選取規則",conditionalFormattingRules:"規則",conditionalFormattingAddRule:"新增規則",conditionalFormattingIfValueIs:"若值為",conditionalFormattingAND:"AND",conditionalFormattingRuleStyle:"規則",conditionalFormattingTextColor:"文字顏色",conditionalFormattingFillColor:"填入顏色",conditionalFormattingNoColor:"沒有顏色",conditionalFormattingShape:"指標",conditionalFormattingDeleteRule:"刪除規則",conditionalFormattingMove:"移動",conditionalFormattingGTE:"大於或等於",conditionalFormattingLTE:"小於或等於",conditionalFormattingGT:"大於",conditionalFormattingLT:"小於",conditionalFormattingET:"等於",conditionalFormattingIT:"最高",conditionalFormattingIB:"最低",conditionalFormattingMI:"遺漏",conditionalFromattingCurrentPalette:"現行條件式選用區",conditionalFromattingCreateNewPalette:"建立自訂儀表板選用區",conditionalFromattingChangePalette:"變更選用區",conditionalFormattingPaletteColors:"選用區顏色",conditionalFormattingFavoriteColors:"我的最愛",conditionalFormattingCustomColor:"自訂顏色",conditionalFormattingBackgroundOpacity:"背景不透明度 (%)",conditionalFormattingPercentage:"百分比",conditionalFormattingNumeric:"數值",conditionalFormattingScale:"小數位數",conditionalFormattingSummaryFillColor:"摘要填入顏色",conditionalFormattingRuleLimitNotification:"%{ruleNumber} 規則的限制",conditionalFormattingRuleConditionLabel:"%{type} %{value}",conditionalFormattingAndRuleConditionLabel:"%{startType} %{startValue} 和 %{endType} %{endValue}",conditionalFormattingInvalidRuleConditionValue:"無效的值",conditionalFormattingInvalidRule:"重新開啟以完成規則定義",conditionalFormattingInvalidRuleConditionValueForTopAndBottom:"限制為 0 - 100"},"__zh-sg":{colorBy:"着色依据",conditionalFormattingIconNone:"无形状",conditionalFormattingIconArrowUp:"向上箭头",conditionalFormattingIconArrowRight:"向右箭头",conditionalFormattingIconArrowDown:"向下箭头",conditionalFormattingIconCaretUp:"向上插入",conditionalFormattingIconDash:"短划线",conditionalFormattingIconCaretDown:"向下插入",conditionalFormattingIconCheckmark:"复选标记",conditionalFormattingIconWarning:"警告",conditionalFormattingIconXSymbol:"X 符号",conditionalFormattingIconCircle:"圆圈",conditionalFormattingIconTriangle:"三角形",conditionalFormattingIconDiamond:"菱形",conditionalFormattingIconFaceSatisfied:"满意脸",conditionalFormattingIconFaceNeutral:"平静脸",conditionalFormattingIconFaceDissatisfied:"不满意脸",sectionName_colorPalette:"颜色",sectionName_range:"设置范围",conditionalColor:"条件颜色",conditionalFormatttingAvailableData:"可用数据",conditionalFormattingSelectRule:"选择规则",conditionalFormattingRules:"规则",conditionalFormattingAddRule:"添加规则",conditionalFormattingIfValueIs:"如果值为",conditionalFormattingAND:"AND",conditionalFormattingRuleStyle:"规则样式",conditionalFormattingTextColor:"文本颜色",conditionalFormattingFillColor:"填充颜色",conditionalFormattingNoColor:"无颜色",conditionalFormattingShape:"指示器",conditionalFormattingDeleteRule:"删除规则",conditionalFormattingMove:"移动",conditionalFormattingGTE:"大于或等于",conditionalFormattingLTE:"小于或等于",conditionalFormattingGT:"大于",conditionalFormattingLT:"小于",conditionalFormattingET:"等于",conditionalFormattingIT:"最高",conditionalFormattingIB:"最低",conditionalFormattingMI:"缺少",conditionalFromattingCurrentPalette:"当前有条件调色板",conditionalFromattingCreateNewPalette:"创建自定义仪表板调色板",conditionalFromattingChangePalette:"更改调色板",conditionalFormattingPaletteColors:"调色板颜色",conditionalFormattingFavoriteColors:"收藏夹",conditionalFormattingCustomColor:"自定义颜色",conditionalFormattingBackgroundOpacity:"背景不透明度 (%)",conditionalFormattingPercentage:"百分比",conditionalFormattingNumeric:"数字",conditionalFormattingScale:"小数位",conditionalFormattingSummaryFillColor:"摘要填充颜色",conditionalFormattingRuleLimitNotification:"%{ruleNumber} 个规则的限制",conditionalFormattingRuleConditionLabel:"%{type} %{value}",conditionalFormattingAndRuleConditionLabel:"%{startType} %{startValue} 和 %{endType} %{endValue}",conditionalFormattingInvalidRuleConditionValue:"无效值",conditionalFormattingInvalidRule:"重新打开以完成规则定义",conditionalFormattingInvalidRuleConditionValueForTopAndBottom:"限制为 0 - 100"},"__zh-tw":{colorBy:"顏色依據",conditionalFormattingIconNone:"沒有形狀",conditionalFormattingIconArrowUp:"向上鍵",conditionalFormattingIconArrowRight:"向右鍵",conditionalFormattingIconArrowDown:"向下鍵",conditionalFormattingIconCaretUp:"脫字符號 (^) 向上",conditionalFormattingIconDash:"虛線",conditionalFormattingIconCaretDown:"脫字符號 (^) 向下",conditionalFormattingIconCheckmark:"勾號",conditionalFormattingIconWarning:"警告",conditionalFormattingIconXSymbol:"X 符號",conditionalFormattingIconCircle:"圓形",conditionalFormattingIconTriangle:"三角形",conditionalFormattingIconDiamond:"菱形",conditionalFormattingIconFaceSatisfied:"滿意的臉",conditionalFormattingIconFaceNeutral:"中立的臉",conditionalFormattingIconFaceDissatisfied:"不滿意的臉",sectionName_colorPalette:"顏色",sectionName_range:"設定範圍",conditionalColor:"條件式顏色",conditionalFormatttingAvailableData:"可用的資料",conditionalFormattingSelectRule:"選取規則",conditionalFormattingRules:"規則",conditionalFormattingAddRule:"新增規則",conditionalFormattingIfValueIs:"若值為",conditionalFormattingAND:"AND",conditionalFormattingRuleStyle:"規則",conditionalFormattingTextColor:"文字顏色",conditionalFormattingFillColor:"填入顏色",conditionalFormattingNoColor:"沒有顏色",conditionalFormattingShape:"指標",conditionalFormattingDeleteRule:"刪除規則",conditionalFormattingMove:"移動",conditionalFormattingGTE:"大於或等於",conditionalFormattingLTE:"小於或等於",conditionalFormattingGT:"大於",conditionalFormattingLT:"小於",conditionalFormattingET:"等於",conditionalFormattingIT:"最高",conditionalFormattingIB:"最低",conditionalFormattingMI:"遺漏",conditionalFromattingCurrentPalette:"現行條件式選用區",conditionalFromattingCreateNewPalette:"建立自訂儀表板選用區",conditionalFromattingChangePalette:"變更選用區",conditionalFormattingPaletteColors:"選用區顏色",conditionalFormattingFavoriteColors:"我的最愛",conditionalFormattingCustomColor:"自訂顏色",conditionalFormattingBackgroundOpacity:"背景不透明度 (%)",conditionalFormattingPercentage:"百分比",conditionalFormattingNumeric:"數值",conditionalFormattingScale:"小數位數",conditionalFormattingSummaryFillColor:"摘要填入顏色",conditionalFormattingRuleLimitNotification:"%{ruleNumber} 規則的限制",conditionalFormattingRuleConditionLabel:"%{type} %{value}",conditionalFormattingAndRuleConditionLabel:"%{startType} %{startValue} 和 %{endType} %{endValue}",conditionalFormattingInvalidRuleConditionValue:"無效的值",conditionalFormattingInvalidRule:"重新開啟以完成規則定義",conditionalFormattingInvalidRuleConditionValueForTopAndBottom:"限制為 0 - 100"},init:function(t){t||(t=window._i18n&&window._i18n.locale?window._i18n.locale:document.documentElement.lang?document.documentElement.lang:"root");var e=this["__"+t]||this.__root;if(e)for(var o in e)this[o]=e[o];for(var o in this.__root)void 0===this[o]&&(this[o]=this.__root[o])}};o.init(),t.exports=o},function(t,e,o){"use strict";var i=o(84),n=o(86),r=o(45),a=o(88),s=function(t){n(!1,t)},l=String.prototype.replace,u=String.prototype.split,c={arabic:function(t){return t<3?t:t%100>=3&&t%100<=10?3:t%100>=11?4:5},chinese:function(){return 0},german:function(t){return 1!==t?1:0},french:function(t){return t>1?1:0},russian:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},czech:function(t){return 1===t?0:t>=2&&t<=4?1:2},polish:function(t){return 1===t?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},icelandic:function(t){return t%10!=1||t%100==11?1:0}},d={arabic:["ar"],chinese:["fa","id","ja","ko","lo","ms","th","tr","zh"],german:["da","de","en","es","fi","el","he","hu","it","nl","no","pt","sv"],french:["fr","tl","pt-br"],russian:["hr","ru","lt"],czech:["cs","sk"],polish:["pl"],icelandic:["is"]};function p(t){var e,o=(e={},i(d,(function(t,o){i(t,(function(t){e[t]=o}))})),e);return o[t]||o[u.call(t,/-/,1)[0]]||o.en}var f=/\$/g,h=/%\{(.*?)\}/g;function g(t,e,o){if("string"!=typeof t)throw new TypeError("Polyglot.transformPhrase expects argument #1 to be string");if(null==e)return t;var i=t,n="number"==typeof e?{smart_count:e}:e;if(null!=n.smart_count&&i){var s=u.call(i,"||||");i=a(s[function(t,e){return c[p(t)](e)}(o||"en",n.smart_count)]||s[0])}return l.call(i,h,(function(t,e){return r(n,e)&&null!=n[e]?l.call(n[e],f,"$$"):t}))}function m(t){var e=t||{};this.phrases={},this.extend(e.phrases||{}),this.currentLocale=e.locale||"en";var o=e.allowMissing?g:null;this.onMissingKey="function"==typeof e.onMissingKey?e.onMissingKey:o,this.warn=e.warn||s}m.prototype.locale=function(t){return t&&(this.currentLocale=t),this.currentLocale},m.prototype.extend=function(t,e){i(t,(function(t,o){var i=e?e+"."+o:o;"object"==typeof t?this.extend(t,i):this.phrases[i]=t}),this)},m.prototype.unset=function(t,e){"string"==typeof t?delete this.phrases[t]:i(t,(function(t,o){var i=e?e+"."+o:o;"object"==typeof t?this.unset(t,i):delete this.phrases[i]}),this)},m.prototype.clear=function(){this.phrases={}},m.prototype.replace=function(t){this.clear(),this.extend(t)},m.prototype.t=function(t,e){var o,i,n=null==e?{}:e;return"string"==typeof this.phrases[t]?o=this.phrases[t]:"string"==typeof n._?o=n._:this.onMissingKey?i=(0,this.onMissingKey)(t,n,this.currentLocale):(this.warn('Missing translation for key: "'+t+'"'),i=t),"string"==typeof o&&(i=g(o,n,this.currentLocale)),i},m.prototype.has=function(t){return r(this.phrases,t)},m.transformPhrase=g,t.exports=m},function(t,e,o){"use strict";var i=o(85),n=Object.prototype.toString,r=Object.prototype.hasOwnProperty,a=function(t,e,o){for(var i=0,n=t.length;i<n;i++)r.call(t,i)&&(null==o?e(t[i],i,t):e.call(o,t[i],i,t))},s=function(t,e,o){for(var i=0,n=t.length;i<n;i++)null==o?e(t.charAt(i),i,t):e.call(o,t.charAt(i),i,t)},l=function(t,e,o){for(var i in t)r.call(t,i)&&(null==o?e(t[i],i,t):e.call(o,t[i],i,t))};t.exports=function(t,e,o){if(!i(e))throw new TypeError("iterator must be a function");var r;arguments.length>=3&&(r=o),"[object Array]"===n.call(t)?a(t,e,r):"string"==typeof t?s(t,e,r):l(t,e,r)}},function(t,e,o){"use strict";var i,n,r=Function.prototype.toString,a="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof a&&"function"==typeof Object.defineProperty)try{i=Object.defineProperty({},"length",{get:function(){throw n}}),n={},a((function(){throw 42}),null,i)}catch(t){t!==n&&(a=null)}else a=null;var s=/^\s*class\b/,l=function(t){try{var e=r.call(t);return s.test(e)}catch(t){return!1}},u=Object.prototype.toString,c="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,d="object"==typeof document&&void 0===document.all&&void 0!==document.all?document.all:{};t.exports=a?function(t){if(t===d)return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if("function"==typeof t&&!t.prototype)return!0;try{a(t,null,i)}catch(t){if(t!==n)return!1}return!l(t)}:function(t){if(t===d)return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if("function"==typeof t&&!t.prototype)return!0;if(c)return function(t){try{return!l(t)&&(r.call(t),!0)}catch(t){return!1}}(t);if(l(t))return!1;var e=u.call(t);return"[object Function]"===e||"[object GeneratorFunction]"===e}},function(t,e,o){"use strict";t.exports=function(){}},function(t,e,o){"use strict";var i="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,r=Object.prototype.toString;t.exports=function(t){var e=this;if("function"!=typeof e||"[object Function]"!==r.call(e))throw new TypeError(i+e);for(var o,a=n.call(arguments,1),s=function(){if(this instanceof o){var i=e.apply(this,a.concat(n.call(arguments)));return Object(i)===i?i:this}return e.apply(t,a.concat(n.call(arguments)))},l=Math.max(0,e.length-a.length),u=[],c=0;c<l;c++)u.push("$"+c);if(o=Function("binder","return function ("+u.join(",")+"){ return binder.apply(this,arguments); }")(s),e.prototype){var d=function(){};d.prototype=e.prototype,o.prototype=new d,d.prototype=null}return o}},function(t,e,o){"use strict";var i=o(46),n=o(47),r=o(49),a=o(50),s=o(97),l=i(a());n(l,{getPolyfill:a,implementation:r,shim:s}),t.exports=l},function(t,e,o){"use strict";(function(e){var i=e.Symbol,n=o(90);t.exports=function(){return"function"==typeof i&&"function"==typeof Symbol&&"symbol"==typeof i("foo")&&"symbol"==typeof Symbol("bar")&&n()}}).call(this,o(16))},function(t,e,o){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),o=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(o))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var i=Object.getOwnPropertySymbols(t);if(1!==i.length||i[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var n=Object.getOwnPropertyDescriptor(t,e);if(42!==n.value||!0!==n.enumerable)return!1}return!0}},function(t,e,o){"use strict";var i=Array.prototype.slice,n=o(48),r=Object.keys,a=r?function(t){return r(t)}:o(92),s=Object.keys;a.shim=function(){return Object.keys?function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2)||(Object.keys=function(t){return n(t)?s(i.call(t)):s(t)}):Object.keys=a,Object.keys||a},t.exports=a},function(t,e,o){"use strict";var i;if(!Object.keys){var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,a=o(48),s=Object.prototype.propertyIsEnumerable,l=!s.call({toString:null},"toString"),u=s.call((function(){}),"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(t){var e=t.constructor;return e&&e.prototype===t},p={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},f=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!p["$"+t]&&n.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{d(window[t])}catch(t){return!0}}catch(t){return!0}return!1}();i=function(t){var e=null!==t&&"object"==typeof t,o="[object Function]"===r.call(t),i=a(t),s=e&&"[object String]"===r.call(t),p=[];if(!e&&!o&&!i)throw new TypeError("Object.keys called on a non-object");var h=u&&o;if(s&&t.length>0&&!n.call(t,0))for(var g=0;g<t.length;++g)p.push(String(g));if(i&&t.length>0)for(var m=0;m<t.length;++m)p.push(String(m));else for(var _ in t)h&&"prototype"===_||!n.call(t,_)||p.push(String(_));if(l)for(var y=function(t){if("undefined"==typeof window||!f)return d(t);try{return d(t)}catch(t){return!1}}(t),v=0;v<c.length;++v)y&&"constructor"===c[v]||!n.call(t,c[v])||p.push(c[v]);return p}}t.exports=i},function(t,e,o){"use strict";t.exports=o(94)},function(t,e,o){"use strict";var i=o(15)("%TypeError%");t.exports=function(t,e){if(null==t)throw new i(e||"Cannot call method on "+t);return t}},function(t,e,o){"use strict";var i=o(15),n=i("%String%"),r=i("%TypeError%");t.exports=function(t){if("symbol"==typeof t)throw new r("Cannot convert a Symbol value to a string");return n(t)}},function(t,e,o){"use strict";var i=o(15),n=o(46),r=n(i("String.prototype.indexOf"));t.exports=function(t,e){var o=i(t,!!e);return"function"==typeof o&&r(t,".prototype.")>-1?n(o):o}},function(t,e,o){"use strict";var i=o(47),n=o(50);t.exports=function(){var t=n();return i(String.prototype,{trim:t},{trim:function(){return String.prototype.trim!==t}}),t}},function(t,e,o){var i=o(5),n=o(99);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[t.i,n,""]]);i(n,{insert:"head",singleton:!1}),t.exports=n.locals||{}},function(t,e,o){(e=o(6)(!1)).push([t.i,".vis-color-properties .vis-cf-measureIndividualCondFormatLink{border:1px solid #f3f3f3}.vis-color-properties .vis-cf-measureIndividualCondFormatLink:hover{background-color:#e5e5e5;background-color:hsla(var(--hover-row-h, 0), var(--hover-row-s, 0%), var(--hover-row-l, 89.80392%), 1)}.vis-color-properties .vis-cf-measureIndividualCondFormatLink .ba-common-propertiesPane__inner{grid-gap:unset}.vis-color-properties .vis-cf-measureIndividualCondFormatLink .ba-common-label{padding-left:8px;width:100%;line-height:calc(24px + 16px);vertical-align:middle;margin-right:unset}.vis-color-properties .vis-cf-measureIndividualCondFormatLink .ba-common-label:hover{cursor:pointer}.vis-color-properties .vis-cf-measureIndividualCondFormatLink .ba-common-button{width:100%;line-height:calc(16px + 24px - calc(24px / 2));padding-bottom:calc(24px / 2);text-align:end;padding-right:8px}.vis-color-properties .vis-cf-measureIndividualCondFormatLink .ba-common-button .ba-common-svgIcon{fill:#000}.vis-color-properties .vis-cf-measureIndividualCondFormatLink .ba-common-button:active{background-color:unset !important}.vis-color-properties .vis-cf-availableData{font-size:.75rem;font-weight:1000}.vis-conditional-color{font-weight:700}.vis-cf-summary-conditional-separator{color:#161616;color:hsla(var(--text-01-h, 0), var(--text-01-s, 0%), var(--text-01-l, 8.62745%), 1);opacity:0.2}.dashboardPropertiesPane .property_color.propertyUIControl#region_color,.explore-properties .property_color.propertyUIControl#region_color{overflow:visible}\n",""]),t.exports=e},function(t,e,o){"use strict";var i,n=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),r=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}(o(0)),s=o(3),l=o(2),u=r(o(1));o(101);var c=o(52),d=r(o(10)),p=function(t){function e(e,o){var i=t.call(this,e,o)||this;return i.state={openPaletteDialog:!1},i}return n(e,t),e.prototype.componentDidMount=function(){this.props.conditionalFormatModel.loadPalette()},e.prototype.render=function(){var t=this,e=this.state.openPaletteDialog,o=this.props,i=o.conditionalFormatModel,n=o.uiContext,r=i.getPalette(),s=n.getIcons().getIcon("common-chevron_right_16");return a.default.createElement(l.FlexLayout,{direction:"column",className:"vis-cf-conditionalPaletteContainer"},a.default.createElement(l.FlexItem,{className:"vis-cf-paletteHeaderSection"},a.default.createElement(l.Label,{label:u.default.get("conditionalFromattingCurrentPalette"),className:"vis-cf-conditionalPaletteLabel"}),a.default.createElement(l.Button,{icon:n.getIcons().getIcon("addNew"),iconSize:"small",variant:"icon",intent:"primary",title:u.default.get("conditionalFromattingCreateNewPalette"),onClick:function(){t._showPaletteDialog(!0)},className:"vis-cf-conditionalPaletteAddPalette"}),e&&this._renderDialog()),a.default.createElement(l.FlexItem,{className:"vis-cf-paletteTop"},a.default.createElement(l.Label,{label:r.getLabel(),className:"vis-cf-conditionalPaletteTheme"}),a.default.createElement(l.FlexItem,{className:"vis-cf-paletteContent"},r.getFills().map((function(t,e){return a.default.createElement(l.FlexItem,{className:"vis-cf-paletteOption",style:t&&d.default.getColorStyle(t.color,t.fill||t,t.pattern),key:e,"datat-index":e,"data-value":t})})))),a.default.createElement(l.FlexItem,{className:"vis-cf-conditionalPalletChangePalleteWrapper"},a.default.createElement(l.FlexLayout,{direction:"row",justifyContent:"flex-end"},a.default.createElement(l.FlexItem,{width:"50%",className:"vis-cf-conditionalPalletChangePallete"},a.default.createElement(l.FlexLayout,{direction:"row",justifyContent:"flex-end"},a.default.createElement(l.FlexItem,null,a.default.createElement(l.Label,{className:"vis-cf-changePaletteLabel",label:u.default.get("conditionalFromattingChangePalette"),onClick:this._handleOnClick.bind(this)})),a.default.createElement(l.FlexItem,null,a.default.createElement(l.SVGIcon,{size:"small",className:"svgIcon vis-cf-changePaletteIcon",verticalAlign:"middle",iconId:s.id,onClick:this._handleOnClick.bind(this)})))))))},e.prototype._showPaletteDialog=function(t){void 0===t&&(t=!0),this.setState({openPaletteDialog:t})},e.prototype._renderDialog=function(){var t=this,e=this.props.uiContext;return a.default.createElement(c.CustomPalette,{key:"createPalette",paletteService:e.getPaletteService(),isDialogOpen:!0,paletteType:"ConditionalPalette",onPaletteCreated:this._onPaletteCreated.bind(this),removeDialog:function(){return t._showPaletteDialog(!1)}})},e.prototype._getPaletteId=function(){return this.props.conditionalFormatModel.getPaletteId()},e.prototype._onChangePalette=function(t,e){this.props.conditionalFormatModel.setPaletteId(e.id)},e.prototype._onPaletteCreated=function(t){var e="__CM__"+t;this.props.conditionalFormatModel.setPaletteId(e)},e.prototype._handleOnClick=function(){var t=this.props.uiContext,e={overlay:!0,width:"300px",content:{module:"authoring-common/changePaletteView",selectedId:this._getPaletteId(),onCreatePalette:this._onPaletteCreated.bind(this),createPaletteType:"standard",name:"condColorPalette",getPalettes:t.getPalettes.bind(t),getPaletteId:this._getPaletteId.bind(this),onChange:this._onChangePalette.bind(this),onRemove:t.onCloseChangePaletteView.bind(t),component:"dashboard",panelId:"childPalettePanel"}};t.displayChildPanel(e)},e}(a.Component);e.default=s.observer(p)},function(t,e,o){var i=o(5),n=o(102);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[t.i,n,""]]);i(n,{insert:"head",singleton:!1}),t.exports=n.locals||{}},function(t,e,o){(e=o(6)(!1)).push([t.i,'.vis-cf-conditionalPalletChangePalleteWrapper{margin-bottom:8px}.vis-cf-conditionalPalletChangePalleteWrapper .vis-cf-conditionalPalletChangePallete{color:#0f62fe;color:hsla(var(--interactive-01-h, 219.16318), var(--interactive-01-s, 99.17012%), var(--interactive-01-l, 52.7451%), 1)}.vis-cf-conditionalPalletChangePalleteWrapper .vis-cf-conditionalPalletChangePallete:hover{cursor:pointer}.vis-cf-conditionalPalletChangePalleteWrapper .vis-cf-conditionalPalletChangePallete .vis-cf-changePaletteLabel{white-space:nowrap}.vis-cf-conditionalPalletChangePalleteWrapper .vis-cf-conditionalPalletChangePallete .vis-cf-changePaletteLabel.ba-common-label{color:#0f62fe;color:hsla(var(--interactive-01-h, 219.16318), var(--interactive-01-s, 99.17012%), var(--interactive-01-l, 52.7451%), 1)}.vis-cf-conditionalPalletChangePalleteWrapper .vis-cf-conditionalPalletChangePallete .vis-cf-changePaletteLabel.ba-common-label:hover{cursor:pointer}.vis-cf-conditionalPalletChangePalleteWrapper .vis-cf-conditionalPalletChangePallete .vis-cf-changePaletteIcon{margin-left:8px}.vis-cf-conditionalPaletteContainer{padding-top:10px}.vis-cf-conditionalPaletteContainer .vis-cf-paletteHeaderSection{position:relative;white-space:normal;display:flex}.vis-cf-conditionalPaletteContainer .vis-cf-paletteHeaderSection .vis-cf-conditionalPaletteLabel{color:#161616;color:hsla(var(--text-01-h, 0), var(--text-01-s, 0%), var(--text-01-l, 8.62745%), 1);font-size:.875rem;min-height:24px;flex:1 1 auto;padding:8px 8px 8px 0px}.vis-cf-conditionalPaletteContainer .vis-cf-paletteHeaderSection .vis-cf-conditionalPaletteAddPalette{cursor:pointer;color:#0f62fe;color:hsla(var(--interactive-01-h, 219.16318), var(--interactive-01-s, 99.17012%), var(--interactive-01-l, 52.7451%), 1)}.vis-cf-conditionalPaletteContainer .vis-cf-paletteTop{padding:8px;margin:8px 16px}.vis-cf-conditionalPaletteContainer .vis-cf-paletteTop .vis-cf-conditionalPaletteTheme{font:.75rem "IBM Plex Sans",Helvetica,Arial,sans-serif;color:#393939;color:hsla(var(--text-02-h, 0), var(--text-02-s, 0%), var(--text-02-l, 22.35294%), 1);flex-grow:1;overflow:hidden}.vis-cf-conditionalPaletteContainer .vis-cf-paletteTop .vis-cf-paletteContent>.vis-cf-paletteOption{border:1px solid;border-color:#e0e0e0;border-color:hsla(var(--ui-03-h, 0), var(--ui-03-s, 0%), var(--ui-03-l, 87.84314%), 1);width:16px;height:16px;position:relative;display:inline-flex;margin-right:2px;margin-bottom:2px}\n',""]),t.exports=e},function(t,e,o){"use strict";var i,n=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}(o(0)),a=o(3),s=o(2),l=function(t){return t&&t.__esModule?t:{default:t}}(o(1));o(104);var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.render=function(){var t=this.props.conditionalFormatModel;return r.default.createElement(s.FlexLayout,{className:"vis-cf-conditionalFormatScaleFlexbox"},r.default.createElement(s.FlexItem,null,r.default.createElement(s.Label,{label:l.default.get("conditionalFormattingScale")})),r.default.createElement(s.Select,{id:"select-list",selected:t.getScale(),onChange:function(e){t.setScale(e)},options:[{value:"%",label:l.default.get("conditionalFormattingPercentage")},{value:"#",label:l.default.get("conditionalFormattingNumeric")}],className:"vis-cf-conditionalFormatScaleSelectBox"}))},e}(r.Component);e.default=a.observer(u)},function(t,e,o){var i=o(5),n=o(105);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[t.i,n,""]]);i(n,{insert:"head",singleton:!1}),t.exports=n.locals||{}},function(t,e,o){(e=o(6)(!1)).push([t.i,".vis-cf-conditionalFormatScaleFlexbox{padding-top:8px;align-items:center}.vis-cf-conditionalFormatScaleFlexbox .ba-common-select__wrapper{margin-left:auto}.vis-cf-conditionalFormatScaleFlexbox .ba-common-select .ba-common-button.is-variant_frame{height:30px;width:160px}\n",""]),t.exports=e},function(t,e,o){"use strict";var i,n=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),r=function(){return(r=Object.assign||function(t){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)},a=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}(o(0)),l=o(3),u=o(2),c=a(o(1)),d=a(o(107));o(110);var p=function(t){function e(e){var o=t.call(this,e)||this;return o._fieldDropdowRef=s.default.createRef(),o}return n(e,t),e.prototype.render=function(){return s.default.createElement(u.FlexLayout,{className:"vis-cf-colorByFlexWrapper"},s.default.createElement(u.FlexItem,{className:"vis-cf-colorBySection"},s.default.createElement(u.Label,{label:c.default.get("colorBy")})),s.default.createElement(u.FlexItem,{className:"vis-cf-item-wrapper"},this._renderItemField()))},e.prototype.onSlideoutMounted=function(){this._fieldDropdowRef.current&&this._fieldDropdowRef.current.onSlideoutMounted()},e.prototype._renderItemField=function(){return s.default.createElement(d.default,r({ref:this._fieldDropdowRef},this.props))},e}(s.Component);e.default=l.observer(p)},function(t,e,o){"use strict";var i,n=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),r=function(){return(r=Object.assign||function(t){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}(o(0)),s=o(2),l=o(3);o(108);var u=function(t){function e(o){var i=t.call(this,o)||this,n=i.props.currentDataItem.getLabel();i.state=r({userTextInput:n},e.defaultState);var s=i.props.uiContext.getIcons();return i._dropDownOpenedId=s.getIcon("common-chevron_up_16").id,i._dropDownClosedId=s.getIcon("common-chevron_down_16").id,i._clearInputId=s.getIcon("common-close_16").id,i.dropdownWrapperRef=a.default.createRef(),i}return n(e,t),e.prototype.componentDidUpdate=function(){this._resizeContents()},e.prototype.render=function(){return a.default.createElement("div",{className:"vis-cf-dropdownWrapper",onBlur:this._onBlur.bind(this)},this._renderTextInput(),a.default.createElement(s.Collapse,{className:"ba-common-dropdown dropdown vis-cf-fieldDropdown",style:{overflowY:"scroll"},isOpened:this.state.openDropDown,autoUnmount:!0,hasNestedCollapse:!0},this._renderMetadataTree()))},e.prototype.onSlideoutMounted=function(){this._resizeContents()},e.prototype._resizeContents=function(){if(!this.state.showClearIcon&&this.dropdownWrapperRef.current){var t,e=this.dropdownWrapperRef.current.offsetWidth;Array.prototype.slice.call(this.dropdownWrapperRef.current.childNodes).forEach((function(o){$(o).hasClass("vis-cf-fieldDropdown-opener")?t=o:e-=o.offsetWidth})),t&&(e=e>0?e:0,$(t).css("width",Math.floor(e)+"px"))}},e.prototype._renderTextInput=function(){var t=this.state,e=t.editing,o=t.openDropDown,i=t.userTextInput,n=t.showClearIcon,l={iconSize:"small",variant:"icon",intent:"primary"},u=a.default.createElement(s.Button,r({icon:this._clearInputId,onClick:this._onClickClearInputButton.bind(this)},l)),c=a.default.createElement("div",{className:"vis-cf-fieldDropdown-opener",onClick:this._onClickDropdownHandle.bind(this)}),d=a.default.createElement(s.Button,r({icon:o?this._dropDownOpenedId:this._dropDownClosedId,onClick:this._onClickDropdownHandle.bind(this)},l)),p=a.default.createElement(a.default.Fragment,null,n&&u,!n&&c,d),f=a.default.createElement(s.TextInput,{className:"vis-cf-colorby-textInput",ref:function(t){t&&t.focus()},value:i,noBottomBorder:!0,onChange:this._onTextValueChange.bind(this),onFocus:this._onFocus.bind(this)}),h=a.default.createElement("div",{className:"vis-cf-colorby-truncatedText"},a.default.createElement(s.TruncatedText,{value:this._getCurrentDataItemLabel(),onClick:this._onTruncatedTextClick.bind(this)}));return a.default.createElement("div",{ref:this.dropdownWrapperRef,className:"vis-cf-colorby-propertyValue"},e?f:h,p)},e.prototype._getCurrentDataItemLabel=function(){var t=this.props.uiContext,e=t.getDataSource(),o=t.getConditionalFormatModel().currentColorBy;return e.getMetadataColumn(o).getLabel()},e.prototype._renderMetadataTree=function(){var t,e=this.props.uiContext,o=this.state,i=o.fullList,n=o.userTextInput,r=i?"":n;return this.state.openDropDown&&(t=e.getDataSourceUI().getPickTree(e.getSourceId(),r,this._performSelection.bind(this),["Calculation","fact"])),t},e.prototype._onTruncatedTextClick=function(){this.setState({editing:!0})},e.prototype._onTextValueChange=function(t){this.setState({userTextInput:t})},e.prototype._performSelection=function(t){var e=this.props.uiContext;t&&"fact"===t.getType()&&(this.setState({editing:!1,userTextInput:t.getLabel(),openDropDown:!1,showClearIcon:!1}),e.getConditionalFormatModel().setCurrentColorBy(t.getId()))},e.prototype._onBlur=function(t){t.currentTarget.contains(t.relatedTarget)||this.setState({editing:!1,openDropDown:!1,showClearIcon:!1})},e.prototype._onClickDropdownHandle=function(){this.setState({editing:!1,openDropDown:!this.state.openDropDown,fullList:!0,showClearIcon:!1,userTextInput:this._getCurrentDataItemLabel()})},e.prototype._onClickClearInputButton=function(){this.setState({editing:!0,openDropDown:!0,showClearIcon:!1,userTextInput:""})},e.prototype._onFocus=function(){this.setState({editing:!0,fullList:!1,openDropDown:!0,showClearIcon:this.state.userTextInput.length>0,userTextInput:this._getCurrentDataItemLabel()})},e.defaultState={openDropDown:!1,fullList:!1,showClearIcon:!1,editing:!1},e}(a.Component);e.default=l.observer(u)},function(t,e,o){var i=o(5),n=o(109);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[t.i,n,""]]);i(n,{insert:"head",singleton:!1}),t.exports=n.locals||{}},function(t,e,o){(e=o(6)(!1)).push([t.i,".vis-cf-dropdownWrapper{width:160px;height:30px;box-sizing:border-box;direction:rtl;min-width:96px;margin-left:auto;background-color:#f4f4f4;background-color:hsla(var(--ui-background-h, 0), var(--ui-background-s, 0%), var(--ui-background-l, 95.68627%), 1);border-bottom:2px solid}.vis-cf-dropdownWrapper .vis-cf-colorby-propertyValue{display:flex;direction:ltr;height:inherit;justify-content:space-between}.vis-cf-dropdownWrapper .vis-cf-colorby-textInput{height:inherit;background-color:unset}.vis-cf-dropdownWrapper .vis-cf-colorby-textInput>input{height:inherit}.vis-cf-dropdownWrapper .vis-cf-colorby-truncatedText{height:inherit;padding-left:16px;display:flex;flex-direction:column;justify-content:center;text-align:center}.vis-cf-dropdownWrapper .vis-cf-fieldDropdown{color:#161616;color:hsla(var(--text-01-h, 0), var(--text-01-s, 0%), var(--text-01-l, 8.62745%), 1);box-shadow:0 2px 8px 0 rgba(0,0,0,0.1);position:absolute;width:200px;z-index:100;direction:ltr;max-height:500px}.vis-cf-dropdownWrapper .vis-cf-fieldDropdown-opener:hover{cursor:pointer}\n",""]),t.exports=e},function(t,e,o){var i=o(5),n=o(111);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[t.i,n,""]]);i(n,{insert:"head",singleton:!1}),t.exports=n.locals||{}},function(t,e,o){(e=o(6)(!1)).push([t.i,".vis-cf-colorByFlexWrapper{align-items:center}.vis-cf-item-wrapper{margin-left:auto;border:1px solid;border-color:#e0e0e0;border-color:hsla(var(--ui-03-h, 0), var(--ui-03-s, 0%), var(--ui-03-l, 87.84314%), 1)}\n",""]),t.exports=e},function(t,e,o){"use strict";var i,n=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}(o(0)),a=function(t){return t&&t.__esModule?t:{default:t}}(o(1)),s=o(3),l=o(2);o(113);var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.render=function(){var t=this.props.conditionalFormatModel;return r.default.createElement(l.FlexLayout,{className:"vis-cf-background-opacity-wrapper"},r.default.createElement(l.FlexItem,{className:"vis-cf-background-opacity-background-wrapper"},r.default.createElement(l.Label,{label:a.default.get("conditionalFormattingBackgroundOpacity")})),r.default.createElement(l.NumberInput,{id:"vis-cf-background-opacity-number-input",allowEmpty:!1,value:t.getBackgroundOpacity(),max:100,min:0,step:1,scale:1,placeholder:"50",className:"vis-cf-background-opacity-background-value",onValueAccept:function(e){if(!isNaN(e)){var o=Number(e);o%1==0&&t.setBackgroundOpacity(o)}}}))},e}(r.Component);e.default=s.observer(u)},function(t,e,o){var i=o(5),n=o(114);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[t.i,n,""]]);i(n,{insert:"head",singleton:!1}),t.exports=n.locals||{}},function(t,e,o){(e=o(6)(!1)).push([t.i,".vis-cf-background-opacity-wrapper{align-items:center;margin-top:16px}.vis-cf-background-opacity-wrapper .vis-cf-background-opacity-background-value,.vis-cf-background-opacity-wrapper .vis-cf-background-opacity-background-value>input{height:32px}.vis-cf-background-opacity-background-value{border-bottom-width:2px;border-bottom-style:solid;float:right;width:80px;margin-left:auto}\n",""]),t.exports=e},function(t,e,o){"use strict";var i,n=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),r=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}(o(0)),s=o(3),l=o(17),u=r(o(116)),c=r(o(214));o(225);var d=r(o(1)),p=r(o(227)),f=o(2),h=function(t){function e(e){var o=t.call(this,e)||this;o._rulesRef=[];for(var i=o.props.conditionalFormatModel.getRules(),n=0;n<i.length;n++)o._rulesRef.push(a.default.createRef());return o}return n(e,t),e.prototype.render=function(){var t=this,e=this.props,o=e.conditionalFormatModel,i=e.uiContext,n=e.disabled,r=o.getRules();return a.default.createElement(f.FlexLayout,{id:"vis-cf-rules-container",direction:"column"},a.default.createElement(f.FlexItem,null,a.default.createElement(f.Label,{className:"vis-cf-rule-title",label:d.default.get("conditionalFormattingRules")})),a.default.createElement(f.FlexItem,{className:f.classnames(n?"vis-cf-rule-container-disabled":"vis-cf-rule-container")},a.default.createElement(f.FlexLayout,{direction:"column",id:"vis-cf-rule-list",className:f.classnames("vis-cf-rulesList-dropzone")},r.map((function(e,n){return a.default.createElement(f.FlexItem,{key:n},a.default.createElement(u.default,{dropIndex:n}),a.default.createElement(c.default,{ref:t._rulesRef[n],key:n,ruleModel:e,ruleIndex:n,removeRule:t._removeRule.bind(t),onRowMove:t._reOrderRules.bind(t),uiContext:i,scale:o.getScale(),paletteId:o.getPaletteId(),colorPickerModel:o.getColorPickerModel(),backgroundOpacity:o.getBackgroundOpacity()}))})),a.default.createElement(u.default,{dropIndex:r.length}))),a.default.createElement(f.VSpacer,{size:2}),a.default.createElement(f.FlexItem,{className:f.classnames("vis-cf-add-rule-container")},a.default.createElement(f.Button,{className:f.classnames("vis-cf-add-rule-button"),iconRight:i.getIcons().getIcon("add16"),size:"small",button:!1,tabIndex:0,focusable:!0,disabled:o.shouldAddRuleBeDisabled,label:d.default.get("conditionalFormattingAddRule"),onClick:function(){return o.addRule()},onKeyDown:function(t){t.keyCode!==l.KeyCodes.ENTER&&t.keyCode!==l.KeyCodes.SPACE||(o.addRule(),t.preventDefault())}})))},e.prototype.expandExpandableTile=function(){this._rulesRef.forEach((function(t){t.current&&t.current.expandExpandableTile()}))},e.prototype.onPropertiesPanelMounted=function(){this._rulesRef.forEach((function(t){t.current&&t.current.updateExpansionStateWhenPropertiesPanelMounted()}))},e.prototype.collapseExpandableTile=function(){this._rulesRef.forEach((function(t){t.current&&t.current.collapseExpandableTile()}))},e.prototype._reOrderRules=function(t,e){this.props.conditionalFormatModel.moveRule(t,e)},e.prototype._removeRule=function(t){this.props.conditionalFormatModel.deleteRule(t)},e}(a.Component),g=s.observer(h);e.NoDnDContextRulesComponent=g;var m=p.default(g);e.default=m},function(t,e,o){"use strict";var i,n=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}(o(0)),a=o(14),s=o(53),l=o(2),u=function(t,e){return{connectDropTarget:t.dropTarget(),isOver:e.isOver(),canDrop:e.canDrop()}},c={drop:function(t,e){return{currentIndex:e.getItem().ruleIndex,newIndex:t.dropIndex}}},d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.render=function(){var t=this.props,e=t.connectDropTarget,o=t.canDrop,i=t.isOver,n=o&&i;return r.default.createElement("div",{ref:function(t){var o=a.findDOMNode(t);e(o)},className:l.classnames("vis-cf-rule-separator",{"vis-cf-is-active":n})})},function(t,e,o,i){var n,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,i);else for(var s=t.length-1;s>=0;s--)(n=t[s])&&(a=(r<3?n(a):r>3?n(e,o,a):n(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a}([s.DropTarget("Rules",c,u)],e)}(r.Component);e.default=d},function(t,e,o){"use strict";var i=o(118);function n(){}function r(){}r.resetWarningCache=n,t.exports=function(){function t(t,e,o,n,r,a){if(a!==i){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function e(){return t}t.isRequired=t;var o={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:r,resetWarningCache:n};return o.PropTypes=o,o}},function(t,e,o){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(120);Object.defineProperty(e,"DragDropManager",{enumerable:!0,get:function(){return s(i).default}});var n=o(194);Object.defineProperty(e,"DragSource",{enumerable:!0,get:function(){return s(n).default}});var r=o(195);Object.defineProperty(e,"DropTarget",{enumerable:!0,get:function(){return s(r).default}});var a=o(196);function s(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"createTestBackend",{enumerable:!0,get:function(){return s(a).default}})},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),n=l(o(121)),r=l(o(129)),a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}(o(21)),s=l(o(189));function l(t){return t&&t.__esModule?t:{default:t}}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var c=function(){function t(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u(this,t);var i=(0,n.default)(r.default);this.context=o,this.store=i,this.monitor=new s.default(i),this.registry=this.monitor.registry,this.backend=e(this),i.subscribe(this.handleRefCountChange.bind(this))}return i(t,[{key:"handleRefCountChange",value:function(){var t=this.store.getState().refCount>0;t&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!t&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1)}},{key:"getContext",value:function(){return this.context}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.registry}},{key:"getActions",value:function(){var t=this,e=this.store.dispatch;return Object.keys(a).filter((function(t){return"function"==typeof a[t]})).reduce((function(o,i){var n,r=a[i];return o[i]=(n=r,function(){for(var o=arguments.length,i=Array(o),r=0;r<o;r++)i[r]=arguments[r];var a=n.apply(t,i);void 0!==a&&e(a)}),o}),{})}}]),t}();e.default=c},function(t,e,o){"use strict";e.__esModule=!0,e.ActionTypes=void 0,e.default=function t(e,o,r){var s;if("function"==typeof o&&void 0===r&&(r=o,o=void 0),void 0!==r){if("function"!=typeof r)throw new Error("Expected the enhancer to be a function.");return r(t)(e,o)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var l=e,u=o,c=[],d=c,p=!1;function f(){d===c&&(d=c.slice())}function h(){return u}function g(t){if("function"!=typeof t)throw new Error("Expected listener to be a function.");var e=!0;return f(),d.push(t),function(){if(e){e=!1,f();var o=d.indexOf(t);d.splice(o,1)}}}function m(t){if(!(0,i.default)(t))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===t.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(p)throw new Error("Reducers may not dispatch actions.");try{p=!0,u=l(u,t)}finally{p=!1}for(var e=c=d,o=0;o<e.length;o++)(0,e[o])();return t}return m({type:a.INIT}),(s={dispatch:m,subscribe:g,getState:h,replaceReducer:function(t){if("function"!=typeof t)throw new Error("Expected the nextReducer to be a function.");l=t,m({type:a.INIT})}})[n.default]=function(){var t,e=g;return(t={subscribe:function(t){if("object"!=typeof t)throw new TypeError("Expected the observer to be an object.");function o(){t.next&&t.next(h())}return o(),{unsubscribe:e(o)}}})[n.default]=function(){return this},t},s};var i=r(o(8)),n=r(o(127));function r(t){return t&&t.__esModule?t:{default:t}}var a=e.ActionTypes={INIT:"@@redux/INIT"}},function(t,e,o){(function(e){var o="object"==typeof e&&e&&e.Object===Object&&e;t.exports=o}).call(this,o(16))},function(t,e,o){var i=o(31),n=Object.prototype,r=n.hasOwnProperty,a=n.toString,s=i?i.toStringTag:void 0;t.exports=function(t){var e=r.call(t,s),o=t[s];try{t[s]=void 0;var i=!0}catch(t){}var n=a.call(t);return i&&(e?t[s]=o:delete t[s]),n}},function(t,e){var o=Object.prototype.toString;t.exports=function(t){return o.call(t)}},function(t,e,o){var i=o(126)(Object.getPrototypeOf,Object);t.exports=i},function(t,e){t.exports=function(t,e){return function(o){return t(e(o))}}},function(t,e,o){"use strict";o.r(e),function(t,i){var n,r=o(77);n="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:i;var a=Object(r.a)(n);e.default=a}.call(this,o(16),o(128)(t))},function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments[1];return{dirtyHandlerIds:(0,a.default)(t.dirtyHandlerIds,e,t.dragOperation),dragOffset:(0,i.default)(t.dragOffset,e),refCount:(0,r.default)(t.refCount,e),dragOperation:(0,n.default)(t.dragOperation,e),stateId:(0,s.default)(t.stateId)}};var i=l(o(55)),n=l(o(130)),r=l(o(173)),a=l(o(61)),s=l(o(188));function l(t){return t&&t.__esModule?t:{default:t}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(t[i]=o[i])}return t};e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,e=arguments[1];switch(e.type){case a.BEGIN_DRAG:return i({},t,{itemType:e.itemType,item:e.item,sourceId:e.sourceId,isSourcePublic:e.isSourcePublic,dropResult:null,didDrop:!1});case a.PUBLISH_DRAG_SOURCE:return i({},t,{isSourcePublic:!0});case a.HOVER:return i({},t,{targetIds:e.targetIds});case s.REMOVE_TARGET:return-1===t.targetIds.indexOf(e.targetId)?t:i({},t,{targetIds:(0,r.default)(t.targetIds,e.targetId)});case a.DROP:return i({},t,{dropResult:e.dropResult,didDrop:!0,targetIds:[]});case a.END_DRAG:return i({},t,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}};var n,r=(n=o(131))&&n.__esModule?n:{default:n},a=o(21),s=o(26),l={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null}},function(t,e,o){var i=o(57),n=o(38),r=o(39),a=n((function(t,e){return r(t)?i(t,e):[]}));t.exports=a},function(t,e,o){var i=o(133),n=o(153),r=o(155),a=o(156),s=o(157);function l(t){var e=-1,o=null==t?0:t.length;for(this.clear();++e<o;){var i=t[e];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=n,l.prototype.get=r,l.prototype.has=a,l.prototype.set=s,t.exports=l},function(t,e,o){var i=o(134),n=o(145),r=o(152);t.exports=function(){this.size=0,this.__data__={hash:new i,map:new(r||n),string:new i}}},function(t,e,o){var i=o(135),n=o(141),r=o(142),a=o(143),s=o(144);function l(t){var e=-1,o=null==t?0:t.length;for(this.clear();++e<o;){var i=t[e];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=n,l.prototype.get=r,l.prototype.has=a,l.prototype.set=s,t.exports=l},function(t,e,o){var i=o(22);t.exports=function(){this.__data__=i?i(null):{},this.size=0}},function(t,e,o){var i=o(58),n=o(137),r=o(32),a=o(139),s=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,c=l.toString,d=u.hasOwnProperty,p=RegExp("^"+c.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!r(t)||n(t))&&(i(t)?p:s).test(a(t))}},function(t,e,o){var i,n=o(138),r=(i=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"";t.exports=function(t){return!!r&&r in t}},function(t,e,o){var i=o(19)["__core-js_shared__"];t.exports=i},function(t,e){var o=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return o.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,o){var i=o(22),n=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(i){var o=e[t];return"__lodash_hash_undefined__"===o?void 0:o}return n.call(e,t)?e[t]:void 0}},function(t,e,o){var i=o(22),n=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return i?void 0!==e[t]:n.call(e,t)}},function(t,e,o){var i=o(22);t.exports=function(t,e){var o=this.__data__;return this.size+=this.has(t)?0:1,o[t]=i&&void 0===e?"__lodash_hash_undefined__":e,this}},function(t,e,o){var i=o(146),n=o(147),r=o(149),a=o(150),s=o(151);function l(t){var e=-1,o=null==t?0:t.length;for(this.clear();++e<o;){var i=t[e];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=n,l.prototype.get=r,l.prototype.has=a,l.prototype.set=s,t.exports=l},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,o){var i=o(24),n=Array.prototype.splice;t.exports=function(t){var e=this.__data__,o=i(e,t);return!(o<0||(o==e.length-1?e.pop():n.call(e,o,1),--this.size,0))}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,o){var i=o(24);t.exports=function(t){var e=this.__data__,o=i(e,t);return o<0?void 0:e[o][1]}},function(t,e,o){var i=o(24);t.exports=function(t){return i(this.__data__,t)>-1}},function(t,e,o){var i=o(24);t.exports=function(t,e){var o=this.__data__,n=i(o,t);return n<0?(++this.size,o.push([t,e])):o[n][1]=e,this}},function(t,e,o){var i=o(23)(o(19),"Map");t.exports=i},function(t,e,o){var i=o(25);t.exports=function(t){var e=i(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,o){var i=o(25);t.exports=function(t){return i(this,t).get(t)}},function(t,e,o){var i=o(25);t.exports=function(t){return i(this,t).has(t)}},function(t,e,o){var i=o(25);t.exports=function(t,e){var o=i(this,t),n=o.size;return o.set(t,e),this.size+=o.size==n?0:1,this}},function(t,e){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,o){var i=o(161),n=o(162),r=o(163);t.exports=function(t,e,o){return e==e?r(t,e,o):i(t,n,o)}},function(t,e){t.exports=function(t,e,o,i){for(var n=t.length,r=o+(i?1:-1);i?r--:++r<n;)if(e(t[r],r,t))return r;return-1}},function(t,e){t.exports=function(t){return t!=t}},function(t,e){t.exports=function(t,e,o){for(var i=o-1,n=t.length;++i<n;)if(t[i]===e)return i;return-1}},function(t,e,o){var i=o(165),n=Math.max;t.exports=function(t,e,o){return e=n(void 0===e?t.length-1:e,0),function(){for(var r=arguments,a=-1,s=n(r.length-e,0),l=Array(s);++a<s;)l[a]=r[e+a];a=-1;for(var u=Array(e+1);++a<e;)u[a]=r[a];return u[e]=o(l),i(t,this,u)}}},function(t,e){t.exports=function(t,e,o){switch(o.length){case 0:return t.call(e);case 1:return t.call(e,o[0]);case 2:return t.call(e,o[0],o[1]);case 3:return t.call(e,o[0],o[1],o[2])}return t.apply(e,o)}},function(t,e,o){var i=o(167),n=o(170)(i);t.exports=n},function(t,e,o){var i=o(168),n=o(169),r=o(60),a=n?function(t,e){return n(t,"toString",{configurable:!0,enumerable:!1,value:i(e),writable:!0})}:r;t.exports=a},function(t,e){t.exports=function(t){return function(){return t}}},function(t,e,o){var i=o(23),n=function(){try{var t=i(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=n},function(t,e){var o=Date.now;t.exports=function(t){var e=0,i=0;return function(){var n=o(),r=16-(n-i);if(i=n,r>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,o){var i=o(58),n=o(172);t.exports=function(t){return null!=t&&n(t.length)&&!i(t)}},function(t,e){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments[1];switch(e.type){case i.ADD_SOURCE:case i.ADD_TARGET:return t+1;case i.REMOVE_SOURCE:case i.REMOVE_TARGET:return t-1;default:return t}};var i=o(26)},function(t,e,o){var i=o(175),n=o(38),r=o(176),a=o(39),s=n((function(t){return r(i(t,a))}));t.exports=s},function(t,e){t.exports=function(t,e){for(var o=-1,i=null==t?0:t.length,n=0,r=[];++o<i;){var a=t[o];e(a,o,t)&&(r[n++]=a)}return r}},function(t,e,o){var i=o(57),n=o(177),r=o(182);t.exports=function(t,e,o){var a=t.length;if(a<2)return a?r(t[0]):[];for(var s=-1,l=Array(a);++s<a;)for(var u=t[s],c=-1;++c<a;)c!=s&&(l[s]=i(l[s]||u,t[c],e,o));return r(n(l,1),e,o)}},function(t,e,o){var i=o(178),n=o(179);t.exports=function t(e,o,r,a,s){var l=-1,u=e.length;for(r||(r=n),s||(s=[]);++l<u;){var c=e[l];o>0&&r(c)?o>1?t(c,o-1,r,a,s):i(s,c):a||(s[s.length]=c)}return s}},function(t,e){t.exports=function(t,e){for(var o=-1,i=e.length,n=t.length;++o<i;)t[n+o]=e[o];return t}},function(t,e,o){var i=o(31),n=o(180),r=o(11),a=i?i.isConcatSpreadable:void 0;t.exports=function(t){return r(t)||n(t)||!!(a&&t&&t[a])}},function(t,e,o){var i=o(181),n=o(20),r=Object.prototype,a=r.hasOwnProperty,s=r.propertyIsEnumerable,l=i(function(){return arguments}())?i:function(t){return n(t)&&a.call(t,"callee")&&!s.call(t,"callee")};t.exports=l},function(t,e,o){var i=o(30),n=o(20);t.exports=function(t){return n(t)&&"[object Arguments]"==i(t)}},function(t,e,o){var i=o(33),n=o(34),r=o(35),a=o(37),s=o(183),l=o(63);t.exports=function(t,e,o){var u=-1,c=n,d=t.length,p=!0,f=[],h=f;if(o)p=!1,c=r;else if(d>=200){var g=e?null:s(t);if(g)return l(g);p=!1,c=a,h=new i}else h=e?[]:f;t:for(;++u<d;){var m=t[u],_=e?e(m):m;if(m=o||0!==m?m:0,p&&_==_){for(var y=h.length;y--;)if(h[y]===_)continue t;e&&h.push(_),f.push(m)}else c(h,_,o)||(h!==f&&h.push(_),f.push(m))}return f}},function(t,e,o){var i=o(184),n=o(62),r=o(63),a=i&&1/r(new i([,-0]))[1]==1/0?function(t){return new i(t)}:n;t.exports=a},function(t,e,o){var i=o(23)(o(19),"Set");t.exports=i},function(t,e,o){var i=o(36),n=o(186),r=o(38),a=o(187),s=r((function(t){var e=i(t,a);return e.length&&e[0]===t[0]?n(e):[]}));t.exports=s},function(t,e,o){var i=o(33),n=o(34),r=o(35),a=o(36),s=o(59),l=o(37),u=Math.min;t.exports=function(t,e,o){for(var c=o?r:n,d=t[0].length,p=t.length,f=p,h=Array(p),g=1/0,m=[];f--;){var _=t[f];f&&e&&(_=a(_,s(e))),g=u(_.length,g),h[f]=!o&&(e||d>=120&&_.length>=120)?new i(f&&_):void 0}_=t[0];var y=-1,v=h[0];t:for(;++y<d&&m.length<g;){var b=_[y],I=e?e(b):b;if(b=o||0!==b?b:0,!(v?l(v,I):c(m,I,o))){for(f=p;--f;){var S=h[f];if(!(S?l(S,I):c(t[f],I,o)))continue t}v&&v.push(I),m.push(b)}}return m}},function(t,e,o){var i=o(39);t.exports=function(t){return i(t)?t:[]}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return t+1}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),n=c(o(4)),r=c(o(11)),a=c(o(56)),s=c(o(190)),l=o(55),u=o(61);function c(t){return t&&t.__esModule?t:{default:t}}var d=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.store=e,this.registry=new s.default(e)}return i(t,[{key:"subscribeToStateChange",value:function(t){var e=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.handlerIds;(0,n.default)("function"==typeof t,"listener must be a function."),(0,n.default)(void 0===i||(0,r.default)(i),"handlerIds, when specified, must be an array of strings.");var a=this.store.getState().stateId,s=function(){var o=e.store.getState(),n=o.stateId;try{n===a||n===a+1&&!(0,u.areDirty)(o.dirtyHandlerIds,i)||t()}finally{a=n}};return this.store.subscribe(s)}},{key:"subscribeToOffsetChange",value:function(t){var e=this;(0,n.default)("function"==typeof t,"listener must be a function.");var o=this.store.getState().dragOffset;return this.store.subscribe((function(){var i=e.store.getState().dragOffset;i!==o&&(o=i,t())}))}},{key:"canDragSource",value:function(t){var e=this.registry.getSource(t);return(0,n.default)(e,"Expected to find a valid source."),!this.isDragging()&&e.canDrag(this,t)}},{key:"canDropOnTarget",value:function(t){var e=this.registry.getTarget(t);if((0,n.default)(e,"Expected to find a valid target."),!this.isDragging()||this.didDrop())return!1;var o=this.registry.getTargetType(t),i=this.getItemType();return(0,a.default)(o,i)&&e.canDrop(this,t)}},{key:"isDragging",value:function(){return Boolean(this.getItemType())}},{key:"isDraggingSource",value:function(t){var e=this.registry.getSource(t,!0);return(0,n.default)(e,"Expected to find a valid source."),!(!this.isDragging()||!this.isSourcePublic())&&this.registry.getSourceType(t)===this.getItemType()&&e.isDragging(this,t)}},{key:"isOverTarget",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1},o=e.shallow;if(!this.isDragging())return!1;var i=this.registry.getTargetType(t),n=this.getItemType();if(!(0,a.default)(i,n))return!1;var r=this.getTargetIds();if(!r.length)return!1;var s=r.indexOf(t);return o?s===r.length-1:s>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return this.store.getState().dragOperation.isSourcePublic}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return(0,l.getSourceClientOffset)(this.store.getState().dragOffset)}},{key:"getDifferenceFromInitialOffset",value:function(){return(0,l.getDifferenceFromInitialOffset)(this.store.getState().dragOffset)}}]),t}();e.default=d},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=c(o(4)),a=c(o(11)),s=c(o(191)),l=o(26),u=c(o(193));function c(t){return t&&t.__esModule?t:{default:t}}var d="SOURCE",p="TARGET";function f(t,e){e&&(0,a.default)(t)?t.forEach((function(t){return f(t,!1)})):(0,r.default)("string"==typeof t||"symbol"===(void 0===t?"undefined":n(t)),e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}function h(t){switch(t[0]){case"S":return d;case"T":return p;default:(0,r.default)(!1,"Cannot parse handler ID: "+t)}}var g=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.store=e,this.types={},this.handlers={},this.pinnedSourceId=null,this.pinnedSource=null}return i(t,[{key:"addSource",value:function(t,e){f(t),function(t){(0,r.default)("function"==typeof t.canDrag,"Expected canDrag to be a function."),(0,r.default)("function"==typeof t.beginDrag,"Expected beginDrag to be a function."),(0,r.default)("function"==typeof t.endDrag,"Expected endDrag to be a function.")}(e);var o=this.addHandler(d,t,e);return this.store.dispatch((0,l.addSource)(o)),o}},{key:"addTarget",value:function(t,e){f(t,!0),function(t){(0,r.default)("function"==typeof t.canDrop,"Expected canDrop to be a function."),(0,r.default)("function"==typeof t.hover,"Expected hover to be a function."),(0,r.default)("function"==typeof t.drop,"Expected beginDrag to be a function.")}(e);var o=this.addHandler(p,t,e);return this.store.dispatch((0,l.addTarget)(o)),o}},{key:"addHandler",value:function(t,e,o){var i=function(t){var e=(0,u.default)().toString();switch(t){case d:return"S"+e;case p:return"T"+e;default:(0,r.default)(!1,"Unknown role: "+t)}}(t);return this.types[i]=e,this.handlers[i]=o,i}},{key:"containsHandler",value:function(t){var e=this;return Object.keys(this.handlers).some((function(o){return e.handlers[o]===t}))}},{key:"getSource",value:function(t,e){return(0,r.default)(this.isSourceId(t),"Expected a valid source ID."),e&&t===this.pinnedSourceId?this.pinnedSource:this.handlers[t]}},{key:"getTarget",value:function(t){return(0,r.default)(this.isTargetId(t),"Expected a valid target ID."),this.handlers[t]}},{key:"getSourceType",value:function(t){return(0,r.default)(this.isSourceId(t),"Expected a valid source ID."),this.types[t]}},{key:"getTargetType",value:function(t){return(0,r.default)(this.isTargetId(t),"Expected a valid target ID."),this.types[t]}},{key:"isSourceId",value:function(t){return h(t)===d}},{key:"isTargetId",value:function(t){return h(t)===p}},{key:"removeSource",value:function(t){var e=this;(0,r.default)(this.getSource(t),"Expected an existing source."),this.store.dispatch((0,l.removeSource)(t)),(0,s.default)((function(){delete e.handlers[t],delete e.types[t]}))}},{key:"removeTarget",value:function(t){var e=this;(0,r.default)(this.getTarget(t),"Expected an existing target."),this.store.dispatch((0,l.removeTarget)(t)),(0,s.default)((function(){delete e.handlers[t],delete e.types[t]}))}},{key:"pinSource",value:function(t){var e=this.getSource(t);(0,r.default)(e,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=e}},{key:"unpinSource",value:function(){(0,r.default)(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}}]),t}();e.default=g},function(t,e,o){"use strict";var i=o(192),n=[],r=[],a=i.makeRequestCallFromTimer((function(){if(r.length)throw r.shift()}));function s(t){var e;(e=n.length?n.pop():new l).task=t,i(e)}function l(){this.task=null}t.exports=s,l.prototype.call=function(){try{this.task.call()}catch(t){s.onerror?s.onerror(t):(r.push(t),a())}finally{this.task=null,n[n.length]=this}}},function(t,e,o){"use strict";(function(e){function o(t){n.length||i(),n[n.length]=t}t.exports=o;var i,n=[],r=0;function a(){for(;r<n.length;){var t=r;if(r+=1,n[t].call(),r>1024){for(var e=0,o=n.length-r;e<o;e++)n[e]=n[e+r];n.length-=r,r=0}}n.length=0,r=0}var s,l,u,c=void 0!==e?e:self,d=c.MutationObserver||c.WebKitMutationObserver;function p(t){return function(){var e=setTimeout(i,0),o=setInterval(i,50);function i(){clearTimeout(e),clearInterval(o),t()}}}"function"==typeof d?(s=1,l=new d(a),u=document.createTextNode(""),l.observe(u,{characterData:!0}),i=function(){s=-s,u.data=s}):i=p(a),o.requestFlush=i,o.makeRequestCallFromTimer=p}).call(this,o(16))},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return i++};var i=0},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),n=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return i(t,[{key:"canDrag",value:function(){return!0}},{key:"isDragging",value:function(t,e){return e===t.getSourceId()}},{key:"endDrag",value:function(){}}]),t}();e.default=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),n=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return i(t,[{key:"canDrop",value:function(){return!0}},{key:"hover",value:function(){}},{key:"drop",value:function(){}}]),t}();e.default=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();e.default=function(t){return new a(t)};var n,r=(n=o(62))&&n.__esModule?n:{default:n},a=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.actions=e.getActions()}return i(t,[{key:"setup",value:function(){this.didCallSetup=!0}},{key:"teardown",value:function(){this.didCallTeardown=!0}},{key:"connectDragSource",value:function(){return r.default}},{key:"connectDragPreview",value:function(){return r.default}},{key:"connectDropTarget",value:function(){return r.default}},{key:"simulateBeginDrag",value:function(t,e){this.actions.beginDrag(t,e)}},{key:"simulatePublishDragSource",value:function(){this.actions.publishDragSource()}},{key:"simulateHover",value:function(t,e){this.actions.hover(t,e)}},{key:"simulateDrop",value:function(){this.actions.drop()}},{key:"simulateEndDrag",value:function(){this.actions.endDrag()}}]),t}()},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i,n,r,a=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),s=o(0),l=(r=o(18))&&r.__esModule?r:{default:r},u=o(54),c=(n=i=function(t){function e(t,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,o));return i.backend=(0,u.unpackBackendForEs5Users)(t.backend),i.childContext=(0,u.createChildContext)(i.backend,{window:t&&t.window?t.window:o&&o.window?o.window:"undefined"!=typeof window?window:void 0}),i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),a(e,[{key:"componentWillReceiveProps",value:function(t){if(t.backend!==this.props.backend||t.window!==this.props.window)throw new Error("DragDropContextProvider backend and window props must not change.")}},{key:"getChildContext",value:function(){return this.childContext}},{key:"render",value:function(){return s.Children.only(this.props.children)}}]),e}(s.Component),i.propTypes={backend:l.default.oneOfType([l.default.func,l.default.object]).isRequired,children:l.default.element.isRequired,window:l.default.object},i.defaultProps={window:void 0},i.childContextTypes=u.CHILD_CONTEXT_TYPES,i.displayName="DragDropContextProvider",i.contextTypes={window:l.default.object},n);e.default=c},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(t[i]=o[i])}return t},n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return h.default.apply(void 0,["DragLayer","collect[, options]"].concat(Array.prototype.slice.call(arguments))),(0,d.default)("function"==typeof t,'Expected "collect" provided as the first argument to DragLayer to be a function that collects props to inject into the component. ',"Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-layer.html",t),(0,d.default)((0,c.default)(e),'Expected "options" provided as the second argument to DragLayer to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-layer.html',e),function(o){var c,h,g=e.arePropsEqual,v=void 0===g?f.default:g,b=o.displayName||o.name||"Component",I=(h=c=function(e){function a(t,e){m(this,a);var o=_(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,t));return o.handleChange=o.handleChange.bind(o),o.manager=e.dragDropManager,(0,d.default)("object"===n(o.manager),"Could not find the drag and drop manager in the context of %s. Make sure to wrap the top-level component of your app with DragDropContext. Read more: http://react-dnd.github.io/react-dnd/docs-troubleshooting.html#could-not-find-the-drag-and-drop-manager-in-the-context",b,b),o.state=o.getCurrentState(),o}return y(a,e),r(a,[{key:"getDecoratedComponentInstance",value:function(){return(0,d.default)(this.child,"In order to access an instance of the decorated component it can not be a stateless component."),this.child}},{key:"shouldComponentUpdate",value:function(t,e){return!v(t,this.props)||!(0,p.default)(e,this.state)}}]),r(a,[{key:"componentDidMount",value:function(){this.isCurrentlyMounted=!0;var t=this.manager.getMonitor();this.unsubscribeFromOffsetChange=t.subscribeToOffsetChange(this.handleChange),this.unsubscribeFromStateChange=t.subscribeToStateChange(this.handleChange),this.handleChange()}},{key:"componentWillUnmount",value:function(){this.isCurrentlyMounted=!1,this.unsubscribeFromOffsetChange(),this.unsubscribeFromStateChange()}},{key:"handleChange",value:function(){if(this.isCurrentlyMounted){var t=this.getCurrentState();(0,p.default)(t,this.state)||this.setState(t)}}},{key:"getCurrentState",value:function(){var e=this.manager.getMonitor();return t(e)}},{key:"render",value:function(){var t=this;return s.default.createElement(o,i({},this.props,this.state,{ref:function(e){t.child=e}}))}}]),a}(a.Component),c.DecoratedComponent=o,c.displayName="DragLayer("+b+")",c.contextTypes={dragDropManager:l.default.object.isRequired},h);return(0,u.default)(I,o)}};var a=o(0),s=g(a),l=g(o(18)),u=g(o(40)),c=g(o(8)),d=g(o(4)),p=g(o(41)),f=g(o(64)),h=g(o(27));function g(t){return t&&t.__esModule?t:{default:t}}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function y(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,o){var p=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};r.default.apply(void 0,["DragSource","type, spec, collect[, options]"].concat(Array.prototype.slice.call(arguments)));var f=t;"function"!=typeof t&&((0,i.default)((0,d.default)(t),'Expected "type" provided as the first argument to DragSource to be a string, or a function that returns a string given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html',t),f=function(){return t}),(0,i.default)((0,n.default)(e),'Expected "spec" provided as the second argument to DragSource to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html',e);var h=(0,l.default)(e);return(0,i.default)("function"==typeof o,'Expected "collect" provided as the third argument to DragSource to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html',o),(0,i.default)((0,n.default)(p),'Expected "options" provided as the fourth argument to DragSource to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html',o),function(t){return(0,a.default)({connectBackend:function(t,e){return t.connectDragSource(e)},containerDisplayName:"DragSource",createHandler:h,registerHandler:s.default,createMonitor:u.default,createConnector:c.default,DecoratedComponent:t,getType:f,collect:o,options:p})}};var i=p(o(4)),n=p(o(8)),r=p(o(27)),a=p(o(65)),s=p(o(204)),l=p(o(205)),u=p(o(206)),c=p(o(207)),d=p(o(68));function p(t){return t&&t.__esModule?t:{default:t}}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var n=i(o(42));e.isDisposable=n.default;var r=i(o(201));e.Disposable=r.default;var a=i(o(202));e.CompositeDisposable=a.default;var s=i(o(203));e.SerialDisposable=s.default},function(t,e,o){"use strict";e.__esModule=!0;var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),n=function(){},r=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.isDisposed=!1,this.action=e||n}return i(t,null,[{key:"empty",value:{dispose:n},enumerable:!0}]),t.prototype.dispose=function(){this.isDisposed||(this.action.call(null),this.isDisposed=!0)},t}();e.default=r,t.exports=e.default},function(t,e,o){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var n,r=(n=o(42))&&n.__esModule?n:{default:n},a=function(){function t(){for(var e=arguments.length,o=Array(e),n=0;n<e;n++)o[n]=arguments[n];i(this,t),Array.isArray(o[0])&&1===o.length&&(o=o[0]);for(var a=0;a<o.length;a++)if(!r.default(o[a]))throw new Error("Expected a disposable");this.disposables=o,this.isDisposed=!1}return t.prototype.add=function(t){this.isDisposed?t.dispose():this.disposables.push(t)},t.prototype.remove=function(t){if(this.isDisposed)return!1;var e=this.disposables.indexOf(t);return-1!==e&&(this.disposables.splice(e,1),t.dispose(),!0)},t.prototype.dispose=function(){if(!this.isDisposed){for(var t=this.disposables.length,e=new Array(t),o=0;o<t;o++)e[o]=this.disposables[o];for(this.isDisposed=!0,this.disposables=[],this.length=0,o=0;o<t;o++)e[o].dispose()}},t}();e.default=a,t.exports=e.default},function(t,e,o){"use strict";e.__esModule=!0;var i,n=(i=o(42))&&i.__esModule?i:{default:i},r=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.isDisposed=!1,this.current=null}return t.prototype.getDisposable=function(){return this.current},t.prototype.setDisposable=function(){var t=arguments.length<=0||void 0===arguments[0]?null:arguments[0];if(null!=t&&!n.default(t))throw new Error("Expected either an empty value or a valid disposable");var e=this.isDisposed,o=void 0;e||(o=this.current,this.current=t),o&&o.dispose(),e&&t&&t.dispose()},t.prototype.dispose=function(){if(!this.isDisposed){this.isDisposed=!0;var t=this.current;this.current=null,t&&t.dispose()}},t}();e.default=r,t.exports=e.default},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,o){var i=o.getRegistry(),n=i.addSource(t,e);return{handlerId:n,unregister:function(){i.removeSource(n)}}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();e.default=function(t){Object.keys(t).forEach((function(e){(0,n.default)(a.indexOf(e)>-1,'Expected the drag source specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html',a.join(", "),e),(0,n.default)("function"==typeof t[e],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html",e,e,t[e])})),s.forEach((function(e){(0,n.default)("function"==typeof t[e],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html",e,e,t[e])}));var e=function(){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this.monitor=t,this.props=null,this.component=null}return i(e,[{key:"receiveProps",value:function(t){this.props=t}},{key:"receiveComponent",value:function(t){this.component=t}},{key:"canDrag",value:function(){return!t.canDrag||t.canDrag(this.props,this.monitor)}},{key:"isDragging",value:function(e,o){return t.isDragging?t.isDragging(this.props,this.monitor):o===e.getSourceId()}},{key:"beginDrag",value:function(){return t.beginDrag(this.props,this.monitor,this.component)}},{key:"endDrag",value:function(){t.endDrag&&t.endDrag(this.props,this.monitor,this.component)}}]),e}();return function(t){return new e(t)}};var n=r(o(4));function r(t){return t&&t.__esModule?t:{default:t}}r(o(8));var a=["canDrag","beginDrag","isDragging","endDrag"],s=["beginDrag"]},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();e.default=function(t){return new l(t)};var n,r=(n=o(4))&&n.__esModule?n:{default:n},a=!1,s=!1,l=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.internalMonitor=e.getMonitor()}return i(t,[{key:"receiveHandlerId",value:function(t){this.sourceId=t}},{key:"canDrag",value:function(){(0,r.default)(!a,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source-monitor.html");try{return a=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{a=!1}}},{key:"isDragging",value:function(){(0,r.default)(!s,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source-monitor.html");try{return s=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{s=!1}}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}]),t}()},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=void 0,o=void 0,r=void 0,a=void 0,s=void 0,l=void 0,u=void 0;function c(){a&&(a(),a=null),e&&o&&(a=t.connectDragSource(e,o,r))}function d(){u&&(u(),u=null),e&&s&&(u=t.connectDragPreview(e,s,l))}return{receiveHandlerId:function(t){t!==e&&(e=t,c(),d())},hooks:(0,i.default)({dragSource:function(t,e){t===o&&(0,n.default)(e,r)||(o=t,r=e,c())},dragPreview:function(t,e){t===s&&(0,n.default)(e,l)||(s=t,l=e,d())}})}};var i=r(o(66)),n=r(o(67));function r(t){return t&&t.__esModule?t:{default:t}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var o=t.ref;return(0,n.default)("string"!=typeof o,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute"),o?(0,r.cloneElement)(t,{ref:function(t){e(t),o&&o(t)}}):(0,r.cloneElement)(t,{ref:e})};var i,n=(i=o(4))&&i.__esModule?i:{default:i},r=o(0)},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,o){var p=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};r.default.apply(void 0,["DropTarget","type, spec, collect[, options]"].concat(Array.prototype.slice.call(arguments)));var f=t;"function"!=typeof t&&((0,i.default)((0,d.default)(t,!0),'Expected "type" provided as the first argument to DropTarget to be a string, an array of strings, or a function that returns either given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html',t),f=function(){return t}),(0,i.default)((0,n.default)(e),'Expected "spec" provided as the second argument to DropTarget to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html',e);var h=(0,l.default)(e);return(0,i.default)("function"==typeof o,'Expected "collect" provided as the third argument to DropTarget to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html',o),(0,i.default)((0,n.default)(p),'Expected "options" provided as the fourth argument to DropTarget to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html',o),function(t){return(0,a.default)({connectBackend:function(t,e){return t.connectDropTarget(e)},containerDisplayName:"DropTarget",createHandler:h,registerHandler:s.default,createMonitor:u.default,createConnector:c.default,DecoratedComponent:t,getType:f,collect:o,options:p})}};var i=p(o(4)),n=p(o(8)),r=p(o(27)),a=p(o(65)),s=p(o(210)),l=p(o(211)),u=p(o(212)),c=p(o(213)),d=p(o(68));function p(t){return t&&t.__esModule?t:{default:t}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,o){var i=o.getRegistry(),n=i.addTarget(t,e);return{handlerId:n,unregister:function(){i.removeTarget(n)}}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();e.default=function(t){Object.keys(t).forEach((function(e){(0,n.default)(a.indexOf(e)>-1,'Expected the drop target specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html',a.join(", "),e),(0,n.default)("function"==typeof t[e],"Expected %s in the drop target specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html",e,e,t[e])}));var e=function(){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this.monitor=t,this.props=null,this.component=null}return i(e,[{key:"receiveProps",value:function(t){this.props=t}},{key:"receiveMonitor",value:function(t){this.monitor=t}},{key:"receiveComponent",value:function(t){this.component=t}},{key:"canDrop",value:function(){return!t.canDrop||t.canDrop(this.props,this.monitor)}},{key:"hover",value:function(){t.hover&&t.hover(this.props,this.monitor,this.component)}},{key:"drop",value:function(){if(t.drop)return t.drop(this.props,this.monitor,this.component)}}]),e}();return function(t){return new e(t)}};var n=r(o(4));function r(t){return t&&t.__esModule?t:{default:t}}r(o(8));var a=["canDrop","hover","drop"]},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();e.default=function(t){return new s(t)};var n,r=(n=o(4))&&n.__esModule?n:{default:n},a=!1,s=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.internalMonitor=e.getMonitor()}return i(t,[{key:"receiveHandlerId",value:function(t){this.targetId=t}},{key:"canDrop",value:function(){(0,r.default)(!a,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target-monitor.html");try{return a=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{a=!1}}},{key:"isOver",value:function(t){return this.internalMonitor.isOverTarget(this.targetId,t)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}]),t}()},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=void 0,o=void 0,r=void 0,a=void 0;function s(){a&&(a(),a=null),e&&o&&(a=t.connectDropTarget(e,o,r))}return{receiveHandlerId:function(t){t!==e&&(e=t,s())},hooks:(0,i.default)({dropTarget:function(t,e){t===o&&(0,n.default)(e,r)||(o=t,r=e,s())}})}};var i=r(o(66)),n=r(o(67));function r(t){return t&&t.__esModule?t:{default:t}}},function(t,e,o){"use strict";var i,n=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),r=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}(o(0)),s=o(3),l=o(7),u=r(o(215)),c=r(o(69)),d=r(o(220)),p=r(o(221)),f=r(o(1)),h=r(o(70)),g=r(o(10)),m=o(17),_=o(2);o(223);var y=["GT","GTE","LT","LTE"],v=function(t){function e(e,o){var i=t.call(this,e,o)||this;return i.nodeRef=a.default.createRef(),i}return n(e,t),e.prototype.componentDidUpdate=function(){return this._updateComponent()},e.prototype.componentDidMount=function(){return this._updateComponent()},e.prototype.render=function(){var t=this.props,e=t.removeRule,o=t.onRowMove,i=t.ruleIndex,n=t.ruleModel,r=t.uiContext,s=t.scale,y=t.colorPickerModel,v=h.default.getIconDefinitions(r.getIcons()),b=n.hasOperator&&n.hasEndCondition,I=b?n.getEndCondition().conditionType:"",S=b?n.endConditionValue:null,C=!this._supportRangeCondition(n.getStartCondition().conditionType),E=n.getFillHexColor()||f.default.get("conditionalFormattingNoColor");return a.default.createElement(_.ExpandableTile,{initialExpanded:!1,className:_.classnames("vis-cf-rules-listItem","vis-cf-rules-listitem-"+i,{expanded:!1}),label:n.getExpand()?null:a.default.createElement(d.default,{label:n.label,fontColor:n.getTextHexColor(),backgroundColor:g.default.getRgbaColorFromHexColor(n.getFillHexColor(),this.props.backgroundOpacity),pattern:n.getFillPattern(),onRowMove:o,ruleIndex:i,selectedIcon:n.hasShape?h.default.getShapeDefinition(r.getIcons(),n.getShape()):"",icons:r.getIcons()}),maxWidth:"100%",onChange:function(t){n.setExpand("RuleComponent",i,t)},ref:this.nodeRef},a.default.createElement(_.FlexLayout,{direction:"column",className:_.classnames("vis-cf-expand-content")},a.default.createElement(_.FlexItem,null,a.default.createElement(_.Label,{label:f.default.get("conditionalFormattingIfValueIs"),style:{fontWeight:"bold",fontSize:"14px"}})),a.default.createElement(p.default,{classPrefix:"start",type:n.getStartCondition().conditionType,value:n.startConditionValue,onTypeChange:function(t){n.setStartType(i,t),n.dropDownValues.includes(t)||n.setOperator(i,l.RangeOperators.none)},valueOnChange:function(t){n.setStartValue(i,t)},scale:s,options:n.getStartConditionOptions(),uiContext:r}),a.default.createElement(_.FlexItem,{className:_.classnames("vis-cf-checkbox-container")},a.default.createElement(_.Checkbox,{className:_.classnames(n.hasOperator?"vis-cf-checkbox-checked":"vis-cf-checkbox-not-checked"),name:"operator-"+i,label:f.default.get("conditionalFormattingAND"),align:"left",disabled:C,checked:n.hasOperator,onChange:function(t){t?n.setOperator(i,l.RangeOperators.and):n.setOperator(i,l.RangeOperators.none)}})),n.hasOperator?a.default.createElement(p.default,{classPrefix:"end",type:I,value:S,onTypeChange:function(t){n.setEndType(i,t)},valueOnChange:function(t){n.setEndValue(i,t)},scale:s,options:n.getEndConditionOptions(),uiContext:r}):null,a.default.createElement(_.FlexItem,null,a.default.createElement(_.Label,{label:f.default.get("conditionalFormattingRuleStyle"),style:{fontWeight:"bold",fontSize:"14px",marginTop:"24px",marginBottom:"16px"}})),a.default.createElement(_.FlexLayout,{direction:"row",className:_.classnames("vis-cf-style-item-container"),maxWidth:"unset"},a.default.createElement(_.Label,{label:f.default.get("conditionalFormattingTextColor"),style:{fontSize:"14px"}}),a.default.createElement(_.FlexLayout,{direction:"row",className:_.classnames("vis-cf-rule-picker-container","rule-color-picker-container")},a.default.createElement(_.Label,{label:n.hasTextHexColor?n.getTextHexColor():f.default.get("conditionalFormattingNoColor"),style:{fontSize:"14px",paddingRight:"5px"}}),a.default.createElement(c.default,{onColorSelected:this._onColorSelected.bind(this,i,!0),className:_.classnames("vis-cf-rule-picker",{"vis-cf-not-selected":!n.hasTextHexColor}),orientation:"bottom",selectedColor:{fill:n.getTextHexColor()},uiContext:r,colorPickerModel:y}))),!r.isKpiVis()&&a.default.createElement(_.FlexLayout,{direction:"row",className:_.classnames("vis-cf-style-item-container"),maxWidth:"unset"},a.default.createElement(_.Label,{label:f.default.get("conditionalFormattingFillColor"),style:{fontSize:"14px"}}),a.default.createElement(_.FlexLayout,{direction:"row",className:_.classnames("vis-cf-rule-picker-container","rule-color-picker-container")},a.default.createElement(_.Label,{label:E,style:{fontSize:"14px",paddingRight:"5px"}}),a.default.createElement(c.default,{onColorSelected:this._onColorSelected.bind(this,i,!1),className:_.classnames("vis-cf-rule-picker",{"vis-cf-not-selected":!n.hasFillColor}),orientation:"bottom",selectedColor:{color:n.getTextHexColor(),fill:n.getFillHexColor()},uiContext:r,hasDefaultFillColor:!0,colorPickerModel:y}))),a.default.createElement(_.FlexLayout,{direction:"row",className:_.classnames("vis-cf-style-item-container"),maxWidth:"unset"},a.default.createElement(_.Label,{label:f.default.get("conditionalFormattingShape"),style:{fontSize:"14px",alignSelf:"center"}}),a.default.createElement(_.FlexLayout,{direction:"row",className:_.classnames("vis-cf-rule-picker-container","vis-cf-rule-shape-picker-container")},a.default.createElement(_.Label,{label:n.hasShape?h.default.getShapeDefinition(r.getIcons(),n.getShape()).label:f.default.get("conditionalFormattingIconNone"),style:{fontSize:"14px",paddingRight:"5px"}}),a.default.createElement(u.default,{onIconSelected:function(t){return n.setShape(i,t.shapeId)},className:_.classnames("vis-cf-rule-picker","vis-cf-icon-picker",{"vis-cf-not-selected":!n.hasShape}),orientation:"bottom",icons:v,selectedIcon:n.hasShape?h.default.getShapeDefinition(r.getIcons(),n.getShape()):""}))),a.default.createElement(_.FlexItem,{alignSelf:"flex-end",className:"vis-cf-delete-rule-container"},a.default.createElement(_.Button,{className:_.classnames("vis-cf-delete-rule-button"),iconRight:r.getIcons().getIcon("TrashIcon"),size:"small",button:!1,tabIndex:0,focusable:!0,label:f.default.get("conditionalFormattingDeleteRule"),onClick:function(){return e(i)},onKeyDown:function(t){t.keyCode!==m.KeyCodes.ENTER&&t.keyCode!==m.KeyCodes.SPACE||(e(i),t.preventDefault())}}))))},e.prototype.expandExpandableTile=function(){var t=this.props.ruleModel,e=this.nodeRef.current;t.getExpand()&&e&&setTimeout((function(){e.setState({expanded:!e.state.expanded,showFocusClass:!1}),setTimeout((function(){e.setState({expanded:!e.state.expanded,showFocusClass:!1})}),0)}),0)},e.prototype.collapseExpandableTile=function(){var t=this.nodeRef.current;t&&t.state.expanded&&t.setState({expanded:!t.state.expanded,showFocusClass:!1})},e.prototype.updateExpansionStateWhenPropertiesPanelMounted=function(){var t=this.props.ruleModel,e=this.nodeRef.current;t.getExpand()&&e&&!e.state.expanded&&e.setState({expanded:!e.state.expanded,showFocusClass:!1})},e.prototype._onColorSelected=function(t,e,o){var i=this;return this._loadColors().then((function(n){var r=n[0],a=i.props,s=a.ruleModel,l=a.uiContext,u=g.default.getOrCreateColorIdFromHexColor(l.getColors(),r,o);e?(i._setColors(s,e,o),s.setTextColor(t,u)):(i._setColors(s,e,o),s.setFillColor(t,u))}))},e.prototype._setColors=function(t,e,o){e?t.setTextHexColor(o.pattern?o.fill:o):(t.setFillHexColor(o.pattern?o.color:o),t.setFillPattern(o.pattern))},e.prototype._loadColors=function(){return function(t,e,o,i){return new(o||(o=Promise))((function(n,r){function a(t){try{l(i.next(t))}catch(t){r(t)}}function s(t){try{l(i.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?n(t.value):(e=t.value,e instanceof o?e:new o((function(t){t(e)}))).then(a,s)}l((i=i.apply(t,e||[])).next())}))}(this,void 0,void 0,(function(){var t,e,o;return function(t,e){var o,i,n,r,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,i&&(n=2&r[0]?i.return:r[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,r[1])).done)return n;switch(i=0,n&&(r=[2&r[0],n.value]),r[0]){case 0:case 1:n=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!((n=(n=a.trys).length>0&&n[n.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!n||r[1]>n[0]&&r[1]<n[3])){a.label=r[1];break}if(6===r[0]&&a.label<n[1]){a.label=n[1],n=r;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(r);break}n[2]&&a.ops.pop(),a.trys.pop();continue}r=e.call(t,a)}catch(t){r=[6,t],i=0}finally{o=n=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}}(this,(function(i){return t=this.props,e=t.uiContext,o=t.paletteId,[2,e.getColorPalette(o).then((function(t){return[t]}))]}))}))},e.prototype._updateColors=function(){var t=this;return this._loadColors().then((function(e){var o,i,n,r=e[0],a=t.props,s=a.ruleModel,l=a.uiContext,u=g.default.getHexColorOrFillFromColorId(l.getColors(),r,s.getTextColor());u&&(i=u,u.pattern&&(o=u.pattern,i=u.color)),l.isKpiVis()||(u=g.default.getHexColorOrFillFromColorId(l.getColors(),r,s.getFillColor()))&&(u.pattern?(o=u.pattern,n=u.fill):n=u),s.setTextHexColor(i),s.setFillHexColor(n),s.setFillPattern(o)}))},e.prototype._supportRangeCondition=function(t){return y.includes(t)},e.prototype._updateComponent=function(){var t=this;return this._updateColors().then((function(){var e=t.props.ruleModel,o=t.nodeRef.current;return o?new Promise((function(t){setTimeout((function(){o.setState({expanded:e.getExpand(),showFocusClass:!1}),t()}),0)})):Promise.resolve()}))},e}(a.Component);e.default=s.observer(v)},function(t,e,o){"use strict";var i,n=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),r=function(){return(r=Object.assign||function(t){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}(o(0)),s=o(3),l=o(2),u=o(17);o(216);var c=l.lodash.uniqueId,d=function(t){function e(e){var o=t.call(this,e)||this;return o.state={open:!1},o.attachRef=a.default.createRef(),o}return n(e,t),e.prototype.render=function(){var t=this,e=this.state.open,o=this.props,i=o.icons,n=o.className,s=o.style,u=o.flyoutExtraOptions,d=o.selectedIcon,p=void 0===d?"":d,f=this.props.orientation;return void 0===f&&(f="rtl"===document.body.dir?"bottomLeft":"bottomRight"),a.default.createElement("div",{className:"vis-cf-iconpicker "+n,ref:this.attachRef,style:s},a.default.createElement(l.SVGIcon,{tabIndex:0,size:"small",className:"vis-cf-svgIcon",iconId:p.iconId,onClick:this._handleClose.bind(this),onKeyDown:function(e){return t._handleKey(e)}}),e&&a.default.createElement(l.Flyout,r({id:c("icon-picker__")+"-flyout","data-tid":"icon-picker__flyout"},u,{"aria-hidden":e,placement:f,domNodeToAttachTo:this.attachRef.current,hideArrow:!0,offset:2,onClose:this._handleClose.bind(this),className:"vis-cf-iconpicker__flyout"}),i.map(this._displayIcon.bind(this))))},e.prototype._displayIcon=function(t,e){var o=this,i="none"===t.shapeId,n=i?"vis-cf-iconpicker__text":"vis-cf-iconpicker__cell";return a.default.createElement("div",{key:e,tabIndex:0,className:n,onClick:function(){return o._handleSelect(t)},onKeyDown:function(e){return o._handleKey(e,t)},title:t.label},!i&&a.default.createElement(l.SVGIcon,{iconId:t.iconId,alt:t.label,ariaLabelledby:c("icon-picker-svg"),verticalAlign:"inherit"}),i&&t.label)},e.prototype._handleClose=function(){this.setState({open:!this.state.open})},e.prototype._handleSelect=function(t){this.props.onIconSelected&&this.props.onIconSelected(t),this.setState({open:!1})},e.prototype._handleKey=function(t,e){t.keyCode!==u.KeyCodes.ENTER&&t.keyCode!==u.KeyCodes.SPACE||(e?this._handleSelect(e):this._handleClose(),t.preventDefault())},e}(a.Component);e.default=s.observer(d)},function(t,e,o){var i=o(5),n=o(217);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[t.i,n,""]]);i(n,{insert:"head",singleton:!1}),t.exports=n.locals||{}},function(t,e,o){(e=o(6)(!1)).push([t.i,".vis-cf-iconpicker{position:relative}.vis-cf-iconpicker__flyout{padding:0.3em;width:110px;flex-wrap:wrap;display:flex;justify-content:flex-start;-ms-high-contrast-adjust:none}.vis-cf-iconpicker__cell{display:inline-block;width:16px;height:16px;margin:8px}.vis-cf-iconpicker__cell:hover{cursor:pointer}.vis-cf-iconpicker__text{width:100%;height:100%;text-align:center}.vis-cf-iconpicker__text:hover{cursor:pointer}\n",""]),t.exports=e},function(t,e,o){var i=o(5),n=o(219);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[t.i,n,""]]);i(n,{insert:"head",singleton:!1}),t.exports=n.locals||{}},function(t,e,o){(e=o(6)(!1)).push([t.i,".vis-cf-colorPicker{position:relative}.vis-cf-colorPicker__flyout{padding:0.3em;width:180px;flex-wrap:wrap;display:flex;justify-content:flex-start;-ms-high-contrast-adjust:none}.vis-cf-colorPicker-paletteColor__colorOptions,.vis-cf-colorPicker-favoriteColor__colorOptions{display:inline-block;width:16px;height:16px;margin:2px}.vis-cf-colorPicker-paletteColor__colorOptions:hover,.vis-cf-colorPicker-favoriteColor__colorOptions:hover{cursor:pointer}.vis-cf-colorPicker-paletteColor__colorOptions:not(.vis-cf-not-selected),.vis-cf-colorPicker-favoriteColor__colorOptions:not(.vis-cf-not-selected){background-image:repeating-linear-gradient(135deg, #fff 0%, #fff 48%, red 50%, #fff 52%, #fff 100%)}.vis-cf-colorPickerContainer{width:100%}.vis-cf-colorPickerContainer .vis-cf-paletteColorContainer,.vis-cf-colorPickerContainer .vis-cf-favoriteColorContainer{padding:8px}.vis-cf-colorPickerContainer .vis-cf-paletteColorContainer .vis-cf-ColorOptionsContainer,.vis-cf-colorPickerContainer .vis-cf-favoriteColorContainer .vis-cf-ColorOptionsContainer{flex-wrap:wrap}.vis-cf-colorPickerContainer .vis-cf-customColorContainer{padding:8px;text-align:center}.vis-cf-colorPickerContainer .vis-cf-customColorContainer .vis-cf-customColor{font-size:.875rem;color:#0f62fe;color:hsla(var(--interactive-01-h, 219.16318), var(--interactive-01-s, 99.17012%), var(--interactive-01-l, 52.7451%), 1)}.vis-cf-paletteColorLabel,.vis-cf-favoriteColorLabel{font-size:.875rem;font-weight:600;color:#161616;color:hsla(var(--text-01-h, 0), var(--text-01-s, 0%), var(--text-01-l, 8.62745%), 1)}\n",""]),t.exports=e},function(t,e,o){"use strict";var i,n=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),r=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var a=o(3),s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}(o(0)),l=o(2),u=o(14),c=o(53),d=r(o(1)),p=r(o(10)),f=function(t){function e(e){var o=t.call(this,e)||this;return o.multiLineNodeRef=s.default.createRef(),o}return n(e,t),e.prototype.componentDidUpdate=function(){this.multiLineNodeRef.current&&this.multiLineNodeRef.current.setState({truncatedText:this._getLabel()})},e.prototype.render=function(){var t=this.props,e=t.connectDragSource,o=t.fontColor,i=t.selectedIcon,n=t.icons,r=t.backgroundColor,a=p.default.getColorStyle(o,r||"white",null);return s.default.createElement(l.FlexLayout,{direction:"row",className:l.classnames("vis-cf-unexpanded-rule"),ref:function(t){var o=u.findDOMNode(t);e(o)}},s.default.createElement(l.FlexItem,{className:"vis-cf-drag-handler"},s.default.createElement(l.SVGIcon,{icon:n.getIcon("draggable_16"),size:"normal",verticalAlign:"middle",focusable:!0,ariaLabelledby:d.default.get("conditionalFormattingMove")})),s.default.createElement(l.FlexItem,{className:"vis-cf-rule-label"},s.default.createElement(l.Multilinetruncatedtext,{ref:this.multiLineNodeRef,value:this._getLabel(),style:{fontWeight:"bold",width:"100%","letter-spacing":"-0.01px"},numLines:3})),s.default.createElement(l.FlexItem,{className:"vis-cf-rule-value",style:a},s.default.createElement(l.Label,{label:"123",ellipsis:!0,style:{color:o}}),i&&s.default.createElement(l.SVGIcon,{iconId:i.iconId,verticalAlign:"middle",focusable:!1,style:{color:o}})))},e.prototype._getLabel=function(){var t=this.props.label;return t&&t.length?t:d.default.get("conditionalFormattingInvalidRule")},e}(s.Component),h=a.observer(f),g=c.DragSource("Rules",{beginDrag:function(t){return{ruleIndex:t.ruleIndex}},endDrag:function(t,e){if(e.didDrop()){var o=e.getDropResult();if(!t||!o)return;var i=o.currentIndex,n=o.newIndex;i>n?t.onRowMove(i,n):i<n&&t.onRowMove(i,n-1)}}},(function(t){return{connectDragSource:t.dragSource()}}))(h);e.default=g},function(t,e,o){"use strict";var i,n=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),r=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var a=o(3),s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}(o(0)),l=o(2),u=r(o(1)),c=r(o(222)),d=function(t){function e(e){var o=t.call(this,e)||this;return o.nodeRef=s.default.createRef(),o}return n(e,t),e.prototype.componentDidUpdate=function(){if(this.nodeRef.current){var t=this.props.options,e=this._getSelectedValue(),o={currentValues:t,inputValue:e?e.label:""};this.nodeRef.current.setState(o)}},e.prototype.render=function(){var t=this.props,e=t.classPrefix,o=t.options,i=t.valueOnChange,n=t.onTypeChange,r=t.value,a=t.type,d=void 0===a?null:a,p=t.scale,f=t.uiContext;return s.default.createElement(l.FlexLayout,{direction:"column"},s.default.createElement(l.FlexItem,{className:l.classnames("vis-cf-"+e+"-value-combobox")},s.default.createElement(l.ComboBox,{ref:this.nodeRef,type:"text",startingValues:o,selectedValue:this._getSelectedValue(),placeholder:u.default.get("conditionalFormattingSelectRule"),customWidth:"100%",onChange:function(t){t.value!==d&&n(t.value)}})),s.default.createElement(l.FlexItem,{className:l.classnames("vis-cf-"+e+"-value-numberinput")},s.default.createElement(c.default,{scale:p,value:r,valueOnChange:i,uiContext:f,type:d})))},e.prototype._getSelectedValue=function(){var t,e=this.props,o=e.options,i=e.type;return i&&i.length&&(t=o.map((function(t){return t.value})).includes(i)?i:null),t?{value:t,label:t?u.default.get("conditionalFormatting"+t):""}:void 0},e}(s.Component);e.default=a.observer(d)},function(t,e,o){"use strict";var i,n=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}(o(0)),a=o(3),s=o(2),l=o(7),u=function(t){return t&&t.__esModule?t:{default:t}}(o(1)),c=function(t){function e(e,o){var i=t.call(this,e,o)||this,n=i.props.value;return i.state={valueToValidate:n},i}return n(e,t),e.prototype.render=function(){var t=this,e=this.props,o=e.scale,i=e.value,n=this.state,a=n.valueToValidate,u=n.invalidValue||i,c=o===l.RULE_SCALES.PERCENTAGE?"is-percentage":"is-numeric";return r.default.createElement(s.TextInput,{className:c,style:{backgroundColor:"white"},placeholder:"",value:u,validationErrorText:this._getValidatitionaErrorText(a),hasValidationError:!this._isValidInput(a),onBlur:this._onBlur.bind(this),onValueChange:function(e){return t.setState({valueToValidate:e})},onValueAccept:function(e){t._getValidatitionaErrorText(e)?t.setState({valueToValidate:void 0,invalidValue:e}):e!==t.props.value&&t._saveEnteredValueToContentModelValue(e)}})},e.prototype._onBlur=function(t){var e=this.props.value,o=t.target.value;o!==e&&(this._isValidInput(o)?this._saveEnteredValueToContentModelValue(o):this.setState({valueToValidate:e,invalidValue:void 0}))},e.prototype._saveEnteredValueToContentModelValue=function(t){var e=this.props,o=e.valueOnChange,i=e.uiContext;this.setState({invalidValue:void 0}),o(i.getNumberFromFormattedValue(t))},e.prototype._isValidInput=function(t){var e=this.props.uiContext,o=!0;if(t&&t.length){var i=e.getNumberFromFormattedValue(t);o=isNaN(i)||this._isInvalidType(i)}return!o},e.prototype._getValidatitionaErrorText=function(t){var e=this.props.type;return this._isValidInput(t)?null:e===l.CONDITION_TYPES.IT||e===l.CONDITION_TYPES.IB?u.default.get("conditionalFormattingInvalidRuleConditionValueForTopAndBottom"):u.default.get("conditionalFormattingInvalidRuleConditionValue")},e.prototype._isInvalidType=function(t){var e=this.props.type,o=!1;return e!==l.CONDITION_TYPES.IT&&e!==l.CONDITION_TYPES.IB||t>=0&&t<=100||(o=!0),o},e}(r.Component);e.default=a.observer(c)},function(t,e,o){var i=o(5),n=o(224);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[t.i,n,""]]);i(n,{insert:"head",singleton:!1}),t.exports=n.locals||{}},function(t,e,o){(e=o(6)(!1)).push([t.i,".vis-cf-rules-listItem{box-sizing:border-box;padding-right:16px;padding-left:16px}.vis-cf-rules-listItem .vis-cf-expand-content{margin-bottom:32px}.vis-cf-rules-listItem:focus{outline:none}.vis-cf-rules-listItem.is-expanded .ba-common-tooltip{margin-bottom:16px}.vis-cf-rules-listItem>:nth-child(2){height:16px}.vis-cf-rules-listItem .vis-cf-unexpanded-rule,.vis-cf-rules-listItem .vis-cf-drag-handler,.vis-cf-rules-listItem .vis-cf-rule-label,.vis-cf-rules-listItem .vis-cf-rule-tag{cursor:move}.vis-cf-rules-listItem .vis-cf-unexpanded-rule{height:32px;width:auto}.vis-cf-rules-listItem .vis-cf-unexpanded-rule .vis-cf-rule-value{height:32px;width:64px;display:flex;float:right;justify-content:center;align-items:center;font-size:16px;word-wrap:break-word;border:0.5px solid #eaeaea}.vis-cf-rules-listItem .vis-cf-unexpanded-rule .vis-cf-rule-label{box-sizing:border-box;padding-right:16px;width:calc(100% - 96px);font-size:.75rem}.vis-cf-rules-listItem .vis-cf-unexpanded-rule .vis-cf-drag-handler{margin-right:8px}.vis-cf-rules-listItem .vis-cf-unexpanded-rule .vis-cf-drag-handler,.vis-cf-rules-listItem .vis-cf-unexpanded-rule .vis-cf-rule-label{display:flex;align-items:center}.vis-cf-rules-listItem .vis-cf-start-value-combobox,.vis-cf-rules-listItem .vis-cf-end-value-combobox{margin-bottom:8px;margin-top:16px}.vis-cf-rules-listItem .vis-cf-start-value-combobox input,.vis-cf-rules-listItem .vis-cf-end-value-combobox input{border-bottom-color:transparent;background-color:#fff;background-color:hsla(var(--ui-01-h, 0), var(--ui-01-s, 0%), var(--ui-01-l, 100%), 1);max-width:100%;padding-right:0 !important;box-sizing:border-box;height:32px}.vis-cf-rules-listItem .vis-cf-start-value-combobox span.ba-common-combobox__text,.vis-cf-rules-listItem .vis-cf-end-value-combobox span.ba-common-combobox__text{background-color:transparent;width:100%;height:32px}.vis-cf-rules-listItem .vis-cf-start-value-numberinput,.vis-cf-rules-listItem .vis-cf-end-value-numberinput{border-bottom-color:#161616;border-bottom-color:hsla(var(--ui-05-h, 0), var(--ui-05-s, 0%), var(--ui-05-l, 8.62745%), 1);border-bottom-width:2px}.vis-cf-rules-listItem .vis-cf-start-value-numberinput .is-percentage,.vis-cf-rules-listItem .vis-cf-end-value-numberinput .is-percentage{width:40%}.vis-cf-rules-listItem .vis-cf-start-value-numberinput input,.vis-cf-rules-listItem .vis-cf-end-value-numberinput input{background-color:#fff;background-color:hsla(var(--ui-01-h, 0), var(--ui-01-s, 0%), var(--ui-01-l, 100%), 1);width:100%;text-align:left;padding-left:16px;padding-right:0;box-sizing:border-box;height:32px}.vis-cf-rules-listItem .vis-cf-start-value-numberinput span,.vis-cf-rules-listItem .vis-cf-end-value-numberinput span{width:100%;height:32px;float:right}.vis-cf-rules-listItem .vis-cf-start-value-numberinput .ba-common-baseInput__line,.vis-cf-rules-listItem .vis-cf-end-value-numberinput .ba-common-baseInput__line{display:none}.vis-cf-rules-listItem .vis-cf-checkbox-container{margin:16px 0 0 auto;justify-content:flex-end}.vis-cf-rules-listItem .vis-cf-checkbox-container .vis-cf-checkbox-checked .ba-common-checkbox__box label{background-color:#e0e0e0;background-color:hsla(var(--selected-ui-h, 0), var(--selected-ui-s, 0%), var(--selected-ui-l, 87.84314%), 1)}.vis-cf-rules-listItem .vis-cf-checkbox-container .vis-cf-checkbox-not-checked label{background-color:transparent}.vis-cf-rules-listItem .vis-cf-style-item-container{box-sizing:border-box;height:32px;align-items:center;width:calc(100% + 16px);padding-right:16px}.vis-cf-rules-listItem .vis-cf-style-item-container.vis-cf-shape-container{padding-bottom:32px}.vis-cf-rules-listItem .vis-cf-style-item-container .vis-cf-rule-picker-container{margin-left:auto;align-items:center}.vis-cf-rules-listItem .vis-cf-style-item-container .vis-cf-rule-picker-container .vis-cf-rule-picker{display:flex;height:24px;width:24px;background-color:#fff;background-color:hsla(var(--ui-01-h, 0), var(--ui-01-s, 0%), var(--ui-01-l, 100%), 1)}.vis-cf-rules-listItem .vis-cf-style-item-container .vis-cf-rule-picker-container .vis-cf-rule-picker button{height:inherit;width:inherit}.vis-cf-rules-listItem .vis-cf-style-item-container .vis-cf-rule-picker-container .vis-cf-rule-picker .vis-cf-svgIcon{margin:auto}.vis-cf-rules-listItem .vis-cf-style-item-container .vis-cf-rule-picker-container .vis-cf-rule-picker.vis-cf-not-selected{background-image:repeating-linear-gradient(135deg, #fff 0%, #fff 48%, red 50%, #fff 52%, #fff 100%);background-repeat:no-repeat}#vis-cf-rules-container .vis-cf-rules-listItem .vis-cf-delete-rule-container .vis-cf-delete-rule-button{font-weight:bold;font-size:.875rem;background-color:transparent;color:#0f62fe;color:hsla(var(--interactive-01-h, 219.16318), var(--interactive-01-s, 99.17012%), var(--interactive-01-l, 52.7451%), 1);min-width:fit-content;padding-right:0px;padding-left:0px;margin-bottom:16px;margin-top:32px}\n",""]),t.exports=e},function(t,e,o){var i=o(5),n=o(226);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[t.i,n,""]]);i(n,{insert:"head",singleton:!1}),t.exports=n.locals||{}},function(t,e,o){(e=o(6)(!1)).push([t.i,"#vis-cf-rules-container{width:100%;overflow-y:auto;margin-top:16px}#vis-cf-rules-container .vis-cf-add-rule-container{min-width:fit-content}#vis-cf-rules-container .vis-cf-add-rule-container .vis-cf-add-rule-button{font-weight:700;font-size:.875rem;background-color:transparent;color:#0f62fe;color:hsla(var(--interactive-01-h, 219.16318), var(--interactive-01-s, 99.17012%), var(--interactive-01-l, 52.7451%), 1);min-width:fit-content;padding-right:0px;padding-left:0px}#vis-cf-rules-container .vis-cf-rule-separator{height:8px;max-width:95%}#vis-cf-rules-container .vis-cf-rule-separator.vis-cf-is-active{height:48px;border-top:solid 5px;border-color:#393939;border-color:hsla(var(--interactive-02-h, 0), var(--interactive-02-s, 0%), var(--interactive-02-l, 22.35294%), 1)}#vis-cf-rules-container .vis-cf-rule-title{font-weight:700;font-size:.875rem}#vis-cf-rules-container .vis-cf-rule-container-disabled{display:none}\n",""]),t.exports=e},function(t,e){t.exports=__WEBPACK_EXTERNAL_MODULE__227__},function(t,e,o){var i=o(5),n=o(229);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[t.i,n,""]]);i(n,{insert:"head",singleton:!1}),t.exports=n.locals||{}},function(t,e,o){(e=o(6)(!1)).push([t.i,".vis-cf-background-opacity-separator{color:#161616;color:hsla(var(--text-01-h, 0), var(--text-01-s, 0%), var(--text-01-l, 8.62745%), 1);opacity:0.2;margin-top:16px !important}.vis-cf-panelContainer.is-disabled{cursor:not-allowed;opacity:0.4}.vis-cf-panelContainer-inner.is-disabled{pointer-events:none}\n",""]),t.exports=e},function(t,e,o){"use strict";var i,n=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),r=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}(o(0)),s=r(o(1)),l=o(3),u=o(2),c=r(o(69));o(231);var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.render=function(){var t=this.props,e=t.uiContext,o=t.conditionalFormatsModel,i={fill:o.getSummaryFillColor()};return a.default.createElement(u.FlexLayout,{direction:"row",justifyContent:"space-between",className:"vis-cf-summary-fill-color-wrapper"},a.default.createElement(u.FlexItem,{className:"vis-cf-summary-fill-color-label"},a.default.createElement(u.Label,{label:s.default.get("conditionalFormattingSummaryFillColor")})),a.default.createElement(u.Label,{className:"vis-summary-fill-color-name",label:o.getSummaryFillColor()}),a.default.createElement(c.default,{className:"vis-cf-color-picker",useSystemPalettes:!0,onColorSelected:this._onColorSelected.bind(this),orientation:"bottom",selectedColor:i,uiContext:e,colorPickerModel:o.getColorPickerModel()}))},e.prototype._onColorSelected=function(t){this.props.conditionalFormatsModel.setSummaryFillColor(t)},e}(a.Component);e.default=l.observer(d)},function(t,e,o){var i=o(5),n=o(232);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[t.i,n,""]]);i(n,{insert:"head",singleton:!1}),t.exports=n.locals||{}},function(t,e,o){(e=o(6)(!1)).push([t.i,".vis-cf-summary-fill-color-wrapper{align-items:center}.vis-cf-color-picker{float:right;height:24px;width:24px;border:1px solid;border-color:#e0e0e0;border-color:hsla(var(--ui-03-h, 0), var(--ui-03-s, 0%), var(--ui-03-l, 87.84314%), 1)}.vis-cf-color-picker button{height:inherit;width:inherit}.vis-summary-fill-color-name{font-size:.875rem;display:flex;padding-right:5px;margin-left:auto}\n",""]),t.exports=e},function(t,e,o){"use strict";var i=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var n=i(o(0)),r=i(o(14)),a=i(o(43)),s=i(o(51)),l=function(){function t(t){void 0===t&&(t={}),this.$el=a.default(t.el),this.uiContext=t.uiContext,this.containerEl=null,this.uiContext.registerUIConditionalColorPanel(this)}return t.prototype.remove=function(){if(this.containerEl){var t=a.default(this.containerEl);t.hide(),r.default.unmountComponentAtNode(this.containerEl),t.remove(),this.containerEl=null}},t.prototype.render=function(){return r.default.render(n.default.createElement(s.default,{uiContext:this.uiContext,mstForUIPanels:this.uiContext.getConditionalFormattingState().getMstForUIPanels()}),this._createContainer()),this},t.prototype._createContainer=function(){return this.containerEl=document.createElement("div"),this.containerEl.className="vis-cf-conditionalColor-panel",this.$el.append(this.containerEl),this.containerEl},t}();e.default=l},function(t,e,o){"use strict";var i=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var n=i(o(43)),r=i(o(235)),a=i(o(1)),s=function(){function t(t){void 0===t&&(t={}),this.$el=n.default("<div/>"),this.parentNode=t.parentNode,this.onCloseCb=t.onCloseCb,this.uiContext=t.uiContext}return t.prototype.render=function(){var t=this;this._deletePropertyUIControl();var e=this._getPropertySpec();return this._propertyUIControl=new r.default(e),this._propertyUIControl.render().then((function(){return t._propertyUIControl.focus(),t._propertyUIControl}))},t.prototype.remove=function(){this.uiContext.removeUiConditionalColorPanel()},t.prototype._deletePropertyUIControl=function(){this._propertyUIControl&&(this._propertyUIControl.remove(),this.$el.empty(),this._propertyUIControl=null,this.uiContext.setMeasureDataItem(void 0))},t.prototype._getPropertySpec=function(){var t=[];return t.push(this._createConditionalColoBannerSpec()),t.push(this._createCurrentConditionalColorSpec()),{el:this.$el,items:t,ariaLabel:t[0].value,primaryUIControl:!0,paletteService:this.uiContext.getPaletteService()}},t.prototype._createConditionalColoBannerSpec=function(){var t=this,e=this.uiContext.getConditionalFormattingState().getMstForUIPanels();return{type:"Banner",value:a.default.get("conditionalColor")+": "+e.getDataItemLabel(),name:"changeConditionalColorBanner",id:"changeConditionalColorBanner",centerLabel:!0,onClose:function(){t._deletePropertyUIControl(),t.onCloseCb&&t.onCloseCb()},backButton:!0}},t.prototype._createCurrentConditionalColorSpec=function(){return{id:"currentConditionalColorPanel",module:"dashboard-analytics/features/content/conditionalFormatting/ConditionalFormatting",moduleClass:"ConditionalColorPanel",uiContext:this.uiContext}},t}();e.default=s},function(t,e,o){"use strict";e.__esModule=!0,e.default=void 0;var i=o(236);e.default=i},function(t,e){t.exports=__WEBPACK_EXTERNAL_MODULE__236__},function(module,exports,__webpack_require__){"use strict";var __extends=(_extendStatics=function(t,e){return(_extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}_extendStatics(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),_extendStatics,__assign=function(){return(__assign=Object.assign||function(t){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)},__importDefault=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(exports,"__esModule",{value:!0});var underscore_1=__webpack_require__(12),ConditionalFormattingAPI_1=__importDefault(__webpack_require__(238)),UIConditionalFormattingAPI_1=__importDefault(__webpack_require__(239)),ConditionalFormattingAPISpec_1=__importDefault(__webpack_require__(240)),APIFactory_1=__importDefault(__webpack_require__(241)),StringResources_1=__importDefault(__webpack_require__(1)),RuleConstants_1=__webpack_require__(7),IconsMap_1=__importDefault(__webpack_require__(70)),Actions_1=__webpack_require__(71),ConditionalFormattingState_1=__importDefault(__webpack_require__(243)),MeasureDataItem_1=__importDefault(__webpack_require__(44)),UIContext_1=__importDefault(__webpack_require__(248)),ConditionalFormattingSpec_1=__webpack_require__(74),ColorUtil_1=__importDefault(__webpack_require__(10)),ConditionalFormatSpecHelper_1=__webpack_require__(13),QueryUtil_1=__importDefault(__webpack_require__(251)),ACTUAL_SLOT_IDX=0,VALUES_SLOT_IDX=1,GRID_COLS_SLOT_IDX=2,GOAL_SLOT_IDX=3,COLOR_SLOT_IDX=4,SUPPORTED_SLOT_IDS=["actual","values","grid_cols","goal","heat"],HEAT_SLOT_DEFAULT_ID="defaultHeatId",SUPPORT_CONDITIONAL_FORMAT_VIS_TYPE=["KPI","Crosstab","List"],ConditionalFormatting=function(_super){function ConditionalFormatting(t){var e=_super.call(this)||this;return e._content=t.content,e._Colors=t.features["Dashboard.Colors"],e._CustomColor=t.features["Dashboard.CustomColor"],e._internal=t.features["Dashboard.internal"],e._Properties=t.features.Properties,e._dashboardAPI=t.dashboardAPI,e._Icons=e._dashboardAPI.getFeature("Icons"),e._dataSourceUI=e._dashboardAPI.getFeature("DataSources.UI"),e._Properties.registerProvider(e.getAPI()),e._CustomColor.registerProvider(e.getAPI()),e._transaction=e._dashboardAPI.getFeature("Transaction"),e._profile=e._dashboardAPI.getAppConfig("profile"),e._providers=new Map,e._QueryService=e._dashboardAPI.getFeature("QueryService"),e._slotMappingIsReady=null,e._registerEvents(),e}return __extends(ConditionalFormatting,_super),ConditionalFormatting.prototype.getAPI=function(){return this._api||(this._api=APIFactory_1.default.createAPI(this,[ConditionalFormattingAPI_1.default])),this._api},ConditionalFormatting.prototype.initialize=function(){return Promise.resolve()},ConditionalFormatting.prototype.registerProvider=function(t,e){this._providers.has(t)||this._providers.set(t,e)},ConditionalFormatting.prototype.deregisterProvider=function(t){this._providers.delete(t)},ConditionalFormatting.prototype.destroy=function(){this._deregisterEvents(),this._CustomColor.deregisterProvider(this.getAPI()),this._Properties.deregisterProvider(this.getAPI()),this._uiContext&&(this._uiContext.destroy(),this._uiContext=null),this._conditionalFormattingState&&(this._conditionalFormattingState.destroy(),this._conditionalFormattingState=null),this._ConditionalFormattingSpec=null},ConditionalFormatting.prototype.isEnabled=function(){var t=this._getVisualization().getType();return SUPPORT_CONDITIONAL_FORMAT_VIS_TYPE.includes(t)},ConditionalFormatting.prototype.initializeFeature=function(){var t=this;return this._intializeFormattingState(),this._getMinMaxValuesOnInit().then((function(){return t._processConditionalPalette()}))},ConditionalFormatting.prototype.getFormatting=function(t,e,o){if(!o)throw new Error("Invalid dataItemId");if(!underscore_1.isNumber(t)||null===e||!underscore_1.isNumber(e))return null;if(this._hasConditionalFormat(o)){var i=null,n=this._getFormat(o);this._isKpi()&&!n.hasMinMaxValues()&&(n.setMinMaxValues(t,e),this._adjustRulesValue(n,!0));var r=this._getUiContext(),a=this._findValidRule(n,t,e),s=a&&a.getRuleStyle();if(s){var l=r.getPaletteColorsForPaletteId(n.getPaletteId()),u=ColorUtil_1.default.getHexColorOrFillFromColorId(r.getColors(),l,s.getTextColor());if(i={color:u.pattern?u.color:u,shapeId:this._getIconId(s.getShape())},!this._isKpi()){var c=ColorUtil_1.default.getHexColorOrFillFromColorId(r.getColors(),l,s.getFillColor());u.pattern&&!c.pattern&&(c={fill:c,pattern:u.pattern});var d=ColorUtil_1.default.getRgbaColorFromHexColor(c.pattern?c.fill:c,n.getBackgroundOpacity());i=__assign(__assign({},ColorUtil_1.default.getColorStyle(c.color,d,c.pattern)),i)}}return i}return null},ConditionalFormatting.prototype.getPropertyLayoutList=function(){var t,e=this;if(this.isEnabled()){this._intializeFormattingState();var o=this._getUiContext();(t=[{id:"color",type:"Section",label:StringResources_1.default.get("sectionName_colorPalette"),position:1}]).push({id:"conditionalColors",editor:{sectionId:"visualization.color",label:StringResources_1.default.get("sectionName_colorPalette"),position:2,uiControl:{module:"dashboard-analytics/features/content/conditionalFormatting/ConditionalFormatting",moduleClass:"ConditionalColor",uiContext:o}}}),this._profile&&this._profile.length&&t.forEach((function(t){t.profile=[e._profile]}))}else t=[];return t},ConditionalFormatting.prototype.getConditionalFormatMeasures=function(){var t=[];return this._getConditionalFormattingSpec()&&this._getSlotDataItems().forEach((function(e){var o=new MeasureDataItem_1.default({dataItemId:e.getColumnId(),label:e.getLabel()});t.push(o)})),t},ConditionalFormatting.prototype.setColorBy=function(t,e){var o=this._getFormat(t);this._updateColorSlotInContentModel(o,e),o.setColorBy(e),this._getMinMaxValues(o),this._updateUIAndContentModel({dataItemId:t,action:"setColorBy",value:e},!0)},ConditionalFormatting.prototype.getColorBy=function(t){return this._getFormat(t).getColorBy()},ConditionalFormatting.prototype.setScale=function(t,e){var o=this._getFormat(t);o.setScale(e),o.getHeatId()||this._updateColorSlotInContentModel(o,o.getColorBy()),o.hasMinMaxValues()||this._getMinMaxValues(o),this._adjustRulesValue(o,!1);var i=Actions_1.ACTIONS.SET_SCALE;this._updateUIAndContentModel({dataItemId:t,action:i,value:e},!0)},ConditionalFormatting.prototype.getScale=function(t){return this._getFormat(t).getScale()},ConditionalFormatting.prototype.setPaletteId=function(t,e){this._getFormat(t).setPaletteId(e);var o=Actions_1.ACTIONS.SET_PALETTE_ID;this._updateUIAndContentModel({dataItemId:t,action:o,value:e},!0)},ConditionalFormatting.prototype.getPaletteId=function(t){return this._getFormat(t).getPaletteId()},ConditionalFormatting.prototype.getNumberOfRules=function(t){return this._getFormat(t).getNumberOfRules()},ConditionalFormatting.prototype.setBackgroundOpacity=function(t,e){this._getFormat(t).setBackgroundOpacity(e);var o=Actions_1.ACTIONS.SET_BACKGROUND_OPACITY;this._updateUIAndContentModel({dataItemId:t,action:o,value:e},!0)},ConditionalFormatting.prototype.getBackgroundOpacity=function(t){return this._getFormat(t).getBackgroundOpacity()},ConditionalFormatting.prototype.addRule=function(t,e,o){var i=this._getFormat(t);e=-1===e?this.getNumberOfRules(t):e;var n=i.addRule(e,o);i.getHeatId()||this._updateColorSlotInContentModel(i,i.getColorBy()),i.hasMinMaxValues()||this._getMinMaxValues(i);var r=Actions_1.ACTIONS.ADD_RULE;this._updateUIAndContentModel({dataItemId:t,action:r,value:n,ruleIndex:e},!0)},ConditionalFormatting.prototype.deleteRule=function(t,e){if(this._getFormat(t).deleteRule(e)){var o=Actions_1.ACTIONS.DELETE_RULE;this._updateUIAndContentModel({dataItemId:t,action:o,value:e},!0)}},ConditionalFormatting.prototype.moveRule=function(t,e,o){if(this._getFormat(t).moveRule(e,o)){var i=Actions_1.ACTIONS.MOVE_RULE;this._updateUIAndContentModel({dataItemId:t,action:i,value:e,ruleIndex:o},!0)}},ConditionalFormatting.prototype.getRules=function(t){return this._getFormat(t).getRules()},ConditionalFormatting.prototype.getRule=function(t,e){return this._getFormat(t).getRule(e)},ConditionalFormatting.prototype.setRangeOperator=function(t,e,o){var i=this._getFormat(t).setRangeOperator(e,o),n=Actions_1.ACTIONS.SET_RANGE_OPERATOR;this._updateUIAndContentModel({dataItemId:t,action:n,value:o,ruleIndex:e,context:i},!0)},ConditionalFormatting.prototype.getRangeOperator=function(t,e){return this._getFormat(t).getRangeOperator(e)},ConditionalFormatting.prototype.setRuleStartConditionType=function(t,e,o){var i=this._getFormat(t).getRule(e);if(i){i.setRuleStartConditionType(o);var n=Actions_1.ACTIONS.SET_START_CONDITION_TYPE;this._updateUIAndContentModel({dataItemId:t,action:n,value:o,ruleIndex:e},!0)}},ConditionalFormatting.prototype.getRuleStartConditionType=function(t,e){var o=this._getFormat(t).getRule(e);return o?o.getRuleStartConditionType():null},ConditionalFormatting.prototype.setRuleStartConditionValue=function(t,e,o){var i=this._getFormat(t).getRule(e);if(i){i.setRuleStartConditionValue(o);var n=Actions_1.ACTIONS.SET_START_CONDITION_VALUE;this._updateUIAndContentModel({dataItemId:t,action:n,value:o,ruleIndex:e},!0)}},ConditionalFormatting.prototype.getRuleStartConditionValue=function(t,e){var o=this._getFormat(t).getRule(e);return o?o.getRuleStartConditionValue():null},ConditionalFormatting.prototype.setRuleEndConditionType=function(t,e,o){var i=this._getFormat(t).getRule(e);if(i){i.setRuleEndConditionType(o);var n=Actions_1.ACTIONS.SET_END_CONDITION_TYPE;this._updateUIAndContentModel({dataItemId:t,action:n,value:o,ruleIndex:e},!0)}},ConditionalFormatting.prototype.getRuleEndConditionType=function(t,e){var o=this._getFormat(t).getRule(e);return o?o.getRuleEndConditionType():null},ConditionalFormatting.prototype.setRuleEndConditionValue=function(t,e,o){var i=this._getFormat(t).getRule(e);if(i){i.setRuleEndConditionValue(o);var n=Actions_1.ACTIONS.SET_END_CONDITION_VALUE;this._updateUIAndContentModel({dataItemId:t,action:n,value:o,ruleIndex:e},!0)}},ConditionalFormatting.prototype.getRuleEndConditionValue=function(t,e){var o=this._getFormat(t).getRule(e);return o?o.getRuleEndConditionValue():null},ConditionalFormatting.prototype.setRuleStyleTextColor=function(t,e,o){var i=this._getFormat(t).getRule(e);if(i){i.setRuleStyleTextColor(o);var n=Actions_1.ACTIONS.SET_RULE_STYLE_TEXT_COLOR;this._updateUIAndContentModel({dataItemId:t,action:n,value:o,ruleIndex:e},!0)}},ConditionalFormatting.prototype.getRuleStyleTextColor=function(t,e){var o=this._getFormat(t).getRule(e);return o?o.getRuleStyleTextColor():null},ConditionalFormatting.prototype.setRuleStyleFillColor=function(t,e,o){var i=this._getFormat(t).getRule(e);if(i){i.setRuleStyleFillColor(o);var n=Actions_1.ACTIONS.SET_RULE_STYLE_FILL_COLOR;this._updateUIAndContentModel({dataItemId:t,action:n,value:o,ruleIndex:e},!0)}},ConditionalFormatting.prototype.getRuleStyleFillColor=function(t,e){var o=this._getFormat(t).getRule(e);return o?o.getRuleStyleFillColor():null},ConditionalFormatting.prototype.setRuleStyleShape=function(t,e,o){var i=this._getFormat(t).getRule(e);if(i){i.setRuleStyleShape(o);var n=Actions_1.ACTIONS.SET_RULE_STYLE_SHAPE;this._updateUIAndContentModel({dataItemId:t,action:n,value:o,ruleIndex:e},!0)}},ConditionalFormatting.prototype.getRuleStyleShape=function(t,e){var o=this._getFormat(t).getRule(e);return o?o.getRuleStyleShape():null},ConditionalFormatting.prototype.setSummaryFillColor=function(t){this._ConditionalFormattingSpec.setSummaryFillColor(t);var e=Actions_1.ACTIONS.SET_SUMMARY_FILL_COLOR,o=this._ConditionalFormattingSpec.getSummaryFillColor();this._updateUIAndContentModel({action:e,value:o},!0)},ConditionalFormatting.prototype.getSummaryFillColor=function(){return this._ConditionalFormattingSpec.getSummaryFillColor()},ConditionalFormatting.prototype.getConditionalFormatting=function(){return this._getConditionalFormattingSpec().getContentModelJsonSpec()},ConditionalFormatting.prototype.getShapeDefinition=function(t){return IconsMap_1.default.getShapeDefinition(this._Icons,t)},ConditionalFormatting.prototype.getDataItemFormatSpec=function(t){var e={},o=this._getFormat(t);if(o){var i=o.getColorBy(),n=(this._isKpi()?this._getSlotDataItems(SUPPORTED_SLOT_IDS[GOAL_SLOT_IDX]):this._getSlotDataItems(SUPPORTED_SLOT_IDS[COLOR_SLOT_IDX])).find((function(t){return t.getColumnId()===i}));n?(e=n.getFormat(),o.getScale()===RuleConstants_1.RULE_SCALES.PERCENTAGE&&(e.type="percent",e.convertPercent=!1)):console.log("getDataItemFormatSpec: unable to find dataItem API for column Id "+t)}return e},ConditionalFormatting.prototype.getCustomColorList=function(){var t=this,e=[];if(this._conditionalFormattingState&&this.isEnabled()){var o=this._getConditionalFormattingSpec().getConditionalFormats(),i=this._Colors;o.forEach((function(o){o.getRules().forEach((function(o){var n=o.getRuleStyleTextColor();t._isCustomColor(n)&&e.push(i.getHexColorFromClassName(n)),n=o.getRuleStyleFillColor(),t._isCustomColor(n)&&e.push(i.getHexColorFromClassName(n))}))}))}return underscore_1.uniq(e)},ConditionalFormatting.prototype.getProvider=function(){return this._profile?this._providers.get(this._profile):null},ConditionalFormatting.prototype.slotMappingIsReady=function(){return null!==this._slotMappingIsReady?this._slotMappingIsReady:Promise.resolve()},ConditionalFormatting.prototype._getFormat=function(t,e){if(void 0===e&&(e=!1),!t)throw new Error("Invalid dataItemId");var o=this._getConditionalFormattingSpec().getConditionalFormatById(t,e);if(!o)throw new Error("Invalid conditionaFormat during _getFormat call for "+t);return o},ConditionalFormatting.prototype._applyModelChangeInUI=function(t){this._conditionalFormattingState.applyModelChanges(t)},ConditionalFormatting.prototype._calculatePercentValue=function(t,e){return 0===t&&0===e?100:null===e||0===e?null:(t-e)/Math.abs(e)*100+100},ConditionalFormatting.prototype._executeRuleExpression=function(valueA,operator,valueB){return eval(valueA+" "+operator+" "+valueB)},ConditionalFormatting.prototype._findValidRule=function(t,e,o){var i,n=this,r=t.getRules()||[],a=t.getScale();return i=a===RuleConstants_1.RULE_SCALES.PERCENTAGE?this._calculatePercentValue(e,o):this._isKpi()?e:o,r.find((function(e){var r,a=e.getStartCondition();if(a&&a.getType()){var s=a.getValue(),l=a.getType();if(a.getType()===RuleConstants_1.RULE_OPERATORS.missing)return null===i;if(a.getType()===RuleConstants_1.RULE_OPERATORS.inTop||a.getType()===RuleConstants_1.RULE_OPERATORS.inBottom){var u=t.getMaxValue()-t.getMinValue();l=RuleConstants_1.RULE_OPERATORS.lessThanOrEqualTo,i=a.getType()===RuleConstants_1.RULE_OPERATORS.inTop?n._calculatePercentValue(t.getMaxValue()-o,u):n._calculatePercentValue(o-t.getMinValue(),u)}r=n._executeRuleExpression(i,l,s)}if(e.getRuleType()===RuleConstants_1.RULE_TYPES.RANGE){var c=e.getEndCondition();if(c&&c.getType()&&e.getOperator()){var d=n._executeRuleExpression(i,c.getType(),c.getValue());return n._executeRuleExpression(r,e.getOperator(),d)}}return r}))},ConditionalFormatting.prototype._processConditionalPalette=function(){var t=[],e=this._getUiContext(),o=this._getConditionalFormattingSpec().getConditionalFormats(),i=[ConditionalFormatSpecHelper_1.DEFAULT_PALETTE_ID];return o.forEach((function(t){i.includes(t.getPaletteId())||i.push(t.getPaletteId())})),i.forEach((function(o){t.push(e.getColorPalette(o))})),Promise.all(t)},ConditionalFormatting.prototype._getIconId=function(t){if(t&&"none"!==t){var e=this.getShapeDefinition(t);return e?e.iconId:void 0}},ConditionalFormatting.prototype._updateConditionalFormatsModelSpec=function(t){this._getContentModel().setConditionalFormatting(this._getConditionalFormattingSpec().getContentModelJsonSpec(),t)},ConditionalFormatting.prototype._getVisualization=function(){return this._visualization||(this._visualization=this._content.getFeature("Visualization")),this._visualization},ConditionalFormatting.prototype._getContentModel=function(){return this._contentModel||this._internal.getBoardModel().layout.findModel(this._content.getId())&&(this._contentModel=this._internal.getBoardModel().layout.findModel(this._content.getId()).getContentModel()),this._contentModel},ConditionalFormatting.prototype._getSlotDataItems=function(t){var e=this,o=this._getVisualization().getType();if(!t)switch(o){case"Crosstab":t=SUPPORTED_SLOT_IDS[VALUES_SLOT_IDX];break;case"List":t=SUPPORTED_SLOT_IDS[GRID_COLS_SLOT_IDX];break;default:t=SUPPORTED_SLOT_IDS[ACTUAL_SLOT_IDX]}return(this._visualization&&this._visualization.getSlots().getSlot(t).getDataItemList()).filter((function(t){return e._isValidForCondFormat(t)}))},ConditionalFormatting.prototype._getUiContext=function(){if(!this._uiContext){var t=this._Colors,e=this._Icons,o=this._getConditionalFormattingState(),i=this._dataSourceUI,n=this._content.getId(),r=this._dashboardAPI,a=this._getUIConditionalFormattingApi();this._uiContext=new UIContext_1.default({condFormatApi:a,colors:t,icons:e,conditionalFormattingState:o,dataSourceUI:i,contentId:n,dashboardApi:r});var s=this.getConditionalFormatMeasures();this._getUiContext().setMeasures(s)}var l=this._getVisualization(),u=l.getDataSource();this._uiContext.setDataSource(u);var c=u?l.getDataSource().getId():null;return this._uiContext.setSourceId(c),this._uiContext},ConditionalFormatting.prototype._getConditionalFormattingSpec=function(){if(!this._ConditionalFormattingSpec){var t=this._getContentModel(),e=t&&t.getConditionalFormatting();this._ConditionalFormattingSpec=new ConditionalFormattingSpec_1.ConditionalFormattingSpec(e,this._getVisualization().getType())}return this._ConditionalFormattingSpec},ConditionalFormatting.prototype._getConditionalFormattingState=function(){if(!this._conditionalFormattingState)throw new Error("this._conditionalFormattingState have not been created");return this._conditionalFormattingState},ConditionalFormatting.prototype._intializeFormattingState=function(){var t=this;if(this._conditionalFormattingState)this.isEnabled()&&this._conditionalFormattingState.updateVisType(this._getVisualization().getType());else if(this._conditionalFormattingState=new ConditionalFormattingState_1.default(this._getUIConditionalFormattingApi(),this._getVisualization().getType(),this._getConditionalFormattingSpec()),this._isKpi()){var e=this._getSlotDataItems(SUPPORTED_SLOT_IDS[ACTUAL_SLOT_IDX]);if(e.length){var o=this._getFormat(e[0].getColumnId(),!0),i=this._getSlotDataItems(SUPPORTED_SLOT_IDS[GOAL_SLOT_IDX]);i.length?o.setColorBy(i[0].getColumnId()):this._resetKpiMinMaxBaseOnTargetValue(o,this._content.getPropertyValue("targetValue"))}}else this._ConditionalFormattingSpec.getConditionalFormats().forEach((function(e){var o=e.getHeatId();if(o){var i=t._getVisualization().getSlots().getDataItem(o);e.setColorBy(i.getColumnId())}else e.setColorBy(e.getDataItemId())}))},ConditionalFormatting.prototype._getUIConditionalFormattingApi=function(){return this._internalApi||(this._internalApi=APIFactory_1.default.createAPIFromSpec([{implementation:this,interface:ConditionalFormattingAPI_1.default},{implementation:this,interface:UIConditionalFormattingAPI_1.default}])),this._internalApi},ConditionalFormatting.prototype._adjustRulesValue=function(t,e){var o=this;if(t.hasMinMaxValues()){var i=t.getRules(),n=t.getScale(),r=t.getMinValue(),a=t.getMaxValue(),s=t.getDataItemId();i.forEach((function(t,i){var l,u=t.getStartCondition(),c=o._adjustConditionValue(u,n,r,a,e);underscore_1.isNumber(c)&&(l=Actions_1.ACTIONS.SET_START_CONDITION_VALUE,o._updateUIAndContentModel({dataItemId:s,action:l,value:c,ruleIndex:i},!1)),u=t.getEndCondition(),c=o._adjustConditionValue(u,n,r,a,e),underscore_1.isNumber(c)&&(l=Actions_1.ACTIONS.SET_END_CONDITION_VALUE,o._updateUIAndContentModel({dataItemId:s,action:l,value:c,ruleIndex:i},!1))}))}},ConditionalFormatting.prototype._adjustConditionValue=function(t,e,o,i,n){var r;return t&&(n||!t.hasValue()?(t.setDefaultValue(e,o,i),r=t.getValue()):t.hasValue()&&(r=e===RuleConstants_1.RULE_SCALES.NUMERIC?Math.abs(i)*(t.getValue()/100):t.getValue()/Math.abs(i)*100,t.setValue(r))),r},ConditionalFormatting.prototype._registerEvents=function(){this._content.on("change:visualization:type",this._onChangeVisType.bind(this)),this._content.on("change:visualization:slots:dataitems:addMapping",this._onAddSlotMapping.bind(this),this),this._content.on("change:visualization:slots:dataitems:removeMapping",this._onRemoveSlotMapping.bind(this),this),this._content.on("change:property:targetValue",this._onContentPropertyChange.bind(this),this)},ConditionalFormatting.prototype._deregisterEvents=function(){this._content.off("change:visualization:type",this._onChangeVisType.bind(this)),this._content.off("change:visualization:slots:dataitems:addMapping",this._onAddSlotMapping.bind(this),this),this._content.off("change:visualization:slots:dataitems:removeMapping",this._onRemoveSlotMapping.bind(this),this),this._content.off("change:property:targetValue",this._onContentPropertyChange.bind(this),this)},ConditionalFormatting.prototype._onChangeVisType=function(){this.isEnabled()&&this.initializeFeature()},ConditionalFormatting.prototype._onAddSlotMapping=function(t){var e=this;if(this._conditionalFormattingState&&this.isEnabled()){var o=t&&t.info,i=SUPPORTED_SLOT_IDS.findIndex((function(t){return t===o.slotId})),n=this._getVisualization().getType();o&&o.dataItemIdList&&-1!==i&&o.dataItemIdList.forEach((function(o){var r=e._getVisualization().getSlots().getDataItem(o);if(e._isValidForCondFormat(r)){var a=void 0,s=void 0,l=void 0;if(e._isKpi()){var u=e._getSlotDataItems(SUPPORTED_SLOT_IDS[ACTUAL_SLOT_IDX]),c=e._getSlotDataItems(SUPPORTED_SLOT_IDS[GOAL_SLOT_IDX]),d=!!c.length;i===GOAL_SLOT_IDX?u.length&&(s=u[0].getColumnId(),a=e._getFormat(s),l=r.getColumnId()):(s=r.getColumnId(),a=e._getFormat(s,!0),f=new MeasureDataItem_1.default({dataItemId:r.getColumnId(),label:r.getLabel()}),e._getUiContext().selectMeasureAddedToSlot(f),c.length&&(l=c[0].getColumnId())),a&&(ConditionalFormatSpecHelper_1.ConditionalFormatSpecHelper.updateConditionalFormatSpecBasedOnVisType(n,a),i===GOAL_SLOT_IDX?a.resetMinMaxValues():d||e._resetKpiMinMaxBaseOnTargetValue(a,e._content.getPropertyValue("targetValue")))}else if(i===COLOR_SLOT_IDX)(a=e._getConditionalFormattingSpec().getConditionalFormats().find((function(t){return t.getHeatId()===HEAT_SLOT_DEFAULT_ID})))&&(l=r.getColumnId(),s=a.getDataItemId(),a.setHeatId(r.getId()));else{s=r.getColumnId(),a=e._getFormat(s,!0),(a=ConditionalFormatSpecHelper_1.ConditionalFormatSpecHelper.updateConditionalFormatSpecBasedOnVisType(n,a)).setActive(!0);var p={dataItemId:s,action:Actions_1.ACTIONS.SET_BACKGROUND_OPACITY,value:a.getBackgroundOpacity()};e._updateUIAndContentModel(p,!1);var f=new MeasureDataItem_1.default({dataItemId:r.getColumnId(),label:r.getLabel()});e._getUiContext().selectMeasureAddedToSlot(f),l=a.getColorBy()}if(a&&l){a.setColorBy(l);var h=Actions_1.ACTIONS.SET_COLOR_BY;i!==COLOR_SLOT_IDX&&a.getHeatId()&&a.getHeatId()!==HEAT_SLOT_DEFAULT_ID&&e._updateColorSlotInContentModel(a,l,t.transactionToken),e._updateUIAndContentModel({dataItemId:s,action:h,value:l},!0)}}})),this._onCompleteSlotMapping()}},ConditionalFormatting.prototype._onRemoveSlotMapping=function(t){var e=this;if(this._conditionalFormattingState&&this.isEnabled()){var o=t&&t.info,i=SUPPORTED_SLOT_IDS.findIndex((function(t){return t===o.slotId}));o&&o.dataItemIdList&&-1!==i&&o.dataItemIdList.forEach((function(o){var n=e._getVisualization().getSlots().getDataItem(o);if(e._isKpi()&&i===GOAL_SLOT_IDX){var r=e._getSlotDataItems();if(r.length){var a=r[0].getColumnId(),s=e._getFormat(a);e._resetKpiMinMaxBaseOnTargetValue(s,e._content.getPropertyValue("targetValue"));var l=void 0;s.setColorBy(l);var u=Actions_1.ACTIONS.SET_COLOR_BY;e._updateUIAndContentModel({dataItemId:a,action:u,value:l},!1)}}else i===COLOR_SLOT_IDX?(s=e._getConditionalFormattingSpec().getConditionalFormats().find((function(t){return t.getHeatId()===n.getId()&&t.isActive()})))&&(a=s.getDataItemId(),s.setColorBy(s.getDataItemId()),s.setHeatId(HEAT_SLOT_DEFAULT_ID),l=s.getColorBy(),u=Actions_1.ACTIONS.SET_COLOR_BY,e._updateUIAndContentModel({dataItemId:a,action:u,value:l},!0)):e._hasConditionalFormat(n.getColumnId())&&((s=e._getFormat(n.getColumnId())).setActive(!1),e._updateColorSlotInContentModel(s,null,t.transactionToken),e._updateConditionalFormatsModelSpec())})),this._onCompleteSlotMapping()}},ConditionalFormatting.prototype._isValidForCondFormat=function(t){var e=!0;return"List"===this._getVisualization().getType()&&(e="fact"===t.getType()),e},ConditionalFormatting.prototype._updateColorSlotInContentModel=function(t,e,o){if(!this._isKpi()){var i=o||this._transaction.startTransaction(),n=this._getVisualization().getSlots().getSlot(SUPPORTED_SLOT_IDS[COLOR_SLOT_IDX]);if(!n)throw new Error("Must have a color slot defined for this visualization");var r=this._getSlotDataItems(),a=-1;r.forEach((function(e,o){return e.getColumnId()===t.getDataItemId()&&(o<n.getDataItemList().length&&(a=o),!0)}));var s=this._getSlotDataItems(SUPPORTED_SLOT_IDS[COLOR_SLOT_IDX]).find((function(e){return e.getId()===t.getHeatId()}));if(s&&n.removeDataItems([s.getId()],i),e){var l=n.addDataItems([{columnId:e}],a,i);l&&t.setHeatId(l[0].getId())}o||this._transaction.endTransaction(i)}},ConditionalFormatting.prototype._isCustomColor=function(t){return t&&this._Colors.isCustomColor(t)},ConditionalFormatting.prototype._updateUIAndContentModel=function(t,e){this._applyModelChangeInUI(t),e&&this._updateConditionalFormatsModelSpec()},ConditionalFormatting.prototype._getMinMaxValues=function(t){var e=this;this._isKpi()||QueryUtil_1.default.getMinMaxValuesFromQuery(t.getHeatId(),this._getVisualization(),this._dashboardAPI,this._content,this._QueryService).then((function(o){o&&(o.min||o.max?t.getMinValue()===o.min&&t.getMaxValue()===o.max||t.setMinMaxValues(o.min,o.max):t.setMinMaxValues(RuleConstants_1.RULE_DEFAULT_MIN_VALUE,RuleConstants_1.RULE_DEFAULT_MAX_VALUE),e._setUIHasMinMax(t))}))},ConditionalFormatting.prototype._isKpi=function(){return"KPI"===this._getVisualization().getType()},ConditionalFormatting.prototype._getMinMaxValuesOnInit=function(){var t=this;if(this._isKpi())return Promise.resolve();var e=[],o=this._getConditionalFormattingSpec().getConditionalFormats(),i=this._getVisualization();return o.forEach((function(o){e.push(o.getHeatId()&&!o.hasMinMaxValues()?QueryUtil_1.default.getMinMaxValuesFromQuery(o.getHeatId(),i,t._dashboardAPI,t._content,t._QueryService):Promise.resolve(void 0))})),Promise.all(e).then((function(e){e.forEach((function(e,i){var n=o[i];e&&(e.min||e.max?n.getMinValue()===e.min&&n.getMaxValue()===e.max||(n.setMinMaxValues(e.min,e.max),t._getUiContext().getConditionalFormatsModel()):n.setMinMaxValues(RuleConstants_1.RULE_DEFAULT_MIN_VALUE,RuleConstants_1.RULE_DEFAULT_MAX_VALUE),t._setUIHasMinMax(n))}))}))},ConditionalFormatting.prototype._setUIHasMinMax=function(t){var e=Actions_1.ACTIONS.SET_HAS_MIN_MAX,o=t.getDataItemId();this._updateUIAndContentModel({dataItemId:o,action:e,value:!0},!1)},ConditionalFormatting.prototype._hasConditionalFormat=function(t){return this._getConditionalFormattingSpec().hasConditionalFormat(t)},ConditionalFormatting.prototype._onCompleteSlotMapping=function(){var t=this;null===this._slotMappingIsReady&&(this._slotMappingIsReady=new Promise((function(e){var o=underscore_1.uniqueId("slotMappingEventId_");t._slotMappingEventId=o,setTimeout((function(){if(t.isEnabled){if(t._slotMappingEventId===o){var i=t.getConditionalFormatMeasures();t._getUiContext().setMeasures(i)}var n=t._getConditionalFormattingSpec();(n?n.getConditionalFormats():[]).forEach((function(t){t.isActive()&&t.getHeatId()&&t.hasMinMaxValues()&&t.resetMinMaxValues()}))}e()}),0)})),this._slotMappingIsReady.then((function(){t._slotMappingIsReady=null})))},ConditionalFormatting.prototype._onContentPropertyChange=function(t){if(void 0===t&&(t={}),this._isKpi()){var e=(t.info||{}).value,o=this._getSlotDataItems(SUPPORTED_SLOT_IDS[ACTUAL_SLOT_IDX]);if(o.length){var i=this._getFormat(o[0].getColumnId(),!0);if(!this._getSlotDataItems(SUPPORTED_SLOT_IDS[GOAL_SLOT_IDX]).length){var n=NaN;e&&(underscore_1.isString(e)?e.length&&(n=Number(e)):n=e),this._resetKpiMinMaxBaseOnTargetValue(i,n)}}}},ConditionalFormatting.prototype._resetKpiMinMaxBaseOnTargetValue=function(t,e){if(t&&this._isKpi()){var o=!isNaN(e);if(o){var i=e>=0?0:Number.NEGATIVE_INFINITY,n=e;t.setMinMaxValues(i,n),this._adjustRulesValue(t,!0)}else t.resetMinMaxValues();this._getUiContext().setHasTargetValue(o)}},ConditionalFormatting}(ConditionalFormattingAPISpec_1.default);exports.default=ConditionalFormatting},function(t,e,o){"use strict";e.__esModule=!0,e.default=void 0;var i=function(){function t(){}var e=t.prototype;return e.isEnabled=function(){},e.initializeFeature=function(){},e.getFormatting=function(){},e.getConditionalFormatMeasures=function(){},e.setColorBy=function(){},e.getColorBy=function(){},e.setScale=function(){},e.getScale=function(){},e.setPaletteId=function(){},e.getPaletteId=function(){},e.setSummaryFillColor=function(){},e.getSummaryFillColor=function(){},e.setBackgroundOpacity=function(){},e.getBackgroundOpacity=function(){},e.getNumberOfRules=function(){},e.addRule=function(){},e.deleteRule=function(){},e.moveRule=function(){},e.setRangeOperator=function(){},e.getRangeOperator=function(){},e.setRuleStartConditionType=function(){},e.getRuleStartConditionType=function(){},e.setRuleStartConditionValue=function(){},e.getRuleStartConditionValue=function(){},e.setRuleEndConditionType=function(){},e.getRuleEndConditionType=function(){},e.setRuleEndConditionValue=function(){},e.getRuleEndConditionValue=function(){},e.setRuleStyleTextColor=function(){},e.getRuleStyleTextColor=function(){},e.setRuleStyleFillColor=function(){},e.getRuleStyleFillColor=function(){},e.setRuleStyleShape=function(){},e.getRuleStyleShape=function(){},e.getPropertyLayoutList=function(){},e.getDataItemFormatSpec=function(){},e.getConditionalFormatting=function(){},e.getShapeDefinition=function(){},e.getCustomColorList=function(){},e.registerProvider=function(){},e.deregisterProvider=function(){},t}();e.default=i},function(t,e,o){"use strict";e.__esModule=!0,e.default=void 0;var i=function(){function t(){}var e=t.prototype;return e.getRule=function(){},e.getProvider=function(){},e.slotMappingIsReady=function(){},t}();e.default=i},function(t,e,o){"use strict";e.__esModule=!0,e.default=void 0;var i={supportsUndoRedo:!0,refresh:{render:!0}},n=function(){function t(){}return t.prototype.getAPISpec=function(){var t=this;return this.apiSpec||(this.apiSpec={name:"conditional formatting API",events:{actions:{setScale:{eventName:"scale",info:i,getUndoActions:function(e){return[{params:[e[0],t.getScale(e[0])]}]}},setPaletteId:{eventName:"paletteId",info:Object.assign({},i,{refresh:{render:!0,propertiesPane:!0}}),getUndoActions:function(e){return[{params:[e[0],t.getPaletteId(e[0])]}]}},setBackgroundOpacity:{eventName:"backgroundOpacity",info:i,getUndoActions:function(e){return[{params:[e[0],t.getBackgroundOpacity(e[0])]}]}},setRangeOperator:{eventName:"rangeOperator",info:i,getUndoActions:function(e){return[{params:[e[0],e[1],t.getRangeOperator(e[0],e[1])]}]}},setRuleStartConditionType:{eventName:"startConditionType",info:i,getUndoActions:function(e){return[{params:[e[0],e[1],t.getRuleStartConditionType(e[0],e[1])]}]}},setRuleStartConditionValue:{eventName:"startConditionValue",info:i,getUndoActions:function(e){return[{params:[e[0],e[1],t.getRuleStartConditionValue(e[0],e[1])]}]}},setRuleEndConditionType:{eventName:"endConditionType",info:i,getUndoActions:function(e){return[{params:[e[0],e[1],t.getRuleEndConditionType(e[0],e[1])]}]}},setRuleEndConditionValue:{eventName:"endConditionValue",info:i,getUndoActions:function(e){return[{params:[e[0],e[1],t.getRuleEndConditionValue(e[0],e[1])]}]}},setRuleStyleTextColor:{eventName:"ruleStyleTextColor",info:i,getUndoActions:function(e){return[{params:[e[0],e[1],t.getRuleStyleTextColor(e[0],e[1])]}]}},setRuleStyleFillColor:{eventName:"ruleStyleFillColor",info:i,getUndoActions:function(e){return[{params:[e[0],e[1],t.getRuleStyleFillColor(e[0],e[1])]}]}},setRuleStyleShape:{eventName:"ruleStyleShape",info:i,getUndoActions:function(e){return[{params:[e[0],e[1],t.getRuleStyleShape(e[0],e[1])]}]}},deleteRule:{eventName:"deleteRule",info:i,getUndoActions:function(e){return[{name:"addRule",params:[e[0],e[1],t.getRule(e[0],e[1])]}]}},addRule:{eventName:"addRule",info:i,getUndoActions:function(t){return[{name:"deleteRule",params:[t[0],t[1],t[2]]}]}},moveRule:{eventName:"moveRule",info:i,getUndoActions:function(t){return[{name:"moveRule",params:[t[0],t[2],t[1]]}]}},setSummaryFillColor:{eventName:"summaryFillColor",info:i,getUndoActions:function(){return[{name:"setSummaryFillColor",params:[t.getSummaryFillColor()]}]}}}}}),this.apiSpec},t}();e.default=n},function(t,e,o){"use strict";e.__esModule=!0,e.default=void 0;var i=o(242);e.default=i},function(t,e){t.exports=__WEBPACK_EXTERNAL_MODULE__242__},function(t,e,o){"use strict";var i=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var n=i(o(244)),r=o(13),a=i(o(247)),s=o(71),l=o(9),u=function(){function t(t,e,o){this._conditionalFormattingApi=t,this._visType=e,this._conditionalFormattingSpec=o,this._mstForUIPanels=a.default.create({},{measures:this._conditionalFormattingApi.getConditionalFormatMeasures(),getMSTConditionalFormatModelFn:this._getMSTConditionalFormatModel.bind(this)})}return t.prototype.destroy=function(){this._mst&&l.destroy(this._mst)},t.prototype.initialize=function(){return Promise.resolve()},t.prototype.setUIContext=function(t){this._uiContext=t,this._mstForUIPanels.setUIContext(t)},t.prototype.getStateModel=function(){return this._getStateModel()},t.prototype.isKpiVis=function(){return r.ConditionalFormatSpecHelper.isKpiVis(this._visType)},t.prototype.getConditionalFormattingApi=function(){return this._conditionalFormattingApi},t.prototype.setMeasureDataItem=function(t){this._mstForUIPanels.setMeasureDataItem(t)},t.prototype.selectMeasureAddedToSlot=function(t){var e=this;return this._conditionalFormattingApi.slotMappingIsReady().then((function(){return t?e._getMSTConditionalFormatModel(t.getDataItemId()).loadPalette().then(e._mstForUIPanels.setMeasureDataItem.bind(e._mstForUIPanels,t)):(e._mstForUIPanels.setMeasureDataItem(t),Promise.resolve())}))},t.prototype.setMeasures=function(t){this._mstForUIPanels.setMeasures(t)},t.prototype.setCurrentUIPanelId=function(t){this._mstForUIPanels.setPanelId(t)},t.prototype.resetCurrentUIPanelId=function(){this._mstForUIPanels.resetPanelId()},t.prototype.setHasTargetValue=function(t){this._mstForUIPanels.setHasTargetValue(t)},t.prototype.setExpandRuleFlag=function(t,e,o){var i=this._conditionalFormattingApi?this._conditionalFormattingApi.getRule(t,e):null;i&&i.setExpand(o)},t.prototype.getConditionalFormatModel=function(){return this._mstForUIPanels.getMSTConditionalFormatModel()},t.prototype.getMstForUIPanels=function(){return this._mstForUIPanels},t.prototype.updateVisType=function(t){this._visType!==t&&(this._visType=t,this._conditionalFormattingSpec.updateVisType(t))},t.prototype.applyModelChanges=function(t){if(this._hasMSTModelForUI()){var e=this._getStateModel();if(t.action===s.ACTIONS.SET_SUMMARY_FILL_COLOR)e[t.action+"ValueFromContentModel"](t.value);else{if(!t.dataItemId)throw new Error("Invalid changeContext.dataItemId provided");var o=this._getMSTConditionalFormatModel(t.dataItemId);if(!o)return;switch(t.action){case s.ACTIONS.SET_SCALE:case s.ACTIONS.SET_PALETTE_ID:case s.ACTIONS.SET_BACKGROUND_OPACITY:case s.ACTIONS.SET_COLOR_BY:case s.ACTIONS.DELETE_RULE:case s.ACTIONS.SET_HAS_MIN_MAX:o[t.action+"ValueFromContentModel"](t.value);break;case s.ACTIONS.ADD_RULE:o[t.action+"ValueFromContentModel"](t.ruleIndex,t.value);break;case s.ACTIONS.MOVE_RULE:o[t.action+"ValueFromContentModel"](t.value,t.ruleIndex);break;case s.ACTIONS.SET_RANGE_OPERATOR:case s.ACTIONS.SET_START_CONDITION_TYPE:case s.ACTIONS.SET_START_CONDITION_VALUE:case s.ACTIONS.SET_END_CONDITION_TYPE:case s.ACTIONS.SET_END_CONDITION_VALUE:case s.ACTIONS.SET_RULE_STYLE_FILL_COLOR:case s.ACTIONS.SET_RULE_STYLE_TEXT_COLOR:case s.ACTIONS.SET_RULE_STYLE_SHAPE:var i=o.getRuleByIndex(t.ruleIndex);i&&i[t.action+"ValueFromContentModel"](t.value,t.context)}}}},t.prototype._getStateModel=function(){return this._mst||(this._mst=n.default.create(this._conditionalFormattingSpec.getMSTJsonSpec(),{getVisType:this.getVisType.bind(this),conditionalFormattingApi:this._conditionalFormattingApi,uiContext:this._uiContext})),this._mst},t.prototype._getMSTConditionalFormatModel=function(t){var e=this._getStateModel(),o=e.getConditionalFormatById(t);if(!o){var i=this._conditionalFormattingSpec.getConditionalFormatById(t,!0).getMSTJsonSpec();if(!i)throw new Error("jsonModel not found for "+t+" during _getMSTConditionalFormatModel call");o=e.addConditionalFormat(i)}return o},t.prototype._hasMSTModelForUI=function(){return!!this._mst},t.prototype.getVisType=function(){return this._visType},t}();e.default=u},function(t,e,o){"use strict";var i=function(){return(i=Object.assign||function(t){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)},n=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=o(9),a=n(o(245)),s=n(o(75)),l=r.types.model("ConditionalFormatsModel",{summaryFillColor:r.types.maybeNull(r.types.string),conditionalFormats:r.types.optional(r.types.array(a.default),[]),colorPickerModel:r.types.maybe(s.default)}).volatile((function(){return{getVisTypeFn:null,conditionalFormattingApi:null,uiContext:null}})).actions((function(t){return{afterCreate:function(){var e=r.getEnv(t),o=e.getVisType,i=e.conditionalFormattingApi,n=e.uiContext;t.getVisTypeFn=o,t.conditionalFormattingApi=i,t.uiContext=n,t.colorPickerModel=s.default.create({ancestorLevel:1})},addConditionalFormat:function(e){return t.conditionalFormats.push(i({},e)),t.conditionalFormats[t.conditionalFormats.length-1]},setSummaryFillColor:function(e){var o=e&&e.toUpperCase();t.summaryFillColor!==o&&t.conditionalFormattingApi.setSummaryFillColor(o)},setSummaryFillColorValueFromContentModel:function(e){t.summaryFillColor=e}}})).views((function(t){return{getConditionalFormatById:function(e){return t.conditionalFormats.find((function(t){return t.getDataItemId()===e}))},get hasConditionalFormats(){return t.conditionalFormats.length>0},getVisType:function(){return t.getVisTypeFn()},getConditionalFormattingApi:function(){return t.conditionalFormattingApi},loadPalette:function(e){return t.uiContext.getPalette(e)},loadPalettes:function(){return t.uiContext.getPalettes()},loadColorPalette:function(e){return t.uiContext.getColorPalette(e)},loadColors:function(e){return Promise.all([t.uiContext.getPalette(e),t.uiContext.getFavoriteColors()]).then((function(t){var e=t[0],o=t[1];return[e=e&&e.fills||[],o]}))},getDashboardColorSet:function(){return t.uiContext.getColors().getDashboardColorSet()},getSummaryFillColor:function(){return t.summaryFillColor},getColorPickerModel:function(){return t.colorPickerModel},getUIContext:function(){return t.uiContext}}}));e.default=l},function(t,e,o){"use strict";var i=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var n=o(9),r=o(12),a=i(o(246)),s=i(o(75)),l=o(13),u=o(28),c=o(7),d=o(76),p=n.types.model("PaletteModel",{label:n.types.optional(n.types.string,""),fills:n.types.optional(n.types.array(d.FillModel),[])}).views((function(t){return{getLabel:function(){return t.label},getFills:function(){return t.fills}}})).actions((function(t){return{setLabel:function(e){t.label=e},setFills:function(e){var o;t.fills.length=0,(o=t.fills).push.apply(o,e)}}})),f=n.types.model("ConditionalFormatModel",{dataItemId:n.types.string,paletteId:n.types.string,colorBy:n.types.maybe(n.types.string),backgroundOpacity:n.types.maybe(n.types.number),scale:n.types.string,rules:n.types.optional(n.types.array(a.default),[]),palette:n.types.optional(p,{label:"",fills:[]}),colorPickerModel:n.types.maybe(s.default),displayRuleNotification:n.types.optional(n.types.boolean,!0),hasMinMax:n.types.optional(n.types.boolean,!1)}).volatile((function(){return{parent:null}})).actions((function(t){return{_setPaletteValues:function(e){void 0===e&&(e={}),t.palette.setLabel(e.label),t.palette.setFills(e.fills)}}})).actions((function(t){return{afterCreate:function(){t.parent=n.getParent(t,2);var e=t.paletteId;t.colorPickerModel=s.default.create({paletteId:e,ancestorLevel:3}),t.rules.forEach((function(e){e.setConditionTypeOptions(t.scale)}))},addRule:function(){t.parent.getConditionalFormattingApi().addRule(t.dataItemId,t.rules.length,c.RULE_TYPES.THRESHOLD);var e=t.rules.length-1;t.rules[e].setExpand("ConditionalFormatModel:addRule",e,!0)},deleteRule:function(e){t.parent.getConditionalFormattingApi().deleteRule(t.dataItemId,e)},moveRule:function(e,o){t.parent.getConditionalFormattingApi().moveRule(t.dataItemId,e,o)},setPaletteId:function(e){t.paletteId!==e&&t.parent.getConditionalFormattingApi().setPaletteId(t.dataItemId,e)},setScale:function(e){t.scale!==e&&t.parent.getConditionalFormattingApi().setScale(t.dataItemId,e)},setBackgroundOpacity:function(e){t.backgroundOpacity!==e&&t.parent.getConditionalFormattingApi().setBackgroundOpacity(t.dataItemId,e)},loadPalette:function(){return t.parent.loadPalette(t.paletteId).then((function(e){t._setPaletteValues(e)}))},setDisplayRuleNotification:function(e){t.displayRuleNotification=e}}})).actions((function(t){return{setBackgroundOpacityValueFromContentModel:function(e){t.backgroundOpacity=e},setPaletteIdValueFromContentModel:function(e){t.paletteId=e,t.colorPickerModel.setPaletteId(e),t.loadPalette()},setScaleValueFromContentModel:function(e){t.scale=e,t.rules.forEach((function(t){t.setConditionTypeOptions(e)}))},setColorByValueFromContentModel:function(e){t.colorBy=e},addRuleValueFromContentModel:function(e,o){if(!(o instanceof u.Rule))throw new Error("Invalid ruleToAdd to mst model");var i=o.getMSTJsonSpec();t.rules.splice(e,0,i)},deleteRuleValueFromContentModel:function(e){t.setDisplayRuleNotification(!0),n.destroy(t.rules[e])},moveRuleValueFromContentModel:function(e,o){t.rules.splice(o,0,n.detach(t.rules[e]))},setCurrentColorBy:function(e){t.colorBy!==e&&t.parent.getConditionalFormattingApi().setColorBy(t.dataItemId,e)},setHasMinMaxValueFromContentModel:function(e){t.hasMinMax=e}}})).views((function(t){return{getDataItemId:function(){return t.dataItemId},getPalette:function(){return t.palette},getPaletteId:function(){return t.paletteId},getColorBy:function(){return t.colorBy},getBackgroundOpacity:function(){return t.backgroundOpacity},getScale:function(){return t.scale},getRules:function(){return t.rules},getRuleByIndex:function(e){return e<t.rules.length?t.rules[e]:null},getColorPickerModel:function(){return t.colorPickerModel},getDisplayRuleNotification:function(){return t.displayRuleNotification},getHasMinMax:function(){return t.hasMinMax},get shouldAddRuleBeDisabled(){var e=l.ConditionalFormatSpecHelper.isKpiVis(t.parent.getVisType())&&t.rules.length===c.RULE_KPI_LIMIT;return e||t.rules.length||t.scale!==c.RULE_SCALES.NUMERIC||(e=!t.hasMinMax),e},getFormattedValue:function(e){var o,i=t.scale===c.RULE_SCALES.PERCENTAGE;return r.isNumber(e)&&(o=t.parent.getUIContext().format(e,{maximumFractionDigits:c.RULE_CONDITION_MAXIMUM_FRACTION_DIGITS,type:"number"})+(i?c.RULE_SCALES.PERCENTAGE:"")),o},get currentColorBy(){return t.colorBy},get hasColorBy(){return t.colorBy&&t.colorBy.length>0},get numberOfRules(){return t.rules.length},get hasReachMaxRuleLimit(){return l.ConditionalFormatSpecHelper.isKpiVis(t.parent.getVisType())&&t.rules.length>=3}}}));e.default=f},function(t,e,o){"use strict";var i=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var n=o(9),r=i(o(1)),a=o(7),s=i(o(72)),l=o(28),u=function(t){return"GT"===t?">":"GTE"===t?">=":"LT"===t?"<":"LTE"===t?"<=":"ET"===t?"==":"IT"===t?"inTop":"IB"===t?"inBottom":"MI"===t?"missing":null},c=function(t,e){var o=t.find((function(t){return t.value===e}));return null==o?void 0:o.paired.map((function(t){return{value:t,label:r.default.get("conditionalFormatting"+t)}}))},d=n.types.model("Condition",{type:n.types.maybeNull(n.types.string),value:n.types.maybe(n.types.number)}).actions((function(t){return{setType:function(e){t.type=u(e)},setValue:function(e){t.value=e}}})).views((function(t){return{getType:function(){return t.type},getValue:function(){return t.value},get conditionType(){return">"===(e=t.type)?"GT":">="===e?"GTE":"<"===e?"LT":"<="===e?"LTE":"=="===e?"ET":"inTop"===e?"IT":"inBottom"===e?"IB":"missing"===e?"MI":null;var e}}}));e.ConditionModelFactory=d;var p=n.types.model("RuleStyleModel",{textColor:n.types.string,fillColor:n.types.maybe(n.types.string),shape:n.types.maybe(n.types.string),textHexColor:n.types.optional(n.types.string,""),fillHexColor:n.types.optional(n.types.string,""),fillPattern:n.types.optional(n.types.string,"")}).actions((function(t){return{setTextColor:function(e){t.textColor=e},setFillColor:function(e){t.fillColor=e},setShape:function(e){t.shape=e},setTextHexColor:function(e){t.textHexColor=e},setFillHexColor:function(e){t.fillHexColor=e},setFillPattern:function(e){t.fillPattern=e}}})).views((function(t){return{getTextColor:function(){return t.textColor},getFillColor:function(){return t.fillColor},getShape:function(){return t.shape},getTextHexColor:function(){return t.textHexColor},getFillHexColor:function(){return t.fillHexColor},getFillPattern:function(){return t.fillPattern},get hasTextHexColor(){return t.textHexColor&&t.textHexColor.length>0},get hasFillColor(){return t.fillColor&&t.fillColor.length>0},get hasShape(){return t.shape&&"none"!==t.shape}}}));e.RuleStyleModelFactory=p;var f=n.types.model("RuleModel",{ruleType:n.types.string,startCondition:d,endCondition:n.types.maybeNull(d),ruleStyle:p,operator:n.types.maybe(n.types.string),expand:n.types.optional(n.types.boolean,!1)}).volatile((function(){return{parent:null,grandParent:null,dropdownOptions:null,startConditionOptions:null,endConditionOptions:null}})).actions((function(t){return{setStartConditionOptions:function(){t.startConditionOptions=c(t.dropdownOptions,void 0)},setEndConditionOptions:function(){t.endConditionOptions=c(t.dropdownOptions,t.startCondition.conditionType)}}})).actions((function(t){return{afterCreate:function(){t.parent=n.getParent(t,2),t.grandParent=n.getParent(t,4)},setConditionTypeOptions:function(e){t.dropdownOptions=s.default.getRuleOptionsBaseOnVisType(t.grandParent.uiContext.isKpiVis(),e),t.setStartConditionOptions(),t.setEndConditionOptions()},setExpand:function(e,o,i){t.expand=i,t.grandParent.uiContext.setExpandRuleFlag(e,t.parent.getDataItemId(),o,i)},setStartType:function(e,o){t.startCondition.type!==o&&t.grandParent.getConditionalFormattingApi().setRuleStartConditionType(t.parent.getDataItemId(),e,u(o))},setStartValue:function(e,o){t.startCondition.value!==o&&t.grandParent.getConditionalFormattingApi().setRuleStartConditionValue(t.parent.getDataItemId(),e,o)},setEndType:function(e,o){t.endCondition.type!==o&&t.grandParent.getConditionalFormattingApi().setRuleEndConditionType(t.parent.getDataItemId(),e,u(o))},setEndValue:function(e,o){t.endCondition.value!==o&&t.grandParent.getConditionalFormattingApi().setRuleEndConditionValue(t.parent.getDataItemId(),e,o)},setFillColor:function(e,o){t.ruleStyle.fillColor!==o&&t.grandParent.getConditionalFormattingApi().setRuleStyleFillColor(t.parent.getDataItemId(),e,o)},setTextColor:function(e,o){t.ruleStyle.textColor!==o&&t.grandParent.getConditionalFormattingApi().setRuleStyleTextColor(t.parent.getDataItemId(),e,o)},setShape:function(e,o){t.ruleStyle.shape!==o&&t.grandParent.getConditionalFormattingApi().setRuleStyleShape(t.parent.getDataItemId(),e,o)},setOperator:function(e,o){t.operator!==o&&t.grandParent.getConditionalFormattingApi().setRangeOperator(t.parent.getDataItemId(),e,o)},setTextHexColor:function(e){t.ruleStyle.setTextHexColor(e)},setFillHexColor:function(e){t.ruleStyle.setFillHexColor(e)},setFillPattern:function(e){t.ruleStyle.setFillPattern(e)},setStartConditionTypeValueFromContentModel:function(e){t.startCondition.type=e,t.setEndConditionOptions()},setStartConditionValueValueFromContentModel:function(e){t.startCondition.value=e},setEndConditionTypeValueFromContentModel:function(e){t.endCondition.type=e},setEndConditionValueValueFromContentModel:function(e){t.endCondition.value=e},setRangeOperatorValueFromContentModel:function(e,o){if(t.operator=e,t.operator===a.RangeOperators.and){if(!(o instanceof l.Condition))throw new Error("Invalid endCondition");t.endCondition=d.create(o.getMSTJsonSpec())}else n.destroy(t.endCondition)},setRuleStyleFillColorValueFromContentModel:function(e){t.ruleStyle.fillColor=e,t.ruleStyle.fillHexColor=""},setRuleStyleTextColorValueFromContentModel:function(e){t.ruleStyle.textColor=e,t.ruleStyle.textHexColor=""},setRuleStyleShapeValueFromContentModel:function(e){t.ruleStyle.shape=e}}})).views((function(t){return{getExpand:function(){return t.expand},getStartCondition:function(){return t.startCondition},getEndCondition:function(){return t.endCondition},getTextColor:function(){return t.ruleStyle.getTextColor()},getFillColor:function(){return t.ruleStyle.getFillColor()},getShape:function(){return t.ruleStyle.getShape()},getOperator:function(){return t.operator},getTextHexColor:function(){return t.ruleStyle.getTextHexColor()},getFillHexColor:function(){return t.ruleStyle.getFillHexColor()},getFillPattern:function(){return t.ruleStyle.getFillPattern()},getConditionLabels:function(e){if(e&&e.conditionType){var o=e.conditionType,i=t.grandParent.getConditionalFormattingApi().getDataItemFormatSpec(t.parent.getDataItemId());if(o&&o.length>0)return{type:r.default.get("conditionalFormatting"+o),value:t.grandParent.getUIContext().format(e.value,i)}}return null},getStartConditionOptions:function(){return t.startConditionOptions||t.setConditionTypeOptions(t.parent.getScale()),t.startConditionOptions},getEndConditionOptions:function(){return t.endConditionOptions||t.setConditionTypeOptions(t.parent.getScale()),t.endConditionOptions},get hasEndCondition(){return!!t.endCondition},get hasTextHexColor(){return t.ruleStyle.hasTextHexColor},get hasFillColor(){return t.ruleStyle.hasFillColor},get hasFillPattern(){return!!this.getFillPattern()},get hasShape(){return t.ruleStyle.hasShape},get hasOperator(){return t.operator!==a.RangeOperators.none},get label(){var e=this.getConditionLabels(t.startCondition),o=this.getConditionLabels(t.endCondition);return o?r.default.get("conditionalFormattingAndRuleConditionLabel",{startType:e.type,startValue:e.value,endType:o.type,endValue:o.value}):e?r.default.get("conditionalFormattingRuleConditionLabel",{type:e.type,value:e.value}):null},get startConditionValue(){return t.parent.getFormattedValue(t.startCondition.getValue())},get endConditionValue(){return t.parent.getFormattedValue(t.endCondition.getValue())},get dropDownValues(){return t.dropdownOptions.map((function(t){return t.value}))}}}));e.default=f},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(9),n=function(t){return t&&t.__esModule?t:{default:t}}(o(44)),r=i.types.model("UIPanelModel",{hasTargetValue:i.types.optional(i.types.boolean,!1)}).volatile((function(){return{measureDataItem:null,panelId:"mainPanel",previousPanelId:"mainPanel",measures:[],uiContext:null,getMSTConditionalFormatModelFn:null}})).views((function(t){return{getMeasureDataItem:function(){return t.measureDataItem},getDataItemId:function(){return t.measureDataItem?t.measureDataItem.getDataItemId():null},getDataItemLabel:function(){return t.measureDataItem?t.measureDataItem.getLabel():null},getMSTConditionalFormatModel:function(){var e;return(e=t.uiContext.isKpiVis()?t.measureDataItem?t.measureDataItem:n.default.getPlaceHolderMeasureDataItem():t.measureDataItem)?t.getMSTConditionalFormatModelFn(e.getDataItemId()):null},getPanelId:function(){return t.panelId},getMeasures:function(){return t.measures}}})).views((function(t){return{get isDisabled(){return!t.measureDataItem||!!t.uiContext.isKpiVis()&&!t.getMSTConditionalFormatModelFn(t.measureDataItem.getDataItemId()).hasColorBy&&!t.hasTargetValue},get isChildCFPanel(){return"childCFPanel"===t.panelId}}})).actions((function(t){return{_updateDisplayPanel:function(){"mainPanel"!==t.previousPanelId&&(t.uiContext.isKpiVis()?t.previousPanelId="mainPanel":t.uiContext.hasDisplayedChildPanel()||t.uiContext.displayChildPanelForMeasure(t.measureDataItem))}}})).actions((function(t){return{afterCreate:function(){var e=i.getEnv(t),o=e.measures,n=e.getMSTConditionalFormatModelFn;t.measures=o,t.getMSTConditionalFormatModelFn=n},setMeasureDataItem:function(e){t.measureDataItem=e},setPanelId:function(e){t.panelId=e},setHasTargetValue:function(e){t.hasTargetValue=e},resetPanelId:function(){t.uiContext.isKpiVis()?t.panelId="mainPanel":"childPalettePanel"===t.panelId?t.panelId="childCFPanel":t.panelId="mainPanel"},setMeasures:function(e){void 0===e&&(e=[]);var o=t.measures;if(t.measures=e,t.measureDataItem)if(t.isDisabled)t.uiContext.closeAllChildPanel();else if(t.measures.find((function(e){return e.getDataItemId()===t.measureDataItem.getDataItemId()})))t._updateDisplayPanel();else if(t.previousPanelId=t.panelId,o.length>0&&o.length===t.measures.length){for(var i,n=function(e){var n=-1;o.find((function(o,i){o.getDataItemId()===t.measures[e].getDataItemId()&&(n=i)})),-1!==n?o.splice(n,1):i=t.measures[e]},r=0;r<t.measures.length&&!i;r++)n(r);t.measureDataItem=i}else t.uiContext.closeAllChildPanel()},setUIContext:function(e){t.uiContext=e}}}));e.default=r},function(t,e,o){"use strict";var i=function(t,e,o,i){return new(o||(o=Promise))((function(n,r){function a(t){try{l(i.next(t))}catch(t){r(t)}}function s(t){try{l(i.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?n(t.value):(e=t.value,e instanceof o?e:new o((function(t){t(e)}))).then(a,s)}l((i=i.apply(t,e||[])).next())}))},n=function(t,e){var o,i,n,r,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,i&&(n=2&r[0]?i.return:r[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,r[1])).done)return n;switch(i=0,n&&(r=[2&r[0],n.value]),r[0]){case 0:case 1:n=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!((n=(n=a.trys).length>0&&n[n.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!n||r[1]>n[0]&&r[1]<n[3])){a.label=r[1];break}if(6===r[0]&&a.label<n[1]){a.label=n[1],n=r;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(r);break}n[2]&&a.ops.pop(),a.trys.pop();continue}r=e.call(t,a)}catch(t){r=[6,t],i=0}finally{o=n=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}};Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){return t&&t.__esModule?t:{default:t}}(o(249)),a=["RuleComponent","ConditionalFormatModel:addRule"],s=function(){},l=function(t,e){return Object.keys(e).includes(t)},u=function(){function t(t){if(void 0===t&&(t={}),this.dashboardApi=t.dashboardApi,!this.dashboardApi)throw new Error("Invalid dashboardApi");if(this.condFormatApi=t.condFormatApi,this.colors=t.colors,this.icons=t.icons,this.conditionalFormattingState=t.conditionalFormattingState,this.dataSourceUI=t.dataSourceUI,this.contentId=t.contentId,this.paletteServicePromise=this.dashboardApi.getGlassSvc(".Palette"),this.colorPalettes=new s,this.palettes=new s,this.paletteColors=new Map,this._disposeFns=[],this.dashboardApi.getFeature("InAppSlideoutState")){this._canvasReadyPromise=this.dashboardApi.getCanvasWhenReady();var e=this.dashboardApi.getFeature("InAppSlideoutDOM");this._disposeFns.push(e.onDomStateChange(this._onSlideoutDOMMountedChange.bind(this))),this.propertiesManager=this.dashboardApi.getFeature("propertiesManager")}this.conditionalFormattingState.setUIContext(this)}return t.prototype.destroy=function(){this._removeUIComponents(),this._disposeFns.forEach((function(t){return t()})),this._disposeFns.length=0},t.prototype.paletteServiceIsReady=function(){var t=this;return this.paletteServicePromise.then((function(e){t.paletteService=e}))},t.prototype.getPaletteService=function(){return this.paletteService},t.prototype.getConditionalFormattingState=function(){return this.conditionalFormattingState},t.prototype.getIcons=function(){return this.icons},t.prototype.setMeasureDataItem=function(t){this.conditionalFormattingState.setMeasureDataItem(t)},t.prototype.selectMeasureAddedToSlot=function(t){return this.conditionalFormattingState.selectMeasureAddedToSlot(t)},t.prototype.setMeasures=function(t){this.conditionalFormattingState.setMeasures(t)},t.prototype.getConditionalFormatModel=function(){return this.conditionalFormattingState.getConditionalFormatModel()},t.prototype.format=function(t,e){return r.default.format(t,e)},t.prototype.getNumberFromFormattedValue=function(t){void 0===t&&(t=""),t.endsWith("%")&&(t=t.substring(0,t.length-1));var e=r.default.formatNumber(1e3).substring(1,2),o=r.default.formatNumber(.1).substring(1,2),i=new RegExp("\\"+e,"g"),n=new RegExp("\\"+o,"g");return Number(t.replace(i,"").replace(n,"."))},t.prototype.setHasTargetValue=function(t){this.conditionalFormattingState.setHasTargetValue(t)},t.prototype.displayChildPanel=function(t){var e;void 0===t&&(t={});var o=this.condFormatApi.getProvider();if(o&&o.addChildPropertyPanel&&(e=o.addChildPropertyPanel.bind(o)),e||(e=this.propertiesManager.addChild.bind(this.propertiesManager)),!e)throw new Error("Cannot addChild panel");e(t),this.conditionalFormattingState.setCurrentUIPanelId(t.content.panelId)},t.prototype.hasDisplayedChildPanel=function(){return!!this.propertiesManager.getCurrentChild()},t.prototype.closeAllChildPanel=function(){this.propertiesManager.closeAllChild()},t.prototype.displayChildPanelForMeasure=function(t){if(!t)throw new Error("Invalid measureDataItem provided");this.conditionalFormattingState.getMstForUIPanels().setMeasureDataItem(t);var e={label:t.getDataItemId(),overlay:!0,width:"300px",content:{id:"conditionalColor",module:"dashboard-analytics/features/content/conditionalFormatting/ConditionalFormatting",moduleClass:"ConditionalColorPanel",component:"dashboard",uiContext:this,panelId:"childCFPanel"}};this.displayChildPanel(e)},t.prototype.removeUiConditionalColorPanel=function(){this.uiConditionalColorPanel&&(this.uiConditionalColorPanel.remove(),this.uiConditionalColorPanel=null,this.rulesComponentReactRef=null,this.conditionalFormattingState.resetCurrentUIPanelId())},t.prototype.getDataSourceUI=function(){return this.dataSourceUI},t.prototype.getSourceId=function(){return this.sourceId},t.prototype.setSourceId=function(t){this.sourceId=t},t.prototype.getDataSource=function(){return this.dataSource},t.prototype.setDataSource=function(t){this.dataSource=t},t.prototype.getContentId=function(){return this.contentId},t.prototype.hasValidDataSourceId=function(){return this.sourceId&&this.sourceId.length>0},t.prototype.isKpiVis=function(){return this.conditionalFormattingState.isKpiVis()},t.prototype.getColors=function(){return this.colors},t.prototype.setExpandRuleFlag=function(t,e,o,i){if(!a.includes(t)||!i&&"RuleComponent"!==t)throw new Error("setExpandRuleFlag is not allowed for "+t);this.conditionalFormattingState.setExpandRuleFlag(e,o,i)},t.prototype.registerUIConditionalColor=function(t){this.uiConditionalColor&&this.uiConditionalColor.remove(),this.rulesComponentReactRef&&"ConditionalColor"===this.rulesComponentReactRef.parentId&&(this.rulesComponentReactRef=null),this.uiConditionalColor=t},t.prototype.registerUIConditionalColorPanel=function(t){this.uiConditionalColorPanel&&this.uiConditionalColorPanel.remove(),this.rulesComponentReactRef&&"ConditionalColorPanel"===this.rulesComponentReactRef.parentId&&(this.rulesComponentReactRef=null),this.uiConditionalColorPanel=t},t.prototype.setRulesComponentReactRef=function(t){this.rulesComponentReactRef={reactRef:t,parentId:this.uiConditionalColorPanel?"ConditionalColorPanel":"ConditionalColor"}},t.prototype.setConditionalColorPanelComponent=function(t){this.conditionalColorPanelComponents=t},t.prototype.onCloseChangePaletteView=function(){var t=this.rulesComponentReactRef?this.rulesComponentReactRef.reactRef:null,e=t&&t.current?t.current.child:{};e.expandExpandableTile&&e.expandExpandableTile(),this.conditionalFormattingState.resetCurrentUIPanelId()},t.prototype.collapseExpandableTile=function(){var t=this.rulesComponentReactRef?this.rulesComponentReactRef.reactRef:null,e=t&&t.current?t.current.child:{};e.collapseExpandableTile&&e.collapseExpandableTile()},t.prototype.getPaletteColorsForPaletteId=function(t){return this.paletteColors.get(t)||[]},t.prototype.getColorPalette=function(t){return i(this,void 0,void 0,(function(){var e=this;return n(this,(function(o){return l(t,this.colorPalettes)||(this.colorPalettes[t]=this.colors.getPaletteColors({paletteId:t,type:"ConditionalPalette",addMissingBaseColors:!0})),[2,this.colorPalettes[t].then((function(o){return e.paletteColors.set(t,o),o}))]}))}))},t.prototype.getFavoriteColors=function(){return i(this,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,this.paletteService.getFavoriteColors()];case 1:return[2,t.sent()||[]]}}))}))},t.prototype.getPalette=function(t){return i(this,void 0,void 0,(function(){return n(this,(function(e){return t&&0!==t.length?(l(t,this.palettes)||(this.palettes[t]=this.colors.getPalette({paletteId:t,type:"ConditionalPalette"})),[2,this.palettes[t]]):[2,Promise.resolve([])]}))}))},t.prototype.getPalettes=function(){return i(this,void 0,void 0,(function(){var t;return n(this,(function(e){switch(e.label){case 0:return t=!this.isKpiVis(),[4,this.colors.getPalettes({type:"ConditionalPalette",forProperties:!0,includePatternPalettes:t})];case 1:return[2,e.sent()]}}))}))},t.prototype.getConditionalFormatsModel=function(){return this.conditionalFormattingState.getStateModel()},t.prototype._onSlideoutDOMMountedChange=function(t){var e=this;return void 0===t&&(t={}),"PropertiesPane"!==t.current?Promise.resolve():this._canvasReadyPromise.then((function(o){var i=o.getSelectedContentList();if(1===i.length){var n=i[0],r=n&&n.getType(),a=n&&n.getId();if("widget.live"===r&&a===e.getContentId())if("mounted"===t.type){var s=e.rulesComponentReactRef?e.rulesComponentReactRef.reactRef:null,l=s&&s.current?s.current.child:{};l.onPropertiesPanelMounted&&l.onPropertiesPanelMounted(),e.conditionalColorPanelComponents&&e.conditionalColorPanelComponents.onSlideoutMounted()}else e._removeUIComponents()}}))},t.prototype._removeUIComponents=function(){this.uiConditionalColorPanel&&(this.uiConditionalColorPanel.remove(),this.uiConditionalColorPanel=null,this.rulesComponentReactRef=null),this.uiConditionalColor&&(this.uiConditionalColor.remove(),this.uiConditionalColor=null),this.rulesComponentReactRef=null,this.conditionalColorPanelComponents=null},t}();e.default=u},function(t,e,o){"use strict";e.__esModule=!0,e.default=void 0;var i=o(250);e.default=i},function(t,e){t.exports=__WEBPACK_EXTERNAL_MODULE__250__},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(12),n=function(t){return t&&t.__esModule?t:{default:t}}(o(252)),r=function(){function t(){}return t.getMinMaxValuesFromQuery=function(t,e,o,n,r){if(e.hasUnavailableMetadataColumns())return Promise.resolve();var a=[];e.getSlots().getSlotList().forEach((function(e){e.getDataItemList().forEach((function(o){if(!o.getBinning()&&"_multiMeasuresSeries"!==o.getId()){var i=e.getDefinition().getType(),n=e.getDefinition().getSubType(),r="latitude"===n||"longitude"===n?"attribute":o.getType();("category"===i||"any"===i&&"attribute"===r||t===o.getId())&&a.push(o)}}))}));var s=this._getFilterSpecListByVisualization(e,o,n);s.push.apply(s,e.getLocalFilters().getFilterList());var l=i.uniq(a.map((function(t){return t.getColumnId()})));return s=s.filter((function(t){var o=l.includes(t.columnId);if(o)return o;var i=e.getDataSource().getMetadataColumn(t.columnId);return i&&"attribute"===i.getType()})),r.getDataItemsMinMaxValues(e.getDataSource().getId(),a,[t],s).then((function(t){var e={min:void 0,max:void 0};return t.getRowCount()&&(e.min=Math.floor(t.getValue(0,0).value),e.max=Math.ceil(t.getValue(0,1).value)),e}))},t._getFilterSpecListByVisualization=function(t,e,o){var r=e.getFeature("EventGroups"),a=e.getFeature("GlobalFilters"),s=[],l=t.getDataSource(),u=e.getAppConfig("pageContainerType"),c=n.default.getPageContent(o,u),d=c&&c.getId();if(l&&(s.push.apply(s,a.getFilterList({origin:"filter",sourceId:l.getId(),scope:d},o.getId())),!1!==t.getDefinition().getProperty("reactToExternalBrushing"))){var p=r.getGroupId(o.getId());s.push.apply(s,a.getFilterList({origin:"visualization",sourceId:l.getId(),scope:d,eventGroupId:p},o.getId()))}return i.filter(s,(function(t){return!t.filterBins}))},t}();e.default=r},function(t,e,o){"use strict";e.__esModule=!0,e.default=void 0;var i=o(253);e.default=i},function(t,e){t.exports=__WEBPACK_EXTERNAL_MODULE__253__}])})),define("dashboard-analytics/features/content/dnD/api/VisDnDUtilsAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.mapColumns=function(){},t.prototype.acceptsOlapV2=function(){},t.prototype.addMembersAsLocalFilters=function(){},t.prototype.accepts=function(){},t.prototype.onDrop=function(){},t}()})),define("dashboard-analytics/features/content/dnD/OlapHelper.v2",[],(function(){return function(){function t(e,o){_classCallCheck(this,t),this.dashboard=e,this.visualization=o}return t.prototype.acceptsOlapV2=function(t){var e=t.targetSlotId,o=t.sourceSlotId,i=t.indexInSourceSlot,n=t.sourceColumns,r=t.indexInTargetSlot,a=t.isReplace;if(!!this.dashboard.getGlassCoreSvc(".FeatureChecker").checkValue("dashboard","expandCollapse","disabled")||"Crosstab"!==this.visualization.getType())return!0;var s=this.visualization.getSlots(),l=s.getSlot(e),u=o?s.getSlot(o):void 0,c=u?u.getDataItemList().slice(i,i+1).map((function(t){return t.getMetadataColumn()})):n;if("category"!==l.getDefinition().getType()&&(!u||"category"!==u.getDefinition().getType()))return!0;var d=!1;if(c.find((function(t){var e=t.isOlapColumn();return d=d||e,e&&"fact"===t.getType()})))return!1;if(!d)return!0;var p=void 0;p=u?this._acceptsSlotItem({slotsAPI:s,targetSlotAPI:l,sourceSlotAPI:u,sourceMetadataColumns:c,isReplace:a,indexInTargetSlot:r,indexInSourceSlot:i}):this._acceptsMetadataColumns({slotsAPI:s,targetSlotAPI:l,sourceMetadataColumns:c});var f=l.getDataItemList().map((function(t){return t.getMetadataColumn()})),h=e===o;return p&&this._acceptsColumnsInSlot({targetMetadataColumns:f,sourceMetadataColumns:c,indexInTargetSlot:r,isReplace:a,isSameSlot:h,indexInSourceSlot:i})},t.prototype._getHierarchy=function(t){if(t.isOlapColumn()){if(t.isHierarchy())return t;if(t.isLevel())return t.getParent();if(t.isProperty()){var e=t.getParent().getParent();return e&&e.isHierarchy()&&e}}return null},t.prototype._inSameHierarchy=function(t,e){if(t.isOlapColumn()&&e.isOlapColumn()){var o=this._getHierarchy(t),i=this._getHierarchy(e);return o&&i&&o.getId()===i.getId()}return!1},t.prototype._getHierarchies=function(t){var e=this,o=[];return t.forEach((function(t){var i=t&&e._getHierarchy(t);i&&(o.find((function(t){return t===i.getId()}))||o.push(i.getId()))})),o},t.prototype._acceptsSlotItem=function(t){var e=this,o=t.slotsAPI,i=t.targetSlotAPI,n=t.sourceSlotAPI,r=t.sourceMetadataColumns,a=t.isReplace,s=t.indexInTargetSlot,l=t.indexInSourceSlot,u=i.getDataItemList().map((function(t){return t.getMetadataColumn()})),c=n.getDataItemList().map((function(t){return t.getMetadataColumn()})),d=r[0];if(a){var p=u[s];u[s]=d,c[l]=p}else u.splice(s,0,d),c.splice(l,1);var f=o.getSlotList().filter((function(t){return t.getDefinition().getId()!==i.getDefinition().getId()&&t.getDefinition().getId()!==n.getDefinition().getId()&&"category"===t.getDefinition().getType()})).map((function(t){return t.getDefinition().getId()})).map((function(t){return o.getSlot(t).getDataItemList().map((function(t){return t.getMetadataColumn()}))})),h=[];return i.getDefinition().getId()===n.getDefinition().getId()||("category"===i.getDefinition().getType()&&f.push(u),"category"===n.getDefinition().getType()&&f.push(c)),f.every((function(t){var o=e._getHierarchies(t);return!h.some((function(t){return-1!==o.indexOf(t)}))&&(h.push.apply(h,o),!0)}))},t.prototype._acceptsMetadataColumns=function(t){var e=this,o=t.slotsAPI,i=t.targetSlotAPI,n=t.sourceMetadataColumns,r=o.getSlotList().filter((function(t){return"category"===t.getDefinition().getType()})),a=[];r.forEach((function(t){var e=t.getDataItemList().filter((function(t){return"_multiMeasuresSeries"!==t.getColumnId()}));a.push.apply(a,e)}));var s=a.map((function(t){return t.getMetadataColumn()})),l=i.getDataItemList().filter((function(t){return"_multiMeasuresSeries"!==t.getColumnId()})).map((function(t){return t.getColumnId()}));return!s.filter((function(t){return-1===l.indexOf(t.getId())})).some((function(t){return n.some((function(o){return e._inSameHierarchy(o,t)}))}))},t.prototype._acceptsColumnsInSlot=function(t){var e=t.targetMetadataColumns,o=t.sourceMetadataColumns,i=t.indexInTargetSlot,n=t.isReplace,r=t.isSameSlot,a=t.indexInSourceSlot;if(!e||!o||void 0===i||void 0===n)return!1;var s=[].concat(e);if(i<0&&(i=s.length),n)if(r){var l=s.splice.apply(s,[i,1].concat(o));s.splice.apply(s,[a,1].concat(l))}else s.splice.apply(s,[i,1].concat(o));else r&&(s.splice(a,1),a<i&&i--),s.splice.apply(s,[i,0].concat(o));return this._isColumnOrderValidInSlot(s)},t.prototype._isColumnOrderValidInSlot=function(t){var e=this,o={};return t.forEach((function(t,i){var n=e._getHierarchy(t);n&&(o[n.getId()]?o[n.getId()].metadataColumns.push({metadataColumn:t,index:i}):o[n.getId()]={metadataColumns:[{metadataColumn:t,index:i}],hierarchy:n})})),this._isHierarchyInNaturalOrderAndConsecutiveNestingLevels(o)},t.prototype._isHierarchyInNaturalOrderAndConsecutiveNestingLevels=function(t){var e=this;return!Object.values(t).some((function(t){var o=t.hierarchy.getHierarchyLevelIds(),i=t.metadataColumns.map((function(t){var e=t.metadataColumn;return e.isHierarchy()?-1:(e.isProperty()&&(e=e.getParent()),o.findIndex((function(t){return e.getId()===t})))}));return!e._isDescSorted(i)||(i=t.metadataColumns.map((function(t){return t.index})),!e._isHierarchyInConsecutiveNestingLevels(i)||void 0)}))},t.prototype._isHierarchyInConsecutiveNestingLevels=function(t){for(var e=!0,o=0;o<=t.length-2;o++)if(t[o]+1!==t[o+1]){e=!1;break}return e},t.prototype._isDescSorted=function(t){for(var e=!0,o=0;o<t.length-1;o++)if(t[o]>t[o+1]){e=!1;break}return e},t}()})),define("dashboard-analytics/features/content/dnD/LocalFilterMemberDNDHelper",["underscore"],(function(t){return function(){function e(){_classCallCheck(this,e)}return e.addOrUpdateFilter=function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments[1],n=o.localFilters,r=o.localFiltersSpec,a=!t.isBoolean(o.doUpdateFilters)||o.doUpdateFilters;o.bReplace&&a&&n.removeFilter(o.itemContext,i);var s=n.getFilterList().find((function(t){return t.columnId===o.itemContext.itemId}))||{},l=n.filterExists(o.itemContext),u=e.getFilterContext(l,o.newLocalFilters,s);return s.conditions&&(s.conditionsInfo={},s.conditionsInfo.conditions=s.conditions,s.conditionsInfo.excludedValues=s.excludedValues,delete s.conditions,delete s.excludedValues),r&&r.push({hasFilters:l,itemContext:o.itemContext,filterContext:u}),a&&(l?n.editFilter(o.itemContext,u,i):n.addFilter(o.itemContext,u,i)),l},e.getItemContext=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1],o=e.getId(),i=t.find((function(t){return t.getColumnId()===o}))||e,n=i.getId();return{uniqueId:n,itemId:i.getColumnId?i.getColumnId():n}},e.createFilterSpec=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.length>0&&(o.values=o.values||[],o.overrideHierarchyDefaultSelection=o.overrideHierarchyDefaultSelection||!0,t.forEach((function(t){e.filterValueExist(o.values,t.id)||o.values.push({u:t.id,d:t.memberCaption})}))),o},e.getFilterContext=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=void 0;return t&&"notin"===i.operator?(e.removeFromExcludeValues(o,i),i.exclude=!0,n=i):n=e.createFilterSpec(o,i),n},e.removeFromExcludeValues=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=function(t,i){e.filterValueExist(o.values,i)&&t.forEach((function(e,o){e.u===i&&t.splice(o,1)}))};return t.length>0&&t.forEach((function(t){i(o.values,t.id)})),o},e.filterValueExist=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1];return!!t.find((function(t){return t.u===e}))},e.hasDataItem=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1];return!!t.find((function(t){return t.getColumnId()===e}))},e}()})),define("dashboard-analytics/features/content/dnD/VisMapColumnsToSlot",["underscore"],(function(t){return function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,e),this.content=t.content,this.visualization=t.visualization,this.slots=this.visualization.getSlots(),this.transaction=t.transaction}return e.prototype.mapColumns=function(e,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments[3],r=o,a=t.pluck(o,"metadataColumn"),s=t.chain(o).pluck("original").compact().pluck("metadataColumn").value(),l=this.slots.getSlot(e);if(l){var u=i.position,c=i.bReplace,d=i.activeDataSourceId,p=!t.isBoolean(i.canSetLocalFilters)||i.canSetLocalFilters,f=l.getDataItemList(),h=this.visualization.getLocalFilters(),g=this.transaction.startTransaction(n);if(this._setDataSource(a,g,d),null===this.visualization.getDataSource())return void this.transaction.endTransaction(g);if(c&&f.length){var m={itemId:f[u].getColumnId()};h.filterExists(m)&&h.removeFilter(m,g);var _=[f[u].getId()];l.removeDataItems(_,g),null===this.visualization.getDataSource()&&this._setDataSource(a,g,d)}var y=[];if(p){var v=this._getLocalFilters({slot:l,columns:r,bReplace:c},g);y.push.apply(y,v)}a=t.pluck(r,"metadataColumn");var b=t.map(a,(function(t){return{columnId:t.getId()}}));if(b.length){var I=l.addDataItems(b,u,g),S=s;S&&S.forEach((function(t,e){var o=t.getParent()?t.getParent().getId():null;o&&"drillgroup"===t.getParent().getObjectType().toLowerCase()&&I[e].setNavigationPathId(o,g)}))}var C=l.getDataItemList();y.forEach((function(t){(C.find((function(e){return e.getColumnId()===t.itemContext.itemId}))||null)&&(t.hasFilters?h.editFilter(t.itemContext,t.filterContext,g):h.addFilter(t.itemContext,t.filterContext,g))})),this.transaction.endTransaction(g)}},e.prototype._setDataSource=function(t,e,o){var i=o;!i&&t.length>0&&(i=t[0].getSourceId());this.visualization.setDataSource(i,e)},e.prototype._getLocalFilters=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments[1];return this.content.getFeature("VisDnD.utils").addMembersAsLocalFilters({slotAPI:t.slot,doUpdateFilters:!1,columns:t.columns,bReplace:t.bReplace},e)},e}()})),define("dashboard-analytics/features/content/dnD/api/impl/VisDnDColumnToSlotProvider",["underscore","../../../../../lib/@waca/dashboard-common/dist/core/APIFactory","../../../../../dataSources/utils/ShapingUIUtils","../../VisMapColumnsToSlot","dashboard-analytics/apiHelpers/SlotAPIHelper","dashboard-analytics/widgets/livewidget/nls/StringResources"],(function(t,e,o,i,n,r){return function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,e),this.visDnDUtils=t.visDnDUtils,this.dashboardAPI=t.dashboardAPI,this.datasources=t.datasources,this.datasourcesMoser=t.datasourcesMoser,this.content=t.content,this.visualization=t.visualization,this.transaction=t.transaction,this.visMapColumnsToSlot=new i({content:this.content,visualization:this.visualization,transaction:this.transaction})}return e.prototype.destroy=function(){this.dashboardAPI=null,this.content=null,this.visDnDUtils=null,this.datasources=null,this.datasourcesMoser=null,this.visualization=null,this.transaction=null},e.prototype.supports=function(t,e){return("slot.item"===e.type||"slot.item"===e.info.type)&&"A11YMetadataColumns"===t.type||("MODEL_ITEM"===t.type||"GRID_HEADER_ITEM"===t.type)&&t.data.columns||this._isMetadataColumnArray(t)},e.prototype._getA11YData=function(t){var e=t&&this.datasourcesMoser.getModule(t),i=o.getCopiedTreeItems(e,this.dashboardAPI);return i&&i.data&&i.data},e.prototype._clearA11YData=function(){o.clearCopiedTreeItems(),this.dashboardAPI.triggerDashboardEvent("dataSourceGrid:clearSourceSelected")},e.prototype._isMetadataColumnArray=function(t){return"metadataColumns"===t.type&&Array.isArray(t.data)},e.prototype._getNormalizedMetadataColumnArray=function(t){if("A11YMetadataColumns"===t.type){var e=this._getA11YData(this.dashboardAPI.getActiveDataSourceId());return e&&e.columns}return t.data&&t.data.columns?t.data.columns:this._isMetadataColumnArray(t)?t.data.map((function(t){return{metadataColumn:t}})):null},e.prototype.accepts=function(t,e){return!!(t.data&&t.data.utils&&t.data.utils.isValid())&&this._acceptsMetadataColumns(t,e)},e.prototype.onDrop=function(t,e){var o=this._getNormalizedMetadataColumnArray(t);if(!this.visDnDUtils.validateSupportsOLAP(o.map((function(t){return t.metadataColumn}))))return this.dashboardAPI.getFeature("Notification").setMessage(r.get("visualizationDoesNotSupportOLAP")),!1;var i=e.info.addAfter,n=i?e.info.indexInSlot+1:e.info.indexInSlot,a=this.transaction.startTransaction(),s={bReplace:!(i||n<0),position:n,canSetLocalFilters:!this._isMetadataColumnArray(t),activeDataSourceId:this.dashboardAPI.getActiveDataSourceId()};this.visMapColumnsToSlot.mapColumns(e.info.slot.getId(),o,s,a),"A11YMetadataColumns"===t.type&&this._clearA11YData(),this.transaction.endTransaction(a)},e.prototype._acceptsMetadataColumns=function(e,i){var n=e.data,r=n,a={};if(n&&n.columns&&(r=t.map(n.columns,(function(t){return t.metadataColumn})),a=n.utils&&n.utils.getColumnsWithMembers()),!r.length)return!1;var s=this.getDatasourceId();if(r.some((function(t){var e=t.getSourceId?t.getSourceId():t.sourceId;return s&&s!==e})))return!1;if(!this._itemsSupported(r,i.info.slot))return!1;if(!i.info.addAfter&&this.isMeasureGroupItem(i.info.slot,i.info.indexInSlot))return!1;if(r.some((function(t){return"Filter"===t.getObjectType()})))return!1;var l={};if(o.isInvalidDragObject(r,l,a,!1)||this._isRestrictedForMembersOfSameHierarchy(r,a,i.info.slot.getId())||o.isInvalidDragObject(this._getUsedMetadataColumns(),l,a,!0))return!1;var u=this._getCountItemsInDropData(a,i.info.slot);return this._acceptsCommon(e,i,u,i.info.addAfter)},e.prototype.getDatasourceId=function(){var t=this.visualization.getDataSource();return t?t.getId():null},e.prototype.isMeasureGroupItem=function(t,e){if(n.isMultiMeasuresSeriesSlot(t)){var o=t.getDataItemList()[e];return o&&"_multiMeasuresSeries"===o.getColumnId()}return!1},e.prototype._isRestrictedForMembersOfSameHierarchy=function(e,o,i){if(t.isEmpty(o))return!1;var n=[];if(e.forEach((function(t){(t.isHierarchy()||t.isNamedSet())&&n.push(t.getId())})),!n.length)return!1;var r=this._getColumnsFromHierarchyOrNamedSetOfOtherSlots(i);return!!r.length&&!!t.intersection(n,r).length},e.prototype._getColumnsFromHierarchyOrNamedSetOfOtherSlots=function(t){var e=[];return this.visualization.getSlots().getSlotList().forEach((function(o){o.getDefinition().getId()!==t&&o.getDataItemList().forEach((function(t){var o=t.getMetadataColumn&&t.getMetadataColumn();o&&(o.isHierarchy()||o.isNamedSet())&&e.push(o.getId())}))})),e},e.prototype._getUsedMetadataColumns=function(){return this.visualization.getSlots().getDataItemList().filter((function(t){return"_multiMeasuresSeries"!==t.getColumnId()})).map((function(t){return t.getMetadataColumn()}))},e.prototype._getMappedItemsOfTargetSlot=function(t){var e=[];return t.getDataItemList().forEach((function(t){t.getMetadataColumn&&e.push(t.getMetadataColumn().getId())})),e},e.prototype._itemsSupported=function(t,e){var o=t[0].getSourceId(),i=o&&this.datasources.getDataSource(o);if(i){var n=t.map((function(t){return i.getMetadataColumn(t.getId())}));return e.supportsColumns(n)}return!1},e.prototype._getCountItemsInDropData=function(t,e){var o;if(!t)return 1;var i=Object.keys(t),n=Object.values(t);if(!(o=[]).concat.apply(o,n).length)return i.length;var r=this._getMappedItemsOfTargetSlot(e);return i.filter((function(t){return-1===r.indexOf(t)})).length},e.prototype._acceptsCommon=function(e,o,i,r){if("values"===o.info.slot.getId()&&n.isMultiMeasuresSeriesSlot(o.info.slot)||o.info.slot.getDefinition().isMultiMeasureSupported())return!0;var a={targetSlotId:o.info.slot.getId(),sourceSlotId:void 0,indexInSourceSlot:void 0,sourceColumns:t.map(e.data.columns,(function(t){return t.metadataColumn})),indexInTargetSlot:o.info.addAfter?o.info.indexInSlot+1:o.info.indexInSlot,isReplace:!o.info.addAfter};return!(!this.dashboardAPI.getGlassCoreSvc(".FeatureChecker").checkValue("dashboard","expandCollapse","disabled")&&"Crosstab"===this.visualization.getType()&&!this.visDnDUtils.acceptsOlapV2(a))&&!this.visDnDUtils.exceedsItemsLimit(i,o.info.indexInSlot,r,o.info.slot)},e}()})),define("dashboard-analytics/features/content/dnD/api/impl/VisDnDSlotToSlotProvider",["underscore","dashboard-analytics/apiHelpers/SlotAPIHelper"],(function(t,e){return function(){function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,o),this.visDnDUtils=t.visDnDUtils,this.dashboardAPI=t.dashboardAPI,this.content=t.content,this.visualization=t.visualization}return o.prototype.destroy=function(){this.visDnDUtils=null,this.dashboardAPI=null,this.content=null},o.prototype.supports=function(t,e){return"SLOT_ITEM"===t.type&&t.data.source&&!e.info.isVisOverlay},o.prototype.accepts=function(t,e){return!!this.supports(t,e)&&this._acceptsSlotItem(t,e)},o.prototype.onDrop=function(t,e){if(!this.supports(t,e))return!1;e.info.onDrop(t,e)},o.prototype._acceptsSlotItem=function(e,o){var i=e.data.source.slot,n=e.data.source.indexInSlot,r=o.info.slot.getId();if(!i)return!1;if(r===i.getId()&&(n===o.info.indexInSlot||1===(o.info.addAfter&&n-o.info.indexInSlot)))return!1;var a=i.getDataItemList()[n].getMetadataColumn();if(!this.isMeasureGroupItem(i,n)&&!this._itemsSupported([a],o.info.slot))return!1;if(!o.info.addAfter&&this.isMeasureGroupItem(o.info.slot,o.info.indexInSlot)&&r!==i.getId())return!1;if("ordinal"===o.info.slot.getDefinition().getType()&&this.isMeasureGroupItem(i,n))return!1;var s=i.getDefinition().getDatasetIdList(),l=o.info.slot.getDefinition().getDatasetIdList();return!(this.isMeasureGroupItem(i,n)&&!t.isEqual(s,l))&&this._acceptsCommon(e,o,1,o.info.addAfter)},o.prototype.isMeasureGroupItem=function(t,o){if(e.isMultiMeasuresSeriesSlot(t)){var i=t.getDataItemList()[o];return i&&"_multiMeasuresSeries"===i.getColumnId()}return!1},o.prototype._itemsSupported=function(t,e){var o=t[0].getSourceId(),i=o&&this.dashboardAPI.getFeature("DataSources").getDataSource(o);if(i){var n=t.map((function(t){return i.getMetadataColumn(t.getId())}));return e.supportsColumns(n)}return!1},o.prototype._acceptsCommon=function(t,o,i,n){var r=t.data.source.slot,a=t.data.source.indexInSlot,s=o.info.slot.getId();if("values"===o.info.slot.getId()&&e.isMultiMeasuresSeriesSlot(o.info.slot)||o.info.slot.getDefinition().isMultiMeasureSupported())return!0;var l={targetSlotId:s,sourceSlotId:r.getId(),indexInSourceSlot:a,sourceColumns:void 0,indexInTargetSlot:o.info.addAfter?o.info.indexInSlot+1:o.info.indexInSlot,isReplace:!o.info.addAfter};return!(!this.dashboardAPI.getGlassCoreSvc(".FeatureChecker").checkValue("dashboard","expandCollapse","disabled")&&"Crosstab"===this.visualization.getType()&&!this.visDnDUtils.acceptsOlapV2(l))&&(r.getId()===s||!this.visDnDUtils.exceedsItemsLimit(i,o.info.indexInSlot,n,o.info.slot))},o}()})),define("dashboard-analytics/util/ShapeUtils",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.addShapeWidgetToContent=function(t,e,o){var i=e.shapeModel;t.setPropertyValue("value.graphic.fillColor",i.fillColor,o),t.setPropertyValue("value.graphic.borderColor",i.borderColor,o),t.setPropertyValue("value.graphic.content",i.content,o)},t}()})),define("dashboard-analytics/features/content/dnD/api/impl/VisDnDShapeToSlotProvider",["underscore","dashboard-analytics/util/ShapeUtils"],(function(t,e){return function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.dashboardAPI=e.dashboardAPI,this.content=e.content,this.transaction=e.transaction}return t.prototype.destroy=function(){this.content=null},t.prototype.supports=function(t){return"widget"===t.type&&t.data.model&&"shape"===t.data.model.type},t.prototype.accepts=function(t,e){return!!this.supports(t,e)&&(!0!==e.info.addAfter&&this._acceptsShapeOnSlot(e.info.slot))},t.prototype._acceptsShapeOnSlot=function(t){return t?t.getDefinition().isShapable():this.content.getFeature("Visualization").getSlots().getSlotList().find((function(t){return t.getDefinition().isShapable()}))},t.prototype.onDrop=function(t,e){return!!this.supports(t,e)&&this.applyShape(t)},t.prototype.applyShape=function(t){var o=this.transaction.startTransaction(),i=t.data.model;e.addShapeWidgetToContent(this.content,{shapeModel:i},o),this.transaction.endTransaction(o)},t}()})),define("dashboard-analytics/features/content/dnD/api/impl/VisDnDSlotLocalFilterProvider",["underscore","./VisDnDColumnToSlotProvider"],(function(t,e){return function(e){function o(){return _classCallCheck(this,o),_possibleConstructorReturn(this,e.apply(this,arguments))}return _inherits(o,e),o.prototype.supports=function(t,e){return("slot.filter"===e.type||"slot.filter"===e.info.type)&&"A11YMetadataColumns"===t.type||("MODEL_ITEM"===t.type||"GRID_HEADER_ITEM"===t.type)&&t.data.columns},o.prototype.accepts=function(t,e){return!!(t.data&&t.data.utils&&t.data.utils.isValid())&&this._acceptsMetadataColumns(t,e)},o.prototype.onDrop=function(t,e){var o=e.info.slotDataItemHandler,i="A11YMetadataColumns"===t.type?this._getA11YData(this.dashboardAPI.getActiveDataSourceId()):t.data;o.editLocalFilters(i,e.info.filterEditorNode||e.info.node,{placement:"auto",attachPoint:".slotEditor__localFilters__attachPoint"})},o.prototype._acceptsMetadataColumns=function(e){var o=this,i=this.getDatasourceId(),n=t.map(e.data.columns,(function(t){return t.metadataColumn}));return(!i||!n.some((function(t){return t.getSourceId()!==i})))&&!n.some((function(t){return!o._supportsFilterOnColumn(t)}))},o.prototype._supportsFilterOnColumn=function(t){return"fact"!==t.getType()||(this.visualization||this._getVisualization(),!!this.visualization.getSlots().getDataItemList().find((function(t){return"attribute"===t.getType()})))},o}(e)})),define("dashboard-analytics/features/content/dnD/api/impl/VisDndLiveWidgetProvider",["underscore","jquery","dashboard-analytics/widgets/livewidget/nls/StringResources"],(function(t,e,o){return function(){function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,i),this.dashboardAPI=t.dashboardAPI,this.dashboardDnD=t.dashboardDnD,this.content=t.content,this.visualization=t.visualization,this.state=t.state,this.visRecommender=t.visRecommender,this.visDnDUtils=t.visDnDUtils,this.transaction=t.transaction}return i.prototype.destroy=function(){this.dashboardAPI=null,this.dashboardDnD=null,this.content=null,this.visualization=null,this.state=null,this.visRecommender=null,this.visDnDUtils=null,this.transaction=null},i.prototype.isInvalidVisDefinition=function(t){if(e(t.info.node).find(".vis-sdk-error-container-wrapper").length>0)return!0;var o=this.visualization.getDefinition();return o&&void 0!==o.getState().getError()},i.prototype.addModelFilters=function(e,o){var i=[],n=t.filter(e,(function(t){return!t.isFilter()||(i.push(t.getId()),!1)}));return i.length>0&&this._setModelFilter(i,o),n},i.prototype._setModelFilter=function(o,i){var n=this.visualization.getLocalFilters();o=e.isArray(o)?o:[o],t.each(o,(function(t){var e={id:t,itemId:t,filterType:"filter"};n.addFilter(e,{},i)}))},i.prototype._addFiltersForMembers=function(t,e,o){if(t.length){var i=e.getLocalFilters(),n=e.getSlots().getDataItemList();t.forEach((function(t){var e=t.itemContext.itemId;n.find((function(t){return t.getColumnId()===e}))&&(t.hasFilters?i.editFilter(t.itemContext,t.filterContext,o):i.addFilter(t.itemContext,t.filterContext,o))}))}},i.prototype.supports=function(t,e){return"widget.live"===e.type&&"widget"!==t.type},i.prototype.accepts=function(t,o){if(o&&"widget.live"===o.type){if(this.isInvalidVisDefinition(o))return!1;if(this.content&&this.state&&this.state.getError())return!1;if(e(o.info.node).hasClass("liveWidgetPreview"))return!1;if(this.content)return this.visDnDUtils.accepts(t,o)}return!1},i.prototype.onDrop=function(e,i){var n=this;if("widget.live"===i.type&&(!this.visualization.getDefinition().getState().getError()&&(!this.visExpandMode||this.visExpandMode&&!this.visExpandMode.onDrop(e))&&this.visRecommender)){var r=this.visDnDUtils.onDrop(e),a=r.columns;if(!this.visDnDUtils.validateSupportsOLAP(a.map((function(t){return t.metadataColumn}))))return void this.dashboardAPI.getFeature("Notification").setMessage(o.get("visualizationDoesNotSupportOLAP"));var s=t.pluck(a,"metadataColumn"),l=this.transaction.startTransaction();s=this.addModelFilters(s,l);var u=[];s.length&&(u=this.visDnDUtils.addMembersAsLocalFilters({visualizationAPI:this.visualization,columns:r.columns,doUpdateFilters:!1},l),s=t.pluck(a,"metadataColumn"));var c=function(){n._addFiltersForMembers(u,n.visualization,l),n.transaction.endTransaction(l)};if(s.length>0){var d=e.data.sourceId,p=this.visualization.getDataSource();if(p&&p.getId()==d||this.visualization.setDataSource(d,l),!!this.visualization.getDataSource()){var f=s.filter((function(t){return!t.isFilter()})).map((function(t){return{columnId:t.getId()}}));this.visRecommender.addDataItems(f,l).finally((function(){c()}))}else c()}else c()}},i}()})),define("dashboard-analytics/features/content/dnD/VisDnDUtils",["underscore","../../../lib/@waca/dashboard-common/dist/core/APIFactory","./api/VisDnDUtilsAPI","./OlapHelper.v2","./LocalFilterMemberDNDHelper","./VisMapColumnsToSlot","dashboard-analytics/dataSources/utils/ShapingUIUtils","./api/impl/VisDnDColumnToSlotProvider","./api/impl/VisDnDSlotToSlotProvider","./api/impl/VisDnDShapeToSlotProvider","./api/impl/VisDnDSlotLocalFilterProvider","./api/impl/VisDndLiveWidgetProvider","dashboard-analytics/dataSources/utils/ShapingConstants","dashboard-analytics/apiHelpers/SlotAPIHelper"],(function(t,e,o,i,n,r,a,s,l,u,c,d,p,f){var h=["MODEL_ITEM","GRID_HEADER_ITEM","filter"];return function(){function g(t){var e=t.features,o=t.content;_classCallCheck(this,g),this.content=o,this.dashboard=e.API,this.dashboardDnD=e["Dashboard.DashboardDnd"],this.transaction=e["Dashboard.Transaction"],this.datasources=e["Dashboard.DataSources"],this.datasourcesMoser=e["Dashboard.DataSources.moser"],this.state=e.state,this.visualization=e.Visualization,this.visRecommender=e["Visualization.SmartsRecommender"],this.visDnD=e.VisDnD,this.olapHelper=new i(this.dashboard,this.visualization),this.visMapColumnsToSlot=new r({content:this.content,visualization:this.visualization,transaction:this.transaction}),this._initializeProviders()}return g.prototype.getAPI=function(){return this.api||(this.api=e.createAPI(this,[o])),this.api},g.prototype._initializeProviders=function(){var t={visDnDUtils:this,dashboardAPI:this.dashboard,dashboardDnD:this.dashboardDnD,datasources:this.datasources,datasourcesMoser:this.datasourcesMoser,transaction:this.transaction,content:this.content,state:this.state,visualization:this.visualization,visRecommender:this.visRecommender},e=new u(t);this.visDnD.registerProviders("widget.live",[new d(t),e],["slot.item"]);var o=[s,l].map((function(e){return new e(t)}));this.visDnD.registerProviders("slot.item",[].concat(o,[e])),this.visDnD.registerProviders("slot.filter",[new c(t)])},g.prototype.destroy=function(){this.dashboard=null,this.content=null,this.transaction=null,this.visualization=null,this.olapHelper=null,this.visMapColumnsToSlot=null},g.prototype._isSameDataSource=function(t){var e=t.sourceId,o=this.visualization.getDataSource(),i=o?o.getId():null;return!i||e===i},g.prototype._getProjectedDataItemList=function(){if(!this.visualization)throw new Error("Invalid visualization");var t=this.visualization.getSlots().getDataItemList();return(t=t.filter((function(t){return t.getColumnId()!==f.MULTI_MEASURES_SERIES}))).map((function(t){return t.getMetadataColumn()}))},g.prototype._acceptsOlapColumnsV2=function(e,o){var i=o.dropTarget,n=o.dropAction,r=t.map(e.data.columns,(function(t){return t.metadataColumn}));if(i===p.DROP_TARGET_OPTIONS.FILTER||!r.some((function(t){return t.isOlapColumn()})))return!0;var a=void 0,s=void 0,l=void 0;return!n||(s=n.actionSpec.position,l=n.actionSpec.replace,a=n.actionSpec.slot.getDefinition().getId(),this.acceptsOlapV2({targetSlotId:a,sourceSlotId:void 0,indexInSourceSlot:void 0,sourceColumns:r,indexInTargetSlot:s,isReplace:l}))},g.prototype.accepts=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.visualization||!e.data||!this._isSameDataSource(e.data))return!1;var i=!o||o.dropTarget!==p.DROP_TARGET_OPTIONS.FILTER;if(i){var n={},r=t.map(e.data.columns,(function(t){return t.metadataColumn})),s=e.data.utils&&e.data.utils.getColumnsWithMembers();if(!r)return!1;if(a.isInvalidDragObject(r,n,s))return!1;var l=this._getProjectedDataItemList();if(o.dropTarget===p.DROP_TARGET_OPTIONS.SLOT){var u=[];if(o.targetNode){var c=o.targetNode.getAttribute("data-slot-id"),d=c&&this.visualization.getSlots().getSlot(c).getDataItemList();u=t.map(d,(function(t){return t.getColumnId()!==f.MULTI_MEASURES_SERIES})).filter(Boolean)}var g=u.length?t.filter(l,(function(t){return-1===u.indexOf(t.getId())})):l,m=t.some(g,(function(e){return t.some(r,(function(t){return e.getId()===t.getId()&&(e.isHierarchy()||e.isNamedSet())}))}));if(m)return!1}if(a.isInvalidDragObject(l,n,null,!0))return!1}var _=!this.dashboard.getGlassCoreSvc(".FeatureChecker").checkValue("dashboard","expandCollapse","disabled");return!(_&&"Crosstab"===this.visualization.getType()&&!this._acceptsOlapColumnsV2(e,o))&&!!(e.data&&e.data.utils&&e.data.utils.isValid(o)&&-1!==h.indexOf(e.type))},g.prototype.onDrop=function(t){return-1!==h.indexOf(t.type)?t.data:null},g.prototype.mapColumns=function(t,e,o,i){return this.visMapColumnsToSlot.mapColumns(t,e,o,i)},g.prototype.acceptsOlapV2=function(t){return this.olapHelper.acceptsOlapV2(t)},g.prototype.addMembersAsLocalFilters=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments[1],i=e.slotAPI?e.slotAPI.getDataItemList():this.visualization.getSlots().getDataItemList(),r=e.columns?e.columns.slice():[],a=e.columns||[],s=function(t){t>-1&&t<r.length&&a.splice(t,1)}.bind(this),l=[];return r.forEach((function(r){var u=r.original.members;if(u&&u.length){var c=n.hasDataItem(i,r.metadataColumn.getId()),d=n.getItemContext(i,r.original.metadataColumn);n.addOrUpdateFilter({bReplace:e.bReplace,itemContext:d,localFilters:t.visualization.getLocalFilters(),newLocalFilters:u,localFiltersSpec:l,doUpdateFilters:e.doUpdateFilters},o),c&&!e.bReplace&&a.forEach((function(t,e){r.metadataColumn.getId()!==t.metadataColumn.getId()||s(e)}))}})),l},g.prototype.exceedsItemsLimit=function(t,e,o,i){var n=i.getDefinition().getMaxItems();return!("number"!=typeof n||n<0)&&t+i.getDataItemList().length-(o||-1===e?0:1)>n},g.prototype.validateSupportsOLAP=function(t){var e=!0;return!1===this.visualization.getDefinition().getProperty("supportsOLAP")&&t&&t.forEach((function(t){(t.isOlapColumn()||t.isNamedSet())&&(e=!1)})),e},g}()})),define("dashboard-analytics/features/content/smart-title/SmartTitleAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.upgradeIfNeeded=function(){},t.prototype.prepare=function(){},t.prototype.enableAndSetSmartTitle=function(){},t.prototype.disableSmartTitle=function(){},t.prototype.getTitleState=function(){},t.prototype.shouldUseGeneratedTitle=function(){},t.prototype.shouldSetTitle=function(){},t.prototype.getTitleHtmlWithPreviousFormat=function(){},t}()})),define("dashboard-analytics/features/content/smart-title/SmartTitleFeatureProvider",["gemini/lib/@waca/dashboard-common/dist/core/APIFactory","./SmartTitleAPI","underscore"],(function(t,e,o){return function(){function i(t){var e=this;_classCallCheck(this,i),this._dashboard=t.dashboardAPI,this._content=t.content,this._dashboardInternal=t.features["Dashboard.internal"],this._widgetApiHandlers={},this._addedContent=[];var o=this._dashboard.getCanvas();o&&(this._addContentEvent=o.on("add:content:child",(function(t){e._addedContent.push(t.info.newContentId)}))),this._state={setupDone:!1,setupCheckDone:!1,initialWidgetRenderDone:!1,shouldUseGeneratedTitle:void 0,smartTitleEnabled:void 0,toEnableGeneratedTitle:void 0,toSetNoTitle:void 0,toSetSmartTitle:void 0}}return i.prototype._isSmartTitleFeatureEnabled=function(){return!this._dashboard.getGlassCoreSvc(".FeatureChecker").checkValue("dashboard","SmartTitle","disabled")},i.prototype._isSmartTitleEnabled=function(){return this._isSmartTitleFeatureEnabled()&&this._state.smartTitleEnabled},i.prototype.getAPI=function(){return t.createAPI(this,[e])},i.prototype.initialize=function(){this.prepare()},i.prototype.prepare=function(){this._isSmartTitleFeatureEnabled()&&(this.upgradeIfNeeded(),this._setupTitle(),this._addChangeHandlerForTitleModeProperty())},i.prototype._getModelAttr=function(t){var e=this._dashboardInternal.getBoardModel(),o=this._content.getId(),i=e&&e.getWidgetModel(o);if(i)return i.get(t)},i.prototype._setModelAttr=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{silent:!0},o=this._dashboardInternal.getBoardModel(),i=this._content.getId(),n=o&&o.getWidgetModel(i);n&&n.set(t,e)},i.prototype._setProp=function(t,e){var o=this;this._state.initialWidgetRenderDone?this._content.setPropertyValue(t,e):this._content.getFeature("state").whenStatusChanges("rendered").then((function(){var i=o._dashboardInternal.getBoardModel(),n=o._content.getId(),r=i&&i.getWidgetModel(n);if(r){var a={};a[t]=e,r.set(a,{payloadData:{skipUndoRedo:!0}})}}))},i.prototype.upgradeIfNeeded=function(){var t=this._content.getContainer(),e=t&&t.getType();if(e&&"exploreCard"===e){var o={showTitle:void 0,titleMode:"smartTitle"};return this._setModelAttr(o),this._setProp("titleMode","smartTitle"),void this._setProp("showTitle",void 0)}var i=this._getModelAttr("showTitle"),n=this._getModelAttr("name"),r=this._getModelAttr("titleMode");if(void 0!==i){var a={showTitle:void 0};!n||r&&"noTitle"===r||(!0===i?(a.titleMode="customTitle",this._setProp("titleMode","customTitle")):(a.titleMode="noTitle",this._setProp("titleMode","noTitle"))),this._setModelAttr(a),this._setProp("showTitle",void 0)}},i.prototype._setupTitle=function(){var t=this,e=this._content.getFeature("state");e.whenStatusChanges("rendered").then((function(){t._state.initialWidgetRenderDone=!0})),this._stateInitPromise=e.whenStatusChanges("rendering"),this._stateInitPromise.then((function(){t._ensureStateCheckOnInit(),t._state.setupCheckDone=!0,t._state.setupDone||(t._state.setupDone=!0,t._state.toEnableGeneratedTitle&&t._state.toSetSmartTitle?t.enableAndSetSmartTitle():t._state.toEnableGeneratedTitle?t._enableSmartTitle():t._state.toSetNoTitle&&t._setProp("titleMode","noTitle"))}))},i.prototype._removeAddContentEventListener=function(){this._addContentEvent&&this._addContentEvent.remove&&(this._addContentEvent.remove(),this._addContentEvent=null)},i.prototype._ensureStateCheckOnInit=function(){this._removeAddContentEventListener();var t=this._content.getId(),e=-1!==this._addedContent.indexOf(t),o=this._getModelAttr("name"),i=this._content.getPropertyValue("titleMode"),n=!1;return o?"smartTitle"===i||!i&&e?(this._state.toEnableGeneratedTitle=!0,n=!0):"customTitle"!==i&&this._setProp("titleMode","noTitle"):void 0===i?null==o||""!==o||e?(this._state.toEnableGeneratedTitle=!0,this._state.toSetSmartTitle=!0,n=!0):this._state.toSetNoTitle=!0:"smartTitle"===i&&(this._state.toEnableGeneratedTitle=!0,this._state.toSetSmartTitle=!0,n=!0),this._state.shouldUseGeneratedTitle=n,this._state},i.prototype.shouldUseGeneratedTitle=function(){return!!this._dashboard.getAppConfig("smartTitle")&&this._ensureStateCheckOnInit().shouldUseGeneratedTitle},i.prototype._addChangeHandlerForTitleModeProperty=function(){var t=this;this._content.on("change:property:titleMode",(function(e){"smartTitle"===e.info.value?t.enableAndSetSmartTitle():t.disableSmartTitle(e.info.value)}))},i.prototype.enableAndSetSmartTitle=function(){if(!this._isSmartTitleEnabled()){var t=this._content.getFeature("WidgetAPI.deprecated");this._enableSmartTitle(),this._triggerTitleUpdate(t,!0)}},i.prototype._enableSmartTitle=function(){if(!this._isSmartTitleEnabled()){this._state.smartTitleEnabled=!0;var t=this._content.getFeature("WidgetAPI.deprecated"),e=t.getVisApi();this._deregisterListener(),this._widgetApiHandlers={_onChangeDefinition:e&&e.on("change:definition",this._triggerTitleUpdate.bind(this,t))},this._setProp("titleMode","smartTitle")}},i.prototype.disableSmartTitle=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"customTitle";!1!==this._isSmartTitleEnabled()&&(this._state.smartTitleEnabled=!1,this._deregisterListener(),this._setProp("titleMode",t))},i.prototype.getTitleState=function(){var t=this._getModelAttr("name");return{generatedTitle:this._isSmartTitleEnabled(),title:t}},i.prototype.shouldSetTitle=function(t){var e=this._getModelAttr("name");return e!=t||!!this._isTitlePartiallyFormatted(e)},i.prototype._isTitlePartiallyFormatted=function(t){return!this._findRawTitleInHtml(t)},i.prototype.getTitleHtmlWithPreviousFormat=function(t){var e=this._findRawTitleInHtml(this._getModelAttr("name"));return e?(e.spanContainingTheTitle.innerHTML=o.escape(t),e.titleRoot.innerHTML):null},i.prototype._findRawTitleInHtml=function(t){var e=this._getModelAttr("titleHtml");if(t&&e){var i=document.createElement("div");i.innerHTML=o.escape(t);var n=document.createElement("div");n.innerHTML=e;for(var r=n.getElementsByTagName("span"),a=null,s=0;s<r.length;++s)r[s].innerHTML===i.innerHTML&&(a=r[s]);return a&&{spanContainingTheTitle:a,titleRoot:n}}return null},i.prototype.destroy=function(){return this._deregisterListener(),Promise.resolve(!0)},i.prototype._deregisterListener=function(){this._widgetApiHandlers._onChangeDefinition&&(this._widgetApiHandlers._onChangeDefinition.remove(),this._widgetApiHandlers._onChangeDefinition=null),this._removeAddContentEventListener()},i.prototype._triggerTitleUpdate=function(t){t&&t.updateTitle()},i}()})),define("dashboard-analytics/features/content/overlay/DropZonesOverlayState",["mobx-state-tree","jquery","gemini/lib/@waca/dashboard-common/dist/core/APIFactory","underscore","gemini/lib/@waca/dashboard-common/dist/ui/AuthoringToolbar","gemini/lib/@waca/dashboard-common/dist/utils/ActionTypes","gemini/lib/@waca/dashboard-common/dist/utils/MemUtil"],(function(t,e,o,i,n,r,a){return function(t){function e(i){if(o[i])return o[i].exports;var n=o[i]={i:i,l:!1,exports:{}};return t[i].call(n.exports,n,n.exports,e),n.l=!0,n.exports}var o={};return e.m=t,e.c=o,e.d=function(t,o,i){e.o(t,o)||Object.defineProperty(t,o,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var o=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(o,"a",o),o},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=26)}([,function(e,o){e.exports=t},,function(t,o){t.exports=e},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getNumberOfFilterItems=function(t){return!t||"in"!==t.operator&&"notin"!==t.operator&&"isnull"!==t.operator?null:t.values.length},e.handleScroll=function(t,e,o){var i=e.getBoundingClientRect(),n=i.top,r=i.bottom;if("touchmove"===t.type){var a=t.touches[0];a&&(t.clientX=a.clientX,t.clientY=a.clientY)}if(t.clientX&&t.clientY){var s={x:t.clientX,y:t.clientY},l=r-s.y,u=s.y-n,c=l>0&&l<20,d=u>0&&u<20,p=0;d&&c&&(c=!(d=u>l)),c?p=20-l:d&&(p=u-20);var f=e.scrollTop+p;if(f<=0)f=0;else{var h=e.scrollHeight-e.clientHeight;f>h&&(f=h)}e.scrollTop!==f&&(e.scrollTop=f,o&&o())}},e.getDataSourceIdTypeIn=function(t){var e=t.getActiveDataSourceId();if(!e){var o=t.getFeature("DataSources");o.getDataSourceList().length>0&&(e=o.getDataSourceList()[0].getId())}return e}},function(t,e){t.exports=o},,,function(t,e){t.exports=i},,,,,,,,,,,,,,,,,,function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),r=i(o(27)),a=i(o(28)),s=o(1),l=o(5),u=function(){function t(e){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this._content=e.content,this._dashboard=e.features["Dashboard.API"],this._dashboardState=this._dashboard.getFeature("DashboardState"),this._previousAuthoringState=this._dashboardState.getUiState().authoring}return n(t,[{key:"getAPI",value:function(){return this._api}},{key:"initialize",value:function(){this._api=l.createAPI(this,[r.default]),this._overlayModel=a.default.create({slotsModel:{}},{dashboardApi:this._dashboard,content:this._content}),this._onUiStateChangeCallback=this._onUiStateChange.bind(this),this._dashboardState.onUiStateChange(this._onUiStateChangeCallback),this._dashboard.on("tab:tabChanged",this._tabChange,this)}},{key:"getModel",value:function(){return this._overlayModel}},{key:"show",value:function(){this._overlayModel.setOverlayState(!0)}},{key:"hide",value:function(){this._overlayModel.setOverlayState(!1)}},{key:"isEnabled",value:function(){var t=this._dashboard.getGlassCoreSvc(".FeatureChecker");return t&&t.checkValue&&!t.checkValue("dashboard","hotSpots","disabled")}},{key:"destroy",value:function(){this._dashboardState.offUiStateChange(this._onUiStateChangeCallback),this._dashboard.off("tab:tabChanged",this._tabChange,this),(0,s.destroy)(this._overlayModel),this._dashboard=null,this._api=null,this._overlayModel=null}},{key:"_onUiStateChange",value:function(t){this._previousAuthoringState!==t.authoring&&(!t.authoring||t.eventGroups||this._isVisualizationMappingComplete()?this.hide&&this.hide():this.show&&this.show(),this._previousAuthoringState=t.authoring)}},{key:"_tabChange",value:function(){this._previousAuthoringState&&!this._isVisualizationMappingComplete()?this.show():this.hide()}},{key:"_isVisualizationMappingComplete",value:function(){return this._content.getFeature("Visualization").getSlots().isMappingComplete()}}]),t}();t.exports=u},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),n=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return i(t,[{key:"getModel",value:function(){}},{key:"isEnabled",value:function(){}},{key:"show",value:function(){}},{key:"hide",value:function(){}}]),t}();e.default=n},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(1),r=i(o(29)),a=i(o(8)),s={DISPLAY:"DISPLAY",HIDE:"HIDE",SMALL:"SMALL"},l=["Scatter","PackedBubble","HierarchicalPackedBubble","Wordle","Treemap","Dial","Bubble","Heatmap"],u=["DualAxis"];e.default=n.types.model("OverlayModel",{slotsModel:r.default,modelVer:n.types.optional(n.types.number,0)}).volatile((function(){return{content:null,dashboardApi:null,overlayState:""}})).views((function(t){return{getSlotInfo:function(){return t.slotsModel&&(0,n.isAlive)(t.slotsModel)?t.slotsModel.getSlotInfo():[]},getSlotDataItemHandler:function(e,o){if(t.slotsModel)return t.slotsModel.getSlotDataItemHandler(e,o)},get OVERLAY_STATE(){return s}}})).actions((function(t){var e=[],o=function(t,e){return!((t.getDefinition().getDatasetList()||[]).find((function(t){return t.id===e}))||{}).caption},i=function(t){var e=t.getSlots().getSlotList(),i=t.getDefinition().getSlotList().filter((function(t){return t.getDatasetIdList().length>1})),n=[];if(i.length>0)n.push({slotAPIs:e||[],layerId:"data",layerCaption:null,isHideLayer:o(t,"data")});else{var r=a.default.groupBy(e,(function(t){return t.getDefinition().getDatasetIdList()[0]}));t.getDefinition().getDatasetList().forEach((function(e,i){var a=r[e.id];n.push({slotAPIs:a||[],layerId:e.id,layerCaption:e.caption||e.id,isHideLayer:o(t,e.id),open:0===i})}))}return n},r=null,c=null,d=null;return{afterCreate:function(){r=a.default.debounce((function(e){(0,n.isAlive)(t)&&t._updateModel(e)})),c=r.bind(this,!0),d=r.bind(this,!1),t.content=(0,n.getEnv)(t).content,t.dashboardApi=(0,n.getEnv)(t).dashboardApi,t.slotsModel&&t.slotsModel.setDashboardApi(t.dashboardApi),c()},beforeDestroy:function(){e.forEach((function(t){return t.remove()}))},setOverlayState:function(e){t.overlayState=e?t._getSizeState():s.HIDE},_getSizeState:function(){var e=s.DISPLAY,o=t.content.getFeature("ContentViewDOM"),i=t.content.getFeature("Visualization"),n=i.getType();if(o){var r=o.getNode(),a=t.dashboardApi.getFeature("DashboardState"),c=t.content.getFeature("state");!a.getUiState().authoring||c&&c.getError()||i.hasUnavailableMetadataColumns()?e=s.HIDE:a.getUiState().focus?e=s.DISPLAY:r.offsetWidth<250||r.offsetHeight<250?e=s.HIDE:l.includes(n)?e=r.offsetWidth<300?s.SMALL:s.DISPLAY:u.includes(n)&&(e=r.offsetWidth<400?s.SMALL:s.DISPLAY)}return e},_updateModel:function(e){t._setOverlayState(),t._setSlots(e)},_setOverlayState:function(){var e=t.content.getFeature("Visualization");if(e)try{var o=e.getSlots().isMappingComplete();t.overlayState=o?s.HIDE:t._getSizeState()}catch(e){t.overlayState=s.HIDE}else t.overlayState=s.HIDE},_setSlots:function(e){var o=[];if(t.overlayState===s.DISPLAY){var r=t.content.getFeature("Visualization");r&&(o=i(r)||[])}t.slotsModel&&(0,n.isAlive)(t.slotsModel)&&(e&&(t.slotsModel.clear(),t.slotsModel.setContent(t.content),t.slotsModel.setVisualization(),t.slotsModel.setUpEvents(d)),t.slotsModel.setSlotInfo(o),t.modelVer++)}}}))},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(1),n=function(t){return t&&t.__esModule?t:{default:t}}(o(30)),r=o(34);e.default=i.types.model("SlotsModel",{slotInfo:i.types.optional(i.types.array(i.types.frozen()),[])}).volatile((function(t){return{visSlotDataItemHandlersMap:{},content:null,visualization:null,dashboardAPI:null,getSlotDataItemHandler:function(e,o){if(!t.content)return null;t.visualization||t.setVisualization();var i=[e.getDefinition().getDatasetIdList()[0],e.getDefinition().getId(),o].join(":"),a=t.visSlotDataItemHandlersMap[i];if(!a||r.isDestroyed(a.slot)){var s=void 0;if("Crosstab"===t.visualization.getType()){var l=t.content.getFeature("VisDnD.utils");l&&(s=l.acceptsOlapV2)}var u=t.content.getFeature("SlotActions"),c=u.getSlotActionList.bind(u);a=new n.default(e,o,c,t.visualization,t.dashboardApi,t.content,s),t.setVisSlotDataItemHandler(i,a)}return a}}})).views((function(t){return{getSlotInfo:function(){return t.slotInfo}}})).actions((function(t){var e=null;return{beforeDestroy:function(){t.clearEvents()},setContent:function(e){t.content=e},setUpEvents:function(o){t.content&&(e=o,t.content.on("change",e),t.visDefinitions=t.dashboardApi.getFeature("VisDefinitions"),t.visDefinitions.on("refresh:definition",e))},setVisualization:function(){t.content?t.visualization=t.content.getFeature("Visualization"):t.visualization=null},setDashboardApi:function(e){t.dashboardApi=e},setVisSlotDataItemHandler:function(e,o){t.visSlotDataItemHandlersMap[e]=o},setSlotInfo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.slotInfo=e},clear:function(){t.clearEvents(),t.content=null,t.visualization=null,t.slotInfo=[],t.visSlotDataItemHandlersMap={}},clearEvents:function(){t.content&&(t.content.off("change",e),t.visDefinitions.off("refresh:definition",e),e=null)}}}))},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.MULTI_MEASURES_SERIES=void 0;var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(t[i]=o[i])}return t},n=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),r=function(t){return t&&t.__esModule?t:{default:t}}(o(31)),a=o(4),s=o(33),l=e.MULTI_MEASURES_SERIES="_multiMeasuresSeries",u=function(){function t(e,o,i,n,a,s,l){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this.content=s,this.dashboardApi=a,this.transactionApi=a.getFeature("Transaction"),this.indexInSlot=o,this._getActions=i,this.setSlotAPI(e),this._toolbarHelper=new r.default,this.visualization=n,this.visDnD=this.content.getFeature("VisDnD"),this.fnAccepts=l}return n(t,[{key:"setSlotAPI",value:function(t){this.slot=t,this.slotId=t.getDefinition().getId()}},{key:"getSlotAPI",value:function(){return this.slot}},{key:"getContentId",value:function(){return this.content.getId()}},{key:"getGraphicData",value:function(){return-1!==this.content.getPropertyNameList().indexOf("value.graphic.content")?this.content.getPropertyValue("value.graphic.content"):null}},{key:"getDatasourceId",value:function(){var t=this.visualization.getDataSource();return t?t.getId():null}},{key:"getFilterStringAndNumber",value:function(){var t={},e=this.slot.getDataItemList()[this.indexInSlot],o=e&&e.getColumnId();if(o&&o!==l){var i=this.visualization.getLocalFilters(),n=i&&i.getFilterList();if(n&&n.length){var r=n.find((function(t){return!t.readOnly&&(t.filterBins?!!e.getBinning()&&t.id===e.getId():t.aggregationType?t.columnId===o&&e.getAggregation()===t.aggregationType:t.columnId===o)}));if(r){var s=i.getFiltersDesc().find((function(t){return t.dataId===r.id}));s&&(t.filterString=s.description),t.numberOfFilterItems=(0,a.getNumberOfFilterItems)(r)}}}return t}},{key:"isMeasureGroupItem",value:function(){if(this._isMultiMeasuresSeriesSlot()){var t=this.slot.getDataItemList()[this.indexInSlot];return t&&"_multiMeasuresSeries"===t.getColumnId()}return!1}},{key:"_isMultiMeasuresSeriesSlot",value:function(){return!!this.slot.getDataItemList().find((function(t){return t.getColumnId()===l}))}},{key:"_getTargetIndex",value:function(t){return this.indexInSlot+(t?1:0)}},{key:"insertItemFromTypeInSlot",value:function(t,e,o){var i=o.replaceSlotItem;if(this.dashboardApi.getFeature("DataSources").getDataSource(e)){var n=this.getDropTargetInfo(!i),r={type:"metadataColumns",data:[t]};t&&t.getType()&&this.visDnD.onDrop(r,n)}}},{key:"canAcceptMoreItems",value:function(){return this._acceptsCommon(1,!0)}},{key:"getNumberItemsInSlot",value:function(){return this.slot.getDataItemList().length}},{key:"getDropTargetInfo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o={type:"slot.item",info:{contentId:this.getContentId(),slot:this.getSlotAPI(),indexInSlot:this.indexInSlot,addAfter:t}};return Object.keys(e).forEach((function(t){o.info[t]=e[t]})),o}},{key:"_acceptsCommon",value:function(t,e){return!!("values"===this.slotId&&this._isMultiMeasuresSeriesSlot()||this.slot.getDefinition().isMultiMeasureSupported())||!this._exceedsItemsLimit(t,e)}},{key:"_exceedsItemsLimit",value:function(t,e){var o=this.slot.getDefinition().getMaxItems();return!("number"!=typeof o||o<0)&&t+this.slot.getDataItemList().length-(e?0:1)>o}},{key:"swapSlotItems",value:function(t,e){return this.onDrop({data:{source:{slot:t.getSlotAPI(),indexInSlot:t.indexInSlot}}},this.getDropTargetInfo(e))}},{key:"onDropA11Y",value:function(t){var e=this.getDropTargetInfo(t);this.visDnD.onDrop({type:"A11YMetadataColumns"},e)}},{key:"onDrop",value:function(t,e){if(t.data.source){if(t.data.source.slot===this.getSlotAPI()&&t.data.source.indexInSlot==this.indexInSlot)return;var o=t.data.source.slot,i=t.data.source.indexInSlot,n=e.info.addAfter,r=this.transactionApi.startTransaction(),a=o.getDataItemList()[i],s=this.slot.getDataItemList()[this.indexInSlot],l=s&&s.getId();o.getId()===this.slotId?this._swapItemsInTheSameSlot(a.getId(),l,n,r):n||!s?this._moveItemToSlot(o,a,n,r):this._swapItemsBetweenSlots(o,a.getId(),l,r),this.transactionApi.endTransaction(r)}}},{key:"_swapItemsInTheSameSlot",value:function(t,e,o,i){var n=this.slot.getDataItemList().map((function(t){return t.getId()})),r=n.indexOf(t),a=n.indexOf(e);o||-1===a?(n.splice(a+1,0,t),r=r>a?r+1:r,n.splice(r,1)):(n[r]=e,n[a]=t),this.visualization.getSlots().setDataItems(n,this.slotId,i)}},{key:"_moveItemToSlot",value:function(t,e,o,i){var n=e.getId(),r=this.slot.getDataItemList().map((function(t){return t.getId()})),a=this._getTargetIndex(o);r.splice(a,0,n),this.visualization.getSlots().setDataItems(r,this.slotId,i)}},{key:"_swapItemsBetweenSlots",value:function(t,e,o,i){var n=this.slotId,r=this.slot.getDataItemList().map((function(t){return t.getId()}));r[r.indexOf(o)]=e;var a=t.getDefinition().getId(),s=t.getDataItemList().map((function(t){return t.getId()}));s[s.indexOf(e)]=o,this.visualization.getSlots().setDataItems(r,n,i),this.visualization.getSlots().setDataItems(s,a,i)}},{key:"getActions",value:function(){var t=this.slot.getDataItemList(),e=this._getSingleSlot(t,this.indexInSlot),o=this.visualization.getSlots().getSlot(this.slotId).getDefinition().getProperty("actions"),n=e?o:null,r={};return n&&n.length>0&&(r.actionsToKeep=n),Promise.resolve(this._getActions(this.slotId,this.indexInSlot,r).map((function(t){return i({text:t.label},t)})))}},{key:"openSlotActionMenu",value:function(t,e){var o=this;return this.getActions().then((function(n){var r=n.map((function(t){return i({order:t.order||s[t.name]},t)})).sort((function(t,e){return t.order-e.order}));return o._toolbarHelper.buildActionToolbar(r,t,null,e),r}))}},{key:"isSlotActionMenuOpened",value:function(){return!!this._toolbarHelper.getToolbar()}},{key:"_getSingleSlot",value:function(t,e){var o=e&&e instanceof Array&&e.length>1;return 1!==t.length||o?null:t[0]}},{key:"setIndexInSlot",value:function(t){this.indexInSlot=t}},{key:"getPickTreeContext",value:function(t){var e={type:this.slot.getDefinition().getType()};return t&&this.indexInSlot>-1&&(e.metadataColumn=this.slot.getDataItemList()[this.indexInSlot].getMetadataColumn()),e}}]),t}();e.default=u},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),r=i(o(3)),a=i(o(8)),s=o(32),l=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return n(t,[{key:"getToolbar",value:function(){return this._actionMenuToolbar}},{key:"buildActionToolbar",value:function(t,e,o,i){var n=a.default.clone(i);n.textOnly=!0,n.container=(0,r.default)("body"),n.notCentered=!0,n.popoverClass="popover actionToolbarPopover text",this.$parentNode=(0,r.default)(e),this.$parentNode.addClass("action-menu-opened");var l=this.$parentNode.find(i.attachPoint||".toolbarRoot"),u=new s(n);u.setName(o),u.addItems(t),u.setSelectionContext([l]),u.show(n.placement),u.on("flyout:hide",this.removeToolbar,this),u.on("toolbar:remove",this.onToolbarRemove.bind(this)),this._actionMenuToolbar=u}},{key:"removeToolbar",value:function(){this._actionMenuToolbar&&this._actionMenuToolbar.remove(!0)}},{key:"onToolbarRemove",value:function(){this.$parentNode&&(this.$parentNode.removeClass("action-menu-opened"),this.$parentNode=null),this._actionMenuToolbar&&(this._actionMenuToolbar=null)}}]),t}();e.default=l},function(t,e){t.exports=n},function(t,e){t.exports=r},function(t,e){t.exports=a}])})),define("dashboard-analytics/features/content/overlay/DropZonesOverlayDOM",["react","mobx-state-tree","prop-types","jquery","gemini/lib/@waca/dashboard-common/dist/core/APIFactory","react-dom","mobx-react","polyglot","ca-ui-toolkit"],(function(t,e,o,i,n,r,a,s,l){return function(t){function e(i){if(o[i])return o[i].exports;var n=o[i]={i:i,l:!1,exports:{}};return t[i].call(n.exports,n,n.exports,e),n.l=!0,n.exports}var o={};return e.m=t,e.c=o,e.d=function(t,o,i){e.o(t,o)||Object.defineProperty(t,o,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var o=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(o,"a",o),o},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=9)}([function(e,o){e.exports=t},function(t,o){t.exports=e},function(t,e){t.exports=o},function(t,e){t.exports=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getNumberOfFilterItems=function(t){return!t||"in"!==t.operator&&"notin"!==t.operator&&"isnull"!==t.operator?null:t.values.length},e.handleScroll=function(t,e,o){var i=e.getBoundingClientRect(),n=i.top,r=i.bottom;if("touchmove"===t.type){var a=t.touches[0];a&&(t.clientX=a.clientX,t.clientY=a.clientY)}if(t.clientX&&t.clientY){var s={x:t.clientX,y:t.clientY},l=r-s.y,u=s.y-n,c=l>0&&l<20,d=u>0&&u<20,p=0;d&&c&&(c=!(d=u>l)),c?p=20-l:d&&(p=u-20);var f=e.scrollTop+p;if(f<=0)f=0;else{var h=e.scrollHeight-e.clientHeight;f>h&&(f=h)}e.scrollTop!==f&&(e.scrollTop=f,o&&o())}},e.getDataSourceIdTypeIn=function(t){var e=t.getActiveDataSourceId();if(!e){var o=t.getFeature("DataSources");o.getDataSourceList().length>0&&(e=o.getDataSourceList()[0].getId())}return e}},function(t,e){t.exports=n},function(t,e,o){var i=o(20);"string"==typeof i&&(i=[[t.i,i,""]]);var n={hmr:!0,transform:void 0};o(22)(i,n),i.locals&&(t.exports=i.locals)},function(t,e){t.exports={Bubble:{top_multiple:["size","color"],top_single:["categories"],left:["y"],bottom_single:["x"]},Area:{top_single:["series"],left:["values"],bottom_single:["categories"]},Column:{top_single:["color"],left:["values"],bottom_single:["categories"]},Bar:{top_single:["color"],left:["categories"],bottom_single:["values"]},StackedColumn:{top_single:["color"],left:["values"],bottom_single:["categories"]},StackedBar:{top_single:["color"],left:["categories"],bottom_single:["values"]},Point:{top_single:["series"],left:["values"],bottom_single:["categories"]},DualAxis:{top_multiple:["columnColor","lineColor"],left:["columnValue"],bottom_single:["categories"],right:["lineValue"]},"DualAxis.legacy":{left:["columnValue"],bottom_single:["categories"],right:["lineValue"]},Marimekko:{top_single:["color","categories"],left:["values"],bottom_single:["width"]},Waterfall:{left:["values"],bottom_single:["categories"]},Bullet:{left:["actual"],bottom_single:["goal"]},Scatter:{top_multiple:["color"],top_single:["categories"],left:["y"],bottom_single:["x"]},PackedBubble:{top_multiple:["size","color"],top_single:["categories"],left:["y"],bottom_single:["x"]},HierarchicalPackedBubble:{top_multiple:["size","color"],bottom_single:["categories"]},Wordle:{top_multiple:["size","color"],bottom_single:["categories"]},Heatmap:{top_multiple:["size","color"],left:["categories"],bottom_single:["series"]},Treemap:{top_multiple:["size","color"],bottom_single:["categories"]},Pie:{top_single:["values"],bottom_single:["categories"]},Dial:{top_single:["color"],bottom_multiple:["categories","values"]},KPI:{top_single:["actual"],bottom_single:["goal","sparkline.time"]},Network:{top_single:["categories","series"],bottom_single:["values"]},Line:{top_single:["series"],left:["values"],bottom_single:["categories"]}}},,function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),r=i(o(0)),a=i(o(10)),s=i(o(11)),l=i(o(12)),u=i(o(7)),c=o(5),d=function(){function t(e){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this._content=e.content,this._dashboard=e.features["Dashboard.API"],this._overlayState=e.features.DropZonesOverlayState,this._logger=e.features["Dashboard.Logger"]}return n(t,[{key:"getAPI",value:function(){return this._api||(this._api=c.createAPI(this,[s.default])),this._api}},{key:"getContentMenuList",value:function(){return this._overlayState.isEnabled()?[{id:"showHideOverlay",action:this.render}]:[]}},{key:"render",value:function(){var t=this._content.getFeature("ContentViewDOM"),e=t&&t.getNode().querySelector(".widgetContent");if(e){if(!u.default[this._content.getFeature("Visualization").getType()])return null;this._overLayParentNode=e.querySelector(".dropZoneOverlay"),this._overLayParentNode?this.unmount(this._overLayParentNode):(this._overLayParentNode=document.createElement("div"),this._overLayParentNode.classList.add("dropZoneOverlay"),e.appendChild(this._overLayParentNode)),a.default.render(r.default.createElement(l.default,{content:this._content,overlayModel:this._overlayState.getModel(),dashboard:this._dashboard,logger:this._logger,overlayParentNode:this._overLayParentNode}),this._overLayParentNode)}}},{key:"isMounted",value:function(){return!!this._overLayParentNode}},{key:"unmount",value:function(){this._overLayParentNode&&a.default.unmountComponentAtNode(this._overLayParentNode)}},{key:"reassessDropTarget",value:function(t){if(!t){var e=this._content.getFeature("ContentViewDOM");t=e&&e.getNode()}t&&this._dashboard.getFeature(".DndManager").reassessContainer(t)}},{key:"destroy",value:function(){this.unmount(),this._api=null}}]),t}();t.exports=d},function(t,e){t.exports=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),n=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return i(t,[{key:"getContentMenuList",value:function(){}},{key:"render",value:function(){}},{key:"reassessDropTarget",value:function(){}},{key:"isMounted",value:function(){}}]),t}();e.default=n},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),s=o(0),l=i(s),u=i(o(2)),c=i(o(13)),d=i(o(14)),p=function(t){function e(){return n(this,e),r(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),a(e,[{key:"render",value:function(){var t=this.props,e=t.logger,o=t.content,i=t.dashboard,n=t.overlayModel,r=t.overlayParentNode;return l.default.createElement(c.default,{logger:e},l.default.createElement(d.default,{content:o,dashboard:i,overlayModel:n,overlayParentNode:r}))}}]),e}(s.Component);p.propTypes={logger:u.default.object.isRequired,content:u.default.object.isRequired,dashboard:u.default.object.isRequired,overlayModel:u.default.object.isRequired,overlayParentNode:u.default.object.isRequired},e.default=p},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),r=o(0),a=(i(r),o(2)),s=i(a),l=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.state={hasError:!1},o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),n(e,[{key:"componentDidCatch",value:function(t,e){var o=this.props.logger;o&&o.error(e.componentStack)}},{key:"render",value:function(){return this.state.hasError?null:this.props.children}}],[{key:"getDerivedStateFromError",value:function(){return{hasError:!0}}}]),e}(r.Component);l.propTypes={logger:s.default.object.isRequired,children:s.default.any},l.defaultProps={children:[]},e.default=l},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),s=o(0),l=i(s),u=o(15),c=i(o(2)),d=i(o(16));o(6);var p=i(o(7)),f=o(1),h=function(t){function e(){return n(this,e),r(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),a(e,[{key:"render",value:function(){var t=this.props,e=t.overlayModel,o=t.overlayParentNode;if(!e||!(0,f.isAlive)(e))return null;e.modelVer;var i=e.OVERLAY_STATE,n=e.overlayState;if(n){var r="overlayView",a=!0;n===i.HIDE?a=!1:n===i.SMALL&&(r+=" smallView"),a?this._removeHidden(o):this._setHidden(o);var s=this._buildSlotsMap();if(Object.keys(s).length)return l.default.createElement("div",{className:r},this._renderContainers(s))}return null}},{key:"_setHidden",value:function(t){var e=t.classList;e&&!e.contains("hidden")&&e.add("hidden")}},{key:"_removeHidden",value:function(t){var e=t.classList;e&&e.contains("hidden")&&e.remove("hidden")}},{key:"_buildSlotsMap",value:function(){var t=this,e=this.props.content.getFeature("Visualization"),o=e.getType(),i=e.getSlots().getSlotList(),n={};return i.map((function(e){var i=e.getDefinition().getId(),r=t._getDropZonePosition(o,i);r&&(n[r]=n[r]?n[r]:[],n[r].push(e))})),n}},{key:"_renderDropZones",value:function(t){var e=this;if(t)return t.map((function(t){var o=t.getDefinition().getId(),i=e.props.dashboard.getFeature(".DndManager");return l.default.createElement(d.default,{key:o,slot:t,slotDataItemHandler:e.props.overlayModel.getSlotDataItemHandler(t,-1),dashboard:e.props.dashboard,dndManager:i})}))}},{key:"_renderContainers",value:function(t){return l.default.createElement("div",{className:"overlayContainer"},this._renderVerticalContainer(t,"left"),l.default.createElement("div",{className:"overlayContainerMiddle"},this._renderHorizontalContainer(t),this._renderHorizontalContainer(t,"bottom")),this._renderVerticalContainer(t,"right"))}},{key:"_renderHorizontalContainer",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",o="overlayContainer_"+e;if(t[e+"_single"]||t[e+"_multiple"])return l.default.createElement("div",{className:o},t[e+"_multiple"]&&l.default.createElement("div",{className:"overlayContainerMultiple"},this._renderDropZones(t[e+"_multiple"])),t[e+"_single"]&&l.default.createElement("div",{className:"overlayContainerSingle"},this._renderDropZones(t[e+"_single"])))}},{key:"_renderVerticalContainer",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"left",o="section_"+e,i="overlayContainer_"+e;if(t[e])return l.default.createElement("div",{className:o},l.default.createElement("div",{className:i},this._renderDropZones(t[e])))}},{key:"_getDropZonePosition",value:function(t,e){var o=p.default,i=void 0;return o[t]&&Object.keys(o[t]).forEach((function(n){o[t][n].includes(e)&&(i=n)})),i}}]),e}(s.Component);h.propTypes={content:c.default.object.isRequired,dashboard:c.default.object.isRequired,overlayModel:c.default.object.isRequired,overlayParentNode:c.default.object.isRequired},e.default=(0,u.observer)(h)},function(t,e){t.exports=a},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),s=o(0),l=i(s),u=i(o(2)),c=i(o(17));o(6);var d=i(o(24)),p=o(25),f=function(t){function e(){return n(this,e),r(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),a(e,[{key:"componentDidMount",value:function(){this._initializeDndSupport()}},{key:"componentWillUnmount",value:function(){this.dropSlotItemHandler&&this.dropSlotItemHandler.destroy()}},{key:"render",value:function(){var t=this,e="overlayDropZone";this.props.className&&(e+=" "+this.props.className);var o=[];this.props.slot&&(o=this.props.slot.getDataItemList());var i=this.props.slot.getDefinition().getCaption(),n=this.props.slot.getDefinition().getId();return l.default.createElement("div",{className:e},l.default.createElement("div",{className:"overlayDropZoneCaption"},this._isRequiredField()?l.default.createElement("span",{className:"overlayDropZoneCaptionRequiredStar"},"*"):null,i),l.default.createElement("div",{className:"overlayDropZonePlaceHolder","data-slot-id":n,ref:function(e){t.domNode=e}},this._renderItems(o)))}},{key:"_isRequiredField",value:function(){return!this.props.slot.getDefinition().isOptional()&&this.props.slot.getDefinition().getShowRequiredMarker()}},{key:"_initializeDndSupport",value:function(){if(this.props.dndManager&&this.domNode){var t=this.props.dndManager;this._dndManager=t,this.dropSlotItemHandler=new d.default({domNode:this.domNode,className:"dndHover",slotDataItemHandler:this.props.slotDataItemHandler,addAfter:!1,isVisOverlay:!0,onDragEnter:this._onDragEnterExecute.bind(this),onDragLeave:this._onDragLeaveExecute.bind(this),dndManager:t})}}},{key:"_onDragEnterExecute",value:function(){var t=this._getDataViewNode();t&&t.classList.add("notOnFocus")}},{key:"_onDragLeaveExecute",value:function(){var t=this._getDataViewNode();t&&t.classList.remove("notOnFocus")}},{key:"_getDataViewNode",value:function(){if(this.domNode){var t=function(t,e){for(;-1===t.className.indexOf("liveWidgetContent");)if(!(t=t.parentNode))return null;return t}(this.domNode);if(t)return t.querySelector(".dataview")}}},{key:"_getSlotDataItemHandler",value:function(){return this.props.slotDataItemHandler}},{key:"_renderItems",value:function(t){var e=this,o=void 0,i=[];if(t.length){var n=this.props.slot.hasUnavailableMetadataColumns(),r=void 0;t.forEach((function(o,a){r=null,a<2?r=e._getSlotItemLabel(o,n):2===a&&(r="+"+(t.length-2)),r&&i.push({value:a++,label:r,color:"gray"})})),o=l.default.createElement("div",{className:"overlayDropZoneItems"},l.default.createElement(p.Tags,{id:"default",tags:i,fullWidth:!1,removable:!1,maxTagWidth:90}),l.default.createElement("div",{className:"overlayDropZoneItemsInsertAfter"}))}else o=l.default.createElement("div",{className:"overlayDropZonePlaceHolderText"},c.default.get("overlayDropZonePlaceHolderText"));return o}},{key:"_getSlotItemLabel",value:function(t,e){var o=t.getLabel();return e&&(t.getMetadataColumn()||(o=c.default.get("missingColumn",{columnLabel:o}))),o}}]),e}(s.Component);f.propTypes={className:u.default.string,slot:u.default.object.isRequired,dndManager:u.default.object.isRequired,dashboard:u.default.object.isRequired,slotDataItemHandler:u.default.object.isRequired},f.defaultProps={className:""},e.default=f},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),n=function(t){return t&&t.__esModule?t:{default:t}}(o(18)),r=o(19),a=function(){function t(){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this.polyglot=new r({phrases:n.default})}return i(t,[{key:"get",value:function(t,e){return this.polyglot.t(t,e)}}]),t}();e.default=new a},function(t,e){var o={__root:{localFilters:"Local filters",slotEditorMsg1:"Required field",slotEditorMsg2:"Drag and drop data to the fields above to build and filter the visualization.",missingColumn:"Missing: %{columnLabel}",placeholderDropzone:"Click or drag data here",slotEditor_emptyState_no_visualization_selected_title:"No visualization selected",slotEditor_emptyState_no_visualization_selected_description:"Select a visualization to manage the field settings.",slotEditor_emptyState_widget_not_support_slot_selected_title:"The widget selected does not use fields",slotEditor_emptyState_widget_not_support_slot_selected_description:"Select a visualization to manage the field settings.",slotEditor_emptyState_multiple_visualizations_selected_title:"Multiple widgets selected",slotEditor_emptyState_multiple_visualizations_selected_description:"Select a visualization to manage the field settings.",slotEditor_emptyState_visualization_has_error_title:"The visualization cannot be displayed",slotEditor_slotItem_tooltip:"Source:",slotEditor_emptyState_vis_not_created_title:"No visualization created",slotEditor_emptyState_vis_not_created_description:"Create a visualization to manage the field settings.",slotEditor:"Fields",slotEditorCoachMarkTitle:"Access fields",slotEditorCoachMarkContents:"Add columns to the fields to build and modify visualizations.",toolbarDeleteFilterActionText:"Remove filter",toolbarActionFilter:"Filter",filterAutobinActionText:"Filter bins",coachMarkTitleSpiralTarget:"Edit scope",coachMarkContentSpiralTarget:"This is where you can access and modify the driver selection for your target.",overlayDropZonePlaceHolderText:"Drag data here"},__cs:{localFilters:"Lokální filtry",slotEditorMsg1:"Povinné pole",slotEditorMsg2:"Přetáhněte data do polí nahoře, aby se sestavila a filtrovala vizualizace.",missingColumn:"Chybí: %{columnLabel}",placeholderDropzone:"Klepněte nebo přetáhněte data sem",slotEditor_emptyState_no_visualization_selected_title:"Není vybrána žádná vizualizace",slotEditor_emptyState_no_visualization_selected_description:"Vyberte vizualizaci pro správu nastavení polí.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Vybraný modul widget nepoužívá pole",slotEditor_emptyState_widget_not_support_slot_selected_description:"Vyberte vizualizaci pro správu nastavení polí.",slotEditor_emptyState_multiple_visualizations_selected_title:"Vybráno více modulů widget",slotEditor_emptyState_multiple_visualizations_selected_description:"Vyberte vizualizaci pro správu nastavení polí.",slotEditor_emptyState_visualization_has_error_title:"Vizualizaci nelze zobrazit",slotEditor_slotItem_tooltip:"Zdroj:",slotEditor_emptyState_vis_not_created_title:"Nebyla vytvořena žádná vizualizace",slotEditor_emptyState_vis_not_created_description:"Vytvořte vizualizaci pro správu nastavení polí.",slotEditor:"Pole",slotEditorCoachMarkTitle:"Přístupová pole",slotEditorCoachMarkContents:"Přidejte sloupce do polí, abyste mohli sestavovat a upravovat vizualizace.",toolbarDeleteFilterActionText:"Odebrat filtr",toolbarActionFilter:"Filtr",filterAutobinActionText:"Filtrovat přihrádky",coachMarkTitleSpiralTarget:"Upravit rozsah",coachMarkContentSpiralTarget:"Zde je k dispozici přístup k výběru drivery pro cíl a možnost jeho úprav.",overlayDropZonePlaceHolderText:"Přetáhněte data sem"},__da:{localFilters:"Lokale filtre",slotEditorMsg1:"Påkrævet felt",slotEditorMsg2:"Træk og placér data til felterne ovenfor for at bygge og filtrere visualiseringen.",missingColumn:"Mangler: %{columnLabel}",placeholderDropzone:"Klik og træk data her",slotEditor_emptyState_no_visualization_selected_title:"Der er ikke valgt nogen visualisering",slotEditor_emptyState_no_visualization_selected_description:"Vælg en visualisering for at administrere feltindstilingerne.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Den valgte widget bruger ikke felter",slotEditor_emptyState_widget_not_support_slot_selected_description:"Vælg en visualisering for at administrere feltindstilingerne.",slotEditor_emptyState_multiple_visualizations_selected_title:"Flere widgetter er valgt",slotEditor_emptyState_multiple_visualizations_selected_description:"Vælg en visualisering for at administrere feltindstilingerne.",slotEditor_emptyState_visualization_has_error_title:"Visualiseringen kan ikke vises",slotEditor_slotItem_tooltip:"Kilde:",slotEditor_emptyState_vis_not_created_title:"Ingen visualisering er oprettet",slotEditor_emptyState_vis_not_created_description:"Opret en visualisering for at administrere feltindstilingerne.",slotEditor:"Felter",slotEditorCoachMarkTitle:"Anvend felter",slotEditorCoachMarkContents:"Tilføj kolonner til felterne for at bygge og ændre visualiseringer.",toolbarDeleteFilterActionText:"Fjern filter",toolbarActionFilter:"Filtrér",filterAutobinActionText:"Filtrér områder (bins)",coachMarkTitleSpiralTarget:"Redigér omfang",coachMarkContentSpiralTarget:"Her kan du få adgang til og ændre styreprogramvalget for dit mål.",overlayDropZonePlaceHolderText:"Træk data her"},__de:{localFilters:"Lokale Filter",slotEditorMsg1:"Erforderliches Feld",slotEditorMsg2:"Daten in die Felder oben ziehen und ablegen, um die Visualisierung zu erstellen und zu filtern.",missingColumn:"Nicht vorhanden: %{columnLabel}",placeholderDropzone:"Klicken oder Daten hierher ziehen",slotEditor_emptyState_no_visualization_selected_title:"Keine Visualisierung ausgewählt",slotEditor_emptyState_no_visualization_selected_description:"Zum Verwalten der Feldeigenschaften eine Visualisierung auswählen.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Ausgewähltes Widget verwendet keine Felder",slotEditor_emptyState_widget_not_support_slot_selected_description:"Zum Verwalten der Feldeigenschaften eine Visualisierung auswählen.",slotEditor_emptyState_multiple_visualizations_selected_title:"Mehrere Widgets ausgewählt",slotEditor_emptyState_multiple_visualizations_selected_description:"Zum Verwalten der Feldeigenschaften eine Visualisierung auswählen.",slotEditor_emptyState_visualization_has_error_title:"Anzeigen der Visualisierung nicht möglich",slotEditor_slotItem_tooltip:"Quelle:",slotEditor_emptyState_vis_not_created_title:"Keine Visualisierung erstellt",slotEditor_emptyState_vis_not_created_description:"Zum Verwalten der Feldeigenschaften eine Visualisierung erstellen.",slotEditor:"Felder",slotEditorCoachMarkTitle:"Felder aufrufen",slotEditorCoachMarkContents:"Spalten zu den Feldern hinzufügen, um Visualisierungen zu erstellen und zu ändern.",toolbarDeleteFilterActionText:"Filter entfernen",toolbarActionFilter:"Filtern",filterAutobinActionText:"Bins filtern",coachMarkTitleSpiralTarget:"Bereich bearbeiten",coachMarkContentSpiralTarget:"Hier können Sie auf die Auswahl der Einflussfaktoren für das Ziel zugreifen und gegebenenfalls Änderungen vornehmen.",overlayDropZonePlaceHolderText:"Daten hierher ziehen"},__es:{localFilters:"Filtros locales",slotEditorMsg1:"Campo necesario",slotEditorMsg2:"Arrastre y suelte los datos en los campos para crear y filtrar la visualización.",missingColumn:"Falta: %{columnLabel}",placeholderDropzone:"Pulse o arrastre los datos aquí ",slotEditor_emptyState_no_visualization_selected_title:"No se ha seleccionado ninguna visualización",slotEditor_emptyState_no_visualization_selected_description:"Seleccione una visualización para gestionar los valores de campos.",slotEditor_emptyState_widget_not_support_slot_selected_title:"El widget seleccionado no utiliza campos",slotEditor_emptyState_widget_not_support_slot_selected_description:"Seleccione una visualización para gestionar los valores de campos.",slotEditor_emptyState_multiple_visualizations_selected_title:"Varios widgets seleccionados",slotEditor_emptyState_multiple_visualizations_selected_description:"Seleccione una visualización para gestionar los valores de campos.",slotEditor_emptyState_visualization_has_error_title:"La visualización no se puede visualizar",slotEditor_slotItem_tooltip:"Origen:",slotEditor_emptyState_vis_not_created_title:"No se ha creado ninguna visualización",slotEditor_emptyState_vis_not_created_description:"Cree una visualización para gestionar los valores de campos.",slotEditor:"Campos",slotEditorCoachMarkTitle:"Acceder a campos",slotEditorCoachMarkContents:"Añada columnas a los campos para crear y modificar visualizaciones.",toolbarDeleteFilterActionText:"Eliminar filtro",toolbarActionFilter:"Filtro",filterAutobinActionText:"Filtrar cubetas",coachMarkTitleSpiralTarget:"Editar ámbito",coachMarkContentSpiralTarget:"Aquí puede acceder y modificar la selección de controlador de su destino.",overlayDropZonePlaceHolderText:"Arrastre los datos aquí "},__fi:{localFilters:"Paikalliset suodattimet",slotEditorMsg1:"Pakollinen kenttä",slotEditorMsg2:"Voit muodostaa visualisoinnin ja suodattaa sen vetämällä ja pudottamalla tiedot yllä oleviin kenttiin.",missingColumn:"Puuttuva: %{columnLabel}",placeholderDropzone:"Napsauta tätä, tai vedä tiedot tähän",slotEditor_emptyState_no_visualization_selected_title:"Visualisointia ei ole valittu",slotEditor_emptyState_no_visualization_selected_description:"Valitse visualisointi, jotta voit hallita kentän asetuksia.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Valittu pienoisohjelma ei käytä kenttiä",slotEditor_emptyState_widget_not_support_slot_selected_description:"Valitse visualisointi, jotta voit hallita kentän asetuksia.",slotEditor_emptyState_multiple_visualizations_selected_title:"On valittu useita pienoisohjelmia",slotEditor_emptyState_multiple_visualizations_selected_description:"Valitse visualisointi, jotta voit hallita kentän asetuksia.",slotEditor_emptyState_visualization_has_error_title:"Visualisoinnin näyttö ei onnistunut",slotEditor_slotItem_tooltip:"Lähde:",slotEditor_emptyState_vis_not_created_title:"Visualisointia ei ole luotu",slotEditor_emptyState_vis_not_created_description:"Valitse visualisointi, jotta voit hallita kentän asetuksia.",slotEditor:"Kentät",slotEditorCoachMarkTitle:"Kenttien käyttö",slotEditorCoachMarkContents:"Lisää kenttiin sarakkeita visualisointien luontia ja muokkausta varten.",toolbarDeleteFilterActionText:"Poista suodatin",toolbarActionFilter:"Suodatin",filterAutobinActionText:"Suodata numeroryhmät",coachMarkTitleSpiralTarget:"Muokkaa aluetta",coachMarkContentSpiralTarget:"Tässä voit käyttää ja muokata vaikuttimien valintaa kohdetta varten.",overlayDropZonePlaceHolderText:"Vedä tiedot tähän"},__fr:{localFilters:"Filtres locaux",slotEditorMsg1:"Zone requise",slotEditorMsg2:"Glissez-déposez des données sur les zones ci-dessus pour générer et filtrer la visualisation.",missingColumn:"Manquant : %{columnLabel}",placeholderDropzone:"Cliquez ou faites glisser les données ici",slotEditor_emptyState_no_visualization_selected_title:"Aucune visualisation sélectionnée",slotEditor_emptyState_no_visualization_selected_description:"Sélectionnez une visualisation pour gérer les paramètres de zone.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Le widget sélectionné n'utilise pas les zones",slotEditor_emptyState_widget_not_support_slot_selected_description:"Sélectionnez une visualisation pour gérer les paramètres de zone.",slotEditor_emptyState_multiple_visualizations_selected_title:"Plusieurs widgets sélectionnés",slotEditor_emptyState_multiple_visualizations_selected_description:"Sélectionnez une visualisation pour gérer les paramètres de zone.",slotEditor_emptyState_visualization_has_error_title:"Impossible d'afficher la visualisation",slotEditor_slotItem_tooltip:"Source :",slotEditor_emptyState_vis_not_created_title:"Aucune visualisation créée",slotEditor_emptyState_vis_not_created_description:"Créez une visualisation pour gérer les paramètres de zone.",slotEditor:"Zones",slotEditorCoachMarkTitle:"Zones d'accès",slotEditorCoachMarkContents:"Ajouter des colonnes aux zones pour générer et modifier des visualisations.",toolbarDeleteFilterActionText:"Retirer le filtre",toolbarActionFilter:"Filtre",filterAutobinActionText:"Filtrer les casiers",coachMarkTitleSpiralTarget:"Editer la portée",coachMarkContentSpiralTarget:"Vous pouvez accéder ici au pilote sélectionné pour votre cible et le modifier.",overlayDropZonePlaceHolderText:"Glisser les données ici"},__hr:{localFilters:"Lokalni filteri",slotEditorMsg1:"Obavezno polje",slotEditorMsg2:"Povucite i ispustite podatke gore na polja da izgradite i filtrirate vizualizaciju.",missingColumn:"Nedostaje: %{columnLabel}",placeholderDropzone:"Kliknite ili povucite podatke ovdje",slotEditor_emptyState_no_visualization_selected_title:"Nema izabranih vizualizacija",slotEditor_emptyState_no_visualization_selected_description:"Izaberite vizualizaciju za upravljanje postavkama polja.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Izabrani grafički element ne koristi polja.",slotEditor_emptyState_widget_not_support_slot_selected_description:"Izaberite vizualizaciju za upravljanje postavkama polja.",slotEditor_emptyState_multiple_visualizations_selected_title:"Izabrano je više grafičkih elemenata.",slotEditor_emptyState_multiple_visualizations_selected_description:"Izaberite vizualizaciju za upravljanje postavkama polja.",slotEditor_emptyState_visualization_has_error_title:"Vizualizacija se ne može prikazati.",slotEditor_slotItem_tooltip:"Izvor:",slotEditor_emptyState_vis_not_created_title:"Vizualizacija nije kreirana",slotEditor_emptyState_vis_not_created_description:"Kreirajte vizualizaciju za upravljanje postavkama polja.",slotEditor:"Polja",slotEditorCoachMarkTitle:"Dohvati polja",slotEditorCoachMarkContents:"Poljima dodajte stupce za izgradite i promijenite vizualizacije.",toolbarDeleteFilterActionText:"Ukloni filter",toolbarActionFilter:"Filter",filterAutobinActionText:"Pregradci filtera",coachMarkTitleSpiralTarget:"Uređivanje opsega",coachMarkContentSpiralTarget:"Ovdje možete dohvatiti i promijeniti izbor pogonitelja za vaš cilj.",overlayDropZonePlaceHolderText:"Povucite podatke ovdje"},__hu:{localFilters:"Helyi szűrők",slotEditorMsg1:"Kötelező mező",slotEditorMsg2:"Húzza az adatokat a fenti mezőkre a megjelenítés összeállításához és szűréséhez.",missingColumn:"A következő hiányzik: %{columnLabel}",placeholderDropzone:"Kattintson vagy húzzon ide adatokat",slotEditor_emptyState_no_visualization_selected_title:"Nincs kijelölt megjelenítés",slotEditor_emptyState_no_visualization_selected_description:"A mezőbeállítások kezeléséhez válasszon ki egy megjelenítést.",slotEditor_emptyState_widget_not_support_slot_selected_title:"A kiválasztott felületi elem nem használ mezőket",slotEditor_emptyState_widget_not_support_slot_selected_description:"A mezőbeállítások kezeléséhez válasszon ki egy megjelenítést.",slotEditor_emptyState_multiple_visualizations_selected_title:"Több felületi elem lett kiválasztva",slotEditor_emptyState_multiple_visualizations_selected_description:"A mezőbeállítások kezeléséhez válasszon ki egy megjelenítést.",slotEditor_emptyState_visualization_has_error_title:"A megjelenítés nem jeleníthető meg",slotEditor_slotItem_tooltip:"Forrás:",slotEditor_emptyState_vis_not_created_title:"Nincs létrehozva megjelenítés",slotEditor_emptyState_vis_not_created_description:"A mezőbeállítások kezeléséhez hozzon létre egy megjelenítést.",slotEditor:"Mezők",slotEditorCoachMarkTitle:"Mezők elérése",slotEditorCoachMarkContents:"Megjelenítések összeállításához és módosításához vegyen fel oszlopokat a mezőkbe.",toolbarDeleteFilterActionText:"Szűrő eltávolítása",toolbarActionFilter:"Szűrő",filterAutobinActionText:"Tároló szűrése",coachMarkTitleSpiralTarget:"Hatókör szerkesztése",coachMarkContentSpiralTarget:"Itt érheti el és módosíthatja a célhoz kijelölt tényezőket.",overlayDropZonePlaceHolderText:"Húzza ide az adatokat"},__it:{localFilters:"Filtri locali",slotEditorMsg1:"Campo obbligatorio",slotEditorMsg2:"Trascinare e rilasciare i dati nei campi sopra riportati per creare e filtrare la visualizzazione.",missingColumn:"Mancante: %{columnLabel}",placeholderDropzone:"Fare clic o trascinare i dati qui ",slotEditor_emptyState_no_visualization_selected_title:"Nessuna visualizzazione selezionata",slotEditor_emptyState_no_visualization_selected_description:"Selezionare una visualizzazione per gestire le impostazioni del campo.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Il widget selezionato non utilizza i campi",slotEditor_emptyState_widget_not_support_slot_selected_description:"Selezionare una visualizzazione per gestire le impostazioni del campo.",slotEditor_emptyState_multiple_visualizations_selected_title:"Più widget selezionati",slotEditor_emptyState_multiple_visualizations_selected_description:"Selezionare una visualizzazione per gestire le impostazioni del campo.",slotEditor_emptyState_visualization_has_error_title:"Impossibile mostrare la visualizzazione",slotEditor_slotItem_tooltip:"Sorgente:",slotEditor_emptyState_vis_not_created_title:"Nessuna visualizzazione creata",slotEditor_emptyState_vis_not_created_description:"Creare una visualizzazione per gestire le impostazioni del campo.",slotEditor:"Campi",slotEditorCoachMarkTitle:"Accedi campi",slotEditorCoachMarkContents:"Aggiungi colonne ai campi per creare e modificare le visualizzazioni.",toolbarDeleteFilterActionText:"Rimuovi filtro",toolbarActionFilter:"Filtra",filterAutobinActionText:"Filtra bin",coachMarkTitleSpiralTarget:"Modifica ambito",coachMarkContentSpiralTarget:"Da qui è possibile accedere e modificare la selezione del driver per la propria destinazione.",overlayDropZonePlaceHolderText:"Trascinare i dati in questo punto"},__ja:{localFilters:"ローカル・フィルター",slotEditorMsg1:"必須フィールド",slotEditorMsg2:"上のフィールドにデータをドラッグ・アンド・ドロップし、視覚化を作成してフィルターに掛けます。",missingColumn:"欠落しています: %{columnLabel}",placeholderDropzone:"データをクリックするかここにドラッグしてください",slotEditor_emptyState_no_visualization_selected_title:"視覚化が選択されていません",slotEditor_emptyState_no_visualization_selected_description:"フィールド設定を管理するための視覚化を選択してください。",slotEditor_emptyState_widget_not_support_slot_selected_title:"選択したウィジェットではフィールドは使用しません",slotEditor_emptyState_widget_not_support_slot_selected_description:"フィールド設定を管理するための視覚化を選択してください。",slotEditor_emptyState_multiple_visualizations_selected_title:"複数のウィジェットが選択されています",slotEditor_emptyState_multiple_visualizations_selected_description:"フィールド設定を管理するための視覚化を選択してください。",slotEditor_emptyState_visualization_has_error_title:"視覚化を表示できません",slotEditor_slotItem_tooltip:"ソース:",slotEditor_emptyState_vis_not_created_title:"視覚化が作成されていません",slotEditor_emptyState_vis_not_created_description:"フィールド設定を管理するための視覚化を作成してください。",slotEditor:"フィールド",slotEditorCoachMarkTitle:"フィールドへのアクセス",slotEditorCoachMarkContents:"視覚化を作成したり変更したりするために列をフィールドに追加します。",toolbarDeleteFilterActionText:"フィルターの削除",toolbarActionFilter:"フィルター",filterAutobinActionText:"ビンのフィルター",coachMarkTitleSpiralTarget:"範囲の編集",coachMarkContentSpiralTarget:"ここでターゲットのドライバー選択にアクセスして変更することができます。",overlayDropZonePlaceHolderText:"ここにデータをドラッグ"},__kk:{localFilters:"Жергілікті сүзгілер",slotEditorMsg1:"Қажетті өріс",slotEditorMsg2:"Көрнекілікті сүзгілеу және құру үшін өрістерге деректерді сүйреп апарып тастаңыз.",missingColumn:"Жоқ: %{columnLabel}",placeholderDropzone:"Деректерді мына жерге нұқыңыз немесе сүйреңіз",slotEditor_emptyState_no_visualization_selected_title:"Көрнекілендіру таңдалмаған",slotEditor_emptyState_no_visualization_selected_description:"Өрістердің параметрлерін басқару үшін көрнекілендіру жасаңыз.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Таңдалған виджет өрістерды пайдаланбайды",slotEditor_emptyState_widget_not_support_slot_selected_description:"Өрістердің параметрлерін басқару үшін көрнекілендіру таңдаңыз.",slotEditor_emptyState_multiple_visualizations_selected_title:"Бірнеше виджеттер таңдалды",slotEditor_emptyState_multiple_visualizations_selected_description:"Өрістердің параметрлерін басқару үшін көрнекілендіру тандаңыз.",slotEditor_emptyState_visualization_has_error_title:"Көрнекілендіруді көрсету мүмкін емес",slotEditor_slotItem_tooltip:"Бастапқы:",slotEditor_emptyState_vis_not_created_title:"Жасалған көрнекілендіру жоқ",slotEditor_emptyState_vis_not_created_description:"Өрістердің параметрлерін басқару үшін көрнекілендіру жасаңыз.",slotEditor:"Өрістер",slotEditorCoachMarkTitle:"Кіру өрістері",slotEditorCoachMarkContents:"Көрнекілендіру бейнелерді құру және өзгерту үшін өрістерге баған қосыңыз.",toolbarDeleteFilterActionText:"Сүзгіш жою",toolbarActionFilter:"Сүзгі",filterAutobinActionText:"Bin -дерді сүзгілеу",coachMarkTitleSpiralTarget:"Ауқымды өңдеу",coachMarkContentSpiralTarget:"Мұнда мақсатыңызға арналған драйвер таңдауына кіруге және оны өзгертуге болады.",overlayDropZonePlaceHolderText:"Деректерді осы жерге апарыңыз"},__ko:{localFilters:"로컬 필터",slotEditorMsg1:"필수 필드",slotEditorMsg2:"시각화를 빌드하고 필터링하려면 위의 필드에 데이터를 끌어서 놓으십시오.",missingColumn:"누락: %{columnLabel}",placeholderDropzone:"데이터 클릭 또는 여기로 끌기",slotEditor_emptyState_no_visualization_selected_title:"선택된 시각화 없음",slotEditor_emptyState_no_visualization_selected_description:"필드 설정을 관리하려면 시각화를 선택하십시오.",slotEditor_emptyState_widget_not_support_slot_selected_title:"선택한 위젯에서 필드를 사용하지 않음",slotEditor_emptyState_widget_not_support_slot_selected_description:"필드 설정을 관리하려면 시각화를 선택하십시오.",slotEditor_emptyState_multiple_visualizations_selected_title:"여러 위젯이 선택됨",slotEditor_emptyState_multiple_visualizations_selected_description:"필드 설정을 관리하려면 시각화를 선택하십시오.",slotEditor_emptyState_visualization_has_error_title:"시각화를 표시할 수 없음",slotEditor_slotItem_tooltip:"소스:",slotEditor_emptyState_vis_not_created_title:"작성된 시각화 없음",slotEditor_emptyState_vis_not_created_description:"필드 설정을 관리하려면 시각화를 작성하십시오.",slotEditor:"필드",slotEditorCoachMarkTitle:"액세스 필드",slotEditorCoachMarkContents:"시각화를 빌드하고 수정하려면 필드에 열을 추가하십시오.",toolbarDeleteFilterActionText:"필터 제거",toolbarActionFilter:"필터",filterAutobinActionText:"구간 필터",coachMarkTitleSpiralTarget:"범위 편집",coachMarkContentSpiralTarget:"대상에 대한 드라이버 선택에 액세스하고 수정할 수 있는 위치입니다.",overlayDropZonePlaceHolderText:"데이터 여기에 놓기"},__nb:{localFilters:"Lokale filtre",slotEditorMsg1:"Obligatorisk felt",slotEditorMsg2:"Dra og slipp data i feltene ovenfor for å bygge og filtrere visualiseringen.",missingColumn:"Mangler: %{columnLabel}",placeholderDropzone:"Klikk eller dra data hit",slotEditor_emptyState_no_visualization_selected_title:"Ingen visualisering valgt",slotEditor_emptyState_no_visualization_selected_description:"Velg en visualisering for å administrere innstillingene for felt.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Den valgte widgeten bruker ikke felt",slotEditor_emptyState_widget_not_support_slot_selected_description:"Velg en visualisering for å administrere innstillingene for felt.",slotEditor_emptyState_multiple_visualizations_selected_title:"Flere widgeter valgt",slotEditor_emptyState_multiple_visualizations_selected_description:"Velg en visualisering for å administrere innstillingene for felt.",slotEditor_emptyState_visualization_has_error_title:"Visualiseringen kan ikke vises",slotEditor_slotItem_tooltip:"Kilde:",slotEditor_emptyState_vis_not_created_title:"Ingen visualisering opprettet",slotEditor_emptyState_vis_not_created_description:"Opprett en visualisering for å administrere innstillingene for felt.",slotEditor:"Felt",slotEditorCoachMarkTitle:"Tilgang til felt",slotEditorCoachMarkContents:"Legg til kolonner i feltene for å bygge og endre visualiseringer.",toolbarDeleteFilterActionText:"Fjern filter",toolbarActionFilter:"Filtrer",filterAutobinActionText:"Filtrer binger",coachMarkTitleSpiralTarget:"Rediger omfang",coachMarkContentSpiralTarget:"Her får du tilgang til og kan endre drivervalget for målet ditt.",overlayDropZonePlaceHolderText:"Dra data hit"},__nl:{localFilters:"Lokale filters",slotEditorMsg1:"Verplicht veld",slotEditorMsg2:"Versleep de gegevens naar de bovenstaande velden om de visualisatie samen te stellen en te filteren.",missingColumn:"%{columnLabel} ontbreekt",placeholderDropzone:"Klik hier of versleep gegevens hiernaartoe",slotEditor_emptyState_no_visualization_selected_title:"Geen visualisatie geselecteerd",slotEditor_emptyState_no_visualization_selected_description:"Selecteer een visualisatie om de instellingen van het veld te beheren.",slotEditor_emptyState_widget_not_support_slot_selected_title:"De geselecteerde widget gebruikt geen velden",slotEditor_emptyState_widget_not_support_slot_selected_description:"Selecteer een visualisatie om de instellingen van het veld te beheren.",slotEditor_emptyState_multiple_visualizations_selected_title:"Meerdere widgets geselecteerd",slotEditor_emptyState_multiple_visualizations_selected_description:"Selecteer een visualisatie om de instellingen van het veld te beheren.",slotEditor_emptyState_visualization_has_error_title:"De visualisatie kan niet worden afgebeeld",slotEditor_slotItem_tooltip:"Bron:",slotEditor_emptyState_vis_not_created_title:"Geen visualisatie gemaakt",slotEditor_emptyState_vis_not_created_description:"Maak een visualisatie om de instellingen van het veld te beheren.",slotEditor:"Velden",slotEditorCoachMarkTitle:"Velden benaderen",slotEditorCoachMarkContents:"Voeg kolommen toe aan de velden om visualisaties te bouwen en te wijzigen.",toolbarDeleteFilterActionText:"Filter verwijderen",toolbarActionFilter:"Filteren",filterAutobinActionText:"Bins filteren",coachMarkTitleSpiralTarget:"Bereik bewerken",coachMarkContentSpiralTarget:"Dit is de plek waar u toegang hebt tot de driverselectie voor uw doel en waar u wijzigingen kunt aanbrengen.",overlayDropZonePlaceHolderText:"Sleep gegevens hier naartoe"},__no:{localFilters:"Lokale filtre",slotEditorMsg1:"Obligatorisk felt",slotEditorMsg2:"Dra og slipp data i feltene ovenfor for å bygge og filtrere visualiseringen.",missingColumn:"Mangler: %{columnLabel}",placeholderDropzone:"Klikk eller dra data hit",slotEditor_emptyState_no_visualization_selected_title:"Ingen visualisering valgt",slotEditor_emptyState_no_visualization_selected_description:"Velg en visualisering for å administrere innstillingene for felt.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Den valgte widgeten bruker ikke felt",slotEditor_emptyState_widget_not_support_slot_selected_description:"Velg en visualisering for å administrere innstillingene for felt.",slotEditor_emptyState_multiple_visualizations_selected_title:"Flere widgeter valgt",slotEditor_emptyState_multiple_visualizations_selected_description:"Velg en visualisering for å administrere innstillingene for felt.",slotEditor_emptyState_visualization_has_error_title:"Visualiseringen kan ikke vises",slotEditor_slotItem_tooltip:"Kilde:",slotEditor_emptyState_vis_not_created_title:"Ingen visualisering opprettet",slotEditor_emptyState_vis_not_created_description:"Opprett en visualisering for å administrere innstillingene for felt.",slotEditor:"Felt",slotEditorCoachMarkTitle:"Tilgang til felt",slotEditorCoachMarkContents:"Legg til kolonner i feltene for å bygge og endre visualiseringer.",toolbarDeleteFilterActionText:"Fjern filter",toolbarActionFilter:"Filtrer",filterAutobinActionText:"Filtrer binger",coachMarkTitleSpiralTarget:"Rediger omfang",coachMarkContentSpiralTarget:"Her får du tilgang til og kan endre drivervalget for målet ditt.",overlayDropZonePlaceHolderText:"Dra data hit"},__pl:{localFilters:"Filtry lokalne",slotEditorMsg1:"Pole wymagane",slotEditorMsg2:"Przeciągnij i upuść dane w powyższych szczelinach, aby utworzyć i przefiltrować wizualizację.",missingColumn:"Brak: %{columnLabel}",placeholderDropzone:"Kliknij lub przeciągnij dane w to miejsce",slotEditor_emptyState_no_visualization_selected_title:"Nie wybrano wizualizacji",slotEditor_emptyState_no_visualization_selected_description:"Wybierz wizualizację, aby zarządzać ustawieniami pól.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Wybrany widget nie korzysta ze pól",slotEditor_emptyState_widget_not_support_slot_selected_description:"Wybierz wizualizację, aby zarządzać ustawieniami pól.",slotEditor_emptyState_multiple_visualizations_selected_title:"Wybrano więcej niż jeden widget",slotEditor_emptyState_multiple_visualizations_selected_description:"Wybierz wizualizację, aby zarządzać ustawieniami pól.",slotEditor_emptyState_visualization_has_error_title:"Nie można wyświetlić wizualizacji",slotEditor_slotItem_tooltip:"Źródło:",slotEditor_emptyState_vis_not_created_title:"Nie utworzono żadnej wizualizacji",slotEditor_emptyState_vis_not_created_description:"Utwórz wizualizację, aby zarządzać ustawieniami pól.",slotEditor:"Pola",slotEditorCoachMarkTitle:"Uzyskaj dostęp do pól",slotEditorCoachMarkContents:"Dodawaj kolumny do pól, aby budować i modyfikować wizualizacje.",toolbarDeleteFilterActionText:"Usuń filtr",toolbarActionFilter:"Filtr",filterAutobinActionText:"Filtruj kategorie",coachMarkTitleSpiralTarget:"Edytuj zakres",coachMarkContentSpiralTarget:"W tym miejscu można uzyskać dostęp do czynników dla zmiennej przewidywanej i zmodyfikować ich wybór.",overlayDropZonePlaceHolderText:"Przeciągnij tutaj dane"},__pt:{localFilters:"Filtros locais",slotEditorMsg1:"Campo requerido",slotEditorMsg2:"Arraste e solte dados para os campos acima para criar e filtrar a visualização.",missingColumn:"Ausente: %{columnLabel}",placeholderDropzone:"Clicar ou arrastar dados aqui",slotEditor_emptyState_no_visualization_selected_title:"Nenhuma visualização selecionada",slotEditor_emptyState_no_visualization_selected_description:"Selecione uma visualização para gerenciar as configurações de campo.",slotEditor_emptyState_widget_not_support_slot_selected_title:"O widget selecionado não usa campos",slotEditor_emptyState_widget_not_support_slot_selected_description:"Selecione uma visualização para gerenciar as configurações de campo.",slotEditor_emptyState_multiple_visualizations_selected_title:"Vários widgets selecionados",slotEditor_emptyState_multiple_visualizations_selected_description:"Selecione uma visualização para gerenciar as configurações de campo.",slotEditor_emptyState_visualization_has_error_title:"Não é possível exibir a visualização",slotEditor_slotItem_tooltip:"Origem:",slotEditor_emptyState_vis_not_created_title:"Nenhuma visualização criada",slotEditor_emptyState_vis_not_created_description:"Crie uma visualização para gerenciar as configurações de campo.",slotEditor:"Campos",slotEditorCoachMarkTitle:"Campos de acesso",slotEditorCoachMarkContents:"Inclua colunas nos campos para criar e modificar visualizações.",toolbarDeleteFilterActionText:"Remover filtro",toolbarActionFilter:"Filtrar",filterAutobinActionText:"Filtro de categorias",coachMarkTitleSpiralTarget:"Editar escopo",coachMarkContentSpiralTarget:"Este é o local onde é possível acessar e modificar a seleção do driver para seu destino.",overlayDropZonePlaceHolderText:"Arraste os dados para cá"},"__pt-br":{localFilters:"Filtros locais",slotEditorMsg1:"Campo requerido",slotEditorMsg2:"Arraste e solte dados para os campos acima para criar e filtrar a visualização.",missingColumn:"Ausente: %{columnLabel}",placeholderDropzone:"Clicar ou arrastar dados aqui",slotEditor_emptyState_no_visualization_selected_title:"Nenhuma visualização selecionada",slotEditor_emptyState_no_visualization_selected_description:"Selecione uma visualização para gerenciar as configurações de campo.",slotEditor_emptyState_widget_not_support_slot_selected_title:"O widget selecionado não usa campos",slotEditor_emptyState_widget_not_support_slot_selected_description:"Selecione uma visualização para gerenciar as configurações de campo.",slotEditor_emptyState_multiple_visualizations_selected_title:"Vários widgets selecionados",slotEditor_emptyState_multiple_visualizations_selected_description:"Selecione uma visualização para gerenciar as configurações de campo.",slotEditor_emptyState_visualization_has_error_title:"Não é possível exibir a visualização",slotEditor_slotItem_tooltip:"Origem:",slotEditor_emptyState_vis_not_created_title:"Nenhuma visualização criada",slotEditor_emptyState_vis_not_created_description:"Crie uma visualização para gerenciar as configurações de campo.",slotEditor:"Campos",slotEditorCoachMarkTitle:"Campos de acesso",slotEditorCoachMarkContents:"Inclua colunas nos campos para criar e modificar visualizações.",toolbarDeleteFilterActionText:"Remover filtro",toolbarActionFilter:"Filtrar",filterAutobinActionText:"Filtro de categorias",coachMarkTitleSpiralTarget:"Editar escopo",coachMarkContentSpiralTarget:"Este é o local onde é possível acessar e modificar a seleção do driver para seu destino.",overlayDropZonePlaceHolderText:"Arraste os dados para cá"},__ro:{localFilters:"Filtre locale",slotEditorMsg1:"Câmp necesar",slotEditorMsg2:"Trageţi şi plasaţi datele în câmpurile de deasupra, pentru a construi şi filtra vizualizarea.",missingColumn:"Lipsă: %{columnLabel}",placeholderDropzone:"Faceţi clic sau trageţi date aici ",slotEditor_emptyState_no_visualization_selected_title:"Nicio vizualizare selectată",slotEditor_emptyState_no_visualization_selected_description:"Selectaţi o vizualizare pentru gestionarea setărilor de câmp.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Widget-ul selectat nu utilizează câmpuri.",slotEditor_emptyState_widget_not_support_slot_selected_description:"Selectaţi o vizualizare pentru gestionarea setărilor de câmp.",slotEditor_emptyState_multiple_visualizations_selected_title:"Sunt selectate mai multe widget-uri",slotEditor_emptyState_multiple_visualizations_selected_description:"Selectaţi o vizualizare pentru gestionarea setărilor de câmp.",slotEditor_emptyState_visualization_has_error_title:"Vizualizarea nu poate fi afişată.",slotEditor_slotItem_tooltip:"Sursă:",slotEditor_emptyState_vis_not_created_title:"Nu a fost creată nicio vizualizare",slotEditor_emptyState_vis_not_created_description:"Creaţi o vizualizare pentru gestionarea setărilor de câmp.",slotEditor:"Câmpuri",slotEditorCoachMarkTitle:"Accesare câmpuri",slotEditorCoachMarkContents:"Adăugaţi coloane la câmpuri pentru a construi şi modifica vizualizările.",toolbarDeleteFilterActionText:"Înlăturare filtru",toolbarActionFilter:"Filtru",filterAutobinActionText:"Filtrare bin-uri",coachMarkTitleSpiralTarget:"Editare domeniu",coachMarkContentSpiralTarget:"Aici puteţi accesa şi modifica selecţia de driver-e pentru ţinta dumneavoastră.",overlayDropZonePlaceHolderText:"Trageţi date aici"},__ru:{localFilters:"Локальные фильтры",slotEditorMsg1:"Обязательное поле",slotEditorMsg2:"Перетащите данные на находящиеся выше поля, чтобы построить визуализацию и применить к ней фильтр.",missingColumn:"Отсутствует: %{columnLabel}",placeholderDropzone:"Щелкните здесь или перетащите сюда данные",slotEditor_emptyState_no_visualization_selected_title:"Визуализация не отобрана",slotEditor_emptyState_no_visualization_selected_description:"Выберите визуализацию для управления настройками полей.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Выбранный виджет не использует поля",slotEditor_emptyState_widget_not_support_slot_selected_description:"Выберите визуализацию для управления настройками полей.",slotEditor_emptyState_multiple_visualizations_selected_title:"Выбрано несколько виджетов",slotEditor_emptyState_multiple_visualizations_selected_description:"Выберите визуализацию для управления настройками полей.",slotEditor_emptyState_visualization_has_error_title:"Вывести визуализацию невозможно",slotEditor_slotItem_tooltip:"Источник:",slotEditor_emptyState_vis_not_created_title:"Визуализация не создана",slotEditor_emptyState_vis_not_created_description:"Создайте визуализацию для управления настройками полей.",slotEditor:"Поля",slotEditorCoachMarkTitle:"Доступ к полям",slotEditorCoachMarkContents:"Добавьте в поля столбцы для построения и изменения визуализаций.",toolbarDeleteFilterActionText:"Удалить фильтр",toolbarActionFilter:"Фильтр",filterAutobinActionText:"Применить фильтр к контейнерам",coachMarkTitleSpiralTarget:"Изменить область",coachMarkContentSpiralTarget:"Здесь можно получить доступ и изменить выбор драйвера для целевого объекта.",overlayDropZonePlaceHolderText:"Перетащите сюда данные"},__sl:{localFilters:"Lokalni filtri",slotEditorMsg1:"Obvezno polje",slotEditorMsg2:"Povlecite in spustite podatke v polja zgoraj, da zgradite in filtrirate vizualizacijo.",missingColumn:"Manjkajoče: %{columnLabel}",placeholderDropzone:"Kliknite ali povlecite podatke sem",slotEditor_emptyState_no_visualization_selected_title:"Izbrana ni nobena vizualizacija",slotEditor_emptyState_no_visualization_selected_description:"Izberite vizualizacijo za upravljanje nastavitev polja.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Izbrani gradnik ne uporablja polj",slotEditor_emptyState_widget_not_support_slot_selected_description:"Izberite vizualizacijo za upravljanje nastavitev polja.",slotEditor_emptyState_multiple_visualizations_selected_title:"Izbranih je več gradnikov",slotEditor_emptyState_multiple_visualizations_selected_description:"Izberite vizualizacijo za upravljanje nastavitev polja.",slotEditor_emptyState_visualization_has_error_title:"Vizualizacije ni mogoče prikazati",slotEditor_slotItem_tooltip:"Izvor:",slotEditor_emptyState_vis_not_created_title:"Ustvarjena ni bila nobena vizualizacija",slotEditor_emptyState_vis_not_created_description:"Ustvarite vizualizacijo za upravljanje nastavitev polja.",slotEditor:"Polja",slotEditorCoachMarkTitle:"Polja za dostop",slotEditorCoachMarkContents:"V polja dodajte stolpce, da boste lahko gradili in spreminjali vizualizacije.",toolbarDeleteFilterActionText:"Odstrani filter",toolbarActionFilter:"Filter",filterAutobinActionText:"Predali filtra",coachMarkTitleSpiralTarget:"Urejanje območja",coachMarkContentSpiralTarget:"Tukaj lahko dostopate do izbora gonilnikov za svoj cilj in jih spreminjate.",overlayDropZonePlaceHolderText:"Povlecite podatke sem"},__sv:{localFilters:"Lokala filter",slotEditorMsg1:"Obligatoriskt fält",slotEditorMsg2:"Dra data till fälten ovan för att skapa och filtrera visualiseringen.",missingColumn:"%{columnLabel} saknas",placeholderDropzone:"Klicka eller dra data hit",slotEditor_emptyState_no_visualization_selected_title:"Ingen visualisering vald",slotEditor_emptyState_no_visualization_selected_description:"Välj en visualisering för att hantera fältinställningarna.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Den valda widgeten använder inte fält",slotEditor_emptyState_widget_not_support_slot_selected_description:"Välj en visualisering för att hantera fältinställningarna.",slotEditor_emptyState_multiple_visualizations_selected_title:"Flera widgetar har valts",slotEditor_emptyState_multiple_visualizations_selected_description:"Välj en visualisering för att hantera fältinställningarna.",slotEditor_emptyState_visualization_has_error_title:"Det går inte att visa visualiseringen",slotEditor_slotItem_tooltip:"Källa:",slotEditor_emptyState_vis_not_created_title:"Inga visualiseringar har skapats",slotEditor_emptyState_vis_not_created_description:"Skapa en visualisering för att hantera fältinställningarna.",slotEditor:"Fält",slotEditorCoachMarkTitle:"Åtkomst till fält",slotEditorCoachMarkContents:"Lägg till kolumner i fälten för att skapa och ändra visualiseringar.",toolbarDeleteFilterActionText:"Ta bort filter",toolbarActionFilter:"Filtrera",filterAutobinActionText:"Filtrera bin",coachMarkTitleSpiralTarget:"Ändra omfattning",coachMarkContentSpiralTarget:"Här kan du komma åt och ändra valet av styrfunktioner för målet.",overlayDropZonePlaceHolderText:"Dra data hit"},__th:{localFilters:"ตัวกรองโลคัล",slotEditorMsg1:"ฟิลด์ที่จำเป็น",slotEditorMsg2:"ลากและปล่อยข้อมูลลงในฟิลด์ด้านบนเพื่อบิลด์และกรองวิชวลไลเซชัน",missingColumn:"ไม่มี: %{columnLabel}",placeholderDropzone:"คลิกหรือลากข้อมูลที่นี่",slotEditor_emptyState_no_visualization_selected_title:"ไม่ได้เลือกวิชวลไลเซชัน",slotEditor_emptyState_no_visualization_selected_description:"เลือกวิชวลไลเซชันที่จะจัดการการตั้งค่าฟิลด์",slotEditor_emptyState_widget_not_support_slot_selected_title:"วิดเจ็ตที่เลือกไม่ได้ใช้ฟิลด์",slotEditor_emptyState_widget_not_support_slot_selected_description:"เลือกวิชวลไลเซชันที่จะจัดการการตั้งค่าฟิลด์",slotEditor_emptyState_multiple_visualizations_selected_title:"เลือกหลายวิดเจ็ต",slotEditor_emptyState_multiple_visualizations_selected_description:"เลือกวิชวลไลเซชันที่จะจัดการการตั้งค่าฟิลด์",slotEditor_emptyState_visualization_has_error_title:"วิชวลไลเซชันไม่สามารถแสดงผลได้",slotEditor_slotItem_tooltip:"ซอร์ส:",slotEditor_emptyState_vis_not_created_title:"ไม่มีการสร้างวิชวลไลเซชัน",slotEditor_emptyState_vis_not_created_description:"สร้างวิชวลไลเซชันที่จะจัดการการตั้งค่าฟิลด์",slotEditor:"ฟิลด์",slotEditorCoachMarkTitle:"เข้าถึงฟิลด์",slotEditorCoachMarkContents:"เพิ่มคอลัมน์ลงในฟิลด์เพื่อบิลด์และปรับเปลี่ยนวิชวลไลเซชัน",toolbarDeleteFilterActionText:"ลบตัวกรอง",toolbarActionFilter:"ตัวกรอง",filterAutobinActionText:"ถังกรอง",coachMarkTitleSpiralTarget:"แก้ไขขอบเขต",coachMarkContentSpiralTarget:"นี่เป็นตำแหน่งที่คุณสามารถเข้าถึงและปรับเปลี่ยนการเลือกไดรเวอร์สำหรับเป้าหมายของคุณ",overlayDropZonePlaceHolderText:"ลากข้อมูลที่นี่"},__tr:{localFilters:"Yerel süzgeçler",slotEditorMsg1:"Zorunlu alan",slotEditorMsg2:"Görselleştirmeyi oluşturup süzgeçten geçirmek için verileri yukarıdaki alanlara sürükleyip bırakın.",missingColumn:"Eksik: %{columnLabel}",placeholderDropzone:"Tıklatın veya verileri buraya sürükleyin",slotEditor_emptyState_no_visualization_selected_title:"Bir görselleştirme seçilmedi",slotEditor_emptyState_no_visualization_selected_description:"Alan ayarlarını yönetmek için bir görselleştirme seçin.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Seçilen pencere öğesi alanları kullanmıyor",slotEditor_emptyState_widget_not_support_slot_selected_description:"Alan ayarlarını yönetmek için bir görselleştirme seçin.",slotEditor_emptyState_multiple_visualizations_selected_title:"Birden çok pencere öğesi seçildi",slotEditor_emptyState_multiple_visualizations_selected_description:"Alan ayarlarını yönetmek için bir görselleştirme seçin.",slotEditor_emptyState_visualization_has_error_title:"Görselleştirme görüntülenemiyor",slotEditor_slotItem_tooltip:"Kaynak:",slotEditor_emptyState_vis_not_created_title:"Bir görselleştirme oluşturulmadı",slotEditor_emptyState_vis_not_created_description:"Alan ayarlarını yönetmek için bir görselleştirme oluşturun.",slotEditor:"Alanlar",slotEditorCoachMarkTitle:"Erişim alanları",slotEditorCoachMarkContents:"Görselleştirmeleri oluşturmak ve değiştirmek için alanlara sütun ekleyin.",toolbarDeleteFilterActionText:"Süzgeci kaldır",toolbarActionFilter:"Süzgeç",filterAutobinActionText:"Süzgeç bölmeleri",coachMarkTitleSpiralTarget:"Kapsamı düzenle",coachMarkContentSpiralTarget:"Burası, hedefiniz için sürücü seçimine erişebileceğiniz ve sürücü seçimini değiştirebileceğiniz yerdir.",overlayDropZonePlaceHolderText:"Verileri buraya sürükleyin"},__zh:{localFilters:"本地过滤器",slotEditorMsg1:"必填字段",slotEditorMsg2:"将数据拖放到字段上方可构建并过滤可视化。",missingColumn:"缺少:%{columnLabel}",placeholderDropzone:"单击数据或将数据拖到此处",slotEditor_emptyState_no_visualization_selected_title:"未选择任何可视化",slotEditor_emptyState_no_visualization_selected_description:"选择可视化以管理字段设置。",slotEditor_emptyState_widget_not_support_slot_selected_title:"所选窗口小部件不使用字段",slotEditor_emptyState_widget_not_support_slot_selected_description:"选择可视化以管理字段设置。",slotEditor_emptyState_multiple_visualizations_selected_title:"已选择多个窗口小部件",slotEditor_emptyState_multiple_visualizations_selected_description:"选择可视化以管理字段设置。",slotEditor_emptyState_visualization_has_error_title:"无法显示可视化",slotEditor_slotItem_tooltip:"源:",slotEditor_emptyState_vis_not_created_title:"未创建任何可视化",slotEditor_emptyState_vis_not_created_description:"创建可视化以管理字段设置。",slotEditor:"字段",slotEditorCoachMarkTitle:"访问字段",slotEditorCoachMarkContents:"向字段添加列以构建并修改可视化。",toolbarDeleteFilterActionText:"除去过滤器",toolbarActionFilter:"过滤器",filterAutobinActionText:"过滤分箱",coachMarkTitleSpiralTarget:"编辑作用域",coachMarkContentSpiralTarget:"您可以在此访问和修改目标的动因选择。",overlayDropZonePlaceHolderText:"将数据拖到此处"},"__zh-cn":{localFilters:"本地过滤器",slotEditorMsg1:"必填字段",slotEditorMsg2:"将数据拖放到字段上方可构建并过滤可视化。",missingColumn:"缺少:%{columnLabel}",placeholderDropzone:"单击数据或将数据拖到此处",slotEditor_emptyState_no_visualization_selected_title:"未选择任何可视化",slotEditor_emptyState_no_visualization_selected_description:"选择可视化以管理字段设置。",slotEditor_emptyState_widget_not_support_slot_selected_title:"所选窗口小部件不使用字段",slotEditor_emptyState_widget_not_support_slot_selected_description:"选择可视化以管理字段设置。",slotEditor_emptyState_multiple_visualizations_selected_title:"已选择多个窗口小部件",slotEditor_emptyState_multiple_visualizations_selected_description:"选择可视化以管理字段设置。",slotEditor_emptyState_visualization_has_error_title:"无法显示可视化",slotEditor_slotItem_tooltip:"源:",slotEditor_emptyState_vis_not_created_title:"未创建任何可视化",slotEditor_emptyState_vis_not_created_description:"创建可视化以管理字段设置。",slotEditor:"字段",slotEditorCoachMarkTitle:"访问字段",slotEditorCoachMarkContents:"向字段添加列以构建并修改可视化。",toolbarDeleteFilterActionText:"除去过滤器",toolbarActionFilter:"过滤器",filterAutobinActionText:"过滤分箱",coachMarkTitleSpiralTarget:"编辑作用域",coachMarkContentSpiralTarget:"您可以在此访问和修改目标的动因选择。",overlayDropZonePlaceHolderText:"将数据拖到此处"},"__zh-tw":{localFilters:"本端過濾器",slotEditorMsg1:"必要欄位",slotEditorMsg2:"將資料拖放至上方的欄位來建置及過濾視覺化。",missingColumn:"遺漏:%{columnLabel}",placeholderDropzone:"在這裡按一下或拖曳資料",slotEditor_emptyState_no_visualization_selected_title:"未選取任何視覺化",slotEditor_emptyState_no_visualization_selected_description:"選取視覺化以管理欄位設定。",slotEditor_emptyState_widget_not_support_slot_selected_title:"選取的小組件沒有使用欄位。",slotEditor_emptyState_widget_not_support_slot_selected_description:"選取視覺化以管理欄位設定。",slotEditor_emptyState_multiple_visualizations_selected_title:"已選取多個小組件",slotEditor_emptyState_multiple_visualizations_selected_description:"選取視覺化以管理欄位設定。",slotEditor_emptyState_visualization_has_error_title:"無法顯示視覺化。",slotEditor_slotItem_tooltip:"來源:",slotEditor_emptyState_vis_not_created_title:"未建立任何視覺化",slotEditor_emptyState_vis_not_created_description:"建立視覺化以管理欄位設定。",slotEditor:"欄位",slotEditorCoachMarkTitle:"存取欄位",slotEditorCoachMarkContents:"將直條圖新增至欄位以建置和修改視覺化。",toolbarDeleteFilterActionText:"移除過濾器",toolbarActionFilter:"過濾",filterAutobinActionText:"過濾組",coachMarkTitleSpiralTarget:"編輯範圍",coachMarkContentSpiralTarget:"您可以在此處存取及修改目標動因選項。",overlayDropZonePlaceHolderText:"將資料拖曳至此"},init:function(t){t||(t=window._i18n&&window._i18n.locale?window._i18n.locale:document.documentElement.lang?document.documentElement.lang:"root");var e=this["__"+t]||this.__root;if(e)for(var o in e)this[o]=e[o];for(var o in this.__root)void 0===this[o]&&(this[o]=this.__root[o])}};o.init(),t.exports=o},function(t,e){t.exports=s},function(t,e,o){(t.exports=o(21)(!1)).push([t.i,"/**\n * Licensed Materials - Property of IBM\n * IBM Cognos Products: Explore (C) Copyright IBM Corp. 2020\n * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.\n */\n\n.widget.liveWidget.draggedOn .overlayDropZone {\n opacity: 0.2;\n}\n\n.liveWidgetContent .dataview.notOnFocus {\n opacity: 0.2;\n}\n\n.dropZoneOverlay {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n overflow: hidden;\n min-height: 250px;\n min-width: 250px;\n}\n\n.dropZoneOverlay .smallView .overlayContainerMultiple .overlayDropZone:last-child {\n display: none;\n}\n\n.dropZoneOverlay.hidden {\n display: none;\n}\n\n.dropZoneOverlay .overlayView {\n height: 100%;\n}\n\n.dropZoneOverlay .overlayContainer {\n height: 100%;\n -ms-flex-pack: justify;\n justify-content: space-between;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: row;\n flex-direction: row;\n}\n\n.dropZoneOverlay .overlayContainer .section_left,\n.dropZoneOverlay .overlayContainer .section_right {\n display: -ms-flexbox;\n display: flex;\n}\n\n.dropZoneOverlay .overlayContainer .section_left .overlayContainer_left,\n.dropZoneOverlay .overlayContainer .section_left .overlayContainer_right,\n.dropZoneOverlay .overlayContainer .section_right .overlayContainer_left,\n.dropZoneOverlay .overlayContainer .section_right .overlayContainer_right {\n transform-origin: bottom;\n transform: rotate(-90deg);\n position: absolute;\n top: 30%;\n min-width: 160px;\n}\n\n.dropZoneOverlay .overlayContainer .section_left .overlayContainer_left,\n.dropZoneOverlay .overlayContainer .section_right .overlayContainer_left {\n left: -20px;\n}\n\n.dropZoneOverlay .overlayContainer .section_left {\n -ms-flex-preferred-size: 64px;\n flex-basis: 64px;\n}\n\n.dropZoneOverlay .overlayContainer .section_right {\n -ms-flex-preferred-size: 84px;\n flex-basis: 84px;\n}\n\n.dropZoneOverlay .overlayContainer .overlayContainerMiddle {\n -ms-flex-direction: column;\n flex-direction: column;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: justify;\n justify-content: space-between;\n -ms-flex-positive: 2;\n flex-grow: 2;\n}\n\n.dropZoneOverlay .overlayContainer .overlayContainerMiddle .overlayContainer_top,\n.dropZoneOverlay .overlayContainer .overlayContainerMiddle .overlayContainer_bottom {\n padding-left: 8px;\n padding-right: 8px;\n}\n\n.dropZoneOverlay .overlayContainer .overlayContainerMiddle .overlayContainer_top .overlayContainerMultiple,\n.dropZoneOverlay .overlayContainer .overlayContainerMiddle .overlayContainer_bottom .overlayContainerMultiple {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: start;\n justify-content: flex-start;\n}\n\n.dropZoneOverlay .overlayContainer .overlayDropZone {\n max-width: 256px;\n min-width: 97px;\n margin-bottom: 8px;\n margin-left: 8px;\n -ms-flex-positive: 1;\n flex-grow: 1;\n}\n\n.dropZoneOverlay .overlayDropZone .overlayDropZoneCaption {\n font-weight: 600;\n margin-bottom: 4px;\n}\n\n.dropZoneOverlay .overlayDropZone .overlayDropZoneCaption .overlayDropZoneCaptionRequiredStar {\n color: #da1e28;\n color: hsla(var(--support-01-h, 356.80851), var(--support-01-s, 75.80645%), var(--support-01-l, 48.62745%), 1);\n padding-right: 4px;\n}\n\n.dropZoneOverlay .overlayDropZone .overlayDropZonePlaceHolder {\n height: 32px;\n outline: 1px dashed;\n outline-color: #8d8d8d;\n outline-color: hsla(var(--ui-04-h, 0), var(--ui-04-s, 0%), var(--ui-04-l, 55.29412%), 1);\n background-color: white;\n background-color: hsla(var(--ui-01-h, 0), var(--ui-01-s, 0%), var(--ui-01-l, 100%), 1);\n display: -ms-flexbox;\n display: flex;\n}\n\n.dropZoneOverlay .overlayDropZone .overlayDropZonePlaceHolder.dndHover {\n outline: 2px solid;\n outline-color: #0f62fe;\n outline-color: hsla(var(--interactive-01-h, 219.16318), var(--interactive-01-s, 99.17012%), var(--interactive-01-l, 52.7451%), 1);\n}\n\n.dropZoneOverlay .overlayDropZone .overlayDropZonePlaceHolder.dndHover .overlayDropZonePlaceHolderText {\n color: #0f62fe;\n color: hsla(var(--interactive-01-h, 219.16318), var(--interactive-01-s, 99.17012%), var(--interactive-01-l, 52.7451%), 1);\n text-decoration: underline;\n}\n\n.dropZoneOverlay .overlayDropZone .overlayDropZonePlaceHolder.dndHover .overlayDropZoneItemsInsertAfter {\n background-color: #0f62fe;\n background-color: hsla(var(--interactive-01-h, 219.16318), var(--interactive-01-s, 99.17012%), var(--interactive-01-l, 52.7451%), 1);\n}\n\n.dropZoneOverlay .overlayDropZone .overlayDropZonePlaceHolder .overlayDropZonePlaceHolderText {\n font-size: 12px;\n color: #a8a8a8;\n color: hsla(var(--text-03-h, 0), var(--text-03-s, 0%), var(--text-03-l, 65.88235%), 1);\n margin: 8px 16px 0px 8px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.dropZoneOverlay .overlayDropZone .overlayDropZonePlaceHolder .overlayDropZoneItems {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: row;\n flex-direction: row;\n}\n\n.dropZoneOverlay .overlayDropZone .overlayDropZonePlaceHolder .overlayDropZoneItems .overlayDropZoneItemsInsertAfter {\n padding: 0 1px;\n margin: 8px 0 8px 2px;\n}\n\n.dropZoneOverlay .overlayDropZone .overlayDropZonePlaceHolder .overlayDropZoneItems .ba-common-tags__list {\n -ms-flex-wrap: nowrap;\n flex-wrap: nowrap;\n}\n\n.dropZoneOverlay .overlayDropZone .overlayDropZonePlaceHolder .overlayDropZoneItems .ba-common-tags__list .ba-common-tags__listItem {\n height: 16px;\n padding: 4px;\n margin: 4px;\n color: #161616 true;\n color: hsla(var(--ui-05-h, 0), var(--ui-05-s, 0%), var(--ui-05-l, 8.62745%), 1) true;\n background-color: white true;\n background-color: hsla(var(--ui-01-h, 0), var(--ui-01-s, 0%), var(--ui-01-l, 100%), 1) true;\n}\n\n.dropZoneOverlay .overlayDropZone .overlayDropZonePlaceHolder .overlayDropZoneItems .ba-common-tags__list .ba-common-tags__listItem .ba-common-truncatedText {\n display: -ms-inline-flexbox !important;\n display: inline-flex !important;\n}\n\n.darkTheme .dropZoneOverlay .overlayDropZone .overlayDropZoneCaption {\n color: white;\n color: hsla(var(--text-04-h, 0), var(--text-04-s, 0%), var(--text-04-l, 100%), 1);\n}\n\n.darkTheme .dropZoneOverlay .overlayDropZone .overlayDropZonePlaceHolder {\n background-color: #161616;\n background-color: hsla(var(--ui-05-h, 0), var(--ui-05-s, 0%), var(--ui-05-l, 8.62745%), 1);\n}\n\n.darkTheme .dropZoneOverlay .overlayDropZone .overlayDropZonePlaceHolder .overlayDropZonePlaceHolderText {\n color: white;\n color: hsla(var(--text-04-h, 0), var(--text-04-s, 0%), var(--text-04-l, 100%), 1);\n}\n\n",""])},function(t,e){function o(t,e){var o=t[1]||"",i=t[3];if(!i)return o;if(e&&"function"==typeof btoa){var n=function(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}(i);return[o].concat(i.sources.map((function(t){return"/*# sourceURL="+i.sourceRoot+t+" */"}))).concat([n]).join("\n")}return[o].join("\n")}t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i=o(e,t);return e[2]?"@media "+e[2]+"{"+i+"}":i})).join("")},e.i=function(t,o){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},n=0;n<this.length;n++){var r=this[n][0];"number"==typeof r&&(i[r]=!0)}for(n=0;n<t.length;n++){var a=t[n];"number"==typeof a[0]&&i[a[0]]||(o&&!a[2]?a[2]=o:o&&(a[2]="("+a[2]+") and ("+o+")"),e.push(a))}},e}},function(t,e,o){function i(t,e){for(var o=0;o<t.length;o++){var i=t[o],n=h[i.id];if(n){n.refs++;for(var r=0;r<n.parts.length;r++)n.parts[r](i.parts[r]);for(;r<i.parts.length;r++)n.parts.push(c(i.parts[r],e))}else{var a=[];for(r=0;r<i.parts.length;r++)a.push(c(i.parts[r],e));h[i.id]={id:i.id,refs:1,parts:a}}}}function n(t,e){for(var o=[],i={},n=0;n<t.length;n++){var r=t[n],a=e.base?r[0]+e.base:r[0],s={css:r[1],media:r[2],sourceMap:r[3]};i[a]?i[a].parts.push(s):o.push(i[a]={id:a,parts:[s]})}return o}function r(t,e){var o=m(t.insertInto);if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var i=v[v.length-1];if("top"===t.insertAt)i?i.nextSibling?o.insertBefore(e,i.nextSibling):o.appendChild(e):o.insertBefore(e,o.firstChild),v.push(e);else if("bottom"===t.insertAt)o.appendChild(e);else{if("object"!=typeof t.insertAt||!t.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var n=m(t.insertInto+" "+t.insertAt.before);o.insertBefore(e,n)}}function a(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);var e=v.indexOf(t);e>=0&&v.splice(e,1)}function s(t){var e=document.createElement("style");return t.attrs.type="text/css",u(e,t.attrs),r(t,e),e}function l(t){var e=document.createElement("link");return t.attrs.type="text/css",t.attrs.rel="stylesheet",u(e,t.attrs),r(t,e),e}function u(t,e){Object.keys(e).forEach((function(o){t.setAttribute(o,e[o])}))}function c(t,e){var o,i,n,r;if(e.transform&&t.css){if(!(r=e.transform(t.css)))return function(){};t.css=r}if(e.singleton){var u=y++;o=_||(_=s(e)),i=d.bind(null,o,u,!1),n=d.bind(null,o,u,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(o=l(e),i=f.bind(null,o,e),n=function(){a(o),o.href&&URL.revokeObjectURL(o.href)}):(o=s(e),i=p.bind(null,o),n=function(){a(o)});return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else n()}}function d(t,e,o,i){var n=o?"":i.css;if(t.styleSheet)t.styleSheet.cssText=I(e,n);else{var r=document.createTextNode(n),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(r,a[e]):t.appendChild(r)}}function p(t,e){var o=e.css,i=e.media;if(i&&t.setAttribute("media",i),t.styleSheet)t.styleSheet.cssText=o;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(o))}}function f(t,e,o){var i=o.css,n=o.sourceMap,r=void 0===e.convertToAbsoluteUrls&&n;(e.convertToAbsoluteUrls||r)&&(i=b(i)),n&&(i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */");var a=new Blob([i],{type:"text/css"}),s=t.href;t.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}var h={},g=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}}((function(){return window&&document&&document.all&&!window.atob})),m=function(t){var e={};return function(o){if(void 0===e[o]){var i=t.call(this,o);if(i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}e[o]=i}return e[o]}}((function(t){return document.querySelector(t)})),_=null,y=0,v=[],b=o(23);t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=g()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var o=n(t,e);return i(o,e),function(t){for(var r=[],a=0;a<o.length;a++){var s=o[a];(l=h[s.id]).refs--,r.push(l)}t&&i(n(t,e),e);for(a=0;a<r.length;a++){var l;if(0===(l=r[a]).refs){for(var u=0;u<l.parts.length;u++)l.parts[u]();delete h[l.id]}}}};var I=function(){var t=[];return function(e,o){return t[e]=o,t.filter(Boolean).join("\n")}}()},function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var o=e.protocol+"//"+e.host,i=o+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(t,e){var n,r=e.trim().replace(/^"(.*)"$/,(function(t,e){return e})).replace(/^'(.*)'$/,(function(t,e){return e}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(r)?t:(n=0===r.indexOf("//")?r:0===r.indexOf("/")?o+r:i+r.replace(/^\.\//,""),"url("+JSON.stringify(n)+")")}))}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),n=function(t){return t&&t.__esModule?t:{default:t}}(o(3)),r=o(4),a=function(){function t(e){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this.domNode=e.domNode,this.className=e.className,this.slotDataItemHandler=e.slotDataItemHandler,this.addAfter=e.addAfter,this.dndManager=e.dndManager,this.onDragEnter=e.onDragEnter,this.onDragLeave=e.onDragLeave,this.isVisOverlay=e.isVisOverlay,this.timer=null,this.dndManager&&this._setupDnD()}return i(t,[{key:"_setupDnD",value:function(){var t=this,e=this.slotDataItemHandler&&this.slotDataItemHandler.onDrop&&this.slotDataItemHandler.onDrop.bind(this.slotDataItemHandler);this.dndManager.registerDropTarget({el:this.domNode,type:"slot.item",info:function(o,i){return{dragInfo:{position:{x:i.clientX,y:i.clientY}},node:o,onDragEnter:t.activateDropTarget.bind(t),onDragLeave:t.deactivateDropTarget.bind(t),onDrop:e,contentId:t.slotDataItemHandler.getContentId(),slot:t.slotDataItemHandler.getSlotAPI(),indexInSlot:t.slotDataItemHandler.indexInSlot,addAfter:t.addAfter,isVisOverlay:t.isVisOverlay}}})}},{key:"destroy",value:function(){this.dndManager.deregisterDropTarget(this.domNode)}},{key:"updateDropTarget",value:function(t){this.dndManager&&(this.slotDataItemHandler=t,this._setupDnD())}},{key:"activateDropTarget",value:function(){(0,n.default)(this.domNode).toggleClass(this.className,!0),this.onDragEnter&&this.onDragEnter()}},{key:"deactivateDropTarget",value:function(){(0,n.default)(this.domNode).toggleClass(this.className,!1),this.onDragLeave&&this.onDragLeave()}},{key:"onDragMove",value:function(t,e,o){var i=this,a=(0,n.default)(e).closest(".slotEditor").get(0);a&&(0,r.handleScroll)(o,a,(function(){return i.dndManager&&i.dndManager.reassessContainer(a)})),this.activateDropTarget()}},{key:"initializeDndSource",value:function(t,e,o,i){var r=this;(0,n.default)(this.domNode).on("mousedown",{},(function(n){return i&&i(),r._startDrag({dndManager:t,event:n,cbGetSlotDataItemHandler:e,iconsFeature:o}),!0})),(0,n.default)(this.domNode).on("touchstart",{},(function(n){return i&&i(),r._touchStart({dndManager:t,event:n,cbGetSlotDataItemHandler:e,iconsFeature:o}),!0})),(0,n.default)(this.domNode).on("touchend touchcancel",{},(function(){return r._touchEnd()}))}},{key:"_touchStart",value:function(t){this.timer=setTimeout(function(){this._touchStartDrag(t)}.bind(this),600)}},{key:"_touchEnd",value:function(){this.timer&&clearTimeout(this.timer),this.timer=null}},{key:"_touchStartDrag",value:function(t){this.timer&&this._startDrag(t)}},{key:"_startDrag",value:function(t){var e=(0,n.default)('<div style="position:absolute; z-index:10000;"/>'),o=(0,n.default)(this.domNode).clone().addClass("draggedNode"),i=this.domNode.getBoundingClientRect().width;if(o.css({width:i,cursor:"default"}),t.iconsFeature){var r=t.iconsFeature.getIcon("common-nodrop");if(r){var a=(0,n.default)('<div class="nodrop is-hidden">\n\t\t\t\t\t\t<svg class="svgIcon">\n\t\t\t\t\t\t\t<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#'+r.id+'">\n\t\t\t\t\t\t\t</use>\n\t\t\t\t\t\t</svg>\n\t\t\t\t\t</div>');o.find(".bi-common-field-item__nameLine__draggable").remove(),o.find(".bi-common-field-item__nameLine").prepend(a)}}e.append(o);var s=t.cbGetSlotDataItemHandler();t.dndManager.startDrag({event:t.event,type:"SLOT_ITEM",data:{source:{slot:s.getSlotAPI(),indexInSlot:s.indexInSlot}},callerCallbacks:{onMove:this._onMove.bind(this)},avatar:e,moveXThreshold:20,moveYThreshold:20})}},{key:"_onMove",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=e.dragObject;if(o){var i=o.avatar;if(i){var r=(0,n.default)(i),a=r.find(".nodrop");if(a.length){var s=e.dropTargetNode;if(s){var l=!(s.classList&&s.classList.contains("slotEditor"));a.toggleClass("is-hidden",l)}else a.toggleClass("is-hidden",!1)}}}}}]),t}();e.default=a},function(t,e){t.exports=l}])})),define("dashboard-analytics/features/content/dataQueryExecution/SharedSlotVisQueryModifier",["underscore","../../../lib/@waca/dashboard-common/dist/core/APIFactory","./api/QueryModifierAPI","./DataQueryUtils"],(function(t,e,o){return function(){function t(e){var o=e.content,i=e.features;_classCallCheck(this,t),this.content=o,i.DataQueryExecution.registerQueryModifier(this.getAPI())}return t.prototype.getAPI=function(){return this.api||(this.api=e.createAPI(this,[o])),this.api},t.prototype.getType=function(){return"main"},t.prototype.modifyQuerySpecList=function(t){var e=this.content.getFeature("Visualization").getSlots().getMappedSlotList();return this._hasSharedSlot(e)&&this._addExtraDataItems(t,e),t},t.prototype._hasSharedSlot=function(t){return t.filter((function(t){return t.getDefinition().getDatasetIdList().length>1})).length>0},t.prototype._getDataItemMap=function(t){var e={};return t.forEach((function(t){t.spec.dataItems.forEach((function(t){e[t.id]||(e[t.id]=t)}))})),e},t.prototype._getNestIdList=function(t){var e=[];return t.dataItems.forEach((function(t){t.nest&&e.push.apply(e,t.nest)})),e},t.prototype._getExtraDataItemIdList=function(t,e){var o=[],i=t.spec.projections,n=this._getNestIdList(t.spec),r=[].concat(i,n);return e.forEach((function(t){t.getDataItemList().forEach((function(t){var e=t.getId();"fact"===t.getType()&&-1===r.indexOf(e)&&o.push(e)}))})),o},t.prototype._addExtraDataItems=function(t,e){var o=this,i=this._getDataItemMap(t);t.forEach((function(t){var n,r=[];(o._getExtraDataItemIdList(t,e).forEach((function(t){var e=i[t];o._isValidDataItem(e)&&r.push(e)})),r.length)&&(n=t.spec.dataItems).push.apply(n,r);o._modifyMultiEdgeSort(t)}))},t.prototype._isValidDataItem=function(t){return!!t.selection&&t.selection.filter((function(t){return-1!==Object.keys(t).indexOf("sort")})).length>0},t.prototype._modifyMultiEdgeSort=function(t){t.spec.queryHints&&(t.spec.queryHints.multiEdgeSort=!1)},t}()})),define("dashboard-analytics/features/content/layers",["./visIndicators/VisIndicators","./visIndicators/conditionalViewIndicator/ConditionalViewIndicator","./dataPointActions/DataPointActions","./selections/dataPointSelections/DataPointSelections","./visDnD/VisDnD","./slotActions/SlotActions","./common/contextualGridAction/ContextualGridAction","./common/textAction/TextAction","./expandCollapse/ExpandCollapse","./keyDrivers/KeyDriversProvider","./vis-smartcolormap/SmartColorRenderStepProvider","./viprPropertyProvider/ViprPropertyProvider","./visPropertyProvider/VisPropertyProvider","./conditionalFormatting/ConditionalFormatting","./dnD/VisDnDUtils","./smart-title/SmartTitleFeatureProvider","./overlay/DropZonesOverlayState","./overlay/DropZonesOverlayDOM","./dataQueryExecution/SharedSlotVisQueryModifier"],(function(){})),define("dashboard-analytics/features/content/slotActions/aggregationTypeAction/AggregationTypeAction",["underscore","../../../../widgets/livewidget/nls/StringResources","../../../../dataSources/metadata/MetadataColumn","../../../../apiHelpers/SlotAPIHelper","../../../../lib/@waca/dashboard-common/dist/core/APIFactory","../api/SlotActionsProviderAPI","../../../../lib/@waca/dashboard-common/dist/api/ContentActionsProviderAPI"],(function(t,e,o,i,n,r,a){return function(){function s(t){var e=t.features,o=t.content,i=t.dashboardAPI;_classCallCheck(this,s),this.content=o,this._slotActions=e.SlotActions,this._dashboard=e.API||i,this._icons=e.Icons||e["Dashboard.Icons"],this._dashboardState=e.DashboardState,this._contentActions=e.ContentActions}return s.prototype.initialize=function(){this._slotActions&&this._slotActions.registerProvider("aggregationTypeAction",this.getAPI()),this._contentActions&&this._contentActions.registerProvider("aggregationTypeAction",this.getAPI())},s.prototype._getSlotById=function(t,e){return e.getSlots().getSlot(t)},s.prototype._isMultiMeasuresSeriesSlot=function(t,e){return void 0===e&&(i.isMultiMeasuresSeriesSlot(t)||i.isMultiMeasuresValueSlot(t))},s.prototype._supportAction=function(t,e,o,i){var n=i.getDataSource();if(!t||!e||this._isMultiMeasuresSeriesSlot(t,o)||null===n.getMetadataColumn(e.getColumnId()))return!1;var r=e.getMetadataColumn()&&e.getMetadataColumn().getAggregationMode();if("static"===r&&"fact"===e.getType())return!1;var a=t.getDefinition()&&t.getDefinition().getType();return"static"!==r&&("ordinal"===a||"any"===a)},s.prototype.getContentActionList=function(e){if(1===e.length){var o=this._dashboardState.getUiState(),i=e[0],n=this._dashboard.getCanvas().getContent(i).getFeature("Visualization");if(n){var r=n.getDefinition().getProperty("actions"),a=t.find(r,(function(t){return"AggregationTypeAction"===t.id}));if(a&&!0!==o.eventGroups)return this.getContribution(n,a.slot)}}return[]},s.prototype.getContribution=function(t,o,i){var n=i;if(!o||Array.isArray(i)&&i.length>1)return[];null==i?i=0:Array.isArray(i)&&1===i.length&&(i=i[0]);var r=this._getSlotById(o,t),a=r.getDataItemList(),s=a.length>i?a[i]:null;if(!s||!this._supportAction(r,s,n,t))return[];var l=this.getViewState(o,i,t),u=this._icons.getIcon("dashboard-aggregate");return[{name:"aggregationTypeAction",label:e.get("toolbarActionAggregationType"),icon:u.id,type:"NextView",view:{module:"dashboard-analytics/lib/@waca/dashboard-common/dist/ui/dialogs/CommonSelectItemsDialog",state:l},actions:{apply:this.applyAggregation.bind(this,t,o,i)}}]},s.prototype.getSlotActionList=function(t,e){var o=this.content.getFeature("Visualization");return this.getContribution(o,t,e)},s.prototype.applyAggregation=function(t,e,o,i){var n="auto"===i?void 0:i;this._getSlotById(e,t).getDataItemList()[o].setAggregation(n)},s.prototype._getPossibleItems=function(i,n,r,a){var s=this._getSlotById(i,a),l=s.getDataItemList()[n],u=null;if(s&&l){var c=l.getMetadataColumn();u=c&&c.getDefaultAggregation()}var d=void 0;d="attribute"===r?"any"===s.getDefinition().getType()?o.SUPPORTED_AGGREGATION_FOR_ATTRIBUTE:t.without(o.SUPPORTED_AGGREGATION_FOR_ATTRIBUTE,o.AGGREGATION_TYPE_MAP.none):o.SUPPORTED_AGGREGATION_FOR_FACT;var p=[];if(t.each(d,(function(t){var o={id:t,localizedString:e.get(t)};p.push(o)})),"fact"===r){var f={id:"auto",localizedString:e.get("defaultAggregation_auto",{aggregationType:e.get(u)})};p.push(f)}return p},s.prototype._getCurrentSelectedItem=function(t,e){var o=t.getDataItemList()[e],i=o.getAggregation();return"fact"===this._getEffectiveColumnTypeForAggregation(t,e)&&o.hasDefaultAggregation()?"auto":i},s.prototype._getEffectiveColumnTypeForAggregation=function(t,e){var o=t.getDataItemList()[e].getMetadataColumn();return o&&o.getType()},s.prototype.getViewState=function(t,e,o){var i=this._getSlotById(t,o);if(!i)return null;var n=this._getEffectiveColumnTypeForAggregation(i,e);return void 0===n?null:{height:270,width:140,getCurrentSelectedItem:this._getCurrentSelectedItem.bind(this,i,e),possibleItems:this._getPossibleItems(t,e,n,o)}},s.prototype.getAPI=function(){return this._api||(this._slotActions&&(this._api=n.createAPI(this,[r])),this._contentActions&&(this._api=n.createAPI(this,[a]))),this._api},s}()})),function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("@ba-ui-toolkit/ba-graphics/dist/illustrations-js/ba-graphics-icons-commons.js"));else if("function"==typeof define&&define.amd)define("dashboard-analytics/lib/@waca/dashboard-common/dist/lib/@ba-ui-toolkit/ba-graphics/dist/illustrations-js/drag-fields_128",["@ba-ui-toolkit/ba-graphics/dist/illustrations-js/ba-graphics-icons-commons.js"],e);else{var o=e("object"==typeof exports?require("@ba-ui-toolkit/ba-graphics/dist/illustrations-js/ba-graphics-icons-commons.js"):t["@ba-ui-toolkit/ba-graphics/dist/illustrations-js/ba-graphics-icons-commons.js"]);for(var i in o)("object"==typeof exports?exports:t)[i]=o[i]}}("undefined"!=typeof self?self:this,(function(t){return webpackJsonPBaGraphics([109],{"03f7074495483f02801f":function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o("3865314c5959606874d4"),n=(o.n(i),o("9c400885604205f22fd3"));e.default=n.a},"3865314c5959606874d4":function(e,o){e.exports=t},"9c400885604205f22fd3":function(t,e,o){"use strict";var i=o("9689a9c94ae38b47fa2c"),n=o.n(i),r=o("9ce58a7deea14f49ef01"),a=o.n(r),s=new n.a({id:"drag-fields_128_v7",use:"drag-fields_128_v7-usage",viewBox:"0 0 200 200",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" id="drag-fields_128_v7"><defs><linearGradient id="drag-fields_128_v7_a" x1="100" y1="157.11" x2="100" y2="-3.02" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#fff" /><stop offset=".01" stop-color="#fff" stop-opacity=".99" /><stop offset=".23" stop-color="#fff" stop-opacity=".7" /><stop offset=".43" stop-color="#fff" stop-opacity=".45" /><stop offset=".62" stop-color="#fff" stop-opacity=".25" /><stop offset=".78" stop-color="#fff" stop-opacity=".12" /><stop offset=".91" stop-color="#fff" stop-opacity=".03" /><stop offset="1" stop-color="#fff" stop-opacity="0" /></linearGradient></defs><circle class="ba-graphics-gray40" cx="100" cy="100" r="100" /><path class="ba-graphics-white" d="M33.09 60.78h134v109.26h-134z" /><path class="ba-graphics-gray80" d="M6.83 172.06H2.07a2 2 0 110-4h4.76a2 2 0 110 4z" /><path style="opacity:.75;fill:url(#drag-fields_128_v7_a)" d="M171.29 170.11a100 100 0 10-142.58 0z" /><circle class="ba-graphics-white" cx="101.64" cy="21.45" r="2" /><path class="ba-graphics-white" d="M78 39.17a4 4 0 004-4 1 1 0 012 0 4 4 0 004 4 1 1 0 010 2 4 4 0 00-4 4 1 1 0 01-2 0 4 4 0 00-4-4 1 1 0 010-2z" /><path class="ba-graphics-gray80" d="M167.12 172.08h-11a2 2 0 010-4h9v-3a2 2 0 014 0v5a2 2 0 01-2 2zm-21 0h-11a2 2 0 010-4h11a2 2 0 010 4zm-21 0h-11a2 2 0 010-4h11a2 2 0 110 4zm-21 0h-11a2 2 0 010-4h11a2 2 0 110 4zm-21 0h-11a2 2 0 010-4h11a2 2 0 010 4zm-21 0h-11a2 2 0 010-4h11a2 2 0 110 4zm-21 0h-8.28a2 2 0 01-2-2v-2.72a2 2 0 114 0v.72h6.28a2 2 0 110 4zm-8.28-12.72a2 2 0 01-2-2v-11a2 2 0 114 0v11a2 2 0 01-2 2zm134.28-2.25a2 2 0 01-2-2v-11a2 2 0 014 0v11a2 2 0 01-2 2zM32.84 138.36a2 2 0 01-2-2v-11a2 2 0 114 0v11a2 2 0 01-2 2zm134.28-2.25a2 2 0 01-2-2v-11a2 2 0 014 0v11a2 2 0 01-2 2zM32.84 117.36a2 2 0 01-2-2v-11a2 2 0 114 0v11a2 2 0 01-2 2zm134.28-2.25a2 2 0 01-2-2v-11a2 2 0 014 0v11a2 2 0 01-2 2zM32.84 96.36a2 2 0 01-2-2v-11a2 2 0 114 0v11a2 2 0 01-2 2zm134.28-2.25a2 2 0 01-2-2v-11a2 2 0 014 0v11a2 2 0 01-2 2zM32.84 75.36a2 2 0 01-2-2v-11a2 2 0 114 0v11a2 2 0 01-2 2zm134.28-2.25a2 2 0 01-2-2v-9.74a2.07 2.07 0 01-.26-1 2 2 0 012-2h.26a2 2 0 012 2v10.74a2 2 0 01-2 2zm-10.26-10.74h-11a2 2 0 010-4h11a2 2 0 010 4zm-21 0h-11a2 2 0 010-4h11a2 2 0 010 4zm-21 0h-11a2 2 0 010-4h11a2 2 0 010 4zm-21 0h-11a2 2 0 010-4h11a2 2 0 010 4zm-21 0h-11a2 2 0 010-4h11a2 2 0 010 4zm-21 0h-11a2 2 0 010-4h11a2 2 0 010 4z" /><path class="ba-graphics-gray80" d="M100 4a96 96 0 11-96 96 96.11 96.11 0 0196-96m0-4a100 100 0 10100 100A100 100 0 00100 0z" /><path class="ba-graphics-gray80" d="M198 172.06H14.92a2 2 0 110-4H198a2 2 0 010 4z" /><rect class="ba-graphics-gray80" x="131.95" y="29.21" width="53.69" height="22.71" rx="2" transform="rotate(-19.12 158.791 40.574)" /><path class="ba-graphics-gray80" d="M189.82 17.64a2 2 0 01-.48-3.94l6.89-1.7a2 2 0 011 3.88l-6.89 1.72a2.05 2.05 0 01-.52.04zm-4.75-4.83a2 2 0 01-1.71-3l4.89-8.14a2 2 0 113.43 2.05l-4.89 8.15a2 2 0 01-1.72.94zm-6.49-1.92a2 2 0 01-1.94-1.51l-1.72-6.89a2 2 0 013.88-1l1.72 6.89a2 2 0 01-1.45 2.42 1.69 1.69 0 01-.49.09z" /><rect class="ba-graphics-white" x="134.42" y="24.13" width="53.69" height="22.71" rx="2" transform="rotate(-19.12 161.265 35.495)" /><path class="ba-graphics-gray80" d="M180.44 21.06L185.26 35l-43.17 15-4.82-14 43.17-15m1.23-4.55a2.16 2.16 0 00-.65.11l-47 16.28a2 2 0 00-1.24 2.54L139 53.12a2 2 0 001.89 1.35 2.17 2.17 0 00.66-.11l47-16.28a2 2 0 001.23-2.54l-6.13-17.68a2 2 0 00-1.89-1.35z" /><path class="ba-graphics-highlight" d="M112.33 110.13h-9.11V101a3.08 3.08 0 00-6.16 0v9.11H88a3.08 3.08 0 000 6.15h9.11v9.11a3.08 3.08 0 006.16 0v-9.11h9.11a3.08 3.08 0 100-6.15z" /><circle class="ba-graphics-white" cx="52.27" cy="33.67" r="2" /><ellipse class="ba-graphics-gray40" cx="146.41" cy="40.48" rx="2.96" ry="3.04" transform="rotate(-45 146.401 40.489)" /><path class="ba-graphics-gray40" d="M155.07 39.52a2 2 0 01-.67-3.89l23.13-8.16a2 2 0 011.33 3.78l-23.13 8.15a1.92 1.92 0 01-.66.12z" /><g style="opacity:.1"><path class="ba-graphics-gray80" d="M151.5 79.79h5.35a8.19 8.19 0 005.75-2.22c1.58-1.56 3.14-3 4.6-4.67a11.25 11.25 0 000-14.88l-10.38-10.57a1.65 1.65 0 00-1.71-.37c-1.41.4-1.75 1.85-.78 3.22a1.88 1.88 0 01-.14 2.63 1.82 1.82 0 01-2.62-.12c-.55-.51-1.06-1.06-1.6-1.58a2 2 0 00-2.77-.14 1.89 1.89 0 000 2.76c.48.54 1 1 1.51 1.54a1.89 1.89 0 01.19 2.8c-.82.83-1.86.76-2.86-.21-.76-.73-1.5-1.49-2.25-2.23a2 2 0 00-2.82-.2 1.85 1.85 0 00.11 2.8c1.38 1.43 2.8 2.85 4.2 4.27a1.8 1.8 0 01.57 1.81 1.86 1.86 0 01-3.16.85c-1.24-1.16-2.41-2.39-3.61-3.58a2 2 0 00-3-.24 1.94 1.94 0 00.21 2.88c1.4 1.43 2.84 2.82 4.25 4.23q2.46 2.43 4.83 4.79a1.73 1.73 0 01.45 1.91 1.86 1.86 0 01-3.23.56c-1.2-1.19-2.37-2.42-3.54-3.63-.26-.27-.25.13-.25.13v2.39c.14 2.71 2 5 4.5 5.09z" /><path class="ba-graphics-gray80" d="M155.7 47a1.52 1.52 0 011.12.46L167.2 58a11.25 11.25 0 010 14.88c-1.46 1.63-3 3.11-4.6 4.67a8.23 8.23 0 01-5.6 2.24h-13.69c-2.47-.1-4.36-2.38-4.5-5.09v-2.39s0-.23.1-.23.08 0 .15.1c1.17 1.21 2.34 2.44 3.54 3.63a2.22 2.22 0 001.55.7 1.79 1.79 0 001.68-1.26 1.73 1.73 0 00-.45-1.91Q143 71 140.62 68.57c-1.41-1.41-2.85-2.8-4.25-4.23a1.94 1.94 0 01-.21-2.88 1.76 1.76 0 011.26-.54 2.47 2.47 0 011.69.78c1.2 1.19 2.37 2.42 3.61 3.58a2 2 0 001.38.58 1.85 1.85 0 001.78-1.43 1.8 1.8 0 00-.57-1.81c-1.4-1.42-2.82-2.84-4.2-4.27a1.85 1.85 0 01-.11-2.8 1.79 1.79 0 011.25-.51 2.3 2.3 0 011.57.71c.75.74 1.49 1.5 2.25 2.23a2.39 2.39 0 001.61.78 1.74 1.74 0 001.25-.57 1.89 1.89 0 00-.19-2.8c-.49-.52-1-1-1.51-1.54a1.89 1.89 0 010-2.76 1.8 1.8 0 011.26-.5 2.19 2.19 0 011.51.64c.54.52 1.05 1.07 1.6 1.58a2.1 2.1 0 001.42.62 1.78 1.78 0 001.2-.5 1.88 1.88 0 00.14-2.63c-1-1.37-.63-2.82.78-3.22a2.06 2.06 0 01.59-.09m0-3.77a6 6 0 00-1.62.23 5.47 5.47 0 00-3.76 3.46 1.07 1.07 0 00-.07.19 5.69 5.69 0 00-1.79-.29 5.66 5.66 0 00-5.51 4.5 5.48 5.48 0 00-.7 0 5.57 5.57 0 00-3.85 1.55 5.51 5.51 0 00-1.76 3.9v.48a5.62 5.62 0 00-3.15 1.58 5.71 5.71 0 00.18 8.21c.82.83 1.65 1.66 2.49 2.48a4 4 0 00-1.19 2.85v2.56c.25 4.77 3.75 8.49 8.13 8.66H157a12 12 0 008.2-3.24l.93-.92c1.26-1.24 2.58-2.53 3.82-3.93a15 15 0 000-19.9l-.06-.07-.07-.07-10.31-10.64a5.21 5.21 0 00-3.81-1.59z" /></g><path class="ba-graphics-white" d="M153.62 75.91h5.07a7.81 7.81 0 005.46-2.1c1.49-1.48 3-2.88 4.35-4.43a10.66 10.66 0 000-14.11l-9.83-10a1.6 1.6 0 00-1.63-.35c-1.33.38-1.66 1.75-.73 3.05a1.78 1.78 0 01-.13 2.49 1.73 1.73 0 01-2.49-.11c-.52-.48-1-1-1.52-1.5a1.87 1.87 0 00-2.62-.13 1.8 1.8 0 000 2.62c.45.5 1 1 1.43 1.46a1.79 1.79 0 01.18 2.65c-.77.78-1.76.72-2.71-.2-.72-.69-1.42-1.41-2.13-2.11a1.86 1.86 0 00-2.68-.19 1.76 1.76 0 00.1 2.65c1.32 1.36 2.66 2.7 4 4a1.69 1.69 0 01.53 1.72 1.75 1.75 0 01-3 .8c-1.17-1.1-2.28-2.27-3.42-3.4a1.91 1.91 0 00-2.79-.22 1.84 1.84 0 00.2 2.73c1.32 1.35 2.69 2.67 4 4 1.51 1.5 3 3 4.5 4.54a1.62 1.62 0 01.43 1.81 1.76 1.76 0 01-3.06.53c-1.14-1.13-2.24-2.29-3.36-3.44-.24-.26-.23.12-.23.12v2.26c.13 2.57 1.93 4.74 4.27 4.82z" /><path class="ba-graphics-gray80" d="M157.61 44.83a1.43 1.43 0 011.06.43l9.83 10a10.66 10.66 0 010 14.11c-1.38 1.55-2.86 3-4.35 4.43a7.83 7.83 0 01-5.33 2.1h-12.95c-2.34-.08-4.14-2.25-4.27-4.82v-2.26s0-.21.09-.21a.21.21 0 01.14.09c1.12 1.15 2.22 2.31 3.36 3.44a2.08 2.08 0 001.47.66 1.69 1.69 0 001.59-1.19 1.62 1.62 0 00-.43-1.81c-1.49-1.52-3-3-4.5-4.54-1.33-1.34-2.7-2.66-4-4a1.84 1.84 0 01-.2-2.73 1.66 1.66 0 011.2-.51 2.33 2.33 0 011.59.73c1.14 1.13 2.25 2.3 3.42 3.4a1.93 1.93 0 001.31.55 1.74 1.74 0 001.68-1.35 1.69 1.69 0 00-.53-1.72c-1.33-1.35-2.67-2.69-4-4a1.77 1.77 0 011.08-3.14 2.17 2.17 0 011.5.68c.71.7 1.41 1.42 2.13 2.11a2.22 2.22 0 001.5.72 1.65 1.65 0 001.18-.54 1.79 1.79 0 00-.18-2.65c-.47-.5-1-.95-1.43-1.46a1.8 1.8 0 010-2.62 1.72 1.72 0 011.19-.48 2.09 2.09 0 011.43.61c.52.49 1 1 1.52 1.5a2 2 0 001.34.59 1.68 1.68 0 001.15-.48 1.78 1.78 0 00.13-2.49c-.93-1.3-.6-2.67.73-3.05a2.24 2.24 0 01.57-.08m0-4a6.33 6.33 0 00-1.66.23 5.63 5.63 0 00-3.77 3.35 5.8 5.8 0 00-1.44-.18 5.72 5.72 0 00-3.94 1.57 5.8 5.8 0 00-1.61 2.66h-.34a5.71 5.71 0 00-3.95 1.52 5.64 5.64 0 00-1.8 4v.12a5.72 5.72 0 00-2.85 1.55 5.81 5.81 0 00.16 8.37l2.08 2.08a4.2 4.2 0 00-.92 2.72v2.45c.25 4.74 3.74 8.44 8.12 8.6h13.1a11.78 11.78 0 008.06-3.18l.88-.86c1.2-1.18 2.45-2.41 3.65-3.75a14.62 14.62 0 000-19.42l-.07-.08-.07-.07-9.83-10a5.37 5.37 0 00-3.91-1.63z" /></symbol>'});a.a.add(s),e.a=s}},["03f7074495483f02801f"])})),define("dashboard-analytics/widgets/livewidget/dialogs/components/SortableList",["../../nls/StringResources","react-dom","react","ca-ui-toolkit","corsair_ship/ba-react-html5-dnd","../../../../lib/@waca/dashboard-common/dist/lib/@ba-ui-toolkit/ba-graphics/dist/illustrations-js/drag-fields_128"],(function(t,e,o,i,n,r){"use strict";var a=i.SVGIcon,s=i.Container,l=i.FlexLayout,u=i.FlexItem,c=i.SimpleTable,d=i.TruncatedText,p=i.classnames;return n(function(e){function i(o){_classCallCheck(this,i);var n=_possibleConstructorReturn(this,e.call(this,o));return n.state={data:o.sortableData||[]},n.idPrefix=o.idPrefix||"",n.resources={moveToTop:t.get("moveToTop"),clear:t.get("clear"),createCustomSort:t.get("createCustomSort"),selectAvailableItemsDesc:t.get("selectAvailableItemsDesc")},n.onChange=o.onChange,n.iconsFeature=o.iconsFeature,n}return _inherits(i,e),i.getDerivedStateFromProps=function(t){return{data:t.sortableData}},i.prototype._reOrderRow=function(t,e,o){var i=[].concat(t);i.splice(o,0,i.splice(e,1)[0]),this.onChange(i)},i.prototype._moveToTop=function(t){0!==t&&this._reOrderRow(this.state.data,t,0)},i.prototype._removeItem=function(t,e){e&&(e.preventDefault(),e.stopPropagation());var o=this.state.data.filter((function(e){return t!==e.value}));this.onChange(o,t)},i.prototype._cellRenderer=function(t){var e=this,i=this.state.data[t].value,n=this.state.data[t].label,r=this.iconsFeature.getIcon("resizePanel"),c=this.iconsFeature.getIcon("remove");return o.createElement(l,{className:"ba-sortableList__content",gutter:[1,1],id:this.idPrefix+i,onClose:this._closeContainer},o.createElement(l,{className:"ba-sortableList__resize",justifyContent:"center",alignItems:"center"},o.createElement(a,{focusable:!1,iconId:r.id,rotate:90})),o.createElement(s,{className:"ba-sortableList__label",padding:[1,1,1,0]},o.createElement(d,{value:n,location:"end"})),o.createElement(s,{className:"ba-sortableList__buttons",gutter:[1,1]},o.createElement(u,{className:p({"ba-sortableList__moveToTop":!0,"ba-sortableList__moveToTop__hidden":0===t}),justifyContent:"center",alignItems:"center",tabIndex:t>0?0:null,"aria-label":this.resources.moveToTop+" "+n,role:"link",onClick:function(){return e._moveToTop(t)},onKeyPress:function(o){"Enter"===o.key&&e._moveToTop(t)}},o.createElement("span",null,this.resources.moveToTop)),o.createElement(u,{className:"ba-sortableList__remove",justifyContent:"center",alignItems:"center","aria-label":this.resources.clear+" "+n,role:"link",tabIndex:0,onClick:function(t){return e._removeItem(i,t)},onKeyPress:function(t){"Enter"===t.key&&e._removeItem(i,t)}},o.createElement(a,{focusable:!1,iconId:c.id}))))},i.prototype.render=function(){var t=this,e=this.state.data.length>0?o.createElement("div",{className:"ba-sortableList__container"},o.createElement(c,{colToAddScopeRow:1,draggable:!0,height:"100%",rowLength:this.state.data.length,colLength:1,cellRenderer:this._cellRenderer.bind(this),onRowMove:function(e,o){t._reOrderRow(t.state.data,e,o)}})):o.createElement("div",{className:"ba-sortableList__emptyView"},o.createElement("div",{className:"ba-sortableList__emptyView__icon"},o.createElement("svg",{viewBox:r.default.viewBox,focusable:"false"},o.createElement("use",{xlinkHref:"#"+r.default.id}))),o.createElement("div",{className:"ba-sortableList__emptyView__text__line1",role:"option"},this.resources.createCustomSort),o.createElement("div",{className:"ba-sortableList__emptyView__text__line2",role:"option"},this.resources.selectAvailableItemsDesc));return this._blurLinkElements(),e},i.prototype._blurLinkElements=function(){var t=document.getElementsByClassName("ba-sortableList__container");if(t&&t[0]){var e=t[0].querySelectorAll(".ba-sortableList__moveToTop, .ba-sortableList__remove");if(e&&e.length>0)for(var o=0;o<e.length;o++)e[o].blur()}},i}(o.Component))})),function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("@ba-ui-toolkit/ba-graphics/dist/illustrations-js/ba-graphics-icons-commons.js"));else if("function"==typeof define&&define.amd)define("dashboard-analytics/lib/@waca/dashboard-common/dist/lib/@ba-ui-toolkit/ba-graphics/dist/illustrations-js/search-results_128",["@ba-ui-toolkit/ba-graphics/dist/illustrations-js/ba-graphics-icons-commons.js"],e);else{var o=e("object"==typeof exports?require("@ba-ui-toolkit/ba-graphics/dist/illustrations-js/ba-graphics-icons-commons.js"):t["@ba-ui-toolkit/ba-graphics/dist/illustrations-js/ba-graphics-icons-commons.js"]);for(var i in o)("object"==typeof exports?exports:t)[i]=o[i]}}("undefined"!=typeof self?self:this,(function(t){return webpackJsonPBaGraphics([35],{"3865314c5959606874d4":function(e,o){e.exports=t},b86a89ab812875d2eaf9:function(t,e,o){"use strict";var i=o("9689a9c94ae38b47fa2c"),n=o.n(i),r=o("9ce58a7deea14f49ef01"),a=o.n(r),s=new n.a({id:"search-results_128_v7",use:"search-results_128_v7-usage",viewBox:"0 0 200 200",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" id="search-results_128_v7"><circle class="ba-graphics-neutral-white4" cx="100" cy="100" r="100" /><path class="ba-graphics-white" d="M14.97 170.08h135.66" /><path class="ba-graphics-gray60" d="M150.63 172.08H15a2 2 0 110-4h135.63a2 2 0 010 4z" /><path class="ba-graphics-white" d="M2 170.08h4.97" /><path class="ba-graphics-gray60" d="M7 172.08H2a2 2 0 010-4h5a2 2 0 010 4z" /><path class="ba-graphics-white" d="M179.03 170.08H198" /><path class="ba-graphics-gray60" d="M198 172.08h-19a2 2 0 010-4h19a2 2 0 010 4z" /><path class="ba-graphics-white" d="M158.63 170.08h12.4" /><path class="ba-graphics-gray60" d="M171 172.08h-12.4a2 2 0 010-4H171a2 2 0 010 4z" /><circle class="ba-graphics-gray60" cx="55.73" cy="70.9" r="2" /><circle class="ba-graphics-gray60" cx="99.29" cy="34.77" r="2" /><path class="ba-graphics-gray60" d="M54.38 36.33a4 4 0 004-4 1 1 0 012 0 4 4 0 004 4 1 1 0 010 2 4 4 0 00-4 4 1 1 0 01-2 0 4 4 0 00-4-4 1 1 0 010-2zm80.04-12.56a2.65 2.65 0 002.65-2.65.66.66 0 011.32 0 2.65 2.65 0 002.61 2.65.66.66 0 010 1.32 2.65 2.65 0 00-2.65 2.65.66.66 0 01-1.32 0 2.65 2.65 0 00-2.65-2.65.66.66 0 110-1.32z" /><path class="ba-graphics-neutral-white4" d="M82.18 121.06l1 1.08a2.85 2.85 0 01-.23 4l-23.62 21.12a2.86 2.86 0 01-2.06.73 2.89 2.89 0 01-2-1l-5.93-6.64a2.84 2.84 0 01.22-4l23.62-21.14a2.89 2.89 0 012.07-.72 2.82 2.82 0 012 1l1.16 1.3 4.95-4.36a38.26 38.26 0 113.73 4.3z" /><path class="ba-graphics-gray60" d="M57.43 150.2h-.29a5.06 5.06 0 01-3.49-1.69l-5.93-6.63a5.07 5.07 0 01.4-7.14l23.62-21.14a5.05 5.05 0 016.84.09l1.82-1.61a40.65 40.65 0 116.6 7.62l-1.79 1.58a5.07 5.07 0 01-.87 6.51L60.8 148.91a5.12 5.12 0 01-3.37 1.29zm17.68-33.48a.67.67 0 00-.43.16L51.07 138a.64.64 0 00-.22.48.66.66 0 00.16.43l5.99 6.66a.62.62 0 00.44.21.67.67 0 00.47-.16l23.57-21.11a.65.65 0 00.06-.91l-2.42-2.73 8.1-7.18 1.47 1.46a36.11 36.11 0 10-3.52-4.05l1.21 1.63-8.12 7.17-2.62-3a.63.63 0 00-.44-.22z" /><circle class="ba-graphics-white" cx="114.08" cy="89.49" r="27.3" /><path class="ba-graphics-gray60" d="M114.08 118.91a29.42 29.42 0 1129.41-29.42 29.45 29.45 0 01-29.41 29.42zm0-54.61a25.2 25.2 0 1025.2 25.19 25.22 25.22 0 00-25.2-25.19z" /></symbol>'});a.a.add(s),e.a=s},f0f5b3d0dafd8138f35f:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o("3865314c5959606874d4"),n=(o.n(i),o("b86a89ab812875d2eaf9"));e.default=n.a}},["f0f5b3d0dafd8138f35f"])})),define("dashboard-analytics/widgets/livewidget/dialogs/CustomSortDialog",["underscore","../nls/StringResources","../../../lib/@waca/core-client/js/core-client/ui/core/View","react-dom","react","ca-ui-toolkit","../../../lib/@waca/dashboard-common/dist/lib/@ba-ui-toolkit/ba-graphics/dist/illustrations-js/unknown-warning_128","./components/SortableList","../../../lib/@waca/dashboard-common/dist/lib/@ba-ui-toolkit/ba-graphics/dist/illustrations-js/search-results_128"],(function(t,e,o,i,n,r,a,s,l){"use strict";var u=r.Dialog,c=r.Checkbox,d=r.TruncatedText,p=r.ListItem,f=r.Container,h=r.List,g=r.FlexLayout,m=r.FlexItem,_=r.SearchInput,y=r.Label,v=r.Select,b=r.Link,I=r.Tooltip,S=r.ProgressIndicator,C=function(t){return n.createElement("div",{className:"imageWrapper"},n.createElement("div",{className:"imageIconWrapper"},n.createElement("svg",{viewBox:t.illustration.default.viewBox,focusable:"false"},n.createElement("use",{xlinkHref:"#"+t.illustration.default.id}))),n.createElement("div",{className:"imageWrapperText line1",role:"option"},t.imageTextLineOne),n.createElement("div",{className:"imageWrapperText line2",role:"option"},t.imageTextLineTwo))},E=function(o){function i(t){_classCallCheck(this,i);var e=_possibleConstructorReturn(this,o.call(this,t));return e.state=_extends({},e.props,{listData:[],visibleListData:[],selectAllValues:!1,btnDisabled:!0,sortableData:[],isLoading:!0,isError:!1,isSearchEmpty:!1,previousSortableData:[],isClean:!0}),e.dialogProps={ariaLabel:"Dialog",className:"customSortContainer",size:"large",width:"800px",maxWidth:"800px",maxHeight:"900px",height:"900px",clickaway:!1},e.sortRemainingItemsBy=e.props.sortType,e.initialSortType=e.props.sortType,e}return _inherits(i,o),i.prototype.componentDidMount=function(){var e=this;return this.props.getItems().then((function(o){var i=o.map((function(t){return e._getListItemFromQueryItem(t)})).filter((function(e){return!!(t.isNumber(e.label)||e.label&&e.label.trim())})),n=e.props.sortSpec&&e.props.sortSpec.custom&&e.props.sortSpec.custom.top||[];return e._getMissingListData(n,i).then((function(t){i=i.concat(t),e.setState({listData:i,visibleListData:i.slice(),isLoading:!1},(function(){n.forEach((function(t){e._columnSelected(t,!0)}))}))}))}),(function(t){e.props.logger.error(t),e.setState({isError:!0})}))},i.prototype._getMissingListData=function(t,e){var o=this,i=t.filter((function(t){return!e.find((function(e){return e.value===t}))}));return i.length?this.props.getItemsFromValues(i).then((function(t){return t.map((function(t){return o._getListItemFromQueryItem(t)}))})):Promise.resolve([])},i.prototype._getListItemFromQueryItem=function(t){return{value:t.value,label:t.label,selected:!1}},i.prototype._updateSelectAllValues=function(){this.setState({selectAllValues:this.state.visibleListData.length&&!this.state.visibleListData.find((function(t){return!t.selected}))})},i.prototype._isClean=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.sortableData,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state.previousSortableData;return!(Array.isArray(t)&&Array.isArray(e)&&t.length>0)||t.length===e.length&&(JSON.stringify(t)===JSON.stringify(e)&&this.sortRemainingItemsBy===this.initialSortType)},i.prototype._onApply=function(t){t&&t.stopPropagation(),this.props.applyCustomSort(this.state,this.sortRemainingItemsBy)},i.prototype._onClose=function(t){t&&t.stopPropagation(),this.props.onRemove()},i.prototype._onSelect=function(t){this.sortRemainingItemsBy=t,this.setState({isClean:this._isClean()})},i.prototype._onSearch=function(t){var e=this;t=t&&t.trim(),this.setState({isLoading:!0,searchTerm:t,selectAllValues:!1,isSearchEmpty:!1});var o=this.state.listData.slice();t?this.props.getItems(t).then((function(t){if(0===t.length)e.setState({isSearchEmpty:!0,isLoading:!1});else{o=o.filter((function(e){return t.find((function(t){return e.value===t.value}))}));var i=e.state.listData.slice();t.map((function(t){if(-1===o.findIndex((function(e){return e.value===t.value}))){var n=e._getListItemFromQueryItem(t);o.push(n),i.push(n)}})),e.setState({listData:i,visibleListData:o,isLoading:!1,isSearchEmpty:!1},e._updateSelectAllValues)}}),(function(t){e.props.logger.error(t),e.setState({isError:!0})})):this.setState({isLoading:!1,visibleListData:o},this._updateSelectAllValues)},i.prototype._clearAll=function(){this.sortRemainingItemsBy="auto";var t=this.state.listData.slice();t.forEach((function(t){return t.selected=!1}));var e=0===this.state.sortableData.length;this.setState({listData:t.slice(),visibleListData:this.state.visibleListData?this.state.visibleListData:t,selectAllValues:!1,btnDisabled:!0,isClean:e,sortableData:[]})},i.prototype._itemRenderer=function(t,e){var o=_objectWithoutProperties(e,[]),i=this.state.visibleListData[t];return n.createElement(p,_extends({},o,{key:i.value,"data-index":t,className:"customSortCheckboxItem"}),n.createElement(c,{label:i.label,checked:i.selected,onChange:this._columnSelected.bind(this,i.value,!1)}))},i.prototype._selectAll=function(t){var e=this,o=!!t.target.checked;this.state.visibleListData.slice().filter((function(t){return t.selected!==o})).forEach((function(t){return e._columnSelected(t.value,!1)})),this.setState({selectAllValues:!0,btnDisabled:0===this.state.sortableData.length,isClean:this._isClean()})},i.prototype._columnSelected=function(t,e){var o=this.state.visibleListData.slice(),i=this.state.sortableData;o.find((function(e){if(e.value===t)if(e.selected=!e.selected,e.selected)i.push(e);else{var o=i.findIndex((function(t){return t.value===e.value}));i.splice(o,1)}})),this.setState({visibleListData:o,btnDisabled:0===i.length,sortableData:i,isClean:!!e||this._isClean(i),previousSortableData:e?JSON.parse(JSON.stringify(i)):this.state.previousSortableData},this._updateSelectAllValues)},i.prototype.onChange=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";t.length<this.state.sortableData.length&&this._columnSelected(e),this.setState({sortableData:t,isClean:this._isClean(t)},this._updateSelectAllValues)},i.prototype.render=function(){var t=this,o=void 0;return this.state.openDialog?(o=this.state.isError?n.createElement(C,{illustration:a,imageTextLineOne:e.get("somethingWentWrong"),imageTextLineTwo:e.get("unableToLoadItems")}):this.state.isSearchEmpty?n.createElement(C,{illustration:l,imageTextLineOne:e.get("searchReturnedNoResults"),imageTextLineTwo:e.get("tryDifferentSearchTerm")}):this.state.isLoading?n.createElement(f,{id:"overlay"},n.createElement(S,{tabIndex:0,size:"normal"})):n.createElement("div",null,n.createElement(c,{key:"all",label:e.get("selectAll"),checked:this.state.selectAllValues,onClick:function(e){return t._selectAll(e)},className:"selectAllCheckbox"}),n.createElement("div",{className:"customSortCheckboxList"},n.createElement(h,{length:this.state.visibleListData.length,itemRenderer:this._itemRenderer.bind(this),selectionMode:"multiple",fullHeight:"true"}))),n.createElement("div",null,n.createElement(u,_extends({},this.dialogProps,{onClose:this._onClose.bind(this)}),n.createElement(f,{className:"customDialogLayout"},n.createElement(u.Header,null,n.createElement(d,{value:e.get("createCustomSortTitle",{createCustomSort:e.get("createCustomSort"),name:this.props.label})})),n.createElement(u.Body,null,n.createElement(u.SubHeader,null,e.get("createCustomSortDesc")),n.createElement(g,{direction:"row"},n.createElement(m,{gutter:[0],className:"customSortItemsDialog"},n.createElement(y,{label:e.get("availableItems"),type:"caption"}),n.createElement(f,{id:"avaliableItemsForSort",className:"customSortAvaliableItemsContainer"},n.createElement(_,{placeholder:e.get("search"),value:this.state.searchTerm,id:"searchAllItems",onChange:this._onSearch.bind(this),delay:800,className:"customSortItemSearch"}),n.createElement("div",{className:"customSortAvailableItemsList"},o))),n.createElement(m,{grow:!0},n.createElement(y,{label:e.get("customSortOrder"),type:"caption"}),n.createElement(f,{className:"customSortSelectedItemsContainer",id:"customSortList"},n.createElement(s,{sortableData:this.state.sortableData,onChange:this.onChange.bind(this),iconsFeature:this.state.iconsFeature})),n.createElement("div",{className:"customSortOrderSelect"},n.createElement(v,{options:[{value:"asc",label:e.get("toolbarActionSortAscending")},{value:"desc",label:e.get("toolbarActionSortDescending")},{value:"auto",label:e.get("toolbarActionSortAuto",{sortOrder:this.props.defaultSortOrder})}],label:e.get("sortRemainingItemsBy"),id:"selectSortRemainingItemsBy",selected:this.sortRemainingItemsBy,disabled:this.state.btnDisabled,customWidth:"400px",onChange:function(e){return t._onSelect(e)}})),n.createElement("div",{className:"customSortClearAll"},n.createElement(I,{title:e.get("resetTooltip",{customSortOrder:e.get("customSortOrder"),sortRemainingItemsBy:e.get("sortRemainingItemsBy")}),orient:"left"},n.createElement(b,{id:"clearAllLink",target:"_blank",onClick:this._clearAll.bind(this),disabled:this.state.btnDisabled},e.get("clearAll"))))))),n.createElement(u.Footer,null,n.createElement(u.Button,{primary:!0,id:"applyCustomSort",label:e.get("dlg_apply"),onClick:this._onApply.bind(this),disabled:this.state.isClean}),n.createElement(u.Button,{label:e.get("dlg_cancel"),id:"cancelCustomSort",onClick:this._onClose.bind(this)})))))):null},i}(n.Component);return function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,t.apply(this,arguments))}return _inherits(e,t),e.prototype.init=function(){for(var e,o=arguments.length,i=Array(o),n=0;n<o;n++)i[n]=arguments[n];var r=i[0];(e=t.prototype.init).call.apply(e,[this].concat(i)),this.label=r.label,this.getItems=r.getItems,this.getItemsFromValues=r.getItemsFromValues,this.sortSpec=r.sortSpec,this.sortType=r.sortType,this.defaultSortOrder=r.defaultSortOrder,this.applyCustomSort=r.apply,this.reactDomNode=this.$el[0],this.logger=r.logger,this.iconsFeature=r.iconsFeature},e.prototype.render=function(){i.render(n.createElement(E,{label:this.label,openDialog:!0,getItems:this.getItems.bind(this),getItemsFromValues:this.getItemsFromValues.bind(this),sortSpec:this.sortSpec,sortType:this.sortType,defaultSortOrder:this.defaultSortOrder,applyCustomSort:this.onApply.bind(this),onRemove:this.onCancel.bind(this),logger:this.logger,iconsFeature:this.iconsFeature}),this.reactDomNode)},e.prototype.onApply=function(t,e){var o=t.sortableData,i=[];o.forEach((function(t){i.push(t.value)}));var n={top:i,type:e};this.applyCustomSort(n),this.onCancel()},e.prototype.onCancel=function(){this.reactDomNode&&i.unmountComponentAtNode(this.reactDomNode),this.$el.remove(),this.$el=null,e.inherited("remove",this)},e}(o)})),define("dashboard-analytics/features/content/slotActions/sortAction/CustomSortAction",["../../../../widgets/livewidget/dialogs/CustomSortDialog","../../../../widgets/livewidget/nls/StringResources","../../../../widgets/livewidget/query/QueryService","../../../../widgets/livewidget/query/CommonQueryHelper","jquery"],(function(t,e,o,i,n){return function(){function r(t){_classCallCheck(this,r),this.dashboard=t.dashboardAPI}return r.prototype.isEnabled=function(t,e){var o=t.getDataItemList(),i=o&&o[e];return!this.dashboard.getGlassCoreSvc(".FeatureChecker").checkValue("dashboard","customSort","disabled")&&i&&"attribute"===i.getType()&&i.getMetadataColumn()&&"attribute"===i.getMetadataColumn().getType()},r.prototype.getMenuItem=function(){return{id:"custom",localizedString:e.get("toolbarActionSortCustom")}},r.prototype.handleSelection=function(e,o,i){this._cleanPopoverBlocker(),this.defaultSortOrderRaw=i,new t({label:e.getLabel(),sortSpec:e.getSort(),sortType:this._getSortType(e),defaultSortOrder:o,getItems:this._getDataItemsFromSearchString.bind(this,e),getItemsFromValues:this._getDataItemsFromUseValues.bind(this,e),apply:this._applyCustomSort.bind(this,e),logger:this.dashboard.getGlassCoreSvc(".Logger"),iconsFeature:this.dashboard.getFeature("Icons")}).render()},r.prototype._cleanPopoverBlocker=function(){n(".actionToolbarPopover").each((function(t,e){var o=n(e).parent();o.hasClass("dialogBlocker")?o.remove():n(e).remove()}))},r.prototype._getQueryHelper=function(){return new i({queryService:new o({dashboardApi:this.dashboard})},this.dashboard.getGlassCoreSvc(".Logger"))},r.prototype._getDataItems=function(t,e){var o=t.getMetadataColumn(),i=t.getSort(),n=this.dashboard.getFeature("QueryService"),r=e&&e.searchTerm?[e.searchTerm]:[],a=i&&i.type||this._getDefaultSort();return n.getColumnValues(o.getSourceId(),[o.getId()],[],a,r).then((function(t){for(var e=t.getRowCount(),o=[],i=0;i<e;i++){var n=t.getValue(i,0);o.push(n[0])}return o}))},r.prototype._getDefaultSort=function(){return"asc"===this.defaultSortOrderRaw||"desc"===this.defaultSortOrderRaw?this.defaultSortOrderRaw:"asc"},r.prototype._getDataItemsFromSearchString=function(t,e){var o=e&&{searchTerm:e}||void 0;return this._getDataItems(t,o)},r.prototype._getSortType=function(t){if(t.hasDefaultSort())return"auto";var e=t.getSort();return e&&e.type||"auto"},r.prototype._getDataItemsFromUseValues=function(t,e){var o=e?{filter:{expression:{operator:"in",values:e,itemId:t.getColumnId()},type:"pre"}}:void 0;return this._getDataItems(t,o)},r.prototype._applyCustomSort=function(t,e){var o=e?{type:"auto"===e.type?void 0:e.type,custom:{enabled:!0,top:e.top}}:{type:null};t.setSort(o)},r}()})),define("dashboard-analytics/features/content/slotActions/sortAction/SortAction",["../../../../widgets/livewidget/nls/StringResources","./CustomSortAction","../../../../lib/@waca/dashboard-common/dist/core/APIFactory","../api/SlotActionsProviderAPI","../../../../apiHelpers/SlotAPIHelper"],(function(t,e,o,i,n){var r={asc:t.get("dlg_ascending"),desc:t.get("dlg_descending"),none:t.get("dlg_none"),custom:t.get("dlg_custom"),hierarchy:t.get("dlg_hierarchy"),namedSet:t.get("dlg_namedSet"),rank:t.get("dlg_rank")};return function(){function a(t){_classCallCheck(this,a),this.content=t.content,this.dashboardApi=t.dashboardAPI,this.icons=t.features&&t.features["Dashboard.Icons"],this._autoSortOrder="none",this.customSortAction=new e(t),this.content.getFeature("SlotActions").registerProvider("sortAction",this.getAPI())}return a.prototype.getViewState=function(t,e){var o=this.getVisualization().getSlots().getSlot(t);return o?{height:140,width:140,getCurrentSelectedItem:this._getCurrentSelectedItem.bind(this,o,e),possibleItems:this._getPossibleItems(o,e)}:null},a.prototype._getCurrentSelectedItem=function(t,e){var o=t.getDataItemList()[e],i=o.getSort(),n="auto";return!this.isRank&&this.isCurrentSortRankSort(i)||this.isRank&&!this.isCurrentSortRankSort(i)?n="auto":i&&!o.hasDefaultSort()&&(n=i.custom&&i.custom.enabled?"custom":i.type),n},a.prototype.isCurrentSortRankSort=function(t){return t&&t.context},a.prototype._getPossibleItems=function(e,o){this._autoSortOrderStringId=this.getDefaultSortOrder(e,o);var i=[{id:"asc",localizedString:t.get("toolbarActionSortAscending")},{id:"desc",localizedString:t.get("toolbarActionSortDescending")},{id:"auto",localizedString:t.get("toolbarActionSortAuto",{sortOrder:r[this._autoSortOrderStringId]})}];return this.customSortAction.isEnabled(e,o)&&i.push(this.customSortAction.getMenuItem()),i},a.prototype.getDefaultSortOrder=function(t,e){var o=t.getDataItemList()[e];if(o){var i=o.getMetadataColumn(),n=i&&i.getDefaultSortType();if(n)return n;if(i&&(!0===i.isOlapColumn()||!0===i.isNamedSet()))return this._getSortLabelForOlapItem(i);if(o.getTopBottom())return"rank";var r=t.getDefinition();if(r)return r.getSort()||"none"}return"none"},a.prototype._getSortLabelForOlapItem=function(t){return t.isNamedSet()?"namedSet":"fact"!==t.getType()?"hierarchy":"none"},a.prototype._supportAction=function(t,e){return(!Array.isArray(e)||1===e.length)&&(!this._isMultiMeasureDataSlot(t,e)&&this.getVisualization().getDefinition().getProperty("supportsSortAction")&&n.isSlotSortable(t,e,this.getVisualization())&&!(null!=e&&!t.getDataItemList()[e].getMetadataColumn()))},a.prototype._isMultiMeasureDataSlot=function(t,e){return void 0===e&&t?n.isMultiMeasuresSeriesSlot(t)||n.isMultiMeasuresValueSlot(t):n.isMultiMeasuresSeriesOrValue(t,e)},a.prototype.getSlotActionList=function(e,o,i){this.isRank=i&&i.rankSort;var n=this.getVisualization().getSlots().getSlot(e);if(n&&this._supportAction(n,o)){o=Array.isArray(o)&&1===o.length?o[0]:parseInt(o),this.itemIndex=isNaN(o)?0:o,this.dataSlotId=e;var r=this.getViewState(e,this.itemIndex),a=this.icons.getIcon("common-sort-icon");return[{name:"sortAction",label:t.get("toolbarActionSort"),icon:a.id,type:"NextView",view:{module:"dashboard-analytics/lib/@waca/dashboard-common/dist/ui/dialogs/CommonSelectItemsDialog",state:r},actions:{apply:this.handleSelection.bind(this,n,i)}}]}return[]},a.prototype.handleSelection=function(t,e,o){var i=t.getDataItemList()[this.itemIndex];if(o===this.customSortAction.getMenuItem().id)this.customSortAction.handleSelection(i,r[this._autoSortOrderStringId],this._autoSortOrderStringId);else{var n={type:"auto"===o?null:o};if(e&&e.rankSort){var a=i.getTopBottom();a&&a.context&&a.context.itemId&&(n.context=a.context.itemId),n.rankSort=!0}i.setSort(n)}},a.prototype.getVisualization=function(){return this.visualization||(this.visualization=this.content.getFeature("Visualization")),this.visualization},a.prototype.getAPI=function(){return this._api||(this._api=o.createAPI(this,[i])),this._api},a}()})),define("dashboard-analytics/features/content/slotActions/deleteAction/DeleteAction",["../../../../widgets/livewidget/nls/StringResources","../../../../lib/@waca/dashboard-common/dist/core/APIFactory","../api/SlotActionsProviderAPI"],(function(t,e,o){return function(){function i(t){_classCallCheck(this,i),this.dashboard=t.dashboardAPI,this.content=t.content,this.icons=t.features["Dashboard.Icons"],t.features.SlotActions.registerProvider("deleteAction",this.getAPI())}return i.prototype.getSlotActionList=function(e,o,i){var n=this.content.getFeature("Visualization").getSlots().getSlot(e),r=this.icons.getIcon("TrashIcon");return n&&this._supportAction(n,o,i)?[{name:"delete",label:t.get("toolbarDeleteActionText"),icon:r.id,type:"Button",group:"deleteAction",removeThenApplyAction:!0,actions:{apply:this.deleteSlot.bind(this,n,o)}}]:[]},i.prototype._supportAction=function(t,e,o){if(this.dashboard.getMode()!==this.dashboard.MODES.EDIT)return!1;if(o&&o.excludeAction)return!1;if(null==e)return!1;var i=t.getDataItemList()[e];return(!i||"_multiMeasuresSeries"!==i.getColumnId())&&!Array.isArray(e)},i.prototype.deleteSlot=function(t,e){var o=[t.getDataItemList()[e].getId()];t.removeDataItems(o)},i.prototype.getAPI=function(){return this._api||(this._api=e.createAPI(this,[o])),this._api},i}()})),define("dashboard-analytics/features/content/slotActions/topBottomAction/TopBottomActionAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.reset=function(){},t}()})),define("dashboard-analytics/features/content/slotActions/topBottomAction/TopBottomAction",["../../../../widgets/livewidget/nls/StringResources","underscore","../../../../lib/@waca/dashboard-common/dist/core/APIFactory","../api/SlotActionsProviderAPI","../../../../apiHelpers/SlotAPIHelper","./TopBottomActionAPI"],(function(t,e,o,i,n,r){return function(){function a(t){_classCallCheck(this,a),this.content=t.content,this.dashboardApi=t.dashboardAPI,this.icons=t.features&&t.features["Dashboard.Icons"],this.content.getFeature("SlotActions").registerProvider("topBottomAction",this.getAPI())}return a.prototype.getSlotActionList=function(e,o){var i=this.getVisualization().getSlots().getSlot(e);if(i&&this._supportAction(i,o)){this.slot=i;var n=i.getDefinition().getId();this.dataItemIndex=o?parseInt(o):0,this.dataItem=this.slot.getDataItemList()[this.dataItemIndex];var r=this.getViewState();r.getTopBottomState=this.dataItem.getTopBottom.bind(this),r.contextColumns=this._isAttribute()&&this._getFactColumns(),r.allowPercentOperations=this._isAttribute(),r.allowRankColumn="JQGrid"===this.getVisualization().getDefinition().getId(),r.onSearch=this._onSearch.bind(this);var a=this.icons.getIcon("dashboard-topbottom");return[{name:"topBottomAction",label:t.get("toolbarActionTopBottom"),icon:a.id,type:"NextView",view:{module:"dashboard-analytics/lib/@waca/dashboard-common/dist/ui/dialogs/TopBottomDialog",state:r},actions:{apply:this.applyTopBottomValues.bind(this,n,o),reset:this.reset.bind(this,n,o)}}]}return[]},a.prototype._supportAction=function(t,e){if(this._isMultiMeasureDataSlot(t,e))return!1;if(e=e||0,Array.isArray(e)&&1!=e.length)return!1;var o=t.getDataItemList()[e];if(!o)return!1;var i=o.getMetadataColumn();if(null===i)return!1;var n=i.getType(),r=this.getVisualization().getDefinition(),a=o.getType();if("fact"===n||"fact"===a){if(!r.getProperty("supportsNonContextualTopBottomAction"))return!1}else if(!r.getProperty("supportsContextualTopBottomAction"))return!1;return!o.getBinning()&&"property"!==i.getSourceCategory()},a.prototype._getFactColumns=function(){return e.unique(this.getVisualization().getDataSource().findMetadataColumns("","fact"))},a.prototype._onSearch=function(t){return e.unique(this.getVisualization().getDataSource().findMetadataColumns(t,"fact"))},a.prototype._isMultiMeasureDataSlot=function(t,e){return!(!t||null!=e)&&(n.isMultiMeasuresSeriesSlot(t)||n.isMultiMeasuresValueSlot(t))},a.prototype.getViewState=function(){if(this.slot){return{height:280,width:400}}return null},a.prototype._isAttribute=function(){return"attribute"===this.dataItem.getType()&&this.dataItem.getMetadataColumn()&&"attribute"===this.dataItem.getMetadataColumn().getType()},a.prototype._addAggregateToContext=function(t){var e=t.context&&t.context.itemId;if(e){var o=this.getVisualization().getSlots().getDataItemList();if(o&&o.length>0){var i=o.find((function(t){return t.getColumnId()===e})),n=void 0;if(i)n=i.getAggregation();else{var r=this.getVisualization().getDataSource().getMetadataColumn(e);n=r&&r.getDefaultAggregation()}n&&(t.context.aggregate=n)}}},a.prototype.applyTopBottomValues=function(t,e,o){e=e||0,this.slot=this.getVisualization().getSlots().getSlot(t),this.dataItem=this.slot.getDataItemList()[e],o?(this._addAggregateToContext(o),this.dataItem.setTopBottom(o)):this.dataItem.setTopBottom()},a.prototype.reset=function(t,e){this.slot=this.getVisualization().getSlots().getSlot(t),this.dataItem=this.slot.getDataItemList()[e],this.applyTopBottomValues(t,e)},a.prototype.getVisualization=function(){return this.visualization||(this.visualization=this.content.getFeature("Visualization")),this.visualization},a.prototype.getAPI=function(){return this._api||(this._api=o.createAPI(this,[i,r])),this._api},a}()})),define("dashboard-analytics/features/content/slotActions/filterAction/FilterAction",["../../../../widgets/livewidget/nls/StringResources","../../../../apiHelpers/SlotAPIHelper","../../../../lib/@waca/dashboard-common/dist/core/APIFactory","../api/SlotActionsProviderAPI"],(function(t,e,o,i){return function(){function n(t){var e=t.content,o=t.dashboardAPI,i=t.features;_classCallCheck(this,n),this.content=e,this.dashboard=o,this.icons=i&&i["Dashboard.Icons"],this.content.getFeature("SlotActions").registerProvider("filterAction",this.getAPI())}return n.prototype.getAPI=function(){return this.api||(this.api=o.createAPI(this,[i])),this.api},n.prototype.getSlotActionList=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this.getVisualization(),r=n.getSlots().getSlot(e),a=r.getDataItemList()[o],s=this.icons.getIcon("common-filter");if(r&&this._supportAction(r,o,i)){void 0===o&&(o=0),this.itemContext={uniqueId:a.getId(),itemId:a.getColumnId(),itemName:a.getLabel(),dataType:a.getDataType(),sourceId:n.getDataSource().getId()};var l=a.getType(o);"fact"===l&&(this.itemContext.aggregationType=a.getAggregation());var u=a.getMetadataColumn();u&&u.isNamedSet()&&(this.itemContext.isNamedSet=!0);var c={height:300,width:212,slot:r,mapIndex:o,logger:this.dashboard.getGlassCoreSvc(".Logger"),itemContext:this.itemContext,dashboardApi:this.dashboard,visualization:this.getVisualization()};return[{name:"filter",label:t.get("toolbarActionFilter"),icon:s.id,type:"NextView",removeThenApplyAction:!0,view:{module:"dashboard-analytics/dialogs/CommonViewWrapper",state:c},actions:{apply:this.applyFilter.bind(this),edit:this.editFilter.bind(this),remove:this.removeFilter.bind(this)}}]}return[]},n.prototype._supportAction=function(t,o){var i=this.getVisualization();if(Array.isArray(o)&&1!=o.length)return!1;if(!1===i.getDefinition().getProperty("supportsFilterAction"))return!1;if(void 0!==o&&e.isMultiMeasureSeriesDataItem(t,o))return!1;if(void 0===o&&(e.isMultiMeasuresSeriesSlot(t)||e.isMultiMeasuresValueSlot(t)))return!1;var n=t.getDataItemList()[o];return!(!n||!n.getMetadataColumn())},n.prototype.applyFilter=function(t){this.getVisualization().getLocalFilters().addFilter(this.itemContext,t)},n.prototype.editFilter=function(t){this.getVisualization().getLocalFilters().editFilter(this.itemContext,t)},n.prototype.removeFilter=function(){this.getVisualization().getLocalFilters().removeFilter(this.itemContext)},n.prototype.getVisualization=function(){return this.visualization||(this.visualization=this.content.getFeature("Visualization")),this.visualization},n}()})),define("dashboard-analytics/features/content/slotActions/removeShapeAction/RemoveShapeAction",["../../../../widgets/livewidget/nls/StringResources","../../../../lib/@waca/dashboard-common/dist/core/APIFactory","../api/SlotActionsProviderAPI"],(function(t,e,o){return function(){function i(t){var e=t.content,o=t.features;_classCallCheck(this,i),this.content=e,o&&o.SlotActions.registerProvider("removeShapeAction",this.getAPI())}return i.prototype.getSlotActionList=function(e,o){return this._supportAction()?[{name:"removeShapeAction",label:t.get("toolbarActionRmvShape"),icon:"dashboard-shapeOff",type:"Button",removeThenApplyAction:!0,actions:{apply:this.removeShape.bind(this,e,o)}}]:[]},i.prototype._supportAction=function(){return this.content.getPropertyValue("value.graphic.content")&&-1!==this.content.getPropertyNameList().indexOf("value.graphic.content")},i.prototype.removeShape=function(){this.content.setPropertyValue("value.graphic.content",null)},i.prototype.getAPI=function(){return this._api||(this._api=e.createAPI(this,[o])),this._api},i}()})),define("dashboard-analytics/features/content/slotActions/topKeyDriversAction/TopKeyDriversAction",["../../../../visualizations/renderer/topbottom/TopBottomLabel","../../../../lib/@waca/dashboard-common/dist/core/APIFactory","../api/SlotActionsProviderAPI","../../../../apiHelpers/SlotAPIHelper","../../../../widgets/livewidget/nls/StringResources"],(function(t,e,o,i,n){"use strict";var r="top5",a="top10",s="all";return function(t){function l(e){var o=e.content,i=e.dashboardAPI,n=e.features;_classCallCheck(this,l);var r=_possibleConstructorReturn(this,t.call(this));return r.content=o,r.dashboard=i,r.icons=n&&n["Dashboard.Icons"],n.SlotActions.registerProvider("topKeyDriversAction",r.getAPI()),r}return _inherits(l,t),l.prototype.getAPI=function(){return this._api||(this._api=e.createAPI(this,[o])),this._api},l.prototype._isActionSupported=function(t,e){if(!this._isFocusModeEnabled())return!1;var o=t.getDefinition().getProperty("actions");return!!o&&(-1!==o.indexOf("TopKeyDriversAction")&&!this._isMultiMeasureDataSlot(t,e))},l.prototype._isFocusModeEnabled=function(){return!this.dashboard.getGlassCoreSvc(".FeatureChecker").checkValue("dashboard","FocusMode","disabled")},l.prototype.getViewState=function(t,e){var o=this._getVisualization().getSlots().getSlot(t);return o?{height:140,width:140,getCurrentSelectedItem:this._getCurrentSelectedItem.bind(this,o,e),possibleItems:this._getPossibleItems(o,e),eventHandler:this}:null},l.prototype.getSlotActionList=function(t,e){if(this.dataSlot=this._getVisualization().getSlots().getSlot(t),this.itemIndex=e,this.dataSlot&&this._isActionSupported(this.dataSlot,e)){var o=this.icons.getIcon("dashboard-topbottom");return[{name:"show",id:"TopKeyDriversAction",text:n.get("toolbarActionTopKeyDrivers"),label:n.get("toolbarActionTopKeyDrivers"),icon:o.id,type:"NextView",group:"topKeyDriversAction",view:{module:"dashboard-analytics/lib/@waca/dashboard-common/dist/ui/dialogs/CommonSelectItemsDialog",state:this.getViewState(t,e)},actions:{apply:this.handleSelection.bind(this)}}]}return[]},l.prototype._getCurrentSelectedItem=function(t,e){var o=t.getDataItemList()[e].getTopBottom();return o&&"topcount"===o.type?5===o.value?r:a:s},l.prototype._getPossibleItems=function(){return[{id:s,localizedString:n.get("allKeyDriversLabel")},{id:r,localizedString:this.getTopBottomLabel({limit:{op:"top",val:5}})},{id:a,localizedString:this.getTopBottomLabel({limit:{op:"top",val:10}})}]},l.prototype._isMultiMeasureDataSlot=function(t,e){return void 0===e&&t?i.isMultiMeasuresSeriesSlot(t)||i.isMultiMeasuresValueSlot(t):i.isMultiMeasuresSeriesOrValue(t,e)},l.prototype._getVisualization=function(){return this.visualization||(this.visualization=this.content.getFeature("Visualization")),this.visualization},l.prototype.handleSelection=function(t){var e=this.dataSlot.getDataItemList()[this.itemIndex];switch(t){case s:e.setTopBottom();break;case r:case a:e.setTopBottom({type:"topcount",value:t===r?5:10})}},l}(t)})),define("dashboard-analytics/features/content/dataPointActions/hideRowColumnAction/HideRowColumnAction",["underscore","../../../../widgets/livewidget/nls/StringResources","../../../../lib/@waca/dashboard-common/dist/core/APIFactory","../api/DataPointActionsProviderAPI","../../../../lib/@waca/dashboard-common/dist/api/ContentActionsProviderAPI","../../../../util/ContentUtil"],(function(t,e,o,i,n,r){var a=["crosstab"];return function(){function s(t){var e=t.dashboardAPI,o=t.content,i=t.features;_classCallCheck(this,s),this.dashboard=e||i&&i.API,this.icons=i.Icons||i["Dashboard.Icons"],o?(this.content=o,i&&i.DataPointActions.registerProvider("HideRowColumnAction",this.getAPI())):i&&i.ContentActions.registerProvider("HideRowColumnAction",this.getAPI())}return s.prototype.getDataPointActionList=function(t,o){if(this._isLocalVis()&&this._supportDataPointAction()&&o.isAreaSelected){if(this.selectedArea=r.getContextFromSelection(this.content,this.dashboard),!this.selectedArea.length)return[];this.isAreaSelected=!0;var i=this.icons.getIcon("iconHide");return this._getContribution("Datapoint",e.get("hideRowColumn"),i,!1)}return[]},s.prototype._supportDataPointAction=function(){return!this.content.getFeature("state").getError()&&this.dashboard.getMode()===this.dashboard.MODES.EDIT},s.prototype.getContentActionList=function(t){var o=t[0];if(this.content=this.dashboard.getCanvas().getContent(o),this._isLocalVis()&&this._supportContentAction(t)){var i=this.icons.getIcon("iconView");return this._getContribution("Content",e.get("showAllRowColumn"),i,this._isHidden())}return[]},s.prototype._getContribution=function(t,e,o,i){return[{name:"hideRowColumnAction"+t,label:e,icon:o.id,type:"Button",closeOnActionApplied:!0,disabled:i,actions:{apply:this.onStateChange.bind(this)}}]},s.prototype._supportContentAction=function(t){return!(t&&t.length>1||this.content.getFeature("state").getError()||this.dashboard.getMode()!==this.dashboard.MODES.EDIT)},s.prototype._isLocalVis=function(){var e=this.content.getFeature("Visualization"),o=e&&e.getDefinition().getId();return!!o&&t.contains(a,o)},s.prototype.onStateChange=function(){var t=[];t=this._buildPropertyList(t);var e=this.dashboard.getFeature("Transaction").startTransaction();this.setProperties(t,e),this._removeFilters(e),this.dashboard.getFeature("Transaction").endTransaction(e)},s.prototype._isHidden=function(){return t.isEmpty(this.content.getPropertyValue("hiddenRowsAndColumns")||[])},s.prototype._buildPropertyList=function(e){var o=[];if(this.isAreaSelected){var i=this.content.getPropertyValue("hiddenRowsAndColumns")||[];o=t.union(this.selectedArea,i)}return e.push({id:"hiddenRowsAndColumns",value:o}),e},s.prototype.setProperties=function(t,e){var o=this;t.forEach((function(t){o.content.setPropertyValue(t.id,t.value,e)}))},s.prototype._removeFilters=function(t){this.dashboard.getFeature("GlobalFilters").removeFilters(r.getSelectors(this.content,this.dashboard),t)},s.prototype.getAPI=function(){return this._api?this._api:o.createAPI(this,[i,n])},s}()})),define("dashboard-analytics/features/content/dataPointActions/filterAction/DataPointFilterAction",["../../common/DataPointActionBase","../api/DataPointActionsProviderAPI","../../../../lib/@waca/dashboard-common/dist/core/APIFactory","../../../../widgets/livewidget/nls/StringResources","underscore"],(function(t,e,o,i,n){return function(t){function r(e){var o=e.content,i=e.dashboardAPI,n=e.features;_classCallCheck(this,r);var a=_possibleConstructorReturn(this,t.call(this,{content:o,dashboardAPI:i,features:n}));return a.content.getFeature("DataPointActions").registerProvider("DataPointFilterAction",a.getAPI()),a.icons=n["Dashboard.Icons"],a}return _inherits(r,t),r.prototype.getAPI=function(){return this._api||(this._api=o.createAPI(this,[e])),this._api},r.prototype.getDataPointActionList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=[],n=this.icons.getIcon("wfg_filter_exclude"),r=this.icons.getIcon("wfg_filter_keep"),a=this.icons.getIcon("common-filter");return this._supportAction(t,e)&&(o.push.apply(o,[{name:"filterLocalExcludeSelected",label:i.get("toolbarActionFilterLocalExcludeSelected"),className:"iconWithText",icon:n.id,text:i.get("toolbarActionFilterLocalExcludeSelected"),type:"Button",actions:{apply:this._applyFilter.bind(this,t,!0)},closeOnActionApplied:!0},{name:"filterLocalKeepSelected",label:i.get("toolbarActionFilterLocalKeepSelected"),className:"iconWithText",icon:r.id,text:i.get("toolbarActionFilterLocalKeepSelected"),type:"Button",actions:{apply:this._applyFilter.bind(this,t,!1)},closeOnActionApplied:!0}]),e.includeApplyFilter&&"cell_edge_row"!==t.area&&"cell_edge_column"!==t.area&&o.push({name:"filterAllKeepSelected",label:i.get("toolbarActionFilterAllKeepSelected"),className:"iconWithText",icon:a.id,text:i.get("toolbarActionFilterAllKeepSelected"),type:"Button",actions:{apply:this._applyPendingToPageContext.bind(this,t)},closeOnActionApplied:!0})),o},r.prototype._supportAction=function(t,e){if(e.noFilters)return!1;var o=t&&t.dataPoints;return n.some(o,(function(t){return t.categories}))},r.prototype._applyPendingToPageContext=function(t,e){var o=this.dashboard.getFeature("Transaction"),i=o.startTransaction(e),n=this._getSelector(),r=this._groupSelections(t.dataPoints),a=this.globalFilters.getFilters(n.sourceId,n.scope);for(var s in r)if(s){n.itemIds=s.split(",");var l={values:r[s]};a.addFilter(n,l,i)}o.endTransaction(i)},r.prototype._applyFilter=function(t,e,o){var i=this.dashboard.getFeature("Transaction"),r=i.startTransaction(o),a=this._groupSelections(t.dataPoints),s=this._getVisualization().getSlots();for(var l in a)if(l){var u=[],c={},d={exclude:!!e},p=a[l];this._addAutoBins(p[0],u,s),u.length&&(c.binning=u);var f=l.split(",");f.length>1?(c.itemIds=f,d.values=p):(c.itemId=f[0],d.values=n.flatten(p)),this._getLocalFilters().addFilter(c,d,r),d.exclude&&this.globalFilters.removeFilters(this._getSelector(),r)}i.endTransaction(r)},r.prototype._addAutoBins=function(t,e,o){n.each(t,(function(t){var i=o.getMappingInfo(t.dataItemId),r=i&&i.dataItem;r&&r.getBinning()&&n.pluck(e,"dataItemId").indexOf(-1===r.getId())&&e.push(t)}))},r}(t)})),define("dashboard-analytics/features/content/dataPointActions/drillAction/DrillAction",["../../common/DataPointActionBase","../api/DataPointActionsProviderAPI","../../../../lib/@waca/dashboard-common/dist/core/APIFactory","../../../../widgets/livewidget/nls/StringResources","underscore"],(function(t,e,o,i,n){return function(t){function r(e){_classCallCheck(this,r);var o=_possibleConstructorReturn(this,t.call(this,e));return o.content.getFeature("DataPointActions").registerProvider("DrillAction",o.getAPI()),o.icons=e.features["Dashboard.Icons"],o}return _inherits(r,t),r.prototype.getAPI=function(){return this._api||(this._api=o.createAPI(this,[e])),this._api},r.prototype.getDataPointActionList=function(t,e){var o=[],n=this.icons.getIcon("dashboard-navigation-drillback"),r=this.icons.getIcon("dashboard-navigation-drilldown");if(this._supportAction(t,e)){var a=!this._canDrillDown(t),s=!this._canDrillUp(t);o.push.apply(o,[{name:"drillUp",label:i.get("toolbarActionDrillUp"),text:i.get("toolbarActionDrillUp"),icon:n.id,type:"Button",closeOnActionApplied:!0,disabled:s,actions:{apply:this.drillUp.bind(this,t)}},{name:"drillDown",label:i.get("toolbarActionDrillDown"),text:i.get("toolbarActionDrillDown"),icon:r.id,type:"Button",closeOnActionApplied:!0,disabled:a,actions:{apply:this.drillDown.bind(this,t)}}])}return o},r.prototype._getVisualization=function(){return this.visualization||(this.visualization=this.content.getFeature("Visualization")),this.visualization},r.prototype._getSelectedCategories=function(t){return n.compact(n.pluck(t.dataPoints,"categories"))},r.prototype._supportAction=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=!e.noFilters||e.drillOnly;if(!o)return o;var i=this._getSelectedCategories(t);if(!(o=i&&1===i.length&&1===i[0].length))return o;var n=i[0][0].columnId,r=this._getVisualization().getDataSource(),a=r.getMetadataColumn(n);return a&&(a.isHierarchy()||a.isNamedSet())},r.prototype._getSelectionMappingInfo=function(t){var e=this._getVisualization().getSlots(),o=this._getSelectedCategories(t)[0][0].dataItemId;return e.getMappingInfo(o)},r.prototype._executeDrill=function(t,e){var o=this.dashboard.getFeature("Transaction"),i=o.startTransaction();return this._getVisualization().getLocalFilters().removeFilter({itemId:t.getColumnId()},i),e(i).finally((function(){o.endTransaction(i)}))},r.prototype.drillUp=function(t){var e=this._getSelectionMappingInfo(t).dataItem,o=this._getSelectedCategories(t)[0][0].parentId;this._executeDrill(e,(function(t){return e.drillUp(o,t)}))},r.prototype.drillDown=function(t){var e=this._getSelectionMappingInfo(t).dataItem,o=this._getSelectedCategories(t),i=o[0][0].value,n=o[0][0].parentId;this._executeDrill(e,(function(t){return e.drillDown(i,t,n)}))},r.prototype._canDrillDown=function(t){return this._getSelectionMappingInfo(t).dataItem.canDrillDown()},r.prototype._canDrillUp=function(t){return void 0!==this._getSelectedCategories(t)[0][0].parentId},r}(t)})),define("dashboard-analytics/features/content/developerWidgetRefreshAction/DeveloperWidgetRefreshAction",["../../../lib/@waca/dashboard-common/dist/core/APIFactory","../../../widgets/livewidget/nls/StringResources","../../../lib/@waca/dashboard-common/dist/api/ContentActionsProviderAPI"],(function(t,e,o){return function(){function i(t){var e=t.features;_classCallCheck(this,i),this.dashboard=e.API,this.icons=e.Icons,e.ContentActions.registerProvider("developerWidgetRefreshAction",this.getAPI())}return i.prototype.getAPI=function(){return t.createAPI(this,[o])},i.prototype.getContentActionList=function(t){var o=t[0],i=this.dashboard.getCanvas().getContent(o),n=this.icons.getIcon("refreshIcon");return this._supportAction(t,i)?[{name:"developerWidgetRefreshAction",label:e.get("toolbarActionRefreshDeveloperWidget"),icon:n.id,type:"Button",actions:{apply:this.refreshDeveloperWidget.bind(this,i)}}]:[]},i.prototype._supportAction=function(t,e){return(!t||1==t.length)&&(this.dashboard.getMode()===this.dashboard.MODES.EDIT&&(!!this._isDeveloperWidget(e)&&!!this._hasPermissions()))},i.prototype._isDeveloperWidget=function(t){var e=t.getFeature("Visualization");if(!e)return!1;var o=e.getDefinition(),i=!!o.getState().getError(),n=o.getId();if(i){var r=t.getFeature("state").getError(),a=r&&r.getParams&&r.getParams();n=a&&a.errorInfo&&a.errorInfo.id}return"visualizationPreview"===n},i.prototype._hasPermissions=function(){return-1!==this.dashboard.getGlassCoreSvc(".UserProfile").capabilities.indexOf("canDevelopVisualizations")},i.prototype.refreshDeveloperWidget=function(t){t.getFeature("Visualization").getDefinition().refresh(),this.dashboard.getFeature("UndoRedo").clearStack()},i}()})),define("dashboard-analytics/features/content/dataQueryExecution/CrosstabQueryDefinitionModifier",["../../../lib/@waca/dashboard-common/dist/core/APIFactory","../../../lib/@waca/dashboard-common/dist/utils/ContentUtil","../../../filters/FilterSpecHelper","./api/QueryDefinitionModifierAPI","./DataQueryUtils"],(function(t,e,o,i,n){return function(){function r(t){var e=t.content,o=t.dashboardAPI,i=t.features;_classCallCheck(this,r),this.content=e,this.dashboard=o,i.DataQueryExecution.registerQueryDefinitionModifier(this.getAPI())}return r.prototype.getAPI=function(){return this.api||(this.api=t.createAPI(this,[i])),this.api},r.prototype.getType=function(){return"main"},r.prototype.modifyQueryDefinitionList=function(t){var e=this;return"Crosstab"===this.content.getFeature("Visualization").getType()&&t.forEach((function(t){var o=t.getFilters().filter((function(t){return!!t.visualizationId}));t.removeFilters(o),t.setSupportsNonContextualTopBottom(!1),e._modifyFilters(t)})),t},r.prototype._modifyFilters=function(t){var e=this,i=[],r=this.content.getFeature("Visualization"),a=r.getDataSource(),s=this._getBrushedFiltersByVisualization(),l=this._getUnionedDataItemList(r);l.length>0?s.forEach((function(t){for(var n=!0,r=t.columnId?[t.columnId]:o.getSelectedCompoundFilterColumnIds([t]),s=function(t){var o=e._getHierarchyMetadatColumn(a,a.getMetadataColumn(r[t]));if(o&&l.find((function(t){var i=e._getHierarchyMetadatColumn(a,t.getMetadataColumn());return i&&o.getId()===i.getId()})))return n=!1,"break"},u=0;u<r.length;u++){if("break"===s(u))break}n&&i.push(t)})):i.push.apply(i,s);var u=n.convertExcludeEmptyValuesFilters(i,r.getDataSource());t.addFilters(u)},r.prototype._getBrushedFiltersByVisualization=function(){var t=this.dashboard.getFeature("EventGroups"),o=this.dashboard.getFeature("GlobalFilters"),i=this.content.getFeature("Visualization"),n=[],r=i.getDataSource(),a=this.dashboard.getAppConfig("pageContainerType"),s=e.getPageContent(this.content,a),l=s&&s.getId();if(r&&!1!==i.getDefinition().getProperty("reactToExternalBrushing")){var u=t.getGroupId(this.content.getId());n.push.apply(n,o.getFilterList({origin:"visualization",sourceId:r.getId(),scope:l,eventGroupId:u},this.content.getId()))}return n.filter((function(t){return!t.filterBins}))},r.prototype._getHierarchyMetadatColumn=function(t,e){return!e||e.isHierarchy()?e:this._getHierarchyMetadatColumn(t,e.getParent())},r.prototype._getUnionedDataItemList=function(t){var e=[];return t.getSlots().getDataItemList().forEach((function(t){e.push.apply(e,t.getUnion().getDataItemList())})),e},r}()})),define("dashboard-analytics/features/widget/conditionalFormat/api/DeprecatedConditionalFormatAPI",[],(function(){return function t(){_classCallCheck(this,t)}})),define("dashboard-analytics/features/widget/deprecatedVisAPI/api/Deprecated_VisAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.getVisId=function(){},t.prototype.matches=function(){},t.prototype.getDefinition=function(){},t.prototype.getPromptSpec=function(){},t.prototype.generateThumbnail=function(){},t.prototype.getSuppressViewAnimations=function(){},t.prototype.visDefsHaveSearchButton=function(){},t.prototype.getModule=function(){},t.prototype.getMetadataColumn=function(){},t.prototype.getMetadataManager=function(){},t.prototype.getUsedMetadataColumns=function(){},t.prototype.getInvalidReason=function(){},t.prototype.clearModelInvalid=function(){},t.prototype.getTitle=function(){},t.prototype.setTitle=function(){},t.prototype.setData=function(){},t.prototype.isFilterEditable=function(){},t.prototype.getShowTitle=function(){},t.prototype.supportsMaintainAxisScale=function(){},t.prototype.getListenForPropChangesFromDefinition=function(){},t.prototype.getMetaDataValue=function(){},t.prototype.getFormatter=function(){},t.prototype.getInteractivitySettings=function(){},t.prototype.isOptimizeForSize=function(){},t.prototype.swapSlots=function(){},t.prototype.getDataSlots=function(){},t.prototype.getLayers=function(){},t.prototype.getDefaultLayer=function(){},t.prototype.getDataItemSlotAndIndex=function(){},t.prototype.filterSlotDataItems=function(){},t.prototype.isMappingEmpty=function(){},t.prototype.isDataItemMapped=function(){},t.prototype.hasBinnedDataItems=function(){},t.prototype.isIgnoreDefaultSlotSort=function(){},t.prototype.getConditions=function(){},t.prototype.hasHeatByItem=function(){},t.prototype.getConditionalMinMaxValue=function(){},t.prototype.createDefaultConditionalPalette=function(){},t.prototype.updateConditionalPalette=function(){},t.prototype.getConditionalPaletteLength=function(){},t.prototype.getQueryAPI=function(){},t.prototype.getQueryManager=function(){},t.prototype.getQueryResults=function(){},t.prototype.getQueryExecution=function(){},t.prototype.whenQueryResultsReady=function(){},t.prototype.whenColumnsMinMaxQueryReady=function(){},t.prototype.whenDataItemsMinMaxQueryReady=function(){},t.prototype.queryChanged=function(){},t.prototype.getAnnotations=function(){},t.prototype.setAnnotations=function(){},t.prototype.whenPredictSuggestionsReady=function(){},t.prototype.whenAnnotatedResultsReady=function(){},t.prototype.getSmartAnnotationsManger=function(){},t.prototype.getEnabledAnnotations=function(){},t.prototype.getAllSuggestedAnnotations=function(){},t.prototype.areThereValidInsights=function(){},t.prototype.areThereValidFPDMessages=function(){},t.prototype.whenPredictIsReady=function(){},t.prototype.resetAnnotations=function(){},t.prototype.setAnnotationMessages=function(){},t.prototype.clearInsightsIndicatorMessages=function(){},t.prototype.executeFastPatternDetectionRequest=function(){},t.prototype.getPossibleKeyDrivers=function(){},t.prototype.setPossibleKeyDrivers=function(){},t.prototype.whenPossibleKeyDriversAreReady=function(){},t.prototype.whenPossibleKeyDriversQueryIsReady=function(){},t.prototype.getPossibleKeyDriversDisplayState=function(){},t.prototype.getNewPossibleKeyDriversForTargetId=function(){},t.prototype.possibleKeyDriverSelectionStateChanged=function(){},t.prototype.getEnabledPossibleKeyDrivers=function(){},t.prototype.getPossibleKeyDriversErrorState=function(){},t.prototype.getRenderer=function(){},t.prototype.getRenderSequence=function(){},t.prototype.getPreferredSize=function(){},t.prototype.renderComplete=function(){},t.prototype.renderCompleteBeforeAnimation=function(){},t.prototype.resize=function(){},t.prototype.reRender=function(){},t.prototype.mapVizRenderForPrint=function(){},t.prototype.selectData=function(){},t.prototype.supportsFilterOnColumn=function(){},t.prototype.getPendingFilters=function(){},t.prototype.getActiveFilters=function(){},t.prototype.getPageContextAPI=function(){},t.prototype.getFilterInfo=function(){},t.prototype.setSynchronizeDataFilters=function(){},t.prototype.setPendingFilters=function(){},t.prototype.getLocalFiltersList=function(){},t.prototype.validateFilters=function(){},t.prototype.cleanUpMissingFilters=function(){},t.prototype.getAllFiltersAsLocalFiltersForPinning=function(){},t.prototype.getLocalFilterAndTopBottomInfo=function(){},t.prototype.clearSelectionsByDataItemIds=function(){},t.prototype.getLocalFilters=function(){},t.prototype.getSelectionAsLocalFilters=function(){},t.prototype.clearSelectionsUsedForShowBy=function(){},t.prototype.getDrillInfo=function(){},t.prototype.getTopBottomInfo=function(){},t.prototype.getPropertyValue=function(){},t.prototype.getPropertyById=function(){},t.prototype.getProperties=function(){},t.prototype.getVisPropertiesCSSProxy=function(){},t.prototype.onChangeTheme=function(){},t.prototype.clearError=function(){},t.prototype.getScope=function(){},t.prototype.getEventGroupId=function(){},t.prototype.getWidgetId=function(){},t.prototype.on=function(){},t.prototype.off=function(){},t.prototype.getDecoratorAPI=function(){},t.prototype.getDecoratorAPIs=function(){},t.prototype.getCustomDataDecoration=function(){},t.prototype.setCustomDataDecoration=function(){},t.prototype.getDecoratedCustomData=function(){},t.prototype.getCustomData=function(){},t.prototype.getFredIsRed=function(){},t.prototype.getTableRef=function(){},t}()})),define("dashboard-analytics/features/widget/hierarchyDrillAction/api/HierarchyDrillActionAPI",[],(function(){return function t(){_classCallCheck(this,t)}})),define("dashboard-analytics/features/widget/smartRecommender/api/SmartRecommenderAPI",[],(function(){return function t(){_classCallCheck(this,t)}})),define("dashboard-analytics/features/widget/predictService/api/PredictServiceAPI",[],(function(){return function t(){_classCallCheck(this,t)}})),define("dashboard-analytics/features/widget/lassoSelectAction/LassoSelectAction",["../../../widgets/livewidget/nls/StringResources","../../../lib/@waca/dashboard-common/dist/core/APIFactory","../../../lib/@waca/dashboard-common/dist/api/ContentActionsProviderAPI"],(function(t,e,o){return function(){function i(e){var o=e.features;_classCallCheck(this,i),o&&(this.dashboard=o.API,this.icons=o.Icons,this._actions=[{id:"lw-lasso-select",name:"lasso",icon:"visualizations-marquee_16",label:t.get("toolbarActionLassoSelect")}],o.ContentActions.registerProvider("lasso",this.getAPI()))}return i.prototype.initialize=function(){var t=this;return this.dashboard.getCollectionExtension("com.ibm.bi.dashboard.live-lassoAction").then((function(e){e.forEach((function(e){var o=e.id,i=e.name,n=e.icon,r=e.label;t._actions.push({id:o,name:i,icon:n,label:r})}))}))},i.prototype.getAPI=function(){return this._api||(this._api=e.createAPI(this,[o])),this._api},i.prototype.destroy=function(){this.dashboard=null},i.prototype.getContentActionList=function(t){var e=this;if(this._supportAction(t)&&this.content){var o=this.content.getFeature("VisualizationGesture");return this._actions.map((function(t){return{id:t.id,name:t.name,label:t.label,icon:e.icons.getIcon(t.icon)&&e.icons.getIcon(t.icon).id,type:"Button",selected:!!o&&(o.getLassoSelectState()&&o.getLassoViewId()===t.id),order:50,actions:{apply:e._toggleLassoSelect.bind(e,t.id)}}}))}return[]},i.prototype._supportAction=function(t){if(!this._isInteractionEnabled("lassoSelect"))return!1;if(1!==t.length)return!1;if(this.dashboard.getMode()===this.dashboard.MODES.EDIT_GROUP)return!1;if(this.content=this.dashboard.getCanvas().getContent(t[0]),!this.content)return!1;var e=this.content.getFeature("Visualization");if(!e||e.getDefinition().getState().getError()||!e.getSlots().isMappingComplete())return!1;var o=this.content.getFeature("state");return!Boolean(o&&!!o.getError())&&("widget.live"===this.content.getType()&&this._isSupportedVisualizationType(e.getType())&&!e.getDefinition().getProperty("isSchematic")&&!e.getDefinition().getProperty("isCustomVis"))},i.prototype._isSupportedVisualizationType=function(t){return!(-1!==["Singleton","DataPlayer","Crosstab","List","Hierarchy","KPI","Pie","Wordle","Area","Dial","Bullet","DecisionTree","Sunburst","Spiral","DriverAnalysis","visualizationPreview","snippetList"].indexOf(t))},i.prototype._isInteractionEnabled=function(t){var e=this._getInteractionConfig();return!e.hasOwnProperty(t)||-1===[!1,"false"].indexOf(e[t])},i.prototype._getInteractionConfig=function(){return this.dashboard.getAppConfig("interactions")||{}},i.prototype._toggleLassoSelect=function(t,e){var o=this.content.getFeature("VisualizationGesture");if(o){var i=o.getLassoSelectState();o.setLassoSelectState(!i,t);var n=this.content.getFeature("Toolbar.internal");if(n)n.refresh();else{var r=e&&e.currentTarget;r&&(i?r.classList.remove("selected"):r.classList.add("selected"))}}},i}()})),define("dashboard-analytics/features/widget/jumpToAction/JumpToAction",["underscore","../../../util/JumpToActionHelper","../../../lib/@waca/dashboard-common/dist/core/APIFactory","../../content/slotActions/api/SlotActionsProviderAPI","../../content/dataPointActions/api/DataPointActionsProviderAPI","../../../lib/@waca/dashboard-common/dist/api/ContentActionsProviderAPI","../../../widgets/livewidget/nls/StringResources"],(function(t,e,o,i,n,r,a){return function(){function s(t){_classCallCheck(this,s),this._dashboard=t.features&&t.features.API||t.dashboardAPI,this._icons=t.features.Icons||t.features["Dashboard.Icons"],t.content?(this._content=t.content,this._content.getFeature("SlotActions").registerProvider("jumpToAction",this.getAPI()),this._content.getFeature("DataPointActions").registerProvider("jumpToAction",this.getAPI())):t.features&&t.features.ContentActions.registerProvider("jumpToAction",this.getAPI())}return s.prototype.destroy=function(){this._dashboard=null,this._content=null},s.prototype.getSlotActionList=function(t,e){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Array.isArray(e)&&1!==e.length||"cell_edge_row"===o.area||"cell_edge_column"===o.area?[]:this._getContribution()},s.prototype.getDataPointActionList=function(t,e){return this._supportDataPointAction(e)?this._getContribution(t,e):[]},s.prototype._supportDataPointAction=function(t){return!t.noDrillthrough},s.prototype._supportAction=function(t){return 1===t.length&&this._dashboard.getMode()!==this._dashboard.MODES.EDIT_GROUP&&(this._content=this._dashboard.getCanvas().getContent(t[0]),this._content&&"widget.live"===this._content.getType())},s.prototype.getContentActionList=function(t){return this._supportAction(t)?(this._content=this._dashboard.getCanvas().getContent(t[0]),this._getDrillThroughToolbarContribution()):[]},s.prototype._getTargetInfo=function(t,o,i){var n=this._dashboard.getFeature("DrillThroughService").getDrillThroughModelApiSync().getDrillDefinitionEntries(t);return e.getJumpToTargets({content:t,drillDefinitions:n,selections:i,dashboardApi:this._dashboard,sourceId:o})},s.prototype._getContribution=function(t){var e,o=[],i=this._content.getFeature("Visualization").getDataSource().getId();(e=this._getTargetInfo(this._content,i,t)).targets.length>0&&(o=[this._getContributionAction({oTargetsInfo:e,isDataPointSelection:!0,sourceId:i,selections:t})]);return o},s.prototype._isAutoGrouped=function(t){var e=t.getSlots().getDataItemList(),o=!1;return e.forEach((function(t){t.getBinning()&&(o=!0)})),o},s.prototype._getDrillThroughToolbarContribution=function(){var t=this._content.getFeature("Visualization");if(t&&t.getDefinition()&&t.getDefinition().getType()&&!this._isAutoGrouped(t)){var e=t.getDataSource();if(!e||!this._isInteractionEnabled("drillThrough"))return[];var o=e.getId(),i=this._getTargetInfo(this._content,o),n=i.targets&&!i.targets.length,r=this._dashboard.getFeature("DashboardState").getUiState().authoring;return!r&&n?[]:[this._getContributionAction({sourceId:o,oTargetsInfo:i,isAuthoringMode:r})]}return[]},s.prototype._getContributionAction=function(){var e=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=o.oTargetsInfo,n=!!o.isAuthoringMode,r=!!o.isDataPointSelection,s=this._icons.getIcon("visualizations-drillthrough_16"),l=void 0;l=(r||!n)&&i.targets&&1===i.targets.length;var u={name:"jumpTo",label:a.get("drillthrough_jumpToLabel"),icon:s.id,viewOptions:{content:this._content,sourceId:o.sourceId,jumpToTargets:function(t,o,i){return e._getTargetInfo(t,o,i)},isDataPointSelection:r,dashboardApi:this._dashboard,selections:o.selections}};return u=l?t.extend(u,{type:"Button",actions:{apply:this._performDirectJumpTo.bind(this,i)}}):t.extend(u,{type:"NextView",viewModule:"dashboard-analytics/drill-through/jumpTo/JumpToView"})},s.prototype._performDirectJumpTo=function(e){if(e&&t.isArray(e.targets)&&e.targets.length){var o=e.targets[0].getId(),i=e.targetsMap[o];i&&i.jumpTo()}},s.prototype._isInteractionEnabled=function(t){var e=this._dashboard.getAppConfig("interactions")||{};return!e.hasOwnProperty(t)||-1===[!1,"false"].indexOf(e[t])},s.prototype.getAPI=function(){return this._api||(this._api=o.createAPI(this,[i,r,n])),this._api},s}()})),define("dashboard-analytics/features/widget/changeVisTypeAction/api/ChangeVisTypeActionAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.openDialog=function(){},t.prototype.removeDialog=function(){},t}()})),define("dashboard-analytics/widgets/livewidget/visSwitcher/VisChangerFlyoutView",["../../../lib/@waca/core-client/js/core-client/ui/core/View","../../../lib/@waca/core-client/js/core-client/utils/Utils","../nls/StringResources","jquery","underscore","react-dom","react","ca-ui-toolkit","dashboard-analytics/DynamicFileLoader","gemini/app/util/ErrorUtils"],(function(t,e,o,i,n,r,a,s,l,u){var c=s.Accordion,d=s.AccordionItem,p=s.SVGIcon,f=s.Label,h=s.SVGIconDecoration,g=s.ProgressIndicator,m=function(t){function e(o){_classCallCheck(this,e);var i=_possibleConstructorReturn(this,t.call(this,o));return i.state=_extends({},o.state),i.state.checkMarkIcon=o.state.iconsFeature.getIcon("CheckmarkSVG"),i}return _inherits(e,t),e.prototype.getSelectedDecoration=function(t){if(this.state.selectedId===t)return a.createElement(h,{iconId:this.state.checkMarkIcon.id,location:"bottomRight",style:{right:"-4px"}})},e.prototype.renderPropItem=function(t,e){var o=this.getSelectedDecoration(t.id),i=this.state.selectedId===t.id?"true":"false";return a.createElement("div",{role:"group",className:"prop-item"},a.createElement("div",{tabIndex:0,"data-type":e,className:"prop-icon vis",role:"button",title:t.name,"data-id":t.id,"appcues-data-id":t.id,"aria-label":t.name,"aria-pressed":i},a.createElement(p,{iconId:this.state.svgsMap[t.id].id,height:42,width:42},o),a.createElement(f,{className:"prop-icon-label",label:t.name})))},e.prototype.loadVisRowItems=function(t,e){var o=this,i=[],n=e?"Recommended":"Other";return t.forEach((function(t){t.id&&o.state.svgsMap[t.id]&&i.push(o.renderPropItem(t,n))})),i},e.prototype._renderLoading=function(){return a.createElement("div",{className:"vis-changer-progressIndicator"},a.createElement(g,{size:"large",variant:"circle"}))},e.prototype._getVisRowItems=function(t){var e=t.items,o=t.isRecommended,i=this.loadVisRowItems(e,o);return a.createElement("div",{className:"visChangerRow"},i)},e.prototype._getRecommendedAccordionItem=function(){var t={items:this.state.recommended.items,isRecommended:!0};return this.state.recommended.isLoading?this._renderLoading():this._getVisRowItems(t)},e.prototype._getAllVisAccordionItem=function(){var t={items:this.state.all.items,isRecommended:!1};return this.state.all.isLoading?this._renderLoading():this._getVisRowItems(t)},e.prototype._renderAccordions=function(){var t=this._getRecommendedAccordionItem();return this.state.isConsumer?a.createElement(c,null,a.createElement(d,{itemName:o.get("recommended_visualizations"),icon:"left",open:!0},t)):a.createElement(c,null,a.createElement(d,{itemName:o.get("recommended_visualizations"),icon:"left",open:!0},t),a.createElement(d,{itemName:o.get("all_visualizations"),icon:"left",open:!1,onChange:this.state.onItemChange},this._getAllVisAccordionItem()))},e.prototype.render=function(){return this._renderAccordions()},e}(a.Component),_=t.extend({events:{"primaryaction .vis":"_selectVis"},_loadSVGFileMap:function(){var t=this;if(this.viewState.svgsMap&&n.keys(this.viewState.svgsMap).length>0)return Promise.resolve(this.viewState.svgsMap);if(this.viewState.svgsMap={},this._getAllAvailableVisualizations(),this.viewState.all&&this.viewState.all.items){var e=this.viewState.iconsFeature;if(this.viewState.all.items.forEach((function(o){var i=e.getIcon(o.visId);t.viewState.svgsMap[o.visId]=i})),-1===Object.keys(this.viewState.svgsMap).indexOf("auto")){var o=e.getIcon("auto");this.viewState.svgsMap.auto=o}return Promise.resolve(this.viewState.svgsMap)}},init:function(t){this.el=i("<div class='visChangerContainer'/>"),_.inherited("init",this,arguments),this.applyAction=t&&t.actions&&t.actions.apply;var e=t&&t.state?t.state:t;n.extend(this,e||{}),this.iconsFeature=this.dashboard.getFeature("Icons"),this._initializeViewState()},_elementExists:function(){var t=!1,e=!1,o=this.el;return o&&(o.length&&(t=o.length>0),o.children&&(e=0!==o.children)),o&&(e||t)},remove:function(){return this._elementExists()&&r.unmountComponentAtNode(this.el),this.viewState=null,_.inherited("remove",this,arguments)},setFocus:function(){this.$(".vis").first().focus()},_processVisualizations:function(t){var e=this,o=[];return n.each(t,(function(t){e.viewState.visualizationMap[t.id||t.getId()]=t,o.push({id:t.id||t.getId(),name:t.caption||t.getLabel(),visId:t.id||t.getId(),caption:t.caption||t.getLabel(),iconUri:t.icon||t.getIcon()})})),o},_preload:function(){return this.viewState.visualizationMap=this.viewState.visualizationMap||{},this._loadSVGFileMap()},_getAllAvailableVisualizations:function(){var t=this.dashboard.getFeature("VisDefinitions").getList(),e=this._processVisualizations(t);this.viewState.all.items=n.sortBy(e,(function(t){return t.name})),this.viewState.all.isLoading=!1},_getRecommendedVisualizations:function(){var t=this;return this.content.getFeature("Visualization.SmartsRecommender").getRecommendedVisualizations().then((function(e){if(null!==t.viewState){var i=t._processVisualizations(e);i.unshift({id:"auto",name:o.get("automaticTypeCaption"),visId:"auto",caption:o.get("automaticTypeCaption"),iconUri:"visualizations-changeVisualization",disabled:0===i.length});var n=6;t.viewState.selectedId&&n++,t.viewState.recommended.items=i.slice(0,n),t.viewState.recommended.isLoading=!1}}))},_initializeViewState:function(){this.viewState={recommended:{items:[],isLoading:!0},all:{items:[],isLoading:!0},svgsMap:null,selectedId:this._getSelectedVizId(),visualizationMap:null,iconsFeature:this.iconsFeature,onItemChange:this._onItemChange.bind(this)}},_onItemChange:function(){var t=this._getOffScreenHeight();if(t>0){var e=i(this.el).parents(".popover"),o=Math.max(0,e.position().top-t);e&&e.css({top:o})}},_getOffScreenHeight:function(){var t=this._getDocumentElement().scrollHeight,o=e.getCurrentWindow().innerHeight;return t>o?t-o:-1},_getDocumentElement:function(){return document.documentElement},_getSelectedVizId:function(){var t=this.content.getFeature("Visualization");return this.currentVis&&"auto"===this.currentVis||t&&!t.isTypeLocked()?"auto":t.getDefinition().getId()},_resetRecommendedViewState:function(){this.viewState.recommended={items:[],isLoading:!0},this._elementExists()&&this.reactComponents&&r.unmountComponentAtNode(this.el)},_showLoading:function(){this._resetRecommendedViewState(),this.reactComponents=r.render(a.createElement(m,{state:this.viewState}),this.el)},_showReactSections:function(){this.reactComponents.setState(JSON.parse(JSON.stringify(this.viewState)))},_render:function(t){var e=this;return n.extend(this,t||{}),this._isConsumer(),this._showLoading(),this._preload().then((function(){e._showReactSections()})).then(this._getRecommendedVisualizations.bind(this)).then((function(){e._showReactSections()}))},_isConsumer:function(){var t=this.dashboard&&this.dashboard.getCurrentContentView(),e=t&&t.glassContext;this.viewState&&e&&(this.viewState.isConsumer=!u.hasCapability(e,"canAuthorDashboard"))},render:function(t){return this._render(t),Promise.resolve()},_getTargetFromEvent:function(t){return i(t.currentTarget)},_selectVis:function(t){var e=this._getTargetFromEvent(t),o=e.attr("data-id"),i=e.attr("data-type");if(this.viewState.selectedId!==o){this.viewState.selectedId=o,this.reactComponents.setState({selectedId:o});var n=this.dashboard.getFeature("VisDefinitions").getById(o),r=n&&n.getType()||o;this.applyAction(r,{recommendedCategory:i}),this.selectVisCB&&this.selectVisCB()}}});return _})),define("dashboard-analytics/features/widget/changeVisTypeAction/ChangeVisTypeAction",["underscore","../../../widgets/livewidget/nls/StringResources","../../../lib/@waca/dashboard-common/dist/core/APIFactory","./api/ChangeVisTypeActionAPI","../../../widgets/livewidget/visSwitcher/VisChangerFlyoutView","../../../lib/@waca/dashboard-common/dist/api/ContentActionsProviderAPI"],(function(t,e,o,i,n,r){return function(){function a(t){var e=t.features;_classCallCheck(this,a),e&&(this.dashboard=e.API,this.features=e,this.transaction=this.dashboard.getFeature("Transaction"),this.visDefintions=this.dashboard.getFeature("VisDefinitions"),this._dashboardPreferences=e.DashboardPreferences,this._dashboardState=e.DashboardState,this.icons=e.Icons,e.ContentActions.registerProvider("changeVisTypeAction",this.getAPI()))}return a.prototype.destroy=function(){this.dashboard=null,this.api=null},a.prototype.getAPI=function(){return this.api||(this.api=o.createAPI(this,[i,r])),this.api},a.prototype._supportAction=function(t,e){var o=Boolean(1===t.length),i=Boolean(e&&"widget.live"===e.getType()),n=this.dashboard.getMode()!==this.dashboard.MODES.EDIT_GROUP,r=e&&e.getFeature("state"),a=Boolean(r&&!!r.getError());return o&&i&&n&&this._isInteractionEnabled("changeVis")&&!a},a.prototype.getContentActionList=function(o){var i=this.dashboard.getCanvas().getContent(o[0]);if(this._supportAction(o,i)){var n=i.getFeature("Visualization"),r=this.icons.getIcon("visualizations-changeVisualization"),a=!0;this.dashboard.getMode()===this.dashboard.MODES.VIEW&&n&&{summary:1,dataPlayer:1,list:1,hierarchy2:1,hierarchy3:1}[n.getDefinition().getId()]&&(a=!1);var s=this._dashboardPreferences.getPreference("isToolbarDocked")||this._dashboardState.getUiState().focus,l=void 0;if(a){var u={height:202,width:402,content:i,dashboard:this.dashboard},c={name:"changeVisTypeAction",label:e.get("visChange"),icon:r.id,type:"NextView",view:{module:"dashboard-analytics/widgets/livewidget/visSwitcher/VisChangerFlyoutView",state:u},actions:{apply:this._changeVisType.bind(this,i)}};return s&&t.extend(c,{text:n.getDefinition().getLabel(),className:"buttonWithText",callbacks:{registerCallback:function(t){l=function(){t.updateState({text:n.getDefinition().getLabel()})},n.on("change:type",l)},unregisterCallback:function(){n.off("change:type",l)}}}),[c]}}return[]},a.prototype._isInteractionEnabled=function(t){var e=this.dashboard.getAppConfig("interactions")||{};return!e.hasOwnProperty(t)||-1===[!1,"false"].indexOf(e[t])},a.prototype._trackSetType=function(t,e){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(o.recommendedCategory&&this.features.LiveWidgetSegment){var i={category:o.recommendedCategory,visualization:t.getFeature("Visualization"),content:t,info:{visId:e}};this.features.LiveWidgetSegment.track(i)}},a.prototype._changeVisType=function(t,e,o){var i=t.getFeature("Visualization.SmartsRecommender");if(i){var n=void 0;return"auto"===e?n=i.recommendBestVisualization():(this._trackSetType(t,e,o),n=i.setType(e)),n.then((function(){t.getFeature("Toolbar.internal").refresh()}))}},a.prototype.openDialog=function(t,e){return e.actions={apply:this._changeVisType.bind(this,e.content)},this.visChangeView||(this.visChangeView=new n(e)),this.visChangeView.render(t)},a.prototype.removeDialog=function(){this.visChangeView&&(this.visChangeView.remove(),this.visChangeView=null)},a}()})),define("dashboard-analytics/features/widget/suppressionAction/SuppressionAction",["../../../widgets/livewidget/nls/StringResources","jquery","../../../lib/@waca/dashboard-common/dist/core/APIFactory","../../../lib/@waca/dashboard-common/dist/api/ContentActionsProviderAPI"],(function(t,e,o,i){return function(){function n(t){var e=t.features;_classCallCheck(this,n),e&&(this.dashboardApi=e.API,this.icons=e.Icons,e.ContentActions.registerProvider("suppressionAction",this.getAPI()))}return n.prototype.getAPI=function(){return this._api||(this._api=o.createAPI(this,[i])),this._api},n.prototype.getLifeCycleHandlers=function(){return[{name:"post:dashboard.initialize",action:this.postDashboardInitialize.bind(this)}]},n.prototype.postDashboardInitialize=function(){return Promise.resolve()},n.prototype.destroy=function(){this.dashboardApi=null},n.prototype.isEnabled=function(t){var e=this._getSelectedContent(),o=e&&e.getFeature("SuppressionPropertyProvider");return 1===t.length&&o&&o.getPropertyList().length&&this.dashboardApi.getMode()!==this.dashboardApi.MODES.EDIT_GROUP},n.prototype.getContentActionList=function(t){var e=this.icons.getIcon("iconSuppresion");return this.isEnabled(t)?[{name:"suppression",label:this._getLabel(),icon:e.id,type:"Button",actions:{apply:this._toggleSuppress.bind(this,t)}}]:[]},n.prototype._getSelectedContent=function(){return this.dashboardApi.getCanvas().getSelectedContentList()[0]},n.prototype._getLabel=function(e){return"rowsAndColumns"===(e=e||this._getValue())?t.get("disableSuppression"):t.get("enableSuppression")},n.prototype._getValue=function(){return this._getSelectedContent().getPropertyValue("suppression")},n.prototype._toggleSuppress=function(t,o){var i="rowsAndColumns"===this._getValue()?"none":"rowsAndColumns",n=e(o.currentTarget).find(".suppressBtnToggle").addBack(),r=this._getLabel(i);n.attr("title",r),n.find("svg title").text(r),this._getSelectedContent().setPropertyValue("suppression",i)},n}()})),define("dashboard-analytics/features/widget/suppressionAction/SuppressionPropertyProvider",["../../../lib/@waca/dashboard-common/dist/core/APIFactory","../../../lib/@waca/dashboard-common/dist/api/PropertiesProviderAPI","../../../widgets/livewidget/nls/StringResources"],(function(t,e,o){return function(){function i(t){_classCallCheck(this,i),this.content=t.content,this.content&&this.content.getFeature("Properties").registerProvider(this.getAPI())}return i.prototype.getAPI=function(){return this._api||(this._api=t.createAPI(this,[e])),this._api},i.prototype.destroy=function(){this.content=null},i.prototype.getPropertyLayoutList=function(){return[]},i.prototype.getPropertyList=function(){var t=this,e=[];return this._isSupported()&&e.push({id:"suppression",editor:{sectionId:"visualization.chart",uiControl:{type:"ToggleButton",defaultValue:"rowsAndColumns",label:o.get("suppression"),onChange:function(e,o){var i=!1===o?"none":"rowsAndColumns";t.content.setPropertyValue(e,i)}}},onPropertyChange:{refresh:{data:!0}},defaultValue:"rowsAndColumns"}),e},i.prototype._isSupported=function(){var t=this.content.getFeature("Visualization");return t&&this._isSupportedVisType(t)},i.prototype._isSupportedVisType=function(t){return"Crosstab"===t.getType()||"List"===t.getType()},i.prototype._isOlap=function(t){var e=t.getSlots().getMappedSlotList(),o=e[0]&&e[0].getDataItemList()[0];return o&&o.getMetadataColumn().isOlapColumn()||!1},i}()})),define("dashboard-analytics/features/widget/conditionalFormatting/api/DeprecatedConditionalFormattingAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.on=function(){},t.prototype.off=function(){},t.prototype.isEnabled=function(){},t.prototype.initializeFeature=function(){},t.prototype.getFormatting=function(){},t.prototype.getCondtionalFormattingEnabled=function(){},t.prototype.setConditionalFormattingEnabled=function(){},t.prototype.getPaletteId=function(){},t.prototype.setPaletteId=function(){},t.prototype.reverseColors=function(){},t.prototype.getPropertyLayoutList=function(){},t.prototype.getRangeScale=function(){},t.prototype.setRangeScale=function(){},t.prototype.getNumberOfRanges=function(){},t.prototype.setNumberOfRanges=function(){},t.prototype.removeRange=function(){},t.prototype.getRanges=function(){},t.prototype.getSelectedRangeIndex=function(){},t.prototype.setSelectedRangeIndex=function(){},t.prototype.getStartValueForRange=function(){},t.prototype.setStartValueForRange=function(){},t.prototype.getEndValueForRange=function(){},t.prototype.setEndValueForRange=function(){},t.prototype.setColorIdForRange=function(){},t.prototype.getColorHexForRange=function(){},t.prototype.getColorIdForRange=function(){},t.prototype.checkValidStartValueForRange=function(){},t.prototype.checkValidEndValueForRange=function(){},t.prototype.getConditionalFormatting=function(){},t.prototype.setConditionalFormatting=function(){},t.prototype.getCustomColorList=function(){},t.prototype.resetRanges=function(){},t.prototype.getShapeList=function(){},t.prototype.getShapeForRange=function(){},t.prototype.setShapeForRange=function(){},t.prototype.getShapeDefinition=function(){},t}()})),define("dashboard-analytics/features/widget/conditionalFormatting/api/impl/DeprecatedConditionalFormattingAPISpec",[],(function(){var t={supportsUndoRedo:!0,refresh:{render:!0}};return function(){function e(){_classCallCheck(this,e)}return e.prototype.getAPISpec=function(){var e=this;return this.apiSpec||(this.apiSpec={name:"conditional formatting API",events:{actions:{setConditionalFormattingEnabled:{eventName:"condtionalFormattingEnabled",info:t,getUndoActions:function(){return[{params:[e.getAPI().getCondtionalFormattingEnabled()]}]}},setPaletteId:{eventName:"paletteId",info:t,getUndoActions:function(){return[{params:[e.getPaletteId()]}]}},setRangeScale:{eventName:"rangeScale",info:t,getUndoActions:function(){return[{params:[e.getRangeScale()]}]}},setNumberOfRanges:{eventName:"numberOfRanges",info:t,getUndoActions:function(){return[{params:[e.getNumberOfRanges()]}]}},setStartValueForRange:{eventName:"startValueForRange",info:t,getUndoActions:function(t){return[{params:[e.getStartValueForRange(t[1]),t[1]]}]}},setEndValueForRange:{eventName:"endValueForRange",info:t,getUndoActions:function(t){return[{params:[e.getEndValueForRange(t[1]),t[1]]}]}},setColorIdForRange:{eventName:"colorIdForRange",info:t,getUndoActions:function(t){return[{params:[e.getColorIdForRange(t[1]),t[1]]}]}},removeRange:{eventName:"removeRange",info:t,getUndoActions:function(){return[{name:"setConditionalFormatting",params:[e.getConditionalFormatting()]}]}},setConditionalFormatting:{eventName:"conditionalFormatting",info:t,getUndoActions:function(){return[{params:[e.getConditionalFormatting()]}]}},reverseColors:{eventName:"reverseColors",info:t,getUndoActions:function(){return[{name:"setConditionalFormatting",params:[e.getConditionalFormatting()]}]}},resetRanges:{eventName:"resetRanges",info:t,getUndoActions:function(){return[{name:"setConditionalFormatting",params:[e.getConditionalFormatting()]}]}},setShapeForRange:{eventName:"shapeForRange",info:t,getUndoActions:function(t){return[{params:[e.getShapeForRange(t[1]),t[1]]}]}}}}}),this.apiSpec},e}()})),define("dashboard-analytics/features/widget/conditionalFormatting/api/impl/DeprecatedConditionalFormatting",["../DeprecatedConditionalFormattingAPI","../../../../../lib/@waca/dashboard-common/dist/core/APIFactory","underscore","../../../../../widgets/livewidget/nls/StringResources","jquery","./DeprecatedConditionalFormattingAPISpec"],(function(t,e,o,i,n,r){var a=function(r){function a(o){_classCallCheck(this,a);var n=_possibleConstructorReturn(this,r.call(this));return n._content=o.content,n._dashboardApi=o.dashboardAPI,n._selectedRangeIndex=0,n._colorsFeature=o.features["Dashboard.Colors"],n.__apiInstance=e.createAPI(n,[t]),n._isNewConditionalFormatFeature()||(n._paletteFeature=o.features["Dashboard.Palette"],n._properties=o.features.Properties,n._properties.registerProvider(n.__apiInstance),n._customColor=o.features["Dashboard.CustomColor"],n._customColor.registerProvider(n.__apiInstance),n._registerEvents()),n.ICON_MAP=new Map,n.ICON_MAP.set("upArrow",{id:"conditionalFormatting-arrow-up_16",label:i.get("conditionalFormattingIconArrowUp")}),n.ICON_MAP.set("rightArrow",{id:"conditionalFormatting-arrow-right_16",label:i.get("conditionalFormattingIconArrowRight")}),n.ICON_MAP.set("downArrow",{id:"conditionalFormatting-arrow-down_16",label:i.get("conditionalFormattingIconArrowDown")}),n.ICON_MAP.set("upCaret",{id:"conditionalFormatting-caret-up_16",label:i.get("conditionalFormattingIconCaretUp")}),n.ICON_MAP.set("dash",{id:"conditionalFormatting-dash_16",label:i.get("conditionalFormattingIconDash")}),n.ICON_MAP.set("downCaret",{id:"conditionalFormatting-caret-down_16",label:i.get("conditionalFormattingIconCaretDown")}),n.ICON_MAP.set("checkmark",{id:"conditionalFormatting-checkmark_16",label:i.get("conditionalFormattingIconCheckmark")}),n.ICON_MAP.set("warning",{id:"conditionalFormatting-warning_16",label:i.get("conditionalFormattingIconWarning")}),n.ICON_MAP.set("xSymbol",{id:"conditionalFormatting-x-symbol_16",label:i.get("conditionalFormattingIconXSymbol")}),n.ICON_MAP.set("circle",{id:"conditionalFormatting-circle_16",label:i.get("conditionalFormattingIconCircle")}),n.ICON_MAP.set("triangle",{id:"conditionalFormatting-triangle_16",label:i.get("conditionalFormattingIconTriangle")}),n.ICON_MAP.set("diamond",{id:"conditionalFormatting-diamond_16",label:i.get("conditionalFormattingIconDiamond")}),n.ICON_MAP.set("satisfied",{id:"conditionalFormatting-face-satisfied_16",label:i.get("conditionalFormattingIconFaceSatisfied")}),n.ICON_MAP.set("neutral",{id:"conditionalFormatting-face-neutral_16",label:i.get("conditionalFormattingIconFaceNeutral")}),n.ICON_MAP.set("dissatisfied",{id:"conditionalFormatting-face-dissatisfied_16",label:i.get("conditionalFormattingIconFaceDissatisfied")}),n.ICON_MAP.set("none",{id:"conditionalFormatting-noshape_16",label:i.get("conditionalFormattingIconNone")}),n}return _inherits(a,r),a.prototype.isEnabled=function(){var t=this._content.getFeature("Visualization");return t&&"kpi"===t.getDefinition().getId()},a.prototype.getAPI=function(){return this.__apiInstance},a.prototype._registerEvents=function(){this._paletteFeature.on("palette:deleted",this._onPaletteDeleted,this),this._paletteFeature.on("palette:updated",this._onPaletteUpdated,this)},a.prototype._deregisterEvents=function(){this._paletteFeature.off("palette:deleted",this._onPaletteDeleted,this),this._paletteFeature.off("palette:updated",this._onPaletteUpdated,this)},a.prototype.destroy=function(){this._isNewConditionalFormatFeature()||(this._deregisterEvents(),this._properties&&this._properties.deregisterProvider(this.__apiInstance),this._customColor&&this._customColor.deregisterProvider(this.__apiInstance))},a._getDefaultConditionalFormatting=function(){return JSON.parse(JSON.stringify({enabled:!0,paletteId:"condColorPalette0",paletteReversed:!1,rangeScale:a.RANGE_SCALE_PERCENTAGE,ranges:[{startValue:null,endValue:100,shape:"downArrow"},{startValue:100,endValue:null,shape:"upArrow"}]}))},a.prototype.getCustomColorList=function(){var t=this,e=[];return this.getRanges().forEach((function(o){if(o&&o.userSetColorId&&t._colorsFeature.isCustomColor(o.userSetColorId)){var i=t._colorsFeature.getHexColorFromClassName(o.userSetColorId);e.push(i)}})),e},a.prototype.initializeFeature=function(){this._contentModel||this._dashboardApi.getFeature("internal").getBoardModel().layout.findModel(this._content.getId())&&(this._contentModel=this._dashboardApi.getFeature("internal").getBoardModel().layout.findModel(this._content.getId()).getContentModel());if(!this._conditionalFormatting){var t=this._contentModel?this._contentModel.getConditionalFormatting():{};return this._conditionalFormatting=Object.assign(a._getDefaultConditionalFormatting(),t),this._processConditionalPalette()}return Promise.resolve()},a.prototype._processConditionalPalette=function(){var t=this;return this._colorsFeature.getPaletteColors({paletteId:this.getPaletteId(),type:"ConditionalPalette",defaultIfNotFound:!0,addMissingBaseColors:!1}).then((function(e){t._paletteColors=e,t._applyPaletteToRanges()}))},a.prototype._onPaletteDeleted=function(t){return t.paletteId===this.getPaletteId()?this.setPaletteId(this._colorsFeature.getDefaultPaletteName("ConditionalPalette")):Promise.resolve()},a.prototype._onPaletteUpdated=function(t){var e=t.paletteId;return e===this.getPaletteId()?this.setPaletteId(e):Promise.resolve()},a.prototype._onConditionalFormattingChange=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"UndoRedoController"===t.sender&&(this._conditionalFormatting=null)},a.prototype.getFormatting=function(t,e){if(this.setBaseValue(t),this.setTargetValue(e),!this.getCondtionalFormattingEnabled()||!n.isNumeric(this._baseValue)||!n.isNumeric(this._targetValue))return null;var o=this._findRangeForValue();if(o){var i=this._getColorIdForRangeObject(o);return{color:this._getHexFromColorId(i),shapeId:this._getShapeIdForRangeObject(o)}}return null},a.prototype.setBaseValue=function(t){this._baseValue=t},a.prototype.setTargetValue=function(t){this._targetValue=t},a.prototype._findRangeForValue=function(){var t=this;return this._getRanges().find((function(e){var o=t._baseValue;return(t.getRangeScale()!==a.RANGE_SCALE_PERCENTAGE||null!==(o=t._calculatePercentValue(t._baseValue,t._targetValue)))&&(e.startValue===e.endValue&&e.endValue===o||(null===e.startValue||o>=e.startValue)&&(null===e.endValue||o<e.endValue))}))},a.prototype._calculatePercentValue=function(t,e){return 0===t&&0===e?0:null!==e&&n.isNumeric(e)&&0!==e?(t-e)/Math.abs(e)*100:null},a.prototype._applyPaletteToRanges=function(){var t=this,e=this._buildIndexMap(this._paletteColors.length,this._getRanges().length);this._getPaletteReversed()||e.reverse();var o=this._paletteColors.length;this._getRanges().forEach((function(i,n){i.defaultColorId=n<o?t._paletteColors[e[n]].name:t._paletteColors[e[n%o]].name}))},a.prototype._buildIndexMap=function(t,e){if(!t||!e)return[];if(t<=e)return o.range(t);if(5===t){return[[4],[0,4],[0,2,4],[0,1,2,4],[0,1,2,3,4]][e-1]}if(1===e)return[Math.floor(t/2)];for(var i=(t-1)/e,n=[0],r=2;r<e;r++)n.push(Math.floor(i*r));return n.push(t-1),n},a.prototype._shouldShowProperties=function(){return this.getCondtionalFormattingEnabled()&&this._hasTargetValue()},a.prototype._hasTargetValue=function(){return n.isNumeric(this._targetValue)},a.prototype.getCondtionalFormattingEnabled=function(){return!!this._conditionalFormatting&&this._conditionalFormatting.enabled},a.prototype.setConditionalFormattingEnabled=function(t,e){this._conditionalFormatting.enabled=t,this._updateConditionalFormattingProperty(e)},a.prototype.getPaletteId=function(){return this._conditionalFormatting&&this._conditionalFormatting.paletteId},a.prototype.setPaletteId=function(t,e){return this._conditionalFormatting.paletteId=t,this._processConditionalPalette().then(this._updateConditionalFormattingProperty.bind(this,e))},a.prototype._getPaletteReversed=function(){return this._conditionalFormatting&&this._conditionalFormatting.paletteReversed},a.prototype._setPaletteReversed=function(t){this._conditionalFormatting.paletteReversed=t,this._applyPaletteToRanges()},a.prototype.reverseColors=function(){for(var t=this._getRanges(),e=Math.floor(t.length/2),o=t.length,i=0;i<e;i++){var n=t[i].userSetColorId;t[i].userSetColorId=t[o-i-1].userSetColorId,t[o-i-1].userSetColorId=n}this._setPaletteReversed(!this._getPaletteReversed()),this._updateConditionalFormattingProperty()},a.prototype.getRanges=function(){return JSON.parse(JSON.stringify(this._getRanges()))},a.prototype._getRanges=function(){return this._conditionalFormatting&&this._conditionalFormatting.ranges||[]},a.prototype.getRangeScale=function(){return this._conditionalFormatting&&this._conditionalFormatting.rangeScale},a.prototype.setRangeScale=function(t,e){t===a.RANGE_SCALE_PERCENTAGE||t===a.RANGE_SCALE_NUMERIC?t!==this.getRangeScale()&&(this._updateRangeScale(t),this._updateConditionalFormattingProperty(e)):this._dashboardApi.getFeature("Logger").error("Invalid conditional range scale",t)},a.prototype._updateRangeScale=function(t){var e=this;if(this._conditionalFormatting.rangeScale=t,null!==this._targetValue&&void 0!==this._targetValue){var o=function(o){return null===o?o:t===a.RANGE_SCALE_NUMERIC?Math.abs(e._targetValue)*(o/100):o/Math.abs(e._targetValue)*100};this._getRanges().forEach((function(t){t.startValue=o(t.startValue),t.endValue=o(t.endValue)}))}},a.prototype.getNumberOfRanges=function(){return this._getRanges().length},a.prototype.setNumberOfRanges=function(t,e){if(!n.isNumeric(t)||t<1)this._dashboardApi.getFeature("Logger").error("Invalid number of ranges",t);else{var o=this.getNumberOfRanges();this.getNumberOfRanges()<t?this._addNewRanges(t-o):this._removeRanges(o-t),this._applyPaletteToRanges(),this._updateConditionalFormattingProperty(e)}},a.prototype._addNewRanges=function(t){for(var e=0;e<t;e++){var o=this._findIndexWhereToInsert(),i=this._getRanges(),n=i[o],r=this._findNewRangeStartValue(n),a={startValue:r};null!==n.endValue&&n.endValue!==r?a.endValue=n.endValue:a.endValue=null,n.endValue=r,i.splice(o,1,n,a)}},a.prototype._findNewRangeStartValue=function(t){var e=0;return null===t.endValue?1===this.getNumberOfRanges()?this.getRangeScale()===a.RANGE_SCALE_NUMERIC?e=this._targetValue<t.startValue?t.startValue<0?t.startValue/2:2*t.startValue:this._targetValue:this.getRangeScale()===a.RANGE_SCALE_PERCENTAGE&&(e=t.startValue>0?2*t.startValue:0):e=t.startValue+(this.getRangeScale()===a.RANGE_SCALE_PERCENTAGE?25:Math.abs(this._targetValue/2)):e=1===this.getNumberOfRanges()?t.endValue:null===t.startValue?t.endValue/2:t.startValue+(t.endValue-t.startValue)/2,e},a.prototype._findIndexWhereToInsert=function(){var t=0,e=0;return this.getRanges().forEach((function(o,i){if(null!==o.startValue&&null!==o.endValue){var n=o.endValue-o.startValue;n>=e&&(t=i,e=n)}})),t},a.prototype._removeRanges=function(t){for(var e=0;e<t;e++){var o=Math.floor(this.getNumberOfRanges()/2);this._removeRange(o)}},a.prototype._removeRange=function(t){if(!n.isNumeric(t)||t<0||t>this.getNumberOfRanges())return this._dashboardApi.getFeature("Logger").error("Invalid index of range to remove",t),null;if(1===this.getNumberOfRanges())return this._dashboardApi.getFeature("Logger").error("Cannot remove the last range",t),null;var e=0===t||t===this.getNumberOfRanges()-1,o=this._getRanges().splice(t,1)[0],i=this._getRanges();return e||(t>0?i[t-1].endValue=o.endValue:i[t].startValue=o.startValue),o},a.prototype.removeRange=function(t,e){this._removeRange(t)&&this._updateConditionalFormattingProperty(e)},a.prototype.resetRanges=function(){var t=this.getNumberOfRanges(),e=this.getRangeScale();this._conditionalFormatting.rangeScale=a.RANGE_SCALE_PERCENTAGE,this._conditionalFormatting.ranges=a._getDefaultConditionalFormatting().ranges;var i={payloadData:{undoRedoTransactionId:o.uniqueId("_resetRanges_")}};this._setPaletteReversed(!1),this.setRangeScale(e,i),this.setNumberOfRanges(t,i),this._updateConditionalFormattingProperty(i)},a.prototype._updateConditionalFormattingProperty=function(t){var e=JSON.parse(JSON.stringify(this._conditionalFormatting));e.ranges.forEach((function(t){delete t.defaultColorId})),this._contentModel.setConditionalFormatting(e,t)},a.prototype.getSelectedRangeIndex=function(){return this._selectedRangeIndex>=this.getNumberOfRanges()&&(this._selectedRangeIndex=this.getNumberOfRanges()-1),this._selectedRangeIndex},a.prototype.setSelectedRangeIndex=function(t){this._selectedRangeIndex=t<0?0:t>=this.getNumberOfRanges()?this.getNumberOfRanges()-1:t},a.prototype._checkValidValueForRange=function(t,e,o){var r=this._getRangeFromIndex(o);if(!r)return this._dashboardApi.getFeature("Logger").error("Invalid index of range.",o),this._buildValidateResponse(!1,i.get("conditionalFormattingStepIndexInvalid"));var a={};if(e?(a.start=0===o?null:this._getRangeFromIndex(o-1).startValue,a.end=r.endValue):(a.start=r.startValue,a.end=o===this.getNumberOfRanges()-1?null:this._getRangeFromIndex(o+1).endValue),null===t)return this.getNumberOfRanges()>1&&null===a.start&&null===a.end||e&&0!==o||!e&&o!==this.getNumberOfRanges()-1?this._buildValidateResponse(!1,i.get("conditionalFormattingNonNumericValue")):e&&t!==a.start||!e&&t!==a.end?this._buildValidateResponse(!1,this._getOutOfBoundsErrorMessage(a)):this._buildValidateResponse(!0);if(!n.isNumeric(t))return this._buildValidateResponse(!1,i.get("conditionalFormattingNonNumericValue"));var s=parseFloat(t);return null!==a.start&&s<a.start||null!==a.end&&s>a.end?this._buildValidateResponse(!1,this._getOutOfBoundsErrorMessage(a)):this._buildValidateResponse(!0)},a.prototype._getOutOfBoundsErrorMessage=function(t){return null===t.start?i.get("conditionalFormattingValueShouldBeLower",{value:t.end}):null===t.end?i.get("conditionalFormattingValueSouldBeHigher",{value:t.start}):i.get("conditionalFormattingValueOutOfBoundsInvalid",{start:t.start,end:t.end})},a.prototype.checkValidStartValueForRange=function(t,e){return this._checkValidValueForRange(t,!0,e)},a.prototype.checkValidEndValueForRange=function(t,e){return this._checkValidValueForRange(t,!1,e)},a.prototype.getStartValueForRange=function(t){var e=this._getRangeFromIndex(t);return e?e.startValue:null},a.prototype.setStartValueForRange=function(t,e,o){var i=this.checkValidStartValueForRange(t,e);if(!i.isValid)return i;var n=this._getRangeFromIndex(e);if(null===t)n.startValue=null;else{var r=parseFloat(t);if(n.startValue=r,0!==e){var a=this._getRangeFromIndex(e-1);a&&(a.endValue=r)}}return this._updateConditionalFormattingProperty(o),this._buildValidateResponse(!0)},a.prototype.getEndValueForRange=function(t){var e=this._getRangeFromIndex(t);return e?e.endValue:null},a.prototype.setEndValueForRange=function(t,e,o){var i=this.checkValidEndValueForRange(t,e);if(!i.isValid)return i;var n=this._getRangeFromIndex(e);if(null===t)n.endValue=null;else{var r=parseFloat(t);if(n.endValue=r,e+1<this.getNumberOfRanges()){var a=this._getRangeFromIndex(e+1);a&&(a.startValue=r)}}return this._updateConditionalFormattingProperty(o),this._buildValidateResponse(!0)},a.prototype._buildValidateResponse=function(t,e){return{isValid:t,message:e}},a.prototype._getRangeFromIndex=function(t){var e=this._getRanges()[t];return e||(this._dashboardApi.getFeature("Logger").error("Could not find range with index "+t),null)},a.prototype._findPaletteColorFromColorId=function(t){return o.find(this._paletteColors,(function(e){return e.name===t}))},a.prototype._getHexFromColorId=function(t){var e=this._findPaletteColorFromColorId(t),o=e?e.hexValue:void 0,i=this._colorsFeature.getHexColorFromClassName(t),n=o||i;return!n&&this._paletteColors.length>0?this._paletteColors[this._paletteColors.length-1].hexValue:n||null},a.prototype._getColorIdForRangeObject=function(t){return t.userSetColorId&&(this._findPaletteColorFromColorId(t.userSetColorId)||this._colorsFeature.getHexColorFromClassName(t.userSetColorId))?t.userSetColorId:t.defaultColorId},a.prototype.setColorIdForRange=function(t,e,o){var i=this._getRangeFromIndex(e);i&&(i.userSetColorId=t,this._updateConditionalFormattingProperty(o))},a.prototype.getColorHexForRange=function(t){var e=this.getColorIdForRange(t);return e?this._getHexFromColorId(e):null},a.prototype.getColorIdForRange=function(t){var e=this._getRangeFromIndex(t);return e?this._getColorIdForRangeObject(e):null},a.prototype.getConditionalFormatting=function(){return JSON.parse(JSON.stringify(this._conditionalFormatting))},a.prototype.setConditionalFormatting=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments[1];return this._conditionalFormatting=null===t?a._getDefaultConditionalFormatting():Object.assign(a._getDefaultConditionalFormatting(),this._conditionalFormatting,JSON.parse(JSON.stringify(t))),this._processConditionalPalette().then(this._updateConditionalFormattingProperty.bind(this,e))},a.prototype.getShapeList=function(){var t=[];return this.ICON_MAP.forEach((function(e,o){t.push(o)})),t},a.prototype.getShapeForRange=function(t){var e=this._getRangeFromIndex(t);return e?e.shape||"none":(this._dashboardApi.getFeature("Logger").error("Could not find range with index "+t),null)},a.prototype.setShapeForRange=function(t,e){if(this.ICON_MAP.has(t)){var o=this._getRangeFromIndex(e);o?(o.shape=t,this._updateConditionalFormattingProperty()):this._dashboardApi.getFeature("Logger").error("Could not find range with index "+e)}else this._dashboardApi.getFeature("Logger").error("Invalid shape name: "+t)},a.prototype.getShapeDefinition=function(t){return t&&this.ICON_MAP.has(t)?this.ICON_MAP.get(t):null},a.prototype._getShapeIdForRangeObject=function(t){if(t.shape&&"none"!==t.shape){var e=this.getShapeDefinition(t.shape);return e?e.id:void 0}},a.prototype.getPropertyLayoutList=function(){var t=this,e=[{id:"color",type:"Section",label:i.get("sectionName_colorPalette"),position:1},{id:"conditionalColors",editor:{sectionId:"visualization.color",position:2,uiControl:{type:"Separator"}}},{id:"range",type:"Section",collapsible:!1,label:i.get("sectionName_range")},{id:"conditionalFormattingEnabled",editor:{sectionId:"visualization.color",readOnly:!this._hasTargetValue(),position:3,uiControl:{type:"ToggleButton",label:i.get("conditionalFormattingEnabled"),value:this.getCondtionalFormattingEnabled(),onChange:function(e,o){t.getAPI().setConditionalFormattingEnabled(o)}}}}];return this._shouldShowProperties()&&(e.push({id:"conditionalPalette",editor:{sectionId:"visualization.color",position:4,uiControl:{type:"NewPalette",sectionLabel:i.get("currentConditionalPalette"),newPaletteLabel:i.get("propNewColorPaletteLabel"),linkLabel:i.get("propColorPaletteChangeLabel"),ariaLabel:i.get("propColorPaletteChangeLabel"),includePatternPalettes:!1,paletteType:"ConditionalPalette",allowPaletteReverse:!1,open:!1,enableReorder:!1,sectionPosition:1,onChangePalette:function(e,o){t.getAPI().setPaletteId(o.id)},getPaletteId:this.getPaletteId.bind(this),isReversed:function(){return!1}}}}),e.push({id:"rangeScale",editor:{sectionId:"visualization.color.range",position:5,uiControl:{type:"DropDown",label:i.get("rangeScaleLabel"),options:[{label:i.get("rangeScaleNumeric"),value:a.RANGE_SCALE_NUMERIC},{label:i.get("rangeScalePercentage"),value:a.RANGE_SCALE_PERCENTAGE}],value:this.getRangeScale(),onChange:function(e,o){t.getAPI().setRangeScale(o)}}}}),e.push({id:"numberOfRanges",editor:{sectionId:"visualization.color.range",position:6,uiControl:{type:"DropDown",label:i.get("numberOfSteps"),options:[{label:"1",value:1},{label:"2",value:2},{label:"3",value:3}],value:this.getNumberOfRanges(),onChange:function(e,o){t.getAPI().setNumberOfRanges(o)}}}}),e.push({id:"conditionalFormatting",editor:{sectionId:"visualization.color.range",position:7,uiControl:{module:"dashboard-analytics/features/widget/conditionalFormatting/properties/ConditionalStepsProperty",conditionalFormattingFeature:this.getAPI(),dashboardApi:this._dashboardApi,paletteColors:this._paletteColors}}})),e},a.prototype._isNewConditionalFormatFeature=function(){return!this._dashboardApi.getGlassCoreSvc(".FeatureChecker").checkValue("dashboard","condFormat","disabled")},a}(r);return a.RANGE_SCALE_PERCENTAGE="%",a.RANGE_SCALE_NUMERIC="#",a})),define("dashboard-analytics/lib/@waca/dashboard-common/dist/api/impl/CallbackInvoker",[],(function(){return function(){function t(e){_classCallCheck(this,t),this._logger=e.logger,this._callbacks={}}return t.prototype.registerCallback=function(t,e){"string"!=typeof t?this._logger.error("undefined or invalid id when registering a method",t):"function"!=typeof e?this._logger.error("undefined or invalid function when registering it",e):(void 0===this._callbacks[t]&&(this._callbacks[t]=[]),this._callbacks[t].push(e))},t.prototype.removeCallback=function(t,e){if("string"!=typeof t)this._logger.error("undefined or invalid id when removing a method",t);else if(void 0===this._callbacks[t])this._logger.info("no callback is registered with the provided id",t);else if("function"!=typeof e)this._logger.error("undefined or invalid function when removing it",e);else for(var o=0;o<this._callbacks[t].length;)this._callbacks[t][o]===e?this._callbacks[t].splice(o,1):o++},t.prototype.invokeCallbacks=function(t,e){if("string"!=typeof t)this._logger.error("undefined or invalid id when invoking its associated methods",t);else if(void 0===this._callbacks[t])this._logger.info("no callback is registered with the provided id",t);else{var o=this;this._callbacks[t].forEach((function(t){try{t(e)}catch(t){o._logger.error("error thrown when invoking registered method",t)}}))}},t}()})),define("dashboard-analytics/features/widget/renderSequence/api/RenderContextAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.getSequenceId=function(){},t.prototype.getData=function(){},t}()})),define("dashboard-analytics/features/widget/renderSequence/s12y/RenderTaskExecInfo",[],(function(){return function(){function t(e){_classCallCheck(this,t),this._id=e.id,this._startTime=Date.now(),this._endTime=void 0,this._error=void 0,this._data=new Map([]),this._requestTimeInfo=[]}return t.prototype.getId=function(){return this._id},t.prototype.setEndTime=function(){this._endTime=Date.now()},t.prototype.setError=function(t){this._error=t},t.prototype.getDuration=function(){return this._endTime?this._endTime-this._startTime:Date.now()-this._startTime},t.prototype.getRequestDurations=function(){var t=[];return this._requestTimeInfo.forEach((function(e){"string"==typeof e?t.push(parseInt(e.replace(/^.*;/,"").trim().replace(/elapsed=/,""),10)):t.push(NaN)})),t},t.prototype.addRequestTimeInfo=function(t){this._requestTimeInfo.push(t)},t.prototype.toJSON=function(){var t={"task id":this._id,"task start time":this._startTime,"task end time":this._endTime,duration:this.getDuration(),error:this._error?this._error.toJson():void 0,requestTimes:this.getRequestDurations()};return this._data.forEach((function(e,o){e&&"function"==typeof e.toJSON?t[o]=e.toJSON():t[o]=e})),t},t.prototype.setData=function(t,e){if("string"!=typeof t)throw new Error("Invalid or undefined key: ["+t+"]");this._data.set(t,e)},t.prototype.getData=function(t){return this._data.get(t)},t}()})),define("dashboard-analytics/features/widget/renderSequence/s12y/RenderSequenceInfo",["underscore","./RenderTaskExecInfo"],(function(t,e){return function(){function o(t){_classCallCheck(this,o),this._id=t.id,this._allTaskInfo={}}return o.prototype.getId=function(){return this._id},o.prototype.addTaskInfo=function(t){var o=new e({id:t.taskId});return this._allTaskInfo[t.taskId]=o,o},o.prototype.getTaskInfo=function(t){return this._allTaskInfo[t]},o.prototype.toJSON=function(){return{id:this._id,tasks:t.values(this._allTaskInfo).map((function(t){return t.toJSON()}))}},o}()})),define("dashboard-analytics/features/widget/renderSequence/s12y/ServiceabilityRenderingInfo",["../../../../api/impl/serviceability/nls/StringResources"],(function(t){return function(){function e(t){_classCallCheck(this,e),this._logger=t,this._renderingInfo=void 0}return e.prototype.getCurrentRendering=function(){return this._renderingInfo},e.prototype.setCurrentRendering=function(t){this._renderingInfo=t},e.prototype.getLastRendering=function(){return this._lastRendering},e.prototype.setLastRendering=function(t){this._lastRendering=t},e.prototype.toJSON=function(){return{renderingInfo:{current:this._renderingInfo?this._renderingInfo.toJSON():{},last:this._lastRendering?this._lastRendering.toJSON():{}}}},e.prototype.toUIJSON=function(){var e=[],o=void 0;if(void 0===this.getLastRendering()){o=this.getCurrentRendering().getDuration();var i=this.getCurrentRendering().getRenderSequenceWithData();void 0===i||(e=i.getTaskInfo("data").getRequestDurations()),o=o+" "+t.get("renderInProgress")}else{o=this.getLastRendering().getDuration(),e=this.getLastRendering().getRenderSequenceWithData().getTaskInfo("data").getRequestDurations()}var n=[[t.get("liveWidgetTotalTime"),o]];return this._addRequestDurations(n,e),[{sectionName:t.get("performanceSection"),sectionValues:[{fieldName:t.get("durationField"),fieldValue:{cellValue:function(t,e){return n[t][e]},columnLength:2,rowLength:n.length},type:"SimpleTable"}]}]},e.prototype._addRequestDurations=function(e,o){return 0===o.length?e.push([t.get("singleQueryTime"),t.get("infoNotAvailable")]):o.forEach((function(i,n){var r="";r=1===o.length?t.get("singleQueryTime"):t.get("multipleQueryTime",{name:n+1}),isNaN(i)?e.push([r,t.get("infoNotAvailable")]):e.push([r,i])})),e},e}()})),define("dashboard-analytics/features/widget/renderSequence/s12y/ServiceabilitySQLInfo",["../../../../api/impl/serviceability/nls/StringResources","react","ca-ui-toolkit","react-dom"],(function(t,e,o,i){var n=o.Dialog,r=o.Button,a=o.ToggleSwitchSection,s=o.FlexItem,l=o.FlexLayout,u=o.TextArea,c=o.TruncatedText,d=o.Tabs,p=o.TabPanel,f=e.useState,h=e.useEffect;return function(){function o(t,e){_classCallCheck(this,o),this.visApi=t,this.queryExecution=e,this._widgetLastCognosQuery=void 0,this._widgetLastNativeQuery=void 0,this._widgetLastMDXQuery=void 0,this._shouldFetchQuery=!1,this.el$=void 0}return o.prototype.showQueryDialog=function(){var t=this;this.el$=document.createElement("div"),this.el$.classList.add("sql-popover-container"),document.body.appendChild(this.el$);var o=this.widgetsLastCognosQuery||this.widgetsLastNativeQuery||this.widgetsLastMDXQuery,n=this.QueryDialog,r=this.QueryDialogBody;i.render(e.createElement(n,{hasQueryInfo:o,onClose:function(e){return t.removeSQLDialog(e)}},e.createElement(r,{cognosSQL:this.widgetsLastCognosQuery,nativeSQL:this.widgetsLastNativeQuery,MDXQuery:this.widgetsLastMDXQuery})),this.el$)},o.prototype.removeSQLDialog=function(t){t&&t.stopPropagation(),this.el$&&(i.unmountComponentAtNode(this.el$),this.el$.remove(),this.el$=void 0)},o.prototype.QueryDialogBody=function(o){var i=function(o){return e.createElement(u,{placeholder:t.get("interactToTriggerQuery"),disabled:!1,rows:20,resize:!1,value:o,style:{width:"100%"},className:"sql-textarea"})},n=o.cognosSQL,r=o.nativeSQL,a=o.MDXQuery,s=void 0;n?s="cognossql":r?s="nativesql":a&&(s="mdxquery");var l=f(s),c=l[0],h=l[1];return n||r||a?e.createElement(d,{onChange:function(t){return h(t)},selected:c,vertical:!0,linePosition:"right"},n&&e.createElement(p,{id:"cognossql",label:"Cognos SQL"},i(n)),r&&e.createElement(p,{id:"nativesql",label:"Native SQL"},i(r)),a&&e.createElement(p,{id:"mdxquery",label:"MDX"},i(a))):e.createElement((function(){return e.createElement("div",{"data-id":"s12y-sqlinfo-error"},t.get("queryInfoNotAvailable"))}),null)},o.prototype.QueryDialog=function(o){var i=o.onClose,r=o.hasQueryInfo,a=o.children;return e.createElement(n,{size:"large",width:"80%",className:"sql-textarea-dialog"},e.createElement(n.Header,null,e.createElement(c,{value:t.get("SQLMDX")})),e.createElement(n.Body,null,e.createElement(l,null,e.createElement(s,{overflow:"auto",style:{width:"100%"}},a))),e.createElement(n.Footer,null,r&&e.createElement(n.Button,{label:t.get("copy"),primary:!0,className:"query-dialog-copy-button",onClick:function(){document.body.querySelector(".sql-textarea textarea").select(),document.execCommand("copy")}}),e.createElement(n.Button,{label:t.get("close"),onClick:function(t){return i(t)},className:"query-dialog-close-button"})))},o.prototype.QuerySection=function(o){var i=o.initialToggleState,n=o.onToggle,u=o.openDialog,c=f(i),d=c[0],p=c[1];h((function(){n(d,_)}));var g=f(!i),m=g[0],_=g[1];return e.createElement(l,{direction:"column"},e.createElement(s,null,e.createElement(a,{label:t.get("fetchQuery"),rtl:!1,className:"fetch-sql-toggle",checked:d,onChange:function(){return p(!d)}})),e.createElement(s,null,e.createElement(r,{label:t.get("showSQLMDX"),disabled:m,className:"sql-mdx-dialog-button",onClick:function(){return u()},intent:"primary"})))},o.prototype.toJSON=function(){return{sqlQuery:this.widgetsLastCognosQuery}},o.prototype.toUIJSON=function(){var o=this,i=this.QuerySection,n=e.createElement(i,{initialToggleState:this.shouldFetchQuery,onToggle:function(t,e){if(o.shouldFetchQuery=t,t){if(!o.widgetsLastNativeQuery&&!o.widgetsLastCognosQuery){o.queryExecution&&o.queryExecution.addRequestOptions({qfbMode:"validate"}),o.visApi.reRender({sameQueryValidateMode:!0}).then((function(){o.queryExecution&&o.queryExecution.removeRequestOptions(["qfbMode"]),e(!1)}))}}else o.widgetsLastCognosQuery=null,o.widgetsLastNativeQuery=null,e(!0)},openDialog:function(){return o.showQueryDialog()}});return[{sectionName:t.get("query"),sectionValues:[{fieldName:t.get("queryInfo"),node:n,type:"ReactNode"}],properties:{open:!1}}]},_createClass(o,[{key:"widgetsLastCognosQuery",set:function(t){this._widgetLastCognosQuery=t},get:function(){return this._widgetLastCognosQuery}},{key:"widgetsLastNativeQuery",set:function(t){this._widgetLastNativeQuery=t},get:function(){return this._widgetLastNativeQuery}},{key:"widgetsLastMDXQuery",get:function(){return this._widgetLastMDXQuery},set:function(t){this._widgetLastMDXQuery=t}},{key:"shouldFetchQuery",get:function(){return this._shouldFetchQuery},set:function(t){this._shouldFetchQuery=t}}]),o}()})),define("dashboard-analytics/features/widget/renderSequence/impl/RenderContextImpl",[],(function(){return function(){function t(e){_classCallCheck(this,t),this._renderContext=e.renderContext,this._logger=e.logger}return t.prototype.getSequenceId=function(){return this._renderContext.id},t.prototype.getData=function(t){return this._renderContext[t]},t}()})),define("dashboard-analytics/features/widget/renderSequence/s12y/RenderingInfo",[],(function(){return function(){function t(e){var o=e.renderId;_classCallCheck(this,t),this._startTime=Date.now(),this._withData=!1,this._renderSequenceWithData=void 0,this._sequenceIds=[o]}return t.prototype.getStartTime=function(){return this._startTime},t.prototype.getEndTime=function(){return this._endTime},t.prototype.setEndTime=function(t){this._endTime=t},t.prototype.setStartTime=function(t){this._startTime=t},t.prototype.getLastSequenceId=function(){return this._sequenceIds[this._sequenceIds.length-1]},t.prototype.getDuration=function(){return this._endTime?this._endTime-this._startTime:Date.now()-this._startTime},t.prototype.setWithData=function(t){this._withData=t},t.prototype.isWithData=function(){return this._withData},t.prototype.registerSequenceId=function(t){return this._sequenceIds.push(t)},t.prototype.getRenderSequenceWithData=function(){return this._renderSequenceWithData},t.prototype.setRenderSequenceWithData=function(t){this._renderSequenceWithData=t},t.prototype.getSequenceIds=function(){return this._sequenceIds},t.prototype.toJSON=function(){return{"start time":this.getStartTime(),"end time":this.getEndTime(),totalRenderingTime:this.getDuration(),sequenceIds:this.getSequenceIds(),sequenceWithData:this.getRenderSequenceWithData()?this.getRenderSequenceWithData().toJSON():{}}},t}()})),define("dashboard-analytics/features/widget/renderSequence/impl/RenderSequenceImpl",["underscore","../../../../lib/@waca/dashboard-common/dist/api/impl/CallbackInvoker","../../../../lib/@waca/dashboard-common/dist/core/APIFactory","../../../../lib/@waca/dashboard-common/dist/api/Error","../api/RenderContextAPI","../s12y/RenderSequenceInfo","../s12y/ServiceabilityRenderingInfo","../s12y/ServiceabilitySQLInfo","./RenderContextImpl","../s12y/RenderingInfo"],(function(t,e,o,i,n,r,a,s,l,u){var c,d;return d=c=function(e){function c(t){var o=t.dashboardAPI,i=t.features,n=t.content;_classCallCheck(this,c);var r=o.getService(o.GLOBAL_SERVICES.LOGGER),a=_possibleConstructorReturn(this,e.call(this,{logger:r}));a._logger=r,a._s12yAPI=i.Serviceability,a._renderStepProviders=[],a._currentRenderContext={},a.content=n;var s=a;return a.onStartTaskExecution((function(t){s.s12yOnStartTaskExecution(t)})),a.onResolveTaskExecution((function(t){s.s12yOnResolveTaskExecution(t)})),a.onRejectTaskExecution((function(t){s.s12yOnRejectTaskExecution(t)})),a}return _inherits(c,e),c.prototype.registerRenderEngine=function(t){this._engine=t},c.prototype.triggerRenderSequence=function(t){var e=this;return this._currentRenderContext={},this._s12yStartRenderSequence(t),this._engine.process(t).then((function(o){return e._s12yResolveRenderSequence(t),o})).catch((function(o){throw e._s12yResolveRenderSequence(t),o}))},c.prototype._s12yStartRenderSequence=function(t){try{var e=this._s12yAPI.getContentInfo();if(e){var o=e.getData(c.S12Y_SQL_INFO);if(!o){var i=this.content.getFeature("DataQueryExecution"),n=this.content.getFeature("WidgetAPI.deprecated").getVisApi();o=new s(n,i),e.setData(c.S12Y_SQL_INFO,o)}var r=e.getData(c.S12Y_RENDERING_INFO);r||(r=new a(this._logger),e.setData(c.S12Y_RENDERING_INFO,r));var l=r.getCurrentRendering();void 0===l?(l=new u({renderId:t.renderId}),r.setCurrentRendering(l)):l.registerSequenceId(t.renderId)}else this._logger.info("Serviceability feature is not enabled")}catch(e){this._logger.error("Failed to track RenderingInfo for renderId ["+t.renderId+"]",e)}},c.prototype._s12yResolveRenderSequence=function(t){try{var e=this._s12yAPI.getContentInfo();if(e){var o=e.getData(c.S12Y_RENDERING_INFO),i=o.getCurrentRendering();i&&i.getLastSequenceId()===t.renderId&&(i.setEndTime(Date.now()),i.isWithData()&&o.setLastRendering(i),o.setCurrentRendering(void 0))}}catch(e){this._logger.error("Failed to track RenderingInfo for renderId ["+t.renderId+"]",e)}},c.prototype.getCurrentRenderContext=function(t){return this._currentRenderContext[t]},c.prototype.startTaskExecution=function(t){var e=t.task.instance.getId();try{if(!0===t.task.instance._isStepComplete(t.renderContext,e))this._logger.info("execution of task ["+e+"] is ignored for s12y as it is already complete");else{this._setSQLFetchParams(t.renderContext);var o=this._createTaskRenderContext(t.renderContext);this.invokeCallbacks(c.START_TASK_EXECUTION,{renderContext:o,taskId:e})}}catch(t){this._logger.error("fail to check if task ["+e+"] is complete",t)}return t.task.instance.process(t.renderContext)},c.prototype.resolveTaskExecution=function(t){var e=t.task.instance.getId(),o=this._createTaskRenderContext(t.renderContext);this.invokeCallbacks(c.RESOLVE_TASK_EXECUTION,{renderContext:o,taskId:e}),t.taskExecution.resolve(),this._currentRenderContext[t.task.id]=o},c.prototype.rejectTaskExecution=function(t){var e=this._createTaskRenderContext(t.renderContext);this.invokeCallbacks(c.REJECT_TASK_EXECUTION,{error:t.error,renderContext:e,taskId:t.task.instance.getId()}),t.taskExecution.reject(t.error),this._currentRenderContext[t.task.id]=e},c.prototype.onStartTaskExecution=function(t){this.registerCallback(c.START_TASK_EXECUTION,t)},c.prototype.onResolveTaskExecution=function(t){this.registerCallback(c.RESOLVE_TASK_EXECUTION,t)},c.prototype.onRejectTaskExecution=function(t){this.registerCallback(c.REJECT_TASK_EXECUTION,t)},c.prototype.registerRenderStepProvider=function(t){if(t){if("function"!=typeof t.getRenderStepList)throw new Error('the provide must implement "getRenderStepList()" ');this._renderStepProviders.push(t)}},c.prototype.getProvidersRenderStepList=function(){var t=this,e=[];return this._renderStepProviders.forEach((function(o){try{var i=o.getRenderStepList();Array.isArray(i)?e.push.apply(e,i):t._logger.warn("Provide render steps are ignored. The render step provider did not return an array. ")}catch(e){t._logger.error("An error while getting the render step list from the provider",e)}})),e},c.prototype._createTaskRenderContext=function(t){var e=new l({logger:this._logger,renderContext:t});return o.createAPI(e,[n])},c.prototype.s12yOnStartTaskExecution=function(t){var e=this._s12yAPI.getContentInfo();if(e){var o=t.renderContext.getSequenceId(),i=e.getData(c.S12Y_RENDERING_INFO).getCurrentRendering();if(i){i.setWithData(!0);var n=i.getRenderSequenceWithData();this._isNewerSequence(o,n)&&((n=new r({id:o})).addTaskInfo({taskId:t.taskId}),i.setRenderSequenceWithData(n))}}else this._logger.info("Serviceability feature is not enabled")},c.prototype.s12yOnResolveTaskExecution=function(t){var e=this._setTaskExecEndTime(t);this._setQueryFeedbackSQLResult(t.renderContext.getData(t.taskId)),e&&this._setDataResult(e,t.renderContext.getData(t.taskId))},c.prototype.s12yOnRejectTaskExecution=function(t){var e=this._setTaskExecEndTime(t);e&&this._setTaskExecError(e,t.error)},c.prototype._setQueryFeedbackSQLResult=function(e){var o=this._s12yAPI.getContentInfo();if(o){var i=o.getData(c.S12Y_SQL_INFO);t.isEmpty(e)||e.getQueryResultIdList().forEach((function(t){var o=e.getResult(t);i.widgetsLastCognosQuery=o.getPropertyValue("QueryFeedback.cognosSQL"),i.widgetsLastNativeQuery=o.getPropertyValue("QueryFeedback.nativeSQL"),i.widgetsLastMDXQuery=o.getPropertyValue("QueryFeedback.MDX")}))}else this._logger.info("Serviceability feature is not enabled")},c.prototype._setSQLFetchParams=function(t){var e=this._s12yAPI.getContentInfo();e?(t.extraInfo=t.extraInfo||{},e.getData(c.S12Y_SQL_INFO).shouldFetchQuery&&(t.extraInfo.dataQueryParams={qfb:"nativeCommandText,nativeCommandType,CognosCommandText"})):this._logger.info("Serviceability feature is not enabled")},c.prototype._isNewerSequence=function(t,e){return!e||t>e.getId()},c.prototype._setTaskExecEndTime=function(t){var e=void 0,o=this._s12yAPI.getContentInfo();if(o){var i=t.renderContext.getSequenceId(),n=o.getData(c.S12Y_RENDERING_INFO).getCurrentRendering();if(n){var r=n.getRenderSequenceWithData();r&&i===r.getId()?(e=r.getTaskInfo(t.taskId)).setEndTime():this._logger.info("s12y - setting end time - task ["+t.taskId+"] sequence "+i+" from is ignored by the registered s12y sequence info",r)}}else this._logger.info("Serviceability feature is not enabled");return e},c.prototype._setTaskExecError=function(t,e){var o="dwErrorRenderingVisualization";e&&(e.msg?o=e.msg:e.message&&(o=e.message));var n=e?e.errorInfo:void 0;t.setError(new i({msg:o,params:{errorInfo:n}})),n&&"function"==typeof n.getResponseHeader&&t.addRequestTimeInfo(n.getResponseHeader("x-ca-requesttime"))},c.prototype._setDataResult=function(e,o){if(e&&!t.isEmpty(o)){o.getQueryResultIdList().forEach((function(t){var i=o.getResult(t).getPropertyValue("RequestTime.internal");e.addRequestTimeInfo(i)}));var i={toJSON:function(){var t=[];return o.getQueryResultIdList().forEach((function(e){var i=o.getResult(e);t.push({spec:JSON.parse(i.getPropertyValue("QuerySpec.internal")),data:JSON.parse(i.getPropertyValue("RawData.internal")),requestTime:i.getPropertyValue("RequestTime.internal")})})),t}};e.setData("queryResults",i)}},c}(e),c.START_TASK_EXECUTION="startTaskExecution",c.RESOLVE_TASK_EXECUTION="resolveTaskExecution",c.REJECT_TASK_EXECUTION="rejectTaskExecution",c.LAST_RENDER_WITH_DATA="lastRenderingWithDataRequest",c.S12Y_RENDERING_INFO="ServiceabilityRenderingInfo",c.S12Y_SQL_INFO="ServiceabilitySQLInfo",d})),define("dashboard-analytics/features/widget/renderSequence/api/RenderSequenceAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.onStartTaskExecution=function(){},t.prototype.onResolveTaskExecution=function(){},t.prototype.onRejectTaskExecution=function(){},t.prototype.registerRenderStepProvider=function(){},t}()})),define("dashboard-analytics/features/widget/renderSequence/api/internal/RenderSequenceInternalAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.startTaskExecution=function(){},t.prototype.resolveTaskExecution=function(){},t.prototype.rejectTaskExecution=function(){},t.prototype.getProvidersRenderStepList=function(){},t.prototype.registerRenderEngine=function(){},t.prototype.triggerRenderSequence=function(){},t.prototype.getCurrentRenderContext=function(){},t}()})),define("dashboard-analytics/features/widget/renderSequence/RenderSequenceFeature",["../../../lib/@waca/dashboard-common/dist/core/APIFactory","./impl/RenderSequenceImpl","./api/RenderSequenceAPI","./api/internal/RenderSequenceInternalAPI"],(function(t,e,o,i){return function(){function n(r){_classCallCheck(this,n);var a=new e(r);this._publicAPI=t.createAPI(a,[o]),this._internalAPI=t.createAPI(a,[o,i])}return n.prototype.getAPI=function(t){return"internal"===t?this._internalAPI:this._publicAPI},n}()})),define("dashboard-analytics/features/widget/queryResultOverride/api/QueryResultOverrideAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.setQueryResults=function(){},t}()})),define("dashboard-analytics/features/widget/queryResultOverride/QueryResultOverride",["../renderSequence/api/RenderStepProviderAPI","./api/QueryResultOverrideAPI","../../../lib/@waca/dashboard-common/dist/core/APIFactory"],(function(t,e,o){return function(){function i(n){_classCallCheck(this,i),this._content=n.content,this._api=o.createAPI(this,[t,e])}return i.prototype.initialize=function(){this._content.getFeature("RenderSequence").registerRenderStepProvider(this.getAPI())},i.prototype.getAPI=function(){return this._api},i.prototype.destroy=function(){this._content=null},i.prototype.setQueryResults=function(t){this._queryResults=t},i.prototype.getRenderStepList=function(){return[{id:"data",dependencies:["predictSuggestions","keyDrivers"],modulePath:"dashboard-analytics/features/widget/queryResultOverride/DataTaskOverride",moduleOptions:{queryResults:this._queryResults}}]},i}()})),define("dashboard-analytics/features/widget/queryResultOverride/DataTaskOverride",["dashboard-analytics/lib/@waca/core-client/js/core-client/ui/core/Class","dashboard-analytics/visualizations/renderer/sequence/DataTask"],(function(t,e){"use strict";var o=e.extend({init:function(t,e){o.inherited("init",this,arguments),this._queryResults=e.queryResults},process:function(t){var e=this,o=this.getRenderState().getCurrentContextData("visView");return!o||this._isStepComplete(t,"data")?Promise.resolve(t):(o.preDataReady(),Promise.resolve().then((function(){return e._handleRenderContextForConditionalPalette(t)})).then((function(){return e._queryResults&&(o.setRenderingNewData(!0),e._completeStep(t,"data",e._queryResults)),t})))}});return o})),define("dashboard-analytics/features/widget/expandCollapseAction/ExpandCollapsePropertyProvider",["../../../lib/@waca/dashboard-common/dist/core/APIFactory","../../../lib/@waca/dashboard-common/dist/api/PropertiesProviderAPI","../../../widgets/livewidget/nls/StringResources"],(function(t,e,o){return function(){function i(t){_classCallCheck(this,i),this.content=t.content,this.content&&this.content.getFeature("Properties").registerProvider(this.getAPI()),this.dashboard=t.dashboardAPI}return i.prototype.getAPI=function(){return this._api||(this._api=t.createAPI(this,[e])),this._api},i.prototype.destroy=function(){this.dashboard=null,this.content=null},i.prototype.getPropertyLayoutList=function(){return[]},i.prototype.getPropertyList=function(){var t=this,e=[];return this._isSupported()&&e.push({id:"expandCollapse",editor:{sectionId:"visualization.chart",uiControl:{type:"ToggleButton",defaultValue:!0,label:o.get("expandCollapse"),onChange:function(e,o){t.content.setPropertyValue(e,o)}}},onPropertyChange:{refresh:{data:!0}},defaultValue:!0}),e},i.prototype._isSupported=function(){if(!this.dashboard.getGlassCoreSvc(".FeatureChecker").checkValue("dashboard","expandCollapse","disabled")){var t=this.content.getFeature("Visualization");return t&&this._isSupportedVisType(t)&&this._isOlap(t)}return!1},i.prototype._isSupportedVisType=function(t){return"Crosstab"===t.getType()},i.prototype._isOlap=function(t){var e=t.getSlots().getMappedSlotList(),o=e&&e[0]&&e[0].getDataItemList()[0];return o&&o.getMetadataColumn().isOlapColumn()||!1},i}()})),define("dashboard-analytics/features/widget/layers",["./lassoSelectAction/LassoSelectAction","./jumpToAction/JumpToAction","./changeVisTypeAction/ChangeVisTypeAction","./suppressionAction/SuppressionAction","./suppressionAction/SuppressionPropertyProvider","./conditionalFormatting/api/impl/DeprecatedConditionalFormatting","./renderSequence/RenderSequenceFeature","./queryResultOverride/QueryResultOverride","./queryResultOverride/DataTaskOverride","./expandCollapseAction/ExpandCollapsePropertyProvider"],(function(){})),define("dashboard-analytics/datatray/ExtensionBaseController",[],(function(){"use strict";return function(){function t(e,o,i){_classCallCheck(this,t),this.dashboard=e,this.appSettings=o,this.eventRouter=i}return t.prototype._getSelectedContent=function(){var t=this.dashboard.getCanvas().getSelectedContentList();return t&&t.length>0?t[t.length-1]:null},t.prototype.getTabContrib=function(){return Promise.resolve()},t.prototype.select=function(){return Promise.resolve()},t}()})),define("dashboard-analytics/datatray/ExtensionBaseView",["react","react-dom","ca-ui-toolkit","jquery","../lib/@waca/core-client/js/core-client/ui/core/View"],(function(t,e,o,i,n){var r=o.ProgressIndicator,a=function(o){function n(t){return _classCallCheck(this,n),_possibleConstructorReturn(this,o.call(this,t))}return _inherits(n,o),n.prototype.init=function(t){o.prototype.init.call(this,t),this.containerNode=t.containerNode},n.prototype._setLoading=function(){e.render(t.createElement(r,{variant:"bar"}),this.containerNode)},n.prototype._removeLoading=function(){e.unmountComponentAtNode(this.containerNode)},n.prototype.remove=function(){o.prototype.remove.call(this)},n.clearContainer=function(t){e.unmountComponentAtNode(t),i(t).empty()},n}(n);return a.CELL={style:{left:{padding:"0px 8px",textAlign:"left",width:"100%"},right:{padding:"0px 8px",textAlign:"right",width:"100%"},center:{padding:"0px 8px",textAlign:"center",width:"100%"}}},a})),define("text!dashboard-analytics/datatray/Datasources/templates/EmptyDataSet.html",[],(function(){return'<div class="emptyTableContent"><div class="emptyTableImage ba-theme-waca"></div><div class="emptyTableText" role="option" tabindex="-1">{{=it.nls.get(\'previewUnavailable\')}}</div></div>'})),define("dashboard-analytics/datatray/Datasources/DataSourcesView",["jquery","doT","../ExtensionBaseView","text!./templates/EmptyDataSet.html","../../dataSources/nls/StringResources"],(function(t,e,o,i,n){"use strict";return function(r){function a(t){return _classCallCheck(this,a),_possibleConstructorReturn(this,r.call(this,t))}return _inherits(a,r),a.renderEmptyDataset=function(r){o.clearContainer(r);var a=e.template(i)({nls:n});return t(r).html(a),Promise.resolve(r)},a.renderMUIGrid=function(t,e,i,n){return o.clearContainer(i),t.getShapingUIUtils().renderGrid(t,e,i,null,n).then((function(){return i}))},a}(o)})),define("dashboard-analytics/datatray/Datasources/DataSourcesController",["underscore","../ExtensionBaseController","./DataSourcesView"],(function(t,e,o){"use strict";var i="package";return function(e){function n(t,i,r){_classCallCheck(this,n);var a=_possibleConstructorReturn(this,e.call(this,t,i,r));return a.dataSourcesFeature=a.dashboard.getFeature("DataSources"),a.emptyDatasetRenderer=o.renderEmptyDataset,a.MUIDataGridRender=o.renderMUIGrid,a}return _inherits(n,e),n.prototype.getTabContrib=function(e,o,i){var n=this;return Promise.all([this._prepareDataSources(),this._getSelectedContent()]).then((function(r){var a=r[0],s=r[1];if(!a.length)return null;var l=null,u=null;switch(o){case"dataSourcePanel:dataSourceSelected":e&&e.sender?(l=t.findWhere(a,{id:e.sender})).isSelectedOnTrayRender=!0:(l=t.findWhere(a,{id:i}))&&(l.isSelectedOnTrayRender=!0);break;case"shapingmodel:changed":if(!(u=n.dashboard.getActiveDataSourceId()))throw new Error("shapingmodel:changed triggered, but there is no active data source");l=t.findWhere(a,{id:u}),i===u&&(l.select=n.select.bind(n,{id:u,forceRender:!0}),l.isSelectedOnTrayRender=!0);break;case"widget:rerendered":(l=t.findWhere(a,{id:i}))&&(l.isSelectedOnTrayRender=!0);break;case"splitterPanel:show":case"remove":(l=t.findWhere(a,{id:i}))&&(l.isSelectedOnTrayRender=!0,l.select=n.select.bind(n,{id:i,forceRender:!0}))}if(!l&&!s){var c=n.dashboard.getActiveDataSourceId();(l=c?t.findWhere(a,{id:c}):a[0]).isSelectedOnTrayRender=!0}return a}))},n.prototype._prepareDataSources=function(){var t=this,e=[],o=[];return(this.dataSourcesFeature.getDataSourceList()||[]).forEach((function(i){var n=i.getId(),r={type:i.getType(),id:n,select:t.select.bind(t,{id:n})};o.push(r),e.push(function(t,e){return t.getLocalizedName().then((function(o){e.name=o,e.state=t.getState()})).fail((function(){e.state="error"}))}(i,r))})),Promise.all(e).then((function(){return o}))},n.prototype.render=function(t,e){var o=this,n=this.dataSourcesFeature.getDataSource(t.id);return n&&n.getType()===i?this.emptyDatasetRenderer(e):n.getModule().then((function(t){var i=!o.appSettings.options||!o.appSettings.options.config||"true"==o.appSettings.options.config.enableDataQuality;return o.MUIDataGridRender(t,i,e,o.dashboard)}))},n.prototype.select=function(t,e,o){return e!==t.id||t.forceRender?(this.dashboard.getFeature("DataSources").setActiveDataSourceId(t.id),this.eventRouter.trigger("dataSourceGrid:dataSourceSelected",{sender:t.id}),this.render(t,o)):Promise.resolve(!1)},n}(e)})),define("dashboard-analytics/datatray/ForecastDetails/ForecastDetailsView",["react","react-dom","ca-ui-toolkit","jquery","underscore","../ExtensionBaseView"],(function(t,e,o,i,n,r){var a=o.Grid,s=o.GridCell;return function(o){function i(t){return _classCallCheck(this,i),_possibleConstructorReturn(this,o.call(this,t))}return _inherits(i,o),i.prototype.render=function(t,e){return this.table=e,this.containerNode=t,r.clearContainer(this.containerNode),this.containerNode.classList.add("ba-theme-waca"),this._renderReactGrid()},i.prototype._renderReactGrid=function(){var o=this;return new Promise((function(i){var n={numColumns:o.table.getNumColumns(),numRows:o.table.getNumRows(),fixedRows:o.table.getNumHeaderRows(),fixedColumns:o.table.getNumFixedColumns(),autoMeasureColumnWidth:!0,autoMeasureRowHeight:!0,dataCellRenderer:o._cellRenderer.bind(o,o.table.getCell.bind(o.table)),fixedRowCellRenderer:o._cellRenderer.bind(o,o.table.getHeader.bind(o.table)),fixedColumnCellRenderer:o._cellRenderer.bind(o,o.table.getFixedColumn.bind(o.table))};e.render(t.createElement(a,n),o.containerNode,(function(){return i(n)}))}))},i.prototype._cellRenderer=function(t,e,o,i){var r=t(e,o);return i.style=n.extend({},i.style,r.style.gridCell||{}),this._getCellComponent(r.value,i,r.style.cellValue.alignment)},i.prototype._getCellComponent=function(e,o,i){return t.createElement(s,o,t.createElement("div",{style:r.CELL.style[i||"left"]},e||""))},i}(r)})),define("dashboard-analytics/datatray/ForecastDetails/Result",["underscore","../../dataSources/nls/StringResources","../../lib/@waca/core-client/js/core-client/i18n/Formatter"],(function(t,e,o){var i={border:"none",fontWeight:"700",padding:"8px"},n=new RegExp("[-+]?[0-9]*.?[0-9]+([eE][-+]?[0-9]+)","g"),r=[{style:{header:{left:"0px"}},value:e.get("forecastDetailsForecastLabel")},{},{style:{header:{left:"400px",width:"200px"}},value:e.get("forecastDetailsModelLabel")},{},{},{},{},{},{style:{header:{left:"1250px",width:"220px"}},value:e.get("forecastDetailsQualityMetricLabel")},{},{},{},{},{},{},{style:{header:{left:"2365px",width:"200px"}},value:e.get("forecastDetailsSmoothingCoefLabel")},{},{},{},{},{},{},{style:{header:{left:"3550px",width:"200px"}},value:e.get("forecastDetailsDiagnostics")},{},{}],a=[{path:["status"],value:e.get("forecastDetailsStatusLabel")},{},{path:["model","trend","type"],value:e.get("forecastDetailsTrendLabel")},{path:["model","season","type"],value:e.get("forecastDetailsSeasonLabel")},{},{path:["accuracy","accuracy"],value:e.get("forecastDetailsAccuracyPercentLabel"),format:{type:"percent",minimumFractionDigits:1},style:{members:i}},{path:["accuracy","MASE"],value:"MASE",format:{type:"number",minimumFractionDigits:3},style:{members:i}},{path:["accuracy","MAE"],value:"MAE",format:{type:"number",minimumFractionDigits:3}},{path:["accuracy","RMSE"],value:"RMSE",format:{type:"number",minimumFractionDigits:3}},{path:["accuracy","MAPE"],value:"MAPE",format:{type:"percent",minimumFractionDigits:1}},{path:["accuracy","AIC"],value:"AIC",format:{type:"number",minimumFractionDigits:3}},{},{path:["model","season","period"],value:e.get("forecastDetailsSeasonalPeriodLabel")},{path:["model","parameters","alpha"],value:e.get("forecastDetailsAlphaLabel"),format:{type:"number",minimumFractionDigits:3}},{path:["model","parameters","beta"],value:e.get("forecastDetailsBetaLabel"),format:{type:"number",minimumFractionDigits:3}},{path:["model","parameters","gamma"],value:e.get("forecastDetailsGammaLabel"),format:{type:"number",minimumFractionDigits:3}},{path:["model","parameters","phi"],value:e.get("forecastDetailsPhiLabel"),format:{type:"number",minimumFractionDigits:3}},{},{path:["data","missingCount"],value:e.get("forecastDetailsMissingCount")},{path:["data","seriesLength"],value:e.get("forecastDetailsSeriesLengthLabel")},{path:["model","ignoredPeriods"],value:e.get("forecastDetailsIgnoredPeriods")},{path:["model","trend","strength"],value:e.get("forecastDetailsTrendStrength"),format:{type:"percent",minimumFractionDigits:1}},{path:["model","season","strength"],value:e.get("forecastDetailsSeasonalityStrength"),format:{type:"percent",minimumFractionDigits:1}},{path:["data","timeDeltaUnit"],value:e.get("forecastDetailsTimeDeltaUnit")},{path:["notes"],value:e.get("forecastDetailsNotes")}],s=[r,a],l=[{path:["reference"],resolver:function(t,e){var o=e.queryResult;return t.category?t.category:o.getDefaultQueryResult().getFacetData().getDataItem(t.field).getTupleHeader()[0].d},style:{members:{display:"flex",alignItems:"center"}}}];return function(){function r(t){_classCallCheck(this,r),this.queryResult=t,this.statisticalDetails=t.getStatisticalDetails(),this.formatter=o}return r.prototype.getNumFixedColumns=function(){return l.length},r.prototype.getNumColumns=function(){return a.length},r.prototype.getNumRows=function(){return this.statisticalDetails.length},r.prototype.getHeader=function(e,o){var n=s[e][o],r={style:{},value:n.value};return t.isEmpty(n)?{value:"",style:{gridCell:{display:"none"},cellValue:{}}}:(r.style.gridCell=n.style&&n.style.header||{},t.extend(r.style.gridCell,i),r.style.cellValue={alignment:"center"},1===e&&(delete r.style.gridCell.border,r.style.gridCell.borderRight="none"),r)},r.prototype.getNumHeaderRows=function(){return s.length},r.prototype.getFixedColumn=function(t,e){return this._getCell(t,e,l[e])},r.prototype._getCell=function(o,i,r){var a=r;if(t.isUndefined(a.path))return{style:{gridCell:{display:"none"},cellValue:{alignment:"center"}}};var s=this.statisticalDetails[o];if(t.each(a.path,(function(t){return s=s[t]})),a.resolver){var l={queryResult:this.queryResult,statisticalDetails:this.statisticalDetails};s=a.resolver(s,l)}var u=!0;(t.isNull(s)||t.isEmpty(s)&&!t.isNumber(s))&&(s=e.get("nullValueText"),u=!1),s.toString().match(n)&&(u=!1);var c=a.style&&a.style.members||{};return{value:u?this.formatter.format(s,a.format):s,style:{gridCell:t.extend({border:"none"},c),cellValue:{alignment:"center"}}}},r.prototype.getCell=function(t,e){return this._getCell(t,e,s[1][e])},r}()})),define("dashboard-analytics/datatray/ForecastDetails/ForecastDetailsController",["../ExtensionBaseController","./ForecastDetailsView","./Result","../../dataSources/nls/StringResources"],(function(t,e,o,i){"use strict";return function(t){function n(o){_classCallCheck(this,n);var r=_possibleConstructorReturn(this,t.call(this,o));return r.tabName=i.get("forecastDetailsTabName"),r.prefix_ID="fd_",r.view=new e({}),r}return _inherits(n,t),n.prototype.getTabContrib=function(){var t=this._getSelectedContent();if(!t)return Promise.resolve(null);var e=t.getFeature("Forecast");if(!this._isThereForecastContribution(e))return Promise.resolve(null);var o=e.getQueryResult(),i=o?o.getStatisticalDetails():null;if(!i||i.length<=0)return Promise.resolve(null);var n=t.getId(),r=this.prefix_ID+n;return Promise.resolve([{id:r,name:this.tabName,isSelectedOnTrayRender:!1,select:this.select.bind(this,{forecastQueryResult:o,id:r,forceRender:!1})}])},n.prototype._isThereForecastContribution=function(t){return t&&t.getForecastDisplayState().toggleEnabled&&t.areThereValidForecastSettings()&t.supportsForecasts()},n.prototype.select=function(t,e,i){if(e===t.id&&!t.forceRender)return Promise.resolve(!1);var n=new o(t.forecastQueryResult);return this.view.render(i,n)},n}(t)})),define("dashboard-analytics/datatray/layers",["./Datasources/DataSourcesController","./ForecastDetails/ForecastDetailsController"],(function(){})),define("dashboard-analytics/features/dashboard/actions/crosstab/HideShowSummariesAction",["../../../../widgets/livewidget/nls/StringResources","../../../../lib/@waca/dashboard-common/dist/api/ContentActionsProviderAPI","../../../../lib/@waca/dashboard-common/dist/core/APIFactory","jquery"],(function(t,e,o,i){return function(){function n(t,e,o){_classCallCheck(this,n),this._dashboard=t,this._dashboardState=e,this._icons=o}return n.prototype.getContentActionList=function(t){var e=[];if(this._getSelectedContent(t)){var o=t[0],i=this._dashboard.getCanvas().getContent(o),n=this._icons.getIcon("dashboard-hideshowsummaries");this._supportAction(i)&&(e=[{name:"hideShowSummaries",label:this._getLabel(i),className:"hideShowSummariesBtnToggle",icon:n.id,actions:{apply:this.execute.bind(this,i)},type:"Button"}])}return e},n.prototype._supportAction=function(t){var e=!1,o=this._dashboardState.getUiState(),i=t.getFeature("Visualization");if(i&&!o.eventGroups){var n=i.getDefinition().getId();e=i.getSlots().isMappingComplete()&&("crosstab"===n||"JQGrid"===n)}return e},n.prototype._getLabel=function(e){return e.getPropertyValue("hideSummaries")?t.get("showSummariesLabel"):t.get("hideSummariesLabel")},n.prototype._getSelectedContent=function(t){return 1===t.length},n.prototype.execute=function(t,e){var o=!t.getPropertyValue("hideSummaries");t.setPropertyValue("hideSummaries",o);var n=i(e.currentTarget).find(".hideShowSummariesBtnToggle").addBack(),r=this._getLabel(t);n.attr("title",r),n.find("svg title").text(r)},n.prototype.getAPI=function(){return this._api||(this._api=o.createAPI(this,[e])),this._api},n}()})),define("dashboard-analytics/features/dashboard/actions/crosstab/SwapRowColumnAction",["../../../../widgets/livewidget/nls/StringResources","../../../../lib/@waca/dashboard-common/dist/api/ContentActionsProviderAPI","../../../../lib/@waca/dashboard-common/dist/core/APIFactory"],(function(t,e,o){return function(){function i(t,e,o){_classCallCheck(this,i),this._dashboard=t,this._dashboardState=e,this._icons=o}return i.prototype.getContentActionList=function(e){var o=[];if(this._getSelectedContent(e)){var i=e[0],n=this._dashboard.getCanvas().getContent(i),r=n.getFeature("Visualization"),a=this._icons.getIcon("dashboard-swap");this._supportAction(n)&&(o=[{name:"swapRowsAndColumns",label:t.get("swapRowsAndColumns"),icon:a.id,actions:{apply:this.swapRowsAndColumns.bind(this,r)},type:"Button"}])}return o},i.prototype.swapRowsAndColumns=function(t){t.getSlots().swapSlots("column_level1","row_level1")},i.prototype._supportAction=function(t){var e=!1,o=this._dashboardState.getUiState(),i=t.getFeature("Visualization");if(i&&!o.eventGroups){var n=i.getDefinition().getId();e=i.getSlots().isMappingComplete()&&"crosstab"===n}return e},i.prototype._getSelectedContent=function(t){return 1===t.length},i.prototype.getAPI=function(){return this._api||(this._api=o.createAPI(this,[e])),this._api},i}()})),define("dashboard-analytics/features/dashboard/actions/CrosstabActions",["./crosstab/SwapRowColumnAction","./crosstab/HideShowSummariesAction"],(function(t,e){return function(){function o(t){var e=t.features;_classCallCheck(this,o),this._dashboard=e.API,this._dashboardState=e.DashboardState,this._contentActions=e.ContentActions,this._icons=e.Icons}return o.prototype.initialize=function(){var o=new t(this._dashboard,this._dashboardState,this._icons);this._contentActions.registerProvider("crosstabSwap",o.getAPI());var i=new e(this._dashboard,this._dashboardState,this._icons);this._contentActions.registerProvider("crosstabHideShowSummaries",i.getAPI())},o}()})),define("dashboard-analytics/features/dashboard/dataSources/api/DataSourceAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.destroy=function(){},t.prototype.getId=function(){},t.prototype.getAssetId=function(){},t.prototype.getType=function(){},t.prototype.getProtocol=function(){},t.prototype.getLocalizedName=function(){},t.prototype.getSearchPath=function(){},t.prototype.getName=function(){},t.prototype.getState=function(){},t.prototype.loadMetadata=function(){},t.prototype.getMetadataColumn=function(){},t.prototype.relink=function(){},t.prototype.registerUsage=function(){},t.prototype.deregisterUsage=function(){},t.prototype.isDataSourceUsed=function(){},t.prototype.isUsedBy=function(){},t.prototype.isOlapPackage=function(){},t.prototype.getModule=function(){},t.prototype.getModificationTime=function(){},t.prototype.hasJoinedTables=function(){},t.prototype.getMetadataColumnList=function(){},t.prototype.findMetadataColumns=function(){},_createClass(t,null,[{key:"STATE",get:function(){return{LOADING:"loading",READY:"ready",ERROR:"error"}}}]),t}()})),define("dashboard-analytics/features/dashboard/dataSources/api/DataSourcesAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.destroy=function(){},t.prototype.addDataSource=function(){},t.prototype.removeDataSource=function(){},t.prototype.getDataSource=function(){},t.prototype.getDataSourceList=function(){},t.prototype.setActiveDataSourceId=function(){},t.prototype.getActiveDataSourceId=function(){},t.prototype.getSourcesInfo=function(){},t.prototype.addDataSources=function(){},t}()})),define("dashboard-analytics/features/dashboard/dataSources/api/DataSourcesUIAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.getColumnSourceTree=function(){},t.prototype.pickItems=function(){},t.prototype.getPickTree=function(){},t}()})),define("dashboard-analytics/features/dashboard/dataSources/api/MetadataColumnAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.getObjectType=function(){},t.prototype.getId=function(){},t.prototype.getSourceId=function(){},t.prototype.getLabel=function(){},t.prototype.getType=function(){},t.prototype.getDataType=function(){},t.prototype.getDefaultAggregation=function(){},t.prototype.getAggregationMode=function(){},t.prototype.getTaxonomyList=function(){},t.prototype.getDefaultSortType=function(){},t.prototype.getFormat=function(){},t.prototype.getRootMember=function(){},t.prototype.isLeafMember=function(){},t.prototype.setLabel=function(){},t.prototype.setHidden=function(){},t.prototype.isFacetDefinitionEnabled=function(){},t.prototype.getSourceCategory=function(){},t.prototype.isHierarchy=function(){},t.prototype.isNamedSet=function(){},t.prototype.isProperty=function(){},t.prototype.isLevel=function(){},t.prototype.isSingleRootHierarchy=function(){},t.prototype.getReferencedHierarchyId=function(){},t.prototype.isOlapColumn=function(){},t.prototype.isNumericDataType=function(){},t.prototype.isDateTimeDataType=function(){},t.prototype.isFilter=function(){},t.prototype.isEditableCalculation=function(){},t.prototype.getTableId=function(){},t.prototype.getTableName=function(){},t.prototype.getDeprecatedMetadataColumn=function(){},t.prototype.isHidden=function(){},t.prototype.isMissing=function(){},t.prototype.getParent=function(){},t.prototype.getHierarchyLevelIds=function(){},t}()})),define("dashboard-analytics/features/dashboard/smarts/api/SmartsServiceAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.runQuery=function(){},t}()})),define("dashboard-analytics/features/dashboard/smarts/SmartsService",["../../../lib/@waca/dashboard-common/dist/core/APIFactory","../../../widgets/livewidget/query/ServiceBase","./api/SmartsServiceAPI","underscore"],(function(t,e,o,i){"use strict";return function(e){function n(t){_classCallCheck(this,n);var o=_possibleConstructorReturn(this,e.call(this));return o.ajaxSvc=t.features.API.getGlassCoreSvc(".Ajax"),o.logger=t.features.API.getGlassCoreSvc(".Logger"),o}return _inherits(n,e),n.prototype.getAPI=function(){return t.createAPI(this,[o])},n.prototype.runQuery=function(t){return this._runQuery(t)},n.prototype._runQuery=function(t){var e=this,o=this.getRequestId(t.sender);return new Promise((function(n,r){e.ajaxSvc.ajax({type:"post",url:t.url,contentType:"application/json",data:JSON.stringify(t.querySpec)}).then((function(a){e.isActiveRequest(o,t.sender)?n(a):r(i.extend(new Error,{reason:"staleRequest"}))}),(function(t){r(t)}))}))},n}(e)})),define("dashboard-analytics/features/dashboard/smarts/AnnotationService",["./SmartsService"],(function(t){"use strict";return function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,t.apply(this,arguments))}return _inherits(e,t),e.prototype.runQuery=function(t){return t.url="v1/predict/annotations/"+t.target,this._runQuery(t)},e}(t)})),define("dashboard-analytics/features/dashboard/smarts/ExploreAnnotationService",["./SmartsService"],(function(t){"use strict";return function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,t.apply(this,arguments))}return _inherits(e,t),e.prototype.runQuery=function(t){return t.url="v1/smarts/explore/annotation",this._runQuery(t)},e}(t)})),define("dashboard-analytics/features/dashboard/smarts/KeyDriverService",["./SmartsService"],(function(t){"use strict";return function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,t.apply(this,arguments))}return _inherits(e,t),e.prototype.runQuery=function(t){return t.url="v1/predict/recommendations",this._runQuery(t)},e}(t)})),define("dashboard-analytics/features/dashboard/metadata/MetadataLoader",["../../../lib/@waca/dashboard-common/dist/core/APIFactory"],(function(t){"use strict";return function(){function e(t){_classCallCheck(this,e),this.options=t,this.API=t.features.API}return e.prototype.initialize=function(){var t=this.API.getFeature("DataSources").getDataSourceList();this.loadMetadata(t)},e.prototype.getAPI=function(){return t.createAPI(this,[])},e.prototype.loadMetadata=function(t){var e=[];t.forEach((function(t){return e.push(t.loadMetadata)}));var o=[],i=0,n=0;return new Promise((function(t){var r=function r(){i<3&&n<e.length?(e[n]().then(a).fail(a),n++,i++,r()):0===i&&n===e.length&&t(o)},a=function(t){o.push(t),i--,r()};r()}))},e}()})),define("dashboard-analytics/lib/@waca/dashboard-common/dist/api/ContentProviderAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.addModel=function(){},t.prototype.createContent=function(){},t.prototype.getTypeList=function(){},t}()})),define("dashboard-analytics/features/dashboard/liveContentProvider/LiveContentProvider",["../../../lib/@waca/dashboard-common/dist/core/APIFactory","../../../lib/@waca/dashboard-common/dist/api/ContentProviderAPI"],(function(t,e){return function(){function o(i){_classCallCheck(this,o),this._api=t.createAPI(this,[e]),this.base=i.features.BaseContentProvider,this.datasources=i.features.DataSources,i.features.ContentFactory.registerProvider(this._api)}return o.prototype.getAPI=function(){return this._api},o.prototype.getTypeList=function(){return["widget.live"]},o.prototype.addModel=function(t,e,o){var i,n=t&&t.spec;return n&&this._addDataSource(n,o),(i=this.base).addModel.apply(i,arguments)},o.prototype.createContent=function(){var t;return(t=this.base).createContent.apply(t,arguments)},o.prototype._addDataSource=function(t,e){var o=this,i=t&&t.data;i&&i.dataViews&&i.dataViews.length&&i.dataViews.forEach((function(t){t.model&&(t.modelRef=o.datasources.addDataSource(t.model,!1,e),delete t.model)}))},o}()})),define("dashboard-analytics/features/dashboard/vis-fredisred/FredIsRedAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"initializeFredIsRedFeature",value:function(){}},{key:"getColor",value:function(){}},{key:"setUserColorMap",value:function(){}},{key:"getUserColorMap",value:function(){}},{key:"registerKeyProvider",value:function(){}}]),t}()})),define("dashboard-analytics/features/dashboard/vis-fredisred/FredIsRed",["../../../lib/@waca/dashboard-common/dist/core/APIFactory","./FredIsRedAPI"],(function(t,e){return function(){function o(){_classCallCheck(this,o)}return _createClass(o,[{key:"initializeFredIsRedFeature",value:function(t){this.isInitialized()||(this.model=t,this.model.updateSaveId(),this.model.getColorMap(),this._preloadUserPaletteValues(),this.keyProviders=[])}},{key:"isInitialized",value:function(){return this.model}},{key:"getAPI",value:function(){return this.api||(this.api=t.createAPI(this,[e])),this.api}},{key:"registerKeyProvider",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.keyProviders.includes(t)||this.keyProviders.push(t)}},{key:"getColor",value:function(t,e,o){var i=void 0;if((i=this._getkeyUsingProviders(e,o))||(i=e&&e.join()),i){if(this._userPalette[i]){var n=this._userPalette[i];return new t.colorCallback(n.r,n.g,n.b)}var r=this.model.getColorIndex(i),a=t.colors[r%t.colors.length];return new t.colorCallback(a.r,a.g,a.b)}if(void 0!==t.defaultIndex&&t.colors&&t.colors[t.defaultIndex]){var s=t.colors[t.defaultIndex];return new t.colorCallback(s.r,s.g,s.b)}return new t.colorCallback(0,0,0)}},{key:"_getkeyUsingProviders",value:function(t,e){var o=void 0;return e&&this.keyProviders&&this.keyProviders.some((function(i){return!!(o=i.getKeyForUserPalette(t,e))})),o}},{key:"_preloadUserPaletteValues",value:function(){this._userPalette=this.model.get("userPalette")||{}}},{key:"setUserColorMap",value:function(t){this._userPalette=t}},{key:"getUserColorMap",value:function(){return JSON.parse(JSON.stringify(this._userPalette))}}]),o}()})),define("dashboard-analytics/features/dashboard/vis-fredisred/FredIsRedModel",["gemini/lib/@waca/dashboard-common/dist/core/Model","underscore"],(function(t,e){"use strict";var o=t.extend({whitelistAttrs:["id","colorMap","saveId"],_VIRTUAL_PALETTE_SIZE:48,init:function(t){o.inherited("init",this,arguments),this.colorMap=t&&t.colorMap||{},this.saveId=t&&t.saveId||0},destroy:function(){o.inherited("destroy",this,arguments)},getColorMap:function(){return this.get("colorMap")||{}},getColorIndex:function(t){var o=this.colorMap[t],i=o&&o.v;return void 0===i?(i=e.keys(this.colorMap).length%this._VIRTUAL_PALETTE_SIZE,this.colorMap[t]={v:i,s:this.saveId}):o.s=this.saveId,i},updateSaveId:function(){this.saveId=(this.get("saveId")||0)+1},setColorMap:function(t){this.set("userPalette",t)}});return o})),define("dashboard-analytics/features/dashboard/smartColorMap/SmartColorMapAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"setupColorMap",value:function(){}}]),t}()})),define("dashboard-analytics/features/dashboard/smartColorMap/SmartColorMapFeatureProvider",["gemini/lib/@waca/dashboard-common/dist/core/APIFactory","./SmartColorMapAPI"],(function(t,e){return function(){function o(t){var e=t.features;_classCallCheck(this,o),e&&(this.ajaxSvc=e.API.getGlassCoreSvc(".Ajax"),this.fredIsRed=e.FredIsRed,this.internalAPI=e.internal,this.smpColorMap=e.SMPColorMap,this.colorMapPromise={},this.smartModulePromise={},this.ds2ColorMap={})}return _createClass(o,[{key:"getAPI",value:function(){return this._api||(this._api=t.createAPI(this,[e])),this._api}},{key:"_ensureFredIsRedFeatureInitialized",value:function(){var t=this.internalAPI.getBoardModel().get("fredIsRed");this.fredIsRed.initializeFredIsRedFeature(t)}},{key:"setupColorMap",value:function(t,e){return this._ensureFredIsRedFeatureInitialized(),this.colorMapPromise[t]?Promise.resolve(this.colorMapPromise[t]):(this.colorMapPromise[t]=this._fetchSmartModule(t).then(this._setColorMap.bind(this,t,e)),this.colorMapPromise[t])}},{key:"_fetchSmartModule",value:function(t){var e=this;if(this.smartModulePromise[t]=Promise.resolve(!0),this.smartModulePromise[t])return this.smartModulePromise[t];var o="v1/smarts/module/"+t+"?conceptsOnly";return this.smartModulePromise[t]=new Promise((function(t,i){e.ajaxSvc.ajax({type:"get",url:o,contentType:"application/json"}).then((function(e){t(e)}),(function(t){i(t)}))})),this.smartModulePromise[t]}},{key:"_setColorMap",value:function(t,e,o){return this.ds2ColorMap[t]?Promise.resolve(this.ds2ColorMap[t]):this.smpColorMap.hasApplicableColorMap(e,o)?(this.fredIsRed.registerKeyProvider(this.smpColorMap),this.ds2ColorMap[t]=this.smpColorMap.getUserColorMap(),this.fredIsRed.setUserColorMap(this.ds2ColorMap[t])):Promise.resolve(!0)}}]),o}()})),define("dashboard-analytics/features/dashboard/liveWidgetSegment/api/LiveWidgetSegmentAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.track=function(){},t}()})),define("dashboard-analytics/features/dashboard/liveWidgetSegment/LiveWidgetSegment",["../../../lib/@waca/dashboard-common/dist/core/APIFactory","./api/LiveWidgetSegmentAPI"],(function(t,e){return function(){function o(i){_classCallCheck(this,o),this.dashboard=i.features.API,this.visDefinitions=i.features.VisDefinitions,this.logger=i.features.Logger,this._api=t.createAPI(this,[e])}return o.prototype.getAPI=function(){return this.api||(this.api=t.createAPI(this,[e])),this.api},o.prototype.track=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=["fromRecommendation","Recommended","Other","colorPalette"];if(-1!==e.indexOf(t.category)){var o=this.dashboard.getFeature("segment");if(o){var i=t.visualization?t.visualization.getDefinition().getLabel():null,n=void 0,r=void 0;if(i||"fromRecommendation"!==t.category)if("fromRecommendation"===t.category||"Recommended"===t.category||"Other"===t.category){r="modified";var a=this.visDefinitions.getByType(t.info.visId)||this.visDefinitions.getById(t.info.visId)||null,s=a&&a.getLabel();n={type:"Updated Object",details:{propertyId:t.category,"property.newValue":s,"property.oldValue":i}}}else"colorPalette"===t.category&&(r="modified",n={type:"Updated Object",details:{propertyId:t.category,"property.newValue":t.info.newValue,"property.oldValue":t.info.previousValue}});else i=t.recommendation,r="created",n={type:"Created Object",widgetSource:"fromRecommendation",details:{widgetSource:"fromRecommendation",widgetType:t.recommendation}};if(n){var l=_extends({},n,{details:_extends({},n.details,{widgetType:i,assetType:this.dashboard.getApplicationName()}),trackType:"data_widget","custom.widgetType":i});t.content&&(l.object=t.content.getId());var u=this.dashboard.getDashboardInfo().boardId;u&&(l.details.assetId=u),o.track(r,(function(){return l}))}}else this.logger.error("Invalid segment object")}},o}()})),define("dashboard-analytics/features/dashboard/smp-colormap/SMPColorMapAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"getKeyForUserPalette",value:function(){}},{key:"getUserColorMap",value:function(){}},{key:"hasApplicableColorMap",value:function(){}}]),t}()})),define("dashboard-analytics/features/dashboard/smp-colormap/SMPColorMapProvider",["gemini/lib/@waca/dashboard-common/dist/core/APIFactory","./SMPColorMapAPI"],(function(t,e){return function(){function o(){_classCallCheck(this,o)}return _createClass(o,[{key:"getAPI",value:function(){return this.api||(this.api=t.createAPI(this,[e])),this.api}},{key:"getKeyForUserPalette",value:function(t,e){var o=t&&t.join(),i=this._getDataSourceTypeForVIPRCatDataItem(e);if(i&&"socialMediaProject"===i)return"@socialMedia"+o}},{key:"_getDataSourceTypeForVIPRCatDataItem",value:function(t){if(t){var e=t.source,o=e&&e.itemClassSets&&e.itemClassSets[0],i=o&&o.dataItems&&o.dataItems[0],n=i&&i.getMetadataColumn(),r=n&&n.getParent(),a=r&&r.sourceModelAPI;return a&&a.getType()}}},{key:"getUserColorMap",value:function(){return{"@socialMediaPositive":{r:0,g:170,b:94},"@socialMediaPOSITIVE":{r:0,g:170,b:94},"@socialMediaNegative":{r:230,g:35,b:37},"@socialMediaNEGATIVE":{r:230,g:35,b:37},"@socialMediaNeutral":{r:159,g:167,b:167},"@socialMediaAmbivalent":{r:255,g:176,b:0}}}},{key:"hasApplicableColorMap",value:function(t){return"socialMediaProject"===t}}]),o}()})),define("dashboard-analytics/features/dashboard/slotEditor/SlotEditorState",["jquery","mobx-state-tree","underscore","polyglot","gemini/lib/@waca/dashboard-common/dist/core/APIFactory","gemini/lib/@waca/dashboard-common/dist/ui/AuthoringToolbar","gemini/lib/@waca/dashboard-common/dist/utils/ActionTypes","gemini/lib/@waca/dashboard-common/dist/utils/MemUtil","dashboard-analytics/DynamicFileLoader"],(function(t,e,o,i,n,r,a,s,l){return function(t){function e(i){if(o[i])return o[i].exports;var n=o[i]={i:i,l:!1,exports:{}};return t[i].call(n.exports,n,n.exports,e),n.l=!0,n.exports}var o={};return e.m=t,e.c=o,e.d=function(t,o,i){e.o(t,o)||Object.defineProperty(t,o,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var o=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(o,"a",o),o},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=83)}([,,function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),n=function(t){return t&&t.__esModule?t:{default:t}}(o(15)),r=o(16),a=function(){function t(){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this.polyglot=new r({phrases:n.default})}return i(t,[{key:"get",value:function(t,e){return this.polyglot.t(t,e)}}]),t}();e.default=new a},,function(e,o){e.exports=t},function(t,o){t.exports=e},function(t,e){t.exports=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getNumberOfFilterItems=function(t){return!t||"in"!==t.operator&&"notin"!==t.operator&&"isnull"!==t.operator?null:t.values.length},e.handleScroll=function(t,e,o){var i=e.getBoundingClientRect(),n=i.top,r=i.bottom;if("touchmove"===t.type){var a=t.touches[0];a&&(t.clientX=a.clientX,t.clientY=a.clientY)}if(t.clientX&&t.clientY){var s={x:t.clientX,y:t.clientY},l=r-s.y,u=s.y-n,c=l>0&&l<20,d=u>0&&u<20,p=0;d&&c&&(c=!(d=u>l)),c?p=20-l:d&&(p=u-20);var f=e.scrollTop+p;if(f<=0)f=0;else{var h=e.scrollHeight-e.clientHeight;f>h&&(f=h)}e.scrollTop!==f&&(e.scrollTop=f,o&&o())}},e.getDataSourceIdTypeIn=function(t){var e=t.getActiveDataSourceId();if(!e){var o=t.getFeature("DataSources");o.getDataSourceList().length>0&&(e=o.getDataSourceList()[0].getId())}return e}},function(t,e,o){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(t){function e(o){if(i[o])return i[o].exports;var n=i[o]={i:o,l:!1,exports:{}};return t[o].call(n.exports,n,n.exports,e),n.l=!0,n.exports}var o=window.webpackJsonPBaGraphics;window.webpackJsonPBaGraphics=function(i,r,a){for(var s,l,u,c=0,d=[];c<i.length;c++)l=i[c],n[l]&&d.push(n[l][0]),n[l]=0;for(s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s]);for(o&&o(i,r,a);d.length;)d.shift()();if(a)for(c=0;c<a.length;c++)u=e(e.s=a[c]);return u};var i={},n={2086:0};e.m=t,e.c=i,e.d=function(t,o,i){e.o(t,o)||Object.defineProperty(t,o,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var o=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(o,"a",o),o},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e.oe=function(t){throw console.error(t),t}}({"698d75b157f24ae829cc":function(t,e){var o;o=function(){return this}();try{o=o||Function("return this")()||(0,eval)("this")}catch(t){"object"==("undefined"==typeof window?"undefined":i(window))&&(o=window)}t.exports=o},"9689a9c94ae38b47fa2c":function(t,e,o){(function(e){t.exports=function(){function t(t,e){return t(e={exports:{}},e.exports),e.exports}var e=function(t){var e=t.id,o=t.viewBox,i=t.content;this.id=e,this.viewBox=o,this.content=i};e.prototype.stringify=function(){return this.content},e.prototype.toString=function(){return this.stringify()},e.prototype.destroy=function(){var t=this;["id","viewBox","content"].forEach((function(e){return delete t[e]}))};var o=("undefined"!=typeof window?window:"undefined"!=typeof self&&self,t((function(t,e){t.exports=function(){function t(t){return t&&"object"==(void 0===t?"undefined":i(t))&&"[object RegExp]"!==Object.prototype.toString.call(t)&&"[object Date]"!==Object.prototype.toString.call(t)}function e(e,o){return o&&!0===o.clone&&t(e)?r(function(t){return Array.isArray(t)?[]:{}}(e),e,o):e}function o(o,i,n){var a=o.slice();return i.forEach((function(i,s){void 0===a[s]?a[s]=e(i,n):t(i)?a[s]=r(o[s],i,n):-1===o.indexOf(i)&&a.push(e(i,n))})),a}function n(o,i,n){var a={};return t(o)&&Object.keys(o).forEach((function(t){a[t]=e(o[t],n)})),Object.keys(i).forEach((function(s){t(i[s])&&o[s]?a[s]=r(o[s],i[s],n):a[s]=e(i[s],n)})),a}function r(t,i,r){var a=Array.isArray(i),s=(r||{arrayMerge:o}).arrayMerge||o;return a?Array.isArray(t)?s(t,i,r):e(i,r):n(t,i,r)}return r.all=function(t,e){if(!Array.isArray(t)||t.length<2)throw new Error("first argument should be an array with at least two elements");return t.reduce((function(t,o){return r(t,o,e)}))},r}()}))),n=t((function(t,e){e.default={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}},t.exports=e.default})),r=n.svg,a=n.xlink,s={};s[r.name]=r.uri,s[a.name]=a.uri;var l=function(t,e){return void 0===t&&(t=""),"<svg "+function(t){return Object.keys(t).map((function(e){return e+'="'+t[e].toString().replace(/"/g,"&quot;")+'"'})).join(" ")}(o(s,e||{}))+">"+t+"</svg>"};return function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var o={isMounted:{}};return o.isMounted.get=function(){return!!this.node},e.createFromExistingNode=function(t){return new e({id:t.getAttribute("id"),viewBox:t.getAttribute("viewBox"),content:t.outerHTML})},e.prototype.destroy=function(){this.isMounted&&this.unmount(),t.prototype.destroy.call(this)},e.prototype.mount=function(t){if(this.isMounted)return this.node;var e="string"==typeof t?document.querySelector(t):t,o=this.render();return this.node=o,e.appendChild(o),o},e.prototype.render=function(){var t=this.stringify();return function(t){var e=!!document.importNode,o=(new DOMParser).parseFromString(t,"image/svg+xml").documentElement;return e?document.importNode(o,!0):o}(l(t)).childNodes[0]},e.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(e.prototype,o),e}(e)}()}).call(e,o("698d75b157f24ae829cc"))},"9ce58a7deea14f49ef01":function(t,e,o){(function(e){t.exports=function(){function t(t,e){return t(e={exports:{}},e.exports),e.exports}function e(t){return t.replace(A,(function(t){return"%"+t[0].charCodeAt(0).toString(16).toUpperCase()}))}var o=("undefined"!=typeof window?window:"undefined"!=typeof self&&self,t((function(t,e){t.exports=function(){function t(t){return t&&"object"==(void 0===t?"undefined":i(t))&&"[object RegExp]"!==Object.prototype.toString.call(t)&&"[object Date]"!==Object.prototype.toString.call(t)}function e(e,o){return o&&!0===o.clone&&t(e)?r(function(t){return Array.isArray(t)?[]:{}}(e),e,o):e}function o(o,i,n){var a=o.slice();return i.forEach((function(i,s){void 0===a[s]?a[s]=e(i,n):t(i)?a[s]=r(o[s],i,n):-1===o.indexOf(i)&&a.push(e(i,n))})),a}function n(o,i,n){var a={};return t(o)&&Object.keys(o).forEach((function(t){a[t]=e(o[t],n)})),Object.keys(i).forEach((function(s){t(i[s])&&o[s]?a[s]=r(o[s],i[s],n):a[s]=e(i[s],n)})),a}function r(t,i,r){var a=Array.isArray(i),s=(r||{arrayMerge:o}).arrayMerge||o;return a?Array.isArray(t)?s(t,i,r):e(i,r):n(t,i,r)}return r.all=function(t,e){if(!Array.isArray(t)||t.length<2)throw new Error("first argument should be an array with at least two elements");return t.reduce((function(t,o){return r(t,o,e)}))},r}()}))),n=t((function(t,e){e.default={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}},t.exports=e.default})),r=n.svg,a=n.xlink,s={};s[r.name]=r.uri,s[a.name]=a.uri;var l,u=function(t,e){return void 0===t&&(t=""),"<svg "+function(t){return Object.keys(t).map((function(e){return e+'="'+t[e].toString().replace(/"/g,"&quot;")+'"'})).join(" ")}(o(s,e||{}))+">"+t+"</svg>"},c=n.svg,d=n.xlink,p={attrs:(l={style:["position: absolute","width: 0","height: 0"].join("; ")},l[c.name]=c.uri,l[d.name]=d.uri,l)},f=function(t){this.config=o(p,t||{}),this.symbols=[]};f.prototype.add=function(t){var e=this.symbols,o=this.find(t.id);return o?(e[e.indexOf(o)]=t,!1):(e.push(t),!0)},f.prototype.remove=function(t){var e=this.symbols,o=this.find(t);return!!o&&(e.splice(e.indexOf(o),1),o.destroy(),!0)},f.prototype.find=function(t){return this.symbols.filter((function(e){return e.id===t}))[0]||null},f.prototype.has=function(t){return null!==this.find(t)},f.prototype.stringify=function(){var t=this.config.attrs,e=this.symbols.map((function(t){return t.stringify()})).join("");return u(e,t)},f.prototype.toString=function(){return this.stringify()},f.prototype.destroy=function(){this.symbols.forEach((function(t){return t.destroy()}))};var h=function(t){var e=t.id,o=t.viewBox,i=t.content;this.id=e,this.viewBox=o,this.content=i};h.prototype.stringify=function(){return this.content},h.prototype.toString=function(){return this.stringify()},h.prototype.destroy=function(){var t=this;["id","viewBox","content"].forEach((function(e){return delete t[e]}))};var g,m=function(t){var e=!!document.importNode,o=(new DOMParser).parseFromString(t,"image/svg+xml").documentElement;return e?document.importNode(o,!0):o},_=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var o={isMounted:{}};return o.isMounted.get=function(){return!!this.node},e.createFromExistingNode=function(t){return new e({id:t.getAttribute("id"),viewBox:t.getAttribute("viewBox"),content:t.outerHTML})},e.prototype.destroy=function(){this.isMounted&&this.unmount(),t.prototype.destroy.call(this)},e.prototype.mount=function(t){if(this.isMounted)return this.node;var e="string"==typeof t?document.querySelector(t):t,o=this.render();return this.node=o,e.appendChild(o),o},e.prototype.render=function(){var t=this.stringify();return m(u(t)).childNodes[0]},e.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(e.prototype,o),e}(h),y={autoConfigure:!0,mountTo:"body",syncUrlsWithBaseTag:!1,listenLocationChangeEvent:!0,locationChangeEvent:"locationChange",locationChangeAngularEmitter:!1,usagesToUpdate:"use[*|href]",moveGradientsOutsideSymbol:!1},v=function(t){return Array.prototype.slice.call(t,0)},b=navigator.userAgent,I={isChrome:/chrome/i.test(b),isFirefox:/firefox/i.test(b),isIE:/msie/i.test(b)||/trident/i.test(b),isEdge:/edge/i.test(b)},S=function(t){return(t||window.location.href).split("#")[0]},C=function(t){angular.module("ng").run(["$rootScope",function(e){e.$on("$locationChangeSuccess",(function(e,o,i){!function(t,e){var o=document.createEvent("CustomEvent");o.initCustomEvent(t,!1,!1,e),window.dispatchEvent(o)}(t,{oldUrl:i,newUrl:o})}))}])},E=function(t,e){return void 0===e&&(e="linearGradient, radialGradient, pattern"),v(t.querySelectorAll("symbol")).forEach((function(t){v(t.querySelectorAll(e)).forEach((function(e){t.parentNode.insertBefore(e,t)}))})),t},F=n.xlink.uri,D="xlink:href",A=/[{}|\\\^\[\]`"<>]/g,P=["clipPath","colorProfile","src","cursor","fill","filter","marker","markerStart","markerMid","markerEnd","mask","stroke","style"],x=P.map((function(t){return"["+t+"]"})).join(","),T=function(t,o,i,n){var r=e(i),a=e(n);(function(t,e){return v(t).reduce((function(t,o){if(!o.attributes)return t;var i=v(o.attributes),n=e?i.filter(e):i;return t.concat(n)}),[])})(t.querySelectorAll(x),(function(t){var e=t.localName,o=t.value;return-1!==P.indexOf(e)&&-1!==o.indexOf("url("+r)})).forEach((function(t){return t.value=t.value.replace(r,a)})),function(t,e,o){v(t).forEach((function(t){var i=t.getAttribute(D);if(i&&0===i.indexOf(e)){var n=i.replace(e,o);t.setAttributeNS(F,D,n)}}))}(o,r,a)},w="mount",M="symbol_mount",k=function(t){function e(e){var i=this;void 0===e&&(e={}),t.call(this,o(y,e));var n=function(t){return t=t||Object.create(null),{on:function(e,o){(t[e]||(t[e]=[])).push(o)},off:function(e,o){t[e]&&t[e].splice(t[e].indexOf(o)>>>0,1)},emit:function(e,o){(t[e]||[]).map((function(t){t(o)})),(t["*"]||[]).map((function(t){t(e,o)}))}}}();this._emitter=n,this.node=null;var r=this.config;if(r.autoConfigure&&this._autoConfigure(e),r.syncUrlsWithBaseTag){var a=document.getElementsByTagName("base")[0].getAttribute("href");n.on(w,(function(){return i.updateUrls("#",a)}))}var s=this._handleLocationChange.bind(this);this._handleLocationChange=s,r.listenLocationChangeEvent&&window.addEventListener(r.locationChangeEvent,s),r.locationChangeAngularEmitter&&C(r.locationChangeEvent),n.on(w,(function(t){r.moveGradientsOutsideSymbol&&E(t)})),n.on(M,(function(t){r.moveGradientsOutsideSymbol&&E(t.parentNode),(I.isIE||I.isEdge)&&function(t){var e=[];v(t.querySelectorAll("style")).forEach((function(t){t.textContent+="",e.push(t)}))}(t)}))}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var i={isMounted:{}};return i.isMounted.get=function(){return!!this.node},e.prototype._autoConfigure=function(t){var e=this.config;void 0===t.syncUrlsWithBaseTag&&(e.syncUrlsWithBaseTag=void 0!==document.getElementsByTagName("base")[0]),void 0===t.locationChangeAngularEmitter&&(e.locationChangeAngularEmitter="angular"in window),void 0===t.moveGradientsOutsideSymbol&&(e.moveGradientsOutsideSymbol=I.isFirefox)},e.prototype._handleLocationChange=function(t){var e=t.detail,o=e.oldUrl,i=e.newUrl;this.updateUrls(o,i)},e.prototype.add=function(e){var o=t.prototype.add.call(this,e);return this.isMounted&&o&&(e.mount(this.node),this._emitter.emit(M,e.node)),o},e.prototype.attach=function(t){var e=this,o=this;if(o.isMounted)return o.node;var i="string"==typeof t?document.querySelector(t):t;return o.node=i,this.symbols.forEach((function(t){t.mount(o.node),e._emitter.emit(M,t.node)})),v(i.querySelectorAll("symbol")).forEach((function(t){var e=_.createFromExistingNode(t);e.node=t,o.add(e)})),this._emitter.emit(w,i),i},e.prototype.destroy=function(){var t=this,e=t.config,o=t.symbols,i=t._emitter;o.forEach((function(t){return t.destroy()})),i.off("*"),window.removeEventListener(e.locationChangeEvent,this._handleLocationChange),this.isMounted&&this.unmount()},e.prototype.mount=function(t,e){void 0===t&&(t=this.config.mountTo),void 0===e&&(e=!1);var o=this;if(o.isMounted)return o.node;var i="string"==typeof t?document.querySelector(t):t,n=o.render();return this.node=n,e&&i.childNodes[0]?i.insertBefore(n,i.childNodes[0]):i.appendChild(n),this._emitter.emit(w,n),n},e.prototype.render=function(){return m(this.stringify())},e.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},e.prototype.updateUrls=function(t,e){if(!this.isMounted)return!1;var o=document.querySelectorAll(this.config.usagesToUpdate);return T(this.node,o,S(t)+"#",S(e)+"#"),!0},Object.defineProperties(e.prototype,i),e}(f),R=t((function(t){
  10. /*!
  11. * domready (c) Dustin Diaz 2014 - License MIT
  12. */
  13. t.exports=function(){var t,e=[],o=document,i=(o.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(o.readyState);return i||o.addEventListener("DOMContentLoaded",t=function(){for(o.removeEventListener("DOMContentLoaded",t),i=1;t=e.shift();)t()}),function(t){i?setTimeout(t,0):e.push(t)}}()}));window.__SVG_SPRITE__?g=window.__SVG_SPRITE__:(g=new k({attrs:{id:"__SVG_SPRITE_NODE__"}}),window.__SVG_SPRITE__=g);var O=function(){var t=document.getElementById("__SVG_SPRITE_NODE__");t?g.attach(t):g.mount(document.body,!0)};return document.body?O():R(O),g}()}).call(e,o("698d75b157f24ae829cc"))}})},,,function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},,,,function(t,e){var o={__root:{localFilters:"Local filters",slotEditorMsg1:"Required field",slotEditorMsg2:"Drag and drop data to the fields above to build and filter the visualization.",missingColumn:"Missing: %{columnLabel}",placeholderDropzone:"Click or drag data here",slotEditor_emptyState_no_visualization_selected_title:"No visualization selected",slotEditor_emptyState_no_visualization_selected_description:"Select a visualization to manage the field settings.",slotEditor_emptyState_widget_not_support_slot_selected_title:"The widget selected does not use fields",slotEditor_emptyState_widget_not_support_slot_selected_description:"Select a visualization to manage the field settings.",slotEditor_emptyState_multiple_visualizations_selected_title:"Multiple widgets selected",slotEditor_emptyState_multiple_visualizations_selected_description:"Select a visualization to manage the field settings.",slotEditor_emptyState_visualization_has_error_title:"The visualization cannot be displayed",slotEditor_slotItem_tooltip:"Source:",slotEditor_emptyState_vis_not_created_title:"No visualization created",slotEditor_emptyState_vis_not_created_description:"Create a visualization to manage the field settings.",slotEditor:"Fields",slotEditorCoachMarkTitle:"Access fields",slotEditorCoachMarkContents:"Add columns to the fields to build and modify visualizations.",toolbarDeleteFilterActionText:"Remove filter",toolbarActionFilter:"Filter",filterAutobinActionText:"Filter bins",coachMarkTitleSpiralTarget:"Edit scope",coachMarkContentSpiralTarget:"This is where you can access and modify the driver selection for your target.",overlayDropZonePlaceHolderText:"Drag data here"},__cs:{localFilters:"Lokální filtry",slotEditorMsg1:"Povinné pole",slotEditorMsg2:"Přetáhněte data do polí nahoře, aby se sestavila a filtrovala vizualizace.",missingColumn:"Chybí: %{columnLabel}",placeholderDropzone:"Klepněte nebo přetáhněte data sem",slotEditor_emptyState_no_visualization_selected_title:"Není vybrána žádná vizualizace",slotEditor_emptyState_no_visualization_selected_description:"Vyberte vizualizaci pro správu nastavení polí.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Vybraný modul widget nepoužívá pole",slotEditor_emptyState_widget_not_support_slot_selected_description:"Vyberte vizualizaci pro správu nastavení polí.",slotEditor_emptyState_multiple_visualizations_selected_title:"Vybráno více modulů widget",slotEditor_emptyState_multiple_visualizations_selected_description:"Vyberte vizualizaci pro správu nastavení polí.",slotEditor_emptyState_visualization_has_error_title:"Vizualizaci nelze zobrazit",slotEditor_slotItem_tooltip:"Zdroj:",slotEditor_emptyState_vis_not_created_title:"Nebyla vytvořena žádná vizualizace",slotEditor_emptyState_vis_not_created_description:"Vytvořte vizualizaci pro správu nastavení polí.",slotEditor:"Pole",slotEditorCoachMarkTitle:"Přístupová pole",slotEditorCoachMarkContents:"Přidejte sloupce do polí, abyste mohli sestavovat a upravovat vizualizace.",toolbarDeleteFilterActionText:"Odebrat filtr",toolbarActionFilter:"Filtr",filterAutobinActionText:"Filtrovat přihrádky",coachMarkTitleSpiralTarget:"Upravit rozsah",coachMarkContentSpiralTarget:"Zde je k dispozici přístup k výběru drivery pro cíl a možnost jeho úprav.",overlayDropZonePlaceHolderText:"Přetáhněte data sem"},__da:{localFilters:"Lokale filtre",slotEditorMsg1:"Påkrævet felt",slotEditorMsg2:"Træk og placér data til felterne ovenfor for at bygge og filtrere visualiseringen.",missingColumn:"Mangler: %{columnLabel}",placeholderDropzone:"Klik og træk data her",slotEditor_emptyState_no_visualization_selected_title:"Der er ikke valgt nogen visualisering",slotEditor_emptyState_no_visualization_selected_description:"Vælg en visualisering for at administrere feltindstilingerne.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Den valgte widget bruger ikke felter",slotEditor_emptyState_widget_not_support_slot_selected_description:"Vælg en visualisering for at administrere feltindstilingerne.",slotEditor_emptyState_multiple_visualizations_selected_title:"Flere widgetter er valgt",slotEditor_emptyState_multiple_visualizations_selected_description:"Vælg en visualisering for at administrere feltindstilingerne.",slotEditor_emptyState_visualization_has_error_title:"Visualiseringen kan ikke vises",slotEditor_slotItem_tooltip:"Kilde:",slotEditor_emptyState_vis_not_created_title:"Ingen visualisering er oprettet",slotEditor_emptyState_vis_not_created_description:"Opret en visualisering for at administrere feltindstilingerne.",slotEditor:"Felter",slotEditorCoachMarkTitle:"Anvend felter",slotEditorCoachMarkContents:"Tilføj kolonner til felterne for at bygge og ændre visualiseringer.",toolbarDeleteFilterActionText:"Fjern filter",toolbarActionFilter:"Filtrér",filterAutobinActionText:"Filtrér områder (bins)",coachMarkTitleSpiralTarget:"Redigér omfang",coachMarkContentSpiralTarget:"Her kan du få adgang til og ændre styreprogramvalget for dit mål.",overlayDropZonePlaceHolderText:"Træk data her"},__de:{localFilters:"Lokale Filter",slotEditorMsg1:"Erforderliches Feld",slotEditorMsg2:"Daten in die Felder oben ziehen und ablegen, um die Visualisierung zu erstellen und zu filtern.",missingColumn:"Nicht vorhanden: %{columnLabel}",placeholderDropzone:"Klicken oder Daten hierher ziehen",slotEditor_emptyState_no_visualization_selected_title:"Keine Visualisierung ausgewählt",slotEditor_emptyState_no_visualization_selected_description:"Zum Verwalten der Feldeigenschaften eine Visualisierung auswählen.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Ausgewähltes Widget verwendet keine Felder",slotEditor_emptyState_widget_not_support_slot_selected_description:"Zum Verwalten der Feldeigenschaften eine Visualisierung auswählen.",slotEditor_emptyState_multiple_visualizations_selected_title:"Mehrere Widgets ausgewählt",slotEditor_emptyState_multiple_visualizations_selected_description:"Zum Verwalten der Feldeigenschaften eine Visualisierung auswählen.",slotEditor_emptyState_visualization_has_error_title:"Anzeigen der Visualisierung nicht möglich",slotEditor_slotItem_tooltip:"Quelle:",slotEditor_emptyState_vis_not_created_title:"Keine Visualisierung erstellt",slotEditor_emptyState_vis_not_created_description:"Zum Verwalten der Feldeigenschaften eine Visualisierung erstellen.",slotEditor:"Felder",slotEditorCoachMarkTitle:"Felder aufrufen",slotEditorCoachMarkContents:"Spalten zu den Feldern hinzufügen, um Visualisierungen zu erstellen und zu ändern.",toolbarDeleteFilterActionText:"Filter entfernen",toolbarActionFilter:"Filtern",filterAutobinActionText:"Bins filtern",coachMarkTitleSpiralTarget:"Bereich bearbeiten",coachMarkContentSpiralTarget:"Hier können Sie auf die Auswahl der Einflussfaktoren für das Ziel zugreifen und gegebenenfalls Änderungen vornehmen.",overlayDropZonePlaceHolderText:"Daten hierher ziehen"},__es:{localFilters:"Filtros locales",slotEditorMsg1:"Campo necesario",slotEditorMsg2:"Arrastre y suelte los datos en los campos para crear y filtrar la visualización.",missingColumn:"Falta: %{columnLabel}",placeholderDropzone:"Pulse o arrastre los datos aquí ",slotEditor_emptyState_no_visualization_selected_title:"No se ha seleccionado ninguna visualización",slotEditor_emptyState_no_visualization_selected_description:"Seleccione una visualización para gestionar los valores de campos.",slotEditor_emptyState_widget_not_support_slot_selected_title:"El widget seleccionado no utiliza campos",slotEditor_emptyState_widget_not_support_slot_selected_description:"Seleccione una visualización para gestionar los valores de campos.",slotEditor_emptyState_multiple_visualizations_selected_title:"Varios widgets seleccionados",slotEditor_emptyState_multiple_visualizations_selected_description:"Seleccione una visualización para gestionar los valores de campos.",slotEditor_emptyState_visualization_has_error_title:"La visualización no se puede visualizar",slotEditor_slotItem_tooltip:"Origen:",slotEditor_emptyState_vis_not_created_title:"No se ha creado ninguna visualización",slotEditor_emptyState_vis_not_created_description:"Cree una visualización para gestionar los valores de campos.",slotEditor:"Campos",slotEditorCoachMarkTitle:"Acceder a campos",slotEditorCoachMarkContents:"Añada columnas a los campos para crear y modificar visualizaciones.",toolbarDeleteFilterActionText:"Eliminar filtro",toolbarActionFilter:"Filtro",filterAutobinActionText:"Filtrar cubetas",coachMarkTitleSpiralTarget:"Editar ámbito",coachMarkContentSpiralTarget:"Aquí puede acceder y modificar la selección de controlador de su destino.",overlayDropZonePlaceHolderText:"Arrastre los datos aquí "},__fi:{localFilters:"Paikalliset suodattimet",slotEditorMsg1:"Pakollinen kenttä",slotEditorMsg2:"Voit muodostaa visualisoinnin ja suodattaa sen vetämällä ja pudottamalla tiedot yllä oleviin kenttiin.",missingColumn:"Puuttuva: %{columnLabel}",placeholderDropzone:"Napsauta tätä, tai vedä tiedot tähän",slotEditor_emptyState_no_visualization_selected_title:"Visualisointia ei ole valittu",slotEditor_emptyState_no_visualization_selected_description:"Valitse visualisointi, jotta voit hallita kentän asetuksia.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Valittu pienoisohjelma ei käytä kenttiä",slotEditor_emptyState_widget_not_support_slot_selected_description:"Valitse visualisointi, jotta voit hallita kentän asetuksia.",slotEditor_emptyState_multiple_visualizations_selected_title:"On valittu useita pienoisohjelmia",slotEditor_emptyState_multiple_visualizations_selected_description:"Valitse visualisointi, jotta voit hallita kentän asetuksia.",slotEditor_emptyState_visualization_has_error_title:"Visualisoinnin näyttö ei onnistunut",slotEditor_slotItem_tooltip:"Lähde:",slotEditor_emptyState_vis_not_created_title:"Visualisointia ei ole luotu",slotEditor_emptyState_vis_not_created_description:"Valitse visualisointi, jotta voit hallita kentän asetuksia.",slotEditor:"Kentät",slotEditorCoachMarkTitle:"Kenttien käyttö",slotEditorCoachMarkContents:"Lisää kenttiin sarakkeita visualisointien luontia ja muokkausta varten.",toolbarDeleteFilterActionText:"Poista suodatin",toolbarActionFilter:"Suodatin",filterAutobinActionText:"Suodata numeroryhmät",coachMarkTitleSpiralTarget:"Muokkaa aluetta",coachMarkContentSpiralTarget:"Tässä voit käyttää ja muokata vaikuttimien valintaa kohdetta varten.",overlayDropZonePlaceHolderText:"Vedä tiedot tähän"},__fr:{localFilters:"Filtres locaux",slotEditorMsg1:"Zone requise",slotEditorMsg2:"Glissez-déposez des données sur les zones ci-dessus pour générer et filtrer la visualisation.",missingColumn:"Manquant : %{columnLabel}",placeholderDropzone:"Cliquez ou faites glisser les données ici",slotEditor_emptyState_no_visualization_selected_title:"Aucune visualisation sélectionnée",slotEditor_emptyState_no_visualization_selected_description:"Sélectionnez une visualisation pour gérer les paramètres de zone.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Le widget sélectionné n'utilise pas les zones",slotEditor_emptyState_widget_not_support_slot_selected_description:"Sélectionnez une visualisation pour gérer les paramètres de zone.",slotEditor_emptyState_multiple_visualizations_selected_title:"Plusieurs widgets sélectionnés",slotEditor_emptyState_multiple_visualizations_selected_description:"Sélectionnez une visualisation pour gérer les paramètres de zone.",slotEditor_emptyState_visualization_has_error_title:"Impossible d'afficher la visualisation",slotEditor_slotItem_tooltip:"Source :",slotEditor_emptyState_vis_not_created_title:"Aucune visualisation créée",slotEditor_emptyState_vis_not_created_description:"Créez une visualisation pour gérer les paramètres de zone.",slotEditor:"Zones",slotEditorCoachMarkTitle:"Zones d'accès",slotEditorCoachMarkContents:"Ajouter des colonnes aux zones pour générer et modifier des visualisations.",toolbarDeleteFilterActionText:"Retirer le filtre",toolbarActionFilter:"Filtre",filterAutobinActionText:"Filtrer les casiers",coachMarkTitleSpiralTarget:"Editer la portée",coachMarkContentSpiralTarget:"Vous pouvez accéder ici au pilote sélectionné pour votre cible et le modifier.",overlayDropZonePlaceHolderText:"Glisser les données ici"},__hr:{localFilters:"Lokalni filteri",slotEditorMsg1:"Obavezno polje",slotEditorMsg2:"Povucite i ispustite podatke gore na polja da izgradite i filtrirate vizualizaciju.",missingColumn:"Nedostaje: %{columnLabel}",placeholderDropzone:"Kliknite ili povucite podatke ovdje",slotEditor_emptyState_no_visualization_selected_title:"Nema izabranih vizualizacija",slotEditor_emptyState_no_visualization_selected_description:"Izaberite vizualizaciju za upravljanje postavkama polja.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Izabrani grafički element ne koristi polja.",slotEditor_emptyState_widget_not_support_slot_selected_description:"Izaberite vizualizaciju za upravljanje postavkama polja.",slotEditor_emptyState_multiple_visualizations_selected_title:"Izabrano je više grafičkih elemenata.",slotEditor_emptyState_multiple_visualizations_selected_description:"Izaberite vizualizaciju za upravljanje postavkama polja.",slotEditor_emptyState_visualization_has_error_title:"Vizualizacija se ne može prikazati.",slotEditor_slotItem_tooltip:"Izvor:",slotEditor_emptyState_vis_not_created_title:"Vizualizacija nije kreirana",slotEditor_emptyState_vis_not_created_description:"Kreirajte vizualizaciju za upravljanje postavkama polja.",slotEditor:"Polja",slotEditorCoachMarkTitle:"Dohvati polja",slotEditorCoachMarkContents:"Poljima dodajte stupce za izgradite i promijenite vizualizacije.",toolbarDeleteFilterActionText:"Ukloni filter",toolbarActionFilter:"Filter",filterAutobinActionText:"Pregradci filtera",coachMarkTitleSpiralTarget:"Uređivanje opsega",coachMarkContentSpiralTarget:"Ovdje možete dohvatiti i promijeniti izbor pogonitelja za vaš cilj.",overlayDropZonePlaceHolderText:"Povucite podatke ovdje"},__hu:{localFilters:"Helyi szűrők",slotEditorMsg1:"Kötelező mező",slotEditorMsg2:"Húzza az adatokat a fenti mezőkre a megjelenítés összeállításához és szűréséhez.",missingColumn:"A következő hiányzik: %{columnLabel}",placeholderDropzone:"Kattintson vagy húzzon ide adatokat",slotEditor_emptyState_no_visualization_selected_title:"Nincs kijelölt megjelenítés",slotEditor_emptyState_no_visualization_selected_description:"A mezőbeállítások kezeléséhez válasszon ki egy megjelenítést.",slotEditor_emptyState_widget_not_support_slot_selected_title:"A kiválasztott felületi elem nem használ mezőket",slotEditor_emptyState_widget_not_support_slot_selected_description:"A mezőbeállítások kezeléséhez válasszon ki egy megjelenítést.",slotEditor_emptyState_multiple_visualizations_selected_title:"Több felületi elem lett kiválasztva",slotEditor_emptyState_multiple_visualizations_selected_description:"A mezőbeállítások kezeléséhez válasszon ki egy megjelenítést.",slotEditor_emptyState_visualization_has_error_title:"A megjelenítés nem jeleníthető meg",slotEditor_slotItem_tooltip:"Forrás:",slotEditor_emptyState_vis_not_created_title:"Nincs létrehozva megjelenítés",slotEditor_emptyState_vis_not_created_description:"A mezőbeállítások kezeléséhez hozzon létre egy megjelenítést.",slotEditor:"Mezők",slotEditorCoachMarkTitle:"Mezők elérése",slotEditorCoachMarkContents:"Megjelenítések összeállításához és módosításához vegyen fel oszlopokat a mezőkbe.",toolbarDeleteFilterActionText:"Szűrő eltávolítása",toolbarActionFilter:"Szűrő",filterAutobinActionText:"Tároló szűrése",coachMarkTitleSpiralTarget:"Hatókör szerkesztése",coachMarkContentSpiralTarget:"Itt érheti el és módosíthatja a célhoz kijelölt tényezőket.",overlayDropZonePlaceHolderText:"Húzza ide az adatokat"},__it:{localFilters:"Filtri locali",slotEditorMsg1:"Campo obbligatorio",slotEditorMsg2:"Trascinare e rilasciare i dati nei campi sopra riportati per creare e filtrare la visualizzazione.",missingColumn:"Mancante: %{columnLabel}",placeholderDropzone:"Fare clic o trascinare i dati qui ",slotEditor_emptyState_no_visualization_selected_title:"Nessuna visualizzazione selezionata",slotEditor_emptyState_no_visualization_selected_description:"Selezionare una visualizzazione per gestire le impostazioni del campo.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Il widget selezionato non utilizza i campi",slotEditor_emptyState_widget_not_support_slot_selected_description:"Selezionare una visualizzazione per gestire le impostazioni del campo.",slotEditor_emptyState_multiple_visualizations_selected_title:"Più widget selezionati",slotEditor_emptyState_multiple_visualizations_selected_description:"Selezionare una visualizzazione per gestire le impostazioni del campo.",slotEditor_emptyState_visualization_has_error_title:"Impossibile mostrare la visualizzazione",slotEditor_slotItem_tooltip:"Sorgente:",slotEditor_emptyState_vis_not_created_title:"Nessuna visualizzazione creata",slotEditor_emptyState_vis_not_created_description:"Creare una visualizzazione per gestire le impostazioni del campo.",slotEditor:"Campi",slotEditorCoachMarkTitle:"Accedi campi",slotEditorCoachMarkContents:"Aggiungi colonne ai campi per creare e modificare le visualizzazioni.",toolbarDeleteFilterActionText:"Rimuovi filtro",toolbarActionFilter:"Filtra",filterAutobinActionText:"Filtra bin",coachMarkTitleSpiralTarget:"Modifica ambito",coachMarkContentSpiralTarget:"Da qui è possibile accedere e modificare la selezione del driver per la propria destinazione.",overlayDropZonePlaceHolderText:"Trascinare i dati in questo punto"},__ja:{localFilters:"ローカル・フィルター",slotEditorMsg1:"必須フィールド",slotEditorMsg2:"上のフィールドにデータをドラッグ・アンド・ドロップし、視覚化を作成してフィルターに掛けます。",missingColumn:"欠落しています: %{columnLabel}",placeholderDropzone:"データをクリックするかここにドラッグしてください",slotEditor_emptyState_no_visualization_selected_title:"視覚化が選択されていません",slotEditor_emptyState_no_visualization_selected_description:"フィールド設定を管理するための視覚化を選択してください。",slotEditor_emptyState_widget_not_support_slot_selected_title:"選択したウィジェットではフィールドは使用しません",slotEditor_emptyState_widget_not_support_slot_selected_description:"フィールド設定を管理するための視覚化を選択してください。",slotEditor_emptyState_multiple_visualizations_selected_title:"複数のウィジェットが選択されています",slotEditor_emptyState_multiple_visualizations_selected_description:"フィールド設定を管理するための視覚化を選択してください。",slotEditor_emptyState_visualization_has_error_title:"視覚化を表示できません",slotEditor_slotItem_tooltip:"ソース:",slotEditor_emptyState_vis_not_created_title:"視覚化が作成されていません",slotEditor_emptyState_vis_not_created_description:"フィールド設定を管理するための視覚化を作成してください。",slotEditor:"フィールド",slotEditorCoachMarkTitle:"フィールドへのアクセス",slotEditorCoachMarkContents:"視覚化を作成したり変更したりするために列をフィールドに追加します。",toolbarDeleteFilterActionText:"フィルターの削除",toolbarActionFilter:"フィルター",filterAutobinActionText:"ビンのフィルター",coachMarkTitleSpiralTarget:"範囲の編集",coachMarkContentSpiralTarget:"ここでターゲットのドライバー選択にアクセスして変更することができます。",overlayDropZonePlaceHolderText:"ここにデータをドラッグ"},__kk:{localFilters:"Жергілікті сүзгілер",slotEditorMsg1:"Қажетті өріс",slotEditorMsg2:"Көрнекілікті сүзгілеу және құру үшін өрістерге деректерді сүйреп апарып тастаңыз.",missingColumn:"Жоқ: %{columnLabel}",placeholderDropzone:"Деректерді мына жерге нұқыңыз немесе сүйреңіз",slotEditor_emptyState_no_visualization_selected_title:"Көрнекілендіру таңдалмаған",slotEditor_emptyState_no_visualization_selected_description:"Өрістердің параметрлерін басқару үшін көрнекілендіру жасаңыз.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Таңдалған виджет өрістерды пайдаланбайды",slotEditor_emptyState_widget_not_support_slot_selected_description:"Өрістердің параметрлерін басқару үшін көрнекілендіру таңдаңыз.",slotEditor_emptyState_multiple_visualizations_selected_title:"Бірнеше виджеттер таңдалды",slotEditor_emptyState_multiple_visualizations_selected_description:"Өрістердің параметрлерін басқару үшін көрнекілендіру тандаңыз.",slotEditor_emptyState_visualization_has_error_title:"Көрнекілендіруді көрсету мүмкін емес",slotEditor_slotItem_tooltip:"Бастапқы:",slotEditor_emptyState_vis_not_created_title:"Жасалған көрнекілендіру жоқ",slotEditor_emptyState_vis_not_created_description:"Өрістердің параметрлерін басқару үшін көрнекілендіру жасаңыз.",slotEditor:"Өрістер",slotEditorCoachMarkTitle:"Кіру өрістері",slotEditorCoachMarkContents:"Көрнекілендіру бейнелерді құру және өзгерту үшін өрістерге баған қосыңыз.",toolbarDeleteFilterActionText:"Сүзгіш жою",toolbarActionFilter:"Сүзгі",filterAutobinActionText:"Bin -дерді сүзгілеу",coachMarkTitleSpiralTarget:"Ауқымды өңдеу",coachMarkContentSpiralTarget:"Мұнда мақсатыңызға арналған драйвер таңдауына кіруге және оны өзгертуге болады.",overlayDropZonePlaceHolderText:"Деректерді осы жерге апарыңыз"},__ko:{localFilters:"로컬 필터",slotEditorMsg1:"필수 필드",slotEditorMsg2:"시각화를 빌드하고 필터링하려면 위의 필드에 데이터를 끌어서 놓으십시오.",missingColumn:"누락: %{columnLabel}",placeholderDropzone:"데이터 클릭 또는 여기로 끌기",slotEditor_emptyState_no_visualization_selected_title:"선택된 시각화 없음",slotEditor_emptyState_no_visualization_selected_description:"필드 설정을 관리하려면 시각화를 선택하십시오.",slotEditor_emptyState_widget_not_support_slot_selected_title:"선택한 위젯에서 필드를 사용하지 않음",slotEditor_emptyState_widget_not_support_slot_selected_description:"필드 설정을 관리하려면 시각화를 선택하십시오.",slotEditor_emptyState_multiple_visualizations_selected_title:"여러 위젯이 선택됨",slotEditor_emptyState_multiple_visualizations_selected_description:"필드 설정을 관리하려면 시각화를 선택하십시오.",slotEditor_emptyState_visualization_has_error_title:"시각화를 표시할 수 없음",slotEditor_slotItem_tooltip:"소스:",slotEditor_emptyState_vis_not_created_title:"작성된 시각화 없음",slotEditor_emptyState_vis_not_created_description:"필드 설정을 관리하려면 시각화를 작성하십시오.",slotEditor:"필드",slotEditorCoachMarkTitle:"액세스 필드",slotEditorCoachMarkContents:"시각화를 빌드하고 수정하려면 필드에 열을 추가하십시오.",toolbarDeleteFilterActionText:"필터 제거",toolbarActionFilter:"필터",filterAutobinActionText:"구간 필터",coachMarkTitleSpiralTarget:"범위 편집",coachMarkContentSpiralTarget:"대상에 대한 드라이버 선택에 액세스하고 수정할 수 있는 위치입니다.",overlayDropZonePlaceHolderText:"데이터 여기에 놓기"},__nb:{localFilters:"Lokale filtre",slotEditorMsg1:"Obligatorisk felt",slotEditorMsg2:"Dra og slipp data i feltene ovenfor for å bygge og filtrere visualiseringen.",missingColumn:"Mangler: %{columnLabel}",placeholderDropzone:"Klikk eller dra data hit",slotEditor_emptyState_no_visualization_selected_title:"Ingen visualisering valgt",slotEditor_emptyState_no_visualization_selected_description:"Velg en visualisering for å administrere innstillingene for felt.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Den valgte widgeten bruker ikke felt",slotEditor_emptyState_widget_not_support_slot_selected_description:"Velg en visualisering for å administrere innstillingene for felt.",slotEditor_emptyState_multiple_visualizations_selected_title:"Flere widgeter valgt",slotEditor_emptyState_multiple_visualizations_selected_description:"Velg en visualisering for å administrere innstillingene for felt.",slotEditor_emptyState_visualization_has_error_title:"Visualiseringen kan ikke vises",slotEditor_slotItem_tooltip:"Kilde:",slotEditor_emptyState_vis_not_created_title:"Ingen visualisering opprettet",slotEditor_emptyState_vis_not_created_description:"Opprett en visualisering for å administrere innstillingene for felt.",slotEditor:"Felt",slotEditorCoachMarkTitle:"Tilgang til felt",slotEditorCoachMarkContents:"Legg til kolonner i feltene for å bygge og endre visualiseringer.",toolbarDeleteFilterActionText:"Fjern filter",toolbarActionFilter:"Filtrer",filterAutobinActionText:"Filtrer binger",coachMarkTitleSpiralTarget:"Rediger omfang",coachMarkContentSpiralTarget:"Her får du tilgang til og kan endre drivervalget for målet ditt.",overlayDropZonePlaceHolderText:"Dra data hit"},__nl:{localFilters:"Lokale filters",slotEditorMsg1:"Verplicht veld",slotEditorMsg2:"Versleep de gegevens naar de bovenstaande velden om de visualisatie samen te stellen en te filteren.",missingColumn:"%{columnLabel} ontbreekt",placeholderDropzone:"Klik hier of versleep gegevens hiernaartoe",slotEditor_emptyState_no_visualization_selected_title:"Geen visualisatie geselecteerd",slotEditor_emptyState_no_visualization_selected_description:"Selecteer een visualisatie om de instellingen van het veld te beheren.",slotEditor_emptyState_widget_not_support_slot_selected_title:"De geselecteerde widget gebruikt geen velden",slotEditor_emptyState_widget_not_support_slot_selected_description:"Selecteer een visualisatie om de instellingen van het veld te beheren.",slotEditor_emptyState_multiple_visualizations_selected_title:"Meerdere widgets geselecteerd",slotEditor_emptyState_multiple_visualizations_selected_description:"Selecteer een visualisatie om de instellingen van het veld te beheren.",slotEditor_emptyState_visualization_has_error_title:"De visualisatie kan niet worden afgebeeld",slotEditor_slotItem_tooltip:"Bron:",slotEditor_emptyState_vis_not_created_title:"Geen visualisatie gemaakt",slotEditor_emptyState_vis_not_created_description:"Maak een visualisatie om de instellingen van het veld te beheren.",slotEditor:"Velden",slotEditorCoachMarkTitle:"Velden benaderen",slotEditorCoachMarkContents:"Voeg kolommen toe aan de velden om visualisaties te bouwen en te wijzigen.",toolbarDeleteFilterActionText:"Filter verwijderen",toolbarActionFilter:"Filteren",filterAutobinActionText:"Bins filteren",coachMarkTitleSpiralTarget:"Bereik bewerken",coachMarkContentSpiralTarget:"Dit is de plek waar u toegang hebt tot de driverselectie voor uw doel en waar u wijzigingen kunt aanbrengen.",overlayDropZonePlaceHolderText:"Sleep gegevens hier naartoe"},__no:{localFilters:"Lokale filtre",slotEditorMsg1:"Obligatorisk felt",slotEditorMsg2:"Dra og slipp data i feltene ovenfor for å bygge og filtrere visualiseringen.",missingColumn:"Mangler: %{columnLabel}",placeholderDropzone:"Klikk eller dra data hit",slotEditor_emptyState_no_visualization_selected_title:"Ingen visualisering valgt",slotEditor_emptyState_no_visualization_selected_description:"Velg en visualisering for å administrere innstillingene for felt.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Den valgte widgeten bruker ikke felt",slotEditor_emptyState_widget_not_support_slot_selected_description:"Velg en visualisering for å administrere innstillingene for felt.",slotEditor_emptyState_multiple_visualizations_selected_title:"Flere widgeter valgt",slotEditor_emptyState_multiple_visualizations_selected_description:"Velg en visualisering for å administrere innstillingene for felt.",slotEditor_emptyState_visualization_has_error_title:"Visualiseringen kan ikke vises",slotEditor_slotItem_tooltip:"Kilde:",slotEditor_emptyState_vis_not_created_title:"Ingen visualisering opprettet",slotEditor_emptyState_vis_not_created_description:"Opprett en visualisering for å administrere innstillingene for felt.",slotEditor:"Felt",slotEditorCoachMarkTitle:"Tilgang til felt",slotEditorCoachMarkContents:"Legg til kolonner i feltene for å bygge og endre visualiseringer.",toolbarDeleteFilterActionText:"Fjern filter",toolbarActionFilter:"Filtrer",filterAutobinActionText:"Filtrer binger",coachMarkTitleSpiralTarget:"Rediger omfang",coachMarkContentSpiralTarget:"Her får du tilgang til og kan endre drivervalget for målet ditt.",overlayDropZonePlaceHolderText:"Dra data hit"},__pl:{localFilters:"Filtry lokalne",slotEditorMsg1:"Pole wymagane",slotEditorMsg2:"Przeciągnij i upuść dane w powyższych szczelinach, aby utworzyć i przefiltrować wizualizację.",missingColumn:"Brak: %{columnLabel}",placeholderDropzone:"Kliknij lub przeciągnij dane w to miejsce",slotEditor_emptyState_no_visualization_selected_title:"Nie wybrano wizualizacji",slotEditor_emptyState_no_visualization_selected_description:"Wybierz wizualizację, aby zarządzać ustawieniami pól.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Wybrany widget nie korzysta ze pól",slotEditor_emptyState_widget_not_support_slot_selected_description:"Wybierz wizualizację, aby zarządzać ustawieniami pól.",slotEditor_emptyState_multiple_visualizations_selected_title:"Wybrano więcej niż jeden widget",slotEditor_emptyState_multiple_visualizations_selected_description:"Wybierz wizualizację, aby zarządzać ustawieniami pól.",slotEditor_emptyState_visualization_has_error_title:"Nie można wyświetlić wizualizacji",slotEditor_slotItem_tooltip:"Źródło:",slotEditor_emptyState_vis_not_created_title:"Nie utworzono żadnej wizualizacji",slotEditor_emptyState_vis_not_created_description:"Utwórz wizualizację, aby zarządzać ustawieniami pól.",slotEditor:"Pola",slotEditorCoachMarkTitle:"Uzyskaj dostęp do pól",slotEditorCoachMarkContents:"Dodawaj kolumny do pól, aby budować i modyfikować wizualizacje.",toolbarDeleteFilterActionText:"Usuń filtr",toolbarActionFilter:"Filtr",filterAutobinActionText:"Filtruj kategorie",coachMarkTitleSpiralTarget:"Edytuj zakres",coachMarkContentSpiralTarget:"W tym miejscu można uzyskać dostęp do czynników dla zmiennej przewidywanej i zmodyfikować ich wybór.",overlayDropZonePlaceHolderText:"Przeciągnij tutaj dane"},__pt:{localFilters:"Filtros locais",slotEditorMsg1:"Campo requerido",slotEditorMsg2:"Arraste e solte dados para os campos acima para criar e filtrar a visualização.",missingColumn:"Ausente: %{columnLabel}",placeholderDropzone:"Clicar ou arrastar dados aqui",slotEditor_emptyState_no_visualization_selected_title:"Nenhuma visualização selecionada",slotEditor_emptyState_no_visualization_selected_description:"Selecione uma visualização para gerenciar as configurações de campo.",slotEditor_emptyState_widget_not_support_slot_selected_title:"O widget selecionado não usa campos",slotEditor_emptyState_widget_not_support_slot_selected_description:"Selecione uma visualização para gerenciar as configurações de campo.",slotEditor_emptyState_multiple_visualizations_selected_title:"Vários widgets selecionados",slotEditor_emptyState_multiple_visualizations_selected_description:"Selecione uma visualização para gerenciar as configurações de campo.",slotEditor_emptyState_visualization_has_error_title:"Não é possível exibir a visualização",slotEditor_slotItem_tooltip:"Origem:",slotEditor_emptyState_vis_not_created_title:"Nenhuma visualização criada",slotEditor_emptyState_vis_not_created_description:"Crie uma visualização para gerenciar as configurações de campo.",slotEditor:"Campos",slotEditorCoachMarkTitle:"Campos de acesso",slotEditorCoachMarkContents:"Inclua colunas nos campos para criar e modificar visualizações.",toolbarDeleteFilterActionText:"Remover filtro",toolbarActionFilter:"Filtrar",filterAutobinActionText:"Filtro de categorias",coachMarkTitleSpiralTarget:"Editar escopo",coachMarkContentSpiralTarget:"Este é o local onde é possível acessar e modificar a seleção do driver para seu destino.",overlayDropZonePlaceHolderText:"Arraste os dados para cá"},"__pt-br":{localFilters:"Filtros locais",slotEditorMsg1:"Campo requerido",slotEditorMsg2:"Arraste e solte dados para os campos acima para criar e filtrar a visualização.",missingColumn:"Ausente: %{columnLabel}",placeholderDropzone:"Clicar ou arrastar dados aqui",slotEditor_emptyState_no_visualization_selected_title:"Nenhuma visualização selecionada",slotEditor_emptyState_no_visualization_selected_description:"Selecione uma visualização para gerenciar as configurações de campo.",slotEditor_emptyState_widget_not_support_slot_selected_title:"O widget selecionado não usa campos",slotEditor_emptyState_widget_not_support_slot_selected_description:"Selecione uma visualização para gerenciar as configurações de campo.",slotEditor_emptyState_multiple_visualizations_selected_title:"Vários widgets selecionados",slotEditor_emptyState_multiple_visualizations_selected_description:"Selecione uma visualização para gerenciar as configurações de campo.",slotEditor_emptyState_visualization_has_error_title:"Não é possível exibir a visualização",slotEditor_slotItem_tooltip:"Origem:",slotEditor_emptyState_vis_not_created_title:"Nenhuma visualização criada",slotEditor_emptyState_vis_not_created_description:"Crie uma visualização para gerenciar as configurações de campo.",slotEditor:"Campos",slotEditorCoachMarkTitle:"Campos de acesso",slotEditorCoachMarkContents:"Inclua colunas nos campos para criar e modificar visualizações.",toolbarDeleteFilterActionText:"Remover filtro",toolbarActionFilter:"Filtrar",filterAutobinActionText:"Filtro de categorias",coachMarkTitleSpiralTarget:"Editar escopo",coachMarkContentSpiralTarget:"Este é o local onde é possível acessar e modificar a seleção do driver para seu destino.",overlayDropZonePlaceHolderText:"Arraste os dados para cá"},__ro:{localFilters:"Filtre locale",slotEditorMsg1:"Câmp necesar",slotEditorMsg2:"Trageţi şi plasaţi datele în câmpurile de deasupra, pentru a construi şi filtra vizualizarea.",missingColumn:"Lipsă: %{columnLabel}",placeholderDropzone:"Faceţi clic sau trageţi date aici ",slotEditor_emptyState_no_visualization_selected_title:"Nicio vizualizare selectată",slotEditor_emptyState_no_visualization_selected_description:"Selectaţi o vizualizare pentru gestionarea setărilor de câmp.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Widget-ul selectat nu utilizează câmpuri.",slotEditor_emptyState_widget_not_support_slot_selected_description:"Selectaţi o vizualizare pentru gestionarea setărilor de câmp.",slotEditor_emptyState_multiple_visualizations_selected_title:"Sunt selectate mai multe widget-uri",slotEditor_emptyState_multiple_visualizations_selected_description:"Selectaţi o vizualizare pentru gestionarea setărilor de câmp.",slotEditor_emptyState_visualization_has_error_title:"Vizualizarea nu poate fi afişată.",slotEditor_slotItem_tooltip:"Sursă:",slotEditor_emptyState_vis_not_created_title:"Nu a fost creată nicio vizualizare",slotEditor_emptyState_vis_not_created_description:"Creaţi o vizualizare pentru gestionarea setărilor de câmp.",slotEditor:"Câmpuri",slotEditorCoachMarkTitle:"Accesare câmpuri",slotEditorCoachMarkContents:"Adăugaţi coloane la câmpuri pentru a construi şi modifica vizualizările.",toolbarDeleteFilterActionText:"Înlăturare filtru",toolbarActionFilter:"Filtru",filterAutobinActionText:"Filtrare bin-uri",coachMarkTitleSpiralTarget:"Editare domeniu",coachMarkContentSpiralTarget:"Aici puteţi accesa şi modifica selecţia de driver-e pentru ţinta dumneavoastră.",overlayDropZonePlaceHolderText:"Trageţi date aici"},__ru:{localFilters:"Локальные фильтры",slotEditorMsg1:"Обязательное поле",slotEditorMsg2:"Перетащите данные на находящиеся выше поля, чтобы построить визуализацию и применить к ней фильтр.",missingColumn:"Отсутствует: %{columnLabel}",placeholderDropzone:"Щелкните здесь или перетащите сюда данные",slotEditor_emptyState_no_visualization_selected_title:"Визуализация не отобрана",slotEditor_emptyState_no_visualization_selected_description:"Выберите визуализацию для управления настройками полей.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Выбранный виджет не использует поля",slotEditor_emptyState_widget_not_support_slot_selected_description:"Выберите визуализацию для управления настройками полей.",slotEditor_emptyState_multiple_visualizations_selected_title:"Выбрано несколько виджетов",slotEditor_emptyState_multiple_visualizations_selected_description:"Выберите визуализацию для управления настройками полей.",slotEditor_emptyState_visualization_has_error_title:"Вывести визуализацию невозможно",slotEditor_slotItem_tooltip:"Источник:",slotEditor_emptyState_vis_not_created_title:"Визуализация не создана",slotEditor_emptyState_vis_not_created_description:"Создайте визуализацию для управления настройками полей.",slotEditor:"Поля",slotEditorCoachMarkTitle:"Доступ к полям",slotEditorCoachMarkContents:"Добавьте в поля столбцы для построения и изменения визуализаций.",toolbarDeleteFilterActionText:"Удалить фильтр",toolbarActionFilter:"Фильтр",filterAutobinActionText:"Применить фильтр к контейнерам",coachMarkTitleSpiralTarget:"Изменить область",coachMarkContentSpiralTarget:"Здесь можно получить доступ и изменить выбор драйвера для целевого объекта.",overlayDropZonePlaceHolderText:"Перетащите сюда данные"},__sl:{localFilters:"Lokalni filtri",slotEditorMsg1:"Obvezno polje",slotEditorMsg2:"Povlecite in spustite podatke v polja zgoraj, da zgradite in filtrirate vizualizacijo.",missingColumn:"Manjkajoče: %{columnLabel}",placeholderDropzone:"Kliknite ali povlecite podatke sem",slotEditor_emptyState_no_visualization_selected_title:"Izbrana ni nobena vizualizacija",slotEditor_emptyState_no_visualization_selected_description:"Izberite vizualizacijo za upravljanje nastavitev polja.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Izbrani gradnik ne uporablja polj",slotEditor_emptyState_widget_not_support_slot_selected_description:"Izberite vizualizacijo za upravljanje nastavitev polja.",slotEditor_emptyState_multiple_visualizations_selected_title:"Izbranih je več gradnikov",slotEditor_emptyState_multiple_visualizations_selected_description:"Izberite vizualizacijo za upravljanje nastavitev polja.",slotEditor_emptyState_visualization_has_error_title:"Vizualizacije ni mogoče prikazati",slotEditor_slotItem_tooltip:"Izvor:",slotEditor_emptyState_vis_not_created_title:"Ustvarjena ni bila nobena vizualizacija",slotEditor_emptyState_vis_not_created_description:"Ustvarite vizualizacijo za upravljanje nastavitev polja.",slotEditor:"Polja",slotEditorCoachMarkTitle:"Polja za dostop",slotEditorCoachMarkContents:"V polja dodajte stolpce, da boste lahko gradili in spreminjali vizualizacije.",toolbarDeleteFilterActionText:"Odstrani filter",toolbarActionFilter:"Filter",filterAutobinActionText:"Predali filtra",coachMarkTitleSpiralTarget:"Urejanje območja",coachMarkContentSpiralTarget:"Tukaj lahko dostopate do izbora gonilnikov za svoj cilj in jih spreminjate.",overlayDropZonePlaceHolderText:"Povlecite podatke sem"},__sv:{localFilters:"Lokala filter",slotEditorMsg1:"Obligatoriskt fält",slotEditorMsg2:"Dra data till fälten ovan för att skapa och filtrera visualiseringen.",missingColumn:"%{columnLabel} saknas",placeholderDropzone:"Klicka eller dra data hit",slotEditor_emptyState_no_visualization_selected_title:"Ingen visualisering vald",slotEditor_emptyState_no_visualization_selected_description:"Välj en visualisering för att hantera fältinställningarna.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Den valda widgeten använder inte fält",slotEditor_emptyState_widget_not_support_slot_selected_description:"Välj en visualisering för att hantera fältinställningarna.",slotEditor_emptyState_multiple_visualizations_selected_title:"Flera widgetar har valts",slotEditor_emptyState_multiple_visualizations_selected_description:"Välj en visualisering för att hantera fältinställningarna.",slotEditor_emptyState_visualization_has_error_title:"Det går inte att visa visualiseringen",slotEditor_slotItem_tooltip:"Källa:",slotEditor_emptyState_vis_not_created_title:"Inga visualiseringar har skapats",slotEditor_emptyState_vis_not_created_description:"Skapa en visualisering för att hantera fältinställningarna.",slotEditor:"Fält",slotEditorCoachMarkTitle:"Åtkomst till fält",slotEditorCoachMarkContents:"Lägg till kolumner i fälten för att skapa och ändra visualiseringar.",toolbarDeleteFilterActionText:"Ta bort filter",toolbarActionFilter:"Filtrera",filterAutobinActionText:"Filtrera bin",coachMarkTitleSpiralTarget:"Ändra omfattning",coachMarkContentSpiralTarget:"Här kan du komma åt och ändra valet av styrfunktioner för målet.",overlayDropZonePlaceHolderText:"Dra data hit"},__th:{localFilters:"ตัวกรองโลคัล",slotEditorMsg1:"ฟิลด์ที่จำเป็น",slotEditorMsg2:"ลากและปล่อยข้อมูลลงในฟิลด์ด้านบนเพื่อบิลด์และกรองวิชวลไลเซชัน",missingColumn:"ไม่มี: %{columnLabel}",placeholderDropzone:"คลิกหรือลากข้อมูลที่นี่",slotEditor_emptyState_no_visualization_selected_title:"ไม่ได้เลือกวิชวลไลเซชัน",slotEditor_emptyState_no_visualization_selected_description:"เลือกวิชวลไลเซชันที่จะจัดการการตั้งค่าฟิลด์",slotEditor_emptyState_widget_not_support_slot_selected_title:"วิดเจ็ตที่เลือกไม่ได้ใช้ฟิลด์",slotEditor_emptyState_widget_not_support_slot_selected_description:"เลือกวิชวลไลเซชันที่จะจัดการการตั้งค่าฟิลด์",slotEditor_emptyState_multiple_visualizations_selected_title:"เลือกหลายวิดเจ็ต",slotEditor_emptyState_multiple_visualizations_selected_description:"เลือกวิชวลไลเซชันที่จะจัดการการตั้งค่าฟิลด์",slotEditor_emptyState_visualization_has_error_title:"วิชวลไลเซชันไม่สามารถแสดงผลได้",slotEditor_slotItem_tooltip:"ซอร์ส:",slotEditor_emptyState_vis_not_created_title:"ไม่มีการสร้างวิชวลไลเซชัน",slotEditor_emptyState_vis_not_created_description:"สร้างวิชวลไลเซชันที่จะจัดการการตั้งค่าฟิลด์",slotEditor:"ฟิลด์",slotEditorCoachMarkTitle:"เข้าถึงฟิลด์",slotEditorCoachMarkContents:"เพิ่มคอลัมน์ลงในฟิลด์เพื่อบิลด์และปรับเปลี่ยนวิชวลไลเซชัน",toolbarDeleteFilterActionText:"ลบตัวกรอง",toolbarActionFilter:"ตัวกรอง",filterAutobinActionText:"ถังกรอง",coachMarkTitleSpiralTarget:"แก้ไขขอบเขต",coachMarkContentSpiralTarget:"นี่เป็นตำแหน่งที่คุณสามารถเข้าถึงและปรับเปลี่ยนการเลือกไดรเวอร์สำหรับเป้าหมายของคุณ",overlayDropZonePlaceHolderText:"ลากข้อมูลที่นี่"},__tr:{localFilters:"Yerel süzgeçler",slotEditorMsg1:"Zorunlu alan",slotEditorMsg2:"Görselleştirmeyi oluşturup süzgeçten geçirmek için verileri yukarıdaki alanlara sürükleyip bırakın.",missingColumn:"Eksik: %{columnLabel}",placeholderDropzone:"Tıklatın veya verileri buraya sürükleyin",slotEditor_emptyState_no_visualization_selected_title:"Bir görselleştirme seçilmedi",slotEditor_emptyState_no_visualization_selected_description:"Alan ayarlarını yönetmek için bir görselleştirme seçin.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Seçilen pencere öğesi alanları kullanmıyor",slotEditor_emptyState_widget_not_support_slot_selected_description:"Alan ayarlarını yönetmek için bir görselleştirme seçin.",slotEditor_emptyState_multiple_visualizations_selected_title:"Birden çok pencere öğesi seçildi",slotEditor_emptyState_multiple_visualizations_selected_description:"Alan ayarlarını yönetmek için bir görselleştirme seçin.",slotEditor_emptyState_visualization_has_error_title:"Görselleştirme görüntülenemiyor",slotEditor_slotItem_tooltip:"Kaynak:",slotEditor_emptyState_vis_not_created_title:"Bir görselleştirme oluşturulmadı",slotEditor_emptyState_vis_not_created_description:"Alan ayarlarını yönetmek için bir görselleştirme oluşturun.",slotEditor:"Alanlar",slotEditorCoachMarkTitle:"Erişim alanları",slotEditorCoachMarkContents:"Görselleştirmeleri oluşturmak ve değiştirmek için alanlara sütun ekleyin.",toolbarDeleteFilterActionText:"Süzgeci kaldır",toolbarActionFilter:"Süzgeç",filterAutobinActionText:"Süzgeç bölmeleri",coachMarkTitleSpiralTarget:"Kapsamı düzenle",coachMarkContentSpiralTarget:"Burası, hedefiniz için sürücü seçimine erişebileceğiniz ve sürücü seçimini değiştirebileceğiniz yerdir.",overlayDropZonePlaceHolderText:"Verileri buraya sürükleyin"},__zh:{localFilters:"本地过滤器",slotEditorMsg1:"必填字段",slotEditorMsg2:"将数据拖放到字段上方可构建并过滤可视化。",missingColumn:"缺少:%{columnLabel}",placeholderDropzone:"单击数据或将数据拖到此处",slotEditor_emptyState_no_visualization_selected_title:"未选择任何可视化",slotEditor_emptyState_no_visualization_selected_description:"选择可视化以管理字段设置。",slotEditor_emptyState_widget_not_support_slot_selected_title:"所选窗口小部件不使用字段",slotEditor_emptyState_widget_not_support_slot_selected_description:"选择可视化以管理字段设置。",slotEditor_emptyState_multiple_visualizations_selected_title:"已选择多个窗口小部件",slotEditor_emptyState_multiple_visualizations_selected_description:"选择可视化以管理字段设置。",slotEditor_emptyState_visualization_has_error_title:"无法显示可视化",slotEditor_slotItem_tooltip:"源:",slotEditor_emptyState_vis_not_created_title:"未创建任何可视化",slotEditor_emptyState_vis_not_created_description:"创建可视化以管理字段设置。",slotEditor:"字段",slotEditorCoachMarkTitle:"访问字段",slotEditorCoachMarkContents:"向字段添加列以构建并修改可视化。",toolbarDeleteFilterActionText:"除去过滤器",toolbarActionFilter:"过滤器",filterAutobinActionText:"过滤分箱",coachMarkTitleSpiralTarget:"编辑作用域",coachMarkContentSpiralTarget:"您可以在此访问和修改目标的动因选择。",overlayDropZonePlaceHolderText:"将数据拖到此处"},"__zh-cn":{localFilters:"本地过滤器",slotEditorMsg1:"必填字段",slotEditorMsg2:"将数据拖放到字段上方可构建并过滤可视化。",missingColumn:"缺少:%{columnLabel}",placeholderDropzone:"单击数据或将数据拖到此处",slotEditor_emptyState_no_visualization_selected_title:"未选择任何可视化",slotEditor_emptyState_no_visualization_selected_description:"选择可视化以管理字段设置。",slotEditor_emptyState_widget_not_support_slot_selected_title:"所选窗口小部件不使用字段",slotEditor_emptyState_widget_not_support_slot_selected_description:"选择可视化以管理字段设置。",slotEditor_emptyState_multiple_visualizations_selected_title:"已选择多个窗口小部件",slotEditor_emptyState_multiple_visualizations_selected_description:"选择可视化以管理字段设置。",slotEditor_emptyState_visualization_has_error_title:"无法显示可视化",slotEditor_slotItem_tooltip:"源:",slotEditor_emptyState_vis_not_created_title:"未创建任何可视化",slotEditor_emptyState_vis_not_created_description:"创建可视化以管理字段设置。",slotEditor:"字段",slotEditorCoachMarkTitle:"访问字段",slotEditorCoachMarkContents:"向字段添加列以构建并修改可视化。",toolbarDeleteFilterActionText:"除去过滤器",toolbarActionFilter:"过滤器",filterAutobinActionText:"过滤分箱",coachMarkTitleSpiralTarget:"编辑作用域",coachMarkContentSpiralTarget:"您可以在此访问和修改目标的动因选择。",overlayDropZonePlaceHolderText:"将数据拖到此处"},"__zh-tw":{localFilters:"本端過濾器",slotEditorMsg1:"必要欄位",slotEditorMsg2:"將資料拖放至上方的欄位來建置及過濾視覺化。",missingColumn:"遺漏:%{columnLabel}",placeholderDropzone:"在這裡按一下或拖曳資料",slotEditor_emptyState_no_visualization_selected_title:"未選取任何視覺化",slotEditor_emptyState_no_visualization_selected_description:"選取視覺化以管理欄位設定。",slotEditor_emptyState_widget_not_support_slot_selected_title:"選取的小組件沒有使用欄位。",slotEditor_emptyState_widget_not_support_slot_selected_description:"選取視覺化以管理欄位設定。",slotEditor_emptyState_multiple_visualizations_selected_title:"已選取多個小組件",slotEditor_emptyState_multiple_visualizations_selected_description:"選取視覺化以管理欄位設定。",slotEditor_emptyState_visualization_has_error_title:"無法顯示視覺化。",slotEditor_slotItem_tooltip:"來源:",slotEditor_emptyState_vis_not_created_title:"未建立任何視覺化",slotEditor_emptyState_vis_not_created_description:"建立視覺化以管理欄位設定。",slotEditor:"欄位",slotEditorCoachMarkTitle:"存取欄位",slotEditorCoachMarkContents:"將直條圖新增至欄位以建置和修改視覺化。",toolbarDeleteFilterActionText:"移除過濾器",toolbarActionFilter:"過濾",filterAutobinActionText:"過濾組",coachMarkTitleSpiralTarget:"編輯範圍",coachMarkContentSpiralTarget:"您可以在此處存取及修改目標動因選項。",overlayDropZonePlaceHolderText:"將資料拖曳至此"},init:function(t){t||(t=window._i18n&&window._i18n.locale?window._i18n.locale:document.documentElement.lang?document.documentElement.lang:"root");var e=this["__"+t]||this.__root;if(e)for(var o in e)this[o]=e[o];for(var o in this.__root)void 0===this[o]&&(this[o]=this.__root[o])}};o.init(),t.exports=o},function(t,e){t.exports=i},,,,function(t,e){t.exports=n},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),r=i(o(4)),a=i(o(6)),s=o(88),l=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return n(t,[{key:"getToolbar",value:function(){return this._actionMenuToolbar}},{key:"buildActionToolbar",value:function(t,e,o,i){var n=a.default.clone(i);n.textOnly=!0,n.container=(0,r.default)("body"),n.notCentered=!0,n.popoverClass="popover actionToolbarPopover text",this.$parentNode=(0,r.default)(e),this.$parentNode.addClass("action-menu-opened");var l=this.$parentNode.find(i.attachPoint||".toolbarRoot"),u=new s(n);u.setName(o),u.addItems(t),u.setSelectionContext([l]),u.show(n.placement),u.on("flyout:hide",this.removeToolbar,this),u.on("toolbar:remove",this.onToolbarRemove.bind(this)),this._actionMenuToolbar=u}},{key:"removeToolbar",value:function(){this._actionMenuToolbar&&this._actionMenuToolbar.remove(!0)}},{key:"onToolbarRemove",value:function(){this.$parentNode&&(this.$parentNode.removeClass("action-menu-opened"),this.$parentNode=null),this._actionMenuToolbar&&(this._actionMenuToolbar=null)}}]),t}();e.default=l},,,,,,,,,,,,,,,,function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),n=function(t){return t&&t.__esModule?t:{default:t}}(o(2)),r="editFilterAction",a=function(){function t(e,o,i,a){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this.dashboard=e,this.content=o,this.metadataColumn=i,this.filterId=a,this.visualization=o.getFeature("Visualization"),this.itemContext={itemId:i.getId(),itemName:i.getLabel(),dataType:i.getDataType(),isHierarchy:i.isHierarchy(),isNamedSet:i.isNamedSet(),sourceId:this.visualization.getDataSource().getId()},this.renderModule=this.getEditorModuleName(),this.toolbarContribution=[{name:"filter",text:n.default.get("toolbarActionFilter"),label:n.default.get("toolbarActionFilter"),icon:"common-filter",type:"NextView",group:r,viewModule:this.renderModule,viewOptions:this.getViewOptions.bind(this)}]}return i(t,[{key:"getActionId",value:function(){return r}},{key:"getAvailableActions",value:function(){return this.toolbarContribution}},{key:"getViewOptions",value:function(){return{height:300,width:212,metadataColumn:this.metadataColumn,logger:this.dashboard.getService(this.dashboard.GLOBAL_SERVICES.LOGGER),dashboardApi:this.dashboard,visualization:this.visualization,itemContext:this.itemContext}}},{key:"getEditorModuleName",value:function(){return"dashboard-analytics/dialogs/CommonViewWrapper"}},{key:"isEnabled",value:function(){var t=this;if(!this.filterId)return!1;var e=this.visualization.getLocalFilters().getFilterList().find((function(e){return e.id===t.filterId}));return!!e&&!e.readOnly}}]),t}();e.default=a},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),r=i(o(84)),a=i(o(85)),s=o(5),l=i(o(96)),u=i(o(2)),c=o(20),d=function(){function t(e){var o=e.features;(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this._dashboardApi=o.API,this._dashboardState=o.DashboardState,this._slideout=o.InAppSlideoutState,this._api=null,this._model=null}return n(t,[{key:"getAPI",value:function(){return this._api}},{key:"initialize",value:function(){var t=this;this._api=c.createAPI(this,[r.default]),this._model=a.default.create({slotsModel:{},localFiltersModel:{}},{dashboardApi:this._dashboardApi}),this._slideout.registerContribution(this.getProviderId(),{name:"slotEditor",group:"slotEditorAction",coachMark:this._getCoachMarkOptions(),order:4,label:u.default.get("slotEditor"),text:u.default.get("slotEditor"),className:"buttonWithText",icon:l.default.id,type:"Button",disabled:function(){return t._dashboardState&&t._dashboardState.getUiState().eventGroups},isEnabled:function(e){return!(e.length>0)&&t._dashboardState.getUiState().authoring&&t.hasCapability(t._dashboardApi,"canAuthorDashboard")}}),this._dashboardApi.getCanvasWhenReady().then((function(e){e.on("add:content:child",t._openSlotsSlideOut,t)}))}},{key:"hasCapability",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"canUseInteractiveDashboard",o=t.getCoreSvc||t.getGlassCoreSvc,i=o.call(t,".UserProfile"),n=i.capabilities;return-1!==(void 0===n?[]:n).indexOf(e)}},{key:"getModel",value:function(){return this._model}},{key:"getProviderId",value:function(){return"SlotEditor"}},{key:"destroy",value:function(){this._slideout.removeContribution(this.getProviderId());var t=this._dashboardApi.getCanvas();t&&t.off("add:content:child",this._openSlotsSlideOut,this),this._dashboardApi=null,this._api=null,(0,s.destroy)(this._model),this._model=null,this._slideout=null}},{key:"_getCoachMarkOptions",value:function(){return{title:u.default.get("slotEditorCoachMarkTitle"),contents:u.default.get("slotEditorCoachMarkContents"),id:"com.ibm.bi.dashboard.slotEditorAction",dashboard:this._dashboardApi}}},{key:"_openSlotsSlideOut",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.info&&t.info.value&&t.info.value.spec||{},o="live"===e.type,i=e.data||{},n=0===Object.keys(i).length;o&&n&&(this._dashboardState.setSidePanelCurrentView(this.getProviderId()),this._slideout.isOpen()||this._slideout.open())}}]),t}();t.exports=d},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),n=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return i(t,[{key:"getModel",value:function(){}},{key:"getProviderId",value:function(){}}]),t}();e.default=n},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(5),r=i(o(86)),a=i(o(91)),s=i(o(6)),l=o(7),u={DISPLAY:"DISPLAY",EMPTY:{NO_VIS_CREATED:"NO_VIS_CREATED",NOT_SUPPORT_SLOTS:"NOT_SUPPORT_SLOTS",NO_VIS_SELECTED:"NO_VIS_SELECTED",MUILTI_SELECTION:"MUILTI_SELECTION",ERROR:"ERROR"}};e.default=n.types.model("SlotEditorModel",{slotsModel:r.default,localFiltersModel:a.default}).volatile((function(){return{dashboardApi:null,canvas:null,selectedContents:[],slotEditorState:""}})).views((function(t){return{getSlotInfo:function(){return t.slotsModel&&(0,n.isAlive)(t.slotsModel)?t.slotsModel.getSlotInfo():[]},getLocalFilters:function(){return t.localFiltersModel&&(0,n.isAlive)(t.localFiltersModel)?t.localFiltersModel.getLocalFilters():[]},getSlotDataItemHandler:function(e,o){return t.slotsModel?t.slotsModel.getSlotDataItemHandler(e,o):null},getFilterActionHandler:function(){return t.localFiltersModel?t.localFiltersModel.getFilterActionHandler():null},get SLOT_EDITOR_STATES(){return u}}})).actions((function(t){var e=[],o=function(t,e){return!((t.getDefinition().getDatasetList()||[]).find((function(t){return t.id===e}))||{}).caption},i=function(t){var e=t.getSlots().getSlotList(),i=t.getDefinition().getSlotList().filter((function(t){return t.getDatasetIdList().length>1})),n=[];if(i.length>0)n.push({slotAPIs:e||[],layerId:"data",layerCaption:null,isHideLayer:o(t,"data")});else{var r=s.default.groupBy(e,(function(t){return t.getDefinition().getDatasetIdList()[0]}));t.getDefinition().getDatasetList().forEach((function(e,i){var a=r[e.id];n.push({slotAPIs:a||[],layerId:e.id,layerCaption:e.caption||e.id,isHideLayer:o(t,e.id),open:0===i})}))}return n},r=null,a=null;return{afterCreate:function(){var o=function(e){return function(){(0,n.isAlive)(t)&&t._updateModel(e)}};r=s.default.debounce(o(!0)),a=s.default.debounce(o(!1)),t.dashboardApi=(0,n.getEnv)(t).dashboardApi,t.dashboardApi&&(t.slotsModel&&t.slotsModel.setDashboardApi(t.dashboardApi),t.localFiltersModel&&t.localFiltersModel.setDashboardApi(t.dashboardApi),t.dashboardApi.getCanvasWhenReady().then((function(o){t.setCanvas(o),o.on("change:selections:select",r),o.on("change:selections:deselect",r),e.push(t.dashboardApi.on("shapingmodel:changed",(function(t){t&&!t.noRefresh&&a()}))),a()})))},beforeDestroy:function(){e.forEach((function(t){return t.remove()})),t.canvas&&(t.canvas.off("change:selections:select",r),t.canvas.off("change:selections:deselect",r))},setCanvas:function(e){t.canvas=e},_updateModel:function(e){t._setSlotEditorState(),t._setSlotsAndLocalFilters(e)},_setSlotEditorState:function(){var e=t.canvas.getSelectedContentList();if(t.selectedContents=e,0===e.length)t.slotEditorState=u.EMPTY.NO_VIS_SELECTED;else if(1===e.length){var o=e[0],i=o&&o.getType();if("widget.live"===i){var n=o.getFeature("Visualization");if(n){var r=n.getDefinition();if(r.getState().getError())t.slotEditorState=u.EMPTY.ERROR;else{var a=r.getSlotList();a&&a.length?t.slotEditorState=u.DISPLAY:t.slotEditorState=u.EMPTY.NOT_SUPPORT_SLOTS}}else t.slotEditorState=u.EMPTY.ERROR}else t.slotEditorState="widget.placeholder"===i||"widget.multipurpose"===i?u.EMPTY.NO_VIS_CREATED:"group"===i?u.EMPTY.MUILTI_SELECTION:u.EMPTY.NOT_SUPPORT_SLOTS}else t.slotEditorState=u.EMPTY.MUILTI_SELECTION},_setSlotsAndLocalFilters:function(e){var o=null,r=[],s=[];if(t.slotEditorState===u.DISPLAY){var c=(o=t.selectedContents[0]).getFeature("Visualization");c&&(r=i(c)||[],s=function(t){var e=t.getLocalFilters(),o=e.getFilterList();if(o&&o.length){var i={};t.getSlots().getMappedSlotList().forEach((function(t){t.getDataItemList().forEach((function(t){i[t.getColumnId()]=!0}))}));var n=e.getFiltersDesc();return o.filter((function(t){var e=!1;return t.columnId&&(e=!(i[t.columnId]&&!t.readOnly)),e})).map((function(e){var o=!e.isMissing&&n&&n.find((function(t){return t.dataId===e.id}));return{id:e.id,columnId:e.columnId,metadataColumn:e.isMissing?null:t.getDataSource().getMetadataColumn(e.columnId),name:e.isMissing?null:o&&o.title,filterString:o&&o.description,numberOfFilterItems:(0,l.getNumberOfFilterItems)(e),isMissing:e.isMissing}}))}return null}(c)||[])}t.slotsModel&&(0,n.isAlive)(t.slotsModel)&&(e&&(t.slotsModel.clear(),t.slotsModel.setContent(o),t.slotsModel.setVisualization(),t.slotsModel.setUpEvents(a)),t.slotsModel.setSlotInfo(r)),t.localFiltersModel&&(0,n.isAlive)(t.localFiltersModel)&&(e&&(t.localFiltersModel.clear(),t.localFiltersModel.setContent(o),t.localFiltersModel.setUpEvents(a)),t.localFiltersModel.setLocalFilters(s))}}}))},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(5),n=function(t){return t&&t.__esModule?t:{default:t}}(o(87)),r=o(90);e.default=i.types.model("SlotsModel",{slotInfo:i.types.optional(i.types.array(i.types.frozen()),[])}).volatile((function(t){return{visSlotDataItemHandlersMap:{},content:null,visualization:null,dashboardAPI:null,getSlotDataItemHandler:function(e,o){if(!t.content)return null;t.visualization||t.setVisualization();var i=[e.getDefinition().getDatasetIdList()[0],e.getDefinition().getId(),o].join(":"),a=t.visSlotDataItemHandlersMap[i];if(!a||r.isDestroyed(a.slot)){var s=void 0;if("Crosstab"===t.visualization.getType()){var l=t.content.getFeature("VisDnD.utils");l&&(s=l.acceptsOlapV2)}var u=t.content.getFeature("SlotActions"),c=u.getSlotActionList.bind(u);a=new n.default(e,o,c,t.visualization,t.dashboardApi,t.content,s),t.setVisSlotDataItemHandler(i,a)}return a}}})).views((function(t){return{getSlotInfo:function(){return t.slotInfo}}})).actions((function(t){var e=null;return{beforeDestroy:function(){t.clearEvents()},setContent:function(e){t.content=e},setUpEvents:function(o){t.content&&(e=o,t.content.on("change",e),t.visDefinitions=t.dashboardApi.getFeature("VisDefinitions"),t.visDefinitions.on("refresh:definition",e))},setVisualization:function(){t.content?t.visualization=t.content.getFeature("Visualization"):t.visualization=null},setDashboardApi:function(e){t.dashboardApi=e},setVisSlotDataItemHandler:function(e,o){t.visSlotDataItemHandlersMap[e]=o},setSlotInfo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.slotInfo=e},clear:function(){t.clearEvents(),t.content=null,t.visualization=null,t.slotInfo=[],t.visSlotDataItemHandlersMap={}},clearEvents:function(){t.content&&(t.content.off("change",e),t.visDefinitions.off("refresh:definition",e),e=null)}}}))},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.MULTI_MEASURES_SERIES=void 0;var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(t[i]=o[i])}return t},n=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),r=function(t){return t&&t.__esModule?t:{default:t}}(o(21)),a=o(7),s=o(89),l=e.MULTI_MEASURES_SERIES="_multiMeasuresSeries",u=function(){function t(e,o,i,n,a,s,l){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this.content=s,this.dashboardApi=a,this.transactionApi=a.getFeature("Transaction"),this.indexInSlot=o,this._getActions=i,this.setSlotAPI(e),this._toolbarHelper=new r.default,this.visualization=n,this.visDnD=this.content.getFeature("VisDnD"),this.fnAccepts=l}return n(t,[{key:"setSlotAPI",value:function(t){this.slot=t,this.slotId=t.getDefinition().getId()}},{key:"getSlotAPI",value:function(){return this.slot}},{key:"getContentId",value:function(){return this.content.getId()}},{key:"getGraphicData",value:function(){return-1!==this.content.getPropertyNameList().indexOf("value.graphic.content")?this.content.getPropertyValue("value.graphic.content"):null}},{key:"getDatasourceId",value:function(){var t=this.visualization.getDataSource();return t?t.getId():null}},{key:"getFilterStringAndNumber",value:function(){var t={},e=this.slot.getDataItemList()[this.indexInSlot],o=e&&e.getColumnId();if(o&&o!==l){var i=this.visualization.getLocalFilters(),n=i&&i.getFilterList();if(n&&n.length){var r=n.find((function(t){return!t.readOnly&&(t.filterBins?!!e.getBinning()&&t.id===e.getId():t.aggregationType?t.columnId===o&&e.getAggregation()===t.aggregationType:t.columnId===o)}));if(r){var s=i.getFiltersDesc().find((function(t){return t.dataId===r.id}));s&&(t.filterString=s.description),t.numberOfFilterItems=(0,a.getNumberOfFilterItems)(r)}}}return t}},{key:"isMeasureGroupItem",value:function(){if(this._isMultiMeasuresSeriesSlot()){var t=this.slot.getDataItemList()[this.indexInSlot];return t&&"_multiMeasuresSeries"===t.getColumnId()}return!1}},{key:"_isMultiMeasuresSeriesSlot",value:function(){return!!this.slot.getDataItemList().find((function(t){return t.getColumnId()===l}))}},{key:"_getTargetIndex",value:function(t){return this.indexInSlot+(t?1:0)}},{key:"insertItemFromTypeInSlot",value:function(t,e,o){var i=o.replaceSlotItem;if(this.dashboardApi.getFeature("DataSources").getDataSource(e)){var n=this.getDropTargetInfo(!i),r={type:"metadataColumns",data:[t]};t&&t.getType()&&this.visDnD.onDrop(r,n)}}},{key:"canAcceptMoreItems",value:function(){return this._acceptsCommon(1,!0)}},{key:"getNumberItemsInSlot",value:function(){return this.slot.getDataItemList().length}},{key:"getDropTargetInfo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o={type:"slot.item",info:{contentId:this.getContentId(),slot:this.getSlotAPI(),indexInSlot:this.indexInSlot,addAfter:t}};return Object.keys(e).forEach((function(t){o.info[t]=e[t]})),o}},{key:"_acceptsCommon",value:function(t,e){return!!("values"===this.slotId&&this._isMultiMeasuresSeriesSlot()||this.slot.getDefinition().isMultiMeasureSupported())||!this._exceedsItemsLimit(t,e)}},{key:"_exceedsItemsLimit",value:function(t,e){var o=this.slot.getDefinition().getMaxItems();return!("number"!=typeof o||o<0)&&t+this.slot.getDataItemList().length-(e?0:1)>o}},{key:"swapSlotItems",value:function(t,e){return this.onDrop({data:{source:{slot:t.getSlotAPI(),indexInSlot:t.indexInSlot}}},this.getDropTargetInfo(e))}},{key:"onDropA11Y",value:function(t){var e=this.getDropTargetInfo(t);this.visDnD.onDrop({type:"A11YMetadataColumns"},e)}},{key:"onDrop",value:function(t,e){if(t.data.source){if(t.data.source.slot===this.getSlotAPI()&&t.data.source.indexInSlot==this.indexInSlot)return;var o=t.data.source.slot,i=t.data.source.indexInSlot,n=e.info.addAfter,r=this.transactionApi.startTransaction(),a=o.getDataItemList()[i],s=this.slot.getDataItemList()[this.indexInSlot],l=s&&s.getId();o.getId()===this.slotId?this._swapItemsInTheSameSlot(a.getId(),l,n,r):n||!s?this._moveItemToSlot(o,a,n,r):this._swapItemsBetweenSlots(o,a.getId(),l,r),this.transactionApi.endTransaction(r)}}},{key:"_swapItemsInTheSameSlot",value:function(t,e,o,i){var n=this.slot.getDataItemList().map((function(t){return t.getId()})),r=n.indexOf(t),a=n.indexOf(e);o||-1===a?(n.splice(a+1,0,t),r=r>a?r+1:r,n.splice(r,1)):(n[r]=e,n[a]=t),this.visualization.getSlots().setDataItems(n,this.slotId,i)}},{key:"_moveItemToSlot",value:function(t,e,o,i){var n=e.getId(),r=this.slot.getDataItemList().map((function(t){return t.getId()})),a=this._getTargetIndex(o);r.splice(a,0,n),this.visualization.getSlots().setDataItems(r,this.slotId,i)}},{key:"_swapItemsBetweenSlots",value:function(t,e,o,i){var n=this.slotId,r=this.slot.getDataItemList().map((function(t){return t.getId()}));r[r.indexOf(o)]=e;var a=t.getDefinition().getId(),s=t.getDataItemList().map((function(t){return t.getId()}));s[s.indexOf(e)]=o,this.visualization.getSlots().setDataItems(r,n,i),this.visualization.getSlots().setDataItems(s,a,i)}},{key:"getActions",value:function(){var t=this.slot.getDataItemList(),e=this._getSingleSlot(t,this.indexInSlot),o=this.visualization.getSlots().getSlot(this.slotId).getDefinition().getProperty("actions"),n=e?o:null,r={};return n&&n.length>0&&(r.actionsToKeep=n),Promise.resolve(this._getActions(this.slotId,this.indexInSlot,r).map((function(t){return i({text:t.label},t)})))}},{key:"openSlotActionMenu",value:function(t,e){var o=this;return this.getActions().then((function(n){var r=n.map((function(t){return i({order:t.order||s[t.name]},t)})).sort((function(t,e){return t.order-e.order}));return o._toolbarHelper.buildActionToolbar(r,t,null,e),r}))}},{key:"isSlotActionMenuOpened",value:function(){return!!this._toolbarHelper.getToolbar()}},{key:"_getSingleSlot",value:function(t,e){var o=e&&e instanceof Array&&e.length>1;return 1!==t.length||o?null:t[0]}},{key:"setIndexInSlot",value:function(t){this.indexInSlot=t}},{key:"getPickTreeContext",value:function(t){var e={type:this.slot.getDefinition().getType()};return t&&this.indexInSlot>-1&&(e.metadataColumn=this.slot.getDataItemList()[this.indexInSlot].getMetadataColumn()),e}}]),t}();e.default=u},function(t,e){t.exports=r},function(t,e){t.exports=a},function(t,e){t.exports=s},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(5),r=i(o(92)),a=i(o(95)),s=i(o(37));e.default=n.types.model("LocalFiltersModel",{localFilters:n.types.optional(n.types.array(n.types.frozen()),[])}).volatile((function(){return{content:null,dashboardApi:null,filterActionHandler:null}})).views((function(t){return{getLocalFilters:function(){return t.localFilters},getFilterActionHandler:function(){if(!t.content||!t.dashboardApi)return null;if(!t.filterActionHandler){var e=t.getActionsForLocalFilter.bind(t);t.setFilterActionHandler(new r.default({dashboard:t.dashboardApi,content:t.content,cbGetActionsForFilter:e}))}return t.filterActionHandler},getActionsForLocalFilter:function(e,o,i){var n=[];if(e){var r=new s.default(t.dashboardApi,t.content,e,o);r.isEnabled()&&n.push(r)}return n.push(new a.default(t.dashboardApi,t.content,e,o,i)),Promise.resolve(n)}}})).actions((function(t){var e=null;return{beforeDestroy:function(){t.clearEvents()},setContent:function(e){t.content=e},setUpEvents:function(o){t.content&&(e=o,t.content.on("change:visualization:localFilters:add",e),t.content.on("change:visualization:localFilters:edit",e),t.content.on("change:visualization:localFilters:remove",e))},setDashboardApi:function(e){t.dashboardApi=e},setFilterActionHandler:function(e){t.filterActionHandler=e},setLocalFilters:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.localFilters=e},clear:function(){t.clearEvents(),t.content=null,t.localFilters=[],t.filterActionHandler=null},clearEvents:function(){t.content&&(t.content.off("change:visualization:localFilters:add",e),t.content.off("change:visualization:localFilters:edit",e),t.content.off("change:visualization:localFilters:remove",e),e=null)}}}))},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),r=i(o(6)),a=i(o(21)),s=i(o(93)),l=function(){function t(e){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this.dashboard=e.dashboard,this.content=e.content,this._cbOnRemove=e.cbOnRemove||this._cbOnRemove,this._getActions=e.cbGetActionsForFilter,this.visualization=this.content.getFeature("Visualization"),this.visDnD=this.content.getFeature("VisDnD"),this.localFilters=this.visualization.getLocalFilters(),this.slots=this.visualization.getSlots(),this.localFilterDialog=new s.default({dashboard:this.dashboard,content:this.content}),this._toolbarHelper=new a.default}return n(t,[{key:"getDatasourceId",value:function(){var t=this.visualization.getDataSource();return t?t.getId():null}},{key:"editLocalFilters",value:function(t,e,o){var i=r.default.map(t&&t.columns,(function(t){return t.metadataColumn}));if(i.length>0){var n=this.dashboard.getFeature("Transaction"),a=n.startTransaction(),s=i[0].getSourceId();s&&this.visualization.setDataSource(s,a);var l=t.utils.getColumnsWithMembers(!0),u=Object.keys(l);u.length&&(this.content.getFeature("VisDnD.utils").addMembersAsLocalFilters({visualizationAPI:this.visualization,columns:t.columns},a),i=i.filter((function(t){return!u.includes(t.getId())})));var c=i.filter((function(t){return t.isFilter()}));if(c.length){var d=c.map((function(t){return t.getId()}));this._addModelFilters(d,a),i=i.filter((function(t){return!d.includes(t.getId())}))}if(i.length){var p=i[0];this.localFilterDialog.renderDialog(p.getId(),e,o)}n.endTransaction(a)}}},{key:"insertItemFromTypeInSlot",value:function(t,e,o){var i=t.getId(),n=o.parentNode,r=this.dashboard.getFeature("Transaction"),a=r.startTransaction();e&&this.visualization.setDataSource(e,a);if(t.isFilter())this._addModelFilters([i],a);else{var s=o.editorOptions||{placement:"auto",attachPoint:".slotEditor__localFilters__attachPoint"};this.localFilterDialog.renderDialog(i,n,s)}r.endTransaction(a)}},{key:"_addModelFilters",value:function(t,e){var o=this.visualization.getLocalFilters();t.forEach((function(t){var i={id:t,itemId:t,filterType:"filter"};o.addFilter(i,{},e)}))}},{key:"getContentId",value:function(){return this.content.getId()}},{key:"getActions",value:function(t,e,o){return this._getActions(t,e,o)}},{key:"openFilterItemActionMenu",value:function(t,e,o){var i=this,n=this.visualization.getDataSource().getMetadataColumn(t.columnId),a=t.filterId;return this.getActions(n,a,t.columnId).then((function(t){var n=[];return r.default.each(t,(function(t){n=n.concat(t.getAvailableActions())})),n.sort((function(t,e){return t.order-e.order})),i._toolbarHelper.buildActionToolbar(n,e,null,o),t}))}},{key:"isFilterActionMenuOpened",value:function(){return!!this._toolbarHelper.getToolbar()}},{key:"getDropTargetInfo",value:function(t){return{type:"slot.filter",info:{contentId:this.getContentId(),node:t,slotDataItemHandler:this}}}},{key:"onDropA11Y",value:function(t){var e=this.getDropTargetInfo(t);this.visDnD.onDrop({type:"A11YMetadataColumns"},e)}},{key:"getPickTreeContext",value:function(){return{type:"localfilters"}}}]),t}();e.default=l},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),r=i(o(21)),a=i(o(37)),s=i(o(2)),l=o(94),u=function(){function t(e){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this._toolbarHelper=new r.default,this.dashboard=e.dashboard,this.content=e.content}return n(t,[{key:"renderDialog",value:function(t,e,o){var i=this,n=this.content.getFeature("Visualization"),r=n.getDataSource().getMetadataColumn(t),s=new a.default(this.dashboard,this.content,r);if(o.forceOpen||!r.isNamedSet()){var u=s.getEditorModuleName(),c=s.getViewOptions();return l.load([u]).then((function(t){return new t[0](c)})).then((function(t){return(i.preload&&i.preload()||(t.preload?t.preload():Promise.resolve())).then(i._createContextFilter.bind(i,t,e,o)).then((function(){return t.renderCallBack(i._toolbarHelper.getToolbar())}))}))}n.getLocalFilters().addFilter(s.itemContext,{command:"replace",exclude:!1,valueDataItem:r.getId(),type:r.isProperty()?"display":void 0})}},{key:"_createContextFilter",value:function(t,e,o){var i=[{responsive:!1,editable:!1,changedAction:null,subView:t,type:"SubView"}];o.popoverContentClass=t.$el&&t.$el.attr("class"),this._toolbarHelper.buildActionToolbar(i,e,s.default.get("toolbarActionFilter"),o)}},{key:"getAPI",value:function(){return this.api}}]),t}();e.default=u},function(t,e){t.exports=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),n=function(t){return t&&t.__esModule?t:{default:t}}(o(2)),r="deleteFilterAction",a=function(){function t(e,o,i,a,s){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this.content=o,this.dashboard=e,this.metadataColumn=i,this.filterId=a,this.itemId=s,this.transactionApi=e.getFeature("Transaction"),this.localFilters=this.content.getFeature("Visualization").getLocalFilters(),this.toolbarContribution=[{name:"delete",text:n.default.get("toolbarDeleteFilterActionText"),label:n.default.get("toolbarDeleteFilterActionText"),icon:"dashboard-delete",type:"Button",removeOnActionApplied:!0,action:this.deleteLocalFilter.bind(this),group:r}]}return i(t,[{key:"getActionId",value:function(){return r}},{key:"getAvailableActions",value:function(){return this.toolbarContribution}},{key:"deleteLocalFilter",value:function(){var t=this.filterId?{id:this.filterId}:this._getFilterKeyFromMetadataColumn();if(t){this.metadataColumn&&"fact"===this.metadataColumn.getType()?(t.itemId=this.metadataColumn.getId(),t.aggregationType=this.metadataColumn.getDefaultAggregation()):t.itemId=this.itemId||t.id,this.metadataColumn&&this.metadataColumn.isFilter()&&(t.filterType="filter");var e=this.transactionApi.startTransaction();this.localFilters.removeFilter(t,e),this.transactionApi.endTransaction(e)}}},{key:"_getFilterKeyFromMetadataColumn",value:function(){var t=this.metadataColumn.getId();return t?"fact"===this.metadataColumn.getType()?this.localFilters.getOrdinalFilterKey(t,this.metadataColumn.getDefaultAggregation()):this.localFilters.getCategoryFilterKey(t):null}}]),t}();e.default=a},function(t,e,o){"use strict";(function(t){var i,n,r,a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(s,l){"object"==a(e)&&"object"==a(t)?t.exports=l(o(8)):(n=[o(8)],void 0!==(r="function"==typeof(i=l)?i.apply(e,n):i)&&(t.exports=r))}("undefined"!=typeof self&&self,(function(t){return webpackJsonPBaGraphics([581],{"3865314c5959606874d4":function(e,o){e.exports=t},"7f5cc0d1af315e161ce4":function(t,e,o){var i=o("9689a9c94ae38b47fa2c"),n=o.n(i),r=o("9ce58a7deea14f49ef01"),a=o.n(r),s=new n.a({id:"refined_24_v7",use:"refined_24_v7-usage",viewBox:"0 0 24 24",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="refined_24_v7"><path d="M1.5 10.5v3c0 .8.7 1.5 1.5 1.5h18c.8 0 1.5-.7 1.5-1.5v-3c0-.8-.7-1.5-1.5-1.5H3c-.8 0-1.5.7-1.5 1.5zm0-7.5v3c0 .8.7 1.5 1.5 1.5h18c.8 0 1.5-.7 1.5-1.5V3c0-.8-.7-1.5-1.5-1.5H3c-.8 0-1.5.7-1.5 1.5zm6 3H3V3h4.5v3zM21 6H9V3h12v3zm1.5 15v-3c0-.8-.7-1.5-1.5-1.5H3c-.8 0-1.5.7-1.5 1.5v3c0 .8.7 1.5 1.5 1.5h18c.8 0 1.5-.7 1.5-1.5zm-6-3H21v3h-4.5v-3zM3 18h12v3H3v-3z" /></symbol>'});a.a.add(s),e.a=s},a91ca1782d8252e7ef1b:function(t,e,o){Object.defineProperty(e,"__esModule",{value:!0});var i=o("3865314c5959606874d4"),n=(o.n(i),o("7f5cc0d1af315e161ce4"));e.default=n.a}},["a91ca1782d8252e7ef1b"])}))}).call(e,o(11)(t))}])})),define("dashboard-analytics/features/dashboard/slotEditor/SlotEditorDOM",["react","prop-types","ca-ui-toolkit","jquery","mobx-state-tree","underscore","mobx-react","polyglot","gemini/lib/@waca/dashboard-common/dist/core/APIFactory","classnames","gemini/lib/@waca/baglass/js/baglass/utils/Utils","react-dom"],(function(t,e,o,i,n,r,a,s,l,u,c,d){return function(t){function e(i){if(o[i])return o[i].exports;var n=o[i]={i:i,l:!1,exports:{}};return t[i].call(n.exports,n,n.exports,e),n.l=!0,n.exports}var o={};return e.m=t,e.c=o,e.d=function(t,o,i){e.o(t,o)||Object.defineProperty(t,o,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var o=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(o,"a",o),o},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=38)}([function(e,o){e.exports=t},function(t,o){t.exports=e},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),n=function(t){return t&&t.__esModule?t:{default:t}}(o(15)),r=o(16),a=function(){function t(){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this.polyglot=new r({phrases:n.default})}return i(t,[{key:"get",value:function(t,e){return this.polyglot.t(t,e)}}]),t}();e.default=new a},function(t,e){t.exports=o},function(t,e){t.exports=i},function(t,e){t.exports=n},function(t,e){t.exports=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getNumberOfFilterItems=function(t){return!t||"in"!==t.operator&&"notin"!==t.operator&&"isnull"!==t.operator?null:t.values.length},e.handleScroll=function(t,e,o){var i=e.getBoundingClientRect(),n=i.top,r=i.bottom;if("touchmove"===t.type){var a=t.touches[0];a&&(t.clientX=a.clientX,t.clientY=a.clientY)}if(t.clientX&&t.clientY){var s={x:t.clientX,y:t.clientY},l=r-s.y,u=s.y-n,c=l>0&&l<20,d=u>0&&u<20,p=0;d&&c&&(c=!(d=u>l)),c?p=20-l:d&&(p=u-20);var f=e.scrollTop+p;if(f<=0)f=0;else{var h=e.scrollHeight-e.clientHeight;f>h&&(f=h)}e.scrollTop!==f&&(e.scrollTop=f,o&&o())}},e.getDataSourceIdTypeIn=function(t){var e=t.getActiveDataSourceId();if(!e){var o=t.getFeature("DataSources");o.getDataSourceList().length>0&&(e=o.getDataSourceList()[0].getId())}return e}},function(t,e,o){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(t){function e(o){if(i[o])return i[o].exports;var n=i[o]={i:o,l:!1,exports:{}};return t[o].call(n.exports,n,n.exports,e),n.l=!0,n.exports}var o=window.webpackJsonPBaGraphics;window.webpackJsonPBaGraphics=function(i,r,a){for(var s,l,u,c=0,d=[];c<i.length;c++)l=i[c],n[l]&&d.push(n[l][0]),n[l]=0;for(s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s]);for(o&&o(i,r,a);d.length;)d.shift()();if(a)for(c=0;c<a.length;c++)u=e(e.s=a[c]);return u};var i={},n={2086:0};e.m=t,e.c=i,e.d=function(t,o,i){e.o(t,o)||Object.defineProperty(t,o,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var o=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(o,"a",o),o},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e.oe=function(t){throw console.error(t),t}}({"698d75b157f24ae829cc":function(t,e){var o;o=function(){return this}();try{o=o||Function("return this")()||(0,eval)("this")}catch(t){"object"==("undefined"==typeof window?"undefined":i(window))&&(o=window)}t.exports=o},"9689a9c94ae38b47fa2c":function(t,e,o){(function(e){t.exports=function(){function t(t,e){return t(e={exports:{}},e.exports),e.exports}var e=function(t){var e=t.id,o=t.viewBox,i=t.content;this.id=e,this.viewBox=o,this.content=i};e.prototype.stringify=function(){return this.content},e.prototype.toString=function(){return this.stringify()},e.prototype.destroy=function(){var t=this;["id","viewBox","content"].forEach((function(e){return delete t[e]}))};var o=("undefined"!=typeof window?window:"undefined"!=typeof self&&self,t((function(t,e){t.exports=function(){function t(t){return t&&"object"==(void 0===t?"undefined":i(t))&&"[object RegExp]"!==Object.prototype.toString.call(t)&&"[object Date]"!==Object.prototype.toString.call(t)}function e(e,o){return o&&!0===o.clone&&t(e)?r(function(t){return Array.isArray(t)?[]:{}}(e),e,o):e}function o(o,i,n){var a=o.slice();return i.forEach((function(i,s){void 0===a[s]?a[s]=e(i,n):t(i)?a[s]=r(o[s],i,n):-1===o.indexOf(i)&&a.push(e(i,n))})),a}function n(o,i,n){var a={};return t(o)&&Object.keys(o).forEach((function(t){a[t]=e(o[t],n)})),Object.keys(i).forEach((function(s){t(i[s])&&o[s]?a[s]=r(o[s],i[s],n):a[s]=e(i[s],n)})),a}function r(t,i,r){var a=Array.isArray(i),s=(r||{arrayMerge:o}).arrayMerge||o;return a?Array.isArray(t)?s(t,i,r):e(i,r):n(t,i,r)}return r.all=function(t,e){if(!Array.isArray(t)||t.length<2)throw new Error("first argument should be an array with at least two elements");return t.reduce((function(t,o){return r(t,o,e)}))},r}()}))),n=t((function(t,e){e.default={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}},t.exports=e.default})),r=n.svg,a=n.xlink,s={};s[r.name]=r.uri,s[a.name]=a.uri;var l=function(t,e){return void 0===t&&(t=""),"<svg "+function(t){return Object.keys(t).map((function(e){return e+'="'+t[e].toString().replace(/"/g,"&quot;")+'"'})).join(" ")}(o(s,e||{}))+">"+t+"</svg>"};return function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var o={isMounted:{}};return o.isMounted.get=function(){return!!this.node},e.createFromExistingNode=function(t){return new e({id:t.getAttribute("id"),viewBox:t.getAttribute("viewBox"),content:t.outerHTML})},e.prototype.destroy=function(){this.isMounted&&this.unmount(),t.prototype.destroy.call(this)},e.prototype.mount=function(t){if(this.isMounted)return this.node;var e="string"==typeof t?document.querySelector(t):t,o=this.render();return this.node=o,e.appendChild(o),o},e.prototype.render=function(){var t=this.stringify();return function(t){var e=!!document.importNode,o=(new DOMParser).parseFromString(t,"image/svg+xml").documentElement;return e?document.importNode(o,!0):o}(l(t)).childNodes[0]},e.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(e.prototype,o),e}(e)}()}).call(e,o("698d75b157f24ae829cc"))},"9ce58a7deea14f49ef01":function(t,e,o){(function(e){t.exports=function(){function t(t,e){return t(e={exports:{}},e.exports),e.exports}function e(t){return t.replace(A,(function(t){return"%"+t[0].charCodeAt(0).toString(16).toUpperCase()}))}var o=("undefined"!=typeof window?window:"undefined"!=typeof self&&self,t((function(t,e){t.exports=function(){function t(t){return t&&"object"==(void 0===t?"undefined":i(t))&&"[object RegExp]"!==Object.prototype.toString.call(t)&&"[object Date]"!==Object.prototype.toString.call(t)}function e(e,o){return o&&!0===o.clone&&t(e)?r(function(t){return Array.isArray(t)?[]:{}}(e),e,o):e}function o(o,i,n){var a=o.slice();return i.forEach((function(i,s){void 0===a[s]?a[s]=e(i,n):t(i)?a[s]=r(o[s],i,n):-1===o.indexOf(i)&&a.push(e(i,n))})),a}function n(o,i,n){var a={};return t(o)&&Object.keys(o).forEach((function(t){a[t]=e(o[t],n)})),Object.keys(i).forEach((function(s){t(i[s])&&o[s]?a[s]=r(o[s],i[s],n):a[s]=e(i[s],n)})),a}function r(t,i,r){var a=Array.isArray(i),s=(r||{arrayMerge:o}).arrayMerge||o;return a?Array.isArray(t)?s(t,i,r):e(i,r):n(t,i,r)}return r.all=function(t,e){if(!Array.isArray(t)||t.length<2)throw new Error("first argument should be an array with at least two elements");return t.reduce((function(t,o){return r(t,o,e)}))},r}()}))),n=t((function(t,e){e.default={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}},t.exports=e.default})),r=n.svg,a=n.xlink,s={};s[r.name]=r.uri,s[a.name]=a.uri;var l,u=function(t,e){return void 0===t&&(t=""),"<svg "+function(t){return Object.keys(t).map((function(e){return e+'="'+t[e].toString().replace(/"/g,"&quot;")+'"'})).join(" ")}(o(s,e||{}))+">"+t+"</svg>"},c=n.svg,d=n.xlink,p={attrs:(l={style:["position: absolute","width: 0","height: 0"].join("; ")},l[c.name]=c.uri,l[d.name]=d.uri,l)},f=function(t){this.config=o(p,t||{}),this.symbols=[]};f.prototype.add=function(t){var e=this.symbols,o=this.find(t.id);return o?(e[e.indexOf(o)]=t,!1):(e.push(t),!0)},f.prototype.remove=function(t){var e=this.symbols,o=this.find(t);return!!o&&(e.splice(e.indexOf(o),1),o.destroy(),!0)},f.prototype.find=function(t){return this.symbols.filter((function(e){return e.id===t}))[0]||null},f.prototype.has=function(t){return null!==this.find(t)},f.prototype.stringify=function(){var t=this.config.attrs,e=this.symbols.map((function(t){return t.stringify()})).join("");return u(e,t)},f.prototype.toString=function(){return this.stringify()},f.prototype.destroy=function(){this.symbols.forEach((function(t){return t.destroy()}))};var h=function(t){var e=t.id,o=t.viewBox,i=t.content;this.id=e,this.viewBox=o,this.content=i};h.prototype.stringify=function(){return this.content},h.prototype.toString=function(){return this.stringify()},h.prototype.destroy=function(){var t=this;["id","viewBox","content"].forEach((function(e){return delete t[e]}))};var g,m=function(t){var e=!!document.importNode,o=(new DOMParser).parseFromString(t,"image/svg+xml").documentElement;return e?document.importNode(o,!0):o},_=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var o={isMounted:{}};return o.isMounted.get=function(){return!!this.node},e.createFromExistingNode=function(t){return new e({id:t.getAttribute("id"),viewBox:t.getAttribute("viewBox"),content:t.outerHTML})},e.prototype.destroy=function(){this.isMounted&&this.unmount(),t.prototype.destroy.call(this)},e.prototype.mount=function(t){if(this.isMounted)return this.node;var e="string"==typeof t?document.querySelector(t):t,o=this.render();return this.node=o,e.appendChild(o),o},e.prototype.render=function(){var t=this.stringify();return m(u(t)).childNodes[0]},e.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(e.prototype,o),e}(h),y={autoConfigure:!0,mountTo:"body",syncUrlsWithBaseTag:!1,listenLocationChangeEvent:!0,locationChangeEvent:"locationChange",locationChangeAngularEmitter:!1,usagesToUpdate:"use[*|href]",moveGradientsOutsideSymbol:!1},v=function(t){return Array.prototype.slice.call(t,0)},b=navigator.userAgent,I={isChrome:/chrome/i.test(b),isFirefox:/firefox/i.test(b),isIE:/msie/i.test(b)||/trident/i.test(b),isEdge:/edge/i.test(b)},S=function(t){return(t||window.location.href).split("#")[0]},C=function(t){angular.module("ng").run(["$rootScope",function(e){e.$on("$locationChangeSuccess",(function(e,o,i){!function(t,e){var o=document.createEvent("CustomEvent");o.initCustomEvent(t,!1,!1,e),window.dispatchEvent(o)}(t,{oldUrl:i,newUrl:o})}))}])},E=function(t,e){return void 0===e&&(e="linearGradient, radialGradient, pattern"),v(t.querySelectorAll("symbol")).forEach((function(t){v(t.querySelectorAll(e)).forEach((function(e){t.parentNode.insertBefore(e,t)}))})),t},F=n.xlink.uri,D="xlink:href",A=/[{}|\\\^\[\]`"<>]/g,P=["clipPath","colorProfile","src","cursor","fill","filter","marker","markerStart","markerMid","markerEnd","mask","stroke","style"],x=P.map((function(t){return"["+t+"]"})).join(","),T=function(t,o,i,n){var r=e(i),a=e(n);(function(t,e){return v(t).reduce((function(t,o){if(!o.attributes)return t;var i=v(o.attributes),n=e?i.filter(e):i;return t.concat(n)}),[])})(t.querySelectorAll(x),(function(t){var e=t.localName,o=t.value;return-1!==P.indexOf(e)&&-1!==o.indexOf("url("+r)})).forEach((function(t){return t.value=t.value.replace(r,a)})),function(t,e,o){v(t).forEach((function(t){var i=t.getAttribute(D);if(i&&0===i.indexOf(e)){var n=i.replace(e,o);t.setAttributeNS(F,D,n)}}))}(o,r,a)},w="mount",M="symbol_mount",k=function(t){function e(e){var i=this;void 0===e&&(e={}),t.call(this,o(y,e));var n=function(t){return t=t||Object.create(null),{on:function(e,o){(t[e]||(t[e]=[])).push(o)},off:function(e,o){t[e]&&t[e].splice(t[e].indexOf(o)>>>0,1)},emit:function(e,o){(t[e]||[]).map((function(t){t(o)})),(t["*"]||[]).map((function(t){t(e,o)}))}}}();this._emitter=n,this.node=null;var r=this.config;if(r.autoConfigure&&this._autoConfigure(e),r.syncUrlsWithBaseTag){var a=document.getElementsByTagName("base")[0].getAttribute("href");n.on(w,(function(){return i.updateUrls("#",a)}))}var s=this._handleLocationChange.bind(this);this._handleLocationChange=s,r.listenLocationChangeEvent&&window.addEventListener(r.locationChangeEvent,s),r.locationChangeAngularEmitter&&C(r.locationChangeEvent),n.on(w,(function(t){r.moveGradientsOutsideSymbol&&E(t)})),n.on(M,(function(t){r.moveGradientsOutsideSymbol&&E(t.parentNode),(I.isIE||I.isEdge)&&function(t){var e=[];v(t.querySelectorAll("style")).forEach((function(t){t.textContent+="",e.push(t)}))}(t)}))}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var i={isMounted:{}};return i.isMounted.get=function(){return!!this.node},e.prototype._autoConfigure=function(t){var e=this.config;void 0===t.syncUrlsWithBaseTag&&(e.syncUrlsWithBaseTag=void 0!==document.getElementsByTagName("base")[0]),void 0===t.locationChangeAngularEmitter&&(e.locationChangeAngularEmitter="angular"in window),void 0===t.moveGradientsOutsideSymbol&&(e.moveGradientsOutsideSymbol=I.isFirefox)},e.prototype._handleLocationChange=function(t){var e=t.detail,o=e.oldUrl,i=e.newUrl;this.updateUrls(o,i)},e.prototype.add=function(e){var o=t.prototype.add.call(this,e);return this.isMounted&&o&&(e.mount(this.node),this._emitter.emit(M,e.node)),o},e.prototype.attach=function(t){var e=this,o=this;if(o.isMounted)return o.node;var i="string"==typeof t?document.querySelector(t):t;return o.node=i,this.symbols.forEach((function(t){t.mount(o.node),e._emitter.emit(M,t.node)})),v(i.querySelectorAll("symbol")).forEach((function(t){var e=_.createFromExistingNode(t);e.node=t,o.add(e)})),this._emitter.emit(w,i),i},e.prototype.destroy=function(){var t=this,e=t.config,o=t.symbols,i=t._emitter;o.forEach((function(t){return t.destroy()})),i.off("*"),window.removeEventListener(e.locationChangeEvent,this._handleLocationChange),this.isMounted&&this.unmount()},e.prototype.mount=function(t,e){void 0===t&&(t=this.config.mountTo),void 0===e&&(e=!1);var o=this;if(o.isMounted)return o.node;var i="string"==typeof t?document.querySelector(t):t,n=o.render();return this.node=n,e&&i.childNodes[0]?i.insertBefore(n,i.childNodes[0]):i.appendChild(n),this._emitter.emit(w,n),n},e.prototype.render=function(){return m(this.stringify())},e.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},e.prototype.updateUrls=function(t,e){if(!this.isMounted)return!1;var o=document.querySelectorAll(this.config.usagesToUpdate);return T(this.node,o,S(t)+"#",S(e)+"#"),!0},Object.defineProperties(e.prototype,i),e}(f),R=t((function(t){
  14. /*!
  15. * domready (c) Dustin Diaz 2014 - License MIT
  16. */
  17. t.exports=function(){var t,e=[],o=document,i=(o.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(o.readyState);return i||o.addEventListener("DOMContentLoaded",t=function(){for(o.removeEventListener("DOMContentLoaded",t),i=1;t=e.shift();)t()}),function(t){i?setTimeout(t,0):e.push(t)}}()}));window.__SVG_SPRITE__?g=window.__SVG_SPRITE__:(g=new k({attrs:{id:"__SVG_SPRITE_NODE__"}}),window.__SVG_SPRITE__=g);var O=function(){var t=document.getElementById("__SVG_SPRITE_NODE__");t?g.attach(t):g.mount(document.body,!0)};return document.body?O():R(O),g}()}).call(e,o("698d75b157f24ae829cc"))}})},function(t,e){function o(t,e){var o=t[1]||"",i=t[3];if(!i)return o;if(e&&"function"==typeof btoa){var n=function(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}(i);return[o].concat(i.sources.map((function(t){return"/*# sourceURL="+i.sourceRoot+t+" */"}))).concat([n]).join("\n")}return[o].join("\n")}t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i=o(e,t);return e[2]?"@media "+e[2]+"{"+i+"}":i})).join("")},e.i=function(t,o){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},n=0;n<this.length;n++){var r=this[n][0];"number"==typeof r&&(i[r]=!0)}for(n=0;n<t.length;n++){var a=t[n];"number"==typeof a[0]&&i[a[0]]||(o&&!a[2]?a[2]=o:o&&(a[2]="("+a[2]+") and ("+o+")"),e.push(a))}},e}},function(t,e,o){function i(t,e){for(var o=0;o<t.length;o++){var i=t[o],n=h[i.id];if(n){n.refs++;for(var r=0;r<n.parts.length;r++)n.parts[r](i.parts[r]);for(;r<i.parts.length;r++)n.parts.push(c(i.parts[r],e))}else{var a=[];for(r=0;r<i.parts.length;r++)a.push(c(i.parts[r],e));h[i.id]={id:i.id,refs:1,parts:a}}}}function n(t,e){for(var o=[],i={},n=0;n<t.length;n++){var r=t[n],a=e.base?r[0]+e.base:r[0],s={css:r[1],media:r[2],sourceMap:r[3]};i[a]?i[a].parts.push(s):o.push(i[a]={id:a,parts:[s]})}return o}function r(t,e){var o=m(t.insertInto);if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var i=v[v.length-1];if("top"===t.insertAt)i?i.nextSibling?o.insertBefore(e,i.nextSibling):o.appendChild(e):o.insertBefore(e,o.firstChild),v.push(e);else if("bottom"===t.insertAt)o.appendChild(e);else{if("object"!=typeof t.insertAt||!t.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var n=m(t.insertInto+" "+t.insertAt.before);o.insertBefore(e,n)}}function a(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);var e=v.indexOf(t);e>=0&&v.splice(e,1)}function s(t){var e=document.createElement("style");return t.attrs.type="text/css",u(e,t.attrs),r(t,e),e}function l(t){var e=document.createElement("link");return t.attrs.type="text/css",t.attrs.rel="stylesheet",u(e,t.attrs),r(t,e),e}function u(t,e){Object.keys(e).forEach((function(o){t.setAttribute(o,e[o])}))}function c(t,e){var o,i,n,r;if(e.transform&&t.css){if(!(r=e.transform(t.css)))return function(){};t.css=r}if(e.singleton){var u=y++;o=_||(_=s(e)),i=d.bind(null,o,u,!1),n=d.bind(null,o,u,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(o=l(e),i=f.bind(null,o,e),n=function(){a(o),o.href&&URL.revokeObjectURL(o.href)}):(o=s(e),i=p.bind(null,o),n=function(){a(o)});return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else n()}}function d(t,e,o,i){var n=o?"":i.css;if(t.styleSheet)t.styleSheet.cssText=I(e,n);else{var r=document.createTextNode(n),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(r,a[e]):t.appendChild(r)}}function p(t,e){var o=e.css,i=e.media;if(i&&t.setAttribute("media",i),t.styleSheet)t.styleSheet.cssText=o;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(o))}}function f(t,e,o){var i=o.css,n=o.sourceMap,r=void 0===e.convertToAbsoluteUrls&&n;(e.convertToAbsoluteUrls||r)&&(i=b(i)),n&&(i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */");var a=new Blob([i],{type:"text/css"}),s=t.href;t.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}var h={},g=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}}((function(){return window&&document&&document.all&&!window.atob})),m=function(t){var e={};return function(o){if(void 0===e[o]){var i=t.call(this,o);if(i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}e[o]=i}return e[o]}}((function(t){return document.querySelector(t)})),_=null,y=0,v=[],b=o(47);t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=g()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var o=n(t,e);return i(o,e),function(t){for(var r=[],a=0;a<o.length;a++){var s=o[a];(l=h[s.id]).refs--,r.push(l)}t&&i(n(t,e),e);for(a=0;a<r.length;a++){var l;if(0===(l=r[a]).refs){for(var u=0;u<l.parts.length;u++)l.parts[u]();delete h[l.id]}}}};var I=function(){var t=[];return function(e,o){return t[e]=o,t.filter(Boolean).join("\n")}}()},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e){t.exports=a},function(t,e,o){(function(e){!function(e,o){t.exports=o()}(0,(function(){"use strict";function t(t,e){return t(e={exports:{}},e.exports),e.exports}var o=function(t){var e=t.id,o=t.viewBox,i=t.content;this.id=e,this.viewBox=o,this.content=i};o.prototype.stringify=function(){return this.content},o.prototype.toString=function(){return this.stringify()},o.prototype.destroy=function(){var t=this;["id","viewBox","content"].forEach((function(e){return delete t[e]}))};var i=("undefined"!=typeof window?window:void 0!==e||"undefined"!=typeof self&&self,t((function(t,e){t.exports=function(){function t(t){return t&&"object"==typeof t&&"[object RegExp]"!==Object.prototype.toString.call(t)&&"[object Date]"!==Object.prototype.toString.call(t)}function e(e,o){return o&&!0===o.clone&&t(e)?n(function(t){return Array.isArray(t)?[]:{}}(e),e,o):e}function o(o,i,r){var a=o.slice();return i.forEach((function(i,s){void 0===a[s]?a[s]=e(i,r):t(i)?a[s]=n(o[s],i,r):-1===o.indexOf(i)&&a.push(e(i,r))})),a}function i(o,i,r){var a={};return t(o)&&Object.keys(o).forEach((function(t){a[t]=e(o[t],r)})),Object.keys(i).forEach((function(s){t(i[s])&&o[s]?a[s]=n(o[s],i[s],r):a[s]=e(i[s],r)})),a}function n(t,n,r){var a=Array.isArray(n),s=(r||{arrayMerge:o}).arrayMerge||o;return a?Array.isArray(t)?s(t,n,r):e(n,r):i(t,n,r)}return n.all=function(t,e){if(!Array.isArray(t)||t.length<2)throw new Error("first argument should be an array with at least two elements");return t.reduce((function(t,o){return n(t,o,e)}))},n}()}))),n=t((function(t,e){e.default={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}},t.exports=e.default})),r=n.svg,a=n.xlink,s={};s[r.name]=r.uri,s[a.name]=a.uri;var l=function(t,e){return void 0===t&&(t=""),"<svg "+function(t){return Object.keys(t).map((function(e){return e+'="'+t[e].toString().replace(/"/g,"&quot;")+'"'})).join(" ")}(i(s,e||{}))+">"+t+"</svg>"};return function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var o={isMounted:{}};return o.isMounted.get=function(){return!!this.node},e.createFromExistingNode=function(t){return new e({id:t.getAttribute("id"),viewBox:t.getAttribute("viewBox"),content:t.outerHTML})},e.prototype.destroy=function(){this.isMounted&&this.unmount(),t.prototype.destroy.call(this)},e.prototype.mount=function(t){if(this.isMounted)return this.node;var e="string"==typeof t?document.querySelector(t):t,o=this.render();return this.node=o,e.appendChild(o),o},e.prototype.render=function(){var t=this.stringify();return function(t){var e=!!document.importNode,o=(new DOMParser).parseFromString(t,"image/svg+xml").documentElement;return e?document.importNode(o,!0):o}(l(t)).childNodes[0]},e.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(e.prototype,o),e}(o)}))}).call(e,o(18))},function(t,e,o){(function(e){!function(e,o){t.exports=o()}(0,(function(){"use strict";function t(t,e){return t(e={exports:{}},e.exports),e.exports}function o(t){return t.replace(A,(function(t){return"%"+t[0].charCodeAt(0).toString(16).toUpperCase()}))}var i=("undefined"!=typeof window?window:void 0!==e||"undefined"!=typeof self&&self,t((function(t,e){t.exports=function(){function t(t){return t&&"object"==typeof t&&"[object RegExp]"!==Object.prototype.toString.call(t)&&"[object Date]"!==Object.prototype.toString.call(t)}function e(e,o){return o&&!0===o.clone&&t(e)?n(function(t){return Array.isArray(t)?[]:{}}(e),e,o):e}function o(o,i,r){var a=o.slice();return i.forEach((function(i,s){void 0===a[s]?a[s]=e(i,r):t(i)?a[s]=n(o[s],i,r):-1===o.indexOf(i)&&a.push(e(i,r))})),a}function i(o,i,r){var a={};return t(o)&&Object.keys(o).forEach((function(t){a[t]=e(o[t],r)})),Object.keys(i).forEach((function(s){t(i[s])&&o[s]?a[s]=n(o[s],i[s],r):a[s]=e(i[s],r)})),a}function n(t,n,r){var a=Array.isArray(n),s=(r||{arrayMerge:o}).arrayMerge||o;return a?Array.isArray(t)?s(t,n,r):e(n,r):i(t,n,r)}return n.all=function(t,e){if(!Array.isArray(t)||t.length<2)throw new Error("first argument should be an array with at least two elements");return t.reduce((function(t,o){return n(t,o,e)}))},n}()}))),n=t((function(t,e){e.default={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}},t.exports=e.default})),r=n.svg,a=n.xlink,s={};s[r.name]=r.uri,s[a.name]=a.uri;var l,u=function(t,e){return void 0===t&&(t=""),"<svg "+function(t){return Object.keys(t).map((function(e){return e+'="'+t[e].toString().replace(/"/g,"&quot;")+'"'})).join(" ")}(i(s,e||{}))+">"+t+"</svg>"},c=n.svg,d=n.xlink,p={attrs:(l={style:["position: absolute","width: 0","height: 0"].join("; ")},l[c.name]=c.uri,l[d.name]=d.uri,l)},f=function(t){this.config=i(p,t||{}),this.symbols=[]};f.prototype.add=function(t){var e=this.symbols,o=this.find(t.id);return o?(e[e.indexOf(o)]=t,!1):(e.push(t),!0)},f.prototype.remove=function(t){var e=this.symbols,o=this.find(t);return!!o&&(e.splice(e.indexOf(o),1),o.destroy(),!0)},f.prototype.find=function(t){return this.symbols.filter((function(e){return e.id===t}))[0]||null},f.prototype.has=function(t){return null!==this.find(t)},f.prototype.stringify=function(){var t=this.config.attrs,e=this.symbols.map((function(t){return t.stringify()})).join("");return u(e,t)},f.prototype.toString=function(){return this.stringify()},f.prototype.destroy=function(){this.symbols.forEach((function(t){return t.destroy()}))};var h=function(t){var e=t.id,o=t.viewBox,i=t.content;this.id=e,this.viewBox=o,this.content=i};h.prototype.stringify=function(){return this.content},h.prototype.toString=function(){return this.stringify()},h.prototype.destroy=function(){var t=this;["id","viewBox","content"].forEach((function(e){return delete t[e]}))};var g,m=function(t){var e=!!document.importNode,o=(new DOMParser).parseFromString(t,"image/svg+xml").documentElement;return e?document.importNode(o,!0):o},_=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var o={isMounted:{}};return o.isMounted.get=function(){return!!this.node},e.createFromExistingNode=function(t){return new e({id:t.getAttribute("id"),viewBox:t.getAttribute("viewBox"),content:t.outerHTML})},e.prototype.destroy=function(){this.isMounted&&this.unmount(),t.prototype.destroy.call(this)},e.prototype.mount=function(t){if(this.isMounted)return this.node;var e="string"==typeof t?document.querySelector(t):t,o=this.render();return this.node=o,e.appendChild(o),o},e.prototype.render=function(){var t=this.stringify();return m(u(t)).childNodes[0]},e.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(e.prototype,o),e}(h),y={autoConfigure:!0,mountTo:"body",syncUrlsWithBaseTag:!1,listenLocationChangeEvent:!0,locationChangeEvent:"locationChange",locationChangeAngularEmitter:!1,usagesToUpdate:"use[*|href]",moveGradientsOutsideSymbol:!1},v=function(t){return Array.prototype.slice.call(t,0)},b=navigator.userAgent,I={isChrome:/chrome/i.test(b),isFirefox:/firefox/i.test(b),isIE:/msie/i.test(b)||/trident/i.test(b),isEdge:/edge/i.test(b)},S=function(t){return(t||window.location.href).split("#")[0]},C=function(t){angular.module("ng").run(["$rootScope",function(e){e.$on("$locationChangeSuccess",(function(e,o,i){!function(t,e){var o=document.createEvent("CustomEvent");o.initCustomEvent(t,!1,!1,e),window.dispatchEvent(o)}(t,{oldUrl:i,newUrl:o})}))}])},E=function(t,e){return void 0===e&&(e="linearGradient, radialGradient, pattern"),v(t.querySelectorAll("symbol")).forEach((function(t){v(t.querySelectorAll(e)).forEach((function(e){t.parentNode.insertBefore(e,t)}))})),t},F=n.xlink.uri,D="xlink:href",A=/[{}|\\\^\[\]`"<>]/g,P=["clipPath","colorProfile","src","cursor","fill","filter","marker","markerStart","markerMid","markerEnd","mask","stroke","style"],x=P.map((function(t){return"["+t+"]"})).join(","),T=function(t,e,i,n){var r=o(i),a=o(n);(function(t,e){return v(t).reduce((function(t,o){if(!o.attributes)return t;var i=v(o.attributes),n=e?i.filter(e):i;return t.concat(n)}),[])})(t.querySelectorAll(x),(function(t){var e=t.localName,o=t.value;return-1!==P.indexOf(e)&&-1!==o.indexOf("url("+r)})).forEach((function(t){return t.value=t.value.replace(r,a)})),function(t,e,o){v(t).forEach((function(t){var i=t.getAttribute(D);if(i&&0===i.indexOf(e)){var n=i.replace(e,o);t.setAttributeNS(F,D,n)}}))}(e,r,a)},w="mount",M="symbol_mount",k=function(t){function e(e){var o=this;void 0===e&&(e={}),t.call(this,i(y,e));var n=function(t){return t=t||Object.create(null),{on:function(e,o){(t[e]||(t[e]=[])).push(o)},off:function(e,o){t[e]&&t[e].splice(t[e].indexOf(o)>>>0,1)},emit:function(e,o){(t[e]||[]).map((function(t){t(o)})),(t["*"]||[]).map((function(t){t(e,o)}))}}}();this._emitter=n,this.node=null;var r=this.config;if(r.autoConfigure&&this._autoConfigure(e),r.syncUrlsWithBaseTag){var a=document.getElementsByTagName("base")[0].getAttribute("href");n.on(w,(function(){return o.updateUrls("#",a)}))}var s=this._handleLocationChange.bind(this);this._handleLocationChange=s,r.listenLocationChangeEvent&&window.addEventListener(r.locationChangeEvent,s),r.locationChangeAngularEmitter&&C(r.locationChangeEvent),n.on(w,(function(t){r.moveGradientsOutsideSymbol&&E(t)})),n.on(M,(function(t){r.moveGradientsOutsideSymbol&&E(t.parentNode),(I.isIE||I.isEdge)&&function(t){var e=[];v(t.querySelectorAll("style")).forEach((function(t){t.textContent+="",e.push(t)}))}(t)}))}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var o={isMounted:{}};return o.isMounted.get=function(){return!!this.node},e.prototype._autoConfigure=function(t){var e=this.config;void 0===t.syncUrlsWithBaseTag&&(e.syncUrlsWithBaseTag=void 0!==document.getElementsByTagName("base")[0]),void 0===t.locationChangeAngularEmitter&&(e.locationChangeAngularEmitter="angular"in window),void 0===t.moveGradientsOutsideSymbol&&(e.moveGradientsOutsideSymbol=I.isFirefox)},e.prototype._handleLocationChange=function(t){var e=t.detail,o=e.oldUrl,i=e.newUrl;this.updateUrls(o,i)},e.prototype.add=function(e){var o=t.prototype.add.call(this,e);return this.isMounted&&o&&(e.mount(this.node),this._emitter.emit(M,e.node)),o},e.prototype.attach=function(t){var e=this,o=this;if(o.isMounted)return o.node;var i="string"==typeof t?document.querySelector(t):t;return o.node=i,this.symbols.forEach((function(t){t.mount(o.node),e._emitter.emit(M,t.node)})),v(i.querySelectorAll("symbol")).forEach((function(t){var e=_.createFromExistingNode(t);e.node=t,o.add(e)})),this._emitter.emit(w,i),i},e.prototype.destroy=function(){var t=this,e=t.config,o=t.symbols,i=t._emitter;o.forEach((function(t){return t.destroy()})),i.off("*"),window.removeEventListener(e.locationChangeEvent,this._handleLocationChange),this.isMounted&&this.unmount()},e.prototype.mount=function(t,e){void 0===t&&(t=this.config.mountTo),void 0===e&&(e=!1);var o=this;if(o.isMounted)return o.node;var i="string"==typeof t?document.querySelector(t):t,n=o.render();return this.node=n,e&&i.childNodes[0]?i.insertBefore(n,i.childNodes[0]):i.appendChild(n),this._emitter.emit(w,n),n},e.prototype.render=function(){return m(this.stringify())},e.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},e.prototype.updateUrls=function(t,e){if(!this.isMounted)return!1;var o=document.querySelectorAll(this.config.usagesToUpdate);return T(this.node,o,S(t)+"#",S(e)+"#"),!0},Object.defineProperties(e.prototype,o),e}(f),R=t((function(t){
  18. /*!
  19. * domready (c) Dustin Diaz 2014 - License MIT
  20. */
  21. t.exports=function(){var t,e=[],o=document,i=(o.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(o.readyState);return i||o.addEventListener("DOMContentLoaded",t=function(){for(o.removeEventListener("DOMContentLoaded",t),i=1;t=e.shift();)t()}),function(t){i?setTimeout(t,0):e.push(t)}}()}));!!window.__SVG_SPRITE__?g=window.__SVG_SPRITE__:(g=new k({attrs:{id:"__SVG_SPRITE_NODE__"}}),window.__SVG_SPRITE__=g);var O=function(){var t=document.getElementById("__SVG_SPRITE_NODE__");t?g.attach(t):g.mount(document.body,!0)};return document.body?O():R(O),g}))}).call(e,o(18))},function(t,e){var o={__root:{localFilters:"Local filters",slotEditorMsg1:"Required field",slotEditorMsg2:"Drag and drop data to the fields above to build and filter the visualization.",missingColumn:"Missing: %{columnLabel}",placeholderDropzone:"Click or drag data here",slotEditor_emptyState_no_visualization_selected_title:"No visualization selected",slotEditor_emptyState_no_visualization_selected_description:"Select a visualization to manage the field settings.",slotEditor_emptyState_widget_not_support_slot_selected_title:"The widget selected does not use fields",slotEditor_emptyState_widget_not_support_slot_selected_description:"Select a visualization to manage the field settings.",slotEditor_emptyState_multiple_visualizations_selected_title:"Multiple widgets selected",slotEditor_emptyState_multiple_visualizations_selected_description:"Select a visualization to manage the field settings.",slotEditor_emptyState_visualization_has_error_title:"The visualization cannot be displayed",slotEditor_slotItem_tooltip:"Source:",slotEditor_emptyState_vis_not_created_title:"No visualization created",slotEditor_emptyState_vis_not_created_description:"Create a visualization to manage the field settings.",slotEditor:"Fields",slotEditorCoachMarkTitle:"Access fields",slotEditorCoachMarkContents:"Add columns to the fields to build and modify visualizations.",toolbarDeleteFilterActionText:"Remove filter",toolbarActionFilter:"Filter",filterAutobinActionText:"Filter bins",coachMarkTitleSpiralTarget:"Edit scope",coachMarkContentSpiralTarget:"This is where you can access and modify the driver selection for your target.",overlayDropZonePlaceHolderText:"Drag data here"},__cs:{localFilters:"Lokální filtry",slotEditorMsg1:"Povinné pole",slotEditorMsg2:"Přetáhněte data do polí nahoře, aby se sestavila a filtrovala vizualizace.",missingColumn:"Chybí: %{columnLabel}",placeholderDropzone:"Klepněte nebo přetáhněte data sem",slotEditor_emptyState_no_visualization_selected_title:"Není vybrána žádná vizualizace",slotEditor_emptyState_no_visualization_selected_description:"Vyberte vizualizaci pro správu nastavení polí.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Vybraný modul widget nepoužívá pole",slotEditor_emptyState_widget_not_support_slot_selected_description:"Vyberte vizualizaci pro správu nastavení polí.",slotEditor_emptyState_multiple_visualizations_selected_title:"Vybráno více modulů widget",slotEditor_emptyState_multiple_visualizations_selected_description:"Vyberte vizualizaci pro správu nastavení polí.",slotEditor_emptyState_visualization_has_error_title:"Vizualizaci nelze zobrazit",slotEditor_slotItem_tooltip:"Zdroj:",slotEditor_emptyState_vis_not_created_title:"Nebyla vytvořena žádná vizualizace",slotEditor_emptyState_vis_not_created_description:"Vytvořte vizualizaci pro správu nastavení polí.",slotEditor:"Pole",slotEditorCoachMarkTitle:"Přístupová pole",slotEditorCoachMarkContents:"Přidejte sloupce do polí, abyste mohli sestavovat a upravovat vizualizace.",toolbarDeleteFilterActionText:"Odebrat filtr",toolbarActionFilter:"Filtr",filterAutobinActionText:"Filtrovat přihrádky",coachMarkTitleSpiralTarget:"Upravit rozsah",coachMarkContentSpiralTarget:"Zde je k dispozici přístup k výběru drivery pro cíl a možnost jeho úprav.",overlayDropZonePlaceHolderText:"Přetáhněte data sem"},__da:{localFilters:"Lokale filtre",slotEditorMsg1:"Påkrævet felt",slotEditorMsg2:"Træk og placér data til felterne ovenfor for at bygge og filtrere visualiseringen.",missingColumn:"Mangler: %{columnLabel}",placeholderDropzone:"Klik og træk data her",slotEditor_emptyState_no_visualization_selected_title:"Der er ikke valgt nogen visualisering",slotEditor_emptyState_no_visualization_selected_description:"Vælg en visualisering for at administrere feltindstilingerne.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Den valgte widget bruger ikke felter",slotEditor_emptyState_widget_not_support_slot_selected_description:"Vælg en visualisering for at administrere feltindstilingerne.",slotEditor_emptyState_multiple_visualizations_selected_title:"Flere widgetter er valgt",slotEditor_emptyState_multiple_visualizations_selected_description:"Vælg en visualisering for at administrere feltindstilingerne.",slotEditor_emptyState_visualization_has_error_title:"Visualiseringen kan ikke vises",slotEditor_slotItem_tooltip:"Kilde:",slotEditor_emptyState_vis_not_created_title:"Ingen visualisering er oprettet",slotEditor_emptyState_vis_not_created_description:"Opret en visualisering for at administrere feltindstilingerne.",slotEditor:"Felter",slotEditorCoachMarkTitle:"Anvend felter",slotEditorCoachMarkContents:"Tilføj kolonner til felterne for at bygge og ændre visualiseringer.",toolbarDeleteFilterActionText:"Fjern filter",toolbarActionFilter:"Filtrér",filterAutobinActionText:"Filtrér områder (bins)",coachMarkTitleSpiralTarget:"Redigér omfang",coachMarkContentSpiralTarget:"Her kan du få adgang til og ændre styreprogramvalget for dit mål.",overlayDropZonePlaceHolderText:"Træk data her"},__de:{localFilters:"Lokale Filter",slotEditorMsg1:"Erforderliches Feld",slotEditorMsg2:"Daten in die Felder oben ziehen und ablegen, um die Visualisierung zu erstellen und zu filtern.",missingColumn:"Nicht vorhanden: %{columnLabel}",placeholderDropzone:"Klicken oder Daten hierher ziehen",slotEditor_emptyState_no_visualization_selected_title:"Keine Visualisierung ausgewählt",slotEditor_emptyState_no_visualization_selected_description:"Zum Verwalten der Feldeigenschaften eine Visualisierung auswählen.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Ausgewähltes Widget verwendet keine Felder",slotEditor_emptyState_widget_not_support_slot_selected_description:"Zum Verwalten der Feldeigenschaften eine Visualisierung auswählen.",slotEditor_emptyState_multiple_visualizations_selected_title:"Mehrere Widgets ausgewählt",slotEditor_emptyState_multiple_visualizations_selected_description:"Zum Verwalten der Feldeigenschaften eine Visualisierung auswählen.",slotEditor_emptyState_visualization_has_error_title:"Anzeigen der Visualisierung nicht möglich",slotEditor_slotItem_tooltip:"Quelle:",slotEditor_emptyState_vis_not_created_title:"Keine Visualisierung erstellt",slotEditor_emptyState_vis_not_created_description:"Zum Verwalten der Feldeigenschaften eine Visualisierung erstellen.",slotEditor:"Felder",slotEditorCoachMarkTitle:"Felder aufrufen",slotEditorCoachMarkContents:"Spalten zu den Feldern hinzufügen, um Visualisierungen zu erstellen und zu ändern.",toolbarDeleteFilterActionText:"Filter entfernen",toolbarActionFilter:"Filtern",filterAutobinActionText:"Bins filtern",coachMarkTitleSpiralTarget:"Bereich bearbeiten",coachMarkContentSpiralTarget:"Hier können Sie auf die Auswahl der Einflussfaktoren für das Ziel zugreifen und gegebenenfalls Änderungen vornehmen.",overlayDropZonePlaceHolderText:"Daten hierher ziehen"},__es:{localFilters:"Filtros locales",slotEditorMsg1:"Campo necesario",slotEditorMsg2:"Arrastre y suelte los datos en los campos para crear y filtrar la visualización.",missingColumn:"Falta: %{columnLabel}",placeholderDropzone:"Pulse o arrastre los datos aquí ",slotEditor_emptyState_no_visualization_selected_title:"No se ha seleccionado ninguna visualización",slotEditor_emptyState_no_visualization_selected_description:"Seleccione una visualización para gestionar los valores de campos.",slotEditor_emptyState_widget_not_support_slot_selected_title:"El widget seleccionado no utiliza campos",slotEditor_emptyState_widget_not_support_slot_selected_description:"Seleccione una visualización para gestionar los valores de campos.",slotEditor_emptyState_multiple_visualizations_selected_title:"Varios widgets seleccionados",slotEditor_emptyState_multiple_visualizations_selected_description:"Seleccione una visualización para gestionar los valores de campos.",slotEditor_emptyState_visualization_has_error_title:"La visualización no se puede visualizar",slotEditor_slotItem_tooltip:"Origen:",slotEditor_emptyState_vis_not_created_title:"No se ha creado ninguna visualización",slotEditor_emptyState_vis_not_created_description:"Cree una visualización para gestionar los valores de campos.",slotEditor:"Campos",slotEditorCoachMarkTitle:"Acceder a campos",slotEditorCoachMarkContents:"Añada columnas a los campos para crear y modificar visualizaciones.",toolbarDeleteFilterActionText:"Eliminar filtro",toolbarActionFilter:"Filtro",filterAutobinActionText:"Filtrar cubetas",coachMarkTitleSpiralTarget:"Editar ámbito",coachMarkContentSpiralTarget:"Aquí puede acceder y modificar la selección de controlador de su destino.",overlayDropZonePlaceHolderText:"Arrastre los datos aquí "},__fi:{localFilters:"Paikalliset suodattimet",slotEditorMsg1:"Pakollinen kenttä",slotEditorMsg2:"Voit muodostaa visualisoinnin ja suodattaa sen vetämällä ja pudottamalla tiedot yllä oleviin kenttiin.",missingColumn:"Puuttuva: %{columnLabel}",placeholderDropzone:"Napsauta tätä, tai vedä tiedot tähän",slotEditor_emptyState_no_visualization_selected_title:"Visualisointia ei ole valittu",slotEditor_emptyState_no_visualization_selected_description:"Valitse visualisointi, jotta voit hallita kentän asetuksia.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Valittu pienoisohjelma ei käytä kenttiä",slotEditor_emptyState_widget_not_support_slot_selected_description:"Valitse visualisointi, jotta voit hallita kentän asetuksia.",slotEditor_emptyState_multiple_visualizations_selected_title:"On valittu useita pienoisohjelmia",slotEditor_emptyState_multiple_visualizations_selected_description:"Valitse visualisointi, jotta voit hallita kentän asetuksia.",slotEditor_emptyState_visualization_has_error_title:"Visualisoinnin näyttö ei onnistunut",slotEditor_slotItem_tooltip:"Lähde:",slotEditor_emptyState_vis_not_created_title:"Visualisointia ei ole luotu",slotEditor_emptyState_vis_not_created_description:"Valitse visualisointi, jotta voit hallita kentän asetuksia.",slotEditor:"Kentät",slotEditorCoachMarkTitle:"Kenttien käyttö",slotEditorCoachMarkContents:"Lisää kenttiin sarakkeita visualisointien luontia ja muokkausta varten.",toolbarDeleteFilterActionText:"Poista suodatin",toolbarActionFilter:"Suodatin",filterAutobinActionText:"Suodata numeroryhmät",coachMarkTitleSpiralTarget:"Muokkaa aluetta",coachMarkContentSpiralTarget:"Tässä voit käyttää ja muokata vaikuttimien valintaa kohdetta varten.",overlayDropZonePlaceHolderText:"Vedä tiedot tähän"},__fr:{localFilters:"Filtres locaux",slotEditorMsg1:"Zone requise",slotEditorMsg2:"Glissez-déposez des données sur les zones ci-dessus pour générer et filtrer la visualisation.",missingColumn:"Manquant : %{columnLabel}",placeholderDropzone:"Cliquez ou faites glisser les données ici",slotEditor_emptyState_no_visualization_selected_title:"Aucune visualisation sélectionnée",slotEditor_emptyState_no_visualization_selected_description:"Sélectionnez une visualisation pour gérer les paramètres de zone.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Le widget sélectionné n'utilise pas les zones",slotEditor_emptyState_widget_not_support_slot_selected_description:"Sélectionnez une visualisation pour gérer les paramètres de zone.",slotEditor_emptyState_multiple_visualizations_selected_title:"Plusieurs widgets sélectionnés",slotEditor_emptyState_multiple_visualizations_selected_description:"Sélectionnez une visualisation pour gérer les paramètres de zone.",slotEditor_emptyState_visualization_has_error_title:"Impossible d'afficher la visualisation",slotEditor_slotItem_tooltip:"Source :",slotEditor_emptyState_vis_not_created_title:"Aucune visualisation créée",slotEditor_emptyState_vis_not_created_description:"Créez une visualisation pour gérer les paramètres de zone.",slotEditor:"Zones",slotEditorCoachMarkTitle:"Zones d'accès",slotEditorCoachMarkContents:"Ajouter des colonnes aux zones pour générer et modifier des visualisations.",toolbarDeleteFilterActionText:"Retirer le filtre",toolbarActionFilter:"Filtre",filterAutobinActionText:"Filtrer les casiers",coachMarkTitleSpiralTarget:"Editer la portée",coachMarkContentSpiralTarget:"Vous pouvez accéder ici au pilote sélectionné pour votre cible et le modifier.",overlayDropZonePlaceHolderText:"Glisser les données ici"},__hr:{localFilters:"Lokalni filteri",slotEditorMsg1:"Obavezno polje",slotEditorMsg2:"Povucite i ispustite podatke gore na polja da izgradite i filtrirate vizualizaciju.",missingColumn:"Nedostaje: %{columnLabel}",placeholderDropzone:"Kliknite ili povucite podatke ovdje",slotEditor_emptyState_no_visualization_selected_title:"Nema izabranih vizualizacija",slotEditor_emptyState_no_visualization_selected_description:"Izaberite vizualizaciju za upravljanje postavkama polja.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Izabrani grafički element ne koristi polja.",slotEditor_emptyState_widget_not_support_slot_selected_description:"Izaberite vizualizaciju za upravljanje postavkama polja.",slotEditor_emptyState_multiple_visualizations_selected_title:"Izabrano je više grafičkih elemenata.",slotEditor_emptyState_multiple_visualizations_selected_description:"Izaberite vizualizaciju za upravljanje postavkama polja.",slotEditor_emptyState_visualization_has_error_title:"Vizualizacija se ne može prikazati.",slotEditor_slotItem_tooltip:"Izvor:",slotEditor_emptyState_vis_not_created_title:"Vizualizacija nije kreirana",slotEditor_emptyState_vis_not_created_description:"Kreirajte vizualizaciju za upravljanje postavkama polja.",slotEditor:"Polja",slotEditorCoachMarkTitle:"Dohvati polja",slotEditorCoachMarkContents:"Poljima dodajte stupce za izgradite i promijenite vizualizacije.",toolbarDeleteFilterActionText:"Ukloni filter",toolbarActionFilter:"Filter",filterAutobinActionText:"Pregradci filtera",coachMarkTitleSpiralTarget:"Uređivanje opsega",coachMarkContentSpiralTarget:"Ovdje možete dohvatiti i promijeniti izbor pogonitelja za vaš cilj.",overlayDropZonePlaceHolderText:"Povucite podatke ovdje"},__hu:{localFilters:"Helyi szűrők",slotEditorMsg1:"Kötelező mező",slotEditorMsg2:"Húzza az adatokat a fenti mezőkre a megjelenítés összeállításához és szűréséhez.",missingColumn:"A következő hiányzik: %{columnLabel}",placeholderDropzone:"Kattintson vagy húzzon ide adatokat",slotEditor_emptyState_no_visualization_selected_title:"Nincs kijelölt megjelenítés",slotEditor_emptyState_no_visualization_selected_description:"A mezőbeállítások kezeléséhez válasszon ki egy megjelenítést.",slotEditor_emptyState_widget_not_support_slot_selected_title:"A kiválasztott felületi elem nem használ mezőket",slotEditor_emptyState_widget_not_support_slot_selected_description:"A mezőbeállítások kezeléséhez válasszon ki egy megjelenítést.",slotEditor_emptyState_multiple_visualizations_selected_title:"Több felületi elem lett kiválasztva",slotEditor_emptyState_multiple_visualizations_selected_description:"A mezőbeállítások kezeléséhez válasszon ki egy megjelenítést.",slotEditor_emptyState_visualization_has_error_title:"A megjelenítés nem jeleníthető meg",slotEditor_slotItem_tooltip:"Forrás:",slotEditor_emptyState_vis_not_created_title:"Nincs létrehozva megjelenítés",slotEditor_emptyState_vis_not_created_description:"A mezőbeállítások kezeléséhez hozzon létre egy megjelenítést.",slotEditor:"Mezők",slotEditorCoachMarkTitle:"Mezők elérése",slotEditorCoachMarkContents:"Megjelenítések összeállításához és módosításához vegyen fel oszlopokat a mezőkbe.",toolbarDeleteFilterActionText:"Szűrő eltávolítása",toolbarActionFilter:"Szűrő",filterAutobinActionText:"Tároló szűrése",coachMarkTitleSpiralTarget:"Hatókör szerkesztése",coachMarkContentSpiralTarget:"Itt érheti el és módosíthatja a célhoz kijelölt tényezőket.",overlayDropZonePlaceHolderText:"Húzza ide az adatokat"},__it:{localFilters:"Filtri locali",slotEditorMsg1:"Campo obbligatorio",slotEditorMsg2:"Trascinare e rilasciare i dati nei campi sopra riportati per creare e filtrare la visualizzazione.",missingColumn:"Mancante: %{columnLabel}",placeholderDropzone:"Fare clic o trascinare i dati qui ",slotEditor_emptyState_no_visualization_selected_title:"Nessuna visualizzazione selezionata",slotEditor_emptyState_no_visualization_selected_description:"Selezionare una visualizzazione per gestire le impostazioni del campo.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Il widget selezionato non utilizza i campi",slotEditor_emptyState_widget_not_support_slot_selected_description:"Selezionare una visualizzazione per gestire le impostazioni del campo.",slotEditor_emptyState_multiple_visualizations_selected_title:"Più widget selezionati",slotEditor_emptyState_multiple_visualizations_selected_description:"Selezionare una visualizzazione per gestire le impostazioni del campo.",slotEditor_emptyState_visualization_has_error_title:"Impossibile mostrare la visualizzazione",slotEditor_slotItem_tooltip:"Sorgente:",slotEditor_emptyState_vis_not_created_title:"Nessuna visualizzazione creata",slotEditor_emptyState_vis_not_created_description:"Creare una visualizzazione per gestire le impostazioni del campo.",slotEditor:"Campi",slotEditorCoachMarkTitle:"Accedi campi",slotEditorCoachMarkContents:"Aggiungi colonne ai campi per creare e modificare le visualizzazioni.",toolbarDeleteFilterActionText:"Rimuovi filtro",toolbarActionFilter:"Filtra",filterAutobinActionText:"Filtra bin",coachMarkTitleSpiralTarget:"Modifica ambito",coachMarkContentSpiralTarget:"Da qui è possibile accedere e modificare la selezione del driver per la propria destinazione.",overlayDropZonePlaceHolderText:"Trascinare i dati in questo punto"},__ja:{localFilters:"ローカル・フィルター",slotEditorMsg1:"必須フィールド",slotEditorMsg2:"上のフィールドにデータをドラッグ・アンド・ドロップし、視覚化を作成してフィルターに掛けます。",missingColumn:"欠落しています: %{columnLabel}",placeholderDropzone:"データをクリックするかここにドラッグしてください",slotEditor_emptyState_no_visualization_selected_title:"視覚化が選択されていません",slotEditor_emptyState_no_visualization_selected_description:"フィールド設定を管理するための視覚化を選択してください。",slotEditor_emptyState_widget_not_support_slot_selected_title:"選択したウィジェットではフィールドは使用しません",slotEditor_emptyState_widget_not_support_slot_selected_description:"フィールド設定を管理するための視覚化を選択してください。",slotEditor_emptyState_multiple_visualizations_selected_title:"複数のウィジェットが選択されています",slotEditor_emptyState_multiple_visualizations_selected_description:"フィールド設定を管理するための視覚化を選択してください。",slotEditor_emptyState_visualization_has_error_title:"視覚化を表示できません",slotEditor_slotItem_tooltip:"ソース:",slotEditor_emptyState_vis_not_created_title:"視覚化が作成されていません",slotEditor_emptyState_vis_not_created_description:"フィールド設定を管理するための視覚化を作成してください。",slotEditor:"フィールド",slotEditorCoachMarkTitle:"フィールドへのアクセス",slotEditorCoachMarkContents:"視覚化を作成したり変更したりするために列をフィールドに追加します。",toolbarDeleteFilterActionText:"フィルターの削除",toolbarActionFilter:"フィルター",filterAutobinActionText:"ビンのフィルター",coachMarkTitleSpiralTarget:"範囲の編集",coachMarkContentSpiralTarget:"ここでターゲットのドライバー選択にアクセスして変更することができます。",overlayDropZonePlaceHolderText:"ここにデータをドラッグ"},__kk:{localFilters:"Жергілікті сүзгілер",slotEditorMsg1:"Қажетті өріс",slotEditorMsg2:"Көрнекілікті сүзгілеу және құру үшін өрістерге деректерді сүйреп апарып тастаңыз.",missingColumn:"Жоқ: %{columnLabel}",placeholderDropzone:"Деректерді мына жерге нұқыңыз немесе сүйреңіз",slotEditor_emptyState_no_visualization_selected_title:"Көрнекілендіру таңдалмаған",slotEditor_emptyState_no_visualization_selected_description:"Өрістердің параметрлерін басқару үшін көрнекілендіру жасаңыз.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Таңдалған виджет өрістерды пайдаланбайды",slotEditor_emptyState_widget_not_support_slot_selected_description:"Өрістердің параметрлерін басқару үшін көрнекілендіру таңдаңыз.",slotEditor_emptyState_multiple_visualizations_selected_title:"Бірнеше виджеттер таңдалды",slotEditor_emptyState_multiple_visualizations_selected_description:"Өрістердің параметрлерін басқару үшін көрнекілендіру тандаңыз.",slotEditor_emptyState_visualization_has_error_title:"Көрнекілендіруді көрсету мүмкін емес",slotEditor_slotItem_tooltip:"Бастапқы:",slotEditor_emptyState_vis_not_created_title:"Жасалған көрнекілендіру жоқ",slotEditor_emptyState_vis_not_created_description:"Өрістердің параметрлерін басқару үшін көрнекілендіру жасаңыз.",slotEditor:"Өрістер",slotEditorCoachMarkTitle:"Кіру өрістері",slotEditorCoachMarkContents:"Көрнекілендіру бейнелерді құру және өзгерту үшін өрістерге баған қосыңыз.",toolbarDeleteFilterActionText:"Сүзгіш жою",toolbarActionFilter:"Сүзгі",filterAutobinActionText:"Bin -дерді сүзгілеу",coachMarkTitleSpiralTarget:"Ауқымды өңдеу",coachMarkContentSpiralTarget:"Мұнда мақсатыңызға арналған драйвер таңдауына кіруге және оны өзгертуге болады.",overlayDropZonePlaceHolderText:"Деректерді осы жерге апарыңыз"},__ko:{localFilters:"로컬 필터",slotEditorMsg1:"필수 필드",slotEditorMsg2:"시각화를 빌드하고 필터링하려면 위의 필드에 데이터를 끌어서 놓으십시오.",missingColumn:"누락: %{columnLabel}",placeholderDropzone:"데이터 클릭 또는 여기로 끌기",slotEditor_emptyState_no_visualization_selected_title:"선택된 시각화 없음",slotEditor_emptyState_no_visualization_selected_description:"필드 설정을 관리하려면 시각화를 선택하십시오.",slotEditor_emptyState_widget_not_support_slot_selected_title:"선택한 위젯에서 필드를 사용하지 않음",slotEditor_emptyState_widget_not_support_slot_selected_description:"필드 설정을 관리하려면 시각화를 선택하십시오.",slotEditor_emptyState_multiple_visualizations_selected_title:"여러 위젯이 선택됨",slotEditor_emptyState_multiple_visualizations_selected_description:"필드 설정을 관리하려면 시각화를 선택하십시오.",slotEditor_emptyState_visualization_has_error_title:"시각화를 표시할 수 없음",slotEditor_slotItem_tooltip:"소스:",slotEditor_emptyState_vis_not_created_title:"작성된 시각화 없음",slotEditor_emptyState_vis_not_created_description:"필드 설정을 관리하려면 시각화를 작성하십시오.",slotEditor:"필드",slotEditorCoachMarkTitle:"액세스 필드",slotEditorCoachMarkContents:"시각화를 빌드하고 수정하려면 필드에 열을 추가하십시오.",toolbarDeleteFilterActionText:"필터 제거",toolbarActionFilter:"필터",filterAutobinActionText:"구간 필터",coachMarkTitleSpiralTarget:"범위 편집",coachMarkContentSpiralTarget:"대상에 대한 드라이버 선택에 액세스하고 수정할 수 있는 위치입니다.",overlayDropZonePlaceHolderText:"데이터 여기에 놓기"},__nb:{localFilters:"Lokale filtre",slotEditorMsg1:"Obligatorisk felt",slotEditorMsg2:"Dra og slipp data i feltene ovenfor for å bygge og filtrere visualiseringen.",missingColumn:"Mangler: %{columnLabel}",placeholderDropzone:"Klikk eller dra data hit",slotEditor_emptyState_no_visualization_selected_title:"Ingen visualisering valgt",slotEditor_emptyState_no_visualization_selected_description:"Velg en visualisering for å administrere innstillingene for felt.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Den valgte widgeten bruker ikke felt",slotEditor_emptyState_widget_not_support_slot_selected_description:"Velg en visualisering for å administrere innstillingene for felt.",slotEditor_emptyState_multiple_visualizations_selected_title:"Flere widgeter valgt",slotEditor_emptyState_multiple_visualizations_selected_description:"Velg en visualisering for å administrere innstillingene for felt.",slotEditor_emptyState_visualization_has_error_title:"Visualiseringen kan ikke vises",slotEditor_slotItem_tooltip:"Kilde:",slotEditor_emptyState_vis_not_created_title:"Ingen visualisering opprettet",slotEditor_emptyState_vis_not_created_description:"Opprett en visualisering for å administrere innstillingene for felt.",slotEditor:"Felt",slotEditorCoachMarkTitle:"Tilgang til felt",slotEditorCoachMarkContents:"Legg til kolonner i feltene for å bygge og endre visualiseringer.",toolbarDeleteFilterActionText:"Fjern filter",toolbarActionFilter:"Filtrer",filterAutobinActionText:"Filtrer binger",coachMarkTitleSpiralTarget:"Rediger omfang",coachMarkContentSpiralTarget:"Her får du tilgang til og kan endre drivervalget for målet ditt.",overlayDropZonePlaceHolderText:"Dra data hit"},__nl:{localFilters:"Lokale filters",slotEditorMsg1:"Verplicht veld",slotEditorMsg2:"Versleep de gegevens naar de bovenstaande velden om de visualisatie samen te stellen en te filteren.",missingColumn:"%{columnLabel} ontbreekt",placeholderDropzone:"Klik hier of versleep gegevens hiernaartoe",slotEditor_emptyState_no_visualization_selected_title:"Geen visualisatie geselecteerd",slotEditor_emptyState_no_visualization_selected_description:"Selecteer een visualisatie om de instellingen van het veld te beheren.",slotEditor_emptyState_widget_not_support_slot_selected_title:"De geselecteerde widget gebruikt geen velden",slotEditor_emptyState_widget_not_support_slot_selected_description:"Selecteer een visualisatie om de instellingen van het veld te beheren.",slotEditor_emptyState_multiple_visualizations_selected_title:"Meerdere widgets geselecteerd",slotEditor_emptyState_multiple_visualizations_selected_description:"Selecteer een visualisatie om de instellingen van het veld te beheren.",slotEditor_emptyState_visualization_has_error_title:"De visualisatie kan niet worden afgebeeld",slotEditor_slotItem_tooltip:"Bron:",slotEditor_emptyState_vis_not_created_title:"Geen visualisatie gemaakt",slotEditor_emptyState_vis_not_created_description:"Maak een visualisatie om de instellingen van het veld te beheren.",slotEditor:"Velden",slotEditorCoachMarkTitle:"Velden benaderen",slotEditorCoachMarkContents:"Voeg kolommen toe aan de velden om visualisaties te bouwen en te wijzigen.",toolbarDeleteFilterActionText:"Filter verwijderen",toolbarActionFilter:"Filteren",filterAutobinActionText:"Bins filteren",coachMarkTitleSpiralTarget:"Bereik bewerken",coachMarkContentSpiralTarget:"Dit is de plek waar u toegang hebt tot de driverselectie voor uw doel en waar u wijzigingen kunt aanbrengen.",overlayDropZonePlaceHolderText:"Sleep gegevens hier naartoe"},__no:{localFilters:"Lokale filtre",slotEditorMsg1:"Obligatorisk felt",slotEditorMsg2:"Dra og slipp data i feltene ovenfor for å bygge og filtrere visualiseringen.",missingColumn:"Mangler: %{columnLabel}",placeholderDropzone:"Klikk eller dra data hit",slotEditor_emptyState_no_visualization_selected_title:"Ingen visualisering valgt",slotEditor_emptyState_no_visualization_selected_description:"Velg en visualisering for å administrere innstillingene for felt.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Den valgte widgeten bruker ikke felt",slotEditor_emptyState_widget_not_support_slot_selected_description:"Velg en visualisering for å administrere innstillingene for felt.",slotEditor_emptyState_multiple_visualizations_selected_title:"Flere widgeter valgt",slotEditor_emptyState_multiple_visualizations_selected_description:"Velg en visualisering for å administrere innstillingene for felt.",slotEditor_emptyState_visualization_has_error_title:"Visualiseringen kan ikke vises",slotEditor_slotItem_tooltip:"Kilde:",slotEditor_emptyState_vis_not_created_title:"Ingen visualisering opprettet",slotEditor_emptyState_vis_not_created_description:"Opprett en visualisering for å administrere innstillingene for felt.",slotEditor:"Felt",slotEditorCoachMarkTitle:"Tilgang til felt",slotEditorCoachMarkContents:"Legg til kolonner i feltene for å bygge og endre visualiseringer.",toolbarDeleteFilterActionText:"Fjern filter",toolbarActionFilter:"Filtrer",filterAutobinActionText:"Filtrer binger",coachMarkTitleSpiralTarget:"Rediger omfang",coachMarkContentSpiralTarget:"Her får du tilgang til og kan endre drivervalget for målet ditt.",overlayDropZonePlaceHolderText:"Dra data hit"},__pl:{localFilters:"Filtry lokalne",slotEditorMsg1:"Pole wymagane",slotEditorMsg2:"Przeciągnij i upuść dane w powyższych szczelinach, aby utworzyć i przefiltrować wizualizację.",missingColumn:"Brak: %{columnLabel}",placeholderDropzone:"Kliknij lub przeciągnij dane w to miejsce",slotEditor_emptyState_no_visualization_selected_title:"Nie wybrano wizualizacji",slotEditor_emptyState_no_visualization_selected_description:"Wybierz wizualizację, aby zarządzać ustawieniami pól.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Wybrany widget nie korzysta ze pól",slotEditor_emptyState_widget_not_support_slot_selected_description:"Wybierz wizualizację, aby zarządzać ustawieniami pól.",slotEditor_emptyState_multiple_visualizations_selected_title:"Wybrano więcej niż jeden widget",slotEditor_emptyState_multiple_visualizations_selected_description:"Wybierz wizualizację, aby zarządzać ustawieniami pól.",slotEditor_emptyState_visualization_has_error_title:"Nie można wyświetlić wizualizacji",slotEditor_slotItem_tooltip:"Źródło:",slotEditor_emptyState_vis_not_created_title:"Nie utworzono żadnej wizualizacji",slotEditor_emptyState_vis_not_created_description:"Utwórz wizualizację, aby zarządzać ustawieniami pól.",slotEditor:"Pola",slotEditorCoachMarkTitle:"Uzyskaj dostęp do pól",slotEditorCoachMarkContents:"Dodawaj kolumny do pól, aby budować i modyfikować wizualizacje.",toolbarDeleteFilterActionText:"Usuń filtr",toolbarActionFilter:"Filtr",filterAutobinActionText:"Filtruj kategorie",coachMarkTitleSpiralTarget:"Edytuj zakres",coachMarkContentSpiralTarget:"W tym miejscu można uzyskać dostęp do czynników dla zmiennej przewidywanej i zmodyfikować ich wybór.",overlayDropZonePlaceHolderText:"Przeciągnij tutaj dane"},__pt:{localFilters:"Filtros locais",slotEditorMsg1:"Campo requerido",slotEditorMsg2:"Arraste e solte dados para os campos acima para criar e filtrar a visualização.",missingColumn:"Ausente: %{columnLabel}",placeholderDropzone:"Clicar ou arrastar dados aqui",slotEditor_emptyState_no_visualization_selected_title:"Nenhuma visualização selecionada",slotEditor_emptyState_no_visualization_selected_description:"Selecione uma visualização para gerenciar as configurações de campo.",slotEditor_emptyState_widget_not_support_slot_selected_title:"O widget selecionado não usa campos",slotEditor_emptyState_widget_not_support_slot_selected_description:"Selecione uma visualização para gerenciar as configurações de campo.",slotEditor_emptyState_multiple_visualizations_selected_title:"Vários widgets selecionados",slotEditor_emptyState_multiple_visualizations_selected_description:"Selecione uma visualização para gerenciar as configurações de campo.",slotEditor_emptyState_visualization_has_error_title:"Não é possível exibir a visualização",slotEditor_slotItem_tooltip:"Origem:",slotEditor_emptyState_vis_not_created_title:"Nenhuma visualização criada",slotEditor_emptyState_vis_not_created_description:"Crie uma visualização para gerenciar as configurações de campo.",slotEditor:"Campos",slotEditorCoachMarkTitle:"Campos de acesso",slotEditorCoachMarkContents:"Inclua colunas nos campos para criar e modificar visualizações.",toolbarDeleteFilterActionText:"Remover filtro",toolbarActionFilter:"Filtrar",filterAutobinActionText:"Filtro de categorias",coachMarkTitleSpiralTarget:"Editar escopo",coachMarkContentSpiralTarget:"Este é o local onde é possível acessar e modificar a seleção do driver para seu destino.",overlayDropZonePlaceHolderText:"Arraste os dados para cá"},"__pt-br":{localFilters:"Filtros locais",slotEditorMsg1:"Campo requerido",slotEditorMsg2:"Arraste e solte dados para os campos acima para criar e filtrar a visualização.",missingColumn:"Ausente: %{columnLabel}",placeholderDropzone:"Clicar ou arrastar dados aqui",slotEditor_emptyState_no_visualization_selected_title:"Nenhuma visualização selecionada",slotEditor_emptyState_no_visualization_selected_description:"Selecione uma visualização para gerenciar as configurações de campo.",slotEditor_emptyState_widget_not_support_slot_selected_title:"O widget selecionado não usa campos",slotEditor_emptyState_widget_not_support_slot_selected_description:"Selecione uma visualização para gerenciar as configurações de campo.",slotEditor_emptyState_multiple_visualizations_selected_title:"Vários widgets selecionados",slotEditor_emptyState_multiple_visualizations_selected_description:"Selecione uma visualização para gerenciar as configurações de campo.",slotEditor_emptyState_visualization_has_error_title:"Não é possível exibir a visualização",slotEditor_slotItem_tooltip:"Origem:",slotEditor_emptyState_vis_not_created_title:"Nenhuma visualização criada",slotEditor_emptyState_vis_not_created_description:"Crie uma visualização para gerenciar as configurações de campo.",slotEditor:"Campos",slotEditorCoachMarkTitle:"Campos de acesso",slotEditorCoachMarkContents:"Inclua colunas nos campos para criar e modificar visualizações.",toolbarDeleteFilterActionText:"Remover filtro",toolbarActionFilter:"Filtrar",filterAutobinActionText:"Filtro de categorias",coachMarkTitleSpiralTarget:"Editar escopo",coachMarkContentSpiralTarget:"Este é o local onde é possível acessar e modificar a seleção do driver para seu destino.",overlayDropZonePlaceHolderText:"Arraste os dados para cá"},__ro:{localFilters:"Filtre locale",slotEditorMsg1:"Câmp necesar",slotEditorMsg2:"Trageţi şi plasaţi datele în câmpurile de deasupra, pentru a construi şi filtra vizualizarea.",missingColumn:"Lipsă: %{columnLabel}",placeholderDropzone:"Faceţi clic sau trageţi date aici ",slotEditor_emptyState_no_visualization_selected_title:"Nicio vizualizare selectată",slotEditor_emptyState_no_visualization_selected_description:"Selectaţi o vizualizare pentru gestionarea setărilor de câmp.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Widget-ul selectat nu utilizează câmpuri.",slotEditor_emptyState_widget_not_support_slot_selected_description:"Selectaţi o vizualizare pentru gestionarea setărilor de câmp.",slotEditor_emptyState_multiple_visualizations_selected_title:"Sunt selectate mai multe widget-uri",slotEditor_emptyState_multiple_visualizations_selected_description:"Selectaţi o vizualizare pentru gestionarea setărilor de câmp.",slotEditor_emptyState_visualization_has_error_title:"Vizualizarea nu poate fi afişată.",slotEditor_slotItem_tooltip:"Sursă:",slotEditor_emptyState_vis_not_created_title:"Nu a fost creată nicio vizualizare",slotEditor_emptyState_vis_not_created_description:"Creaţi o vizualizare pentru gestionarea setărilor de câmp.",slotEditor:"Câmpuri",slotEditorCoachMarkTitle:"Accesare câmpuri",slotEditorCoachMarkContents:"Adăugaţi coloane la câmpuri pentru a construi şi modifica vizualizările.",toolbarDeleteFilterActionText:"Înlăturare filtru",toolbarActionFilter:"Filtru",filterAutobinActionText:"Filtrare bin-uri",coachMarkTitleSpiralTarget:"Editare domeniu",coachMarkContentSpiralTarget:"Aici puteţi accesa şi modifica selecţia de driver-e pentru ţinta dumneavoastră.",overlayDropZonePlaceHolderText:"Trageţi date aici"},__ru:{localFilters:"Локальные фильтры",slotEditorMsg1:"Обязательное поле",slotEditorMsg2:"Перетащите данные на находящиеся выше поля, чтобы построить визуализацию и применить к ней фильтр.",missingColumn:"Отсутствует: %{columnLabel}",placeholderDropzone:"Щелкните здесь или перетащите сюда данные",slotEditor_emptyState_no_visualization_selected_title:"Визуализация не отобрана",slotEditor_emptyState_no_visualization_selected_description:"Выберите визуализацию для управления настройками полей.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Выбранный виджет не использует поля",slotEditor_emptyState_widget_not_support_slot_selected_description:"Выберите визуализацию для управления настройками полей.",slotEditor_emptyState_multiple_visualizations_selected_title:"Выбрано несколько виджетов",slotEditor_emptyState_multiple_visualizations_selected_description:"Выберите визуализацию для управления настройками полей.",slotEditor_emptyState_visualization_has_error_title:"Вывести визуализацию невозможно",slotEditor_slotItem_tooltip:"Источник:",slotEditor_emptyState_vis_not_created_title:"Визуализация не создана",slotEditor_emptyState_vis_not_created_description:"Создайте визуализацию для управления настройками полей.",slotEditor:"Поля",slotEditorCoachMarkTitle:"Доступ к полям",slotEditorCoachMarkContents:"Добавьте в поля столбцы для построения и изменения визуализаций.",toolbarDeleteFilterActionText:"Удалить фильтр",toolbarActionFilter:"Фильтр",filterAutobinActionText:"Применить фильтр к контейнерам",coachMarkTitleSpiralTarget:"Изменить область",coachMarkContentSpiralTarget:"Здесь можно получить доступ и изменить выбор драйвера для целевого объекта.",overlayDropZonePlaceHolderText:"Перетащите сюда данные"},__sl:{localFilters:"Lokalni filtri",slotEditorMsg1:"Obvezno polje",slotEditorMsg2:"Povlecite in spustite podatke v polja zgoraj, da zgradite in filtrirate vizualizacijo.",missingColumn:"Manjkajoče: %{columnLabel}",placeholderDropzone:"Kliknite ali povlecite podatke sem",slotEditor_emptyState_no_visualization_selected_title:"Izbrana ni nobena vizualizacija",slotEditor_emptyState_no_visualization_selected_description:"Izberite vizualizacijo za upravljanje nastavitev polja.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Izbrani gradnik ne uporablja polj",slotEditor_emptyState_widget_not_support_slot_selected_description:"Izberite vizualizacijo za upravljanje nastavitev polja.",slotEditor_emptyState_multiple_visualizations_selected_title:"Izbranih je več gradnikov",slotEditor_emptyState_multiple_visualizations_selected_description:"Izberite vizualizacijo za upravljanje nastavitev polja.",slotEditor_emptyState_visualization_has_error_title:"Vizualizacije ni mogoče prikazati",slotEditor_slotItem_tooltip:"Izvor:",slotEditor_emptyState_vis_not_created_title:"Ustvarjena ni bila nobena vizualizacija",slotEditor_emptyState_vis_not_created_description:"Ustvarite vizualizacijo za upravljanje nastavitev polja.",slotEditor:"Polja",slotEditorCoachMarkTitle:"Polja za dostop",slotEditorCoachMarkContents:"V polja dodajte stolpce, da boste lahko gradili in spreminjali vizualizacije.",toolbarDeleteFilterActionText:"Odstrani filter",toolbarActionFilter:"Filter",filterAutobinActionText:"Predali filtra",coachMarkTitleSpiralTarget:"Urejanje območja",coachMarkContentSpiralTarget:"Tukaj lahko dostopate do izbora gonilnikov za svoj cilj in jih spreminjate.",overlayDropZonePlaceHolderText:"Povlecite podatke sem"},__sv:{localFilters:"Lokala filter",slotEditorMsg1:"Obligatoriskt fält",slotEditorMsg2:"Dra data till fälten ovan för att skapa och filtrera visualiseringen.",missingColumn:"%{columnLabel} saknas",placeholderDropzone:"Klicka eller dra data hit",slotEditor_emptyState_no_visualization_selected_title:"Ingen visualisering vald",slotEditor_emptyState_no_visualization_selected_description:"Välj en visualisering för att hantera fältinställningarna.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Den valda widgeten använder inte fält",slotEditor_emptyState_widget_not_support_slot_selected_description:"Välj en visualisering för att hantera fältinställningarna.",slotEditor_emptyState_multiple_visualizations_selected_title:"Flera widgetar har valts",slotEditor_emptyState_multiple_visualizations_selected_description:"Välj en visualisering för att hantera fältinställningarna.",slotEditor_emptyState_visualization_has_error_title:"Det går inte att visa visualiseringen",slotEditor_slotItem_tooltip:"Källa:",slotEditor_emptyState_vis_not_created_title:"Inga visualiseringar har skapats",slotEditor_emptyState_vis_not_created_description:"Skapa en visualisering för att hantera fältinställningarna.",slotEditor:"Fält",slotEditorCoachMarkTitle:"Åtkomst till fält",slotEditorCoachMarkContents:"Lägg till kolumner i fälten för att skapa och ändra visualiseringar.",toolbarDeleteFilterActionText:"Ta bort filter",toolbarActionFilter:"Filtrera",filterAutobinActionText:"Filtrera bin",coachMarkTitleSpiralTarget:"Ändra omfattning",coachMarkContentSpiralTarget:"Här kan du komma åt och ändra valet av styrfunktioner för målet.",overlayDropZonePlaceHolderText:"Dra data hit"},__th:{localFilters:"ตัวกรองโลคัล",slotEditorMsg1:"ฟิลด์ที่จำเป็น",slotEditorMsg2:"ลากและปล่อยข้อมูลลงในฟิลด์ด้านบนเพื่อบิลด์และกรองวิชวลไลเซชัน",missingColumn:"ไม่มี: %{columnLabel}",placeholderDropzone:"คลิกหรือลากข้อมูลที่นี่",slotEditor_emptyState_no_visualization_selected_title:"ไม่ได้เลือกวิชวลไลเซชัน",slotEditor_emptyState_no_visualization_selected_description:"เลือกวิชวลไลเซชันที่จะจัดการการตั้งค่าฟิลด์",slotEditor_emptyState_widget_not_support_slot_selected_title:"วิดเจ็ตที่เลือกไม่ได้ใช้ฟิลด์",slotEditor_emptyState_widget_not_support_slot_selected_description:"เลือกวิชวลไลเซชันที่จะจัดการการตั้งค่าฟิลด์",slotEditor_emptyState_multiple_visualizations_selected_title:"เลือกหลายวิดเจ็ต",slotEditor_emptyState_multiple_visualizations_selected_description:"เลือกวิชวลไลเซชันที่จะจัดการการตั้งค่าฟิลด์",slotEditor_emptyState_visualization_has_error_title:"วิชวลไลเซชันไม่สามารถแสดงผลได้",slotEditor_slotItem_tooltip:"ซอร์ส:",slotEditor_emptyState_vis_not_created_title:"ไม่มีการสร้างวิชวลไลเซชัน",slotEditor_emptyState_vis_not_created_description:"สร้างวิชวลไลเซชันที่จะจัดการการตั้งค่าฟิลด์",slotEditor:"ฟิลด์",slotEditorCoachMarkTitle:"เข้าถึงฟิลด์",slotEditorCoachMarkContents:"เพิ่มคอลัมน์ลงในฟิลด์เพื่อบิลด์และปรับเปลี่ยนวิชวลไลเซชัน",toolbarDeleteFilterActionText:"ลบตัวกรอง",toolbarActionFilter:"ตัวกรอง",filterAutobinActionText:"ถังกรอง",coachMarkTitleSpiralTarget:"แก้ไขขอบเขต",coachMarkContentSpiralTarget:"นี่เป็นตำแหน่งที่คุณสามารถเข้าถึงและปรับเปลี่ยนการเลือกไดรเวอร์สำหรับเป้าหมายของคุณ",overlayDropZonePlaceHolderText:"ลากข้อมูลที่นี่"},__tr:{localFilters:"Yerel süzgeçler",slotEditorMsg1:"Zorunlu alan",slotEditorMsg2:"Görselleştirmeyi oluşturup süzgeçten geçirmek için verileri yukarıdaki alanlara sürükleyip bırakın.",missingColumn:"Eksik: %{columnLabel}",placeholderDropzone:"Tıklatın veya verileri buraya sürükleyin",slotEditor_emptyState_no_visualization_selected_title:"Bir görselleştirme seçilmedi",slotEditor_emptyState_no_visualization_selected_description:"Alan ayarlarını yönetmek için bir görselleştirme seçin.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Seçilen pencere öğesi alanları kullanmıyor",slotEditor_emptyState_widget_not_support_slot_selected_description:"Alan ayarlarını yönetmek için bir görselleştirme seçin.",slotEditor_emptyState_multiple_visualizations_selected_title:"Birden çok pencere öğesi seçildi",slotEditor_emptyState_multiple_visualizations_selected_description:"Alan ayarlarını yönetmek için bir görselleştirme seçin.",slotEditor_emptyState_visualization_has_error_title:"Görselleştirme görüntülenemiyor",slotEditor_slotItem_tooltip:"Kaynak:",slotEditor_emptyState_vis_not_created_title:"Bir görselleştirme oluşturulmadı",slotEditor_emptyState_vis_not_created_description:"Alan ayarlarını yönetmek için bir görselleştirme oluşturun.",slotEditor:"Alanlar",slotEditorCoachMarkTitle:"Erişim alanları",slotEditorCoachMarkContents:"Görselleştirmeleri oluşturmak ve değiştirmek için alanlara sütun ekleyin.",toolbarDeleteFilterActionText:"Süzgeci kaldır",toolbarActionFilter:"Süzgeç",filterAutobinActionText:"Süzgeç bölmeleri",coachMarkTitleSpiralTarget:"Kapsamı düzenle",coachMarkContentSpiralTarget:"Burası, hedefiniz için sürücü seçimine erişebileceğiniz ve sürücü seçimini değiştirebileceğiniz yerdir.",overlayDropZonePlaceHolderText:"Verileri buraya sürükleyin"},__zh:{localFilters:"本地过滤器",slotEditorMsg1:"必填字段",slotEditorMsg2:"将数据拖放到字段上方可构建并过滤可视化。",missingColumn:"缺少:%{columnLabel}",placeholderDropzone:"单击数据或将数据拖到此处",slotEditor_emptyState_no_visualization_selected_title:"未选择任何可视化",slotEditor_emptyState_no_visualization_selected_description:"选择可视化以管理字段设置。",slotEditor_emptyState_widget_not_support_slot_selected_title:"所选窗口小部件不使用字段",slotEditor_emptyState_widget_not_support_slot_selected_description:"选择可视化以管理字段设置。",slotEditor_emptyState_multiple_visualizations_selected_title:"已选择多个窗口小部件",slotEditor_emptyState_multiple_visualizations_selected_description:"选择可视化以管理字段设置。",slotEditor_emptyState_visualization_has_error_title:"无法显示可视化",slotEditor_slotItem_tooltip:"源:",slotEditor_emptyState_vis_not_created_title:"未创建任何可视化",slotEditor_emptyState_vis_not_created_description:"创建可视化以管理字段设置。",slotEditor:"字段",slotEditorCoachMarkTitle:"访问字段",slotEditorCoachMarkContents:"向字段添加列以构建并修改可视化。",toolbarDeleteFilterActionText:"除去过滤器",toolbarActionFilter:"过滤器",filterAutobinActionText:"过滤分箱",coachMarkTitleSpiralTarget:"编辑作用域",coachMarkContentSpiralTarget:"您可以在此访问和修改目标的动因选择。",overlayDropZonePlaceHolderText:"将数据拖到此处"},"__zh-cn":{localFilters:"本地过滤器",slotEditorMsg1:"必填字段",slotEditorMsg2:"将数据拖放到字段上方可构建并过滤可视化。",missingColumn:"缺少:%{columnLabel}",placeholderDropzone:"单击数据或将数据拖到此处",slotEditor_emptyState_no_visualization_selected_title:"未选择任何可视化",slotEditor_emptyState_no_visualization_selected_description:"选择可视化以管理字段设置。",slotEditor_emptyState_widget_not_support_slot_selected_title:"所选窗口小部件不使用字段",slotEditor_emptyState_widget_not_support_slot_selected_description:"选择可视化以管理字段设置。",slotEditor_emptyState_multiple_visualizations_selected_title:"已选择多个窗口小部件",slotEditor_emptyState_multiple_visualizations_selected_description:"选择可视化以管理字段设置。",slotEditor_emptyState_visualization_has_error_title:"无法显示可视化",slotEditor_slotItem_tooltip:"源:",slotEditor_emptyState_vis_not_created_title:"未创建任何可视化",slotEditor_emptyState_vis_not_created_description:"创建可视化以管理字段设置。",slotEditor:"字段",slotEditorCoachMarkTitle:"访问字段",slotEditorCoachMarkContents:"向字段添加列以构建并修改可视化。",toolbarDeleteFilterActionText:"除去过滤器",toolbarActionFilter:"过滤器",filterAutobinActionText:"过滤分箱",coachMarkTitleSpiralTarget:"编辑作用域",coachMarkContentSpiralTarget:"您可以在此访问和修改目标的动因选择。",overlayDropZonePlaceHolderText:"将数据拖到此处"},"__zh-tw":{localFilters:"本端過濾器",slotEditorMsg1:"必要欄位",slotEditorMsg2:"將資料拖放至上方的欄位來建置及過濾視覺化。",missingColumn:"遺漏:%{columnLabel}",placeholderDropzone:"在這裡按一下或拖曳資料",slotEditor_emptyState_no_visualization_selected_title:"未選取任何視覺化",slotEditor_emptyState_no_visualization_selected_description:"選取視覺化以管理欄位設定。",slotEditor_emptyState_widget_not_support_slot_selected_title:"選取的小組件沒有使用欄位。",slotEditor_emptyState_widget_not_support_slot_selected_description:"選取視覺化以管理欄位設定。",slotEditor_emptyState_multiple_visualizations_selected_title:"已選取多個小組件",slotEditor_emptyState_multiple_visualizations_selected_description:"選取視覺化以管理欄位設定。",slotEditor_emptyState_visualization_has_error_title:"無法顯示視覺化。",slotEditor_slotItem_tooltip:"來源:",slotEditor_emptyState_vis_not_created_title:"未建立任何視覺化",slotEditor_emptyState_vis_not_created_description:"建立視覺化以管理欄位設定。",slotEditor:"欄位",slotEditorCoachMarkTitle:"存取欄位",slotEditorCoachMarkContents:"將直條圖新增至欄位以建置和修改視覺化。",toolbarDeleteFilterActionText:"移除過濾器",toolbarActionFilter:"過濾",filterAutobinActionText:"過濾組",coachMarkTitleSpiralTarget:"編輯範圍",coachMarkContentSpiralTarget:"您可以在此處存取及修改目標動因選項。",overlayDropZonePlaceHolderText:"將資料拖曳至此"},init:function(t){t||(t=window._i18n&&window._i18n.locale?window._i18n.locale:document.documentElement.lang?document.documentElement.lang:"root");var e=this["__"+t]||this.__root;if(e)for(var o in e)this[o]=e[o];for(var o in this.__root)void 0===this[o]&&(this[o]=this.__root[o])}};o.init(),t.exports=o},function(t,e){t.exports=s},function(t,e,o){var i=o(46);"string"==typeof i&&(i=[[t.i,i,""]]);var n={hmr:!0,transform:void 0};o(10)(i,n),i.locals&&(t.exports=i.locals)},function(t,e){var o;o=function(){return this}();try{o=o||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(o=window)}t.exports=o},function(t,e,o){var i=o(79);"string"==typeof i&&(i=[[t.i,i,""]]);var n={hmr:!0,transform:void 0};o(10)(i,n),i.locals&&(t.exports=i.locals)},function(t,e){t.exports=l},,function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),n=function(t){return t&&t.__esModule?t:{default:t}}(o(4)),r=o(7),a=function(){function t(e){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this.domNode=e.domNode,this.className=e.className,this.slotDataItemHandler=e.slotDataItemHandler,this.addAfter=e.addAfter,this.dndManager=e.dndManager,this.onDragEnter=e.onDragEnter,this.onDragLeave=e.onDragLeave,this.isVisOverlay=e.isVisOverlay,this.timer=null,this.dndManager&&this._setupDnD()}return i(t,[{key:"_setupDnD",value:function(){var t=this,e=this.slotDataItemHandler&&this.slotDataItemHandler.onDrop&&this.slotDataItemHandler.onDrop.bind(this.slotDataItemHandler);this.dndManager.registerDropTarget({el:this.domNode,type:"slot.item",info:function(o,i){return{dragInfo:{position:{x:i.clientX,y:i.clientY}},node:o,onDragEnter:t.activateDropTarget.bind(t),onDragLeave:t.deactivateDropTarget.bind(t),onDrop:e,contentId:t.slotDataItemHandler.getContentId(),slot:t.slotDataItemHandler.getSlotAPI(),indexInSlot:t.slotDataItemHandler.indexInSlot,addAfter:t.addAfter,isVisOverlay:t.isVisOverlay}}})}},{key:"destroy",value:function(){this.dndManager.deregisterDropTarget(this.domNode)}},{key:"updateDropTarget",value:function(t){this.dndManager&&(this.slotDataItemHandler=t,this._setupDnD())}},{key:"activateDropTarget",value:function(){(0,n.default)(this.domNode).toggleClass(this.className,!0),this.onDragEnter&&this.onDragEnter()}},{key:"deactivateDropTarget",value:function(){(0,n.default)(this.domNode).toggleClass(this.className,!1),this.onDragLeave&&this.onDragLeave()}},{key:"onDragMove",value:function(t,e,o){var i=this,a=(0,n.default)(e).closest(".slotEditor").get(0);a&&(0,r.handleScroll)(o,a,(function(){return i.dndManager&&i.dndManager.reassessContainer(a)})),this.activateDropTarget()}},{key:"initializeDndSource",value:function(t,e,o,i){var r=this;(0,n.default)(this.domNode).on("mousedown",{},(function(n){return i&&i(),r._startDrag({dndManager:t,event:n,cbGetSlotDataItemHandler:e,iconsFeature:o}),!0})),(0,n.default)(this.domNode).on("touchstart",{},(function(n){return i&&i(),r._touchStart({dndManager:t,event:n,cbGetSlotDataItemHandler:e,iconsFeature:o}),!0})),(0,n.default)(this.domNode).on("touchend touchcancel",{},(function(){return r._touchEnd()}))}},{key:"_touchStart",value:function(t){this.timer=setTimeout(function(){this._touchStartDrag(t)}.bind(this),600)}},{key:"_touchEnd",value:function(){this.timer&&clearTimeout(this.timer),this.timer=null}},{key:"_touchStartDrag",value:function(t){this.timer&&this._startDrag(t)}},{key:"_startDrag",value:function(t){var e=(0,n.default)('<div style="position:absolute; z-index:10000;"/>'),o=(0,n.default)(this.domNode).clone().addClass("draggedNode"),i=this.domNode.getBoundingClientRect().width;if(o.css({width:i,cursor:"default"}),t.iconsFeature){var r=t.iconsFeature.getIcon("common-nodrop");if(r){var a=(0,n.default)('<div class="nodrop is-hidden">\n\t\t\t\t\t\t<svg class="svgIcon">\n\t\t\t\t\t\t\t<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#'+r.id+'">\n\t\t\t\t\t\t\t</use>\n\t\t\t\t\t\t</svg>\n\t\t\t\t\t</div>');o.find(".bi-common-field-item__nameLine__draggable").remove(),o.find(".bi-common-field-item__nameLine").prepend(a)}}e.append(o);var s=t.cbGetSlotDataItemHandler();t.dndManager.startDrag({event:t.event,type:"SLOT_ITEM",data:{source:{slot:s.getSlotAPI(),indexInSlot:s.indexInSlot}},callerCallbacks:{onMove:this._onMove.bind(this)},avatar:e,moveXThreshold:20,moveYThreshold:20})}},{key:"_onMove",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=e.dragObject;if(o){var i=o.avatar;if(i){var r=(0,n.default)(i),a=r.find(".nodrop");if(a.length){var s=e.dropTargetNode;if(s){var l=!(s.classList&&s.classList.contains("slotEditor"));a.toggleClass("is-hidden",l)}else a.toggleClass("is-hidden",!1)}}}}}]),t}();e.default=a},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n,r=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),a=o(0),s=i(a),l=o(3),u=o(12),c=i(o(1)),d=i(o(4)),p=i(o(48));o(59);var f=(0,u.observer)(n=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.scrollToDropdown=function(){if(o.dropdownRef.current){var t=o.dropdownRef.current.getBoundingClientRect().bottom-window.innerHeight;t>300&&(o.dropdownRef.current.closest(".slotEditor").scrollTop=t)}},o.onChange=function(t){o.setState({userTextInput:t})},o.handleEscapeDropdown=function(t){"Escape"===t.key&&o.props.onBlur()},o.handleKeyDown=function(t){if("ArrowDown"===t.key){var e=o.dropdownRef.current,i=(0,d.default)(e).find("div.ba-common-list")[0];i&&(t.preventDefault(),i.focus())}else"Enter"===t.key&&""===o.state.userTextInput&&(t.preventDefault(),o.props.replaceSlotItem?o.props.a11Y.deleteSlotItem(o.props.slotDataItemHandler):o.props.onBlur())},o.onBlur=function(){o.blurTimer=setTimeout(o.props.onBlur,350)},o.onFocus=function(){o.blurTimer&&(clearTimeout(o.blurTimer),o.blurTimer=null)},o.state={userTextInput:o.props.textValue},o.dropdownRef=s.default.createRef(),o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"render",value:function(){var t={"max-height":this.props.getDropdownMaxHeight()>0?this.props.getDropdownMaxHeight()+"px":"none"},e=s.default.createElement("div",{className:"ba-common-dropdown dropdown",ref:this.dropdownRef,style:t},s.default.createElement(l.Collapse,{isOpened:this.props.open,autoUnmount:!0,hasNestedCollapse:!0,forceInitialAnimation:!0,onRest:this.scrollToDropdown},this._renderMetadataTree()));return s.default.createElement("div",{className:"dropdownWrapper",onBlur:this.onBlur,onFocus:this.onFocus,onKeyDown:this.handleEscapeDropdown},this._renderTextInput(),e)}},{key:"_renderTextInput",value:function(){return s.default.createElement(l.TextInput,{className:"itemInput",noBottomBorder:!0,value:this.state.userTextInput,autoFocus:!0,onChange:(0,p.default)(this.onChange.bind(this),250),onKeyDown:(0,p.default)(this.handleKeyDown.bind(this),250),style:{width:"100%",height:40}})}},{key:"performSelection",value:function(t){this.props.slotDataItemHandler.insertItemFromTypeInSlot(t,this.props.sourceId,{replaceSlotItem:this.props.replaceSlotItem,parentNode:this.props.parentNode}),this.props.onItemSelected(),this.props.onBlur()}},{key:"_renderMetadataTree",value:function(){var t=this.props.slotDataItemHandler.getPickTreeContext&&this.props.slotDataItemHandler.getPickTreeContext(this.props.replaceSlotItem);return this.props.dashboardApi.getFeature("DataSources.UI").getPickTree(this.props.sourceId,this.state.userTextInput,this.performSelection.bind(this),null,t)}}]),e}(a.Component))||n;f.propTypes={a11Y:c.default.object,open:c.default.bool.isRequired,textValue:c.default.string,dashboardApi:c.default.object.isRequired,getDropdownMaxHeight:c.default.func.isRequired,sourceId:c.default.string.isRequired,onBlur:c.default.func.isRequired,replaceSlotItem:c.default.bool.isRequired,parentNode:c.default.object,slotDataItemHandler:c.default.object.isRequired,onItemSelected:c.default.func},f.defaultProps={parentNode:{},textValue:"",a11Y:void 0,onItemSelected:function(){}},e.default=f},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,o){var i=o(50),n="object"==typeof self&&self&&self.Object===Object&&self,r=i||n||Function("return this")();t.exports=r},function(t,e,o){var i=o(25).Symbol;t.exports=i},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),s=o(0),l=i(s),u=i(o(1)),c=i(o(2)),d=o(3),p=function(t){function e(){var t,o,i;n(this,e);for(var a=arguments.length,s=Array(a),l=0;l<a;l++)s[l]=arguments[l];return o=i=r(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(s))),i._onCloseFlyout=function(){i.props.onClose&&i.props.onClose()},r(i,o)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),a(e,[{key:"render",value:function(){var t=c.default.get("slotEditor_slotItem_tooltip"),e=this._renderQuerySubjectItem();return e?l.default.createElement(d.Flyout,{domNodeToAttachTo:document.body,triggerNode:this.props.domNode,offset:10,placement:"topCentred",candidatePlacement:["topCentred"],onClose:this._onCloseFlyout},l.default.createElement("div",{className:"slotEditorItem__disambiguatingTooltipTitle"},t),l.default.createElement("div",{className:"slotEditorItem__disambiguatingTooltip"},e)):null}},{key:"_renderQuerySubjectItem",value:function(){return this.props.dashboardApi.getFeature("DataSources.UI").getColumnSourceTree(this.props.sourceId,this.props.columnId)}}]),e}(s.Component);p.propTypes={domNode:u.default.object.isRequired,dashboardApi:u.default.object.isRequired,columnId:u.default.string,sourceId:u.default.string,onClose:u.default.func},e.default=p},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),r=o(0),a=i(r),s=i(o(1)),l=i(o(2)),u=o(3),c=i(o(23)),d=o(12),p=i(o(4)),f=o(7);o(66);var h=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o._placeholderTypeInOn=function(){o.setState({isTypeInMode:!0})},o._placeholderTypeInOff=function(){o.setState({isTypeInMode:!1})},o._placeholderDropzoneOn=function(){o.props.slotPlaceholderStateModel.setActivePlaceholderExists(!0),o.setState({showDropzone:!0})},o._placeholderDropzoneOff=function(){o.props.slotPlaceholderStateModel.setActivePlaceholderExists(!1),o.setState({showDropzone:!1})},o.state={isTypeInMode:!1,showDropzone:!1},o.placeholderRef=a.default.createRef(),o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),n(e,[{key:"componentDidMount",value:function(){var t=this,e={onDragEnter:this._placeholderDropzoneOn.bind(this),onDragLeave:this._placeholderDropzoneOff.bind(this),getDndManager:function(e){t._dndManager=e}};this.props.initializeDnd(this.placeholderRef.current,e)}},{key:"componentDidUpdate",value:function(t,e){var o=this;if(this.state.showDropzone!==e.showDropzone){var i=(0,p.default)(this.placeholderRef.current).closest(".slotEditor__slots__slot").get(0);i&&this._dndManager&&this._dndManager.dragObject&&this._dndManager.reassessContainer(i)}if(t.slotDataItemHandler!==this.props.slotDataItemHandler){var n={onDragEnter:this._placeholderDropzoneOn.bind(this),onDragLeave:this._placeholderDropzoneOff.bind(this),getDndManager:function(t){o._dndManager=t}};this.props.initializeDnd(this.placeholderRef.current,n)}}},{key:"componentWillUnmount",value:function(){this._dndManager&&this._dndManager.deregisterDropTarget(this.placeholderRef.current)}},{key:"render",value:function(){return a.default.createElement("div",{className:"slotPlaceholder",ref:this.placeholderRef},a.default.createElement("div",{className:"slotPlaceholder__hoverIndicator"}),this._renderItem())}},{key:"shouldRenderPlaceholder",value:function(){var t=this.props,e=t.slotPlaceholderStateModel,o=t.indexInSlot,i=t.numberItemsInSlot,n=t.canAcceptMoreItems;return!e||!e.getActivePlaceholderExists()&&n?i===o+1:this.state.showDropzone}},{key:"_renderItem",value:function(){var t=this;if(this.shouldRenderPlaceholder())return this.sourceId=this.props.slotDataItemHandler.getDatasourceId()||(0,f.getDataSourceIdTypeIn)(this.props.dashboardApi),a.default.createElement("div",{className:"slotPlaceholder__itemPlaceholder",tabIndex:"0",onClick:this._placeholderTypeInOn,onKeyDown:function(e){return t.props.a11Y.handleOpenTypeInDropdown(e,t._placeholderTypeInOn.bind(t))}},this.state.isTypeInMode&&this.sourceId?this._renderFieldDropdown():a.default.createElement(u.Label,{label:l.default.get("placeholderDropzone"),className:"slotPlaceholder__itemPlaceholder__actionLabel"}))}},{key:"_renderFieldDropdown",value:function(){return a.default.createElement(c.default,{a11Y:this.props.a11Y,open:this.state.isTypeInMode,dashboardApi:this.props.dashboardApi,getDropdownMaxHeight:this.getDropdownMaxHeight,onBlur:this._placeholderTypeInOff,slotDataItemHandler:this.props.slotDataItemHandler,sourceId:this.sourceId,parentNode:this.props.parentNode,replaceSlotItem:!1})}},{key:"getDropdownMaxHeight",value:function(){return 500}}]),e}(r.Component);h.propTypes={a11Y:s.default.object.isRequired,indexInSlot:s.default.number,numberItemsInSlot:s.default.number,canAcceptMoreItems:s.default.bool,slotDataItemHandler:s.default.object.isRequired,dashboardApi:s.default.object.isRequired,initializeDnd:s.default.func.isRequired,parentNode:s.default.object,slotPlaceholderStateModel:s.default.object},h.defaultProps={indexInSlot:0,numberItemsInSlot:1,slotPlaceholderStateModel:void 0,canAcceptMoreItems:!0,parentNode:{}},e.default=(0,d.observer)(h)},function(t,e){t.exports=u},function(t,e){t.exports=c},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),n=function(t){return t&&t.__esModule?t:{default:t}}(o(4)),r=o(69),a=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return i(t,[{key:"handleKeyDown",value:function(t,e){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;" "===t.key?(this._sourceSelection=e.slotDataItemHandler,(0,n.default)(this.sourceNode).removeClass("selected"),this.sourceNode=t.target,(0,n.default)(this.sourceNode).addClass("selected"),t.preventDefault()):this.handleOpenTypeInDropdown(t,o)}},{key:"handleKeyUp",value:function(t,e){"Delete"===t.key||"Backspace"===t.key?(0,n.default)(t.target).hasClass("slotEditorItem")&&(this.deleteSlotItem(e.slotDataItemHandler),t.preventDefault()):r.A11YUtils.isPaste(t)&&(this.slotHandleKeyUp(t,e.slotDataItemHandler),t.preventDefault())}},{key:"handleKeyUpForFilterItem",value:function(t,e,o){"Delete"!==t.key&&"Backspace"!==t.key||(0,n.default)(t.target).hasClass("slotEditorItem")&&(this._deleteFilterItem(e,o),t.preventDefault())}},{key:"handleOpenTypeInDropdown",value:function(t,e){this._sourceSelection||"Enter"!==t.key||e()}},{key:"handleKeyPress",value:function(t,e,o){this._sourceSelection&&"Enter"===t.key&&((0,n.default)(this.sourceNode).removeClass("selected"),e(this._sourceSelection,o),this._sourceSelection=null,t.preventDefault())}},{key:"slotHandleKeyUp",value:function(t,e){if(r.A11YUtils.isPaste(t)){var o=!(t&&t.target&&t.target.classList.contains("slotEditorItem"));e.onDropA11Y(o)}}},{key:"filterHeaderHandleKeyUp",value:function(t,e,o,i){r.A11YUtils.isPaste(t)&&i.onDropA11Y(e)}},{key:"deleteSlotItem",value:function(t){return t.getActions().then((function(t){var e=t.find((function(t){return t&&"delete"===t.name}));e&&e.actions.apply()}))}},{key:"_deleteFilterItem",value:function(t,e){return t.getActions(e.metadataColumn,e.filterId).then((function(t){var e=t.find((function(t){return void 0!==t.deleteLocalFilter}));e&&e.deleteLocalFilter()}))}}]),t}();e.default=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(13),n=o.n(i),r=o(14),a=o.n(r),s=new n.a({id:"build-visualization_128",use:"build-visualization_128-usage",viewBox:"0 0 200 200",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" id="build-visualization_128"><circle class="ba-graphics-neutral-white4" cx="100" cy="100" r="100" /><path class="ba-graphics-white" d="M14.97 170.08h183.04" /><path class="ba-graphics-gray60" d="M198 172.08H15a2 2 0 110-4h183a2 2 0 010 4z" /><path class="ba-graphics-white" d="M2 170.08h4.97" /><path class="ba-graphics-gray60" d="M7 172.08H2a2 2 0 010-4h5a2 2 0 010 4zM75.1 37.41A2.44 2.44 0 0077.54 35a.61.61 0 011.22 0 2.44 2.44 0 002.44 2.44.61.61 0 110 1.22 2.44 2.44 0 00-2.44 2.44.61.61 0 01-1.22 0 2.44 2.44 0 00-2.44-2.44.61.61 0 010-1.22z" /><circle class="ba-graphics-gray60" cx="43.66" cy="39.61" r="2" /><circle class="ba-graphics-gray60" cx="114.6" cy="21.66" r="2" /><path class="ba-graphics-white" d="M31.52 56.68h137.16v113.41H31.52z" /><path class="ba-graphics-gray1" d="M31.48 57.37h58.28v112.66H31.48z" /><path class="ba-graphics-gray60" d="M168.61 172.08H31.33a2 2 0 01-2-2V95.8a2 2 0 014 0v72.28h133.28v-108a1 1 0 00-1-1h-53.47a2 2 0 010-4h53.47a5 5 0 015 5v110a2 2 0 01-2 2z" /><path class="ba-graphics-gray60" d="M31.33 109.05a2 2 0 01-2-2V59.74a5 5 0 015-5h65.59a2 2 0 010 4H34.33a1 1 0 00-1 1v47.31a2 2 0 01-2 2z" /><path class="ba-graphics-gray60" d="M89.63 171.82a2 2 0 01-2-2V59.16a2 2 0 014 0v110.66a2 2 0 01-2 2zm14.38-78.05h12.29v44.83h-12.29zm19.19 18.8h12.29v26.03H123.2zm19.18-7.95h12.29v33.98h-12.29z" /><path class="ba-graphics-white" d="M43.17 68.66h34.27c.66 0 1.2.4 1.2.89v15.54c0 .49-.54.88-1.2.88H43.17c-.66 0-1.2-.39-1.2-.88V69.55c.03-.49.54-.89 1.2-.89z" /><path class="ba-graphics-gray60" d="M77.44 88H43.17A3 3 0 0140 85.09V69.55a3 3 0 013.2-2.89h34.24a3 3 0 013.2 2.89v15.54a3 3 0 01-3.2 2.91zM44 84h32.64V70.66H44zm33.44-13.34z" /><path class="ba-graphics-white" d="M27.22 96h34.26c.67 0 1.2.39 1.2.88v15.54c0 .49-.53.89-1.2.89H27.22c-.67 0-1.21-.4-1.21-.89V96.85c-.01-.49.54-.85 1.21-.85z" /><path class="ba-graphics-gray60" d="M61.48 115.28H27.22a3 3 0 01-3.22-2.89V96.85A3 3 0 0127.22 94h34.26a3 3 0 013.2 2.88v15.54a3 3 0 01-3.2 2.86zm-33.47-4h32.67V98H28zM61.48 98z" /><path class="ba-graphics-white" d="M14 123.89h34.23c.67 0 1.2.4 1.2.89v15.54c0 .49-.53.88-1.2.88H14c-.67 0-1.21-.39-1.21-.88v-15.54c-.03-.49.51-.89 1.21-.89z" /><path class="ba-graphics-gray60" d="M48.23 143.2H14a3 3 0 01-3.21-2.88v-15.54a3 3 0 013.21-2.89h34.23a3 3 0 013.2 2.89v15.54a3 3 0 01-3.2 2.88zm-33.47-4h32.67v-13.31H14.76zm33.47-13.31z" /><circle class="ba-graphics-gray80" style="opacity:.1" cx="140" cy="60" r="20" /><circle class="ba-graphics-gray60" cx="140" cy="56" r="20" /><path class="ba-graphics-white" d="M147.83 54H142v-5.83a2 2 0 10-4 0V54h-5.85a2 2 0 100 4H138v5.85a2 2 0 004 0V58h5.85a2 2 0 000-4z" /></symbol>'});a.a.add(s),e.default=s},function(t,e,o){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(t){function e(o){if(i[o])return i[o].exports;var n=i[o]={i:o,l:!1,exports:{}};return t[o].call(n.exports,n,n.exports,e),n.l=!0,n.exports}var o=window.webpackJsonPBaGraphics;window.webpackJsonPBaGraphics=function(i,r,a){for(var s,l,u,c=0,d=[];c<i.length;c++)l=i[c],n[l]&&d.push(n[l][0]),n[l]=0;for(s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s]);for(o&&o(i,r,a);d.length;)d.shift()();if(a)for(c=0;c<a.length;c++)u=e(e.s=a[c]);return u};var i={},n={197:0};e.m=t,e.c=i,e.d=function(t,o,i){e.o(t,o)||Object.defineProperty(t,o,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var o=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(o,"a",o),o},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e.oe=function(t){throw console.error(t),t}}({"698d75b157f24ae829cc":function(t,e){var o;o=function(){return this}();try{o=o||Function("return this")()||(0,eval)("this")}catch(t){"object"==("undefined"==typeof window?"undefined":i(window))&&(o=window)}t.exports=o},"9689a9c94ae38b47fa2c":function(t,e,o){(function(e){t.exports=function(){function t(t,e){return t(e={exports:{}},e.exports),e.exports}var e=function(t){var e=t.id,o=t.viewBox,i=t.content;this.id=e,this.viewBox=o,this.content=i};e.prototype.stringify=function(){return this.content},e.prototype.toString=function(){return this.stringify()},e.prototype.destroy=function(){var t=this;["id","viewBox","content"].forEach((function(e){return delete t[e]}))};var o=("undefined"!=typeof window?window:"undefined"!=typeof self&&self,t((function(t,e){t.exports=function(){function t(t){return t&&"object"==(void 0===t?"undefined":i(t))&&"[object RegExp]"!==Object.prototype.toString.call(t)&&"[object Date]"!==Object.prototype.toString.call(t)}function e(e,o){return o&&!0===o.clone&&t(e)?r(function(t){return Array.isArray(t)?[]:{}}(e),e,o):e}function o(o,i,n){var a=o.slice();return i.forEach((function(i,s){void 0===a[s]?a[s]=e(i,n):t(i)?a[s]=r(o[s],i,n):-1===o.indexOf(i)&&a.push(e(i,n))})),a}function n(o,i,n){var a={};return t(o)&&Object.keys(o).forEach((function(t){a[t]=e(o[t],n)})),Object.keys(i).forEach((function(s){t(i[s])&&o[s]?a[s]=r(o[s],i[s],n):a[s]=e(i[s],n)})),a}function r(t,i,r){var a=Array.isArray(i),s=(r||{arrayMerge:o}).arrayMerge||o;return a?Array.isArray(t)?s(t,i,r):e(i,r):n(t,i,r)}return r.all=function(t,e){if(!Array.isArray(t)||t.length<2)throw new Error("first argument should be an array with at least two elements");return t.reduce((function(t,o){return r(t,o,e)}))},r}()}))),n=t((function(t,e){e.default={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}},t.exports=e.default})),r=n.svg,a=n.xlink,s={};s[r.name]=r.uri,s[a.name]=a.uri;var l=function(t,e){return void 0===t&&(t=""),"<svg "+function(t){return Object.keys(t).map((function(e){return e+'="'+t[e].toString().replace(/"/g,"&quot;")+'"'})).join(" ")}(o(s,e||{}))+">"+t+"</svg>"};return function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var o={isMounted:{}};return o.isMounted.get=function(){return!!this.node},e.createFromExistingNode=function(t){return new e({id:t.getAttribute("id"),viewBox:t.getAttribute("viewBox"),content:t.outerHTML})},e.prototype.destroy=function(){this.isMounted&&this.unmount(),t.prototype.destroy.call(this)},e.prototype.mount=function(t){if(this.isMounted)return this.node;var e="string"==typeof t?document.querySelector(t):t,o=this.render();return this.node=o,e.appendChild(o),o},e.prototype.render=function(){var t=this.stringify();return function(t){var e=!!document.importNode,o=(new DOMParser).parseFromString(t,"image/svg+xml").documentElement;return e?document.importNode(o,!0):o}(l(t)).childNodes[0]},e.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(e.prototype,o),e}(e)}()}).call(e,o("698d75b157f24ae829cc"))},"9ce58a7deea14f49ef01":function(t,e,o){(function(e){t.exports=function(){function t(t,e){return t(e={exports:{}},e.exports),e.exports}function e(t){return t.replace(A,(function(t){return"%"+t[0].charCodeAt(0).toString(16).toUpperCase()}))}var o=("undefined"!=typeof window?window:"undefined"!=typeof self&&self,t((function(t,e){t.exports=function(){function t(t){return t&&"object"==(void 0===t?"undefined":i(t))&&"[object RegExp]"!==Object.prototype.toString.call(t)&&"[object Date]"!==Object.prototype.toString.call(t)}function e(e,o){return o&&!0===o.clone&&t(e)?r(function(t){return Array.isArray(t)?[]:{}}(e),e,o):e}function o(o,i,n){var a=o.slice();return i.forEach((function(i,s){void 0===a[s]?a[s]=e(i,n):t(i)?a[s]=r(o[s],i,n):-1===o.indexOf(i)&&a.push(e(i,n))})),a}function n(o,i,n){var a={};return t(o)&&Object.keys(o).forEach((function(t){a[t]=e(o[t],n)})),Object.keys(i).forEach((function(s){t(i[s])&&o[s]?a[s]=r(o[s],i[s],n):a[s]=e(i[s],n)})),a}function r(t,i,r){var a=Array.isArray(i),s=(r||{arrayMerge:o}).arrayMerge||o;return a?Array.isArray(t)?s(t,i,r):e(i,r):n(t,i,r)}return r.all=function(t,e){if(!Array.isArray(t)||t.length<2)throw new Error("first argument should be an array with at least two elements");return t.reduce((function(t,o){return r(t,o,e)}))},r}()}))),n=t((function(t,e){e.default={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}},t.exports=e.default})),r=n.svg,a=n.xlink,s={};s[r.name]=r.uri,s[a.name]=a.uri;var l,u=function(t,e){return void 0===t&&(t=""),"<svg "+function(t){return Object.keys(t).map((function(e){return e+'="'+t[e].toString().replace(/"/g,"&quot;")+'"'})).join(" ")}(o(s,e||{}))+">"+t+"</svg>"},c=n.svg,d=n.xlink,p={attrs:(l={style:["position: absolute","width: 0","height: 0"].join("; ")},l[c.name]=c.uri,l[d.name]=d.uri,l)},f=function(t){this.config=o(p,t||{}),this.symbols=[]};f.prototype.add=function(t){var e=this.symbols,o=this.find(t.id);return o?(e[e.indexOf(o)]=t,!1):(e.push(t),!0)},f.prototype.remove=function(t){var e=this.symbols,o=this.find(t);return!!o&&(e.splice(e.indexOf(o),1),o.destroy(),!0)},f.prototype.find=function(t){return this.symbols.filter((function(e){return e.id===t}))[0]||null},f.prototype.has=function(t){return null!==this.find(t)},f.prototype.stringify=function(){var t=this.config.attrs,e=this.symbols.map((function(t){return t.stringify()})).join("");return u(e,t)},f.prototype.toString=function(){return this.stringify()},f.prototype.destroy=function(){this.symbols.forEach((function(t){return t.destroy()}))};var h=function(t){var e=t.id,o=t.viewBox,i=t.content;this.id=e,this.viewBox=o,this.content=i};h.prototype.stringify=function(){return this.content},h.prototype.toString=function(){return this.stringify()},h.prototype.destroy=function(){var t=this;["id","viewBox","content"].forEach((function(e){return delete t[e]}))};var g,m=function(t){var e=!!document.importNode,o=(new DOMParser).parseFromString(t,"image/svg+xml").documentElement;return e?document.importNode(o,!0):o},_=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var o={isMounted:{}};return o.isMounted.get=function(){return!!this.node},e.createFromExistingNode=function(t){return new e({id:t.getAttribute("id"),viewBox:t.getAttribute("viewBox"),content:t.outerHTML})},e.prototype.destroy=function(){this.isMounted&&this.unmount(),t.prototype.destroy.call(this)},e.prototype.mount=function(t){if(this.isMounted)return this.node;var e="string"==typeof t?document.querySelector(t):t,o=this.render();return this.node=o,e.appendChild(o),o},e.prototype.render=function(){var t=this.stringify();return m(u(t)).childNodes[0]},e.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(e.prototype,o),e}(h),y={autoConfigure:!0,mountTo:"body",syncUrlsWithBaseTag:!1,listenLocationChangeEvent:!0,locationChangeEvent:"locationChange",locationChangeAngularEmitter:!1,usagesToUpdate:"use[*|href]",moveGradientsOutsideSymbol:!1},v=function(t){return Array.prototype.slice.call(t,0)},b=navigator.userAgent,I={isChrome:/chrome/i.test(b),isFirefox:/firefox/i.test(b),isIE:/msie/i.test(b)||/trident/i.test(b),isEdge:/edge/i.test(b)},S=function(t){return(t||window.location.href).split("#")[0]},C=function(t){angular.module("ng").run(["$rootScope",function(e){e.$on("$locationChangeSuccess",(function(e,o,i){!function(t,e){var o=document.createEvent("CustomEvent");o.initCustomEvent(t,!1,!1,e),window.dispatchEvent(o)}(t,{oldUrl:i,newUrl:o})}))}])},E=function(t,e){return void 0===e&&(e="linearGradient, radialGradient, pattern"),v(t.querySelectorAll("symbol")).forEach((function(t){v(t.querySelectorAll(e)).forEach((function(e){t.parentNode.insertBefore(e,t)}))})),t},F=n.xlink.uri,D="xlink:href",A=/[{}|\\\^\[\]`"<>]/g,P=["clipPath","colorProfile","src","cursor","fill","filter","marker","markerStart","markerMid","markerEnd","mask","stroke","style"],x=P.map((function(t){return"["+t+"]"})).join(","),T=function(t,o,i,n){var r=e(i),a=e(n);(function(t,e){return v(t).reduce((function(t,o){if(!o.attributes)return t;var i=v(o.attributes),n=e?i.filter(e):i;return t.concat(n)}),[])})(t.querySelectorAll(x),(function(t){var e=t.localName,o=t.value;return-1!==P.indexOf(e)&&-1!==o.indexOf("url("+r)})).forEach((function(t){return t.value=t.value.replace(r,a)})),function(t,e,o){v(t).forEach((function(t){var i=t.getAttribute(D);if(i&&0===i.indexOf(e)){var n=i.replace(e,o);t.setAttributeNS(F,D,n)}}))}(o,r,a)},w="mount",M="symbol_mount",k=function(t){function e(e){var i=this;void 0===e&&(e={}),t.call(this,o(y,e));var n=function(t){return t=t||Object.create(null),{on:function(e,o){(t[e]||(t[e]=[])).push(o)},off:function(e,o){t[e]&&t[e].splice(t[e].indexOf(o)>>>0,1)},emit:function(e,o){(t[e]||[]).map((function(t){t(o)})),(t["*"]||[]).map((function(t){t(e,o)}))}}}();this._emitter=n,this.node=null;var r=this.config;if(r.autoConfigure&&this._autoConfigure(e),r.syncUrlsWithBaseTag){var a=document.getElementsByTagName("base")[0].getAttribute("href");n.on(w,(function(){return i.updateUrls("#",a)}))}var s=this._handleLocationChange.bind(this);this._handleLocationChange=s,r.listenLocationChangeEvent&&window.addEventListener(r.locationChangeEvent,s),r.locationChangeAngularEmitter&&C(r.locationChangeEvent),n.on(w,(function(t){r.moveGradientsOutsideSymbol&&E(t)})),n.on(M,(function(t){r.moveGradientsOutsideSymbol&&E(t.parentNode),(I.isIE||I.isEdge)&&function(t){var e=[];v(t.querySelectorAll("style")).forEach((function(t){t.textContent+="",e.push(t)}))}(t)}))}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var i={isMounted:{}};return i.isMounted.get=function(){return!!this.node},e.prototype._autoConfigure=function(t){var e=this.config;void 0===t.syncUrlsWithBaseTag&&(e.syncUrlsWithBaseTag=void 0!==document.getElementsByTagName("base")[0]),void 0===t.locationChangeAngularEmitter&&(e.locationChangeAngularEmitter="angular"in window),void 0===t.moveGradientsOutsideSymbol&&(e.moveGradientsOutsideSymbol=I.isFirefox)},e.prototype._handleLocationChange=function(t){var e=t.detail,o=e.oldUrl,i=e.newUrl;this.updateUrls(o,i)},e.prototype.add=function(e){var o=t.prototype.add.call(this,e);return this.isMounted&&o&&(e.mount(this.node),this._emitter.emit(M,e.node)),o},e.prototype.attach=function(t){var e=this,o=this;if(o.isMounted)return o.node;var i="string"==typeof t?document.querySelector(t):t;return o.node=i,this.symbols.forEach((function(t){t.mount(o.node),e._emitter.emit(M,t.node)})),v(i.querySelectorAll("symbol")).forEach((function(t){var e=_.createFromExistingNode(t);e.node=t,o.add(e)})),this._emitter.emit(w,i),i},e.prototype.destroy=function(){var t=this,e=t.config,o=t.symbols,i=t._emitter;o.forEach((function(t){return t.destroy()})),i.off("*"),window.removeEventListener(e.locationChangeEvent,this._handleLocationChange),this.isMounted&&this.unmount()},e.prototype.mount=function(t,e){void 0===t&&(t=this.config.mountTo),void 0===e&&(e=!1);var o=this;if(o.isMounted)return o.node;var i="string"==typeof t?document.querySelector(t):t,n=o.render();return this.node=n,e&&i.childNodes[0]?i.insertBefore(n,i.childNodes[0]):i.appendChild(n),this._emitter.emit(w,n),n},e.prototype.render=function(){return m(this.stringify())},e.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},e.prototype.updateUrls=function(t,e){if(!this.isMounted)return!1;var o=document.querySelectorAll(this.config.usagesToUpdate);return T(this.node,o,S(t)+"#",S(e)+"#"),!0},Object.defineProperties(e.prototype,i),e}(f),R=t((function(t){
  22. /*!
  23. * domready (c) Dustin Diaz 2014 - License MIT
  24. */
  25. t.exports=function(){var t,e=[],o=document,i=(o.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(o.readyState);return i||o.addEventListener("DOMContentLoaded",t=function(){for(o.removeEventListener("DOMContentLoaded",t),i=1;t=e.shift();)t()}),function(t){i?setTimeout(t,0):e.push(t)}}()}));window.__SVG_SPRITE__?g=window.__SVG_SPRITE__:(g=new k({attrs:{id:"__SVG_SPRITE_NODE__"}}),window.__SVG_SPRITE__=g);var O=function(){var t=document.getElementById("__SVG_SPRITE_NODE__");t?g.attach(t):g.mount(document.body,!0)};return document.body?O():R(O),g}()}).call(e,o("698d75b157f24ae829cc"))}})},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),r=o(0),a=i(r),s=o(3),l=i(o(1));o(74);var u=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),n(e,[{key:"render",value:function(){var t=this.renderIcon(),e=this.renderTitle(),o=this.renderDescription(),i=this.props.alignment,n={"align-items":i||"center","text-align":i||"center"};return a.default.createElement("div",{className:"slotEditorEmpty",style:n},a.default.createElement("div",{className:"slotEditorEmpty__container"},t,e,o))}},{key:"renderIcon",value:function(){return this.props.iconId?a.default.createElement("div",{className:"slotEditorEmpty__icon"},a.default.createElement(s.SVGIcon,{iconId:this.props.iconId,size:"xxlarge"})):null}},{key:"renderTitle",value:function(){return this.props.title?a.default.createElement(s.Label,{label:this.props.title,className:"slotEditorEmpty__title"}):null}},{key:"renderDescription",value:function(){if(this.props.description){var t=this.props.description;return a.default.createElement(s.Label,{label:t,className:"slotEditorEmpty__description"})}return null}}]),e}(r.Component);u.propTypes={title:l.default.string,description:l.default.string,iconId:l.default.string,alignment:l.default.string},u.defaultProps={title:null,iconId:null,description:null,alignment:null},e.default=u},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),n=o(7),r=function(){function t(e){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this.accepts=function(){return!1},this.scrollableContainer=e.scrollableContainer,this.priority=function(){return 10},this.dndManager=e.dndManager,this.receiveEventsWhenNotAccepting=!0}return i(t,[{key:"onDragMove",value:function(t,e,o){var i=this;(0,n.handleScroll)(o,this.scrollableContainer,(function(){return i.dndManager&&i.dndManager.reassessContainer(i.scrollableContainer)}))}}]),t}();e.default=r},function(t,e,o){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),r=function(t){return t&&t.__esModule?t:{default:t}}(o(4)),a=o(7),s=function(){function t(e,o,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){return!0},a=arguments[4];i(this,t),this.domNode=e,this.className=o,this.dropHandler=n,this.acceptsHandler=r,this.timer=null,this.dndManager=a}return n(t,[{key:"accepts",value:function(t){return("SLOT_ITEM"===t.type||"shape"===t.widgetType||("GRID_HEADER_ITEM"===t.type||"MODEL_ITEM"===t.type)&&t.data&&t.data.utils&&t.data.utils.isValid())&&this.acceptsHandler(t)}},{key:"getData",value:function(t){return t?"SLOT_ITEM"===t.type?t.data.source:"shape"===t.widgetType?t:this._getDropMetadataColumns(t):null}},{key:"_getDropMetadataColumns",value:function(t){return t&&t.data}},{key:"activateDropTarget",value:function(){(0,r.default)(this.domNode).toggleClass(this.className,!0)}},{key:"deactivateDropTarget",value:function(){(0,r.default)(this.domNode).toggleClass(this.className,!1)}},{key:"onDragStart",value:function(){}},{key:"onDragMove",value:function(t,e,o){var i=this,n=(0,r.default)(e).closest(".slotEditor").get(0);n&&(0,a.handleScroll)(o,n,(function(){return i.dndManager&&i.dndManager.reassessContainer(n)})),this.activateDropTarget()}},{key:"onDragLeave",value:function(){this.deactivateDropTarget()}},{key:"onDragEnd",value:function(){this.deactivateDropTarget()}},{key:"onDrop",value:function(t,e){this.dropHandler(t,e)}},{key:"initializeDndSource",value:function(t,e,o){var i=this;(0,r.default)(this.domNode).on("mousedown",{},(function(n){return i._startDrag({dndManager:t,event:n,cbGetSlotDataItemHandler:e,iconsFeature:o}),!0})),(0,r.default)(this.domNode).on("touchstart",{},(function(n){return i._touchStart({dndManager:t,event:n,cbGetSlotDataItemHandler:e,iconsFeature:o}),!0})),(0,r.default)(this.domNode).on("touchend touchcancel",{},(function(){return i._touchEnd()}))}},{key:"_touchStart",value:function(t){this.timer=setTimeout(function(){this._touchStartDrag(t)}.bind(this),600)}},{key:"_touchEnd",value:function(){this.timer&&clearTimeout(this.timer),this.timer=null}},{key:"_touchStartDrag",value:function(t){this.timer&&this._startDrag(t)}},{key:"_startDrag",value:function(t){var e=(0,r.default)('<div style="position:absolute; z-index:10000;"/>'),o=(0,r.default)(this.domNode).clone().addClass("draggedNode");if(t.iconsFeature){var i=t.iconsFeature.getIcon("common-nodrop");if(i){var n=(0,r.default)('<div class="slotEditorItem__nameLine__nodrop is-hidden">\n\t\t\t\t\t\t<svg class="svgIcon">\n\t\t\t\t\t\t\t<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#'+i.id+'">\n\t\t\t\t\t\t\t</use>\n\t\t\t\t\t\t</svg>\n\t\t\t\t\t</div>');o.find(".slotEditorItem__nameLine").prepend(n)}}e.append(o),t.dndManager.startDrag({event:t.event,type:"SLOT_ITEM",data:{source:t.cbGetSlotDataItemHandler()},callerCallbacks:{onMove:this._onMove.bind(this)},avatar:e,moveXThreshold:20,moveYThreshold:20})}},{key:"_onMove",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=e.dragObject;if(o){var i=o.avatar;if(i){var n=(0,r.default)(i),a=n.find(".slotEditorItem__nameLine__nodrop");if(a.length){var s=e.dropTargetNode;if(s){var l=!(s.classList&&s.classList.contains("slotEditor"));a.toggleClass("is-hidden",l)}else a.toggleClass("is-hidden",!1)}}}}}]),t}();e.default=s},,function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}var n,r,a=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),s=i(o(0)),l=i(o(39)),u=i(o(40)),c=i(o(41)),d=o(20),p=(r=n=function(){function t(e){var o=e.features;(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this._dashboardApi=o.API,this._slideout=o.InAppSlideoutDOM,this._slotEditorState=o.SlotEditorState,this._api=null,this._parent=null,this._extensions=[]}return a(t,[{key:"getAPI",value:function(){return this._api}},{key:"addExtension",value:function(t){this._extensions.push(t)}},{key:"initialize",value:function(){this._api=d.createAPI(this,[u.default]),this._slideout.registerView(this._slotEditorState.getProviderId(),this)}},{key:"getProviderId",value:function(){return this._slotEditorState.getProviderId()}},{key:"render",value:function(t){var e=this,o=(t||{}).parentNode,i=void 0===o?null:o;return i&&document.body.contains(i)&&this._parent!==i?(this.unmount(),this._parent=i,new Promise((function(t){l.default.render(s.default.createElement(c.default,{dndManager:e._dashboardApi.getDashboardSvc(".DndManager"),slotEditorModel:e._slotEditorState.getModel(),logger:e._dashboardApi.getService(e._dashboardApi.GLOBAL_SERVICES.LOGGER),extensions:e._extensions}),i,(function(){return t()}))}))):Promise.resolve(null)}},{key:"unmount",value:function(){this._parent&&(l.default.unmountComponentAtNode(this._parent),this._parent=null)}},{key:"destroy",value:function(){this.unmount(),this._api=null,this._dashboardApi=null,this._slotEditorState=null,this._slideout=null}}]),t}(),n.PROVIDER_ID="SlotEditorDOM",r);t.exports=p},function(t,e){t.exports=d},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),n=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return i(t,[{key:"render",value:function(){}},{key:"unmount",value:function(){}},{key:"getProviderId",value:function(){}},{key:"addExtension",value:function(){}}]),t}();e.default=n},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),r=o(0),a=i(r),s=i(o(1)),l=i(o(42)),u=i(o(43)),c=i(o(76)),d=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),n(e,[{key:"isTypeInEnabled",value:function(){return!this.props.slotEditorModel.dashboardApi.getGlassCoreSvc(".FeatureChecker").checkValue("dashboard","typeInSlots","disabled")}},{key:"render",value:function(){var t=this.props,e=t.slotEditorModel,o=t.dndManager,i=t.logger,n=t.extensions,r=this.isTypeInEnabled();return a.default.createElement(l.default,{logger:i},r?a.default.createElement(u.default,{dndManager:o,slotEditorModel:e,extensions:n}):a.default.createElement(c.default,{dndManager:o,slotEditorModel:e,extensions:n}))}}]),e}(r.Component);d.propTypes={dndManager:s.default.object.isRequired,slotEditorModel:s.default.object.isRequired,logger:s.default.object.isRequired,extensions:s.default.array},e.default=d},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),r=o(0),a=(i(r),o(1)),s=i(a),l=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.state={hasError:!1},o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),n(e,[{key:"componentDidCatch",value:function(t,e){var o=this.props.logger;o&&o.error(e.componentStack)}},{key:"render",value:function(){return this.state.hasError?null:this.props.children}}],[{key:"getDerivedStateFromError",value:function(){return{hasError:!0}}}]),e}(r.Component);l.propTypes={logger:s.default.object.isRequired,children:s.default.any},l.defaultProps={children:[]},e.default=l},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),r=o(0),a=i(r),s=o(12),l=i(o(1)),u=i(o(2)),c=i(o(44)),d=i(o(31)),p=o(3),f=i(o(32)),h=i(o(73)),g=i(o(34)),m=o(5),_=i(o(35));o(17);var y=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o._initializeScrollDragSupport=function(){var t=o.props.dndManager;t&&t.then((function(t){o.slotEditorRef.current&&(o.scrollableDragHandler=new _.default({scrollableContainer:o.slotEditorRef.current,dndManager:t}),o.dropTarget=t.addDropTarget(o.slotEditorRef.current,o.scrollableDragHandler))}))},o.a11YHandler=new d.default,o.state={needsRefresh:null},o.slotEditorRef=a.default.createRef(),o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),n(e,[{key:"componentDidMount",value:function(){this._initializeScrollDragSupport()}},{key:"componentWillUnmount",value:function(){this.dropTarget&&this.dropTarget.remove()}},{key:"render",value:function(){return a.default.createElement("div",{ref:this.slotEditorRef,className:"slotEditor"},this.renderContent())}},{key:"renderContent",value:function(){var t=this.props.slotEditorModel;if(!t||!(0,m.isAlive)(t))return null;var e=t.selectedContents[0],o=t.SLOT_EDITOR_STATES,i=t.slotEditorState;return i===o.DISPLAY?this._canRenderSlotEditor(e)?this.renderSlotsAndExtensions()||this._renderEmptyState(o):this._renderEmptyState(o,o.EMPTY.NO_VIS_CREATED):this._renderEmptyState(o,i)}},{key:"_getSlotsSection",value:function(){var t=this.props.slotEditorModel.getSlotInfo();return a.default.createElement("div",{className:"slotEditor__slots"},t.length>1?this._renderLayersAndSlots(t):this._renderSlots(t[0].slotAPIs))}},{key:"renderSlotsAndExtensions",value:function(){var t=this.props.slotEditorModel.getSlotInfo(),e=[{index:0,render:this._getSlotsSection.bind(this)}];void 0!==this.props.extensions&&(e=e.concat(this.props.extensions));var o=e.sort((function(t,e){return t.index-e.index}));if(t.length>0)return a.default.createElement(a.default.Fragment,null,o.map((function(t){return t.render()})))}},{key:"_canRenderSlotEditor",value:function(t){return!(!t||!t.getFeature("Visualization"))}},{key:"_renderEmptyState",value:function(t,e){switch(e){case t.EMPTY.NO_VIS_CREATED:return this._getEmptyState(u.default.get("slotEditor_emptyState_vis_not_created_title"),u.default.get("slotEditor_emptyState_vis_not_created_description"),f.default.id);case t.EMPTY.NOT_SUPPORT_SLOTS:return this._getEmptyState(u.default.get("slotEditor_emptyState_widget_not_support_slot_selected_title"),u.default.get("slotEditor_emptyState_widget_not_support_slot_selected_description"),h.default.id);case t.EMPTY.NO_VIS_SELECTED:return this._getEmptyState(u.default.get("slotEditor_emptyState_no_visualization_selected_title"),u.default.get("slotEditor_emptyState_no_visualization_selected_description"),f.default.id);case t.EMPTY.MUILTI_SELECTION:return this._getEmptyState(u.default.get("slotEditor_emptyState_multiple_visualizations_selected_title"),u.default.get("slotEditor_emptyState_multiple_visualizations_selected_description"),h.default.id);case t.EMPTY.ERROR:return this._getEmptyState(u.default.get("slotEditor_emptyState_visualization_has_error_title"),null,h.default.id);default:return this._getEmptyState()}}},{key:"_getEmptyState",value:function(t,e,o){return a.default.createElement(g.default,{title:t,description:e,iconId:o})}},{key:"_renderLayersAndSlots",value:function(t){var e=this;return t.map((function(t){return t.isHideLayer?e._renderSlots(t.slotAPIs):a.default.createElement(p.Accordion,{key:t.layerId},a.default.createElement(p.AccordionItem,{icon:"right",itemName:t.layerCaption,open:t.open},e._renderSlots(t.slotAPIs,t.layerId,"__multilayer")))}))}},{key:"_renderSlots",value:function(t,e,o){var i=this,n=e||"";return t.map((function(t){return t.getDefinition().isHidden()?[]:a.default.createElement(c.default,{className:o,key:n+t.getDefinition().getId(),slotAPI:t,dataItemAPIs:t.getDataItemList(),a11Y:i.a11YHandler,slotDataItemHandler:i.props.slotEditorModel.getSlotDataItemHandler(t,-1),slotEditorModel:i.props.slotEditorModel,dndManager:i.props.dndManager})}))}}]),e}(r.Component);y.propTypes={dndManager:l.default.object.isRequired,slotEditorModel:l.default.object.isRequired,extensions:l.default.array},e.default=(0,s.observer)(y)},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),r=o(0),a=i(r),s=o(3),l=i(o(45)),u=i(o(22)),c=i(o(2)),d=i(o(28)),p=i(o(29)),f=i(o(1)),h=i(o(68)),g=o(5),m=i(o(4));o(17);var _=o(30),y=o(6),v="none",b=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o._applySlotCoachMarks=y.debounce((function(){var t=o.props,e=t.slotAPI,i=t.slotDataItemHandler,n=i.visualization,r=i.dashboardApi,a=e.getDefinition(),s=a.getCoachMark(),l=a.getId(),u=(0,m.default)(o.slotEditorSlotRef.current);if(s){var d=e.getDataItemList().length>0;if(!s.mappedOnly||d){var p=d?u.find(".slotEditorItem"):u;if(p.length){var f={id:n.getDefinition().getId()+"#"+l,$el:p,title:c.default.get(s.titleResource),contents:c.default.get(s.contentResource),showPopover:s.showPopover,placement:"bottom"};r.prepareGlassOptions(f),_.addCoachmark(f)}}}else{var h=u.find(".coachMark");if(h.length){var g=h[0],y=g.parentElement;y&&(y.classList.remove("coachMarkContainer"),y.removeAttribute("id"),y.removeChild(g))}}})),o._initializeDndSupport=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o.props.dndManager.then((function(i){t&&(o.dropSlotItemHandler=new u.default({domNode:t,className:"dndHover",slotDataItemHandler:o.props.slotDataItemHandler,addAfter:!0,dndManager:i,onDragEnter:e.onDragEnter,onDragLeave:e.onDragLeave}),e.getDndManager&&e.getDndManager(i))}))},o.slotEditorSlotRef=a.default.createRef(),o.slotPlaceholderStateModel=h.default.create({activePlaceholderExists:!1}),o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),n(e,[{key:"componentWillUnmount",value:function(){this.slotPlaceholderStateModel&&(0,g.destroy)(this.slotPlaceholderStateModel),this.dropSlotItemHandler&&this.dropSlotItemHandler.destroy()}},{key:"componentDidMount",value:function(){this._applySlotCoachMarks()}},{key:"componentDidUpdate",value:function(){this._applySlotCoachMarks()}},{key:"render",value:function(){var t=this,e=(0,p.default)(function(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}({slotEditor__slots__slot:!0},""+this.props.className,this.props.className)),o=this.props.slotAPI.getDefinition(),i=o.getCaption(),n=o.getId();return a.default.createElement("div",{ref:this.slotEditorSlotRef,className:e},a.default.createElement("div",{className:"slotEditor__slots__slot__heading","aria-label":i,title:i,role:"Listbox","data-slot-id":n,"aria-required":this._isRequiredField(this.props.slotAPI),onKeyUp:function(e){return t.props.a11Y.slotHandleKeyUp(e,t.props.slotDataItemHandler)},onKeyPress:function(e){return t.props.a11Y.handleKeyPress(e,t.props.slotDataItemHandler.swapSlotItems.bind(t.props.slotDataItemHandler),!0)}},a.default.createElement("div",{className:"slotEditor__slots__slot__heading__container"},a.default.createElement("div",{className:"slotEditor__slots__slot__heading__icon"},a.default.createElement(s.SVGIcon,{iconId:this._getSlotIcon(),size:"small"})),this._isRequiredField(this.props.slotAPI)?a.default.createElement("div",{className:"slotEditor__slots__slot__heading__required"},a.default.createElement("div",{className:"slotEditor__slots__slot__heading__required__caption"},i,a.default.createElement("span",{className:"slotEditor__slots__slot__heading__required__caption__star"},"*")),a.default.createElement("div",{className:"slotEditor__slots__slot__heading__required__text"},c.default.get("slotEditorMsg1"))):i),a.default.createElement("div",{className:"slotEditor__slots__slot__heading__dropBefore",tabIndex:"0"},this._renderSlotPlaceholder())),this._renderSlotDataItems())}},{key:"_isRequiredField",value:function(t){return!t.getDefinition().isOptional()&&t.getDefinition().getShowRequiredMarker()}},{key:"_renderSlotPlaceholder",value:function(){if(this.props.slotDataItemHandler)return a.default.createElement(d.default,{a11Y:this.props.a11Y,indexInSlot:this.props.slotDataItemHandler.indexInSlot,numberItemsInSlot:this.props.dataItemAPIs.length,canAcceptMoreItems:this.props.slotDataItemHandler.canAcceptMoreItems(),slotDataItemHandler:this.props.slotDataItemHandler,dashboardApi:this.props.slotEditorModel.dashboardApi,initializeDnd:this._initializeDndSupport.bind(this),slotPlaceholderStateModel:this.slotPlaceholderStateModel})}},{key:"_renderSlotDataItems",value:function(){var t=this;if(this.props.dataItemAPIs.length){var e=this.props.slotAPI.hasUnavailableMetadataColumns();return y.map(this.props.dataItemAPIs,(function(o,i){var n=t.props.slotAPI.getDefinition().getId();return a.default.createElement(l.default,{key:n+o.getId(),itemName:t._getSlotItemLabel(i,e),columnId:o.getColumnId(),dashboardApi:t.props.slotEditorModel.dashboardApi,slotPlaceholderStateModel:t.slotPlaceholderStateModel,slotDataItemHandler:t.props.slotEditorModel.getSlotDataItemHandler(t.props.slotAPI,i),indexInSlot:i,numberItemsInSlot:t.props.dataItemAPIs.length,a11Y:t.props.a11Y,dndManager:t.props.dndManager})}))}}},{key:"_getSlotItemLabel",value:function(t,e){var o=this.props.slotAPI.getDataItemList()[t],i=o.getLabel();return e&&(o.getMetadataColumn()||(i=c.default.get("missingColumn",{columnLabel:i}))),i}},{key:"_getSlotIcon",value:function(){var t=this.props.slotAPI.getDefinition().getIcon(),e=this.props.slotEditorModel.dashboardApi.getFeature("Icons"),o=e.getIcon(t);return o?o.id:"ordinal"===this._getFinalSlotType(this.props.slotAPI)?e.getIcon("values").id:e.getIcon("category").id}},{key:"_getFinalSlotType",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=t.getDefinition().getDatasetIdList()[0];if("latitude"===o||"longitude"===o)return"category";var i=t.getDefinition().getType();if("any"===i){if(this._isMultiMeasuresSlot(t))return"category";var n=t.getDataItemList()[e];if(n){if(n.getBinning())return"category";if("attribute"===n.getType())return(n.getAggregation?n.getAggregation():n.getAggregationType&&n.getAggregationType())===v?"category":"ordinal";if("fact"===n.getType())return t.getDataItemList().length>1&&!t.getDefinition().repeats?"category":"ordinal"}}return i}},{key:"_isMultiMeasuresSlot",value:function(t){return t.getDataItemList().find((function(t){return"_multiMeasuresSeries"===t.getColumnId()}))}}]),e}(r.Component);b.propTypes={className:f.default.string,slotAPI:f.default.object,dataItemAPIs:f.default.array,slotEditorModel:f.default.object.isRequired,dndManager:f.default.object.isRequired,slotDataItemHandler:f.default.object,a11Y:f.default.object},e.default=b},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),r=o(0),a=i(r),s=i(o(1));o(17);var l=i(o(22)),u=i(o(23)),c=i(o(27)),d=i(o(61)),p=i(o(28)),f=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o._initializeDropAfterSupport=function(t,e){return o.props.dndManager.then((function(i){t&&(o._dndManager=i,o.dropSlotItemAfterHandler=new l.default({domNode:t,className:"dndHover",slotDataItemHandler:o.props.slotDataItemHandler,addAfter:!0,dndManager:i,onDragEnter:e.onDragEnter,onDragLeave:e.onDragLeave}),e.getDndManager&&e.getDndManager(i))}))},o._showFlyout=function(){o.flyoutTooltipTimer||(o.flyoutTooltipTimer=setTimeout((function(){o._isDragging()||o.props.slotDataItemHandler.isSlotActionMenuOpened()||o.setState({isFlyoutShown:!o.state.isTypeInMode})}),200))},o._hideFlyout=function(){o.setState({isFlyoutShown:!1}),o.flyoutTooltipTimer&&(clearTimeout(o.flyoutTooltipTimer),o.flyoutTooltipTimer=null)},o._isDragging=function(){return!(!o._dndManager||!o._dndManager.dragObject)},o._slotItemTypeInOn=function(){o.setState({isTypeInMode:!0,isFlyoutShown:!1})},o._slotItemTypeInOff=function(){o.setState({isTypeInMode:!1})},o.triggerUpdateDnD=function(){o._initializeDndSupport()},o.state={isFlyoutShown:!1,isTypeInMode:!1},o.sourceId=o.props.slotDataItemHandler.getDatasourceId(),o.flyoutTooltipTimer=null,o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),n(e,[{key:"componentDidMount",value:function(){this._initializeDndSupport()}},{key:"componentDidUpdate",value:function(t){t&&t.slotDataItemHandler!==this.props.slotDataItemHandler&&this.dropSlotItemHandler&&this.dropSlotItemHandler.updateDropTarget(this.props.slotDataItemHandler)}},{key:"componentWillUnmount",value:function(){this.dropSlotItemHandler&&this.dropSlotItemHandler.destroy()}},{key:"render",value:function(){var t=this;return a.default.createElement(a.default.Fragment,null,this._renderFlyout(),this.state.isTypeInMode&&!this.props.slotDataItemHandler.isMeasureGroupItem()?this._renderFieldDropdown():a.default.createElement(d.default,{className:"slotEditorItem",fieldName:this.props.itemName,onKeyPress:function(e){return t.props.a11Y.handleKeyPress(e,t.props.slotDataItemHandler.swapSlotItems.bind(t.props.slotDataItemHandler),!1)},onKeyDown:function(e){return t.props.a11Y.handleKeyDown(e,{slotDataItemHandler:t.props.slotDataItemHandler},t._slotItemTypeInOn)},onKeyUp:function(e){return t.props.a11Y.handleKeyUp(e,{slotDataItemHandler:t.props.slotDataItemHandler})},onMouseEnterCallBack:this._showFlyout.bind(this),onMouseLeaveCallBack:this._hideFlyout.bind(this),onClick:this._slotItemTypeInOn.bind(this),fieldGraphics:this.props.slotDataItemHandler.getGraphicData()?this.props.slotDataItemHandler.getGraphicData():void 0,showActionMenu:!this.props.slotDataItemHandler.isMeasureGroupItem(),onOpenActionMenu:this.props.slotDataItemHandler.isMeasureGroupItem()?void 0:this._slotActionMenu.bind(this),filterInfo:this.props.slotDataItemHandler.getFilterStringAndNumber(),ref:function(e){e&&e.getDOMNode&&(t.domNode=e.getDOMNode())}}),a.default.createElement("div",{className:"slotEditorItem__dropAfter",onKeyPress:function(e){return t.props.a11Y.handleKeyPress(e,t.props.slotDataItemHandler.swapSlotItems.bind(t.props.slotDataItemHandler),!0)},onKeyUp:function(e){return t.props.a11Y.slotHandleKeyUp(e,{slotDataItemHandler:t.props.slotDataItemHandler})}},a.default.createElement(p.default,{a11Y:this.props.a11Y,indexInSlot:this.props.indexInSlot,numberItemsInSlot:this.props.numberItemsInSlot,canAcceptMoreItems:this.props.slotDataItemHandler.canAcceptMoreItems(),slotDataItemHandler:this.props.slotDataItemHandler,dashboardApi:this.props.dashboardApi,slotPlaceholderStateModel:this.props.slotPlaceholderStateModel,initializeDnd:this._initializeDropAfterSupport.bind(this)})))}},{key:"_initializeDndSupport",value:function(){var t=this;return this.props.dndManager.then((function(e){t.domNode&&(t._dndManager=e,t.dropSlotItemHandler=new l.default({domNode:t.domNode,className:"dndHover",slotDataItemHandler:t.props.slotDataItemHandler,addAfter:!1,dndManager:e}),t.dropSlotItemHandler.initializeDndSource(t._dndManager,t._getSlotDataItemHandler.bind(t),t.props.dashboardApi.getFeature("Icons"),t._hideFlyout))}))}},{key:"_getSlotDataItemHandler",value:function(){return this.props.slotDataItemHandler}},{key:"_slotActionMenu",value:function(){this.props.slotDataItemHandler.openSlotActionMenu(this.domNode,{attachPoint:".actionmenu",placement:"bottom auto"})}},{key:"_renderFlyout",value:function(){if(this.state.isFlyoutShown&&this.domNode&&!this.props.slotDataItemHandler.isMeasureGroupItem())return a.default.createElement(c.default,{domNode:this.domNode,dashboardApi:this.props.dashboardApi,columnId:this.props.columnId,sourceId:this.sourceId,onClose:this._hideFlyout})}},{key:"_renderFieldDropdown",value:function(){if(this.state.isTypeInMode&&!this.props.slotDataItemHandler.isMeasureGroupItem())return a.default.createElement(u.default,{a11Y:this.props.a11Y,open:this.state.isTypeInMode,textValue:this.props.itemName,dashboardApi:this.props.dashboardApi,getDropdownMaxHeight:this.getDropdownMaxHeight,onBlur:this._slotItemTypeInOff,onItemSelected:this.triggerUpdateDnD,slotDataItemHandler:this.props.slotDataItemHandler,sourceId:this.sourceId,replaceSlotItem:!0})}},{key:"getDropdownMaxHeight",value:function(){return 500}}]),e}(r.Component);f.propTypes={slotPlaceholderStateModel:s.default.object.isRequired,itemName:s.default.string,indexInSlot:s.default.number.isRequired,numberItemsInSlot:s.default.number.isRequired,itemValues:s.default.string,dashboardApi:s.default.object,columnId:s.default.string,slotDataItemHandler:s.default.object.isRequired,a11Y:s.default.object,dndManager:s.default.object.isRequired},e.default=f},function(t,e,o){(t.exports=o(9)(!1)).push([t.i,"/**\n* IBM Confidential\n* OCO Source Materials\n* IBM Business Platform: Dashboard\n* (C) Copyright IBM Corp. 2018, 2020\n* The source code for this program is not published or otherwise divested of its trade secrets,\n* irrespective of what has been deposited with the U.S. Copyright Office\n**/\n\n.slotEditor:not(.is-old) {\n overflow-y: auto;\n height: 100%;\n}\n\n.slotEditor:not(.is-old) .slotEditor__slots .ba-common-accordion:first-child {\n border-top: 1px solid;\n border-top-color: #f4f4f4;\n border-top-color: hsla(var(--ui-02-h, 0), var(--ui-02-s, 0%), var(--ui-02-l, 95.68627%), 1);\n margin-top: 40px;\n}\n\n.slotEditor:not(.is-old) .slotEditor__slots .ba-common-accordion {\n border-top: none;\n}\n\n.slotEditor:not(.is-old) .slotEditor__slots .ba-common-accordionItem__button {\n width: auto;\n}\n\n.slotEditor:not(.is-old) .slotEditor__slots__slot {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n margin-top: 16px;\n margin-right: 16px;\n margin-left: 16px;\n}\n\n.slotEditor:not(.is-old) .slotEditor__slots__slot:first-child {\n margin-top: 24px;\n}\n\n.slotEditor:not(.is-old) .slotEditor__slots__slot.__multilayer {\n margin-right: 0;\n margin-left: 0;\n}\n\n.slotEditor:not(.is-old) .slotEditor__slots__slot.__multilayer:first-child {\n margin-top: 0;\n}\n\n.slotEditor:not(.is-old) .slotEditor__slots__slot__dropzone {\n padding: 0 16px;\n}\n\n.slotEditor:not(.is-old) .slotEditor__slots__slot__dropzone {\n padding: 0 16px;\n}\n\n.slotEditor:not(.is-old) .slotEditor__slots__slot__heading {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-flow: column;\n flex-flow: column;\n}\n\n.slotEditor:not(.is-old) .slotEditor__slots__slot__heading__container {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n font-size: 0.875rem;\n color: #161616;\n color: hsla(var(--text-01-h, 0), var(--text-01-s, 0%), var(--text-01-l, 8.62745%), 1);\n}\n\n.slotEditor:not(.is-old) .slotEditor__slots__slot__heading__indent {\n width: 16px;\n}\n\n.slotEditor:not(.is-old) .slotEditor__slots__slot__heading__icon {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n margin-right: 8px;\n}\n\n.slotEditor:not(.is-old) .slotEditor__slots__slot__heading__icon svg {\n fill: #161616;\n fill: hsla(var(--icon-01-h, 0), var(--icon-01-s, 0%), var(--icon-01-l, 8.62745%), 1);\n}\n\n.slotEditor:not(.is-old) .slotEditor__slots__slot__heading__required {\n -ms-flex: 1 0 auto;\n flex: 1 0 auto;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: justify;\n justify-content: space-between;\n -ms-flex-align: baseline;\n align-items: baseline;\n}\n\n.slotEditor:not(.is-old) .slotEditor__slots__slot__heading__required__caption {\n font-weight: 600;\n}\n\n.slotEditor:not(.is-old) .slotEditor__slots__slot__heading__required__caption__star {\n color: #da1e28;\n color: hsla(var(--support-01-h, 356.80851), var(--support-01-s, 75.80645%), var(--support-01-l, 48.62745%), 1);\n}\n\n.slotEditor:not(.is-old) .slotEditor__slots__slot__heading__required__text {\n font-size: 0.75rem;\n}\n\n.slotEditor:not(.is-old) .slotEditor__slots__slot > .coachMark {\n top: 30px;\n right: 80px;\n}\n\n.slotEditor:not(.is-old) .slotEditor__slots .bi-mui-moserObjectTree {\n max-height: 500px;\n}\n\n.slotEditor:not(.is-old) .slotEditor__localFilters {\n margin-right: 16px;\n margin-left: 16px;\n margin-top: 24px;\n}\n\n.slotEditor:not(.is-old) .slotEditor__localFilters.dndHover {\n background-color: rgba(15, 98, 254, 0.2);\n background-color: hsla(var(--interactive-01-h, 219.16318), var(--interactive-01-s, 99.17012%), var(--interactive-01-l, 52.7451%), 0.2);\n}\n\n.slotEditor:not(.is-old) .slotEditor__localFilters__heading__container {\n font-size: 0.875rem;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n padding-bottom: 8px;\n}\n\n.slotEditor:not(.is-old) .slotEditor__localFilters__heading__icon {\n padding-right: 8px;\n}\n\n.slotEditor:not(.is-old) .slotEditor__localFilters__item {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n margin-bottom: 8px;\n}\n\n.slotEditor:not(.is-old) .slotEditor__localFilters__item .bi-common-field-item {\n padding-left: 16px;\n}\n\n.slotEditor:not(.is-old) .slotEditor__localFilters__item .bi-common-field-item__nameLine__fieldName {\n margin-left: 0px;\n}\n\n.slotEditor:not(.is-old) .slotEditor__localFilters__item .bi-common-field-item__infoLine__values {\n margin-left: 0px;\n}\n\n.slotEditor:not(.is-old) .slotEditor__localFilters .bi-mui-moserObjectTree {\n max-height: 500px;\n}\n\n.slotEditor:not(.is-old) .slotEditor__footer__line {\n padding-top: 16px;\n font-size: 14px;\n display: -ms-flexbox;\n display: flex;\n color: #393939;\n color: hsla(var(--interactive-02-h, 0), var(--interactive-02-s, 0%), var(--interactive-02-l, 22.35294%), 1);\n}\n\n.slotEditor:not(.is-old) .slotEditor__footer__line__icon {\n margin-right: 8px;\n margin-left: 16px;\n color: #8d8d8d;\n color: hsla(var(--ui-04-h, 0), var(--ui-04-s, 0%), var(--ui-04-l, 55.29412%), 1);\n}\n\n.slotEditor:not(.is-old) .ba-common-baseInput > input {\n box-sizing: border-box;\n}\n\n.highcontrast .slotEditorItem:not(.is-old) {\n border: 1px solid;\n}\n\n.highcontrast .slotEditor:not(.is-old) .slotEditor__localFilters.dndHover {\n outline-width: 2px;\n outline-style: dotted;\n outline-color: white;\n outline-color: hsla(var(--inverse-focus-ui-h, 0), var(--inverse-focus-ui-s, 0%), var(--inverse-focus-ui-l, 100%), 1);\n}\n\n.slotEditorItem:not(.is-old) {\n cursor: pointer;\n}\n\n.slotEditorItem:not(.is-old).selected {\n border: 2px solid;\n border-color: #8d8d8d;\n border-color: hsla(var(--ui-04-h, 0), var(--ui-04-s, 0%), var(--ui-04-l, 55.29412%), 1);\n}\n\n.slotEditorItem:not(.is-old).dndHover {\n outline: #2d74da solid 2px;\n}\n\n.slotEditorItem:not(.is-old).dndHover .bi-common-field-item__nameLine__fieldName .ba-common-truncatedText__text {\n text-decoration: underline;\n color: #0f62fe;\n color: hsla(var(--interactive-01-h, 219.16318), var(--interactive-01-s, 99.17012%), var(--interactive-01-l, 52.7451%), 1);\n}\n\n.slotEditorItem:not(.is-old).action-menu-opened {\n pointer-events: none;\n}\n\n.slotEditorItem:not(.is-old).draggedNode:hover {\n background-color: #f4f4f4;\n background-color: hsla(var(--ui-02-h, 0), var(--ui-02-s, 0%), var(--ui-02-l, 95.68627%), 1);\n}\n\n.slotEditorItem:not(.is-old) > .coachMark {\n top: 10px;\n right: -10px;\n}\n\n.slotEditorItem:not(.is-old) .nodrop {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n}\n\n.slotEditorItem:not(.is-old) .nodrop.is-hidden {\n visibility: hidden;\n}\n\n.slotEditorItem:not(.is-old) .nodrop .svgIcon {\n height: 16px;\n width: 16px;\n}\n\n.slotEditorItem:not(.is-old).has-filters .nodrop {\n -ms-flex-item-align: end;\n align-self: flex-end;\n}\n\n.slotEditorItem__disambiguatingTooltip {\n min-width: 240px;\n text-align: left;\n padding-bottom: 5px;\n}\n\n.slotEditorItem__disambiguatingTooltipTitle {\n min-width: 240px;\n padding-left: 8px;\n padding-top: 5px;\n}\n\n",""])},function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var o=e.protocol+"//"+e.host,i=o+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(t,e){var n,r=e.trim().replace(/^"(.*)"$/,(function(t,e){return e})).replace(/^'(.*)'$/,(function(t,e){return e}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(r)?t:(n=0===r.indexOf("//")?r:0===r.indexOf("/")?o+r:i+r.replace(/^\.\//,""),"url("+JSON.stringify(n)+")")}))}},function(t,e,o){var i=o(24),n=o(49),r=o(51),a="Expected a function",s=Math.max,l=Math.min;t.exports=function(t,e,o){function u(e){var o=g,i=m;return g=m=void 0,I=e,y=t.apply(i,o)}function c(t){return I=t,v=setTimeout(p,e),S?u(t):y}function d(t){var o=t-b;return void 0===b||o>=e||o<0||C&&t-I>=_}function p(){var t=n();if(d(t))return f(t);v=setTimeout(p,function(t){var o=e-(t-b);return C?l(o,_-(t-I)):o}(t))}function f(t){return v=void 0,E&&g?u(t):(g=m=void 0,y)}function h(){var t=n(),o=d(t);if(g=arguments,m=this,b=t,o){if(void 0===v)return c(b);if(C)return clearTimeout(v),v=setTimeout(p,e),u(b)}return void 0===v&&(v=setTimeout(p,e)),y}var g,m,_,y,v,b,I=0,S=!1,C=!1,E=!0;if("function"!=typeof t)throw new TypeError(a);return e=r(e)||0,i(o)&&(S=!!o.leading,_=(C="maxWait"in o)?s(r(o.maxWait)||0,e):_,E="trailing"in o?!!o.trailing:E),h.cancel=function(){void 0!==v&&clearTimeout(v),I=0,g=b=m=v=void 0},h.flush=function(){return void 0===v?y:f(n())},h}},function(t,e,o){var i=o(25);t.exports=function(){return i.Date.now()}},function(t,e,o){(function(e){var o="object"==typeof e&&e&&e.Object===Object&&e;t.exports=o}).call(e,o(18))},function(t,e,o){var i=o(52),n=o(24),r=o(54),a=NaN,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(r(t))return a;if(n(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=n(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=i(t);var o=l.test(t);return o||u.test(t)?c(t.slice(2),o?2:8):s.test(t)?a:+t}},function(t,e,o){var i=o(53),n=/^\s+/;t.exports=function(t){return t?t.slice(0,i(t)+1).replace(n,""):t}},function(t,e){var o=/\s/;t.exports=function(t){for(var e=t.length;e--&&o.test(t.charAt(e)););return e}},function(t,e,o){var i=o(55),n=o(58),r="[object Symbol]";t.exports=function(t){return"symbol"==typeof t||n(t)&&i(t)==r}},function(t,e,o){var i=o(26),n=o(56),r=o(57),a="[object Null]",s="[object Undefined]",l=i?i.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?s:a:l&&l in Object(t)?n(t):r(t)}},function(t,e,o){var i=o(26),n=Object.prototype,r=n.hasOwnProperty,a=n.toString,s=i?i.toStringTag:void 0;t.exports=function(t){var e=r.call(t,s),o=t[s];try{t[s]=void 0;var i=!0}catch(t){}var n=a.call(t);return i&&(e?t[s]=o:delete t[s]),n}},function(t,e){var o=Object.prototype.toString;t.exports=function(t){return o.call(t)}},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,o){var i=o(60);"string"==typeof i&&(i=[[t.i,i,""]]);var n={hmr:!0,transform:void 0};o(10)(i,n),i.locals&&(t.exports=i.locals)},function(t,e,o){(t.exports=o(9)(!1)).push([t.i,"/*\n *+------------------------------------------------------------------------+\n *| Licensed Materials - Property of IBM\n *| IBM Cognos Products: Explore\n *| (C) Copyright IBM Corp. 2020\n *|\n *| US Government Users Restricted Rights - Use, duplication or disclosure\n *| restricted by GSA ADP Schedule Contract with IBM Corp.\n *+------------------------------------------------------------------------+\n */\n\n.slotEditor .dropdownWrapper {\n width: 100%;\n min-width: 96px;\n position: relative;\n}\n\n.slotEditor .dropdownWrapper .dropdown {\n color: #161616;\n color: hsla(var(--text-01-h, 0), var(--text-01-s, 0%), var(--text-01-l, 8.62745%), 1);\n box-shadow: 0 2px 8px 0 #eaeaea;\n position: absolute;\n width: 100%;\n}\n\n.slotEditor .ba-common-accordionItem__collapse .ReactCollapse--content {\n overflow-x: inherit;\n overflow-y: inherit;\n}\n\n",""])},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a,s,l=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(t[i]=o[i])}return t},u=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),c=o(0),d=i(c),p=i(o(6)),f=i(o(1));o(62);var h=o(3),g=i(o(64)),m=i(o(65)),_=(s=a=function(t){function e(){return n(this,e),r(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),u(e,[{key:"getDOMNode",value:function(){return this.domNode}},{key:"_renderFilterStringAndNumber",value:function(t){var e=t||{},o=e.filterString,i=e.numberOfFilterItems;return o?d.default.createElement("div",{className:"bi-common-field-item__infoLine"},d.default.createElement("div",{className:"bi-common-field-item__infoLine__values"},d.default.createElement(h.TruncatedText,{value:o})),i?d.default.createElement("div",{className:"bi-common-field-item__infoLine__badge"},i):null):null}},{key:"render",value:function(){var t=this,e=this.props,o=e.fieldName,i=e.className,n=e.draggable,r=e.showActionMenu,a=e.onOpenActionMenu,s=e.fieldGraphics,u=e.filterInfo,c=p.default.omit(this.props,"className","children","fieldName","draggable","showActionMenu","onOpenActionMenu","fieldGraphics","filterInfo"),f=!(!u||!u.filterString),_=(0,h.classnames)("bi-common-field-item",{"has-filters":f,"is-draggable":n});return d.default.createElement("div",l({className:i?_+" "+i:_,"aria-label":o,tabIndex:"0",ref:function(e){t.domNode=e}},c),d.default.createElement("div",{className:"bi-common-field-item__nameLine"},n&&d.default.createElement("div",{className:"bi-common-field-item__nameLine__draggable"},d.default.createElement(h.SVGIcon,{size:"small",iconId:m.default.id})),d.default.createElement("div",{className:"bi-common-field-item__nameLine__fieldName",onMouseEnter:this.props.onMouseEnterCallBack,onMouseLeave:this.props.onMouseLeaveCallBack},f?d.default.createElement("div",null,d.default.createElement(h.TruncatedText,{location:"middle",style:{fontWeight:"bold"},value:o})):d.default.createElement(h.TruncatedText,{location:"middle",style:{fontWeight:"normal"},value:o})),s&&d.default.createElement("div",{className:"bi-common-field-item__nameLine__icon"},d.default.createElement("span",{dangerouslySetInnerHTML:{__html:s}})),r&&d.default.createElement("div",{className:"bi-common-field-item__nameLine__actionMenu",tabIndex:0,onKeyPress:function(t){t.stopPropagation(),a(t)},onClick:function(t){t.stopPropagation(),a(t)}},d.default.createElement(h.SVGIcon,{size:"small",iconId:g.default.id}),d.default.createElement("div",{className:"actionmenu"}))),this._renderFilterStringAndNumber(u))}}]),e}(c.Component),a.propTypes={className:f.default.string,fieldName:f.default.string.isRequired,draggable:f.default.bool,showActionMenu:f.default.bool,onOpenActionMenu:f.default.func,fieldGraphics:f.default.node,filterInfo:f.default.object,onMouseEnterCallBack:f.default.func,onMouseLeaveCallBack:f.default.func},a.defaultProps={className:"",draggable:!0,showActionMenu:!0,onOpenActionMenu:function(){},fieldGraphics:null,filterInfo:null},s);e.default=_},function(t,e,o){var i=o(63);"string"==typeof i&&(i=[[t.i,i,""]]);var n={hmr:!0,transform:void 0};o(10)(i,n),i.locals&&(t.exports=i.locals)},function(t,e,o){(t.exports=o(9)(!1)).push([t.i,"/**\n * Licensed Materials - Property of IBM\n * IBM Cognos Products: Explore (C) Copyright IBM Corp. 2020\n * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.\n */\n\n.slotEditor .bi-common-field-item {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-flow: column;\n flex-flow: column;\n padding-left: 8px;\n -ms-flex-align: stretch;\n align-items: stretch;\n background-color: #f4f4f4;\n background-color: hsla(var(--ui-02-h, 0), var(--ui-02-s, 0%), var(--ui-02-l, 95.68627%), 1);\n}\n\n.slotEditor .bi-common-field-item.is-draggable {\n cursor: move;\n}\n\n.slotEditor .bi-common-field-item.is-draggable .bi-common-field-item__nameLine__fieldName {\n margin-left: 8px;\n}\n\n.slotEditor .bi-common-field-item:hover {\n background-color: #e5e5e5;\n background-color: hsla(var(--hover-ui-h, 0), var(--hover-ui-s, 0%), var(--hover-ui-l, 89.80392%), 1);\n}\n\n.slotEditor .bi-common-field-item.has-filters .bi-common-field-item__nameLine {\n height: 32px;\n}\n\n.slotEditor .bi-common-field-item.has-filters .bi-common-field-item__nameLine__draggable {\n -ms-flex-item-align: end;\n align-self: flex-end;\n}\n\n.slotEditor .bi-common-field-item__nameLine {\n height: 40px;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-flow: row;\n flex-flow: row;\n -ms-flex-align: center;\n align-items: center;\n font-size: 0.875rem;\n}\n\n.slotEditor .bi-common-field-item__nameLine__draggable {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n}\n\n.slotEditor .bi-common-field-item__nameLine__fieldName {\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n margin-right: 8px;\n margin-left: 24px;\n}\n\n.slotEditor .bi-common-field-item__nameLine__icon {\n margin-right: 8px;\n margin-left: 8px;\n width: 16px;\n height: 16px;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n}\n\n.slotEditor .bi-common-field-item__nameLine__actionMenu {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n cursor: pointer;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n padding: 8px;\n}\n\n.slotEditor .bi-common-field-item__infoLine {\n font-size: 0.75rem;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: justify;\n justify-content: space-between;\n height: 24px;\n margin-right: 6px;\n}\n\n.slotEditor .bi-common-field-item__infoLine__values {\n margin-left: 24px;\n margin-right: 8px;\n -ms-flex: 0 1 auto;\n flex: 0 1 auto;\n}\n\n.slotEditor .bi-common-field-item__infoLine__badge {\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n border-radius: 100%;\n width: 20px;\n height: 20px;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: center;\n justify-content: center;\n background-color: #525252;\n background-color: hsla(var(--icon-02-h, 0), var(--icon-02-s, 0%), var(--icon-02-l, 32.15686%), 1);\n color: white;\n color: hsla(var(--ui-01-h, 0), var(--ui-01-s, 0%), var(--ui-01-l, 100%), 1);\n}\n\n",""])},function(t,e,o){"use strict";(function(t){var i,n,r,a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(s,l){"object"==a(e)&&"object"==a(t)?t.exports=l(o(8)):(n=[o(8)],void 0!==(r="function"==typeof(i=l)?i.apply(e,n):i)&&(t.exports=r))}("undefined"!=typeof self&&self,(function(t){return webpackJsonPBaGraphics([787],{"3865314c5959606874d4":function(e,o){e.exports=t},"7c2db376ce0d1f5bdc4b":function(t,e,o){Object.defineProperty(e,"__esModule",{value:!0});var i=o("3865314c5959606874d4"),n=(o.n(i),o("80e093a7dfdd5dade304"));e.default=n.a},"80e093a7dfdd5dade304":function(t,e,o){var i=o("9689a9c94ae38b47fa2c"),n=o.n(i),r=o("9ce58a7deea14f49ef01"),a=o.n(r),s=new n.a({id:"overflow-menu--vertical_16_v7",use:"overflow-menu--vertical_16_v7-usage",viewBox:"0 0 16 16",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="overflow-menu--vertical_16_v7"><circle cx="8" cy="3" r="1" /><circle cx="8" cy="8" r="1" /><circle cx="8" cy="13" r="1" /><path style="fill:none" d="M0 0h16v16H0z" /></symbol>'});a.a.add(s),e.a=s}},["7c2db376ce0d1f5bdc4b"])}))}).call(e,o(11)(t))},function(t,e,o){"use strict";(function(t){var i,n,r,a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(s,l){"object"==a(e)&&"object"==a(t)?t.exports=l(o(8)):(n=[o(8)],void 0!==(r="function"==typeof(i=l)?i.apply(e,n):i)&&(t.exports=r))}("undefined"!=typeof self&&self,(function(t){return webpackJsonPBaGraphics([1314],{"3865314c5959606874d4":function(e,o){e.exports=t},b51c98ef9181e63d4df5:function(t,e,o){Object.defineProperty(e,"__esModule",{value:!0});var i=o("3865314c5959606874d4"),n=(o.n(i),o("ba424a47b2434622aaec"));e.default=n.a},ba424a47b2434622aaec:function(t,e,o){var i=o("9689a9c94ae38b47fa2c"),n=o.n(i),r=o("9ce58a7deea14f49ef01"),a=o.n(r),s=new n.a({id:"draggable_16_v7",use:"draggable_16_v7-usage",viewBox:"0 0 16 16",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="draggable_16_v7"><path d="M5 3h2v2H5zm4 0h2v2H9zM5 7h2v2H5zm4 0h2v2H9zm-4 4h2v2H5zm4 0h2v2H9z" /><path style="fill:none" d="M0 0h16v16H0z" /></symbol>'});a.a.add(s),e.a=s}},["b51c98ef9181e63d4df5"])}))}).call(e,o(11)(t))},function(t,e,o){var i=o(67);"string"==typeof i&&(i=[[t.i,i,""]]);var n={hmr:!0,transform:void 0};o(10)(i,n),i.locals&&(t.exports=i.locals)},function(t,e,o){(t.exports=o(9)(!1)).push([t.i,"/*\n *+------------------------------------------------------------------------+\n *| Licensed Materials - Property of IBM\n *| IBM Cognos Products: Explore\n *| (C) Copyright IBM Corp. 2020\n *|\n *| US Government Users Restricted Rights - Use, duplication or disclosure\n *| restricted by GSA ADP Schedule Contract with IBM Corp.\n *+------------------------------------------------------------------------+\n */\n\n.slotPlaceholder__hoverIndicator {\n height: 8px;\n width: inherit;\n}\n\n.slotPlaceholder__itemPlaceholder {\n height: 40px;\n border-style: dashed;\n border-width: 1px;\n border-color: #8d8d8d;\n border-color: hsla(var(--ui-04-h, 0), var(--ui-04-s, 0%), var(--ui-04-l, 55.29412%), 1);\n margin-bottom: 8px;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n\n.slotPlaceholder__itemPlaceholder__actionLabel {\n color: #a8a8a8;\n color: hsla(var(--text-03-h, 0), var(--text-03-s, 0%), var(--text-03-l, 65.88235%), 1);\n font-size: 0.75rem;\n text-align: center;\n}\n\n.slotPlaceholder.dndHover .slotPlaceholder__itemPlaceholder {\n border: 2px solid;\n color: #0f62fe;\n color: hsla(var(--interactive-01-h, 219.16318), var(--interactive-01-s, 99.17012%), var(--interactive-01-l, 52.7451%), 1);\n}\n\n.slotPlaceholder.dndHover .slotPlaceholder__itemPlaceholder__actionLabel {\n color: #0f62fe;\n color: hsla(var(--interactive-01-h, 219.16318), var(--interactive-01-s, 99.17012%), var(--interactive-01-l, 52.7451%), 1);\n text-decoration: underline;\n}\n\n",""])},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(5);e.default=i.types.model("SlotPlaceholderStateModel",{activePlaceholderExists:i.types.optional(i.types.boolean,!1)}).views((function(t){return{getActivePlaceholderExists:function(){return t.activePlaceholderExists}}})).actions((function(t){return{setActivePlaceholderExists:function(e){t.activePlaceholderExists=e}}}))},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.A11YUtils=e.A11YDirection=e.A11YCollections=void 0;var n=i(o(70)),r=i(o(71)),a=i(o(72));e.A11YCollections=n.default,e.A11YDirection=r.default,e.A11YUtils=a.default},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),r=i(o(6)),a=i(o(4)),s=function(){function t(e){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),Array.isArray(e.direction)?this.direction=e.direction:this.direction=[e.direction],this.adapters={elements:e.handlers.elements,container:e.handlers.container}}return n(t,[{key:"onKeyDown",value:function(t){for(var e=0;e<this.direction.length;e++){var o=this.direction[e];switch(t.key){case o.previous:return void this._handleFocusPrevious(t);case o.next:return void this._handleFocusNext(t)}}}},{key:"_handleFocusPrevious",value:function(t){this._getContainer(t.target).length>0&&(this._cycleFocus(t,-1),t.preventDefault())}},{key:"_handleFocusNext",value:function(t){this._getContainer(t.target).length>0&&(this._cycleFocus(t,1),t.preventDefault())}},{key:"_getElements",value:function(t){return r.default.isFunction(this.adapters.elements)?(0,a.default)(this.adapters.elements(t)):(0,a.default)(this.adapters.elements)}},{key:"_getContainer",value:function(t){return this.adapters.container?(0,a.default)(this.adapters.container(t)):(0,a.default)(t)}},{key:"_cycleFocus",value:function(t,e){var o=this._getContainer(t.target).index();this._focus(this._getElements(t.target),o+e)}},{key:"_focus",value:function(t,e){e>=t.length&&(e=0),t.eq(e).focus()}}]),t}();e.default=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={UP_DOWN:{previous:"ArrowUp",next:"ArrowDown"},LEFT_RIGHT:{previous:"ArrowLeft",next:"ArrowRight"}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),n=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return i(t,null,[{key:"isPaste",value:function(t){return 86===t.keyCode&&(t.ctrlKey||t.metaKey)}}]),t}();e.default=n},function(t,e,o){"use strict";(function(t){var i,n,r,a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(s,l){"object"==a(e)&&"object"==a(t)?t.exports=l(o(33)):(n=[o(33)],void 0!==(r="function"==typeof(i=l)?i.apply(e,n):i)&&(t.exports=r))}("undefined"!=typeof self&&self,(function(t){return webpackJsonPBaGraphics([60],{"3865314c5959606874d4":function(e,o){e.exports=t},"9612edcdbcc934e7f1ff":function(t,e,o){Object.defineProperty(e,"__esModule",{value:!0});var i=o("3865314c5959606874d4"),n=(o.n(i),o("dd3d8884a737f47c10b1"));e.default=n.a},dd3d8884a737f47c10b1:function(t,e,o){var i=o("9689a9c94ae38b47fa2c"),n=o.n(i),r=o("9ce58a7deea14f49ef01"),a=o.n(r),s=new n.a({id:"nothing-here_128_v7",use:"nothing-here_128_v7-usage",viewBox:"0 0 200 200",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" id="nothing-here_128_v7"><circle class="ba-graphics-neutral-white4" cx="100" cy="100" r="100" /><path class="ba-graphics-white" d="M14.97 170.08h135.66" /><path class="ba-graphics-gray60" d="M150.63 172.08H15a2 2 0 110-4h135.63a2 2 0 010 4z" /><path class="ba-graphics-white" d="M2 170.08h4.97" /><path class="ba-graphics-gray60" d="M7 172.08H2a2 2 0 010-4h5a2 2 0 010 4z" /><path class="ba-graphics-white" d="M179.03 170.08H198" /><path class="ba-graphics-gray60" d="M198 172.08h-19a2 2 0 010-4h19a2 2 0 010 4z" /><path class="ba-graphics-white" d="M158.63 170.08h12.4" /><path class="ba-graphics-gray60" d="M171 172.08h-12.4a2 2 0 010-4H171a2 2 0 010 4z" /><path class="ba-graphics-white" d="M30.17 46.52h139.57a6.21 6.21 0 016.26 6.21v96.79a4 4 0 01-4 4H28a4 4 0 01-4-4V52.73a6.21 6.21 0 016.17-6.21z" /><path class="ba-graphics-gray60" d="M169.74 50.34a2.39 2.39 0 012.39 2.39v96.79a.18.18 0 01-.18.18H28a.18.18 0 01-.18-.18V52.73a2.4 2.4 0 012.4-2.39h139.52m0-3.82H30.17A6.22 6.22 0 0024 52.73v96.79a4 4 0 004 4h144a4 4 0 004-4V52.73a6.21 6.21 0 00-6.21-6.21z" /><path class="ba-graphics-gray1" d="M176 67.28v-16.8a4 4 0 00-4-4H28a4 4 0 00-4 4v16.8z" /><path class="ba-graphics-gray60" d="M172 50.3a.18.18 0 01.18.18v13H27.77v-13a.18.18 0 01.23-.18h144m0-3.82H28a4 4 0 00-4 4v16.8h152v-16.8a4 4 0 00-4-4z" /><circle class="ba-graphics-gray60" cx="34.07" cy="56.82" r="2" /><circle class="ba-graphics-gray60" cx="41.21" cy="56.82" r="2" /><circle class="ba-graphics-gray60" cx="48.34" cy="56.82" r="2" /><circle class="ba-graphics-gray60" cx="104.65" cy="20.58" r="2" /><circle class="ba-graphics-gray60" cx="141.96" cy="31.17" r="2" /><path class="ba-graphics-gray60" d="M61.33 27.91a4 4 0 004-4 1 1 0 112 0 4 4 0 004 4 1 1 0 010 2 4 4 0 00-4 4 1 1 0 01-2 0 4 4 0 00-4-4 1 1 0 010-2z" /><path class="ba-graphics-white" d="M88.66 128.74h19.08" /><path class="ba-graphics-gray60" d="M107.74 130.74H88.65a2 2 0 010-4h19.09a2 2 0 010 4z" /><circle class="ba-graphics-gray60" cx="75.32" cy="117.69" r="3.47" /><circle class="ba-graphics-gray60" cx="121" cy="117.69" r="3.47" /></symbol>'});a.a.add(s),e.a=s}},["9612edcdbcc934e7f1ff"])}))}).call(e,o(11)(t))},function(t,e,o){var i=o(75);"string"==typeof i&&(i=[[t.i,i,""]]);var n={hmr:!0,transform:void 0};o(10)(i,n),i.locals&&(t.exports=i.locals)},function(t,e,o){(t.exports=o(9)(!1)).push([t.i,"/*\n *+------------------------------------------------------------------------+\n *| Licensed Materials - Property of IBM\n *| IBM Cognos Products: Explore\n *| (C) Copyright IBM Corp. 2019\n *|\n *| US Government Users Restricted Rights - Use, duplication or disclosure\n *| restricted by GSA ADP Schedule Contract with IBM Corp.\n *+------------------------------------------------------------------------+\n */\n\n.slotEditorEmpty__description {\n font-size: 0.875rem;\n font-weight: 400;\n line-height: 1.125rem;\n}\n\n.slotEditorEmpty {\n height: 100%;\n width: 100%;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n\n.slotEditorEmpty__container {\n margin: auto;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n width: 100%;\n}\n\n.slotEditorEmpty__icon {\n padding: 4px 24px;\n}\n\n.slotEditorEmpty__title {\n display: block;\n padding: 4px 24px;\n font-weight: 700;\n line-height: 1.25rem;\n}\n\n.slotEditorEmpty__description {\n display: block;\n padding: 4px 24px;\n}\n\n",""])},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),r=o(0),a=i(r),s=o(12),l=i(o(1)),u=i(o(2)),c=i(o(77)),d=i(o(31)),p=o(3),f=i(o(81)),h=i(o(32)),g=i(o(82)),m=i(o(34)),_=o(5),y=i(o(35));o(19);var v=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o._initializeScrollDragSupport=function(){var t=o.props.dndManager;t&&t.then((function(t){o.slotEditorRef.current&&(o.scrollableDragHandler=new y.default({scrollableContainer:o.slotEditorRef.current,dndManager:t}),t.addDropTarget(o.slotEditorRef.current,o.scrollableDragHandler))}))},o.a11YHandler=new d.default,o.state={needsRefresh:null},o.slotEditorRef=a.default.createRef(),o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),n(e,[{key:"componentDidMount",value:function(){this._initializeScrollDragSupport()}},{key:"render",value:function(){return a.default.createElement("div",{ref:this.slotEditorRef,className:"slotEditor is-old"},this.renderContent())}},{key:"renderContent",value:function(){var t=this.props.slotEditorModel;if(!t||!(0,_.isAlive)(t))return null;var e=t.selectedContents[0],o=t.SLOT_EDITOR_STATES,i=t.slotEditorState;return i===o.DISPLAY?this._canRenderSlotEditor(e)?this.renderSlotsAndExtensions()||this._renderEmptyState(o):this._renderEmptyState(o,o.EMPTY.NO_VIS_CREATED):this._renderEmptyState(o,i)}},{key:"_getSlotsSection",value:function(){var t=this.props.slotEditorModel.getSlotInfo();return a.default.createElement("div",{className:"slotEditor__slots"},t.length>1?this._renderLayersAndSlots(t):this._renderSlots(t[0].slotAPIs))}},{key:"renderSlotsAndExtensions",value:function(){var t=this.props.slotEditorModel.getSlotInfo(),e=[{index:0,render:this._getSlotsSection.bind(this)}];void 0!==this.props.extensions&&(e=e.concat(this.props.extensions));var o=e.sort((function(t,e){return t.index-e.index}));if(t.length>0)return a.default.createElement(a.default.Fragment,null,this._renderHeaderArea(),o.map((function(t){return t.render()})),this._renderFooterArea())}},{key:"_canRenderSlotEditor",value:function(t){return!(!t||!t.getFeature("Visualization"))}},{key:"_renderEmptyState",value:function(t,e){switch(e){case t.EMPTY.NO_VIS_CREATED:return this._getEmptyState(u.default.get("slotEditor_emptyState_vis_not_created_title"),u.default.get("slotEditor_emptyState_vis_not_created_description"),h.default.id);case t.EMPTY.NOT_SUPPORT_SLOTS:return this._getEmptyState(u.default.get("slotEditor_emptyState_widget_not_support_slot_selected_title"),u.default.get("slotEditor_emptyState_widget_not_support_slot_selected_description"),g.default.id);case t.EMPTY.NO_VIS_SELECTED:return this._getEmptyState(u.default.get("slotEditor_emptyState_no_visualization_selected_title"),u.default.get("slotEditor_emptyState_no_visualization_selected_description"),h.default.id);case t.EMPTY.MUILTI_SELECTION:return this._getEmptyState(u.default.get("slotEditor_emptyState_multiple_visualizations_selected_title"),u.default.get("slotEditor_emptyState_multiple_visualizations_selected_description"),g.default.id);case t.EMPTY.ERROR:return this._getEmptyState(u.default.get("slotEditor_emptyState_visualization_has_error_title"),null,g.default.id);default:return this._getEmptyState()}}},{key:"_getEmptyState",value:function(t,e,o){return a.default.createElement(m.default,{title:t,description:e,iconId:o})}},{key:"_renderLayersAndSlots",value:function(t){var e=this;return t.map((function(t){return t.isHideLayer?e._renderSlots(t.slotAPIs):a.default.createElement(p.Accordion,{className:"customAccordion",key:t.layerId},a.default.createElement(p.AccordionItem,{className:"customAccordion",itemName:t.layerCaption,open:t.open},e._renderSlots(t.slotAPIs,t.layerId,"__multilayer")))}))}},{key:"_renderSlots",value:function(t,e,o){var i=this,n=e||"";return t.map((function(t){return t.getDefinition().isHidden()?[]:a.default.createElement(c.default,{className:o,key:n+t.getDefinition().getId(),slotAPI:t,dataItemAPIs:t.getDataItemList(),a11Y:i.a11YHandler,slotDataItemHandler:i.props.slotEditorModel.getSlotDataItemHandler(t,-1),slotEditorModel:i.props.slotEditorModel,dndManager:i.props.dndManager})}))}},{key:"_renderHeaderArea",value:function(){return a.default.createElement("div",{className:"slotEditor__header"},a.default.createElement("div",{className:"slotEditor__header__line"},a.default.createElement("span",{className:"slotEditor__header__required"},"*"),u.default.get("slotEditorMsg1")))}},{key:"_renderFooterArea",value:function(){return a.default.createElement("div",{className:"slotEditor__footer"},a.default.createElement("div",{className:"slotEditor__footer__line"},a.default.createElement("span",{className:"slotEditor__footer__line__icon"},a.default.createElement(p.SVGIcon,{iconId:f.default.id})),u.default.get("slotEditorMsg2")))}}]),e}(r.Component);v.propTypes={dndManager:l.default.object.isRequired,slotEditorModel:l.default.object.isRequired,extensions:l.default.array},e.default=(0,s.observer)(v)},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),r=o(0),a=i(r),s=o(3),l=i(o(78)),u=i(o(36)),c=i(o(2)),d=i(o(29)),p=i(o(1)),f=i(o(4));o(19);var h=o(30),g=o(6),m="none",_=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o._applySlotCoachMarks=g.debounce((function(){var t=o.props,e=t.slotAPI,i=t.slotDataItemHandler,n=i.visualization,r=i.dashboardApi,a=e.getDefinition(),s=a.getCoachMark(),l=a.getId(),u=(0,f.default)(o.slotEditorSlotRef.current);if(s){var d=e.getDataItemList().length>0;if(!s.mappedOnly||d){var p=d?u.find(".slotEditorItem"):u;if(p.length){var g={id:n.getDefinition().getId()+"#"+l,$el:p,title:c.default.get(s.titleResource),contents:c.default.get(s.contentResource),showPopover:s.showPopover,placement:"bottom"};r.prepareGlassOptions(g),h.addCoachmark(g)}}}else{var m=u.find(".coachMark");if(m.length){var _=m[0],y=_.parentElement;y&&(y.classList.remove("coachMarkContainer"),y.removeAttribute("id"),y.removeChild(_))}}})),o.slotEditorSlotRef=a.default.createRef(),o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),n(e,[{key:"componentDidMount",value:function(){this._initializeDndSupport(),this._applySlotCoachMarks()}},{key:"componentDidUpdate",value:function(){this._applySlotCoachMarks()}},{key:"render",value:function(){var t=this,e=(0,d.default)(function(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}({slotEditor__slots__slot:!0},""+this.props.className,this.props.className)),o=new u.default(this.domNode,"dndHover",this._handleDropSlotItemOnTop.bind(this),this._handleAcceptDropSlotItem.bind(this)),i=this.props.slotAPI.getDefinition(),n=i.getCaption(),r=i.getId();return a.default.createElement("div",{ref:this.slotEditorSlotRef,className:e},a.default.createElement("div",{className:"slotEditor__slots__slot__heading",ref:function(e){t.domNode=e},tabIndex:"0","aria-label":n,title:n,role:"Listbox","data-slot-id":r,"aria-required":this._isRequiredField(this.props.slotAPI),onKeyUp:function(e){return t.props.a11Y.slotHandleKeyUp(e,o,t.props.slotDataItemHandler)},onKeyPress:function(e){return t.props.a11Y.handleKeyPress(e,t.props.slotDataItemHandler.swapSlotItems.bind(t.props.slotDataItemHandler),!0)}},a.default.createElement("div",{className:"slotEditor__slots__slot__heading__container"},a.default.createElement("div",{className:"slotEditor__slots__slot__heading__icon"},a.default.createElement(s.SVGIcon,{intent:"primary",iconId:this._getSlotIcon(),size:"small"})),n,this._isRequiredField(this.props.slotAPI)?a.default.createElement("div",{className:"slotEditor__slots__slot__heading__required"},"*"):[]),a.default.createElement("div",{className:"slotEditor__slots__slot__heading__dropBefore"},a.default.createElement("div",{className:"slotEditor__slots__slot__heading__dropBefore__indicator"}))),this._renderSlotDataItems())}},{key:"_isRequiredField",value:function(t){return!t.getDefinition().isOptional()&&t.getDefinition().getShowRequiredMarker()}},{key:"_renderSlotDataItems",value:function(){var t=this;if(this.props.dataItemAPIs.length){var e=this.props.slotAPI.hasUnavailableMetadataColumns();return g.map(this.props.dataItemAPIs,(function(o,i){var n=t.props.slotAPI.getDefinition().getId();return a.default.createElement(l.default,{key:n+o.getId(),itemName:t._getSlotItemLabel(i,e),columnId:o.getColumnId(),dashboardApi:t.props.slotEditorModel.dashboardApi,slotDataItemHandler:t.props.slotEditorModel.getSlotDataItemHandler(t.props.slotAPI,i),dropSlotItemHandler:new u.default(t.domNode,"dndHover",t._handleDropSlotItemOnTop.bind(t),t._handleAcceptDropSlotItem.bind(t)),indexInSlot:i,a11Y:t.props.a11Y,dndManager:t.props.dndManager})}))}}},{key:"_getSlotItemLabel",value:function(t,e){var o=this.props.slotAPI.getDataItemList()[t],i=o.getLabel();return e&&(o.getMetadataColumn()||(i=c.default.get("missingColumn",{columnLabel:i}))),i}},{key:"_getSlotIcon",value:function(){var t=this.props.slotAPI.getDefinition().getIcon(),e=this.props.slotEditorModel.dashboardApi.getFeature("Icons"),o=e.getIcon(t);return o?o.id:"ordinal"===this._getFinalSlotType(this.props.slotAPI)?e.getIcon("values").id:e.getIcon("category").id}},{key:"_getFinalSlotType",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=t.getDefinition().getDatasetIdList()[0];if("latitude"===o||"longitude"===o)return"category";var i=t.getDefinition().getType();if("any"===i){if(this._isMultiMeasuresSlot(t))return"category";var n=t.getDataItemList()[e];if(n){if(n.getBinning())return"category";if("attribute"===n.getType())return(n.getAggregation?n.getAggregation():n.getAggregationType&&n.getAggregationType())===m?"category":"ordinal";if("fact"===n.getType())return t.getDataItemList().length>1&&!t.getDefinition().repeats?"category":"ordinal"}}return i}},{key:"_isMultiMeasuresSlot",value:function(t){return t.getDataItemList().find((function(t){return"_multiMeasuresSeries"===t.getId()}))}},{key:"_initializeDndSupport",value:function(){var t=this;this.props.dndManager.then((function(e){t.domNode&&(t._dndManager=e,t.dropSlotItemHandler=new u.default(t.domNode,"dndHover",t._handleDropSlotItemOnTop.bind(t),t._handleAcceptDropSlotItem.bind(t),e),e.addDropTarget(t.domNode,t.dropSlotItemHandler))}))}},{key:"_handleDropSlotItemOnTop",value:function(t){"SLOT_ITEM"===t.type?this.props.slotDataItemHandler.swapSlotItems(this.dropSlotItemHandler.getData(t),!0):this.props.slotDataItemHandler.insertAfterItem(this.dropSlotItemHandler.getData(t))}},{key:"_handleAcceptDropSlotItem",value:function(t){return this.props.slotDataItemHandler.accepts(this.dropSlotItemHandler.getData(t),!0)}}]),e}(r.Component);_.propTypes={className:p.default.string,slotAPI:p.default.object,dataItemAPIs:p.default.array,slotEditorModel:p.default.object.isRequired,dndManager:p.default.object.isRequired,slotDataItemHandler:p.default.object,a11Y:p.default.object},e.default=_},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),r=o(0),a=i(r),s=i(o(1));o(19);var l=i(o(36)),u=i(o(27)),c=o(3),d=i(o(80)),p=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o._showFlyout=function(){o._isDragging()||o.props.slotDataItemHandler.isSlotActionMenuOpened()||o.setState({isFlyoutShown:!0})},o._hideFlyout=function(){o.setState({isFlyoutShown:!1})},o._isDragging=function(){return!(!o._dndManager||!o._dndManager.dragObject)},o.state={isFlyoutShown:!1},o.sourceId=o.props.slotDataItemHandler.getDatasourceId(),o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),n(e,[{key:"componentDidMount",value:function(){this._initializeDndSupport()}},{key:"render",value:function(){var t=this;return a.default.createElement(a.default.Fragment,null,this._renderFlyout(),a.default.createElement("div",{className:"slotEditorItem is-old","aria-label":this.props.itemName,onKeyPress:function(e){return t.props.a11Y.handleKeyPress(e,t.props.slotDataItemHandler.swapSlotItems.bind(t.props.slotDataItemHandler),!1)},onKeyDown:function(e){return t.props.a11Y.handleKeyDown(e,{slotDataItemHandler:t.props.slotDataItemHandler,dropSlotItemHandler:t.props.dropSlotItemHandler})},onKeyUp:function(e){return t.props.a11Y.handleKeyUp(e,{slotDataItemHandler:t.props.slotDataItemHandler,dropSlotItemHandler:t.props.dropSlotItemHandler})},tabIndex:"0",ref:function(e){t.domNode=e}},this.props.itemName&&a.default.createElement("div",{className:"slotEditorItem__nameLine"},a.default.createElement("div",{className:"slotEditorItem__nameLine__itemName",onMouseEnter:this._showFlyout,onMouseLeave:this._hideFlyout},this._renderItemField()),this.props.slotDataItemHandler.getGraphicData()&&a.default.createElement("div",{className:"slotEditorItem__nameLine__icon"},a.default.createElement("span",{dangerouslySetInnerHTML:{__html:this.props.slotDataItemHandler.getGraphicData()}})),!this.props.slotDataItemHandler.isMeasureGroupItem()&&a.default.createElement("div",{className:"slotEditorItem__nameLine__actionMenu",tabIndex:"0",onKeyPress:this._slotActionMenu.bind(this),onClick:this._slotActionMenu.bind(this)},a.default.createElement(c.SVGIcon,{iconId:d.default.id}),a.default.createElement("div",{className:"actionmenu"}))),this._renderFilterStringAndNumber()),a.default.createElement("div",{className:"slotEditorItem__dropAfter",onKeyPress:function(e){return t.props.a11Y.handleKeyPress(e,t.props.slotDataItemHandler.swapSlotItems.bind(t.props.slotDataItemHandler),!0)},onKeyUp:function(e){return t.props.a11Y.slotHandleKeyUp(e,t.props.dropSlotItemHandler,t.props.slotDataItemHandler)},tabIndex:"0",ref:function(e){t.domNodeAfter=e}},a.default.createElement("div",{className:"slotEditorItem__dropAfter__indicator"})))}},{key:"_renderFilterStringAndNumber",value:function(){var t=this.props.slotDataItemHandler.getFilterStringAndNumber()||{},e=t.filterString,o=t.numberOfFilterItems;return e?a.default.createElement("div",{className:"slotEditorItem__infoLine"},a.default.createElement("div",{className:"slotEditorItem__infoLine__values"},a.default.createElement(c.TruncatedText,{value:e})),o?a.default.createElement("div",{className:"slotEditorItem__infoLine__filterNumber"},a.default.createElement("div",{className:"slotEditorItem__infoLine__filterNumber__badge"},o)):null):null}},{key:"_initializeDndSupport",value:function(){var t=this;return this.props.dndManager.then((function(e){t.domNode&&(t._dndManager=e,t.dropSlotItemHandler=new l.default(t.domNode,"dndHover",t._handleDropSlotItemOnTop.bind(t),t._handleAcceptDropSlotItemOnTop.bind(t),e),t.dropSlotItemHandler.initializeDndSource(t._dndManager,t._getSlotDataItemHandler.bind(t),t.props.dashboardApi.getFeature("Icons")),t.dropSlotItemAfterHandler=new l.default(t.domNodeAfter,"dndHover",t._handleDropSlotItemAfter.bind(t),t._handleAcceptDropSlotItemAfter.bind(t),e),e.addDropTarget(t.domNode,t.dropSlotItemHandler),e.addDropTarget(t.domNodeAfter,t.dropSlotItemAfterHandler))}))}},{key:"_getSlotDataItemHandler",value:function(){return this.props.slotDataItemHandler}},{key:"_handleDropSlotItemOnTop",value:function(t){"SLOT_ITEM"===t.type?this.props.slotDataItemHandler.swapSlotItems(this.dropSlotItemHandler.getData(t)):"shape"===t.widgetType?this.props.slotDataItemHandler.applyShapeOnSlot(this.dropSlotItemHandler.getData(t)):this.props.slotDataItemHandler.replaceItemWith(this.dropSlotItemHandler.getData(t))}},{key:"_handleDropSlotItemAfter",value:function(t){"SLOT_ITEM"===t.type?this.props.slotDataItemHandler.swapSlotItems(this.dropSlotItemHandler.getData(t),!0):this.props.slotDataItemHandler.insertAfterItem(this.dropSlotItemHandler.getData(t),!0)}},{key:"_handleAcceptDropSlotItemOnTop",value:function(t){return this.props.slotDataItemHandler.accepts(this.dropSlotItemHandler.getData(t))}},{key:"_handleAcceptDropSlotItemAfter",value:function(t){return this.props.slotDataItemHandler.accepts(this.dropSlotItemHandler.getData(t),!0)}},{key:"_slotActionMenu",value:function(){this.props.slotDataItemHandler.openSlotActionMenu(this.domNode,{attachPoint:".actionmenu",placement:"bottom auto"})}},{key:"_renderFlyout",value:function(){if(this.state.isFlyoutShown&&this.domNode&&!this.props.slotDataItemHandler.isMeasureGroupItem())return a.default.createElement(u.default,{domNode:this.domNode,dashboardApi:this.props.dashboardApi,columnId:this.props.columnId,sourceId:this.sourceId,onClose:this._hideFlyout})}},{key:"_renderItemField",value:function(){return a.default.createElement(c.TruncatedText,{location:"middle",value:this.props.itemName,style:{minWidth:100}})}}]),e}(r.Component);p.propTypes={itemName:s.default.string,indexInSlot:s.default.number,itemValues:s.default.string,dashboardApi:s.default.object,columnId:s.default.string,slotDataItemHandler:s.default.object.isRequired,dropSlotItemHandler:s.default.object.isRequired,a11Y:s.default.object,dndManager:s.default.object.isRequired},e.default=p},function(t,e,o){(t.exports=o(9)(!1)).push([t.i,"/**\n* IBM Confidential\n* OCO Source Materials\n* IBM Business Platform: Dashboard\n* (C) Copyright IBM Corp. 2018, 2020\n* The source code for this program is not published or otherwise divested of its trade secrets,\n* irrespective of what has been deposited with the U.S. Copyright Office\n**/\n\n.is-old.slotEditor {\n overflow-y: auto;\n height: 100%;\n padding: 8px 0 8px 8px;\n}\n\n.is-old.slotEditor .slotEditor__slots {\n /* overriding border and padding from toolkit */\n}\n\n.is-old.slotEditor .slotEditor__slots .customAccordion {\n border-top: none;\n padding-bottom: 8px;\n /* Not ideal - reaching internal toolkit class to override style due to toolkit defect 248859 */\n}\n\n.is-old.slotEditor .slotEditor__slots .customAccordion:first-child {\n padding-top: 8px;\n}\n\n.is-old.slotEditor .slotEditor__slots .customAccordion .ba-common-accordionItem__content {\n padding: 0 0 0 32px;\n}\n\n.is-old.slotEditor .slotEditor__slots__layer {\n margin-top: 8px;\n margin-bottom: 8px;\n font-weight: bold;\n font-size: 16px;\n}\n\n.is-old.slotEditor .slotEditor__slots__slot {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n padding-top: 16px;\n border-bottom: 1px solid #eaeaea;\n}\n\n.is-old.slotEditor .slotEditor__slots__slot.__multilayer {\n border-bottom: none;\n}\n\n.is-old.slotEditor .slotEditor__slots__slot__heading__container {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n font-weight: bold;\n font-size: 14px;\n margin-left: 16px;\n padding-bottom: 8px;\n}\n\n.is-old.slotEditor .slotEditor__slots__slot__heading__indent {\n width: 16px;\n}\n\n.is-old.slotEditor .slotEditor__slots__slot__heading__icon {\n padding-right: 8px;\n}\n\n.is-old.slotEditor .slotEditor__slots__slot__heading__required {\n padding-left: 4px;\n padding-right: 4px;\n color: #e62325;\n}\n\n.is-old.slotEditor .slotEditor__slots__slot__heading__dropBefore {\n padding: 0 16px;\n margin-left: 24px;\n}\n\n.is-old.slotEditor .slotEditor__slots__slot__heading__dropBefore__indicator {\n width: 80%;\n height: 8px;\n margin-bottom: 4px;\n}\n\n.is-old.slotEditor .slotEditor__slots__slot__heading.dndHover .slotEditor__slots__slot__heading__dropBefore__indicator {\n background-color: rgba(45, 116, 218, 0.2);\n}\n\n.is-old.slotEditor .slotEditor__slots__slot__heading:focus .slotEditor__slots__slot__heading__dropBefore__indicator {\n background-color: #a8c0f3;\n}\n\n.is-old.slotEditor .slotEditor__slots__slot > .coachMark {\n top: 30px;\n right: 80px;\n}\n\n.is-old.slotEditor .slotEditor__slots .bi-mui-moserObjectTree {\n max-height: 500px;\n}\n\n.is-old.slotEditor .slotEditor__localFilters {\n font-size: 14px;\n padding-top: 16px;\n padding-bottom: 16px;\n border-bottom: 1px solid #eaeaea;\n}\n\n.is-old.slotEditor .slotEditor__localFilters.dndHover {\n background-color: rgba(45, 116, 218, 0.2);\n}\n\n.is-old.slotEditor .slotEditor__localFilters.dndHover .slotEditorItem__nameLine__actionMenu:hover {\n background-color: #f3f3f3;\n}\n\n.is-old.slotEditor .slotEditor__localFilters__heading__container {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n font-weight: bold;\n font-size: 14px;\n margin-left: 16px;\n padding-bottom: 8px;\n}\n\n.is-old.slotEditor .slotEditor__localFilters__heading__icon {\n padding-right: 8px;\n}\n\n.is-old.slotEditor .slotEditor__localFilters__items {\n padding-top: 16px;\n padding-bottom: 8px;\n}\n\n.is-old.slotEditor .slotEditor__localFilters__item {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n margin-bottom: 8px;\n}\n\n.is-old.slotEditor .slotEditor__localFilters__item:last-child {\n margin-bottom: 0;\n}\n\n.is-old.slotEditor .slotEditor__localFilters__item .slotEditorItem__nameLine__itemName {\n cursor: default;\n}\n\n.is-old.slotEditor .slotEditor__header__line {\n padding-top: 8px;\n font-size: 12px;\n font-weight: bold;\n display: -ms-flexbox;\n display: flex;\n color: #343334;\n}\n\n.is-old.slotEditor .slotEditor__header__required {\n padding-right: 4px;\n color: #e62325;\n}\n\n.is-old.slotEditor .slotEditor__footer__line {\n padding-top: 16px;\n font-size: 14px;\n display: -ms-flexbox;\n display: flex;\n color: #343334;\n}\n\n.is-old.slotEditor .slotEditor__footer__line__icon {\n margin-right: 8px;\n margin-left: 16px;\n color: #595859;\n}\n\n.is-old.slotEditor .slotEditorItem__dropAfter {\n margin-right: 16px;\n margin-left: 40px;\n}\n\n.is-old.slotEditor .slotEditorItem__dropAfter__indicator {\n width: 80%;\n height: 8px;\n margin-top: 8px;\n margin-bottom: 8px;\n}\n\n.is-old.slotEditor .slotEditorItem__dropAfter.dndHover .slotEditorItem__dropAfter__indicator {\n background-color: rgba(45, 116, 218, 0.2);\n}\n\n.is-old.slotEditor .slotEditorItem__dropAfter:focus .slotEditorItem__dropAfter__indicator {\n background-color: #a8c0f3;\n}\n\n.highcontrast .is-old.slotEditor .slotEditor__slots__slot__heading.dndHover .slotEditor__slots__slot__heading__dropBefore__indicator {\n border: 1px dotted;\n}\n\n.highcontrast .is-old.slotEditor .slotEditor__slots__slot__heading:focus .slotEditor__slots__slot__heading__dropBefore__indicator {\n border: 1px dashed;\n}\n\n.highcontrast .is-old.slotEditor .slotEditor__localFilters.dndHover {\n border: 2px dotted;\n}\n\n.highcontrast .is-old.slotEditorItem.dndHover .slotEditorItem__nameLine {\n border: 2px dotted;\n}\n\n.highcontrast .is-old.slotEditorItem .slotEditorItem__dropAfter.dndHover .slotEditorItem__dropAfter__indicator {\n border: 1px dotted;\n}\n\n.highcontrast .is-old.slotEditorItem .slotEditorItem__dropAfter:focus .slotEditorItem__dropAfter__indicator {\n border: 1px dashed;\n}\n\n.is-old.slotEditorItem {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-flow: column;\n flex-flow: column;\n margin-right: 16px;\n margin-left: 40px;\n -ms-flex-item-align: start;\n align-self: flex-start;\n -ms-flex-align: stretch;\n align-items: stretch;\n border: 1px solid #eaeaea;\n background-color: white;\n}\n\n.is-old.slotEditorItem.action-menu-opened {\n pointer-events: none;\n}\n\n.is-old.slotEditorItem.selected {\n border: 2px solid #c0bfc0;\n}\n\n.is-old.slotEditorItem:focus {\n background-color: rgba(45, 116, 218, 0.2);\n}\n\n.is-old.slotEditorItem.dndHover .slotEditorItem__nameLine__itemName,\n.is-old.slotEditorItem.dndHover .slotEditorItem__nameLine__icon,\n.is-old.slotEditorItem.dndHover .slotEditorItem__nameLine__actionMenu,\n.is-old.slotEditorItem.dndHover .slotEditorItem__infoLine {\n background-color: rgba(45, 116, 218, 0.2);\n}\n\n.is-old.slotEditorItem .slotEditorItem__nameLine {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-flow: row;\n flex-flow: row;\n border-bottom: 1px solid #eaeaea;\n}\n\n.is-old.slotEditorItem .slotEditorItem__nameLine__itemName {\n max-width: 200px;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n font-size: 14px;\n padding: 8px;\n cursor: move;\n}\n\n.is-old.slotEditorItem .slotEditorItem__nameLine__itemName:hover {\n background-color: #c0bfc0;\n}\n\n.is-old.slotEditorItem .slotEditorItem__nameLine__icon {\n margin-right: 8px;\n margin-left: 8px;\n -ms-flex-item-align: center;\n -ms-grid-row-align: center;\n align-self: center;\n width: 16px;\n height: 16px;\n}\n\n.is-old.slotEditorItem .slotEditorItem__nameLine__actionMenu {\n display: -ms-flexbox;\n display: flex;\n padding: 8px;\n -ms-flex-align: center;\n align-items: center;\n border-left: 1px solid #eaeaea;\n cursor: pointer;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n}\n\n.is-old.slotEditorItem .slotEditorItem__nameLine__actionMenu:hover {\n background-color: #c0bfc0;\n}\n\n.is-old.slotEditorItem .slotEditorItem__nameLine__actionMenu .ba-common-svgIcon {\n fill: #595859;\n width: 12px;\n height: 12px;\n}\n\n.is-old.slotEditorItem .slotEditorItem__nameLine__nodrop {\n display: -ms-flexbox;\n display: flex;\n margin-left: 8px;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n}\n\n.is-old.slotEditorItem .slotEditorItem__nameLine__nodrop.is-hidden {\n display: none;\n}\n\n.is-old.slotEditorItem .slotEditorItem__nameLine__nodrop .svgIcon {\n height: 16px;\n width: 16px;\n fill: #595859;\n}\n\n.is-old.slotEditorItem .slotEditorItem__infoLine {\n font-size: 10px;\n display: -ms-flexbox;\n display: flex;\n}\n\n.is-old.slotEditorItem .slotEditorItem__infoLine__values {\n max-width: 200px;\n -ms-flex: 0 1 auto;\n flex: 0 1 auto;\n padding-left: 8px;\n padding-right: 8px;\n}\n\n.is-old.slotEditorItem .slotEditorItem__infoLine__filterNumber {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: row-reverse;\n flex-direction: row-reverse;\n -ms-flex: 1 0 auto;\n flex: 1 0 auto;\n}\n\n.is-old.slotEditorItem .slotEditorItem__infoLine__filterNumber__badge {\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n border-radius: 40%;\n width: 24px;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: center;\n justify-content: center;\n font-weight: bold;\n background-color: #eaeaea;\n}\n\n.is-old.slotEditorItem.draggedNode {\n padding: 0;\n margin: 0;\n}\n\n.is-old.slotEditorItem > .coachMark {\n top: 10px;\n right: -10px;\n}\n\n.slotEditorItem__disambiguatingTooltip {\n min-width: 240px;\n text-align: left;\n padding-bottom: 5px;\n}\n\n.slotEditorItem__disambiguatingTooltipTitle {\n min-width: 240px;\n padding-left: 8px;\n padding-top: 5px;\n}\n\n",""])},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(13),n=o.n(i),r=o(14),a=o.n(r),s=new n.a({id:"overflow-menu--horizontal_16",use:"overflow-menu--horizontal_16-usage",viewBox:"0 0 16 16",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="overflow-menu--horizontal_16"><circle cx="3" cy="8" r="1" /><circle cx="8" cy="8" r="1" /><circle cx="13" cy="8" r="1" /><path style="fill:none" d="M0 0h16v16H0z" /></symbol>'});a.a.add(s),e.default=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(13),n=o.n(i),r=o(14),a=o.n(r),s=new n.a({id:"information_16",use:"information_16-usage",viewBox:"0 0 16 16",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="information_16"><path d="M8.5 11V6.5h-2v1h1V11H6v1h4v-1zM8 3.5c-.4 0-.8.3-.8.8s.4.7.8.7.8-.3.8-.8-.4-.7-.8-.7z" /><path d="M8 15c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zM8 2C4.7 2 2 4.7 2 8s2.7 6 6 6 6-2.7 6-6-2.7-6-6-6z" /><path style="fill:none" d="M0 0h16v16H0z" /></symbol>'});a.a.add(s),e.default=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(13),n=o.n(i),r=o(14),a=o.n(r),s=new n.a({id:"nothing-here_128",use:"nothing-here_128-usage",viewBox:"0 0 200 200",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" id="nothing-here_128"><circle class="ba-graphics-neutral-white4" cx="100" cy="100" r="100" /><path class="ba-graphics-white" d="M14.97 170.08h135.66" /><path class="ba-graphics-gray60" d="M150.63 172.08H15a2 2 0 110-4h135.63a2 2 0 010 4z" /><path class="ba-graphics-white" d="M2 170.08h4.97" /><path class="ba-graphics-gray60" d="M7 172.08H2a2 2 0 010-4h5a2 2 0 010 4z" /><path class="ba-graphics-white" d="M179.03 170.08H198" /><path class="ba-graphics-gray60" d="M198 172.08h-19a2 2 0 010-4h19a2 2 0 010 4z" /><path class="ba-graphics-white" d="M158.63 170.08h12.4" /><path class="ba-graphics-gray60" d="M171 172.08h-12.4a2 2 0 010-4H171a2 2 0 010 4z" /><path class="ba-graphics-white" d="M30.17 46.52h139.57a6.21 6.21 0 016.26 6.21v96.79a4 4 0 01-4 4H28a4 4 0 01-4-4V52.73a6.21 6.21 0 016.17-6.21z" /><path class="ba-graphics-gray60" d="M169.74 50.34a2.39 2.39 0 012.39 2.39v96.79a.18.18 0 01-.18.18H28a.18.18 0 01-.18-.18V52.73a2.4 2.4 0 012.4-2.39h139.52m0-3.82H30.17A6.22 6.22 0 0024 52.73v96.79a4 4 0 004 4h144a4 4 0 004-4V52.73a6.21 6.21 0 00-6.21-6.21z" /><path class="ba-graphics-gray1" d="M176 67.28v-16.8a4 4 0 00-4-4H28a4 4 0 00-4 4v16.8z" /><path class="ba-graphics-gray60" d="M172 50.3a.18.18 0 01.18.18v13H27.77v-13a.18.18 0 01.23-.18h144m0-3.82H28a4 4 0 00-4 4v16.8h152v-16.8a4 4 0 00-4-4z" /><circle class="ba-graphics-gray60" cx="34.07" cy="56.82" r="2" /><circle class="ba-graphics-gray60" cx="41.21" cy="56.82" r="2" /><circle class="ba-graphics-gray60" cx="48.34" cy="56.82" r="2" /><circle class="ba-graphics-gray60" cx="104.65" cy="20.58" r="2" /><circle class="ba-graphics-gray60" cx="141.96" cy="31.17" r="2" /><path class="ba-graphics-gray60" d="M61.33 27.91a4 4 0 004-4 1 1 0 112 0 4 4 0 004 4 1 1 0 010 2 4 4 0 00-4 4 1 1 0 01-2 0 4 4 0 00-4-4 1 1 0 010-2z" /><path class="ba-graphics-white" d="M88.66 128.74h19.08" /><path class="ba-graphics-gray60" d="M107.74 130.74H88.65a2 2 0 010-4h19.09a2 2 0 010 4z" /><circle class="ba-graphics-gray60" cx="75.32" cy="117.69" r="3.47" /><circle class="ba-graphics-gray60" cx="121" cy="117.69" r="3.47" /></symbol>'});a.a.add(s),e.default=s}])})),define("dashboard-analytics/features/dashboard/localFilterExtension/LocalFilterExtension",["react","prop-types","ca-ui-toolkit","jquery","underscore","mobx-react","polyglot","gemini/lib/@waca/dashboard-common/dist/core/APIFactory"],(function(t,e,o,i,n,r,a,s){return function(t){function e(i){if(o[i])return o[i].exports;var n=o[i]={i:i,l:!1,exports:{}};return t[i].call(n.exports,n,n.exports,e),n.l=!0,n.exports}var o={};return e.m=t,e.c=o,e.d=function(t,o,i){e.o(t,o)||Object.defineProperty(t,o,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var o=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(o,"a",o),o},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=22)}([function(e,o){e.exports=t},function(t,o){t.exports=e},function(t,e){t.exports=o},function(t,e){t.exports=i},function(t,e){function o(t,e){var o=t[1]||"",i=t[3];if(!i)return o;if(e&&"function"==typeof btoa){var n=function(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}(i);return[o].concat(i.sources.map((function(t){return"/*# sourceURL="+i.sourceRoot+t+" */"}))).concat([n]).join("\n")}return[o].join("\n")}t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i=o(e,t);return e[2]?"@media "+e[2]+"{"+i+"}":i})).join("")},e.i=function(t,o){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},n=0;n<this.length;n++){var r=this[n][0];"number"==typeof r&&(i[r]=!0)}for(n=0;n<t.length;n++){var a=t[n];"number"==typeof a[0]&&i[a[0]]||(o&&!a[2]?a[2]=o:o&&(a[2]="("+a[2]+") and ("+o+")"),e.push(a))}},e}},function(t,e,o){function i(t,e){for(var o=0;o<t.length;o++){var i=t[o],n=h[i.id];if(n){n.refs++;for(var r=0;r<n.parts.length;r++)n.parts[r](i.parts[r]);for(;r<i.parts.length;r++)n.parts.push(c(i.parts[r],e))}else{var a=[];for(r=0;r<i.parts.length;r++)a.push(c(i.parts[r],e));h[i.id]={id:i.id,refs:1,parts:a}}}}function n(t,e){for(var o=[],i={},n=0;n<t.length;n++){var r=t[n],a=e.base?r[0]+e.base:r[0],s={css:r[1],media:r[2],sourceMap:r[3]};i[a]?i[a].parts.push(s):o.push(i[a]={id:a,parts:[s]})}return o}function r(t,e){var o=m(t.insertInto);if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var i=v[v.length-1];if("top"===t.insertAt)i?i.nextSibling?o.insertBefore(e,i.nextSibling):o.appendChild(e):o.insertBefore(e,o.firstChild),v.push(e);else if("bottom"===t.insertAt)o.appendChild(e);else{if("object"!=typeof t.insertAt||!t.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var n=m(t.insertInto+" "+t.insertAt.before);o.insertBefore(e,n)}}function a(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);var e=v.indexOf(t);e>=0&&v.splice(e,1)}function s(t){var e=document.createElement("style");return t.attrs.type="text/css",u(e,t.attrs),r(t,e),e}function l(t){var e=document.createElement("link");return t.attrs.type="text/css",t.attrs.rel="stylesheet",u(e,t.attrs),r(t,e),e}function u(t,e){Object.keys(e).forEach((function(o){t.setAttribute(o,e[o])}))}function c(t,e){var o,i,n,r;if(e.transform&&t.css){if(!(r=e.transform(t.css)))return function(){};t.css=r}if(e.singleton){var u=y++;o=_||(_=s(e)),i=d.bind(null,o,u,!1),n=d.bind(null,o,u,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(o=l(e),i=f.bind(null,o,e),n=function(){a(o),o.href&&URL.revokeObjectURL(o.href)}):(o=s(e),i=p.bind(null,o),n=function(){a(o)});return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else n()}}function d(t,e,o,i){var n=o?"":i.css;if(t.styleSheet)t.styleSheet.cssText=I(e,n);else{var r=document.createTextNode(n),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(r,a[e]):t.appendChild(r)}}function p(t,e){var o=e.css,i=e.media;if(i&&t.setAttribute("media",i),t.styleSheet)t.styleSheet.cssText=o;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(o))}}function f(t,e,o){var i=o.css,n=o.sourceMap,r=void 0===e.convertToAbsoluteUrls&&n;(e.convertToAbsoluteUrls||r)&&(i=b(i)),n&&(i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */");var a=new Blob([i],{type:"text/css"}),s=t.href;t.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}var h={},g=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}}((function(){return window&&document&&document.all&&!window.atob})),m=function(t){var e={};return function(o){if(void 0===e[o]){var i=t.call(this,o);if(i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}e[o]=i}return e[o]}}((function(t){return document.querySelector(t)})),_=null,y=0,v=[],b=o(28);t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=g()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var o=n(t,e);return i(o,e),function(t){for(var r=[],a=0;a<o.length;a++){var s=o[a];(l=h[s.id]).refs--,r.push(l)}t&&i(n(t,e),e);for(a=0;a<r.length;a++){var l;if(0===(l=r[a]).refs){for(var u=0;u<l.parts.length;u++)l.parts[u]();delete h[l.id]}}}};var I=function(){var t=[];return function(e,o){return t[e]=o,t.filter(Boolean).join("\n")}}()},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),n=function(t){return t&&t.__esModule?t:{default:t}}(o(24)),r=o(25),a=function(){function t(){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this.polyglot=new r({phrases:n.default})}return i(t,[{key:"get",value:function(t,e){return this.polyglot.t(t,e)}}]),t}();e.default=new a},function(t,e){t.exports=n},function(t,e,o){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(t){function e(o){if(i[o])return i[o].exports;var n=i[o]={i:o,l:!1,exports:{}};return t[o].call(n.exports,n,n.exports,e),n.l=!0,n.exports}var o=window.webpackJsonPBaGraphics;window.webpackJsonPBaGraphics=function(i,r,a){for(var s,l,u,c=0,d=[];c<i.length;c++)l=i[c],n[l]&&d.push(n[l][0]),n[l]=0;for(s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s]);for(o&&o(i,r,a);d.length;)d.shift()();if(a)for(c=0;c<a.length;c++)u=e(e.s=a[c]);return u};var i={},n={2086:0};e.m=t,e.c=i,e.d=function(t,o,i){e.o(t,o)||Object.defineProperty(t,o,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var o=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(o,"a",o),o},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e.oe=function(t){throw console.error(t),t}}({"698d75b157f24ae829cc":function(t,e){var o;o=function(){return this}();try{o=o||Function("return this")()||(0,eval)("this")}catch(t){"object"==("undefined"==typeof window?"undefined":i(window))&&(o=window)}t.exports=o},"9689a9c94ae38b47fa2c":function(t,e,o){(function(e){t.exports=function(){function t(t,e){return t(e={exports:{}},e.exports),e.exports}var e=function(t){var e=t.id,o=t.viewBox,i=t.content;this.id=e,this.viewBox=o,this.content=i};e.prototype.stringify=function(){return this.content},e.prototype.toString=function(){return this.stringify()},e.prototype.destroy=function(){var t=this;["id","viewBox","content"].forEach((function(e){return delete t[e]}))};var o=("undefined"!=typeof window?window:"undefined"!=typeof self&&self,t((function(t,e){t.exports=function(){function t(t){return t&&"object"==(void 0===t?"undefined":i(t))&&"[object RegExp]"!==Object.prototype.toString.call(t)&&"[object Date]"!==Object.prototype.toString.call(t)}function e(e,o){return o&&!0===o.clone&&t(e)?r(function(t){return Array.isArray(t)?[]:{}}(e),e,o):e}function o(o,i,n){var a=o.slice();return i.forEach((function(i,s){void 0===a[s]?a[s]=e(i,n):t(i)?a[s]=r(o[s],i,n):-1===o.indexOf(i)&&a.push(e(i,n))})),a}function n(o,i,n){var a={};return t(o)&&Object.keys(o).forEach((function(t){a[t]=e(o[t],n)})),Object.keys(i).forEach((function(s){t(i[s])&&o[s]?a[s]=r(o[s],i[s],n):a[s]=e(i[s],n)})),a}function r(t,i,r){var a=Array.isArray(i),s=(r||{arrayMerge:o}).arrayMerge||o;return a?Array.isArray(t)?s(t,i,r):e(i,r):n(t,i,r)}return r.all=function(t,e){if(!Array.isArray(t)||t.length<2)throw new Error("first argument should be an array with at least two elements");return t.reduce((function(t,o){return r(t,o,e)}))},r}()}))),n=t((function(t,e){e.default={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}},t.exports=e.default})),r=n.svg,a=n.xlink,s={};s[r.name]=r.uri,s[a.name]=a.uri;var l=function(t,e){return void 0===t&&(t=""),"<svg "+function(t){return Object.keys(t).map((function(e){return e+'="'+t[e].toString().replace(/"/g,"&quot;")+'"'})).join(" ")}(o(s,e||{}))+">"+t+"</svg>"};return function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var o={isMounted:{}};return o.isMounted.get=function(){return!!this.node},e.createFromExistingNode=function(t){return new e({id:t.getAttribute("id"),viewBox:t.getAttribute("viewBox"),content:t.outerHTML})},e.prototype.destroy=function(){this.isMounted&&this.unmount(),t.prototype.destroy.call(this)},e.prototype.mount=function(t){if(this.isMounted)return this.node;var e="string"==typeof t?document.querySelector(t):t,o=this.render();return this.node=o,e.appendChild(o),o},e.prototype.render=function(){var t=this.stringify();return function(t){var e=!!document.importNode,o=(new DOMParser).parseFromString(t,"image/svg+xml").documentElement;return e?document.importNode(o,!0):o}(l(t)).childNodes[0]},e.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(e.prototype,o),e}(e)}()}).call(e,o("698d75b157f24ae829cc"))},"9ce58a7deea14f49ef01":function(t,e,o){(function(e){t.exports=function(){function t(t,e){return t(e={exports:{}},e.exports),e.exports}function e(t){return t.replace(A,(function(t){return"%"+t[0].charCodeAt(0).toString(16).toUpperCase()}))}var o=("undefined"!=typeof window?window:"undefined"!=typeof self&&self,t((function(t,e){t.exports=function(){function t(t){return t&&"object"==(void 0===t?"undefined":i(t))&&"[object RegExp]"!==Object.prototype.toString.call(t)&&"[object Date]"!==Object.prototype.toString.call(t)}function e(e,o){return o&&!0===o.clone&&t(e)?r(function(t){return Array.isArray(t)?[]:{}}(e),e,o):e}function o(o,i,n){var a=o.slice();return i.forEach((function(i,s){void 0===a[s]?a[s]=e(i,n):t(i)?a[s]=r(o[s],i,n):-1===o.indexOf(i)&&a.push(e(i,n))})),a}function n(o,i,n){var a={};return t(o)&&Object.keys(o).forEach((function(t){a[t]=e(o[t],n)})),Object.keys(i).forEach((function(s){t(i[s])&&o[s]?a[s]=r(o[s],i[s],n):a[s]=e(i[s],n)})),a}function r(t,i,r){var a=Array.isArray(i),s=(r||{arrayMerge:o}).arrayMerge||o;return a?Array.isArray(t)?s(t,i,r):e(i,r):n(t,i,r)}return r.all=function(t,e){if(!Array.isArray(t)||t.length<2)throw new Error("first argument should be an array with at least two elements");return t.reduce((function(t,o){return r(t,o,e)}))},r}()}))),n=t((function(t,e){e.default={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}},t.exports=e.default})),r=n.svg,a=n.xlink,s={};s[r.name]=r.uri,s[a.name]=a.uri;var l,u=function(t,e){return void 0===t&&(t=""),"<svg "+function(t){return Object.keys(t).map((function(e){return e+'="'+t[e].toString().replace(/"/g,"&quot;")+'"'})).join(" ")}(o(s,e||{}))+">"+t+"</svg>"},c=n.svg,d=n.xlink,p={attrs:(l={style:["position: absolute","width: 0","height: 0"].join("; ")},l[c.name]=c.uri,l[d.name]=d.uri,l)},f=function(t){this.config=o(p,t||{}),this.symbols=[]};f.prototype.add=function(t){var e=this.symbols,o=this.find(t.id);return o?(e[e.indexOf(o)]=t,!1):(e.push(t),!0)},f.prototype.remove=function(t){var e=this.symbols,o=this.find(t);return!!o&&(e.splice(e.indexOf(o),1),o.destroy(),!0)},f.prototype.find=function(t){return this.symbols.filter((function(e){return e.id===t}))[0]||null},f.prototype.has=function(t){return null!==this.find(t)},f.prototype.stringify=function(){var t=this.config.attrs,e=this.symbols.map((function(t){return t.stringify()})).join("");return u(e,t)},f.prototype.toString=function(){return this.stringify()},f.prototype.destroy=function(){this.symbols.forEach((function(t){return t.destroy()}))};var h=function(t){var e=t.id,o=t.viewBox,i=t.content;this.id=e,this.viewBox=o,this.content=i};h.prototype.stringify=function(){return this.content},h.prototype.toString=function(){return this.stringify()},h.prototype.destroy=function(){var t=this;["id","viewBox","content"].forEach((function(e){return delete t[e]}))};var g,m=function(t){var e=!!document.importNode,o=(new DOMParser).parseFromString(t,"image/svg+xml").documentElement;return e?document.importNode(o,!0):o},_=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var o={isMounted:{}};return o.isMounted.get=function(){return!!this.node},e.createFromExistingNode=function(t){return new e({id:t.getAttribute("id"),viewBox:t.getAttribute("viewBox"),content:t.outerHTML})},e.prototype.destroy=function(){this.isMounted&&this.unmount(),t.prototype.destroy.call(this)},e.prototype.mount=function(t){if(this.isMounted)return this.node;var e="string"==typeof t?document.querySelector(t):t,o=this.render();return this.node=o,e.appendChild(o),o},e.prototype.render=function(){var t=this.stringify();return m(u(t)).childNodes[0]},e.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(e.prototype,o),e}(h),y={autoConfigure:!0,mountTo:"body",syncUrlsWithBaseTag:!1,listenLocationChangeEvent:!0,locationChangeEvent:"locationChange",locationChangeAngularEmitter:!1,usagesToUpdate:"use[*|href]",moveGradientsOutsideSymbol:!1},v=function(t){return Array.prototype.slice.call(t,0)},b=navigator.userAgent,I={isChrome:/chrome/i.test(b),isFirefox:/firefox/i.test(b),isIE:/msie/i.test(b)||/trident/i.test(b),isEdge:/edge/i.test(b)},S=function(t){return(t||window.location.href).split("#")[0]},C=function(t){angular.module("ng").run(["$rootScope",function(e){e.$on("$locationChangeSuccess",(function(e,o,i){!function(t,e){var o=document.createEvent("CustomEvent");o.initCustomEvent(t,!1,!1,e),window.dispatchEvent(o)}(t,{oldUrl:i,newUrl:o})}))}])},E=function(t,e){return void 0===e&&(e="linearGradient, radialGradient, pattern"),v(t.querySelectorAll("symbol")).forEach((function(t){v(t.querySelectorAll(e)).forEach((function(e){t.parentNode.insertBefore(e,t)}))})),t},F=n.xlink.uri,D="xlink:href",A=/[{}|\\\^\[\]`"<>]/g,P=["clipPath","colorProfile","src","cursor","fill","filter","marker","markerStart","markerMid","markerEnd","mask","stroke","style"],x=P.map((function(t){return"["+t+"]"})).join(","),T=function(t,o,i,n){var r=e(i),a=e(n);(function(t,e){return v(t).reduce((function(t,o){if(!o.attributes)return t;var i=v(o.attributes),n=e?i.filter(e):i;return t.concat(n)}),[])})(t.querySelectorAll(x),(function(t){var e=t.localName,o=t.value;return-1!==P.indexOf(e)&&-1!==o.indexOf("url("+r)})).forEach((function(t){return t.value=t.value.replace(r,a)})),function(t,e,o){v(t).forEach((function(t){var i=t.getAttribute(D);if(i&&0===i.indexOf(e)){var n=i.replace(e,o);t.setAttributeNS(F,D,n)}}))}(o,r,a)},w="mount",M="symbol_mount",k=function(t){function e(e){var i=this;void 0===e&&(e={}),t.call(this,o(y,e));var n=function(t){return t=t||Object.create(null),{on:function(e,o){(t[e]||(t[e]=[])).push(o)},off:function(e,o){t[e]&&t[e].splice(t[e].indexOf(o)>>>0,1)},emit:function(e,o){(t[e]||[]).map((function(t){t(o)})),(t["*"]||[]).map((function(t){t(e,o)}))}}}();this._emitter=n,this.node=null;var r=this.config;if(r.autoConfigure&&this._autoConfigure(e),r.syncUrlsWithBaseTag){var a=document.getElementsByTagName("base")[0].getAttribute("href");n.on(w,(function(){return i.updateUrls("#",a)}))}var s=this._handleLocationChange.bind(this);this._handleLocationChange=s,r.listenLocationChangeEvent&&window.addEventListener(r.locationChangeEvent,s),r.locationChangeAngularEmitter&&C(r.locationChangeEvent),n.on(w,(function(t){r.moveGradientsOutsideSymbol&&E(t)})),n.on(M,(function(t){r.moveGradientsOutsideSymbol&&E(t.parentNode),(I.isIE||I.isEdge)&&function(t){var e=[];v(t.querySelectorAll("style")).forEach((function(t){t.textContent+="",e.push(t)}))}(t)}))}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var i={isMounted:{}};return i.isMounted.get=function(){return!!this.node},e.prototype._autoConfigure=function(t){var e=this.config;void 0===t.syncUrlsWithBaseTag&&(e.syncUrlsWithBaseTag=void 0!==document.getElementsByTagName("base")[0]),void 0===t.locationChangeAngularEmitter&&(e.locationChangeAngularEmitter="angular"in window),void 0===t.moveGradientsOutsideSymbol&&(e.moveGradientsOutsideSymbol=I.isFirefox)},e.prototype._handleLocationChange=function(t){var e=t.detail,o=e.oldUrl,i=e.newUrl;this.updateUrls(o,i)},e.prototype.add=function(e){var o=t.prototype.add.call(this,e);return this.isMounted&&o&&(e.mount(this.node),this._emitter.emit(M,e.node)),o},e.prototype.attach=function(t){var e=this,o=this;if(o.isMounted)return o.node;var i="string"==typeof t?document.querySelector(t):t;return o.node=i,this.symbols.forEach((function(t){t.mount(o.node),e._emitter.emit(M,t.node)})),v(i.querySelectorAll("symbol")).forEach((function(t){var e=_.createFromExistingNode(t);e.node=t,o.add(e)})),this._emitter.emit(w,i),i},e.prototype.destroy=function(){var t=this,e=t.config,o=t.symbols,i=t._emitter;o.forEach((function(t){return t.destroy()})),i.off("*"),window.removeEventListener(e.locationChangeEvent,this._handleLocationChange),this.isMounted&&this.unmount()},e.prototype.mount=function(t,e){void 0===t&&(t=this.config.mountTo),void 0===e&&(e=!1);var o=this;if(o.isMounted)return o.node;var i="string"==typeof t?document.querySelector(t):t,n=o.render();return this.node=n,e&&i.childNodes[0]?i.insertBefore(n,i.childNodes[0]):i.appendChild(n),this._emitter.emit(w,n),n},e.prototype.render=function(){return m(this.stringify())},e.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},e.prototype.updateUrls=function(t,e){if(!this.isMounted)return!1;var o=document.querySelectorAll(this.config.usagesToUpdate);return T(this.node,o,S(t)+"#",S(e)+"#"),!0},Object.defineProperties(e.prototype,i),e}(f),R=t((function(t){
  26. /*!
  27. * domready (c) Dustin Diaz 2014 - License MIT
  28. */
  29. t.exports=function(){var t,e=[],o=document,i=(o.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(o.readyState);return i||o.addEventListener("DOMContentLoaded",t=function(){for(o.removeEventListener("DOMContentLoaded",t),i=1;t=e.shift();)t()}),function(t){i?setTimeout(t,0):e.push(t)}}()}));window.__SVG_SPRITE__?g=window.__SVG_SPRITE__:(g=new k({attrs:{id:"__SVG_SPRITE_NODE__"}}),window.__SVG_SPRITE__=g);var O=function(){var t=document.getElementById("__SVG_SPRITE_NODE__");t?g.attach(t):g.mount(document.body,!0)};return document.body?O():R(O),g}()}).call(e,o("698d75b157f24ae829cc"))}})},function(t,e){t.exports=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getNumberOfFilterItems=function(t){return!t||"in"!==t.operator&&"notin"!==t.operator&&"isnull"!==t.operator?null:t.values.length},e.handleScroll=function(t,e,o){var i=e.getBoundingClientRect(),n=i.top,r=i.bottom;if("touchmove"===t.type){var a=t.touches[0];a&&(t.clientX=a.clientX,t.clientY=a.clientY)}if(t.clientX&&t.clientY){var s={x:t.clientX,y:t.clientY},l=r-s.y,u=s.y-n,c=l>0&&l<20,d=u>0&&u<20,p=0;d&&c&&(c=!(d=u>l)),c?p=20-l:d&&(p=u-20);var f=e.scrollTop+p;if(f<=0)f=0;else{var h=e.scrollHeight-e.clientHeight;f>h&&(f=h)}e.scrollTop!==f&&(e.scrollTop=f,o&&o())}},e.getDataSourceIdTypeIn=function(t){var e=t.getActiveDataSourceId();if(!e){var o=t.getFeature("DataSources");o.getDataSourceList().length>0&&(e=o.getDataSourceList()[0].getId())}return e}},function(t,e){var o;o=function(){return this}();try{o=o||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(o=window)}t.exports=o},function(t,e,o){var i=o(27);"string"==typeof i&&(i=[[t.i,i,""]]);var n={hmr:!0,transform:void 0};o(5)(i,n),i.locals&&(t.exports=i.locals)},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),s=o(0),l=i(s),u=i(o(1)),c=i(o(6)),d=o(2),p=function(t){function e(){var t,o,i;n(this,e);for(var a=arguments.length,s=Array(a),l=0;l<a;l++)s[l]=arguments[l];return o=i=r(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(s))),i._onCloseFlyout=function(){i.props.onClose&&i.props.onClose()},r(i,o)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),a(e,[{key:"render",value:function(){var t=c.default.get("slotEditor_slotItem_tooltip"),e=this._renderQuerySubjectItem();return e?l.default.createElement(d.Flyout,{domNodeToAttachTo:document.body,triggerNode:this.props.domNode,offset:10,placement:"topCentred",candidatePlacement:["topCentred"],onClose:this._onCloseFlyout},l.default.createElement("div",{className:"slotEditorItem__disambiguatingTooltipTitle"},t),l.default.createElement("div",{className:"slotEditorItem__disambiguatingTooltip"},e)):null}},{key:"_renderQuerySubjectItem",value:function(){return this.props.dashboardApi.getFeature("DataSources.UI").getColumnSourceTree(this.props.sourceId,this.props.columnId)}}]),e}(s.Component);p.propTypes={domNode:u.default.object.isRequired,dashboardApi:u.default.object.isRequired,columnId:u.default.string,sourceId:u.default.string,onClose:u.default.func},e.default=p},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,o){var i=o(40),n="object"==typeof self&&self&&self.Object===Object&&self,r=i||n||Function("return this")();t.exports=r},function(t,e,o){var i=o(16).Symbol;t.exports=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(19),n=o.n(i),r=o(20),a=o.n(r),s=new n.a({id:"filter_16",use:"filter_16-usage",viewBox:"0 0 16 16",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="filter_16"><path d="M9 14H7c-.6 0-1-.4-1-1V9.2L2.3 5.5c-.2-.2-.3-.4-.3-.7V3c0-.6.4-1 1-1h10c.6 0 1 .4 1 1v1.8c0 .3-.1.5-.3.7L10 9.2V13c0 .6-.4 1-1 1zM3 3v1.8l4 4V13h2V8.8l4-4V3H3z" /></symbol>'});a.a.add(s),e.default=s},function(t,e,o){(function(e){!function(e,o){t.exports=o()}(0,(function(){"use strict";function t(t,e){return t(e={exports:{}},e.exports),e.exports}var o=function(t){var e=t.id,o=t.viewBox,i=t.content;this.id=e,this.viewBox=o,this.content=i};o.prototype.stringify=function(){return this.content},o.prototype.toString=function(){return this.stringify()},o.prototype.destroy=function(){var t=this;["id","viewBox","content"].forEach((function(e){return delete t[e]}))};var i=("undefined"!=typeof window?window:void 0!==e||"undefined"!=typeof self&&self,t((function(t,e){t.exports=function(){function t(t){return t&&"object"==typeof t&&"[object RegExp]"!==Object.prototype.toString.call(t)&&"[object Date]"!==Object.prototype.toString.call(t)}function e(e,o){return o&&!0===o.clone&&t(e)?n(function(t){return Array.isArray(t)?[]:{}}(e),e,o):e}function o(o,i,r){var a=o.slice();return i.forEach((function(i,s){void 0===a[s]?a[s]=e(i,r):t(i)?a[s]=n(o[s],i,r):-1===o.indexOf(i)&&a.push(e(i,r))})),a}function i(o,i,r){var a={};return t(o)&&Object.keys(o).forEach((function(t){a[t]=e(o[t],r)})),Object.keys(i).forEach((function(s){t(i[s])&&o[s]?a[s]=n(o[s],i[s],r):a[s]=e(i[s],r)})),a}function n(t,n,r){var a=Array.isArray(n),s=(r||{arrayMerge:o}).arrayMerge||o;return a?Array.isArray(t)?s(t,n,r):e(n,r):i(t,n,r)}return n.all=function(t,e){if(!Array.isArray(t)||t.length<2)throw new Error("first argument should be an array with at least two elements");return t.reduce((function(t,o){return n(t,o,e)}))},n}()}))),n=t((function(t,e){e.default={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}},t.exports=e.default})),r=n.svg,a=n.xlink,s={};s[r.name]=r.uri,s[a.name]=a.uri;var l=function(t,e){return void 0===t&&(t=""),"<svg "+function(t){return Object.keys(t).map((function(e){return e+'="'+t[e].toString().replace(/"/g,"&quot;")+'"'})).join(" ")}(i(s,e||{}))+">"+t+"</svg>"};return function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var o={isMounted:{}};return o.isMounted.get=function(){return!!this.node},e.createFromExistingNode=function(t){return new e({id:t.getAttribute("id"),viewBox:t.getAttribute("viewBox"),content:t.outerHTML})},e.prototype.destroy=function(){this.isMounted&&this.unmount(),t.prototype.destroy.call(this)},e.prototype.mount=function(t){if(this.isMounted)return this.node;var e="string"==typeof t?document.querySelector(t):t,o=this.render();return this.node=o,e.appendChild(o),o},e.prototype.render=function(){var t=this.stringify();return function(t){var e=!!document.importNode,o=(new DOMParser).parseFromString(t,"image/svg+xml").documentElement;return e?document.importNode(o,!0):o}(l(t)).childNodes[0]},e.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(e.prototype,o),e}(o)}))}).call(e,o(11))},function(t,e,o){(function(e){!function(e,o){t.exports=o()}(0,(function(){"use strict";function t(t,e){return t(e={exports:{}},e.exports),e.exports}function o(t){return t.replace(A,(function(t){return"%"+t[0].charCodeAt(0).toString(16).toUpperCase()}))}var i=("undefined"!=typeof window?window:void 0!==e||"undefined"!=typeof self&&self,t((function(t,e){t.exports=function(){function t(t){return t&&"object"==typeof t&&"[object RegExp]"!==Object.prototype.toString.call(t)&&"[object Date]"!==Object.prototype.toString.call(t)}function e(e,o){return o&&!0===o.clone&&t(e)?n(function(t){return Array.isArray(t)?[]:{}}(e),e,o):e}function o(o,i,r){var a=o.slice();return i.forEach((function(i,s){void 0===a[s]?a[s]=e(i,r):t(i)?a[s]=n(o[s],i,r):-1===o.indexOf(i)&&a.push(e(i,r))})),a}function i(o,i,r){var a={};return t(o)&&Object.keys(o).forEach((function(t){a[t]=e(o[t],r)})),Object.keys(i).forEach((function(s){t(i[s])&&o[s]?a[s]=n(o[s],i[s],r):a[s]=e(i[s],r)})),a}function n(t,n,r){var a=Array.isArray(n),s=(r||{arrayMerge:o}).arrayMerge||o;return a?Array.isArray(t)?s(t,n,r):e(n,r):i(t,n,r)}return n.all=function(t,e){if(!Array.isArray(t)||t.length<2)throw new Error("first argument should be an array with at least two elements");return t.reduce((function(t,o){return n(t,o,e)}))},n}()}))),n=t((function(t,e){e.default={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}},t.exports=e.default})),r=n.svg,a=n.xlink,s={};s[r.name]=r.uri,s[a.name]=a.uri;var l,u=function(t,e){return void 0===t&&(t=""),"<svg "+function(t){return Object.keys(t).map((function(e){return e+'="'+t[e].toString().replace(/"/g,"&quot;")+'"'})).join(" ")}(i(s,e||{}))+">"+t+"</svg>"},c=n.svg,d=n.xlink,p={attrs:(l={style:["position: absolute","width: 0","height: 0"].join("; ")},l[c.name]=c.uri,l[d.name]=d.uri,l)},f=function(t){this.config=i(p,t||{}),this.symbols=[]};f.prototype.add=function(t){var e=this.symbols,o=this.find(t.id);return o?(e[e.indexOf(o)]=t,!1):(e.push(t),!0)},f.prototype.remove=function(t){var e=this.symbols,o=this.find(t);return!!o&&(e.splice(e.indexOf(o),1),o.destroy(),!0)},f.prototype.find=function(t){return this.symbols.filter((function(e){return e.id===t}))[0]||null},f.prototype.has=function(t){return null!==this.find(t)},f.prototype.stringify=function(){var t=this.config.attrs,e=this.symbols.map((function(t){return t.stringify()})).join("");return u(e,t)},f.prototype.toString=function(){return this.stringify()},f.prototype.destroy=function(){this.symbols.forEach((function(t){return t.destroy()}))};var h=function(t){var e=t.id,o=t.viewBox,i=t.content;this.id=e,this.viewBox=o,this.content=i};h.prototype.stringify=function(){return this.content},h.prototype.toString=function(){return this.stringify()},h.prototype.destroy=function(){var t=this;["id","viewBox","content"].forEach((function(e){return delete t[e]}))};var g,m=function(t){var e=!!document.importNode,o=(new DOMParser).parseFromString(t,"image/svg+xml").documentElement;return e?document.importNode(o,!0):o},_=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var o={isMounted:{}};return o.isMounted.get=function(){return!!this.node},e.createFromExistingNode=function(t){return new e({id:t.getAttribute("id"),viewBox:t.getAttribute("viewBox"),content:t.outerHTML})},e.prototype.destroy=function(){this.isMounted&&this.unmount(),t.prototype.destroy.call(this)},e.prototype.mount=function(t){if(this.isMounted)return this.node;var e="string"==typeof t?document.querySelector(t):t,o=this.render();return this.node=o,e.appendChild(o),o},e.prototype.render=function(){var t=this.stringify();return m(u(t)).childNodes[0]},e.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(e.prototype,o),e}(h),y={autoConfigure:!0,mountTo:"body",syncUrlsWithBaseTag:!1,listenLocationChangeEvent:!0,locationChangeEvent:"locationChange",locationChangeAngularEmitter:!1,usagesToUpdate:"use[*|href]",moveGradientsOutsideSymbol:!1},v=function(t){return Array.prototype.slice.call(t,0)},b=navigator.userAgent,I={isChrome:/chrome/i.test(b),isFirefox:/firefox/i.test(b),isIE:/msie/i.test(b)||/trident/i.test(b),isEdge:/edge/i.test(b)},S=function(t){return(t||window.location.href).split("#")[0]},C=function(t){angular.module("ng").run(["$rootScope",function(e){e.$on("$locationChangeSuccess",(function(e,o,i){!function(t,e){var o=document.createEvent("CustomEvent");o.initCustomEvent(t,!1,!1,e),window.dispatchEvent(o)}(t,{oldUrl:i,newUrl:o})}))}])},E=function(t,e){return void 0===e&&(e="linearGradient, radialGradient, pattern"),v(t.querySelectorAll("symbol")).forEach((function(t){v(t.querySelectorAll(e)).forEach((function(e){t.parentNode.insertBefore(e,t)}))})),t},F=n.xlink.uri,D="xlink:href",A=/[{}|\\\^\[\]`"<>]/g,P=["clipPath","colorProfile","src","cursor","fill","filter","marker","markerStart","markerMid","markerEnd","mask","stroke","style"],x=P.map((function(t){return"["+t+"]"})).join(","),T=function(t,e,i,n){var r=o(i),a=o(n);(function(t,e){return v(t).reduce((function(t,o){if(!o.attributes)return t;var i=v(o.attributes),n=e?i.filter(e):i;return t.concat(n)}),[])})(t.querySelectorAll(x),(function(t){var e=t.localName,o=t.value;return-1!==P.indexOf(e)&&-1!==o.indexOf("url("+r)})).forEach((function(t){return t.value=t.value.replace(r,a)})),function(t,e,o){v(t).forEach((function(t){var i=t.getAttribute(D);if(i&&0===i.indexOf(e)){var n=i.replace(e,o);t.setAttributeNS(F,D,n)}}))}(e,r,a)},w="mount",M="symbol_mount",k=function(t){function e(e){var o=this;void 0===e&&(e={}),t.call(this,i(y,e));var n=function(t){return t=t||Object.create(null),{on:function(e,o){(t[e]||(t[e]=[])).push(o)},off:function(e,o){t[e]&&t[e].splice(t[e].indexOf(o)>>>0,1)},emit:function(e,o){(t[e]||[]).map((function(t){t(o)})),(t["*"]||[]).map((function(t){t(e,o)}))}}}();this._emitter=n,this.node=null;var r=this.config;if(r.autoConfigure&&this._autoConfigure(e),r.syncUrlsWithBaseTag){var a=document.getElementsByTagName("base")[0].getAttribute("href");n.on(w,(function(){return o.updateUrls("#",a)}))}var s=this._handleLocationChange.bind(this);this._handleLocationChange=s,r.listenLocationChangeEvent&&window.addEventListener(r.locationChangeEvent,s),r.locationChangeAngularEmitter&&C(r.locationChangeEvent),n.on(w,(function(t){r.moveGradientsOutsideSymbol&&E(t)})),n.on(M,(function(t){r.moveGradientsOutsideSymbol&&E(t.parentNode),(I.isIE||I.isEdge)&&function(t){var e=[];v(t.querySelectorAll("style")).forEach((function(t){t.textContent+="",e.push(t)}))}(t)}))}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var o={isMounted:{}};return o.isMounted.get=function(){return!!this.node},e.prototype._autoConfigure=function(t){var e=this.config;void 0===t.syncUrlsWithBaseTag&&(e.syncUrlsWithBaseTag=void 0!==document.getElementsByTagName("base")[0]),void 0===t.locationChangeAngularEmitter&&(e.locationChangeAngularEmitter="angular"in window),void 0===t.moveGradientsOutsideSymbol&&(e.moveGradientsOutsideSymbol=I.isFirefox)},e.prototype._handleLocationChange=function(t){var e=t.detail,o=e.oldUrl,i=e.newUrl;this.updateUrls(o,i)},e.prototype.add=function(e){var o=t.prototype.add.call(this,e);return this.isMounted&&o&&(e.mount(this.node),this._emitter.emit(M,e.node)),o},e.prototype.attach=function(t){var e=this,o=this;if(o.isMounted)return o.node;var i="string"==typeof t?document.querySelector(t):t;return o.node=i,this.symbols.forEach((function(t){t.mount(o.node),e._emitter.emit(M,t.node)})),v(i.querySelectorAll("symbol")).forEach((function(t){var e=_.createFromExistingNode(t);e.node=t,o.add(e)})),this._emitter.emit(w,i),i},e.prototype.destroy=function(){var t=this,e=t.config,o=t.symbols,i=t._emitter;o.forEach((function(t){return t.destroy()})),i.off("*"),window.removeEventListener(e.locationChangeEvent,this._handleLocationChange),this.isMounted&&this.unmount()},e.prototype.mount=function(t,e){void 0===t&&(t=this.config.mountTo),void 0===e&&(e=!1);var o=this;if(o.isMounted)return o.node;var i="string"==typeof t?document.querySelector(t):t,n=o.render();return this.node=n,e&&i.childNodes[0]?i.insertBefore(n,i.childNodes[0]):i.appendChild(n),this._emitter.emit(w,n),n},e.prototype.render=function(){return m(this.stringify())},e.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},e.prototype.updateUrls=function(t,e){if(!this.isMounted)return!1;var o=document.querySelectorAll(this.config.usagesToUpdate);return T(this.node,o,S(t)+"#",S(e)+"#"),!0},Object.defineProperties(e.prototype,o),e}(f),R=t((function(t){
  30. /*!
  31. * domready (c) Dustin Diaz 2014 - License MIT
  32. */
  33. t.exports=function(){var t,e=[],o=document,i=(o.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(o.readyState);return i||o.addEventListener("DOMContentLoaded",t=function(){for(o.removeEventListener("DOMContentLoaded",t),i=1;t=e.shift();)t()}),function(t){i?setTimeout(t,0):e.push(t)}}()}));!!window.__SVG_SPRITE__?g=window.__SVG_SPRITE__:(g=new k({attrs:{id:"__SVG_SPRITE_NODE__"}}),window.__SVG_SPRITE__=g);var O=function(){var t=document.getElementById("__SVG_SPRITE_NODE__");t?g.attach(t):g.mount(document.body,!0)};return document.body?O():R(O),g}))}).call(e,o(11))},function(t,e,o){var i=o(55);"string"==typeof i&&(i=[[t.i,i,""]]);var n={hmr:!0,transform:void 0};o(5)(i,n),i.locals&&(t.exports=i.locals)},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),r=i(o(0)),a=i(o(23)),s=i(o(53)),l=i(o(59)),u=i(o(64)),c=o(65),d=function(){function t(e){var o=e.features;(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this._dashboard=o.API,this._slotEditorState=o.SlotEditorState,this._slotEditorDOM=o.SlotEditorDOM,this.a11YHandler=new l.default}return n(t,[{key:"getAPI",value:function(){return this._api}},{key:"isTypeInEnabled",value:function(){return!this._dashboard.getGlassCoreSvc(".FeatureChecker").checkValue("dashboard","typeInSlots","disabled")}},{key:"initialize",value:function(){this._api=c.createAPI(this,[u.default]),this._slotEditorDOM.addExtension({index:1,render:this.render.bind(this)})}},{key:"render",value:function(){var t=this._dashboard.getDashboardSvc(".DndManager"),e=this._slotEditorState.getModel(),o=e.getLocalFilters();return this.isTypeInEnabled()?r.default.createElement(a.default,{dndManager:t,filterItemActionHandler:e.getFilterActionHandler(),localFiltersInfo:o,a11Y:this.a11YHandler,dashboardApi:this._dashboard}):r.default.createElement(s.default,{dndManager:t,filterItemActionHandler:e.getFilterActionHandler(),localFiltersInfo:o,a11Y:this.a11YHandler,dashboardApi:this._dashboard})}}]),t}();t.exports=d},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),r=o(0),a=i(r),s=i(o(6)),l=o(2),u=i(o(26)),c=i(o(34)),d=i(o(36)),p=i(o(18)),f=i(o(1)),h=o(9);o(12);var g=o(7),m=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),n(e,[{key:"componentWillUnmount",value:function(){this.dropFilterItemHandler&&this.dropFilterItemHandler.destroy()}},{key:"render",value:function(){return this._renderLocalFiltersArea(this.props.localFiltersInfo)}},{key:"_renderLocalFiltersArea",value:function(t){var e=this;return a.default.createElement("div",{className:"slotEditor__localFilters",ref:function(t){e.domNode=t},tabIndex:"0",onKeyUp:function(t){return e.props.a11Y.filterHeaderHandleKeyUp(t,e.domNode,e.dropFilterItemHandler,e.props.filterItemActionHandler)},"aria-label":s.default.get("localFilters")},a.default.createElement("div",{className:"slotEditor__localFilters__heading__container"},a.default.createElement("div",{className:"slotEditor__localFilters__heading__icon"},a.default.createElement(l.SVGIcon,{iconId:p.default.id,size:"small"})),s.default.get("localFilters")),a.default.createElement("div",{className:"slotEditor__localFilters__attachPoint"}),this._renderLocalFilters(t),a.default.createElement(d.default,{a11Y:this.props.a11Y,slotDataItemHandler:this.props.filterItemActionHandler,dashboardApi:this.props.dashboardApi,initializeDnd:this._initializeDndSupport.bind(this),parentNode:this.domNode}))}},{key:"_renderLocalFilters",value:function(t){var e=this,o=g.map(t,(function(t,o){var i=t.isMissing?s.default.get("missingColumn",{columnLabel:t.columnId}):t.name;return a.default.createElement("div",{className:"slotEditor__localFilters__item",key:"localFilters"+o},a.default.createElement(u.default,{itemName:i,filterString:t.filterString,numberOfFilterItems:t.numberOfFilterItems,itemColumnId:t.columnId,metadataColumn:t.metadataColumn,itemFilterId:t.id,filterItemActionHandler:e.props.filterItemActionHandler,a11Y:e.props.a11Y,dndManager:e.props.dndManager,dashboardApi:e.props.dashboardApi}))}));if(o.length)return a.default.createElement("div",{className:"slotEditor__localFilters__items"},o)}},{key:"_initializeDndSupport",value:function(t){var e=this;this.props.dndManager.then((function(o){t&&(e.dropFilterItemHandler=new c.default({domNode:t,className:"dndHover",slotDataItemHandler:e.props.filterItemActionHandler,addAfter:!1,filterEditorNode:e.domNode,dndManager:o}))}))}}]),e}(r.Component);m.propTypes={dndManager:f.default.object.isRequired,localFiltersInfo:h.PropTypes.observableArray,filterItemActionHandler:f.default.object,a11Y:f.default.object.isRequired,dashboardApi:f.default.object.isRequired},e.default=m},function(t,e){var o={__root:{localFilters:"Local filters",slotEditorMsg1:"Required field",slotEditorMsg2:"Drag and drop data to the fields above to build and filter the visualization.",missingColumn:"Missing: %{columnLabel}",placeholderDropzone:"Click or drag data here",slotEditor_emptyState_no_visualization_selected_title:"No visualization selected",slotEditor_emptyState_no_visualization_selected_description:"Select a visualization to manage the field settings.",slotEditor_emptyState_widget_not_support_slot_selected_title:"The widget selected does not use fields",slotEditor_emptyState_widget_not_support_slot_selected_description:"Select a visualization to manage the field settings.",slotEditor_emptyState_multiple_visualizations_selected_title:"Multiple widgets selected",slotEditor_emptyState_multiple_visualizations_selected_description:"Select a visualization to manage the field settings.",slotEditor_emptyState_visualization_has_error_title:"The visualization cannot be displayed",slotEditor_slotItem_tooltip:"Source:",slotEditor_emptyState_vis_not_created_title:"No visualization created",slotEditor_emptyState_vis_not_created_description:"Create a visualization to manage the field settings.",slotEditor:"Fields",slotEditorCoachMarkTitle:"Access fields",slotEditorCoachMarkContents:"Add columns to the fields to build and modify visualizations.",toolbarDeleteFilterActionText:"Remove filter",toolbarActionFilter:"Filter",filterAutobinActionText:"Filter bins",coachMarkTitleSpiralTarget:"Edit scope",coachMarkContentSpiralTarget:"This is where you can access and modify the driver selection for your target.",overlayDropZonePlaceHolderText:"Drag data here"},__cs:{localFilters:"Lokální filtry",slotEditorMsg1:"Povinné pole",slotEditorMsg2:"Přetáhněte data do polí nahoře, aby se sestavila a filtrovala vizualizace.",missingColumn:"Chybí: %{columnLabel}",placeholderDropzone:"Klepněte nebo přetáhněte data sem",slotEditor_emptyState_no_visualization_selected_title:"Není vybrána žádná vizualizace",slotEditor_emptyState_no_visualization_selected_description:"Vyberte vizualizaci pro správu nastavení polí.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Vybraný modul widget nepoužívá pole",slotEditor_emptyState_widget_not_support_slot_selected_description:"Vyberte vizualizaci pro správu nastavení polí.",slotEditor_emptyState_multiple_visualizations_selected_title:"Vybráno více modulů widget",slotEditor_emptyState_multiple_visualizations_selected_description:"Vyberte vizualizaci pro správu nastavení polí.",slotEditor_emptyState_visualization_has_error_title:"Vizualizaci nelze zobrazit",slotEditor_slotItem_tooltip:"Zdroj:",slotEditor_emptyState_vis_not_created_title:"Nebyla vytvořena žádná vizualizace",slotEditor_emptyState_vis_not_created_description:"Vytvořte vizualizaci pro správu nastavení polí.",slotEditor:"Pole",slotEditorCoachMarkTitle:"Přístupová pole",slotEditorCoachMarkContents:"Přidejte sloupce do polí, abyste mohli sestavovat a upravovat vizualizace.",toolbarDeleteFilterActionText:"Odebrat filtr",toolbarActionFilter:"Filtr",filterAutobinActionText:"Filtrovat přihrádky",coachMarkTitleSpiralTarget:"Upravit rozsah",coachMarkContentSpiralTarget:"Zde je k dispozici přístup k výběru drivery pro cíl a možnost jeho úprav.",overlayDropZonePlaceHolderText:"Přetáhněte data sem"},__da:{localFilters:"Lokale filtre",slotEditorMsg1:"Påkrævet felt",slotEditorMsg2:"Træk og placér data til felterne ovenfor for at bygge og filtrere visualiseringen.",missingColumn:"Mangler: %{columnLabel}",placeholderDropzone:"Klik og træk data her",slotEditor_emptyState_no_visualization_selected_title:"Der er ikke valgt nogen visualisering",slotEditor_emptyState_no_visualization_selected_description:"Vælg en visualisering for at administrere feltindstilingerne.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Den valgte widget bruger ikke felter",slotEditor_emptyState_widget_not_support_slot_selected_description:"Vælg en visualisering for at administrere feltindstilingerne.",slotEditor_emptyState_multiple_visualizations_selected_title:"Flere widgetter er valgt",slotEditor_emptyState_multiple_visualizations_selected_description:"Vælg en visualisering for at administrere feltindstilingerne.",slotEditor_emptyState_visualization_has_error_title:"Visualiseringen kan ikke vises",slotEditor_slotItem_tooltip:"Kilde:",slotEditor_emptyState_vis_not_created_title:"Ingen visualisering er oprettet",slotEditor_emptyState_vis_not_created_description:"Opret en visualisering for at administrere feltindstilingerne.",slotEditor:"Felter",slotEditorCoachMarkTitle:"Anvend felter",slotEditorCoachMarkContents:"Tilføj kolonner til felterne for at bygge og ændre visualiseringer.",toolbarDeleteFilterActionText:"Fjern filter",toolbarActionFilter:"Filtrér",filterAutobinActionText:"Filtrér områder (bins)",coachMarkTitleSpiralTarget:"Redigér omfang",coachMarkContentSpiralTarget:"Her kan du få adgang til og ændre styreprogramvalget for dit mål.",overlayDropZonePlaceHolderText:"Træk data her"},__de:{localFilters:"Lokale Filter",slotEditorMsg1:"Erforderliches Feld",slotEditorMsg2:"Daten in die Felder oben ziehen und ablegen, um die Visualisierung zu erstellen und zu filtern.",missingColumn:"Nicht vorhanden: %{columnLabel}",placeholderDropzone:"Klicken oder Daten hierher ziehen",slotEditor_emptyState_no_visualization_selected_title:"Keine Visualisierung ausgewählt",slotEditor_emptyState_no_visualization_selected_description:"Zum Verwalten der Feldeigenschaften eine Visualisierung auswählen.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Ausgewähltes Widget verwendet keine Felder",slotEditor_emptyState_widget_not_support_slot_selected_description:"Zum Verwalten der Feldeigenschaften eine Visualisierung auswählen.",slotEditor_emptyState_multiple_visualizations_selected_title:"Mehrere Widgets ausgewählt",slotEditor_emptyState_multiple_visualizations_selected_description:"Zum Verwalten der Feldeigenschaften eine Visualisierung auswählen.",slotEditor_emptyState_visualization_has_error_title:"Anzeigen der Visualisierung nicht möglich",slotEditor_slotItem_tooltip:"Quelle:",slotEditor_emptyState_vis_not_created_title:"Keine Visualisierung erstellt",slotEditor_emptyState_vis_not_created_description:"Zum Verwalten der Feldeigenschaften eine Visualisierung erstellen.",slotEditor:"Felder",slotEditorCoachMarkTitle:"Felder aufrufen",slotEditorCoachMarkContents:"Spalten zu den Feldern hinzufügen, um Visualisierungen zu erstellen und zu ändern.",toolbarDeleteFilterActionText:"Filter entfernen",toolbarActionFilter:"Filtern",filterAutobinActionText:"Bins filtern",coachMarkTitleSpiralTarget:"Bereich bearbeiten",coachMarkContentSpiralTarget:"Hier können Sie auf die Auswahl der Einflussfaktoren für das Ziel zugreifen und gegebenenfalls Änderungen vornehmen.",overlayDropZonePlaceHolderText:"Daten hierher ziehen"},__es:{localFilters:"Filtros locales",slotEditorMsg1:"Campo necesario",slotEditorMsg2:"Arrastre y suelte los datos en los campos para crear y filtrar la visualización.",missingColumn:"Falta: %{columnLabel}",placeholderDropzone:"Pulse o arrastre los datos aquí ",slotEditor_emptyState_no_visualization_selected_title:"No se ha seleccionado ninguna visualización",slotEditor_emptyState_no_visualization_selected_description:"Seleccione una visualización para gestionar los valores de campos.",slotEditor_emptyState_widget_not_support_slot_selected_title:"El widget seleccionado no utiliza campos",slotEditor_emptyState_widget_not_support_slot_selected_description:"Seleccione una visualización para gestionar los valores de campos.",slotEditor_emptyState_multiple_visualizations_selected_title:"Varios widgets seleccionados",slotEditor_emptyState_multiple_visualizations_selected_description:"Seleccione una visualización para gestionar los valores de campos.",slotEditor_emptyState_visualization_has_error_title:"La visualización no se puede visualizar",slotEditor_slotItem_tooltip:"Origen:",slotEditor_emptyState_vis_not_created_title:"No se ha creado ninguna visualización",slotEditor_emptyState_vis_not_created_description:"Cree una visualización para gestionar los valores de campos.",slotEditor:"Campos",slotEditorCoachMarkTitle:"Acceder a campos",slotEditorCoachMarkContents:"Añada columnas a los campos para crear y modificar visualizaciones.",toolbarDeleteFilterActionText:"Eliminar filtro",toolbarActionFilter:"Filtro",filterAutobinActionText:"Filtrar cubetas",coachMarkTitleSpiralTarget:"Editar ámbito",coachMarkContentSpiralTarget:"Aquí puede acceder y modificar la selección de controlador de su destino.",overlayDropZonePlaceHolderText:"Arrastre los datos aquí "},__fi:{localFilters:"Paikalliset suodattimet",slotEditorMsg1:"Pakollinen kenttä",slotEditorMsg2:"Voit muodostaa visualisoinnin ja suodattaa sen vetämällä ja pudottamalla tiedot yllä oleviin kenttiin.",missingColumn:"Puuttuva: %{columnLabel}",placeholderDropzone:"Napsauta tätä, tai vedä tiedot tähän",slotEditor_emptyState_no_visualization_selected_title:"Visualisointia ei ole valittu",slotEditor_emptyState_no_visualization_selected_description:"Valitse visualisointi, jotta voit hallita kentän asetuksia.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Valittu pienoisohjelma ei käytä kenttiä",slotEditor_emptyState_widget_not_support_slot_selected_description:"Valitse visualisointi, jotta voit hallita kentän asetuksia.",slotEditor_emptyState_multiple_visualizations_selected_title:"On valittu useita pienoisohjelmia",slotEditor_emptyState_multiple_visualizations_selected_description:"Valitse visualisointi, jotta voit hallita kentän asetuksia.",slotEditor_emptyState_visualization_has_error_title:"Visualisoinnin näyttö ei onnistunut",slotEditor_slotItem_tooltip:"Lähde:",slotEditor_emptyState_vis_not_created_title:"Visualisointia ei ole luotu",slotEditor_emptyState_vis_not_created_description:"Valitse visualisointi, jotta voit hallita kentän asetuksia.",slotEditor:"Kentät",slotEditorCoachMarkTitle:"Kenttien käyttö",slotEditorCoachMarkContents:"Lisää kenttiin sarakkeita visualisointien luontia ja muokkausta varten.",toolbarDeleteFilterActionText:"Poista suodatin",toolbarActionFilter:"Suodatin",filterAutobinActionText:"Suodata numeroryhmät",coachMarkTitleSpiralTarget:"Muokkaa aluetta",coachMarkContentSpiralTarget:"Tässä voit käyttää ja muokata vaikuttimien valintaa kohdetta varten.",overlayDropZonePlaceHolderText:"Vedä tiedot tähän"},__fr:{localFilters:"Filtres locaux",slotEditorMsg1:"Zone requise",slotEditorMsg2:"Glissez-déposez des données sur les zones ci-dessus pour générer et filtrer la visualisation.",missingColumn:"Manquant : %{columnLabel}",placeholderDropzone:"Cliquez ou faites glisser les données ici",slotEditor_emptyState_no_visualization_selected_title:"Aucune visualisation sélectionnée",slotEditor_emptyState_no_visualization_selected_description:"Sélectionnez une visualisation pour gérer les paramètres de zone.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Le widget sélectionné n'utilise pas les zones",slotEditor_emptyState_widget_not_support_slot_selected_description:"Sélectionnez une visualisation pour gérer les paramètres de zone.",slotEditor_emptyState_multiple_visualizations_selected_title:"Plusieurs widgets sélectionnés",slotEditor_emptyState_multiple_visualizations_selected_description:"Sélectionnez une visualisation pour gérer les paramètres de zone.",slotEditor_emptyState_visualization_has_error_title:"Impossible d'afficher la visualisation",slotEditor_slotItem_tooltip:"Source :",slotEditor_emptyState_vis_not_created_title:"Aucune visualisation créée",slotEditor_emptyState_vis_not_created_description:"Créez une visualisation pour gérer les paramètres de zone.",slotEditor:"Zones",slotEditorCoachMarkTitle:"Zones d'accès",slotEditorCoachMarkContents:"Ajouter des colonnes aux zones pour générer et modifier des visualisations.",toolbarDeleteFilterActionText:"Retirer le filtre",toolbarActionFilter:"Filtre",filterAutobinActionText:"Filtrer les casiers",coachMarkTitleSpiralTarget:"Editer la portée",coachMarkContentSpiralTarget:"Vous pouvez accéder ici au pilote sélectionné pour votre cible et le modifier.",overlayDropZonePlaceHolderText:"Glisser les données ici"},__hr:{localFilters:"Lokalni filteri",slotEditorMsg1:"Obavezno polje",slotEditorMsg2:"Povucite i ispustite podatke gore na polja da izgradite i filtrirate vizualizaciju.",missingColumn:"Nedostaje: %{columnLabel}",placeholderDropzone:"Kliknite ili povucite podatke ovdje",slotEditor_emptyState_no_visualization_selected_title:"Nema izabranih vizualizacija",slotEditor_emptyState_no_visualization_selected_description:"Izaberite vizualizaciju za upravljanje postavkama polja.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Izabrani grafički element ne koristi polja.",slotEditor_emptyState_widget_not_support_slot_selected_description:"Izaberite vizualizaciju za upravljanje postavkama polja.",slotEditor_emptyState_multiple_visualizations_selected_title:"Izabrano je više grafičkih elemenata.",slotEditor_emptyState_multiple_visualizations_selected_description:"Izaberite vizualizaciju za upravljanje postavkama polja.",slotEditor_emptyState_visualization_has_error_title:"Vizualizacija se ne može prikazati.",slotEditor_slotItem_tooltip:"Izvor:",slotEditor_emptyState_vis_not_created_title:"Vizualizacija nije kreirana",slotEditor_emptyState_vis_not_created_description:"Kreirajte vizualizaciju za upravljanje postavkama polja.",slotEditor:"Polja",slotEditorCoachMarkTitle:"Dohvati polja",slotEditorCoachMarkContents:"Poljima dodajte stupce za izgradite i promijenite vizualizacije.",toolbarDeleteFilterActionText:"Ukloni filter",toolbarActionFilter:"Filter",filterAutobinActionText:"Pregradci filtera",coachMarkTitleSpiralTarget:"Uređivanje opsega",coachMarkContentSpiralTarget:"Ovdje možete dohvatiti i promijeniti izbor pogonitelja za vaš cilj.",overlayDropZonePlaceHolderText:"Povucite podatke ovdje"},__hu:{localFilters:"Helyi szűrők",slotEditorMsg1:"Kötelező mező",slotEditorMsg2:"Húzza az adatokat a fenti mezőkre a megjelenítés összeállításához és szűréséhez.",missingColumn:"A következő hiányzik: %{columnLabel}",placeholderDropzone:"Kattintson vagy húzzon ide adatokat",slotEditor_emptyState_no_visualization_selected_title:"Nincs kijelölt megjelenítés",slotEditor_emptyState_no_visualization_selected_description:"A mezőbeállítások kezeléséhez válasszon ki egy megjelenítést.",slotEditor_emptyState_widget_not_support_slot_selected_title:"A kiválasztott felületi elem nem használ mezőket",slotEditor_emptyState_widget_not_support_slot_selected_description:"A mezőbeállítások kezeléséhez válasszon ki egy megjelenítést.",slotEditor_emptyState_multiple_visualizations_selected_title:"Több felületi elem lett kiválasztva",slotEditor_emptyState_multiple_visualizations_selected_description:"A mezőbeállítások kezeléséhez válasszon ki egy megjelenítést.",slotEditor_emptyState_visualization_has_error_title:"A megjelenítés nem jeleníthető meg",slotEditor_slotItem_tooltip:"Forrás:",slotEditor_emptyState_vis_not_created_title:"Nincs létrehozva megjelenítés",slotEditor_emptyState_vis_not_created_description:"A mezőbeállítások kezeléséhez hozzon létre egy megjelenítést.",slotEditor:"Mezők",slotEditorCoachMarkTitle:"Mezők elérése",slotEditorCoachMarkContents:"Megjelenítések összeállításához és módosításához vegyen fel oszlopokat a mezőkbe.",toolbarDeleteFilterActionText:"Szűrő eltávolítása",toolbarActionFilter:"Szűrő",filterAutobinActionText:"Tároló szűrése",coachMarkTitleSpiralTarget:"Hatókör szerkesztése",coachMarkContentSpiralTarget:"Itt érheti el és módosíthatja a célhoz kijelölt tényezőket.",overlayDropZonePlaceHolderText:"Húzza ide az adatokat"},__it:{localFilters:"Filtri locali",slotEditorMsg1:"Campo obbligatorio",slotEditorMsg2:"Trascinare e rilasciare i dati nei campi sopra riportati per creare e filtrare la visualizzazione.",missingColumn:"Mancante: %{columnLabel}",placeholderDropzone:"Fare clic o trascinare i dati qui ",slotEditor_emptyState_no_visualization_selected_title:"Nessuna visualizzazione selezionata",slotEditor_emptyState_no_visualization_selected_description:"Selezionare una visualizzazione per gestire le impostazioni del campo.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Il widget selezionato non utilizza i campi",slotEditor_emptyState_widget_not_support_slot_selected_description:"Selezionare una visualizzazione per gestire le impostazioni del campo.",slotEditor_emptyState_multiple_visualizations_selected_title:"Più widget selezionati",slotEditor_emptyState_multiple_visualizations_selected_description:"Selezionare una visualizzazione per gestire le impostazioni del campo.",slotEditor_emptyState_visualization_has_error_title:"Impossibile mostrare la visualizzazione",slotEditor_slotItem_tooltip:"Sorgente:",slotEditor_emptyState_vis_not_created_title:"Nessuna visualizzazione creata",slotEditor_emptyState_vis_not_created_description:"Creare una visualizzazione per gestire le impostazioni del campo.",slotEditor:"Campi",slotEditorCoachMarkTitle:"Accedi campi",slotEditorCoachMarkContents:"Aggiungi colonne ai campi per creare e modificare le visualizzazioni.",toolbarDeleteFilterActionText:"Rimuovi filtro",toolbarActionFilter:"Filtra",filterAutobinActionText:"Filtra bin",coachMarkTitleSpiralTarget:"Modifica ambito",coachMarkContentSpiralTarget:"Da qui è possibile accedere e modificare la selezione del driver per la propria destinazione.",overlayDropZonePlaceHolderText:"Trascinare i dati in questo punto"},__ja:{localFilters:"ローカル・フィルター",slotEditorMsg1:"必須フィールド",slotEditorMsg2:"上のフィールドにデータをドラッグ・アンド・ドロップし、視覚化を作成してフィルターに掛けます。",missingColumn:"欠落しています: %{columnLabel}",placeholderDropzone:"データをクリックするかここにドラッグしてください",slotEditor_emptyState_no_visualization_selected_title:"視覚化が選択されていません",slotEditor_emptyState_no_visualization_selected_description:"フィールド設定を管理するための視覚化を選択してください。",slotEditor_emptyState_widget_not_support_slot_selected_title:"選択したウィジェットではフィールドは使用しません",slotEditor_emptyState_widget_not_support_slot_selected_description:"フィールド設定を管理するための視覚化を選択してください。",slotEditor_emptyState_multiple_visualizations_selected_title:"複数のウィジェットが選択されています",slotEditor_emptyState_multiple_visualizations_selected_description:"フィールド設定を管理するための視覚化を選択してください。",slotEditor_emptyState_visualization_has_error_title:"視覚化を表示できません",slotEditor_slotItem_tooltip:"ソース:",slotEditor_emptyState_vis_not_created_title:"視覚化が作成されていません",slotEditor_emptyState_vis_not_created_description:"フィールド設定を管理するための視覚化を作成してください。",slotEditor:"フィールド",slotEditorCoachMarkTitle:"フィールドへのアクセス",slotEditorCoachMarkContents:"視覚化を作成したり変更したりするために列をフィールドに追加します。",toolbarDeleteFilterActionText:"フィルターの削除",toolbarActionFilter:"フィルター",filterAutobinActionText:"ビンのフィルター",coachMarkTitleSpiralTarget:"範囲の編集",coachMarkContentSpiralTarget:"ここでターゲットのドライバー選択にアクセスして変更することができます。",overlayDropZonePlaceHolderText:"ここにデータをドラッグ"},__kk:{localFilters:"Жергілікті сүзгілер",slotEditorMsg1:"Қажетті өріс",slotEditorMsg2:"Көрнекілікті сүзгілеу және құру үшін өрістерге деректерді сүйреп апарып тастаңыз.",missingColumn:"Жоқ: %{columnLabel}",placeholderDropzone:"Деректерді мына жерге нұқыңыз немесе сүйреңіз",slotEditor_emptyState_no_visualization_selected_title:"Көрнекілендіру таңдалмаған",slotEditor_emptyState_no_visualization_selected_description:"Өрістердің параметрлерін басқару үшін көрнекілендіру жасаңыз.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Таңдалған виджет өрістерды пайдаланбайды",slotEditor_emptyState_widget_not_support_slot_selected_description:"Өрістердің параметрлерін басқару үшін көрнекілендіру таңдаңыз.",slotEditor_emptyState_multiple_visualizations_selected_title:"Бірнеше виджеттер таңдалды",slotEditor_emptyState_multiple_visualizations_selected_description:"Өрістердің параметрлерін басқару үшін көрнекілендіру тандаңыз.",slotEditor_emptyState_visualization_has_error_title:"Көрнекілендіруді көрсету мүмкін емес",slotEditor_slotItem_tooltip:"Бастапқы:",slotEditor_emptyState_vis_not_created_title:"Жасалған көрнекілендіру жоқ",slotEditor_emptyState_vis_not_created_description:"Өрістердің параметрлерін басқару үшін көрнекілендіру жасаңыз.",slotEditor:"Өрістер",slotEditorCoachMarkTitle:"Кіру өрістері",slotEditorCoachMarkContents:"Көрнекілендіру бейнелерді құру және өзгерту үшін өрістерге баған қосыңыз.",toolbarDeleteFilterActionText:"Сүзгіш жою",toolbarActionFilter:"Сүзгі",filterAutobinActionText:"Bin -дерді сүзгілеу",coachMarkTitleSpiralTarget:"Ауқымды өңдеу",coachMarkContentSpiralTarget:"Мұнда мақсатыңызға арналған драйвер таңдауына кіруге және оны өзгертуге болады.",overlayDropZonePlaceHolderText:"Деректерді осы жерге апарыңыз"},__ko:{localFilters:"로컬 필터",slotEditorMsg1:"필수 필드",slotEditorMsg2:"시각화를 빌드하고 필터링하려면 위의 필드에 데이터를 끌어서 놓으십시오.",missingColumn:"누락: %{columnLabel}",placeholderDropzone:"데이터 클릭 또는 여기로 끌기",slotEditor_emptyState_no_visualization_selected_title:"선택된 시각화 없음",slotEditor_emptyState_no_visualization_selected_description:"필드 설정을 관리하려면 시각화를 선택하십시오.",slotEditor_emptyState_widget_not_support_slot_selected_title:"선택한 위젯에서 필드를 사용하지 않음",slotEditor_emptyState_widget_not_support_slot_selected_description:"필드 설정을 관리하려면 시각화를 선택하십시오.",slotEditor_emptyState_multiple_visualizations_selected_title:"여러 위젯이 선택됨",slotEditor_emptyState_multiple_visualizations_selected_description:"필드 설정을 관리하려면 시각화를 선택하십시오.",slotEditor_emptyState_visualization_has_error_title:"시각화를 표시할 수 없음",slotEditor_slotItem_tooltip:"소스:",slotEditor_emptyState_vis_not_created_title:"작성된 시각화 없음",slotEditor_emptyState_vis_not_created_description:"필드 설정을 관리하려면 시각화를 작성하십시오.",slotEditor:"필드",slotEditorCoachMarkTitle:"액세스 필드",slotEditorCoachMarkContents:"시각화를 빌드하고 수정하려면 필드에 열을 추가하십시오.",toolbarDeleteFilterActionText:"필터 제거",toolbarActionFilter:"필터",filterAutobinActionText:"구간 필터",coachMarkTitleSpiralTarget:"범위 편집",coachMarkContentSpiralTarget:"대상에 대한 드라이버 선택에 액세스하고 수정할 수 있는 위치입니다.",overlayDropZonePlaceHolderText:"데이터 여기에 놓기"},__nb:{localFilters:"Lokale filtre",slotEditorMsg1:"Obligatorisk felt",slotEditorMsg2:"Dra og slipp data i feltene ovenfor for å bygge og filtrere visualiseringen.",missingColumn:"Mangler: %{columnLabel}",placeholderDropzone:"Klikk eller dra data hit",slotEditor_emptyState_no_visualization_selected_title:"Ingen visualisering valgt",slotEditor_emptyState_no_visualization_selected_description:"Velg en visualisering for å administrere innstillingene for felt.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Den valgte widgeten bruker ikke felt",slotEditor_emptyState_widget_not_support_slot_selected_description:"Velg en visualisering for å administrere innstillingene for felt.",slotEditor_emptyState_multiple_visualizations_selected_title:"Flere widgeter valgt",slotEditor_emptyState_multiple_visualizations_selected_description:"Velg en visualisering for å administrere innstillingene for felt.",slotEditor_emptyState_visualization_has_error_title:"Visualiseringen kan ikke vises",slotEditor_slotItem_tooltip:"Kilde:",slotEditor_emptyState_vis_not_created_title:"Ingen visualisering opprettet",slotEditor_emptyState_vis_not_created_description:"Opprett en visualisering for å administrere innstillingene for felt.",slotEditor:"Felt",slotEditorCoachMarkTitle:"Tilgang til felt",slotEditorCoachMarkContents:"Legg til kolonner i feltene for å bygge og endre visualiseringer.",toolbarDeleteFilterActionText:"Fjern filter",toolbarActionFilter:"Filtrer",filterAutobinActionText:"Filtrer binger",coachMarkTitleSpiralTarget:"Rediger omfang",coachMarkContentSpiralTarget:"Her får du tilgang til og kan endre drivervalget for målet ditt.",overlayDropZonePlaceHolderText:"Dra data hit"},__nl:{localFilters:"Lokale filters",slotEditorMsg1:"Verplicht veld",slotEditorMsg2:"Versleep de gegevens naar de bovenstaande velden om de visualisatie samen te stellen en te filteren.",missingColumn:"%{columnLabel} ontbreekt",placeholderDropzone:"Klik hier of versleep gegevens hiernaartoe",slotEditor_emptyState_no_visualization_selected_title:"Geen visualisatie geselecteerd",slotEditor_emptyState_no_visualization_selected_description:"Selecteer een visualisatie om de instellingen van het veld te beheren.",slotEditor_emptyState_widget_not_support_slot_selected_title:"De geselecteerde widget gebruikt geen velden",slotEditor_emptyState_widget_not_support_slot_selected_description:"Selecteer een visualisatie om de instellingen van het veld te beheren.",slotEditor_emptyState_multiple_visualizations_selected_title:"Meerdere widgets geselecteerd",slotEditor_emptyState_multiple_visualizations_selected_description:"Selecteer een visualisatie om de instellingen van het veld te beheren.",slotEditor_emptyState_visualization_has_error_title:"De visualisatie kan niet worden afgebeeld",slotEditor_slotItem_tooltip:"Bron:",slotEditor_emptyState_vis_not_created_title:"Geen visualisatie gemaakt",slotEditor_emptyState_vis_not_created_description:"Maak een visualisatie om de instellingen van het veld te beheren.",slotEditor:"Velden",slotEditorCoachMarkTitle:"Velden benaderen",slotEditorCoachMarkContents:"Voeg kolommen toe aan de velden om visualisaties te bouwen en te wijzigen.",toolbarDeleteFilterActionText:"Filter verwijderen",toolbarActionFilter:"Filteren",filterAutobinActionText:"Bins filteren",coachMarkTitleSpiralTarget:"Bereik bewerken",coachMarkContentSpiralTarget:"Dit is de plek waar u toegang hebt tot de driverselectie voor uw doel en waar u wijzigingen kunt aanbrengen.",overlayDropZonePlaceHolderText:"Sleep gegevens hier naartoe"},__no:{localFilters:"Lokale filtre",slotEditorMsg1:"Obligatorisk felt",slotEditorMsg2:"Dra og slipp data i feltene ovenfor for å bygge og filtrere visualiseringen.",missingColumn:"Mangler: %{columnLabel}",placeholderDropzone:"Klikk eller dra data hit",slotEditor_emptyState_no_visualization_selected_title:"Ingen visualisering valgt",slotEditor_emptyState_no_visualization_selected_description:"Velg en visualisering for å administrere innstillingene for felt.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Den valgte widgeten bruker ikke felt",slotEditor_emptyState_widget_not_support_slot_selected_description:"Velg en visualisering for å administrere innstillingene for felt.",slotEditor_emptyState_multiple_visualizations_selected_title:"Flere widgeter valgt",slotEditor_emptyState_multiple_visualizations_selected_description:"Velg en visualisering for å administrere innstillingene for felt.",slotEditor_emptyState_visualization_has_error_title:"Visualiseringen kan ikke vises",slotEditor_slotItem_tooltip:"Kilde:",slotEditor_emptyState_vis_not_created_title:"Ingen visualisering opprettet",slotEditor_emptyState_vis_not_created_description:"Opprett en visualisering for å administrere innstillingene for felt.",slotEditor:"Felt",slotEditorCoachMarkTitle:"Tilgang til felt",slotEditorCoachMarkContents:"Legg til kolonner i feltene for å bygge og endre visualiseringer.",toolbarDeleteFilterActionText:"Fjern filter",toolbarActionFilter:"Filtrer",filterAutobinActionText:"Filtrer binger",coachMarkTitleSpiralTarget:"Rediger omfang",coachMarkContentSpiralTarget:"Her får du tilgang til og kan endre drivervalget for målet ditt.",overlayDropZonePlaceHolderText:"Dra data hit"},__pl:{localFilters:"Filtry lokalne",slotEditorMsg1:"Pole wymagane",slotEditorMsg2:"Przeciągnij i upuść dane w powyższych szczelinach, aby utworzyć i przefiltrować wizualizację.",missingColumn:"Brak: %{columnLabel}",placeholderDropzone:"Kliknij lub przeciągnij dane w to miejsce",slotEditor_emptyState_no_visualization_selected_title:"Nie wybrano wizualizacji",slotEditor_emptyState_no_visualization_selected_description:"Wybierz wizualizację, aby zarządzać ustawieniami pól.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Wybrany widget nie korzysta ze pól",slotEditor_emptyState_widget_not_support_slot_selected_description:"Wybierz wizualizację, aby zarządzać ustawieniami pól.",slotEditor_emptyState_multiple_visualizations_selected_title:"Wybrano więcej niż jeden widget",slotEditor_emptyState_multiple_visualizations_selected_description:"Wybierz wizualizację, aby zarządzać ustawieniami pól.",slotEditor_emptyState_visualization_has_error_title:"Nie można wyświetlić wizualizacji",slotEditor_slotItem_tooltip:"Źródło:",slotEditor_emptyState_vis_not_created_title:"Nie utworzono żadnej wizualizacji",slotEditor_emptyState_vis_not_created_description:"Utwórz wizualizację, aby zarządzać ustawieniami pól.",slotEditor:"Pola",slotEditorCoachMarkTitle:"Uzyskaj dostęp do pól",slotEditorCoachMarkContents:"Dodawaj kolumny do pól, aby budować i modyfikować wizualizacje.",toolbarDeleteFilterActionText:"Usuń filtr",toolbarActionFilter:"Filtr",filterAutobinActionText:"Filtruj kategorie",coachMarkTitleSpiralTarget:"Edytuj zakres",coachMarkContentSpiralTarget:"W tym miejscu można uzyskać dostęp do czynników dla zmiennej przewidywanej i zmodyfikować ich wybór.",overlayDropZonePlaceHolderText:"Przeciągnij tutaj dane"},__pt:{localFilters:"Filtros locais",slotEditorMsg1:"Campo requerido",slotEditorMsg2:"Arraste e solte dados para os campos acima para criar e filtrar a visualização.",missingColumn:"Ausente: %{columnLabel}",placeholderDropzone:"Clicar ou arrastar dados aqui",slotEditor_emptyState_no_visualization_selected_title:"Nenhuma visualização selecionada",slotEditor_emptyState_no_visualization_selected_description:"Selecione uma visualização para gerenciar as configurações de campo.",slotEditor_emptyState_widget_not_support_slot_selected_title:"O widget selecionado não usa campos",slotEditor_emptyState_widget_not_support_slot_selected_description:"Selecione uma visualização para gerenciar as configurações de campo.",slotEditor_emptyState_multiple_visualizations_selected_title:"Vários widgets selecionados",slotEditor_emptyState_multiple_visualizations_selected_description:"Selecione uma visualização para gerenciar as configurações de campo.",slotEditor_emptyState_visualization_has_error_title:"Não é possível exibir a visualização",slotEditor_slotItem_tooltip:"Origem:",slotEditor_emptyState_vis_not_created_title:"Nenhuma visualização criada",slotEditor_emptyState_vis_not_created_description:"Crie uma visualização para gerenciar as configurações de campo.",slotEditor:"Campos",slotEditorCoachMarkTitle:"Campos de acesso",slotEditorCoachMarkContents:"Inclua colunas nos campos para criar e modificar visualizações.",toolbarDeleteFilterActionText:"Remover filtro",toolbarActionFilter:"Filtrar",filterAutobinActionText:"Filtro de categorias",coachMarkTitleSpiralTarget:"Editar escopo",coachMarkContentSpiralTarget:"Este é o local onde é possível acessar e modificar a seleção do driver para seu destino.",overlayDropZonePlaceHolderText:"Arraste os dados para cá"},"__pt-br":{localFilters:"Filtros locais",slotEditorMsg1:"Campo requerido",slotEditorMsg2:"Arraste e solte dados para os campos acima para criar e filtrar a visualização.",missingColumn:"Ausente: %{columnLabel}",placeholderDropzone:"Clicar ou arrastar dados aqui",slotEditor_emptyState_no_visualization_selected_title:"Nenhuma visualização selecionada",slotEditor_emptyState_no_visualization_selected_description:"Selecione uma visualização para gerenciar as configurações de campo.",slotEditor_emptyState_widget_not_support_slot_selected_title:"O widget selecionado não usa campos",slotEditor_emptyState_widget_not_support_slot_selected_description:"Selecione uma visualização para gerenciar as configurações de campo.",slotEditor_emptyState_multiple_visualizations_selected_title:"Vários widgets selecionados",slotEditor_emptyState_multiple_visualizations_selected_description:"Selecione uma visualização para gerenciar as configurações de campo.",slotEditor_emptyState_visualization_has_error_title:"Não é possível exibir a visualização",slotEditor_slotItem_tooltip:"Origem:",slotEditor_emptyState_vis_not_created_title:"Nenhuma visualização criada",slotEditor_emptyState_vis_not_created_description:"Crie uma visualização para gerenciar as configurações de campo.",slotEditor:"Campos",slotEditorCoachMarkTitle:"Campos de acesso",slotEditorCoachMarkContents:"Inclua colunas nos campos para criar e modificar visualizações.",toolbarDeleteFilterActionText:"Remover filtro",toolbarActionFilter:"Filtrar",filterAutobinActionText:"Filtro de categorias",coachMarkTitleSpiralTarget:"Editar escopo",coachMarkContentSpiralTarget:"Este é o local onde é possível acessar e modificar a seleção do driver para seu destino.",overlayDropZonePlaceHolderText:"Arraste os dados para cá"},__ro:{localFilters:"Filtre locale",slotEditorMsg1:"Câmp necesar",slotEditorMsg2:"Trageţi şi plasaţi datele în câmpurile de deasupra, pentru a construi şi filtra vizualizarea.",missingColumn:"Lipsă: %{columnLabel}",placeholderDropzone:"Faceţi clic sau trageţi date aici ",slotEditor_emptyState_no_visualization_selected_title:"Nicio vizualizare selectată",slotEditor_emptyState_no_visualization_selected_description:"Selectaţi o vizualizare pentru gestionarea setărilor de câmp.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Widget-ul selectat nu utilizează câmpuri.",slotEditor_emptyState_widget_not_support_slot_selected_description:"Selectaţi o vizualizare pentru gestionarea setărilor de câmp.",slotEditor_emptyState_multiple_visualizations_selected_title:"Sunt selectate mai multe widget-uri",slotEditor_emptyState_multiple_visualizations_selected_description:"Selectaţi o vizualizare pentru gestionarea setărilor de câmp.",slotEditor_emptyState_visualization_has_error_title:"Vizualizarea nu poate fi afişată.",slotEditor_slotItem_tooltip:"Sursă:",slotEditor_emptyState_vis_not_created_title:"Nu a fost creată nicio vizualizare",slotEditor_emptyState_vis_not_created_description:"Creaţi o vizualizare pentru gestionarea setărilor de câmp.",slotEditor:"Câmpuri",slotEditorCoachMarkTitle:"Accesare câmpuri",slotEditorCoachMarkContents:"Adăugaţi coloane la câmpuri pentru a construi şi modifica vizualizările.",toolbarDeleteFilterActionText:"Înlăturare filtru",toolbarActionFilter:"Filtru",filterAutobinActionText:"Filtrare bin-uri",coachMarkTitleSpiralTarget:"Editare domeniu",coachMarkContentSpiralTarget:"Aici puteţi accesa şi modifica selecţia de driver-e pentru ţinta dumneavoastră.",overlayDropZonePlaceHolderText:"Trageţi date aici"},__ru:{localFilters:"Локальные фильтры",slotEditorMsg1:"Обязательное поле",slotEditorMsg2:"Перетащите данные на находящиеся выше поля, чтобы построить визуализацию и применить к ней фильтр.",missingColumn:"Отсутствует: %{columnLabel}",placeholderDropzone:"Щелкните здесь или перетащите сюда данные",slotEditor_emptyState_no_visualization_selected_title:"Визуализация не отобрана",slotEditor_emptyState_no_visualization_selected_description:"Выберите визуализацию для управления настройками полей.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Выбранный виджет не использует поля",slotEditor_emptyState_widget_not_support_slot_selected_description:"Выберите визуализацию для управления настройками полей.",slotEditor_emptyState_multiple_visualizations_selected_title:"Выбрано несколько виджетов",slotEditor_emptyState_multiple_visualizations_selected_description:"Выберите визуализацию для управления настройками полей.",slotEditor_emptyState_visualization_has_error_title:"Вывести визуализацию невозможно",slotEditor_slotItem_tooltip:"Источник:",slotEditor_emptyState_vis_not_created_title:"Визуализация не создана",slotEditor_emptyState_vis_not_created_description:"Создайте визуализацию для управления настройками полей.",slotEditor:"Поля",slotEditorCoachMarkTitle:"Доступ к полям",slotEditorCoachMarkContents:"Добавьте в поля столбцы для построения и изменения визуализаций.",toolbarDeleteFilterActionText:"Удалить фильтр",toolbarActionFilter:"Фильтр",filterAutobinActionText:"Применить фильтр к контейнерам",coachMarkTitleSpiralTarget:"Изменить область",coachMarkContentSpiralTarget:"Здесь можно получить доступ и изменить выбор драйвера для целевого объекта.",overlayDropZonePlaceHolderText:"Перетащите сюда данные"},__sl:{localFilters:"Lokalni filtri",slotEditorMsg1:"Obvezno polje",slotEditorMsg2:"Povlecite in spustite podatke v polja zgoraj, da zgradite in filtrirate vizualizacijo.",missingColumn:"Manjkajoče: %{columnLabel}",placeholderDropzone:"Kliknite ali povlecite podatke sem",slotEditor_emptyState_no_visualization_selected_title:"Izbrana ni nobena vizualizacija",slotEditor_emptyState_no_visualization_selected_description:"Izberite vizualizacijo za upravljanje nastavitev polja.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Izbrani gradnik ne uporablja polj",slotEditor_emptyState_widget_not_support_slot_selected_description:"Izberite vizualizacijo za upravljanje nastavitev polja.",slotEditor_emptyState_multiple_visualizations_selected_title:"Izbranih je več gradnikov",slotEditor_emptyState_multiple_visualizations_selected_description:"Izberite vizualizacijo za upravljanje nastavitev polja.",slotEditor_emptyState_visualization_has_error_title:"Vizualizacije ni mogoče prikazati",slotEditor_slotItem_tooltip:"Izvor:",slotEditor_emptyState_vis_not_created_title:"Ustvarjena ni bila nobena vizualizacija",slotEditor_emptyState_vis_not_created_description:"Ustvarite vizualizacijo za upravljanje nastavitev polja.",slotEditor:"Polja",slotEditorCoachMarkTitle:"Polja za dostop",slotEditorCoachMarkContents:"V polja dodajte stolpce, da boste lahko gradili in spreminjali vizualizacije.",toolbarDeleteFilterActionText:"Odstrani filter",toolbarActionFilter:"Filter",filterAutobinActionText:"Predali filtra",coachMarkTitleSpiralTarget:"Urejanje območja",coachMarkContentSpiralTarget:"Tukaj lahko dostopate do izbora gonilnikov za svoj cilj in jih spreminjate.",overlayDropZonePlaceHolderText:"Povlecite podatke sem"},__sv:{localFilters:"Lokala filter",slotEditorMsg1:"Obligatoriskt fält",slotEditorMsg2:"Dra data till fälten ovan för att skapa och filtrera visualiseringen.",missingColumn:"%{columnLabel} saknas",placeholderDropzone:"Klicka eller dra data hit",slotEditor_emptyState_no_visualization_selected_title:"Ingen visualisering vald",slotEditor_emptyState_no_visualization_selected_description:"Välj en visualisering för att hantera fältinställningarna.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Den valda widgeten använder inte fält",slotEditor_emptyState_widget_not_support_slot_selected_description:"Välj en visualisering för att hantera fältinställningarna.",slotEditor_emptyState_multiple_visualizations_selected_title:"Flera widgetar har valts",slotEditor_emptyState_multiple_visualizations_selected_description:"Välj en visualisering för att hantera fältinställningarna.",slotEditor_emptyState_visualization_has_error_title:"Det går inte att visa visualiseringen",slotEditor_slotItem_tooltip:"Källa:",slotEditor_emptyState_vis_not_created_title:"Inga visualiseringar har skapats",slotEditor_emptyState_vis_not_created_description:"Skapa en visualisering för att hantera fältinställningarna.",slotEditor:"Fält",slotEditorCoachMarkTitle:"Åtkomst till fält",slotEditorCoachMarkContents:"Lägg till kolumner i fälten för att skapa och ändra visualiseringar.",toolbarDeleteFilterActionText:"Ta bort filter",toolbarActionFilter:"Filtrera",filterAutobinActionText:"Filtrera bin",coachMarkTitleSpiralTarget:"Ändra omfattning",coachMarkContentSpiralTarget:"Här kan du komma åt och ändra valet av styrfunktioner för målet.",overlayDropZonePlaceHolderText:"Dra data hit"},__th:{localFilters:"ตัวกรองโลคัล",slotEditorMsg1:"ฟิลด์ที่จำเป็น",slotEditorMsg2:"ลากและปล่อยข้อมูลลงในฟิลด์ด้านบนเพื่อบิลด์และกรองวิชวลไลเซชัน",missingColumn:"ไม่มี: %{columnLabel}",placeholderDropzone:"คลิกหรือลากข้อมูลที่นี่",slotEditor_emptyState_no_visualization_selected_title:"ไม่ได้เลือกวิชวลไลเซชัน",slotEditor_emptyState_no_visualization_selected_description:"เลือกวิชวลไลเซชันที่จะจัดการการตั้งค่าฟิลด์",slotEditor_emptyState_widget_not_support_slot_selected_title:"วิดเจ็ตที่เลือกไม่ได้ใช้ฟิลด์",slotEditor_emptyState_widget_not_support_slot_selected_description:"เลือกวิชวลไลเซชันที่จะจัดการการตั้งค่าฟิลด์",slotEditor_emptyState_multiple_visualizations_selected_title:"เลือกหลายวิดเจ็ต",slotEditor_emptyState_multiple_visualizations_selected_description:"เลือกวิชวลไลเซชันที่จะจัดการการตั้งค่าฟิลด์",slotEditor_emptyState_visualization_has_error_title:"วิชวลไลเซชันไม่สามารถแสดงผลได้",slotEditor_slotItem_tooltip:"ซอร์ส:",slotEditor_emptyState_vis_not_created_title:"ไม่มีการสร้างวิชวลไลเซชัน",slotEditor_emptyState_vis_not_created_description:"สร้างวิชวลไลเซชันที่จะจัดการการตั้งค่าฟิลด์",slotEditor:"ฟิลด์",slotEditorCoachMarkTitle:"เข้าถึงฟิลด์",slotEditorCoachMarkContents:"เพิ่มคอลัมน์ลงในฟิลด์เพื่อบิลด์และปรับเปลี่ยนวิชวลไลเซชัน",toolbarDeleteFilterActionText:"ลบตัวกรอง",toolbarActionFilter:"ตัวกรอง",filterAutobinActionText:"ถังกรอง",coachMarkTitleSpiralTarget:"แก้ไขขอบเขต",coachMarkContentSpiralTarget:"นี่เป็นตำแหน่งที่คุณสามารถเข้าถึงและปรับเปลี่ยนการเลือกไดรเวอร์สำหรับเป้าหมายของคุณ",overlayDropZonePlaceHolderText:"ลากข้อมูลที่นี่"},__tr:{localFilters:"Yerel süzgeçler",slotEditorMsg1:"Zorunlu alan",slotEditorMsg2:"Görselleştirmeyi oluşturup süzgeçten geçirmek için verileri yukarıdaki alanlara sürükleyip bırakın.",missingColumn:"Eksik: %{columnLabel}",placeholderDropzone:"Tıklatın veya verileri buraya sürükleyin",slotEditor_emptyState_no_visualization_selected_title:"Bir görselleştirme seçilmedi",slotEditor_emptyState_no_visualization_selected_description:"Alan ayarlarını yönetmek için bir görselleştirme seçin.",slotEditor_emptyState_widget_not_support_slot_selected_title:"Seçilen pencere öğesi alanları kullanmıyor",slotEditor_emptyState_widget_not_support_slot_selected_description:"Alan ayarlarını yönetmek için bir görselleştirme seçin.",slotEditor_emptyState_multiple_visualizations_selected_title:"Birden çok pencere öğesi seçildi",slotEditor_emptyState_multiple_visualizations_selected_description:"Alan ayarlarını yönetmek için bir görselleştirme seçin.",slotEditor_emptyState_visualization_has_error_title:"Görselleştirme görüntülenemiyor",slotEditor_slotItem_tooltip:"Kaynak:",slotEditor_emptyState_vis_not_created_title:"Bir görselleştirme oluşturulmadı",slotEditor_emptyState_vis_not_created_description:"Alan ayarlarını yönetmek için bir görselleştirme oluşturun.",slotEditor:"Alanlar",slotEditorCoachMarkTitle:"Erişim alanları",slotEditorCoachMarkContents:"Görselleştirmeleri oluşturmak ve değiştirmek için alanlara sütun ekleyin.",toolbarDeleteFilterActionText:"Süzgeci kaldır",toolbarActionFilter:"Süzgeç",filterAutobinActionText:"Süzgeç bölmeleri",coachMarkTitleSpiralTarget:"Kapsamı düzenle",coachMarkContentSpiralTarget:"Burası, hedefiniz için sürücü seçimine erişebileceğiniz ve sürücü seçimini değiştirebileceğiniz yerdir.",overlayDropZonePlaceHolderText:"Verileri buraya sürükleyin"},__zh:{localFilters:"本地过滤器",slotEditorMsg1:"必填字段",slotEditorMsg2:"将数据拖放到字段上方可构建并过滤可视化。",missingColumn:"缺少:%{columnLabel}",placeholderDropzone:"单击数据或将数据拖到此处",slotEditor_emptyState_no_visualization_selected_title:"未选择任何可视化",slotEditor_emptyState_no_visualization_selected_description:"选择可视化以管理字段设置。",slotEditor_emptyState_widget_not_support_slot_selected_title:"所选窗口小部件不使用字段",slotEditor_emptyState_widget_not_support_slot_selected_description:"选择可视化以管理字段设置。",slotEditor_emptyState_multiple_visualizations_selected_title:"已选择多个窗口小部件",slotEditor_emptyState_multiple_visualizations_selected_description:"选择可视化以管理字段设置。",slotEditor_emptyState_visualization_has_error_title:"无法显示可视化",slotEditor_slotItem_tooltip:"源:",slotEditor_emptyState_vis_not_created_title:"未创建任何可视化",slotEditor_emptyState_vis_not_created_description:"创建可视化以管理字段设置。",slotEditor:"字段",slotEditorCoachMarkTitle:"访问字段",slotEditorCoachMarkContents:"向字段添加列以构建并修改可视化。",toolbarDeleteFilterActionText:"除去过滤器",toolbarActionFilter:"过滤器",filterAutobinActionText:"过滤分箱",coachMarkTitleSpiralTarget:"编辑作用域",coachMarkContentSpiralTarget:"您可以在此访问和修改目标的动因选择。",overlayDropZonePlaceHolderText:"将数据拖到此处"},"__zh-cn":{localFilters:"本地过滤器",slotEditorMsg1:"必填字段",slotEditorMsg2:"将数据拖放到字段上方可构建并过滤可视化。",missingColumn:"缺少:%{columnLabel}",placeholderDropzone:"单击数据或将数据拖到此处",slotEditor_emptyState_no_visualization_selected_title:"未选择任何可视化",slotEditor_emptyState_no_visualization_selected_description:"选择可视化以管理字段设置。",slotEditor_emptyState_widget_not_support_slot_selected_title:"所选窗口小部件不使用字段",slotEditor_emptyState_widget_not_support_slot_selected_description:"选择可视化以管理字段设置。",slotEditor_emptyState_multiple_visualizations_selected_title:"已选择多个窗口小部件",slotEditor_emptyState_multiple_visualizations_selected_description:"选择可视化以管理字段设置。",slotEditor_emptyState_visualization_has_error_title:"无法显示可视化",slotEditor_slotItem_tooltip:"源:",slotEditor_emptyState_vis_not_created_title:"未创建任何可视化",slotEditor_emptyState_vis_not_created_description:"创建可视化以管理字段设置。",slotEditor:"字段",slotEditorCoachMarkTitle:"访问字段",slotEditorCoachMarkContents:"向字段添加列以构建并修改可视化。",toolbarDeleteFilterActionText:"除去过滤器",toolbarActionFilter:"过滤器",filterAutobinActionText:"过滤分箱",coachMarkTitleSpiralTarget:"编辑作用域",coachMarkContentSpiralTarget:"您可以在此访问和修改目标的动因选择。",overlayDropZonePlaceHolderText:"将数据拖到此处"},"__zh-tw":{localFilters:"本端過濾器",slotEditorMsg1:"必要欄位",slotEditorMsg2:"將資料拖放至上方的欄位來建置及過濾視覺化。",missingColumn:"遺漏:%{columnLabel}",placeholderDropzone:"在這裡按一下或拖曳資料",slotEditor_emptyState_no_visualization_selected_title:"未選取任何視覺化",slotEditor_emptyState_no_visualization_selected_description:"選取視覺化以管理欄位設定。",slotEditor_emptyState_widget_not_support_slot_selected_title:"選取的小組件沒有使用欄位。",slotEditor_emptyState_widget_not_support_slot_selected_description:"選取視覺化以管理欄位設定。",slotEditor_emptyState_multiple_visualizations_selected_title:"已選取多個小組件",slotEditor_emptyState_multiple_visualizations_selected_description:"選取視覺化以管理欄位設定。",slotEditor_emptyState_visualization_has_error_title:"無法顯示視覺化。",slotEditor_slotItem_tooltip:"來源:",slotEditor_emptyState_vis_not_created_title:"未建立任何視覺化",slotEditor_emptyState_vis_not_created_description:"建立視覺化以管理欄位設定。",slotEditor:"欄位",slotEditorCoachMarkTitle:"存取欄位",slotEditorCoachMarkContents:"將直條圖新增至欄位以建置和修改視覺化。",toolbarDeleteFilterActionText:"移除過濾器",toolbarActionFilter:"過濾",filterAutobinActionText:"過濾組",coachMarkTitleSpiralTarget:"編輯範圍",coachMarkContentSpiralTarget:"您可以在此處存取及修改目標動因選項。",overlayDropZonePlaceHolderText:"將資料拖曳至此"},init:function(t){t||(t=window._i18n&&window._i18n.locale?window._i18n.locale:document.documentElement.lang?document.documentElement.lang:"root");var e=this["__"+t]||this.__root;if(e)for(var o in e)this[o]=e[o];for(var o in this.__root)void 0===this[o]&&(this[o]=this.__root[o])}};o.init(),t.exports=o},function(t,e){t.exports=a},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),r=o(0),a=i(r),s=i(o(1));o(12);var l=i(o(13)),u=i(o(29)),c=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o._showFlyout=function(){o.flyoutTooltipTimer||(o.flyoutTooltipTimer=setTimeout((function(){o._isDragging()||o.props.filterItemActionHandler.isFilterActionMenuOpened()||o.setState({isFlyoutShown:!o.state.isFlyoutShown})}),1e3))},o._hideFlyout=function(){o.setState({isFlyoutShown:!1}),o.flyoutTooltipTimer&&(clearTimeout(o.flyoutTooltipTimer),o.flyoutTooltipTimer=null)},o._isDragging=function(){return!(!o._dndManager||!o._dndManager.dragObject)},o.state={isFlyoutShown:!1},o.sourceId=o.props.filterItemActionHandler.getDatasourceId(),o.flyoutTooltipTimer=null,o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),n(e,[{key:"componentDidMount",value:function(){this._initializeDndSupport()}},{key:"render",value:function(){var t=this,e=this.props,o=e.filterString,i=e.numberOfFilterItems;return a.default.createElement(a.default.Fragment,null,this._renderFlyout(),a.default.createElement(u.default,{className:"slotEditorItem",fieldName:this.props.itemName,onKeyUp:function(e){return t.props.a11Y.handleKeyUpForFilterItem(e,t.props.filterItemActionHandler,{metadataColumn:t.props.metadataColumn,filterId:t.props.itemFilterId})},onMouseEnterCallBack:this._showFlyout.bind(this),onMouseLeaveCallBack:this._hideFlyout.bind(this),onOpenActionMenu:this._filterItemActionMenu.bind(this),filterInfo:{filterString:o,numberOfFilterItems:i},draggable:!1,ref:function(e){e&&e.getDOMNode&&(t.domNode=e.getDOMNode())}}))}},{key:"_initializeDndSupport",value:function(){var t=this;this.props.dndManager.then((function(e){t._dndManager=e}))}},{key:"_filterItemActionMenu",value:function(){this.props.filterItemActionHandler.openFilterItemActionMenu({columnId:this.props.itemColumnId,filterId:this.props.itemFilterId},this.domNode,{attachPoint:".actionmenu",placement:"bottom auto"})}},{key:"_renderFlyout",value:function(){if(this.state.isFlyoutShown&&this.domNode)return a.default.createElement(l.default,{domNode:this.domNode,dashboardApi:this.props.dashboardApi,columnId:this.props.itemColumnId,sourceId:this.sourceId,onClose:this._hideFlyout})}}]),e}(r.Component);c.propTypes={itemName:s.default.string,indexInSlot:s.default.number,filterString:s.default.string,numberOfFilterItems:s.default.any,itemColumnId:s.default.string,metadataColumn:s.default.object,itemFilterId:s.default.string,filterItemActionHandler:s.default.object.isRequired,a11Y:s.default.object.isRequired,dndManager:s.default.object.isRequired,dashboardApi:s.default.object.isRequired},e.default=c},function(t,e,o){(t.exports=o(4)(!1)).push([t.i,"/**\n* IBM Confidential\n* OCO Source Materials\n* IBM Business Platform: Dashboard\n* (C) Copyright IBM Corp. 2018, 2020\n* The source code for this program is not published or otherwise divested of its trade secrets,\n* irrespective of what has been deposited with the U.S. Copyright Office\n**/\n\n.slotEditor:not(.is-old) {\n overflow-y: auto;\n height: 100%;\n}\n\n.slotEditor:not(.is-old) .slotEditor__slots .ba-common-accordion:first-child {\n border-top: 1px solid;\n border-top-color: #f4f4f4;\n border-top-color: hsla(var(--ui-02-h, 0), var(--ui-02-s, 0%), var(--ui-02-l, 95.68627%), 1);\n margin-top: 40px;\n}\n\n.slotEditor:not(.is-old) .slotEditor__slots .ba-common-accordion {\n border-top: none;\n}\n\n.slotEditor:not(.is-old) .slotEditor__slots .ba-common-accordionItem__button {\n width: auto;\n}\n\n.slotEditor:not(.is-old) .slotEditor__slots__slot {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n margin-top: 16px;\n margin-right: 16px;\n margin-left: 16px;\n}\n\n.slotEditor:not(.is-old) .slotEditor__slots__slot:first-child {\n margin-top: 24px;\n}\n\n.slotEditor:not(.is-old) .slotEditor__slots__slot.__multilayer {\n margin-right: 0;\n margin-left: 0;\n}\n\n.slotEditor:not(.is-old) .slotEditor__slots__slot.__multilayer:first-child {\n margin-top: 0;\n}\n\n.slotEditor:not(.is-old) .slotEditor__slots__slot__dropzone {\n padding: 0 16px;\n}\n\n.slotEditor:not(.is-old) .slotEditor__slots__slot__dropzone {\n padding: 0 16px;\n}\n\n.slotEditor:not(.is-old) .slotEditor__slots__slot__heading {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-flow: column;\n flex-flow: column;\n}\n\n.slotEditor:not(.is-old) .slotEditor__slots__slot__heading__container {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n font-size: 0.875rem;\n color: #161616;\n color: hsla(var(--text-01-h, 0), var(--text-01-s, 0%), var(--text-01-l, 8.62745%), 1);\n}\n\n.slotEditor:not(.is-old) .slotEditor__slots__slot__heading__indent {\n width: 16px;\n}\n\n.slotEditor:not(.is-old) .slotEditor__slots__slot__heading__icon {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n margin-right: 8px;\n}\n\n.slotEditor:not(.is-old) .slotEditor__slots__slot__heading__icon svg {\n fill: #161616;\n fill: hsla(var(--icon-01-h, 0), var(--icon-01-s, 0%), var(--icon-01-l, 8.62745%), 1);\n}\n\n.slotEditor:not(.is-old) .slotEditor__slots__slot__heading__required {\n -ms-flex: 1 0 auto;\n flex: 1 0 auto;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: justify;\n justify-content: space-between;\n -ms-flex-align: baseline;\n align-items: baseline;\n}\n\n.slotEditor:not(.is-old) .slotEditor__slots__slot__heading__required__caption {\n font-weight: 600;\n}\n\n.slotEditor:not(.is-old) .slotEditor__slots__slot__heading__required__caption__star {\n color: #da1e28;\n color: hsla(var(--support-01-h, 356.80851), var(--support-01-s, 75.80645%), var(--support-01-l, 48.62745%), 1);\n}\n\n.slotEditor:not(.is-old) .slotEditor__slots__slot__heading__required__text {\n font-size: 0.75rem;\n}\n\n.slotEditor:not(.is-old) .slotEditor__slots__slot > .coachMark {\n top: 30px;\n right: 80px;\n}\n\n.slotEditor:not(.is-old) .slotEditor__slots .bi-mui-moserObjectTree {\n max-height: 500px;\n}\n\n.slotEditor:not(.is-old) .slotEditor__localFilters {\n margin-right: 16px;\n margin-left: 16px;\n margin-top: 24px;\n}\n\n.slotEditor:not(.is-old) .slotEditor__localFilters.dndHover {\n background-color: rgba(15, 98, 254, 0.2);\n background-color: hsla(var(--interactive-01-h, 219.16318), var(--interactive-01-s, 99.17012%), var(--interactive-01-l, 52.7451%), 0.2);\n}\n\n.slotEditor:not(.is-old) .slotEditor__localFilters__heading__container {\n font-size: 0.875rem;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n padding-bottom: 8px;\n}\n\n.slotEditor:not(.is-old) .slotEditor__localFilters__heading__icon {\n padding-right: 8px;\n}\n\n.slotEditor:not(.is-old) .slotEditor__localFilters__item {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n margin-bottom: 8px;\n}\n\n.slotEditor:not(.is-old) .slotEditor__localFilters__item .bi-common-field-item {\n padding-left: 16px;\n}\n\n.slotEditor:not(.is-old) .slotEditor__localFilters__item .bi-common-field-item__nameLine__fieldName {\n margin-left: 0px;\n}\n\n.slotEditor:not(.is-old) .slotEditor__localFilters__item .bi-common-field-item__infoLine__values {\n margin-left: 0px;\n}\n\n.slotEditor:not(.is-old) .slotEditor__localFilters .bi-mui-moserObjectTree {\n max-height: 500px;\n}\n\n.slotEditor:not(.is-old) .slotEditor__footer__line {\n padding-top: 16px;\n font-size: 14px;\n display: -ms-flexbox;\n display: flex;\n color: #393939;\n color: hsla(var(--interactive-02-h, 0), var(--interactive-02-s, 0%), var(--interactive-02-l, 22.35294%), 1);\n}\n\n.slotEditor:not(.is-old) .slotEditor__footer__line__icon {\n margin-right: 8px;\n margin-left: 16px;\n color: #8d8d8d;\n color: hsla(var(--ui-04-h, 0), var(--ui-04-s, 0%), var(--ui-04-l, 55.29412%), 1);\n}\n\n.slotEditor:not(.is-old) .ba-common-baseInput > input {\n box-sizing: border-box;\n}\n\n.highcontrast .slotEditorItem:not(.is-old) {\n border: 1px solid;\n}\n\n.highcontrast .slotEditor:not(.is-old) .slotEditor__localFilters.dndHover {\n outline-width: 2px;\n outline-style: dotted;\n outline-color: white;\n outline-color: hsla(var(--inverse-focus-ui-h, 0), var(--inverse-focus-ui-s, 0%), var(--inverse-focus-ui-l, 100%), 1);\n}\n\n.slotEditorItem:not(.is-old) {\n cursor: pointer;\n}\n\n.slotEditorItem:not(.is-old).selected {\n border: 2px solid;\n border-color: #8d8d8d;\n border-color: hsla(var(--ui-04-h, 0), var(--ui-04-s, 0%), var(--ui-04-l, 55.29412%), 1);\n}\n\n.slotEditorItem:not(.is-old).dndHover {\n outline: #2d74da solid 2px;\n}\n\n.slotEditorItem:not(.is-old).dndHover .bi-common-field-item__nameLine__fieldName .ba-common-truncatedText__text {\n text-decoration: underline;\n color: #0f62fe;\n color: hsla(var(--interactive-01-h, 219.16318), var(--interactive-01-s, 99.17012%), var(--interactive-01-l, 52.7451%), 1);\n}\n\n.slotEditorItem:not(.is-old).action-menu-opened {\n pointer-events: none;\n}\n\n.slotEditorItem:not(.is-old).draggedNode:hover {\n background-color: #f4f4f4;\n background-color: hsla(var(--ui-02-h, 0), var(--ui-02-s, 0%), var(--ui-02-l, 95.68627%), 1);\n}\n\n.slotEditorItem:not(.is-old) > .coachMark {\n top: 10px;\n right: -10px;\n}\n\n.slotEditorItem:not(.is-old) .nodrop {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n}\n\n.slotEditorItem:not(.is-old) .nodrop.is-hidden {\n visibility: hidden;\n}\n\n.slotEditorItem:not(.is-old) .nodrop .svgIcon {\n height: 16px;\n width: 16px;\n}\n\n.slotEditorItem:not(.is-old).has-filters .nodrop {\n -ms-flex-item-align: end;\n align-self: flex-end;\n}\n\n.slotEditorItem__disambiguatingTooltip {\n min-width: 240px;\n text-align: left;\n padding-bottom: 5px;\n}\n\n.slotEditorItem__disambiguatingTooltipTitle {\n min-width: 240px;\n padding-left: 8px;\n padding-top: 5px;\n}\n\n",""])},function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var o=e.protocol+"//"+e.host,i=o+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(t,e){var n,r=e.trim().replace(/^"(.*)"$/,(function(t,e){return e})).replace(/^'(.*)'$/,(function(t,e){return e}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(r)?t:(n=0===r.indexOf("//")?r:0===r.indexOf("/")?o+r:i+r.replace(/^\.\//,""),"url("+JSON.stringify(n)+")")}))}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a,s,l=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(t[i]=o[i])}return t},u=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),c=o(0),d=i(c),p=i(o(7)),f=i(o(1));o(30);var h=o(2),g=i(o(32)),m=i(o(33)),_=(s=a=function(t){function e(){return n(this,e),r(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),u(e,[{key:"getDOMNode",value:function(){return this.domNode}},{key:"_renderFilterStringAndNumber",value:function(t){var e=t||{},o=e.filterString,i=e.numberOfFilterItems;return o?d.default.createElement("div",{className:"bi-common-field-item__infoLine"},d.default.createElement("div",{className:"bi-common-field-item__infoLine__values"},d.default.createElement(h.TruncatedText,{value:o})),i?d.default.createElement("div",{className:"bi-common-field-item__infoLine__badge"},i):null):null}},{key:"render",value:function(){var t=this,e=this.props,o=e.fieldName,i=e.className,n=e.draggable,r=e.showActionMenu,a=e.onOpenActionMenu,s=e.fieldGraphics,u=e.filterInfo,c=p.default.omit(this.props,"className","children","fieldName","draggable","showActionMenu","onOpenActionMenu","fieldGraphics","filterInfo"),f=!(!u||!u.filterString),_=(0,h.classnames)("bi-common-field-item",{"has-filters":f,"is-draggable":n});return d.default.createElement("div",l({className:i?_+" "+i:_,"aria-label":o,tabIndex:"0",ref:function(e){t.domNode=e}},c),d.default.createElement("div",{className:"bi-common-field-item__nameLine"},n&&d.default.createElement("div",{className:"bi-common-field-item__nameLine__draggable"},d.default.createElement(h.SVGIcon,{size:"small",iconId:m.default.id})),d.default.createElement("div",{className:"bi-common-field-item__nameLine__fieldName",onMouseEnter:this.props.onMouseEnterCallBack,onMouseLeave:this.props.onMouseLeaveCallBack},f?d.default.createElement("div",null,d.default.createElement(h.TruncatedText,{location:"middle",style:{fontWeight:"bold"},value:o})):d.default.createElement(h.TruncatedText,{location:"middle",style:{fontWeight:"normal"},value:o})),s&&d.default.createElement("div",{className:"bi-common-field-item__nameLine__icon"},d.default.createElement("span",{dangerouslySetInnerHTML:{__html:s}})),r&&d.default.createElement("div",{className:"bi-common-field-item__nameLine__actionMenu",tabIndex:0,onKeyPress:function(t){t.stopPropagation(),a(t)},onClick:function(t){t.stopPropagation(),a(t)}},d.default.createElement(h.SVGIcon,{size:"small",iconId:g.default.id}),d.default.createElement("div",{className:"actionmenu"}))),this._renderFilterStringAndNumber(u))}}]),e}(c.Component),a.propTypes={className:f.default.string,fieldName:f.default.string.isRequired,draggable:f.default.bool,showActionMenu:f.default.bool,onOpenActionMenu:f.default.func,fieldGraphics:f.default.node,filterInfo:f.default.object,onMouseEnterCallBack:f.default.func,onMouseLeaveCallBack:f.default.func},a.defaultProps={className:"",draggable:!0,showActionMenu:!0,onOpenActionMenu:function(){},fieldGraphics:null,filterInfo:null},s);e.default=_},function(t,e,o){var i=o(31);"string"==typeof i&&(i=[[t.i,i,""]]);var n={hmr:!0,transform:void 0};o(5)(i,n),i.locals&&(t.exports=i.locals)},function(t,e,o){(t.exports=o(4)(!1)).push([t.i,"/**\n * Licensed Materials - Property of IBM\n * IBM Cognos Products: Explore (C) Copyright IBM Corp. 2020\n * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.\n */\n\n.slotEditor .bi-common-field-item {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-flow: column;\n flex-flow: column;\n padding-left: 8px;\n -ms-flex-align: stretch;\n align-items: stretch;\n background-color: #f4f4f4;\n background-color: hsla(var(--ui-02-h, 0), var(--ui-02-s, 0%), var(--ui-02-l, 95.68627%), 1);\n}\n\n.slotEditor .bi-common-field-item.is-draggable {\n cursor: move;\n}\n\n.slotEditor .bi-common-field-item.is-draggable .bi-common-field-item__nameLine__fieldName {\n margin-left: 8px;\n}\n\n.slotEditor .bi-common-field-item:hover {\n background-color: #e5e5e5;\n background-color: hsla(var(--hover-ui-h, 0), var(--hover-ui-s, 0%), var(--hover-ui-l, 89.80392%), 1);\n}\n\n.slotEditor .bi-common-field-item.has-filters .bi-common-field-item__nameLine {\n height: 32px;\n}\n\n.slotEditor .bi-common-field-item.has-filters .bi-common-field-item__nameLine__draggable {\n -ms-flex-item-align: end;\n align-self: flex-end;\n}\n\n.slotEditor .bi-common-field-item__nameLine {\n height: 40px;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-flow: row;\n flex-flow: row;\n -ms-flex-align: center;\n align-items: center;\n font-size: 0.875rem;\n}\n\n.slotEditor .bi-common-field-item__nameLine__draggable {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n}\n\n.slotEditor .bi-common-field-item__nameLine__fieldName {\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n margin-right: 8px;\n margin-left: 24px;\n}\n\n.slotEditor .bi-common-field-item__nameLine__icon {\n margin-right: 8px;\n margin-left: 8px;\n width: 16px;\n height: 16px;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n}\n\n.slotEditor .bi-common-field-item__nameLine__actionMenu {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n cursor: pointer;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n padding: 8px;\n}\n\n.slotEditor .bi-common-field-item__infoLine {\n font-size: 0.75rem;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: justify;\n justify-content: space-between;\n height: 24px;\n margin-right: 6px;\n}\n\n.slotEditor .bi-common-field-item__infoLine__values {\n margin-left: 24px;\n margin-right: 8px;\n -ms-flex: 0 1 auto;\n flex: 0 1 auto;\n}\n\n.slotEditor .bi-common-field-item__infoLine__badge {\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n border-radius: 100%;\n width: 20px;\n height: 20px;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: center;\n justify-content: center;\n background-color: #525252;\n background-color: hsla(var(--icon-02-h, 0), var(--icon-02-s, 0%), var(--icon-02-l, 32.15686%), 1);\n color: white;\n color: hsla(var(--ui-01-h, 0), var(--ui-01-s, 0%), var(--ui-01-l, 100%), 1);\n}\n\n",""])},function(t,e,o){"use strict";(function(t){var i,n,r,a,s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};"undefined"!=typeof self&&self,a=function(t){return webpackJsonPBaGraphics([787],{"3865314c5959606874d4":function(e,o){e.exports=t},"7c2db376ce0d1f5bdc4b":function(t,e,o){Object.defineProperty(e,"__esModule",{value:!0});var i=o("3865314c5959606874d4"),n=(o.n(i),o("80e093a7dfdd5dade304"));e.default=n.a},"80e093a7dfdd5dade304":function(t,e,o){var i=o("9689a9c94ae38b47fa2c"),n=o.n(i),r=o("9ce58a7deea14f49ef01"),a=o.n(r),s=new n.a({id:"overflow-menu--vertical_16_v7",use:"overflow-menu--vertical_16_v7-usage",viewBox:"0 0 16 16",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="overflow-menu--vertical_16_v7"><circle cx="8" cy="3" r="1" /><circle cx="8" cy="8" r="1" /><circle cx="8" cy="13" r="1" /><path style="fill:none" d="M0 0h16v16H0z" /></symbol>'});a.a.add(s),e.a=s}},["7c2db376ce0d1f5bdc4b"])},"object"==s(e)&&"object"==s(t)?t.exports=a(o(8)):(n=[o(8)],void 0!==(r="function"==typeof(i=a)?i.apply(e,n):i)&&(t.exports=r))}).call(e,o(14)(t))},function(t,e,o){"use strict";(function(t){var i,n,r,a,s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};"undefined"!=typeof self&&self,a=function(t){return webpackJsonPBaGraphics([1314],{"3865314c5959606874d4":function(e,o){e.exports=t},b51c98ef9181e63d4df5:function(t,e,o){Object.defineProperty(e,"__esModule",{value:!0});var i=o("3865314c5959606874d4"),n=(o.n(i),o("ba424a47b2434622aaec"));e.default=n.a},ba424a47b2434622aaec:function(t,e,o){var i=o("9689a9c94ae38b47fa2c"),n=o.n(i),r=o("9ce58a7deea14f49ef01"),a=o.n(r),s=new n.a({id:"draggable_16_v7",use:"draggable_16_v7-usage",viewBox:"0 0 16 16",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="draggable_16_v7"><path d="M5 3h2v2H5zm4 0h2v2H9zM5 7h2v2H5zm4 0h2v2H9zm-4 4h2v2H5zm4 0h2v2H9z" /><path style="fill:none" d="M0 0h16v16H0z" /></symbol>'});a.a.add(s),e.a=s}},["b51c98ef9181e63d4df5"])},"object"==s(e)&&"object"==s(t)?t.exports=a(o(8)):(n=[o(8)],void 0!==(r="function"==typeof(i=a)?i.apply(e,n):i)&&(t.exports=r))}).call(e,o(14)(t))},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),n=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.filterEditorNode=t.filterEditorNode,o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"_setupDnD",value:function(){var t=this;this.dndManager.registerDropTarget({el:this.domNode,type:"slot.filter",info:function(e,o){return{dragInfo:{position:{x:o.clientX,y:o.clientY}},node:e,filterEditorNode:t.filterEditorNode,slotDataItemHandler:t.slotDataItemHandler,contentId:t.slotDataItemHandler.getContentId(),isVisOverlay:t.isVisOverlay,onDragEnter:t.activateDropTarget.bind(t),onDragLeave:t.deactivateDropTarget.bind(t)}}})}}]),e}(function(t){return t&&t.__esModule?t:{default:t}}(o(35)).default);e.default=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),n=function(t){return t&&t.__esModule?t:{default:t}}(o(3)),r=o(10),a=function(){function t(e){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this.domNode=e.domNode,this.className=e.className,this.slotDataItemHandler=e.slotDataItemHandler,this.addAfter=e.addAfter,this.dndManager=e.dndManager,this.onDragEnter=e.onDragEnter,this.onDragLeave=e.onDragLeave,this.isVisOverlay=e.isVisOverlay,this.timer=null,this.dndManager&&this._setupDnD()}return i(t,[{key:"_setupDnD",value:function(){var t=this,e=this.slotDataItemHandler&&this.slotDataItemHandler.onDrop&&this.slotDataItemHandler.onDrop.bind(this.slotDataItemHandler);this.dndManager.registerDropTarget({el:this.domNode,type:"slot.item",info:function(o,i){return{dragInfo:{position:{x:i.clientX,y:i.clientY}},node:o,onDragEnter:t.activateDropTarget.bind(t),onDragLeave:t.deactivateDropTarget.bind(t),onDrop:e,contentId:t.slotDataItemHandler.getContentId(),slot:t.slotDataItemHandler.getSlotAPI(),indexInSlot:t.slotDataItemHandler.indexInSlot,addAfter:t.addAfter,isVisOverlay:t.isVisOverlay}}})}},{key:"destroy",value:function(){this.dndManager.deregisterDropTarget(this.domNode)}},{key:"updateDropTarget",value:function(t){this.dndManager&&(this.slotDataItemHandler=t,this._setupDnD())}},{key:"activateDropTarget",value:function(){(0,n.default)(this.domNode).toggleClass(this.className,!0),this.onDragEnter&&this.onDragEnter()}},{key:"deactivateDropTarget",value:function(){(0,n.default)(this.domNode).toggleClass(this.className,!1),this.onDragLeave&&this.onDragLeave()}},{key:"onDragMove",value:function(t,e,o){var i=this,a=(0,n.default)(e).closest(".slotEditor").get(0);a&&(0,r.handleScroll)(o,a,(function(){return i.dndManager&&i.dndManager.reassessContainer(a)})),this.activateDropTarget()}},{key:"initializeDndSource",value:function(t,e,o,i){var r=this;(0,n.default)(this.domNode).on("mousedown",{},(function(n){return i&&i(),r._startDrag({dndManager:t,event:n,cbGetSlotDataItemHandler:e,iconsFeature:o}),!0})),(0,n.default)(this.domNode).on("touchstart",{},(function(n){return i&&i(),r._touchStart({dndManager:t,event:n,cbGetSlotDataItemHandler:e,iconsFeature:o}),!0})),(0,n.default)(this.domNode).on("touchend touchcancel",{},(function(){return r._touchEnd()}))}},{key:"_touchStart",value:function(t){this.timer=setTimeout(function(){this._touchStartDrag(t)}.bind(this),600)}},{key:"_touchEnd",value:function(){this.timer&&clearTimeout(this.timer),this.timer=null}},{key:"_touchStartDrag",value:function(t){this.timer&&this._startDrag(t)}},{key:"_startDrag",value:function(t){var e=(0,n.default)('<div style="position:absolute; z-index:10000;"/>'),o=(0,n.default)(this.domNode).clone().addClass("draggedNode"),i=this.domNode.getBoundingClientRect().width;if(o.css({width:i,cursor:"default"}),t.iconsFeature){var r=t.iconsFeature.getIcon("common-nodrop");if(r){var a=(0,n.default)('<div class="nodrop is-hidden">\n\t\t\t\t\t\t<svg class="svgIcon">\n\t\t\t\t\t\t\t<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#'+r.id+'">\n\t\t\t\t\t\t\t</use>\n\t\t\t\t\t\t</svg>\n\t\t\t\t\t</div>');o.find(".bi-common-field-item__nameLine__draggable").remove(),o.find(".bi-common-field-item__nameLine").prepend(a)}}e.append(o);var s=t.cbGetSlotDataItemHandler();t.dndManager.startDrag({event:t.event,type:"SLOT_ITEM",data:{source:{slot:s.getSlotAPI(),indexInSlot:s.indexInSlot}},callerCallbacks:{onMove:this._onMove.bind(this)},avatar:e,moveXThreshold:20,moveYThreshold:20})}},{key:"_onMove",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=e.dragObject;if(o){var i=o.avatar;if(i){var r=(0,n.default)(i),a=r.find(".nodrop");if(a.length){var s=e.dropTargetNode;if(s){var l=!(s.classList&&s.classList.contains("slotEditor"));a.toggleClass("is-hidden",l)}else a.toggleClass("is-hidden",!1)}}}}}]),t}();e.default=a},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),r=o(0),a=i(r),s=i(o(1)),l=i(o(6)),u=o(2),c=i(o(37)),d=o(9),p=i(o(3)),f=o(10);o(51);var h=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o._placeholderTypeInOn=function(){o.setState({isTypeInMode:!0})},o._placeholderTypeInOff=function(){o.setState({isTypeInMode:!1})},o._placeholderDropzoneOn=function(){o.props.slotPlaceholderStateModel.setActivePlaceholderExists(!0),o.setState({showDropzone:!0})},o._placeholderDropzoneOff=function(){o.props.slotPlaceholderStateModel.setActivePlaceholderExists(!1),o.setState({showDropzone:!1})},o.state={isTypeInMode:!1,showDropzone:!1},o.placeholderRef=a.default.createRef(),o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),n(e,[{key:"componentDidMount",value:function(){var t=this,e={onDragEnter:this._placeholderDropzoneOn.bind(this),onDragLeave:this._placeholderDropzoneOff.bind(this),getDndManager:function(e){t._dndManager=e}};this.props.initializeDnd(this.placeholderRef.current,e)}},{key:"componentDidUpdate",value:function(t,e){var o=this;if(this.state.showDropzone!==e.showDropzone){var i=(0,p.default)(this.placeholderRef.current).closest(".slotEditor__slots__slot").get(0);i&&this._dndManager&&this._dndManager.dragObject&&this._dndManager.reassessContainer(i)}if(t.slotDataItemHandler!==this.props.slotDataItemHandler){var n={onDragEnter:this._placeholderDropzoneOn.bind(this),onDragLeave:this._placeholderDropzoneOff.bind(this),getDndManager:function(t){o._dndManager=t}};this.props.initializeDnd(this.placeholderRef.current,n)}}},{key:"componentWillUnmount",value:function(){this._dndManager&&this._dndManager.deregisterDropTarget(this.placeholderRef.current)}},{key:"render",value:function(){return a.default.createElement("div",{className:"slotPlaceholder",ref:this.placeholderRef},a.default.createElement("div",{className:"slotPlaceholder__hoverIndicator"}),this._renderItem())}},{key:"shouldRenderPlaceholder",value:function(){var t=this.props,e=t.slotPlaceholderStateModel,o=t.indexInSlot,i=t.numberItemsInSlot,n=t.canAcceptMoreItems;return!e||!e.getActivePlaceholderExists()&&n?i===o+1:this.state.showDropzone}},{key:"_renderItem",value:function(){var t=this;if(this.shouldRenderPlaceholder())return this.sourceId=this.props.slotDataItemHandler.getDatasourceId()||(0,f.getDataSourceIdTypeIn)(this.props.dashboardApi),a.default.createElement("div",{className:"slotPlaceholder__itemPlaceholder",tabIndex:"0",onClick:this._placeholderTypeInOn,onKeyDown:function(e){return t.props.a11Y.handleOpenTypeInDropdown(e,t._placeholderTypeInOn.bind(t))}},this.state.isTypeInMode&&this.sourceId?this._renderFieldDropdown():a.default.createElement(u.Label,{label:l.default.get("placeholderDropzone"),className:"slotPlaceholder__itemPlaceholder__actionLabel"}))}},{key:"_renderFieldDropdown",value:function(){return a.default.createElement(c.default,{a11Y:this.props.a11Y,open:this.state.isTypeInMode,dashboardApi:this.props.dashboardApi,getDropdownMaxHeight:this.getDropdownMaxHeight,onBlur:this._placeholderTypeInOff,slotDataItemHandler:this.props.slotDataItemHandler,sourceId:this.sourceId,parentNode:this.props.parentNode,replaceSlotItem:!1})}},{key:"getDropdownMaxHeight",value:function(){return 500}}]),e}(r.Component);h.propTypes={a11Y:s.default.object.isRequired,indexInSlot:s.default.number,numberItemsInSlot:s.default.number,canAcceptMoreItems:s.default.bool,slotDataItemHandler:s.default.object.isRequired,dashboardApi:s.default.object.isRequired,initializeDnd:s.default.func.isRequired,parentNode:s.default.object,slotPlaceholderStateModel:s.default.object},h.defaultProps={indexInSlot:0,numberItemsInSlot:1,slotPlaceholderStateModel:void 0,canAcceptMoreItems:!0,parentNode:{}},e.default=(0,d.observer)(h)},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n,r=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),a=o(0),s=i(a),l=o(2),u=o(9),c=i(o(1)),d=i(o(3)),p=i(o(38));o(49);var f=(0,u.observer)(n=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.scrollToDropdown=function(){if(o.dropdownRef.current){var t=o.dropdownRef.current.getBoundingClientRect().bottom-window.innerHeight;t>300&&(o.dropdownRef.current.closest(".slotEditor").scrollTop=t)}},o.onChange=function(t){o.setState({userTextInput:t})},o.handleEscapeDropdown=function(t){"Escape"===t.key&&o.props.onBlur()},o.handleKeyDown=function(t){if("ArrowDown"===t.key){var e=o.dropdownRef.current,i=(0,d.default)(e).find("div.ba-common-list")[0];i&&(t.preventDefault(),i.focus())}else"Enter"===t.key&&""===o.state.userTextInput&&(t.preventDefault(),o.props.replaceSlotItem?o.props.a11Y.deleteSlotItem(o.props.slotDataItemHandler):o.props.onBlur())},o.onBlur=function(){o.blurTimer=setTimeout(o.props.onBlur,350)},o.onFocus=function(){o.blurTimer&&(clearTimeout(o.blurTimer),o.blurTimer=null)},o.state={userTextInput:o.props.textValue},o.dropdownRef=s.default.createRef(),o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"render",value:function(){var t={"max-height":this.props.getDropdownMaxHeight()>0?this.props.getDropdownMaxHeight()+"px":"none"},e=s.default.createElement("div",{className:"ba-common-dropdown dropdown",ref:this.dropdownRef,style:t},s.default.createElement(l.Collapse,{isOpened:this.props.open,autoUnmount:!0,hasNestedCollapse:!0,forceInitialAnimation:!0,onRest:this.scrollToDropdown},this._renderMetadataTree()));return s.default.createElement("div",{className:"dropdownWrapper",onBlur:this.onBlur,onFocus:this.onFocus,onKeyDown:this.handleEscapeDropdown},this._renderTextInput(),e)}},{key:"_renderTextInput",value:function(){return s.default.createElement(l.TextInput,{className:"itemInput",noBottomBorder:!0,value:this.state.userTextInput,autoFocus:!0,onChange:(0,p.default)(this.onChange.bind(this),250),onKeyDown:(0,p.default)(this.handleKeyDown.bind(this),250),style:{width:"100%",height:40}})}},{key:"performSelection",value:function(t){this.props.slotDataItemHandler.insertItemFromTypeInSlot(t,this.props.sourceId,{replaceSlotItem:this.props.replaceSlotItem,parentNode:this.props.parentNode}),this.props.onItemSelected(),this.props.onBlur()}},{key:"_renderMetadataTree",value:function(){var t=this.props.slotDataItemHandler.getPickTreeContext&&this.props.slotDataItemHandler.getPickTreeContext(this.props.replaceSlotItem);return this.props.dashboardApi.getFeature("DataSources.UI").getPickTree(this.props.sourceId,this.state.userTextInput,this.performSelection.bind(this),null,t)}}]),e}(a.Component))||n;f.propTypes={a11Y:c.default.object,open:c.default.bool.isRequired,textValue:c.default.string,dashboardApi:c.default.object.isRequired,getDropdownMaxHeight:c.default.func.isRequired,sourceId:c.default.string.isRequired,onBlur:c.default.func.isRequired,replaceSlotItem:c.default.bool.isRequired,parentNode:c.default.object,slotDataItemHandler:c.default.object.isRequired,onItemSelected:c.default.func},f.defaultProps={parentNode:{},textValue:"",a11Y:void 0,onItemSelected:function(){}},e.default=f},function(t,e,o){var i=o(15),n=o(39),r=o(41),a="Expected a function",s=Math.max,l=Math.min;t.exports=function(t,e,o){function u(e){var o=g,i=m;return g=m=void 0,I=e,y=t.apply(i,o)}function c(t){return I=t,v=setTimeout(p,e),S?u(t):y}function d(t){var o=t-b;return void 0===b||o>=e||o<0||C&&t-I>=_}function p(){var t=n();if(d(t))return f(t);v=setTimeout(p,function(t){var o=e-(t-b);return C?l(o,_-(t-I)):o}(t))}function f(t){return v=void 0,E&&g?u(t):(g=m=void 0,y)}function h(){var t=n(),o=d(t);if(g=arguments,m=this,b=t,o){if(void 0===v)return c(b);if(C)return clearTimeout(v),v=setTimeout(p,e),u(b)}return void 0===v&&(v=setTimeout(p,e)),y}var g,m,_,y,v,b,I=0,S=!1,C=!1,E=!0;if("function"!=typeof t)throw new TypeError(a);return e=r(e)||0,i(o)&&(S=!!o.leading,_=(C="maxWait"in o)?s(r(o.maxWait)||0,e):_,E="trailing"in o?!!o.trailing:E),h.cancel=function(){void 0!==v&&clearTimeout(v),I=0,g=b=m=v=void 0},h.flush=function(){return void 0===v?y:f(n())},h}},function(t,e,o){var i=o(16);t.exports=function(){return i.Date.now()}},function(t,e,o){(function(e){var o="object"==typeof e&&e&&e.Object===Object&&e;t.exports=o}).call(e,o(11))},function(t,e,o){var i=o(42),n=o(15),r=o(44),a=NaN,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(r(t))return a;if(n(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=n(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=i(t);var o=l.test(t);return o||u.test(t)?c(t.slice(2),o?2:8):s.test(t)?a:+t}},function(t,e,o){var i=o(43),n=/^\s+/;t.exports=function(t){return t?t.slice(0,i(t)+1).replace(n,""):t}},function(t,e){var o=/\s/;t.exports=function(t){for(var e=t.length;e--&&o.test(t.charAt(e)););return e}},function(t,e,o){var i=o(45),n=o(48),r="[object Symbol]";t.exports=function(t){return"symbol"==typeof t||n(t)&&i(t)==r}},function(t,e,o){var i=o(17),n=o(46),r=o(47),a="[object Null]",s="[object Undefined]",l=i?i.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?s:a:l&&l in Object(t)?n(t):r(t)}},function(t,e,o){var i=o(17),n=Object.prototype,r=n.hasOwnProperty,a=n.toString,s=i?i.toStringTag:void 0;t.exports=function(t){var e=r.call(t,s),o=t[s];try{t[s]=void 0;var i=!0}catch(t){}var n=a.call(t);return i&&(e?t[s]=o:delete t[s]),n}},function(t,e){var o=Object.prototype.toString;t.exports=function(t){return o.call(t)}},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,o){var i=o(50);"string"==typeof i&&(i=[[t.i,i,""]]);var n={hmr:!0,transform:void 0};o(5)(i,n),i.locals&&(t.exports=i.locals)},function(t,e,o){(t.exports=o(4)(!1)).push([t.i,"/*\n *+------------------------------------------------------------------------+\n *| Licensed Materials - Property of IBM\n *| IBM Cognos Products: Explore\n *| (C) Copyright IBM Corp. 2020\n *|\n *| US Government Users Restricted Rights - Use, duplication or disclosure\n *| restricted by GSA ADP Schedule Contract with IBM Corp.\n *+------------------------------------------------------------------------+\n */\n\n.slotEditor .dropdownWrapper {\n width: 100%;\n min-width: 96px;\n position: relative;\n}\n\n.slotEditor .dropdownWrapper .dropdown {\n color: #161616;\n color: hsla(var(--text-01-h, 0), var(--text-01-s, 0%), var(--text-01-l, 8.62745%), 1);\n box-shadow: 0 2px 8px 0 #eaeaea;\n position: absolute;\n width: 100%;\n}\n\n.slotEditor .ba-common-accordionItem__collapse .ReactCollapse--content {\n overflow-x: inherit;\n overflow-y: inherit;\n}\n\n",""])},function(t,e,o){var i=o(52);"string"==typeof i&&(i=[[t.i,i,""]]);var n={hmr:!0,transform:void 0};o(5)(i,n),i.locals&&(t.exports=i.locals)},function(t,e,o){(t.exports=o(4)(!1)).push([t.i,"/*\n *+------------------------------------------------------------------------+\n *| Licensed Materials - Property of IBM\n *| IBM Cognos Products: Explore\n *| (C) Copyright IBM Corp. 2020\n *|\n *| US Government Users Restricted Rights - Use, duplication or disclosure\n *| restricted by GSA ADP Schedule Contract with IBM Corp.\n *+------------------------------------------------------------------------+\n */\n\n.slotPlaceholder__hoverIndicator {\n height: 8px;\n width: inherit;\n}\n\n.slotPlaceholder__itemPlaceholder {\n height: 40px;\n border-style: dashed;\n border-width: 1px;\n border-color: #8d8d8d;\n border-color: hsla(var(--ui-04-h, 0), var(--ui-04-s, 0%), var(--ui-04-l, 55.29412%), 1);\n margin-bottom: 8px;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n\n.slotPlaceholder__itemPlaceholder__actionLabel {\n color: #a8a8a8;\n color: hsla(var(--text-03-h, 0), var(--text-03-s, 0%), var(--text-03-l, 65.88235%), 1);\n font-size: 0.75rem;\n text-align: center;\n}\n\n.slotPlaceholder.dndHover .slotPlaceholder__itemPlaceholder {\n border: 2px solid;\n color: #0f62fe;\n color: hsla(var(--interactive-01-h, 219.16318), var(--interactive-01-s, 99.17012%), var(--interactive-01-l, 52.7451%), 1);\n}\n\n.slotPlaceholder.dndHover .slotPlaceholder__itemPlaceholder__actionLabel {\n color: #0f62fe;\n color: hsla(var(--interactive-01-h, 219.16318), var(--interactive-01-s, 99.17012%), var(--interactive-01-l, 52.7451%), 1);\n text-decoration: underline;\n}\n\n",""])},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),r=o(0),a=i(r),s=i(o(6)),l=o(2),u=i(o(54)),c=i(o(57)),d=i(o(18)),p=i(o(1)),f=o(9);o(21);var h=o(7),g=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),n(e,[{key:"componentDidMount",value:function(){this._initializeDndSupport()}},{key:"render",value:function(){return this._renderLocalFiltersArea(this.props.localFiltersInfo)}},{key:"_renderLocalFiltersArea",value:function(t){var e=this;return a.default.createElement("div",{className:"slotEditor__localFilters",ref:function(t){e.domNode=t},tabIndex:"0",onKeyUp:function(t){return e.props.a11Y.filterHeaderHandleKeyUp(t,e.domNode,e.dropFilterItemHandler,e.props.filterItemActionHandler)},"aria-label":s.default.get("localFilters")},a.default.createElement("div",{className:"slotEditor__localFilters__heading__container"},a.default.createElement("div",{className:"slotEditor__localFilters__heading__icon"},a.default.createElement(l.SVGIcon,{intent:"primary",iconId:d.default.id})),s.default.get("localFilters")),a.default.createElement("div",{className:"slotEditor__localFilters__attachPoint"}),this._renderLocalFilters(t))}},{key:"_renderLocalFilters",value:function(t){var e=this,o=h.map(t,(function(t,o){var i=t.isMissing?s.default.get("missingColumn",{columnLabel:t.columnId}):t.name;return a.default.createElement("div",{className:"slotEditor__localFilters__item",key:"localFilters"+o},a.default.createElement(u.default,{itemName:i,itemValues:t.filterString,numberOfFilterItems:t.numberOfFilterItems,itemColumnId:t.columnId,metadataColumn:t.metadataColumn,itemFilterId:t.id,filterItemActionHandler:e.props.filterItemActionHandler,a11Y:e.props.a11Y,dndManager:e._dndManager,dashboardApi:e.props.dashboardApi}))}));if(o.length)return a.default.createElement("div",{className:"slotEditor__localFilters__items"},o)}},{key:"_initializeDndSupport",value:function(){var t=this;this.props.dndManager.then((function(e){t.domNode&&(t._dndManager=e,t.dropFilterItemHandler=new c.default(t.domNode,"dndHover",t._handleDropFilterItemOnTop.bind(t),t._handleAcceptsLocalFilterItem.bind(t),e),e.addDropTarget(t.domNode,t.dropFilterItemHandler))}))}},{key:"_handleAcceptsLocalFilterItem",value:function(t){return this.props.filterItemActionHandler.accepts(this.dropFilterItemHandler.getData(t))}},{key:"_handleDropFilterItemOnTop",value:function(t){if("MODEL_ITEM"===t.type||"GRID_HEADER_ITEM"===t.type){this.props.filterItemActionHandler.editLocalFilters(this.dropFilterItemHandler.getData(t),this.domNode,{placement:"auto",attachPoint:".slotEditor__localFilters__attachPoint"})}}}]),e}(r.Component);g.propTypes={dndManager:p.default.object.isRequired,localFiltersInfo:f.PropTypes.observableArray,filterItemActionHandler:p.default.object,a11Y:p.default.object.isRequired,dashboardApi:p.default.object.isRequired},e.default=g},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),r=o(0),a=i(r),s=i(o(1));o(21);var l=i(o(13)),u=o(2),c=i(o(56)),d=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o._showFlyout=function(){o.flyoutTooltipTimer||(o.flyoutTooltipTimer=setTimeout((function(){o._isDragging()||o.props.filterItemActionHandler.isFilterActionMenuOpened()||o.setState({isFlyoutShown:!o.state.isFlyoutShown})}),1e3))},o._hideFlyout=function(){o.setState({isFlyoutShown:!1}),o.flyoutTooltipTimer&&(clearTimeout(o.flyoutTooltipTimer),o.flyoutTooltipTimer=null)},o._isDragging=function(){return!(!o.props.dndManager||!o.props.dndManager.dragObject)},o.state={isFlyoutShown:!1},o.sourceId=o.props.filterItemActionHandler.getDatasourceId(),o.flyoutTooltipTimer=null,o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),n(e,[{key:"render",value:function(){var t=this;return a.default.createElement(a.default.Fragment,null,this._renderFlyout(),a.default.createElement("div",{className:"slotEditorItem is-old","aria-label":this.props.itemName,onKeyUp:function(e){return t.props.a11Y.handleKeyUpForFilterItem(e,t.props.filterItemActionHandler,{metadataColumn:t.props.metadataColumn,filterId:t.props.itemFilterId})},tabIndex:"0",ref:function(e){t.domNode=e}},this.props.itemName?a.default.createElement("div",{className:"slotEditorItem__nameLine"},a.default.createElement("div",{className:"slotEditorItem__nameLine__itemName",onMouseEnter:this._showFlyout,onMouseLeave:this._hideFlyout},a.default.createElement(u.TruncatedText,{location:"middle",value:this.props.itemName,style:{minWidth:100}})),a.default.createElement("div",{className:"slotEditorItem__nameLine__actionMenu",tabIndex:"0",ref:function(e){t.actionMenuDomNode=e},onClick:function(){return t._filterItemActionMenu()},onKeyPress:function(){return t._filterItemActionMenu()}},a.default.createElement(u.SVGIcon,{iconId:c.default.id}),a.default.createElement("div",{className:"actionmenu"}))):[],this._renderFilterStringAndNumber()))}},{key:"_renderFilterStringAndNumber",value:function(){var t=this.props,e=t.itemValues,o=t.numberOfFilterItems;return e?a.default.createElement("div",{className:"slotEditorItem__infoLine"},a.default.createElement("div",{className:"slotEditorItem__infoLine__values"},a.default.createElement(u.TruncatedText,{value:e})),o?a.default.createElement("div",{className:"slotEditorItem__infoLine__filterNumber"},a.default.createElement("div",{className:"slotEditorItem__infoLine__filterNumber__badge"},o)):null):null}},{key:"_filterItemActionMenu",value:function(){this.props.filterItemActionHandler.openFilterItemActionMenu({columnId:this.props.itemColumnId,filterId:this.props.itemFilterId},this.domNode,{attachPoint:".actionmenu",placement:"bottom auto"})}},{key:"_renderFlyout",value:function(){if(this.state.isFlyoutShown&&this.domNode)return a.default.createElement(l.default,{domNode:this.domNode,dashboardApi:this.props.dashboardApi,columnId:this.props.itemColumnId,sourceId:this.sourceId,onClose:this._hideFlyout})}}]),e}(r.Component);d.propTypes={itemName:s.default.string,indexInSlot:s.default.number,itemValues:s.default.string,numberOfFilterItems:s.default.any,itemColumnId:s.default.string,metadataColumn:s.default.object,itemFilterId:s.default.string,filterItemActionHandler:s.default.object.isRequired,a11Y:s.default.object.isRequired,dndManager:s.default.object.isRequired,dashboardApi:s.default.object.isRequired},e.default=d},function(t,e,o){(t.exports=o(4)(!1)).push([t.i,"/**\n* IBM Confidential\n* OCO Source Materials\n* IBM Business Platform: Dashboard\n* (C) Copyright IBM Corp. 2018, 2020\n* The source code for this program is not published or otherwise divested of its trade secrets,\n* irrespective of what has been deposited with the U.S. Copyright Office\n**/\n\n.is-old.slotEditor {\n overflow-y: auto;\n height: 100%;\n padding: 8px 0 8px 8px;\n}\n\n.is-old.slotEditor .slotEditor__slots {\n /* overriding border and padding from toolkit */\n}\n\n.is-old.slotEditor .slotEditor__slots .customAccordion {\n border-top: none;\n padding-bottom: 8px;\n /* Not ideal - reaching internal toolkit class to override style due to toolkit defect 248859 */\n}\n\n.is-old.slotEditor .slotEditor__slots .customAccordion:first-child {\n padding-top: 8px;\n}\n\n.is-old.slotEditor .slotEditor__slots .customAccordion .ba-common-accordionItem__content {\n padding: 0 0 0 32px;\n}\n\n.is-old.slotEditor .slotEditor__slots__layer {\n margin-top: 8px;\n margin-bottom: 8px;\n font-weight: bold;\n font-size: 16px;\n}\n\n.is-old.slotEditor .slotEditor__slots__slot {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n padding-top: 16px;\n border-bottom: 1px solid #eaeaea;\n}\n\n.is-old.slotEditor .slotEditor__slots__slot.__multilayer {\n border-bottom: none;\n}\n\n.is-old.slotEditor .slotEditor__slots__slot__heading__container {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n font-weight: bold;\n font-size: 14px;\n margin-left: 16px;\n padding-bottom: 8px;\n}\n\n.is-old.slotEditor .slotEditor__slots__slot__heading__indent {\n width: 16px;\n}\n\n.is-old.slotEditor .slotEditor__slots__slot__heading__icon {\n padding-right: 8px;\n}\n\n.is-old.slotEditor .slotEditor__slots__slot__heading__required {\n padding-left: 4px;\n padding-right: 4px;\n color: #e62325;\n}\n\n.is-old.slotEditor .slotEditor__slots__slot__heading__dropBefore {\n padding: 0 16px;\n margin-left: 24px;\n}\n\n.is-old.slotEditor .slotEditor__slots__slot__heading__dropBefore__indicator {\n width: 80%;\n height: 8px;\n margin-bottom: 4px;\n}\n\n.is-old.slotEditor .slotEditor__slots__slot__heading.dndHover .slotEditor__slots__slot__heading__dropBefore__indicator {\n background-color: rgba(45, 116, 218, 0.2);\n}\n\n.is-old.slotEditor .slotEditor__slots__slot__heading:focus .slotEditor__slots__slot__heading__dropBefore__indicator {\n background-color: #a8c0f3;\n}\n\n.is-old.slotEditor .slotEditor__slots__slot > .coachMark {\n top: 30px;\n right: 80px;\n}\n\n.is-old.slotEditor .slotEditor__slots .bi-mui-moserObjectTree {\n max-height: 500px;\n}\n\n.is-old.slotEditor .slotEditor__localFilters {\n font-size: 14px;\n padding-top: 16px;\n padding-bottom: 16px;\n border-bottom: 1px solid #eaeaea;\n}\n\n.is-old.slotEditor .slotEditor__localFilters.dndHover {\n background-color: rgba(45, 116, 218, 0.2);\n}\n\n.is-old.slotEditor .slotEditor__localFilters.dndHover .slotEditorItem__nameLine__actionMenu:hover {\n background-color: #f3f3f3;\n}\n\n.is-old.slotEditor .slotEditor__localFilters__heading__container {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n font-weight: bold;\n font-size: 14px;\n margin-left: 16px;\n padding-bottom: 8px;\n}\n\n.is-old.slotEditor .slotEditor__localFilters__heading__icon {\n padding-right: 8px;\n}\n\n.is-old.slotEditor .slotEditor__localFilters__items {\n padding-top: 16px;\n padding-bottom: 8px;\n}\n\n.is-old.slotEditor .slotEditor__localFilters__item {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n margin-bottom: 8px;\n}\n\n.is-old.slotEditor .slotEditor__localFilters__item:last-child {\n margin-bottom: 0;\n}\n\n.is-old.slotEditor .slotEditor__localFilters__item .slotEditorItem__nameLine__itemName {\n cursor: default;\n}\n\n.is-old.slotEditor .slotEditor__header__line {\n padding-top: 8px;\n font-size: 12px;\n font-weight: bold;\n display: -ms-flexbox;\n display: flex;\n color: #343334;\n}\n\n.is-old.slotEditor .slotEditor__header__required {\n padding-right: 4px;\n color: #e62325;\n}\n\n.is-old.slotEditor .slotEditor__footer__line {\n padding-top: 16px;\n font-size: 14px;\n display: -ms-flexbox;\n display: flex;\n color: #343334;\n}\n\n.is-old.slotEditor .slotEditor__footer__line__icon {\n margin-right: 8px;\n margin-left: 16px;\n color: #595859;\n}\n\n.is-old.slotEditor .slotEditorItem__dropAfter {\n margin-right: 16px;\n margin-left: 40px;\n}\n\n.is-old.slotEditor .slotEditorItem__dropAfter__indicator {\n width: 80%;\n height: 8px;\n margin-top: 8px;\n margin-bottom: 8px;\n}\n\n.is-old.slotEditor .slotEditorItem__dropAfter.dndHover .slotEditorItem__dropAfter__indicator {\n background-color: rgba(45, 116, 218, 0.2);\n}\n\n.is-old.slotEditor .slotEditorItem__dropAfter:focus .slotEditorItem__dropAfter__indicator {\n background-color: #a8c0f3;\n}\n\n.highcontrast .is-old.slotEditor .slotEditor__slots__slot__heading.dndHover .slotEditor__slots__slot__heading__dropBefore__indicator {\n border: 1px dotted;\n}\n\n.highcontrast .is-old.slotEditor .slotEditor__slots__slot__heading:focus .slotEditor__slots__slot__heading__dropBefore__indicator {\n border: 1px dashed;\n}\n\n.highcontrast .is-old.slotEditor .slotEditor__localFilters.dndHover {\n border: 2px dotted;\n}\n\n.highcontrast .is-old.slotEditorItem.dndHover .slotEditorItem__nameLine {\n border: 2px dotted;\n}\n\n.highcontrast .is-old.slotEditorItem .slotEditorItem__dropAfter.dndHover .slotEditorItem__dropAfter__indicator {\n border: 1px dotted;\n}\n\n.highcontrast .is-old.slotEditorItem .slotEditorItem__dropAfter:focus .slotEditorItem__dropAfter__indicator {\n border: 1px dashed;\n}\n\n.is-old.slotEditorItem {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-flow: column;\n flex-flow: column;\n margin-right: 16px;\n margin-left: 40px;\n -ms-flex-item-align: start;\n align-self: flex-start;\n -ms-flex-align: stretch;\n align-items: stretch;\n border: 1px solid #eaeaea;\n background-color: white;\n}\n\n.is-old.slotEditorItem.action-menu-opened {\n pointer-events: none;\n}\n\n.is-old.slotEditorItem.selected {\n border: 2px solid #c0bfc0;\n}\n\n.is-old.slotEditorItem:focus {\n background-color: rgba(45, 116, 218, 0.2);\n}\n\n.is-old.slotEditorItem.dndHover .slotEditorItem__nameLine__itemName,\n.is-old.slotEditorItem.dndHover .slotEditorItem__nameLine__icon,\n.is-old.slotEditorItem.dndHover .slotEditorItem__nameLine__actionMenu,\n.is-old.slotEditorItem.dndHover .slotEditorItem__infoLine {\n background-color: rgba(45, 116, 218, 0.2);\n}\n\n.is-old.slotEditorItem .slotEditorItem__nameLine {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-flow: row;\n flex-flow: row;\n border-bottom: 1px solid #eaeaea;\n}\n\n.is-old.slotEditorItem .slotEditorItem__nameLine__itemName {\n max-width: 200px;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n font-size: 14px;\n padding: 8px;\n cursor: move;\n}\n\n.is-old.slotEditorItem .slotEditorItem__nameLine__itemName:hover {\n background-color: #c0bfc0;\n}\n\n.is-old.slotEditorItem .slotEditorItem__nameLine__icon {\n margin-right: 8px;\n margin-left: 8px;\n -ms-flex-item-align: center;\n -ms-grid-row-align: center;\n align-self: center;\n width: 16px;\n height: 16px;\n}\n\n.is-old.slotEditorItem .slotEditorItem__nameLine__actionMenu {\n display: -ms-flexbox;\n display: flex;\n padding: 8px;\n -ms-flex-align: center;\n align-items: center;\n border-left: 1px solid #eaeaea;\n cursor: pointer;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n}\n\n.is-old.slotEditorItem .slotEditorItem__nameLine__actionMenu:hover {\n background-color: #c0bfc0;\n}\n\n.is-old.slotEditorItem .slotEditorItem__nameLine__actionMenu .ba-common-svgIcon {\n fill: #595859;\n width: 12px;\n height: 12px;\n}\n\n.is-old.slotEditorItem .slotEditorItem__nameLine__nodrop {\n display: -ms-flexbox;\n display: flex;\n margin-left: 8px;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n}\n\n.is-old.slotEditorItem .slotEditorItem__nameLine__nodrop.is-hidden {\n display: none;\n}\n\n.is-old.slotEditorItem .slotEditorItem__nameLine__nodrop .svgIcon {\n height: 16px;\n width: 16px;\n fill: #595859;\n}\n\n.is-old.slotEditorItem .slotEditorItem__infoLine {\n font-size: 10px;\n display: -ms-flexbox;\n display: flex;\n}\n\n.is-old.slotEditorItem .slotEditorItem__infoLine__values {\n max-width: 200px;\n -ms-flex: 0 1 auto;\n flex: 0 1 auto;\n padding-left: 8px;\n padding-right: 8px;\n}\n\n.is-old.slotEditorItem .slotEditorItem__infoLine__filterNumber {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: row-reverse;\n flex-direction: row-reverse;\n -ms-flex: 1 0 auto;\n flex: 1 0 auto;\n}\n\n.is-old.slotEditorItem .slotEditorItem__infoLine__filterNumber__badge {\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n border-radius: 40%;\n width: 24px;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: center;\n justify-content: center;\n font-weight: bold;\n background-color: #eaeaea;\n}\n\n.is-old.slotEditorItem.draggedNode {\n padding: 0;\n margin: 0;\n}\n\n.is-old.slotEditorItem > .coachMark {\n top: 10px;\n right: -10px;\n}\n\n.slotEditorItem__disambiguatingTooltip {\n min-width: 240px;\n text-align: left;\n padding-bottom: 5px;\n}\n\n.slotEditorItem__disambiguatingTooltipTitle {\n min-width: 240px;\n padding-left: 8px;\n padding-top: 5px;\n}\n\n",""])},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(19),n=o.n(i),r=o(20),a=o.n(r),s=new n.a({id:"overflow-menu--horizontal_16",use:"overflow-menu--horizontal_16-usage",viewBox:"0 0 16 16",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="overflow-menu--horizontal_16"><circle cx="3" cy="8" r="1" /><circle cx="8" cy="8" r="1" /><circle cx="13" cy="8" r="1" /><path style="fill:none" d="M0 0h16v16H0z" /></symbol>'});a.a.add(s),e.default=s},function(t,e,o){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),a=function(t){function e(){return i(this,e),n(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"accepts",value:function(t){return("GRID_HEADER_ITEM"===t.type||"MODEL_ITEM"===t.type)&&t.data&&t.data.utils&&t.data.utils.isValid()&&this.acceptsHandler(t)}}]),e}(function(t){return t&&t.__esModule?t:{default:t}}(o(58)).default);e.default=a},function(t,e,o){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),r=function(t){return t&&t.__esModule?t:{default:t}}(o(3)),a=o(10),s=function(){function t(e,o,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){return!0},a=arguments[4];i(this,t),this.domNode=e,this.className=o,this.dropHandler=n,this.acceptsHandler=r,this.timer=null,this.dndManager=a}return n(t,[{key:"accepts",value:function(t){return("SLOT_ITEM"===t.type||"shape"===t.widgetType||("GRID_HEADER_ITEM"===t.type||"MODEL_ITEM"===t.type)&&t.data&&t.data.utils&&t.data.utils.isValid())&&this.acceptsHandler(t)}},{key:"getData",value:function(t){return t?"SLOT_ITEM"===t.type?t.data.source:"shape"===t.widgetType?t:this._getDropMetadataColumns(t):null}},{key:"_getDropMetadataColumns",value:function(t){return t&&t.data}},{key:"activateDropTarget",value:function(){(0,r.default)(this.domNode).toggleClass(this.className,!0)}},{key:"deactivateDropTarget",value:function(){(0,r.default)(this.domNode).toggleClass(this.className,!1)}},{key:"onDragStart",value:function(){}},{key:"onDragMove",value:function(t,e,o){var i=this,n=(0,r.default)(e).closest(".slotEditor").get(0);n&&(0,a.handleScroll)(o,n,(function(){return i.dndManager&&i.dndManager.reassessContainer(n)})),this.activateDropTarget()}},{key:"onDragLeave",value:function(){this.deactivateDropTarget()}},{key:"onDragEnd",value:function(){this.deactivateDropTarget()}},{key:"onDrop",value:function(t,e){this.dropHandler(t,e)}},{key:"initializeDndSource",value:function(t,e,o){var i=this;(0,r.default)(this.domNode).on("mousedown",{},(function(n){return i._startDrag({dndManager:t,event:n,cbGetSlotDataItemHandler:e,iconsFeature:o}),!0})),(0,r.default)(this.domNode).on("touchstart",{},(function(n){return i._touchStart({dndManager:t,event:n,cbGetSlotDataItemHandler:e,iconsFeature:o}),!0})),(0,r.default)(this.domNode).on("touchend touchcancel",{},(function(){return i._touchEnd()}))}},{key:"_touchStart",value:function(t){this.timer=setTimeout(function(){this._touchStartDrag(t)}.bind(this),600)}},{key:"_touchEnd",value:function(){this.timer&&clearTimeout(this.timer),this.timer=null}},{key:"_touchStartDrag",value:function(t){this.timer&&this._startDrag(t)}},{key:"_startDrag",value:function(t){var e=(0,r.default)('<div style="position:absolute; z-index:10000;"/>'),o=(0,r.default)(this.domNode).clone().addClass("draggedNode");if(t.iconsFeature){var i=t.iconsFeature.getIcon("common-nodrop");if(i){var n=(0,r.default)('<div class="slotEditorItem__nameLine__nodrop is-hidden">\n\t\t\t\t\t\t<svg class="svgIcon">\n\t\t\t\t\t\t\t<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#'+i.id+'">\n\t\t\t\t\t\t\t</use>\n\t\t\t\t\t\t</svg>\n\t\t\t\t\t</div>');o.find(".slotEditorItem__nameLine").prepend(n)}}e.append(o),t.dndManager.startDrag({event:t.event,type:"SLOT_ITEM",data:{source:t.cbGetSlotDataItemHandler()},callerCallbacks:{onMove:this._onMove.bind(this)},avatar:e,moveXThreshold:20,moveYThreshold:20})}},{key:"_onMove",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=e.dragObject;if(o){var i=o.avatar;if(i){var n=(0,r.default)(i),a=n.find(".slotEditorItem__nameLine__nodrop");if(a.length){var s=e.dropTargetNode;if(s){var l=!(s.classList&&s.classList.contains("slotEditor"));a.toggleClass("is-hidden",l)}else a.toggleClass("is-hidden",!1)}}}}}]),t}();e.default=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),n=function(t){return t&&t.__esModule?t:{default:t}}(o(3)),r=o(60),a=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return i(t,[{key:"handleKeyDown",value:function(t,e){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;" "===t.key?(this._sourceSelection=e.slotDataItemHandler,(0,n.default)(this.sourceNode).removeClass("selected"),this.sourceNode=t.target,(0,n.default)(this.sourceNode).addClass("selected"),t.preventDefault()):this.handleOpenTypeInDropdown(t,o)}},{key:"handleKeyUp",value:function(t,e){"Delete"===t.key||"Backspace"===t.key?(0,n.default)(t.target).hasClass("slotEditorItem")&&(this.deleteSlotItem(e.slotDataItemHandler),t.preventDefault()):r.A11YUtils.isPaste(t)&&(this.slotHandleKeyUp(t,e.slotDataItemHandler),t.preventDefault())}},{key:"handleKeyUpForFilterItem",value:function(t,e,o){"Delete"!==t.key&&"Backspace"!==t.key||(0,n.default)(t.target).hasClass("slotEditorItem")&&(this._deleteFilterItem(e,o),t.preventDefault())}},{key:"handleOpenTypeInDropdown",value:function(t,e){this._sourceSelection||"Enter"!==t.key||e()}},{key:"handleKeyPress",value:function(t,e,o){this._sourceSelection&&"Enter"===t.key&&((0,n.default)(this.sourceNode).removeClass("selected"),e(this._sourceSelection,o),this._sourceSelection=null,t.preventDefault())}},{key:"slotHandleKeyUp",value:function(t,e){if(r.A11YUtils.isPaste(t)){var o=!(t&&t.target&&t.target.classList.contains("slotEditorItem"));e.onDropA11Y(o)}}},{key:"filterHeaderHandleKeyUp",value:function(t,e,o,i){r.A11YUtils.isPaste(t)&&i.onDropA11Y(e)}},{key:"deleteSlotItem",value:function(t){return t.getActions().then((function(t){var e=t.find((function(t){return t&&"delete"===t.name}));e&&e.actions.apply()}))}},{key:"_deleteFilterItem",value:function(t,e){return t.getActions(e.metadataColumn,e.filterId).then((function(t){var e=t.find((function(t){return void 0!==t.deleteLocalFilter}));e&&e.deleteLocalFilter()}))}}]),t}();e.default=a},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.A11YUtils=e.A11YDirection=e.A11YCollections=void 0;var n=i(o(61)),r=i(o(62)),a=i(o(63));e.A11YCollections=n.default,e.A11YDirection=r.default,e.A11YUtils=a.default},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),r=i(o(7)),a=i(o(3)),s=function(){function t(e){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),Array.isArray(e.direction)?this.direction=e.direction:this.direction=[e.direction],this.adapters={elements:e.handlers.elements,container:e.handlers.container}}return n(t,[{key:"onKeyDown",value:function(t){for(var e=0;e<this.direction.length;e++){var o=this.direction[e];switch(t.key){case o.previous:return void this._handleFocusPrevious(t);case o.next:return void this._handleFocusNext(t)}}}},{key:"_handleFocusPrevious",value:function(t){this._getContainer(t.target).length>0&&(this._cycleFocus(t,-1),t.preventDefault())}},{key:"_handleFocusNext",value:function(t){this._getContainer(t.target).length>0&&(this._cycleFocus(t,1),t.preventDefault())}},{key:"_getElements",value:function(t){return r.default.isFunction(this.adapters.elements)?(0,a.default)(this.adapters.elements(t)):(0,a.default)(this.adapters.elements)}},{key:"_getContainer",value:function(t){return this.adapters.container?(0,a.default)(this.adapters.container(t)):(0,a.default)(t)}},{key:"_cycleFocus",value:function(t,e){var o=this._getContainer(t.target).index();this._focus(this._getElements(t.target),o+e)}},{key:"_focus",value:function(t,e){e>=t.length&&(e=0),t.eq(e).focus()}}]),t}();e.default=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={UP_DOWN:{previous:"ArrowUp",next:"ArrowDown"},LEFT_RIGHT:{previous:"ArrowLeft",next:"ArrowRight"}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),n=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return i(t,null,[{key:"isPaste",value:function(t){return 86===t.keyCode&&(t.ctrlKey||t.metaKey)}}]),t}();e.default=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),n=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return i(t,[{key:"render",value:function(){}}]),t}();e.default=n},function(t,e){t.exports=s}])})),define("dashboard-analytics/features/dashboard/layers",["./actions/crosstab/HideShowSummariesAction","./actions/crosstab/SwapRowColumnAction","./actions/CrosstabActions","./dataSources/api/DataSourceAPI","./dataSources/api/DataSourcesAPI","./dataSources/api/DataSourcesUIAPI","./dataSources/api/MetadataColumnAPI","./smarts/AnnotationService","./smarts/ExploreAnnotationService","./smarts/KeyDriverService","./metadata/MetadataLoader","./liveContentProvider/LiveContentProvider","./vis-fredisred/FredIsRed","./vis-fredisred/FredIsRedModel","./smartColorMap/SmartColorMapFeatureProvider","./liveWidgetSegment/LiveWidgetSegment","./smp-colormap/SMPColorMapProvider","./slotEditor/SlotEditorState","./slotEditor/SlotEditorDOM","./localFilterExtension/LocalFilterExtension"],(function(){})),define("dashboard-analytics/features/dashboard/customViz/CustomVizService",[],(function(){var t=["visualizationPreview","com.ibm.vis.schematicsPreview"];return function(){function e(){_classCallCheck(this,e)}return e.prototype.onDashboardSave=function(t){var e=t.spec,o=t.stringResources,i=t.context.glassContext.appController.showToast;this._findVisId(e.layout.items)&&i(o.get("customVizSaveWarning"),{type:"warning"})},e.prototype._findVisId=function(e){for(var o=0;o<e.length;o++){var i=e[o];if(i.items)return this._findVisId(i.items);if(i.features){var n=i.features.Models_internal;if(n&&n.visId&&-1!==t.indexOf(n.visId))return!0}}return!1},e}()})),define("dashboard-analytics/features/dashboard/fredIsRed/api/FredIsRedAPI",[],(function(){return function t(){_classCallCheck(this,t)}})),define("dashboard-analytics/features/dashboard/queryService/api/QueryDataItemAPI",["../../../../api/DataItemAPI"],(function(t){return function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,t.apply(this,arguments))}return _inherits(e,t),e.prototype.getProjected=function(){},e.prototype.setProjected=function(){},e.prototype.getCommandList=function(){},e.prototype.addCommand=function(){},e.prototype.setType=function(){},e}(t)})),define("dashboard-analytics/features/dashboard/queryService/QueryDataItem",["underscore","../../../lib/@waca/dashboard-common/dist/core/APIFactory","../../../api/DataItemAPI","./api/QueryDataItemAPI"],(function(t,e,o,i){return function(n){function r(e,o,i){_classCallCheck(this,r);var a=_possibleConstructorReturn(this,n.call(this,e,i));if(!e)throw new Error("Missing parameter: MetadataColumnAPI");return a.metadataColumn=e,a.dataItemId=o,a.projected=!0,a.commandList=[],i&&t.extend(a,i),a}return _inherits(r,n),r.prototype.getAPI=function(){return this.api||(this.api=e.createAPI(this,[o,i])),this.api},r.prototype.getProjected=function(){return this.projected},r.prototype.setProjected=function(t){this.projected=t},r.prototype.getCommandList=function(){return this.commandList},r.prototype.addCommand=function(t){this.commandList.push(t)},r.prototype.setType=function(t){this.type=t},r.prototype.getId=function(){return this.dataItemId},r.prototype.getLabel=function(){return this.metadataColumn.getLabel()},r.prototype.getColumnId=function(){return this.metadataColumn.getId()},r.prototype.getDataType=function(){return this.metadataColumn.getDataType()},r.prototype.isDateOrTimeType=function(){return this.metadataColumn.isDateTimeDataType()},r.prototype.getType=function(){return this.type||this.metadataColumn.getType()},r.prototype.getAggregation=function(){return void 0!==this.aggregation?this.aggregation:this._getDefaultAggregation()},r.prototype.setAggregation=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.aggregation=t},r.prototype.getSort=function(){if(this.sort)return this.sort;var t=this.metadataColumn.getDefaultSortType();return t?{type:t,priority:1}:void 0},r.prototype.getTopBottom=function(){return this.topBottom},r.prototype.getMetadataColumn=function(){return this.metadataColumn},r.prototype.getFormat=function(t){return this.format||this.metadataColumn.getFormat(t)},r.prototype.getBinning=function(){return this.binning},r.prototype.getDrillUpValue=function(){return this.drillUpValue},r.prototype.getDrillDownValue=function(){return this.drillDownValue},r.prototype.hasDefaultAggregation=function(){return void 0===this.aggregation},r.prototype.hasDefaultSort=function(){return!this.sort},r.prototype.hasDefaultFormat=function(){return!this.format},r.prototype.setSort=function(t){this.sort=t},r.prototype.setFormat=function(t){this.format=t},r.prototype.setTopBottom=function(t){this.topBottom=t},r.prototype.setBinning=function(t){this.binning=t},r.prototype.canDrillDown=function(){return!1},r.prototype.drillUp=function(t){this.drillUpValue=t},r.prototype.drillDown=function(t){this.drillDownValue=t},r.prototype.clearDrill=function(){delete this.drillUpValue,delete this.drillDownValue},r.prototype._getDefaultAggregation=function(){return this.metadataColumn.getDefaultAggregation()},r}(i)})),define("dashboard-analytics/features/dashboard/queryService/api/QueryAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.setDataSource=function(){},t.prototype.addColumns=function(){},t.prototype.addDataItems=function(){},t.prototype.addFilters=function(){},t.prototype.addSearchTerms=function(){},t.prototype.setLimit=function(){},t.prototype.setOffset=function(){},t.prototype.executeQuery=function(){},t}()})),define("dashboard-analytics/features/dashboard/queryService/Query",["underscore","../../../lib/@waca/dashboard-common/dist/core/APIFactory","./QueryDataItem","./api/QueryAPI","../../../filters/FilterQuerySpec","./QuerySelectionBuilder","../../content/dataQueryExecution/DataQueryUtils","../../../lib/@waca/dashboard-common/dist/core/UniqueHashIdBuilder"],(function(t,e,o,i,n,r,a,s){return function(){function l(t,e,o){_classCallCheck(this,l),this.VERSION="1",this.DEFAULT_ROW_LIMIT=1e3,this.DEFAULT_OFFSET=0,this._dashboard=t,this._queryService=e,this._logger=t.getGlassCoreSvc(".Logger"),this._type=o}return l.prototype.getAPI=function(){return this.api||(this.api=e.createAPI(this,[i])),this.api},l.prototype.setDataSource=function(t){var e=this._dashboard.getFeature("DataSources");return this._dataSource=e.getDataSource(t),this._dataSource.loadMetadata()},l.prototype.addColumns=function(t){var e=this;return this._dataItems||(this._dataItems=[],this.dataItemIdsMap={}),t.forEach((function(t){var o=e._dataSource.getMetadataColumn(t);o?e._dataItems.push(e._createQueryDataItem(o,t)):e._logger.error("Could not find metadata column "+t+" in "+e._dataSource.getId())})),this._dataItems},l.prototype.addDataItems=function(t){var e=this;return this._dataItems||(this._dataItems=[],this.dataItemIdsMap={}),t&&t.forEach((function(t){var o=t.getMetadataColumn();e._dataItems.push(e._createQueryDataItem(o,null,t))})),this._dataItems},l.prototype._createQueryDataItem=function(t,e,i){var n=i&&i.getId()||e,r=s.createUniqueHashId(n,this.dataItemIdsMap);return this.dataItemIdsMap[r]=r,new o(t,r,i).getAPI()},l.prototype.addFilters=function(t){var e;(this._filters||(this._filters=[]),t&&t.length>0)&&(e=this._filters).push.apply(e,t)},l.prototype.addSearchTerms=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(this._searchTerms||(this._searchTerms=[]),Array.isArray(e)&&!(!e.length>0)){var o={id:t,columnId:t,values:e};e.length>1?(o.operator="in",o.ignoreCase=!0,o.type="display"):o.operator="containsignorecase",this._searchTerms.push(o)}},l.prototype.setLimit=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.DEFAULT_ROW_LIMIT;this._dataRowLimit=t},l.prototype.setOffset=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.DEFAULT_OFFSET;return this._offset=t,this._offset},l.prototype._toJSON=function(){var e=this,o=[],i=[],s=new r(this._dataItems);this._dataItems&&this._dataItems.forEach((function(n){var r={id:n.getId(),itemId:n.getColumnId()},a={};t.each(s.build(n,[],e._searchTerms),(function(t){a[t.operation]=t})),t.each(n.getCommandList(),(function(t){a[t.operation]=t}));var l=t.values(a);l&&l.length&&(r.selection=l);var u=n.getAggregation();t.isNull(u)||"none"===u||"fact"!==n.getType()&&n.hasDefaultAggregation()||(r.aggregate=n.getAggregation()),o.push(r);var c=n.getProjected();(void 0===c||c)&&i.push(n.getId())}));var l=[],u=void 0;if(this._filters&&this._filters.length){var c=a.convertExcludeEmptyValuesFilters(this._filters,this._dataSource);(u=new n).addFiltersToSpec(c)}this._searchTerms&&this._searchTerms.length&&(u=u||new n).addFiltersToSpec(this._searchTerms),u&&(l=u.getFilterSpec());var d={version:this.VERSION,dataItems:o,projections:i,limit:this._dataRowLimit||this.DEFAULT_ROW_LIMIT,filters:l};return this._type&&(d.type=this._type),this._offset&&(d.offset=this._offset),d},l.prototype.executeQuery=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._toJSON();return this._queryService.executeQuery(this._dataSource.getId(),e,this.constructor.name,t)},l}()})),define("dashboard-analytics/features/dashboard/queryService/api/QueryServiceAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.executeQuery=function(){},t.prototype.createQuery=function(){},t.prototype.getColumnValues=function(){},t.prototype.getColumnMinMaxValues=function(){},t.prototype.getDataItemsMinMaxValues=function(){},t.prototype.getRootMembers=function(){},t.prototype.getChildren=function(){},t.prototype.getSiblings=function(){},t.prototype.getAscendants=function(){},_createClass(t,null,[{key:"TYPE",get:function(){return{DEFAULT:void 0,MINMAX:"minmax",DETAIL:"detail"}}}]),t}()})),define("dashboard-analytics/features/dashboard/queryService/QueryService",["../../../lib/@waca/dashboard-common/dist/core/APIFactory","../../../widgets/livewidget/query/CommonQueryHelper","./QueryResultData","./Query","./api/QueryServiceAPI"],(function(t,e,o,i,n){return function(e){function r(t){_classCallCheck(this,r);var o=t.features["QueryService.internal"],i=_possibleConstructorReturn(this,e.call(this,{queryService:o},t.features.Logger));return i.internalQueryService=o,i.dashboard=t.features.API,i}return _inherits(r,e),r.prototype._runQuery=function(t,e){return this.queryService.executeQuery(t,e).then((function(t){var i=new o(t.data);return i.setPropertyValue("QuerySpec.internal",JSON.stringify(e)),i.setPropertyValue("RawData.internal",JSON.stringify(t.data)),i.setPropertyValue("RequestTime.internal",t.requestTime||null),i.getAPI()}))},r.prototype.getAPI=function(){return this.queryServiceAPI||(this.queryServiceAPI=t.createAPI(this,[n])),this.queryServiceAPI},r.prototype.executeQuery=function(t,e,i,n){return this.internalQueryService.executeQuery(t,e,i,n).then((function(t){var i=new o(t.data);return i.setPropertyValue("QuerySpec.internal",JSON.stringify(e)),i.setPropertyValue("RawData.internal",JSON.stringify(t.data)),i.setPropertyValue("RequestTime.internal",t.requestTime||null),i.getAPI()}))},r.prototype.createQuery=function(t){return new i(this.dashboard,this,t).getAPI()},r.prototype.getColumnValues=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments[3],n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null;Array.isArray(e)||(e=[e]);var a=this.createQuery();return a.setDataSource(t).then((function(){return a.addColumns(e).forEach((function(t,e){!t.getSort()&&i&&t.setSort({type:i}),t.setAggregation(r&&r[e]||null),n.length>0&&a.addSearchTerms(t.getColumnId(),n)})),a.addFilters(o),a.executeQuery()}))},r.prototype.getColumnMinMaxValues=function(t,e){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=this.createQuery();return i.setDataSource(t).then((function(){var t=i.addColumns([e,e]);return t[0].setAggregation("min"),t[1].setAggregation("max"),o.length&&i.addFilters(o),i.executeQuery()}))},r.prototype.getDataItemsMinMaxValues=function(t,e,o,i){var n=this.createQuery("minmax");return n.setDataSource(t).then((function(){return e.forEach((function(t){var e=t.getColumnId();if(e){var i=n.addColumns([e]),r=i[i.length-1];r.setType(t.getType());var a=-1!==o.indexOf(t.getId());a&&r.setAggregation(t.getAggregation()),r.setProjected(a)}})),i&&i.length&&n.addFilters(i),n.executeQuery()}))},r.prototype.getRootMembers=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:51;Array.isArray(e)||(e=[e]);var n=this.createQuery();return n.setDataSource(t).then((function(){return n.addColumns(e).forEach((function(t){t.addCommand({operation:"add",rootMembers:"true"})})),n.addFilters(o),n.setLimit(i),n.executeQuery()}))},r.prototype.getChildren=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:51,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;Array.isArray(e)||(e=[e]);var a=this.createQuery();return a.setDataSource(t).then((function(){return a.addColumns(e).forEach((function(t){t.addCommand({operation:"add",children:o})})),a.addFilters(i),a.setLimit(n),a.setOffset(r),a.executeQuery()}))},r.prototype.getAscendants=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];Array.isArray(e)||(e=[e]);var n=this.createQuery();return n.setDataSource(t).then((function(){return n.addColumns(e).forEach((function(t){t.addCommand({operation:"add",ascendants:o})})),n.addFilters(i),n.executeQuery()}))},r.prototype.getSiblings=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:51;Array.isArray(e)||(e=[e]);var r=this.createQuery();return r.setDataSource(t).then((function(){return r.addColumns(e).forEach((function(t){t.addCommand({operation:"add",siblings:o})})),r.addFilters(i),r.setLimit(n),r.executeQuery()}))},r}(e)})),define("dashboard-analytics/features/dashboard/queryService/api/QueryDefinitionAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.getId=function(){},t.prototype.getType=function(){},t.prototype.setDataSource=function(t){},t.prototype.getDataSource=function(){},t.prototype.setSummariesEnabled=function(){},t.prototype.getSummariesEnabled=function(){},t.prototype.setSuppressionEnabled=function(){},t.prototype.getSuppressionEnabled=function(){},t.prototype.createDataItemSet=function(){},t.prototype.getDataItemSetList=function(){},t.prototype.getAllDataItemsList=function(){},t.prototype.addFilters=function(){},t.prototype.removeFilters=function(){},t.prototype.getFilters=function(){},t.prototype.addQueryHint=function(){},t.prototype.getQueryHints=function(){},t.prototype.setExpandEnabled=function(){},t.prototype.getExpandEnabled=function(){},t.prototype.setSupportsNonContextualTopBottom=function(){},t.prototype.getSupportsNonContextualTopBottom=function(){},t.prototype.getPropertyValue=function(){},t.prototype.setPropertyValue=function(){},t}()})),define("dashboard-analytics/features/dashboard/queryService/api/QueryDataItemSetAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.addDataItem=function(){},t.prototype.addDataItemList=function(){},t.prototype.setDataItemList=function(){},t.prototype.getDataItemList=function(){},t.prototype.createDataItemSet=function(){},t.prototype.getDataItemSetList=function(){},t.prototype.getAllDataItemsList=function(){},t.prototype.isMeasureItemSet=function(){},t.prototype.isNestedItemSet=function(){},t.prototype.getSummaryItemPrefix=function(){},t.prototype.isSummaryItemId=function(){},t.prototype.addCalculation=function(){},t.prototype.getCalculationList=function(){},t}()})),define("dashboard-analytics/features/dashboard/queryService/QueryDataItemSet",["underscore","../../../lib/@waca/dashboard-common/dist/core/APIFactory","./api/QueryDataItemSetAPI"],(function(t,e,o){return function(){function i(){_classCallCheck(this,i),this.dataItems=[],this.dataItemSets=[],this.calculations=[],this.summariesEnabled=!0}return i.prototype.getAPI=function(){return this.api||(this.api=e.createAPI(this,[o])),this.api},i.prototype.addDataItem=function(t){this.dataItems.push(t)},i.prototype.addDataItemList=function(t){var e;(e=this.dataItems).splice.apply(e,[this.dataItems.length,0].concat(t))},i.prototype.setDataItemList=function(t){this.dataItems=t},i.prototype.getDataItemList=function(){return this.dataItems.slice()},i.prototype.addCalculation=function(t,e){this.isMeasureItemSet()&&this.calculations.push({operator:t,operands:e})},i.prototype.getCalculationList=function(t){return t?this.calculations.filter((function(e){return e.operands.indexOf(t)>-1})):this.calculations},i.prototype.getAllDataItemsList=function(){return t.flatten([this.getDataItemList(),this.getDataItemSetList().map((function(t){return t.getAllDataItemsList()}))])},i.prototype.createDataItemSet=function(t){var e=new i;return e.addDataItemList(t),this.dataItemSets.push(e),e.getAPI()},i.prototype.getDataItemSetList=function(){return this.dataItemSets.slice()},i.prototype.isNestedItemSet=function(){return this.dataItemSets.length>0},i.prototype.isMeasureItemSet=function(){return this.dataItems&&this.dataItems[0]&&"fact"===this.dataItems[0].getType()},i.prototype.getSummaryItemPrefix=function(){return"summary:"},i.prototype.isSummaryItemId=function(t){return 0===t.indexOf(this.getSummaryItemPrefix())},i}()})),define("dashboard-analytics/features/dashboard/queryService/QueryDefinition",["underscore","../../../lib/@waca/dashboard-common/dist/core/APIFactory","./api/QueryDefinitionAPI","./QueryDataItemSet"],(function(t,e,o,i){var n=function(t,e){return t[e.columnId]=e,t};return function(){function r(t){var e=t.id,o=t.type;_classCallCheck(this,r),this.id=e,this.type=o,this.dataSource=null,this.dataItemSets=[],this.filters=[],this.summariesEnabled=!0,this.queryHints=[],this.expandEnabled=!0,this.suppressionEnabled=!0,this.supportsNonContextualTopBottom=!0,this.properties={}}return r.prototype.getId=function(){return this.id},r.prototype.getType=function(){return this.type},r.prototype.getAPI=function(){return this.api||(this.api=e.createAPI(this,[o])),this.api},r.prototype.setDataSource=function(t){this.dataSource=t},r.prototype.getDataSource=function(){return this.dataSource},r.prototype.setSummariesEnabled=function(t){this.summariesEnabled=t},r.prototype.getSummariesEnabled=function(){return this.summariesEnabled},r.prototype.setSuppressionEnabled=function(t){this.suppressionEnabled=t},r.prototype.getSuppressionEnabled=function(){return this.suppressionEnabled},r.prototype.createDataItemSet=function(t){var e=new i;return e.addDataItemList(t),this.dataItemSets.push(e),e.getAPI()},r.prototype.getDataItemSetList=function(){return this.dataItemSets.slice()},r.prototype.getAllDataItemsList=function(){return t.flatten(this.dataItemSets.map((function(t){return t.getAllDataItemsList()})))},r.prototype.addFilters=function(t){var e;(e=this.filters).push.apply(e,t)},r.prototype.removeFilters=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(e.length>0){var o=e.reduce(n,{}),i=this.filters.reduce(n,{}),r=Object.keys(i);this.filters.length=0,r.forEach((function(e){o[e]||t.filters.push(i[e])}))}},r.prototype.getFilters=function(){return this.filters},r.prototype.addQueryHint=function(t){this.queryHints.push(t)},r.prototype.getQueryHints=function(){return this.queryHints},r.prototype.setExpandEnabled=function(t){this.expandEnabled=t},r.prototype.getExpandEnabled=function(){return this.expandEnabled},r.prototype.setSupportsNonContextualTopBottom=function(t){this.supportsNonContextualTopBottom=t},r.prototype.getSupportsNonContextualTopBottom=function(){return this.supportsNonContextualTopBottom},r.prototype.getPropertyValue=function(t){return this.properties[t]},r.prototype.setPropertyValue=function(t,e){t&&(void 0===e?delete this.properties[t]:this.properties[t]=e)},r}()})),define("dashboard-analytics/features/dashboard/queryService/api/QueryService2API",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.registerQueryClass=function(){},t.prototype.createQueryDefinition=function(){},t.prototype.createQuery=function(){},_createClass(t,null,[{key:"TYPE",get:function(){return{DEFAULT:void 0,MINMAX:"minmax",DETAIL:"detail"}}}]),t}()})),define("dashboard-analytics/features/dashboard/queryService/QueryService2",["../../../lib/@waca/dashboard-common/dist/core/APIFactory","../../../widgets/livewidget/query/CommonQueryHelper","./QueryDefinition","./api/QueryService2API"],(function(t,e,o,i){return function(e){function n(t){_classCallCheck(this,n);var o=t.features["QueryService.internal"],i=_possibleConstructorReturn(this,e.call(this,{queryService:o},t.features.Logger));return i.dashboard=t.features.API,i.internalQueryService=o,i.queryClasses={},i}return _inherits(n,e),n.prototype.getAPI=function(){return this.queryServiceAPI||(this.queryServiceAPI=t.createAPI(this,[i])),this.queryServiceAPI},n.prototype.registerQueryClass=function(t,e){if(this.queryClasses[t])throw new Error("There is already a query class registered for "+t);this.queryClasses[t]=e},n.prototype.createQueryDefinition=function(t,e){return new o({id:t,type:e}).getAPI()},n.prototype._getProtocol=function(t){var e=t&&t.length>0?t[0].getDataSource():null;return e&&e.getProtocol()},n.prototype.createQuery=function(t){var e=this._getProtocol(t),o=this.queryClasses[e];if(o)return new o({dashboard:this.dashboard,internalQueryService:this.internalQueryService,definitionList:t});throw new Error("Query class is not registered for "+e)},n}(e)})),define("dashboard-analytics/features/dashboard/queryService/api/InternalQueryServiceAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.executeQuery=function(){},t}()})),define("dashboard-analytics/features/dashboard/queryService/InternalQueryService",["../../../lib/@waca/dashboard-common/dist/core/APIFactory","./api/InternalQueryServiceAPI","../../../widgets/livewidget/query/QueryService"],(function(t,e,o){return function(){function i(t){_classCallCheck(this,i),this.dashboardApi=t.features.API,this.queryService=new o({dashboardApi:this.dashboardApi})}return i.prototype.getAPI=function(){return this.api||(this.api=t.createAPI(this,[e])),this.api},i.prototype.executeQuery=function(t,e,o){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.queryService.runQuery({sourceIdOrModule:t,querySpec:e,requestOptions:i,sender:o})},i}()})),define("dashboard-analytics/features/dashboard/queryService/api/QueryAPI2",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.getSpecList=function(){},t.prototype.execute=function(){},t.prototype.registerFaultHandler=function(){},t.prototype.registerPostProcessor=function(){},t.prototype.registerSaveRawDataHandler=function(){},t.prototype.getWarningList=function(){},t}()})),define("dashboard-analytics/features/dashboard/visDefinitions/api/VisDefinitionsAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.getList=function(){},t.prototype.getById=function(){},t.prototype.getByType=function(){},t.prototype.refresh=function(){},t.prototype.loadById=function(){},t.prototype.on=function(){},t.prototype.off=function(){},t.prototype.registerModifier=function(){},t.prototype.deregisterModifier=function(){},t}()})),define("dashboard-analytics/features/dashboard/visDefinitions/api/InternalVisDefinitionsAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.getRawDefinition=function(){},t.prototype.getAll=function(){},t}()})),define("dashboard-analytics/features/dashboard/visDefinitions/api/VisDefinitionsAPISpec",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.getAPISpec=function(){return this.apiSpec||(this.apiSpec={name:"visDefinitions API",events:{propagationInfo:{namespace:"visdefinitions",info:{name:"VisDefinitions"},callStack:{name:"getFeature",params:["VisDefinitions"]}},actions:{refresh:{type:"refresh",getEventName:function(){return"all"},getUndoActions:function(){return[{name:"refresh"}]}}}}}),this.apiSpec},t}()})),define("dashboard-analytics/api/VisDefinitionAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.getType=function(){},t.prototype.getId=function(){},t.prototype.getDatasetList=function(){},t.prototype.getLabel=function(){},t.prototype.getPreferredSize=function(){},t.prototype.getSlot=function(){},t.prototype.getSlotList=function(){},t.prototype.getIcon=function(){},t.prototype.getIconUri=function(){},t.prototype.getPlaceholderIconUri=function(){},t.prototype.getMultiEdgeSort=function(){},t.prototype.getDefaultDatasetId=function(){},t.prototype.refresh=function(){},t.prototype.getState=function(){},t.prototype.getProperty=function(){},t}()})),define("dashboard-analytics/api/impl/VisDefinitionAPISpec",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.getAPISpec=function(){return this.apiSpec||(this.apiSpec={name:"visDefinition API",events:{propagationInfo:{info:{id:this.getId(),type:this.getType()},callStack:{name:"getByType",params:[this.getType()]}},actions:{refresh:{type:"refresh",getEventName:function(){return"definition"},getUndoActions:function(){return[{name:"refresh"}]}}}}}),this.apiSpec},t}()})),define("dashboard-analytics/api/SlotDefinitionAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.getProperty=function(){},t.prototype.getDatasetIdList=function(){},t.prototype.getId=function(){},t.prototype.getCaption=function(){},t.prototype.getIcon=function(){},t.prototype.getType=function(){},t.prototype.getSubType=function(){},t.prototype.getGroupId=function(){},t.prototype.getRole=function(){},t.prototype.isHidden=function(){},t.prototype.isOptional=function(){},t.prototype.getSort=function(){},t.prototype.getSortOrder=function(){},t.prototype.getAggregatedSortInfo=function(){},t.prototype.isSortable=function(){},t.prototype.isStackItems=function(){},t.prototype.getMaxItems=function(){},t.prototype.isMultiMeasureSupported=function(){},t.prototype.isShapable=function(){},t.prototype.getCoachMark=function(){},t.prototype.getFormat=function(){},t.prototype.getTags=function(){},t.prototype.getDefaultFromSlot=function(){},t.prototype.getShowRequiredMarker=function(){},t}()})),define("dashboard-analytics/api/impl/SlotDefinition",["../../lib/@waca/dashboard-common/dist/core/APIFactory","../SlotDefinitionAPI"],(function(t,e){return function(){function o(t){_classCallCheck(this,o),this.slotDefinition=t}return o.prototype.destroy=function(){this.slotDefinition=null},o.prototype.getProperty=function(t){return this.slotDefinition[t]},o.prototype.getAPI=function(){return t.createAPI(this,[e])},o.prototype.getDatasetIdList=function(){return this.slotDefinition.datasetIdList},o.prototype.getId=function(){return this.slotDefinition.id},o.prototype.getType=function(){return this.slotDefinition.type},o.prototype.getSubType=function(){return this.slotDefinition.subtype},o.prototype.getCaption=function(){return this.slotDefinition.caption},o.prototype.getIcon=function(){return this.slotDefinition.icon},o.prototype.getGroupId=function(){return this.slotDefinition.group},o.prototype.getRole=function(){return this.slotDefinition.role},o.prototype.isHidden=function(){return this.slotDefinition.hidden||!1},o.prototype.isOptional=function(){return this.slotDefinition.optional||!1},o.prototype.getSort=function(){return this.slotDefinition.sort},o.prototype.getSortOrder=function(){return this.slotDefinition.sortOrder},o.prototype.getAggregatedSortInfo=function(){return this.slotDefinition.clientSideAggregatedAndSortInfo},o.prototype.isSortable=function(){return this.slotDefinition.sortable||!1},o.prototype.isStackItems=function(){return this.slotDefinition.stackItems||!1},o.prototype.getMaxItems=function(){return void 0===this.slotDefinition.maxItems?this.slotDefinition.maxStackItems:this.slotDefinition.maxItems},o.prototype.isMultiMeasureSupported=function(){return this.slotDefinition.multiMeasure||!1},o.prototype.isShapable=function(){return this.slotDefinition.shapable||!1},o.prototype.getCoachMark=function(){return this.slotDefinition.coachMark},o.prototype.getFormat=function(){return this.slotDefinition.format},o.prototype.getTags=function(){return this.slotDefinition.tags},o.prototype.getDefaultFromSlot=function(){return this.slotDefinition.defaultFromSlot},o.prototype.getShowRequiredMarker=function(){return!1!==this.slotDefinition.showRequiredMarker},o}()})),define("dashboard-analytics/api/VisDefinitionStateAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.getError=function(){},t}()})),define("dashboard-analytics/api/impl/VisDefinitionState",["../../lib/@waca/dashboard-common/dist/core/APIFactory","../VisDefinitionStateAPI"],(function(t,e){return function(){function o(){_classCallCheck(this,o)}return o.prototype.getAPI=function(){return this._api||(this._api=t.createAPI(this,[e])),this._api},o.prototype.destroy=function(){this._api=null},o.prototype.getError=function(){return this._error},o.prototype.setError=function(t){this._error=t},o}()})),define("dashboard-analytics/api/impl/VisDefinition",["underscore","../VisDefinitionAPI","./VisDefinitionAPISpec","../../lib/@waca/dashboard-common/dist/core/APIFactory","./SlotDefinition","./VisDefinitionState"],(function(t,e,o,i,n,r){var a={width:520,height:400};return function(o){function s(t,e){_classCallCheck(this,s);var i=_possibleConstructorReturn(this,o.call(this));return i.visDefinitionManager=e,i.visSpec=t,i.slotDefinitionImpls=[],i.slotDefinitionAPIs=[],i._visDefinitionStateImpl=new r,i}return _inherits(s,o),s.prototype.destroy=function(){this.slotDefinitionImpls&&this.slotDefinitionImpls.forEach((function(t){return t.destroy()})),this.slotDefinitionImpls=null,this.visDefinitionManager=null,this.visSpec=null,this.slotDefinitionAPIs=null,this._visDefinitionStateImpl=null},s.prototype.getAPI=function(){return i.createAPI(this,[e])},s.prototype.getType=function(){return this.visSpec.type},s.prototype.getId=function(){return this.visSpec.id},s.prototype.getDatasetList=function(){return t.map(this.visSpec.datasets,(function(t){return{id:t.name,caption:t.caption,optional:t.optional,suppressMissing:t.suppressMissing,needsSorted:t.needsSorted,requiresValues:t.requiresValues}}))},s.prototype.getLabel=function(){return this.visSpec.label},s.prototype.getIcon=function(){return this.visSpec.icon},s.prototype.getIconUri=function(){return this.visSpec.iconUri},s.prototype.getPlaceholderIconUri=function(){return this.visSpec.placeholderIcon},s.prototype.getPreferredSize=function(){return this.visSpec.preferredSize||a},s.prototype.getSlot=function(t){return this.getSlotList().find((function(e){return e.getId()===t}))},s.prototype.getSlotList=function(){var e=this;return 0===this.slotDefinitionAPIs.length&&t.each(this.visSpec.dataSlots,(function(t){var o=new n(t);e.slotDefinitionImpls.push(o),e.slotDefinitionAPIs.push(o.getAPI())})),this.slotDefinitionAPIs},s.prototype.getMultiEdgeSort=function(){return this.visSpec.queryHints&&this.visSpec.queryHints.multiEdgeSort},s.prototype.getDefaultDatasetId=function(){return this.visSpec.defaultDatasetId||void 0},s.prototype.getState=function(){return this._visDefinitionStateImpl.getAPI()},s.prototype.setError=function(t){this._visDefinitionStateImpl.setError(t)},s.prototype.refresh=function(){var t=this,e=this.visSpec.id;return this.visDefinitionManager.refresh(e).then((function(e){return t.visSpec=e,t.getState().getError()&&!e.empty&&t.setError(void 0),t.slotDefinitionAPIs=[],e}))},s.prototype.getProperty=function(t){return this.visSpec[t]},s}(o)})),define("dashboard-analytics/features/dashboard/visDefinitions/api/impl/VisDefinitions",["../../../../../lib/@waca/dashboard-common/dist/core/APIFactory","../VisDefinitionsAPI","../InternalVisDefinitionsAPI","../VisDefinitionsAPISpec","../../../../../api/VisDefinitionAPI","../../../../../api/impl/VisDefinition","../../../../../visualizations/definitions/VisDefinitionManager","../../../../../widgets/livewidget/util/VisUtil"],(function(t,e,o,i,n,r,a,s){return function(i){function l(n){_classCallCheck(this,l);var r=_possibleConstructorReturn(this,i.call(this));return r.dashboard=n.features.API,r.visDefinitionManager=new a({dashboardApi:r.dashboard}),r.internalAPI=t.createAPI(r,[e,o]),r.api=t.createAPI(r,[e]),r._definitionAPIMap=null,r._definitionsJSON=null,r._modifiers=[],r}return _inherits(l,i),l.prototype.getAPI=function(t){return"internal"===t?this.internalAPI:this.api},l.prototype.destroy=function(){if(this._definitionAPIMap)for(var t in this._definitionAPIMap.implById)this._definitionAPIMap.implById[t].destroy();this._definitionsJSON=null,this._definitionAPIMap=null,this.dashboard=null,this.visDefinitionManager=null,this.internalAPI=null,this.api=null,this._modifiers=null},l.prototype.initialize=function(){var t=this;return this._definitionAPIMap?Promise.resolve(this._definitionAPIMap):this.visDefinitionManager.getAll(this.dashboard).then((function(e){return t._definitionsJSON=e,t._createDefinitionAPIMap(e)}))},l.prototype._createDefinitionAPIMap=function(){var e=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=!this.dashboard.getGlassCoreSvc(".FeatureChecker").checkValue("dashboard","xtabcondFormat","disabled");return this._definitionAPIMap=o.jsonDefinitions.reduce((function(o,a){var s=(a=e.modifyDefinition(a)).id;!i||"crosstab"!==s&&"JQGrid"!==s||(a=JSON.parse(JSON.stringify(a))).dataSlots.forEach((function(t){"heat"===t.id&&(t.hidden=!0)}));var l=new r(a,e.visDefinitionManager),u=t.createAPI(l,[n]);return e._addToDefinitionMap(o,l,u),o}),{implById:{},byId:{},byType:{},list:[]}),this._definitionAPIMap},l.prototype._addToDefinitionMap=function(e,o,i){var n=i.getId();e.implById[n]=o,e.byId[n]=i,e.byType[i.getType()||n]=i,e.list.push(i),t.setParentChildRelation(this,o)},l.prototype.getList=function(){return(this._definitionAPIMap&&this._definitionAPIMap.list||[]).filter((function(t){return!t.getState().getError()}))},l.prototype.loadById=function(t){return this.visDefinitionManager.get(t)},l.prototype.getById=function(t){var e=this._definitionAPIMap&&this._definitionAPIMap.byId[t];if(!e){var o=new r({id:t,type:t},this.visDefinitionManager);e=o.getAPI(),this._addToDefinitionMap(this._definitionAPIMap,o,e),o.setError(s.createVisDefinitionLoadingError(t))}return e},l.prototype.getByType=function(t){return this._definitionAPIMap&&this._definitionAPIMap.byType[t]},l.prototype.refresh=function(){var t=this;return this.visDefinitionManager.refreshProviders(this.dashboard).then((function(e){t._definitionsJSON=e,t._createDefinitionAPIMap(e)}))},l.prototype.getAll=function(){return this.visDefinitionManager.getAll(this.dashboard)},l.prototype.getRawDefinition=function(t){var e=this._definitionAPIMap.implById[t],o=e&&e.getState().getError();if(o||e||(o=s.createVisDefinitionLoadingError(t)),o)throw o;return this._definitionAPIMap.implById[t].visSpec},l.prototype.modifyDefinition=function(t){return this._modifiers.length>0&&(t=JSON.parse(JSON.stringify(t)),this._modifiers.forEach((function(e){try{e.modifyDefinition(t)}catch(t){}}))),t},l.prototype.registerModifier=function(t){-1===this._modifiers.indexOf(t)&&"function"==typeof t.modifyDefinition&&(this._modifiers.push(t),this._definitionsJSON&&this._createDefinitionAPIMap(this._definitionsJSON))},l.prototype.deregisterModifier=function(t){var e=this._modifiers.indexOf(t);-1!==e&&(this._modifiers.splice(e,1),this._definitionsJSON&&this._createDefinitionAPIMap(this._definitionsJSON))},l}(i)})),define("dashboard-analytics/features/dashboard/globalFilters/api/GlobalFiltersAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.getFilters=function(){},t.prototype.getFilterList=function(){},t.prototype.removeFilters=function(){},t.prototype.clearFilters=function(){},t}()})),define("dashboard-analytics/features/dashboard/globalFilters/Filters",["underscore","../../../lib/@waca/dashboard-common/dist/core/APIFactory","../../../api/FiltersAPI","../../../filters/VisFilterProxy","../../../filters/Filters"],(function(t,e,o,i,n){var r=["id","sourceId","dataType","usage","origin","scope","hierarchyUniqueNames","tupleSet","exclude"];return function(){function a(t,i,n){if(_classCallCheck(this,a),this.dashboard=t,this.dataSources=t.getFeature("DataSources"),this.sourceId=i,!this.sourceId){var r=this.dataSources.getDataSourceList(),s=r&&r.length&&r[0].getId();this.sourceId=s||this.sourceId}this.scope=n,this.logger=t.getService(".Logger"),this.api=e.createAPI(this,[o])}return a.prototype.destroy=function(){this.dashboard=null},a.prototype.getAPI=function(){return this.api},a.prototype.getFiltersDesc=function(){throw"This function is not implemented for global filters"},a.prototype._convertFilters=function(t,e){new i({selectors:e,input:this._getPageContextApi(),output:t,logger:this.logger}).convertFilters()},a.prototype.getFilterList=function(){var t=new n;return this._convertFilters(t,{origin:"filter",scope:this.scope||"global",sourceId:this.sourceId,_strictMatch:!0}),t.toJSON()},a.prototype.filterExists=function(t){var e=this._getPageContextApi(),o=this._getPageContextSelector(t);return!!e.getPageContextItem(o)},a.prototype.addFilter=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments[2];return this._updateFilter("update",t,e,o)},a.prototype.editFilter=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments[2];return this._updateFilter("replace",t,e,o)},a.prototype.removeFilter=function(t,e){var o=this._getPageContextApi(),i=this._getPageContextSelector(t),n=o.getPageContextItem(i);if(n){var r=this._getDeleteItemSpec(n),a=this._getFilterSpec("delete"),s=this._applyTransactionToken(e);return o.updateFilterContext(r,a,s)}return!1},a.prototype._updateFilter=function(e,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=this._getPageContextApi(),s=this._getFilterItemSpec(o,i),l=this._getFilterSpec(e,i),u=this._applyTransactionToken(n);u.silent=!1;var c=a.updateFilterContext(s,l,u);return t.pick(c,r)},a.prototype._applyTransactionToken=function(t){var e={};return t&&t.transactionId&&(e={payloadData:{undoRedoTransactionId:t.transactionId,transactionToken:t}}),e},a.prototype._getPageContextApi=function(){return this.dashboard.getFeature("PageContextService").getPageContext()},a.prototype._getFilterMetadataColumn=function(t){return this.dataSources.getDataSource(this.sourceId).getMetadataColumn(t)},a.prototype._getPageContextSelector=function(t){return t.sourceId=t.sourceId||this.sourceId,t.scope=t.scope||this.scope||"global",t._strictMatch=!0,t},a.prototype._getFilterItemSpec=function(e,o){if(!(e=this._getPageContextSelector(e)).itemId&&t.isArray(e.itemIds))e.hierarchyUniqueNames=e.itemIds,e.hierarchies=t.map(e.itemIds,(function(t){return{hierarchyUniqueName:t}}));else{var i=this._getFilterMetadataColumn(e.itemId);e=t.extend(e,{itemName:i.getLabel(),dataType:i.getDataType(),usage:i.getType(),isHierarchy:i.isHierarchy(),isNamedSet:i.isNamedSet(),openViewOnLoad:o&&o.openViewOnLoad||!1})}return e},a.prototype._getDeleteItemSpec=function(t){return{item:t,scope:this.scope||"global",origin:"filter"}},a.prototype._getFilterSpec=function(e,o){var i={command:e||"update",exclude:!(!o||!o.exclude)};return o&&o.operator?this._getFilterSpecByOperator(i,o):(o&&o.values?i=t.extend(i,{values:o.values}):o&&o.condition&&(i=t.extend(i,{condition:o.condition})),i)},a.prototype._getFilterSpecByOperator=function(e,o){if("in"===o.operator||"notin"===o.operator)e=t.extend(e,{values:o.values}),"notin"===o.operator&&(e.exclude=!0);else if("between"===o.operator||"notbetween"===o.operator){var i={from:o.values[0].u,to:o.values[1].u};e=t.extend(e,{condition:i}),"notbetween"===o.operator&&(i.invert=!0)}else if("gt"===o.operator){var n={from:o.values[0].u,to:""};e=t.extend(e,{condition:n})}else if("lt"===o.operator){var r={from:"",to:o.values[0].u};e=t.extend(e,{condition:r})}return e},a}()})),define("dashboard-analytics/features/dashboard/globalFilters/GlobalFilters",["../../../lib/@waca/dashboard-common/dist/core/APIFactory","./api/GlobalFiltersAPI","./Filters","../../../filters/Filters","../../../filters/VisFilterProxy","../../../dataSources/utils/DatasourceUtil","underscore"],(function(t,e,o,i,n,r,a){return function(){function s(t){_classCallCheck(this,s),this.dashboard=t.features.API,this.logger=t.features.Logger}return s.prototype._getPageContext=function(){var t=this.dashboard.getFeature("PageContextService");return t&&t.getPageContext()},s.prototype.destroy=function(){this.dashboard=null},s.prototype.getAPI=function(){return this.api||(this.api=t.createAPI(this,[e])),this.api},s.prototype.getFilters=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"global",i=new o(this.dashboard,t,e);return i.getAPI()},s.prototype._getContent=function(t){return this.dashboard.getCanvas().getContent(t)},s.prototype.getFilterList=function(t,e){var o=e&&this._getWidgetSlots(e),r=new i;return new n({selectors:t,pageContextItems:this._getPageContextItemsByTableRelation(t,e),input:r,output:r,logger:this.logger}).convertFilters(o,{content:this._getContent(e)}),r.toJSON()},s.prototype.removeFilters=function(t,e,o){return o=this._applyTransactionToken(e,o),this._getPageContext().deletePageContextItems(t,o)},s.prototype.clearFilters=function(t,e){var o=this._applyTransactionToken(e);return this._getPageContext().clearPageContextItemValues(t,o)},s.prototype._getWidgetSlots=function(t){var e=this.dashboard.getCanvas().getContent(t);if(e){var o=e.getFeature("Visualization"),i=o&&o.getSlots();return i?i.getMappedSlotList():null}return null},s.prototype._getPageContextItemsByTableRelation=function(t,e){var o=this._getPageContext().getNetPageContextItems(t)||[];if(!o.length||!t.sourceId)return o;var i=this.dashboard.getFeature("DataSources").getDataSource(t.sourceId),n=this.dashboard.getFeature("DataSources.moser"),s=null;if(e){var l=this.dashboard.getCanvas().getContent(e);if(l){var u=l.getFeature("Visualization");s=u&&u.getSlots()}}var c=s?s.getDataItemList().map((function(t){return t.getColumnId()})):[],d=r.getTableRef(i,c),p=function(t){return!t||a.every(t,(function(t){return!t}))};return o.filter((function(t){return!r.mustVerifyJoinTablesInSameDataSource(i,t,c,n)||function(t){if(p(d))return!0;var e=r.getPageContextItemTableRef(i,t);return p(e)||r.haveTableJoinsInSameDataSource(i,e,d)}(t)}))},s.prototype._applyTransactionToken=function(t,e){return t&&t.transactionId&&((e=e||{}).payloadData={undoRedoTransactionId:t.transactionId,transactionToken:t}),e},s}()})),define("dashboard-analytics/features/dashboard/recommender/api/InternalRecommenderAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.getChartTypeList=function(){},t}()})),define("dashboard-analytics/visualizations/recommender/VisRecommenderUtils",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.buildChartTypes=function(t){var e=[];return t?((e=t.map((function(t){return t.getType()}))).push("ClusteredBar","ClusteredColumn","ClusteredLine","ClusteredPoint","HierarchicalPie","StackedArea"),e):e},t}()})),define("dashboard-analytics/features/dashboard/recommender/InternalRecommender",["../../../lib/@waca/dashboard-common/dist/core/APIFactory","./api/InternalRecommenderAPI","../../../visualizations/recommender/VisRecommenderUtils"],(function(t,e,o){return function(){function i(o){_classCallCheck(this,i),this._api=t.createAPI(this,[e]),this.features=o.features}return i.prototype.getAPI=function(){return this._api},i.prototype.getChartTypeList=function(){var t=[];try{var e=this.features.VisDefinitions.getList();t=o.buildChartTypes(e)}catch(t){this.features.Logger.error(t)}return t},i}()})),define("dashboard-analytics/features/dashboard/prompts/api/PromptsAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.isPromptFault=function(){},t.prototype.getPromptSpecList=function(){},t.prototype.openPromptView=function(){},t}()})),define("dashboard-analytics/features/dashboard/prompts/Prompts",["../../../lib/@waca/dashboard-common/dist/core/APIFactory","./api/PromptsAPI","../../../DynamicFileLoader","../../../lib/@waca/core-client/js/core-client/nls/StringResources","../../../widgets/livewidget/nls/StringResources","underscore"],(function(t,e,o,i,n,r){return function(){function a(t){_classCallCheck(this,a),this.SEARCH_AND_SELECT="searchAndSelect",this.INPUT_BOX="inputBox",this.CALENDAR="calendar",this.RANGE="range",this.CANCEL="cancelPromptDialog",this.UNSUPPORTED_PROMPT_TYPE="unSupportedPromptType",this.PROMPT_PROPERTIES=["name","capabilities","dataType","modelFilterItem"],this.SAVED_PROMPT_PROPERTIES=["name","capabilities","dataType","values","modelFilterItem"],this.promptModules={searchAndSelect:"dashboard-analytics/features/dashboard/prompts/controls/SearchAndSelectPromptView",inputBox:"dashboard-analytics/features/dashboard/prompts/controls/InputPromptView",calendar:"dashboard-analytics/features/dashboard/prompts/controls/DateTimePromptView",range:"dashboard-analytics/features/dashboard/prompts/controls/RangePromptView"},this.dashboard=t.dashboardApi,this.logger=this.dashboard.getGlassCoreSvc(".Logger"),this._inProgressMap={},this._pendingPrompts=[];var e=this.dashboard.getGlassCoreSvc(".UserProfile").preferences;this._timeZone=e.timeZoneID||"America/New_York",this._locale=e.productLocale||"en"}return a.prototype.destroy=function(){this.promptDialog&&(this.promptDialog.destroy(),this.promptDialog=null),this.dashboard=null,this._pendingPrompts=null,this._timeZone=null,this._locale=null},a.prototype.getAPI=function(){return this.api||(this.api=t.createAPI(this,[e])),this.api},a.prototype.isPromptFault=function(t){return 412===t.status&&t.responseJSON&&t.responseJSON.errors&&t.responseJSON.errors.length},a.prototype.openPromptView=function(t,e){var o=this;if(!t||!t.length)return this.logger.error("Invalid prompt spec"),Promise.reject();var i=this._getDataSource(t,e);if(!i)return this.logger.error("Cannon find related data source for selected prompts"),this._onUnSupportedPrompt();var n=this._buildPromptValueList(t,i.getId(),e);if(n.length>0&&e.isPreview()&&n.some((function(t){return!t.values})))return Promise.reject(new Error("promptingIsDisabled"));var a=r.pluck(n,"promptValuesPromise"),s=r.pluck(n,"name");return Promise.all(a).then((function(t){var e=[];return t.forEach((function(t,r){var a={};a.info=n[r],a.queryResult=t,a.dialogName="dashboard-analytics/lib/@waca/core-client/js/core-client/ui/dialogs/GenericViewDialog",n[r].showView?e.push(o._showPromptView(a,s,i.getId())):e.push(Promise.resolve(n[r]))})),Promise.all(e).then((function(t){var e=[];return r.each(t,(function(t){e.push(t)})),e})).catch((function(t){throw t&&t.name&&o._removeInProgressAndExecuteNext(t.name),t}))})).catch((function(t){var e=r.keys(o._inProgressMap);throw e&&e.length&&o._removeInProgressAndExecuteNext(e[0]),t}))},a.prototype.getPromptSpecList=function(t){var e=t.responseJSON.errors[0];if(e&&e.code){var o=e.parameters;if(o&&0!==o.length)return r.map(o,(function(t){return t.value.name=t.name,t.value}))}},a.prototype._getDataSource=function(t,e){var o=null;if(e)o=e.getDataSource();else{var i=r.find(t,(function(t){return t.modelFilterItem}));if(i)o=this.dashboard.getFeature("DataSources").getDataSourceList().forEach((function(t){return t.getMetadataColumn(i)}))}return o},a.prototype._onCancelPromptDialog=function(){this.dashboard.undo()},a.prototype._onUnSupportedPrompt=function(){var t=this;return o.load(["dashboard-analytics/lib/@waca/core-client/js/core-client/ui/dialogs/ConfirmationDialog"]).then((function(e){new e[0]("warning","",n.get(t.UNSUPPORTED_PROMPT_TYPE)).confirm(t._onCancelPromptDialog.bind(t),t._onCancelPromptDialog.bind(t))})),Promise.reject(new Error(this.UNSUPPORTED_PROMPT_TYPE))},a.prototype._buildPromptValueList=function(t,e,o){var i=this,n=[],a=o&&o.getSavedPrompts();return r.each(t,(function(t){var o=a&&a.getPromptSpec(t.name),s=void 0;o?(s=r.pick(o,i.SAVED_PROMPT_PROPERTIES),t.capabilities.optional&&s.values[0]&&s.values[0].mun?(s.values[0]=s.values[0].mun,s.showView=!1):t.rePrompt&&(s.showView=!0,s.rePrompt=!0,i._initViewInfo(e,s,t))):(s=r.pick(t,i.PROMPT_PROPERTIES),t.capabilities.optional?(s.values=["nil"],s.showView=!1):(s.showView=!0,i._initViewInfo(e,s,t))),s.showView||(s.promptValuesPromise=Promise.resolve()),n.push(s)})),n},a.prototype._initViewInfo=function(t,e,o){switch(e.promptModuleName=this._getPromptModuleName(o),e.columnId=e.modelFilterItem,this.queryService||(this.queryService=this.dashboard.getFeature("QueryService")),e.promptModuleName){case this.SEARCH_AND_SELECT:e.promptValuesPromise=this.queryService.getColumnValues(t,e.columnId);break;case this.RANGE:e.promptValuesPromise=this.queryService.getColumnMinMaxValues(t,e.columnId);break;default:e.promptValuesPromise=Promise.resolve()}},a.prototype._getPromptModuleName=function(t){var e=void 0;switch(t.dataType){case"xsdDate":case"xsdDateTime":case"xsdTime":e=t.capabilities.multivalued&&t.capabilities.discreteValue&&t.modelFilterItem?this.SEARCH_AND_SELECT:this.CALENDAR;break;case"xsdInt":case"xsdLong":case"xsdShort":case"xsdFloat":case"xsdDecimal":case"xsdDouble":e=t.modelFilterItem&&t.capabilities.multivalued?t.capabilities.discreteValue?this.SEARCH_AND_SELECT:this.RANGE:this.INPUT_BOX;break;case"xsdString":e=t.modelFilterItem?this.SEARCH_AND_SELECT:this.INPUT_BOX;break;default:e=this.INPUT_BOX}return e},a.prototype._showPromptView=function(t,e,o,i){var n=t.info.name,a=this._inProgressMap[n];if(!a)if(a=i||Promise.defer(),t.promptViewPromise=a,this._isPrompting()){var s=r.find(this._pendingPrompts,(function(t){return t.id===n}));s?a=s.pendingViewPromise:(s={id:n,promptFunction:this._showPromptView.bind(this,t,e,o,a),pendingViewPromise:a},this._pendingPrompts.push(s))}else this._inProgressMap[n]=a,this._prepareAndOpenDialog(t,e,o);return a.promise},a.prototype._prepareAndOpenDialog=function(t,e,o){var n=t.info.caption||t.info.name;switch(t.viewTitle=i.get("promptControlTitle",{paramLabel:n}),t.viewOptions=r.pick(t.info,["promptModuleName","name","dataType","capabilities"]),t.viewOptions.viewTitle=t.viewTitle,t.info.promptModuleName){case this.INPUT_BOX:t.viewOptions.label=n;break;case this.CALENDAR:t.viewOptions.columnId=t.info.modelFilterItem,t.viewOptions.timezone=this._timeZone,t.viewOptions.locale=this._locale;break;case this.SEARCH_AND_SELECT:t.viewOptions.columnId=t.info.modelFilterItem,t.viewOptions.singleSelect=!t.info.capabilities.multivalued,t.viewOptions.queryResult=t.queryResult,t.viewOptions.getColumnValues=this.queryService.getColumnValues.bind(this,o);break;case this.RANGE:t.viewOptions.columnId=t.info.modelFilterItem,t.viewOptions.queryResult=t.queryResult,t.viewOptions.getColumnMinMaxValues=this.queryService.getColumnMinMaxValues.bind(this,o)}return this._openPromptDialog(t,e)},a.prototype._openPromptDialog=function(t,e){var n=this;return o.load([this.promptModules[t.info.promptModuleName]]).then((function(r){var a={showCloseX:!1,buttons:[{text:i.get("ok"),handler:n.onOk.bind(n,t),type:"primary",defaultId:"ok_button"},{text:i.get("cancel"),handler:n.onCancel.bind(n,t,e),type:"secondary",defaultId:"cancel_button"}],title:t.viewOptions.viewTitle,titleAriaLabel:i.get("promptDialogTitle",{paramLabel:t.label}),viewClass:r[0],viewOptions:t.viewOptions};return t.info.values&&(t.viewOptions.defaultValues=t.info.values),t.viewOptions.enableOk=n.enableOk.bind(n),o.load([t.dialogName]).then((function(t){var e=t[0];n.promptDialog=new e(a),n.promptDialog.open()}))})).then((function(){n.promptDialog.viewOptions.promptModuleName!==n.RANGE&&n.promptDialog.viewOptions.promptModuleName!==n.CALENDAR&&n.promptDialog.disableOk()})).catch((function(e){n.logger.error("Could not open prompt dialog",e),t.promptViewPromise.reject(r.extend(e,{name:t.info.name}))}))},a.prototype.onOk=function(t){this._removeInProgressAndExecuteNext(t.info.name);var e=void 0;e=this.promptDialog.view.getPromptValues?this.promptDialog.view.getPromptValues():[];var o=t.info;return o.values=r.map(e,(function(t){return"object"===(void 0===t?"undefined":_typeof(t))?r.pick(t,["value","label"]):{value:t,label:t}})),this.promptDialog.hide(),t.promptViewPromise.resolve(o)},a.prototype.onCancel=function(t,e){this._cleanPromptCache(t.info.name,e),this.promptDialog.hide(),t.info.rePrompt||this._onCancelPromptDialog();var o=new Error(this.CANCEL);return o.name=t.info.name,t.promptViewPromise.reject(o)},a.prototype.enableOk=function(t){this.promptDialog.enableOk(t)},a.prototype._isPrompting=function(){return r.size(this._inProgressMap)>0},a.prototype._executeNextPrompt=function(){if(this._pendingPrompts.length>0)return this._pendingPrompts.shift().promptFunction()},a.prototype._removeInProgressAndExecuteNext=function(t){delete this._inProgressMap[t],this._executeNextPrompt()},a.prototype._cleanPromptCache=function(t,e){this._pendingPrompts=r.filter(this._pendingPrompts,(function(t){return-1===e.indexOf(t.id)})),delete this._inProgressMap[t]},a}()})),define("text!dashboard-analytics/features/dashboard/prompts/controls/templates/BasePromptView.html",[],(function(){return'{{? it.promptModuleName === \'searchAndSelect\'}}\n<div class="searchWrapper" role="search">\n\t<span class="wfg_search"></span>\n\t<input type="search" class="search" tabindex="0">\n\t<span class="wfg_remove"></span>\n</div>\n{{?}}\n<div class="content"></div>\n{{? it.promptModuleName === \'range\'}}\n<div class="filterAggregateOption">\n\t<div aria-label="{{=it.preAggregateText}}">\n\t\t{{=it.preAggregateText}}\n\t</div>\n</div>\n{{?}}\n'})),define("text!dashboard-analytics/features/dashboard/prompts/controls/templates/DateTimePromptContent.html",[],(function(){return'<div class="dateRow">\n{{? it.dataType === \'xsdDate\' || it.dataType === \'xsdDateTime\'}}\n\t<div class=\'dateContainer\'>\n\t\t<span class="dateTitle"></span>\n\t\t<div class="dateRowStart" ></div>\n\t</div>\n{{?}}\n{{? it.dataType === \'xsdTime\' || it.dataType === \'xsdDateTime\'}}\n\t<div class=\'timeContainer\'>\n\t\t<span class="timeTitle"></span>\n\t\t<div class="timeRowStart"></div>\n\t</div>\n</div>\n{{?}}\n\n{{?it.isRangePrompt}}\n<div class="dateRow">\n\t<div class=\'dateContainer\'>\n\t\t<span class="dateTitle"></span>\n\t\t<div class="dateRowEnd"></div>\n\t</div>\n\n\t<div class=\'timeContainer\'>\n\t\t<span class="timeTitle"></span>\n\t\t<div class="timeRowEnd"></div>\n\t</div>\n</div>\n{{?}}'})),define("dashboard-analytics/features/dashboard/prompts/controls/DateTimePromptView",["../../../../lib/@waca/core-client/js/core-client/ui/AccessibleView","underscore","app/nls/StringResources","text!./templates/BasePromptView.html","text!./templates/DateTimePromptContent.html","../../../../lib/@waca/core-client/js/core-client/ui/widgets/DatePicker","../../../../lib/@waca/core-client/js/core-client/ui/widgets/TimePicker","../../../../lib/@waca/core-client/js/core-client/utils/DateTimeUtils","moment-timezone","doT"],(function(t,e,o,i,n,r,a,s,l,u){"use strict";var c=t.extend({DATE_TIME_FORMAT:"YYYY-MM-DDTHH:mm:ss",_iHeight:"212",startDate:null,endDate:null,startTime:null,endTime:null,timezone:null,init:function(t){c.inherited("init",this,arguments),e.extend(this,t),this._isRangePrompt=t.capabilities.multivalued&&!t.capabilities.discreteValue,t.timezone?this.timezone=t.timezone:this.timezone="America/New_York",this.locale=t.locale||"en",this.is24HrFormat=s.is24HrFormat(this.locale)},render:function(){var t=u.template(i)({promptModuleName:this.promptModuleName});this.$el.addClass("popoverDialogContainer promptViewDialog").height(this._iHeight+"px").width(this._iWidth+"px").append(t),this.$el.attr("role","region"),this.$el.attr("aria-label",this.viewTitle);var e=o.get("dateTitle"),r=o.get("timeTitle"),a=u.template(n)({dataType:this.dataType,isRangePrompt:this._isRangePrompt});return this.$(".content").append(a),new Promise(function(t){switch(this.dataType){case"xsdDate":this._renderDate().then(function(){this.$el.find(".dateTitle").text(e),t(this)}.bind(this));break;case"xsdDateTime":this._renderDateTime().then(function(){this.$el.find(".dateTitle").text(e),this.$el.find(".timeTitle").text(r),t(this)}.bind(this));break;case"xsdTime":this._renderTime().then(function(){this.$el.find(".timeTitle").text(r),t(this)}.bind(this));break;default:t(this)}}.bind(this))},_getDateTimes:function(){var t=[];if(this.defaultValues){var e=l.tz(this.defaultValues[0].label||this.defaultValues[0].d,this.DATE_TIME_FORMAT,this.timezone);if(t.push(e.toDate()),this.defaultValues.length>1){var o=l.tz(this.defaultValues[1].label||this.defaultValues[1].d,this.DATE_TIME_FORMAT,this.timezone);t.push(o.toDate())}}else{var i=l();i.locale(this.locale);var n=(new Date).toISOString().replace(/\..*/,""),r=i.tz(n,this.timezone).toDate();t=[r,r]}return t},_renderDate:function(){var t=this._getDateTimes();this.$el.find(".dateContainer").css("display","inline-flex"),this.startDate=new r({$el:this.$el.find(".dateRowStart"),labelText:"",ariaLabelText:o.get("dateTitle"),timezone:this.timezone,locale:this.locale,attributes:{firstDay:1,defaultDate:t[0],inputFieldDate:t[0]},setOnSelect:!0,setDiv:this.$el});var e=[];return e.push(this.startDate.render()),this._isRangePrompt&&(this.endDate=new r({$el:this.$el.find(".dateRowEnd"),labelText:"",ariaLabelText:o.get("dateTitle"),timezone:this.timezone,locale:this.locale,attributes:{firstDay:1,defaultDate:t[1],inputFieldDate:t[1]},setOnSelect:!1,setDiv:this.$el}),e.push(this.endDate.render())),Promise.all(e)},_renderTime:function(){this.$el.find(".timeContainer").css("display","inline-flex");var t=this._getDateTimes(),e=[];return this.startTime=new a({$el:this.$el.find(".timeRowStart"),timezone:this.timezone,ariaLabel:o.get("timeTitle"),setDiv:this.$el,attributes:{minuteStep:1,showMeridian:!this.is24HrFormat,defaultTime:t[0]}}),e.push(this.startTime.render()),this._isRangePrompt&&(this.endTime=new a({$el:this.$el.find(".timeRowEnd"),timezone:this.timezone,ariaLabel:o.get("timeTitle"),setDiv:this.$el,attributes:{minuteStep:1,showMeridian:!this.is24HrFormat,defaultTime:t[1]}}),e.push(this.endTime.render())),Promise.all(e)},_renderDateTime:function(){return this._renderDate().then(this._renderTime.bind(this)).then(function(){this.$el.find(".timeContainer").css("display","inline-flex"),this.$el.find(".dateContainer").css("display","inline-flex"),this._iWidth=500,this.$el.width(this._iWidth+"px"),this.$el.find(".flexFifty").css("flex","2 33%")}.bind(this))},setFocus:function(){(this.startDate?this.startDate.$el.find("input"):this.startTime.$el.find("input")).focus()},getPromptValues:function(){var t;switch(this.dataType){case"xsdDate":t=this._getDateValues();break;case"xsdDateTime":t=[];for(var e=this._getTimeValues(),o=this._getDateValues(),i=0;i<o.length;i++)t.push(o[i]+"T"+e[i]);break;case"xsdTime":t=this._getTimeValues()}return t},_getDateValues:function(){var t=[];return this.startDate.isValidDate()&&t.push(this.startDate.getDateVal()),this._isRangePrompt&&this.endDate.isValidDate()&&t.push(this.endDate.getDateVal()),t},_getTimeValues:function(){var t=[];return this.startTime.isValidTime()&&t.push(this.startTime.getTime24HShort()),this._isRangePrompt&&this.endTime.isValidTime()&&t.push(this.endTime.getTime24HShort()),t}});return c})),define("text!dashboard-analytics/features/dashboard/prompts/controls/templates/InputPromptView.html",[],(function(){return'<div>\n\t<div class="inputContainer">\n\t\t<span style="padding: 12px;">{{!it.label}}: </span>\n\t\t<input class="promptInput" type="text" aria-label="{{!it.label}}" tabindex="0"{{?it.value}} value="{{!it.value}}"{{?}}>\n\t</div>\n</div>'})),define("dashboard-analytics/features/dashboard/prompts/controls/InputPromptView",["../../../../lib/@waca/core-client/js/core-client/ui/core/View","text!./templates/BasePromptView.html","text!./templates/InputPromptView.html","underscore","doT"],(function(t,e,o,i,n){"use strict";var r=t.extend({events:{"keyup .promptInput":"_enableOk"},init:function(t){t.height="100px",r.inherited("init",this,arguments),i.extend(this,t)},render:function(){var t=n.template(e)({promptModuleName:this.promptModuleName});this.$el.addClass("promptDialogContainer inputDialog").height(this.height+"px").width(this.width+"px").append(t),this.$el.attr("role","region"),this.$el.attr("aria-label",this.viewTitle);var i=n.template(o)({label:this.label,value:this.defaultValues&&this.defaultValues[0]?this.defaultValues[0].label||this.defaultValues[0].d:null});this.$(".content").append(i)},getPromptValues:function(){return[this.$(".promptInput").val()]},setFocus:function(){this.$(".promptInput").focus()},_enableOk:function(){this.$(".promptInput").val()?this.enableOk(!0):this.enableOk(!1)}});return r})),define("text!dashboard-analytics/features/dashboard/prompts/controls/templates/RangePromptViewContent.html",[],(function(){return'<div class="sliderContent"></div>\n'})),define("dashboard-analytics/features/dashboard/prompts/controls/RangePromptView",["../../../../lib/@waca/core-client/js/core-client/ui/AccessibleView","../../../../util/DashboardFormatter","../../../../lib/@waca/dashboard-common/dist/ui/Slider","../../../../widgets/livewidget/nls/StringResources","text!./templates/BasePromptView.html","text!./templates/RangePromptViewContent.html","jquery","underscore","doT"],(function(t,e,o,i,n,r,a,s,l){"use strict";var u=t.extend({events:{"primaryaction .tooltip-inner":"_enableOk","primaryaction .postAggregate":"_onAggregateTypeChange","primaryaction .preAggregate":"_onAggregateTypeChange"},init:function(t){t.height="150px",t.width="500px",u.inherited("init",this,arguments),s.extend(this,t),s.defaults(t,{style:"dual",sliderId:"slider_filter"}),this.minimized=t.minimized,this.enabled=t.enabled,this.sliderStyle=t.style,this.sliderId=t.sliderId,this._initialDefault={postAggregate:this.postAutoAggregation,defaultValues:this.defaultValues}},render:function(){var t=l.template(n)({promptModuleName:this.promptModuleName,postAggregate:this.postAutoAggregation,preAggregateLabel:i.get("preAggregateLabel"),postAggregateLabel:i.get("postAggregateLabel"),preAggregateText:i.get("preAggregateText")});return this.$el.addClass("promptDialogContainer rangeDialog").height(this.height).width(this.width).append(t),this.$el.attr("role","region"),this.$el.attr("aria-label",this.viewTitle),this.$postAggregateNode=this.$el.find(".postAggregate svg"),this.$preAggregateNode=this.$el.find(".preAggregate svg"),this.$content=this.$(".content"),this.$content.html(r),this.$(".search").attr("placeholder",i.get("search")).attr("aria-label",i.get("search")),this.$(".clearCaption").text(i.get("clearTextFilterValue")),this.$(".rowButton.invertButton").text(i.get("invertFilterSelection")),this._populateContent()},_populateContent:function(){var t=this;return this._slideContent=this.$(".sliderContent"),this._slideContent.empty(),this.minimized||this._showLoading(),this._updateMinMax().then((function(){return t._renderSlider()}))},setFocus:function(){this._rangeSlider&&this._rangeSlider.setFocus()},_renderSlider:function(){this._slideContent.empty(),this.trigger("change:state",{state:"loaded"});var t=this.minMax[0].value,e=this.minMax[1].value,i=[t,e],n={el:this._slideContent,sliderId:this.sliderId,min:t,max:e,value:i,showMinMax:!1,inverted:!1,minimized:this.minimized,enabled:this.enabled,style:this.sliderStyle,prettyValue:this._formatValues.bind({category:this.category})};return this.minimized||(n.tooltipTemplate=['<span>&ge;</span><input aria-label="&ge;" type="text"></input>','<span>&le;</span><input aria-label="&le;" type="text"></input>'],n.invertedTooltipTemplate=['<span>&lt;</span><input aria-label="&lt;" type="text"></input>','<span>&gt;</span><input aria-label ="&gt;" type="text"></input>']),this.defaultValues&&(n.value=[this.defaultValues[0].label||this.defaultValues[0].d,this.defaultValues[1].label||this.defaultValues[1].d]),this._rangeSlider=new o(n),this._rangeSlider.on("action:slidestop",function(){this.trigger("action:slidestop")}.bind(this)),this._rangeSlider.on("action:change",function(){this._enableOk()}.bind(this)),this._rangeSlider.render()},_showLoading:function(){this.trigger("change:state",{state:"loading"});var t=a("<div></div>");t.addClass("loading"),t.text(i.get("modellingLoading")),this._slideContent.html(t)},_updateMinMax:function(){var t=this;if(this.queryResult){var e=this._getMinMaxValuesFromQueryResult(this.queryResult);return delete this.queryResult,Promise.resolve(e)}return this.getColumnMinMaxValues(this.columnId).then((function(e){return t._getMinMaxValuesFromQueryResult(e)}))},_getMinMaxValuesFromQueryResult:function(t){var e=t.getValue(0,0),o=t.getValue(0,1);return this.minMax=[e,o],this.minMax},getPromptValues:function(){return this._rangeSlider.getValue()},_formatValues:function(t){var o=[],i={type:"number"};return"time"===this.category&&(i.useGrouping=!1),s.each(t,(function(t){o.push(e.format(t,i))})),o},_enableOk:function(){this.enableOk&&this.enableOk(!0)},_onAggregateTypeChange:function(t){return this._onClickRadioButton(t),this._populateContent()},_onClickRadioButton:function(t){this.postAutoAggregation=a(t.currentTarget).hasClass("postAggregate"),this.postAutoAggregation?(this.$postAggregateNode.attr("class","checked"),this.$preAggregateNode.attr("class",""),this._initialDefault.postAggregate?this.defaultValues=this._initialDefault.defaultValues:this.defaultValues=null):(this.$postAggregateNode.attr("class",""),this.$preAggregateNode.attr("class","checked"),this._initialDefault.postAggregate?this.defaultValues=null:this.defaultValues=this._initialDefault.defaultValues)}});return u})),define("text!dashboard-analytics/features/dashboard/prompts/controls/templates/SearchAndSelectContent.html",[],(function(){return'<div class="selectItems" role="listbox"></div>\n'})),define("dashboard-analytics/features/dashboard/prompts/controls/SearchAndSelectPromptView",["../../../../lib/@waca/core-client/js/core-client/ui/AccessibleView","../../../../widgets/livewidget/nls/StringResources","text!./templates/BasePromptView.html","text!./templates/SearchAndSelectContent.html","jquery","underscore","doT"],(function(t,e,o,i,n,r,a){"use strict";var s=t.extend({events:{"primaryaction .itemRow":"_selectItem","keydown .itemRow":"_moveFocus","primaryaction .searchWrapper .wfg_remove":"_clearSearch","keyup .search":"searchTypeDelay"},_selectedPromptValues:null,_selectedTab:null,init:function(t){t.width="400px",s.inherited("init",this,arguments),r.extend(this,t),this.queryResult&&this._getQueryResultValues(this.queryResult),this._selectedPromptValues={refId:t.columnId,columnId:t.columnId,values:this.defaultValues?this.defaultValues:[],ui:"picklist"}},render:function(){var t=a.template(o)({promptModuleName:this.promptModuleName});return this.$el.addClass("promptDialogContainer promptViewDialog").width(this.width).append(t),this.$(".content").html(i),this.$el.attr("role","region"),this.$el.attr("aria-label",this.viewTitle),this.$(".search").attr("placeholder",e.get("search")).attr("aria-label",e.get("search")),this._populateRows(),this.$(".selectItems").attr("aria-label",this.$(".title").text()),this},_moveFocus:function(t){var e=n(t.currentTarget);37===t.keyCode||38===t.keyCode?this._moveToItem(e,e.prev()):39!==t.keyCode&&40!==t.keyCode||this._moveToItem(e,e.next())},_moveToItem:function(t,e){t.attr("tabindex","-1"),e.focus(),e.attr("tabindex","0")},setFocus:function(){this.$(".search").focus()},_clearSearch:function(){return this.$(".search").val(""),this.searchData()},_serverResponse:function(t){this._getQueryResultValues(t),this._populateRows()},_getQueryResultValues:function(t){for(var e=t.getResultItemList()[0],o=[],i=0;i<e.getRowCount();i++)o.push.apply(o,e.getValue(i));this.promptValues=o},_getRowValue:function(t){var e=JSON.parse(r.unescape(t.attr("data")));return void 0===e?null:e},_highlightSelected:function(){var t=this.$(".itemRow"),e=r.pluck(this._selectedPromptValues.values,"value");r.each(t,function(t){var o=n(t),i=this._getRowValue(o);r.contains(e,i.value)?(o.toggleClass("exclude",!1).toggleClass("include",!0),o.find(".check").toggleClass("wfg_checkmark",!0),o.find(".text").toggleClass("bold",!0),o.attr("aria-selected","true")):(o.removeClass("include exclude"),o.find(".check").toggleClass("wfg_checkmark",!1),o.find(".text").toggleClass("bold",!1),o.attr("aria-selected","false"))}.bind(this))},_populateRows:function(){var t=this.$(".selectItems").empty();this.promptValues.length>0?(r.each(this.promptValues,function(o){var i=null===o?e.get("nullValueLabel"):o.label,a=n("<div></div>").addClass("itemRow").attr("data",r.escape(JSON.stringify(o)));n("<div></div>").addClass("check wfg_checkmark").appendTo(a),n("<div></div>").addClass("text").text(i).appendTo(a),a.appendTo(t)}.bind(this)),setTimeout((function(){!t[0].style.height&&t.height()&&t.height(t.height())}),500)):n("<div></div>").addClass("itemNotAvailable").text(e.get("textFilterItemsNotFound")).appendTo(t),this._highlightSelected();var o=this.$(".itemRow");o.attr("role","option"),o.attr("aria-selected","false"),o.attr("tabindex","-1"),o.first().attr("tabindex","0")},_selectItem:function(t){t.stopPropagation();var e=this._getRowValue(n(t.currentTarget)),o=r.pluck(this._selectedPromptValues.values,"value");r.contains(o,e.value)?this._selectedPromptValues.values=r.filter(this._selectedPromptValues.values,function(t){return t.value!==e.value}.bind(this)):this.singleSelect&&this._selectedPromptValues.values.length>0?this._selectedPromptValues.values=[e]:this._selectedPromptValues.values.push(e),this._highlightSelected(),this._enableOk()},getPromptValues:function(){return this._selectedPromptValues.values},searchData:function(){var t=this.$(".search")[0].value,e=r.isArray(t)?t:[t],o=void 0;o=this.getColumnValues?this.getColumnValues(this.columnId,[],null,e).then(this._serverResponse.bind(this)):Promise.resolve();var i=t.length>0?"visible":"hidden";return this.$(".searchWrapper .wfg_remove").css("visibility",i),o},searchTypeDelay:function(){this.iTypeDelayTimer&&window.clearTimeout(this.iTypeDelayTimer),this.iTypeDelayTimer=window.setTimeout(this.searchData.bind(this),250)},_enableOk:function(){this._selectedPromptValues.values.length>0?this.enableOk(!0):this.enableOk(!1)}});return s})),define("dashboard-analytics/features/dashboard/actions/SearchAction",["../../../lib/@waca/dashboard-common/dist/core/APIFactory","../../../widgets/livewidget/nls/StringResources","../../../lib/@waca/dashboard-common/dist/api/ContentActionsProviderAPI"],(function(t,e,o){var i={list:!0,hierarchy2:!0,hierarchy3:!0};return function(){function n(e){var i=e.features;_classCallCheck(this,n),this._dashboard=i.API,this._dashboardState=i.DashboardState,this._icons=i.Icons,this._api=t.createAPI(this,[o]),i.ContentActions.registerProvider("searchAction",this._api)}return n.prototype.getAPI=function(){return this._api},n.prototype.getContentActionList=function(t){var o=[];if(this._getSelectedContent(t)){var i=t[0],n=this._dashboard.getCanvas().getContent(i),r=this._icons.getIcon("searchIcon");this._supportAction(t,n)&&(o=[{name:"searchAction",label:e.get("search"),icon:r.id,type:"NextView",viewModule:"dashboard-analytics/visualizations/search/DataWidgetSearchView",viewOptions:{height:50,width:242,content:n}}])}return o},n.prototype._supportAction=function(t,e){var o=!1,n=this._dashboardState.getUiState(),r=e.getFeature("Visualization");if(r&&!n.eventGroups){var a=r.getDefinition().getId();o=r.getSlots().isMappingComplete()&&i[a]}return o},n.prototype._getSelectedContent=function(t){return 1===t.length},n}()})),define("dashboard-analytics/features/dashboard/actions/filterDock/FilterDockAction",["../../../../widgets/livewidget/nls/StringResources","../../../../lib/@waca/dashboard-common/dist/core/APIFactory","../../../../lib/@waca/dashboard-common/dist/api/ContentActionsProviderAPI"],(function(t,e,o){return function(){function i(t){var e=t.features;_classCallCheck(this,i),this._dashboard=e.API,this._contentActions=e.ContentActions,this._dashboardState=e.DashboardState,this._icons=e.Icons}return i.prototype.initialize=function(){this._api=e.createAPI(this,[o]),this._contentActions.registerProvider("filterDock",this.getAPI())},i.prototype.getAPI=function(){return this._api},i.prototype.getContentActionList=function(e){var o=[];if(0===e.length){var i=this._getCanvasExtensions();if(i){var n=i.getExtension("filterDockCollapseControl");if(n){var r=this._icons.getIcon("common-filter");o=[{name:"filterDock",baseClass:"toolbar",order:3,label:t.get("filterIconLabel_Single"),text:t.get("filterIconLabel_Single"),className:"buttonWithText",icon:r.id,type:"ToggleButton",checked:n.isExpanded(),disabled:this._buttonRendered.bind(this),action:this._expandFilterDock.bind(this),offAction:this._collapseFilterDock.bind(this),decoratorView:{viewModule:"dashboard-analytics/features/dashboard/actions/filterDock/ActiveFilterView",viewOptions:{dashboardAPI:this._dashboard}}}]}}}return o},i.prototype._getCanvasExtensions=function(){return this._canvasExtensions||(this._canvasExtensions=this._dashboard.getDashboardCoreSvc(".CanvasExtensions")),this._canvasExtensions},i.prototype._buttonRendered=function(){var t=this._getCanvasExtensions();if(!t)return!1;var e=t.getExtension("filterDockCollapseControl"),o=t.getExtension("filterDock");return e.$el.addClass("toolbarControlled"),o.$el.addClass("toolbarControlled"),this._dashboardState.getUiState().eventGroups},i.prototype._expandFilterDock=function(){this._dashboard.triggerDashboardEvent("filterDock:expand")},i.prototype._collapseFilterDock=function(){this._dashboard.triggerDashboardEvent("filterDock:collapse")},i}()})),define("dashboard-analytics/features/dashboard/actions/filterDock/ActiveFilterView",["../../../../lib/@waca/core-client/js/core-client/ui/core/View","jquery","../../../../filters/dock/ActiveFilterIndicator"],(function(t,e,o){return function(t){function i(e){_classCallCheck(this,i);var o=_possibleConstructorReturn(this,t.call(this,e));return o._container=e.containerNode,o._dashboard=e.dashboardAPI,o._attachedEvents=[],o._registerEvents(),o}return _inherits(i,t),i.prototype.init=function(e){t.prototype.init.call(this,e)},i.prototype._registerEvents=function(){this._attachedEvents.push(this._dashboard.on("tab:tabChanged",this._onScopeChanged,this)),this._attachedEvents.push(this._dashboard.on("pagecontext:filterContextUpdated",this._onFilterContextUpdated,this))},i.prototype.render=function(){var t=this._dashboard.getFeature("InteractionController.internal");if(t){var i=t.boardModel.getSelectedLayout(),n=this._dashboard.getFeature("PageContextService").getPageContext();this._afi=new o({scopes:{tabScope:i,globalScope:"global"},pageContextAPI:n,animate:!1}),e(this._container).append(this._afi.getNode()),this._afi.show(!0)}},i.prototype.remove=function(){this._attachedEvents&&this._attachedEvents.forEach((function(t){return t&&t.remove()})),this._afi&&(this._afi.remove(),this._afi=null)},i.prototype._onScopeChanged=function(t){var e=t.modelId;this._afi&&(this._afi.setScope("tabScope",e),this._afi.show(!0))},i.prototype._onFilterContextUpdated=function(t){(t=t||{}).ignorePageContextChanged&&t.ignorePageContextChanged()||this._afi&&this._afi.show(!0)},i}(t)})),define("dashboard-analytics/extensions/client-summaries/content-features/SummaryQueryResult",["../../../lib/@waca/core-client/js/core-client/ui/core/Class","underscore"],(function(t,e){"use strict";return t.extend({init:function(t,e){this._aDataItems=null,this._oDataItemsIndexMap={},this._oDataPointsMap={},this._queryResult=t,this._queryResult.getRowCount()>0&&(this._buildDataItemsMap(),this._buildDataPointsMap()),this.logger=e},getValue:function(t,e,o){var i=this;if(!t||!o||0===this._queryResult.getRowCount())return null;var n,r=[],a=!0;if(t.forEach((function(t,e){n=o[e];var s=i._oDataItemsIndexMap[t][n];if(void 0===s)return a=!1,void i.logger.error("Could not find index for: "+n);r.push(s)})),!a)return null;var s=r.length?this._oDataPointsMap[r.join()]:0,l=this._oDataItemsIndexMap[e];return this._queryResult.getValue(s,l).value},_buildDataItemsMap:function(){var t=this;this._aDataItems=this._aDataItems||this._queryResult.getResultItemList(),this._aDataItems.forEach((function(e,o){var i=e.getId(),n=e.getRowCount();if(0!==n){t._oDataItemsIndexMap[i]={};for(var r=0;r<n;r++)t._oDataItemsIndexMap[i][e.getValue(r)[0].value]=r}else e.getDataItemList()[0].getAggregation()&&(t._oDataItemsIndexMap[i]=o)}))},_buildDataPointsMap:function(){var t=this;this._queryResult.getDataPointValueList().forEach((function(o,i){var n=e.filter(o.pt,(function(t){return"number"==typeof t}));t._oDataPointsMap[n.join()]=i}))}})})),define("dashboard-analytics/extensions/client-summaries/content-features/SummaryFeature",["underscore","./SummaryTypes","./SummaryQueryResult","../../../widgets/livewidget/nls/StringResources","../../../filters/FilterSpecHelper"],(function(t,e,o,i,n){"use strict";return function(){function r(t){var e=t.content,o=t.features;_classCallCheck(this,r),this._oQueryProjectionObj={},this._oQueriesResult={},this.logger=o["Dashboard.Logger"],this.visualization=o.Visualization,this.renderSequence=o.RenderSequence,this.renderSequence.registerRenderStepProvider(this),this.content=e,this._api={getSummary:this._getSummary.bind(this),isNotSupported:this.isNotSupported.bind(this)}}return r.prototype.getAPI=function(){return this._api},r.prototype.isEnabled=function(){return t.find(this.visualization.getSlots().getSlotList(),(function(t){return t.getDefinition().getProperty("summaries")||t.getDefinition().getProperty("summaryValues")}))},r.prototype.isNotSupported=function(){var e=1,o=this.visualization.getSlots().getMappedSlotList();t.each(o,(function(t){e=t.getDefinition().getProperty("summaries")?e*t.getDataItemList().length:e}));var i=e>12;if(i)return i;var r=this.visualization.getLocalFilters().getFilterList();if(i=void 0!==t.find(r,(function(t){return t.aggregationType&&"post"===t.preOrPost&&n.isRange(t)})),i)return i;var a=o&&o.length&&o[0].getDataItemList();if(i=!a||0===a.length||!a[0].getMetadataColumn()||a[0].getMetadataColumn().isOlapColumn(),i)return i;var s={};return o.forEach((function(t){t.getDataItemList().forEach((function(e){e.getTopBottom()&&(t.getDefinition().getProperty("summaryValues")&&"fact"===e.getType()&&(i=!0),s[t.getId()]||(s[t.getId()]=[]),s[t.getId()].push(e))}))})),i||t.size(s)>1},r.prototype.getRenderStepList=function(){return this.isEnabled()?[{id:"data-summary",dependencies:["data"],modulePath:"dashboard-analytics/extensions/client-summaries/content-features/SummaryTask",moduleOptions:{summaryFeature:this,visualization:this.visualization,content:this.content}}]:[]},r.prototype._getSummary=function(t,e,o){var i=this,n=t.slice(0),r=this._oQueriesResult[this._getCategoryQueryKey(t)];return r?r.then((function(t){return t.getValue(n,e,o)})).catch((function(t){return i._buildErrorObj(t)})):Promise.resolve(this._buildErrorObj())},r.prototype._buildErrorObj=function(){return{error:i.get("errorCellWarning")}},r.prototype.getProjectionListObj=function(){this._oQueryProjectionObj={};var o=[],i=[];if(this.visualization.getSlots().getMappedSlotList().forEach((function(n){if(n.getDefinition().getProperty("summaries")){var r=t.filter(n.getDataItemList(),(function(t){return"attribute"===t.getType()}));r&&o.push(r)}if(n.getDefinition().getProperty("summaryValues")){var a=t.filter(n.getDataItemList(),(function(t){return-1!==e.indexOf(t.getAggregation())&&"fact"===t.getType()}));i=i.concat(a)}})),o.length||i.length){if(o.length){var n=this._buildIdSetsFromSlotsDataItems(o);n.length&&(n=this._crossJoinSlotUIdSets(n));var r=t.flatten(n,!0);r.pop(),this._oQueryProjectionObj.aCategoryUIds=r}else this._oQueryProjectionObj.aCategoryUIds=[];if(i.length){var a=t.map(i,(function(t){return t.getId()}));this._oQueryProjectionObj.aOrdinalUIds=a}else this._oQueryProjectionObj.aOrdinalUIds=[]}return this._oQueryProjectionObj},r.prototype._buildIdSetsFromSlotsDataItems=function(t){var e=[];return t.forEach((function(t){var o=[],i=[];t.forEach((function(t){o=o.concat(t.getId()),i.push(o)})),e.push(i)})),e},r.prototype._crossJoinSlotUIdSets=function(t){for(var e=[],o=0;o<t.length;o++)for(var i=t[o],n=o+1;t[n]&&t[n].length;)e.push(this._crossJoin(i,t[n])),n++;return t.concat(e)},r.prototype._crossJoin=function(t,e){var o=[];return t.forEach((function(t){var i=[];e.forEach((function(e){i=t.concat(e),o.push(i)}))})),o},r.prototype.addSummaryQueryResult=function(t,e){var i=this;this._oQueriesResult[this._getCategoryQueryKey(this._oQueryProjectionObj.aCategoryUIds[t])]=e.then((function(t){return new o(t.getResult(),i.logger)})).catch((function(t){return i.logger.error(t),Promise.reject(t)}))},r.prototype._getCategoryQueryKey=function(t){var e=t&&t.length?t:["_overallSummaryQueryKey"];return e.sort(),e.join()},r}()})),define("dashboard-analytics/extensions/client-summaries/content-features/SummaryTask",["underscore","../../../visualizations/renderer/sequence/BaseTask","./SummaryTypes"],(function(t,e,o){"use strict";var i=e.extend({init:function(t,e){i.inherited("init",this,arguments),this.feature=e.summaryFeature,this.visualization=e.visualization,this.content=e.content},_requiresSummaryQuery:function(){return!("Crosstab"===this.content.getFeature("Visualization").getType())&&!this.feature.isNotSupported()&&!0!==this.content.getPropertyValue("hideSummaries")&&!!t.find(this.visualization.getSlots().getMappedSlotList(),(function(e){return t.find(e.getDataItemList(),(function(t){if("fact"===t.getType()&&e.getDefinition().getProperty("summaryValues"))return o.indexOf(t.getAggregation())>-1}))}))},process:function(e){var o=this;if(this._isStepComplete(e,this.getId()))return Promise.resolve(e);if(this._requiresSummaryQuery()){this._queryExecution=this._queryExecution||this.content.getFeature("DataQueryExecution"),this._queryModifier=this._queryModifier||this.content.getFeature("SummaryQueryModifier"),this._queryModifier.resetDataItemIdList();var i=this._getProjectionList();t.each(i,(function(t,e){o._queryModifier.addDataItemIdList(t),o.feature.addSummaryQueryResult(e,o._queryExecution.executeQueries("summary"))}))}return this._completeStep(e,this.getId(),arguments),Promise.resolve(e)},_getProjectionList:function(){var e=this.feature&&this.feature.getProjectionListObj();if(t.isEmpty(e))return[];var o=t.map(e.aCategoryUIds,(function(t){return t.concat(e.aOrdinalUIds)}));return o.push(e.aOrdinalUIds),o}});return i})),define("dashboard-analytics/extensions/dataBehindTheVis/content-features/api/DataBehindTheVisAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.getData=function(){},t.prototype.export=function(){},t}()})),define("dashboard-analytics/extensions/dataBehindTheVis/content-features/DataBehindTheVis",["underscore","../../../widgets/livewidget/nls/StringResources","../../../lib/@waca/dashboard-common/dist/core/APIFactory","./api/DataBehindTheVisAPI","../../../lib/@waca/dashboard-common/dist/utils/ContentUtil","../../../apiHelpers/SlotAPIHelper","../../../features/content/dataQueryExecution/DataQueryUtils","../../../dataSources/nls/StringResources"],(function(t,e,o,i,n,r,a,s){return function(){function l(t){var e=t.content,o=t.features;_classCallCheck(this,l),this.content=e,this.dashboard=o["Dashboard.API"],this.csvExport=o["Dashboard.CsvExport"],this.queryService=o["Dashboard.QueryService"],this.globalFilters=o["Dashboard.GlobalFilters"],this.eventGroups=o["Dashboard.EventGroups"],this.pageContextService=o["Dashboard.PageContextService"],this.visualization=o.Visualization,this.queryExec=o.DataQueryExecution}return l.prototype.getAPI=function(){return this._api||(this._api=o.createAPI(this,[i])),this._api},l.prototype.export=function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.getData(e).then((function(e){return t.csvExport.export(e.title,[e.headers],e.cells)}))},l.prototype.destroy=function(){this.dashboardApi=null},l.prototype.getData=function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._queryForData(e).then((function(o){var i=t._filterDataWithSelections(o);return _extends({title:t._getTitle(),isAggregated:!!e},i)}))},l.prototype._queryForData=function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],o=this.visualization.getDataSource();if(o){e=!!e;var i=this._getColumnIdsFromUnprojectedFilters(),n=this._isMultiMeasureVisualization(this.visualization),r=!n&&i&&i.length>0,a=this._getQueryDataset(),s=this.visualization.getSlots().isMappingComplete(),l=r?this._getDataFromQuery(a,i,e):this._getDataFromExecution(a,e,s);return l.then((function(e){return t._getProcessedHeadersAndCells(e)}))}return Promise.resolve({headers:[],cells:[]})},l.prototype._getTitle=function(){return e.get("visExportFileName")},l.prototype._filterDataWithSelections=function(e){if(e.cells){var o=[],i=this._getSelections();i&&i.length&&(t.each(e.cells,(function(e){t.each(i,(function(i){var n=function(o){return t.some(e,(function(t){return(t.value&&t.value.toString())===o.u}))};(i.dataPoints?t.some(i.dataPoints,(function(e){return t.every(e,(function(t){return n(t)}))})):t.some(i.edges,(function(t){return n(t)})))&&-1===o.indexOf(e)&&o.push(e)}))})),e.cells=o)}return e},l.prototype._getColumnIdsFromUnprojectedFilters=function(){var e=this,o=this._getVisibleDataItems(),i=[],n=this.visualization.getDataSource();return t.each(this._getFilterInfo(),(function(r){t.each(r,(function(r){e._getUnProjectedItemsFromFilterEntry(t.pluck(o,"itemId"),r,i,n)}))})),i},l.prototype._isMultiMeasureVisualization=function(){return!!t.find(this.visualization.getSlots().getMappedSlotList(),(function(t){return r.isMultiMeasuresSeriesSlot(t)}))},l.prototype._getQueryDataset=function(){var t=this.visualization.getDefinition(),e=t.getDatasetList();return e&&1===e.length?e[0].id:t.getDefaultDatasetId()},l.prototype._getDataFromQuery=function(t,e,o){var i=this.visualization.getDataSource(),n=this.dashboard.getFeature("QueryService"),r=o?n.TYPE.DEFAULT:n.TYPE.DETAIL,s=n.createQuery(r);s.setDataSource(i.getId()),s.addDataItems(this._getDataItems(t)),s.addColumns(e);var l=a.removeForecastFilters(this._getFilterInfo()),u=l.localFilters;return u.push.apply(u,l.selectionFilters.concat(l.globalFilters)),s.addFilters(u),s.executeQuery()},l.prototype._getDataFromExecution=function(e,o,i){if(o){var n=this.queryExec.getCurrentQueryResults();return!i||t.isEmpty(n)?Promise.resolve(!1):n.getImplType&&n.getInterfaceType?Promise.resolve(n.getResult(e)):e?Promise.resolve(n.getQueryResultByDataViewId(e).getQueryResult()):Promise.resolve(n.getDefaultQueryResult().getQueryResult())}return this.queryExec.executeQueries("detail").then((function(t){return t.getResult(e)}))},l.prototype._getVisibleDataItems=function(){var e=[],o=[],i=this.visualization.getSlots();return t.each(i.getMappedSlotList(),(function(i){(t.each(i.getDataItemList(),function(t,n){r.isMultiMeasuresSeriesOrValue(i,n)||(e.push({id:t.getId(),itemId:t.getColumnId()}),o.push(t.getId()))}.bind(this)),o.length>1&&i.isStacked())&&i.getDefinition().getDatasetIdList().forEach((function(t){e.push({id:i.getId(),nest:o,layerId:t})}))})),e},l.prototype._getUnProjectedItemsFromFilterEntry=function(e,o,i,n){var r=o.itemId||o.columnId,a=n.getMetadataColumn(r);a&&"Filter"===a.getObjectType()||(r?-1===e.indexOf(r)&&-1===i.indexOf(r)&&i.push(r):t.each(o.values,function(t){this._getUnProjectedItemsFromFilterEntry(e,t,i,n)}.bind(this)))},l.prototype._getFilterInfo=function(){var t=this.visualization.getDataSource(),e=this.visualization.getLocalFilters().getFilterList(),o=this.dashboard.getAppConfig("pageContainerType");return{localFilters:e,globalFilters:this.globalFilters.getFilterList({origin:"filter",sourceId:t.getId(),scope:n.getPageContent(this.content,o).getId(),eventGroupId:this.eventGroups.getGroupId(this.content.getId())}),selectionFilters:this.globalFilters.getFilterList({origin:"visualization",sourceId:t.getId(),scope:n.getPageContent(this.content,o).getId(),eventGroupId:this.eventGroups.getGroupId(this.content.getId()),eventSourceId:this.content.getId()})}},l.prototype._getProcessedHeadersAndCells=function(e){var o=this,i=[],n=[],r=this._getMetadataColumnList();return e&&function(){var a=o._getUsedMetadataColumnsIncluldingFiltersIds(r),s=e.getResultItemList(),l=[];t.each(s,function(e){t.each(e.getDataItemList(),(function(t,e){-1!==a.indexOf(t.getColumnId())?i.push(t.getLabel()):l.push(e)}))}.bind(o));for(var u=[],c=o._getColumnCount(s),d=0;d<e.getRowCount();d++){for(var p=!1,f=[],h=function(i){if(-1===l.indexOf(i)){var n=e.getValue(d,i);Array.isArray(n)?(f.push.apply(f,n.map((function(t){return t.toString=o._getCellValue.bind(o,t),t}))),0===d?u[i]=t.pluck(n,"ln"):p=p||t.some(n,(function(t,e){return u[i][e]<t.ln}))):(n.toString=o._getCellValue.bind(o,n),f.push(n)),p=p||n.type===(e.VALUE_TYPE&&e.VALUE_TYPE.SUMMARY)}},g=0;g<c;g++)h(g);p||n.push(f)}}(),{headers:i,cells:n}},l.prototype._getUsedMetadataColumnsIncluldingFiltersIds=function(e){var o=[];t.each(e,(function(t){t&&!t.isMissing()&&o.push(t.getId())}));var i=this._getColumnIdsFromUnprojectedFilters();return o.push.apply(o,i),this._isMultiMeasureVisualization(this.visualization)&&o.push.apply(o,["_multiMeasuresValue","_multiMeasuresSeries"]),o},l.prototype._getMetadataColumnList=function(){var e=this.visualization.getSlots();return t.map(e.getDataItemList(),(function(t){return t.getMetadataColumn()}))},l.prototype._getColumnCount=function(e){return t.chain(e).map((function(e){return t.every(e.getDataItemList(),(function(t){return t.getAggregation()&&"fact"===t.getType()}))&&e.getDataItemList().length>e.getValue(0).length?e.getDataItemList():e})).flatten().value().length},l.prototype._getCellValue=function(t){var e=this._isCellValueMeasure(t),o=e?t.value:t.label;return null===o?s.get("nullValueText"):e?Math.round(100*o)/100:o},l.prototype._isCellValueMeasure=function(e){return e&&t.isUndefined(e.label)},l.prototype._getDataItems=function(t){var e=this.visualization.getSlots();if(t){var o=e.getMappingInfoList(),i=[];return o.forEach((function(e){-1!==e.slot.getDefinition().getDatasetIdList().indexOf(t)&&i.push(e.dataItem)})),i}return e.getDataItemList()},l.prototype._getSelections=function(){var e=[],o=this.pageContextService.getPageContext();return t.each(o&&o.getPageContextItems(this._getItemContext()),(function(t){t.getDataPoints()&&t.getDataPoints().length?e.push({dataPoints:t.getDataPoints()}):t.getValues()&&t.getValues().length&&e.push({edges:t.getValues()})})),e},l.prototype._getItemContext=function(){var t=this.dashboard.getAppConfig("pageContainerType");return this.visualization?{origin:"visualization",sourceId:this.visualization.getDataSource()&&this.visualization.getDataSource().getId(),scope:n.getPageContent(this.content,t).getId(),eventGroupId:this.eventGroups.getGroupId(this.content.getId()),eventSourceId:this.content.getId(),_strictMatch:!0}:null},l}()})),function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("@ba-ui-toolkit/ba-graphics/dist/illustrations-js/ba-graphics-icons-commons.js"));else if("function"==typeof define&&define.amd)define("dashboard-analytics/lib/@waca/dashboard-common/dist/lib/@ba-ui-toolkit/ba-graphics/dist/illustrations-js/no-data_200",["@ba-ui-toolkit/ba-graphics/dist/illustrations-js/ba-graphics-icons-commons.js"],e);else{var o=e("object"==typeof exports?require("@ba-ui-toolkit/ba-graphics/dist/illustrations-js/ba-graphics-icons-commons.js"):t["@ba-ui-toolkit/ba-graphics/dist/illustrations-js/ba-graphics-icons-commons.js"]);for(var i in o)("object"==typeof exports?exports:t)[i]=o[i]}}("undefined"!=typeof self?self:this,(function(t){return webpackJsonPBaGraphics([70],{"3865314c5959606874d4":function(e,o){e.exports=t},"8db594624a3de1842744":function(t,e,o){"use strict";var i=o("9689a9c94ae38b47fa2c"),n=o.n(i),r=o("9ce58a7deea14f49ef01"),a=o.n(r),s=new n.a({id:"no-data_200_v7",use:"no-data_200_v7-usage",viewBox:"0 0 200 200",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" id="no-data_200_v7"><circle class="ba-graphics-neutral-white4" cx="100" cy="100" r="100" /><path class="ba-graphics-white" d="M14.97 170.08h135.66" /><path class="ba-graphics-gray60" d="M150.63 172.08H15a2 2 0 110-4h135.63a2 2 0 010 4z" /><path class="ba-graphics-white" d="M2 170.08h4.97" /><path class="ba-graphics-gray60" d="M7 172.08H2a2 2 0 010-4h5a2 2 0 010 4z" /><path class="ba-graphics-white" d="M179.03 170.08H198" /><path class="ba-graphics-gray60" d="M198 172.08h-19a2 2 0 010-4h19a2 2 0 010 4z" /><path class="ba-graphics-white" d="M158.63 170.08h12.4" /><path class="ba-graphics-gray60" d="M171 172.08h-12.4a2 2 0 010-4H171a2 2 0 010 4z" /><circle class="ba-graphics-gray60" cx="94.34" cy="19.84" r="2" /><circle class="ba-graphics-gray60" cx="127.06" cy="28.52" r="2" /><path class="ba-graphics-gray60" d="M60.89 28.09a4 4 0 004-4 1 1 0 012 0 4 4 0 004 4 1 1 0 010 2 4 4 0 00-4 4 1 1 0 01-2 0 4 4 0 00-4-4 1 1 0 010-2z" /><path class="ba-graphics-white" d="M30.17 46.52h139.57a6.21 6.21 0 016.26 6.21v96.79a4 4 0 01-4 4H28a4 4 0 01-4-4V52.73a6.21 6.21 0 016.17-6.21z" /><path class="ba-graphics-gray60" d="M169.74 50.34a2.39 2.39 0 012.39 2.39v96.79a.18.18 0 01-.18.18H28a.18.18 0 01-.18-.18V52.73a2.4 2.4 0 012.4-2.39h139.52m0-3.82H30.17A6.22 6.22 0 0024 52.73v96.79a4 4 0 004 4h144a4 4 0 004-4V52.73a6.21 6.21 0 00-6.21-6.21z" /><path class="ba-graphics-gray1" d="M176 67.28v-16.8a4 4 0 00-4-4H28a4 4 0 00-4 4v16.8z" /><path class="ba-graphics-gray60" d="M172 50.3a.18.18 0 01.18.18v13H27.77v-13a.18.18 0 01.23-.18h144m0-3.82H28a4 4 0 00-4 4v16.8h152v-16.8a4 4 0 00-4-4z" /><circle class="ba-graphics-gray60" cx="34.07" cy="56.82" r="2" /><circle class="ba-graphics-gray60" cx="41.21" cy="56.82" r="2" /><circle class="ba-graphics-gray60" cx="48.34" cy="56.82" r="2" /><path class="ba-graphics-gray40" d="M37.54 77.73h35.17v12.29H37.54z" /><path class="ba-graphics-gray60" d="M72.71 91.5H37.54a1.48 1.48 0 01-1.48-1.5V77.73a1.48 1.48 0 011.48-1.48h35.17a1.48 1.48 0 011.48 1.48V90a1.48 1.48 0 01-1.48 1.5zM39 88.54h32.23v-9.33H39z" /><path class="ba-graphics-gray40" d="M82.42 77.73h35.17v12.29H82.42z" /><path class="ba-graphics-gray60" d="M117.59 91.5H82.42a1.48 1.48 0 01-1.48-1.5V77.73a1.48 1.48 0 011.48-1.48h35.17a1.48 1.48 0 011.48 1.48V90a1.48 1.48 0 01-1.48 1.5zm-33.69-3h32.22v-9.29H83.9z" /><path class="ba-graphics-gray40" d="M127.29 77.73h35.17v12.29h-35.17z" /><path class="ba-graphics-gray60" d="M162.46 91.5h-35.17a1.48 1.48 0 01-1.48-1.5V77.73a1.48 1.48 0 011.48-1.48h35.17a1.48 1.48 0 011.48 1.48V90a1.48 1.48 0 01-1.48 1.5zm-33.69-3H161v-9.29h-32.23zm-54.58 18.39h-3v-2.52h-2.48v-3h4a1.48 1.48 0 011.48 1.48zm-1.48 9.77h-4v-3h2.52v-2.52h3v4a1.48 1.48 0 01-1.52 1.52zm-7.26 0h-8.69v-3h8.69zm-12 0H44.8v-3h8.69zm-11.91 0h-4a1.48 1.48 0 01-1.48-1.48v-4h3v2.52h2.52zM39 106.89h-3v-4a1.48 1.48 0 011.48-1.48h4v3H39zm26.45-2.52h-8.7v-3h8.7zm-12 0H44.8v-3h8.69zm65.62 2.52h-2.95v-2.52h-2.53v-3h4a1.48 1.48 0 011.48 1.48zm-1.48 9.77h-4v-3h2.53v-2.52h2.95v4a1.48 1.48 0 01-1.48 1.52zm-7.26 0h-8.69v-3h8.69zm-12 0h-8.7v-3h8.7zm-11.91 0h-4a1.48 1.48 0 01-1.48-1.48v-4h3v2.52h2.52zm-2.52-9.77h-3v-4a1.48 1.48 0 011.48-1.48h4v3H83.9zm26.43-2.52h-8.69v-3h8.69zm-12 0h-8.7v-3h8.7zm65.61 2.52h-3v-2.52h-2.52v-3h4a1.48 1.48 0 011.48 1.48zm-1.48 9.77h-4v-3H161v-2.52h3v4a1.48 1.48 0 01-1.54 1.52zm-7.26 0h-8.69v-3h8.69zm-12 0h-8.69v-3h8.69zm-11.91 0h-4a1.48 1.48 0 01-1.48-1.48v-4h3v2.52h2.52zm-2.52-9.77h-3v-4a1.48 1.48 0 011.48-1.48h4v3h-2.52zm26.43-2.52h-8.7v-3h8.7zm-12 0h-8.69v-3h8.69z" /><path class="ba-graphics-gray40" d="M37.54 127.61h35.17v12.29H37.54z" /><path class="ba-graphics-gray60" d="M72.71 141.38H37.54a1.48 1.48 0 01-1.48-1.48v-12.29a1.48 1.48 0 011.48-1.48h35.17a1.48 1.48 0 011.48 1.48v12.29a1.48 1.48 0 01-1.48 1.48zm-33.69-3h32.21v-9.34H39z" /><path class="ba-graphics-gray40" d="M82.42 127.61h35.17v12.29H82.42z" /><path class="ba-graphics-gray60" d="M117.59 141.38H82.42a1.48 1.48 0 01-1.48-1.48v-12.29a1.48 1.48 0 011.48-1.48h35.17a1.48 1.48 0 011.48 1.48v12.29a1.48 1.48 0 01-1.48 1.48zm-33.69-3h32.22v-9.34H83.9z" /><path class="ba-graphics-gray40" d="M127.29 127.61h35.17v12.29h-35.17z" /><path class="ba-graphics-gray60" d="M162.46 141.38h-35.17a1.48 1.48 0 01-1.48-1.48v-12.29a1.48 1.48 0 011.48-1.48h35.17a1.48 1.48 0 011.48 1.48v12.29a1.48 1.48 0 01-1.48 1.48zm-33.69-3H161v-9.34h-32.23z" /></symbol>'});a.a.add(s),e.a=s},c03e751e2802e88cdc95:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o("3865314c5959606874d4"),n=(o.n(i),o("8db594624a3de1842744"));e.default=n.a}},["c03e751e2802e88cdc95"])})),define("dashboard-analytics/extensions/dataBehindTheVis/dashboard-features/DataBehindTheVisView",["react","react-dom","ca-ui-toolkit","underscore","../../../datatray/ExtensionBaseView","../../../lib/@waca/dashboard-common/dist/lib/@ba-ui-toolkit/ba-graphics/dist/illustrations-js/no-data_200","../../../dataSources/nls/StringResources"],(function(t,e,o,i,n,r,a){return function(s){function l(t){_classCallCheck(this,l);var e=_possibleConstructorReturn(this,s.call(this,t));return e.dashboard=t.dashboard,e.logger=e.dashboard.getGlassCoreSvc(".Logger"),e}return _inherits(l,s),l.prototype.render=function(t,e){var o=this;this.content===t&&this.containerNode===e||this.setViewContext(t,e),n.clearContainer(this.containerNode),this.containerNode.classList.add("ba-theme-waca");var i="projectedAggregated"===t.getPropertyValue("datagrid.viewOption");return this._setLoading(),this.content.getFeature("DataBehindTheVis").getData(i).then((function(t){o._removeLoading(),o._isResultValid(t)?o._renderReactGrid(t):o._noData()})).catch((function(t){var e=t&&(t.message||t.msg)||"dwErrorRenderingContextualGrid";-1===["dwErrorStaleRequest"].indexOf(e)?(o._removeLoading(),o.logger.error(t)):o.logger.warn(t)}))},l.prototype.setViewContext=function(t,e){this._deregisterEvents(),this.content=t,this.containerNode=e,this._registerEvents()},l.prototype._noData=function(){var o=t.createElement("svg",{viewBox:r.default.viewBox,focusable:"false",className:"noDataSvg"},t.createElement("use",{class:"ba-graphics-themable",xlinkHref:"#"+r.default.id,fill:"#00baa1"})),i=t.createElement("p",{},a.get("DATA_TRAY_no_data_text")),n=t.createElement("div",{className:"noDataContent"},o,i);e.render(n,this.containerNode)},l.prototype.remove=function(){l.inherited("remove",this,arguments),this._deregisterEvents(),this._unmountReactComponents()},l.prototype._unmountReactComponents=function(){this.containerNode&&e.unmountComponentAtNode(this.containerNode)},l.prototype._registerEvents=function(){this.content&&(this._renderHandler=this.render.bind(this,this.content,this.containerNode),this.content.on("change:property:datagrid.viewOption",this._renderHandler,this))},l.prototype._deregisterEvents=function(){this.content&&this.content.off("change:property:datagrid.viewOption",this._renderHandler,this)},l.prototype._renderReactGrid=function(i){var r=this,s={numColumns:i.headers.length,numRows:i.cells.length,fixedRows:1,useRowOptionsColumn:!0,rowOptionsColumnText:a.get("contextualGridMenuLabel"),dataCellRenderer:this._cellRenderer.bind(this,i),fixedRowCellRenderer:function(e,r,a){var s=i.headers[r],l=t.createElement(o.GridHeaderCell,a,t.createElement("div",{style:n.CELL.style.left},s));return l.displayName="RowCell",l},onFixedCornerCellMenu:function(t,e){r.dashboard.showContextMenu({position:{pageX:t,pageY:e},menuId:"com.ibm.bi.dashboard.contextualGridMenu",activeObject:{content:r.content,export:r._export.bind(r,i)}})}},l=t.createElement(o.Grid,s);e.render(l,this.containerNode)},l.prototype._export=function(t){this.dashboard.getFeature("CsvExport").export(t.title,[t.headers],t.cells)},l.prototype._cellRenderer=function(t,e,o,i){var r=t.cells[e][o],a=n.CELL.style.left;return this._isCellValueMeasure(r)&&(a=n.CELL.style.right),this._getCellComponent(r,i,a)},l.prototype._isCellValueMeasure=function(t){return t&&i.isUndefined(t.label)},l.prototype._getCellComponent=function(e,i,n){n&&(n["white-space"]="nowrap");var r=e.toString(),a=t.createElement(o.GridCell,i,t.createElement("div",{style:n,title:r},r));return a.displayName="Cell",a},l.prototype._isResultValid=function(t){return t.cells.length&&t.headers.length},l}(n)})),define("dashboard-analytics/extensions/dataBehindTheVis/dashboard-features/DataBehindTheVisController",["../../../datatray/ExtensionBaseController","./DataBehindTheVisView","../../../dataSources/nls/StringResources"],(function(t,e,o){return function(t){function i(n){_classCallCheck(this,i);var r=_possibleConstructorReturn(this,t.call(this,n));return r.tabName=o.get("contextualGridTabName"),r.view=new e({dashboard:n}),r}return _inherits(i,t),i.prototype.getTabContrib=function(t,e,o){var i=this,n=this._getSelectedContent();return n?this._isContextualGridEnabled(n).then((function(r){if(!r)return null;var a=n.getId(),s=!1,l=!1;switch(e){case"change:selections:select":s=!0;break;case"splitterPanel:show":s=t&&"showDataBehindVisAction"===t.sender,l=o===a;break;case"dataInVis:selected":l=o===a&&t&&t.payloadData&&t.payloadData.focusOn&&a===t.sender;break;case"widget:rerendered":l=o===a&&t&&t.sender===a}return[{id:a,name:i.tabName,isSelectedOnTrayRender:s,select:i.select.bind(i,{content:n,id:a,forceRender:l})}]})):Promise.resolve(null)},i.prototype._isContextualGridEnabled=function(t){var e=t.getFeature("state");return e.whenStatusChanges(e.STATUS.RENDERED).then((function(){var e=!1,o=t.getFeature("Visualization");if(o){var i=o.getDefinition();e=!i.getProperty("isMultilayersWidget")&&!i.getProperty("noDataQuery")}return e}))},i.prototype.select=function(t,e,o){return e!==t.id||t.forceRender?this.view.render(t.content,o):Promise.resolve(!1)},i}(t)})),define("dashboard-analytics/extensions/smarts-recommender/impl/Utils",["../../../apiHelpers/SlotAPIHelper","../../../visualizations/recommender/IRUtils"],(function(t,e){"use strict";return function(){function o(){_classCallCheck(this,o)}return o.translateTopBottom2IR=function(t){var o={};return o.filterId=t.id,o.columnId=t.itemId,o.topBottomType=e.IRTopBottomType(t.selection.topBottom.type),o.method=e.IRTopBottomMethod(t.selection.topBottom.type),o.domainSize=t.selection.topBottom.value,t.selection.topBottom.context&&(o.byColumn=t.selection.topBottom.context.itemId),o.type="TOP_BOTTOM",o},o.getTopBottomItems=function(t){var e=t.getSlots().getMappedSlotList();if(e&&e.length){var i=[];return e.filter((function(t){return t&&!t.getDefinition().isHidden()})).forEach((function(t){o.filterInvalidDataItems(t.getDataItemList()).forEach((function(t){var e=t.getTopBottom();if(e&&e.context){var n=o.translateTopBottom2IR({id:t.getId(),itemId:t.getColumnId(),selection:{topBottom:e}});i.push(n)}}))})),i}},o.getUnboundColumnsIds=function(t){return o.filterInvalidDataItems(t.getSlots().getDataItemList()).map((function(t){return t.getColumnId()}))},o.filterInvalidDataItems=function(e){return e.filter((function(e){return!t.isMultiMeasuresSeriesOrValueDataItem(e)&&!e.isColumnUnavailable()}))},o.getFilterItems=function(t){var o=[];return e.localFilters2IRFilters(t.getLocalFilters().getFilterList(),o),o},o}()})),define("dashboard-analytics/visualizations/recommender/VisRecommenderBindingFallback",["../../lib/@waca/core-client/js/core-client/ui/core/Class","underscore"],(function(t,e){"use strict";var o=t.extend({init:function(t){o.inherited("init",this,arguments),this.visualization=t},destroy:function(){o.inherited("destroy",this,arguments)},assignUnboundColumns:function(t,o){var i=this,n=t.unbound.slice(0);return e.each(n,(function(n){n=i.visualization.getDataSource().getMetadataColumn(n);var r=e.map(o,(function(e){return i._rankSlot(e,t.slots,n)})),a=Math.min.apply(Math,r);if(a>0&&a<9){var s=e.indexOf(r,a),l=o[s].getId(),u=n.getId();t.slots[l]?t.slots[l].push(u):t.slots[l]=[u],t.unbound.splice(e.indexOf(t.unbound,u),1)}})),t},_rankSlot:function(t,e,o){return e[t.getId()]?this._slotHasCapacity(t,e)?this._slotMatchesColumn(t,o)?t.isOptional()?6:5:t.isOptional()?8:7:9:this._slotMatchesColumn(t,o)?t.isOptional()?2:1:t.isOptional()?4:3},_slotHasCapacity:function(t,e){var o=t.getId(),i=t.getMaxItems();return!(i&&i>-1)||(e[o]?e[o].length:0)<i},_slotMatchesColumn:function(t,e){var o=t.getType(),i=e.getType();return"any"===o||("ordinal"===o&&"fact"===i||"category"===o&&"attribute"===i)}});return o})),define("dashboard-analytics/extensions/smarts-recommender/impl/FallbackRecommender",["../../../visualizations/recommender/VisRecommenderBindingFallback"],(function(t){"use strict";return function(){function e(t){_classCallCheck(this,e),this.logger=t.logger,this.visDefinitions=t.visDefinitions}return e.prototype.destroy=function(){this.logger=null},e.prototype.recommendBindingsForNewColumns=function(e,o){var i=new t(e),n={slots:{},unbound:o,visId:e.getDefinition().getId()};return e.getSlots().getMappingInfoList().forEach((function(t){var e=n.slots[t.slot.getId()];e||(e=[],n.slots[t.slot.getId()]=e),e.push(t.dataItem.getColumnId())})),i.assignUnboundColumns(n,e.getDefinition().getSlotList()),Promise.resolve(n)},e.prototype._getValidSlotList=function(t){return t.getSlotList().filter((function(t){return!t.isHidden()}))},e.prototype.recommendBindingsForSelectedViz=function(e,o){var i=this.visDefinitions.getById(o),n=new t(e),r={slots:{},unbound:e.getSlots().getDataItemList().map((function(t){return t.getColumnId()})),visId:i.getId()};return n.assignUnboundColumns(r,this._getValidSlotList(i)),Promise.resolve(r)},e.prototype.recommendBestAlternateVisualization=function(t){var e=t.getSlots().getDataItemList().map((function(t){return t.getColumnId()}));return this.recommendAlternateVisualizations(e).then((function(t){return t[0]}))},e.prototype.recommendAlternateVisualizations=function(t){var e=this.visDefinitions.getByType("List"),o={slots:{},visId:e.getId()},i=t;return o.slots[e.getSlotList()[0].getId()]=i,Promise.resolve([o])},e.prototype.recommendRelatedVisualizations=function(){return Promise.resolve([])},e.prototype.recommendCompareVisualizations=function(){return Promise.resolve([])},e.prototype.recommendVisualizations=function(){return Promise.resolve([])},e}()})),define("dashboard-analytics/visualizations/recommender/LegacyMapMappingManager",["../../lib/@waca/core-client/js/core-client/ui/core/Class"],(function(t){"use strict";return t.extend({init:function(t){this.visualization=t,this.unmappedColumns=null},_getColumnType:function(t){var e=t.getTaxonomyList()?t.getTaxonomyList()[0]:null;return e&&"cGeoLocation"===e.getClass()?"location":t.getType()},_getSlotTypeForColumn:function(t){return{fact:"ordinal",attribute:"category",location:"location"}[this._getColumnType(t)]},_setExistingMappingInfo:function(t){this.visualization.getSlots().getMappingInfoList().forEach((function(e){t[e.slot.getId()]=[e.dataItem.getColumnId()]}))},mapColumnsToSlots:function(t,e,o){var i={};o&&this._setExistingMappingInfo(i);for(var n=t.getSlotList().filter((function(t){return!t.getProperty("multiplier")&&!i[t.getId()]})),r=0;r<n.length;r++){var a=n[r],s=a.getId();if(!e.length)break;var l=this._findBestMatchingColumnForSlot(a,e);i[s]=[l.getId()],e=e.filter((function(t){return t.getId()!==l.getId()}))}return this.unmappedColumns=e,i},getUnmappedColumns:function(){if(this.unmappedColumns.length)return this.unmappedColumns},_findBestMatchingColumnForSlot:function(t,e){var o,i=this;if(0!==e.length){if("location"===t.getSubType()&&(o=e.find((function(t){return"location"===i._getColumnType(t)}))))return o;var n=t.getType();return(o=e.find(function(t){return this._getSlotTypeForColumn(t)===n}.bind(this)))||e[0]}}})})),define("dashboard-analytics/visualizations/recommender/DashboardSmartsVisRecommenderWrapper",["underscore","./BaseSmartsVisRecommenderWrapper","./IRUtils","../../apiHelpers/SlotAPIHelper","../../widgets/livewidget/nls/StringResources","./LegacyMapMappingManager","./SmartsRecommenderError","./VisRecommenderBindingFallback","../../extensions/smarts-recommender/impl/Utils"],(function(t,e,o,i,n,r,a,s,l){"use strict";var u=e.extend({_UnsupportedVisIds:["list","dataPlayer","com.ibm.vis.rave2polygonmap"],_LegacyMapMappingManager:r,_VisRecommenderBindingFallback:s,init:function(t){var e=t.moserDataSources,o=t.visDefinitions,i=t.logger,n=t.dashboardApi,r=t.dataSources;this._visDefinitions=o,this._logger=i,this._dashboardApi=n;var a=n.getGlassCoreSvc(".Ajax"),s={};n.prepareGlassOptions(s),u.inherited("init",this,[{moserDataSources:e,ajaxSvc:a,logger:i,glassOptions:s,dashboardApi:n,dataSources:r}])},destroy:function(){u.inherited("destroy",this,arguments),this.moserDataSources=null,this._visDefinitions=null,this._logger=null,this._dashboardApi=null},getRecommendInfo:function(t){var e=this,o=this._getBoundColumnsInfo(t);this._replaceHiddenCustomGroupCols(o,t);var i=this._getRequestOptions(t),n=t.getDefinition();return u.inherited("getRecommendInfo",this,[{columns:o,visId:n?n.getId():null,requestOptions:i}]).then((function(t){return t.mandatorySlotsMissing?e._buildChartInfoFromColumns(o,i.module):t})).catch((function(t){return t.message===e.getUnsupportedVizErrCode()?e._buildChartInfoFromColumns(o,i.module):Promise.reject(t)}))},_replaceHiddenCustomGroupCols:function(t,e){var o=e.getDataSource().getId(),i=this._dashboardApi.getFeature("DataSources.moser");i&&i.isConsumerGroupColumn&&t.forEach((function(t){var e=t.columnIds;e.forEach((function(t,n){if(i.isConsumerGroupColumn(o,t)){var r=i.getCustomGroupData(o,t);r&&r.basedOnMoserObjectId&&(e[n]=r.basedOnMoserObjectId)}}))}))},_buildChartInfoFromColumns:function(t,e){var o=[];t&&t.length>0&&e&&t.forEach((function(t){t.columnIds.forEach((function(t){e.getMetadataColumn(t)&&o.push(e.getMetadataColumn(t).getLabel())}))}));var i=o.join(n.get("listSeparator")+" ");return Promise.resolve({label:i,title:i})},recommendBindingsForNewColumns:function(t,e){var o=this,i=t.getDefinition().getId();return this._isUnsupportedVisId(i)?this._recommendBindingsForUnsupportedVisId(t,i,e):new Promise((function(n){var r=o._getBoundColumnsInfo(t),a=o._getRequestOptions(t);n({columnsToBind:e,boundColumnsInfo:r,requestOptions:a,visId:i})})).then(this.recommendBindings.bind(this)).then(this._handleBindingRecommendationResponse.bind(this,t)).catch(this._handleSmartsError.bind(this))},recommendBindingsForSelectedViz:function(t,e){if(this._isUnsupportedVisId(e))return this._recommendBindingsForUnsupportedVisId(t,e);var o={visId:e,requestOptions:this._getRequestOptions(t)},i=t.getDefinition(),n=i?i.getId():null;return this._isUnsupportedVisId(n)?o.columnsToBind=l.getUnboundColumnsIds(t):(o.originalVisId=n,o.boundColumnsInfo=this._getBoundColumnsInfo(t)),this.recommendBindings(o).then(this._handleBindingRecommendationResponse.bind(this,t)).catch(this._handleSmartsError.bind(this))},recommendBestAlternateVisualization:function(t){var e=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return new Promise((function(e){e(o.concat(l.getUnboundColumnsIds(t)))})).then((function(o){return e.recommendAlternateVisualizations(o,e._getRequestOptions(t))})).then((function(t){return t[0]})).catch(this._handleSmartsError.bind(this))},_recommendBindingsForUnsupportedVisId:function(t,e,o){switch(e){case"com.ibm.vis.rave2polygonmap":return this._recommendBindingsForLegacyMap(t,e,o);case"dataPlayer":case"list":return this._recommendBindingsForList_DataPlayer(t,e,o)}},_handleSmartsError:function(t){throw this._logger.warn("An error occurred in the smart recommender",t),t},_handleBindingRecommendationResponse:function(t,e){var o=this;return this._getVisDefinition(e[0].visId).then((function(i){var n=i.getSlotList().filter((function(t){return!t.getProperty("hidden")})),r=n.map((function(t){return t.getId()})),a=i.getSlotList().filter((function(t){return!t.getProperty("optional")})).map((function(t){return t.getId()})),s=e.filter((function(t){return 0===Object.keys(t.slots).filter((function(t){return-1===r.indexOf(t)})).length})).reduce((function(t,e){var o=function(t){return Object.keys(t.slots).filter((function(t){return-1!==a.indexOf(t)})).length};return o(e)>o(t)?e:t}));return o._handleUnboundColumns(t,s,n)}))},_getRequestOptions:function(t){var e=this._getModule(t);return{assetId:e.getAssetId(),sourceType:e.getSourceType(),module:e}},_getVisDefinition:function(t){return Promise.resolve(this._visDefinitions.getById(t))},_getBoundColumnsInfo:function(e){var o=e.getSlots().getMappedSlotList();if(o&&o.length){var i=o.filter((function(t){return t&&!t.getDefinition().isHidden()})).map((function(t){var e=l.filterInvalidDataItems(t.getDataItemList()).map((function(t){return t.getColumnId()})),o=void 0;return e.length&&(o={slotId:t.getId(),columnIds:e}),o}));return t.filter(i,(function(t){return t}))}},_showToastForDroppedColumns:function(t,e){if(e&&e.length){var o=e.map((function(t){return t.getLabel()})).join(", ").toLocaleString(),i=n.get(t,{columns:o});this._dashboardApi.showToast(i,{type:"info",preventDuplicates:!0})}},_getUsedMetadataColumns:function(t){var e=[];return t.getSlots().getMappingInfoList().forEach((function(t){t.slot&&e.push(t.dataItem.getColumnId())})),e},_recommendBindingsForLegacyMap:function(t,e,o){var i=!0;o||(i=!1,o=this._getUsedMetadataColumns(t));var n=o.map((function(e){return t.getDataSource().getMetadataColumn(e)}));return this._getVisDefinition(e).then(function(e){var o=new this._LegacyMapMappingManager(t),r=o.mapColumnsToSlots(e,n,i);return o.getUnmappedColumns()&&this._showToastForDroppedColumns("maxColumnsExceeded",o.getUnmappedColumns()),{slots:r,visId:e.getId()}}.bind(this))},_recommendBindingsForList_DataPlayer:function(t,e,o){return this._getVisDefinition(e).then(function(e){var i,n=this._getUsedMetadataColumns(t);o&&(n=n.concat(o));var r=e.getSlotList()[0].getProperty("maxItems");n.length>r&&(i=n.splice(r)),i&&i.length>0&&this._showToastForDroppedColumns("maxColumnsExceeded",i.map((function(e){return t.getDataSource().getMetadataColumn(e)})));var a={slots:{},visId:e.getId()};return a.slots[e.getSlotList()[0].getId()]=n,a}.bind(this))},_isUnsupportedVisId:function(t){return null==t||-1!==this._UnsupportedVisIds.indexOf(t)},_handleUnboundColumns:function(t,e,o){var i=e.unbound;if(!i||!i.length)return e;var n=(e=new this._VisRecommenderBindingFallback(t).assignUnboundColumns(e,o)).unbound.length>1?"unboundColumns":"unboundColumn",r=t.getDataSource();return this._showToastForDroppedColumns(n,e.unbound.map((function(t){return r.getMetadataColumn(t)}))),e},_getModule:function(t){var e=void 0,o=t.getDataSource();return o&&(e=this.moserDataSources.getModule(o.getId())),e}});return u})),define("dashboard-analytics/extensions/smarts-recommender/impl/VisRecommenderDelegator",["./FallbackRecommender","../../../visualizations/recommender/DashboardSmartsVisRecommenderWrapper"],(function(t,e){"use strict";return function(){function o(i){_classCallCheck(this,o),this.classic=new t(i),this.smarts=new e(i),this.logger=i.logger}return o.prototype.destroy=function(){this.smarts.destroy(),this.smarts=null},o.prototype.recommendBindingsForNewColumns=function(t,e){return this.smarts.recommendBindingsForNewColumns(t,e).catch(function(o){return this.logger.error("Smarts Recommender failed. Falling back to classic. See error in arguments.",o),this.classic.recommendBindingsForNewColumns(t,e)}.bind(this))},o.prototype.recommendBindingsForSelectedViz=function(t,e){return this.smarts.recommendBindingsForSelectedViz(t,e).catch(function(o){return this.logger.error("Smarts Recommender failed. Falling back to classic. See error in arguments.",o),this.classic.recommendBindingsForSelectedViz(t,e)}.bind(this))},o.prototype.recommendBestAlternateVisualization=function(t,e){return this.smarts.recommendBestAlternateVisualization(t,e).catch(function(o){return this.logger.error("Smarts Recommender failed. Falling back to classic. See error in arguments.",o),this.classic.recommendBestAlternateVisualization(t,e)}.bind(this))},o.prototype.recommendAlternateVisualizations=function(t,e){return this.smarts.recommendAlternateVisualizations(t,e).catch(function(o){return this.logger.error("Smarts Recommender failed. Falling back to classic. See error in arguments.",o),this.classic.recommendAlternateVisualizations(t,e)}.bind(this))},o.prototype.recommendRelatedVisualizations=function(t,e){return this.smarts.recommendRelatedVisualizations(t,e).catch(function(o){return this.logger.error("Smarts Recommender failed. Falling back to classic. See error in arguments.",o),this.classic.recommendRelatedVisualizations(t,e)}.bind(this))},o.prototype.recommendCompareVisualizations=function(t,e){return this.smarts.recommendCompareVisualizations(t,e).catch(function(o){return this.logger.error("Smarts Recommender failed. Falling back to classic. See error in arguments.",o),this.classic.recommendCompareVisualizations(t,e)}.bind(this))},o.prototype.getRecommendInfo=function(t){return this.smarts?this.smarts.getRecommendInfo(t):Promise.reject("Recommended title not supported")},o}()})),define("dashboard-analytics/extensions/smarts-recommender/impl/SmartsRecommenderFeature",["./Utils","./VisRecommenderDelegator","../../../api/impl/Visualization","../../../widgets/livewidget/models/LiveWidgetModel"],(function(t,e,o,i){"use strict";return function(){function n(t){var o=t.features;_classCallCheck(this,n),this.features=o,this.transaction=o.Transaction,this.state=o["state.internal"],this.logger=o.Logger,this.visDefinitions=this.features.VisDefinitions,this.moserDataSources=this.features["DataSources.moser"],this._visRecommenderDelegator=new e({dataSources:this.features.DataSources,moserDataSources:this.moserDataSources,visDefinitions:this.visDefinitions,dashboardApi:this.features["Dashboard.API"],logger:this.logger})}return n.prototype.destroy=function(){this.features=null,this.transaction=null,this.state=null,this.logger=null,this.visDefinitions=null,this.creationTransactionToken=null,this._visRecommenderDelegator=null},n.prototype.getAPI=function(t){return"deprecated"===t?this._deprecatedAPI:this._api},n.prototype.isValidDataSource=function(t){return t.getDataSource()&&"error"!==t.getDataSource().getState()},n.prototype.getRecommendedVisualizations=function(t){var e=this;return this.isValidDataSource(t)&&t.getSlots().isMappingComplete()?this.recommendAlternateVisualizations(t).then((function(t){return t.map((function(t){return e.visDefinitions.getById(t.visId)}))})):Promise.resolve([])},n.prototype.getRecommendedTitle=function(t){return this.isValidDataSource(t)?this._visRecommenderDelegator.getRecommendInfo(t).then((function(t){return t.label})).catch((function(t){return Promise.reject(new Error(t))})):Promise.resolve()},n.prototype.setType=function(t,e,o){var i=this,n=this.transaction.startTransaction(o),r=this.visDefinitions.getByType(e);if(r)return t.isTypeLocked()||t.lockType(n),this.isValidDataSource(t)?this._visRecommenderDelegator.recommendBindingsForSelectedViz(t,r.getId()).then((function(e){i._applyRecommendationToVisualization(t,e,n)})).finally((function(){i.transaction.endTransaction(n)})):(t.setType(e,n),this.transaction.endTransaction(n),Promise.resolve());throw new Error("Invalid definition")},n.prototype.addDataItems=function(t,e,o){var i=this;if(!t.getDataSource())throw new Error("You must set a datasource in the visualization feature first");var n=e.map((function(t){return t.columnId})),r=this.transaction.startTransaction(o);return t.isTypeLocked()?this._visRecommenderDelegator.recommendBindingsForNewColumns(t,n).then((function(e){i._applyRecommendationToVisualization(t,e,r)})).finally((function(){i.transaction.endTransaction(r)})):this._visRecommenderDelegator.recommendBestAlternateVisualization(t,n).then((function(e){i.features.LiveWidgetSegment&&i.features.LiveWidgetSegment.track({visualization:t,info:e,category:"fromRecommendation"}),i._applyRecommendationToVisualization(t,e,r)})).finally((function(){i.transaction.endTransaction(r)}))},n.prototype.recommendBestVisualization=function(t,e){var o=this;if(this.isValidDataSource(t)){var i=this.transaction.startTransaction(e);return t.isTypeLocked()&&t.unlockType(i),this._visRecommenderDelegator.recommendBestAlternateVisualization(t).then((function(e){o.features.LiveWidgetSegment&&o.features.LiveWidgetSegment.track({visualization:t,info:e,category:"fromRecommendation"}),o._applyRecommendationToVisualization(t,e,i)})).finally((function(){o.transaction.endTransaction(i)}))}return Promise.resolve()},n.prototype.recommendAlternateVisualizations=function(e){var o=void 0;if(this.isValidDataSource(e)){var i=e.getDataSource(),n=this.moserDataSources.getModule(i.getId()),r=t.getUnboundColumnsIds(e);o=this._visRecommenderDelegator.recommendAlternateVisualizations(r,{assetId:n.getAssetId(),sourceType:n.getSourceType(),module:n})}else o=Promise.resolve([]);return o},n.prototype.recommendAlternateVisualizationsAsWidgetSpecs=function(t,e){var o=this;return this.recommendAlternateVisualizations(t).then((function(t){return o._transformWidgetRecommendationsToLiveWidgetSpecs(t,e)}))},n.prototype.recommendRelatedVisualizations=function(e){var o=void 0;if(this.isValidDataSource(e)){var i=e.getDataSource(),n=t.getUnboundColumnsIds(e),r=t.getTopBottomItems(e),a=t.getFilterItems(e);o=this.recommendRelatedVisualizationsFromColumnIds(i.getId(),n,[].concat(r,a))}else o=Promise.resolve([]);return o},n.prototype.recommendAlternateVisualizationsFromColumnIds=function(t,e){var o=this.moserDataSources.getModule(t);return this._visRecommenderDelegator.recommendAlternateVisualizations(e,{assetId:o.getAssetId(),sourceType:o.getSourceType(),module:o})},n.prototype.recommendRelatedVisualizationsFromColumnIds=function(t,e,o,i){var n=this.moserDataSources.getModule(t);return this._visRecommenderDelegator.recommendRelatedVisualizations(e,{assetId:n.getAssetId(),sourceType:n.getSourceType(),module:n,filters:o,includeBestVisForTargetFields:!!i,moserDataSources:this.moserDataSources,visualization:this.visualization})},n.prototype.recommendRelatedVisualizationsAsWidgetSpecs=function(t,e){var o=this;return this.recommendRelatedVisualizations(t).then((function(t){return o._transformWidgetRecommendationsToLiveWidgetSpecs(t,e)}))},n.prototype.recommendCompareVisualizationsAsWidgetSpecs=function(e,o){var i=void 0;if(this.isValidDataSource(e)){var n=e.getDataSource(),r=this.moserDataSources.getModule(n.getId()),a={};a.module=r,a.columnIds=t.getUnboundColumnsIds(e),a.widgetSpec=o,a.visualization=e,a.assetId=n.getAssetId(),a.sourceType=n.getType(),a.moserDataSources=this.moserDataSources,i=this._visRecommenderDelegator.recommendCompareVisualizations(a.columnIds,a)}else i=Promise.resolve([]);return i},n.prototype._transformWidgetRecommendationsToLiveWidgetSpecs=function(t,e){var n=this,r=[],a=[];return t.forEach((function(t){(e=JSON.parse(JSON.stringify(e))).name=t.label,t.filters&&t.filters.length>0&&(e.localFilters=t.filters);var s=new i(e),l=new o({doNotRegisterDataSourceUsage:!0,content:n.content,features:{"Models.internal":{getWidgetModel:function(){return s}},"Dashboard.API":n.features["Dashboard.API"],"Dashboard.Logger":n.features.Logger,"Dashboard.Colors":n.features.Colors,"Dashboard.Transaction":n.features.Transaction,"Dashboard.DataSources":n.features.DataSources,"Dashboard.internal":n.features["Dashboard.internal"],"Dashboard.VisDefinitions":n.features.VisDefinitions,"Dashboard.VisDefinitions.internal":n.features["VisDefinitions.internal"]}});r.push(l.initialize().then((function(){l.unlockType(),n._applyRecommendationToVisualization(l,t);var e=s.toJSON([],["thumbnailId"]);delete e.id,e.recommenderInfo={rtitle:t.title,description:t.description,label:t.label},a.push({name:s.get("name"),spec:e})})))})),console.log("recommendations... ",a),Promise.all(r).then((function(){return a}))},n.prototype._applyRecommendationToVisualization=function(t,e,o){var i=this.transaction.startTransaction(o),n=t.getSlots().getMappingInfoList().map((function(t){return t.dataItem&&t.dataItem.getId()}));if(e.visId!==t.getDefinition().getId()){var r=this.visDefinitions.getById(e.visId);t.setType(r.getType(),i)}var a=t.getSlots(),s=[],l={};a.getDataItemList().forEach((function(t){var e=a.getMappingInfo(t.getId());if(e){var o=e.slot.getId();l[o]||(l[o]=[]),l[o].push(t)}else s.push(t)}));var u={};for(var c in e.slots)e.slots[c].forEach((function(t){u[t]=!0}));var d=a.getSlotList();d.forEach((function(t){var o=t.getId();t.getDataItemList(!0).forEach((function(t){e.slots[o]&&e.slots[o].find((function(e){return t.getColumnId()===e}))||s.push(t)}))}));var p={};d.forEach((function(t){var o=t.getId(),n=t.getId(),r=[];if(e.slots[o])e.slots[o].forEach((function(t){var e=void 0,o=function(o){return!(!e&&t===o.getColumnId())||(e=o,!1)};l[n]&&(l[n]=l[n].filter(o)),e||(s=s.filter(o)),e||(e=a.createDataItems([{columnId:t}],i)[0]),r.push(e.getId())}));else{var c=a.getSlot(n);c.getDefinition().isHidden()&&c.getDataItemList().forEach((function(t){u[t.getColumnId()]||r.push(t.getId())}))}var d=t.getDataItemList(!0),f=d.filter((function(t){return t.isColumnUnavailable()}));f.length>0&&t.removeDataItems(f.map((function(t){return t.getId()})),i),p[n]=r,t.removeDataItemsMapping(d.map((function(t){return t.getId()})),i)})),Object.keys(p).map((function(t){return a.getSlot(t)})).sort((function(t,e){return(t.getDefinition().getProperty("multiMeasure")?1:-1)-(e.getDefinition().getProperty("multiMeasure")?1:-1)})).map((function(t){return t.getId()})).forEach((function(t){p[t].length>0&&a.getSlot(t).addDataItemsMapping(p[t],-1,i)}));var f=a.getMappingInfoList();e.topBottom&&e.topBottom.length>0&&e.topBottom.forEach((function(t){var e=t.itemId,o=t.spec,n=f.find((function(t){return t.dataItem.getColumnId()===e}));if(n){var r={type:o.type,value:o.value};o.context&&(r.context={itemId:o.context,aggregate:o.aggregate}),n.dataItem.setTopBottom(r,i)}})),(e.autoGroup||[]).forEach((function(t){var e=t.itemId,o=t.groupSize;if(t&&o){var n=f.find((function(t){return t.dataItem.getColumnId()===e}));n&&n.dataItem.setBinning({bins:o},i)}}));var h=a.getMappingInfoList().map((function(t){return t.dataItem&&t.dataItem.getId()})),g=n.filter((function(t){return-1===h.indexOf(t)}));g.length>0&&a.deleteDataItems(g,i),this.transaction.endTransaction(i)},n}()})),define("dashboard-analytics/extensions/smarts-recommender/content-features/api/VisualizationSmartsRecommenderAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.setType=function(){},t.prototype.addDataItems=function(){},t.prototype.recommendBestVisualization=function(){},t.prototype.getRecommendedVisualizations=function(){},t}()})),define("dashboard-analytics/extensions/smarts-recommender/content-features/api/DeprecatedVisualizationSmartsRecommenderAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.getRecommendedTitle=function(){},t.prototype.getRecommendedVisualizations=function(){},t.prototype.recommendAlternateVisualizationsAsWidgetSpecs=function(){},t.prototype.recommendRelatedVisualizationsAsWidgetSpecs=function(){},t.prototype.recommendCompareVisualizationsAsWidgetSpecs=function(){},t}()})),define("dashboard-analytics/extensions/smarts-recommender/content-features/VisualizationSmartsRecommender",["../../../lib/@waca/dashboard-common/dist/core/APIFactory","../impl/SmartsRecommenderFeature","./api/VisualizationSmartsRecommenderAPI","./api/DeprecatedVisualizationSmartsRecommenderAPI"],(function(t,e,o,i){"use strict";return function(e){function n(r){_classCallCheck(this,n);var a=_possibleConstructorReturn(this,e.call(this,r));return a.content=r.content,a.creationTransactionToken=r.transactionToken,a.visualization=r.features.Visualization,a.modelsInternal=r.features["Models.internal"],a._api=t.createAPI(a,[o]),a._deprecatedAPI=t.createAPI(a,[i]),a}return _inherits(n,e),n.prototype.destroy=function(){e.prototype.destroy.call(this),this.content=null,this.creationTransactionToken=null,this.visualization=null,this.modelsInternal=null,this._api=null,this._deprecatedAPI=null},n.prototype.getAPI=function(t){return"deprecated"===t?this._deprecatedAPI:this._api},n.prototype.getRecommendedVisualizations=function(){return e.prototype.getRecommendedVisualizations.call(this,this.visualization)},n.prototype.getRecommendedTitle=function(){return e.prototype.getRecommendedTitle.call(this,this.visualization)},n.prototype.setType=function(t,o){return e.prototype.setType.call(this,this.visualization,t,o)},n.prototype.addDataItems=function(t,o){return e.prototype.addDataItems.call(this,this.visualization,t,o)},n.prototype.recommendBestVisualization=function(t){return e.prototype.recommendBestVisualization.call(this,this.visualization,t)},n.prototype.recommendAlternateVisualizationsAsWidgetSpecs=function(){return e.prototype.recommendAlternateVisualizationsAsWidgetSpecs.call(this,this.visualization,JSON.parse(JSON.stringify(this.modelsInternal.getWidgetModel().toJSON())))},n.prototype.recommendRelatedVisualizationsAsWidgetSpecs=function(){return e.prototype.recommendRelatedVisualizationsAsWidgetSpecs.call(this,this.visualization,JSON.parse(JSON.stringify(this.modelsInternal.getWidgetModel().toJSON())))},n.prototype.recommendCompareVisualizationsAsWidgetSpecs=function(){return e.prototype.recommendCompareVisualizationsAsWidgetSpecs.call(this,this.visualization,JSON.parse(JSON.stringify(this.modelsInternal.getWidgetModel().toJSON())))},n}(e)})),define("dashboard-analytics/extensions/smarts-recommender/dashboard-features/api/SmartsRecommenderAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.recommendAlternateContent=function(){},t.prototype.recommendRelatedContent=function(){},t}()})),define("dashboard-analytics/extensions/smarts-recommender/dashboard-features/api/DeprecatedSmartsRecommenderAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.recommendAlternateVisualizationsAsWidgetSpecs=function(){},t.prototype.recommendRelatedVisualizationsAsWidgetSpecs=function(){},t.prototype.transformRecommendationsToLiveWidgetSpecs=function(){},t}()})),define("dashboard-analytics/extensions/smarts-recommender/dashboard-features/SmartsRecommender",["../../../lib/@waca/dashboard-common/dist/core/APIFactory","../impl/SmartsRecommenderFeature","./api/SmartsRecommenderAPI","./api/DeprecatedSmartsRecommenderAPI"],(function(t,e,o,i){"use strict";return function(e){function n(r){_classCallCheck(this,n);var a=_possibleConstructorReturn(this,e.call(this,r));return a._api=t.createAPI(a,[o]),a._deprecatedAPI=t.createAPI(a,[i]),a}return _inherits(n,e),n.prototype.destroy=function(){e.prototype.destroy.call(this),this._api=null,this._deprecatedAPI=null},n.prototype.getAPI=function(t){return"deprecated"===t?this._deprecatedAPI:this._api},n.prototype.recommendAlternateContent=function(){throw new Error("Not implemented yet")},n.prototype.recommendRelatedContent=function(){throw new Error("Not implemented yet")},n.prototype.recommendAlternateVisualizationsAsWidgetSpecs=function(t,o){var i=this;return e.prototype.recommendAlternateVisualizationsFromColumnIds.call(this,t,o).then((function(e){return i._transformToWidgetSpecs(e,t)}))},n.prototype.recommendRelatedVisualizationsAsWidgetSpecs=function(t,o,i){var n=this;return e.prototype.recommendRelatedVisualizationsFromColumnIds.call(this,t,o,null,i).then((function(e){return n._transformToWidgetSpecs(e,t)}))},n.prototype.transformRecommendationsToLiveWidgetSpecs=function(t,e){var o=this._visRecommenderDelegator.smarts._transformRecommendationResponse(e,t);return this._transformToWidgetSpecs(o,e)},n.prototype._transformToWidgetSpecs=function(t,e){return this._transformWidgetRecommendationsToLiveWidgetSpecs(t,{type:"live",data:{dataViews:[{id:"id_123",modelRef:e}]}})},n}(e)})),define("dashboard-analytics/extensions/viprUITest/content-features/AbstractTupleLocator",["underscore"],(function(t){return function(){function e(){_classCallCheck(this,e)}return e.prototype.findTupleVisualInfo=function(){throw new Error("Must be implemented by subclass")},e.prototype._itemSatisfiesFilter=function(e){var o=e.item,i=e.filter,n=this._getValueInfoFromItem(o);return Object.keys(i||{}).every((function(e){return"tuple"===e?(o=t.isArray(i.tuple)?i.tuple:[i.tuple]).length===n.tuple.length&&0===t.difference(o,n.tuple).length:function(t){return!!n[t]}(e);var o}))},e.prototype._getValueInfoFromItem=function(t){var e={key:t.key,tuple:[],tupleKeys:[],values:[]},o=function(t){t&&t.forEach((function(t){e.tupleKeys.push(t.uniqueName||t.getUniqueName&&t.getUniqueName());var o=t.source&&t.source.getCaption?t.source.getCaption():"_notAvailable";e.tuple.push(o)}))};return t.row?(e.type="datapoint",t.row.forEach((function(t){t.value?e.values.push(t.value):o(t.items)}))):(e.type="axispoint",delete e.values,o(t.items)),e.isSelected=!(!t.hasDecoration("selected")||!t.getDecoration("selected")),e.isHighlighted=!(!t.hasDecoration("highlighted")||!t.getDecoration("highlighted")),e},e}()})),define("dashboard-analytics/extensions/viprUITest/content-features/BinarySearchTupleLocator",["underscore","./AbstractTupleLocator"],(function(t,e){return function(e){function o(t){var i=t.viprWidget;_classCallCheck(this,o);var n=_possibleConstructorReturn(this,e.call(this));return n.viprWidget=i,n}return _inherits(o,e),o.prototype.findTupleVisualInfo=function(e,o){var i=this,n=o.includeInfo,r=o.includePoints;return t.flatten(this._getVisAreas().map((function(t){var o=t.x,n=t.y,r=t.w,a=t.h;return i._getVIDAItemsInRectangle({x0:o,y0:n,x1:o+r,y1:n+a}).filter((function(t){return i._itemSatisfiesFilter({item:t,filter:e})}))}))).map((function(t){var e={};return n&&(e.info=i._getValueInfoFromItem(t)),r&&(e.point=i._getPoint(t)),e}))},o.prototype._getVisAreas=function(){var t=this,e=this.viprWidget.domNode.getBoundingClientRect(),o={},i=function(i,n){var r=i?e.width-1:0,a=n?e.height-1:0,s=function(o,i){return t.viprWidget.getVisCoordinate(e.x+o,e.y+i).area},l=s(r,a);if("none"!==l&&!o[l]){var u=i?-1:1,c=n?-1:1,d=void 0,p=void 0;for(d=r;0<=d&&d<e.width&&s(d,a)===l;d+=u);for(d-=u,p=a;0<=p&&p<e.height&&s(r,p)===l;p+=c);p-=c,o[l]={x:Math.min(r,d),y:Math.min(a,p),w:Math.abs(r-d),h:Math.abs(a-p)}}};if(i(!1,!1),i(!0,!1),i(!1,!0),i(!0,!0),!o.visualization)throw new Error('Cannot find "visualization" area of widget');return Object.keys(o).map((function(t){return{extents:o[t],area:t}})).map((function(t){var e=t.extents,o=t.area;return _extends({},e,{area:o})}))},o.prototype._getVIDAItemsInRectangle=function(t){var e=this,o=t.x0,i=t.y0,n=t.x1,r=t.y1,a=this.viprWidget.domNode.getBoundingClientRect(),s=[[o,i],[n,i],[n,r],[o,r]].map((function(t){var e=t[0],o=t[1];return[e+a.x,o+a.y]})).map((function(t){var o=t[0],i=t[1];return e.viprWidget.getVisCoordinate(o,i)}));return this.viprWidget.getItemsInPolygon(s)},o.prototype._getPoint=function(t){var e=this,o=this._getVisAreas().find((function(o){var i=o.x,n=o.y,r=o.w,a=o.h;return e._isItemContainedIn(t,{x0:i,y0:n,x1:i+r,y1:n+a})}));if(!o)throw new Error("Item not found at any position within visualization");var i=o.x,n=o.y,r=i+o.w,a=n+o.h,s=this._binarySearch(r,i,(function(o){return e._isItemContainedIn(t,{x0:i,y0:n,x1:o,y1:a})})),l=this._binarySearch(a,n,(function(o){return e._isItemContainedIn(t,{x0:s-1,y0:n,x1:s,y1:o})}));return{selectedNode:this.viprWidget.domNode,xOffset:s,yOffset:l}},o.prototype._binarySearch=function(t,e,o){for(;Math.abs(t-e)>1;){var i=Math.round((t+e)/2);o(i)?t=i:e=i}return t},o.prototype._isItemContainedIn=function(t,e){var o=e.x0,i=e.y0,n=e.x1,r=e.y1;return this._getVIDAItemsInRectangle({x0:o,y0:i,x1:n,y1:r}).some((function(e){return t.key===e.key}))},o}(e)})),define("dashboard-analytics/extensions/viprUITest/content-features/SelectorTupleLocator",["underscore","./AbstractTupleLocator"],(function(t,e){return function(e){function o(t){var i=t.$el,n=t.selector,r=t.viprWidget;_classCallCheck(this,o);var a=_possibleConstructorReturn(this,e.call(this));return a.$el=i,a.selector=n,a.viprWidget=r,a}return _inherits(o,e),o.prototype.findTupleVisualInfo=function(e,o){var i=this,n=o.includeInfo,r=o.includePoints,a=this.$el.find(this.selector).toArray().map((function(t){return i._getPoint(t)})).map((function(t){return i._getItemsAtCenterOfElement(t).map((function(o){var a=i._getValueInfoFromItem(o);if(i._itemSatisfiesFilter({item:o,filter:e})){var s={};return n&&(s.info=a),r&&(s.point=t),s}})).filter((function(t){return!!t}))}));return t.flatten(a)},o.prototype._getPoint=function(t){var e=t.getBoundingClientRect();return{selectedNode:t,left:e.left,top:e.top,xOffset:e.width/2,yOffset:e.height/2}},o.prototype._getItemsAtCenterOfElement=function(t){var e=t.left,o=t.top,i=t.xOffset,n=t.yOffset,r=this.viprWidget.getVisCoordinate(e+i,o+n);return this.viprWidget.getItemsAtPoint(r)},o}(e)})),define("dashboard-analytics/extensions/viprUITest/content-features/api/ViprUITestApi",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.findPoint=function(){},t.prototype.takeSnapshot=function(){},t}()})),define("dashboard-analytics/extensions/viprUITest/content-features/ViprUITest",["underscore","../../../lib/@waca/dashboard-common/dist/core/APIFactory","./api/ViprUITestApi","./BinarySearchTupleLocator","./SelectorTupleLocator"],(function(t,e,o,i,n){return function(){function t(e){_classCallCheck(this,t),this.content=e.content}return t.prototype.getAPI=function(){return this._api||(this._api=e.createAPI(this,[o])),this._api},t.prototype._initLocators=function(){if(!this.locators){var t=this.content.getFeature("livewidget.internal").getVisView(),e=t.viprWidget,o=t.$el;this.locators={data:new i({viprWidget:e}),axis:new n({$el:o,viprWidget:e,selector:".axis-label"}),legend:new n({$el:o,viprWidget:e,selector:".Legend li"})}}},t.prototype.findPoint=function(t,e){this._initLocators(),e||(e={axis:!0,legend:!0,data:!0});for(var o=Object.keys(this.locators),i=0;i<o.length;i++){var n=o[i];if(e[n]){var r=this.locators[n].findTupleVisualInfo({tuple:t},{includePoints:!0});if(r.length)return r[0].point}}},t.prototype.takeSnapshot=function(t){var e=this;this._initLocators();var o={};return Object.keys(this.locators).forEach((function(i){return o[i+"Points"]=e.locators[i].findTupleVisualInfo(t,{includeInfo:!0}).map((function(t){return t.info}))})),o},t}()})),define("dashboard-analytics/extensions/visualization-crosstab/dashboard-features/CrosstabPropertyCallbacks",["underscore","../../../widgets/livewidget/nls/StringResources"],(function(t,e){return function(){function t(){_classCallCheck(this,t)}return t.prototype.getAPI=function(){return this},t.prototype._checkValidInput=function(t,o){return isNaN(t)?this._buildValidateResponse(!1,e.get("prop_sizeInputNonNumericValue")):parseInt(t)<o?this._buildValidateResponse(!1,e.get("prop_sizeValueShouldBeHigher",{value:o})):this._buildValidateResponse(!0)},t.prototype.checkValidRowHeightInput=function(t,e){return this._checkValidInput(e,24)},t.prototype.checkValidColumnWidthInput=function(t,e){return this._checkValidInput(e,24)},t.prototype._buildValidateResponse=function(t,e){return{isValid:t,message:e}},t}()})),define("dashboard-analytics/extensions/visualization-kpi/dashboard-features/KpiPropertyCallbacks",["underscore","jquery","../../../widgets/livewidget/nls/StringResources"],(function(t,e,o){return function(){function i(){_classCallCheck(this,i)}return i.prototype.getAPI=function(){return this},i.prototype._isSlotMapped=function(t){return(t&&t.getDataItemList()||[]).length>0},i.prototype._getDataItem=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t.getDataItemList()[e]},i.prototype.preRenderBaseLabelProperty=function(e){var o={},i=e.getFeature("Visualization").getSlots().getSlot("actual");if(this._isSlotMapped(i)){var n=this._getDataItem(i);o.placeHolderText=t.escape(n.getLabel())}else o.placeHolderText="";return o},i.prototype.preRenderTargetLabelProperty=function(e){var i={},n=e.getFeature("Visualization").getSlots().getSlot("goal");if(this._isSlotMapped(n)){var r=this._getDataItem(n);i.placeHolderText=t.escape(r.getLabel())}else i.placeHolderText=t.escape(o.get("kpiDefaultTargetLabel"));return i},i.prototype._getFormatForSlot=function(t,e){var o=this._getDataItem(e);return o&&o.getFormat()||{}},i.prototype.preRenderTargetValueProperty=function(e){var i={},n=e.getFeature("Visualization.internal"),r=n.getSlots().getSlot("goal"),a=n.getSlots().getSlot("actual");if(this._isSlotMapped(r))i.readOnly=!0,i.disabled=!0,i.placeHolderText=t.escape(o.get("kpiManualTargetSlotFilled")),i.value="";else if(a){var s=this._getFormatForSlot(n,a),l=Math.max(s.maximumFractionDigits||0,s.minimumFractionDigits||0);l&&(i.decimalPlaces=l)}return i},i.prototype.preRenderValueSizeProperty=function(t,e){var i={options:e.options,removeProperty:!0};return"auto"===i.options[0].value&&(i.options[0].label=o.get("kpiAutoValueSize")),i},i.prototype.onChangeValueSizeProperty=function(t,e,o){},i.prototype.validateTargetValueProperty=function(t,i){return{isValid:e.isNumeric(i)||!i,message:o.get("kpiNonNumericTarget")}},i}()})),define("dashboard-analytics/extensions/visualization-summary/dashboard-features/SummaryPropertyCallbacks",[],(function(){return function(){function t(e){_classCallCheck(this,t),this.dashboardApi=e.features.API}return t.prototype.getAPI=function(){return this},t.prototype.preRenderAlignmentProperty=function(t){return t.getFeature("livewidget.internal").getVisView().isInfographic()?{removeProperty:!0}:{}},t.prototype.preRenderValueSizeProperty=function(t,e){var o=t.getFeature("livewidget.internal").getVisView(),i=this.dashboardApi.getFeature("KpiPropertyCallbacks");return o.isInfographic()?{removeProperty:!0}:i.preRenderValueSizeProperty(t,e)},t.prototype.preRenderBaseLabelProperty=function(t){return this.dashboardApi.getFeature("KpiPropertyCallbacks").preRenderBaseLabelProperty(t)},t.prototype.preRenderFillDirectionProperty=function(t){return t.getFeature("livewidget.internal").getVisView().isInfographic()?{}:{removeProperty:!0}},t.prototype.onChangeValueSizeProperty=function(t,e,o){},t}()})),define("dashboard-analytics/extensions/layers",["./client-summaries/content-features/SummaryFeature","./client-summaries/content-features/SummaryQueryResult","./client-summaries/content-features/SummaryTask","./client-summaries/content-features/SummaryTypes","./dataBehindTheVis/content-features/DataBehindTheVis","./dataBehindTheVis/content-features/api/DataBehindTheVisAPI","./dataBehindTheVis/dashboard-features/DataBehindTheVisController","./dataBehindTheVis/dashboard-features/DataBehindTheVisView","./smarts-recommender/content-features/VisualizationSmartsRecommender","./smarts-recommender/content-features/api/DeprecatedVisualizationSmartsRecommenderAPI","./smarts-recommender/content-features/api/VisualizationSmartsRecommenderAPI","./smarts-recommender/dashboard-features/SmartsRecommender","./smarts-recommender/dashboard-features/api/DeprecatedSmartsRecommenderAPI","./smarts-recommender/dashboard-features/api/SmartsRecommenderAPI","./smarts-recommender/impl/FallbackRecommender","./smarts-recommender/impl/SmartsRecommenderFeature","./smarts-recommender/impl/Utils","./smarts-recommender/impl/VisRecommenderDelegator","./viprUITest/content-features/AbstractTupleLocator","./viprUITest/content-features/BinarySearchTupleLocator","./viprUITest/content-features/SelectorTupleLocator","./viprUITest/content-features/ViprUITest","./viprUITest/content-features/api/ViprUITestApi","./visualization-crosstab/dashboard-features/CrosstabPropertyCallbacks","./visualization-kpi/dashboard-features/KpiPropertyCallbacks","./visualization-summary/dashboard-features/SummaryPropertyCallbacks"],(function(){})),define("dashboard-analytics/features/layers",["./content/common/formatAction/FormatAction","./content/dataQueryExecution/QueryProvider","./content/dataQueryExecution/QueryDefinitionProvider","./content/dataQueryExecution/QueryDefinitionModifier","./content/dataQueryExecution/DetailQueryProvider","./content/dataQueryExecution/QueryDataItemBuilder","./content/dataQueryExecution/QueryModifier","./content/dataQueryExecution/DataQueryUtils","./content/dataQueryExecution/DataQueryExecution","./content/dataQueryExecution/QueryResults","./content/dataQueryExecution/DataQueryResult","./content/dataQueryExecution/DataQueryResultItem","./content/dataQueryExecution/QueryDefinitionProvider","./content/dataQueryExecution/SummaryQueryModifier","./content/dataQueryExecution/SummaryQueryProvider","./content/dataQueryExecution/V2QueryDefinitionModifier","./content/dataQueryExecution/api/DataQueryExecutionAPI","./content/dataQueryExecution/api/QueryDefinitionProviderAPI","./content/dataQueryExecution/api/QueryDefinitionModifierAPI","./content/dataQueryExecution/api/QueryProviderAPI","./content/dataQueryExecution/api/QueryResultsAPI","./content/dataQueryExecution/api/QueryModifierAPI","./content/dataQueryExecution/api/SummaryQueryModifierAPI","./content/slotActions/autoBinAction/BinAction","./content/layers","./content/slotActions/aggregationTypeAction/AggregationTypeAction","./content/slotActions/sortAction/SortAction","./content/slotActions/sortAction/CustomSortAction","./content/slotActions/deleteAction/DeleteAction","./content/slotActions/topBottomAction/TopBottomAction","./content/slotActions/filterAction/FilterAction","./content/slotActions/removeShapeAction/RemoveShapeAction","./content/slotActions/topKeyDriversAction/TopKeyDriversAction","./content/dataPointActions/hideRowColumnAction/HideRowColumnAction","./content/dataPointActions/filterAction/DataPointFilterAction","./content/dataPointActions/drillAction/DrillAction","./content/developerWidgetRefreshAction/DeveloperWidgetRefreshAction","./content/dataQueryExecution/CrosstabQueryDefinitionModifier","./widget/conditionalFormat/api/DeprecatedConditionalFormatAPI","./widget/deprecatedVisAPI/api/Deprecated_VisAPI","./widget/hierarchyDrillAction/api/HierarchyDrillActionAPI","./widget/smartRecommender/api/SmartRecommenderAPI","./widget/predictService/api/PredictServiceAPI","./widget/layers","../datatray/layers","./dashboard/layers","./dashboard/customViz/CustomVizService","./dashboard/fredIsRed/api/FredIsRedAPI","./dashboard/queryService/QueryResultColumn","./dashboard/queryService/QueryService","./dashboard/queryService/QueryService2","./dashboard/queryService/InternalQueryService","./dashboard/queryService/ResultItem","./dashboard/queryService/QueryResultData","./dashboard/queryService/Query","./dashboard/queryService/QueryDataItemSet","./dashboard/queryService/QueryDefinition","./dashboard/queryService/api/QueryAPI","./dashboard/queryService/api/QueryAPI2","./dashboard/queryService/api/QueryDefinitionAPI","./dashboard/queryService/api/QueryServiceAPI","./dashboard/queryService/api/QueryService2API","./dashboard/queryService/api/InternalQueryServiceAPI","./dashboard/queryService/api/QueryResultAPI","./dashboard/queryService/api/ResultItemAPI","./dashboard/visDefinitions/api/impl/VisDefinitions","./dashboard/visDefinitions/api/VisDefinitionsAPI","./dashboard/globalFilters/GlobalFilters","./dashboard/globalFilters/api/GlobalFiltersAPI","./dashboard/recommender/api/InternalRecommenderAPI","./dashboard/recommender/InternalRecommender","./dashboard/prompts/Prompts","./dashboard/prompts/controls/DateTimePromptView","./dashboard/prompts/controls/InputPromptView","./dashboard/prompts/controls/RangePromptView","./dashboard/prompts/controls/SearchAndSelectPromptView","./dashboard/prompts/api/PromptsAPI","./dashboard/actions/SearchAction","./dashboard/icons/LiveWidgetIconsProvider","./dashboard/actions/filterDock/FilterDockAction","./dashboard/actions/filterDock/ActiveFilterView","../extensions/layers"],(function(){})),define("dashboard-analytics/view/features/content/liveWidgetDOM/api/DOMProviderAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.getUIJSON=function(){},t}()})),define("dashboard-analytics/view/features/content/liveWidgetDOM/KPIDOMProvider",["jquery","./api/DOMProviderAPI","../../../../lib/@waca/dashboard-common/dist/core/APIFactory"],(function(t,e,o){return function(){function i(t){_classCallCheck(this,i),this._domNode=t.features.ContentViewDOM.getNode(),this.liveWidgetDOM=t.features.LiveWidgetDOM,this.visualization=t.features.Visualization,"KPI"===this.visualization.getType()&&this.liveWidgetDOM.registerProvider(this.getAPI())}return i.prototype.getAPI=function(){return this._api||(this._api=o.createAPI(this,[e])),this._api},i.prototype.getUIJSON=function(){return{base:this._retrieve("base"),target:this._retrieve("target"),time:this._retrieveTime()}},i.prototype._retrieveTime=function(){var e=t(this._domNode).find("div.dataview.kpi-widget > div.kpi-widget-content > div.kpi-widget-sparkline.widget svg.Rave2LineRenderer g.element-shape > path.line");if(e.length>0)return{color:e.css("stroke")}},i.prototype._retrieve=function(e){var o="div.dataview > div.kpi-widget-content > div.kpi-widget-value.kpi-widget-"+e+"-value.labeled-value > div.labeled-value",i=t(this._domNode).find(o+"-label > span");if(i.length>0){var n=t(this._domNode).find(o+"-value > span"),r=t(this._domNode).find(o+"-value > svg > use");return{label:{text:i.text(),color:i.css("color")},value:{text:n.text(),color:n.css("color"),shape:r.attr("xlink:href")}}}},i}()})),define("dashboard-analytics/view/features/content/liveWidgetDOM/api/LiveWidgetDOMAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.getUIJSON=function(){},t.prototype.registerProvider=function(){},t}()})),define("dashboard-analytics/view/features/content/liveWidgetDOM/LiveWidgetDOM",["./api/LiveWidgetDOMAPI","jquery","../../../../lib/@waca/dashboard-common/dist/core/APIFactory"],(function(t,e,o){return function(){function i(t){_classCallCheck(this,i),this._domNode=t.features.ContentViewDOM.getNode(),this.providers=[]}return i.prototype.getAPI=function(){return this._api||(this._api=o.createAPI(this,[t])),this._api},i.prototype.getUIJSON=function(){var t={widgetIcons:this._retrieveWidgetIcons(),title:this._retrieveTitle()};return this.providers.forEach((function(e){Object.assign(t,e.getUIJSON())})),t},i.prototype.registerProvider=function(t){this.providers.push(t)},i.prototype._retrieveWidgetIcons=function(){var t=e(this._domNode).find(".widgetHeader div.widgetIcons .dataWidgetIcon"),o=[];return t.length&&t.each((function(t,i){var n=e(i),r=n.attr("title"),a=n.attr("aria-label");n.is(":visible")&&(r&&a&&r===a?o.push({label:r}):o.push({label:null}))})),o.length?o:void 0},i.prototype._retrieveTitle=function(){var t=e(this._domNode).find(".widgetHeader .widgetTitle .textArea"),o=void 0;if(t&&t.length&&t.is(":visible")){var i=t.find("span.textFitted p span");o={value:i.text(),fontSize:i.css("font-size"),fontFamily:i.css("font-family"),alignment:i.css("text-align")}}return o},i}()})),define("dashboard-analytics/view/features/content/localFilterDialog/LocalFilterDialogAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.renderDialog=function(){},t}()})),define("dashboard-analytics/util/ToolbarHelper",["underscore","../lib/@waca/dashboard-common/dist/ui/AuthoringToolbar","jquery"],(function(t,e,o){return function(){function i(t){_classCallCheck(this,i),t=t||{},this._cbOnRemove=t.cbOnRemove||this._cbOnRemove}return i.prototype.getToolbar=function(){return this._actionMenuToolbar},i.prototype.buildActionToolbar=function(i,n,r,a){var s=t.clone(a);s.textOnly=!0,s.container=o("body"),s.notCentered=!0,s.popoverClass="popover actionToolbarPopover text",n=o(n).find(a.attachPoint||".toolbarRoot");var l=new e(s);l.setName(r),l.addItems(i),l.setSelectionContext([n]),l.show(s.placement),n.addClass("selected");l.on("flyout:hide",(function(){this._clearToolbar(),setTimeout(this._cbOnRemove.bind(this),100)}),this),l.on("toolbar:remove",this._cbOnRemove.bind(this)),this._actionMenuToolbar=l},i.prototype._cbOnRemove=function(){},i.prototype._clearToolbar=function(){this._actionMenuToolbar&&(t.each(this._actionMenuToolbar.selectionNodes,(function(t){o(t).removeClass("selected")})),this._actionMenuToolbar.hide(),this._actionMenuToolbar.remove(),this._actionMenuToolbar=null)},i}()})),define("dashboard-analytics/view/features/content/localFilterDialog/LocalFilterDialog",["../../../../lib/@waca/dashboard-common/dist/core/APIFactory","./LocalFilterDialogAPI","../../../../DynamicFileLoader","../../../../util/ToolbarHelper","../../../../widgets/livewidget/nls/StringResources"],(function(t,e,o,i,n){return function(){function r(o){_classCallCheck(this,r),this.api=t.createAPI(this,[e]),this._toolbarHelper=new i,this.dashboard=o.dashboardAPI,this.content=o.content}return r.prototype.renderDialog=function(t,e,i){var n=this,r=this.dashboard.getFeature("PageContextService").getPageContext(),a=this.content.getFeature("Visualization"),s=a.getDataSource().getMetadataColumn(t);return o.load(["dashboard-analytics/visualizations/interactions/FilterDropAction"]).then((function(t){var l=new(0,t[0])(a,s,r,n.dashboard);if(i.forceOpen||!s.isNamedSet()){var u=l.getEditorModuleName(),c=l.getViewOptions();return o.load([u]).then((function(t){var o=new t[0](c);return(n.preload&&n.preload()||(o.preload?o.preload():Promise.resolve())).then(n._createContextFilter.bind(n,o,e,i)).then((function(){return o.renderCallBack(n._toolbarHelper.getToolbar())}))}))}a.getLocalFilters().addFilter(l.itemContext,{command:"replace",exclude:!1,valueDataItem:s.getId(),type:s.isProperty()?"display":void 0})}))},r.prototype._createContextFilter=function(t,e,o){var i=[{responsive:!1,editable:!1,changedAction:null,subView:t,type:"SubView"}];o.popoverContentClass=t.$el&&t.$el.attr("class"),this._toolbarHelper.buildActionToolbar(i,e,n.get("toolbarActionFilter"),o)},r.prototype.getAPI=function(){return this.api},r}()})),define("dashboard-analytics/view/features/content/visExpandMode/api/VisExpandModeAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.renderExpandedModeContent=function(){},t.prototype.restore=function(){},t}()})),define("text!dashboard-analytics/view/features/content/visExpandMode/VisExpandMode.template",[],(function(){return'<div class="preview">\n\t<div class="expandPageViewContent">\n\t\t<div class="expandPage {{!it.boardBackgroundColorClass}}">\n\t\t\t<div class="liveWidget widget"></div>\n\t\t</div>\n\t</div>\n</div>\n'})),define("dashboard-analytics/view/features/content/visExpandMode/VisExpandMode",["./api/VisExpandModeAPI","text!./VisExpandMode.template","../../../../visualizations/vipr/VIPRLibraries","../../../../lib/@waca/dashboard-common/dist/core/APIFactory","doT"],(function(t,e,o,i,n){return function(){function r(t){_classCallCheck(this,r),this.dashboard=t.dashboardAPI,this.content=t.content}return r.prototype.getAPI=function(){return this._api||(this._api=i.createAPI(this,[t])),this._api},r.prototype.renderExpandedModeContent=function(t){t.classList.add("liveWidget"),t.classList.add("widgetExpanded");var i=this.content.getFeature("ContentViewDOM").getNode();this.el=i.querySelector(".widgetContent"),this._parentNode=this.el.parentNode;var r=this.dashboard.getCanvas().getPropertyValue("fillColor"),a=this.dashboard.getFeature("Colors"),s=r?"fill-"+a.getColorClassName(r):"",l=n.template(e)({boardBackgroundColorClass:s});this.headerNode=this._parentNode.querySelector(".widgetHeader"),this.previewMessageNode=this._parentNode.querySelector(".customVisPreviewMessage"),this.contentNode=document.createElement("div"),this.contentNode.classList.add("expandModeContainer"),this.contentNode.innerHTML=l,this.placeHolderNode=document.createElement("div"),this.placeHolderNode.style.width=this.el.offsetWidth,this.placeHolderNode.style.height=this.el.offsetHeight;var u=this.contentNode.querySelector(".widget");this.previewMessageNode&&u.appendChild(this.previewMessageNode),u.appendChild(this.headerNode),u.appendChild(this.el),this.el.parentNode.appendChild(this.placeHolderNode),this._applyCommonProperties(),t.appendChild(this.contentNode);var c=this.content&&this.content.getFeature("state.internal");if(c){var d=c.getError();if(d&&d.getParams){var p=d.getParams()||{};p.errorInfo&&p.errorInfo.errorCode===o.LOAD_DEFINITION_ERROR&&c.clearError()}}},r.prototype.restore=function(){this._parentNode&&this.headerNode&&this._parentNode.insertBefore(this.headerNode,this._parentNode.firstChild),this.placeHolderNode.parentNode.removeChild(this.placeHolderNode),this.contentNode.parentNode.removeChild(this.contentNode)},r.prototype._applyCommonProperties=function(){var t=this.content.getPropertyValue("fillColor"),e=this.content.getPropertyValue("borderColor"),o=this.dashboard.getFeature("Colors"),i=new RegExp("\\s*\\bfill|border-[^\\s]*\\b","g"),n=this.el.parentNode,r=n.getAttribute("class")||"";r=r.replace(i,""),t&&(r+=" fill-"+o.getColorClassName(t)),e&&(r+=" border-"+o.getColorClassName(e)),n.setAttribute("class",r)},r}()})),define("dashboard-analytics/view/features/layers",["./content/liveWidgetDOM/KPIDOMProvider","./content/liveWidgetDOM/LiveWidgetDOM","./content/localFilterDialog/LocalFilterDialog","./content/visExpandMode/VisExpandMode"],(function(){})),define("@dashboard-features/dssQueryService/js/dataSets/api/DataSetsAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.create=function(){},t.prototype.use=function(){},t.prototype.delete=function(){},t}()})),define("@dashboard-features/dssQueryService/js/dataSets/api/DataSetsInternalAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.getModule=function(){},t.prototype.getDataSource=function(){},t}()})),define("@dashboard-features/dssQueryService/js/dataSets/DataSetModel",["@waca/dashboard-livewidget/js/dataSources/models/sources/SourceModel"],(function(t){return function(t){function e(o){_classCallCheck(this,e);var i=_possibleConstructorReturn(this,t.call(this,o));return i.whitelistAttrs=["id","assetId","columnIds","type","deploymentReferenceId"],i.assetId=o.id,i}return _inherits(e,t),e}(t)})),define("@dashboard-features/dssQueryService/js/dataSets/DataSetQueryBase",[],(function(){return function(){function t(e,o){_classCallCheck(this,t),this.SEPARATOR="->",this._activeDataSet=e,this._originalColumnIds=o,this._datasetColumnIds=this._activeDataSet.getMetadataColumnList().map((function(t){return t.getId()}))}return t.prototype.getType=function(){return"main"},t.prototype.getDataSetColumnId=function(t){return this._getTargetColumnId(t,this._originalColumnIds,this._datasetColumnIds)},t.prototype.getDataSetValueUniqueId=function(t){return this._getTargetValueUniqueId(t,this._originalColumnIds,this._datasetColumnIds)},t.prototype.getOriginalColumnId=function(t){return this._getTargetColumnId(t,this._datasetColumnIds,this._originalColumnIds)},t.prototype.getOriginalValueUniqueId=function(t){return this._getTargetValueUniqueId(t,this._datasetColumnIds,this._originalColumnIds)},t.prototype._getTargetColumnId=function(t,e,o){if(!t)return t;var i=o[e.indexOf(t)];if(!i)throw this._getMissingColumnError();return i},t.prototype._getTargetValueUniqueId=function(t,e,o){if(!t)return t;if("object"===(void 0===t?"undefined":_typeof(t))){var i=this._getTargetValueUniqueId(t.u,e,o);return void 0!==i&&(t.u=i),t}var n=t.split(this.SEPARATOR)[0];return t.replace(n,this._getTargetColumnId(n,e,o))},t.prototype._getMissingColumnError=function(){return Object.assign(new Error,{code:"ds-missingColumn"})},t.prototype.updateMetadataInSpec=function(t){var e=this;t&&Object.keys(t).forEach((function(o){switch(o){case"itemId":case"columnId":t[o]=e._getTargetColumnId(t[o],e._originalColumnIds,e._datasetColumnIds);break;case"values":for(var i=0;i<t[o].length;i++)t[o][i]=e._getTargetValueUniqueId(t[o][i],e._originalColumnIds,e._datasetColumnIds);break;case"queryHints":break;default:if(Array.isArray(t[o])){t[o].forEach((function(t){return e.updateMetadataInSpec(t)}));break}t[o]instanceof Object&&e.updateMetadataInSpec(t[o])}}))},t}()})),define("@dashboard-features/dssQueryService/js/dataSets/DataSetQueryDataItem",[],(function(){return function(){function t(e,o){var i=this;if(_classCallCheck(this,t),this.OVERRIDE_FUNCTION_LIST=["getColumnId","getMetadataColumn","getTopBottom","setTopBottom"],!e)throw new Error("Missing parameter: MetadataColumnAPI");this.metadataColumn=e,o&&Object.keys(o).forEach((function(t){-1===i.OVERRIDE_FUNCTION_LIST.indexOf(t)&&(i[t]=o[t].bind(o))}))}return t.prototype.getColumnId=function(){return this.metadataColumn.getId()},t.prototype.getMetadataColumn=function(){return this.metadataColumn},t.prototype.getTopBottom=function(){return this.topBottom},t.prototype.setTopBottom=function(t){this.topBottom=t},t}()})),define("@dashboard-features/dssQueryService/js/dataSets/DataSetQueryModifier",["./DataSetQueryBase","./DataSetQueryDataItem"],(function(t,e){return function(t){function o(e,i){return _classCallCheck(this,o),_possibleConstructorReturn(this,t.call(this,e,i))}return _inherits(o,t),o.prototype.modifyQuerySpecList=function(t){var e=this;return t.forEach((function(t){t.dataSourceId=e._activeDataSet.getId(),e.updateMetadataInSpec(t.spec)})),t},o.prototype.modifyQueryDefinitionList=function(t){for(var e=this,o=0;o<t.length;o++){t[o].setDataSource(this._activeDataSet),t[o].getDataItemSetList().forEach((function(t){return e._modifyDataItemSet(t)})),this._updateMetadataInFilters(t[o].getFilters())}},o.prototype._modifyDataItemSet=function(t){var e=this,o=t.getDataItemList(),i=this._createQueryDataItems(o);t.setDataItemList(i),t.getDataItemSetList().forEach((function(t){e._modifyDataItemSet(t)}))},o.prototype._createQueryDataItems=function(t){var o=this;return t.map((function(t){var i=t.getMetadataColumn();if(i){var n=o.getDataSetColumnId(i.getId()),r=new e(o._activeDataSet.getMetadataColumn(n),t),a=t.getTopBottom();return o.updateMetadataInSpec(a),r.setTopBottom(a),r}return t}))},o.prototype._updateMetadataInFilters=function(t){var e=this;t.forEach((function(t){return e.updateMetadataInSpec(t)}))},o}(t)})),define("@dashboard-features/dssQueryService/js/dataSets/DatasetQueryPostProcessor",["./DataSetQueryBase"],(function(t){return function(t){function e(o,i){return _classCallCheck(this,e),_possibleConstructorReturn(this,t.call(this,o,i))}return _inherits(e,t),e.prototype.process=function(t){"2"===t.version?this._postProcessV2QueryResult(t):this._postProcessResult(t)},e.prototype._postProcessResult=function(t){var e=this;t.dataItems.forEach((function(t){t.itemClass.h.forEach((function(t){return t.u=e.getOriginalColumnId(t.u)})),t.items&&t.items.length&&t.items.forEach((function(t){t.t.forEach((function(t){t.u=e.getOriginalValueUniqueId(t.u)}))}))}))},e.prototype._postProcessV2QueryResult=function(t){var e=this;t.edges.forEach((function(t){var o=t.identifiers;for(var i in o)o[i]=e.getOriginalValueUniqueId(o[i])}))},e}(t)})),define("@dashboard-features/dssQueryService/js/dataSources/api/TaxonomyAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.getFamily=function(){},t.prototype.getDomain=function(){},t.prototype.getClass=function(){},t.prototype.destroy=function(){},t}()})),define("@dashboard-features/dssQueryService/js/dataSources/Taxonomy",["@waca/dashboard-common/js/core/APIFactory","./api/TaxonomyAPI"],(function(t,e){return function(){function o(t){_classCallCheck(this,o),this.taxonomy=t}return o.prototype.getAPI=function(){return t.createAPI(this,[e])},o.prototype.getFamily=function(){return this.taxonomy.family},o.prototype.getDomain=function(){return this.taxonomy.domain},o.prototype.getClass=function(){return this.taxonomy.clazz},o.prototype.destroy=function(){this.taxonomy=void 0},o}()})),define("@dashboard-features/dssQueryService/js/dataSources/MetadataColumn",["@waca/dashboard-common/js/core/APIFactory","./Taxonomy","@waca/dashboard-livewidget/js/features/dashboard/dataSources/api/MetadataColumnAPI","ca-modeller/shaping"],(function(t,e,o,i){return function(){function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,n),this.metadataColumn=t.metadataColumn,this.sourceModelAPI=t.sourceModelAPI}return n.prototype.destroy=function(){this.taxonomyList&&this.taxonomyList.each((function(t){t.destroy()}))},n.prototype.getAPI=function(){return this._api||(this._api=t.createAPI(this,[o])),this._api},n.prototype.getObjectType=function(){return this.metadataColumn.getObjectType()},n.prototype.getId=function(){return this.metadataColumn.getId()},n.prototype.getSourceId=function(){return this.metadataColumn.getSourceId()},n.prototype.getLabel=function(){return this.metadataColumn.getLabel()},n.prototype.setLabel=function(t){this.metadataColumn.setLabel(t)},n.prototype.setHidden=function(t){this.metadataColumn.setHidden(t)},n.prototype.getType=function(){return this.metadataColumn.getType()},n.prototype.getDataType=function(){return this.metadataColumn.getDataType()},n.prototype.getDefaultAggregation=function(){return this.metadataColumn.getDefaultAggregation()},n.prototype.getAggregationMode=function(){return this.metadataColumn.getAggregateMode()},n.prototype.getTaxonomyList=function(){var t=this.metadataColumn.getTaxonomy();return t&&t.length&&(this.taxonomyList=t.map((function(t){return new e(t).getAPI()}))),this.taxonomyList},n.prototype.getDefaultSortType=function(){return this.metadataColumn.getDefaultSortType()},n.prototype.getFormat=function(){return this.metadataColumn.getFormat()},n.prototype.getRootMember=function(){return this.metadataColumn.getRootMember()},n.prototype.isLeafMember=function(t){return this.metadataColumn.isLeafMember(t)},n.prototype.getCustomGroupData=function(){var t=this.metadataColumn.getMoserObject(),e=i.customGroupUtils.getCustomGroupObjectData(t);return e&&e.data&&0===e.messages.length&&this.isConsumerGroupColumn()?e.data:null},n.prototype.isConsumerGroupColumn=function(){var t=this.metadataColumn.getMoserObject();return-1!==(this.sourceModelAPI&&this.sourceModelAPI.getCustomGroupColumns()||[]).indexOf(t.idForExpression)},n.prototype.isFacetDefinitionEnabled=function(){var t=this.metadataColumn.getFacetDefinition(),e=!0;return t&&t.enabled&&(!t.enabled||"false"!==t.enabled.enumValue&&"automatic"!==t.enabled.enumValue)||(e=!1),e},n.prototype.getSourceCategory=function(){return this.metadataColumn.getSourceCategory()},n.prototype.isHierarchy=function(){return this.metadataColumn.isHierarchy()},n.prototype.isNamedSet=function(){return this.metadataColumn.isNamedSet()},n.prototype.isProperty=function(){return this.metadataColumn.isProperty()},n.prototype.isLevel=function(){return this.metadataColumn.isLevel()},n.prototype.isSingleRootHierarchy=function(){return this.metadataColumn.isSingleRootHierarchy()},n.prototype.getReferencedHierarchyId=function(){return this.metadataColumn.getRefToHierarchy()},n.prototype.isOlapColumn=function(t){return this.metadataColumn.isOlapColumn(t)},n.prototype.isNumericDataType=function(){return this.metadataColumn.isNumericDataType()},n.prototype.isDateTimeDataType=function(){return this.metadataColumn.isDateTimeDataType()},n.prototype.isFilter=function(){return this.metadataColumn.isFilter()},n.prototype.isEditableCalculation=function(){return this.metadataColumn.isEditableCalculation()},n.prototype.getTableName=function(){return this.metadataColumn.getTableName()},n.prototype.getTableId=function(){var t=this.metadataColumn.getTable();return t?t.getIdentifier():""},n.prototype.getDeprecatedMetadataColumn=function(){return this.metadataColumn},n.prototype.isHidden=function(){var t=this.metadataColumn.isHidden();return t&&(t=!this.isConsumerGroupColumn()),!!t},n.prototype.isMissing=function(){return this.metadataColumn.isMissing()},n.prototype.getParent=function(){var t=this.metadataColumn.getParent();return t?new n({metadataColumn:t,sourceModelAPI:this.sourceModelAPI}):null},n.prototype.getHierarchyLevelIds=function(){return this.metadataColumn.getHierarchyLevelIds()},n}()})),define("@dashboard-features/dssQueryService/js/dataSources/DataSource",["underscore","@waca/dashboard-common/js/core/APIFactory","./MetadataColumn","@waca/dashboard-livewidget/js/features/dashboard/dataSources/api/MetadataColumnAPI","@waca/dashboard-livewidget/js/features/dashboard/dataSources/api/DataSourceAPI","@waca/dashboard-livewidget/js/dataSources/utils/ShapingUIUtils","@waca/dashboard-livewidget/js/dataSources/utils/RelinkUtils","@waca/dashboard-livewidget/js/apiHelpers/SlotAPIHelper","bi/moser/moser.min"],(function(t,e,o,i,n,r,a,s,l){var u,c,d="Calling getMetadataColumn before loadMetadata was called";return c=u=function(){function u(t,e,o){_classCallCheck(this,u),this.sourceModelAPI=e,this.sourcesCollectionManager=t,this._columnsCacheOnType={},this.dashboardApi=o.API,this._setShapingEventHandler(e),this._initColumns(),this.dashboardApi.on("mode:change",this._onModeChange,this)}return u.prototype._setShapingEventHandler=function(t){var e=this;t.getModule().then((function(t){e.shapingEventHandler=t.on("shapingmodel:changed",e._onShapingModelChange.bind(e))}))},u.prototype._initMultiMeasureColumn=function(){var t=new i;t.getId=function(){return"_multiMeasuresSeries"},t.getType=function(){return"attribute"},t.isHidden=function(){return!1},this._columnCache._multiMeasuresSeries=t},u.prototype._initColumns=function(){this._columnCache={},this._initMultiMeasureColumn()},u.prototype._onModeChange=function(t){t.authoring?this._getModuleAPI().ensureTemporaryModule().then(this._initColumns.bind(this)):this._initColumns()},u.prototype._onShapingModelChange=function(t){this._initColumns(),this.dashboardApi.triggerDashboardEvent("shapingmodel:changed",t)},u.prototype._getModuleAPI=function(){return this.sourceModelAPI.getModuleAPI()},u.prototype.destroy=function(){this.shapingEventHandler&&(this.shapingEventHandler.remove(),this.shapingEventHandler=null),this._columnCache=null,this._columnsCacheOnType=null,this.sourceModelAPI=void 0,this.dashboardApi.off("mode:change",this._onModeChange,this)},u.prototype.getId=function(){return this.sourceModelAPI.getId()},u.prototype.getAssetId=function(t){if("shaping"===t){var e=this.sourceModelAPI.getModuleAPI();if(e&&e.getShapingId())return e.getEmbeddedModuleId()}return this.sourceModelAPI.getAssetId()},u.prototype.getType=function(){return this.sourceModelAPI.getType()},u.prototype.getProtocol=function(){return u.PROTOCOL},u.prototype.getLocalizedName=function(){return this.sourceModelAPI.getLocalizedName()},u.prototype.getSearchPath=function(){return this.sourceModelAPI.getSearchPath()},u.prototype.getName=function(){throw new Error("Not implemented yet.")},u.prototype.getState=function(){return this.sourceModelAPI.getState()},u.prototype.getAPI=function(){return e.createAPI(this,[n])},u.prototype.loadMetadata=function(){return this.sourceModelAPI.getModule()},u.prototype.getTable=function(t){var e=this._getModuleAPI().getMetadataColumn(t);return e?e.getTable():null},u.prototype.getMetadataColumnImpl=function(t){var e=this._getModuleAPI();if(!e)throw new Error(d);if("error"!==e.getState()){var i=e.getMetadataColumn(t);if(i)return new o({metadataColumn:i,sourceModelAPI:this.sourceModelAPI})}return null},u.prototype.getMetadataColumn=function(t){if(!this._columnCache[t]){var e=this.getMetadataColumnImpl(t);if(e){var o=e.getAPI();this._columnCache[t]=o||null}else this._columnCache[t]=null}return this._columnCache[t]},u.prototype.relink=function(t){return a.relink(this.sourceModelAPI,t,this.dashboardApi)},u.prototype.editCalculation=function(t){return this._getModuleAPI()?r.renderCalculationDialog(this._getModuleAPI(),t,!0).then((function(){return!0})):Promise.reject(d)},u.prototype.pickItems=function(e){var o=this,i=t.map(e.initialFieldIds,(function(t){return o._getModuleAPI().getMetadataColumn(t).getMoserObject()})),n=t.map(e.recommendedFieldIds,(function(t){return o._getModuleAPI().getMetadataColumn(t).getMoserObject()}));return this._getModuleAPI().getShapingHelper().openItemPicker({labels:e.labels,initialItems:i,recommendedItems:n,max:e.max,transformDroppedItems:this._transformDroppedItems.bind(this),canDrop:this._canDrop.bind(this)}).then((function(t){return t&&t.map((function(t){return o.getMetadataColumn(t.idForExpression)}))}))},u.prototype._transformDroppedItems=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(t&&t.length){var e=this.dashboardApi.getCanvas().getSelectedContentList()[0].getId(),o=this.dashboardApi.getCanvas().getContent(e),i=o&&o.getFeature("Visualization"),n=i.getSlots().getSlotList()[0].getId(),r=i.getSlots().getSlot(n).getDataItemList()[0].getColumnId(),a=["QueryItem","Calculation"];t=t.filter((function(t){return-1!==a.indexOf(t.getObjectType())&&t.getIdForExpression()!==r}))}return t},u.prototype._canDrop=function(t){return!(!t||0===t.length)},u.prototype.getNavigationPaths=function(t,e){var o=this.getMetadataColumnImpl(t),i=o&&o.getCustomGroupData(),n=i&&i.basedOnMoserObjectId;if(n&&e.length){var r=[],a=e[0].columnId,l=this.getMetadataColumnImpl(a).getCustomGroupData();if(l&&l.groupsList&&l.groupsList.forEach((function(t){e.forEach((function(e){e.label!==t.label&&e.label!==t.placeholder||r.push(t)}))})),r.length&&t&&t!==s.MULTI_MEASURES_SERIES){var u=[this._createCustomGroupNavigationPath(t,n)],c=this.getDrillGroups(n);return c&&c.length&&(u=u.concat(c)),u}return this.getDrillGroups(n)}return t&&this.getDrillGroups(t)},u.prototype.getDrillGroups=function(t){return t?this._getModuleAPI().getDrillGroupsForColumn(t):this._getModuleAPI().getDrillGroups()},u.prototype._createCustomGroupNavigationPath=function(t,e){var o=l.default.createObjectFactory(),i=o.createDrillGroup(),n=o.createDrillGroupSegment(),r=this._getModuleAPI().getMetadataColumn(t).getMoserObject();n.setRef(t),n.setLabel(r.label),n.setIdentifier(r.identifier),i.addSegment(n);var a=o.createDrillGroupSegment(),s=this._getModuleAPI().getMetadataColumn(e).getMoserObject();return a.setRef(e),a.setLabel(s.label),a.setIdentifier(s.identifier),i.addSegment(a),i},u.prototype.createCalculation=function(t){var e=this;return this._getModuleAPI()?r.renderCalculationDialog(this._getModuleAPI(),t,!1,{forceGlobal:!0}).then((function(t){if(t&&t.idForExpression){var o=[];return o.push(e._getModuleAPI().getMetadataColumn(t.idForExpression)),o}})):Promise.reject(d)},u.prototype.validateCustomGroup=function(t,e,o){return!!this._getModuleAPI()&&0===r.validateCustomGroup(this._getModuleAPI(),t,e,o).length},u.prototype.createCustomGroup=function(t,e,o,i){var n=this;return this._getModuleAPI()?r.renderCustomGroupDialog(this._getModuleAPI(),t,e,o,i).then((function(t){var e=[];return e.push(n.getMetadataColumn(t.element.idForExpression)),e})):Promise.reject(d)},u.prototype.removeCustomGroup=function(t){return this._getModuleAPI()?r.removeColumnFromModule(this._getModuleAPI(),t):Promise.reject(d)},u.prototype.getCustomGroupColumns=function(){return this.sourceModelAPI.getCustomGroupColumns()},u.prototype.setCustomGroupColumns=function(t,e){var o=this._applyTransactionToken(e);this.sourceModelAPI.setCustomGroupColumns(t,o)},u.prototype.registerUsage=function(t){this.sourcesCollectionManager.registerUsage(t,this.getId())},u.prototype.deregisterUsage=function(t){this.sourcesCollectionManager.deregisterUsage(t)},u.prototype.isDataSourceUsed=function(){return this.sourcesCollectionManager.isSourceUsed(this.getId())},u.prototype.isUsedBy=function(t){return this.getId()===this.sourcesCollectionManager.usesSource(t)},u.prototype.isOlapPackage=function(){return this.sourceModelAPI.getIsOlapPackage()||!1},u.prototype.getModule=function(){return this.sourceModelAPI.getModule()},u.prototype.getModificationTime=function(){return this.sourceModelAPI.getModificationTime()},u.prototype.hasJoinedTables=function(t,e){return this._getModuleAPI().tablesHaveJointRelationship(t,e)},u.prototype._applyTransactionToken=function(t){var e=void 0;return t&&t.transactionId&&(e={payloadData:{undoRedoTransactionId:t.transactionId,transactionToken:t}}),e},u.prototype.getMetadataColumnList=function(t){return this.findMetadataColumns("",t)},u.prototype._escapeRegex=function(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},u.prototype.findMetadataColumns=function(e,i){var n=this;if(!this._getModuleAPI())throw new Error(d);var r=this._columnsCacheOnType[i]?this._columnsCacheOnType[i]:this._getModuleAPI().getMetadataColumns((function(t){return void 0===i||t.type===i}));this._columnsCacheOnType[i]||(this._columnsCacheOnType[i]=r);var a=e?e.trim():"";if(""!==a){var s=new RegExp(this._escapeRegex(a),"i");r=t.filter(r,(function(t){return t.getLabel().match(s)}))}return t.map(r,(function(t){return new o({metadataColumn:t,sourceModelAPI:n.sourceModelAPI}).getAPI()}))},u}(),u.PROTOCOL="CA",c})),define("@dashboard-features/dssQueryService/js/dataSets/DataSets",["@waca/dashboard-common/js/core/APIFactory","./api/DataSetsAPI","./api/DataSetsInternalAPI","@waca/dashboard-common/js/core/Collection","@waca/dashboard-livewidget/js/dataSources/modelapis/SourceModelAPI","../dataSources/DataSource","./DataSetQueryModifier","./DatasetQueryPostProcessor","./DataSetModel","underscore","@waca/dashboard-livewidget/js/DynamicFileLoader","@waca/dashboard-livewidget/js/widgets/livewidget/nls/StringResources"],(function(t,e,o,i,n,r,a,s,l,u,c,d){return function(){function p(t){_classCallCheck(this,p),this.dashboard=t.features.API;var e=t.spec||{};this.dataSetModels=new i(e.dataSets,{modelClass:l}),this.dataSetDataModules={},this.dataSetDataSources={},this.deregisterHandlers={},this.contentStoreReferences=t.features.ContentStoreReferences,this.contentStoreReferences.registerProvider(this)}return p.prototype.initialize=function(){var t=this;this.dataSetModels.each((function(e){var o=t.contentStoreReferences.getLatestAssetId(e.deploymentReferenceId);o&&e.deploymentReferenceId!==o&&(e.deploymentReferenceId=o)}))},p.prototype.toJSON=function(){return this.dataSetModels.size()?{dataSets:this.dataSetModels.toJSON()}:{}},p.prototype.getAPI=function(i){return"internal"===i?(this.internalAPI||(this.internalAPI=t.createAPI(this,[o])),this.internalAPI):(this._api||(this._api=t.createAPI(this,[e])),this._api)},p.prototype.destroy=function(){this.dataSetModels.length=0,this.dataSetDataModules={},this.dataSetDataSources={},this.deregisterHandlers={}},p.prototype.create=function(t){var e=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=this.dashboard.getFeature("internal").getBoardModel().id;if(!i){var n="ds-missingDashboardId";return Promise.reject(Object.assign(new Error,{code:n,assetId:t,message:d.get(n)}))}if(this._isOlap(o)){var r="ds-unsupportedDataSourceType";return Promise.reject(Object.assign(new Error,{code:r,assetId:t,message:d.get(r,{type:"OLAP"})}))}var a=o.map((function(t){return{expression:t}}));return this.dashboard.findGlassCollection("com.ibm.bi.DatasetService.provider").then((function(n){var r=u.find(n,(function(t){return"com.ibm.bi.datasets.DatasetService"===t.id})),s={};return e.dashboard.prepareGlassOptions(s),e._getNewServiceInstance(r.class,s).then((function(e){return e.createDataset("","",i,t,!1,!0,null,a,"fail")})).then((function(t){return s.glassContext.getSvc(".DatasetExecutionService").then((function(e){return e.execute({id:t.id,showToastWhenDone:!1,glassContext:s.glassContext})})).then((function(){var i={id:t.id,type:"dataSet2",columnIds:o,deploymentReferenceId:t.id};return e.dataSetModels.add(i,{silent:!0,payloadData:{skipUndoRedo:!0}}),t.id}))}))}))},p.prototype._isOlap=function(t){var e=this.dashboard.getFeature("DataSources").getDataSourceList(),o=void 0;return e.find((function(e){return o=e.getMetadataColumn(t[0])})),o&&o.isOlapColumn()},p.prototype.use=function(t){var e=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=this.dataSetModels.get(t);if(!i){var n="ds-missingDataSet";return Promise.reject(Object.assign(new Error,{code:n,assetId:t,message:d.get(n)}))}return this._getDataSetDataSource(t).then((function(t){var i=o.map((function(t){return e.dashboard.getCanvas().getContent(t)})).filter(Boolean);return e._registerFeatures(i,t),e._renderContents(i)}))},p.prototype._removeDataSet=function(t){this.dataSetModels.remove(t,{silent:!0,payloadData:{skipUndoRedo:!0}}),delete this.dataSetDataModules[t],delete this.dataSetDataSources[t]},p.prototype._renderContents=function(t){var e=[];t.forEach((function(t){"rendered"===t.getFeature("state").getStatus()?e.push(t.getFeature("RenderSequence.internal").triggerRenderSequence({refreshAll:!0,renderId:0})):e.push(Promise.resolve())}));return Promise.all(e.map((function(t){return t.then((function(t){return{result:t,status:"fulfilled"}}),(function(t){return{error:t,status:"rejected"}})).catch((function(t){return{error:t,status:"rejected"}}))}))).then((function(t){var e=t.filter((function(t){return"rejected"===t.status}));if(e.length)return Promise.reject(e)}))},p.prototype._registerFeatures=function(t,e){var o=this,i=this._getOriginalColumnIds(e.getId());t.forEach((function(t){var n=t.getId();o.deregisterHandlers[n]?(o.deregisterHandlers[n].forEach((function(t){return t.remove()})),o.deregisterHandlers[n].length=0):o.deregisterHandlers[n]=[];var r=t.getFeature("DataQueryExecution"),l=new a(e,i);o.deregisterHandlers[n].push(r.registerQueryModifier(l)),o.deregisterHandlers[n].push(r.registerQueryDefinitionModifier(l));var u=new s(e,i);o.deregisterHandlers[n].push(r.registerQueryPostProcessor(u))}))},p.prototype._getOriginalColumnIds=function(t){var e=this.dataSetModels.get(t);return e&&e.get("columnIds")},p.prototype._getDataSetDataSource=function(t){var e=this;if(!this.dataSetDataSources[t]){var o=this.dataSetModels.get(t);if(o.id!==o.deploymentReferenceId){var i=o.toJSON();i.id=o.deploymentReferenceId,i.assetId=o.deploymentReferenceId,o=new l(i)}var a=new n({sourceModel:o,dashboardApi:this.dashboard});return a.getModule().then((function(o){e.dataSetDataModules[t]=o;var i=new r(null,a,{API:e.dashboard}).getAPI();return e.dataSetDataSources[t]=i,i}))}return Promise.resolve(this.dataSetDataSources[t])},p.prototype.getModule=function(t){return this.dataSetDataModules[t]},p.prototype.getDataSource=function(t){return this.dataSetDataSources[t]},p.prototype._getNewServiceInstance=function(t,e){var o=this;return this._datasetProvider?Promise.resolve(this._datasetProvider):(this.dynamicFileLoader||c).load([t]).then((function(t){return o._datasetProvider=new t[0](e),o._datasetProvider}))},p.prototype.delete=function(t){var e=this,o=[];return this.dashboard.getGlassSvc(".Content").then((function(i){u.each(t,(function(t){var n=i.delete("v1/objects/"+encodeURIComponent(t)+"?force=true&recursive=true",{}).then((function(){return e._removeDataSet(t)}));o.push(n)}));return Promise.all(o.map((function(t){return t.fail((function(){return{status:"rejected"}}))})))})).then((function(e){var o=[];if(e.forEach((function(e,i){e&&"rejected"===e.status&&(e.error=Object.assign(new Error,{code:"ds-deleteError",assetId:t[i]}),o.push(e))})),o.length)return Promise.reject(o)}))},p.prototype.getContentStoreReferences=function(){return this.dataSetModels.map((function(t){return{assetId:t.deploymentReferenceId,type:t.type}}))},p}()})),define("@dashboard-features/dssQueryService/js/dataSources/api/CalculationUIAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.editCalculation=function(){},t.prototype.createCalculation=function(){},t}()})),define("@dashboard-features/dssQueryService/js/dataSources/api/CustomGroupUIAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.validateCustomGroup=function(){},t.prototype.createCustomGroup=function(){},t.prototype.removeCustomGroup=function(){},t}()})),define("@dashboard-features/dssQueryService/js/dataSources/api/DataSourcesMoserAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.getNavigationPaths=function(){},t.prototype.getDrillGroups=function(){},t.prototype.setCustomGroupColumns=function(){},t.prototype.getCustomGroupColumns=function(){},t.prototype.getCustomGroupData=function(){},t.prototype.isConsumerGroupColumn=function(){},t.prototype.ensureTemporaryModule=function(){},t.prototype.addToUndoStack=function(){},t.prototype.getOriginalSourceType=function(){},t.prototype.getModule=function(){},t.prototype.registerMetadataSubsetIdsProvider=function(){},t.prototype.getMetadataSubsetIds=function(){},t}()})),define("@dashboard-features/dssQueryService/js/query/v2/v5/api/V5QuerySetAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.newQuery=function(){},t.prototype.newQueryResultDefinition=function(){},t}()})),define("@dashboard-features/dssQueryService/js/query/v2/v5/api/V5QueryAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.getName=function(){},t.prototype.newSelectionDataItem=function(){},t.prototype.newDetailFilter=function(){},t.prototype.newQueryHint=function(){},t}()})),define("@dashboard-features/dssQueryService/js/query/v2/v5/api/V5DataItemAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.getName=function(){},t.prototype.setAggregate=function(){},t.prototype.setRollupAggregate=function(){},t.prototype.setSolveOrder=function(){},t}()})),define("@dashboard-features/dssQueryService/js/query/v2/v5/V5DataItem",["@waca/dashboard-common/js/core/APIFactory","./api/V5DataItemAPI"],(function(t,e){return function(){function o(t){var e=t.name,i=t.expression,n=t.aggregate,r=t.rollUpAggregate;_classCallCheck(this,o),this.name=e,this.expression=i,this.solveOrder=null,this.setAggregate(n),this.setRollupAggregate(r)}return o.prototype.getAPI=function(){return this.api||(this.api=t.createAPI(this,[e])),this.api},o.prototype.getName=function(){return this.name},o.prototype.setAggregate=function(t){this.aggregate=t},o.prototype.setSolveOrder=function(t){this.solveOrder=t},o.prototype.setRollupAggregate=function(t){this.rollupAggregate=t},o.prototype.toJSON=function(){var t={"attr:name":this.name,expression:this.expression.toString()};return this.aggregate&&(t["attr:aggregate"]=this.aggregate),this.rollupAggregate&&(t["attr:rollupAggregate"]=this.rollupAggregate),this.solveOrder&&(t["attr:solveOrder"]=this.solveOrder),t},o}()})),define("@dashboard-features/dssQueryService/js/query/v2/v5/api/V5DetailFilterAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.setPostAutoAggregation=function(){},t}()})),define("@dashboard-features/dssQueryService/js/query/v2/v5/V5DetailFilter",["@waca/dashboard-common/js/core/APIFactory","./api/V5DetailFilterAPI"],(function(t,e){return function(){function o(t){var e=t.expression;_classCallCheck(this,o),this.expression=e}return o.prototype.setPostAutoAggregation=function(t){this.postAutoAggregation=t},o.prototype.getAPI=function(){return this.api||(this.api=t.createAPI(this,[e])),this.api},o.prototype.toJSON=function(){var t={detailFilter:{filterExpression:this.expression.toString()}};return void 0!==this.postAutoAggregation&&(t.detailFilter["attr:postAutoAggregation"]=this.postAutoAggregation),t},o}()})),define("@dashboard-features/dssQueryService/js/query/v2/v5/api/V5QueryHintAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.getKey=function(){},t}()})),define("@dashboard-features/dssQueryService/js/query/v2/v5/V5QueryHint",["@waca/dashboard-common/js/core/APIFactory","./api/V5QueryHintAPI"],(function(t,e){return function(){function o(t){var e=t.key,i=t.spec;_classCallCheck(this,o),this.key=e,this.spec=i}return o.prototype.getAPI=function(){return this.api||(this.api=t.createAPI(this,[e])),this.api},o.prototype.getKey=function(){return this.key},o.prototype.toJSON=function(){var t=void 0;switch(this.key){case"dashboard":t={dashboard:{"attr:value":this.spec}};break;case"dataCacheExpiry":(t={dataCacheExpiry:{}}).dataCacheExpiry["attr:value"]=this.spec.dataCacheExpiry;break;case"preferredModelItems":t={preferredModelItems:this.spec.preferredModelItems.map((function(t){var e={modelItemRef:{}};return e.modelItemRef["attr:refModelItem"]=t,e}))};break;case"suppress":(t={suppress:{}}).suppress["attr:value"]=this.spec.suppress;break;case"autoRefreshTime":(t={autoRefreshTime:{}}).autoRefreshTime["attr:value"]=this.spec.autoRefreshTime}return t},o}()})),define("@dashboard-features/dssQueryService/js/query/v2/v5/V5Query",["@waca/dashboard-common/js/core/APIFactory","./api/V5QueryAPI","./V5DataItem","./V5DetailFilter","./V5QueryHint"],(function(t,e,o,i,n){return function(){function r(t){var e=t.name,o=t.nameGenerator;_classCallCheck(this,r),this.name=e,this.nameGenerator=o,this.selection=[],this.detailFilters=[],this.queryHints=[]}return r.prototype.getAPI=function(){return this.api||(this.api=t.createAPI(this,[e])),this.api},r.prototype.getName=function(){return this.name},r.prototype.newSelectionDataItem=function(t){var e=t.name,i=void 0===e?this.nameGenerator.newName(this.name+"."):e,n=t.expression,r=t.aggregate,a=t.rollUpAggregate,s=new o({name:i,expression:n,aggregate:r,rollUpAggregate:a});return this.selection.push(s),s.getAPI()},r.prototype.newDetailFilter=function(t){var e=t.expression,o=new i({expression:e});return this.detailFilters.push(o),o.getAPI()},r.prototype.newQueryHint=function(t){var e=t.key,o=t.spec,i=new n({key:e,spec:o});return this.queryHints.push(i),i.getAPI()},r.prototype.toJSON=function(){var t={"attr:name":this.name,source:{model:{}},selection:{dataItem:this.selection.map((function(t){return t.toJSON()}))}};return this.detailFilters.length>0&&(t.detailFilters=this.detailFilters.map((function(t){return t.toJSON()}))),this.queryHints.length>0&&(t.queryHints=this.queryHints.map((function(t){return t.toJSON()}))),t},r}()})),define("@dashboard-features/dssQueryService/js/query/v2/v5/api/V5QueryResultDefinitionAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.newEdge=function(){},t.prototype.isMultiEdge=function(){},t}()})),define("@dashboard-features/dssQueryService/js/query/v2/v5/api/V5EdgeAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.setMemberCache=function(){},t.prototype.newEdgeGroup=function(){},t}()})),define("@dashboard-features/dssQueryService/js/query/v2/v5/api/V5EdgeGroupAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.newValueSet=function(){},t.prototype.newEdgeGroup=function(){},t}()})),define("@dashboard-features/dssQueryService/js/query/v2/v5/api/V5ValueSetAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.addPropertyExpression=function(){},t.prototype.setGroupSort=function(){},t.prototype.addGroupBody=function(){},t}()})),define("@dashboard-features/dssQueryService/js/query/v2/v5/V5GroupBody",[],(function(){return function(){function t(e){_classCallCheck(this,t),this.name=""+e}return t.prototype.toJSON=function(){return{"attr:name":""+this.name,dataItemRef:[{"attr:refDataItem":""+this.name}]}},t}()})),define("@dashboard-features/dssQueryService/js/query/v2/v5/V5ValueSet",["@waca/dashboard-common/js/core/APIFactory","./api/V5ValueSetAPI","./V5GroupBody"],(function(t,e,o){return function(){function i(t){var e=t.name,o=t.refDataItem;_classCallCheck(this,i),this.name=e,this.refDataItem=o,this.propertyExpressions=[],this.groupSort=null}return i.prototype.getAPI=function(){return this.api||(this.api=t.createAPI(this,[e])),this.api},i.prototype.addGroupBody=function(t){this._groupBody=new o(t)},i.prototype.addPropertyExpression=function(t){this.propertyExpressions.push(t)},i.prototype.setGroupSort=function(t){this.groupSort=t},i.prototype.toJSON=function(){var t={"attr:name":this.name,"attr:refDataItem":this.refDataItem.getName(),propertyExpressions:{propertyExpression:this.propertyExpressions.slice()}};return this.groupSort&&(t.groupSort=this.groupSort.toJSON()),this._groupBody&&(t.groupBody=this._groupBody.toJSON()),t},i}()})),define("@dashboard-features/dssQueryService/js/query/v2/v5/V5EdgeGroup",["@waca/dashboard-common/js/core/APIFactory","./api/V5EdgeGroupAPI","./V5ValueSet"],(function(t,e,o){return function(){function i(t){var e=t.nameGenerator;_classCallCheck(this,i),this.valueSets=[],this.edgeGroups=[],this.nameGenerator=e}return i.prototype.getAPI=function(){return this.api||(this.api=t.createAPI(this,[e])),this.api},i.prototype.newValueSet=function(t){var e=t.name,i=void 0===e?this.nameGenerator.newName():e,n=t.refDataItem,r=new o({name:i,refDataItem:n});return this.valueSets.push(r),r.getAPI()},i.prototype.newEdgeGroup=function(){var t=new i({nameGenerator:this.nameGenerator});return this.edgeGroups.push(t),t.getAPI()},i.prototype.toJSON=function(){var t={valueSets:{valueSet:this.valueSets.map((function(t){return t.toJSON()}))}};return this.edgeGroups.length&&(t.edgeGroups={edgeGroup:this.edgeGroups.map((function(t){return t.toJSON()}))}),t},i}()})),define("@dashboard-features/dssQueryService/js/query/v2/v5/V5Edge",["@waca/dashboard-common/js/core/APIFactory","./api/V5EdgeAPI","./V5EdgeGroup"],(function(t,e,o){return function(){function i(t){var e=t.name,o=t.edgeID,n=t.nameGenerator,r=t.isSuppressionEnabled;_classCallCheck(this,i),this.name=e,this.edgeID=o,this.nameGenerator=n,this.edgeGroups=[],this.isSuppressionEnabled=r}return i.prototype.getAPI=function(){return this.api||(this.api=t.createAPI(this,[e])),this.api},i.prototype.setMemberCache=function(t){this.memberCache=t},i.prototype.newEdgeGroup=function(){var t=new o({nameGenerator:this.nameGenerator});return this.edgeGroups.push(t),t.getAPI()},i.prototype.suppression=function(){return{"attr:divByZero":"false","attr:nulls":""+this.isSuppressionEnabled,"attr:overflow":"false","attr:zero":"false"}},i.prototype.toJSON=function(){var t={"attr:name":this.name,"attr:edgeID":this.edgeID,edgeGroups:{edgeGroup:this.edgeGroups.map((function(t){return t.toJSON()}))}};return this.memberCache&&(t["attr:memberCache"]=this.memberCache),t.edgeSuppression=this.suppression(),t},i}()})),define("@dashboard-features/dssQueryService/js/query/v2/v5/NameGenerator",[],(function(){return function(){function t(){_classCallCheck(this,t),this.count=0}return t.prototype.newName=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return""+t+this.count++},t}()})),define("@dashboard-features/dssQueryService/js/query/v2/v5/V5QueryResultDefinition",["@waca/dashboard-common/js/core/APIFactory","./api/V5QueryResultDefinitionAPI","./V5Edge","./NameGenerator"],(function(t,e,o,i){return function(){function n(t){var e=t.name,o=t.refQuery,r=t.nameGenerator,a=t.isSuppressionEnabled;_classCallCheck(this,n),this.name=e,this.refQuery=o,this.nameGenerator=r,this.edgeIdGenerator=new i,this.edges=[],this.isSuppressionEnabled=a}return n.prototype.getAPI=function(){return this.api||(this.api=t.createAPI(this,[e])),this.api},n.prototype.newEdge=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.name,i=void 0===e?this.nameGenerator.newName():e,n=t.edgeID,r=void 0===n?this.edgeIdGenerator.newName():n,a=new o({name:i,edgeID:r,nameGenerator:this.nameGenerator,isSuppressionEnabled:this.isSuppressionEnabled});return this.edges.push(a),a.getAPI()},n.prototype.isMultiEdge=function(){return this.edges.length>1},n.prototype.toJSON=function(){return{"attr:name":this.name,"attr:refQuery":this.refQuery.getName(),edges:{edge:this.edges.map((function(t){return t.toJSON()}))}}},n}()})),define("@dashboard-features/dssQueryService/js/query/v2/v5/V5QuerySet",["@waca/dashboard-common/js/core/APIFactory","./api/V5QuerySetAPI","./V5Query","./V5QueryResultDefinition","./NameGenerator"],(function(t,e,o,i,n){return function(){function r(){_classCallCheck(this,r),this.queries=[],this.queryResultDefinitions=[],this.nameGenerator=new n}return r.prototype.getAPI=function(){return this.api||(this.api=t.createAPI(this,[e])),this.api},r.prototype.newQuery=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.name,i=void 0===e?this.nameGenerator.newName("Query"):e,n=new o({name:i,nameGenerator:this.nameGenerator});return this.queries.push(n),n.getAPI()},r.prototype.newQueryResultDefinition=function(t){var e=t.name,o=void 0===e?null:e,n=t.refQuery,r=t.isSuppressionEnabled;o=o||this.nameGenerator.newName(n.getName()+".");var a=new i({name:o,refQuery:n,nameGenerator:this.nameGenerator,isSuppressionEnabled:r});return this.queryResultDefinitions.push(a),a.getAPI()},r.prototype.toJSON=function(){return{"attr:expressionLocale":"en-us",queries:{query:this.queries.map((function(t){return t.toJSON()}))},queryResultDefinitions:{queryResultDefinition:this.queryResultDefinitions.map((function(t){return t.toJSON()}))}}},r}()})),define("@dashboard-features/dssQueryService/js/query/v2/v5/api/V5ExpressionAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.toString=function(){},t}()})),define("@dashboard-features/dssQueryService/js/query/v2/v5/expression/V5FilterExpression",["@waca/dashboard-common/js/core/APIFactory","../api/V5ExpressionAPI"],(function(t,e){return function(){function o(t){var e=t.filterExpression;_classCallCheck(this,o),this.filterExpression=e}return o.prototype.getAPI=function(){return this.api||(this.api=t.createAPI(this,[e])),this.api},o.prototype.toString=function(){return this.filterExpression},o}()})),define("@dashboard-features/dssQueryService/js/query/v2/v5/expression/V5ColumnExpression",["@waca/dashboard-common/js/core/APIFactory","../api/V5ExpressionAPI"],(function(t,e){return function(){function o(t){var e=t.columnId;_classCallCheck(this,o),this.columnId=e}return o.prototype.getAPI=function(){return this.api||(this.api=t.createAPI(this,[e])),this.api},o.prototype.toString=function(){return this.columnId},o}()})),define("@dashboard-features/dssQueryService/js/query/v2/v5/expression/V5RankFilterExpression",["@waca/dashboard-common/js/core/APIFactory","../api/V5ExpressionAPI"],(function(t,e){return function(){function o(t){var e=t.sortOrder,i=t.rankReference,n=t.number;_classCallCheck(this,o),this.sortOrder=e,this.rankReference=i,this.number=n}return o.prototype.getAPI=function(){return this.api||(this.api=t.createAPI(this,[e])),this.api},o.prototype.toString=function(){return"rank(["+this.rankReference+"] "+this.sortOrder+") <= "+this.number},o}()})),define("@dashboard-features/dssQueryService/js/query/v2/dashboardToV5/NoncontextualTopBottomExpressionHelper.v2",["../v5/expression/V5ColumnExpression","../v5/expression/V5RankFilterExpression"],(function(t,e){var o={topcount:"DESC",bottomcount:"ASC"};return function(){function t(e){var o=e.definition,i=e.dataItem,n=e.queryState;_classCallCheck(this,t),this.supportsNonContextualTopBottom=o.getSupportsNonContextualTopBottom(),this.dataItem=i,this.queryState=n}return t.prototype.validateAndWarn=function(){if(!this.supportsNonContextualTopBottom&&this._getNonContextualTopBottom()){var t=this.dataItem.getMetadataColumn();return this.queryState.warnings.push({resourceId:"nonCtxTopBottomInvalid",params:{columnName:t.getLabel()}}),!1}return!0},t.prototype.getExpression=function(){var t=null,i=this.supportsNonContextualTopBottom&&this._getNonContextualTopBottom();return i&&(t=new e({sortOrder:o[i.type],rankReference:this.dataItem.getId(),number:i.value}).getAPI()),t},t.prototype._getNonContextualTopBottom=function(){var t=this.dataItem.getTopBottom();return t&&!t.context?t:null},t}()})),define("@dashboard-features/dssQueryService/js/query/v2/dashboardToV5/FilterHelper.v2",["underscore","./NoncontextualTopBottomExpressionHelper.v2","@waca/dashboard-livewidget/js/filters/FilterSpecHelper"],(function(t,e,o){return function(){function i(t,e){_classCallCheck(this,i),this.definition=t,this.queryState=e}return i.getFilterId=function(t){var e=t.getColumnId(),i=t.getBinning(),n=t.getAggregation();return i?e:o.getFilterId(e,n)},i.prototype._buildEdgeNullValueExpression=function(t,e,o){if(!t.columnId||!this.definition.getDataSource())return null;var i=this.definition.getDataSource().getMetadataColumn(t.columnId),n=i&&i.isOlapColumn();if(!t.filterBins&&!t.valueDataItem&&"notin"===t.operator&&!n&&this._getValuesExcludingNull(t.values).length===t.values.length){var r=this._buildInOperationExpression(t,e,o);return r?"( "+t.columnId+" is null OR NOT ("+r+") )":r}return null},i.prototype._combineUserValuesAndConditions=function(t,e,o){var i=null;return i=t&&e?t+" OR "+e:t||e,o&&(i="("+i+") AND NOT ("+o+")"),i},i.prototype._getValueType=function(t){return t.valueType||t.type},i.prototype._getColumnId=function(t){var e=t.columnId||t.itemId,o=this.definition.getDataSource().getMetadataColumn(e);return o&&o.isProperty()&&"display"!==this._getValueType(t)&&(e=o.getParent().getId()),e},i.prototype._buildInOperationExpression=function(t,e,o){var i=this._filterSupportsSetSelection(t,e),n=null,r=null,a=null;if(t.values&&0===t.values.length&&t.valueDataItem)return this.definition.getDataSource().getMetadataColumn(t.columnId).getReferencedHierarchyId()+" in ("+t.valueDataItem+")";var s=this._getColumnId(t);return t.values&&t.values.length>0&&!i&&(n=this._convertColumnInValuesToV5(t.values,this._getValueType(t),s,e,o)),t.excludedValues&&t.excludedValues.length>0&&!i&&(r=this._convertColumnInValuesToV5(t.excludedValues,this._getValueType(t),s,e,o)),t.conditions&&(a=this._convertConditionsToV5(t,e,o)),this._combineUserValuesAndConditions(n,a,r)},i.prototype._convertDiscreteValueFilter=function(t,e,o){var i=null;switch(t.operator){case"in":i=this._buildInOperationExpression(t,e,o);break;case"notin":(i=this._buildEdgeNullValueExpression(t,e,o))||(i=(i=this._buildInOperationExpression(t,e,o))?"NOT ("+i+")":i)}return i},i.prototype._filterSupportsSetSelection=function(t,e){var o=t.columnId||t.itemId,i=this.definition.getDataSource().getMetadataColumn(o);if(!i.isOlapColumn()||i.isProperty()||"display"===this._getValueType(t))return!1;if(e>0)return!1;if(t.conditions)return!1;var n=this.definition.getAllDataItemsList();return!n.some((function(t){return t.getUnion().getDataItemList().length}))&&!!n.find((function(e){return e.getColumnId()===t.columnId}))},i.prototype.convertFiltersToV5=function(){var t=this,o=this.definition.getFilters(),i=[];o.forEach((function(e){var o=t._addClauseToV5Expression(e);o&&i.push({filterExpression:o,preOrPost:e.preOrPost})}));var n=!0;return this.definition.getAllDataItemsList().forEach((function(o){if(n){var r=new e({definition:t.definition,dataItem:o,queryState:t.queryState});if(n=n&&r.validateAndWarn()){var a=r.getExpression();a&&i.push({filterExpression:a.toString(),preOrPost:"post"})}}})),i},i.prototype._getValuesExcludingNull=function(e){var o=t.without(e,null,"null");return o=t.filter(o,(function(t){return null!==t.u&&null!==t.d&&"null"!==t.u&&"null"!==t.d})),o=t.pluck(o,"display"===this.type?"d":"u")},i.prototype._convertColumnInValuesToV5=function(t,e,o,i,n){var r=null,a=this._getValuesExcludingNull(t);if(a.length<t.length){var s=o+" is null";if(a.length>0)r="("+s+" OR "+this._convertValuesToV5(a,e,o)+")";else r=s}else if(r=this._convertValuesToV5(t,e,o),n){var l=this.definition.getDataSource().getMetadataColumn(o);l&&l.isOlapColumn()||(r="("+o+" is not null AND "+r+")")}return r},i.prototype._convertValuesToV5=function(t,e,o){var i=this,n=!1,r=o&&this.definition.getDataSource().getMetadataColumn(o),a=r&&"fact"===r.getType(),s=t.map((function(t){var s=void 0;return e&&"display"===e||a?(s=void 0!==t.d?t.d:t,r&&r.isNumericDataType()||(s="lower('"+i._getEscapeSingleQuote(s)+"')",n=!0)):(s=void 0!==t.u?t.u:t,t.d&&t.d===t.u&&t.u!==o&&(r&&r.isNumericDataType()||(s="'"+s+"'"))),s})).join(";"),l="display"===e?this._getCaption(o):o;return n?"lower("+l+") in ("+s+")":l+" in ("+s+")"},i.prototype._convertConditionsToV5=function(t,e,o){return t.conditions.or?this._convertOperatorConditionToV5("OR",t.conditions.or,e+1,o):t.conditions.and?this._convertOperatorConditionToV5("AND",t.conditions.and,e+1,o):t.conditions.not?"NOT ("+this._addClauseToV5Expression(t.conditions.not,e+1,o)+")":this._addClauseToV5Expression(t.conditions,e+1,o)},i.prototype._convertOperatorConditionToV5=function(t,e,o,i){var n=this;return e.map((function(t){return n._addClauseToV5Expression(t,o,i)})).map((function(t){return"("+t+")"})).join(" "+t+" ")},i.prototype._addClauseToV5Expression=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=null;if(t.not)return"NOT "+(i=this._addClauseToV5Expression(t.not,e+1,o));var n=this.definition.getAllDataItemsList().find((function(e){return e.getColumnId()===t.itemId||e.getColumnId()===t.columnId})),r=n&&n.getMetadataColumn();switch(t.operator){case void 0:i=t.columnId;break;case"in":case"notin":i=this._convertDiscreteValueFilter(t,e,o);break;case"between":case"notbetween":case"lt":case"gt":i=this._convertRangeFilter(t);break;case"and":case"or":case"not":i=this._convertDataPointFilter(t,e,o);break;case"beginswith":case"endswith":case"containsignorecase":if(t.values.length>0){var a=void 0;"beginswith"===t.operator?a="starts with":"endswith"===t.operator?a="ends with":"containsignorecase"===t.operator&&(a="contains");var s=t.values[0];r&&r.isNumericDataType()?i="cast("+this._getCaption(t.itemId)+", varchar(50)) "+a+" '"+s+"'":(s=this._getEscapeSingleQuote(s),i=t.ignoreCase?"lower("+this._getCaption(t.itemId)+") "+a+" lower('"+s+"')":this._getCaption(t.itemId)+" "+a+" '"+s+"'")}break;default:throw new Error("operator "+t.operator+" is not supported.")}return i},i.prototype._initializeDataItemMap=function(){var e=this,o={};if(this.definition){var n=this.definition.getDataItemSetList();t.each(n,(function(n){t.each(n.getDataItemList(),(function(t){if("fact"===t.getType()){var n=i.getFilterId(t);o[n]||(o[n]=[]),o[n].push({dataItem:t,datasetId:e.definition.getDataSource().getId()})}}))}))}return o},i.prototype._getAssociatedDataItem=function(e,o){var i=this._initializeDataItemMap(),n=null;if(!e.filterBins&&i[e.id])n=t.find(i[e.id],(function(t){return t.datasetId===o&&t.dataItem.getAggregation()===e.aggregationType}));else if(e.filterBins)throw new Error("filter binning is not supported for version 2 query");return n&&n.dataItem||null},i.prototype._convertRangeFilter=function(t){var e=null,o=this._getAssociatedDataItem(t,this.definition.getDataSource().getId()),i=null;if(i=o?o.getId():t.columnId||t.itemId,"between"===t.operator||"notbetween"===t.operator)e=i+" in_range {"+t.values[0].u+":"+t.values[1].u+"}",e="notbetween"===t.operator?"NOT ("+e+")":e;else{if("lt"!==t.operator&&"gt"!==t.operator)throw new Error("unknown range operator "+t.operator);e=i+" "+("gt"===t.operator?">":"<")+" "+t.values[0].u}return e},i.prototype._convertDataPointFilter=function(t,e,o){var i=this,n="";return"not"===t.operator?(o=!0,n=this._addClauseToV5Expression(t.values[0],e+1,o),o=!1,"NOT ("+n+")"):(t.values.forEach((function(r,a){var s=i._addClauseToV5Expression(r,e+1,o);if(s){var l=a===t.values.length-1;n+=l?""+s:s+" "+t.operator+" "}})),n?"("+n+")":n)},i.prototype._getCaption=function(t){var e=this.definition.getAllDataItemsList().find((function(e){return e.getColumnId()===t}));return e&&e.getMetadataColumn().isLevel()?"caption("+t+")":t},i.prototype._getEscapeSingleQuote=function(t){return"string"==typeof t?t.replace(/'/g,"''"):t},i.prototype._getRangeFilters=function(t,e){if(t.not)return this._getRangeFilters(t.not,e);switch(t.operator){case"between":case"notbetween":case"lt":case"gt":e.push(t)}},i.prototype.getRangeFilters=function(){var t=this,e=[];return this.definition.getFilters().forEach((function(o){t._getRangeFilters(o,e)})),e},i}()})),define("@dashboard-features/dssQueryService/js/query/v2/v5/api/V5RoleValueAPI",[],(function(){function t(t){return"RoleValue('"+t+"')"}return function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"VALUES",get:function(){return{MEMBER_UNIQUE_NAME:t("_memberUniqueName"),MEMBER_CAPTION:t("_memberCaption"),LEVEL_NUMBER:t("_levelNumber"),LEVEL_UNIQUE_NAME:t("_levelUniqueName"),PARENT_UNIQUE_NAME:t("_parentUniqueName"),HIERARCHY_UNIQUE_NAME:t("_hierarchyUniqueName")}}}]),e}()})),define("@dashboard-features/dssQueryService/js/query/v2/v5/expression/V5CalculationExpression",["@waca/dashboard-common/js/core/APIFactory","../api/V5ExpressionAPI"],(function(t,e){return function(){function o(t){var e=t.operator,i=t.operands;_classCallCheck(this,o),this.operator=e,this.operands=i}return _createClass(o,null,[{key:"OPERATORS",get:function(){return{ROWCOUNT:"rowCount",SUMSQUARE:"sumSqr"}}}]),o.prototype.getAPI=function(){return this.api||(this.api=t.createAPI(this,[e])),this.api},o.prototype.toString=function(){var t=void 0;switch(this.operator){case o.OPERATORS.ROWCOUNT:t="count(all "+this.operands[0]+")";break;case o.OPERATORS.SUMSQUARE:t="variance-pop("+this.operands[0]+") * count(all "+this.operands[0]+")"}return t||""},o}()})),define("@dashboard-features/dssQueryService/js/query/v2/v5/expression/V5FunctionExpression",["@waca/dashboard-common/js/core/APIFactory","../api/V5ExpressionAPI"],(function(t,e){return function(){function o(t){var e=t.functionName,i=t.functionParamList;_classCallCheck(this,o),this.functionName=e,this.functionParamList=i}return o.prototype.getAPI=function(){return this.api||(this.api=t.createAPI(this,[e])),this.api},o.prototype.toString=function(){return this.functionName+"("+this.functionParamList.join(";")+")"},o}()})),define("@dashboard-features/dssQueryService/js/query/v2/v5/api/V5GroupSortAPI",[],(function(){return function t(){_classCallCheck(this,t)}})),define("@dashboard-features/dssQueryService/js/query/v2/v5/V5GroupSort",["@waca/dashboard-common/js/core/APIFactory","@waca/dashboard-livewidget/js/features/content/dataQueryExecution/postProcess/LocalAggregateSortInfo","underscore","./api/V5GroupSortAPI"],(function(t,e){return function(){function o(t){var e=t.sort,i=t.name;_classCallCheck(this,o),this.sort=e,this.name=i}return o.prototype.getAPI=function(){return this.api||(this.api=t.createAPI(this,[e])),this.api},o.prototype.toJSON=function(){return{sortItem:{"attr:refDataItem":this.name,"attr:sortOrder":this.sort}}},o}()})),define("@dashboard-features/dssQueryService/js/query/v2/v5/expression/V5ContextualTopBottomExpression",["@waca/dashboard-common/js/core/APIFactory","../api/V5ExpressionAPI"],(function(t,e){return function(){function o(t){var e=t.topBottomOperation,i=t.setExpression,n=t.number,r=t.contextColumnId;_classCallCheck(this,o),this.topBottomOperation=e,this.setExpression=i,this.number=n,this.contextColumnId=r}return o.prototype.getAPI=function(){return this.api||(this.api=t.createAPI(this,[e])),this.api},o.prototype.toString=function(){return this.topBottomOperation+"("+this.setExpression+"; "+this.number+"; "+this.contextColumnId+")"},o}()})),define("@dashboard-features/dssQueryService/js/query/v2/v5/expression/V5ExpressionConstant",[],(function(){var t={topcount:"topCount",toppercent:"topPercent",bottomcount:"bottomCount",bottompercent:"bottomPercent"},e={CAPTION:"caption",CHILDREN:"children",COUNT:"count",DESCENDANTS:"descendants",EXCEPT:"except",HEAD:"head",HIERARCHIZE:"hierarchize",MEMBERS:"members",MEMBER:"member",ORDER:"order",PARENT:"parent",ROOTMEMBERS:"rootMembers",SET:"set",UNION:"union",HIERARCHY:"hierarchy",CURRENTMEMBER:"currentmember"},o={none:"none",sum:"total",avg:"average",min:"minimum",max:"maximum",count:"count",countdistinct:"countDistinct"},i="::";return new function n(){_classCallCheck(this,n),this.functionNames=e,this.topBottomOperations=t,this.aggregateMap=o,this.generatedIdSeparator=i}})),define("@dashboard-features/dssQueryService/js/query/v2/dashboardToV5/DataItemExpressionHelper.v2",["underscore","../v5/expression/V5ColumnExpression","../v5/expression/V5ContextualTopBottomExpression","../v5/expression/V5FunctionExpression","../v5/expression/V5CalculationExpression","../v5/expression/V5ExpressionConstant"],(function(t,e,o,i,n,r){return function(){function a(t){var e=t.dataItem,o=t.definition,i=t.operator,n=void 0===i?null:i;_classCallCheck(this,a),this.dataItem=e,this.definition=o,this.operator=n,this.expandEnabled=o.getExpandEnabled()}return a.prototype.getExpression=function(){var t=this.dataItem.getMetadataColumn(),e=this.dataItem.getDrillDownValue(),i=this.dataItem.getDrillUpValue(),a=null;if(this.operator)a=new n({operator:this.operator,operands:[this.dataItem.getColumnId()]}).getAPI();else if(e||i)a=e?this._buildChildrenExpression(e):this._buildDrillUpExpression(i,t);else if(t&&t.isHierarchy()){a=t.isSingleRootHierarchy()?this._buildChildrenExpression(t.getRootMember()):this._buildRootMembersExpression(t.getId());var s=this._buildSetIncludeExcludeExpression(a.toString());a=s||a}else{var l=this.dataItem.getColumnId(),u=this._buildMembersExpression(l);a=this._buildSetIncludeExcludeExpression(u.toString())||this._buildColumnExpression(l)}var c=this.dataItem.getTopBottom();if(c&&c.context&&(a=new o({topBottomOperation:r.topBottomOperations[c.type],setExpression:a,number:c.value,contextColumnId:c.context.itemId}).getAPI()),this.expandEnabled&&this.dataItem.getUnion&&this.dataItem.getUnion().getDataItemList().length){var d=this._getExpandUnionExpression(this.dataItem.getUnion());if(d){var p=this.dataItem.getSort();a=p&&p.type?this._buildOrderExpression(this._buildHierarchizeExpression([a.toString(),d]).toString(),this._buildCaptionExpression(this.dataItem.getColumnId()).toString(),p.type):this._buildHierarchizeExpression([a.toString(),d])}}return a},a.prototype._buildColumnExpression=function(t){return new e({columnId:t}).getAPI()},a.prototype._getExpandUnionExpression=function(t){var e=this,o=void 0,i=void 0;return t.getDataItemList().forEach((function(t,n){var r=t.getUnion().getDataItemList().length>0,a=t.getDrillDownValue();r&&(i=e._getExpandUnionExpression(t.getUnion())),a&&(i=i?"union("+i+";children("+a+"))":"children("+a+")"),r||a||(i=t.getColumnId()),o=0===n?i:"union("+o+";"+i+")"})),o},a.prototype._buildChildrenExpression=function(t){return new i({functionName:r.functionNames.CHILDREN,functionParamList:[t]}).getAPI()},a.prototype._buildRootMembersExpression=function(t){return new i({functionName:r.functionNames.ROOTMEMBERS,functionParamList:[t]}).getAPI()},a.prototype._buildDrillUpExpression=function(t,e){var o=new i({functionName:r.functionNames.PARENT,functionParamList:[t]}).getAPI(),n=new i({functionName:r.functionNames.CHILDREN,functionParamList:[""+o]}).getAPI(),a=new i({functionName:r.functionNames.ROOTMEMBERS,functionParamList:[e.getId()]}).getAPI(),s="if(count(1 within set "+n+") = 0)then(count(1 within set "+a+"))else(0)",l=new i({functionName:r.functionNames.HEAD,functionParamList:[""+a,s]}).getAPI();return new i({functionName:r.functionNames.UNION,functionParamList:[""+n,""+l]}).getAPI()},a.prototype._buildHierarchizeExpression=function(t){var e=new i({functionName:r.functionNames.UNION,functionParamList:t}).getAPI();return new i({functionName:r.functionNames.HIERARCHIZE,functionParamList:[e.toString()]}).getAPI()},a.prototype._buildCaptionExpression=function(t){return new i({functionName:r.functionNames.CAPTION,functionParamList:[t]}).getAPI()},a.prototype._buildOrderExpression=function(t,e,o){return new i({functionName:r.functionNames.ORDER,functionParamList:[t.toString(),e.toString(),o]}).getAPI()},a.prototype._buildSetExpression=function(t){return new i({functionName:r.functionNames.SET,functionParamList:t}).getAPI()},a.prototype._buildMembersExpression=function(t){return new i({functionName:r.functionNames.MEMBERS,functionParamList:[t]}).getAPI()},a.prototype._buildExceptExpression=function(t,e){var o=this._buildSetExpression(e);return new i({functionName:r.functionNames.EXCEPT,functionParamList:[t,o.toString()]}).getAPI()},a.prototype._buildSetIncludeExcludeExpression=function(e){var o=this.dataItem.getMetadataColumn(),i=this.definition.getAllDataItemsList().some((function(t){return t.getUnion().getDataItemList().length}));if(o.isOlapColumn()&&!o.isProperty()&&!i){var n=this.dataItem.getColumnId(),r=this.definition.getFilters().filter((function(t){var e=t.columnId;return n===e}));if(!r.find((function(t){return!!t.conditions}))){var a=[],s=[];r.forEach((function(t){var e=t.operator,o=t.values;"in"===e?a.push(o.map((function(t){return t.u}))):"notin"===e&&s.push(o.map((function(t){return t.u})))}));var l=t.intersection.apply(t,a),u=t.union.apply(t,s);if(l.length&&u.length&&(l=t.difference(l,u),u=[]),l.length)return this._buildSetExpression(l);if(u.length)return this._buildExceptExpression(e,u)}}},a}()})),define("@dashboard-features/dssQueryService/js/query/v2/dashboardToV5/SortHelper.v2",[],(function(){var t={topcount:"descending",toppercent:"descending",bottomcount:"ascending",bottompercent:"ascending"};return function(){function e(t){var o=t.dataItem,i=t.definition;_classCallCheck(this,e),this.dataItem=o,this.definition=i,this.sortItem=""}return e.prototype.determineSort=function(){var e=!this.dataItem.hasDefaultSort(),o=this.dataItem.getTopBottom();if(!e&&o)return 1===this.definition.getDataItemSetList().filter((function(t){return!t.isMeasureItemSet()})).length?null:t[o.type];var i=this.dataItem.getSort(),n=i&&i.type?i.type:null;return n?this.sortItem="asc"===n?"ascending":"descending":void 0},e}()})),define("@dashboard-features/dssQueryService/js/query/v2/v5/expression/V5StringExpression",["@waca/dashboard-common/js/core/APIFactory","../api/V5ExpressionAPI"],(function(t,e){return function(){function o(t){var e=t.string;_classCallCheck(this,o),this.string=e}return o.prototype.getAPI=function(){return this.api||(this.api=t.createAPI(this,[e])),this.api},o.prototype.toString=function(){var t=this.string;return"string"!=typeof t?t:"'"+t.replace(/'/g,"''")+"'"},o.toString=function(t){return new o({string:t}).getAPI().toString()},o}()})),define("@dashboard-features/dssQueryService/js/query/v2/dashboardToV5/DataItemSetHelper.v2",["../v5/api/V5RoleValueAPI","../v5/expression/V5CalculationExpression","../v5/expression/V5FunctionExpression","../v5/V5GroupSort","./DataItemExpressionHelper.v2","./SortHelper.v2","../v5/expression/V5ExpressionConstant","../v5/expression/V5StringExpression","./FilterHelper.v2"],(function(t,e,o,i,n,r,a,s,l){return function(){function e(t){var o=t.definition,i=t.v5QueryResultDefinition,n=t.v5Query;_classCallCheck(this,e),this._definition=o,this._v5QueryResultDefinition=i,this._v5Query=n,this._summariesEnabled=o.getSummariesEnabled(),this._isMultiEdgeQuery=!0}return e.prototype.convertDataItemSetListToV5=function(t){var e=this,o=this._isSummaryNotSupported();if(t.forEach((function(t){t.isMeasureItemSet()&&e._isMultiEdgeQuery||e.convertDataItemSetToV5(t,o)})),this._isMultiEdgeQuery){var i=[];t.forEach((function(t){t.isMeasureItemSet()&&i.push(t)})),this.convertMeasureItemSetsToV5(i)}},e.prototype.convertDataItemSetToV5=function(t,e){var o=this;!function t(i,n){var r=n.newEdgeGroup(),a=i.getDataItemList(),s=i.getDataItemSetList();a.forEach((function(t,e){var i=0===e?r:n.newEdgeGroup();o._isOlapProperty(t)?o._processOlapProperties({v5EdgeGroup:i,dataItem:t}):o._processDataItem({v5EdgeGroup:i,dataItem:t})})),o._summariesEnabled&&!e&&o._dataItemSetSupportsSummary(i)&&o._processSummaryItem(n,a[0]),s.forEach((function(e){t(e,r)}))}(t,this._v5QueryResultDefinition.newEdge())},e.prototype._dataItemSetSupportsSummary=function(t){return!t.isMeasureItemSet()&&(!this._isExpanded(t)&&(!this._containsNamedSet(t)&&!this._containsHierarchyProperty(t)))},e.prototype.convertMeasureItemSetsToV5=function(t){var e,o,i,n,r=this,a=this._v5QueryResultDefinition.newEdge();e=t,i=(o=a).newEdgeGroup(),n=!1,e.forEach((function(t){t.getDataItemList().forEach((function(t){var e=n?o.newEdgeGroup():i;n=!0,r._isOlapNonMeasureAggregate(t)?r._processNonMeasureAggregateItem({v5EdgeGroup:e,dataItem:t}):r._processDataItem({v5EdgeGroup:e,dataItem:t})}))})),e.forEach((function(t){t.getDataItemList().forEach((function(e){var i=t.getCalculationList(e.getId()).map((function(t){return t.operator}));r._processCalculations(o,e,i)}))}))},e.prototype._processSummaryItem=function(t,e){var o=t.newEdgeGroup(),i=this._v5Query.newSelectionDataItem({name:"summary:"+e.getId(),expression:"aggregate(currentMeasure within detail ["+e.getId()+"])"});i.setSolveOrder("1"),o.newValueSet({refDataItem:i})},e.prototype._processCalculations=function(t,e,o){var i=this;o.forEach((function(o){var n=t.newEdgeGroup(),r=i._v5Query.newSelectionDataItem({name:o+":"+e.getId(),expression:i._generateExpression(e,o),aggregate:"calculated"});n.newValueSet({refDataItem:r})}))},e.prototype._isOlapNonMeasureAggregate=function(t){var e=t.getMetadataColumn();return e&&e.isOlapColumn()&&"attribute"===e.getType()&&"fact"===t.getType()},e.prototype._isOlapProperty=function(t){var e=t.getMetadataColumn();return e&&e.isProperty()},e.prototype._processNonMeasureAggregateItem=function(t){var e=t.v5EdgeGroup,i=t.dataItem,n=this._computeAggregate(i);this._v5Query.newSelectionDataItem({name:""+i.getId(),expression:this._generateExpression(i),aggregate:n});var r=this._generateNonMeasureCountExpression(i),l=new o({functionName:a.functionNames.MEMBER,functionParamList:[r.toString(),s.toString(i.getColumnId()),s.toString(i.getLabel())]}).getAPI(),u=this._v5Query.newSelectionDataItem({name:""+i.getAggregation()+a.generatedIdSeparator+i.getId(),aggregate:this._getV5DataItemAggregate("none"),expression:l.toString()});this._addValueSet(i,u,e)},e.prototype._generateNonMeasureCountExpression=function(t){var e=t.getMetadataColumn();e.isProperty()&&(e=e.getParent());var i="["+t.getId()+"]";if(e.isLevel()){var n=e.getParent();if(this._definition.getDataItemSetList().some((function(t){return!t.isMeasureItemSet()&&t.getAllDataItemsList().some((function(t){var e=t.getMetadataColumn();return e.isLevel()&&e.getParent().getId()===n.getId()}))}))){var r=new o({functionName:a.functionNames.HIERARCHY,functionParamList:[n.getId()]}).getAPI(),s=new o({functionName:a.functionNames.CURRENTMEMBER,functionParamList:[r]}).getAPI();i=new o({functionName:a.functionNames.DESCENDANTS,functionParamList:[s,e.getId()]}).getAPI()}}return new o({functionName:a.functionNames.COUNT,functionParamList:["1 within set "+i]})},e.prototype._getV5DataItemAggregate=function(t){return a.aggregateMap[t]||t},e.prototype._computeAggregate=function(t){return"attribute"===t.getType()&&"fact"===t.getMetadataColumn().getType()?"none":this._getV5DataItemAggregate(t.getAggregation())},e.prototype._isSummaryNotSupportedForRangeFilter=function(t){var e=this._definition.getAllDataItemsList().find((function(e){return e.getColumnId()===t.itemId||e.getColumnId()===t.columnId}));return e&&"countDistinct"===this._computeAggregate(e)&&"fact"===e.getType()&&"attribute"===e.getMetadataColumn().getType()},e.prototype._isOlapColumn=function(t){var e=t.getMetadataColumn();return e&&e.isOlapColumn()},e.prototype._isSummaryNotSupported=function(){var t=this;return this._definition.getAllDataItemsList().find((function(e){return t._isOlapColumn(e)}))?this._definition.getAllDataItemsList().some((function(e){return"countDistinct"===t._computeAggregate(e)&&"fact"===e.getType()&&"attribute"===e.getMetadataColumn().getType()})):new l(this._definition,{}).getRangeFilters().some((function(e){return t._isSummaryNotSupportedForRangeFilter(e)}))},e.prototype._processDataItem=function(t){var e=t.v5EdgeGroup,o=t.dataItem,i=this._v5Query.newSelectionDataItem({name:o.getId(),expression:this._generateExpression(o),aggregate:this._computeAggregate(o)});this._addValueSet(o,i,e)},e.prototype._processOlapProperties=function(t){var e=t.v5EdgeGroup,o=t.dataItem,i=o.getMetadataColumn(),n=i.getParent().getId(),r=this._v5Query.newSelectionDataItem({name:o.getId(),expression:""+n,aggregate:this._computeAggregate(o)}),a=this._v5Query.newSelectionDataItem({name:i.getLabel(),expression:this._generateExpression(o),aggregate:this._computeAggregate(o)});this._addValueSet(o,r,e,a.getName())},e.prototype._addValueSet=function(e,o,i,n){var r=i.newValueSet({refDataItem:o});this._addSort({dataItem:e,v5ValueSet:r,groupBodyDataItemRef:n}),r.addPropertyExpression(t.VALUES.MEMBER_UNIQUE_NAME),r.addPropertyExpression(t.VALUES.MEMBER_CAPTION),r.addPropertyExpression(t.VALUES.LEVEL_NUMBER),r.addPropertyExpression(t.VALUES.LEVEL_UNIQUE_NAME),r.addPropertyExpression(t.VALUES.PARENT_UNIQUE_NAME),r.addPropertyExpression(t.VALUES.HIERARCHY_UNIQUE_NAME),n&&r.addGroupBody(n)},e.prototype._addSort=function(t){var e=t.dataItem,o=t.v5ValueSet,n=t.groupBodyDataItemRef;if(!(e.getUnion().getDataItemList().length>0)){var a=new r({dataItem:e,definition:this._definition}).determineSort();if(a){var s=this._isOlapProperty(e),l=new i({sort:a,name:s&&n||e.getId()});o.setGroupSort(l)}}},e.prototype._generateExpression=function(t,e){return new n({dataItem:t,definition:this._definition,operator:e}).getExpression()},e.prototype._isExpanded=function(t){return this._definition.getExpandEnabled()&&t&&t.getAllDataItemsList().some((function(t){return t.getUnion().getDataItemList().length}))},e.prototype._containsNamedSet=function(t){return t.getAllDataItemsList().some((function(t){return t.getMetadataColumn().isNamedSet()}))},e.prototype._containsHierarchyProperty=function(t){return t.getAllDataItemsList().some((function(t){var e=t.getMetadataColumn();return e.isProperty()&&e.getParent().isHierarchy()}))},e}()})),define("@dashboard-features/dssQueryService/js/query/v2/queryResult/DataQueryResultItemSet",["@waca/dashboard-livewidget/js/features/dashboard/queryService/api/QueryResultAPI","@waca/dashboard-livewidget/js/features/dashboard/queryService/ResultItem"],(function(t,e){return function(e){function o(t,i){_classCallCheck(this,o);var n=_possibleConstructorReturn(this,e.call(this,t));return n._queryDataItemSets=i,n.getRowCount=n.getTupleCount.bind(n),n}return _inherits(o,e),o.prototype.getDataItemList=function(){var t=this;return this._dataItemList||(this._dataItemList=[],this._queryDataItemSets.forEach((function(e){t._processDataItemSet(e)}))),this._dataItemList},o.prototype.getValue=function(o){var i=e.prototype.getValue.call(this,o);if(this._dataItem&&this._dataItem.items&&this._dataItem.items[o]&&this._dataItem.items[o].isSummary)i.type=t.VALUE_TYPE.SUMMARY;else{var n=this._dataItem.itemClasses.find((function(t){return t.h[0].ihId===i[0].ihId}));if(n&&i.length<n.h.length){var r=[],a=0;return n.h.forEach((function(t){if(i[a]&&i[a].ihId===t.ihId)r.push(JSON.parse(JSON.stringify(i[a++])));else{var e=r[a-1];e.span=e.span?e.span+1:2}})),r}}return i},o.prototype._processDataItemSet=function(t){var e=this,o=t.isMeasureItemSet();t.getDataItemList().forEach((function(t){o&&!e._responseIncludesRequestedMeasureItem(t)||e._dataItemList.push(t)})),t.getDataItemSetList().forEach((function(t){e._processDataItemSet(t)}))},o.prototype._responseIncludesRequestedMeasureItem=function(t){var e=this,o=!1;return this._dataItem.items.find((function(i){var n=e._dataItem.itemClasses.find((function(t){return t.icId==i.icid}));return n&&n.h&&n.h.find((function(e){return o=e.di===t.getId()})),o})),o},o}(e)})),define("@dashboard-features/dssQueryService/js/query/v2/queryResult/DataQueryResult.v2",["./DataQueryResultItemSet","@waca/dashboard-livewidget/js/features/dashboard/queryService/QueryResultData","../v5/expression/V5ExpressionConstant"],(function(t,e,o){var i={ERROR:"ERROR",SECURITY_VIOLATION:"SECURITY",DIV_BY_ZERO:"DIVBYZERO",NOT_APPLICABLE:"NA",OVERFLOW:"OVERFLOW",UNDERFLOW:"UNDERFLOW",UNKNOWN:"UNKNOWN"};return function(e){function n(t,o){_classCallCheck(this,n);var i=_possibleConstructorReturn(this,e.call(this,t));return i._queryDefinition=o,i._measureCount=i._getMeasureCount(),i._isMultiEdgeResult=t.edges&&t.edges.length>1,i._hasMoreData=!1,i}return _inherits(n,e),n.prototype.destroy=function(){this.properties=null},n.prototype.getDatapointCount=function(){return this._removeLastItemWithHasNextFlag(e.prototype.getDatapoints.call(this)),e.prototype.getDatapointCount.call(this)},n.prototype.hasMoreData=function(){return this._removeLastItemWithHasNextFlag(e.prototype.getDatapoints.call(this)),this._hasMoreData},n.prototype.getValue=function(t,o){var n={rowIndex:t,columnIndex:o};this._isMultiEdgeResult&&(n.columnIndex=this._adjustColumnIndexToSkipMeasureEdge(o));var r=e.prototype.getValue.call(this,n.rowIndex,n.columnIndex);return r?(r.deco&&r.deco.state&&-1!==Object.values(i).indexOf(r.deco.state)&&(r.value=i.ERROR),r):{value:""}},n.prototype._getMeasureCount=function(){var t=0;return this._queryDefinition.getDataItemSetList().forEach((function(e){t+=e.isMeasureItemSet()?e.getDataItemList().length:0,t+=e.isMeasureItemSet()?e.getCalculationList().length:0})),t},n.prototype._adjustColumnIndexToSkipMeasureEdge=function(t){return this._measureEdgeIndex>=0&&t>=this._measureEdgeIndex?t+1:t},n.prototype._removeLastItemWithHasNextFlag=function(t){var e=t&&t.length;e&&e>0&&t[e-1].hasNext&&(this._hasMoreData=!0,t.pop())},n.prototype._generateDataItemArray=function(){var e=this;this._aQueryResultDataItems=[],this._resultData&&this._resultData.edges&&this._resultData.edges.length>0&&(this._removeLastItemWithHasNextFlag(this._resultData.data),this._resultData.edges.forEach((function(o,i){e._removeLastItemWithHasNextFlag(o.items);var n=e._matchResultToDefinition(o.itemClasses);n&&n.itemClasses&&(e._isMultiEdgeResult&&n.dataItemSet&&n.dataItemSet.isMeasureItemSet()&&(e._measureEdgeIndex=i),e._aQueryResultDataItems.push(new t({itemClasses:n.itemClasses,items:e._buildEdgeItems(o,n.dataItemSet)},n.dataItemSets).getAPI()))})))},n.prototype._buildEdgeItems=function(t,e){var o={};return t.itemClasses.forEach((function(t){t.h&&t.h.forEach((function(i){i&&e.isSummaryItemId(i.di)&&(o[t.icId]=t)}))})),t.items&&t.items.map((function(e){var i=e.t.map((function(e){return t.identifiers[e.rId]}));return{isSummary:void 0!==o[e.icId],icid:e.icId,t:i}}))||[]},n.prototype._getAllDataItemSetItemIds=function(t){var e=this,o=[];return o=o.concat(t.getDataItemList().map((function(t){return t.getId()}))),t.getDataItemSetList().forEach((function(t){o=o.concat(e._getAllDataItemSetItemIds(t))})),o},n.prototype._matchResultToDefinition=function(t){var e=this,o=void 0,i=this._queryDefinition.getDataItemSetList().filter((function(i){var n=e._getAllDataItemSetItemIds(i);if(i.isNestedItemSet()){var r=e._matchNestedDefinitionToEdge(n,t);if(r)return o=[r],!0}else if(e._matchDefinitionToEdge(n,t))return o=t,!0}));return{dataItemSet:i&&i[0],dataItemSets:i,itemClasses:o}},n.prototype._matchNestedDefinitionToEdge=function(t,e){return e.find((function(e){if(!(e.h&&e.h.find((function(e,o){return e.di!==t[o]}))))return e}))},n.prototype._matchDefinitionToEdge=function(t,e){var o=this,i=[];e.forEach((function(t){t.h&&t.h[0]&&i.push(t.h[0].di)}));var n=!1;return t&&t.every((function(t){return i.some((function(e){return(n=e===t)||(n=o._matchDataItemOrigin(e,t)),n}))}))},n.prototype._matchDataItemOrigin=function(t,e){var i=t.indexOf(o.generatedIdSeparator);return-1!==i&&t.substr(i+o.generatedIdSeparator.length)===e},n}(e)})),define("@dashboard-features/dssQueryService/js/query/v2/Query.v2",["@waca/dashboard-common/js/core/APIFactory","@waca/dashboard-livewidget/js/features/dashboard/queryService/api/QueryAPI2","./v5/V5QuerySet","./v5/expression/V5FilterExpression","./dashboardToV5/FilterHelper.v2","./dashboardToV5/DataItemSetHelper.v2","./queryResult/DataQueryResult.v2"],(function(t,e,o,i,n,r,a){return function(){function s(t){var e=t.dashboard,o=t.internalQueryService,i=t.definitionList;_classCallCheck(this,s),this.VERSION="1",this.DEFAULT_ROW_LIMIT=3e3,this._dashboard=e,this._internalQueryService=o,this._definitionList=i,this._logger=e.getGlassCoreSvc(".Logger"),this._jsonSpecs=null,this._faultHandler=null,this._postProcessHandlerList=[],this._saveRawDataHandler=null,this._queryState={warnings:[]}}return s.prototype.getAPI=function(){return this.api||(this.api=t.createAPI(this,[e])),this.api},s.prototype.getWarningList=function(){return this._queryState.warnings},s.prototype.execute=function(t){var e=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=(t=t||this._getDefinitionsAndSpecs()).map((function(t){var i=t.definition,n=t.spec;return e._internalQueryService.executeQuery(i.getDataSource().getId(),n,e.constructor.name,o).catch((function(t){return Promise.reject({error:t,definition:i})}))}));return Promise.all(i).then((function(o){return o.map((function(o,i){e._saveRawData(o.data,t[i].definition),e._postProcessResult(o.data,t[i].definition);var n=new a(o.data,t[i].definition);return n.setPropertyValue("RequestTime.internal",o.requestTime),n}))})).catch((function(o){var i=o.error,n=o.definition;if(e._faultHandler&&n)return e._faultHandler({dataSource:n.getDataSource(),error:i}).then((function(o){if(o&&o.length)return t.forEach((function(t){t.spec.parameterValues=o})),e.execute(t)}));throw i}))},s.prototype._saveRawData=function(t,e){"main"===e.getType()&&"function"==typeof this._saveRawDataHandler&&this._saveRawDataHandler(t,e.getId())},s.prototype._postProcessResult=function(t,e){return"main"===e.getType()&&this._postProcessHandlerList.forEach((function(o){"function"==typeof o&&(t=o(t,e))})),t},s.prototype._getDefinitionsAndSpecs=function(){for(var t=this.getSpecList(),e=[],o=0;o<t.length;o++)e.push({definition:this._definitionList[o],spec:t[o]});return e},s.prototype.getSpecList=function(){var t=this;return this._jsonSpecs||(this._jsonSpecs=this._definitionList.map((function(e){return t._generateV2Query({definition:e})}))),this._jsonSpecs},s.prototype._generateV2Query=function(t){var e=t.definition,i=new o,n=i.newQuery();n.newQueryHint({key:"dashboard",spec:"true"});var r=i.newQueryResultDefinition({refQuery:n,isSuppressionEnabled:e.getSuppressionEnabled()});this._processDataItemSets({definition:e,v5Query:n,v5QueryResultDefinition:r}),this._processFilters({definition:e,v5Query:n}),this._processQueryHints({definition:e,v5Query:n});var a=this.DEFAULT_ROW_LIMIT;return r.isMultiEdge()&&(a=this._numberOfMeasures(e)*this.DEFAULT_ROW_LIMIT),{version:"2",v5QuerySet:i.toJSON(),limit:a}},s.prototype._processDataItemSets=function(t){var e=t.definition,o=t.v5Query,i=t.v5QueryResultDefinition;new r({definition:e,v5Query:o,v5QueryResultDefinition:i}).convertDataItemSetListToV5(e.getDataItemSetList())},s.prototype._processFilters=function(t){var e=t.definition,o=t.v5Query;new n(e,this._queryState).convertFiltersToV5().forEach((function(t){var e=new i({filterExpression:t.filterExpression}).getAPI(),n=o.newDetailFilter({expression:e});"post"===t.preOrPost?n.setPostAutoAggregation(!0):n.setPostAutoAggregation(!1)}))},s.prototype._processQueryHints=function(t){var e=t.definition,o=t.v5Query;e.getSuppressionEnabled()||o.newQueryHint({key:"suppress",spec:{suppress:"none"}}),e.getQueryHints().forEach((function(t){o.newQueryHint(t)}))},s.prototype._numberOfMeasures=function(t){var e=0;return t.getDataItemSetList().forEach((function(t){t.isMeasureItemSet()&&(e+=t.dataItems.length,e+=t.getCalculationList().length)})),e},s.prototype.registerFaultHandler=function(t){this._faultHandler=t},s.prototype.registerSaveRawDataHandler=function(t){this._saveRawDataHandler=t},s.prototype.registerPostProcessor=function(t){this._postProcessHandlerList.push(t)},s}()})),define("@dashboard-features/dssQueryService/js/dataSources/DataSources2",["react","@waca/dashboard-common/js/core/APIFactory","@waca/dashboard-livewidget/js/features/dashboard/dataSources/api/DataSourcesAPI","@waca/dashboard-livewidget/js/features/dashboard/dataSources/api/DataSourcesUIAPI","./api/DataSourcesMoserAPI","./api/CalculationUIAPI","./api/CustomGroupUIAPI","./DataSource","../query/v2/Query.v2","underscore","bi/moser/moser.min","ca-modeller/shaping"],(function(t,e,o,i,n,r,a,s,l,u,c,d){return function(){function p(t){_classCallCheck(this,p),this.features=t.features,this.dashboard=this.features.API,this.dataSources={},this.metadataSubsetIdsProviders=[],this._registeredEvents=[this.dashboard.on("widget:selected",this._onWidgetSelection.bind(this))],this.MoserJSInst=t.MoserJS||c,this.features.QueryService2.registerQueryClass(s.PROTOCOL,l)}return p.prototype.destroy=function(){this._isDestroyed||(u.values(this.dataSources).forEach((function(t){t.destroy()})),this.dataSources={},this._registeredEvents.forEach((function(t){t.remove()})),this._registeredEvents=[],this._sourcesCollection=null,this.dataSourcesAPI=void 0,this._isDestroyed=!0)},p.prototype.getAPI=function(t){return"moser"===t?(this.dataSourcesMoserAPI||(this.dataSourcesMoserAPI=e.createAPI(this,[n])),this.dataSourcesMoserAPI):"UI"===t?(this.dataSourcesUIAPI||(this.dataSourcesUIAPI=e.createAPI(this,[i])),this.dataSourcesUIAPI):"CalculationUI"===t?(this.calculationUIAPI||(this.calculationUIAPI=e.createAPI(this,[r])),this.calculationUIAPI):"CustomGroupUI"===t?(this.customGroupUIAPI||(this.customGroupUIAPI=e.createAPI(this,[a])),this.customGroupUIAPI):(this.dataSourcesAPI||(this.dataSourcesAPI=e.createAPI(this,[o])),this.dataSourcesAPI)},p.prototype.pickItems=function(t){if(t.dataSourceId)return this._getDataSource(t.dataSourceId).pickItems(t)},p.prototype.addDataSource=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return o.allowDuplicateAssetIds=e,this._getSourcesCollection().addSource(t,o)},p.prototype.removeDataSource=function(t){this._getSourcesCollection().removeSource(t),t===this._activeDataSourceId&&this.setActiveDataSourceId(null),delete this.dataSources[t]},p.prototype._getDataSource=function(t){if(!this.dataSources[t]){var e=this._getSourcesCollection(),o=e.getSource(t);o&&(this.dataSources[t]=new s(e,o,this.features))}return this.dataSources[t]},p.prototype.getDataSource=function(t){return this.dataSources[t]||this._getDataSource(t),this.dataSources[t]&&this.dataSources[t].getAPI()},p.prototype.getDataSourceList=function(){var t=this,e=this._getSourcesCollection().getSources(),o=[];return e.forEach((function(e){o.push(t.getDataSource(e.getId()))})),o},p.prototype._onWidgetSelection=function(t){var e=this._getSourcesCollection().usesSource(t.sender);e&&this.setActiveDataSourceId(e)},p.prototype.setActiveDataSourceId=function(t){this._activeDataSourceId=t},p.prototype.getActiveDataSourceId=function(){return this._activeDataSourceId||null},p.prototype._getSourcesCollection=function(){return this._sourcesCollection||(this._sourcesCollection=this.features["dataSources.deprecated"].getSourcesCollection()),this._sourcesCollection},p.prototype.getSourcesInfo=function(){var t=this,e=this.getDataSourceList(),o=this.getActiveDataSourceId();return Promise.all(e.map((function(e){return t._getSourceInfo(e,o)})))},p.prototype._getSourceInfo=function(t,e){var o=t.getId()===e;return t.getLocalizedName().then((function(e){return{name:e,assetId:t.getAssetId(),type:t.getType(),active:o}}))},p.prototype.addDataSources=function(t,e){var o=this._getSourcesCollection();return u.map(u.isArray(t)?t:[t],(function(t){var i={name:t.name,clientId:t.id,isOlapPackage:t.isOlapPackage};if(t.module){var n="string"==typeof t.module?JSON.parse(t.module):t.module;i.clientId=t.id,i.module=n}else i.assetId=t.cognosAssetId||t.assetId,i.type=t.type,i.searchPath=t.searchPath;return o.addSource(i,e)}))},p.prototype.getModule=function(t){return this._getSourcesCollection().getSource(t).getModuleAPI()},p.prototype.ensureTemporaryModule=function(t){var e=this._getSourcesCollection().getSource(t);if(e)return e.getModuleAPI().ensureTemporaryModule({forceTemporaryModule:!0})},p.prototype.addToUndoStack=function(t,e,o){var i=this._getSourcesCollection().getSource(t);i&&i.getModuleAPI().addToUndoStack(e,o)},p.prototype.setCustomGroupColumns=function(t,e,o){this._getDataSource(t).setCustomGroupColumns(e,o)},p.prototype.getCustomGroupColumns=function(t){return this._getDataSource(t).getCustomGroupColumns()},p.prototype.getCustomGroupData=function(t,e){return this._getDataSource(t).getMetadataColumnImpl(e).getCustomGroupData()},p.prototype.isConsumerGroupColumn=function(t,e){var o=this._getDataSource(t).getMetadataColumnImpl(e);return o&&o.isConsumerGroupColumn()},p.prototype.getNavigationPaths=function(t,e,o){return this._getDataSource(t).getNavigationPaths(e,o)},p.prototype.getDrillGroups=function(t,e){return this._getDataSource(t).getDrillGroups(e)},p.prototype.editCalculation=function(t,e){return this._getDataSource(t).editCalculation(e)},p.prototype.createCalculation=function(t,e){return this._getDataSource(t).createCalculation(e)},p.prototype.validateCustomGroup=function(t,e,o,i){return this._getDataSource(t).validateCustomGroup(e,o,i)},p.prototype.createCustomGroup=function(t,e,o,i,n){return this._getDataSource(t).createCustomGroup(e,o,i,n)},p.prototype.removeCustomGroup=function(t,e){return this._getDataSource(t).removeCustomGroup(e)},p.prototype.getOriginalSourceType=function(t,e){var o=this._getDataSource(t).getTable(e);if(!o)return null;var i=this.MoserJSInst.default.ModuleUtils.getObjectUseSpec(o);return i&&i.getType().value()},p.prototype.registerMetadataSubsetIdsProvider=function(t){this.metadataSubsetIdsProviders.push(t)},p.prototype.getMetadataSubsetIds=function(){var t=[];return this.metadataSubsetIdsProviders.forEach((function(e){t.push.apply(t,e.getMetadataSubsetIds())})),t},p.prototype.getColumnSourceTree=function(e,o){var i=this._getSourcesCollection().getSource(e);if(i&&"error"!==i.getState()){var n=i.getModuleAPI(),r=n&&n.getMetadataColumn(o),a=r&&r.moserObject,s=n&&n.getShapingHelper(),l=d.ShapingAncestorTree;if(a)return t.createElement(s.ShapingProvider,null,t.createElement(l,{includeParent:function(){return!0},moserObject:a}))}return null},p.prototype.getPickTree=function(e,o,i){var n=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=this._getSourcesCollection().getSource(e);if(a&&"error"!==a.getState()){var s=a.getModuleAPI(),l=s.getShapingHelper(),u=d.ShapingPickTree,c=r?function(t){return n._metadataCondition(t,r)}:null;return t.createElement(l.ShapingProvider,null,t.createElement(u,{filter:o,onSelect:function(t){return n._onPickTreeSelect(t,e,i)},moserObjectFilter:c}))}return null},p.prototype._onPickTreeSelect=function(t,e,o){var i=t&&this.getDataSource(e),n=i&&i.getMetadataColumn(t.idForExpression);n&&o(n)},p.prototype._metadataCondition=function(t,e){var o=this,i=t.getObjectType();for(var n in e){var r=c.default.UsageType.valueOf(e[n]);if(r?i===c.default.MoserObjectTypes.QUERY_ITEM&&t.usage===r:i===e[n])return!0}return c.default.ModuleUtils.getTreeChildren(t).some((function(t){return o._metadataCondition(t,e)}))},p}()})),define("@dashboard-features/dssQueryService/js/layers",["./dataSets/api/DataSetsAPI","./dataSets/api/DataSetsInternalAPI","./dataSets/DataSetModel","./dataSets/DataSetQueryBase","./dataSets/DataSetQueryDataItem","./dataSets/DataSetQueryModifier","./dataSets/DatasetQueryPostProcessor","./dataSets/DataSets","./dataSources/api/CalculationUIAPI","./dataSources/api/CustomGroupUIAPI","./dataSources/api/DataSourcesMoserAPI","./dataSources/api/TaxonomyAPI","./dataSources/DataSource","./dataSources/DataSources2","./dataSources/MetadataColumn","./dataSources/Taxonomy","./query/v2/dashboardToV5/DataItemExpressionHelper.v2","./query/v2/dashboardToV5/DataItemSetHelper.v2","./query/v2/dashboardToV5/FilterHelper.v2","./query/v2/dashboardToV5/NoncontextualTopBottomExpressionHelper.v2","./query/v2/dashboardToV5/SortHelper.v2","./query/v2/Query.v2","./query/v2/queryResult/DataQueryResult.v2","./query/v2/queryResult/DataQueryResultItemSet","./query/v2/v5/api/V5DataItemAPI","./query/v2/v5/api/V5DetailFilterAPI","./query/v2/v5/api/V5EdgeAPI","./query/v2/v5/api/V5EdgeGroupAPI","./query/v2/v5/api/V5ExpressionAPI","./query/v2/v5/api/V5GroupSortAPI","./query/v2/v5/api/V5QueryAPI","./query/v2/v5/api/V5QueryHintAPI","./query/v2/v5/api/V5QueryResultDefinitionAPI","./query/v2/v5/api/V5QuerySetAPI","./query/v2/v5/api/V5RoleValueAPI","./query/v2/v5/api/V5ValueSetAPI","./query/v2/v5/expression/V5CalculationExpression","./query/v2/v5/expression/V5ColumnExpression","./query/v2/v5/expression/V5ContextualTopBottomExpression","./query/v2/v5/expression/V5ExpressionConstant","./query/v2/v5/expression/V5FilterExpression","./query/v2/v5/expression/V5FunctionExpression","./query/v2/v5/expression/V5RankFilterExpression","./query/v2/v5/expression/V5StringExpression","./query/v2/v5/NameGenerator","./query/v2/v5/V5DataItem","./query/v2/v5/V5DetailFilter","./query/v2/v5/V5Edge","./query/v2/v5/V5EdgeGroup","./query/v2/v5/V5GroupBody","./query/v2/v5/V5GroupSort","./query/v2/v5/V5Query","./query/v2/v5/V5QueryHint","./query/v2/v5/V5QueryResultDefinition","./query/v2/v5/V5QuerySet","./query/v2/v5/V5ValueSet"],(function(){})),define("@dashboard-features/smartAnnotations/js/StatsQueryModifier",["underscore","@waca/dashboard-common/js/core/APIFactory","@waca/dashboard-livewidget/js/features/content/dataQueryExecution/api/QueryModifierAPI","@waca/dashboard-livewidget/js/features/content/dataQueryExecution/api/QueryDefinitionModifierAPI"],(function(t,e,o,i){return function(){function n(t){var e=t.content,o=t.features;_classCallCheck(this,n),this.content=e,o.DataQueryExecution.registerQueryModifier(this.getAPI()),o.DataQueryExecution.registerQueryDefinitionModifier(this.getAPI())}return n.prototype.getAPI=function(){return this.api||(this.api=e.createAPI(this,[o,i])),this.api},n.prototype.getType=function(){return"main"},n.prototype.modifyQuerySpecList=function(e){var o=this;return t.each(e,(function(e){var i=o._createAnnotationUniqueStats();t.isEmpty(i)||t.each(i,(function(t){e.id===t.dataset&&e.type===o.getType()&&(o._addStatsQueryDataItem(e,t),o._addStatsQueryProjection(e,t))}))})),e},n.prototype.modifyQueryDefinitionList=function(e){var o=this;return t.each(e,(function(e){var i=o._createAnnotationUniqueStats();t.isEmpty(i)||t.each(i,(function(t){if(e.getId()===t.dataset&&e.getType()===o.getType()){var i=o._findDataItemSetFromList(t.dataItems[0],e.getDataItemSetList());i&&i.addCalculation(t.stat,t.dataItems)}}))})),e},n.prototype._findDataItemSetFromList=function(e,o){var i=this;return t.find(o,(function(t){return i._findDataItemSetFromSet(e,t)}))},n.prototype._findDataItemSetFromSet=function(e,o){return t.find(o.getDataItemList(),(function(t){return t.getId()===e}))?o:this._findDataItemSetFromList(e,o.getDataItemSetList())},n.prototype._addStatsQueryDataItem=function(e,o){e.spec.dataItems.push({id:o.id,calculation:{operation:o.stat,operands:t.map(o.dataItems,(function(t){return{dataItem:t}}))}})},n.prototype._addStatsQueryProjection=function(t,e){t.spec.projections.push(e.id)},n.prototype._getVisApi=function(){var t=this.content.getFeature("WidgetAPI.deprecated");return t&&t.getVisApi()},n.prototype._getNLT=function(){var t=this.content.getFeature("WidgetAPI.deprecated");return t&&t.getFeature("vis-chart-insights")},n.prototype._createAnnotationUniqueStats=function(){var e=this,o={},i=this._getVisApi(),n=[];if(i){var r=this._getNLT();n=r?i.getAllSuggestedAnnotations():i.getEnabledAnnotations(),n=r?this._getNLT().getNLTData(!0,n):n}return n&&n.length>0&&t.each(n,(function(i){!e.content.getFeature("SmartsExecution").getNonAnnotatableReasons(i.datasetId).descriptions.length&&t.each(i.dataItems,(function(e,n){"response"===i.roles[n]&&t.each(i.reqStats,(function(t){var n=t+":"+e;o[n]={id:n,stat:t,dataItems:[e],dataset:i.datasetId}}))}))})),o},n}()})),define("@dashboard-features/smartAnnotations/js/SmartAnnotationProvider",["@waca/dashboard-livewidget/js/features/widget/renderSequence/api/RenderStepProviderAPI","@waca/dashboard-common/js/core/APIFactory","./SuggestionTask","./AnnotationTask"],(function(t,e,o,i){return function(){function n(t){_classCallCheck(this,n),t.features.RenderSequence.registerRenderStepProvider(this.getAPI())}return n.prototype.destroy=function(){},n.prototype.getAPI=function(){return this.api||(this.api=e.createAPI(this,[t])),this.api},n.prototype.getRenderStepList=function(){return[{id:"predictSuggestions",dependencies:["visView"],blocks:["data"],module:o},{id:"annotation",dependencies:["render"],module:i}]},n}()})),define("dashboard-analytics/features/content/smartAnnotations/api/SmartAnnotationsAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.getEnabledAnnotations=function(){},t.prototype.getAllSuggestedAnnotations=function(){},t}()})),define("dashboard-analytics/features/content/smartAnnotations/api/DeprecatedSmartAnnotationsAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.whenAnnotationSuggestionsReady=function(){},t.prototype.getAnnotationDisplayState=function(){},t.prototype.clearInsightsIndicatorMessages=function(){},t.prototype.setAnnotationMessages=function(){},t.prototype.resetAnnotations=function(){},t.prototype.toggleStateChanged=function(){},t.prototype.annotationSelectionStateChanged=function(){},t.prototype.areThereValidInsights=function(){},t.prototype.addMessageListener=function(){},t.prototype.removeMessageListener=function(){},t.prototype.addFPDInsightMessages=function(){},t.prototype.areThereValidFPDMessages=function(){},t}()})),define("@dashboard-features/smartAnnotations/js/SmartAnnotations",["underscore","@waca/dashboard-common/js/core/APIFactory","@waca/dashboard-livewidget/js/features/content/smartAnnotations/api/SmartAnnotationsAPI","@waca/dashboard-livewidget/js/features/content/smartAnnotations/api/DeprecatedSmartAnnotationsAPI"],(function(t,e,o,i){return function(){function n(t){_classCallCheck(this,n),this.content=t.content,this.visualization=t.features.Visualization,this._api=e.createAPI(this,[o]),this._deprecated=e.createAPI(this,[o,i])}return n.prototype.getAPI=function(t){return"deprecated"===t?this._deprecated:this._api},n.prototype._getWidgetModel=function(){return this.content.getFeature("WidgetAPI.deprecated").getVisApi().ownerWidget.model},n.prototype.getEnabledAnnotations=function(){var t=[];if(this._getCurrentToggleEnabledState()){var e=this._getCurrentEnabledAnnotationIds();this.annotationResponse.annotations.forEach(function(o){-1!==e.indexOf(o.type)&&t.push(o)}.bind(this))}return t},n.prototype.getAllSuggestedAnnotations=function(){return this.annotationResponse&&this.annotationResponse.annotations||[]},n.prototype.areThereValidInsights=function(){if(this.visualization.hasUnavailableMetadataColumns()||!this.visualization.getSlots().isMappingComplete())return!1;var t=!(!this.annotationResponse||!this.annotationResponse.annotations)&&this.annotationResponse.annotations.length>0,e=!!this.fpdMessages;return t||e},n.prototype.addFPDInsightMessages=function(t){this.fpdMessages=t,this.messageListener&&this.messageListener.setFPDMessages&&this.messageListener.setFPDMessages(t)},n.prototype.areThereValidFPDMessages=function(){return!!this.fpdMessages},n.prototype.setAnnotationMessages=function(t){if(this.exectutionServiceMessages=t,this.messageListener&&this.messageListener.setSmartAnnotationMessages){var e=this._getDisplayableAnnotations(),o=this._getMessagesForEnabledAnnotations(e);this.messageListener.setSmartAnnotationMessages(o)}},n.prototype.clearInsightsIndicatorMessages=function(){this.exectutionServiceMessages={},this.fpdMessages=null,this.messageListener&&this.messageListener.clearInsightsIndicatorMessages&&this.messageListener.clearInsightsIndicatorMessages()},n.prototype._getMessagesForEnabledAnnotations=function(t){var e={},o=this.exectutionServiceMessages;return t.forEach((function(t){t.checked&&o[t.id]&&(e[t.id]=o[t.id])})),e},n.prototype.removeMessageListener=function(){this.messageListener=null},n.prototype.addMessageListener=function(t){this.messageListener=t},n.prototype.getAnnotationDisplayState=function(){var t=this._getDisplayableAnnotations();return{toggleChecked:this._getCurrentToggleEnabledState(),annotations:t,messages:this._getMessagesForEnabledAnnotations(t),fpdMessages:this.fpdMessages}},n.prototype.resetAnnotations=function(){this.annotationResponse=null},n.prototype.toggleStateChanged=function(e){var o=t.clone(this._getCurrentAnnotationState());o.toggleEnabled=e,this._updateAnnotationState(o)},n.prototype.annotationSelectionStateChanged=function(e){var o=t.clone(this._getCurrentAnnotationState()),i=e.id,n=o.selectedAnnotations?o.selectedAnnotations.slice():[];if(e.checked)-1===n.indexOf(i)&&n.push(i);else{var r=n.indexOf(i);r>-1&&n.splice(r,1)}o.selectedAnnotations=n,this._updateAnnotationState(o)},n.prototype._setInitialAnnotationState=function(){var e=t.clone(this._getCurrentAnnotationState());e&&e.hasOwnProperty("toggleEnabled")||(e.selectedAnnotations=this.annotationResponse.annotations?t.pluck(this.annotationResponse.annotations,"type"):[],this._updateAnnotationState(e,{silent:!0}))},n.prototype.whenAnnotationSuggestionsReady=function(t,e){if(e)try{this.annotationResponse=this._parseAnnotationSuggestions(t)}catch(t){this.annotationResponse={annotations:[],captions:{}}}finally{this._setInitialAnnotationState()}else this.annotationResponse={annotations:[],captions:{}};return Promise.resolve(this.annotationResponse)},n.prototype._parseAnnotationSuggestions=function(e){var o=["AVERAGE","MEANINGFUL_DIFFERENCES","PREDICTIVE_STRENGTH","FIT_LINE","MODE"],i={};return e.captions&&o.forEach((function(t){e.captions[t]&&(i[t]=e.captions[t])})),e?{annotations:e.annotations?t.filter(e.annotations,(function(t){return-1!==o.indexOf(t.type)})):[],captions:e.captions?i:{}}:{annotations:[],captions:{}}},n.prototype._updateAnnotationState=function(t,e){this._getWidgetModel().set({annotations:t},e||{})},n.prototype._getCurrentAnnotationState=function(){return this._getWidgetModel().get("annotations")||{}},n.prototype._getDisplayableAnnotations=function(){var e=this,o=[],i=this._getCurrentEnabledAnnotationIds();return this.getAllSuggestedAnnotations().forEach((function(n){var r=n.type;if(!t.find(o,(function(t){return t.id===r}))){var a={caption:e.annotationResponse.captions[r],id:r,checked:-1!==i.indexOf(r)};o.push(a)}})),o},n.prototype._getCurrentEnabledAnnotationIds=function(){var t=this._getCurrentAnnotationState();return t.selectedAnnotations&&t.selectedAnnotations.length>0?t.selectedAnnotations:[]},n.prototype._getCurrentToggleEnabledState=function(){var t=this._getCurrentAnnotationState();return!!t.toggleEnabled&&!(!t.toggleEnabled||!this.annotationResponse)},n}()})),define("dashboard-analytics/features/content/smartsExecution/api/SmartsExecutionAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.execute=function(){},t.prototype.getNonAnnotatableReasons=function(){},_createClass(t,null,[{key:"TARGETS",get:function(){return{SUGGESTIONS:"suggestions",EXECUTIONS:"executions"}}}]),t}()})),define("dashboard-analytics/widgets/livewidget/query/QueryResultAnnotatedObject",["./QueryResultObject"],(function(t){"use strict";var e=t.extend({_predictStatus:null,_predictDeco:null,init:function(t,o){e.inherited("init",this,[t]),this._predictStatus=o.predictStatus,this._predictDeco=o.deco,this._predictResults=o.predictResults},getStatus:function(){return this._predictStatus?this._predictStatus.state:null},getErrors:function(){return this._predictStatus?this._predictStatus.errors:null},getWarnings:function(){return this._predictStatus?this._predictStatus.warnings:null},getMessages:function(){return this._predictStatus?this._predictStatus.messages:null},getPredictTitle:function(){return this._predictStatus?this._predictStatus.title:null},getStatisticalDetails:function(){return this._predictResults&&this._predictResults.statisticalDetails||[]},isDataReordered:function(){return this._predictStatus&&this._predictStatus.reordered}});return e})),define("@dashboard-features/smartAnnotations/js/SmartsExecution",["underscore","@waca/dashboard-common/js/core/APIFactory","@waca/dashboard-livewidget/js/features/content/smartsExecution/api/SmartsExecutionAPI","@waca/dashboard-livewidget/js/widgets/livewidget/query/QueryResultData","@waca/dashboard-livewidget/js/widgets/livewidget/query/QueryResultAnnotatedObject","@waca/dashboard-livewidget/js/apiHelpers/SlotAPIHelper","@waca/dashboard-livewidget/js/widgets/livewidget/nls/StringResources"],(function(t,e,o,i,n,r,a){"use strict";var s,l;return l=s=function(){function s(t){_classCallCheck(this,s);var i=t.features;this._annotationService=i["Dashboard.AnnotationService"],this._exploreService=i["Dashboard.ExploreAnnotationService"],this.content=t.content,this._api=e.createAPI(this,[o])}return _createClass(s,null,[{key:"RESPONSE_STATUS",get:function(){return{SUCCESS:"SUCCESS"}}},{key:"HTTP_RESPONSE_STATUS",get:function(){return{UNAUTHORIZED:401,METHOD_NOT_ALLOWED:405,UNSUPPORTED_MEDIA_TYPE:415,INPUT_INVALID:422,INTERNAL_SYSTEM:500}}}]),s.prototype.getAPI=function(){return this._api},s.prototype.execute=function(t){var e=this,i=t.tags,n=t.target||o.TARGETS.SUGGESTIONS,r=n===o.TARGETS.SUGGESTIONS,a=this.content.getFeature("Forecast");if(r||0!==(this.content.getFeature("SmartAnnotations").getEnabledAnnotations()||[]).length||0!==(a.getForecastInfo().annotations||[]).length){var s=r?this._annotationService:this._exploreService,l=r?this._buildSuggestionQuery(t):this._buildExecutionQuery(t);return a.preQueryExecution(l,!r),s.runQuery({querySpec:l,target:n,sender:t.sender}).then((function(n){var r=n.data;if(t.target===o.TARGETS.EXECUTIONS){t.renderContext.isDecorated=!0;var s=e._buildAnnotationResultObject(r,t.renderContext);return a.postQueryExecution(s),s}var l=[e.content.getFeature("SmartAnnotations.deprecated").whenAnnotationSuggestionsReady(r,i.indexOf("annotatable")>-1),a.whenForecastSuggestionsReady(r,i.indexOf("forecasting")>-1)];return Promise.all(l).then((function(t){return t}))}),(function(t){throw e._errorResponseHandler(t)}))}return Promise.resolve(this._buildAnnotationResultObject({},t.renderContext))},s.prototype._errorResponseHandler=function(t){var e=void 0;switch(t&&t.code?t.code:0){case s.HTTP_RESPONSE_STATUS.UNAUTHORIZED:e=a.get("smart_annotation_unauthorized");break;case s.HTTP_RESPONSE_STATUS.METHOD_NOT_ALLOWED:e=a.get("smart_annotation_method");break;case s.HTTP_RESPONSE_STATUS.UNSUPPORTED_MEDIA_TYPE:e=a.get("smart_annotation_media");break;case s.HTTP_RESPONSE_STATUS.INPUT_INVALID:e=a.get("smart_annotation_input");break;case s.HTTP_RESPONSE_STATUS.INTERNAL_SYSTEM:e=a.get("smart_annotation_internal");break;default:e=a.get("smart_annotation_generic_error")}var o=new Error;return o.message=e,o.code=t.code,o.stack=t.stack,o},s.prototype._buildAnnotationResultObject=function(e,o){var r=new n(o,e);return t.each(e.dataset,(function(t){r.addQueryResultObject(t.datasetId,new i(t),o.data.queryThreshold)})),r},s.prototype._buildSuggestionQuery=function(t){return{version:s.SUGGESTIONS_VERSION,data:this._getSuggestionDataDef(t),use:this._getSuggestionUseDef(),tags:t.tags}},s.prototype._getSuggestionDataDef=function(e){var o=this,i={},n=this.content.getFeature("Visualization").getSlots();return t.each(n.getMappedSlotList(),(function(t){t.getDefinition().getDatasetIdList().forEach((function(e){var o=i[e];o||(i[e]={datasetId:e,slots:[]},o=i[e]),o.slots.push(t)}))})),t.map(i,(function(i){return{id:i.datasetId,dataItems:t.chain(i.slots).map((function(t){return o._getSuggestionDataItemsDef(t,e)})).flatten().value()}}))},s.prototype._getSuggestionDataItemsDef=function(e,o){var i=this,n=t.map(e.getDataItemList(),(function(t){var n={id:r.isMultiMeasuresSeriesSlot(e)&&1===e.getDataItemList().length?e.getId():t.getId(),type:i._getDataType(t),itemId:t.getColumnId()};if(o&&o.tags&&-1!==o.tags.indexOf("forecasting")){var a=t.getMetadataColumn(),s=a&&a.getTaxonomyList();(["datetime","time","date"].indexOf(t.getDataType())>-1||s&&s.length&&"cTime"===s[0].getClass())&&(n.type="datetime")}return"fact"===t.getType()&&(n.aggregate=t.getAggregation()),n}));return n.length>1&&(n=this._getSuggestionStackedDataItemsDef(n,e)),n},s.prototype._getSuggestionStackedDataItemsDef=function(e,o){return!e||e.length<2||e.push({id:o.getId(),type:r.isMultiMeasuresValueSlot(o)?"continuous":"categorical",nest:t.pluck(e,"id")}),e},s.prototype._getSuggestionUseDef=function(){var e=this,o=this.content.getFeature("Visualization").getSlots().getMappedSlotList();return t.map(o,(function(t){var o=t.getDefinition();return{name:o.getCaption(),role:o.getRole(),type:e._getUseType(o),dataItems:e._getSuggestionUseDataitemIds(t)}}))},s.prototype._getSuggestionUseDataitemIds=function(e){return e.getDataItemList().length>1||r.isMultiMeasuresSeriesSlot(e)||r.isMultiMeasuresValueSlot(e)?[e.getId()]:t.map(e.getDataItemList(),(function(t){return t.getId()}))},s.prototype._getUseType=function(t){switch(t.getType()){case"category":return"categorical";case"ordinal":return"continuous";default:return"any"}},s.prototype._getDataType=function(t){switch(t.getType()){case"attribute":return"categorical";case"fact":return t.getBinning()?"categorical":"continuous";default:return null}},s.prototype._buildExecutionQuery=function(e){var o=this,i=e.renderContext.data,n=void 0;if(i.getInterfaceType&&i.getImplType&&i.getQueryResultIdList){var r=this.content.getFeature("DataQueryExecution.internal");return n={dataset:t.map(i.getQueryResultIdList(),(function(t){var e=r.getRawResult(t);return{datasetId:t,data:o._getExecutionDatapointsDef(e.data),dataItems:o._getExecutionDataItemsDef(e.dataItems),hasNext:!(!e.hasPrev&&!e.hasNext),version:e.version}})),params:{annotations:this.content.getFeature("SmartAnnotations").getEnabledAnnotations().concat(this.content.getFeature("Forecast").getForecastInfo().annotations)},moduleId:e.moduleId,shapedModule:e.shapedModule},e.tempModuleId&&(n.tempModuleId=e.tempModuleId),e.tempModule&&(n.tempModule=JSON.stringify(e.tempModule)),n}return n={dataset:t.map(e.renderContext.data.getQueryResults(),(function(t){var e=t.data;return{datasetId:t.getDataViewId(),data:o._getExecutionDatapointsDef(e._resultData.data),dataItems:o._getExecutionDataItemsDef(e._resultData.dataItems),hasNext:e.hasMoreData(),version:e.getVersion()}})),params:{annotations:this.content.getFeature("SmartAnnotations").getEnabledAnnotations().concat(this.content.getFeature("Forecast").getForecastInfo().annotations)},moduleId:e.moduleId,shapedModule:e.shapedModule},e.tempModule&&(n.tempModule=JSON.stringify(e.tempModule)),n},s.prototype._getExecutionDatapointsDef=function(e){return t.map(e,(function(t){return{pt:t.pt}}))},s.prototype._getExecutionDataItemsDef=function(e){var o=this.content.getFeature("Visualization").getSlots();return t.map(e,(function(e){if(e.itemClass.h.length>1){var i=t.find(o.getMappedSlotList(),(function(t){return t.getId()===e.itemClass.id})).getDataItemList();return{itemClass:{h:t.map(e.itemClass.h,(function(t,e){return{id:i[e].getId(),u:t.u,d:t.d}})),id:e.itemClass.id},items:e.items}}return e}))},s.prototype.getNonAnnotatableReasons=function(t){var e=this,o=[],i={allLayers:!1,nonAnnotatableFeatures:o,descriptions:[]},n=this.content.getFeature("Visualization").getDefinition(),r=n&&n.getDatasetList().map((function(t){return t.id})),a=r&&r.length?r:["data"];return(t?[t]:a).forEach((function(t){var n=e._getNonAnnotatableReasons(t,o);n.length&&i.descriptions.push(n)})),i.allLayers=i.descriptions.length===a.length,i},s.prototype._getNonAnnotatableReasons=function(e,o){var i=[this._topBottomPercentApplied.bind(this),this._topBottomAppliedWithNestedDataItems.bind(this)],n=[],r=[];return t.each(i,(function(t){return r.push(t(e,o))})),(r=t.without(r,null)).length&&n.push({id:"smart_exec_support_warnings",label:"Annotation warning:",items:t.flatten(r)}),n},s.prototype._topBottomPercentApplied=function(e,o){var i=null,n=this.content.getFeature("Visualization").getSlots().getMappingInfoList();return!!t.find(n,(function(t){if(-1!==t.slot.getDefinition().getDatasetIdList().indexOf(e)){var o=t.dataItem.getTopBottom();return o&&-1!==["toppercent","bottompercent"].indexOf(o.type)}}))&&(i=[],this.content.getFeature("SmartAnnotations").getEnabledAnnotations().length>0&&(i.push({id:"UNSUPPORTED_TOPBOTTOM_PERCENT_INSIGHTS",label:a.get("smart_annotation_insight_topBottom_percent_unsupported")}),o.push("insights")),this._getForecastAnnotations().length>0&&(i.push({id:"UNSUPPORTED_TOPBOTTOM_PERCENT_FORECAST",label:a.get("smart_annotation_forecast_topBottom_percent_unsupported")}),o.push("forecast"))),i},s.prototype._topBottomAppliedWithNestedDataItems=function(e,o){var i=null,n=this.content.getFeature("Visualization").getSlots().getMappingInfoList();return!!t.find(n,(function(t){if(-1!==t.slot.getDefinition().getDatasetIdList().indexOf(e))return t.dataItem.getTopBottom()&&t.slot.getDataItemList().length>1}))&&(i=[],this.content.getFeature("SmartAnnotations").getEnabledAnnotations().length>0&&(i.push({id:"UNSUPPORTED_TOPBOTTOM_NESTED_DATAITEM_INSIGHTS",label:a.get("smart_annotation_insight_topBottom_nested_dataItem_unsupported")}),o.push("insights")),this._getForecastAnnotations().length>0&&(i.push({id:"UNSUPPORTED_TOPBOTTOM_NESTED_DATAITEM_FORECAST",label:a.get("smart_annotation_forecast_topBottom_nested_dataItem_unsupported")}),o.push("forecast"))),i},s.prototype._getForecastAnnotations=function(){var t=this.content.getFeature("Forecast");return t&&t.getForecastInfo().annotations||[]},s}(),s.SUGGESTIONS_VERSION="0.0.1",l})),define("@dashboard-features/smartAnnotations/js/api/SmartsIndicatorAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.update=function(){},t}()})),define("text!@dashboard-features/smartAnnotations/js/templates/SmartAnnotiationsIndicator.html",[],(function(){return'<div role="application" class="dataWidgetIcon liveWidgetAnnotations liveWidgetAnnotationsNone" title="{{!it.title}}" aria-label="{{!it.title}}" data-selector="true" tabindex="0">\n\t<svg class="svgIcon">\n\t\t<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#{{=it.smartAnnotationsIcon}}"></use>\n\t</svg>\n</div>\n'})),define("text!@dashboard-features/smartAnnotations/js/templates/SmartAnnotationsList.html",[],(function(){return'<div class="smartAnnotationsTitleSection ba-theme-waca" role="region" aria-label="{{!it.title}}"></div>\n<div class="smartAnnotationsCheckboxSection ba-theme-waca"</div>\n'})),define("@dashboard-features/smartAnnotations/js/SmartAnnotationsFlyoutView",["jquery","@waca/dashboard-livewidget/js/widgets/livewidget/nls/StringResources","@waca/dashboard-common/js/utils/FlyoutContentBase","doT","text!./templates/SmartAnnotationsList.html","react-dom","react","ca-ui-toolkit","underscore"],(function(t,e,o,i,n,r,a,s,l){"use strict";var u=i.template(n),c=s.Checkbox,d=s.ToggleSwitch,p=s.Label,f=s.TruncatedText,h=s.Tooltip,g=function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,t.apply(this,arguments))}return _inherits(e,t),e.prototype.renderLabel=function(t,e){return a.createElement(f,{className:"smartannotationsShortLabel",value:e.short,title:e.long})},e.prototype.renderACheckbox=function(t,e,o){var i=this;return a.createElement(c,{key:e,label:t.caption,checked:t.checked,disabled:o,onClick:function(){return i.props.onCheckboxClicked(e)}})},e.prototype.renderCheckboxSection=function(t,e,o,i){var n=this,r=[];t.checked&&i&&i.length>0&&(r=i.map((function(e){return n.renderLabel(t,e)})));var s=this.renderACheckbox(t,e,o);return a.createElement("div",{className:"smartAnnotationsCheckboxSection ba-theme-waca"},a.createElement(h,{title:t.caption,orient:"top"},s),a.createElement("div",{className:"smartAnnotationLabels"},r))},e.prototype.render=function(){var t=this.renderCheckboxSection.bind(this),e=this.props.disabled,o=this.props.messages||[],i=[];return this.props.annotations&&this.props.annotations.length>0&&(i=this.props.annotations.map((function(i,n){return t(i,n,e,o[i.id])}))),a.createElement("div",{className:"smartAnnotationsCheckboxes"},i)},e}(a.Component),m=function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,t.apply(this,arguments))}return _inherits(e,t),e.prototype.renderSubMessageLabel=function(t){return a.createElement(f,{className:"smartannotationsShortLabel",value:t.short,title:t.long})},e.prototype.renderMessagesSection=function(t){var e=this,o=[],i=t.caption,n=t.entries;return n&&n.length>0&&(o=n.map((function(t){return e.renderSubMessageLabel(t)}))),a.createElement("div",{className:"smartAnnotationsCheckboxSection ba-theme-waca"},a.createElement(f,{className:"smartannotationsShortLabel",value:i,title:i}),a.createElement("div",{className:"smartAnnotationLabels"},o))},e.prototype.render=function(){var t=this.props.messages,e=this.renderMessagesSection.bind(this),o=[];return t&&t.length>0&&(o=t.map((function(t){return e(t)}))),a.createElement("div",{className:"smartAnnotationsCheckboxes"},o)},e}(a.Component);function _(t){var o=e.get("smart_annotation_dialog_title"),i=t.annotations.length>0?a.createElement(d,{className:"smartAnnotationsTitleToggle",checked:t.toggleChecked,onChange:t.onToggleChange,small:!0,align:"right"}):null,n=t.toggleChecked?e.get("smart_annotations_toggle_off"):e.get("smart_annotations_toggle_on"),r=i?a.createElement(h,{title:n,orient:"top"},i):null;return a.createElement("div",{className:"smartAnnotationsTitleDivWrapper"},a.createElement("div",{className:"smartAnnotationsTitleDiv"},a.createElement(h,{title:o,orient:"top"},a.createElement(p,{className:"smartannotationsTitleLabel",label:o})),r))}var y=function(t){function e(o){_classCallCheck(this,e);var i=_possibleConstructorReturn(this,t.call(this,o));return i.state=l.clone(o.state),i}return _inherits(e,t),e.prototype.toggleChecked=function(){var t=l.extend({},this.state,{toggleChecked:!this.state.toggleChecked});this.setState(t),this.props.onToggleStateChanged(!this.state.toggleChecked)},e.prototype.handleCheckboxClick=function(t){var e=this.state.annotations.slice(),o=e[t];o.checked=!o.checked;var i=l.extend({},this.state,{annotations:e});this.setState(i),this.props.onCheckboxStateChanged(o)},e.prototype.setNewMessages=function(t){var e=l.extend({},this.state,{messages:t});this.setState(e)},e.prototype.setNewFPDMessages=function(t){var e=l.extend({},this.state,{fpdMessages:t});this.setState(e)},e.prototype.clearInsightsIndicatorMessages=function(){var t=l.extend({},this.state,{messages:null,fpdMessages:null});this.setState(t)},e.prototype.render=function(){var t=this,e=this.state.toggleChecked?this.state.messages:{};return a.createElement("div",{className:"smartAnnotationComponents"},a.createElement("div",{className:"smartAnnotationsTitleSection ba-theme-waca",role:"region","aria-label":"{{!it.title}}"},a.createElement(_,{annotations:this.state.annotations,onToggleChange:function(){return t.toggleChecked()},toggleChecked:this.state.toggleChecked})),a.createElement(g,{messages:e,annotations:this.state.annotations,disabled:!this.state.toggleChecked,onCheckboxClicked:function(e){return t.handleCheckboxClick(e)}}),a.createElement(m,{messages:this.state.fpdMessages}))},e}(a.Component),v=o.extend({init:function(t){v.inherited("init",this,arguments),this.visAPI=t.viewOptions.visAPI,this.uniqueId=t.viewOptions.uniqueId,this.popOver=null,this.markup=u({title:e.get("smart_annotation_dialog_title")})},setFocus:function(){this.popOver=t(".smartAnnotationsPopover."+this.uniqueId),this.popOver.find("input:first").focus()},_onRemove:function(){if(this.visAPI.getSmartAnnotationsManger().removeMessageListener(this),this.popOver){var e=this.popOver.find(".popover-content")[0];t(e).find(".smartAnnotationComponents").length>0&&r.unmountComponentAtNode(e),this.popOver.remove()}this.popupShown=!1,this.reactComponents=null},remove:function(){v.inherited("remove",this,arguments),this._onRemove()},onPopupClosed:function(){this._onRemove()},getRenderedHtml:function(){if(this.popOver&&this.popOver.find(".popover-content")[0]){var e=this.popOver.find(".popover-content")[0];t(e).find(".smartAnnotationComponents").length>0&&r.unmountComponentAtNode(e)}return this.markup},onPopupShown:function(){var e=this,o=this.visAPI.getSmartAnnotationsManger();o.addMessageListener(this);var i=l.clone(o.getAnnotationDisplayState()),n=this.popOver.find(".popover-content")[0];this.popupShown?0===t(this.popOver).find(".smartAnnotationComponents").length&&(this.reactComponents.setState({}),this.reactComponents=r.render(a.createElement(y,{state:i,onToggleStateChanged:function(t){return e.onToggleChange(t)},onCheckboxStateChanged:function(t){return e.onCheckboxStateChanged(t)}}),n)):(this.popupShown=!0,this.reactComponents=r.render(a.createElement(y,{state:i,onToggleStateChanged:function(t){return e.onToggleChange(t)},onCheckboxStateChanged:function(t){return e.onCheckboxStateChanged(t)}}),n),this.setFocus())},setSmartAnnotationMessages:function(t){this.reactComponents&&this.reactComponents.setNewMessages(t)},setFPDMessages:function(t){this.reactComponents&&this.reactComponents.setNewFPDMessages(t)},clearInsightsIndicatorMessages:function(){this.reactComponents&&this.reactComponents.clearInsightsIndicatorMessages()},onToggleChange:function(t){this.visAPI.getSmartAnnotationsManger().toggleStateChanged(t)},onCheckboxStateChanged:function(t){this.visAPI.getSmartAnnotationsManger().annotationSelectionStateChanged(t)}});return v})),define("@dashboard-features/smartAnnotations/js/SmartsIndicator",["@waca/dashboard-common/js/core/APIFactory","@waca/dashboard-livewidget/js/features/content/visIndicators/api/VisIndicatorsProviderAPI","./api/SmartsIndicatorAPI","underscore","jquery","doT","text!./templates/SmartAnnotiationsIndicator.html","@waca/dashboard-livewidget/js/lib/@waca/core-client/js/core-client/utils/Utils","./SmartAnnotationsFlyoutView","@waca/dashboard-common/js/utils/Flyout","@waca/dashboard-livewidget/js/widgets/livewidget/nls/StringResources","@waca/dashboard-common/js/utils/EventChainLocal","@waca/dashboard-livewidget/js/util/KeyCodes"],(function(t,e,o,i,n,r,a,s,l,u,c,d,p){var f=r.template(a);return function(){function r(t){_classCallCheck(this,r),this.content=t.content,this.icons=t.features["Dashboard.Icons"],t.features.VisIndicators.registerProvider(this.getAPI()),this.init()}return r.prototype.init=function(){var t=this.icons.getIcon("common-insights");this.$indicatorIcon=n(f({title:c.get("smart_annotation_insight_icon_title"),smartAnnotationsIcon:t.id}));var e=this._onClick.bind(this);this.$indicatorIcon.on("tap keydown click",e),this.$indicatorIcon=s.embedSVGIcon(this.$indicatorIcon)},r.prototype.destroy=function(){this.$indicatorIcon&&this.$indicatorIcon.off()&&this.$indicatorIcon.remove(),this.$indicatorIcon=null,this.flyout&&(this.getVisApi().ownerWidget.eventRouter&&this.getVisApi().ownerWidget.eventRouter.off("widget:hideToolbar",this.closeFlyout,this),this.flyout.view&&this.flyout.view.remove&&this.flyout.view.remove(),this.flyout.remove(),this.flyout=null)},r.prototype.getAPI=function(){return this.api||(this.api=t.createAPI(this,[e,o])),this.api},r.prototype.getIndicatorList=function(){return[{name:"smartAnnotationsIcon",icon:this.$indicatorIcon}]},r.prototype.update=function(){this._areThereValidInsights()?this.$indicatorIcon.removeClass("liveWidgetAnnotationsNone"):this.$indicatorIcon.addClass("liveWidgetAnnotationsNone")},r.prototype._areThereValidInsights=function(){return!!this.getVisApi().areThereValidFPDMessages()||!!this.content.getFeature("Visualization").getDefinition().getProperty("supportsAnnotations")&&this.getVisApi().areThereValidInsights()},r.prototype.closeFlyout=function(){this.flyout.close()},r.prototype._onClick=function(t){if(new d(t).setProperty("preventDefaultContextBar",!0),!t.keyCode||t.keyCode===p.KEY_ENTER){if(t.gesture&&t.gesture.preventDefault(),!this.flyout){var e=i.uniqueId("SmartAnnotationsPopover");this.flyout=new u({container:document.body,selector:this.$indicatorIcon,popoverClass:"smartAnnotationsPopover visTopPopover "+e,viewport:this.el,viewClass:l,placement:"left",viewOptions:{visAPI:this.getVisApi(),uniqueId:e}}),this.getVisApi().ownerWidget.eventRouter&&this.getVisApi().ownerWidget.eventRouter.on("widget:hideToolbar",this.closeFlyout,this)}this.flyout.open(this.$indicatorIcon)}},r.prototype.getVisApi=function(){return this.content.getFeature("WidgetAPI.deprecated").getVisApi()},r}()})),define("@dashboard-features/smartAnnotations/js/layers",["./StatsQueryModifier","./SmartAnnotationProvider","./SmartAnnotations","./SmartsExecution","./SmartsIndicator"],(function(){})),define("dashboard-analytics/features/content/forecast/api/ForecastAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.getForecastSettings=function(){},t.prototype.areThereValidForecastSettings=function(){},t.prototype.clearForecastIndicatorMessages=function(){},t.prototype.getForecastDisplayState=function(){},t.prototype.getForecastInfo=function(){},t.prototype.applyStateChange=function(){},t.prototype.whenForecastSuggestionsReady=function(){},t.prototype.setQueryResult=function(){},t.prototype.getQueryResult=function(){},t.prototype.supportsForecasts=function(){},t.prototype.preQueryExecution=function(){},t.prototype.postQueryExecution=function(){},t}()})),define("@dashboard-features/forecast/js/Forecast",["@waca/dashboard-common/js/core/APIFactory","@waca/dashboard-livewidget/js/features/content/forecast/api/ForecastAPI","underscore","@waca/dashboard-livewidget/js/visualizations/vipr/VIPRUtils"],(function(t,e,o,i){"use strict";return function(){function n(t){_classCallCheck(this,n),this.content=t.content,this.logger=t.dashboardAPI.getGlassCoreSvc(".Logger"),this.forecastResponse=null,this.executionServiceMessages={},this.statisticalDetails=[],this.dateItemCache=new Map,this._forecasting=void 0,this._registerEvents()}return n.prototype.getAPI=function(){return this.api||(this.api=t.createAPI(this,[e])),this.api},n.prototype.areThereValidForecastSettings=function(){var t=this._getVisualization(),e=!t.hasUnavailableMetadataColumns()&&t.getSlots().isMappingComplete()&&this._getCurrentForecastSettings();return!!e&&!o.isEmpty(e)},n.prototype.setForecastMessages=function(t){if(this.executionServiceMessages=t,this.messageListener&&this.messageListener.setForecastMessages){var e=this._getCurrentForecastState(),o=this._getMessagesForForecasts(e);this.messageListener.setForecastMessages(o)}},n.prototype.clearForecastIndicatorMessages=function(){this.executionServiceMessages={},this.messageListener&&this.messageListener.clearForecastIndicatorMessages&&this.messageListener.clearForecastIndicatorMessages()},n.prototype.removeMessageListener=function(){this.messageListener=null},n.prototype.addMessageListener=function(t){this.messageListener=t},n.prototype.getForecastDisplayState=function(){return{toggleEnabled:this._getCurrentToggleEnabledState(),settings:this._getCurrentForecastSettings()}},n.prototype.getForecastInfo=function(){var t={annotations:[],captions:{}};return this._getCurrentToggleEnabledState()&&(t=JSON.parse(JSON.stringify(this.forecastResponse)),this._appendModelOptions(t)),t},n.prototype.getForecastSettings=function(){return this._getCurrentToggleEnabledState()?this._getCurrentForecastSettings():[]},n.prototype.resetForecastSettings=function(){this.forecastResponse=null},n.prototype.toggleStateChanged=function(t){var e=o.clone(this._getForecastOptionsFromModel());e.toggleEnabled=t,this._updateForecastState(e)},n.prototype._isNewSettingValueValid=function(t){return void 0!==t.value&&null!==t.value},n.prototype.applyStateChange=function(t){var e=this,o={toggleEnabled:t.toggleEnabled,settings:{}};t.settings.forEach((function(t){e._isNewSettingValueValid(t)&&(o.settings[t.id]=t.value)})),this._updateForecastState(o)},n.prototype.whenForecastSuggestionsReady=function(t,e){if(e)try{this.forecastResponse=this._parseForecastSuggestions(t)}catch(t){this.logger.error(t),this.forecastResponse={annotations:[],captions:{}}}else this.forecastResponse={annotations:[],captions:{}};return Promise.resolve(this.forecastResponse)},n.prototype.setQueryResult=function(t){this.queryResult=t},n.prototype.getQueryResult=function(){return this.queryResult},n.prototype.preQueryExecution=function(t,e){var o=this;e&&(this.dateItemCache.clear(),t.dataset.forEach((function(t){t.dataItems.forEach((function(t){t.items&&t.items.length&&t.itemClass.h.forEach((function(e,i){o._isRepresentDate(e.u)&&t.items.forEach((function(t){var e=o._getISOValue(t.t[i].d);o.dateItemCache.set(t.t[i].u,t.t[i].d),t.t[i].d=e}))}))}))})))},n.prototype._onChangePropertyForecasting=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.info||{};this._forecasting=e.value},n.prototype._getISOValue=function(t){if(o.isNull(t))return t;var e=new Date(t);return isNaN(e.getTime())?t:e.toISOString()},n.prototype._isRepresentDate=function(t){var e=this._getVisualization().getDataSource().getMetadataColumn(t);if(!e)return!1;var o=e.getTaxonomyList()||[],i=!1;return!e.isDateTimeDataType()&&o.length&&"cTime"===o[0].getClass()&&"cDate"===o[0].getFamily()&&(i=!0),i},n.prototype.postQueryExecution=function(t){var e=this;this.setQueryResult(t),t.isDataReordered()&&this._reorderForecastDatapoints(t.getDefaultQueryResult().getFacetData()),t.getDefaultQueryResult().getFacetData().getResultDataItems().forEach((function(t){var i=t.getTuples();i&&i.length&&t.getTupleHeader().forEach((function(t,n){e._isRepresentDate(t.u)&&i.forEach((function(t){var i=e.dateItemCache.get(t.t[n].u);o.isUndefined(i)||(t.t[n].d=i)}))}))})),this.dateItemCache.clear()},n.prototype._getForecastResponseAnnotationSettings=function(){var t=this.forecastResponse&&this.forecastResponse.annotations||[];return t.length?t[0].modelParameters:[]},n.prototype._getCurrentForecastSettings=function(){var t=this._getForecastOptionsFromModel(),e=this._getForecastResponseAnnotationSettings();return e.forEach((function(e){var o=e.id;void 0!==t.settings[o]&&null!==t.settings[o]&&(e.value=t.settings[o])})),e},n.prototype._appendModelOptions=function(t){var e=this._getForecastOptionsFromModel(),i=t.annotations.find((function(t){return"TIME_SERIES"===t.type}));i&&!o.isEmpty(e.settings)&&(i.modelOptions=e.settings)},n.prototype._getMessagesForForecasts=function(t){var e={},i=this.executionServiceMessages;return o.forEach(Object.keys(t),(function(t){e[t]=i[t]})),e},n.prototype._updateForecastState=function(t,e){var i=this._getForecastOptionsFromModel();o.isEqual(i,t)||(this._forecasting=t,this.content.setPropertyValue("forecasting",t,e))},n.prototype._getForecastOptionsFromModel=function(){return this._forecasting||(this._forecasting=this.content.getPropertyValue("forecasting")||{settings:{}}),this._forecasting},n.prototype._getCurrentToggleEnabledState=function(){var t=this._getForecastOptionsFromModel();return!!t.toggleEnabled&&!(!t.toggleEnabled||!this.forecastResponse)},n.prototype._parseForecastSuggestions=function(t){var e={},i=["TIME_SERIES"];return t.captions&&i.forEach((function(o){t.captions[o]&&(e[o]=t.captions[o])})),t?{annotations:t.annotations?o.filter(t.annotations,(function(t){return-1!==i.indexOf(t.type)})):[],captions:t.captions?e:{}}:{annotations:[],captions:{}}},n.prototype._reorderForecastDatapoints=function(t){var e=t.getDatapoints(),o=t.getResultDataItemCount();e.sort((function(t,e){for(var i=0;i<o;i++){var n=t.pt[i],r=e.pt[i];if(!isNaN(n)&&!isNaN(r)&&n!==r)return n<r?-1:1}return 0}))},n.prototype._getVisualization=function(){return this.content.getFeature("Visualization")},n.prototype._registerEvents=function(){this.content.on("change:property:forecasting",this._onChangePropertyForecasting,this)},n.prototype._deregisterEvents=function(){this.content.off("change:property:forecasting",this._onChangePropertyForecasting,this)},n.prototype.supportsForecasts=function(){return i.doesConfigPropertyMatchExpected(this._getVisualization().getDefinition().getId(),"supportsForecasts",!0)},n.prototype.destroy=function(){this._deregisterEvents(),this.content=null,this.logger=null,this.forecastResponse=null,this.executionServiceMessages=null},n}()})),define("@dashboard-features/forecast/js/ForecastPropertiesProvider",["@waca/dashboard-common/js/core/APIFactory","@waca/dashboard-common/js/api/PropertiesProviderAPI"],(function(t,e){return function(){function o(t){_classCallCheck(this,o),this.content=t.content,this.content&&this.content.getFeature("Properties").registerProvider(this.getAPI())}return o.prototype.getAPI=function(){return this._api||(this._api=t.createAPI(this,[e])),this._api},o.prototype.destroy=function(){this.content=null},o.prototype.getPropertyLayoutList=function(){return[]},o.prototype.getPropertyList=function(){return[{id:"forecasting",onPropertyChange:{refresh:{annotation:!0,data:!0}}}]},o}()})),define("@dashboard-features/forecast/js/ForecastQueryModifier",["underscore","@waca/dashboard-common/js/core/APIFactory","@waca/dashboard-livewidget/js/features/content/dataQueryExecution/api/QueryModifierAPI","@waca/dashboard-livewidget/js/features/content/dataQueryExecution/DataQueryUtils"],(function(t,e,o,i){return function(){function t(e){var o=e.content,i=e.features;_classCallCheck(this,t),this.content=o,i.DataQueryExecution.registerQueryModifier(this.getAPI())}return t.prototype.getAPI=function(){return this.api||(this.api=e.createAPI(this,[o])),this.api},t.prototype.getType=function(){return"main"},t.prototype.modifyQuerySpecList=function(t){return i.removeForecastFilters(t)},t}()})),define("@dashboard-features/forecast/js/layers",["./Forecast","./ForecastPropertiesProvider","./ForecastQueryModifier"],(function(){})),define("@dashboard-features/caActions/js/slot/calculationAction/CalculationAction",["underscore","@waca/dashboard-livewidget/js/apiHelpers/SlotAPIHelper","@waca/dashboard-common/js/core/APIFactory","@waca/dashboard-livewidget/js/widgets/livewidget/nls/StringResources","@waca/dashboard-livewidget/js/features/content/slotActions/api/SlotActionsProviderAPI"],(function(t,e,o,i,n){return function(){function r(t){_classCallCheck(this,r),this.dashboard=t.dashboardAPI,this.content=t.content,this.icons=t.features&&t.features["Dashboard.Icons"],this.content.getFeature("SlotActions").registerProvider("calculationAction",this.getAPI())}return r.prototype.getSlotActionList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=[],n=this._getSupportActionContext(t,e);if(this._supportAction(n)){var r=this._createCalculationSpec(n.dataSlot,e),a=this.icons.getIcon("common-edit"),s=this.icons.getIcon("dashboard-calculate");n.isEditCalculation&&o.push({name:"editCalculation",label:i.get("toolbarActionEditCalculation"),icon:a.id,type:"Button",removeThenApplyAction:!0,actions:{apply:this._editCalculation.bind(this,n.dataSource.getId(),r.columnIds)}}),o.push({name:"calculation",label:i.get("toolbarActionCalculation"),icon:s.id,type:"Button",removeThenApplyAction:!0,actions:{apply:this._createCalculation.bind(this,n.dataSource.getId(),r.columnIds)}})}return o},r.prototype.getAPI=function(){return o.createAPI(this,[n])},r.prototype._editCalculation=function(t,e){return this._getCalculationUI().editCalculation(t,e)},r.prototype._createCalculation=function(t,e){var o=this;return this._getCalculationUI().createCalculation(t,e).then((function(t){var e=t&&t.length>0,i=o.content.getFeature("Visualization.SmartsRecommender");return e&&i&&i.addDataItems(t.map((function(t){return{columnId:t.getId()}}))),e}))},r.prototype._getSupportActionContext=function(t,o){var i=e.getDataSlotById(this._getVisualization(),t);if(!i)return null;var n=this._getVisualization().getDataSource();if(!n)return null;if(this._isMultiMeasureDataSlot(i,o))return null;if(!(!Number.isInteger(o)&&!Array.isArray(o))&&this._dataItemMappedToUnavailableMetadataColumn(n,i,o))return null;var r=!1,a=!(Array.isArray(o)&&o.length>1),s=this._isCalculationEnabled(i,o);if(a){var l=e.getMetadataColumnForDataSlotHasOneMappedDataItem(n,i,o);r=l&&l.isEditableCalculation()}return{isCalculationEnabled:s,isEditCalculation:r,dataSlot:i,dataSource:n,isCustomGroup:this._isCustomGroup(n,i,o)}},r.prototype._supportAction=function(t){return!!t&&((t.isCalculationEnabled||t.isEditCalculation)&&this.dashboard.getMode()===this.dashboard.MODES.EDIT&&!t.isCustomGroup)},r.prototype._isCustomGroup=function(e,o,i){var n=this,r=[],a=o.getDataItemList();return i?Array.isArray(i)?i.forEach((function(t){r.push(a[t].getColumnId())})):r.push(a[i].getColumnId()):a.length>0&&r.push(a[0].getColumnId()),r.length>0&&t.some(r,(function(t){return n.dashboard.getFeature("DataSources.moser").isConsumerGroupColumn(e.getId(),t)}))},r.prototype._isMultiMeasureDataSlot=function(t,o){return void 0===o&&(e.isMultiMeasuresSeriesSlot(t)||e.isMultiMeasuresValueSlot(t))},r.prototype._dataItemMappedToUnavailableMetadataColumn=function(e,o,i){var n=[],r=Array.isArray(i)?i:[i],a=o.getDataItemList();return r.forEach((function(t){if(Number.isInteger(t)){if(t>=a.length)throw new Error("Invalid index to retrieve the data item from slot dataItemList");n.push(a[t])}})),t.every(n,(function(t){return null===e.getMetadataColumn(t.getColumnId())}))},r.prototype._isCalculationEnabled=function(e,o){var i=!1,n=e.getDefinition().getType();if(Number.isInteger(o)){var r=e.getDataItemList()[o],a="fact"===r.getType(),s="ordinal"===e.getDefinition().getType()&&"attribute"===r.getMetadataColumn().getType(),l="any"===e.getDefinition().getType()&&"fact"===r.getMetadataColumn().getType();return a&&!s||l}if(Array.isArray(o)&&o.length<3)if("any"===n){var u=e.getDataItemList();i=t.every(o,(function(t){return"fact"===u[t].getType()}))}else"ordinal"===n&&(i=!0);return i},r.prototype._createCalculationSpec=function(t,e){var o=[],i=t.getDataItemList();return e?Array.isArray(e)?e.forEach((function(t){o.push(i[t].getColumnId())})):o.push(i[e].getColumnId()):i.length>0&&o.push(i[0].getColumnId()),{columnIds:o}},r.prototype._getVisualization=function(){return this.visualization||(this.visualization=this.content.getFeature("Visualization")),this.visualization},r.prototype._getCalculationUI=function(){return this._uiDataSources||(this._uiDataSources=this.dashboard.getFeature("DataSources.CalculationUI")),this._uiDataSources},r}()})),define("@dashboard-features/caActions/js/content/navigateAction/NavigateAction",["@waca/dashboard-livewidget/js/features/content/common/DataPointActionBase","@waca/dashboard-livewidget/js/features/content/slotActions/api/SlotActionsProviderAPI","@waca/dashboard-common/js/core/APIFactory","@waca/dashboard-livewidget/js/widgets/livewidget/nls/StringResources","@waca/dashboard-livewidget/js/apiHelpers/SlotAPIHelper","underscore"],(function(t,e,o,i,n,r){"use strict";var a=function(t){function a(e){_classCallCheck(this,a);var o=_possibleConstructorReturn(this,t.call(this,e));return o.dashboard=e.dashboardAPI,o.content=e.content,e.features.DataPointActions.registerProvider("navigateAction",o),e.features.SlotActions.registerProvider("navigateAction",o.getAPI()),o.features=e.features,o._drillState=[],o}return _inherits(a,t),a.prototype.getAPI=function(){return this._api||(this._api=o.createAPI(this,[e])),this._api},a.prototype._initSelectionInfo=function(t){var e=this,o=r.flatten(r.pluck(t,"categories").filter(Boolean)),i=r.uniq(o,(function(t){return t.dataItemId})),n=this._getVisualization().getSlots();this._currentSelections=[],i.forEach((function(t){var o=n.getMappingInfo(t.dataItemId),i=r.find(e._currentSelections,(function(t){return t.slot.getId()===o.slot.getId()&&t.indexInSlot<o.indexInSlot}));i?(i.indexInSlot=o.indexInSlot,i.dataItem=o.dataItem,i.columnId=t.columnId,i.label=t.label):e._currentSelections.push(e._createCurrentSelectionInfo(t,o))}))},a.prototype._createCurrentSelectionInfo=function(t,e){return{columnId:t.columnId,label:t.label,slot:e.slot,dataItem:e.dataItem,indexInSlot:e.indexInSlot}},a.prototype._isMultiMeasuresSeriesSlot=function(t){return n.isMultiMeasuresSeriesSlot(t)||n.isMultiMeasuresValueSlot(t)},a.prototype._supportDataPointAction=function(t){return(!t.noFilters||t.drillOnly)&&(this._getNavigateItemsInfo()||this._getPreviousDrillItem())},a.prototype.getDataPointActionList=function(t,e){return this._initSelectionInfo(t.dataPoints),delete this._navigateItemsInfo,delete this._currentSelectionsOrig,this._initializeNavigateItemsInfo(),e.includeApplyFilter&&(this._currentSelectionsOrig=t),this._supportDataPointAction(e)?this._getAvailableActions():[]},a.prototype._supportSlotAction=function(t,e,o){return!o.getBinning()&&!this._isMultiMeasuresSeriesSlot(t,e)&&this._getNavigateItemsInfo()},a.prototype.getSlotActionList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(Array.isArray(e)&&1!==e.length)return[];var o=this._getVisualization().getSlots().getSlot(t),i=o.getDataItemList()[e];return this._currentSelections=[{columnId:i.getColumnId(),slot:o,dataItem:i,indexInSlot:e}],delete this._navigateItemsInfo,delete this._currentSelectionsOrig,this._initializeNavigateItemsInfo(),this._supportSlotAction(o,e,i)?this._getAvailableActions():[]},a.prototype.getNavigationPaths=function(t){var e=this._getVisualization().getDataSource().getId(),o=this._currentSelections.map((function(t){return{label:t.label,columnId:t.columnId}}));return this._getMoserDataSources().getNavigationPaths(e,t,o)},a.prototype.getDrillGroups=function(t){var e=this._getVisualization().getDataSource().getId();return this._getMoserDataSources().getDrillGroups(e,t)},a.prototype._getAvailableActions=function(){if(0===this._currentSelections.length)return[];var t=!this._canDrillDown(),e=!this._hasDrillState(),o="dashboard-analytics/widgets/livewidget/dialogs/SelectItemsNavigationDialog";this._hasMultipleColumns()&&(o="dashboard-analytics/widgets/livewidget/dialogs/MultipleColumnsNavigationDialog");var n=this.features["Dashboard.Icons"].getIcon("dashboard-navigation-drillback"),r=this.features["Dashboard.Icons"].getIcon("dashboard-navigation-drilldown"),a=this.features["Dashboard.Icons"].getIcon("dashboard-navigation-compass");return this.toolbarContribution=[{name:"navigateBack",label:i.get("toolbarActionDrillBack"),text:i.get("toolbarActionDrillBack"),className:"iconWithText",icon:n.id,type:"Button",group:"navigateBackAction",action:this.navigateBack.bind(this),closeOnActionApplied:!0,disabled:e,update:!0},{name:"navigateDown",label:i.get("toolbarActionDrillDown"),text:i.get("toolbarActionDrillDown"),className:"iconWithText",icon:r.id,type:"Button",group:"navigateDownAction",action:this.navigateDown.bind(this),closeOnActionApplied:!0,disabled:t,update:!0}],this.viewOptions=this._getViewOptions(),this.viewOptions&&this.viewOptions.possibleItems&&this.toolbarContribution.push({name:"navigate",label:i.get("toolbarActionNavigate"),text:i.get("toolbarActionNavigate"),className:"iconWithText",icon:a.id,type:"NextView",group:"navigateAction",closeOnActionApplied:!1,view:{module:o,state:this.viewOptions},actions:{apply:this._navigateTo.bind(this)},update:!0}),this.toolbarContribution},a.prototype._navigateTo=function(t){this.viewOptions.possibleItems=this._getNavigateInfoForDataItem(t),this.currentSelectedItem=t},a.prototype._getCurrentSelectedItem=function(){return this.currentSelectedItem||this._currentSelections&&this._currentSelections[0]&&this._currentSelections[0].columnId},a.prototype._getViewOptions=function(){var t={height:140,width:180,labels:!1,eventHandler:this};return this._hasMultipleColumns()?t.possibleItems=this._getNavigateItemsInfo():(t.possibleItems=this._getNavigateInfoForDataItem(this._currentSelections[0].columnId),t.currentSelectedItem=this._currentSelections[0].columnId),t.getCurrentSelectedItem=this._getCurrentSelectedItem.bind(this),t},a.prototype._initializeNavigateItemsInfo=function(){var t={};this._currentSelections.forEach(function(e){var o=this.getNavigationPaths(e.columnId);if(o&&o.length){var i={slot:e.slot,dataItem:e.dataItem,navigationPaths:o,indexInSlot:e.indexInSlot},n=this._getNavigationPathToUseForColumn(e.dataItem,o);n&&(i.selectedNavigationPath=n),t[e.columnId]=t[e.columnId]||[],t[e.columnId].push(i)}}.bind(this)),r.keys(t).length&&(this._navigateItemsInfo=t)},a.prototype._getNavigateItemsInfo=function(){return this._navigateItemsInfo||this._initializeNavigateItemsInfo(),this._navigateItemsInfo},a.prototype._getNavigateInfoForDataItem=function(t){var e=this._getNavigateItemsInfo();if(e)return e[t]},a.prototype._canDrillDown=function(){for(var t in this._navigateItemsInfo)return r.find(this._navigateItemsInfo[t],function(e){return this._getNextItemInNavPath(t,e.selectedNavigationPath)}.bind(this));return!1},a.prototype._hasMultipleColumns=function(){return r.unique(this._currentSelections,!1,(function(t){return t.columnId})).length>1},a.prototype._getNextItemInNavPath=function(t,e){var o=e.getSegment(),i=this._findIndex(o,"ref",t);if(!(i>=o.length-1))return o[i+1].ref},a.prototype._getNavigationPathToUseForColumn=function(t,e){var o=t.getNavigationPathId();if(o)for(var i=0;i<e.length;i++)if(e[i].getIdentifier()===o)return e[i];return e[0]},a.prototype._findIndex=function(t,e,o){if(!t)return-1;for(var i=0;i<t.length;i++)if(t[i][e]===o)return i;return-1},a.prototype.navigateDown=function(){var t=[];for(var e in this._navigateItemsInfo)this._navigateItemsInfo[e].forEach(function(o){var i=this._getNextItemInNavPath(e,o.selectedNavigationPath);i&&t.push({slot:o.slot,indexInSlot:o.indexInSlot,newColumnId:i,navigationPathId:o.selectedNavigationPath.getIdentifier()})}.bind(this));t.length&&this.navigateTo(t)},a.prototype.navigateTo=function(t){var e=this,o=this.transaction.startTransaction();this._applyNavigationToPageContext(o);var i=[];t.forEach((function(t){var n=e._replaceSlotMapping(t,o);n&&i.push(n)})),i.length&&this._saveDrillState(i),this.transaction.endTransaction(o)},a.prototype._applyNavigationToPageContext=function(t){var e=this;if(this._currentSelectionsOrig){var o=this._getSelector(),i=this.globalFilters.getFilters(o.sourceId,o.scope),n=this._groupSelections(this._currentSelectionsOrig.dataPoints),a=function(a){var s=a&&a.split(",");return s&&s.length?1===s.length&&void 0===r.find(e._currentSelections,(function(t){return t.columnId===s[0]}))?"continue":void s.forEach((function(e,r){o.itemIds=[e];var s={values:[n[a][0][r]]};i.filterExists(o)||i.addFilter(o,s,t)})):"continue"};for(var s in n)a(s)}},a.prototype._replaceSlotMapping=function(t,e){var o=t.slot,i=t.indexInSlot,n=t.navigationPathId,r=t.newColumnId;if(-1===i)return null;e.forceUpdate=!0;var s=o.getDataItemList()[i],l=s.getId(),u=s.getColumnId();this.features["NavigationGroups.internal"].startNavigating(l,e);var c={columnId:r,navigationPathId:n||a.INITIAL_NAV_PATH_ID};o.removeDataItemsMapping([l],e);var d=this._getVisualization().getSlots(),p=o.addDataItems([c],i,e)[0];return d.deleteDataItems([l],e),this.features["NavigationGroups.internal"].endNavigating(p.getId(),e),{slotId:o.getId(),newDataItem:{id:p.getId()},oldDataItem:{itemId:u,navigationPathId:n}}},a.prototype.navigateBack=function(){var t=this;if(this._hasDrillState()){var e=this.transaction.startTransaction(),o=this._getGlobalFiltersSelector(),i=r.pluck(this._currentSelections,"columnId");r.each(i,(function(i){o.itemId=i,t._removeGlobalFilters(o,e)}));var n=this._getPreviousDrillItem(),a=(n?n.map((function(t){return t.oldDataItem})):[]).map((function(t){return t.itemId}));this._currentSelections.map((function(t){return t.columnId})).concat(a).forEach((function(i){o.itemId=i,t._removeGlobalFilters(o,e)})),this._revertToLastDrillState(e),this.transaction.endTransaction(e)}},a.prototype._removeGlobalFilters=function(t,e){this.globalFilters.removeFilters(t,e,{noSelfRefresh:!0})},a.prototype._getGlobalFiltersSelector=function(){return{origin:"visualization",sourceId:this._getVisualization().getDataSource().getId(),scope:this.content.getFeature("WidgetAPI.deprecated").getScope(),eventGroupId:this.eventGroups.getGroupId(this.content.getId()),eventSourceId:this.content.getId()}},a.prototype._getPreviousDrillItem=function(){return this._drillState.length?this._drillState[this._drillState.length-1]:null},a.prototype._saveDrillState=function(t){this._drillState.push(t)},a.prototype._revertToLastDrillState=function(t){var e=this;0!==this._drillState.length&&this._drillState.pop().forEach((function(o){var i=e._getVisualization().getSlots().getSlot(o.slotId),n=i.getDataItemList().map((function(t){return t.getId()})).indexOf(o.newDataItem.id),r=o.oldDataItem.navigationPathId,a=o.oldDataItem.itemId;e._replaceSlotMapping({slot:i,indexInSlot:n,navigationPathId:r,newColumnId:a},t)}))},a.prototype._hasDrillState=function(){return this._updateDrillState(),this._drillState.length>0},a.prototype._updateDrillState=function(){for(var t=this._getVisualization().getSlots().getSlotList(),e=this._drillState||[],o=e.length;o--;)this._updateDrillStateSlotId(t,e[o])},a.prototype._updateDrillStateSlotId=function(t,e){r.find(t,(function(t){var o=t.getDataItemList().map((function(t){return t.getId()})),i=r.find(e,(function(t){return o.indexOf(t.newDataItem.id)>=0})),n=t.getId();return i&&n!==i.slotId&&(i.slotId=n),i}))},a.prototype._getMoserDataSources=function(){return this._moserDataSources||(this._moserDataSources=this.dashboard.getFeature("DataSources.moser")),this._moserDataSources},a}(t);return a.INITIAL_NAV_PATH_ID="_initialPathId",a})),define("@dashboard-features/caActions/js/datapoint/customGroupAction/api/CustomGroupActionAPI",[],(function(){return function(){function t(){_classCallCheck(this,t)}return t.prototype.getDataPointActionList=function(){},t.prototype.createCustomGroup=function(){},t.prototype.renameCustomGroup=function(){},t.prototype.removeCustomGroup=function(){},t}()})),define("@dashboard-features/caActions/js/datapoint/customGroupAction/CustomGroupAction",["@waca/dashboard-livewidget/js/features/content/common/DataPointActionBase","@waca/dashboard-livewidget/js/widgets/livewidget/nls/StringResources","./api/CustomGroupActionAPI","@waca/dashboard-common/js/core/APIFactory","underscore","ca-modeller/shaping"],(function(t,e,o,i,n,r){"use strict";return function(t){function a(e){_classCallCheck(this,a);var o=_possibleConstructorReturn(this,t.call(this,e));return o.content.getFeature("DataPointActions").registerProvider("customGroupAction",o.getAPI()),o.icons=e.features["Dashboard.Icons"],o}return _inherits(a,t),a.prototype.getAPI=function(){return i.createAPI(this,[o])},a.prototype.getDataPointActionList=function(t,o){var i=t.dataPoints||[],r=i.length&&n.flatten(n.without(n.pluck(i,"categories"),void 0),!0),a=r.length&&r[0]&&this._getVisualization().getSlots().getMappingInfo(r[0].dataItemId).dataItem,s=a&&a.getMetadataColumn(),l=this.icons.getIcon("GroupIcon");if(this._supportAction(i,r,a,s,o)){var u={name:"customGroup",text:e.get("customGroupLabel"),label:e.get("customGroupLabel"),icon:l.id,type:"Button",group:"customGroupAction"},c=this._getViewOptions(i,a,s);return!this._getCustomGroupData(s.getSourceId(),s.getId())||1===c.length&&"createCustomGroupAction"===c[0].actionId?n.extend(u,{action:this.createCustomGroup.bind(this,i,a,s)}):n.extend(u,{type:"NextView",viewModule:"dashboard-analytics/dialogs/CustomGroupActionsListDialog",viewOptions:{possibleItems:c}}),[u]}return[]},a.prototype._supportAction=function(t,e,o,i){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(this.dashboard.getGlassCoreSvc(".FeatureChecker").checkValue("dashboard","customGroups","disabled"))return!1;if(n.noFilters)return!1;var r=this._isSupportedSelections(e,i);if(r){var a=this._getCustomGroupData(i.getSourceId(),i.getId()),s=!1,l=this._createCustomGroupSpec(t);a&&(l=this._updateCustomGroupSpec(t,a),s=!0),r=this._getCustomGroupUI().validateCustomGroup(i.getSourceId(),i.getId(),s,l)}return r},a.prototype._isSupportedSelections=function(t,e){return this._isValidCategoricalSelections(t,e)&&this._isValidWhiteListVisType()&&this._isSupportedDataType(e)},a.prototype._isValidWhiteListVisType=function(){var t=this.content.getFeature("Visualization").getDefinition();return t&&t.getProperty("supportsCustomGroupAction")},a.prototype._isValidCategoricalSelections=function(t,e){return 1===Object.keys(n.groupBy(t,"columnId")).length&&"attribute"===e.getType()},a.prototype._isSupportedDataType=function(t){return t&&!t.isDateTimeDataType()},a.prototype._isSelectionAllGrouped=function(t,e){var o=this._getCustomGroupData(e.getSourceId(),e.getId());if(o){var i=o.groupsList;return!n.filter(t,(function(t){return!(n.findWhere(i,{label:t.label})||n.findWhere(i,{placeholder:t.label}))})).length}return!1},a.prototype._supportCreateAction=function(t,e){return t.length>1||1===t.length&&!this._isSelectionAllGrouped(t,e)},a.prototype._supportRenameAction=function(t,e){return 1===t.length&&this._isSelectionAllGrouped(t,e)},a.prototype._supportRemoveAction=function(t,e){return this._isSelectionAllGrouped(t,e)},a.prototype._getViewOptions=function(t,o,i){var n=this._getMembersFromDataPoints(t),r=[];return this._supportCreateAction(n,i)&&r.push({label:e.get("createCustomGroupLabel"),value:this.createCustomGroup.bind(this,t,o,i),actionId:"createCustomGroupAction"}),this._supportRenameAction(n,i)&&r.push({label:e.get("renameCustomGroupLabel"),value:this.renameCustomGroup.bind(this,t,o,i),actionId:"renameCustomGroupAction"}),this._supportRemoveAction(n,i)&&r.push({label:e.get("ungroupCustomGroupLabel"),value:this.removeCustomGroup.bind(this,t,o,i),actionId:"removeCustomGroupAction"}),r},a.prototype._getUniqueGlobalFiltersSelector=function(t){return{origin:"visualization",sourceId:this._getVisualization().getDataSource().getId(),scope:this.content.getFeature("WidgetAPI.deprecated").getScope(),eventGroupId:this.eventGroups.getGroupId(this.content.getId()),hierarchyUniqueNames:[t]}},a.prototype._getMembersFromDataPoints=function(t){var e=[];return t.filter((function(t){return t.categories&&1===t.categories.length})).forEach((function(t){var o=t.categories[0].label,i=o&&o.toString()||o;i&&function(t,e){return!n.find(t,(function(t){return t.label===e}))}(e,i)&&e.push({label:i})})),e},a.prototype._getNewCustomGroupList=function(t,e){var o=[],i="";return n.each(t.groupsList,(function(t){i=t.label||t.placeholder,o.push(i)})),n.filter(e.groupsList,(function(t){return i=t.label||t.placeholder,!n.contains(o,i)}))},a.prototype._createCustomGroupSpec=function(t){return{groupsList:[{value:this._getMembersFromDataPoints(t),focus:!0}]}},a.prototype._updateCustomGroupSpec=function(t,e){var o=this._getMembersFromDataPoints(t),i=e.groupsList,r=[],a=[],s="";return n.each(i,(function(t){s=t.label||t.placeholder,n.findWhere(o,{label:s})&&(r.push(s),a=a.concat(t.value))})),o=n.filter(o,(function(t){return!n.contains(r,t.label)})).concat(a),(i=n.filter(i,(function(t){return s=t.label||t.placeholder,!n.contains(r,s)}))).push({value:o,focus:!0}),e.groupsList=i,e},a.prototype._updateGroupName=function(t,e){var o=t.groupsList;return n.each(o,(function(t){(t.label||t.placeholder)===e&&(t.focus=!0)})),t.groupsList=o,t},a.prototype._handleMUIDialogErrors=function(t){var o=this,i=[r.customGroupUtils.getCustomGroupMessageIds().CUSTOM_GROUP_INT_MSG_CANCEL],a=t.messages||[],s=!1;if(a.length>0?n.each(a,(function(t){n.contains(i,t.messageId)||(s=!0,o.logger.error(t.messageHint,o))})):(s=!0,this.logger.error(t,this)),s){this.dashboard.showToast(e.get("createCustomGroupErrorToast"),{type:"error",preventDuplicates:!0})}},a.prototype._addConsumerGroupColumnToSourceModel=function(t,e,o){var i=this._getMoserDataSources().getCustomGroupColumns(t);i||(i=[]),-1===i.indexOf(e)&&(i.push(e),this._getMoserDataSources().setCustomGroupColumns(t,i,o))},a.prototype._removeConsumerGroupColumnFromSourceModel=function(t,e,o){var i=this._getMoserDataSources().getCustomGroupColumns(t);if(i){var n=i.filter((function(t){return t!==e}));this._getMoserDataSources().setCustomGroupColumns(t,n,o)}},a.prototype.createCustomGroup=function(t,e,o){var i=this;return this._ensureTemporaryModule(o.getSourceId()).then((function(){var n=o.getId(),r=i._createCustomGroupSpec(t),a=!1,s=i._getCustomGroupData(o.getSourceId(),o.getId());return s&&(r=i._updateCustomGroupSpec(t,s),a=!0),i._getCustomGroupUI().createCustomGroup(o.getSourceId(),n,a,r).then((function(t){var r=i.transaction.startTransaction();r.forceUpdate=!0,i._addConsumerGroupColumnToSourceModel(t[0].getSourceId(),t[0].getId(),r);var a=i._getCustomGroupData(t[0].getSourceId(),t[0].getId()),l=i._getUniqueGlobalFiltersSelector(n),u=a.groupsList[0].label||a.groupsList[0].placeholder;if(i.globalFilters.removeFilters(l,r),s){var c=i._getNewCustomGroupList(s,a);c.length&&(u=c[0].label||c[0].placeholder)}else i._swapSlotsForGroupedItems(t[0].getId(),e.getId(),r),i._hideAndLabelGroupColumn(t[0],o);i._selectItems(t[0].getId(),[{label:u}],r),i.transaction.endTransaction(r)})).catch(i._handleMUIDialogErrors.bind(i))}))},a.prototype.renameCustomGroup=function(t,e,o){var i=this;return this._ensureTemporaryModule(o.getSourceId()).then((function(){var n=o.getId(),r=i._getMembersFromDataPoints(t)[0].label,a=i._getCustomGroupData(o.getSourceId(),o.getId()),s=i._updateGroupName(a,r);return i._getCustomGroupUI().createCustomGroup(o.getSourceId(),n,!0,s).then((function(t){var o=i._getCustomGroupData(t[0].getSourceId(),t[0].getId()).groupsList.map((function(t){return t.label||t.placeholder})),s=a.groupsList.map((function(t){return t.label||t.placeholder})),l=i._getChangedName(o,s);if(l){var u=i.transaction.startTransaction(),c=i._getUniqueGlobalFiltersSelector(n);i._updateCustomSortingObjectForGroup(e,t[0].getId(),r,l,u),i.globalFilters.removeFilters(c,u),i._selectItems(t[0].getId(),[{label:l}],u),i.transaction.endTransaction(u)}})).catch(i._handleMUIDialogErrors.bind(i))}))},a.prototype._updateCustomSortingObjectForGroup=function(t,e,o,i,n){var r=t.getSort();if(r&&r.custom){var a=r.custom.top||[];if(a.length>0){var s=e+"->["+o+"]",l=a.indexOf(s);if(-1!==l){var u=e+"->["+i+"]";a[l]=u,r.custom.top=a,t.setSort(r,{transactionId:n.transactionId})}}}},a.prototype._removeSelectedGroupsFromList=function(t,e){var o=[];return n.each(e,(function(e){t=t.filter((function(t){return t.label!==e.label&&t.placeholder!==e.label||(o=o.concat(t.value),!1)}))})),{groupMembers:o,groupsList:t}},a.prototype.removeCustomGroup=function(t,e,o){var i=this;return this._ensureTemporaryModule(o.getSourceId()).then((function(){var n=o.getId(),a=i._getCustomGroupData(o.getSourceId(),o.getId()),s=a.basedOnMoserObjectId,l=i._getMembersFromDataPoints(t),u=i._removeSelectedGroupsFromList(a.groupsList,l),c=u.groupMembers,d=u.groupsList;if(!d.length){var p=i.transaction.startTransaction();p.forceUpdate=!0,i._swapSlotsForGroupedItems(s,e.getId(),p);var f=i._getUniqueGlobalFiltersSelector(n);return i.globalFilters.removeFilters(f,p),i._selectItems(s,c,p),i._isDataItemUsedForMapping(e.getId())?(i.transaction.endTransaction(p),Promise.resolve()):(i._removeConsumerGroupColumnFromSourceModel(o.getSourceId(),o.getId(),p),i._getCustomGroupUI().removeCustomGroup(o.getSourceId(),n).then((function(){return i.transaction.endTransaction(p),Promise.resolve()})).catch((function(t){return i.logger.error("Unable to remove the orphan custom group item from module.",t,n),i.transaction.endTransaction(p),Promise.resolve()})))}var h={groupsList:d,basedOnMoserObjectId:a.basedOnMoserObjectId,name:a.name},g={startView:r.customGroupUtils.getCustomGroupViews().CUSTOM_GROUP_VIEW_SILENT};return i._getCustomGroupUI().createCustomGroup(o.getSourceId(),n,!0,h,g).then((function(t){var e=i.transaction.startTransaction(),o=i._getUniqueGlobalFiltersSelector(n);i.globalFilters.removeFilters(o,e),i._selectItems(t[0].getId(),c,e),i.transaction.endTransaction(e)})).catch(i._handleMUIDialogErrors.bind(i))}))},a.prototype._isDataItemUsedForMapping=function(t){var e=this.dashboard.getSpec();if(e){var o=e.widgets&&n.filter(e.widgets,(function(t){return"live"===t.type}));return o&&n.some(o,(function(e){return e.slotmapping&&e.slotmapping.slots&&n.some(e.slotmapping.slots,(function(e){return n.contains(e.dataItems,t)}))}))}return!1},a.prototype._getChangedName=function(t,e){var o=t.length!==e.length,i=n.difference(t,e);return 1!==i.length||o?null:i.pop()},a.prototype._swapSlotsForGroupedItems=function(t,e,o){var i=this._getVisualization().getSlots().getMappingInfo(e);i.slot.addDataItems([{columnId:t}],i.indexInSlot,o),i.slot.removeDataItems([e],o)},a.prototype._selectItems=function(t,e,o){var i=[];n.each(e,(function(e){var o=e.label,n={itemIds:[t],tuple:[{d:o,u:t+"->["+o+"]"}]};i.push(n)}));var r={undoRedoTransactionId:o.transactionId,transactionToken:o,edgeSelect:e.length>1};this.content.getFeature("WidgetAPI.deprecated").getVisApi().selectData(i,r)},a.prototype._hideAndLabelGroupColumn=function(t,o){var i=e.get("customGroupingLabel",{columnLabel:o.getLabel()});t.setHidden(!0),t.setLabel(i),this._getMoserDataSources().addToUndoStack(o.getSourceId(),{undo:function(){},redo:function(){}},{skipUndoRedo:!0})},a.prototype._ensureTemporaryModule=function(t){return this._getMoserDataSources().ensureTemporaryModule(t)},a.prototype._getCustomGroupData=function(t,e){return this._getMoserDataSources().getCustomGroupData(t,e)},a.prototype._getMoserDataSources=function(){return this._moserDataSources||(this._moserDataSources=this.dashboard.getFeature("DataSources.moser")),this._moserDataSources},a.prototype._getCustomGroupUI=function(){return this._uiDataSources||(this._uiDataSources=this.dashboard.getFeature("DataSources.CustomGroupUI")),this._uiDataSources},a.prototype._getVisualization=function(){return this._visualization||(this._visualization=this.content.getFeature("Visualization")),this._visualization},a}(t)})),define("@dashboard-features/caActions/js/layers",["./slot/calculationAction/CalculationAction","./content/navigateAction/NavigateAction","./datapoint/customGroupAction/CustomGroupAction"],(function(){})),define("@dashboard-features/predictQuery/js/possibleKeyDriverAction/PossibleKeyDriverAction",["@waca/dashboard-livewidget/js/widgets/livewidget/nls/StringResources","@waca/dashboard-common/js/core/APIFactory","@waca/dashboard-livewidget/js/features/content/slotActions/api/SlotActionsProviderAPI"],(function(t,e,o){return function(){function i(t){var e=t.content,o=t.dashboardAPI,n=t.features;_classCallCheck(this,i),this.content=e,this.dashboard=o,this.icons=n&&n["Dashboard.Icons"],n.SlotActions.registerProvider("possibleKeyDriverAction",this.getAPI())}return i.prototype.getAPI=function(){return this._api||(this._api=e.createAPI(this,[o])),this._api},i.prototype._isActionSupported=function(t){if(!this._isFocusModeEnabled())return!1;var e=t.getDefinition().getProperty("actions");return!!e&&-1!==e.indexOf("PossibleKeyDriverAction")},i.prototype._isFocusModeEnabled=function(){return!this.dashboard.getGlassCoreSvc(".FeatureChecker").checkValue("dashboard","FocusMode","disabled")},i.prototype.getSlotActionList=function(e,o){this._visAPI=this.content.getFeature("WidgetAPI.deprecated").getVisApi();var i=this._getVisualization().getSlots().getSlot(e),n=this._visAPI.getPossibleKeyDriversErrorState(),r=n.inErrorState?n.caption:t.get("toolbarActionPossibleKeyDrivers"),a=this.icons.getIcon("potentialDrivers");return i&&this._isActionSupported(i)?[{name:"possibleKeyDriver",id:"PossibleKeyDriverAction",text:t.get("toolbarActionPossibleKeyDrivers"),icon:a.id,label:r,type:"Button",removeOnActionApplied:!0,actions:{apply:this.openEditDriversDialog.bind(this,i,o)},group:"possibleKeyDriverAction",disabled:n.inErrorState}]:[]},i.prototype.openEditDriversDialog=function(e){var o=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e.getDataItemList()[i],r=this._visAPI.visQuerySupport.getKeyDrivers(n),a=this.dashboard.getFeature("DataSources.UI");return a.pickItems({dataSourceId:this.dashboard.getActiveDataSourceId(),labels:{title:t.get("toolbarActionPossibleKeyDrivers"),subTitle:t.get("toolbarActionPossibleKeyDriversSubTitle")},initialFieldIds:r.initialFieldIds,recommendedFieldIds:r.recommendedFieldIds,max:250}).then((function(t){if(t&&t.length){var e=t.map((function(t){return{fieldIDForExpression:t.getId(),isDefaultRecommendation:-1!==r.recommendedFieldIds.indexOf(t.getId()),tableID:t.getTableId(),selected:!0}})),i=e.filter((function(t){return!1===t.isDefaultRecommendation})),a={recommendedDrivers:r.recommendedDrivers.map((function(t){var o=e.some((function(e){return t.fieldIDForExpression===e.fieldIDForExpression}));return _extends({},t,{selected:o})})),nonRecommendedDrivers:i};o._visAPI.possibleKeyDriverSelectionStateChanged(n.getColumnId(),a)}}))},i.prototype.setToolbar=function(t){this.toolbar=t},i.prototype.remove=function(){this.toolbar&&this.toolbar.flyout&&this.toolbar.flyout.close()},i.prototype._getVisualization=function(){return this.visualization||(this.visualization=this.content.getFeature("Visualization")),this.visualization},i}()})),define("@dashboard-features/predictQuery/js/layers",["./possibleKeyDriverAction/PossibleKeyDriverAction"],(function(){})),define("dashboard-analytics/featuresBundle",(function(){}));