\n\t
\n\t\t\n\t
\n\t
\n\t\t\n\t
\n
\n"},"js":"!function(e){\"use strict\";var t=function(e,t){new t(e)};e.controller(\"reporting.pivottable.controllers.main\",[\"$scope\",\"reporting.pivottable.services.widgetBuilder\",t])}(angular.module(\"ripsaw.widgets\")),function(e){\"use strict\";e.directive(\"reporting.pivottable.display\",[\"$sce\",\"$timeout\",\"reporting.pivottable.services.tableHTMLGenerator\",\"reporting.widgetBase.scrollShadowService\",function(e,t,n,r){return{templateUrl:\"reporting/pivottable/templates/body/table.html\",scope:{data:\"=\",sizing:\"=\",resizingService:\"=\",dashboardEditing:\"=\"},link:function(i,a){var o=function(o,s){i.data&&i.data.dataTree&&(i.resizingService.disable(),i.tablehtml=e.trustAsHtml(n.generateHTML(i.data.dataTree,i.sizing)),i.dashboardEditing&&t(i.resizingService.enable,0,!1),t(function(){var e=a.parent(\".widget-body\");r.addScrollShadows(e,{top:0})},0,!1),s())},s=i.$on(\"dataUpdated\",o);a.on(\"$destroy\",function(){s(),i.$destroy()})}}}])}(angular.module(\"ripsaw.widgets\")),function(e){\"use strict\";e.factory(\"reporting.pivottable.services.configurationValidation\",[function(){var e={};return e.hasSameDimension=function(e){var t=_.countBy(e,function(e){return e.field}),n=_.some(t,function(e){return e>1});return n},e}])}(angular.module(\"ripsaw.widgets\")),function(e){\"use strict\";e.value(\"reporting.pivottable.services.constants\",{ENUMERABLE_SCALAR_VALUE:\"EnumerableScalarValue\",EMPTY_LABEL:\"\",ROW:\"Row\",COLUMN:\"Column\",MEASURE_PREFIX:\"M\",DIMENSION_PREFIX:\"E\",MAX_DATA_POINTS:8e3,VALIDATION_ERROR:{INVALID_TREE_DEPTH:\"INVALID_TREE_DEPTH\",INVALID_ROW_COLOUMN_ORDER:\"INVALID_ROW_COLOUMN_ORDER\",TOO_MANY_POINTS:\"TOO_MANY_RECORDS_ADD_FILTERS\"}})}(angular.module(\"ripsaw.widgets\")),function(e){\"use strict\";e.factory(\"reporting.pivottable.services.dataTreeToTable\",[\"reporting.widget-base.options.measuresHelpers\",\"reporting.pivottable.services.matrixUtils\",\"reporting.pivottable.services.constants\",function(e,t,n){function r(e,t){function n(e,t,n){return t&&e.push(n),e}var r=[],i=[];return _.forEach(e,function(e,n){_.forEach(e,function(e,a){var o=t(e);r[n]=o&&r[n]!==!1,i[a]=o&&i[a]!==!1})}),{emptyRows:_.reduce(r,n,[]),emptyColumns:_.reduce(i,n,[])}}function i(e,t,n){var r=o(n);_.forEach(r,function(n){e.splice(n,1),s(t,n)})}function a(e,t,n){var r=o(n);_.forEach(r,function(n){_.forEach(e,function(e){e.splice(n,1)}),u(t,n)})}function o(e){return e.slice(0).sort(function(e,t){return t-e})}function s(e,t){var r=e.splice(t,1),i=e[t],a=r[0];if(i&&i.length&&a&&a.length)for(var o=0;o